var w9=Object.defineProperty,S9=Object.defineProperties;var y9=Object.getOwnPropertyDescriptors;var VN=Object.getOwnPropertySymbols;var L9=Object.prototype.hasOwnProperty,D9=Object.prototype.propertyIsEnumerable;var HN=(o,e,t)=>e in o?w9(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,I_=(o,e)=>{for(var t in e||(e={}))L9.call(e,t)&&HN(o,t,e[t]);if(VN)for(var t of VN(e))D9.call(e,t)&&HN(o,t,e[t]);return o},E_=(o,e)=>S9(o,y9(e));var io=(o,e,t)=>new Promise((i,n)=>{var s=l=>{try{a(t.next(l))}catch(c){n(c)}},r=l=>{try{a(t.throw(l))}catch(c){n(c)}},a=l=>l.done?i(l.value):Promise.resolve(l.value).then(s,r);a((t=t.apply(o,e)).next())});import{a as uC}from"./chunk.6424c2fc.js";import{bJ as k9,b as gC,d as vx,m as qR,e as Un,aD as Nd,au as Cx,h as fC,r as ki,w as Ul,o as pC,b6 as GR,q as li,F as Wn,z as y0,A as si,R as x9,_ as ZR,as as wx,bK as I9,bL as E9,n as Ho,p as Sx,b7 as N9,v as Nt,E as fd,G as T9,H as M9,D as A9,W as Gb,ae as YR,aA as XR,al as R9,aC as uy,bM as O9,S as yx,ag as P9,c as F9,bk as zN,b1 as B9,bN as UN,bA as QR,P as JR,Q as eO,C as L0,Y as W9,aF as V9,az as tO,O as Lx,t as Ka,I as mC,a9 as Dx,av as _C,$ as bC,a1 as iO,y as Xn,a4 as H9,x as Hr,by as z9,aN as U9,a5 as nO,a6 as sO,a7 as Xr,a2 as oO,aa as $N,N as $9,bO as jN,bP as j9,aB as N_,L as K9,a0 as rO}from"./index.js";import{l as q9}from"./chunk.4a114b4a.js";const Gc=o=>k9(o),vC=Symbol("tabsRootContextKey"),G9=gC({tabs:{type:vx(Array),default:()=>qR([])}}),Z9={name:"ElTabBar"},Y9=Un(E_(I_({},Z9),{props:G9,setup(o,{expose:e}){const t=o,i="ElTabBar",n=wx(),s=Nd(vC);s||Cx(i,"");const r=fC("tabs"),a=ki(),l=ki(),c=()=>{let h=0,u=0;const g=["top","bottom"].includes(s.props.tabPosition)?"width":"height",f=g==="width"?"x":"y";return t.tabs.every(_=>{var b,v,C,w;const S=(v=(b=n.parent)==null?void 0:b.refs)==null?void 0:v[`tab-${_.uid}`];if(!S)return!1;if(!_.active)return!0;u=S[`client${Gc(g)}`];const k=f==="x"?"left":"top";h=S.getBoundingClientRect()[k]-((w=(C=S.parentElement)==null?void 0:C.getBoundingClientRect()[k])!=null?w:0);const x=window.getComputedStyle(S);return g==="width"&&(t.tabs.length>1&&(u-=Number.parseFloat(x.paddingLeft)+Number.parseFloat(x.paddingRight)),h+=Number.parseFloat(x.paddingLeft)),!1}),{[g]:`${u}px`,transform:`translate${Gc(f)}(${h}px)`}},d=()=>l.value=c();return Ul(()=>t.tabs,()=>io(this,null,function*(){yield pC(),d()}),{immediate:!0}),GR(a,()=>d()),e({ref:a,update:d}),(h,u)=>(li(),Wn("div",{ref_key:"barRef",ref:a,class:y0([si(r).e("active-bar"),si(r).is(si(s).props.tabPosition)]),style:x9(l.value)},null,6))}}));var X9=ZR(Y9,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-bar.vue"]]);const Q9=gC({panes:{type:vx(Array),default:()=>qR([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),J9={tabClick:(o,e,t)=>t instanceof Event,tabRemove:(o,e)=>e instanceof Event},KN="ElTabNav",e8=Un({name:KN,props:Q9,emits:J9,setup(o,{expose:e,emit:t}){const i=wx(),n=Nd(vC);n||Cx(KN,"");const s=fC("tabs"),r=I9(),a=E9(),l=ki(),c=ki(),d=ki(),h=ki(!1),u=ki(0),g=ki(!1),f=ki(!0),_=Ho(()=>["top","bottom"].includes(n.props.tabPosition)?"width":"height"),b=Ho(()=>({transform:`translate${_.value==="width"?"X":"Y"}(-${u.value}px)`})),v=()=>{if(!l.value)return;const D=l.value[`offset${Gc(_.value)}`],I=u.value;if(!I)return;const R=I>D?I-D:0;u.value=R},C=()=>{if(!l.value||!c.value)return;const D=c.value[`offset${Gc(_.value)}`],I=l.value[`offset${Gc(_.value)}`],R=u.value;if(D-R<=I)return;const P=D-R>I*2?R+I:D-I;u.value=P},w=()=>io(this,null,function*(){const D=c.value;if(!h.value||!d.value||!l.value||!D)return;yield pC();const I=d.value.querySelector(".is-active");if(!I)return;const R=l.value,P=["top","bottom"].includes(n.props.tabPosition),H=I.getBoundingClientRect(),$=R.getBoundingClientRect(),ne=P?D.offsetWidth-$.width:D.offsetHeight-$.height,ae=u.value;let de=ae;P?(H.left<$.left&&(de=ae-($.left-H.left)),H.right>$.right&&(de=ae+H.right-$.right)):(H.top<$.top&&(de=ae-($.top-H.top)),H.bottom>$.bottom&&(de=ae+(H.bottom-$.bottom))),de=Math.max(de,0),u.value=Math.min(de,ne)}),S=()=>{if(!c.value||!l.value)return;const D=c.value[`offset${Gc(_.value)}`],I=l.value[`offset${Gc(_.value)}`],R=u.value;if(I0&&(u.value=0)},k=D=>{const I=D.code,{up:R,down:P,left:H,right:$}=Gb;if(![R,P,H,$].includes(I))return;const ne=Array.from(D.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)")),ae=ne.indexOf(D.target);let de;I===H||I===R?ae===0?de=ne.length-1:de=ae-1:ae{f.value&&(g.value=!0)},y=()=>g.value=!1;return Ul(r,D=>{D==="hidden"?f.value=!1:D==="visible"&&setTimeout(()=>f.value=!0,50)}),Ul(a,D=>{D?setTimeout(()=>f.value=!0,50):f.value=!1}),GR(d,S),Sx(()=>setTimeout(()=>w(),0)),N9(()=>S()),e({scrollToActiveTab:w,removeFocus:y}),Ul(()=>o.panes,()=>i.update(),{flush:"post"}),()=>{const D=h.value?[Nt("span",{class:[s.e("nav-prev"),s.is("disabled",!h.value.prev)],onClick:v},[Nt(fd,null,{default:()=>[Nt(T9,null,null)]})]),Nt("span",{class:[s.e("nav-next"),s.is("disabled",!h.value.next)],onClick:C},[Nt(fd,null,{default:()=>[Nt(M9,null,null)]})])]:null,I=o.panes.map((R,P)=>{var H,$,ne,ae;const de=R.uid,we=R.props.disabled,Se=($=(H=R.props.name)!=null?H:R.index)!=null?$:`${P}`,Me=!we&&(R.isClosable||o.editable);R.index=`${P}`;const St=Me?Nt(fd,{class:"is-icon-close",onClick:ge=>t("tabRemove",R,ge)},{default:()=>[Nt(A9,null,null)]}):null,mt=((ae=(ne=R.slots).label)==null?void 0:ae.call(ne))||R.props.label,_e=!we&&R.active?0:-1;return Nt("div",{ref:`tab-${de}`,class:[s.e("item"),s.is(n.props.tabPosition),s.is("active",R.active),s.is("disabled",we),s.is("closable",Me),s.is("focus",g.value)],id:`tab-${Se}`,key:`tab-${de}`,"aria-controls":`pane-${Se}`,role:"tab","aria-selected":R.active,tabindex:_e,onFocus:()=>x(),onBlur:()=>y(),onClick:ge=>{y(),t("tabClick",R,Se,ge)},onKeydown:ge=>{Me&&(ge.code===Gb.delete||ge.code===Gb.backspace)&&t("tabRemove",R,ge)}},[mt,St])});return Nt("div",{ref:d,class:[s.e("nav-wrap"),s.is("scrollable",!!h.value),s.is(n.props.tabPosition)]},[D,Nt("div",{class:s.e("nav-scroll"),ref:l},[Nt("div",{class:[s.e("nav"),s.is(n.props.tabPosition),s.is("stretch",o.stretch&&["top","bottom"].includes(n.props.tabPosition))],ref:c,style:b.value,role:"tablist",onKeydown:k},[o.type?null:Nt(X9,{tabs:[...o.panes]},null),I])])])}}}),t8=gC({type:{type:String,values:["card","border-card",""],default:""},activeName:{type:[String,Number]},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:vx(Function),default:()=>!0},stretch:Boolean}),dw=o=>P9(o)||F9(o),i8={[YR]:o=>dw(o),tabClick:(o,e)=>e instanceof Event,tabChange:o=>dw(o),edit:(o,e)=>["remove","add"].includes(e),tabRemove:o=>dw(o),tabAdd:()=>!0};var n8=Un({name:"ElTabs",props:t8,emits:i8,setup(o,{emit:e,slots:t,expose:i}){var n,s;const r=fC("tabs"),a=ki(),l=XR({}),c=ki((s=(n=o.modelValue)!=null?n:o.activeName)!=null?s:"0"),d=_=>{c.value=_,e(YR,_),e("tabChange",_)},h=_=>io(this,null,function*(){var b,v,C;if(!(c.value===_||zN(_)))try{(yield(b=o.beforeLeave)==null?void 0:b.call(o,_,c.value))!==!1&&(d(_),(C=(v=a.value)==null?void 0:v.removeFocus)==null||C.call(v))}catch(w){}}),u=(_,b,v)=>{_.props.disabled||(h(b),e("tabClick",_,v))},g=(_,b)=>{_.props.disabled||zN(_.props.name)||(b.stopPropagation(),e("edit",_.props.name,"remove"),e("tabRemove",_.props.name))},f=()=>{e("edit",void 0,"add"),e("tabAdd")};return R9({from:'"activeName"',replacement:'"model-value" or "v-model"',scope:"ElTabs",version:"2.3.0",ref:"https://element-plus.org/en-US/component/tabs.html#attributes",type:"Attribute"},Ho(()=>!!o.activeName)),Ul(()=>o.activeName,_=>h(_)),Ul(()=>o.modelValue,_=>h(_)),Ul(c,()=>io(this,null,function*(){var _;yield pC(),(_=a.value)==null||_.scrollToActiveTab()})),uy(vC,{props:o,currentName:c,registerPane:v=>l[v.uid]=v,unregisterPane:v=>delete l[v]}),i({currentName:c}),()=>{const _=o.editable||o.addable?Nt("span",{class:r.e("new-tab"),tabindex:"0",onClick:f,onKeydown:C=>{C.code===Gb.enter&&f()}},[Nt(fd,{class:r.is("icon-plus")},{default:()=>[Nt(O9,null,null)]})]):null,b=Nt("div",{class:[r.e("header"),r.is(o.tabPosition)]},[_,Nt(e8,{ref:a,currentName:c.value,editable:o.editable,type:o.type,panes:Object.values(l),stretch:o.stretch,onTabClick:u,onTabRemove:g},null)]),v=Nt("div",{class:r.e("content")},[yx(t,"default")]);return Nt("div",{class:[r.b(),r.m(o.tabPosition),{[r.m("card")]:o.type==="card",[r.m("border-card")]:o.type==="border-card"}]},[...o.tabPosition!=="bottom"?[b,v]:[v,b]])}}});const s8=gC({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),o8=["id","aria-hidden","aria-labelledby"],r8={name:"ElTabPane"},a8=Un(E_(I_({},r8),{props:s8,setup(o){const e=o,t="ElTabPane",i=wx(),n=B9(),s=Nd(vC);s||Cx(t,"usage: ");const r=fC("tab-pane"),a=ki(),l=Ho(()=>e.closable||s.props.closable),c=UN(()=>{var f;return s.currentName.value===((f=e.name)!=null?f:a.value)}),d=ki(c.value),h=Ho(()=>{var f;return(f=e.name)!=null?f:a.value}),u=UN(()=>!e.lazy||d.value||c.value);Ul(c,f=>{f&&(d.value=!0)});const g=XR({uid:i.uid,slots:n,props:e,paneName:h,active:c,index:a,isClosable:l});return Sx(()=>{s.registerPane(g)}),QR(()=>{s.unregisterPane(g.uid)}),(f,_)=>si(u)?JR((li(),Wn("div",{key:0,id:`pane-${si(h)}`,class:y0(si(r).b()),role:"tabpanel","aria-hidden":!si(c),"aria-labelledby":`tab-${si(h)}`},[yx(f.$slots,"default")],10,o8)),[[eO,si(c)]]):L0("v-if",!0)}}));var aO=ZR(a8,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-pane.vue"]]);const l8=W9(n8,{TabPane:aO}),c8=V9(aO),d8=Un({__name:"asides",props:{path:{type:String,default:""}},setup(o){return io(this,null,function*(){let e,t;const i=o,n=ki([]),s=()=>io(this,null,function*(){try{const r={path:`/local${i.path}`},a=yield Dx.File.Basic.List.POST(r);if(a.data){const{success:l,result:c,error:d}=a.data;l==0&&(n.value=_C.FileBasicEntryArray(c.entries||[]))}}catch(r){console.log(r)}finally{}});return[e,t]=tO(()=>s()),yield e,t(),(r,a)=>(li(!0),Wn(mC,null,Lx(n.value,l=>(li(),Ka(lO,{entrie:l},null,8,["entrie"]))),256))})}}),h8=o=>(nO("data-v-92de20f9"),o=o(),sO(),o),u8={class:"file_name"},g8=h8(()=>Xn("div",{class:"auto"},null,-1)),f8={key:0,class:"file-icon"},p8={class:"children"},m8=Un({__name:"aside-item",props:{entrie:{type:Object,default:[]}},setup(o){const e=uC();bC();const t=ki(!1),i=ki(!1),n=a=>{a.fileType==="dir"?s():r(a)},s=a=>{i.value=!i.value,t.value||(t.value=!0)},r=a=>{switch(console.log(a.iconType),a.iconType){case"archive":return;case"music":return}e.addTab(a)};return(a,l)=>{const c=iO("thumbnail");return li(),Wn(mC,null,[Xn("li",{class:y0(["file-item",{on:o.entrie.rootPath===si(e).editableTabsValue}]),onClick:l[0]||(l[0]=d=>n(o.entrie))},[Xn("div",{class:y0(["file_cover",o.entrie.fileType])},[Nt(c,{file:o.entrie},null,8,["file"])],2),Xn("span",u8,H9(o.entrie.name),1),g8,o.entrie.fileType==="dir"?(li(),Wn("div",f8,[i.value?(li(),Ka(si(fd),{key:0},{default:Hr(()=>[Nt(si(z9))]),_:1})):(li(),Ka(si(fd),{key:1},{default:Hr(()=>[Nt(si(U9))]),_:1}))])):L0("",!0)],2),JR(Xn("ul",p8,[t.value?(li(),Ka(d8,{key:0,path:o.entrie.rootPath||`/${o.entrie.name}`},null,8,["path"])):L0("",!0)],512),[[eO,i.value]])],64)}}});const lO=Xr(m8,[["__scopeId","data-v-92de20f9"]]),_8=Un({__name:"list",setup(o){return io(this,null,function*(){let e,t;const i=uC();bC();const n=Nd("path"),s=Nd("absPath"),r=ki([]),a=()=>io(this,null,function*(){try{const l=yield Dx.File.Basic.List.POST({path:"/local"+s.value});if(l.data){const{success:c,result:d,error:h}=l.data;if(d!=null&&d.entries){r.value=_C.FileBasicEntryArray(d.entries);for(let u=0;ua()),yield e,t(),(l,c)=>(li(),Ka(si(oO),{class:"aside-container"},{default:Hr(()=>[(li(!0),Wn(mC,null,Lx(r.value,d=>(li(),Ka(lO,{entrie:d},null,8,["entrie"]))),256))]),_:1}))})}});const b8=Xr(_8,[["__scopeId","data-v-0674120d"]]),cO=o=>(nO("data-v-0b8be308"),o=o(),sO(),o),v8={class:"aside-header"},C8=cO(()=>Xn("span",null,"\u8D44\u6E90\u7BA1\u7406",-1)),w8=cO(()=>Xn("div",{class:"auto"},null,-1)),S8=Un({__name:"index",setup(o){const e=ki(0),t=()=>{e.value++};return(i,n)=>(li(),Wn("aside",null,[Xn("div",v8,[C8,w8,Xn("button",{class:"refresh",title:"\u5237\u65B0",onClick:t},[Nt(si(fd),null,{default:Hr(()=>[Nt(si($9))]),_:1})])]),Nt(si(oO),{class:"aside-container"},{default:Hr(()=>[(li(),Ka(b8,{key:e.value}))]),_:1})]))}});const y8=Xr(S8,[["__scopeId","data-v-0b8be308"]]),L8={class:"main-eidtor"},D8={class:"main-footer"},k8=["disabled"],x8=Un({__name:"container",props:{disabled:Boolean},emits:["save"],setup(o,{emit:e}){const t=()=>{e("save")},i=n=>{n.keyCode===83&&(navigator.platform.match("Mac")?n.metaKey:n.ctrlKey)&&(t(),n.preventDefault())};return(n,s)=>(li(),Wn("div",{class:"main-container",onKeydown:s[0]||(s[0]=r=>i(r))},[Xn("div",L8,[yx(n.$slots,"default",{},void 0,!0)]),Xn("div",D8,[Xn("button",{class:"save",onClick:t,disabled:o.disabled}," \u4FDD\u5B58 ",8,k8)])],32))}});const I8=Xr(x8,[["__scopeId","data-v-be306a98"]]);globalThis&&globalThis.__awaiter;let E8=typeof document!="undefined"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function N8(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}),E8&&(t="\uFF3B"+t.replace(/[aouei]/g,"$&$&")+"\uFF3D"),t}function p(o,e,...t){return N8(e,t)}class T8{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?Yu.isErrorNoTelemetry(e)?new Yu(e.message+` `+e.stack):new Error(e.message+` `+e.stack):e},0)}}emit(e){this.listeners.forEach(t=>{t(e)})}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}}const dO=new T8;function Ee(o){ol(o)||dO.onUnexpectedError(o)}function Ai(o){ol(o)||dO.onUnexpectedExternalError(o)}function qN(o){if(o instanceof Error){const{name:e,message:t}=o,i=o.stacktrace||o.stack;return{$isError:!0,name:e,message:t,stack:i,noTelemetry:Yu.isErrorNoTelemetry(o)}}return o}const D0="Canceled";function ol(o){return o instanceof yc?!0:o instanceof Error&&o.name===D0&&o.message===D0}class yc extends Error{constructor(){super(D0),this.name=this.message}}function hO(){const o=new Error(D0);return o.name=o.message,o}function zo(o){return o?new Error(`Illegal argument: ${o}`):new Error("Illegal argument")}function M8(o){return o?new Error(`Illegal state: ${o}`):new Error("Illegal state")}class A8 extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}class Yu extends Error{constructor(e){super(e),this.name="ErrorNoTelemetry"}static fromError(e){if(e instanceof Yu)return e;const t=new Yu;return t.message=e.message,t.stack=e.stack,t}static isErrorNoTelemetry(e){return e.name==="ErrorNoTelemetry"}}class kx extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,kx.prototype);debugger}}function nc(o){const e=this;let t=!1,i;return function(){return t||(t=!0,i=o.apply(e,arguments)),i}}var Ue;(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(),R=D.next();if(I.done!==R.done)return!1;if(I.done)return!0;if(!x(I.value,R.value))return!1}}o.equals=w})(Ue||(Ue={}));class R8 extends Error{constructor(e){super(`Encountered errors while disposing of store. Errors: [${e.join(", ")}]`),this.errors=e}}function xx(o){return typeof o.dispose=="function"&&o.dispose.length===0}function et(o){if(Ue.is(o)){const e=[];for(const t of o)if(t)try{t.dispose()}catch(i){e.push(i)}if(e.length===1)throw e[0];if(e.length>1)throw new R8(e);return Array.isArray(o)?[]:o}else if(o)return o.dispose(),o}function Pr(...o){return ze(()=>et(o))}function ze(o){return{dispose:nc(()=>{o()})}}class ee{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){try{et(this._toDispose.values())}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?ee.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}}ee.DISABLE_DISPOSED_WARNING=!1;class z{constructor(){this._store=new ee,this._store}dispose(){this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}z.None=Object.freeze({dispose(){}});class Vn{constructor(){this._isDisposed=!1}get value(){return this._isDisposed?void 0:this._value}set value(e){var t;this._isDisposed||e===this._value||((t=this._value)===null||t===void 0||t.dispose(),this._value=e)}clear(){this.value=void 0}dispose(){var e;this._isDisposed=!0,(e=this._value)===null||e===void 0||e.dispose(),this._value=void 0}clearAndLeak(){const e=this._value;return this._value=void 0,e}}class O8{constructor(e){this._disposable=e,this._counter=1}acquire(){return this._counter++,this}release(){return--this._counter===0&&this._disposable.dispose(),this}}class P8{constructor(){this.dispose=()=>{},this.unset=()=>{},this.isset=()=>!1}set(e){let t=e;return this.unset=()=>t=void 0,this.isset=()=>t!==void 0,this.dispose=()=>{t&&(t(),t=void 0)},this}}class F8{constructor(e){this.object=e}dispose(){}}class $t{constructor(e){this.element=e,this.next=$t.Undefined,this.prev=$t.Undefined}}$t.Undefined=new $t(void 0);class wn{constructor(){this._first=$t.Undefined,this._last=$t.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===$t.Undefined}clear(){let e=this._first;for(;e!==$t.Undefined;){const t=e.next;e.prev=$t.Undefined,e.next=$t.Undefined,e=t}this._first=$t.Undefined,this._last=$t.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const i=new $t(e);if(this._first===$t.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!==$t.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==$t.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==$t.Undefined&&e.next!==$t.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===$t.Undefined&&e.next===$t.Undefined?(this._first=$t.Undefined,this._last=$t.Undefined):e.next===$t.Undefined?(this._last=this._last.prev,this._last.next=$t.Undefined):e.prev===$t.Undefined&&(this._first=this._first.next,this._first.prev=$t.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==$t.Undefined;)yield e.element,e=e.next}}var hw;const Mf="en";let k0=!1,x0=!1,Zb=!1,uO=!1,Ix=!1,Ex=!1,T_,Yb=Mf,B8,Cl;const ei=typeof self=="object"?self:typeof global=="object"?global:{};let bn;typeof ei.vscode!="undefined"&&typeof ei.vscode.process!="undefined"?bn=ei.vscode.process:typeof process!="undefined"&&(bn=process);const W8=typeof((hw=bn==null?void 0:bn.versions)===null||hw===void 0?void 0:hw.electron)=="string",V8=W8&&(bn==null?void 0:bn.type)==="renderer";if(typeof navigator=="object"&&!V8)Cl=navigator.userAgent,k0=Cl.indexOf("Windows")>=0,x0=Cl.indexOf("Macintosh")>=0,Ex=(Cl.indexOf("Macintosh")>=0||Cl.indexOf("iPad")>=0||Cl.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Zb=Cl.indexOf("Linux")>=0,Ix=!0,p({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),T_=Mf,Yb=T_;else if(typeof bn=="object"){k0=bn.platform==="win32",x0=bn.platform==="darwin",Zb=bn.platform==="linux",Zb&&!!bn.env.SNAP&&bn.env.SNAP_REVISION,bn.env.CI||bn.env.BUILD_ARTIFACTSTAGINGDIRECTORY,T_=Mf,Yb=Mf;const o=bn.env.VSCODE_NLS_CONFIG;if(o)try{const e=JSON.parse(o),t=e.availableLanguages["*"];T_=e.locale,Yb=t||Mf,B8=e._translationsConfigFile}catch(e){}uO=!0}else console.error("Unable to resolve platform.");const nn=k0,Ze=x0,sn=Zb,Uo=uO,Lc=Ix,H8=Ix&&typeof ei.importScripts=="function",Xa=Ex,zr=Cl,z8=Yb,U8=typeof ei.postMessage=="function"&&!ei.importScripts,gO=(()=>{if(U8){const o=[];ei.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}),ei.postMessage({vscodeScheduleAsyncWork:i},"*")}}return o=>setTimeout(o)})(),Os=x0||Ex?2:k0?1:3;let GN=!0,ZN=!1;function fO(){if(!ZN){ZN=!0;const o=new Uint8Array(2);o[0]=1,o[1]=2,GN=new Uint16Array(o.buffer)[0]===(2<<8)+1}return GN}const pO=!!(zr&&zr.indexOf("Chrome")>=0),$8=!!(zr&&zr.indexOf("Firefox")>=0),j8=!!(!pO&&zr&&zr.indexOf("Safari")>=0),K8=!!(zr&&zr.indexOf("Edg/")>=0);zr&&zr.indexOf("Android")>=0;const q8=ei.performance&&typeof ei.performance.now=="function";class Hn{constructor(e){this._highResolution=q8&&e,this._startTime=this._now(),this._stopTime=-1}static create(e=!0){return new Hn(e)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?ei.performance.now():Date.now()}}var pe;(function(o){o.None=()=>z.None;function e(x){return(y,D=null,I)=>{let R=!1,P;return P=x(H=>{if(!R)return P?P.dispose():R=!0,y.call(D,H)},null,I),R&&P.dispose(),P}}o.once=e;function t(x,y,D){return l((I,R=null,P)=>x(H=>I.call(R,y(H)),null,P),D)}o.map=t;function i(x,y,D){return l((I,R=null,P)=>x(H=>{y(H),I.call(R,H)},null,P),D)}o.forEach=i;function n(x,y,D){return l((I,R=null,P)=>x(H=>y(H)&&I.call(R,H),null,P),D)}o.filter=n;function s(x){return x}o.signal=s;function r(...x){return(y,D=null,I)=>Pr(...x.map(R=>R(P=>y.call(D,P),null,I)))}o.any=r;function a(x,y,D,I){let R=D;return t(x,P=>(R=y(R,P),R),I)}o.reduce=a;function l(x,y){let D;const I={onFirstListenerAdd(){D=x(R.fire,R)},onLastListenerRemove(){D==null||D.dispose()}},R=new O(I);return y==null||y.add(R),R.event}function c(x,y,D=100,I=!1,R,P){let H,$,ne,ae=0;const de={leakWarningThreshold:R,onFirstListenerAdd(){H=x(Se=>{ae++,$=y($,Se),I&&!ne&&(we.fire($),$=void 0),clearTimeout(ne),ne=setTimeout(()=>{const Me=$;$=void 0,ne=void 0,(!I||ae>1)&&we.fire(Me),ae=0},D)})},onLastListenerRemove(){H.dispose()}},we=new O(de);return P==null||P.add(we),we.event}o.debounce=c;function d(x,y=(I,R)=>I===R,D){let I=!0,R;return n(x,P=>{const H=I||!y(P,R);return I=!1,R=P,H},D)}o.latch=d;function h(x,y,D){return[o.filter(x,y,D),o.filter(x,I=>!y(I),D)]}o.split=h;function u(x,y=!1,D=[]){let I=D.slice(),R=x($=>{I?I.push($):H.fire($)});const P=()=>{I==null||I.forEach($=>H.fire($)),I=null},H=new O({onFirstListenerAdd(){R||(R=x($=>H.fire($)))},onFirstListenerDidAdd(){I&&(y?setTimeout(P):P())},onLastListenerRemove(){R&&R.dispose(),R=null}});return H.event}o.buffer=u;class g{constructor(y){this.event=y,this.disposables=new ee}map(y){return new g(t(this.event,y,this.disposables))}forEach(y){return new g(i(this.event,y,this.disposables))}filter(y){return new g(n(this.event,y,this.disposables))}reduce(y,D){return new g(a(this.event,y,D,this.disposables))}latch(){return new g(d(this.event,void 0,this.disposables))}debounce(y,D=100,I=!1,R){return new g(c(this.event,y,D,I,R,this.disposables))}on(y,D,I){return this.event(y,D,I)}once(y,D,I){return e(this.event)(y,D,I)}dispose(){this.disposables.dispose()}}function f(x){return new g(x)}o.chain=f;function _(x,y,D=I=>I){const I=(...$)=>H.fire(D(...$)),R=()=>x.on(y,I),P=()=>x.removeListener(y,I),H=new O({onFirstListenerAdd:R,onLastListenerRemove:P});return H.event}o.fromNodeEventEmitter=_;function b(x,y,D=I=>I){const I=(...$)=>H.fire(D(...$)),R=()=>x.addEventListener(y,I),P=()=>x.removeEventListener(y,I),H=new O({onFirstListenerAdd:R,onLastListenerRemove:P});return H.event}o.fromDOMEventEmitter=b;function v(x){return new Promise(y=>e(x)(y))}o.toPromise=v;function C(x,y){return y(void 0),x(D=>y(D))}o.runAndSubscribe=C;function w(x,y){let D=null;function I(P){D==null||D.dispose(),D=new ee,y(P,D)}I(void 0);const R=x(P=>I(P));return ze(()=>{R.dispose(),D==null||D.dispose()})}o.runAndSubscribeWithStore=w;class S{constructor(y,D){this.obs=y,this._counter=0,this._hasChanged=!1;const I={onFirstListenerAdd:()=>{y.addObserver(this)},onLastListenerRemove:()=>{y.removeObserver(this)}};this.emitter=new O(I),D&&D.add(this.emitter)}beginUpdate(y){this._counter++}handleChange(y,D){this._hasChanged=!0}endUpdate(y){--this._counter===0&&this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this.obs.get()))}}function k(x,y){return new S(x,y).emitter.event}o.fromObservable=k})(pe||(pe={}));class CC{constructor(e){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${e}_${CC._idPool++}`}start(e){this._stopWatch=new Hn(!0),this._listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this._elapsedOverall+=e,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${e.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}CC._idPool=0;class Nx{constructor(e){this.value=e}static create(){var e;return new Nx((e=new Error().stack)!==null&&e!==void 0?e:"")}print(){console.warn(this.value.split(` `).slice(2).join(` `))}}class G8{constructor(e,t,i){this.callback=e,this.callbackThis=t,this.stack=i,this.subscription=new P8}invoke(e){this.callback.call(this.callbackThis,e)}}class O{constructor(e){var t,i;this._disposed=!1,this._options=e,this._leakageMon=void 0,this._perfMon=!((t=this._options)===null||t===void 0)&&t._profName?new CC(this._options._profName):void 0,this._deliveryQueue=(i=this._options)===null||i===void 0?void 0:i.deliveryQueue}dispose(){var e,t,i,n;this._disposed||(this._disposed=!0,this._listeners&&this._listeners.clear(),(e=this._deliveryQueue)===null||e===void 0||e.clear(this),(i=(t=this._options)===null||t===void 0?void 0:t.onLastListenerRemove)===null||i===void 0||i.call(t),(n=this._leakageMon)===null||n===void 0||n.dispose())}get event(){return this._event||(this._event=(e,t,i)=>{var n,s,r;this._listeners||(this._listeners=new wn);const a=this._listeners.isEmpty();a&&((n=this._options)===null||n===void 0?void 0:n.onFirstListenerAdd)&&this._options.onFirstListenerAdd(this);let l,c;this._leakageMon&&this._listeners.size>=30&&(c=Nx.create(),l=this._leakageMon.check(c,this._listeners.size+1));const d=new G8(e,t,c),h=this._listeners.push(d);a&&((s=this._options)===null||s===void 0?void 0:s.onFirstListenerDidAdd)&&this._options.onFirstListenerDidAdd(this),!((r=this._options)===null||r===void 0)&&r.onListenerDidAdd&&this._options.onListenerDidAdd(this,e,t);const u=d.subscription.set(()=>{l==null||l(),this._disposed||(h(),this._options&&this._options.onLastListenerRemove&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)))});return i instanceof ee?i.add(u):Array.isArray(i)&&i.push(u),u}),this._event}fire(e){var t,i;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new Z8);for(const n of this._listeners)this._deliveryQueue.push(this,n,e);(t=this._perfMon)===null||t===void 0||t.start(this._deliveryQueue.size),this._deliveryQueue.deliver(),(i=this._perfMon)===null||i===void 0||i.stop()}}}class mO{constructor(){this._queue=new wn}get size(){return this._queue.size}push(e,t,i){this._queue.push(new Y8(e,t,i))}clear(e){const t=new wn;for(const i of this._queue)i.emitter!==e&&t.push(i);this._queue=t}deliver(){for(;this._queue.size>0;){const e=this._queue.shift();try{e.listener.invoke(e.event)}catch(t){Ee(t)}}}}class Z8 extends mO{clear(e){this._queue.clear()}}class Y8{constructor(e,t,i){this.emitter=e,this.listener=t,this.event=i}}class I0 extends O{constructor(e){super(e),this._isPaused=0,this._eventQueue=new wn,this._mergeFn=e==null?void 0:e.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const e=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(e))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(e){this._listeners&&(this._isPaused!==0?this._eventQueue.push(e):super.fire(e))}}class X8 extends I0{constructor(e){var t;super(e),this._delay=(t=e.delay)!==null&&t!==void 0?t:100}fire(e){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(e)}}class Tx{constructor(){this.buffers=[]}wrapEvent(e){return(t,i,n)=>e(s=>{const r=this.buffers[this.buffers.length-1];r?r.push(()=>t.call(i,s)):t.call(i,s)},void 0,n)}bufferEvents(e){const t=[];this.buffers.push(t);const i=e();return this.buffers.pop(),t.forEach(n=>n()),i}}class YN{constructor(){this.listening=!1,this.inputEvent=pe.None,this.inputEventListener=z.None,this.emitter=new O({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}class gy{constructor(){this._zoomFactor=1}getZoomFactor(){return this._zoomFactor}}gy.INSTANCE=new gy;class Q8 extends z{constructor(){super(),this._onDidChange=this._register(new O),this.onDidChange=this._onDidChange.event,this._listener=()=>this._handleChange(!0),this._mediaQueryList=null,this._handleChange(!1)}_handleChange(e){var t;(t=this._mediaQueryList)===null||t===void 0||t.removeEventListener("change",this._listener),this._mediaQueryList=matchMedia(`(resolution: ${window.devicePixelRatio}dppx)`),this._mediaQueryList.addEventListener("change",this._listener),e&&this._onDidChange.fire()}}class J8 extends z{constructor(){super(),this._onDidChange=this._register(new O),this.onDidChange=this._onDidChange.event,this._value=this._getPixelRatio();const e=this._register(new Q8);this._register(e.onDidChange(()=>{this._value=this._getPixelRatio(),this._onDidChange.fire(this._value)}))}get value(){return this._value}_getPixelRatio(){const e=document.createElement("canvas").getContext("2d"),t=window.devicePixelRatio||1,i=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return t/i}}class e6{constructor(){this._pixelRatioMonitor=null}_getOrCreatePixelRatioMonitor(){return this._pixelRatioMonitor||(this._pixelRatioMonitor=new J8),this._pixelRatioMonitor}get value(){return this._getOrCreatePixelRatioMonitor().value}get onDidChange(){return this._getOrCreatePixelRatioMonitor().onDidChange}}function Mx(o,e){typeof o=="string"&&(o=window.matchMedia(o)),o.addEventListener("change",e)}const Xu=new e6;function _O(){return gy.INSTANCE.getZoomFactor()}const Rg=navigator.userAgent,Ls=Rg.indexOf("Firefox")>=0,$l=Rg.indexOf("AppleWebKit")>=0,Ax=Rg.indexOf("Chrome")>=0,Qa=!Ax&&Rg.indexOf("Safari")>=0,Rx=!Ax&&!Qa&&$l,t6=Rg.indexOf("Electron/")>=0,bO=Rg.indexOf("Android")>=0;let fy=!1;if(window.matchMedia){const o=window.matchMedia("(display-mode: standalone)");fy=o.matches,Mx(o,({matches:e})=>{fy=e})}function Ox(){return fy}const i6=Object.freeze(Object.defineProperty({__proto__:null,addMatchMediaChangeListener:Mx,PixelRatio:Xu,getZoomFactor:_O,isFirefox:Ls,isWebKit:$l,isChrome:Ax,isSafari:Qa,isWebkitWebView:Rx,isElectron:t6,isAndroid:bO,isStandalone:Ox},Symbol.toStringTag,{value:"Module"}));function vO(o){return Array.isArray(o)}function ts(o){return typeof o=="string"}function Fn(o){return typeof o=="object"&&o!==null&&!Array.isArray(o)&&!(o instanceof RegExp)&&!(o instanceof Date)}function n6(o){const e=Object.getPrototypeOf(Uint8Array);return typeof o=="object"&&o instanceof e}function sc(o){return typeof o=="number"&&!isNaN(o)}function XN(o){return!!o&&typeof o[Symbol.iterator]=="function"}function CO(o){return o===!0||o===!1}function Qn(o){return typeof o=="undefined"}function s6(o){return!_s(o)}function _s(o){return Qn(o)||o===null}function gt(o,e){if(!o)throw new Error(e?`Unexpected type, expected '${e}'`:"Unexpected type")}function M_(o){if(_s(o))throw new Error("Assertion Failed: argument is undefined or null");return o}function E0(o){return typeof o=="function"}function o6(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 Na(o){return o===null?void 0:o}function wC(o,e="Unreachable"){throw new Error(e)}const Fx={clipboard:{writeText:Uo||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:Uo||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText)},keyboard:(()=>Uo||Ox()?0:navigator.keyboard||Qa?1:2)(),touch:"ontouchstart"in window||navigator.maxTouchPoints>0,pointerEvents:window.PointerEvent&&("ontouchstart"in window||window.navigator.maxTouchPoints>0||navigator.maxTouchPoints>0)};class Bx{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const Xb=new Bx,py=new Bx,my=new Bx,wO=new Array(230),c6=Object.create(null),d6=Object.create(null),Wx=[];for(let o=0;o<=193;o++)Wx[o]=-1;(function(){const o="",e=[[0,1,0,"None",0,"unknown",0,"VK_UNKNOWN",o,o],[0,1,1,"Hyper",0,o,0,o,o,o],[0,1,2,"Super",0,o,0,o,o,o],[0,1,3,"Fn",0,o,0,o,o,o],[0,1,4,"FnLock",0,o,0,o,o,o],[0,1,5,"Suspend",0,o,0,o,o,o],[0,1,6,"Resume",0,o,0,o,o,o],[0,1,7,"Turbo",0,o,0,o,o,o],[0,1,8,"Sleep",0,o,0,"VK_SLEEP",o,o],[0,1,9,"WakeUp",0,o,0,o,o,o],[31,0,10,"KeyA",31,"A",65,"VK_A",o,o],[32,0,11,"KeyB",32,"B",66,"VK_B",o,o],[33,0,12,"KeyC",33,"C",67,"VK_C",o,o],[34,0,13,"KeyD",34,"D",68,"VK_D",o,o],[35,0,14,"KeyE",35,"E",69,"VK_E",o,o],[36,0,15,"KeyF",36,"F",70,"VK_F",o,o],[37,0,16,"KeyG",37,"G",71,"VK_G",o,o],[38,0,17,"KeyH",38,"H",72,"VK_H",o,o],[39,0,18,"KeyI",39,"I",73,"VK_I",o,o],[40,0,19,"KeyJ",40,"J",74,"VK_J",o,o],[41,0,20,"KeyK",41,"K",75,"VK_K",o,o],[42,0,21,"KeyL",42,"L",76,"VK_L",o,o],[43,0,22,"KeyM",43,"M",77,"VK_M",o,o],[44,0,23,"KeyN",44,"N",78,"VK_N",o,o],[45,0,24,"KeyO",45,"O",79,"VK_O",o,o],[46,0,25,"KeyP",46,"P",80,"VK_P",o,o],[47,0,26,"KeyQ",47,"Q",81,"VK_Q",o,o],[48,0,27,"KeyR",48,"R",82,"VK_R",o,o],[49,0,28,"KeyS",49,"S",83,"VK_S",o,o],[50,0,29,"KeyT",50,"T",84,"VK_T",o,o],[51,0,30,"KeyU",51,"U",85,"VK_U",o,o],[52,0,31,"KeyV",52,"V",86,"VK_V",o,o],[53,0,32,"KeyW",53,"W",87,"VK_W",o,o],[54,0,33,"KeyX",54,"X",88,"VK_X",o,o],[55,0,34,"KeyY",55,"Y",89,"VK_Y",o,o],[56,0,35,"KeyZ",56,"Z",90,"VK_Z",o,o],[22,0,36,"Digit1",22,"1",49,"VK_1",o,o],[23,0,37,"Digit2",23,"2",50,"VK_2",o,o],[24,0,38,"Digit3",24,"3",51,"VK_3",o,o],[25,0,39,"Digit4",25,"4",52,"VK_4",o,o],[26,0,40,"Digit5",26,"5",53,"VK_5",o,o],[27,0,41,"Digit6",27,"6",54,"VK_6",o,o],[28,0,42,"Digit7",28,"7",55,"VK_7",o,o],[29,0,43,"Digit8",29,"8",56,"VK_8",o,o],[30,0,44,"Digit9",30,"9",57,"VK_9",o,o],[21,0,45,"Digit0",21,"0",48,"VK_0",o,o],[3,1,46,"Enter",3,"Enter",13,"VK_RETURN",o,o],[9,1,47,"Escape",9,"Escape",27,"VK_ESCAPE",o,o],[1,1,48,"Backspace",1,"Backspace",8,"VK_BACK",o,o],[2,1,49,"Tab",2,"Tab",9,"VK_TAB",o,o],[10,1,50,"Space",10,"Space",32,"VK_SPACE",o,o],[83,0,51,"Minus",83,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[81,0,52,"Equal",81,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[87,0,53,"BracketLeft",87,"[",219,"VK_OEM_4","[","OEM_4"],[89,0,54,"BracketRight",89,"]",221,"VK_OEM_6","]","OEM_6"],[88,0,55,"Backslash",88,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,0,56,"IntlHash",0,o,0,o,o,o],[80,0,57,"Semicolon",80,";",186,"VK_OEM_1",";","OEM_1"],[90,0,58,"Quote",90,"'",222,"VK_OEM_7","'","OEM_7"],[86,0,59,"Backquote",86,"`",192,"VK_OEM_3","`","OEM_3"],[82,0,60,"Comma",82,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[84,0,61,"Period",84,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[85,0,62,"Slash",85,"/",191,"VK_OEM_2","/","OEM_2"],[8,1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",o,o],[59,1,64,"F1",59,"F1",112,"VK_F1",o,o],[60,1,65,"F2",60,"F2",113,"VK_F2",o,o],[61,1,66,"F3",61,"F3",114,"VK_F3",o,o],[62,1,67,"F4",62,"F4",115,"VK_F4",o,o],[63,1,68,"F5",63,"F5",116,"VK_F5",o,o],[64,1,69,"F6",64,"F6",117,"VK_F6",o,o],[65,1,70,"F7",65,"F7",118,"VK_F7",o,o],[66,1,71,"F8",66,"F8",119,"VK_F8",o,o],[67,1,72,"F9",67,"F9",120,"VK_F9",o,o],[68,1,73,"F10",68,"F10",121,"VK_F10",o,o],[69,1,74,"F11",69,"F11",122,"VK_F11",o,o],[70,1,75,"F12",70,"F12",123,"VK_F12",o,o],[0,1,76,"PrintScreen",0,o,0,o,o,o],[79,1,77,"ScrollLock",79,"ScrollLock",145,"VK_SCROLL",o,o],[7,1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",o,o],[19,1,79,"Insert",19,"Insert",45,"VK_INSERT",o,o],[14,1,80,"Home",14,"Home",36,"VK_HOME",o,o],[11,1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",o,o],[20,1,82,"Delete",20,"Delete",46,"VK_DELETE",o,o],[13,1,83,"End",13,"End",35,"VK_END",o,o],[12,1,84,"PageDown",12,"PageDown",34,"VK_NEXT",o,o],[17,1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",o],[15,1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",o],[18,1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",o],[16,1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",o],[78,1,89,"NumLock",78,"NumLock",144,"VK_NUMLOCK",o,o],[108,1,90,"NumpadDivide",108,"NumPad_Divide",111,"VK_DIVIDE",o,o],[103,1,91,"NumpadMultiply",103,"NumPad_Multiply",106,"VK_MULTIPLY",o,o],[106,1,92,"NumpadSubtract",106,"NumPad_Subtract",109,"VK_SUBTRACT",o,o],[104,1,93,"NumpadAdd",104,"NumPad_Add",107,"VK_ADD",o,o],[3,1,94,"NumpadEnter",3,o,0,o,o,o],[94,1,95,"Numpad1",94,"NumPad1",97,"VK_NUMPAD1",o,o],[95,1,96,"Numpad2",95,"NumPad2",98,"VK_NUMPAD2",o,o],[96,1,97,"Numpad3",96,"NumPad3",99,"VK_NUMPAD3",o,o],[97,1,98,"Numpad4",97,"NumPad4",100,"VK_NUMPAD4",o,o],[98,1,99,"Numpad5",98,"NumPad5",101,"VK_NUMPAD5",o,o],[99,1,100,"Numpad6",99,"NumPad6",102,"VK_NUMPAD6",o,o],[100,1,101,"Numpad7",100,"NumPad7",103,"VK_NUMPAD7",o,o],[101,1,102,"Numpad8",101,"NumPad8",104,"VK_NUMPAD8",o,o],[102,1,103,"Numpad9",102,"NumPad9",105,"VK_NUMPAD9",o,o],[93,1,104,"Numpad0",93,"NumPad0",96,"VK_NUMPAD0",o,o],[107,1,105,"NumpadDecimal",107,"NumPad_Decimal",110,"VK_DECIMAL",o,o],[92,0,106,"IntlBackslash",92,"OEM_102",226,"VK_OEM_102",o,o],[58,1,107,"ContextMenu",58,"ContextMenu",93,o,o,o],[0,1,108,"Power",0,o,0,o,o,o],[0,1,109,"NumpadEqual",0,o,0,o,o,o],[71,1,110,"F13",71,"F13",124,"VK_F13",o,o],[72,1,111,"F14",72,"F14",125,"VK_F14",o,o],[73,1,112,"F15",73,"F15",126,"VK_F15",o,o],[74,1,113,"F16",74,"F16",127,"VK_F16",o,o],[75,1,114,"F17",75,"F17",128,"VK_F17",o,o],[76,1,115,"F18",76,"F18",129,"VK_F18",o,o],[77,1,116,"F19",77,"F19",130,"VK_F19",o,o],[0,1,117,"F20",0,o,0,"VK_F20",o,o],[0,1,118,"F21",0,o,0,"VK_F21",o,o],[0,1,119,"F22",0,o,0,"VK_F22",o,o],[0,1,120,"F23",0,o,0,"VK_F23",o,o],[0,1,121,"F24",0,o,0,"VK_F24",o,o],[0,1,122,"Open",0,o,0,o,o,o],[0,1,123,"Help",0,o,0,o,o,o],[0,1,124,"Select",0,o,0,o,o,o],[0,1,125,"Again",0,o,0,o,o,o],[0,1,126,"Undo",0,o,0,o,o,o],[0,1,127,"Cut",0,o,0,o,o,o],[0,1,128,"Copy",0,o,0,o,o,o],[0,1,129,"Paste",0,o,0,o,o,o],[0,1,130,"Find",0,o,0,o,o,o],[0,1,131,"AudioVolumeMute",112,"AudioVolumeMute",173,"VK_VOLUME_MUTE",o,o],[0,1,132,"AudioVolumeUp",113,"AudioVolumeUp",175,"VK_VOLUME_UP",o,o],[0,1,133,"AudioVolumeDown",114,"AudioVolumeDown",174,"VK_VOLUME_DOWN",o,o],[105,1,134,"NumpadComma",105,"NumPad_Separator",108,"VK_SEPARATOR",o,o],[110,0,135,"IntlRo",110,"ABNT_C1",193,"VK_ABNT_C1",o,o],[0,1,136,"KanaMode",0,o,0,o,o,o],[0,0,137,"IntlYen",0,o,0,o,o,o],[0,1,138,"Convert",0,o,0,o,o,o],[0,1,139,"NonConvert",0,o,0,o,o,o],[0,1,140,"Lang1",0,o,0,o,o,o],[0,1,141,"Lang2",0,o,0,o,o,o],[0,1,142,"Lang3",0,o,0,o,o,o],[0,1,143,"Lang4",0,o,0,o,o,o],[0,1,144,"Lang5",0,o,0,o,o,o],[0,1,145,"Abort",0,o,0,o,o,o],[0,1,146,"Props",0,o,0,o,o,o],[0,1,147,"NumpadParenLeft",0,o,0,o,o,o],[0,1,148,"NumpadParenRight",0,o,0,o,o,o],[0,1,149,"NumpadBackspace",0,o,0,o,o,o],[0,1,150,"NumpadMemoryStore",0,o,0,o,o,o],[0,1,151,"NumpadMemoryRecall",0,o,0,o,o,o],[0,1,152,"NumpadMemoryClear",0,o,0,o,o,o],[0,1,153,"NumpadMemoryAdd",0,o,0,o,o,o],[0,1,154,"NumpadMemorySubtract",0,o,0,o,o,o],[0,1,155,"NumpadClear",126,"Clear",12,"VK_CLEAR",o,o],[0,1,156,"NumpadClearEntry",0,o,0,o,o,o],[5,1,0,o,5,"Ctrl",17,"VK_CONTROL",o,o],[4,1,0,o,4,"Shift",16,"VK_SHIFT",o,o],[6,1,0,o,6,"Alt",18,"VK_MENU",o,o],[57,1,0,o,57,"Meta",0,"VK_COMMAND",o,o],[5,1,157,"ControlLeft",5,o,0,"VK_LCONTROL",o,o],[4,1,158,"ShiftLeft",4,o,0,"VK_LSHIFT",o,o],[6,1,159,"AltLeft",6,o,0,"VK_LMENU",o,o],[57,1,160,"MetaLeft",57,o,0,"VK_LWIN",o,o],[5,1,161,"ControlRight",5,o,0,"VK_RCONTROL",o,o],[4,1,162,"ShiftRight",4,o,0,"VK_RSHIFT",o,o],[6,1,163,"AltRight",6,o,0,"VK_RMENU",o,o],[57,1,164,"MetaRight",57,o,0,"VK_RWIN",o,o],[0,1,165,"BrightnessUp",0,o,0,o,o,o],[0,1,166,"BrightnessDown",0,o,0,o,o,o],[0,1,167,"MediaPlay",0,o,0,o,o,o],[0,1,168,"MediaRecord",0,o,0,o,o,o],[0,1,169,"MediaFastForward",0,o,0,o,o,o],[0,1,170,"MediaRewind",0,o,0,o,o,o],[114,1,171,"MediaTrackNext",119,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",o,o],[115,1,172,"MediaTrackPrevious",120,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",o,o],[116,1,173,"MediaStop",121,"MediaStop",178,"VK_MEDIA_STOP",o,o],[0,1,174,"Eject",0,o,0,o,o,o],[117,1,175,"MediaPlayPause",122,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",o,o],[0,1,176,"MediaSelect",123,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",o,o],[0,1,177,"LaunchMail",124,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",o,o],[0,1,178,"LaunchApp2",125,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",o,o],[0,1,179,"LaunchApp1",0,o,0,"VK_MEDIA_LAUNCH_APP1",o,o],[0,1,180,"SelectTask",0,o,0,o,o,o],[0,1,181,"LaunchScreenSaver",0,o,0,o,o,o],[0,1,182,"BrowserSearch",115,"BrowserSearch",170,"VK_BROWSER_SEARCH",o,o],[0,1,183,"BrowserHome",116,"BrowserHome",172,"VK_BROWSER_HOME",o,o],[112,1,184,"BrowserBack",117,"BrowserBack",166,"VK_BROWSER_BACK",o,o],[113,1,185,"BrowserForward",118,"BrowserForward",167,"VK_BROWSER_FORWARD",o,o],[0,1,186,"BrowserStop",0,o,0,"VK_BROWSER_STOP",o,o],[0,1,187,"BrowserRefresh",0,o,0,"VK_BROWSER_REFRESH",o,o],[0,1,188,"BrowserFavorites",0,o,0,"VK_BROWSER_FAVORITES",o,o],[0,1,189,"ZoomToggle",0,o,0,o,o,o],[0,1,190,"MailReply",0,o,0,o,o,o],[0,1,191,"MailForward",0,o,0,o,o,o],[0,1,192,"MailSend",0,o,0,o,o,o],[109,1,0,o,109,"KeyInComposition",229,o,o,o],[111,1,0,o,111,"ABNT_C2",194,"VK_ABNT_C2",o,o],[91,1,0,o,91,"OEM_8",223,"VK_OEM_8",o,o],[0,1,0,o,0,o,0,"VK_KANA",o,o],[0,1,0,o,0,o,0,"VK_HANGUL",o,o],[0,1,0,o,0,o,0,"VK_JUNJA",o,o],[0,1,0,o,0,o,0,"VK_FINAL",o,o],[0,1,0,o,0,o,0,"VK_HANJA",o,o],[0,1,0,o,0,o,0,"VK_KANJI",o,o],[0,1,0,o,0,o,0,"VK_CONVERT",o,o],[0,1,0,o,0,o,0,"VK_NONCONVERT",o,o],[0,1,0,o,0,o,0,"VK_ACCEPT",o,o],[0,1,0,o,0,o,0,"VK_MODECHANGE",o,o],[0,1,0,o,0,o,0,"VK_SELECT",o,o],[0,1,0,o,0,o,0,"VK_PRINT",o,o],[0,1,0,o,0,o,0,"VK_EXECUTE",o,o],[0,1,0,o,0,o,0,"VK_SNAPSHOT",o,o],[0,1,0,o,0,o,0,"VK_HELP",o,o],[0,1,0,o,0,o,0,"VK_APPS",o,o],[0,1,0,o,0,o,0,"VK_PROCESSKEY",o,o],[0,1,0,o,0,o,0,"VK_PACKET",o,o],[0,1,0,o,0,o,0,"VK_DBE_SBCSCHAR",o,o],[0,1,0,o,0,o,0,"VK_DBE_DBCSCHAR",o,o],[0,1,0,o,0,o,0,"VK_ATTN",o,o],[0,1,0,o,0,o,0,"VK_CRSEL",o,o],[0,1,0,o,0,o,0,"VK_EXSEL",o,o],[0,1,0,o,0,o,0,"VK_EREOF",o,o],[0,1,0,o,0,o,0,"VK_PLAY",o,o],[0,1,0,o,0,o,0,"VK_ZOOM",o,o],[0,1,0,o,0,o,0,"VK_NONAME",o,o],[0,1,0,o,0,o,0,"VK_PA1",o,o],[0,1,0,o,0,o,0,"VK_OEM_CLEAR",o,o]],t=[],i=[];for(const n of e){const[s,r,a,l,c,d,h,u,g,f]=n;if(i[a]||(i[a]=!0,c6[l]=a,d6[l.toLowerCase()]=a,r&&(Wx[a]=c)),!t[c]){if(t[c]=!0,!d)throw new Error(`String representation missing for key code ${c} around scan code ${l}`);Xb.define(c,d),py.define(c,g||d),my.define(c,f||g||d)}h&&(wO[h]=c)}})();var sd;(function(o){function e(a){return Xb.keyCodeToStr(a)}o.toString=e;function t(a){return Xb.strToKeyCode(a)}o.fromString=t;function i(a){return py.keyCodeToStr(a)}o.toUserSettingsUS=i;function n(a){return my.keyCodeToStr(a)}o.toUserSettingsGeneral=n;function s(a){return py.strToKeyCode(a)||my.strToKeyCode(a)}o.fromUserSettings=s;function r(a){if(a>=93&&a<=108)return null;switch(a){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return Xb.keyCodeToStr(a)}o.toElectronAccelerator=r})(sd||(sd={}));function vi(o,e){const t=(e&65535)<<16>>>0;return(o|t)>>>0}function _y(o,e){if(o===0)return null;const t=(o&65535)>>>0,i=(o&4294901760)>>>16;return i!==0?new N0([uw(t,e),uw(i,e)]):new N0([uw(t,e)])}function uw(o,e){const t=!!(o&2048),i=!!(o&256),n=e===2?i:t,s=!!(o&1024),r=!!(o&512),a=e===2?t:i,l=o&255;return new Td(n,s,r,a,l)}class Td{constructor(e,t,i,n,s){this.ctrlKey=e,this.shiftKey=t,this.altKey=i,this.metaKey=n,this.keyCode=s}equals(e){return this.ctrlKey===e.ctrlKey&&this.shiftKey===e.shiftKey&&this.altKey===e.altKey&&this.metaKey===e.metaKey&&this.keyCode===e.keyCode}isModifierKey(){return this.keyCode===0||this.keyCode===5||this.keyCode===57||this.keyCode===6||this.keyCode===4}toChord(){return new N0([this])}isDuplicateModifierCase(){return this.ctrlKey&&this.keyCode===5||this.shiftKey&&this.keyCode===4||this.altKey&&this.keyCode===6||this.metaKey&&this.keyCode===57}}class N0{constructor(e){if(e.length===0)throw zo("parts");this.parts=e}}class h6{constructor(e,t,i,n,s,r){this.ctrlKey=e,this.shiftKey=t,this.altKey=i,this.metaKey=n,this.keyLabel=s,this.keyAriaLabel=r}}class u6{}function g6(o){if(o.charCode){const t=String.fromCharCode(o.charCode).toUpperCase();return sd.fromString(t)}const e=o.keyCode;if(e===3)return 7;if(Ls){if(e===59)return 80;if(e===107)return 81;if(e===109)return 83;if(Ze&&e===224)return 57}else if($l){if(e===91)return 57;if(Ze&&e===93)return 57;if(!Ze&&e===92)return 57}return wO[e]||0}const f6=Ze?256:2048,p6=512,m6=1024,_6=Ze?2048:256;class Mt{constructor(e){this._standardKeyboardEventBrand=!0;const t=e;this.browserEvent=t,this.target=t.target,this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,this.keyCode=g6(t),this.code=t.code,this.ctrlKey=this.ctrlKey||this.keyCode===5,this.altKey=this.altKey||this.keyCode===6,this.shiftKey=this.shiftKey||this.keyCode===4,this.metaKey=this.metaKey||this.keyCode===57,this._asKeybinding=this._computeKeybinding(),this._asRuntimeKeybinding=this._computeRuntimeKeybinding()}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()}toKeybinding(){return this._asRuntimeKeybinding}equals(e){return this._asKeybinding===e}_computeKeybinding(){let e=0;this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(e=this.keyCode);let t=0;return this.ctrlKey&&(t|=f6),this.altKey&&(t|=p6),this.shiftKey&&(t|=m6),this.metaKey&&(t|=_6),t|=e,t}_computeRuntimeKeybinding(){let e=0;return this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(e=this.keyCode),new Td(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e)}}let QN=!1,af=null;function b6(o){if(!o.parent||o.parent===o)return null;try{const e=o.location,t=o.parent.location;if(e.origin!=="null"&&t.origin!=="null"&&e.origin!==t.origin)return QN=!0,null}catch(e){return QN=!0,null}return o.parent}class v6{static getSameOriginWindowChain(){if(!af){af=[];let e=window,t;do t=b6(e),t?af.push({window:e,iframeElement:e.frameElement||null}):af.push({window:e,iframeElement:null}),e=t;while(e)}return af.slice(0)}static getPositionOfChildWindowRelativeToAncestorWindow(e,t){if(!t||e===t)return{top:0,left:0};let i=0,n=0;const s=this.getSameOriginWindowChain();for(const r of s){if(i+=r.window.scrollY,n+=r.window.scrollX,r.window===t||!r.iframeElement)break;const a=r.iframeElement.getBoundingClientRect();i+=a.top,n+=a.left}return{top:i,left:n}}}class Ir{constructor(e){this.timestamp=Date.now(),this.browserEvent=e,this.leftButton=e.button===0,this.middleButton=e.button===1,this.rightButton=e.button===2,this.buttons=e.buttons,this.target=e.target,this.detail=e.detail||1,e.type==="dblclick"&&(this.detail=2),this.ctrlKey=e.ctrlKey,this.shiftKey=e.shiftKey,this.altKey=e.altKey,this.metaKey=e.metaKey,typeof e.pageX=="number"?(this.posx=e.pageX,this.posy=e.pageY):(this.posx=e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,this.posy=e.clientY+document.body.scrollTop+document.documentElement.scrollTop);const t=v6.getPositionOfChildWindowRelativeToAncestorWindow(self,e.view);this.posx-=t.left,this.posy-=t.top}preventDefault(){this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent.stopPropagation()}}class Qu{constructor(e,t=0,i=0){if(this.browserEvent=e||null,this.target=e?e.target||e.targetNode||e.srcElement:null,this.deltaY=i,this.deltaX=t,e){const n=e,s=e;if(typeof n.wheelDeltaY!="undefined")this.deltaY=n.wheelDeltaY/120;else if(typeof s.VERTICAL_AXIS!="undefined"&&s.axis===s.VERTICAL_AXIS)this.deltaY=-s.detail/3;else if(e.type==="wheel"){const r=e;r.deltaMode===r.DOM_DELTA_LINE?Ls&&!Ze?this.deltaY=-e.deltaY/3:this.deltaY=-e.deltaY:this.deltaY=-e.deltaY/40}if(typeof n.wheelDeltaX!="undefined")Qa&&nn?this.deltaX=-(n.wheelDeltaX/120):this.deltaX=n.wheelDeltaX/120;else if(typeof s.HORIZONTAL_AXIS!="undefined"&&s.axis===s.HORIZONTAL_AXIS)this.deltaX=-e.detail/3;else if(e.type==="wheel"){const r=e;r.deltaMode===r.DOM_DELTA_LINE?Ls&&!Ze?this.deltaX=-e.deltaX/3:this.deltaX=-e.deltaX:this.deltaX=-e.deltaX/40}this.deltaY===0&&this.deltaX===0&&e.wheelDelta&&(this.deltaY=e.wheelDelta/120)}}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation()}}/*! @license DOMPurify 2.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.1/LICENSE */function C6(o){if(Array.isArray(o)){for(var e=0,t=Array(o.length);e1?t-1:0),n=1;n/gm),R6=Ja(/^data-[\-\w.\u00B7-\uFFFF]/),O6=Ja(/^aria-[\-\w]+$/),P6=Ja(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),F6=Ja(/^(?:\w+script|data):/i),B6=Ja(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Af=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o};function ar(o){if(Array.isArray(o)){for(var e=0,t=Array(o.length);e0&&arguments[0]!==void 0?arguments[0]:W6(),e=function(K){return yO(K)};if(e.version="2.3.1",e.removed=[],!o||!o.document||o.document.nodeType!==9)return e.isSupported=!1,e;var t=o.document,i=o.document,n=o.DocumentFragment,s=o.HTMLTemplateElement,r=o.Node,a=o.Element,l=o.NodeFilter,c=o.NamedNodeMap,d=c===void 0?o.NamedNodeMap||o.MozNamedAttrMap:c,h=o.Text,u=o.Comment,g=o.DOMParser,f=o.trustedTypes,_=a.prototype,b=A_(_,"cloneNode"),v=A_(_,"nextSibling"),C=A_(_,"childNodes"),w=A_(_,"parentNode");if(typeof s=="function"){var S=i.createElement("template");S.content&&S.content.ownerDocument&&(i=S.content.ownerDocument)}var k=V6(f,t),x=k&&Eh?k.createHTML(""):"",y=i,D=y.implementation,I=y.createNodeIterator,R=y.createDocumentFragment,P=y.getElementsByTagName,H=t.importNode,$={};try{$=Fc(i).documentMode?i.documentMode:{}}catch(Ve){}var ne={};e.isSupported=typeof w=="function"&&D&&typeof D.createHTMLDocument!="undefined"&&$!==9;var ae=M6,de=A6,we=R6,Se=O6,Me=F6,St=B6,mt=P6,_e=null,ge=ht({},[].concat(ar(nT),ar(gw),ar(fw),ar(pw),ar(sT))),It=null,Ri=ht({},[].concat(ar(oT),ar(mw),ar(rT),ar(R_))),Dn=null,Lo=null,sa=!0,Do=!0,or=!1,Oe=!1,hl=!1,nf=!1,sf=!1,ul=!1,Ih=!1,L_=!0,Eh=!1,D_=!0,Z=!0,U=!1,j={},E=null,M=ht({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),V=null,F=ht({},["audio","video","img","source","image","track"]),Y=null,ie=ht({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ye="http://www.w3.org/1998/Math/MathML",ve="http://www.w3.org/2000/svg",Fe="http://www.w3.org/1999/xhtml",Pe=Fe,Ct=!1,at=null,De=i.createElement("form"),pi=function(K){at&&at===K||((!K||(typeof K=="undefined"?"undefined":Af(K))!=="object")&&(K={}),K=Fc(K),_e="ALLOWED_TAGS"in K?ht({},K.ALLOWED_TAGS):ge,It="ALLOWED_ATTR"in K?ht({},K.ALLOWED_ATTR):Ri,Y="ADD_URI_SAFE_ATTR"in K?ht(Fc(ie),K.ADD_URI_SAFE_ATTR):ie,V="ADD_DATA_URI_TAGS"in K?ht(Fc(F),K.ADD_DATA_URI_TAGS):F,E="FORBID_CONTENTS"in K?ht({},K.FORBID_CONTENTS):M,Dn="FORBID_TAGS"in K?ht({},K.FORBID_TAGS):{},Lo="FORBID_ATTR"in K?ht({},K.FORBID_ATTR):{},j="USE_PROFILES"in K?K.USE_PROFILES:!1,sa=K.ALLOW_ARIA_ATTR!==!1,Do=K.ALLOW_DATA_ATTR!==!1,or=K.ALLOW_UNKNOWN_PROTOCOLS||!1,Oe=K.SAFE_FOR_TEMPLATES||!1,hl=K.WHOLE_DOCUMENT||!1,ul=K.RETURN_DOM||!1,Ih=K.RETURN_DOM_FRAGMENT||!1,L_=K.RETURN_DOM_IMPORT!==!1,Eh=K.RETURN_TRUSTED_TYPE||!1,sf=K.FORCE_BODY||!1,D_=K.SANITIZE_DOM!==!1,Z=K.KEEP_CONTENT!==!1,U=K.IN_PLACE||!1,mt=K.ALLOWED_URI_REGEXP||mt,Pe=K.NAMESPACE||Fe,Oe&&(Do=!1),Ih&&(ul=!0),j&&(_e=ht({},[].concat(ar(sT))),It=[],j.html===!0&&(ht(_e,nT),ht(It,oT)),j.svg===!0&&(ht(_e,gw),ht(It,mw),ht(It,R_)),j.svgFilters===!0&&(ht(_e,fw),ht(It,mw),ht(It,R_)),j.mathMl===!0&&(ht(_e,pw),ht(It,rT),ht(It,R_))),K.ADD_TAGS&&(_e===ge&&(_e=Fc(_e)),ht(_e,K.ADD_TAGS)),K.ADD_ATTR&&(It===Ri&&(It=Fc(It)),ht(It,K.ADD_ATTR)),K.ADD_URI_SAFE_ATTR&&ht(Y,K.ADD_URI_SAFE_ATTR),K.FORBID_CONTENTS&&(E===M&&(E=Fc(E)),ht(E,K.FORBID_CONTENTS)),Z&&(_e["#text"]=!0),hl&&ht(_e,["html","head","body"]),_e.table&&(ht(_e,["tbody"]),delete Dn.tbody),os&&os(K),at=K)},Gt=ht({},["mi","mo","mn","ms","mtext"]),Ns=ht({},["foreignobject","desc","title","annotation-xml"]),zt=ht({},gw);ht(zt,fw),ht(zt,N6);var Oi=ht({},pw);ht(Oi,T6);var Rc=function(K){var be=w(K);(!be||!be.tagName)&&(be={namespaceURI:Fe,tagName:"template"});var Te=$c(K.tagName),Ut=$c(be.tagName);if(K.namespaceURI===ve)return be.namespaceURI===Fe?Te==="svg":be.namespaceURI===ye?Te==="svg"&&(Ut==="annotation-xml"||Gt[Ut]):Boolean(zt[Te]);if(K.namespaceURI===ye)return be.namespaceURI===Fe?Te==="math":be.namespaceURI===ve?Te==="math"&&Ns[Ut]:Boolean(Oi[Te]);if(K.namespaceURI===Fe){if(be.namespaceURI===ve&&!Ns[Ut]||be.namespaceURI===ye&&!Gt[Ut])return!1;var kn=ht({},["title","style","font","a","script"]);return!Oi[Te]&&(kn[Te]||!zt[Te])}return!1},ds=function(K){lf(e.removed,{element:K});try{K.parentNode.removeChild(K)}catch(be){try{K.outerHTML=x}catch(Te){K.remove()}}},rr=function(K,be){try{lf(e.removed,{attribute:be.getAttributeNode(K),from:be})}catch(Te){lf(e.removed,{attribute:null,from:be})}if(be.removeAttribute(K),K==="is"&&!It[K])if(ul||Ih)try{ds(be)}catch(Te){}else try{be.setAttribute(K,"")}catch(Te){}},oa=function(K){var be=void 0,Te=void 0;if(sf)K=""+K;else{var Ut=tT(K,/^[\r\n\t ]+/);Te=Ut&&Ut[0]}var kn=k?k.createHTML(K):K;if(Pe===Fe)try{be=new g().parseFromString(kn,"text/html")}catch(In){}if(!be||!be.documentElement){be=D.createDocument(Pe,"template",null);try{be.documentElement.innerHTML=Ct?"":kn}catch(In){}}var xn=be.body||be.documentElement;return K&&Te&&xn.insertBefore(i.createTextNode(Te),xn.childNodes[0]||null),Pe===Fe?P.call(be,hl?"html":"body")[0]:hl?be.documentElement:xn},Oc=function(K){return I.call(K.ownerDocument||K,K,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},gl=function(K){return K instanceof h||K instanceof u?!1:typeof K.nodeName!="string"||typeof K.textContent!="string"||typeof K.removeChild!="function"||!(K.attributes instanceof d)||typeof K.removeAttribute!="function"||typeof K.setAttribute!="function"||typeof K.namespaceURI!="string"||typeof K.insertBefore!="function"},Pc=function(K){return(typeof r=="undefined"?"undefined":Af(r))==="object"?K instanceof r:K&&(typeof K=="undefined"?"undefined":Af(K))==="object"&&typeof K.nodeType=="number"&&typeof K.nodeName=="string"},to=function(K,be,Te){!ne[K]||k6(ne[K],function(Ut){Ut.call(e,be,Te,at)})},k_=function(K){var be=void 0;if(to("beforeSanitizeElements",K,null),gl(K)||tT(K.nodeName,/[\u0080-\uFFFF]/))return ds(K),!0;var Te=$c(K.nodeName);if(to("uponSanitizeElement",K,{tagName:Te,allowedTags:_e}),!Pc(K.firstElementChild)&&(!Pc(K.content)||!Pc(K.content.firstElementChild))&&aa(/<[/\w]/g,K.innerHTML)&&aa(/<[/\w]/g,K.textContent)||Te==="select"&&aa(/