UNPKG

monaco-editor

Version:
7 lines (5 loc) 3.67 MB
define("vs/editor.api-CalNCsUg",["exports"],(function(so){"use strict";var $d,jd,ac,xC,Ip,Dp,xu,sl,ku,Ep,TC,Np,Yd,Rp,Du,Mp,Nu,Ap,Pp,Op,Xd,Tu,RC,Ru,uc,Mu,AC,Fp,Wp,Au,Pu,Ou,Bp,Hp,Vp,zp,Up,Qd,$p,jp,Gp,Zp,Yp,Xp,Qp,Jp,em,Wu,Bu,tm,im,FC,WC,gc,nm,Uu,sm,om,ol,$u,rm,am,lm,HC,cm,mc,ju,dm,VC,zC,qu,Ku,hm,um,fm,gm,pm,UC,Zu,$C,mm,jC,qC,Yu,_m,KC,bm,Cm,wm,rl,_c,al,eh,ym,Lm,xm,km,Im,Dm;function QB(){return globalThis._VSCODE_NLS_MESSAGES}function rR(){return globalThis._VSCODE_NLS_LANGUAGE}const Cie=rR()==="pseudo"||typeof document<"u"&&document.location&&typeof document.location.hash=="string"&&document.location.hash.indexOf("pseudo=true")>=0;function QS(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}),Cie&&(t="["+t.replace(/[aouei]/g,"$&$&")+"]"),t}function m(o,e,...t){return QS(typeof o=="number"?JB(o,e):e,t)}function JB(o,e){const t=QB()?.[o];if(typeof t!="string"){if(typeof e=="string")return e;throw new Error(`!!! NLS MISSING: ${o} !!!`)}return t}function H(o,e,...t){let i;typeof o=="number"?i=JB(o,e):i=e;const n=QS(i,t);return{value:n,original:e===i?n:QS(e,t)}}function vie(o,e){const t=o;typeof t.vscodeWindowId!="number"&&Object.defineProperty(t,"vscodeWindowId",{get:()=>e})}const Ct=window,uN=class uN{constructor(){this.mapWindowIdToZoomFactor=new Map}getZoomFactor(e){return this.mapWindowIdToZoomFactor.get(this.getWindowId(e))??1}getWindowId(e){return e.vscodeWindowId}};uN.INSTANCE=new uN;let aR=uN;function e6(o,e,t){typeof e=="string"&&(e=o.matchMedia(e)),e.addEventListener("change",t)}function lR(o){return aR.INSTANCE.getZoomFactor(o)}const Rm=navigator.userAgent,Bs=Rm.indexOf("Firefox")>=0,JS=Rm.indexOf("AppleWebKit")>=0,iv=Rm.indexOf("Chrome")>=0,Xu=!iv&&Rm.indexOf("Safari")>=0,t6=!iv&&!Xu&&JS;Rm.indexOf("Electron/")>=0;const i6=Rm.indexOf("Android")>=0;let cR=!1;if(typeof Ct.matchMedia=="function"){const o=Ct.matchMedia("(display-mode: standalone) or (display-mode: window-controls-overlay)"),e=Ct.matchMedia("(display-mode: fullscreen)");cR=o.matches,e6(Ct,o,({matches:t})=>{cR&&e.matches||(cR=t)})}function dR(){return globalThis.MonacoEnvironment}class wie{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?Mm.isErrorNoTelemetry(e)?new Mm(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 hR=new wie;function ey(o){hR.onUnexpectedError(o)}function De(o){To(o)||hR.onUnexpectedError(o)}function Di(o){To(o)||hR.onUnexpectedExternalError(o)}function uR(o){if(o instanceof Error){const{name:e,message:t,cause:i}=o,n=o.stacktrace||o.stack;return{$isError:!0,name:e,message:t,stack:n,noTelemetry:Mm.isErrorNoTelemetry(o),cause:i?uR(i):void 0,code:o.code}}return o}const ty="Canceled";function To(o){return o instanceof hr?!0:o instanceof Error&&o.name===ty&&o.message===ty}class hr extends Error{constructor(){super(ty),this.name=this.message}}function Sie(){const o=new Error(ty);return o.name=o.message,o}function ur(o){return o?new Error(`Illegal argument: ${o}`):new Error("Illegal argument")}function iy(o){return o?new Error(`Illegal state: ${o}`):new Error("Illegal state")}class yie extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}class Mm extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof Mm)return e;const t=new Mm;return t.message=e.message,t.stack=e.stack,t}static isErrorNoTelemetry(e){return e.name==="CodeExpectedError"}}class Ce extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,Ce.prototype)}}function fR(o,e){if(!o)throw new Error(e?`Assertion failed (${e})`:"Assertion Failed")}function nv(o,e="Unreachable"){throw new Error(e)}function sv(o,e="unexpected state"){if(!o)throw typeof e=="string"?new Ce(`Assertion Failed: ${e}`):e}function n6(o,e="Soft Assertion Failed"){o||De(new Ce(e))}function sh(o){if(!o()){debugger;o(),De(new Ce("Assertion Failed"))}}function ov(o,e){let t=0;for(;t<o.length-1;){const i=o[t],n=o[t+1];if(!e(i,n))return!1;t++}return!0}function Zi(o){return typeof o=="string"}function Lie(o,e){return Array.isArray(o)&&o.every(e)}function Hi(o){return typeof o=="object"&&o!==null&&!Array.isArray(o)&&!(o instanceof RegExp)&&!(o instanceof Date)}function xie(o){const e=Object.getPrototypeOf(Uint8Array);return typeof o=="object"&&o instanceof e}function Cc(o){return typeof o=="number"&&!isNaN(o)}function gR(o){return!!o&&typeof o[Symbol.iterator]=="function"}function pR(o){return o===!0||o===!1}function Hn(o){return typeof o>"u"}function rn(o){return!fr(o)}function fr(o){return Hn(o)||o===null}function Je(o,e){if(!o)throw new Error(e?`Unexpected type, expected '${e}'`:"Unexpected type")}function oh(o){return sv(o!=null,"Argument is `undefined` or `null`."),o}function Qu(o){return typeof o=="function"}function kie(o,e){const t=Math.min(o.length,e.length);for(let i=0;i<t;i++)Iie(o[i],e[i])}function Iie(o,e){if(Zi(e)){if(typeof o!==e)throw new Error(`argument does not match constraint: typeof ${e}`)}else if(Qu(e)){try{if(o instanceof e)return}catch{}if(!fr(o)&&o.constructor===e||e.length===1&&e.call(void 0,o)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function gFe(o){return o}const Ju="en";let rv=!1,av=!1,lv=!1,s6=!1,mR=!1,_R=!1,o6=!1,ny,sy=Ju,r6=Ju,Die,vc;const wc=globalThis;let Ro;typeof wc.vscode<"u"&&typeof wc.vscode.process<"u"?Ro=wc.vscode.process:typeof process<"u"&&typeof process?.versions?.node=="string"&&(Ro=process);const Eie=typeof Ro?.versions?.electron=="string"&&Ro?.type==="renderer";if(typeof Ro=="object"){rv=Ro.platform==="win32",av=Ro.platform==="darwin",lv=Ro.platform==="linux",lv&&Ro.env.SNAP&&Ro.env.SNAP_REVISION,Ro.env.CI||Ro.env.BUILD_ARTIFACTSTAGINGDIRECTORY||Ro.env.GITHUB_WORKSPACE,ny=Ju,sy=Ju;const o=Ro.env.VSCODE_NLS_CONFIG;if(o)try{const e=JSON.parse(o);ny=e.userLocale,r6=e.osLocale,sy=e.resolvedLanguage||Ju,Die=e.languagePack?.translationsConfigFile}catch{}s6=!0}else typeof navigator=="object"&&!Eie?(vc=navigator.userAgent,rv=vc.indexOf("Windows")>=0,av=vc.indexOf("Macintosh")>=0,_R=(vc.indexOf("Macintosh")>=0||vc.indexOf("iPad")>=0||vc.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,lv=vc.indexOf("Linux")>=0,o6=vc?.indexOf("Mobi")>=0,mR=!0,sy=rR()||Ju,ny=navigator.language.toLowerCase(),r6=ny):console.error("Unable to resolve platform.");let oy=0;av?oy=1:rv?oy=3:lv&&(oy=2);const gn=rv,ze=av,Hs=lv,va=s6,ll=mR,Nie=mR&&typeof wc.importScripts=="function"?wc.origin:void 0,gr=_R,a6=o6,bR=oy,cl=vc,Tie=sy,Rie=typeof wc.postMessage=="function"&&!wc.importScripts,cv=(()=>{if(Rie){const o=[];wc.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let i=0,n=o.length;i<n;i++){const s=o[i];if(s.id===t.data.vscodeScheduleAsyncWork){o.splice(i,1),s.callback();return}}});let e=0;return t=>{const i=++e;o.push({id:i,callback:t}),wc.postMessage({vscodeScheduleAsyncWork:i},"*")}}return o=>setTimeout(o)})(),oo=av||_R?2:rv?1:3;let l6=!0,c6=!1;function d6(){if(!c6){c6=!0;const o=new Uint8Array(2);o[0]=1,o[1]=2,l6=new Uint16Array(o.buffer)[0]===513}return l6}const CR=!!(cl&&cl.indexOf("Chrome")>=0),Mie=!!(cl&&cl.indexOf("Firefox")>=0),Aie=!!(!CR&&cl&&cl.indexOf("Safari")>=0),h6=!!(cl&&cl.indexOf("Edg/")>=0),Pie=!!(cl&&cl.indexOf("Android")>=0),dv={clipboard:{writeText:va||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:va||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText)},pointerEvents:Ct.PointerEvent&&("ontouchstart"in Ct||navigator.maxTouchPoints>0)};class vR{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 ry=new vR,wR=new vR,SR=new vR,u6=new Array(230),Oie=Object.create(null),Fie=Object.create(null),yR=[];for(let o=0;o<=193;o++)yR[o]=-1;(function(){const e=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN","",""],[1,1,"Hyper",0,"",0,"","",""],[1,2,"Super",0,"",0,"","",""],[1,3,"Fn",0,"",0,"","",""],[1,4,"FnLock",0,"",0,"","",""],[1,5,"Suspend",0,"",0,"","",""],[1,6,"Resume",0,"",0,"","",""],[1,7,"Turbo",0,"",0,"","",""],[1,8,"Sleep",0,"",0,"VK_SLEEP","",""],[1,9,"WakeUp",0,"",0,"","",""],[0,10,"KeyA",31,"A",65,"VK_A","",""],[0,11,"KeyB",32,"B",66,"VK_B","",""],[0,12,"KeyC",33,"C",67,"VK_C","",""],[0,13,"KeyD",34,"D",68,"VK_D","",""],[0,14,"KeyE",35,"E",69,"VK_E","",""],[0,15,"KeyF",36,"F",70,"VK_F","",""],[0,16,"KeyG",37,"G",71,"VK_G","",""],[0,17,"KeyH",38,"H",72,"VK_H","",""],[0,18,"KeyI",39,"I",73,"VK_I","",""],[0,19,"KeyJ",40,"J",74,"VK_J","",""],[0,20,"KeyK",41,"K",75,"VK_K","",""],[0,21,"KeyL",42,"L",76,"VK_L","",""],[0,22,"KeyM",43,"M",77,"VK_M","",""],[0,23,"KeyN",44,"N",78,"VK_N","",""],[0,24,"KeyO",45,"O",79,"VK_O","",""],[0,25,"KeyP",46,"P",80,"VK_P","",""],[0,26,"KeyQ",47,"Q",81,"VK_Q","",""],[0,27,"KeyR",48,"R",82,"VK_R","",""],[0,28,"KeyS",49,"S",83,"VK_S","",""],[0,29,"KeyT",50,"T",84,"VK_T","",""],[0,30,"KeyU",51,"U",85,"VK_U","",""],[0,31,"KeyV",52,"V",86,"VK_V","",""],[0,32,"KeyW",53,"W",87,"VK_W","",""],[0,33,"KeyX",54,"X",88,"VK_X","",""],[0,34,"KeyY",55,"Y",89,"VK_Y","",""],[0,35,"KeyZ",56,"Z",90,"VK_Z","",""],[0,36,"Digit1",22,"1",49,"VK_1","",""],[0,37,"Digit2",23,"2",50,"VK_2","",""],[0,38,"Digit3",24,"3",51,"VK_3","",""],[0,39,"Digit4",25,"4",52,"VK_4","",""],[0,40,"Digit5",26,"5",53,"VK_5","",""],[0,41,"Digit6",27,"6",54,"VK_6","",""],[0,42,"Digit7",28,"7",55,"VK_7","",""],[0,43,"Digit8",29,"8",56,"VK_8","",""],[0,44,"Digit9",30,"9",57,"VK_9","",""],[0,45,"Digit0",21,"0",48,"VK_0","",""],[1,46,"Enter",3,"Enter",13,"VK_RETURN","",""],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE","",""],[1,48,"Backspace",1,"Backspace",8,"VK_BACK","",""],[1,49,"Tab",2,"Tab",9,"VK_TAB","",""],[1,50,"Space",10,"Space",32,"VK_SPACE","",""],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,56,"IntlHash",0,"",0,"","",""],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL","",""],[1,64,"F1",59,"F1",112,"VK_F1","",""],[1,65,"F2",60,"F2",113,"VK_F2","",""],[1,66,"F3",61,"F3",114,"VK_F3","",""],[1,67,"F4",62,"F4",115,"VK_F4","",""],[1,68,"F5",63,"F5",116,"VK_F5","",""],[1,69,"F6",64,"F6",117,"VK_F6","",""],[1,70,"F7",65,"F7",118,"VK_F7","",""],[1,71,"F8",66,"F8",119,"VK_F8","",""],[1,72,"F9",67,"F9",120,"VK_F9","",""],[1,73,"F10",68,"F10",121,"VK_F10","",""],[1,74,"F11",69,"F11",122,"VK_F11","",""],[1,75,"F12",70,"F12",123,"VK_F12","",""],[1,76,"PrintScreen",0,"",0,"","",""],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL","",""],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE","",""],[1,79,"Insert",19,"Insert",45,"VK_INSERT","",""],[1,80,"Home",14,"Home",36,"VK_HOME","",""],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR","",""],[1,82,"Delete",20,"Delete",46,"VK_DELETE","",""],[1,83,"End",13,"End",35,"VK_END","",""],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT","",""],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",""],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",""],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",""],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",""],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK","",""],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE","",""],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY","",""],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT","",""],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD","",""],[1,94,"NumpadEnter",3,"",0,"","",""],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1","",""],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2","",""],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3","",""],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4","",""],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5","",""],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6","",""],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7","",""],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8","",""],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9","",""],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0","",""],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL","",""],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102","",""],[1,107,"ContextMenu",58,"ContextMenu",93,"","",""],[1,108,"Power",0,"",0,"","",""],[1,109,"NumpadEqual",0,"",0,"","",""],[1,110,"F13",71,"F13",124,"VK_F13","",""],[1,111,"F14",72,"F14",125,"VK_F14","",""],[1,112,"F15",73,"F15",126,"VK_F15","",""],[1,113,"F16",74,"F16",127,"VK_F16","",""],[1,114,"F17",75,"F17",128,"VK_F17","",""],[1,115,"F18",76,"F18",129,"VK_F18","",""],[1,116,"F19",77,"F19",130,"VK_F19","",""],[1,117,"F20",78,"F20",131,"VK_F20","",""],[1,118,"F21",79,"F21",132,"VK_F21","",""],[1,119,"F22",80,"F22",133,"VK_F22","",""],[1,120,"F23",81,"F23",134,"VK_F23","",""],[1,121,"F24",82,"F24",135,"VK_F24","",""],[1,122,"Open",0,"",0,"","",""],[1,123,"Help",0,"",0,"","",""],[1,124,"Select",0,"",0,"","",""],[1,125,"Again",0,"",0,"","",""],[1,126,"Undo",0,"",0,"","",""],[1,127,"Cut",0,"",0,"","",""],[1,128,"Copy",0,"",0,"","",""],[1,129,"Paste",0,"",0,"","",""],[1,130,"Find",0,"",0,"","",""],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE","",""],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP","",""],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN","",""],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR","",""],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1","",""],[1,136,"KanaMode",0,"",0,"","",""],[0,137,"IntlYen",0,"",0,"","",""],[1,138,"Convert",0,"",0,"","",""],[1,139,"NonConvert",0,"",0,"","",""],[1,140,"Lang1",0,"",0,"","",""],[1,141,"Lang2",0,"",0,"","",""],[1,142,"Lang3",0,"",0,"","",""],[1,143,"Lang4",0,"",0,"","",""],[1,144,"Lang5",0,"",0,"","",""],[1,145,"Abort",0,"",0,"","",""],[1,146,"Props",0,"",0,"","",""],[1,147,"NumpadParenLeft",0,"",0,"","",""],[1,148,"NumpadParenRight",0,"",0,"","",""],[1,149,"NumpadBackspace",0,"",0,"","",""],[1,150,"NumpadMemoryStore",0,"",0,"","",""],[1,151,"NumpadMemoryRecall",0,"",0,"","",""],[1,152,"NumpadMemoryClear",0,"",0,"","",""],[1,153,"NumpadMemoryAdd",0,"",0,"","",""],[1,154,"NumpadMemorySubtract",0,"",0,"","",""],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR","",""],[1,156,"NumpadClearEntry",0,"",0,"","",""],[1,0,"",5,"Ctrl",17,"VK_CONTROL","",""],[1,0,"",4,"Shift",16,"VK_SHIFT","",""],[1,0,"",6,"Alt",18,"VK_MENU","",""],[1,0,"",57,"Meta",91,"VK_COMMAND","",""],[1,157,"ControlLeft",5,"",0,"VK_LCONTROL","",""],[1,158,"ShiftLeft",4,"",0,"VK_LSHIFT","",""],[1,159,"AltLeft",6,"",0,"VK_LMENU","",""],[1,160,"MetaLeft",57,"",0,"VK_LWIN","",""],[1,161,"ControlRight",5,"",0,"VK_RCONTROL","",""],[1,162,"ShiftRight",4,"",0,"VK_RSHIFT","",""],[1,163,"AltRight",6,"",0,"VK_RMENU","",""],[1,164,"MetaRight",57,"",0,"VK_RWIN","",""],[1,165,"BrightnessUp",0,"",0,"","",""],[1,166,"BrightnessDown",0,"",0,"","",""],[1,167,"MediaPlay",0,"",0,"","",""],[1,168,"MediaRecord",0,"",0,"","",""],[1,169,"MediaFastForward",0,"",0,"","",""],[1,170,"MediaRewind",0,"",0,"","",""],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK","",""],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK","",""],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP","",""],[1,174,"Eject",0,"",0,"","",""],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE","",""],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT","",""],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL","",""],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2","",""],[1,179,"LaunchApp1",0,"",0,"VK_MEDIA_LAUNCH_APP1","",""],[1,180,"SelectTask",0,"",0,"","",""],[1,181,"LaunchScreenSaver",0,"",0,"","",""],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH","",""],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME","",""],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK","",""],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD","",""],[1,186,"BrowserStop",0,"",0,"VK_BROWSER_STOP","",""],[1,187,"BrowserRefresh",0,"",0,"VK_BROWSER_REFRESH","",""],[1,188,"BrowserFavorites",0,"",0,"VK_BROWSER_FAVORITES","",""],[1,189,"ZoomToggle",0,"",0,"","",""],[1,190,"MailReply",0,"",0,"","",""],[1,191,"MailForward",0,"",0,"","",""],[1,192,"MailSend",0,"",0,"","",""],[1,0,"",114,"KeyInComposition",229,"","",""],[1,0,"",116,"ABNT_C2",194,"VK_ABNT_C2","",""],[1,0,"",96,"OEM_8",223,"VK_OEM_8","",""],[1,0,"",0,"",0,"VK_KANA","",""],[1,0,"",0,"",0,"VK_HANGUL","",""],[1,0,"",0,"",0,"VK_JUNJA","",""],[1,0,"",0,"",0,"VK_FINAL","",""],[1,0,"",0,"",0,"VK_HANJA","",""],[1,0,"",0,"",0,"VK_KANJI","",""],[1,0,"",0,"",0,"VK_CONVERT","",""],[1,0,"",0,"",0,"VK_NONCONVERT","",""],[1,0,"",0,"",0,"VK_ACCEPT","",""],[1,0,"",0,"",0,"VK_MODECHANGE","",""],[1,0,"",0,"",0,"VK_SELECT","",""],[1,0,"",0,"",0,"VK_PRINT","",""],[1,0,"",0,"",0,"VK_EXECUTE","",""],[1,0,"",0,"",0,"VK_SNAPSHOT","",""],[1,0,"",0,"",0,"VK_HELP","",""],[1,0,"",0,"",0,"VK_APPS","",""],[1,0,"",0,"",0,"VK_PROCESSKEY","",""],[1,0,"",0,"",0,"VK_PACKET","",""],[1,0,"",0,"",0,"VK_DBE_SBCSCHAR","",""],[1,0,"",0,"",0,"VK_DBE_DBCSCHAR","",""],[1,0,"",0,"",0,"VK_ATTN","",""],[1,0,"",0,"",0,"VK_CRSEL","",""],[1,0,"",0,"",0,"VK_EXSEL","",""],[1,0,"",0,"",0,"VK_EREOF","",""],[1,0,"",0,"",0,"VK_PLAY","",""],[1,0,"",0,"",0,"VK_ZOOM","",""],[1,0,"",0,"",0,"VK_NONAME","",""],[1,0,"",0,"",0,"VK_PA1","",""],[1,0,"",0,"",0,"VK_OEM_CLEAR","",""]],t=[],i=[];for(const n of e){const[s,r,a,l,c,d,h,u,f]=n;if(i[r]||(i[r]=!0,Oie[a]=r,Fie[a.toLowerCase()]=r,s&&(yR[r]=l)),!t[l]){if(t[l]=!0,!c)throw new Error(`String representation missing for key code ${l} around scan code ${a}`);ry.define(l,c),wR.define(l,u||c),SR.define(l,f||u||c)}d&&(u6[d]=l)}})();var Sc;(function(o){function e(a){return ry.keyCodeToStr(a)}o.toString=e;function t(a){return ry.strToKeyCode(a)}o.fromString=t;function i(a){return wR.keyCodeToStr(a)}o.toUserSettingsUS=i;function n(a){return SR.keyCodeToStr(a)}o.toUserSettingsGeneral=n;function s(a){return wR.strToKeyCode(a)||SR.strToKeyCode(a)}o.fromUserSettings=s;function r(a){if(a>=98&&a<=113)return null;switch(a){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return ry.keyCodeToStr(a)}o.toElectronAccelerator=r})(Sc||(Sc={}));function Ei(o,e){const t=(e&65535)<<16>>>0;return(o|t)>>>0}function LR(o,e){if(typeof o=="number"){if(o===0)return null;const t=(o&65535)>>>0,i=(o&4294901760)>>>16;return i!==0?new xR([ay(t,e),ay(i,e)]):new xR([ay(t,e)])}else{const t=[];for(let i=0;i<o.length;i++)t.push(ay(o[i],e));return new xR(t)}}function ay(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 yc(n,s,r,a,l)}class yc{constructor(e,t,i,n,s){this.ctrlKey=e,this.shiftKey=t,this.altKey=i,this.metaKey=n,this.keyCode=s}equals(e){return e instanceof yc&&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}isDuplicateModifierCase(){return this.ctrlKey&&this.keyCode===5||this.shiftKey&&this.keyCode===4||this.altKey&&this.keyCode===6||this.metaKey&&this.keyCode===57}}class xR{constructor(e){if(e.length===0)throw ur("chords");this.chords=e}}class Wie{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 Bie{}function Hie(o){if(o.charCode){const t=String.fromCharCode(o.charCode).toUpperCase();return Sc.fromString(t)}const e=o.keyCode;if(e===3)return 7;if(Bs)switch(e){case 59:return 85;case 60:if(Hs)return 97;break;case 61:return 86;case 107:return 109;case 109:return 111;case 173:return 88;case 224:if(ze)return 57;break}else if(JS){if(ze&&e===93)return 57;if(!ze&&e===92)return 57}return u6[e]||0}const Vie=ze?256:2048,zie=512,Uie=1024,$ie=ze?2048:256;class yt{constructor(e){this._standardKeyboardEventBrand=!0;const t=e;this.browserEvent=t,this.target=t.target,this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,this.altGraphKey=t.getModifierState?.("AltGraph"),this.keyCode=Hie(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._asKeyCodeChord=this._computeKeyCodeChord()}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()}toKeyCodeChord(){return this._asKeyCodeChord}equals(e){return this._asKeybinding===e}_computeKeybinding(){let e=0;this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(e=this.keyCode);let t=0;return this.ctrlKey&&(t|=Vie),this.altKey&&(t|=zie),this.shiftKey&&(t|=Uie),this.metaKey&&(t|=$ie),t|=e,t}_computeKeyCodeChord(){let e=0;return this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(e=this.keyCode),new yc(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e)}}const f6=new WeakMap;function jie(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 null}catch{return null}return o.parent}class qie{static getSameOriginWindowChain(e){let t=f6.get(e);if(!t){t=[],f6.set(e,t);let i=e,n;do n=jie(i),n?t.push({window:new WeakRef(i),iframeElement:i.frameElement||null}):t.push({window:new WeakRef(i),iframeElement:null}),i=n;while(i)}return t.slice(0)}static getPositionOfChildWindowRelativeToAncestorWindow(e,t){if(!t||e===t)return{top:0,left:0};let i=0,n=0;const s=this.getSameOriginWindowChain(e);for(const r of s){const a=r.window.deref();if(i+=a?.scrollY??0,n+=a?.scrollX??0,a===t||!r.iframeElement)break;const l=r.iframeElement.getBoundingClientRect();i+=l.top,n+=l.left}return{top:i,left:n}}}class yn{constructor(e,t){this.timestamp=Date.now(),this.browserEvent=t,this.leftButton=t.button===0,this.middleButton=t.button===1,this.rightButton=t.button===2,this.buttons=t.buttons,this.defaultPrevented=t.defaultPrevented,this.target=t.target,this.detail=t.detail||1,t.type==="dblclick"&&(this.detail=2),this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,typeof t.pageX=="number"?(this.posx=t.pageX,this.posy=t.pageY):(this.posx=t.clientX+this.target.ownerDocument.body.scrollLeft+this.target.ownerDocument.documentElement.scrollLeft,this.posy=t.clientY+this.target.ownerDocument.body.scrollTop+this.target.ownerDocument.documentElement.scrollTop);const i=qie.getPositionOfChildWindowRelativeToAncestorWindow(e,t.view);this.posx-=i.left,this.posy-=i.top}preventDefault(){this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent.stopPropagation()}}class ef{constructor(e,t=0,i=0){this.browserEvent=e||null,this.target=e?e.target||e.targetNode||e.srcElement:null,this.deltaY=i,this.deltaX=t;let n=!1;if(iv){const s=navigator.userAgent.match(/Chrome\/(\d+)/);n=(s?parseInt(s[1]):123)<=122}if(e){const s=e,r=e,a=e.view?.devicePixelRatio||1;if(typeof s.wheelDeltaY<"u")n?this.deltaY=s.wheelDeltaY/(120*a):this.deltaY=s.wheelDeltaY/120;else if(typeof r.VERTICAL_AXIS<"u"&&r.axis===r.VERTICAL_AXIS)this.deltaY=-r.detail/3;else if(e.type==="wheel"){const l=e;l.deltaMode===l.DOM_DELTA_LINE?Bs&&!ze?this.deltaY=-e.deltaY/3:this.deltaY=-e.deltaY:this.deltaY=-e.deltaY/40}if(typeof s.wheelDeltaX<"u")Xu&&gn?this.deltaX=-(s.wheelDeltaX/120):n?this.deltaX=s.wheelDeltaX/(120*a):this.deltaX=s.wheelDeltaX/120;else if(typeof r.HORIZONTAL_AXIS<"u"&&r.axis===r.HORIZONTAL_AXIS)this.deltaX=-e.detail/3;else if(e.type==="wheel"){const l=e;l.deltaMode===l.DOM_DELTA_LINE?Bs&&!ze?this.deltaX=-e.deltaX/3:this.deltaX=-e.deltaX:this.deltaX=-e.deltaX/40}this.deltaY===0&&this.deltaX===0&&e.wheelDelta&&(n?this.deltaY=e.wheelDelta/(120*a):this.deltaY=e.wheelDelta/120)}}preventDefault(){this.browserEvent?.preventDefault()}stopPropagation(){this.browserEvent?.stopPropagation()}}function tf(o,e){const t=this;let i=!1,n;return function(){return i||(i=!0,n=o.apply(t,arguments)),n}}var Ge;(function(o){function e(x){return!!x&&typeof x=="object"&&typeof x[Symbol.iterator]=="function"}o.is=e;const t=Object.freeze([]);function i(){return t}o.empty=i;function*n(x){yield x}o.single=n;function s(x){return e(x)?x:n(x)}o.wrap=s;function r(x){return x||t}o.from=r;function*a(x){for(let I=x.length-1;I>=0;I--)yield x[I]}o.reverse=a;function l(x){return!x||x[Symbol.iterator]().next().done===!0}o.isEmpty=l;function c(x){return x[Symbol.iterator]().next().value}o.first=c;function d(x,I){let D=0;for(const R of x)if(I(R,D++))return!0;return!1}o.some=d;function h(x,I){let D=0;for(const R of x)if(!I(R,D++))return!1;return!0}o.every=h;function u(x,I){for(const D of x)if(I(D))return D}o.find=u;function*f(x,I){for(const D of x)I(D)&&(yield D)}o.filter=f;function*g(x,I){let D=0;for(const R of x)yield I(R,D++)}o.map=g;function*p(x,I){let D=0;for(const R of x)yield*I(R,D++)}o.flatMap=p;function*_(...x){for(const I of x)gR(I)?yield*I:yield I}o.concat=_;function b(x,I,D){let R=D;for(const O of x)R=I(R,O);return R}o.reduce=b;function C(x){let I=0;for(const D of x)I++;return I}o.length=C;function*w(x,I,D=x.length){for(I<-x.length&&(I=0),I<0&&(I+=x.length),D<0?D+=x.length:D>x.length&&(D=x.length);I<D;I++)yield x[I]}o.slice=w;function v(x,I=Number.POSITIVE_INFINITY){const D=[];if(I===0)return[D,x];const R=x[Symbol.iterator]();for(let O=0;O<I;O++){const F=R.next();if(F.done)return[D,o.empty()];D.push(F.value)}return[D,{[Symbol.iterator](){return R}}]}o.consume=v;async function S(x){const I=[];for await(const D of x)I.push(D);return I}o.asyncToArray=S;async function L(x){let I=[];for await(const D of x)I=I.concat(D);return I}o.asyncToArrayFlat=L})(Ge||(Ge={}));function _Fe(o,e){}function bFe(o){return o}function nf(o){return typeof o=="object"&&o!==null&&typeof o.dispose=="function"&&o.dispose.length===0}function ht(o){if(Ge.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 AggregateError(e,"Encountered errors while disposing of store");return Array.isArray(o)?[]:o}else if(o)return o.dispose(),o}function qr(...o){return fe(()=>ht(o))}class Kie{constructor(e){this._isDisposed=!1,this._fn=e}dispose(){if(!this._isDisposed){if(!this._fn)throw new Error("Unbound disposable context: Need to use an arrow function to preserve the value of this");this._isDisposed=!0,this._fn()}}}function fe(o){return new Kie(o)}const fN=class fN{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{ht(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e||e===P.None)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?fN.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}delete(e){if(e){if(e===this)throw new Error("Cannot dispose a disposable on itself!");this._toDispose.delete(e),e.dispose()}}};fN.DISABLE_DISPOSED_WARNING=!1;let V=fN;const DB=class DB{constructor(){this._store=new V,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)}};DB.None=Object.freeze({dispose(){}});let P=DB;class rt{constructor(){this._isDisposed=!1}get value(){return this._isDisposed?void 0:this._value}set value(e){this._isDisposed||e===this._value||(this._value?.dispose(),this._value=e)}clear(){this.value=void 0}dispose(){this._isDisposed=!0,this._value?.dispose(),this._value=void 0}}class Gie{constructor(e){this._disposable=e,this._counter=1}acquire(){return this._counter++,this}release(){return--this._counter===0&&this._disposable.dispose(),this}}class Zie{constructor(e){this.object=e}dispose(){}}class ly{constructor(){this._store=new Map,this._isDisposed=!1}dispose(){this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{ht(this._store.values())}finally{this._store.clear()}}get(e){return this._store.get(e)}set(e,t,i=!1){this._isDisposed&&console.warn(new Error("Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!").stack),i||this._store.get(e)?.dispose(),this._store.set(e,t)}deleteAndDispose(e){this._store.get(e)?.dispose(),this._store.delete(e)}values(){return this._store.values()}[Symbol.iterator](){return this._store[Symbol.iterator]()}}let Yi=($d=class{constructor(e){this.element=e,this.next=$d.Undefined,this.prev=$d.Undefined}},$d.Undefined=new $d(void 0),$d);class es{constructor(){this._first=Yi.Undefined,this._last=Yi.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Yi.Undefined}clear(){let e=this._first;for(;e!==Yi.Undefined;){const t=e.next;e.prev=Yi.Undefined,e.next=Yi.Undefined,e=t}this._first=Yi.Undefined,this._last=Yi.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const i=new Yi(e);if(this._first===Yi.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!==Yi.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==Yi.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==Yi.Undefined&&e.next!==Yi.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===Yi.Undefined&&e.next===Yi.Undefined?(this._first=Yi.Undefined,this._last=Yi.Undefined):e.next===Yi.Undefined?(this._last=this._last.prev,this._last.next=Yi.Undefined):e.prev===Yi.Undefined&&(this._first=this._first.next,this._first.prev=Yi.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==Yi.Undefined;)yield e.element,e=e.next}}const Yie=globalThis.performance.now.bind(globalThis.performance);class Xi{static create(e){return new Xi(e)}constructor(e){this._now=e===!1?Date.now:Yie,this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}}var ie;(function(o){o.None=()=>P.None;function e(F,B){return u(F,()=>{},0,void 0,!0,void 0,B)}o.defer=e;function t(F){return(B,U=null,K)=>{let ne=!1,Q;return Q=F(se=>{if(!ne)return Q?Q.dispose():ne=!0,B.call(U,se)},null,K),ne&&Q.dispose(),Q}}o.once=t;function i(F,B){return o.once(o.filter(F,B))}o.onceIf=i;function n(F,B,U){return d((K,ne=null,Q)=>F(se=>K.call(ne,B(se)),null,Q),U)}o.map=n;function s(F,B,U){return d((K,ne=null,Q)=>F(se=>{B(se),K.call(ne,se)},null,Q),U)}o.forEach=s;function r(F,B,U){return d((K,ne=null,Q)=>F(se=>B(se)&&K.call(ne,se),null,Q),U)}o.filter=r;function a(F){return F}o.signal=a;function l(...F){return(B,U=null,K)=>{const ne=qr(...F.map(Q=>Q(se=>B.call(U,se))));return h(ne,K)}}o.any=l;function c(F,B,U,K){let ne=U;return n(F,Q=>(ne=B(ne,Q),ne),K)}o.reduce=c;function d(F,B){let U;const K={onWillAddFirstListener(){U=F(ne.fire,ne)},onDidRemoveLastListener(){U?.dispose()}},ne=new A(K);return B?.add(ne),ne.event}function h(F,B){return B instanceof Array?B.push(F):B&&B.add(F),F}function u(F,B,U=100,K=!1,ne=!1,Q,se){let de,ye,Pe,it=0,Ke;const Ot={leakWarningThreshold:Q,onWillAddFirstListener(){de=F(on=>{it++,ye=B(ye,on),K&&!Pe&&(bt.fire(ye),ye=void 0),Ke=()=>{const Ai=ye;ye=void 0,Pe=void 0,(!K||it>1)&&bt.fire(Ai),it=0},typeof U=="number"?(Pe&&clearTimeout(Pe),Pe=setTimeout(Ke,U)):Pe===void 0&&(Pe=null,queueMicrotask(Ke))})},onWillRemoveListener(){ne&&it>0&&Ke?.()},onDidRemoveLastListener(){Ke=void 0,de.dispose()}},bt=new A(Ot);return se?.add(bt),bt.event}o.debounce=u;function f(F,B=0,U){return o.debounce(F,(K,ne)=>K?(K.push(ne),K):[ne],B,void 0,!0,void 0,U)}o.accumulate=f;function g(F,B=(K,ne)=>K===ne,U){let K=!0,ne;return r(F,Q=>{const se=K||!B(Q,ne);return K=!1,ne=Q,se},U)}o.latch=g;function p(F,B,U){return[o.filter(F,B,U),o.filter(F,K=>!B(K),U)]}o.split=p;function _(F,B=!1,U=[],K){let ne=U.slice(),Q=F(ye=>{ne?ne.push(ye):de.fire(ye)});K&&K.add(Q);const se=()=>{ne?.forEach(ye=>de.fire(ye)),ne=null},de=new A({onWillAddFirstListener(){Q||(Q=F(ye=>de.fire(ye)),K&&K.add(Q))},onDidAddFirstListener(){ne&&(B?setTimeout(se):se())},onDidRemoveLastListener(){Q&&Q.dispose(),Q=null}});return K&&K.add(de),de.event}o.buffer=_;function b(F,B){return(K,ne,Q)=>{const se=B(new w);return F(function(de){const ye=se.evaluate(de);ye!==C&&K.call(ne,ye)},void 0,Q)}}o.chain=b;const C=Symbol("HaltChainable");class w{constructor(){this.steps=[]}map(B){return this.steps.push(B),this}forEach(B){return this.steps.push(U=>(B(U),U)),this}filter(B){return this.steps.push(U=>B(U)?U:C),this}reduce(B,U){let K=U;return this.steps.push(ne=>(K=B(K,ne),K)),this}latch(B=(U,K)=>U===K){let U=!0,K;return this.steps.push(ne=>{const Q=U||!B(ne,K);return U=!1,K=ne,Q?ne:C}),this}evaluate(B){for(const U of this.steps)if(B=U(B),B===C)break;return B}}function v(F,B,U=K=>K){const K=(...de)=>se.fire(U(...de)),ne=()=>F.on(B,K),Q=()=>F.removeListener(B,K),se=new A({onWillAddFirstListener:ne,onDidRemoveLastListener:Q});return se.event}o.fromNodeEventEmitter=v;function S(F,B,U=K=>K){const K=(...de)=>se.fire(U(...de)),ne=()=>F.addEventListener(B,K),Q=()=>F.removeEventListener(B,K),se=new A({onWillAddFirstListener:ne,onDidRemoveLastListener:Q});return se.event}o.fromDOMEventEmitter=S;function L(F,B){let U;const K=new Promise((ne,Q)=>{const se=t(F)(ne,null,B);U=()=>se.dispose()});return K.cancel=U,K}o.toPromise=L;function x(F,B){return F(U=>B.fire(U))}o.forward=x;function I(F,B,U){return B(U),F(K=>B(K))}o.runAndSubscribe=I;class D{constructor(B,U){this._observable=B,this._counter=0,this._hasChanged=!1;const K={onWillAddFirstListener:()=>{B.addObserver(this),this._observable.reportChanges()},onDidRemoveLastListener:()=>{B.removeObserver(this)}};this.emitter=new A(K),U&&U.add(this.emitter)}beginUpdate(B){this._counter++}handlePossibleChange(B){}handleChange(B,U){this._hasChanged=!0}endUpdate(B){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function R(F,B){return new D(F,B).emitter.event}o.fromObservable=R;function O(F){return(B,U,K)=>{let ne=0,Q=!1;const se={beginUpdate(){ne++},endUpdate(){ne--,ne===0&&(F.reportChanges(),Q&&(Q=!1,B.call(U)))},handlePossibleChange(){},handleChange(){Q=!0}};F.addObserver(se),F.reportChanges();const de={dispose(){F.removeObserver(se)}};return K instanceof V?K.add(de):Array.isArray(K)&&K.push(de),de}}o.fromObservableLight=O})(ie||(ie={}));const vC=class vC{constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${vC._idPool++}`,vC.all.add(this)}start(e){this._stopWatch=new Xi,this.listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}};vC.all=new Set,vC._idPool=0;let kR=vC,Xie=-1;const gN=class gN{constructor(e,t,i=(gN._idPool++).toString(16).padStart(3,"0")){this._errorHandler=e,this.threshold=t,this.name=i,this._warnCountdown=0}dispose(){this._stacks?.clear()}check(e,t){const i=this.threshold;if(i<=0||t<i)return;this._stacks||(this._stacks=new Map);const n=this._stacks.get(e.value)||0;if(this._stacks.set(e.value,n+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=i*.5;const[s,r]=this.getMostFrequentStack(),a=`[${this.name}] potential listener LEAK detected, having ${t} listeners already. MOST frequent listener (${r}):`;console.warn(a),console.warn(s);const l=new Qie(a,s);this._errorHandler(l)}return()=>{const s=this._stacks.get(e.value)||0;this._stacks.set(e.value,s-1)}}getMostFrequentStack(){if(!this._stacks)return;let e,t=0;for(const[i,n]of this._stacks)(!e||t<n)&&(e=[i,n],t=n);return e}};gN._idPool=1;let IR=gN;class DR{static create(){const e=new Error;return new DR(e.stack??"")}constructor(e){this.value=e}print(){console.warn(this.value.split(` `).slice(2).join(` `))}}class Qie extends Error{constructor(e,t){super(e),this.name="ListenerLeakError",this.stack=t}}class Jie extends Error{constructor(e,t){super(e),this.name="ListenerRefusalError",this.stack=t}}class ER{constructor(e){this.value=e}}const ene=2;let A=class{constructor(e){this._size=0,this._options=e,this._leakageMon=this._options?.leakWarningThreshold?new IR(e?.onListenerError??De,this._options?.leakWarningThreshold??Xie):void 0,this._perfMon=this._options?._profName?new kR(this._options._profName):void 0,this._deliveryQueue=this._options?.deliveryQueue}dispose(){this._disposed||(this._disposed=!0,this._deliveryQueue?.current===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),this._options?.onDidRemoveLastListener?.(),this._leakageMon?.dispose())}get event(){return this._event??=(e,t,i)=>{if(this._leakageMon&&this._size>this._leakageMon.threshold**2){const a=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(a);const l=this._leakageMon.getMostFrequentStack()??["UNKNOWN stack",-1],c=new Jie(`${a}. HINT: Stack shows most frequent listener (${l[1]}-times)`,l[0]);return(this._options?.onListenerError||De)(c),P.None}if(this._disposed)return P.None;t&&(e=e.bind(t));const n=new ER(e);let s;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(n.stack=DR.create(),s=this._leakageMon.check(n.stack,this._size+1)),this._listeners?this._listeners instanceof ER?(this._deliveryQueue??=new g6,this._listeners=[this._listeners,n]):this._listeners.push(n):(this._options?.onWillAddFirstListener?.(this),this._listeners=n,this._options?.onDidAddFirstListener?.(this)),this._options?.onDidAddListener?.(this),this._size++;const r=fe(()=>{s?.(),this._removeListener(n)});return i instanceof V?i.add(r):Array.isArray(i)&&i.push(r),r},this._event}_removeListener(e){if(this._options?.onWillRemoveListener?.(this),!this._listeners)return;if(this._size===1){this._listeners=void 0,this._options?.onDidRemoveLastListener?.(this),this._size=0;return}const t=this._listeners,i=t.indexOf(e);if(i===-1)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,t[i]=void 0;const n=this._deliveryQueue.current===this;if(this._size*ene<=t.length){let s=0;for(let r=0;r<t.length;r++)t[r]?t[s++]=t[r]:n&&s<this._deliveryQueue.end&&(this._deliveryQueue.end--,s<this._deliveryQueue.i&&this._deliveryQueue.i--);t.length=s}}_deliver(e,t){if(!e)return;const i=this._options?.onListenerError||De;if(!i){e.value(t);return}try{e.value(t)}catch(n){i(n)}}_deliverQueue(e){const t=e.current._listeners;for(;e.i<e.end;)this._deliver(t[e.i++],e.value);e.reset()}fire(e){if(this._deliveryQueue?.current&&(this._deliverQueue(this._deliveryQueue),this._perfMon?.stop()),this._perfMon?.start(this._size),this._listeners)if(this._listeners instanceof ER)this._deliver(this._listeners,e);else{const t=this._deliveryQueue;t.enqueue(this,e,this._listeners.length),this._deliverQueue(t)}this._perfMon?.stop()}hasListeners(){return this._size>0}};const tne=()=>new g6;class g6{constructor(){this.i=-1,this.end=0}enqueue(e,t,i){this.i=0,this.end=i,this.current=e,this.value=t}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}class sf extends A{constructor(e){super(e),this._isPaused=0,this._eventQueue=new es,this._mergeFn=e?.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){if(this._eventQueue.size>0){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._size&&(this._isPaused!==0?this._eventQueue.push(e):super.fire(e))}}class p6 extends sf{constructor(e){super(e),this._delay=e.delay??100}fire(e){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(e)}}class ine extends A{constructor(e){super(e),this._queuedEvents=[],this._mergeFn=e?.merge}fire(e){this.hasListeners()&&(this._queuedEvents.push(e),this._queuedEvents.length===1&&queueMicrotask(()=>{this._mergeFn?super.fire(this._mergeFn(this._queuedEvents)):this._queuedEvents.forEach(t=>super.fire(t)),this._queuedEvents=[]}))}}class nne{constructor(){this.hasListeners=!1,this.events=[],this.emitter=new A({onWillAddFirstListener:()=>this.onFirstListenerAdd(),onDidRemoveLastListener:()=>this.onLastListenerRemove()})}get event(){return this.emitter.event}add(e){const t={event:e,listener:null};return this.events.push(t),this.hasListeners&&this.hook(t),fe(tf(()=>{this.hasListeners&&this.unhook(t);const n=this.events.indexOf(t);this.events.splice(n,1)}))}onFirstListenerAdd(){this.hasListeners=!0,this.events.forEach(e=>this.hook(e))}onLastListenerRemove(){this.hasListeners=!1,this.events.forEach(e=>this.unhook(e))}hook(e){e.listener=e.event(t=>this.emitter.fire(t))}unhook(e){e.listener?.dispose(),e.listener=null}dispose(){this.emitter.dispose();for(const e of this.events)e.listener?.dispose();this.events=[]}}class hv{constructor(){this.data=[]}wrapEvent(e,t,i){return(n,s,r)=>e(a=>{const l=this.data[this.data.length-1];if(!t){l?l.buffers.push(()=>n.call(s,a)):n.call(s,a);return}const c=l;if(!c){n.call(s,t(i,a));return}c.items??=[],c.items.push(a),c.buffers.length===0&&l.buffers.push(()=>{c.reducedResult??=i?c.items.reduce(t,i):c.items.reduce(t),n.call(s,c.reducedResult)})},void 0,r)}bufferEvents(e){const t={buffers:new Array};this.data.push(t);const i=e();return this.data.pop(),t.buffers.forEach(n=>n()),i}}class uv{constructor(){this.listening=!1,this.inputEvent=ie.None,this.inputEventListener=P.None,this.emitter=new A({onDidAddFirstListener:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onDidRemoveLastListener:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}const m6=Object.freeze(function(o,e){const t=setTimeout(o.bind(e),0);return{dispose(){clearTimeout(t)}}});var He;(function(o){function e(t){return t===o.None||t===o.Cancelled||t instanceof cy?!0:!t||typeof t!="object"?!1:typeof t.isCancellationRequested=="boolean"&&typeof t.onCancellationRequested=="function"}o.isCancellationToken=e,o.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:ie.None}),o.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:m6})})(He||(He={}));class cy{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?m6:(this._emitter||(this._emitter=new A),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}let zt=class{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new cy),this._token}cancel(){this._token?this._token instanceof cy&&this._token.cancel():this._token=He.Cancelled}dispose(e=!1){e&&this.cancel(),this._parentListener?.dispose(),this._token?this._token instanceof cy&&this._token.dispose():this._token=He.None}};function NR(o){const e=new zt;return o.add({dispose(){e.cancel()}}),e.token}const _6=Symbol("MicrotaskDelay");function TR(o){return!!o&&typeof o.then=="function"}function Vi(o){const e=new zt,t=o(e.token);let i=!1;const n=new Promise((s,r)=>{const a=e.token.onCancellationRequested(()=>{i=!0,a.dispose(),r(new hr)});Promise.resolve(t).then(l=>{a.dispose(),e.dispose(),i?nf(l)&&l.dispose():s(l)},l=>{a.dispose(),e.dispose(),r(l)})});return new class{cancel(){e.cancel(),e.dispose()}then(s,r){return n.then(s,r)}catch(s){return this.then(void 0,s)}finally(s){return n.finally(s)}}}function Am(o,e,t){return new Promise((i,n)=>{const s=e.onCancellationRequested(()=>{s.dispose(),i(t)});o.then(i,n).finally(()=>s.dispose())})}function sne(o,e){return new Promise((t,i)=>{const n=e.onCancellationRequested(()=>{n.dispose(),i(new hr)});o.then(t,i).finally(()=>n.dispose())})}let one=class{constructor(){this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null,this.cancellationTokenSource=new zt}queue(e){if(this.cancellationTokenSource.token.isCancellationRequested)return Promise.reject(new Error("Throttler is disposed"));if(this.activePromise){if(this.queuedPromiseFactory=e,!this.queuedPromise){const t=()=>{if(this.queuedPromise=null,this.cancellationTokenSource.token.isCancellationRequested)return;const i=this.queue(this.queuedPromiseFactory);return this.queuedPromiseFactory=null,i};this.queuedPromise=new Promise(i=>{this.activePromise.then(t,t).then(i)})}return new Promise((t,i)=>{this.queuedPromise.then(t,i)})}return this.activePromise=e(this.cancellationTokenSource.token),new Promise((t,i)=>{this.activePromise.then(n=>{this.activePromise=null,t(n)},n=>{this.activePromise=null,i(n)})})}dispose(){this.cancellationTokenSource.cancel()}};const rne=(o,e)=>{let t=!0;const i=setTimeout(()=>{t=!1,e()},o);return{isTriggered:()=>t,dispose:()=>{clearTimeout(i),t=!1}}},ane=o=>{let e=!0;return queueMicrotask(()=>{e&&(e=!1,o())}),{isTriggered:()=>e,dispose:()=>{e=!1}}};class pr{constructor(e){this.defaultDelay=e,this.deferred=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}trigger(e,t=this.defaultDelay){this.task=e,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise((n,s)=>{this.doResolve=n,this.doReject=s}).then(()=>{if(this.completionPromise=null,this.doResolve=null,this.task){const n=this.task;return this.task=null,n()}}));const i=()=>{this.deferred=null,this.doResolve?.(null)};return this.deferred=t===_6?ane(i):rne(t,i),this.completionPromise}isTriggered(){return!!this.deferred?.isTriggered()}cancel(){this.cancelTimeout(),this.completionPromise&&(this.doReject?.(new hr),this.completionPromise=null)}cancelTimeout(){this.deferred?.dispose(),this.deferred=null}dispose(){this.cancel()}}class b6{constructor(e){this.delayer=new pr(e),this.throttler=new one}trigger(e,t){return this.delayer.trigger(()=>this.throttler.queue(e),t)}cancel(){this.delayer.cancel()}dispose(){this.delayer.dispose(),this.throttler.dispose()}}function dl(o,e){return e?new Promise((t,i)=>{const n=setTimeout(()=>{s.dispose(),t()},o),s=e.onCancellationRequested(()=>{clearTimeout(n),s.dispose(),i(new hr)})}):Vi(t=>dl(o,t))}function Lc(o,e=0,t){const i=setTimeout(()=>{o(),t&&n.dispose()},e),n=fe(()=>{clearTimeout(i),t?.delete(n)});return t?.add(n),n}function RR(o,e=i=>!!i,t=null){let i=0;const n=o.length,s=()=>{if(i>=n)return Promise.resolve(t);const r=o[i++];return Promise.resolve(r()).then(l=>e(l)?Promise.resolve(l):s())};return s()}let lne=class{constructor(){this._runningTask=void 0,this._pendingTasks=[]}schedule(e){const t=new of;return this._pendingTasks.push({task:e,deferred:t,setUndefinedWhenCleared:!1}),this._runIfNotRunning(),t.p}_runIfNotRunning(){this._runningTask===void 0&&this._processQueue()}async _processQueue(){if(this._pendingTasks.length===0)return;const e=this._pendingTasks.shift();if(e){if(this._runningTask)throw new Ce;this._runningTask=e.task;try{const t=await e.task();e.deferred.complete(t)}catch(t){e.deferred.error(t)}finally{this._runningTask=void 0,this._processQueue()}}}clearPending(){const e=this._pendingTasks;this._pendingTasks=[];for(const t of e)t.setUndefinedWhenCleared?t.deferred.complete(void 0):t.deferred.error(new hr)}};class ro{constructor(e,t){this._isDisposed=!1,this._token=void 0,typeof e=="function"&&typeof t=="number"&&this.setIfNotSet(e,t)}dispose(){this.cancel(),this._isDisposed=!0}cancel(){this._token!==void 0&&(clearTimeout(this._token),this._token=void 0)}cancelAndSet(e,t){if(this._isDisposed)throw new Ce("Calling 'cancelAndSet' on a disposed TimeoutTimer");this.cancel(),this._token=setTimeout(()=>{this._token=void 0,e()},t)}setIfNotSet(e,t){if(this._isDisposed)throw new Ce("Calling 'setIfNotSet' on a disposed TimeoutTimer");this._token===void 0&&(this