diff --git a/.run-cli-on-save b/.run-cli-on-save
new file mode 100644
index 00000000..45b68808
--- /dev/null
+++ b/.run-cli-on-save
@@ -0,0 +1,7 @@
+[Config]
+WorkingDir={SolutionDir}
+Debug=true
+
+[PostSave]
+Commands=cmd={SolutionDir}/Scripts/RunDprint.vbs args={File}
+IncludeExtensions=.tsx|.ts|.js
diff --git a/CreateInstallerLinux.bat b/CreateInstallerLinux.bat
deleted file mode 100644
index 89e97513..00000000
--- a/CreateInstallerLinux.bat
+++ /dev/null
@@ -1,70 +0,0 @@
-@echo off
-
-set "target=linux-x64"
-set "publishDir=%~dp0\.publish"
-
-call CreateInstallerCommon.bat %target%
-
-if ERRORLEVEL 1 goto:error
-
-echo.
-echo _____________________
-echo /\ \
-echo \_^| Packaging ^|
-echo ^| electron ^|
-echo ^| DOCKER ^|
-echo ^| _________________^|_
-echo \_/___________________/
-echo.
-
-REM Cleanup folders
-if exist %~dp0\installer\linux-unpacked ( rmdir /S /Q %~dp0\installer\linux-unpacked )
-
-REM Create a volume for caching
-docker volume create electron-cache
-
-docker run --rm^
- -v electron-cache:/root/.cache^
- -v %~dp0:/project^
- -w /project/SQLSchemaCompare^
- --env ELECTRON_CACHE="/root/.cache/electron"^
- --env ELECTRON_BUILDER_CACHE="/root/.cache/electron-builder"^
- electronuserland/builder^
- yarn dist-%target%
-
-if ERRORLEVEL 1 goto:error
-
-REM Cleanup folders
-if exist %publishDir% ( rmdir /S /Q %publishDir% )
-if exist %~dp0\installer\linux-unpacked ( rmdir /S /Q %~dp0\installer\linux-unpacked )
-
-if ERRORLEVEL 1 goto:error
-
-REM Create latest-linux.yml
-for /f "tokens=1,2" %%a in (%~dp0\SQLSchemaCompare\package.json) do (
- if %%a=="version": (
- set version=%%b
- goto:versionfound
- )
-)
-:versionfound
-echo version: %version:~1,-2%> %~dp0\installer\latest-linux.yml
-echo path: SQLSchemaCompare-%version:~1,-2%.xxx>> %~dp0\installer\latest-linux.yml
-
-if ERRORLEVEL 1 goto:error
-
-echo.
-echo.
-echo DONE.
-
-REM processes done correctly
-goto:exit
-
-:error
-echo.
-echo.
-echo FAILED.
-
-:exit
-echo Press any key to close...
-pause > nul
diff --git a/CreateInstallerOSX.bat b/CreateInstallerOSX.bat
deleted file mode 100644
index d608dc6b..00000000
--- a/CreateInstallerOSX.bat
+++ /dev/null
@@ -1,88 +0,0 @@
-@echo off
-
-set "target=osx-x64"
-set "publishDir=%~dp0\.publish"
-set "electronDir=%~dp0\SQLSchemaCompare"
-set "remoteIp=10.0.10.205"
-set "remoteUser=neolution"
-set "remotePass=Neo-1234."
-set "remoteDir=/private/tmp/sqlschemacompare-build"
-
-call CreateInstallerCommon.bat %target%
-
-if ERRORLEVEL 1 goto:error
-
-echo.
-echo _____________________
-echo /\ \
-echo \_^| Preparing ^|
-echo ^| OSX ^|
-echo ^| _________________^|_
-echo \_/___________________/
-echo.
-
-REM Cleanup folders
-plink -pw %remotePass% %remoteUser%@%remoteIp% (^
- rm -rf %remoteDir%;^
- mkdir %remoteDir%;^
-)
-
-if ERRORLEVEL 1 goto:error
-
-REM Copy files to OSX
-pscp -pw %remotePass% -r %publishDir% %remoteUser%@%remoteIp%:%remoteDir%
-pscp -pw %remotePass% -r %electronDir% %remoteUser%@%remoteIp%:%remoteDir%
-
-if ERRORLEVEL 1 goto:error
-
-echo.
-echo _____________________
-echo /\ \
-echo \_^| Packaging ^|
-echo ^| electron ^|
-echo ^| OSX ^|
-echo ^| _________________^|_
-echo \_/___________________/
-echo.
-
-REM Create installer
-plink -pw %remotePass% %remoteUser%@%remoteIp% (^
- export PATH=/usr/local/bin:$PATH;^
- cd %remoteDir%/SQLSchemaCompare;^
- chmod -R a+rwx ./node_modules;^
- chmod +x ../.publish/TiCodeX.SQLSchemaCompare.UI;^
- yarn dist-%target%;^
-)
-
-if ERRORLEVEL 1 goto:error
-
-REM Copy generated files to local
-mkdir %~dp0\installer
-pscp -pw %remotePass% %remoteUser%@%remoteIp%:%remoteDir%/installer/*.zip %~dp0\installer\
-pscp -pw %remotePass% %remoteUser%@%remoteIp%:%remoteDir%/installer/*.dmg %~dp0\installer\
-pscp -pw %remotePass% %remoteUser%@%remoteIp%:%remoteDir%/installer/*.blockmap %~dp0\installer\
-pscp -pw %remotePass% %remoteUser%@%remoteIp%:%remoteDir%/installer/*.yml %~dp0\installer\
-
-if ERRORLEVEL 1 goto:error
-
-REM Cleanup folders
-plink -pw %remotePass% %remoteUser%@%remoteIp% rm -rf %remoteDir%
-if exist %publishDir% ( rmdir /S /Q %publishDir% )
-
-if ERRORLEVEL 1 goto:error
-
-echo.
-echo.
-echo DONE.
-
-REM processes done correctly
-goto:exit
-
-:error
-echo.
-echo.
-echo FAILED.
-
-:exit
-echo Press any key to close...
-pause > nul
diff --git a/Directory.Build.props b/Directory.Build.props
index 7519bb7c..5a6512a6 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -5,7 +5,7 @@
1)throw new AggregateError(e,"Encountered errors while disposing of store");return Array.isArray(t)?[]:t}else if(t)return t.dispose(),t}function Vh(...t){return wn(()=>sa(t))}class Uh{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 wn(t){return new Uh(t)}const qr=class qr{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{sa(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e||e===Et.None)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?qr.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()}}};qr.DISABLE_DISPOSED_WARNING=!1;let vn=qr;const Ks=class Ks{constructor(){this._store=new vn,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)}};Ks.None=Object.freeze({dispose(){}});let Et=Ks,ce=(ft=class{constructor(e){this.element=e,this.next=ft.Undefined,this.prev=ft.Undefined}},ft.Undefined=new ft(void 0),ft);class Bh{constructor(){this._first=ce.Undefined,this._last=ce.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===ce.Undefined}clear(){let e=this._first;for(;e!==ce.Undefined;){const n=e.next;e.prev=ce.Undefined,e.next=ce.Undefined,e=n}this._first=ce.Undefined,this._last=ce.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,n){const r=new ce(e);if(this._first===ce.Undefined)this._first=r,this._last=r;else if(n){const s=this._last;this._last=r,r.prev=s,s.next=r}else{const s=this._first;this._first=r,r.next=s,s.prev=r}this._size+=1;let i=!1;return()=>{i||(i=!0,this._remove(r))}}shift(){if(this._first!==ce.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==ce.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==ce.Undefined&&e.next!==ce.Undefined){const n=e.prev;n.next=e.next,e.next.prev=n}else e.prev===ce.Undefined&&e.next===ce.Undefined?(this._first=ce.Undefined,this._last=ce.Undefined):e.next===ce.Undefined?(this._last=this._last.prev,this._last.next=ce.Undefined):e.prev===ce.Undefined&&(this._first=this._first.next,this._first.prev=ce.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==ce.Undefined;)yield e.element,e=e.next}}function qh(){return globalThis._VSCODE_NLS_MESSAGES}function aa(){return globalThis._VSCODE_NLS_LANGUAGE}const jh=aa()==="pseudo"||typeof document<"u"&&document.location&&typeof document.location.hash=="string"&&document.location.hash.indexOf("pseudo=true")>=0;function oa(t,e){let n;return e.length===0?n=t:n=t.replace(/\{(\d+)\}/g,(r,i)=>{const s=i[0],a=e[s];let o=r;return typeof a=="string"?o=a:(typeof a=="number"||typeof a=="boolean"||a===void 0||a===null)&&(o=String(a)),o}),jh&&(n="["+n.replace(/[aouei]/g,"$&$&")+"]"),n}function H(t,e,...n){return oa(typeof t=="number"?Hh(t,e):e,n)}function Hh(t,e){const n=qh()?.[t];if(typeof n!="string"){if(typeof e=="string")return e;throw new Error(`!!! NLS MISSING: ${t} !!!`)}return n}const $t="en";let Zr=!1,ei=!1,ti=!1,la=!1,ni=!1,Zn,ri=$t,ca=$t,Gh,Ze;const et=globalThis;let Ne;typeof et.vscode<"u"&&typeof et.vscode.process<"u"?Ne=et.vscode.process:typeof process<"u"&&typeof process?.versions?.node=="string"&&(Ne=process);const Jh=typeof Ne?.versions?.electron=="string"&&Ne?.type==="renderer";if(typeof Ne=="object"){Zr=Ne.platform==="win32",ei=Ne.platform==="darwin",ti=Ne.platform==="linux",ti&&Ne.env.SNAP&&Ne.env.SNAP_REVISION,Ne.env.CI||Ne.env.BUILD_ARTIFACTSTAGINGDIRECTORY||Ne.env.GITHUB_WORKSPACE,Zn=$t,ri=$t;const t=Ne.env.VSCODE_NLS_CONFIG;if(t)try{const e=JSON.parse(t);Zn=e.userLocale,ca=e.osLocale,ri=e.resolvedLanguage||$t,Gh=e.languagePack?.translationsConfigFile}catch{}la=!0}else typeof navigator=="object"&&!Jh?(Ze=navigator.userAgent,Zr=Ze.indexOf("Windows")>=0,ei=Ze.indexOf("Macintosh")>=0,(Ze.indexOf("Macintosh")>=0||Ze.indexOf("iPad")>=0||Ze.indexOf("iPhone")>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>0,ti=Ze.indexOf("Linux")>=0,Ze?.indexOf("Mobi")>=0,ni=!0,ri=aa()||$t,Zn=navigator.language.toLowerCase(),ca=Zn):console.error("Unable to resolve platform.");const yn=Zr,Xh=ei,Yh=la,Qh=ni,Kh=ni&&typeof et.importScripts=="function"?et.origin:void 0,Ge=Ze,Zh=typeof et.postMessage=="function"&&!et.importScripts;(()=>{if(Zh){const t=[];et.addEventListener("message",n=>{if(n.data&&n.data.vscodeScheduleAsyncWork)for(let r=0,i=t.length;r{const r=++e;t.push({id:r,callback:n}),et.postMessage({vscodeScheduleAsyncWork:r},"*")}}return t=>setTimeout(t)})();const ed=!!(Ge&&Ge.indexOf("Chrome")>=0);Ge&&Ge.indexOf("Firefox")>=0,!ed&&Ge&&Ge.indexOf("Safari")>=0,Ge&&Ge.indexOf("Edg/")>=0,Ge&&Ge.indexOf("Android")>=0;let Vt;const ii=globalThis.vscode;if(typeof ii<"u"&&typeof ii.process<"u"){const t=ii.process;Vt={get platform(){return t.platform},get arch(){return t.arch},get env(){return t.env},cwd(){return t.cwd()}}}else typeof process<"u"&&typeof process?.versions?.node=="string"?Vt={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:Vt={get platform(){return yn?"win32":Xh?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const er=Vt.cwd,ha=Vt.env,td=Vt.platform,nd=globalThis.performance.now.bind(globalThis.performance);class tr{static create(e){return new tr(e)}constructor(e){this._now=e===!1?Date.now:nd,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}}const rd=100,da=6e4;function ua(){return!!ha.VSCODE_DEV}var si;(function(t){t.None=()=>Et.None;function e(I,E,z){return m(I,()=>{},0,void 0,E??!0,void 0,z)}t.defer=e;function n(I){return(E,z=null,A)=>{let M=!1,$;return $=I(B=>{if(!M)return $?$.dispose():M=!0,E.call(z,B)},null,A),M&&$.dispose(),$}}t.once=n;function r(I,E){return t.once(t.filter(I,E))}t.onceIf=r;function i(I,E,z){return d((A,M=null,$)=>I(B=>A.call(M,E(B)),null,$),z)}t.map=i;function s(I,E,z){return d((A,M=null,$)=>I(B=>{E(B),A.call(M,B)},null,$),z)}t.forEach=s;function a(I,E,z){return d((A,M=null,$)=>I(B=>E(B)&&A.call(M,B),null,$),z)}t.filter=a;function o(I){return I}t.signal=o;function l(...I){return(E,z=null,A)=>{const M=Vh(...I.map($=>$(B=>E.call(z,B))));return u(M,A)}}t.any=l;function c(I,E,z,A){let M=z;return i(I,$=>(M=E(M,$),M),A)}t.reduce=c;function d(I,E){let z;const A={onWillAddFirstListener(){z=I(M.fire,M)},onDidRemoveLastListener(){z?.dispose()}},M=new Ue(A);return E?.add(M),M.event}function u(I,E){return E instanceof Array?E.push(I):E&&E.add(I),I}function m(I,E,z=100,A=!1,M=!1,$,B){let Y,ne,ye,ge=0,Fe;const gt={leakWarningThreshold:$,onWillAddFirstListener(){Y=I(gg=>{ge++,ne=E(ne,gg),A&&!ye&&(gn.fire(ne),ne=void 0),Fe=()=>{const bg=ne;ne=void 0,ye=void 0,(!A||ge>1)&&gn.fire(bg),ge=0},typeof z=="number"?(ye&&clearTimeout(ye),ye=setTimeout(Fe,z)):ye===void 0&&(ye=null,queueMicrotask(Fe))})},onWillRemoveListener(){M&&ge>0&&Fe?.()},onDidRemoveLastListener(){Fe=void 0,Y.dispose()}},gn=new Ue(gt);return B?.add(gn),gn.event}t.debounce=m;function f(I,E=0,z,A){return t.debounce(I,(M,$)=>M?(M.push($),M):[$],E,void 0,z??!0,void 0,A)}t.accumulate=f;function g(I,E,z=100,A=!0,M=!0,$,B){let Y,ne,ye,ge=0;const Fe={leakWarningThreshold:$,onWillAddFirstListener(){Y=I(gn=>{ge++,ne=E(ne,gn),ye===void 0&&(A&&(gt.fire(ne),ne=void 0,ge=0),typeof z=="number"?ye=setTimeout(()=>{M&&ge>0&>.fire(ne),ne=void 0,ye=void 0,ge=0},z):(ye=0,queueMicrotask(()=>{M&&ge>0&>.fire(ne),ne=void 0,ye=void 0,ge=0})))})},onDidRemoveLastListener(){Y.dispose()}},gt=new Ue(Fe);return B?.add(gt),gt.event}t.throttle=g;function b(I,E=(A,M)=>A===M,z){let A=!0,M;return a(I,$=>{const B=A||!E($,M);return A=!1,M=$,B},z)}t.latch=b;function k(I,E,z){return[t.filter(I,E,z),t.filter(I,A=>!E(A),z)]}t.split=k;function F(I,E,z=!1,A=[],M){let $=A.slice(),B;ua()&&(B={stack:nr.create(),timerId:setTimeout(()=>{$&&$.length>0&&B&&!B.warned&&(B.warned=!0,console.warn(`[Event.buffer][${E}] potential LEAK detected: ${$.length} events buffered for ${da/1e3}s without being consumed. Buffered here:`),B.stack.print())},da),warned:!1},M&&M.add(wn(()=>clearTimeout(B.timerId))));const Y=()=>{B&&clearTimeout(B.timerId)};let ne=I(Fe=>{$?($.push(Fe),ua()&&B&&!B.warned&&$.length>=rd&&(B.warned=!0,console.warn(`[Event.buffer][${E}] potential LEAK detected: ${$.length} events buffered without being consumed. Buffered here:`),B.stack.print())):ge.fire(Fe)});M&&M.add(ne);const ye=()=>{$?.forEach(Fe=>ge.fire(Fe)),$=null,Y()},ge=new Ue({onWillAddFirstListener(){ne||(ne=I(Fe=>ge.fire(Fe)),M&&M.add(ne))},onDidAddFirstListener(){$&&(z?setTimeout(ye):ye())},onDidRemoveLastListener(){ne&&ne.dispose(),ne=null,Y()}});return M&&M.add(ge),ge.event}t.buffer=F;function N(I,E){return(A,M,$)=>{const B=E(new T);return I(function(Y){const ne=B.evaluate(Y);ne!==_&&A.call(M,ne)},void 0,$)}}t.chain=N;const _=Symbol("HaltChainable");class T{constructor(){this.steps=[]}map(E){return this.steps.push(E),this}forEach(E){return this.steps.push(z=>(E(z),z)),this}filter(E){return this.steps.push(z=>E(z)?z:_),this}reduce(E,z){let A=z;return this.steps.push(M=>(A=E(A,M),A)),this}latch(E=(z,A)=>z===A){let z=!0,A;return this.steps.push(M=>{const $=z||!E(M,A);return z=!1,A=M,$?M:_}),this}evaluate(E){for(const z of this.steps)if(E=z(E),E===_)break;return E}}function O(I,E,z=A=>A){const A=(...Y)=>B.fire(z(...Y)),M=()=>I.on(E,A),$=()=>I.removeListener(E,A),B=new Ue({onWillAddFirstListener:M,onDidRemoveLastListener:$});return B.event}t.fromNodeEventEmitter=O;function V(I,E,z=A=>A){const A=(...Y)=>B.fire(z(...Y)),M=()=>I.addEventListener(E,A),$=()=>I.removeEventListener(E,A),B=new Ue({onWillAddFirstListener:M,onDidRemoveLastListener:$});return B.event}t.fromDOMEventEmitter=V;function D(I,E){let z,A;const M=new Promise($=>{A=n(I)($),ci(A,E),z=()=>{pa(A,E)}});return M.cancel=z,E&&M.finally(()=>pa(A,E)),M}t.toPromise=D;function R(I,E){return I(z=>E.fire(z))}t.forward=R;function P(I,E,z){return E(z),I(A=>E(A))}t.runAndSubscribe=P;class U{constructor(E,z){this._observable=E,this._counter=0,this._hasChanged=!1;const A={onWillAddFirstListener:()=>{E.addObserver(this),this._observable.reportChanges()},onDidRemoveLastListener:()=>{E.removeObserver(this)}};this.emitter=new Ue(A),z&&z.add(this.emitter)}beginUpdate(E){this._counter++}handlePossibleChange(E){}handleChange(E,z){this._hasChanged=!0}endUpdate(E){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function L(I,E){return new U(I,E).emitter.event}t.fromObservable=L;function C(I){return(E,z,A)=>{let M=0,$=!1;const B={beginUpdate(){M++},endUpdate(){M--,M===0&&(I.reportChanges(),$&&($=!1,E.call(z)))},handlePossibleChange(){},handleChange(){$=!0}};I.addObserver(B),I.reportChanges();const Y={dispose(){I.removeObserver(B)}};return ci(Y,A),Y}}t.fromObservableLight=C})(si||(si={}));const un=class un{constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${un._idPool++}`,un.all.add(this)}start(e){this._stopWatch=new tr,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}}};un.all=new Set,un._idPool=0;let ai=un,id=-1;const jr=class jr{constructor(e,n,r=(jr._idPool++).toString(16).padStart(3,"0")){this._errorHandler=e,this.threshold=n,this.name=r,this._warnCountdown=0}dispose(){this._stacks?.clear()}check(e,n){const r=this.threshold;if(r<=0||n=e&&i>=r&&this.ElementsAreEqual(n,i);)n--,i--;if(e>n||r>i){let u;return r<=i?(Ut.Assert(e===n+1,"originalStart should only be one more than originalEnd"),u=[new bt(e,0,r,i-r+1)]):e<=n?(Ut.Assert(r===i+1,"modifiedStart should only be one more than modifiedEnd"),u=[new bt(e,n-e+1,r,0)]):(Ut.Assert(e===n+1,"originalStart should only be one more than originalEnd"),Ut.Assert(r===i+1,"modifiedStart should only be one more than modifiedEnd"),u=[]),u}const a=[0],o=[0],l=this.ComputeRecursionPoint(e,n,r,i,a,o,s),c=a[0],d=o[0];if(l!==null)return l;if(!s[0]){const u=this.ComputeDiffRecursive(e,c,r,d,s);let m=[];return s[0]?m=[new bt(c+1,n-(c+1)+1,d+1,i-(d+1)+1)]:m=this.ComputeDiffRecursive(c+1,n,d+1,i,s),this.ConcatenateChanges(u,m)}return[new bt(e,n-e+1,r,i-r+1)]}WALKTRACE(e,n,r,i,s,a,o,l,c,d,u,m,f,g,b,k,F,N){let _=null,T=null,O=new xa,V=n,D=r,R=f[0]-k[0]-i,P=-1073741824,U=this.m_forwardHistory.length-1;do{const L=R+e;L===V||L0&&(n+=`/${Array.isArray(e.comment)?e.comment.join(""):e.comment}`),i=e.args??{};return Om(r,i)}var Tm=/{([^}]+)}/g;function Om(t,e){return Object.keys(e).length===0?t:t.replace(Tm,(n,r)=>e[r]??n)}class re{constructor(e,n){this.id=e,this.message=n}}const x={NumberExpected:new re("css-numberexpected",w("number expected")),ConditionExpected:new re("css-conditionexpected",w("condition expected")),RuleOrSelectorExpected:new re("css-ruleorselectorexpected",w("at-rule or selector expected")),DotExpected:new re("css-dotexpected",w("dot expected")),ColonExpected:new re("css-colonexpected",w("colon expected")),SemiColonExpected:new re("css-semicolonexpected",w("semi-colon expected")),TermExpected:new re("css-termexpected",w("term expected")),ExpressionExpected:new re("css-expressionexpected",w("expression expected")),OperatorExpected:new re("css-operatorexpected",w("operator expected")),IdentifierExpected:new re("css-identifierexpected",w("identifier expected")),PercentageExpected:new re("css-percentageexpected",w("percentage expected")),URIOrStringExpected:new re("css-uriorstringexpected",w("uri or string expected")),URIExpected:new re("css-uriexpected",w("URI expected")),VariableNameExpected:new re("css-varnameexpected",w("variable name expected")),VariableValueExpected:new re("css-varvalueexpected",w("variable value expected")),PropertyValueExpected:new re("css-propertyvalueexpected",w("property value expected")),LeftCurlyExpected:new re("css-lcurlyexpected",w("{ expected")),RightCurlyExpected:new re("css-rcurlyexpected",w("} expected")),LeftSquareBracketExpected:new re("css-rbracketexpected",w("[ expected")),RightSquareBracketExpected:new re("css-lbracketexpected",w("] expected")),LeftParenthesisExpected:new re("css-lparentexpected",w("( expected")),RightParenthesisExpected:new re("css-rparentexpected",w(") expected")),CommaExpected:new re("css-commaexpected",w("comma expected")),PageDirectiveOrDeclarationExpected:new re("css-pagedirordeclexpected",w("page directive or declaraton expected")),UnknownAtRule:new re("css-unknownatrule",w("at-rule unknown")),UnknownKeyword:new re("css-unknownkeyword",w("unknown keyword")),SelectorExpected:new re("css-selectorexpected",w("selector expected")),StringLiteralExpected:new re("css-stringliteralexpected",w("string literal expected")),WhitespaceExpected:new re("css-whitespaceexpected",w("whitespace expected")),MediaQueryExpected:new re("css-mediaqueryexpected",w("media query expected")),IdentifierOrWildcardExpected:new re("css-idorwildcardexpected",w("identifier or wildcard expected")),WildcardExpected:new re("css-wildcardexpected",w("wildcard expected")),IdentifierOrVariableExpected:new re("css-idorvarexpected",w("identifier or variable expected"))};var Xl;(function(t){function e(n){return typeof n=="string"}t.is=e})(Xl||(Xl={}));var ls;(function(t){function e(n){return typeof n=="string"}t.is=e})(ls||(ls={}));var Yl;(function(t){t.MIN_VALUE=-2147483648,t.MAX_VALUE=2147483647;function e(n){return typeof n=="number"&&t.MIN_VALUE<=n&&n<=t.MAX_VALUE}t.is=e})(Yl||(Yl={}));var _r;(function(t){t.MIN_VALUE=0,t.MAX_VALUE=2147483647;function e(n){return typeof n=="number"&&t.MIN_VALUE<=n&&n<=t.MAX_VALUE}t.is=e})(_r||(_r={}));var _e;(function(t){function e(r,i){return r===Number.MAX_VALUE&&(r=_r.MAX_VALUE),i===Number.MAX_VALUE&&(i=_r.MAX_VALUE),{line:r,character:i}}t.create=e;function n(r){let i=r;return S.objectLiteral(i)&&S.uinteger(i.line)&&S.uinteger(i.character)}t.is=n})(_e||(_e={}));var ee;(function(t){function e(r,i,s,a){if(S.uinteger(r)&&S.uinteger(i)&&S.uinteger(s)&&S.uinteger(a))return{start:_e.create(r,i),end:_e.create(s,a)};if(_e.is(r)&&_e.is(i))return{start:r,end:i};throw new Error(`Range#create called with invalid arguments[${r}, ${i}, ${s}, ${a}]`)}t.create=e;function n(r){let i=r;return S.objectLiteral(i)&&_e.is(i.start)&&_e.is(i.end)}t.is=n})(ee||(ee={}));var $n;(function(t){function e(r,i){return{uri:r,range:i}}t.create=e;function n(r){let i=r;return S.objectLiteral(i)&&ee.is(i.range)&&(S.string(i.uri)||S.undefined(i.uri))}t.is=n})($n||($n={}));var Ql;(function(t){function e(r,i,s,a){return{targetUri:r,targetRange:i,targetSelectionRange:s,originSelectionRange:a}}t.create=e;function n(r){let i=r;return S.objectLiteral(i)&&ee.is(i.targetRange)&&S.string(i.targetUri)&&ee.is(i.targetSelectionRange)&&(ee.is(i.originSelectionRange)||S.undefined(i.originSelectionRange))}t.is=n})(Ql||(Ql={}));var cs;(function(t){function e(r,i,s,a){return{red:r,green:i,blue:s,alpha:a}}t.create=e;function n(r){const i=r;return S.objectLiteral(i)&&S.numberRange(i.red,0,1)&&S.numberRange(i.green,0,1)&&S.numberRange(i.blue,0,1)&&S.numberRange(i.alpha,0,1)}t.is=n})(cs||(cs={}));var Kl;(function(t){function e(r,i){return{range:r,color:i}}t.create=e;function n(r){const i=r;return S.objectLiteral(i)&&ee.is(i.range)&&cs.is(i.color)}t.is=n})(Kl||(Kl={}));var Zl;(function(t){function e(r,i,s){return{label:r,textEdit:i,additionalTextEdits:s}}t.create=e;function n(r){const i=r;return S.objectLiteral(i)&&S.string(i.label)&&(S.undefined(i.textEdit)||X.is(i))&&(S.undefined(i.additionalTextEdits)||S.typedArray(i.additionalTextEdits,X.is))}t.is=n})(Zl||(Zl={}));var ec;(function(t){t.Comment="comment",t.Imports="imports",t.Region="region"})(ec||(ec={}));var tc;(function(t){function e(r,i,s,a,o,l){const c={startLine:r,endLine:i};return S.defined(s)&&(c.startCharacter=s),S.defined(a)&&(c.endCharacter=a),S.defined(o)&&(c.kind=o),S.defined(l)&&(c.collapsedText=l),c}t.create=e;function n(r){const i=r;return S.objectLiteral(i)&&S.uinteger(i.startLine)&&S.uinteger(i.startLine)&&(S.undefined(i.startCharacter)||S.uinteger(i.startCharacter))&&(S.undefined(i.endCharacter)||S.uinteger(i.endCharacter))&&(S.undefined(i.kind)||S.string(i.kind))}t.is=n})(tc||(tc={}));var hs;(function(t){function e(r,i){return{location:r,message:i}}t.create=e;function n(r){let i=r;return S.defined(i)&&$n.is(i.location)&&S.string(i.message)}t.is=n})(hs||(hs={}));var Er;(function(t){t.Error=1,t.Warning=2,t.Information=3,t.Hint=4})(Er||(Er={}));var nc;(function(t){t.Unnecessary=1,t.Deprecated=2})(nc||(nc={}));var rc;(function(t){function e(n){const r=n;return S.objectLiteral(r)&&S.string(r.href)}t.is=e})(rc||(rc={}));var Fr;(function(t){function e(r,i,s,a,o,l){let c={range:r,message:i};return S.defined(s)&&(c.severity=s),S.defined(a)&&(c.code=a),S.defined(o)&&(c.source=o),S.defined(l)&&(c.relatedInformation=l),c}t.create=e;function n(r){var i;let s=r;return S.defined(s)&&ee.is(s.range)&&S.string(s.message)&&(S.number(s.severity)||S.undefined(s.severity))&&(S.integer(s.code)||S.string(s.code)||S.undefined(s.code))&&(S.undefined(s.codeDescription)||S.string((i=s.codeDescription)===null||i===void 0?void 0:i.href))&&(S.string(s.source)||S.undefined(s.source))&&(S.undefined(s.relatedInformation)||S.typedArray(s.relatedInformation,hs.is))}t.is=n})(Fr||(Fr={}));var Lt;(function(t){function e(r,i,...s){let a={title:r,command:i};return S.defined(s)&&s.length>0&&(a.arguments=s),a}t.create=e;function n(r){let i=r;return S.defined(i)&&S.string(i.title)&&S.string(i.command)}t.is=n})(Lt||(Lt={}));var X;(function(t){function e(s,a){return{range:s,newText:a}}t.replace=e;function n(s,a){return{range:{start:s,end:s},newText:a}}t.insert=n;function r(s){return{range:s,newText:""}}t.del=r;function i(s){const a=s;return S.objectLiteral(a)&&S.string(a.newText)&&ee.is(a.range)}t.is=i})(X||(X={}));var ds;(function(t){function e(r,i,s){const a={label:r};return i!==void 0&&(a.needsConfirmation=i),s!==void 0&&(a.description=s),a}t.create=e;function n(r){const i=r;return S.objectLiteral(i)&&S.string(i.label)&&(S.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(S.string(i.description)||i.description===void 0)}t.is=n})(ds||(ds={}));var rn;(function(t){function e(n){const r=n;return S.string(r)}t.is=e})(rn||(rn={}));var ic;(function(t){function e(s,a,o){return{range:s,newText:a,annotationId:o}}t.replace=e;function n(s,a,o){return{range:{start:s,end:s},newText:a,annotationId:o}}t.insert=n;function r(s,a){return{range:s,newText:"",annotationId:a}}t.del=r;function i(s){const a=s;return X.is(a)&&(ds.is(a.annotationId)||rn.is(a.annotationId))}t.is=i})(ic||(ic={}));var Rr;(function(t){function e(r,i){return{textDocument:r,edits:i}}t.create=e;function n(r){let i=r;return S.defined(i)&&bs.is(i.textDocument)&&Array.isArray(i.edits)}t.is=n})(Rr||(Rr={}));var us;(function(t){function e(r,i,s){let a={kind:"create",uri:r};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(a.options=i),s!==void 0&&(a.annotationId=s),a}t.create=e;function n(r){let i=r;return i&&i.kind==="create"&&S.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||S.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||S.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||rn.is(i.annotationId))}t.is=n})(us||(us={}));var ps;(function(t){function e(r,i,s,a){let o={kind:"rename",oldUri:r,newUri:i};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(o.options=s),a!==void 0&&(o.annotationId=a),o}t.create=e;function n(r){let i=r;return i&&i.kind==="rename"&&S.string(i.oldUri)&&S.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||S.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||S.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||rn.is(i.annotationId))}t.is=n})(ps||(ps={}));var ms;(function(t){function e(r,i,s){let a={kind:"delete",uri:r};return i!==void 0&&(i.recursive!==void 0||i.ignoreIfNotExists!==void 0)&&(a.options=i),s!==void 0&&(a.annotationId=s),a}t.create=e;function n(r){let i=r;return i&&i.kind==="delete"&&S.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||S.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||S.boolean(i.options.ignoreIfNotExists)))&&(i.annotationId===void 0||rn.is(i.annotationId))}t.is=n})(ms||(ms={}));var fs;(function(t){function e(n){let r=n;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(i=>S.string(i.kind)?us.is(i)||ps.is(i)||ms.is(i):Rr.is(i)))}t.is=e})(fs||(fs={}));var sc;(function(t){function e(r){return{uri:r}}t.create=e;function n(r){let i=r;return S.defined(i)&&S.string(i.uri)}t.is=n})(sc||(sc={}));var gs;(function(t){function e(r,i){return{uri:r,version:i}}t.create=e;function n(r){let i=r;return S.defined(i)&&S.string(i.uri)&&S.integer(i.version)}t.is=n})(gs||(gs={}));var bs;(function(t){function e(r,i){return{uri:r,version:i}}t.create=e;function n(r){let i=r;return S.defined(i)&&S.string(i.uri)&&(i.version===null||S.integer(i.version))}t.is=n})(bs||(bs={}));var ac;(function(t){function e(r,i,s,a){return{uri:r,languageId:i,version:s,text:a}}t.create=e;function n(r){let i=r;return S.defined(i)&&S.string(i.uri)&&S.string(i.languageId)&&S.integer(i.version)&&S.string(i.text)}t.is=n})(ac||(ac={}));var Ye;(function(t){t.PlainText="plaintext",t.Markdown="markdown";function e(n){const r=n;return r===t.PlainText||r===t.Markdown}t.is=e})(Ye||(Ye={}));var Vn;(function(t){function e(n){const r=n;return S.objectLiteral(n)&&Ye.is(r.kind)&&S.string(r.value)}t.is=e})(Vn||(Vn={}));var G;(function(t){t.Text=1,t.Method=2,t.Function=3,t.Constructor=4,t.Field=5,t.Variable=6,t.Class=7,t.Interface=8,t.Module=9,t.Property=10,t.Unit=11,t.Value=12,t.Enum=13,t.Keyword=14,t.Snippet=15,t.Color=16,t.File=17,t.Reference=18,t.Folder=19,t.EnumMember=20,t.Constant=21,t.Struct=22,t.Event=23,t.Operator=24,t.TypeParameter=25})(G||(G={}));var ze;(function(t){t.PlainText=1,t.Snippet=2})(ze||(ze={}));var At;(function(t){t.Deprecated=1})(At||(At={}));var oc;(function(t){function e(r,i,s){return{newText:r,insert:i,replace:s}}t.create=e;function n(r){const i=r;return i&&S.string(i.newText)&&ee.is(i.insert)&&ee.is(i.replace)}t.is=n})(oc||(oc={}));var lc;(function(t){t.asIs=1,t.adjustIndentation=2})(lc||(lc={}));var cc;(function(t){function e(n){const r=n;return r&&(S.string(r.detail)||r.detail===void 0)&&(S.string(r.description)||r.description===void 0)}t.is=e})(cc||(cc={}));var hc;(function(t){function e(n){return{label:n}}t.create=e})(hc||(hc={}));var dc;(function(t){function e(n,r){return{items:n||[],isIncomplete:!!r}}t.create=e})(dc||(dc={}));var Nr;(function(t){function e(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}t.fromPlainText=e;function n(r){const i=r;return S.string(i)||S.objectLiteral(i)&&S.string(i.language)&&S.string(i.value)}t.is=n})(Nr||(Nr={}));var uc;(function(t){function e(n){let r=n;return!!r&&S.objectLiteral(r)&&(Vn.is(r.contents)||Nr.is(r.contents)||S.typedArray(r.contents,Nr.is))&&(n.range===void 0||ee.is(n.range))}t.is=e})(uc||(uc={}));var pc;(function(t){function e(n,r){return r?{label:n,documentation:r}:{label:n}}t.create=e})(pc||(pc={}));var mc;(function(t){function e(n,r,...i){let s={label:n};return S.defined(r)&&(s.documentation=r),S.defined(i)?s.parameters=i:s.parameters=[],s}t.create=e})(mc||(mc={}));var sn;(function(t){t.Text=1,t.Read=2,t.Write=3})(sn||(sn={}));var fc;(function(t){function e(n,r){let i={range:n};return S.number(r)&&(i.kind=r),i}t.create=e})(fc||(fc={}));var lt;(function(t){t.File=1,t.Module=2,t.Namespace=3,t.Package=4,t.Class=5,t.Method=6,t.Property=7,t.Field=8,t.Constructor=9,t.Enum=10,t.Interface=11,t.Function=12,t.Variable=13,t.Constant=14,t.String=15,t.Number=16,t.Boolean=17,t.Array=18,t.Object=19,t.Key=20,t.Null=21,t.EnumMember=22,t.Struct=23,t.Event=24,t.Operator=25,t.TypeParameter=26})(lt||(lt={}));var gc;(function(t){t.Deprecated=1})(gc||(gc={}));var bc;(function(t){function e(n,r,i,s,a){let o={name:n,kind:r,location:{uri:s,range:i}};return a&&(o.containerName=a),o}t.create=e})(bc||(bc={}));var wc;(function(t){function e(n,r,i,s){return s!==void 0?{name:n,kind:r,location:{uri:i,range:s}}:{name:n,kind:r,location:{uri:i}}}t.create=e})(wc||(wc={}));var vc;(function(t){function e(r,i,s,a,o,l){let c={name:r,detail:i,kind:s,range:a,selectionRange:o};return l!==void 0&&(c.children=l),c}t.create=e;function n(r){let i=r;return i&&S.string(i.name)&&S.number(i.kind)&&ee.is(i.range)&&ee.is(i.selectionRange)&&(i.detail===void 0||S.string(i.detail))&&(i.deprecated===void 0||S.boolean(i.deprecated))&&(i.children===void 0||Array.isArray(i.children))&&(i.tags===void 0||Array.isArray(i.tags))}t.is=n})(vc||(vc={}));var ws;(function(t){t.Empty="",t.QuickFix="quickfix",t.Refactor="refactor",t.RefactorExtract="refactor.extract",t.RefactorInline="refactor.inline",t.RefactorRewrite="refactor.rewrite",t.Source="source",t.SourceOrganizeImports="source.organizeImports",t.SourceFixAll="source.fixAll"})(ws||(ws={}));var Ir;(function(t){t.Invoked=1,t.Automatic=2})(Ir||(Ir={}));var yc;(function(t){function e(r,i,s){let a={diagnostics:r};return i!=null&&(a.only=i),s!=null&&(a.triggerKind=s),a}t.create=e;function n(r){let i=r;return S.defined(i)&&S.typedArray(i.diagnostics,Fr.is)&&(i.only===void 0||S.typedArray(i.only,S.string))&&(i.triggerKind===void 0||i.triggerKind===Ir.Invoked||i.triggerKind===Ir.Automatic)}t.is=n})(yc||(yc={}));var vs;(function(t){function e(r,i,s){let a={title:r},o=!0;return typeof i=="string"?(o=!1,a.kind=i):Lt.is(i)?a.command=i:a.edit=i,o&&s!==void 0&&(a.kind=s),a}t.create=e;function n(r){let i=r;return i&&S.string(i.title)&&(i.diagnostics===void 0||S.typedArray(i.diagnostics,Fr.is))&&(i.kind===void 0||S.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||Lt.is(i.command))&&(i.isPreferred===void 0||S.boolean(i.isPreferred))&&(i.edit===void 0||fs.is(i.edit))}t.is=n})(vs||(vs={}));var xc;(function(t){function e(r,i){let s={range:r};return S.defined(i)&&(s.data=i),s}t.create=e;function n(r){let i=r;return S.defined(i)&&ee.is(i.range)&&(S.undefined(i.command)||Lt.is(i.command))}t.is=n})(xc||(xc={}));var Sc;(function(t){function e(r,i){return{tabSize:r,insertSpaces:i}}t.create=e;function n(r){let i=r;return S.defined(i)&&S.uinteger(i.tabSize)&&S.boolean(i.insertSpaces)}t.is=n})(Sc||(Sc={}));var Cc;(function(t){function e(r,i,s){return{range:r,target:i,data:s}}t.create=e;function n(r){let i=r;return S.defined(i)&&ee.is(i.range)&&(S.undefined(i.target)||S.string(i.target))}t.is=n})(Cc||(Cc={}));var Dr;(function(t){function e(r,i){return{range:r,parent:i}}t.create=e;function n(r){let i=r;return S.objectLiteral(i)&&ee.is(i.range)&&(i.parent===void 0||t.is(i.parent))}t.is=n})(Dr||(Dr={}));var kc;(function(t){t.namespace="namespace",t.type="type",t.class="class",t.enum="enum",t.interface="interface",t.struct="struct",t.typeParameter="typeParameter",t.parameter="parameter",t.variable="variable",t.property="property",t.enumMember="enumMember",t.event="event",t.function="function",t.method="method",t.macro="macro",t.keyword="keyword",t.modifier="modifier",t.comment="comment",t.string="string",t.number="number",t.regexp="regexp",t.operator="operator",t.decorator="decorator"})(kc||(kc={}));var _c;(function(t){t.declaration="declaration",t.definition="definition",t.readonly="readonly",t.static="static",t.deprecated="deprecated",t.abstract="abstract",t.async="async",t.modification="modification",t.documentation="documentation",t.defaultLibrary="defaultLibrary"})(_c||(_c={}));var Ec;(function(t){function e(n){const r=n;return S.objectLiteral(r)&&(r.resultId===void 0||typeof r.resultId=="string")&&Array.isArray(r.data)&&(r.data.length===0||typeof r.data[0]=="number")}t.is=e})(Ec||(Ec={}));var Fc;(function(t){function e(r,i){return{range:r,text:i}}t.create=e;function n(r){const i=r;return i!=null&&ee.is(i.range)&&S.string(i.text)}t.is=n})(Fc||(Fc={}));var Rc;(function(t){function e(r,i,s){return{range:r,variableName:i,caseSensitiveLookup:s}}t.create=e;function n(r){const i=r;return i!=null&&ee.is(i.range)&&S.boolean(i.caseSensitiveLookup)&&(S.string(i.variableName)||i.variableName===void 0)}t.is=n})(Rc||(Rc={}));var Nc;(function(t){function e(r,i){return{range:r,expression:i}}t.create=e;function n(r){const i=r;return i!=null&&ee.is(i.range)&&(S.string(i.expression)||i.expression===void 0)}t.is=n})(Nc||(Nc={}));var Ic;(function(t){function e(r,i){return{frameId:r,stoppedLocation:i}}t.create=e;function n(r){const i=r;return S.defined(i)&&ee.is(r.stoppedLocation)}t.is=n})(Ic||(Ic={}));var ys;(function(t){t.Type=1,t.Parameter=2;function e(n){return n===1||n===2}t.is=e})(ys||(ys={}));var xs;(function(t){function e(r){return{value:r}}t.create=e;function n(r){const i=r;return S.objectLiteral(i)&&(i.tooltip===void 0||S.string(i.tooltip)||Vn.is(i.tooltip))&&(i.location===void 0||$n.is(i.location))&&(i.command===void 0||Lt.is(i.command))}t.is=n})(xs||(xs={}));var Dc;(function(t){function e(r,i,s){const a={position:r,label:i};return s!==void 0&&(a.kind=s),a}t.create=e;function n(r){const i=r;return S.objectLiteral(i)&&_e.is(i.position)&&(S.string(i.label)||S.typedArray(i.label,xs.is))&&(i.kind===void 0||ys.is(i.kind))&&i.textEdits===void 0||S.typedArray(i.textEdits,X.is)&&(i.tooltip===void 0||S.string(i.tooltip)||Vn.is(i.tooltip))&&(i.paddingLeft===void 0||S.boolean(i.paddingLeft))&&(i.paddingRight===void 0||S.boolean(i.paddingRight))}t.is=n})(Dc||(Dc={}));var Lc;(function(t){function e(n){return{kind:"snippet",value:n}}t.createSnippet=e})(Lc||(Lc={}));var Ac;(function(t){function e(n,r,i,s){return{insertText:n,filterText:r,range:i,command:s}}t.create=e})(Ac||(Ac={}));var Mc;(function(t){function e(n){return{items:n}}t.create=e})(Mc||(Mc={}));var zc;(function(t){t.Invoked=0,t.Automatic=1})(zc||(zc={}));var Pc;(function(t){function e(n,r){return{range:n,text:r}}t.create=e})(Pc||(Pc={}));var Tc;(function(t){function e(n,r){return{triggerKind:n,selectedCompletionInfo:r}}t.create=e})(Tc||(Tc={}));var Oc;(function(t){function e(n){const r=n;return S.objectLiteral(r)&&ls.is(r.uri)&&S.string(r.name)}t.is=e})(Oc||(Oc={}));var Wc;(function(t){function e(s,a,o,l){return new Wm(s,a,o,l)}t.create=e;function n(s){let a=s;return!!(S.defined(a)&&S.string(a.uri)&&(S.undefined(a.languageId)||S.string(a.languageId))&&S.uinteger(a.lineCount)&&S.func(a.getText)&&S.func(a.positionAt)&&S.func(a.offsetAt))}t.is=n;function r(s,a){let o=s.getText(),l=i(a,(d,u)=>{let m=d.range.start.line-u.range.start.line;return m===0?d.range.start.character-u.range.start.character:m}),c=o.length;for(let d=l.length-1;d>=0;d--){let u=l[d],m=s.offsetAt(u.range.start),f=s.offsetAt(u.range.end);if(f<=c)o=o.substring(0,m)+u.newText+o.substring(f,o.length);else throw new Error("Overlapping edit");c=m}return o}t.applyEdits=r;function i(s,a){if(s.length<=1)return s;const o=s.length/2|0,l=s.slice(0,o),c=s.slice(o);i(l,a),i(c,a);let d=0,u=0,m=0;for(;d=0;c--)if(this.__items[c].match(l))return!0;return!1},s.prototype.set_indent=function(l,c){this.is_empty()&&(this.__indent_count=l||0,this.__alignment_count=c||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},s.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},s.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},s.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var l=this.__parent.current_line;return l.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),l.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),l.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,l.__items[0]===" "&&(l.__items.splice(0,1),l.__character_count-=1),!0}return!1},s.prototype.is_empty=function(){return this.__items.length===0},s.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},s.prototype.push=function(l){this.__items.push(l);var c=l.lastIndexOf(`
+`);c!==-1?this.__character_count=l.length-c:this.__character_count+=l.length},s.prototype.pop=function(){var l=null;return this.is_empty()||(l=this.__items.pop(),this.__character_count-=l.length),l},s.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},s.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},s.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},s.prototype.toString=function(){var l="";return this.is_empty()?this.__parent.indent_empty_lines&&(l=this.__parent.get_indent_string(this.__indent_count)):(l=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),l+=this.__items.join("")),l};function a(l,c){this.__cache=[""],this.__indent_size=l.indent_size,this.__indent_string=l.indent_char,l.indent_with_tabs||(this.__indent_string=new Array(l.indent_size+1).join(l.indent_char)),c=c||"",l.indent_level>0&&(c=new Array(l.indent_level+1).join(this.__indent_string)),this.__base_string=c,this.__base_string_length=c.length}a.prototype.get_indent_size=function(l,c){var d=this.__base_string_length;return c=c||0,l<0&&(d=0),d+=l*this.__indent_size,d+=c,d},a.prototype.get_indent_string=function(l,c){var d=this.__base_string;return c=c||0,l<0&&(l=0,d=""),c+=l*this.__indent_size,this.__ensure_cache(c),d+=this.__cache[c],d},a.prototype.__ensure_cache=function(l){for(;l>=this.__cache.length;)this.__add_column()},a.prototype.__add_column=function(){var l=this.__cache.length,c=0,d="";this.__indent_size&&l>=this.__indent_size&&(c=Math.floor(l/this.__indent_size),l-=c*this.__indent_size,d=new Array(c+1).join(this.__indent_string)),l&&(d+=new Array(l+1).join(" ")),this.__cache.push(d)};function o(l,c){this.__indent_cache=new a(l,c),this.raw=!1,this._end_with_newline=l.end_with_newline,this.indent_size=l.indent_size,this.wrap_line_length=l.wrap_line_length,this.indent_empty_lines=l.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new s(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}o.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},o.prototype.get_line_number=function(){return this.__lines.length},o.prototype.get_indent_string=function(l,c){return this.__indent_cache.get_indent_string(l,c)},o.prototype.get_indent_size=function(l,c){return this.__indent_cache.get_indent_size(l,c)},o.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},o.prototype.add_new_line=function(l){return this.is_empty()||!l&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},o.prototype.get_code=function(l){this.trim(!0);var c=this.current_line.pop();c&&(c[c.length-1]===`
+`&&(c=c.replace(/\n+$/g,"")),this.current_line.push(c)),this._end_with_newline&&this.__add_outputline();var d=this.__lines.join(`
+`);return l!==`
+`&&(d=d.replace(/[\n]/g,l)),d},o.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},o.prototype.set_indent=function(l,c){return l=l||0,c=c||0,this.next_line.set_indent(l,c),this.__lines.length>1?(this.current_line.set_indent(l,c),!0):(this.current_line.set_indent(),!1)},o.prototype.add_raw_token=function(l){for(var c=0;c