49a294e830
subrepo: subdir: "dotfiles/.vim/plugged/coc.nvim" merged: "387b7850a" upstream: origin: "https://github.com/neoclide/coc.nvim.git" branch: "release" commit: "387b7850a" git-subrepo: version: "0.4.3" origin: "???" commit: "???"
323 lines
1.6 MiB
323 lines
1.6 MiB
"use strict";var Qie=Object.create;var wy=Object.defineProperty;var Vie=Object.getOwnPropertyDescriptor;var ene=Object.getOwnPropertyNames;var tne=Object.getPrototypeOf,ine=Object.prototype.hasOwnProperty;var k=(n,e)=>()=>(n&&(e=n(n=0)),e);var y=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports),Go=(n,e)=>{for(var t in e)wy(n,t,{get:e[t],enumerable:!0})},sj=(n,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of ene(e))!ine.call(n,r)&&r!==t&&wy(n,r,{get:()=>e[r],enumerable:!(i=Vie(e,r))||i.enumerable});return n};var S=(n,e,t)=>(t=n!=null?Qie(tne(n)):{},sj(e||!n||!n.__esModule?wy(t,"default",{value:n,enumerable:!0}):t,n)),Co=n=>sj(wy({},"__esModule",{value:!0}),n);var lj=y((Gke,aj)=>{var nc=1e3,rc=nc*60,oc=rc*60,dl=oc*24,nne=dl*7,rne=dl*365.25;aj.exports=function(n,e){e=e||{};var t=typeof n;if(t==="string"&&n.length>0)return one(n);if(t==="number"&&isFinite(n))return e.long?ane(n):sne(n);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(n))};function one(n){if(n=String(n),!(n.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(n);if(!!e){var t=parseFloat(e[1]),i=(e[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return t*rne;case"weeks":case"week":case"w":return t*nne;case"days":case"day":case"d":return t*dl;case"hours":case"hour":case"hrs":case"hr":case"h":return t*oc;case"minutes":case"minute":case"mins":case"min":case"m":return t*rc;case"seconds":case"second":case"secs":case"sec":case"s":return t*nc;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t;default:return}}}}function sne(n){var e=Math.abs(n);return e>=dl?Math.round(n/dl)+"d":e>=oc?Math.round(n/oc)+"h":e>=rc?Math.round(n/rc)+"m":e>=nc?Math.round(n/nc)+"s":n+"ms"}function ane(n){var e=Math.abs(n);return e>=dl?xy(n,e,dl,"day"):e>=oc?xy(n,e,oc,"hour"):e>=rc?xy(n,e,rc,"minute"):e>=nc?xy(n,e,nc,"second"):n+" ms"}function xy(n,e,t,i){var r=e>=t*1.5;return Math.round(n/t)+" "+i+(r?"s":"")}});var XD=y((zke,uj)=>{function lne(n){t.debug=t,t.default=t,t.coerce=l,t.disable=o,t.enable=r,t.enabled=s,t.humanize=lj(),t.destroy=u,Object.keys(n).forEach(c=>{t[c]=n[c]}),t.names=[],t.skips=[],t.formatters={};function e(c){let h=0;for(let d=0;d<c.length;d++)h=(h<<5)-h+c.charCodeAt(d),h|=0;return t.colors[Math.abs(h)%t.colors.length]}t.selectColor=e;function t(c){let h,d=null,g,p;function f(...m){if(!f.enabled)return;let b=f,w=Number(new Date),x=w-(h||w);b.diff=x,b.prev=h,b.curr=w,h=w,m[0]=t.coerce(m[0]),typeof m[0]!="string"&&m.unshift("%O");let T=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,(F,N)=>{if(F==="%%")return"%";T++;let J=t.formatters[N];if(typeof J=="function"){let H=m[T];F=J.call(b,H),m.splice(T,1),T--}return F}),t.formatArgs.call(b,m),(b.log||t.log).apply(b,m)}return f.namespace=c,f.useColors=t.useColors(),f.color=t.selectColor(c),f.extend=i,f.destroy=t.destroy,Object.defineProperty(f,"enabled",{enumerable:!0,configurable:!1,get:()=>d!==null?d:(g!==t.namespaces&&(g=t.namespaces,p=t.enabled(c)),p),set:m=>{d=m}}),typeof t.init=="function"&&t.init(f),f}function i(c,h){let d=t(this.namespace+(typeof h>"u"?":":h)+c);return d.log=this.log,d}function r(c){t.save(c),t.namespaces=c,t.names=[],t.skips=[];let h,d=(typeof c=="string"?c:"").split(/[\s,]+/),g=d.length;for(h=0;h<g;h++)!d[h]||(c=d[h].replace(/\*/g,".*?"),c[0]==="-"?t.skips.push(new RegExp("^"+c.slice(1)+"$")):t.names.push(new RegExp("^"+c+"$")))}function o(){let c=[...t.names.map(a),...t.skips.map(a).map(h=>"-"+h)].join(",");return t.enable(""),c}function s(c){if(c[c.length-1]==="*")return!0;let h,d;for(h=0,d=t.skips.length;h<d;h++)if(t.skips[h].test(c))return!1;for(h=0,d=t.names.length;h<d;h++)if(t.names[h].test(c))return!0;return!1}function a(c){return c.toString().substring(2,c.toString().length-2).replace(/\.\*\?$/,"*")}function l(c){return c instanceof Error?c.stack||c.message:c}function u(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return t.enable(t.load()),t}uj.exports=lne});var cj=y(($n,Cy)=>{$n.formatArgs=cne;$n.save=hne;$n.load=dne;$n.useColors=une;$n.storage=gne();$n.destroy=(()=>{let n=!1;return()=>{n||(n=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();$n.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function une(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function cne(n){if(n[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+n[0]+(this.useColors?"%c ":" ")+"+"+Cy.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;n.splice(1,0,e,"color: inherit");let t=0,i=0;n[0].replace(/%[a-zA-Z%]/g,r=>{r!=="%%"&&(t++,r==="%c"&&(i=t))}),n.splice(i,0,e)}$n.log=console.debug||console.log||(()=>{});function hne(n){try{n?$n.storage.setItem("debug",n):$n.storage.removeItem("debug")}catch{}}function dne(){let n;try{n=$n.storage.getItem("debug")}catch{}return!n&&typeof process<"u"&&"env"in process&&(n=process.env.DEBUG),n}function gne(){try{return localStorage}catch{}}Cy.exports=XD()($n);var{formatters:pne}=Cy.exports;pne.j=function(n){try{return JSON.stringify(n)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var dj=y((Kke,hj)=>{"use strict";hj.exports=(n,e=process.argv)=>{let t=n.startsWith("-")?"":n.length===1?"-":"--",i=e.indexOf(t+n),r=e.indexOf("--");return i!==-1&&(r===-1||i<r)}});var fj=y((Qke,pj)=>{"use strict";var fne=require("os"),gj=require("tty"),hr=dj(),{env:bi}=process,Js;hr("no-color")||hr("no-colors")||hr("color=false")||hr("color=never")?Js=0:(hr("color")||hr("colors")||hr("color=true")||hr("color=always"))&&(Js=1);"FORCE_COLOR"in bi&&(bi.FORCE_COLOR==="true"?Js=1:bi.FORCE_COLOR==="false"?Js=0:Js=bi.FORCE_COLOR.length===0?1:Math.min(parseInt(bi.FORCE_COLOR,10),3));function GD(n){return n===0?!1:{level:n,hasBasic:!0,has256:n>=2,has16m:n>=3}}function zD(n,e){if(Js===0)return 0;if(hr("color=16m")||hr("color=full")||hr("color=truecolor"))return 3;if(hr("color=256"))return 2;if(n&&!e&&Js===void 0)return 0;let t=Js||0;if(bi.TERM==="dumb")return t;if(process.platform==="win32"){let i=fne.release().split(".");return Number(i[0])>=10&&Number(i[2])>=10586?Number(i[2])>=14931?3:2:1}if("CI"in bi)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(i=>i in bi)||bi.CI_NAME==="codeship"?1:t;if("TEAMCITY_VERSION"in bi)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(bi.TEAMCITY_VERSION)?1:0;if(bi.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in bi){let i=parseInt((bi.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(bi.TERM_PROGRAM){case"iTerm.app":return i>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(bi.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(bi.TERM)||"COLORTERM"in bi?1:t}function mne(n){let e=zD(n,n&&n.isTTY);return GD(e)}pj.exports={supportsColor:mne,stdout:GD(zD(!0,gj.isatty(1))),stderr:GD(zD(!0,gj.isatty(2)))}});var bj=y((Li,Dy)=>{var bne=require("tty"),Sy=require("util");Li.init=Dne;Li.log=xne;Li.formatArgs=vne;Li.save=Cne;Li.load=Sne;Li.useColors=yne;Li.destroy=Sy.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");Li.colors=[6,2,3,4,5,1];try{let n=fj();n&&(n.stderr||n).level>=2&&(Li.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}Li.inspectOpts=Object.keys(process.env).filter(n=>/^debug_/i.test(n)).reduce((n,e)=>{let t=e.substring(6).toLowerCase().replace(/_([a-z])/g,(r,o)=>o.toUpperCase()),i=process.env[e];return/^(yes|on|true|enabled)$/i.test(i)?i=!0:/^(no|off|false|disabled)$/i.test(i)?i=!1:i==="null"?i=null:i=Number(i),n[t]=i,n},{});function yne(){return"colors"in Li.inspectOpts?Boolean(Li.inspectOpts.colors):bne.isatty(process.stderr.fd)}function vne(n){let{namespace:e,useColors:t}=this;if(t){let i=this.color,r="\x1B[3"+(i<8?i:"8;5;"+i),o=` ${r};1m${e} \x1B[0m`;n[0]=o+n[0].split(`
|
||
`).join(`
|
||
`+o),n.push(r+"m+"+Dy.exports.humanize(this.diff)+"\x1B[0m")}else n[0]=wne()+e+" "+n[0]}function wne(){return Li.inspectOpts.hideDate?"":new Date().toISOString()+" "}function xne(...n){return process.stderr.write(Sy.format(...n)+`
|
||
`)}function Cne(n){n?process.env.DEBUG=n:delete process.env.DEBUG}function Sne(){return process.env.DEBUG}function Dne(n){n.inspectOpts={};let e=Object.keys(Li.inspectOpts);for(let t=0;t<e.length;t++)n.inspectOpts[e[t]]=Li.inspectOpts[e[t]]}Dy.exports=XD()(Li);var{formatters:mj}=Dy.exports;mj.o=function(n){return this.inspectOpts.colors=this.useColors,Sy.inspect(n,this.inspectOpts).split(`
|
||
`).map(e=>e.trim()).join(" ")};mj.O=function(n){return this.inspectOpts.colors=this.useColors,Sy.inspect(n,this.inspectOpts)}});var Yt=y((Vke,KD)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?KD.exports=cj():KD.exports=bj()});var vj=y((ePe,yj)=>{"use strict";yj.exports=Tne;function sc(n){return n instanceof Buffer?Buffer.from(n):new n.constructor(n.buffer.slice(),n.byteOffset,n.length)}function Tne(n){if(n=n||{},n.circles)return kne(n);return n.proto?i:t;function e(r,o){for(var s=Object.keys(r),a=new Array(s.length),l=0;l<s.length;l++){var u=s[l],c=r[u];typeof c!="object"||c===null?a[u]=c:c instanceof Date?a[u]=new Date(c):ArrayBuffer.isView(c)?a[u]=sc(c):a[u]=o(c)}return a}function t(r){if(typeof r!="object"||r===null)return r;if(r instanceof Date)return new Date(r);if(Array.isArray(r))return e(r,t);if(r instanceof Map)return new Map(e(Array.from(r),t));if(r instanceof Set)return new Set(e(Array.from(r),t));var o={};for(var s in r)if(Object.hasOwnProperty.call(r,s)!==!1){var a=r[s];typeof a!="object"||a===null?o[s]=a:a instanceof Date?o[s]=new Date(a):a instanceof Map?o[s]=new Map(e(Array.from(a),t)):a instanceof Set?o[s]=new Set(e(Array.from(a),t)):ArrayBuffer.isView(a)?o[s]=sc(a):o[s]=t(a)}return o}function i(r){if(typeof r!="object"||r===null)return r;if(r instanceof Date)return new Date(r);if(Array.isArray(r))return e(r,i);if(r instanceof Map)return new Map(e(Array.from(r),i));if(r instanceof Set)return new Set(e(Array.from(r),i));var o={};for(var s in r){var a=r[s];typeof a!="object"||a===null?o[s]=a:a instanceof Date?o[s]=new Date(a):a instanceof Map?o[s]=new Map(e(Array.from(a),i)):a instanceof Set?o[s]=new Set(e(Array.from(a),i)):ArrayBuffer.isView(a)?o[s]=sc(a):o[s]=i(a)}return o}}function kne(n){var e=[],t=[];return n.proto?o:r;function i(s,a){for(var l=Object.keys(s),u=new Array(l.length),c=0;c<l.length;c++){var h=l[c],d=s[h];if(typeof d!="object"||d===null)u[h]=d;else if(d instanceof Date)u[h]=new Date(d);else if(ArrayBuffer.isView(d))u[h]=sc(d);else{var g=e.indexOf(d);g!==-1?u[h]=t[g]:u[h]=a(d)}}return u}function r(s){if(typeof s!="object"||s===null)return s;if(s instanceof Date)return new Date(s);if(Array.isArray(s))return i(s,r);if(s instanceof Map)return new Map(i(Array.from(s),r));if(s instanceof Set)return new Set(i(Array.from(s),r));var a={};e.push(s),t.push(a);for(var l in s)if(Object.hasOwnProperty.call(s,l)!==!1){var u=s[l];if(typeof u!="object"||u===null)a[l]=u;else if(u instanceof Date)a[l]=new Date(u);else if(u instanceof Map)a[l]=new Map(i(Array.from(u),r));else if(u instanceof Set)a[l]=new Set(i(Array.from(u),r));else if(ArrayBuffer.isView(u))a[l]=sc(u);else{var c=e.indexOf(u);c!==-1?a[l]=t[c]:a[l]=r(u)}}return e.pop(),t.pop(),a}function o(s){if(typeof s!="object"||s===null)return s;if(s instanceof Date)return new Date(s);if(Array.isArray(s))return i(s,o);if(s instanceof Map)return new Map(i(Array.from(s),o));if(s instanceof Set)return new Set(i(Array.from(s),o));var a={};e.push(s),t.push(a);for(var l in s){var u=s[l];if(typeof u!="object"||u===null)a[l]=u;else if(u instanceof Date)a[l]=new Date(u);else if(u instanceof Map)a[l]=new Map(i(Array.from(u),o));else if(u instanceof Set)a[l]=new Set(i(Array.from(u),o));else if(ArrayBuffer.isView(u))a[l]=sc(u);else{var c=e.indexOf(u);c!==-1?a[l]=t[c]:a[l]=o(u)}}return e.pop(),t.pop(),a}}});var pl=y((tPe,Sj)=>{var Pne=require("util"),gl=Yt()("log4js:configuration"),Ty=[],ky=[],wj=n=>!n,xj=n=>n&&typeof n=="object"&&!Array.isArray(n),Ene=n=>/^[A-Za-z][A-Za-z0-9_]*$/g.test(n),Rne=n=>n&&typeof n=="number"&&Number.isInteger(n),_ne=n=>{ky.push(n),gl(`Added listener, now ${ky.length} listeners`)},Lne=n=>{Ty.push(n),gl(`Added pre-processing listener, now ${Ty.length} listeners`)},Cj=(n,e,t)=>{(Array.isArray(e)?e:[e]).forEach(r=>{if(r)throw new Error(`Problem with log4js configuration: (${Pne.inspect(n,{depth:5})}) - ${t}`)})},Ine=n=>{gl("New configuration to be validated: ",n),Cj(n,wj(xj(n)),"must be an object."),gl(`Calling pre-processing listeners (${Ty.length})`),Ty.forEach(e=>e(n)),gl("Configuration pre-processing finished."),gl(`Calling configuration listeners (${ky.length})`),ky.forEach(e=>e(n)),gl("Configuration finished.")};Sj.exports={configure:Ine,addListener:_ne,addPreProcessingListener:Lne,throwExceptionIf:Cj,anObject:xj,anInteger:Rne,validIdentifier:Ene,not:wj}});var Py=y((iPe,dr)=>{"use strict";function Dj(n,e){for(var t=n.toString();t.length<e;)t="0"+t;return t}function fl(n){return Dj(n,2)}function Fne(n){var e=Math.abs(n),t=String(Math.floor(e/60)),i=String(e%60);return t=("0"+t).slice(-2),i=("0"+i).slice(-2),n===0?"Z":(n<0?"+":"-")+t+":"+i}function Tj(n,e){typeof n!="string"&&(e=n,n=dr.exports.ISO8601_FORMAT),e||(e=dr.exports.now());var t=fl(e.getDate()),i=fl(e.getMonth()+1),r=fl(e.getFullYear()),o=fl(r.substring(2,4)),s=n.indexOf("yyyy")>-1?r:o,a=fl(e.getHours()),l=fl(e.getMinutes()),u=fl(e.getSeconds()),c=Dj(e.getMilliseconds(),3),h=Fne(e.getTimezoneOffset()),d=n.replace(/dd/g,t).replace(/MM/g,i).replace(/y{1,4}/g,s).replace(/hh/g,a).replace(/mm/g,l).replace(/ss/g,u).replace(/SSS/g,c).replace(/O/g,h);return d}function ml(n,e,t,i){n["set"+(i?"":"UTC")+e](t)}function jne(n,e,t){var i=n.indexOf("O")<0,r=[{pattern:/y{1,4}/,regexp:"\\d{1,4}",fn:function(c,h){ml(c,"FullYear",h,i)}},{pattern:/MM/,regexp:"\\d{1,2}",fn:function(c,h){ml(c,"Month",h-1,i)}},{pattern:/dd/,regexp:"\\d{1,2}",fn:function(c,h){ml(c,"Date",h,i)}},{pattern:/hh/,regexp:"\\d{1,2}",fn:function(c,h){ml(c,"Hours",h,i)}},{pattern:/mm/,regexp:"\\d\\d",fn:function(c,h){ml(c,"Minutes",h,i)}},{pattern:/ss/,regexp:"\\d\\d",fn:function(c,h){ml(c,"Seconds",h,i)}},{pattern:/SSS/,regexp:"\\d\\d\\d",fn:function(c,h){ml(c,"Milliseconds",h,i)}},{pattern:/O/,regexp:"[+-]\\d{1,2}:?\\d{2}?|Z",fn:function(c,h){h==="Z"?h=0:h=h.replace(":","");var d=Math.abs(h),g=(h>0?-1:1)*(d%100+Math.floor(d/100)*60);c.setUTCMinutes(c.getUTCMinutes()+g)}}],o=r.reduce(function(c,h){return h.pattern.test(c.regexp)?(h.index=c.regexp.match(h.pattern).index,c.regexp=c.regexp.replace(h.pattern,"("+h.regexp+")")):h.index=-1,c},{regexp:n,index:[]}),s=r.filter(function(c){return c.index>-1});s.sort(function(c,h){return c.index-h.index});var a=new RegExp(o.regexp),l=a.exec(e);if(l){var u=t||dr.exports.now();return s.forEach(function(c,h){c.fn(u,l[h+1])}),u}throw new Error("String '"+e+"' could not be parsed as '"+n+"'")}function Mne(n,e,t){if(!n)throw new Error("pattern must be supplied");return jne(n,e,t)}function One(){return new Date}dr.exports=Tj;dr.exports.asString=Tj;dr.exports.parse=Mne;dr.exports.now=One;dr.exports.ISO8601_FORMAT="yyyy-MM-ddThh:mm:ss.SSS";dr.exports.ISO8601_WITH_TZ_OFFSET_FORMAT="yyyy-MM-ddThh:mm:ss.SSSO";dr.exports.DATETIME_FORMAT="dd MM yyyy hh:mm:ss.SSS";dr.exports.ABSOLUTETIME_FORMAT="hh:mm:ss.SSS"});var VD=y((nPe,Oj)=>{var $s=Py(),kj=require("os"),Ad=require("util"),Pj=require("path"),Ej={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[90,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[91,39],yellow:[33,39]};function Rj(n){return n?`\x1B[${Ej[n][0]}m`:""}function _j(n){return n?`\x1B[${Ej[n][1]}m`:""}function Ane(n,e){return Rj(e)+n+_j(e)}function Lj(n,e){return Ane(Ad.format("[%s] [%s] %s - ",$s.asString(n.startTime),n.level.toString(),n.categoryName),e)}function Ij(n){return Lj(n)+Ad.format(...n.data)}function Ey(n){return Lj(n,n.level.colour)+Ad.format(...n.data)}function Fj(n){return Ad.format(...n.data)}function jj(n){return n.data[0]}function Mj(n,e){let t="%r %p %c - %m%n",i=/%(-?[0-9]+)?(\.?-?[0-9]+)?([[\]cdhmnprzxXyflos%])(\{([^}]+)\})?|([^%]+)/;n=n||t;function r(L,O){let Z=L.categoryName;if(O){let ne=parseInt(O,10),be=Z.split(".");ne<be.length&&(Z=be.slice(be.length-ne).join("."))}return Z}function o(L,O){let Z=$s.ISO8601_FORMAT;return O&&(Z=O,Z==="ISO8601"?Z=$s.ISO8601_FORMAT:Z==="ISO8601_WITH_TZ_OFFSET"?Z=$s.ISO8601_WITH_TZ_OFFSET_FORMAT:Z==="ABSOLUTE"?Z=$s.ABSOLUTETIME_FORMAT:Z==="DATE"&&(Z=$s.DATETIME_FORMAT)),$s.asString(Z,L.startTime)}function s(){return kj.hostname().toString()}function a(L){return Ad.format(...L.data)}function l(){return kj.EOL}function u(L){return L.level.toString()}function c(L){return $s.asString("hh:mm:ss",L.startTime)}function h(L){return Rj(L.level.colour)}function d(L){return _j(L.level.colour)}function g(){return"%"}function p(L){return L&&L.pid?L.pid.toString():process.pid.toString()}function f(){return p()}function m(L,O){return typeof e[O]<"u"?typeof e[O]=="function"?e[O](L):e[O]:null}function b(L,O){let Z=L.context[O];return typeof Z<"u"?typeof Z=="function"?Z(L):Z:null}function w(L,O){let Z=L.fileName||"";if(O){let ne=parseInt(O,10),be=Z.split(Pj.sep);be.length>ne&&(Z=be.slice(-ne).join(Pj.sep))}return Z}function x(L){return L.lineNumber?`${L.lineNumber}`:""}function T(L){return L.columnNumber?`${L.columnNumber}`:""}function R(L){return L.callStack||""}let F={c:r,d:o,h:s,m:a,n:l,p:u,r:c,"[":h,"]":d,y:f,z:p,"%":g,x:m,X:b,f:w,l:x,o:T,s:R};function N(L,O,Z){return F[L](O,Z)}function J(L,O){let Z;return L?(Z=parseInt(L.substr(1),10),Z>0?O.slice(0,Z):O.slice(Z)):O}function H(L,O){let Z;if(L)if(L.charAt(0)==="-")for(Z=parseInt(L.substr(1),10);O.length<Z;)O+=" ";else for(Z=parseInt(L,10);O.length<Z;)O=` ${O}`;return O}function M(L,O,Z){let ne=L;return ne=J(O,ne),ne=H(Z,ne),ne}return function(L){let O="",Z,ne=n;for(;(Z=i.exec(ne))!==null;){let be=Z[1],He=Z[2],$=Z[3],B=Z[5],G=Z[6];if(G)O+=G.toString();else{let V=N($,L,B);O+=M(V,He,be)}ne=ne.substr(Z.index+Z[0].length)}return O}}var QD={messagePassThrough(){return Fj},basic(){return Ij},colored(){return Ey},coloured(){return Ey},pattern(n){return Mj(n&&n.pattern,n&&n.tokens)},dummy(){return jj}};Oj.exports={basicLayout:Ij,messagePassThroughLayout:Fj,patternLayout:Mj,colouredLayout:Ey,coloredLayout:Ey,dummyLayout:jj,addLayout(n,e){QD[n]=e},layout(n,e){return QD[n]&&QD[n](e)}}});var bl=y((rPe,Nj)=>{var Kt=pl(),Aj=["white","grey","black","blue","cyan","green","magenta","red","yellow"],Qt=class{constructor(e,t,i){this.level=e,this.levelStr=t,this.colour=i}toString(){return this.levelStr}static getLevel(e,t){return e?e instanceof Qt?e:(e instanceof Object&&e.levelStr&&(e=e.levelStr),Qt[e.toString().toUpperCase()]||t):t}static addLevels(e){e&&(Object.keys(e).forEach(i=>{let r=i.toUpperCase();Qt[r]=new Qt(e[i].value,r,e[i].colour);let o=Qt.levels.findIndex(s=>s.levelStr===r);o>-1?Qt.levels[o]=Qt[r]:Qt.levels.push(Qt[r])}),Qt.levels.sort((i,r)=>i.level-r.level))}isLessThanOrEqualTo(e){return typeof e=="string"&&(e=Qt.getLevel(e)),this.level<=e.level}isGreaterThanOrEqualTo(e){return typeof e=="string"&&(e=Qt.getLevel(e)),this.level>=e.level}isEqualTo(e){return typeof e=="string"&&(e=Qt.getLevel(e)),this.level===e.level}};Qt.levels=[];Qt.addLevels({ALL:{value:Number.MIN_VALUE,colour:"grey"},TRACE:{value:5e3,colour:"blue"},DEBUG:{value:1e4,colour:"cyan"},INFO:{value:2e4,colour:"green"},WARN:{value:3e4,colour:"yellow"},ERROR:{value:4e4,colour:"red"},FATAL:{value:5e4,colour:"magenta"},MARK:{value:9007199254740992,colour:"grey"},OFF:{value:Number.MAX_VALUE,colour:"grey"}});Kt.addListener(n=>{let e=n.levels;e&&(Kt.throwExceptionIf(n,Kt.not(Kt.anObject(e)),"levels must be an object"),Object.keys(e).forEach(i=>{Kt.throwExceptionIf(n,Kt.not(Kt.validIdentifier(i)),`level name "${i}" is not a valid identifier (must start with a letter, only contain A-Z,a-z,0-9,_)`),Kt.throwExceptionIf(n,Kt.not(Kt.anObject(e[i])),`level "${i}" must be an object`),Kt.throwExceptionIf(n,Kt.not(e[i].value),`level "${i}" must have a 'value' property`),Kt.throwExceptionIf(n,Kt.not(Kt.anInteger(e[i].value)),`level "${i}".value must have an integer value`),Kt.throwExceptionIf(n,Kt.not(e[i].colour),`level "${i}" must have a 'colour' property`),Kt.throwExceptionIf(n,Kt.not(Aj.indexOf(e[i].colour)>-1),`level "${i}".colour must be one of ${Aj.join(", ")}`)}))});Kt.addListener(n=>{Qt.addLevels(n.levels)});Nj.exports=Qt});var Xj=y(Hd=>{"use strict";var{parse:Bj,stringify:Wj}=JSON,{keys:Nne}=Object,Nd=String,Yj="string",Hj={},Ry="object",Zj=(n,e)=>e,Hne=n=>n instanceof Nd?Nd(n):n,qne=(n,e)=>typeof e===Yj?new Nd(e):e,Jj=(n,e,t,i)=>{let r=[];for(let o=Nne(t),{length:s}=o,a=0;a<s;a++){let l=o[a],u=t[l];if(u instanceof Nd){let c=n[u];typeof c===Ry&&!e.has(c)?(e.add(c),t[l]=Hj,r.push({k:l,a:[n,e,c,i]})):t[l]=i.call(t,l,c)}else t[l]!==Hj&&(t[l]=i.call(t,l,u))}for(let{length:o}=r,s=0;s<o;s++){let{k:a,a:l}=r[s];t[a]=i.call(t,a,Jj.apply(null,l))}return t},qj=(n,e,t)=>{let i=Nd(e.push(t)-1);return n.set(t,i),i},$j=(n,e)=>{let t=Bj(n,qne).map(Hne),i=t[0],r=e||Zj,o=typeof i===Ry&&i?Jj(t,new Set,i,r):i;return r.call({"":o},"",o)};Hd.parse=$j;var Uj=(n,e,t)=>{let i=e&&typeof e===Ry?(c,h)=>c===""||-1<e.indexOf(c)?h:void 0:e||Zj,r=new Map,o=[],s=[],a=+qj(r,o,i.call({"":n},"",n)),l=!a;for(;a<o.length;)l=!0,s[a]=Wj(o[a++],u,t);return"["+s.join(",")+"]";function u(c,h){if(l)return l=!l,h;let d=i.call(this,c,h);switch(typeof d){case Ry:if(d===null)return d;case Yj:return r.get(d)||qj(r,o,d)}return d}};Hd.stringify=Uj;var Bne=n=>Bj(Uj(n));Hd.toJSON=Bne;var Wne=n=>$j(Wj(n));Hd.fromJSON=Wne});var eT=y((sPe,Kj)=>{var Gj=Xj(),zj=bl(),ac=class{constructor(e,t,i,r,o){this.startTime=new Date,this.categoryName=e,this.data=i,this.level=t,this.context=Object.assign({},r),this.pid=process.pid,o&&(this.functionName=o.functionName,this.fileName=o.fileName,this.lineNumber=o.lineNumber,this.columnNumber=o.columnNumber,this.callStack=o.callStack)}serialise(){let e=this.data.map(t=>(t&&t.message&&t.stack&&(t=Object.assign({message:t.message,stack:t.stack},t)),t));return this.data=e,Gj.stringify(this)}static deserialise(e){let t;try{let i=Gj.parse(e);i.data=i.data.map(r=>{if(r&&r.message&&r.stack){let o=new Error(r);Object.keys(r).forEach(s=>{o[s]=r[s]}),r=o}return r}),t=new ac(i.categoryName,zj.getLevel(i.level.levelStr),i.data,i.context),t.startTime=new Date(i.startTime),t.pid=i.pid,t.cluster=i.cluster}catch(i){t=new ac("log4js",zj.ERROR,["Unable to parse log:",e,"because: ",i])}return t}};Kj.exports=ac});var Ly=y((aPe,eM)=>{var gr=Yt()("log4js:clustering"),Yne=eT(),Zne=pl(),lc=!1,So=null;try{So=require("cluster")}catch{gr("cluster module not present"),lc=!0}var iT=[],Bd=!1,qd="NODE_APP_INSTANCE",Qj=()=>Bd&&process.env[qd]==="0",tT=()=>lc||So.isMaster||Qj(),Vj=n=>{iT.forEach(e=>e(n))},_y=(n,e)=>{if(gr("cluster message received from worker ",n,": ",e),n.topic&&n.data&&(e=n,n=void 0),e&&e.topic&&e.topic==="log4js:message"){gr("received message: ",e.data);let t=Yne.deserialise(e.data);Vj(t)}};lc||Zne.addListener(n=>{iT.length=0,{pm2:Bd,disableClustering:lc,pm2InstanceVar:qd="NODE_APP_INSTANCE"}=n,gr(`clustering disabled ? ${lc}`),gr(`cluster.isMaster ? ${So&&So.isMaster}`),gr(`pm2 enabled ? ${Bd}`),gr(`pm2InstanceVar = ${qd}`),gr(`process.env[${qd}] = ${process.env[qd]}`),Bd&&process.removeListener("message",_y),So&&So.removeListener&&So.removeListener("message",_y),lc||n.disableClustering?gr("Not listening for cluster messages, because clustering disabled."):Qj()?(gr("listening for PM2 broadcast messages"),process.on("message",_y)):So.isMaster?(gr("listening for cluster messages"),So.on("message",_y)):gr("not listening for messages, because we are not a master process")});eM.exports={onlyOnMaster:(n,e)=>tT()?n():e,isMaster:tT,send:n=>{tT()?Vj(n):(Bd||(n.cluster={workerId:So.worker.id,worker:process.pid}),process.send({topic:"log4js:message",data:n.serialise()}))},onMessage:n=>{iT.push(n)}}});var rM=y((lPe,nM)=>{function Jne(n){if(typeof n=="number"&&Number.isInteger(n))return n;let e={K:1024,M:1024*1024,G:1024*1024*1024},t=Object.keys(e),i=n.substr(n.length-1).toLocaleUpperCase(),r=n.substring(0,n.length-1).trim();if(t.indexOf(i)<0||!Number.isInteger(Number(r)))throw Error(`maxLogSize: "${n}" is invalid`);return r*e[i]}function $ne(n,e){let t=Object.assign({},e);return Object.keys(n).forEach(i=>{t[i]&&(t[i]=n[i](e[i]))}),t}function tM(n){return $ne({maxLogSize:Jne},n)}var iM={file:tM,fileSync:tM};nM.exports.modifyConfig=n=>iM[n.type]?iM[n.type](n):n});var sM=y((uPe,oM)=>{var Une=console.log.bind(console);function Xne(n,e){return t=>{Une(n(t,e))}}function Gne(n,e){let t=e.colouredLayout;return n.layout&&(t=e.layout(n.layout.type,n.layout)),Xne(t,n.timezoneOffset)}oM.exports.configure=Gne});var lM=y(aM=>{function zne(n,e){return t=>{process.stdout.write(`${n(t,e)}
|
||
`)}}function Kne(n,e){let t=e.colouredLayout;return n.layout&&(t=e.layout(n.layout.type,n.layout)),zne(t,n.timezoneOffset)}aM.configure=Kne});var cM=y((hPe,uM)=>{function Qne(n,e){return t=>{process.stderr.write(`${n(t,e)}
|
||
`)}}function Vne(n,e){let t=e.colouredLayout;return n.layout&&(t=e.layout(n.layout.type,n.layout)),Qne(t,n.timezoneOffset)}uM.exports.configure=Vne});var dM=y((dPe,hM)=>{function ere(n,e,t,i){let r=i.getLevel(n),o=i.getLevel(e,i.FATAL);return s=>{let a=s.level;a.isGreaterThanOrEqualTo(r)&&a.isLessThanOrEqualTo(o)&&t(s)}}function tre(n,e,t,i){let r=t(n.appender);return ere(n.level,n.maxLevel,r,i)}hM.exports.configure=tre});var fM=y((gPe,pM)=>{var gM=Yt()("log4js:categoryFilter");function ire(n,e){return typeof n=="string"&&(n=[n]),t=>{gM(`Checking ${t.categoryName} against ${n}`),n.indexOf(t.categoryName)===-1&&(gM("Not excluded, sending to appender"),e(t))}}function nre(n,e,t){let i=t(n.appender);return ire(n.exclude,i)}pM.exports.configure=nre});var yM=y((pPe,bM)=>{var mM=Yt()("log4js:noLogFilter");function rre(n){return n.filter(t=>t!=null&&t!=="")}function ore(n,e){return t=>{mM(`Checking data: ${t.data} against filters: ${n}`),typeof n=="string"&&(n=[n]),n=rre(n);let i=new RegExp(n.join("|"),"i");(n.length===0||t.data.findIndex(r=>i.test(r))<0)&&(mM("Not excluded, sending to appender"),e(t))}}function sre(n,e,t){let i=t(n.appender);return ore(n.exclude,i)}bM.exports.configure=sre});var Dn=y(nT=>{"use strict";nT.fromCallback=function(n){return Object.defineProperty(function(...e){if(typeof e[e.length-1]=="function")n.apply(this,e);else return new Promise((t,i)=>{n.call(this,...e,(r,o)=>r!=null?i(r):t(o))})},"name",{value:n.name})};nT.fromPromise=function(n){return Object.defineProperty(function(...e){let t=e[e.length-1];if(typeof t!="function")return n.apply(this,e);n.apply(this,e.slice(0,-1)).then(i=>t(null,i),t)},"name",{value:n.name})}});var wM=y((mPe,vM)=>{var Us=require("constants"),are=process.cwd,Iy=null,lre=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return Iy||(Iy=are.call(process)),Iy};try{process.cwd()}catch{}typeof process.chdir=="function"&&(rT=process.chdir,process.chdir=function(n){Iy=null,rT.call(process,n)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,rT));var rT;vM.exports=ure;function ure(n){Us.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&e(n),n.lutimes||t(n),n.chown=o(n.chown),n.fchown=o(n.fchown),n.lchown=o(n.lchown),n.chmod=i(n.chmod),n.fchmod=i(n.fchmod),n.lchmod=i(n.lchmod),n.chownSync=s(n.chownSync),n.fchownSync=s(n.fchownSync),n.lchownSync=s(n.lchownSync),n.chmodSync=r(n.chmodSync),n.fchmodSync=r(n.fchmodSync),n.lchmodSync=r(n.lchmodSync),n.stat=a(n.stat),n.fstat=a(n.fstat),n.lstat=a(n.lstat),n.statSync=l(n.statSync),n.fstatSync=l(n.fstatSync),n.lstatSync=l(n.lstatSync),n.lchmod||(n.lchmod=function(c,h,d){d&&process.nextTick(d)},n.lchmodSync=function(){}),n.lchown||(n.lchown=function(c,h,d,g){g&&process.nextTick(g)},n.lchownSync=function(){}),lre==="win32"&&(n.rename=function(c){return function(h,d,g){var p=Date.now(),f=0;c(h,d,function m(b){if(b&&(b.code==="EACCES"||b.code==="EPERM")&&Date.now()-p<6e4){setTimeout(function(){n.stat(d,function(w,x){w&&w.code==="ENOENT"?c(h,d,m):g(b)})},f),f<100&&(f+=10);return}g&&g(b)})}}(n.rename)),n.read=function(c){function h(d,g,p,f,m,b){var w;if(b&&typeof b=="function"){var x=0;w=function(T,R,F){if(T&&T.code==="EAGAIN"&&x<10)return x++,c.call(n,d,g,p,f,m,w);b.apply(this,arguments)}}return c.call(n,d,g,p,f,m,w)}return Object.setPrototypeOf&&Object.setPrototypeOf(h,c),h}(n.read),n.readSync=function(c){return function(h,d,g,p,f){for(var m=0;;)try{return c.call(n,h,d,g,p,f)}catch(b){if(b.code==="EAGAIN"&&m<10){m++;continue}throw b}}}(n.readSync);function e(c){c.lchmod=function(h,d,g){c.open(h,Us.O_WRONLY|Us.O_SYMLINK,d,function(p,f){if(p){g&&g(p);return}c.fchmod(f,d,function(m){c.close(f,function(b){g&&g(m||b)})})})},c.lchmodSync=function(h,d){var g=c.openSync(h,Us.O_WRONLY|Us.O_SYMLINK,d),p=!0,f;try{f=c.fchmodSync(g,d),p=!1}finally{if(p)try{c.closeSync(g)}catch{}else c.closeSync(g)}return f}}function t(c){Us.hasOwnProperty("O_SYMLINK")?(c.lutimes=function(h,d,g,p){c.open(h,Us.O_SYMLINK,function(f,m){if(f){p&&p(f);return}c.futimes(m,d,g,function(b){c.close(m,function(w){p&&p(b||w)})})})},c.lutimesSync=function(h,d,g){var p=c.openSync(h,Us.O_SYMLINK),f,m=!0;try{f=c.futimesSync(p,d,g),m=!1}finally{if(m)try{c.closeSync(p)}catch{}else c.closeSync(p)}return f}):(c.lutimes=function(h,d,g,p){p&&process.nextTick(p)},c.lutimesSync=function(){})}function i(c){return c&&function(h,d,g){return c.call(n,h,d,function(p){u(p)&&(p=null),g&&g.apply(this,arguments)})}}function r(c){return c&&function(h,d){try{return c.call(n,h,d)}catch(g){if(!u(g))throw g}}}function o(c){return c&&function(h,d,g,p){return c.call(n,h,d,g,function(f){u(f)&&(f=null),p&&p.apply(this,arguments)})}}function s(c){return c&&function(h,d,g){try{return c.call(n,h,d,g)}catch(p){if(!u(p))throw p}}}function a(c){return c&&function(h,d,g){typeof d=="function"&&(g=d,d=null);function p(f,m){m&&(m.uid<0&&(m.uid+=4294967296),m.gid<0&&(m.gid+=4294967296)),g&&g.apply(this,arguments)}return d?c.call(n,h,d,p):c.call(n,h,p)}}function l(c){return c&&function(h,d){var g=d?c.call(n,h,d):c.call(n,h);return g.uid<0&&(g.uid+=4294967296),g.gid<0&&(g.gid+=4294967296),g}}function u(c){if(!c||c.code==="ENOSYS")return!0;var h=!process.getuid||process.getuid()!==0;return!!(h&&(c.code==="EINVAL"||c.code==="EPERM"))}}});var SM=y((bPe,CM)=>{var xM=require("stream").Stream;CM.exports=cre;function cre(n){return{ReadStream:e,WriteStream:t};function e(i,r){if(!(this instanceof e))return new e(i,r);xM.call(this);var o=this;this.path=i,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,r=r||{};for(var s=Object.keys(r),a=0,l=s.length;a<l;a++){var u=s[a];this[u]=r[u]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){o._read()});return}n.open(this.path,this.flags,this.mode,function(c,h){if(c){o.emit("error",c),o.readable=!1;return}o.fd=h,o.emit("open",h),o._read()})}function t(i,r){if(!(this instanceof t))return new t(i,r);xM.call(this),this.path=i,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,r=r||{};for(var o=Object.keys(r),s=0,a=o.length;s<a;s++){var l=o[s];this[l]=r[l]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=n.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var TM=y((yPe,DM)=>{"use strict";DM.exports=dre;var hre=Object.getPrototypeOf||function(n){return n.__proto__};function dre(n){if(n===null||typeof n!="object")return n;if(n instanceof Object)var e={__proto__:hre(n)};else var e=Object.create(null);return Object.getOwnPropertyNames(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}),e}});var on=y((vPe,sT)=>{var Ii=require("fs"),gre=wM(),pre=SM(),fre=TM(),Fy=require("util"),Hr,jy;typeof Symbol=="function"&&typeof Symbol.for=="function"?(Hr=Symbol.for("graceful-fs.queue"),jy=Symbol.for("graceful-fs.previous")):(Hr="___graceful-fs.queue",jy="___graceful-fs.previous");function mre(){}function PM(n,e){Object.defineProperty(n,Hr,{get:function(){return e}})}var Wd=mre;Fy.debuglog?Wd=Fy.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Wd=function(){var n=Fy.format.apply(Fy,arguments);n="GFS4: "+n.split(/\n/).join(`
|
||
GFS4: `),console.error(n)});Ii[Hr]||(kM=global[Hr]||[],PM(Ii,kM),Ii.close=function(n){function e(t,i){return n.call(Ii,t,function(r){r||Xs(),typeof i=="function"&&i.apply(this,arguments)})}return Object.defineProperty(e,jy,{value:n}),e}(Ii.close),Ii.closeSync=function(n){function e(t){n.apply(Ii,arguments),Xs()}return Object.defineProperty(e,jy,{value:n}),e}(Ii.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Wd(Ii[Hr]),require("assert").equal(Ii[Hr].length,0)}));var kM;global[Hr]||PM(global,Ii[Hr]);sT.exports=oT(fre(Ii));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Ii.__patched&&(sT.exports=oT(Ii),Ii.__patched=!0);function oT(n){gre(n),n.gracefulify=oT,n.createReadStream=R,n.createWriteStream=F;var e=n.readFile;n.readFile=t;function t(H,M,L){return typeof M=="function"&&(L=M,M=null),O(H,M,L);function O(Z,ne,be){return e(Z,ne,function(He){He&&(He.code==="EMFILE"||He.code==="ENFILE")?uc([O,[Z,ne,be]]):(typeof be=="function"&&be.apply(this,arguments),Xs())})}}var i=n.writeFile;n.writeFile=r;function r(H,M,L,O){return typeof L=="function"&&(O=L,L=null),Z(H,M,L,O);function Z(ne,be,He,$){return i(ne,be,He,function(B){B&&(B.code==="EMFILE"||B.code==="ENFILE")?uc([Z,[ne,be,He,$]]):(typeof $=="function"&&$.apply(this,arguments),Xs())})}}var o=n.appendFile;o&&(n.appendFile=s);function s(H,M,L,O){return typeof L=="function"&&(O=L,L=null),Z(H,M,L,O);function Z(ne,be,He,$){return o(ne,be,He,function(B){B&&(B.code==="EMFILE"||B.code==="ENFILE")?uc([Z,[ne,be,He,$]]):(typeof $=="function"&&$.apply(this,arguments),Xs())})}}var a=n.copyFile;a&&(n.copyFile=l);function l(H,M,L,O){return typeof L=="function"&&(O=L,L=0),a(H,M,L,function(Z){Z&&(Z.code==="EMFILE"||Z.code==="ENFILE")?uc([a,[H,M,L,O]]):(typeof O=="function"&&O.apply(this,arguments),Xs())})}var u=n.readdir;n.readdir=c;function c(H,M,L){var O=[H];return typeof M!="function"?O.push(M):L=M,O.push(Z),h(O);function Z(ne,be){be&&be.sort&&be.sort(),ne&&(ne.code==="EMFILE"||ne.code==="ENFILE")?uc([h,[O]]):(typeof L=="function"&&L.apply(this,arguments),Xs())}}function h(H){return u.apply(n,H)}if(process.version.substr(0,4)==="v0.8"){var d=pre(n);b=d.ReadStream,x=d.WriteStream}var g=n.ReadStream;g&&(b.prototype=Object.create(g.prototype),b.prototype.open=w);var p=n.WriteStream;p&&(x.prototype=Object.create(p.prototype),x.prototype.open=T),Object.defineProperty(n,"ReadStream",{get:function(){return b},set:function(H){b=H},enumerable:!0,configurable:!0}),Object.defineProperty(n,"WriteStream",{get:function(){return x},set:function(H){x=H},enumerable:!0,configurable:!0});var f=b;Object.defineProperty(n,"FileReadStream",{get:function(){return f},set:function(H){f=H},enumerable:!0,configurable:!0});var m=x;Object.defineProperty(n,"FileWriteStream",{get:function(){return m},set:function(H){m=H},enumerable:!0,configurable:!0});function b(H,M){return this instanceof b?(g.apply(this,arguments),this):b.apply(Object.create(b.prototype),arguments)}function w(){var H=this;J(H.path,H.flags,H.mode,function(M,L){M?(H.autoClose&&H.destroy(),H.emit("error",M)):(H.fd=L,H.emit("open",L),H.read())})}function x(H,M){return this instanceof x?(p.apply(this,arguments),this):x.apply(Object.create(x.prototype),arguments)}function T(){var H=this;J(H.path,H.flags,H.mode,function(M,L){M?(H.destroy(),H.emit("error",M)):(H.fd=L,H.emit("open",L))})}function R(H,M){return new n.ReadStream(H,M)}function F(H,M){return new n.WriteStream(H,M)}var N=n.open;n.open=J;function J(H,M,L,O){return typeof L=="function"&&(O=L,L=null),Z(H,M,L,O);function Z(ne,be,He,$){return N(ne,be,He,function(B,G){B&&(B.code==="EMFILE"||B.code==="ENFILE")?uc([Z,[ne,be,He,$]]):(typeof $=="function"&&$.apply(this,arguments),Xs())})}}return n}function uc(n){Wd("ENQUEUE",n[0].name,n[1]),Ii[Hr].push(n)}function Xs(){var n=Ii[Hr].shift();n&&(Wd("RETRY",n[0].name,n[1]),n[0].apply(null,n[1]))}});var yl=y(Gs=>{"use strict";var EM=Dn().fromCallback,Un=on(),bre=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(n=>typeof Un[n]=="function");Object.assign(Gs,Un);bre.forEach(n=>{Gs[n]=EM(Un[n])});Gs.realpath.native=EM(Un.realpath.native);Gs.exists=function(n,e){return typeof e=="function"?Un.exists(n,e):new Promise(t=>Un.exists(n,t))};Gs.read=function(n,e,t,i,r,o){return typeof o=="function"?Un.read(n,e,t,i,r,o):new Promise((s,a)=>{Un.read(n,e,t,i,r,(l,u,c)=>{if(l)return a(l);s({bytesRead:u,buffer:c})})})};Gs.write=function(n,e,...t){return typeof t[t.length-1]=="function"?Un.write(n,e,...t):new Promise((i,r)=>{Un.write(n,e,...t,(o,s,a)=>{if(o)return r(o);i({bytesWritten:s,buffer:a})})})};typeof Un.writev=="function"&&(Gs.writev=function(n,e,...t){return typeof t[t.length-1]=="function"?Un.writev(n,e,...t):new Promise((i,r)=>{Un.writev(n,e,...t,(o,s,a)=>{if(o)return r(o);i({bytesWritten:s,buffers:a})})})})});var _M=y((xPe,RM)=>{"use strict";var yre=require("path");RM.exports.checkPath=function(e){if(process.platform==="win32"&&/[<>:"|?*]/.test(e.replace(yre.parse(e).root,""))){let i=new Error(`Path contains invalid characters: ${e}`);throw i.code="EINVAL",i}}});var jM=y((CPe,aT)=>{"use strict";var LM=yl(),{checkPath:IM}=_M(),FM=n=>{let e={mode:511};return typeof n=="number"?n:{...e,...n}.mode};aT.exports.makeDir=async(n,e)=>(IM(n),LM.mkdir(n,{mode:FM(e),recursive:!0}));aT.exports.makeDirSync=(n,e)=>(IM(n),LM.mkdirSync(n,{mode:FM(e),recursive:!0}))});var qr=y((SPe,MM)=>{"use strict";var vre=Dn().fromPromise,{makeDir:wre,makeDirSync:lT}=jM(),uT=vre(wre);MM.exports={mkdirs:uT,mkdirsSync:lT,mkdirp:uT,mkdirpSync:lT,ensureDir:uT,ensureDirSync:lT}});var cT=y((DPe,OM)=>{"use strict";var cc=on();function xre(n,e,t,i){cc.open(n,"r+",(r,o)=>{if(r)return i(r);cc.futimes(o,e,t,s=>{cc.close(o,a=>{i&&i(s||a)})})})}function Cre(n,e,t){let i=cc.openSync(n,"r+");return cc.futimesSync(i,e,t),cc.closeSync(i)}OM.exports={utimesMillis:xre,utimesMillisSync:Cre}});var vl=y((TPe,HM)=>{"use strict";var hc=yl(),yi=require("path"),Sre=require("util");function Dre(n,e,t){let i=t.dereference?r=>hc.stat(r,{bigint:!0}):r=>hc.lstat(r,{bigint:!0});return Promise.all([i(n),i(e).catch(r=>{if(r.code==="ENOENT")return null;throw r})]).then(([r,o])=>({srcStat:r,destStat:o}))}function Tre(n,e,t){let i,r=t.dereference?s=>hc.statSync(s,{bigint:!0}):s=>hc.lstatSync(s,{bigint:!0}),o=r(n);try{i=r(e)}catch(s){if(s.code==="ENOENT")return{srcStat:o,destStat:null};throw s}return{srcStat:o,destStat:i}}function kre(n,e,t,i,r){Sre.callbackify(Dre)(n,e,i,(o,s)=>{if(o)return r(o);let{srcStat:a,destStat:l}=s;if(l){if(Yd(a,l)){let u=yi.basename(n),c=yi.basename(e);return t==="move"&&u!==c&&u.toLowerCase()===c.toLowerCase()?r(null,{srcStat:a,destStat:l,isChangingCase:!0}):r(new Error("Source and destination must not be the same."))}if(a.isDirectory()&&!l.isDirectory())return r(new Error(`Cannot overwrite non-directory '${e}' with directory '${n}'.`));if(!a.isDirectory()&&l.isDirectory())return r(new Error(`Cannot overwrite directory '${e}' with non-directory '${n}'.`))}return a.isDirectory()&&hT(n,e)?r(new Error(My(n,e,t))):r(null,{srcStat:a,destStat:l})})}function Pre(n,e,t,i){let{srcStat:r,destStat:o}=Tre(n,e,i);if(o){if(Yd(r,o)){let s=yi.basename(n),a=yi.basename(e);if(t==="move"&&s!==a&&s.toLowerCase()===a.toLowerCase())return{srcStat:r,destStat:o,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(r.isDirectory()&&!o.isDirectory())throw new Error(`Cannot overwrite non-directory '${e}' with directory '${n}'.`);if(!r.isDirectory()&&o.isDirectory())throw new Error(`Cannot overwrite directory '${e}' with non-directory '${n}'.`)}if(r.isDirectory()&&hT(n,e))throw new Error(My(n,e,t));return{srcStat:r,destStat:o}}function AM(n,e,t,i,r){let o=yi.resolve(yi.dirname(n)),s=yi.resolve(yi.dirname(t));if(s===o||s===yi.parse(s).root)return r();hc.stat(s,{bigint:!0},(a,l)=>a?a.code==="ENOENT"?r():r(a):Yd(e,l)?r(new Error(My(n,t,i))):AM(n,e,s,i,r))}function NM(n,e,t,i){let r=yi.resolve(yi.dirname(n)),o=yi.resolve(yi.dirname(t));if(o===r||o===yi.parse(o).root)return;let s;try{s=hc.statSync(o,{bigint:!0})}catch(a){if(a.code==="ENOENT")return;throw a}if(Yd(e,s))throw new Error(My(n,t,i));return NM(n,e,o,i)}function Yd(n,e){return e.ino&&e.dev&&e.ino===n.ino&&e.dev===n.dev}function hT(n,e){let t=yi.resolve(n).split(yi.sep).filter(r=>r),i=yi.resolve(e).split(yi.sep).filter(r=>r);return t.reduce((r,o,s)=>r&&i[s]===o,!0)}function My(n,e,t){return`Cannot ${t} '${n}' to a subdirectory of itself, '${e}'.`}HM.exports={checkPaths:kre,checkPathsSync:Pre,checkParentPaths:AM,checkParentPathsSync:NM,isSrcSubdir:hT,areIdentical:Yd}});var ZM=y((kPe,YM)=>{"use strict";var Zi=on(),Zd=require("path"),Ere=qr().mkdirsSync,Rre=cT().utimesMillisSync,Jd=vl();function _re(n,e,t){typeof t=="function"&&(t={filter:t}),t=t||{},t.clobber="clobber"in t?!!t.clobber:!0,t.overwrite="overwrite"in t?!!t.overwrite:t.clobber,t.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
|
||
|
||
see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:i,destStat:r}=Jd.checkPathsSync(n,e,"copy",t);return Jd.checkParentPathsSync(n,i,e,"copy"),Lre(r,n,e,t)}function Lre(n,e,t,i){if(i.filter&&!i.filter(e,t))return;let r=Zd.dirname(t);return Zi.existsSync(r)||Ere(r),qM(n,e,t,i)}function Ire(n,e,t,i){if(!(i.filter&&!i.filter(e,t)))return qM(n,e,t,i)}function qM(n,e,t,i){let o=(i.dereference?Zi.statSync:Zi.lstatSync)(e);if(o.isDirectory())return Hre(o,n,e,t,i);if(o.isFile()||o.isCharacterDevice()||o.isBlockDevice())return Fre(o,n,e,t,i);if(o.isSymbolicLink())return Wre(n,e,t,i);throw o.isSocket()?new Error(`Cannot copy a socket file: ${e}`):o.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${e}`):new Error(`Unknown file: ${e}`)}function Fre(n,e,t,i,r){return e?jre(n,t,i,r):BM(n,t,i,r)}function jre(n,e,t,i){if(i.overwrite)return Zi.unlinkSync(t),BM(n,e,t,i);if(i.errorOnExist)throw new Error(`'${t}' already exists`)}function BM(n,e,t,i){return Zi.copyFileSync(e,t),i.preserveTimestamps&&Mre(n.mode,e,t),dT(t,n.mode)}function Mre(n,e,t){return Ore(n)&&Are(t,n),Nre(e,t)}function Ore(n){return(n&128)===0}function Are(n,e){return dT(n,e|128)}function dT(n,e){return Zi.chmodSync(n,e)}function Nre(n,e){let t=Zi.statSync(n);return Rre(e,t.atime,t.mtime)}function Hre(n,e,t,i,r){return e?WM(t,i,r):qre(n.mode,t,i,r)}function qre(n,e,t,i){return Zi.mkdirSync(t),WM(e,t,i),dT(t,n)}function WM(n,e,t){Zi.readdirSync(n).forEach(i=>Bre(i,n,e,t))}function Bre(n,e,t,i){let r=Zd.join(e,n),o=Zd.join(t,n),{destStat:s}=Jd.checkPathsSync(r,o,"copy",i);return Ire(s,r,o,i)}function Wre(n,e,t,i){let r=Zi.readlinkSync(e);if(i.dereference&&(r=Zd.resolve(process.cwd(),r)),n){let o;try{o=Zi.readlinkSync(t)}catch(s){if(s.code==="EINVAL"||s.code==="UNKNOWN")return Zi.symlinkSync(r,t);throw s}if(i.dereference&&(o=Zd.resolve(process.cwd(),o)),Jd.isSrcSubdir(r,o))throw new Error(`Cannot copy '${r}' to a subdirectory of itself, '${o}'.`);if(Zi.statSync(t).isDirectory()&&Jd.isSrcSubdir(o,r))throw new Error(`Cannot overwrite '${o}' with '${r}'.`);return Yre(r,t)}else return Zi.symlinkSync(r,t)}function Yre(n,e){return Zi.unlinkSync(e),Zi.symlinkSync(n,e)}YM.exports=_re});var gT=y((PPe,JM)=>{"use strict";JM.exports={copySync:ZM()}});var zs=y((EPe,UM)=>{"use strict";var Zre=Dn().fromPromise,$M=yl();function Jre(n){return $M.access(n).then(()=>!0).catch(()=>!1)}UM.exports={pathExists:Zre(Jre),pathExistsSync:$M.existsSync}});var tO=y((RPe,eO)=>{"use strict";var Tn=on(),$d=require("path"),$re=qr().mkdirs,Ure=zs().pathExists,Xre=cT().utimesMillis,Ud=vl();function Gre(n,e,t,i){typeof t=="function"&&!i?(i=t,t={}):typeof t=="function"&&(t={filter:t}),i=i||function(){},t=t||{},t.clobber="clobber"in t?!!t.clobber:!0,t.overwrite="overwrite"in t?!!t.overwrite:t.clobber,t.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
|
||
|
||
see https://github.com/jprichardson/node-fs-extra/issues/269`),Ud.checkPaths(n,e,"copy",t,(r,o)=>{if(r)return i(r);let{srcStat:s,destStat:a}=o;Ud.checkParentPaths(n,s,e,"copy",l=>l?i(l):t.filter?zM(XM,a,n,e,t,i):XM(a,n,e,t,i))})}function XM(n,e,t,i,r){let o=$d.dirname(t);Ure(o,(s,a)=>{if(s)return r(s);if(a)return Oy(n,e,t,i,r);$re(o,l=>l?r(l):Oy(n,e,t,i,r))})}function zM(n,e,t,i,r,o){Promise.resolve(r.filter(t,i)).then(s=>s?n(e,t,i,r,o):o(),s=>o(s))}function zre(n,e,t,i,r){return i.filter?zM(Oy,n,e,t,i,r):Oy(n,e,t,i,r)}function Oy(n,e,t,i,r){(i.dereference?Tn.stat:Tn.lstat)(e,(s,a)=>s?r(s):a.isDirectory()?noe(a,n,e,t,i,r):a.isFile()||a.isCharacterDevice()||a.isBlockDevice()?Kre(a,n,e,t,i,r):a.isSymbolicLink()?soe(n,e,t,i,r):a.isSocket()?r(new Error(`Cannot copy a socket file: ${e}`)):a.isFIFO()?r(new Error(`Cannot copy a FIFO pipe: ${e}`)):r(new Error(`Unknown file: ${e}`)))}function Kre(n,e,t,i,r,o){return e?Qre(n,t,i,r,o):KM(n,t,i,r,o)}function Qre(n,e,t,i,r){if(i.overwrite)Tn.unlink(t,o=>o?r(o):KM(n,e,t,i,r));else return i.errorOnExist?r(new Error(`'${t}' already exists`)):r()}function KM(n,e,t,i,r){Tn.copyFile(e,t,o=>o?r(o):i.preserveTimestamps?Vre(n.mode,e,t,r):Ay(t,n.mode,r))}function Vre(n,e,t,i){return eoe(n)?toe(t,n,r=>r?i(r):GM(n,e,t,i)):GM(n,e,t,i)}function eoe(n){return(n&128)===0}function toe(n,e,t){return Ay(n,e|128,t)}function GM(n,e,t,i){ioe(e,t,r=>r?i(r):Ay(t,n,i))}function Ay(n,e,t){return Tn.chmod(n,e,t)}function ioe(n,e,t){Tn.stat(n,(i,r)=>i?t(i):Xre(e,r.atime,r.mtime,t))}function noe(n,e,t,i,r,o){return e?QM(t,i,r,o):roe(n.mode,t,i,r,o)}function roe(n,e,t,i,r){Tn.mkdir(t,o=>{if(o)return r(o);QM(e,t,i,s=>s?r(s):Ay(t,n,r))})}function QM(n,e,t,i){Tn.readdir(n,(r,o)=>r?i(r):VM(o,n,e,t,i))}function VM(n,e,t,i,r){let o=n.pop();return o?ooe(n,o,e,t,i,r):r()}function ooe(n,e,t,i,r,o){let s=$d.join(t,e),a=$d.join(i,e);Ud.checkPaths(s,a,"copy",r,(l,u)=>{if(l)return o(l);let{destStat:c}=u;zre(c,s,a,r,h=>h?o(h):VM(n,t,i,r,o))})}function soe(n,e,t,i,r){Tn.readlink(e,(o,s)=>{if(o)return r(o);if(i.dereference&&(s=$d.resolve(process.cwd(),s)),n)Tn.readlink(t,(a,l)=>a?a.code==="EINVAL"||a.code==="UNKNOWN"?Tn.symlink(s,t,r):r(a):(i.dereference&&(l=$d.resolve(process.cwd(),l)),Ud.isSrcSubdir(s,l)?r(new Error(`Cannot copy '${s}' to a subdirectory of itself, '${l}'.`)):n.isDirectory()&&Ud.isSrcSubdir(l,s)?r(new Error(`Cannot overwrite '${l}' with '${s}'.`)):aoe(s,t,r)));else return Tn.symlink(s,t,r)})}function aoe(n,e,t){Tn.unlink(e,i=>i?t(i):Tn.symlink(n,e,t))}eO.exports=Gre});var pT=y((_Pe,iO)=>{"use strict";var loe=Dn().fromCallback;iO.exports={copy:loe(tO())}});var hO=y((LPe,cO)=>{"use strict";var nO=on(),aO=require("path"),pt=require("assert"),Xd=process.platform==="win32";function lO(n){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(t=>{n[t]=n[t]||nO[t],t=t+"Sync",n[t]=n[t]||nO[t]}),n.maxBusyTries=n.maxBusyTries||3}function fT(n,e,t){let i=0;typeof e=="function"&&(t=e,e={}),pt(n,"rimraf: missing path"),pt.strictEqual(typeof n,"string","rimraf: path should be a string"),pt.strictEqual(typeof t,"function","rimraf: callback function required"),pt(e,"rimraf: invalid options argument provided"),pt.strictEqual(typeof e,"object","rimraf: options should be object"),lO(e),rO(n,e,function r(o){if(o){if((o.code==="EBUSY"||o.code==="ENOTEMPTY"||o.code==="EPERM")&&i<e.maxBusyTries){i++;let s=i*100;return setTimeout(()=>rO(n,e,r),s)}o.code==="ENOENT"&&(o=null)}t(o)})}function rO(n,e,t){pt(n),pt(e),pt(typeof t=="function"),e.lstat(n,(i,r)=>{if(i&&i.code==="ENOENT")return t(null);if(i&&i.code==="EPERM"&&Xd)return oO(n,e,i,t);if(r&&r.isDirectory())return Ny(n,e,i,t);e.unlink(n,o=>{if(o){if(o.code==="ENOENT")return t(null);if(o.code==="EPERM")return Xd?oO(n,e,o,t):Ny(n,e,o,t);if(o.code==="EISDIR")return Ny(n,e,o,t)}return t(o)})})}function oO(n,e,t,i){pt(n),pt(e),pt(typeof i=="function"),e.chmod(n,438,r=>{r?i(r.code==="ENOENT"?null:t):e.stat(n,(o,s)=>{o?i(o.code==="ENOENT"?null:t):s.isDirectory()?Ny(n,e,t,i):e.unlink(n,i)})})}function sO(n,e,t){let i;pt(n),pt(e);try{e.chmodSync(n,438)}catch(r){if(r.code==="ENOENT")return;throw t}try{i=e.statSync(n)}catch(r){if(r.code==="ENOENT")return;throw t}i.isDirectory()?Hy(n,e,t):e.unlinkSync(n)}function Ny(n,e,t,i){pt(n),pt(e),pt(typeof i=="function"),e.rmdir(n,r=>{r&&(r.code==="ENOTEMPTY"||r.code==="EEXIST"||r.code==="EPERM")?uoe(n,e,i):r&&r.code==="ENOTDIR"?i(t):i(r)})}function uoe(n,e,t){pt(n),pt(e),pt(typeof t=="function"),e.readdir(n,(i,r)=>{if(i)return t(i);let o=r.length,s;if(o===0)return e.rmdir(n,t);r.forEach(a=>{fT(aO.join(n,a),e,l=>{if(!s){if(l)return t(s=l);--o===0&&e.rmdir(n,t)}})})})}function uO(n,e){let t;e=e||{},lO(e),pt(n,"rimraf: missing path"),pt.strictEqual(typeof n,"string","rimraf: path should be a string"),pt(e,"rimraf: missing options"),pt.strictEqual(typeof e,"object","rimraf: options should be object");try{t=e.lstatSync(n)}catch(i){if(i.code==="ENOENT")return;i.code==="EPERM"&&Xd&&sO(n,e,i)}try{t&&t.isDirectory()?Hy(n,e,null):e.unlinkSync(n)}catch(i){if(i.code==="ENOENT")return;if(i.code==="EPERM")return Xd?sO(n,e,i):Hy(n,e,i);if(i.code!=="EISDIR")throw i;Hy(n,e,i)}}function Hy(n,e,t){pt(n),pt(e);try{e.rmdirSync(n)}catch(i){if(i.code==="ENOTDIR")throw t;if(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")coe(n,e);else if(i.code!=="ENOENT")throw i}}function coe(n,e){if(pt(n),pt(e),e.readdirSync(n).forEach(t=>uO(aO.join(n,t),e)),Xd){let t=Date.now();do try{return e.rmdirSync(n,e)}catch{}while(Date.now()-t<500)}else return e.rmdirSync(n,e)}cO.exports=fT;fT.sync=uO});var Gd=y((IPe,gO)=>{"use strict";var qy=on(),hoe=Dn().fromCallback,dO=hO();function doe(n,e){if(qy.rm)return qy.rm(n,{recursive:!0,force:!0},e);dO(n,e)}function goe(n){if(qy.rmSync)return qy.rmSync(n,{recursive:!0,force:!0});dO.sync(n)}gO.exports={remove:hoe(doe),removeSync:goe}});var xO=y((FPe,wO)=>{"use strict";var poe=Dn().fromPromise,mO=yl(),bO=require("path"),yO=qr(),vO=Gd(),pO=poe(async function(e){let t;try{t=await mO.readdir(e)}catch{return yO.mkdirs(e)}return Promise.all(t.map(i=>vO.remove(bO.join(e,i))))});function fO(n){let e;try{e=mO.readdirSync(n)}catch{return yO.mkdirsSync(n)}e.forEach(t=>{t=bO.join(n,t),vO.removeSync(t)})}wO.exports={emptyDirSync:fO,emptydirSync:fO,emptyDir:pO,emptydir:pO}});var TO=y((jPe,DO)=>{"use strict";var foe=Dn().fromCallback,CO=require("path"),Ks=on(),SO=qr();function moe(n,e){function t(){Ks.writeFile(n,"",i=>{if(i)return e(i);e()})}Ks.stat(n,(i,r)=>{if(!i&&r.isFile())return e();let o=CO.dirname(n);Ks.stat(o,(s,a)=>{if(s)return s.code==="ENOENT"?SO.mkdirs(o,l=>{if(l)return e(l);t()}):e(s);a.isDirectory()?t():Ks.readdir(o,l=>{if(l)return e(l)})})})}function boe(n){let e;try{e=Ks.statSync(n)}catch{}if(e&&e.isFile())return;let t=CO.dirname(n);try{Ks.statSync(t).isDirectory()||Ks.readdirSync(t)}catch(i){if(i&&i.code==="ENOENT")SO.mkdirsSync(t);else throw i}Ks.writeFileSync(n,"")}DO.exports={createFile:foe(moe),createFileSync:boe}});var _O=y((MPe,RO)=>{"use strict";var yoe=Dn().fromCallback,kO=require("path"),Qs=on(),PO=qr(),voe=zs().pathExists,{areIdentical:EO}=vl();function woe(n,e,t){function i(r,o){Qs.link(r,o,s=>{if(s)return t(s);t(null)})}Qs.lstat(e,(r,o)=>{Qs.lstat(n,(s,a)=>{if(s)return s.message=s.message.replace("lstat","ensureLink"),t(s);if(o&&EO(a,o))return t(null);let l=kO.dirname(e);voe(l,(u,c)=>{if(u)return t(u);if(c)return i(n,e);PO.mkdirs(l,h=>{if(h)return t(h);i(n,e)})})})})}function xoe(n,e){let t;try{t=Qs.lstatSync(e)}catch{}try{let o=Qs.lstatSync(n);if(t&&EO(o,t))return}catch(o){throw o.message=o.message.replace("lstat","ensureLink"),o}let i=kO.dirname(e);return Qs.existsSync(i)||PO.mkdirsSync(i),Qs.linkSync(n,e)}RO.exports={createLink:yoe(woe),createLinkSync:xoe}});var IO=y((OPe,LO)=>{"use strict";var Vs=require("path"),zd=on(),Coe=zs().pathExists;function Soe(n,e,t){if(Vs.isAbsolute(n))return zd.lstat(n,i=>i?(i.message=i.message.replace("lstat","ensureSymlink"),t(i)):t(null,{toCwd:n,toDst:n}));{let i=Vs.dirname(e),r=Vs.join(i,n);return Coe(r,(o,s)=>o?t(o):s?t(null,{toCwd:r,toDst:n}):zd.lstat(n,a=>a?(a.message=a.message.replace("lstat","ensureSymlink"),t(a)):t(null,{toCwd:n,toDst:Vs.relative(i,n)})))}}function Doe(n,e){let t;if(Vs.isAbsolute(n)){if(t=zd.existsSync(n),!t)throw new Error("absolute srcpath does not exist");return{toCwd:n,toDst:n}}else{let i=Vs.dirname(e),r=Vs.join(i,n);if(t=zd.existsSync(r),t)return{toCwd:r,toDst:n};if(t=zd.existsSync(n),!t)throw new Error("relative srcpath does not exist");return{toCwd:n,toDst:Vs.relative(i,n)}}}LO.exports={symlinkPaths:Soe,symlinkPathsSync:Doe}});var MO=y((APe,jO)=>{"use strict";var FO=on();function Toe(n,e,t){if(t=typeof e=="function"?e:t,e=typeof e=="function"?!1:e,e)return t(null,e);FO.lstat(n,(i,r)=>{if(i)return t(null,"file");e=r&&r.isDirectory()?"dir":"file",t(null,e)})}function koe(n,e){let t;if(e)return e;try{t=FO.lstatSync(n)}catch{return"file"}return t&&t.isDirectory()?"dir":"file"}jO.exports={symlinkType:Toe,symlinkTypeSync:koe}});var YO=y((NPe,WO)=>{"use strict";var Poe=Dn().fromCallback,AO=require("path"),Br=yl(),NO=qr(),Eoe=NO.mkdirs,Roe=NO.mkdirsSync,HO=IO(),_oe=HO.symlinkPaths,Loe=HO.symlinkPathsSync,qO=MO(),Ioe=qO.symlinkType,Foe=qO.symlinkTypeSync,joe=zs().pathExists,{areIdentical:BO}=vl();function Moe(n,e,t,i){i=typeof t=="function"?t:i,t=typeof t=="function"?!1:t,Br.lstat(e,(r,o)=>{!r&&o.isSymbolicLink()?Promise.all([Br.stat(n),Br.stat(e)]).then(([s,a])=>{if(BO(s,a))return i(null);OO(n,e,t,i)}):OO(n,e,t,i)})}function OO(n,e,t,i){_oe(n,e,(r,o)=>{if(r)return i(r);n=o.toDst,Ioe(o.toCwd,t,(s,a)=>{if(s)return i(s);let l=AO.dirname(e);joe(l,(u,c)=>{if(u)return i(u);if(c)return Br.symlink(n,e,a,i);Eoe(l,h=>{if(h)return i(h);Br.symlink(n,e,a,i)})})})})}function Ooe(n,e,t){let i;try{i=Br.lstatSync(e)}catch{}if(i&&i.isSymbolicLink()){let a=Br.statSync(n),l=Br.statSync(e);if(BO(a,l))return}let r=Loe(n,e);n=r.toDst,t=Foe(r.toCwd,t);let o=AO.dirname(e);return Br.existsSync(o)||Roe(o),Br.symlinkSync(n,e,t)}WO.exports={createSymlink:Poe(Moe),createSymlinkSync:Ooe}});var JO=y((HPe,ZO)=>{"use strict";var By=TO(),Wy=_O(),Yy=YO();ZO.exports={createFile:By.createFile,createFileSync:By.createFileSync,ensureFile:By.createFile,ensureFileSync:By.createFileSync,createLink:Wy.createLink,createLinkSync:Wy.createLinkSync,ensureLink:Wy.createLink,ensureLinkSync:Wy.createLinkSync,createSymlink:Yy.createSymlink,createSymlinkSync:Yy.createSymlinkSync,ensureSymlink:Yy.createSymlink,ensureSymlinkSync:Yy.createSymlinkSync}});var Zy=y((qPe,$O)=>{function Aoe(n,{EOL:e=`
|
||
`,finalEOL:t=!0,replacer:i=null,spaces:r}={}){let o=t?e:"";return JSON.stringify(n,i,r).replace(/\n/g,e)+o}function Noe(n){return Buffer.isBuffer(n)&&(n=n.toString("utf8")),n.replace(/^\uFEFF/,"")}$O.exports={stringify:Aoe,stripBom:Noe}});var zO=y((BPe,GO)=>{var dc;try{dc=on()}catch{dc=require("fs")}var Jy=Dn(),{stringify:UO,stripBom:XO}=Zy();async function Hoe(n,e={}){typeof e=="string"&&(e={encoding:e});let t=e.fs||dc,i="throws"in e?e.throws:!0,r=await Jy.fromCallback(t.readFile)(n,e);r=XO(r);let o;try{o=JSON.parse(r,e?e.reviver:null)}catch(s){if(i)throw s.message=`${n}: ${s.message}`,s;return null}return o}var qoe=Jy.fromPromise(Hoe);function Boe(n,e={}){typeof e=="string"&&(e={encoding:e});let t=e.fs||dc,i="throws"in e?e.throws:!0;try{let r=t.readFileSync(n,e);return r=XO(r),JSON.parse(r,e.reviver)}catch(r){if(i)throw r.message=`${n}: ${r.message}`,r;return null}}async function Woe(n,e,t={}){let i=t.fs||dc,r=UO(e,t);await Jy.fromCallback(i.writeFile)(n,r,t)}var Yoe=Jy.fromPromise(Woe);function Zoe(n,e,t={}){let i=t.fs||dc,r=UO(e,t);return i.writeFileSync(n,r,t)}var Joe={readFile:qoe,readFileSync:Boe,writeFile:Yoe,writeFileSync:Zoe};GO.exports=Joe});var QO=y((WPe,KO)=>{"use strict";var $y=zO();KO.exports={readJson:$y.readFile,readJsonSync:$y.readFileSync,writeJson:$y.writeFile,writeJsonSync:$y.writeFileSync}});var Uy=y((YPe,t1)=>{"use strict";var $oe=Dn().fromCallback,Kd=on(),VO=require("path"),e1=qr(),Uoe=zs().pathExists;function Xoe(n,e,t,i){typeof t=="function"&&(i=t,t="utf8");let r=VO.dirname(n);Uoe(r,(o,s)=>{if(o)return i(o);if(s)return Kd.writeFile(n,e,t,i);e1.mkdirs(r,a=>{if(a)return i(a);Kd.writeFile(n,e,t,i)})})}function Goe(n,...e){let t=VO.dirname(n);if(Kd.existsSync(t))return Kd.writeFileSync(n,...e);e1.mkdirsSync(t),Kd.writeFileSync(n,...e)}t1.exports={outputFile:$oe(Xoe),outputFileSync:Goe}});var n1=y((ZPe,i1)=>{"use strict";var{stringify:zoe}=Zy(),{outputFile:Koe}=Uy();async function Qoe(n,e,t={}){let i=zoe(e,t);await Koe(n,i,t)}i1.exports=Qoe});var o1=y((JPe,r1)=>{"use strict";var{stringify:Voe}=Zy(),{outputFileSync:ese}=Uy();function tse(n,e,t){let i=Voe(e,t);ese(n,i,t)}r1.exports=tse});var a1=y(($Pe,s1)=>{"use strict";var ise=Dn().fromPromise,sn=QO();sn.outputJson=ise(n1());sn.outputJsonSync=o1();sn.outputJSON=sn.outputJson;sn.outputJSONSync=sn.outputJsonSync;sn.writeJSON=sn.writeJson;sn.writeJSONSync=sn.writeJsonSync;sn.readJSON=sn.readJson;sn.readJSONSync=sn.readJsonSync;s1.exports=sn});var d1=y((UPe,h1)=>{"use strict";var u1=on(),bT=require("path"),nse=gT().copySync,c1=Gd().removeSync,rse=qr().mkdirpSync,l1=vl();function ose(n,e,t){t=t||{};let i=t.overwrite||t.clobber||!1,{srcStat:r,isChangingCase:o=!1}=l1.checkPathsSync(n,e,"move",t);return l1.checkParentPathsSync(n,r,e,"move"),sse(e)||rse(bT.dirname(e)),ase(n,e,i,o)}function sse(n){let e=bT.dirname(n);return bT.parse(e).root===e}function ase(n,e,t,i){if(i)return mT(n,e,t);if(t)return c1(e),mT(n,e,t);if(u1.existsSync(e))throw new Error("dest already exists.");return mT(n,e,t)}function mT(n,e,t){try{u1.renameSync(n,e)}catch(i){if(i.code!=="EXDEV")throw i;return lse(n,e,t)}}function lse(n,e,t){return nse(n,e,{overwrite:t,errorOnExist:!0}),c1(n)}h1.exports=ose});var p1=y((XPe,g1)=>{"use strict";g1.exports={moveSync:d1()}});var v1=y((GPe,y1)=>{"use strict";var use=on(),vT=require("path"),cse=pT().copy,b1=Gd().remove,hse=qr().mkdirp,dse=zs().pathExists,f1=vl();function gse(n,e,t,i){typeof t=="function"&&(i=t,t={});let r=t.overwrite||t.clobber||!1;f1.checkPaths(n,e,"move",t,(o,s)=>{if(o)return i(o);let{srcStat:a,isChangingCase:l=!1}=s;f1.checkParentPaths(n,a,e,"move",u=>{if(u)return i(u);if(pse(e))return m1(n,e,r,l,i);hse(vT.dirname(e),c=>c?i(c):m1(n,e,r,l,i))})})}function pse(n){let e=vT.dirname(n);return vT.parse(e).root===e}function m1(n,e,t,i,r){if(i)return yT(n,e,t,r);if(t)return b1(e,o=>o?r(o):yT(n,e,t,r));dse(e,(o,s)=>o?r(o):s?r(new Error("dest already exists.")):yT(n,e,t,r))}function yT(n,e,t,i){use.rename(n,e,r=>r?r.code!=="EXDEV"?i(r):fse(n,e,t,i):i())}function fse(n,e,t,i){cse(n,e,{overwrite:t,errorOnExist:!0},o=>o?i(o):b1(n,i))}y1.exports=gse});var x1=y((zPe,w1)=>{"use strict";var mse=Dn().fromCallback;w1.exports={move:mse(v1())}});var wT=y((KPe,C1)=>{"use strict";C1.exports={...yl(),...gT(),...pT(),...xO(),...JO(),...a1(),...qr(),...p1(),...x1(),...Uy(),...zs(),...Gd()}});var D1=y((QPe,S1)=>{S1.exports=()=>new Date});var k1=y((VPe,T1)=>{var bse=Yt()("streamroller:fileNameFormatter"),yse=require("path"),vse=".gz",wse=".";T1.exports=({file:n,keepFileExt:e,needsIndex:t,alwaysIncludeDate:i,compress:r,fileNameSep:o})=>{let s=o||wse,a=yse.join(n.dir,n.name),l=g=>g+n.ext,u=(g,p,f)=>(t||!f)&&p?g+s+p:g,c=(g,p,f)=>(p>0||i)&&f?g+s+f:g,h=(g,p)=>p&&r?g+vse:g,d=e?[c,u,l,h]:[l,c,u,h];return({date:g,index:p})=>(bse(`_formatFileName: date=${g}, index=${p}`),d.reduce((f,m)=>m(f,p,g),a))}});var _1=y((e0e,R1)=>{var wl=Yt()("streamroller:fileNameParser"),P1=".gz",E1=Py(),xse=".";R1.exports=({file:n,keepFileExt:e,pattern:t,fileNameSep:i})=>{let r=i||xse,o=(d,g)=>d.endsWith(P1)?(wl("it is gzipped"),g.isCompressed=!0,d.slice(0,-1*P1.length)):d,s="__NOT_MATCHING__",h=[o,e?d=>d.startsWith(n.name)&&d.endsWith(n.ext)?(wl("it starts and ends with the right things"),d.slice(n.name.length+1,-1*n.ext.length)):s:d=>d.startsWith(n.base)?(wl("it starts with the right things"),d.slice(n.base.length+1)):s,t?(d,g)=>{let p=d.split(r),f=p[p.length-1];wl("items: ",p,", indexStr: ",f);let m=d;f!==void 0&&f.match(/^\d+$/)?(m=d.slice(0,-1*(f.length+1)),wl(`dateStr is ${m}`),t&&!m&&(m=f,f="0")):f="0";try{let b=E1.parse(t,m,new Date(0,0));return E1.asString(t,b)!==m?d:(g.index=parseInt(f,10),g.date=m,g.timestamp=b.getTime(),"")}catch(b){return wl(`Problem parsing ${m} as ${t}, error was: `,b),d}}:(d,g)=>d.match(/^\d+$/)?(wl("it has an index"),g.index=parseInt(d,10),""):d];return d=>{let g={filename:d,index:0,isCompressed:!1};return h.reduce((f,m)=>m(f,g),d)?null:g}}});var I1=y((t0e,L1)=>{var ta=Yt()("streamroller:moveAndMaybeCompressFile"),ea=wT(),Cse=require("zlib"),Sse=function(n){let e={mode:parseInt("0600",8),compress:!1},t=Object.assign({},e,n);return ta(`_parseOption: moveAndMaybeCompressFile called with option=${JSON.stringify(t)}`),t},Dse=async(n,e,t)=>{if(t=Sse(t),n===e){ta("moveAndMaybeCompressFile: source and target are the same, not doing anything");return}if(await ea.pathExists(n))if(ta(`moveAndMaybeCompressFile: moving file from ${n} to ${e} ${t.compress?"with":"without"} compress`),t.compress)await new Promise((i,r)=>{ea.createReadStream(n).pipe(Cse.createGzip()).pipe(ea.createWriteStream(e,{mode:t.mode})).on("finish",()=>{ta(`moveAndMaybeCompressFile: finished compressing ${e}, deleting ${n}`),ea.unlink(n).then(i).catch(()=>{ta(`Deleting ${n} failed, truncating instead`),ea.truncate(n).then(i).catch(r)})})});else{ta(`moveAndMaybeCompressFile: deleting file=${e}, renaming ${n} to ${e}`);try{await ea.move(n,e,{overwrite:!0})}catch(i){ta(`moveAndMaybeCompressFile: error moving ${n} to ${e}`,i),ta("Trying copy+truncate instead"),await ea.copy(n,e,{overwrite:!0}),await ea.truncate(n)}}};L1.exports=Dse});var Ky=y((i0e,F1)=>{var Xn=Yt()("streamroller:RollingFileWriteStream"),Qd=wT(),Xy=require("path"),Gy=D1(),zy=Py(),{Writable:Tse}=require("stream"),kse=k1(),Pse=_1(),Ese=I1(),xT=class extends Tse{constructor(e,t){Xn(`constructor: creating RollingFileWriteStream. path=${e}`),super(t),this.options=this._parseOption(t),this.fileObject=Xy.parse(e),this.fileObject.dir===""&&(this.fileObject=Xy.parse(Xy.join(process.cwd(),e))),this.fileFormatter=kse({file:this.fileObject,alwaysIncludeDate:this.options.alwaysIncludePattern,needsIndex:this.options.maxSize<Number.MAX_SAFE_INTEGER,compress:this.options.compress,keepFileExt:this.options.keepFileExt,fileNameSep:this.options.fileNameSep}),this.fileNameParser=Pse({file:this.fileObject,keepFileExt:this.options.keepFileExt,pattern:this.options.pattern,fileNameSep:this.options.fileNameSep}),this.state={currentSize:0},this.options.pattern&&(this.state.currentDate=zy(this.options.pattern,Gy())),this.filename=this.fileFormatter({index:0,date:this.state.currentDate}),["a","a+","as","as+"].includes(this.options.flags)&&this._setExistingSizeAndDate(),Xn(`constructor: create new file ${this.filename}, state=${JSON.stringify(this.state)}`),this._renewWriteStream()}_setExistingSizeAndDate(){try{let e=Qd.statSync(this.filename);this.state.currentSize=e.size,this.options.pattern&&(this.state.currentDate=zy(this.options.pattern,e.mtime))}catch{return}}_parseOption(e){let t={maxSize:Number.MAX_SAFE_INTEGER,numToKeep:Number.MAX_SAFE_INTEGER,encoding:"utf8",mode:parseInt("0600",8),flags:"a",compress:!1,keepFileExt:!1,alwaysIncludePattern:!1},i=Object.assign({},t,e);if(i.maxSize<=0)throw new Error(`options.maxSize (${i.maxSize}) should be > 0`);if(i.numBackups||i.numBackups===0){if(i.numBackups<0)throw new Error(`options.numBackups (${i.numBackups}) should be >= 0`);if(i.numBackups>=Number.MAX_SAFE_INTEGER)throw new Error(`options.numBackups (${i.numBackups}) should be < Number.MAX_SAFE_INTEGER`);i.numToKeep=i.numBackups+1}else if(i.numToKeep<=0)throw new Error(`options.numToKeep (${i.numToKeep}) should be > 0`);return Xn(`_parseOption: creating stream with option=${JSON.stringify(i)}`),i}_final(e){this.currentFileStream.end("",this.options.encoding,e)}_write(e,t,i){this._shouldRoll().then(()=>{Xn(`_write: writing chunk. file=${this.currentFileStream.path} state=${JSON.stringify(this.state)} chunk=${e}`),this.currentFileStream.write(e,t,r=>{this.state.currentSize+=e.length,i(r)})})}async _shouldRoll(){(this._dateChanged()||this._tooBig())&&(Xn(`_shouldRoll: rolling because dateChanged? ${this._dateChanged()} or tooBig? ${this._tooBig()}`),await this._roll())}_dateChanged(){return this.state.currentDate&&this.state.currentDate!==zy(this.options.pattern,Gy())}_tooBig(){return this.state.currentSize>=this.options.maxSize}_roll(){return Xn("_roll: closing the current stream"),new Promise((e,t)=>{this.currentFileStream.end("",this.options.encoding,()=>{this._moveOldFiles().then(e).catch(t)})})}async _moveOldFiles(){let e=await this._getExistingFiles(),t=this.state.currentDate?e.filter(i=>i.date===this.state.currentDate):e;for(let i=t.length;i>=0;i--){Xn(`_moveOldFiles: i = ${i}`);let r=this.fileFormatter({date:this.state.currentDate,index:i}),o=this.fileFormatter({date:this.state.currentDate,index:i+1}),s={compress:this.options.compress&&i===0,mode:this.options.mode};await Ese(r,o,s)}this.state.currentSize=0,this.state.currentDate=this.state.currentDate?zy(this.options.pattern,Gy()):null,Xn(`_moveOldFiles: finished rolling files. state=${JSON.stringify(this.state)}`),this._renewWriteStream(),await new Promise((i,r)=>{this.currentFileStream.write("","utf8",()=>{this._clean().then(i).catch(r)})})}async _getExistingFiles(){let e=await Qd.readdir(this.fileObject.dir).catch(()=>[]);Xn(`_getExistingFiles: files=${e}`);let t=e.map(r=>this.fileNameParser(r)).filter(r=>r),i=r=>(r.timestamp?r.timestamp:Gy().getTime())-r.index;return t.sort((r,o)=>i(r)-i(o)),t}_renewWriteStream(){Qd.ensureDirSync(this.fileObject.dir);let e=this.fileFormatter({date:this.state.currentDate,index:0}),t={flags:this.options.flags,encoding:this.options.encoding,mode:this.options.mode};this.currentFileStream=Qd.createWriteStream(e,t),this.currentFileStream.on("error",i=>{this.emit("error",i)})}async _clean(){let e=await this._getExistingFiles();if(Xn(`_clean: numToKeep = ${this.options.numToKeep}, existingFiles = ${e.length}`),Xn("_clean: existing files are: ",e),this._tooManyFiles(e.length)){let t=e.slice(0,e.length-this.options.numToKeep).map(i=>Xy.format({dir:this.fileObject.dir,base:i.filename}));await Rse(t)}}_tooManyFiles(e){return this.options.numToKeep>0&&e>this.options.numToKeep}},Rse=n=>(Xn(`deleteFiles: files to delete: ${n}`),Promise.all(n.map(e=>Qd.unlink(e).catch(t=>{Xn(`deleteFiles: error when unlinking ${e}, ignoring. Error was ${t}`)}))));F1.exports=xT});var M1=y((n0e,j1)=>{var _se=Ky(),CT=class extends _se{constructor(e,t,i,r){r||(r={}),t&&(r.maxSize=t),!r.numBackups&&r.numBackups!==0&&(!i&&i!==0&&(i=1),r.numBackups=i),super(e,r),this.backups=r.numBackups,this.size=this.options.maxSize}get theStream(){return this.currentFileStream}};j1.exports=CT});var A1=y((r0e,O1)=>{var Lse=Ky(),ST=class extends Lse{constructor(e,t,i){t&&typeof t=="object"&&(i=t,t=null),i||(i={}),t||(t="yyyy-MM-dd"),i.pattern=t,!i.numBackups&&i.numBackups!==0?(!i.daysToKeep&&i.daysToKeep!==0?i.daysToKeep=1:process.emitWarning("options.daysToKeep is deprecated due the confusion it causes when used together with file size rolling. Please use options.numBackups instead.","DeprecationWarning","StreamRoller0001"),i.numBackups=i.daysToKeep):i.daysToKeep=i.numBackups,super(e,i),this.mode=this.options.mode}get theStream(){return this.currentFileStream}};O1.exports=ST});var DT=y((o0e,N1)=>{N1.exports={RollingFileWriteStream:Ky(),RollingFileStream:M1(),DateRollingFileStream:A1()}});var Y1=y((s0e,W1)=>{var H1=Yt()("log4js:file"),Ise=require("path"),Fse=DT(),jse=require("os"),Mse=jse.EOL,Qy=!1,Vy=new Set;function q1(){Vy.forEach(n=>{n.sighupHandler()})}function B1(n,e,t,i){let r=new Fse.RollingFileStream(n,e,t,i);return r.on("error",o=>{console.error("log4js.fileAppender - Writing to file %s, error happened ",n,o)}),r.on("drain",()=>{process.emit("log4js:pause",!1)}),r}function Ose(n,e,t,i,r,o){n=Ise.normalize(n),i=!i&&i!==0?5:i,H1("Creating file appender (",n,", ",t,", ",i,", ",r,", ",o,")");let s=B1(n,t,i,r),a=function(l){if(!!s.writable){if(r.removeColor===!0){let u=/\x1b[[0-9;]*m/g;l.data=l.data.map(c=>typeof c=="string"?c.replace(u,""):c)}s.write(e(l,o)+Mse,"utf8")||process.emit("log4js:pause",!0)}};return a.reopen=function(){s.end(()=>{s=B1(n,t,i,r)})},a.sighupHandler=function(){H1("SIGHUP handler called."),a.reopen()},a.shutdown=function(l){Vy.delete(a),Vy.size===0&&Qy&&(process.removeListener("SIGHUP",q1),Qy=!1),s.end("","utf-8",l)},Vy.add(a),Qy||(process.on("SIGHUP",q1),Qy=!0),a}function Ase(n,e){let t=e.basicLayout;return n.layout&&(t=e.layout(n.layout.type,n.layout)),n.mode=n.mode||384,Ose(n.filename,t,n.maxLogSize,n.backups,n,n.timezoneOffset)}W1.exports.configure=Ase});var J1=y((a0e,Z1)=>{var Nse=DT(),Hse=require("os"),qse=Hse.EOL;function Bse(n,e,t){let i=new Nse.DateRollingFileStream(n,e,t);return i.on("error",r=>{console.error("log4js.dateFileAppender - Writing to file %s, error happened ",n,r)}),i.on("drain",()=>{process.emit("log4js:pause",!1)}),i}function Wse(n,e,t,i,r){i.maxSize=i.maxLogSize;let o=Bse(n,e,i),s=function(a){!o.writable||o.write(t(a,r)+qse,"utf8")||process.emit("log4js:pause",!0)};return s.shutdown=function(a){o.end("","utf-8",a)},s}function Yse(n,e){let t=e.basicLayout;return n.layout&&(t=e.layout(n.layout.type,n.layout)),n.alwaysIncludePattern||(n.alwaysIncludePattern=!1),n.mode=n.mode||384,Wse(n.filename,n.pattern,t,n,n.timezoneOffset)}Z1.exports.configure=Yse});var X1=y((l0e,U1)=>{var zo=Yt()("log4js:fileSync"),gc=require("path"),Do=require("fs"),Zse=require("os"),Jse=Zse.EOL||`
|
||
`;function $1(n,e){if(Do.existsSync(n))return;let t=Do.openSync(n,e.flags,e.mode);Do.closeSync(t)}var TT=class{constructor(e,t,i,r){zo("In RollingFileStream");function o(){if(!e||!t||t<=0)throw new Error("You must specify a filename and file size")}o(),this.filename=e,this.size=t,this.backups=i,this.options=r,this.currentSize=0;function s(a){let l=0;try{l=Do.statSync(a).size}catch{$1(a,r)}return l}this.currentSize=s(this.filename)}shouldRoll(){return zo("should roll with current size %d, and max size %d",this.currentSize,this.size),this.currentSize>=this.size}roll(e){let t=this,i=new RegExp(`^${gc.basename(e)}`);function r(u){return i.test(u)}function o(u){return parseInt(u.substring(`${gc.basename(e)}.`.length),10)||0}function s(u,c){return o(u)>o(c)?1:o(u)<o(c)?-1:0}function a(u){let c=o(u);if(zo(`Index of ${u} is ${c}`),t.backups===0)Do.truncateSync(e,0);else if(c<t.backups){try{Do.unlinkSync(`${e}.${c+1}`)}catch{}zo(`Renaming ${u} -> ${e}.${c+1}`),Do.renameSync(gc.join(gc.dirname(e),u),`${e}.${c+1}`)}}function l(){zo("Renaming the old files"),Do.readdirSync(gc.dirname(e)).filter(r).sort(s).reverse().forEach(a)}zo("Rolling, rolling, rolling"),l()}write(e,t){let i=this;function r(){zo("writing the chunk to the file"),i.currentSize+=e.length,Do.appendFileSync(i.filename,e)}zo("in write"),this.shouldRoll()&&(this.currentSize=0,this.roll(this.filename)),r()}};function $se(n,e,t,i,r,o){zo("fileSync appender created"),n=gc.normalize(n),i=!i&&i!==0?5:i;function s(l,u,c){let h;return u?h=new TT(l,u,c,o):h=(d=>($1(d,o),{write(g){Do.appendFileSync(d,g)}}))(l),h}let a=s(n,t,i);return l=>{a.write(e(l,r)+Jse)}}function Use(n,e){let t=e.basicLayout;n.layout&&(t=e.layout(n.layout.type,n.layout));let i={flags:n.flags||"a",encoding:n.encoding||"utf8",mode:n.mode||384};return $se(n.filename,t,n.maxLogSize,n.backups,n.timezoneOffset,i)}U1.exports.configure=Use});var z1=y((u0e,G1)=>{var To=Yt()("log4js:tcp"),Xse=require("net");function Gse(n,e){let t=!1,i=[],r,o=3,s="__LOG4JS__";function a(h){To("Writing log event to socket"),t=r.write(`${e(h)}${s}`,"utf8")}function l(){let h;for(To("emptying buffer");h=i.shift();)a(h)}function u(){To(`appender creating socket to ${n.host||"localhost"}:${n.port||5e3}`),s=`${n.endMsg||"__LOG4JS__"}`,r=Xse.createConnection(n.port||5e3,n.host||"localhost"),r.on("connect",()=>{To("socket connected"),l(),t=!0}),r.on("drain",()=>{To("drain event received, emptying buffer"),t=!0,l()}),r.on("timeout",r.end.bind(r)),r.on("error",h=>{To("connection error",h),t=!1,l()}),r.on("close",u)}u();function c(h){t?a(h):(To("buffering log event because it cannot write at the moment"),i.push(h))}return c.shutdown=function(h){To("shutdown called"),i.length&&o?(To("buffer has items, waiting 100ms to empty"),o-=1,setTimeout(()=>{c.shutdown(h)},100)):(r.removeAllListeners("close"),r.end(h))},c}function zse(n,e){To(`configure with config = ${n}`);let t=function(i){return i.serialise()};return n.layout&&(t=e.layout(n.layout.type,n.layout)),Gse(n,t)}G1.exports.configure=zse});var ET=y((c0e,PT)=>{var Kse=require("path"),xl=Yt()("log4js:appenders"),pr=pl(),K1=Ly(),Qse=bl(),Vse=VD(),eae=rM(),Wr=new Map;Wr.set("console",sM());Wr.set("stdout",lM());Wr.set("stderr",cM());Wr.set("logLevelFilter",dM());Wr.set("categoryFilter",fM());Wr.set("noLogFilter",yM());Wr.set("file",Y1());Wr.set("dateFile",J1());Wr.set("fileSync",X1());Wr.set("tcp",z1());var Vd=new Map,kT=(n,e)=>{xl("Loading module from ",n);try{return require(n)}catch(t){pr.throwExceptionIf(e,t.code!=="MODULE_NOT_FOUND",`appender "${n}" could not be loaded (error was: ${t})`);return}},tae=(n,e)=>Wr.get(n)||kT(`./${n}`,e)||kT(n,e)||""||kT(Kse.join(process.cwd(),n),e),ev=new Set,Q1=(n,e)=>{if(Vd.has(n))return Vd.get(n);if(!e.appenders[n])return!1;if(ev.has(n))throw new Error(`Dependency loop detected for appender ${n}.`);ev.add(n),xl(`Creating appender ${n}`);let t=iae(n,e);return ev.delete(n),Vd.set(n,t),t},iae=(n,e)=>{let t=e.appenders[n],i=t.type.configure?t.type:tae(t.type,e);return pr.throwExceptionIf(e,pr.not(i),`appender "${n}" is not valid (type "${t.type}" could not be found)`),i.appender&&xl(`DEPRECATION: Appender ${t.type} exports an appender function.`),i.shutdown&&xl(`DEPRECATION: Appender ${t.type} exports a shutdown function.`),xl(`${n}: clustering.isMaster ? ${K1.isMaster()}`),xl(`${n}: appenderModule is ${require("util").inspect(i)}`),K1.onlyOnMaster(()=>(xl(`calling appenderModule.configure for ${n} / ${t.type}`),i.configure(eae.modifyConfig(t),Vse,r=>Q1(r,e),Qse)),()=>{})},V1=n=>{Vd.clear(),ev.clear();let e=[];Object.values(n.categories).forEach(t=>{e.push(...t.appenders)}),Object.keys(n.appenders).forEach(t=>{(e.includes(t)||n.appenders[t].type==="tcp-server")&&Q1(t,n)})},eA=()=>{V1({appenders:{out:{type:"stdout"}},categories:{default:{appenders:["out"],level:"trace"}}})};eA();pr.addListener(n=>{pr.throwExceptionIf(n,pr.not(pr.anObject(n.appenders)),'must have a property "appenders" of type object.');let e=Object.keys(n.appenders);pr.throwExceptionIf(n,pr.not(e.length),"must define at least one appender."),e.forEach(t=>{pr.throwExceptionIf(n,pr.not(n.appenders[t].type),`appender "${t}" is not valid (must be an object with property "type")`)})});pr.addListener(V1);PT.exports=Vd;PT.exports.init=eA});var _T=y((h0e,tv)=>{var Cl=Yt()("log4js:categories"),Zt=pl(),RT=bl(),tA=ET(),Sl=new Map;function iA(n,e,t){if(e.inherit===!1)return;let i=t.lastIndexOf(".");if(i<0)return;let r=t.substring(0,i),o=n.categories[r];o||(o={inherit:!0,appenders:[]}),iA(n,o,r),!n.categories[r]&&o.appenders&&o.appenders.length&&o.level&&(n.categories[r]=o),e.appenders=e.appenders||[],e.level=e.level||o.level,o.appenders.forEach(s=>{e.appenders.includes(s)||e.appenders.push(s)}),e.parent=o}function nae(n){if(!n.categories)return;Object.keys(n.categories).forEach(t=>{let i=n.categories[t];iA(n,i,t)})}Zt.addPreProcessingListener(n=>nae(n));Zt.addListener(n=>{Zt.throwExceptionIf(n,Zt.not(Zt.anObject(n.categories)),'must have a property "categories" of type object.');let e=Object.keys(n.categories);Zt.throwExceptionIf(n,Zt.not(e.length),"must define at least one category."),e.forEach(t=>{let i=n.categories[t];Zt.throwExceptionIf(n,[Zt.not(i.appenders),Zt.not(i.level)],`category "${t}" is not valid (must be an object with properties "appenders" and "level")`),Zt.throwExceptionIf(n,Zt.not(Array.isArray(i.appenders)),`category "${t}" is not valid (appenders must be an array of appender names)`),Zt.throwExceptionIf(n,Zt.not(i.appenders.length),`category "${t}" is not valid (appenders must contain at least one appender name)`),Object.prototype.hasOwnProperty.call(i,"enableCallStack")&&Zt.throwExceptionIf(n,typeof i.enableCallStack!="boolean",`category "${t}" is not valid (enableCallStack must be boolean type)`),i.appenders.forEach(r=>{Zt.throwExceptionIf(n,Zt.not(tA.get(r)),`category "${t}" is not valid (appender "${r}" is not defined)`)}),Zt.throwExceptionIf(n,Zt.not(RT.getLevel(i.level)),`category "${t}" is not valid (level "${i.level}" not recognised; valid levels are ${RT.levels.join(", ")})`)}),Zt.throwExceptionIf(n,Zt.not(n.categories.default),'must define a "default" category.')});var nA=n=>{Sl.clear(),Object.keys(n.categories).forEach(t=>{let i=n.categories[t],r=[];i.appenders.forEach(o=>{r.push(tA.get(o)),Cl(`Creating category ${t}`),Sl.set(t,{appenders:r,level:RT.getLevel(i.level),enableCallStack:i.enableCallStack||!1})})})},rA=()=>{nA({categories:{default:{appenders:["out"],level:"OFF"}}})};rA();Zt.addListener(nA);var Dl=n=>(Cl(`configForCategory: searching for config for ${n}`),Sl.has(n)?(Cl(`configForCategory: ${n} exists in config, returning it`),Sl.get(n)):n.indexOf(".")>0?(Cl(`configForCategory: ${n} has hierarchy, searching for parents`),Dl(n.substring(0,n.lastIndexOf(".")))):(Cl("configForCategory: returning config for default category"),Dl("default"))),rae=n=>Dl(n).appenders,oae=n=>Dl(n).level,sae=(n,e)=>{let t=Sl.get(n);if(Cl(`setLevelForCategory: found ${t} for ${n}`),!t){let i=Dl(n);Cl(`setLevelForCategory: no config found for category, found ${i} for parents of ${n}`),t={appenders:i.appenders}}t.level=e,Sl.set(n,t)},aae=n=>Dl(n).enableCallStack===!0,lae=(n,e)=>{Dl(n).enableCallStack=e};tv.exports=Sl;tv.exports=Object.assign(tv.exports,{appendersForCategory:rae,getLevelForCategory:oae,setLevelForCategory:sae,getEnableCallStackForCategory:aae,setEnableCallStackForCategory:lae,init:rA})});var lA=y((d0e,aA)=>{var oA=Yt()("log4js:logger"),uae=eT(),Ko=bl(),cae=Ly(),iv=_T(),hae=pl(),dae=/at (?:(.+)\s+\()?(?:(.+?):(\d+)(?::(\d+))?|([^)]+))\)?/;function gae(n,e=4){let t=n.stack.split(`
|
||
`).slice(e),i=dae.exec(t[0]);return i&&i.length===6?{functionName:i[1],fileName:i[2],lineNumber:parseInt(i[3],10),columnNumber:parseInt(i[4],10),callStack:t.join(`
|
||
`)}:null}var eg=class{constructor(e){if(!e)throw new Error("No category provided.");this.category=e,this.context={},this.parseCallStack=gae,oA(`Logger created (${this.category}, ${this.level})`)}get level(){return Ko.getLevel(iv.getLevelForCategory(this.category),Ko.TRACE)}set level(e){iv.setLevelForCategory(this.category,Ko.getLevel(e,this.level))}get useCallStack(){return iv.getEnableCallStackForCategory(this.category)}set useCallStack(e){iv.setEnableCallStackForCategory(this.category,e===!0)}log(e,...t){let i=Ko.getLevel(e);i||(this._log(Ko.WARN,"log4js:logger.log: invalid value for log-level as first parameter given: ",e),i=Ko.INFO),this.isLevelEnabled(i)&&this._log(i,t)}isLevelEnabled(e){return this.level.isLessThanOrEqualTo(e)}_log(e,t){oA(`sending log data (${e}) to appenders`);let i=new uae(this.category,e,t,this.context,this.useCallStack&&this.parseCallStack(new Error));cae.send(i)}addContext(e,t){this.context[e]=t}removeContext(e){delete this.context[e]}clearContext(){this.context={}}setParseCallStackFunction(e){this.parseCallStack=e}};function sA(n){let e=Ko.getLevel(n),i=e.toString().toLowerCase().replace(/_([a-z])/g,o=>o[1].toUpperCase()),r=i[0].toUpperCase()+i.slice(1);eg.prototype[`is${r}Enabled`]=function(){return this.isLevelEnabled(e)},eg.prototype[i]=function(...o){this.log(e,...o)}}Ko.levels.forEach(sA);hae.addListener(()=>{Ko.levels.forEach(sA)});aA.exports=eg});var hA=y((g0e,cA)=>{var pc=bl(),pae=':remote-addr - - ":method :url HTTP/:http-version" :status :content-length ":referrer" ":user-agent"';function fae(n){return n.originalUrl||n.url}function mae(n,e,t){let i=o=>{let s=o.concat();for(let a=0;a<s.length;++a)for(let l=a+1;l<s.length;++l)s[a].token==s[l].token&&s.splice(l--,1);return s},r=[];return r.push({token:":url",replacement:fae(n)}),r.push({token:":protocol",replacement:n.protocol}),r.push({token:":hostname",replacement:n.hostname}),r.push({token:":method",replacement:n.method}),r.push({token:":status",replacement:e.__statusCode||e.statusCode}),r.push({token:":response-time",replacement:e.responseTime}),r.push({token:":date",replacement:new Date().toUTCString()}),r.push({token:":referrer",replacement:n.headers.referer||n.headers.referrer||""}),r.push({token:":http-version",replacement:`${n.httpVersionMajor}.${n.httpVersionMinor}`}),r.push({token:":remote-addr",replacement:n.headers["x-forwarded-for"]||n.ip||n._remoteAddress||n.socket&&(n.socket.remoteAddress||n.socket.socket&&n.socket.socket.remoteAddress)}),r.push({token:":user-agent",replacement:n.headers["user-agent"]}),r.push({token:":content-length",replacement:e.getHeader("content-length")||e.__headers&&e.__headers["Content-Length"]||"-"}),r.push({token:/:req\[([^\]]+)]/g,replacement(o,s){return n.headers[s.toLowerCase()]}}),r.push({token:/:res\[([^\]]+)]/g,replacement(o,s){return e.getHeader(s.toLowerCase())||e.__headers&&e.__headers[s]}}),i(t.concat(r))}function uA(n,e){for(let t=0;t<e.length;t++)n=n.replace(e[t].token,e[t].replacement);return n}function bae(n){let e=null;if(n instanceof RegExp&&(e=n),typeof n=="string"&&(e=new RegExp(n)),Array.isArray(n)){let t=n.map(i=>i.source?i.source:i);e=new RegExp(t.join("|"))}return e}function yae(n,e,t){let i=e;if(t){let r=t.find(o=>{let s=!1;return o.from&&o.to?s=n>=o.from&&n<=o.to:s=o.codes.indexOf(n)!==-1,s});r&&(i=pc.getLevel(r.level,i))}return i}cA.exports=function(e,t){typeof t=="string"||typeof t=="function"?t={format:t}:t=t||{};let i=e,r=pc.getLevel(t.level,pc.INFO),o=t.format||pae,s=bae(t.nolog);return(a,l,u)=>{if(a._logging||s&&s.test(a.originalUrl))return u();if(i.isLevelEnabled(r)||t.level==="auto"){let c=new Date,{writeHead:h}=l;a._logging=!0,l.writeHead=(d,g)=>{l.writeHead=h,l.writeHead(d,g),l.__statusCode=d,l.__headers=g||{}},l.on("finish",()=>{l.responseTime=new Date-c,l.statusCode&&t.level==="auto"&&(r=pc.INFO,l.statusCode>=300&&(r=pc.WARN),l.statusCode>=400&&(r=pc.ERROR)),r=yae(l.statusCode,r,t.statusRules);let d=mae(a,l,t.tokens||[]);if(t.context&&i.addContext("res",l),typeof o=="function"){let g=o(a,l,p=>uA(p,d));g&&i.log(r,g)}else i.log(r,uA(o,d));t.context&&i.removeContext("res")})}return u()}}});var mA=y((p0e,fA)=>{var dA=Yt()("log4js:recording"),nv=[];function vae(){return function(n){dA(`received logEvent, number of events now ${nv.length+1}`),dA("log event was ",n),nv.push(n)}}function gA(){return nv.slice()}function pA(){nv.length=0}fA.exports={configure:vae,replay:gA,playback:gA,reset:pA,erase:pA}});var LT=y((f0e,CA)=>{var ia=Yt()("log4js:main"),wae=require("fs"),xae=vj()({proto:!0}),Cae=pl(),Sae=VD(),Dae=bl(),bA=ET(),yA=_T(),Tae=lA(),kae=Ly(),Pae=hA(),Eae=mA(),tg=!1;function Rae(n){if(!tg)return;ia("Received log event ",n),yA.appendersForCategory(n.categoryName).forEach(t=>{t(n)})}function _ae(n){ia(`Loading configuration from ${n}`);try{return JSON.parse(wae.readFileSync(n,"utf8"))}catch(e){throw new Error(`Problem reading config from file "${n}". Error was ${e.message}`,e)}}function vA(n){tg&&wA();let e=n;return typeof e=="string"&&(e=_ae(n)),ia(`Configuration is ${e}`),Cae.configure(xae(e)),kae.onMessage(Rae),tg=!0,xA}function Lae(){return Eae}function wA(n){ia("Shutdown called. Disabling all log writing."),tg=!1;let e=Array.from(bA.values());bA.init(),yA.init();let t=e.reduceRight((s,a)=>a.shutdown?s+1:s,0);if(t===0)return ia("No appenders with shutdown functions found."),n!==void 0&&n();let i=0,r;ia(`Found ${t} appenders with shutdown functions.`);function o(s){r=r||s,i+=1,ia(`Appender shutdowns complete: ${i} / ${t}`),i>=t&&(ia("All shutdown functions completed."),n&&n(r))}return e.filter(s=>s.shutdown).forEach(s=>s.shutdown(o)),null}function Iae(n){return tg||vA(process.env.LOG4JS_CONFIG||{appenders:{out:{type:"stdout"}},categories:{default:{appenders:["out"],level:"OFF"}}}),new Tae(n||"default")}var xA={getLogger:Iae,configure:vA,shutdown:wA,connectLogger:Pae,levels:Dae,addLayout:Sae.addLayout,recording:Lae};CA.exports=xA});var q=y((DA,TA)=>{"use strict";var IT=S(LT()),rv=S(require("path")),SA=S(require("os")),na=S(require("fs"));function FT(){let n=process.env.NVIM_COC_LOG_FILE;if(n)return n;let e=process.env.XDG_RUNTIME_DIR;if(e)try{return na.default.accessSync(e,na.default.constants.R_OK|na.default.constants.W_OK),rv.default.join(e,`coc-nvim-${process.pid}.log`)}catch{}let t=SA.default.tmpdir();return e=rv.default.join(t,`coc.nvim-${process.pid}`),na.default.existsSync(e)||na.default.mkdirSync(e,{recursive:!0}),rv.default.join(e,"coc-nvim.log")}var Fae=1024*1024,jae=10,ov=FT(),Mae=process.env.NVIM_COC_LOG_LEVEL||"info";if(na.default.existsSync(ov))try{na.default.writeFileSync(ov,"",{encoding:"utf8",mode:438})}catch{}DA.getLogFile=FT;IT.default.configure({disableClustering:!0,appenders:{out:{type:"file",mode:438,filename:ov,maxLogSize:Fae,backups:jae,layout:{type:"pattern",pattern:`%d{ISO8601} %p (pid:${process.pid}) [%c] - %m`}}},categories:{default:{appenders:["out"],level:Mae}}});TA.exports=(n="coc-nvim")=>{let e=IT.default.getLogger(n);return Object.assign(e,{getLogFile:FT,logfile:ov})}});var jT=k(()=>{"use strict";Promise.prototype.logError=function(){this.catch(n=>{q()("util-extensions").error(n)})}});var PA=y((OT,kA)=>{kA.exports=MT(typeof Buffer<"u"&&Buffer)||MT(OT.Buffer)||MT(typeof window<"u"&&window.Buffer)||OT.Buffer;function MT(n){return n&&n.isBuffer&&n}});var sv=y((m0e,EA)=>{var Oae={}.toString;EA.exports=Array.isArray||function(n){return Oae.call(n)=="[object Array]"}});var LA=y((mc,_A)=>{var fc=Gn(),mc=_A.exports=RA(0);mc.alloc=RA;mc.concat=fc.concat;mc.from=Aae;function RA(n){return new Array(n)}function Aae(n){if(!fc.isBuffer(n)&&fc.isView(n))n=fc.Uint8Array.from(n);else if(fc.isArrayBuffer(n))n=new Uint8Array(n);else{if(typeof n=="string")return fc.from.call(mc,n);if(typeof n=="number")throw new TypeError('"value" argument must not be a number')}return Array.prototype.slice.call(n)}});var jA=y((yc,FA)=>{var Qo=Gn(),bc=Qo.global,yc=FA.exports=Qo.hasBuffer?IA(0):[];yc.alloc=Qo.hasBuffer&&bc.alloc||IA;yc.concat=Qo.concat;yc.from=Nae;function IA(n){return new bc(n)}function Nae(n){if(!Qo.isBuffer(n)&&Qo.isView(n))n=Qo.Uint8Array.from(n);else if(Qo.isArrayBuffer(n))n=new Uint8Array(n);else{if(typeof n=="string")return Qo.from.call(yc,n);if(typeof n=="number")throw new TypeError('"value" argument must not be a number')}return bc.from&&bc.from.length!==1?bc.from(n):new bc(n)}});var AA=y((vc,OA)=>{var av=Gn(),vc=OA.exports=av.hasArrayBuffer?MA(0):[];vc.alloc=MA;vc.concat=av.concat;vc.from=Hae;function MA(n){return new Uint8Array(n)}function Hae(n){if(av.isView(n)){var e=n.byteOffset,t=n.byteLength;n=n.buffer,n.byteLength!==t&&(n.slice?n=n.slice(e,e+t):(n=new Uint8Array(n),n.byteLength!==t&&(n=Array.prototype.slice.call(n,e,e+t))))}else{if(typeof n=="string")return av.from.call(vc,n);if(typeof n=="number")throw new TypeError('"value" argument must not be a number')}return new Uint8Array(n)}});var NA=y(lv=>{lv.copy=Wae;lv.toString=Bae;lv.write=qae;function qae(n,e){for(var t=this,i=e||(e|=0),r=n.length,o=0,s=0;s<r;)o=n.charCodeAt(s++),o<128?t[i++]=o:o<2048?(t[i++]=192|o>>>6,t[i++]=128|o&63):o<55296||o>57343?(t[i++]=224|o>>>12,t[i++]=128|o>>>6&63,t[i++]=128|o&63):(o=(o-55296<<10|n.charCodeAt(s++)-56320)+65536,t[i++]=240|o>>>18,t[i++]=128|o>>>12&63,t[i++]=128|o>>>6&63,t[i++]=128|o&63);return i-e}function Bae(n,e,t){var i=this,r=e|0;t||(t=i.length);for(var o="",s=0;r<t;){if(s=i[r++],s<128){o+=String.fromCharCode(s);continue}(s&224)===192?s=(s&31)<<6|i[r++]&63:(s&240)===224?s=(s&15)<<12|(i[r++]&63)<<6|i[r++]&63:(s&248)===240&&(s=(s&7)<<18|(i[r++]&63)<<12|(i[r++]&63)<<6|i[r++]&63),s>=65536?(s-=65536,o+=String.fromCharCode((s>>>10)+55296,(s&1023)+56320)):o+=String.fromCharCode(s)}return o}function Wae(n,e,t,i){var r;t||(t=0),!i&&i!==0&&(i=this.length),e||(e=0);var o=i-t;if(n===this&&t<e&&e<i)for(r=o-1;r>=0;r--)n[r+e]=this[r+t];else for(r=0;r<o;r++)n[r+e]=this[r+t];return o}});var uv=y(ig=>{var AT=NA();ig.copy=WA;ig.slice=YA;ig.toString=Yae;ig.write=Zae("write");var ra=Gn(),HA=ra.global,qA=ra.hasBuffer&&"TYPED_ARRAY_SUPPORT"in HA,BA=qA&&!HA.TYPED_ARRAY_SUPPORT;function WA(n,e,t,i){var r=ra.isBuffer(this),o=ra.isBuffer(n);if(r&&o)return this.copy(n,e,t,i);if(!BA&&!r&&!o&&ra.isView(this)&&ra.isView(n)){var s=t||i!=null?YA.call(this,t,i):this;return n.set(s,e),s.length}else return AT.copy.call(this,n,e,t,i)}function YA(n,e){var t=this.slice||!BA&&this.subarray;if(t)return t.call(this,n,e);var i=ra.alloc.call(this,e-n);return WA.call(this,i,0,n,e),i}function Yae(n,e,t){var i=!qA&&ra.isBuffer(this)?this.toString:AT.toString;return i.apply(this,arguments)}function Zae(n){return e;function e(){var t=this[n]||AT[n];return t.apply(this,arguments)}}});var Gn=y(Ji=>{var NT=Ji.global=PA(),UA=Ji.hasBuffer=NT&&!!NT.isBuffer,qT=Ji.hasArrayBuffer=typeof ArrayBuffer<"u",Jae=Ji.isArray=sv();Ji.isArrayBuffer=qT?Kae:WT;var $ae=Ji.isBuffer=UA?NT.isBuffer:WT,Uae=Ji.isView=qT?ArrayBuffer.isView||GA("ArrayBuffer","buffer"):WT;Ji.alloc=BT;Ji.concat=Gae;Ji.from=Xae;var ZA=Ji.Array=LA(),JA=Ji.Buffer=jA(),$A=Ji.Uint8Array=AA(),HT=Ji.prototype=uv();function Xae(n){return typeof n=="string"?Qae.call(this,n):XA(this).from(n)}function BT(n){return XA(this).alloc(n)}function Gae(n,e){e||(e=0,Array.prototype.forEach.call(n,o));var t=this!==Ji&&this||n[0],i=BT.call(t,e),r=0;return Array.prototype.forEach.call(n,s),i;function o(a){e+=a.length}function s(a){r+=HT.copy.call(a,i,r)}}var zae=GA("ArrayBuffer");function Kae(n){return n instanceof ArrayBuffer||zae(n)}function Qae(n){var e=n.length*3,t=BT.call(this,e),i=HT.write.call(t,n);return e!==i&&(t=HT.slice.call(t,0,i)),t}function XA(n){return $ae(n)?JA:Uae(n)?$A:Jae(n)?ZA:UA?JA:qT?$A:ZA}function WT(){return!1}function GA(n,e){return n="[object "+n+"]",function(t){return t!=null&&{}.toString.call(e?t[e]:t)===n}}});var cv=y(zA=>{zA.ExtBuffer=YT;var Vae=Gn();function YT(n,e){if(!(this instanceof YT))return new YT(n,e);this.buffer=Vae.from(n),this.type=e}});var QA=y(KA=>{KA.setExtPackers=ile;var hv=Gn(),ele=hv.global,Yr=hv.Uint8Array.from,ZT,tle={name:1,message:1,stack:1,columnNumber:1,fileName:1,lineNumber:1};function ile(n){n.addExtPacker(14,Error,[Tl,fr]),n.addExtPacker(1,EvalError,[Tl,fr]),n.addExtPacker(2,RangeError,[Tl,fr]),n.addExtPacker(3,ReferenceError,[Tl,fr]),n.addExtPacker(4,SyntaxError,[Tl,fr]),n.addExtPacker(5,TypeError,[Tl,fr]),n.addExtPacker(6,URIError,[Tl,fr]),n.addExtPacker(10,RegExp,[nle,fr]),n.addExtPacker(11,Boolean,[JT,fr]),n.addExtPacker(12,String,[JT,fr]),n.addExtPacker(13,Date,[Number,fr]),n.addExtPacker(15,Number,[JT,fr]),typeof Uint8Array<"u"&&(n.addExtPacker(17,Int8Array,Yr),n.addExtPacker(18,Uint8Array,Yr),n.addExtPacker(19,Int16Array,Yr),n.addExtPacker(20,Uint16Array,Yr),n.addExtPacker(21,Int32Array,Yr),n.addExtPacker(22,Uint32Array,Yr),n.addExtPacker(23,Float32Array,Yr),typeof Float64Array<"u"&&n.addExtPacker(24,Float64Array,Yr),typeof Uint8ClampedArray<"u"&&n.addExtPacker(25,Uint8ClampedArray,Yr),n.addExtPacker(26,ArrayBuffer,Yr),n.addExtPacker(29,DataView,Yr)),hv.hasBuffer&&n.addExtPacker(27,ele,hv.from)}function fr(n){return ZT||(ZT=$T().encode),ZT(n)}function JT(n){return n.valueOf()}function nle(n){n=RegExp.prototype.toString.call(n).split("/"),n.shift();var e=[n.pop()];return e.unshift(n.join("/")),e}function Tl(n){var e={};for(var t in tle)e[t]=n[t];return e}});var dv=y(ng=>{var rle,ole,sle,ale;(function(n){var e="undefined",t=e!==typeof Buffer&&Buffer,i=e!==typeof Uint8Array&&Uint8Array,r=e!==typeof ArrayBuffer&&ArrayBuffer,o=[0,0,0,0,0,0,0,0],s=Array.isArray||R,a=4294967296,l=16777216,u;rle=c("Uint64BE",!0,!0),ole=c("Int64BE",!0,!1),sle=c("Uint64LE",!1,!0),ale=c("Int64LE",!1,!1);function c(F,N,J){var H=N?0:4,M=N?4:0,L=N?0:3,O=N?1:2,Z=N?2:1,ne=N?3:0,be=N?b:x,He=N?w:T,$=V.prototype,B="is"+F,G="_"+B;return $.buffer=void 0,$.offset=0,$[G]=!0,$.toNumber=Zn,$.toString=Wi,$.toJSON=Zn,$.toArray=h,t&&($.toBuffer=d),i&&($.toArrayBuffer=g),V[B]=Re,n[F]=V,V;function V(Le,Ae,Ne,Ie){return this instanceof V?Ee(this,Le,Ae,Ne,Ie):new V(Le,Ae,Ne,Ie)}function Re(Le){return!!(Le&&Le[G])}function Ee(Le,Ae,Ne,Ie,li){if(i&&r&&(Ae instanceof r&&(Ae=new i(Ae)),Ie instanceof r&&(Ie=new i(Ie))),!Ae&&!Ne&&!Ie&&!u){Le.buffer=m(o,0);return}if(!p(Ae,Ne)){var Nr=u||Array;li=Ne,Ie=Ae,Ne=0,Ae=new Nr(8)}Le.buffer=Ae,Le.offset=Ne|=0,e!==typeof Ie&&(typeof Ie=="string"?Xe(Ae,Ne,Ie,li||10):p(Ie,li)?f(Ae,Ne,Ie,li):typeof li=="number"?(Yi(Ae,Ne+H,Ie),Yi(Ae,Ne+M,li)):Ie>0?be(Ae,Ne,Ie):Ie<0?He(Ae,Ne,Ie):f(Ae,Ne,o,0))}function Xe(Le,Ae,Ne,Ie){var li=0,Nr=Ne.length,Cn=0,Jn=0;Ne[0]==="-"&&li++;for(var jd=li;li<Nr;){var vy=parseInt(Ne[li++],Ie);if(!(vy>=0))break;Jn=Jn*Ie+vy,Cn=Cn*Ie+Math.floor(Jn/a),Jn%=a}jd&&(Cn=~Cn,Jn?Jn=a-Jn:Cn++),Yi(Le,Ae+H,Cn),Yi(Le,Ae+M,Jn)}function Zn(){var Le=this.buffer,Ae=this.offset,Ne=Ar(Le,Ae+H),Ie=Ar(Le,Ae+M);return J||(Ne|=0),Ne?Ne*a+Ie:Ie}function Wi(Le){var Ae=this.buffer,Ne=this.offset,Ie=Ar(Ae,Ne+H),li=Ar(Ae,Ne+M),Nr="",Cn=!J&&Ie&2147483648;for(Cn&&(Ie=~Ie,li=a-li),Le=Le||10;;){var Jn=Ie%Le*a+li;if(Ie=Math.floor(Ie/Le),li=Math.floor(Jn/Le),Nr=(Jn%Le).toString(Le)+Nr,!Ie&&!li)break}return Cn&&(Nr="-"+Nr),Nr}function Yi(Le,Ae,Ne){Le[Ae+ne]=Ne&255,Ne=Ne>>8,Le[Ae+Z]=Ne&255,Ne=Ne>>8,Le[Ae+O]=Ne&255,Ne=Ne>>8,Le[Ae+L]=Ne&255}function Ar(Le,Ae){return Le[Ae+L]*l+(Le[Ae+O]<<16)+(Le[Ae+Z]<<8)+Le[Ae+ne]}}function h(F){var N=this.buffer,J=this.offset;return u=null,F!==!1&&J===0&&N.length===8&&s(N)?N:m(N,J)}function d(F){var N=this.buffer,J=this.offset;if(u=t,F!==!1&&J===0&&N.length===8&&Buffer.isBuffer(N))return N;var H=new t(8);return f(H,0,N,J),H}function g(F){var N=this.buffer,J=this.offset,H=N.buffer;if(u=i,F!==!1&&J===0&&H instanceof r&&H.byteLength===8)return H;var M=new i(8);return f(M,0,N,J),M.buffer}function p(F,N){var J=F&&F.length;return N|=0,J&&N+8<=J&&typeof F[N]!="string"}function f(F,N,J,H){N|=0,H|=0;for(var M=0;M<8;M++)F[N++]=J[H++]&255}function m(F,N){return Array.prototype.slice.call(F,N,N+8)}function b(F,N,J){for(var H=N+8;H>N;)F[--H]=J&255,J/=256}function w(F,N,J){var H=N+8;for(J++;H>N;)F[--H]=-J&255^255,J/=256}function x(F,N,J){for(var H=N+8;N<H;)F[N++]=J&255,J/=256}function T(F,N,J){var H=N+8;for(J++;N<H;)F[N++]=-J&255^255,J/=256}function R(F){return!!F&&Object.prototype.toString.call(F)=="[object Array]"}})(typeof ng=="object"&&typeof ng.nodeName!="string"?ng:ng||{})});var XT=y(UT=>{UT.read=function(n,e,t,i,r){var o,s,a=r*8-i-1,l=(1<<a)-1,u=l>>1,c=-7,h=t?r-1:0,d=t?-1:1,g=n[e+h];for(h+=d,o=g&(1<<-c)-1,g>>=-c,c+=a;c>0;o=o*256+n[e+h],h+=d,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=i;c>0;s=s*256+n[e+h],h+=d,c-=8);if(o===0)o=1-u;else{if(o===l)return s?NaN:(g?-1:1)*(1/0);s=s+Math.pow(2,i),o=o-u}return(g?-1:1)*s*Math.pow(2,o-i)};UT.write=function(n,e,t,i,r,o){var s,a,l,u=o*8-r-1,c=(1<<u)-1,h=c>>1,d=r===23?Math.pow(2,-24)-Math.pow(2,-77):0,g=i?0:o-1,p=i?1:-1,f=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=c):(s=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-s))<1&&(s--,l*=2),s+h>=1?e+=d/l:e+=d*Math.pow(2,1-h),e*l>=2&&(s++,l/=2),s+h>=c?(a=0,s=c):s+h>=1?(a=(e*l-1)*Math.pow(2,r),s=s+h):(a=e*Math.pow(2,h-1)*Math.pow(2,r),s=0));r>=8;n[t+g]=a&255,g+=p,a/=256,r-=8);for(s=s<<r|a,u+=r;u>0;n[t+g]=s&255,g+=p,s/=256,u-=8);n[t+g-p]|=f*128}});var GT=y(VA=>{var lle=VA.uint8=new Array(256);for(rg=0;rg<=255;rg++)lle[rg]=ule(rg);var rg;function ule(n){return function(e){var t=e.reserve(1);e.buffer[t]=n}}});var cN=y(uN=>{var tN=XT(),iN=dv(),cle=iN.Uint64BE,hle=iN.Int64BE,nN=GT().uint8,gv=Gn(),Rt=gv.global,dle=gv.hasBuffer&&"TYPED_ARRAY_SUPPORT"in Rt,gle=dle&&!Rt.TYPED_ARRAY_SUPPORT,eN=gv.hasBuffer&&Rt.prototype||{};uN.getWriteToken=ple;function ple(n){return n&&n.uint8array?fle():gle||gv.hasBuffer&&n&&n.safe?mle():rN()}function fle(){var n=rN();return n[202]=at(202,4,aN),n[203]=at(203,8,lN),n}function rN(){var n=nN.slice();return n[196]=og(196),n[197]=kl(197),n[198]=Pl(198),n[199]=og(199),n[200]=kl(200),n[201]=Pl(201),n[202]=at(202,4,eN.writeFloatBE||aN,!0),n[203]=at(203,8,eN.writeDoubleBE||lN,!0),n[204]=og(204),n[205]=kl(205),n[206]=Pl(206),n[207]=at(207,8,oN),n[208]=og(208),n[209]=kl(209),n[210]=Pl(210),n[211]=at(211,8,sN),n[217]=og(217),n[218]=kl(218),n[219]=Pl(219),n[220]=kl(220),n[221]=Pl(221),n[222]=kl(222),n[223]=Pl(223),n}function mle(){var n=nN.slice();return n[196]=at(196,1,Rt.prototype.writeUInt8),n[197]=at(197,2,Rt.prototype.writeUInt16BE),n[198]=at(198,4,Rt.prototype.writeUInt32BE),n[199]=at(199,1,Rt.prototype.writeUInt8),n[200]=at(200,2,Rt.prototype.writeUInt16BE),n[201]=at(201,4,Rt.prototype.writeUInt32BE),n[202]=at(202,4,Rt.prototype.writeFloatBE),n[203]=at(203,8,Rt.prototype.writeDoubleBE),n[204]=at(204,1,Rt.prototype.writeUInt8),n[205]=at(205,2,Rt.prototype.writeUInt16BE),n[206]=at(206,4,Rt.prototype.writeUInt32BE),n[207]=at(207,8,oN),n[208]=at(208,1,Rt.prototype.writeInt8),n[209]=at(209,2,Rt.prototype.writeInt16BE),n[210]=at(210,4,Rt.prototype.writeInt32BE),n[211]=at(211,8,sN),n[217]=at(217,1,Rt.prototype.writeUInt8),n[218]=at(218,2,Rt.prototype.writeUInt16BE),n[219]=at(219,4,Rt.prototype.writeUInt32BE),n[220]=at(220,2,Rt.prototype.writeUInt16BE),n[221]=at(221,4,Rt.prototype.writeUInt32BE),n[222]=at(222,2,Rt.prototype.writeUInt16BE),n[223]=at(223,4,Rt.prototype.writeUInt32BE),n}function og(n){return function(e,t){var i=e.reserve(2),r=e.buffer;r[i++]=n,r[i]=t}}function kl(n){return function(e,t){var i=e.reserve(3),r=e.buffer;r[i++]=n,r[i++]=t>>>8,r[i]=t}}function Pl(n){return function(e,t){var i=e.reserve(5),r=e.buffer;r[i++]=n,r[i++]=t>>>24,r[i++]=t>>>16,r[i++]=t>>>8,r[i]=t}}function at(n,e,t,i){return function(r,o){var s=r.reserve(e+1);r.buffer[s++]=n,t.call(r.buffer,o,s,i)}}function oN(n,e){new cle(this,e,n)}function sN(n,e){new hle(this,e,n)}function aN(n,e){tN.write(this,n,e,!1,23,4)}function lN(n,e){tN.write(this,n,e,!1,52,8)}});var fN=y(pN=>{var ble=sv(),gN=dv(),yle=gN.Uint64BE,vle=gN.Int64BE,hN=Gn(),dN=uv(),wle=cN(),xle=GT().uint8,Cle=cv().ExtBuffer,Sle=typeof Uint8Array<"u",Dle=typeof Map<"u",wc=[];wc[1]=212;wc[2]=213;wc[4]=214;wc[8]=215;wc[16]=216;pN.getWriteType=Tle;function Tle(n){var e=wle.getWriteToken(n),t=n&&n.useraw,i=Sle&&n&&n.binarraybuffer,r=i?hN.isArrayBuffer:hN.isBuffer,o=i?R:T,s=Dle&&n&&n.usemap,a=s?J:N,l={boolean:u,function:w,number:c,object:t?b:m,string:f(t?p:g),symbol:w,undefined:w};return l;function u(M,L){var O=L?195:194;e[O](M,L)}function c(M,L){var O=L|0,Z;if(L!==O){Z=203,e[Z](M,L);return}else-32<=O&&O<=127?Z=O&255:0<=O?Z=O<=255?204:O<=65535?205:206:Z=-128<=O?208:-32768<=O?209:210;e[Z](M,O)}function h(M,L){var O=207;e[O](M,L.toArray())}function d(M,L){var O=211;e[O](M,L.toArray())}function g(M){return M<32?1:M<=255?2:M<=65535?3:5}function p(M){return M<32?1:M<=65535?3:5}function f(M){return L;function L(O,Z){var ne=Z.length,be=5+ne*3;O.offset=O.reserve(be);var He=O.buffer,$=M(ne),B=O.offset+$;ne=dN.write.call(He,Z,B);var G=M(ne);if($!==G){var V=B+G-$,Re=B+ne;dN.copy.call(He,He,V,B,Re)}var Ee=G===1?160+ne:G<=3?215+G:219;e[Ee](O,ne),O.offset+=ne}}function m(M,L){if(L===null)return w(M,L);if(r(L))return o(M,L);if(ble(L))return x(M,L);if(yle.isUint64BE(L))return h(M,L);if(vle.isInt64BE(L))return d(M,L);var O=M.codec.getExtPacker(L);if(O&&(L=O(L)),L instanceof Cle)return F(M,L);a(M,L)}function b(M,L){if(r(L))return H(M,L);m(M,L)}function w(M,L){var O=192;e[O](M,L)}function x(M,L){var O=L.length,Z=O<16?144+O:O<=65535?220:221;e[Z](M,O);for(var ne=M.codec.encode,be=0;be<O;be++)ne(M,L[be])}function T(M,L){var O=L.length,Z=O<255?196:O<=65535?197:198;e[Z](M,O),M.send(L)}function R(M,L){T(M,new Uint8Array(L))}function F(M,L){var O=L.buffer,Z=O.length,ne=wc[Z]||(Z<255?199:Z<=65535?200:201);e[ne](M,Z),xle[L.type](M),M.send(O)}function N(M,L){var O=Object.keys(L),Z=O.length,ne=Z<16?128+Z:Z<=65535?222:223;e[ne](M,Z);var be=M.codec.encode;O.forEach(function(He){be(M,He),be(M,L[He])})}function J(M,L){if(!(L instanceof Map))return N(M,L);var O=L.size,Z=O<16?128+O:O<=65535?222:223;e[Z](M,O);var ne=M.codec.encode;L.forEach(function(be,He,$){ne(M,He),ne(M,be)})}function H(M,L){var O=L.length,Z=O<32?160+O:O<=65535?218:219;e[Z](M,O),M.send(L)}}});var ag=y(sg=>{var kle=sv();sg.createCodec=mN;sg.install=Ele;sg.filter=Lle;var Ple=Gn();function xc(n){if(!(this instanceof xc))return new xc(n);this.options=n,this.init()}xc.prototype.init=function(){var n=this.options;return n&&n.uint8array&&(this.bufferish=Ple.Uint8Array),this};function Ele(n){for(var e in n)xc.prototype[e]=Rle(xc.prototype[e],n[e])}function Rle(n,e){return n&&e?t:n||e;function t(){return n.apply(this,arguments),e.apply(this,arguments)}}function _le(n){return n=n.slice(),function(t){return n.reduce(e,t)};function e(t,i){return i(t)}}function Lle(n){return kle(n)?_le(n):n}function mN(n){return new xc(n)}sg.preset=mN({preset:!0})});var pv=y(yN=>{var Ile=cv().ExtBuffer,Fle=QA(),jle=fN(),zT=ag();zT.install({addExtPacker:Ole,getExtPacker:Ale,init:bN});yN.preset=bN.call(zT.preset);function Mle(n){var e=jle.getWriteType(n);return t;function t(i,r){var o=e[typeof r];if(!o)throw new Error('Unsupported type "'+typeof r+'": '+r);o(i,r)}}function bN(){var n=this.options;return this.encode=Mle(n),n&&n.preset&&Fle.setExtPackers(this),this}function Ole(n,e,t){t=zT.filter(t);var i=e.name;if(i&&i!=="Object"){var r=this.extPackers||(this.extPackers={});r[i]=s}else{var o=this.extEncoderList||(this.extEncoderList=[]);o.unshift([e,s])}function s(a){return t&&(a=t(a)),new Ile(a,n)}}function Ale(n){var e=this.extPackers||(this.extPackers={}),t=n.constructor,i=t&&t.name&&e[t.name];if(i)return i;for(var r=this.extEncoderList||(this.extEncoderList=[]),o=r.length,s=0;s<o;s++){var a=r[s];if(t===a[0])return a[1]}}});var QT=y(KT=>{KT.FlexDecoder=Cc;KT.FlexEncoder=Sc;var lg=Gn(),Nle=2048,Hle=65536,vN="BUFFER_SHORTAGE";function Cc(){if(!(this instanceof Cc))return new Cc}function Sc(){if(!(this instanceof Sc))return new Sc}Cc.mixin=CN(qle());Cc.mixin(Cc.prototype);Sc.mixin=CN(Ble());Sc.mixin(Sc.prototype);function qle(){return{bufferish:lg,write:n,fetch:Yle,flush:e,push:xN,pull:Zle,read:wN,reserve:t,offset:0};function n(i){var r=this.offset?lg.prototype.slice.call(this.buffer,this.offset):this.buffer;this.buffer=r?i?this.bufferish.concat([r,i]):r:i,this.offset=0}function e(){for(;this.offset<this.buffer.length;){var i=this.offset,r;try{r=this.fetch()}catch(o){if(o&&o.message!=vN)throw o;this.offset=i;break}this.push(r)}}function t(i){var r=this.offset,o=r+i;if(o>this.buffer.length)throw new Error(vN);return this.offset=o,r}}function Ble(){return{bufferish:lg,write:Wle,fetch:n,flush:e,push:xN,pull:t,read:wN,reserve:i,send:r,maxBufferSize:Hle,minBufferSize:Nle,offset:0,start:0};function n(){var o=this.start;if(o<this.offset){var s=this.start=this.offset;return lg.prototype.slice.call(this.buffer,o,s)}}function e(){for(;this.start<this.offset;){var o=this.fetch();o&&this.push(o)}}function t(){var o=this.buffers||(this.buffers=[]),s=o.length>1?this.bufferish.concat(o):o[0];return o.length=0,s}function i(o){var s=o|0;if(this.buffer){var a=this.buffer.length,l=this.offset|0,u=l+s;if(u<a)return this.offset=u,l;this.flush(),o=Math.max(o,Math.min(a*2,this.maxBufferSize))}return o=Math.max(o,this.minBufferSize),this.buffer=this.bufferish.alloc(o),this.start=0,this.offset=s,0}function r(o){var s=o.length;if(s>this.minBufferSize)this.flush(),this.push(o);else{var a=this.reserve(s);lg.prototype.copy.call(o,this.buffer,a)}}}function Wle(){throw new Error("method not implemented: write()")}function Yle(){throw new Error("method not implemented: fetch()")}function wN(){var n=this.buffers&&this.buffers.length;return n?(this.flush(),this.pull()):this.fetch()}function xN(n){var e=this.buffers||(this.buffers=[]);e.push(n)}function Zle(){var n=this.buffers||(this.buffers=[]);return n.shift()}function CN(n){return e;function e(t){for(var i in n)t[i]=n[i];return t}}});var fv=y(SN=>{SN.EncodeBuffer=Dc;var Jle=pv().preset,$le=QT().FlexEncoder;$le.mixin(Dc.prototype);function Dc(n){if(!(this instanceof Dc))return new Dc(n);if(n&&(this.options=n,n.codec)){var e=this.codec=n.codec;e.bufferish&&(this.bufferish=e.bufferish)}}Dc.prototype.codec=Jle;Dc.prototype.write=function(n){this.codec.encode(this,n)}});var $T=y(DN=>{DN.encode=Xle;var Ule=fv().EncodeBuffer;function Xle(n,e){var t=new Ule(e);return t.write(n),t.read()}});var PN=y(kN=>{kN.setExtUnpackers=Kle;var TN=Gn(),Gle=TN.global,VT,zle={name:1,message:1,stack:1,columnNumber:1,fileName:1,lineNumber:1};function Kle(n){n.addExtUnpacker(14,[mr,El(Error)]),n.addExtUnpacker(1,[mr,El(EvalError)]),n.addExtUnpacker(2,[mr,El(RangeError)]),n.addExtUnpacker(3,[mr,El(ReferenceError)]),n.addExtUnpacker(4,[mr,El(SyntaxError)]),n.addExtUnpacker(5,[mr,El(TypeError)]),n.addExtUnpacker(6,[mr,El(URIError)]),n.addExtUnpacker(10,[mr,Qle]),n.addExtUnpacker(11,[mr,an(Boolean)]),n.addExtUnpacker(12,[mr,an(String)]),n.addExtUnpacker(13,[mr,an(Date)]),n.addExtUnpacker(15,[mr,an(Number)]),typeof Uint8Array<"u"&&(n.addExtUnpacker(17,an(Int8Array)),n.addExtUnpacker(18,an(Uint8Array)),n.addExtUnpacker(19,[oa,an(Int16Array)]),n.addExtUnpacker(20,[oa,an(Uint16Array)]),n.addExtUnpacker(21,[oa,an(Int32Array)]),n.addExtUnpacker(22,[oa,an(Uint32Array)]),n.addExtUnpacker(23,[oa,an(Float32Array)]),typeof Float64Array<"u"&&n.addExtUnpacker(24,[oa,an(Float64Array)]),typeof Uint8ClampedArray<"u"&&n.addExtUnpacker(25,an(Uint8ClampedArray)),n.addExtUnpacker(26,oa),n.addExtUnpacker(29,[oa,an(DataView)])),TN.hasBuffer&&n.addExtUnpacker(27,an(Gle))}function mr(n){return VT||(VT=ek().decode),VT(n)}function Qle(n){return RegExp.apply(null,n)}function El(n){return function(e){var t=new n;for(var i in zle)t[i]=e[i];return t}}function an(n){return function(e){return new n(e)}}function oa(n){return new Uint8Array(n).buffer}});var nk=y(ik=>{var EN=XT(),RN=dv(),_N=RN.Uint64BE,LN=RN.Int64BE;ik.getReadFormat=tue;ik.readUint8=IN;var tk=Gn(),bv=uv(),Vle=typeof Map<"u",eue=!0;function tue(n){var e=tk.hasArrayBuffer&&n&&n.binarraybuffer,t=n&&n.int64,i=Vle&&n&&n.usemap,r={map:i?nue:iue,array:rue,str:oue,bin:e?aue:sue,ext:lue,uint8:IN,uint16:cue,uint32:due,uint64:mv(8,t?mue:pue),int8:uue,int16:hue,int32:gue,int64:mv(8,t?bue:fue),float32:mv(4,yue),float64:mv(8,vue)};return r}function iue(n,e){var t={},i,r=new Array(e),o=new Array(e),s=n.codec.decode;for(i=0;i<e;i++)r[i]=s(n),o[i]=s(n);for(i=0;i<e;i++)t[r[i]]=o[i];return t}function nue(n,e){var t=new Map,i,r=new Array(e),o=new Array(e),s=n.codec.decode;for(i=0;i<e;i++)r[i]=s(n),o[i]=s(n);for(i=0;i<e;i++)t.set(r[i],o[i]);return t}function rue(n,e){for(var t=new Array(e),i=n.codec.decode,r=0;r<e;r++)t[r]=i(n);return t}function oue(n,e){var t=n.reserve(e),i=t+e;return bv.toString.call(n.buffer,"utf-8",t,i)}function sue(n,e){var t=n.reserve(e),i=t+e,r=bv.slice.call(n.buffer,t,i);return tk.from(r)}function aue(n,e){var t=n.reserve(e),i=t+e,r=bv.slice.call(n.buffer,t,i);return tk.Uint8Array.from(r).buffer}function lue(n,e){var t=n.reserve(e+1),i=n.buffer[t++],r=t+e,o=n.codec.getExtUnpacker(i);if(!o)throw new Error("Invalid ext type: "+(i&&"0x"+i.toString(16)));var s=bv.slice.call(n.buffer,t,r);return o(s)}function IN(n){var e=n.reserve(1);return n.buffer[e]}function uue(n){var e=n.reserve(1),t=n.buffer[e];return t&128?t-256:t}function cue(n){var e=n.reserve(2),t=n.buffer;return t[e++]<<8|t[e]}function hue(n){var e=n.reserve(2),t=n.buffer,i=t[e++]<<8|t[e];return i&32768?i-65536:i}function due(n){var e=n.reserve(4),t=n.buffer;return t[e++]*16777216+(t[e++]<<16)+(t[e++]<<8)+t[e]}function gue(n){var e=n.reserve(4),t=n.buffer;return t[e++]<<24|t[e++]<<16|t[e++]<<8|t[e]}function mv(n,e){return function(t){var i=t.reserve(n);return e.call(t.buffer,i,eue)}}function pue(n){return new _N(this,n).toNumber()}function fue(n){return new LN(this,n).toNumber()}function mue(n){return new _N(this,n)}function bue(n){return new LN(this,n)}function yue(n){return EN.read(this,n,!1,23,4)}function vue(n){return EN.read(this,n,!1,52,8)}});var MN=y(jN=>{var wue=nk();jN.getReadToken=xue;function xue(n){var e=wue.getReadFormat(n);return n&&n.useraw?Cue(e):FN(e)}function FN(n){var e,t=new Array(256);for(e=0;e<=127;e++)t[e]=ug(e);for(e=128;e<=143;e++)t[e]=Vo(e-128,n.map);for(e=144;e<=159;e++)t[e]=Vo(e-144,n.array);for(e=160;e<=191;e++)t[e]=Vo(e-160,n.str);for(t[192]=ug(null),t[193]=null,t[194]=ug(!1),t[195]=ug(!0),t[196]=zn(n.uint8,n.bin),t[197]=zn(n.uint16,n.bin),t[198]=zn(n.uint32,n.bin),t[199]=zn(n.uint8,n.ext),t[200]=zn(n.uint16,n.ext),t[201]=zn(n.uint32,n.ext),t[202]=n.float32,t[203]=n.float64,t[204]=n.uint8,t[205]=n.uint16,t[206]=n.uint32,t[207]=n.uint64,t[208]=n.int8,t[209]=n.int16,t[210]=n.int32,t[211]=n.int64,t[212]=Vo(1,n.ext),t[213]=Vo(2,n.ext),t[214]=Vo(4,n.ext),t[215]=Vo(8,n.ext),t[216]=Vo(16,n.ext),t[217]=zn(n.uint8,n.str),t[218]=zn(n.uint16,n.str),t[219]=zn(n.uint32,n.str),t[220]=zn(n.uint16,n.array),t[221]=zn(n.uint32,n.array),t[222]=zn(n.uint16,n.map),t[223]=zn(n.uint32,n.map),e=224;e<=255;e++)t[e]=ug(e-256);return t}function Cue(n){var e,t=FN(n).slice();for(t[217]=t[196],t[218]=t[197],t[219]=t[198],e=160;e<=191;e++)t[e]=Vo(e-160,n.bin);return t}function ug(n){return function(){return n}}function zn(n,e){return function(t){var i=n(t);return e(t,i)}}function Vo(n,e){return function(t){return e(t,n)}}});var yv=y(AN=>{var Sue=cv().ExtBuffer,Due=PN(),Tue=nk().readUint8,kue=MN(),rk=ag();rk.install({addExtUnpacker:Eue,getExtUnpacker:Rue,init:ON});AN.preset=ON.call(rk.preset);function Pue(n){var e=kue.getReadToken(n);return t;function t(i){var r=Tue(i),o=e[r];if(!o)throw new Error("Invalid type: "+(r&&"0x"+r.toString(16)));return o(i)}}function ON(){var n=this.options;return this.decode=Pue(n),n&&n.preset&&Due.setExtUnpackers(this),this}function Eue(n,e){var t=this.extUnpackers||(this.extUnpackers=[]);t[n]=rk.filter(e)}function Rue(n){var e=this.extUnpackers||(this.extUnpackers=[]);return e[n]||t;function t(i){return new Sue(i,n)}}});var vv=y(NN=>{NN.DecodeBuffer=Tc;var _ue=yv().preset,Lue=QT().FlexDecoder;Lue.mixin(Tc.prototype);function Tc(n){if(!(this instanceof Tc))return new Tc(n);if(n&&(this.options=n,n.codec)){var e=this.codec=n.codec;e.bufferish&&(this.bufferish=e.bufferish)}}Tc.prototype.codec=_ue;Tc.prototype.fetch=function(){return this.codec.decode(this)}});var ek=y(HN=>{HN.decode=Fue;var Iue=vv().DecodeBuffer;function Fue(n,e){var t=new Iue(e);return t.write(n),t.read()}});var ak=y((N0e,sk)=>{function ok(){if(!(this instanceof ok))return new ok}(function(n){typeof sk<"u"&&(sk.exports=n);var e="listeners",t={on:r,once:o,off:s,emit:a};i(n.prototype),n.mixin=i;function i(u){for(var c in t)u[c]=t[c];return u}function r(u,c){return l(this,u).push(c),this}function o(u,c){var h=this;return d.originalListener=c,l(h,u).push(d),h;function d(){s.call(h,u,d),c.apply(this,arguments)}}function s(u,c){var h=this,d;if(!arguments.length)delete h[e];else if(c){if(d=l(h,u,!0),d){if(d=d.filter(g),!d.length)return s.call(h,u);h[e][u]=d}}else if(d=h[e],d&&(delete d[u],!Object.keys(d).length))return s.call(h);return h;function g(p){return p!==c&&p.originalListener!==c}}function a(u,c){var h=this,d=l(h,u,!0);if(!d)return!1;var g=arguments.length;if(g===1)d.forEach(f);else if(g===2)d.forEach(m);else{var p=Array.prototype.slice.call(arguments,1);d.forEach(b)}return!!d.length;function f(w){w.call(h)}function m(w){w.call(h,c)}function b(w){w.apply(h,p)}}function l(u,c,h){if(!(h&&!u[e])){var d=u[e]||(u[e]={});return d[c]||(d[c]=[])}}})(ok)});var WN=y(BN=>{BN.Encoder=Rl;var jue=ak(),qN=fv().EncodeBuffer;function Rl(n){if(!(this instanceof Rl))return new Rl(n);qN.call(this,n)}Rl.prototype=new qN;jue.mixin(Rl.prototype);Rl.prototype.encode=function(n){this.write(n),this.emit("data",this.read())};Rl.prototype.end=function(n){arguments.length&&this.encode(n),this.flush(),this.emit("end")}});var JN=y(ZN=>{ZN.Decoder=sa;var Mue=ak(),YN=vv().DecodeBuffer;function sa(n){if(!(this instanceof sa))return new sa(n);YN.call(this,n)}sa.prototype=new YN;Mue.mixin(sa.prototype);sa.prototype.decode=function(n){arguments.length&&this.write(n),this.flush()};sa.prototype.push=function(n){this.emit("data",n)};sa.prototype.end=function(n){this.decode(n),this.emit("end")}});var XN=y(UN=>{UN.createEncodeStream=kc;var Oue=require("util"),$N=require("stream").Transform,Aue=fv().EncodeBuffer;Oue.inherits(kc,$N);var Nue={objectMode:!0};function kc(n){if(!(this instanceof kc))return new kc(n);n?n.objectMode=!0:n=Nue,$N.call(this,n);var e=this,t=this.encoder=new Aue(n);t.push=function(i){e.push(i)}}kc.prototype._transform=function(n,e,t){this.encoder.write(n),t&&t()};kc.prototype._flush=function(n){this.encoder.flush(),n&&n()}});var KN=y(zN=>{zN.createDecodeStream=cg;var Hue=require("util"),GN=require("stream").Transform,que=vv().DecodeBuffer;Hue.inherits(cg,GN);var Bue={objectMode:!0};function cg(n){if(!(this instanceof cg))return new cg(n);n?n.objectMode=!0:n=Bue,GN.call(this,n);var e=this,t=this.decoder=new que(n);t.push=function(i){e.push(i)}}cg.prototype._transform=function(n,e,t){this.decoder.write(n),this.decoder.flush(),t&&t()}});var VN=y(QN=>{yv();pv();QN.createCodec=ag().createCodec});var tH=y(eH=>{yv();pv();eH.codec={preset:ag().preset}});var iH=y(es=>{es.encode=$T().encode;es.decode=ek().decode;es.Encoder=WN().Encoder;es.Decoder=JN().Decoder;es.createEncodeStream=XN().createEncodeStream;es.createDecodeStream=KN().createDecodeStream;es.createCodec=VN().createCodec;es.codec=tH().codec});var nH=y(uk=>{"use strict";Object.defineProperty(uk,"__esModule",{value:!0});var Wue=require("stream"),lk=class extends Wue.Transform{constructor(){super({readableHighWaterMark:10*1024*1024,writableHighWaterMark:10*1024*1024}),this.chunks=null,this.timer=null}sendData(){let{chunks:e}=this;if(e){this.chunks=null;let t=Buffer.concat(e);this.push(t)}}_transform(e,t,i){let{chunks:r,timer:o}=this,s=Buffer.poolSize;if(o&&clearTimeout(o),e.length<s){if(!r)return i(null,e);r.push(e),this.sendData(),i()}else r?r.push(e):this.chunks=[e],this.timer=setTimeout(this.sendData.bind(this),20),i()}_flush(e){let{chunks:t}=this;if(t){this.chunks=null;let i=Buffer.concat(t);e(null,i)}else e()}};uk.default=lk});var hg=y(wv=>{"use strict";Object.defineProperty(wv,"__esModule",{value:!0});wv.BaseApi=void 0;var Yue=require("events"),Zue=process.env.VIM_NODE_RPC=="1",ck=class extends Yue.EventEmitter{constructor({transport:e,data:t,client:i}){super(),this.setTransport(e),this.data=t,this.client=i}setTransport(e){this.transport=e}equals(e){try{return String(this.data)===String(e.data)}catch{return!1}}async request(e,t=[]){let i=Error().stack;return new Promise((r,o)=>{this.transport.request(e,this.getArgsByPrefix(t),(s,a)=>{if(s){let l=new Error(`${s[1].split(/\r?\n/)[0]}`);l.stack=`Error: request error on ${e} - ${s[1]}
|
||
`+i.split(/\r?\n/).slice(3).join(`
|
||
`),e.endsWith("get_var")||this.client.logError(`request error on "${e}"`,t,s[1],i),o(l)}else r(a)})})}getArgsByPrefix(e){return this.prefix!=="nvim_"&&e[0]!=this?[Zue?this.data:this,...e]:e}getVar(e){return this.request(`${this.prefix}get_var`,[e]).then(t=>t,t=>null)}setVar(e,t,i=!1){if(i){this.notify(`${this.prefix}set_var`,[e,t]);return}return this.request(`${this.prefix}set_var`,[e,t])}deleteVar(e){this.notify(`${this.prefix}del_var`,[e])}getOption(e){return this.request(`${this.prefix}get_option`,[e])}setOption(e,t,i){if(i){this.notify(`${this.prefix}set_option`,[e,t]);return}return this.request(`${this.prefix}set_option`,[e,t])}notify(e,t=[]){this.transport.notify(e,this.getArgsByPrefix(t))}};wv.BaseApi=ck});var dg=y(xv=>{"use strict";Object.defineProperty(xv,"__esModule",{value:!0});xv.Buffer=void 0;var Jue=hg(),hk=class extends Jue.BaseApi{constructor(){super(...arguments),this.prefix="nvim_buf_"}async attach(e=!1,t={}){return await this.request(`${this.prefix}attach`,[e,t])}async detach(){return await this.request(`${this.prefix}detach`,[])}get id(){return this.data}get length(){return this.request(`${this.prefix}line_count`,[])}get lines(){return this.getLines()}get changedtick(){return this.request(`${this.prefix}get_changedtick`,[])}get commands(){return this.getCommands()}getCommands(e={}){return this.request(`${this.prefix}get_commands`,[e])}getLines({start:e,end:t,strictIndexing:i}={start:0,end:-1,strictIndexing:!0}){let r=typeof i>"u"?!0:i;return this.request(`${this.prefix}get_lines`,[e,t,r])}setLines(e,t,i=!1){let{start:r,end:o,strictIndexing:s}=t??{};r=r??0,o=o??r+1;let a=s??!0;return this[i?"notify":"request"](`${this.prefix}set_lines`,[r,o,a,typeof e=="string"?[e]:e])}setVirtualText(e,t,i,r={}){return this.client.call("coc#vtext#add",[this.id,e,t,i,r],!0),Promise.resolve(e)}deleteExtMark(e,t){this.client.isVim||this.notify(`${this.prefix}del_extmark`,[e,t])}async getExtMarkById(e,t,i={}){return this.client.isVim?Promise.resolve([]):this.request(`${this.prefix}get_extmark_by_id`,[e,t,i])}async getExtMarks(e,t,i,r={}){return this.client.isVim?Promise.resolve([]):this.request(`${this.prefix}get_extmarks`,[e,t,i,r])}setExtMark(e,t,i,r={}){this.client.isVim||this.notify(`${this.prefix}set_extmark`,[e,t,i,r])}insert(e,t){return this.setLines(e,{start:t,end:t,strictIndexing:!0})}replace(e,t){let i=typeof e=="string"?[e]:e;return this.setLines(i,{start:t,end:t+i.length,strictIndexing:!1})}remove(e,t,i=!1){return this.setLines([],{start:e,end:t,strictIndexing:i})}append(e){return this.setLines(e,{start:-1,end:-1,strictIndexing:!1})}get name(){return this.request(`${this.prefix}get_name`,[])}setName(e){return this.request(`${this.prefix}set_name`,[e])}get valid(){return this.request(`${this.prefix}is_valid`,[])}mark(e){return this.request(`${this.prefix}get_mark`,[e])}getKeymap(e){return this.request(`${this.prefix}get_keymap`,[e])}setKeymap(e,t,i,r={}){this.client.call("coc#compat#buf_add_keymap",[this.id,e,t,i,r],!0)}get loaded(){return this.request(`${this.prefix}is_loaded`,[])}getOffset(e){return this.request(`${this.prefix}get_offset`,[e])}addHighlight({hlGroup:e,line:t,colStart:i,colEnd:r,srcId:o}){if(!e)throw new Error("hlGroup should not empty");let s=typeof r<"u"?r:-1,a=typeof i<"u"?i:-0,l=typeof o<"u"?o:-1,u=l==0?"request":"notify",c=this[u](`${this.prefix}add_highlight`,[l,e,t,a,s]);return u==="request"?c:Promise.resolve(null)}clearHighlight(e={}){let t={srcId:-1,lineStart:0,lineEnd:-1},{srcId:i,lineStart:r,lineEnd:o}=Object.assign({},t,e);return this.notify(`${this.prefix}clear_highlight`,[i,r,o])}highlightRanges(e,t,i){this.client.call("coc#highlight#ranges",[this.id,e,t,i],!0)}clearNamespace(e,t=0,i=-1){this.client.call("coc#highlight#clear_highlight",[this.id,e,t,i],!0)}placeSign(e){let t={lnum:e.lnum};typeof e.priority=="number"&&(t.priority=e.priority),this.client.call("sign_place",[e.id||0,e.group||"",e.name,this.id,t],!0)}unplaceSign(e){let t={buffer:this.id};e.id!=null&&(t.id=e.id),this.client.call("sign_unplace",[e.group||"",t],!0)}async getSigns(e){return(await this.client.call("sign_getplaced",[this.id,e||{}]))[0].signs}async getHighlights(e,t=0,i=-1){let r=[],o=await this.client.call("coc#highlight#get_highlights",[this.id,e,t,i]);for(let s of o)r.push({hlGroup:s[0],lnum:s[1],colStart:s[2],colEnd:s[3],id:s[4]});return r}updateHighlights(e,t,i={}){if(typeof i=="number"){this.client.logError("Bad option for buffer.updateHighlights()",new Error().stack);return}let r=typeof i.start=="number"?i.start:0,o=typeof i.end=="number"?i.end:-1,s=typeof i.changedtick=="number"?i.changedtick:null,a=typeof i.priority=="number"?i.priority:null;if(r==0&&o==-1){let l=t.map(u=>[u.hlGroup,u.lnum,u.colStart,u.colEnd,u.combine===!1?0:1,u.start_incl?1:0,u.end_incl?1:0]);this.client.call("coc#highlight#buffer_update",[this.id,e,l,a,s],!0);return}this.client.call("coc#highlight#update_highlights",[this.id,e,t,r,o,a,s],!0)}listen(e,t,i){this.client.attachBufferEvent(this,e,t),i&&i.push({dispose:()=>{this.client.detachBufferEvent(this,e,t)}})}};xv.Buffer=hk});var gg=y(Cv=>{"use strict";Object.defineProperty(Cv,"__esModule",{value:!0});Cv.Window=void 0;var $ue=hg(),dk=require("timers"),gk=class extends $ue.BaseApi{constructor(){super(...arguments),this.prefix="nvim_win_"}get id(){return this.data}get buffer(){return this.request(`${this.prefix}get_buf`,[])}get tabpage(){return this.request(`${this.prefix}get_tabpage`,[])}get cursor(){return this.request(`${this.prefix}get_cursor`,[])}setCursor(e,t=!1){return this[t?"notify":"request"](`${this.prefix}set_cursor`,[e])}get height(){return this.request(`${this.prefix}get_height`,[])}setHeight(e,t=!1){return this[t?"notify":"request"](`${this.prefix}set_height`,[e])}get width(){return this.request(`${this.prefix}get_width`,[])}setWidth(e,t=!1){return this[t?"notify":"request"](`${this.prefix}set_height`,[e])}get position(){return this.request(`${this.prefix}get_position`,[])}get row(){return this.request(`${this.prefix}get_position`,[]).then(e=>e[0])}get col(){return this.request(`${this.prefix}get_position`,[]).then(e=>e[1])}get valid(){return this.request(`${this.prefix}is_valid`,[])}get number(){return this.request(`${this.prefix}get_number`,[])}setConfig(e,t){return this[t?"notify":"request"](`${this.prefix}set_config`,[e])}getConfig(){return this.request(`${this.prefix}get_config`,[])}close(e,t){if(t){this.notify(`${this.prefix}close`,[e]);let i=0,r=setInterval(()=>{if(i==5)return(0,dk.clearInterval)(r);this.request(`${this.prefix}is_valid`,[]).then(o=>{o?this.notify(`${this.prefix}close`,[e]):(0,dk.clearInterval)(r)},()=>{(0,dk.clearInterval)(r)}),i++},50);return null}return this.request(`${this.prefix}close`,[e])}highlightRanges(e,t,i=10,r){if(r){this.client.call("coc#highlight#match_ranges",[this.id,0,t,e,i],!0);return}return this.client.call("coc#highlight#match_ranges",[this.id,0,t,e,i])}clearMatchGroup(e){this.client.call("coc#highlight#clear_match_group",[this.id,e],!0)}clearMatches(e){this.client.call("coc#highlight#clear_matches",[this.id,e],!0)}};Cv.Window=gk});var pg=y(Sv=>{"use strict";Object.defineProperty(Sv,"__esModule",{value:!0});Sv.Tabpage=void 0;var Uue=hg(),pk=class extends Uue.BaseApi{constructor(){super(...arguments),this.prefix="nvim_tabpage_"}get windows(){return this.request(`${this.prefix}list_wins`,[])}get window(){return this.request(`${this.prefix}get_win`,[])}get valid(){return this.request(`${this.prefix}is_valid`,[])}get number(){return this.request(`${this.prefix}get_number`,[])}getOption(){throw new Error("Tabpage does not have `getOption`")}setOption(){throw new Error("Tabpage does not have `setOption`")}};Sv.Tabpage=pk});var rH=y(_l=>{"use strict";Object.defineProperty(_l,"__esModule",{value:!0});_l.Metadata=_l.ExtType=void 0;var Xue=dg(),Gue=gg(),zue=pg(),Kue;(function(n){n[n.Buffer=0]="Buffer",n[n.Window=1]="Window",n[n.Tabpage=2]="Tabpage"})(Kue=_l.ExtType||(_l.ExtType={}));_l.Metadata=[{constructor:Xue.Buffer,name:"Buffer",prefix:"nvim_buf_"},{constructor:Gue.Window,name:"Window",prefix:"nvim_win_"},{constructor:zue.Tabpage,name:"Tabpage",prefix:"nvim_tabpage_"}]});var Pc=y(aa=>{"use strict";var wk=aa&&aa.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(aa,"__esModule",{value:!0});aa.createLogger=aa.nullLogger=void 0;var fk=wk(require("fs")),Que=wk(require("os")),mk=wk(require("path"));aa.nullLogger={debug:()=>{},info:()=>{},warn:()=>{},error:()=>{},trace:()=>{}};function Vue(){let n=process.env.NODE_CLIENT_LOG_FILE;if(n)return n;let e=process.env.XDG_RUNTIME_DIR;return e?mk.default.join(e,"node-client.log"):mk.default.join(Que.default.tmpdir(),`node-client-${process.pid}.log`)}var bk=Vue(),oH=process.env.NODE_CLIENT_LOG_LEVEL||"info",yk=process.getuid&&process.getuid()==0;if(!yk)try{fk.default.mkdirSync(mk.default.dirname(bk),{recursive:!0}),fk.default.writeFileSync(bk,"",{encoding:"utf8",mode:438})}catch{yk=!0}function sH(n){return n==null?n:Array.isArray(n)?n.map(e=>sH(e)):typeof n=="object"&&typeof n.prefix=="string"&&typeof n.data=="number"?"["+n.prefix+n.data+"]":n}function ece(n){return n==null?String(n):typeof n=="object"?JSON.stringify(n,null,2):String(n)}function tce(n){return`${n.getHours()}:${n.getMinutes()}:${n.getSeconds()}.${n.getMilliseconds()}`}var vk=class{constructor(e){this.name=e}get stream(){return yk?null:this._stream?this._stream:(this._stream=fk.default.createWriteStream(bk,{encoding:"utf8"}),this._stream)}getText(e,t,i){let r="";if(i.length){let o=sH(i);r=" "+o.map(s=>ece(s))}return`${tce(new Date)} ${e.toUpperCase()} [${this.name}] - ${t}${r}
|
||
`}debug(e,...t){oH!="debug"||this.stream==null||this.stream.write(this.getText("debug",e,t))}info(e,...t){this.stream!=null&&this.stream.write(this.getText("info",e,t))}warn(e,...t){this.stream!=null&&this.stream.write(this.getText("warn",e,t))}error(e,...t){this.stream!=null&&this.stream.write(this.getText("error",e,t))}trace(e,...t){oH!="trace"||this.stream==null||this.stream.write(this.getText("trace",e,t))}};function ice(n){return new vk(n)}aa.createLogger=ice});var Sk=y(Ck=>{"use strict";Object.defineProperty(Ck,"__esModule",{value:!0});var nce=require("events"),rce=Pc(),aH=process.env.NODE_CLIENT_LOG_LEVEL=="debug",fg=(0,rce.createLogger)("transport"),xk=class extends nce.EventEmitter{constructor(e){super(),this.logger=e,this.pauseLevel=0,this.paused=new Map}debug(e,...t){!aH||fg.debug(e,...t)}info(e,...t){fg.info(e,...t)}debugMessage(e){if(!aH)return;let t=e[0];t==0?fg.debug("receive request:",e.slice(1)):t==1||(t==2?fg.debug("receive notification:",e.slice(1)):fg.debug("unknown message:",e))}pauseNotification(){this.pauseLevel=this.pauseLevel+1,this.paused.set(this.pauseLevel,[])}cancelNotification(){let{pauseLevel:e}=this;e>0&&(this.paused.delete(e),this.pauseLevel=e-1)}resumeNotification(e=!1){let{pauseLevel:t}=this;if(t==0)return e?null:Promise.resolve([[],null]);let i=Error().stack;this.pauseLevel=t-1;let r=this.paused.get(t);return this.paused.delete(t),r&&r.length?new Promise((o,s)=>{if(!e)return this.request("nvim_call_atomic",[r],(a,l)=>{if(a){let u=new Error(`call_atomic error: ${a[1]}`);return u.stack=i,s(u)}if(Array.isArray(l)&&l[1]!=null){let[u,c,h]=l[1],[d,g]=r[u],p=new Error(`call_atomic request error on "${d}": ${h}`);return p.stack=i,this.logger.error(`call_atomic request error ${c} on "${d}"`,g,h,i),s(p)}o(l)});this.notify("nvim_call_atomic",[r]),o(void 0)}):e?null:Promise.resolve([[],void 0])}};Ck.default=xk});var uH=y(br=>{"use strict";var oce=br&&br.__createBinding||(Object.create?function(n,e,t,i){i===void 0&&(i=t);var r=Object.getOwnPropertyDescriptor(e,t);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(n,i,r)}:function(n,e,t,i){i===void 0&&(i=t),n[i]=e[t]}),sce=br&&br.__setModuleDefault||(Object.create?function(n,e){Object.defineProperty(n,"default",{enumerable:!0,value:e})}:function(n,e){n.default=e}),ace=br&&br.__importStar||function(n){if(n&&n.__esModule)return n;var e={};if(n!=null)for(var t in n)t!=="default"&&Object.prototype.hasOwnProperty.call(n,t)&&oce(e,n,t);return sce(e,n),e},lH=br&&br.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(br,"__esModule",{value:!0});br.NvimTransport=void 0;var ts=ace(iH()),lce=lH(nH()),uce=rH(),cce=lH(Sk()),Dk=class extends cce.default{constructor(e){super(e),this.pending=new Map,this.nextRequestId=1,this.attached=!1;let t=this.setupCodec();this.encodeStream=ts.createEncodeStream({codec:t}),this.decodeStream=ts.createDecodeStream({codec:t}),this.decodeStream.on("data",i=>{this.parseMessage(i)}),this.decodeStream.on("end",()=>{this.detach(),this.emit("detach")})}parseMessage(e){let t=e[0];if(this.debugMessage(e),t===0)this.emit("request",e[2].toString(),e[3],this.createResponse(e[1]));else if(t===1){let i=e[1],r=this.pending.get(i);if(r){this.pending.delete(i);let o=e[2];o&&o.length!=2&&(o=[0,o instanceof Error?o.message:o]),r(o,e[3])}}else t===2?this.emit("notification",e[1].toString(),e[2]):console.error(`Invalid message type ${t}`)}setupCodec(){let e=ts.createCodec();return uce.Metadata.forEach(({constructor:t},i)=>{e.addExtPacker(i,t,r=>ts.encode(r.data)),e.addExtUnpacker(i,r=>new t({transport:this,client:this.client,data:ts.decode(r)}))}),this.codec=e,this.codec}attach(e,t,i){this.encodeStream=this.encodeStream.pipe(e);let r=new lce.default;t.pipe(r).pipe(this.decodeStream),this.writer=e,this.reader=t,this.client=i,this.attached=!0}detach(){!this.attached||(this.attached=!1,this.encodeStream.unpipe(this.writer),this.reader.unpipe(this.decodeStream))}request(e,t,i){if(!this.attached)return;let r=this.nextRequestId;this.nextRequestId=this.nextRequestId+1;let o=Date.now();this.debug("request to nvim:",r,e,t),this.encodeStream.write(ts.encode([0,r,e,t],{codec:this.codec}));let s=Error().stack,a=setTimeout(()=>{this.debug(`request to vim blocked more than 1s: ${e}`,t,s)},1e3);this.pending.set(r,(l,u)=>{clearTimeout(a),this.debug("response of nvim:",r,`${Date.now()-o}ms`,u,l),i(l,u)})}notify(e,t){if(!!this.attached){if(this.pauseLevel!=0){let i=this.paused.get(this.pauseLevel);if(i){i.push([e,t]);return}}this.debug("nvim notification:",e,t),this.encodeStream.write(ts.encode([2,e,t],{codec:this.codec}))}}send(e){this.encodeStream.write(ts.encode(e,{codec:this.codec}))}createResponse(e){let{encodeStream:t}=this,i=Date.now(),r=!1,o=setTimeout(()=>{this.debug("request to client cost more than 1s",e)},1e3);return{send:(s,a)=>{clearTimeout(o),!(r||!this.attached)&&(this.debug("response of client:",e,`${Date.now()-i}ms`,s,a==!0),r=!0,t.write(ts.encode([1,e,a?s:null,a?null:s])))}}}};br.NvimTransport=Dk});var hH=y(mg=>{"use strict";var cH=mg&&mg.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(mg,"__esModule",{value:!0});var hce=cH(require("events")),dce=cH(require("readline")),gce=Pc(),Ec=(0,gce.createLogger)("connection"),Tk=class extends hce.default{constructor(e,t){super(),this.readable=e,this.writeable=t;let i=dce.default.createInterface(this.readable);i.on("line",r=>{this.parseData(r)}),i.on("close",()=>{Ec.error("connection closed"),process.exit(0)})}parseData(e){if(e.length==0)return;let t;try{t=JSON.parse(e)}catch{console.error(`Invalid data from vim: ${e}`);return}let[i,r]=t;i>0?(Ec.debug("received request:",i,r),this.emit("request",i,r)):i==0?(Ec.debug("received notification:",r),this.emit("notification",r)):(Ec.debug("received response:",i,r),this.emit("response",i,r))}response(e,t){this.send([e,t||null])}notify(e,t){this.send([0,[e,t||null]])}send(e){Ec.debug("send to vim:",e);try{this.writeable.write(JSON.stringify(e)+`
|
||
`)}catch{Ec.error("Send error:",e)}}redraw(e){this.send(["redraw",e?"force":""])}command(e){this.send(["ex",e])}expr(e){this.send(["expr",e])}call(e,t,i){if(!i){this.send(["call",e,t]);return}this.send(["call",e,t,i])}dispose(){this.removeAllListeners()}};mg.default=Tk});var dH=y(Pk=>{"use strict";Object.defineProperty(Pk,"__esModule",{value:!0});var pce=Pc(),iEe=(0,pce.createLogger)("request"),fce=process.env.COC_NVIM=="1"?"coc#api#call":"nvim#api#call",kk=class{constructor(e,t,i){this.connection=e,this.cb=t,this.id=i}request(e,t=[]){this.method=e,this.connection.call(fce,[e.slice(5),t],this.id)}callback(e,t,i){let{method:r,cb:o}=this;if(t)return o([0,t.toString()]);switch(r){case"nvim_list_wins":case"nvim_tabpage_list_wins":return o(null,i.map(s=>e.createWindow(s)));case"nvim_tabpage_get_win":case"nvim_get_current_win":case"nvim_open_win":return o(null,e.createWindow(i));case"nvim_list_bufs":return o(null,i.map(s=>e.createBuffer(s)));case"nvim_win_get_buf":case"nvim_create_buf":case"nvim_get_current_buf":return o(null,e.createBuffer(i));case"nvim_list_tabpages":return o(null,i.map(s=>e.createTabpage(s)));case"nvim_get_current_tabpage":return o(null,e.createTabpage(i));default:return o(null,i)}}};Pk.default=kk});var gH=y(Rc=>{"use strict";var Rk=Rc&&Rc.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Rc,"__esModule",{value:!0});Rc.VimTransport=void 0;var mce=Rk(Sk()),bce=Rk(hH()),yce=Rk(dH()),Ek=class extends mce.default{constructor(e){super(e),this.pending=new Map,this.nextRequestId=-1,this.attached=!1,this.errText="",this.outText="",this.notifyMethod=process.env.COC_NVIM=="1"?"coc#api#notify":"nvim#api#notify"}attach(e,t,i){let r=this.connection=new bce.default(t,e);this.attached=!0,this.client=i,r.on("request",(o,s)=>{let[a,l]=s;this.emit("request",a,l,this.createResponse(o))}),r.on("notification",o=>{let[s,a]=o;this.emit("notification",s.toString(),a)}),r.on("response",(o,s)=>{let a=this.pending.get(o);if(a){this.pending.delete(o);let l=null,u=null;Array.isArray(s)?(l=s[0],u=s[1]):l=s,a.callback(this.client,l,u)}})}send(e){this.connection.send(e)}detach(){!this.attached||(this.attached=!1,this.connection.dispose())}request(e,t,i){if(!this.attached)return i([0,"transport disconnected"]);let r=this.nextRequestId;this.nextRequestId=this.nextRequestId-1;let o=Date.now();this.debug("request to vim:",r,e,t);let s=setTimeout(()=>{this.debug("request to vim cost more than 1s",e,t)},1e3),a=new yce.default(this.connection,(l,u)=>{clearTimeout(s),this.debug("response from vim cost:",r,`${Date.now()-o}ms`),i(l,u)},r);this.pending.set(r,a),a.request(e,t)}notify(e,t){if(!this.attached)return;if(this.pauseLevel!=0){let r=this.paused.get(this.pauseLevel);if(r){r.push([e,t]);return}}let i=e.slice(5);if(i=="err_write"){this.errText=this.errText+t[0].toString();return}if(i=="out_write"){let r=t[0].toString()||"";if(!r.includes(`
|
||
`))this.outText=this.outText+r;else{let o=this.outText+t[0].toString();this.outText="",this.connection.call(this.notifyMethod,[i,[o]])}return}if(i=="err_writeln"){let r=this.errText+t[0].toString();this.errText="",this.connection.call(this.notifyMethod,[i,[r]]);return}this.connection.call(this.notifyMethod,[i,t])}createResponse(e){let t=!1,{connection:i}=this,r=Date.now(),o=setTimeout(()=>{this.debug("request to client cost more than 1s",e)},1e3);return{send:(s,a)=>{if(clearTimeout(o),t||!this.attached)return;t=!0;let l=null;a&&(l=typeof s=="string"?s:s.toString()),this.debug("response of client cost:",e,`${Date.now()-r}ms`),i.response(e,[l,a?null:s])}}}};Rc.VimTransport=Ek});var pH=y(Dv=>{"use strict";Object.defineProperty(Dv,"__esModule",{value:!0});Dv.Neovim=void 0;var vce=hg(),wce=dg(),xce=pg(),Cce=gg(),Sce=process.env.VIM_NODE_RPC=="1",_k=class extends vce.BaseApi{constructor(){super(...arguments),this.prefix="nvim_",this.Buffer=wce.Buffer,this.Window=Cce.Window,this.Tabpage=xce.Tabpage}getArgs(e){return e?Array.isArray(e)?e:[e]:[]}get apiInfo(){return this.request(`${this.prefix}get_api_info`)}get buffers(){return this.request(`${this.prefix}list_bufs`)}get buffer(){return this.request(`${this.prefix}get_current_buf`)}async setBuffer(e){await this.request(`${this.prefix}set_current_buf`,[e])}get chans(){return this.request(`${this.prefix}list_chans`)}getChanInfo(e){return this.request(`${this.prefix}get_chan_info`,[e])}createNamespace(e=""){return process.env.COC_NVIM=="1"?(e=e.startsWith("coc-")?e.slice(4):e,this.request(`${this.prefix}call_function`,["coc#highlight#create_namespace",[e]])):this.request(`${this.prefix}create_namespace`,[e])}get namespaces(){return this.request(`${this.prefix}get_namespaces`,[])}get commands(){return this.getCommands()}getCommands(e={}){return this.request(`${this.prefix}get_commands`,[e])}get tabpages(){return this.request(`${this.prefix}list_tabpages`)}get tabpage(){return this.request(`${this.prefix}get_current_tabpage`)}async setTabpage(e){await this.request(`${this.prefix}set_current_tabpage`,[e])}get windows(){return this.getWindows()}get window(){return this.request(`${this.prefix}get_current_win`)}getWindows(){return this.request(`${this.prefix}list_wins`)}async setWindow(e){await this.request(`${this.prefix}set_current_win`,[e])}get runtimePaths(){return this.request(`${this.prefix}list_runtime_paths`)}setDirectory(e){return this.request(`${this.prefix}set_current_dir`,[e])}get line(){return this.getLine()}createNewBuffer(e=!1,t=!1){return this.request(`${this.prefix}create_buf`,[e,t])}openFloatWindow(e,t,i){return this.request(`${this.prefix}open_win`,[e,t,i])}getLine(){return this.request(`${this.prefix}get_current_line`)}setLine(e){return this.request(`${this.prefix}set_current_line`,[e])}getKeymap(e){return this.request(`${this.prefix}get_keymap`,[e])}get mode(){return this.request(`${this.prefix}get_mode`)}get colorMap(){return this.request(`${this.prefix}get_color_map`)}getColorByName(e){return this.request(`${this.prefix}get_color_by_name`,[e])}getHighlight(e,t=!0){let i=typeof e=="string"?"by_name":"by_id";return this.request(`${this.prefix}get_hl_${i}`,[e,t])}getHighlightByName(e,t=!0){return this.request(`${this.prefix}get_hl_by_name`,[e,t])}getHighlightById(e,t=!0){return this.request(`${this.prefix}get_hl_by_id`,[e,t])}deleteCurrentLine(){return this.request(`${this.prefix}del_current_line`)}eval(e){return this.request(`${this.prefix}eval`,[e])}lua(e,t=[]){return this.request(`${this.prefix}exec_lua`,[e,t])}executeLua(e,t=[]){let i=this.getArgs(t);return this.lua(e,i)}callDictFunction(e,t,i=[]){let r=this.getArgs(i);return this.request(`${this.prefix}call_dict_function`,[e,t,r])}call(e,t=[],i){let r=this.getArgs(t);return i?(this.notify(`${this.prefix}call_function`,[e,r]),null):this.request(`${this.prefix}call_function`,[e,r])}callTimer(e,t=[],i){let r=this.getArgs(t);return i?(this.notify(`${this.prefix}call_function`,["coc#util#timer",[e,r]]),null):Sce?(this.notify(`${this.prefix}call_function`,["coc#util#timer",[e,r]]),new Promise(o=>{setTimeout(()=>{o(null)},20)})):this.request(`${this.prefix}call_function`,["coc#util#timer",[e,r]])}callAsync(e,t=[]){let i=this.getArgs(t);return this.client.sendAsyncRequest(e,i)}callFunction(e,t=[]){return this.call(e,t)}callAtomic(e){return this.request(`${this.prefix}call_atomic`,[e])}command(e,t){return t?(this.notify(`${this.prefix}command`,[e]),null):this.request(`${this.prefix}command`,[e])}commandOutput(e){return this.request(`${this.prefix}command_output`,[e])}exec(e,t=!1){return this.request(`${this.prefix}exec`,[e,t])}getVvar(e){return this.request(`${this.prefix}get_vvar`,[e])}feedKeys(e,t,i){return this.request(`${this.prefix}feedkeys`,[e,t,i])}input(e){return this.request(`${this.prefix}input`,[e])}parseExpression(e,t,i){return this.request(`${this.prefix}parse_expression`,[e,t,i])}getProc(e){return this.request(`${this.prefix}get_proc`,[e])}getProcChildren(e){return this.request(`${this.prefix}get_proc_children`,[e])}replaceTermcodes(e,t,i,r){return this.request(`${this.prefix}replace_termcodes`,[e,t,i,r])}strWidth(e){return this.request(`${this.prefix}strwidth`,[e])}outWrite(e){this.notify(`${this.prefix}out_write`,[e])}outWriteLine(e){this.outWrite(`${e}
|
||
`)}errWrite(e){this.notify(`${this.prefix}err_write`,[e])}errWriteLine(e){this.notify(`${this.prefix}err_writeln`,[e])}get uis(){return this.request(`${this.prefix}list_uis`)}uiAttach(e,t,i){return this.request(`${this.prefix}ui_attach`,[e,t,i])}uiDetach(){return this.request(`${this.prefix}ui_detach`,[])}uiTryResize(e,t){return this.request(`${this.prefix}ui_try_resize`,[e,t])}uiSetOption(e,t){return this.request(`${this.prefix}ui_set_option`,[e,t])}subscribe(e){return this.request(`${this.prefix}subscribe`,[e])}unsubscribe(e){return this.request(`${this.prefix}unsubscribe`,[e])}setClientInfo(e,t,i,r,o){this.notify(`${this.prefix}set_client_info`,[e,t,i,r,o])}async quit(){this.command("qa!",!0),this.transport&&this.transport.detach()}};Dv.Neovim=_k});var Pv=y(_c=>{"use strict";Object.defineProperty(_c,"__esModule",{value:!0});_c.NeovimClient=_c.AsyncResponse=void 0;var Dce=uH(),Tce=gH(),kce=pH(),Pce=dg(),Ece=gg(),Rce=pg(),_ce=Pc(),fH=(0,_ce.createLogger)("client"),Tv=process.env.VIM_NODE_RPC=="1",kv=class{constructor(e,t){this.requestId=e,this.cb=t,this.finished=!1}finish(e,t){if(!this.finished){if(this.finished=!0,e){this.cb(new Error(e));return}this.cb(null,t)}}};_c.AsyncResponse=kv;var Lk=class extends kce.Neovim{constructor(e){super({}),this.logger=e,this.requestId=1,this.responses=new Map,this.attachedBuffers=new Map,this.isVim=Tv,Object.defineProperty(this,"client",{value:this});let t=Tv?new Tce.VimTransport(e):new Dce.NvimTransport(e);this.setTransport(t),this.transportAttached=!1,this.handleRequest=this.handleRequest.bind(this),this.handleNotification=this.handleNotification.bind(this)}echoError(e){let t=process.env.COC_NVIM=="1"?"[coc.nvim] ":"";e instanceof Error?(this.errWriteLine(t+e.message+" use :CocOpenLog for details"),this.logError(e.message||"Unknown error",e.stack)):(this.errWriteLine(t+e),this.logError(e.toString(),Error().stack))}logError(e,...t){!this.logger||this.logger.error(e,...t)}createBuffer(e){return new Pce.Buffer({transport:this.transport,data:e,client:this})}createWindow(e){return new Ece.Window({transport:this.transport,data:e,client:this})}createTabpage(e){return new Rce.Tabpage({transport:this.transport,data:e,client:this})}send(e){this.transport.send(e)}redrawVim(e){!Tv||this.transport.notify("nvim_command",["redraw"+(e?"!":"")])}attach({reader:e,writer:t},i=!0){this.transport.attach(t,e,this),this.transportAttached=!0,this.setupTransport(i)}detach(){this.transport.detach(),this.transportAttached=!1}get isApiReady(){return this.transportAttached&&typeof this._channelId<"u"}get channelId(){return this._isReady.then(()=>this._channelId)}isAttached(e){return this.attachedBuffers.has(e)}handleRequest(e,t,i){this.emit("request",e,t,i)}sendAsyncRequest(e,t){let i=this.requestId;return this.requestId=i+1,this.notify("nvim_call_function",["coc#rpc#async_request",[i,e,t||[]]]),new Promise((r,o)=>{let s=new kv(i,(a,l)=>{if(a)return o(a);r(l)});this.responses.set(i,s)})}emitNotification(e,t){if(e.endsWith("_event")){if(e.startsWith("nvim_buf_")){let i=e.replace(/nvim_buf_(.*)_event/,"$1"),{id:r}=t[0];if(!this.attachedBuffers.has(r))return;(this.attachedBuffers.get(r).get(i)||[]).forEach(a=>a(...t)),i==="detach"&&this.attachedBuffers.delete(r);return}if(e.startsWith("nvim_async_request")){let[i,r,o]=t;this.handleRequest(r,o,{send:(s,a)=>{this.notify("nvim_call_function",["coc#rpc#async_response",[i,s,a]])}});return}if(e.startsWith("nvim_async_response")){let[i,r,o]=t,s=this.responses.get(i);if(!s){console.error(`Response not found for request ${i}`);return}this.responses.delete(i),s.finish(r,o);return}if(e==="nvim_error_event"){this.logger.error("Error event from nvim:",t[0],t[1]);return}this.logger.debug(`Unhandled event: ${e}`,t)}else this.emit("notification",e,t)}handleNotification(e,t){this.emitNotification(e,t)}setupTransport(e=!0){if(!this.transportAttached)throw new Error("Not attached to input/output");this.transport.on("request",this.handleRequest),this.transport.on("notification",this.handleNotification),this.transport.on("detach",()=>{this.emit("disconnect"),this.transport.removeAllListeners("request"),this.transport.removeAllListeners("notification"),this.transport.removeAllListeners("detach")}),e?this._isReady=this.generateApi():(this._channelId=0,this._isReady=Promise.resolve(!0))}requestApi(){return new Promise((e,t)=>{this.transport.request("nvim_get_api_info",[],(i,r)=>{i?t(new Error(Array.isArray(i)?i[1]:i.message||i.toString())):e(r)})})}async generateApi(){let e;try{e=await this.requestApi()}catch(t){console.error("Could not get vim api results"),fH.error(t)}if(e)try{let[t,i]=e;return this.functions=i.functions.map(r=>r.name),this._channelId=t,!0}catch(t){return fH.error(t.stack),null}return null}attachBufferEvent(e,t,i){let r=this.attachedBuffers.get(e.id)||new Map,o=r.get(t)||[];o.includes(i)||(o.push(i),r.set(t,o),this.attachedBuffers.set(e.id,r))}detachBufferEvent(e,t,i){let r=this.attachedBuffers.get(e.id);if(!r||!r.has(t))return;let o=r.get(t).filter(s=>s!==i);r.set(t,o)}pauseNotification(){let e=Error().stack;this.transport.pauseLevel!=0&&this.logError("Nested nvim.pauseNotification() detected, please avoid it:",e),this.transport.pauseNotification(),process.nextTick(()=>{this.transport.pauseLevel>0&&this.logError("resumeNotification not called within same tick:",e)})}resumeNotification(e,t){return Tv&&e&&this.transport.notify("nvim_command",["redraw"]),t?(this.transport.resumeNotification(!0),Promise.resolve(null)):this.transport.resumeNotification()}hasFunction(e){return this.functions?this.functions.includes(e):!0}};_c.NeovimClient=Lk});var mH=y(Ev=>{"use strict";Object.defineProperty(Ev,"__esModule",{value:!0});Ev.attach=void 0;var Lce=require("net"),Ice=Pv(),Fce=Pc();function jce({reader:n,writer:e,proc:t,socket:i},r=null,o=!0){let s,a,l;if(r||(r=Fce.nullLogger),i){let u=(0,Lce.createConnection)(i);s=u,a=u,u.once("close",()=>{l.detach()})}else n&&e?(s=e,a=n):t&&(s=t.stdin,a=t.stdout,t.once("disconnect",()=>{l.detach()}));if(s.on("error",u=>{u.code=="EPIPE"&&l.detach()}),s&&a)return l=new Ice.NeovimClient(r),l.attach({writer:s,reader:a},o),l;throw new Error("Invalid arguments, could not attach")}Ev.attach=jce});var bH=y(yr=>{"use strict";Object.defineProperty(yr,"__esModule",{value:!0});yr.Tabpage=yr.Window=yr.Buffer=yr.NeovimClient=yr.Neovim=void 0;var Mce=Pv();Object.defineProperty(yr,"Neovim",{enumerable:!0,get:function(){return Mce.NeovimClient}});var Oce=Pv();Object.defineProperty(yr,"NeovimClient",{enumerable:!0,get:function(){return Oce.NeovimClient}});var Ace=dg();Object.defineProperty(yr,"Buffer",{enumerable:!0,get:function(){return Ace.Buffer}});var Nce=gg();Object.defineProperty(yr,"Window",{enumerable:!0,get:function(){return Nce.Window}});var Hce=pg();Object.defineProperty(yr,"Tabpage",{enumerable:!0,get:function(){return Hce.Tabpage}})});var yH=y(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.Window=kn.Tabpage=kn.Buffer=kn.NeovimClient=kn.Neovim=kn.attach=void 0;var qce=mH();Object.defineProperty(kn,"attach",{enumerable:!0,get:function(){return qce.attach}});var bg=bH();Object.defineProperty(kn,"Neovim",{enumerable:!0,get:function(){return bg.Neovim}});Object.defineProperty(kn,"NeovimClient",{enumerable:!0,get:function(){return bg.NeovimClient}});Object.defineProperty(kn,"Buffer",{enumerable:!0,get:function(){return bg.Buffer}});Object.defineProperty(kn,"Tabpage",{enumerable:!0,get:function(){return bg.Tabpage}});Object.defineProperty(kn,"Window",{enumerable:!0,get:function(){return bg.Window}})});var is=y(jk=>{"use strict";Object.defineProperty(jk,"__esModule",{value:!0});var Ik;function Fk(){if(Ik===void 0)throw new Error("No runtime abstraction layer installed");return Ik}(function(n){function e(t){if(t===void 0)throw new Error("No runtime abstraction layer provided");Ik=t}n.install=e})(Fk||(Fk={}));jk.default=Fk});var Mk=y(yg=>{"use strict";Object.defineProperty(yg,"__esModule",{value:!0});yg.Disposable=void 0;var Bce;(function(n){function e(t){return{dispose:t}}n.create=e})(Bce=yg.Disposable||(yg.Disposable={}))});var vH=y(Rv=>{"use strict";Object.defineProperty(Rv,"__esModule",{value:!0});Rv.AbstractMessageBuffer=void 0;var Wce=13,Yce=10,Zce=`\r
|
||
`,Ok=class{constructor(e="utf-8"){this._encoding=e,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(e){let t=typeof e=="string"?this.fromString(e,this._encoding):e;this._chunks.push(t),this._totalLength+=t.byteLength}tryReadHeaders(){if(this._chunks.length===0)return;let e=0,t=0,i=0,r=0;e:for(;t<this._chunks.length;){let l=this._chunks[t];i=0;t:for(;i<l.length;){switch(l[i]){case Wce:switch(e){case 0:e=1;break;case 2:e=3;break;default:e=0}break;case Yce:switch(e){case 1:e=2;break;case 3:e=4,i++;break e;default:e=0}break;default:e=0}i++}r+=l.byteLength,t++}if(e!==4)return;let o=this._read(r+i),s=new Map,a=this.toString(o,"ascii").split(Zce);if(a.length<2)return s;for(let l=0;l<a.length-2;l++){let u=a[l],c=u.indexOf(":");if(c===-1)throw new Error("Message header must separate key and value using :");let h=u.substr(0,c),d=u.substr(c+1).trim();s.set(h,d)}return s}tryReadBody(e){if(!(this._totalLength<e))return this._read(e)}get numberOfBytes(){return this._totalLength}_read(e){if(e===0)return this.emptyBuffer();if(e>this._totalLength)throw new Error("Cannot read so many bytes!");if(this._chunks[0].byteLength===e){let o=this._chunks[0];return this._chunks.shift(),this._totalLength-=e,this.asNative(o)}if(this._chunks[0].byteLength>e){let o=this._chunks[0],s=this.asNative(o,e);return this._chunks[0]=o.slice(e),this._totalLength-=e,s}let t=this.allocNative(e),i=0,r=0;for(;e>0;){let o=this._chunks[r];if(o.byteLength>e){let s=o.slice(0,e);t.set(s,i),i+=e,this._chunks[r]=o.slice(e),this._totalLength-=e,e-=e}else t.set(o,i),i+=o.byteLength,this._chunks.shift(),this._totalLength-=o.byteLength,e-=o.byteLength}return t}};Rv.AbstractMessageBuffer=Ok});var CH=y(qk=>{"use strict";Object.defineProperty(qk,"__esModule",{value:!0});var Jce=is(),wH=require("util"),Ll=Mk(),$ce=vH(),Lc=class extends $ce.AbstractMessageBuffer{constructor(e="utf-8"){super(e)}emptyBuffer(){return Lc.emptyBuffer}fromString(e,t){return Buffer.from(e,t)}toString(e,t){return e instanceof Buffer?e.toString(t):new wH.TextDecoder(t).decode(e)}asNative(e,t){return t===void 0?e instanceof Buffer?e:Buffer.from(e):e instanceof Buffer?e.slice(0,t):Buffer.from(e,0,t)}allocNative(e){return Buffer.allocUnsafe(e)}};Lc.emptyBuffer=Buffer.allocUnsafe(0);var Ak=class{constructor(e){this.stream=e}onClose(e){return this.stream.on("close",e),Ll.Disposable.create(()=>this.stream.off("close",e))}onError(e){return this.stream.on("error",e),Ll.Disposable.create(()=>this.stream.off("error",e))}onEnd(e){return this.stream.on("end",e),Ll.Disposable.create(()=>this.stream.off("end",e))}onData(e){return this.stream.on("data",e),Ll.Disposable.create(()=>this.stream.off("data",e))}},Nk=class{constructor(e){this.stream=e}onClose(e){return this.stream.on("close",e),Ll.Disposable.create(()=>this.stream.off("close",e))}onError(e){return this.stream.on("error",e),Ll.Disposable.create(()=>this.stream.off("error",e))}onEnd(e){return this.stream.on("end",e),Ll.Disposable.create(()=>this.stream.off("end",e))}write(e,t){return new Promise((i,r)=>{let o=s=>{s==null?i():r(s)};typeof e=="string"?this.stream.write(e,t,o):this.stream.write(e,o)})}end(){this.stream.end()}},xH=Object.freeze({messageBuffer:Object.freeze({create:n=>new Lc(n)}),applicationJson:Object.freeze({encoder:Object.freeze({name:"application/json",encode:(n,e)=>{try{return Promise.resolve(Buffer.from(JSON.stringify(n,void 0,0),e.charset))}catch(t){return Promise.reject(t)}}}),decoder:Object.freeze({name:"application/json",decode:(n,e)=>{try{return n instanceof Buffer?Promise.resolve(JSON.parse(n.toString(e.charset))):Promise.resolve(JSON.parse(new wH.TextDecoder(e.charset).decode(n)))}catch(t){return Promise.reject(t)}}})}),stream:Object.freeze({asReadableStream:n=>new Ak(n),asWritableStream:n=>new Nk(n)}),console,timer:Object.freeze({setTimeout(n,e,...t){let i=setTimeout(n,e,...t);return{dispose:()=>clearTimeout(i)}},setImmediate(n,...e){let t=setImmediate(n,...e);return{dispose:()=>clearImmediate(t)}},setInterval(n,e,...t){let i=setInterval(n,e,...t);return{dispose:()=>clearInterval(i)}}})});function Hk(){return xH}(function(n){function e(){Jce.default.install(xH)}n.install=e})(Hk||(Hk={}));qk.default=Hk});var Ic=y($i=>{"use strict";Object.defineProperty($i,"__esModule",{value:!0});$i.stringArray=$i.array=$i.func=$i.error=$i.number=$i.string=$i.boolean=void 0;function Uce(n){return n===!0||n===!1}$i.boolean=Uce;function SH(n){return typeof n=="string"||n instanceof String}$i.string=SH;function Xce(n){return typeof n=="number"||n instanceof Number}$i.number=Xce;function Gce(n){return n instanceof Error}$i.error=Gce;function zce(n){return typeof n=="function"}$i.func=zce;function DH(n){return Array.isArray(n)}$i.array=DH;function Kce(n){return DH(n)&&n.every(e=>SH(e))}$i.stringArray=Kce});var uP=y(ge=>{"use strict";Object.defineProperty(ge,"__esModule",{value:!0});ge.Message=ge.NotificationType9=ge.NotificationType8=ge.NotificationType7=ge.NotificationType6=ge.NotificationType5=ge.NotificationType4=ge.NotificationType3=ge.NotificationType2=ge.NotificationType1=ge.NotificationType0=ge.NotificationType=ge.RequestType9=ge.RequestType8=ge.RequestType7=ge.RequestType6=ge.RequestType5=ge.RequestType4=ge.RequestType3=ge.RequestType2=ge.RequestType1=ge.RequestType=ge.RequestType0=ge.AbstractMessageSignature=ge.ParameterStructures=ge.ResponseError=ge.ErrorCodes=void 0;var Il=Ic(),TH;(function(n){n.ParseError=-32700,n.InvalidRequest=-32600,n.MethodNotFound=-32601,n.InvalidParams=-32602,n.InternalError=-32603,n.jsonrpcReservedErrorRangeStart=-32099,n.serverErrorStart=-32099,n.MessageWriteError=-32099,n.MessageReadError=-32098,n.PendingResponseRejected=-32097,n.ConnectionInactive=-32096,n.ServerNotInitialized=-32002,n.UnknownErrorCode=-32001,n.jsonrpcReservedErrorRangeEnd=-32e3,n.serverErrorEnd=-32e3})(TH=ge.ErrorCodes||(ge.ErrorCodes={}));var vg=class extends Error{constructor(e,t,i){super(t),this.code=Il.number(e)?e:TH.UnknownErrorCode,this.data=i,Object.setPrototypeOf(this,vg.prototype)}toJson(){let e={code:this.code,message:this.message};return this.data!==void 0&&(e.data=this.data),e}};ge.ResponseError=vg;var vi=class{constructor(e){this.kind=e}static is(e){return e===vi.auto||e===vi.byName||e===vi.byPosition}toString(){return this.kind}};ge.ParameterStructures=vi;vi.auto=new vi("auto");vi.byPosition=new vi("byPosition");vi.byName=new vi("byName");var Pt=class{constructor(e,t){this.method=e,this.numberOfParams=t}get parameterStructures(){return vi.auto}};ge.AbstractMessageSignature=Pt;var Bk=class extends Pt{constructor(e){super(e,0)}};ge.RequestType0=Bk;var Wk=class extends Pt{constructor(e,t=vi.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}};ge.RequestType=Wk;var Yk=class extends Pt{constructor(e,t=vi.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}};ge.RequestType1=Yk;var Zk=class extends Pt{constructor(e){super(e,2)}};ge.RequestType2=Zk;var Jk=class extends Pt{constructor(e){super(e,3)}};ge.RequestType3=Jk;var $k=class extends Pt{constructor(e){super(e,4)}};ge.RequestType4=$k;var Uk=class extends Pt{constructor(e){super(e,5)}};ge.RequestType5=Uk;var Xk=class extends Pt{constructor(e){super(e,6)}};ge.RequestType6=Xk;var Gk=class extends Pt{constructor(e){super(e,7)}};ge.RequestType7=Gk;var zk=class extends Pt{constructor(e){super(e,8)}};ge.RequestType8=zk;var Kk=class extends Pt{constructor(e){super(e,9)}};ge.RequestType9=Kk;var Qk=class extends Pt{constructor(e,t=vi.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}};ge.NotificationType=Qk;var Vk=class extends Pt{constructor(e){super(e,0)}};ge.NotificationType0=Vk;var eP=class extends Pt{constructor(e,t=vi.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}};ge.NotificationType1=eP;var tP=class extends Pt{constructor(e){super(e,2)}};ge.NotificationType2=tP;var iP=class extends Pt{constructor(e){super(e,3)}};ge.NotificationType3=iP;var nP=class extends Pt{constructor(e){super(e,4)}};ge.NotificationType4=nP;var rP=class extends Pt{constructor(e){super(e,5)}};ge.NotificationType5=rP;var oP=class extends Pt{constructor(e){super(e,6)}};ge.NotificationType6=oP;var sP=class extends Pt{constructor(e){super(e,7)}};ge.NotificationType7=sP;var aP=class extends Pt{constructor(e){super(e,8)}};ge.NotificationType8=aP;var lP=class extends Pt{constructor(e){super(e,9)}};ge.NotificationType9=lP;var Qce;(function(n){function e(r){let o=r;return o&&Il.string(o.method)&&(Il.string(o.id)||Il.number(o.id))}n.isRequest=e;function t(r){let o=r;return o&&Il.string(o.method)&&r.id===void 0}n.isNotification=t;function i(r){let o=r;return o&&(o.result!==void 0||!!o.error)&&(Il.string(o.id)||Il.number(o.id)||o.id===null)}n.isResponse=i})(Qce=ge.Message||(ge.Message={}))});var hP=y(ns=>{"use strict";var kH;Object.defineProperty(ns,"__esModule",{value:!0});ns.LRUCache=ns.LinkedMap=ns.Touch=void 0;var ln;(function(n){n.None=0,n.First=1,n.AsOld=n.First,n.Last=2,n.AsNew=n.Last})(ln=ns.Touch||(ns.Touch={}));var _v=class{constructor(){this[kH]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){var e;return(e=this._head)==null?void 0:e.value}get last(){var e;return(e=this._tail)==null?void 0:e.value}has(e){return this._map.has(e)}get(e,t=ln.None){let i=this._map.get(e);if(!!i)return t!==ln.None&&this.touch(i,t),i.value}set(e,t,i=ln.None){let r=this._map.get(e);if(r)r.value=t,i!==ln.None&&this.touch(r,i);else{switch(r={key:e,value:t,next:void 0,previous:void 0},i){case ln.None:this.addItemLast(r);break;case ln.First:this.addItemFirst(r);break;case ln.Last:this.addItemLast(r);break;default:this.addItemLast(r);break}this._map.set(e,r),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){let t=this._map.get(e);if(!!t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");let e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){let i=this._state,r=this._head;for(;r;){if(t?e.bind(t)(r.value,r.key,this):e(r.value,r.key,this),this._state!==i)throw new Error("LinkedMap got modified during iteration.");r=r.next}}keys(){let e=this._state,t=this._head,i={[Symbol.iterator]:()=>i,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(t){let r={value:t.key,done:!1};return t=t.next,r}else return{value:void 0,done:!0}}};return i}values(){let e=this._state,t=this._head,i={[Symbol.iterator]:()=>i,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(t){let r={value:t.value,done:!1};return t=t.next,r}else return{value:void 0,done:!0}}};return i}entries(){let e=this._state,t=this._head,i={[Symbol.iterator]:()=>i,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(t){let r={value:[t.key,t.value],done:!1};return t=t.next,r}else return{value:void 0,done:!0}}};return i}[(kH=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let t=this._head,i=this.size;for(;t&&i>e;)this._map.delete(t.key),t=t.next,i--;this._head=t,this._size=i,t&&(t.previous=void 0),this._state++}addItemFirst(e){if(!this._head&&!this._tail)this._tail=e;else if(this._head)e.next=this._head,this._head.previous=e;else throw new Error("Invalid list");this._head=e,this._state++}addItemLast(e){if(!this._head&&!this._tail)this._head=e;else if(this._tail)e.previous=this._tail,this._tail.next=e;else throw new Error("Invalid list");this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{let t=e.next,i=e.previous;if(!t||!i)throw new Error("Invalid list");t.previous=i,i.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(t!==ln.First&&t!==ln.Last)){if(t===ln.First){if(e===this._head)return;let i=e.next,r=e.previous;e===this._tail?(r.next=void 0,this._tail=r):(i.previous=r,r.next=i),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(t===ln.Last){if(e===this._tail)return;let i=e.next,r=e.previous;e===this._head?(i.previous=void 0,this._head=i):(i.previous=r,r.next=i),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}}toJSON(){let e=[];return this.forEach((t,i)=>{e.push([i,t])}),e}fromJSON(e){this.clear();for(let[t,i]of e)this.set(t,i)}};ns.LinkedMap=_v;var cP=class extends _v{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get ratio(){return this._ratio}set ratio(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim()}get(e,t=ln.AsNew){return super.get(e,t)}peek(e){return super.get(e,ln.None)}set(e,t){return super.set(e,t,ln.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}};ns.LRUCache=cP});var jc=y(Fl=>{"use strict";Object.defineProperty(Fl,"__esModule",{value:!0});Fl.Emitter=Fl.Event=void 0;var Vce=is(),ehe;(function(n){let e={dispose(){}};n.None=function(){return e}})(ehe=Fl.Event||(Fl.Event={}));var dP=class{add(e,t=null,i){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(t),Array.isArray(i)&&i.push({dispose:()=>this.remove(e,t)})}remove(e,t=null){if(!this._callbacks)return;let i=!1;for(let r=0,o=this._callbacks.length;r<o;r++)if(this._callbacks[r]===e)if(this._contexts[r]===t){this._callbacks.splice(r,1),this._contexts.splice(r,1);return}else i=!0;if(i)throw new Error("When adding a listener with a context, you should remove it with the same context")}invoke(...e){if(!this._callbacks)return[];let t=[],i=this._callbacks.slice(0),r=this._contexts.slice(0);for(let o=0,s=i.length;o<s;o++)try{t.push(i[o].apply(r[o],e))}catch(a){(0,Vce.default)().console.error(a)}return t}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}},Fc=class{constructor(e){this._options=e}get event(){return this._event||(this._event=(e,t,i)=>{this._callbacks||(this._callbacks=new dP),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(e,t);let r={dispose:()=>{!this._callbacks||(this._callbacks.remove(e,t),r.dispose=Fc._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(i)&&i.push(r),r}),this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}};Fl.Emitter=Fc;Fc._noop=function(){}});var mP=y(jl=>{"use strict";Object.defineProperty(jl,"__esModule",{value:!0});jl.CancellationTokenSource=jl.CancellationToken=void 0;var the=is(),ihe=Ic(),gP=jc(),pP;(function(n){n.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:gP.Event.None}),n.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:gP.Event.None});function e(t){let i=t;return i&&(i===n.None||i===n.Cancelled||ihe.boolean(i.isCancellationRequested)&&!!i.onCancellationRequested)}n.is=e})(pP=jl.CancellationToken||(jl.CancellationToken={}));var nhe=Object.freeze(function(n,e){let t=(0,the.default)().timer.setTimeout(n.bind(e),0);return{dispose(){t.dispose()}}}),Lv=class{constructor(){this._isCancelled=!1}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?nhe:(this._emitter||(this._emitter=new gP.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},fP=class{get token(){return this._token||(this._token=new Lv),this._token}cancel(){this._token?this._token.cancel():this._token=pP.Cancelled}dispose(){this._token?this._token instanceof Lv&&this._token.dispose():this._token=pP.None}};jl.CancellationTokenSource=fP});var PH=y(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});rs.ReadableStreamMessageReader=rs.AbstractMessageReader=rs.MessageReader=void 0;var yP=is(),Mc=Ic(),bP=jc(),rhe;(function(n){function e(t){let i=t;return i&&Mc.func(i.listen)&&Mc.func(i.dispose)&&Mc.func(i.onError)&&Mc.func(i.onClose)&&Mc.func(i.onPartialMessage)}n.is=e})(rhe=rs.MessageReader||(rs.MessageReader={}));var Iv=class{constructor(){this.errorEmitter=new bP.Emitter,this.closeEmitter=new bP.Emitter,this.partialMessageEmitter=new bP.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e){this.errorEmitter.fire(this.asError(e))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(e){this.partialMessageEmitter.fire(e)}asError(e){return e instanceof Error?e:new Error(`Reader received error. Reason: ${Mc.string(e.message)?e.message:"unknown"}`)}};rs.AbstractMessageReader=Iv;var vP;(function(n){function e(t){let i,r,o,s=new Map,a,l=new Map;if(t===void 0||typeof t=="string")i=t??"utf-8";else{if(i=t.charset??"utf-8",t.contentDecoder!==void 0&&(o=t.contentDecoder,s.set(o.name,o)),t.contentDecoders!==void 0)for(let u of t.contentDecoders)s.set(u.name,u);if(t.contentTypeDecoder!==void 0&&(a=t.contentTypeDecoder,l.set(a.name,a)),t.contentTypeDecoders!==void 0)for(let u of t.contentTypeDecoders)l.set(u.name,u)}return a===void 0&&(a=(0,yP.default)().applicationJson.decoder,l.set(a.name,a)),{charset:i,contentDecoder:o,contentDecoders:s,contentTypeDecoder:a,contentTypeDecoders:l}}n.fromOptions=e})(vP||(vP={}));var wP=class extends Iv{constructor(e,t){super(),this.readable=e,this.options=vP.fromOptions(t),this.buffer=(0,yP.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0}set partialMessageTimeout(e){this._partialMessageTimeout=e}get partialMessageTimeout(){return this._partialMessageTimeout}listen(e){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=e;let t=this.readable.onData(i=>{this.onData(i)});return this.readable.onError(i=>this.fireError(i)),this.readable.onClose(()=>this.fireClose()),t}onData(e){for(this.buffer.append(e);;){if(this.nextMessageLength===-1){let r=this.buffer.tryReadHeaders();if(!r)return;let o=r.get("Content-Length");if(!o)throw new Error("Header must provide a Content-Length property.");let s=parseInt(o);if(isNaN(s))throw new Error("Content-Length value must be a number.");this.nextMessageLength=s}let t=this.buffer.tryReadBody(this.nextMessageLength);if(t===void 0){this.setPartialMessageTimer();return}this.clearPartialMessageTimer(),this.nextMessageLength=-1;let i;this.options.contentDecoder!==void 0?i=this.options.contentDecoder.decode(t):i=Promise.resolve(t),i.then(r=>{this.options.contentTypeDecoder.decode(r,this.options).then(o=>{this.callback(o)},o=>{this.fireError(o)})},r=>{this.fireError(r)})}}clearPartialMessageTimer(){this.partialMessageTimer&&(this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),!(this._partialMessageTimeout<=0)&&(this.partialMessageTimer=(0,yP.default)().timer.setTimeout((e,t)=>{this.partialMessageTimer=void 0,e===this.messageToken&&(this.firePartialMessage({messageToken:e,waitingTime:t}),this.setPartialMessageTimer())},this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout))}};rs.ReadableStreamMessageReader=wP});var EH=y(Fv=>{"use strict";Object.defineProperty(Fv,"__esModule",{value:!0});Fv.Semaphore=void 0;var ohe=is(),xP=class{constructor(e=1){if(e<=0)throw new Error("Capacity must be greater than 0");this._capacity=e,this._active=0,this._waiting=[]}lock(e){return new Promise((t,i)=>{this._waiting.push({thunk:e,resolve:t,reject:i}),this.runNext()})}get active(){return this._active}runNext(){this._waiting.length===0||this._active===this._capacity||(0,ohe.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||this._active===this._capacity)return;let e=this._waiting.shift();if(this._active++,this._active>this._capacity)throw new Error("To many thunks active");try{let t=e.thunk();t instanceof Promise?t.then(i=>{this._active--,e.resolve(i),this.runNext()},i=>{this._active--,e.reject(i),this.runNext()}):(this._active--,e.resolve(t),this.runNext())}catch(t){this._active--,e.reject(t),this.runNext()}}};Fv.Semaphore=xP});var IH=y(os=>{"use strict";Object.defineProperty(os,"__esModule",{value:!0});os.WriteableStreamMessageWriter=os.AbstractMessageWriter=os.MessageWriter=void 0;var RH=is(),wg=Ic(),she=EH(),_H=jc(),ahe="Content-Length: ",LH=`\r
|
||
`,lhe;(function(n){function e(t){let i=t;return i&&wg.func(i.dispose)&&wg.func(i.onClose)&&wg.func(i.onError)&&wg.func(i.write)}n.is=e})(lhe=os.MessageWriter||(os.MessageWriter={}));var jv=class{constructor(){this.errorEmitter=new _H.Emitter,this.closeEmitter=new _H.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e,t,i){this.errorEmitter.fire([this.asError(e),t,i])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}asError(e){return e instanceof Error?e:new Error(`Writer received error. Reason: ${wg.string(e.message)?e.message:"unknown"}`)}};os.AbstractMessageWriter=jv;var CP;(function(n){function e(t){return t===void 0||typeof t=="string"?{charset:t??"utf-8",contentTypeEncoder:(0,RH.default)().applicationJson.encoder}:{charset:t.charset??"utf-8",contentEncoder:t.contentEncoder,contentTypeEncoder:t.contentTypeEncoder??(0,RH.default)().applicationJson.encoder}}n.fromOptions=e})(CP||(CP={}));var SP=class extends jv{constructor(e,t){super(),this.writable=e,this.options=CP.fromOptions(t),this.errorCount=0,this.writeSemaphore=new she.Semaphore(1),this.writable.onError(i=>this.fireError(i)),this.writable.onClose(()=>this.fireClose())}async write(e){return this.writeSemaphore.lock(async()=>this.options.contentTypeEncoder.encode(e,this.options).then(i=>this.options.contentEncoder!==void 0?this.options.contentEncoder.encode(i):i).then(i=>{let r=[];return r.push(ahe,i.byteLength.toString(),LH),r.push(LH),this.doWrite(e,r,i)},i=>{throw this.fireError(i),i}))}async doWrite(e,t,i){try{return await this.writable.write(t.join(""),"ascii"),this.writable.write(i)}catch(r){return this.handleError(r,e),Promise.reject(r)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){this.writable.end()}};os.WriteableStreamMessageWriter=SP});var NH=y(we=>{"use strict";Object.defineProperty(we,"__esModule",{value:!0});we.createMessageConnection=we.ConnectionOptions=we.CancellationStrategy=we.CancellationSenderStrategy=we.CancellationReceiverStrategy=we.ConnectionStrategy=we.ConnectionError=we.ConnectionErrors=we.LogTraceNotification=we.SetTraceNotification=we.TraceFormat=we.TraceValues=we.Trace=we.NullLogger=we.ProgressType=we.ProgressToken=void 0;var FH=is(),ci=Ic(),Te=uP(),jH=hP(),xg=jc(),DP=mP(),Sg;(function(n){n.type=new Te.NotificationType("$/cancelRequest")})(Sg||(Sg={}));var MH;(function(n){function e(t){return typeof t=="string"||typeof t=="number"}n.is=e})(MH=we.ProgressToken||(we.ProgressToken={}));var Cg;(function(n){n.type=new Te.NotificationType("$/progress")})(Cg||(Cg={}));var TP=class{constructor(){}};we.ProgressType=TP;var kP;(function(n){function e(t){return ci.func(t)}n.is=e})(kP||(kP={}));we.NullLogger=Object.freeze({error:()=>{},warn:()=>{},info:()=>{},log:()=>{}});var lt;(function(n){n[n.Off=0]="Off",n[n.Messages=1]="Messages",n[n.Compact=2]="Compact",n[n.Verbose=3]="Verbose"})(lt=we.Trace||(we.Trace={}));var uhe;(function(n){n.Off="off",n.Messages="messages",n.Compact="compact",n.Verbose="verbose"})(uhe=we.TraceValues||(we.TraceValues={}));(function(n){function e(i){if(!ci.string(i))return n.Off;switch(i=i.toLowerCase(),i){case"off":return n.Off;case"messages":return n.Messages;case"compact":return n.Compact;case"verbose":return n.Verbose;default:return n.Off}}n.fromString=e;function t(i){switch(i){case n.Off:return"off";case n.Messages:return"messages";case n.Compact:return"compact";case n.Verbose:return"verbose";default:return"off"}}n.toString=t})(lt=we.Trace||(we.Trace={}));var Zr;(function(n){n.Text="text",n.JSON="json"})(Zr=we.TraceFormat||(we.TraceFormat={}));(function(n){function e(t){return ci.string(t)?(t=t.toLowerCase(),t==="json"?n.JSON:n.Text):n.Text}n.fromString=e})(Zr=we.TraceFormat||(we.TraceFormat={}));var OH;(function(n){n.type=new Te.NotificationType("$/setTrace")})(OH=we.SetTraceNotification||(we.SetTraceNotification={}));var PP;(function(n){n.type=new Te.NotificationType("$/logTrace")})(PP=we.LogTraceNotification||(we.LogTraceNotification={}));var Mv;(function(n){n[n.Closed=1]="Closed",n[n.Disposed=2]="Disposed",n[n.AlreadyListening=3]="AlreadyListening"})(Mv=we.ConnectionErrors||(we.ConnectionErrors={}));var la=class extends Error{constructor(e,t){super(t),this.code=e,Object.setPrototypeOf(this,la.prototype)}};we.ConnectionError=la;var AH;(function(n){function e(t){let i=t;return i&&ci.func(i.cancelUndispatched)}n.is=e})(AH=we.ConnectionStrategy||(we.ConnectionStrategy={}));var EP;(function(n){n.Message=Object.freeze({createCancellationTokenSource(t){return new DP.CancellationTokenSource}});function e(t){let i=t;return i&&ci.func(i.createCancellationTokenSource)}n.is=e})(EP=we.CancellationReceiverStrategy||(we.CancellationReceiverStrategy={}));var RP;(function(n){n.Message=Object.freeze({sendCancellation(t,i){return t.sendNotification(Sg.type,{id:i})},cleanup(t){}});function e(t){let i=t;return i&&ci.func(i.sendCancellation)&&ci.func(i.cleanup)}n.is=e})(RP=we.CancellationSenderStrategy||(we.CancellationSenderStrategy={}));var _P;(function(n){n.Message=Object.freeze({receiver:EP.Message,sender:RP.Message});function e(t){let i=t;return i&&EP.is(i.receiver)&&RP.is(i.sender)}n.is=e})(_P=we.CancellationStrategy||(we.CancellationStrategy={}));var che;(function(n){function e(t){let i=t;return i&&(_P.is(i.cancellationStrategy)||AH.is(i.connectionStrategy))}n.is=e})(che=we.ConnectionOptions||(we.ConnectionOptions={}));var Jr;(function(n){n[n.New=1]="New",n[n.Listening=2]="Listening",n[n.Closed=3]="Closed",n[n.Disposed=4]="Disposed"})(Jr||(Jr={}));function hhe(n,e,t,i){let r=t!==void 0?t:we.NullLogger,o=0,s=0,a=0,l="2.0",u,c=new Map,h,d=new Map,g=new Map,p,f=new jH.LinkedMap,m=new Map,b=new Set,w=new Map,x=lt.Off,T=Zr.Text,R,F=Jr.New,N=new xg.Emitter,J=new xg.Emitter,H=new xg.Emitter,M=new xg.Emitter,L=new xg.Emitter,O=i&&i.cancellationStrategy?i.cancellationStrategy:_P.Message;function Z(E){if(E===null)throw new Error("Can't send requests with id null since the response can't be correlated.");return"req-"+E.toString()}function ne(E){return E===null?"res-unknown-"+(++a).toString():"res-"+E.toString()}function be(){return"not-"+(++s).toString()}function He(E,z){Te.Message.isRequest(z)?E.set(Z(z.id),z):Te.Message.isResponse(z)?E.set(ne(z.id),z):E.set(be(),z)}function $(E){}function B(){return F===Jr.Listening}function G(){return F===Jr.Closed}function V(){return F===Jr.Disposed}function Re(){(F===Jr.New||F===Jr.Listening)&&(F=Jr.Closed,J.fire(void 0))}function Ee(E){N.fire([E,void 0,void 0])}function Xe(E){N.fire(E)}n.onClose(Re),n.onError(Ee),e.onClose(Re),e.onError(Xe);function Zn(){p||f.size===0||(p=(0,FH.default)().timer.setImmediate(()=>{p=void 0,Wi()}))}function Wi(){if(f.size===0)return;let E=f.shift();try{Te.Message.isRequest(E)?Ar(E):Te.Message.isNotification(E)?Ae(E):Te.Message.isResponse(E)?Le(E):Ne(E)}finally{Zn()}}let Yi=E=>{try{if(Te.Message.isNotification(E)&&E.method===Sg.type.method){let z=E.params.id,te=Z(z),he=f.get(te);if(Te.Message.isRequest(he)){let kt=i==null?void 0:i.connectionStrategy,vt=kt&&kt.cancelUndispatched?kt.cancelUndispatched(he,$):void 0;if(vt&&(vt.error!==void 0||vt.result!==void 0)){f.delete(te),w.delete(z),vt.id=he.id,Cn(vt,E.method,Date.now()),e.write(vt).catch(()=>r.error("Sending response for canceled message failed."));return}}let Tt=w.get(z);if(Tt!==void 0){Tt.cancel(),jd(E);return}else b.add(z)}He(f,E)}finally{Zn()}};function Ar(E){if(V())return;function z(Ue,jt,it){let ui={jsonrpc:l,id:E.id};Ue instanceof Te.ResponseError?ui.error=Ue.toJson():ui.result=Ue===void 0?null:Ue,Cn(ui,jt,it),e.write(ui).catch(()=>r.error("Sending response failed."))}function te(Ue,jt,it){let ui={jsonrpc:l,id:E.id,error:Ue.toJson()};Cn(ui,jt,it),e.write(ui).catch(()=>r.error("Sending response failed."))}function he(Ue,jt,it){Ue===void 0&&(Ue=null);let ui={jsonrpc:l,id:E.id,result:Ue};Cn(ui,jt,it),e.write(ui).catch(()=>r.error("Sending response failed."))}Jn(E);let Tt=c.get(E.method),kt,vt;Tt&&(kt=Tt.type,vt=Tt.handler);let mi=Date.now();if(vt||u){let Ue=E.id??String(Date.now()),jt=O.receiver.createCancellationTokenSource(Ue);E.id!==null&&b.has(E.id)&&jt.cancel(),E.id!==null&&w.set(Ue,jt);try{let it;if(vt)if(E.params===void 0){if(kt!==void 0&&kt.numberOfParams!==0){te(new Te.ResponseError(Te.ErrorCodes.InvalidParams,`Request ${E.method} defines ${kt.numberOfParams} params but received none.`),E.method,mi);return}it=vt(jt.token)}else if(Array.isArray(E.params)){if(kt!==void 0&&kt.parameterStructures===Te.ParameterStructures.byName){te(new Te.ResponseError(Te.ErrorCodes.InvalidParams,`Request ${E.method} defines parameters by name but received parameters by position`),E.method,mi);return}it=vt(...E.params,jt.token)}else{if(kt!==void 0&&kt.parameterStructures===Te.ParameterStructures.byPosition){te(new Te.ResponseError(Te.ErrorCodes.InvalidParams,`Request ${E.method} defines parameters by position but received parameters by name`),E.method,mi);return}it=vt(E.params,jt.token)}else u&&(it=u(E.method,E.params,jt.token));let ui=it;it?ui.then?ui.then(Sn=>{w.delete(Ue),z(Sn,E.method,mi)},Sn=>{w.delete(Ue),Sn instanceof Te.ResponseError?te(Sn,E.method,mi):Sn&&ci.string(Sn.message)?te(new Te.ResponseError(Te.ErrorCodes.InternalError,`Request ${E.method} failed with message: ${Sn.message}`),E.method,mi):te(new Te.ResponseError(Te.ErrorCodes.InternalError,`Request ${E.method} failed unexpectedly without providing any details.`),E.method,mi)}):(w.delete(Ue),z(it,E.method,mi)):(w.delete(Ue),he(it,E.method,mi))}catch(it){w.delete(Ue),it instanceof Te.ResponseError?z(it,E.method,mi):it&&ci.string(it.message)?te(new Te.ResponseError(Te.ErrorCodes.InternalError,`Request ${E.method} failed with message: ${it.message}`),E.method,mi):te(new Te.ResponseError(Te.ErrorCodes.InternalError,`Request ${E.method} failed unexpectedly without providing any details.`),E.method,mi)}}else te(new Te.ResponseError(Te.ErrorCodes.MethodNotFound,`Unhandled method ${E.method}`),E.method,mi)}function Le(E){if(!V())if(E.id===null)E.error?r.error(`Received response message without id: Error is:
|
||
${JSON.stringify(E.error,void 0,4)}`):r.error("Received response message without id. No further error information provided.");else{let z=E.id,te=m.get(z);if(vy(E,te),te!==void 0){m.delete(z);try{if(E.error){let he=E.error;te.reject(new Te.ResponseError(he.code,he.message,he.data))}else if(E.result!==void 0)te.resolve(E.result);else throw new Error("Should never happen.")}catch(he){he.message?r.error(`Response handler '${te.method}' failed with message: ${he.message}`):r.error(`Response handler '${te.method}' failed unexpectedly.`)}}}}function Ae(E){if(V())return;let z,te;if(E.method===Sg.type.method){let he=E.params.id;b.delete(he),jd(E);return}else{let he=d.get(E.method);he&&(te=he.handler,z=he.type)}if(te||h)try{if(jd(E),te)if(E.params===void 0)z!==void 0&&z.numberOfParams!==0&&z.parameterStructures!==Te.ParameterStructures.byName&&r.error(`Notification ${E.method} defines ${z.numberOfParams} params but received none.`),te();else if(Array.isArray(E.params)){let he=E.params;E.method===Cg.type.method&&he.length===2&&MH.is(he[0])?te({token:he[0],value:he[1]}):(z!==void 0&&(z.parameterStructures===Te.ParameterStructures.byName&&r.error(`Notification ${E.method} defines parameters by name but received parameters by position`),z.numberOfParams!==E.params.length&&r.error(`Notification ${E.method} defines ${z.numberOfParams} params but received ${he.length} arguments`)),te(...he))}else z!==void 0&&z.parameterStructures===Te.ParameterStructures.byPosition&&r.error(`Notification ${E.method} defines parameters by position but received parameters by name`),te(E.params);else h&&h(E.method,E.params)}catch(he){he.message?r.error(`Notification handler '${E.method}' failed with message: ${he.message}`):r.error(`Notification handler '${E.method}' failed unexpectedly.`)}else H.fire(E)}function Ne(E){if(!E){r.error("Received empty message.");return}r.error(`Received message which is neither a response nor a notification message:
|
||
${JSON.stringify(E,null,4)}`);let z=E;if(ci.string(z.id)||ci.number(z.id)){let te=z.id,he=m.get(te);he&&he.reject(new Error("The received response has neither a result nor an error property."))}}function Ie(E){if(E!=null)switch(x){case lt.Verbose:return JSON.stringify(E,null,4);case lt.Compact:return JSON.stringify(E);default:return}}function li(E){if(!(x===lt.Off||!R))if(T===Zr.Text){let z;(x===lt.Verbose||x===lt.Compact)&&E.params&&(z=`Params: ${Ie(E.params)}
|
||
|
||
`),R.log(`Sending request '${E.method} - (${E.id})'.`,z)}else tc("send-request",E)}function Nr(E){if(!(x===lt.Off||!R))if(T===Zr.Text){let z;(x===lt.Verbose||x===lt.Compact)&&(E.params?z=`Params: ${Ie(E.params)}
|
||
|
||
`:z=`No parameters provided.
|
||
|
||
`),R.log(`Sending notification '${E.method}'.`,z)}else tc("send-notification",E)}function Cn(E,z,te){if(!(x===lt.Off||!R))if(T===Zr.Text){let he;(x===lt.Verbose||x===lt.Compact)&&(E.error&&E.error.data?he=`Error data: ${Ie(E.error.data)}
|
||
|
||
`:E.result?he=`Result: ${Ie(E.result)}
|
||
|
||
`:E.error===void 0&&(he=`No result returned.
|
||
|
||
`)),R.log(`Sending response '${z} - (${E.id})'. Processing request took ${Date.now()-te}ms`,he)}else tc("send-response",E)}function Jn(E){if(!(x===lt.Off||!R))if(T===Zr.Text){let z;(x===lt.Verbose||x===lt.Compact)&&E.params&&(z=`Params: ${Ie(E.params)}
|
||
|
||
`),R.log(`Received request '${E.method} - (${E.id})'.`,z)}else tc("receive-request",E)}function jd(E){if(!(x===lt.Off||!R||E.method===PP.type.method))if(T===Zr.Text){let z;(x===lt.Verbose||x===lt.Compact)&&(E.params?z=`Params: ${Ie(E.params)}
|
||
|
||
`:z=`No parameters provided.
|
||
|
||
`),R.log(`Received notification '${E.method}'.`,z)}else tc("receive-notification",E)}function vy(E,z){if(!(x===lt.Off||!R))if(T===Zr.Text){let te;if((x===lt.Verbose||x===lt.Compact)&&(E.error&&E.error.data?te=`Error data: ${Ie(E.error.data)}
|
||
|
||
`:E.result?te=`Result: ${Ie(E.result)}
|
||
|
||
`:E.error===void 0&&(te=`No result returned.
|
||
|
||
`)),z){let he=E.error?` Request failed: ${E.error.message} (${E.error.code}).`:"";R.log(`Received response '${z.method} - (${E.id})' in ${Date.now()-z.timerStart}ms.${he}`,te)}else R.log(`Received response ${E.id} without active response promise.`,te)}else tc("receive-response",E)}function tc(E,z){if(!R||x===lt.Off)return;let te={isLSPMessage:!0,type:E,message:z,timestamp:Date.now()};R.log(te)}function Md(){if(G())throw new la(Mv.Closed,"Connection is closed.");if(V())throw new la(Mv.Disposed,"Connection is disposed.")}function zie(){if(B())throw new la(Mv.AlreadyListening,"Connection is already listening")}function Kie(){if(!B())throw new Error("Call listen() first.")}function Od(E){return E===void 0?null:E}function nj(E){if(E!==null)return E}function rj(E){return E!=null&&!Array.isArray(E)&&typeof E=="object"}function UD(E,z){switch(E){case Te.ParameterStructures.auto:return rj(z)?nj(z):[Od(z)];case Te.ParameterStructures.byName:if(!rj(z))throw new Error("Received parameters by name but param is not an object literal.");return nj(z);case Te.ParameterStructures.byPosition:return[Od(z)];default:throw new Error(`Unknown parameter structure ${E.toString()}`)}}function oj(E,z){let te,he=E.numberOfParams;switch(he){case 0:te=void 0;break;case 1:te=UD(E.parameterStructures,z[0]);break;default:te=[];for(let Tt=0;Tt<z.length&&Tt<he;Tt++)te.push(Od(z[Tt]));if(z.length<he)for(let Tt=z.length;Tt<he;Tt++)te.push(null);break}return te}let ic={sendNotification:(E,...z)=>{Md();let te,he;if(ci.string(E)){te=E;let kt=z[0],vt=0,mi=Te.ParameterStructures.auto;Te.ParameterStructures.is(kt)&&(vt=1,mi=kt);let Ue=z.length,jt=Ue-vt;switch(jt){case 0:he=void 0;break;case 1:he=UD(mi,z[vt]);break;default:if(mi===Te.ParameterStructures.byName)throw new Error(`Received ${jt} parameters for 'by Name' notification parameter structure.`);he=z.slice(vt,Ue).map(it=>Od(it));break}}else{let kt=z;te=E.method,he=oj(E,kt)}let Tt={jsonrpc:l,method:te,params:he};return Nr(Tt),e.write(Tt).catch(()=>r.error("Sending notification failed."))},onNotification:(E,z)=>{Md();let te;return ci.func(E)?h=E:z&&(ci.string(E)?(te=E,d.set(E,{type:void 0,handler:z})):(te=E.method,d.set(E.method,{type:E,handler:z}))),{dispose:()=>{te!==void 0?d.delete(te):h=void 0}}},onProgress:(E,z,te)=>{if(g.has(z))throw new Error(`Progress handler for token ${z} already registered`);return g.set(z,te),{dispose:()=>{g.delete(z)}}},sendProgress:(E,z,te)=>ic.sendNotification(Cg.type,{token:z,value:te}),onUnhandledProgress:M.event,sendRequest:(E,...z)=>{Md(),Kie();let te,he,Tt;if(ci.string(E)){te=E;let Ue=z[0],jt=z[z.length-1],it=0,ui=Te.ParameterStructures.auto;Te.ParameterStructures.is(Ue)&&(it=1,ui=Ue);let Sn=z.length;DP.CancellationToken.is(jt)&&(Sn=Sn-1,Tt=jt);let hl=Sn-it;switch(hl){case 0:he=void 0;break;case 1:he=UD(ui,z[it]);break;default:if(ui===Te.ParameterStructures.byName)throw new Error(`Received ${hl} parameters for 'by Name' request parameter structure.`);he=z.slice(it,Sn).map(Zs=>Od(Zs));break}}else{let Ue=z;te=E.method,he=oj(E,Ue);let jt=E.numberOfParams;Tt=DP.CancellationToken.is(Ue[jt])?Ue[jt]:void 0}let kt=o++,vt;return Tt&&(vt=Tt.onCancellationRequested(()=>{let Ue=O.sender.sendCancellation(ic,kt);return Ue===void 0?(r.log(`Received no promise from cancellation strategy when cancelling id ${kt}`),Promise.resolve()):Ue.catch(()=>{r.log(`Sending cancellation messages for id ${kt} failed`)})})),new Promise((Ue,jt)=>{let it={jsonrpc:l,id:kt,method:te,params:he},ui=Zs=>{Ue(Zs),O.sender.cleanup(kt),vt==null||vt.dispose()},Sn=Zs=>{jt(Zs),O.sender.cleanup(kt),vt==null||vt.dispose()},hl={method:te,timerStart:Date.now(),resolve:ui,reject:Sn};li(it);try{e.write(it).catch(()=>r.error("Sending request failed."))}catch(Zs){hl.reject(new Te.ResponseError(Te.ErrorCodes.MessageWriteError,Zs.message?Zs.message:"Unknown reason")),hl=null}hl&&m.set(kt,hl)})},onRequest:(E,z)=>{Md();let te=null;return kP.is(E)?(te=void 0,u=E):ci.string(E)?(te=null,z!==void 0&&(te=E,c.set(E,{handler:z,type:void 0}))):z!==void 0&&(te=E.method,c.set(E.method,{type:E,handler:z})),{dispose:()=>{te!==null&&(te!==void 0?c.delete(te):u=void 0)}}},hasPendingResponse:()=>m.size>0,trace:async(E,z,te)=>{let he=!1,Tt=Zr.Text;te!==void 0&&(ci.boolean(te)?he=te:(he=te.sendNotification||!1,Tt=te.traceFormat||Zr.Text)),x=E,T=Tt,x===lt.Off?R=void 0:R=z,he&&!G()&&!V()&&await ic.sendNotification(OH.type,{value:lt.toString(E)})},onError:N.event,onClose:J.event,onUnhandledNotification:H.event,onDispose:L.event,end:()=>{e.end()},dispose:()=>{if(V())return;F=Jr.Disposed,L.fire(void 0);let E=new Te.ResponseError(Te.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(let z of m.values())z.reject(E);m=new Map,w=new Map,b=new Set,f=new jH.LinkedMap,ci.func(e.dispose)&&e.dispose(),ci.func(n.dispose)&&n.dispose()},listen:()=>{Md(),zie(),F=Jr.Listening,n.listen(Yi)},inspect:()=>{(0,FH.default)().console.log("inspect")}};return ic.onNotification(PP.type,E=>{if(x===lt.Off||!R)return;let z=x===lt.Verbose||x===lt.Compact;R.log(E.message,z?E.verbose:void 0)}),ic.onNotification(Cg.type,E=>{let z=g.get(E.token);z?z(E.value):M.fire(E)}),ic}we.createMessageConnection=hhe});var jP=y(X=>{"use strict";Object.defineProperty(X,"__esModule",{value:!0});X.TraceFormat=X.TraceValues=X.Trace=X.ProgressType=X.ProgressToken=X.createMessageConnection=X.NullLogger=X.ConnectionOptions=X.ConnectionStrategy=X.WriteableStreamMessageWriter=X.AbstractMessageWriter=X.MessageWriter=X.ReadableStreamMessageReader=X.AbstractMessageReader=X.MessageReader=X.CancellationToken=X.CancellationTokenSource=X.Emitter=X.Event=X.Disposable=X.LRUCache=X.Touch=X.LinkedMap=X.ParameterStructures=X.NotificationType9=X.NotificationType8=X.NotificationType7=X.NotificationType6=X.NotificationType5=X.NotificationType4=X.NotificationType3=X.NotificationType2=X.NotificationType1=X.NotificationType0=X.NotificationType=X.ErrorCodes=X.ResponseError=X.RequestType9=X.RequestType8=X.RequestType7=X.RequestType6=X.RequestType5=X.RequestType4=X.RequestType3=X.RequestType2=X.RequestType1=X.RequestType0=X.RequestType=X.Message=X.RAL=void 0;X.CancellationStrategy=X.CancellationSenderStrategy=X.CancellationReceiverStrategy=X.ConnectionError=X.ConnectionErrors=X.LogTraceNotification=X.SetTraceNotification=void 0;var wt=uP();Object.defineProperty(X,"Message",{enumerable:!0,get:function(){return wt.Message}});Object.defineProperty(X,"RequestType",{enumerable:!0,get:function(){return wt.RequestType}});Object.defineProperty(X,"RequestType0",{enumerable:!0,get:function(){return wt.RequestType0}});Object.defineProperty(X,"RequestType1",{enumerable:!0,get:function(){return wt.RequestType1}});Object.defineProperty(X,"RequestType2",{enumerable:!0,get:function(){return wt.RequestType2}});Object.defineProperty(X,"RequestType3",{enumerable:!0,get:function(){return wt.RequestType3}});Object.defineProperty(X,"RequestType4",{enumerable:!0,get:function(){return wt.RequestType4}});Object.defineProperty(X,"RequestType5",{enumerable:!0,get:function(){return wt.RequestType5}});Object.defineProperty(X,"RequestType6",{enumerable:!0,get:function(){return wt.RequestType6}});Object.defineProperty(X,"RequestType7",{enumerable:!0,get:function(){return wt.RequestType7}});Object.defineProperty(X,"RequestType8",{enumerable:!0,get:function(){return wt.RequestType8}});Object.defineProperty(X,"RequestType9",{enumerable:!0,get:function(){return wt.RequestType9}});Object.defineProperty(X,"ResponseError",{enumerable:!0,get:function(){return wt.ResponseError}});Object.defineProperty(X,"ErrorCodes",{enumerable:!0,get:function(){return wt.ErrorCodes}});Object.defineProperty(X,"NotificationType",{enumerable:!0,get:function(){return wt.NotificationType}});Object.defineProperty(X,"NotificationType0",{enumerable:!0,get:function(){return wt.NotificationType0}});Object.defineProperty(X,"NotificationType1",{enumerable:!0,get:function(){return wt.NotificationType1}});Object.defineProperty(X,"NotificationType2",{enumerable:!0,get:function(){return wt.NotificationType2}});Object.defineProperty(X,"NotificationType3",{enumerable:!0,get:function(){return wt.NotificationType3}});Object.defineProperty(X,"NotificationType4",{enumerable:!0,get:function(){return wt.NotificationType4}});Object.defineProperty(X,"NotificationType5",{enumerable:!0,get:function(){return wt.NotificationType5}});Object.defineProperty(X,"NotificationType6",{enumerable:!0,get:function(){return wt.NotificationType6}});Object.defineProperty(X,"NotificationType7",{enumerable:!0,get:function(){return wt.NotificationType7}});Object.defineProperty(X,"NotificationType8",{enumerable:!0,get:function(){return wt.NotificationType8}});Object.defineProperty(X,"NotificationType9",{enumerable:!0,get:function(){return wt.NotificationType9}});Object.defineProperty(X,"ParameterStructures",{enumerable:!0,get:function(){return wt.ParameterStructures}});var LP=hP();Object.defineProperty(X,"LinkedMap",{enumerable:!0,get:function(){return LP.LinkedMap}});Object.defineProperty(X,"LRUCache",{enumerable:!0,get:function(){return LP.LRUCache}});Object.defineProperty(X,"Touch",{enumerable:!0,get:function(){return LP.Touch}});var dhe=Mk();Object.defineProperty(X,"Disposable",{enumerable:!0,get:function(){return dhe.Disposable}});var HH=jc();Object.defineProperty(X,"Event",{enumerable:!0,get:function(){return HH.Event}});Object.defineProperty(X,"Emitter",{enumerable:!0,get:function(){return HH.Emitter}});var qH=mP();Object.defineProperty(X,"CancellationTokenSource",{enumerable:!0,get:function(){return qH.CancellationTokenSource}});Object.defineProperty(X,"CancellationToken",{enumerable:!0,get:function(){return qH.CancellationToken}});var IP=PH();Object.defineProperty(X,"MessageReader",{enumerable:!0,get:function(){return IP.MessageReader}});Object.defineProperty(X,"AbstractMessageReader",{enumerable:!0,get:function(){return IP.AbstractMessageReader}});Object.defineProperty(X,"ReadableStreamMessageReader",{enumerable:!0,get:function(){return IP.ReadableStreamMessageReader}});var FP=IH();Object.defineProperty(X,"MessageWriter",{enumerable:!0,get:function(){return FP.MessageWriter}});Object.defineProperty(X,"AbstractMessageWriter",{enumerable:!0,get:function(){return FP.AbstractMessageWriter}});Object.defineProperty(X,"WriteableStreamMessageWriter",{enumerable:!0,get:function(){return FP.WriteableStreamMessageWriter}});var Ui=NH();Object.defineProperty(X,"ConnectionStrategy",{enumerable:!0,get:function(){return Ui.ConnectionStrategy}});Object.defineProperty(X,"ConnectionOptions",{enumerable:!0,get:function(){return Ui.ConnectionOptions}});Object.defineProperty(X,"NullLogger",{enumerable:!0,get:function(){return Ui.NullLogger}});Object.defineProperty(X,"createMessageConnection",{enumerable:!0,get:function(){return Ui.createMessageConnection}});Object.defineProperty(X,"ProgressToken",{enumerable:!0,get:function(){return Ui.ProgressToken}});Object.defineProperty(X,"ProgressType",{enumerable:!0,get:function(){return Ui.ProgressType}});Object.defineProperty(X,"Trace",{enumerable:!0,get:function(){return Ui.Trace}});Object.defineProperty(X,"TraceValues",{enumerable:!0,get:function(){return Ui.TraceValues}});Object.defineProperty(X,"TraceFormat",{enumerable:!0,get:function(){return Ui.TraceFormat}});Object.defineProperty(X,"SetTraceNotification",{enumerable:!0,get:function(){return Ui.SetTraceNotification}});Object.defineProperty(X,"LogTraceNotification",{enumerable:!0,get:function(){return Ui.LogTraceNotification}});Object.defineProperty(X,"ConnectionErrors",{enumerable:!0,get:function(){return Ui.ConnectionErrors}});Object.defineProperty(X,"ConnectionError",{enumerable:!0,get:function(){return Ui.ConnectionError}});Object.defineProperty(X,"CancellationReceiverStrategy",{enumerable:!0,get:function(){return Ui.CancellationReceiverStrategy}});Object.defineProperty(X,"CancellationSenderStrategy",{enumerable:!0,get:function(){return Ui.CancellationSenderStrategy}});Object.defineProperty(X,"CancellationStrategy",{enumerable:!0,get:function(){return Ui.CancellationStrategy}});var ghe=is();X.RAL=ghe.default});var Al=y(Ve=>{"use strict";var phe=Ve&&Ve.__createBinding||(Object.create?function(n,e,t,i){i===void 0&&(i=t);var r=Object.getOwnPropertyDescriptor(e,t);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(n,i,r)}:function(n,e,t,i){i===void 0&&(i=t),n[i]=e[t]}),fhe=Ve&&Ve.__exportStar||function(n,e){for(var t in n)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&phe(e,n,t)};Object.defineProperty(Ve,"__esModule",{value:!0});Ve.createMessageConnection=Ve.createServerSocketTransport=Ve.createClientSocketTransport=Ve.createServerPipeTransport=Ve.createClientPipeTransport=Ve.generateRandomPipeName=Ve.StreamMessageWriter=Ve.StreamMessageReader=Ve.SocketMessageWriter=Ve.SocketMessageReader=Ve.IPCMessageWriter=Ve.IPCMessageReader=void 0;var Oc=CH();Oc.default.install();var ko=jP(),BH=require("path"),mhe=require("os"),bhe=require("crypto"),Nv=require("net");fhe(jP(),Ve);var MP=class extends ko.AbstractMessageReader{constructor(e){super(),this.process=e;let t=this.process;t.on("error",i=>this.fireError(i)),t.on("close",()=>this.fireClose())}listen(e){return this.process.on("message",e),ko.Disposable.create(()=>this.process.off("message",e))}};Ve.IPCMessageReader=MP;var OP=class extends ko.AbstractMessageWriter{constructor(e){super(),this.process=e,this.errorCount=0;let t=this.process;t.on("error",i=>this.fireError(i)),t.on("close",()=>this.fireClose)}write(e){try{return typeof this.process.send=="function"&&this.process.send(e,void 0,void 0,t=>{t?(this.errorCount++,this.handleError(t,e)):this.errorCount=0}),Promise.resolve()}catch(t){return this.handleError(t,e),Promise.reject(t)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){}};Ve.IPCMessageWriter=OP;var Ml=class extends ko.ReadableStreamMessageReader{constructor(e,t="utf-8"){super((0,Oc.default)().stream.asReadableStream(e),t)}};Ve.SocketMessageReader=Ml;var Ol=class extends ko.WriteableStreamMessageWriter{constructor(e,t){super((0,Oc.default)().stream.asWritableStream(e),t),this.socket=e}dispose(){super.dispose(),this.socket.destroy()}};Ve.SocketMessageWriter=Ol;var Ov=class extends ko.ReadableStreamMessageReader{constructor(e,t){super((0,Oc.default)().stream.asReadableStream(e),t)}};Ve.StreamMessageReader=Ov;var Av=class extends ko.WriteableStreamMessageWriter{constructor(e,t){super((0,Oc.default)().stream.asWritableStream(e),t)}};Ve.StreamMessageWriter=Av;var WH=process.env.XDG_RUNTIME_DIR,yhe=new Map([["linux",107],["darwin",103]]);function vhe(){let n=(0,bhe.randomBytes)(21).toString("hex");if(process.platform==="win32")return`\\\\.\\pipe\\vscode-jsonrpc-${n}-sock`;let e;WH?e=BH.join(WH,`vscode-ipc-${n}.sock`):e=BH.join(mhe.tmpdir(),`vscode-${n}.sock`);let t=yhe.get(process.platform);return t!==void 0&&e.length>=t&&(0,Oc.default)().console.warn(`WARNING: IPC handle "${e}" is longer than ${t} characters.`),e}Ve.generateRandomPipeName=vhe;function whe(n,e="utf-8"){let t,i=new Promise((r,o)=>{t=r});return new Promise((r,o)=>{let s=(0,Nv.createServer)(a=>{s.close(),t([new Ml(a,e),new Ol(a,e)])});s.on("error",o),s.listen(n,()=>{s.removeListener("error",o),r({onConnected:()=>i})})})}Ve.createClientPipeTransport=whe;function xhe(n,e="utf-8"){let t=(0,Nv.createConnection)(n);return[new Ml(t,e),new Ol(t,e)]}Ve.createServerPipeTransport=xhe;function Che(n,e="utf-8"){let t,i=new Promise((r,o)=>{t=r});return new Promise((r,o)=>{let s=(0,Nv.createServer)(a=>{s.close(),t([new Ml(a,e),new Ol(a,e)])});s.on("error",o),s.listen(n,"127.0.0.1",()=>{s.removeListener("error",o),r({onConnected:()=>i})})})}Ve.createClientSocketTransport=Che;function She(n,e="utf-8"){let t=(0,Nv.createConnection)(n,"127.0.0.1");return[new Ml(t,e),new Ol(t,e)]}Ve.createServerSocketTransport=She;function Dhe(n){let e=n;return e.read!==void 0&&e.addListener!==void 0}function The(n){let e=n;return e.write!==void 0&&e.addListener!==void 0}function khe(n,e,t,i){t||(t=ko.NullLogger);let r=Dhe(n)?new Ov(n):n,o=The(e)?new Av(e):e;return ko.ConnectionStrategy.is(i)&&(i={connectionStrategy:i}),(0,ko.createMessageConnection)(r,o,t,i)}Ve.createMessageConnection=khe});var AP=y((TEe,YH)=>{"use strict";YH.exports=Al()});var Uv={};Go(Uv,{AnnotatedTextEdit:()=>ss,ChangeAnnotation:()=>Nl,ChangeAnnotationIdentifier:()=>Fi,CodeAction:()=>f0,CodeActionContext:()=>p0,CodeActionKind:()=>g0,CodeActionTriggerKind:()=>Rg,CodeDescription:()=>UP,CodeLens:()=>m0,Color:()=>Bv,ColorInformation:()=>BP,ColorPresentation:()=>WP,Command:()=>Hl,CompletionItem:()=>i0,CompletionItemKind:()=>ut,CompletionItemLabelDetails:()=>t0,CompletionItemTag:()=>QP,CompletionList:()=>n0,CreateFile:()=>ca,DeleteFile:()=>as,Diagnostic:()=>Tg,DiagnosticRelatedInformation:()=>Wv,DiagnosticSeverity:()=>JP,DiagnosticTag:()=>$P,DocumentHighlight:()=>l0,DocumentHighlightKind:()=>a0,DocumentLink:()=>y0,DocumentSymbol:()=>Eg,DocumentUri:()=>NP,EOL:()=>Ehe,FoldingRange:()=>ZP,FoldingRangeKind:()=>YP,FormattingOptions:()=>b0,Hover:()=>r0,InlayHint:()=>P0,InlayHintKind:()=>Jv,InlayHintLabelPart:()=>$v,InlineValueContext:()=>k0,InlineValueEvaluatableExpression:()=>T0,InlineValueText:()=>S0,InlineValueVariableLookup:()=>D0,InsertReplaceEdit:()=>VP,InsertTextFormat:()=>KP,InsertTextMode:()=>e0,Location:()=>Xi,LocationLink:()=>qP,MarkedString:()=>Pg,MarkupContent:()=>Ac,MarkupKind:()=>Zv,OptionalVersionedTextDocumentIdentifier:()=>kg,ParameterInformation:()=>o0,Position:()=>Mt,Range:()=>Be,RenameFile:()=>ha,SelectionRange:()=>v0,SemanticTokenModifiers:()=>x0,SemanticTokenTypes:()=>w0,SemanticTokens:()=>C0,SignatureInformation:()=>s0,SymbolInformation:()=>h0,SymbolKind:()=>u0,SymbolTag:()=>c0,TextDocument:()=>R0,TextDocumentEdit:()=>ua,TextDocumentIdentifier:()=>XP,TextDocumentItem:()=>zP,TextEdit:()=>un,URI:()=>qv,VersionedTextDocumentIdentifier:()=>GP,WorkspaceChange:()=>Phe,WorkspaceEdit:()=>Yv,WorkspaceFolder:()=>E0,WorkspaceSymbol:()=>d0,integer:()=>HP,uinteger:()=>Dg});var NP,qv,HP,Dg,Mt,Be,Xi,qP,Bv,BP,WP,YP,ZP,Wv,JP,$P,UP,Tg,Hl,un,Nl,Fi,ss,ua,ca,ha,as,Yv,Hv,ZH,Phe,XP,GP,kg,zP,Zv,Ac,ut,KP,QP,VP,e0,t0,i0,n0,Pg,r0,o0,s0,a0,l0,u0,c0,h0,d0,Eg,g0,Rg,p0,f0,m0,b0,y0,v0,w0,x0,C0,S0,D0,T0,k0,Jv,$v,P0,E0,Ehe,R0,Rhe,A,Kn=k(()=>{"use strict";(function(n){function e(t){return typeof t=="string"}n.is=e})(NP||(NP={}));(function(n){function e(t){return typeof t=="string"}n.is=e})(qv||(qv={}));(function(n){n.MIN_VALUE=-2147483648,n.MAX_VALUE=2147483647;function e(t){return typeof t=="number"&&n.MIN_VALUE<=t&&t<=n.MAX_VALUE}n.is=e})(HP||(HP={}));(function(n){n.MIN_VALUE=0,n.MAX_VALUE=2147483647;function e(t){return typeof t=="number"&&n.MIN_VALUE<=t&&t<=n.MAX_VALUE}n.is=e})(Dg||(Dg={}));(function(n){function e(i,r){return i===Number.MAX_VALUE&&(i=Dg.MAX_VALUE),r===Number.MAX_VALUE&&(r=Dg.MAX_VALUE),{line:i,character:r}}n.create=e;function t(i){var r=i;return A.objectLiteral(r)&&A.uinteger(r.line)&&A.uinteger(r.character)}n.is=t})(Mt||(Mt={}));(function(n){function e(i,r,o,s){if(A.uinteger(i)&&A.uinteger(r)&&A.uinteger(o)&&A.uinteger(s))return{start:Mt.create(i,r),end:Mt.create(o,s)};if(Mt.is(i)&&Mt.is(r))return{start:i,end:r};throw new Error("Range#create called with invalid arguments[".concat(i,", ").concat(r,", ").concat(o,", ").concat(s,"]"))}n.create=e;function t(i){var r=i;return A.objectLiteral(r)&&Mt.is(r.start)&&Mt.is(r.end)}n.is=t})(Be||(Be={}));(function(n){function e(i,r){return{uri:i,range:r}}n.create=e;function t(i){var r=i;return A.objectLiteral(r)&&Be.is(r.range)&&(A.string(r.uri)||A.undefined(r.uri))}n.is=t})(Xi||(Xi={}));(function(n){function e(i,r,o,s){return{targetUri:i,targetRange:r,targetSelectionRange:o,originSelectionRange:s}}n.create=e;function t(i){var r=i;return A.objectLiteral(r)&&Be.is(r.targetRange)&&A.string(r.targetUri)&&Be.is(r.targetSelectionRange)&&(Be.is(r.originSelectionRange)||A.undefined(r.originSelectionRange))}n.is=t})(qP||(qP={}));(function(n){function e(i,r,o,s){return{red:i,green:r,blue:o,alpha:s}}n.create=e;function t(i){var r=i;return A.objectLiteral(r)&&A.numberRange(r.red,0,1)&&A.numberRange(r.green,0,1)&&A.numberRange(r.blue,0,1)&&A.numberRange(r.alpha,0,1)}n.is=t})(Bv||(Bv={}));(function(n){function e(i,r){return{range:i,color:r}}n.create=e;function t(i){var r=i;return A.objectLiteral(r)&&Be.is(r.range)&&Bv.is(r.color)}n.is=t})(BP||(BP={}));(function(n){function e(i,r,o){return{label:i,textEdit:r,additionalTextEdits:o}}n.create=e;function t(i){var r=i;return A.objectLiteral(r)&&A.string(r.label)&&(A.undefined(r.textEdit)||un.is(r))&&(A.undefined(r.additionalTextEdits)||A.typedArray(r.additionalTextEdits,un.is))}n.is=t})(WP||(WP={}));(function(n){n.Comment="comment",n.Imports="imports",n.Region="region"})(YP||(YP={}));(function(n){function e(i,r,o,s,a,l){var u={startLine:i,endLine:r};return A.defined(o)&&(u.startCharacter=o),A.defined(s)&&(u.endCharacter=s),A.defined(a)&&(u.kind=a),A.defined(l)&&(u.collapsedText=l),u}n.create=e;function t(i){var r=i;return A.objectLiteral(r)&&A.uinteger(r.startLine)&&A.uinteger(r.startLine)&&(A.undefined(r.startCharacter)||A.uinteger(r.startCharacter))&&(A.undefined(r.endCharacter)||A.uinteger(r.endCharacter))&&(A.undefined(r.kind)||A.string(r.kind))}n.is=t})(ZP||(ZP={}));(function(n){function e(i,r){return{location:i,message:r}}n.create=e;function t(i){var r=i;return A.defined(r)&&Xi.is(r.location)&&A.string(r.message)}n.is=t})(Wv||(Wv={}));(function(n){n.Error=1,n.Warning=2,n.Information=3,n.Hint=4})(JP||(JP={}));(function(n){n.Unnecessary=1,n.Deprecated=2})($P||($P={}));(function(n){function e(t){var i=t;return A.objectLiteral(i)&&A.string(i.href)}n.is=e})(UP||(UP={}));(function(n){function e(i,r,o,s,a,l){var u={range:i,message:r};return A.defined(o)&&(u.severity=o),A.defined(s)&&(u.code=s),A.defined(a)&&(u.source=a),A.defined(l)&&(u.relatedInformation=l),u}n.create=e;function t(i){var r,o=i;return A.defined(o)&&Be.is(o.range)&&A.string(o.message)&&(A.number(o.severity)||A.undefined(o.severity))&&(A.integer(o.code)||A.string(o.code)||A.undefined(o.code))&&(A.undefined(o.codeDescription)||A.string((r=o.codeDescription)===null||r===void 0?void 0:r.href))&&(A.string(o.source)||A.undefined(o.source))&&(A.undefined(o.relatedInformation)||A.typedArray(o.relatedInformation,Wv.is))}n.is=t})(Tg||(Tg={}));(function(n){function e(i,r){for(var o=[],s=2;s<arguments.length;s++)o[s-2]=arguments[s];var a={title:i,command:r};return A.defined(o)&&o.length>0&&(a.arguments=o),a}n.create=e;function t(i){var r=i;return A.defined(r)&&A.string(r.title)&&A.string(r.command)}n.is=t})(Hl||(Hl={}));(function(n){function e(o,s){return{range:o,newText:s}}n.replace=e;function t(o,s){return{range:{start:o,end:o},newText:s}}n.insert=t;function i(o){return{range:o,newText:""}}n.del=i;function r(o){var s=o;return A.objectLiteral(s)&&A.string(s.newText)&&Be.is(s.range)}n.is=r})(un||(un={}));(function(n){function e(i,r,o){var s={label:i};return r!==void 0&&(s.needsConfirmation=r),o!==void 0&&(s.description=o),s}n.create=e;function t(i){var r=i;return A.objectLiteral(r)&&A.string(r.label)&&(A.boolean(r.needsConfirmation)||r.needsConfirmation===void 0)&&(A.string(r.description)||r.description===void 0)}n.is=t})(Nl||(Nl={}));(function(n){function e(t){var i=t;return A.string(i)}n.is=e})(Fi||(Fi={}));(function(n){function e(o,s,a){return{range:o,newText:s,annotationId:a}}n.replace=e;function t(o,s,a){return{range:{start:o,end:o},newText:s,annotationId:a}}n.insert=t;function i(o,s){return{range:o,newText:"",annotationId:s}}n.del=i;function r(o){var s=o;return un.is(s)&&(Nl.is(s.annotationId)||Fi.is(s.annotationId))}n.is=r})(ss||(ss={}));(function(n){function e(i,r){return{textDocument:i,edits:r}}n.create=e;function t(i){var r=i;return A.defined(r)&&kg.is(r.textDocument)&&Array.isArray(r.edits)}n.is=t})(ua||(ua={}));(function(n){function e(i,r,o){var s={kind:"create",uri:i};return r!==void 0&&(r.overwrite!==void 0||r.ignoreIfExists!==void 0)&&(s.options=r),o!==void 0&&(s.annotationId=o),s}n.create=e;function t(i){var r=i;return r&&r.kind==="create"&&A.string(r.uri)&&(r.options===void 0||(r.options.overwrite===void 0||A.boolean(r.options.overwrite))&&(r.options.ignoreIfExists===void 0||A.boolean(r.options.ignoreIfExists)))&&(r.annotationId===void 0||Fi.is(r.annotationId))}n.is=t})(ca||(ca={}));(function(n){function e(i,r,o,s){var a={kind:"rename",oldUri:i,newUri:r};return o!==void 0&&(o.overwrite!==void 0||o.ignoreIfExists!==void 0)&&(a.options=o),s!==void 0&&(a.annotationId=s),a}n.create=e;function t(i){var r=i;return r&&r.kind==="rename"&&A.string(r.oldUri)&&A.string(r.newUri)&&(r.options===void 0||(r.options.overwrite===void 0||A.boolean(r.options.overwrite))&&(r.options.ignoreIfExists===void 0||A.boolean(r.options.ignoreIfExists)))&&(r.annotationId===void 0||Fi.is(r.annotationId))}n.is=t})(ha||(ha={}));(function(n){function e(i,r,o){var s={kind:"delete",uri:i};return r!==void 0&&(r.recursive!==void 0||r.ignoreIfNotExists!==void 0)&&(s.options=r),o!==void 0&&(s.annotationId=o),s}n.create=e;function t(i){var r=i;return r&&r.kind==="delete"&&A.string(r.uri)&&(r.options===void 0||(r.options.recursive===void 0||A.boolean(r.options.recursive))&&(r.options.ignoreIfNotExists===void 0||A.boolean(r.options.ignoreIfNotExists)))&&(r.annotationId===void 0||Fi.is(r.annotationId))}n.is=t})(as||(as={}));(function(n){function e(t){var i=t;return i&&(i.changes!==void 0||i.documentChanges!==void 0)&&(i.documentChanges===void 0||i.documentChanges.every(function(r){return A.string(r.kind)?ca.is(r)||ha.is(r)||as.is(r):ua.is(r)}))}n.is=e})(Yv||(Yv={}));Hv=function(){function n(e,t){this.edits=e,this.changeAnnotations=t}return n.prototype.insert=function(e,t,i){var r,o;if(i===void 0?r=un.insert(e,t):Fi.is(i)?(o=i,r=ss.insert(e,t,i)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(i),r=ss.insert(e,t,o)),this.edits.push(r),o!==void 0)return o},n.prototype.replace=function(e,t,i){var r,o;if(i===void 0?r=un.replace(e,t):Fi.is(i)?(o=i,r=ss.replace(e,t,i)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(i),r=ss.replace(e,t,o)),this.edits.push(r),o!==void 0)return o},n.prototype.delete=function(e,t){var i,r;if(t===void 0?i=un.del(e):Fi.is(t)?(r=t,i=ss.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(t),i=ss.del(e,r)),this.edits.push(i),r!==void 0)return r},n.prototype.add=function(e){this.edits.push(e)},n.prototype.all=function(){return this.edits},n.prototype.clear=function(){this.edits.splice(0,this.edits.length)},n.prototype.assertChangeAnnotations=function(e){if(e===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},n}(),ZH=function(){function n(e){this._annotations=e===void 0?Object.create(null):e,this._counter=0,this._size=0}return n.prototype.all=function(){return this._annotations},Object.defineProperty(n.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),n.prototype.manage=function(e,t){var i;if(Fi.is(e)?i=e:(i=this.nextId(),t=e),this._annotations[i]!==void 0)throw new Error("Id ".concat(i," is already in use."));if(t===void 0)throw new Error("No annotation provided for id ".concat(i));return this._annotations[i]=t,this._size++,i},n.prototype.nextId=function(){return this._counter++,this._counter.toString()},n}(),Phe=function(){function n(e){var t=this;this._textEditChanges=Object.create(null),e!==void 0?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new ZH(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach(function(i){if(ua.is(i)){var r=new Hv(i.edits,t._changeAnnotations);t._textEditChanges[i.textDocument.uri]=r}})):e.changes&&Object.keys(e.changes).forEach(function(i){var r=new Hv(e.changes[i]);t._textEditChanges[i]=r})):this._workspaceEdit={}}return Object.defineProperty(n.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),n.prototype.getTextEditChange=function(e){if(kg.is(e)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var t={uri:e.uri,version:e.version},i=this._textEditChanges[t.uri];if(!i){var r=[],o={textDocument:t,edits:r};this._workspaceEdit.documentChanges.push(o),i=new Hv(r,this._changeAnnotations),this._textEditChanges[t.uri]=i}return i}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var i=this._textEditChanges[e];if(!i){var r=[];this._workspaceEdit.changes[e]=r,i=new Hv(r),this._textEditChanges[e]=i}return i}},n.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new ZH,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},n.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},n.prototype.createFile=function(e,t,i){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var r;Nl.is(t)||Fi.is(t)?r=t:i=t;var o,s;if(r===void 0?o=ca.create(e,i):(s=Fi.is(r)?r:this._changeAnnotations.manage(r),o=ca.create(e,i,s)),this._workspaceEdit.documentChanges.push(o),s!==void 0)return s},n.prototype.renameFile=function(e,t,i,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var o;Nl.is(i)||Fi.is(i)?o=i:r=i;var s,a;if(o===void 0?s=ha.create(e,t,r):(a=Fi.is(o)?o:this._changeAnnotations.manage(o),s=ha.create(e,t,r,a)),this._workspaceEdit.documentChanges.push(s),a!==void 0)return a},n.prototype.deleteFile=function(e,t,i){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var r;Nl.is(t)||Fi.is(t)?r=t:i=t;var o,s;if(r===void 0?o=as.create(e,i):(s=Fi.is(r)?r:this._changeAnnotations.manage(r),o=as.create(e,i,s)),this._workspaceEdit.documentChanges.push(o),s!==void 0)return s},n}();(function(n){function e(i){return{uri:i}}n.create=e;function t(i){var r=i;return A.defined(r)&&A.string(r.uri)}n.is=t})(XP||(XP={}));(function(n){function e(i,r){return{uri:i,version:r}}n.create=e;function t(i){var r=i;return A.defined(r)&&A.string(r.uri)&&A.integer(r.version)}n.is=t})(GP||(GP={}));(function(n){function e(i,r){return{uri:i,version:r}}n.create=e;function t(i){var r=i;return A.defined(r)&&A.string(r.uri)&&(r.version===null||A.integer(r.version))}n.is=t})(kg||(kg={}));(function(n){function e(i,r,o,s){return{uri:i,languageId:r,version:o,text:s}}n.create=e;function t(i){var r=i;return A.defined(r)&&A.string(r.uri)&&A.string(r.languageId)&&A.integer(r.version)&&A.string(r.text)}n.is=t})(zP||(zP={}));(function(n){n.PlainText="plaintext",n.Markdown="markdown";function e(t){var i=t;return i===n.PlainText||i===n.Markdown}n.is=e})(Zv||(Zv={}));(function(n){function e(t){var i=t;return A.objectLiteral(t)&&Zv.is(i.kind)&&A.string(i.value)}n.is=e})(Ac||(Ac={}));(function(n){n.Text=1,n.Method=2,n.Function=3,n.Constructor=4,n.Field=5,n.Variable=6,n.Class=7,n.Interface=8,n.Module=9,n.Property=10,n.Unit=11,n.Value=12,n.Enum=13,n.Keyword=14,n.Snippet=15,n.Color=16,n.File=17,n.Reference=18,n.Folder=19,n.EnumMember=20,n.Constant=21,n.Struct=22,n.Event=23,n.Operator=24,n.TypeParameter=25})(ut||(ut={}));(function(n){n.PlainText=1,n.Snippet=2})(KP||(KP={}));(function(n){n.Deprecated=1})(QP||(QP={}));(function(n){function e(i,r,o){return{newText:i,insert:r,replace:o}}n.create=e;function t(i){var r=i;return r&&A.string(r.newText)&&Be.is(r.insert)&&Be.is(r.replace)}n.is=t})(VP||(VP={}));(function(n){n.asIs=1,n.adjustIndentation=2})(e0||(e0={}));(function(n){function e(t){var i=t;return i&&(A.string(i.detail)||i.detail===void 0)&&(A.string(i.description)||i.description===void 0)}n.is=e})(t0||(t0={}));(function(n){function e(t){return{label:t}}n.create=e})(i0||(i0={}));(function(n){function e(t,i){return{items:t||[],isIncomplete:!!i}}n.create=e})(n0||(n0={}));(function(n){function e(i){return i.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}n.fromPlainText=e;function t(i){var r=i;return A.string(r)||A.objectLiteral(r)&&A.string(r.language)&&A.string(r.value)}n.is=t})(Pg||(Pg={}));(function(n){function e(t){var i=t;return!!i&&A.objectLiteral(i)&&(Ac.is(i.contents)||Pg.is(i.contents)||A.typedArray(i.contents,Pg.is))&&(t.range===void 0||Be.is(t.range))}n.is=e})(r0||(r0={}));(function(n){function e(t,i){return i?{label:t,documentation:i}:{label:t}}n.create=e})(o0||(o0={}));(function(n){function e(t,i){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];var s={label:t};return A.defined(i)&&(s.documentation=i),A.defined(r)?s.parameters=r:s.parameters=[],s}n.create=e})(s0||(s0={}));(function(n){n.Text=1,n.Read=2,n.Write=3})(a0||(a0={}));(function(n){function e(t,i){var r={range:t};return A.number(i)&&(r.kind=i),r}n.create=e})(l0||(l0={}));(function(n){n.File=1,n.Module=2,n.Namespace=3,n.Package=4,n.Class=5,n.Method=6,n.Property=7,n.Field=8,n.Constructor=9,n.Enum=10,n.Interface=11,n.Function=12,n.Variable=13,n.Constant=14,n.String=15,n.Number=16,n.Boolean=17,n.Array=18,n.Object=19,n.Key=20,n.Null=21,n.EnumMember=22,n.Struct=23,n.Event=24,n.Operator=25,n.TypeParameter=26})(u0||(u0={}));(function(n){n.Deprecated=1})(c0||(c0={}));(function(n){function e(t,i,r,o,s){var a={name:t,kind:i,location:{uri:o,range:r}};return s&&(a.containerName=s),a}n.create=e})(h0||(h0={}));(function(n){function e(t,i,r,o){return o!==void 0?{name:t,kind:i,location:{uri:r,range:o}}:{name:t,kind:i,location:{uri:r}}}n.create=e})(d0||(d0={}));(function(n){function e(i,r,o,s,a,l){var u={name:i,detail:r,kind:o,range:s,selectionRange:a};return l!==void 0&&(u.children=l),u}n.create=e;function t(i){var r=i;return r&&A.string(r.name)&&A.number(r.kind)&&Be.is(r.range)&&Be.is(r.selectionRange)&&(r.detail===void 0||A.string(r.detail))&&(r.deprecated===void 0||A.boolean(r.deprecated))&&(r.children===void 0||Array.isArray(r.children))&&(r.tags===void 0||Array.isArray(r.tags))}n.is=t})(Eg||(Eg={}));(function(n){n.Empty="",n.QuickFix="quickfix",n.Refactor="refactor",n.RefactorExtract="refactor.extract",n.RefactorInline="refactor.inline",n.RefactorRewrite="refactor.rewrite",n.Source="source",n.SourceOrganizeImports="source.organizeImports",n.SourceFixAll="source.fixAll"})(g0||(g0={}));(function(n){n.Invoked=1,n.Automatic=2})(Rg||(Rg={}));(function(n){function e(i,r,o){var s={diagnostics:i};return r!=null&&(s.only=r),o!=null&&(s.triggerKind=o),s}n.create=e;function t(i){var r=i;return A.defined(r)&&A.typedArray(r.diagnostics,Tg.is)&&(r.only===void 0||A.typedArray(r.only,A.string))&&(r.triggerKind===void 0||r.triggerKind===Rg.Invoked||r.triggerKind===Rg.Automatic)}n.is=t})(p0||(p0={}));(function(n){function e(i,r,o){var s={title:i},a=!0;return typeof r=="string"?(a=!1,s.kind=r):Hl.is(r)?s.command=r:s.edit=r,a&&o!==void 0&&(s.kind=o),s}n.create=e;function t(i){var r=i;return r&&A.string(r.title)&&(r.diagnostics===void 0||A.typedArray(r.diagnostics,Tg.is))&&(r.kind===void 0||A.string(r.kind))&&(r.edit!==void 0||r.command!==void 0)&&(r.command===void 0||Hl.is(r.command))&&(r.isPreferred===void 0||A.boolean(r.isPreferred))&&(r.edit===void 0||Yv.is(r.edit))}n.is=t})(f0||(f0={}));(function(n){function e(i,r){var o={range:i};return A.defined(r)&&(o.data=r),o}n.create=e;function t(i){var r=i;return A.defined(r)&&Be.is(r.range)&&(A.undefined(r.command)||Hl.is(r.command))}n.is=t})(m0||(m0={}));(function(n){function e(i,r){return{tabSize:i,insertSpaces:r}}n.create=e;function t(i){var r=i;return A.defined(r)&&A.uinteger(r.tabSize)&&A.boolean(r.insertSpaces)}n.is=t})(b0||(b0={}));(function(n){function e(i,r,o){return{range:i,target:r,data:o}}n.create=e;function t(i){var r=i;return A.defined(r)&&Be.is(r.range)&&(A.undefined(r.target)||A.string(r.target))}n.is=t})(y0||(y0={}));(function(n){function e(i,r){return{range:i,parent:r}}n.create=e;function t(i){var r=i;return A.objectLiteral(r)&&Be.is(r.range)&&(r.parent===void 0||n.is(r.parent))}n.is=t})(v0||(v0={}));(function(n){n.namespace="namespace",n.type="type",n.class="class",n.enum="enum",n.interface="interface",n.struct="struct",n.typeParameter="typeParameter",n.parameter="parameter",n.variable="variable",n.property="property",n.enumMember="enumMember",n.event="event",n.function="function",n.method="method",n.macro="macro",n.keyword="keyword",n.modifier="modifier",n.comment="comment",n.string="string",n.number="number",n.regexp="regexp",n.operator="operator",n.decorator="decorator"})(w0||(w0={}));(function(n){n.declaration="declaration",n.definition="definition",n.readonly="readonly",n.static="static",n.deprecated="deprecated",n.abstract="abstract",n.async="async",n.modification="modification",n.documentation="documentation",n.defaultLibrary="defaultLibrary"})(x0||(x0={}));(function(n){function e(t){var i=t;return A.objectLiteral(i)&&(i.resultId===void 0||typeof i.resultId=="string")&&Array.isArray(i.data)&&(i.data.length===0||typeof i.data[0]=="number")}n.is=e})(C0||(C0={}));(function(n){function e(i,r){return{range:i,text:r}}n.create=e;function t(i){var r=i;return r!=null&&Be.is(r.range)&&A.string(r.text)}n.is=t})(S0||(S0={}));(function(n){function e(i,r,o){return{range:i,variableName:r,caseSensitiveLookup:o}}n.create=e;function t(i){var r=i;return r!=null&&Be.is(r.range)&&A.boolean(r.caseSensitiveLookup)&&(A.string(r.variableName)||r.variableName===void 0)}n.is=t})(D0||(D0={}));(function(n){function e(i,r){return{range:i,expression:r}}n.create=e;function t(i){var r=i;return r!=null&&Be.is(r.range)&&(A.string(r.expression)||r.expression===void 0)}n.is=t})(T0||(T0={}));(function(n){function e(i,r){return{frameId:i,stoppedLocation:r}}n.create=e;function t(i){var r=i;return A.defined(r)&&Be.is(i.stoppedLocation)}n.is=t})(k0||(k0={}));(function(n){n.Type=1,n.Parameter=2;function e(t){return t===1||t===2}n.is=e})(Jv||(Jv={}));(function(n){function e(i){return{value:i}}n.create=e;function t(i){var r=i;return A.objectLiteral(r)&&(r.tooltip===void 0||A.string(r.tooltip)||Ac.is(r.tooltip))&&(r.location===void 0||Xi.is(r.location))&&(r.command===void 0||Hl.is(r.command))}n.is=t})($v||($v={}));(function(n){function e(i,r,o){var s={position:i,label:r};return o!==void 0&&(s.kind=o),s}n.create=e;function t(i){var r=i;return A.objectLiteral(r)&&Mt.is(r.position)&&(A.string(r.label)||A.typedArray(r.label,$v.is))&&(r.kind===void 0||Jv.is(r.kind))&&r.textEdits===void 0||A.typedArray(r.textEdits,un.is)&&(r.tooltip===void 0||A.string(r.tooltip)||Ac.is(r.tooltip))&&(r.paddingLeft===void 0||A.boolean(r.paddingLeft))&&(r.paddingRight===void 0||A.boolean(r.paddingRight))}n.is=t})(P0||(P0={}));(function(n){function e(t){var i=t;return A.objectLiteral(i)&&qv.is(i.uri)&&A.string(i.name)}n.is=e})(E0||(E0={}));Ehe=[`
|
||
`,`\r
|
||
`,"\r"];(function(n){function e(o,s,a,l){return new Rhe(o,s,a,l)}n.create=e;function t(o){var s=o;return!!(A.defined(s)&&A.string(s.uri)&&(A.undefined(s.languageId)||A.string(s.languageId))&&A.uinteger(s.lineCount)&&A.func(s.getText)&&A.func(s.positionAt)&&A.func(s.offsetAt))}n.is=t;function i(o,s){for(var a=o.getText(),l=r(s,function(p,f){var m=p.range.start.line-f.range.start.line;return m===0?p.range.start.character-f.range.start.character:m}),u=a.length,c=l.length-1;c>=0;c--){var h=l[c],d=o.offsetAt(h.range.start),g=o.offsetAt(h.range.end);if(g<=u)a=a.substring(0,d)+h.newText+a.substring(g,a.length);else throw new Error("Overlapping edit");u=d}return a}n.applyEdits=i;function r(o,s){if(o.length<=1)return o;var a=o.length/2|0,l=o.slice(0,a),u=o.slice(a);r(l,s),r(u,s);for(var c=0,h=0,d=0;c<l.length&&h<u.length;){var g=s(l[c],u[h]);g<=0?o[d++]=l[c++]:o[d++]=u[h++]}for(;c<l.length;)o[d++]=l[c++];for(;h<u.length;)o[d++]=u[h++];return o}})(R0||(R0={}));Rhe=function(){function n(e,t,i,r){this._uri=e,this._languageId=t,this._version=i,this._content=r,this._lineOffsets=void 0}return Object.defineProperty(n.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),n.prototype.getText=function(e){if(e){var t=this.offsetAt(e.start),i=this.offsetAt(e.end);return this._content.substring(t,i)}return this._content},n.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0},n.prototype.getLineOffsets=function(){if(this._lineOffsets===void 0){for(var e=[],t=this._content,i=!0,r=0;r<t.length;r++){i&&(e.push(r),i=!1);var o=t.charAt(r);i=o==="\r"||o===`
|
||
`,o==="\r"&&r+1<t.length&&t.charAt(r+1)===`
|
||
`&&r++}i&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},n.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),i=0,r=t.length;if(r===0)return Mt.create(0,e);for(;i<r;){var o=Math.floor((i+r)/2);t[o]>e?r=o:i=o+1}var s=i-1;return Mt.create(s,e-t[s])},n.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var i=t[e.line],r=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(i+e.character,r),i)},Object.defineProperty(n.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),n}();(function(n){var e=Object.prototype.toString;function t(g){return typeof g<"u"}n.defined=t;function i(g){return typeof g>"u"}n.undefined=i;function r(g){return g===!0||g===!1}n.boolean=r;function o(g){return e.call(g)==="[object String]"}n.string=o;function s(g){return e.call(g)==="[object Number]"}n.number=s;function a(g,p,f){return e.call(g)==="[object Number]"&&p<=g&&g<=f}n.numberRange=a;function l(g){return e.call(g)==="[object Number]"&&-2147483648<=g&&g<=2147483647}n.integer=l;function u(g){return e.call(g)==="[object Number]"&&0<=g&&g<=2147483647}n.uinteger=u;function c(g){return e.call(g)==="[object Function]"}n.func=c;function h(g){return g!==null&&typeof g=="object"}n.objectLiteral=h;function d(g,p){return Array.isArray(g)&&g.every(p)}n.typedArray=d})(A||(A={}))});var Ot=y(cn=>{"use strict";Object.defineProperty(cn,"__esModule",{value:!0});cn.ProtocolNotificationType=cn.ProtocolNotificationType0=cn.ProtocolRequestType=cn.ProtocolRequestType0=cn.RegistrationType=cn.MessageDirection=void 0;var Nc=Al(),_he;(function(n){n.clientToServer="clientToServer",n.serverToClient="serverToClient",n.both="both"})(_he=cn.MessageDirection||(cn.MessageDirection={}));var _0=class{constructor(e){this.method=e}};cn.RegistrationType=_0;var L0=class extends Nc.RequestType0{constructor(e){super(e)}};cn.ProtocolRequestType0=L0;var I0=class extends Nc.RequestType{constructor(e){super(e,Nc.ParameterStructures.byName)}};cn.ProtocolRequestType=I0;var F0=class extends Nc.NotificationType0{constructor(e){super(e)}};cn.ProtocolNotificationType0=F0;var j0=class extends Nc.NotificationType{constructor(e){super(e,Nc.ParameterStructures.byName)}};cn.ProtocolNotificationType=j0});var Xv=y(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.objectLiteral=Vt.typedArray=Vt.stringArray=Vt.array=Vt.func=Vt.error=Vt.number=Vt.string=Vt.boolean=void 0;function Lhe(n){return n===!0||n===!1}Vt.boolean=Lhe;function JH(n){return typeof n=="string"||n instanceof String}Vt.string=JH;function Ihe(n){return typeof n=="number"||n instanceof Number}Vt.number=Ihe;function Fhe(n){return n instanceof Error}Vt.error=Fhe;function jhe(n){return typeof n=="function"}Vt.func=jhe;function $H(n){return Array.isArray(n)}Vt.array=$H;function Mhe(n){return $H(n)&&n.every(e=>JH(e))}Vt.stringArray=Mhe;function Ohe(n,e){return Array.isArray(n)&&n.every(e)}Vt.typedArray=Ohe;function Ahe(n){return n!==null&&typeof n=="object"}Vt.objectLiteral=Ahe});var XH=y(_g=>{"use strict";Object.defineProperty(_g,"__esModule",{value:!0});_g.ImplementationRequest=void 0;var UH=Ot(),Nhe;(function(n){n.method="textDocument/implementation",n.messageDirection=UH.MessageDirection.clientToServer,n.type=new UH.ProtocolRequestType(n.method)})(Nhe=_g.ImplementationRequest||(_g.ImplementationRequest={}))});var zH=y(Lg=>{"use strict";Object.defineProperty(Lg,"__esModule",{value:!0});Lg.TypeDefinitionRequest=void 0;var GH=Ot(),Hhe;(function(n){n.method="textDocument/typeDefinition",n.messageDirection=GH.MessageDirection.clientToServer,n.type=new GH.ProtocolRequestType(n.method)})(Hhe=Lg.TypeDefinitionRequest||(Lg.TypeDefinitionRequest={}))});var KH=y(da=>{"use strict";Object.defineProperty(da,"__esModule",{value:!0});da.DidChangeWorkspaceFoldersNotification=da.WorkspaceFoldersRequest=void 0;var Gv=Ot(),qhe;(function(n){n.method="workspace/workspaceFolders",n.messageDirection=Gv.MessageDirection.serverToClient,n.type=new Gv.ProtocolRequestType0(n.method)})(qhe=da.WorkspaceFoldersRequest||(da.WorkspaceFoldersRequest={}));var Bhe;(function(n){n.method="workspace/didChangeWorkspaceFolders",n.messageDirection=Gv.MessageDirection.clientToServer,n.type=new Gv.ProtocolNotificationType(n.method)})(Bhe=da.DidChangeWorkspaceFoldersNotification||(da.DidChangeWorkspaceFoldersNotification={}))});var VH=y(Ig=>{"use strict";Object.defineProperty(Ig,"__esModule",{value:!0});Ig.ConfigurationRequest=void 0;var QH=Ot(),Whe;(function(n){n.method="workspace/configuration",n.messageDirection=QH.MessageDirection.serverToClient,n.type=new QH.ProtocolRequestType(n.method)})(Whe=Ig.ConfigurationRequest||(Ig.ConfigurationRequest={}))});var eq=y(ga=>{"use strict";Object.defineProperty(ga,"__esModule",{value:!0});ga.ColorPresentationRequest=ga.DocumentColorRequest=void 0;var zv=Ot(),Yhe;(function(n){n.method="textDocument/documentColor",n.messageDirection=zv.MessageDirection.clientToServer,n.type=new zv.ProtocolRequestType(n.method)})(Yhe=ga.DocumentColorRequest||(ga.DocumentColorRequest={}));var Zhe;(function(n){n.method="textDocument/colorPresentation",n.messageDirection=zv.MessageDirection.clientToServer,n.type=new zv.ProtocolRequestType(n.method)})(Zhe=ga.ColorPresentationRequest||(ga.ColorPresentationRequest={}))});var iq=y(Fg=>{"use strict";Object.defineProperty(Fg,"__esModule",{value:!0});Fg.FoldingRangeRequest=void 0;var tq=Ot(),Jhe;(function(n){n.method="textDocument/foldingRange",n.messageDirection=tq.MessageDirection.clientToServer,n.type=new tq.ProtocolRequestType(n.method)})(Jhe=Fg.FoldingRangeRequest||(Fg.FoldingRangeRequest={}))});var rq=y(jg=>{"use strict";Object.defineProperty(jg,"__esModule",{value:!0});jg.DeclarationRequest=void 0;var nq=Ot(),$he;(function(n){n.method="textDocument/declaration",n.messageDirection=nq.MessageDirection.clientToServer,n.type=new nq.ProtocolRequestType(n.method)})($he=jg.DeclarationRequest||(jg.DeclarationRequest={}))});var sq=y(Mg=>{"use strict";Object.defineProperty(Mg,"__esModule",{value:!0});Mg.SelectionRangeRequest=void 0;var oq=Ot(),Uhe;(function(n){n.method="textDocument/selectionRange",n.messageDirection=oq.MessageDirection.clientToServer,n.type=new oq.ProtocolRequestType(n.method)})(Uhe=Mg.SelectionRangeRequest||(Mg.SelectionRangeRequest={}))});var aq=y($r=>{"use strict";Object.defineProperty($r,"__esModule",{value:!0});$r.WorkDoneProgressCancelNotification=$r.WorkDoneProgressCreateRequest=$r.WorkDoneProgress=void 0;var Xhe=Al(),Kv=Ot(),Ghe;(function(n){n.type=new Xhe.ProgressType;function e(t){return t===n.type}n.is=e})(Ghe=$r.WorkDoneProgress||($r.WorkDoneProgress={}));var zhe;(function(n){n.method="window/workDoneProgress/create",n.messageDirection=Kv.MessageDirection.serverToClient,n.type=new Kv.ProtocolRequestType(n.method)})(zhe=$r.WorkDoneProgressCreateRequest||($r.WorkDoneProgressCreateRequest={}));var Khe;(function(n){n.method="window/workDoneProgress/cancel",n.messageDirection=Kv.MessageDirection.clientToServer,n.type=new Kv.ProtocolNotificationType(n.method)})(Khe=$r.WorkDoneProgressCancelNotification||($r.WorkDoneProgressCancelNotification={}))});var lq=y(Ur=>{"use strict";Object.defineProperty(Ur,"__esModule",{value:!0});Ur.CallHierarchyOutgoingCallsRequest=Ur.CallHierarchyIncomingCallsRequest=Ur.CallHierarchyPrepareRequest=void 0;var Hc=Ot(),Qhe;(function(n){n.method="textDocument/prepareCallHierarchy",n.messageDirection=Hc.MessageDirection.clientToServer,n.type=new Hc.ProtocolRequestType(n.method)})(Qhe=Ur.CallHierarchyPrepareRequest||(Ur.CallHierarchyPrepareRequest={}));var Vhe;(function(n){n.method="callHierarchy/incomingCalls",n.messageDirection=Hc.MessageDirection.clientToServer,n.type=new Hc.ProtocolRequestType(n.method)})(Vhe=Ur.CallHierarchyIncomingCallsRequest||(Ur.CallHierarchyIncomingCallsRequest={}));var ede;(function(n){n.method="callHierarchy/outgoingCalls",n.messageDirection=Hc.MessageDirection.clientToServer,n.type=new Hc.ProtocolRequestType(n.method)})(ede=Ur.CallHierarchyOutgoingCallsRequest||(Ur.CallHierarchyOutgoingCallsRequest={}))});var uq=y(ei=>{"use strict";Object.defineProperty(ei,"__esModule",{value:!0});ei.SemanticTokensRefreshRequest=ei.SemanticTokensRangeRequest=ei.SemanticTokensDeltaRequest=ei.SemanticTokensRequest=ei.SemanticTokensRegistrationType=ei.TokenFormat=void 0;var ls=Ot(),tde;(function(n){n.Relative="relative"})(tde=ei.TokenFormat||(ei.TokenFormat={}));var Qv;(function(n){n.method="textDocument/semanticTokens",n.type=new ls.RegistrationType(n.method)})(Qv=ei.SemanticTokensRegistrationType||(ei.SemanticTokensRegistrationType={}));var ide;(function(n){n.method="textDocument/semanticTokens/full",n.messageDirection=ls.MessageDirection.clientToServer,n.type=new ls.ProtocolRequestType(n.method),n.registrationMethod=Qv.method})(ide=ei.SemanticTokensRequest||(ei.SemanticTokensRequest={}));var nde;(function(n){n.method="textDocument/semanticTokens/full/delta",n.messageDirection=ls.MessageDirection.clientToServer,n.type=new ls.ProtocolRequestType(n.method),n.registrationMethod=Qv.method})(nde=ei.SemanticTokensDeltaRequest||(ei.SemanticTokensDeltaRequest={}));var rde;(function(n){n.method="textDocument/semanticTokens/range",n.messageDirection=ls.MessageDirection.clientToServer,n.type=new ls.ProtocolRequestType(n.method),n.registrationMethod=Qv.method})(rde=ei.SemanticTokensRangeRequest||(ei.SemanticTokensRangeRequest={}));var ode;(function(n){n.method="workspace/semanticTokens/refresh",n.messageDirection=ls.MessageDirection.clientToServer,n.type=new ls.ProtocolRequestType0(n.method)})(ode=ei.SemanticTokensRefreshRequest||(ei.SemanticTokensRefreshRequest={}))});var hq=y(Og=>{"use strict";Object.defineProperty(Og,"__esModule",{value:!0});Og.ShowDocumentRequest=void 0;var cq=Ot(),sde;(function(n){n.method="window/showDocument",n.messageDirection=cq.MessageDirection.serverToClient,n.type=new cq.ProtocolRequestType(n.method)})(sde=Og.ShowDocumentRequest||(Og.ShowDocumentRequest={}))});var gq=y(Ag=>{"use strict";Object.defineProperty(Ag,"__esModule",{value:!0});Ag.LinkedEditingRangeRequest=void 0;var dq=Ot(),ade;(function(n){n.method="textDocument/linkedEditingRange",n.messageDirection=dq.MessageDirection.clientToServer,n.type=new dq.ProtocolRequestType(n.method)})(ade=Ag.LinkedEditingRangeRequest||(Ag.LinkedEditingRangeRequest={}))});var pq=y(At=>{"use strict";Object.defineProperty(At,"__esModule",{value:!0});At.WillDeleteFilesRequest=At.DidDeleteFilesNotification=At.DidRenameFilesNotification=At.WillRenameFilesRequest=At.DidCreateFilesNotification=At.WillCreateFilesRequest=At.FileOperationPatternKind=void 0;var vr=Ot(),lde;(function(n){n.file="file",n.folder="folder"})(lde=At.FileOperationPatternKind||(At.FileOperationPatternKind={}));var ude;(function(n){n.method="workspace/willCreateFiles",n.messageDirection=vr.MessageDirection.clientToServer,n.type=new vr.ProtocolRequestType(n.method)})(ude=At.WillCreateFilesRequest||(At.WillCreateFilesRequest={}));var cde;(function(n){n.method="workspace/didCreateFiles",n.messageDirection=vr.MessageDirection.clientToServer,n.type=new vr.ProtocolNotificationType(n.method)})(cde=At.DidCreateFilesNotification||(At.DidCreateFilesNotification={}));var hde;(function(n){n.method="workspace/willRenameFiles",n.messageDirection=vr.MessageDirection.clientToServer,n.type=new vr.ProtocolRequestType(n.method)})(hde=At.WillRenameFilesRequest||(At.WillRenameFilesRequest={}));var dde;(function(n){n.method="workspace/didRenameFiles",n.messageDirection=vr.MessageDirection.clientToServer,n.type=new vr.ProtocolNotificationType(n.method)})(dde=At.DidRenameFilesNotification||(At.DidRenameFilesNotification={}));var gde;(function(n){n.method="workspace/didDeleteFiles",n.messageDirection=vr.MessageDirection.clientToServer,n.type=new vr.ProtocolNotificationType(n.method)})(gde=At.DidDeleteFilesNotification||(At.DidDeleteFilesNotification={}));var pde;(function(n){n.method="workspace/willDeleteFiles",n.messageDirection=vr.MessageDirection.clientToServer,n.type=new vr.ProtocolRequestType(n.method)})(pde=At.WillDeleteFilesRequest||(At.WillDeleteFilesRequest={}))});var mq=y(Xr=>{"use strict";Object.defineProperty(Xr,"__esModule",{value:!0});Xr.MonikerRequest=Xr.MonikerKind=Xr.UniquenessLevel=void 0;var fq=Ot(),fde;(function(n){n.document="document",n.project="project",n.group="group",n.scheme="scheme",n.global="global"})(fde=Xr.UniquenessLevel||(Xr.UniquenessLevel={}));var mde;(function(n){n.$import="import",n.$export="export",n.local="local"})(mde=Xr.MonikerKind||(Xr.MonikerKind={}));var bde;(function(n){n.method="textDocument/moniker",n.messageDirection=fq.MessageDirection.clientToServer,n.type=new fq.ProtocolRequestType(n.method)})(bde=Xr.MonikerRequest||(Xr.MonikerRequest={}))});var bq=y(Gr=>{"use strict";Object.defineProperty(Gr,"__esModule",{value:!0});Gr.TypeHierarchySubtypesRequest=Gr.TypeHierarchySupertypesRequest=Gr.TypeHierarchyPrepareRequest=void 0;var qc=Ot(),yde;(function(n){n.method="textDocument/prepareTypeHierarchy",n.messageDirection=qc.MessageDirection.clientToServer,n.type=new qc.ProtocolRequestType(n.method)})(yde=Gr.TypeHierarchyPrepareRequest||(Gr.TypeHierarchyPrepareRequest={}));var vde;(function(n){n.method="typeHierarchy/supertypes",n.messageDirection=qc.MessageDirection.clientToServer,n.type=new qc.ProtocolRequestType(n.method)})(vde=Gr.TypeHierarchySupertypesRequest||(Gr.TypeHierarchySupertypesRequest={}));var wde;(function(n){n.method="typeHierarchy/subtypes",n.messageDirection=qc.MessageDirection.clientToServer,n.type=new qc.ProtocolRequestType(n.method)})(wde=Gr.TypeHierarchySubtypesRequest||(Gr.TypeHierarchySubtypesRequest={}))});var yq=y(pa=>{"use strict";Object.defineProperty(pa,"__esModule",{value:!0});pa.InlineValueRefreshRequest=pa.InlineValueRequest=void 0;var Vv=Ot(),xde;(function(n){n.method="textDocument/inlineValue",n.messageDirection=Vv.MessageDirection.clientToServer,n.type=new Vv.ProtocolRequestType(n.method)})(xde=pa.InlineValueRequest||(pa.InlineValueRequest={}));var Cde;(function(n){n.method="workspace/inlineValue/refresh",n.messageDirection=Vv.MessageDirection.clientToServer,n.type=new Vv.ProtocolRequestType0(n.method)})(Cde=pa.InlineValueRefreshRequest||(pa.InlineValueRefreshRequest={}))});var vq=y(zr=>{"use strict";Object.defineProperty(zr,"__esModule",{value:!0});zr.InlayHintRefreshRequest=zr.InlayHintResolveRequest=zr.InlayHintRequest=void 0;var Bc=Ot(),Sde;(function(n){n.method="textDocument/inlayHint",n.messageDirection=Bc.MessageDirection.clientToServer,n.type=new Bc.ProtocolRequestType(n.method)})(Sde=zr.InlayHintRequest||(zr.InlayHintRequest={}));var Dde;(function(n){n.method="inlayHint/resolve",n.messageDirection=Bc.MessageDirection.clientToServer,n.type=new Bc.ProtocolRequestType(n.method)})(Dde=zr.InlayHintResolveRequest||(zr.InlayHintResolveRequest={}));var Tde;(function(n){n.method="workspace/inlayHint/refresh",n.messageDirection=Bc.MessageDirection.clientToServer,n.type=new Bc.ProtocolRequestType0(n.method)})(Tde=zr.InlayHintRefreshRequest||(zr.InlayHintRefreshRequest={}))});var xq=y(ji=>{"use strict";Object.defineProperty(ji,"__esModule",{value:!0});ji.DiagnosticRefreshRequest=ji.WorkspaceDiagnosticRequest=ji.DocumentDiagnosticRequest=ji.DocumentDiagnosticReportKind=ji.DiagnosticServerCancellationData=void 0;var wq=Al(),kde=Xv(),Wc=Ot(),Pde;(function(n){function e(t){let i=t;return i&&kde.boolean(i.retriggerRequest)}n.is=e})(Pde=ji.DiagnosticServerCancellationData||(ji.DiagnosticServerCancellationData={}));var Ede;(function(n){n.Full="full",n.Unchanged="unchanged"})(Ede=ji.DocumentDiagnosticReportKind||(ji.DocumentDiagnosticReportKind={}));var Rde;(function(n){n.method="textDocument/diagnostic",n.messageDirection=Wc.MessageDirection.clientToServer,n.type=new Wc.ProtocolRequestType(n.method),n.partialResult=new wq.ProgressType})(Rde=ji.DocumentDiagnosticRequest||(ji.DocumentDiagnosticRequest={}));var _de;(function(n){n.method="workspace/diagnostic",n.messageDirection=Wc.MessageDirection.clientToServer,n.type=new Wc.ProtocolRequestType(n.method),n.partialResult=new wq.ProgressType})(_de=ji.WorkspaceDiagnosticRequest||(ji.WorkspaceDiagnosticRequest={}));var Lde;(function(n){n.method="workspace/diagnostic/refresh",n.messageDirection=Wc.MessageDirection.clientToServer,n.type=new Wc.ProtocolRequestType0(n.method)})(Lde=ji.DiagnosticRefreshRequest||(ji.DiagnosticRefreshRequest={}))});var Dq=y(Ge=>{"use strict";Object.defineProperty(Ge,"__esModule",{value:!0});Ge.DidCloseNotebookDocumentNotification=Ge.DidSaveNotebookDocumentNotification=Ge.DidChangeNotebookDocumentNotification=Ge.NotebookCellArrayChange=Ge.DidOpenNotebookDocumentNotification=Ge.NotebookDocumentSyncRegistrationType=Ge.NotebookDocument=Ge.NotebookCell=Ge.ExecutionSummary=Ge.NotebookCellKind=void 0;var Ng=(Kn(),Co(Uv)),Kr=Xv(),Po=Ot(),Cq;(function(n){n.Markup=1,n.Code=2;function e(t){return t===1||t===2}n.is=e})(Cq=Ge.NotebookCellKind||(Ge.NotebookCellKind={}));var Sq;(function(n){function e(r,o){let s={executionOrder:r};return(o===!0||o===!1)&&(s.success=o),s}n.create=e;function t(r){let o=r;return Kr.objectLiteral(o)&&Ng.uinteger.is(o.executionOrder)&&(o.success===void 0||Kr.boolean(o.success))}n.is=t;function i(r,o){return r===o?!0:r==null||o===null||o===void 0?!1:r.executionOrder===o.executionOrder&&r.success===o.success}n.equals=i})(Sq=Ge.ExecutionSummary||(Ge.ExecutionSummary={}));var M0;(function(n){function e(o,s){return{kind:o,document:s}}n.create=e;function t(o){let s=o;return Kr.objectLiteral(s)&&Cq.is(s.kind)&&Ng.DocumentUri.is(s.document)&&(s.metadata===void 0||Kr.objectLiteral(s.metadata))}n.is=t;function i(o,s){let a=new Set;return o.document!==s.document&&a.add("document"),o.kind!==s.kind&&a.add("kind"),o.executionSummary!==s.executionSummary&&a.add("executionSummary"),(o.metadata!==void 0||s.metadata!==void 0)&&!r(o.metadata,s.metadata)&&a.add("metadata"),(o.executionSummary!==void 0||s.executionSummary!==void 0)&&!Sq.equals(o.executionSummary,s.executionSummary)&&a.add("executionSummary"),a}n.diff=i;function r(o,s){if(o===s)return!0;if(o==null||s===null||s===void 0||typeof o!=typeof s||typeof o!="object")return!1;let a=Array.isArray(o),l=Array.isArray(s);if(a!==l)return!1;if(a&&l){if(o.length!==s.length)return!1;for(let u=0;u<o.length;u++)if(!r(o[u],s[u]))return!1}if(Kr.objectLiteral(o)&&Kr.objectLiteral(s)){let u=Object.keys(o),c=Object.keys(s);if(u.length!==c.length||(u.sort(),c.sort(),!r(u,c)))return!1;for(let h=0;h<u.length;h++){let d=u[h];if(!r(o[d],s[d]))return!1}}return!0}})(M0=Ge.NotebookCell||(Ge.NotebookCell={}));var Ide;(function(n){function e(i,r,o,s){return{uri:i,notebookType:r,version:o,cells:s}}n.create=e;function t(i){let r=i;return Kr.objectLiteral(r)&&Kr.string(r.uri)&&Ng.integer.is(r.version)&&Kr.typedArray(r.cells,M0.is)}n.is=t})(Ide=Ge.NotebookDocument||(Ge.NotebookDocument={}));var Hg;(function(n){n.method="notebookDocument/sync",n.messageDirection=Po.MessageDirection.clientToServer,n.type=new Po.RegistrationType(n.method)})(Hg=Ge.NotebookDocumentSyncRegistrationType||(Ge.NotebookDocumentSyncRegistrationType={}));var Fde;(function(n){n.method="notebookDocument/didOpen",n.messageDirection=Po.MessageDirection.clientToServer,n.type=new Po.ProtocolNotificationType(n.method),n.registrationMethod=Hg.method})(Fde=Ge.DidOpenNotebookDocumentNotification||(Ge.DidOpenNotebookDocumentNotification={}));var jde;(function(n){function e(i){let r=i;return Kr.objectLiteral(r)&&Ng.uinteger.is(r.start)&&Ng.uinteger.is(r.deleteCount)&&(r.cells===void 0||Kr.typedArray(r.cells,M0.is))}n.is=e;function t(i,r,o){let s={start:i,deleteCount:r};return o!==void 0&&(s.cells=o),s}n.create=t})(jde=Ge.NotebookCellArrayChange||(Ge.NotebookCellArrayChange={}));var Mde;(function(n){n.method="notebookDocument/didChange",n.messageDirection=Po.MessageDirection.clientToServer,n.type=new Po.ProtocolNotificationType(n.method),n.registrationMethod=Hg.method})(Mde=Ge.DidChangeNotebookDocumentNotification||(Ge.DidChangeNotebookDocumentNotification={}));var Ode;(function(n){n.method="notebookDocument/didSave",n.messageDirection=Po.MessageDirection.clientToServer,n.type=new Po.ProtocolNotificationType(n.method),n.registrationMethod=Hg.method})(Ode=Ge.DidSaveNotebookDocumentNotification||(Ge.DidSaveNotebookDocumentNotification={}));var Ade;(function(n){n.method="notebookDocument/didClose",n.messageDirection=Po.MessageDirection.clientToServer,n.type=new Po.ProtocolNotificationType(n.method),n.registrationMethod=Hg.method})(Ade=Ge.DidCloseNotebookDocumentNotification||(Ge.DidCloseNotebookDocumentNotification={}))});var Fq=y(C=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0});C.WorkspaceSymbolRequest=C.CodeActionResolveRequest=C.CodeActionRequest=C.DocumentSymbolRequest=C.DocumentHighlightRequest=C.ReferencesRequest=C.DefinitionRequest=C.SignatureHelpRequest=C.SignatureHelpTriggerKind=C.HoverRequest=C.CompletionResolveRequest=C.CompletionRequest=C.CompletionTriggerKind=C.PublishDiagnosticsNotification=C.WatchKind=C.RelativePattern=C.FileChangeType=C.DidChangeWatchedFilesNotification=C.WillSaveTextDocumentWaitUntilRequest=C.WillSaveTextDocumentNotification=C.TextDocumentSaveReason=C.DidSaveTextDocumentNotification=C.DidCloseTextDocumentNotification=C.DidChangeTextDocumentNotification=C.TextDocumentContentChangeEvent=C.DidOpenTextDocumentNotification=C.TextDocumentSyncKind=C.TelemetryEventNotification=C.LogMessageNotification=C.ShowMessageRequest=C.ShowMessageNotification=C.MessageType=C.DidChangeConfigurationNotification=C.ExitNotification=C.ShutdownRequest=C.InitializedNotification=C.InitializeErrorCodes=C.InitializeRequest=C.WorkDoneProgressOptions=C.TextDocumentRegistrationOptions=C.StaticRegistrationOptions=C.PositionEncodingKind=C.FailureHandlingKind=C.ResourceOperationKind=C.UnregistrationRequest=C.RegistrationRequest=C.DocumentSelector=C.NotebookCellTextDocumentFilter=C.NotebookDocumentFilter=C.TextDocumentFilter=void 0;C.TypeHierarchySubtypesRequest=C.TypeHierarchyPrepareRequest=C.MonikerRequest=C.MonikerKind=C.UniquenessLevel=C.WillDeleteFilesRequest=C.DidDeleteFilesNotification=C.WillRenameFilesRequest=C.DidRenameFilesNotification=C.WillCreateFilesRequest=C.DidCreateFilesNotification=C.FileOperationPatternKind=C.LinkedEditingRangeRequest=C.ShowDocumentRequest=C.SemanticTokensRegistrationType=C.SemanticTokensRefreshRequest=C.SemanticTokensRangeRequest=C.SemanticTokensDeltaRequest=C.SemanticTokensRequest=C.TokenFormat=C.CallHierarchyPrepareRequest=C.CallHierarchyOutgoingCallsRequest=C.CallHierarchyIncomingCallsRequest=C.WorkDoneProgressCancelNotification=C.WorkDoneProgressCreateRequest=C.WorkDoneProgress=C.SelectionRangeRequest=C.DeclarationRequest=C.FoldingRangeRequest=C.ColorPresentationRequest=C.DocumentColorRequest=C.ConfigurationRequest=C.DidChangeWorkspaceFoldersNotification=C.WorkspaceFoldersRequest=C.TypeDefinitionRequest=C.ImplementationRequest=C.ApplyWorkspaceEditRequest=C.ExecuteCommandRequest=C.PrepareRenameRequest=C.RenameRequest=C.PrepareSupportDefaultBehavior=C.DocumentOnTypeFormattingRequest=C.DocumentRangeFormattingRequest=C.DocumentFormattingRequest=C.DocumentLinkResolveRequest=C.DocumentLinkRequest=C.CodeLensRefreshRequest=C.CodeLensResolveRequest=C.CodeLensRequest=C.WorkspaceSymbolResolveRequest=void 0;C.DidCloseNotebookDocumentNotification=C.DidSaveNotebookDocumentNotification=C.DidChangeNotebookDocumentNotification=C.NotebookCellArrayChange=C.DidOpenNotebookDocumentNotification=C.NotebookDocumentSyncRegistrationType=C.NotebookDocument=C.NotebookCell=C.ExecutionSummary=C.NotebookCellKind=C.DiagnosticRefreshRequest=C.WorkspaceDiagnosticRequest=C.DocumentDiagnosticRequest=C.DocumentDiagnosticReportKind=C.DiagnosticServerCancellationData=C.InlayHintRefreshRequest=C.InlayHintResolveRequest=C.InlayHintRequest=C.InlineValueRefreshRequest=C.InlineValueRequest=C.TypeHierarchySupertypesRequest=void 0;var ee=Ot(),Tq=(Kn(),Co(Uv)),Mi=Xv(),Nde=XH();Object.defineProperty(C,"ImplementationRequest",{enumerable:!0,get:function(){return Nde.ImplementationRequest}});var Hde=zH();Object.defineProperty(C,"TypeDefinitionRequest",{enumerable:!0,get:function(){return Hde.TypeDefinitionRequest}});var kq=KH();Object.defineProperty(C,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return kq.WorkspaceFoldersRequest}});Object.defineProperty(C,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return kq.DidChangeWorkspaceFoldersNotification}});var qde=VH();Object.defineProperty(C,"ConfigurationRequest",{enumerable:!0,get:function(){return qde.ConfigurationRequest}});var Pq=eq();Object.defineProperty(C,"DocumentColorRequest",{enumerable:!0,get:function(){return Pq.DocumentColorRequest}});Object.defineProperty(C,"ColorPresentationRequest",{enumerable:!0,get:function(){return Pq.ColorPresentationRequest}});var Bde=iq();Object.defineProperty(C,"FoldingRangeRequest",{enumerable:!0,get:function(){return Bde.FoldingRangeRequest}});var Wde=rq();Object.defineProperty(C,"DeclarationRequest",{enumerable:!0,get:function(){return Wde.DeclarationRequest}});var Yde=sq();Object.defineProperty(C,"SelectionRangeRequest",{enumerable:!0,get:function(){return Yde.SelectionRangeRequest}});var O0=aq();Object.defineProperty(C,"WorkDoneProgress",{enumerable:!0,get:function(){return O0.WorkDoneProgress}});Object.defineProperty(C,"WorkDoneProgressCreateRequest",{enumerable:!0,get:function(){return O0.WorkDoneProgressCreateRequest}});Object.defineProperty(C,"WorkDoneProgressCancelNotification",{enumerable:!0,get:function(){return O0.WorkDoneProgressCancelNotification}});var A0=lq();Object.defineProperty(C,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return A0.CallHierarchyIncomingCallsRequest}});Object.defineProperty(C,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return A0.CallHierarchyOutgoingCallsRequest}});Object.defineProperty(C,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return A0.CallHierarchyPrepareRequest}});var Yc=uq();Object.defineProperty(C,"TokenFormat",{enumerable:!0,get:function(){return Yc.TokenFormat}});Object.defineProperty(C,"SemanticTokensRequest",{enumerable:!0,get:function(){return Yc.SemanticTokensRequest}});Object.defineProperty(C,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return Yc.SemanticTokensDeltaRequest}});Object.defineProperty(C,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return Yc.SemanticTokensRangeRequest}});Object.defineProperty(C,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return Yc.SemanticTokensRefreshRequest}});Object.defineProperty(C,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return Yc.SemanticTokensRegistrationType}});var Zde=hq();Object.defineProperty(C,"ShowDocumentRequest",{enumerable:!0,get:function(){return Zde.ShowDocumentRequest}});var Jde=gq();Object.defineProperty(C,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return Jde.LinkedEditingRangeRequest}});var ql=pq();Object.defineProperty(C,"FileOperationPatternKind",{enumerable:!0,get:function(){return ql.FileOperationPatternKind}});Object.defineProperty(C,"DidCreateFilesNotification",{enumerable:!0,get:function(){return ql.DidCreateFilesNotification}});Object.defineProperty(C,"WillCreateFilesRequest",{enumerable:!0,get:function(){return ql.WillCreateFilesRequest}});Object.defineProperty(C,"DidRenameFilesNotification",{enumerable:!0,get:function(){return ql.DidRenameFilesNotification}});Object.defineProperty(C,"WillRenameFilesRequest",{enumerable:!0,get:function(){return ql.WillRenameFilesRequest}});Object.defineProperty(C,"DidDeleteFilesNotification",{enumerable:!0,get:function(){return ql.DidDeleteFilesNotification}});Object.defineProperty(C,"WillDeleteFilesRequest",{enumerable:!0,get:function(){return ql.WillDeleteFilesRequest}});var N0=mq();Object.defineProperty(C,"UniquenessLevel",{enumerable:!0,get:function(){return N0.UniquenessLevel}});Object.defineProperty(C,"MonikerKind",{enumerable:!0,get:function(){return N0.MonikerKind}});Object.defineProperty(C,"MonikerRequest",{enumerable:!0,get:function(){return N0.MonikerRequest}});var H0=bq();Object.defineProperty(C,"TypeHierarchyPrepareRequest",{enumerable:!0,get:function(){return H0.TypeHierarchyPrepareRequest}});Object.defineProperty(C,"TypeHierarchySubtypesRequest",{enumerable:!0,get:function(){return H0.TypeHierarchySubtypesRequest}});Object.defineProperty(C,"TypeHierarchySupertypesRequest",{enumerable:!0,get:function(){return H0.TypeHierarchySupertypesRequest}});var Eq=yq();Object.defineProperty(C,"InlineValueRequest",{enumerable:!0,get:function(){return Eq.InlineValueRequest}});Object.defineProperty(C,"InlineValueRefreshRequest",{enumerable:!0,get:function(){return Eq.InlineValueRefreshRequest}});var q0=vq();Object.defineProperty(C,"InlayHintRequest",{enumerable:!0,get:function(){return q0.InlayHintRequest}});Object.defineProperty(C,"InlayHintResolveRequest",{enumerable:!0,get:function(){return q0.InlayHintResolveRequest}});Object.defineProperty(C,"InlayHintRefreshRequest",{enumerable:!0,get:function(){return q0.InlayHintRefreshRequest}});var qg=xq();Object.defineProperty(C,"DiagnosticServerCancellationData",{enumerable:!0,get:function(){return qg.DiagnosticServerCancellationData}});Object.defineProperty(C,"DocumentDiagnosticReportKind",{enumerable:!0,get:function(){return qg.DocumentDiagnosticReportKind}});Object.defineProperty(C,"DocumentDiagnosticRequest",{enumerable:!0,get:function(){return qg.DocumentDiagnosticRequest}});Object.defineProperty(C,"WorkspaceDiagnosticRequest",{enumerable:!0,get:function(){return qg.WorkspaceDiagnosticRequest}});Object.defineProperty(C,"DiagnosticRefreshRequest",{enumerable:!0,get:function(){return qg.DiagnosticRefreshRequest}});var Eo=Dq();Object.defineProperty(C,"NotebookCellKind",{enumerable:!0,get:function(){return Eo.NotebookCellKind}});Object.defineProperty(C,"ExecutionSummary",{enumerable:!0,get:function(){return Eo.ExecutionSummary}});Object.defineProperty(C,"NotebookCell",{enumerable:!0,get:function(){return Eo.NotebookCell}});Object.defineProperty(C,"NotebookDocument",{enumerable:!0,get:function(){return Eo.NotebookDocument}});Object.defineProperty(C,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:function(){return Eo.NotebookDocumentSyncRegistrationType}});Object.defineProperty(C,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:function(){return Eo.DidOpenNotebookDocumentNotification}});Object.defineProperty(C,"NotebookCellArrayChange",{enumerable:!0,get:function(){return Eo.NotebookCellArrayChange}});Object.defineProperty(C,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:function(){return Eo.DidChangeNotebookDocumentNotification}});Object.defineProperty(C,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:function(){return Eo.DidSaveNotebookDocumentNotification}});Object.defineProperty(C,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:function(){return Eo.DidCloseNotebookDocumentNotification}});var Rq;(function(n){function e(t){let i=t;return Mi.string(i.language)||Mi.string(i.scheme)||Mi.string(i.pattern)}n.is=e})(Rq=C.TextDocumentFilter||(C.TextDocumentFilter={}));var _q;(function(n){function e(t){let i=t;return Mi.objectLiteral(i)&&(Mi.string(i.notebookType)||Mi.string(i.scheme)||Mi.string(i.pattern))}n.is=e})(_q=C.NotebookDocumentFilter||(C.NotebookDocumentFilter={}));var Lq;(function(n){function e(t){let i=t;return Mi.objectLiteral(i)&&(Mi.string(i.notebook)||_q.is(i.notebook))&&(i.language===void 0||Mi.string(i.language))}n.is=e})(Lq=C.NotebookCellTextDocumentFilter||(C.NotebookCellTextDocumentFilter={}));var Iq;(function(n){function e(t){if(!Array.isArray(t))return!1;for(let i of t)if(!Mi.string(i)&&!Rq.is(i)&&!Lq.is(i))return!1;return!0}n.is=e})(Iq=C.DocumentSelector||(C.DocumentSelector={}));var $de;(function(n){n.method="client/registerCapability",n.messageDirection=ee.MessageDirection.serverToClient,n.type=new ee.ProtocolRequestType(n.method)})($de=C.RegistrationRequest||(C.RegistrationRequest={}));var Ude;(function(n){n.method="client/unregisterCapability",n.messageDirection=ee.MessageDirection.serverToClient,n.type=new ee.ProtocolRequestType(n.method)})(Ude=C.UnregistrationRequest||(C.UnregistrationRequest={}));var Xde;(function(n){n.Create="create",n.Rename="rename",n.Delete="delete"})(Xde=C.ResourceOperationKind||(C.ResourceOperationKind={}));var Gde;(function(n){n.Abort="abort",n.Transactional="transactional",n.TextOnlyTransactional="textOnlyTransactional",n.Undo="undo"})(Gde=C.FailureHandlingKind||(C.FailureHandlingKind={}));var zde;(function(n){n.UTF8="utf-8",n.UTF16="utf-16",n.UTF32="utf-32"})(zde=C.PositionEncodingKind||(C.PositionEncodingKind={}));var Kde;(function(n){function e(t){let i=t;return i&&Mi.string(i.id)&&i.id.length>0}n.hasId=e})(Kde=C.StaticRegistrationOptions||(C.StaticRegistrationOptions={}));var Qde;(function(n){function e(t){let i=t;return i&&(i.documentSelector===null||Iq.is(i.documentSelector))}n.is=e})(Qde=C.TextDocumentRegistrationOptions||(C.TextDocumentRegistrationOptions={}));var Vde;(function(n){function e(i){let r=i;return Mi.objectLiteral(r)&&(r.workDoneProgress===void 0||Mi.boolean(r.workDoneProgress))}n.is=e;function t(i){let r=i;return r&&Mi.boolean(r.workDoneProgress)}n.hasWorkDoneProgress=t})(Vde=C.WorkDoneProgressOptions||(C.WorkDoneProgressOptions={}));var ege;(function(n){n.method="initialize",n.messageDirection=ee.MessageDirection.clientToServer,n.type=new ee.ProtocolRequestType(n.method)})(ege=C.InitializeRequest||(C.InitializeRequest={}));var tge;(function(n){n.unknownProtocolVersion=1})(tge=C.InitializeErrorCodes||(C.InitializeErrorCodes={}));var ige;(function(n){n.method="initialized",n.messageDirection=ee.MessageDirection.clientToServer,n.type=new ee.ProtocolNotificationType(n.method)})(ige=C.InitializedNotification||(C.InitializedNotification={}));var nge;(function(n){n.method="shutdown",n.messageDirection=ee.MessageDirection.clientToServer,n.type=new ee.ProtocolRequestType0(n.method)})(nge=C.ShutdownRequest||(C.ShutdownRequest={}));var rge;(function(n){n.method="exit",n.messageDirection=ee.MessageDirection.clientToServer,n.type=new ee.ProtocolNotificationType0(n.method)})(rge=C.ExitNotification||(C.ExitNotification={}));var oge;(function(n){n.method="workspace/didChangeConfiguration",n.messageDirection=ee.MessageDirection.clientToServer,n.type=new ee.ProtocolNotificationType(n.method)})(oge=C.DidChangeConfigurationNotification||(C.DidChangeConfigurationNotification={}));var sge;(function(n){n.Error=1,n.Warning=2,n.Info=3,n.Log=4})(sge=C.MessageType||(C.MessageType={}));var age;(function(n){n.method="window/showMessage",n.messageDirection=ee.MessageDirection.serverToClient,n.type=new ee.ProtocolNotificationType(n.method)})(age=C.ShowMessageNotification||(C.ShowMessageNotification={}));var lge;(function(n){n.method="window/showMessageRequest",n.messageDirection=ee.MessageDirection.serverToClient,n.type=new ee.ProtocolRequestType(n.method)})(lge=C.ShowMessageRequest||(C.ShowMessageRequest={}));var uge;(function(n){n.method="window/logMessage",n.messageDirection=ee.MessageDirection.serverToClient,n.type=new ee.ProtocolNotificationType(n.method)})(uge=C.LogMessageNotification||(C.LogMessageNotification={}));var cge;(function(n){n.method="telemetry/event",n.messageDirection=ee.MessageDirection.serverToClient,n.type=new ee.ProtocolNotificationType(n.method)})(cge=C.TelemetryEventNotification||(C.TelemetryEventNotification={}));var hge;(function(n){n.None=0,n.Full=1,n.Incremental=2})(hge=C.TextDocumentSyncKind||(C.TextDocumentSyncKind={}));var dge;(function(n){n.method="textDocument/didOpen",n.messageDirection=ee.MessageDirection.clientToServer,n.type=new ee.ProtocolNotificationType(n.method)})(dge=C.DidOpenTextDocumentNotification||(C.DidOpenTextDocumentNotification={}));var gge;(function(n){function e(i){let r=i;return r!=null&&typeof r.text=="string"&&r.range!==void 0&&(r.rangeLength===void 0||typeof r.rangeLength=="number")}n.isIncremental=e;function t(i){let r=i;return r!=null&&typeof r.text=="string"&&r.range===void 0&&r.rangeLength===void 0}n.isFull=t})(gge=C.TextDocumentContentChangeEvent||(C.TextDocumentContentChangeEvent={}));var pge;(function(n){n.method="textDocument/didChange",n.messageDirection=ee.MessageDirection.clientToServer,n.type=new ee.ProtocolNotificationType(n.method)})(pge=C.DidChangeTextDocumentNotification||(C.DidChangeTextDocumentNotification={}));var fge;(function(n){n.method="textDocument/didClose",n.messageDirection=ee.MessageDirection.clientToServer,n.type=new ee.ProtocolNotificationType(n.method)})(fge=C.DidCloseTextDocumentNotification||(C.DidCloseTextDocumentNotification={}));var mge;(function(n){n.method="textDocument/didSave",n.messageDirection=ee.MessageDirection.clientToServer,n.type=new ee.ProtocolNotificationType(n.method)})(mge=C.DidSaveTextDocumentNotification||(C.DidSaveTextDocumentNotification={}));var bge;(function(n){n.Manual=1,n.AfterDelay=2,n.FocusOut=3})(bge=C.TextDocumentSaveReason||(C.TextDocumentSaveReason={}));var yge;(function(n){n.method="textDocument/willSave",n.messageDirection=ee.MessageDirection.clientToServer,n.type=new ee.ProtocolNotificationType(n.method)})(yge=C.WillSaveTextDocumentNotification||(C.WillSaveTextDocumentNotification={}));var vge;(function(n){n.method="textDocument/willSaveWaitUntil",n.messageDirection=ee.MessageDirection.clientToServer,n.type=new ee.ProtocolRequestType(n.method)})(vge=C.WillSaveTextDocumentWaitUntilRequest||(C.WillSaveTextDocumentWaitUntilRequest={}));var wge;(function(n){n.method="workspace/didChangeWatchedFiles",n.messageDirection=ee.MessageDirection.clientToServer,n.type=new ee.ProtocolNotificationType(n.method)})(wge=C.DidChangeWatchedFilesNotification||(C.DidChangeWatchedFilesNotification={}));var xge;(function(n){n.Created=1,n.Changed=2,n.Deleted=3})(xge=C.FileChangeType||(C.FileChangeType={}));var Cge;(function(n){function e(t){let i=t;return Mi.objectLiteral(i)&&(Tq.URI.is(i.baseUri)||Tq.WorkspaceFolder.is(i.baseUri))&&Mi.string(i.pattern)}n.is=e})(Cge=C.RelativePattern||(C.RelativePattern={}));var Sge;(function(n){n.Create=1,n.Change=2,n.Delete=4})(Sge=C.WatchKind||(C.WatchKind={}));var Dge;(function(n){n.method="textDocument/publishDiagnostics",n.messageDirection=ee.MessageDirection.serverToClient,n.type=new ee.ProtocolNotificationType(n.method)})(Dge=C.PublishDiagnosticsNotification||(C.PublishDiagnosticsNotification={}));var Tge;(function(n){n.Invoked=1,n.TriggerCharacter=2,n.TriggerForIncompleteCompletions=3})(Tge=C.CompletionTriggerKind||(C.CompletionTriggerKind={}));var kge;(function(n){n.method="textDocument/completion",n.messageDirection=ee.MessageDirection.clientToServer,n.type=new ee.ProtocolRequestType(n.method)})(kge=C.CompletionRequest||(C.CompletionRequest={}));var Pge;(function(n){n.method="completionItem/resolve",n.messageDirection=ee.MessageDirection.clientToServer,n.type=new ee.ProtocolRequestType(n.method)})(Pge=C.CompletionResolveRequest||(C.CompletionResolveRequest={}));var Ege;(function(n){n.method="textDocument/hover",n.messageDirection=ee.MessageDirection.clientToServer,n.type=new ee.ProtocolRequestType(n.method)})(Ege=C.HoverRequest||(C.HoverRequest={}));var Rge;(function(n){n.Invoked=1,n.TriggerCharacter=2,n.ContentChange=3})(Rge=C.SignatureHelpTriggerKind||(C.SignatureHelpTriggerKind={}));var _ge;(function(n){n.method="textDocument/signatureHelp",n.messageDirection=ee.MessageDirection.clientToServer,n.type=new ee.ProtocolRequestType(n.method)})(_ge=C.SignatureHelpRequest||(C.SignatureHelpRequest={}));var Lge;(function(n){n.method="textDocument/definition",n.messageDirection=ee.MessageDirection.clientToServer,n.type=new ee.ProtocolRequestType(n.method)})(Lge=C.DefinitionRequest||(C.DefinitionRequest={}));var Ige;(function(n){n.method="textDocument/references",n.messageDirection=ee.MessageDirection.clientToServer,n.type=new ee.ProtocolRequestType(n.method)})(Ige=C.ReferencesRequest||(C.ReferencesRequest={}));var Fge;(function(n){n.method="textDocument/documentHighlight",n.messageDirection=ee.MessageDirection.clientToServer,n.type=new ee.ProtocolRequestType(n.method)})(Fge=C.DocumentHighlightRequest||(C.DocumentHighlightRequest={}));var jge;(function(n){n.method="textDocument/documentSymbol",n.messageDirection=ee.MessageDirection.clientToServer,n.type=new ee.ProtocolRequestType(n.method)})(jge=C.DocumentSymbolRequest||(C.DocumentSymbolRequest={}));var Mge;(function(n){n.method="textDocument/codeAction",n.messageDirection=ee.MessageDirection.clientToServer,n.type=new ee.ProtocolRequestType(n.method)})(Mge=C.CodeActionRequest||(C.CodeActionRequest={}));var Oge;(function(n){n.method="codeAction/resolve",n.messageDirection=ee.MessageDirection.clientToServer,n.type=new ee.ProtocolRequestType(n.method)})(Oge=C.CodeActionResolveRequest||(C.CodeActionResolveRequest={}));var Age;(function(n){n.method="workspace/symbol",n.messageDirection=ee.MessageDirection.clientToServer,n.type=new ee.ProtocolRequestType(n.method)})(Age=C.WorkspaceSymbolRequest||(C.WorkspaceSymbolRequest={}));var Nge;(function(n){n.method="workspaceSymbol/resolve",n.messageDirection=ee.MessageDirection.clientToServer,n.type=new ee.ProtocolRequestType(n.method)})(Nge=C.WorkspaceSymbolResolveRequest||(C.WorkspaceSymbolResolveRequest={}));var Hge;(function(n){n.method="textDocument/codeLens",n.messageDirection=ee.MessageDirection.clientToServer,n.type=new ee.ProtocolRequestType(n.method)})(Hge=C.CodeLensRequest||(C.CodeLensRequest={}));var qge;(function(n){n.method="codeLens/resolve",n.messageDirection=ee.MessageDirection.clientToServer,n.type=new ee.ProtocolRequestType(n.method)})(qge=C.CodeLensResolveRequest||(C.CodeLensResolveRequest={}));var Bge;(function(n){n.method="workspace/codeLens/refresh",n.messageDirection=ee.MessageDirection.serverToClient,n.type=new ee.ProtocolRequestType0(n.method)})(Bge=C.CodeLensRefreshRequest||(C.CodeLensRefreshRequest={}));var Wge;(function(n){n.method="textDocument/documentLink",n.messageDirection=ee.MessageDirection.clientToServer,n.type=new ee.ProtocolRequestType(n.method)})(Wge=C.DocumentLinkRequest||(C.DocumentLinkRequest={}));var Yge;(function(n){n.method="documentLink/resolve",n.messageDirection=ee.MessageDirection.clientToServer,n.type=new ee.ProtocolRequestType(n.method)})(Yge=C.DocumentLinkResolveRequest||(C.DocumentLinkResolveRequest={}));var Zge;(function(n){n.method="textDocument/formatting",n.messageDirection=ee.MessageDirection.clientToServer,n.type=new ee.ProtocolRequestType(n.method)})(Zge=C.DocumentFormattingRequest||(C.DocumentFormattingRequest={}));var Jge;(function(n){n.method="textDocument/rangeFormatting",n.messageDirection=ee.MessageDirection.clientToServer,n.type=new ee.ProtocolRequestType(n.method)})(Jge=C.DocumentRangeFormattingRequest||(C.DocumentRangeFormattingRequest={}));var $ge;(function(n){n.method="textDocument/onTypeFormatting",n.messageDirection=ee.MessageDirection.clientToServer,n.type=new ee.ProtocolRequestType(n.method)})($ge=C.DocumentOnTypeFormattingRequest||(C.DocumentOnTypeFormattingRequest={}));var Uge;(function(n){n.Identifier=1})(Uge=C.PrepareSupportDefaultBehavior||(C.PrepareSupportDefaultBehavior={}));var Xge;(function(n){n.method="textDocument/rename",n.messageDirection=ee.MessageDirection.clientToServer,n.type=new ee.ProtocolRequestType(n.method)})(Xge=C.RenameRequest||(C.RenameRequest={}));var Gge;(function(n){n.method="textDocument/prepareRename",n.messageDirection=ee.MessageDirection.clientToServer,n.type=new ee.ProtocolRequestType(n.method)})(Gge=C.PrepareRenameRequest||(C.PrepareRenameRequest={}));var zge;(function(n){n.method="workspace/executeCommand",n.messageDirection=ee.MessageDirection.clientToServer,n.type=new ee.ProtocolRequestType(n.method)})(zge=C.ExecuteCommandRequest||(C.ExecuteCommandRequest={}));var Kge;(function(n){n.method="workspace/applyEdit",n.messageDirection=ee.MessageDirection.serverToClient,n.type=new ee.ProtocolRequestType("workspace/applyEdit")})(Kge=C.ApplyWorkspaceEditRequest||(C.ApplyWorkspaceEditRequest={}))});var Mq=y(ew=>{"use strict";Object.defineProperty(ew,"__esModule",{value:!0});ew.createProtocolConnection=void 0;var jq=Al();function Qge(n,e,t,i){return jq.ConnectionStrategy.is(i)&&(i={connectionStrategy:i}),(0,jq.createMessageConnection)(n,e,t,i)}ew.createProtocolConnection=Qge});var Oq=y(hn=>{"use strict";var Vge=hn&&hn.__createBinding||(Object.create?function(n,e,t,i){i===void 0&&(i=t);var r=Object.getOwnPropertyDescriptor(e,t);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(n,i,r)}:function(n,e,t,i){i===void 0&&(i=t),n[i]=e[t]}),tw=hn&&hn.__exportStar||function(n,e){for(var t in n)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&Vge(e,n,t)};Object.defineProperty(hn,"__esModule",{value:!0});hn.LSPErrorCodes=hn.createProtocolConnection=void 0;tw(Al(),hn);tw((Kn(),Co(Uv)),hn);tw(Ot(),hn);tw(Fq(),hn);var epe=Mq();Object.defineProperty(hn,"createProtocolConnection",{enumerable:!0,get:function(){return epe.createProtocolConnection}});var tpe;(function(n){n.lspReservedErrorRangeStart=-32899,n.RequestFailed=-32803,n.ServerCancelled=-32802,n.ContentModified=-32801,n.RequestCancelled=-32800,n.lspReservedErrorRangeEnd=-32800})(tpe=hn.LSPErrorCodes||(hn.LSPErrorCodes={}))});var W=y(Ro=>{"use strict";var ipe=Ro&&Ro.__createBinding||(Object.create?function(n,e,t,i){i===void 0&&(i=t);var r=Object.getOwnPropertyDescriptor(e,t);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(n,i,r)}:function(n,e,t,i){i===void 0&&(i=t),n[i]=e[t]}),Aq=Ro&&Ro.__exportStar||function(n,e){for(var t in n)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&ipe(e,n,t)};Object.defineProperty(Ro,"__esModule",{value:!0});Ro.createProtocolConnection=void 0;var npe=AP();Aq(AP(),Ro);Aq(Oq(),Ro);function rpe(n,e,t,i){return(0,npe.createMessageConnection)(n,e,t,i)}Ro.createProtocolConnection=rpe});var Pn=y((QEe,Nq)=>{function B0(n,e,t){var i,r,o,s,a;e==null&&(e=100);function l(){var c=Date.now()-s;c<e&&c>=0?i=setTimeout(l,e-c):(i=null,t||(a=n.apply(o,r),o=r=null))}var u=function(){o=this,r=arguments,s=Date.now();var c=t&&!i;return i||(i=setTimeout(l,e)),c&&(a=n.apply(o,r),o=r=null),a};return u.clear=function(){i&&(clearTimeout(i),i=null)},u.flush=function(){i&&(a=n.apply(o,r),o=r=null,clearTimeout(i),i=null)},u}B0.debounce=B0;Nq.exports=B0});var Hq,j,VEe,Pe=k(()=>{Hq=(()=>{"use strict";var n={470:i=>{function r(a){if(typeof a!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(a))}function o(a,l){for(var u,c="",h=0,d=-1,g=0,p=0;p<=a.length;++p){if(p<a.length)u=a.charCodeAt(p);else{if(u===47)break;u=47}if(u===47){if(!(d===p-1||g===1))if(d!==p-1&&g===2){if(c.length<2||h!==2||c.charCodeAt(c.length-1)!==46||c.charCodeAt(c.length-2)!==46){if(c.length>2){var f=c.lastIndexOf("/");if(f!==c.length-1){f===-1?(c="",h=0):h=(c=c.slice(0,f)).length-1-c.lastIndexOf("/"),d=p,g=0;continue}}else if(c.length===2||c.length===1){c="",h=0,d=p,g=0;continue}}l&&(c.length>0?c+="/..":c="..",h=2)}else c.length>0?c+="/"+a.slice(d+1,p):c=a.slice(d+1,p),h=p-d-1;d=p,g=0}else u===46&&g!==-1?++g:g=-1}return c}var s={resolve:function(){for(var a,l="",u=!1,c=arguments.length-1;c>=-1&&!u;c--){var h;c>=0?h=arguments[c]:(a===void 0&&(a=process.cwd()),h=a),r(h),h.length!==0&&(l=h+"/"+l,u=h.charCodeAt(0)===47)}return l=o(l,!u),u?l.length>0?"/"+l:"/":l.length>0?l:"."},normalize:function(a){if(r(a),a.length===0)return".";var l=a.charCodeAt(0)===47,u=a.charCodeAt(a.length-1)===47;return(a=o(a,!l)).length!==0||l||(a="."),a.length>0&&u&&(a+="/"),l?"/"+a:a},isAbsolute:function(a){return r(a),a.length>0&&a.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var a,l=0;l<arguments.length;++l){var u=arguments[l];r(u),u.length>0&&(a===void 0?a=u:a+="/"+u)}return a===void 0?".":s.normalize(a)},relative:function(a,l){if(r(a),r(l),a===l||(a=s.resolve(a))===(l=s.resolve(l)))return"";for(var u=1;u<a.length&&a.charCodeAt(u)===47;++u);for(var c=a.length,h=c-u,d=1;d<l.length&&l.charCodeAt(d)===47;++d);for(var g=l.length-d,p=h<g?h:g,f=-1,m=0;m<=p;++m){if(m===p){if(g>p){if(l.charCodeAt(d+m)===47)return l.slice(d+m+1);if(m===0)return l.slice(d+m)}else h>p&&(a.charCodeAt(u+m)===47?f=m:m===0&&(f=0));break}var b=a.charCodeAt(u+m);if(b!==l.charCodeAt(d+m))break;b===47&&(f=m)}var w="";for(m=u+f+1;m<=c;++m)m!==c&&a.charCodeAt(m)!==47||(w.length===0?w+="..":w+="/..");return w.length>0?w+l.slice(d+f):(d+=f,l.charCodeAt(d)===47&&++d,l.slice(d))},_makeLong:function(a){return a},dirname:function(a){if(r(a),a.length===0)return".";for(var l=a.charCodeAt(0),u=l===47,c=-1,h=!0,d=a.length-1;d>=1;--d)if((l=a.charCodeAt(d))===47){if(!h){c=d;break}}else h=!1;return c===-1?u?"/":".":u&&c===1?"//":a.slice(0,c)},basename:function(a,l){if(l!==void 0&&typeof l!="string")throw new TypeError('"ext" argument must be a string');r(a);var u,c=0,h=-1,d=!0;if(l!==void 0&&l.length>0&&l.length<=a.length){if(l.length===a.length&&l===a)return"";var g=l.length-1,p=-1;for(u=a.length-1;u>=0;--u){var f=a.charCodeAt(u);if(f===47){if(!d){c=u+1;break}}else p===-1&&(d=!1,p=u+1),g>=0&&(f===l.charCodeAt(g)?--g==-1&&(h=u):(g=-1,h=p))}return c===h?h=p:h===-1&&(h=a.length),a.slice(c,h)}for(u=a.length-1;u>=0;--u)if(a.charCodeAt(u)===47){if(!d){c=u+1;break}}else h===-1&&(d=!1,h=u+1);return h===-1?"":a.slice(c,h)},extname:function(a){r(a);for(var l=-1,u=0,c=-1,h=!0,d=0,g=a.length-1;g>=0;--g){var p=a.charCodeAt(g);if(p!==47)c===-1&&(h=!1,c=g+1),p===46?l===-1?l=g:d!==1&&(d=1):l!==-1&&(d=-1);else if(!h){u=g+1;break}}return l===-1||c===-1||d===0||d===1&&l===c-1&&l===u+1?"":a.slice(l,c)},format:function(a){if(a===null||typeof a!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof a);return function(l,u){var c=u.dir||u.root,h=u.base||(u.name||"")+(u.ext||"");return c?c===u.root?c+h:c+"/"+h:h}(0,a)},parse:function(a){r(a);var l={root:"",dir:"",base:"",ext:"",name:""};if(a.length===0)return l;var u,c=a.charCodeAt(0),h=c===47;h?(l.root="/",u=1):u=0;for(var d=-1,g=0,p=-1,f=!0,m=a.length-1,b=0;m>=u;--m)if((c=a.charCodeAt(m))!==47)p===-1&&(f=!1,p=m+1),c===46?d===-1?d=m:b!==1&&(b=1):d!==-1&&(b=-1);else if(!f){g=m+1;break}return d===-1||p===-1||b===0||b===1&&d===p-1&&d===g+1?p!==-1&&(l.base=l.name=g===0&&h?a.slice(1,p):a.slice(g,p)):(g===0&&h?(l.name=a.slice(1,d),l.base=a.slice(1,p)):(l.name=a.slice(g,d),l.base=a.slice(g,p)),l.ext=a.slice(d,p)),g>0?l.dir=a.slice(0,g-1):h&&(l.dir="/"),l},sep:"/",delimiter:":",win32:null,posix:null};s.posix=s,i.exports=s},447:(i,r,o)=>{var s;if(o.r(r),o.d(r,{URI:()=>w,Utils:()=>Z}),typeof process=="object")s=process.platform==="win32";else if(typeof navigator=="object"){var a=navigator.userAgent;s=a.indexOf("Windows")>=0}var l,u,c=(l=function($,B){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(G,V){G.__proto__=V}||function(G,V){for(var Re in V)Object.prototype.hasOwnProperty.call(V,Re)&&(G[Re]=V[Re])})($,B)},function($,B){if(typeof B!="function"&&B!==null)throw new TypeError("Class extends value "+String(B)+" is not a constructor or null");function G(){this.constructor=$}l($,B),$.prototype=B===null?Object.create(B):(G.prototype=B.prototype,new G)}),h=/^\w[\w\d+.-]*$/,d=/^\//,g=/^\/\//;function p($,B){if(!$.scheme&&B)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'.concat($.authority,'", path: "').concat($.path,'", query: "').concat($.query,'", fragment: "').concat($.fragment,'"}'));if($.scheme&&!h.test($.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if($.path){if($.authority){if(!d.test($.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(g.test($.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}var f="",m="/",b=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,w=function(){function $(B,G,V,Re,Ee,Xe){Xe===void 0&&(Xe=!1),typeof B=="object"?(this.scheme=B.scheme||f,this.authority=B.authority||f,this.path=B.path||f,this.query=B.query||f,this.fragment=B.fragment||f):(this.scheme=function(Zn,Wi){return Zn||Wi?Zn:"file"}(B,Xe),this.authority=G||f,this.path=function(Zn,Wi){switch(Zn){case"https":case"http":case"file":Wi?Wi[0]!==m&&(Wi=m+Wi):Wi=m}return Wi}(this.scheme,V||f),this.query=Re||f,this.fragment=Ee||f,p(this,Xe))}return $.isUri=function(B){return B instanceof $||!!B&&typeof B.authority=="string"&&typeof B.fragment=="string"&&typeof B.path=="string"&&typeof B.query=="string"&&typeof B.scheme=="string"&&typeof B.fsPath=="string"&&typeof B.with=="function"&&typeof B.toString=="function"},Object.defineProperty($.prototype,"fsPath",{get:function(){return J(this,!1)},enumerable:!1,configurable:!0}),$.prototype.with=function(B){if(!B)return this;var G=B.scheme,V=B.authority,Re=B.path,Ee=B.query,Xe=B.fragment;return G===void 0?G=this.scheme:G===null&&(G=f),V===void 0?V=this.authority:V===null&&(V=f),Re===void 0?Re=this.path:Re===null&&(Re=f),Ee===void 0?Ee=this.query:Ee===null&&(Ee=f),Xe===void 0?Xe=this.fragment:Xe===null&&(Xe=f),G===this.scheme&&V===this.authority&&Re===this.path&&Ee===this.query&&Xe===this.fragment?this:new T(G,V,Re,Ee,Xe)},$.parse=function(B,G){G===void 0&&(G=!1);var V=b.exec(B);return V?new T(V[2]||f,O(V[4]||f),O(V[5]||f),O(V[7]||f),O(V[9]||f),G):new T(f,f,f,f,f)},$.file=function(B){var G=f;if(s&&(B=B.replace(/\\/g,m)),B[0]===m&&B[1]===m){var V=B.indexOf(m,2);V===-1?(G=B.substring(2),B=m):(G=B.substring(2,V),B=B.substring(V)||m)}return new T("file",G,B,f,f)},$.from=function(B){var G=new T(B.scheme,B.authority,B.path,B.query,B.fragment);return p(G,!0),G},$.prototype.toString=function(B){return B===void 0&&(B=!1),H(this,B)},$.prototype.toJSON=function(){return this},$.revive=function(B){if(B){if(B instanceof $)return B;var G=new T(B);return G._formatted=B.external,G._fsPath=B._sep===x?B.fsPath:null,G}return B},$}(),x=s?1:void 0,T=function($){function B(){var G=$!==null&&$.apply(this,arguments)||this;return G._formatted=null,G._fsPath=null,G}return c(B,$),Object.defineProperty(B.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=J(this,!1)),this._fsPath},enumerable:!1,configurable:!0}),B.prototype.toString=function(G){return G===void 0&&(G=!1),G?H(this,!0):(this._formatted||(this._formatted=H(this,!1)),this._formatted)},B.prototype.toJSON=function(){var G={$mid:1};return this._fsPath&&(G.fsPath=this._fsPath,G._sep=x),this._formatted&&(G.external=this._formatted),this.path&&(G.path=this.path),this.scheme&&(G.scheme=this.scheme),this.authority&&(G.authority=this.authority),this.query&&(G.query=this.query),this.fragment&&(G.fragment=this.fragment),G},B}(w),R=((u={})[58]="%3A",u[47]="%2F",u[63]="%3F",u[35]="%23",u[91]="%5B",u[93]="%5D",u[64]="%40",u[33]="%21",u[36]="%24",u[38]="%26",u[39]="%27",u[40]="%28",u[41]="%29",u[42]="%2A",u[43]="%2B",u[44]="%2C",u[59]="%3B",u[61]="%3D",u[32]="%20",u);function F($,B){for(var G=void 0,V=-1,Re=0;Re<$.length;Re++){var Ee=$.charCodeAt(Re);if(Ee>=97&&Ee<=122||Ee>=65&&Ee<=90||Ee>=48&&Ee<=57||Ee===45||Ee===46||Ee===95||Ee===126||B&&Ee===47)V!==-1&&(G+=encodeURIComponent($.substring(V,Re)),V=-1),G!==void 0&&(G+=$.charAt(Re));else{G===void 0&&(G=$.substr(0,Re));var Xe=R[Ee];Xe!==void 0?(V!==-1&&(G+=encodeURIComponent($.substring(V,Re)),V=-1),G+=Xe):V===-1&&(V=Re)}}return V!==-1&&(G+=encodeURIComponent($.substring(V))),G!==void 0?G:$}function N($){for(var B=void 0,G=0;G<$.length;G++){var V=$.charCodeAt(G);V===35||V===63?(B===void 0&&(B=$.substr(0,G)),B+=R[V]):B!==void 0&&(B+=$[G])}return B!==void 0?B:$}function J($,B){var G;return G=$.authority&&$.path.length>1&&$.scheme==="file"?"//".concat($.authority).concat($.path):$.path.charCodeAt(0)===47&&($.path.charCodeAt(1)>=65&&$.path.charCodeAt(1)<=90||$.path.charCodeAt(1)>=97&&$.path.charCodeAt(1)<=122)&&$.path.charCodeAt(2)===58?B?$.path.substr(1):$.path[1].toLowerCase()+$.path.substr(2):$.path,s&&(G=G.replace(/\//g,"\\")),G}function H($,B){var G=B?N:F,V="",Re=$.scheme,Ee=$.authority,Xe=$.path,Zn=$.query,Wi=$.fragment;if(Re&&(V+=Re,V+=":"),(Ee||Re==="file")&&(V+=m,V+=m),Ee){var Yi=Ee.indexOf("@");if(Yi!==-1){var Ar=Ee.substr(0,Yi);Ee=Ee.substr(Yi+1),(Yi=Ar.indexOf(":"))===-1?V+=G(Ar,!1):(V+=G(Ar.substr(0,Yi),!1),V+=":",V+=G(Ar.substr(Yi+1),!1)),V+="@"}(Yi=(Ee=Ee.toLowerCase()).indexOf(":"))===-1?V+=G(Ee,!1):(V+=G(Ee.substr(0,Yi),!1),V+=Ee.substr(Yi))}if(Xe){if(Xe.length>=3&&Xe.charCodeAt(0)===47&&Xe.charCodeAt(2)===58)(Le=Xe.charCodeAt(1))>=65&&Le<=90&&(Xe="/".concat(String.fromCharCode(Le+32),":").concat(Xe.substr(3)));else if(Xe.length>=2&&Xe.charCodeAt(1)===58){var Le;(Le=Xe.charCodeAt(0))>=65&&Le<=90&&(Xe="".concat(String.fromCharCode(Le+32),":").concat(Xe.substr(2)))}V+=G(Xe,!0)}return Zn&&(V+="?",V+=G(Zn,!1)),Wi&&(V+="#",V+=B?Wi:F(Wi,!1)),V}function M($){try{return decodeURIComponent($)}catch{return $.length>3?$.substr(0,3)+M($.substr(3)):$}}var L=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function O($){return $.match(L)?$.replace(L,function(B){return M(B)}):$}var Z,ne=o(470),be=function($,B,G){if(G||arguments.length===2)for(var V,Re=0,Ee=B.length;Re<Ee;Re++)!V&&Re in B||(V||(V=Array.prototype.slice.call(B,0,Re)),V[Re]=B[Re]);return $.concat(V||Array.prototype.slice.call(B))},He=ne.posix||ne;(function($){$.joinPath=function(B){for(var G=[],V=1;V<arguments.length;V++)G[V-1]=arguments[V];return B.with({path:He.join.apply(He,be([B.path],G,!1))})},$.resolvePath=function(B){for(var G=[],V=1;V<arguments.length;V++)G[V-1]=arguments[V];var Re=B.path||"/";return B.with({path:He.resolve.apply(He,be([Re],G,!1))})},$.dirname=function(B){var G=He.dirname(B.path);return G.length===1&&G.charCodeAt(0)===46?B:B.with({path:G})},$.basename=function(B){return He.basename(B.path)},$.extname=function(B){return He.extname(B.path)}})(Z||(Z={}))}},e={};function t(i){if(e[i])return e[i].exports;var r=e[i]={exports:{}};return n[i](r,r.exports,t),r.exports}return t.d=(i,r)=>{for(var o in r)t.o(r,o)&&!t.o(i,o)&&Object.defineProperty(i,o,{enumerable:!0,get:r[o]})},t.o=(i,r)=>Object.prototype.hasOwnProperty.call(i,r),t.r=i=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},t(447)})();({URI:j,Utils:VEe}=Hq)});var Zq=y((tRe,Yq)=>{Yq.exports=Wq;Wq.sync=spe;var qq=require("fs");function ope(n,e){var t=e.pathExt!==void 0?e.pathExt:process.env.PATHEXT;if(!t||(t=t.split(";"),t.indexOf("")!==-1))return!0;for(var i=0;i<t.length;i++){var r=t[i].toLowerCase();if(r&&n.substr(-r.length).toLowerCase()===r)return!0}return!1}function Bq(n,e,t){return!n.isSymbolicLink()&&!n.isFile()?!1:ope(e,t)}function Wq(n,e,t){qq.stat(n,function(i,r){t(i,i?!1:Bq(r,n,e))})}function spe(n,e){return Bq(qq.statSync(n),n,e)}});var Gq=y((iRe,Xq)=>{Xq.exports=$q;$q.sync=ape;var Jq=require("fs");function $q(n,e,t){Jq.stat(n,function(i,r){t(i,i?!1:Uq(r,e))})}function ape(n,e){return Uq(Jq.statSync(n),e)}function Uq(n,e){return n.isFile()&&lpe(n,e)}function lpe(n,e){var t=n.mode,i=n.uid,r=n.gid,o=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),s=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),a=parseInt("100",8),l=parseInt("010",8),u=parseInt("001",8),c=a|l,h=t&u||t&l&&r===s||t&a&&i===o||t&c&&o===0;return h}});var Kq=y((rRe,zq)=>{var nRe=require("fs"),iw;process.platform==="win32"||global.TESTING_WINDOWS?iw=Zq():iw=Gq();zq.exports=W0;W0.sync=upe;function W0(n,e,t){if(typeof e=="function"&&(t=e,e={}),!t){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(i,r){W0(n,e||{},function(o,s){o?r(o):i(s)})})}iw(n,e||{},function(i,r){i&&(i.code==="EACCES"||e&&e.ignoreErrors)&&(i=null,r=!1),t(i,r)})}function upe(n,e){try{return iw.sync(n,e||{})}catch(t){if(e&&e.ignoreErrors||t.code==="EACCES")return!1;throw t}}});var Bg=y((oRe,nB)=>{var Zc=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",Qq=require("path"),cpe=Zc?";":":",Vq=Kq(),eB=n=>Object.assign(new Error(`not found: ${n}`),{code:"ENOENT"}),tB=(n,e)=>{let t=e.colon||cpe,i=n.match(/\//)||Zc&&n.match(/\\/)?[""]:[...Zc?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(t)],r=Zc?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",o=Zc?r.split(t):[""];return Zc&&n.indexOf(".")!==-1&&o[0]!==""&&o.unshift(""),{pathEnv:i,pathExt:o,pathExtExe:r}},iB=(n,e,t)=>{typeof e=="function"&&(t=e,e={}),e||(e={});let{pathEnv:i,pathExt:r,pathExtExe:o}=tB(n,e),s=[],a=u=>new Promise((c,h)=>{if(u===i.length)return e.all&&s.length?c(s):h(eB(n));let d=i[u],g=/^".*"$/.test(d)?d.slice(1,-1):d,p=Qq.join(g,n),f=!g&&/^\.[\\\/]/.test(n)?n.slice(0,2)+p:p;c(l(f,u,0))}),l=(u,c,h)=>new Promise((d,g)=>{if(h===r.length)return d(a(c+1));let p=r[h];Vq(u+p,{pathExt:o},(f,m)=>{if(!f&&m)if(e.all)s.push(u+p);else return d(u+p);return d(l(u,c,h+1))})});return t?a(0).then(u=>t(null,u),t):a(0)},hpe=(n,e)=>{e=e||{};let{pathEnv:t,pathExt:i,pathExtExe:r}=tB(n,e),o=[];for(let s=0;s<t.length;s++){let a=t[s],l=/^".*"$/.test(a)?a.slice(1,-1):a,u=Qq.join(l,n),c=!l&&/^\.[\\\/]/.test(n)?n.slice(0,2)+u:u;for(let h=0;h<i.length;h++){let d=c+i[h];try{if(Vq.sync(d,{pathExt:r}))if(e.all)o.push(d);else return d}catch{}}}if(e.all&&o.length)return o;if(e.nothrow)return null;throw eB(n)};nB.exports=iB;iB.sync=hpe});function nw(n){try{return new rB.URL(n),!0}catch{return!1}}function Y0(n){return!Array.isArray(n)&&Array.isArray(n.items)}function fa(n){return typeof n=="boolean"}function ti(n){return typeof n=="string"}function rw(n){return typeof n=="number"}function Oi(n){return typeof n=="function"}function hi(n){return n!=null&&typeof n=="object"&&!Array.isArray(n)&&!(n instanceof RegExp)&&!(n instanceof Date)}var rB,wi=k(()=>{"use strict";rB=require("url")});var us={};Go(us,{OS:()=>wpe,OperatingSystem:()=>sB,Platform:()=>oB,globals:()=>vpe,isLinux:()=>ppe,isMacintosh:()=>Jc,isNative:()=>fpe,isWeb:()=>mpe,isWindows:()=>En,language:()=>gpe,platform:()=>bpe});var sw,aw,Z0,J0,dpe,gpe,oB,ow,En,Jc,ppe,fpe,mpe,bpe,ype,vpe,sB,wpe,$c=k(()=>{"use strict";sw=!1,aw=!1,Z0=!1,J0=!1,dpe=!1,gpe="en";typeof process=="object"&&typeof process.nextTick=="function"&&typeof process.platform=="string"&&(sw=process.platform==="win32",aw=process.platform==="darwin",Z0=process.platform==="linux",J0=!0);oB=(r=>(r[r.Web=0]="Web",r[r.Mac=1]="Mac",r[r.Linux=2]="Linux",r[r.Windows=3]="Windows",r))(oB||{}),ow=0;J0&&(aw?ow=1:sw?ow=3:Z0&&(ow=2));En=sw,Jc=aw,ppe=Z0,fpe=J0,mpe=dpe,bpe=ow,ype=typeof self=="object"?self:typeof global=="object"?global:{},vpe=ype,sB=(i=>(i[i.Windows=1]="Windows",i[i.Macintosh=2]="Macintosh",i[i.Linux=3]="Linux",i))(sB||{}),wpe=aw?2:sw?1:3});function Wg(n){return!!(Bl.MarkupContent.is(n)&&n.kind==Bl.MarkupKind.Markdown)}function Nt(n){return n<=0?Promise.resolve(void 0):new Promise(e=>{setTimeout(()=>{e(void 0)},n)})}function hB(n){return new Promise(e=>{process.nextTick(()=>{n&&n(),e(void 0)})})}function wr(){return new Promise(n=>{setImmediate(()=>{n(void 0)})})}function dB(n,e,t,i){return n?$0.default.isAbsolute(n)?j.file(i?n:$0.default.normalize(n)).toString():nw(n)?j.parse(n).toString():t!=""?`${t}:${e}`:`unknown:${e}`:`untitled:${e}`}function U(n){for(;n.length;){let e=n.pop();e&&e.dispose()}}function Wl(n){try{cB.default.sync(n)}catch{return!1}return!0}function _o(n,e={},t){return En||(e.shell=e.shell||process.env.SHELL),e.maxBuffer=500*1024,new Promise((i,r)=>{let o,s;t&&(o=setTimeout(()=>{s.kill("SIGKILL"),r(new Error(`timeout after ${t}s`))},t*1e3)),s=(0,aB.exec)(n,e,(a,l,u)=>{if(o&&clearTimeout(o),a){r(new Error(`exited with ${a.code}
|
||
${a}
|
||
${u}`));return}i(l)})})}function Xc(n,e,t=!1){let i=(0,lB.default)(e,100);try{let r=uB.default.watch(n,{persistent:!0,recursive:!1,encoding:"utf8"},()=>{i()});return t&&setTimeout(e,10),Bl.Disposable.create(()=>{i.clear(),r.close()})}catch{return Bl.Disposable.create(()=>{i.clear()})}}function gB(n){try{return process.kill(n,0)==!0}catch(e){return e.code==="EPERM"}}function U0(n){return n=="n"||n=="o"||n=="x"||n=="v"?"<C-U>":n=="i"?"<C-o>":n=="s"?"<Esc>":""}function lw(n,e){let t,i=r=>{t&&clearTimeout(t),t=setTimeout(()=>{n()},r??e)};return Object.defineProperty(i,"clear",{get:()=>()=>{t&&clearTimeout(t)}}),i}function Yg(n,e,t=3){if(n.length==0)return Promise.resolve();let i=0,r=n.length,o=n.slice();return new Promise(s=>{let a=l=>{let u=()=>{if(i=i+1,i==r)s();else if(o.length){let c=o.shift();a(c)}};e(l).then(u,u)};for(let l=0;l<Math.min(t,o.length);l++){let u=o.shift();a(u)}})}var aB,lB,uB,$0,Bl,cB,cRe,Uc,re=k(()=>{"use strict";aB=require("child_process"),lB=S(Pn()),uB=S(require("fs")),$0=S(require("path")),Bl=S(W());Pe();cB=S(Bg());wi();$c();cRe=q()("util-index"),Uc="coc-settings.json"});function pB(n){return n instanceof ii?!0:n instanceof Error&&n.name===X0&&n.message===X0}function G0(n){return n?new Error(`Illegal argument: ${n}`):new Error("Illegal argument")}function z0(n){return new Error(`File ${n} already exists`)}function uw(n){return new Error(`File ${n} not exists`)}function fB(n){return new Error(`${n} should not be called in an asynchronize manner`)}function cw(n){return new Error(`Change of ${n} not supported`)}var X0,ii,xr=k(()=>{"use strict";X0="Canceled",ii=class extends Error{constructor(){super(X0),this.name=this.message}}});function mB(n){let e={};return Object.entries(n).forEach(([t,i])=>{i!==void 0&&(e[t]=i)}),e}function bB(n){let e={};for(let t of Object.keys(n))Object.defineProperty(e,t,{value:n[t],writable:!1,enumerable:!0});return e}function Rn(n){if(!n||typeof n!="object"||n instanceof RegExp)return n;let e=Array.isArray(n)?[]:{};return Object.keys(n).forEach(t=>{n[t]&&typeof n[t]=="object"?e[t]=Rn(n[t]):e[t]=n[t]}),e}function Qr(n,e){return yB.call(n,e)}function hw(n){if(!n||typeof n!="object")return n;let e=[n];for(;e.length>0;){let t=e.shift();Object.freeze(t);for(let i in t)if(yB.call(t,i)){let r=t[i];typeof r=="object"&&!Object.isFrozen(r)&&e.push(r)}}return n}function K0(n,e,t=!0){return hi(n)?(hi(e)&&Object.keys(e).forEach(i=>{i in n?t&&(hi(n[i])&&hi(e[i])?K0(n[i],e[i],t):n[i]=e[i]):n[i]=e[i]}),n):e}function ye(n,e){if(n===e)return!0;if(n==null||e===null||e===void 0||typeof n!=typeof e||typeof n!="object"||Array.isArray(n)!==Array.isArray(e))return!1;let t,i;if(Array.isArray(n)){if(n.length!==e.length)return!1;for(t=0;t<n.length;t++)if(!ye(n[t],e[t]))return!1}else{let r=[];for(i in n)r.push(i);r.sort();let o=[];for(i in e)o.push(i);if(o.sort(),!ye(r,o))return!1;for(t=0;t<r.length;t++)if(!ye(n[r[t]],e[r[t]]))return!1}return!0}var yB,et=k(()=>{"use strict";wi();yB=Object.prototype.hasOwnProperty});function vB(n){return n>=97&&n<=122?1:n>=65&&n<=90?2:0}function xB(n,e){let t=e==0?0:vB(n[e-1]);for(let i=e;i<n.length;i++){let r=vB(n[i]);if(r>0&&r!=t)return[i,n[i]];t=r}}function CB(n,e){let t=[];for(let i=0;i<n.length;i++)n[i]==e&&t.push(i);return t}function Q(n){return Buffer.byteLength(n)}function _n(n){return(n==null?void 0:n.length)>0?n[0].toUpperCase()+n.slice(1):""}function _t(n,e){return Buffer.byteLength(n.slice(0,e),"utf8")}function Gi(n,e){if(e==0)return 0;let t=0,i=0;for(let r of n){let o=r.codePointAt(0);if(o>=wB?(t+=2,i+=4):(t+=1,i+=Dpe(o)),i>=e)break}return t}function Dpe(n){return n<Cpe?1:n<Spe?2:n<wB?3:4}function tt(n,e,t){return Buffer.from(n,"utf8").slice(e,t).toString("utf8")}function SB(n){let e=n.charCodeAt(0);return e>128?!1:!!(e==95||e>=48&&e<=57||Q0(e))}function Q0(n){return n>=65&&n<=90||n>=97&&n<=122}function DB(n,e){return e&&n.endsWith(`
|
||
`)?n.slice(0,-1).split(`
|
||
`):n.split(`
|
||
`)}function TB(n){for(let e=0,t=n.length;e<t;e++){let i=n.charCodeAt(e);if(i>=65&&i<=90)return!0}return!1}function Tpe(n,e){if(n===e)return!0;let t=e.charCodeAt(0);return t>=65&&t<=90&&t+32===n.charCodeAt(0)}function kB(n,e){if(n.length>e.length)return-1;if(n.length===0)return 0;if(!TB(n))return e.toLowerCase().indexOf(n);let t=n.length,i=0;for(let r=0;r<e.length;r++){let o=e[r];if(Tpe(n[i],o)){if(i++,i===t)return r-i+1}else i>0&&(r=r-i,i=0)}return-1}var Cpe,Spe,wB,_e=k(()=>{"use strict";Cpe=128,Spe=2048,wB=65536});function Ppe(n){var e;return!!(n instanceof ii||n instanceof Error&&((e=n.message)==null?void 0:e.includes("transport disconnected")))}var Gc,PB,kpe,V0,P,fe=k(()=>{"use strict";Gc=S(W());re();xr();wi();et();_e();PB=q()("events"),kpe=["BufWritePre"],V0=class{constructor(){this.handlers=new Map;this._recentInserts=[];this._lastChange=0;this._insertMode=!1;this._pumAlignTop=!1;this._pumVisible=!1;this._completing=!1;this._requesting=!1;this.timeout=1e3}set requesting(e){this._requesting=e}get requesting(){return this._requesting}set completing(e){this._completing=e,this._pumVisible=e}get completing(){return this._completing}get cursor(){return this._cursor??{bufnr:this._bufnr,col:1,lnum:1,insert:!1}}get bufnr(){return this._bufnr}get pumvisible(){return this._pumVisible}get pumAlignTop(){return this._pumAlignTop}get insertMode(){return this._insertMode}get lastChangeTs(){return this._lastChange}race(e,t){let i=[];return new Promise(r=>{if(typeof t=="number"){let o=setTimeout(()=>{U(i),r(void 0)},t);i.push(Gc.Disposable.create(()=>{clearTimeout(o)}))}else Gc.CancellationToken.is(t)&&t.onCancellationRequested(()=>{U(i),r(void 0)},null,i);e.forEach(o=>{this.on(o,(...s)=>{U(i),r({name:o,args:s})},null,i)})})}async fire(e,t){let i=this.handlers.get(e);if(e=="InsertEnter")this._insertMode=!0;else if(e=="InsertLeave")this._insertMode=!1,this._pumVisible=!1,this._recentInserts=[];else if(e=="CursorHoldI"||e=="CursorMovedI")this._bufnr=t[0],this._insertMode||(this._insertMode=!0,this.fire("InsertEnter",[t[0]]));else if(e=="CursorHold"||e=="CursorMoved")this._bufnr=t[0],this._insertMode&&(this._insertMode=!1,this.fire("InsertLeave",[t[0]]));else if(e=="MenuPopupChanged")this._pumVisible=!0,this._pumAlignTop=t[1]>t[0].row;else if(e=="InsertCharPre")this._recentInserts.push([t[1],t[0]]);else if(e=="TextChanged")this._lastChange=Date.now();else if(e=="BufEnter")this._bufnr=t[0];else if(e=="TextChangedI"||e=="TextChangedP"){let r=this._recentInserts.filter(a=>a[0]==t[0]);this._bufnr=t[0],this._recentInserts=[],this._lastChange=Date.now();let o=t[1],s=tt(o.line??"",0,o.col-1);if(o.pre=s,this._cursor=Object.freeze({bufnr:t[0],lnum:o.lnum,col:o.col,insert:!0}),r.length&&s.length){let a=s.slice(-1);r.findIndex(l=>l[1]==a)!==-1&&(o.insertChar=a,process.nextTick(()=>{this.fire("TextInsert",[...t,a])}))}}if(e=="CursorMoved"||e=="CursorMovedI"){t.push(this._recentInserts.length>0);let r={bufnr:t[0],lnum:t[1][0],col:t[1][1],insert:e=="CursorMovedI"};if(this._cursor&&ye(this._cursor,r))return;this._cursor=Object.freeze(r)}if(i!=null&&i.length){let r=i.slice(),o=kpe.includes(e);t.forEach(s=>{hi(s)&&bB(s)}),await Promise.allSettled(r.map(s=>(async()=>{let l;o&&(l=setTimeout(()=>{console.error(`Slow "${e}" handler detected`,s.stack),PB.error(`Slow "${e}" handler detected`,s.stack)},this.timeout));try{await s(t)}catch(u){Ppe(u)||PB.error(`Error on event: ${e}`,u instanceof Error?u.stack:u)}clearTimeout(l)})()))}}on(e,t,i,r){if(Array.isArray(e)){let o=r||[];for(let s of e)this.on(s,t,i,o);return Gc.Disposable.create(()=>{U(o)})}else{let o=this.handlers.get(e)||[],s=l=>new Promise((u,c)=>{try{Promise.resolve(t.apply(i??null,l)).then(()=>{u(void 0)},h=>{c(h)})}catch(h){c(h)}});Error.captureStackTrace(s),o.push(s),this.handlers.set(e,o);let a=Gc.Disposable.create(()=>{let l=o.indexOf(s);l!==-1&&o.splice(l,1)});return Array.isArray(r)&&r.push(a),a}}};P=new V0});function dw(n){return Array.isArray(n)?n:n==null?[]:[n]}function Je(n){return!Array.isArray(n)||n.length===0}function Epe(n,e){return n<e[0]?1:n>e[1]?-1:0}function eE(n,e){let t=0,i=e.length-1;for(;t<=i;){let r=(t+i)/2|0,o=Epe(n,e[r]);if(o<0)t=r+1;else if(o>0)i=r-1;else return!0}return!1}function EB(n,e,t){return Rpe(n.length,i=>t(n[i],e))}function Rpe(n,e){let t=0,i=n-1;for(;t<=i;){let r=(t+i)/2|0,o=e(r);if(o<0)t=r+1;else if(o>0)i=r-1;else return r}return-(t+1)}function Zg(n,e){for(let t of e)if(n.includes(t))return!0;return!1}function RB(n,e,t=0){let i=-1;for(let r=t;r<n.length;r++)if(n[r]===e){i=r;break}return i}function gw(n,e){let t=[[],[]];for(let i of n)e(i)?t[0].push(i):t[1].push(i);return t}function _B(n,e){let t=[[],[]];return n.forEach(i=>{e(i)?t[0].push(i):t[1].push(i)}),t}function Ai(n,e){if(!e)return n.filter((i,r)=>n.indexOf(i)===r);let t=Object.create(null);return n.filter(i=>{let r=e(i);return t[r]?!1:(t[r]=!0,!0)})}var nt=k(()=>{"use strict"});var LB=y(tE=>{var Yl=require("path"),ya=process.platform==="win32",ba=require("fs"),_pe=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function Lpe(){var n;if(_pe){var e=new Error;n=t}else n=i;return n;function t(r){r&&(e.message=r.message,r=e,i(r))}function i(r){if(r){if(process.throwDeprecation)throw r;if(!process.noDeprecation){var o="fs: missing callback "+(r.stack||r.message);process.traceDeprecation?console.trace(o):console.error(o)}}}}function Ipe(n){return typeof n=="function"?n:Lpe()}var xRe=Yl.normalize;ya?cs=/(.*?)(?:[\/\\]+|$)/g:cs=/(.*?)(?:[\/]+|$)/g;var cs;ya?Jg=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/:Jg=/^[\/]*/;var Jg;tE.realpathSync=function(e,t){if(e=Yl.resolve(e),t&&Object.prototype.hasOwnProperty.call(t,e))return t[e];var i=e,r={},o={},s,a,l,u;c();function c(){var m=Jg.exec(e);s=m[0].length,a=m[0],l=m[0],u="",ya&&!o[l]&&(ba.lstatSync(l),o[l]=!0)}for(;s<e.length;){cs.lastIndex=s;var h=cs.exec(e);if(u=a,a+=h[0],l=u+h[1],s=cs.lastIndex,!(o[l]||t&&t[l]===l)){var d;if(t&&Object.prototype.hasOwnProperty.call(t,l))d=t[l];else{var g=ba.lstatSync(l);if(!g.isSymbolicLink()){o[l]=!0,t&&(t[l]=l);continue}var p=null;if(!ya){var f=g.dev.toString(32)+":"+g.ino.toString(32);r.hasOwnProperty(f)&&(p=r[f])}p===null&&(ba.statSync(l),p=ba.readlinkSync(l)),d=Yl.resolve(u,p),t&&(t[l]=d),ya||(r[f]=p)}e=Yl.resolve(d,e.slice(s)),c()}}return t&&(t[i]=e),e};tE.realpath=function(e,t,i){if(typeof i!="function"&&(i=Ipe(t),t=null),e=Yl.resolve(e),t&&Object.prototype.hasOwnProperty.call(t,e))return process.nextTick(i.bind(null,null,t[e]));var r=e,o={},s={},a,l,u,c;h();function h(){var m=Jg.exec(e);a=m[0].length,l=m[0],u=m[0],c="",ya&&!s[u]?ba.lstat(u,function(b){if(b)return i(b);s[u]=!0,d()}):process.nextTick(d)}function d(){if(a>=e.length)return t&&(t[r]=e),i(null,e);cs.lastIndex=a;var m=cs.exec(e);return c=l,l+=m[0],u=c+m[1],a=cs.lastIndex,s[u]||t&&t[u]===u?process.nextTick(d):t&&Object.prototype.hasOwnProperty.call(t,u)?f(t[u]):ba.lstat(u,g)}function g(m,b){if(m)return i(m);if(!b.isSymbolicLink())return s[u]=!0,t&&(t[u]=u),process.nextTick(d);if(!ya){var w=b.dev.toString(32)+":"+b.ino.toString(32);if(o.hasOwnProperty(w))return p(null,o[w],u)}ba.stat(u,function(x){if(x)return i(x);ba.readlink(u,function(T,R){ya||(o[w]=R),p(T,R)})})}function p(m,b,w){if(m)return i(m);var x=Yl.resolve(c,b);t&&(t[w]=x),f(x)}function f(m){e=Yl.resolve(m,e.slice(a)),h()}}});var oE=y((SRe,MB)=>{MB.exports=va;va.realpath=va;va.sync=rE;va.realpathSync=rE;va.monkeypatch=jpe;va.unmonkeypatch=Mpe;var zc=require("fs"),iE=zc.realpath,nE=zc.realpathSync,Fpe=process.version,IB=/^v[0-5]\./.test(Fpe),FB=LB();function jB(n){return n&&n.syscall==="realpath"&&(n.code==="ELOOP"||n.code==="ENOMEM"||n.code==="ENAMETOOLONG")}function va(n,e,t){if(IB)return iE(n,e,t);typeof e=="function"&&(t=e,e=null),iE(n,e,function(i,r){jB(i)?FB.realpath(n,e,t):t(i,r)})}function rE(n,e){if(IB)return nE(n,e);try{return nE(n,e)}catch(t){if(jB(t))return FB.realpathSync(n,e);throw t}}function jpe(){zc.realpath=va,zc.realpathSync=rE}function Mpe(){zc.realpath=iE,zc.realpathSync=nE}});var AB=y((DRe,OB)=>{OB.exports=function(n,e){for(var t=[],i=0;i<n.length;i++){var r=e(n[i],i);Ope(r)?t.push.apply(t,r):t.push(r)}return t};var Ope=Array.isArray||function(n){return Object.prototype.toString.call(n)==="[object Array]"}});var sE=y((TRe,BB)=>{"use strict";BB.exports=HB;function HB(n,e,t){n instanceof RegExp&&(n=NB(n,t)),e instanceof RegExp&&(e=NB(e,t));var i=qB(n,e,t);return i&&{start:i[0],end:i[1],pre:t.slice(0,i[0]),body:t.slice(i[0]+n.length,i[1]),post:t.slice(i[1]+e.length)}}function NB(n,e){var t=e.match(n);return t?t[0]:null}HB.range=qB;function qB(n,e,t){var i,r,o,s,a,l=t.indexOf(n),u=t.indexOf(e,l+1),c=l;if(l>=0&&u>0){if(n===e)return[l,u];for(i=[],o=t.length;c>=0&&!a;)c==l?(i.push(c),l=t.indexOf(n,c+1)):i.length==1?a=[i.pop(),u]:(r=i.pop(),r<o&&(o=r,s=u),u=t.indexOf(e,c+1)),c=l<u&&l>=0?l:u;i.length&&(a=[o,s])}return a}});var GB=y((kRe,XB)=>{var Ape=AB(),WB=sE();XB.exports=qpe;var YB="\0SLASH"+Math.random()+"\0",ZB="\0OPEN"+Math.random()+"\0",lE="\0CLOSE"+Math.random()+"\0",JB="\0COMMA"+Math.random()+"\0",$B="\0PERIOD"+Math.random()+"\0";function aE(n){return parseInt(n,10)==n?parseInt(n,10):n.charCodeAt(0)}function Npe(n){return n.split("\\\\").join(YB).split("\\{").join(ZB).split("\\}").join(lE).split("\\,").join(JB).split("\\.").join($B)}function Hpe(n){return n.split(YB).join("\\").split(ZB).join("{").split(lE).join("}").split(JB).join(",").split($B).join(".")}function UB(n){if(!n)return[""];var e=[],t=WB("{","}",n);if(!t)return n.split(",");var i=t.pre,r=t.body,o=t.post,s=i.split(",");s[s.length-1]+="{"+r+"}";var a=UB(o);return o.length&&(s[s.length-1]+=a.shift(),s.push.apply(s,a)),e.push.apply(e,s),e}function qpe(n){return n?(n.substr(0,2)==="{}"&&(n="\\{\\}"+n.substr(2)),Kc(Npe(n),!0).map(Hpe)):[]}function Bpe(n){return"{"+n+"}"}function Wpe(n){return/^-?0\d/.test(n)}function Ype(n,e){return n<=e}function Zpe(n,e){return n>=e}function Kc(n,e){var t=[],i=WB("{","}",n);if(!i||/\$$/.test(i.pre))return[n];var r=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),o=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),s=r||o,a=i.body.indexOf(",")>=0;if(!s&&!a)return i.post.match(/,.*\}/)?(n=i.pre+"{"+i.body+lE+i.post,Kc(n)):[n];var l;if(s)l=i.body.split(/\.\./);else if(l=UB(i.body),l.length===1&&(l=Kc(l[0],!1).map(Bpe),l.length===1)){var c=i.post.length?Kc(i.post,!1):[""];return c.map(function(L){return i.pre+l[0]+L})}var u=i.pre,c=i.post.length?Kc(i.post,!1):[""],h;if(s){var d=aE(l[0]),g=aE(l[1]),p=Math.max(l[0].length,l[1].length),f=l.length==3?Math.abs(aE(l[2])):1,m=Ype,b=g<d;b&&(f*=-1,m=Zpe);var w=l.some(Wpe);h=[];for(var x=d;m(x,g);x+=f){var T;if(o)T=String.fromCharCode(x),T==="\\"&&(T="");else if(T=String(x),w){var R=p-T.length;if(R>0){var F=new Array(R+1).join("0");x<0?T="-"+F+T.slice(1):T=F+T}}h.push(T)}}else h=Ape(l,function(M){return Kc(M,!1)});for(var N=0;N<h.length;N++)for(var J=0;J<c.length;J++){var H=u+h[N]+c[J];(!e||s||H)&&t.push(H)}return t}});var fw=y((PRe,tW)=>{tW.exports=Cr;Cr.Minimatch=xi;var $g={sep:"/"};try{$g=require("path")}catch{}var hE=Cr.GLOBSTAR=xi.GLOBSTAR={},Jpe=GB(),zB={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},uE="[^/]",cE=uE+"*?",$pe="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",Upe="(?:(?!(?:\\/|^)\\.).)*?",KB=Xpe("().*{}+?[]^$\\!");function Xpe(n){return n.split("").reduce(function(e,t){return e[t]=!0,e},{})}var VB=/\/+/;Cr.filter=Gpe;function Gpe(n,e){return e=e||{},function(t,i,r){return Cr(t,n,e)}}function QB(n,e){n=n||{},e=e||{};var t={};return Object.keys(e).forEach(function(i){t[i]=e[i]}),Object.keys(n).forEach(function(i){t[i]=n[i]}),t}Cr.defaults=function(n){if(!n||!Object.keys(n).length)return Cr;var e=Cr,t=function(r,o,s){return e.minimatch(r,o,QB(n,s))};return t.Minimatch=function(r,o){return new e.Minimatch(r,QB(n,o))},t};xi.defaults=function(n){return!n||!Object.keys(n).length?xi:Cr.defaults(n).Minimatch};function Cr(n,e,t){if(typeof e!="string")throw new TypeError("glob pattern string required");return t||(t={}),!t.nocomment&&e.charAt(0)==="#"?!1:e.trim()===""?n==="":new xi(e,t).match(n)}function xi(n,e){if(!(this instanceof xi))return new xi(n,e);if(typeof n!="string")throw new TypeError("glob pattern string required");e||(e={}),n=n.trim(),$g.sep!=="/"&&(n=n.split($g.sep).join("/")),this.options=e,this.set=[],this.pattern=n,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}xi.prototype.debug=function(){};xi.prototype.make=zpe;function zpe(){if(!this._made){var n=this.pattern,e=this.options;if(!e.nocomment&&n.charAt(0)==="#"){this.comment=!0;return}if(!n){this.empty=!0;return}this.parseNegate();var t=this.globSet=this.braceExpand();e.debug&&(this.debug=console.error),this.debug(this.pattern,t),t=this.globParts=t.map(function(i){return i.split(VB)}),this.debug(this.pattern,t),t=t.map(function(i,r,o){return i.map(this.parse,this)},this),this.debug(this.pattern,t),t=t.filter(function(i){return i.indexOf(!1)===-1}),this.debug(this.pattern,t),this.set=t}}xi.prototype.parseNegate=Kpe;function Kpe(){var n=this.pattern,e=!1,t=this.options,i=0;if(!t.nonegate){for(var r=0,o=n.length;r<o&&n.charAt(r)==="!";r++)e=!e,i++;i&&(this.pattern=n.substr(i)),this.negate=e}}Cr.braceExpand=function(n,e){return eW(n,e)};xi.prototype.braceExpand=eW;function eW(n,e){if(e||(this instanceof xi?e=this.options:e={}),n=typeof n>"u"?this.pattern:n,typeof n>"u")throw new TypeError("undefined pattern");return e.nobrace||!n.match(/\{.*\}/)?[n]:Jpe(n)}xi.prototype.parse=Qpe;var pw={};function Qpe(n,e){if(n.length>1024*64)throw new TypeError("pattern is too long");var t=this.options;if(!t.noglobstar&&n==="**")return hE;if(n==="")return"";var i="",r=!!t.nocase,o=!1,s=[],a=[],l,u=!1,c=-1,h=-1,d=n.charAt(0)==="."?"":t.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",g=this;function p(){if(l){switch(l){case"*":i+=cE,r=!0;break;case"?":i+=uE,r=!0;break;default:i+="\\"+l;break}g.debug("clearStateChar %j %j",l,i),l=!1}}for(var f=0,m=n.length,b;f<m&&(b=n.charAt(f));f++){if(this.debug("%s %s %s %j",n,f,i,b),o&&KB[b]){i+="\\"+b,o=!1;continue}switch(b){case"/":return!1;case"\\":p(),o=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",n,f,i,b),u){this.debug(" in class"),b==="!"&&f===h+1&&(b="^"),i+=b;continue}g.debug("call clearStateChar %j",l),p(),l=b,t.noext&&p();continue;case"(":if(u){i+="(";continue}if(!l){i+="\\(";continue}s.push({type:l,start:f-1,reStart:i.length,open:zB[l].open,close:zB[l].close}),i+=l==="!"?"(?:(?!(?:":"(?:",this.debug("plType %j %j",l,i),l=!1;continue;case")":if(u||!s.length){i+="\\)";continue}p(),r=!0;var w=s.pop();i+=w.close,w.type==="!"&&a.push(w),w.reEnd=i.length;continue;case"|":if(u||!s.length||o){i+="\\|",o=!1;continue}p(),i+="|";continue;case"[":if(p(),u){i+="\\"+b;continue}u=!0,h=f,c=i.length,i+=b;continue;case"]":if(f===h+1||!u){i+="\\"+b,o=!1;continue}if(u){var x=n.substring(h+1,f);try{RegExp("["+x+"]")}catch{var T=this.parse(x,pw);i=i.substr(0,c)+"\\["+T[0]+"\\]",r=r||T[1],u=!1;continue}}r=!0,u=!1,i+=b;continue;default:p(),o?o=!1:KB[b]&&!(b==="^"&&u)&&(i+="\\"),i+=b}}for(u&&(x=n.substr(h+1),T=this.parse(x,pw),i=i.substr(0,c)+"\\["+T[0],r=r||T[1]),w=s.pop();w;w=s.pop()){var R=i.slice(w.reStart+w.open.length);this.debug("setting tail",i,w),R=R.replace(/((?:\\{2}){0,64})(\\?)\|/g,function(V,Re,Ee){return Ee||(Ee="\\"),Re+Re+Ee+"|"}),this.debug(`tail=%j
|
||
%s`,R,R,w,i);var F=w.type==="*"?cE:w.type==="?"?uE:"\\"+w.type;r=!0,i=i.slice(0,w.reStart)+F+"\\("+R}p(),o&&(i+="\\\\");var N=!1;switch(i.charAt(0)){case".":case"[":case"(":N=!0}for(var J=a.length-1;J>-1;J--){var H=a[J],M=i.slice(0,H.reStart),L=i.slice(H.reStart,H.reEnd-8),O=i.slice(H.reEnd-8,H.reEnd),Z=i.slice(H.reEnd);O+=Z;var ne=M.split("(").length-1,be=Z;for(f=0;f<ne;f++)be=be.replace(/\)[+*?]?/,"");Z=be;var He="";Z===""&&e!==pw&&(He="$");var $=M+L+Z+He+O;i=$}if(i!==""&&r&&(i="(?=.)"+i),N&&(i=d+i),e===pw)return[i,r];if(!r)return tfe(n);var B=t.nocase?"i":"";try{var G=new RegExp("^"+i+"$",B)}catch{return new RegExp("$.")}return G._glob=n,G._src=i,G}Cr.makeRe=function(n,e){return new xi(n,e||{}).makeRe()};xi.prototype.makeRe=Vpe;function Vpe(){if(this.regexp||this.regexp===!1)return this.regexp;var n=this.set;if(!n.length)return this.regexp=!1,this.regexp;var e=this.options,t=e.noglobstar?cE:e.dot?$pe:Upe,i=e.nocase?"i":"",r=n.map(function(o){return o.map(function(s){return s===hE?t:typeof s=="string"?ife(s):s._src}).join("\\/")}).join("|");r="^(?:"+r+")$",this.negate&&(r="^(?!"+r+").*$");try{this.regexp=new RegExp(r,i)}catch{this.regexp=!1}return this.regexp}Cr.match=function(n,e,t){t=t||{};var i=new xi(e,t);return n=n.filter(function(r){return i.match(r)}),i.options.nonull&&!n.length&&n.push(e),n};xi.prototype.match=efe;function efe(n,e){if(this.debug("match",n,this.pattern),this.comment)return!1;if(this.empty)return n==="";if(n==="/"&&e)return!0;var t=this.options;$g.sep!=="/"&&(n=n.split($g.sep).join("/")),n=n.split(VB),this.debug(this.pattern,"split",n);var i=this.set;this.debug(this.pattern,"set",i);var r,o;for(o=n.length-1;o>=0&&(r=n[o],!r);o--);for(o=0;o<i.length;o++){var s=i[o],a=n;t.matchBase&&s.length===1&&(a=[r]);var l=this.matchOne(a,s,e);if(l)return t.flipNegate?!0:!this.negate}return t.flipNegate?!1:this.negate}xi.prototype.matchOne=function(n,e,t){var i=this.options;this.debug("matchOne",{this:this,file:n,pattern:e}),this.debug("matchOne",n.length,e.length);for(var r=0,o=0,s=n.length,a=e.length;r<s&&o<a;r++,o++){this.debug("matchOne loop");var l=e[o],u=n[r];if(this.debug(e,l,u),l===!1)return!1;if(l===hE){this.debug("GLOBSTAR",[e,l,u]);var c=r,h=o+1;if(h===a){for(this.debug("** at the end");r<s;r++)if(n[r]==="."||n[r]===".."||!i.dot&&n[r].charAt(0)===".")return!1;return!0}for(;c<s;){var d=n[c];if(this.debug(`
|
||
globstar while`,n,c,e,h,d),this.matchOne(n.slice(c),e.slice(h),t))return this.debug("globstar found match!",c,s,d),!0;if(d==="."||d===".."||!i.dot&&d.charAt(0)==="."){this.debug("dot detected!",n,c,e,h);break}this.debug("globstar swallow a segment, and continue"),c++}return!!(t&&(this.debug(`
|
||
>>> no match, partial?`,n,c,e,h),c===s))}var g;if(typeof l=="string"?(i.nocase?g=u.toLowerCase()===l.toLowerCase():g=u===l,this.debug("string match",l,u,g)):(g=u.match(l),this.debug("pattern match",l,u,g)),!g)return!1}if(r===s&&o===a)return!0;if(r===s)return t;if(o===a){var p=r===s-1&&n[r]==="";return p}throw new Error("wtf?")};function tfe(n){return n.replace(/\\(.)/g,"$1")}function ife(n){return n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var iW=y((ERe,dE)=>{typeof Object.create=="function"?dE.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:dE.exports=function(e,t){if(t){e.super_=t;var i=function(){};i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e}}});var nW=y((RRe,pE)=>{try{if(gE=require("util"),typeof gE.inherits!="function")throw"";pE.exports=gE.inherits}catch{pE.exports=iW()}var gE});var bw=y((_Re,mw)=>{"use strict";function rW(n){return n.charAt(0)==="/"}function oW(n){var e=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,t=e.exec(n),i=t[1]||"",r=Boolean(i&&i.charAt(1)!==":");return Boolean(t[2]||r)}mw.exports=process.platform==="win32"?oW:rW;mw.exports.posix=rW;mw.exports.win32=oW});var mE=y(wa=>{wa.setopts=lfe;wa.ownProp=sW;wa.makeAbs=Ug;wa.finish=ufe;wa.mark=cfe;wa.isIgnored=lW;wa.childrenIgnored=hfe;function sW(n,e){return Object.prototype.hasOwnProperty.call(n,e)}var nfe=require("fs"),Qc=require("path"),rfe=fw(),aW=bw(),fE=rfe.Minimatch;function ofe(n,e){return n.localeCompare(e,"en")}function sfe(n,e){n.ignore=e.ignore||[],Array.isArray(n.ignore)||(n.ignore=[n.ignore]),n.ignore.length&&(n.ignore=n.ignore.map(afe))}function afe(n){var e=null;if(n.slice(-3)==="/**"){var t=n.replace(/(\/\*\*)+$/,"");e=new fE(t,{dot:!0})}return{matcher:new fE(n,{dot:!0}),gmatcher:e}}function lfe(n,e,t){if(t||(t={}),t.matchBase&&e.indexOf("/")===-1){if(t.noglobstar)throw new Error("base matching requires globstar");e="**/"+e}n.silent=!!t.silent,n.pattern=e,n.strict=t.strict!==!1,n.realpath=!!t.realpath,n.realpathCache=t.realpathCache||Object.create(null),n.follow=!!t.follow,n.dot=!!t.dot,n.mark=!!t.mark,n.nodir=!!t.nodir,n.nodir&&(n.mark=!0),n.sync=!!t.sync,n.nounique=!!t.nounique,n.nonull=!!t.nonull,n.nosort=!!t.nosort,n.nocase=!!t.nocase,n.stat=!!t.stat,n.noprocess=!!t.noprocess,n.absolute=!!t.absolute,n.fs=t.fs||nfe,n.maxLength=t.maxLength||1/0,n.cache=t.cache||Object.create(null),n.statCache=t.statCache||Object.create(null),n.symlinks=t.symlinks||Object.create(null),sfe(n,t),n.changedCwd=!1;var i=process.cwd();sW(t,"cwd")?(n.cwd=Qc.resolve(t.cwd),n.changedCwd=n.cwd!==i):n.cwd=i,n.root=t.root||Qc.resolve(n.cwd,"/"),n.root=Qc.resolve(n.root),process.platform==="win32"&&(n.root=n.root.replace(/\\/g,"/")),n.cwdAbs=aW(n.cwd)?n.cwd:Ug(n,n.cwd),process.platform==="win32"&&(n.cwdAbs=n.cwdAbs.replace(/\\/g,"/")),n.nomount=!!t.nomount,t.nonegate=!0,t.nocomment=!0,n.minimatch=new fE(e,t),n.options=n.minimatch.options}function ufe(n){for(var e=n.nounique,t=e?[]:Object.create(null),i=0,r=n.matches.length;i<r;i++){var o=n.matches[i];if(!o||Object.keys(o).length===0){if(n.nonull){var s=n.minimatch.globSet[i];e?t.push(s):t[s]=!0}}else{var a=Object.keys(o);e?t.push.apply(t,a):a.forEach(function(l){t[l]=!0})}}if(e||(t=Object.keys(t)),n.nosort||(t=t.sort(ofe)),n.mark){for(var i=0;i<t.length;i++)t[i]=n._mark(t[i]);n.nodir&&(t=t.filter(function(l){var u=!/\/$/.test(l),c=n.cache[l]||n.cache[Ug(n,l)];return u&&c&&(u=c!=="DIR"&&!Array.isArray(c)),u}))}n.ignore.length&&(t=t.filter(function(l){return!lW(n,l)})),n.found=t}function cfe(n,e){var t=Ug(n,e),i=n.cache[t],r=e;if(i){var o=i==="DIR"||Array.isArray(i),s=e.slice(-1)==="/";if(o&&!s?r+="/":!o&&s&&(r=r.slice(0,-1)),r!==e){var a=Ug(n,r);n.statCache[a]=n.statCache[t],n.cache[a]=n.cache[t]}}return r}function Ug(n,e){var t=e;return e.charAt(0)==="/"?t=Qc.join(n.root,e):aW(e)||e===""?t=e:n.changedCwd?t=Qc.resolve(n.cwd,e):t=Qc.resolve(e),process.platform==="win32"&&(t=t.replace(/\\/g,"/")),t}function lW(n,e){return n.ignore.length?n.ignore.some(function(t){return t.matcher.match(e)||!!(t.gmatcher&&t.gmatcher.match(e))}):!1}function hfe(n,e){return n.ignore.length?n.ignore.some(function(t){return!!(t.gmatcher&&t.gmatcher.match(e))}):!1}});var gW=y((MRe,dW)=>{dW.exports=hW;hW.GlobSync=di;var dfe=oE(),uW=fw(),IRe=uW.Minimatch,FRe=vw().Glob,jRe=require("util"),bE=require("path"),cW=require("assert"),yw=bw(),Zl=mE(),gfe=Zl.setopts,yE=Zl.ownProp,pfe=Zl.childrenIgnored,ffe=Zl.isIgnored;function hW(n,e){if(typeof e=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob
|
||
See: https://github.com/isaacs/node-glob/issues/167`);return new di(n,e).found}function di(n,e){if(!n)throw new Error("must provide pattern");if(typeof e=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob
|
||
See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof di))return new di(n,e);if(gfe(this,n,e),this.noprocess)return this;var t=this.minimatch.set.length;this.matches=new Array(t);for(var i=0;i<t;i++)this._process(this.minimatch.set[i],i,!1);this._finish()}di.prototype._finish=function(){if(cW(this instanceof di),this.realpath){var n=this;this.matches.forEach(function(e,t){var i=n.matches[t]=Object.create(null);for(var r in e)try{r=n._makeAbs(r);var o=dfe.realpathSync(r,n.realpathCache);i[o]=!0}catch(s){if(s.syscall==="stat")i[n._makeAbs(r)]=!0;else throw s}})}Zl.finish(this)};di.prototype._process=function(n,e,t){cW(this instanceof di);for(var i=0;typeof n[i]=="string";)i++;var r;switch(i){case n.length:this._processSimple(n.join("/"),e);return;case 0:r=null;break;default:r=n.slice(0,i).join("/");break}var o=n.slice(i),s;r===null?s=".":((yw(r)||yw(n.join("/")))&&(!r||!yw(r))&&(r="/"+r),s=r);var a=this._makeAbs(s);if(!pfe(this,s)){var l=o[0]===uW.GLOBSTAR;l?this._processGlobStar(r,s,a,o,e,t):this._processReaddir(r,s,a,o,e,t)}};di.prototype._processReaddir=function(n,e,t,i,r,o){var s=this._readdir(t,o);if(!!s){for(var a=i[0],l=!!this.minimatch.negate,u=a._glob,c=this.dot||u.charAt(0)===".",h=[],d=0;d<s.length;d++){var g=s[d];if(g.charAt(0)!=="."||c){var p;l&&!n?p=!g.match(a):p=g.match(a),p&&h.push(g)}}var f=h.length;if(f!==0){if(i.length===1&&!this.mark&&!this.stat){this.matches[r]||(this.matches[r]=Object.create(null));for(var d=0;d<f;d++){var g=h[d];n&&(n.slice(-1)!=="/"?g=n+"/"+g:g=n+g),g.charAt(0)==="/"&&!this.nomount&&(g=bE.join(this.root,g)),this._emitMatch(r,g)}return}i.shift();for(var d=0;d<f;d++){var g=h[d],m;n?m=[n,g]:m=[g],this._process(m.concat(i),r,o)}}}};di.prototype._emitMatch=function(n,e){if(!ffe(this,e)){var t=this._makeAbs(e);if(this.mark&&(e=this._mark(e)),this.absolute&&(e=t),!this.matches[n][e]){if(this.nodir){var i=this.cache[t];if(i==="DIR"||Array.isArray(i))return}this.matches[n][e]=!0,this.stat&&this._stat(e)}}};di.prototype._readdirInGlobStar=function(n){if(this.follow)return this._readdir(n,!1);var e,t,i;try{t=this.fs.lstatSync(n)}catch(o){if(o.code==="ENOENT")return null}var r=t&&t.isSymbolicLink();return this.symlinks[n]=r,!r&&t&&!t.isDirectory()?this.cache[n]="FILE":e=this._readdir(n,!1),e};di.prototype._readdir=function(n,e){var t;if(e&&!yE(this.symlinks,n))return this._readdirInGlobStar(n);if(yE(this.cache,n)){var i=this.cache[n];if(!i||i==="FILE")return null;if(Array.isArray(i))return i}try{return this._readdirEntries(n,this.fs.readdirSync(n))}catch(r){return this._readdirError(n,r),null}};di.prototype._readdirEntries=function(n,e){if(!this.mark&&!this.stat)for(var t=0;t<e.length;t++){var i=e[t];n==="/"?i=n+i:i=n+"/"+i,this.cache[i]=!0}return this.cache[n]=e,e};di.prototype._readdirError=function(n,e){switch(e.code){case"ENOTSUP":case"ENOTDIR":var t=this._makeAbs(n);if(this.cache[t]="FILE",t===this.cwdAbs){var i=new Error(e.code+" invalid cwd "+this.cwd);throw i.path=this.cwd,i.code=e.code,i}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(n)]=!1;break;default:if(this.cache[this._makeAbs(n)]=!1,this.strict)throw e;this.silent||console.error("glob error",e);break}};di.prototype._processGlobStar=function(n,e,t,i,r,o){var s=this._readdir(t,o);if(!!s){var a=i.slice(1),l=n?[n]:[],u=l.concat(a);this._process(u,r,!1);var c=s.length,h=this.symlinks[t];if(!(h&&o))for(var d=0;d<c;d++){var g=s[d];if(!(g.charAt(0)==="."&&!this.dot)){var p=l.concat(s[d],a);this._process(p,r,!0);var f=l.concat(s[d],i);this._process(f,r,!0)}}}};di.prototype._processSimple=function(n,e){var t=this._stat(n);if(this.matches[e]||(this.matches[e]=Object.create(null)),!!t){if(n&&yw(n)&&!this.nomount){var i=/[\/\\]$/.test(n);n.charAt(0)==="/"?n=bE.join(this.root,n):(n=bE.resolve(this.root,n),i&&(n+="/"))}process.platform==="win32"&&(n=n.replace(/\\/g,"/")),this._emitMatch(e,n)}};di.prototype._stat=function(n){var e=this._makeAbs(n),t=n.slice(-1)==="/";if(n.length>this.maxLength)return!1;if(!this.stat&&yE(this.cache,e)){var s=this.cache[e];if(Array.isArray(s)&&(s="DIR"),!t||s==="DIR")return s;if(t&&s==="FILE")return!1}var i,r=this.statCache[e];if(!r){var o;try{o=this.fs.lstatSync(e)}catch(a){if(a&&(a.code==="ENOENT"||a.code==="ENOTDIR"))return this.statCache[e]=!1,!1}if(o&&o.isSymbolicLink())try{r=this.fs.statSync(e)}catch{r=o}else r=o}this.statCache[e]=r;var s=!0;return r&&(s=r.isDirectory()?"DIR":"FILE"),this.cache[e]=this.cache[e]||s,t&&s==="FILE"?!1:s};di.prototype._mark=function(n){return Zl.mark(this,n)};di.prototype._makeAbs=function(n){return Zl.makeAbs(this,n)}});var vE=y((ORe,fW)=>{fW.exports=pW;function pW(n,e){if(n&&e)return pW(n)(e);if(typeof n!="function")throw new TypeError("need wrapper function");return Object.keys(n).forEach(function(i){t[i]=n[i]}),t;function t(){for(var i=new Array(arguments.length),r=0;r<i.length;r++)i[r]=arguments[r];var o=n.apply(this,i),s=i[i.length-1];return typeof o=="function"&&o!==s&&Object.keys(s).forEach(function(a){o[a]=s[a]}),o}}});var xE=y((ARe,wE)=>{var mW=vE();wE.exports=mW(ww);wE.exports.strict=mW(bW);ww.proto=ww(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return ww(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return bW(this)},configurable:!0})});function ww(n){var e=function(){return e.called?e.value:(e.called=!0,e.value=n.apply(this,arguments))};return e.called=!1,e}function bW(n){var e=function(){if(e.called)throw new Error(e.onceError);return e.called=!0,e.value=n.apply(this,arguments)},t=n.name||"Function wrapped with `once`";return e.onceError=t+" shouldn't be called more than once",e.called=!1,e}});var vW=y((NRe,yW)=>{var mfe=vE(),Xg=Object.create(null),bfe=xE();yW.exports=mfe(yfe);function yfe(n,e){return Xg[n]?(Xg[n].push(e),null):(Xg[n]=[e],vfe(n))}function vfe(n){return bfe(function e(){var t=Xg[n],i=t.length,r=wfe(arguments);try{for(var o=0;o<i;o++)t[o].apply(null,r)}finally{t.length>i?(t.splice(0,i),process.nextTick(function(){e.apply(null,r)})):delete Xg[n]}})}function wfe(n){for(var e=n.length,t=[],i=0;i<e;i++)t[i]=n[i];return t}});var vw=y((BRe,xW)=>{xW.exports=Jl;var xfe=oE(),wW=fw(),HRe=wW.Minimatch,Cfe=nW(),Sfe=require("events").EventEmitter,CE=require("path"),SE=require("assert"),Gg=bw(),TE=gW(),$l=mE(),Dfe=$l.setopts,DE=$l.ownProp,kE=vW(),qRe=require("util"),Tfe=$l.childrenIgnored,kfe=$l.isIgnored,Pfe=xE();function Jl(n,e,t){if(typeof e=="function"&&(t=e,e={}),e||(e={}),e.sync){if(t)throw new TypeError("callback provided to sync glob");return TE(n,e)}return new rt(n,e,t)}Jl.sync=TE;var Efe=Jl.GlobSync=TE.GlobSync;Jl.glob=Jl;function Rfe(n,e){if(e===null||typeof e!="object")return n;for(var t=Object.keys(e),i=t.length;i--;)n[t[i]]=e[t[i]];return n}Jl.hasMagic=function(n,e){var t=Rfe({},e);t.noprocess=!0;var i=new rt(n,t),r=i.minimatch.set;if(!n)return!1;if(r.length>1)return!0;for(var o=0;o<r[0].length;o++)if(typeof r[0][o]!="string")return!0;return!1};Jl.Glob=rt;Cfe(rt,Sfe);function rt(n,e,t){if(typeof e=="function"&&(t=e,e=null),e&&e.sync){if(t)throw new TypeError("callback provided to sync glob");return new Efe(n,e)}if(!(this instanceof rt))return new rt(n,e,t);Dfe(this,n,e),this._didRealPath=!1;var i=this.minimatch.set.length;this.matches=new Array(i),typeof t=="function"&&(t=Pfe(t),this.on("error",t),this.on("end",function(l){t(null,l)}));var r=this;if(this._processing=0,this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(i===0)return a();for(var o=!0,s=0;s<i;s++)this._process(this.minimatch.set[s],s,!1,a);o=!1;function a(){--r._processing,r._processing<=0&&(o?process.nextTick(function(){r._finish()}):r._finish())}}rt.prototype._finish=function(){if(SE(this instanceof rt),!this.aborted){if(this.realpath&&!this._didRealpath)return this._realpath();$l.finish(this),this.emit("end",this.found)}};rt.prototype._realpath=function(){if(this._didRealpath)return;this._didRealpath=!0;var n=this.matches.length;if(n===0)return this._finish();for(var e=this,t=0;t<this.matches.length;t++)this._realpathSet(t,i);function i(){--n===0&&e._finish()}};rt.prototype._realpathSet=function(n,e){var t=this.matches[n];if(!t)return e();var i=Object.keys(t),r=this,o=i.length;if(o===0)return e();var s=this.matches[n]=Object.create(null);i.forEach(function(a,l){a=r._makeAbs(a),xfe.realpath(a,r.realpathCache,function(u,c){u?u.syscall==="stat"?s[a]=!0:r.emit("error",u):s[c]=!0,--o===0&&(r.matches[n]=s,e())})})};rt.prototype._mark=function(n){return $l.mark(this,n)};rt.prototype._makeAbs=function(n){return $l.makeAbs(this,n)};rt.prototype.abort=function(){this.aborted=!0,this.emit("abort")};rt.prototype.pause=function(){this.paused||(this.paused=!0,this.emit("pause"))};rt.prototype.resume=function(){if(this.paused){if(this.emit("resume"),this.paused=!1,this._emitQueue.length){var n=this._emitQueue.slice(0);this._emitQueue.length=0;for(var e=0;e<n.length;e++){var t=n[e];this._emitMatch(t[0],t[1])}}if(this._processQueue.length){var i=this._processQueue.slice(0);this._processQueue.length=0;for(var e=0;e<i.length;e++){var r=i[e];this._processing--,this._process(r[0],r[1],r[2],r[3])}}}};rt.prototype._process=function(n,e,t,i){if(SE(this instanceof rt),SE(typeof i=="function"),!this.aborted){if(this._processing++,this.paused){this._processQueue.push([n,e,t,i]);return}for(var r=0;typeof n[r]=="string";)r++;var o;switch(r){case n.length:this._processSimple(n.join("/"),e,i);return;case 0:o=null;break;default:o=n.slice(0,r).join("/");break}var s=n.slice(r),a;o===null?a=".":((Gg(o)||Gg(n.join("/")))&&(!o||!Gg(o))&&(o="/"+o),a=o);var l=this._makeAbs(a);if(Tfe(this,a))return i();var u=s[0]===wW.GLOBSTAR;u?this._processGlobStar(o,a,l,s,e,t,i):this._processReaddir(o,a,l,s,e,t,i)}};rt.prototype._processReaddir=function(n,e,t,i,r,o,s){var a=this;this._readdir(t,o,function(l,u){return a._processReaddir2(n,e,t,i,r,o,u,s)})};rt.prototype._processReaddir2=function(n,e,t,i,r,o,s,a){if(!s)return a();for(var l=i[0],u=!!this.minimatch.negate,c=l._glob,h=this.dot||c.charAt(0)===".",d=[],g=0;g<s.length;g++){var p=s[g];if(p.charAt(0)!=="."||h){var f;u&&!n?f=!p.match(l):f=p.match(l),f&&d.push(p)}}var m=d.length;if(m===0)return a();if(i.length===1&&!this.mark&&!this.stat){this.matches[r]||(this.matches[r]=Object.create(null));for(var g=0;g<m;g++){var p=d[g];n&&(n!=="/"?p=n+"/"+p:p=n+p),p.charAt(0)==="/"&&!this.nomount&&(p=CE.join(this.root,p)),this._emitMatch(r,p)}return a()}i.shift();for(var g=0;g<m;g++){var p=d[g],b;n&&(n!=="/"?p=n+"/"+p:p=n+p),this._process([p].concat(i),r,o,a)}a()};rt.prototype._emitMatch=function(n,e){if(!this.aborted&&!kfe(this,e)){if(this.paused){this._emitQueue.push([n,e]);return}var t=Gg(e)?e:this._makeAbs(e);if(this.mark&&(e=this._mark(e)),this.absolute&&(e=t),!this.matches[n][e]){if(this.nodir){var i=this.cache[t];if(i==="DIR"||Array.isArray(i))return}this.matches[n][e]=!0;var r=this.statCache[t];r&&this.emit("stat",e,r),this.emit("match",e)}}};rt.prototype._readdirInGlobStar=function(n,e){if(this.aborted)return;if(this.follow)return this._readdir(n,!1,e);var t="lstat\0"+n,i=this,r=kE(t,o);r&&i.fs.lstat(n,r);function o(s,a){if(s&&s.code==="ENOENT")return e();var l=a&&a.isSymbolicLink();i.symlinks[n]=l,!l&&a&&!a.isDirectory()?(i.cache[n]="FILE",e()):i._readdir(n,!1,e)}};rt.prototype._readdir=function(n,e,t){if(!this.aborted&&(t=kE("readdir\0"+n+"\0"+e,t),!!t)){if(e&&!DE(this.symlinks,n))return this._readdirInGlobStar(n,t);if(DE(this.cache,n)){var i=this.cache[n];if(!i||i==="FILE")return t();if(Array.isArray(i))return t(null,i)}var r=this;r.fs.readdir(n,_fe(this,n,t))}};function _fe(n,e,t){return function(i,r){i?n._readdirError(e,i,t):n._readdirEntries(e,r,t)}}rt.prototype._readdirEntries=function(n,e,t){if(!this.aborted){if(!this.mark&&!this.stat)for(var i=0;i<e.length;i++){var r=e[i];n==="/"?r=n+r:r=n+"/"+r,this.cache[r]=!0}return this.cache[n]=e,t(null,e)}};rt.prototype._readdirError=function(n,e,t){if(!this.aborted){switch(e.code){case"ENOTSUP":case"ENOTDIR":var i=this._makeAbs(n);if(this.cache[i]="FILE",i===this.cwdAbs){var r=new Error(e.code+" invalid cwd "+this.cwd);r.path=this.cwd,r.code=e.code,this.emit("error",r),this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(n)]=!1;break;default:this.cache[this._makeAbs(n)]=!1,this.strict&&(this.emit("error",e),this.abort()),this.silent||console.error("glob error",e);break}return t()}};rt.prototype._processGlobStar=function(n,e,t,i,r,o,s){var a=this;this._readdir(t,o,function(l,u){a._processGlobStar2(n,e,t,i,r,o,u,s)})};rt.prototype._processGlobStar2=function(n,e,t,i,r,o,s,a){if(!s)return a();var l=i.slice(1),u=n?[n]:[],c=u.concat(l);this._process(c,r,!1,a);var h=this.symlinks[t],d=s.length;if(h&&o)return a();for(var g=0;g<d;g++){var p=s[g];if(!(p.charAt(0)==="."&&!this.dot)){var f=u.concat(s[g],l);this._process(f,r,!0,a);var m=u.concat(s[g],i);this._process(m,r,!0,a)}}a()};rt.prototype._processSimple=function(n,e,t){var i=this;this._stat(n,function(r,o){i._processSimple2(n,e,r,o,t)})};rt.prototype._processSimple2=function(n,e,t,i,r){if(this.matches[e]||(this.matches[e]=Object.create(null)),!i)return r();if(n&&Gg(n)&&!this.nomount){var o=/[\/\\]$/.test(n);n.charAt(0)==="/"?n=CE.join(this.root,n):(n=CE.resolve(this.root,n),o&&(n+="/"))}process.platform==="win32"&&(n=n.replace(/\\/g,"/")),this._emitMatch(e,n),r()};rt.prototype._stat=function(n,e){var t=this._makeAbs(n),i=n.slice(-1)==="/";if(n.length>this.maxLength)return e();if(!this.stat&&DE(this.cache,t)){var r=this.cache[t];if(Array.isArray(r)&&(r="DIR"),!i||r==="DIR")return e(null,r);if(i&&r==="FILE")return e()}var o,s=this.statCache[t];if(s!==void 0){if(s===!1)return e(null,s);var a=s.isDirectory()?"DIR":"FILE";return i&&a==="FILE"?e():e(null,a,s)}var l=this,u=kE("stat\0"+t,c);u&&l.fs.lstat(t,u);function c(h,d){if(d&&d.isSymbolicLink())return l.fs.stat(t,function(g,p){g?l._stat2(n,t,null,d,e):l._stat2(n,t,g,p,e)});l._stat2(n,t,h,d,e)}};rt.prototype._stat2=function(n,e,t,i,r){if(t&&(t.code==="ENOENT"||t.code==="ENOTDIR"))return this.statCache[e]=!1,r();var o=n.slice(-1)==="/";if(this.statCache[e]=i,e.slice(-1)==="/"&&i&&!i.isDirectory())return r(null,!1,i);var s=!0;return i&&(s=i.isDirectory()?"DIR":"FILE"),this.cache[e]=this.cache[e]||s,o&&s==="FILE"?r():r(null,s,i)}});var SW=y((WRe,CW)=>{var Lfe=typeof process=="object"&&process&&process.platform==="win32";CW.exports=Lfe?{sep:"\\"}:{sep:"/"}});var LW=y((YRe,_W)=>{var DW=sE();_W.exports=jfe;var TW="\0SLASH"+Math.random()+"\0",kW="\0OPEN"+Math.random()+"\0",EE="\0CLOSE"+Math.random()+"\0",PW="\0COMMA"+Math.random()+"\0",EW="\0PERIOD"+Math.random()+"\0";function PE(n){return parseInt(n,10)==n?parseInt(n,10):n.charCodeAt(0)}function Ife(n){return n.split("\\\\").join(TW).split("\\{").join(kW).split("\\}").join(EE).split("\\,").join(PW).split("\\.").join(EW)}function Ffe(n){return n.split(TW).join("\\").split(kW).join("{").split(EE).join("}").split(PW).join(",").split(EW).join(".")}function RW(n){if(!n)return[""];var e=[],t=DW("{","}",n);if(!t)return n.split(",");var i=t.pre,r=t.body,o=t.post,s=i.split(",");s[s.length-1]+="{"+r+"}";var a=RW(o);return o.length&&(s[s.length-1]+=a.shift(),s.push.apply(s,a)),e.push.apply(e,s),e}function jfe(n){return n?(n.substr(0,2)==="{}"&&(n="\\{\\}"+n.substr(2)),zg(Ife(n),!0).map(Ffe)):[]}function Mfe(n){return"{"+n+"}"}function Ofe(n){return/^-?0\d/.test(n)}function Afe(n,e){return n<=e}function Nfe(n,e){return n>=e}function zg(n,e){var t=[],i=DW("{","}",n);if(!i)return[n];var r=i.pre,o=i.post.length?zg(i.post,!1):[""];if(/\$$/.test(i.pre))for(var s=0;s<o.length;s++){var a=r+"{"+i.body+"}"+o[s];t.push(a)}else{var l=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),c=l||u,h=i.body.indexOf(",")>=0;if(!c&&!h)return i.post.match(/,.*\}/)?(n=i.pre+"{"+i.body+EE+i.post,zg(n)):[n];var d;if(c)d=i.body.split(/\.\./);else if(d=RW(i.body),d.length===1&&(d=zg(d[0],!1).map(Mfe),d.length===1))return o.map(function(M){return i.pre+d[0]+M});var g;if(c){var p=PE(d[0]),f=PE(d[1]),m=Math.max(d[0].length,d[1].length),b=d.length==3?Math.abs(PE(d[2])):1,w=Afe,x=f<p;x&&(b*=-1,w=Nfe);var T=d.some(Ofe);g=[];for(var R=p;w(R,f);R+=b){var F;if(u)F=String.fromCharCode(R),F==="\\"&&(F="");else if(F=String(R),T){var N=m-F.length;if(N>0){var J=new Array(N+1).join("0");R<0?F="-"+J+F.slice(1):F=J+F}}g.push(F)}}else{g=[];for(var H=0;H<d.length;H++)g.push.apply(g,zg(d[H],!1))}for(var H=0;H<g.length;H++)for(var s=0;s<o.length;s++){var a=r+g[H]+o[s];(!e||c||a)&&t.push(a)}}return t}});var Lo=y((JRe,IE)=>{var Qn=IE.exports=(n,e,t={})=>(Cw(e),!t.nocomment&&e.charAt(0)==="#"?!1:new Vc(e,t).match(n));IE.exports=Qn;var _E=SW();Qn.sep=_E.sep;var Vr=Symbol("globstar **");Qn.GLOBSTAR=Vr;var Hfe=LW(),IW={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},LE="[^/]",RE=LE+"*?",qfe="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",Bfe="(?:(?!(?:\\/|^)\\.).)*?",MW=n=>n.split("").reduce((e,t)=>(e[t]=!0,e),{}),FW=MW("().*{}+?[]^$\\!"),Wfe=MW("[.("),jW=/\/+/;Qn.filter=(n,e={})=>(t,i,r)=>Qn(t,n,e);var xa=(n,e={})=>{let t={};return Object.keys(n).forEach(i=>t[i]=n[i]),Object.keys(e).forEach(i=>t[i]=e[i]),t};Qn.defaults=n=>{if(!n||typeof n!="object"||!Object.keys(n).length)return Qn;let e=Qn,t=(i,r,o)=>e(i,r,xa(n,o));return t.Minimatch=class extends e.Minimatch{constructor(r,o){super(r,xa(n,o))}},t.Minimatch.defaults=i=>e.defaults(xa(n,i)).Minimatch,t.filter=(i,r)=>e.filter(i,xa(n,r)),t.defaults=i=>e.defaults(xa(n,i)),t.makeRe=(i,r)=>e.makeRe(i,xa(n,r)),t.braceExpand=(i,r)=>e.braceExpand(i,xa(n,r)),t.match=(i,r,o)=>e.match(i,r,xa(n,o)),t};Qn.braceExpand=(n,e)=>OW(n,e);var OW=(n,e={})=>(Cw(n),e.nobrace||!/\{(?:(?!\{).)*\}/.test(n)?[n]:Hfe(n)),Yfe=1024*64,Cw=n=>{if(typeof n!="string")throw new TypeError("invalid pattern");if(n.length>Yfe)throw new TypeError("pattern is too long")},xw=Symbol("subparse");Qn.makeRe=(n,e)=>new Vc(n,e||{}).makeRe();Qn.match=(n,e,t={})=>{let i=new Vc(e,t);return n=n.filter(r=>i.match(r)),i.options.nonull&&!n.length&&n.push(e),n};var Zfe=n=>n.replace(/\\(.)/g,"$1"),Jfe=n=>n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Vc=class{constructor(e,t){Cw(e),t||(t={}),this.options=t,this.set=[],this.pattern=e,this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.make()}debug(){}make(){let e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate();let i=this.globSet=this.braceExpand();t.debug&&(this.debug=(...r)=>console.error(...r)),this.debug(this.pattern,i),i=this.globParts=i.map(r=>r.split(jW)),this.debug(this.pattern,i),i=i.map((r,o,s)=>r.map(this.parse,this)),this.debug(this.pattern,i),i=i.filter(r=>r.indexOf(!1)===-1),this.debug(this.pattern,i),this.set=i}parseNegate(){if(this.options.nonegate)return;let e=this.pattern,t=!1,i=0;for(let r=0;r<e.length&&e.charAt(r)==="!";r++)t=!t,i++;i&&(this.pattern=e.substr(i)),this.negate=t}matchOne(e,t,i){var r=this.options;this.debug("matchOne",{this:this,file:e,pattern:t}),this.debug("matchOne",e.length,t.length);for(var o=0,s=0,a=e.length,l=t.length;o<a&&s<l;o++,s++){this.debug("matchOne loop");var u=t[s],c=e[o];if(this.debug(t,u,c),u===!1)return!1;if(u===Vr){this.debug("GLOBSTAR",[t,u,c]);var h=o,d=s+1;if(d===l){for(this.debug("** at the end");o<a;o++)if(e[o]==="."||e[o]===".."||!r.dot&&e[o].charAt(0)===".")return!1;return!0}for(;h<a;){var g=e[h];if(this.debug(`
|
||
globstar while`,e,h,t,d,g),this.matchOne(e.slice(h),t.slice(d),i))return this.debug("globstar found match!",h,a,g),!0;if(g==="."||g===".."||!r.dot&&g.charAt(0)==="."){this.debug("dot detected!",e,h,t,d);break}this.debug("globstar swallow a segment, and continue"),h++}return!!(i&&(this.debug(`
|
||
>>> no match, partial?`,e,h,t,d),h===a))}var p;if(typeof u=="string"?(p=c===u,this.debug("string match",u,c,p)):(p=c.match(u),this.debug("pattern match",u,c,p)),!p)return!1}if(o===a&&s===l)return!0;if(o===a)return i;if(s===l)return o===a-1&&e[o]==="";throw new Error("wtf?")}braceExpand(){return OW(this.pattern,this.options)}parse(e,t){Cw(e);let i=this.options;if(e==="**")if(i.noglobstar)e="*";else return Vr;if(e==="")return"";let r="",o=!!i.nocase,s=!1,a=[],l=[],u,c=!1,h=-1,d=-1,g,p,f,m=e.charAt(0)==="."?"":i.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",b=()=>{if(u){switch(u){case"*":r+=RE,o=!0;break;case"?":r+=LE,o=!0;break;default:r+="\\"+u;break}this.debug("clearStateChar %j %j",u,r),u=!1}};for(let T=0,R;T<e.length&&(R=e.charAt(T));T++){if(this.debug("%s %s %s %j",e,T,r,R),s){if(R==="/")return!1;FW[R]&&(r+="\\"),r+=R,s=!1;continue}switch(R){case"/":return!1;case"\\":b(),s=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",e,T,r,R),c){this.debug(" in class"),R==="!"&&T===d+1&&(R="^"),r+=R;continue}this.debug("call clearStateChar %j",u),b(),u=R,i.noext&&b();continue;case"(":if(c){r+="(";continue}if(!u){r+="\\(";continue}a.push({type:u,start:T-1,reStart:r.length,open:IW[u].open,close:IW[u].close}),r+=u==="!"?"(?:(?!(?:":"(?:",this.debug("plType %j %j",u,r),u=!1;continue;case")":if(c||!a.length){r+="\\)";continue}b(),o=!0,p=a.pop(),r+=p.close,p.type==="!"&&l.push(p),p.reEnd=r.length;continue;case"|":if(c||!a.length){r+="\\|";continue}b(),r+="|";continue;case"[":if(b(),c){r+="\\"+R;continue}c=!0,d=T,h=r.length,r+=R;continue;case"]":if(T===d+1||!c){r+="\\"+R;continue}g=e.substring(d+1,T);try{RegExp("["+g+"]")}catch{f=this.parse(g,xw),r=r.substr(0,h)+"\\["+f[0]+"\\]",o=o||f[1],c=!1;continue}o=!0,c=!1,r+=R;continue;default:b(),FW[R]&&!(R==="^"&&c)&&(r+="\\"),r+=R;break}}for(c&&(g=e.substr(d+1),f=this.parse(g,xw),r=r.substr(0,h)+"\\["+f[0],o=o||f[1]),p=a.pop();p;p=a.pop()){let T;T=r.slice(p.reStart+p.open.length),this.debug("setting tail",r,p),T=T.replace(/((?:\\{2}){0,64})(\\?)\|/g,(F,N,J)=>(J||(J="\\"),N+N+J+"|")),this.debug(`tail=%j
|
||
%s`,T,T,p,r);let R=p.type==="*"?RE:p.type==="?"?LE:"\\"+p.type;o=!0,r=r.slice(0,p.reStart)+R+"\\("+T}b(),s&&(r+="\\\\");let w=Wfe[r.charAt(0)];for(let T=l.length-1;T>-1;T--){let R=l[T],F=r.slice(0,R.reStart),N=r.slice(R.reStart,R.reEnd-8),J=r.slice(R.reEnd),H=r.slice(R.reEnd-8,R.reEnd)+J,M=F.split("(").length-1,L=J;for(let Z=0;Z<M;Z++)L=L.replace(/\)[+*?]?/,"");J=L;let O=J===""&&t!==xw?"$":"";r=F+N+J+O+H}if(r!==""&&o&&(r="(?=.)"+r),w&&(r=m+r),t===xw)return[r,o];if(!o)return Zfe(e);let x=i.nocase?"i":"";try{return Object.assign(new RegExp("^"+r+"$",x),{_glob:e,_src:r})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let t=this.options,i=t.noglobstar?RE:t.dot?qfe:Bfe,r=t.nocase?"i":"",o=e.map(s=>(s=s.map(a=>typeof a=="string"?Jfe(a):a===Vr?Vr:a._src).reduce((a,l)=>(a[a.length-1]===Vr&&l===Vr||a.push(l),a),[]),s.forEach((a,l)=>{a!==Vr||s[l-1]===Vr||(l===0?s.length>1?s[l+1]="(?:\\/|"+i+"\\/)?"+s[l+1]:s[l]=i:l===s.length-1?s[l-1]+="(?:\\/|"+i+")?":(s[l-1]+="(?:\\/|\\/"+i+"\\/)"+s[l+1],s[l+1]=Vr))}),s.filter(a=>a!==Vr).join("/"))).join("|");o="^(?:"+o+")$",this.negate&&(o="^(?!"+o+").*$");try{this.regexp=new RegExp(o,r)}catch{this.regexp=!1}return this.regexp}match(e,t=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&t)return!0;let i=this.options;_E.sep!=="/"&&(e=e.split(_E.sep).join("/")),e=e.split(jW),this.debug(this.pattern,"split",e);let r=this.set;this.debug(this.pattern,"set",r);let o;for(let s=e.length-1;s>=0&&(o=e[s],!o);s--);for(let s=0;s<r.length;s++){let a=r[s],l=e;if(i.matchBase&&a.length===1&&(l=[o]),this.matchOne(l,a,t))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(e){return Qn.defaults(e).Minimatch}};Qn.Minimatch=Vc});var Kg,Ul,Sw,Dw,Qg,Tw,dn=k(()=>{"use strict";Kg=(i=>(i[i.Buffer=0]="Buffer",i[i.LanguageServer=1]="LanguageServer",i[i.Global=2]="Global",i))(Kg||{}),Ul=(i=>(i[i.Native=0]="Native",i[i.Remote=1]="Remote",i[i.Service=2]="Service",i))(Ul||{}),Sw=(i=>(i[i.More=0]="More",i[i.Warning=1]="Warning",i[i.Error=2]="Error",i))(Sw||{}),Dw=(s=>(s[s.Initial=0]="Initial",s[s.Starting=1]="Starting",s[s.StartFailed=2]="StartFailed",s[s.Running=3]="Running",s[s.Stopping=4]="Stopping",s[s.Stopped=5]="Stopped",s))(Dw||{}),Qg=(r=>(r[r.Unknown=0]="Unknown",r[r.File=1]="File",r[r.Directory=2]="Directory",r[r.SymbolicLink=64]="SymbolicLink",r))(Qg||{}),Tw=(i=>(i[i.Global=1]="Global",i[i.Workspace=2]="Workspace",i[i.WorkspaceFolder=3]="WorkspaceFolder",i))(Tw||{})});function ep(n,e){e===void 0&&(e=!1);var t=n.length,i=0,r="",o=0,s=16,a=0,l=0,u=0,c=0,h=0;function d(x,T){for(var R=0,F=0;R<x||!T;){var N=n.charCodeAt(i);if(N>=48&&N<=57)F=F*16+N-48;else if(N>=65&&N<=70)F=F*16+N-65+10;else if(N>=97&&N<=102)F=F*16+N-97+10;else break;i++,R++}return R<x&&(F=-1),F}function g(x){i=x,r="",o=0,s=16,h=0}function p(){var x=i;if(n.charCodeAt(i)===48)i++;else for(i++;i<n.length&&eh(n.charCodeAt(i));)i++;if(i<n.length&&n.charCodeAt(i)===46)if(i++,i<n.length&&eh(n.charCodeAt(i)))for(i++;i<n.length&&eh(n.charCodeAt(i));)i++;else return h=3,n.substring(x,i);var T=i;if(i<n.length&&(n.charCodeAt(i)===69||n.charCodeAt(i)===101))if(i++,(i<n.length&&n.charCodeAt(i)===43||n.charCodeAt(i)===45)&&i++,i<n.length&&eh(n.charCodeAt(i))){for(i++;i<n.length&&eh(n.charCodeAt(i));)i++;T=i}else h=3;return n.substring(x,T)}function f(){for(var x="",T=i;;){if(i>=t){x+=n.substring(T,i),h=2;break}var R=n.charCodeAt(i);if(R===34){x+=n.substring(T,i),i++;break}if(R===92){if(x+=n.substring(T,i),i++,i>=t){h=2;break}var F=n.charCodeAt(i++);switch(F){case 34:x+='"';break;case 92:x+="\\";break;case 47:x+="/";break;case 98:x+="\b";break;case 102:x+="\f";break;case 110:x+=`
|
||
`;break;case 114:x+="\r";break;case 116:x+=" ";break;case 117:var N=d(4,!0);N>=0?x+=String.fromCharCode(N):h=4;break;default:h=5}T=i;continue}if(R>=0&&R<=31)if(Vg(R)){x+=n.substring(T,i),h=2;break}else h=6;i++}return x}function m(){if(r="",h=0,o=i,l=a,c=u,i>=t)return o=t,s=17;var x=n.charCodeAt(i);if(FE(x)){do i++,r+=String.fromCharCode(x),x=n.charCodeAt(i);while(FE(x));return s=15}if(Vg(x))return i++,r+=String.fromCharCode(x),x===13&&n.charCodeAt(i)===10&&(i++,r+=`
|
||
`),a++,u=i,s=14;switch(x){case 123:return i++,s=1;case 125:return i++,s=2;case 91:return i++,s=3;case 93:return i++,s=4;case 58:return i++,s=6;case 44:return i++,s=5;case 34:return i++,r=f(),s=10;case 47:var T=i-1;if(n.charCodeAt(i+1)===47){for(i+=2;i<t&&!Vg(n.charCodeAt(i));)i++;return r=n.substring(T,i),s=12}if(n.charCodeAt(i+1)===42){i+=2;for(var R=t-1,F=!1;i<R;){var N=n.charCodeAt(i);if(N===42&&n.charCodeAt(i+1)===47){i+=2,F=!0;break}i++,Vg(N)&&(N===13&&n.charCodeAt(i)===10&&i++,a++,u=i)}return F||(i++,h=1),r=n.substring(T,i),s=13}return r+=String.fromCharCode(x),i++,s=16;case 45:if(r+=String.fromCharCode(x),i++,i===t||!eh(n.charCodeAt(i)))return s=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return r+=p(),s=11;default:for(;i<t&&b(x);)i++,x=n.charCodeAt(i);if(o!==i){switch(r=n.substring(o,i),r){case"true":return s=8;case"false":return s=9;case"null":return s=7}return s=16}return r+=String.fromCharCode(x),i++,s=16}}function b(x){if(FE(x)||Vg(x))return!1;switch(x){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function w(){var x;do x=m();while(x>=12&&x<=15);return x}return{setPosition:g,getPosition:function(){return i},scan:e?w:m,getToken:function(){return s},getTokenValue:function(){return r},getTokenOffset:function(){return o},getTokenLength:function(){return i-o},getTokenStartLine:function(){return l},getTokenStartCharacter:function(){return o-c},getTokenError:function(){return h}}}function FE(n){return n===32||n===9||n===11||n===12||n===160||n===5760||n>=8192&&n<=8203||n===8239||n===8287||n===12288||n===65279}function Vg(n){return n===10||n===13||n===8232||n===8233}function eh(n){return n>=48&&n<=57}var kw=k(()=>{"use strict"});function ME(n,e,t){var i,r,o,s,a;if(e){for(s=e.offset,a=s+e.length,o=s;o>0&&!tp(n,o-1);)o--;for(var l=a;l<n.length&&!tp(n,l);)l++;r=n.substring(o,l),i=Ufe(r,t)}else r=n,i=0,o=0,s=0,a=n.length;var u=Xfe(t,n),c=!1,h=0,d;t.insertSpaces?d=jE(" ",t.tabSize||4):d=" ";var g=ep(r,!1),p=!1;function f(){return u+jE(d,i+h)}function m(){var O=g.scan();for(c=!1;O===15||O===14;)c=c||O===14,O=g.scan();return p=O===16||g.getTokenError()!==0,O}var b=[];function w(O,Z,ne){!p&&(!e||Z<a&&ne>s)&&n.substring(Z,ne)!==O&&b.push({offset:Z,length:ne-Z,content:O})}var x=m();if(x!==17){var T=g.getTokenOffset()+o,R=jE(d,i);w(R,o,T)}for(;x!==17;){for(var F=g.getTokenOffset()+g.getTokenLength()+o,N=m(),J="",H=!1;!c&&(N===12||N===13);){var M=g.getTokenOffset()+o;w(" ",F,M),F=g.getTokenOffset()+g.getTokenLength()+o,H=N===12,J=H?f():"",N=m()}if(N===2)x!==1&&(h--,J=f());else if(N===4)x!==3&&(h--,J=f());else{switch(x){case 3:case 1:h++,J=f();break;case 5:case 12:J=f();break;case 13:c?J=f():H||(J=" ");break;case 6:H||(J=" ");break;case 10:if(N===6){H||(J="");break}case 7:case 8:case 9:case 11:case 2:case 4:N===12||N===13?H||(J=" "):N!==5&&N!==17&&(p=!0);break;case 16:p=!0;break}c&&(N===12||N===13)&&(J=f())}N===17&&(J=t.insertFinalNewline?u:"");var L=g.getTokenOffset()+o;w(J,F,L),x=N}return b}function jE(n,e){for(var t="",i=0;i<e;i++)t+=n;return t}function Ufe(n,e){for(var t=0,i=0,r=e.tabSize||4;t<n.length;){var o=n.charAt(t);if(o===" ")i++;else if(o===" ")i+=r;else break;t++}return Math.floor(i/r)}function Xfe(n,e){for(var t=0;t<e.length;t++){var i=e.charAt(t);if(i==="\r")return t+1<e.length&&e.charAt(t+1)===`
|
||
`?`\r
|
||
`:"\r";if(i===`
|
||
`)return`
|
||
`}return n&&n.eol||`
|
||
`}function tp(n,e){return`\r
|
||
`.indexOf(n.charAt(e))!==-1}var OE=k(()=>{"use strict";kw()});function AW(n,e,t){e===void 0&&(e=[]),t===void 0&&(t=ip.DEFAULT);var i=null,r=[],o=[];function s(l){Array.isArray(r)?r.push(l):i!==null&&(r[i]=l)}var a={onObjectBegin:function(){var l={};s(l),o.push(r),r=l,i=null},onObjectProperty:function(l){i=l},onObjectEnd:function(){r=o.pop()},onArrayBegin:function(){var l=[];s(l),o.push(r),r=l,i=null},onArrayEnd:function(){r=o.pop()},onLiteralValue:s,onError:function(l,u,c){e.push({error:l,offset:u,length:c})}};return Ew(n,a,t),r[0]}function AE(n,e,t){e===void 0&&(e=[]),t===void 0&&(t=ip.DEFAULT);var i={type:"array",offset:-1,length:-1,children:[],parent:void 0};function r(l){i.type==="property"&&(i.length=l-i.offset,i=i.parent)}function o(l){return i.children.push(l),l}var s={onObjectBegin:function(l){i=o({type:"object",offset:l,length:-1,parent:i,children:[]})},onObjectProperty:function(l,u,c){i=o({type:"property",offset:u,length:-1,parent:i,children:[]}),i.children.push({type:"string",value:l,offset:u,length:c,parent:i})},onObjectEnd:function(l,u){r(l+u),i.length=l+u-i.offset,i=i.parent,r(l+u)},onArrayBegin:function(l,u){i=o({type:"array",offset:l,length:-1,parent:i,children:[]})},onArrayEnd:function(l,u){i.length=l+u-i.offset,i=i.parent,r(l+u)},onLiteralValue:function(l,u,c){o({type:zfe(l),offset:u,length:c,parent:i,value:l}),r(u+c)},onSeparator:function(l,u,c){i.type==="property"&&(l===":"?i.colonOffset=u:l===","&&r(u))},onError:function(l,u,c){e.push({error:l,offset:u,length:c})}};Ew(n,s,t);var a=i.children[0];return a&&delete a.parent,a}function Pw(n,e){if(!!n){for(var t=n,i=0,r=e;i<r.length;i++){var o=r[i];if(typeof o=="string"){if(t.type!=="object"||!Array.isArray(t.children))return;for(var s=!1,a=0,l=t.children;a<l.length;a++){var u=l[a];if(Array.isArray(u.children)&&u.children[0].value===o){t=u.children[1],s=!0;break}}if(!s)return}else{var c=o;if(t.type!=="array"||c<0||!Array.isArray(t.children)||c>=t.children.length)return;t=t.children[c]}}return t}}function Ew(n,e,t){t===void 0&&(t=ip.DEFAULT);var i=ep(n,!1);function r(H){return H?function(){return H(i.getTokenOffset(),i.getTokenLength(),i.getTokenStartLine(),i.getTokenStartCharacter())}:function(){return!0}}function o(H){return H?function(M){return H(M,i.getTokenOffset(),i.getTokenLength(),i.getTokenStartLine(),i.getTokenStartCharacter())}:function(){return!0}}var s=r(e.onObjectBegin),a=o(e.onObjectProperty),l=r(e.onObjectEnd),u=r(e.onArrayBegin),c=r(e.onArrayEnd),h=o(e.onLiteralValue),d=o(e.onSeparator),g=r(e.onComment),p=o(e.onError),f=t&&t.disallowComments,m=t&&t.allowTrailingComma;function b(){for(;;){var H=i.scan();switch(i.getTokenError()){case 4:w(14);break;case 5:w(15);break;case 3:w(13);break;case 1:f||w(11);break;case 2:w(12);break;case 6:w(16);break}switch(H){case 12:case 13:f?w(10):g();break;case 16:w(1);break;case 15:case 14:break;default:return H}}}function w(H,M,L){if(M===void 0&&(M=[]),L===void 0&&(L=[]),p(H),M.length+L.length>0)for(var O=i.getToken();O!==17;){if(M.indexOf(O)!==-1){b();break}else if(L.indexOf(O)!==-1)break;O=b()}}function x(H){var M=i.getTokenValue();return H?h(M):a(M),b(),!0}function T(){switch(i.getToken()){case 11:var H=i.getTokenValue(),M=Number(H);isNaN(M)&&(w(2),M=0),h(M);break;case 7:h(null);break;case 8:h(!0);break;case 9:h(!1);break;default:return!1}return b(),!0}function R(){return i.getToken()!==10?(w(3,[],[2,5]),!1):(x(!1),i.getToken()===6?(d(":"),b(),J()||w(4,[],[2,5])):w(5,[],[2,5]),!0)}function F(){s(),b();for(var H=!1;i.getToken()!==2&&i.getToken()!==17;){if(i.getToken()===5){if(H||w(4,[],[]),d(","),b(),i.getToken()===2&&m)break}else H&&w(6,[],[]);R()||w(4,[],[2,5]),H=!0}return l(),i.getToken()!==2?w(7,[2],[]):b(),!0}function N(){u(),b();for(var H=!1;i.getToken()!==4&&i.getToken()!==17;){if(i.getToken()===5){if(H||w(4,[],[]),d(","),b(),i.getToken()===4&&m)break}else H&&w(6,[],[]);J()||w(4,[],[4,5]),H=!0}return c(),i.getToken()!==4?w(8,[4],[]):b(),!0}function J(){switch(i.getToken()){case 3:return N();case 1:return F();case 10:return x(!0);default:return T()}}return b(),i.getToken()===17?t.allowEmptyContent?!0:(w(4,[],[]),!1):J()?(i.getToken()!==17&&w(9,[],[]),!0):(w(4,[],[]),!1)}function zfe(n){switch(typeof n){case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"object":{if(n){if(Array.isArray(n))return"array"}else return"null";return"object"}default:return"null"}}var ip,NE=k(()=>{"use strict";kw();(function(n){n.DEFAULT={allowTrailingComma:!1}})(ip||(ip={}))});function NW(n,e,t,i){for(var r,o=e.slice(),s=[],a=AE(n,s),l=void 0,u=void 0;o.length>0&&(u=o.pop(),l=Pw(a,o),l===void 0&&t!==void 0);)typeof u=="string"?t=(r={},r[u]=t,r):t=[t];if(l)if(l.type==="object"&&typeof u=="string"&&Array.isArray(l.children)){var c=Pw(l,[u]);if(c!==void 0)if(t===void 0){if(!c.parent)throw new Error("Malformed AST");var h=l.children.indexOf(c.parent),d=void 0,g=c.parent.offset+c.parent.length;if(h>0){var p=l.children[h-1];d=p.offset+p.length}else if(d=l.offset+1,l.children.length>1){var f=l.children[1];g=f.offset}return Xl(n,{offset:d,length:g-d,content:""},i)}else return Xl(n,{offset:c.offset,length:c.length,content:JSON.stringify(t)},i);else{if(t===void 0)return[];var m=JSON.stringify(u)+": "+JSON.stringify(t),b=i.getInsertionIndex?i.getInsertionIndex(l.children.map(function(H){return H.children[0].value})):l.children.length,w=void 0;if(b>0){var p=l.children[b-1];w={offset:p.offset+p.length,length:0,content:","+m}}else l.children.length===0?w={offset:l.offset+1,length:0,content:m}:w={offset:l.offset+1,length:0,content:m+","};return Xl(n,w,i)}}else if(l.type==="array"&&typeof u=="number"&&Array.isArray(l.children)){var x=u;if(x===-1){var m=""+JSON.stringify(t),w=void 0;if(l.children.length===0)w={offset:l.offset+1,length:0,content:m};else{var p=l.children[l.children.length-1];w={offset:p.offset+p.length,length:0,content:","+m}}return Xl(n,w,i)}else if(t===void 0&&l.children.length>=0){var T=u,R=l.children[T],w=void 0;if(l.children.length===1)w={offset:l.offset+1,length:l.length-2,content:""};else if(l.children.length-1===T){var p=l.children[T-1],F=p.offset+p.length,N=l.offset+l.length;w={offset:F,length:N-2-F,content:""}}else w={offset:R.offset,length:l.children[T+1].offset-R.offset,content:""};return Xl(n,w,i)}else if(t!==void 0){var w=void 0,m=""+JSON.stringify(t);if(!i.isArrayInsertion&&l.children.length>u){var J=l.children[u];w={offset:J.offset,length:J.length,content:m}}else if(l.children.length===0||u===0)w={offset:l.offset+1,length:0,content:l.children.length===0?m:m+","};else{var b=u>l.children.length?l.children.length:u,p=l.children[b-1];w={offset:p.offset+p.length,length:0,content:","+m}}return Xl(n,w,i)}else throw new Error("Can not "+(t===void 0?"remove":i.isArrayInsertion?"insert":"modify")+" Array index "+x+" as length is not sufficient")}else throw new Error("Can not add "+(typeof u!="number"?"index":"property")+" to parent of type "+l.type);else{if(t===void 0)throw new Error("Can not delete in empty document");return Xl(n,{offset:a?a.offset:0,length:a?a.length:0,content:JSON.stringify(t)},i)}}function Xl(n,e,t){if(!t.formattingOptions)return[e];var i=Rw(n,e),r=e.offset,o=e.offset+e.content.length;if(e.length===0||e.content.length===0){for(;r>0&&!tp(i,r-1);)r--;for(;o<i.length&&!tp(i,o);)o++}for(var s=ME(i,{offset:r,length:o-r},t.formattingOptions),a=s.length-1;a>=0;a--){var l=s[a];i=Rw(i,l),r=Math.min(r,l.offset),o=Math.max(o,l.offset+l.length),o+=l.content.length-l.length}var u=n.length-(i.length-o)-r;return[{offset:r,length:u,content:i.substring(r,o)}]}function Rw(n,e){return n.substring(0,e.offset)+e.content+n.substring(e.offset+e.length)}var HW=k(()=>{"use strict";OE();NE()});function WW(n,e,t,i){return NW(n,e,t,i)}function YW(n,e){for(var t=e.length-1;t>=0;t--)n=Rw(n,e[t]);return n}var qW,BW,_w=k(()=>{"use strict";OE();HW();kw();NE();qW=AW,BW=Ew});function gi(n){try{let e=[],t=Ci.default.readFileSync(n,"utf8"),i=qW(t,e,{allowTrailingComma:!0});return e.length>0&&JW.error(`Error on parse json file ${n}`,e),i??{}}catch{return{}}}function Ca(n,e){let t=Ln.default.dirname(n);Ci.default.existsSync(t)||(Ci.default.mkdirSync(t,{recursive:!0}),JW.info(`Creating directory ${t}`)),Ci.default.writeFileSync(n,JSON.stringify(e??{},null,2),"utf8")}async function zi(n){let e=null;try{e=await(0,th.promisify)(Ci.default.stat)(n)}catch{}return e}async function YE(n){if(!!n)try{await(0,th.promisify)(Ci.default.rm)(n,{force:!0,recursive:!0})}catch{return}}async function ZE(n){try{let e=await zi(n);return e.isFile()?1:e.isDirectory()?2:e.isSymbolicLink()?64:0}catch{return}}async function $W(n){if(!n)return!1;let e=await zi(n);if(!e||!e.isFile())return!1;let t=null;try{let{stdout:r}=await(0,th.promisify)(qE.exec)("git rev-parse --show-toplevel",{cwd:Ln.default.dirname(n)});t=r.trim()}catch{}if(!t)return!1;let i=Ln.default.relative(t,n);try{let{stdout:r}=await(0,th.promisify)(qE.exec)(`git check-ignore ${i}`,{cwd:t});return r.trim()==i}catch{}return!1}function HE(n,e=[]){return!e||!e.length?!1:e.some(t=>(0,WE.default)(n,t,{dot:!0}))}function np(n,e,t,i=!1,r=!0,o=[]){let s=In(n);if(r&&t&&Ye(t,s,!0)&&!HE(t,o)&&Lw(t,e))return t;let a=s.split(Ln.default.sep);if(i){for(;a.length>0;){let l=a.join(Ln.default.sep);if(!HE(l,o)&&Lw(l,e))return l;a.pop()}return null}else{let l=[a.shift()];for(let u of a){l.push(u);let c=l.join(Ln.default.sep);if(!HE(c,o)&&Lw(c,e))return c}return null}}function UW(n,e,t){return new Promise((i,r)=>{if(Je(e))return i(!1);let o;t&&(o=t.onCancellationRequested(()=>{l.abort(),r(new ii)}));let s=!1,a=e.length==1?e[0]:`{${e.join(",")}}`,l=(0,BE.default)(a,{nosort:!0,ignore:["node_modules/**",".git/**"],dot:!0,cwd:n,nodir:!0,absolute:!1},u=>{if(o&&o.dispose(),u)return r(u);i(s)});l.on("match",()=>{o&&o.dispose(),s=!0,l.abort(),i(!0)}),l.on("end",()=>{o&&o.dispose(),i(s)})})}function Lw(n,e){try{let t=Ci.default.readdirSync(n);for(let i of e)if(i.includes("*")?WE.default.match(t,i,{nobrace:!0,noext:!0,nocomment:!0,nonegate:!0,dot:!0}).length!==0:t.includes(i))return!0}catch{}return!1}function ih(n,e){let t=Ln.default.parse(e).root,i=Array.isArray(n)?n:[n];for(;e&&e!==t;){if(Lw(e,i))for(let o of i){let s=Ln.default.join(e,o);if(Ci.default.existsSync(s))return s}e=Ln.default.dirname(e)}return null}function XW(n,e){return new Promise((t,i)=>{Ci.default.readFile(n,e,(r,o)=>{r&&i(r),t(o)})})}function GW(n){let e,t=0;return new Promise((i,r)=>{Ci.default.createReadStream(n).on("error",o=>r(o)).on("data",o=>{for(e=0;e<o.length;++e)o[e]==10&&t++}).on("end",()=>i(t))})}function Sa(n,e,t){if(!Ci.default.existsSync(n))return Promise.reject(new Error(`file does not exist: ${n}`));let i=[],r=Ci.default.createReadStream(n,{encoding:"utf8"}),o=Iw.default.createInterface({input:r,crlfDelay:1/0,terminal:!1}),s=0;return new Promise((a,l)=>{o.on("line",u=>{s>=e&&s<=t&&i.push(u),s==t&&o.close(),s=s+1}),o.on("close",()=>{a(i),r.close()}),o.on("error",l)})}function zW(n,e){if(!Ci.default.existsSync(n))return Promise.reject(new Error(`file does not exist: ${n}`));let t=Ci.default.createReadStream(n,{encoding:"utf8"}),i=Iw.default.createInterface({input:t,crlfDelay:1/0,terminal:!1}),r=0,o="";return new Promise((s,a)=>{i.on("line",l=>{r==e&&(r==0&&l.startsWith("\uFEFF")?o=l.slice(1):o=l,i.close(),t.close()),r=r+1}),i.on("close",()=>{s(o)}),i.on("error",a)})}async function KW(n,e,t){let i=j.file(n).toString();if(!Ci.default.existsSync(n))return eo.Location.create(i,eo.Range.create(0,0,0,0));let r=Iw.default.createInterface({input:Ci.default.createReadStream(n,{encoding:"utf8"})}),o=0,s=await new Promise(a=>{r.on("line",l=>{if(l.includes(e)){r.removeAllListeners(),r.close(),a(l);return}o=o+1}),r.on("error",()=>{a(null)})});if(s!=null){let a=t==null?0:s.indexOf(t);a==0&&(a=s.match(/^\s*/)[0].length);let l=eo.Position.create(o,a+(t?t.length:0));return eo.Location.create(i,eo.Range.create(eo.Position.create(o,a),l))}return eo.Location.create(i,eo.Range.create(0,0,0,0))}function ni(n,e,t){return t=typeof t=="boolean"?t:En||Jc,!n||!e?!1:(n=In(n),e=In(e),t?n.toLowerCase()===e.toLowerCase():n===e)}function ZW(n,e){return En||Jc?n.toLowerCase().startsWith(e.toLowerCase()):n.startsWith(e)}async function rp(n,e){await(0,th.promisify)(Ci.default.writeFile)(n,e,{encoding:"utf8"})}function op(n){return n.startsWith("file:")}function In(n){return j.file(Ln.default.resolve(Ln.default.normalize(n))).fsPath}function Ye(n,e,t=!1){let i=In(n),r=In(e);return i==="//"&&(i="/"),ni(i,r)?!!t:i.endsWith(Ln.default.sep)?ZW(r,i):ZW(r,i)&&r[i.length]==Ln.default.sep}var qE,Ci,BE,WE,Ln,Iw,th,eo,JW,$e=k(()=>{"use strict";qE=require("child_process"),Ci=S(require("fs")),BE=S(vw()),WE=S(Lo()),Ln=S(require("path")),Iw=S(require("readline"));Pe();th=require("util"),eo=S(W());dn();nt();xr();$c();_w();JW=q()("util-fs")});function Xt(n,e){return ft(n.start,e)===0&&ft(n.end,e)===0}function QW(n,e){return n.line===e.line&&n.character===e.character}function VW(n,e){let t=n.start.line|0,i=e.start.line|0;if(t===i){let r=n.start.character|0,o=e.start.character|0;if(r===o){let s=n.end.line|0,a=e.end.line|0;if(s===a){let l=n.end.character|0,u=e.end.character|0;return l-u}return s-a}return r-o}return t-i}function eY(n,e){let{start:t,end:i}=n;if(t.line>i.line||t.line===i.line&&t.character>i.character){let o=t;t=i,i=o}t=nh.Position.create(Math.max(0,t.line),Math.max(0,t.character));let r=Math.max(0,i.character);return typeof e=="number"&&r>e&&(r=e),i=nh.Position.create(Math.max(0,i.line),r),{start:t,end:i}}function Fw(n,e){return Me(n.end,e.start)==0||Me(e.end,n.start)==0}function rh(n,e){let{start:t,end:i}=n;return!(Me(i,e.start)<=0||Me(t,e.end)>=0)}function Gl(n,e){return!!(ft(n.start,e)==0||ft(n.end,e)==0||Xt(e,n))}function tY(n,e){let{line:t,character:i}=e,{start:r,end:o}=n,s=o.line==r.line?o.character+i:o.character;return nh.Range.create(r.line+t,i+r.character,o.line+t,s)}function iY(n,e){let{start:t,end:i}=e;return n>=t.line&&n<=i.line}function Lt(n){let{start:e,end:t}=n;return e.line==t.line&&e.character==t.character}function ft(n,e){let{start:t,end:i}=e;return Me(n,t)<0?-1:Me(n,i)>0?1:0}function Me(n,e){return n.line>e.line||e.line==n.line&&n.character>e.character?1:e.line==n.line&&n.character==e.character?0:-1}function nY(n){return n.start.line==n.end.line}function Ki(n,e){let t=e.split(/\r?\n/),i=t.length,r=t[i-1],o=i==1?n.character+e.length:r.length;return nh.Position.create(n.line+i-1,o)}var nh,xt=k(()=>{"use strict";nh=S(W())});var eme,sp,rY=k(()=>{"use strict";eme=q()("outpubChannel"),sp=class{constructor(e,t,i){this.name=e;this.nvim=t;this.onDispose=i;this.lines=[""];this._disposed=!1;this.created=!1;if(!/^[\w\s-.]+$/.test(e))throw new Error(`Invalid channel name "${e}", only word characters and white space allowed.`)}get content(){return this.lines.join(`
|
||
`)}_append(e){let{nvim:t}=this;if(!t){eme.info(`[${this.name} ${new Date().toLocaleTimeString()}] ${e}`);return}let i=this.lines.length-1,r=e.split(/\r?\n/),o=this.lines[i]+r[0];this.lines[i]=o;let s=r.slice(1);this.lines=this.lines.concat(s),this.created&&(t.pauseNotification(),t.call("setbufline",[this.bufname,"$",o],!0),s.length&&t.call("appendbufline",[this.bufname,"$",s],!0),t.resumeNotification(!1,!0))}append(e){!this.validate()||this._append(e)}appendLine(e){!this.validate()||this._append(e+`
|
||
`)}clear(e){let{nvim:t}=this;!this.validate()||!t||(this.lines=e?this.lines.slice(-e):[],this.created&&(t.pauseNotification(),t.call("deletebufline",[this.bufname,1,"$"],!0),this.lines.length&&t.call("appendbufline",[this.bufname,"$",this.lines],!0),t.resumeNotification(!0,!0)))}hide(){this.created=!1,this.nvim&&this.nvim.command(`exe 'silent! bd! '.fnameescape('${this.bufname}')`,!0)}get bufname(){return`output:///${this.name}`}show(e,t="vs"){let{nvim:i}=this;!i||(i.pauseNotification(),i.command(`exe '${t} '.fnameescape('${this.bufname}')`,!0),e&&i.command("wincmd p",!0),i.resumeNotification(!0,!0),this.created=!0)}validate(){return!this._disposed}dispose(){this.onDispose&&this.onDispose(),this._disposed=!0,this.hide(),this.lines=[]}}});var f_e,JE,hs,jw=k(()=>{"use strict";fe();rY();f_e=q()("core-channels"),JE=class{constructor(){this.outputChannels=new Map;this.bufnrs=new Map;this.disposable=P.on("BufUnload",e=>{let t=this.bufnrs.get(e);if(t){let i=this.outputChannels.get(t);i&&(i.created=!1)}})}getProvider(e){return{onDidChange:null,provideTextDocumentContent:async i=>{let r=this.get(i.path.slice(1));if(!r)return"";e.pauseNotification(),e.call("bufnr",["%"],!0),e.command("setlocal nospell nofoldenable nowrap noswapfile",!0),e.command("setlocal buftype=nofile bufhidden=hide",!0),e.command("setfiletype log",!0);let o=await e.resumeNotification();return this.bufnrs.set(o[0][0],r.name),r.created=!0,r.content}}}get names(){return Array.from(this.outputChannels.keys())}get(e){return this.outputChannels.get(e)}create(e,t){if(this.outputChannels.has(e))return this.outputChannels.get(e);let i=new sp(e,t,()=>{this.outputChannels.delete(e)});return this.outputChannels.set(e,i),i}show(e,t,i){let r=this.outputChannels.get(e);!r||r.show(i,t)}dispose(){this.disposable.dispose();for(let e of this.outputChannels.values())e.dispose();this.outputChannels.clear()}},hs=new JE});var b_e,ap,oY=k(()=>{"use strict";b_e=q()("model-terminal"),ap=class{constructor(e,t,i,r,o){this.cmd=e;this.args=t;this.nvim=i;this._name=r;this.strictEnv=o;this.pid=0}async start(e,t){let{nvim:i}=this,r=[this.cmd,...this.args],[o,s]=await i.call("coc#terminal#start",[r,e,t||{},!!this.strictEnv]);this.bufnr=o,this.pid=s}onExit(e){this.exitStatus={code:e===-1?void 0:e}}get name(){return this._name||this.cmd}get processId(){return Promise.resolve(this.pid)}sendText(e,t=!0){!this.bufnr||this.nvim.call("coc#terminal#send",[this.bufnr,e,t],!0)}async show(e){let{bufnr:t,nvim:i}=this;if(!t)return!1;let[r,o,s]=await i.eval(`[bufloaded(${t}),bufwinid(${t}),win_getid()]`);return r?(s==o||(i.pauseNotification(),o==-1?(i.command(`below ${t}sb`,!0),i.command("resize 8",!0),i.call("coc#util#do_autocmd",["CocTerminalOpen"],!0)):i.call("win_gotoid",[o],!0),i.command("normal! G",!0),e&&i.command("wincmd p",!0),await i.resumeNotification()),!0):!1}async hide(){let{bufnr:e,nvim:t}=this;!e||await t.eval(`coc#window#close(bufwinid(${e}))`)}dispose(){this.exitStatus||(this.exitStatus={code:void 0});let{bufnr:e,nvim:t}=this;!e||(this.bufnr=void 0,t.call("coc#terminal#close",[e],!0))}}});var $E,tme,lp,sY=k(()=>{"use strict";oY();$E=S(W());re();fe();tme=q()("core-terminals"),lp=class{constructor(){this._terminals=new Map;this.disposables=[];this._onDidOpenTerminal=new $E.Emitter;this._onDidCloseTerminal=new $E.Emitter;this.onDidCloseTerminal=this._onDidCloseTerminal.event;this.onDidOpenTerminal=this._onDidOpenTerminal.event;P.on("BufUnload",e=>{if(this._terminals.has(e)){tme.debug("terminal detach",e);let t=this._terminals.get(e);this._onDidCloseTerminal.fire(t),this._terminals.delete(e)}},null,this.disposables),P.on("TermExit",(e,t)=>{let i=this._terminals.get(e);i&&(i.onExit(t),i.dispose())},null,this.disposables)}get terminals(){return Array.from(this._terminals.values())}async createTerminal(e,t){let i=t.cwd,r=t.shellPath,o=t.shellArgs;r||(r=await e.getOption("shell")),i||(i=await e.call("getcwd"));let s=new ap(r,o||[],e,t.name,t.strictEnv);return await s.start(i,t.env),this._terminals.set(s.bufnr,s),this._onDidOpenTerminal.fire(s),s}reset(){for(let e of this._terminals.values())e.dispose();this._terminals.clear()}dispose(){this._onDidOpenTerminal.dispose(),this._onDidCloseTerminal.dispose(),U(this.disposables),this.reset()}}});function gY(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function ime(n){oh=n}function Si(n,e){if(e){if(nme.test(n))return n.replace(rme,aY)}else if(ome.test(n))return n.replace(sme,aY);return n}function pY(n){return n.replace(lme,(e,t)=>(t=t.toLowerCase(),t==="colon"?":":t.charAt(0)==="#"?t.charAt(1)==="x"?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""))}function mt(n,e){n=n.source||n,e=e||"";let t={replace:(i,r)=>(r=r.source||r,r=r.replace(ume,"$1"),n=n.replace(i,r),t),getRegex:()=>new RegExp(n,e)};return t}function lY(n,e,t){if(n){let i;try{i=decodeURIComponent(pY(t)).replace(cme,"").toLowerCase()}catch{return null}if(i.indexOf("javascript:")===0||i.indexOf("vbscript:")===0||i.indexOf("data:")===0)return null}e&&!hme.test(t)&&(t=fme(e,t));try{t=encodeURI(t).replace(/%25/g,"%")}catch{return null}return t}function fme(n,e){Mw[" "+n]||(dme.test(n)?Mw[" "+n]=n+"/":Mw[" "+n]=Ow(n,"/",!0)),n=Mw[" "+n];let t=n.indexOf(":")===-1;return e.substring(0,2)==="//"?t?e:n.replace(gme,"$1")+e:e.charAt(0)==="/"?t?e:n.replace(pme,"$1")+e:n+e}function no(n){let e=1,t,i;for(;e<arguments.length;e++){t=arguments[e];for(i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])}return n}function uY(n,e){let t=n.replace(/\|/g,(o,s,a)=>{let l=!1,u=s;for(;--u>=0&&a[u]==="\\";)l=!l;return l?"|":" |"}),i=t.split(/ \|/),r=0;if(i[0].trim()||i.shift(),i.length>0&&!i[i.length-1].trim()&&i.pop(),i.length>e)i.splice(e);else for(;i.length<e;)i.push("");for(;r<i.length;r++)i[r]=i[r].trim().replace(/\\\|/g,"|");return i}function Ow(n,e,t){let i=n.length;if(i===0)return"";let r=0;for(;r<i;){let o=n.charAt(i-r-1);if(o===e&&!t)r++;else if(o!==e&&t)r++;else break}return n.substr(0,i-r)}function mme(n,e){if(n.indexOf(e[1])===-1)return-1;let t=n.length,i=0,r=0;for(;r<t;r++)if(n[r]==="\\")r++;else if(n[r]===e[0])i++;else if(n[r]===e[1]&&(i--,i<0))return r;return-1}function fY(n){n&&n.sanitize&&!n.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function cY(n,e){if(e<1)return"";let t="";for(;e>1;)e&1&&(t+=n),e>>=1,n+=n;return t+n}function hY(n,e,t,i){let r=e.href,o=e.title?Si(e.title):null,s=n[1].replace(/\\([\[\]])/g,"$1");if(n[0].charAt(0)!=="!"){i.state.inLink=!0;let a={type:"link",raw:t,href:r,title:o,text:s,tokens:i.inlineTokens(s,[])};return i.state.inLink=!1,a}else return{type:"image",raw:t,href:r,title:o,text:Si(s)}}function bme(n,e){let t=n.match(/^(\s+)(?:```)/);if(t===null)return e;let i=t[1];return e.split(`
|
||
`).map(r=>{let o=r.match(/^\s+/);if(o===null)return r;let[s]=o;return s.length>=i.length?r.slice(i.length):r}).join(`
|
||
`)}function yme(n){return n.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201C").replace(/"/g,"\u201D").replace(/\.{3}/g,"\u2026")}function dY(n){let e="",t,i,r=n.length;for(t=0;t<r;t++)i=n.charCodeAt(t),Math.random()>.5&&(i="x"+i.toString(16)),e+="&#"+i+";";return e}function ke(n,e,t){if(typeof n>"u"||n===null)throw new Error("marked(): input parameter is undefined or null");if(typeof n!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected");if(typeof e=="function"&&(t=e,e=null),e=no({},ke.defaults,e||{}),fY(e),t){let i=e.highlight,r;try{r=to.lex(n,e)}catch(a){return t(a)}let o=function(a){let l;if(!a)try{e.walkTokens&&ke.walkTokens(r,e.walkTokens),l=io.parse(r,e)}catch(u){a=u}return e.highlight=i,a?t(a):t(null,l)};if(!i||i.length<3||(delete e.highlight,!r.length))return o();let s=0;ke.walkTokens(r,function(a){a.type==="code"&&(s++,setTimeout(()=>{i(a.text,a.lang,function(l,u){if(l)return o(l);u!=null&&u!==a.text&&(a.text=u,a.escaped=!0),s--,s===0&&o()})},0))}),s===0&&o();return}try{let i=to.lex(n,e);return e.walkTokens&&ke.walkTokens(i,e.walkTokens),io.parse(i,e)}catch(i){if(i.message+=`
|
||
Please report this to https://github.com/markedjs/marked.`,e.silent)return"<p>An error occurred:</p><pre>"+Si(i.message+"",!0)+"</pre>";throw i}}var oh,nme,rme,ome,sme,ame,aY,lme,ume,cme,hme,Mw,dme,gme,pme,Aw,up,ve,se,to,cp,Nw,Hw,io,k_e,P_e,E_e,R_e,__e,L_e,I_e,mY=k(()=>{oh=gY();nme=/[&<>"']/,rme=/[&<>"']/g,ome=/[<>"']|&(?!#?\w+;)/,sme=/[<>"']|&(?!#?\w+;)/g,ame={"&":"&","<":"<",">":">",'"':""","'":"'"},aY=n=>ame[n];lme=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;ume=/(^|[^\[])\^/g;cme=/[^\w:]/g,hme=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;Mw={},dme=/^[^:]+:\/*[^/]*$/,gme=/^([^:]+:)[\s\S]*$/,pme=/^([^:]+:\/*[^/]*)[\s\S]*$/;Aw={exec:function(){}};up=class{constructor(e){this.options=e||oh}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let i=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?i:Ow(i,`
|
||
`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let i=t[0],r=bme(i,t[3]||"");return{type:"code",raw:i,lang:t[2]?t[2].trim():t[2],text:r}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let i=t[2].trim();if(/#$/.test(i)){let o=Ow(i,"#");(this.options.pedantic||!o||/ $/.test(o))&&(i=o.trim())}let r={type:"heading",raw:t[0],depth:t[1].length,text:i,tokens:[]};return this.lexer.inline(r.text,r.tokens),r}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let i=t[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:t[0],tokens:this.lexer.blockTokens(i,[]),text:i}}}list(e){let t=this.rules.block.list.exec(e);if(t){let i,r,o,s,a,l,u,c,h,d,g,p,f=t[1].trim(),m=f.length>1,b={type:"list",raw:"",ordered:m,start:m?+f.slice(0,-1):"",loose:!1,items:[]};f=m?`\\d{1,9}\\${f.slice(-1)}`:`\\${f}`,this.options.pedantic&&(f=m?f:"[*+-]");let w=new RegExp(`^( {0,3}${f})((?: [^\\n]*)?(?:\\n|$))`);for(;e&&(p=!1,!(!(t=w.exec(e))||this.rules.block.hr.test(e)));){if(i=t[0],e=e.substring(i.length),c=t[2].split(`
|
||
`,1)[0],h=e.split(`
|
||
`,1)[0],this.options.pedantic?(s=2,g=c.trimLeft()):(s=t[2].search(/[^ ]/),s=s>4?1:s,g=c.slice(s),s+=t[1].length),l=!1,!c&&/^ *$/.test(h)&&(i+=h+`
|
||
`,e=e.substring(h.length+1),p=!0),!p){let T=new RegExp(`^ {0,${Math.min(3,s-1)}}(?:[*+-]|\\d{1,9}[.)])`);for(;e&&(d=e.split(`
|
||
`,1)[0],c=d,this.options.pedantic&&(c=c.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!T.test(c));){if(c.search(/[^ ]/)>=s||!c.trim())g+=`
|
||
`+c.slice(s);else if(!l)g+=`
|
||
`+c;else break;!l&&!c.trim()&&(l=!0),i+=d+`
|
||
`,e=e.substring(d.length+1)}}b.loose||(u?b.loose=!0:/\n *\n *$/.test(i)&&(u=!0)),this.options.gfm&&(r=/^\[[ xX]\] /.exec(g),r&&(o=r[0]!=="[ ] ",g=g.replace(/^\[[ xX]\] +/,""))),b.items.push({type:"list_item",raw:i,task:!!r,checked:o,loose:!1,text:g}),b.raw+=i}b.items[b.items.length-1].raw=i.trimRight(),b.items[b.items.length-1].text=g.trimRight(),b.raw=b.raw.trimRight();let x=b.items.length;for(a=0;a<x;a++){this.lexer.state.top=!1,b.items[a].tokens=this.lexer.blockTokens(b.items[a].text,[]);let T=b.items[a].tokens.filter(F=>F.type==="space"),R=T.every(F=>{let N=F.raw.split(""),J=0;for(let H of N)if(H===`
|
||
`&&(J+=1),J>1)return!0;return!1});!b.loose&&T.length&&R&&(b.loose=!0,b.items[a].loose=!0)}return b}}html(e){let t=this.rules.block.html.exec(e);if(t){let i={type:"html",raw:t[0],pre:!this.options.sanitizer&&(t[1]==="pre"||t[1]==="script"||t[1]==="style"),text:t[0]};return this.options.sanitize&&(i.type="paragraph",i.text=this.options.sanitizer?this.options.sanitizer(t[0]):Si(t[0]),i.tokens=[],this.lexer.inline(i.text,i.tokens)),i}}def(e){let t=this.rules.block.def.exec(e);if(t){t[3]&&(t[3]=t[3].substring(1,t[3].length-1));let i=t[1].toLowerCase().replace(/\s+/g," ");return{type:"def",tag:i,raw:t[0],href:t[2],title:t[3]}}}table(e){let t=this.rules.block.table.exec(e);if(t){let i={type:"table",header:uY(t[1]).map(r=>({text:r})),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split(`
|
||
`):[]};if(i.header.length===i.align.length){i.raw=t[0];let r=i.align.length,o,s,a,l;for(o=0;o<r;o++)/^ *-+: *$/.test(i.align[o])?i.align[o]="right":/^ *:-+: *$/.test(i.align[o])?i.align[o]="center":/^ *:-+ *$/.test(i.align[o])?i.align[o]="left":i.align[o]=null;for(r=i.rows.length,o=0;o<r;o++)i.rows[o]=uY(i.rows[o],i.header.length).map(u=>({text:u}));for(r=i.header.length,s=0;s<r;s++)i.header[s].tokens=[],this.lexer.inlineTokens(i.header[s].text,i.header[s].tokens);for(r=i.rows.length,s=0;s<r;s++)for(l=i.rows[s],a=0;a<l.length;a++)l[a].tokens=[],this.lexer.inlineTokens(l[a].text,l[a].tokens);return i}}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let i={type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:[]};return this.lexer.inline(i.text,i.tokens),i}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let i={type:"paragraph",raw:t[0],text:t[1].charAt(t[1].length-1)===`
|
||
`?t[1].slice(0,-1):t[1],tokens:[]};return this.lexer.inline(i.text,i.tokens),i}}text(e){let t=this.rules.block.text.exec(e);if(t){let i={type:"text",raw:t[0],text:t[0],tokens:[]};return this.lexer.inline(i.text,i.tokens),i}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:Si(t[1])}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):Si(t[0]):t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let i=t[2].trim();if(!this.options.pedantic&&/^</.test(i)){if(!/>$/.test(i))return;let s=Ow(i.slice(0,-1),"\\");if((i.length-s.length)%2===0)return}else{let s=mme(t[2],"()");if(s>-1){let l=(t[0].indexOf("!")===0?5:4)+t[1].length+s;t[2]=t[2].substring(0,s),t[0]=t[0].substring(0,l).trim(),t[3]=""}}let r=t[2],o="";if(this.options.pedantic){let s=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r);s&&(r=s[1],o=s[3])}else o=t[3]?t[3].slice(1,-1):"";return r=r.trim(),/^</.test(r)&&(this.options.pedantic&&!/>$/.test(i)?r=r.slice(1):r=r.slice(1,-1)),hY(t,{href:r&&r.replace(this.rules.inline._escapes,"$1"),title:o&&o.replace(this.rules.inline._escapes,"$1")},t[0],this.lexer)}}reflink(e,t){let i;if((i=this.rules.inline.reflink.exec(e))||(i=this.rules.inline.nolink.exec(e))){let r=(i[2]||i[1]).replace(/\s+/g," ");if(r=t[r.toLowerCase()],!r||!r.href){let o=i[0].charAt(0);return{type:"text",raw:o,text:o}}return hY(i,r,i[0],this.lexer)}}emStrong(e,t,i=""){let r=this.rules.inline.emStrong.lDelim.exec(e);if(!r||r[3]&&i.match(/[\p{L}\p{N}]/u))return;let o=r[1]||r[2]||"";if(!o||o&&(i===""||this.rules.inline.punctuation.exec(i))){let s=r[0].length-1,a,l,u=s,c=0,h=r[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(h.lastIndex=0,t=t.slice(-1*e.length+s);(r=h.exec(t))!=null;){if(a=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!a)continue;if(l=a.length,r[3]||r[4]){u+=l;continue}else if((r[5]||r[6])&&s%3&&!((s+l)%3)){c+=l;continue}if(u-=l,u>0)continue;if(l=Math.min(l,l+u+c),Math.min(s,l)%2){let g=e.slice(1,s+r.index+l);return{type:"em",raw:e.slice(0,s+r.index+l+1),text:g,tokens:this.lexer.inlineTokens(g,[])}}let d=e.slice(2,s+r.index+l-1);return{type:"strong",raw:e.slice(0,s+r.index+l+1),text:d,tokens:this.lexer.inlineTokens(d,[])}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let i=t[2].replace(/\n/g," "),r=/[^ ]/.test(i),o=/^ /.test(i)&&/ $/.test(i);return r&&o&&(i=i.substring(1,i.length-1)),i=Si(i,!0),{type:"codespan",raw:t[0],text:i}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2],[])}}autolink(e,t){let i=this.rules.inline.autolink.exec(e);if(i){let r,o;return i[2]==="@"?(r=Si(this.options.mangle?t(i[1]):i[1]),o="mailto:"+r):(r=Si(i[1]),o=r),{type:"link",raw:i[0],text:r,href:o,tokens:[{type:"text",raw:r,text:r}]}}}url(e,t){let i;if(i=this.rules.inline.url.exec(e)){let r,o;if(i[2]==="@")r=Si(this.options.mangle?t(i[0]):i[0]),o="mailto:"+r;else{let s;do s=i[0],i[0]=this.rules.inline._backpedal.exec(i[0])[0];while(s!==i[0]);r=Si(i[0]),i[1]==="www."?o="http://"+r:o=r}return{type:"link",raw:i[0],text:r,href:o,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(e,t){let i=this.rules.inline.text.exec(e);if(i){let r;return this.lexer.state.inRawBlock?r=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(i[0]):Si(i[0]):i[0]:r=Si(this.options.smartypants?t(i[0]):i[0]),{type:"text",raw:i[0],text:r}}}},ve={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)( [^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?<?([^\s>]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:Aw,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};ve._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/;ve._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;ve.def=mt(ve.def).replace("label",ve._label).replace("title",ve._title).getRegex();ve.bullet=/(?:[*+-]|\d{1,9}[.)])/;ve.listItemStart=mt(/^( *)(bull) */).replace("bull",ve.bullet).getRegex();ve.list=mt(ve.list).replace(/bull/g,ve.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+ve.def.source+")").getRegex();ve._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul";ve._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/;ve.html=mt(ve.html,"i").replace("comment",ve._comment).replace("tag",ve._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();ve.paragraph=mt(ve._paragraph).replace("hr",ve.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ve._tag).getRegex();ve.blockquote=mt(ve.blockquote).replace("paragraph",ve.paragraph).getRegex();ve.normal=no({},ve);ve.gfm=no({},ve.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"});ve.gfm.table=mt(ve.gfm.table).replace("hr",ve.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ve._tag).getRegex();ve.gfm.paragraph=mt(ve._paragraph).replace("hr",ve.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",ve.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ve._tag).getRegex();ve.pedantic=no({},ve.normal,{html:mt(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ve._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Aw,paragraph:mt(ve.normal._paragraph).replace("hr",ve.hr).replace("heading",` *#{1,6} *[^
|
||
]`).replace("lheading",ve.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});se={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Aw,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:Aw,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};se._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~";se.punctuation=mt(se.punctuation).replace(/punctuation/g,se._punctuation).getRegex();se.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g;se.escapedEmSt=/\\\*|\\_/g;se._comment=mt(ve._comment).replace("(?:-->|$)","-->").getRegex();se.emStrong.lDelim=mt(se.emStrong.lDelim).replace(/punct/g,se._punctuation).getRegex();se.emStrong.rDelimAst=mt(se.emStrong.rDelimAst,"g").replace(/punct/g,se._punctuation).getRegex();se.emStrong.rDelimUnd=mt(se.emStrong.rDelimUnd,"g").replace(/punct/g,se._punctuation).getRegex();se._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g;se._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;se._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/;se.autolink=mt(se.autolink).replace("scheme",se._scheme).replace("email",se._email).getRegex();se._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;se.tag=mt(se.tag).replace("comment",se._comment).replace("attribute",se._attribute).getRegex();se._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;se._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/;se._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;se.link=mt(se.link).replace("label",se._label).replace("href",se._href).replace("title",se._title).getRegex();se.reflink=mt(se.reflink).replace("label",se._label).replace("ref",ve._label).getRegex();se.nolink=mt(se.nolink).replace("ref",ve._label).getRegex();se.reflinkSearch=mt(se.reflinkSearch,"g").replace("reflink",se.reflink).replace("nolink",se.nolink).getRegex();se.normal=no({},se);se.pedantic=no({},se.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:mt(/^!?\[(label)\]\((.*?)\)/).replace("label",se._label).getRegex(),reflink:mt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",se._label).getRegex()});se.gfm=no({},se.normal,{escape:mt(se.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/});se.gfm.url=mt(se.gfm.url,"i").replace("email",se.gfm._extended_email).getRegex();se.breaks=no({},se.gfm,{br:mt(se.br).replace("{2,}","*").getRegex(),text:mt(se.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});to=class{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||oh,this.options.tokenizer=this.options.tokenizer||new up,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={block:ve.normal,inline:se.normal};this.options.pedantic?(t.block=ve.pedantic,t.inline=se.pedantic):this.options.gfm&&(t.block=ve.gfm,this.options.breaks?t.inline=se.breaks:t.inline=se.gfm),this.tokenizer.rules=t}static get rules(){return{block:ve,inline:se}}static lex(e,t){return new to(t).lex(e)}static lexInline(e,t){return new to(t).inlineTokens(e)}lex(e){e=e.replace(/\r\n|\r/g,`
|
||
`).replace(/\t/g," "),this.blockTokens(e,this.tokens);let t;for(;t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens}blockTokens(e,t=[]){this.options.pedantic&&(e=e.replace(/^ +$/gm,""));let i,r,o,s;for(;e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(a=>(i=a.call({lexer:this},e,t))?(e=e.substring(i.raw.length),t.push(i),!0):!1))){if(i=this.tokenizer.space(e)){e=e.substring(i.raw.length),i.raw.length===1&&t.length>0?t[t.length-1].raw+=`
|
||
`:t.push(i);continue}if(i=this.tokenizer.code(e)){e=e.substring(i.raw.length),r=t[t.length-1],r&&(r.type==="paragraph"||r.type==="text")?(r.raw+=`
|
||
`+i.raw,r.text+=`
|
||
`+i.text,this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(i);continue}if(i=this.tokenizer.fences(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.heading(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.hr(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.blockquote(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.list(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.html(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.def(e)){e=e.substring(i.raw.length),r=t[t.length-1],r&&(r.type==="paragraph"||r.type==="text")?(r.raw+=`
|
||
`+i.raw,r.text+=`
|
||
`+i.raw,this.inlineQueue[this.inlineQueue.length-1].src=r.text):this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title});continue}if(i=this.tokenizer.table(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.lheading(e)){e=e.substring(i.raw.length),t.push(i);continue}if(o=e,this.options.extensions&&this.options.extensions.startBlock){let a=1/0,l=e.slice(1),u;this.options.extensions.startBlock.forEach(function(c){u=c.call({lexer:this},l),typeof u=="number"&&u>=0&&(a=Math.min(a,u))}),a<1/0&&a>=0&&(o=e.substring(0,a+1))}if(this.state.top&&(i=this.tokenizer.paragraph(o))){r=t[t.length-1],s&&r.type==="paragraph"?(r.raw+=`
|
||
`+i.raw,r.text+=`
|
||
`+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(i),s=o.length!==e.length,e=e.substring(i.raw.length);continue}if(i=this.tokenizer.text(e)){e=e.substring(i.raw.length),r=t[t.length-1],r&&r.type==="text"?(r.raw+=`
|
||
`+i.raw,r.text+=`
|
||
`+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(i);continue}if(e){let a="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(a);break}else throw new Error(a)}}return this.state.top=!0,t}inline(e,t){this.inlineQueue.push({src:e,tokens:t})}inlineTokens(e,t=[]){let i,r,o,s=e,a,l,u;if(this.tokens.links){let c=Object.keys(this.tokens.links);if(c.length>0)for(;(a=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)c.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,a.index)+"["+cY("a",a[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(a=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)s=s.slice(0,a.index)+"["+cY("a",a[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(a=this.tokenizer.rules.inline.escapedEmSt.exec(s))!=null;)s=s.slice(0,a.index)+"++"+s.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(l||(u=""),l=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(c=>(i=c.call({lexer:this},e,t))?(e=e.substring(i.raw.length),t.push(i),!0):!1))){if(i=this.tokenizer.escape(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.tag(e)){e=e.substring(i.raw.length),r=t[t.length-1],r&&i.type==="text"&&r.type==="text"?(r.raw+=i.raw,r.text+=i.text):t.push(i);continue}if(i=this.tokenizer.link(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(i.raw.length),r=t[t.length-1],r&&i.type==="text"&&r.type==="text"?(r.raw+=i.raw,r.text+=i.text):t.push(i);continue}if(i=this.tokenizer.emStrong(e,s,u)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.codespan(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.br(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.del(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.autolink(e,dY)){e=e.substring(i.raw.length),t.push(i);continue}if(!this.state.inLink&&(i=this.tokenizer.url(e,dY))){e=e.substring(i.raw.length),t.push(i);continue}if(o=e,this.options.extensions&&this.options.extensions.startInline){let c=1/0,h=e.slice(1),d;this.options.extensions.startInline.forEach(function(g){d=g.call({lexer:this},h),typeof d=="number"&&d>=0&&(c=Math.min(c,d))}),c<1/0&&c>=0&&(o=e.substring(0,c+1))}if(i=this.tokenizer.inlineText(o,yme)){e=e.substring(i.raw.length),i.raw.slice(-1)!=="_"&&(u=i.raw.slice(-1)),l=!0,r=t[t.length-1],r&&r.type==="text"?(r.raw+=i.raw,r.text+=i.text):t.push(i);continue}if(e){let c="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return t}},cp=class{constructor(e){this.options=e||oh}code(e,t,i){let r=(t||"").match(/\S*/)[0];if(this.options.highlight){let o=this.options.highlight(e,r);o!=null&&o!==e&&(i=!0,e=o)}return e=e.replace(/\n$/,"")+`
|
||
`,r?'<pre><code class="'+this.options.langPrefix+Si(r,!0)+'">'+(i?e:Si(e,!0))+`</code></pre>
|
||
`:"<pre><code>"+(i?e:Si(e,!0))+`</code></pre>
|
||
`}blockquote(e){return`<blockquote>
|
||
`+e+`</blockquote>
|
||
`}html(e){return e}heading(e,t,i,r){return this.options.headerIds?"<h"+t+' id="'+this.options.headerPrefix+r.slug(i)+'">'+e+"</h"+t+`>
|
||
`:"<h"+t+">"+e+"</h"+t+`>
|
||
`}hr(){return this.options.xhtml?`<hr/>
|
||
`:`<hr>
|
||
`}list(e,t,i){let r=t?"ol":"ul",o=t&&i!==1?' start="'+i+'"':"";return"<"+r+o+`>
|
||
`+e+"</"+r+`>
|
||
`}listitem(e){return"<li>"+e+`</li>
|
||
`}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(e){return"<p>"+e+`</p>
|
||
`}table(e,t){return t&&(t="<tbody>"+t+"</tbody>"),`<table>
|
||
<thead>
|
||
`+e+`</thead>
|
||
`+t+`</table>
|
||
`}tablerow(e){return`<tr>
|
||
`+e+`</tr>
|
||
`}tablecell(e,t){let i=t.header?"th":"td";return(t.align?"<"+i+' align="'+t.align+'">':"<"+i+">")+e+"</"+i+`>
|
||
`}strong(e){return"<strong>"+e+"</strong>"}em(e){return"<em>"+e+"</em>"}codespan(e){return"<code>"+e+"</code>"}br(){return this.options.xhtml?"<br/>":"<br>"}del(e){return"<del>"+e+"</del>"}link(e,t,i){if(e=lY(this.options.sanitize,this.options.baseUrl,e),e===null)return i;let r='<a href="'+Si(e)+'"';return t&&(r+=' title="'+t+'"'),r+=">"+i+"</a>",r}image(e,t,i){if(e=lY(this.options.sanitize,this.options.baseUrl,e),e===null)return i;let r='<img src="'+e+'" alt="'+i+'"';return t&&(r+=' title="'+t+'"'),r+=this.options.xhtml?"/>":">",r}text(e){return e}},Nw=class{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,i){return""+i}image(e,t,i){return""+i}br(){return""}},Hw=class{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,t){let i=e,r=0;if(this.seen.hasOwnProperty(i)){r=this.seen[e];do r++,i=e+"-"+r;while(this.seen.hasOwnProperty(i))}return t||(this.seen[e]=r,this.seen[i]=0),i}slug(e,t={}){let i=this.serialize(e);return this.getNextSafeSlug(i,t.dryrun)}},io=class{constructor(e){this.options=e||oh,this.options.renderer=this.options.renderer||new cp,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Nw,this.slugger=new Hw}static parse(e,t){return new io(t).parse(e)}static parseInline(e,t){return new io(t).parseInline(e)}parse(e,t=!0){let i="",r,o,s,a,l,u,c,h,d,g,p,f,m,b,w,x,T,R,F,N=e.length;for(r=0;r<N;r++){if(g=e[r],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[g.type]&&(F=this.options.extensions.renderers[g.type].call({parser:this},g),F!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(g.type))){i+=F||"";continue}switch(g.type){case"space":continue;case"hr":{i+=this.renderer.hr();continue}case"heading":{i+=this.renderer.heading(this.parseInline(g.tokens),g.depth,pY(this.parseInline(g.tokens,this.textRenderer)),this.slugger);continue}case"code":{i+=this.renderer.code(g.text,g.lang,g.escaped);continue}case"table":{for(h="",c="",a=g.header.length,o=0;o<a;o++)c+=this.renderer.tablecell(this.parseInline(g.header[o].tokens),{header:!0,align:g.align[o]});for(h+=this.renderer.tablerow(c),d="",a=g.rows.length,o=0;o<a;o++){for(u=g.rows[o],c="",l=u.length,s=0;s<l;s++)c+=this.renderer.tablecell(this.parseInline(u[s].tokens),{header:!1,align:g.align[s]});d+=this.renderer.tablerow(c)}i+=this.renderer.table(h,d);continue}case"blockquote":{d=this.parse(g.tokens),i+=this.renderer.blockquote(d);continue}case"list":{for(p=g.ordered,f=g.start,m=g.loose,a=g.items.length,d="",o=0;o<a;o++)w=g.items[o],x=w.checked,T=w.task,b="",w.task&&(R=this.renderer.checkbox(x),m?w.tokens.length>0&&w.tokens[0].type==="paragraph"?(w.tokens[0].text=R+" "+w.tokens[0].text,w.tokens[0].tokens&&w.tokens[0].tokens.length>0&&w.tokens[0].tokens[0].type==="text"&&(w.tokens[0].tokens[0].text=R+" "+w.tokens[0].tokens[0].text)):w.tokens.unshift({type:"text",text:R}):b+=R),b+=this.parse(w.tokens,m),d+=this.renderer.listitem(b,T,x);i+=this.renderer.list(d,p,f);continue}case"html":{i+=this.renderer.html(g.text);continue}case"paragraph":{i+=this.renderer.paragraph(this.parseInline(g.tokens));continue}case"text":{for(d=g.tokens?this.parseInline(g.tokens):g.text;r+1<N&&e[r+1].type==="text";)g=e[++r],d+=`
|
||
`+(g.tokens?this.parseInline(g.tokens):g.text);i+=t?this.renderer.paragraph(d):d;continue}default:{let J='Token with "'+g.type+'" type was not found.';if(this.options.silent){console.error(J);return}else throw new Error(J)}}}return i}parseInline(e,t){t=t||this.renderer;let i="",r,o,s,a=e.length;for(r=0;r<a;r++){if(o=e[r],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[o.type]&&(s=this.options.extensions.renderers[o.type].call({parser:this},o),s!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(o.type))){i+=s||"";continue}switch(o.type){case"escape":{i+=t.text(o.text);break}case"html":{i+=t.html(o.text);break}case"link":{i+=t.link(o.href,o.title,this.parseInline(o.tokens,t));break}case"image":{i+=t.image(o.href,o.title,o.text);break}case"strong":{i+=t.strong(this.parseInline(o.tokens,t));break}case"em":{i+=t.em(this.parseInline(o.tokens,t));break}case"codespan":{i+=t.codespan(o.text);break}case"br":{i+=t.br();break}case"del":{i+=t.del(this.parseInline(o.tokens,t));break}case"text":{i+=t.text(o.text);break}default:{let l='Token with "'+o.type+'" type was not found.';if(this.options.silent){console.error(l);return}else throw new Error(l)}}}return i}};ke.options=ke.setOptions=function(n){return no(ke.defaults,n),ime(ke.defaults),ke};ke.getDefaults=gY;ke.defaults=oh;ke.use=function(...n){let e=no({},...n),t=ke.defaults.extensions||{renderers:{},childTokens:{}},i;n.forEach(r=>{if(r.extensions&&(i=!0,r.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if(o.renderer){let s=t.renderers?t.renderers[o.name]:null;s?t.renderers[o.name]=function(...a){let l=o.renderer.apply(this,a);return l===!1&&(l=s.apply(this,a)),l}:t.renderers[o.name]=o.renderer}if(o.tokenizer){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");t[o.level]?t[o.level].unshift(o.tokenizer):t[o.level]=[o.tokenizer],o.start&&(o.level==="block"?t.startBlock?t.startBlock.push(o.start):t.startBlock=[o.start]:o.level==="inline"&&(t.startInline?t.startInline.push(o.start):t.startInline=[o.start]))}o.childTokens&&(t.childTokens[o.name]=o.childTokens)})),r.renderer){let o=ke.defaults.renderer||new cp;for(let s in r.renderer){let a=o[s];o[s]=(...l)=>{let u=r.renderer[s].apply(o,l);return u===!1&&(u=a.apply(o,l)),u}}e.renderer=o}if(r.tokenizer){let o=ke.defaults.tokenizer||new up;for(let s in r.tokenizer){let a=o[s];o[s]=(...l)=>{let u=r.tokenizer[s].apply(o,l);return u===!1&&(u=a.apply(o,l)),u}}e.tokenizer=o}if(r.walkTokens){let o=ke.defaults.walkTokens;e.walkTokens=function(s){r.walkTokens.call(this,s),o&&o.call(this,s)}}i&&(e.extensions=t),ke.setOptions(e)})};ke.walkTokens=function(n,e){for(let t of n)switch(e.call(ke,t),t.type){case"table":{for(let i of t.header)ke.walkTokens(i.tokens,e);for(let i of t.rows)for(let r of i)ke.walkTokens(r.tokens,e);break}case"list":{ke.walkTokens(t.items,e);break}default:ke.defaults.extensions&&ke.defaults.extensions.childTokens&&ke.defaults.extensions.childTokens[t.type]?ke.defaults.extensions.childTokens[t.type].forEach(function(i){ke.walkTokens(t[i],e)}):t.tokens&&ke.walkTokens(t.tokens,e)}};ke.parseInline=function(n,e){if(typeof n>"u"||n===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof n!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected");e=no({},ke.defaults,e||{}),fY(e);try{let t=to.lexInline(n,e);return e.walkTokens&&ke.walkTokens(t,e.walkTokens),io.parseInline(t,e)}catch(t){if(t.message+=`
|
||
Please report this to https://github.com/markedjs/marked.`,e.silent)return"<p>An error occurred:</p><pre>"+Si(t.message+"",!0)+"</pre>";throw t}};ke.Parser=io;ke.parser=io.parse;ke.Renderer=cp;ke.TextRenderer=Nw;ke.Lexer=to;ke.lexer=to.lex;ke.Tokenizer=up;ke.Slugger=Hw;ke.parse=ke;k_e=ke.options,P_e=ke.setOptions,E_e=ke.use,R_e=ke.walkTokens,__e=ke.parseInline,L_e=io.parse,I_e=to.lex});var wY=y((j_e,vY)=>{var yY={};vY.exports=yY;var bY={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(bY).forEach(function(n){var e=bY[n],t=yY[n]=[];t.open="\x1B["+e[0]+"m",t.close="\x1B["+e[1]+"m"})});var CY=y((M_e,xY)=>{var hp=process.argv;xY.exports=function(){return hp.indexOf("--no-color")!==-1||hp.indexOf("--color=false")!==-1?!1:hp.indexOf("--color")!==-1||hp.indexOf("--color=true")!==-1||hp.indexOf("--color=always")!==-1?!0:process.stdout&&!process.stdout.isTTY?!1:process.platform==="win32"||"COLORTERM"in process.env?!0:process.env.TERM==="dumb"?!1:!!/^screen|^xterm|^vt100|color|ansi|cygwin|linux/i.test(process.env.TERM)}()});var DY=y((O_e,SY)=>{SY.exports=function(e,t){var i="";e=e||"Run the trap, drop the bass",e=e.split("");var r={a:["@","\u0104","\u023A","\u0245","\u0394","\u039B","\u0414"],b:["\xDF","\u0181","\u0243","\u026E","\u03B2","\u0E3F"],c:["\xA9","\u023B","\u03FE"],d:["\xD0","\u018A","\u0500","\u0501","\u0502","\u0503"],e:["\xCB","\u0115","\u018E","\u0258","\u03A3","\u03BE","\u04BC","\u0A6C"],f:["\u04FA"],g:["\u0262"],h:["\u0126","\u0195","\u04A2","\u04BA","\u04C7","\u050A"],i:["\u0F0F"],j:["\u0134"],k:["\u0138","\u04A0","\u04C3","\u051E"],l:["\u0139"],m:["\u028D","\u04CD","\u04CE","\u0520","\u0521","\u0D69"],n:["\xD1","\u014B","\u019D","\u0376","\u03A0","\u048A"],o:["\xD8","\xF5","\xF8","\u01FE","\u0298","\u047A","\u05DD","\u06DD","\u0E4F"],p:["\u01F7","\u048E"],q:["\u09CD"],r:["\xAE","\u01A6","\u0210","\u024C","\u0280","\u042F"],s:["\xA7","\u03DE","\u03DF","\u03E8"],t:["\u0141","\u0166","\u0373"],u:["\u01B1","\u054D"],v:["\u05D8"],w:["\u0428","\u0460","\u047C","\u0D70"],x:["\u04B2","\u04FE","\u04FC","\u04FD"],y:["\xA5","\u04B0","\u04CB"],z:["\u01B5","\u0240"]};return e.forEach(function(o){o=o.toLowerCase();var s=r[o]||[" "],a=Math.floor(Math.random()*s.length);typeof r[o]<"u"?i+=r[o][a]:i+=o}),i}});var kY=y((A_e,TY)=>{TY.exports=function(e,t){e=e||" he is here ";var i={up:["\u030D","\u030E","\u0304","\u0305","\u033F","\u0311","\u0306","\u0310","\u0352","\u0357","\u0351","\u0307","\u0308","\u030A","\u0342","\u0313","\u0308","\u034A","\u034B","\u034C","\u0303","\u0302","\u030C","\u0350","\u0300","\u0301","\u030B","\u030F","\u0312","\u0313","\u0314","\u033D","\u0309","\u0363","\u0364","\u0365","\u0366","\u0367","\u0368","\u0369","\u036A","\u036B","\u036C","\u036D","\u036E","\u036F","\u033E","\u035B","\u0346","\u031A"],down:["\u0316","\u0317","\u0318","\u0319","\u031C","\u031D","\u031E","\u031F","\u0320","\u0324","\u0325","\u0326","\u0329","\u032A","\u032B","\u032C","\u032D","\u032E","\u032F","\u0330","\u0331","\u0332","\u0333","\u0339","\u033A","\u033B","\u033C","\u0345","\u0347","\u0348","\u0349","\u034D","\u034E","\u0353","\u0354","\u0355","\u0356","\u0359","\u035A","\u0323"],mid:["\u0315","\u031B","\u0300","\u0301","\u0358","\u0321","\u0322","\u0327","\u0328","\u0334","\u0335","\u0336","\u035C","\u035D","\u035E","\u035F","\u0360","\u0362","\u0338","\u0337","\u0361"," \u0489"]},r=[].concat(i.up,i.down,i.mid),o={};function s(u){var c=Math.floor(Math.random()*u);return c}function a(u){var c=!1;return r.filter(function(h){c=h===u}),c}function l(u,c){var h="",d,g;c=c||{},c.up=c.up||!0,c.mid=c.mid||!0,c.down=c.down||!0,c.size=c.size||"maxi",u=u.split("");for(g in u)if(!a(g)){switch(h=h+u[g],d={up:0,down:0,mid:0},c.size){case"mini":d.up=s(8),d.min=s(2),d.down=s(8);break;case"maxi":d.up=s(16)+3,d.min=s(4)+1,d.down=s(64)+3;break;default:d.up=s(8)+1,d.mid=s(6)/2,d.down=s(8)+1;break}var p=["up","mid","down"];for(var f in p)for(var m=p[f],b=0;b<=d[m];b++)c[m]&&(h=h+i[m][s(i[m].length)])}return h}return l(e)}});var EY=y((N_e,PY)=>{var UE=sh();PY.exports=function(){return function(n,e,t){if(n===" ")return n;switch(e%3){case 0:return UE.red(n);case 1:return UE.white(n);case 2:return UE.blue(n)}}}()});var _Y=y((H_e,RY)=>{var vme=sh();RY.exports=function(n,e,t){return e%2===0?n:vme.inverse(n)}});var IY=y((q_e,LY)=>{var wme=sh();LY.exports=function(){var n=["red","yellow","green","blue","magenta"];return function(e,t,i){return e===" "?e:wme[n[t++%n.length]](e)}}()});var jY=y((B_e,FY)=>{var xme=sh();FY.exports=function(){var n=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta"];return function(e,t,i){return e===" "?e:xme[n[Math.round(Math.random()*(n.length-1))]](e)}}()});var sh=y((Y_e,qY)=>{var ht={};qY.exports=ht;ht.themes={};var Da=ht.styles=wY(),AY=Object.defineProperties;ht.supportsColor=CY();typeof ht.enabled>"u"&&(ht.enabled=ht.supportsColor);ht.stripColors=ht.strip=function(n){return(""+n).replace(/\x1B\[\d+m/g,"")};var W_e=ht.stylize=function(e,t){return Da[t].open+e+Da[t].close},Cme=/[|\\{}()[\]^$+*?.]/g,Sme=function(n){if(typeof n!="string")throw new TypeError("Expected a string");return n.replace(Cme,"\\$&")};function NY(n){var e=function t(){return Tme.apply(t,arguments)};return e._styles=n,e.__proto__=Dme,e}var HY=function(){var n={};return Da.grey=Da.gray,Object.keys(Da).forEach(function(e){Da[e].closeRe=new RegExp(Sme(Da[e].close),"g"),n[e]={get:function(){return NY(this._styles.concat(e))}}}),n}(),Dme=AY(function(){},HY);function Tme(){var n=arguments,e=n.length,t=e!==0&&String(arguments[0]);if(e>1)for(var i=1;i<e;i++)t+=" "+n[i];if(!ht.enabled||!t)return t;for(var r=this._styles,o=r.length;o--;){var s=Da[r[o]];t=s.open+t.replace(s.closeRe,s.open)+s.close}return t}function MY(n){for(var e in n)(function(t){ht[t]=function(i){return ht[n[t]](i)}})(e)}ht.setTheme=function(n){if(typeof n=="string")try{return ht.themes[n]=require(n),MY(ht.themes[n]),ht.themes[n]}catch(e){return console.log(e),e}else MY(n)};function kme(){var n={};return Object.keys(HY).forEach(function(e){n[e]={get:function(){return NY([e])}}}),n}var Pme=function(e,t){var i=t.split(""),r=0;return i=i.map(e),i.join("")};ht.trap=DY();ht.zalgo=kY();ht.maps={};ht.maps.america=EY();ht.maps.zebra=_Y();ht.maps.rainbow=IY();ht.maps.random=jY();for(OY in ht.maps)(function(n){ht[n]=function(e){return Pme(ht.maps[n],e)}})(OY);var OY;AY(ht,kme())});var WY=y((Z_e,BY)=>{var Eme=sh();BY.exports=Eme});var ZY=y(ah=>{ah.repeat=function(n,e){return Array(e+1).join(n)};ah.pad=function(n,e,t,i){if(e+1>=n.length)switch(i){case"left":n=Array(e+1-n.length).join(t)+n;break;case"both":var r=Math.ceil((padlen=e-n.length)/2),o=padlen-r;n=Array(o+1).join(t)+n+Array(r+1).join(t);break;default:n=n+Array(e+1-n.length).join(t)}return n};ah.truncate=function(n,e,t){return t=t||"\u2026",n.length>=e?n.substr(0,e-t.length)+t:n};function YY(n,e){for(var t in e)t==="__proto__"||t==="constructor"||t==="prototype"||(e[t]&&e[t].constructor&&e[t].constructor===Object?(n[t]=n[t]||{},YY(n[t],e[t])):n[t]=e[t]);return n}ah.options=YY;ah.strlen=function(n){var e=/\u001b\[(?:\d*;){0,5}\d*m/g,t=(""+n).replace(e,""),i=t.split(`
|
||
`);return i.reduce(function(r,o){return o.length>r?o.length:r},0)}});var JY=y(($_e,GE)=>{var Rme=WY(),zl=ZY(),XE=zl.repeat,_me=zl.truncate,Lme=zl.pad;function dp(n){this.options=zl.options({chars:{top:"\u2500","top-mid":"\u252C","top-left":"\u250C","top-right":"\u2510",bottom:"\u2500","bottom-mid":"\u2534","bottom-left":"\u2514","bottom-right":"\u2518",left:"\u2502","left-mid":"\u251C",mid:"\u2500","mid-mid":"\u253C",right:"\u2502","right-mid":"\u2524",middle:"\u2502"},truncate:"\u2026",colWidths:[],colAligns:[],style:{"padding-left":1,"padding-right":1,head:["red"],border:["grey"],compact:!1},head:[]},n)}dp.prototype.__proto__=Array.prototype;dp.prototype.__defineGetter__("width",function(){var n=this.toString().split(`
|
||
`);return n.length?n[0].length:0});dp.prototype.render;dp.prototype.toString=function(){var n="",e=this.options,t=e.style,i=e.head,r=e.chars,o=e.truncate,s=e.colWidths||new Array(this.head.length),a=0;if(!i.length&&!this.length)return"";if(!s.length){var l=this.slice(0);i.length&&(l=l.concat([i])),l.forEach(function(b){if(typeof b=="object"&&b.length)u(b);else{var w=Object.keys(b)[0],x=b[w];s[0]=Math.max(s[0]||0,c(w)||0),typeof x=="object"&&x.length?u(x,1):s[1]=Math.max(s[1]||0,c(x)||0)}})}a=(s.length==1?s[0]:s.reduce(function(b,w){return b+w}))+s.length+1;function u(b,x){var x=x||0;b.forEach(function(T,R){s[R+x]=Math.max(s[R+x]||0,c(T)||0)})}function c(b){return typeof b=="object"&&b.width!=null?b.width:(typeof b=="object"?zl.strlen(b.text):zl.strlen(b))+(t["padding-left"]||0)+(t["padding-right"]||0)}function h(F,w,x,T){var R=0,F=w+XE(F,a-2)+x;return s.forEach(function(N,J){J!=s.length-1&&(R+=N+1,F=F.substr(0,R)+T+F.substr(R+1))}),p(e.style.border,F)}function d(){var b=h(r.top,r["top-left"]||r.top,r["top-right"]||r.top,r["top-mid"]);b&&(n+=b+`
|
||
`)}function g(b,w){var x=[],T=0;if(!Array.isArray(b)&&typeof b=="object"){var R=Object.keys(b)[0],F=b[R],N=!0;Array.isArray(F)?(b=F,b.unshift(R)):b=[R,F]}b.forEach(function(M,L){var O=M.toString().split(`
|
||
`).reduce(function(ne,be){return ne.push(f(be,L)),ne},[]),Z=O.length;Z>T&&(T=Z),x.push({contents:O,height:Z})});var J=new Array(T);x.forEach(function(M,L){M.contents.forEach(function(ne,be){J[be]||(J[be]=[]),(w||N&&L===0&&e.style.head)&&(ne=p(e.style.head,ne)),J[be].push(ne)});for(var O=M.height,Z=T;O<Z;O++)J[O]||(J[O]=[]),J[O].push(f("",L))});var H="";return J.forEach(function(M,L){H.length>0&&(H+=`
|
||
`+p(e.style.border,r.left)),H+=M.join(p(e.style.border,r.middle))+p(e.style.border,r.right)}),p(e.style.border,r.left)+H}function p(b,w){return w?(b.forEach(function(x){w=Rme[x](w)}),w):""}function f(x,w){var x=String(typeof x=="object"&&x.text?x.text:x),T=zl.strlen(x),R=s[w]-(t["padding-left"]||0)-(t["padding-right"]||0),F=e.colAligns[w]||"left";return XE(" ",t["padding-left"]||0)+(T==R?x:T<R?Lme(x,R+(x.length-T)," ",F=="left"?"right":F=="middle"?"both":"left"):o?_me(x,R,o):x)+XE(" ",t["padding-right"]||0)}i.length&&(d(),n+=g(i,t.head)+`
|
||
`),this.length&&this.forEach(function(b,w){if(!i.length&&w==0)d();else if(!t.compact||w<!!i.length||b.length==0){var x=h(r.mid,r["left-mid"],r["right-mid"],r["mid-mid"]);x&&(n+=x+`
|
||
`)}b.hasOwnProperty("length")&&!b.length||(n+=g(b)+`
|
||
`)});var m=h(r.bottom,r["bottom-left"]||r.bottom,r["bottom-right"]||r.bottom,r["bottom-mid"]);return m?n+=m:n=n.slice(0,-1),n};GE.exports=dp;GE.exports.version="0.0.1"});var GY=y((U_e,XY)=>{"use strict";var $Y=(n=0)=>e=>`\x1B[${38+n};5;${e}m`,UY=(n=0)=>(e,t,i)=>`\x1B[${38+n};2;${e};${t};${i}m`;function Ime(){let n=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.gray=e.color.blackBright,e.bgColor.bgGray=e.bgColor.bgBlackBright,e.color.grey=e.color.blackBright,e.bgColor.bgGrey=e.bgColor.bgBlackBright;for(let[t,i]of Object.entries(e)){for(let[r,o]of Object.entries(i))e[r]={open:`\x1B[${o[0]}m`,close:`\x1B[${o[1]}m`},i[r]=e[r],n.set(o[0],o[1]);Object.defineProperty(e,t,{value:i,enumerable:!1})}return Object.defineProperty(e,"codes",{value:n,enumerable:!1}),e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",e.color.ansi256=$Y(),e.color.ansi16m=UY(),e.bgColor.ansi256=$Y(10),e.bgColor.ansi16m=UY(10),Object.defineProperties(e,{rgbToAnsi256:{value:(t,i,r)=>t===i&&i===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(i/255*5)+Math.round(r/255*5),enumerable:!1},hexToRgb:{value:t=>{let i=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(t.toString(16));if(!i)return[0,0,0];let{colorString:r}=i.groups;r.length===3&&(r=r.split("").map(s=>s+s).join(""));let o=Number.parseInt(r,16);return[o>>16&255,o>>8&255,o&255]},enumerable:!1},hexToAnsi256:{value:t=>e.rgbToAnsi256(...e.hexToRgb(t)),enumerable:!1}}),e}Object.defineProperty(XY,"exports",{enumerable:!0,get:Ime})});function zY(n){return`${Ni.default.gray.open}${n}${Ni.default.gray.close}`}function zE(n){return`${Ni.default.magenta.open}${n}${Ni.default.magenta.close}`}function KY(n){return`${Ni.default.bold.open}${n}${Ni.default.bold.close}`}function KE(n){return`${Ni.default.underline.open}${n}${Ni.default.underline.close}`}function QY(n){return`${Ni.default.strikethrough.open}${n}${Ni.default.strikethrough.close}`}function VY(n){return`${Ni.default.italic.open}${n}${Ni.default.italic.close}`}function eZ(n){return`${Ni.default.yellow.open}${n}${Ni.default.yellow.close}`}function QE(n){return`${Ni.default.blue.open}${n}${Ni.default.blue.close}`}var Ni,tZ=k(()=>{"use strict";Ni=S(GY())});function ro(n){return n}function Ame(n){return zY(n.replace(/(<([^>]+)>)/ig,""))}function iZ(n,e){return e?n.replace(Ome,/\n/g):n}function Hme(n,e){return e.replace(/(^|\n)(.+)/g,"$1"+n+"$2")}function qme(n,e){return e&&n+e.split(`
|
||
`).join(`
|
||
`+n)}function Yme(n,e){let t=new RegExp("(\\S(?: | )?)((?:"+e+")+)("+lZ+"(?:.*)+)$","gm");return n.replace(t,`$1
|
||
`+e+"$2$3")}function cZ(n){return" ".repeat(n.length)}function Zme(n,e){return uZ(e,n)?e:cZ(iR)+e}function Jme(n,e){let t=Zme.bind(null,e);return n.split(`
|
||
`).filter(ro).map(t).join(`
|
||
`)}function $me(n,e,t){return uZ(e,n)?{num:t+1,line:e.replace(iR,nZ(t+1))}:{num:t,line:cZ(nZ(t))+e}}function Ume(n,e){let t=$me.bind(null,e),i=0;return n.split(`
|
||
`).filter(ro).map(r=>{let o=t(r,i);return i=o.num,o.line}).join(`
|
||
`)}function Xme(n,e,t){return n=n.trim(),n=e?Ume(n,t):Jme(n,t),n}function gp(n){return n+`
|
||
|
||
`}function Gme(n){return n.replace(Mme,":")}function rZ(n,e=null){if(!n)return[];e=e||ro;let t=e(n).split(`
|
||
`),i=[];return t.forEach(function(r){if(!r)return;let o=r.replace(jme,"").split(sZ);i.push(o.splice(0,o.length-1))}),i}function hZ(n){return n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function zme(n){return n.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'")}var oZ,X_e,sZ,eR,jme,aZ,Mme,Ome,Nme,Bme,Wme,lZ,uZ,iR,nZ,VE,tR,nR,dZ=k(()=>{"use strict";oZ=S(JY());tZ();X_e=q()("markdown-renderer"),sZ="^*||*^",eR="*|*|*|*",jme=new RegExp(hZ(eR),"g"),aZ="*#COLON|*",Mme=new RegExp(hZ(aZ),"g"),Ome="\r";Nme={code:ro,blockquote:ro,html:Ame,heading:zE,firstHeading:zE,hr:ro,listitem:ro,list:Xme,table:ro,paragraph:ro,strong:KY,em:VY,codespan:eZ,del:QY,link:KE,href:KE,text:ro,unescape:!0,emoji:!1,width:80,showSectionPrefix:!1,tab:2,tableOptions:{}};Bme="\\*",Wme="\\d+\\.",lZ="(?:"+[Bme,Wme].join("|")+")";uZ=function(n,e){return n.match("^(?:"+e+")*"+lZ)};iR="* ";nZ=function(n){return n+". "};VE=new Map,tR=class{constructor(e={},t={}){this.options=e;this.highlightOptions=t;this.o=Object.assign({},Nme,e),this.tab=" ",this.tableSettings=this.o.tableOptions,this.unescape=this.o.unescape?zme:ro,this.highlightOptions=t||{},this.transform=this.compose(Gme,this.unescape)}text(e){return this.o.text(e)}code(e,t,i){return"``` "+t+`
|
||
`+e+"\n```\n"}blockquote(e){return gp(this.o.blockquote(qme(this.tab,e.trim())))}html(e){return this.o.html(e)}heading(e,t,i){return e=this.transform(e),e=(this.o.showSectionPrefix?new Array(t+1).join("#")+" ":"")+e,gp(t===1?this.o.firstHeading(e):this.o.heading(e))}hr(){return`\u2500\u2500\u2500
|
||
`}list(e,t){return e=this.o.list(e,t,this.tab),gp(Yme(Hme(this.tab,e),this.tab))}listitem(e){let t=this.compose(this.o.listitem,this.transform);return e.indexOf(`
|
||
`)!==-1&&(e=e.trim()),`
|
||
`+iR+t(e)}checkbox(e){return"["+(e?"X":" ")+"] "}paragraph(e){return e=this.compose(this.o.paragraph,this.transform)(e),gp(e)}table(e,t){let i=new oZ.default(Object.assign({},{head:rZ(e)[0]},this.tableSettings));return rZ(t,this.transform).forEach(function(r){i.push(r)}),gp(this.o.table(i.toString()))}tablerow(e){return eR+e+eR+`
|
||
`}tablecell(e,t){return e+sZ}strong(e){return this.o.strong(e)}em(e){return e=iZ(e,this.o.reflowText),this.o.em(e)}codespan(e){return e=iZ(e,this.o.reflowText),this.o.codespan(e.replace(/:/g,aZ))}br(){return`
|
||
`}del(e){return this.o.del(e)}link(e,t,i){let r;try{r=decodeURIComponent(unescape(e)).replace(/[^\w:]/g,"").toLowerCase()}catch{return""}if(r.startsWith("javascript:"))return"";if(i&&e&&i!=e&&VE.set(i,e),i&&i!=e)return QE(i);let o=this.o.href(e);return this.o.link(o)}image(e,t,i){let r="!["+i;return t&&(r+=" \u2013 "+t),r+"]("+e+")"}compose(...e){return(...t)=>{for(let i=e.length;i-- >0;)t=[e[i].apply(this,t)];return t[0]}}static getLinks(){let e=[];for(let[t,i]of VE.entries())e.push(`${QE(t)}: ${i}`);return VE.clear(),e}},nR=tR});function lh(n,e=!1){let t=pp(n),i=[],r="";for(let o of t){if(!o.text)continue;let{foreground:s,background:a}=o,l=Q(r),u=[l,l+Q(o.text)];if(s&&a){let c=`CocList${_n(s)}${_n(a)}`;i.push({span:u,hlGroup:c})}else if(s){let c;e?s=="yellow"?c="CocMarkdownCode":s=="blue"?c="CocMarkdownLink":s=="magenta"?c="CocMarkdownHeader":c=`CocListFg${_n(s)}`:c=`CocListFg${_n(s)}`,i.push({span:u,hlGroup:c})}else if(a){let c=`CocListBg${_n(a)}`;i.push({span:u,hlGroup:c})}o.bold?i.push({span:u,hlGroup:"CocBold"}):o.italic?i.push({span:u,hlGroup:"CocItalic"}):o.underline?i.push({span:u,hlGroup:"CocUnderline"}):o.strikethrough&&i.push({span:u,hlGroup:"CocStrikeThrough"}),r=r+o.text}return{line:r,highlights:i}}function pp(n){let e=null,t=null,i="",r=[],o=[],s={},a;a=()=>{let l,u;i.length?i=i.substr(0,i.length-1):o.length&&(l=o.length-1,u=o[l].text,u.length===1?o.pop():o[l].text=u.substr(0,u.length-1))};for(let l=0;l<n.length;l++){if(e!=null){e=="\x1B"&&n[l]=="["?(i&&(s.text=i,o.push(s),s={},i=""),i==""&&(n[l+1]=="m"||n[l+1]=="K")&&((s.foreground||s.background)&&(s.text="",o.push(s)),s={}),e=null,t=""):(i+=e+n[l],e=null);continue}else if(t!=null){n[l]==";"?(r.push(t),t=""):n[l]=="m"||n[l]=="K"?(r.push(t),t=null,i="",r.forEach(u=>{gZ[u]?s.foreground=gZ[u]:pZ[u]?s.background=pZ[u]:u==39?delete s.foreground:u==49?delete s.background:fZ[u]?s[fZ[u]]=!0:u==22?s.bold=!1:u==23?s.italic=!1:u==24?s.underline=!1:u==29&&(s.strikethrough=!1)}),r=[]):t+=n[l];continue}n[l]=="\x1B"?e=n[l]:n[l]=="\b"?a():i+=n[l]}return i&&(s.text=i+(e||""),o.push(s)),o}var gZ,pZ,fZ,uh=k(()=>{"use strict";_e();gZ={30:"black",31:"red",32:"green",33:"yellow",34:"blue",35:"magenta",36:"cyan",37:"white",90:"grey"},pZ={40:"black",41:"red",42:"green",43:"yellow",44:"blue",45:"magenta",46:"cyan",47:"white"},fZ={1:"bold",3:"italic",4:"underline",9:"strikethrough"}});var bZ=y((Q_e,mZ)=>{"use strict";mZ.exports=({onlyFirst:n=!1}={})=>{let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,n?void 0:"g")}});var qw=y((V_e,yZ)=>{"use strict";var Kme=bZ();yZ.exports=n=>typeof n=="string"?n.replace(Kme(),""):n});function Ww(n,e={}){let t=[],i=[],r=[],o=0;for(let s of n){let a=t.length,{content:l,filetype:u}=s,c=s.highlights;if(u=="markdown"){let h=ebe(l,e);r.push(...h.codes.map(d=>(d.startLine=d.startLine+a,d.endLine=d.endLine+a,d))),i.push(...h.highlights.map(d=>(d.lnum=d.lnum+a,d))),t.push(...h.lines)}else{let h=l.trim().split(/\r?\n/);Qme.includes(s.filetype)?r.push({hlGroup:`Coc${u}Float`,startLine:a,endLine:a+h.length}):r.push({filetype:s.filetype,startLine:a,endLine:a+h.length}),t.push(...h)}if(Array.isArray(c)&&i.push(...c.map(h=>Object.assign({},h,{lnum:h.lnum+a}))),Array.isArray(s.active)){let h=Vme(l,a,s.active);h.length&&i.push(...h)}o!=n.length-1&&(i.push({lnum:t.length,hlGroup:"CocFloatDividingLine",colStart:0,colEnd:-1}),t.push("\u2500")),o=o+1}return{lines:t,highlights:i,codes:r}}function Vme(n,e,t){let i=[],[r,o]=t,s=n.split(/\r?\n/),a=0,l=!1;for(let u=0;u<s.length;u++){let c=s[u];if(l)if(a+c.length>o){let h=Q(c.slice(0,o-a));i.push({colStart:0,colEnd:h,lnum:u+e,hlGroup:Bw}),l=!1;break}else{let h=Q(c);i.push({colStart:0,colEnd:h,lnum:u+e,hlGroup:Bw})}else if(a+c.length>r){l=!0;let h=Q(c.slice(0,r-a));if(a+c.length>o){let d=Q(c.slice(0,o-a));l=!1,i.push({colStart:h,colEnd:d,lnum:u+e,hlGroup:Bw});break}else{let d=Q(c);i.push({colStart:h,colEnd:d,lnum:u+e,hlGroup:Bw})}}a=a+c.length+1}return i}function ebe(n,e){ke.setOptions({renderer:new nR,gfm:!0,breaks:!0});let t=[],i=[],r=[],o=0,s=!1,a,l=0,u=ke(n),c=nR.getLinks();u=u.replace(/\n\n/g,`
|
||
`).replace(/\s*$/,""),c.length&&(u=u+`
|
||
|
||
`+c.join(`
|
||
`));let h=u.split(/\n/);for(let d=0;d<h.length;d++){let g=h[d];if(!g.length){t[t.length-1]&&(t.push(g),o++);continue}if(e.excludeImages&&g.indexOf("![")!==-1&&(g=g.replace(/\s*!\[.*?\]\(.*?\)/g,""),!(0,vZ.default)(g).trim().length))continue;if(/\s*```\s*([A-Za-z0-9_,]+)?$/.test(g)){if(s)s=!1,r.push({filetype:a,startLine:l,endLine:o});else{let f=h[d-1];f&&/^\s*```\s*/.test(f)&&(t.push(""),o++),s=!0,a=g.replace(/^\s*```\s*/,""),a=="js"&&(a="javascript"),a=="ts"&&(a="typescript"),a=="bash"&&(a="sh"),l=o}continue}if(s){t.push(g),o++;continue}let p=lh(g,!0);if(g==="\u2500\u2500\u2500")i.push({hlGroup:"CocFloatDividingLine",lnum:o,colStart:0,colEnd:-1});else if(p.highlights)for(let f of p.highlights){let{hlGroup:m,span:b}=f;i.push({hlGroup:m,lnum:o,colStart:b[0],colEnd:b[1]})}t.push(p.line),o++}return{lines:t,highlights:i,codes:r}}var vZ,Qme,rLe,Bw,rR=k(()=>{"use strict";mY();dZ();uh();_e();vZ=S(qw()),Qme=["Error","Warning","Info","Hint"],rLe=q()("markdown-index"),Bw="CocFloatActive"});var Di,ds=k(()=>{"use strict";Di=class{constructor(){this.tasks=[];this.count=1}sched(){this.count>0&&this.tasks.length>0&&(this.count--,this.tasks.shift()())}get busy(){return this.count==0}acquire(){return new Promise(e=>{let t=()=>{let i=!1;e(()=>{i||(i=!0,this.count++,this.sched())})};this.tasks.push(t),process.nextTick(this.sched.bind(this))})}use(e){return this.acquire().then(t=>e().then(i=>(t(),i)).catch(i=>{throw t(),i}))}}});var wZ,xZ,tbe,gLe,Kl,oR=k(()=>{"use strict";wZ=S(Pn()),xZ=S(W());fe();rR();re();ds();et();tbe=process.env.VIM_NODE_RPC=="1",gLe=q()("model-float"),Kl=class{constructor(e){this.nvim=e;this.winid=0;this._bufnr=0;this.mutex=new Di;this.disposables=[];this.onCursorMoved=(0,wZ.default)(this._onCursorMoved.bind(this),100)}bindEvents(e,t){let i=["InsertLeave","InsertEnter","BufEnter"];for(let r of i)P.on(r,o=>{o!=this._bufnr&&this.close()},null,this.disposables);P.on("MenuPopupChanged",()=>{P.pumAlignTop==t&&this.close()},null,this.disposables),this.disposables.push(xZ.Disposable.create(()=>{this.onCursorMoved.clear()})),P.on("CursorMoved",this.onCursorMoved.bind(this,e),this,this.disposables),P.on("CursorMovedI",this.onCursorMoved.bind(this,e),this,this.disposables)}unbind(){this.disposables.length&&(U(this.disposables),this.disposables=[])}_onCursorMoved(e,t,i){if(t!=this._bufnr&&!(t==this.targetBufnr&&ye(i,this.cursor))&&(e||t!=this.targetBufnr||!P.insertMode)){this.close();return}}async create(e,t=!1,i=0){await this.show(e,{offsetX:i})}async show(e,t={}){if(e.length==0||e.every(o=>o.content.length==0)){this.close();return}let i=Date.now(),r=await this.mutex.acquire();try{await this.createPopup(e,t,i),r()}catch(o){this.nvim.echoError(o),r()}}async createPopup(e,t,i){e=e.filter(f=>f.content.trim().length>0);let{lines:r,codes:o,highlights:s}=Ww(e),a={codes:o,highlights:s,pumAlignTop:P.pumAlignTop,preferTop:typeof t.preferTop=="boolean"?t.preferTop:!1,offsetX:t.offsetX||0,title:t.title||"",close:t.close?1:0,rounded:t.rounded?1:0,modes:t.modes||["n","i","ic","s"]};tbe||(typeof t.winblend=="number"&&(a.winblend=t.winblend),t.focusable!=null&&(a.focusable=t.focusable?1:0),t.shadow&&(a.shadow=1)),t.maxHeight&&(a.maxHeight=t.maxHeight),t.maxWidth&&(a.maxWidth=t.maxWidth),t.border===!0?a.border=[1,1,1,1]:Array.isArray(t.border)&&!t.border.every(f=>f==0)&&(a.border=t.border.slice(0,4),a.rounded=t.rounded?1:0),t.highlight&&(a.highlight=t.highlight),t.borderhighlight&&(a.borderhighlight=t.borderhighlight),t.cursorline&&(a.cursorline=1);let l=t.autoHide!==!1;l&&(a.autohide=1),this.unbind();let u=await this.nvim.call("coc#dialog#create_cursor_float",[this.winid,this._bufnr,r,a]);if(this.nvim.redrawVim(),!u||u.length==0||this.closeTs>i){let f=u&&u.length>0?u[2]:this.winid;f&&(this.winid=0,this.nvim.call("coc#float#close",[f],!0),this.nvim.redrawVim());return}let[c,h,d,g,p]=u;this.winid=d,this._bufnr=g,this.targetBufnr=c,this.cursor=h,this.bindEvents(l,p==1)}close(){let{winid:e,nvim:t}=this;this.closeTs=Date.now(),this.unbind(),e&&(this.winid=0,t.call("coc#float#close",[e],!0),t.redrawVim())}checkRetrigger(e){return!!(this.winid&&this.targetBufnr==e)}get bufnr(){return this._bufnr}get buffer(){return this.bufnr?this.nvim.createBuffer(this.bufnr):null}get window(){return this.winid?this.nvim.createWindow(this.winid):null}async activated(){return this.winid?await this.nvim.call("coc#float#valid",[this.winid])!=0:!1}dispose(){this.cursor=void 0,this.close()}}});async function hh(n){let[e,t]=await n.eval("[line('.')-1, strpart(getline('.'), 0, col('.') - 1)]");return ch.Position.create(e,t.length)}function CZ(n,e,t){let i=Object.assign({},t,e),r=new Kl(n);return{get window(){return r.window},show:(o,s)=>r.show(o,s?Object.assign({},i,s):i),activated:()=>r.activated(),dispose:()=>{r.dispose()},checkRetrigger:o=>r.checkRetrigger(o),close:()=>{r.close()}}}async function Yw(n,e){return await n.callAsync("coc#dialog#prompt_confirm",[e])==1}async function SZ(n,e,t){await n.call("coc#cursor#move_to",[e.line,e.character]),t&&n.command("redraw",!0)}async function DZ(n){return await n.call("coc#cursor#char_offset")}async function TZ(n){let[e,t]=await n.call("coc#cursor#screen_pos");return{row:e,col:t}}function kZ(n,e,t="MoreMsg",i=!1){n[i||ibe?"callTimer":"call"]("coc#ui#echo_messages",[t,("[coc.nvim] "+e).split(`
|
||
`)],!0)}async function PZ(n,e){if(e==="currline"){let i=await n.call("line",["."]);return ch.Range.create(i-1,0,i,0)}if(e==="cursor"){let[i,r]=await n.eval("coc#cursor#position()");return ch.Range.create(i,r,i,r)}let t=await n.call("coc#cursor#get_selection",[nbe.includes(e)?1:0]);return!t||t[0]==-1?null:ch.Range.create(t[0],t[1],t[2],t[3])}async function EZ(n,e,t){let{start:i,end:r}=e,[o,s]=await n.eval(`[getline(${i.line+1}),getline(${r.line+1})]`),a=o.length>0?Q(o.slice(0,i.character)):0,l,u,c=r.character==0;if(c){u=r.line==0?0:r.line-1;let h=await n.call("getline",[u+1]);l=Q(h)}else u=r.line,l=s.length>0?Q(s.slice(0,r.character)):0;n.pauseNotification(),n.command(`noa call cursor(${i.line+1},${a+1})`,!0),n.command("normal! v",!0),n.command(`noa call cursor(${u+1},${l})`,!0),c&&n.command("normal! $",!0),await n.resumeNotification(t)}var ch,ibe,nbe,fp=k(()=>{"use strict";ch=S(W());_e();oR();ibe=process.env.VIM_NODE_RPC=="1",nbe=["char","line","block"]});var RZ,CLe,mp,_Z=k(()=>{"use strict";RZ=S(W());fe();re();CLe=q()("model-dialog"),mp=class{constructor(e,t){this.nvim=e;this.config=t;this.disposables=[];this._onDidClose=new RZ.Emitter;this.onDidClose=this._onDidClose.event;P.on("BufWinLeave",i=>{i==this.bufnr&&(this.dispose(),t.callback&&t.callback(-1))},null,this.disposables),P.on("FloatBtnClick",(i,r)=>{if(i==this.bufnr){this.dispose();let o=t==null?void 0:t.buttons.filter(s=>s.disabled!=!0);t.callback&&t.callback(o[r].index)}},null,this.disposables)}get lines(){return[...this.config.content.split(/\r?\n/)]}async show(e){let{nvim:t}=this,{title:i,close:r,highlights:o,buttons:s}=this.config,a=this.config.borderhighlight||e.floatBorderHighlight,l=this.config.highlight||e.floatHighlight,u={maxwidth:e.maxWidth||80};i&&(u.title=i),(r||typeof r>"u")&&(u.close=1),e.maxHeight&&(u.maxHeight=e.maxHeight),e.maxWidth&&(u.maxWidth=e.maxWidth),l&&(u.highlight=l),o&&(u.highlights=o),a&&(u.borderhighlight=[a]),s&&(u.buttons=s.filter(h=>!h.disabled).map(h=>h.text)),e.rounded&&(u.rounded=1),Array.isArray(u.buttons)&&(u.getchar=1);let c=await t.call("coc#dialog#create_dialog",[this.lines,u]);if(!c)throw new Error("Unable to open dialog window.");this.bufnr=c[1],t.command("redraw",!0)}get winid(){return this.bufnr?this.nvim.call("bufwinid",[this.bufnr]):Promise.resolve(null)}dispose(){this._onDidClose.fire(),this.bufnr=void 0,U(this.disposables),this.disposables=[]}}});var Hi,Ta=k(()=>{"use strict";uh();_e();Hi=class{constructor(){this.lines=[];this._highlights=[]}addLine(e,t){if(e.includes(`
|
||
`)){for(let i of e.split(/\r?\n/))this.addLine(i,t);return}if(t&&this._highlights.push({lnum:this.lines.length,colStart:e.match(/^\s*/)[0].length,colEnd:Q(e),hlGroup:t}),e.includes("\x1B")){let i=lh(e);for(let r of i.highlights){let{span:o,hlGroup:s}=r;o[0]!=o[1]&&this._highlights.push({lnum:this.lines.length,colStart:o[0],colEnd:o[1],hlGroup:s})}this.lines.push(i.line)}else this.lines.push(e)}addLines(e){this.lines.push(...e)}addTexts(e){let t=this.lines.length,i="";for(let r of e){let o=Q(i);r.hlGroup&&this._highlights.push({lnum:t,colStart:o,colEnd:o+Q(r.text),hlGroup:r.hlGroup}),i+=r.text}this.lines.push(i)}addText(e,t){let{lines:i}=this,r=i[i.length-1]||"";if(e.includes(`
|
||
`)){let o=e.split(`
|
||
`);this.addText(o[0],t);for(let s of o.slice(1))this.addLine(s,t);return}if(t){let o=Q(r);this._highlights.push({lnum:i.length?i.length-1:0,colStart:o,colEnd:o+Q(e),hlGroup:t})}i.length?i[i.length-1]=`${r}${e}`:i.push(e)}get length(){return this.lines.length}getline(e){return this.lines[e]||""}get highlights(){return this._highlights}get content(){return this.lines.join(`
|
||
`)}render(e,t=0,i=-1){e.setLines(this.lines,{start:t,end:i,strictIndexing:!1},!0);for(let r of this._highlights)e.addHighlight({hlGroup:r.hlGroup,colStart:r.colStart,colEnd:r.colEnd==null?-1:r.colEnd,line:t+r.lnum,srcId:-1})}}});var aR,ILe,ka,lR=k(()=>{"use strict";aR=S(W());fe();re();et();ILe=q()("model-input"),ka=class{constructor(e,t){this.nvim=e;this.disposables=[];this.accepted=!1;this._dimension=[0,0,0,0];this._onDidFinish=new aR.Emitter;this._onDidChange=new aR.Emitter;this.onDidFinish=this._onDidFinish.event;this.onDidChange=this._onDidChange.event;this._input=t,this.disposables.push(this._onDidFinish),this.disposables.push(this._onDidChange);let i;Object.defineProperty(this,"title",{set:s=>{i=s,this._winid&&e.call("coc#dialog#change_title",[this._winid,s],!0)},get:()=>i});let r=!1;Object.defineProperty(this,"loading",{set:s=>{r=s,this._winid&&e.call("coc#dialog#change_loading",[this._winid,s],!0)},get:()=>r});let o;Object.defineProperty(this,"borderhighlight",{set:s=>{o=s,this._winid&&e.call("coc#dialog#change_border_hl",[this._winid,s],!0)},get:()=>o}),P.on("BufWinLeave",s=>{s==this._bufnr&&(this._winid=void 0,this.dispose())},null,this.disposables),P.on("PromptInsert",(s,a)=>{a==this._bufnr&&(this._input=s,this.accepted=!0,this.dispose())},null,this.disposables),P.on("TextChangedI",(s,a)=>{s==this._bufnr&&(this._input=a.line,this._onDidChange.fire(a.line))},null,this.disposables)}get dimension(){let{_dimension:e}=this;return{width:e[0],height:e[1],row:e[2],col:e[3]}}get bufnr(){return this._bufnr}get winid(){return this._winid}get value(){return this._input}async show(e,t){this.title=e,this.borderhighlight=t.borderhighlight??"CocFloating",this.loading=!1;let i=mB(t),r=await this.nvim.call("coc#dialog#create_prompt_win",[e,this._input,i]);if(!r)throw new Error("Unable to open input window");return this._bufnr=r[0],this._winid=r[1],this._dimension=r[2],!0}dispose(){this._onDidFinish.fire(this.accepted?this._input:null),this._winid&&this.nvim.call("coc#float#close",[this._winid],!0),this._winid=void 0,this._bufnr=void 0,U(this.disposables)}}});var uR,gs,Zw=k(()=>{"use strict";uR=process.env.VIM_NODE_RPC=="1",gs=class{constructor(e,t,i,r,o=0){this.nvim=e;this.winid=t;this.bufnr=i;this.linecount=r;this._currIndex=o}get currIndex(){return this._currIndex}get valid(){return this.nvim.call("coc#float#valid",[this.winid]).then(e=>!!e)}close(){this.nvim.call("coc#float#close",[this.winid],!0)}refreshScrollbar(){uR||this.nvim.call("coc#float#nvim_scrollbar",[this.winid],!0)}execute(e){this.nvim.call("coc#compat#execute",[this.winid,e],!0)}async scrollForward(){let{nvim:e,bufnr:t,winid:i}=this,o=await e.createBuffer(t).length,s;if(uR)s=await e.eval(`get(popup_getpos(${i}), 'lastline', 0)`);else{let a=await e.call("getwininfo",[i]);if(!a||!a.length)return;s=a[0].botline}s>=o||s==0||(e.pauseNotification(),this.setCursor(s-1),this.execute("silent! noa setl scrolloff=0"),this.execute(`normal! ${s}Gzt`),this.refreshScrollbar(),e.command("redraw",!0),e.resumeNotification(!1,!0))}async scrollBackward(){let{nvim:e,winid:t}=this,i;if(uR)i=await e.eval(`get(popup_getpos(${t}), 'firstline', 0)`);else{let r=await e.call("getwininfo",[t]);if(!r||!r.length)return;i=r[0].topline}i!=1&&(e.pauseNotification(),this.setCursor(i-1),this.execute(`normal! ${i}Gzb`),this.refreshScrollbar(),e.command("redraw",!0),e.resumeNotification(!1,!0))}setCursor(e,t=!1){let{nvim:i,bufnr:r,winid:o,linecount:s}=this;e<0?e=0:e>s-1&&(e=s-1),this._currIndex=e,i.call("coc#dialog#set_cursor",[o,r,e+1],!0),t&&(this.refreshScrollbar(),i.command("redraw",!0))}}});function Jw(n){return n?typeof n.text=="string":!1}var LZ,rbe,bp,IZ=k(()=>{"use strict";LZ=S(W());fe();re();_e();Zw();rbe=q()("model-menu");bp=class{constructor(e,t,i){this.nvim=e;this.config=t;this.currIndex=0;this.contentHeight=0;this.disposables=[];this.keyMappings=new Map;this.shortcutIndexes=new Set;this._disposed=!1;this._onDidClose=new LZ.Emitter;this.onDidClose=this._onDidClose.event;this.total=t.items.length,i&&i.onCancellationRequested(()=>{this._onDidClose.fire(-1),this.dispose()}),this.disposables.push(this._onDidClose),this.addKeymappings()}attachEvents(){P.on("InputChar",this.onInputChar.bind(this),null,this.disposables),P.on("BufWinLeave",e=>{e==this.bufnr&&(this._onDidClose.fire(-1),this.dispose())},null,this.disposables)}addKeymappings(){let{nvim:e}=this;this.addKeys(["<esc>","<C-c>"],()=>{this._onDidClose.fire(-1),this.dispose()}),this.addKeys(["\r","<cr>"],()=>{this.selectCurrent()});let t=s=>{e.pauseNotification(),this.setCursor(s+this.contentHeight),this.win.refreshScrollbar(),e.command("redraw",!0),e.resumeNotification(!1,!0)};this.addKeys("<C-f>",async()=>{await this.win.scrollForward()}),this.addKeys("<C-b>",async()=>{await this.win.scrollBackward()}),this.addKeys(["j","<down>","<tab>","<C-n>"],()=>{let s=this.currIndex==this.total-1?0:this.currIndex+1;t(s)}),this.addKeys(["k","<up>","<s-tab>","<C-p>"],()=>{let s=this.currIndex==0?this.total-1:this.currIndex-1;t(s)}),this.addKeys(["g"],()=>{t(0)}),this.addKeys(["G"],()=>{t(this.total-1)});let i,r,o=s=>{this.isDisabled(s)||(this._onDidClose.fire(s),this.dispose())};this.addKeys(["0","1","2","3","4","5","6","7","8","9"],s=>{i&&clearTimeout(i);let a=parseInt(s,10);if(!(isNaN(a)||a>this.total)&&!(r==null&&a==0)){if(r){let l=r*10+a;r=void 0,o(l-1);return}if(this.total<10||a*10>this.total){o(a-1);return}i=setTimeout(async()=>{o(a-1)},200),r=a}}),this.config.shortcuts&&this.addShortcuts(o)}addShortcuts(e){let{items:t}=this.config;t.map(r=>Jw(r)?r.text:r).forEach((r,o)=>{if(r.length){let s=r[0];Q0(s.charCodeAt(0))&&!this.keyMappings.has(s)&&(this.shortcutIndexes.add(o),this.addKeys(s,()=>{e(o)}))}})}isDisabled(e){let{items:t}=this.config,i=t[e];return!!(Jw(i)&&i.disabled)}async show(e={}){let{nvim:t,shortcutIndexes:i}=this,{title:r,items:o,borderhighlight:s,position:a,content:l}=this.config,u={};r&&(u.title=r),a==="center"&&(u.relative="editor"),e.maxHeight&&(u.maxHeight=e.maxHeight),e.maxWidth&&(u.maxWidth=e.maxWidth),e.floatHighlight&&(u.highlight=e.floatHighlight),s?u.borderhighlight=s:e.floatBorderHighlight&&(u.borderhighlight=e.floatBorderHighlight),e.rounded&&(u.rounded=1),typeof l=="string"&&(u.content=l),e.confirmKey&&this.addKeys(e.confirmKey,()=>{this.selectCurrent()});let c=[],h=o.map((g,p)=>{let f=Jw(g)?g.text:g,m=p<99?`${p+1}. `:"";return i.has(p)&&c.push({lnum:p,hlGroup:e.shortcutHighlight||"MoreMsg",colStart:Q(m),colEnd:Q(m)+1}),m+f.trim()});h.forEach((g,p)=>{let f=o[p];Jw(f)&&f.disabled&&c.push({hlGroup:"CocDisabled",lnum:p,colStart:0,colEnd:Q(g)})}),c.length&&(u.highlights=c);let d=await t.call("coc#dialog#create_menu",[h,u]);if(!d)throw new Error("Unable to create menu window");t.command("redraw",!0),!this._disposed&&(this.win=new gs(t,d[0],d[1],h.length+d[2],d[2]),this.bufnr=d[1],this.contentHeight=d[2],this.attachEvents(),t.call("coc#prompt#start_prompt",["menu"],!0))}selectCurrent(){if(this.isDisabled(this.currIndex)){let e=this.config.items[this.currIndex];e.disabled.reason&&this.nvim.outWriteLine(`Item disabled: ${e.disabled.reason}`);return}this._onDidClose.fire(this.currIndex),this.dispose()}get buffer(){return this.bufnr?this.nvim.createBuffer(this.bufnr):void 0}dispose(){var e;this._disposed||(this._disposed=!0,U(this.disposables),this.shortcutIndexes.clear(),this.keyMappings.clear(),this.nvim.call("coc#prompt#stop_prompt",["menu"],!0),(e=this.win)==null||e.close(),this.bufnr=void 0,this.win=void 0)}async onInputChar(e,t){if(e!="menu"||!this.win)return;let i=this.keyMappings.get(t);i?await Promise.resolve(i(t)):rbe.warn(`Ignored key press: ${t}`)}setCursor(e){this.currIndex=e-this.contentHeight,this.win.setCursor(e)}addKeys(e,t){if(Array.isArray(e))for(let i of e)this.keyMappings.set(i,t);else this.keyMappings.set(e,t)}}});var JLe,Pa,cR=k(()=>{"use strict";fe();re();JLe=q()("model-notification"),Pa=class{constructor(e,t,i=!0){this.nvim=e;this.config=t;this.disposables=[];this._disposed=!1;i&&(P.on("BufWinLeave",r=>{r==this.bufnr&&(this.dispose(),t.callback&&t.callback(-1))},null,this.disposables),P.on("FloatBtnClick",(r,o)=>{if(r==this.bufnr){this.dispose();let s=t==null?void 0:t.buttons.filter(a=>a.disabled!=!0);t.callback&&t.callback(s[o].index)}},null,this.disposables))}get lines(){return this.config.content?this.config.content.split(/\r?\n/):[]}async show(e){let{nvim:t}=this,{buttons:i,kind:r,title:o}=this.config,s=Object.assign({},e);if(s.kind=r??"",o&&(s.title=o),e.border&&(s.borderhighlight=r?`CocNotification${r[0].toUpperCase()}${r.slice(1)}`:e.highlight),Array.isArray(i)){let l=i.filter(u=>!u.disabled).map(u=>u.text);l.length&&(s.actions=l)}let a=await t.call("coc#notify#create",[this.lines,s]);if(!a)throw new Error("Unable to create notification window");this._winid=a[0],this.bufnr=a[1]}get winid(){return this._winid}dispose(){if(this._disposed)return;this._disposed=!0;let{winid:e}=this;e&&(this.nvim.call("coc#notify#close",[e],!0),this.nvim.redrawVim()),this.bufnr=void 0,this._winid=void 0,U(this.disposables)}}});var FZ,obe,sbe,yp,jZ=k(()=>{"use strict";FZ=S(W());fe();re();_e();Zw();obe=q()("model-dialog"),sbe=process.env.VIM_NODE_RPC=="1",yp=class{constructor(e,t,i){this.nvim=e;this.config=t;this.picked=new Set;this.disposables=[];this.keyMappings=new Map;this._onDidClose=new FZ.Emitter;this.onDidClose=this._onDidClose.event;for(let r=0;r<t.items.length;r++)t.items[r].picked&&this.picked.add(r);this.total=t.items.length,i&&i.onCancellationRequested(()=>{var r;(r=this.win)==null||r.close()}),this.disposables.push(this._onDidClose),this.addKeymappings()}get currIndex(){return this.win?this.win.currIndex:0}attachEvents(){P.on("InputChar",this.onInputChar.bind(this),null,this.disposables),P.on("BufWinLeave",e=>{e==this.bufnr&&(this._onDidClose.fire(void 0),this.bufnr=void 0,this.win=void 0,this.dispose())},null,this.disposables),P.on("FloatBtnClick",(e,t)=>{if(e==this.bufnr){if(t==0){let i=Array.from(this.picked);this._onDidClose.fire(i.length?i:void 0)}else this._onDidClose.fire(void 0);this.dispose()}},null,this.disposables)}addKeymappings(){let{nvim:e}=this,t=i=>{this.picked.has(i)?this.picked.delete(i):this.picked.add(i)};this.addKeys("<LeftRelease>",async()=>{if(sbe||!this.win)return;let[i,r,o]=await e.eval("[v:mouse_winid,v:mouse_lnum,v:mouse_col]");e.pauseNotification(),i==this.win.winid&&(o<=3?(t(r-1),this.changeLine(r-1)):this.setCursor(r-1)),e.call("win_gotoid",[i],!0),e.call("cursor",[r,o],!0),e.call("coc#float#nvim_float_click",[],!0),e.command("redraw",!0),await e.resumeNotification()}),this.addKeys(["<esc>","<C-c>"],()=>{this._onDidClose.fire(void 0),this.dispose()}),this.addKeys("<cr>",()=>{if(this.picked.size==0)this._onDidClose.fire(void 0);else{let i=Array.from(this.picked);this._onDidClose.fire(i)}this.dispose()}),this.addKeys(["j","<down>","<tab>","<C-n>"],()=>{this.win.setCursor(this.currIndex+1,!0)}),this.addKeys(["k","<up>","<s-tab>","<C-p>"],()=>{this.win.setCursor(this.currIndex-1,!0)}),this.addKeys(["g"],()=>{this.win.setCursor(0,!0)}),this.addKeys(["G"],()=>{this.win.setCursor(this.total-1,!0)}),this.addKeys(" ",async()=>{let i=this.currIndex;t(i),e.pauseNotification(),this.changeLine(i),this.setCursor(this.currIndex+1),e.command("redraw",!0),await e.resumeNotification()}),this.addKeys("<C-f>",async()=>{var i;await((i=this.win)==null?void 0:i.scrollForward())}),this.addKeys("<C-b>",async()=>{var i;await((i=this.win)==null?void 0:i.scrollBackward())})}async show(e={}){let{nvim:t}=this,{title:i,items:r}=this.config,o={close:1,cursorline:1};if(e.maxHeight&&(o.maxHeight=e.maxHeight),e.maxWidth&&(o.maxWidth=e.maxWidth),i&&(o.title=i),e.floatHighlight&&(o.highlight=e.floatHighlight),e.floatBorderHighlight&&(o.borderhighlight=[e.floatBorderHighlight]),e.pickerButtons){let u=e.pickerButtonShortcut;o.buttons=["Submit"+(u?" <cr>":""),"Cancel"+(u?" <esc>":"")]}e.rounded&&(o.rounded=1),e.confirmKey&&e.confirmKey!="<cr>"&&this.addKeys(e.confirmKey,()=>{this._onDidClose.fire(void 0),this.dispose()});let s=[],a=[];for(let u=0;u<r.length;u++){let c=r[u],h=`[${c.picked?"x":" "}] ${c.label}`;if(c.description){let d=Q(h);h=h+` ${c.description}`,a.push({hlGroup:"Comment",lnum:u,colStart:d,colEnd:Q(h)})}s.push(h)}a.length&&(o.highlights=a);let l=await t.call("coc#dialog#create_dialog",[s,o]);return this.win=new gs(t,l[0],l[1],s.length),this.bufnr=l[1],t.call("coc#prompt#start_prompt",["picker"],!0),this.attachEvents(),this.win.setCursor(0,!0),l[0]}get buffer(){return this.bufnr?this.nvim.createBuffer(this.bufnr):void 0}dispose(){var e;this.picked.clear(),this.keyMappings.clear(),U(this.disposables),this.nvim.call("coc#prompt#stop_prompt",["picker"],!0),(e=this.win)==null||e.close(),this.win=void 0}async onInputChar(e,t){if(e!="picker"||!this.win)return;let i=this.keyMappings.get(t);i?await Promise.resolve(i(t)):obe.warn(`Ignored key press: ${t}`)}changeLine(e){let{nvim:t}=this,i=this.config.items[e];if(!i)return;let r=`[${this.picked.has(e)?"x":" "}] ${i.label}`,o=Q(r);i.description&&(r=r+` ${i.description}`),t.call("setbufline",[this.bufnr,e+1,r],!0),t.createBuffer(this.bufnr).addHighlight({hlGroup:"Comment",line:e,srcId:1,colStart:o,colEnd:-1})}setCursor(e){!this.win||this.win.setCursor(e)}addKeys(e,t){if(Array.isArray(e))for(let i of e)this.keyMappings.set(i,t);else this.keyMappings.set(e,t)}}});function MZ(n,e,t){let i=[];return n&&i.push(n),e&&i.push(e),t&&i.push(t+"%"),i.join(" ")}var $w,abe,vp,OZ=k(()=>{"use strict";cR();$w=S(W());fe();abe=q()("model-progress");vp=class extends Pa{constructor(t,i){let r=[{index:0,text:"Cancel"}];super(t,{kind:"progress",title:i.title,buttons:i.cancellable?r:void 0},!1);this.option=i;this._onDidFinish=new $w.Emitter;this.onDidFinish=this._onDidFinish.event;this.cancelProgress=t=>{t==this.bufnr&&this.tokenSource&&this.tokenSource.cancel()};this.disposables.push(this._onDidFinish),P.on("BufWinLeave",this.cancelProgress,null,this.disposables),i.cancellable&&P.on("FloatBtnClick",(o,s)=>{s==r.findIndex(a=>a.text=="Cancel")&&this.cancelProgress(o)},null,this.disposables)}async show(t){let{task:i}=this.option,r=this.tokenSource=new $w.CancellationTokenSource;this.disposables.push(r);let o=0;this.config.buttons||!t.disabled?await super.show(t):abe.warn('progress window disabled by "notification.disabledProgressSources"'),i({report:s=>{if(!this.winid)return;let{nvim:a}=this;s.increment&&(o+=s.increment,a.call("coc#window#set_var",[this.winid,"percent",`${o}%`],!0)),s.message&&a.call("coc#window#set_var",[this.winid,"message",s.message.replace(/\r?\n/g," ")],!0)}},r.token).then(s=>{this._disposed||(this._onDidFinish.fire(s),this.dispose())},s=>{this._disposed||(s&&this.nvim.echoError(s),this._onDidFinish.fire(void 0),this.dispose())})}}});function mbe(n){return n.toLowerCase()===n}function bbe(n){return n.toUpperCase()===n}function ybe(n){let e=n.length,t=new Array(e),i="/";for(let r=0;r<e;r++){let o=n[r];i==="/"?t[r]=dbe:i==="-"||i==="_"||i===" "?t[r]=gbe:i==="."?t[r]=fbe:mbe(i)&&bbe(o)?t[r]=pbe:t[r]=0,i=o}return t}function NZ(n,e,t,i){let r=n.length,o=e.length,s=n.toLowerCase(),a=e.toLowerCase(),l=ybe(e);for(let u=0;u<r;u++){t[u]=new Array(o),i[u]=new Array(o);let c=dh,h=u===r-1?cbe:hbe;for(let d=0;d<o;d++)if(s[u]===a[d]){let g=dh;u?d&&(g=Math.max(i[u-1][d-1]+l[d],t[u-1][d-1]+AZ)):g=d*ube+l[d],t[u][d]=g,i[u][d]=c=Math.max(g,c+h)}else t[u][d]=dh,i[u][d]=c=c+h}}function HZ(n,e){let t=n.length,i=e.length;if(!t||!i)return dh;if(t===i)return lbe;if(i>1024)return dh;let r=new Array(t),o=new Array(t);return NZ(n,e,r,o),o[t-1][i-1]}function qZ(n){let e=[];for(let t=0;t<n.length;t++){let i=e.length?e[e.length-1]:void 0,r=n[t];i&&r==i[1]?i[1]=r+1:e.push([r,r+1])}return e}function wp(n,e){let t=n.length,i=e.length,r=new Array(t);if(!t||!i)return r;if(t===i){for(let l=0;l<t;l++)r[l]=l;return r}if(i>1024)return r;let o=new Array(t),s=new Array(t);NZ(n,e,o,s);let a=!1;for(let l=t-1,u=i-1;l>=0;l--)for(;u>=0;u--)if(o[l][u]!==dh&&(a||o[l][u]===s[l][u])){a=l&&u&&s[l][u]===o[l-1][u-1]+AZ,r[l]=u--;break}return r}function Uw(n,e){n=n.toLowerCase(),e=e.toLowerCase();let t=n.length;for(let i=0,r=0;i<t;i+=1)if(r=e.indexOf(n[i],r)+1,r===0)return!1;return!0}var dh,lbe,ube,cbe,hbe,AZ,dbe,gbe,pbe,fbe,hR=k(()=>{"use strict";dh=-1/0,lbe=1/0,ube=-.005,cbe=-.005,hbe=-.01,AZ=1,dbe=.9,gbe=.8,pbe=.7,fbe=.6});async function vbe(){let n=BZ.default.resolve(__dirname,"..","bin/strwidth.wasm"),e=WZ.default.readFileSync(n);return(await global.WebAssembly.instantiate(e,{env:{}})).instance.exports}var BZ,WZ,Xw,Ea,dR=k(()=>{"use strict";BZ=S(require("path")),WZ=S(require("fs"));Ea=class{constructor(e){this.exports=e;this.cache=new Map;this.bytes=new Uint8Array(e.memory.buffer),this.contentPtr=e.malloc(4096)}setAmbw(e){this.exports.setAmbw(e?1:0),this.cache.clear()}getWidth(e,t=!1){let i=e.length;if(i===0)return 0;if(i>4095&&(e=e.slice(0,4095)),t&&this.cache.has(e))return this.cache.get(e);let{contentPtr:r}=this,o=Buffer.from(e,"utf8"),s=o.length;this.bytes.set(o,r),this.bytes[r+s]=0;let a=this.exports.strWidth(r);return t&&this.cache.set(e,a),a}static async create(){if(Xw)return Xw;let e=await vbe();return Xw=new Ea(e),Xw}}});var Gw,vIe,gh,YZ=k(()=>{"use strict";Gw=S(W());fe();re();nt();hR();_e();dR();lR();Zw();vIe=q()("model-quickpick"),gh=class{constructor(e,t){this.nvim=e;this.config=t;this.filteredItems=[];this.disposables=[];this._changed=!1;this._onDidFinish=new Gw.Emitter;this._onDidChangeSelection=new Gw.Emitter;this._onDidChangeValue=new Gw.Emitter;this.onDidFinish=this._onDidFinish.event;this.onDidChangeSelection=this._onDidChangeSelection.event;this.onDidChangeValue=this._onDidChangeValue.event;let i=t.items??[];Object.defineProperty(this,"items",{set:r=>{this._changed=!0,i=r,this.filterItems("")},get:()=>i}),Object.defineProperty(this,"activeItems",{set:r=>{this._changed=!0,this.filteredItems=r,this.showFilteredItems()},get:()=>this.filteredItems}),Object.defineProperty(this,"title",{set:r=>{this.input&&(this.input.title=r)},get:()=>this.input?this.input.title:t.title}),Object.defineProperty(this,"loading",{set:r=>{this.input&&(this.input.loading=r)},get:()=>this.input?this.input.loading:!1})}get value(){return this.input?this.input.value:this.config.value??""}get currIndex(){return this.win?this.win.currIndex:0}get buffer(){return this.bufnr?this.nvim.createBuffer(this.bufnr):void 0}setCursor(e){this.win&&this.win.setCursor(e,!0)}attachEvents(e){P.on("BufWinLeave",t=>{t==this.bufnr&&this.dispose()},null,this.disposables),P.on("PromptKeyPress",async(t,i)=>{t==e&&(i=="C-f"?await this.win.scrollForward():i=="C-b"?await this.win.scrollBackward():["C-j","C-n","down"].includes(i)?this.setCursor(this.currIndex+1):["C-k","C-p","up"].includes(i)?this.setCursor(this.currIndex-1):this.config.canSelectMany&&i=="C-@"&&this.toggePicked(this.currIndex))},null,this.disposables)}async show(e={}){let{nvim:t,items:i}=this,{title:r,canSelectMany:o,value:s}=this.config,a=[],l=[],u=[];for(let b=0;b<i.length;b++){let w=i[b],x=o?`[${w.picked?"x":" "}] ${w.label}`:w.label;if(w.picked&&u.push(w),w.description){let T=Q(x);x=x+` ${w.description}`,l.push({hlGroup:"Comment",lnum:b,colStart:T,colEnd:Q(x)})}a.push(x)}let c=this.input=new ka(this.nvim,s??"");c.onDidChange(b=>{if(this._onDidChangeValue.fire(b),this._changed){this._changed=!1;return}this.filterItems(b)},this),c.onDidFinish(this.onFinish,this);let h=await Ea.create(),d=Math.max(40,Math.min(80,a.reduce((b,w)=>Math.max(b,h.getWidth(w)),0)));await c.show(r??"",{position:"center",marginTop:10,border:[1,1,0,1],list:!0,minWidth:d,maxWidth:e.maxWidth||80,rounded:!!e.rounded,highlight:e.floatHighlight,borderhighlight:e.floatBorderHighlight}),this.selectedItems=u;let g={lines:a,rounded:!!e.rounded};g.highlights=l,e.floatHighlight&&(g.highlight=e.floatHighlight),e.floatBorderHighlight&&(g.borderhighlight=e.floatBorderHighlight);let p=this.config.maxHeight||e.maxHeight;p&&(g.maxHeight=p);let f=await t.call("coc#dialog#create_list",[c.winid,c.dimension,g]);if(!f)throw new Error("Unable to open list window.");this.filteredItems=i,this.win=new gs(t,f[0],f[1],a.length),this.win.refreshScrollbar(),this.bufnr=f[1];let m=o||u.length==0?0:i.indexOf(u[0]);this.setCursor(m),this.attachEvents(c.bufnr)}filterItems(e){let{items:t,win:i,selectedItems:r}=this;if(!i)return;let{canSelectMany:o}=this.config,s=[],a=[],l=0,u=[];for(let c of t){let h=this.toFilterText(c);if(e.length>0&&!Uw(e,h))continue;let d=r.includes(c),g=o?`[${d?"x":" "}] ${c.label}`:c.label;if(c.description){let f=Q(g);g=g+` ${c.description}`,a.push({hlGroup:"Comment",lnum:l,colStart:f,colEnd:Q(g)})}wp(e,h).forEach(f=>{let m=_t(h,f);a.push({hlGroup:"CocSearch",colStart:m,colEnd:m+1,lnum:l})}),u.push(c),s.push(g),l+=1}this.filteredItems=u,this.win.linecount=s.length,this.nvim.call("coc#dialog#update_list",[this.win.winid,this.win.bufnr,s,a],!0),this.setCursor(0)}showFilteredItems(){let{win:e,input:t,filteredItems:i}=this;if(!e)return;let{canSelectMany:r}=this.config,o=[],s=[],a=0,l=[];for(let u of i){let c=this.toFilterText(u),h=r?`[${u.picked?"x":" "}] ${u.label}`:u.label;if(u.picked&&l.push(u),u.description){let g=Q(h);h=h+` ${u.description}`,s.push({hlGroup:"Comment",lnum:a,colStart:g,colEnd:Q(h)})}wp(t.value,c).forEach(g=>{let p=_t(c,g);s.push({hlGroup:"CocSearch",colStart:p,colEnd:p+1,lnum:a})}),o.push(h),a+=1}this.selectedItems=l,this.win.linecount=o.length,this.nvim.call("coc#dialog#update_list",[this.win.winid,this.win.bufnr,o,s],!0),this.setCursor(0)}onFinish(e){if(e==null){this._onDidChangeSelection.fire([]),this._onDidFinish.fire(null);return}let t=this.getSelectedItems();this.config.canSelectMany||this._onDidChangeSelection.fire(t),this._onDidFinish.fire(t)}getSelectedItems(){let{win:e}=this,{canSelectMany:t}=this.config;if(t)return this.selectedItems;let i=this.filteredItems[e.currIndex];return dw(i)}toggePicked(e){let{nvim:t,filteredItems:i,selectedItems:r}=this,o=i[e];if(!o)return;let s=r.indexOf(o);s!=-1?r.splice(s,1):r.push(o);let a=s==-1?"x":" ";t.pauseNotification(),this.win.execute(`normal! ^1lr${a}`),this.win.setCursor(this.win.currIndex+1),t.resumeNotification(!0,!0),this._onDidChangeSelection.fire(r)}toFilterText(e){let{label:t,description:i}=e,{canSelectMany:r}=this.config,o=`${r?" ":""}${t.replace(/\r?\n/,"")}`;return this.matchOnDescription?o+" "+(i??""):o}dispose(){var e,t;this.bufnr=void 0,(e=this.input)==null||e.dispose(),(t=this.win)==null||t.close(),this._onDidFinish.dispose(),this._onDidChangeSelection.dispose(),U(this.disposables)}}});function xp(){return ZZ.default.randomBytes(16)}var ZZ,gR=k(()=>{ZZ=S(require("crypto"))});function wbe(n,e){var t=e||0,i=JZ;return[i[n[t++]],i[n[t++]],i[n[t++]],i[n[t++]],"-",i[n[t++]],i[n[t++]],"-",i[n[t++]],i[n[t++]],"-",i[n[t++]],i[n[t++]],"-",i[n[t++]],i[n[t++]],i[n[t++]],i[n[t++]],i[n[t++]],i[n[t++]]].join("")}var JZ,Cp,zw,pR=k(()=>{JZ=[];for(Cp=0;Cp<256;++Cp)JZ[Cp]=(Cp+256).toString(16).substr(1);zw=wbe});function xbe(n,e,t){var i=e&&t||0,r=e||[];n=n||{};var o=n.node||$Z,s=n.clockseq!==void 0?n.clockseq:fR;if(o==null||s==null){var a=n.random||(n.rng||xp)();o==null&&(o=$Z=[a[0]|1,a[1],a[2],a[3],a[4],a[5]]),s==null&&(s=fR=(a[6]<<8|a[7])&16383)}var l=n.msecs!==void 0?n.msecs:new Date().getTime(),u=n.nsecs!==void 0?n.nsecs:bR+1,c=l-mR+(u-bR)/1e4;if(c<0&&n.clockseq===void 0&&(s=s+1&16383),(c<0||l>mR)&&n.nsecs===void 0&&(u=0),u>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");mR=l,bR=u,fR=s,l+=122192928e5;var h=((l&268435455)*1e4+u)%4294967296;r[i++]=h>>>24&255,r[i++]=h>>>16&255,r[i++]=h>>>8&255,r[i++]=h&255;var d=l/4294967296*1e4&268435455;r[i++]=d>>>8&255,r[i++]=d&255,r[i++]=d>>>24&15|16,r[i++]=d>>>16&255,r[i++]=s>>>8|128,r[i++]=s&255;for(var g=0;g<6;++g)r[i+g]=o[g];return e||zw(r)}var $Z,fR,mR,bR,ps,UZ=k(()=>{gR();pR();mR=0,bR=0;ps=xbe});function Cbe(n,e,t){var i=e&&t||0;typeof n=="string"&&(e=n==="binary"?new Array(16):null,n=null),n=n||{};var r=n.random||(n.rng||xp)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,e)for(var o=0;o<16;++o)e[i+o]=r[o];return e||zw(r)}var oe,XZ=k(()=>{gR();pR();oe=Cbe});var qe=k(()=>{UZ();XZ()});var FIe,yR,Sp,vR=k(()=>{"use strict";qe();FIe=q()("model-status"),yR=["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"],Sp=class{constructor(e){this.nvim=e;this.items=new Map;this.shownIds=new Set;this._text="";this.interval=setInterval(()=>{this.setStatusText()},100)}dispose(){this.items.clear(),this.shownIds.clear(),clearInterval(this.interval)}createStatusBarItem(e,t=!1){let i=ps(),r={text:"",priority:e,isProgress:t,show:()=>{this.shownIds.add(i),this.setStatusText()},hide:()=>{this.shownIds.delete(i),this.setStatusText()},dispose:()=>{this.shownIds.delete(i),this.items.delete(i),this.setStatusText()}};return this.items.set(i,r),r}getText(){if(this.shownIds.size==0)return"";let e=new Date,t=Math.floor(e.getMilliseconds()/100),i="",r=[];for(let[o,s]of this.items)this.shownIds.has(o)&&r.push(s);r.sort((o,s)=>o.priority-s.priority);for(let o of r)o.isProgress?i=`${i} ${yR[t]} ${o.text}`:i=`${i} ${o.text}`;return i}setStatusText(){let e=this.getText(),{nvim:t}=this;e!=this._text&&(this._text=e,t.pauseNotification(),this.nvim.setVar("coc_status",e,!0),this.nvim.call("coc#util#do_autocmd",["CocStatusChange"],!0),t.resumeNotification(!1,!0))}}});var Kw,wR=k(()=>{Kw="0.0.82"});function xR(n,e){if(n.length<=1)return n;let t=n.length/2|0,i=n.slice(0,t),r=n.slice(t);xR(i,e),xR(r,e);let o=0,s=0,a=0;for(;o<i.length&&s<r.length;)e(i[o],r[s])<=0?n[a++]=i[o++]:n[a++]=r[s++];for(;o<i.length;)n[a++]=i[o++];for(;s<r.length;)n[a++]=r[s++];return n}function GZ(n,e,t=0){let i=e?[t]:[];for(let r=0;r<n.length;r++){let o=n.charCodeAt(r);(o===13||o===10)&&(o===13&&r+1<n.length&&n.charCodeAt(r+1)===10&&r++,i.push(t+r+1))}return i}function zZ(n){let e=n.start,t=n.end;return e.line>t.line||e.line===t.line&&e.character>t.character?{start:t,end:e}:n}function Dbe(n){let e=zZ(n.range);return e!==n.range?{newText:n.newText,range:e}:n}var Ql,Vn,ph=k(()=>{"use strict";Ql=class{constructor(e,t,i,r){this._uri=e,this._languageId=t,this._version=i,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let t=this.offsetAt(e.start),i=this.offsetAt(e.end);return this._content.substring(t,i)}return this._content}update(e,t){for(let i of e)if(Ql.isIncremental(i)){let r=zZ(i.range),o=this.offsetAt(r.start),s=this.offsetAt(r.end);this._content=this._content.substring(0,o)+i.text+this._content.substring(s,this._content.length);let a=Math.max(r.start.line,0),l=Math.max(r.end.line,0),u=this._lineOffsets,c=GZ(i.text,!1,o);if(l-a===c.length)for(let d=0,g=c.length;d<g;d++)u[d+a+1]=c[d];else c.length<1e4?u.splice(a+1,l-a,...c):this._lineOffsets=u=u.slice(0,a+1).concat(c,u.slice(l+1));let h=i.text.length-(s-o);if(h!==0)for(let d=a+1+c.length,g=u.length;d<g;d++)u[d]=u[d]+h}else if(Ql.isFull(i))this._content=i.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received");this._version=t}getLineOffsets(){return this._lineOffsets===void 0&&(this._lineOffsets=GZ(this._content,!0)),this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),i=0,r=t.length;if(r===0)return{line:0,character:e};for(;i<r;){let s=Math.floor((i+r)/2);t[s]>e?r=s:i=s+1}let o=i-1;return{line:o,character:e-t[o]}}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let i=t[e.line],r=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(i+e.character,r),i)}get lineCount(){return this.getLineOffsets().length}static isIncremental(e){let t=e;return t!=null&&typeof t.text=="string"&&t.range!==void 0&&(t.rangeLength===void 0||typeof t.rangeLength=="number")}static isFull(e){let t=e;return t!=null&&typeof t.text=="string"&&t.range===void 0&&t.rangeLength===void 0}};(function(n){function e(r,o,s,a){return new Ql(r,o,s,a)}n.create=e;function t(r,o,s){if(r instanceof Ql)return r.update(o,s),r;throw new Error("TextDocument.update: document must be created by TextDocument.create")}n.update=t;function i(r,o){let s=r.getText(),a=xR(o.map(Dbe),(c,h)=>{let d=c.range.start.line-h.range.start.line;return d===0?c.range.start.character-h.range.start.character:d}),l=0,u=[];for(let c of a){let h=r.offsetAt(c.range.start);if(h<l)throw new Error("Overlapping edit");h>l&&u.push(s.substring(l,h)),c.newText.length&&u.push(c.newText),l=r.offsetAt(c.range.end)}return u.push(s.substr(l)),u.join("")}n.applyEdits=i})(Vn||(Vn={}))});function tJ(n){let e;switch(n){case 1:e=1;break;case 2:e=2;break;default:e=3}return e}function Qw(n){let e;if(typeof n=="string")e={resource:n};else if(j.isUri(n))e={resource:n.toString()};else if(n!=null){let t=n.uri,i=n.languageId;e={resource:t,overrideIdentifier:i}}return e}function Vw(n){let e=[];if(CR.test(n)){let t=KZ.exec(n);for(;t!=null&&t.length;){let i=t[1].trim();i&&e.push(i),t=KZ.exec(n)}}return Ai(e)}function iJ(n){let e={};for(let t of Object.keys(n))if(t.indexOf(".")==-1)e[t]=n[t];else{let i=t.split("."),r=e,o=i.length;for(let s=0;s<o;s++){let a=i[s];s==o-1?r[a]=n[t]:(r[a]=r[a]||{},r=r[a])}}return e}function nJ(n,e,t){let i=[],r=Vn.create(n,"json",0,e);for(let o of t){let s="parse error";switch(o.error){case 2:s="invalid number";break;case 8:s="close brace expected";break;case 5:s="colon expected";break;case 6:s="comma expected";break;case 9:s="end of file expected";break;case 16:s="invaliad character";break;case 10:s="invalid comment token";break;case 15:s="invalid escape character";break;case 1:s="invalid symbol";break;case 14:s="invalid unicode";break;case 3:s="property name expected";break;case 13:s="unexpected end of number";break;case 12:s="unexpected end of string";break;case 11:s="unexpected end of comment";break;case 4:s="value expected";break;default:s="Unknown error";break}let a={start:r.positionAt(o.offset),end:r.positionAt(o.offset+o.length)},l=VZ.Location.create(n,a);i.push({location:l,message:s})}return i}function Tp(n,e){let t=Object.create(null);for(let i in n)kp(t,i,n[i],e);return t}function kp(n,e,t,i){let r=e.split("."),o=r.pop(),s=n;for(let a=0;a<r.length;a++){let l=r[a],u=s[l];switch(typeof u){case"undefined":u=s[l]=Object.create(null);break;case"object":break;default:i(`Ignoring ${e} as ${r.slice(0,a+1).join(".")} is ${JSON.stringify(u)}`);return}s=u}typeof s=="object"&&s!==null?s[o]=t:i(`Ignoring ${e} as ${r.join(".")} is ${JSON.stringify(s)}`)}function rJ(n,e){let t=e.split(".");oJ(n,t)}function oJ(n,e){let t=e.shift();if(e.length===0){delete n[t];return}if(Object.keys(n).includes(t)){let i=n[t];typeof i=="object"&&!Array.isArray(i)&&(oJ(i,e),Object.keys(i).length===0&&delete n[t])}}function Dp(n,e,t){function i(s,a){let l=s;for(let u=0;u<a.length;u++){if(typeof l!="object"||l===null)return;l=l[a[u]]}return l}let r=e.split("."),o=i(n,r);return typeof o>"u"?t:o}function fh(n){if(n){if(Array.isArray(n))return n.map(fh);if(typeof n=="object"){let e=Object.create(null);for(let t in n)e[t]=fh(n[t]);return e}}return n}function SR(n,e){let t=n?e?n.keys.filter(o=>e.keys.indexOf(o)===-1):[...n.keys]:[],i=e?n?e.keys.filter(o=>n.keys.indexOf(o)===-1):[...e.keys]:[],r=[];if(n&&e){for(let o of e.keys)if(n.keys.indexOf(o)!==-1){let s=Dp(e.contents,o),a=Dp(n.contents,o);ye(s,a)||r.push(o)}}return{added:t,removed:i,updated:r}}var VZ,UIe,eJ,KZ,Tbe,CR,Vl=k(()=>{"use strict";VZ=S(W());ph();Pe();dn();nt();et();UIe=q()("configuration-util"),eJ="\\[([^\\]]+)\\]",KZ=new RegExp(eJ,"g"),Tbe=`^(${eJ})+$`,CR=new RegExp(Tbe)});var VIe,ri,Pp=k(()=>{"use strict";nt();wi();et();Vl();VIe=q()("configuration-model"),ri=class{constructor(e={},t=[],i=[]){this._contents=e;this._keys=t;this._overrides=i;this.frozen=!1;this.overrideConfigurations=new Map}get contents(){return this.checkAndFreeze(this._contents)}get overrides(){return this.checkAndFreeze(this._overrides)}get keys(){return this.checkAndFreeze(this._keys)}get isFrozen(){return this.frozen}checkAndFreeze(e){return this.frozen&&!Object.isFrozen(e)?hw(e):e}isEmpty(){return this._keys.length===0&&Object.keys(this._contents).length===0&&this._overrides.length===0}clone(){return new ri(Rn(this._contents),[...this.keys],Rn(this.overrides))}toJSON(){return{contents:this.contents,overrides:this.overrides,keys:this.keys}}getValue(e){return e?Dp(this.contents,e):this.contents}getOverrideValue(e,t){let i=this.getContentsForOverrideIdentifier(t);return i?e?Dp(i,e):i:void 0}getKeysForOverrideIdentifier(e){let t=[];for(let i of this.overrides)i.identifiers.includes(e)&&t.push(...i.keys);return Ai(t)}getAllOverrideIdentifiers(){let e=[];for(let t of this.overrides)e.push(...t.identifiers);return Ai(e)}override(e){let t=this.overrideConfigurations.get(e);return t||(t=this.createOverrideConfigurationModel(e),this.overrideConfigurations.set(e,t)),t}merge(...e){let t=Rn(this.contents),i=Rn(this.overrides),r=[...this.keys];for(let o of e)if(!o.isEmpty()){this.mergeContents(t,o.contents);for(let s of o.overrides){let[a]=i.filter(l=>ye(l.identifiers,s.identifiers));a?(this.mergeContents(a.contents,s.contents),a.keys.push(...s.keys),a.keys=Ai(a.keys)):i.push(Rn(s))}for(let s of o.keys)r.indexOf(s)===-1&&r.push(s)}return new ri(t,r,i)}freeze(){return this.frozen=!0,this}mergeContents(e,t){for(let i of Object.keys(t)){if(i in e&&hi(e[i])&&hi(t[i])){this.mergeContents(e[i],t[i]);continue}e[i]=Rn(t[i])}}setValue(e,t){this.addKey(e),kp(this.contents,e,t,i=>{console.error(i)})}removeValue(e){this.removeKey(e)&&rJ(this.contents,e)}addKey(e){let t=this.keys.length;for(let i=0;i<t;i++)e.indexOf(this.keys[i])===0&&(t=i);this.keys.splice(t,1,e)}removeKey(e){let t=this.keys.indexOf(e);return t!==-1?(this.keys.splice(t,1),!0):!1}createOverrideConfigurationModel(e){let t=this.getContentsForOverrideIdentifier(e);if(!t||typeof t!="object"||!Object.keys(t).length)return this;let i={};for(let r of Ai([...Object.keys(this.contents),...Object.keys(t)])){let o=this.contents[r],s=t[r];s&&(typeof o=="object"&&typeof s=="object"?(o=Rn(o),this.mergeContents(o,s)):o=s),i[r]=o}return new ri(i,this._keys,this.overrides)}getContentsForOverrideIdentifier(e){let t=null,i=null,r=o=>{o&&(i?this.mergeContents(i,o):i=Rn(o))};for(let o of this.overrides)ye(o.identifiers,[e])?t=o.contents:o.identifiers.includes(e)&&r(o.contents);return r(t),i}}});function mh(n,e){let{added:t,removed:i,updated:r}=SR(e,n),o=[],s=(n==null?void 0:n.getAllOverrideIdentifiers())??[],a=(e==null?void 0:e.getAllOverrideIdentifiers())??[];if(e){let l=a.filter(u=>!s.includes(u));for(let u of l)o.push([u,e.getKeysForOverrideIdentifier(u)])}if(n){let l=s.filter(u=>!a.includes(u));for(let u of l)o.push([u,n.getKeysForOverrideIdentifier(u)])}if(e&&n){for(let l of s)if(a.includes(l)){let u=SR({contents:n.getOverrideValue(void 0,l)||{},keys:n.getKeysForOverrideIdentifier(l)},{contents:e.getOverrideValue(void 0,l)||{},keys:e.getKeysForOverrideIdentifier(l)});o.push([l,[...u.added,...u.removed,...u.updated]])}}return{added:t,removed:i,updated:r,overrides:o}}var ex,Ra,DR=k(()=>{"use strict";Pe();dn();nt();$e();et();Pp();Vl();ex=class{constructor(){this._folderConfigurations=new Map}get keys(){return this._folderConfigurations.keys()}has(e){for(let t of this.keys)if(ni(e,t))return!0;return!1}set(e,t){let i=In(e);this._folderConfigurations.set(i,t)}get(e){let t=In(e);return this._folderConfigurations.get(t)}delete(e){let t=In(e);this._folderConfigurations.delete(t)}forEach(e){this._folderConfigurations.forEach(e)}},Ra=class{constructor(e,t,i=new ri,r=new ex,o=new ri){this._defaultConfiguration=e;this._userConfiguration=t;this._workspaceConfiguration=i;this._folderConfigurations=r;this._memoryConfiguration=o;this._workspaceConsolidatedConfiguration=null;this._resolvedFolderConfigurations=new Map;this._memoryConfigurationByResource=new Map}updateValue(e,t,i={}){let r;i.resource?(r=this._memoryConfigurationByResource.get(i.resource),r||(r=new ri,this._memoryConfigurationByResource.set(i.resource,r))):r=this._memoryConfiguration,t===void 0?r.removeValue(e):r.setValue(e,t),i.resource||(this._workspaceConsolidatedConfiguration=null)}hasFolder(e){for(let t of this._folderConfigurations.keys)if(ni(t,e))return!0;return!1}addFolderConfiguration(e,t,i){this._folderConfigurations.set(e,t),i&&this._resolvedFolderConfigurations.set(i,e)}deleteFolderConfiguration(e){this._folderConfigurations.delete(e)}getWorkspaceConsolidateConfiguration(){return this._workspaceConsolidatedConfiguration||(this._workspaceConsolidatedConfiguration=this._defaultConfiguration.merge(this._userConfiguration,this._workspaceConfiguration,this._memoryConfiguration),this._workspaceConsolidatedConfiguration=this._workspaceConsolidatedConfiguration.freeze()),this._workspaceConsolidatedConfiguration}getFolderConfigurationModelForResource(e){let t=this._resolvedFolderConfigurations.get(e);if(t)return this._folderConfigurations.get(t);let i=j.parse(e),r=i.scheme==="file"?i.fsPath:void 0;if(!r)return;let o=Array.from(this._folderConfigurations.keys);o.sort((s,a)=>a.length-s.length);for(let s of o)if(Ye(s,r,!0))return this._resolvedFolderConfigurations.set(e,s),this._folderConfigurations.get(s)}resolveFolder(e){let t=this._resolvedFolderConfigurations.get(e);if(t)return t;let i=Array.from(this._folderConfigurations.keys);i.sort((r,o)=>o.length-r.length);for(let r of i)if(Ye(r,j.parse(e).fsPath,!0))return this._resolvedFolderConfigurations.set(e,r),r}getConsolidatedConfigurationModel(e){let t=this.getWorkspaceConsolidateConfiguration();if(e.resource){let i=this.getFolderConfigurationModelForResource(e.resource);i&&(t=t.merge(i));let r=this._memoryConfigurationByResource.get(e.resource);r&&(t=t.merge(r))}return e.overrideIdentifier&&(t=t.override(e.overrideIdentifier)),t}getValue(e,t){return this.getConsolidatedConfigurationModel(t).getValue(e)}inspect(e,t){let i=this.getConsolidatedConfigurationModel(t),r=this.getFolderConfigurationModelForResource(t.resource),o=t.resource?this._memoryConfigurationByResource.get(t.resource)||this._memoryConfiguration:this._memoryConfiguration,s=t.overrideIdentifier?this._defaultConfiguration.freeze().override(t.overrideIdentifier).getValue(e):this._defaultConfiguration.freeze().getValue(e),a=t.overrideIdentifier?this._userConfiguration.freeze().override(t.overrideIdentifier).getValue(e):this._userConfiguration.freeze().getValue(e),l=t.overrideIdentifier?this._workspaceConfiguration.freeze().override(t.overrideIdentifier).getValue(e):this._workspaceConfiguration.freeze().getValue(e),u=r?t.overrideIdentifier?r.freeze().override(t.overrideIdentifier).getValue(e):r.freeze().getValue(e):void 0,c=t.overrideIdentifier?o.override(t.overrideIdentifier).getValue(e):o.getValue(e),h=i.getValue(e),d=Ai(i.overrides.map(g=>g.identifiers).flat()).filter(g=>i.getOverrideValue(e,g)!==void 0);return{defaultValue:s,userValue:a,workspaceValue:l,workspaceFolderValue:u,memoryValue:c,value:h,default:s!==void 0?{value:this._defaultConfiguration.freeze().getValue(e),override:t.overrideIdentifier?this._defaultConfiguration.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,user:a!==void 0?{value:this._userConfiguration.freeze().getValue(e),override:t.overrideIdentifier?this._userConfiguration.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,workspace:l!==void 0?{value:this._workspaceConfiguration.freeze().getValue(e),override:t.overrideIdentifier?this._workspaceConfiguration.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,workspaceFolder:u!==void 0?{value:r==null?void 0:r.freeze().getValue(e),override:t.overrideIdentifier?r==null?void 0:r.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,memory:c!==void 0?{value:o.getValue(e),override:t.overrideIdentifier?o.getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,overrideIdentifiers:d.length?d:void 0}}get defaults(){return this._defaultConfiguration}get user(){return this._userConfiguration}get workspace(){return this._workspaceConfiguration}get memory(){return this._memoryConfiguration}getConfigurationModel(e,t){switch(e){case 0:return this._defaultConfiguration;case 1:return this._userConfiguration;case 2:return this._workspaceConfiguration;case 3:return this._folderConfigurations.get(t)??new ri;default:return this._memoryConfiguration}}updateFolderConfiguration(e,t){this._folderConfigurations.set(e,t)}updateUserConfiguration(e){this._userConfiguration=e,this._workspaceConsolidatedConfiguration=null}updateWorkspaceConfiguration(e){this._workspaceConfiguration=e,this._workspaceConsolidatedConfiguration=null}updateDefaultConfiguration(e){this._defaultConfiguration=e,this._workspaceConsolidatedConfiguration=null}updateMemoryConfiguration(e){this._memoryConfiguration=e,this._workspaceConsolidatedConfiguration=null}compareAndUpdateMemoryConfiguration(e){let{added:t,updated:i,removed:r,overrides:o}=mh(this._memoryConfiguration,e),s=[...t,...i,...r];return s.length&&this.updateMemoryConfiguration(e),{keys:s,overrides:o}}compareAndUpdateUserConfiguration(e){let{added:t,updated:i,removed:r,overrides:o}=mh(this._userConfiguration,e),s=[...t,...i,...r];return s.length&&this.updateUserConfiguration(e),{keys:s,overrides:o}}compareAndUpdateDefaultConfiguration(e,t){let i=[];if(!t){let{added:r,updated:o,removed:s}=mh(this._defaultConfiguration,e);t=[...r,...o,...s]}for(let r of t)for(let o of Vw(r)){let s=this._defaultConfiguration.getKeysForOverrideIdentifier(o),a=e.getKeysForOverrideIdentifier(o),l=[...a.filter(u=>s.indexOf(u)===-1),...s.filter(u=>a.indexOf(u)===-1),...s.filter(u=>!ye(this._defaultConfiguration.override(o).getValue(u),e.override(o).getValue(u)))];i.push([o,l])}return this.updateDefaultConfiguration(e),{keys:t,overrides:i}}compareAndUpdateWorkspaceConfiguration(e){let{added:t,updated:i,removed:r,overrides:o}=mh(this._workspaceConfiguration,e),s=[...t,...i,...r];return s.length&&this.updateWorkspaceConfiguration(e),{keys:s,overrides:o}}compareAndUpdateFolderConfiguration(e,t){let i=this._folderConfigurations.get(e),{added:r,updated:o,removed:s,overrides:a}=mh(i,t),l=[...r,...o,...s];return(l.length||!i)&&this.updateFolderConfiguration(e,t),{keys:l,overrides:a}}compareAndDeleteFolderConfiguration(e){let t=this._folderConfigurations.get(e);if(!t)return;this.deleteFolderConfiguration(e);let{added:i,updated:r,removed:o,overrides:s}=mh(t,void 0);return{keys:[...i,...r,...o],overrides:s}}allKeys(){let e=new Set;return this._defaultConfiguration.freeze().keys.forEach(t=>e.add(t)),this._userConfiguration.freeze().keys.forEach(t=>e.add(t)),this._workspaceConfiguration.freeze().keys.forEach(t=>e.add(t)),this._folderConfigurations.forEach(t=>t.freeze().keys.forEach(i=>e.add(i))),[...e.values()]}toData(){let{_defaultConfiguration:e,_userConfiguration:t,_workspaceConfiguration:i,_folderConfigurations:r}=this,o=[];return r.forEach((s,a)=>{o.push([a,s.toJSON()])}),{defaults:e.toJSON(),user:t.toJSON(),workspace:i.toJSON(),folders:o}}static parse(e){let t=this.parseConfigurationModel(e.defaults),i=this.parseConfigurationModel(e.user),r=this.parseConfigurationModel(e.workspace),o=new ex;return e.folders.forEach(s=>{o.set(s[0],this.parseConfigurationModel(s[1]))}),new Ra(t,i,r,o)}static parseConfigurationModel(e){return new ri(e.contents,e.keys,e.overrides).freeze()}}});var tx,sJ=k(()=>{"use strict";et();DR();Pp();Vl();tx=class{constructor(e,t,i){this.change=e;this.previous=t;this.currentConfiguration=i;this._previousConfiguration=void 0;let r=new Set;e.keys.forEach(s=>r.add(s)),e.overrides.forEach(([,s])=>s.forEach(a=>r.add(a))),this.affectedKeys=[...r.values()];let o=new ri;this.affectedKeys.forEach(s=>o.setValue(s,{})),this.affectedKeysTree=o.contents}get previousConfiguration(){return!this._previousConfiguration&&this.previous&&(this._previousConfiguration=Ra.parse(this.previous)),this._previousConfiguration}affectsConfiguration(e,t){let i=t?Qw(t):void 0;if(this.doesAffectedKeysTreeContains(this.affectedKeysTree,e)){if(i){let r=this.previousConfiguration?this.previousConfiguration.getValue(e,i):void 0,o=this.currentConfiguration.getValue(e,i);return!ye(r,o)}return!0}return!1}doesAffectedKeysTreeContains(e,t){let i=Tp({[t]:!0},()=>{}),r;for(;typeof i=="object"&&(r=Object.keys(i)[0]);){if(e=e[r],!e)return!1;i=i[r]}return!0}}});var nx,ix,aJ=k(()=>{"use strict";_w();nx=S(W());Pe();Pp();Vl();ix=class{constructor(e){this._name=e;this._raw=null;this._configurationModel=null;this._parseErrors=[]}get configurationModel(){return this._configurationModel||new ri}get errors(){return this._parseErrors}parse(e,t){if(e!=null){let i=this.doParseContent(e);this.parseRaw(i,t)}}parseRaw(e,t){this._raw=e;let{contents:i,keys:r,overrides:o,restricted:s}=this.doParseRaw(e,t);this._configurationModel=new ri(i,r,o)}doParseContent(e){let t={},i=null,r=[],o=[],s=[];function a(u){Array.isArray(r)?r.push(u):i!==null&&(r[i]=u)}let l={onObjectBegin:()=>{let u={};a(u),o.push(r),r=u,i=null},onObjectProperty:u=>{i=u},onObjectEnd:()=>{r=o.pop()},onArrayBegin:()=>{let u=[];a(u),o.push(r),r=u,i=null},onArrayEnd:()=>{r=o.pop()},onLiteralValue:a,onError:(u,c,h)=>{s.push({error:u,length:h,offset:c})}};if(e)try{BW(e,l),t=r[0]??{};let u=j.file(this._name).toString();s.length>0&&(this._parseErrors=nJ(u,e,s))}catch(u){let c=j.file(this._name).toString();this._parseErrors=[{location:nx.Location.create(c,nx.Range.create(0,0,0,0)),message:`Error while parsing settings file ${this._name}: ${u}`}]}return t}doParseRaw(e,t){let i=a=>{console.error(`Conflict in settings file ${this._name}: ${a}`)},r=Tp(e,i),o=Object.keys(e),s=this.toOverrides(e,i);return{contents:r,keys:o,overrides:s,restricted:[]}}toOverrides(e,t){let i=[];for(let r of Object.keys(e))if(CR.test(r)){let o={};for(let s in e[r])o[s]=e[r][s];i.push({identifiers:Vw(r),keys:Object.keys(o),contents:Tp(o,t)})}return i}}});function kR(n,e){if(e){if(n&&Qr(n,e))return n[e];let t=e.split("."),i=n;for(let r=0;i&&r<t.length;r++)i=i[t[r]];return i}return n}var fs,lJ,_a,PR,TR,Ep,uJ=k(()=>{"use strict";fs=S(require("fs")),lJ=S(require("os")),_a=S(require("path")),PR=S(W());Pe();dn();re();$e();wi();et();DR();sJ();Pp();aJ();Vl();TR=q()("configurations"),Ep=class{constructor(e,t,i=!1,r=process.cwd()){this.userConfigFile=e;this._proxy=t;this.noWatch=i;this._watchedFiles=new Set;this.builtinKeys=[];this._errorItems=[];this._onError=new PR.Emitter;this._onChange=new PR.Emitter;this.disposables=[];this.onError=this._onError.event;this.onDidChange=this._onChange.event;let o=this.loadDefaultConfigurations(),s=this.parseConfigurationModel(this.userConfigFile);this._configuration=new Ra(o,s),this.watchFile(this.userConfigFile,1);let a=this.folderToConfigfile(r);a&&this.addFolderFile(a,!0)}get errorItems(){return this._errorItems}get configuration(){return this._configuration}loadDefaultConfigurations(){let e=_a.default.resolve(__dirname,".."),t=_a.default.join(e,"data/schema.json"),i=fs.default.readFileSync(t,"utf8"),{properties:r}=JSON.parse(i),o={},s=[];return Object.keys(r).forEach(l=>{let u=r[l].default;s.push(l),u!==void 0&&kp(o,l,u,c=>{console.error(`Conflict keys in ${t}, ${c}`)})}),this.builtinKeys=s.slice(),new ri(o,s)}parseConfigurationModel(e){let t=new ix(e),i=e&&fs.default.existsSync(e)?fs.default.readFileSync(e,"utf8"):"";return t.parse(i),t.errors.length&&(this._errorItems=t.errors,this._onError.fire(this._errorItems)),t.configurationModel}folderToConfigfile(e){if(ni(e,lJ.default.homedir()))return;let t=_a.default.join(e,`.vim/${Uc}`);if(!ni(t,this.userConfigFile))return t}extendsDefaults(e,t){let{defaults:i}=this._configuration,r=i.isFrozen?i.clone():i;Object.keys(e).forEach(o=>{if(t&&this.builtinKeys.includes(o)){TR.error(`Invalid configuration "${o}" from ${t}, overwrite defaults is forbidden.`);return}r.setValue(o,e[o])}),this._configuration.updateDefaultConfiguration(r)}updateMemoryConfig(e){let t=Object.keys(e);if(!e||t.length==0)return;let{builtinKeys:i}=this,r=this._configuration.memory.clone();t.forEach(o=>{let s=e[o];if(s===void 0)r.removeValue(o);else if(i.includes(o))r.setValue(o,s);else if(hi(s))for(let a of Object.keys(s))r.setValue(`${o}.${a}`,s[a]);else r.setValue(o,s)}),this.changeConfiguration(4,r,void 0,t)}addFolderFile(e,t=!1,i){let r=In(_a.default.resolve(e,"../.."));if(this._configuration.hasFolder(r)||!fs.default.existsSync(e))return!1;this.watchFile(e,3);let o=this.parseConfigurationModel(e);return this._configuration.addFolderConfiguration(r,o,i),TR.info(`Add folder configuration from ${t?"cwd":"file"}:`,e),!0}watchFile(e,t){if(!fs.default.existsSync(e)||this._watchedFiles.has(e)||this.noWatch)return;this._watchedFiles.add(e);let i=3?In(_a.default.resolve(e,"../..")):void 0,r=Xc(e,()=>{let o=this.parseConfigurationModel(e);this.changeConfiguration(t,o,i)});this.disposables.push(r)}changeConfiguration(e,t,i,r){let o=this._configuration,s=o.toData(),a;if(e===0?a=o.compareAndUpdateDefaultConfiguration(t,r):e===1?a=o.compareAndUpdateUserConfiguration(t):e===2?a=o.compareAndUpdateWorkspaceConfiguration(t):e===3?a=o.compareAndUpdateFolderConfiguration(i,t):a=o.compareAndUpdateMemoryConfiguration(t),!a||a.keys.length==0)return;let l=new tx(a,s,o);l.source=e,this._onChange.fire(l)}getConfiguration(e,t){var a;let i=this._configuration,r=t?Qw(t):{resource:t===null||(a=this._proxy)==null?void 0:a.root},o=Object.freeze(kR(i.getValue(void 0,r),e)),s={has(l){return typeof kR(o,l)<"u"},get:(l,u)=>{let c=kR(o,l);return c??u},update:(l,u,c=!1)=>{var b;let h=r.resource,d=e?`${e}.${l}`:l,g;typeof c=="boolean"?g=c?1:3:g=tJ(c);let p;if(g===3&&(p=this._configuration.resolveFolder(h)??this.resolveWorkspaceFolderForResource(h),!p)){console.error(`Unable to locate workspace folder configuration for ${h}`),TR.error("Unable to locate workspace folder configuration",h,Error().stack);return}let f=this._configuration.getConfigurationModel(g,p).clone();u===void 0?f.removeValue(d):f.setValue(d,u),this.changeConfiguration(g,f,p);let m;return g===3?m=this.folderToConfigfile(p):g===1&&(m=this.userConfigFile),m?(b=this._proxy)==null?void 0:b.modifyConfiguration(m,d,u):Promise.resolve()},inspect:l=>{l=e?`${e}.${l}`:l;let u=this._configuration.inspect(l,r);return{key:l,defaultValue:u.defaultValue,globalValue:u.userValue,workspaceValue:u.workspaceValue,workspaceFolderValue:u.workspaceFolderValue}}};return Object.defineProperty(s,"has",{enumerable:!1}),Object.defineProperty(s,"get",{enumerable:!1}),Object.defineProperty(s,"update",{enumerable:!1}),Object.defineProperty(s,"inspect",{enumerable:!1}),typeof o=="object"&&K0(s,o,!1),hw(s)}locateFolderConfigution(e){let t=this._configuration.resolveFolder(e);if(t)return!0;let i=j.parse(e);if(i.scheme!=="file")return!1;let r=t=ih(".vim",i.fsPath);if(!r)return!1;t=_a.default.dirname(r);let o=this.folderToConfigfile(t);return o?(this.addFolderFile(o,!1,e),!0):!1}resolveWorkspaceFolderForResource(e){if(this._proxy&&typeof this._proxy.getWorkspaceFolder=="function"){let t=this._proxy.getWorkspaceFolder(e);if(!t)return;let i=t.fsPath,r=this.folderToConfigfile(i);if(r)return fs.default.existsSync(r)||(fs.default.mkdirSync(_a.default.dirname(r),{recursive:!0}),fs.default.writeFileSync(r,"{}","utf8")),this.addFolderFile(r,!1,e),i}}reset(){this._errorItems=[];let e=new ri;this.changeConfiguration(4,e,void 0)}dispose(){this._onError.dispose(),this._onChange.dispose(),U(this.disposables)}}});var Rp,cJ,kbe,_p,hJ=k(()=>{"use strict";Rp=S(require("fs"));_w();cJ=S(require("path"));Pe();kbe=q()("configuration-shape"),_p=class{constructor(e,t=!1){this.resolver=e;this._test=t}get root(){return this.resolver.root}async modifyConfiguration(e,t,i){if(this._test)return;kbe.info(`modify configuration file: ${e}`,t,i);let r=cJ.default.dirname(e),o={tabSize:2,insertSpaces:!0};Rp.default.existsSync(r)||Rp.default.mkdirSync(r,{recursive:!0});let s=Rp.default.readFileSync(e,{encoding:"utf8",flag:"a+"});s=s||"{}";let a=WW(s,[t],i,{formattingOptions:o});s=YW(s,a),Rp.default.writeFileSync(e,s,{encoding:"utf8"})}getWorkspaceFolder(e){if(typeof this.resolver.getWorkspaceFolder=="function"){let t=this.resolver.getWorkspaceFolder(e);if(t)return j.parse(t.uri)}}}});var ER,dJ,RR,gJ,Pbe,Lp,pJ=k(()=>{"use strict";ER=S(require("fs")),dJ=S(require("os")),RR=S(require("path")),gJ=S(W());re();Pbe=q()("core-autocmds"),Lp=class{constructor(e,t){this.contentProvider=e;this.watchers=t;this._dynAutocmd=!1;this.autocmdMaxId=0;this.autocmds=new Map;this.disposables=[];this.contentProvider.onDidProviderChange(()=>{this.setupDynamicAutocmd()},null,this.disposables),this.watchers.onDidOptionChange(()=>{this.setupDynamicAutocmd()},null,this.disposables)}attach(e,t){this.nvim=e,this.env=t}async doAutocmd(e,t){let i=this.autocmds.get(e);if(i){let r=Array.isArray(i.event)?i.event.join(","):i.event;Pbe.debug(`invoke ${i.request?"request":"notify"} autocmd:`,r),await Promise.resolve(i.callback.apply(i.thisArg,t))}}registerAutocmd(e){this.autocmdMaxId+=1;let t=this.autocmdMaxId;return this.autocmds.set(t,e),this.setupDynamicAutocmd(),gJ.Disposable.create(()=>{this.autocmds.delete(t),this.setupDynamicAutocmd()})}setupDynamicAutocmd(e=!1){if(!e&&!this._dynAutocmd)return;this._dynAutocmd=!0;let t=this.contentProvider.schemes,i=[];for(let o of t)i.push(`autocmd BufReadCmd,FileReadCmd,SourceCmd ${o}:/* call coc#rpc#request('CocAutocmd', ['BufReadCmd','${o}', expand('<afile>')])`);for(let[o,s]of this.autocmds.entries()){let a=s.arglist&&s.arglist.length?", "+s.arglist.join(", "):"",l=Array.isArray(s.event)?s.event.join(","):s.event,u=s.pattern!=null?s.pattern:"*";/\buser\b/i.test(l)&&(u=""),i.push(`autocmd ${l} ${u} call coc#rpc#${s.request?"request":"notify"}('doAutocmd', [${o}${a}])`)}for(let o of this.watchers.options)i.push(`autocmd OptionSet ${o} call coc#rpc#notify('OptionSet',[expand('<amatch>'), v:option_old, v:option_new])`);let r=`
|
||
augroup coc_dynamic_autocmd
|
||
autocmd!
|
||
${i.join(`
|
||
`)}
|
||
augroup end`;if(this.nvim.hasFunction("nvim_exec"))this.nvim.exec(r,!1);else{let o=RR.default.join(process.env.TMPDIR||dJ.default.tmpdir(),`coc.nvim-${process.pid}`);ER.default.mkdirSync(o,{recursive:!0});let s=RR.default.join(o,`coc-${process.pid}.vim`);ER.default.writeFileSync(s,r,"utf8");let a=`source ${s}`;this.env.isCygwin&&us.isWindows&&(a=`execute "source" . substitute(system('cygpath ${s.replace(/\\/g,"/")}'), '\\n', '', 'g')`),this.nvim.command(a)}}dispose(){this.nvim.command("augroup coc_dynamic_autocmd| autocmd!|augroup end",!0),U(this.disposables)}}});var eu,Ip,fJ=k(()=>{"use strict";eu=S(W());Pe();fe();re();Ip=class{constructor(e){this.documents=e;this.disposables=[];this.providers=new Map;this._onDidProviderChange=new eu.Emitter;this.onDidProviderChange=this._onDidProviderChange.event}attach(e){this.nvim=e,P.on("BufReadCmd",this.onBufReadCmd,this,this.disposables)}get schemes(){return Array.from(this.providers.keys())}async onBufReadCmd(e,t){let i=this.providers.get(e);if(!i)return;let r=new eu.CancellationTokenSource,o=await Promise.resolve(i.provideTextDocumentContent(j.parse(t),r.token)),s=await this.nvim.buffer;await s.setLines(o.split(/\r?\n/),{start:0,end:-1,strictIndexing:!1}),process.nextTick(()=>{P.fire("BufCreate",[s.id])})}registerTextDocumentContentProvider(e,t){this.providers.set(e,t),this._onDidProviderChange.fire();let i=[];return t.onDidChange&&t.onDidChange(async r=>{let{buffer:o}=this.documents.getDocument(r.toString()),s=new eu.CancellationTokenSource,a=await Promise.resolve(t.provideTextDocumentContent(r,s.token));await o.setLines(a.split(/\r?\n/),{start:0,end:-1,strictIndexing:!1})},null,i),eu.Disposable.create(()=>{this.providers.delete(e),U(i),this._onDidProviderChange.fire()})}dispose(){U(this.disposables),this._onDidProviderChange.dispose(),this.providers.clear()}}});var yJ=y((rje,rx)=>{"use strict";rx.exports=Lbe;rx.exports.format=mJ;rx.exports.parse=bJ;var Ebe=/\B(?=(\d{3})+(?!\d))/g,Rbe=/(?:\.0*|(\.[^0]+)0+)$/,La={b:1,kb:1<<10,mb:1<<20,gb:1<<30,tb:Math.pow(1024,4),pb:Math.pow(1024,5)},_be=/^((-|\+)?(\d+(?:\.\d+)?)) *(kb|mb|gb|tb|pb)$/i;function Lbe(n,e){return typeof n=="string"?bJ(n):typeof n=="number"?mJ(n,e):null}function mJ(n,e){if(!Number.isFinite(n))return null;var t=Math.abs(n),i=e&&e.thousandsSeparator||"",r=e&&e.unitSeparator||"",o=e&&e.decimalPlaces!==void 0?e.decimalPlaces:2,s=Boolean(e&&e.fixedDecimals),a=e&&e.unit||"";(!a||!La[a.toLowerCase()])&&(t>=La.pb?a="PB":t>=La.tb?a="TB":t>=La.gb?a="GB":t>=La.mb?a="MB":t>=La.kb?a="KB":a="B");var l=n/La[a.toLowerCase()],u=l.toFixed(o);return s||(u=u.replace(Rbe,"$1")),i&&(u=u.replace(Ebe,i)),u+r+a}function bJ(n){if(typeof n=="number"&&!isNaN(n))return n;if(typeof n!="string")return null;var e=_be.exec(n),t,i="b";return e?(t=parseFloat(e[1]),i=e[4].toLowerCase()):(t=parseInt(n,10),i="b"),Math.floor(La[i]*t)}});var jp=y((oje,TJ)=>{var Io=-1,oo=1,Fn=0;function Fp(n,e,t,i){if(n===e)return n?[[Fn,n]]:[];if(t!=null){var r=Obe(n,e,t);if(r)return r}var o=LR(n,e),s=n.substring(0,o);n=n.substring(o),e=e.substring(o),o=IR(n,e);var a=n.substring(n.length-o);n=n.substring(0,n.length-o),e=e.substring(0,e.length-o);var l=Ibe(n,e);return s&&l.unshift([Fn,s]),a&&l.push([Fn,a]),wJ(l,i),l}function Ibe(n,e){var t;if(!n)return[[oo,e]];if(!e)return[[Io,n]];var i=n.length>e.length?n:e,r=n.length>e.length?e:n,o=i.indexOf(r);if(o!==-1)return t=[[oo,i.substring(0,o)],[Fn,r],[oo,i.substring(o+r.length)]],n.length>e.length&&(t[0][0]=t[2][0]=Io),t;if(r.length===1)return[[Io,n],[oo,e]];var s=jbe(n,e);if(s){var a=s[0],l=s[1],u=s[2],c=s[3],h=s[4],d=Fp(a,u),g=Fp(l,c);return d.concat([[Fn,h]],g)}return Fbe(n,e)}function Fbe(n,e){for(var t=n.length,i=e.length,r=Math.ceil((t+i)/2),o=r,s=2*r,a=new Array(s),l=new Array(s),u=0;u<s;u++)a[u]=-1,l[u]=-1;a[o+1]=0,l[o+1]=0;for(var c=t-i,h=c%2!==0,d=0,g=0,p=0,f=0,m=0;m<r;m++){for(var b=-m+d;b<=m-g;b+=2){var w=o+b,x;b===-m||b!==m&&a[w-1]<a[w+1]?x=a[w+1]:x=a[w-1]+1;for(var T=x-b;x<t&&T<i&&n.charAt(x)===e.charAt(T);)x++,T++;if(a[w]=x,x>t)g+=2;else if(T>i)d+=2;else if(h){var R=o+c-b;if(R>=0&&R<s&&l[R]!==-1){var F=t-l[R];if(x>=F)return vJ(n,e,x,T)}}}for(var N=-m+p;N<=m-f;N+=2){var R=o+N,F;N===-m||N!==m&&l[R-1]<l[R+1]?F=l[R+1]:F=l[R-1]+1;for(var J=F-N;F<t&&J<i&&n.charAt(t-F-1)===e.charAt(i-J-1);)F++,J++;if(l[R]=F,F>t)f+=2;else if(J>i)p+=2;else if(!h){var w=o+c-N;if(w>=0&&w<s&&a[w]!==-1){var x=a[w],T=o+x-w;if(F=t-F,x>=F)return vJ(n,e,x,T)}}}}return[[Io,n],[oo,e]]}function vJ(n,e,t,i){var r=n.substring(0,t),o=e.substring(0,i),s=n.substring(t),a=e.substring(i),l=Fp(r,o),u=Fp(s,a);return l.concat(u)}function LR(n,e){if(!n||!e||n.charAt(0)!==e.charAt(0))return 0;for(var t=0,i=Math.min(n.length,e.length),r=i,o=0;t<r;)n.substring(o,r)==e.substring(o,r)?(t=r,o=t):i=r,r=Math.floor((i-t)/2+t);return xJ(n.charCodeAt(r-1))&&r--,r}function IR(n,e){if(!n||!e||n.slice(-1)!==e.slice(-1))return 0;for(var t=0,i=Math.min(n.length,e.length),r=i,o=0;t<r;)n.substring(n.length-r,n.length-o)==e.substring(e.length-r,e.length-o)?(t=r,o=t):i=r,r=Math.floor((i-t)/2+t);return CJ(n.charCodeAt(n.length-r))&&r--,r}function jbe(n,e){var t=n.length>e.length?n:e,i=n.length>e.length?e:n;if(t.length<4||i.length*2<t.length)return null;function r(g,p,f){for(var m=g.substring(f,f+Math.floor(g.length/4)),b=-1,w="",x,T,R,F;(b=p.indexOf(m,b+1))!==-1;){var N=LR(g.substring(f),p.substring(b)),J=IR(g.substring(0,f),p.substring(0,b));w.length<J+N&&(w=p.substring(b-J,b)+p.substring(b,b+N),x=g.substring(0,f-J),T=g.substring(f+N),R=p.substring(0,b-J),F=p.substring(b+N))}return w.length*2>=g.length?[x,T,R,F,w]:null}var o=r(t,i,Math.ceil(t.length/4)),s=r(t,i,Math.ceil(t.length/2)),a;if(!o&&!s)return null;s?o?a=o[4].length>s[4].length?o:s:a=s:a=o;var l,u,c,h;n.length>e.length?(l=a[0],u=a[1],c=a[2],h=a[3]):(c=a[0],h=a[1],l=a[2],u=a[3]);var d=a[4];return[l,u,c,h,d]}function wJ(n,e){n.push([Fn,""]);for(var t=0,i=0,r=0,o="",s="",a;t<n.length;){if(t<n.length-1&&!n[t][1]){n.splice(t,1);continue}switch(n[t][0]){case oo:r++,s+=n[t][1],t++;break;case Io:i++,o+=n[t][1],t++;break;case Fn:var l=t-r-i-1;if(e){if(l>=0&&DJ(n[l][1])){var u=n[l][1].slice(-1);if(n[l][1]=n[l][1].slice(0,-1),o=u+o,s=u+s,!n[l][1]){n.splice(l,1),t--;var c=l-1;n[c]&&n[c][0]===oo&&(r++,s=n[c][1]+s,c--),n[c]&&n[c][0]===Io&&(i++,o=n[c][1]+o,c--),l=c}}if(SJ(n[t][1])){var u=n[t][1].charAt(0);n[t][1]=n[t][1].slice(1),o+=u,s+=u}}if(t<n.length-1&&!n[t][1]){n.splice(t,1);break}if(o.length>0||s.length>0){o.length>0&&s.length>0&&(a=LR(s,o),a!==0&&(l>=0?n[l][1]+=s.substring(0,a):(n.splice(0,0,[Fn,s.substring(0,a)]),t++),s=s.substring(a),o=o.substring(a)),a=IR(s,o),a!==0&&(n[t][1]=s.substring(s.length-a)+n[t][1],s=s.substring(0,s.length-a),o=o.substring(0,o.length-a)));var h=r+i;o.length===0&&s.length===0?(n.splice(t-h,h),t=t-h):o.length===0?(n.splice(t-h,h,[oo,s]),t=t-h+1):s.length===0?(n.splice(t-h,h,[Io,o]),t=t-h+1):(n.splice(t-h,h,[Io,o],[oo,s]),t=t-h+2)}t!==0&&n[t-1][0]===Fn?(n[t-1][1]+=n[t][1],n.splice(t,1)):t++,r=0,i=0,o="",s="";break}}n[n.length-1][1]===""&&n.pop();var d=!1;for(t=1;t<n.length-1;)n[t-1][0]===Fn&&n[t+1][0]===Fn&&(n[t][1].substring(n[t][1].length-n[t-1][1].length)===n[t-1][1]?(n[t][1]=n[t-1][1]+n[t][1].substring(0,n[t][1].length-n[t-1][1].length),n[t+1][1]=n[t-1][1]+n[t+1][1],n.splice(t-1,1),d=!0):n[t][1].substring(0,n[t+1][1].length)==n[t+1][1]&&(n[t-1][1]+=n[t+1][1],n[t][1]=n[t][1].substring(n[t+1][1].length)+n[t+1][1],n.splice(t+1,1),d=!0)),t++;d&&wJ(n,e)}function xJ(n){return n>=55296&&n<=56319}function CJ(n){return n>=56320&&n<=57343}function SJ(n){return CJ(n.charCodeAt(0))}function DJ(n){return xJ(n.charCodeAt(n.length-1))}function Mbe(n){for(var e=[],t=0;t<n.length;t++)n[t][1].length>0&&e.push(n[t]);return e}function _R(n,e,t,i){return DJ(n)||SJ(i)?null:Mbe([[Fn,n],[Io,e],[oo,t],[Fn,i]])}function Obe(n,e,t){var i=typeof t=="number"?{index:t,length:0}:t.oldRange,r=typeof t=="number"?null:t.newRange,o=n.length,s=e.length;if(i.length===0&&(r===null||r.length===0)){var a=i.index,l=n.slice(0,a),u=n.slice(a),c=r?r.index:null;e:{var h=a+s-o;if(c!==null&&c!==h||h<0||h>s)break e;var d=e.slice(0,h),g=e.slice(h);if(g!==u)break e;var p=Math.min(a,h),f=l.slice(0,p),m=d.slice(0,p);if(f!==m)break e;var b=l.slice(p),w=d.slice(p);return _R(f,b,w,u)}e:{if(c!==null&&c!==a)break e;var x=a,d=e.slice(0,x),g=e.slice(x);if(d!==l)break e;var T=Math.min(o-x,s-x),R=u.slice(u.length-T),F=g.slice(g.length-T);if(R!==F)break e;var b=u.slice(0,u.length-T),w=g.slice(0,g.length-T);return _R(l,b,w,R)}}if(i.length>0&&r&&r.length===0){e:{var f=n.slice(0,i.index),R=n.slice(i.index+i.length),p=f.length,T=R.length;if(s<p+T)break e;var m=e.slice(0,p),F=e.slice(s-T);if(f!==m||R!==F)break e;var b=n.slice(p,o-T),w=e.slice(p,s-T);return _R(f,b,w,R)}}return null}function ox(n,e,t){return Fp(n,e,t,!0)}ox.INSERT=oo;ox.DELETE=Io;ox.EQUAL=Fn;TJ.exports=ox});function kJ(n,e,t){let i=0,r=0,o=n.slice(t+1);for(let l=0;l<Math.min(o.length,e.length)&&o[o.length-1-l]==e[e.length-1-l];l++)i=i+1;for(let l=0;l<=Math.min(t,e.length-1-i)&&n[l]==e[l];l++)r=r+1;let s=e.slice(r,e.length-i),a=n.length-i;if(a>r&&s.length){let l=0;for(let u=0;u<Math.min(s.length,a-r)&&s[u]==n[r+u];u++)l=l+1;if(l)return{start:r+l,end:a,replacement:s.slice(l)}}return{start:r,end:a,replacement:s}}function PJ(n,e,t=" "){if(n==e)return e;let i=e.indexOf(n);if(i!==-1)return t.repeat(i)+n;let r=(0,sx.default)(n,e),o="";for(let s of r){if(s[0]==sx.default.DELETE)return e;s[0]==sx.default.INSERT?o=o+t.repeat(Q(s[1])):o=o+s[1]}return o}function EJ(n,e,t,i){let r=n.length,o=e.length,s=t?t.line:Math.min(r,o),a=0;for(let g=0;g<s&&e[g]===n[g];g++)a+=1;if(r==o&&a==r)return;let l=o-r,u=Math.min(r-a,o-a),c=0;for(let g=0;g<u&&e[o-g-1]===n[r-g-1];g++)c+=1;let h=c==0?e.slice(a):e.slice(a,-c);if(l==0&&t&&h.length==1){let g=e[a],p=n[a],f=g.length,m=p.length;if(f===0)return un.del(Be.create(a,0,a,m));if(m===0)return un.insert(Mt.create(a,0),g);let b=Math.min(t.character,f);!i&&f>=m&&b!==f&&(b+=1);let w=0;for(let R=0;R<f-b;R++){let F=m-1-R;if(F===-1)break;if(g[f-1-R]===p[F])w+=1;else break}let x=0;for(let R=0;R<Math.min(m-w,f-w)&&g[R]===p[R];R++)x+=1;let T=w===0?g.slice(x):g.slice(x,-w);return un.replace(Be.create(a,x,a,m-w),T)}let d=h.length>0?h.join(`
|
||
`)+`
|
||
`:"";if(!(d.length===0&&a===r-c))return un.replace(Be.create(a,0,r-c,0),d)}var sx,lje,FR=k(()=>{"use strict";sx=S(jp());Kn();_e();lje=q()("util-diff")});function RJ(n){let{start:e,end:t}=n.range;return n.newText.endsWith(`
|
||
`)&&e.line==t.line&&e.character==0&&t.character==0?e.line-1:e.line}function Ia(n){let{newText:e}=n,t=ax(n.range),i=t.end.line-t.start.line;return e.split(/\r?\n/).length-i-1}function ax(n){let e=n.start,t=n.end;return e.line>t.line||e.line===t.line&&e.character>t.character?{start:t,end:e}:n}function jR(n,e){if(n.length<=1)return n;let t=n.length/2|0,i=n.slice(0,t),r=n.slice(t);jR(i,e),jR(r,e);let o=0,s=0,a=0;for(;o<i.length&&s<r.length;)e(i[o],r[s])<=0?n[a++]=i[o++]:n[a++]=r[s++];for(;o<i.length;)n[a++]=i[o++];for(;s<r.length;)n[a++]=r[s++];return n}function MR(n){return jR(n,(e,t)=>{let i=e.range.start.line-t.range.start.line;return i===0?e.range.start.character-t.range.start.character:i})}function _J(n){let{changes:e,documentChanges:t}=n;return!(t&&t.length||e&&Object.keys(e).length)}function LJ(n,e){var i;let t=[];for(let r of n){let o=Mp(r);o&&!t.includes(o)&&((i=e[o])==null?void 0:i.needsConfirmation)&&t.push(o)}return t}function Mp(n){let e;return Sr.TextDocumentEdit.is(n)?Sr.AnnotatedTextEdit.is(n.edits[0])&&(e=n.edits[0].annotationId):e=n.annotationId,e}function IJ(n){if(n.documentChanges)return n.documentChanges;let e=[];if(n.changes)for(let[t,i]of Object.entries(n.changes))e.push({textDocument:{uri:t,version:null},edits:i});return e}function FJ(n,e){let t=[],i=n.end,r=i.line>0&&i.character==0,o;for(let s=0;s<e.length;s++){let a=e[s],{newText:l,range:u}=a,c=(n.lines[u.end.line]??"").length;if(u=eY(a.range,c),o){if(QW(o,u.start)&&Lt(u)&&l.length>0){let d=t[t.length-1];d.newText=l,o=void 0;continue}o=void 0}l.includes("\r")&&(l=l.replace(/\r\n/g,`
|
||
`));let h=Me(u.end,i);if(h>0&&(u.end={line:i.line,character:i.character}),n.getText(u)!==l){if(h===0&&r&&!Lt(u)&&l.endsWith(`
|
||
`)){l=l.slice(0,-1);let d=n.lines[i.line-1];u.end=Sr.Position.create(i.line-1,d.length)}else l.length==0&&(o=u.start);t.push({range:u,newText:l})}}return MR(t)}function jJ(n,e){if(e.length==1){let{start:s,end:a}=e[0].range,{lines:l}=n,u=l[s.line]??"",c=l[a.line]??"",h=u.substring(0,s.character)+e[0].newText+c.substring(a.character);return a.line>=l.length&&n.eol?h==""?[...l.slice(0,s.line)]:(h.endsWith(`
|
||
`)&&(h=h.slice(0,-1)),[...l.slice(0,s.line),...h.split(`
|
||
`)]):[...l.slice(0,s.line),...h.split(`
|
||
`),...l.slice(a.line+1)]}let t=n.getText(),i=0,r=[];for(let s of e){let a=n.offsetAt(s.range.start);if(a<i)throw new Error("Overlapping edit");a>i&&r.push(t.substring(i,a)),s.newText.length&&r.push(s.newText),i=n.offsetAt(s.range.end)}r.push(t.substring(i));let o=r.join("");if(o!==t)return DB(o,n.eol)}function MJ(n,e){return e.map(t=>{let{start:i,end:r}=t.range,o=n[i.line]??"",s=Q(o.slice(0,i.character)),a=r.line==i.line?o:n[r.line]??"",l=Q(a.slice(0,r.character)),{newText:u}=t;return[u.length>0?u.split(`
|
||
`):[],i.line,s,r.line,l]})}function lx(n,e){let{range:t,newText:i}=e;if(Me(t.end,n)<=0){let r=i.split(`
|
||
`),o=r.length-(t.end.line-t.start.line)-1,s=n.character;if(t.end.line==n.line){let a=r[r.length-1].length;r.length>1?s=a+s-t.end.character:s=t.start.character+a+s-t.end.character}return{line:o,character:s-n.character}}return{line:0,character:0}}function ux(n,e){let{line:t,character:i}=n,{range:r,newText:o}=e,{end:s}=r,a=o.split(`
|
||
`),l=a.length-(s.line-r.start.line)-1,u=r.end.line-n.line;if(u>0)return{line:t,character:i};if(u<0)return{line:t+l,character:i};if(a.length>1){let h=a[a.length-1].length;return{line:t+l,character:h+i-s.character}}let c=r.start.character-r.end.character;return{line:t+l,character:c+o.length+i}}function cx(n,e){let t=Sr.Position.create(n.line,n.character),i=!1;for(let r=e.length-1;r>=0;r--){let o=e[r];if(i){t.line+=Ia(o);continue}Me(o.range.end,t)>0||(o.range.end.line==t.line?t=ux(t,o):(i=!0,t.line+=Ia(o)))}return t}function OR(n,e){let t=0;for(let i of e){let r=ax(i.range);Me(r.end,n)<=0&&(t+=Ia(i))}return t}function OJ(n,e,t){let i=n[0].range.start,r=n[n.length-1].range.end,o=e.length-r.line,s=(e[r.line]??"").length-r.character,a=t.length-o,l=(t[a]??"").length-s,u=Abe(i,Sr.Position.create(a,l),t);return Sr.TextEdit.replace(Sr.Range.create(i,r),u)}function Abe(n,e,t){if(n.line===e.line)return(t[n.line]??"").slice(n.character,e.character);let i=[];for(let r=n.line;r<=e.line;r++){let o=t[r]??"";r===n.line?i.push(o.slice(n.character)):r===e.line?i.push(o.slice(0,e.character)):i.push(o)}return i.join(`
|
||
`)}var Sr,so=k(()=>{"use strict";Sr=S(W());xt();_e()});function AR(n){if(/^\d+$/.test(n))return parseInt(n,10);if(n.length>0)return n.charCodeAt(0)}function Hbe(n){let e=[],t=0,i=0,r=n.length;for(;t<r;t++){let o=n[t];if(t+1==r&&i!=r){e.push(n.slice(i,r));continue}if(o==","){let s=t-i;if(s==0)continue;if(s==1){let a=n[t-1];if(a=="^"||a==","){e.push(a==","?",":"^,"),i=t+1,a=="^"&&n[t+1]==","&&(t++,i++);continue}}e.push(n.slice(i,t)),i=t+1}}return e}var NJ,vje,Nbe,AJ,bh,yh,HJ=k(()=>{"use strict";NJ=S(W());re();nt();et();vje=q()("model-chars"),Nbe=[[257,893],[895,902],[904,1369],[1376,1416],[1418,1469],[1471,1471],[1473,1474],[1476,1522],[1525,1547],[1549,1562],[1564,1566],[1568,1641],[1646,1747],[1749,1791],[1806,2403],[2406,2415],[2417,3571],[3573,3662],[3664,3673],[3676,3843],[3859,3897],[3902,3972],[3974,4169],[4176,4346],[4348,4960],[4969,5740],[5743,5759],[5761,5786],[5789,5866],[5870,5940],[5943,6099],[6109,6143],[6155,8191],[10240,10495],[10649,10711],[10716,10747],[10750,11775],[11904,12287],[12321,12335],[12337,12348],[12350,64829],[64832,65071],[65132,65279],[65296,65305],[65313,65338],[65345,65370],[65382,65535]],AJ=65535;bh=class{constructor(e=[],t=!1){this.ranges=e;this.wordChars=t}clone(){return new bh(this.ranges.slice(),this.wordChars)}add(e,t){let i=0,r=0;if(t!=null&&t<e){let o=t;t=e,e=o}t=t??e;for(let o of this.ranges){let[s,a]=o;if(a<e){i++;continue}if(s>t)break;if(r++,s<e&&(e=s),a>t){t=a;break}}this.ranges.splice(i,r,[e,t])}exclude(e,t){if(t!=null&&t<e){let s=t;t=e,e=s}t=t??e;let i=0,r=0,o=[];for(let s of this.ranges){let[a,l]=s;if(l<e){i++;continue}if(a>t)break;if(r++,a<e&&o.push([a,e-1]),l>t){o.push([t+1,l]);break}}r==0&&o.length==0||this.ranges.splice(i,r,...o)}flatten(){return this.ranges.reduce((e,t)=>e.concat(t),[])}includes(e){return e>256&&this.wordChars?eE(e,Nbe):eE(e,this.ranges)}static fromKeywordOption(e){let t=new bh;for(let i of Hbe(e)){let r=i.length>1&&i.startsWith("^"),o=r?"exclude":"add";if(r&&(i=i.slice(1)),i==="@"&&!r)t.wordChars=!0,t[o](65,90),t[o](97,122),t[o](192,255);else if(i=="@-@")t[o]("@".charCodeAt(0));else if(i.length==1||/^\d+$/.test(i))t[o](AR(i));else if(i.includes("-")){let s=i.split("-",2),a=AR(s[0]),l=AR(s[1]);if(a===void 0||l===void 0)continue;t[o](a,l)}}return t}},yh=class{constructor(e){this.ranges=bh.fromKeywordOption(e)}addKeyword(e){this.ranges.add(e.codePointAt(0))}clone(){let e=new yh("");return e.ranges=this.ranges.clone(),e}isKeywordCode(e){return e===32||e>AJ?!1:this.ranges.includes(e)}isKeywordChar(e){let t=e.charCodeAt(0);return this.isKeywordCode(t)}isKeyword(e){for(let t=0,i=e.length;t<i;t++)if(!this.isKeywordChar(e[t]))return!1;return!0}matchLine(e,t=2,i=1024){let r=[],o=e.length;o>i&&(e=e.slice(0,i),o=i);let s=-1,a=0,l=u=>{if(u-s<t)return;let c=e.slice(s,u);r.includes(c)||r.push(c)};for(let u of e){let c=u.codePointAt(0);this.isKeywordCode(c)?s==-1&&(s=a):s!=-1&&(l(a),s=-1),c>AJ?a+=u.length:a++}return s!=-1&&l(o),r}async matchLines(e,t=2,i){let r=new Set,o=Date.now();for(let s of e){if(s.length===0)continue;let a="";Date.now()-o>15&&(await wr(),o=Date.now());for(let l of s){if(i&&i.isCancellationRequested)return;let u=l.codePointAt(0);this.isKeywordCode(u)?a=a+l:a.length>0&&(a.length>=t&&a.length<48&&r.add(a),a="")}a.length>=t&&a.length<48&&r.add(a)}return r}async computeWordRanges(e,t,i){let r=t.start.line,o=t.end.line,s={},a=Date.now();for(let l=r;l<=o;l++){let u=e[l];if(u===void 0)break;let c=l===r?t.start.character:0;if(l===r&&(u=u.slice(c)),l===o&&(u=u.slice(0,t.end.character-c)),Date.now()-a>15){if(i&&i.isCancellationRequested)break;await wr(),a=Date.now()}let h=-1,d=g=>{let p=u.slice(h,g),f=Qr(s,p)?s[p]:[];f.push(NJ.Range.create(l,h+c,l,g+c)),s[p]=f};for(let g=0,p=u.length;g<p;g++)this.isKeywordChar(u[g])?h==-1&&(h=g):h!=-1&&(d(g),h=-1),g===p-1&&h!=-1&&d(p)}return s}}});var NR,hx,qJ=k(()=>{"use strict";NR=S(W()),hx=class{constructor(e,t,i){this._line=e,this._text=t,this._isLastLine=i}get lineNumber(){return this._line}get text(){return this._text}get range(){return NR.Range.create(this._line,0,this._line,this._text.length)}get rangeIncludingLineBreak(){return this._isLastLine?this.range:NR.Range.create(this._line,0,this._line+1,0)}get firstNonWhitespaceCharacterIndex(){return/^(\s*)/.exec(this._text)[1].length}get isEmptyOrWhitespace(){return this.firstNonWhitespaceCharacterIndex===this._text.length}}});function qbe(n,e){let t=[],i=0;for(let r of n)t.push(i),i+=r.length+1;return e&&t.push(i),t}var dx,vh,BJ=k(()=>{"use strict";dx=S(W());qJ();vh=class{constructor(e,t,i,r,o,s){this.uri=e;this.languageId=t;this.version=i;this.lines=r;this.bufnr=o;this.eol=s}get content(){return this._content||(this._content=this.lines.join(`
|
||
`)+(this.eol?`
|
||
`:"")),this._content}get length(){if(!this._content){let e=this.lines.reduce((t,i)=>t+i.length+1,0);return this.eol?e:e-1}return this._content.length}get end(){let e=this.lineCount-1;return this.eol?dx.Position.create(e,0):dx.Position.create(e,this.lines[e].length)}get lineCount(){return this.lines.length+(this.eol?1:0)}getText(e){if(e){let{start:t,end:i}=e;return t.line===i.line?t.character===i.character?"":(this.lines[t.line]??"").substring(t.character,i.character):this.content.substring(this.offsetAt(e.start),this.offsetAt(e.end))}return this.content}lineAt(e){let t=dx.Position.is(e)?e.line:e;if(typeof t!="number"||t<0||t>=this.lineCount||Math.floor(t)!==t)throw new Error("Illegal value for `line`");return new hx(t,this.lines[t]??"",t===this.lineCount-1)}positionAt(e){e=Math.max(Math.min(e,this.content.length),0);let t=this.getLineOffsets(),i=0,r=t.length;if(r===0)return{line:0,character:e};for(;i<r;){let s=Math.floor((i+r)/2);t[s]>e?r=s:i=s+1}let o=i-1;return{line:o,character:e-t[o]}}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this.content.length;if(e.line<0)return 0;let i=t[e.line],r=e.line+1<t.length?t[e.line+1]:this.content.length;return Math.max(Math.min(i+e.character,r),i)}getLineOffsets(){return this._lineOffsets===void 0&&(this._lineOffsets=qbe(this.lines,this.eol)),this._lineOffsets}}});function HR(n){P.fire("BufDetach",[n])}function wh(n){P.fire("LinesChanged",[n])}var qR,Dr,Hje,Op,WJ=k(()=>{"use strict";qR=S(Pn()),Dr=S(W());Pe();fe();FR();re();et();xt();_e();so();HJ();BJ();Hje=q()("model-document"),Op=class{constructor(e,t,i,r){this.buffer=e;this.env=t;this.nvim=i;this.isIgnored=!1;this.eol=!0;this._disposed=!1;this._attached=!1;this._notAttachReason="";this._previewwindow=!1;this._winid=-1;this.disposables=[];this.lines=[];this._onDocumentChange=new Dr.Emitter;this.onDocumentChange=this._onDocumentChange.event;this.fireContentChanges=(0,qR.default)(()=>{this._fireContentChanges()},150),this.fetchContent=(0,qR.default)(()=>{this._fetchContent()},100),this.init(r)}get content(){return this.syncLines.join(`
|
||
`)+(this.eol?`
|
||
`:"")}get attached(){return this._attached}get textDocument(){return this._textDocument}get syncLines(){return this._textDocument.lines}get version(){return this._textDocument.version}get bufnr(){return this.buffer.id}get bufname(){return this._bufname}get filetype(){return this._filetype}get uri(){return this._uri}get isCommandLine(){return this.uri&&this.uri.endsWith("%5BCommand%20Line%5D")}get enabled(){return this.getVar("enabled",!0)}get languageId(){let{_filetype:e}=this;return e.includes(".")?e.match(/(.*?)\./)[1]:e}get changedtick(){return this._changedtick}convertFiletype(e){switch(e){case"javascript.jsx":return"javascriptreact";case"typescript.jsx":case"typescript.tsx":return"typescriptreact";case"tex":return"latex";default:{let t=this.env.filetypeMap;return String(t[e]||e)}}}get schema(){return j.parse(this.uri).scheme}get lineCount(){return this.lines.length}get winid(){return this._winid}get previewwindow(){return this._previewwindow}init(e){let t=this.buftype=e.buftype;this._bufname=e.bufname,this._previewwindow=!!e.previewwindow,this._winid=e.winid,this.variables=e.variables||{},this._changedtick=e.changedtick,this.eol=e.eol==1,this._uri=dB(e.fullpath,this.bufnr,t,this.env.isCygwin),Array.isArray(e.lines)?(this.lines=e.lines,this._noFetch=!0,this._attached=!0,this.attach()):["","acwrite"].includes(t)?this.variables.coc_enabled===0?this._notAttachReason="b:coc_enabled = 0":this._notAttachReason=`buffer size ${e.size} exceed coc.preferences.maxFileSize`:this._notAttachReason=`not a normal buffer, buftype "${t}"`,this._filetype=this.convertFiletype(e.filetype),this.setIskeyword(e.iskeyword,e.lisp),this.createTextDocument(1,this.lines)}get notAttachReason(){return this._notAttachReason}attach(){if(this.env.isVim)return;let e=this.lines;this.buffer.attach(!0).then(t=>{t||HR(this.bufnr)},t=>{HR(this.bufnr)}),this.buffer.listen("lines",(t,i,r,o,s)=>{if(!(t.id!==this.bufnr||!this._attached||i==null)&&i>this._changedtick){if(this._changedtick=i,e=[...e.slice(0,r),...s,...o==-1?[]:e.slice(o)],e.length==0&&(e=[""]),this.lines=e,wh(t.id),P.pumvisible)return;this.fireContentChanges()}},this.disposables),this.buffer.listen("detach",()=>{HR(this.bufnr)},this.disposables)}get dirty(){return this.lines!==this.syncLines}get hasChanged(){return this.dirty?!ye(this.lines,this.syncLines):!1}_fireContentChanges(e){if(this.lines===this.syncLines)return;let t=this._textDocument,i=[];if(!e){let{cursor:s}=P,a;if(s&&s.bufnr==this.bufnr){let l=this.lines[s.lnum-1]??"";a=Dr.Position.create(s.lnum-1,Gi(l,s.col-1))}e=EJ(t.lines,this.lines,a,s?s.insert:!1)}let r;e?(r=t.getText(e.range),i.push({range:e.range,text:e.newText,rangeLength:r.length})):r="";let o=this.createTextDocument(this.version+(e?1:0),this.lines);this._onDocumentChange.fire(Object.freeze({bufnr:this.bufnr,original:r,originalLines:t.lines,textDocument:{version:o.version,uri:this.uri},contentChanges:i}))}async applyEdits(e,t=!1,i=!1){var m;if(Array.isArray(arguments[1])&&(e=arguments[1]),!this._attached||e.length===0)return;this._forceSync();let r=this.textDocument;if(e=FJ(r,e),e.length===0)return;let o=jJ(r,e);if(!o)return;let s=r.lines,a=kJ(s,o,RJ(e[0]));if(a.start===a.end&&a.replacement.length==0)return;let l=a.start===a.end&&a.start===s.length+(this.eol?0:1),u=s.slice(a.start,a.end),c=[];this.nvim.hasFunction("nvim_buf_set_text")&&e.length<200&&a.start!==a.end&&e[e.length-1].range.end.line<s.length+(this.eol?0:1)&&(c=MJ(s,e));let h,d=P.bufnr==this.bufnr,g;if(i&&d&&!l){let b=Dr.Position.is(i)?i:void 0;if(i===!0&&this.bufnr===((m=P.cursor)==null?void 0:m.bufnr)){let{col:w,lnum:x}=P.cursor;b=Dr.Position.create(x-1,Gi(this.lines[x-1],w-1))}if(b){let w=cx(b,e);if(Me(b,w)!==0){let x=o[w.line]??"",T=_t(x,w.character)+1;h=[w.line+1,T]}g=_t(this.lines[b.line],b.character)+1}}this.nvim.pauseNotification(),d&&t&&this.nvim.command("undojoin",!0),l?this.buffer.setLines(a.replacement,{start:-1,end:-1},!0):this.nvim.call("coc#ui#set_lines",[this.bufnr,this._changedtick,u,a.replacement,a.start,a.end,c,h,g],!0),this.nvim.resumeNotification(d,!0);let p=e.length==1?e[0]:OJ(e,s,o);await hB(),this.lines=o,wh(this.bufnr),this.fireContentChanges.clear(),this._fireContentChanges(p);let f=Dr.Range.create(a.start,0,a.start+a.replacement.length,0);return Dr.TextEdit.replace(f,u.join(`
|
||
`)+(u.length>0?`
|
||
`:""))}async changeLines(e){let t=[],i=this.lines.slice();for(let[r,o]of e)i[r]!=o&&(t.push([r,o]),i[r]=o);!t.length||(this.nvim.call("coc#ui#change_lines",[this.bufnr,t],!0),this.nvim.redrawVim(),this.lines=i,wh(this.bufnr),this._forceSync())}_forceSync(){this.fireContentChanges.clear(),this._fireContentChanges()}forceSync(){}getOffset(e,t){return this.textDocument.offsetAt({line:e-1,character:t})}isWord(e){return this.chars.isKeyword(e)}getStartWord(e){let t=0;for(;t<e.length&&this.chars.isKeywordChar(e[t]);t++);return e.slice(0,t)}getWordRangeAtPosition(e,t,i=!0){let r=this.chars;if(t&&t.length){r=this.chars.clone();for(let u of t)r.addKeyword(u)}let o=this.getline(e.line,i),s=o[e.character];if(s==null||!r.isKeywordChar(s))return null;let a=e.character,l=e.character+1;for(;a>=0;){let u=o[a-1];if(!u||!r.isKeywordChar(u))break;a=a-1}for(;l<=o.length;){let u=o[l];if(!u||!r.isKeywordChar(u))break;l=l+1}return Dr.Range.create(e.line,a,e.line,l)}createTextDocument(e,t){let{uri:i,languageId:r,eol:o}=this;return this._textDocument=new vh(i,r,e,t,this.bufnr,o)}async _fetchContent(e){if(!this.env.isVim||!this._attached)return;let{nvim:t,bufnr:i,changedtick:r}=this,o=await t.call("coc#util#get_buf_lines",[i,r]);this._noFetch=!0,o?(this._changedtick=o.changedtick,this.lines=o.lines,wh(this.bufnr),e?this._forceSync():this.fireContentChanges()):e&&this._forceSync()}changeLine(e,t,i){if(this.lines[e-1]===void 0)return;let o=this.lines.slice();o[e-1]=t,this.lines=o,wh(this.bufnr),this._changedtick=i}async patchChange(e){if(!!this._attached)if(this.env.isVim)if(e){let t=await this.nvim.call("coc#util#get_changeinfo",[]);if(t.bufnr!==this.bufnr)return;if(t.changedtick<this._changedtick){this._forceSync();return}let{lnum:i,line:r,changedtick:o}=t,s=this.getline(i-1);if(this._changedtick=o,s==r)this._forceSync();else{let a=this.lines.slice();a[i-1]=r,this.lines=a,wh(this.bufnr),this._forceSync()}}else this.fetchContent.clear(),await this._fetchContent(!0);else this._changedtick=await this.buffer.getVar("changedtick"),this._forceSync()}getSymbolRanges(e){let{version:t,filetype:i,uri:r}=this,o=new vh(r,i,t,this.lines,this.bufnr,this.eol),s=[],a=o.getText(),l="";for(let u=0,c=a.length;u<c;u++){let h=a[u];if(h=="-"&&l.length==0)continue;let d=this.chars.isKeywordChar(h);d&&(l=l+h),l.length>0&&!d&&l==e&&s.push(Dr.Range.create(o.positionAt(u-l.length),o.positionAt(u))),d||(l="")}return s}fixStartcol(e,t){let i=this.getline(e.line);if(!i)return null;let{character:r}=e,o=i.slice(0,r),s=Q(o),{chars:a}=this;for(let l=o.length-1;l>=0;l--){let u=o[l];if(u==" "||!a.isKeywordChar(u)&&!t.includes(u))break;s=s-Q(u)}return s}addHighlights(e,t,i,r={}){let{start:o,end:s}=i;if(!Lt(i))for(let a=o.line;a<=s.line;a++){let l=this.getline(a,!1),u=a==o.line?_t(l,o.character):0,c=a==s.line?_t(l,s.character):global.Buffer.byteLength(l);u>=c||e.push(Object.assign({hlGroup:t,lnum:a,colStart:u,colEnd:c},r))}}getline(e,t=!0){return t?this.lines[e]||"":this.syncLines[e]||""}getLines(e,t){return this.lines.slice(e??0,t??this.lines.length)}getDocumentContent(){let e=this.lines.join(`
|
||
`);return this.eol?e+`
|
||
`:e}getVar(e,t){let i=this.variables[`coc_${e}`];return i===void 0?t:i}getPosition(e,t){let i=this.getline(e-1);if(!i||t==0)return{line:e-1,character:0};let r=tt(i,0,t-1);return{line:e-1,character:r.length}}getEndOffset(e,t,i){let r=0,o=this.lines.length;for(let s=e-1;s<o;s++){let a=this.lines[s],l=a.length;if(s==e-1&&l!=0){let u=global.Buffer.from(a,"utf8");u.byteLength<=t-1||(r=r+u.slice(t-1,u.length).toString("utf8").length,i||(r=r-1))}else r=r+l;if(!this.eol&&s==o-1)break;r=r+1}return r}setFiletype(e){this._filetype=this.convertFiletype(e);let t=this._textDocument.lines;this._textDocument=new vh(this.uri,this.languageId,1,t,this.bufnr,this.eol)}setIskeyword(e,t){let i=this.chars=new yh(e),r=this.getVar("additional_keywords",[]);if(t&&i.addKeyword("-"),r&&Array.isArray(r))for(let o of r)i.addKeyword(o)}detach(){this._disposed||(U(this.disposables),this._disposed=!0,this._attached=!1,this.lines=[],this.fetchContent.clear(),this.fireContentChanges.clear(),this._onDocumentChange.dispose())}async synchronize(){if(!this.attached)return;let{changedtick:e}=this;await this.patchChange(),e!=this.changedtick&&await Nt(50)}onTextChange(e,t){if(e==="TextChanged"||e==="TextChangedI"&&!t.insertChar||!this._noFetch){this._noFetch=!1,this.fetchContent();return}let{line:i,changedtick:r,lnum:o}=t;r!==this.changedtick&&(this.changeLine(o,i,r),e!=="TextChangedP"&&this._forceSync())}}});var YJ,BR,WR,ms,jn,Ap,Np,ZJ=k(()=>{"use strict";YJ=S(yJ()),BR=S(require("fs")),WR=S(require("os")),ms=S(require("path")),jn=S(W());Pe();fe();WJ();re();$e();_e();Ap=q()("core-documents"),Np=class{constructor(e,t){this.configurations=e;this.workspaceFolder=t;this._initialized=!1;this._attached=!1;this._currentResolve=!1;this.disposables=[];this.creating=new Map;this.buffers=new Map;this.winids=new Set;this.resolves=[];this._onDidOpenTextDocument=new jn.Emitter;this._onDidCloseDocument=new jn.Emitter;this._onDidChangeDocument=new jn.Emitter;this._onDidSaveDocument=new jn.Emitter;this._onWillSaveDocument=new jn.Emitter;this.onDidOpenTextDocument=this._onDidOpenTextDocument.event;this.onDidCloseDocument=this._onDidCloseDocument.event;this.onDidChangeDocument=this._onDidChangeDocument.event;this.onDidSaveTextDocument=this._onDidSaveDocument.event;this.onWillSaveTextDocument=this._onWillSaveDocument.event;this._cwd=process.cwd(),this.config={willSaveHandlerTimeout:500,maxFileSize:2097152}}async attach(e,t){if(this._attached)return;this.nvim=e,this._env=t,this._attached=!0,this.getConfiguration(),this.configurations.onDidChange(this.getConfiguration,this,this.disposables);let{bufnrs:i,winid:r,bufnr:o,winids:s}=await this.nvim.call("coc#util#all_state");this.winids=new Set(s),this._bufnr=o,await Promise.all(i.map(l=>this.createDocument(l))),P.on("BufDetach",this.onBufDetach,this,this.disposables),P.on("VimLeavePre",()=>{this.resolveCurrent(void 0)},null,this.disposables),P.on("WinEnter",l=>{this.winids.add(l)},null,this.disposables),P.on("WinClosed",l=>{this.winids.delete(l)},null,this.disposables),P.on("BufWinEnter",(l,u)=>{this.winids.add(u)},null,this.disposables),P.on("DirChanged",l=>{this._cwd=l},null,this.disposables),P.on("CursorHold",async()=>{let{bufnrs:l,winids:u}=await this.nvim.call("coc#util#all_state"),c=[];for(let h of this.buffers.keys())l.includes(h)||c.push(async()=>{await P.fire("BufUnload",[h])});for(let h of this.winids)u.includes(h)||c.push(async()=>{await P.fire("WinClosed",[h])});this.winids=new Set(u),await Promise.allSettled(c.map(h=>h()))},null,this.disposables);let a=l=>{this._bufnr=l,this.createDocument(l)};P.on("CursorMoved",a,null,this.disposables),P.on("CursorMovedI",a,null,this.disposables),P.on("BufUnload",this.onBufUnload,this,this.disposables),P.on("BufEnter",this.onBufEnter,this,this.disposables),P.on("BufCreate",this.onBufCreate,this,this.disposables),P.on("TermOpen",this.onBufCreate,this,this.disposables),P.on("BufWritePost",this.onBufWritePost,this,this.disposables),P.on("BufWritePre",this.onBufWritePre,this,this.disposables),P.on("FileType",this.onFileTypeChange,this,this.disposables),P.fire("BufEnter",[o]),P.fire("BufWinEnter",[o,r]),P.on("BufEnter",l=>{this.createDocument(l)},null,this.disposables),this._env.isVim?["TextChangedP","TextChangedI","TextChanged"].forEach(l=>{P.on(l,(u,c)=>{let h=this.buffers.get(u);h!=null&&h.attached&&h.onTextChange(l,c)},null,this.disposables)}):P.on("CompleteDone",async l=>{if(!l.isSnippet){let u=this.buffers.get(P.bufnr);u!=null&&u.attached&&u._forceSync()}},null,this.disposables),this._initialized=!0}getConfiguration(e){if(!e||e.affectsConfiguration("coc.preferences")){let t=this.configurations.getConfiguration("coc.preferences"),i=t.get("maxFileSize","10MB");this.config={maxFileSize:YJ.default.parse(i),willSaveHandlerTimeout:t.get("willSaveHandlerTimeout",500)}}}get bufnr(){return this._bufnr}get root(){return this._root}get cwd(){return this._cwd}get documents(){return Array.from(this.buffers.values()).filter(e=>e.attached)}get bufnrs(){return Array.from(this.buffers.keys())}detach(){if(!!this._attached){this._attached=!1;for(let e of this.buffers.keys())this.onBufUnload(e);U(this.disposables)}}get textDocuments(){let e=[];for(let t of this.buffers.values())t.attached&&e.push(t.textDocument);return e}getDocument(e){if(typeof e=="number")return this.buffers.get(e);let t=us.isWindows||us.isMacintosh;e=j.parse(e).toString();for(let i of this.buffers.values())if(i.uri===e||t&&i.uri.toLowerCase()===e.toLowerCase())return i;return null}expand(e){if(e.startsWith("~")&&(e=WR.default.homedir()+e.slice(1)),e.includes("$")){let t=this.getDocument(this.bufnr),i=t?j.parse(t.uri).fsPath:"";e=e.replace(/\$\{(.*?)\}/g,(r,o)=>{if(o.startsWith("env:")){let s=o.split(":")[1];return s?process.env[s]:""}switch(o){case"workspace":case"workspaceRoot":case"workspaceFolder":return this._root;case"workspaceFolderBasename":return ms.default.basename(this._root);case"cwd":return this._cwd;case"file":return i;case"fileDirname":return i?ms.default.dirname(i):"";case"fileExtname":return i?ms.default.extname(i):"";case"fileBasename":return i?ms.default.basename(i):"";case"fileBasenameNoExtension":{let s=i?ms.default.basename(i):"";return s?s.slice(0,s.length-ms.default.extname(s).length):""}default:return r}}),e=e.replace(/\$[\w]+/g,r=>r=="$HOME"?WR.default.homedir():process.env[r.slice(1)]||r)}return e}get document(){return this._currentResolve?new Promise(e=>{this.resolves.push(e)}):(this._currentResolve=!0,new Promise(async e=>{let t=await this.nvim.eval(`coc#util#get_bufoptions(bufnr("%"),${this.config.maxFileSize})`),i;t!=null&&(this.creating.delete(t.bufnr),i=this._createDocument(t)),this.resolveCurrent(i),e(i),this._currentResolve=!1}))}resolveCurrent(e){if(this.resolves.length>0)for(;this.resolves.length;){let t=this.resolves.pop();t&&t(e)}}get uri(){let{bufnr:e}=this;if(e){let t=this.getDocument(e);if(t)return t.uri}return null}get filetypes(){let e=new Set;for(let t of this.documents)e.add(t.filetype);return e}getLanguageId(e){let t=ms.default.extname(e);if(!t)return"";for(let i of this.documents){let r=j.parse(i.uri).fsPath;if(ms.default.extname(r)==t)return i.languageId}return""}async getLines(e){let t=this.getDocument(e);if(t)return t.textDocument.lines;let i=j.parse(e);if(i.scheme!=="file")return[];try{return(await XW(i.fsPath,"utf8")).split(/\r?\n/)}catch{return[]}}get languageIds(){let e=new Set;for(let t of this.documents)e.add(t.languageId);return e}async getFormatOptions(e){let t;e&&(t=this.getDocument(e));let i=t?t.bufnr:0,r=await this.nvim.call("coc#util#get_format_opts",[i]),o={tabSize:r.tabsize,insertSpaces:r.expandtab==1};return o.insertFinalNewline=r.insertFinalNewline==1,r.trimTrailingWhitespace&&(o.trimTrailingWhitespace=!0),r.trimFinalNewlines&&(o.trimFinalNewlines=!0),o}async createDocument(e){let t=this.buffers.get(e);if(t)return t;if(this.creating.has(e))return await this.creating.get(e);let i=new Promise(r=>{this.nvim.call("coc#util#get_bufoptions",[e,this.config.maxFileSize]).then(o=>{if(!this.creating.has(e)){r(void 0);return}if(this.creating.delete(e),!o){r(void 0);return}t=this._createDocument(o),r(t)},()=>{this.creating.delete(e),r(void 0)})});return this.creating.set(e,i),await i}async onBufCreate(e){this.onBufUnload(e),await this.createDocument(e)}_createDocument(e){let{bufnr:t}=e;if(this.buffers.has(t))return this.buffers.get(t);let i=this.nvim.createBuffer(t),r=new Op(i,this._env,this.nvim,e);if(e.size>this.config.maxFileSize&&Ap.warn(`buffer ${e.bufnr} size exceed maxFileSize ${this.config.maxFileSize}, not attached.`),this.buffers.set(t,r),r.attached){if(r.schema=="file"){this.configurations.locateFolderConfigution(r.uri);let o=this.workspaceFolder.resolveRoot(r,this._cwd,this._initialized,this.expand.bind(this));t==this._bufnr&&o&&(this._root=o)}this._onDidOpenTextDocument.fire(r.textDocument),r.onDocumentChange(o=>this._onDidChangeDocument.fire(o))}return Ap.debug("buffer created",t,r.attached,r.uri),r}onBufEnter(e){this._bufnr=e;let t=this.buffers.get(e);if(t){let i=this.workspaceFolder.getWorkspaceFolder(j.parse(t.uri));i&&(this._root=j.parse(i.uri).fsPath)}}onBufUnload(e){this.creating.delete(e),this.onBufDetach(e,!1)}async onBufDetach(e,t=!0){this.detachBuffer(e),t&&await this.nvim.call("bufloaded",[e])&&await this.createDocument(e)}detachBuffer(e){let t=this.buffers.get(e);!t||(Ap.debug("document detach",e,t.uri),this._onDidCloseDocument.fire(t.textDocument),this.buffers.delete(e),t.detach())}async onBufWritePost(e,t){let i=this.buffers.get(e);i&&(i.changedtick!=t&&await i.patchChange(),this._onDidSaveDocument.fire(i.textDocument))}async onBufWritePre(e,t,i){let r=this.buffers.get(e);if(!r||!r.attached||r.bufname!=t&&(this.detachBuffer(e),r=await this.createDocument(e),!r.attached))return;r.changedtick!=i?await r.synchronize():await r.patchChange();let o=!0,s=[],a={document:r.textDocument,reason:jn.TextDocumentSaveReason.Manual,waitUntil:u=>{o?s.push(u):(Ap.error("Can't call waitUntil in async manner:",Error().stack),this.nvim.echoError("waitUntil can't be used in async manner, check log for details"))}};this._onWillSaveDocument.fire(a),o=!1;let l=s.length;if(l){let c=await new Promise(h=>{let d=this.config.willSaveHandlerTimeout,g=setTimeout(()=>{this.nvim.outWriteLine(`Will save handler timeout after ${d}ms`),h(void 0)},d),p=0,f=!1;for(let m of s){let b=w=>{f||(f=!0,clearTimeout(g),h(w))};m.then(w=>{if(Array.isArray(w)&&w.length&&jn.TextEdit.is(w[0]))return b(w);p=p+1,p==l&&b(void 0)},w=>{Ap.error("Error on will save handler:",w),p=p+1,p==l&&b(void 0)})}});c&&await r.applyEdits(c,!1,this.bufnr===r.bufnr)}}onFileTypeChange(e,t){let i=this.getDocument(t);!i||i.convertFiletype(e)==i.filetype||(this._onDidCloseDocument.fire(i.textDocument),i.setFiletype(e),this._onDidOpenTextDocument.fire(i.textDocument))}async getQuickfixList(e){let t={},i=e.reduce((r,o)=>{let s=j.parse(o.uri);return s.scheme=="file"&&!r.includes(s.fsPath)&&!this.getDocument(o.uri)&&r.push(s.fsPath),r},[]);return await Promise.all(i.map(r=>new Promise(o=>{BR.default.readFile(r,"utf8",(s,a)=>{if(s)return o(void 0);t[r]=a.split(/\r?\n/),o(void 0)})}))),await Promise.all(e.map(r=>{let{uri:o,range:s}=r,{fsPath:a}=j.parse(o),l,u=t[a];return u&&(l=u[s.start.line]),this.getQuickfixItem(r,l)}))}async showLocations(e){let{nvim:t,configurations:i}=this,r=await this.getQuickfixList(e);if(i.getConfiguration("coc.preferences").get("useQuickfixForLocations",!1)){let s=await t.getVar("coc_quickfix_open_command");typeof s!="string"&&(s=r.length<10?`copen ${r.length}`:"copen"),t.pauseNotification(),t.call("setqflist",[r],!0),t.command(s,!0),t.resumeNotification(!1,!0)}else await t.setVar("coc_jump_locations",r),this._env.locationlist?t.command("CocList --normal --auto-preview location",!0):t.call("coc#util#do_autocmd",["CocLocationsChange"],!0)}async getQuickfixItem(e,t,i="",r){let o=e.targetRange;jn.LocationLink.is(e)&&(e=jn.Location.create(e.targetUri,e.targetRange));let s=this.getDocument(e.uri),{uri:a,range:l}=e,{start:u,end:c}=l,h=j.parse(a);!t&&h.scheme=="file"&&(t=await this.getLine(a,u.line));let d=u.line==c.line?t:await this.getLine(a,c.line),g={uri:a,filename:h.scheme=="file"?h.fsPath:a,lnum:u.line+1,end_lnum:c.line+1,col:t?_t(t,u.character)+1:u.character+1,end_col:d?_t(d,c.character)+1:c.character+1,text:t||"",range:l};return o&&(g.targetRange=o),r&&(g.module=r),i&&(g.type=i),s&&(g.bufnr=s.bufnr),g}async getLine(e,t){let i=this.getDocument(e);if(i&&i.attached)return i.getline(t)||"";if(!e.startsWith("file:"))return"";let r=j.parse(e).fsPath;return BR.default.existsSync(r)?await zW(r,t):""}async readFile(e){let t=this.getDocument(e);if(t)return await t.patchChange(),t.content;let i=j.parse(e);return i.scheme!="file"?"":(await this.nvim.call("readfile",[i.fsPath])).join(`
|
||
`)+`
|
||
`}reset(){this.creating.clear();for(let e of this.buffers.keys())this.onBufUnload(e);this.buffers.clear(),this._root=process.cwd()}dispose(){for(let e of this.buffers.keys())this.onBufUnload(e);this._attached=!1,this.buffers.clear(),U(this.disposables)}}});var Hp,JJ,qp,$J=k(()=>{"use strict";Hp=S(W());fe();xe();JJ=q()("core-editors"),qp=class{constructor(e){this.documents=e;this.disposables=[];this.editors=new Map;this._onDidChangeActiveTextEditor=new Hp.Emitter;this._onDidChangeVisibleTextEditors=new Hp.Emitter;this.onDidChangeActiveTextEditor=this._onDidChangeActiveTextEditor.event;this.onDidChangeVisibleTextEditors=this._onDidChangeVisibleTextEditors.event}get activeTextEditor(){return this.editors.get(this.winid)}get visibleTextEditors(){return Array.from(this.editors.values())}onChange(e){let t=`${e.winid}-${e.document.bufnr}-${e.document.uri}`;t!=this.previousId&&(this.previousId=t,this._onDidChangeActiveTextEditor.fire(e))}async attach(e){this.nvim=e;let{documents:t}=this,i=t.getDocument(t.bufnr);i&&i.winid>0&&(this.winid=i.winid,await this.createTextEditor(this.winid)),P.on("WinEnter",r=>{this.winid=r;let o=this.editors.get(r);o&&this.onChange(o)},null,this.disposables),P.on("CursorHold",async()=>{let[r,o,s]=await e.eval("[win_getid(),&buftype,coc#window#is_float(win_getid())]"),a=!1;!s&&["","acwrite"].includes(o)&&!this.editors.has(r)&&await this.createTextEditor(r)&&(a=!0),a&&this._onDidChangeVisibleTextEditors.fire(this.visibleTextEditors)},null,this.disposables),P.on("WinClosed",r=>{this.editors.has(r)&&(this.editors.delete(r),this._onDidChangeVisibleTextEditors.fire(this.visibleTextEditors))},null,this.disposables),P.on("BufWinEnter",async(r,o)=>{this.winid=o,await this.createTextEditor(o,!0)},null,this.disposables)}async createTextEditor(e,t=!1){let{documents:i,nvim:r}=this,o=await r.call("coc#util#get_editoroption",[e]);if(!o)return!1;let s=!1;if(t)for(let l of this.editors.keys())o.winids.includes(l)||(s=!0,this.editors.delete(l));let a=i.getDocument(o.bufnr);if(a){let l=this.fromOptions(o,a);return this.editors.set(e,l),e==this.winid&&this.onChange(l),this._onDidChangeVisibleTextEditors.fire(this.visibleTextEditors),JJ.debug("editor created winid & bufnr & tabnr: ",e,o.bufnr,o.tabpagenr),!0}else s&&this._onDidChangeVisibleTextEditors.fire(this.visibleTextEditors);return JJ.error(`document not found for window: ${e}`),!1}fromOptions(e,t){let{visibleRanges:i}=e,r=D.getTabId(e.tabpagenr);return{get tabpagenr(){return D.getTabNumber(r)},winid:e.winid,winnr:e.winnr,document:t,visibleRanges:i.map(o=>Hp.Range.create(o[0]-1,0,o[1],0)),options:{tabSize:e.tabSize,insertSpaces:!!e.insertSpaces}}}}});function Wbe(n,e){if(typeof n.lnum!="number")return;let t=n.lnum;if(e){let i=MR(e.edits);t=cx(Mt.create(t-1,0),i).line+1}return t}function Ybe(n,e){var i;let t=new Map;for(let r of n){let o=Mp(r)??null,s=o?(i=e[o])==null?void 0:i.label:null,a=t.get(s);a?a.push(r):t.set(s,[r])}return t}var gx,px,dMe,Bbe,Bp,UJ=k(()=>{"use strict";gx=S(jp()),px=S(require("path"));Kn();Pe();fe();re();$e();so();Ta();dMe=q()("model-editInspect"),Bbe=0,Bp=class{constructor(e,t){this.nvim=e;this.keymaps=t;this.disposables=[];this.items=[];this.renameMap=new Map;P.on("BufUnload",i=>{i==this.bufnr&&this.dispose()},null,this.disposables)}addFile(e,t,i){this.items.push({index:t.length,filepath:e,lnum:i})}async show(e){let{nvim:t}=this,i=Bbe++;t.pauseNotification(),t.command(`tabe +setl\\ buftype=nofile CocWorkspaceEdit${i}`,!0),t.command("setl bufhidden=wipe nolist",!0),t.command("setl nobuflisted wrap undolevels=-1 filetype=cocedits noswapfile",!0),await t.resumeNotification(!0);let r=await t.buffer,o=await t.call("getcwd");this.bufnr=r.id;let s=c=>{let h=j.parse(c).fsPath;return Ye(o,h,!0)?px.default.relative(o,h):h},a=c=>px.default.isAbsolute(c)?c:px.default.join(o,c),l=new Hi,u=Ybe(e.edit.documentChanges??[],e.edit.changeAnnotations??{});for(let[c,h]of u.entries()){c&&(l.addLine(c,"MoreMsg"),l.addLine(""));for(let d of h)if(ua.is(d)){let g=e.changes[d.textDocument.uri],p=s(d.textDocument.uri);l.addTexts([{text:"Change",hlGroup:"Title"},{text:" "},{text:p,hlGroup:"Directory"},{text:`:${g.lnum}`,hlGroup:"LineNr"}]),this.addFile(p,l,g.lnum),l.addLine(""),this.addChangedLines(l,g,p,g.lnum),l.addLine("")}else if(ca.is(d)||as.is(d)){let g=as.is(d)?"Delete":"Create",p=s(d.uri);l.addTexts([{text:g,hlGroup:"Title"},{text:" "},{text:p,hlGroup:"Directory"}]),this.addFile(p,l),l.addLine("")}else if(ha.is(d)){let g=s(d.oldUri),p=s(d.newUri);l.addTexts([{text:"Rename",hlGroup:"Title"},{text:" "},{text:g,hlGroup:"Directory"},{text:"->",hlGroup:"Comment"},{text:p,hlGroup:"Directory"}]),this.renameMap.set(g,p),this.addFile(p,l),l.addLine("")}}t.pauseNotification(),l.render(r),r.setOption("modifiable",!1,!0),await t.resumeNotification(!0),this.disposables.push(this.keymaps.registerLocalKeymap("n","<CR>",async()=>{let c=await t.call("line","."),h=await t.call("col","."),d;for(let b=this.items.length-1;b>=0;b--){let w=this.items[b];if(c>=w.index){d=w;break}}if(!d)return;let g=j.file(a(d.filepath)).toString(),p=this.renameMap.has(d.filepath)?this.renameMap.get(d.filepath):d.filepath;await t.call("coc#util#open_file",["tab drop",a(p)]);let f=(e.edit.documentChanges??[]).find(b=>ua.is(b)&&b.textDocument.uri==g),m=Wbe(d,f);m!==void 0&&await t.call("cursor",[m,h]),t.redrawVim()},!0)),this.disposables.push(this.keymaps.registerLocalKeymap("n","<esc>",async()=>{t.command("bwipeout!",!0)},!0))}addChangedLines(e,t,i,r){let o=(0,gx.default)(t.oldLines.join(`
|
||
`),t.newLines.join(`
|
||
`));for(let s=0;s<o.length;s++){let a=o[s];if(a[0]==gx.default.EQUAL){let l=a[1];if(!l.includes(`
|
||
`))e.addText(l);else{let u=l.split(`
|
||
`);e.addText(u[0]);let c=r+u.length-1;e.addLine(""),e.addTexts([{text:"Change",hlGroup:"Title"},{text:" "},{text:i,hlGroup:"Directory"},{text:`:${c}`,hlGroup:"LineNr"}]),this.addFile(i,e,c),e.addLine("");let h=u[u.length-1];h.length>0&&e.addText(h)}r+=l.split(`
|
||
`).length-1}else a[0]==gx.default.DELETE?(r+=a[1].split(`
|
||
`).length-1,e.addText(a[1],"DiffDelete")):e.addText(a[1],"DiffAdd")}}dispose(){U(this.disposables)}}});function Jbe(n,e,t){let i=er.default.join(n,e);if(typeof t!="string"){let r=t.baseUri.fsPath;if(!Ye(r,i))return!1;let o=er.default.relative(r,i);return(0,YR.default)(o,t.pattern,{dot:!0})}return(0,YR.default)(e,t,{dot:!0})}function fx(n){return j.parse(n).fsPath}var XJ,Ht,GJ,YR,zJ,er,KJ,It,Zbe,Wp,QJ=k(()=>{"use strict";XJ=S(require("crypto")),Ht=S(require("fs")),GJ=S(vw()),YR=S(Lo()),zJ=S(require("os")),er=S(require("path")),KJ=require("util"),It=S(W());Pe();fe();UJ();xr();$e();_e();so();fp();Zbe=q()("core-files"),Wp=class{constructor(e,t,i,r){this.documents=e;this.configurations=t;this.workspaceFolderControl=i;this.keymaps=r;this.operationTimeout=500;this._onDidCreateFiles=new It.Emitter;this._onDidRenameFiles=new It.Emitter;this._onDidDeleteFiles=new It.Emitter;this._onWillCreateFiles=new It.Emitter;this._onWillRenameFiles=new It.Emitter;this._onWillDeleteFiles=new It.Emitter;this.onDidCreateFiles=this._onDidCreateFiles.event;this.onDidRenameFiles=this._onDidRenameFiles.event;this.onDidDeleteFiles=this._onDidDeleteFiles.event;this.onWillCreateFiles=this._onWillCreateFiles.event;this.onWillRenameFiles=this._onWillRenameFiles.event;this.onWillDeleteFiles=this._onWillDeleteFiles.event}attach(e,t,i){this.nvim=e,this.env=t,this.window=i}async openTextDocument(e){e=typeof e=="string"?j.file(e):e;let t=this.documents.getDocument(e.toString());if(t)return await this.jumpTo(e.toString(),null,"drop"),t;let i=e.scheme;if(i=="file"){if(!Ht.default.existsSync(e.fsPath))throw uw(e.fsPath);Ht.default.accessSync(e.fsPath,Ht.default.constants.R_OK)}return i=="untitled"?(await this.nvim.call("coc#util#open_file",["tab drop",e.path]),await this.documents.document):await this.loadResource(e.toString())}async jumpTo(e,t,i){let r=this.configurations.getConfiguration("coc.preferences"),o=i||r.get("jumpCommand","edit"),{nvim:s}=this,a=this.documents.getDocument(e),l=a?a.bufnr:-1;if(l!=-1&&o=="edit"){if(s.pauseNotification(),s.command("silent! normal! m'",!0),s.command(`buffer ${l}`,!0),s.command("if &filetype ==# '' | filetype detect | endif",!0),t){let u=a.getline(t.line),c=Q(u.slice(0,t.character))+1;s.call("cursor",[t.line+1,c],!0)}await s.resumeNotification(!0)}else{let{fsPath:u,scheme:c}=j.parse(e),h=t==null?null:[t.line,t.character];if(c=="file"){let d=In(u);await this.nvim.call("coc#util#jump",[o,d,h])}else await this.nvim.call("coc#util#jump",[o,e,h])}}async openResource(e){let{nvim:t}=this,i=j.parse(e);if(/^https?/.test(i.scheme)){await t.call("coc#ui#open_url",e);return}let r=await t.getOption("wildignore");await t.setOption("wildignore",""),await this.jumpTo(e),await t.setOption("wildignore",r)}async loadResource(e,t){let i=this.documents.getDocument(e);if(i)return i;t||(t=this.configurations.getConfiguration("workspace").get("openResourceCommand","tab drop"));let r=j.parse(e),o=r.scheme==="file"?r.fsPath:e,s;if(t){let a=await this.nvim.call("win_getid");s=await this.nvim.call("coc#util#open_file",[t,o]),await this.nvim.call("win_gotoid",[a])}else s=(await this.nvim.call("coc#ui#open_files",[[o]]))[0];return await this.documents.createDocument(s)}async loadResources(e){let{documents:t}=this,i=e.map(o=>{let s=j.parse(o);return s.scheme=="file"?s.fsPath:o}),r=await this.nvim.call("coc#ui#open_files",[i]);return await Promise.all(r.map(o=>t.createDocument(o)))}async createFile(e,t={},i){let{nvim:r}=this,o=Ht.default.existsSync(e);if(o&&!t.overwrite&&!t.ignoreIfExists)throw z0(e);if(!o||t.overwrite){let s=new It.CancellationTokenSource;await this.fireWaitUntilEvent(this._onWillCreateFiles,{files:[j.file(e)],token:s.token},i),s.cancel();let a=er.default.dirname(e);if(!Ht.default.existsSync(a)){let c,h=a;for(;![".","/",er.default.parse(a).root].includes(h);){if(Ht.default.existsSync(er.default.dirname(h))){c=h;break}h=er.default.dirname(h)}Ht.default.mkdirSync(a,{recursive:!0}),i&&i.push(()=>{Ht.default.rmSync(c,{force:!0,recursive:!0})})}Ht.default.writeFileSync(e,"","utf8"),i&&i.push(async()=>{Ht.default.rmSync(e,{force:!0,recursive:!0})});let u=(await this.loadResource(e)).bufnr;i&&i.push(()=>(P.fire("BufUnload",[u]),r.command(`silent! bd! ${u}`))),this._onDidCreateFiles.fire({files:[j.file(e)]})}}async deleteFile(e,t={},i){let{ignoreIfNotExists:r,recursive:o}=t,s=await zi(e),a=s&&s.isDirectory();if(!s&&!r)throw uw(e);if(s==null)return;let l=j.file(e);if(await this.fireWaitUntilEvent(this._onWillDeleteFiles,{files:[l]},i),!a){let h=await this.nvim.call("bufnr",[e]);h&&(P.fire("BufUnload",[h]),await this.nvim.command(`silent! bwipeout ${h}`),i&&i.push(()=>this.loadResource(l.toString())))}let u=er.default.join(zJ.default.tmpdir(),"coc-"+process.pid);Ht.default.mkdirSync(u,{recursive:!0});let c=XJ.default.createHash("md5").update(e).digest("hex");if(a&&o){let h=er.default.join(u,c),d=er.default.dirname(e);Ht.default.renameSync(e,h),i&&i.push(async()=>{Ht.default.mkdirSync(d,{recursive:!0}),Ht.default.renameSync(h,e)})}else if(a)Ht.default.rmdirSync(e),i&&i.push(()=>{Ht.default.mkdirSync(e)});else{let h=er.default.join(u,c),d=er.default.dirname(e);Ht.default.renameSync(e,h),i&&i.push(()=>{Ht.default.mkdirSync(d,{recursive:!0}),Ht.default.renameSync(h,e)})}this._onDidDeleteFiles.fire({files:[l]})}async renameFile(e,t,i={},r){let{nvim:o}=this,{overwrite:s,ignoreIfExists:a}=i;if(t===e)return;let l=Ht.default.existsSync(t);if(l&&a&&!s)return;if(l&&!s)throw z0(t);let u=await zi(e),c=u&&u.isDirectory()?0:await o.call("bufloaded",[e]);if(!c&&!u)throw uw(e);let h={newUri:j.parse(t),oldUri:j.parse(e)};if(i.skipEvent||await this.fireWaitUntilEvent(this._onWillRenameFiles,{files:[h]},r),c){let d=await o.call("coc#ui#rename_file",[e,t,u!=null]);await this.documents.onBufCreate(d)}else{if(u!=null&&u.isDirectory())for(let d of this.documents.documents){let g=j.parse(d.uri);if(g.scheme==="file"&&Ye(e,g.fsPath,!1)){let p=g.fsPath.replace(e,t),f=await o.call("coc#ui#rename_file",[g.fsPath,p,!1]);await this.documents.onBufCreate(f)}}Ht.default.renameSync(e,t)}r&&r.push(()=>this.renameFile(t,e,{skipEvent:!0})),i.skipEvent||this._onDidRenameFiles.fire({files:[h]})}async renameCurrent(){let{nvim:e}=this,t=await e.call("expand",["%:p"]),i=await e.callAsync("coc#util#with_callback",["input",["New path: ",t,"file"]]);i=i?i.trim():null,!(i===t||!i)&&(t.toLowerCase()!=i.toLowerCase()&&Ht.default.existsSync(i)&&!await Yw(this.nvim,`${i} exists, overwrite?`)||await this.renameFile(t,i,{overwrite:!0}))}get currentUri(){let e=this.documents.getDocument(this.documents.bufnr);return e?e.uri:null}async applyEdit(e,t){let i=IJ(e),r=[],o=!1;try{let{changeAnnotations:s}=e,{currentUri:a}=this,l=s?LJ(i,s):[],u={},c=[];for(let h of l){let d=s[h];d.needsConfirmation=!1,await this.window.showMenuPicker(["Yes","No"],{position:"center",title:"Confirm edits",content:d.label+(d.description?" "+d.description:"")})!==0&&c.push(h)}if(i=i.filter(h=>!c.includes(Mp(h))),!i.length)return!0;o=i.every(h=>It.TextDocumentEdit.is(h)&&h.textDocument.uri===a),this.validateChanges(i);for(let h of i)if(It.TextDocumentEdit.is(h)){let{textDocument:d,edits:g}=h,{uri:p}=d,f=await this.loadResource(p),m=await f.applyEdits(g,!1,p===a);if(m){let b=f.version,{newText:w,range:x}=m;u[p]={uri:p,lnum:x.start.line+1,newLines:f.getLines(x.start.line,x.end.line),oldLines:w.endsWith(`
|
||
`)?w.slice(0,-1).split(`
|
||
`):w.split(`
|
||
`)},r.push(async()=>{let T=this.documents.getDocument(p);!T||!T.attached||T.version!==b||(await T.applyEdits([m]),d.version=T.version)})}}else It.CreateFile.is(h)?await this.createFile(fx(h.uri),h.options,r):It.DeleteFile.is(h)?await this.deleteFile(fx(h.uri),h.options,r):It.RenameFile.is(h)&&await this.renameFile(fx(h.oldUri),fx(h.newUri),h.options,r);if(r.length===0)return!0;t||(this.editState={edit:{documentChanges:i,changeAnnotations:e.changeAnnotations},changes:u,recovers:r,applied:!0}),this.nvim.redrawVim()}catch(s){return Zbe.error("Error on applyEdits:",e,s),await this.undoChanges(r),t||this.window.showErrorMessage(`Error on applyEdits: ${s}`),!1}return t||o||this.window.showInformationMessage("Use ':wa' to save changes or ':CocCommand workspace.inspectEdit' to inspect."),!0}async undoChanges(e){for(;e.length>0;){let t=e.pop();await Promise.resolve(t())}}async inspectEdit(){if(!this.editState){this.window.showWarningMessage("No workspace edit to inspect");return}await new Bp(this.nvim,this.keymaps).show(this.editState)}async undoWorkspaceEdit(){let{editState:e}=this;if(!e||!e.applied){this.window.showWarningMessage("No workspace edit to undo");return}e.applied=!1,await this.undoChanges(e.recovers)}async redoWorkspaceEdit(){let{editState:e}=this;if(!e||e.applied){this.window.showWarningMessage("No workspace edit to redo");return}this.editState=void 0,await this.applyEdit(e.edit)}validateChanges(e){let{documents:t}=this;for(let i of e)if(It.TextDocumentEdit.is(i)){let{uri:r,version:o}=i.textDocument,s=t.getDocument(r);if(typeof o=="number"&&o>0){if(!s)throw new Error(`File ${r} not loaded`);if(s.version!=o)throw new Error(`${r} changed before apply edit`)}else if(!s&&!op(r))throw cw(j.parse(r).scheme)}else if(It.CreateFile.is(i)||It.DeleteFile.is(i)){if(!op(i.uri))throw cw(j.parse(i.uri).scheme)}else if(It.RenameFile.is(i)&&(!op(i.oldUri)||!op(i.newUri)))throw cw(j.parse(i.oldUri).scheme)}async findFiles(e,t,i,r){let o=this.workspaceFolderControl.workspaceFolders;if((r==null?void 0:r.isCancellationRequested)||!o.length||i===0)return[];i=i??1/0;let s=o.map(u=>j.parse(u.uri).fsPath);if(typeof e!="string"){let u=e.baseUri.fsPath;s=s.filter(c=>Ye(u,c,!0))}let a=typeof e=="string"?e:e.pattern,l=[];for(let u of s){if(l.length>=i)break;let c=await(0,KJ.promisify)(GJ.default)(a,{dot:!0,cwd:u,nodir:!0,absolute:!1});if(r!=null&&r.isCancellationRequested)return[];for(let h of c)if(!(t&&Jbe(u,h,t))&&(l.push(j.file(er.default.join(u,h))),l.length===i))break}return l}async fireWaitUntilEvent(e,t,i){let r=!0,o=[];e.fire({...t,waitUntil:s=>{if(!r)throw fB("waitUntil");let a=new Promise(u=>{setTimeout(u,this.operationTimeout)}),l=Promise.race([s,a]).then(u=>{if(u&&It.WorkspaceEdit.is(u))return this.applyEdit(u,!0)});o.push(l)}}),r=!1,await Promise.all(o)}}});var t$=y((RMe,e$)=>{var ZR=4294967296,VJ=[];for(xh=0;xh<256;xh++)VJ[xh]=(xh>15?"":"0")+xh.toString(16);var xh,Yp=e$.exports=function(n,e){n instanceof Buffer?(this.buffer=n,this.offset=e||0):Object.prototype.toString.call(n)=="[object Uint8Array]"?(this.buffer=new Buffer(n),this.offset=e||0):(this.buffer=this.buffer||new Buffer(8),this.offset=0,this.setValue.apply(this,arguments))};Yp.MAX_INT=Math.pow(2,53);Yp.MIN_INT=-Math.pow(2,53);Yp.prototype={constructor:Yp,_2scomp:function(){for(var n=this.buffer,e=this.offset,t=1,i=e+7;i>=e;i--){var r=(n[i]^255)+t;n[i]=r&255,t=r>>8}},setValue:function(n,e){var t=!1;if(arguments.length==1)if(typeof n=="number"){if(t=n<0,n=Math.abs(n),e=n%ZR,n=n/ZR,n>ZR)throw new RangeError(n+" is outside Int64 range");n=n|0}else if(typeof n=="string")n=(n+"").replace(/^0x/,""),e=n.substr(-8),n=n.length>8?n.substr(0,n.length-8):"",n=parseInt(n,16),e=parseInt(e,16);else throw new Error(n+" must be a Number or String");for(var i=this.buffer,r=this.offset,o=7;o>=0;o--)i[r+o]=e&255,e=o==4?n:e>>>8;t&&this._2scomp()},toNumber:function(n){for(var e=this.buffer,t=this.offset,i=e[t]&128,r=0,o=1,s=7,a=1;s>=0;s--,a*=256){var l=e[t+s];i&&(l=(l^255)+o,o=l>>8,l=l&255),r+=l*a}return!n&&r>=Yp.MAX_INT?i?-1/0:1/0:i?-r:r},valueOf:function(){return this.toNumber(!1)},toString:function(n){return this.valueOf().toString(n||10)},toOctetString:function(n){for(var e=new Array(8),t=this.buffer,i=this.offset,r=0;r<8;r++)e[r]=VJ[t[i+r]];return e.join(n||"")},toBuffer:function(n){if(n&&this.offset===0)return this.buffer;var e=new Buffer(8);return this.buffer.copy(e,0,this.offset,this.offset+8),e},copy:function(n,e){this.buffer.copy(n,e||0,this.offset,this.offset+8)},compare:function(n){if((this.buffer[this.offset]&128)!=(n.buffer[n.offset]&128))return n.buffer[n.offset]-this.buffer[this.offset];for(var e=0;e<8;e++)if(this.buffer[this.offset+e]!==n.buffer[n.offset+e])return this.buffer[this.offset+e]-n.buffer[n.offset+e];return 0},equals:function(n){return this.compare(n)===0},inspect:function(){return"[Int64 value:"+this+" octets:"+this.toOctetString(" ")+"]"}}});var d$=y(Jp=>{var n$=require("events").EventEmitter,$be=require("util"),Ube=require("os"),_Me=require("assert"),Zp=t$(),Fa=Ube.endianness()=="BE";function r$(n){return Math.pow(2,Math.ceil(Math.log(n)/Math.LN2))}function Ti(n){this.buf=Buffer.alloc(r$(n||8192)),this.readOffset=0,this.writeOffset=0}Jp.Accumulator=Ti;Ti.prototype.writeAvail=function(){return this.buf.length-this.writeOffset};Ti.prototype.readAvail=function(){return this.writeOffset-this.readOffset};Ti.prototype.reserve=function(n){if(!(n<this.writeAvail())&&(this.readOffset>0&&(this.buf.copy(this.buf,0,this.readOffset,this.writeOffset),this.writeOffset-=this.readOffset,this.readOffset=0),!(n<this.writeAvail()))){var e=Buffer.alloc(r$(this.buf.length+n-this.writeAvail()));this.buf.copy(e),this.buf=e}};Ti.prototype.append=function(n){if(Buffer.isBuffer(n))this.reserve(n.length),n.copy(this.buf,this.writeOffset,0,n.length),this.writeOffset+=n.length;else{var e=Buffer.byteLength(n);this.reserve(e),this.buf.write(n,this.writeOffset),this.writeOffset+=e}};Ti.prototype.assertReadableSize=function(n){if(this.readAvail()<n)throw new Error("wanted to read "+n+" bytes but only have "+this.readAvail())};Ti.prototype.peekString=function(n){return this.assertReadableSize(n),this.buf.toString("utf-8",this.readOffset,this.readOffset+n)};Ti.prototype.readString=function(n){var e=this.peekString(n);return this.readOffset+=n,e};Ti.prototype.peekInt=function(n){switch(this.assertReadableSize(n),n){case 1:return this.buf.readInt8(this.readOffset,n);case 2:return Fa?this.buf.readInt16BE(this.readOffset,n):this.buf.readInt16LE(this.readOffset,n);case 4:return Fa?this.buf.readInt32BE(this.readOffset,n):this.buf.readInt32LE(this.readOffset,n);case 8:var e=this.buf.slice(this.readOffset,this.readOffset+8);return Fa?new Zp(e):new Zp(c$(e));default:throw new Error("invalid integer size "+n)}};Ti.prototype.readInt=function(n){var e=this.peekInt(n);return e instanceof Zp&&isFinite(e.valueOf())&&(e=e.valueOf()),this.readOffset+=n,e};Ti.prototype.peekDouble=function(){return this.assertReadableSize(8),Fa?this.buf.readDoubleBE(this.readOffset):this.buf.readDoubleLE(this.readOffset)};Ti.prototype.readDouble=function(){var n=this.peekDouble();return this.readOffset+=8,n};Ti.prototype.readAdvance=function(n){if(n>0)this.assertReadableSize(n);else if(n<0&&this.readOffset+n<0)throw new Error("advance with negative offset "+n+" would seek off the start of the buffer");this.readOffset+=n};Ti.prototype.writeByte=function(n){this.reserve(1),this.buf.writeInt8(n,this.writeOffset),++this.writeOffset};Ti.prototype.writeInt=function(n,e){switch(this.reserve(e),e){case 1:this.buf.writeInt8(n,this.writeOffset);break;case 2:Fa?this.buf.writeInt16BE(n,this.writeOffset):this.buf.writeInt16LE(n,this.writeOffset);break;case 4:Fa?this.buf.writeInt32BE(n,this.writeOffset):this.buf.writeInt32LE(n,this.writeOffset);break;default:throw new Error("unsupported integer size "+e)}this.writeOffset+=e};Ti.prototype.writeDouble=function(n){this.reserve(8),Fa?this.buf.writeDoubleBE(n,this.writeOffset):this.buf.writeDoubleLE(n,this.writeOffset),this.writeOffset+=8};var $R=0,UR=1,XR=2,GR=3,zR=4,vx=5,yx=6,o$=7,s$=8,a$=9,l$=10,u$=11,Xbe=12,JR=0,i$=1,Gbe=127,zbe=32767,Kbe=2147483647;function Mn(){n$.call(this),this.buf=new Ti,this.state=JR}$be.inherits(Mn,n$);Jp.BunserBuf=Mn;Mn.prototype.append=function(n,e){if(e)return this.buf.append(n),this.process(e);try{this.buf.append(n)}catch(t){this.emit("error",t);return}this.processLater()};Mn.prototype.processLater=function(){var n=this;process.nextTick(function(){try{n.process(!1)}catch(e){n.emit("error",e)}})};Mn.prototype.process=function(n){if(this.state==JR){if(this.buf.readAvail()<2)return;if(this.expectCode(0),this.expectCode(1),this.pduLen=this.decodeInt(!0),this.pduLen===!1){this.buf.readAdvance(-2);return}this.buf.reserve(this.pduLen),this.state=i$}if(this.state==i$){if(this.buf.readAvail()<this.pduLen)return;var e=this.decodeAny();if(n)return e;this.emit("value",e),this.state=JR}!n&&this.buf.readAvail()>0&&this.processLater()};Mn.prototype.raise=function(n){throw new Error(n+", in Buffer of length "+this.buf.buf.length+" ("+this.buf.readAvail()+" readable) at offset "+this.buf.readOffset+" buffer: "+JSON.stringify(this.buf.buf.slice(this.buf.readOffset,this.buf.readOffset+32).toJSON()))};Mn.prototype.expectCode=function(n){var e=this.buf.readInt(1);e!=n&&this.raise("expected bser opcode "+n+" but got "+e)};Mn.prototype.decodeAny=function(){var n=this.buf.peekInt(1);switch(n){case GR:case zR:case vx:case yx:return this.decodeInt();case o$:return this.buf.readAdvance(1),this.buf.readDouble();case s$:return this.buf.readAdvance(1),!0;case a$:return this.buf.readAdvance(1),!1;case l$:return this.buf.readAdvance(1),null;case XR:return this.decodeString();case $R:return this.decodeArray();case UR:return this.decodeObject();case u$:return this.decodeTemplate();default:this.raise("unhandled bser opcode "+n)}};Mn.prototype.decodeArray=function(){this.expectCode($R);for(var n=this.decodeInt(),e=[],t=0;t<n;++t)e.push(this.decodeAny());return e};Mn.prototype.decodeObject=function(){this.expectCode(UR);for(var n=this.decodeInt(),e={},t=0;t<n;++t){var i=this.decodeString(),r=this.decodeAny();e[i]=r}return e};Mn.prototype.decodeTemplate=function(){this.expectCode(u$);for(var n=this.decodeArray(),e=this.decodeInt(),t=[],i=0;i<e;++i){for(var r={},o=0;o<n.length;++o){if(this.buf.peekInt(1)==Xbe){this.buf.readAdvance(1);continue}var s=this.decodeAny();r[n[o]]=s}t.push(r)}return t};Mn.prototype.decodeString=function(){this.expectCode(XR);var n=this.decodeInt();return this.buf.readString(n)};Mn.prototype.decodeInt=function(n){if(n&&this.buf.readAvail()<1)return!1;this.buf.assertReadableSize(1);var e=this.buf.peekInt(1),t=0;switch(e){case GR:t=1;break;case zR:t=2;break;case vx:t=4;break;case yx:t=8;break;default:this.raise("invalid bser int encoding "+e)}return n&&this.buf.readAvail()<1+t?!1:(this.buf.readAdvance(1),this.buf.readInt(t))};function Qbe(n){var e=new Mn,t=e.append(n,!0);if(e.buf.readAvail())throw Error("excess data found after input buffer, use BunserBuf instead");if(typeof t>"u")throw Error("no bser found in string and no error raised!?");return t}Jp.loadFromBuffer=Qbe;function c$(n){for(var e=Buffer.alloc(n.length),t=0;t<n.length;t++)e[t]=n[n.length-1-t];return e}function h$(n,e){var t=e.toBuffer();if(Fa){n.writeByte(yx),n.append(t);return}var i=c$(t);n.writeByte(yx),n.append(i)}function mx(n,e){var t=Math.abs(e);t<=Gbe?(n.writeByte(GR),n.writeInt(e,1)):t<=zbe?(n.writeByte(zR),n.writeInt(e,2)):t<=Kbe?(n.writeByte(vx),n.writeInt(e,4)):h$(n,new Zp(e))}function bx(n,e){switch(typeof e){case"number":isFinite(e)&&Math.floor(e)===e?mx(n,e):(n.writeByte(o$),n.writeDouble(e));return;case"string":n.writeByte(XR),mx(n,Buffer.byteLength(e)),n.append(e);return;case"boolean":n.writeByte(e?s$:a$);return;case"object":if(e===null){n.writeByte(l$);return}if(e instanceof Zp){h$(n,e);return}if(Array.isArray(e)){n.writeByte($R),mx(n,e.length);for(var t=0;t<e.length;++t)bx(n,e[t]);return}n.writeByte(UR);for(var i=Object.keys(e),r=i.length,t=0;t<i.length;++t){var o=i[t],s=e[o];typeof s>"u"&&r--}mx(n,r);for(var t=0;t<i.length;++t){var o=i[t],s=e[o];if(!(typeof s>"u")){bx(n,o);try{bx(n,s)}catch(c){throw new Error(c.message+" (while serializing object property with name `"+o+"')")}}}return;default:throw new Error("cannot serialize type "+typeof e+" to BSER")}}function Vbe(n){var e=new Ti;e.writeByte(0),e.writeByte(1),e.writeByte(vx),e.writeInt(0,4),bx(e,n);var t=e.writeOffset,i=t-7;return e.writeOffset=3,e.writeInt(i,4),e.writeOffset=t,e.buf.slice(0,t)}Jp.dumpToBuffer=Vbe});var v$=y((IMe,y$)=>{"use strict";var eye=require("net"),m$=require("events").EventEmitter,tye=require("util"),iye=require("child_process"),b$=d$(),g$=["subscription","log"];function bs(n){var e=this;m$.call(this),this.watchmanBinaryPath="watchman",n&&n.watchmanBinaryPath&&(this.watchmanBinaryPath=n.watchmanBinaryPath.trim()),this.commands=[]}tye.inherits(bs,m$);y$.exports.Client=bs;bs.prototype.sendNextCommand=function(){this.currentCommand||(this.currentCommand=this.commands.shift(),this.currentCommand&&this.socket.write(b$.dumpToBuffer(this.currentCommand.cmd)))};bs.prototype.cancelCommands=function(n){var e=new Error(n),t=this.commands;this.commands=[],this.currentCommand&&(t.unshift(this.currentCommand),this.currentCommand=null),t.forEach(function(i){i.cb(e)})};bs.prototype.connect=function(){var n=this;function e(l){n.bunser=new b$.BunserBuf,n.bunser.on("value",function(u){for(var c=!1,h=0;h<g$.length;h++){var d=g$[h];d in u&&(c=d)}if(c)n.emit(c,u);else if(n.currentCommand){var g=n.currentCommand;if(n.currentCommand=null,"error"in u){var p=new Error(u.error);p.watchmanResponse=u,g.cb(p)}else g.cb(null,u)}n.sendNextCommand()}),n.bunser.on("error",function(u){n.emit("error",u)}),n.socket=eye.createConnection(l),n.socket.on("connect",function(){n.connecting=!1,n.emit("connect"),n.sendNextCommand()}),n.socket.on("error",function(u){n.connecting=!1,n.emit("error",u)}),n.socket.on("data",function(u){n.bunser&&n.bunser.append(u)}),n.socket.on("end",function(){n.socket=null,n.bunser=null,n.cancelCommands("The watchman connection was closed"),n.emit("end")})}if(process.env.WATCHMAN_SOCK){e(process.env.WATCHMAN_SOCK);return}var t=["--no-pretty","get-sockname"],i=null,r=!1;function o(l){r||(r=!0,l.errno==="EACCES"?l.message="The Watchman CLI is installed but cannot be spawned because of a permission problem":l.errno==="ENOENT"&&(l.message="Watchman was not found in PATH. See https://facebook.github.io/watchman/docs/install.html for installation instructions"),console.error("Watchman: ",l.message),n.emit("error",l))}try{i=iye.spawn(this.watchmanBinaryPath,t,{stdio:["ignore","pipe","pipe"]})}catch(l){o(l);return}var s=[],a=[];i.stdout.on("data",function(l){s.push(l)}),i.stderr.on("data",function(l){l=l.toString("utf8"),a.push(l),console.error(l)}),i.on("error",function(l){o(l)}),i.on("close",function(l,u){if(l!==0){o(new Error(n.watchmanBinaryPath+" "+t.join(" ")+" returned with exit code="+l+", signal="+u+", stderr= "+a.join("")));return}try{var c=JSON.parse(s.join(""));if("error"in c){var h=new Error(c.error);h.watchmanResponse=c,n.emit("error",h);return}e(c.sockname)}catch(d){n.emit("error",d)}})};bs.prototype.command=function(n,e){if(e=e||function(){},this.commands.push({cmd:n,cb:e}),!this.socket){if(!this.connecting){this.connecting=!0,this.connect();return}return}this.sendNextCommand()};var p$={"cmd-watch-del-all":"3.1.1","cmd-watch-project":"3.1",relative_root:"3.3","term-dirname":"3.1","term-idirname":"3.1",wildmatch:"3.7"};function nye(n,e){n=n.split("."),e=e.split(".");for(var t=0;t<3;t++){var i=parseInt(n[t]||"0")-parseInt(e[t]||"0");if(i!=0)return i}return 0}function f$(n,e){return e in p$?nye(n,p$[e])>=0:!1}bs.prototype._synthesizeCapabilityCheck=function(n,e,t){n.capabilities={};var i=n.version;return e.forEach(function(r){n.capabilities[r]=f$(i,r)}),t.forEach(function(r){var o=f$(i,r);n.capabilities[r]=o,o||(n.error="client required capability `"+r+"` is not supported by this server")}),n};bs.prototype.capabilityCheck=function(n,e){var t=n.optional||[],i=n.required||[],r=this;this.command(["version",{optional:t,required:i}],function(o,s){if(o){e(o);return}if(!("capabilities"in s)&&(s=r._synthesizeCapabilityCheck(s,t,i),s.error)){o=new Error(s.error),o.watchmanResponse=s,e(o);return}e(null,s)})};bs.prototype.end=function(){this.cancelCommands("The client was ended"),this.socket&&(this.socket.end(),this.socket=null),this.bunser=null}});function oye(n){return!(n=="/"||n=="/tmp"||n=="/private/tmp"||Ye(n,QR.default.homedir(),!0)||wx.default.parse(n).base==n||n.startsWith("/tmp/")||n.startsWith("/private/tmp/")||Ye(QR.default.tmpdir(),n,!0))}var w$,x$,QR,wx,KR,rye,ys,VR=k(()=>{"use strict";w$=S(v$()),x$=S(Lo()),QR=S(require("os")),wx=S(require("path"));qe();$e();KR=q()("core-watchman"),rye=["relative_root","cmd-watch-project","wildmatch","field-new"],ys=class{constructor(e,t){this.channel=t;this._disposed=!1;this.client=new w$.default.Client({watchmanBinaryPath:e}),this.client.setMaxListeners(300)}checkCapability(){let{client:e}=this;return new Promise((t,i)=>{e.capabilityCheck({optional:[],required:rye},(r,o)=>{if(r)return t(!1);let{capabilities:s}=o;for(let a of Object.keys(s))if(!s[a])return t(!1);t(!0)})})}async watchProject(e){let t=await this.command(["watch-project",e]),{watch:i,warning:r,relative_path:o}=t;return i?(r&&KR.warn(r),this.watch=i,this.relative_path=o,KR.info(`watchman watching project: ${e}`),this.appendOutput(`watchman watching project: ${e}`),!0):!1}command(e){return new Promise((t,i)=>{this.client.command(e,(r,o)=>{if(r)return i(r);t(o)})})}async subscribe(e,t){let{watch:i,relative_path:r}=this;if(!i)throw new Error("watchman not watching");let{clock:o}=await this.command(["clock",i]),s=ps(),a={expression:["allof",["match","**/*","wholename"]],fields:["name","size","new","exists","type","mtime_ms","ctime_ms"],since:o},l=i;r&&(a.relative_root=r,l=wx.default.join(i,r));let{subscribe:u}=await this.command(["subscribe",i,s,a]);return this.appendOutput(`subscribing "${e}" in ${l}`),this.client.on("subscription",c=>{if(!c||c.subscription!=s)return;let{files:h}=c;if(!h||(h=h.filter(g=>g.type=="f"&&(0,x$.default)(g.name,e,{dot:!0})),!h.length))return;let d=Object.assign({},c);this.relative_path&&(d.root=wx.default.resolve(c.root,this.relative_path)),this.appendOutput(`file change detected: ${JSON.stringify(d,null,2)}`),t(d)}),{dispose:()=>{this.unsubscribe(u)},subscribe:u}}unsubscribe(e){if(this._disposed)return Promise.resolve();let{watch:t}=this;if(!!t)return this.appendOutput(`unsubscribe "${e}" in: ${t}`),this.command(["unsubscribe",t,e]).catch(i=>{var r;(r=i.message)!=null&&r.includes("The client was ended")&&KR.error(i)})}dispose(){this._disposed||(this._disposed=!0,this.client&&(this.client.removeAllListeners(),this.client.end(),this.client=void 0))}appendOutput(e,t="Info"){this.channel&&this.channel.appendLine(`[${t} - ${new Date().toLocaleTimeString()}] ${e}`)}static async createClient(e,t,i){if(!oye(t))throw new Error(`Watch for ${t} is ignored`);let r;try{if(r=new ys(e,i),!await r.checkCapability())throw new Error("required capabilities do not exist.");if(!await r.watchProject(t))throw new Error("unable to watch");return r}catch(o){throw r&&r.dispose(),o}}}});var e_,ja,Ch,$Me,$p,Sh,t_,C$=k(()=>{"use strict";e_=S(Lo()),ja=S(require("path")),Ch=S(W());Pe();re();nt();$e();VR();$Me=q()("filesystem-watcher"),$p=class{constructor(e,t){this.workspaceFolder=e;this.watchmanPath=t;this.clientsMap=new Map;this.disposables=[];this.creating=new Set;this._onDidCreateClient=new Ch.Emitter;this.onDidCreateClient=this._onDidCreateClient.event}attach(e){this.channel=e;let t=i=>{let r=j.parse(i.uri).fsPath;this.createClient(r)};this.workspaceFolder.workspaceFolders.forEach(i=>{t(i)}),this.workspaceFolder.onDidChangeWorkspaceFolders(i=>{i.added.forEach(r=>{t(r)}),i.removed.forEach(r=>{let o=j.parse(r.uri).fsPath,s=this.clientsMap.get(o);s&&(this.clientsMap.delete(o),s.dispose())})},null,this.disposables)}waitClient(e){return this.clientsMap.has(e)?Promise.resolve():new Promise(t=>{let i=this.onDidCreateClient(r=>{r==e&&(i.dispose(),t())})})}async createClient(e){if(!(this.watchmanPath==null||this.has(e)))try{this.creating.add(e);let t=await ys.createClient(this.watchmanPath,e,this.channel);this.creating.delete(e),this.clientsMap.set(e,t);for(let i of $p.watchers)i.listen(e,t);this._onDidCreateClient.fire(e)}catch(t){this.creating.delete(e),this.channel&&this.channel.appendLine("Error on create watchman client:"+(t instanceof Error?t.message:t))}}has(e){let t=Array.from(this.clientsMap.keys());return t.push(...this.creating),t.some(i=>ni(i,e))}createFileSystemWatcher(e,t,i,r){let o=new t_(e,t,i,r),s=typeof e=="string"?void 0:e.baseUri.fsPath;for(let[a,l]of this.clientsMap.entries())s&&Ye(a,s,!0)&&(s=void 0),o.listen(a,l);return s&&this.createClient(s),$p.watchers.add(o),o}dispose(){this._onDidCreateClient.dispose();for(let e of this.clientsMap.values())e&&e.dispose();this.clientsMap.clear(),$p.watchers.clear(),U(this.disposables)}},Sh=$p;Sh.watchers=new Set;t_=class{constructor(e,t,i,r){this.globPattern=e;this.ignoreCreateEvents=t;this.ignoreChangeEvents=i;this.ignoreDeleteEvents=r;this._onDidCreate=new Ch.Emitter;this._onDidChange=new Ch.Emitter;this._onDidDelete=new Ch.Emitter;this._onDidRename=new Ch.Emitter;this.disposables=[];this._disposed=!1;this.onDidCreate=this._onDidCreate.event;this.onDidChange=this._onDidChange.event;this.onDidDelete=this._onDidDelete.event;this.onDidRename=this._onDidRename.event}listen(e,t){let{globPattern:i,ignoreCreateEvents:r,ignoreChangeEvents:o,ignoreDeleteEvents:s}=this,a,l;if(typeof i=="string")a=i;else if(a=i.pattern,l=i.baseUri.fsPath,!Ye(e,l,!0))return;let u=c=>{let{root:h,files:d}=c;l&&!ni(h,l)?d=d.filter(g=>{if(g.type!="f")return!1;let p=ja.default.join(h,g.name);return Ye(l,p)?(0,e_.default)(ja.default.relative(l,p),a,{dot:!0}):!1}):d=d.filter(g=>g.type=="f"&&(0,e_.default)(g.name,a,{dot:!0}));for(let g of d){let p=j.file(ja.default.join(h,g.name));g.exists?g.new===!0?r||this._onDidCreate.fire(p):o||this._onDidChange.fire(p):s||this._onDidDelete.fire(p)}if(d.length==2&&d[0].exists!==d[1].exists){let g=d.find(f=>f.exists!==!0),p=d.find(f=>f.exists===!0);g.size==p.size&&this._onDidRename.fire({oldUri:j.file(ja.default.join(h,g.name)),newUri:j.file(ja.default.join(h,p.name))})}if(d.length>2&&d.length%2==0){let[g,p]=gw(d,f=>f.exists===!1);if(g.length==p.length)for(let f of g){let m=p.find(b=>b.size==f.size&&b.mtime_ms==f.mtime_ms);m&&this._onDidRename.fire({oldUri:j.file(ja.default.join(h,f.name)),newUri:j.file(ja.default.join(h,m.name))})}}};t.subscribe(a,u).then(c=>{if(this.subscribe=c.subscribe,this._disposed)return c.dispose();this.disposables.push(c)}).logError()}dispose(){this._disposed=!0,Sh.watchers.delete(this),this._onDidRename.dispose(),this._onDidCreate.dispose(),this._onDidChange.dispose(),U(this.disposables)}}});var Up=y((XMe,S$)=>{var sye="2.0.0",aye=Number.MAX_SAFE_INTEGER||9007199254740991,lye=16;S$.exports={SEMVER_SPEC_VERSION:sye,MAX_LENGTH:256,MAX_SAFE_INTEGER:aye,MAX_SAFE_COMPONENT_LENGTH:lye}});var Xp=y((GMe,D$)=>{var uye=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...n)=>console.error("SEMVER",...n):()=>{};D$.exports=uye});var tu=y((Ma,T$)=>{var{MAX_SAFE_COMPONENT_LENGTH:i_}=Up(),cye=Xp();Ma=T$.exports={};var hye=Ma.re=[],ae=Ma.src=[],le=Ma.t={},dye=0,Oe=(n,e,t)=>{let i=dye++;cye(n,i,e),le[n]=i,ae[i]=e,hye[i]=new RegExp(e,t?"g":void 0)};Oe("NUMERICIDENTIFIER","0|[1-9]\\d*");Oe("NUMERICIDENTIFIERLOOSE","[0-9]+");Oe("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");Oe("MAINVERSION",`(${ae[le.NUMERICIDENTIFIER]})\\.(${ae[le.NUMERICIDENTIFIER]})\\.(${ae[le.NUMERICIDENTIFIER]})`);Oe("MAINVERSIONLOOSE",`(${ae[le.NUMERICIDENTIFIERLOOSE]})\\.(${ae[le.NUMERICIDENTIFIERLOOSE]})\\.(${ae[le.NUMERICIDENTIFIERLOOSE]})`);Oe("PRERELEASEIDENTIFIER",`(?:${ae[le.NUMERICIDENTIFIER]}|${ae[le.NONNUMERICIDENTIFIER]})`);Oe("PRERELEASEIDENTIFIERLOOSE",`(?:${ae[le.NUMERICIDENTIFIERLOOSE]}|${ae[le.NONNUMERICIDENTIFIER]})`);Oe("PRERELEASE",`(?:-(${ae[le.PRERELEASEIDENTIFIER]}(?:\\.${ae[le.PRERELEASEIDENTIFIER]})*))`);Oe("PRERELEASELOOSE",`(?:-?(${ae[le.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${ae[le.PRERELEASEIDENTIFIERLOOSE]})*))`);Oe("BUILDIDENTIFIER","[0-9A-Za-z-]+");Oe("BUILD",`(?:\\+(${ae[le.BUILDIDENTIFIER]}(?:\\.${ae[le.BUILDIDENTIFIER]})*))`);Oe("FULLPLAIN",`v?${ae[le.MAINVERSION]}${ae[le.PRERELEASE]}?${ae[le.BUILD]}?`);Oe("FULL",`^${ae[le.FULLPLAIN]}$`);Oe("LOOSEPLAIN",`[v=\\s]*${ae[le.MAINVERSIONLOOSE]}${ae[le.PRERELEASELOOSE]}?${ae[le.BUILD]}?`);Oe("LOOSE",`^${ae[le.LOOSEPLAIN]}$`);Oe("GTLT","((?:<|>)?=?)");Oe("XRANGEIDENTIFIERLOOSE",`${ae[le.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);Oe("XRANGEIDENTIFIER",`${ae[le.NUMERICIDENTIFIER]}|x|X|\\*`);Oe("XRANGEPLAIN",`[v=\\s]*(${ae[le.XRANGEIDENTIFIER]})(?:\\.(${ae[le.XRANGEIDENTIFIER]})(?:\\.(${ae[le.XRANGEIDENTIFIER]})(?:${ae[le.PRERELEASE]})?${ae[le.BUILD]}?)?)?`);Oe("XRANGEPLAINLOOSE",`[v=\\s]*(${ae[le.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ae[le.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ae[le.XRANGEIDENTIFIERLOOSE]})(?:${ae[le.PRERELEASELOOSE]})?${ae[le.BUILD]}?)?)?`);Oe("XRANGE",`^${ae[le.GTLT]}\\s*${ae[le.XRANGEPLAIN]}$`);Oe("XRANGELOOSE",`^${ae[le.GTLT]}\\s*${ae[le.XRANGEPLAINLOOSE]}$`);Oe("COERCE",`(^|[^\\d])(\\d{1,${i_}})(?:\\.(\\d{1,${i_}}))?(?:\\.(\\d{1,${i_}}))?(?:$|[^\\d])`);Oe("COERCERTL",ae[le.COERCE],!0);Oe("LONETILDE","(?:~>?)");Oe("TILDETRIM",`(\\s*)${ae[le.LONETILDE]}\\s+`,!0);Ma.tildeTrimReplace="$1~";Oe("TILDE",`^${ae[le.LONETILDE]}${ae[le.XRANGEPLAIN]}$`);Oe("TILDELOOSE",`^${ae[le.LONETILDE]}${ae[le.XRANGEPLAINLOOSE]}$`);Oe("LONECARET","(?:\\^)");Oe("CARETTRIM",`(\\s*)${ae[le.LONECARET]}\\s+`,!0);Ma.caretTrimReplace="$1^";Oe("CARET",`^${ae[le.LONECARET]}${ae[le.XRANGEPLAIN]}$`);Oe("CARETLOOSE",`^${ae[le.LONECARET]}${ae[le.XRANGEPLAINLOOSE]}$`);Oe("COMPARATORLOOSE",`^${ae[le.GTLT]}\\s*(${ae[le.LOOSEPLAIN]})$|^$`);Oe("COMPARATOR",`^${ae[le.GTLT]}\\s*(${ae[le.FULLPLAIN]})$|^$`);Oe("COMPARATORTRIM",`(\\s*)${ae[le.GTLT]}\\s*(${ae[le.LOOSEPLAIN]}|${ae[le.XRANGEPLAIN]})`,!0);Ma.comparatorTrimReplace="$1$2$3";Oe("HYPHENRANGE",`^\\s*(${ae[le.XRANGEPLAIN]})\\s+-\\s+(${ae[le.XRANGEPLAIN]})\\s*$`);Oe("HYPHENRANGELOOSE",`^\\s*(${ae[le.XRANGEPLAINLOOSE]})\\s+-\\s+(${ae[le.XRANGEPLAINLOOSE]})\\s*$`);Oe("STAR","(<|>)?=?\\s*\\*");Oe("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");Oe("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var Gp=y((zMe,k$)=>{var gye=["includePrerelease","loose","rtl"],pye=n=>n?typeof n!="object"?{loose:!0}:gye.filter(e=>n[e]).reduce((e,t)=>(e[t]=!0,e),{}):{};k$.exports=pye});var xx=y((KMe,R$)=>{var P$=/^[0-9]+$/,E$=(n,e)=>{let t=P$.test(n),i=P$.test(e);return t&&i&&(n=+n,e=+e),n===e?0:t&&!i?-1:i&&!t?1:n<e?-1:1},fye=(n,e)=>E$(e,n);R$.exports={compareIdentifiers:E$,rcompareIdentifiers:fye}});var Qi=y((QMe,F$)=>{var Cx=Xp(),{MAX_LENGTH:_$,MAX_SAFE_INTEGER:Sx}=Up(),{re:L$,t:I$}=tu(),mye=Gp(),{compareIdentifiers:Dh}=xx(),tr=class{constructor(e,t){if(t=mye(t),e instanceof tr){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid Version: ${e}`);if(e.length>_$)throw new TypeError(`version is longer than ${_$} characters`);Cx("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let i=e.trim().match(t.loose?L$[I$.LOOSE]:L$[I$.FULL]);if(!i)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>Sx||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Sx||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Sx||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map(r=>{if(/^[0-9]+$/.test(r)){let o=+r;if(o>=0&&o<Sx)return o}return r}):this.prerelease=[],this.build=i[5]?i[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(Cx("SemVer.compare",this.version,this.options,e),!(e instanceof tr)){if(typeof e=="string"&&e===this.version)return 0;e=new tr(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof tr||(e=new tr(e,this.options)),Dh(this.major,e.major)||Dh(this.minor,e.minor)||Dh(this.patch,e.patch)}comparePre(e){if(e instanceof tr||(e=new tr(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{let i=this.prerelease[t],r=e.prerelease[t];if(Cx("prerelease compare",t,i,r),i===void 0&&r===void 0)return 0;if(r===void 0)return 1;if(i===void 0)return-1;if(i===r)continue;return Dh(i,r)}while(++t)}compareBuild(e){e instanceof tr||(e=new tr(e,this.options));let t=0;do{let i=this.build[t],r=e.build[t];if(Cx("prerelease compare",t,i,r),i===void 0&&r===void 0)return 0;if(r===void 0)return 1;if(i===void 0)return-1;if(i===r)continue;return Dh(i,r)}while(++t)}inc(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",t),this.inc("pre",t);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{let i=this.prerelease.length;for(;--i>=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);i===-1&&this.prerelease.push(0)}t&&(Dh(this.prerelease[0],t)===0?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}};F$.exports=tr});var iu=y((VMe,A$)=>{var{MAX_LENGTH:bye}=Up(),{re:j$,t:M$}=tu(),O$=Qi(),yye=Gp(),vye=(n,e)=>{if(e=yye(e),n instanceof O$)return n;if(typeof n!="string"||n.length>bye||!(e.loose?j$[M$.LOOSE]:j$[M$.FULL]).test(n))return null;try{return new O$(n,e)}catch{return null}};A$.exports=vye});var H$=y((eOe,N$)=>{var wye=iu(),xye=(n,e)=>{let t=wye(n,e);return t?t.version:null};N$.exports=xye});var B$=y((tOe,q$)=>{var Cye=iu(),Sye=(n,e)=>{let t=Cye(n.trim().replace(/^[=v]+/,""),e);return t?t.version:null};q$.exports=Sye});var Z$=y((iOe,Y$)=>{var W$=Qi(),Dye=(n,e,t,i)=>{typeof t=="string"&&(i=t,t=void 0);try{return new W$(n instanceof W$?n.version:n,t).inc(e,i).version}catch{return null}};Y$.exports=Dye});var Tr=y((nOe,$$)=>{var J$=Qi(),Tye=(n,e,t)=>new J$(n,t).compare(new J$(e,t));$$.exports=Tye});var Dx=y((rOe,U$)=>{var kye=Tr(),Pye=(n,e,t)=>kye(n,e,t)===0;U$.exports=Pye});var z$=y((oOe,G$)=>{var X$=iu(),Eye=Dx(),Rye=(n,e)=>{if(Eye(n,e))return null;{let t=X$(n),i=X$(e),r=t.prerelease.length||i.prerelease.length,o=r?"pre":"",s=r?"prerelease":"";for(let a in t)if((a==="major"||a==="minor"||a==="patch")&&t[a]!==i[a])return o+a;return s}};G$.exports=Rye});var Q$=y((sOe,K$)=>{var _ye=Qi(),Lye=(n,e)=>new _ye(n,e).major;K$.exports=Lye});var eU=y((aOe,V$)=>{var Iye=Qi(),Fye=(n,e)=>new Iye(n,e).minor;V$.exports=Fye});var iU=y((lOe,tU)=>{var jye=Qi(),Mye=(n,e)=>new jye(n,e).patch;tU.exports=Mye});var rU=y((uOe,nU)=>{var Oye=iu(),Aye=(n,e)=>{let t=Oye(n,e);return t&&t.prerelease.length?t.prerelease:null};nU.exports=Aye});var sU=y((cOe,oU)=>{var Nye=Tr(),Hye=(n,e,t)=>Nye(e,n,t);oU.exports=Hye});var lU=y((hOe,aU)=>{var qye=Tr(),Bye=(n,e)=>qye(n,e,!0);aU.exports=Bye});var Tx=y((dOe,cU)=>{var uU=Qi(),Wye=(n,e,t)=>{let i=new uU(n,t),r=new uU(e,t);return i.compare(r)||i.compareBuild(r)};cU.exports=Wye});var dU=y((gOe,hU)=>{var Yye=Tx(),Zye=(n,e)=>n.sort((t,i)=>Yye(t,i,e));hU.exports=Zye});var pU=y((pOe,gU)=>{var Jye=Tx(),$ye=(n,e)=>n.sort((t,i)=>Jye(i,t,e));gU.exports=$ye});var zp=y((fOe,fU)=>{var Uye=Tr(),Xye=(n,e,t)=>Uye(n,e,t)>0;fU.exports=Xye});var kx=y((mOe,mU)=>{var Gye=Tr(),zye=(n,e,t)=>Gye(n,e,t)<0;mU.exports=zye});var n_=y((bOe,bU)=>{var Kye=Tr(),Qye=(n,e,t)=>Kye(n,e,t)!==0;bU.exports=Qye});var Px=y((yOe,yU)=>{var Vye=Tr(),eve=(n,e,t)=>Vye(n,e,t)>=0;yU.exports=eve});var Ex=y((vOe,vU)=>{var tve=Tr(),ive=(n,e,t)=>tve(n,e,t)<=0;vU.exports=ive});var r_=y((wOe,wU)=>{var nve=Dx(),rve=n_(),ove=zp(),sve=Px(),ave=kx(),lve=Ex(),uve=(n,e,t,i)=>{switch(e){case"===":return typeof n=="object"&&(n=n.version),typeof t=="object"&&(t=t.version),n===t;case"!==":return typeof n=="object"&&(n=n.version),typeof t=="object"&&(t=t.version),n!==t;case"":case"=":case"==":return nve(n,t,i);case"!=":return rve(n,t,i);case">":return ove(n,t,i);case">=":return sve(n,t,i);case"<":return ave(n,t,i);case"<=":return lve(n,t,i);default:throw new TypeError(`Invalid operator: ${e}`)}};wU.exports=uve});var CU=y((xOe,xU)=>{var cve=Qi(),hve=iu(),{re:Rx,t:_x}=tu(),dve=(n,e)=>{if(n instanceof cve)return n;if(typeof n=="number"&&(n=String(n)),typeof n!="string")return null;e=e||{};let t=null;if(!e.rtl)t=n.match(Rx[_x.COERCE]);else{let i;for(;(i=Rx[_x.COERCERTL].exec(n))&&(!t||t.index+t[0].length!==n.length);)(!t||i.index+i[0].length!==t.index+t[0].length)&&(t=i),Rx[_x.COERCERTL].lastIndex=i.index+i[1].length+i[2].length;Rx[_x.COERCERTL].lastIndex=-1}return t===null?null:hve(`${t[2]}.${t[3]||"0"}.${t[4]||"0"}`,e)};xU.exports=dve});var DU=y((COe,SU)=>{"use strict";SU.exports=function(n){n.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var Kp=y((SOe,TU)=>{"use strict";TU.exports=ze;ze.Node=nu;ze.create=ze;function ze(n){var e=this;if(e instanceof ze||(e=new ze),e.tail=null,e.head=null,e.length=0,n&&typeof n.forEach=="function")n.forEach(function(r){e.push(r)});else if(arguments.length>0)for(var t=0,i=arguments.length;t<i;t++)e.push(arguments[t]);return e}ze.prototype.removeNode=function(n){if(n.list!==this)throw new Error("removing node which does not belong to this list");var e=n.next,t=n.prev;return e&&(e.prev=t),t&&(t.next=e),n===this.head&&(this.head=e),n===this.tail&&(this.tail=t),n.list.length--,n.next=null,n.prev=null,n.list=null,e};ze.prototype.unshiftNode=function(n){if(n!==this.head){n.list&&n.list.removeNode(n);var e=this.head;n.list=this,n.next=e,e&&(e.prev=n),this.head=n,this.tail||(this.tail=n),this.length++}};ze.prototype.pushNode=function(n){if(n!==this.tail){n.list&&n.list.removeNode(n);var e=this.tail;n.list=this,n.prev=e,e&&(e.next=n),this.tail=n,this.head||(this.head=n),this.length++}};ze.prototype.push=function(){for(var n=0,e=arguments.length;n<e;n++)pve(this,arguments[n]);return this.length};ze.prototype.unshift=function(){for(var n=0,e=arguments.length;n<e;n++)fve(this,arguments[n]);return this.length};ze.prototype.pop=function(){if(!!this.tail){var n=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,n}};ze.prototype.shift=function(){if(!!this.head){var n=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,n}};ze.prototype.forEach=function(n,e){e=e||this;for(var t=this.head,i=0;t!==null;i++)n.call(e,t.value,i,this),t=t.next};ze.prototype.forEachReverse=function(n,e){e=e||this;for(var t=this.tail,i=this.length-1;t!==null;i--)n.call(e,t.value,i,this),t=t.prev};ze.prototype.get=function(n){for(var e=0,t=this.head;t!==null&&e<n;e++)t=t.next;if(e===n&&t!==null)return t.value};ze.prototype.getReverse=function(n){for(var e=0,t=this.tail;t!==null&&e<n;e++)t=t.prev;if(e===n&&t!==null)return t.value};ze.prototype.map=function(n,e){e=e||this;for(var t=new ze,i=this.head;i!==null;)t.push(n.call(e,i.value,this)),i=i.next;return t};ze.prototype.mapReverse=function(n,e){e=e||this;for(var t=new ze,i=this.tail;i!==null;)t.push(n.call(e,i.value,this)),i=i.prev;return t};ze.prototype.reduce=function(n,e){var t,i=this.head;if(arguments.length>1)t=e;else if(this.head)i=this.head.next,t=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var r=0;i!==null;r++)t=n(t,i.value,r),i=i.next;return t};ze.prototype.reduceReverse=function(n,e){var t,i=this.tail;if(arguments.length>1)t=e;else if(this.tail)i=this.tail.prev,t=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var r=this.length-1;i!==null;r--)t=n(t,i.value,r),i=i.prev;return t};ze.prototype.toArray=function(){for(var n=new Array(this.length),e=0,t=this.head;t!==null;e++)n[e]=t.value,t=t.next;return n};ze.prototype.toArrayReverse=function(){for(var n=new Array(this.length),e=0,t=this.tail;t!==null;e++)n[e]=t.value,t=t.prev;return n};ze.prototype.slice=function(n,e){e=e||this.length,e<0&&(e+=this.length),n=n||0,n<0&&(n+=this.length);var t=new ze;if(e<n||e<0)return t;n<0&&(n=0),e>this.length&&(e=this.length);for(var i=0,r=this.head;r!==null&&i<n;i++)r=r.next;for(;r!==null&&i<e;i++,r=r.next)t.push(r.value);return t};ze.prototype.sliceReverse=function(n,e){e=e||this.length,e<0&&(e+=this.length),n=n||0,n<0&&(n+=this.length);var t=new ze;if(e<n||e<0)return t;n<0&&(n=0),e>this.length&&(e=this.length);for(var i=this.length,r=this.tail;r!==null&&i>e;i--)r=r.prev;for(;r!==null&&i>n;i--,r=r.prev)t.push(r.value);return t};ze.prototype.splice=function(n,e,...t){n>this.length&&(n=this.length-1),n<0&&(n=this.length+n);for(var i=0,r=this.head;r!==null&&i<n;i++)r=r.next;for(var o=[],i=0;r&&i<e;i++)o.push(r.value),r=this.removeNode(r);r===null&&(r=this.tail),r!==this.head&&r!==this.tail&&(r=r.prev);for(var i=0;i<t.length;i++)r=gve(this,r,t[i]);return o};ze.prototype.reverse=function(){for(var n=this.head,e=this.tail,t=n;t!==null;t=t.prev){var i=t.prev;t.prev=t.next,t.next=i}return this.head=e,this.tail=n,this};function gve(n,e,t){var i=e===n.head?new nu(t,null,e,n):new nu(t,e,e.next,n);return i.next===null&&(n.tail=i),i.prev===null&&(n.head=i),n.length++,i}function pve(n,e){n.tail=new nu(e,n.tail,null,n),n.head||(n.head=n.tail),n.length++}function fve(n,e){n.head=new nu(e,null,n.head,n),n.tail||(n.tail=n.head),n.length++}function nu(n,e,t,i){if(!(this instanceof nu))return new nu(n,e,t,i);this.list=i,this.value=n,e?(e.next=this,this.prev=e):this.prev=null,t?(t.prev=this,this.next=t):this.next=null}try{DU()(ze)}catch{}});var _U=y((DOe,RU)=>{"use strict";var mve=Kp(),ru=Symbol("max"),ws=Symbol("length"),Th=Symbol("lengthCalculator"),Vp=Symbol("allowStale"),ou=Symbol("maxAge"),vs=Symbol("dispose"),kU=Symbol("noDisposeOnSet"),ki=Symbol("lruList"),ao=Symbol("cache"),EU=Symbol("updateAgeOnGet"),o_=()=>1,a_=class{constructor(e){if(typeof e=="number"&&(e={max:e}),e||(e={}),e.max&&(typeof e.max!="number"||e.max<0))throw new TypeError("max must be a non-negative number");let t=this[ru]=e.max||1/0,i=e.length||o_;if(this[Th]=typeof i!="function"?o_:i,this[Vp]=e.stale||!1,e.maxAge&&typeof e.maxAge!="number")throw new TypeError("maxAge must be a number");this[ou]=e.maxAge||0,this[vs]=e.dispose,this[kU]=e.noDisposeOnSet||!1,this[EU]=e.updateAgeOnGet||!1,this.reset()}set max(e){if(typeof e!="number"||e<0)throw new TypeError("max must be a non-negative number");this[ru]=e||1/0,Qp(this)}get max(){return this[ru]}set allowStale(e){this[Vp]=!!e}get allowStale(){return this[Vp]}set maxAge(e){if(typeof e!="number")throw new TypeError("maxAge must be a non-negative number");this[ou]=e,Qp(this)}get maxAge(){return this[ou]}set lengthCalculator(e){typeof e!="function"&&(e=o_),e!==this[Th]&&(this[Th]=e,this[ws]=0,this[ki].forEach(t=>{t.length=this[Th](t.value,t.key),this[ws]+=t.length})),Qp(this)}get lengthCalculator(){return this[Th]}get length(){return this[ws]}get itemCount(){return this[ki].length}rforEach(e,t){t=t||this;for(let i=this[ki].tail;i!==null;){let r=i.prev;PU(this,e,i,t),i=r}}forEach(e,t){t=t||this;for(let i=this[ki].head;i!==null;){let r=i.next;PU(this,e,i,t),i=r}}keys(){return this[ki].toArray().map(e=>e.key)}values(){return this[ki].toArray().map(e=>e.value)}reset(){this[vs]&&this[ki]&&this[ki].length&&this[ki].forEach(e=>this[vs](e.key,e.value)),this[ao]=new Map,this[ki]=new mve,this[ws]=0}dump(){return this[ki].map(e=>Lx(this,e)?!1:{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[ki]}set(e,t,i){if(i=i||this[ou],i&&typeof i!="number")throw new TypeError("maxAge must be a number");let r=i?Date.now():0,o=this[Th](t,e);if(this[ao].has(e)){if(o>this[ru])return kh(this,this[ao].get(e)),!1;let l=this[ao].get(e).value;return this[vs]&&(this[kU]||this[vs](e,l.value)),l.now=r,l.maxAge=i,l.value=t,this[ws]+=o-l.length,l.length=o,this.get(e),Qp(this),!0}let s=new l_(e,t,o,r,i);return s.length>this[ru]?(this[vs]&&this[vs](e,t),!1):(this[ws]+=s.length,this[ki].unshift(s),this[ao].set(e,this[ki].head),Qp(this),!0)}has(e){if(!this[ao].has(e))return!1;let t=this[ao].get(e).value;return!Lx(this,t)}get(e){return s_(this,e,!0)}peek(e){return s_(this,e,!1)}pop(){let e=this[ki].tail;return e?(kh(this,e),e.value):null}del(e){kh(this,this[ao].get(e))}load(e){this.reset();let t=Date.now();for(let i=e.length-1;i>=0;i--){let r=e[i],o=r.e||0;if(o===0)this.set(r.k,r.v);else{let s=o-t;s>0&&this.set(r.k,r.v,s)}}}prune(){this[ao].forEach((e,t)=>s_(this,t,!1))}},s_=(n,e,t)=>{let i=n[ao].get(e);if(i){let r=i.value;if(Lx(n,r)){if(kh(n,i),!n[Vp])return}else t&&(n[EU]&&(i.value.now=Date.now()),n[ki].unshiftNode(i));return r.value}},Lx=(n,e)=>{if(!e||!e.maxAge&&!n[ou])return!1;let t=Date.now()-e.now;return e.maxAge?t>e.maxAge:n[ou]&&t>n[ou]},Qp=n=>{if(n[ws]>n[ru])for(let e=n[ki].tail;n[ws]>n[ru]&&e!==null;){let t=e.prev;kh(n,e),e=t}},kh=(n,e)=>{if(e){let t=e.value;n[vs]&&n[vs](t.key,t.value),n[ws]-=t.length,n[ao].delete(t.key),n[ki].removeNode(e)}},l_=class{constructor(e,t,i,r,o){this.key=e,this.value=t,this.length=i,this.now=r,this.maxAge=o||0}},PU=(n,e,t,i)=>{let r=t.value;Lx(n,r)&&(kh(n,t),n[Vp]||(r=void 0)),r&&e.call(i,r.value,r.key,n)};RU.exports=a_});var kr=y((TOe,jU)=>{var su=class{constructor(e,t){if(t=yve(t),e instanceof su)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new su(e.raw,t);if(e instanceof u_)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split("||").map(i=>this.parseRange(i.trim())).filter(i=>i.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${e}`);if(this.set.length>1){let i=this.set[0];if(this.set=this.set.filter(r=>!IU(r[0])),this.set.length===0)this.set=[i];else if(this.set.length>1){for(let r of this.set)if(r.length===1&&Sve(r[0])){this.set=[r];break}}}this.format()}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(e){e=e.trim();let i=`parseRange:${Object.keys(this.options).join(",")}:${e}`,r=LU.get(i);if(r)return r;let o=this.options.loose,s=o?On[gn.HYPHENRANGELOOSE]:On[gn.HYPHENRANGE];e=e.replace(s,Fve(this.options.includePrerelease)),qt("hyphen replace",e),e=e.replace(On[gn.COMPARATORTRIM],wve),qt("comparator trim",e),e=e.replace(On[gn.TILDETRIM],xve),e=e.replace(On[gn.CARETTRIM],Cve),e=e.split(/\s+/).join(" ");let a=e.split(" ").map(h=>Dve(h,this.options)).join(" ").split(/\s+/).map(h=>Ive(h,this.options));o&&(a=a.filter(h=>(qt("loose invalid filter",h,this.options),!!h.match(On[gn.COMPARATORLOOSE])))),qt("range list",a);let l=new Map,u=a.map(h=>new u_(h,this.options));for(let h of u){if(IU(h))return[h];l.set(h.value,h)}l.size>1&&l.has("")&&l.delete("");let c=[...l.values()];return LU.set(i,c),c}intersects(e,t){if(!(e instanceof su))throw new TypeError("a Range is required");return this.set.some(i=>FU(i,t)&&e.set.some(r=>FU(r,t)&&i.every(o=>r.every(s=>o.intersects(s,t)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new vve(e,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(jve(this.set[t],e,this.options))return!0;return!1}};jU.exports=su;var bve=_U(),LU=new bve({max:1e3}),yve=Gp(),u_=ef(),qt=Xp(),vve=Qi(),{re:On,t:gn,comparatorTrimReplace:wve,tildeTrimReplace:xve,caretTrimReplace:Cve}=tu(),IU=n=>n.value==="<0.0.0-0",Sve=n=>n.value==="",FU=(n,e)=>{let t=!0,i=n.slice(),r=i.pop();for(;t&&i.length;)t=i.every(o=>r.intersects(o,e)),r=i.pop();return t},Dve=(n,e)=>(qt("comp",n,e),n=Pve(n,e),qt("caret",n),n=Tve(n,e),qt("tildes",n),n=Rve(n,e),qt("xrange",n),n=Lve(n,e),qt("stars",n),n),pn=n=>!n||n.toLowerCase()==="x"||n==="*",Tve=(n,e)=>n.trim().split(/\s+/).map(t=>kve(t,e)).join(" "),kve=(n,e)=>{let t=e.loose?On[gn.TILDELOOSE]:On[gn.TILDE];return n.replace(t,(i,r,o,s,a)=>{qt("tilde",n,i,r,o,s,a);let l;return pn(r)?l="":pn(o)?l=`>=${r}.0.0 <${+r+1}.0.0-0`:pn(s)?l=`>=${r}.${o}.0 <${r}.${+o+1}.0-0`:a?(qt("replaceTilde pr",a),l=`>=${r}.${o}.${s}-${a} <${r}.${+o+1}.0-0`):l=`>=${r}.${o}.${s} <${r}.${+o+1}.0-0`,qt("tilde return",l),l})},Pve=(n,e)=>n.trim().split(/\s+/).map(t=>Eve(t,e)).join(" "),Eve=(n,e)=>{qt("caret",n,e);let t=e.loose?On[gn.CARETLOOSE]:On[gn.CARET],i=e.includePrerelease?"-0":"";return n.replace(t,(r,o,s,a,l)=>{qt("caret",n,r,o,s,a,l);let u;return pn(o)?u="":pn(s)?u=`>=${o}.0.0${i} <${+o+1}.0.0-0`:pn(a)?o==="0"?u=`>=${o}.${s}.0${i} <${o}.${+s+1}.0-0`:u=`>=${o}.${s}.0${i} <${+o+1}.0.0-0`:l?(qt("replaceCaret pr",l),o==="0"?s==="0"?u=`>=${o}.${s}.${a}-${l} <${o}.${s}.${+a+1}-0`:u=`>=${o}.${s}.${a}-${l} <${o}.${+s+1}.0-0`:u=`>=${o}.${s}.${a}-${l} <${+o+1}.0.0-0`):(qt("no pr"),o==="0"?s==="0"?u=`>=${o}.${s}.${a}${i} <${o}.${s}.${+a+1}-0`:u=`>=${o}.${s}.${a}${i} <${o}.${+s+1}.0-0`:u=`>=${o}.${s}.${a} <${+o+1}.0.0-0`),qt("caret return",u),u})},Rve=(n,e)=>(qt("replaceXRanges",n,e),n.split(/\s+/).map(t=>_ve(t,e)).join(" ")),_ve=(n,e)=>{n=n.trim();let t=e.loose?On[gn.XRANGELOOSE]:On[gn.XRANGE];return n.replace(t,(i,r,o,s,a,l)=>{qt("xRange",n,i,r,o,s,a,l);let u=pn(o),c=u||pn(s),h=c||pn(a),d=h;return r==="="&&d&&(r=""),l=e.includePrerelease?"-0":"",u?r===">"||r==="<"?i="<0.0.0-0":i="*":r&&d?(c&&(s=0),a=0,r===">"?(r=">=",c?(o=+o+1,s=0,a=0):(s=+s+1,a=0)):r==="<="&&(r="<",c?o=+o+1:s=+s+1),r==="<"&&(l="-0"),i=`${r+o}.${s}.${a}${l}`):c?i=`>=${o}.0.0${l} <${+o+1}.0.0-0`:h&&(i=`>=${o}.${s}.0${l} <${o}.${+s+1}.0-0`),qt("xRange return",i),i})},Lve=(n,e)=>(qt("replaceStars",n,e),n.trim().replace(On[gn.STAR],"")),Ive=(n,e)=>(qt("replaceGTE0",n,e),n.trim().replace(On[e.includePrerelease?gn.GTE0PRE:gn.GTE0],"")),Fve=n=>(e,t,i,r,o,s,a,l,u,c,h,d,g)=>(pn(i)?t="":pn(r)?t=`>=${i}.0.0${n?"-0":""}`:pn(o)?t=`>=${i}.${r}.0${n?"-0":""}`:s?t=`>=${t}`:t=`>=${t}${n?"-0":""}`,pn(u)?l="":pn(c)?l=`<${+u+1}.0.0-0`:pn(h)?l=`<${u}.${+c+1}.0-0`:d?l=`<=${u}.${c}.${h}-${d}`:n?l=`<${u}.${c}.${+h+1}-0`:l=`<=${l}`,`${t} ${l}`.trim()),jve=(n,e,t)=>{for(let i=0;i<n.length;i++)if(!n[i].test(e))return!1;if(e.prerelease.length&&!t.includePrerelease){for(let i=0;i<n.length;i++)if(qt(n[i].semver),n[i].semver!==u_.ANY&&n[i].semver.prerelease.length>0){let r=n[i].semver;if(r.major===e.major&&r.minor===e.minor&&r.patch===e.patch)return!0}return!1}return!0}});var ef=y((kOe,HU)=>{var tf=Symbol("SemVer ANY"),Ph=class{static get ANY(){return tf}constructor(e,t){if(t=Mve(t),e instanceof Ph){if(e.loose===!!t.loose)return e;e=e.value}h_("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===tf?this.value="":this.value=this.operator+this.semver.version,h_("comp",this)}parse(e){let t=this.options.loose?MU[OU.COMPARATORLOOSE]:MU[OU.COMPARATOR],i=e.match(t);if(!i)throw new TypeError(`Invalid comparator: ${e}`);this.operator=i[1]!==void 0?i[1]:"",this.operator==="="&&(this.operator=""),i[2]?this.semver=new AU(i[2],this.options.loose):this.semver=tf}toString(){return this.value}test(e){if(h_("Comparator.test",e,this.options.loose),this.semver===tf||e===tf)return!0;if(typeof e=="string")try{e=new AU(e,this.options)}catch{return!1}return c_(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof Ph))throw new TypeError("a Comparator is required");if((!t||typeof t!="object")&&(t={loose:!!t,includePrerelease:!1}),this.operator==="")return this.value===""?!0:new NU(e.value,t).test(this.value);if(e.operator==="")return e.value===""?!0:new NU(this.value,t).test(e.semver);let i=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">"),r=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<"),o=this.semver.version===e.semver.version,s=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<="),a=c_(this.semver,"<",e.semver,t)&&(this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"),l=c_(this.semver,">",e.semver,t)&&(this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">");return i||r||o&&s||a||l}};HU.exports=Ph;var Mve=Gp(),{re:MU,t:OU}=tu(),c_=r_(),h_=Xp(),AU=Qi(),NU=kr()});var nf=y((POe,qU)=>{var Ove=kr(),Ave=(n,e,t)=>{try{e=new Ove(e,t)}catch{return!1}return e.test(n)};qU.exports=Ave});var WU=y((EOe,BU)=>{var Nve=kr(),Hve=(n,e)=>new Nve(n,e).set.map(t=>t.map(i=>i.value).join(" ").trim().split(" "));BU.exports=Hve});var ZU=y((ROe,YU)=>{var qve=Qi(),Bve=kr(),Wve=(n,e,t)=>{let i=null,r=null,o=null;try{o=new Bve(e,t)}catch{return null}return n.forEach(s=>{o.test(s)&&(!i||r.compare(s)===-1)&&(i=s,r=new qve(i,t))}),i};YU.exports=Wve});var $U=y((_Oe,JU)=>{var Yve=Qi(),Zve=kr(),Jve=(n,e,t)=>{let i=null,r=null,o=null;try{o=new Zve(e,t)}catch{return null}return n.forEach(s=>{o.test(s)&&(!i||r.compare(s)===1)&&(i=s,r=new Yve(i,t))}),i};JU.exports=Jve});var GU=y((LOe,XU)=>{var d_=Qi(),$ve=kr(),UU=zp(),Uve=(n,e)=>{n=new $ve(n,e);let t=new d_("0.0.0");if(n.test(t)||(t=new d_("0.0.0-0"),n.test(t)))return t;t=null;for(let i=0;i<n.set.length;++i){let r=n.set[i],o=null;r.forEach(s=>{let a=new d_(s.semver.version);switch(s.operator){case">":a.prerelease.length===0?a.patch++:a.prerelease.push(0),a.raw=a.format();case"":case">=":(!o||UU(a,o))&&(o=a);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${s.operator}`)}}),o&&(!t||UU(t,o))&&(t=o)}return t&&n.test(t)?t:null};XU.exports=Uve});var KU=y((IOe,zU)=>{var Xve=kr(),Gve=(n,e)=>{try{return new Xve(n,e).range||"*"}catch{return null}};zU.exports=Gve});var Ix=y((FOe,tX)=>{var zve=Qi(),eX=ef(),{ANY:Kve}=eX,Qve=kr(),Vve=nf(),QU=zp(),VU=kx(),ewe=Ex(),twe=Px(),iwe=(n,e,t,i)=>{n=new zve(n,i),e=new Qve(e,i);let r,o,s,a,l;switch(t){case">":r=QU,o=ewe,s=VU,a=">",l=">=";break;case"<":r=VU,o=twe,s=QU,a="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Vve(n,e,i))return!1;for(let u=0;u<e.set.length;++u){let c=e.set[u],h=null,d=null;if(c.forEach(g=>{g.semver===Kve&&(g=new eX(">=0.0.0")),h=h||g,d=d||g,r(g.semver,h.semver,i)?h=g:s(g.semver,d.semver,i)&&(d=g)}),h.operator===a||h.operator===l||(!d.operator||d.operator===a)&&o(n,d.semver))return!1;if(d.operator===l&&s(n,d.semver))return!1}return!0};tX.exports=iwe});var nX=y((jOe,iX)=>{var nwe=Ix(),rwe=(n,e,t)=>nwe(n,e,">",t);iX.exports=rwe});var oX=y((MOe,rX)=>{var owe=Ix(),swe=(n,e,t)=>owe(n,e,"<",t);rX.exports=swe});var lX=y((OOe,aX)=>{var sX=kr(),awe=(n,e,t)=>(n=new sX(n,t),e=new sX(e,t),n.intersects(e));aX.exports=awe});var cX=y((AOe,uX)=>{var lwe=nf(),uwe=Tr();uX.exports=(n,e,t)=>{let i=[],r=null,o=null,s=n.sort((c,h)=>uwe(c,h,t));for(let c of s)lwe(c,e,t)?(o=c,r||(r=c)):(o&&i.push([r,o]),o=null,r=null);r&&i.push([r,null]);let a=[];for(let[c,h]of i)c===h?a.push(c):!h&&c===s[0]?a.push("*"):h?c===s[0]?a.push(`<=${h}`):a.push(`${c} - ${h}`):a.push(`>=${c}`);let l=a.join(" || "),u=typeof e.raw=="string"?e.raw:String(e);return l.length<u.length?l:e}});var fX=y((NOe,pX)=>{var hX=kr(),Fx=ef(),{ANY:g_}=Fx,rf=nf(),p_=Tr(),cwe=(n,e,t={})=>{if(n===e)return!0;n=new hX(n,t),e=new hX(e,t);let i=!1;e:for(let r of n.set){for(let o of e.set){let s=hwe(r,o,t);if(i=i||s!==null,s)continue e}if(i)return!1}return!0},hwe=(n,e,t)=>{if(n===e)return!0;if(n.length===1&&n[0].semver===g_){if(e.length===1&&e[0].semver===g_)return!0;t.includePrerelease?n=[new Fx(">=0.0.0-0")]:n=[new Fx(">=0.0.0")]}if(e.length===1&&e[0].semver===g_){if(t.includePrerelease)return!0;e=[new Fx(">=0.0.0")]}let i=new Set,r,o;for(let g of n)g.operator===">"||g.operator===">="?r=dX(r,g,t):g.operator==="<"||g.operator==="<="?o=gX(o,g,t):i.add(g.semver);if(i.size>1)return null;let s;if(r&&o){if(s=p_(r.semver,o.semver,t),s>0)return null;if(s===0&&(r.operator!==">="||o.operator!=="<="))return null}for(let g of i){if(r&&!rf(g,String(r),t)||o&&!rf(g,String(o),t))return null;for(let p of e)if(!rf(g,String(p),t))return!1;return!0}let a,l,u,c,h=o&&!t.includePrerelease&&o.semver.prerelease.length?o.semver:!1,d=r&&!t.includePrerelease&&r.semver.prerelease.length?r.semver:!1;h&&h.prerelease.length===1&&o.operator==="<"&&h.prerelease[0]===0&&(h=!1);for(let g of e){if(c=c||g.operator===">"||g.operator===">=",u=u||g.operator==="<"||g.operator==="<=",r){if(d&&g.semver.prerelease&&g.semver.prerelease.length&&g.semver.major===d.major&&g.semver.minor===d.minor&&g.semver.patch===d.patch&&(d=!1),g.operator===">"||g.operator===">="){if(a=dX(r,g,t),a===g&&a!==r)return!1}else if(r.operator===">="&&!rf(r.semver,String(g),t))return!1}if(o){if(h&&g.semver.prerelease&&g.semver.prerelease.length&&g.semver.major===h.major&&g.semver.minor===h.minor&&g.semver.patch===h.patch&&(h=!1),g.operator==="<"||g.operator==="<="){if(l=gX(o,g,t),l===g&&l!==o)return!1}else if(o.operator==="<="&&!rf(o.semver,String(g),t))return!1}if(!g.operator&&(o||r)&&s!==0)return!1}return!(r&&u&&!o&&s!==0||o&&c&&!r&&s!==0||d||h)},dX=(n,e,t)=>{if(!n)return e;let i=p_(n.semver,e.semver,t);return i>0?n:i<0||e.operator===">"&&n.operator===">="?e:n},gX=(n,e,t)=>{if(!n)return e;let i=p_(n.semver,e.semver,t);return i<0?n:i>0||e.operator==="<"&&n.operator==="<="?e:n};pX.exports=cwe});var of=y((HOe,mX)=>{var f_=tu();mX.exports={re:f_.re,src:f_.src,tokens:f_.t,SEMVER_SPEC_VERSION:Up().SEMVER_SPEC_VERSION,SemVer:Qi(),compareIdentifiers:xx().compareIdentifiers,rcompareIdentifiers:xx().rcompareIdentifiers,parse:iu(),valid:H$(),clean:B$(),inc:Z$(),diff:z$(),major:Q$(),minor:eU(),patch:iU(),prerelease:rU(),compare:Tr(),rcompare:sU(),compareLoose:lU(),compareBuild:Tx(),sort:dU(),rsort:pU(),gt:zp(),lt:kx(),eq:Dx(),neq:n_(),gte:Px(),lte:Ex(),cmp:r_(),coerce:CU(),Comparator:ef(),Range:kr(),satisfies:nf(),toComparators:WU(),maxSatisfying:ZU(),minSatisfying:$U(),minVersion:GU(),validRange:KU(),outside:Ix(),gtr:nX(),ltr:oX(),intersects:lX(),simplifyRange:cX(),subset:fX()}});var Eh,bX,m_,WOe,sf,yX=k(()=>{"use strict";Eh=S(require("path")),bX=S(require("fs"));re();$e();m_=S(qw()),WOe=q()("model-resolver"),sf=class{get nodeFolder(){return Wl("npm")?this._npmFolder?Promise.resolve(this._npmFolder):_o("npm --loglevel silent root -g",{},3e3).then(e=>(this._npmFolder=(0,m_.default)(e).trim(),this._npmFolder)):Promise.resolve("")}get yarnFolder(){return Wl("yarnpkg")?this._yarnFolder?Promise.resolve(this._yarnFolder):_o("yarnpkg global dir",{},3e3).then(e=>{let t=Eh.default.join((0,m_.default)(e).trim(),"node_modules"),i=bX.default.existsSync(t);return i&&(this._yarnFolder=t),i?t:""}):Promise.resolve("")}async resolveModule(e){let t=await this.nodeFolder,i=await this.yarnFolder;if(i){let r=await zi(Eh.default.join(i,e,"package.json"));if(r&&r.isFile())return Eh.default.join(i,e)}if(t){let r=await zi(Eh.default.join(t,e,"package.json"));if(r&&r.isFile())return Eh.default.join(t,e)}return null}}});function SX(n,e){if(!e.startsWith("nvim-")&&!e.startsWith("patch-"))throw new Error("Feature param could only starts with nvim and patch");if(!n.isVim&&e.startsWith("patch-")||n.isVim&&e.startsWith("nvim-"))return!1;if(n.isVim){let[t,i,r,o]=n.version.match(/^(\d)(\d{2})(\d+)$/),s=`${i}.${parseInt(r,10)}.${parseInt(o,10)}`;return y_.default.gte(s,e.slice(6))}return y_.default.gte(n.version,e.slice(5))}function DX(n=""){return b_.has(n)?b_.get(n):(jx=jx+1,b_.set(n,jx),jx)}function TX(n){let t=n.getConfiguration("coc.preferences").get("watchmanPath","watchman");try{return CX.default.sync(t)}catch{return null}}async function kX(n,e,t){let i=await n.call("expand","%:p");i=af.default.normalize(i);let r=i&&af.default.isAbsolute(i);if(r&&!Ye(e,i,!0))return ih(t,af.default.dirname(i));let o=ih(t,e);return o&&o!=wX.default.homedir()?o:r?ih(t,af.default.dirname(i)):null}function PX(n){return dwe.resolveModule(n)}function v_(n,e,t){if(Array.isArray(n)){let i=0;for(let r of n){let o=v_(r,e,t);if(o===10)return o;o>i&&(i=o)}return i}else{if(typeof n=="string")return n==="*"?5:n===t?10:0;if(n&&xX.TextDocumentFilter.is(n)){let i=j.parse(e),{language:r,pattern:o,scheme:s}=n,a=0;if(s)if(s===i.scheme)a=5;else if(s==="*")a=3;else return 0;if(r)if(r===t)a=10;else if(r==="*")a=Math.max(a,5);else return 0;if(o){let l=En||Jc,u=l?o.toLowerCase():o,c=l?i.fsPath.toLowerCase():i.fsPath;if(u===c||(0,vX.default)(c,u,{dot:!0}))a=5;else return 0}return a}else return 0}}var vX,wX,af,y_,xX,CX,jx,dwe,b_,EX=k(()=>{"use strict";vX=S(Lo()),wX=S(require("os")),af=S(require("path")),y_=S(of()),xX=S(W());Pe();CX=S(Bg());yX();$e();$c();jx=2e3,dwe=new sf,b_=new Map});var Mx,gwe,lf,RX=k(()=>{"use strict";qe();Mx=S(W());re();gwe=q()("core-keymaps"),lf=class{constructor(e){this.documents=e;this.keymaps=new Map}attach(e){this.nvim=e}async doKeymap(e,t="",i){let r=this.keymaps.get(e);if(!r)return gwe.error(`keymap for ${e} not found`),i&&this.nvim.command(`silent! unmap <buffer> ${i.startsWith("{")&&i.endsWith("}")?`<${i.slice(1,-1)}>`:i}`,!0),t;let[o,s]=r,a=await Promise.resolve(o());return s&&await this.nvim.command(`silent! call repeat#set("\\<Plug>(coc-${e})", -1)`),a??t}registerKeymap(e,t,i,r={}){if(!t)throw new Error(`Invalid key ${t} of registerKeymap`);if(this.keymaps.has(t))throw new Error(`${t} already exists.`);r=Object.assign({sync:!0,cancel:!0,silent:!0,repeat:!1},r);let{nvim:o}=this;this.keymaps.set(t,[i,!!r.repeat]);let s=r.sync?"request":"notify",a=r.silent?"<silent>":"";for(let l of e)if(l=="i")o.command(`inoremap ${a}<expr> <Plug>(coc-${t}) coc#_insert_key('${s}', '${t}', ${r.cancel?1:0})`,!0);else{let u=U0(l);o.command(`${l}noremap ${a} <Plug>(coc-${t}) :${u}call coc#rpc#${s}('doKeymap', ['${t}'])<cr>`,!0)}return Mx.Disposable.create(()=>{this.keymaps.delete(t);for(let l of e)o.command(`${l}unmap <Plug>(coc-${t})`,!0)})}registerExprKeymap(e,t,i,r=!1){let o=`${e}${global.Buffer.from(t).toString("base64")}${r?"1":"0"}`,{nvim:s}=this;return this.keymaps.set(o,[i,!1]),e=="i"?s.command(`inoremap <silent><expr>${r?"<nowait><buffer>":""} ${t} coc#_insert_key('request', '${o}')`,!0):s.command(`${e}noremap <silent><expr>${r?"<nowait><buffer>":""} ${t} coc#rpc#request('doKeymap', ['${o}'])`,!0),Mx.Disposable.create(()=>{this.keymaps.delete(o),s.command(`${e}unmap ${r?"<buffer>":""} ${t}`,!0)})}registerLocalKeymap(e,t,i,r=!1){let o=ps(),{nvim:s}=this,a=this.documents.bufnr;this.keymaps.set(o,[i,!1]);let l=r?"notify":"request",u=U0(e),c=t.startsWith("<")&&t.endsWith(">")?`{${t.slice(1,-1)}}`:t;if(this.nvim.hasFunction("nvim_buf_set_keymap"))s.call("nvim_buf_set_keymap",[0,e,t,`:${u}call coc#rpc#${l}('doKeymap', ['${o}', '', '${c}'])<CR>`,{silent:!0,nowait:!0}],!0);else{let h=`${e}noremap <silent><nowait><buffer> ${t} :${u}call coc#rpc#${l}('doKeymap', ['${o}', '', '${c}'])<CR>`;s.command(h,!0)}return Mx.Disposable.create(()=>{this.keymaps.delete(o),s.call("coc#compat#buf_del_keymap",[a,e,t],!0)})}}});var Rh,i1e,uf,_X=k(()=>{"use strict";fe();Rh=S(W());re();i1e=q()("core-watchers"),uf=class{constructor(){this.watchedOptions=new Set;this.disposables=[];this._onDidRuntimePathChange=new Rh.Emitter;this._onDidOptionChange=new Rh.Emitter;this.onDidRuntimePathChange=this._onDidRuntimePathChange.event;this.onDidOptionChange=this._onDidOptionChange.event}get options(){return Array.from(this.watchedOptions)}attach(e,t){this.nvim=e,this.env=t,this.watchOption("runtimepath",(i,r)=>{let o=i.split(","),a=r.split(",").filter(l=>!o.includes(l));a.length>0&&this._onDidRuntimePathChange.fire(a),this.env.runtimepath=r},this.disposables)}watchOption(e,t,i){let r=this.watchedOptions.has(e);r||(this.watchedOptions.add(e),this._onDidOptionChange.fire());let o=P.on("OptionSet",async(s,a,l)=>{s==e&&t&&await Promise.resolve(t(a,l))});i&&i.push(Rh.Disposable.create(()=>{o.dispose(),!r&&(this.watchedOptions.delete(e),this._onDidOptionChange.fire())}))}watchGlobal(e,t,i){let{nvim:r}=this;r.call("coc#_watch",e,!0);let o=P.on("GlobalChange",async(s,a,l)=>{s==e&&await Promise.resolve(t(a,l))});i&&i.push(Rh.Disposable.create(()=>{o.dispose(),r.call("coc#_unwatch",e,!0)}))}dispose(){U(this.disposables),this._onDidOptionChange.dispose(),this._onDidRuntimePathChange.dispose()}}});function cf(n){if(!(!n||!hf.default.isAbsolute(n)))return{name:hf.default.basename(n),uri:j.file(n).toString()}}var hf,Ox,pwe,df,LX=k(()=>{"use strict";hf=S(require("path")),Ox=S(W());Pe();dn();fe();nt();xr();$e();pwe=q()("core-workspaceFolder");df=class{constructor(e){this.configurations=e;this._onDidChangeWorkspaceFolders=new Ox.Emitter;this.onDidChangeWorkspaceFolders=this._onDidChangeWorkspaceFolders.event;this.rootPatterns=new Map;this._workspaceFolders=[];this._tokenSources=new Set;P.on("VimLeavePre",this.cancelAll,this)}cancelAll(){for(let e of this._tokenSources)e.cancel()}setWorkspaceFolders(e){if(!e||!Array.isArray(e))return;let t=e.map(i=>cf(i));this._workspaceFolders=t.filter(i=>i!=null)}getWorkspaceFolder(e){if(e.scheme!=="file")return;let t=Array.from(this._workspaceFolders).map(o=>j.parse(o.uri).fsPath);t.sort((o,s)=>s.length-o.length);let i=e.fsPath,r=t.find(o=>Ye(o,i,!0));return cf(r)}getRelativePath(e,t){let i,r="";if(typeof e=="string"?(i=j.file(e),r=e):typeof e<"u"&&(i=e,r=e.fsPath),!i)return r;let o=this.getWorkspaceFolder(i);if(!o)return r;typeof t>"u"&&this._workspaceFolders&&(t=this._workspaceFolders.length>1);let s=hf.default.relative(j.parse(o.uri).fsPath,i.fsPath);return s=s==""?i.fsPath:s,t&&o.name&&(s=`${o.name}/${s}`),s}get workspaceFolders(){return this._workspaceFolders}addRootPattern(e,t){let i=this.rootPatterns.get(e)||[];for(let r of t)i.includes(r)||i.push(r);this.rootPatterns.set(e,i)}resolveRoot(e,t,i,r){if(e.buftype!==""||e.schema!=="file"||!e.enabled)return null;let o=[0,1,2],s=j.parse(e.uri),a=hf.default.dirname(s.fsPath),l=this.configurations.getConfiguration("workspace",e.uri),u=l.get("ignoredFiletypes",[]),c=l.get("bottomUpFiletypes",[]),h=l.get("workspaceFolderCheckCwd",!0),d=l.get("ignoredFolders",[]),g=l.get("workspaceFolderFallbackCwd",!0);if(u!=null&&u.includes(e.filetype))return null;let p=this.getWorkspaceFolder(j.parse(e.uri));if(p)return j.parse(p.uri).fsPath;d=Array.isArray(d)?d.filter(m=>m&&m.length>0).map(m=>r(m)):[];let f=null;for(let m of o){let b=this.getRootPatterns(e,m);if(b&&b.length){let w=c.includes("*")||c.includes(e.filetype),x=np(a,b,t,w,h,d);if(x){f=x;break}}}return g&&!f&&!d.includes(t)&&Ye(t,a,!0)&&(f=t),f&&this.addWorkspaceFolder(f,i),f}addWorkspaceFolder(e,t){let i=cf(e);if(!!i)return this._workspaceFolders.findIndex(r=>r.uri==i.uri)==-1&&(this._workspaceFolders.push(i),t&&this._onDidChangeWorkspaceFolders.fire({added:[i],removed:[]})),i}renameWorkspaceFolder(e,t){let i=cf(t);if(!i)return;let r=this._workspaceFolders.findIndex(s=>j.parse(s.uri).fsPath==e);if(r==-1)return;let o=this.workspaceFolders[r];this._workspaceFolders.splice(r,1,i),this._onDidChangeWorkspaceFolders.fire({removed:[o],added:[i]})}removeWorkspaceFolder(e){let t=cf(e);if(!t)return;let i=this._workspaceFolders.findIndex(r=>r.uri==t.uri);i!=-1&&(this._workspaceFolders.splice(i,1),this._onDidChangeWorkspaceFolders.fire({removed:[t],added:[]}))}getRootPatterns(e,t){let{uri:i}=e;return t==0?e.getVar("root_patterns",[])||[]:t==1?this.getServerRootPatterns(e.languageId):this.configurations.getConfiguration("coc.preferences",i).get("rootPatterns",[".git",".hg",".projections.json"]).slice()}reset(){this.rootPatterns.clear(),this._workspaceFolders=[]}getServerRootPatterns(e){let t=this.configurations.getConfiguration().get("languageserver",{}),i=[];for(let r of Object.keys(t)){let o=t[r],{filetypes:s,rootPatterns:a}=o;Array.isArray(s)&&a&&s.includes(e)&&i.push(...a)}return i=i.concat(this.rootPatterns.get(e)||[]),i.length?Ai(i):[]}checkFolder(e,t,i){return UW(e,t,i)}async checkPatterns(e,t){if(Je(e))return!1;let i=e.map(u=>j.parse(u.uri).fsPath),r=!1,o=new Ox.CancellationTokenSource;this._tokenSources.add(o);let s=o.token,a=setTimeout(()=>{o.cancel()},5e3),l=await Promise.allSettled(i.map(u=>this.checkFolder(u,t,s).then(c=>{this._tokenSources.delete(o),c&&(r=!0,clearTimeout(a),o.cancel())})));return clearTimeout(a),l.forEach(u=>{u.status==="rejected"&&!pB(u.reason)&&pwe.error("checkPatterns error:",t,u.reason)}),r}}});var gf,IX=k(()=>{"use strict";fe();re();gf=class{constructor(e,t){this._create=e;this.disposables=[];this.itemsMap=new Map;let{disposables:i}=this;for(let r of t.documents)this.create(r);t.onDidOpenTextDocument(r=>{this.create(t.getDocument(r.bufnr))},null,i),t.onDidChangeDocument(r=>{this.onChange(r)},null,i),t.onDidCloseDocument(r=>{this.delete(r.bufnr)},null,i),P.on("LinesChanged",r=>{let o=this.itemsMap.get(r);o&&typeof o.item.onTextChange=="function"&&o.item.onTextChange()},null,i)}get items(){return Array.from(this.itemsMap.values()).map(e=>e.item)}getItem(e){var i;if(typeof e=="number")return(i=this.itemsMap.get(e))==null?void 0:i.item;let t=Array.from(this.itemsMap.values()).find(r=>r.uri==e);return t?t.item:void 0}create(e){if(!e)return;let t=this.itemsMap.get(e.bufnr);t&&t.item.dispose();let i=this._create(e);i&&this.itemsMap.set(e.bufnr,{uri:e.uri,item:i})}onChange(e){let t=this.itemsMap.get(e.bufnr);t&&typeof t.item.onChange=="function"&&t.item.onChange(e)}delete(e){let t=this.itemsMap.get(e);t&&(t.item.dispose(),this.itemsMap.delete(e))}reset(){for(let e of this.itemsMap.values())e.item.dispose();this.itemsMap.clear()}dispose(){U(this.disposables);for(let e of this.itemsMap.values())e.item.dispose();this._create=void 0,this.itemsMap.clear()}}});var ir,w_,pf,FX=k(()=>{"use strict";ir=S(require("fs")),w_=S(require("path")),pf=class{constructor(e){this.filepath=e}fetch(e){let t=this.load();if(!e)return t;let i=e.split(".");for(let r of i){if(typeof t[r]>"u")return;t=t[r]}return t}exists(e){let t=this.load(),i=e.split(".");for(let r of i){if(typeof t[r]>"u")return!1;t=t[r]}return!0}delete(e){let t=this.load(),i=t,r=e.split("."),o=r.length;for(let s=0;s<o&&!(typeof t[r[s]]>"u");s++){if(s==o-1){delete t[r[s]],ir.default.writeFileSync(this.filepath,JSON.stringify(i,null,2),"utf8");break}t=t[r[s]]}}push(e,t){let i=this.load()||{},r=i,o=e.split("."),s=o.length;if(r==null){let a=w_.default.dirname(this.filepath);ir.default.mkdirSync(a,{recursive:!0}),r=i}for(let a=0;a<s;a++){let l=o[a];if(a==s-1){r[l]=t,ir.default.writeFileSync(this.filepath,JSON.stringify(i,null,2));break}typeof r[l]>"u"&&(r[l]={}),r=r[l]}}load(){let e=w_.default.dirname(this.filepath),t=ir.default.statSync(e);if(!t||!t.isDirectory())return ir.default.mkdirSync(e,{recursive:!0}),ir.default.writeFileSync(this.filepath,"{}","utf8"),{};try{let i=ir.default.readFileSync(this.filepath,"utf8");return JSON.parse(i.trim())}catch{return ir.default.writeFileSync(this.filepath,"{}","utf8"),{}}}clear(){let e=ir.default.statSync(this.filepath);!e||!e.isFile()||ir.default.writeFileSync(this.filepath,"{}","utf8")}destroy(){ir.default.existsSync(this.filepath)&&ir.default.unlinkSync(this.filepath)}}});function _h(n,e){e=e??n.length;let t=new Uint8Array(e),i=!0;for(let r=0;r<e;r++){let o=Buffer.from(n[r],"utf8").byteLength;o>1&&(i=!1),t[r]=o}return r=>{if(r===0)return 0;if(i)return Math.min(r,e);let o=0;for(let s=0;s<Math.min(r,e);s++)o+=t[s];return o}}var x_=k(()=>{"use strict"});async function OX(){let n=MX.default.resolve(__dirname,"..","bin/fuzzy.wasm"),e=jX.default.readFileSync(n);return(await global.WebAssembly.instantiate(e,{env:{}})).instance.exports}function*C_(n,e,t){t=t?Math.min(t,n.length):n.length;let i=_h(n,Math.min(n.length,4096)),r,o,s=e.length;for(let a=0;a<s;a++){let l=e[a];if(l>=t){r!=null&&(yield[i(r),i(o+1)]);break}if(o!=null){let u=l-o;if(u==1)o=l;else if(u>1)yield[i(r),i(o+1)],r=l;else{yield[i(r),i(o+1)];break}}else r=l;o=l,a==s-1&&(yield[i(r),i(o+1)])}}var jX,MX,Ax,S_=k(()=>{"use strict";jX=S(require("fs")),MX=S(require("path"));x_();Ax=class{constructor(e){this.exports=e;this.patternLength=0;this.matchSeq=!1;this.sizes=[2048,1024,1024]}matchSpans(e,t,i){return C_(e,t,i)}getSizes(){return this.sizes}setPattern(e,t=!1){if(e.length>256&&(e=e.slice(0,256)),this.matchSeq=t,this.patternLength=t?e.length:e.replace(/(\s|\t)/g,"").length,this.patternPtr==null){let{malloc:s}=this.exports,{sizes:a}=this;this.contentPtr=s(a[0]),this.patternPtr=s(a[1]),this.resultPtr=s(a[2])}let i=Buffer.from(e,"utf8"),r=i.length,o=new Uint8Array(this.exports.memory.buffer,this.patternPtr,r+1);o.set(i),o[r]=0}changeContent(e){let{sizes:t}=this;e.length>4096&&(e=e.slice(0,4096));let i=Buffer.from(e,"utf8"),r=i.length;if(r>t[0]){let{malloc:s,free:a}=this.exports;a(this.contentPtr);let l=r+1;this.contentPtr=s(l),t[0]=l}let o=new Uint8Array(this.exports.memory.buffer,this.contentPtr,r+1);o.set(i),o[r]=0}match(e){if(this.patternPtr==null)throw new Error("setPattern not called before match");if(this.patternLength===0)return{score:100,positions:new Uint32Array};this.changeContent(e);let{fuzzyMatch:t,memory:i}=this.exports,{resultPtr:r}=this,o=t(this.contentPtr,this.patternPtr,r,this.matchSeq?1:0);if(!o)return;let s=new Uint32Array(i.buffer,r,this.patternLength);return{score:o,positions:s.slice()}}matchHighlights(e,t){let i=this.match(e);if(!i)return;let r=[];for(let o of this.matchSpans(e,i.positions))r.push({span:o,hlGroup:t});return{score:i.score,highlights:r}}free(){let e=[this.contentPtr,this.patternPtr,this.resultPtr],{free:t}=this.exports;e.forEach(i=>{i!=null&&t(i)}),this.contentPtr=this.patternPtr=this.resultPtr=void 0}}});var D_,au,T_,D1e,xs,Nx=k(()=>{"use strict";D_=S(require("path")),au=S(require("fs")),T_=require("util");$e();nt();D1e=q()("model-mru"),xs=class{constructor(e,t,i=5e3){this.maximum=i;this.file=D_.default.join(t||process.env.COC_DATA_HOME,e);let r=D_.default.dirname(this.file);au.default.mkdirSync(r,{recursive:!0})}async load(){try{let e=await Sa(this.file,0,this.maximum);return e.length>this.maximum&&await rp(this.file,e.join(`
|
||
`)),e[e.length-1]==""&&(e=e.slice(0,-1)),Ai(e)}catch{return[]}}loadSync(){if(!au.default.existsSync(this.file))return[];try{let e=au.default.readFileSync(this.file,"utf8");return e=e.trim(),e.length?e.trim().split(`
|
||
`):[]}catch{return[]}}async add(e){let t;try{t=au.default.readFileSync(this.file),t[0]===239&&t[1]===187&&t[2]===191&&(t=t.slice(3)),t=Buffer.concat([Buffer.from(e,"utf8"),new Uint8Array([10]),t])}catch{t=Buffer.concat([Buffer.from(e,"utf8"),new Uint8Array([10])])}await(0,T_.promisify)(au.default.writeFile)(this.file,t)}async remove(e){let t=await this.load(),i=t.length;t=t.filter(r=>r!=e),t.length!=i&&await rp(this.file,t.join(`
|
||
`))}async clean(){try{await(0,T_.promisify)(au.default.unlink)(this.file)}catch{}}}});var Hx,ff,AX=k(()=>{"use strict";Hx=S(W());fe();re();ff=class{constructor(e,t){this.nvim=e;this.id=t;this.disposables=[];this._onExit=new Hx.Emitter;this._onStderr=new Hx.Emitter;this._onStdout=new Hx.Emitter;this.onExit=this._onExit.event;this.onStdout=this._onStdout.event;this.onStderr=this._onStderr.event;P.on("TaskExit",(i,r)=>{i==this.id&&this._onExit.fire(r)},null,this.disposables),P.on("TaskStderr",(i,r)=>{i==this.id&&this._onStderr.fire(r)},null,this.disposables),P.on("TaskStdout",(i,r)=>{i==this.id&&this._onStdout.fire(r)},null,this.disposables)}async start(e){let{nvim:t}=this;return await t.call("coc#task#start",[this.id,e])}async stop(){let{nvim:e}=this;await e.call("coc#task#stop",[this.id])}get running(){let{nvim:e}=this;return e.call("coc#task#running",[this.id])}dispose(){let{nvim:e}=this;e.call("coc#task#stop",[this.id],!0),this._onStdout.dispose(),this._onStderr.dispose(),this._onExit.dispose(),U(this.disposables)}}});var qX,Lh,NX,HX,fwe,k_,v,ie=k(()=>{"use strict";qX=S(require("os")),Lh=S(require("path"));Pe();wR();uJ();hJ();pJ();jw();fJ();ZJ();$J();QJ();C$();EX();RX();fp();_X();LX();fe();IX();FX();S_();Nx();dR();AX();re();NX=32,HX=q()("workspace"),fwe=["showMessage","runTerminalCommand","openTerminal","showQuickpick","menuPick","openLocalConfig","showPrompt","createStatusBarItem","createOutputChannel","showOutputChannel","requestInput","echoLines","getCursorPosition","moveTo","getOffset","getSelectedRange","selectRange","createTerminal"],k_=class{constructor(){this.version=Kw;let e=Lh.default.normalize(process.env.COC_VIMCONFIG)??Lh.default.join(qX.default.homedir(),".vim"),t=Lh.default.join(e,Uc);this.configurations=new Ep(t,new _p(this)),this.workspaceFolderControl=new df(this.configurations);let i=this.documentsManager=new Np(this.configurations,this.workspaceFolderControl);this.contentProvider=new Ip(i),this.watchers=new uf,this.autocmds=new Lp(this.contentProvider,this.watchers),this.keymaps=new lf(i),this.files=new Wp(i,this.configurations,this.workspaceFolderControl,this.keymaps),this.editors=new qp(i),this.onDidRuntimePathChange=this.watchers.onDidRuntimePathChange,this.onDidChangeWorkspaceFolders=this.workspaceFolderControl.onDidChangeWorkspaceFolders,this.onDidChangeConfiguration=this.configurations.onDidChange,this.onDidOpenTextDocument=i.onDidOpenTextDocument,this.onDidChangeTextDocument=i.onDidChangeDocument,this.onDidCloseTextDocument=i.onDidCloseDocument,this.onDidSaveTextDocument=i.onDidSaveTextDocument,this.onWillSaveTextDocument=i.onWillSaveTextDocument,this.onDidCreateFiles=this.files.onDidCreateFiles,this.onDidRenameFiles=this.files.onDidRenameFiles,this.onDidDeleteFiles=this.files.onDidDeleteFiles,this.onWillCreateFiles=this.files.onWillCreateFiles,this.onWillRenameFiles=this.files.onWillRenameFiles,this.onWillDeleteFiles=this.files.onWillDeleteFiles;let r=this.getWatchmanPath();this.fileSystemWatchers=new Sh(this.workspaceFolderControl,r)}async init(e){let{nvim:t}=this;for(let s of fwe)Object.defineProperty(this,s,{get:()=>(...a)=>{let l=`
|
||
`+Error().stack.split(`
|
||
`).slice(2,4).join(`
|
||
`);return HX.warn(`workspace.${s} is deprecated, please use window.${s} instead.`,l),e[s].apply(e,a)}});for(let s of["onDidOpenTerminal","onDidCloseTerminal"])Object.defineProperty(this,s,{get:()=>{let a=`
|
||
`+Error().stack.split(`
|
||
`).slice(2,4).join(`
|
||
`);return HX.warn(`workspace.${s} is deprecated, please use window.${s} instead.`,a),e[s]}});let i=[],r;i.push(t.call("coc#util#vim_info").then(s=>{r=this._env=s})),i.push(OX().then(s=>{this.fuzzyExports=s})),i.push(Ea.create().then(s=>{this.strWdith=s})),await Promise.all(i),this.strWdith.setAmbw(!r.ambiguousIsNarrow),e.init(r),this.checkVersion(NX),this.workspaceFolderControl.setWorkspaceFolders(this._env.workspaceFolders),this.configurations.updateMemoryConfig(this._env.config),this.files.attach(t,r,e),this.contentProvider.attach(t),this.keymaps.attach(t),this.autocmds.attach(t,r),this.watchers.attach(t,r),await this.attach(),await this.editors.attach(t);let o=hs.create("watchman",t);this.fileSystemWatchers.attach(o)}checkVersion(e){this._env.apiversion!=e&&this.nvim.echoError(`API version ${this._env.apiversion} is not ${NX}, please build coc.nvim by 'yarn install' after pull source code.`)}getDisplayWidth(e,t=!1){return this.strWdith.getWidth(e,t)}get cwd(){return this.documentsManager.cwd}get env(){return this._env}get root(){return this.documentsManager.root||this.cwd}get rootPath(){return this.root}get bufnr(){return this.documentsManager.bufnr}get insertMode(){return P.insertMode}get floatSupported(){return!0}get uri(){return this.documentsManager.uri}get workspaceFolder(){return this.workspaceFolders[0]}get textDocuments(){return this.documentsManager.textDocuments}get documents(){return this.documentsManager.documents}get document(){return this.documentsManager.document}get workspaceFolders(){return this.workspaceFolderControl.workspaceFolders}checkPatterns(e,t){return this.workspaceFolderControl.checkPatterns(t??this.workspaceFolderControl.workspaceFolders,e)}get folderPaths(){return this.workspaceFolders.map(e=>j.parse(e.uri).fsPath)}get channelNames(){return hs.names}get pluginRoot(){return Lh.default.dirname(__dirname)}get isVim(){return this._env.isVim}get isNvim(){return!this._env.isVim}get completeOpt(){return""}get filetypes(){return this.documentsManager.filetypes}get languageIds(){return this.documentsManager.languageIds}createNameSpace(e){return DX(e)}has(e){return SX(this.env,e)}registerAutocmd(e){return this.autocmds.registerAutocmd(e)}watchOption(e,t,i){this.watchers.watchOption(e,t,i)}watchGlobal(e,t,i){this.watchers.watchGlobal(e,t||function(){},i)}match(e,t){return v_(e,t.uri,t.languageId)}createFileSystemWatcher(e,t,i,r){return this.fileSystemWatchers.createFileSystemWatcher(e,t,i,r)}createFuzzyMatch(){return new Ax(this.fuzzyExports)}getWatchmanPath(){return TX(this.configurations)}getConfiguration(e,t){return this.configurations.getConfiguration(e,t)}getDocument(e){return this.documentsManager.getDocument(e)}isAttached(e){let t=this.documentsManager.getDocument(e);return t!=null&&t.attached}getAttachedDocument(e){let t=this.getDocument(e);if(!t)throw new Error(`Buffer ${e} not created.`);if(!t.attached)throw new Error(`Buffer ${e} not attached, ${t.notAttachReason}`);return t}getQuickfixItem(e,t,i="",r){return this.documentsManager.getQuickfixItem(e,t,i,r)}createMru(e){return new xs(e)}async getQuickfixList(e){return this.documentsManager.getQuickfixList(e)}async showLocations(e){await this.documentsManager.showLocations(e)}getLine(e,t){return this.documentsManager.getLine(e,t)}getWorkspaceFolder(e){return this.workspaceFolderControl.getWorkspaceFolder(j.parse(e))}readFile(e){return this.documentsManager.readFile(e)}async getCurrentState(){let e=await this.document,t=await hh(this.nvim);return{document:e.textDocument,position:t}}async getFormatOptions(e){return this.documentsManager.getFormatOptions(e)}resolveModule(e){return PX(e)}async runCommand(e,t,i){return t=t||this.cwd,_o(e,{cwd:t},i)}expand(e){return this.documentsManager.expand(e)}async callAsync(e,t){return this.isNvim?await this.nvim.call(e,t):await this.nvim.callAsync("coc#util#with_callback",[e,t])}registerTextDocumentContentProvider(e,t){return this.contentProvider.registerTextDocumentContentProvider(e,t)}registerKeymap(e,t,i,r={}){return this.keymaps.registerKeymap(e,t,i,r)}registerExprKeymap(e,t,i,r=!1){return this.keymaps.registerExprKeymap(e,t,i,r)}registerLocalKeymap(e,t,i,r=!1){return this.keymaps.registerLocalKeymap(e,t,i,r)}createTask(e){return new ff(this.nvim,e)}createDatabase(e){let t=Lh.default.join(process.env.COC_DATA_HOME,e+".json");return new pf(t)}registerBufferSync(e){return new gf(e,this.documentsManager)}async attach(){await this.documentsManager.attach(this.nvim,this._env)}jumpTo(e,t,i){return this.files.jumpTo(e,t,i)}findUp(e){return kX(this.nvim,this.cwd,e)}applyEdit(e){return this.files.applyEdit(e)}createFile(e,t={}){return this.files.createFile(e,t)}loadFile(e,t){return this.files.loadResource(e,t)}async loadFiles(e){return this.files.loadResources(e)}async renameFile(e,t,i={}){await this.files.renameFile(e,t,i)}async deleteFile(e,t={}){await this.files.deleteFile(e,t)}async renameCurrent(){await this.files.renameCurrent()}async openResource(e){await this.files.openResource(e)}async computeWordRanges(e,t,i){let r=this.getDocument(e);return r?await r.chars.computeWordRanges(r.textDocument.lines,t,i):null}openTextDocument(e){return this.files.openTextDocument(e)}getRelativePath(e,t){return this.workspaceFolderControl.getRelativePath(e,t)}async findFiles(e,t,i,r){return this.files.findFiles(e,t,i,r)}detach(){this.documentsManager.detach()}reset(){this.configurations.reset(),this.workspaceFolderControl.reset(),this.documentsManager.reset()}dispose(){this.watchers.dispose(),this.autocmds.dispose(),this.contentProvider.dispose(),this.documentsManager.dispose(),this.configurations.dispose()}},v=new k_});var qx,Ih,mf,BX=k(()=>{"use strict";fe();qx=S(W());re();Ih="filter",mf=class{constructor(e,t){this.nvim=e;this._activated=!1;this.history=[];this.disposables=[];this._onDidUpdate=new qx.Emitter;this._onDidExit=new qx.Emitter;this._onDidKeyPress=new qx.Emitter;this.onDidKeyPress=this._onDidKeyPress.event;this.onDidUpdate=this._onDidUpdate.event;this.onDidExit=this._onDidExit.event;this.text="",P.on("InputChar",(i,r)=>{if(!(i!==Ih||!this._activated)){if(!t.includes(r)){if(r.length==1){this.text=this.text+r,this._onDidUpdate.fire(this.text);return}if(r=="<bs>"||r=="<C-h>"){this.text=this.text.slice(0,-1),this._onDidUpdate.fire(this.text);return}if(r=="<C-u>"){this.text="",this._onDidUpdate.fire(this.text);return}if(r=="<C-n>"){let o=this.history.indexOf(this.text),s=this.history[o+1]||this.history[0];s&&(this.text=s,this._onDidUpdate.fire(this.text));return}if(r=="<C-p>"){let o=this.history.indexOf(this.text),s=this.history[o-1]||this.history[this.history.length-1];s&&(this.text=s,this._onDidUpdate.fire(this.text))}if(r=="<esc>"||r=="<C-o>"){this.deactivate();return}}this._onDidKeyPress.fire(r)}},null,this.disposables)}active(){this._activated||(this._activated=!0,this.text="",this.nvim.call("coc#prompt#start_prompt",[Ih],!0))}deactivate(e){if(!this._activated)return;this.nvim.call("coc#prompt#stop_prompt",[Ih],!0),this._activated=!1;let{text:t}=this;this.text="",this._onDidExit.fire(e),t&&!this.history.includes(t)&&this.history.push(t)}get activated(){return this._activated}dispose(){this.deactivate(),this.history=[],this._onDidKeyPress.dispose(),this._onDidUpdate.dispose(),this._onDidExit.dispose(),U(this.disposables)}}});var WX,bf,lu,lo,yf=k(()=>{"use strict";Pe();WX=S(require("path"));(e=>{function n(t){return typeof t.label=="string"}e.is=n})(bf||(bf={}));lu=(i=>(i[i.None=0]="None",i[i.Collapsed=1]="Collapsed",i[i.Expanded=2]="Expanded",i))(lu||{}),lo=class{constructor(e,t=0){this.collapsibleState=t;j.isUri(e)?(this.resourceUri=e,this.label=WX.default.basename(e.path),this.id=e.toString()):this.label=e}}});var ZX={};Go(ZX,{default:()=>Fo});var Pi,YX,P_,E_,R_,Fo,vf=k(()=>{"use strict";Pi=S(W());Jt();fe();re();hR();ds();et();_e();xe();ie();BX();yf();YX=q()("BasicTreeView"),P_="tree",E_=3e3,R_=1,Fo=class{constructor(e,t){this.viewId=e;this.opts=t;this._selection=[];this._keymapDefs=[];this._onDispose=new Pi.Emitter;this._onDidRefrash=new Pi.Emitter;this._onDidExpandElement=new Pi.Emitter;this._onDidCollapseElement=new Pi.Emitter;this._onDidChangeSelection=new Pi.Emitter;this._onDidChangeVisibility=new Pi.Emitter;this._onDidFilterStateChange=new Pi.Emitter;this._onDidCursorMoved=new Pi.Emitter;this.onDidRefrash=this._onDidRefrash.event;this.onDispose=this._onDispose.event;this.onDidExpandElement=this._onDidExpandElement.event;this.onDidCollapseElement=this._onDidCollapseElement.event;this.onDidChangeSelection=this._onDidChangeSelection.event;this.onDidChangeVisibility=this._onDidChangeVisibility.event;this.onDidFilterStateChange=this._onDidFilterStateChange.event;this.onDidCursorMoved=this._onDidCursorMoved.event;this.retryTimers=0;this.renderedItems=[];this.nodesMap=new Map;this.mutex=new Di;this.disposables=[];this.lineState={titleCount:0,messageCount:0};this.loadConfiguration(),v.onDidChangeConfiguration(this.loadConfiguration,this,this.disposables),t.enableFilter&&(this.filter=new mf(this.nvim,[this.keys.selectNext,this.keys.selectPrevious,this.keys.invoke])),this.tooltipFactory=D.createFloatFactory({modes:["n"]}),this.provider=t.treeDataProvider,this.leafIndent=t.disableLeafIndent!==!0,this.winfixwidth=t.winfixwidth!==!1,this.autoWidth=t.autoWidth===!0;let i;Object.defineProperty(this,"message",{set:a=>{i=a?a.replace(/\r?\n/g," "):void 0,this.updateHeadLines()},get:()=>i});let r=e.replace(/\r?\n/g," ");Object.defineProperty(this,"title",{set:a=>{r=a?a.replace(/\r?\n/g," "):void 0,this.updateHeadLines()},get:()=>r});let o;Object.defineProperty(this,"description",{set:a=>{o=a?a.replace(/\r?\n/g," "):void 0,this.updateHeadLines()},get:()=>o});let s;Object.defineProperty(this,"filterText",{set:a=>{let{titleCount:l,messageCount:u}=this.lineState,c=l+u;if(a!=null){let h=[{lnum:c,colStart:Q(a),colEnd:Q(a)+1,hlGroup:"Cursor"}];this.renderedItems=[],this.updateUI([a+" "],h,c,-1,!0),this.doFilter(a)}else s!=null&&this.updateUI([],[],c,c+1);s=a},get:()=>s}),this.provider.onDidChangeTreeData&&this.provider.onDidChangeTreeData(this.onDataChange,this,this.disposables),P.on("BufUnload",a=>{if(a!=this.bufnr)return;let l=this.winid!=null;this.winid=void 0,this.bufnr=void 0,l&&this._onDidChangeVisibility.fire({visible:!1}),this.dispose()},null,this.disposables),P.on("WinClosed",a=>{this.winid===a&&(this.winid=void 0,this._onDidChangeVisibility.fire({visible:!1}))},null,this.disposables),P.on("BufWinLeave",(a,l)=>{a==this.bufnr&&l==this.winid&&(this.winid=void 0,this._onDidChangeVisibility.fire({visible:!1}))},null,this.disposables),D.onDidTabClose(a=>{this._targetTabId===a&&this.dispose()},null,this.disposables),P.on("CursorHold",async(a,l)=>{a==this.bufnr&&await this.onHover(l[0])},null,this.disposables),P.on(["CursorMoved","BufEnter"],()=>{this.cancelResolve()},null,this.disposables),P.on("CursorMoved",(a,l)=>{if(a==this.bufnr){let u=this.getElementByLnum(l[0]-1);this._onDidCursorMoved.fire(u)}},null,this.disposables),P.on("WinEnter",a=>{var d;if(a!=this.windowId||!((d=this.filter)!=null&&d.activated))return;let l=this.nvim.createBuffer(this.bufnr),u=this.startLnum-1,c=this.filterText?this.filterText.length:0,h=Pi.Range.create(u,c,u,c+1);l.highlightRanges(P_,"Cursor",[h]),this.nvim.call("coc#prompt#start_prompt",[Ih],!0),this.redraw()},null,this.disposables),P.on("WinLeave",a=>{var u;if(a!=this.windowId||!((u=this.filter)!=null&&u.activated))return;let l=this.nvim.createBuffer(this.bufnr);this.nvim.call("coc#prompt#stop_prompt",[Ih],!0),l.clearNamespace(P_,this.startLnum-1,this.startLnum)},null,this.disposables),this.disposables.push(this._onDidChangeVisibility,this._onDidCursorMoved,this._onDidChangeSelection,this._onDidCollapseElement,this._onDidExpandElement),this.filter&&(this.filter.onDidExit(a=>{this.nodesMap.clear(),this.filterText=void 0,this.itemsToFilter=void 0,a&&typeof this.provider.getParent=="function"?(this.renderedItems=[],this.reveal(a,{focus:!0})):(this.clearSelection(),this.render()),this._onDidFilterStateChange.fire(!1)}),this.filter.onDidUpdate(a=>{this.filterText=a}),this.filter.onDidKeyPress(async a=>{var c,h;let l=this.renderedItems;if(!(l!=null&&l.length))return;let u=this.selection[0];if(a=="<up>"||a==this.keys.selectPrevious){let d=l.findIndex(f=>f.node==u),g=d==-1||d==0?l.length-1:d-1,p=(c=l[g])==null?void 0:c.node;p&&this.selectItem(p,!0)}if(a=="<down>"||a==this.keys.selectNext){let d=l.findIndex(f=>f.node==u),g=d==-1||d==l.length-1?0:d+1,p=(h=l[g])==null?void 0:h.node;p&&this.selectItem(p,!0)}if(a=="<cr>"||a==this.keys.invoke){if(!u)return;await this.invokeCommand(u),this.filter.deactivate(u)}}))}get windowId(){return this.winid}get targetTabnr(){return D.getTabNumber(this._targetTabId)}get targetWinId(){return this._targetWinId}get targetBufnr(){return this._targetBufnr}get startLnum(){let e=this.filterText==null?0:1;return this.lineState.messageCount+this.lineState.titleCount+e}get nvim(){return v.nvim}get filtering(){return this.filter!=null&&this.filter.activated}loadConfiguration(e){if(!e||e.affectsConfiguration("tree")){let t=v.getConfiguration("tree");this.config={openedIcon:t.get("openedIcon"," "),closedIcon:t.get("closedIcon"," ")},this.keys={close:t.get("key.close"),invoke:t.get("key.invoke"),toggle:t.get("key.toggle"),actions:t.get("key.actions"),collapseAll:t.get("key.collapseAll"),toggleSelection:t.get("key.toggleSelection"),activeFilter:t.get("key.activeFilter"),selectNext:t.get("key.selectNext"),selectPrevious:t.get("key.selectPrevious")},e&&this.render()}}async doFilter(e){let t=[],i=0,r=await this.mutex.acquire();try{if(!this.itemsToFilter){let l=[],u=async h=>{for(let d of h){l.push(d);let g=await Promise.resolve(this.provider.getChildren(d));g!=null&&g.length&&await u(g)}},c=await Promise.resolve(this.provider.getChildren());await u(c),this.itemsToFilter=l}for(let l of this.itemsToFilter){let u=await this.getTreeItem(l),c=bf.is(u.label)?u.label.label:u.label;if(!e||Uw(e,c)){let h=e?wp(e,c):[];u.collapsibleState=0,u.label={label:c,highlights:e?qZ(h):[]};let{line:d,highlights:g}=this.getRenderedLine(u,i,0);t.push({level:0,node:l,line:d,index:i,score:e?HZ(e,c):0,highlights:g}),i+=1}}t.sort((l,u)=>l.score!=u.score?u.score-l.score:l.index-u.index);let o=this.startLnum,s=[],a=this.renderedItems=t.map((l,u)=>(s.push(...l.highlights.map(c=>(c.lnum=o+u,c))),delete l.index,delete l.score,delete l.highlights,l));this.updateUI(a.map(l=>l.line),s,o,-1,!0),a.length?this.selectItem(a[0].node,!0):this.clearSelection(),this.redraw(),r()}catch(o){r(),YX.error("Error on tree filter:",o)}}async onHover(e){let t=this.getElementByLnum(e-1);if(!t||!this.nodesMap.has(t))return;let i=this.nodesMap.get(t),r=i.item;if(!r.tooltip&&!i.resolved&&(r=await this.resolveItem(t,r)),!r.tooltip||!this.winid)return;let s={filetype:Pi.MarkupContent.is(r.tooltip)&&r.tooltip.kind==Pi.MarkupKind.Markdown?"markdown":"txt",content:Pi.MarkupContent.is(r.tooltip)?r.tooltip.value:r.tooltip};await this.tooltipFactory.show([s])}async onClick(e){let{nvim:t}=this,[i,r]=await t.eval("[getline('.'),col('.')]"),o=tt(i,0,r-1),s=i[o.length];if(!s)return;let{openedIcon:a,closedIcon:l}=this.config;/^\s*$/.test(o)&&[a,l].includes(s)?await this.toggleExpand(e):await this.invokeCommand(e)}async invokeCommand(e){let t=this.nodesMap.get(e);if(!t)return;this.selectItem(e);let i=t.item;if(!(!i.command&&(i=await this.resolveItem(e,i),!i))){if(!i.command)throw new Error("Failed to resolve command from TreeItem.");await ue.execute(i.command)}}async invokeActions(e){if(!e)return;if(this.selectItem(e),typeof this.provider.resolveActions!="function"){await D.showWarningMessage("No actions");return}let t=this.nodesMap.get(e),i=await Promise.resolve(this.provider.resolveActions(t.item,e));if(!i||i.length==0){await D.showWarningMessage("No actions available");return}let r=i.map(s=>s.title),o=await D.showMenuPicker(r,"Choose action");o!=-1&&await Promise.resolve(i[o].handler(e))}async onDataChange(e){var i;if((i=this.filter)!=null&&i.activated){this.itemsToFilter=void 0,await this.doFilter(this.filterText);return}if(this.clearSelection(),!e){await this.render();return}let t=await this.mutex.acquire();try{let r=this.renderedItems,o=r.findIndex(s=>s.node===e);if(o!=-1&&this.bufnr){let a=r[o].level,l=0;for(let d=o;d<r.length;d++){let g=r[d];(d==o||g&&g.level>a)&&(l+=1)}let u=[],c=[],h=o+this.startLnum;await this.appendTreeNode(e,a,h,u,c),r.splice(o,l,...u),this.updateUI(u.map(d=>d.line),c,h,h+l)}t()}catch(r){let o=`Error on tree refresh: ${r}`;YX.error(o,r),this.nvim.errWriteLine("[coc.nvim] "+o),t()}}async resolveItem(e,t){if(typeof this.provider.resolveTreeItem=="function"){let i=this.resolveTokenSource=new Pi.CancellationTokenSource,r=i.token;if(t=await Promise.resolve(this.provider.resolveTreeItem(t,e,r)),i.dispose(),this.resolveTokenSource=void 0,r.isCancellationRequested)return}return this.nodesMap.set(e,{item:t,resolved:!0}),t}get visible(){return this.bufnr?this.winid!=null:!1}get valid(){return typeof this.bufnr=="number"}get selection(){return this._selection.slice()}async checkLines(){if(!this.bufnr)return;let t=await this.nvim.createBuffer(this.bufnr).lines,{titleCount:i,messageCount:r}=this.lineState;t=t.slice(i+r);let o=this.renderedItems.map(s=>s.line);return ye(t,o)}async toggleExpand(e){let t=this.nodesMap.get(e);if(!t)return;let i=t.item,r=this.getItemLnum(e),o=r-this.startLnum,s=this.renderedItems[o];if(!s||i.collapsibleState==0){if(typeof this.provider.getParent=="function"){let c=await Promise.resolve(this.provider.getParent(e));c&&(await this.toggleExpand(c),this.focusItem(c))}return}let a=0;if(i.collapsibleState==2){let c=s.level;for(let h=o+1;h<this.renderedItems.length;h++){let d=this.renderedItems[h];if(!d||d.level<=c)break;a+=1}i.collapsibleState=1}else i.collapsibleState==1&&(i.collapsibleState=2);let l=[],u=[];await this.appendTreeNode(s.node,s.level,r,l,u),this.renderedItems.splice(o,a+1,...l),this.updateUI(l.map(c=>c.line),u,r,r+a+1),this.refreshSigns(),i.collapsibleState==1?this._onDidCollapseElement.fire({element:e}):this._onDidExpandElement.fire({element:e})}toggleSelection(e){if(!e)return;let t=this._selection.findIndex(i=>i===e);t!==-1?this.unselectItem(t):this.selectItem(e)}clearSelection(){if(!this.bufnr)return;this._selection=[],this.nvim.createBuffer(this.bufnr).unplaceSign({group:"CocTree"}),this._onDidChangeSelection.fire({selection:[]})}selectItem(e,t,i){let{nvim:r}=this;if(!this.bufnr||!v.env.sign)return;let o=this.getItemLnum(e);if(o==null)return;let s=r.createBuffer(this.bufnr),a=this._selection.includes(e);!this.opts.canSelectMany||t?this._selection=[e]:a||this._selection.push(e),r.pauseNotification(),(!this.opts.canSelectMany||t)&&s.unplaceSign({group:"CocTree"}),r.call("coc#compat#execute",[this.winid,`normal! ${o+1}G`],!0),s.placeSign({id:E_+o,lnum:o+1,name:"CocTreeSelected",group:"CocTree"}),i||this.redraw(),r.resumeNotification(!1,!0),a||this._onDidChangeSelection.fire({selection:this._selection})}unselectItem(e){let t=this._selection[e],i=this.getItemLnum(t);if(i==null||!this.bufnr||!v.env.sign)return;this._selection.splice(e,1),this.nvim.createBuffer(this.bufnr).unplaceSign({group:"CocTree",id:E_+i}),this._onDidChangeSelection.fire({selection:this._selection})}focusItem(e){if(!this.winid)return;let t=this.getItemLnum(e);t!=null&&this.nvim.call("coc#compat#execute",[this.winid,`exe ${t+1}`],!0)}getElementByLnum(e){let t=this.renderedItems[e-this.startLnum];return t?t.node:void 0}getItemLnum(e){let t=this.renderedItems.findIndex(i=>i.node===e);if(t!=-1)return this.startLnum+t}async getTreeItem(e){let t,i=!1,r=this.nodesMap.get(e);r!=null&&(t=r.item,i=r.resolved);let o=await Promise.resolve(this.provider.getTreeItem(e));if(o.id&&!t){for(let s of this.nodesMap.values())if(s.item.id===o.id){i=s.resolved,t=s.item;break}}return t&&t.collapsibleState!=0&&o.collapsibleState!=0&&(o.collapsibleState=t.collapsibleState),this.nodesMap.set(e,{item:o,resolved:i}),o}getRenderedLine(e,t,i){let{openedIcon:r,closedIcon:o}=this.config,s=[],{label:a,deprecated:l,description:u}=e,c=" ".repeat(i),h=(g,p)=>{let f=Q(c);s.push({lnum:t,hlGroup:p,colStart:f,colEnd:f+Q(g)})};switch(e.collapsibleState){case 2:{h(r,"CocTreeOpenClose"),c+=r+" ";break}case 1:{h(o,"CocTreeOpenClose"),c+=o+" ";break}default:c+=this.leafIndent?" ":""}if(e.icon){let{text:g,hlGroup:p}=e.icon;h(g,p),c+=g+" "}if(bf.is(a)&&Array.isArray(a.highlights)){let g=Q(c);for(let p of a.highlights)s.push({lnum:t,hlGroup:"CocSearch",colStart:g+p[0],colEnd:g+p[1]})}let d=typeof a=="string"?a:a.label;return l&&h(d,"CocDeprecatedHighlight"),c+=d,u&&u.indexOf(`
|
||
`)==-1&&(c+=" ",h(u,"CocTreeDescription"),c+=u),{line:c,highlights:s}}async appendTreeNode(e,t,i,r,o){let s=1,a=await this.getTreeItem(e),l=this.getRenderedLine(a,i,t);if(o.push(...l.highlights),r.push({level:t,line:l.line,node:e}),a.collapsibleState==2){let u=t+1,c=await Promise.resolve(this.provider.getChildren(e))||[];for(let h of c){let d=await this.appendTreeNode(h,u,i+s,r,o);s=s+d}}return s}updateUI(e,t,i=0,r=-1,o=!1){if(!this.bufnr)return;let{nvim:s,winid:a}=this,l=s.createBuffer(this.bufnr);if(s.pauseNotification(),l.setOption("modifiable",!0,!0),l.setLines(e,{start:i,end:r,strictIndexing:!1},!0),this.autoWidth&&this.nvim.call("coc#window#adjust_width",[a],!0),t.length){let u=r==-1?-1:i+e.length;s.call("coc#highlight#update_highlights",[this.bufnr,P_,t,i,u],!0)}l.setOption("modifiable",!1,!0),o||this.redraw(),s.resumeNotification(!1,!0)}async reveal(e,t={}){var l;if((l=this.filter)!=null&&l.activated)return;let i=this.getItemLnum(e)!=null,{select:r,focus:o,expand:s}=t,a=e;if(typeof this.provider.getParent!="function")throw new Error("missing getParent function from provider for reveal.");if(!i)for(;a;){let u=await Promise.resolve(this.provider.getParent(a));if(u){let c=await this.getTreeItem(u);c.collapsibleState=2,a=u}else break}if(s){let u=await this.getTreeItem(e);if(u.collapsibleState==0)return;if(u.collapsibleState=2,typeof s=="number"&&s>1){let c=Math.min(s,2),h=await Promise.resolve(this.provider.getChildren(e));for(;(h==null?void 0:h.length)>0;){let d=[];for(let g of h){let p=await this.getTreeItem(g);if(p.collapsibleState!=0&&(p.collapsibleState=2,c>1)){let f=await Promise.resolve(this.provider.getChildren(g));d.push(...f)}}h=d,c=c-1}}}(!i||s)&&await this.render(),r!==!1&&this.selectItem(e),o&&this.focusItem(e)}updateHeadLines(e=!1){let{titleCount:t,messageCount:i}=this.lineState,r=e?-1:t+i,o=[],s=[];try{if(this.message&&(s.push({hlGroup:"MoreMsg",colStart:0,colEnd:Q(this.message),lnum:0}),o.push(this.message),o.push("")),this.title){if(s.push({hlGroup:"CocTreeTitle",colStart:0,colEnd:Q(this.title),lnum:o.length}),this.description){let a=Q(this.title)+1;s.push({hlGroup:"Comment",colStart:a,colEnd:a+Q(this.description),lnum:o.length})}o.push(this.title+(this.description?" "+this.description:""))}this.lineState.messageCount=this.message?2:0,this.lineState.titleCount=this.title?1:0,this.updateUI(o,s,0,r),e||this.refreshSigns()}catch(a){this.nvim.echoError(a)}}refreshSigns(){let{selection:e,nvim:t,bufnr:i}=this;if(!e.length||!i||!v.env.sign)return;let r=t.createBuffer(i);t.pauseNotification(),r.unplaceSign({group:"CocTree"});for(let o of e){let s=this.getItemLnum(o);s!=null&&r.placeSign({id:E_+s,lnum:s+1,name:"CocTreeSelected",group:"CocTree"})}t.resumeNotification(!1,!0)}async render(){if(!this.bufnr)return;let e=await this.mutex.acquire();try{let t=[],i=[],{startLnum:r}=this,o=await Promise.resolve(this.provider.getChildren()),s=0,a=r,l=[];if(!(o!=null&&o.length))this.message="No results";else{this.message=="No results"&&(this.message="");for(let c of o)a+=await this.appendTreeNode(c,s,a,l,i)}t.push(...l.map(c=>c.line)),this.renderedItems=l;let u=this.startLnum-r;u&&i.forEach(c=>c.lnum=c.lnum+u),this.updateUI(t,i,this.startLnum,-1),this._onDidRefrash.fire(),this.retryTimers=0,e()}catch(t){this.renderedItems=[],this.nodesMap.clear(),this.lineState={titleCount:0,messageCount:1},e();let i=`${t}`.replace(/\r?\n/g," ");if(this.updateUI([i],[{hlGroup:"WarningMsg",colStart:0,colEnd:Q(i),lnum:0}]),this.retryTimers==5)return;this.timer=setTimeout(()=>{this.retryTimers=this.retryTimers+1,this.render()},500)}}async show(e="belowright 30vs"){if(this._creating)return!1;this._creating=!0;let{nvim:t}=this,i=this.winid,[r,o,s,a]=await t.eval(`[bufnr("%"),win_getid(),tabpagenr(),bufloaded(${this.bufnr||-1})]`);this._targetBufnr=r,this._targetWinId=o,this._targetTabId=D.getTabId(s),a||(this.bufnr=void 0);let l=this.bufnr==null,u=await t.call("coc#window#find",["cocViewId",this.viewId]);if(this.bufnr&&u!==-1&&await t.call("winbufnr",[u])==this.bufnr){this._creating=!1;return}if(t.pauseNotification(),this.bufnr)u!=-1?(t.call("win_gotoid",[u],!0),t.command(`b ${this.bufnr}`,!0)):t.command(`silent keepalt ${e} ${this.bufname}`,!0);else{let d=R_;R_=R_+1,u!=-1?(t.call("win_gotoid",[u],!0),t.command(`silent edit +setl\\ buftype=nofile CocTree${d}`,!0)):t.command(`silent keepalt ${e} +setl\\ buftype=nofile CocTree${d}`,!0)}t.command(`setl bufhidden=${this.opts.bufhidden||"wipe"} nolist nonumber norelativenumber foldcolumn=0`,!0),t.command(`setl signcolumn=${this.opts.canSelectMany?"yes":"no"}${this.winfixwidth?" winfixwidth":""}`,!0),t.command("setl nocursorline nobuflisted wrap undolevels=-1 filetype=coctree nomodifiable noswapfile",!0),t.command(`let w:cocViewId = "${this.viewId.replace(/"/g,'\\"')}"`,!0),t.call("bufname",["%"],!0),t.call("bufnr",["%"],!0),t.call("win_getid",[],!0);let h=(await t.resumeNotification())[0];return this.bufname=h[h.length-3],this.bufnr=h[h.length-2],this.winid=h[h.length-1],l&&this.registerKeymaps(),i||this._onDidChangeVisibility.fire({visible:!0}),i&&i!==this.winid&&t.call("coc#window#close",[i],!0),this._creating=!1,this.updateHeadLines(!0),this.render(),!0}registerLocalKeymap(e,t,i,r=!1){this.bufnr?this.disposables.push(v.registerLocalKeymap(e,t,async()=>{let o=await this.nvim.call("line",["."]),s=this.getElementByLnum(o-1);await Promise.resolve(i(s))},r)):this._keymapDefs.push({mode:e,key:t,fn:i,notify:r})}registerKeymaps(){let{toggleSelection:e,actions:t,close:i,invoke:r,toggle:o,collapseAll:s,activeFilter:a}=this.keys,{nvim:l,_keymapDefs:u}=this,c=(h,d,g,p=!0)=>{!d||v.registerLocalKeymap(h,d,async()=>{let f=await this.nvim.call("line",["."]),m=this.getElementByLnum(f-1);await Promise.resolve(g(m))},p)};for(this.disposables.push(v.registerLocalKeymap("n","<C-o>",()=>{l.call("win_gotoid",[this._targetWinId],!0)},!0)),c("n","<LeftRelease>",async h=>{h&&await this.onClick(h)}),this.filter&&c("n",a,async()=>{this.nvim.command(`exe ${this.startLnum}`,!0),this.filter.active(),this.filterText="",this._onDidFilterStateChange.fire(!0)}),c("n",e,h=>this.toggleSelection(h)),c("n",r,h=>this.invokeCommand(h)),c("n",t,h=>this.invokeActions(h)),c("n",o,h=>this.toggleExpand(h)),c("n",s,()=>this.collapseAll()),c("n",i,()=>this.hide());u.length;){let h=u.pop();c(h.mode,h.key,h.fn,h.notify)}}hide(){this.nvim.call("coc#window#close",[this.winid],!0),this.redraw(),this.winid=void 0,this._onDidChangeVisibility.fire({visible:!1})}redraw(){var e;(v.isVim||((e=this.filter)==null?void 0:e.activated))&&this.nvim.command("redraw",!0)}async collapseAll(){for(let e of this.nodesMap.values()){let t=e.item;t.collapsibleState==2&&(t.collapsibleState=1)}await this.render()}cancelResolve(){this.resolveTokenSource&&(this.resolveTokenSource.cancel(),this.resolveTokenSource=void 0)}dispose(){var t;if(!this.provider)return;this.timer&&clearTimeout(this.timer),this.cancelResolve();let{bufnr:e}=this;this.winid&&this._onDidChangeVisibility.fire({visible:!1}),e&&this.nvim.command(`silent! bwipeout! ${e}`,!0),this._keymapDefs=[],this.winid=void 0,this.bufnr=void 0,(t=this.filter)==null||t.dispose(),this._selection=[],this.itemsToFilter=[],this.tooltipFactory.dispose(),this.renderedItems=[],this.nodesMap.clear(),this.provider=void 0,this._onDispose.fire(),this._onDispose.dispose(),U(this.disposables)}}});function __(n,e){if(Fh.Location.is(e)){let{range:t,uri:i}=e;if(n.find(r=>r.uri==i&&ye(r.range,t))!=null)return;n.push(e)}else if(e&&typeof e.targetUri=="string"){let{targetUri:t,targetSelectionRange:i,targetRange:r}=e;if(n.find(o=>o.uri==t&&ye(o.range,i))!=null)return;n.push({uri:t,range:i,targetRange:r})}}var Fh,mwe,pe,dt=k(()=>{"use strict";Fh=S(W());et();ie();mwe=q()("provider-manager"),pe=class{constructor(){this.providers=new Set}hasProvider(e){return this.getProvider(e)!=null}addProvider(e){return this.providers.add(e),Fh.Disposable.create(()=>{this.providers.delete(e)})}handleResults(e,t){e.forEach(i=>{i.status==="rejected"&&mwe.error(`Provider error on ${t}:`,i.reason)})}getProvider(e){let t=0,i;for(let r of this.providers){let{selector:o,priority:s}=r,a=v.match(o,e);a!=0&&(typeof s=="number"&&s>0&&(a=a+s),!(a<t)&&(t=a,i=r))}return i}getProviderById(e){let t=Array.from(this.providers).find(i=>i.id==e);return t?t.provider:null}getProviders(e){let t=Array.from(this.providers);return t=t.filter(i=>v.match(i.selector,e)>0),t.sort((i,r)=>v.match(r.selector,e)-v.match(i.selector,e))}addLocation(e,t){if(Array.isArray(t))for(let i of t)(Fh.Location.is(i)||i&&typeof i.targetUri=="string")&&__(e,i);else Fh.Location.is(t)&&__(e,t)}}});var wf,JX=k(()=>{"use strict";qe();dt();wf=class extends pe{register(e,t){return this.addProvider({id:oe(),selector:e,provider:t})}async prepareCallHierarchy(e,t,i){let r=this.getProvider(e);if(!r)return null;let{provider:o}=r;return await Promise.resolve(o.prepareCallHierarchy(e,t,i))}async provideCallHierarchyOutgoingCalls(e,t,i){let r=this.getProvider(e);if(!r)return null;let{provider:o}=r;return await Promise.resolve(o.provideCallHierarchyOutgoingCalls(t,i))}async provideCallHierarchyIncomingCalls(e,t,i){let r=this.getProvider(e);if(!r)return null;let{provider:o}=r;return await Promise.resolve(o.provideCallHierarchyIncomingCalls(t,i))}}});function UX(n,...e){return n=Object(n),e.forEach(t=>{if(t!=null){t=Object(t);for(let i in t){let r=n[i];(r===void 0||r===$X[i]&&!bwe.call(n,i))&&(n[i]=t[i])}}}),n}function fn(n,e){let t={};for(let i of Object.keys(n))e.includes(i)||(t[i]=n[i]);return t}var $X,bwe,Cs=k(()=>{"use strict";$X=Object.prototype,bwe=$X.hasOwnProperty});var XX,$Ae,xf,GX=k(()=>{"use strict";qe();XX=S(W());nt();Cs();dt();$Ae=q()("codeActionManager"),xf=class extends pe{register(e,t,i,r){return this.addProvider({id:oe(),selector:e,provider:t,kinds:r,clientId:i})}async provideCodeActions(e,t,i,r){let o=this.getProviders(e);if(i.only&&o.length>0){let{only:l}=i;o=o.filter(u=>!(Array.isArray(u.kinds)&&!u.kinds.some(c=>l.includes(c))))}let s=[],a=await Promise.allSettled(o.map(l=>{let{provider:u,id:c}=l;return(async()=>{let d=await Promise.resolve(u.provideCodeActions(e,t,i,r));if(Je(d))return;let g=s.length===0;for(let p of d)if(XX.Command.is(p)){let f={title:p.title,command:p,providerId:c};s.push(f)}else{if(i.only&&i.only.length>0&&!i.only.some(m=>{var b;return(b=p.kind)==null?void 0:b.startsWith(m)}))continue;(g||s.findIndex(f=>f.title==p.title)===-1)&&s.push(Object.assign({providerId:c},p))}})()}));return this.handleResults(a,"provideCodeActions"),s}async resolveCodeAction(e,t){if(e.edit!=null||e.providerId==null)return e;let i=this.getProviderById(e.providerId);return!i||typeof i.resolveCodeAction!="function"?e:await Promise.resolve(i.resolveCodeAction(fn(e,["providerId"]),t))??e}}});var Cf,zX=k(()=>{"use strict";qe();Cs();dt();Cf=class extends pe{register(e,t){return this.addProvider({id:oe(),selector:e,provider:t})}async provideCodeLenses(e,t){let i=this.getProviders(e),r=[],o=await Promise.allSettled(i.map(s=>{let{provider:a,id:l}=s;return Promise.resolve(a.provideCodeLenses(e,t)).then(u=>{if(Array.isArray(u))for(let c of u)r.push(Object.assign({source:l},c))})}));return this.handleResults(o,"provideCodeLenses"),r}async resolveCodeLens(e,t){if(e.command)return e;let i=this.getProviderById(e.source);if(!i||typeof i.resolveCodeLens!="function")return e;let r=await Promise.resolve(i.resolveCodeLens(fn(e,["source"]),t));return Object.assign(e,r),e}}});var eNe,Sf,KX=k(()=>{"use strict";qe();dt();eNe=q()("definitionManager"),Sf=class extends pe{register(e,t){return this.addProvider({id:oe(),selector:e,provider:t})}async provideDeclaration(e,t,i){let r=this.getProviders(e),o=[],s=await Promise.allSettled(r.map(a=>Promise.resolve(a.provider.provideDeclaration(e,t,i)).then(l=>{this.addLocation(o,l)})));return this.handleResults(s,"provideDeclaration"),o}}});var QX,uNe,Df,VX=k(()=>{"use strict";qe();QX=S(W());dt();uNe=q()("definitionManager"),Df=class extends pe{register(e,t){return this.addProvider({id:oe(),selector:e,provider:t})}async provideDefinition(e,t,i){let r=this.getProviders(e),o=[],s=await Promise.allSettled(r.map(a=>Promise.resolve(a.provider.provideDefinition(e,t,i)).then(l=>{this.addLocation(o,l)})));return this.handleResults(s,"provideDefinition"),o}async provideDefinitionLinks(e,t,i){let r=this.getProviders(e),o=[],s=await Promise.allSettled(r.map(a=>Promise.resolve(a.provider.provideDefinition(e,t,i)).then(l=>{Array.isArray(l)&&l.forEach(u=>{QX.LocationLink.is(u)&&o.push(u)})})));return this.handleResults(s,"provideDefinition"),o}}});var Tf,e2=k(()=>{"use strict";qe();et();dt();Tf=class extends pe{register(e,t){return this.addProvider({id:oe(),selector:e,provider:t})}async provideDocumentColors(e,t){let i=this.getProviders(e),r=[],o=await Promise.allSettled(i.map(s=>{let{id:a}=s;return Promise.resolve(s.provider.provideDocumentColors(e,t)).then(l=>{let u=r.length==0;if(Array.isArray(l))for(let c of l)(u||!r.some(h=>ye(h.range,c.range)))&&r.push(Object.assign({source:a},c))})}));return this.handleResults(o,"provideDefinition"),r}async provideColorPresentations(e,t,i){let r=this.getProviderById(e.source);if(!r)return null;let{range:o,color:s}=e;return await Promise.resolve(r.provideColorPresentations(s,{document:t,range:o},i))}}});var kf,t2=k(()=>{"use strict";qe();dt();kf=class extends pe{register(e,t){return this.addProvider({id:oe(),selector:e,provider:t})}async provideDocumentHighlights(e,t,i){let r=this.getProviders(e),o=null;for(let s of r)try{if(o=await Promise.resolve(s.provider.provideDocumentHighlights(e,t,i)),o!=null)break}catch(a){this.handleResults([{status:"rejected",reason:a}],"provideDocumentHighlights")}return o}}});var Pf,i2=k(()=>{"use strict";qe();Cs();et();dt();Pf=class extends pe{register(e,t){return this.addProvider({id:oe(),selector:e,provider:t})}async provideDocumentLinks(e,t){let i=this.getProviders(e);if(i.length==0)return null;let r=[],o=await Promise.allSettled(i.map(s=>{let{id:a,provider:l}=s;return Promise.resolve(l.provideDocumentLinks(e,t)).then(u=>{Array.isArray(u)&&u.forEach(c=>{r.some(h=>ye(h.range,c.range))||r.push(Object.assign({source:a},c))})})}));return this.handleResults(o,"provideDocumentLinks"),r}async resolveDocumentLink(e,t){let i=this.getProviderById(e.source);if(typeof i.resolveDocumentLink=="function"){let r=await Promise.resolve(i.resolveDocumentLink(fn(e,["source"]),t));r&&Object.assign(e,r)}return e}}});var Ef,n2=k(()=>{"use strict";qe();dt();Ef=class extends pe{register(e,t){return this.addProvider({id:oe(),selector:e,provider:t})}getMetaData(e){let t=this.getProvider(e);return t?t.provider.meta??{}:null}async provideDocumentSymbols(e,t){let i=this.getProvider(e);if(!i)return null;let{provider:r}=i;return await Promise.resolve(r.provideDocumentSymbols(e,t))??[]}}});function r2(n,e){for(let t of e)if(n>=t.startLine){if(n<=t.endLine)return t;continue}else break}var Rf,o2=k(()=>{"use strict";qe();dt();Rf=class extends pe{register(e,t){return this.addProvider({id:oe(),selector:e,provider:t})}async provideFoldingRanges(e,t,i){let r=this.getProviders(e),o=[],s=await Promise.allSettled(r.map(a=>Promise.resolve(a.provider.provideFoldingRanges(e,t,i)).then(l=>{if(Array.isArray(l)&&l.length>0){if(o.length==0)o.push(...l);else for(let u of l){let c=r2(u.startLine,o);if((c==null?void 0:c.startLine)===u.startLine)continue;let h=r2(u.endLine,o);c===h&&o.push(u)}o.sort((u,c)=>u.startLine-c.startLine)}})));return this.handleResults(s,"provideFoldingRanges"),o}}});var _f,s2=k(()=>{"use strict";qe();dt();_f=class extends pe{register(e,t,i){return this.addProvider({id:oe(),selector:e,priority:i,provider:t})}async provideDocumentFormattingEdits(e,t,i){let r=this.getProvider(e);if(!r)return null;let{provider:o}=r;return await Promise.resolve(o.provideDocumentFormattingEdits(e,t,i))}}});var Lf,a2=k(()=>{"use strict";qe();dt();Lf=class extends pe{register(e,t,i){return this.addProvider({id:oe(),selector:e,provider:t,priority:i})}async provideDocumentRangeFormattingEdits(e,t,i,r){let o=this.getProvider(e);if(!o)return null;let{provider:s}=o;return await Promise.resolve(s.provideDocumentRangeFormattingEdits(e,t,i,r))}}});var l2,If,u2=k(()=>{"use strict";qe();l2=S(W());et();dt();If=class extends pe{register(e,t){return this.addProvider({id:oe(),selector:e,provider:t})}async provideHover(e,t,i){let r=this.getProviders(e),o=[],s=await Promise.allSettled(r.map(a=>Promise.resolve(a.provider.provideHover(e,t,i)).then(l=>{!l2.Hover.is(l)||o.findIndex(u=>ye(u.contents,l.contents))==-1&&o.push(l)})));return this.handleResults(s,"provideHover"),o}}});var Ff,c2=k(()=>{"use strict";qe();dt();Ff=class extends pe{register(e,t){return this.addProvider({id:oe(),selector:e,provider:t})}async provideImplementations(e,t,i){let r=this.getProviders(e),o=[],s=await Promise.allSettled(r.map(a=>Promise.resolve(a.provider.provideImplementation(e,t,i)).then(l=>{this.addLocation(o,l)})));return this.handleResults(s,"provideImplementations"),o}}});function ywe(n,e){return Me(n.position,e.position)!==0?!1:Mf(n)===Mf(e)}function vwe(n){return!n||!d2.Position.is(n.position)||n.label==null?!1:typeof n.label!="string"?Array.isArray(n.label)&&n.label.every(e=>typeof e.value=="string"):!0}function wwe(n,e){return n.label.length===0||Array.isArray(n.label)&&n.label.every(t=>t.value.length===0)?(h2.warn("INVALID inlay hint, empty label",n),!1):vwe(n)?!(e&&ft(n.position,e)!==0):(h2.warn("INVALID inlay hint",n),!1)}function Mf(n){return typeof n.label=="string"?n.label:n.label.map(e=>e.value).join("")}var d2,h2,jf,L_=k(()=>{"use strict";qe();d2=S(W());xt();dt();h2=q()("inlayHintManger"),jf=class extends pe{register(e,t){return this.addProvider({id:oe(),selector:e,provider:t})}async provideInlayHints(e,t,i){let r=this.getProviders(e),o=[];return await Promise.all(r.map(s=>{let{id:a,provider:l}=s;return Promise.resolve(l.provideInlayHints(e,t,i)).then(u=>{if(!Array.isArray(u)||i.isCancellationRequested)return;let c=o.length==0;for(let h of u)!wwe(h,t)||!c&&o.findIndex(d=>ywe(d,h))!=-1||o.push({providerId:a,...h})})})),o}async resolveInlayHint(e,t){let i=this.getProviderById(e.providerId);if(!i||typeof i.resolveInlayHint!="function"||e.resolved===!0)return e;let r=await Promise.resolve(i.resolveInlayHint(e,t));return t.isCancellationRequested?e:Object.assign(e,r,{resolved:!0})}}});var Of,g2=k(()=>{"use strict";qe();et();dt();Of=class extends pe{register(e,t){return this.addProvider({id:oe(),selector:e,provider:t})}async provideInlineValues(e,t,i,r){let o=this.getProviders(e),s=[],a=await Promise.allSettled(o.map(l=>Promise.resolve(l.provider.provideInlineValues(e,t,i,r)).then(u=>{if(!Array.isArray(u))return;let c=s.length===0;for(let h of u)(c||s.every(d=>!ye(d,h)))&&s.push(h)})));return this.handleResults(a,"provideInlineValues"),s}}});var xwe,Af,p2=k(()=>{"use strict";qe();dt();xwe=q()("linkedEditingManager"),Af=class extends pe{register(e,t){return this.addProvider({id:oe(),selector:e,provider:t})}async provideLinkedEditingRanges(e,t,i){let r=this.getProviders(e);for(let o of r){let s;try{if(s=await Promise.resolve(o.provider.provideLinkedEditingRanges(e,t,i)),s!=null)return s}catch(a){xwe.error("Error on provideLinkedEditingRanges: ",a)}}return null}}});var hHe,Nf,f2=k(()=>{"use strict";qe();ie();dt();hHe=q()("onTypeFormatManager"),Nf=class extends pe{register(e,t,i){return this.addProvider({id:oe(),selector:e,provider:t,triggerCharacters:i??[]})}couldTrigger(e,t){for(let i of this.providers){let{triggerCharacters:r,selector:o}=i;if(v.match(o,e)>0&&r.includes(t))return i.provider}return null}async onCharacterType(e,t,i,r){let s=this.getProviders(t).find(l=>l.triggerCharacters.includes(e));if(!s)return null;let a=await v.getFormatOptions(t.uri);return await Promise.resolve(s.provider.provideOnTypeFormattingEdits(t,i,e,a,r))}}});var Hf,m2=k(()=>{"use strict";qe();dt();Hf=class extends pe{register(e,t){return this.addProvider({id:oe(),selector:e,provider:t})}async provideReferences(e,t,i,r){let o=this.getProviders(e),s=[],a=await Promise.allSettled(o.map(l=>Promise.resolve(l.provider.provideReferences(e,t,i,r)).then(u=>{this.addLocation(s,u)})));return this.handleResults(a,"provideReferences"),s}}});var qf,b2=k(()=>{"use strict";qe();dt();qf=class extends pe{register(e,t){return this.addProvider({id:oe(),selector:e,provider:t})}async provideRenameEdits(e,t,i,r){let o=this.getProviders(e),s=null;for(let a of o){try{s=await Promise.resolve(a.provider.provideRenameEdits(e,t,i,r))}catch(l){this.handleResults([{status:"rejected",reason:l}],"provideRenameEdits")}if(s!=null)break}return s}async prepareRename(e,t,i){let r=this.getProviders(e);if(r=r.filter(o=>typeof o.provider.prepareRename=="function"),r.length===0)return null;for(let o of r){let s=await Promise.resolve(o.provider.prepareRename(e,t,i));if(s!=null)return s}return!1}}});var Bf,y2=k(()=>{"use strict";qe();et();xt();dt();Bf=class extends pe{register(e,t){return this.addProvider({id:oe(),selector:e,provider:t})}async provideSelectionRanges(e,t,i){let r=this.getProviders(e);if(r.length===0)return null;let o=[],s=await Promise.allSettled(r.map(l=>Promise.resolve(l.provider.provideSelectionRanges(e,t,i)).then(u=>{Array.isArray(u)&&u.length>0&&o.push(u)})));if(this.handleResults(s,"provideSelectionRanges"),o.length===0)return null;let a=o[0];if(o.length>1)for(let l=1;l<=o.length-1;l++){let u=a[0].range,c=a[a.length-1].range,h=o[l],d=h.length;Xt(c,h[0].range)&&!ye(c,h[0].range)?a.push(...h):Xt(h[d-1].range,u)&&!ye(h[d-1].range,u)&&a.unshift(...h)}for(let l=0;l<a.length-1;l++){let u=a[l];u.parent=a[l+1]}return a}}});var kHe,Wf,v2=k(()=>{"use strict";qe();dt();kHe=q()("semanticTokensManager"),Wf=class extends pe{register(e,t,i){return this.addProvider({id:oe(),selector:e,provider:t,legend:i})}getLegend(e){let t=this.getProvider(e);if(!!t)return t.legend}hasSemanticTokensEdits(e){var i;let t=(i=this.getProvider(e))==null?void 0:i.provider;return t?typeof t.provideDocumentSemanticTokensEdits=="function":!1}async provideDocumentSemanticTokens(e,t){var r;let i=(r=this.getProvider(e))==null?void 0:r.provider;return!i||typeof i.provideDocumentSemanticTokens!="function"?null:await Promise.resolve(i.provideDocumentSemanticTokens(e,t))}async provideDocumentSemanticTokensEdits(e,t,i){let r=this.getProvider(e);return!r||typeof r.provider.provideDocumentSemanticTokensEdits!="function"?null:await Promise.resolve(r.provider.provideDocumentSemanticTokensEdits(e,t,i))}}});var _He,Yf,w2=k(()=>{"use strict";qe();dt();_He=q()("semanticTokensRangeManager"),Yf=class extends pe{register(e,t,i){return this.addProvider({id:oe(),selector:e,legend:i,provider:t})}getLegend(e){let t=this.getProvider(e);if(!!t)return t.legend}async provideDocumentRangeSemanticTokens(e,t,i){let r=this.getProvider(e);if(!r)return null;let{provider:o}=r;return await Promise.resolve(o.provideDocumentRangeSemanticTokens(e,t,i))}}});var Zf,x2=k(()=>{"use strict";qe();nt();dt();Zf=class extends pe{register(e,t,i){i=Je(i)?[]:i;let r=i.reduce((o,s)=>o.concat(s.length==1?[s]:s.split(/\s*/g)),[]);return this.addProvider({id:oe(),selector:e,provider:t,triggerCharacters:r})}shouldTrigger(e,t){let i=this.getProviders(e);if(i.length===0)return!1;for(let r of i)if(r.triggerCharacters.includes(t))return!0;return!1}async provideSignatureHelp(e,t,i,r){let o=this.getProviders(e);for(let s of o){let a=await Promise.resolve(s.provider.provideSignatureHelp(e,t,i,r));if(a&&a.signatures&&a.signatures.length>0)return a}return null}}});var Jf,C2=k(()=>{"use strict";qe();dt();Jf=class extends pe{register(e,t){return this.addProvider({id:oe(),selector:e,provider:t})}async provideTypeDefinition(e,t,i){let r=this.getProviders(e),o=[],s=await Promise.allSettled(r.map(a=>Promise.resolve(a.provider.provideTypeDefinition(e,t,i)).then(l=>{this.addLocation(o,l)})));return this.handleResults(s,"provideTypeDefinition"),o}}});var $f,S2=k(()=>{"use strict";qe();dt();$f=class extends pe{register(e,t){return this.addProvider({id:oe(),selector:e,provider:t})}async prepareTypeHierarchy(e,t,i){let r=this.getProviders(e),o=[],s=await Promise.allSettled(r.map(a=>{let{provider:l,id:u}=a;return Promise.resolve(l.prepareTypeHierarchy(e,t,i)).then(c=>{if(Array.isArray(c)){let h=o.length===0;c.forEach(d=>{(h||o.every(g=>g.name!==d.name))&&o.push(Object.assign({source:u},d))})}})}));return this.handleResults(s,"prepareTypeHierarchy"),o}async provideTypeHierarchySupertypes(e,t){let{source:i}=e,r=this.getProviderById(i);return r?await Promise.resolve(r.provideTypeHierarchySupertypes(e,t)).then(o=>Array.isArray(o)?o.map(s=>Object.assign({source:i},s)):[]):[]}async provideTypeHierarchySubtypes(e,t){let{source:i}=e,r=this.getProviderById(i);return r?await Promise.resolve(r.provideTypeHierarchySubtypes(e,t)).then(o=>Array.isArray(o)?o.map(s=>Object.assign({source:i},s)):[]):[]}}});var Uf,D2=k(()=>{"use strict";qe();dt();Uf=class extends pe{register(e){return this.addProvider({id:oe(),selector:[{language:"*"}],provider:e})}async provideWorkspaceSymbols(e,t){let i=Array.from(this.providers),r=[],o=await Promise.allSettled(i.map(s=>{let{id:a,provider:l}=s;return Promise.resolve(l.provideWorkspaceSymbols(e,t)).then(u=>{u&&r.push(...u.map(c=>Object.assign({source:a},c)))})}));return this.handleResults(o,"provideWorkspaceSymbols"),r}async resolveWorkspaceSymbol(e,t){let i=this.getProviderById(e.source);return!i||typeof i.resolveWorkspaceSymbol!="function"?e:i.resolveWorkspaceSymbol(e,t)}hasProvider(){return this.providers.size>0}}});var P2=y((I_,k2)=>{var Bx=require("buffer"),Ss=Bx.Buffer;function T2(n,e){for(var t in n)e[t]=n[t]}Ss.from&&Ss.alloc&&Ss.allocUnsafe&&Ss.allocUnsafeSlow?k2.exports=Bx:(T2(Bx,I_),I_.Buffer=jh);function jh(n,e,t){return Ss(n,e,t)}T2(Ss,jh);jh.from=function(n,e,t){if(typeof n=="number")throw new TypeError("Argument must not be a number");return Ss(n,e,t)};jh.alloc=function(n,e,t){if(typeof n!="number")throw new TypeError("Argument must be a number");var i=Ss(n);return e!==void 0?typeof t=="string"?i.fill(e,t):i.fill(e):i.fill(0),i};jh.allocUnsafe=function(n){if(typeof n!="number")throw new TypeError("Argument must be a number");return Ss(n)};jh.allocUnsafeSlow=function(n){if(typeof n!="number")throw new TypeError("Argument must be a number");return Bx.SlowBuffer(n)}});var F2=y((JHe,F_)=>{"use strict";F_.exports=Iwe;F_.exports.parse=Owe;var E2=require("path").basename,Cwe=P2().Buffer,Swe=/[\x00-\x20"'()*,/:;<=>?@[\\\]{}\x7f]/g,Dwe=/%[0-9A-Fa-f]{2}/,Twe=/%([0-9A-Fa-f]{2})/g,_2=/[^\x20-\x7e\xa0-\xff]/g,kwe=/\\([\u0000-\u007f])/g,Pwe=/([\\"])/g,R2=/;[\x09\x20]*([!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*=[\x09\x20]*("(?:[\x20!\x23-\x5b\x5d-\x7e\x80-\xff]|\\[\x20-\x7e])*"|[!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*/g,Ewe=/^[\x20-\x7e\x80-\xff]+$/,Rwe=/^[!#$%&'*+.0-9A-Z^_`a-z|~-]+$/,_we=/^([A-Za-z0-9!#$%&+\-^_`{}~]+)'(?:[A-Za-z]{2,3}(?:-[A-Za-z]{3}){0,3}|[A-Za-z]{4,8}|)'((?:%[0-9A-Fa-f]{2}|[A-Za-z0-9!#$&+.^_`|~-])+)$/,Lwe=/^([!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*(?:$|;)/;function Iwe(n,e){var t=e||{},i=t.type||"attachment",r=Fwe(n,t.fallback);return jwe(new I2(i,r))}function Fwe(n,e){if(n!==void 0){var t={};if(typeof n!="string")throw new TypeError("filename must be a string");if(e===void 0&&(e=!0),typeof e!="string"&&typeof e!="boolean")throw new TypeError("fallback must be a string or boolean");if(typeof e=="string"&&_2.test(e))throw new TypeError("fallback must be ISO-8859-1 string");var i=E2(n),r=Ewe.test(i),o=typeof e!="string"?e&&L2(i):E2(e),s=typeof o=="string"&&o!==i;return(s||!r||Dwe.test(i))&&(t["filename*"]=i),(r||s)&&(t.filename=s?o:i),t}}function jwe(n){var e=n.parameters,t=n.type;if(!t||typeof t!="string"||!Rwe.test(t))throw new TypeError("invalid type");var i=String(t).toLowerCase();if(e&&typeof e=="object")for(var r,o=Object.keys(e).sort(),s=0;s<o.length;s++){r=o[s];var a=r.substr(-1)==="*"?qwe(e[r]):Hwe(e[r]);i+="; "+r+"="+a}return i}function Mwe(n){var e=_we.exec(n);if(!e)throw new TypeError("invalid extended field value");var t=e[1].toLowerCase(),i=e[2],r,o=i.replace(Twe,Awe);switch(t){case"iso-8859-1":r=L2(o);break;case"utf-8":r=Cwe.from(o,"binary").toString("utf8");break;default:throw new TypeError("unsupported charset in extended field")}return r}function L2(n){return String(n).replace(_2,"?")}function Owe(n){if(!n||typeof n!="string")throw new TypeError("argument string is required");var e=Lwe.exec(n);if(!e)throw new TypeError("invalid type format");var t=e[0].length,i=e[1].toLowerCase(),r,o=[],s={},a;for(t=R2.lastIndex=e[0].substr(-1)===";"?t-1:t;e=R2.exec(n);){if(e.index!==t)throw new TypeError("invalid parameter format");if(t+=e[0].length,r=e[1].toLowerCase(),a=e[2],o.indexOf(r)!==-1)throw new TypeError("invalid duplicate parameter");if(o.push(r),r.indexOf("*")+1===r.length){r=r.slice(0,-1),a=Mwe(a),s[r]=a;continue}typeof s[r]!="string"&&(a[0]==='"'&&(a=a.substr(1,a.length-2).replace(kwe,"$1")),s[r]=a)}if(t!==-1&&t!==n.length)throw new TypeError("invalid parameter format");return new I2(i,s)}function Awe(n,e){return String.fromCharCode(parseInt(e,16))}function Nwe(n){return"%"+String(n).charCodeAt(0).toString(16).toUpperCase()}function Hwe(n){var e=String(n);return'"'+e.replace(Pwe,"\\$1")+'"'}function qwe(n){var e=String(n),t=encodeURIComponent(e).replace(Swe,Nwe);return"UTF-8''"+t}function I2(n,e){this.type=n,this.parameters=e}});var Mh=y(($He,M2)=>{"use strict";var j2=new Map([["C","cwd"],["f","file"],["z","gzip"],["P","preservePaths"],["U","unlink"],["strip-components","strip"],["stripComponents","strip"],["keep-newer","newer"],["keepNewer","newer"],["keep-newer-files","newer"],["keepNewerFiles","newer"],["k","keep"],["keep-existing","keep"],["keepExisting","keep"],["m","noMtime"],["no-mtime","noMtime"],["p","preserveOwner"],["L","follow"],["h","follow"]]);M2.exports=n=>n?Object.keys(n).map(e=>[j2.has(e)?j2.get(e):e,n[e]]).reduce((e,t)=>(e[t[0]]=t[1],e),Object.create(null)):{}});var Oh=y((UHe,Z2)=>{"use strict";var Bwe=require("events"),O2=require("stream"),Xf=Kp(),A2=require("string_decoder").StringDecoder,Ds=Symbol("EOF"),Gf=Symbol("maybeEmitEnd"),Oa=Symbol("emittedEnd"),Wx=Symbol("emittingEnd"),Yx=Symbol("closed"),N2=Symbol("read"),j_=Symbol("flush"),H2=Symbol("flushChunk"),An=Symbol("encoding"),Ts=Symbol("decoder"),Zx=Symbol("flowing"),zf=Symbol("paused"),Kf=Symbol("resume"),mn=Symbol("bufferLength"),q2=Symbol("bufferPush"),M_=Symbol("bufferShift"),Vi=Symbol("objectMode"),en=Symbol("destroyed"),W2=global._MP_NO_ITERATOR_SYMBOLS_!=="1",Wwe=W2&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),Ywe=W2&&Symbol.iterator||Symbol("iterator not implemented"),B2=n=>n==="end"||n==="finish"||n==="prefinish",Zwe=n=>n instanceof ArrayBuffer||typeof n=="object"&&n.constructor&&n.constructor.name==="ArrayBuffer"&&n.byteLength>=0,Jwe=n=>!Buffer.isBuffer(n)&&ArrayBuffer.isView(n);Z2.exports=class Y2 extends O2{constructor(e){super(),this[Zx]=!1,this[zf]=!1,this.pipes=new Xf,this.buffer=new Xf,this[Vi]=e&&e.objectMode||!1,this[Vi]?this[An]=null:this[An]=e&&e.encoding||null,this[An]==="buffer"&&(this[An]=null),this[Ts]=this[An]?new A2(this[An]):null,this[Ds]=!1,this[Oa]=!1,this[Wx]=!1,this[Yx]=!1,this.writable=!0,this.readable=!0,this[mn]=0,this[en]=!1}get bufferLength(){return this[mn]}get encoding(){return this[An]}set encoding(e){if(this[Vi])throw new Error("cannot set encoding in objectMode");if(this[An]&&e!==this[An]&&(this[Ts]&&this[Ts].lastNeed||this[mn]))throw new Error("cannot change encoding");this[An]!==e&&(this[Ts]=e?new A2(e):null,this.buffer.length&&(this.buffer=this.buffer.map(t=>this[Ts].write(t)))),this[An]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[Vi]}set objectMode(e){this[Vi]=this[Vi]||!!e}write(e,t,i){if(this[Ds])throw new Error("write after end");return this[en]?(this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0):(typeof t=="function"&&(i=t,t="utf8"),t||(t="utf8"),!this[Vi]&&!Buffer.isBuffer(e)&&(Jwe(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):Zwe(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),!this.objectMode&&!e.length?(this[mn]!==0&&this.emit("readable"),i&&i(),this.flowing):(typeof e=="string"&&!this[Vi]&&!(t===this[An]&&!this[Ts].lastNeed)&&(e=Buffer.from(e,t)),Buffer.isBuffer(e)&&this[An]&&(e=this[Ts].write(e)),this.flowing?(this[mn]!==0&&this[j_](!0),this.emit("data",e)):this[q2](e),this[mn]!==0&&this.emit("readable"),i&&i(),this.flowing))}read(e){if(this[en])return null;try{return this[mn]===0||e===0||e>this[mn]?null:(this[Vi]&&(e=null),this.buffer.length>1&&!this[Vi]&&(this.encoding?this.buffer=new Xf([Array.from(this.buffer).join("")]):this.buffer=new Xf([Buffer.concat(Array.from(this.buffer),this[mn])])),this[N2](e||null,this.buffer.head.value))}finally{this[Gf]()}}[N2](e,t){return e===t.length||e===null?this[M_]():(this.buffer.head.value=t.slice(e),t=t.slice(0,e),this[mn]-=e),this.emit("data",t),!this.buffer.length&&!this[Ds]&&this.emit("drain"),t}end(e,t,i){return typeof e=="function"&&(i=e,e=null),typeof t=="function"&&(i=t,t="utf8"),e&&this.write(e,t),i&&this.once("end",i),this[Ds]=!0,this.writable=!1,(this.flowing||!this[zf])&&this[Gf](),this}[Kf](){this[en]||(this[zf]=!1,this[Zx]=!0,this.emit("resume"),this.buffer.length?this[j_]():this[Ds]?this[Gf]():this.emit("drain"))}resume(){return this[Kf]()}pause(){this[Zx]=!1,this[zf]=!0}get destroyed(){return this[en]}get flowing(){return this[Zx]}get paused(){return this[zf]}[q2](e){return this[Vi]?this[mn]+=1:this[mn]+=e.length,this.buffer.push(e)}[M_](){return this.buffer.length&&(this[Vi]?this[mn]-=1:this[mn]-=this.buffer.head.value.length),this.buffer.shift()}[j_](e){do;while(this[H2](this[M_]()));!e&&!this.buffer.length&&!this[Ds]&&this.emit("drain")}[H2](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,t){if(this[en])return;let i=this[Oa];t=t||{},e===process.stdout||e===process.stderr?t.end=!1:t.end=t.end!==!1;let r={dest:e,opts:t,ondrain:o=>this[Kf]()};return this.pipes.push(r),e.on("drain",r.ondrain),this[Kf](),i&&r.opts.end&&r.dest.end(),e}addListener(e,t){return this.on(e,t)}on(e,t){try{return super.on(e,t)}finally{e==="data"&&!this.pipes.length&&!this.flowing?this[Kf]():B2(e)&&this[Oa]&&(super.emit(e),this.removeAllListeners(e))}}get emittedEnd(){return this[Oa]}[Gf](){!this[Wx]&&!this[Oa]&&!this[en]&&this.buffer.length===0&&this[Ds]&&(this[Wx]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Yx]&&this.emit("close"),this[Wx]=!1)}emit(e,t){if(e!=="error"&&e!=="close"&&e!==en&&this[en])return;if(e==="data"){if(!t)return;this.pipes.length&&this.pipes.forEach(r=>r.dest.write(t)===!1&&this.pause())}else if(e==="end"){if(this[Oa]===!0)return;this[Oa]=!0,this.readable=!1,this[Ts]&&(t=this[Ts].end(),t&&(this.pipes.forEach(r=>r.dest.write(t)),super.emit("data",t))),this.pipes.forEach(r=>{r.dest.removeListener("drain",r.ondrain),r.opts.end&&r.dest.end()})}else if(e==="close"&&(this[Yx]=!0,!this[Oa]&&!this[en]))return;let i=new Array(arguments.length);if(i[0]=e,i[1]=t,arguments.length>2)for(let r=2;r<arguments.length;r++)i[r]=arguments[r];try{return super.emit.apply(this,i)}finally{B2(e)?this.removeAllListeners(e):this[Gf]()}}collect(){let e=[];this[Vi]||(e.dataLength=0);let t=this.promise();return this.on("data",i=>{e.push(i),this[Vi]||(e.dataLength+=i.length)}),t.then(()=>e)}concat(){return this[Vi]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[Vi]?Promise.reject(new Error("cannot concat in objectMode")):this[An]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,t)=>{this.on(en,()=>t(new Error("stream destroyed"))),this.on("end",()=>e()),this.on("error",i=>t(i))})}[Wwe](){return{next:()=>{let t=this.read();if(t!==null)return Promise.resolve({done:!1,value:t});if(this[Ds])return Promise.resolve({done:!0});let i=null,r=null,o=u=>{this.removeListener("data",s),this.removeListener("end",a),r(u)},s=u=>{this.removeListener("error",o),this.removeListener("end",a),this.pause(),i({value:u,done:!!this[Ds]})},a=()=>{this.removeListener("error",o),this.removeListener("data",s),i({done:!0})},l=()=>o(new Error("stream destroyed"));return new Promise((u,c)=>{r=c,i=u,this.once(en,l),this.once("error",o),this.once("end",a),this.once("data",s)})}}}[Ywe](){return{next:()=>{let t=this.read();return{value:t,done:t===null}}}}destroy(e){return this[en]?(e?this.emit("error",e):this.emit(en),this):(this[en]=!0,this.buffer=new Xf,this[mn]=0,typeof this.close=="function"&&!this[Yx]&&this.close(),e?this.emit("error",e):this.emit(en),this)}static isStream(e){return!!e&&(e instanceof Y2||e instanceof O2||e instanceof Bwe&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var $2=y((XHe,J2)=>{var $we=require("zlib").constants||{ZLIB_VERNUM:4736};J2.exports=Object.freeze(Object.assign(Object.create(null),{Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_VERSION_ERROR:-6,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,DEFLATE:1,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:7,BROTLI_DECODE:8,BROTLI_ENCODE:9,Z_MIN_WINDOWBITS:8,Z_MAX_WINDOWBITS:15,Z_DEFAULT_WINDOWBITS:15,Z_MIN_CHUNK:64,Z_MAX_CHUNK:1/0,Z_DEFAULT_CHUNK:16384,Z_MIN_MEMLEVEL:1,Z_MAX_MEMLEVEL:9,Z_DEFAULT_MEMLEVEL:8,Z_MIN_LEVEL:-1,Z_MAX_LEVEL:9,Z_DEFAULT_LEVEL:-1,BROTLI_OPERATION_PROCESS:0,BROTLI_OPERATION_FLUSH:1,BROTLI_OPERATION_FINISH:2,BROTLI_OPERATION_EMIT_METADATA:3,BROTLI_MODE_GENERIC:0,BROTLI_MODE_TEXT:1,BROTLI_MODE_FONT:2,BROTLI_DEFAULT_MODE:0,BROTLI_MIN_QUALITY:0,BROTLI_MAX_QUALITY:11,BROTLI_DEFAULT_QUALITY:11,BROTLI_MIN_WINDOW_BITS:10,BROTLI_MAX_WINDOW_BITS:24,BROTLI_LARGE_MAX_WINDOW_BITS:30,BROTLI_DEFAULT_WINDOW:22,BROTLI_MIN_INPUT_BLOCK_BITS:16,BROTLI_MAX_INPUT_BLOCK_BITS:24,BROTLI_PARAM_MODE:0,BROTLI_PARAM_QUALITY:1,BROTLI_PARAM_LGWIN:2,BROTLI_PARAM_LGBLOCK:3,BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING:4,BROTLI_PARAM_SIZE_HINT:5,BROTLI_PARAM_LARGE_WINDOW:6,BROTLI_PARAM_NPOSTFIX:7,BROTLI_PARAM_NDIRECT:8,BROTLI_DECODER_RESULT_ERROR:0,BROTLI_DECODER_RESULT_SUCCESS:1,BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT:2,BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION:0,BROTLI_DECODER_PARAM_LARGE_WINDOW:1,BROTLI_DECODER_NO_ERROR:0,BROTLI_DECODER_SUCCESS:1,BROTLI_DECODER_NEEDS_MORE_INPUT:2,BROTLI_DECODER_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE:-1,BROTLI_DECODER_ERROR_FORMAT_RESERVED:-2,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE:-3,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET:-4,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME:-5,BROTLI_DECODER_ERROR_FORMAT_CL_SPACE:-6,BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE:-7,BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT:-8,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1:-9,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2:-10,BROTLI_DECODER_ERROR_FORMAT_TRANSFORM:-11,BROTLI_DECODER_ERROR_FORMAT_DICTIONARY:-12,BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS:-13,BROTLI_DECODER_ERROR_FORMAT_PADDING_1:-14,BROTLI_DECODER_ERROR_FORMAT_PADDING_2:-15,BROTLI_DECODER_ERROR_FORMAT_DISTANCE:-16,BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET:-19,BROTLI_DECODER_ERROR_INVALID_ARGUMENTS:-20,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES:-21,BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS:-22,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP:-25,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1:-26,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2:-27,BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES:-30,BROTLI_DECODER_ERROR_UNREACHABLE:-31},$we))});var K_=y(nr=>{"use strict";var q_=require("assert"),Aa=require("buffer").Buffer,G2=require("zlib"),uu=nr.constants=$2(),Uwe=Oh(),U2=Aa.concat,cu=Symbol("_superWrite"),Nh=class extends Error{constructor(e){super("zlib: "+e.message),this.code=e.code,this.errno=e.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+e.message,Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}},Xwe=Symbol("opts"),Qf=Symbol("flushFlag"),X2=Symbol("finishFlushFlag"),z_=Symbol("fullFlushFlag"),Ct=Symbol("handle"),Jx=Symbol("onError"),Ah=Symbol("sawError"),O_=Symbol("level"),A_=Symbol("strategy"),N_=Symbol("ended"),GHe=Symbol("_defaultFullFlush"),$x=class extends Uwe{constructor(e,t){if(!e||typeof e!="object")throw new TypeError("invalid options for ZlibBase constructor");super(e),this[Ah]=!1,this[N_]=!1,this[Xwe]=e,this[Qf]=e.flush,this[X2]=e.finishFlush;try{this[Ct]=new G2[t](e)}catch(i){throw new Nh(i)}this[Jx]=i=>{this[Ah]||(this[Ah]=!0,this.close(),this.emit("error",i))},this[Ct].on("error",i=>this[Jx](new Nh(i))),this.once("end",()=>this.close)}close(){this[Ct]&&(this[Ct].close(),this[Ct]=null,this.emit("close"))}reset(){if(!this[Ah])return q_(this[Ct],"zlib binding closed"),this[Ct].reset()}flush(e){this.ended||(typeof e!="number"&&(e=this[z_]),this.write(Object.assign(Aa.alloc(0),{[Qf]:e})))}end(e,t,i){return e&&this.write(e,t),this.flush(this[X2]),this[N_]=!0,super.end(null,null,i)}get ended(){return this[N_]}write(e,t,i){if(typeof t=="function"&&(i=t,t="utf8"),typeof e=="string"&&(e=Aa.from(e,t)),this[Ah])return;q_(this[Ct],"zlib binding closed");let r=this[Ct]._handle,o=r.close;r.close=()=>{};let s=this[Ct].close;this[Ct].close=()=>{},Aa.concat=u=>u;let a;try{let u=typeof e[Qf]=="number"?e[Qf]:this[Qf];a=this[Ct]._processChunk(e,u),Aa.concat=U2}catch(u){Aa.concat=U2,this[Jx](new Nh(u))}finally{this[Ct]&&(this[Ct]._handle=r,r.close=o,this[Ct].close=s,this[Ct].removeAllListeners("error"))}this[Ct]&&this[Ct].on("error",u=>this[Jx](new Nh(u)));let l;if(a)if(Array.isArray(a)&&a.length>0){l=this[cu](Aa.from(a[0]));for(let u=1;u<a.length;u++)l=this[cu](a[u])}else l=this[cu](Aa.from(a));return i&&i(),l}[cu](e){return super.write(e)}},ks=class extends $x{constructor(e,t){e=e||{},e.flush=e.flush||uu.Z_NO_FLUSH,e.finishFlush=e.finishFlush||uu.Z_FINISH,super(e,t),this[z_]=uu.Z_FULL_FLUSH,this[O_]=e.level,this[A_]=e.strategy}params(e,t){if(!this[Ah]){if(!this[Ct])throw new Error("cannot switch params when binding is closed");if(!this[Ct].params)throw new Error("not supported in this implementation");if(this[O_]!==e||this[A_]!==t){this.flush(uu.Z_SYNC_FLUSH),q_(this[Ct],"zlib binding closed");let i=this[Ct].flush;this[Ct].flush=(r,o)=>{this.flush(r),o()};try{this[Ct].params(e,t)}finally{this[Ct].flush=i}this[Ct]&&(this[O_]=e,this[A_]=t)}}}},B_=class extends ks{constructor(e){super(e,"Deflate")}},W_=class extends ks{constructor(e){super(e,"Inflate")}},H_=Symbol("_portable"),Y_=class extends ks{constructor(e){super(e,"Gzip"),this[H_]=e&&!!e.portable}[cu](e){return this[H_]?(this[H_]=!1,e[9]=255,super[cu](e)):super[cu](e)}},Z_=class extends ks{constructor(e){super(e,"Gunzip")}},J_=class extends ks{constructor(e){super(e,"DeflateRaw")}},$_=class extends ks{constructor(e){super(e,"InflateRaw")}},U_=class extends ks{constructor(e){super(e,"Unzip")}},Ux=class extends $x{constructor(e,t){e=e||{},e.flush=e.flush||uu.BROTLI_OPERATION_PROCESS,e.finishFlush=e.finishFlush||uu.BROTLI_OPERATION_FINISH,super(e,t),this[z_]=uu.BROTLI_OPERATION_FLUSH}},X_=class extends Ux{constructor(e){super(e,"BrotliCompress")}},G_=class extends Ux{constructor(e){super(e,"BrotliDecompress")}};nr.Deflate=B_;nr.Inflate=W_;nr.Gzip=Y_;nr.Gunzip=Z_;nr.DeflateRaw=J_;nr.InflateRaw=$_;nr.Unzip=U_;typeof G2.BrotliCompress=="function"?(nr.BrotliCompress=X_,nr.BrotliDecompress=G_):nr.BrotliCompress=nr.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}});var Hh=y((QHe,z2)=>{var Gwe=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;z2.exports=Gwe!=="win32"?n=>n:n=>n&&n.replace(/\\/g,"/")});var Xx=y((eqe,K2)=>{"use strict";var zwe=Oh(),Q_=Hh(),V_=Symbol("slurp");K2.exports=class extends zwe{constructor(e,t,i){switch(super(),this.pause(),this.extended=t,this.globalExtended=i,this.header=e,this.startBlockSize=512*Math.ceil(e.size/512),this.blockRemain=this.startBlockSize,this.remain=e.size,this.type=e.type,this.meta=!1,this.ignore=!1,this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=!0;break;default:this.ignore=!0}this.path=Q_(e.path),this.mode=e.mode,this.mode&&(this.mode=this.mode&4095),this.uid=e.uid,this.gid=e.gid,this.uname=e.uname,this.gname=e.gname,this.size=e.size,this.mtime=e.mtime,this.atime=e.atime,this.ctime=e.ctime,this.linkpath=Q_(e.linkpath),this.uname=e.uname,this.gname=e.gname,t&&this[V_](t),i&&this[V_](i,!0)}write(e){let t=e.length;if(t>this.blockRemain)throw new Error("writing more to entry than is appropriate");let i=this.remain,r=this.blockRemain;return this.remain=Math.max(0,i-t),this.blockRemain=Math.max(0,r-t),this.ignore?!0:i>=t?super.write(e):super.write(e.slice(0,i))}[V_](e,t){for(let i in e)e[i]!==null&&e[i]!==void 0&&!(t&&i==="path")&&(this[i]=i==="path"||i==="linkpath"?Q_(e[i]):e[i])}}});var eL=y(Gx=>{"use strict";Gx.name=new Map([["0","File"],["","OldFile"],["1","Link"],["2","SymbolicLink"],["3","CharacterDevice"],["4","BlockDevice"],["5","Directory"],["6","FIFO"],["7","ContiguousFile"],["g","GlobalExtendedHeader"],["x","ExtendedHeader"],["A","SolarisACL"],["D","GNUDumpDir"],["I","Inode"],["K","NextFileHasLongLinkpath"],["L","NextFileHasLongPath"],["M","ContinuationFile"],["N","OldGnuLongPath"],["S","SparseFile"],["V","TapeVolumeHeader"],["X","OldExtendedHeader"]]);Gx.code=new Map(Array.from(Gx.name).map(n=>[n[1],n[0]]))});var tG=y((iqe,eG)=>{"use strict";var Kwe=(n,e)=>{if(Number.isSafeInteger(n))n<0?Vwe(n,e):Qwe(n,e);else throw Error("cannot encode number outside of javascript safe integer range");return e},Qwe=(n,e)=>{e[0]=128;for(var t=e.length;t>1;t--)e[t-1]=n&255,n=Math.floor(n/256)},Vwe=(n,e)=>{e[0]=255;var t=!1;n=n*-1;for(var i=e.length;i>1;i--){var r=n&255;n=Math.floor(n/256),t?e[i-1]=Q2(r):r===0?e[i-1]=0:(t=!0,e[i-1]=V2(r))}},exe=n=>{let e=n[0],t=e===128?ixe(n.slice(1,n.length)):e===255?txe(n):null;if(t===null)throw Error("invalid base256 encoding");if(!Number.isSafeInteger(t))throw Error("parsed number outside of javascript safe integer range");return t},txe=n=>{for(var e=n.length,t=0,i=!1,r=e-1;r>-1;r--){var o=n[r],s;i?s=Q2(o):o===0?s=o:(i=!0,s=V2(o)),s!==0&&(t-=s*Math.pow(256,e-r-1))}return t},ixe=n=>{for(var e=n.length,t=0,i=e-1;i>-1;i--){var r=n[i];r!==0&&(t+=r*Math.pow(256,e-i-1))}return t},Q2=n=>(255^n)&255,V2=n=>(255^n)+1&255;eG.exports={encode:Kwe,parse:exe}});var Bh=y((nqe,nG)=>{"use strict";var tL=eL(),qh=require("path").posix,iG=tG(),iL=Symbol("slurp"),rr=Symbol("type"),oL=class{constructor(e,t,i,r){this.cksumValid=!1,this.needPax=!1,this.nullBlock=!1,this.block=null,this.path=null,this.mode=null,this.uid=null,this.gid=null,this.size=null,this.mtime=null,this.cksum=null,this[rr]="0",this.linkpath=null,this.uname=null,this.gname=null,this.devmaj=0,this.devmin=0,this.atime=null,this.ctime=null,Buffer.isBuffer(e)?this.decode(e,t||0,i,r):e&&this.set(e)}decode(e,t,i,r){if(t||(t=0),!e||!(e.length>=t+512))throw new Error("need 512 bytes for header");if(this.path=hu(e,t,100),this.mode=Na(e,t+100,8),this.uid=Na(e,t+108,8),this.gid=Na(e,t+116,8),this.size=Na(e,t+124,12),this.mtime=nL(e,t+136,12),this.cksum=Na(e,t+148,12),this[iL](i),this[iL](r,!0),this[rr]=hu(e,t+156,1),this[rr]===""&&(this[rr]="0"),this[rr]==="0"&&this.path.substr(-1)==="/"&&(this[rr]="5"),this[rr]==="5"&&(this.size=0),this.linkpath=hu(e,t+157,100),e.slice(t+257,t+265).toString()==="ustar\x0000")if(this.uname=hu(e,t+265,32),this.gname=hu(e,t+297,32),this.devmaj=Na(e,t+329,8),this.devmin=Na(e,t+337,8),e[t+475]!==0){let s=hu(e,t+345,155);this.path=s+"/"+this.path}else{let s=hu(e,t+345,130);s&&(this.path=s+"/"+this.path),this.atime=nL(e,t+476,12),this.ctime=nL(e,t+488,12)}let o=8*32;for(let s=t;s<t+148;s++)o+=e[s];for(let s=t+156;s<t+512;s++)o+=e[s];this.cksumValid=o===this.cksum,this.cksum===null&&o===8*32&&(this.nullBlock=!0)}[iL](e,t){for(let i in e)e[i]!==null&&e[i]!==void 0&&!(t&&i==="path")&&(this[i]=e[i])}encode(e,t){if(e||(e=this.block=Buffer.alloc(512),t=0),t||(t=0),!(e.length>=t+512))throw new Error("need 512 bytes for header");let i=this.ctime||this.atime?130:155,r=nxe(this.path||"",i),o=r[0],s=r[1];this.needPax=r[2],this.needPax=du(e,t,100,o)||this.needPax,this.needPax=Ha(e,t+100,8,this.mode)||this.needPax,this.needPax=Ha(e,t+108,8,this.uid)||this.needPax,this.needPax=Ha(e,t+116,8,this.gid)||this.needPax,this.needPax=Ha(e,t+124,12,this.size)||this.needPax,this.needPax=rL(e,t+136,12,this.mtime)||this.needPax,e[t+156]=this[rr].charCodeAt(0),this.needPax=du(e,t+157,100,this.linkpath)||this.needPax,e.write("ustar\x0000",t+257,8),this.needPax=du(e,t+265,32,this.uname)||this.needPax,this.needPax=du(e,t+297,32,this.gname)||this.needPax,this.needPax=Ha(e,t+329,8,this.devmaj)||this.needPax,this.needPax=Ha(e,t+337,8,this.devmin)||this.needPax,this.needPax=du(e,t+345,i,s)||this.needPax,e[t+475]!==0?this.needPax=du(e,t+345,155,s)||this.needPax:(this.needPax=du(e,t+345,130,s)||this.needPax,this.needPax=rL(e,t+476,12,this.atime)||this.needPax,this.needPax=rL(e,t+488,12,this.ctime)||this.needPax);let a=8*32;for(let l=t;l<t+148;l++)a+=e[l];for(let l=t+156;l<t+512;l++)a+=e[l];return this.cksum=a,Ha(e,t+148,8,this.cksum),this.cksumValid=!0,this.needPax}set(e){for(let t in e)e[t]!==null&&e[t]!==void 0&&(this[t]=e[t])}get type(){return tL.name.get(this[rr])||this[rr]}get typeKey(){return this[rr]}set type(e){tL.code.has(e)?this[rr]=tL.code.get(e):this[rr]=e}},nxe=(n,e)=>{let i=n,r="",o,s=qh.parse(n).root||".";if(Buffer.byteLength(i)<100)o=[i,r,!1];else{r=qh.dirname(i),i=qh.basename(i);do Buffer.byteLength(i)<=100&&Buffer.byteLength(r)<=e?o=[i,r,!1]:Buffer.byteLength(i)>100&&Buffer.byteLength(r)<=e?o=[i.substr(0,100-1),r,!0]:(i=qh.join(qh.basename(r),i),r=qh.dirname(r));while(r!==s&&!o);o||(o=[n.substr(0,100-1),"",!0])}return o},hu=(n,e,t)=>n.slice(e,e+t).toString("utf8").replace(/\0.*/,""),nL=(n,e,t)=>rxe(Na(n,e,t)),rxe=n=>n===null?null:new Date(n*1e3),Na=(n,e,t)=>n[e]&128?iG.parse(n.slice(e,e+t)):sxe(n,e,t),oxe=n=>isNaN(n)?null:n,sxe=(n,e,t)=>oxe(parseInt(n.slice(e,e+t).toString("utf8").replace(/\0.*$/,"").trim(),8)),axe={12:8589934591,8:2097151},Ha=(n,e,t,i)=>i===null?!1:i>axe[t]||i<0?(iG.encode(i,n.slice(e,e+t)),!0):(lxe(n,e,t,i),!1),lxe=(n,e,t,i)=>n.write(uxe(i,t),e,t,"ascii"),uxe=(n,e)=>cxe(Math.floor(n).toString(8),e),cxe=(n,e)=>(n.length===e-1?n:new Array(e-n.length-1).join("0")+n+" ")+"\0",rL=(n,e,t,i)=>i===null?!1:Ha(n,e,t,i.getTime()/1e3),hxe=new Array(156).join("\0"),du=(n,e,t,i)=>i===null?!1:(n.write(i+hxe,e,t,"utf8"),i.length!==Buffer.byteLength(i)||i.length>t);nG.exports=oL});var zx=y((rqe,rG)=>{"use strict";var dxe=Bh(),gxe=require("path"),Vf=class{constructor(e,t){this.atime=e.atime||null,this.charset=e.charset||null,this.comment=e.comment||null,this.ctime=e.ctime||null,this.gid=e.gid||null,this.gname=e.gname||null,this.linkpath=e.linkpath||null,this.mtime=e.mtime||null,this.path=e.path||null,this.size=e.size||null,this.uid=e.uid||null,this.uname=e.uname||null,this.dev=e.dev||null,this.ino=e.ino||null,this.nlink=e.nlink||null,this.global=t||!1}encode(){let e=this.encodeBody();if(e==="")return null;let t=Buffer.byteLength(e),i=512*Math.ceil(1+t/512),r=Buffer.allocUnsafe(i);for(let o=0;o<512;o++)r[o]=0;new dxe({path:("PaxHeader/"+gxe.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:t,mtime:this.mtime||null,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime||null,ctime:this.ctime||null}).encode(r),r.write(e,512,t,"utf8");for(let o=t+512;o<r.length;o++)r[o]=0;return r}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(e){if(this[e]===null||this[e]===void 0)return"";let t=this[e]instanceof Date?this[e].getTime()/1e3:this[e],i=" "+(e==="dev"||e==="ino"||e==="nlink"?"SCHILY.":"")+e+"="+t+`
|
||
`,r=Buffer.byteLength(i),o=Math.floor(Math.log(r)/Math.log(10))+1;return r+o>=Math.pow(10,o)&&(o+=1),o+r+i}};Vf.parse=(n,e,t)=>new Vf(pxe(fxe(n),e),t);var pxe=(n,e)=>e?Object.keys(n).reduce((t,i)=>(t[i]=n[i],t),e):n,fxe=n=>n.replace(/\n$/,"").split(`
|
||
`).reduce(mxe,Object.create(null)),mxe=(n,e)=>{let t=parseInt(e,10);if(t!==Buffer.byteLength(e)+1)return n;e=e.substr((t+" ").length);let i=e.split("="),r=i.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!r)return n;let o=i.join("=");return n[r]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(r)?new Date(o*1e3):/^[0-9]+$/.test(o)?+o:o,n};rG.exports=Vf});var Wh=y((oqe,oG)=>{oG.exports=n=>{let e=n.length-1,t=-1;for(;e>-1&&n.charAt(e)==="/";)t=e,e--;return t===-1?n:n.slice(0,t)}});var Kx=y((sqe,sG)=>{"use strict";sG.exports=n=>class extends n{warn(e,t,i={}){this.file&&(i.file=this.file),this.cwd&&(i.cwd=this.cwd),i.code=t instanceof Error&&t.code||e,i.tarCode=e,!this.strict&&i.recoverable!==!1?(t instanceof Error&&(i=Object.assign(t,i),t=t.message),this.emit("warn",i.tarCode,t,i)):t instanceof Error?this.emit("error",Object.assign(t,i)):this.emit("error",Object.assign(new Error(`${e}: ${t}`),i))}}});var aL=y((lqe,aG)=>{"use strict";var Qx=["|","<",">","?",":"],sL=Qx.map(n=>String.fromCharCode(61440+n.charCodeAt(0))),bxe=new Map(Qx.map((n,e)=>[n,sL[e]])),yxe=new Map(sL.map((n,e)=>[n,Qx[e]]));aG.exports={encode:n=>Qx.reduce((e,t)=>e.split(t).join(bxe.get(t)),n),decode:n=>sL.reduce((e,t)=>e.split(t).join(yxe.get(t)),n)}});var lL=y((uqe,uG)=>{var{isAbsolute:vxe,parse:lG}=require("path").win32;uG.exports=n=>{let e="",t=lG(n);for(;vxe(n)||t.root;){let i=n.charAt(0)==="/"&&n.slice(0,4)!=="//?/"?"/":t.root;n=n.substr(i.length),e+=i,t=lG(n)}return[e,n]}});var hG=y((cqe,cG)=>{"use strict";cG.exports=(n,e,t)=>(n&=4095,t&&(n=(n|384)&-19),e&&(n&256&&(n|=64),n&32&&(n|=8),n&4&&(n|=1)),n)});var yL=y((gqe,TG)=>{"use strict";var yG=Oh(),vG=zx(),wG=Bh(),Mo=require("fs"),dG=require("path"),jo=Hh(),wxe=Wh(),xG=(n,e)=>e?(n=jo(n).replace(/^\.(\/|$)/,""),wxe(e)+"/"+n):jo(n),xxe=16*1024*1024,gG=Symbol("process"),pG=Symbol("file"),fG=Symbol("directory"),cL=Symbol("symlink"),mG=Symbol("hardlink"),em=Symbol("header"),Vx=Symbol("read"),hL=Symbol("lstat"),eC=Symbol("onlstat"),dL=Symbol("onread"),gL=Symbol("onreadlink"),pL=Symbol("openfile"),fL=Symbol("onopenfile"),qa=Symbol("close"),tC=Symbol("mode"),mL=Symbol("awaitDrain"),uL=Symbol("ondrain"),Oo=Symbol("prefix"),bG=Symbol("hadError"),CG=Kx(),Cxe=aL(),SG=lL(),DG=hG(),iC=CG(class extends yG{constructor(e,t){if(t=t||{},super(t),typeof e!="string")throw new TypeError("path is required");this.path=jo(e),this.portable=!!t.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=t.maxReadSize||xxe,this.linkCache=t.linkCache||new Map,this.statCache=t.statCache||new Map,this.preservePaths=!!t.preservePaths,this.cwd=jo(t.cwd||process.cwd()),this.strict=!!t.strict,this.noPax=!!t.noPax,this.noMtime=!!t.noMtime,this.mtime=t.mtime||null,this.prefix=t.prefix?jo(t.prefix):null,this.fd=null,this.blockLen=null,this.blockRemain=null,this.buf=null,this.offset=null,this.length=null,this.pos=null,this.remain=null,typeof t.onwarn=="function"&&this.on("warn",t.onwarn);let i=!1;if(!this.preservePaths){let[r,o]=SG(this.path);r&&(this.path=o,i=r)}this.win32=!!t.win32||process.platform==="win32",this.win32&&(this.path=Cxe.decode(this.path.replace(/\\/g,"/")),e=e.replace(/\\/g,"/")),this.absolute=jo(t.absolute||dG.resolve(this.cwd,e)),this.path===""&&(this.path="./"),i&&this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:this,path:i+this.path}),this.statCache.has(this.absolute)?this[eC](this.statCache.get(this.absolute)):this[hL]()}emit(e,...t){return e==="error"&&(this[bG]=!0),super.emit(e,...t)}[hL](){Mo.lstat(this.absolute,(e,t)=>{if(e)return this.emit("error",e);this[eC](t)})}[eC](e){this.statCache.set(this.absolute,e),this.stat=e,e.isFile()||(e.size=0),this.type=Dxe(e),this.emit("stat",e),this[gG]()}[gG](){switch(this.type){case"File":return this[pG]();case"Directory":return this[fG]();case"SymbolicLink":return this[cL]();default:return this.end()}}[tC](e){return DG(e,this.type==="Directory",this.portable)}[Oo](e){return xG(e,this.prefix)}[em](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new wG({path:this[Oo](this.path),linkpath:this.type==="Link"?this[Oo](this.linkpath):this.linkpath,mode:this[tC](this.stat.mode),uid:this.portable?null:this.stat.uid,gid:this.portable?null:this.stat.gid,size:this.stat.size,mtime:this.noMtime?null:this.mtime||this.stat.mtime,type:this.type,uname:this.portable?null:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?null:this.stat.atime,ctime:this.portable?null:this.stat.ctime}),this.header.encode()&&!this.noPax&&super.write(new vG({atime:this.portable?null:this.header.atime,ctime:this.portable?null:this.header.ctime,gid:this.portable?null:this.header.gid,mtime:this.noMtime?null:this.mtime||this.header.mtime,path:this[Oo](this.path),linkpath:this.type==="Link"?this[Oo](this.linkpath):this.linkpath,size:this.header.size,uid:this.portable?null:this.header.uid,uname:this.portable?null:this.header.uname,dev:this.portable?null:this.stat.dev,ino:this.portable?null:this.stat.ino,nlink:this.portable?null:this.stat.nlink}).encode()),super.write(this.header.block)}[fG](){this.path.substr(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[em](),this.end()}[cL](){Mo.readlink(this.absolute,(e,t)=>{if(e)return this.emit("error",e);this[gL](t)})}[gL](e){this.linkpath=jo(e),this[em](),this.end()}[mG](e){this.type="Link",this.linkpath=jo(dG.relative(this.cwd,e)),this.stat.size=0,this[em](),this.end()}[pG](){if(this.stat.nlink>1){let e=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(e)){let t=this.linkCache.get(e);if(t.indexOf(this.cwd)===0)return this[mG](t)}this.linkCache.set(e,this.absolute)}if(this[em](),this.stat.size===0)return this.end();this[pL]()}[pL](){Mo.open(this.absolute,"r",(e,t)=>{if(e)return this.emit("error",e);this[fL](t)})}[fL](e){if(this.fd=e,this[bG])return this[qa]();this.blockLen=512*Math.ceil(this.stat.size/512),this.blockRemain=this.blockLen;let t=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(t),this.offset=0,this.pos=0,this.remain=this.stat.size,this.length=this.buf.length,this[Vx]()}[Vx](){let{fd:e,buf:t,offset:i,length:r,pos:o}=this;Mo.read(e,t,i,r,o,(s,a)=>{if(s)return this[qa](()=>this.emit("error",s));this[dL](a)})}[qa](e){Mo.close(this.fd,e)}[dL](e){if(e<=0&&this.remain>0){let r=new Error("encountered unexpected EOF");return r.path=this.absolute,r.syscall="read",r.code="EOF",this[qa](()=>this.emit("error",r))}if(e>this.remain){let r=new Error("did not encounter expected EOF");return r.path=this.absolute,r.syscall="read",r.code="EOF",this[qa](()=>this.emit("error",r))}if(e===this.remain)for(let r=e;r<this.length&&e<this.blockRemain;r++)this.buf[r+this.offset]=0,e++,this.remain++;let t=this.offset===0&&e===this.buf.length?this.buf:this.buf.slice(this.offset,this.offset+e);this.write(t)?this[uL]():this[mL](()=>this[uL]())}[mL](e){this.once("drain",e)}write(e){if(this.blockRemain<e.length){let t=new Error("writing more data than expected");return t.path=this.absolute,this.emit("error",t)}return this.remain-=e.length,this.blockRemain-=e.length,this.pos+=e.length,this.offset+=e.length,super.write(e)}[uL](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[qa](e=>e?this.emit("error",e):this.end());this.offset>=this.length&&(this.buf=Buffer.allocUnsafe(Math.min(this.blockRemain,this.buf.length)),this.offset=0),this.length=this.buf.length-this.offset,this[Vx]()}}),bL=class extends iC{[hL](){this[eC](Mo.lstatSync(this.absolute))}[cL](){this[gL](Mo.readlinkSync(this.absolute))}[pL](){this[fL](Mo.openSync(this.absolute,"r"))}[Vx](){let e=!0;try{let{fd:t,buf:i,offset:r,length:o,pos:s}=this,a=Mo.readSync(t,i,r,o,s);this[dL](a),e=!1}finally{if(e)try{this[qa](()=>{})}catch{}}}[mL](e){e()}[qa](e){Mo.closeSync(this.fd),e()}},Sxe=CG(class extends yG{constructor(e,t){t=t||{},super(t),this.preservePaths=!!t.preservePaths,this.portable=!!t.portable,this.strict=!!t.strict,this.noPax=!!t.noPax,this.noMtime=!!t.noMtime,this.readEntry=e,this.type=e.type,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.prefix=t.prefix||null,this.path=jo(e.path),this.mode=this[tC](e.mode),this.uid=this.portable?null:e.uid,this.gid=this.portable?null:e.gid,this.uname=this.portable?null:e.uname,this.gname=this.portable?null:e.gname,this.size=e.size,this.mtime=this.noMtime?null:t.mtime||e.mtime,this.atime=this.portable?null:e.atime,this.ctime=this.portable?null:e.ctime,this.linkpath=jo(e.linkpath),typeof t.onwarn=="function"&&this.on("warn",t.onwarn);let i=!1;if(!this.preservePaths){let[r,o]=SG(this.path);r&&(this.path=o,i=r)}this.remain=e.size,this.blockRemain=e.startBlockSize,this.header=new wG({path:this[Oo](this.path),linkpath:this.type==="Link"?this[Oo](this.linkpath):this.linkpath,mode:this.mode,uid:this.portable?null:this.uid,gid:this.portable?null:this.gid,size:this.size,mtime:this.noMtime?null:this.mtime,type:this.type,uname:this.portable?null:this.uname,atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime}),i&&this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:this,path:i+this.path}),this.header.encode()&&!this.noPax&&super.write(new vG({atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime,gid:this.portable?null:this.gid,mtime:this.noMtime?null:this.mtime,path:this[Oo](this.path),linkpath:this.type==="Link"?this[Oo](this.linkpath):this.linkpath,size:this.size,uid:this.portable?null:this.uid,uname:this.portable?null:this.uname,dev:this.portable?null:this.readEntry.dev,ino:this.portable?null:this.readEntry.ino,nlink:this.portable?null:this.readEntry.nlink}).encode()),super.write(this.header.block),e.pipe(this)}[Oo](e){return xG(e,this.prefix)}[tC](e){return DG(e,this.type==="Directory",this.portable)}write(e){let t=e.length;if(t>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=t,super.write(e)}end(){return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),super.end()}});iC.Sync=bL;iC.Tar=Sxe;var Dxe=n=>n.isFile()?"File":n.isDirectory()?"Directory":n.isSymbolicLink()?"SymbolicLink":"Unsupported";TG.exports=iC});var hC=y((fqe,IG)=>{"use strict";var uC=class{constructor(e,t){this.path=e||"./",this.absolute=t,this.entry=null,this.stat=null,this.readdir=null,this.pending=!1,this.ignore=!1,this.piped=!1}},Txe=Oh(),kxe=K_(),Pxe=Xx(),PL=yL(),Exe=PL.Sync,Rxe=PL.Tar,_xe=Kp(),kG=Buffer.alloc(1024),oC=Symbol("onStat"),nC=Symbol("ended"),Ao=Symbol("queue"),Yh=Symbol("current"),gu=Symbol("process"),rC=Symbol("processing"),PG=Symbol("processJob"),No=Symbol("jobs"),vL=Symbol("jobDone"),sC=Symbol("addFSEntry"),EG=Symbol("addTarEntry"),SL=Symbol("stat"),DL=Symbol("readdir"),aC=Symbol("onreaddir"),lC=Symbol("pipe"),RG=Symbol("entry"),wL=Symbol("entryOpt"),TL=Symbol("writeEntryClass"),LG=Symbol("write"),xL=Symbol("ondrain"),cC=require("fs"),_G=require("path"),Lxe=Kx(),CL=Hh(),EL=Lxe(class extends Txe{constructor(e){super(e),e=e||Object.create(null),this.opt=e,this.file=e.file||"",this.cwd=e.cwd||process.cwd(),this.maxReadSize=e.maxReadSize,this.preservePaths=!!e.preservePaths,this.strict=!!e.strict,this.noPax=!!e.noPax,this.prefix=CL(e.prefix||""),this.linkCache=e.linkCache||new Map,this.statCache=e.statCache||new Map,this.readdirCache=e.readdirCache||new Map,this[TL]=PL,typeof e.onwarn=="function"&&this.on("warn",e.onwarn),this.portable=!!e.portable,this.zip=null,e.gzip?(typeof e.gzip!="object"&&(e.gzip={}),this.portable&&(e.gzip.portable=!0),this.zip=new kxe.Gzip(e.gzip),this.zip.on("data",t=>super.write(t)),this.zip.on("end",t=>super.end()),this.zip.on("drain",t=>this[xL]()),this.on("resume",t=>this.zip.resume())):this.on("drain",this[xL]),this.noDirRecurse=!!e.noDirRecurse,this.follow=!!e.follow,this.noMtime=!!e.noMtime,this.mtime=e.mtime||null,this.filter=typeof e.filter=="function"?e.filter:t=>!0,this[Ao]=new _xe,this[No]=0,this.jobs=+e.jobs||4,this[rC]=!1,this[nC]=!1}[LG](e){return super.write(e)}add(e){return this.write(e),this}end(e){return e&&this.write(e),this[nC]=!0,this[gu](),this}write(e){if(this[nC])throw new Error("write after end");return e instanceof Pxe?this[EG](e):this[sC](e),this.flowing}[EG](e){let t=CL(_G.resolve(this.cwd,e.path));if(!this.filter(e.path,e))e.resume();else{let i=new uC(e.path,t,!1);i.entry=new Rxe(e,this[wL](i)),i.entry.on("end",r=>this[vL](i)),this[No]+=1,this[Ao].push(i)}this[gu]()}[sC](e){let t=CL(_G.resolve(this.cwd,e));this[Ao].push(new uC(e,t)),this[gu]()}[SL](e){e.pending=!0,this[No]+=1;let t=this.follow?"stat":"lstat";cC[t](e.absolute,(i,r)=>{e.pending=!1,this[No]-=1,i?this.emit("error",i):this[oC](e,r)})}[oC](e,t){this.statCache.set(e.absolute,t),e.stat=t,this.filter(e.path,t)||(e.ignore=!0),this[gu]()}[DL](e){e.pending=!0,this[No]+=1,cC.readdir(e.absolute,(t,i)=>{if(e.pending=!1,this[No]-=1,t)return this.emit("error",t);this[aC](e,i)})}[aC](e,t){this.readdirCache.set(e.absolute,t),e.readdir=t,this[gu]()}[gu](){if(!this[rC]){this[rC]=!0;for(let e=this[Ao].head;e!==null&&this[No]<this.jobs;e=e.next)if(this[PG](e.value),e.value.ignore){let t=e.next;this[Ao].removeNode(e),e.next=t}this[rC]=!1,this[nC]&&!this[Ao].length&&this[No]===0&&(this.zip?this.zip.end(kG):(super.write(kG),super.end()))}}get[Yh](){return this[Ao]&&this[Ao].head&&this[Ao].head.value}[vL](e){this[Ao].shift(),this[No]-=1,this[gu]()}[PG](e){if(!e.pending){if(e.entry){e===this[Yh]&&!e.piped&&this[lC](e);return}if(e.stat||(this.statCache.has(e.absolute)?this[oC](e,this.statCache.get(e.absolute)):this[SL](e)),!!e.stat&&!e.ignore&&!(!this.noDirRecurse&&e.stat.isDirectory()&&!e.readdir&&(this.readdirCache.has(e.absolute)?this[aC](e,this.readdirCache.get(e.absolute)):this[DL](e),!e.readdir))){if(e.entry=this[RG](e),!e.entry){e.ignore=!0;return}e===this[Yh]&&!e.piped&&this[lC](e)}}}[wL](e){return{onwarn:(t,i,r)=>this.warn(t,i,r),noPax:this.noPax,cwd:this.cwd,absolute:e.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime,prefix:this.prefix}}[RG](e){this[No]+=1;try{return new this[TL](e.path,this[wL](e)).on("end",()=>this[vL](e)).on("error",t=>this.emit("error",t))}catch(t){this.emit("error",t)}}[xL](){this[Yh]&&this[Yh].entry&&this[Yh].entry.resume()}[lC](e){e.piped=!0,e.readdir&&e.readdir.forEach(r=>{let o=e.path,s=o==="./"?"":o.replace(/\/*$/,"/");this[sC](s+r)});let t=e.entry,i=this.zip;i?t.on("data",r=>{i.write(r)||t.pause()}):t.on("data",r=>{super.write(r)||t.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}}),kL=class extends EL{constructor(e){super(e),this[TL]=Exe}pause(){}resume(){}[SL](e){let t=this.follow?"statSync":"lstatSync";this[oC](e,cC[t](e.absolute))}[DL](e,t){this[aC](e,cC.readdirSync(e.absolute))}[lC](e){let t=e.entry,i=this.zip;e.readdir&&e.readdir.forEach(r=>{let o=e.path,s=o==="./"?"":o.replace(/\/*$/,"/");this[sC](s+r)}),i?t.on("data",r=>{i.write(r)}):t.on("data",r=>{super[LG](r)})}};EL.Sync=kL;IG.exports=EL});var Kh=y(im=>{"use strict";var Ixe=Oh(),Fxe=require("events").EventEmitter,Nn=require("fs"),LL=Nn.writev;if(!LL){let n=process.binding("fs"),e=n.FSReqWrap||n.FSReqCallback;LL=(t,i,r,o)=>{let s=(l,u)=>o(l,u,i),a=new e;a.oncomplete=s,n.writeBuffers(t,i,r,a)}}var Gh=Symbol("_autoClose"),uo=Symbol("_close"),tm=Symbol("_ended"),gt=Symbol("_fd"),FG=Symbol("_finished"),Wa=Symbol("_flags"),RL=Symbol("_flush"),IL=Symbol("_handleChunk"),FL=Symbol("_makeBuf"),mC=Symbol("_mode"),dC=Symbol("_needDrain"),Uh=Symbol("_onerror"),zh=Symbol("_onopen"),_L=Symbol("_onread"),Jh=Symbol("_onwrite"),Ya=Symbol("_open"),Ps=Symbol("_path"),pu=Symbol("_pos"),Ho=Symbol("_queue"),$h=Symbol("_read"),jG=Symbol("_readSize"),Ba=Symbol("_reading"),gC=Symbol("_remain"),MG=Symbol("_size"),pC=Symbol("_write"),Zh=Symbol("_writing"),fC=Symbol("_defaultFlag"),Xh=Symbol("_errored"),bC=class extends Ixe{constructor(e,t){if(t=t||{},super(t),this.readable=!0,this.writable=!1,typeof e!="string")throw new TypeError("path must be a string");this[Xh]=!1,this[gt]=typeof t.fd=="number"?t.fd:null,this[Ps]=e,this[jG]=t.readSize||16*1024*1024,this[Ba]=!1,this[MG]=typeof t.size=="number"?t.size:1/0,this[gC]=this[MG],this[Gh]=typeof t.autoClose=="boolean"?t.autoClose:!0,typeof this[gt]=="number"?this[$h]():this[Ya]()}get fd(){return this[gt]}get path(){return this[Ps]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[Ya](){Nn.open(this[Ps],"r",(e,t)=>this[zh](e,t))}[zh](e,t){e?this[Uh](e):(this[gt]=t,this.emit("open",t),this[$h]())}[FL](){return Buffer.allocUnsafe(Math.min(this[jG],this[gC]))}[$h](){if(!this[Ba]){this[Ba]=!0;let e=this[FL]();if(e.length===0)return process.nextTick(()=>this[_L](null,0,e));Nn.read(this[gt],e,0,e.length,null,(t,i,r)=>this[_L](t,i,r))}}[_L](e,t,i){this[Ba]=!1,e?this[Uh](e):this[IL](t,i)&&this[$h]()}[uo](){if(this[Gh]&&typeof this[gt]=="number"){let e=this[gt];this[gt]=null,Nn.close(e,t=>t?this.emit("error",t):this.emit("close"))}}[Uh](e){this[Ba]=!0,this[uo](),this.emit("error",e)}[IL](e,t){let i=!1;return this[gC]-=e,e>0&&(i=super.write(e<t.length?t.slice(0,e):t)),(e===0||this[gC]<=0)&&(i=!1,this[uo](),super.end()),i}emit(e,t){switch(e){case"prefinish":case"finish":break;case"drain":typeof this[gt]=="number"&&this[$h]();break;case"error":return this[Xh]?void 0:(this[Xh]=!0,super.emit(e,t));default:return super.emit(e,t)}}},jL=class extends bC{[Ya](){let e=!0;try{this[zh](null,Nn.openSync(this[Ps],"r")),e=!1}finally{e&&this[uo]()}}[$h](){let e=!0;try{if(!this[Ba]){this[Ba]=!0;do{let t=this[FL](),i=t.length===0?0:Nn.readSync(this[gt],t,0,t.length,null);if(!this[IL](i,t))break}while(!0);this[Ba]=!1}e=!1}finally{e&&this[uo]()}}[uo](){if(this[Gh]&&typeof this[gt]=="number"){let e=this[gt];this[gt]=null,Nn.closeSync(e),this.emit("close")}}},yC=class extends Fxe{constructor(e,t){t=t||{},super(t),this.readable=!1,this.writable=!0,this[Xh]=!1,this[Zh]=!1,this[tm]=!1,this[dC]=!1,this[Ho]=[],this[Ps]=e,this[gt]=typeof t.fd=="number"?t.fd:null,this[mC]=t.mode===void 0?438:t.mode,this[pu]=typeof t.start=="number"?t.start:null,this[Gh]=typeof t.autoClose=="boolean"?t.autoClose:!0;let i=this[pu]!==null?"r+":"w";this[fC]=t.flags===void 0,this[Wa]=this[fC]?i:t.flags,this[gt]===null&&this[Ya]()}emit(e,t){if(e==="error"){if(this[Xh])return;this[Xh]=!0}return super.emit(e,t)}get fd(){return this[gt]}get path(){return this[Ps]}[Uh](e){this[uo](),this[Zh]=!0,this.emit("error",e)}[Ya](){Nn.open(this[Ps],this[Wa],this[mC],(e,t)=>this[zh](e,t))}[zh](e,t){this[fC]&&this[Wa]==="r+"&&e&&e.code==="ENOENT"?(this[Wa]="w",this[Ya]()):e?this[Uh](e):(this[gt]=t,this.emit("open",t),this[RL]())}end(e,t){return e&&this.write(e,t),this[tm]=!0,!this[Zh]&&!this[Ho].length&&typeof this[gt]=="number"&&this[Jh](null,0),this}write(e,t){return typeof e=="string"&&(e=Buffer.from(e,t)),this[tm]?(this.emit("error",new Error("write() after end()")),!1):this[gt]===null||this[Zh]||this[Ho].length?(this[Ho].push(e),this[dC]=!0,!1):(this[Zh]=!0,this[pC](e),!0)}[pC](e){Nn.write(this[gt],e,0,e.length,this[pu],(t,i)=>this[Jh](t,i))}[Jh](e,t){e?this[Uh](e):(this[pu]!==null&&(this[pu]+=t),this[Ho].length?this[RL]():(this[Zh]=!1,this[tm]&&!this[FG]?(this[FG]=!0,this[uo](),this.emit("finish")):this[dC]&&(this[dC]=!1,this.emit("drain"))))}[RL](){if(this[Ho].length===0)this[tm]&&this[Jh](null,0);else if(this[Ho].length===1)this[pC](this[Ho].pop());else{let e=this[Ho];this[Ho]=[],LL(this[gt],e,this[pu],(t,i)=>this[Jh](t,i))}}[uo](){if(this[Gh]&&typeof this[gt]=="number"){let e=this[gt];this[gt]=null,Nn.close(e,t=>t?this.emit("error",t):this.emit("close"))}}},ML=class extends yC{[Ya](){let e;if(this[fC]&&this[Wa]==="r+")try{e=Nn.openSync(this[Ps],this[Wa],this[mC])}catch(t){if(t.code==="ENOENT")return this[Wa]="w",this[Ya]();throw t}else e=Nn.openSync(this[Ps],this[Wa],this[mC]);this[zh](null,e)}[uo](){if(this[Gh]&&typeof this[gt]=="number"){let e=this[gt];this[gt]=null,Nn.closeSync(e),this.emit("close")}}[pC](e){let t=!0;try{this[Jh](null,Nn.writeSync(this[gt],e,0,e.length,this[pu])),t=!1}finally{if(t)try{this[uo]()}catch{}}}};im.ReadStream=bC;im.ReadStreamSync=jL;im.WriteStream=yC;im.WriteStreamSync=ML});var TC=y((yqe,WG)=>{"use strict";var jxe=Kx(),Mxe=Bh(),Oxe=require("events"),Axe=Kp(),Nxe=1024*1024,Hxe=Xx(),OG=zx(),qxe=K_(),OL=Buffer.from([31,139]),Pr=Symbol("state"),fu=Symbol("writeEntry"),Es=Symbol("readEntry"),AL=Symbol("nextEntry"),AG=Symbol("processEntry"),Er=Symbol("extendedHeader"),nm=Symbol("globalExtendedHeader"),Za=Symbol("meta"),NG=Symbol("emitMeta"),Et=Symbol("buffer"),Rs=Symbol("queue"),mu=Symbol("ended"),HG=Symbol("emittedEnd"),bu=Symbol("emit"),Hn=Symbol("unzip"),vC=Symbol("consumeChunk"),wC=Symbol("consumeChunkSub"),NL=Symbol("consumeBody"),qG=Symbol("consumeMeta"),BG=Symbol("consumeHeader"),xC=Symbol("consuming"),HL=Symbol("bufferConcat"),qL=Symbol("maybeEnd"),rm=Symbol("writing"),Ja=Symbol("aborted"),CC=Symbol("onDone"),yu=Symbol("sawValidEntry"),SC=Symbol("sawNullBlock"),DC=Symbol("sawEOF"),Bxe=n=>!0;WG.exports=jxe(class extends Oxe{constructor(e){e=e||{},super(e),this.file=e.file||"",this[yu]=null,this.on(CC,t=>{(this[Pr]==="begin"||this[yu]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),e.ondone?this.on(CC,e.ondone):this.on(CC,t=>{this.emit("prefinish"),this.emit("finish"),this.emit("end"),this.emit("close")}),this.strict=!!e.strict,this.maxMetaEntrySize=e.maxMetaEntrySize||Nxe,this.filter=typeof e.filter=="function"?e.filter:Bxe,this.writable=!0,this.readable=!1,this[Rs]=new Axe,this[Et]=null,this[Es]=null,this[fu]=null,this[Pr]="begin",this[Za]="",this[Er]=null,this[nm]=null,this[mu]=!1,this[Hn]=null,this[Ja]=!1,this[SC]=!1,this[DC]=!1,typeof e.onwarn=="function"&&this.on("warn",e.onwarn),typeof e.onentry=="function"&&this.on("entry",e.onentry)}[BG](e,t){this[yu]===null&&(this[yu]=!1);let i;try{i=new Mxe(e,t,this[Er],this[nm])}catch(r){return this.warn("TAR_ENTRY_INVALID",r)}if(i.nullBlock)this[SC]?(this[DC]=!0,this[Pr]==="begin"&&(this[Pr]="header"),this[bu]("eof")):(this[SC]=!0,this[bu]("nullBlock"));else if(this[SC]=!1,!i.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:i});else if(!i.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:i});else{let r=i.type;if(/^(Symbolic)?Link$/.test(r)&&!i.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:i});else if(!/^(Symbolic)?Link$/.test(r)&&i.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:i});else{let o=this[fu]=new Hxe(i,this[Er],this[nm]);if(!this[yu])if(o.remain){let s=()=>{o.invalid||(this[yu]=!0)};o.on("end",s)}else this[yu]=!0;o.meta?o.size>this.maxMetaEntrySize?(o.ignore=!0,this[bu]("ignoredEntry",o),this[Pr]="ignore",o.resume()):o.size>0&&(this[Za]="",o.on("data",s=>this[Za]+=s),this[Pr]="meta"):(this[Er]=null,o.ignore=o.ignore||!this.filter(o.path,o),o.ignore?(this[bu]("ignoredEntry",o),this[Pr]=o.remain?"ignore":"header",o.resume()):(o.remain?this[Pr]="body":(this[Pr]="header",o.end()),this[Es]?this[Rs].push(o):(this[Rs].push(o),this[AL]())))}}}[AG](e){let t=!0;return e?Array.isArray(e)?this.emit.apply(this,e):(this[Es]=e,this.emit("entry",e),e.emittedEnd||(e.on("end",i=>this[AL]()),t=!1)):(this[Es]=null,t=!1),t}[AL](){do;while(this[AG](this[Rs].shift()));if(!this[Rs].length){let e=this[Es];!e||e.flowing||e.size===e.remain?this[rm]||this.emit("drain"):e.once("drain",i=>this.emit("drain"))}}[NL](e,t){let i=this[fu],r=i.blockRemain,o=r>=e.length&&t===0?e:e.slice(t,t+r);return i.write(o),i.blockRemain||(this[Pr]="header",this[fu]=null,i.end()),o.length}[qG](e,t){let i=this[fu],r=this[NL](e,t);return this[fu]||this[NG](i),r}[bu](e,t,i){!this[Rs].length&&!this[Es]?this.emit(e,t,i):this[Rs].push([e,t,i])}[NG](e){switch(this[bu]("meta",this[Za]),e.type){case"ExtendedHeader":case"OldExtendedHeader":this[Er]=OG.parse(this[Za],this[Er],!1);break;case"GlobalExtendedHeader":this[nm]=OG.parse(this[Za],this[nm],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[Er]=this[Er]||Object.create(null),this[Er].path=this[Za].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[Er]=this[Er]||Object.create(null),this[Er].linkpath=this[Za].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+e.type)}}abort(e){this[Ja]=!0,this.emit("abort",e),this.warn("TAR_ABORT",e,{recoverable:!1})}write(e){if(this[Ja])return;if(this[Hn]===null&&e){if(this[Et]&&(e=Buffer.concat([this[Et],e]),this[Et]=null),e.length<OL.length)return this[Et]=e,!0;for(let i=0;this[Hn]===null&&i<OL.length;i++)e[i]!==OL[i]&&(this[Hn]=!1);if(this[Hn]===null){let i=this[mu];this[mu]=!1,this[Hn]=new qxe.Unzip,this[Hn].on("data",o=>this[vC](o)),this[Hn].on("error",o=>this.abort(o)),this[Hn].on("end",o=>{this[mu]=!0,this[vC]()}),this[rm]=!0;let r=this[Hn][i?"end":"write"](e);return this[rm]=!1,r}}this[rm]=!0,this[Hn]?this[Hn].write(e):this[vC](e),this[rm]=!1;let t=this[Rs].length?!1:this[Es]?this[Es].flowing:!0;return!t&&!this[Rs].length&&this[Es].once("drain",i=>this.emit("drain")),t}[HL](e){e&&!this[Ja]&&(this[Et]=this[Et]?Buffer.concat([this[Et],e]):e)}[qL](){if(this[mu]&&!this[HG]&&!this[Ja]&&!this[xC]){this[HG]=!0;let e=this[fu];if(e&&e.blockRemain){let t=this[Et]?this[Et].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${e.blockRemain} more bytes, only ${t} available)`,{entry:e}),this[Et]&&e.write(this[Et]),e.end()}this[bu](CC)}}[vC](e){if(this[xC])this[HL](e);else if(!e&&!this[Et])this[qL]();else{if(this[xC]=!0,this[Et]){this[HL](e);let t=this[Et];this[Et]=null,this[wC](t)}else this[wC](e);for(;this[Et]&&this[Et].length>=512&&!this[Ja]&&!this[DC];){let t=this[Et];this[Et]=null,this[wC](t)}this[xC]=!1}(!this[Et]||this[mu])&&this[qL]()}[wC](e){let t=0,i=e.length;for(;t+512<=i&&!this[Ja]&&!this[DC];)switch(this[Pr]){case"begin":case"header":this[BG](e,t),t+=512;break;case"ignore":case"body":t+=this[NL](e,t);break;case"meta":t+=this[qG](e,t);break;default:throw new Error("invalid state: "+this[Pr])}t<i&&(this[Et]?this[Et]=Buffer.concat([e.slice(t),this[Et]]):this[Et]=e.slice(t))}end(e){this[Ja]||(this[Hn]?this[Hn].end(e):(this[mu]=!0,this.write(e)))}})});var kC=y((vqe,$G)=>{"use strict";var Wxe=Mh(),ZG=TC(),Qh=require("fs"),Yxe=Kh(),YG=require("path"),BL=Wh();$G.exports=(n,e,t)=>{typeof n=="function"?(t=n,e=null,n={}):Array.isArray(n)&&(e=n,n={}),typeof e=="function"&&(t=e,e=null),e?e=Array.from(e):e=[];let i=Wxe(n);if(i.sync&&typeof t=="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof t=="function")throw new TypeError("callback only supported with file option");return e.length&&Jxe(i,e),i.noResume||Zxe(i),i.file&&i.sync?$xe(i):i.file?Uxe(i,t):JG(i)};var Zxe=n=>{let e=n.onentry;n.onentry=e?t=>{e(t),t.resume()}:t=>t.resume()},Jxe=(n,e)=>{let t=new Map(e.map(o=>[BL(o),!0])),i=n.filter,r=(o,s)=>{let a=s||YG.parse(o).root||".",l=o===a?!1:t.has(o)?t.get(o):r(YG.dirname(o),a);return t.set(o,l),l};n.filter=i?(o,s)=>i(o,s)&&r(BL(o)):o=>r(BL(o))},$xe=n=>{let e=JG(n),t=n.file,i=!0,r;try{let o=Qh.statSync(t),s=n.maxReadSize||16*1024*1024;if(o.size<s)e.end(Qh.readFileSync(t));else{let a=0,l=Buffer.allocUnsafe(s);for(r=Qh.openSync(t,"r");a<o.size;){let u=Qh.readSync(r,l,0,s,a);a+=u,e.write(l.slice(0,u))}e.end()}i=!1}finally{if(i&&r)try{Qh.closeSync(r)}catch{}}},Uxe=(n,e)=>{let t=new ZG(n),i=n.maxReadSize||16*1024*1024,r=n.file,o=new Promise((s,a)=>{t.on("error",a),t.on("end",s),Qh.stat(r,(l,u)=>{if(l)a(l);else{let c=new Yxe.ReadStream(r,{readSize:i,size:u.size});c.on("error",a),c.pipe(t)}})});return e?o.then(e,e):o},JG=n=>new ZG(n)});var QG=y((wqe,KG)=>{"use strict";var Xxe=Mh(),PC=hC(),UG=Kh(),XG=kC(),GG=require("path");KG.exports=(n,e,t)=>{if(typeof e=="function"&&(t=e),Array.isArray(n)&&(e=n,n={}),!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");e=Array.from(e);let i=Xxe(n);if(i.sync&&typeof t=="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof t=="function")throw new TypeError("callback only supported with file option");return i.file&&i.sync?Gxe(i,e):i.file?zxe(i,e,t):i.sync?Kxe(i,e):Qxe(i,e)};var Gxe=(n,e)=>{let t=new PC.Sync(n),i=new UG.WriteStreamSync(n.file,{mode:n.mode||438});t.pipe(i),zG(t,e)},zxe=(n,e,t)=>{let i=new PC(n),r=new UG.WriteStream(n.file,{mode:n.mode||438});i.pipe(r);let o=new Promise((s,a)=>{r.on("error",a),r.on("close",s),i.on("error",a)});return WL(i,e),t?o.then(t,t):o},zG=(n,e)=>{e.forEach(t=>{t.charAt(0)==="@"?XG({file:GG.resolve(n.cwd,t.substr(1)),sync:!0,noResume:!0,onentry:i=>n.add(i)}):n.add(t)}),n.end()},WL=(n,e)=>{for(;e.length;){let t=e.shift();if(t.charAt(0)==="@")return XG({file:GG.resolve(n.cwd,t.substr(1)),noResume:!0,onentry:i=>n.add(i)}).then(i=>WL(n,e));n.add(t)}n.end()},Kxe=(n,e)=>{let t=new PC.Sync(n);return zG(t,e),t},Qxe=(n,e)=>{let t=new PC(n);return WL(t,e),t}});var YL=y((xqe,oz)=>{"use strict";var Vxe=Mh(),VG=hC(),or=require("fs"),ez=Kh(),tz=kC(),iz=require("path"),nz=Bh();oz.exports=(n,e,t)=>{let i=Vxe(n);if(!i.file)throw new TypeError("file is required");if(i.gzip)throw new TypeError("cannot append to compressed archives");if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");return e=Array.from(e),i.sync?eCe(i,e):iCe(i,e,t)};var eCe=(n,e)=>{let t=new VG.Sync(n),i=!0,r,o;try{try{r=or.openSync(n.file,"r+")}catch(l){if(l.code==="ENOENT")r=or.openSync(n.file,"w+");else throw l}let s=or.fstatSync(r),a=Buffer.alloc(512);e:for(o=0;o<s.size;o+=512){for(let c=0,h=0;c<512;c+=h){if(h=or.readSync(r,a,c,a.length-c,o+c),o===0&&a[0]===31&&a[1]===139)throw new Error("cannot append to compressed archives");if(!h)break e}let l=new nz(a);if(!l.cksumValid)break;let u=512*Math.ceil(l.size/512);if(o+u+512>s.size)break;o+=u,n.mtimeCache&&n.mtimeCache.set(l.path,l.mtime)}i=!1,tCe(n,t,o,r,e)}finally{if(i)try{or.closeSync(r)}catch{}}},tCe=(n,e,t,i,r)=>{let o=new ez.WriteStreamSync(n.file,{fd:i,start:t});e.pipe(o),nCe(e,r)},iCe=(n,e,t)=>{e=Array.from(e);let i=new VG(n),r=(s,a,l)=>{let u=(p,f)=>{p?or.close(s,m=>l(p)):l(null,f)},c=0;if(a===0)return u(null,0);let h=0,d=Buffer.alloc(512),g=(p,f)=>{if(p)return u(p);if(h+=f,h<512&&f)return or.read(s,d,h,d.length-h,c+h,g);if(c===0&&d[0]===31&&d[1]===139)return u(new Error("cannot append to compressed archives"));if(h<512)return u(null,c);let m=new nz(d);if(!m.cksumValid)return u(null,c);let b=512*Math.ceil(m.size/512);if(c+b+512>a||(c+=b+512,c>=a))return u(null,c);n.mtimeCache&&n.mtimeCache.set(m.path,m.mtime),h=0,or.read(s,d,0,512,c,g)};or.read(s,d,0,512,c,g)},o=new Promise((s,a)=>{i.on("error",a);let l="r+",u=(c,h)=>{if(c&&c.code==="ENOENT"&&l==="r+")return l="w+",or.open(n.file,l,u);if(c)return a(c);or.fstat(h,(d,g)=>{if(d)return or.close(h,()=>a(d));r(h,g.size,(p,f)=>{if(p)return a(p);let m=new ez.WriteStream(n.file,{fd:h,start:f});i.pipe(m),m.on("error",a),m.on("close",s),rz(i,e)})})};or.open(n.file,l,u)});return t?o.then(t,t):o},nCe=(n,e)=>{e.forEach(t=>{t.charAt(0)==="@"?tz({file:iz.resolve(n.cwd,t.substr(1)),sync:!0,noResume:!0,onentry:i=>n.add(i)}):n.add(t)}),n.end()},rz=(n,e)=>{for(;e.length;){let t=e.shift();if(t.charAt(0)==="@")return tz({file:iz.resolve(n.cwd,t.substr(1)),noResume:!0,onentry:i=>n.add(i)}).then(i=>rz(n,e));n.add(t)}n.end()}});var az=y((Cqe,sz)=>{"use strict";var rCe=Mh(),oCe=YL();sz.exports=(n,e,t)=>{let i=rCe(n);if(!i.file)throw new TypeError("file is required");if(i.gzip)throw new TypeError("cannot append to compressed archives");if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");return e=Array.from(e),sCe(i),oCe(i,e,t)};var sCe=n=>{let e=n.filter;n.mtimeCache||(n.mtimeCache=new Map),n.filter=e?(t,i)=>e(t,i)&&!(n.mtimeCache.get(t)>i.mtime):(t,i)=>!(n.mtimeCache.get(t)>i.mtime)}});var cz=y((Sqe,uz)=>{var{promisify:lz}=require("util"),$a=require("fs"),aCe=n=>{if(!n)n={mode:511,fs:$a};else if(typeof n=="object")n={mode:511,fs:$a,...n};else if(typeof n=="number")n={mode:n,fs:$a};else if(typeof n=="string")n={mode:parseInt(n,8),fs:$a};else throw new TypeError("invalid options argument");return n.mkdir=n.mkdir||n.fs.mkdir||$a.mkdir,n.mkdirAsync=lz(n.mkdir),n.stat=n.stat||n.fs.stat||$a.stat,n.statAsync=lz(n.stat),n.statSync=n.statSync||n.fs.statSync||$a.statSync,n.mkdirSync=n.mkdirSync||n.fs.mkdirSync||$a.mkdirSync,n};uz.exports=aCe});var dz=y((Dqe,hz)=>{var lCe=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:uCe,parse:cCe}=require("path"),hCe=n=>{if(/\0/.test(n))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:n,code:"ERR_INVALID_ARG_VALUE"});if(n=uCe(n),lCe==="win32"){let e=/[*|"<>?:]/,{root:t}=cCe(n);if(e.test(n.substr(t.length)))throw Object.assign(new Error("Illegal characters in path."),{path:n,code:"EINVAL"})}return n};hz.exports=hCe});var bz=y((Tqe,mz)=>{var{dirname:gz}=require("path"),pz=(n,e,t=void 0)=>t===e?Promise.resolve():n.statAsync(e).then(i=>i.isDirectory()?t:void 0,i=>i.code==="ENOENT"?pz(n,gz(e),e):void 0),fz=(n,e,t=void 0)=>{if(t!==e)try{return n.statSync(e).isDirectory()?t:void 0}catch(i){return i.code==="ENOENT"?fz(n,gz(e),e):void 0}};mz.exports={findMade:pz,findMadeSync:fz}});var $L=y((kqe,vz)=>{var{dirname:yz}=require("path"),ZL=(n,e,t)=>{e.recursive=!1;let i=yz(n);return i===n?e.mkdirAsync(n,e).catch(r=>{if(r.code!=="EISDIR")throw r}):e.mkdirAsync(n,e).then(()=>t||n,r=>{if(r.code==="ENOENT")return ZL(i,e).then(o=>ZL(n,e,o));if(r.code!=="EEXIST"&&r.code!=="EROFS")throw r;return e.statAsync(n).then(o=>{if(o.isDirectory())return t;throw r},()=>{throw r})})},JL=(n,e,t)=>{let i=yz(n);if(e.recursive=!1,i===n)try{return e.mkdirSync(n,e)}catch(r){if(r.code!=="EISDIR")throw r;return}try{return e.mkdirSync(n,e),t||n}catch(r){if(r.code==="ENOENT")return JL(n,e,JL(i,e,t));if(r.code!=="EEXIST"&&r.code!=="EROFS")throw r;try{if(!e.statSync(n).isDirectory())throw r}catch{throw r}}};vz.exports={mkdirpManual:ZL,mkdirpManualSync:JL}});var Cz=y((Pqe,xz)=>{var{dirname:wz}=require("path"),{findMade:dCe,findMadeSync:gCe}=bz(),{mkdirpManual:pCe,mkdirpManualSync:fCe}=$L(),mCe=(n,e)=>(e.recursive=!0,wz(n)===n?e.mkdirAsync(n,e):dCe(e,n).then(i=>e.mkdirAsync(n,e).then(()=>i).catch(r=>{if(r.code==="ENOENT")return pCe(n,e);throw r}))),bCe=(n,e)=>{if(e.recursive=!0,wz(n)===n)return e.mkdirSync(n,e);let i=gCe(e,n);try{return e.mkdirSync(n,e),i}catch(r){if(r.code==="ENOENT")return fCe(n,e);throw r}};xz.exports={mkdirpNative:mCe,mkdirpNativeSync:bCe}});var kz=y((Eqe,Tz)=>{var Sz=require("fs"),yCe=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,UL=yCe.replace(/^v/,"").split("."),Dz=+UL[0]>10||+UL[0]==10&&+UL[1]>=12,vCe=Dz?n=>n.mkdir===Sz.mkdir:()=>!1,wCe=Dz?n=>n.mkdirSync===Sz.mkdirSync:()=>!1;Tz.exports={useNative:vCe,useNativeSync:wCe}});var Iz=y((Rqe,Lz)=>{var Vh=cz(),ed=dz(),{mkdirpNative:Pz,mkdirpNativeSync:Ez}=Cz(),{mkdirpManual:Rz,mkdirpManualSync:_z}=$L(),{useNative:xCe,useNativeSync:CCe}=kz(),td=(n,e)=>(n=ed(n),e=Vh(e),xCe(e)?Pz(n,e):Rz(n,e)),SCe=(n,e)=>(n=ed(n),e=Vh(e),CCe(e)?Ez(n,e):_z(n,e));td.sync=SCe;td.native=(n,e)=>Pz(ed(n),Vh(e));td.manual=(n,e)=>Rz(ed(n),Vh(e));td.nativeSync=(n,e)=>Ez(ed(n),Vh(e));td.manualSync=(n,e)=>_z(ed(n),Vh(e));Lz.exports=td});var Hz=y((_qe,Nz)=>{"use strict";var Rr=require("fs"),vu=require("path"),DCe=Rr.lchown?"lchown":"chown",TCe=Rr.lchownSync?"lchownSync":"chownSync",jz=Rr.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),Fz=(n,e,t)=>{try{return Rr[TCe](n,e,t)}catch(i){if(i.code!=="ENOENT")throw i}},kCe=(n,e,t)=>{try{return Rr.chownSync(n,e,t)}catch(i){if(i.code!=="ENOENT")throw i}},PCe=jz?(n,e,t,i)=>r=>{!r||r.code!=="EISDIR"?i(r):Rr.chown(n,e,t,i)}:(n,e,t,i)=>i,XL=jz?(n,e,t)=>{try{return Fz(n,e,t)}catch(i){if(i.code!=="EISDIR")throw i;kCe(n,e,t)}}:(n,e,t)=>Fz(n,e,t),ECe=process.version,Mz=(n,e,t)=>Rr.readdir(n,e,t),RCe=(n,e)=>Rr.readdirSync(n,e);/^v4\./.test(ECe)&&(Mz=(n,e,t)=>Rr.readdir(n,t));var EC=(n,e,t,i)=>{Rr[DCe](n,e,t,PCe(n,e,t,r=>{i(r&&r.code!=="ENOENT"?r:null)}))},Oz=(n,e,t,i,r)=>{if(typeof e=="string")return Rr.lstat(vu.resolve(n,e),(o,s)=>{if(o)return r(o.code!=="ENOENT"?o:null);s.name=e,Oz(n,s,t,i,r)});if(e.isDirectory())GL(vu.resolve(n,e.name),t,i,o=>{if(o)return r(o);let s=vu.resolve(n,e.name);EC(s,t,i,r)});else{let o=vu.resolve(n,e.name);EC(o,t,i,r)}},GL=(n,e,t,i)=>{Mz(n,{withFileTypes:!0},(r,o)=>{if(r){if(r.code==="ENOENT")return i();if(r.code!=="ENOTDIR"&&r.code!=="ENOTSUP")return i(r)}if(r||!o.length)return EC(n,e,t,i);let s=o.length,a=null,l=u=>{if(!a){if(u)return i(a=u);if(--s===0)return EC(n,e,t,i)}};o.forEach(u=>Oz(n,u,e,t,l))})},_Ce=(n,e,t,i)=>{if(typeof e=="string")try{let r=Rr.lstatSync(vu.resolve(n,e));r.name=e,e=r}catch(r){if(r.code==="ENOENT")return;throw r}e.isDirectory()&&Az(vu.resolve(n,e.name),t,i),XL(vu.resolve(n,e.name),t,i)},Az=(n,e,t)=>{let i;try{i=RCe(n,{withFileTypes:!0})}catch(r){if(r.code==="ENOENT")return;if(r.code==="ENOTDIR"||r.code==="ENOTSUP")return XL(n,e,t);throw r}return i&&i.length&&i.forEach(r=>_Ce(n,r,e,t)),XL(n,e,t)};Nz.exports=GL;GL.sync=Az});var Yz=y((Lqe,zL)=>{"use strict";var qz=Iz(),_r=require("fs"),RC=require("path"),Bz=Hz(),co=Hh(),_C=class extends Error{constructor(e,t){super("Cannot extract through symbolic link"),this.path=t,this.symlink=e}get name(){return"SylinkError"}},LC=class extends Error{constructor(e,t){super(t+": Cannot cd into '"+e+"'"),this.path=e,this.code=t}get name(){return"CwdError"}},IC=(n,e)=>n.get(co(e)),om=(n,e,t)=>n.set(co(e),t),LCe=(n,e)=>{_r.stat(n,(t,i)=>{(t||!i.isDirectory())&&(t=new LC(n,t&&t.code||"ENOTDIR")),e(t)})};zL.exports=(n,e,t)=>{n=co(n);let i=e.umask,r=e.mode|448,o=(r&i)!==0,s=e.uid,a=e.gid,l=typeof s=="number"&&typeof a=="number"&&(s!==e.processUid||a!==e.processGid),u=e.preserve,c=e.unlink,h=e.cache,d=co(e.cwd),g=(m,b)=>{m?t(m):(om(h,n,!0),b&&l?Bz(b,s,a,w=>g(w)):o?_r.chmod(n,r,t):t())};if(h&&IC(h,n)===!0)return g();if(n===d)return LCe(n,g);if(u)return qz(n,{mode:r}).then(m=>g(null,m),g);let f=co(RC.relative(d,n)).split("/");FC(d,f,r,h,c,d,null,g)};var FC=(n,e,t,i,r,o,s,a)=>{if(!e.length)return a(null,s);let l=e.shift(),u=co(RC.resolve(n+"/"+l));if(IC(i,u))return FC(u,e,t,i,r,o,s,a);_r.mkdir(u,t,Wz(u,e,t,i,r,o,s,a))},Wz=(n,e,t,i,r,o,s,a)=>l=>{l?_r.lstat(n,(u,c)=>{if(u)u.path=u.path&&co(u.path),a(u);else if(c.isDirectory())FC(n,e,t,i,r,o,s,a);else if(r)_r.unlink(n,h=>{if(h)return a(h);_r.mkdir(n,t,Wz(n,e,t,i,r,o,s,a))});else{if(c.isSymbolicLink())return a(new _C(n,n+"/"+e.join("/")));a(l)}}):(s=s||n,FC(n,e,t,i,r,o,s,a))},ICe=n=>{let e=!1,t="ENOTDIR";try{e=_r.statSync(n).isDirectory()}catch(i){t=i.code}finally{if(!e)throw new LC(n,t)}};zL.exports.sync=(n,e)=>{n=co(n);let t=e.umask,i=e.mode|448,r=(i&t)!==0,o=e.uid,s=e.gid,a=typeof o=="number"&&typeof s=="number"&&(o!==e.processUid||s!==e.processGid),l=e.preserve,u=e.unlink,c=e.cache,h=co(e.cwd),d=m=>{om(c,n,!0),m&&a&&Bz.sync(m,o,s),r&&_r.chmodSync(n,i)};if(c&&IC(c,n)===!0)return d();if(n===h)return ICe(h),d();if(l)return d(qz.sync(n,i));let p=co(RC.relative(h,n)).split("/"),f=null;for(let m=p.shift(),b=h;m&&(b+="/"+m);m=p.shift())if(b=co(RC.resolve(b)),!IC(c,b))try{_r.mkdirSync(b,i),f=f||b,om(c,b,!0)}catch{let x=_r.lstatSync(b);if(x.isDirectory()){om(c,b,!0);continue}else if(u){_r.unlinkSync(b),_r.mkdirSync(b,i),f=f||b,om(c,b,!0);continue}else if(x.isSymbolicLink())return new _C(b,b+"/"+p.join("/"))}return d(f)}});var QL=y((Iqe,Zz)=>{var KL=Object.create(null),{hasOwnProperty:FCe}=Object.prototype;Zz.exports=n=>(FCe.call(KL,n)||(KL[n]=n.normalize("NFKD")),KL[n])});var Xz=y((Fqe,Uz)=>{var Jz=require("assert"),jCe=QL(),MCe=Wh(),{join:$z}=require("path"),OCe=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,ACe=OCe==="win32";Uz.exports=()=>{let n=new Map,e=new Map,t=u=>u.split("/").slice(0,-1).reduce((h,d)=>(h.length&&(d=$z(h[h.length-1],d)),h.push(d||"/"),h),[]),i=new Set,r=u=>{let c=e.get(u);if(!c)throw new Error("function does not have any path reservations");return{paths:c.paths.map(h=>n.get(h)),dirs:[...c.dirs].map(h=>n.get(h))}},o=u=>{let{paths:c,dirs:h}=r(u);return c.every(d=>d[0]===u)&&h.every(d=>d[0]instanceof Set&&d[0].has(u))},s=u=>i.has(u)||!o(u)?!1:(i.add(u),u(()=>a(u)),!0),a=u=>{if(!i.has(u))return!1;let{paths:c,dirs:h}=e.get(u),d=new Set;return c.forEach(g=>{let p=n.get(g);Jz.equal(p[0],u),p.length===1?n.delete(g):(p.shift(),typeof p[0]=="function"?d.add(p[0]):p[0].forEach(f=>d.add(f)))}),h.forEach(g=>{let p=n.get(g);Jz(p[0]instanceof Set),p[0].size===1&&p.length===1?n.delete(g):p[0].size===1?(p.shift(),d.add(p[0])):p[0].delete(u)}),i.delete(u),d.forEach(g=>s(g)),!0};return{check:o,reserve:(u,c)=>{u=ACe?["win32 parallelization disabled"]:u.map(d=>jCe(MCe($z(d))).toLowerCase());let h=new Set(u.map(d=>t(d)).reduce((d,g)=>d.concat(g)));return e.set(c,{dirs:h,paths:u}),u.forEach(d=>{let g=n.get(d);g?g.push(c):n.set(d,[c])}),h.forEach(d=>{let g=n.get(d);g?g[g.length-1]instanceof Set?g[g.length-1].add(c):g.push(new Set([c])):n.set(d,[new Set([c])])}),s(c)}}}});var Kz=y((jqe,zz)=>{var NCe=process.env.__FAKE_PLATFORM__||process.platform,HCe=NCe==="win32",qCe=global.__FAKE_TESTING_FS__||require("fs"),{O_CREAT:BCe,O_TRUNC:WCe,O_WRONLY:YCe,UV_FS_O_FILEMAP:Gz=0}=qCe.constants,ZCe=HCe&&!!Gz,JCe=512*1024,$Ce=Gz|WCe|BCe|YCe;zz.exports=ZCe?n=>n<JCe?$Ce:"w":()=>"w"});var aI=y((Mqe,h3)=>{"use strict";var UCe=require("assert"),XCe=TC(),Ke=require("fs"),GCe=Kh(),_s=require("path"),l3=Yz(),Qz=aL(),zCe=Xz(),KCe=lL(),sr=Hh(),QCe=Wh(),VCe=QL(),Vz=Symbol("onEntry"),tI=Symbol("checkFs"),e3=Symbol("checkFs2"),OC=Symbol("pruneCache"),iI=Symbol("isReusable"),Lr=Symbol("makeFs"),nI=Symbol("file"),rI=Symbol("directory"),AC=Symbol("link"),t3=Symbol("symlink"),i3=Symbol("hardlink"),n3=Symbol("unsupported"),r3=Symbol("checkPath"),Ua=Symbol("mkdir"),tn=Symbol("onError"),jC=Symbol("pending"),o3=Symbol("pend"),id=Symbol("unpend"),VL=Symbol("ended"),eI=Symbol("maybeClose"),oI=Symbol("skip"),sm=Symbol("doChown"),am=Symbol("uid"),lm=Symbol("gid"),um=Symbol("checkedCwd"),u3=require("crypto"),c3=Kz(),eSe=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,cm=eSe==="win32",tSe=(n,e)=>{if(!cm)return Ke.unlink(n,e);let t=n+".DELETE."+u3.randomBytes(16).toString("hex");Ke.rename(n,t,i=>{if(i)return e(i);Ke.unlink(t,e)})},iSe=n=>{if(!cm)return Ke.unlinkSync(n);let e=n+".DELETE."+u3.randomBytes(16).toString("hex");Ke.renameSync(n,e),Ke.unlinkSync(e)},s3=(n,e,t)=>n===n>>>0?n:e===e>>>0?e:t,a3=n=>VCe(QCe(sr(n))).toLowerCase(),nSe=(n,e)=>{e=a3(e);for(let t of n.keys()){let i=a3(t);(i===e||i.indexOf(e+"/")===0)&&n.delete(t)}},rSe=n=>{for(let e of n.keys())n.delete(e)},hm=class extends XCe{constructor(e){if(e||(e={}),e.ondone=t=>{this[VL]=!0,this[eI]()},super(e),this[um]=!1,this.reservations=zCe(),this.transform=typeof e.transform=="function"?e.transform:null,this.writable=!0,this.readable=!1,this[jC]=0,this[VL]=!1,this.dirCache=e.dirCache||new Map,typeof e.uid=="number"||typeof e.gid=="number"){if(typeof e.uid!="number"||typeof e.gid!="number")throw new TypeError("cannot set owner without number uid and gid");if(e.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=e.uid,this.gid=e.gid,this.setOwner=!0}else this.uid=null,this.gid=null,this.setOwner=!1;e.preserveOwner===void 0&&typeof e.uid!="number"?this.preserveOwner=process.getuid&&process.getuid()===0:this.preserveOwner=!!e.preserveOwner,this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():null,this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():null,this.forceChown=e.forceChown===!0,this.win32=!!e.win32||cm,this.newer=!!e.newer,this.keep=!!e.keep,this.noMtime=!!e.noMtime,this.preservePaths=!!e.preservePaths,this.unlink=!!e.unlink,this.cwd=sr(_s.resolve(e.cwd||process.cwd())),this.strip=+e.strip||0,this.processUmask=e.noChmod?0:process.umask(),this.umask=typeof e.umask=="number"?e.umask:this.processUmask,this.dmode=e.dmode||511&~this.umask,this.fmode=e.fmode||438&~this.umask,this.on("entry",t=>this[Vz](t))}warn(e,t,i={}){return(e==="TAR_BAD_ARCHIVE"||e==="TAR_ABORT")&&(i.recoverable=!1),super.warn(e,t,i)}[eI](){this[VL]&&this[jC]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"),this.emit("close"))}[r3](e){if(this.strip){let t=sr(e.path).split("/");if(t.length<this.strip)return!1;if(e.path=t.slice(this.strip).join("/"),e.type==="Link"){let i=sr(e.linkpath).split("/");if(i.length>=this.strip)e.linkpath=i.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let t=sr(e.path),i=t.split("/");if(i.includes("..")||cm&&/^[a-z]:\.\.$/i.test(i[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:e,path:t}),!1;let[r,o]=KCe(t);r&&(e.path=o,this.warn("TAR_ENTRY_INFO",`stripping ${r} from absolute path`,{entry:e,path:t}))}if(_s.isAbsolute(e.path)?e.absolute=sr(_s.resolve(e.path)):e.absolute=sr(_s.resolve(this.cwd,e.path)),!this.preservePaths&&e.absolute.indexOf(this.cwd+"/")!==0&&e.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:e,path:sr(e.path),resolvedPath:e.absolute,cwd:this.cwd}),!1;if(e.absolute===this.cwd&&e.type!=="Directory"&&e.type!=="GNUDumpDir")return!1;if(this.win32){let{root:t}=_s.win32.parse(e.absolute);e.absolute=t+Qz.encode(e.absolute.substr(t.length));let{root:i}=_s.win32.parse(e.path);e.path=i+Qz.encode(e.path.substr(i.length))}return!0}[Vz](e){if(!this[r3](e))return e.resume();switch(UCe.equal(typeof e.absolute,"string"),e.type){case"Directory":case"GNUDumpDir":e.mode&&(e.mode=e.mode|448);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[tI](e);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[n3](e)}}[tn](e,t){e.name==="CwdError"?this.emit("error",e):(this.warn("TAR_ENTRY_ERROR",e,{entry:t}),this[id](),t.resume())}[Ua](e,t,i){l3(sr(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:t,noChmod:this.noChmod},i)}[sm](e){return this.forceChown||this.preserveOwner&&(typeof e.uid=="number"&&e.uid!==this.processUid||typeof e.gid=="number"&&e.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[am](e){return s3(this.uid,e.uid,this.processUid)}[lm](e){return s3(this.gid,e.gid,this.processGid)}[nI](e,t){let i=e.mode&4095||this.fmode,r=new GCe.WriteStream(e.absolute,{flags:c3(e.size),mode:i,autoClose:!1});r.on("error",l=>{r.fd&&Ke.close(r.fd,()=>{}),r.write=()=>!0,this[tn](l,e),t()});let o=1,s=l=>{if(l){r.fd&&Ke.close(r.fd,()=>{}),this[tn](l,e),t();return}--o===0&&Ke.close(r.fd,u=>{u?this[tn](u,e):this[id](),t()})};r.on("finish",l=>{let u=e.absolute,c=r.fd;if(e.mtime&&!this.noMtime){o++;let h=e.atime||new Date,d=e.mtime;Ke.futimes(c,h,d,g=>g?Ke.utimes(u,h,d,p=>s(p&&g)):s())}if(this[sm](e)){o++;let h=this[am](e),d=this[lm](e);Ke.fchown(c,h,d,g=>g?Ke.chown(u,h,d,p=>s(p&&g)):s())}s()});let a=this.transform&&this.transform(e)||e;a!==e&&(a.on("error",l=>{this[tn](l,e),t()}),e.pipe(a)),a.pipe(r)}[rI](e,t){let i=e.mode&4095||this.dmode;this[Ua](e.absolute,i,r=>{if(r){this[tn](r,e),t();return}let o=1,s=a=>{--o===0&&(t(),this[id](),e.resume())};e.mtime&&!this.noMtime&&(o++,Ke.utimes(e.absolute,e.atime||new Date,e.mtime,s)),this[sm](e)&&(o++,Ke.chown(e.absolute,this[am](e),this[lm](e),s)),s()})}[n3](e){e.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${e.type}`,{entry:e}),e.resume()}[t3](e,t){this[AC](e,e.linkpath,"symlink",t)}[i3](e,t){let i=sr(_s.resolve(this.cwd,e.linkpath));this[AC](e,i,"link",t)}[o3](){this[jC]++}[id](){this[jC]--,this[eI]()}[oI](e){this[id](),e.resume()}[iI](e,t){return e.type==="File"&&!this.unlink&&t.isFile()&&t.nlink<=1&&!cm}[tI](e){this[o3]();let t=[e.path];e.linkpath&&t.push(e.linkpath),this.reservations.reserve(t,i=>this[e3](e,i))}[OC](e){e.type==="SymbolicLink"?rSe(this.dirCache):e.type!=="Directory"&&nSe(this.dirCache,e.absolute)}[e3](e,t){this[OC](e);let i=a=>{this[OC](e),t(a)},r=()=>{this[Ua](this.cwd,this.dmode,a=>{if(a){this[tn](a,e),i();return}this[um]=!0,o()})},o=()=>{if(e.absolute!==this.cwd){let a=sr(_s.dirname(e.absolute));if(a!==this.cwd)return this[Ua](a,this.dmode,l=>{if(l){this[tn](l,e),i();return}s()})}s()},s=()=>{Ke.lstat(e.absolute,(a,l)=>{if(l&&(this.keep||this.newer&&l.mtime>e.mtime)){this[oI](e),i();return}if(a||this[iI](e,l))return this[Lr](null,e,i);if(l.isDirectory()){if(e.type==="Directory"){let u=!this.noChmod&&e.mode&&(l.mode&4095)!==e.mode,c=h=>this[Lr](h,e,i);return u?Ke.chmod(e.absolute,e.mode,c):c()}if(e.absolute!==this.cwd)return Ke.rmdir(e.absolute,u=>this[Lr](u,e,i))}if(e.absolute===this.cwd)return this[Lr](null,e,i);tSe(e.absolute,u=>this[Lr](u,e,i))})};this[um]?o():r()}[Lr](e,t,i){if(e){this[tn](e,t),i();return}switch(t.type){case"File":case"OldFile":case"ContiguousFile":return this[nI](t,i);case"Link":return this[i3](t,i);case"SymbolicLink":return this[t3](t,i);case"Directory":case"GNUDumpDir":return this[rI](t,i)}}[AC](e,t,i,r){Ke[i](t,e.absolute,o=>{o?this[tn](o,e):(this[id](),e.resume()),r()})}},MC=n=>{try{return[null,n()]}catch(e){return[e,null]}},sI=class extends hm{[Lr](e,t){return super[Lr](e,t,()=>{})}[tI](e){if(this[OC](e),!this[um]){let o=this[Ua](this.cwd,this.dmode);if(o)return this[tn](o,e);this[um]=!0}if(e.absolute!==this.cwd){let o=sr(_s.dirname(e.absolute));if(o!==this.cwd){let s=this[Ua](o,this.dmode);if(s)return this[tn](s,e)}}let[t,i]=MC(()=>Ke.lstatSync(e.absolute));if(i&&(this.keep||this.newer&&i.mtime>e.mtime))return this[oI](e);if(t||this[iI](e,i))return this[Lr](null,e);if(i.isDirectory()){if(e.type==="Directory"){let s=!this.noChmod&&e.mode&&(i.mode&4095)!==e.mode,[a]=s?MC(()=>{Ke.chmodSync(e.absolute,e.mode)}):[];return this[Lr](a,e)}let[o]=MC(()=>Ke.rmdirSync(e.absolute));this[Lr](o,e)}let[r]=e.absolute===this.cwd?[]:MC(()=>iSe(e.absolute));this[Lr](r,e)}[nI](e,t){let i=e.mode&4095||this.fmode,r=a=>{let l;try{Ke.closeSync(o)}catch(u){l=u}(a||l)&&this[tn](a||l,e),t()},o;try{o=Ke.openSync(e.absolute,c3(e.size),i)}catch(a){return r(a)}let s=this.transform&&this.transform(e)||e;s!==e&&(s.on("error",a=>this[tn](a,e)),e.pipe(s)),s.on("data",a=>{try{Ke.writeSync(o,a,0,a.length)}catch(l){r(l)}}),s.on("end",a=>{let l=null;if(e.mtime&&!this.noMtime){let u=e.atime||new Date,c=e.mtime;try{Ke.futimesSync(o,u,c)}catch(h){try{Ke.utimesSync(e.absolute,u,c)}catch{l=h}}}if(this[sm](e)){let u=this[am](e),c=this[lm](e);try{Ke.fchownSync(o,u,c)}catch(h){try{Ke.chownSync(e.absolute,u,c)}catch{l=l||h}}}r(l)})}[rI](e,t){let i=e.mode&4095||this.dmode,r=this[Ua](e.absolute,i);if(r){this[tn](r,e),t();return}if(e.mtime&&!this.noMtime)try{Ke.utimesSync(e.absolute,e.atime||new Date,e.mtime)}catch{}if(this[sm](e))try{Ke.chownSync(e.absolute,this[am](e),this[lm](e))}catch{}t(),e.resume()}[Ua](e,t){try{return l3.sync(sr(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:t})}catch(i){return i}}[AC](e,t,i,r){try{Ke[i+"Sync"](t,e.absolute),r(),e.resume()}catch(o){return this[tn](o,e)}}};hm.Sync=sI;h3.exports=hm});var m3=y((Oqe,f3)=>{"use strict";var oSe=Mh(),NC=aI(),g3=require("fs"),p3=Kh(),d3=require("path"),lI=Wh();f3.exports=(n,e,t)=>{typeof n=="function"?(t=n,e=null,n={}):Array.isArray(n)&&(e=n,n={}),typeof e=="function"&&(t=e,e=null),e?e=Array.from(e):e=[];let i=oSe(n);if(i.sync&&typeof t=="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof t=="function")throw new TypeError("callback only supported with file option");return e.length&&sSe(i,e),i.file&&i.sync?aSe(i):i.file?lSe(i,t):i.sync?uSe(i):cSe(i)};var sSe=(n,e)=>{let t=new Map(e.map(o=>[lI(o),!0])),i=n.filter,r=(o,s)=>{let a=s||d3.parse(o).root||".",l=o===a?!1:t.has(o)?t.get(o):r(d3.dirname(o),a);return t.set(o,l),l};n.filter=i?(o,s)=>i(o,s)&&r(lI(o)):o=>r(lI(o))},aSe=n=>{let e=new NC.Sync(n),t=n.file,i=g3.statSync(t),r=n.maxReadSize||16*1024*1024;new p3.ReadStreamSync(t,{readSize:r,size:i.size}).pipe(e)},lSe=(n,e)=>{let t=new NC(n),i=n.maxReadSize||16*1024*1024,r=n.file,o=new Promise((s,a)=>{t.on("error",a),t.on("close",s),g3.stat(r,(l,u)=>{if(l)a(l);else{let c=new p3.ReadStream(r,{readSize:i,size:u.size});c.on("error",a),c.pipe(t)}})});return e?o.then(e,e):o},uSe=n=>new NC.Sync(n),cSe=n=>new NC(n)});var b3=y(pi=>{"use strict";pi.c=pi.create=QG();pi.r=pi.replace=YL();pi.t=pi.list=kC();pi.u=pi.update=az();pi.x=pi.extract=m3();pi.Pack=hC();pi.Unpack=aI();pi.Parse=TC();pi.ReadEntry=Xx();pi.WriteEntry=yL();pi.Header=Bh();pi.Pax=zx();pi.types=eL()});var x3=y((Nqe,w3)=>{w3.exports=nn;function nn(n){if(!(this instanceof nn))return new nn(n);this.value=n}nn.prototype.get=function(n){for(var e=this.value,t=0;t<n.length;t++){var i=n[t];if(!Object.hasOwnProperty.call(e,i)){e=void 0;break}e=e[i]}return e};nn.prototype.set=function(n,e){for(var t=this.value,i=0;i<n.length-1;i++){var r=n[i];Object.hasOwnProperty.call(t,r)||(t[r]={}),t=t[r]}return t[n[i]]=e,e};nn.prototype.map=function(n){return y3(this.value,n,!0)};nn.prototype.forEach=function(n){return this.value=y3(this.value,n,!1),this.value};nn.prototype.reduce=function(n,e){var t=arguments.length===1,i=t?this.value:e;return this.forEach(function(r){(!this.isRoot||!t)&&(i=n.call(this,i,r))}),i};nn.prototype.deepEqual=function(n){if(arguments.length!==1)throw new Error("deepEqual requires exactly one object to compare against");var e=!0,t=n;return this.forEach(function(i){var r=function(){e=!1}.bind(this);if(!this.isRoot){if(typeof t!="object")return r();t=t[this.key]}var o=t;this.post(function(){t=o});var s=function(h){return Object.prototype.toString.call(h)};if(this.circular)nn(n).get(this.circular.path)!==o&&r();else if(typeof o!=typeof i)r();else if(o===null||i===null||o===void 0||i===void 0)o!==i&&r();else if(o.__proto__!==i.__proto__)r();else if(o!==i){if(typeof o=="function")o instanceof RegExp?o.toString()!=i.toString()&&r():o!==i&&r();else if(typeof o=="object")if(s(i)==="[object Arguments]"||s(o)==="[object Arguments]")s(o)!==s(i)&&r();else if(o instanceof Date||i instanceof Date)(!(o instanceof Date)||!(i instanceof Date)||o.getTime()!==i.getTime())&&r();else{var a=Object.keys(o),l=Object.keys(i);if(a.length!==l.length)return r();for(var u=0;u<a.length;u++){var c=a[u];Object.hasOwnProperty.call(i,c)||r()}}}}),e};nn.prototype.paths=function(){var n=[];return this.forEach(function(e){n.push(this.path)}),n};nn.prototype.nodes=function(){var n=[];return this.forEach(function(e){n.push(this.node)}),n};nn.prototype.clone=function(){var n=[],e=[];return function t(i){for(var r=0;r<n.length;r++)if(n[r]===i)return e[r];if(typeof i=="object"&&i!==null){var o=v3(i);return n.push(i),e.push(o),Object.keys(i).forEach(function(s){o[s]=t(i[s])}),n.pop(),e.pop(),o}else return i}(this.value)};function y3(n,e,t){var i=[],r=[],o=!0;return function s(a){var l=t?v3(a):a,u={},c={node:l,node_:a,path:[].concat(i),parent:r.slice(-1)[0],key:i.slice(-1)[0],isRoot:i.length===0,level:i.length,circular:null,update:function(p){c.isRoot||(c.parent.node[c.key]=p),c.node=p},delete:function(){delete c.parent.node[c.key]},remove:function(){Array.isArray(c.parent.node)?c.parent.node.splice(c.key,1):delete c.parent.node[c.key]},before:function(p){u.before=p},after:function(p){u.after=p},pre:function(p){u.pre=p},post:function(p){u.post=p},stop:function(){o=!1}};if(!o)return c;if(typeof l=="object"&&l!==null){c.isLeaf=Object.keys(l).length==0;for(var h=0;h<r.length;h++)if(r[h].node_===a){c.circular=r[h];break}}else c.isLeaf=!0;c.notLeaf=!c.isLeaf,c.notRoot=!c.isRoot;var d=e.call(c,c.node);if(d!==void 0&&c.update&&c.update(d),u.before&&u.before.call(c,c.node),typeof c.node=="object"&&c.node!==null&&!c.circular){r.push(c);var g=Object.keys(c.node);g.forEach(function(p,f){i.push(p),u.pre&&u.pre.call(c,c.node[p],p);var m=s(c.node[p]);t&&Object.hasOwnProperty.call(c.node,p)&&(c.node[p]=m.node),m.isLast=f==g.length-1,m.isFirst=f==0,u.post&&u.post.call(c,m),i.pop()}),r.pop()}return u.after&&u.after.call(c,c.node),c}(n).node}Object.keys(nn.prototype).forEach(function(n){nn[n]=function(e){var t=[].slice.call(arguments,1),i=nn(e);return i[n].apply(i,t)}});function v3(n){if(typeof n=="object"&&n!==null){var e;return Array.isArray(n)?e=[]:n instanceof Date?e=new Date(n):n instanceof Boolean?e=new Boolean(n):n instanceof Number?e=new Number(n):n instanceof String?e=new String(n):e=Object.create(Object.getPrototypeOf(n)),Object.keys(n).forEach(function(t){e[t]=n[t]}),e}else return n}});var S3=y((Hqe,C3)=>{var hSe=x3(),dSe=require("events").EventEmitter;C3.exports=nd;function nd(n){var e=nd.saw(n,{}),t=n.call(e.handlers,e);return t!==void 0&&(e.handlers=t),e.record(),e.chain()}nd.light=function(e){var t=nd.saw(e,{}),i=e.call(t.handlers,t);return i!==void 0&&(t.handlers=i),t.chain()};nd.saw=function(n,e){var t=new dSe;return t.handlers=e,t.actions=[],t.chain=function(){var i=hSe(t.handlers).map(function(r){if(this.isRoot)return r;var o=this.path;typeof r=="function"&&this.update(function(){return t.actions.push({path:o,args:[].slice.call(arguments)}),i})});return process.nextTick(function(){t.emit("begin"),t.next()}),i},t.pop=function(){return t.actions.shift()},t.next=function(){var i=t.pop();if(!i)t.emit("end");else if(!i.trap){var r=t.handlers;i.path.forEach(function(o){r=r[o]}),r.apply(t.handlers,i.args)}},t.nest=function(i){var r=[].slice.call(arguments,1),o=!0;if(typeof i=="boolean"){var o=i;i=r.shift()}var s=nd.saw(n,{}),a=n.call(s.handlers,s);a!==void 0&&(s.handlers=a),typeof t.step<"u"&&s.record(),i.apply(s.chain(),r),o!==!1&&s.on("end",t.next)},t.record=function(){gSe(t)},["trap","down","jump"].forEach(function(i){t[i]=function(){throw new Error("To use the trap, down and jump features, please call record() first to start recording actions.")}}),t};function gSe(n){n.step=0,n.pop=function(){return n.actions[n.step++]},n.trap=function(e,t){var i=Array.isArray(e)?e:[e];n.actions.push({path:i,step:n.step,cb:t,trap:!0})},n.down=function(e){var t=(Array.isArray(e)?e:[e]).join("/"),i=n.actions.slice(n.step).map(function(o){return o.trap&&o.step<=n.step?!1:o.path.join("/")==t}).indexOf(!0);i>=0?n.step+=i:n.step=n.actions.length;var r=n.actions[n.step-1];r&&r.trap?(n.step=r.step,r.cb()):n.next()},n.jump=function(e){n.step=e,n.next()}}});var T3=y((qqe,D3)=>{D3.exports=bn;function bn(n){if(!(this instanceof bn))return new bn(n);this.buffers=n||[],this.length=this.buffers.reduce(function(e,t){return e+t.length},0)}bn.prototype.push=function(){for(var n=0;n<arguments.length;n++)if(!Buffer.isBuffer(arguments[n]))throw new TypeError("Tried to push a non-buffer");for(var n=0;n<arguments.length;n++){var e=arguments[n];this.buffers.push(e),this.length+=e.length}return this.length};bn.prototype.unshift=function(){for(var n=0;n<arguments.length;n++)if(!Buffer.isBuffer(arguments[n]))throw new TypeError("Tried to unshift a non-buffer");for(var n=0;n<arguments.length;n++){var e=arguments[n];this.buffers.unshift(e),this.length+=e.length}return this.length};bn.prototype.copy=function(n,e,t,i){return this.slice(t,i).copy(n,e,0,i-t)};bn.prototype.splice=function(n,e){var t=this.buffers,i=n>=0?n:this.length-n,r=[].slice.call(arguments,2);e===void 0?e=this.length-i:e>this.length-i&&(e=this.length-i);for(var n=0;n<r.length;n++)this.length+=r[n].length;for(var o=new bn,s=0,a=0,l=0;l<t.length&&a+t[l].length<i;l++)a+=t[l].length;if(i-a>0){var u=i-a;if(u+e<t[l].length){o.push(t[l].slice(u,u+e));for(var c=t[l],h=new Buffer(u),n=0;n<u;n++)h[n]=c[n];for(var d=new Buffer(c.length-u-e),n=u+e;n<c.length;n++)d[n-e-u]=c[n];if(r.length>0){var g=r.slice();g.unshift(h),g.push(d),t.splice.apply(t,[l,1].concat(g)),l+=g.length,r=[]}else t.splice(l,1,h,d),l+=2}else o.push(t[l].slice(u)),t[l]=t[l].slice(0,u),l++}for(r.length>0&&(t.splice.apply(t,[l,0].concat(r)),l+=r.length);o.length<e;){var p=t[l],f=p.length,m=Math.min(f,e-o.length);m===f?(o.push(p),t.splice(l,1)):(o.push(p.slice(0,m)),t[l]=t[l].slice(m))}return this.length-=o.length,o};bn.prototype.slice=function(n,e){var t=this.buffers;e===void 0&&(e=this.length),n===void 0&&(n=0),e>this.length&&(e=this.length);for(var i=0,r=0;r<t.length&&i+t[r].length<=n;r++)i+=t[r].length;for(var o=new Buffer(e-n),s=0,a=r;s<e-n&&a<t.length;a++){var l=t[a].length,u=s===0?n-i:0,c=s+l>=e-n?Math.min(u+(e-n)-s,l):l;t[a].copy(o,s,u,c),s+=c-u}return o};bn.prototype.pos=function(n){if(n<0||n>=this.length)throw new Error("oob");for(var e=n,t=0,i=null;;){if(i=this.buffers[t],e<i.length)return{buf:t,offset:e};e-=i.length,t++}};bn.prototype.get=function(e){var t=this.pos(e);return this.buffers[t.buf].get(t.offset)};bn.prototype.set=function(e,t){var i=this.pos(e);return this.buffers[i.buf].set(i.offset,t)};bn.prototype.indexOf=function(n,e){if(typeof n=="string")n=new Buffer(n);else if(!(n instanceof Buffer))throw new Error("Invalid type for a search string");if(!n.length)return 0;if(!this.length)return-1;var t=0,i=0,r=0,o,s=0;if(e){var a=this.pos(e);t=a.buf,i=a.offset,s=e}for(;;){for(;i>=this.buffers[t].length;)if(i=0,t++,t>=this.buffers.length)return-1;var l=this.buffers[t][i];if(l==n[r]){if(r==0&&(o={i:t,j:i,pos:s}),r++,r==n.length)return o.pos}else r!=0&&(t=o.i,i=o.j,s=o.pos,r=0);i++,s++}};bn.prototype.toBuffer=function(){return this.slice()};bn.prototype.toString=function(n,e,t){return this.slice(e,t).toString(n)}});var P3=y((Bqe,k3)=>{k3.exports=function(n){function e(i,r){var o=t.store,s=i.split(".");s.slice(0,-1).forEach(function(l){o[l]===void 0&&(o[l]={}),o=o[l]});var a=s[s.length-1];return arguments.length==1?o[a]:o[a]=r}var t={get:function(i){return e(i)},set:function(i,r){return e(i,r)},store:n||{}};return t}});var F3=y((wu,I3)=>{var pSe=S3(),E3=require("events").EventEmitter,fSe=T3(),HC=P3(),mSe=require("stream").Stream;wu=I3.exports=function(n,e){if(Buffer.isBuffer(n))return wu.parse(n);var t=wu.stream();return n&&n.pipe?n.pipe(t):n&&(n.on(e||"data",function(i){t.write(i)}),n.on("end",function(){t.end()})),t};wu.stream=function(n){if(n)return wu.apply(null,arguments);var e=null;function t(h,d,g){e={bytes:h,skip:g,cb:function(p){e=null,d(p)}},r()}var i=null;function r(){if(!e){c&&(u=!0);return}if(typeof e=="function")e();else{var h=i+e.bytes;if(a.length>=h){var d;i==null?(d=a.splice(0,h),e.skip||(d=d.slice())):(e.skip||(d=a.slice(i,h)),i=h),e.skip?e.cb():e.cb(d)}}}function o(h){function d(){u||h.next()}var g=L3(function(p,f){return function(m){t(p,function(b){l.set(m,f(b)),d()})}});return g.tap=function(p){h.nest(p,l.store)},g.into=function(p,f){l.get(p)||l.set(p,{});var m=l;l=HC(m.get(p)),h.nest(function(){f.apply(this,arguments),this.tap(function(){l=m})},l.store)},g.flush=function(){l.store={},d()},g.loop=function(p){var f=!1;h.nest(!1,function m(){this.vars=l.store,p.call(this,function(){f=!0,d()},l.store),this.tap(function(){f?h.next():m.call(this)}.bind(this))},l.store)},g.buffer=function(p,f){typeof f=="string"&&(f=l.get(f)),t(f,function(m){l.set(p,m),d()})},g.skip=function(p){typeof p=="string"&&(p=l.get(p)),t(p,function(){d()})},g.scan=function(f,m){if(typeof m=="string")m=new Buffer(m);else if(!Buffer.isBuffer(m))throw new Error("search must be a Buffer or a string");var b=0;e=function(){var w=a.indexOf(m,i+b),x=w-i-b;w!==-1?(e=null,i!=null?(l.set(f,a.slice(i,i+b+x)),i+=b+x+m.length):(l.set(f,a.slice(0,b+x)),a.splice(0,b+x+m.length)),d(),r()):x=Math.max(a.length-m.length-i-b,0),b+=x},r()},g.peek=function(p){i=0,h.nest(function(){p.call(this,l.store),this.tap(function(){i=null})})},g}var s=pSe.light(o);s.writable=!0;var a=fSe();s.write=function(h){a.push(h),r()};var l=HC(),u=!1,c=!1;return s.end=function(){c=!0},s.pipe=mSe.prototype.pipe,Object.getOwnPropertyNames(E3.prototype).forEach(function(h){s[h]=E3.prototype[h]}),s};wu.parse=function(e){var t=L3(function(o,s){return function(a){if(i+o<=e.length){var l=e.slice(i,i+o);i+=o,r.set(a,s(l))}else r.set(a,null);return t}}),i=0,r=HC();return t.vars=r.store,t.tap=function(o){return o.call(t,r.store),t},t.into=function(o,s){r.get(o)||r.set(o,{});var a=r;return r=HC(a.get(o)),s.call(t,r.store),r=a,t},t.loop=function(o){for(var s=!1,a=function(){s=!0};s===!1;)o.call(t,a,r.store);return t},t.buffer=function(o,s){typeof s=="string"&&(s=r.get(s));var a=e.slice(i,Math.min(e.length,i+s));return i+=s,r.set(o,a),t},t.skip=function(o){return typeof o=="string"&&(o=r.get(o)),i+=o,t},t.scan=function(o,s){if(typeof s=="string")s=new Buffer(s);else if(!Buffer.isBuffer(s))throw new Error("search must be a Buffer or a string");r.set(o,null);for(var a=0;a+i<=e.length-s.length+1;a++){for(var l=0;l<s.length&&e[i+a+l]===s[l];l++);if(l===s.length)break}return r.set(o,e.slice(i,i+a)),i+=a+s.length,t},t.peek=function(o){var s=i;return o.call(t,r.store),i=s,t},t.flush=function(){return r.store={},t},t.eof=function(){return i>=e.length},t};function R3(n){for(var e=0,t=0;t<n.length;t++)e+=Math.pow(256,t)*n[t];return e}function _3(n){for(var e=0,t=0;t<n.length;t++)e+=Math.pow(256,n.length-t-1)*n[t];return e}function bSe(n){var e=_3(n);return(n[0]&128)==128&&(e-=Math.pow(256,n.length)),e}function ySe(n){var e=R3(n);return(n[n.length-1]&128)==128&&(e-=Math.pow(256,n.length)),e}function L3(n){var e={};return[1,2,4,8].forEach(function(t){var i=t*8;e["word"+i+"le"]=e["word"+i+"lu"]=n(t,R3),e["word"+i+"ls"]=n(t,ySe),e["word"+i+"be"]=e["word"+i+"bu"]=n(t,_3),e["word"+i+"bs"]=n(t,bSe)}),e.word8=e.word8u=e.word8be,e.word8s=e.word8bs,e}});var O3=y((Wqe,M3)=>{var j3=require("stream").Transform,vSe=require("util");function xu(n,e){if(!(this instanceof xu))return new xu;j3.call(this);var t=typeof n=="object"?n.pattern:n;this.pattern=Buffer.isBuffer(t)?t:Buffer.from(t),this.requiredLength=this.pattern.length,n.requiredExtraSize&&(this.requiredLength+=n.requiredExtraSize),this.data=new Buffer(""),this.bytesSoFar=0,this.matchFn=e}vSe.inherits(xu,j3);xu.prototype.checkDataChunk=function(n){var e=this.data.length>=this.requiredLength;if(!!e){var t=this.data.indexOf(this.pattern,n?1:0);if(t>=0&&t+this.requiredLength>this.data.length){if(t>0){var i=this.data.slice(0,t);this.push(i),this.bytesSoFar+=t,this.data=this.data.slice(t)}return}if(t===-1){var r=this.data.length-this.requiredLength+1,i=this.data.slice(0,r);this.push(i),this.bytesSoFar+=r,this.data=this.data.slice(r);return}if(t>0){var i=this.data.slice(0,t);this.data=this.data.slice(t),this.push(i),this.bytesSoFar+=t}var o=this.matchFn?this.matchFn(this.data,this.bytesSoFar):!0;if(o){this.data=new Buffer("");return}return!0}};xu.prototype._transform=function(n,e,t){this.data=Buffer.concat([this.data,n]);for(var i=!0;this.checkDataChunk(!i);)i=!1;t()};xu.prototype._flush=function(n){if(this.data.length>0)for(var e=!0;this.checkDataChunk(!e);)e=!1;this.data.length>0&&(this.push(this.data),this.data=null),n()};M3.exports=xu});var N3=y((Yqe,A3)=>{"use strict";var uI=require("stream"),wSe=require("util").inherits;function dm(){if(!(this instanceof dm))return new dm;uI.PassThrough.call(this),this.path=null,this.type=null,this.isDirectory=!1}wSe(dm,uI.PassThrough);dm.prototype.autodrain=function(){return this.pipe(new uI.Transform({transform:function(n,e,t){t()}}))};A3.exports=dm});var hI=y((Zqe,q3)=>{"use strict";var Xa=F3(),cI=require("stream"),xSe=require("util"),CSe=require("zlib"),SSe=O3(),H3=N3(),Ce={STREAM_START:0,START:1,LOCAL_FILE_HEADER:2,LOCAL_FILE_HEADER_SUFFIX:3,FILE_DATA:4,FILE_DATA_END:5,DATA_DESCRIPTOR:6,CENTRAL_DIRECTORY_FILE_HEADER:7,CENTRAL_DIRECTORY_FILE_HEADER_SUFFIX:8,CDIR64_END:9,CDIR64_END_DATA_SECTOR:10,CDIR64_LOCATOR:11,CENTRAL_DIRECTORY_END:12,CENTRAL_DIRECTORY_END_COMMENT:13,TRAILING_JUNK:14,ERROR:99},gm=4294967296,DSe=67324752,TSe=134695760,kSe=33639248,PSe=101075792,ESe=117853008,RSe=101010256;function qi(n){if(!(this instanceof qi))return new qi(n);cI.Transform.call(this),this.options=n||{},this.data=new Buffer(""),this.state=Ce.STREAM_START,this.skippedBytes=0,this.parsedEntity=null,this.outStreamInfo={}}xSe.inherits(qi,cI.Transform);qi.prototype.processDataChunk=function(n){var e;switch(this.state){case Ce.STREAM_START:case Ce.START:e=4;break;case Ce.LOCAL_FILE_HEADER:e=26;break;case Ce.LOCAL_FILE_HEADER_SUFFIX:e=this.parsedEntity.fileNameLength+this.parsedEntity.extraFieldLength;break;case Ce.DATA_DESCRIPTOR:e=12;break;case Ce.CENTRAL_DIRECTORY_FILE_HEADER:e=42;break;case Ce.CENTRAL_DIRECTORY_FILE_HEADER_SUFFIX:e=this.parsedEntity.fileNameLength+this.parsedEntity.extraFieldLength+this.parsedEntity.fileCommentLength;break;case Ce.CDIR64_END:e=52;break;case Ce.CDIR64_END_DATA_SECTOR:e=this.parsedEntity.centralDirectoryRecordSize-44;break;case Ce.CDIR64_LOCATOR:e=16;break;case Ce.CENTRAL_DIRECTORY_END:e=18;break;case Ce.CENTRAL_DIRECTORY_END_COMMENT:e=this.parsedEntity.commentLength;break;case Ce.FILE_DATA:return 0;case Ce.FILE_DATA_END:return 0;case Ce.TRAILING_JUNK:return this.options.debug&&console.log("found",n.length,"bytes of TRAILING_JUNK"),n.length;default:return n.length}var t=n.length;if(t<e)return 0;switch(this.state){case Ce.STREAM_START:case Ce.START:var i=n.readUInt32LE(0);switch(i){case DSe:this.state=Ce.LOCAL_FILE_HEADER;break;case kSe:this.state=Ce.CENTRAL_DIRECTORY_FILE_HEADER;break;case PSe:this.state=Ce.CDIR64_END;break;case ESe:this.state=Ce.CDIR64_LOCATOR;break;case RSe:this.state=Ce.CENTRAL_DIRECTORY_END;break;default:var r=this.state===Ce.STREAM_START;if(!r&&(i&65535)!==19280&&this.skippedBytes<26){for(var o=i,s=4,a=1;a<4&&o!==0;a++)if(o=o>>>8,(o&255)===80){s=a;break}return this.skippedBytes+=s,this.options.debug&&console.log("Skipped",this.skippedBytes,"bytes"),s}this.state=Ce.ERROR;var l=r?"Not a valid zip file":"Invalid signature in zip file";if(this.options.debug){var u=n.readUInt32LE(0),c;try{c=n.slice(0,4).toString()}catch{}console.log("Unexpected signature in zip file: 0x"+u.toString(16),'"'+c+'", skipped',this.skippedBytes,"bytes")}return this.emit("error",new Error(l)),n.length}return this.skippedBytes=0,e;case Ce.LOCAL_FILE_HEADER:return this.parsedEntity=this._readFile(n),this.state=Ce.LOCAL_FILE_HEADER_SUFFIX,e;case Ce.LOCAL_FILE_HEADER_SUFFIX:var h=new H3,d=(this.parsedEntity.flags&2048)!==0;h.path=this._decodeString(n.slice(0,this.parsedEntity.fileNameLength),d);var p=n.slice(this.parsedEntity.fileNameLength,this.parsedEntity.fileNameLength+this.parsedEntity.extraFieldLength),f=this._readExtraFields(p);if(f&&f.parsed&&(f.parsed.path&&!d&&(h.path=f.parsed.path),Number.isFinite(f.parsed.uncompressedSize)&&this.parsedEntity.uncompressedSize===gm-1&&(this.parsedEntity.uncompressedSize=f.parsed.uncompressedSize),Number.isFinite(f.parsed.compressedSize)&&this.parsedEntity.compressedSize===gm-1&&(this.parsedEntity.compressedSize=f.parsed.compressedSize)),this.parsedEntity.extra=f.parsed||{},this.options.debug){let T=Object.assign({},this.parsedEntity,{path:h.path,flags:"0x"+this.parsedEntity.flags.toString(16),extraFields:f&&f.debug});console.log("decoded LOCAL_FILE_HEADER:",JSON.stringify(T,null,2))}return this._prepareOutStream(this.parsedEntity,h),this.emit("entry",h),this.state=Ce.FILE_DATA,e;case Ce.CENTRAL_DIRECTORY_FILE_HEADER:return this.parsedEntity=this._readCentralDirectoryEntry(n),this.state=Ce.CENTRAL_DIRECTORY_FILE_HEADER_SUFFIX,e;case Ce.CENTRAL_DIRECTORY_FILE_HEADER_SUFFIX:var d=(this.parsedEntity.flags&2048)!==0,g=this._decodeString(n.slice(0,this.parsedEntity.fileNameLength),d),p=n.slice(this.parsedEntity.fileNameLength,this.parsedEntity.fileNameLength+this.parsedEntity.extraFieldLength),f=this._readExtraFields(p);f&&f.parsed&&f.parsed.path&&!d&&(g=f.parsed.path),this.parsedEntity.extra=f.parsed;var m=(this.parsedEntity.versionMadeBy&65280)>>8===3,b,w;if(m){b=this.parsedEntity.externalFileAttributes>>>16;var x=b>>>12;w=(x&10)===10}if(this.options.debug){let T=Object.assign({},this.parsedEntity,{path:g,flags:"0x"+this.parsedEntity.flags.toString(16),unixAttrs:b&&"0"+b.toString(8),isSymlink:w,extraFields:f.debug});console.log("decoded CENTRAL_DIRECTORY_FILE_HEADER:",JSON.stringify(T,null,2))}return this.state=Ce.START,e;case Ce.CDIR64_END:return this.parsedEntity=this._readEndOfCentralDirectory64(n),this.options.debug&&console.log("decoded CDIR64_END_RECORD:",this.parsedEntity),this.state=Ce.CDIR64_END_DATA_SECTOR,e;case Ce.CDIR64_END_DATA_SECTOR:return this.state=Ce.START,e;case Ce.CDIR64_LOCATOR:return this.state=Ce.START,e;case Ce.CENTRAL_DIRECTORY_END:return this.parsedEntity=this._readEndOfCentralDirectory(n),this.options.debug&&console.log("decoded CENTRAL_DIRECTORY_END:",this.parsedEntity),this.state=Ce.CENTRAL_DIRECTORY_END_COMMENT,e;case Ce.CENTRAL_DIRECTORY_END_COMMENT:return this.options.debug&&console.log("decoded CENTRAL_DIRECTORY_END_COMMENT:",n.slice(0,e).toString()),this.state=Ce.TRAILING_JUNK,e;case Ce.ERROR:return n.length;default:return console.log("didn't handle state #",this.state,"discarding"),n.length}};qi.prototype._prepareOutStream=function(n,e){var t=this,i=n.uncompressedSize===0&&/[\/\\]$/.test(e.path);e.path=e.path.replace(/^([/\\]*[.]+[/\\]+)*[/\\]*/,""),e.type=i?"Directory":"File",e.isDirectory=i;var r=!(n.flags&8);r&&(e.size=n.uncompressedSize);var o=n.versionsNeededToExtract<=45;if(this.outStreamInfo={stream:null,limit:r?n.compressedSize:-1,written:0},r)this.outStreamInfo.stream=new cI.PassThrough;else{var s=new Buffer(4);s.writeUInt32LE(TSe,0);var a=n.extra.zip64Mode,l=a?20:12,u={pattern:s,requiredExtraSize:l},c=new SSe(u,function(f,m){var b=t._readDataDescriptor(f,a),w=b.compressedSize===m;if(!a&&!w&&m>=gm)for(var x=m-gm;x>=0&&(w=b.compressedSize===x,!w);)x-=gm;if(!!w){t.state=Ce.FILE_DATA_END;var T=a?24:16;return t.data.length>0?t.data=Buffer.concat([f.slice(T),t.data]):t.data=f.slice(T),!0}});this.outStreamInfo.stream=c}var h=n.flags&1||n.flags&64;if(h||!o){var d=h?"Encrypted files are not supported!":"Zip version "+Math.floor(n.versionsNeededToExtract/10)+"."+n.versionsNeededToExtract%10+" is not supported";e.skip=!0,setImmediate(()=>{e.emit("error",new Error(d))}),this.outStreamInfo.stream.pipe(new H3().autodrain());return}var g=n.compressionMethod>0;if(g){var p=CSe.createInflateRaw();p.on("error",function(f){t.state=Ce.ERROR,t.emit("error",f)}),this.outStreamInfo.stream.pipe(p).pipe(e)}else this.outStreamInfo.stream.pipe(e);this._drainAllEntries&&e.autodrain()};qi.prototype._readFile=function(n){var e=Xa.parse(n).word16lu("versionsNeededToExtract").word16lu("flags").word16lu("compressionMethod").word16lu("lastModifiedTime").word16lu("lastModifiedDate").word32lu("crc32").word32lu("compressedSize").word32lu("uncompressedSize").word16lu("fileNameLength").word16lu("extraFieldLength").vars;return e};qi.prototype._readExtraFields=function(n){var e={},t={parsed:e};this.options.debug&&(t.debug=[]);for(var i=0;i<n.length;){var r=Xa.parse(n).skip(i).word16lu("extraId").word16lu("extraSize").vars;i+=4;var o=void 0;switch(r.extraId){case 1:o="Zip64 extended information extra field";var s=Xa.parse(n.slice(i,i+r.extraSize)).word64lu("uncompressedSize").word64lu("compressedSize").word64lu("offsetToLocalHeader").word32lu("diskStartNumber").vars;s.uncompressedSize!==null&&(e.uncompressedSize=s.uncompressedSize),s.compressedSize!==null&&(e.compressedSize=s.compressedSize),e.zip64Mode=!0;break;case 10:o="NTFS extra field";break;case 21589:o="extended timestamp";var a=n.readUInt8(i),w=1;r.extraSize>=w+4&&a&1&&(e.mtime=new Date(n.readUInt32LE(i+w)*1e3),w+=4),r.extraSize>=w+4&&a&2&&(e.atime=new Date(n.readUInt32LE(i+w)*1e3),w+=4),r.extraSize>=w+4&&a&4&&(e.ctime=new Date(n.readUInt32LE(i+w)*1e3));break;case 28789:o="Info-ZIP Unicode Path Extra Field";var l=n.readUInt8(i);if(l===1){var w=1,u=n.readUInt32LE(i+w);w+=4;var c=n.slice(i+w);e.path=c.toString()}break;case 13:case 22613:o=r.extraId===13?"PKWARE Unix":"Info-ZIP UNIX (type 1)";var w=0;if(r.extraSize>=8){var h=new Date(n.readUInt32LE(i+w)*1e3);w+=4;var d=new Date(n.readUInt32LE(i+w)*1e3);if(w+=4,e.atime=h,e.mtime=d,r.extraSize>=12){var g=n.readUInt16LE(i+w);w+=2;var p=n.readUInt16LE(i+w);w+=2,e.uid=g,e.gid=p}}break;case 30805:o="Info-ZIP UNIX (type 2)";var w=0;if(r.extraSize>=4){var g=n.readUInt16LE(i+w);w+=2;var p=n.readUInt16LE(i+w);w+=2,e.uid=g,e.gid=p}break;case 30837:o="Info-ZIP New Unix";var w=0,f=n.readUInt8(i);if(w+=1,f===1){var m=n.readUInt8(i+w);w+=1,m<=6&&(e.uid=n.readUIntLE(i+w,m)),w+=m;var b=n.readUInt8(i+w);w+=1,b<=6&&(e.gid=n.readUIntLE(i+w,b))}break;case 30062:o="ASi Unix";var w=0;if(r.extraSize>=14){var x=n.readUInt32LE(i+w);w+=4;var T=n.readUInt16LE(i+w);w+=2;var R=n.readUInt32LE(i+w);w+=4;var g=n.readUInt16LE(i+w);w+=2;var p=n.readUInt16LE(i+w);if(w+=2,e.mode=T,e.uid=g,e.gid=p,r.extraSize>14){var F=i+w,N=i+r.extraSize-14,J=this._decodeString(n.slice(F,N));e.symlink=J}}break}this.options.debug&&t.debug.push({extraId:"0x"+r.extraId.toString(16),description:o,data:n.slice(i,i+r.extraSize).inspect()}),i+=r.extraSize}return t};qi.prototype._readDataDescriptor=function(n,e){if(e){var t=Xa.parse(n).word32lu("dataDescriptorSignature").word32lu("crc32").word64lu("compressedSize").word64lu("uncompressedSize").vars;return t}var t=Xa.parse(n).word32lu("dataDescriptorSignature").word32lu("crc32").word32lu("compressedSize").word32lu("uncompressedSize").vars;return t};qi.prototype._readCentralDirectoryEntry=function(n){var e=Xa.parse(n).word16lu("versionMadeBy").word16lu("versionsNeededToExtract").word16lu("flags").word16lu("compressionMethod").word16lu("lastModifiedTime").word16lu("lastModifiedDate").word32lu("crc32").word32lu("compressedSize").word32lu("uncompressedSize").word16lu("fileNameLength").word16lu("extraFieldLength").word16lu("fileCommentLength").word16lu("diskNumber").word16lu("internalFileAttributes").word32lu("externalFileAttributes").word32lu("offsetToLocalFileHeader").vars;return e};qi.prototype._readEndOfCentralDirectory64=function(n){var e=Xa.parse(n).word64lu("centralDirectoryRecordSize").word16lu("versionMadeBy").word16lu("versionsNeededToExtract").word32lu("diskNumber").word32lu("diskNumberWithCentralDirectoryStart").word64lu("centralDirectoryEntries").word64lu("totalCentralDirectoryEntries").word64lu("sizeOfCentralDirectory").word64lu("offsetToStartOfCentralDirectory").vars;return e};qi.prototype._readEndOfCentralDirectory=function(n){var e=Xa.parse(n).word16lu("diskNumber").word16lu("diskStart").word16lu("centralDirectoryEntries").word16lu("totalCentralDirectoryEntries").word32lu("sizeOfCentralDirectory").word32lu("offsetToStartOfCentralDirectory").word16lu("commentLength").vars;return e};var _Se="\0\u263A\u263B\u2665\u2666\u2663\u2660\u2022\u25D8\u25CB\u25D9\u2642\u2640\u266A\u266B\u263C\u25BA\u25C4\u2195\u203C\xB6\xA7\u25AC\u21A8\u2191\u2193\u2192\u2190\u221F\u2194\u25B2\u25BC !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\u2302\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xA2\xA3\xA5\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0 ";qi.prototype._decodeString=function(n,e){if(e)return n.toString("utf8");if(this.options.decodeString)return this.options.decodeString(n);let t="";for(var i=0;i<n.length;i++)t+=_Se[n[i]];return t};qi.prototype._parseOrOutput=function(n,e){for(var t;(t=this.processDataChunk(this.data))>0&&(this.data=this.data.slice(t),this.data.length!==0););if(this.state===Ce.FILE_DATA){if(this.outStreamInfo.limit>=0){var i=this.outStreamInfo.limit-this.outStreamInfo.written,r;i<this.data.length?(r=this.data.slice(0,i),this.data=this.data.slice(i)):(r=this.data,this.data=new Buffer("")),this.outStreamInfo.written+=r.length,this.outStreamInfo.limit===this.outStreamInfo.written?(this.state=Ce.START,this.outStreamInfo.stream.end(r,n,e)):this.outStreamInfo.stream.write(r,n,e)}else{var r=this.data;this.data=new Buffer(""),this.outStreamInfo.written+=r.length;var o=this.outStreamInfo.stream;o.write(r,n,()=>{if(this.state===Ce.FILE_DATA_END)return this.state=Ce.START,o.end(e);e()})}return}e()};qi.prototype.drainAll=function(){this._drainAllEntries=!0};qi.prototype._transform=function(n,e,t){var i=this;i.data.length>0?i.data=Buffer.concat([i.data,n]):i.data=n;var r=i.data.length,o=function(){if(i.data.length>0&&i.data.length<r){r=i.data.length,i._parseOrOutput(e,o);return}t()};i._parseOrOutput(e,o)};qi.prototype._flush=function(n){var e=this;if(e.data.length>0){e._parseOrOutput("buffer",function(){if(e.data.length>0)return setImmediate(function(){e._flush(n)});n()});return}if(e.state===Ce.FILE_DATA)return n(new Error("Stream finished in an invalid state, uncompression failed"));setImmediate(n)};q3.exports=qi});var W3=y((Jqe,B3)=>{var pm=require("stream").Transform,LSe=require("util"),ISe=hI();function Ga(n){if(!(this instanceof Ga))return new Ga(n);var e=n||{};pm.call(this,{readableObjectMode:!0}),this.opts=n||{},this.unzipStream=new ISe(this.opts);var t=this;this.unzipStream.on("entry",function(i){t.push(i)}),this.unzipStream.on("error",function(i){t.emit("error",i)})}LSe.inherits(Ga,pm);Ga.prototype._transform=function(n,e,t){this.unzipStream.write(n,e,t)};Ga.prototype._flush=function(n){var e=this;this.unzipStream.end(function(){process.nextTick(function(){e.emit("close")}),n()})};Ga.prototype.on=function(n,e){return n==="entry"?pm.prototype.on.call(this,"data",e):pm.prototype.on.call(this,n,e)};Ga.prototype.drainAll=function(){return this.unzipStream.drainAll(),this.pipe(new pm({objectMode:!0,transform:function(n,e,t){t()}}))};B3.exports=Ga});var $3=y(($qe,J3)=>{var fm=require("path"),Y3=require("fs"),Z3=parseInt("0777",8);J3.exports=rd.mkdirp=rd.mkdirP=rd;function rd(n,e,t,i){typeof e=="function"?(t=e,e={}):(!e||typeof e!="object")&&(e={mode:e});var r=e.mode,o=e.fs||Y3;r===void 0&&(r=Z3),i||(i=null);var s=t||function(){};n=fm.resolve(n),o.mkdir(n,r,function(a){if(!a)return i=i||n,s(null,i);switch(a.code){case"ENOENT":if(fm.dirname(n)===n)return s(a);rd(fm.dirname(n),e,function(l,u){l?s(l,u):rd(n,e,s,u)});break;default:o.stat(n,function(l,u){l||!u.isDirectory()?s(a,i):s(null,i)});break}})}rd.sync=function n(e,t,i){(!t||typeof t!="object")&&(t={mode:t});var r=t.mode,o=t.fs||Y3;r===void 0&&(r=Z3),i||(i=null),e=fm.resolve(e);try{o.mkdirSync(e,r),i=i||e}catch(a){switch(a.code){case"ENOENT":i=n(fm.dirname(e),t,i),n(e,t,i);break;default:var s;try{s=o.statSync(e)}catch{throw a}if(!s.isDirectory())throw a;break}}return i}});var z3=y((Uqe,G3)=>{var FSe=require("fs"),U3=require("path"),jSe=require("util"),MSe=$3(),X3=require("stream").Transform,OSe=hI();function za(n){if(!(this instanceof za))return new za(n);X3.call(this),this.opts=n||{},this.unzipStream=new OSe(this.opts),this.unfinishedEntries=0,this.afterFlushWait=!1,this.createdDirectories={};var e=this;this.unzipStream.on("entry",this._processEntry.bind(this)),this.unzipStream.on("error",function(t){e.emit("error",t)})}jSe.inherits(za,X3);za.prototype._transform=function(n,e,t){this.unzipStream.write(n,e,t)};za.prototype._flush=function(n){var e=this,t=function(){process.nextTick(function(){e.emit("close")}),n()};this.unzipStream.end(function(){if(e.unfinishedEntries>0)return e.afterFlushWait=!0,e.on("await-finished",t);t()})};za.prototype._processEntry=function(n){var e=this,t=U3.join(this.opts.path,n.path),i=n.isDirectory?t:U3.dirname(t);this.unfinishedEntries++;var r=function(){var o=FSe.createWriteStream(t);o.on("close",function(){e.unfinishedEntries--,e._notifyAwaiter()}),o.on("error",function(s){e.emit("error",s)}),n.pipe(o)};if(this.createdDirectories[i]||i===".")return r();MSe(i,function(o){if(o)return e.emit("error",o);if(e.createdDirectories[i]=!0,n.isDirectory){e.unfinishedEntries--,e._notifyAwaiter();return}r()})};za.prototype._notifyAwaiter=function(){this.afterFlushWait&&this.unfinishedEntries===0&&(this.emit("await-finished"),this.afterFlushWait=!1)};G3.exports=za});var K3=y(dI=>{"use strict";dI.Parse=W3();dI.Extract=z3()});var V3=y((Gqe,Q3)=>{"use strict";var ASe=["aborted","complete","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];Q3.exports=(n,e)=>{if(e._readableState.autoDestroy)throw new Error("The second stream must have the `autoDestroy` option set to `false`");let t=new Set(Object.keys(n).concat(ASe)),i={};for(let r of t)r in e||(i[r]={get(){let o=n[r];return typeof o=="function"?o.bind(n):o},set(o){n[r]=o},enumerable:!0,configurable:!1});return Object.defineProperties(e,i),n.once("aborted",()=>{e.destroy(),e.emit("aborted")}),n.once("close",()=>{n.complete&&e.readable?e.once("end",()=>{e.emit("close")}):e.emit("close")}),e}});var tK=y((zqe,eK)=>{"use strict";var{Transform:NSe,PassThrough:HSe}=require("stream"),gI=require("zlib"),qSe=V3();eK.exports=n=>{let e=(n.headers["content-encoding"]||"").toLowerCase();if(!["gzip","deflate","br"].includes(e))return n;let t=e==="br";if(t&&typeof gI.createBrotliDecompress!="function")return n.destroy(new Error("Brotli is not supported on Node.js < 12")),n;let i=!0,r=new NSe({transform(a,l,u){i=!1,u(null,a)},flush(a){a()}}),o=new HSe({autoDestroy:!1,destroy(a,l){n.destroy(),l(a)}}),s=t?gI.createBrotliDecompress():gI.createUnzip();return s.once("error",a=>{if(i&&!n.readable){o.end();return}o.destroy(a)}),qSe(n,o),n.pipe(r).pipe(s).pipe(o),o}});var nK=y((Kqe,iK)=>{var mm;iK.exports=function(){if(!mm){try{mm=Yt()("follow-redirects")}catch{}typeof mm!="function"&&(mm=function(){})}mm.apply(null,arguments)}});var hK=y((Qqe,yI)=>{var Cu=require("url"),pI=Cu.URL,BSe=require("http"),WSe=require("https"),sK=require("stream").Writable,aK=require("assert"),lK=nK(),mI=["abort","aborted","connect","error","socket","timeout"],bI=Object.create(null);mI.forEach(function(n){bI[n]=function(e,t,i){this._redirectable.emit(n,e,t,i)}});var YSe=ym("ERR_INVALID_URL","Invalid URL",TypeError),rK=ym("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),ZSe=ym("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),JSe=ym("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),$Se=ym("ERR_STREAM_WRITE_AFTER_END","write after end");function ar(n,e){sK.call(this),this._sanitizeOptions(n),this._options=n,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],e&&this.on("response",e);var t=this;this._onNativeResponse=function(i){t._processResponse(i)},this._performRequest()}ar.prototype=Object.create(sK.prototype);ar.prototype.abort=function(){cK(this._currentRequest),this.emit("abort")};ar.prototype.write=function(n,e,t){if(this._ending)throw new $Se;if(!Su(n)&&!GSe(n))throw new TypeError("data should be a string, Buffer or Uint8Array");if(bm(e)&&(t=e,e=null),n.length===0){t&&t();return}this._requestBodyLength+n.length<=this._options.maxBodyLength?(this._requestBodyLength+=n.length,this._requestBodyBuffers.push({data:n,encoding:e}),this._currentRequest.write(n,e,t)):(this.emit("error",new JSe),this.abort())};ar.prototype.end=function(n,e,t){if(bm(n)?(t=n,n=e=null):bm(e)&&(t=e,e=null),!n)this._ended=this._ending=!0,this._currentRequest.end(null,null,t);else{var i=this,r=this._currentRequest;this.write(n,e,function(){i._ended=!0,r.end(null,null,t)}),this._ending=!0}};ar.prototype.setHeader=function(n,e){this._options.headers[n]=e,this._currentRequest.setHeader(n,e)};ar.prototype.removeHeader=function(n){delete this._options.headers[n],this._currentRequest.removeHeader(n)};ar.prototype.setTimeout=function(n,e){var t=this;function i(s){s.setTimeout(n),s.removeListener("timeout",s.destroy),s.addListener("timeout",s.destroy)}function r(s){t._timeout&&clearTimeout(t._timeout),t._timeout=setTimeout(function(){t.emit("timeout"),o()},n),i(s)}function o(){t._timeout&&(clearTimeout(t._timeout),t._timeout=null),t.removeListener("abort",o),t.removeListener("error",o),t.removeListener("response",o),e&&t.removeListener("timeout",e),t.socket||t._currentRequest.removeListener("socket",r)}return e&&this.on("timeout",e),this.socket?r(this.socket):this._currentRequest.once("socket",r),this.on("socket",i),this.on("abort",o),this.on("error",o),this.on("response",o),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(n){ar.prototype[n]=function(e,t){return this._currentRequest[n](e,t)}});["aborted","connection","socket"].forEach(function(n){Object.defineProperty(ar.prototype,n,{get:function(){return this._currentRequest[n]}})});ar.prototype._sanitizeOptions=function(n){if(n.headers||(n.headers={}),n.host&&(n.hostname||(n.hostname=n.host),delete n.host),!n.pathname&&n.path){var e=n.path.indexOf("?");e<0?n.pathname=n.path:(n.pathname=n.path.substring(0,e),n.search=n.path.substring(e))}};ar.prototype._performRequest=function(){var n=this._options.protocol,e=this._options.nativeProtocols[n];if(!e){this.emit("error",new TypeError("Unsupported protocol "+n));return}if(this._options.agents){var t=n.slice(0,-1);this._options.agent=this._options.agents[t]}var i=this._currentRequest=e.request(this._options,this._onNativeResponse);i._redirectable=this;for(var r of mI)i.on(r,bI[r]);if(this._currentUrl=/^\//.test(this._options.path)?Cu.format(this._options):this._options.path,this._isRedirect){var o=0,s=this,a=this._requestBodyBuffers;(function l(u){if(i===s._currentRequest)if(u)s.emit("error",u);else if(o<a.length){var c=a[o++];i.finished||i.write(c.data,c.encoding,l)}else s._ended&&i.end()})()}};ar.prototype._processResponse=function(n){var e=n.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:n.headers,statusCode:e});var t=n.headers.location;if(!t||this._options.followRedirects===!1||e<300||e>=400){n.responseUrl=this._currentUrl,n.redirects=this._redirects,this.emit("response",n),this._requestBodyBuffers=[];return}if(cK(this._currentRequest),n.destroy(),++this._redirectCount>this._options.maxRedirects){this.emit("error",new ZSe);return}var i,r=this._options.beforeRedirect;r&&(i=Object.assign({Host:n.req.getHeader("host")},this._options.headers));var o=this._options.method;((e===301||e===302)&&this._options.method==="POST"||e===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],fI(/^content-/i,this._options.headers));var s=fI(/^host$/i,this._options.headers),a=Cu.parse(this._currentUrl),l=s||a.host,u=/^\w+:/.test(t)?this._currentUrl:Cu.format(Object.assign(a,{host:l})),c;try{c=Cu.resolve(u,t)}catch(p){this.emit("error",new rK({cause:p}));return}lK("redirecting to",c),this._isRedirect=!0;var h=Cu.parse(c);if(Object.assign(this._options,h),(h.protocol!==a.protocol&&h.protocol!=="https:"||h.host!==l&&!XSe(h.host,l))&&fI(/^(?:authorization|cookie)$/i,this._options.headers),bm(r)){var d={headers:n.headers,statusCode:e},g={url:u,method:o,headers:i};try{r(this._options,d,g)}catch(p){this.emit("error",p);return}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(p){this.emit("error",new rK({cause:p}))}};function uK(n){var e={maxRedirects:21,maxBodyLength:10485760},t={};return Object.keys(n).forEach(function(i){var r=i+":",o=t[r]=n[i],s=e[i]=Object.create(o);function a(u,c,h){if(Su(u)){var d;try{d=oK(new pI(u))}catch{d=Cu.parse(u)}if(!Su(d.protocol))throw new YSe({input:u});u=d}else pI&&u instanceof pI?u=oK(u):(h=c,c=u,u={protocol:r});return bm(c)&&(h=c,c=null),c=Object.assign({maxRedirects:e.maxRedirects,maxBodyLength:e.maxBodyLength},u,c),c.nativeProtocols=t,!Su(c.host)&&!Su(c.hostname)&&(c.hostname="::1"),aK.equal(c.protocol,r,"protocol mismatch"),lK("options",c),new ar(c,h)}function l(u,c,h){var d=s.request(u,c,h);return d.end(),d}Object.defineProperties(s,{request:{value:a,configurable:!0,enumerable:!0,writable:!0},get:{value:l,configurable:!0,enumerable:!0,writable:!0}})}),e}function USe(){}function oK(n){var e={protocol:n.protocol,hostname:n.hostname.startsWith("[")?n.hostname.slice(1,-1):n.hostname,hash:n.hash,search:n.search,pathname:n.pathname,path:n.pathname+n.search,href:n.href};return n.port!==""&&(e.port=Number(n.port)),e}function fI(n,e){var t;for(var i in e)n.test(i)&&(t=e[i],delete e[i]);return t===null||typeof t>"u"?void 0:String(t).trim()}function ym(n,e,t){function i(r){Error.captureStackTrace(this,this.constructor),Object.assign(this,r||{}),this.code=n,this.message=this.cause?e+": "+this.cause.message:e}return i.prototype=new(t||Error),i.prototype.constructor=i,i.prototype.name="Error ["+n+"]",i}function cK(n){for(var e of mI)n.removeListener(e,bI[e]);n.on("error",USe),n.abort()}function XSe(n,e){aK(Su(n)&&Su(e));var t=n.length-e.length-1;return t>0&&n[t]==="."&&n.endsWith(e)}function Su(n){return typeof n=="string"||n instanceof String}function bm(n){return typeof n=="function"}function GSe(n){return typeof n=="object"&&"length"in n}yI.exports=uK({http:BSe,https:WSe});yI.exports.wrap=uK});var dK=y(vI=>{"use strict";Object.defineProperty(vI,"__esModule",{value:!0});function zSe(n,e,{signal:t}={}){return new Promise((i,r)=>{function o(){t==null||t.removeEventListener("abort",o),n.removeListener(e,s),n.removeListener("error",a)}function s(...l){o(),i(l)}function a(l){o(),r(l)}t==null||t.addEventListener("abort",o),n.on(e,s),n.on("error",a)})}vI.default=zSe});var gK=y(wI=>{"use strict";Object.defineProperty(wI,"__esModule",{value:!0});function KSe(n){return function(e,t){return new Promise((i,r)=>{n.call(this,e,t,(o,s)=>{o?r(o):i(s)})})}}wI.default=KSe});var SI=y((CI,fK)=>{"use strict";var pK=CI&&CI.__importDefault||function(n){return n&&n.__esModule?n:{default:n}},QSe=require("events"),VSe=pK(Yt()),eDe=pK(gK()),vm=VSe.default("agent-base");function tDe(n){return Boolean(n)&&typeof n.addRequest=="function"}function xI(){let{stack:n}=new Error;return typeof n!="string"?!1:n.split(`
|
||
`).some(e=>e.indexOf("(https.js:")!==-1||e.indexOf("node:https:")!==-1)}function qC(n,e){return new qC.Agent(n,e)}(function(n){class e extends QSe.EventEmitter{constructor(i,r){super();let o=r;typeof i=="function"?this.callback=i:i&&(o=i),this.timeout=null,o&&typeof o.timeout=="number"&&(this.timeout=o.timeout),this.maxFreeSockets=1,this.maxSockets=1,this.maxTotalSockets=1/0,this.sockets={},this.freeSockets={},this.requests={},this.options={}}get defaultPort(){return typeof this.explicitDefaultPort=="number"?this.explicitDefaultPort:xI()?443:80}set defaultPort(i){this.explicitDefaultPort=i}get protocol(){return typeof this.explicitProtocol=="string"?this.explicitProtocol:xI()?"https:":"http:"}set protocol(i){this.explicitProtocol=i}callback(i,r,o){throw new Error('"agent-base" has no default implementation, you must subclass and override `callback()`')}addRequest(i,r){let o=Object.assign({},r);typeof o.secureEndpoint!="boolean"&&(o.secureEndpoint=xI()),o.host==null&&(o.host="localhost"),o.port==null&&(o.port=o.secureEndpoint?443:80),o.protocol==null&&(o.protocol=o.secureEndpoint?"https:":"http:"),o.host&&o.path&&delete o.path,delete o.agent,delete o.hostname,delete o._defaultAgent,delete o.defaultPort,delete o.createConnection,i._last=!0,i.shouldKeepAlive=!1;let s=!1,a=null,l=o.timeout||this.timeout,u=g=>{i._hadError||(i.emit("error",g),i._hadError=!0)},c=()=>{a=null,s=!0;let g=new Error(`A "socket" was not created for HTTP request before ${l}ms`);g.code="ETIMEOUT",u(g)},h=g=>{s||(a!==null&&(clearTimeout(a),a=null),u(g))},d=g=>{if(s)return;if(a!=null&&(clearTimeout(a),a=null),tDe(g)){vm("Callback returned another Agent instance %o",g.constructor.name),g.addRequest(i,o);return}if(g){g.once("free",()=>{this.freeSocket(g,o)}),i.onSocket(g);return}let p=new Error(`no Duplex stream was returned to agent-base for \`${i.method} ${i.path}\``);u(p)};if(typeof this.callback!="function"){u(new Error("`callback` is not defined"));return}this.promisifiedCallback||(this.callback.length>=3?(vm("Converting legacy callback function to promise"),this.promisifiedCallback=eDe.default(this.callback)):this.promisifiedCallback=this.callback),typeof l=="number"&&l>0&&(a=setTimeout(c,l)),"port"in o&&typeof o.port!="number"&&(o.port=Number(o.port));try{vm("Resolving socket for %o request: %o",o.protocol,`${i.method} ${i.path}`),Promise.resolve(this.promisifiedCallback(i,o)).then(d,h)}catch(g){Promise.reject(g).catch(h)}}freeSocket(i,r){vm("Freeing socket %o %o",i.constructor.name,r),i.destroy()}destroy(){vm("Destroying agent %o",this.constructor.name)}}n.Agent=e,n.prototype=n.Agent.prototype})(qC||(qC={}));fK.exports=qC});var mK=y(Du=>{"use strict";var iDe=Du&&Du.__awaiter||function(n,e,t,i){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(c){try{u(i.next(c))}catch(h){s(h)}}function l(c){try{u(i.throw(c))}catch(h){s(h)}}function u(c){c.done?o(c.value):r(c.value).then(a,l)}u((i=i.apply(n,e||[])).next())})},wm=Du&&Du.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Du,"__esModule",{value:!0});var nDe=wm(require("net")),rDe=wm(require("tls")),DI=wm(require("url")),oDe=wm(Yt()),sDe=wm(dK()),aDe=SI(),Ka=(0,oDe.default)("http-proxy-agent");function lDe(n){return typeof n=="string"?/^https:?$/i.test(n):!1}var TI=class extends aDe.Agent{constructor(e){let t;if(typeof e=="string"?t=DI.default.parse(e):t=e,!t)throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!");Ka("Creating new HttpProxyAgent instance: %o",t),super(t);let i=Object.assign({},t);this.secureProxy=t.secureProxy||lDe(i.protocol),i.host=i.hostname||i.host,typeof i.port=="string"&&(i.port=parseInt(i.port,10)),!i.port&&i.host&&(i.port=this.secureProxy?443:80),i.host&&i.path&&(delete i.path,delete i.pathname),this.proxy=i}callback(e,t){return iDe(this,void 0,void 0,function*(){let{proxy:i,secureProxy:r}=this,o=DI.default.parse(e.path);o.protocol||(o.protocol="http:"),o.hostname||(o.hostname=t.hostname||t.host||null),o.port==null&&typeof t.port&&(o.port=String(t.port)),o.port==="80"&&(o.port=""),e.path=DI.default.format(o),i.auth&&e.setHeader("Proxy-Authorization",`Basic ${Buffer.from(i.auth).toString("base64")}`);let s;if(r?(Ka("Creating `tls.Socket`: %o",i),s=rDe.default.connect(i)):(Ka("Creating `net.Socket`: %o",i),s=nDe.default.connect(i)),e._header){let a,l;Ka("Regenerating stored HTTP header string for request"),e._header=null,e._implicitHeader(),e.output&&e.output.length>0?(Ka("Patching connection write() output buffer with updated header"),a=e.output[0],l=a.indexOf(`\r
|
||
\r
|
||
`)+4,e.output[0]=e._header+a.substring(l),Ka("Output buffer: %o",e.output)):e.outputData&&e.outputData.length>0&&(Ka("Patching connection write() output buffer with updated header"),a=e.outputData[0].data,l=a.indexOf(`\r
|
||
\r
|
||
`)+4,e.outputData[0].data=e._header+a.substring(l),Ka("Output buffer: %o",e.outputData[0].data))}return yield(0,sDe.default)(s,"connect"),s})}};Du.default=TI});var yK=y((EI,bK)=>{"use strict";var uDe=EI&&EI.__importDefault||function(n){return n&&n.__esModule?n:{default:n}},kI=uDe(mK());function PI(n){return new kI.default(n)}(function(n){n.HttpProxyAgent=kI.default,n.prototype=kI.default.prototype})(PI||(PI={}));bK.exports=PI});var vK=y(Cm=>{"use strict";var cDe=Cm&&Cm.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Cm,"__esModule",{value:!0});var hDe=cDe(Yt()),xm=hDe.default("https-proxy-agent:parse-proxy-response");function dDe(n){return new Promise((e,t)=>{let i=0,r=[];function o(){let h=n.read();h?c(h):n.once("readable",o)}function s(){n.removeListener("end",l),n.removeListener("error",u),n.removeListener("close",a),n.removeListener("readable",o)}function a(h){xm("onclose had error %o",h)}function l(){xm("onend")}function u(h){s(),xm("onerror %o",h),t(h)}function c(h){r.push(h),i+=h.length;let d=Buffer.concat(r,i);if(d.indexOf(`\r
|
||
\r
|
||
`)===-1){xm("have not received end of HTTP headers yet..."),o();return}let p=d.toString("ascii",0,d.indexOf(`\r
|
||
`)),f=+p.split(" ")[1];xm("got proxy server response: %o",p),e({statusCode:f,buffered:d})}n.on("error",u),n.on("close",a),n.on("end",l),o()})}Cm.default=dDe});var CK=y(Tu=>{"use strict";var gDe=Tu&&Tu.__awaiter||function(n,e,t,i){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(c){try{u(i.next(c))}catch(h){s(h)}}function l(c){try{u(i.throw(c))}catch(h){s(h)}}function u(c){c.done?o(c.value):r(c.value).then(a,l)}u((i=i.apply(n,e||[])).next())})},od=Tu&&Tu.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Tu,"__esModule",{value:!0});var wK=od(require("net")),xK=od(require("tls")),pDe=od(require("url")),fDe=od(require("assert")),mDe=od(Yt()),bDe=SI(),yDe=od(vK()),Sm=mDe.default("https-proxy-agent:agent"),RI=class extends bDe.Agent{constructor(e){let t;if(typeof e=="string"?t=pDe.default.parse(e):t=e,!t)throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!");Sm("creating new HttpsProxyAgent instance: %o",t),super(t);let i=Object.assign({},t);this.secureProxy=t.secureProxy||xDe(i.protocol),i.host=i.hostname||i.host,typeof i.port=="string"&&(i.port=parseInt(i.port,10)),!i.port&&i.host&&(i.port=this.secureProxy?443:80),this.secureProxy&&!("ALPNProtocols"in i)&&(i.ALPNProtocols=["http 1.1"]),i.host&&i.path&&(delete i.path,delete i.pathname),this.proxy=i}callback(e,t){return gDe(this,void 0,void 0,function*(){let{proxy:i,secureProxy:r}=this,o;r?(Sm("Creating `tls.Socket`: %o",i),o=xK.default.connect(i)):(Sm("Creating `net.Socket`: %o",i),o=wK.default.connect(i));let s=Object.assign({},i.headers),l=`CONNECT ${`${t.host}:${t.port}`} HTTP/1.1\r
|
||
`;i.auth&&(s["Proxy-Authorization"]=`Basic ${Buffer.from(i.auth).toString("base64")}`);let{host:u,port:c,secureEndpoint:h}=t;wDe(c,h)||(u+=`:${c}`),s.Host=u,s.Connection="close";for(let m of Object.keys(s))l+=`${m}: ${s[m]}\r
|
||
`;let d=yDe.default(o);o.write(`${l}\r
|
||
`);let{statusCode:g,buffered:p}=yield d;if(g===200){if(e.once("socket",vDe),t.secureEndpoint){let m=t.servername||t.host;if(!m)throw new Error('Could not determine "servername"');return Sm("Upgrading socket connection to TLS"),xK.default.connect(Object.assign(Object.assign({},CDe(t,"host","hostname","path","port")),{socket:o,servername:m}))}return o}o.destroy();let f=new wK.default.Socket;return f.readable=!0,e.once("socket",m=>{Sm("replaying proxy buffer for failed request"),fDe.default(m.listenerCount("data")>0),m.push(p),m.push(null)}),f})}};Tu.default=RI;function vDe(n){n.resume()}function wDe(n,e){return Boolean(!e&&n===80||e&&n===443)}function xDe(n){return typeof n=="string"?/^https:?$/i.test(n):!1}function CDe(n,...e){let t={},i;for(i in n)e.includes(i)||(t[i]=n[i]);return t}});var DK=y((II,SK)=>{"use strict";var SDe=II&&II.__importDefault||function(n){return n&&n.__esModule?n:{default:n}},_I=SDe(CK());function LI(n){return new _I.default(n)}(function(n){n.HttpsProxyAgent=_I.default,n.prototype=_I.default.prototype})(LI||(LI={}));SK.exports=LI});function FI(n){return n||""}function jI(n){return n.protocol==="https:"?WC.https:WC.http}function DDe(n){return typeof n=="string"||Buffer.isBuffer(n)?n:JSON.stringify(n)}function MI(n){if(n instanceof BC.URL)return n;let e=new BC.URL(n);if(!["https:","http:"].includes(e.protocol))throw new Error(`Not valid protocol with ${n}, should be http: or https:`);return e}function TDe(n){return n===null?"null":n===void 0?"undefined":typeof n=="string"?"string":Buffer.isBuffer(n)?"buffer":Array.isArray(n)||hi(n)?"object":"unknown"}function kDe(n,e=process.env){let t=e.NO_PROXY??e.no_proxy;if(t==="*")return null;if(t){let r=n.hostname.replace(/^\.*/,".").toLowerCase(),o=n.port||n.protocol.startsWith("https")?"443":"80",s=t.split(",");for(let a=0,l=s.length;a<l;a++){let u=s[a].trim().toLowerCase();if(u.includes(":")){let c=u.split(":",2),h=c[0].replace(/^\.*/,"."),d=c[1];if(o===d&&r.endsWith(h))return null}else if(u=u.replace(/^\.*/,"."),r.endsWith(u))return null}}let i;return n.protocol==="http:"?i=e.HTTP_PROXY||e.http_proxy||null:i=e.HTTPS_PROXY||e.https_proxy||e.HTTP_PROXY||e.http_proxy||null,i}function PDe(n,e){let t=e.proxy||kDe(n);if(t){let i;try{if(i=new BC.URL(t),!/^https?:$/.test(i.protocol))return null}catch{return null}let r={host:i.hostname,port:i.port?Number(i.port):i.protocol==="https:"?443:80,auth:i.username?`${i.username}:${FI(i.password)}`:void 0,rejectUnauthorized:typeof e.proxyStrictSSL=="boolean"?e.proxyStrictSSL:!0};return _K.info(`Using proxy ${t} from ${e.proxy?"configuration":"system environment"} for ${n.hostname}:`),n.protocol==="http:"?(0,PK.default)(r):(0,EK.default)(r)}return null}function OI(n,e){let t=v.getConfiguration("http",null),i=TDe(e.data),r={proxy:t.get("proxy",""),proxyStrictSSL:t.get("proxyStrictSSL",!0),proxyAuthorization:t.get("proxyAuthorization",null),proxyCA:t.get("proxyCA",null)};e.query&&!n.search&&(n.search=`?${(0,RK.stringify)(e.query)}`);let o=PDe(n,r),s={method:e.method??"GET",hostname:n.hostname,port:n.port?parseInt(n.port,10):n.protocol==="https:"?443:80,path:n.pathname+n.search,agent:o,rejectUnauthorized:r.proxyStrictSSL,maxRedirects:3,headers:{"User-Agent":"Mozilla/5.0 (X11; Linux x86_64)","Accept-Encoding":"gzip, deflate",...e.headers??{}}};return i=="object"?s.headers["Content-Type"]="application/json":i=="string"&&(s.headers["Content-Type"]="text/plain"),r.proxyAuthorization&&(s.headers["Proxy-Authorization"]=r.proxyAuthorization),r.proxyCA&&(s.ca=kK.default.readFileSync(r.proxyCA)),e.user&&(s.auth=e.user+":"+FI(e.password)),n.username&&(s.auth=n.username+":"+FI(n.password)),e.timeout&&(s.timeout=e.timeout),e.buffer&&(s.buffer=!0),s}function EDe(n,e,t,i){let r=jI(n);return new Promise((o,s)=>{if(i){let u=i.onCancellationRequested(()=>{u.dispose(),l.destroy(new ii)})}let a,l=r.request(t,u=>{let c=u;if(u.statusCode>=200&&u.statusCode<300||u.statusCode===1223){let h=u.headers,d=[],g=h["content-type"]||"";c=(0,TK.default)(u),c.on("data",p=>{d.push(p)}),c.on("end",()=>{clearTimeout(a);let p=Buffer.concat(d);if(!t.buffer&&(g.startsWith("application/json")||g.startsWith("text/"))){let f=g.match(/charset=(\S+)/),m=f?f[1]:"utf8",b=p.toString(m);if(!g.includes("application/json"))o(b);else try{let w=JSON.parse(b);o(w)}catch(w){s(new Error(`Parse response error: ${w}`))}}else o(p)}),c.on("error",p=>{s(new Error(`Connection error to ${n}: ${p.message}`))})}else s(new Error(`Bad response from ${n}: ${u.statusCode}`))});l.on("error",u=>{t.agent&&u.code=="ECONNRESET"?a=setTimeout(()=>{s(u)},500):s(u)}),l.on("timeout",()=>{l.destroy(new Error(`Request timeout after ${t.timeout}ms`))}),e&&l.write(DDe(e)),t.timeout&&l.setTimeout(t.timeout),l.end()})}function Dm(n,e={},t){let i=MI(n),r=OI(i,e);return EDe(i,e.data,r,t).catch(o=>{if(_K.error(`Fetch error for ${i}:`,r,o),r.agent&&r.agent.proxy){let{proxy:s}=r.agent;throw new Error(`Request failed using proxy ${s.host}: ${o.message}`)}else throw o})}var TK,WC,kK,PK,EK,RK,BC,_K,YC=k(()=>{"use strict";TK=S(tK()),WC=S(hK()),kK=S(require("fs")),PK=S(yK()),EK=S(DK()),RK=require("querystring"),BC=require("url");xr();wi();ie();_K=q()("model-fetch")});function RDe(n){let e=n.etag;if(typeof e=="string"&&(e=e.replace(/^W\//,""),!(!e.startsWith('"')||!e.endsWith('"'))))return e.slice(1,-1)}function Pm(n,e,t){let i=MI(n),{etagAlgorithm:r}=e,{dest:o,onProgress:s,extract:a}=e;if(!o||!km.default.isAbsolute(o))throw new Error("Expect absolute file path for dest option.");if(!Tm.default.existsSync(o))Tm.default.mkdirSync(o,{recursive:!0});else{let d=Tm.default.statSync(o);if(d&&!d.isDirectory())throw new Error(`${o} exists, but not directory!`)}let l=jI(i),u=OI(i,e);!u.agent&&e.agent&&(u.agent=e.agent);let c=km.default.extname(i.pathname),h=!1;return new Promise((d,g)=>{if(t){let m=t.onCancellationRequested(()=>{m.dispose(),f.destroy(new Error("request aborted"))})}let p,f=l.request(u,m=>{var b;if(m.statusCode>=200&&m.statusCode<300||m.statusCode===1223){let w=m.headers??{},x=w["content-disposition"],T=RDe(w),R=T&&typeof r=="string";if(!c&&x){let L=LK.default.parse(x);(b=L.parameters)!=null&&b.filename&&(c=km.default.extname(L.parameters.filename))}if(a===!0)if(c===".zip"||w["content-type"]=="application/zip")a="unzip";else if(c==".tgz")a="untar";else{g(new Error(`Unable to detect extract method for ${i}`));return}let F=Number(w["content-length"]),N=!isNaN(F),J=0;m.on("error",L=>{g(new Error(`Unable to connect ${i}: ${L.message}`))});let H=R?IK.default.createHash(r):void 0;m.on("data",L=>{if(J+=L.length,H&&H.update(L),N){let O=(J/F*100).toFixed(1);typeof s=="function"?s(O):AI.info(`Download ${i} progress ${O}%`)}}),m.on("end",()=>{h||(clearTimeout(p),p=void 0,AI.info("Download completed:",i))});let M;a==="untar"?M=m.pipe(FK.default.x({strip:e.strip??1,C:o})):a==="unzip"?M=m.pipe(jK.default.Extract({path:o})):(o=km.default.join(o,`${ps()}${c}`),M=m.pipe(Tm.default.createWriteStream(o))),M.on("finish",()=>{if(!h){if(H&&H.digest("hex")!==T){g(new Error(`Etag check failed by ${r}, content not match.`));return}AI.info(`Downloaded ${i} => ${o}`),setTimeout(()=>{d(o)},100)}}),M.on("error",g)}else g(new Error(`Invalid response from ${i}: ${m.statusCode}`))});f.on("error",m=>{if(u.agent&&m.code=="ECONNRESET")p=setTimeout(()=>{h=!0,g(m)},500);else{if(clearTimeout(p),u.agent&&u.agent.proxy){g(new Error(`Request failed using proxy ${u.agent.proxy.host}: ${m.message}`));return}h=!0,g(m)}}),f.on("timeout",()=>{f.destroy(new Error(`request timeout after ${e.timeout}ms`))}),typeof e.timeout=="number"&&e.timeout&&f.setTimeout(e.timeout),f.end()})}var LK,IK,Tm,km,FK,jK,AI,NI=k(()=>{"use strict";LK=S(F2()),IK=S(require("crypto")),Tm=S(require("fs")),km=S(require("path")),FK=S(b3()),jK=S(K3());qe();YC();AI=q()("model-download")});function LDe(n=NK.default.homedir()){let e,t=qn.default.join(n,".npmrc");if(qo.default.existsSync(t))try{let i=qo.default.readFileSync(t,"utf8"),r;for(let o of i.split(/\r?\n/)){if(o.startsWith("#"))continue;let s=o.match(/^(.*?)=(.*)$/);s&&s[1]==="coc.nvim:registry"&&(r=s[2])}r&&(e=new JC.URL(r))}catch(i){qK.debug("Error on parse .npmrc:",i)}return e??new JC.URL("https://registry.npmjs.org")}function IDe(n){let e=qn.default.basename(n);return e==="npm"||e==="npm.CMD"}function FDe(n){let e=qn.default.basename(n);return["yarn","yarn.CMD","yarnpkg","yarnpkg.CMD"].includes(e)}function jDe(n){let e=qn.default.basename(n);return e==="pnpm"||e==="pnpm.CMD"}function MK(n){return!!(qo.default.existsSync(n)&&qo.default.lstatSync(n).isSymbolicLink())}function MDe(n){return Object.keys(n.dependencies??{}).filter(e=>!_De.includes(e))}var OK,AK,qo,NK,qn,HK,ZC,JC,qK,_De,$C,BK=k(()=>{"use strict";OK=require("child_process"),AK=require("events"),qo=S(require("fs")),NK=S(require("os")),qn=S(require("path")),HK=S(require("readline")),ZC=S(of());qe();JC=require("url");NI();YC();ie();$e();qK=q()("extension-installer"),_De=["coc.nvim","esbuild","webpack","@types/node"];$C=class extends AK.EventEmitter{constructor(t,i,r){super();this.root=t;this.npm=i;this.def=r;if(/^https?:/.test(r))this.url=r;else{let o=r.match(/(.+)@([^/]+)$/);o?(this.name=o[1],this.version=o[2]):this.name=r}}get info(){return{name:this.name,version:this.version}}async getInfo(){if(this.url)return await this.getInfoFromUri();let t=LDe();this.log(`Get info from ${t}`);let i=await this.fetch(new JC.URL(this.name,t),{timeout:1e4,buffer:!0}),r=JSON.parse(i.toString());this.version||(this.version=r["dist-tags"].latest);let o=r.versions[this.version];if(!o)throw new Error(`${this.def} doesn't exists in ${t}.`);let s=o.engines&&o.engines.coc;if(!s)throw new Error(`${this.def} is not a valid coc extension, "engines" field with coc property required.`);return{"dist.tarball":o.dist.tarball,"engines.coc":s,version:o.version,name:r.name}}async getInfoFromUri(){let{url:t}=this;if(!t.startsWith("https://github.com"))throw new Error(`"${t}" is not supported, coc.nvim support github.com only`);t=t.replace(/\/$/,"");let i="master";if(t.includes("@")){let a=t.indexOf("@");i=t.substr(a+1),t=t.substring(0,a)}let r=t.replace("github.com","raw.githubusercontent.com")+`/${i}/package.json`;this.log(`Get info from ${r}`);let o=await this.fetch(r,{timeout:1e4}),s=typeof o=="string"?JSON.parse(o):o;return this.name=s.name,{"dist.tarball":`${t}/archive/${i}.tar.gz`,"engines.coc":s.engines?s.engines.coc:null,name:s.name,version:s.version}}log(t,i=!1){this.emit("message",t,i)}async install(){this.log(`Using npm from: ${this.npm}`);let t=await this.getInfo();qK.info(`Fetched info of ${this.def}`,t);let{name:i,version:r}=t,o=t["engines.coc"]?t["engines.coc"].replace(/^\^/,">="):"";if(o&&!ZC.default.satisfies(v.version,o))throw new Error(`${i} ${t.version} requires coc.nvim >= ${o}, please update coc.nvim.`);let s=await this.doInstall(t);return{name:i,updated:s,version:r,url:this.url,folder:qn.default.join(this.root,t.name)}}async update(t){t&&(this.url=t);let i;if(this.name){let l=qn.default.join(this.root,this.name);if(MK(l)){this.log("Skipped update for symbol link");return}i=gi(qn.default.join(l,"package.json")).version}this.log(`Using npm from: ${this.npm}`);let r=await this.getInfo();if(i&&r.version&&ZC.default.gte(i,r.version)){this.log(`Current version ${i} is up to date.`);return}let o=r["engines.coc"]?r["engines.coc"].replace(/^\^/,">="):"";if(o&&!ZC.default.satisfies(v.version,o))throw new Error(`${r.version} requires coc.nvim ${o}, please update coc.nvim.`);if(!await this.doInstall(r))return;let a=qn.default.join(this.root,r.name,"package.json");return this.log(`Updated to v${r.version}`),qn.default.dirname(a)}getInstallArguments(t,i){let r=["install","--ignore-scripts","--no-lockfile"];return i&&i.startsWith("https://github.com")&&(r=["install"]),IDe(t)&&(r.push("--omit=dev"),r.push("--legacy-peer-deps"),r.push("--no-global")),FDe(t)&&(r.push("--production"),r.push("--ignore-engines")),jDe(t)&&(r.push("--production"),r.push("--config.strict-peer-dependencies=false")),r}readLines(t,i){HK.default.createInterface({input:i}).on("line",o=>{this.log(`${t} ${o}`,!0)})}installDependencies(t,i){return i.length==0?Promise.resolve():new Promise((r,o)=>{let s=this.getInstallArguments(this.npm,this.url);this.log(`Installing dependencies by: ${this.npm} ${s.join(" ")}.`);let a=(0,OK.spawn)(this.npm,s,{cwd:t,env:Object.assign(process.env,{NODE_ENV:"production"})});this.readLines("[npm stdout]",a.stdout),this.readLines("[npm stderr]",a.stderr),a.stderr.setEncoding("utf8"),a.stdout.setEncoding("utf8"),a.on("error",o),a.on("exit",l=>{if(l){o(new Error(`${this.npm} install exited with ${l}`));return}r()})})}async doInstall(t){let i=qn.default.join(this.root,t.name);if(MK(i))return!1;let r=t.name.replace(/\//g,"_"),o=qn.default.join(this.root,`${r}-${oe()}`),s=t["dist.tarball"];this.log(`Downloading from ${s}`);let a=s.startsWith("https://registry.npmjs.org")?"md5":void 0;try{await this.download(s,{dest:o,etagAlgorithm:a,extract:"untar",onProgress:u=>this.log(`Download progress ${u}%`,!0)}),this.log(`Extension download at ${o}`);let l=gi(qn.default.join(o,"package.json"));await this.installDependencies(o,MDe(l))}catch(l){throw qo.default.rmSync(o,{recursive:!0,force:!0}),l}return this.log(`Download extension ${t.name}@${t.version} at ${o}`),qo.default.mkdirSync(qn.default.dirname(i),{recursive:!0}),qo.default.existsSync(i)&&qo.default.rmSync(i,{force:!0,recursive:!0}),qo.default.renameSync(o,i),this.log(`Move extension ${t.name}@${t.version} to ${i}`),!0}async download(t,i){return await Pm(t,i)}async fetch(t,i={}){return await Dm(t,i)}}});var sd,TBe,Em,WK=k(()=>{"use strict";sd=S(require("fs"));$e();et();TBe=q()("model-memos"),Em=class{constructor(e){this.filepath=e;sd.default.existsSync(e)||sd.default.writeFileSync(e,"{}","utf8")}merge(e){if(!sd.default.existsSync(e))return;let t=gi(e),i=gi(this.filepath);Object.assign(i,t),Ca(this.filepath,i),sd.default.unlinkSync(e)}fetchContent(e,t){try{let i=sd.default.readFileSync(this.filepath,"utf8"),o=JSON.parse(i)[e];return o?o[t]:void 0}catch{return}}async update(e,t,i){let{filepath:r}=this,o=gi(r);o[e]=o[e]||{},i!==void 0?o[e][t]=Rn(i):delete o[e][t],Ca(r,o)}createMemento(e){return{get:(t,i)=>{let r=this.fetchContent(e,t);return r===void 0?i:r},update:async(t,i)=>{await this.update(e,t,i)}}}}});var Qa,HI=k(()=>{"use strict";Pe();xr();Qa=class{constructor(e,t){if(typeof e!="string"&&(!e||!j.isUri(e)&&typeof e.uri!="string"))throw G0("base");if(typeof t!="string")throw G0("pattern");typeof e=="string"?this.baseUri=j.file(e):j.isUri(e)?this.baseUri=e:this.baseUri=j.parse(e.uri),this.pattern=t}toJSON(){return{pattern:this.pattern,baseUri:this.baseUri.toJSON()}}}});var ZK=y((_Be,YK)=>{"use strict";YK.exports=W()});function JK(n,e){if(!n.killed)if(ODe)try{let t={stdio:["pipe","pipe","ignore"]};return e&&(t.cwd=e),Rm.execFileSync("taskkill",["/T","/F","/PID",n.pid.toString()],t),!0}catch{return!1}else if(NDe||ADe)try{let t=(0,UC.join)(HDe,"bin/terminateProcess.sh");return!Rm.spawnSync(t,[n.pid.toString()]).error}catch{return!1}else return n.kill("SIGKILL"),!0}var Rm,UC,ODe,ADe,NDe,HDe,$K=k(()=>{"use strict";Rm=S(require("child_process")),UC=require("path"),ODe=process.platform==="win32",ADe=process.platform==="darwin",NDe=process.platform==="linux",HDe=(0,UC.dirname)(__dirname)});function Se(){return oe()}var $t=k(()=>{"use strict";qe()});function Y(n,e){return n[e]===void 0&&(n[e]={}),n[e]}var Ls,ku,ho,XC,GC,Pu,Ir,me,Ze=k(()=>{"use strict";Ls=S(W());wi();ie();$t();xr();ku=class extends ii{constructor(t){super();this.data=t}},ho=class{constructor(e){this._client=e}sendRequest(e,t,i,r){return this._client.sendRequest(e,t,i).then(o=>i.isCancellationRequested||o==null?r??null:o,o=>this._client.handleFailedRequest(e,i,o,r??null))}};(e=>{function n(t){return t!=null&&Oi(t.fillClientCapabilities)&&Oi(t.initialize)&&Oi(t.dispose)&&(t.fillInitializeParams===void 0||Oi(t.fillInitializeParams))&&t.registrationType===void 0}e.is=n})(XC||(XC={}));(e=>{function n(t){let i=t;return i!=null&&Oi(i.fillClientCapabilities)&&Oi(i.initialize)&&Oi(i.dispose)&&(i.fillInitializeParams===void 0||Oi(i.fillInitializeParams))&&Oi(i.register)&&Oi(i.unregister)&&i.registrationType!==void 0}e.is=n})(GC||(GC={}));Pu=class extends ho{constructor(e){super(e)}getState(){let e=this.getDocumentSelectors(),t=0;for(let r of e){t++;for(let o of v.textDocuments)if(v.match(r,o)>0)return{kind:"document",id:this.registrationType.method,registrations:!0,matches:!0}}let i=t>0;return{kind:"document",id:this.registrationType.method,registrations:i,matches:!1}}},Ir=class extends Pu{constructor(t,i,r,o,s,a){super(t);this._event=i,this._type=r,this._middleware=o,this._createParams=s,this._selectorFilter=a,this._selectors=new Map,this._onNotificationSent=new Ls.Emitter}static textDocumentFilter(t,i){for(let r of t)if(v.match(r,i)>0)return!0;return!1}getDocumentSelectors(){return this._selectors.values()}register(t){!t.registerOptions.documentSelector||(this._listener||(this._listener=this._event(i=>{this.callback(i).catch(r=>{this._client.error(`Sending document notification ${this._type.method} failed.`,r)})})),this._selectors.set(t.id,t.registerOptions.documentSelector))}async callback(t){if(!this.matches(t))return;let i=async o=>{let s=this._createParams(o);await this._client.sendNotification(this._type,s).catch(),this.notificationSent(o,this._type,s)},r=this._client.middleware[this._middleware];return Promise.resolve(r?r(t,o=>i(o)):i(t))}matches(t){return!this._selectorFilter||this._selectorFilter(this._selectors.values(),t)}get onNotificationSent(){return this._onNotificationSent.event}notificationSent(t,i,r){this._onNotificationSent.fire({original:t,type:i,params:r})}unregister(t){this._selectors.delete(t)}dispose(){this._selectors.clear(),this._onNotificationSent.dispose(),this._listener&&(this._listener.dispose(),this._listener=void 0)}getProvider(t){for(let i of this.getDocumentSelectors())if(v.match(i,t)>0)return{send:r=>this.callback(r)}}},me=class extends Pu{constructor(t,i){super(t);this._registrationType=i,this._registrations=new Map}*getDocumentSelectors(){for(let t of this._registrations.values()){let i=t.data.registerOptions.documentSelector;i!==null&&(yield i)}}get registrationType(){return this._registrationType}get registrationLength(){return this._registrations.size}register(t){if(!t.registerOptions.documentSelector)return;let i=this.registerLanguageProvider(t.registerOptions,t.id);this._registrations.set(t.id,{disposable:i[0],data:t,provider:i[1]})}unregister(t){let i=this._registrations.get(t);i!==void 0&&i.disposable.dispose()}dispose(){this._registrations.forEach(t=>{t.disposable.dispose()}),this._registrations.clear()}getRegistration(t,i){if(!i)return[void 0,void 0];if(fa(i)&&i===!0)return[Se(),{documentSelector:t}];if(Ls.TextDocumentRegistrationOptions.is(i)){let r=Ls.StaticRegistrationOptions.hasId(i)?i.id:Se(),o=i.documentSelector??t;return[r,Object.assign({},i,{documentSelector:o})]}return Ls.WorkDoneProgressOptions.is(i)?[Ls.StaticRegistrationOptions.hasId(i)?i.id:Se(),Object.assign({},i,{documentSelector:t})]:[void 0,void 0]}getRegistrationOptions(t,i){if(!(!t||!i))return fa(i)&&i===!0?{documentSelector:t}:Object.assign({},i,{documentSelector:t})}getProvider(t){for(let i of this._registrations.values()){let r=i.data.registerOptions.documentSelector;if(r!==null&&v.match(r,t)>0)return i.provider}}getAllProviders(){let t=[];for(let i of this._registrations.values())t.push(i.provider);return t}}});function qDe(n){return{uri:n.uri,languageId:n.languageId,version:n.version,text:n.getText()}}function UK(n){return{textDocument:qDe(n)}}function XK(n){let{baseUri:e,pattern:t}=n;return typeof e=="string"?new Qa(j.parse(e),t):new Qa(e,t)}function GK(n){return{textDocument:{uri:n.uri}}}function zK(n){return{textDocument:{uri:n.uri,version:n.version},contentChanges:[{text:n.getText()}]}}function KK(n){let{textDocument:e,contentChanges:t}=n;return{textDocument:{uri:e.uri,version:e.version},contentChanges:t.slice()}}function qI(n){return{textDocument:zC(n.document),reason:n.reason}}function zC(n){return{uri:n.uri,version:n.version}}function QK(n,e){let t={textDocument:zC(n)};return e&&(t.text=n.getText()),t}function ad(n){return n.toString()}function VK(n,e,t){return{textDocument:{uri:n.uri},position:e,context:fn(t,["option"])}}function Ei(n,e){return{textDocument:{uri:n.uri},position:e}}function eQ(n,e,t){return{textDocument:go(n),position:e,context:t}}function go(n){return{uri:n.uri}}function tQ(n,e,t){return{textDocument:{uri:n.uri},position:e,context:{includeDeclaration:t.includeDeclaration}}}function iQ(n){return{textDocument:{uri:n.uri}}}function nQ(n){return{textDocument:{uri:n.uri}}}var Bt=k(()=>{"use strict";Pe();Cs();HI()});var Eu,KC,rQ=k(()=>{"use strict";Eu=S(W());de();Ze();Bt();KC=class extends me{constructor(e){super(e,Eu.CallHierarchyPrepareRequest.type)}fillClientCapabilities(e){let i=Y(Y(e,"textDocument"),"callHierarchy");i.dynamicRegistration=!0}initialize(e,t){let[i,r]=this.getRegistration(t,e.callHierarchyProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){let t={prepareCallHierarchy:(i,r,o)=>{let s=this._client,a=(u,c,h)=>{let d=Ei(u,c);return this.sendRequest(Eu.CallHierarchyPrepareRequest.type,d,h)},l=s.middleware;return l.prepareCallHierarchy?l.prepareCallHierarchy(i,r,o,a):a(i,r,o)},provideCallHierarchyIncomingCalls:(i,r)=>{let o=this._client,s=(l,u)=>this.sendRequest(Eu.CallHierarchyIncomingCallsRequest.type,{item:l},u),a=o.middleware;return a.provideCallHierarchyIncomingCalls?a.provideCallHierarchyIncomingCalls(i,r,s):s(i,r)},provideCallHierarchyOutgoingCalls:(i,r)=>{let o=this._client,s=(l,u)=>this.sendRequest(Eu.CallHierarchyOutgoingCallsRequest.type,{item:l},u),a=o.middleware;return a.provideCallHierarchyOutgoingCalls?a.provideCallHierarchyOutgoingCalls(i,r,s):s(i,r)}};return[_.registerCallHierarchyProvider(e.documentSelector,t),t]}}});var Ri,QC,oQ=k(()=>{"use strict";Ri=S(W());Jt();de();Ze();$t();QC=class extends me{constructor(t){super(t,Ri.CodeActionRequest.type);this.disposables=[]}fillClientCapabilities(t){let i=Y(Y(t,"textDocument"),"codeAction");i.dynamicRegistration=!0,i.isPreferredSupport=!0,i.disabledSupport=!0,i.dataSupport=!0,i.honorsChangeAnnotations=!1,i.resolveSupport={properties:["edit"]},i.codeActionLiteralSupport={codeActionKind:{valueSet:[Ri.CodeActionKind.Empty,Ri.CodeActionKind.QuickFix,Ri.CodeActionKind.Refactor,Ri.CodeActionKind.RefactorExtract,Ri.CodeActionKind.RefactorInline,Ri.CodeActionKind.RefactorRewrite,Ri.CodeActionKind.Source,Ri.CodeActionKind.SourceOrganizeImports]}}}initialize(t,i){let r=this.getRegistrationOptions(i,t.codeActionProvider);!r||this.register({id:Se(),registerOptions:r})}registerLanguageProvider(t){let i=o=>{let s=this._client,a=(u,c)=>{let h={command:u,arguments:c};return s.sendRequest(Ri.ExecuteCommandRequest.type,h)},l=s.middleware;this.disposables.push(ue.registerCommand(o,(...u)=>l.executeCommand?l.executeCommand(o,u,a):a(o,u),null,!0))},r={provideCodeActions:(o,s,a,l)=>{let u=this._client,c=(d,g,p,f)=>{let m={textDocument:{uri:d.uri},range:g,context:p};return this.sendRequest(Ri.CodeActionRequest.type,m,f).then(b=>{if(!!b)return b.forEach(w=>{var T;let x=Ri.Command.is(w)?w.command:(T=w.command)==null?void 0:T.command;x&&!ue.has(x)&&i(x)}),b})},h=u.middleware;return h.provideCodeActions?h.provideCodeActions(o,s,a,l,c):c(o,s,a,l)},resolveCodeAction:t.resolveProvider?(o,s)=>{let a=this._client.middleware,l=(u,c)=>this.sendRequest(Ri.CodeActionResolveRequest.type,u,c,u);return a.resolveCodeAction?a.resolveCodeAction(o,s,l):l(o,s)}:void 0};return[_.registerCodeActionProvider(t.documentSelector,r,this._client.id,t.codeActionKinds),r]}dispose(){this.disposables.forEach(t=>{t.dispose()}),this.disposables=[],super.dispose()}}});var Is,VC,sQ=k(()=>{"use strict";Is=S(W());$t();Ze();Bt();de();VC=class extends me{constructor(e){super(e,Is.CodeLensRequest.type)}fillClientCapabilities(e){Y(Y(e,"textDocument"),"codeLens").dynamicRegistration=!0,Y(Y(e,"workspace"),"codeLens").refreshSupport=!0}initialize(e,t){this._client.onRequest(Is.CodeLensRefreshRequest.type,async()=>{for(let o of this.getAllProviders())o.onDidChangeCodeLensEmitter.fire()});let r=this.getRegistrationOptions(t,e.codeLensProvider);!r||this.register({id:Se(),registerOptions:r})}registerLanguageProvider(e){let t=new Is.Emitter,i={onDidChangeCodeLenses:t.event,provideCodeLenses:(r,o)=>{let s=this._client,a=(u,c)=>this.sendRequest(Is.CodeLensRequest.type,nQ(u),c),l=s.middleware;return l.provideCodeLenses?l.provideCodeLenses(r,o,a):a(r,o)},resolveCodeLens:e.resolveProvider?(r,o)=>{let s=this._client,a=(u,c)=>this.sendRequest(Is.CodeLensResolveRequest.type,u,c,u),l=s.middleware;return l.resolveCodeLens?l.resolveCodeLens(r,o,a):a(r,o)}:void 0};return[_.registerCodeLensProvider(e.documentSelector,i),{provider:i,onDidChangeCodeLensEmitter:t}]}}});var _m,eS,aQ=k(()=>{"use strict";_m=S(W());de();Ze();eS=class extends me{constructor(e){super(e,_m.DocumentColorRequest.type)}fillClientCapabilities(e){Y(Y(e,"textDocument"),"colorProvider").dynamicRegistration=!0}initialize(e,t){let[i,r]=this.getRegistration(t,e.colorProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){let t={provideColorPresentations:(i,r,o)=>{let s=this._client,a=(u,c,h)=>{let d={color:u,textDocument:{uri:c.document.uri},range:c.range};return this.sendRequest(_m.ColorPresentationRequest.type,d,h)},l=s.middleware;return l.provideColorPresentations?l.provideColorPresentations(i,r,o,a):a(i,r,o)},provideDocumentColors:(i,r)=>{let o=this._client,s=(l,u)=>{let c={textDocument:{uri:l.uri}};return this.sendRequest(_m.DocumentColorRequest.type,c,u)},a=o.middleware;return a.provideDocumentColors?a.provideDocumentColors(i,r,s):s(i,r)}};return[_.registerDocumentColorProvider(e.documentSelector,t),t]}}});var We,BDe,tS,lQ=k(()=>{"use strict";We=S(W());de();Ze();Bt();$t();BDe=[We.CompletionItemKind.Text,We.CompletionItemKind.Method,We.CompletionItemKind.Function,We.CompletionItemKind.Constructor,We.CompletionItemKind.Field,We.CompletionItemKind.Variable,We.CompletionItemKind.Class,We.CompletionItemKind.Interface,We.CompletionItemKind.Module,We.CompletionItemKind.Property,We.CompletionItemKind.Unit,We.CompletionItemKind.Value,We.CompletionItemKind.Enum,We.CompletionItemKind.Keyword,We.CompletionItemKind.Snippet,We.CompletionItemKind.Color,We.CompletionItemKind.File,We.CompletionItemKind.Reference,We.CompletionItemKind.Folder,We.CompletionItemKind.EnumMember,We.CompletionItemKind.Constant,We.CompletionItemKind.Struct,We.CompletionItemKind.Event,We.CompletionItemKind.Operator,We.CompletionItemKind.TypeParameter],tS=class extends me{constructor(e){super(e,We.CompletionRequest.type)}fillClientCapabilities(e){let t=this._client.clientOptions.disableSnippetCompletion!==!0,i=Y(Y(e,"textDocument"),"completion");i.dynamicRegistration=!0,i.contextSupport=!0,i.completionItem={snippetSupport:t,commitCharactersSupport:!0,documentationFormat:this._client.supportedMarkupKind,deprecatedSupport:!0,preselectSupport:!0,insertReplaceSupport:!0,tagSupport:{valueSet:[We.CompletionItemTag.Deprecated]},resolveSupport:{properties:["documentation","detail","additionalTextEdits"]},labelDetailsSupport:!0,insertTextModeSupport:{valueSet:[We.InsertTextMode.asIs,We.InsertTextMode.adjustIndentation]}},i.completionItemKind={valueSet:BDe},i.insertTextMode=We.InsertTextMode.adjustIndentation,i.completionList={itemDefaults:["commitCharacters","editRange","insertTextFormat","insertTextMode"]}}initialize(e,t){let i=this.getRegistrationOptions(t,e.completionProvider);!i||this.register({id:Se(),registerOptions:i})}registerLanguageProvider(e,t){let i=e.triggerCharacters||[],r=e.allCommitCharacters||[],o={provideCompletionItems:(l,u,c,h)=>{let d=this._client.middleware,g=(p,f,m,b)=>this.sendRequest(We.CompletionRequest.type,VK(p,f,m),b,[]);return d.provideCompletionItem?d.provideCompletionItem(l,u,h,c,g):g(l,u,h,c)},resolveCompletionItem:e.resolveProvider?(l,u)=>{let c=this._client.middleware,h=(d,g)=>this.sendRequest(We.CompletionResolveRequest.type,d,g,d);return c.resolveCompletionItem?c.resolveCompletionItem(l,u,h):h(l,u)}:void 0},s=this._client.id+(this.registrationLength==0?"":"-"+t);return[_.registerCompletionItemProvider(s,"LS",e.documentSelector,o,i,e.priority,r),o]}}});var Va,YZe,iS,Ru,uQ=k(()=>{"use strict";Va=S(W());Vl();wi();ie();Ze();$t();YZe=q()("languageclient-configuration"),iS=class{constructor(e){this._client=e}get method(){return Va.ConfigurationRequest.method}fillClientCapabilities(e){Y(e,"workspace").configuration=!0}getState(){return{kind:"static"}}initialize(){let e=this._client,{configuredSection:t}=e;e.onRequest(Va.ConfigurationRequest.type,(i,r)=>{let o=a=>{let l=[];for(let u of a.items){let c=t?t+(u.section?`.${u.section}`:""):u.section;l.push(this.getConfiguration(u.scopeUri,c))}return l},s=e.middleware.workspace;return s!=null&&s.configuration?s.configuration(i,r,o):o(i,r)})}getConfiguration(e,t){let i=null;if(t){let r=t.lastIndexOf(".");if(r===-1)i=fh(v.getConfiguration(void 0,e).get(t));else{let o=v.getConfiguration(t.substr(0,r),e);i=fh(o.get(t.substr(r+1)))}}else{let r=v.getConfiguration(t,e);i={};for(let o of Object.keys(r))r.has(o)&&(i[o]=fh(r.get(o)))}return i??null}dispose(){}},Ru=class{constructor(e){this._client=e;this._listeners=new Map}getState(){return{kind:"workspace",id:this.registrationType.method,registrations:this._listeners.size>0}}get registrationType(){return Va.DidChangeConfigurationNotification.type}fillClientCapabilities(e){Y(Y(e,"workspace"),"didChangeConfiguration").dynamicRegistration=!0}initialize(){var t;let e=(t=this._client.clientOptions.synchronize)==null?void 0:t.configurationSection;if(e!==void 0){let i=this.configuredUID=Se();this.register({id:i,registerOptions:{section:e}})}}register(e){if(this._client.configuredSection&&e.id!==this.configuredUID)return;let{section:t}=e.registerOptions,i=v.onDidChangeConfiguration(r=>{this.onDidChangeConfiguration(t,r)});this._listeners.set(e.id,i),t!==void 0&&this.onDidChangeConfiguration(t,void 0)}unregister(e){let t=this._listeners.get(e);t&&(this._listeners.delete(e),t.dispose())}dispose(){for(let e of this._listeners.values())e.dispose();this._listeners.clear()}onDidChangeConfiguration(e,t){var l;let{configuredSection:i}=this._client,r;if(ti(e)?r=[e]:r=e,r!=null&&t!=null&&!r.map(h=>h.startsWith("languageserver.")?"languageserver":h).some(h=>t.affectsConfiguration(h)))return;let o=u=>{if(u==null)return this._client.sendNotification(Va.DidChangeConfigurationNotification.type,{settings:null});let c=this._client.clientOptions.workspaceFolder,h=i?Ru.getConfiguredSettings(i,c):Ru.extractSettingsInformation(u,c);return this._client.sendNotification(Va.DidChangeConfigurationNotification.type,{settings:h})},s=(l=this._client.middleware.workspace)==null?void 0:l.didChangeConfiguration;(s?Promise.resolve(s(r,o)):o(r)).catch(u=>{this._client.error(`Sending notification ${Va.DidChangeConfigurationNotification.type.method} failed`,u)})}static getConfiguredSettings(e,t){let i=9,r=v.getConfiguration(e.slice(0,-i),t);return iJ(r.get("settings",{}))}static extractSettingsInformation(e,t){function i(o,s){let a=o;for(let l=0;l<s.length-1;l++){let u=a[s[l]];u||(u=Object.create(null),a[s[l]]=u),a=u}return a}let r=Object.create(null);for(let o=0;o<e.length;o++){let s=e[o],a=s.indexOf("."),l;a>=0?l=v.getConfiguration(s.substr(0,a),t).get(s.substr(a+1)):l=v.getConfiguration(s,t);let u=e[o].split(".");i(r,u)[u[u.length-1]]=l}return r}}});var BI,nS,cQ=k(()=>{"use strict";BI=S(W());de();Ze();Bt();nS=class extends me{constructor(e){super(e,BI.DeclarationRequest.type)}fillClientCapabilities(e){let t=Y(Y(e,"textDocument"),"declaration");t.dynamicRegistration=!0,t.linkSupport=!0}initialize(e,t){let[i,r]=this.getRegistration(t,e.declarationProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){let t={provideDeclaration:(i,r,o)=>{let s=this._client,a=(u,c,h)=>this.sendRequest(BI.DeclarationRequest.type,Ei(u,c),h),l=s.middleware;return l.provideDeclaration?l.provideDeclaration(i,r,o,a):a(i,r,o)}};return[_.registerDeclarationProvider(e.documentSelector,t),t]}}});var WI,rS,hQ=k(()=>{"use strict";WI=S(W());de();Ze();Bt();$t();rS=class extends me{constructor(e){super(e,WI.DefinitionRequest.type)}fillClientCapabilities(e){let t=Y(Y(e,"textDocument"),"definition");t.dynamicRegistration=!0,t.linkSupport=!0}initialize(e,t){let i=this.getRegistrationOptions(t,e.definitionProvider);!i||this.register({id:Se(),registerOptions:i})}registerLanguageProvider(e){let t={provideDefinition:(i,r,o)=>{let s=this._client,a=(u,c,h)=>this.sendRequest(WI.DefinitionRequest.type,Ei(u,c),h),l=s.middleware;return l.provideDefinition?l.provideDefinition(i,r,o,a):a(i,r,o)}};return[_.registerDefinitionProvider(e.documentSelector,t),t]}}});var dQ,Fe,YI,ZI,JI,$I,oS,gQ=k(()=>{"use strict";dQ=S(Lo());qe();Fe=S(W());Pe();de();xr();xe();ie();Ze();YI=class{constructor(){this.documentPullStates=new Map,this.workspacePullStates=new Map}track(e,t,i){let r=e===1?this.documentPullStates:this.workspacePullStates,[o,s,a]=t instanceof j?[t.toString(),t,i]:[t.uri.toString(),j.parse(t.uri),t.version],l=r.get(o);return l===void 0&&(l={document:s,pulledVersion:a,resultId:void 0},r.set(o,l)),l}update(e,t,i,r){let o=e===1?this.documentPullStates:this.workspacePullStates,[s,a,l,u]=t instanceof j?[t.toString(),t,i,r]:[t.uri,j.parse(t.uri),t.version,i],c=o.get(s);c===void 0?(c={document:a,pulledVersion:l,resultId:u},o.set(s,c)):(c.pulledVersion=l,c.resultId=u)}unTrack(e,t){let i=t instanceof j?t.toString():t.uri;(e===1?this.documentPullStates:this.workspacePullStates).delete(i)}tracks(e,t){let i=t instanceof j?t.toString():t.uri;return(e===1?this.documentPullStates:this.workspacePullStates).has(i)}trackingDocuments(){return Array.from(this.documentPullStates.keys())}getResultId(e,t){var o;let i=t instanceof j?t.toString():t.uri;return(o=(e===1?this.documentPullStates:this.workspacePullStates).get(i))==null?void 0:o.resultId}getAllResultIds(){let e=[];for(let[t,i]of this.workspacePullStates)this.documentPullStates.has(t)&&(i=this.documentPullStates.get(t)),i.resultId!==void 0&&e.push({uri:t,value:i.resultId});return e}},ZI=class extends ho{constructor(t,i){var r;super(t);this.client=t,this.options=i,this.enableWorkspace=i.workspaceDiagnostics&&((r=this.client.clientOptions.diagnosticPullOptions)==null?void 0:r.workspace)!==!1,this.isDisposed=!1,this.onDidChangeDiagnosticsEmitter=new Fe.Emitter,this.provider=this.createProvider(),this.diagnostics=_.createDiagnosticCollection(i.identifier?i.identifier:t.id),this.openRequests=new Map,this.documentStates=new YI,this.workspaceErrorCounter=0}knows(t,i){return this.documentStates.tracks(t,i)}trackingDocuments(){return this.documentStates.trackingDocuments()}forget(t,i){this.documentStates.unTrack(t,i)}pull(t,i){this.pullAsync(t).then(()=>{i&&i()},r=>{this.client.error(`Document pull failed for text document ${t.uri}`,r)})}async pullAsync(t){if(this.isDisposed)return;let i=t.uri,r=t.version,o=this.openRequests.get(i),s=this.documentStates.track(1,t);if(o===void 0){let a=new Fe.CancellationTokenSource;this.openRequests.set(i,{state:"open",document:t,version:r,tokenSource:a});let l,u;try{l=await this.provider.provideDiagnostics(t,s.resultId,a.token)??{kind:Fe.DocumentDiagnosticReportKind.Full,items:[]}}catch(h){if(h instanceof ku&&h.data&&Fe.DiagnosticServerCancellationData.is(h.data)&&h.data.retriggerRequest===!1&&(u={state:"drop",document:t}),u===void 0&&h instanceof ii)u={state:"reschedule",document:t};else throw h}if(u=u??this.openRequests.get(i),u===void 0){this.client.error(`Lost request state in diagnostic pull model. Clearing diagnostics for ${i}`),this.diagnostics.delete(i);return}if(this.openRequests.delete(i),!D.visibleTextEditors.some(h=>h.document.uri===i)){this.documentStates.unTrack(1,t);return}if(u.state==="drop")return;l!==void 0&&(l.kind===Fe.DocumentDiagnosticReportKind.Full&&this.diagnostics.set(i,l.items),s.pulledVersion=r,s.resultId=l.resultId),u.state==="reschedule"&&this.pull(t)}else o.state==="open"?(o.tokenSource.cancel(),this.openRequests.set(i,{state:"reschedule",document:o.document})):o.state==="drop"&&this.openRequests.set(i,{state:"reschedule",document:o.document})}forgetDocument(t){let i=t.uri,r=this.openRequests.get(i);this.enableWorkspace?r!==void 0?this.openRequests.set(i,{state:"reschedule",document:t}):this.pull(t,()=>{this.forget(1,t)}):(r!==void 0&&(r.state==="open"&&r.tokenSource.cancel(),this.openRequests.delete(i)),this.diagnostics.delete(i.toString()),this.forget(1,t))}pullWorkspace(){!this.enableWorkspace||this.pullWorkspaceAsync().then(()=>{this.workspaceTimeout=(0,Fe.RAL)().timer.setTimeout(()=>{this.pullWorkspace()},3e3)},t=>{!(t instanceof ku)&&!Fe.DiagnosticServerCancellationData.is(t.data)&&(this.client.error("Workspace diagnostic pull failed.",t),this.workspaceErrorCounter++),this.workspaceErrorCounter<=5&&(this.workspaceTimeout=(0,Fe.RAL)().timer.setTimeout(()=>{this.pullWorkspace()},3e3))})}async pullWorkspaceAsync(){if(!this.provider.provideWorkspaceDiagnostics)return;this.workspaceCancellation!==void 0&&(this.workspaceCancellation.cancel(),this.workspaceCancellation=void 0),this.workspaceCancellation=new Fe.CancellationTokenSource;let t=this.documentStates.getAllResultIds();await this.provider.provideWorkspaceDiagnostics(t,this.workspaceCancellation.token,i=>{if(!(!i||this.isDisposed))for(let r of i.items)r.kind===Fe.DocumentDiagnosticReportKind.Full&&(this.documentStates.tracks(1,j.parse(r.uri))||this.diagnostics.set(r.uri.toString(),r.items)),this.documentStates.update(2,j.parse(r.uri),r.version??void 0,r.resultId)})}createProvider(){let t={onDidChangeDiagnostics:this.onDidChangeDiagnosticsEmitter.event,provideDiagnostics:(i,r,o)=>{let s=this.client.middleware,a=(l,u,c)=>{let h=l instanceof j?l.toString():l.uri,d={identifier:this.options.identifier,textDocument:{uri:h},previousResultId:u};return this.sendRequest(Fe.DocumentDiagnosticRequest.type,d,c,{kind:Fe.DocumentDiagnosticReportKind.Full,items:[]}).then(async g=>g==null||this.isDisposed?{kind:Fe.DocumentDiagnosticReportKind.Full,items:[]}:(s.handleDiagnostics&&g.kind==Fe.DocumentDiagnosticReportKind.Full&&s.handleDiagnostics(h,g.items,(p,f)=>{g.items=f}),g))};return s.provideDiagnostics?s.provideDiagnostics(i,r,o,a):a(i,r,o)}};return this.options.workspaceDiagnostics&&(t.provideWorkspaceDiagnostics=(i,r,o)=>{let s=(l,u)=>{let c=oe(),h=this.client.onProgress(Fe.WorkspaceDiagnosticRequest.partialResult,c,g=>{if(g==null){o(null);return}o(g)}),d={identifier:this.options.identifier,previousResultIds:l,partialResultToken:c};return this.sendRequest(Fe.WorkspaceDiagnosticRequest.type,d,u,{items:[]}).then(async g=>(o(g),{items:[]})).finally(()=>{h.dispose()})},a=this.client.middleware;return a.provideWorkspaceDiagnostics?a.provideWorkspaceDiagnostics(i,r,o,s):s(i,r,o)}),t}dispose(){var t,i;this.isDisposed=!0,(t=this.workspaceCancellation)==null||t.cancel(),(i=this.workspaceTimeout)==null||i.dispose();for(let r of this.openRequests.values())r.state==="open"&&r.tokenSource.cancel();this.openRequests.clear()}},JI=class{constructor(e){this.diagnosticRequestor=e,this.documents=new Fe.LinkedMap}add(e){let t=e.uri;this.documents.has(t)||(this.documents.set(t,e,Fe.Touch.Last),this.trigger())}remove(e){var i;let t=e.uri;this.documents.has(t)&&(this.documents.delete(t),this.diagnosticRequestor.pull(e)),this.documents.size===0?this.stop():e.uri===((i=this.endDocument)==null?void 0:i.uri)&&(this.endDocument=this.documents.last)}trigger(){if(this.intervalHandle!==void 0){this.endDocument=this.documents.last;return}this.endDocument=this.documents.last,this.intervalHandle=(0,Fe.RAL)().timer.setInterval(()=>{let e=this.documents.first;if(e!==void 0){let t=e.uri;this.diagnosticRequestor.pull(e),this.documents.set(t,e,Fe.Touch.Last),e===this.endDocument&&this.stop()}},200)}dispose(){this.stop(),this.documents.clear()}stop(){var e;(e=this.intervalHandle)==null||e.dispose(),this.intervalHandle=void 0,this.endDocument=void 0}},$I=class{constructor(e,t){var d;let i=e.clientOptions.diagnosticPullOptions,r=t.documentSelector,o=[],s=i.ignored??[],a=g=>!(v.match(r,g)<=0||!D.visibleTextEditors.some(f=>f.document.uri===g.uri)||s.length>0&&s.some(f=>(0,dQ.default)(j.parse(g.uri).fsPath,f,{dot:!0})));this.diagnosticRequestor=new ZI(e,t),this.backgroundScheduler=new JI(this.diagnosticRequestor);let l=g=>{var p;!a(g)||!t.interFileDependencies||((p=this.activeTextDocument)==null?void 0:p.uri)===g.uri||this.backgroundScheduler.add(g)};this.activeTextDocument=(d=D.activeTextEditor)==null?void 0:d.document.textDocument,D.onDidChangeActiveTextEditor(g=>{let p=this.activeTextDocument,f=this.activeTextDocument=g==null?void 0:g.document.textDocument;p!==void 0&&l(p),f!=null&&this.backgroundScheduler.remove(f)},null,o);let u=e.getFeature(Fe.DidOpenTextDocumentNotification.method);o.push(u.onNotificationSent(g=>{let p=g.original;a(p)&&this.diagnosticRequestor.pull(p,()=>{l(p)})}));let c=(g,p)=>!(i.filter&&i.filter(g,p)||!this.diagnosticRequestor.knows(1,g));if(i.onChange===!0){let g=e.getFeature(Fe.DidChangeTextDocumentNotification.method);o.push(g.onNotificationSent(async p=>{let f=v.getDocument(p.original.bufnr).textDocument;p.original.contentChanges.length!=0&&c(f,"onType")&&this.diagnosticRequestor.pull(f,()=>{this.backgroundScheduler.trigger()})}))}if(i.onSave===!0){let g=e.getFeature(Fe.DidSaveTextDocumentNotification.method);o.push(g.onNotificationSent(p=>{let f=p.original;c(f,"onSave")&&this.diagnosticRequestor.pull(p.original,()=>{this.backgroundScheduler.trigger()})}))}let h=e.getFeature(Fe.DidCloseTextDocumentNotification.method);o.push(h.onNotificationSent(g=>{this.cleanUpDocument(g.original)})),this.diagnosticRequestor.onDidChangeDiagnosticsEmitter.event(()=>{for(let g of v.textDocuments)a(g)&&this.diagnosticRequestor.pull(g)}),D.onDidChangeVisibleTextEditors(g=>{let p=new Set,f=this.diagnosticRequestor.trackingDocuments();g.forEach(m=>{let{uri:b,textDocument:w}=m.document;p.has(b)||(p.add(b),a(w)&&!f.includes(b)&&this.diagnosticRequestor.pull(w,()=>{l(w)}))}),f.forEach(m=>{if(p.has(m))return;let b=v.getDocument(m);b&&b.attached&&this.cleanUpDocument(b.textDocument)})},null,o),t.workspaceDiagnostics===!0&&t.identifier!=="da348dc5-c30a-4515-9d98-31ff3be38d14"&&this.diagnosticRequestor.pullWorkspace(),this.disposable=Fe.Disposable.create(()=>[...o,this.backgroundScheduler,this.diagnosticRequestor].forEach(g=>g.dispose()))}get onDidChangeDiagnosticsEmitter(){return this.diagnosticRequestor.onDidChangeDiagnosticsEmitter}get diagnostics(){return this.diagnosticRequestor.provider}knows(e,t){return this.diagnosticRequestor.knows(e,t)}cleanUpDocument(e){this.diagnosticRequestor.knows(1,e)&&(this.diagnosticRequestor.forgetDocument(e),this.backgroundScheduler.remove(e))}},oS=class extends me{constructor(e){super(e,Fe.DocumentDiagnosticRequest.type)}fillClientCapabilities(e){let t=Y(Y(e,"textDocument"),"diagnostic");t.dynamicRegistration=!0,t.relatedDocumentSupport=!0,Y(Y(e,"workspace"),"diagnostics").refreshSupport=!0}initialize(e,t){let i=this._client,[r,o]=this.getRegistration(t,e.diagnosticProvider);!r||!o||(i.onRequest(Fe.DiagnosticRefreshRequest.type,async()=>{for(let s of this.getAllProviders())s.onDidChangeDiagnosticsEmitter.fire()}),this.register({id:r,registerOptions:o}))}registerLanguageProvider(e){let t=new $I(this._client,e);return[t.disposable,t]}}});var UI,sS,pQ=k(()=>{"use strict";UI=S(W());de();Ze();Bt();$t();sS=class extends me{constructor(e){super(e,UI.DocumentHighlightRequest.type)}fillClientCapabilities(e){Y(Y(e,"textDocument"),"documentHighlight").dynamicRegistration=!0}initialize(e,t){let i=this.getRegistrationOptions(t,e.documentHighlightProvider);!i||this.register({id:Se(),registerOptions:i})}registerLanguageProvider(e){let t={provideDocumentHighlights:(i,r,o)=>{let s=this._client,a=(u,c,h)=>this.sendRequest(UI.DocumentHighlightRequest.type,Ei(u,c),h),l=s.middleware;return l.provideDocumentHighlights?l.provideDocumentHighlights(i,r,o,a):a(i,r,o)}};return[_.registerDocumentHighlightProvider(e.documentSelector,t),t]}}});var Lm,aS,fQ=k(()=>{"use strict";Lm=S(W());de();Ze();$t();aS=class extends me{constructor(e){super(e,Lm.DocumentLinkRequest.type)}fillClientCapabilities(e){let t=Y(Y(e,"textDocument"),"documentLink");t.dynamicRegistration=!0,t.tooltipSupport=!0}initialize(e,t){let i=this.getRegistrationOptions(t,e.documentLinkProvider);!i||this.register({id:Se(),registerOptions:i})}registerLanguageProvider(e){let t={provideDocumentLinks:(i,r)=>{let o=this._client,s=(l,u)=>this.sendRequest(Lm.DocumentLinkRequest.type,{textDocument:{uri:l.uri}},u),a=o.middleware;return a.provideDocumentLinks?a.provideDocumentLinks(i,r,s):s(i,r)},resolveDocumentLink:e.resolveProvider?(i,r)=>{let o=this._client,s=(l,u)=>this.sendRequest(Lm.DocumentLinkResolveRequest.type,l,u,l),a=o.middleware;return a.resolveDocumentLink?a.resolveDocumentLink(i,r,s):s(i,r)}:void 0};return[_.registerDocumentLinkProvider(e.documentSelector,t),t]}}});var Qe,XI,GI,lS,zI=k(()=>{"use strict";Qe=S(W());de();Ze();Bt();$t();XI=[Qe.SymbolKind.File,Qe.SymbolKind.Module,Qe.SymbolKind.Namespace,Qe.SymbolKind.Package,Qe.SymbolKind.Class,Qe.SymbolKind.Method,Qe.SymbolKind.Property,Qe.SymbolKind.Field,Qe.SymbolKind.Constructor,Qe.SymbolKind.Enum,Qe.SymbolKind.Interface,Qe.SymbolKind.Function,Qe.SymbolKind.Variable,Qe.SymbolKind.Constant,Qe.SymbolKind.String,Qe.SymbolKind.Number,Qe.SymbolKind.Boolean,Qe.SymbolKind.Array,Qe.SymbolKind.Object,Qe.SymbolKind.Key,Qe.SymbolKind.Null,Qe.SymbolKind.EnumMember,Qe.SymbolKind.Struct,Qe.SymbolKind.Event,Qe.SymbolKind.Operator,Qe.SymbolKind.TypeParameter],GI=[Qe.SymbolTag.Deprecated],lS=class extends me{constructor(e){super(e,Qe.DocumentSymbolRequest.type)}fillClientCapabilities(e){let t=Y(Y(e,"textDocument"),"documentSymbol");t.dynamicRegistration=!0,t.symbolKind={valueSet:XI},t.hierarchicalDocumentSymbolSupport=!0,t.tagSupport={valueSet:GI},t.labelSupport=!0}initialize(e,t){let i=this.getRegistrationOptions(t,e.documentSymbolProvider);!i||this.register({id:Se(),registerOptions:i})}registerLanguageProvider(e){let t={meta:e.label?{label:e.label}:void 0,provideDocumentSymbols:(i,r)=>{let o=this._client,s=(l,u)=>this.sendRequest(Qe.DocumentSymbolRequest.type,iQ(l),u),a=o.middleware;return a.provideDocumentSymbols?a.provideDocumentSymbols(i,r,s):s(i,r)}};return[_.registerDocumentSymbolProvider(e.documentSelector,t),t]}}});var Im,uS,mQ=k(()=>{"use strict";Im=S(W());Ze();Jt();$t();uS=class extends ho{constructor(t){super(t);this._commands=new Map}getState(){return{kind:"workspace",id:this.registrationType.method,registrations:this._commands.size>0}}get registrationType(){return Im.ExecuteCommandRequest.type}fillClientCapabilities(t){Y(Y(t,"workspace"),"executeCommand").dynamicRegistration=!0}initialize(t){!t.executeCommandProvider||this.register({id:Se(),registerOptions:Object.assign({},t.executeCommandProvider)})}register(t){let r=this._client.middleware,o=(s,a)=>{let l={command:s,arguments:a};return this.sendRequest(Im.ExecuteCommandRequest.type,l,Im.CancellationToken.None)};if(t.registerOptions.commands){let s=[];for(let a of t.registerOptions.commands)s.push(ue.registerCommand(a,(...l)=>r.executeCommand?r.executeCommand(a,l,o):o(a,l),null,!0));this._commands.set(t.id,s)}}unregister(t){let i=this._commands.get(t);i&&i.forEach(r=>r.dispose())}dispose(){this._commands.forEach(t=>{t.forEach(i=>i.dispose())}),this._commands.clear()}}});function WDe(n,e){return n[e]}function bQ(n,e,t){n[e]=t}function mS(n){return{files:n.files.map(e=>({uri:e.toString()}))}}function vQ(n){return{files:n.files.map(e=>({oldUri:e.oldUri.toString(),newUri:e.newUri.toString()}))}}var yQ,_i,mUe,ld,Fm,cS,hS,dS,jm,gS,pS,fS,wQ=k(()=>{"use strict";yQ=S(Lo()),_i=S(W());dn();$e();ie();Ze();$t();mUe=q()("language-client-fileOperations");ld=class extends ho{constructor(t,i,r,o,s){super(t);this._filters=new Map;this._event=i,this._registrationType=r,this._clientCapability=o,this._serverCapability=s}getState(){return{kind:"workspace",id:this._registrationType.method,registrations:this._filters.size>0}}get registrationType(){return this._registrationType}fillClientCapabilities(t){let i=Y(Y(t,"workspace"),"fileOperations");bQ(i,"dynamicRegistration",!0),bQ(i,this._clientCapability,!0)}initialize(t){var o;let i=(o=t.workspace)==null?void 0:o.fileOperations,r=i!==void 0?WDe(i,this._serverCapability):void 0;if((r==null?void 0:r.filters)!==void 0)try{this.register({id:Se(),registerOptions:{filters:r.filters}})}catch(s){this._client.warn(`Ignoring invalid glob pattern for ${this._serverCapability} registration: ${s}`)}}register(t){this._listener||(this._listener=this._event(this.send,this));let i=t.registerOptions.filters.map(r=>{let o=new yQ.Minimatch(r.pattern.glob,ld.asMinimatchOptions(r.pattern.options));if(!o.makeRe())throw new Error(`Invalid pattern ${r.pattern.glob}!`);return{scheme:r.scheme,matcher:o,kind:r.pattern.matches}});this._filters.set(t.id,i)}unregister(t){this._filters.delete(t)}dispose(){this._filters.clear(),this._listener&&(this._listener.dispose(),this._listener=void 0)}async filter(t,i){let r=await Promise.all(t.files.map(async s=>{let a=i(s),l=a.fsPath.replace(/\\/g,"/");for(let u of this._filters.values())for(let c of u)if(!(c.scheme!==void 0&&c.scheme!==a.scheme)){if(c.matcher.match(l)){if(c.kind===void 0)return!0;let h=await ZE(a.fsPath);if(h===void 0)return this._client.error(`Failed to determine file type for ${a.toString()}.`),!0;if(h===1&&c.kind===_i.FileOperationPatternKind.file||h===2&&c.kind===_i.FileOperationPatternKind.folder)return!0}else if(c.kind===_i.FileOperationPatternKind.folder&&await ZE(a.fsPath)===2&&c.matcher.match(`${l}/`))return!0}return!1})),o=t.files.filter((s,a)=>r[a]);return{...t,files:o}}static asMinimatchOptions(t){if(t!==void 0&&t.ignoreCase===!0)return{nocase:!0}}},Fm=class extends ld{constructor(t,i,r,o,s,a,l){super(t,i,r,o,s);this._notificationType=r,this._accessUri=a,this._createParams=l}async send(t){let i=await this.filter(t,this._accessUri);if(i.files.length){let r=async s=>{if(!!this._client.isRunning())return this._client.sendNotification(this._notificationType,this._createParams(s))},o=this.doSend(i,r);o&&await o.catch(s=>{this._client.error(`Sending notification ${this.registrationType.method} failed`,s)})}}},cS=class extends Fm{constructor(e){super(e,v.onDidCreateFiles,_i.DidCreateFilesNotification.type,"didCreate","didCreate",t=>t,t=>mS(t))}doSend(e,t){let i=this._client.middleware.workspace;return i!=null&&i.didCreateFiles?i.didCreateFiles(e,t):t(e)}},hS=class extends Fm{constructor(e){super(e,v.onDidRenameFiles,_i.DidRenameFilesNotification.type,"didRename","didRename",t=>t.oldUri,t=>vQ(t))}doSend(e,t){let i=this._client.middleware.workspace;return i!=null&&i.didRenameFiles?i.didRenameFiles(e,t):t(e)}},dS=class extends Fm{constructor(e){super(e,v.onDidDeleteFiles,_i.DidDeleteFilesNotification.type,"didDelete","didDelete",t=>t,t=>mS(t))}doSend(e,t){let i=this._client.middleware.workspace;return i!=null&&i.didDeleteFiles?i.didDeleteFiles(e,t):t(e)}},jm=class extends ld{constructor(t,i,r,o,s,a,l){super(t,i,r,o,s);this._requestType=r,this._accessUri=a,this._createParams=l}async send(t){let i=this.waitUntil(t);t.waitUntil(i)}async waitUntil(t){let i=await this.filter(t,this._accessUri);if(i.files.length){let r=o=>this.sendRequest(this._requestType,this._createParams(o),_i.CancellationToken.None);return this.doSend(i,r)}else return}},gS=class extends jm{constructor(e){super(e,v.onWillCreateFiles,_i.WillCreateFilesRequest.type,"willCreate","willCreate",t=>t,t=>mS(t))}doSend(e,t){let i=this._client.middleware.workspace;return i!=null&&i.willCreateFiles?i.willCreateFiles(e,t):t(e)}},pS=class extends jm{constructor(e){super(e,v.onWillRenameFiles,_i.WillRenameFilesRequest.type,"willRename","willRename",t=>t.oldUri,t=>vQ(t))}doSend(e,t){let i=this._client.middleware.workspace;return i!=null&&i.willRenameFiles?i.willRenameFiles(e,t):t(e)}},fS=class extends jm{constructor(e){super(e,v.onWillDeleteFiles,_i.WillDeleteFilesRequest.type,"willDelete","willDelete",t=>t,t=>mS(t))}doSend(e,t){let i=this._client.middleware.workspace;return i!=null&&i.willDeleteFiles?i.willDeleteFiles(e,t):t(e)}}});var xQ,lr,LUe,bS,CQ=k(()=>{"use strict";xQ=S(Pn()),lr=S(W());wi();ie();Ze();Bt();$t();LUe=q()("language-client-fileSystemWatcher"),bS=class{constructor(e){this._client=e;this._watchers=new Map;this._fileEventsMap=new Map;this.debouncedFileNotify=(0,xQ.default)(()=>{this._notifyFileEvent()},200)}async _notifyFileEvent(){let e=this._fileEventsMap;e.size!=0&&(await this._client.forceDocumentSync(),this._client.sendNotification(lr.DidChangeWatchedFilesNotification.type,{changes:Array.from(e.values())}).catch(t=>{this._client.error("Notify file events failed.",t)}),e.clear())}notifyFileEvent(e){let t=this;function i(o){t._fileEventsMap.set(o.uri,o),t.debouncedFileNotify()}let r=this._client.middleware.workspace;r!=null&&r.didChangeWatchedFile?r.didChangeWatchedFile(e,i):i(e)}getState(){return{kind:"workspace",id:this.registrationType.method,registrations:this._watchers.size>0}}get registrationType(){return lr.DidChangeWatchedFilesNotification.type}fillClientCapabilities(e){Y(Y(e,"workspace"),"didChangeWatchedFiles").dynamicRegistration=!0,Y(Y(e,"workspace"),"didChangeWatchedFiles").relativePatternSupport=!0}initialize(e,t){var s;let i=(s=this._client.clientOptions.synchronize)==null?void 0:s.fileEvents;if(!i)return;let r=Array.isArray(i)?i:[i],o=[];for(let a of r)o.push(a),this.hookListeners(a,!a.ignoreCreateEvents,!a.ignoreChangeEvents,!a.ignoreDeleteEvents,o);this._watchers.set(Se(),o)}register(e){if(!Array.isArray(e.registerOptions.watchers))return;let t=[];for(let i of e.registerOptions.watchers){let r;if(ti(i.globPattern))r=i.globPattern;else if(lr.RelativePattern.is(i.globPattern))r=XK(i.globPattern);else continue;let o=!0,s=!0,a=!0;i.kind!=null&&(o=(i.kind&lr.WatchKind.Create)!==0,s=(i.kind&lr.WatchKind.Change)!==0,a=(i.kind&lr.WatchKind.Delete)!==0);let l=v.createFileSystemWatcher(r,!o,!s,!a);this.hookListeners(l,o,s,a,t),t.push(l)}this._watchers.set(e.id,t)}hookListeners(e,t,i,r,o){t&&e.onDidCreate(s=>this.notifyFileEvent({uri:ad(s),type:lr.FileChangeType.Created}),null,o),i&&e.onDidChange(s=>this.notifyFileEvent({uri:ad(s),type:lr.FileChangeType.Changed}),null,o),r&&e.onDidDelete(s=>this.notifyFileEvent({uri:ad(s),type:lr.FileChangeType.Deleted}),null,o)}unregister(e){let t=this._watchers.get(e);if(t){for(let i of t)i.dispose();this._watchers.delete(e)}}dispose(){this._fileEventsMap.clear(),this.debouncedFileNotify.clear(),this._watchers.forEach(e=>{for(let t of e)t.dispose()}),this._watchers.clear()}}});var _u,yS,SQ=k(()=>{"use strict";_u=S(W());de();Ze();yS=class extends me{constructor(e){super(e,_u.FoldingRangeRequest.type)}fillClientCapabilities(e){let t=Y(Y(e,"textDocument"),"foldingRange");t.dynamicRegistration=!0,t.rangeLimit=5e3,t.lineFoldingOnly=!0,t.foldingRangeKind={valueSet:[_u.FoldingRangeKind.Comment,_u.FoldingRangeKind.Imports,_u.FoldingRangeKind.Region]},t.foldingRange={collapsedText:!1}}initialize(e,t){let[i,r]=this.getRegistration(t,e.foldingRangeProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){let t={provideFoldingRanges:(i,r,o)=>{let s=this._client,a=(u,c,h)=>{let d={textDocument:{uri:u.uri}};return this.sendRequest(_u.FoldingRangeRequest.type,d,h)},l=s.middleware;return l.provideFoldingRanges?l.provideFoldingRanges(i,r,o,a):a(i,r,o)}};return[_.registerFoldingRangeProvider(e.documentSelector,t),t]}}});var Fs,vS,wS,xS,DQ=k(()=>{"use strict";Fs=S(W());de();Ze();Bt();$t();vS=class extends me{constructor(e){super(e,Fs.DocumentFormattingRequest.type)}fillClientCapabilities(e){Y(Y(e,"textDocument"),"formatting").dynamicRegistration=!0}initialize(e,t){let i=this.getRegistrationOptions(t,e.documentFormattingProvider);!i||this.register({id:Se(),registerOptions:i})}registerLanguageProvider(e){let t={provideDocumentFormattingEdits:(i,r,o)=>{let s=this._client,a=(u,c,h)=>{let d={textDocument:{uri:u.uri},options:c};return this.sendRequest(Fs.DocumentFormattingRequest.type,d,h)},l=s.middleware;return l.provideDocumentFormattingEdits?l.provideDocumentFormattingEdits(i,r,o,a):a(i,r,o)}};return[_.registerDocumentFormatProvider(e.documentSelector,t,this._client.clientOptions.formatterPriority),t]}},wS=class extends me{constructor(e){super(e,Fs.DocumentRangeFormattingRequest.type)}fillClientCapabilities(e){Y(Y(e,"textDocument"),"rangeFormatting").dynamicRegistration=!0}initialize(e,t){let i=this.getRegistrationOptions(t,e.documentRangeFormattingProvider);!i||this.register({id:Se(),registerOptions:i})}registerLanguageProvider(e){let t={provideDocumentRangeFormattingEdits:(i,r,o,s)=>{let a=this._client,l=(c,h,d,g)=>{let p={textDocument:{uri:c.uri},range:h,options:d};return this.sendRequest(Fs.DocumentRangeFormattingRequest.type,p,g)},u=a.middleware;return u.provideDocumentRangeFormattingEdits?u.provideDocumentRangeFormattingEdits(i,r,o,s,l):l(i,r,o,s)}};return[_.registerDocumentRangeFormatProvider(e.documentSelector,t),t]}},xS=class extends me{constructor(e){super(e,Fs.DocumentOnTypeFormattingRequest.type)}fillClientCapabilities(e){Y(Y(e,"textDocument"),"onTypeFormatting").dynamicRegistration=!0}initialize(e,t){let i=this.getRegistrationOptions(t,e.documentOnTypeFormattingProvider);!i||this.register({id:Se(),registerOptions:i})}registerLanguageProvider(e){let t={provideOnTypeFormattingEdits:(o,s,a,l,u)=>{let c=this._client,h=(g,p,f,m,b)=>{let w={textDocument:zC(g),position:p,ch:f,options:m};return this.sendRequest(Fs.DocumentOnTypeFormattingRequest.type,w,b)},d=c.middleware;return d.provideOnTypeFormattingEdits?d.provideOnTypeFormattingEdits(o,s,a,l,u,h):h(o,s,a,l,u)}},i=e.moreTriggerCharacter||[],r=[e.firstTriggerCharacter,...i];return[_.registerOnTypeFormattingEditProvider(e.documentSelector,t,r),t]}}});var KI,CS,TQ=k(()=>{"use strict";KI=S(W());de();Ze();Bt();$t();Ze();CS=class extends me{constructor(e){super(e,KI.HoverRequest.type)}fillClientCapabilities(e){let t=Y(Y(e,"textDocument"),"hover");t.dynamicRegistration=!0,t.contentFormat=this._client.supportedMarkupKind}initialize(e,t){let i=this.getRegistrationOptions(t,e.hoverProvider);!i||this.register({id:Se(),registerOptions:i})}registerLanguageProvider(e){let t={provideHover:(i,r,o)=>{let s=this._client,a=(u,c,h)=>this.sendRequest(KI.HoverRequest.type,Ei(u,c),h),l=s.middleware;return l.provideHover?l.provideHover(i,r,o,a):a(i,r,o)}};return[_.registerHoverProvider(e.documentSelector,t),t]}}});var QI,SS,kQ=k(()=>{"use strict";QI=S(W());de();Ze();Bt();SS=class extends me{constructor(e){super(e,QI.ImplementationRequest.type)}fillClientCapabilities(e){let t=Y(Y(e,"textDocument"),"implementation");t.dynamicRegistration=!0,t.linkSupport=!0}initialize(e,t){let[i,r]=this.getRegistration(t,e.implementationProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){let t={provideImplementation:(i,r,o)=>{let s=this._client,a=(u,c,h)=>this.sendRequest(QI.ImplementationRequest.type,Ei(u,c),h),l=s.middleware;return l.provideImplementation?l.provideImplementation(i,r,o,a):a(i,r,o)}};return[_.registerImplementationProvider(e.documentSelector,t),t]}}});var js,i2e,DS,PQ=k(()=>{"use strict";js=S(W());de();Ze();Bt();i2e=q()("language-client-inlayHint"),DS=class extends me{constructor(e){super(e,js.InlayHintRequest.type)}fillClientCapabilities(e){let t=Y(Y(e,"textDocument"),"inlayHint");t.dynamicRegistration=!0,t.resolveSupport={properties:["tooltip","textEdits","label.tooltip","label.location","label.command"]},Y(Y(e,"workspace"),"inlayHint").refreshSupport=!0}initialize(e,t){this._client.onRequest(js.InlayHintRefreshRequest.type,async()=>{for(let o of this.getAllProviders())o.onDidChangeInlayHints.fire()});let[i,r]=this.getRegistration(t,e.inlayHintProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){let t=new js.Emitter,i={onDidChangeInlayHints:t.event,provideInlayHints:(o,s,a)=>{let l=this._client,u=(h,d,g)=>{let p={textDocument:go(h),range:d};return this.sendRequest(js.InlayHintRequest.type,p,g,null)},c=l.middleware;return c.provideInlayHints?c.provideInlayHints(o,s,a,u):u(o,s,a)}};i.resolveInlayHint=e.resolveProvider===!0?(o,s)=>{let a=this._client,l=(c,h)=>this.sendRequest(js.InlayHintResolveRequest.type,c,h),u=a.middleware;return u.resolveInlayHint?u.resolveInlayHint(o,s,l):l(o,s)}:void 0;let r=e.documentSelector;return[_.registerInlayHintsProvider(r,i),{provider:i,onDidChangeInlayHints:t}]}}});var Lu,TS,EQ=k(()=>{"use strict";Lu=S(W());de();Bt();Ze();TS=class extends me{constructor(e){super(e,Lu.InlineValueRequest.type)}fillClientCapabilities(e){Y(Y(e,"textDocument"),"inlineValue").dynamicRegistration=!0,Y(Y(e,"workspace"),"inlineValue").refreshSupport=!0}initialize(e,t){this._client.onRequest(Lu.InlineValueRefreshRequest.type,async()=>{for(let o of this.getAllProviders())o.onDidChangeInlineValues.fire()});let[i,r]=this.getRegistration(t,e.inlineValueProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){let t=new Lu.Emitter,i={onDidChangeInlineValues:t.event,provideInlineValues:(o,s,a,l)=>{let u=this._client,c=(d,g,p,f)=>{let m={textDocument:go(d),range:g,context:p};return this.sendRequest(Lu.InlineValueRequest.type,m,f)},h=u.middleware;return h.provideInlineValues?h.provideInlineValues(o,s,a,l,c):c(o,s,a,l)}},r=e.documentSelector;return[_.registerInlineValuesProvider(r,i),{provider:i,onDidChangeInlineValues:t}]}}});var VI,L2e,kS,RQ=k(()=>{"use strict";VI=S(W());de();Ze();Bt();L2e=q()("languageclient-linkedEditingRange"),kS=class extends me{constructor(e){super(e,VI.LinkedEditingRangeRequest.type)}fillClientCapabilities(e){let t=Y(Y(e,"textDocument"),"linkedEditingRange");t.dynamicRegistration=!0}initialize(e,t){let[i,r]=this.getRegistration(t,e.linkedEditingRangeProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){let t={provideLinkedEditingRanges:(i,r,o)=>{let s=this._client,a=(u,c,h)=>{let d=Ei(u,c);return this.sendRequest(VI.LinkedEditingRangeRequest.type,d,h)},l=s.middleware;return l.provideLinkedEditingRange?l.provideLinkedEditingRange(i,r,o,a):a(i,r,o)}};return[_.registerLinkedEditingRangeProvider(e.documentSelector,t),t]}}});function YDe(n){return typeof n!="number"?!1:n>=0&&n<=100}var PS,W2e,ud,eF=k(()=>{"use strict";PS=S(W());re();xe();W2e=q()("language-client-progressPart"),ud=class{constructor(e,t,i){this.client=e;this.token=t;this.disposables=[];this._cancelled=!1;this._percent=0;this._started=!1;this.disposables.push(e.onProgress(PS.WorkDoneProgress.type,this.token,r=>{switch(r.kind){case"begin":this.begin(r);break;case"report":this.report(r);break;case"end":this.done(r.message),i&&i(this);break}}))}begin(e){return this._started||this._cancelled?!1:(this._started=!0,D.withProgress({source:`language-client-${this.client.id}`,cancellable:e.cancellable,title:e.title},(t,i)=>(this.progress=t,this.report(e),this._cancelled?Promise.resolve():(this.disposables.push(i.onCancellationRequested(()=>{this.client.sendNotification(PS.WorkDoneProgressCancelNotification.type,{token:this.token}),this.cancel()})),new Promise((r,o)=>{this._resolve=r,this._reject=o})))),!0)}report(e){if(!this.progress)return;let t={};e.message&&(t.message=e.message),YDe(e.percentage)&&(t.increment=e.percentage-this._percent,this._percent=e.percentage),Object.keys(t).length>0&&this.progress.report(t)}cancel(){this._cancelled||(this.cleanUp(),this._reject!==void 0&&(this._reject(),this._resolve=void 0,this._reject=void 0))}done(e){if(this.progress){let t={};e&&(t.message=e),typeof this._percent=="number"&&this._percent>0&&(t.increment=100-this._percent),this.progress.report(t)}this.cleanUp(),this._resolve&&(this._resolve(),this._resolve=void 0,this._reject=void 0)}cleanUp(){this._cancelled=!0,this.progress=void 0,U(this.disposables)}}});var ES,RS,_Q=k(()=>{"use strict";ES=S(W());eF();Ze();RS=class{constructor(e){this._client=e;this.activeParts=new Set}get method(){return ES.WorkDoneProgressCreateRequest.method}fillClientCapabilities(e){Y(e,"window").workDoneProgress=!0}getState(){return{kind:"window",id:ES.WorkDoneProgressCreateRequest.method,registrations:this.activeParts.size>0}}initialize(){let e=this._client,t=r=>{this.activeParts.delete(r)},i=r=>{this.activeParts.add(new ud(this._client,r.token,t))};e.onRequest(ES.WorkDoneProgressCreateRequest.type,i)}dispose(){for(let e of this.activeParts)e.done();this.activeParts.clear()}}});var tF,_S,LQ=k(()=>{"use strict";tF=S(W());de();Ze();Bt();$t();_S=class extends me{constructor(e){super(e,tF.ReferencesRequest.type)}fillClientCapabilities(e){Y(Y(e,"textDocument"),"references").dynamicRegistration=!0}initialize(e,t){let i=this.getRegistrationOptions(t,e.referencesProvider);!i||this.register({id:Se(),registerOptions:i})}registerLanguageProvider(e){let t={provideReferences:(i,r,o,s)=>{let a=this._client,l=(c,h,d,g)=>this.sendRequest(tF.ReferencesRequest.type,tQ(c,h,d),g),u=a.middleware;return u.provideReferences?u.provideReferences(i,r,o,s,l):l(i,r,o,s)}};return[_.registerReferencesProvider(e.documentSelector,t),t]}}});var Bo,LS,IQ=k(()=>{"use strict";Bo=S(W());de();wi();Ze();Bt();$t();LS=class extends me{constructor(e){super(e,Bo.RenameRequest.type)}fillClientCapabilities(e){let t=Y(Y(e,"textDocument"),"rename");t.dynamicRegistration=!0,t.prepareSupport=!0,t.honorsChangeAnnotations=!0,t.prepareSupportDefaultBehavior=Bo.PrepareSupportDefaultBehavior.Identifier}initialize(e,t){let i=this.getRegistrationOptions(t,e.renameProvider);!i||(fa(e.renameProvider)&&(i.prepareProvider=!1),this.register({id:Se(),registerOptions:i}))}registerLanguageProvider(e){let t={provideRenameEdits:(i,r,o,s)=>{let a=this._client,l=(c,h,d,g)=>{let p={textDocument:{uri:c.uri},position:h,newName:d};return this.sendRequest(Bo.RenameRequest.type,p,g)},u=a.middleware;return u.provideRenameEdits?u.provideRenameEdits(i,r,o,s,l):l(i,r,o,s)},prepareRename:e.prepareProvider?(i,r,o)=>{let s=this._client,a=(u,c,h)=>{let d={textDocument:go(u),position:c};return this.sendRequest(Bo.PrepareRenameRequest.type,d,h).then(g=>{if(!g)return null;if(Bo.Range.is(g))return g;if(this.isDefaultBehavior(g))return g.defaultBehavior===!0?null:Promise.reject(new Error("The element can't be renamed."));if(g&&Bo.Range.is(g.range))return{range:g.range,placeholder:g.placeholder}})},l=s.middleware;return l.prepareRename?l.prepareRename(i,r,o,a):a(i,r,o)}:void 0};return[_.registerRenameProvider(e.documentSelector,t),t]}isDefaultBehavior(e){let t=e;return t&&fa(t.defaultBehavior)}}});var iF,IS,FQ=k(()=>{"use strict";iF=S(W());de();Ze();IS=class extends me{constructor(e){super(e,iF.SelectionRangeRequest.type)}fillClientCapabilities(e){let t=Y(Y(e,"textDocument"),"selectionRange");t.dynamicRegistration=!0}initialize(e,t){let[i,r]=this.getRegistration(t,e.selectionRangeProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){let t={provideSelectionRanges:(i,r,o)=>{let s=this._client,a=(u,c,h)=>{let d={textDocument:{uri:u.uri},positions:c};return this.sendRequest(iF.SelectionRangeRequest.type,d,h)},l=s.middleware;return l.provideSelectionRanges?l.provideSelectionRanges(i,r,o,a):a(i,r,o)}};return[_.registerSelectionRangeProvider(e.documentSelector,t),t]}}});var De,nze,FS,jQ=k(()=>{"use strict";De=S(W());de();wi();Ze();Bt();nze=q()("languageclient-semanticTokens"),FS=class extends me{constructor(e){super(e,De.SemanticTokensRegistrationType.type)}fillClientCapabilities(e){let t=Y(Y(e,"textDocument"),"semanticTokens");t.dynamicRegistration=!0,t.tokenTypes=[De.SemanticTokenTypes.namespace,De.SemanticTokenTypes.type,De.SemanticTokenTypes.class,De.SemanticTokenTypes.enum,De.SemanticTokenTypes.interface,De.SemanticTokenTypes.struct,De.SemanticTokenTypes.typeParameter,De.SemanticTokenTypes.parameter,De.SemanticTokenTypes.variable,De.SemanticTokenTypes.property,De.SemanticTokenTypes.enumMember,De.SemanticTokenTypes.event,De.SemanticTokenTypes.function,De.SemanticTokenTypes.method,De.SemanticTokenTypes.macro,De.SemanticTokenTypes.keyword,De.SemanticTokenTypes.modifier,De.SemanticTokenTypes.comment,De.SemanticTokenTypes.string,De.SemanticTokenTypes.number,De.SemanticTokenTypes.regexp,De.SemanticTokenTypes.decorator,De.SemanticTokenTypes.operator],t.tokenModifiers=[De.SemanticTokenModifiers.declaration,De.SemanticTokenModifiers.definition,De.SemanticTokenModifiers.readonly,De.SemanticTokenModifiers.static,De.SemanticTokenModifiers.deprecated,De.SemanticTokenModifiers.abstract,De.SemanticTokenModifiers.async,De.SemanticTokenModifiers.modification,De.SemanticTokenModifiers.documentation,De.SemanticTokenModifiers.defaultLibrary],t.formats=[De.TokenFormat.Relative],t.requests={range:!0,full:{delta:!0}},t.multilineTokenSupport=!1,t.overlappingTokenSupport=!1,t.serverCancelSupport=!0,t.augmentsSyntaxTokens=!0,Y(Y(e,"workspace"),"semanticTokens").refreshSupport=!0}initialize(e,t){this._client.onRequest(De.SemanticTokensRefreshRequest.type,async()=>{for(let s of this.getAllProviders())s.onDidChangeSemanticTokensEmitter.fire()});let[r,o]=this.getRegistration(t,e.semanticTokensProvider);!r||!o||this.register({id:r,registerOptions:o})}registerLanguageProvider(e){let t=fa(e.full)?e.full:e.full!==void 0,i=e.full!==void 0&&typeof e.full!="boolean"&&e.full.delta===!0,r=new De.Emitter,o=t?{onDidChangeSemanticTokens:r.event,provideDocumentSemanticTokens:(u,c)=>{let d=this._client.middleware,g=(p,f)=>{let m={textDocument:go(p)};return this.sendRequest(De.SemanticTokensRequest.type,m,f)};return d.provideDocumentSemanticTokens?d.provideDocumentSemanticTokens(u,c,g):g(u,c)},provideDocumentSemanticTokensEdits:i?(u,c,h)=>{let g=this._client.middleware,p=(f,m,b)=>{let w={textDocument:go(f),previousResultId:m};return this.sendRequest(De.SemanticTokensDeltaRequest.type,w,b)};return g.provideDocumentSemanticTokensEdits?g.provideDocumentSemanticTokensEdits(u,c,h,p):p(u,c,h)}:void 0}:void 0,a=e.range===!0?{provideDocumentRangeSemanticTokens:(u,c,h)=>{let g=this._client.middleware,p=(f,m,b)=>{let w={textDocument:go(f),range:m};return this.sendRequest(De.SemanticTokensRangeRequest.type,w,b)};return g.provideDocumentRangeSemanticTokens?g.provideDocumentRangeSemanticTokens(u,c,h,p):p(u,c,h)}}:void 0,l=[];return o!==void 0&&l.push(_.registerDocumentSemanticTokensProvider(e.documentSelector,o,e.legend)),a!==void 0&&l.push(_.registerDocumentRangeSemanticTokensProvider(e.documentSelector,a,e.legend)),[De.Disposable.create(()=>l.forEach(u=>u.dispose())),{range:a,full:o,onDidChangeSemanticTokensEmitter:r}]}}});var nF,jS,MQ=k(()=>{"use strict";nF=S(W());de();Ze();Bt();$t();jS=class extends me{constructor(e){super(e,nF.SignatureHelpRequest.type)}fillClientCapabilities(e){let t=Y(Y(e,"textDocument"),"signatureHelp");t.dynamicRegistration=!0,t.contextSupport=!0,t.signatureInformation={documentationFormat:this._client.supportedMarkupKind,activeParameterSupport:!0,parameterInformation:{labelOffsetSupport:!0}}}initialize(e,t){let i=this.getRegistrationOptions(t,e.signatureHelpProvider);!i||this.register({id:Se(),registerOptions:i})}registerLanguageProvider(e){let t={provideSignatureHelp:(r,o,s,a)=>{let l=this._client,u=(h,d,g,p)=>this.sendRequest(nF.SignatureHelpRequest.type,eQ(h,d,g),p),c=l.middleware;return c.provideSignatureHelp?c.provideSignatureHelp(r,o,a,s,u):u(r,o,a,s)}};return[_.registerSignatureHelpProvider(e.documentSelector,t,e.triggerCharacters),t]}}});var ot,MS,OS,AS,NS,HS,qS,OQ=k(()=>{"use strict";ot=S(W());ie();Ze();Bt();$t();MS=class extends Ir{constructor(t,i){super(t,v.onDidOpenTextDocument,ot.DidOpenTextDocumentNotification.type,"didOpen",r=>UK(r),Ir.textDocumentFilter);this._syncedDocuments=i}get registrationType(){return ot.DidOpenTextDocumentNotification.type}fillClientCapabilities(t){Y(Y(t,"textDocument"),"synchronization").dynamicRegistration=!0}initialize(t,i){let r=t.resolvedTextDocumentSync;i&&r&&r.openClose&&this.register({id:Se(),registerOptions:{documentSelector:i}})}register(t){super.register(t),t.registerOptions.documentSelector&&v.textDocuments.forEach(i=>{let r=i.uri;this._syncedDocuments.has(r)||this.callback(i)})}notificationSent(t,i,r){super.notificationSent(t,i,r),this._syncedDocuments.set(t.uri.toString(),t)}},OS=class extends Ir{constructor(t,i){super(t,v.onDidCloseTextDocument,ot.DidCloseTextDocumentNotification.type,"didClose",r=>GK(r),Ir.textDocumentFilter);this._syncedDocuments=i}get registrationType(){return ot.DidCloseTextDocumentNotification.type}fillClientCapabilities(t){Y(Y(t,"textDocument"),"synchronization").dynamicRegistration=!0}initialize(t,i){let r=t.resolvedTextDocumentSync;i&&r&&r.openClose&&this.register({id:Se(),registerOptions:{documentSelector:i}})}notificationSent(t,i,r){super.notificationSent(t,i,r),this._syncedDocuments.delete(t.uri.toString())}unregister(t){let i=this._selectors.get(t);if(!i)return;super.unregister(t);let r=this._selectors.values();this._syncedDocuments.forEach(o=>{if(v.match(i,o)>0&&!this._selectorFilter(r,o)){let s=this._client.middleware,a=u=>this._client.sendNotification(this._type,this._createParams(u));this._syncedDocuments.delete(o.uri.toString());let l=s.didClose?s.didClose(o,a):a(o);l&&l.catch(u=>{this._client.error(`Sending document notification ${this._type.method} failed`,u)})}})}},AS=class extends Pu{constructor(t){super(t);this._changeData=new Map,this._onNotificationSent=new ot.Emitter}*getDocumentSelectors(){for(let t of this._changeData.values())yield t.documentSelector}get registrationType(){return ot.DidChangeTextDocumentNotification.type}fillClientCapabilities(t){Y(Y(t,"textDocument"),"synchronization").dynamicRegistration=!0}initialize(t,i){let r=t.resolvedTextDocumentSync;i&&r&&r.change!==void 0&&r.change!==ot.TextDocumentSyncKind.None&&this.register({id:Se(),registerOptions:Object.assign({},{documentSelector:i},{syncKind:r.change})})}register(t){!t.registerOptions.documentSelector||(this._listener||(this._listener=v.onDidChangeTextDocument(this.callback,this)),this._changeData.set(t.id,{documentSelector:t.registerOptions.documentSelector,syncKind:t.registerOptions.syncKind}))}callback(t){if(t.contentChanges.length===0)return;let i=v.getDocument(t.textDocument.uri),{textDocument:r}=i,o=[];for(let s of this._changeData.values())if(v.match(s.documentSelector,r)>0){let a=this._client.middleware,l,u;s.syncKind===ot.TextDocumentSyncKind.Incremental?u=async c=>{let h=KK(c);await this._client.sendNotification(ot.DidChangeTextDocumentNotification.type,h),this.notificationSent(c,ot.DidChangeTextDocumentNotification.type,h)}:s.syncKind===ot.TextDocumentSyncKind.Full?u=async c=>{let h=zK(r);await this._client.sendNotification(ot.DidChangeTextDocumentNotification.type,h),this.notificationSent(c,ot.DidChangeTextDocumentNotification.type,h)}:u=()=>Promise.resolve(void 0),l=a.didChange?a.didChange(t,u):u(t),l&&o.push(l)}return Promise.all(o).then(void 0,s=>{throw this._client.error(`Sending document notification ${ot.DidChangeTextDocumentNotification.type.method} failed`,s),s})}get onNotificationSent(){return this._onNotificationSent.event}notificationSent(t,i,r){this._onNotificationSent.fire({original:t,type:i,params:r})}unregister(t){this._changeData.delete(t)}dispose(){this._changeData.clear(),this._listener&&(this._listener.dispose(),this._listener=void 0)}getProvider(t){for(let i of this._changeData.values())if(v.match(i.documentSelector,t)>0)return{send:r=>this.callback(r)}}},NS=class extends Ir{constructor(e){super(e,v.onWillSaveTextDocument,ot.WillSaveTextDocumentNotification.type,"willSave",t=>qI(t),(t,i)=>Ir.textDocumentFilter(t,i.document))}get registrationType(){return ot.WillSaveTextDocumentNotification.type}fillClientCapabilities(e){let t=Y(Y(e,"textDocument"),"synchronization");t.willSave=!0}initialize(e,t){let i=e.resolvedTextDocumentSync;t&&i&&i.willSave&&this.register({id:Se(),registerOptions:{documentSelector:t}})}},HS=class extends Pu{constructor(t){super(t);this._selectors=new Map}getDocumentSelectors(){return this._selectors.values()}get registrationType(){return ot.WillSaveTextDocumentWaitUntilRequest.type}fillClientCapabilities(t){let i=Y(Y(t,"textDocument"),"synchronization");i.willSaveWaitUntil=!0}initialize(t,i){let r=t.resolvedTextDocumentSync;i&&i.length>0&&r&&r.willSaveWaitUntil&&this.register({id:Se(),registerOptions:{documentSelector:i}})}register(t){!t.registerOptions.documentSelector||(this._listener||(this._listener=v.onWillSaveTextDocument(this.callback,this)),this._selectors.set(t.id,t.registerOptions.documentSelector))}callback(t){if(Ir.textDocumentFilter(this._selectors.values(),t.document)){let i=this._client.middleware,r=o=>this.sendRequest(ot.WillSaveTextDocumentWaitUntilRequest.type,qI(o),ot.CancellationToken.None);t.waitUntil(i.willSaveWaitUntil?i.willSaveWaitUntil(t,r):r(t))}}unregister(t){this._selectors.delete(t),this._selectors.size===0&&this._listener&&(this._listener.dispose(),this._listener=void 0)}dispose(){this._selectors.clear(),this._listener&&(this._listener.dispose(),this._listener=void 0)}},qS=class extends Ir{constructor(t){super(t,v.onDidSaveTextDocument,ot.DidSaveTextDocumentNotification.type,"didSave",i=>QK(i,this._includeText),Ir.textDocumentFilter);this._includeText=!1}get registrationType(){return ot.DidSaveTextDocumentNotification.type}fillClientCapabilities(t){Y(Y(t,"textDocument"),"synchronization").didSave=!0}initialize(t,i){let r=t.resolvedTextDocumentSync;if(i&&r&&r.save){let o=typeof r.save=="boolean"?{includeText:!1}:{includeText:!!r.save.includeText};this.register({id:Se(),registerOptions:Object.assign({},{documentSelector:i},o)})}}register(t){this._includeText=!!t.registerOptions.includeText,super.register(t)}}});var rF,BS,AQ=k(()=>{"use strict";rF=S(W());de();Bt();Ze();BS=class extends me{constructor(e){super(e,rF.TypeDefinitionRequest.type)}fillClientCapabilities(e){let t=Y(Y(e,"textDocument"),"typeDefinition");t.dynamicRegistration=!0,t.linkSupport=!0}initialize(e,t){let[i,r]=this.getRegistration(t,e.typeDefinitionProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){let t={provideTypeDefinition:(i,r,o)=>{let s=this._client,a=(u,c,h)=>this.sendRequest(rF.TypeDefinitionRequest.type,Ei(u,c),h),l=s.middleware;return l.provideTypeDefinition?l.provideTypeDefinition(i,r,o,a):a(i,r,o)}};return[_.registerTypeDefinitionProvider(e.documentSelector,t),t]}}});var Iu,WS,NQ=k(()=>{"use strict";Iu=S(W());de();Ze();Bt();WS=class extends me{constructor(e){super(e,Iu.TypeHierarchyPrepareRequest.type)}fillClientCapabilities(e){let t=Y(Y(e,"textDocument"),"typeHierarchy");t.dynamicRegistration=!0}initialize(e,t){let[i,r]=this.getRegistration(t,e.typeHierarchyProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){let t=this._client,i=e.documentSelector,r={prepareTypeHierarchy:(o,s,a)=>{let l=(c,h,d)=>{let g=Ei(c,h);return this.sendRequest(Iu.TypeHierarchyPrepareRequest.type,g,d)},u=t.middleware;return u.prepareTypeHierarchy?u.prepareTypeHierarchy(o,s,a,l):l(o,s,a)},provideTypeHierarchySupertypes:(o,s)=>{let a=(u,c)=>this.sendRequest(Iu.TypeHierarchySupertypesRequest.type,{item:u},c),l=t.middleware;return l.provideTypeHierarchySupertypes?l.provideTypeHierarchySupertypes(o,s,a):a(o,s)},provideTypeHierarchySubtypes:(o,s)=>{let a=(u,c)=>this.sendRequest(Iu.TypeHierarchySubtypesRequest.type,{item:u},c),l=t.middleware;return l.provideTypeHierarchySubtypes?l.provideTypeHierarchySubtypes(o,s,a):a(o,s)}};return[_.registerTypeHierarchyProvider(i,r),r]}}});var ZS,JS,YS,HQ=k(()=>{"use strict";xe();ZS=(t=>(t[t.DoNotRestart=1]="DoNotRestart",t[t.Restart=2]="Restart",t))(ZS||{}),JS=(t=>(t[t.Continue=1]="Continue",t[t.Shutdown=2]="Shutdown",t))(JS||{}),YS=class{constructor(e,t){this.name=e;this.maxRestartCount=t;this.milliseconds=3*60*1e3;this.restarts=[]}error(e,t,i){return i&&i<=3?1:2}closed(){return this.restarts.push(Date.now()),this.restarts.length<this.maxRestartCount?2:this.restarts[this.restarts.length-1]-this.restarts[0]<=this.milliseconds?(D.showErrorMessage(`The "${this.name}" server crashed ${this.maxRestartCount} times in the last 3 minutes. The server will not be restarted.`),1):(this.restarts.shift(),2)}}});var $S,US,Mm,qQ=k(()=>{"use strict";$S=q()("language-client"),US=class{error(e){$S.error(e)}warn(e){$S.warn(e)}info(e){$S.info(e)}log(e){$S.log(e)}},Mm=class{error(e){}warn(e){}info(e){}log(e){}}});function oF(n,e){if(n!==void 0)return n[e]}function BQ(n,e){return n.filter(t=>!e.includes(t))}var Fu,M3e,XS,WQ=k(()=>{"use strict";Fu=S(W());Pe();$e();ie();$t();M3e=q()("language-client-workspaceFolder");XS=class{constructor(e){this._client=e;this._listeners=new Map}getState(){return{kind:"workspace",id:this.registrationType.method,registrations:this._listeners.size>0}}get registrationType(){return Fu.DidChangeWorkspaceFoldersNotification.type}getValidWorkspaceFolders(){let{workspaceFolders:e}=v;if(!e||e.length==0)return;let t=this._client.clientOptions.ignoredRootPaths??[],i=e.filter(r=>{let o=j.parse(r.uri).fsPath;return t.every(s=>!ni(s,o))});return i.length?i:void 0}fillInitializeParams(e){let t=this.getValidWorkspaceFolders();this.initializeWithFolders(t),t===void 0?(this._client.warn("No valid workspaceFolder exists"),e.workspaceFolders=null):e.workspaceFolders=t.map(i=>this.asProtocol(i))}initializeWithFolders(e){this._initialFolders=e}fillClientCapabilities(e){e.workspace=e.workspace||{},e.workspace.workspaceFolders=!0}initialize(e){let t=this._client;t.onRequest(Fu.WorkspaceFoldersRequest.type,o=>{let s=()=>{let l=this.getValidWorkspaceFolders();return l===void 0?null:l.map(c=>this.asProtocol(c))},a=t.middleware.workspace;return a!=null&&a.workspaceFolders?a.workspaceFolders(o,s):s(o)});let i=oF(oF(oF(e,"workspace"),"workspaceFolders"),"changeNotifications"),r;typeof i=="string"?r=i:i&&(r=Se()),r&&this.register({id:r,registerOptions:void 0})}doSendEvent(e,t){let i={event:{added:e.map(r=>this.asProtocol(r)),removed:t.map(r=>this.asProtocol(r))}};return this._client.sendNotification(Fu.DidChangeWorkspaceFoldersNotification.type,i)}sendInitialEvent(e){let t;if(this._initialFolders&&e){let i=BQ(this._initialFolders,e),r=BQ(e,this._initialFolders);(r.length>0||i.length>0)&&(t=this.doSendEvent(r,i))}else this._initialFolders?t=this.doSendEvent([],this._initialFolders):e&&(t=this.doSendEvent(e,[]));t&&t.catch(i=>{this._client.error(`Sending notification ${Fu.DidChangeWorkspaceFoldersNotification.type.method} failed`,i)})}register(e){let t=e.id,i=this._client,r=v.onDidChangeWorkspaceFolders(s=>{let a=c=>this.doSendEvent(c.added,c.removed),l=i.middleware.workspace,u=l!=null&&l.didChangeWorkspaceFolders?l.didChangeWorkspaceFolders(s,a):a(s);u&&u.catch(c=>{this._client.error(`Sending notification ${Fu.DidChangeWorkspaceFoldersNotification.type.method} failed`,c)})});this._listeners.set(t,r);let o=this.getValidWorkspaceFolders();this.sendInitialEvent(o)}unregister(e){}dispose(){for(let e of this._listeners.values())e.dispose();this._listeners.clear()}asProtocol(e){return e==null?null:{uri:e.uri,name:e.name}}}});var Om,sF,GS,YQ=k(()=>{"use strict";Om=S(W());de();zI();Ze();$t();sF=class extends ho{constructor(t,i){super(t);this._registrationType=i;this._registrations=new Map}getState(){let t=this._registrations.size>0;return{kind:"workspace",id:this._registrationType.method,registrations:t}}get registrationType(){return this._registrationType}register(t){let i=this.registerLanguageProvider(t.registerOptions);this._registrations.set(t.id,{disposable:i[0],provider:i[1]})}unregister(t){let i=this._registrations.get(t);i&&i.disposable.dispose()}dispose(){this._registrations.forEach(t=>{t.disposable.dispose()}),this._registrations.clear()}getProviders(){let t=[];for(let i of this._registrations.values())t.push(i.provider);return t}},GS=class extends sF{constructor(e){super(e,Om.WorkspaceSymbolRequest.type)}fillClientCapabilities(e){let t=Y(Y(e,"workspace"),"symbol");t.dynamicRegistration=!0,t.symbolKind={valueSet:XI},t.tagSupport={valueSet:GI},t.resolveSupport={properties:["location.range"]}}initialize(e){!e.workspaceSymbolProvider||this.register({id:Se(),registerOptions:e.workspaceSymbolProvider===!0?{workDoneProgress:!1}:e.workspaceSymbolProvider})}registerLanguageProvider(e){let t={provideWorkspaceSymbols:(i,r)=>{let o=this._client,s=(l,u)=>this.sendRequest(Om.WorkspaceSymbolRequest.type,{query:l},u),a=o.middleware;return a.provideWorkspaceSymbols?a.provideWorkspaceSymbols(i,r,s):s(i,r)},resolveWorkspaceSymbol:e.resolveProvider===!0?(i,r)=>{let o=this._client,s=(l,u)=>this.sendRequest(Om.WorkspaceSymbolResolveRequest.type,l,u),a=o.middleware;return a.resolveWorkspaceSymbol?a.resolveWorkspaceSymbol(i,r,s):s(i,r)}:void 0};return[_.registerWorkspaceSymbolProvider(t),t]}}});function ZDe(n,e,t,i,r){let o=new US,s=(0,K.createProtocolConnection)(n,e,o,r);return s.onError(l=>{t(l[0],l[1],l[2])}),s.onClose(i),{id:"",hasPendingResponse:()=>s.hasPendingResponse(),listen:()=>s.listen(),sendRequest:(l,...u)=>s.sendRequest(ti(l)?l:l.method,...u),onRequest:(l,u)=>s.onRequest(ti(l)?l:l.method,u),sendNotification:(l,u)=>s.sendNotification(ti(l)?l:l.method,u),onNotification:(l,u)=>s.onNotification(ti(l)?l:l.method,u),onProgress:s.onProgress,sendProgress:s.sendProgress,trace:(l,u,c)=>s.trace(l,u,c),initialize:l=>s.sendRequest(K.InitializeRequest.type,l),shutdown:()=>s.sendRequest(K.ShutdownRequest.type,void 0),exit:()=>s.sendNotification(K.ExitNotification.type),end:()=>s.end(),dispose:()=>s.dispose()}}var ZQ,aF,K,zS,QS,VS,lF,cd,KS,Am,JDe,uF=k(()=>{"use strict";ZQ=S(require("os")),aF=S(require("path")),K=S(W());Pe();de();xr();$e();wi();xt();xe();ie();rQ();oQ();sQ();aQ();lQ();uQ();cQ();hQ();gQ();pQ();fQ();zI();mQ();Ze();wQ();CQ();SQ();DQ();TQ();kQ();PQ();EQ();RQ();_Q();eF();LQ();IQ();FQ();jQ();MQ();OQ();AQ();NQ();Bt();HQ();qQ();$t();WQ();YQ();zS=q()("language-client-client");QS=(r=>(r[r.Info=1]="Info",r[r.Warn=2]="Warn",r[r.Error=3]="Error",r[r.Never=4]="Never",r))(QS||{}),VS=(i=>(i[i.Stopped=1]="Stopped",i[i.Running=2]="Running",i[i.Starting=3]="Starting",i))(VS||{}),lF=(s=>(s[s.Initial=0]="Initial",s[s.Starting=1]="Starting",s[s.StartFailed=2]="StartFailed",s[s.Running=3]="Running",s[s.Stopping=4]="Stopping",s[s.Stopped=5]="Stopped",s))(lF||{});(e=>{function n(t){return t&&K.MessageReader.is(t.reader)&&K.MessageWriter.is(t.writer)}e.is=n})(cd||(cd={}));KS=class{constructor(e,t,i){this._features=[];this._dynamicFeatures=new Map;this._id=e,this._name=t,i.outputChannel?this._outputChannel=i.outputChannel:this._outputChannel=void 0,this._clientOptions=this.resolveClientOptions(i),this.$state=0,this._connection=void 0,this._initializeResult=void 0,this._listeners=[],this._diagnostics=void 0,this._notificationHandlers=new Map,this._pendingNotificationHandlers=new Map,this._notificationDisposables=new Map,this._requestHandlers=new Map,this._pendingRequestHandlers=new Map,this._requestDisposables=new Map,this._progressHandlers=new Map,this._pendingProgressHandlers=new Map,this._progressDisposables=new Map,this._ignoredRegistrations=new Set,this._onStop=void 0,this._stateChangeEmitter=new K.Emitter,this._trace=K.Trace.Off,this._tracer={log:(r,o)=>{ti(r)?this.logTrace(r,o):this.logObjectTrace(r)}},this._syncedDocuments=new Map,this.registerBuiltinFeatures()}resolveClientOptions(e){var u;let t={isTrusted:!1,supportHtml:!1};e.markdown!=null&&(t.isTrusted=e.markdown.isTrusted===!0,t.supportHtml=e.markdown.supportHtml===!0);let i=e.disableSnippetCompletion;e.disableSnippetCompletion===void 0&&v.getConfiguration("suggest",e.workspaceFolder).get("snippetsSupport",!0)===!1&&(i=!0);let r=e.disableMarkdown;r===void 0&&(r=v.getConfiguration("coc.preferences",e.workspaceFolder).get("enableMarkdown",!0)===!1);let o=v.getConfiguration("pullDiagnostic",e.workspaceFolder),s=e.diagnosticPullOptions??{};s.onChange===void 0&&(s.onChange=o.get("onChange")),s.onSave===void 0&&(s.onSave=o.get("onSave")),s.workspace===void 0&&(s.workspace=o.get("workspace")),s.ignored=o.get("ignored",[]).concat(s.ignored??[]);let a=e.disabledFeatures??[];for(let c of["disableCompletion","disableWorkspaceFolders","disableDiagnostics"])if(typeof e[c]=="boolean"){let h=`
|
||
`+Error().stack.split(`
|
||
`).slice(2,4).join(`
|
||
`);if(zS.warn(`${c} in the client options is deprecated. use disabledFeatures instead.`,h),e[c]===!0){let d=c.slice(7);a.push(d[0].toLowerCase()+d.slice(1))}}let l=e.separateDiagnostics;return e.separateDiagnostics===void 0&&(l=v.getConfiguration("diagnostic",e.workspaceFolder).get("separateRelatedInformationAsDiagnostics")),{disabledFeatures:a,disableMarkdown:r,disableSnippetCompletion:i,separateDiagnostics:l,diagnosticPullOptions:s,rootPatterns:e.rootPatterns??[],requireRootPattern:e.requireRootPattern,disableDynamicRegister:e.disableDynamicRegister,formatterPriority:e.formatterPriority??0,ignoredRootPaths:e.ignoredRootPaths??[],documentSelector:e.documentSelector??[],synchronize:e.synchronize??{},diagnosticCollectionName:e.diagnosticCollectionName,outputChannelName:e.outputChannelName??this._id,revealOutputChannelOn:e.revealOutputChannelOn??4,stdioEncoding:e.stdioEncoding??"utf8",initializationOptions:e.initializationOptions,initializationFailedHandler:e.initializationFailedHandler,progressOnInitialization:e.progressOnInitialization===!0,errorHandler:e.errorHandler??this.createDefaultErrorHandler((u=e.connectionOptions)==null?void 0:u.maxRestartCount),middleware:e.middleware??{},workspaceFolder:e.workspaceFolder,connectionOptions:e.connectionOptions,markdown:t}}get supportedMarkupKind(){return this.clientOptions.disableMarkdown?[K.MarkupKind.PlainText]:[K.MarkupKind.Markdown,K.MarkupKind.PlainText]}get state(){return this.getPublicState()}get $state(){return this._state}set $state(e){let t=this.getPublicState();this._state=e;let i=this.getPublicState();i!==t&&this._stateChangeEmitter.fire({oldState:t,newState:i})}get id(){return this._id}get name(){return this._name}get middleware(){return this._clientOptions.middleware}getPublicState(){return this.$state===3?2:this.$state===1?3:1}get initializeResult(){return this._initializeResult}async sendRequest(e,...t){this.checkState();try{return await(await this.$start()).sendRequest(e,...t)}catch(i){throw this.error(`Sending request ${ti(e)?e:e.method} failed.`,i),i}}onRequest(e,t){let i=typeof e=="string"?e:e.method;this._requestHandlers.set(i,t);let r=this.activeConnection(),o;return r!==void 0?(this._requestDisposables.set(i,r.onRequest(e,t)),o={dispose:()=>{let s=this._requestDisposables.get(i);s!==void 0&&(s.dispose(),this._requestDisposables.delete(i))}}):(this._pendingRequestHandlers.set(i,t),o={dispose:()=>{this._pendingRequestHandlers.delete(i);let s=this._requestDisposables.get(i);s!==void 0&&(s.dispose(),this._requestDisposables.delete(i))}}),{dispose:()=>{this._requestHandlers.delete(i),o.dispose()}}}async sendNotification(e,t){this.checkState();try{return await(await this.$start()).sendNotification(e,t)}catch(i){throw this.error(`Sending notification ${ti(e)?e:e.method} failed.`,i),i}}onNotification(e,t){let i=typeof e=="string"?e:e.method;this._notificationHandlers.set(i,t);let r=this.activeConnection(),o;return r!==void 0?(this._notificationDisposables.set(i,r.onNotification(e,t)),o={dispose:()=>{let s=this._notificationDisposables.get(i);s!==void 0&&(s.dispose(),this._notificationDisposables.delete(i))}}):(this._pendingNotificationHandlers.set(i,t),o={dispose:()=>{this._pendingNotificationHandlers.delete(i);let s=this._notificationDisposables.get(i);s!==void 0&&(s.dispose(),this._notificationDisposables.delete(i))}}),{dispose:()=>{this._notificationHandlers.delete(i),o.dispose()}}}onProgress(e,t,i){this._progressHandlers.set(t,{type:e,handler:i});let r=this.activeConnection(),o,s=this._clientOptions.middleware.handleWorkDoneProgress,a=K.WorkDoneProgress.is(e)&&s!==void 0?l=>{s(t,l,()=>i(l))}:i;return r!==void 0?(this._progressDisposables.set(t,r.onProgress(e,t,a)),o={dispose:()=>{let l=this._progressDisposables.get(t);l!==void 0&&(l.dispose(),this._progressDisposables.delete(t))}}):(this._pendingProgressHandlers.set(t,{type:e,handler:i}),o={dispose:()=>{this._pendingProgressHandlers.delete(t);let l=this._progressDisposables.get(t);l!==void 0&&(l.dispose(),this._progressDisposables.delete(t))}}),{dispose:()=>{this._progressHandlers.delete(t),o.dispose()}}}async sendProgress(e,t,i){this.checkState();try{await(await this.$start()).sendProgress(e,t,i)}catch(r){throw this.error(`Sending progress for token ${t} failed.`,r),r}}get configuredSection(){var t;let e=(t=this._clientOptions.synchronize)==null?void 0:t.configurationSection;return typeof e=="string"&&e.startsWith("languageserver.")?e:void 0}get clientOptions(){return this._clientOptions}get onDidChangeState(){return this._stateChangeEmitter.event}get outputChannel(){if(!this._outputChannel){let{outputChannelName:e}=this._clientOptions;this._outputChannel=D.createOutputChannel(e||this._name)}return this._outputChannel}get diagnostics(){return this._diagnostics}createDefaultErrorHandler(e){return new YS(this._id,e??4)}set trace(e){this._trace=e;let t=this.activeConnection();t!==void 0&&t.trace(this._trace,this._tracer,{sendNotification:!1,traceFormat:this._traceFormat})}logObjectTrace(e){e.isLSPMessage&&e.type?this.outputChannel.append(`[LSP - ${new Date().toLocaleTimeString()}] `):this.outputChannel.append(`[Trace - ${new Date().toLocaleTimeString()}] `),e&&this.outputChannel.appendLine(`${JSON.stringify(e)}`)}data2String(e){if(e instanceof K.ResponseError){let t=e;return` Message: ${t.message}
|
||
Code: ${t.code} ${t.data?`
|
||
`+t.data.toString():""}`}return e instanceof Error?ti(e.stack)?e.stack:e.message:ti(e)?e:e.toString()}info(e,t,i=!0){this.outputChannel.appendLine(`[Info - ${new Date().toLocaleTimeString()}] ${e}`),t!=null&&this.outputChannel.appendLine(this.data2String(t)),i&&this._clientOptions.revealOutputChannelOn<=1&&this.showNotificationMessage(K.MessageType.Info,e)}warn(e,t,i=!0){this.outputChannel.appendLine(`[Warn - ${new Date().toLocaleTimeString()}] ${e}`),t!=null&&this.outputChannel.appendLine(this.data2String(t)),i&&this._clientOptions.revealOutputChannelOn<=2&&this.showNotificationMessage(K.MessageType.Warning,e)}error(e,t,i=!0){this.outputChannel.appendLine(`[Error - ${new Date().toLocaleTimeString()}] ${e}`),t!=null&&this.outputChannel.appendLine(this.data2String(t)),(i==="force"||i&&this._clientOptions.revealOutputChannelOn<=3)&&this.showNotificationMessage(K.MessageType.Error,e)}showNotificationMessage(e,t){t=t??"A request has failed. See the output for more information.",(e===K.MessageType.Error?D.showErrorMessage.bind(D):e===K.MessageType.Warning?D.showWarningMessage.bind(D):D.showInformationMessage.bind(D))(t)}logTrace(e,t){this.outputChannel.appendLine(`[Trace - ${new Date().toLocaleTimeString()}] ${e}`),t&&this.outputChannel.appendLine(this.data2String(t))}needsStart(){return this.$state===0||this.$state===4||this.$state===5}needsStop(){return this.$state===1||this.$state===3}activeConnection(){return this.$state===3&&this._connection!==void 0?this._connection:void 0}get hasPendingResponse(){var e;return(e=this._connection)==null?void 0:e.hasPendingResponse()}onReady(){return this._onStart?this._onStart:new Promise(e=>{let t=this.onDidChangeState(i=>{i.newState===2&&(t.dispose(),e())})})}get started(){return this.$state!=0}isRunning(){return this.$state===3}async _start(){if(this._disposed==="disposing"||this._disposed==="disposed")throw new Error("Client got disposed and can't be restarted.");if(this.$state===4)throw new Error("Client is currently stopping. Can only restart a full stopped client");if(this._onStart!==void 0)return this._onStart;this._rootPath=this.resolveRootPath();let[e,t,i]=this.createOnStartPromise();if(this._onStart=e,this._diagnostics===void 0){let r=this._clientOptions,o=r.diagnosticCollectionName?r.diagnosticCollectionName:this._id;r.disabledFeatures.includes("diagnostics")||(this._diagnostics=_.createDiagnosticCollection(o))}for(let[r,o]of this._notificationHandlers)this._pendingNotificationHandlers.has(r)||this._pendingNotificationHandlers.set(r,o);for(let[r,o]of this._requestHandlers)this._pendingRequestHandlers.has(r)||this._pendingRequestHandlers.set(r,o);for(let[r,o]of this._progressHandlers)this._pendingProgressHandlers.has(r)||this._pendingProgressHandlers.set(r,o);this.$state=1;try{let r=await this.createConnection();this.handleConnectionEvents(r),r.listen(),await this.initialize(r),t()}catch(r){this.$state=2,this.error(`${this._name} client: couldn't create connection to server.`,r,"force"),i(r)}return this._onStart}start(){let e=this._start();return e.dispose=()=>{this.needsStop()&&this.stop()},e}async $start(){if(this.$state===2)throw new Error("Previous start failed. Can't restart server.");await this._start();let e=this.activeConnection();if(e===void 0)throw new Error("Starting server failed");return e}handleConnectionEvents(e){e.onNotification(K.LogMessageNotification.type,t=>{switch(t.type){case K.MessageType.Error:this.error(t.message);break;case K.MessageType.Warning:this.warn(t.message);break;case K.MessageType.Info:this.info(t.message);break;default:this.outputChannel.appendLine(t.message)}}),e.onNotification(K.ShowMessageNotification.type,t=>{switch(t.type){case K.MessageType.Error:D.showErrorMessage(t.message);break;case K.MessageType.Warning:D.showWarningMessage(t.message);break;case K.MessageType.Info:D.showInformationMessage(t.message);break;default:D.showInformationMessage(t.message)}}),e.onNotification(K.TelemetryEventNotification.type,t=>{}),e.onRequest(K.ShowMessageRequest.type,t=>{let i;switch(t.type){case K.MessageType.Error:i=D.showErrorMessage.bind(D);break;case K.MessageType.Warning:i=D.showWarningMessage.bind(D);break;case K.MessageType.Info:i=D.showInformationMessage.bind(D);break;default:i=D.showInformationMessage.bind(D)}let r=t.actions||[];return i(t.message,...r).then(o=>o??null)}),e.onRequest(K.ShowDocumentRequest.type,async t=>{var o;let i=async s=>{try{if(s.external===!0||/^https?:\/\//.test(s.uri))return await v.openResource(s.uri),{success:!0};{let{selection:a,takeFocus:l}=s;return l===!1?await v.loadFile(s.uri):(await v.jumpTo(s.uri,a==null?void 0:a.start),Me(a.start,a.end)!=0&&await D.selectRange(a)),{success:!0}}}catch{return{success:!1}}},r=(o=this._clientOptions.middleware.window)==null?void 0:o.showDocument;return r!==void 0?r(t,i):i(t)})}createOnStartPromise(){let e,t;return[new Promise((r,o)=>{e=r,t=o}),e,t]}resolveRootPath(){if(this._clientOptions.workspaceFolder)return j.parse(this._clientOptions.workspaceFolder.uri).fsPath;let{ignoredRootPaths:e,rootPatterns:t,requireRootPattern:i}=this._clientOptions,r;if(Array.isArray(t)&&t.length>0){let s=v.getDocument(v.bufnr);if(s&&s.schema=="file"){let a=aF.default.dirname(j.parse(s.uri).fsPath);r=np(a,t,v.cwd)}else r=np(v.cwd,t);if(i&&!r)throw new Error("Required root pattern not resolved, server won't start.")}let o=r||v.rootPath||v.cwd;return ni(o,ZQ.default.homedir())||e.some(s=>ni(o,s))?(this.warn(`Ignored rootPath ${o} of client "${this._id}"`),null):o}initialize(e){let{initializationOptions:t,workspaceFolder:i,progressOnInitialization:r}=this._clientOptions;this.refreshTrace(e,!1);let o=this._rootPath,s={processId:process.pid,rootPath:o||null,rootUri:o?ad(j.file(o)):null,capabilities:this.computeClientCapabilities(),initializationOptions:Oi(t)?t():t,trace:K.Trace.toString(this._trace),workspaceFolders:i?[i]:null,locale:this.getLocale(),clientInfo:{name:"coc.nvim",version:v.version}};if(this.fillInitializeParams(s),r){let a=Se();s.workDoneToken=a,e.id=this._id;let l=new ud(e,a);return l.begin({title:`Initializing ${this.id}`,kind:"begin"}),this.doInitialize(e,s).then(u=>(l.done(),u),u=>{throw l.cancel(),u})}else return this.doInitialize(e,s)}async doInitialize(e,t){try{let i=await e.initialize(t);if(i.capabilities.positionEncoding!==void 0&&i.capabilities.positionEncoding!==K.PositionEncodingKind.UTF16)throw await e.shutdown(),await e.exit(),e.end(),e.dispose(),new Error(`Unsupported position encoding (${i.capabilities.positionEncoding}) received from server ${this.name}`);this._initializeResult=i,this.$state=3;let r;rw(i.capabilities.textDocumentSync)?i.capabilities.textDocumentSync===K.TextDocumentSyncKind.None?r={openClose:!1,change:K.TextDocumentSyncKind.None,save:void 0}:r={openClose:!0,change:i.capabilities.textDocumentSync,save:{includeText:!1}}:i.capabilities.textDocumentSync!==void 0&&i.capabilities.textDocumentSync!==null&&(r=i.capabilities.textDocumentSync),this._capabilities=Object.assign({},i.capabilities,{resolvedTextDocumentSync:r}),e.onNotification(K.PublishDiagnosticsNotification.type,o=>this.handleDiagnostics(o)),e.onRequest(K.RegistrationRequest.type,o=>this.handleRegistrationRequest(o)),e.onRequest("client/registerFeature",o=>this.handleRegistrationRequest(o)),e.onRequest(K.UnregistrationRequest.type,o=>this.handleUnregistrationRequest(o)),e.onRequest("client/unregisterFeature",o=>this.handleUnregistrationRequest(o)),e.onRequest(K.ApplyWorkspaceEditRequest.type,o=>this.handleApplyWorkspaceEdit(o));for(let[o,s]of this._pendingNotificationHandlers)this._notificationDisposables.set(o,e.onNotification(o,s));this._pendingNotificationHandlers.clear();for(let[o,s]of this._pendingRequestHandlers)this._requestDisposables.set(o,e.onRequest(o,s));this._pendingRequestHandlers.clear();for(let[o,s]of this._pendingProgressHandlers)this._progressDisposables.set(o,e.onProgress(s.type,o,s.handler));return this._pendingProgressHandlers.clear(),await e.sendNotification(K.InitializedNotification.type,{}),this.hookConfigurationChanged(e),this.initializeFeatures(e),i}catch(i){let r=o=>{o?this.initialize(e).catch(()=>{}):this.stop().catch(()=>{})};throw this._clientOptions.initializationFailedHandler?r(this._clientOptions.initializationFailedHandler(i)):i instanceof K.ResponseError&&i.data&&i.data.retry?(this._connection&&(this._connection.end(),this._connection.dispose(),this._connection=null),D.showErrorMessage(i.message,{title:"Retry",id:"retry"}).then(o=>{r(o&&o.id==="retry")})):(i&&i.message&&D.showErrorMessage(i.message),this.error("Server initialization failed.",i),zS.error(`Server ${this.id} initialization failed.`,i),r(!1)),i}}stop(e=2e3){return this.shutdown("stop",e)}async shutdown(e,t){if(this.$state===5||this.$state===0)return;if(this.$state===4)return this._onStop;let i=this.activeConnection();if(i===void 0||this.$state!==3&&this.$state!==1)throw new Error(`Client is not running and can't be stopped. It's current state is: ${this.$state}`);this._initializeResult=void 0,this.$state=4,this.cleanUp(e);let r,o=new Promise(a=>{r=setTimeout(a,t)}),s=(async a=>(await a.shutdown(),await a.exit(),a))(i);return this._onStop=Promise.race([o,s]).then(a=>{if(r&&clearTimeout(r),a!==void 0)a.end(),a.dispose();else throw this.error("Stopping server timed out",void 0),new Error("Stopping the server timed out")},a=>{throw this.error("Stopping server failed",a),a}).finally(()=>{this.$state=5,e==="stop"&&this.cleanUpChannel(),this._onStart=void 0,this._onStop=void 0,this._connection=void 0,this._ignoredRegistrations.clear()})}dispose(e=2e3){if(!this._disposed)try{return this._disposed="disposing",this.needsStop()?this.stop(e):void 0}finally{this._disposed="disposed"}}cleanUp(e){this._listeners&&(this._listeners.forEach(t=>t.dispose()),this._listeners=[]),this._syncedDocuments&&this._syncedDocuments.clear();for(let t of this._features.values())typeof t.dispose=="function"?t.dispose():zS.error("Feature can't be disposed",t);e==="stop"&&this._diagnostics&&(this._diagnostics.dispose(),this._diagnostics=void 0)}cleanUpChannel(){this._outputChannel&&(this._outputChannel.dispose(),this._outputChannel=void 0)}async forceDocumentSync(){let e=Array.from(this._syncedDocuments.values());await Promise.all(e.map(t=>{let i=v.getDocument(t.uri);return i?i.synchronize():null}))}handleDiagnostics(e){let{uri:t,diagnostics:i,version:r}=e;if(typeof r=="number"){let s=v.getDocument(t);if(!s||s.version!=r)return}let o=this.clientOptions.middleware.handleDiagnostics;o?o(t,i,(s,a)=>this.setDiagnostics(s,a)):this.setDiagnostics(t,i)}async createConnection(){let e=(r,o,s)=>{this.handleConnectionError(r,o,s)},t=()=>{this.handleConnectionClosed()},i=await this.createMessageTransports(this._clientOptions.stdioEncoding??"utf8");return this._connection=ZDe(i.reader,i.writer,e,t,this._clientOptions.connectionOptions),this._connection}handleConnectionClosed(){if(this.$state===5){zS.debug(`client ${this._id} normal closed`);return}try{this._connection&&this._connection.dispose()}catch{}let e=1;if(this.$state!==4)try{e=this._clientOptions.errorHandler.closed()}catch{}this._connection=void 0,e===1?(this.error("Connection to server got closed. Server will not be restarted.",void 0,"force"),this.cleanUp("stop"),this.$state===1?this.$state=2:this.$state=5,this._onStop=Promise.resolve(),this._onStart=void 0):e===2&&(this.info("Connection to server got closed. Server will restart."),this.cleanUp("restart"),this.$state=0,this._onStop=Promise.resolve(),this._onStart=void 0,this.start().catch(t=>this.error("Restarting server failed",t,"force")))}checkState(){if(this.$state===2||this.$state===4||this.$state===5)throw new K.ResponseError(K.ErrorCodes.ConnectionInactive,"Client is not running")}handleConnectionError(e,t,i){this._clientOptions.errorHandler.error(e,t,i)===2&&(this.error(`Client ${this._name}: connection to server is erroring. Shutting down server.`,void 0,"force"),this.stop().catch(o=>{this.error("Stopping server failed",o)}))}hookConfigurationChanged(e){v.onDidChangeConfiguration(t=>{t.affectsConfiguration(this._id)&&this.refreshTrace(e,!0)},null,this._listeners)}refreshTrace(e,t=!1){let i=v.getConfiguration(this._id,this.clientOptions.workspaceFolder),r=K.Trace.Off,o=K.TraceFormat.Text;if(i){let s=i.get("trace.server","off");typeof s=="string"?r=K.Trace.fromString(s):(r=K.Trace.fromString(i.get("trace.server.verbosity","off")),o=K.TraceFormat.fromString(i.get("trace.server.format","text")))}t&&this._trace==r&&this._traceFormat==o||(this._trace=r,this._traceFormat=o,e.trace(this._trace,this._tracer,{sendNotification:t,traceFormat:this._traceFormat}).catch(s=>{this.error("Updating trace failed with error",s)}))}registerFeatures(e){for(let t of e)this.registerFeature(t,"")}registerFeature(e,t){let{disabledFeatures:i}=this._clientOptions;if(!(i.length>0&&i.includes(t))&&(this._features.push(e),GC.is(e))){let r=e.registrationType;this._dynamicFeatures.set(r.method,e)}}getStaticFeature(e){return this._features.find(t=>XC.is(t)&&t.method==e)}getFeature(e){return this._dynamicFeatures.get(e)}registerBuiltinFeatures(){this.registerFeature(new Ru(this),"configuration"),this.registerFeature(new MS(this,this._syncedDocuments),"document"),this.registerFeature(new AS(this),"document"),this.registerFeature(new OS(this,this._syncedDocuments),"document"),this.registerFeature(new NS(this),"willSave"),this.registerFeature(new HS(this),"willSaveWaitUntil"),this.registerFeature(new qS(this),"didSave"),this.registerFeature(new bS(this),"fileSystemWatcher"),this.registerFeature(new tS(this),"completion"),this.registerFeature(new CS(this),"hover"),this.registerFeature(new jS(this),"signatureHelp"),this.registerFeature(new _S(this),"references"),this.registerFeature(new rS(this),"definition"),this.registerFeature(new sS(this),"documentHighlight"),this.registerFeature(new lS(this),"documentSymbol"),this.registerFeature(new QC(this),"codeAction"),this.registerFeature(new VC(this),"codeLens"),this.registerFeature(new vS(this),"documentFormatting"),this.registerFeature(new wS(this),"documentRangeFormatting"),this.registerFeature(new xS(this),"documentOnTypeFormatting"),this.registerFeature(new LS(this),"rename"),this.registerFeature(new aS(this),"documentLink"),this.registerFeature(new uS(this),"executeCommand"),this.registerFeature(new iS(this),"pullConfiguration"),this.registerFeature(new BS(this),"typeDefinition"),this.registerFeature(new SS(this),"implementation"),this.registerFeature(new nS(this),"declaration"),this.registerFeature(new eS(this),"colorProvider"),this.registerFeature(new yS(this),"foldingRange"),this.registerFeature(new IS(this),"selectionRange"),this.registerFeature(new KC(this),"callHierarchy"),this.registerFeature(new RS(this),"progress"),this.registerFeature(new kS(this),"linkedEditing"),this.registerFeature(new cS(this),"fileEvents"),this.registerFeature(new hS(this),"fileEvents"),this.registerFeature(new dS(this),"fileEvents"),this.registerFeature(new gS(this),"fileEvents"),this.registerFeature(new pS(this),"fileEvents"),this.registerFeature(new fS(this),"fileEvents"),this.registerFeature(new FS(this),"semanticTokens"),this.registerFeature(new DS(this),"inlayHint"),this.registerFeature(new TS(this),"inlineValue"),this.registerFeature(new oS(this),"pullDiagnostic"),this.registerFeature(new WS(this),"typeHierarchy"),this.registerFeature(new GS(this),"workspaceSymbol"),this.clientOptions.workspaceFolder===void 0&&this.registerFeature(new XS(this),"workspaceFolders")}registerProposedFeatures(){this.registerFeatures(JDe.createAll(this))}fillInitializeParams(e){for(let t of this._features)Oi(t.fillInitializeParams)&&t.fillInitializeParams(e)}computeClientCapabilities(){let e={};Y(e,"workspace").applyEdit=!0;let t=Y(Y(e,"workspace"),"workspaceEdit");t.documentChanges=!0,t.resourceOperations=[K.ResourceOperationKind.Create,K.ResourceOperationKind.Rename,K.ResourceOperationKind.Delete],t.failureHandling=K.FailureHandlingKind.Undo,t.normalizesLineEndings=!0,t.changeAnnotationSupport={groupsOnLabel:!1};let i=Y(Y(e,"textDocument"),"publishDiagnostics");i.relatedInformation=!0,i.versionSupport=!0,i.tagSupport={valueSet:[K.DiagnosticTag.Unnecessary,K.DiagnosticTag.Deprecated]},i.codeDescriptionSupport=!0,i.dataSupport=!0;let r=Y(e,"window"),o=Y(r,"showMessage");o.messageActionItem={additionalPropertiesSupport:!0};let s=Y(r,"showDocument");s.support=!0;let a=Y(e,"general");a.regularExpressions={engine:"ECMAScript",version:"ES2020"},a.markdown={parser:"marked",version:"4.0.10"},a.positionEncodings=["utf-16"],a.staleRequestSupport={cancel:!0,retryOnContentModified:Array.from(KS.RequestsToCancelOnContentModified)};for(let l of this._features)l.fillClientCapabilities(e);return e}initializeFeatures(e){let t=this._clientOptions.documentSelector;for(let i of this._features)Oi(i.preInitialize)&&i.preInitialize(this._capabilities,t);for(let i of this._features)i.initialize(this._capabilities,t)}handleRegistrationRequest(e){if(this.clientOptions.disableDynamicRegister)return Promise.resolve();if(!this.isRunning()){for(let t of e.registrations)this._ignoredRegistrations.add(t.id);return}return new Promise((t,i)=>{for(let r of e.registrations){let o=this._dynamicFeatures.get(r.method);if(!o){i(new Error(`No feature implementation for ${r.method} found. Registration failed.`));return}let s=r.registerOptions??{};s.documentSelector=s.documentSelector??this._clientOptions.documentSelector;let a={id:r.id,registerOptions:s};try{o.register(a)}catch(l){i(l);return}}t()})}handleUnregistrationRequest(e){return new Promise((t,i)=>{for(let r of e.unregisterations){if(this._ignoredRegistrations.has(r.id))continue;let o=this._dynamicFeatures.get(r.method);if(!o){i(new Error(`No feature implementation for ${r.method} found. Unregistration failed.`));return}o.unregister(r.id)}t()})}setDiagnostics(e,t){var r;if(!this._diagnostics)return;if(this.clientOptions.separateDiagnostics&&t.length>0){let o=new Map;o.set(e,t);for(let s of t){if((r=s.relatedInformation)!=null&&r.length){let a=`${s.message}
|
||
|
||
Related diagnostics:
|
||
`;for(let l of s.relatedInformation){let u=aF.default.basename(j.parse(l.location.uri).fsPath),c=l.location.range.start.line;a=`${a}
|
||
${u}(line ${c+1}): ${l.message}`;let h=o.get(l.location.uri)||[];h.push(K.Diagnostic.create(l.location.range,l.message,K.DiagnosticSeverity.Hint,s.code,s.source)),o.set(l.location.uri,h)}s.message=a}this._diagnostics.set(Array.from(o))}}else this._diagnostics.set(e,t)}handleApplyWorkspaceEdit(e){let t=e.edit,i=new Map;v.textDocuments.forEach(o=>i.set(o.uri.toString(),o));let r=!1;if(t.documentChanges){for(let o of t.documentChanges)if(K.TextDocumentEdit.is(o)&&o.textDocument.version&&o.textDocument.version>=0){let s=i.get(o.textDocument.uri);if(s&&s.version!==o.textDocument.version){r=!0;break}}}return r?Promise.resolve({applied:!1}):v.applyEdit(e.edit).then(o=>({applied:o}))}getLocale(){let e=process.env.LANG;return e?e.split(".")[0]:"en"}handleFailedRequest(e,t,i,r){if(t&&t.isCancellationRequested)return r;if(i instanceof K.ResponseError){if(i.code===K.ErrorCodes.PendingResponseRejected||i.code===K.ErrorCodes.ConnectionInactive)return r;if(i.code===K.LSPErrorCodes.RequestCancelled||i.code===K.LSPErrorCodes.ServerCancelled)throw i.data!=null?new ku(i.data):new ii;if(i.code===K.LSPErrorCodes.ContentModified){if(KS.RequestsToCancelOnContentModified.has(e.method))throw new ii;return r}}throw this.error(`Request ${e.method} failed.`,i),i}logFailedRequest(){}},Am=KS;Am.RequestsToCancelOnContentModified=new Set([K.InlayHintRequest.method,K.SemanticTokensRequest.method,K.SemanticTokensRangeRequest.method,K.SemanticTokensDeltaRequest.method]);JDe={createAll:n=>[]}});function GDe(n,e){if(hd.default.isAbsolute(n))return n;let t=zDe();if(t!==void 0){let i=hd.default.join(t,n);if(eD.default.existsSync(i))return i}if(e!==void 0){let i=hd.default.join(e,n);if(eD.default.existsSync(i))return i}return n}function zDe(){let n=v.workspaceFolders;return!n||n.length===0?void 0:n[0].uri}function KDe(n){let e=n&&n.cwd;return e&&!hd.default.isAbsolute(e)&&(e=hd.default.join(v.cwd,e)),e||(e=v.cwd),new Promise(t=>{eD.default.lstat(e,(i,r)=>{t(!i&&r.isDirectory()?e:void 0)})})}function QDe(n){return n?n.some(e=>UDe.some(t=>e.startsWith(t))||XDe.some(t=>e===t)):!1}var Nm,eD,hd,si,$De,UDe,XDe,cF,nD,tD,hF,dF,gF,dd,iD,pF=k(()=>{"use strict";Nm=S(require("child_process")),eD=S(require("fs")),hd=S(require("path")),si=S(ZK());re();wi();$K();ie();uF();uF();$De=q()("language-client-index"),UDe=["--debug=","--debug-brk=","--inspect=","--inspect-brk="],XDe=["--debug","--debug-brk","--inspect","--inspect-brk"];(e=>{function n(t){return ti(t.command)}e.is=n})(cF||(cF={}));nD=(r=>(r[r.stdio=0]="stdio",r[r.ipc=1]="ipc",r[r.pipe=2]="pipe",r[r.socket=3]="socket",r))(nD||{});(e=>{function n(t){let i=t;return i&&i.kind===3&&rw(i.port)}e.isSocket=n})(tD||(tD={}));(e=>{function n(t){return ti(t.module)}e.is=n})(hF||(hF={}));(e=>{function n(t){let i=t;return i&&i.writer!==void 0&&i.reader!==void 0}e.is=n})(dF||(dF={}));(e=>{function n(t){let i=t;return i&&i.process!==void 0&&typeof i.detached=="boolean"}e.is=n})(gF||(gF={}));dd=class extends Am{constructor(t,i,r,o,s){let a,l,u,c,h;ti(i)?(a=t,l=i,u=r,c=o,h=!!s):(a=t.toLowerCase(),l=t,u=i,c=r,h=o);super(a,l,c);this._serverOptions=u,this._forceDebug=!!h,this._isInDebugMode=!!h}stop(t=2e3){return super.stop(t).then(()=>{if(this._serverProcess){let i=this._serverProcess;this._serverProcess=void 0,(this._isDetached===void 0||!this._isDetached)&&this.checkProcessDied(i),this._isDetached=void 0}})}get serviceState(){return this._state}checkProcessDied(t){!t||t.pid===void 0||setTimeout(()=>{try{process.kill(t.pid,0),JK(t)}catch{}},2e3)}handleConnectionClosed(){this._serverProcess=void 0,super.handleConnectionClosed()}get isInDebugMode(){return this._isInDebugMode}async restart(){await this.stop(),this.isInDebugMode?(await new Promise(t=>setTimeout(t,1e3)),await this._start()):await this._start()}createMessageTransports(t){function i(u,c){if(!u&&!c)return;let h=Object.create(null);return Object.keys(process.env).forEach(d=>h[d]=process.env[d]),u&&Object.keys(u).forEach(d=>h[d]=u[d]),h}function r(u){if(u.stdin===null||u.stdout===null||u.stderr===null)throw new Error("Process created without stdio streams")}let o=this._serverOptions,s=this.logMessage.bind(this);if(Oi(o))return o().then(u=>{if(cd.is(u))return this._isDetached=!!u.detached,u;if(dF.is(u))return this._isDetached=!!u.detached,{reader:new si.StreamMessageReader(u.reader),writer:new si.StreamMessageWriter(u.writer)};{let c;return gF.is(u)?(c=u.process,this._isDetached=u.detached):(c=u,this._isDetached=!1),c.stderr.on("data",s),{reader:new si.StreamMessageReader(c.stdout),writer:new si.StreamMessageWriter(c.stdin)}}});let a,l=o;return l.run||l.debug?typeof v8debug=="object"||this._forceDebug||QDe(process.execArgv)?a=l.debug:a=l.run:a=o,KDe(a.options).then(u=>{if(hF.is(a)&&a.module){let c=a,h=c.transport||0,d,g=c.runtime?GDe(c.runtime,u):void 0;return new Promise((p,f)=>{let m=c.args&&c.args.slice()||[];h===1?m.push("--node-ipc"):h===0?m.push("--stdio"):h===2?(d=(0,si.generateRandomPipeName)(),m.push(`--pipe=${d}`)):tD.isSocket(h)&&m.push(`--socket=${h.port}`),m.push(`--clientProcessId=${process.pid}`);let b=c.options||Object.create(null);if(b.env=i(b.env,!0),b.execArgv=b.execArgv||[],b.cwd=u,b.silent=!0,g&&(b.execPath=g),h===1||h===0){let w=Nm.default.fork(c.module,m||[],b);r(w),this._serverProcess=w,w.stderr.on("data",s),h===1?(w.stdout.on("data",s),p({reader:new si.IPCMessageReader(this._serverProcess),writer:new si.IPCMessageWriter(this._serverProcess)})):p({reader:new si.StreamMessageReader(w.stdout),writer:new si.StreamMessageWriter(w.stdin)})}else{if(h===2)return(0,si.createClientPipeTransport)(d).then(w=>{let x=Nm.default.fork(c.module,m||[],b);r(x),this._serverProcess=x,x.stderr.on("data",s),x.stdout.on("data",s),w.onConnected().then(T=>{p({reader:T[0],writer:T[1]})})});if(tD.isSocket(h))return(0,si.createClientSocketTransport)(h.port).then(w=>{let x=Nm.default.fork(c.module,m||[],b);r(x),this._serverProcess=x,x.stderr.on("data",s),x.stdout.on("data",s),w.onConnected().then(T=>{p({reader:T[0],writer:T[1]})})})}})}else if(cF.is(a)&&a.command){let c=a,h=c.args||[],d=Object.assign({},c.options);d.env=d.env?Object.assign({},process.env,d.env):process.env,d.cwd=d.cwd||u;let g=v.expand(a.command),p=Nm.default.spawn(g,h,d);return p.on("error",f=>{this.error(f.message,f)}),!p||!p.pid?Promise.reject(new Error(`Launching server "${this.id}" using command ${c.command} failed.`)):($De.info(`Language server "${this.id}" started with ${p.pid}`),p.on("exit",f=>{f!=0&&this.error(`${c.command} exited with code: ${f}`)}),p.stderr.on("data",f=>this.outputChannel.append(ti(f)?f:f.toString(t))),this._serverProcess=p,this._isDetached=!!d.detached,Promise.resolve({reader:new si.StreamMessageReader(p.stdout),writer:new si.StreamMessageWriter(p.stdin)}))}return Promise.reject(`Unsupported server configuration ${JSON.stringify(o,null,2)}`)})}logMessage(t){let i=this.clientOptions.stdioEncoding;this.outputChannel.append(ti(t)?t:t.toString(i))}},iD=class{constructor(e,t){this._client=e;this._setting=t;this._listeners=[]}start(){return v.onDidChangeConfiguration(e=>{e.affectsConfiguration(this._setting)&&this.onDidChangeConfiguration()},null,this._listeners),this.onDidChangeConfiguration(),{dispose:()=>{U(this._listeners),this._client.dispose()}}}onDidChangeConfiguration(){let e=this._setting.indexOf("."),t=e>=0?this._setting.substr(0,e):this._setting,i=e>=0?this._setting.substr(e+1):void 0,r=i?v.getConfiguration(t).get(i,!0):v.getConfiguration(t);r&&this._client.needsStart()?this._client.start().catch(o=>this._client.error("Start failed after configuration change",o,"force")):!r&&this._client.needsStop()&&this._client.stop().catch(o=>this._client.error("Stop failed after configuration change",o,"force"))}}});function VDe(n){let e=n.map(t=>typeof t=="string"?t:t.language);return e=e.filter(t=>typeof t=="string"),Array.from(new Set(e))}function eTe(n,e,t,i){let{command:r,module:o,port:s,args:a,filetypes:l}=t;if(a=a||[],!l)return D.showErrorMessage(`Wrong configuration of LS "${e}", filetypes not found`),null;if(!r&&!o&&!s)return D.showErrorMessage(`Wrong configuration of LS "${e}", no command or module specified.`),null;let u;if(o){if(o=v.expand(o),!UQ.default.existsSync(o))return D.showErrorMessage(`Module file "${o}" not found for LS "${e}"`),null;u={module:o,runtime:t.runtime??process.execPath,args:a,transport:nTe(t),options:rTe(t)}}else r?u={command:r,args:a,options:oTe(t)}:u=()=>new Promise((p,f)=>{let m=new XQ.default.Socket,b=t.host??"127.0.0.1";ju.info(`languageserver "${n}" connecting to ${b}:${s}`),m.connect(s,b,()=>{p({reader:m,writer:m})}),m.on("error",w=>{f(new Error(`Connection error for ${n}: ${w.message}`))})});let c=Array.from(t.disabledFeatures||[]);for(let p of["disableWorkspaceFolders","disableCompletion","disableDiagnostics"])if(t[p]===!0){ju.warn(`Language server config "${p}" is deprecated, use "disabledFeatures" instead.`);let f=p.slice(7);c.push(f[0].toLowerCase()+f.slice(1))}let h=!!t.disableSnippetCompletion,d=t.ignoredRootPaths??[];return[{workspaceFolder:i==null?void 0:{name:GQ.default.basename(i.fsPath),uri:i.toString()},rootPatterns:t.rootPatterns,requireRootPattern:t.requireRootPattern,ignoredRootPaths:d.map(p=>v.expand(p)),disableSnippetCompletion:h,disableDynamicRegister:!!t.disableDynamicRegister,disabledFeatures:c,formatterPriority:t.formatterPriority,documentSelector:zQ(t.filetypes,t.additionalSchemes),revealOutputChannelOn:iTe(t.revealOutputChannelOn),synchronize:{configurationSection:`${n}.settings`},diagnosticCollectionName:e,outputChannelName:n,stdioEncoding:t.stdioEncoding,progressOnInitialization:t.progressOnInitialization===!0,initializationOptions:t.initializationOptions??{}},u]}function tTe(n,e){let t=[],i=["module","command","transport"];for(let r of i){let o=e[r];o&&typeof o!="string"&&t.push(`"${r}" field of languageserver ${n} should be string`)}return e.transportPort!=null&&typeof e.transportPort!="number"&&t.push(`"transportPort" field of languageserver ${n} should be number`),(!Array.isArray(e.filetypes)||!e.filetypes.every(r=>typeof r=="string"))&&t.push(`"filetypes" field of languageserver ${n} should be array of string`),e.additionalSchemes&&(!Array.isArray(e.additionalSchemes)||e.additionalSchemes.some(r=>typeof r!="string"))&&t.push(`"additionalSchemes" field of languageserver ${n} should be array of string`),t.length?(D.showErrorMessage(t.join(`
|
||
`)),!1):!0}function iTe(n){switch(n){case"info":return 1;case"warn":return 2;case"error":return 3;case"never":return 4;default:return 4}}function zQ(n,e){let t=[],i=["file","untitled"].concat(e||[]);return n?(n.forEach(r=>{t.push(...i.map(o=>({language:r,scheme:o})))}),t):i.map(r=>({scheme:r}))}function nTe(n){let{transport:e,transportPort:t}=n;return!e||e=="ipc"?1:e=="stdio"?0:e=="pipe"?2:{kind:3,port:t}}function rTe(n){return{cwd:n.cwd,execArgv:n.execArgv??[],env:n.env??void 0}}function oTe(n){return{cwd:n.cwd,detached:!!n.detached,shell:!!n.shell,env:n.env??void 0}}function JQ(n){switch(n){case 2:return 3;case 3:return 1;case 1:return 5;default:return}}function $Q(n){switch(n){case 2:return"running";case 3:return"starting";case 1:return"stopped";default:return"unknown"}}function sTe(n){switch(n){case 0:return"init";case 3:return"running";case 1:return"starting";case 2:return"startFailed";case 4:return"stopping";case 5:return"stopped";default:return"unknown"}}var UQ,XQ,GQ,Mu,ju,fF,yn,Hm=k(()=>{"use strict";UQ=S(require("fs")),XQ=S(require("net")),GQ=S(require("path")),Mu=S(W());Pe();pF();dn();re();xe();ie();ju=q()("services"),fF=class{constructor(){this.registered=new Map;this.disposables=[];this.pendingNotifications=new Map}init(){v.onDidOpenTextDocument(i=>{this.start(i)},null,this.disposables);let e=i=>{for(let r of i)this.registerClientsFromFolder(r)};v.onDidChangeWorkspaceFolders(i=>{e(i.added)},null,this.disposables);let t=v.getConfiguration(void 0,null).get("languageserver",{});this.registerClientsByConfig(t),e(v.workspaceFolders),this.registLanguageClient=this.registerLanguageClient}registerClientsFromFolder(e){let t=j.parse(e.uri),r=v.getConfiguration(void 0,t).inspect("languageserver").workspaceFolderValue;r&&this.registerClientsByConfig(r,t)}regist(e){return this.register(e)}register(e){let{id:t}=e;if(!this.registered.get(t))return this.registered.set(t,e),ju.info(`registered service "${t}"`),this.shouldStart(e)&&e.start(),e.onServiceReady(()=>{ju.info(`service ${t} started`)},null,this.disposables),Mu.Disposable.create(()=>{!this.registered.has(t)||(e.dispose(),this.registered.delete(t))})}getService(e){let t=this.registered.get(e);return t||(t=this.registered.get(`languageserver.${e}`)),t}shouldStart(e){if(e.state!=0)return!1;let t=e.selector;for(let i of v.documents)if(v.match(t,i.textDocument))return!0;return!1}async start(e){let t=[];for(let i of this.registered.values())i.state==0&&v.match(i.selector,e)>0&&t.push(i);await Promise.allSettled(t.map(i=>i.start()))}stop(e){let t=this.registered.get(e);if(t)return Promise.resolve(t.stop())}async toggle(e){let t=this.registered.get(e);if(!t)throw new Error(`Service ${e} not found`);let{state:i}=t;i==3?await Promise.resolve(t.stop()):i==0||i==2?await t.start():i==5&&await t.restart()}getServiceStats(){let e=[];for(let[t,i]of this.registered)e.push({id:t,languageIds:VDe(i.selector),state:sTe(i.state)});return e}registerClientsByConfig(e,t){for(let i of Object.keys(e)){let r=e[i];!tTe(i,r)||this.registerLanguageClient(i,r,t)}}async getLanguageClient(e){let t=this.getService(e);if(t||await Nt(100),t=this.getService(e),!t||!t.client)throw new Error(`Language server ${e} not found`);return t.client}async sendNotification(e,t,i){let r=await this.getLanguageClient(e);await Promise.resolve(r.sendNotification(t,i))}async sendRequest(e,t,i,r){let o=await this.getLanguageClient(e);return r=r??Mu.CancellationToken.None,await Promise.resolve(o.sendRequest(t,i,r))}async registerNotification(e,t){let i=this.getService(e);i&&i.client&&i.client.onNotification(t,async o=>{this.sendNotificationVim(e,t,o)});let r=this.pendingNotifications.get(e)??[];r.push({id:e,method:t}),this.pendingNotifications.set(e,r)}getRegisteredNotifications(e){return e=e.startsWith("languageserver")?e.slice(15):e,this.pendingNotifications.get(e)??[]}sendNotificationVim(e,t,i){v.nvim.call("coc#do_notify",[e,t,i],!0)}registLanguageClient(e,t,i){return typeof e=="string"?this.registerLanguageClient(e,t,i):this.registerLanguageClient(e)}registerLanguageClient(e,t,i){let r=typeof e=="string"?`languageserver.${e}`:e.id,o=[],s=new Mu.Emitter,a=typeof e=="string"?null:e;if(this.registered.has(r))return Mu.Disposable.create(()=>{});a&&typeof a.dispose=="function"&&o.push(a);let l=!1,u={id:r,client:a,name:typeof e=="string"?e:e.name,selector:typeof e=="string"?zQ(t.filetypes,t.additionalSchemes):e.clientOptions.documentSelector,state:a&&a.state===2?3:0,onServiceReady:s.event,start:async()=>{if(!l){if(typeof e=="string"&&!a){let c=v.getConfiguration(void 0,i).get(`languageserver.${e}`,{}),h=eTe(r,e,c,i);if(!h||c.enable===!1)return;a=new dd(r,e,h[1],h[0]),u.selector=h[0].documentSelector,u.client=a,o.push(a)}l=!0;for(let c of this.getRegisteredNotifications(r))u.client.onNotification(c.method,async h=>{this.sendNotificationVim(c.id,c.method,h)});a.onDidChangeState(c=>{let{oldState:h,newState:d}=c;u.state=JQ(d);let g=$Q(h),p=$Q(d);ju.info(`LanguageClient ${a.name} state change: ${g} => ${p}`)},null,o)}try{a.needsStart()?(u.state=1,ju.debug(`starting service: ${r}`),await a.start(),s.fire(void 0)):u.state=JQ(a.state)}catch(c){D.showErrorMessage(`Server ${r} failed to start: ${c}`),ju.error(`Server ${r} failed to start:`,c),u.state=2}},dispose:async()=>{s.dispose(),U(o)},stop:async()=>{!a||!a.needsStop()||await Promise.resolve(a.stop())},restart:async()=>{a?(u.state=1,await a.restart()):await u.start()}};return this.register(u)}dispose(){U(this.disposables);for(let e of this.registered.values())e.dispose();this.registered.clear()}};yn=new fF});var KQ,Ou,Au,rD=k(()=>{"use strict";ie();xe();KQ=require("events"),Ou=["<esc>","<space>","<tab>","<s-tab>","<bs>","<right>","<left>","<up>","<down>","<home>","<end>","<cr>","<FocusGained>","<FocusLost>","<ScrollWheelUp>","<ScrollWheelDown>","<LeftMouse>","<LeftDrag>","<LeftRelease>","<2-LeftMouse>","<C-a>","<C-b>","<C-c>","<C-d>","<C-e>","<C-f>","<C-g>","<C-h>","<C-i>","<C-j>","<C-k>","<C-l>","<C-m>","<C-n>","<C-o>","<C-p>","<C-q>","<C-r>","<C-s>","<C-t>","<C-u>","<C-v>","<C-w>","<C-x>","<C-y>","<C-z>","<A-a>","<A-b>","<A-c>","<A-d>","<A-e>","<A-f>","<A-g>","<A-h>","<A-i>","<A-j>","<A-k>","<A-l>","<A-m>","<A-n>","<A-o>","<A-p>","<A-q>","<A-r>","<A-s>","<A-t>","<A-u>","<A-v>","<A-w>","<A-x>","<A-y>","<A-z>"],Au=class extends KQ.EventEmitter{constructor(){super();this.configuration=v.getConfiguration("list"),this.disposable=v.onDidChangeConfiguration(t=>{t.affectsConfiguration("list")&&(this.configuration=v.getConfiguration("list"),this.emit("change"))})}get smartcase(){return this.get("smartCase",!1)}get(t,i){return this.configuration.get(t,i)}get previousKey(){return this.fixKey(this.configuration.get("previousKeymap","<C-j>"))}get nextKey(){return this.fixKey(this.configuration.get("nextKeymap","<C-k>"))}dispose(){this.disposable.dispose(),this.removeAllListeners()}fixKey(t){if(Ou.includes(t))return t;let i=Ou.find(r=>r.toLowerCase()==t.toLowerCase());return i||(D.showErrorMessage(`Configured key "${t}" not supported.`),null)}}});var aVe,qm,QQ=k(()=>{"use strict";xe();rD();aVe=q()("list-mappings"),qm=class{constructor(e,t,i){this.manager=e;this.nvim=t;this.config=i;this.insertMappings=new Map;this.normalMappings=new Map;this.userInsertMappings=new Map;this.userNormalMappings=new Map;this.actions=new Map;let{prompt:r}=e;this.addAction("do:switch",async()=>{await e.switchMatcher()}),this.addAction("do:selectall",async()=>{var o;await((o=e.session)==null?void 0:o.ui.selectAll())}),this.addAction("do:help",async()=>{var o;await((o=e.session)==null?void 0:o.showHelp())}),this.addAction("do:refresh",async()=>{var o;await((o=e.session)==null?void 0:o.reloadItems())}),this.addAction("do:exit",async()=>{await e.cancel()}),this.addAction("do:stop",()=>{e.stop()}),this.addAction("do:cancel",async()=>{await e.cancel(!1)}),this.addAction("do:toggle",async()=>{var o;await((o=e.session)==null?void 0:o.ui.toggleSelection())}),this.addAction("do:jumpback",()=>{var o;(o=e.session)==null||o.jumpBack()}),this.addAction("do:previous",async()=>{await this.navigate(!0)}),this.addAction("do:next",async()=>{await this.navigate(!1)}),this.addAction("do:defaultaction",async()=>{await e.doAction()}),this.addAction("do:chooseaction",async()=>{await e.chooseAction()}),this.addAction("do:togglemode",()=>{e.toggleMode()}),this.addAction("do:previewtoggle",async()=>{await e.togglePreview()}),this.addAction("do:previewup",()=>{this.scrollPreview("up")}),this.addAction("do:previewdown",()=>{this.scrollPreview("down")}),this.addAction("do:command",async()=>{await e.cancel(!1),await t.eval('feedkeys(":")')}),this.addAction("prompt:previous",()=>{var o;(o=e.session)==null||o.history.previous()}),this.addAction("prompt:next",()=>{var o;(o=e.session)==null||o.history.next()}),this.addAction("prompt:start",()=>{r.moveToStart()}),this.addAction("prompt:end",()=>{r.moveToEnd()}),this.addAction("prompt:left",()=>{r.moveLeft()}),this.addAction("prompt:right",()=>{r.moveRight()}),this.addAction("prompt:deleteforward",()=>{r.onBackspace()}),this.addAction("prompt:deletebackward",()=>{r.removeNext()}),this.addAction("prompt:removetail",()=>{r.removeTail()}),this.addAction("prompt:removeahead",()=>{r.removeAhead()}),this.addAction("prompt:removeword",()=>{r.removeWord()}),this.addAction("prompt:insertregister",()=>{r.insertRegister()}),this.addAction("prompt:paste",async()=>{await r.paste()}),this.addAction("eval",async o=>{await r.eval(o)}),this.addAction("command",async o=>{await e.command(o)}),this.addAction("action",async o=>{await e.doAction(o)}),this.addAction("feedkeys",async o=>{await e.feedkeys(o)}),this.addAction("normal",async o=>{await e.normal(o,!1)}),this.addAction("normal!",async o=>{await e.normal(o,!0)}),this.addAction("call",async o=>{await e.call(o)}),this.addAction("expr",async o=>{let s=await e.call(o);s&&await e.doAction(s)}),this.addKeyMapping("insert","<C-s>","do:switch"),this.addKeyMapping("insert","<C-n>","prompt:next"),this.addKeyMapping("insert","<C-p>","prompt:previous"),this.addKeyMapping("insert","<C-v>","prompt:paste"),this.addKeyMapping("insert",["<C-m>","<cr>"],"do:defaultaction"),this.addKeyMapping("insert",["<tab>","<C-i>"," "],"do:chooseaction"),this.addKeyMapping("insert","<C-o>","do:togglemode"),this.addKeyMapping("insert","<C-c>","do:stop"),this.addKeyMapping("insert","<C-l>","do:refresh"),this.addKeyMapping("insert","<left>","prompt:left"),this.addKeyMapping("insert","<right>","prompt:right"),this.addKeyMapping("insert",["<end>","<C-e>"],"prompt:end"),this.addKeyMapping("insert",["<home>","<C-a>"],"prompt:start"),this.addKeyMapping("insert",["<C-h>","<bs>","<backspace>"],"prompt:deleteforward"),this.addKeyMapping("insert","<C-w>","prompt:removeword"),this.addKeyMapping("insert","<C-u>","prompt:removeahead"),this.addKeyMapping("insert","<C-r>","prompt:insertregister"),this.addKeyMapping("normal","t","action:tabe"),this.addKeyMapping("normal","s","action:split"),this.addKeyMapping("normal","d","action:drop"),this.addKeyMapping("normal",["<cr>","<C-m>","\r"],"do:defaultaction"),this.addKeyMapping("normal","<C-a>","do:selectall"),this.addKeyMapping("normal"," ","do:toggle"),this.addKeyMapping("normal","p","do:previewtoggle"),this.addKeyMapping("normal",["<tab>"," ","<C-i>"],"do:chooseaction"),this.addKeyMapping("normal","<C-c>","do:stop"),this.addKeyMapping("normal","<C-l>","do:refresh"),this.addKeyMapping("normal","<C-o>","do:jumpback"),this.addKeyMapping("normal","<C-e>","do:previewdown"),this.addKeyMapping("normal","<C-y>","do:previewup"),this.addKeyMapping("normal",["i","I","o","O","a","A"],"do:togglemode"),this.addKeyMapping("normal","?","do:help"),this.addKeyMapping("normal",":","do:command"),this.createMappings(),i.on("change",()=>{this.createMappings()})}createMappings(){let e=this.config.get("insertMappings",{});this.userInsertMappings=this.fixUserMappings(e,"list.insertMappings");let t=this.config.get("normalMappings",{});this.userNormalMappings=this.fixUserMappings(t,"list.normalMappings")}hasUserMapping(e,t){return(e=="insert"?this.userInsertMappings:this.userNormalMappings).has(t)}isValidAction(e){if(this.actions.has(e))return!0;let[t,i]=e.split(":",2);return!(!i||!this.actions.has(t))}fixUserMappings(e,t){let i=new Map;for(let[r,o]of Object.entries(e)){if(!this.isValidAction(o)){D.showWarningMessage(`Invalid configuration - unable to support action "${o}" in "${t}"`);continue}if(r.length==1)i.set(r,o);else if(r.startsWith("<")&&r.endsWith(">"))if(r.toLowerCase()=="<space>")i.set(" ",o);else if(r.toLowerCase()=="<backspace>")i.set("<bs>",o);else if(Ou.includes(r))i.set(r,o);else{let s=!1;for(let a=0;a<Ou.length;a++)if(Ou[a].toLowerCase()==r.toLowerCase()){s=!0,i.set(Ou[a],o);break}s||D.showWarningMessage(`Invalid configuration - unable to recognize "${r}" in "${t}"`)}else D.showWarningMessage(`Invalid configuration - unable to recognize key "${r}" in "${t}"`)}return i}async navigate(e){var i;let t=(i=this.manager)==null?void 0:i.session.ui;return t?(await t.moveCursor(e?-1:1),!0):!1}async doInsertKeymap(e){if(e===this.config.nextKey)return await this.navigate(!1);if(e===this.config.previousKey)return await this.navigate(!0);let t=this.userInsertMappings.get(e);if(t){let i=this.getAction(t);return await Promise.resolve(i()),!0}if(this.insertMappings.has(e)){let i=this.insertMappings.get(e);return await Promise.resolve(i()),!0}return!1}async doNormalKeymap(e){let t=this.userNormalMappings.get(e);if(t){let i=this.getAction(t);return await Promise.resolve(i()),!0}if(this.normalMappings.has(e)){let i=this.normalMappings.get(e);return await Promise.resolve(i()),!0}return!1}addKeyMapping(e,t,i){let r=e=="insert"?this.insertMappings:this.normalMappings,o=this.getAction(i);if(Array.isArray(t))for(let s of t)r.set(s,o);else r.set(t,o)}addAction(e,t){this.actions.set(e,t)}getAction(e){if(this.actions.has(e))return()=>this.doAction(e);let[t,i]=e.split(":",2);if(!i||!this.actions.has(t))throw new Error(`Invalid action ${e}`);return()=>this.doAction(t,i)}async doAction(e,t){let i=this.actions.get(e);if(!i)throw new Error(`Action ${e} doesn't exist`);await Promise.resolve(i(t))}scrollPreview(e){let{nvim:t}=this;t.pauseNotification(),t.call("coc#list#scroll_preview",[e],!0),t.command("redraw",!0),t.resumeNotification(!1,!0)}}});var VQ,cVe,Bm,e4=k(()=>{"use strict";VQ=S(W()),cVe=q()("list-prompt"),Bm=class{constructor(e,t){this.nvim=e;this.config=t;this.cusorIndex=0;this._input="";this._mode="insert";this.interactive=!1;this.requestInput=!1;this._onDidChangeInput=new VQ.Emitter;this.onDidChangeInput=this._onDidChangeInput.event}get input(){return this._input}set input(e){this._input!=e&&(this.cusorIndex=e.length,this._input=e,this.drawPrompt(),this._onDidChangeInput.fire(this._input))}get mode(){return this._mode}set mode(e){e!=this._mode&&(this._mode=e,this.drawPrompt())}set matcher(e){this._matcher=e,this.drawPrompt()}start(e){e&&(this.interactive=e.interactive,this.cusorIndex=e.input.length,this._input=e.input,this._mode=e.mode,this._matcher=e.interactive?"":e.matcher),this.nvim.call("coc#prompt#start_prompt",["list"],!0),this.drawPrompt()}cancel(){let{nvim:e}=this;e.call("coc#prompt#stop_prompt",["list"],!0)}reset(){this._input="",this.cusorIndex=0}drawPrompt(){let e=this.config.get("indicator",">"),{cusorIndex:t,interactive:i,input:r,_matcher:o}=this,s=['echo ""'];if(this.mode=="insert")if(i?s.push("echohl MoreMsg | echon 'INTERACTIVE ' | echohl None"):o&&s.push(`echohl MoreMsg | echon '${o.toUpperCase()} ' | echohl None`),s.push(`echohl Special | echon '${e} ' | echohl None`),t==r.length)s.push(`echon '${r.replace(/'/g,"''")}'`),s.push("echohl Cursor | echon ' ' | echohl None");else{let l=r.slice(0,t);l&&s.push(`echon '${l.replace(/'/g,"''")}'`),s.push(`echohl Cursor | echon '${r[t].replace(/'/,"''")}' | echohl None`);let u=r.slice(t+1);s.push(`echon '${u.replace(/'/g,"''")}'`)}else s.push('echohl MoreMsg | echo "" | echohl None');s.push("redraw");let a=s.join("|");this.nvim.command(a,!0)}moveLeft(){this.cusorIndex!=0&&(this.cusorIndex=this.cusorIndex-1,this.drawPrompt())}moveRight(){this.cusorIndex!=this._input.length&&(this.cusorIndex=this.cusorIndex+1,this.drawPrompt())}moveToEnd(){this.cusorIndex!=this._input.length&&(this.cusorIndex=this._input.length,this.drawPrompt())}moveToStart(){this.cusorIndex!=0&&(this.cusorIndex=0,this.drawPrompt())}onBackspace(){let{cusorIndex:e,input:t}=this;if(e==0)return;let i=t.slice(0,e),r=t.slice(e);this.cusorIndex=e-1,this._input=`${i.slice(0,i.length-1)}${r}`,this.drawPrompt(),this._onDidChangeInput.fire(this._input)}removeNext(){let{cusorIndex:e,input:t}=this;if(e==t.length-1)return;let i=t.slice(0,e),r=t.slice(e+1);this._input=`${i}${r}`,this.drawPrompt(),this._onDidChangeInput.fire(this._input)}removeWord(){let{cusorIndex:e,input:t}=this;if(e==0)return;let i=t.slice(0,e),r=t.slice(e),o=i.replace(/[\w$]+([^\w$]+)?$/,"");this.cusorIndex=e-(i.length-o.length),this._input=`${o}${r}`,this.drawPrompt(),this._onDidChangeInput.fire(this._input)}removeTail(){let{cusorIndex:e,input:t}=this;if(e==t.length)return;let i=t.slice(0,e);this._input=i,this.drawPrompt(),this._onDidChangeInput.fire(this._input)}removeAhead(){let{cusorIndex:e,input:t}=this;if(e==0)return;let i=t.slice(e);this.cusorIndex=0,this._input=i,this.drawPrompt(),this._onDidChangeInput.fire(this._input)}async acceptCharacter(e){if(this.requestInput){if(this.requestInput=!1,/^[0-9a-z"%#*+/:\-.]$/.test(e)){let t=await this.nvim.call("getreg",e);t=t.replace(/\n/g," "),this.addText(t)}}else this.addText(e)}insertRegister(){this.requestInput=!0}async paste(){let e=await this.nvim.eval("@*");e=e.replace(/\n/g,""),e&&this.addText(e)}async eval(e){let t=await this.nvim.call("eval",[e]);t=t.replace(/\n/g,""),this.addText(t)}addText(e){let{cusorIndex:t,input:i}=this;this.cusorIndex=t+e.length;let r=i.slice(0,t),o=i.slice(t);this._input=`${r}${e}${o}`,this.drawPrompt(),this._onDidChangeInput.fire(this._input)}}});function Fr(n){let e=[];for(let t=0,i=n.length;t<i;t++)e.push(n.charCodeAt(t));return e}function oD(n){return n>=97&&n<=122||n>=65&&n<=90}function sD(n,e,t=!1){let i=n.charCodeAt(0),r=e.charCodeAt(0);return!!(i===r||i>=97&&i<=122&&r+32===i||t&&i<=90&&i+32===r)}function el(n,e){let t=n.length;if(n.length>e.length)return!1;let i=0;for(let r=0;r<e.length&&i!==t;r++){let o=e.charCodeAt(r),s=n[i];if(o===s){i=i+1;continue}if(s>=97&&s<=122&&o+32===s){i=i+1;continue}}return i===t}var tl=k(()=>{"use strict";_e()});var aD,t4,aTe,mF,gd,bF=k(()=>{"use strict";aD=S(require("fs")),t4=S(require("path"));_e();aTe=q()("list-db"),mF=t4.default.join(process.env.COC_DATA_HOME,"list_history.dat"),gd=class{constructor(){this.folders=[];this.names=[];this.items=[];this._changed=!1;try{this.load()}catch(e){aTe.error("Error on load db",e)}}get currItems(){return this.items}getHistory(e,t){let i=this.names.indexOf(e),r=this.folders.indexOf(t);return i==-1||r==-1?[]:this.items.reduce((o,s)=>(s[1]==i&&s[2]==r&&o.push(s[0]),o),[])}addItem(e,t,i){let{folders:r,names:o}=this;Q(t)>255&&(t=tt(t,0,255)),r.includes(i)||r.push(i),o.includes(e)||o.push(e);let s=o.indexOf(e),a=r.indexOf(i),l=this.items.findIndex(u=>u[0]==t&&u[1]==s&&u[2]==a);l!=-1&&this.items.splice(l,1),this.items.push([t,s,a]),this._changed=!0}save(){let{folders:e,items:t,names:i}=this;if(!this._changed)return;let r=e.reduce((u,c)=>(u.push(Buffer.from(c,"utf8"),Buffer.alloc(1)),u),[]),o=Buffer.concat(r);r=i.reduce((u,c)=>(u.push(Buffer.from(c,"utf8"),Buffer.alloc(1)),u),[]);let s=Buffer.concat(r),a=Buffer.allocUnsafe(9);a.writeUInt8(2,0),a.writeUInt32BE(o.byteLength,1),a.writeUInt32BE(s.byteLength,5),r=t.reduce((u,c)=>{let h=Buffer.from(c[0],"utf8");return u.push(Buffer.from([h.byteLength]),h,Buffer.from([c[1],c[2]])),u},[]);let l=Buffer.concat([a,o,s,...r]);aD.default.writeFileSync(mF,l),this._changed=!1}load(){if(!aD.default.existsSync(mF))return;let e=aD.default.readFileSync(mF),t=e.readUInt32BE(1),i=e.readUInt32BE(5),r=e.slice(9,9+t),o=0,s=[],a=[];for(let d=0;d<r.byteLength;d++)if(r[d]===0){let g=r.slice(o,d).toString("utf8");s.push(g),o=d+1}let l=9+t,u=e.slice(l,l+i);o=0;for(let d=0;d<u.byteLength;d++)if(u[d]===0){let g=u.slice(o,d).toString("utf8");a.push(g),o=d+1}let c=e.slice(l+i);o=0;let h=c.byteLength;for(;o<h;){let d=c.readUInt8(o),g=o+1+d,p=c.slice(o+1,g).toString("utf8");this.items.push([p,c.readUInt8(g),c.readUInt8(g+1)]),o=g+2}this.names=a,this.folders=s}}});var Wm,lD,lTe,Nu,yF=k(()=>{"use strict";Wm=S(require("fs")),lD=S(require("path"));nt();tl();bF();lTe=q()("list-history"),Nu=class{constructor(e,t,i,r){this.prompt=e;this.name=t;this.db=i;this.cwd=r;this._index=-1;this._filtered=[]}get loaded(){return this.db.getHistory(this.name,this.cwd)}get filtered(){return this._filtered}get index(){return this._index}static migrate(e){try{let t=Wm.default.readdirSync(e);if(t=t.filter(r=>r.startsWith("list-")&&r.endsWith("-history.json")&&Wm.default.statSync(lD.default.join(e,r)).isFile()),t.length===0)return;let i=new gd;for(let r of t){let o=r.match(/^list-(.*)-history.json$/)[1],s=Wm.default.readFileSync(lD.default.join(e,r),"utf8"),a=JSON.parse(s);for(let[l,u]of Object.entries(a)){let c=Buffer.from(l,"base64").toString("utf8");Array.isArray(u)&&u.forEach(h=>{i.addItem(o,h,c)})}}t.forEach(r=>{Wm.default.unlinkSync(lD.default.join(e,r))}),i.save()}catch(t){lTe.error("Error on migrate history:",t)}}get curr(){return this._index==-1||this._filtered==null?null:this._filtered[this._index]}filter(){let{input:e}=this.prompt;if(e!==this.curr){if(this.historyInput="",e.length>0){let t=Fr(e);this._filtered=this.loaded.filter(i=>el(t,i))}else this._filtered=this.loaded;this._index=-1}}add(){let{db:e,prompt:t,cwd:i}=this,{input:r}=t;!r||r.length<2||r==this.historyInput||e.addItem(this.name,r,i)}previous(){let{_filtered:e,_index:t}=this;Je(e)||(t<=0?this._index=e.length-1:this._index=t-1,this.historyInput=this.prompt.input=e[this._index]??"")}next(){let{_filtered:e,_index:t}=this;Je(e)||(t==e.length-1?this._index=0:this._index=t+1,this.historyInput=this.prompt.input=e[this._index]??"")}}});var uD,i4=k(()=>{"use strict";uD=class{constructor(){this._busy=!1;this._fns=[];this._resolves=[]}run(e){this._busy?this._fns.push(e):(this._busy=!0,e().finally(()=>{this.next()}))}waitFinish(){return this._busy?new Promise(e=>{this._resolves.push(e)}):Promise.resolve()}next(){let e=this._fns.shift();e?e().finally(()=>{this.next()}):this.finish()}finish(){this._busy=!1;let e;for(;(e=this._resolves.pop())!=null;)e()}cancel(){this._fns=[],this.finish()}}});var n4,pd,PVe,Ym,r4=k(()=>{"use strict";n4=S(Pn()),pd=S(W());fe();re();i4();ie();PVe=q()("list-ui"),Ym=class{constructor(e,t,i,r){this.nvim=e;this.name=t;this.listOptions=i;this.config=r;this.newTab=!1;this.reversed=!1;this.currIndex=0;this.items=[];this.disposables=[];this.selected=new Set;this.sequence=new uD;this._onDidChangeLine=new pd.Emitter;this._onDidOpen=new pd.Emitter;this._onDidClose=new pd.Emitter;this._onDidLineChange=new pd.Emitter;this._onDoubleClick=new pd.Emitter;this.onDidChangeLine=this._onDidChangeLine.event;this.onDidLineChange=this._onDidLineChange.event;this.onDidOpen=this._onDidOpen.event;this.onDidClose=this._onDidClose.event;this.onDidDoubleClick=this._onDoubleClick.event;this.signOffset=r.get("signOffset"),this.newTab=i.position=="tab",this.reversed=i.reverse===!0,P.on("BufWinLeave",async s=>{s!=this.bufnr||this.window==null||(this.window=null,this._onDidClose.fire(s))},null,this.disposables),P.on("CursorMoved",async(s,a)=>{if(s!=this.bufnr)return;let l=this.lnumToIndex(a[0]);this.onLineChange(l)},null,this.disposables);let o=(0,n4.default)(async s=>{if(s!=this.bufnr)return;let[a,l,u]=await e.eval('[win_getid(),line("w0"),line("w$")]');if(u<300||a!=this.winid)return;let c=u-l+1,h=this.lnumToIndex(l),d=this.lnumToIndex(l+c*2);e.pauseNotification(),this.doHighlight(h,d),e.command("redraw",!0),e.resumeNotification(!1,!0)},100);this.disposables.push({dispose:()=>{o.clear()}}),P.on("CursorMoved",o,null,this.disposables)}onDidChangeItems(e){this.sequence.run(async()=>{let{items:t,reload:i,append:r,finished:o,sorted:s}=e;this.shouldSort&&!s&&(t=r?this.items.concat(t):t,i=r==!0,r=!1,t.sort((a,l)=>a.score!=l.score?l.score-a.score:a.sortText>l.sortText?1:-1)),r?await this.appendItems(t):await this.drawItems(t,o,i)})}lnumToIndex(e){let{reversed:t,length:i}=this;return t?Math.max(0,i-e):e-1}indexToLnum(e){let{reversed:t,length:i}=this;return t?Math.max(Math.min(i,i-e),1):Math.min(e+1,i)}get bufnr(){var e;return(e=this.buffer)==null?void 0:e.id}get winid(){var e;return(e=this.window)==null?void 0:e.id}get limitLines(){return this.config.get("limitLines",1/0)}onLineChange(e){this.currIndex!=e&&(this.currIndex=e,this._onDidChangeLine.fire(e))}get index(){return this.currIndex}getItem(e){return this.items[e]}get item(){let{window:e}=this;return e?e.cursor.then(t=>(this.currIndex=this.lnumToIndex(t[0]),this.items[this.currIndex])):Promise.resolve(null)}async echoMessage(e){let{items:t}=this,r=`[${t.indexOf(e)+1}/${t.length}] ${e.label||""}`;this.nvim.callTimer("coc#ui#echo_lines",[[r]],!0)}updateItem(e,t){if(!this.buffer||t>=this.length)return;let{nvim:i}=this,r=this.indexToLnum(t);i.pauseNotification(),this.buffer.setOption("modifiable",!0,!0),i.call("setbufline",[this.bufnr,r,e.label],!0),this.doHighlight(t,t+1),this.buffer.setOption("modifiable",!1,!0),i.resumeNotification(!0,!0)}async getItems(){if(this.length==0||!this.window)return[];let e=await this.nvim.call("mode");if(e=="v"||e=="V"){let[r,o]=await this.getSelectedRange(),s=[];for(let a=r;a<=o;a++){let l=this.lnumToIndex(a),u=this.items[l];u&&s.push(u)}return s}let{selectedItems:t}=this;if(t.length)return t;let i=await this.item;return i==null?[]:[i]}async onMouse(e){let{nvim:t,window:i}=this;if(!i)return;let[r,o,s]=await t.eval("[v:mouse_winid,v:mouse_lnum,v:mouse_col]");if(e=="mouseDown"){this.mouseDown={winid:r,lnum:o,col:s,current:r==i.id};return}let a=r==i.id;if(a&&e=="doubleClick"&&(this.setCursor(o),this._onDoubleClick.fire()),a&&e=="mouseDrag"){if(!this.mouseDown)return;await this.selectLines(this.mouseDown.lnum,o)}else if(a&&e=="mouseUp"){if(!this.mouseDown)return;this.mouseDown.lnum==o?(this.setCursor(o),t.command("redraw",!0)):await this.selectLines(this.mouseDown.lnum,o)}else!a&&e=="mouseUp"&&(t.pauseNotification(),t.call("win_gotoid",r,!0),t.call("cursor",[o,s],!0),t.command("redraw",!0),t.resumeNotification(!1,!0))}async resume(){var r;let{items:e,selected:t,nvim:i}=this;if(await this.drawItems(e,!0,!0),!(!t.size||!this.buffer)){i.pauseNotification();for(let o of t)(r=this.buffer)==null||r.placeSign({lnum:o,id:this.signOffset+o,name:"CocSelected",group:"coc-list"});i.command("redraw",!0),i.resumeNotification(!1,!0)}}async toggleSelection(){let{nvim:e,reversed:t}=this;await e.call("win_gotoid",[this.winid]);let i=await e.call("line","."),r=await e.call("mode");if(r=="v"||r=="V"){let[o,s]=await this.getSelectedRange();o>s&&([o,s]=[s,o]);for(let l=o;l<=s;l++)this.toggleLine(l);this.setCursor(s),e.command("redraw",!0),await e.resumeNotification();return}e.pauseNotification(),this.toggleLine(i),this.setCursor(t?i-1:i+1),e.command("redraw",!0),await e.resumeNotification()}toggleLine(e){let{selected:t,buffer:i,signOffset:r}=this;t.has(e)?(t.delete(e),i.unplaceSign({id:r+e,group:"coc-list"})):(t.add(e),i.placeSign({lnum:e,id:r+e,name:"CocSelected",group:"coc-list"}))}async selectLines(e,t){let{nvim:i,signOffset:r,buffer:o,length:s}=this;this.clearSelection();let{selected:a}=this;i.pauseNotification(),e>t&&([e,t]=[t,e]);for(let u=e;u<=t&&!(u>s);u++)a.add(u),o.placeSign({lnum:u,id:r+u,name:"CocSelected",group:"coc-list"});this.setCursor(t),i.command("redraw",!0),await i.resumeNotification()}async selectAll(){let{length:e}=this;e>0&&await this.selectLines(1,e)}clearSelection(){let{selected:e,buffer:t}=this;e.size>0&&(t==null||t.unplaceSign({group:"coc-list"}),this.selected.clear())}get ready(){return this.window?Promise.resolve():new Promise(e=>{let t=this.onDidLineChange(()=>{t.dispose(),e()})})}getHeight(e,t){let i=this.config.get("height",10),{listOptions:r}=this;return t&&!r.interactive&&r.input.length==0&&(i=Math.min(e,i)),Math.max(1,i)}async drawItems(e,t,i=!1){let{nvim:r,name:o,listOptions:s}=this;if(this.items=e.length>this.limitLines?e.slice(0,this.limitLines):e,!this.window){let c=this.getHeight(e.length,t),{position:h,numberSelect:d}=s,[g,p,f]=await r.call("coc#list#create",[h,c,o,d]);this.tabnr=f,this.height=c,this.buffer=r.createBuffer(g);let m=this.window=r.createWindow(p),b=this.config.get("statusLineSegments");b&&m.setOption("statusline",b.join(" "),!0),this._onDidOpen.fire(this.bufnr)}let a=[],l=0;this.items.forEach((c,h)=>{a.push(c.label),!i&&l==0&&c.preselect&&(l=h)});let u=i?this.currIndex:l;this.setLines(a,0,u),this._onDidLineChange.fire()}async appendItems(e){if(!this.window||e.length===0)return;let t=this.items.length,i=this.limitLines-t;if(i>0){let r=i<e.length?e.slice(0,i):e;this.items=this.items.concat(r),this.setLines(r.map(o=>o.label),r.length,this.currIndex)}}get shouldSort(){let{matcher:e,interactive:t}=this.listOptions;return!(t||e!=="fuzzy")}setLines(e,t,i){let{nvim:r,buffer:o,window:s,reversed:a,newTab:l}=this;if(!(!o||!s)){if(r.pauseNotification(),t||(r.call("coc#compat#clear_matches",[s.id],!0),e.length||(e=["No results, press ? on normal mode to get help."],r.call("coc#compat#matchaddpos",["Comment",[[1]],99,s.id],!0))),o.setOption("modifiable",!0,!0),a){let u=e.reverse();t?r.call("coc#compat#prepend_lines",[o.id,u],!0):o.setLines(u,{start:0,end:-1,strictIndexing:!1},!0)}else o.setLines(e,{start:t?-1:0,end:-1,strictIndexing:!1},!0);if(o.setOption("modifiable",!1,!0),a&&!l){let u=this.config.get("height",10);r.call("coc#window#set_height",[s.id,Math.max(Math.min(u,this.length),1)],!0)}if(i>this.items.length-1&&(i=0),i==0)if(t==0)this.doHighlight(0,299);else{let u=this.length-t-1;u<300&&this.doHighlight(u,Math.min(299,this.length-1))}else{let u=l?v.env.lines:this.height;this.doHighlight(Math.max(0,i-u),Math.min(i+u+1,this.length-1))}if(!t){this.currIndex=i;let u=this.indexToLnum(i);s.setCursor([u,0],!0),r.call("coc#list#select",[o.id,u],!0)}a&&r.command("normal! zb",!0),r.command("redraws",!0),r.resumeNotification(!0,!0)}}restoreWindow(){if(this.newTab)return;let{winid:e,height:t}=this;e&&t&&this.nvim.call("coc#window#set_height",[e,t],!0)}get length(){return this.items.length}get selectedItems(){let{selected:e,items:t}=this,i=[];for(let r of e){let o=this.lnumToIndex(r);t[r-1]&&i.push(t[o])}return i}doHighlight(e,t){let{items:i,reversed:r,length:o,buffer:s}=this;if(!s)return;let a=[],l=u=>{let c=this.indexToLnum(u)-1,{ansiHighlights:h}=i[u];if(h)for(let d of h){let{span:g,hlGroup:p}=d;a.push({hlGroup:p,lnum:c,colStart:g[0],colEnd:g[1]})}};if(r)for(let u=Math.min(t,o-1);u>=e;u--)l(u);else for(let u=e;u<=Math.min(t,o-1);u++)l(u);e=this.indexToLnum(e)-1,t=this.indexToLnum(t)-1,e>t&&([e,t]=[t,e]),a.length!=0&&s.updateHighlights("list",a,{start:e,end:t+1,priority:99})}setCursor(e,t=0,i){var s;let{items:r}=this,o=r.length==0?1:r.length;e>o||(i=i??this.lnumToIndex(e),this.onLineChange(i),(s=this.window)==null||s.setCursor([e,t],!0),this.nvim.call("coc#list#select",[this.bufnr,e],!0))}async setIndex(e){if(e<0||e>=this.items.length)return;let{nvim:t}=this,i=this.indexToLnum(e);t.pauseNotification(),this.setCursor(i,0,e),t.command("redraw",!0),await t.resumeNotification(!1)}async moveCursor(e){let{index:t,reversed:i}=this;await this.setIndex(i?t-e:t+e)}async getSelectedRange(){let{nvim:e}=this;await e.call("coc#prompt#stop_prompt",["list"]),await e.eval('feedkeys("\\<esc>", "in")');let[,t]=await e.call("getpos","'<"),[,i]=await e.call("getpos","'>");return this.nvim.call("coc#prompt#start_prompt",["list"],!0),[t,i]}cancel(){this.sequence.cancel()}reset(){this.cancel(),this.window&&(this.window=null,this.buffer=null,this.tabnr=void 0)}dispose(){U(this.disposables),this.nvim.call("coc#window#close",[this.winid||-1],!0),this.reset(),this.items=[],this._onDidChangeLine.dispose(),this._onDidOpen.dispose(),this._onDidClose.dispose(),this._onDidLineChange.dispose(),this._onDoubleClick.dispose()}}});async function cD(n,e,t,i){if(n.length===0)return;let r=new vF,o=n.length;function s(l){let u=[];r.start();for(let c=l;c<o;c++){let h=n[c],d=e(h);if(d&&(typeof d=="boolean"?u.push(h):u.push(Object.assign({},h,d))),r.shouldYield()){let g=c===o-1;return t(u,g),g?-1:c+1}}return t(u,!0),-1}let a=s(0);for(;a!==-1&&!(i!==void 0&&i.isCancellationRequested);)a=await new Promise(l=>{setImmediate(()=>{l(s(a))})})}var o4,vF,s4=k(()=>{"use strict";o4=15,vF=class{constructor(e=o4){this.yieldAfter=Math.max(e,o4),this.startTime=Date.now(),this.counter=0,this.total=0,this.counterInterval=1}start(){this.startTime=Date.now()}shouldYield(){if(++this.counter>=this.counterInterval){let e=Date.now()-this.startTime,t=Math.max(0,this.yieldAfter-e);if(this.total+=this.counter,this.counter=0,e>=this.yieldAfter||t<=1)return this.counterInterval=1,this.total=0,!0;switch(e){case 0:case 1:this.counterInterval=this.total*2;break}}return!1}}});function hD(n){return n.filterText!=null?PJ(n.filterText,n.label):n.label}function cTe(n,e,t,i){return t?kB(e,n):i?n.toLowerCase().indexOf(e.toLowerCase()):n.indexOf(e)}function hTe(n){let e=[],t=0,i=0,r="";for(;i<n.length;i++){let o=n[i];l4.includes(o.charCodeAt(0))&&r&&r!="\\"&&t!=i&&(e.push(n.slice(t,i)),t=i+1),r=o}return t!=n.length&&e.push(n.slice(t,n.length)),e.map(o=>o.replace(/\\\s/g," ").trim()).filter(o=>o.length>0)}var nl,a4,uTe,l4,il,Zm,u4=k(()=>{"use strict";nl=S(W());uh();s4();x_();FR();tl();ds();_e();ie();a4=q()("list-worker"),uTe="\x1B",l4=[32,9],il="CocListSearch",Zm=class{constructor(e,t,i,r,o){this.nvim=e;this.list=t;this.prompt=i;this.listOptions=r;this.config=o;this._loading=!1;this._finished=!1;this.mutex=new Di;this.totalItems=[];this._onDidChangeItems=new nl.Emitter;this._onDidChangeLoading=new nl.Emitter;this.onDidChangeItems=this._onDidChangeItems.event;this.onDidChangeLoading=this._onDidChangeLoading.event;this.fuzzyMatch=v.createFuzzyMatch()}set loading(e){this._loading!=e&&(this._loading=e,this._onDidChangeLoading.fire(e))}get isLoading(){return this._loading}async loadItems(e,t=!1){this.cancelFilter(),this.filteredCount=0,this._finished=!1;let{list:i,listOptions:r}=this;this.loading=!0;let{interactive:o}=r;this.tokenSource=new nl.CancellationTokenSource;let s=this.tokenSource.token,a=await i.loadItems(e,s);if(!s.isCancellationRequested)if(a=a??[],Array.isArray(a)){this.tokenSource=null,this.totalItems=a,this.loading=!1,this._finished=!0;let l;if(o)l=this.convertToHighlightItems(a),this._onDidChangeItems.fire({sorted:!0,items:l,reload:t,finished:!0});else{let u=this.filterTokenSource=new nl.CancellationTokenSource;await this.mutex.use(async()=>{let c=u.token;c.isCancellationRequested||await this.filterItems(a,{reload:t},c)})}}else{let l=a,u=this.totalItems=[],c=0,h=e.input,d=!1;this.filterTokenSource=new nl.CancellationTokenSource;let g=async w=>{d=!0,await this.mutex.use(async()=>{if(this.input!=h&&(h=this.input,c=this.filteredCount??0),c>=u.length)return;let T=c>0,R=u.slice(c);if(c=u.length,o){let F=this.convertToHighlightItems(R);this._onDidChangeItems.fire({items:F,append:T,reload:t,sorted:!0,finished:w})}else{let F=this.filterTokenSource;F&&!F.token.isCancellationRequested&&await this.filterItems(R,{append:T,reload:t},F.token)}}),d=!1},p=Promise.resolve(),f=setInterval(()=>{d||(p=g())},50);l.on("data",w=>{s.isCancellationRequested||u.push(w)});let m=()=>{l!=null&&(this.tokenSource=null,l=null,this.loading=!1,this._finished=!0,b.dispose(),clearInterval(f),p.then(()=>{if(!s.isCancellationRequested){if(u.length==0){this._onDidChangeItems.fire({items:[],append:!1,sorted:!0,reload:t,finished:!0});return}return g(!0)}}).catch(w=>{a4.error("Error on filter",w)}))},b=s.onCancellationRequested(()=>{l==null||l.dispose(),m()});l.on("error",async w=>{l!=null&&(l=null,this.tokenSource=null,this.loading=!1,b.dispose(),clearInterval(f),this.nvim.call("coc#prompt#stop_prompt",["list"],!0),this.nvim.echoError(`Task error: ${w.toString()}`),a4.error("Task error:",w))}),l.on("end",m)}}async drawItems(){let{totalItems:e}=this;if(e.length===0)return;this.cancelFilter();let t=this.filterTokenSource=new nl.CancellationTokenSource,i=t.token;await this.mutex.use(async()=>{if(i.isCancellationRequested)return;let{totalItems:r}=this;this.filteredCount=r.length,await this.filterItems(r,{},t.token)})}cancelFilter(){this.filterTokenSource&&(this.filterTokenSource.cancel(),this.filterTokenSource=null)}stop(){this.cancelFilter(),this.tokenSource&&(this.tokenSource.cancel(),this.tokenSource=null),this.loading=!1}get length(){return this.totalItems.length}get input(){return this.prompt.input}convertToHighlightItems(e){let t=this.input??"";t.length>0&&this.fuzzyMatch.setPattern(t);let i=e.map(r=>{if(this.convertItemLabel(r),t.length>0&&r.filterText!==""){let s=hD(r),a=t.length>0?this.fuzzyMatch.matchHighlights(s,il):void 0;r.ansiHighlights=Array.isArray(r.ansiHighlights)?r.ansiHighlights.filter(l=>l.hlGroup!==il):[],a&&r.ansiHighlights.push(...a.highlights)}return r});return this.fuzzyMatch.free(),i}async filterItemsByInclude(e,t,i,r){let{ignorecase:o,smartcase:s}=this.listOptions,a=this.toInputs(e);o&&(a=a.map(l=>l.toLowerCase())),await cD(t,l=>{this.convertItemLabel(l);let u=[],c=hD(l),h=_h(c),d=0;l.ansiHighlights=Array.isArray(l.ansiHighlights)?l.ansiHighlights.filter(g=>g.hlGroup!==il):[];for(let g of a){let p=d==0?c:c.slice(d),f=cTe(p,g,s,o);if(f===-1)break;let m=f+d+g.length;u.push([h(f+d),h(m)]),d=m}return u.length!==a.length?!1:(l.ansiHighlights.push(...u.map(g=>({span:g,hlGroup:il}))),!0)},r,i)}async filterItemsByRegex(e,t,i,r){let{ignorecase:o}=this.listOptions,s=o?"iu":"u",a=this.toInputs(e),l=a.reduce((u,c)=>{try{u.push(new RegExp(c,s))}catch{}return u},[]);await cD(t,u=>{this.convertItemLabel(u),u.ansiHighlights=Array.isArray(u.ansiHighlights)?u.ansiHighlights.filter(p=>p.hlGroup!==il):[];let c=[],h=hD(u),d=_h(h),g=0;for(let p of l){let f=h.slice(g).match(p);if(f==null)break;let m=f.index+g+f[0].length;c.push([d(f.index+g),d(m)]),g=m}return c.length!==a.length?!1:(u.ansiHighlights.push(...c.map(p=>({span:p,hlGroup:il}))),!0)},r,i)}async filterItemsByFuzzyMatch(e,t,i,r){let{extendedSearchMode:o}=this.config,{sort:s,smartcase:a}=this.listOptions,l=0;this.fuzzyMatch.setPattern(e,!o);let u=Fr(e);o&&(u=u.filter(c=>!l4.includes(c))),this.config.extendedSearchMode&&await cD(t,c=>{this.convertItemLabel(c);let h=hD(c),d=this.fuzzyMatch.matchHighlights(h,il);if(!d||a&&!el(u,h))return!1;let g=Array.isArray(c.ansiHighlights)?c.ansiHighlights.filter(p=>p.hlGroup!=il):[];return g.push(...d.highlights),{sortText:typeof c.sortText=="string"?c.sortText:String.fromCharCode(l),score:d.score,ansiHighlights:g}},(c,h)=>{r(c,h,s)},i)}async filterItems(e,t,i){let{input:r}=this;if(r.length===0){let l=e.map(u=>this.convertItemLabel(u));this._onDidChangeItems.fire({items:l,sorted:!0,finished:this._finished,...t});return}let o=!1,s=[],a=(l,u,c)=>{let h=u&&this._finished;if(!(i.isCancellationRequested||!h&&l.length==0))if(c)s.push(...l),u&&this._onDidChangeItems.fire({items:s,append:!1,sorted:!1,reload:t.reload,finished:h});else{let d=t.append===!0||o;o=!0,this._onDidChangeItems.fire({items:l,append:d,sorted:!0,reload:t.reload,finished:h})}};switch(this.listOptions.matcher){case"strict":await this.filterItemsByInclude(r,e,i,a);break;case"regex":await this.filterItemsByRegex(r,e,i,a);break;default:await this.filterItemsByFuzzyMatch(r,e,i,a)}}toInputs(e){return this.config.extendedSearchMode?hTe(e):[e]}convertItemLabel(e){let{label:t,converted:i}=e;if(i)return e;if(t.includes(`
|
||
`)&&(t=e.label=t.replace(/\r?\n/g," ")),t.includes(uTe)){let{line:r,highlights:o}=lh(t);e.label=r,Array.isArray(e.ansiHighlights)||(e.ansiHighlights=o)}return e.converted=!0,e}dispose(){this.stop()}}});var wF,c4,dTe,gTe,Jm,h4=k(()=>{"use strict";wF=S(Pn()),c4=S(W());Wo();Ta();re();xe();ie();yF();r4();u4();dTe=["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"],gTe=q()("list-session"),Jm=class{constructor(e,t,i,r,o=[],s,a){this.nvim=e;this.prompt=t;this.list=i;this.listOptions=r;this.listArgs=o;this.config=s;this.loadingFrame="";this.hidden=!1;this.disposables=[];this.args=[];this.ui=new Ym(e,i.name,r,s),this.history=new Nu(t,i.name,a,v.cwd),this.worker=new Zm(e,i,t,r,{interactiveDebounceTime:s.get("interactiveDebounceTime",100),extendedSearchMode:s.get("extendedSearchMode",!0)}),this.interactiveDebounceTime=s.get("interactiveDebounceTime",100);let l=(0,wF.default)(async()=>{let[g,p,f]=await e.eval('[coc#list#has_preview(),win_getid(),line(".")]');if(g&&p==this.winid){let m=this.ui.lnumToIndex(f);await this.doPreview(m)}},50);this.disposables.push({dispose:()=>{l.clear()}}),this.ui.onDidChangeLine(l,null,this.disposables),this.ui.onDidChangeLine(this.resolveItem,this,this.disposables),this.ui.onDidLineChange(this.resolveItem,this,this.disposables);let u=(0,wF.default)(async()=>{this.updateStatus();let{autoPreview:g}=this.listOptions;if(!g){let[p,f]=await e.eval("[coc#list#has_preview(),mode()]");if(!p||f!="n")return}await this.doAction("preview")},50);this.disposables.push({dispose:()=>{u.clear()}}),this.ui.onDidLineChange(u,null,this.disposables),this.ui.onDidOpen(async()=>{typeof this.list.doHighlight=="function"&&this.list.doHighlight(),v.isVim&&this.prompt.drawPrompt(),this.listOptions.first&&await this.doAction()},null,this.disposables),this.ui.onDidClose(this.hide,this,this.disposables),this.ui.onDidDoubleClick(this.doAction,this,this.disposables),this.worker.onDidChangeItems(g=>{this.hidden||this.ui.onDidChangeItems(g)},null,this.disposables);let c=0,h,d;this.disposables.push(c4.Disposable.create(()=>{h&&clearTimeout(h),d&&clearInterval(d)})),this.worker.onDidChangeLoading(g=>{this.hidden||(h&&clearTimeout(h),g?(c=Date.now(),d&&clearInterval(d),d=setInterval(()=>{let p=Math.floor((Date.now()-c)%1e3/100);this.loadingFrame=dTe[p],this.updateStatus()},100)):h=setTimeout(()=>{this.loadingFrame="",d&&clearInterval(d),d=null,this.updateStatus()},Math.max(0,200-(Date.now()-c))))},null,this.disposables)}async start(e){this.args=e,this.cwd=v.cwd,this.hidden=!1;let{listArgs:t}=this,i=await this.nvim.eval('[win_getid(),bufnr("%"),winheight("%")]');this.listArgs=t,this.history.filter(),this.window=this.nvim.createWindow(i[0]),this.buffer=this.nvim.createBuffer(i[1]),this.savedHeight=i[2],await this.worker.loadItems(this.context)}async reloadItems(){!this.ui.winid||await this.worker.loadItems(this.context,!0)}async call(e){var o,s;await this.nvim.call("coc#prompt#stop_prompt",["list"]);let t=await this.ui.getItems(),i={name:this.name,args:this.listArgs,input:this.prompt.input,winid:(o=this.window)==null?void 0:o.id,bufnr:(s=this.buffer)==null?void 0:s.id,targets:t},r=await this.nvim.call(e,[i]);return this.prompt.start(),r}async chooseAction(){let{nvim:e,defaultAction:t}=this,{actions:i}=this.list,r=i.map(h=>h.name),o=r.indexOf(t.name);o!=-1&&(r.splice(o,1),r.unshift(t.name));let s=new Set,a=[],l=[],u=v.env.dialog&&this.config.get("menuAction",!1);for(let h of r){let d=0;for(let g of h){if(!s.has(g)){s.add(g),a.push(`${h.slice(0,d)}&${h.slice(d)}`);break}d++}d==h.length&&l.push(h)}l.length&&!u&&(r=r.filter(h=>!l.includes(h)));let c;u?(e.call("coc#prompt#stop_prompt",["list"],!0),c=await D.showMenuPicker(r,{title:"Choose action",shortcuts:!0}),c=c+1,v.isVim&&await Nt(10),this.prompt.start()):(await e.call("coc#prompt#stop_prompt",["list"]),c=await e.call("confirm",["Choose action:",a.join(`
|
||
`)]),await Nt(10),this.prompt.start()),c&&await this.doAction(r[c-1])}async doAction(e){let{list:t}=this,i;if(e!=null){if(i=t.actions.find(o=>o.name==e),!i){D.showErrorMessage(`Action ${e} not found`);return}}else i=this.defaultAction;let r;if(e=="preview"){let o=await this.ui.item;r=o?[o]:[]}else r=await this.ui.getItems();r.length&&await this.doItemAction(r,i)}async doPreview(e){let t=this.ui.getItem(e),i=this.list.actions.find(r=>r.name=="preview");!t||!i||await this.doItemAction([t],i)}async first(){await this.doDefaultAction(0)}async last(){await this.doDefaultAction(this.ui.length-1)}async previous(){await this.doDefaultAction(this.ui.index-1)}async next(){await this.doDefaultAction(this.ui.index+1)}async doDefaultAction(e){let{ui:t}=this,i=t.getItem(e);!i||(await this.ui.setIndex(e),await this.doItemAction([i],this.defaultAction),await t.echoMessage(i))}get name(){return this.list.name}get winid(){return this.ui.winid}get length(){return this.ui.length}get defaultAction(){let{defaultAction:e,actions:t,name:i}=this.list,r=v.getConfiguration(`list.source.${i}`),o;if(r.defaultAction&&(o=t.find(s=>s.name==r.defaultAction)),o||(o=t.find(s=>s.name==e)),o||(o=t[0]),!o)throw new Error(`default action "${e}" not found`);return o}async hide(e=!1){if(this.hidden)return;let{nvim:t,timer:i,window:r}=this,{winid:o,tabnr:s}=this.ui;i&&clearTimeout(i),this.worker.stop(),this.history.add(),this.ui.reset(),this.hidden=!0;let{isVim:a}=v;if(a&&await t.call("feedkeys",["\x1B","int"]),t.pauseNotification(),a||t.call("coc#prompt#stop_prompt",["list"],!0),s&&t.call("coc#list#close_preview",[s],!0),r&&t.call("win_gotoid",[r.id],!0),o&&t.call("coc#window#close",[o],!0),r&&this.savedHeight&&this.listOptions.position!=="tab"&&t.call("coc#window#set_height",[r.id,this.savedHeight],!0),e)return t.resumeNotification(!0,!0);await t.resumeNotification(!0)}toggleMode(){let e=this.prompt.mode=="normal"?"insert":"normal";this.prompt.mode=e,this.listOptions.mode=e,this.updateStatus()}stop(){this.worker.stop()}async resolveItem(){let e=this.ui.index,t=this.ui.getItem(e);if(!t||t.resolved)return;let{list:i}=this;if(typeof i.resolveItem=="function"){let r=t.label,o=await Promise.resolve(i.resolveItem(t));if(o&&e==this.ui.index){if(Object.assign(t,o,{resolved:!0}),r==o.label)return;this.ui.updateItem(t,e)}}}async showHelp(){await this.hide();let{list:e,nvim:t}=this;if(!e)return;t.pauseNotification(),t.command("tabe +setl\\ previewwindow [LIST HELP]",!0),t.command("setl nobuflisted noswapfile buftype=nofile bufhidden=wipe",!0),await t.resumeNotification();let i=e.options&&e.options.length,r=await t.buffer,o=new Hi;if(o.addLine("NAME","Label"),o.addLine(` ${e.name} - ${e.description||""}
|
||
`),o.addLine("SYNOPSIS","Label"),o.addLine(` :CocList [LIST OPTIONS] ${e.name}${i?" [ARGUMENTS]":""}
|
||
`),e.detail){o.addLine("DESCRIPTION","Label");let a=e.detail.split(`
|
||
`).map(l=>" "+l);o.addLine(a.join(`
|
||
`)+`
|
||
`)}if(i){o.addLine("ARGUMENTS","Label"),o.addLine("");for(let a of e.options)o.addLine(a.name,"Special"),o.addLine(` ${a.description}`),o.addLine("");o.addLine("")}let s=v.getConfiguration(`list.source.${e.name}`);if(Object.keys(s).length){o.addLine("CONFIGURATIONS","Label"),o.addLine("");let a={};je.all.forEach(l=>{let{packageJSON:u}=l,{contributes:c}=u;if(!c)return;let{configuration:h}=c;if(h){let{properties:d}=h;if(d)for(let g of Object.keys(d))a[g]=d[g]}});for(let l of Object.keys(s)){let u=s[l],c=`list.source.${e.name}.${l}`,h=a[c]&&a[c].description?a[c].description:l;o.addLine(` "${c}"`,"MoreMsg"),o.addText(` - ${h}, current value: `),o.addText(JSON.stringify(u),"Special")}o.addLine("")}o.addLine("ACTIONS","Label"),o.addLine(` ${e.actions.map(a=>a.name).join(", ")}`),o.addLine(""),o.addLine("see ':h coc-list-options' for available list options.","Comment"),t.pauseNotification(),o.render(r,0,-1),t.command("setl nomod",!0),t.command("setl nomodifiable",!0),t.command("normal! gg",!0),t.command("nnoremap <buffer> q :bd!<CR>",!0),await t.resumeNotification()}async switchMatcher(){let{matcher:e,interactive:t}=this.listOptions;if(t)return;let i=["fuzzy","strict","regex"],r=i.indexOf(e)+1;r>=i.length&&(r=0),this.listOptions.matcher=i[r],this.prompt.matcher=i[r],await this.worker.drawItems()}updateStatus(){let{ui:e,list:t,nvim:i}=this;if(!e.bufnr)return;let r=i.createBuffer(e.bufnr),o={mode:this.prompt.mode.toUpperCase(),args:this.args.join(" "),name:t.name,cwd:this.cwd,loading:this.loadingFrame,total:this.worker.length};r.setVar("list_status",o,!0),i.command("redraws",!0)}get context(){let{winid:e}=this.ui;return{options:this.listOptions,args:this.listArgs,input:this.prompt.input,cwd:v.cwd,window:this.window,buffer:this.buffer,listWindow:e?this.nvim.createWindow(e):void 0}}onMouseEvent(e){switch(e){case"<LeftMouse>":return this.ui.onMouse("mouseDown");case"<LeftDrag>":return this.ui.onMouse("mouseDrag");case"<LeftRelease>":return this.ui.onMouse("mouseUp");case"<2-LeftMouse>":return this.ui.onMouse("doubleClick")}}async doNumberSelect(e){if(!this.listOptions.numberSelect)return!1;let t=e.charCodeAt(0);if(t>=48&&t<=57){let i=Number(e);if(i==0&&(i=10),this.ui.length>=i)return this.nvim.pauseNotification(),this.ui.setCursor(i),await this.nvim.resumeNotification(),await this.doAction(),!0}return!1}jumpBack(){let{window:e,nvim:t}=this;e&&(t.pauseNotification(),t.call("coc#prompt#stop_prompt",["list"],!0),this.nvim.call("win_gotoid",[e.id],!0),t.resumeNotification(!1,!0))}async resume(){this.winid&&await this.hide();let e=await this.nvim.eval('[win_getid(),bufnr("%"),winheight("%")]');this.hidden=!1,this.window=this.nvim.createWindow(e[0]),this.buffer=this.nvim.createBuffer(e[1]),this.savedHeight=e[2],this.prompt.start(),await this.ui.resume(),this.listOptions.autoPreview&&await this.doAction("preview")}async doItemAction(e,t){let{noQuit:i,position:r}=this.listOptions,{nvim:o}=this,s=t.persist===!0||t.name=="preview";r==="tab"&&t.tabPersist&&(s=!0);let a=this.winid&&(s||i);try{if(a?s||(o.pauseNotification(),o.call("coc#prompt#stop_prompt",["list"],!0),o.call("win_gotoid",[this.context.window.id],!0),await o.resumeNotification()):await this.hide(),t.multiple)await Promise.resolve(t.execute(e,this.context));else if(t.parallel)await Promise.all(e.map(l=>Promise.resolve(t.execute(l,this.context))));else for(let l of e)await Promise.resolve(t.execute(l,this.context));a&&this.ui.restoreWindow(),t.reload&&a?await this.reloadItems():a&&this.nvim.command("redraw",!0)}catch(l){gTe.error(`Error on action ${t.name}`,l),this.nvim.echoError(l)}}onInputChange(){var e;this.timer&&clearTimeout(this.timer),(e=this.ui)==null||e.cancel(),this.history.filter(),this.listOptions.input=this.prompt.input,this.listOptions.interactive?(this.worker.stop(),this.timer=setTimeout(async()=>{await this.worker.loadItems(this.context)},this.interactiveDebounceTime)):this.worker.drawItems()}dispose(){this.hide(!0),U(this.disposables),this.worker.dispose(),this.ui.dispose()}}});var d4,g4,p4,pTe,$m,f4=k(()=>{"use strict";d4=require("child_process"),g4=require("events"),p4=S(require("readline"));re();ie();pTe=q()("list-commandTask"),$m=class extends g4.EventEmitter{constructor(t){super();this.opt=t;this.disposables=[];this.start()}start(){let{cmd:t,args:i,cwd:r,onLine:o}=this.opt,s=(0,d4.spawn)(t,i,{cwd:r||v.cwd,windowsHide:!0});this.disposables.push({dispose:()=>{s.kill()}}),s.on("error",l=>{this.emit("error",l.message)}),s.stderr.on("data",l=>{pTe.error(`[${t} Error]`,l.toString("utf8"))});let a=p4.default.createInterface(s.stdout);a.on("line",l=>{let u=o(l);u&&this.emit("data",u)}),a.on("close",()=>{this.emit("end")})}dispose(){U(this.disposables)}}});function fTe(n){switch(n){case"latex":return"tex";default:return n}}var Hu,u8e,zt,Yo=k(()=>{"use strict";Hu=S(W());Pe();re();$e();xt();ie();f4();rD();u8e=q()("list-basic"),zt=class{constructor(e){this.nvim=e;this.defaultAction="open";this.actions=[];this.options=[];this.disposables=[];this.config=new Au}get alignColumns(){return this.config.get("alignColumns",!1)}get hlGroup(){return this.config.get("previewHighlightGroup","Search")}get previewHeight(){return this.config.get("maxPreviewHeight",12)}get splitRight(){return this.config.get("previewSplitRight",!1)}get toplineStyle(){return this.config.get("previewToplineStyle","offset")}get toplineOffset(){return this.config.get("previewToplineOffset",3)}parseArguments(e){if(!this.optionMap){this.optionMap=new Map;for(let i of this.options){let r=i.name.split(/,\s*/g).map(s=>s.replace(/\s+.*/g,"")),o=i.key?i.key:r[r.length-1].replace(/^-/,"");for(let s of r)this.optionMap.set(s,{name:o,hasValue:i.hasValue})}}let t={};for(let i=0;i<e.length;i++){let r=e[i],o=this.optionMap.get(r);if(!o)continue;let s=!0;o.hasValue&&(s=e[i+1]||"",i=i+1),t[o.name]=s}return t}getConfig(){return v.getConfiguration(`list.source.${this.name}`)}addAction(e,t,i){this.createAction(Object.assign({name:e,execute:t},i||{}))}addMultipleAction(e,t,i){this.createAction(Object.assign({name:e,multiple:!0,execute:t},i||{}))}createCommandTask(e){return new $m(e)}addLocationActions(){this.createAction({name:"preview",execute:async(t,i)=>{let r=await this.convertLocation(t.location);await this.previewLocation(r,i)}});let{nvim:e}=this;this.createAction({name:"quickfix",multiple:!0,execute:async t=>{let i=await Promise.all(t.map(o=>this.convertLocation(o.location).then(s=>v.getQuickfixItem(s))));await e.call("setqflist",[i]);let r=await e.getVar("coc_quickfix_open_command");e.command(typeof r=="string"?r:"copen",!0)}});for(let t of["open","tabe","drop","vsplit","split"])this.createAction({name:t,execute:async(i,r)=>{await this.jumpTo(i.location,t=="open"?null:t,r)},tabPersist:t==="open"})}async convertLocation(e){if(typeof e=="string")return Hu.Location.create(e,Hu.Range.create(0,0,0,0));if(Hu.Location.is(e))return e;let t=j.parse(e.uri);return t.scheme!="file"?Hu.Location.create(e.uri,Hu.Range.create(0,0,0,0)):await KW(t.fsPath,e.line,e.text)}async jumpTo(e,t,i){if(t==null&&i&&i.options.position==="tab"&&(t="tabe"),typeof e=="string"){await v.jumpTo(e,null,t);return}let{range:r,uri:o}=await this.convertLocation(e),s=r.start;s.line==0&&s.character==0&&Me(s,r.end)==0&&(s=null),await v.jumpTo(o,s,t)}createAction(e){let{name:t}=e,i=this.actions.findIndex(r=>r.name==t);i!==-1&&this.actions.splice(i,1),this.actions.push(e)}async previewLocation(e,t){let{nvim:i}=this,{uri:r,range:o}=e,s=v.getDocument(e.uri),a=j.parse(r),l=await v.documentsManager.getLines(r),u={winid:t.window.id,range:Lt(o)?null:o,lnum:o.start.line+1,name:a.scheme=="file"?a.fsPath:r,filetype:fTe(s?s.languageId:v.documentsManager.getLanguageId(a.fsPath)),position:t.options.position,maxHeight:this.previewHeight,splitRight:this.splitRight,hlGroup:this.hlGroup,scheme:a.scheme,toplineStyle:this.toplineStyle,toplineOffset:this.toplineOffset,targetRange:e.targetRange};await i.call("coc#list#preview",[l,u])}async preview(e,t){let{nvim:i}=this,{bufname:r,filetype:o,range:s,lines:a,lnum:l}=e,u={winid:t.window.id,lnum:s?s.start.line+1:l||1,filetype:o,position:t.options.position,maxHeight:this.previewHeight,splitRight:this.splitRight,hlGroup:this.hlGroup,toplineStyle:this.toplineStyle,toplineOffset:this.toplineOffset};r&&(u.name=r),s&&(u.range=s),await i.call("coc#list#preview",[a,u]),i.command("redraw",!0)}doHighlight(){}dispose(){U(this.disposables)}}});function jr(n,e){if(e.length===0)return[];let t=[];if(n){let i=Array(Math.min(...e.map(r=>r.label.length))).fill(0);for(let r of e)for(let o=0;o<i.length;o++)i[o]=Math.max(i[o],r.label[o].length);t=e.map(r=>({...r,label:r.label.map((o,s)=>o.padEnd(i[s])).join(" ")}))}else t=e.map(i=>({...i,label:i.label.join(" ")}));return t}function m4(n,e){if(n==="hidden")return"";if(n==="full")return e;if(n==="short"){let t=e.split(dD.default.sep);return t.length<2?e:[...t.slice(0,t.length-2).filter(r=>r.length>0).map(r=>r[0]),t[t.length-1]].join(dD.default.sep)}else{let t=e.split(dD.default.sep);return t[t.length-1]??""}}var dD,qu=k(()=>{"use strict";dD=S(require("path"))});function mTe(n,e){let t=n.indexOf(e);return t==-1?-1:n.length-t}var Um,b4=k(()=>{"use strict";Jt();ie();Yo();qu();Um=class extends zt{constructor(t){super(t);this.defaultAction="run";this.description="registered commands of coc.nvim";this.name="commands";this.mru=v.createMru("commands"),this.addAction("run",async i=>{await ue.fireCommand(i.data.cmd)}),this.addAction("append",async i=>{let{cmd:r}=i.data;await t.feedKeys(`:CocCommand ${r} `,"n",!1)})}async loadItems(t){let i=[],r=await this.mru.load(),{commandList:o,onCommandList:s,titles:a}=ue,l=o.map(u=>u.id).concat(s);for(let u of[...new Set(l)])i.push({label:[u,...a.get(u)?[a.get(u)]:[]],filterText:u,data:{cmd:u,score:mTe(r,u)}});return i.sort((u,c)=>c.data.score-u.data.score),jr(this.alignColumns,i)}doHighlight(){let{nvim:t}=this;t.pauseNotification(),t.command("syntax match CocCommandsTitle /\\t.*$/ contained containedin=CocCommandsLine",!0),t.command("highlight default link CocCommandsTitle Comment",!0),t.resumeNotification(!1,!0)}}});function bTe(n,e){let t=e.uri??j.file(e.filename).toString(),i="",r=[],o=0;n.length>0&&(i=n+" ",r.push({span:[o,o+Q(n)],hlGroup:"Directory"})),o=Q(i);let s=e.lnum??e.range.start.line+1,a=e.col??Q(e.text.slice(0,e.range.start.character))+1,l=`|${e.type?e.type+" ":""}${s} Col ${a}|`;if(i+=l,r.push({span:[o,o+Q(l)],hlGroup:"LineNr"}),e.type){let h=e.type.toLowerCase()==="error"?"Error":"WarningMsg";r.push({span:[o+1,o+Q(e.type)],hlGroup:h})}if(e.range&&e.range.start.line==e.range.end.line){let h=Q(i)+1,d=h+Q(e.text.slice(0,e.range.start.character)),g=h+Q(e.text.slice(0,e.range.end.character));r.push({span:[d,g],hlGroup:"Search"})}i+=" "+e.text;let u=`${n}${e.text.trim()}`,c;if(e.range)c=Xi.create(t,e.range);else{let h=Mt.create(e.lnum-1,e.col-1),d=Mt.create((e.end_lnum??e.lnum)-1,(e.end_col??e.col)-1);c=Xi.create(t,Be.create(h,d))}return c.targetRange=e.targetRange?e.targetRange:Be.create(s-1,0,s-1,99),{label:i,location:c,filterText:u,ansiHighlights:r}}var xF,D8e,po,Xm=k(()=>{"use strict";xF=S(require("path"));Kn();Pe();Jt();$e();_e();Yo();D8e=q()("list-location"),po=class extends zt{constructor(t){super(t);this.defaultAction="open";this.description="show locations saved by g:coc_jump_locations variable";this.name="location";this.createAction({name:"refactor",multiple:!0,execute:async i=>{let r=i.map(o=>o.location);await ue.executeCommand("workspace.refactor",r)}}),this.addLocationActions()}async loadItems(t,i){let r=await this.nvim.getVar("coc_jump_locations");if(i.isCancellationRequested)return[];r=r||[];let o=t.buffer.id,s=r.every(l=>l.bufnr==o);return r.map(l=>{let u=s?"":l.filename;return u.length>0&&xF.default.isAbsolute(u)&&(u=Ye(t.cwd,u)?xF.default.relative(t.cwd,u):u),bTe(u,l)})}}});var y4,I8e,Gm,v4=k(()=>{"use strict";y4=S(require("path"));Bu();$e();qu();Xm();I8e=q()("list-symbols"),Gm=class extends po{constructor(t,i){super(t);this.defaultAction="open";this.description="diagnostics of current workspace";this.name="diagnostics";Wt.onDidRefresh(async()=>{let r=i.getSession("diagnostics");r&&await r.reloadItems()},null,this.disposables)}async loadItems(t){let i=await Wt.getDiagnosticList(),{cwd:r}=t,o=this.getConfig(),s=o.get("includeCode",!0),a=o.get("pathFormat","full"),l=i.map(u=>{let c=Ye(r,u.file)?y4.default.relative(r,u.file):u.file,h=m4(a,c),d=a!=="hidden"?[`${h}:${u.lnum}`]:[],g=s?[`[${u.source}${u.code?"":"]"}`,u.code?`${u.code}]`:""]:[];return{label:[...d,...g,u.severity,u.message],location:u.location}});return jr(this.alignColumns,l)}doHighlight(){let{nvim:t}=this;t.pauseNotification(),t.command("syntax match CocDiagnosticsFile /\\v^\\s*\\S+/ contained containedin=CocDiagnosticsLine",!0),t.command("syntax match CocDiagnosticsError /\\tError\\s*\\t/ contained containedin=CocDiagnosticsLine",!0),t.command("syntax match CocDiagnosticsWarning /\\tWarning\\s*\\t/ contained containedin=CocDiagnosticsLine",!0),t.command("syntax match CocDiagnosticsInfo /\\tInformation\\s*\\t/ contained containedin=CocDiagnosticsLine",!0),t.command("syntax match CocDiagnosticsHint /\\tHint\\s*\\t/ contained containedin=CocDiagnosticsLine",!0),t.command("highlight default link CocDiagnosticsFile Comment",!0),t.command("highlight default link CocDiagnosticsError CocErrorSign",!0),t.command("highlight default link CocDiagnosticsWarning CocWarningSign",!0),t.command("highlight default link CocDiagnosticsInfo CocInfoSign",!0),t.command("highlight default link CocDiagnosticsHint CocHintSign",!0),t.resumeNotification(!1,!0)}}});function yTe(n){switch(n){case"unknown":return 2;case"activated":return 1;case"disabled":return-1;default:return 0}}var zm,w4,gD,W8e,Km,x4=k(()=>{"use strict";zm=S(require("fs")),w4=S(require("os")),gD=S(require("path"));Pe();Wo();re();ie();xe();Yo();qu();W8e=q()("list-extensions"),Km=class extends zt{constructor(t){super(t);this.defaultAction="toggle";this.description="manage coc extensions";this.name="extensions";this.addAction("toggle",async i=>{let{id:r,state:o}=i.data;o!="disabled"&&(o=="activated"?await je.manager.deactivate(r):await je.manager.activate(r),await Nt(100))},{persist:!0,reload:!0,parallel:!0}),this.addAction("configuration",async i=>{let{root:r}=i.data,o=gD.default.join(r,"package.json");if(zm.default.existsSync(o)){let a=zm.default.readFileSync(o,"utf8").split(/\r?\n/).findIndex(l=>l.includes('"contributes"'));await v.jumpTo(j.file(o).toString(),{line:a==-1?0:a,character:0})}}),this.addAction("open",async i=>{let{root:r}=i.data;v.env.isiTerm?t.call("coc#ui#iterm_open",[r],!0):t.call("coc#ui#open_url",[r],!0)}),this.addAction("disable",async i=>{let{id:r,state:o}=i.data;o!=="disabled"&&await je.manager.toggleExtension(r)},{persist:!0,reload:!0,parallel:!0}),this.addAction("enable",async i=>{let{id:r,state:o}=i.data;o=="disabled"&&await je.manager.toggleExtension(r)},{persist:!0,reload:!0,parallel:!0}),this.addAction("lock",async i=>{let{id:r}=i.data;je.states.setLocked(r,!0)},{persist:!0,reload:!0}),this.addAction("help",async i=>{let{root:r}=i.data,s=zm.default.readdirSync(r,{encoding:"utf8"}).find(a=>/^readme/i.test(a));s&&await v.callAsync("coc#util#jump",["edit",gD.default.join(r,s)])}),this.addAction("reload",async i=>{let{id:r}=i.data;await je.manager.reloadExtension(r)},{persist:!0,reload:!0}),this.addAction("fix",async i=>{let{root:r,isLocal:o}=i.data,{npm:s}=je;if(o){D.showWarningMessage("Can't fix for local extension.");return}if(!s)return;let a=gD.default.join(r,"node_modules");zm.default.rmSync(a,{recursive:!0,force:!0});let l=await D.createTerminal({cwd:r});!await l.show(!1)||(v.nvim.command("startinsert",!0),l.sendText(`${s} install --production --ignore-scripts --no-lockfile`,!0))}),this.addMultipleAction("uninstall",async i=>{let r=[];for(let o of i)o.data.isLocal||r.push(o.data.id);await je.manager.uninstallExtensions(r)})}async loadItems(t){let i=[],r=await je.getExtensionStates();for(let o of r){let s="+";o.state=="disabled"?s="-":o.state=="activated"?s="*":o.state=="unknown"&&(s="?");let a=await this.nvim.call("resolve",o.root),l=o.isLocked;i.push({label:[`${s} ${o.id}${l?" \uE0A2":""}`,...o.isLocal?["[RTP]"]:[],o.version,a.replace(w4.default.homedir(),"~")],filterText:o.id,data:{id:o.id,root:a,state:o.state,isLocal:o.isLocal,priority:yTe(o.state)}})}return i.sort((o,s)=>o.data.priority!=s.data.priority?s.data.priority-o.data.priority:s.data.id-o.data.id?1:-1),jr(this.alignColumns,i)}doHighlight(){let{nvim:t}=this;t.pauseNotification(),t.command("syntax match CocExtensionsActivited /\\v^\\*/ contained containedin=CocExtensionsLine",!0),t.command("syntax match CocExtensionsLoaded /\\v^\\+/ contained containedin=CocExtensionsLine",!0),t.command("syntax match CocExtensionsDisabled /\\v^-/ contained containedin=CocExtensionsLine",!0),t.command("syntax match CocExtensionsName /\\v%3c\\S+/ contained containedin=CocExtensionsLine",!0),t.command("syntax match CocExtensionsRoot /\\v\\t[^\\t]*$/ contained containedin=CocExtensionsLine",!0),t.command("syntax match CocExtensionsLocal /\\v\\[RTP\\]/ contained containedin=CocExtensionsLine",!0),t.command("highlight default link CocExtensionsActivited Special",!0),t.command("highlight default link CocExtensionsLoaded Normal",!0),t.command("highlight default link CocExtensionsDisabled Comment",!0),t.command("highlight default link CocExtensionsName String",!0),t.command("highlight default link CocExtensionsLocal MoreMsg",!0),t.command("highlight default link CocExtensionsRoot Comment",!0),t.resumeNotification(!1,!0)}}});var C4,S4,Qm,D4=k(()=>{"use strict";C4=S(require("path"));Pe();S4=S(require("fs"));$e();ie();xe();Yo();Qm=class extends zt{constructor(t){super(t);this.defaultAction="edit";this.description="list of current workspace folders";this.name="folders";this.addAction("edit",async i=>{let r=await t.call("input",["Folder: ",i.label,"dir"]),o=await zi(r);if(!o||!o.isDirectory()){D.showErrorMessage(`invalid path: ${r}`);return}v.workspaceFolderControl.renameWorkspaceFolder(i.label,r)}),this.addAction("delete",async i=>{v.workspaceFolderControl.removeWorkspaceFolder(i.label)},{reload:!0,persist:!0}),this.addAction("newfile",async(i,r)=>{let o=await D.requestInput("File name",i.label+"/");if(!o)return;let s=C4.default.dirname(o),a=await zi(s);(!a||!a.isDirectory())&&S4.default.mkdirSync(s,{recursive:!0}),await v.createFile(o,{overwrite:!1,ignoreIfExists:!0}),await this.jumpTo(j.file(o).toString(),null,r)})}async loadItems(t){return v.folderPaths.map(i=>({label:i}))}}});function T4(n){if(!n.startsWith("file:"))return n;let e=j.parse(n).fsPath;return Ye(v.cwd,e)?k4.default.relative(v.cwd,e):e}var k4,Vm,P4=k(()=>{"use strict";de();ie();k4=S(require("path"));Yo();Kn();Pe();$e();Vm=class extends zt{constructor(t){super(t);this.defaultAction="open";this.description="links of current buffer";this.name="links";this.addAction("open",async i=>{let{target:r}=i.data;j.parse(r).scheme.startsWith("http")?await t.call("coc#ui#open_url",r):await v.jumpTo(r)}),this.addAction("jump",async i=>{let{location:r}=i.data;await v.jumpTo(r.uri,r.range.start)})}async loadItems(t,i){let r=await t.window.buffer,o=v.getDocument(r.id);if(!o)return null;let s=[],a=await _.getDocumentLinks(o.textDocument,i);if(i.isCancellationRequested)return null;if(a==null)throw new Error("Links provider not found.");let l=[];for(let u of a)u.target?s.push({label:T4(u.target),data:{target:u.target,location:Xi.create(o.uri,u.range)}}):(u=await _.resolveDocumentLink(u,i),u.target&&s.push({label:T4(u.target),data:{target:u.target,location:Xi.create(o.uri,u.range)}}),l.push(u));return s}}});function vTe(n,e){let t=n.indexOf(e);return t==-1?-1:n.length-t}var eb,E4=k(()=>{"use strict";Yo();Nx();qu();eb=class extends zt{constructor(t,i){super(t);this.listMap=i;this.name="lists";this.defaultAction="open";this.description="registered lists of coc.nvim";this.mru=new xs("lists");this.addAction("open",async r=>{let{name:o}=r.data;await this.mru.add(o),setTimeout(()=>{t.command(`CocList ${o}`,!0)},t.isVim?50:0)})}async loadItems(t){let i=[],r=await this.mru.load();for(let o of this.listMap.values())o.name!="lists"&&i.push({label:[o.name,...o.description?[o.description]:[]],data:{name:o.name,interactive:o.interactive,score:vTe(r,o.name)}});return i.sort((o,s)=>s.data.score-o.data.score),jr(this.alignColumns,i)}doHighlight(){let{nvim:t}=this;t.pauseNotification(),t.command("syntax match CocListsDesc /\\t.*$/ contained containedin=CocListsLine",!0),t.command("highlight default link CocListsDesc Comment",!0),t.resumeNotification(!1,!0)}}});function Ms(n){switch(n){case bt.SymbolKind.File:return"File";case bt.SymbolKind.Module:return"Module";case bt.SymbolKind.Namespace:return"Namespace";case bt.SymbolKind.Package:return"Package";case bt.SymbolKind.Class:return"Class";case bt.SymbolKind.Method:return"Method";case bt.SymbolKind.Property:return"Property";case bt.SymbolKind.Field:return"Field";case bt.SymbolKind.Constructor:return"Constructor";case bt.SymbolKind.Enum:return"Enum";case bt.SymbolKind.Interface:return"Interface";case bt.SymbolKind.Function:return"Function";case bt.SymbolKind.Variable:return"Variable";case bt.SymbolKind.Constant:return"Constant";case bt.SymbolKind.String:return"String";case bt.SymbolKind.Number:return"Number";case bt.SymbolKind.Boolean:return"Boolean";case bt.SymbolKind.Array:return"Array";case bt.SymbolKind.Object:return"Object";case bt.SymbolKind.Key:return"Key";case bt.SymbolKind.Null:return"Null";case bt.SymbolKind.EnumMember:return"EnumMember";case bt.SymbolKind.Struct:return"Struct";case bt.SymbolKind.Event:return"Event";case bt.SymbolKind.Operator:return"Operator";case bt.SymbolKind.TypeParameter:return"TypeParameter";default:return"Unknown"}}var bt,tb=k(()=>{"use strict";bt=S(W())});function R4(n,e){return`${n.name}${e?` ${e}`:""}`}function wTe(n,e){let t=n.selectionRange,i=e.selectionRange;return t.start.line!=i.start.line?t.start.line-i.start.line:t.start.character-i.start.character}var _4,L4,x5e,ib,I4=k(()=>{"use strict";_4=S(require("path"));Kn();Pe();L4=S(Bg());de();re();$e();ie();Xm();tb();qu();x5e=q()("list-symbols");ib=class extends po{constructor(){super(...arguments);this.description="symbols of current document";this.name="outline";this.options=[{name:"-k, -kind KIND",hasValue:!0,description:"filter symbol by kind"}]}async loadItems(t,i){let r=await t.window.buffer,o=v.getDocument(r.id);if(!o)return null;let a=this.getConfig().get("ctagsFiletypes",[]),l,u=this.parseArguments(t.args);if(a.includes(o.filetype)||(l=await _.getDocumentSymbol(o.textDocument,i)),i.isCancellationRequested)return[];if(!l)return await this.loadCtagsSymbols(o);if(l.length==0)return[];let c=u.kind?u.kind.toLowerCase():null,h=[];if(Eg.is(l[0])){let g=function(p,f=0){p.sort(wTe);for(let m of p){let b=Ms(m.kind),w=Xi.create(o.uri,m.selectionRange);h.push({label:[`${"| ".repeat(f)}${m.name}`,`[${b}]`,`${m.range.start.line+1}`],filterText:R4(m,u.kind==""?b:null),location:w,data:{kind:b}}),m.children&&m.children.length&&g(m.children,f+1)}};g(l),c&&(h=h.filter(p=>p.data.kind.toLowerCase().indexOf(c)==0))}else{l.sort((g,p)=>{let f=g.location.range.start,m=p.location.range.start,b=f.line-m.line;return b==0?f.character-m.character:b});for(let g of l){let p=Ms(g.kind);g.name.endsWith(") callback")||c&&!p.toLowerCase().startsWith(c)||(g.location.uri===void 0&&(g.location.uri=o.uri),h.push({label:[g.name,`[${p}]`,`${g.location.range.start.line+1}`],filterText:R4(g,u.kind==""?p:null),location:g.location}))}}return jr(this.alignColumns,h)}doHighlight(){let{nvim:t}=this;t.pauseNotification(),t.command("syntax match CocOutlineName /\\v\\s?[^\\t]+\\s/ contained containedin=CocOutlineLine",!0),t.command("syntax match CocOutlineIndentLine /\\v\\|/ contained containedin=CocOutlineLine,CocOutlineName",!0),t.command("syntax match CocOutlineKind /\\[\\w\\+\\]/ contained containedin=CocOutlineLine",!0),t.command("syntax match CocOutlineLine /\\d\\+$/ contained containedin=CocOutlineLine",!0),t.command("highlight default link CocOutlineName Normal",!0),t.command("highlight default link CocOutlineIndentLine Comment",!0),t.command("highlight default link CocOutlineKind Typedef",!0),t.command("highlight default link CocOutlineLine Comment",!0),t.resumeNotification(!1,!0)}async loadCtagsSymbols(t){if(!L4.default.sync("ctags",{nothrow:!0}))return[];let i=j.parse(t.uri),r=_4.default.extname(i.fsPath),o="",a=`${await this.nvim.call("tempname")}.${r}`,l=await this.nvim.call("fnameescape",a);await rp(l,t.getDocumentContent());try{o=await _o(`ctags -f - --excmd=number --language-force=${t.filetype} ${l}`)}catch{}if(o.trim().length||(o=await _o(`ctags -f - --excmd=number ${l}`)),o=o.trim(),!o)return[];let u=o.split(/\r?\n/),c=[];for(let h of u){let d=h.split(" ");if(d.length<4)continue;let g=Number(d[2].replace(/;"$/,"")),p=t.getline(g-1);if(!p)continue;let f=p.indexOf(d[0]),m=f==-1?0:f,b=Be.create(g-1,m,g-1,m+d[0].length);c.push({label:`${d[0]} [${d[3]}] ${g}`,filterText:d[0],location:Xi.create(t.uri,b),data:{line:g}})}return c.sort((h,d)=>h.data.line-d.data.line),c}}});var nb,F4=k(()=>{"use strict";Hm();Yo();re();qu();nb=class extends zt{constructor(t){super(t);this.defaultAction="toggle";this.description="registered services of coc.nvim";this.name="services";this.addAction("toggle",async i=>{let{id:r}=i.data;await yn.toggle(r),await Nt(100)},{persist:!0,reload:!0})}async loadItems(t){let i=yn.getServiceStats();return i.sort((r,o)=>r.id>o.id?-1:1),jr(this.alignColumns,i.map(r=>({label:[r.state=="running"?"*":" ",r.id,`[${r.state}]`,r.languageIds.join(", ")],data:{id:r.id}})))}doHighlight(){let{nvim:t}=this;t.pauseNotification(),t.command("syntax match CocServicesPrefix /\\v^./ contained containedin=CocServicesLine",!0),t.command("syntax match CocServicesName /\\v%3c\\S+/ contained containedin=CocServicesLine",!0),t.command("syntax match CocServicesStat /\\v\\t\\[\\w+\\]/ contained containedin=CocServicesLine",!0),t.command("syntax match CocServicesLanguages /\\v(\\])@<=.*$/ contained containedin=CocServicesLine",!0),t.command("highlight default link CocServicesPrefix Special",!0),t.command("highlight default link CocServicesName Type",!0),t.command("highlight default link CocServicesStat Statement",!0),t.command("highlight default link CocServicesLanguages Comment",!0),t.resumeNotification(!1,!0)}}});function pD(n,e){return n.length>e?n.slice(0,e-1)+".":n+" ".repeat(e-n.length)}var I5e,rb,j4=k(()=>{"use strict";Kn();Pe();Os();Yo();I5e=q()("list-sources"),rb=class extends zt{constructor(t){super(t);this.defaultAction="toggle";this.description="registered completion sources";this.name="sources";this.addAction("toggle",async i=>{let{name:r}=i.data;St.toggleSource(r)},{persist:!0,reload:!0}),this.addAction("refresh",async i=>{let{name:r}=i.data;await St.refresh(r)},{persist:!0,reload:!0}),this.addAction("open",async(i,r)=>{let{location:o}=i;o&&await this.jumpTo(o,null,r)})}async loadItems(t){let i=St.sourceStats();return i.sort((r,o)=>r.type!=o.type?r.type<o.type?1:-1:r.name>o.name?-1:1),i.map(r=>{let o=r.disabled?" ":"*",s;return r.filepath&&(s=Xi.create(j.file(r.filepath).toString(),Be.create(0,0,0,0))),{label:`${o} ${pD(r.name,22)} ${pD("["+r.shortcut+"]",10)} ${pD(r.triggerCharacters.join(""),10)} ${pD(r.priority.toString(),3)} ${r.filetypes.join(",")}`,location:s,data:{name:r.name}}})}doHighlight(){let{nvim:t}=this;t.pauseNotification(),t.command("syntax match CocSourcesPrefix /\\v^./ contained containedin=CocSourcesLine",!0),t.command("syntax match CocSourcesName /\\v%3c\\S+/ contained containedin=CocSourcesLine",!0),t.command("syntax match CocSourcesType /\\v%25v.*%36v/ contained containedin=CocSourcesLine",!0),t.command("syntax match CocSourcesPriority /\\v%46v.*%50v/ contained containedin=CocSourcesLine",!0),t.command("syntax match CocSourcesFileTypes /\\v\\S+$/ contained containedin=CocSourcesLine",!0),t.command("highlight default link CocSourcesPrefix Special",!0),t.command("highlight default link CocSourcesName Type",!0),t.command("highlight default link CocSourcesPriority Number",!0),t.command("highlight default link CocSourcesFileTypes Comment",!0),t.command("highlight default link CocSourcesType Statement",!0),t.resumeNotification(!1,!0)}}});function M4(n){let e=fd.Location.create(n.uri,fd.Range.create(n.range.start,n.range.start));return e.targetRange=n.range,e}var O4,A4,fd,Z5e,ob,N4=k(()=>{"use strict";O4=S(Lo()),A4=S(require("path")),fd=S(W());ph();Pe();de();tb();$e();_e();ie();Xm();Z5e=q()("list-symbols"),ob=class extends po{constructor(){super(...arguments);this.interactive=!0;this.description="search workspace symbols";this.detail="Symbols list is provided by server, it works on interactive mode only.";this.fuzzyMatch=v.createFuzzyMatch();this.name="symbols";this.options=[{name:"-k, -kind KIND",description:"Filter symbols by kind.",hasValue:!0}]}async loadItems(t,i){let{input:r}=t,o=this.parseArguments(t.args),s=o.kind?o.kind.toLowerCase():"";if(!t.options.interactive)throw new Error("Symbols only works on interactive mode");if(!_.hasProvider("workspaceSymbols",Vn.create("file:///1","",1,"")))throw new Error("No workspace symbols provider registered");let a=await _.getWorkspaceSymbols(r,i),u=this.getConfig().get("excludes",[]),c=[];r.length>0&&this.fuzzyMatch.setPattern(r,!0);for(let h of a){let d=Ms(h.kind);if(s&&d.toLowerCase()!=s)continue;let g;if(h.location&&(g=j.parse(h.location.uri).fsPath,Ye(v.cwd,g)&&(g=A4.default.relative(v.cwd,g)),u.some(f=>(0,O4.default)(g,f))))continue;let p=this.createListItem(r,h,d,g);c.push(p)}return this.fuzzyMatch.free(),c.sort((h,d)=>h.data.score!=d.data.score?d.data.score-h.data.score:h.data.kind!=d.data.kind?h.data.kind-d.data.kind:h.data.file.length-d.data.file.length),c}async resolveItem(t){let i=t.data.original;if(!i)return null;let r=new fd.CancellationTokenSource,o=await _.resolveWorkspaceSymbol(i,r.token);return o?(i.location=o.location,t.location=M4(o.location),t):null}createListItem(t,i,r,o){let{name:s}=i,a="",l=[],u=[s,`[${r}]`,o],c=["Normal","Typedef","Comment"];for(let d=0;d<u.length;d++){let g=u[d],p=Q(a);a+=g;let f=Q(a);d!=u.length-1&&(a+=" "),l.push({span:[p,f],hlGroup:c[d]})}let h=0;if(t.length>0){let d=this.fuzzyMatch.matchHighlights(s,"CocListSearch");d&&(h=d.score,l.push(...d.highlights))}return{label:a,filterText:"",ansiHighlights:l,location:M4(i.location),data:{original:i,input:t,kind:i.kind,file:o,score:h}}}doHighlight(){}}});var q4,fD,B4,xTe,H4,CF,Bi,mD=k(()=>{"use strict";q4=S(Pn()),fD=S(W());fe();Wo();re();ie();xe();rD();QQ();e4();yF();bF();h4();b4();v4();x4();D4();P4();E4();Xm();I4();F4();j4();N4();B4=S(qw()),xTe=q()("list-manager"),H4=["<LeftMouse>","<LeftDrag>","<LeftRelease>","<2-LeftMouse>"],CF=class{constructor(){this.plugTs=0;this.sessionsMap=new Map;this.disposables=[];this.listMap=new Map}init(e){this.nvim=e,this.config=new Au,this.prompt=new Bm(e,this.config),this.mappings=new qm(this,e,this.config),this.db=new gd,Nu.migrate(process.env.COC_DATA_HOME);let t=this.config.get("selectedSignText","*");e.command(`sign define CocSelected text=${t} texthl=CocSelectedText linehl=CocSelectedLine`,!0),P.on("InputChar",this.onInputChar,this,this.disposables);let i=(0,q4.default)(async()=>{await this.getCurrentSession()&&this.prompt.drawPrompt()},100);P.on("FocusGained",i,null,this.disposables),P.on("WinEnter",o=>{let s=this.getSessionByWinid(o);s&&this.prompt.start(s.listOptions)},null,this.disposables);let r;P.on("WinLeave",o=>{r&&clearTimeout(r),this.getSessionByWinid(o)&&setTimeout(()=>{this.prompt.cancel()},v.isVim?50:0)},null,this.disposables),P.on("VimLeavePre",()=>{this.db.save()},null,this.disposables),this.disposables.push({dispose:()=>{i.clear()}}),this.prompt.onDidChangeInput(()=>{var o;(o=this.session)==null||o.onInputChange()}),this.registerList(new Vm(e)),this.registerList(new po(e)),this.registerList(new ob(e)),this.registerList(new ib(e)),this.registerList(new Um(e)),this.registerList(new Km(e)),this.registerList(new Gm(e,this)),this.registerList(new rb(e)),this.registerList(new nb(e)),this.registerList(new eb(e,this.listMap)),this.registerList(new Qm(e))}async start(e){let t=this.parseArgs(e);if(!t)return;let{name:i}=t.list,r=this.sessionsMap.get(i);r&&r.dispose(),this.prompt.start(t.options);let o=new Jm(this.nvim,this.prompt,t.list,t.options,t.listArgs,this.config,this.db);this.sessionsMap.set(i,o),this.lastSession=o;try{await o.start(e)}catch(s){this.nvim.command('echo ""',!0),this.nvim.call("coc#prompt#stop_prompt",["list"],!0);let a=s instanceof Error?s.message:s.toString();D.showErrorMessage(`Error on "CocList ${i}": ${a}`),this.nvim.redrawVim(),xTe.error(s)}}getSessionByWinid(e){for(let t of this.sessionsMap.values())if(t&&t.winid==e)return this.lastSession=t,t;return null}async getCurrentSession(){let{id:e}=await this.nvim.window;for(let t of this.sessionsMap.values())if(t&&t.winid==e)return this.lastSession=t,t;return null}async resume(e){var t;if(!e)await((t=this.session)==null?void 0:t.resume());else{let i=this.sessionsMap.get(e);if(!i){D.showWarningMessage(`Can't find exists ${e} list`);return}await i.resume()}}async doAction(e){let t=this.lastSession;!t||await t.doAction(e)}async first(e){let t=this.getSession(e);t&&await t.first()}async last(e){let t=this.getSession(e);t&&await t.last()}async previous(e){let t=this.getSession(e);t&&await t.previous()}async next(e){let t=this.getSession(e);t&&await t.next()}getSession(e){return e?this.sessionsMap.get(e):this.session}async cancel(e=!0){this.prompt.cancel(),!!e&&this.session&&await this.session.hide()}reset(){this.prompt.cancel(),this.lastSession=void 0;for(let e of this.sessionsMap.values())e.dispose();this.sessionsMap.clear(),this.nvim.call("coc#prompt#stop_prompt",["list"],!0)}async switchMatcher(){var e;await((e=this.session)==null?void 0:e.switchMatcher())}async togglePreview(){let{nvim:e}=this,t=await e.call("coc#list#get_preview",[0]);t!=-1?(await e.call("coc#window#close",[t]),await e.command("redraw")):await this.doAction("preview")}async chooseAction(){let{lastSession:e}=this;e&&await e.chooseAction()}parseArgs(e){let t=[],i=!1,r=!1,o=!1,s=!1,a=!1,l=!1,u,c="",h="fuzzy",d="bottom",g=[],p=[];for(let b of e)if(!u&&b.startsWith("-"))p.push(b);else if(u)g.push(b);else{if(!/^\w+$/.test(b))return D.showErrorMessage(`Invalid list option: "${b}"`),null;u=b}u=u||"lists";let f=v.getConfiguration(`list.source.${u}`);!p.length&&!g.length&&(p=f.get("defaultOptions",[])),g.length||(g=f.get("defaultArgs",[]));for(let b of p)if(b.startsWith("--input"))c=b.slice(8);else if(b=="--number-select"||b=="-N")o=!0;else if(b=="--auto-preview"||b=="-A")r=!0;else if(b=="--regex"||b=="-R")h="regex";else if(b=="--strict"||b=="-S")h="strict";else if(b=="--interactive"||b=="-I")i=!0;else if(b=="--top")d="top";else if(b=="--tab")d="tab";else if(b=="--ignore-case"||b=="--normal"||b=="--no-sort")t.push(b.slice(2));else if(b=="--first")a=!0;else if(b=="--reverse")l=!0;else if(b=="--no-quit")s=!0;else return D.showErrorMessage(`Invalid option "${b}" of list`),null;let m=this.listMap.get(u);return m?i&&!m.interactive?(D.showErrorMessage(`Interactive mode of "${u}" list not supported`),null):{list:m,listArgs:g,options:{numberSelect:o,autoPreview:r,reverse:l,noQuit:s,first:a,input:c,interactive:i,matcher:h,position:d,smartcase:this.config.smartcase,ignorecase:!!t.includes("ignore-case"),mode:t.includes("normal")?"normal":"insert",sort:!t.includes("no-sort")}}:(D.showErrorMessage(`List ${u} not found`),null)}async onInputChar(e,t,i){if(e!="list")return;let{mode:r}=this.prompt,o=Date.now();if(t=="<plug>"||this.plugTs&&o-this.plugTs<20){this.plugTs=o;return}if(!!t){if(t=="<esc>"){await this.cancel();return}r=="insert"?await this.onInsertInput(t,i):await this.onNormalInput(t,i)}}async onInsertInput(e,t){let{session:i}=this;if(!i)return;if(H4.includes(e)){await this.onMouseEvent(e);return}if(!(await i.doNumberSelect(e)||await this.mappings.doInsertKeymap(e)||t)){if(e.startsWith("<")&&e.endsWith(">")){await this.feedkeys(e,!1);return}for(let s of e){let a=s.codePointAt(0);if(a==65533||a<32||a>=127&&a<=159)return;await this.prompt.acceptCharacter(s)}}}async onNormalInput(e,t){if(H4.includes(e)){await this.onMouseEvent(e);return}await this.mappings.doNormalKeymap(e)||await this.feedkeys(e)}onMouseEvent(e){if(this.session)return this.session.onMouseEvent(e)}async feedkeys(e,t=!0){let{nvim:i}=this;e=e.startsWith("<")&&e.endsWith(">")?`\\${e}`:e,await i.call("coc#prompt#stop_prompt",["list"]),await i.call("eval",[`feedkeys("${e}", "${t?"i":"in"}")`]),this.prompt.start()}async command(e){let{nvim:t}=this;await t.call("coc#prompt#stop_prompt",["list"]),await t.command(e),this.prompt.start()}async normal(e,t=!0){let{nvim:i}=this;await i.call("coc#prompt#stop_prompt",["list"]),await i.command(`normal${t?"!":""} ${e}`),this.prompt.start()}async call(e){if(this.session)return await this.session.call(e)}get session(){return this.lastSession}registerList(e){let{name:t}=e,i=this.listMap.get(t);return this.listMap.has(t)&&(i&&(typeof i.dispose=="function"&&i.dispose(),this.listMap.delete(t)),D.showWarningMessage(`list "${t}" recreated.`)),this.listMap.set(t,e),je.addSchemeProperty(`list.source.${t}.defaultAction`,{type:"string",default:null,description:`Default action of "${t}" list.`},"list-manager"),je.addSchemeProperty(`list.source.${t}.defaultOptions`,{type:"array",default:e.interactive?["--interactive"]:[],description:`Default list options of "${t}" list, only used when both list option and argument are empty.`,uniqueItems:!0,items:{type:"string",enum:["--top","--normal","--no-sort","--input","--tab","--strict","--regex","--ignore-case","--number-select","--reverse","--interactive","--auto-preview","--first","--no-quit"]}},"list-manager"),je.addSchemeProperty(`list.source.${t}.defaultArgs`,{type:"array",default:[],description:`Default argument list of "${t}" list, only used when list argument is empty.`,uniqueItems:!0,items:{type:"string"}},"list-manager"),fD.Disposable.create(()=>{typeof e.dispose=="function"&&e.dispose(),this.listMap.delete(t)})}get names(){return Array.from(this.listMap.keys())}get descriptions(){let e={};for(let t of this.listMap.keys()){let i=this.listMap.get(t);e[t]=i.description}return e}async loadItems(e){let t=[e],i=this.parseArgs(t);if(!i)return;let{list:r,options:o,listArgs:s}=i,l=new fD.CancellationTokenSource().token,u=await this.nvim.eval('[win_getid(),bufnr("%")]'),c=await r.loadItems({options:o,args:s,input:"",cwd:v.cwd,window:this.nvim.createWindow(u[0]),buffer:this.nvim.createBuffer(u[1]),listWindow:null},l);if(!c||Array.isArray(c))return c;let h=c;return await new Promise((g,p)=>{let f=[];h.on("data",m=>{m.label=(0,B4.default)(m.label),f.push(m)}),h.on("end",()=>{g(f)}),h.on("error",m=>{p(m)})})}toggleMode(){let e=this.lastSession;e&&e.toggleMode()}get isActivated(){var e;return((e=this.session)==null?void 0:e.winid)!=null}stop(){let e=this.lastSession;e&&e.stop()}dispose(){for(let e of this.sessionsMap.values())e.dispose();this.sessionsMap.clear(),this.config&&this.config.dispose(),this.lastSession=void 0,U(this.disposables)}},Bi=new CF});var Y4=y((m7e,W4)=>{W4.exports=["\0","","","","","","","\x07","\b"," ",`
|
||
`,"\v","\f","\r","","","","","","","","","","","","","","\x1B","","","",""," ","!",'"',"#","$","%","&","'","(",")","*","+",",","-",".","/","0","1","2","3","4","5","6","7","8","9",":",";","<","=",">","?","@","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","[","\\","]","^","_","`","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","{","|","}","~","\x7F","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""," ","!","C/","PS","$?","Y=","|","SS",'"',"(c)","a","<<","!","","(r)","-","deg","+-","2","3","'","u","P","*",",","1","o",">>","1/4","1/2","3/4","?","A","A","A","A","A","A","AE","C","E","E","E","E","I","I","I","I","D","N","O","O","O","O","O","x","O","U","U","U","U","U","Th","ss","a","a","a","a","a","a","ae","c","e","e","e","e","i","i","i","i","d","n","o","o","o","o","o","/","o","u","u","u","u","y","th","y"]});var J4=y((b7e,Z4)=>{Z4.exports=["A","a","A","a","A","a","C","c","C","c","C","c","C","c","D","d","D","d","E","e","E","e","E","e","E","e","E","e","G","g","G","g","G","g","G","g","H","h","H","h","I","i","I","i","I","i","I","i","I","i","IJ","","J","j","K","k","k","L","l","L","l","L","l","L","l","L","l","N","n","N","n","N","n","'n","ng","NG","O","o","O","o","O","o","OE","oe","R","r","R","r","R","r","S","s","S","s","S","s","S","s","T","t","T","t","T","t","U","u","U","u","U","u","U","u","U","u","U","u","W","w","Y","y","Y","Z","z","Z","z","Z","z","s","b","B","B","b","6","6","O","C","c","D","D","D","d","d","3","@","E","F","f","G","G","hv","I","I","K","k","l","l","W","N","n","O","O","o","OI","oi","P","p","YR","2","2","SH","sh","t","T","t","T","U","u","Y","V","Y","y","Z","z","ZH","ZH","zh","zh","2","5","5","ts","w","|","||","|=","!","DZ","Dz","dz","LJ","Lj","lj","NJ","Nj","nj","A","a","I","i","O","o","U","u","U","u","U","u","U","u","U","u","@","A","a","A","a","AE","ae","G","g","G","g","K","k","O","o","O","o","ZH","zh","j","DZ","D","dz","G","g","HV","W","N","n","A","a","AE","ae","O","o"]});var U4=y((y7e,$4)=>{$4.exports=["A","a","A","a","E","e","E","e","I","i","I","i","O","o","O","o","R","r","R","r","U","u","U","u","S","s","T","t","Y","y","H","h","[?]","[?]","OU","ou","Z","z","A","a","E","e","O","o","O","o","O","o","O","o","Y","y","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","a","a","a","b","o","c","d","d","e","@","@","e","e","e","e","j","g","g","g","g","u","Y","h","h","i","i","I","l","l","l","lZ","W","W","m","n","n","n","o","OE","O","F","R","R","R","R","r","r","R","R","R","s","S","j","S","S","t","t","U","U","v","^","W","Y","Y","z","z","Z","Z","?","?","?","C","@","B","E","G","H","j","k","L","q","?","?","dz","dZ","dz","ts","tS","tC","fN","ls","lz","WW","]]","[?]","[?]","k","h","j","r","r","r","r","w","y","'",'"',"`","'","`","`","'","?","?","<",">","^","V","^","V","'","-","/","\\",",","_","\\","/",":",".","`","'","^","V","+","-","V",".","@",",","~",'"',"R","X","G","l","s","x","?","","","","","","","","V","=",'"',"[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var G4=y((v7e,X4)=>{X4.exports=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","","","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","'",",","[?]","[?]","[?]","[?]","","[?]","[?]","[?]","?","[?]","[?]","[?]","[?]","[?]","","","A",";","E","E","I","[?]","O","[?]","U","O","I","A","B","G","D","E","Z","E","Th","I","K","L","M","N","Ks","O","P","R","[?]","S","T","U","Ph","Kh","Ps","O","I","U","a","e","e","i","u","a","b","g","d","e","z","e","th","i","k","l","m","n","x","o","p","r","s","s","t","u","ph","kh","ps","o","i","u","o","u","o","[?]","b","th","U","U","U","ph","p","&","[?]","[?]","St","st","W","w","Q","q","Sp","sp","Sh","sh","F","f","Kh","kh","H","h","G","g","CH","ch","Ti","ti","k","r","c","j","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var K4=y((w7e,z4)=>{z4.exports=["Ie","Io","Dj","Gj","Ie","Dz","I","Yi","J","Lj","Nj","Tsh","Kj","I","U","Dzh","A","B","V","G","D","Ie","Zh","Z","I","I","K","L","M","N","O","P","R","S","T","U","F","Kh","Ts","Ch","Sh","Shch","","Y","'","E","Iu","Ia","a","b","v","gh","d","ie","zh","z","i","i","k","l","m","n","o","p","r","s","t","u","f","kh","ts","ch","sh","shch","","y","'","e","iu","ia","ie","io","dj","gj","ie","dz","i","yi","j","lj","nj","tsh","kj","i","u","dzh","O","o","E","e","Ie","ie","E","e","Ie","ie","O","o","Io","io","Ks","ks","Ps","ps","F","f","Y","y","Y","y","u","u","O","o","O","o","Ot","ot","Q","q","*1000*","","","","","[?]","*100.000*","*1.000.000*","[?]","[?]",'"','"',"R'","r'","G'","g'","G'","g'","G'","g'","Zh'","zh'","Z'","z'","K'","k'","K'","k'","K'","k'","K'","k'","N'","n'","Ng","ng","P'","p'","Kh","kh","S'","s'","T'","t'","U","u","U'","u'","Kh'","kh'","Tts","tts","Ch'","ch'","Ch'","ch'","H","h","Ch","ch","Ch'","ch'","`","Zh","zh","K'","k'","[?]","[?]","N'","n'","[?]","[?]","Ch","ch","[?]","[?]","[?]","a","a","A","a","Ae","ae","Ie","ie","@","@","@","@","Zh","zh","Z","z","Dz","dz","I","i","I","i","O","o","O","o","O","o","E","e","U","u","U","u","U","u","Ch","ch","[?]","[?]","Y","y","[?]","[?]","[?]","[?]","[?]"]});var V4=y((x7e,Q4)=>{Q4.exports=["[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","A","B","G","D","E","Z","E","E","T`","Zh","I","L","Kh","Ts","K","H","Dz","Gh","Ch","M","Y","N","Sh","O","Ch`","P","J","Rh","S","V","T","R","Ts`","W","P`","K`","O","F","[?]","[?]","<","'","/","!",",","?",".","[?]","a","b","g","d","e","z","e","e","t`","zh","i","l","kh","ts","k","h","dz","gh","ch","m","y","n","sh","o","ch`","p","j","rh","s","v","t","r","ts`","w","p`","k`","o","f","ew","[?]",".","-","[?]","[?]","[?]","[?]","[?]","[?]","","","","","","","","","","","","","","","","","","[?]","","","","","","","","","","","","","","@","e","a","o","i","e","e","a","a","o","[?]","u","'","","","","","","",":","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","","b","g","d","h","v","z","kh","t","y","k","k","l","m","m","n","n","s","`","p","p","ts","ts","q","r","sh","t","[?]","[?]","[?]","[?]","[?]","V","oy","i","'",'"',"[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var t6=y((C7e,e6)=>{e6.exports=["[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]",",","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]",";","[?]","[?]","[?]","?","[?]","","a","'","w'","","y'","","b","@","t","th","j","H","kh","d","dh","r","z","s","sh","S","D","T","Z","aa","G","[?]","[?]","[?]","[?]","[?]","","f","q","k","l","m","n","h","w","~","y","an","un","in","a","u","i","W","","","'","'","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","0","1","2","3","4","5","6","7","8","9","%",".",",","*","[?]","[?]","","'","'","'","","'","'w","'u","'y","tt","tth","b","t","T","p","th","bh","'h","H","ny","dy","H","ch","cch","dd","D","D","Dt","dh","ddh","d","D","D","rr","R","R","R","R","R","R","j","R","S","S","S","S","S","T","GH","F","F","F","v","f","ph","Q","Q","kh","k","K","K","ng","K","g","G","N","G","G","G","L","L","L","L","N","N","N","N","N","h","Ch","hy","h","H","@","W","oe","oe","u","yu","yu","W","v","y","Y","Y","W","","","y","y'",".","ae","","","","","","","","@","#","","","","","","","","","","","^","","","","","[?]","[?]","0","1","2","3","4","5","6","7","8","9","Sh","D","Gh","&","+m"]});var n6=y((S7e,i6)=>{i6.exports=["//","/",",","!","!","-",",",",",";","?","~","{","}","*","[?]","","'","","b","g","g","d","d","h","w","z","H","t","t","y","yh","k","l","m","n","s","s","`","p","p","S","q","r","sh","t","[?]","[?]","[?]","a","a","a","A","A","A","e","e","e","E","i","i","u","u","u","o","","`","'","","","X","Q","@","@","|","+","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","h","sh","n","r","b","L","k","'","v","m","f","dh","th","l","g","ny","s","d","z","t","y","p","j","ch","tt","hh","kh","th","z","sh","s","d","t","z","`","gh","q","w","a","aa","i","ee","u","oo","e","ey","o","oa","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var o6=y((D7e,r6)=>{r6.exports=["[?]","N","N","H","[?]","a","aa","i","ii","u","uu","R","L","eN","e","e","ai","oN","o","o","au","k","kh","g","gh","ng","c","ch","j","jh","ny","tt","tth","dd","ddh","nn","t","th","d","dh","n","nnn","p","ph","b","bh","m","y","r","rr","l","l","lll","v","sh","ss","s","h","[?]","[?]","'","'","aa","i","ii","u","uu","R","RR","eN","e","e","ai","oN","o","o","au","","[?]","[?]","AUM","'","'","`","'","[?]","[?]","[?]","q","khh","ghh","z","dddh","rh","f","yy","RR","LL","L","LL"," / "," // ","0","1","2","3","4","5","6","7","8","9",".","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","N","N","H","[?]","a","aa","i","ii","u","uu","R","RR","[?]","[?]","e","ai","[?]","[?]","o","au","k","kh","g","gh","ng","c","ch","j","jh","ny","tt","tth","dd","ddh","nn","t","th","d","dh","n","[?]","p","ph","b","bh","m","y","r","[?]","l","[?]","[?]","[?]","sh","ss","s","h","[?]","[?]","'","[?]","aa","i","ii","u","uu","R","RR","[?]","[?]","e","ai","[?]","[?]","o","au","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","+","[?]","[?]","[?]","[?]","rr","rh","[?]","yy","RR","LL","L","LL","[?]","[?]","0","1","2","3","4","5","6","7","8","9","r'","r`","Rs","Rs","1/","2/","3/","4/"," 1 - 1/","/16","","[?]","[?]","[?]","[?]"]});var a6=y((T7e,s6)=>{s6.exports=["[?]","[?]","N","[?]","[?]","a","aa","i","ii","u","uu","[?]","[?]","[?]","[?]","ee","ai","[?]","[?]","oo","au","k","kh","g","gh","ng","c","ch","j","jh","ny","tt","tth","dd","ddh","nn","t","th","d","dh","n","[?]","p","ph","b","bb","m","y","r","[?]","l","ll","[?]","v","sh","[?]","s","h","[?]","[?]","'","[?]","aa","i","ii","u","uu","[?]","[?]","[?]","[?]","ee","ai","[?]","[?]","oo","au","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","khh","ghh","z","rr","[?]","f","[?]","[?]","[?]","[?]","[?]","[?]","[?]","0","1","2","3","4","5","6","7","8","9","N","H","","","G.E.O.","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","N","N","H","[?]","a","aa","i","ii","u","uu","R","[?]","eN","[?]","e","ai","oN","[?]","o","au","k","kh","g","gh","ng","c","ch","j","jh","ny","tt","tth","dd","ddh","nn","t","th","d","dh","n","[?]","p","ph","b","bh","m","ya","r","[?]","l","ll","[?]","v","sh","ss","s","h","[?]","[?]","'","'","aa","i","ii","u","uu","R","RR","eN","[?]","e","ai","oN","[?]","o","au","","[?]","[?]","AUM","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","RR","[?]","[?]","[?]","[?]","[?]","0","1","2","3","4","5","6","7","8","9","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var u6=y((k7e,l6)=>{l6.exports=["[?]","N","N","H","[?]","a","aa","i","ii","u","uu","R","L","[?]","[?]","e","ai","[?]","[?]","o","au","k","kh","g","gh","ng","c","ch","j","jh","ny","tt","tth","dd","ddh","nn","t","th","d","dh","n","[?]","p","ph","b","bh","m","y","r","[?]","l","ll","[?]","","sh","ss","s","h","[?]","[?]","'","'","aa","i","ii","u","uu","R","[?]","[?]","[?]","e","ai","[?]","[?]","o","au","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","+","+","[?]","[?]","[?]","[?]","rr","rh","[?]","yy","RR","LL","[?]","[?]","[?]","[?]","0","1","2","3","4","5","6","7","8","9","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","N","H","[?]","a","aa","i","ii","u","uu","[?]","[?]","[?]","e","ee","ai","[?]","o","oo","au","k","[?]","[?]","[?]","ng","c","[?]","j","[?]","ny","tt","[?]","[?]","[?]","nn","t","[?]","[?]","[?]","n","nnn","p","[?]","[?]","[?]","m","y","r","rr","l","ll","lll","v","[?]","ss","s","h","[?]","[?]","[?]","[?]","aa","i","ii","u","uu","[?]","[?]","[?]","e","ee","ai","[?]","o","oo","au","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","+","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","0","1","2","3","4","5","6","7","8","9","+10+","+100+","+1000+","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var h6=y((P7e,c6)=>{c6.exports=["[?]","N","N","H","[?]","a","aa","i","ii","u","uu","R","L","[?]","e","ee","ai","[?]","o","oo","au","k","kh","g","gh","ng","c","ch","j","jh","ny","tt","tth","dd","ddh","nn","t","th","d","dh","n","[?]","p","ph","b","bh","m","y","r","rr","l","ll","[?]","v","sh","ss","s","h","[?]","[?]","[?]","[?]","aa","i","ii","u","uu","R","RR","[?]","e","ee","ai","[?]","o","oo","au","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","+","+","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","RR","LL","[?]","[?]","[?]","[?]","0","1","2","3","4","5","6","7","8","9","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","N","H","[?]","a","aa","i","ii","u","uu","R","L","[?]","e","ee","ai","[?]","o","oo","au","k","kh","g","gh","ng","c","ch","j","jh","ny","tt","tth","dd","ddh","nn","t","th","d","dh","n","[?]","p","ph","b","bh","m","y","r","rr","l","ll","[?]","v","sh","ss","s","h","[?]","[?]","[?]","[?]","aa","i","ii","u","uu","R","RR","[?]","e","ee","ai","[?]","o","oo","au","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","+","+","[?]","[?]","[?]","[?]","[?]","[?]","[?]","lll","[?]","RR","LL","[?]","[?]","[?]","[?]","0","1","2","3","4","5","6","7","8","9","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var g6=y((E7e,d6)=>{d6.exports=["[?]","[?]","N","H","[?]","a","aa","i","ii","u","uu","R","L","[?]","e","ee","ai","[?]","o","oo","au","k","kh","g","gh","ng","c","ch","j","jh","ny","tt","tth","dd","ddh","nn","t","th","d","dh","n","[?]","p","ph","b","bh","m","y","r","rr","l","ll","lll","v","sh","ss","s","h","[?]","[?]","[?]","[?]","aa","i","ii","u","uu","R","[?]","[?]","e","ee","ai","","o","oo","au","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","+","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","RR","LL","[?]","[?]","[?]","[?]","0","1","2","3","4","5","6","7","8","9","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","N","H","[?]","a","aa","ae","aae","i","ii","u","uu","R","RR","L","LL","e","ee","ai","o","oo","au","[?]","[?]","[?]","k","kh","g","gh","ng","nng","c","ch","j","jh","ny","jny","nyj","tt","tth","dd","ddh","nn","nndd","t","th","d","dh","n","[?]","nd","p","ph","b","bh","m","mb","y","r","[?]","l","[?]","[?]","v","sh","ss","s","h","ll","f","[?]","[?]","[?]","","[?]","[?]","[?]","[?]","aa","ae","aae","i","ii","u","[?]","uu","[?]","R","e","ee","ai","o","oo","au","L","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","RR","LL"," . ","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var f6=y((R7e,p6)=>{p6.exports=["[?]","k","kh","kh","kh","kh","kh","ng","cch","ch","ch","ch","ch","y","d","t","th","th","th","n","d","t","th","th","th","n","b","p","ph","f","ph","f","ph","m","y","r","R","l","L","w","s","s","s","h","l","`","h","~","a","a","aa","am","i","ii","ue","uue","u","uu","'","[?]","[?]","[?]","[?]","Bh.","e","ae","o","ai","ai","ao","+","","","","","","","M",""," * ","0","1","2","3","4","5","6","7","8","9"," // "," /// ","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","k","kh","[?]","kh","[?]","[?]","ng","ch","[?]","s","[?]","[?]","ny","[?]","[?]","[?]","[?]","[?]","[?]","d","h","th","th","[?]","n","b","p","ph","f","ph","f","[?]","m","y","r","[?]","l","[?]","w","[?]","[?]","s","h","[?]","`","","~","a","","aa","am","i","ii","y","yy","u","uu","[?]","o","l","ny","[?]","[?]","e","ei","o","ay","ai","[?]","+","[?]","","","","","","M","[?]","[?]","0","1","2","3","4","5","6","7","8","9","[?]","[?]","hn","hm","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var b6=y((_7e,m6)=>{m6.exports=["AUM","","","","","","",""," // "," * ","","-"," / "," / "," // "," -/ "," +/ "," X/ "," /XX/ "," /X/ ",", ","","","","","","","","","","","","0","1","2","3","4","5","6","7","8","9",".5","1.5","2.5","3.5","4.5","5.5","6.5","7.5","8.5","-.5","+","*","^","_","","~","[?]","]","[[","]]","","","k","kh","g","gh","ng","c","ch","j","[?]","ny","tt","tth","dd","ddh","nn","t","th","d","dh","n","p","ph","b","bh","m","ts","tsh","dz","dzh","w","zh","z","'","y","r","l","sh","ssh","s","h","a","kss","r","[?]","[?]","[?]","[?]","[?]","[?]","aa","i","ii","u","uu","R","RR","L","LL","e","ee","o","oo","M","H","i","ii","","","","","","","","","","","[?]","[?]","[?]","[?]","k","kh","g","gh","ng","c","ch","j","[?]","ny","tt","tth","dd","ddh","nn","t","th","d","dh","n","p","ph","b","bh","m","ts","tsh","dz","dzh","w","zh","z","'","y","r","l","sh","ss","s","h","a","kss","w","y","r","[?]","X"," :X: "," /O/ "," /o/ "," \\o\\ "," (O) ","","","","","","","","","","[?]","[?]","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var v6=y((L7e,y6)=>{y6.exports=["k","kh","g","gh","ng","c","ch","j","jh","ny","nny","tt","tth","dd","ddh","nn","tt","th","d","dh","n","p","ph","b","bh","m","y","r","l","w","s","h","ll","a","[?]","i","ii","u","uu","e","[?]","o","au","[?]","aa","i","ii","u","uu","e","ai","[?]","[?]","[?]","N","'",":","","[?]","[?]","[?]","[?]","[?]","[?]","0","1","2","3","4","5","6","7","8","9"," / "," // ","n*","r*","l*","e*","sh","ss","R","RR","L","LL","R","RR","L","LL","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","A","B","G","D","E","V","Z","T`","I","K","L","M","N","O","P","Zh","R","S","T","U","P`","K`","G'","Q","Sh","Ch`","C`","Z'","C","Ch","X","J","H","E","Y","W","Xh","OE","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","a","b","g","d","e","v","z","t`","i","k","l","m","n","o","p","zh","r","s","t","u","p`","k`","g'","q","sh","ch`","c`","z'","c","ch","x","j","h","e","y","w","xh","oe","f","[?]","[?]","[?]","[?]"," // ","[?]","[?]","[?]"]});var x6=y((I7e,w6)=>{w6.exports=["g","gg","n","d","dd","r","m","b","bb","s","ss","","j","jj","c","k","t","p","h","ng","nn","nd","nb","dg","rn","rr","rh","rN","mb","mN","bg","bn","","bs","bsg","bst","bsb","bss","bsj","bj","bc","bt","bp","bN","bbN","sg","sn","sd","sr","sm","sb","sbg","sss","s","sj","sc","sk","st","sp","sh","","","","","Z","g","d","m","b","s","Z","","j","c","t","p","N","j","","","","","ck","ch","","","pb","pN","hh","Q","[?]","[?]","[?]","[?]","[?]","","","a","ae","ya","yae","eo","e","yeo","ye","o","wa","wae","oe","yo","u","weo","we","wi","yu","eu","yi","i","a-o","a-u","ya-o","ya-yo","eo-o","eo-u","eo-eu","yeo-o","yeo-u","o-eo","o-e","o-ye","o-o","o-u","yo-ya","yo-yae","yo-yeo","yo-o","yo-i","u-a","u-ae","u-eo-eu","u-ye","u-u","yu-a","yu-eo","yu-e","yu-yeo","yu-ye","yu-u","yu-i","eu-u","eu-eu","yi-u","i-a","i-ya","i-o","i-u","i-eu","i-U","U","U-eo","U-u","U-i","UU","[?]","[?]","[?]","[?]","[?]","g","gg","gs","n","nj","nh","d","l","lg","lm","lb","ls","lt","lp","lh","m","b","bs","s","ss","ng","j","c","k","t","p","h","gl","gsg","ng","nd","ns","nZ","nt","dg","tl","lgs","ln","ld","lth","ll","lmg","lms","lbs","lbh","rNp","lss","lZ","lk","lQ","mg","ml","mb","ms","mss","mZ","mc","mh","mN","bl","bp","ph","pN","sg","sd","sl","sb","Z","g","ss","","kh","N","Ns","NZ","pb","pN","hn","hl","hm","hb","Q","[?]","[?]","[?]","[?]","[?]"]});var S6=y((F7e,C6)=>{C6.exports=["ha","hu","hi","haa","hee","he","ho","[?]","la","lu","li","laa","lee","le","lo","lwa","hha","hhu","hhi","hhaa","hhee","hhe","hho","hhwa","ma","mu","mi","maa","mee","me","mo","mwa","sza","szu","szi","szaa","szee","sze","szo","szwa","ra","ru","ri","raa","ree","re","ro","rwa","sa","su","si","saa","see","se","so","swa","sha","shu","shi","shaa","shee","she","sho","shwa","qa","qu","qi","qaa","qee","qe","qo","[?]","qwa","[?]","qwi","qwaa","qwee","qwe","[?]","[?]","qha","qhu","qhi","qhaa","qhee","qhe","qho","[?]","qhwa","[?]","qhwi","qhwaa","qhwee","qhwe","[?]","[?]","ba","bu","bi","baa","bee","be","bo","bwa","va","vu","vi","vaa","vee","ve","vo","vwa","ta","tu","ti","taa","tee","te","to","twa","ca","cu","ci","caa","cee","ce","co","cwa","xa","xu","xi","xaa","xee","xe","xo","[?]","xwa","[?]","xwi","xwaa","xwee","xwe","[?]","[?]","na","nu","ni","naa","nee","ne","no","nwa","nya","nyu","nyi","nyaa","nyee","nye","nyo","nywa","'a","'u","[?]","'aa","'ee","'e","'o","'wa","ka","ku","ki","kaa","kee","ke","ko","[?]","kwa","[?]","kwi","kwaa","kwee","kwe","[?]","[?]","kxa","kxu","kxi","kxaa","kxee","kxe","kxo","[?]","kxwa","[?]","kxwi","kxwaa","kxwee","kxwe","[?]","[?]","wa","wu","wi","waa","wee","we","wo","[?]","`a","`u","`i","`aa","`ee","`e","`o","[?]","za","zu","zi","zaa","zee","ze","zo","zwa","zha","zhu","zhi","zhaa","zhee","zhe","zho","zhwa","ya","yu","yi","yaa","yee","ye","yo","[?]","da","du","di","daa","dee","de","do","dwa","dda","ddu","ddi","ddaa","ddee","dde","ddo","ddwa"]});var T6=y((j7e,D6)=>{D6.exports=["ja","ju","ji","jaa","jee","je","jo","jwa","ga","gu","gi","gaa","gee","ge","go","[?]","gwa","[?]","gwi","gwaa","gwee","gwe","[?]","[?]","gga","ggu","ggi","ggaa","ggee","gge","ggo","[?]","tha","thu","thi","thaa","thee","the","tho","thwa","cha","chu","chi","chaa","chee","che","cho","chwa","pha","phu","phi","phaa","phee","phe","pho","phwa","tsa","tsu","tsi","tsaa","tsee","tse","tso","tswa","tza","tzu","tzi","tzaa","tzee","tze","tzo","[?]","fa","fu","fi","faa","fee","fe","fo","fwa","pa","pu","pi","paa","pee","pe","po","pwa","rya","mya","fya","[?]","[?]","[?]","[?]","[?]","[?]"," ",".",",",";",":",":: ","?","//","1","2","3","4","5","6","7","8","9","10+","20+","30+","40+","50+","60+","70+","80+","90+","100+","10,000+","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","a","e","i","o","u","v","ga","ka","ge","gi","go","gu","gv","ha","he","hi","ho","hu","hv","la","le","li","lo","lu","lv","ma","me","mi","mo","mu","na","hna","nah","ne","ni","no","nu","nv","qua","que","qui","quo","quu","quv","sa","s","se","si","so","su","sv","da","ta","de","te","di","ti","do","du","dv","dla","tla","tle","tli","tlo","tlu","tlv","tsa","tse","tsi","tso","tsu","tsv","wa","we","wi","wo","wu","wv","ya","ye","yi","yo","yu","yv","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var P6=y((M7e,k6)=>{k6.exports=["[?]","e","aai","i","ii","o","oo","oo","ee","i","a","aa","we","we","wi","wi","wii","wii","wo","wo","woo","woo","woo","wa","wa","waa","waa","waa","ai","w","'","t","k","sh","s","n","w","n","[?]","w","c","?","l","en","in","on","an","pe","paai","pi","pii","po","poo","poo","hee","hi","pa","paa","pwe","pwe","pwi","pwi","pwii","pwii","pwo","pwo","pwoo","pwoo","pwa","pwa","pwaa","pwaa","pwaa","p","p","h","te","taai","ti","tii","to","too","too","dee","di","ta","taa","twe","twe","twi","twi","twii","twii","two","two","twoo","twoo","twa","twa","twaa","twaa","twaa","t","tte","tti","tto","tta","ke","kaai","ki","kii","ko","koo","koo","ka","kaa","kwe","kwe","kwi","kwi","kwii","kwii","kwo","kwo","kwoo","kwoo","kwa","kwa","kwaa","kwaa","kwaa","k","kw","keh","kih","koh","kah","ce","caai","ci","cii","co","coo","coo","ca","caa","cwe","cwe","cwi","cwi","cwii","cwii","cwo","cwo","cwoo","cwoo","cwa","cwa","cwaa","cwaa","cwaa","c","th","me","maai","mi","mii","mo","moo","moo","ma","maa","mwe","mwe","mwi","mwi","mwii","mwii","mwo","mwo","mwoo","mwoo","mwa","mwa","mwaa","mwaa","mwaa","m","m","mh","m","m","ne","naai","ni","nii","no","noo","noo","na","naa","nwe","nwe","nwa","nwa","nwaa","nwaa","nwaa","n","ng","nh","le","laai","li","lii","lo","loo","loo","la","laa","lwe","lwe","lwi","lwi","lwii","lwii","lwo","lwo","lwoo","lwoo","lwa","lwa","lwaa","lwaa","l","l","l","se","saai","si","sii","so","soo","soo","sa","saa","swe","swe","swi","swi","swii","swii","swo","swo","swoo","swoo"]});var R6=y((O7e,E6)=>{E6.exports=["swa","swa","swaa","swaa","swaa","s","s","sw","s","sk","skw","sW","spwa","stwa","skwa","scwa","she","shi","shii","sho","shoo","sha","shaa","shwe","shwe","shwi","shwi","shwii","shwii","shwo","shwo","shwoo","shwoo","shwa","shwa","shwaa","shwaa","sh","ye","yaai","yi","yii","yo","yoo","yoo","ya","yaa","ywe","ywe","ywi","ywi","ywii","ywii","ywo","ywo","ywoo","ywoo","ywa","ywa","ywaa","ywaa","ywaa","y","y","y","yi","re","re","le","raai","ri","rii","ro","roo","lo","ra","raa","la","rwaa","rwaa","r","r","r","fe","faai","fi","fii","fo","foo","fa","faa","fwaa","fwaa","f","the","the","thi","thi","thii","thii","tho","thoo","tha","thaa","thwaa","thwaa","th","tthe","tthi","ttho","ttha","tth","tye","tyi","tyo","tya","he","hi","hii","ho","hoo","ha","haa","h","h","hk","qaai","qi","qii","qo","qoo","qa","qaa","q","tlhe","tlhi","tlho","tlha","re","ri","ro","ra","ngaai","ngi","ngii","ngo","ngoo","nga","ngaa","ng","nng","she","shi","sho","sha","the","thi","tho","tha","th","lhi","lhii","lho","lhoo","lha","lhaa","lh","the","thi","thii","tho","thoo","tha","thaa","th","b","e","i","o","a","we","wi","wo","wa","ne","ni","no","na","ke","ki","ko","ka","he","hi","ho","ha","ghu","gho","ghe","ghee","ghi","gha","ru","ro","re","ree","ri","ra","wu","wo","we","wee","wi","wa","hwu","hwo","hwe","hwee","hwi","hwa","thu","tho","the","thee","thi","tha","ttu","tto","tte","ttee","tti","tta","pu","po","pe","pee","pi","pa","p","gu","go","ge","gee","gi","ga","khu","kho","khe","khee","khi","kha","kku","kko","kke","kkee","kki"]});var L6=y((A7e,_6)=>{_6.exports=["kka","kk","nu","no","ne","nee","ni","na","mu","mo","me","mee","mi","ma","yu","yo","ye","yee","yi","ya","ju","ju","jo","je","jee","ji","ji","ja","jju","jjo","jje","jjee","jji","jja","lu","lo","le","lee","li","la","dlu","dlo","dle","dlee","dli","dla","lhu","lho","lhe","lhee","lhi","lha","tlhu","tlho","tlhe","tlhee","tlhi","tlha","tlu","tlo","tle","tlee","tli","tla","zu","zo","ze","zee","zi","za","z","z","dzu","dzo","dze","dzee","dzi","dza","su","so","se","see","si","sa","shu","sho","she","shee","shi","sha","sh","tsu","tso","tse","tsee","tsi","tsa","chu","cho","che","chee","chi","cha","ttsu","ttso","ttse","ttsee","ttsi","ttsa","X",".","qai","ngai","nngi","nngii","nngo","nngoo","nnga","nngaa","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"," ","b","l","f","s","n","h","d","t","c","q","m","g","ng","z","r","a","o","u","e","i","ch","th","ph","p","x","p","<",">","[?]","[?]","[?]","f","v","u","yr","y","w","th","th","a","o","ac","ae","o","o","o","oe","on","r","k","c","k","g","ng","g","g","w","h","h","h","h","n","n","n","i","e","j","g","ae","a","eo","p","z","s","s","s","c","z","t","t","d","b","b","p","p","e","m","m","m","l","l","ng","ng","d","o","ear","ior","qu","qu","qu","s","yr","yr","yr","q","x",".",":","+","17","18","19","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var F6=y((N7e,I6)=>{I6.exports=["[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","k","kh","g","gh","ng","c","ch","j","jh","ny","t","tth","d","ddh","nn","t","th","d","dh","n","p","ph","b","bh","m","y","r","l","v","sh","ss","s","h","l","q","a","aa","i","ii","u","uk","uu","uuv","ry","ryy","ly","lyy","e","ai","oo","oo","au","a","aa","aa","i","ii","y","yy","u","uu","ua","oe","ya","ie","e","ae","ai","oo","au","M","H","a`","","","","r","","!","","","","","","."," // ",":","+","++"," * "," /// ","KR","'","[?]","[?]","[?]","0","1","2","3","4","5","6","7","8","9","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var M6=y((H7e,j6)=>{j6.exports=[" @ "," ... ",", ",". ",": "," // ","","-",", ",". ","","","","","","[?]","0","1","2","3","4","5","6","7","8","9","[?]","[?]","[?]","[?]","[?]","[?]","a","e","i","o","u","O","U","ee","n","ng","b","p","q","g","m","l","s","sh","t","d","ch","j","y","r","w","f","k","kha","ts","z","h","zr","lh","zh","ch","-","e","i","o","u","O","U","ng","b","p","q","g","m","t","d","ch","j","ts","y","w","k","g","h","jy","ny","dz","e","i","iy","U","u","ng","k","g","h","p","sh","t","d","j","f","g","h","ts","z","r","ch","zh","i","k","r","f","zh","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","H","X","W","M"," 3 "," 333 ","a","i","k","ng","c","tt","tth","dd","nn","t","d","p","ph","ss","zh","z","a","t","zh","gh","ng","c","jh","tta","ddh","t","dh","ss","cy","zh","z","u","y","bh","'","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var A6=y((q7e,O6)=>{O6.exports=["A","a","B","b","B","b","B","b","C","c","D","d","D","d","D","d","D","d","D","d","E","e","E","e","E","e","E","e","E","e","F","f","G","g","H","h","H","h","H","h","H","h","H","h","I","i","I","i","K","k","K","k","K","k","L","l","L","l","L","l","L","l","M","m","M","m","M","m","N","n","N","n","N","n","N","n","O","o","O","o","O","o","O","o","P","p","P","p","R","r","R","r","R","r","R","r","S","s","S","s","S","s","S","s","S","s","T","t","T","t","T","t","T","t","U","u","U","u","U","u","U","u","U","u","V","v","V","v","W","w","W","w","W","w","W","w","W","w","X","x","X","x","Y","y","Z","z","Z","z","Z","z","h","t","w","y","a","S","[?]","[?]","[?]","[?]","A","a","A","a","A","a","A","a","A","a","A","a","A","a","A","a","A","a","A","a","A","a","A","a","E","e","E","e","E","e","E","e","E","e","E","e","E","e","E","e","I","i","I","i","O","o","O","o","O","o","O","o","O","o","O","o","O","o","O","o","O","o","O","o","O","o","O","o","U","u","U","u","U","u","U","u","U","u","U","u","U","u","Y","y","Y","y","Y","y","Y","y","[?]","[?]","[?]","[?]","[?]"]});var H6=y((B7e,N6)=>{N6.exports=["a","a","a","a","a","a","a","a","A","A","A","A","A","A","A","A","e","e","e","e","e","e","[?]","[?]","E","E","E","E","E","E","[?]","[?]","e","e","e","e","e","e","e","e","E","E","E","E","E","E","E","E","i","i","i","i","i","i","i","i","I","I","I","I","I","I","I","I","o","o","o","o","o","o","[?]","[?]","O","O","O","O","O","O","[?]","[?]","u","u","u","u","u","u","u","u","[?]","U","[?]","U","[?]","U","[?]","U","o","o","o","o","o","o","o","o","O","O","O","O","O","O","O","O","a","a","e","e","e","e","i","i","o","o","u","u","o","o","[?]","[?]","a","a","a","a","a","a","a","a","A","A","A","A","A","A","A","A","e","e","e","e","e","e","e","e","E","E","E","E","E","E","E","E","o","o","o","o","o","o","o","o","O","O","O","O","O","O","O","O","a","a","a","a","a","[?]","a","a","A","A","A","A","A","'","i","'","~",'"~',"e","e","e","[?]","e","e","E","E","E","E","E","'`","''","'~","i","i","i","i","[?]","[?]","i","i","I","I","I","I","[?]","`'","`'","`~","u","u","u","u","R","R","u","u","U","U","U","U","R",'"`',`"'`,"`","[?]","[?]","o","o","o","[?]","o","o","O","O","O","O","O","'","`"]});var B6=y((W7e,q6)=>{q6.exports=[" "," "," "," "," "," "," "," "," "," "," "," ","","","","","-","-","-","-","--","--","||","_","'","'",",","'",'"','"',",,",'"',"+","++","*","*>",".","..","...",".",`
|
||
`,`
|
||
|
||
`,"","","","",""," ","%0","%00","'","''","'''","`","``","```","^","<",">","*","!!","!?","-","_","-","^","***","--","/","-[","]-","[?]","?!","!?","7","PP","(]","[)","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","","","","","","","0","","","","4","5","6","7","8","9","+","-","=","(",")","n","0","1","2","3","4","5","6","7","8","9","+","-","=","(",")","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","ECU","CL","Cr","FF","L","mil","N","Pts","Rs","W","NS","D","EU","K","T","Dr","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","","","","","","","","","","","","","","","","","","","","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var Y6=y((Y7e,W6)=>{W6.exports=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"," 1/3 "," 2/3 "," 1/5 "," 2/5 "," 3/5 "," 4/5 "," 1/6 "," 5/6 "," 1/8 "," 3/8 "," 5/8 "," 7/8 "," 1/","I","II","III","IV","V","VI","VII","VIII","IX","X","XI","XII","L","C","D","M","i","ii","iii","iv","v","vi","vii","viii","ix","x","xi","xii","l","c","d","m","(D","D)","((|))",")","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","-","|","-","|","-","|","\\","/","\\","/","-","-","~","~","-","|","-","|","-","-","-","|","-","|","|","-","-","-","-","-","-","|","|","|","|","|","|","|","^","V","\\","=","V","^","-","-","|","|","-","-","|","|","=","|","=","=","|","=","|","=","=","=","=","=","=","|","=","|","=","|","\\","/","\\","/","=","=","~","~","|","|","-","|","-","|","-","-","-","|","-","|","|","|","|","|","|","|","-","\\","\\","|","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var J6=y((Z7e,Z6)=>{Z6.exports=["[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var U6=y((J7e,$6)=>{$6.exports=["[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var G6=y(($7e,X6)=>{X6.exports=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","","","","","","","","","","","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var K6=y((U7e,z6)=>{z6.exports=["-","-","|","|","-","-","|","|","-","-","|","|","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","-","-","|","|","-","|","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","+","/","\\","X","-","|","-","|","-","|","-","|","-","|","-","|","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","-","|","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","^","^","^","^",">",">",">",">",">",">","V","V","V","V","<","<","<","<","<","<","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","#","#","#","#","#","^","^","^","O","#","#","#","#","#","#","#","#","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var V6=y((X7e,Q6)=>{Q6.exports=["","","","","","","","","","","","","","","","","","","","","[?]","[?]","[?]","[?]","[?]","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var tV=y((G7e,eV)=>{eV.exports=["[?]","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","[?]","[?]","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","[?]","","","","","","","","","","","","","","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var nV=y((z7e,iV)=>{iV.exports=[" ","a","1","b","'","k","2","l","@","c","i","f","/","m","s","p",'"',"e","3","h","9","o","6","r","^","d","j","g",">","n","t","q",",","*","5","<","-","u","8","v",".","%","[","$","+","x","!","&",";",":","4","\\","0","z","7","(","_","?","w","]","#","y",")","=","[d7]","[d17]","[d27]","[d127]","[d37]","[d137]","[d237]","[d1237]","[d47]","[d147]","[d247]","[d1247]","[d347]","[d1347]","[d2347]","[d12347]","[d57]","[d157]","[d257]","[d1257]","[d357]","[d1357]","[d2357]","[d12357]","[d457]","[d1457]","[d2457]","[d12457]","[d3457]","[d13457]","[d23457]","[d123457]","[d67]","[d167]","[d267]","[d1267]","[d367]","[d1367]","[d2367]","[d12367]","[d467]","[d1467]","[d2467]","[d12467]","[d3467]","[d13467]","[d23467]","[d123467]","[d567]","[d1567]","[d2567]","[d12567]","[d3567]","[d13567]","[d23567]","[d123567]","[d4567]","[d14567]","[d24567]","[d124567]","[d34567]","[d134567]","[d234567]","[d1234567]","[d8]","[d18]","[d28]","[d128]","[d38]","[d138]","[d238]","[d1238]","[d48]","[d148]","[d248]","[d1248]","[d348]","[d1348]","[d2348]","[d12348]","[d58]","[d158]","[d258]","[d1258]","[d358]","[d1358]","[d2358]","[d12358]","[d458]","[d1458]","[d2458]","[d12458]","[d3458]","[d13458]","[d23458]","[d123458]","[d68]","[d168]","[d268]","[d1268]","[d368]","[d1368]","[d2368]","[d12368]","[d468]","[d1468]","[d2468]","[d12468]","[d3468]","[d13468]","[d23468]","[d123468]","[d568]","[d1568]","[d2568]","[d12568]","[d3568]","[d13568]","[d23568]","[d123568]","[d4568]","[d14568]","[d24568]","[d124568]","[d34568]","[d134568]","[d234568]","[d1234568]","[d78]","[d178]","[d278]","[d1278]","[d378]","[d1378]","[d2378]","[d12378]","[d478]","[d1478]","[d2478]","[d12478]","[d3478]","[d13478]","[d23478]","[d123478]","[d578]","[d1578]","[d2578]","[d12578]","[d3578]","[d13578]","[d23578]","[d123578]","[d4578]","[d14578]","[d24578]","[d124578]","[d34578]","[d134578]","[d234578]","[d1234578]","[d678]","[d1678]","[d2678]","[d12678]","[d3678]","[d13678]","[d23678]","[d123678]","[d4678]","[d14678]","[d24678]","[d124678]","[d34678]","[d134678]","[d234678]","[d1234678]","[d5678]","[d15678]","[d25678]","[d125678]","[d35678]","[d135678]","[d235678]","[d1235678]","[d45678]","[d145678]","[d245678]","[d1245678]","[d345678]","[d1345678]","[d2345678]","[d12345678]"]});var oV=y((K7e,rV)=>{rV.exports=["[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?]","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var aV=y((Q7e,sV)=>{sV.exports=["[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?]","[?]","[?]"]});var uV=y((V7e,lV)=>{lV.exports=[" ",", ",". ",'"',"[JIS]",'"',"/","0","<","> ","<<",">> ","[","] ","{","} ","[(",")] ","@","X ","[","] ","[[","]] ","((",")) ","[[","]] ","~ ","``","''",",,","@","1","2","3","4","5","6","7","8","9","","","","","","","~","+","+","+","+","","@"," // ","+10+","+20+","+30+","[?]","[?]","[?]","","","[?]","a","a","i","i","u","u","e","e","o","o","ka","ga","ki","gi","ku","gu","ke","ge","ko","go","sa","za","si","zi","su","zu","se","ze","so","zo","ta","da","ti","di","tu","tu","du","te","de","to","do","na","ni","nu","ne","no","ha","ba","pa","hi","bi","pi","hu","bu","pu","he","be","pe","ho","bo","po","ma","mi","mu","me","mo","ya","ya","yu","yu","yo","yo","ra","ri","ru","re","ro","wa","wa","wi","we","wo","n","vu","[?]","[?]","[?]","[?]","","","","",'"','"',"[?]","[?]","a","a","i","i","u","u","e","e","o","o","ka","ga","ki","gi","ku","gu","ke","ge","ko","go","sa","za","si","zi","su","zu","se","ze","so","zo","ta","da","ti","di","tu","tu","du","te","de","to","do","na","ni","nu","ne","no","ha","ba","pa","hi","bi","pi","hu","bu","pu","he","be","pe","ho","bo","po","ma","mi","mu","me","mo","ya","ya","yu","yu","yo","yo","ra","ri","ru","re","ro","wa","wa","wi","we","wo","n","vu","ka","ke","va","vi","ve","vo","","",'"','"']});var hV=y((e9e,cV)=>{cV.exports=["[?]","[?]","[?]","[?]","[?]","B","P","M","F","D","T","N","L","G","K","H","J","Q","X","ZH","CH","SH","R","Z","C","S","A","O","E","EH","AI","EI","AU","OU","AN","EN","ANG","ENG","ER","I","U","IU","V","NG","GN","[?]","[?]","[?]","[?]","g","gg","gs","n","nj","nh","d","dd","r","lg","lm","lb","ls","lt","lp","rh","m","b","bb","bs","s","ss","","j","jj","c","k","t","p","h","a","ae","ya","yae","eo","e","yeo","ye","o","wa","wae","oe","yo","u","weo","we","wi","yu","eu","yi","i","","nn","nd","ns","nZ","lgs","ld","lbs","lZ","lQ","mb","ms","mZ","mN","bg","","bsg","bst","bj","bt","bN","bbN","sg","sn","sd","sb","sj","Z","","N","Ns","NZ","pN","hh","Q","yo-ya","yo-yae","yo-i","yu-yeo","yu-ye","yu-i","U","U-i","[?]","","","","","","","","","","","","","","","","","BU","ZI","JI","GU","EE","ENN","OO","ONN","IR","ANN","INN","UNN","IM","NGG","AINN","AUNN","AM","OM","ONG","INNN","P","T","K","H","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var gV=y((t9e,dV)=>{dV.exports=["(g)","(n)","(d)","(r)","(m)","(b)","(s)","()","(j)","(c)","(k)","(t)","(p)","(h)","(ga)","(na)","(da)","(ra)","(ma)","(ba)","(sa)","(a)","(ja)","(ca)","(ka)","(ta)","(pa)","(ha)","(ju)","[?]","[?]","[?]","(1) ","(2) ","(3) ","(4) ","(5) ","(6) ","(7) ","(8) ","(9) ","(10) ","(Yue) ","(Huo) ","(Shui) ","(Mu) ","(Jin) ","(Tu) ","(Ri) ","(Zhu) ","(You) ","(She) ","(Ming) ","(Te) ","(Cai) ","(Zhu) ","(Lao) ","(Dai) ","(Hu) ","(Xue) ","(Jian) ","(Qi) ","(Zi) ","(Xie) ","(Ji) ","(Xiu) ","<<",">>","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","(g)","(n)","(d)","(r)","(m)","(b)","(s)","()","(j)","(c)","(k)","(t)","(p)","(h)","(ga)","(na)","(da)","(ra)","(ma)","(ba)","(sa)","(a)","(ja)","(ca)","(ka)","(ta)","(pa)","(ha)","[?]","[?]","[?]","KIS ","(1) ","(2) ","(3) ","(4) ","(5) ","(6) ","(7) ","(8) ","(9) ","(10) ","(Yue) ","(Huo) ","(Shui) ","(Mu) ","(Jin) ","(Tu) ","(Ri) ","(Zhu) ","(You) ","(She) ","(Ming) ","(Te) ","(Cai) ","(Zhu) ","(Lao) ","(Mi) ","(Nan) ","(Nu) ","(Shi) ","(You) ","(Yin) ","(Zhu) ","(Xiang) ","(Xiu) ","(Xie) ","(Zheng) ","(Shang) ","(Zhong) ","(Xia) ","(Zuo) ","(You) ","(Yi) ","(Zong) ","(Xue) ","(Jian) ","(Qi) ","(Zi) ","(Xie) ","(Ye) ","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","1M","2M","3M","4M","5M","6M","7M","8M","9M","10M","11M","12M","[?]","[?]","[?]","[?]","a","i","u","u","o","ka","ki","ku","ke","ko","sa","si","su","se","so","ta","ti","tu","te","to","na","ni","nu","ne","no","ha","hi","hu","he","ho","ma","mi","mu","me","mo","ya","yu","yo","ra","ri","ru","re","ro","wa","wi","we","wo"]});var fV=y((i9e,pV)=>{pV.exports=["apartment","alpha","ampere","are","inning","inch","won","escudo","acre","ounce","ohm","kai-ri","carat","calorie","gallon","gamma","giga","guinea","curie","guilder","kilo","kilogram","kilometer","kilowatt","gram","gram ton","cruzeiro","krone","case","koruna","co-op","cycle","centime","shilling","centi","cent","dozen","desi","dollar","ton","nano","knot","heights","percent","parts","barrel","piaster","picul","pico","building","farad","feet","bushel","franc","hectare","peso","pfennig","hertz","pence","page","beta","point","volt","hon","pound","hall","horn","micro","mile","mach","mark","mansion","micron","milli","millibar","mega","megaton","meter","yard","yard","yuan","liter","lira","rupee","ruble","rem","roentgen","watt","0h","1h","2h","3h","4h","5h","6h","7h","8h","9h","10h","11h","12h","13h","14h","15h","16h","17h","18h","19h","20h","21h","22h","23h","24h","HPA","da","AU","bar","oV","pc","[?]","[?]","[?]","[?]","Heisei","Syouwa","Taisyou","Meiji","Inc.","pA","nA","microamp","mA","kA","kB","MB","GB","cal","kcal","pF","nF","microFarad","microgram","mg","kg","Hz","kHz","MHz","GHz","THz","microliter","ml","dl","kl","fm","nm","micrometer","mm","cm","km","mm^2","cm^2","m^2","km^2","mm^4","cm^3","m^3","km^3","m/s","m/s^2","Pa","kPa","MPa","GPa","rad","rad/s","rad/s^2","ps","ns","microsecond","ms","pV","nV","microvolt","mV","kV","MV","pW","nW","microwatt","mW","kW","MW","kOhm","MOhm","a.m.","Bq","cc","cd","C/kg","Co.","dB","Gy","ha","HP","in","K.K.","KM","kt","lm","ln","log","lx","mb","mil","mol","pH","p.m.","PPM","PR","sr","Sv","Wb","[?]","[?]","1d","2d","3d","4d","5d","6d","7d","8d","9d","10d","11d","12d","13d","14d","15d","16d","17d","18d","19d","20d","21d","22d","23d","24d","25d","26d","27d","28d","29d","30d","31d"]});var bV=y((n9e,mV)=>{mV.exports=["[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?] ","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var vV=y((r9e,yV)=>{yV.exports=["Yi ","Ding ","Kao ","Qi ","Shang ","Xia ","[?] ","Mo ","Zhang ","San ","Shang ","Xia ","Ji ","Bu ","Yu ","Mian ","Gai ","Chou ","Chou ","Zhuan ","Qie ","Pi ","Shi ","Shi ","Qiu ","Bing ","Ye ","Cong ","Dong ","Si ","Cheng ","Diu ","Qiu ","Liang ","Diu ","You ","Liang ","Yan ","Bing ","Sang ","Gun ","Jiu ","Ge ","Ya ","Qiang ","Zhong ","Ji ","Jie ","Feng ","Guan ","Chuan ","Chan ","Lin ","Zhuo ","Zhu ","Ha ","Wan ","Dan ","Wei ","Zhu ","Jing ","Li ","Ju ","Pie ","Fu ","Yi ","Yi ","Nai ","Shime ","Jiu ","Jiu ","Zhe ","Yao ","Yi ","[?] ","Zhi ","Wu ","Zha ","Hu ","Fa ","Le ","Zhong ","Ping ","Pang ","Qiao ","Hu ","Guai ","Cheng ","Cheng ","Yi ","Yin ","[?] ","Mie ","Jiu ","Qi ","Ye ","Xi ","Xiang ","Gai ","Diu ","Hal ","[?] ","Shu ","Twul ","Shi ","Ji ","Nang ","Jia ","Kel ","Shi ","[?] ","Ol ","Mai ","Luan ","Cal ","Ru ","Xue ","Yan ","Fu ","Sha ","Na ","Gan ","Sol ","El ","Cwul ","[?] ","Gan ","Chi ","Gui ","Gan ","Luan ","Lin ","Yi ","Jue ","Liao ","Ma ","Yu ","Zheng ","Shi ","Shi ","Er ","Chu ","Yu ","Yu ","Yu ","Yun ","Hu ","Qi ","Wu ","Jing ","Si ","Sui ","Gen ","Gen ","Ya ","Xie ","Ya ","Qi ","Ya ","Ji ","Tou ","Wang ","Kang ","Ta ","Jiao ","Hai ","Yi ","Chan ","Heng ","Mu ","[?] ","Xiang ","Jing ","Ting ","Liang ","Xiang ","Jing ","Ye ","Qin ","Bo ","You ","Xie ","Dan ","Lian ","Duo ","Wei ","Ren ","Ren ","Ji ","La ","Wang ","Yi ","Shi ","Ren ","Le ","Ding ","Ze ","Jin ","Pu ","Chou ","Ba ","Zhang ","Jin ","Jie ","Bing ","Reng ","Cong ","Fo ","San ","Lun ","Sya ","Cang ","Zi ","Shi ","Ta ","Zhang ","Fu ","Xian ","Xian ","Tuo ","Hong ","Tong ","Ren ","Qian ","Gan ","Yi ","Di ","Dai ","Ling ","Yi ","Chao ","Chang ","Sa ","[?] ","Yi ","Mu ","Men ","Ren ","Jia ","Chao ","Yang ","Qian ","Zhong ","Pi ","Wan ","Wu ","Jian ","Jie ","Yao ","Feng ","Cang ","Ren ","Wang ","Fen ","Di ","Fang "]});var xV=y((o9e,wV)=>{wV.exports=["Zhong ","Qi ","Pei ","Yu ","Diao ","Dun ","Wen ","Yi ","Xin ","Kang ","Yi ","Ji ","Ai ","Wu ","Ji ","Fu ","Fa ","Xiu ","Jin ","Bei ","Dan ","Fu ","Tang ","Zhong ","You ","Huo ","Hui ","Yu ","Cui ","Chuan ","San ","Wei ","Chuan ","Che ","Ya ","Xian ","Shang ","Chang ","Lun ","Cang ","Xun ","Xin ","Wei ","Zhu ","[?] ","Xuan ","Nu ","Bo ","Gu ","Ni ","Ni ","Xie ","Ban ","Xu ","Ling ","Zhou ","Shen ","Qu ","Si ","Beng ","Si ","Jia ","Pi ","Yi ","Si ","Ai ","Zheng ","Dian ","Han ","Mai ","Dan ","Zhu ","Bu ","Qu ","Bi ","Shao ","Ci ","Wei ","Di ","Zhu ","Zuo ","You ","Yang ","Ti ","Zhan ","He ","Bi ","Tuo ","She ","Yu ","Yi ","Fo ","Zuo ","Kou ","Ning ","Tong ","Ni ","Xuan ","Qu ","Yong ","Wa ","Qian ","[?] ","Ka ","[?] ","Pei ","Huai ","He ","Lao ","Xiang ","Ge ","Yang ","Bai ","Fa ","Ming ","Jia ","Er ","Bing ","Ji ","Hen ","Huo ","Gui ","Quan ","Tiao ","Jiao ","Ci ","Yi ","Shi ","Xing ","Shen ","Tuo ","Kan ","Zhi ","Gai ","Lai ","Yi ","Chi ","Kua ","Guang ","Li ","Yin ","Shi ","Mi ","Zhu ","Xu ","You ","An ","Lu ","Mou ","Er ","Lun ","Tong ","Cha ","Chi ","Xun ","Gong ","Zhou ","Yi ","Ru ","Jian ","Xia ","Jia ","Zai ","Lu ","Ko ","Jiao ","Zhen ","Ce ","Qiao ","Kuai ","Chai ","Ning ","Nong ","Jin ","Wu ","Hou ","Jiong ","Cheng ","Zhen ","Zuo ","Chou ","Qin ","Lu ","Ju ","Shu ","Ting ","Shen ","Tuo ","Bo ","Nan ","Hao ","Bian ","Tui ","Yu ","Xi ","Cu ","E ","Qiu ","Xu ","Kuang ","Ku ","Wu ","Jun ","Yi ","Fu ","Lang ","Zu ","Qiao ","Li ","Yong ","Hun ","Jing ","Xian ","San ","Pai ","Su ","Fu ","Xi ","Li ","Fu ","Ping ","Bao ","Yu ","Si ","Xia ","Xin ","Xiu ","Yu ","Ti ","Che ","Chou ","[?] ","Yan ","Lia ","Li ","Lai ","[?] ","Jian ","Xiu ","Fu ","He ","Ju ","Xiao ","Pai ","Jian ","Biao ","Chu ","Fei ","Feng ","Ya ","An ","Bei ","Yu ","Xin ","Bi ","Jian "]});var SV=y((s9e,CV)=>{CV.exports=["Chang ","Chi ","Bing ","Zan ","Yao ","Cui ","Lia ","Wan ","Lai ","Cang ","Zong ","Ge ","Guan ","Bei ","Tian ","Shu ","Shu ","Men ","Dao ","Tan ","Jue ","Chui ","Xing ","Peng ","Tang ","Hou ","Yi ","Qi ","Ti ","Gan ","Jing ","Jie ","Sui ","Chang ","Jie ","Fang ","Zhi ","Kong ","Juan ","Zong ","Ju ","Qian ","Ni ","Lun ","Zhuo ","Wei ","Luo ","Song ","Leng ","Hun ","Dong ","Zi ","Ben ","Wu ","Ju ","Nai ","Cai ","Jian ","Zhai ","Ye ","Zhi ","Sha ","Qing ","[?] ","Ying ","Cheng ","Jian ","Yan ","Nuan ","Zhong ","Chun ","Jia ","Jie ","Wei ","Yu ","Bing ","Ruo ","Ti ","Wei ","Pian ","Yan ","Feng ","Tang ","Wo ","E ","Xie ","Che ","Sheng ","Kan ","Di ","Zuo ","Cha ","Ting ","Bei ","Ye ","Huang ","Yao ","Zhan ","Chou ","Yan ","You ","Jian ","Xu ","Zha ","Ci ","Fu ","Bi ","Zhi ","Zong ","Mian ","Ji ","Yi ","Xie ","Xun ","Si ","Duan ","Ce ","Zhen ","Ou ","Tou ","Tou ","Bei ","Za ","Lu ","Jie ","Wei ","Fen ","Chang ","Gui ","Sou ","Zhi ","Su ","Xia ","Fu ","Yuan ","Rong ","Li ","Ru ","Yun ","Gou ","Ma ","Bang ","Dian ","Tang ","Hao ","Jie ","Xi ","Shan ","Qian ","Jue ","Cang ","Chu ","San ","Bei ","Xiao ","Yong ","Yao ","Tan ","Suo ","Yang ","Fa ","Bing ","Jia ","Dai ","Zai ","Tang ","[?] ","Bin ","Chu ","Nuo ","Can ","Lei ","Cui ","Yong ","Zao ","Zong ","Peng ","Song ","Ao ","Chuan ","Yu ","Zhai ","Cou ","Shang ","Qiang ","Jing ","Chi ","Sha ","Han ","Zhang ","Qing ","Yan ","Di ","Xi ","Lu ","Bei ","Piao ","Jin ","Lian ","Lu ","Man ","Qian ","Xian ","Tan ","Ying ","Dong ","Zhuan ","Xiang ","Shan ","Qiao ","Jiong ","Tui ","Zun ","Pu ","Xi ","Lao ","Chang ","Guang ","Liao ","Qi ","Deng ","Chan ","Wei ","Ji ","Fan ","Hui ","Chuan ","Jian ","Dan ","Jiao ","Jiu ","Seng ","Fen ","Xian ","Jue ","E ","Jiao ","Jian ","Tong ","Lin ","Bo ","Gu ","[?] ","Su ","Xian ","Jiang ","Min ","Ye ","Jin ","Jia ","Qiao ","Pi ","Feng ","Zhou ","Ai ","Sai "]});var TV=y((a9e,DV)=>{DV.exports=["Yi ","Jun ","Nong ","Chan ","Yi ","Dang ","Jing ","Xuan ","Kuai ","Jian ","Chu ","Dan ","Jiao ","Sha ","Zai ","[?] ","Bin ","An ","Ru ","Tai ","Chou ","Chai ","Lan ","Ni ","Jin ","Qian ","Meng ","Wu ","Ning ","Qiong ","Ni ","Chang ","Lie ","Lei ","Lu ","Kuang ","Bao ","Du ","Biao ","Zan ","Zhi ","Si ","You ","Hao ","Chen ","Chen ","Li ","Teng ","Wei ","Long ","Chu ","Chan ","Rang ","Shu ","Hui ","Li ","Luo ","Zan ","Nuo ","Tang ","Yan ","Lei ","Nang ","Er ","Wu ","Yun ","Zan ","Yuan ","Xiong ","Chong ","Zhao ","Xiong ","Xian ","Guang ","Dui ","Ke ","Dui ","Mian ","Tu ","Chang ","Er ","Dui ","Er ","Xin ","Tu ","Si ","Yan ","Yan ","Shi ","Shi ","Dang ","Qian ","Dou ","Fen ","Mao ","Shen ","Dou ","Bai ","Jing ","Li ","Huang ","Ru ","Wang ","Nei ","Quan ","Liang ","Yu ","Ba ","Gong ","Liu ","Xi ","[?] ","Lan ","Gong ","Tian ","Guan ","Xing ","Bing ","Qi ","Ju ","Dian ","Zi ","Ppwun ","Yang ","Jian ","Shou ","Ji ","Yi ","Ji ","Chan ","Jiong ","Mao ","Ran ","Nei ","Yuan ","Mao ","Gang ","Ran ","Ce ","Jiong ","Ce ","Zai ","Gua ","Jiong ","Mao ","Zhou ","Mou ","Gou ","Xu ","Mian ","Mi ","Rong ","Yin ","Xie ","Kan ","Jun ","Nong ","Yi ","Mi ","Shi ","Guan ","Meng ","Zhong ","Ju ","Yuan ","Ming ","Kou ","Lam ","Fu ","Xie ","Mi ","Bing ","Dong ","Tai ","Gang ","Feng ","Bing ","Hu ","Chong ","Jue ","Hu ","Kuang ","Ye ","Leng ","Pan ","Fu ","Min ","Dong ","Xian ","Lie ","Xia ","Jian ","Jing ","Shu ","Mei ","Tu ","Qi ","Gu ","Zhun ","Song ","Jing ","Liang ","Qing ","Diao ","Ling ","Dong ","Gan ","Jian ","Yin ","Cou ","Yi ","Li ","Cang ","Ming ","Zhuen ","Cui ","Si ","Duo ","Jin ","Lin ","Lin ","Ning ","Xi ","Du ","Ji ","Fan ","Fan ","Fan ","Feng ","Ju ","Chu ","Tako ","Feng ","Mok ","Ci ","Fu ","Feng ","Ping ","Feng ","Kai ","Huang ","Kai ","Gan ","Deng ","Ping ","Qu ","Xiong ","Kuai ","Tu ","Ao ","Chu ","Ji ","Dang ","Han ","Han ","Zao "]});var PV=y((l9e,kV)=>{kV.exports=["Dao ","Diao ","Dao ","Ren ","Ren ","Chuang ","Fen ","Qie ","Yi ","Ji ","Kan ","Qian ","Cun ","Chu ","Wen ","Ji ","Dan ","Xing ","Hua ","Wan ","Jue ","Li ","Yue ","Lie ","Liu ","Ze ","Gang ","Chuang ","Fu ","Chu ","Qu ","Ju ","Shan ","Min ","Ling ","Zhong ","Pan ","Bie ","Jie ","Jie ","Bao ","Li ","Shan ","Bie ","Chan ","Jing ","Gua ","Gen ","Dao ","Chuang ","Kui ","Ku ","Duo ","Er ","Zhi ","Shua ","Quan ","Cha ","Ci ","Ke ","Jie ","Gui ","Ci ","Gui ","Kai ","Duo ","Ji ","Ti ","Jing ","Lou ","Gen ","Ze ","Yuan ","Cuo ","Xue ","Ke ","La ","Qian ","Cha ","Chuang ","Gua ","Jian ","Cuo ","Li ","Ti ","Fei ","Pou ","Chan ","Qi ","Chuang ","Zi ","Gang ","Wan ","Bo ","Ji ","Duo ","Qing ","Yan ","Zhuo ","Jian ","Ji ","Bo ","Yan ","Ju ","Huo ","Sheng ","Jian ","Duo ","Duan ","Wu ","Gua ","Fu ","Sheng ","Jian ","Ge ","Zha ","Kai ","Chuang ","Juan ","Chan ","Tuan ","Lu ","Li ","Fou ","Shan ","Piao ","Kou ","Jiao ","Gua ","Qiao ","Jue ","Hua ","Zha ","Zhuo ","Lian ","Ju ","Pi ","Liu ","Gui ","Jiao ","Gui ","Jian ","Jian ","Tang ","Huo ","Ji ","Jian ","Yi ","Jian ","Zhi ","Chan ","Cuan ","Mo ","Li ","Zhu ","Li ","Ya ","Quan ","Ban ","Gong ","Jia ","Wu ","Mai ","Lie ","Jin ","Keng ","Xie ","Zhi ","Dong ","Zhu ","Nu ","Jie ","Qu ","Shao ","Yi ","Zhu ","Miao ","Li ","Jing ","Lao ","Lao ","Juan ","Kou ","Yang ","Wa ","Xiao ","Mou ","Kuang ","Jie ","Lie ","He ","Shi ","Ke ","Jing ","Hao ","Bo ","Min ","Chi ","Lang ","Yong ","Yong ","Mian ","Ke ","Xun ","Juan ","Qing ","Lu ","Pou ","Meng ","Lai ","Le ","Kai ","Mian ","Dong ","Xu ","Xu ","Kan ","Wu ","Yi ","Xun ","Weng ","Sheng ","Lao ","Mu ","Lu ","Piao ","Shi ","Ji ","Qin ","Qiang ","Jiao ","Quan ","Yang ","Yi ","Jue ","Fan ","Juan ","Tong ","Ju ","Dan ","Xie ","Mai ","Xun ","Xun ","Lu ","Li ","Che ","Rang ","Quan ","Bao ","Shao ","Yun ","Jiu ","Bao ","Gou ","Wu "]});var RV=y((u9e,EV)=>{EV.exports=["Yun ","Mwun ","Nay ","Gai ","Gai ","Bao ","Cong ","[?] ","Xiong ","Peng ","Ju ","Tao ","Ge ","Pu ","An ","Pao ","Fu ","Gong ","Da ","Jiu ","Qiong ","Bi ","Hua ","Bei ","Nao ","Chi ","Fang ","Jiu ","Yi ","Za ","Jiang ","Kang ","Jiang ","Kuang ","Hu ","Xia ","Qu ","Bian ","Gui ","Qie ","Zang ","Kuang ","Fei ","Hu ","Tou ","Gui ","Gui ","Hui ","Dan ","Gui ","Lian ","Lian ","Suan ","Du ","Jiu ","Qu ","Xi ","Pi ","Qu ","Yi ","Qia ","Yan ","Bian ","Ni ","Qu ","Shi ","Xin ","Qian ","Nian ","Sa ","Zu ","Sheng ","Wu ","Hui ","Ban ","Shi ","Xi ","Wan ","Hua ","Xie ","Wan ","Bei ","Zu ","Zhuo ","Xie ","Dan ","Mai ","Nan ","Dan ","Ji ","Bo ","Shuai ","Bu ","Kuang ","Bian ","Bu ","Zhan ","Qia ","Lu ","You ","Lu ","Xi ","Gua ","Wo ","Xie ","Jie ","Jie ","Wei ","Ang ","Qiong ","Zhi ","Mao ","Yin ","Wei ","Shao ","Ji ","Que ","Luan ","Shi ","Juan ","Xie ","Xu ","Jin ","Que ","Wu ","Ji ","E ","Qing ","Xi ","[?] ","Han ","Zhan ","E ","Ting ","Li ","Zhe ","Han ","Li ","Ya ","Ya ","Yan ","She ","Zhi ","Zha ","Pang ","[?] ","He ","Ya ","Zhi ","Ce ","Pang ","Ti ","Li ","She ","Hou ","Ting ","Zui ","Cuo ","Fei ","Yuan ","Ce ","Yuan ","Xiang ","Yan ","Li ","Jue ","Sha ","Dian ","Chu ","Jiu ","Qin ","Ao ","Gui ","Yan ","Si ","Li ","Chang ","Lan ","Li ","Yan ","Yan ","Yuan ","Si ","Gong ","Lin ","Qiu ","Qu ","Qu ","Uk ","Lei ","Du ","Xian ","Zhuan ","San ","Can ","Can ","Can ","Can ","Ai ","Dai ","You ","Cha ","Ji ","You ","Shuang ","Fan ","Shou ","Guai ","Ba ","Fa ","Ruo ","Shi ","Shu ","Zhuo ","Qu ","Shou ","Bian ","Xu ","Jia ","Pan ","Sou ","Gao ","Wei ","Sou ","Die ","Rui ","Cong ","Kou ","Gu ","Ju ","Ling ","Gua ","Tao ","Kou ","Zhi ","Jiao ","Zhao ","Ba ","Ding ","Ke ","Tai ","Chi ","Shi ","You ","Qiu ","Po ","Xie ","Hao ","Si ","Tan ","Chi ","Le ","Diao ","Ji ","[?] ","Hong "]});var LV=y((c9e,_V)=>{_V.exports=["Mie ","Xu ","Mang ","Chi ","Ge ","Xuan ","Yao ","Zi ","He ","Ji ","Diao ","Cun ","Tong ","Ming ","Hou ","Li ","Tu ","Xiang ","Zha ","Xia ","Ye ","Lu ","A ","Ma ","Ou ","Xue ","Yi ","Jun ","Chou ","Lin ","Tun ","Yin ","Fei ","Bi ","Qin ","Qin ","Jie ","Bu ","Fou ","Ba ","Dun ","Fen ","E ","Han ","Ting ","Hang ","Shun ","Qi ","Hong ","Zhi ","Shen ","Wu ","Wu ","Chao ","Ne ","Xue ","Xi ","Chui ","Dou ","Wen ","Hou ","Ou ","Wu ","Gao ","Ya ","Jun ","Lu ","E ","Ge ","Mei ","Ai ","Qi ","Cheng ","Wu ","Gao ","Fu ","Jiao ","Hong ","Chi ","Sheng ","Ne ","Tun ","Fu ","Yi ","Dai ","Ou ","Li ","Bai ","Yuan ","Kuai ","[?] ","Qiang ","Wu ","E ","Shi ","Quan ","Pen ","Wen ","Ni ","M ","Ling ","Ran ","You ","Di ","Zhou ","Shi ","Zhou ","Tie ","Xi ","Yi ","Qi ","Ping ","Zi ","Gu ","Zi ","Wei ","Xu ","He ","Nao ","Xia ","Pei ","Yi ","Xiao ","Shen ","Hu ","Ming ","Da ","Qu ","Ju ","Gem ","Za ","Tuo ","Duo ","Pou ","Pao ","Bi ","Fu ","Yang ","He ","Zha ","He ","Hai ","Jiu ","Yong ","Fu ","Que ","Zhou ","Wa ","Ka ","Gu ","Ka ","Zuo ","Bu ","Long ","Dong ","Ning ","Tha ","Si ","Xian ","Huo ","Qi ","Er ","E ","Guang ","Zha ","Xi ","Yi ","Lie ","Zi ","Mie ","Mi ","Zhi ","Yao ","Ji ","Zhou ","Ge ","Shuai ","Zan ","Xiao ","Ke ","Hui ","Kua ","Huai ","Tao ","Xian ","E ","Xuan ","Xiu ","Wai ","Yan ","Lao ","Yi ","Ai ","Pin ","Shen ","Tong ","Hong ","Xiong ","Chi ","Wa ","Ha ","Zai ","Yu ","Di ","Pai ","Xiang ","Ai ","Hen ","Kuang ","Ya ","Da ","Xiao ","Bi ","Yue ","[?] ","Hua ","Sasou ","Kuai ","Duo ","[?] ","Ji ","Nong ","Mou ","Yo ","Hao ","Yuan ","Long ","Pou ","Mang ","Ge ","E ","Chi ","Shao ","Li ","Na ","Zu ","He ","Ku ","Xiao ","Xian ","Lao ","Bo ","Zhe ","Zha ","Liang ","Ba ","Mie ","Le ","Sui ","Fou ","Bu ","Han ","Heng ","Geng ","Shuo ","Ge "]});var FV=y((h9e,IV)=>{IV.exports=["You ","Yan ","Gu ","Gu ","Bai ","Han ","Suo ","Chun ","Yi ","Ai ","Jia ","Tu ","Xian ","Huan ","Li ","Xi ","Tang ","Zuo ","Qiu ","Che ","Wu ","Zao ","Ya ","Dou ","Qi ","Di ","Qin ","Ma ","Mal ","Hong ","Dou ","Kes ","Lao ","Liang ","Suo ","Zao ","Huan ","Lang ","Sha ","Ji ","Zuo ","Wo ","Feng ","Yin ","Hu ","Qi ","Shou ","Wei ","Shua ","Chang ","Er ","Li ","Qiang ","An ","Jie ","Yo ","Nian ","Yu ","Tian ","Lai ","Sha ","Xi ","Tuo ","Hu ","Ai ","Zhou ","Nou ","Ken ","Zhuo ","Zhuo ","Shang ","Di ","Heng ","Lan ","A ","Xiao ","Xiang ","Tun ","Wu ","Wen ","Cui ","Sha ","Hu ","Qi ","Qi ","Tao ","Dan ","Dan ","Ye ","Zi ","Bi ","Cui ","Chuo ","He ","Ya ","Qi ","Zhe ","Pei ","Liang ","Xian ","Pi ","Sha ","La ","Ze ","Qing ","Gua ","Pa ","Zhe ","Se ","Zhuan ","Nie ","Guo ","Luo ","Yan ","Di ","Quan ","Tan ","Bo ","Ding ","Lang ","Xiao ","[?] ","Tang ","Chi ","Ti ","An ","Jiu ","Dan ","Ke ","Yong ","Wei ","Nan ","Shan ","Yu ","Zhe ","La ","Jie ","Hou ","Han ","Die ","Zhou ","Chai ","Wai ","Re ","Yu ","Yin ","Zan ","Yao ","Wo ","Mian ","Hu ","Yun ","Chuan ","Hui ","Huan ","Huan ","Xi ","He ","Ji ","Kui ","Zhong ","Wei ","Sha ","Xu ","Huang ","Du ","Nie ","Xuan ","Liang ","Yu ","Sang ","Chi ","Qiao ","Yan ","Dan ","Pen ","Can ","Li ","Yo ","Zha ","Wei ","Miao ","Ying ","Pen ","Phos ","Kui ","Xi ","Yu ","Jie ","Lou ","Ku ","Sao ","Huo ","Ti ","Yao ","He ","A ","Xiu ","Qiang ","Se ","Yong ","Su ","Hong ","Xie ","Yi ","Suo ","Ma ","Cha ","Hai ","Ke ","Ta ","Sang ","Tian ","Ru ","Sou ","Wa ","Ji ","Pang ","Wu ","Xian ","Shi ","Ge ","Zi ","Jie ","Luo ","Weng ","Wa ","Si ","Chi ","Hao ","Suo ","Jia ","Hai ","Suo ","Qin ","Nie ","He ","Cis ","Sai ","Ng ","Ge ","Na ","Dia ","Ai ","[?] ","Tong ","Bi ","Ao ","Ao ","Lian ","Cui ","Zhe ","Mo ","Sou ","Sou ","Tan "]});var MV=y((d9e,jV)=>{jV.exports=["Di ","Qi ","Jiao ","Chong ","Jiao ","Kai ","Tan ","San ","Cao ","Jia ","Ai ","Xiao ","Piao ","Lou ","Ga ","Gu ","Xiao ","Hu ","Hui ","Guo ","Ou ","Xian ","Ze ","Chang ","Xu ","Po ","De ","Ma ","Ma ","Hu ","Lei ","Du ","Ga ","Tang ","Ye ","Beng ","Ying ","Saai ","Jiao ","Mi ","Xiao ","Hua ","Mai ","Ran ","Zuo ","Peng ","Lao ","Xiao ","Ji ","Zhu ","Chao ","Kui ","Zui ","Xiao ","Si ","Hao ","Fu ","Liao ","Qiao ","Xi ","Xiu ","Tan ","Tan ","Mo ","Xun ","E ","Zun ","Fan ","Chi ","Hui ","Zan ","Chuang ","Cu ","Dan ","Yu ","Tun ","Cheng ","Jiao ","Ye ","Xi ","Qi ","Hao ","Lian ","Xu ","Deng ","Hui ","Yin ","Pu ","Jue ","Qin ","Xun ","Nie ","Lu ","Si ","Yan ","Ying ","Da ","Dan ","Yu ","Zhou ","Jin ","Nong ","Yue ","Hui ","Qi ","E ","Zao ","Yi ","Shi ","Jiao ","Yuan ","Ai ","Yong ","Jue ","Kuai ","Yu ","Pen ","Dao ","Ge ","Xin ","Dun ","Dang ","Sin ","Sai ","Pi ","Pi ","Yin ","Zui ","Ning ","Di ","Lan ","Ta ","Huo ","Ru ","Hao ","Xia ","Ya ","Duo ","Xi ","Chou ","Ji ","Jin ","Hao ","Ti ","Chang ","[?] ","[?] ","Ca ","Ti ","Lu ","Hui ","Bo ","You ","Nie ","Yin ","Hu ","Mo ","Huang ","Zhe ","Li ","Liu ","Haai ","Nang ","Xiao ","Mo ","Yan ","Li ","Lu ","Long ","Fu ","Dan ","Chen ","Pin ","Pi ","Xiang ","Huo ","Mo ","Xi ","Duo ","Ku ","Yan ","Chan ","Ying ","Rang ","Dian ","La ","Ta ","Xiao ","Jiao ","Chuo ","Huan ","Huo ","Zhuan ","Nie ","Xiao ","Ca ","Li ","Chan ","Chai ","Li ","Yi ","Luo ","Nang ","Zan ","Su ","Xi ","So ","Jian ","Za ","Zhu ","Lan ","Nie ","Nang ","[?] ","[?] ","Wei ","Hui ","Yin ","Qiu ","Si ","Nin ","Jian ","Hui ","Xin ","Yin ","Nan ","Tuan ","Tuan ","Dun ","Kang ","Yuan ","Jiong ","Pian ","Yun ","Cong ","Hu ","Hui ","Yuan ","You ","Guo ","Kun ","Cong ","Wei ","Tu ","Wei ","Lun ","Guo ","Qun ","Ri ","Ling ","Gu ","Guo ","Tai ","Guo ","Tu ","You "]});var AV=y((g9e,OV)=>{OV.exports=["Guo ","Yin ","Hun ","Pu ","Yu ","Han ","Yuan ","Lun ","Quan ","Yu ","Qing ","Guo ","Chuan ","Wei ","Yuan ","Quan ","Ku ","Fu ","Yuan ","Yuan ","E ","Tu ","Tu ","Tu ","Tuan ","Lue ","Hui ","Yi ","Yuan ","Luan ","Luan ","Tu ","Ya ","Tu ","Ting ","Sheng ","Pu ","Lu ","Iri ","Ya ","Zai ","Wei ","Ge ","Yu ","Wu ","Gui ","Pi ","Yi ","Di ","Qian ","Qian ","Zhen ","Zhuo ","Dang ","Qia ","Akutsu ","Yama ","Kuang ","Chang ","Qi ","Nie ","Mo ","Ji ","Jia ","Zhi ","Zhi ","Ban ","Xun ","Tou ","Qin ","Fen ","Jun ","Keng ","Tun ","Fang ","Fen ","Ben ","Tan ","Kan ","Pi ","Zuo ","Keng ","Bi ","Xing ","Di ","Jing ","Ji ","Kuai ","Di ","Jing ","Jian ","Tan ","Li ","Ba ","Wu ","Fen ","Zhui ","Po ","Pan ","Tang ","Kun ","Qu ","Tan ","Zhi ","Tuo ","Gan ","Ping ","Dian ","Gua ","Ni ","Tai ","Pi ","Jiong ","Yang ","Fo ","Ao ","Liu ","Qiu ","Mu ","Ke ","Gou ","Xue ","Ba ","Chi ","Che ","Ling ","Zhu ","Fu ","Hu ","Zhi ","Chui ","La ","Long ","Long ","Lu ","Ao ","Tay ","Pao ","[?] ","Xing ","Dong ","Ji ","Ke ","Lu ","Ci ","Chi ","Lei ","Gai ","Yin ","Hou ","Dui ","Zhao ","Fu ","Guang ","Yao ","Duo ","Duo ","Gui ","Cha ","Yang ","Yin ","Fa ","Gou ","Yuan ","Die ","Xie ","Ken ","Jiong ","Shou ","E ","Ha ","Dian ","Hong ","Wu ","Kua ","[?] ","Tao ","Dang ","Kai ","Gake ","Nao ","An ","Xing ","Xian ","Huan ","Bang ","Pei ","Ba ","Yi ","Yin ","Han ","Xu ","Chui ","Cen ","Geng ","Ai ","Peng ","Fang ","Que ","Yong ","Xun ","Jia ","Di ","Mai ","Lang ","Xuan ","Cheng ","Yan ","Jin ","Zhe ","Lei ","Lie ","Bu ","Cheng ","Gomi ","Bu ","Shi ","Xun ","Guo ","Jiong ","Ye ","Nian ","Di ","Yu ","Bu ","Ya ","Juan ","Sui ","Pi ","Cheng ","Wan ","Ju ","Lun ","Zheng ","Kong ","Chong ","Dong ","Dai ","Tan ","An ","Cai ","Shu ","Beng ","Kan ","Zhi ","Duo ","Yi ","Zhi ","Yi ","Pei ","Ji ","Zhun ","Qi ","Sao ","Ju ","Ni "]});var HV=y((p9e,NV)=>{NV.exports=["Ku ","Ke ","Tang ","Kun ","Ni ","Jian ","Dui ","Jin ","Gang ","Yu ","E ","Peng ","Gu ","Tu ","Leng ","[?] ","Ya ","Qian ","[?] ","An ","[?] ","Duo ","Nao ","Tu ","Cheng ","Yin ","Hun ","Bi ","Lian ","Guo ","Die ","Zhuan ","Hou ","Bao ","Bao ","Yu ","Di ","Mao ","Jie ","Ruan ","E ","Geng ","Kan ","Zong ","Yu ","Huang ","E ","Yao ","Yan ","Bao ","Ji ","Mei ","Chang ","Du ","Tuo ","Yin ","Feng ","Zhong ","Jie ","Zhen ","Feng ","Gang ","Chuan ","Jian ","Pyeng ","Toride ","Xiang ","Huang ","Leng ","Duan ","[?] ","Xuan ","Ji ","Ji ","Kuai ","Ying ","Ta ","Cheng ","Yong ","Kai ","Su ","Su ","Shi ","Mi ","Ta ","Weng ","Cheng ","Tu ","Tang ","Que ","Zhong ","Li ","Peng ","Bang ","Sai ","Zang ","Dui ","Tian ","Wu ","Cheng ","Xun ","Ge ","Zhen ","Ai ","Gong ","Yan ","Kan ","Tian ","Yuan ","Wen ","Xie ","Liu ","Ama ","Lang ","Chang ","Peng ","Beng ","Chen ","Cu ","Lu ","Ou ","Qian ","Mei ","Mo ","Zhuan ","Shuang ","Shu ","Lou ","Chi ","Man ","Biao ","Jing ","Qi ","Shu ","Di ","Zhang ","Kan ","Yong ","Dian ","Chen ","Zhi ","Xi ","Guo ","Qiang ","Jin ","Di ","Shang ","Mu ","Cui ","Yan ","Ta ","Zeng ","Qi ","Qiang ","Liang ","[?] ","Zhui ","Qiao ","Zeng ","Xu ","Shan ","Shan ","Ba ","Pu ","Kuai ","Dong ","Fan ","Que ","Mo ","Dun ","Dun ","Dun ","Di ","Sheng ","Duo ","Duo ","Tan ","Deng ","Wu ","Fen ","Huang ","Tan ","Da ","Ye ","Sho ","Mama ","Yu ","Qiang ","Ji ","Qiao ","Ken ","Yi ","Pi ","Bi ","Dian ","Jiang ","Ye ","Yong ","Bo ","Tan ","Lan ","Ju ","Huai ","Dang ","Rang ","Qian ","Xun ","Lan ","Xi ","He ","Ai ","Ya ","Dao ","Hao ","Ruan ","Mama ","Lei ","Kuang ","Lu ","Yan ","Tan ","Wei ","Huai ","Long ","Long ","Rui ","Li ","Lin ","Rang ","Ten ","Xun ","Yan ","Lei ","Ba ","[?] ","Shi ","Ren ","[?] ","Zhuang ","Zhuang ","Sheng ","Yi ","Mai ","Ke ","Zhu ","Zhuang ","Hu ","Hu ","Kun ","Yi ","Hu ","Xu ","Kun ","Shou ","Mang ","Zun "]});var BV=y((f9e,qV)=>{qV.exports=["Shou ","Yi ","Zhi ","Gu ","Chu ","Jiang ","Feng ","Bei ","Cay ","Bian ","Sui ","Qun ","Ling ","Fu ","Zuo ","Xia ","Xiong ","[?] ","Nao ","Xia ","Kui ","Xi ","Wai ","Yuan ","Mao ","Su ","Duo ","Duo ","Ye ","Qing ","Uys ","Gou ","Gou ","Qi ","Meng ","Meng ","Yin ","Huo ","Chen ","Da ","Ze ","Tian ","Tai ","Fu ","Guai ","Yao ","Yang ","Hang ","Gao ","Shi ","Ben ","Tai ","Tou ","Yan ","Bi ","Yi ","Kua ","Jia ","Duo ","Kwu ","Kuang ","Yun ","Jia ","Pa ","En ","Lian ","Huan ","Di ","Yan ","Pao ","Quan ","Qi ","Nai ","Feng ","Xie ","Fen ","Dian ","[?] ","Kui ","Zou ","Huan ","Qi ","Kai ","Zha ","Ben ","Yi ","Jiang ","Tao ","Zang ","Ben ","Xi ","Xiang ","Fei ","Diao ","Xun ","Keng ","Dian ","Ao ","She ","Weng ","Pan ","Ao ","Wu ","Ao ","Jiang ","Lian ","Duo ","Yun ","Jiang ","Shi ","Fen ","Huo ","Bi ","Lian ","Duo ","Nu ","Nu ","Ding ","Nai ","Qian ","Jian ","Ta ","Jiu ","Nan ","Cha ","Hao ","Xian ","Fan ","Ji ","Shuo ","Ru ","Fei ","Wang ","Hong ","Zhuang ","Fu ","Ma ","Dan ","Ren ","Fu ","Jing ","Yan ","Xie ","Wen ","Zhong ","Pa ","Du ","Ji ","Keng ","Zhong ","Yao ","Jin ","Yun ","Miao ","Pei ","Shi ","Yue ","Zhuang ","Niu ","Yan ","Na ","Xin ","Fen ","Bi ","Yu ","Tuo ","Feng ","Yuan ","Fang ","Wu ","Yu ","Gui ","Du ","Ba ","Ni ","Zhou ","Zhuo ","Zhao ","Da ","Nai ","Yuan ","Tou ","Xuan ","Zhi ","E ","Mei ","Mo ","Qi ","Bi ","Shen ","Qie ","E ","He ","Xu ","Fa ","Zheng ","Min ","Ban ","Mu ","Fu ","Ling ","Zi ","Zi ","Shi ","Ran ","Shan ","Yang ","Man ","Jie ","Gu ","Si ","Xing ","Wei ","Zi ","Ju ","Shan ","Pin ","Ren ","Yao ","Tong ","Jiang ","Shu ","Ji ","Gai ","Shang ","Kuo ","Juan ","Jiao ","Gou ","Mu ","Jian ","Jian ","Yi ","Nian ","Zhi ","Ji ","Ji ","Xian ","Heng ","Guang ","Jun ","Kua ","Yan ","Ming ","Lie ","Pei ","Yan ","You ","Yan ","Cha ","Shen ","Yin ","Chi ","Gui ","Quan ","Zi "]});var YV=y((m9e,WV)=>{WV.exports=["Song ","Wei ","Hong ","Wa ","Lou ","Ya ","Rao ","Jiao ","Luan ","Ping ","Xian ","Shao ","Li ","Cheng ","Xiao ","Mang ","Fu ","Suo ","Wu ","Wei ","Ke ","Lai ","Chuo ","Ding ","Niang ","Xing ","Nan ","Yu ","Nuo ","Pei ","Nei ","Juan ","Shen ","Zhi ","Han ","Di ","Zhuang ","E ","Pin ","Tui ","Han ","Mian ","Wu ","Yan ","Wu ","Xi ","Yan ","Yu ","Si ","Yu ","Wa ","[?] ","Xian ","Ju ","Qu ","Shui ","Qi ","Xian ","Zhui ","Dong ","Chang ","Lu ","Ai ","E ","E ","Lou ","Mian ","Cong ","Pou ","Ju ","Po ","Cai ","Ding ","Wan ","Biao ","Xiao ","Shu ","Qi ","Hui ","Fu ","E ","Wo ","Tan ","Fei ","Wei ","Jie ","Tian ","Ni ","Quan ","Jing ","Hun ","Jing ","Qian ","Dian ","Xing ","Hu ","Wa ","Lai ","Bi ","Yin ","Chou ","Chuo ","Fu ","Jing ","Lun ","Yan ","Lan ","Kun ","Yin ","Ya ","Ju ","Li ","Dian ","Xian ","Hwa ","Hua ","Ying ","Chan ","Shen ","Ting ","Dang ","Yao ","Wu ","Nan ","Ruo ","Jia ","Tou ","Xu ","Yu ","Wei ","Ti ","Rou ","Mei ","Dan ","Ruan ","Qin ","Hui ","Wu ","Qian ","Chun ","Mao ","Fu ","Jie ","Duan ","Xi ","Zhong ","Mei ","Huang ","Mian ","An ","Ying ","Xuan ","Jie ","Wei ","Mei ","Yuan ","Zhen ","Qiu ","Ti ","Xie ","Tuo ","Lian ","Mao ","Ran ","Si ","Pian ","Wei ","Wa ","Jiu ","Hu ","Ao ","[?] ","Bou ","Xu ","Tou ","Gui ","Zou ","Yao ","Pi ","Xi ","Yuan ","Ying ","Rong ","Ru ","Chi ","Liu ","Mei ","Pan ","Ao ","Ma ","Gou ","Kui ","Qin ","Jia ","Sao ","Zhen ","Yuan ","Cha ","Yong ","Ming ","Ying ","Ji ","Su ","Niao ","Xian ","Tao ","Pang ","Lang ","Nao ","Bao ","Ai ","Pi ","Pin ","Yi ","Piao ","Yu ","Lei ","Xuan ","Man ","Yi ","Zhang ","Kang ","Yong ","Ni ","Li ","Di ","Gui ","Yan ","Jin ","Zhuan ","Chang ","Ce ","Han ","Nen ","Lao ","Mo ","Zhe ","Hu ","Hu ","Ao ","Nen ","Qiang ","Ma ","Pie ","Gu ","Wu ","Jiao ","Tuo ","Zhan ","Mao ","Xian ","Xian ","Mo ","Liao ","Lian ","Hua "]});var JV=y((b9e,ZV)=>{ZV.exports=["Gui ","Deng ","Zhi ","Xu ","Yi ","Hua ","Xi ","Hui ","Rao ","Xi ","Yan ","Chan ","Jiao ","Mei ","Fan ","Fan ","Xian ","Yi ","Wei ","Jiao ","Fu ","Shi ","Bi ","Shan ","Sui ","Qiang ","Lian ","Huan ","Xin ","Niao ","Dong ","Yi ","Can ","Ai ","Niang ","Neng ","Ma ","Tiao ","Chou ","Jin ","Ci ","Yu ","Pin ","Yong ","Xu ","Nai ","Yan ","Tai ","Ying ","Can ","Niao ","Wo ","Ying ","Mian ","Kaka ","Ma ","Shen ","Xing ","Ni ","Du ","Liu ","Yuan ","Lan ","Yan ","Shuang ","Ling ","Jiao ","Niang ","Lan ","Xian ","Ying ","Shuang ","Shuai ","Quan ","Mi ","Li ","Luan ","Yan ","Zhu ","Lan ","Zi ","Jie ","Jue ","Jue ","Kong ","Yun ","Zi ","Zi ","Cun ","Sun ","Fu ","Bei ","Zi ","Xiao ","Xin ","Meng ","Si ","Tai ","Bao ","Ji ","Gu ","Nu ","Xue ","[?] ","Zhuan ","Hai ","Luan ","Sun ","Huai ","Mie ","Cong ","Qian ","Shu ","Chan ","Ya ","Zi ","Ni ","Fu ","Zi ","Li ","Xue ","Bo ","Ru ","Lai ","Nie ","Nie ","Ying ","Luan ","Mian ","Zhu ","Rong ","Ta ","Gui ","Zhai ","Qiong ","Yu ","Shou ","An ","Tu ","Song ","Wan ","Rou ","Yao ","Hong ","Yi ","Jing ","Zhun ","Mi ","Zhu ","Dang ","Hong ","Zong ","Guan ","Zhou ","Ding ","Wan ","Yi ","Bao ","Shi ","Shi ","Chong ","Shen ","Ke ","Xuan ","Shi ","You ","Huan ","Yi ","Tiao ","Shi ","Xian ","Gong ","Cheng ","Qun ","Gong ","Xiao ","Zai ","Zha ","Bao ","Hai ","Yan ","Xiao ","Jia ","Shen ","Chen ","Rong ","Huang ","Mi ","Kou ","Kuan ","Bin ","Su ","Cai ","Zan ","Ji ","Yuan ","Ji ","Yin ","Mi ","Kou ","Qing ","Que ","Zhen ","Jian ","Fu ","Ning ","Bing ","Huan ","Mei ","Qin ","Han ","Yu ","Shi ","Ning ","Qin ","Ning ","Zhi ","Yu ","Bao ","Kuan ","Ning ","Qin ","Mo ","Cha ","Ju ","Gua ","Qin ","Hu ","Wu ","Liao ","Shi ","Zhu ","Zhai ","Shen ","Wei ","Xie ","Kuan ","Hui ","Liao ","Jun ","Huan ","Yi ","Yi ","Bao ","Qin ","Chong ","Bao ","Feng ","Cun ","Dui ","Si ","Xun ","Dao ","Lu ","Dui ","Shou "]});var UV=y((y9e,$V)=>{$V.exports=["Po ","Feng ","Zhuan ","Fu ","She ","Ke ","Jiang ","Jiang ","Zhuan ","Wei ","Zun ","Xun ","Shu ","Dui ","Dao ","Xiao ","Ji ","Shao ","Er ","Er ","Er ","Ga ","Jian ","Shu ","Chen ","Shang ","Shang ","Mo ","Ga ","Chang ","Liao ","Xian ","Xian ","[?] ","Wang ","Wang ","You ","Liao ","Liao ","Yao ","Mang ","Wang ","Wang ","Wang ","Ga ","Yao ","Duo ","Kui ","Zhong ","Jiu ","Gan ","Gu ","Gan ","Tui ","Gan ","Gan ","Shi ","Yin ","Chi ","Kao ","Ni ","Jin ","Wei ","Niao ","Ju ","Pi ","Ceng ","Xi ","Bi ","Ju ","Jie ","Tian ","Qu ","Ti ","Jie ","Wu ","Diao ","Shi ","Shi ","Ping ","Ji ","Xie ","Chen ","Xi ","Ni ","Zhan ","Xi ","[?] ","Man ","E ","Lou ","Ping ","Ti ","Fei ","Shu ","Xie ","Tu ","Lu ","Lu ","Xi ","Ceng ","Lu ","Ju ","Xie ","Ju ","Jue ","Liao ","Jue ","Shu ","Xi ","Che ","Tun ","Ni ","Shan ","[?] ","Xian ","Li ","Xue ","Nata ","[?] ","Long ","Yi ","Qi ","Ren ","Wu ","Han ","Shen ","Yu ","Chu ","Sui ","Qi ","[?] ","Yue ","Ban ","Yao ","Ang ","Ya ","Wu ","Jie ","E ","Ji ","Qian ","Fen ","Yuan ","Qi ","Cen ","Qian ","Qi ","Cha ","Jie ","Qu ","Gang ","Xian ","Ao ","Lan ","Dao ","Ba ","Zuo ","Zuo ","Yang ","Ju ","Gang ","Ke ","Gou ","Xue ","Bei ","Li ","Tiao ","Ju ","Yan ","Fu ","Xiu ","Jia ","Ling ","Tuo ","Pei ","You ","Dai ","Kuang ","Yue ","Qu ","Hu ","Po ","Min ","An ","Tiao ","Ling ","Chi ","Yuri ","Dong ","Cem ","Kui ","Xiu ","Mao ","Tong ","Xue ","Yi ","Kura ","He ","Ke ","Luo ","E ","Fu ","Xun ","Die ","Lu ","An ","Er ","Gai ","Quan ","Tong ","Yi ","Mu ","Shi ","An ","Wei ","Hu ","Zhi ","Mi ","Li ","Ji ","Tong ","Wei ","You ","Sang ","Xia ","Li ","Yao ","Jiao ","Zheng ","Luan ","Jiao ","E ","E ","Yu ","Ye ","Bu ","Qiao ","Qun ","Feng ","Feng ","Nao ","Li ","You ","Xian ","Hong ","Dao ","Shen ","Cheng ","Tu ","Geng ","Jun ","Hao ","Xia ","Yin ","Yu "]});var GV=y((v9e,XV)=>{XV.exports=["Lang ","Kan ","Lao ","Lai ","Xian ","Que ","Kong ","Chong ","Chong ","Ta ","Lin ","Hua ","Ju ","Lai ","Qi ","Min ","Kun ","Kun ","Zu ","Gu ","Cui ","Ya ","Ya ","Gang ","Lun ","Lun ","Leng ","Jue ","Duo ","Zheng ","Guo ","Yin ","Dong ","Han ","Zheng ","Wei ","Yao ","Pi ","Yan ","Song ","Jie ","Beng ","Zu ","Jue ","Dong ","Zhan ","Gu ","Yin ","[?] ","Ze ","Huang ","Yu ","Wei ","Yang ","Feng ","Qiu ","Dun ","Ti ","Yi ","Zhi ","Shi ","Zai ","Yao ","E ","Zhu ","Kan ","Lu ","Yan ","Mei ","Gan ","Ji ","Ji ","Huan ","Ting ","Sheng ","Mei ","Qian ","Wu ","Yu ","Zong ","Lan ","Jue ","Yan ","Yan ","Wei ","Zong ","Cha ","Sui ","Rong ","Yamashina ","Qin ","Yu ","Kewashii ","Lou ","Tu ","Dui ","Xi ","Weng ","Cang ","Dang ","Hong ","Jie ","Ai ","Liu ","Wu ","Song ","Qiao ","Zi ","Wei ","Beng ","Dian ","Cuo ","Qian ","Yong ","Nie ","Cuo ","Ji ","[?] ","Tao ","Song ","Zong ","Jiang ","Liao ","Kang ","Chan ","Die ","Cen ","Ding ","Tu ","Lou ","Zhang ","Zhan ","Zhan ","Ao ","Cao ","Qu ","Qiang ","Zui ","Zui ","Dao ","Dao ","Xi ","Yu ","Bo ","Long ","Xiang ","Ceng ","Bo ","Qin ","Jiao ","Yan ","Lao ","Zhan ","Lin ","Liao ","Liao ","Jin ","Deng ","Duo ","Zun ","Jiao ","Gui ","Yao ","Qiao ","Yao ","Jue ","Zhan ","Yi ","Xue ","Nao ","Ye ","Ye ","Yi ","E ","Xian ","Ji ","Xie ","Ke ","Xi ","Di ","Ao ","Zui ","[?] ","Ni ","Rong ","Dao ","Ling ","Za ","Yu ","Yue ","Yin ","[?] ","Jie ","Li ","Sui ","Long ","Long ","Dian ","Ying ","Xi ","Ju ","Chan ","Ying ","Kui ","Yan ","Wei ","Nao ","Quan ","Chao ","Cuan ","Luan ","Dian ","Dian ","[?] ","Yan ","Yan ","Yan ","Nao ","Yan ","Chuan ","Gui ","Chuan ","Zhou ","Huang ","Jing ","Xun ","Chao ","Chao ","Lie ","Gong ","Zuo ","Qiao ","Ju ","Gong ","Kek ","Wu ","Pwu ","Pwu ","Chai ","Qiu ","Qiu ","Ji ","Yi ","Si ","Ba ","Zhi ","Zhao ","Xiang ","Yi ","Jin ","Xun ","Juan ","Phas ","Xun ","Jin ","Fu "]});var KV=y((w9e,zV)=>{zV.exports=["Za ","Bi ","Shi ","Bu ","Ding ","Shuai ","Fan ","Nie ","Shi ","Fen ","Pa ","Zhi ","Xi ","Hu ","Dan ","Wei ","Zhang ","Tang ","Dai ","Ma ","Pei ","Pa ","Tie ","Fu ","Lian ","Zhi ","Zhou ","Bo ","Zhi ","Di ","Mo ","Yi ","Yi ","Ping ","Qia ","Juan ","Ru ","Shuai ","Dai ","Zheng ","Shui ","Qiao ","Zhen ","Shi ","Qun ","Xi ","Bang ","Dai ","Gui ","Chou ","Ping ","Zhang ","Sha ","Wan ","Dai ","Wei ","Chang ","Sha ","Qi ","Ze ","Guo ","Mao ","Du ","Hou ","Zheng ","Xu ","Mi ","Wei ","Wo ","Fu ","Yi ","Bang ","Ping ","Tazuna ","Gong ","Pan ","Huang ","Dao ","Mi ","Jia ","Teng ","Hui ","Zhong ","Shan ","Man ","Mu ","Biao ","Guo ","Ze ","Mu ","Bang ","Zhang ","Jiong ","Chan ","Fu ","Zhi ","Hu ","Fan ","Chuang ","Bi ","Hei ","[?] ","Mi ","Qiao ","Chan ","Fen ","Meng ","Bang ","Chou ","Mie ","Chu ","Jie ","Xian ","Lan ","Gan ","Ping ","Nian ","Qian ","Bing ","Bing ","Xing ","Gan ","Yao ","Huan ","You ","You ","Ji ","Yan ","Pi ","Ting ","Ze ","Guang ","Zhuang ","Mo ","Qing ","Bi ","Qin ","Dun ","Chuang ","Gui ","Ya ","Bai ","Jie ","Xu ","Lu ","Wu ","[?] ","Ku ","Ying ","Di ","Pao ","Dian ","Ya ","Miao ","Geng ","Ci ","Fu ","Tong ","Pang ","Fei ","Xiang ","Yi ","Zhi ","Tiao ","Zhi ","Xiu ","Du ","Zuo ","Xiao ","Tu ","Gui ","Ku ","Pang ","Ting ","You ","Bu ","Ding ","Cheng ","Lai ","Bei ","Ji ","An ","Shu ","Kang ","Yong ","Tuo ","Song ","Shu ","Qing ","Yu ","Yu ","Miao ","Sou ","Ce ","Xiang ","Fei ","Jiu ","He ","Hui ","Liu ","Sha ","Lian ","Lang ","Sou ","Jian ","Pou ","Qing ","Jiu ","Jiu ","Qin ","Ao ","Kuo ","Lou ","Yin ","Liao ","Dai ","Lu ","Yi ","Chu ","Chan ","Tu ","Si ","Xin ","Miao ","Chang ","Wu ","Fei ","Guang ","Koc ","Kuai ","Bi ","Qiang ","Xie ","Lin ","Lin ","Liao ","Lu ","[?] ","Ying ","Xian ","Ting ","Yong ","Li ","Ting ","Yin ","Xun ","Yan ","Ting ","Di ","Po ","Jian ","Hui ","Nai ","Hui ","Gong ","Nian "]});var VV=y((x9e,QV)=>{QV.exports=["Kai ","Bian ","Yi ","Qi ","Nong ","Fen ","Ju ","Yan ","Yi ","Zang ","Bi ","Yi ","Yi ","Er ","San ","Shi ","Er ","Shi ","Shi ","Gong ","Diao ","Yin ","Hu ","Fu ","Hong ","Wu ","Tui ","Chi ","Jiang ","Ba ","Shen ","Di ","Zhang ","Jue ","Tao ","Fu ","Di ","Mi ","Xian ","Hu ","Chao ","Nu ","Jing ","Zhen ","Yi ","Mi ","Quan ","Wan ","Shao ","Ruo ","Xuan ","Jing ","Dun ","Zhang ","Jiang ","Qiang ","Peng ","Dan ","Qiang ","Bi ","Bi ","She ","Dan ","Jian ","Gou ","Sei ","Fa ","Bi ","Kou ","Nagi ","Bie ","Xiao ","Dan ","Kuo ","Qiang ","Hong ","Mi ","Kuo ","Wan ","Jue ","Ji ","Ji ","Gui ","Dang ","Lu ","Lu ","Tuan ","Hui ","Zhi ","Hui ","Hui ","Yi ","Yi ","Yi ","Yi ","Huo ","Huo ","Shan ","Xing ","Wen ","Tong ","Yan ","Yan ","Yu ","Chi ","Cai ","Biao ","Diao ","Bin ","Peng ","Yong ","Piao ","Zhang ","Ying ","Chi ","Chi ","Zhuo ","Tuo ","Ji ","Pang ","Zhong ","Yi ","Wang ","Che ","Bi ","Chi ","Ling ","Fu ","Wang ","Zheng ","Cu ","Wang ","Jing ","Dai ","Xi ","Xun ","Hen ","Yang ","Huai ","Lu ","Hou ","Wa ","Cheng ","Zhi ","Xu ","Jing ","Tu ","Cong ","[?] ","Lai ","Cong ","De ","Pai ","Xi ","[?] ","Qi ","Chang ","Zhi ","Cong ","Zhou ","Lai ","Yu ","Xie ","Jie ","Jian ","Chi ","Jia ","Bian ","Huang ","Fu ","Xun ","Wei ","Pang ","Yao ","Wei ","Xi ","Zheng ","Piao ","Chi ","De ","Zheng ","Zheng ","Bie ","De ","Chong ","Che ","Jiao ","Wei ","Jiao ","Hui ","Mei ","Long ","Xiang ","Bao ","Qu ","Xin ","Shu ","Bi ","Yi ","Le ","Ren ","Dao ","Ding ","Gai ","Ji ","Ren ","Ren ","Chan ","Tan ","Te ","Te ","Gan ","Qi ","Shi ","Cun ","Zhi ","Wang ","Mang ","Xi ","Fan ","Ying ","Tian ","Min ","Min ","Zhong ","Chong ","Wu ","Ji ","Wu ","Xi ","Ye ","You ","Wan ","Cong ","Zhong ","Kuai ","Yu ","Bian ","Zhi ","Qi ","Cui ","Chen ","Tai ","Tun ","Qian ","Nian ","Hun ","Xiong ","Niu ","Wang ","Xian ","Xin ","Kang ","Hu ","Kai ","Fen "]});var t8=y((C9e,e8)=>{e8.exports=["Huai ","Tai ","Song ","Wu ","Ou ","Chang ","Chuang ","Ju ","Yi ","Bao ","Chao ","Min ","Pei ","Zuo ","Zen ","Yang ","Kou ","Ban ","Nu ","Nao ","Zheng ","Pa ","Bu ","Tie ","Gu ","Hu ","Ju ","Da ","Lian ","Si ","Chou ","Di ","Dai ","Yi ","Tu ","You ","Fu ","Ji ","Peng ","Xing ","Yuan ","Ni ","Guai ","Fu ","Xi ","Bi ","You ","Qie ","Xuan ","Cong ","Bing ","Huang ","Xu ","Chu ","Pi ","Xi ","Xi ","Tan ","Koraeru ","Zong ","Dui ","[?] ","Ki ","Yi ","Chi ","Ren ","Xun ","Shi ","Xi ","Lao ","Heng ","Kuang ","Mu ","Zhi ","Xie ","Lian ","Tiao ","Huang ","Die ","Hao ","Kong ","Gui ","Heng ","Xi ","Xiao ","Shu ","S ","Kua ","Qiu ","Yang ","Hui ","Hui ","Chi ","Jia ","Yi ","Xiong ","Guai ","Lin ","Hui ","Zi ","Xu ","Chi ","Xiang ","Nu ","Hen ","En ","Ke ","Tong ","Tian ","Gong ","Quan ","Xi ","Qia ","Yue ","Peng ","Ken ","De ","Hui ","E ","Kyuu ","Tong ","Yan ","Kai ","Ce ","Nao ","Yun ","Mang ","Yong ","Yong ","Yuan ","Pi ","Kun ","Qiao ","Yue ","Yu ","Yu ","Jie ","Xi ","Zhe ","Lin ","Ti ","Han ","Hao ","Qie ","Ti ","Bu ","Yi ","Qian ","Hui ","Xi ","Bei ","Man ","Yi ","Heng ","Song ","Quan ","Cheng ","Hui ","Wu ","Wu ","You ","Li ","Liang ","Huan ","Cong ","Yi ","Yue ","Li ","Nin ","Nao ","E ","Que ","Xuan ","Qian ","Wu ","Min ","Cong ","Fei ","Bei ","Duo ","Cui ","Chang ","Men ","Li ","Ji ","Guan ","Guan ","Xing ","Dao ","Qi ","Kong ","Tian ","Lun ","Xi ","Kan ","Kun ","Ni ","Qing ","Chou ","Dun ","Guo ","Chan ","Liang ","Wan ","Yuan ","Jin ","Ji ","Lin ","Yu ","Huo ","He ","Quan ","Tan ","Ti ","Ti ","Nie ","Wang ","Chuo ","Bu ","Hun ","Xi ","Tang ","Xin ","Wei ","Hui ","E ","Rui ","Zong ","Jian ","Yong ","Dian ","Ju ","Can ","Cheng ","De ","Bei ","Qie ","Can ","Dan ","Guan ","Duo ","Nao ","Yun ","Xiang ","Zhui ","Die ","Huang ","Chun ","Qiong ","Re ","Xing ","Ce ","Bian ","Hun ","Zong ","Ti "]});var n8=y((S9e,i8)=>{i8.exports=["Qiao ","Chou ","Bei ","Xuan ","Wei ","Ge ","Qian ","Wei ","Yu ","Yu ","Bi ","Xuan ","Huan ","Min ","Bi ","Yi ","Mian ","Yong ","Kai ","Dang ","Yin ","E ","Chen ","Mou ","Ke ","Ke ","Yu ","Ai ","Qie ","Yan ","Nuo ","Gan ","Yun ","Zong ","Sai ","Leng ","Fen ","[?] ","Kui ","Kui ","Que ","Gong ","Yun ","Su ","Su ","Qi ","Yao ","Song ","Huang ","Ji ","Gu ","Ju ","Chuang ","Ni ","Xie ","Kai ","Zheng ","Yong ","Cao ","Sun ","Shen ","Bo ","Kai ","Yuan ","Xie ","Hun ","Yong ","Yang ","Li ","Sao ","Tao ","Yin ","Ci ","Xu ","Qian ","Tai ","Huang ","Yun ","Shen ","Ming ","[?] ","She ","Cong ","Piao ","Mo ","Mu ","Guo ","Chi ","Can ","Can ","Can ","Cui ","Min ","Te ","Zhang ","Tong ","Ao ","Shuang ","Man ","Guan ","Que ","Zao ","Jiu ","Hui ","Kai ","Lian ","Ou ","Song ","Jin ","Yin ","Lu ","Shang ","Wei ","Tuan ","Man ","Qian ","She ","Yong ","Qing ","Kang ","Di ","Zhi ","Lou ","Juan ","Qi ","Qi ","Yu ","Ping ","Liao ","Cong ","You ","Chong ","Zhi ","Tong ","Cheng ","Qi ","Qu ","Peng ","Bei ","Bie ","Chun ","Jiao ","Zeng ","Chi ","Lian ","Ping ","Kui ","Hui ","Qiao ","Cheng ","Yin ","Yin ","Xi ","Xi ","Dan ","Tan ","Duo ","Dui ","Dui ","Su ","Jue ","Ce ","Xiao ","Fan ","Fen ","Lao ","Lao ","Chong ","Han ","Qi ","Xian ","Min ","Jing ","Liao ","Wu ","Can ","Jue ","Cu ","Xian ","Tan ","Sheng ","Pi ","Yi ","Chu ","Xian ","Nao ","Dan ","Tan ","Jing ","Song ","Han ","Jiao ","Wai ","Huan ","Dong ","Qin ","Qin ","Qu ","Cao ","Ken ","Xie ","Ying ","Ao ","Mao ","Yi ","Lin ","Se ","Jun ","Huai ","Men ","Lan ","Ai ","Lin ","Yan ","Gua ","Xia ","Chi ","Yu ","Yin ","Dai ","Meng ","Ai ","Meng ","Dui ","Qi ","Mo ","Lan ","Men ","Chou ","Zhi ","Nuo ","Nuo ","Yan ","Yang ","Bo ","Zhi ","Kuang ","Kuang ","You ","Fu ","Liu ","Mie ","Cheng ","[?] ","Chan ","Meng ","Lan ","Huai ","Xuan ","Rang ","Chan ","Ji ","Ju ","Huan ","She ","Yi "]});var o8=y((D9e,r8)=>{r8.exports=["Lian ","Nan ","Mi ","Tang ","Jue ","Gang ","Gang ","Gang ","Ge ","Yue ","Wu ","Jian ","Xu ","Shu ","Rong ","Xi ","Cheng ","Wo ","Jie ","Ge ","Jian ","Qiang ","Huo ","Qiang ","Zhan ","Dong ","Qi ","Jia ","Die ","Zei ","Jia ","Ji ","Shi ","Kan ","Ji ","Kui ","Gai ","Deng ","Zhan ","Chuang ","Ge ","Jian ","Jie ","Yu ","Jian ","Yan ","Lu ","Xi ","Zhan ","Xi ","Xi ","Chuo ","Dai ","Qu ","Hu ","Hu ","Hu ","E ","Shi ","Li ","Mao ","Hu ","Li ","Fang ","Suo ","Bian ","Dian ","Jiong ","Shang ","Yi ","Yi ","Shan ","Hu ","Fei ","Yan ","Shou ","T ","Cai ","Zha ","Qiu ","Le ","Bu ","Ba ","Da ","Reng ","Fu ","Hameru ","Zai ","Tuo ","Zhang ","Diao ","Kang ","Yu ","Ku ","Han ","Shen ","Cha ","Yi ","Gu ","Kou ","Wu ","Tuo ","Qian ","Zhi ","Ren ","Kuo ","Men ","Sao ","Yang ","Niu ","Ban ","Che ","Rao ","Xi ","Qian ","Ban ","Jia ","Yu ","Fu ","Ao ","Xi ","Pi ","Zhi ","Zi ","E ","Dun ","Zhao ","Cheng ","Ji ","Yan ","Kuang ","Bian ","Chao ","Ju ","Wen ","Hu ","Yue ","Jue ","Ba ","Qin ","Zhen ","Zheng ","Yun ","Wan ","Nu ","Yi ","Shu ","Zhua ","Pou ","Tou ","Dou ","Kang ","Zhe ","Pou ","Fu ","Pao ","Ba ","Ao ","Ze ","Tuan ","Kou ","Lun ","Qiang ","[?] ","Hu ","Bao ","Bing ","Zhi ","Peng ","Tan ","Pu ","Pi ","Tai ","Yao ","Zhen ","Zha ","Yang ","Bao ","He ","Ni ","Yi ","Di ","Chi ","Pi ","Za ","Mo ","Mo ","Shen ","Ya ","Chou ","Qu ","Min ","Chu ","Jia ","Fu ","Zhan ","Zhu ","Dan ","Chai ","Mu ","Nian ","La ","Fu ","Pao ","Ban ","Pai ","Ling ","Na ","Guai ","Qian ","Ju ","Tuo ","Ba ","Tuo ","Tuo ","Ao ","Ju ","Zhuo ","Pan ","Zhao ","Bai ","Bai ","Di ","Ni ","Ju ","Kuo ","Long ","Jian ","[?] ","Yong ","Lan ","Ning ","Bo ","Ze ","Qian ","Hen ","Gua ","Shi ","Jie ","Zheng ","Nin ","Gong ","Gong ","Quan ","Shuan ","Cun ","Zan ","Kao ","Chi ","Xie ","Ce ","Hui ","Pin ","Zhuai ","Shi ","Na "]});var a8=y((T9e,s8)=>{s8.exports=["Bo ","Chi ","Gua ","Zhi ","Kuo ","Duo ","Duo ","Zhi ","Qie ","An ","Nong ","Zhen ","Ge ","Jiao ","Ku ","Dong ","Ru ","Tiao ","Lie ","Zha ","Lu ","Die ","Wa ","Jue ","Mushiru ","Ju ","Zhi ","Luan ","Ya ","Zhua ","Ta ","Xie ","Nao ","Dang ","Jiao ","Zheng ","Ji ","Hui ","Xun ","Ku ","Ai ","Tuo ","Nuo ","Cuo ","Bo ","Geng ","Ti ","Zhen ","Cheng ","Suo ","Suo ","Keng ","Mei ","Long ","Ju ","Peng ","Jian ","Yi ","Ting ","Shan ","Nuo ","Wan ","Xie ","Cha ","Feng ","Jiao ","Wu ","Jun ","Jiu ","Tong ","Kun ","Huo ","Tu ","Zhuo ","Pou ","Le ","Ba ","Han ","Shao ","Nie ","Juan ","Ze ","Song ","Ye ","Jue ","Bu ","Huan ","Bu ","Zun ","Yi ","Zhai ","Lu ","Sou ","Tuo ","Lao ","Sun ","Bang ","Jian ","Huan ","Dao ","[?] ","Wan ","Qin ","Peng ","She ","Lie ","Min ","Men ","Fu ","Bai ","Ju ","Dao ","Wo ","Ai ","Juan ","Yue ","Zong ","Chen ","Chui ","Jie ","Tu ","Ben ","Na ","Nian ","Nuo ","Zu ","Wo ","Xi ","Xian ","Cheng ","Dian ","Sao ","Lun ","Qing ","Gang ","Duo ","Shou ","Diao ","Pou ","Di ","Zhang ","Gun ","Ji ","Tao ","Qia ","Qi ","Pai ","Shu ","Qian ","Ling ","Yi ","Ya ","Jue ","Zheng ","Liang ","Gua ","Yi ","Huo ","Shan ","Zheng ","Lue ","Cai ","Tan ","Che ","Bing ","Jie ","Ti ","Kong ","Tui ","Yan ","Cuo ","Zou ","Ju ","Tian ","Qian ","Ken ","Bai ","Shou ","Jie ","Lu ","Guo ","Haba ","[?] ","Zhi ","Dan ","Mang ","Xian ","Sao ","Guan ","Peng ","Yuan ","Nuo ","Jian ","Zhen ","Jiu ","Jian ","Yu ","Yan ","Kui ","Nan ","Hong ","Rou ","Pi ","Wei ","Sai ","Zou ","Xuan ","Miao ","Ti ","Nie ","Cha ","Shi ","Zong ","Zhen ","Yi ","Shun ","Heng ","Bian ","Yang ","Huan ","Yan ","Zuan ","An ","Xu ","Ya ","Wo ","Ke ","Chuai ","Ji ","Ti ","La ","La ","Cheng ","Kai ","Jiu ","Jiu ","Tu ","Jie ","Hui ","Geng ","Chong ","Shuo ","She ","Xie ","Yuan ","Qian ","Ye ","Cha ","Zha ","Bei ","Yao ","[?] ","[?] ","Lan ","Wen ","Qin "]});var u8=y((k9e,l8)=>{l8.exports=["Chan ","Ge ","Lou ","Zong ","Geng ","Jiao ","Gou ","Qin ","Yong ","Que ","Chou ","Chi ","Zhan ","Sun ","Sun ","Bo ","Chu ","Rong ","Beng ","Cuo ","Sao ","Ke ","Yao ","Dao ","Zhi ","Nu ","Xie ","Jian ","Sou ","Qiu ","Gao ","Xian ","Shuo ","Sang ","Jin ","Mie ","E ","Chui ","Nuo ","Shan ","Ta ","Jie ","Tang ","Pan ","Ban ","Da ","Li ","Tao ","Hu ","Zhi ","Wa ","Xia ","Qian ","Wen ","Qiang ","Tian ","Zhen ","E ","Xi ","Nuo ","Quan ","Cha ","Zha ","Ge ","Wu ","En ","She ","Kang ","She ","Shu ","Bai ","Yao ","Bin ","Sou ","Tan ","Sa ","Chan ","Suo ","Liao ","Chong ","Chuang ","Guo ","Bing ","Feng ","Shuai ","Di ","Qi ","Sou ","Zhai ","Lian ","Tang ","Chi ","Guan ","Lu ","Luo ","Lou ","Zong ","Gai ","Hu ","Zha ","Chuang ","Tang ","Hua ","Cui ","Nai ","Mo ","Jiang ","Gui ","Ying ","Zhi ","Ao ","Zhi ","Nie ","Man ","Shan ","Kou ","Shu ","Suo ","Tuan ","Jiao ","Mo ","Mo ","Zhe ","Xian ","Keng ","Piao ","Jiang ","Yin ","Gou ","Qian ","Lue ","Ji ","Ying ","Jue ","Pie ","Pie ","Lao ","Dun ","Xian ","Ruan ","Kui ","Zan ","Yi ","Xun ","Cheng ","Cheng ","Sa ","Nao ","Heng ","Si ","Qian ","Huang ","Da ","Zun ","Nian ","Lin ","Zheng ","Hui ","Zhuang ","Jiao ","Ji ","Cao ","Dan ","Dan ","Che ","Bo ","Che ","Jue ","Xiao ","Liao ","Ben ","Fu ","Qiao ","Bo ","Cuo ","Zhuo ","Zhuan ","Tuo ","Pu ","Qin ","Dun ","Nian ","[?] ","Xie ","Lu ","Jiao ","Cuan ","Ta ","Han ","Qiao ","Zhua ","Jian ","Gan ","Yong ","Lei ","Kuo ","Lu ","Shan ","Zhuo ","Ze ","Pu ","Chuo ","Ji ","Dang ","Suo ","Cao ","Qing ","Jing ","Huan ","Jie ","Qin ","Kuai ","Dan ","Xi ","Ge ","Pi ","Bo ","Ao ","Ju ","Ye ","[?] ","Mang ","Sou ","Mi ","Ji ","Tai ","Zhuo ","Dao ","Xing ","Lan ","Ca ","Ju ","Ye ","Ru ","Ye ","Ye ","Ni ","Hu ","Ji ","Bin ","Ning ","Ge ","Zhi ","Jie ","Kuo ","Mo ","Jian ","Xie ","Lie ","Tan ","Bai ","Sou ","Lu ","Lue ","Rao ","Zhi "]});var h8=y((P9e,c8)=>{c8.exports=["Pan ","Yang ","Lei ","Sa ","Shu ","Zan ","Nian ","Xian ","Jun ","Huo ","Li ","La ","Han ","Ying ","Lu ","Long ","Qian ","Qian ","Zan ","Qian ","Lan ","San ","Ying ","Mei ","Rang ","Chan ","[?] ","Cuan ","Xi ","She ","Luo ","Jun ","Mi ","Li ","Zan ","Luan ","Tan ","Zuan ","Li ","Dian ","Wa ","Dang ","Jiao ","Jue ","Lan ","Li ","Nang ","Zhi ","Gui ","Gui ","Qi ","Xin ","Pu ","Sui ","Shou ","Kao ","You ","Gai ","Yi ","Gong ","Gan ","Ban ","Fang ","Zheng ","Bo ","Dian ","Kou ","Min ","Wu ","Gu ","He ","Ce ","Xiao ","Mi ","Chu ","Ge ","Di ","Xu ","Jiao ","Min ","Chen ","Jiu ","Zhen ","Duo ","Yu ","Chi ","Ao ","Bai ","Xu ","Jiao ","Duo ","Lian ","Nie ","Bi ","Chang ","Dian ","Duo ","Yi ","Gan ","San ","Ke ","Yan ","Dun ","Qi ","Dou ","Xiao ","Duo ","Jiao ","Jing ","Yang ","Xia ","Min ","Shu ","Ai ","Qiao ","Ai ","Zheng ","Di ","Zhen ","Fu ","Shu ","Liao ","Qu ","Xiong ","Xi ","Jiao ","Sen ","Jiao ","Zhuo ","Yi ","Lian ","Bi ","Li ","Xiao ","Xiao ","Wen ","Xue ","Qi ","Qi ","Zhai ","Bin ","Jue ","Zhai ","[?] ","Fei ","Ban ","Ban ","Lan ","Yu ","Lan ","Wei ","Dou ","Sheng ","Liao ","Jia ","Hu ","Xie ","Jia ","Yu ","Zhen ","Jiao ","Wo ","Tou ","Chu ","Jin ","Chi ","Yin ","Fu ","Qiang ","Zhan ","Qu ","Zhuo ","Zhan ","Duan ","Zhuo ","Si ","Xin ","Zhuo ","Zhuo ","Qin ","Lin ","Zhuo ","Chu ","Duan ","Zhu ","Fang ","Xie ","Hang ","Yu ","Shi ","Pei ","You ","Mye ","Pang ","Qi ","Zhan ","Mao ","Lu ","Pei ","Pi ","Liu ","Fu ","Fang ","Xuan ","Jing ","Jing ","Ni ","Zu ","Zhao ","Yi ","Liu ","Shao ","Jian ","Es ","Yi ","Qi ","Zhi ","Fan ","Piao ","Fan ","Zhan ","Guai ","Sui ","Yu ","Wu ","Ji ","Ji ","Ji ","Huo ","Ri ","Dan ","Jiu ","Zhi ","Zao ","Xie ","Tiao ","Xun ","Xu ","Xu ","Xu ","Gan ","Han ","Tai ","Di ","Xu ","Chan ","Shi ","Kuang ","Yang ","Shi ","Wang ","Min ","Min ","Tun ","Chun ","Wu "]});var g8=y((E9e,d8)=>{d8.exports=["Yun ","Bei ","Ang ","Ze ","Ban ","Jie ","Kun ","Sheng ","Hu ","Fang ","Hao ","Gui ","Chang ","Xuan ","Ming ","Hun ","Fen ","Qin ","Hu ","Yi ","Xi ","Xin ","Yan ","Ze ","Fang ","Tan ","Shen ","Ju ","Yang ","Zan ","Bing ","Xing ","Ying ","Xuan ","Pei ","Zhen ","Ling ","Chun ","Hao ","Mei ","Zuo ","Mo ","Bian ","Xu ","Hun ","Zhao ","Zong ","Shi ","Shi ","Yu ","Fei ","Die ","Mao ","Ni ","Chang ","Wen ","Dong ","Ai ","Bing ","Ang ","Zhou ","Long ","Xian ","Kuang ","Tiao ","Chao ","Shi ","Huang ","Huang ","Xuan ","Kui ","Xu ","Jiao ","Jin ","Zhi ","Jin ","Shang ","Tong ","Hong ","Yan ","Gai ","Xiang ","Shai ","Xiao ","Ye ","Yun ","Hui ","Han ","Han ","Jun ","Wan ","Xian ","Kun ","Zhou ","Xi ","Cheng ","Sheng ","Bu ","Zhe ","Zhe ","Wu ","Han ","Hui ","Hao ","Chen ","Wan ","Tian ","Zhuo ","Zui ","Zhou ","Pu ","Jing ","Xi ","Shan ","Yi ","Xi ","Qing ","Qi ","Jing ","Gui ","Zhen ","Yi ","Zhi ","An ","Wan ","Lin ","Liang ","Chang ","Wang ","Xiao ","Zan ","Hi ","Xuan ","Xuan ","Yi ","Xia ","Yun ","Hui ","Fu ","Min ","Kui ","He ","Ying ","Du ","Wei ","Shu ","Qing ","Mao ","Nan ","Jian ","Nuan ","An ","Yang ","Chun ","Yao ","Suo ","Jin ","Ming ","Jiao ","Kai ","Gao ","Weng ","Chang ","Qi ","Hao ","Yan ","Li ","Ai ","Ji ","Gui ","Men ","Zan ","Xie ","Hao ","Mu ","Mo ","Cong ","Ni ","Zhang ","Hui ","Bao ","Han ","Xuan ","Chuan ","Liao ","Xian ","Dan ","Jing ","Pie ","Lin ","Tun ","Xi ","Yi ","Ji ","Huang ","Tai ","Ye ","Ye ","Li ","Tan ","Tong ","Xiao ","Fei ","Qin ","Zhao ","Hao ","Yi ","Xiang ","Xing ","Sen ","Jiao ","Bao ","Jing ","Yian ","Ai ","Ye ","Ru ","Shu ","Meng ","Xun ","Yao ","Pu ","Li ","Chen ","Kuang ","Die ","[?] ","Yan ","Huo ","Lu ","Xi ","Rong ","Long ","Nang ","Luo ","Luan ","Shai ","Tang ","Yan ","Chu ","Yue ","Yue ","Qu ","Yi ","Geng ","Ye ","Hu ","He ","Shu ","Cao ","Cao ","Noboru ","Man ","Ceng ","Ceng ","Ti "]});var f8=y((R9e,p8)=>{p8.exports=["Zui ","Can ","Xu ","Hui ","Yin ","Qie ","Fen ","Pi ","Yue ","You ","Ruan ","Peng ","Ban ","Fu ","Ling ","Fei ","Qu ","[?] ","Nu ","Tiao ","Shuo ","Zhen ","Lang ","Lang ","Juan ","Ming ","Huang ","Wang ","Tun ","Zhao ","Ji ","Qi ","Ying ","Zong ","Wang ","Tong ","Lang ","[?] ","Meng ","Long ","Mu ","Deng ","Wei ","Mo ","Ben ","Zha ","Zhu ","Zhu ","[?] ","Zhu ","Ren ","Ba ","Po ","Duo ","Duo ","Dao ","Li ","Qiu ","Ji ","Jiu ","Bi ","Xiu ","Ting ","Ci ","Sha ","Eburi ","Za ","Quan ","Qian ","Yu ","Gan ","Wu ","Cha ","Shan ","Xun ","Fan ","Wu ","Zi ","Li ","Xing ","Cai ","Cun ","Ren ","Shao ","Tuo ","Di ","Zhang ","Mang ","Chi ","Yi ","Gu ","Gong ","Du ","Yi ","Qi ","Shu ","Gang ","Tiao ","Moku ","Soma ","Tochi ","Lai ","Sugi ","Mang ","Yang ","Ma ","Miao ","Si ","Yuan ","Hang ","Fei ","Bei ","Jie ","Dong ","Gao ","Yao ","Xian ","Chu ","Qun ","Pa ","Shu ","Hua ","Xin ","Chou ","Zhu ","Chou ","Song ","Ban ","Song ","Ji ","Yue ","Jin ","Gou ","Ji ","Mao ","Pi ","Bi ","Wang ","Ang ","Fang ","Fen ","Yi ","Fu ","Nan ","Xi ","Hu ","Ya ","Dou ","Xun ","Zhen ","Yao ","Lin ","Rui ","E ","Mei ","Zhao ","Guo ","Zhi ","Cong ","Yun ","Waku ","Dou ","Shu ","Zao ","[?] ","Li ","Haze ","Jian ","Cheng ","Matsu ","Qiang ","Feng ","Nan ","Xiao ","Xian ","Ku ","Ping ","Yi ","Xi ","Zhi ","Guai ","Xiao ","Jia ","Jia ","Gou ","Fu ","Mo ","Yi ","Ye ","Ye ","Shi ","Nie ","Bi ","Duo ","Yi ","Ling ","Bing ","Ni ","La ","He ","Pan ","Fan ","Zhong ","Dai ","Ci ","Yang ","Fu ","Bo ","Mou ","Gan ","Qi ","Ran ","Rou ","Mao ","Zhao ","Song ","Zhe ","Xia ","You ","Shen ","Ju ","Tuo ","Zuo ","Nan ","Ning ","Yong ","Di ","Zhi ","Zha ","Cha ","Dan ","Gu ","Pu ","Jiu ","Ao ","Fu ","Jian ","Bo ","Duo ","Ke ","Nai ","Zhu ","Bi ","Liu ","Chai ","Zha ","Si ","Zhu ","Pei ","Shi ","Guai ","Cha ","Yao ","Jue ","Jiu ","Shi "]});var b8=y((_9e,m8)=>{m8.exports=["Zhi ","Liu ","Mei ","Hoy ","Rong ","Zha ","[?] ","Biao ","Zhan ","Jie ","Long ","Dong ","Lu ","Sayng ","Li ","Lan ","Yong ","Shu ","Xun ","Shuan ","Qi ","Zhen ","Qi ","Li ","Yi ","Xiang ","Zhen ","Li ","Su ","Gua ","Kan ","Bing ","Ren ","Xiao ","Bo ","Ren ","Bing ","Zi ","Chou ","Yi ","Jie ","Xu ","Zhu ","Jian ","Zui ","Er ","Er ","You ","Fa ","Gong ","Kao ","Lao ","Zhan ","Li ","Yin ","Yang ","He ","Gen ","Zhi ","Chi ","Ge ","Zai ","Luan ","Fu ","Jie ","Hang ","Gui ","Tao ","Guang ","Wei ","Kuang ","Ru ","An ","An ","Juan ","Yi ","Zhuo ","Ku ","Zhi ","Qiong ","Tong ","Sang ","Sang ","Huan ","Jie ","Jiu ","Xue ","Duo ","Zhui ","Yu ","Zan ","Kasei ","Ying ","Masu ","[?] ","Zhan ","Ya ","Nao ","Zhen ","Dang ","Qi ","Qiao ","Hua ","Kuai ","Jiang ","Zhuang ","Xun ","Suo ","Sha ","Zhen ","Bei ","Ting ","Gua ","Jing ","Bo ","Ben ","Fu ","Rui ","Tong ","Jue ","Xi ","Lang ","Liu ","Feng ","Qi ","Wen ","Jun ","Gan ","Cu ","Liang ","Qiu ","Ting ","You ","Mei ","Bang ","Long ","Peng ","Zhuang ","Di ","Xuan ","Tu ","Zao ","Ao ","Gu ","Bi ","Di ","Han ","Zi ","Zhi ","Ren ","Bei ","Geng ","Jian ","Huan ","Wan ","Nuo ","Jia ","Tiao ","Ji ","Xiao ","Lu ","Huan ","Shao ","Cen ","Fen ","Song ","Meng ","Wu ","Li ","Li ","Dou ","Cen ","Ying ","Suo ","Ju ","Ti ","Jie ","Kun ","Zhuo ","Shu ","Chan ","Fan ","Wei ","Jing ","Li ","Bing ","Fumoto ","Shikimi ","Tao ","Zhi ","Lai ","Lian ","Jian ","Zhuo ","Ling ","Li ","Qi ","Bing ","Zhun ","Cong ","Qian ","Mian ","Qi ","Qi ","Cai ","Gun ","Chan ","Te ","Fei ","Pai ","Bang ","Pou ","Hun ","Zong ","Cheng ","Zao ","Ji ","Li ","Peng ","Yu ","Yu ","Gu ","Hun ","Dong ","Tang ","Gang ","Wang ","Di ","Xi ","Fan ","Cheng ","Zhan ","Qi ","Yuan ","Yan ","Yu ","Quan ","Yi ","Sen ","Ren ","Chui ","Leng ","Qi ","Zhuo ","Fu ","Ke ","Lai ","Zou ","Zou ","Zhuo ","Guan ","Fen ","Fen ","Chen ","Qiong ","Nie "]});var v8=y((L9e,y8)=>{y8.exports=["Wan ","Guo ","Lu ","Hao ","Jie ","Yi ","Chou ","Ju ","Ju ","Cheng ","Zuo ","Liang ","Qiang ","Zhi ","Zhui ","Ya ","Ju ","Bei ","Jiao ","Zhuo ","Zi ","Bin ","Peng ","Ding ","Chu ","Chang ","Kunugi ","Momiji ","Jian ","Gui ","Xi ","Du ","Qian ","Kunugi ","Soko ","Shide ","Luo ","Zhi ","Ken ","Myeng ","Tafu ","[?] ","Peng ","Zhan ","[?] ","Tuo ","Sen ","Duo ","Ye ","Fou ","Wei ","Wei ","Duan ","Jia ","Zong ","Jian ","Yi ","Shen ","Xi ","Yan ","Yan ","Chuan ","Zhan ","Chun ","Yu ","He ","Zha ","Wo ","Pian ","Bi ","Yao ","Huo ","Xu ","Ruo ","Yang ","La ","Yan ","Ben ","Hun ","Kui ","Jie ","Kui ","Si ","Feng ","Xie ","Tuo ","Zhi ","Jian ","Mu ","Mao ","Chu ","Hu ","Hu ","Lian ","Leng ","Ting ","Nan ","Yu ","You ","Mei ","Song ","Xuan ","Xuan ","Ying ","Zhen ","Pian ","Ye ","Ji ","Jie ","Ye ","Chu ","Shun ","Yu ","Cou ","Wei ","Mei ","Di ","Ji ","Jie ","Kai ","Qiu ","Ying ","Rou ","Heng ","Lou ","Le ","Hazou ","Katsura ","Pin ","Muro ","Gai ","Tan ","Lan ","Yun ","Yu ","Chen ","Lu ","Ju ","Sakaki ","[?] ","Pi ","Xie ","Jia ","Yi ","Zhan ","Fu ","Nai ","Mi ","Lang ","Rong ","Gu ","Jian ","Ju ","Ta ","Yao ","Zhen ","Bang ","Sha ","Yuan ","Zi ","Ming ","Su ","Jia ","Yao ","Jie ","Huang ","Gan ","Fei ","Zha ","Qian ","Ma ","Sun ","Yuan ","Xie ","Rong ","Shi ","Zhi ","Cui ","Yun ","Ting ","Liu ","Rong ","Tang ","Que ","Zhai ","Si ","Sheng ","Ta ","Ke ","Xi ","Gu ","Qi ","Kao ","Gao ","Sun ","Pan ","Tao ","Ge ","Xun ","Dian ","Nou ","Ji ","Shuo ","Gou ","Chui ","Qiang ","Cha ","Qian ","Huai ","Mei ","Xu ","Gang ","Gao ","Zhuo ","Tuo ","Hashi ","Yang ","Dian ","Jia ","Jian ","Zui ","Kashi ","Ori ","Bin ","Zhu ","[?] ","Xi ","Qi ","Lian ","Hui ","Yong ","Qian ","Guo ","Gai ","Gai ","Tuan ","Hua ","Cu ","Sen ","Cui ","Beng ","You ","Hu ","Jiang ","Hu ","Huan ","Kui ","Yi ","Nie ","Gao ","Kang ","Gui ","Gui ","Cao ","Man ","Jin "]});var x8=y((I9e,w8)=>{w8.exports=["Di ","Zhuang ","Le ","Lang ","Chen ","Cong ","Li ","Xiu ","Qing ","Shuang ","Fan ","Tong ","Guan ","Ji ","Suo ","Lei ","Lu ","Liang ","Mi ","Lou ","Chao ","Su ","Ke ","Shu ","Tang ","Biao ","Lu ","Jiu ","Shu ","Zha ","Shu ","Zhang ","Men ","Mo ","Niao ","Yang ","Tiao ","Peng ","Zhu ","Sha ","Xi ","Quan ","Heng ","Jian ","Cong ","[?] ","Hokuso ","Qiang ","Tara ","Ying ","Er ","Xin ","Zhi ","Qiao ","Zui ","Cong ","Pu ","Shu ","Hua ","Kui ","Zhen ","Zun ","Yue ","Zhan ","Xi ","Xun ","Dian ","Fa ","Gan ","Mo ","Wu ","Qiao ","Nao ","Lin ","Liu ","Qiao ","Xian ","Run ","Fan ","Zhan ","Tuo ","Lao ","Yun ","Shun ","Tui ","Cheng ","Tang ","Meng ","Ju ","Cheng ","Su ","Jue ","Jue ","Tan ","Hui ","Ji ","Nuo ","Xiang ","Tuo ","Ning ","Rui ","Zhu ","Chuang ","Zeng ","Fen ","Qiong ","Ran ","Heng ","Cen ","Gu ","Liu ","Lao ","Gao ","Chu ","Zusa ","Nude ","Ca ","San ","Ji ","Dou ","Shou ","Lu ","[?] ","[?] ","Yuan ","Ta ","Shu ","Jiang ","Tan ","Lin ","Nong ","Yin ","Xi ","Sui ","Shan ","Zui ","Xuan ","Cheng ","Gan ","Ju ","Zui ","Yi ","Qin ","Pu ","Yan ","Lei ","Feng ","Hui ","Dang ","Ji ","Sui ","Bo ","Bi ","Ding ","Chu ","Zhua ","Kuai ","Ji ","Jie ","Jia ","Qing ","Zhe ","Jian ","Qiang ","Dao ","Yi ","Biao ","Song ","She ","Lin ","Kunugi ","Cha ","Meng ","Yin ","Tao ","Tai ","Mian ","Qi ","Toan ","Bin ","Huo ","Ji ","Qian ","Mi ","Ning ","Yi ","Gao ","Jian ","Yin ","Er ","Qing ","Yan ","Qi ","Mi ","Zhao ","Gui ","Chun ","Ji ","Kui ","Po ","Deng ","Chu ","[?] ","Mian ","You ","Zhi ","Guang ","Qian ","Lei ","Lei ","Sa ","Lu ","Li ","Cuan ","Lu ","Mie ","Hui ","Ou ","Lu ","Jie ","Gao ","Du ","Yuan ","Li ","Fei ","Zhuo ","Sou ","Lian ","Tamo ","Chu ","[?] ","Zhu ","Lu ","Yan ","Li ","Zhu ","Chen ","Jie ","E ","Su ","Huai ","Nie ","Yu ","Long ","Lai ","[?] ","Xian ","Kwi ","Ju ","Xiao ","Ling ","Ying ","Jian ","Yin ","You ","Ying "]});var S8=y((F9e,C8)=>{C8.exports=["Xiang ","Nong ","Bo ","Chan ","Lan ","Ju ","Shuang ","She ","Wei ","Cong ","Quan ","Qu ","Cang ","[?] ","Yu ","Luo ","Li ","Zan ","Luan ","Dang ","Jue ","Em ","Lan ","Lan ","Zhu ","Lei ","Li ","Ba ","Nang ","Yu ","Ling ","Tsuki ","Qian ","Ci ","Huan ","Xin ","Yu ","Yu ","Qian ","Ou ","Xu ","Chao ","Chu ","Chi ","Kai ","Yi ","Jue ","Xi ","Xu ","Xia ","Yu ","Kuai ","Lang ","Kuan ","Shuo ","Xi ","Ai ","Yi ","Qi ","Hu ","Chi ","Qin ","Kuan ","Kan ","Kuan ","Kan ","Chuan ","Sha ","Gua ","Yin ","Xin ","Xie ","Yu ","Qian ","Xiao ","Yi ","Ge ","Wu ","Tan ","Jin ","Ou ","Hu ","Ti ","Huan ","Xu ","Pen ","Xi ","Xiao ","Xu ","Xi ","Sen ","Lian ","Chu ","Yi ","Kan ","Yu ","Chuo ","Huan ","Zhi ","Zheng ","Ci ","Bu ","Wu ","Qi ","Bu ","Bu ","Wai ","Ju ","Qian ","Chi ","Se ","Chi ","Se ","Zhong ","Sui ","Sui ","Li ","Cuo ","Yu ","Li ","Gui ","Dai ","Dai ","Si ","Jian ","Zhe ","Mo ","Mo ","Yao ","Mo ","Cu ","Yang ","Tian ","Sheng ","Dai ","Shang ","Xu ","Xun ","Shu ","Can ","Jue ","Piao ","Qia ","Qiu ","Su ","Qing ","Yun ","Lian ","Yi ","Fou ","Zhi ","Ye ","Can ","Hun ","Dan ","Ji ","Ye ","Zhen ","Yun ","Wen ","Chou ","Bin ","Ti ","Jin ","Shang ","Yin ","Diao ","Cu ","Hui ","Cuan ","Yi ","Dan ","Du ","Jiang ","Lian ","Bin ","Du ","Tsukusu ","Jian ","Shu ","Ou ","Duan ","Zhu ","Yin ","Qing ","Yi ","Sha ","Que ","Ke ","Yao ","Jun ","Dian ","Hui ","Hui ","Gu ","Que ","Ji ","Yi ","Ou ","Hui ","Duan ","Yi ","Xiao ","Wu ","Guan ","Mu ","Mei ","Mei ","Ai ","Zuo ","Du ","Yu ","Bi ","Bi ","Bi ","Pi ","Pi ","Bi ","Chan ","Mao ","[?] ","[?] ","Pu ","Mushiru ","Jia ","Zhan ","Sai ","Mu ","Tuo ","Xun ","Er ","Rong ","Xian ","Ju ","Mu ","Hao ","Qiu ","Dou ","Mushiru ","Tan ","Pei ","Ju ","Duo ","Cui ","Bi ","San ","[?] ","Mao ","Sui ","Yu ","Yu ","Tuo ","He ","Jian ","Ta ","San "]});var T8=y((j9e,D8)=>{D8.exports=["Lu ","Mu ","Li ","Tong ","Rong ","Chang ","Pu ","Luo ","Zhan ","Sao ","Zhan ","Meng ","Luo ","Qu ","Die ","Shi ","Di ","Min ","Jue ","Mang ","Qi ","Pie ","Nai ","Qi ","Dao ","Xian ","Chuan ","Fen ","Ri ","Nei ","[?] ","Fu ","Shen ","Dong ","Qing ","Qi ","Yin ","Xi ","Hai ","Yang ","An ","Ya ","Ke ","Qing ","Ya ","Dong ","Dan ","Lu ","Qing ","Yang ","Yun ","Yun ","Shui ","San ","Zheng ","Bing ","Yong ","Dang ","Shitamizu ","Le ","Ni ","Tun ","Fan ","Gui ","Ting ","Zhi ","Qiu ","Bin ","Ze ","Mian ","Cuan ","Hui ","Diao ","Yi ","Cha ","Zhuo ","Chuan ","Wan ","Fan ","Dai ","Xi ","Tuo ","Mang ","Qiu ","Qi ","Shan ","Pai ","Han ","Qian ","Wu ","Wu ","Xun ","Si ","Ru ","Gong ","Jiang ","Chi ","Wu ","Tsuchi ","[?] ","Tang ","Zhi ","Chi ","Qian ","Mi ","Yu ","Wang ","Qing ","Jing ","Rui ","Jun ","Hong ","Tai ","Quan ","Ji ","Bian ","Bian ","Gan ","Wen ","Zhong ","Fang ","Xiong ","Jue ","Hang ","Niou ","Qi ","Fen ","Xu ","Xu ","Qin ","Yi ","Wo ","Yun ","Yuan ","Hang ","Yan ","Chen ","Chen ","Dan ","You ","Dun ","Hu ","Huo ","Qie ","Mu ","Rou ","Mei ","Ta ","Mian ","Wu ","Chong ","Tian ","Bi ","Sha ","Zhi ","Pei ","Pan ","Zhui ","Za ","Gou ","Liu ","Mei ","Ze ","Feng ","Ou ","Li ","Lun ","Cang ","Feng ","Wei ","Hu ","Mo ","Mei ","Shu ","Ju ","Zan ","Tuo ","Tuo ","Tuo ","He ","Li ","Mi ","Yi ","Fa ","Fei ","You ","Tian ","Zhi ","Zhao ","Gu ","Zhan ","Yan ","Si ","Kuang ","Jiong ","Ju ","Xie ","Qiu ","Yi ","Jia ","Zhong ","Quan ","Bo ","Hui ","Mi ","Ben ","Zhuo ","Chu ","Le ","You ","Gu ","Hong ","Gan ","Fa ","Mao ","Si ","Hu ","Ping ","Ci ","Fan ","Chi ","Su ","Ning ","Cheng ","Ling ","Pao ","Bo ","Qi ","Si ","Ni ","Ju ","Yue ","Zhu ","Sheng ","Lei ","Xuan ","Xue ","Fu ","Pan ","Min ","Tai ","Yang ","Ji ","Yong ","Guan ","Beng ","Xue ","Long ","Lu ","[?] ","Bo ","Xie ","Po ","Ze ","Jing ","Yin "]});var P8=y((M9e,k8)=>{k8.exports=["Zhou ","Ji ","Yi ","Hui ","Hui ","Zui ","Cheng ","Yin ","Wei ","Hou ","Jian ","Yang ","Lie ","Si ","Ji ","Er ","Xing ","Fu ","Sa ","Suo ","Zhi ","Yin ","Wu ","Xi ","Kao ","Zhu ","Jiang ","Luo ","[?] ","An ","Dong ","Yi ","Mou ","Lei ","Yi ","Mi ","Quan ","Jin ","Mo ","Wei ","Xiao ","Xie ","Hong ","Xu ","Shuo ","Kuang ","Tao ","Qie ","Ju ","Er ","Zhou ","Ru ","Ping ","Xun ","Xiong ","Zhi ","Guang ","Huan ","Ming ","Huo ","Wa ","Qia ","Pai ","Wu ","Qu ","Liu ","Yi ","Jia ","Jing ","Qian ","Jiang ","Jiao ","Cheng ","Shi ","Zhuo ","Ce ","Pal ","Kuai ","Ji ","Liu ","Chan ","Hun ","Hu ","Nong ","Xun ","Jin ","Lie ","Qiu ","Wei ","Zhe ","Jun ","Han ","Bang ","Mang ","Zhuo ","You ","Xi ","Bo ","Dou ","Wan ","Hong ","Yi ","Pu ","Ying ","Lan ","Hao ","Lang ","Han ","Li ","Geng ","Fu ","Wu ","Lian ","Chun ","Feng ","Yi ","Yu ","Tong ","Lao ","Hai ","Jin ","Jia ","Chong ","Weng ","Mei ","Sui ","Cheng ","Pei ","Xian ","Shen ","Tu ","Kun ","Pin ","Nie ","Han ","Jing ","Xiao ","She ","Nian ","Tu ","Yong ","Xiao ","Xian ","Ting ","E ","Su ","Tun ","Juan ","Cen ","Ti ","Li ","Shui ","Si ","Lei ","Shui ","Tao ","Du ","Lao ","Lai ","Lian ","Wei ","Wo ","Yun ","Huan ","Di ","[?] ","Run ","Jian ","Zhang ","Se ","Fu ","Guan ","Xing ","Shou ","Shuan ","Ya ","Chuo ","Zhang ","Ye ","Kong ","Wo ","Han ","Tuo ","Dong ","He ","Wo ","Ju ","Gan ","Liang ","Hun ","Ta ","Zhuo ","Dian ","Qie ","De ","Juan ","Zi ","Xi ","Yao ","Qi ","Gu ","Guo ","Han ","Lin ","Tang ","Zhou ","Peng ","Hao ","Chang ","Shu ","Qi ","Fang ","Chi ","Lu ","Nao ","Ju ","Tao ","Cong ","Lei ","Zhi ","Peng ","Fei ","Song ","Tian ","Pi ","Dan ","Yu ","Ni ","Yu ","Lu ","Gan ","Mi ","Jing ","Ling ","Lun ","Yin ","Cui ","Qu ","Huai ","Yu ","Nian ","Shen ","Piao ","Chun ","Wa ","Yuan ","Lai ","Hun ","Qing ","Yan ","Qian ","Tian ","Miao ","Zhi ","Yin ","Mi "]});var R8=y((O9e,E8)=>{E8.exports=["Ben ","Yuan ","Wen ","Re ","Fei ","Qing ","Yuan ","Ke ","Ji ","She ","Yuan ","Shibui ","Lu ","Zi ","Du ","[?] ","Jian ","Min ","Pi ","Tani ","Yu ","Yuan ","Shen ","Shen ","Rou ","Huan ","Zhu ","Jian ","Nuan ","Yu ","Qiu ","Ting ","Qu ","Du ","Feng ","Zha ","Bo ","Wo ","Wo ","Di ","Wei ","Wen ","Ru ","Xie ","Ce ","Wei ","Ge ","Gang ","Yan ","Hong ","Xuan ","Mi ","Ke ","Mao ","Ying ","Yan ","You ","Hong ","Miao ","Xing ","Mei ","Zai ","Hun ","Nai ","Kui ","Shi ","E ","Pai ","Mei ","Lian ","Qi ","Qi ","Mei ","Tian ","Cou ","Wei ","Can ","Tuan ","Mian ","Hui ","Mo ","Xu ","Ji ","Pen ","Jian ","Jian ","Hu ","Feng ","Xiang ","Yi ","Yin ","Zhan ","Shi ","Jie ","Cheng ","Huang ","Tan ","Yu ","Bi ","Min ","Shi ","Tu ","Sheng ","Yong ","Qu ","Zhong ","Suei ","Jiu ","Jiao ","Qiou ","Yin ","Tang ","Long ","Huo ","Yuan ","Nan ","Ban ","You ","Quan ","Chui ","Liang ","Chan ","Yan ","Chun ","Nie ","Zi ","Wan ","Shi ","Man ","Ying ","Ratsu ","Kui ","[?] ","Jian ","Xu ","Lu ","Gui ","Gai ","[?] ","[?] ","Po ","Jin ","Gui ","Tang ","Yuan ","Suo ","Yuan ","Lian ","Yao ","Meng ","Zhun ","Sheng ","Ke ","Tai ","Da ","Wa ","Liu ","Gou ","Sao ","Ming ","Zha ","Shi ","Yi ","Lun ","Ma ","Pu ","Wei ","Li ","Cai ","Wu ","Xi ","Wen ","Qiang ","Ze ","Shi ","Su ","Yi ","Zhen ","Sou ","Yun ","Xiu ","Yin ","Rong ","Hun ","Su ","Su ","Ni ","Ta ","Shi ","Ru ","Wei ","Pan ","Chu ","Chu ","Pang ","Weng ","Cang ","Mie ","He ","Dian ","Hao ","Huang ","Xi ","Zi ","Di ","Zhi ","Ying ","Fu ","Jie ","Hua ","Ge ","Zi ","Tao ","Teng ","Sui ","Bi ","Jiao ","Hui ","Gun ","Yin ","Gao ","Long ","Zhi ","Yan ","She ","Man ","Ying ","Chun ","Lu ","Lan ","Luan ","[?] ","Bin ","Tan ","Yu ","Sou ","Hu ","Bi ","Biao ","Zhi ","Jiang ","Kou ","Shen ","Shang ","Di ","Mi ","Ao ","Lu ","Hu ","Hu ","You ","Chan ","Fan ","Yong ","Gun ","Man "]});var L8=y((A9e,_8)=>{_8.exports=["Qing ","Yu ","Piao ","Ji ","Ya ","Jiao ","Qi ","Xi ","Ji ","Lu ","Lu ","Long ","Jin ","Guo ","Cong ","Lou ","Zhi ","Gai ","Qiang ","Li ","Yan ","Cao ","Jiao ","Cong ","Qun ","Tuan ","Ou ","Teng ","Ye ","Xi ","Mi ","Tang ","Mo ","Shang ","Han ","Lian ","Lan ","Wa ","Li ","Qian ","Feng ","Xuan ","Yi ","Man ","Zi ","Mang ","Kang ","Lei ","Peng ","Shu ","Zhang ","Zhang ","Chong ","Xu ","Huan ","Kuo ","Jian ","Yan ","Chuang ","Liao ","Cui ","Ti ","Yang ","Jiang ","Cong ","Ying ","Hong ","Xun ","Shu ","Guan ","Ying ","Xiao ","[?] ","[?] ","Xu ","Lian ","Zhi ","Wei ","Pi ","Jue ","Jiao ","Po ","Dang ","Hui ","Jie ","Wu ","Pa ","Ji ","Pan ","Gui ","Xiao ","Qian ","Qian ","Xi ","Lu ","Xi ","Xuan ","Dun ","Huang ","Min ","Run ","Su ","Liao ","Zhen ","Zhong ","Yi ","Di ","Wan ","Dan ","Tan ","Chao ","Xun ","Kui ","Yie ","Shao ","Tu ","Zhu ","San ","Hei ","Bi ","Shan ","Chan ","Chan ","Shu ","Tong ","Pu ","Lin ","Wei ","Se ","Se ","Cheng ","Jiong ","Cheng ","Hua ","Jiao ","Lao ","Che ","Gan ","Cun ","Heng ","Si ","Shu ","Peng ","Han ","Yun ","Liu ","Hong ","Fu ","Hao ","He ","Xian ","Jian ","Shan ","Xi ","Oki ","[?] ","Lan ","[?] ","Yu ","Lin ","Min ","Zao ","Dang ","Wan ","Ze ","Xie ","Yu ","Li ","Shi ","Xue ","Ling ","Man ","Zi ","Yong ","Kuai ","Can ","Lian ","Dian ","Ye ","Ao ","Huan ","Zhen ","Chan ","Man ","Dan ","Dan ","Yi ","Sui ","Pi ","Ju ","Ta ","Qin ","Ji ","Zhuo ","Lian ","Nong ","Guo ","Jin ","Fen ","Se ","Ji ","Sui ","Hui ","Chu ","Ta ","Song ","Ding ","[?] ","Zhu ","Lai ","Bin ","Lian ","Mi ","Shi ","Shu ","Mi ","Ning ","Ying ","Ying ","Meng ","Jin ","Qi ","Pi ","Ji ","Hao ","Ru ","Zui ","Wo ","Tao ","Yin ","Yin ","Dui ","Ci ","Huo ","Jing ","Lan ","Jun ","Ai ","Pu ","Zhuo ","Wei ","Bin ","Gu ","Qian ","Xing ","Hama ","Kuo ","Fei ","[?] ","Boku ","Jian ","Wei ","Luo ","Zan ","Lu ","Li "]});var F8=y((N9e,I8)=>{I8.exports=["You ","Yang ","Lu ","Si ","Jie ","Ying ","Du ","Wang ","Hui ","Xie ","Pan ","Shen ","Biao ","Chan ","Mo ","Liu ","Jian ","Pu ","Se ","Cheng ","Gu ","Bin ","Huo ","Xian ","Lu ","Qin ","Han ","Ying ","Yong ","Li ","Jing ","Xiao ","Ying ","Sui ","Wei ","Xie ","Huai ","Hao ","Zhu ","Long ","Lai ","Dui ","Fan ","Hu ","Lai ","[?] ","[?] ","Ying ","Mi ","Ji ","Lian ","Jian ","Ying ","Fen ","Lin ","Yi ","Jian ","Yue ","Chan ","Dai ","Rang ","Jian ","Lan ","Fan ","Shuang ","Yuan ","Zhuo ","Feng ","She ","Lei ","Lan ","Cong ","Qu ","Yong ","Qian ","Fa ","Guan ","Que ","Yan ","Hao ","Hyeng ","Sa ","Zan ","Luan ","Yan ","Li ","Mi ","Shan ","Tan ","Dang ","Jiao ","Chan ","[?] ","Hao ","Ba ","Zhu ","Lan ","Lan ","Nang ","Wan ","Luan ","Xun ","Xian ","Yan ","Gan ","Yan ","Yu ","Huo ","Si ","Mie ","Guang ","Deng ","Hui ","Xiao ","Xiao ","Hu ","Hong ","Ling ","Zao ","Zhuan ","Jiu ","Zha ","Xie ","Chi ","Zhuo ","Zai ","Zai ","Can ","Yang ","Qi ","Zhong ","Fen ","Niu ","Jiong ","Wen ","Po ","Yi ","Lu ","Chui ","Pi ","Kai ","Pan ","Yan ","Kai ","Pang ","Mu ","Chao ","Liao ","Gui ","Kang ","Tun ","Guang ","Xin ","Zhi ","Guang ","Guang ","Wei ","Qiang ","[?] ","Da ","Xia ","Zheng ","Zhu ","Ke ","Zhao ","Fu ","Ba ","Duo ","Duo ","Ling ","Zhuo ","Xuan ","Ju ","Tan ","Pao ","Jiong ","Pao ","Tai ","Tai ","Bing ","Yang ","Tong ","Han ","Zhu ","Zha ","Dian ","Wei ","Shi ","Lian ","Chi ","Huang ","[?] ","Hu ","Shuo ","Lan ","Jing ","Jiao ","Xu ","Xing ","Quan ","Lie ","Huan ","Yang ","Xiao ","Xiu ","Xian ","Yin ","Wu ","Zhou ","Yao ","Shi ","Wei ","Tong ","Xue ","Zai ","Kai ","Hong ","Luo ","Xia ","Zhu ","Xuan ","Zheng ","Po ","Yan ","Hui ","Guang ","Zhe ","Hui ","Kao ","[?] ","Fan ","Shao ","Ye ","Hui ","[?] ","Tang ","Jin ","Re ","[?] ","Xi ","Fu ","Jiong ","Che ","Pu ","Jing ","Zhuo ","Ting ","Wan ","Hai ","Peng ","Lang ","Shan ","Hu ","Feng ","Chi ","Rong "]});var M8=y((H9e,j8)=>{j8.exports=["Hu ","Xi ","Shu ","He ","Xun ","Ku ","Jue ","Xiao ","Xi ","Yan ","Han ","Zhuang ","Jun ","Di ","Xie ","Ji ","Wu ","[?] ","[?] ","Han ","Yan ","Huan ","Men ","Ju ","Chou ","Bei ","Fen ","Lin ","Kun ","Hun ","Tun ","Xi ","Cui ","Wu ","Hong ","Ju ","Fu ","Wo ","Jiao ","Cong ","Feng ","Ping ","Qiong ","Ruo ","Xi ","Qiong ","Xin ","Zhuo ","Yan ","Yan ","Yi ","Jue ","Yu ","Gang ","Ran ","Pi ","Gu ","[?] ","Sheng ","Chang ","Shao ","[?] ","[?] ","[?] ","[?] ","Chen ","He ","Kui ","Zhong ","Duan ","Xia ","Hui ","Feng ","Lian ","Xuan ","Xing ","Huang ","Jiao ","Jian ","Bi ","Ying ","Zhu ","Wei ","Tuan ","Tian ","Xi ","Nuan ","Nuan ","Chan ","Yan ","Jiong ","Jiong ","Yu ","Mei ","Sha ","Wei ","Ye ","Xin ","Qiong ","Rou ","Mei ","Huan ","Xu ","Zhao ","Wei ","Fan ","Qiu ","Sui ","Yang ","Lie ","Zhu ","Jie ","Gao ","Gua ","Bao ","Hu ","Yun ","Xia ","[?] ","[?] ","Bian ","Gou ","Tui ","Tang ","Chao ","Shan ","N ","Bo ","Huang ","Xie ","Xi ","Wu ","Xi ","Yun ","He ","He ","Xi ","Yun ","Xiong ","Nai ","Shan ","Qiong ","Yao ","Xun ","Mi ","Lian ","Ying ","Wen ","Rong ","Oozutsu ","[?] ","Qiang ","Liu ","Xi ","Bi ","Biao ","Zong ","Lu ","Jian ","Shou ","Yi ","Lou ","Feng ","Sui ","Yi ","Tong ","Jue ","Zong ","Yun ","Hu ","Yi ","Zhi ","Ao ","Wei ","Liao ","Han ","Ou ","Re ","Jiong ","Man ","[?] ","Shang ","Cuan ","Zeng ","Jian ","Xi ","Xi ","Xi ","Yi ","Xiao ","Chi ","Huang ","Chan ","Ye ","Qian ","Ran ","Yan ","Xian ","Qiao ","Zun ","Deng ","Dun ","Shen ","Jiao ","Fen ","Si ","Liao ","Yu ","Lin ","Tong ","Shao ","Fen ","Fan ","Yan ","Xun ","Lan ","Mei ","Tang ","Yi ","Jing ","Men ","[?] ","[?] ","Ying ","Yu ","Yi ","Xue ","Lan ","Tai ","Zao ","Can ","Sui ","Xi ","Que ","Cong ","Lian ","Hui ","Zhu ","Xie ","Ling ","Wei ","Yi ","Xie ","Zhao ","Hui ","Tatsu ","Nung ","Lan ","Ru ","Xian ","Kao ","Xun ","Jin ","Chou ","Chou ","Yao "]});var A8=y((q9e,O8)=>{O8.exports=["He ","Lan ","Biao ","Rong ","Li ","Mo ","Bao ","Ruo ","Lu ","La ","Ao ","Xun ","Kuang ","Shuo ","[?] ","Li ","Lu ","Jue ","Liao ","Yan ","Xi ","Xie ","Long ","Ye ","[?] ","Rang ","Yue ","Lan ","Cong ","Jue ","Tong ","Guan ","[?] ","Che ","Mi ","Tang ","Lan ","Zhu ","[?] ","Ling ","Cuan ","Yu ","Zhua ","Tsumekanmuri ","Pa ","Zheng ","Pao ","Cheng ","Yuan ","Ai ","Wei ","[?] ","Jue ","Jue ","Fu ","Ye ","Ba ","Die ","Ye ","Yao ","Zu ","Shuang ","Er ","Qiang ","Chuang ","Ge ","Zang ","Die ","Qiang ","Yong ","Qiang ","Pian ","Ban ","Pan ","Shao ","Jian ","Pai ","Du ","Chuang ","Tou ","Zha ","Bian ","Die ","Bang ","Bo ","Chuang ","You ","[?] ","Du ","Ya ","Cheng ","Niu ","Ushihen ","Pin ","Jiu ","Mou ","Tuo ","Mu ","Lao ","Ren ","Mang ","Fang ","Mao ","Mu ","Gang ","Wu ","Yan ","Ge ","Bei ","Si ","Jian ","Gu ","You ","Ge ","Sheng ","Mu ","Di ","Qian ","Quan ","Quan ","Zi ","Te ","Xi ","Mang ","Keng ","Qian ","Wu ","Gu ","Xi ","Li ","Li ","Pou ","Ji ","Gang ","Zhi ","Ben ","Quan ","Run ","Du ","Ju ","Jia ","Jian ","Feng ","Pian ","Ke ","Ju ","Kao ","Chu ","Xi ","Bei ","Luo ","Jie ","Ma ","San ","Wei ","Li ","Dun ","Tong ","[?] ","Jiang ","Ikenie ","Li ","Du ","Lie ","Pi ","Piao ","Bao ","Xi ","Chou ","Wei ","Kui ","Chou ","Quan ","Fan ","Ba ","Fan ","Qiu ","Ji ","Cai ","Chuo ","An ","Jie ","Zhuang ","Guang ","Ma ","You ","Kang ","Bo ","Hou ","Ya ","Yin ","Huan ","Zhuang ","Yun ","Kuang ","Niu ","Di ","Qing ","Zhong ","Mu ","Bei ","Pi ","Ju ","Ni ","Sheng ","Pao ","Xia ","Tuo ","Hu ","Ling ","Fei ","Pi ","Ni ","Ao ","You ","Gou ","Yue ","Ju ","Dan ","Po ","Gu ","Xian ","Ning ","Huan ","Hen ","Jiao ","He ","Zhao ","Ji ","Xun ","Shan ","Ta ","Rong ","Shou ","Tong ","Lao ","Du ","Xia ","Shi ","Hua ","Zheng ","Yu ","Sun ","Yu ","Bi ","Mang ","Xi ","Juan ","Li ","Xia ","Yin ","Suan ","Lang ","Bei ","Zhi ","Yan "]});var H8=y((B9e,N8)=>{N8.exports=["Sha ","Li ","Han ","Xian ","Jing ","Pai ","Fei ","Yao ","Ba ","Qi ","Ni ","Biao ","Yin ","Lai ","Xi ","Jian ","Qiang ","Kun ","Yan ","Guo ","Zong ","Mi ","Chang ","Yi ","Zhi ","Zheng ","Ya ","Meng ","Cai ","Cu ","She ","Kari ","Cen ","Luo ","Hu ","Zong ","Ji ","Wei ","Feng ","Wo ","Yuan ","Xing ","Zhu ","Mao ","Wei ","Yuan ","Xian ","Tuan ","Ya ","Nao ","Xie ","Jia ","Hou ","Bian ","You ","You ","Mei ","Zha ","Yao ","Sun ","Bo ","Ming ","Hua ","Yuan ","Sou ","Ma ","Yuan ","Dai ","Yu ","Shi ","Hao ","[?] ","Yi ","Zhen ","Chuang ","Hao ","Man ","Jing ","Jiang ","Mu ","Zhang ","Chan ","Ao ","Ao ","Hao ","Cui ","Fen ","Jue ","Bi ","Bi ","Huang ","Pu ","Lin ","Yu ","Tong ","Yao ","Liao ","Shuo ","Xiao ","Swu ","Ton ","Xi ","Ge ","Juan ","Du ","Hui ","Kuai ","Xian ","Xie ","Ta ","Xian ","Xun ","Ning ","Pin ","Huo ","Nou ","Meng ","Lie ","Nao ","Guang ","Shou ","Lu ","Ta ","Xian ","Mi ","Rang ","Huan ","Nao ","Luo ","Xian ","Qi ","Jue ","Xuan ","Miao ","Zi ","Lu ","Lu ","Yu ","Su ","Wang ","Qiu ","Ga ","Ding ","Le ","Ba ","Ji ","Hong ","Di ","Quan ","Gan ","Jiu ","Yu ","Ji ","Yu ","Yang ","Ma ","Gong ","Wu ","Fu ","Wen ","Jie ","Ya ","Fen ","Bian ","Beng ","Yue ","Jue ","Yun ","Jue ","Wan ","Jian ","Mei ","Dan ","Pi ","Wei ","Huan ","Xian ","Qiang ","Ling ","Dai ","Yi ","An ","Ping ","Dian ","Fu ","Xuan ","Xi ","Bo ","Ci ","Gou ","Jia ","Shao ","Po ","Ci ","Ke ","Ran ","Sheng ","Shen ","Yi ","Zu ","Jia ","Min ","Shan ","Liu ","Bi ","Zhen ","Zhen ","Jue ","Fa ","Long ","Jin ","Jiao ","Jian ","Li ","Guang ","Xian ","Zhou ","Gong ","Yan ","Xiu ","Yang ","Xu ","Luo ","Su ","Zhu ","Qin ","Ken ","Xun ","Bao ","Er ","Xiang ","Yao ","Xia ","Heng ","Gui ","Chong ","Xu ","Ban ","Pei ","[?] ","Dang ","Ei ","Hun ","Wen ","E ","Cheng ","Ti ","Wu ","Wu ","Cheng ","Jun ","Mei ","Bei ","Ting ","Xian ","Chuo "]});var B8=y((W9e,q8)=>{q8.exports=["Han ","Xuan ","Yan ","Qiu ","Quan ","Lang ","Li ","Xiu ","Fu ","Liu ","Ye ","Xi ","Ling ","Li ","Jin ","Lian ","Suo ","Chiisai ","[?] ","Wan ","Dian ","Pin ","Zhan ","Cui ","Min ","Yu ","Ju ","Chen ","Lai ","Wen ","Sheng ","Wei ","Dian ","Chu ","Zhuo ","Pei ","Cheng ","Hu ","Qi ","E ","Kun ","Chang ","Qi ","Beng ","Wan ","Lu ","Cong ","Guan ","Yan ","Diao ","Bei ","Lin ","Qin ","Pi ","Pa ","Que ","Zhuo ","Qin ","Fa ","[?] ","Qiong ","Du ","Jie ","Hun ","Yu ","Mao ","Mei ","Chun ","Xuan ","Ti ","Xing ","Dai ","Rou ","Min ","Zhen ","Wei ","Ruan ","Huan ","Jie ","Chuan ","Jian ","Zhuan ","Yang ","Lian ","Quan ","Xia ","Duan ","Yuan ","Ye ","Nao ","Hu ","Ying ","Yu ","Huang ","Rui ","Se ","Liu ","Shi ","Rong ","Suo ","Yao ","Wen ","Wu ","Jin ","Jin ","Ying ","Ma ","Tao ","Liu ","Tang ","Li ","Lang ","Gui ","Zhen ","Qiang ","Cuo ","Jue ","Zhao ","Yao ","Ai ","Bin ","Tu ","Chang ","Kun ","Zhuan ","Cong ","Jin ","Yi ","Cui ","Cong ","Qi ","Li ","Ying ","Suo ","Qiu ","Xuan ","Ao ","Lian ","Man ","Zhang ","Yin ","[?] ","Ying ","Zhi ","Lu ","Wu ","Deng ","Xiou ","Zeng ","Xun ","Qu ","Dang ","Lin ","Liao ","Qiong ","Su ","Huang ","Gui ","Pu ","Jing ","Fan ","Jin ","Liu ","Ji ","[?] ","Jing ","Ai ","Bi ","Can ","Qu ","Zao ","Dang ","Jiao ","Gun ","Tan ","Hui ","Huan ","Se ","Sui ","Tian ","[?] ","Yu ","Jin ","Lu ","Bin ","Shou ","Wen ","Zui ","Lan ","Xi ","Ji ","Xuan ","Ruan ","Huo ","Gai ","Lei ","Du ","Li ","Zhi ","Rou ","Li ","Zan ","Qiong ","Zhe ","Gui ","Sui ","La ","Long ","Lu ","Li ","Zan ","Lan ","Ying ","Mi ","Xiang ","Xi ","Guan ","Dao ","Zan ","Huan ","Gua ","Bo ","Die ","Bao ","Hu ","Zhi ","Piao ","Ban ","Rang ","Li ","Wa ","Dekaguramu ","Jiang ","Qian ","Fan ","Pen ","Fang ","Dan ","Weng ","Ou ","Deshiguramu ","Miriguramu ","Thon ","Hu ","Ling ","Yi ","Ping ","Ci ","Hekutogura ","Juan ","Chang ","Chi ","Sarake ","Dang ","Meng ","Pou "]});var Y8=y((Y9e,W8)=>{W8.exports=["Zhui ","Ping ","Bian ","Zhou ","Zhen ","Senchigura ","Ci ","Ying ","Qi ","Xian ","Lou ","Di ","Ou ","Meng ","Zhuan ","Peng ","Lin ","Zeng ","Wu ","Pi ","Dan ","Weng ","Ying ","Yan ","Gan ","Dai ","Shen ","Tian ","Tian ","Han ","Chang ","Sheng ","Qing ","Sheng ","Chan ","Chan ","Rui ","Sheng ","Su ","Sen ","Yong ","Shuai ","Lu ","Fu ","Yong ","Beng ","Feng ","Ning ","Tian ","You ","Jia ","Shen ","Zha ","Dian ","Fu ","Nan ","Dian ","Ping ","Ting ","Hua ","Ting ","Quan ","Zi ","Meng ","Bi ","Qi ","Liu ","Xun ","Liu ","Chang ","Mu ","Yun ","Fan ","Fu ","Geng ","Tian ","Jie ","Jie ","Quan ","Wei ","Fu ","Tian ","Mu ","Tap ","Pan ","Jiang ","Wa ","Da ","Nan ","Liu ","Ben ","Zhen ","Chu ","Mu ","Mu ","Ce ","Cen ","Gai ","Bi ","Da ","Zhi ","Lue ","Qi ","Lue ","Pan ","Kesa ","Fan ","Hua ","Yu ","Yu ","Mu ","Jun ","Yi ","Liu ","Yu ","Die ","Chou ","Hua ","Dang ","Chuo ","Ji ","Wan ","Jiang ","Sheng ","Chang ","Tuan ","Lei ","Ji ","Cha ","Liu ","Tatamu ","Tuan ","Lin ","Jiang ","Jiang ","Chou ","Bo ","Die ","Die ","Pi ","Nie ","Dan ","Shu ","Shu ","Zhi ","Yi ","Chuang ","Nai ","Ding ","Bi ","Jie ","Liao ","Gong ","Ge ","Jiu ","Zhou ","Xia ","Shan ","Xu ","Nue ","Li ","Yang ","Chen ","You ","Ba ","Jie ","Jue ","Zhi ","Xia ","Cui ","Bi ","Yi ","Li ","Zong ","Chuang ","Feng ","Zhu ","Pao ","Pi ","Gan ","Ke ","Ci ","Xie ","Qi ","Dan ","Zhen ","Fa ","Zhi ","Teng ","Ju ","Ji ","Fei ","Qu ","Dian ","Jia ","Xian ","Cha ","Bing ","Ni ","Zheng ","Yong ","Jing ","Quan ","Chong ","Tong ","Yi ","Kai ","Wei ","Hui ","Duo ","Yang ","Chi ","Zhi ","Hen ","Ya ","Mei ","Dou ","Jing ","Xiao ","Tong ","Tu ","Mang ","Pi ","Xiao ","Suan ","Pu ","Li ","Zhi ","Cuo ","Duo ","Wu ","Sha ","Lao ","Shou ","Huan ","Xian ","Yi ","Peng ","Zhang ","Guan ","Tan ","Fei ","Ma ","Lin ","Chi ","Ji ","Dian ","An ","Chi ","Bi ","Bei ","Min ","Gu ","Dui ","E ","Wei "]});var J8=y((Z9e,Z8)=>{Z8.exports=["Yu ","Cui ","Ya ","Zhu ","Cu ","Dan ","Shen ","Zhung ","Ji ","Yu ","Hou ","Feng ","La ","Yang ","Shen ","Tu ","Yu ","Gua ","Wen ","Huan ","Ku ","Jia ","Yin ","Yi ","Lu ","Sao ","Jue ","Chi ","Xi ","Guan ","Yi ","Wen ","Ji ","Chuang ","Ban ","Lei ","Liu ","Chai ","Shou ","Nue ","Dian ","Da ","Pie ","Tan ","Zhang ","Biao ","Shen ","Cu ","Luo ","Yi ","Zong ","Chou ","Zhang ","Zhai ","Sou ","Suo ","Que ","Diao ","Lou ","Lu ","Mo ","Jin ","Yin ","Ying ","Huang ","Fu ","Liao ","Long ","Qiao ","Liu ","Lao ","Xian ","Fei ","Dan ","Yin ","He ","Yan ","Ban ","Xian ","Guan ","Guai ","Nong ","Yu ","Wei ","Yi ","Yong ","Pi ","Lei ","Li ","Shu ","Dan ","Lin ","Dian ","Lin ","Lai ","Pie ","Ji ","Chi ","Yang ","Xian ","Jie ","Zheng ","[?] ","Li ","Huo ","Lai ","Shaku ","Dian ","Xian ","Ying ","Yin ","Qu ","Yong ","Tan ","Dian ","Luo ","Luan ","Luan ","Bo ","[?] ","Gui ","Po ","Fa ","Deng ","Fa ","Bai ","Bai ","Qie ","Bi ","Zao ","Zao ","Mao ","De ","Pa ","Jie ","Huang ","Gui ","Ci ","Ling ","Gao ","Mo ","Ji ","Jiao ","Peng ","Gao ","Ai ","E ","Hao ","Han ","Bi ","Wan ","Chou ","Qian ","Xi ","Ai ","Jiong ","Hao ","Huang ","Hao ","Ze ","Cui ","Hao ","Xiao ","Ye ","Po ","Hao ","Jiao ","Ai ","Xing ","Huang ","Li ","Piao ","He ","Jiao ","Pi ","Gan ","Pao ","Zhou ","Jun ","Qiu ","Cun ","Que ","Zha ","Gu ","Jun ","Jun ","Zhou ","Zha ","Gu ","Zhan ","Du ","Min ","Qi ","Ying ","Yu ","Bei ","Zhao ","Zhong ","Pen ","He ","Ying ","He ","Yi ","Bo ","Wan ","He ","Ang ","Zhan ","Yan ","Jian ","He ","Yu ","Kui ","Fan ","Gai ","Dao ","Pan ","Fu ","Qiu ","Sheng ","Dao ","Lu ","Zhan ","Meng ","Li ","Jin ","Xu ","Jian ","Pan ","Guan ","An ","Lu ","Shu ","Zhou ","Dang ","An ","Gu ","Li ","Mu ","Cheng ","Gan ","Xu ","Mang ","Mang ","Zhi ","Qi ","Ruan ","Tian ","Xiang ","Dun ","Xin ","Xi ","Pan ","Feng ","Dun ","Min "]});var U8=y((J9e,$8)=>{$8.exports=["Ming ","Sheng ","Shi ","Yun ","Mian ","Pan ","Fang ","Miao ","Dan ","Mei ","Mao ","Kan ","Xian ","Ou ","Shi ","Yang ","Zheng ","Yao ","Shen ","Huo ","Da ","Zhen ","Kuang ","Ju ","Shen ","Chi ","Sheng ","Mei ","Mo ","Zhu ","Zhen ","Zhen ","Mian ","Di ","Yuan ","Die ","Yi ","Zi ","Zi ","Chao ","Zha ","Xuan ","Bing ","Mi ","Long ","Sui ","Dong ","Mi ","Die ","Yi ","Er ","Ming ","Xuan ","Chi ","Kuang ","Juan ","Mou ","Zhen ","Tiao ","Yang ","Yan ","Mo ","Zhong ","Mai ","Zhao ","Zheng ","Mei ","Jun ","Shao ","Han ","Huan ","Di ","Cheng ","Cuo ","Juan ","E ","Wan ","Xian ","Xi ","Kun ","Lai ","Jian ","Shan ","Tian ","Hun ","Wan ","Ling ","Shi ","Qiong ","Lie ","Yai ","Jing ","Zheng ","Li ","Lai ","Sui ","Juan ","Shui ","Sui ","Du ","Bi ","Bi ","Mu ","Hun ","Ni ","Lu ","Yi ","Jie ","Cai ","Zhou ","Yu ","Hun ","Ma ","Xia ","Xing ","Xi ","Gun ","Cai ","Chun ","Jian ","Mei ","Du ","Hou ","Xuan ","Ti ","Kui ","Gao ","Rui ","Mou ","Xu ","Fa ","Wen ","Miao ","Chou ","Kui ","Mi ","Weng ","Kou ","Dang ","Chen ","Ke ","Sou ","Xia ","Qiong ","Mao ","Ming ","Man ","Shui ","Ze ","Zhang ","Yi ","Diao ","Ou ","Mo ","Shun ","Cong ","Lou ","Chi ","Man ","Piao ","Cheng ","Ji ","Meng ","[?] ","Run ","Pie ","Xi ","Qiao ","Pu ","Zhu ","Deng ","Shen ","Shun ","Liao ","Che ","Xian ","Kan ","Ye ","Xu ","Tong ","Mou ","Lin ","Kui ","Xian ","Ye ","Ai ","Hui ","Zhan ","Jian ","Gu ","Zhao ","Qu ","Wei ","Chou ","Sao ","Ning ","Xun ","Yao ","Huo ","Meng ","Mian ","Bin ","Mian ","Li ","Kuang ","Jue ","Xuan ","Mian ","Huo ","Lu ","Meng ","Long ","Guan ","Man ","Xi ","Chu ","Tang ","Kan ","Zhu ","Mao ","Jin ","Lin ","Yu ","Shuo ","Ce ","Jue ","Shi ","Yi ","Shen ","Zhi ","Hou ","Shen ","Ying ","Ju ","Zhou ","Jiao ","Cuo ","Duan ","Ai ","Jiao ","Zeng ","Huo ","Bai ","Shi ","Ding ","Qi ","Ji ","Zi ","Gan ","Wu ","Tuo ","Ku ","Qiang ","Xi ","Fan ","Kuang "]});var G8=y(($9e,X8)=>{X8.exports=["Dang ","Ma ","Sha ","Dan ","Jue ","Li ","Fu ","Min ","Nuo ","Huo ","Kang ","Zhi ","Qi ","Kan ","Jie ","Fen ","E ","Ya ","Pi ","Zhe ","Yan ","Sui ","Zhuan ","Che ","Dun ","Pan ","Yan ","[?] ","Feng ","Fa ","Mo ","Zha ","Qu ","Yu ","Luo ","Tuo ","Tuo ","Di ","Zhai ","Zhen ","Ai ","Fei ","Mu ","Zhu ","Li ","Bian ","Nu ","Ping ","Peng ","Ling ","Pao ","Le ","Po ","Bo ","Po ","Shen ","Za ","Nuo ","Li ","Long ","Tong ","[?] ","Li ","Aragane ","Chu ","Keng ","Quan ","Zhu ","Kuang ","Huo ","E ","Nao ","Jia ","Lu ","Wei ","Ai ","Luo ","Ken ","Xing ","Yan ","Tong ","Peng ","Xi ","[?] ","Hong ","Shuo ","Xia ","Qiao ","[?] ","Wei ","Qiao ","[?] ","Keng ","Xiao ","Que ","Chan ","Lang ","Hong ","Yu ","Xiao ","Xia ","Mang ","Long ","Iong ","Che ","Che ","E ","Liu ","Ying ","Mang ","Que ","Yan ","Sha ","Kun ","Yu ","[?] ","Kaki ","Lu ","Chen ","Jian ","Nue ","Song ","Zhuo ","Keng ","Peng ","Yan ","Zhui ","Kong ","Ceng ","Qi ","Zong ","Qing ","Lin ","Jun ","Bo ","Ding ","Min ","Diao ","Jian ","He ","Lu ","Ai ","Sui ","Que ","Ling ","Bei ","Yin ","Dui ","Wu ","Qi ","Lun ","Wan ","Dian ","Gang ","Pei ","Qi ","Chen ","Ruan ","Yan ","Die ","Ding ","Du ","Tuo ","Jie ","Ying ","Bian ","Ke ","Bi ","Wei ","Shuo ","Zhen ","Duan ","Xia ","Dang ","Ti ","Nao ","Peng ","Jian ","Di ","Tan ","Cha ","Seki ","Qi ","[?] ","Feng ","Xuan ","Que ","Que ","Ma ","Gong ","Nian ","Su ","E ","Ci ","Liu ","Si ","Tang ","Bang ","Hua ","Pi ","Wei ","Sang ","Lei ","Cuo ","Zhen ","Xia ","Qi ","Lian ","Pan ","Wei ","Yun ","Dui ","Zhe ","Ke ","La ","[?] ","Qing ","Gun ","Zhuan ","Chan ","Qi ","Ao ","Peng ","Lu ","Lu ","Kan ","Qiang ","Chen ","Yin ","Lei ","Biao ","Qi ","Mo ","Qi ","Cui ","Zong ","Qing ","Chuo ","[?] ","Ji ","Shan ","Lao ","Qu ","Zeng ","Deng ","Jian ","Xi ","Lin ","Ding ","Dian ","Huang ","Pan ","Za ","Qiao ","Di ","Li "]});var K8=y((U9e,z8)=>{z8.exports=["Tani ","Jiao ","[?] ","Zhang ","Qiao ","Dun ","Xian ","Yu ","Zhui ","He ","Huo ","Zhai ","Lei ","Ke ","Chu ","Ji ","Que ","Dang ","Yi ","Jiang ","Pi ","Pi ","Yu ","Pin ","Qi ","Ai ","Kai ","Jian ","Yu ","Ruan ","Meng ","Pao ","Ci ","[?] ","[?] ","Mie ","Ca ","Xian ","Kuang ","Lei ","Lei ","Zhi ","Li ","Li ","Fan ","Que ","Pao ","Ying ","Li ","Long ","Long ","Mo ","Bo ","Shuang ","Guan ","Lan ","Zan ","Yan ","Shi ","Shi ","Li ","Reng ","She ","Yue ","Si ","Qi ","Ta ","Ma ","Xie ","Xian ","Xian ","Zhi ","Qi ","Zhi ","Beng ","Dui ","Zhong ","[?] ","Yi ","Shi ","You ","Zhi ","Tiao ","Fu ","Fu ","Mi ","Zu ","Zhi ","Suan ","Mei ","Zuo ","Qu ","Hu ","Zhu ","Shen ","Sui ","Ci ","Chai ","Mi ","Lu ","Yu ","Xiang ","Wu ","Tiao ","Piao ","Zhu ","Gui ","Xia ","Zhi ","Ji ","Gao ","Zhen ","Gao ","Shui ","Jin ","Chen ","Gai ","Kun ","Di ","Dao ","Huo ","Tao ","Qi ","Gu ","Guan ","Zui ","Ling ","Lu ","Bing ","Jin ","Dao ","Zhi ","Lu ","Shan ","Bei ","Zhe ","Hui ","You ","Xi ","Yin ","Zi ","Huo ","Zhen ","Fu ","Yuan ","Wu ","Xian ","Yang ","Ti ","Yi ","Mei ","Si ","Di ","[?] ","Zhuo ","Zhen ","Yong ","Ji ","Gao ","Tang ","Si ","Ma ","Ta ","[?] ","Xuan ","Qi ","Yu ","Xi ","Ji ","Si ","Chan ","Tan ","Kuai ","Sui ","Li ","Nong ","Ni ","Dao ","Li ","Rang ","Yue ","Ti ","Zan ","Lei ","Rou ","Yu ","Yu ","Chi ","Xie ","Qin ","He ","Tu ","Xiu ","Si ","Ren ","Tu ","Zi ","Cha ","Gan ","Yi ","Xian ","Bing ","Nian ","Qiu ","Qiu ","Chong ","Fen ","Hao ","Yun ","Ke ","Miao ","Zhi ","Geng ","Bi ","Zhi ","Yu ","Mi ","Ku ","Ban ","Pi ","Ni ","Li ","You ","Zu ","Pi ","Ba ","Ling ","Mo ","Cheng ","Nian ","Qin ","Yang ","Zuo ","Zhi ","Zhi ","Shu ","Ju ","Zi ","Huo ","Ji ","Cheng ","Tong ","Zhi ","Huo ","He ","Yin ","Zi ","Zhi ","Jie ","Ren ","Du ","Yi ","Zhu ","Hui ","Nong ","Fu "]});var V8=y((X9e,Q8)=>{Q8.exports=["Xi ","Kao ","Lang ","Fu ","Ze ","Shui ","Lu ","Kun ","Gan ","Geng ","Ti ","Cheng ","Tu ","Shao ","Shui ","Ya ","Lun ","Lu ","Gu ","Zuo ","Ren ","Zhun ","Bang ","Bai ","Ji ","Zhi ","Zhi ","Kun ","Leng ","Peng ","Ke ","Bing ","Chou ","Zu ","Yu ","Su ","Lue ","[?] ","Yi ","Xi ","Bian ","Ji ","Fu ","Bi ","Nuo ","Jie ","Zhong ","Zong ","Xu ","Cheng ","Dao ","Wen ","Lian ","Zi ","Yu ","Ji ","Xu ","Zhen ","Zhi ","Dao ","Jia ","Ji ","Gao ","Gao ","Gu ","Rong ","Sui ","You ","Ji ","Kang ","Mu ","Shan ","Men ","Zhi ","Ji ","Lu ","Su ","Ji ","Ying ","Wen ","Qiu ","Se ","[?] ","Yi ","Huang ","Qie ","Ji ","Sui ","Xiao ","Pu ","Jiao ","Zhuo ","Tong ","Sai ","Lu ","Sui ","Nong ","Se ","Hui ","Rang ","Nuo ","Yu ","Bin ","Ji ","Tui ","Wen ","Cheng ","Huo ","Gong ","Lu ","Biao ","[?] ","Rang ","Zhuo ","Li ","Zan ","Xue ","Wa ","Jiu ","Qiong ","Xi ","Qiong ","Kong ","Yu ","Sen ","Jing ","Yao ","Chuan ","Zhun ","Tu ","Lao ","Qie ","Zhai ","Yao ","Bian ","Bao ","Yao ","Bing ","Wa ","Zhu ","Jiao ","Qiao ","Diao ","Wu ","Gui ","Yao ","Zhi ","Chuang ","Yao ","Tiao ","Jiao ","Chuang ","Jiong ","Xiao ","Cheng ","Kou ","Cuan ","Wo ","Dan ","Ku ","Ke ","Zhui ","Xu ","Su ","Guan ","Kui ","Dou ","[?] ","Yin ","Wo ","Wa ","Ya ","Yu ","Ju ","Qiong ","Yao ","Yao ","Tiao ","Chao ","Yu ","Tian ","Diao ","Ju ","Liao ","Xi ","Wu ","Kui ","Chuang ","Zhao ","[?] ","Kuan ","Long ","Cheng ","Cui ","Piao ","Zao ","Cuan ","Qiao ","Qiong ","Dou ","Zao ","Long ","Qie ","Li ","Chu ","Shi ","Fou ","Qian ","Chu ","Hong ","Qi ","Qian ","Gong ","Shi ","Shu ","Miao ","Ju ","Zhan ","Zhu ","Ling ","Long ","Bing ","Jing ","Jing ","Zhang ","Yi ","Si ","Jun ","Hong ","Tong ","Song ","Jing ","Diao ","Yi ","Shu ","Jing ","Qu ","Jie ","Ping ","Duan ","Shao ","Zhuan ","Ceng ","Deng ","Cui ","Huai ","Jing ","Kan ","Jing ","Zhu ","Zhu ","Le ","Peng ","Yu ","Chi ","Gan "]});var t5=y((G9e,e5)=>{e5.exports=["Mang ","Zhu ","Utsubo ","Du ","Ji ","Xiao ","Ba ","Suan ","Ji ","Zhen ","Zhao ","Sun ","Ya ","Zhui ","Yuan ","Hu ","Gang ","Xiao ","Cen ","Pi ","Bi ","Jian ","Yi ","Dong ","Shan ","Sheng ","Xia ","Di ","Zhu ","Na ","Chi ","Gu ","Li ","Qie ","Min ","Bao ","Tiao ","Si ","Fu ","Ce ","Ben ","Pei ","Da ","Zi ","Di ","Ling ","Ze ","Nu ","Fu ","Gou ","Fan ","Jia ","Ge ","Fan ","Shi ","Mao ","Po ","Sey ","Jian ","Qiong ","Long ","Souke ","Bian ","Luo ","Gui ","Qu ","Chi ","Yin ","Yao ","Xian ","Bi ","Qiong ","Gua ","Deng ","Jiao ","Jin ","Quan ","Sun ","Ru ","Fa ","Kuang ","Zhu ","Tong ","Ji ","Da ","Xing ","Ce ","Zhong ","Kou ","Lai ","Bi ","Shai ","Dang ","Zheng ","Ce ","Fu ","Yun ","Tu ","Pa ","Li ","Lang ","Ju ","Guan ","Jian ","Han ","Tong ","Xia ","Zhi ","Cheng ","Suan ","Shi ","Zhu ","Zuo ","Xiao ","Shao ","Ting ","Ce ","Yan ","Gao ","Kuai ","Gan ","Chou ","Kago ","Gang ","Yun ","O ","Qian ","Xiao ","Jian ","Pu ","Lai ","Zou ","Bi ","Bi ","Bi ","Ge ","Chi ","Guai ","Yu ","Jian ","Zhao ","Gu ","Chi ","Zheng ","Jing ","Sha ","Zhou ","Lu ","Bo ","Ji ","Lin ","Suan ","Jun ","Fu ","Zha ","Gu ","Kong ","Qian ","Quan ","Jun ","Chui ","Guan ","Yuan ","Ce ","Ju ","Bo ","Ze ","Qie ","Tuo ","Luo ","Dan ","Xiao ","Ruo ","Jian ","Xuan ","Bian ","Sun ","Xiang ","Xian ","Ping ","Zhen ","Sheng ","Hu ","Shi ","Zhu ","Yue ","Chun ","Lu ","Wu ","Dong ","Xiao ","Ji ","Jie ","Huang ","Xing ","Mei ","Fan ","Chui ","Zhuan ","Pian ","Feng ","Zhu ","Hong ","Qie ","Hou ","Qiu ","Miao ","Qian ","[?] ","Kui ","Sik ","Lou ","Yun ","He ","Tang ","Yue ","Chou ","Gao ","Fei ","Ruo ","Zheng ","Gou ","Nie ","Qian ","Xiao ","Cuan ","Gong ","Pang ","Du ","Li ","Bi ","Zhuo ","Chu ","Shai ","Chi ","Zhu ","Qiang ","Long ","Lan ","Jian ","Bu ","Li ","Hui ","Bi ","Di ","Cong ","Yan ","Peng ","Sen ","Zhuan ","Pai ","Piao ","Dou ","Yu ","Mie ","Zhuan "]});var n5=y((z9e,i5)=>{i5.exports=["Ze ","Xi ","Guo ","Yi ","Hu ","Chan ","Kou ","Cu ","Ping ","Chou ","Ji ","Gui ","Su ","Lou ","Zha ","Lu ","Nian ","Suo ","Cuan ","Sasara ","Suo ","Le ","Duan ","Yana ","Xiao ","Bo ","Mi ","Si ","Dang ","Liao ","Dan ","Dian ","Fu ","Jian ","Min ","Kui ","Dai ","Qiao ","Deng ","Huang ","Sun ","Lao ","Zan ","Xiao ","Du ","Shi ","Zan ","[?] ","Pai ","Hata ","Pai ","Gan ","Ju ","Du ","Lu ","Yan ","Bo ","Dang ","Sai ","Ke ","Long ","Qian ","Lian ","Bo ","Zhou ","Lai ","[?] ","Lan ","Kui ","Yu ","Yue ","Hao ","Zhen ","Tai ","Ti ","Mi ","Chou ","Ji ","[?] ","Hata ","Teng ","Zhuan ","Zhou ","Fan ","Sou ","Zhou ","Kuji ","Zhuo ","Teng ","Lu ","Lu ","Jian ","Tuo ","Ying ","Yu ","Lai ","Long ","Shinshi ","Lian ","Lan ","Qian ","Yue ","Zhong ","Qu ","Lian ","Bian ","Duan ","Zuan ","Li ","Si ","Luo ","Ying ","Yue ","Zhuo ","Xu ","Mi ","Di ","Fan ","Shen ","Zhe ","Shen ","Nu ","Xie ","Lei ","Xian ","Zi ","Ni ","Cun ","[?] ","Qian ","Kume ","Bi ","Ban ","Wu ","Sha ","Kang ","Rou ","Fen ","Bi ","Cui ","[?] ","Li ","Chi ","Nukamiso ","Ro ","Ba ","Li ","Gan ","Ju ","Po ","Mo ","Cu ","Nian ","Zhou ","Li ","Su ","Tiao ","Li ","Qi ","Su ","Hong ","Tong ","Zi ","Ce ","Yue ","Zhou ","Lin ","Zhuang ","Bai ","[?] ","Fen ","Ji ","[?] ","Sukumo ","Liang ","Xian ","Fu ","Liang ","Can ","Geng ","Li ","Yue ","Lu ","Ju ","Qi ","Cui ","Bai ","Zhang ","Lin ","Zong ","Jing ","Guo ","Kouji ","San ","San ","Tang ","Bian ","Rou ","Mian ","Hou ","Xu ","Zong ","Hu ","Jian ","Zan ","Ci ","Li ","Xie ","Fu ","Ni ","Bei ","Gu ","Xiu ","Gao ","Tang ","Qiu ","Sukumo ","Cao ","Zhuang ","Tang ","Mi ","San ","Fen ","Zao ","Kang ","Jiang ","Mo ","San ","San ","Nuo ","Xi ","Liang ","Jiang ","Kuai ","Bo ","Huan ","[?] ","Zong ","Xian ","Nuo ","Tuan ","Nie ","Li ","Zuo ","Di ","Nie ","Tiao ","Lan ","Mi ","Jiao ","Jiu ","Xi ","Gong ","Zheng ","Jiu ","You "]});var o5=y((K9e,r5)=>{r5.exports=["Ji ","Cha ","Zhou ","Xun ","Yue ","Hong ","Yu ","He ","Wan ","Ren ","Wen ","Wen ","Qiu ","Na ","Zi ","Tou ","Niu ","Fou ","Jie ","Shu ","Chun ","Pi ","Yin ","Sha ","Hong ","Zhi ","Ji ","Fen ","Yun ","Ren ","Dan ","Jin ","Su ","Fang ","Suo ","Cui ","Jiu ","Zha ","Kinu ","Jin ","Fu ","Zhi ","Ci ","Zi ","Chou ","Hong ","Zha ","Lei ","Xi ","Fu ","Xie ","Shen ","Bei ","Zhu ","Qu ","Ling ","Zhu ","Shao ","Gan ","Yang ","Fu ","Tuo ","Zhen ","Dai ","Zhuo ","Shi ","Zhong ","Xian ","Zu ","Jiong ","Ban ","Ju ","Mo ","Shu ","Zui ","Wata ","Jing ","Ren ","Heng ","Xie ","Jie ","Zhu ","Chou ","Gua ","Bai ","Jue ","Kuang ","Hu ","Ci ","Geng ","Geng ","Tao ","Xie ","Ku ","Jiao ","Quan ","Gai ","Luo ","Xuan ","Bing ","Xian ","Fu ","Gei ","Tong ","Rong ","Tiao ","Yin ","Lei ","Xie ","Quan ","Xu ","Lun ","Die ","Tong ","Si ","Jiang ","Xiang ","Hui ","Jue ","Zhi ","Jian ","Juan ","Chi ","Mian ","Zhen ","Lu ","Cheng ","Qiu ","Shu ","Bang ","Tong ","Xiao ","Wan ","Qin ","Geng ","Xiu ","Ti ","Xiu ","Xie ","Hong ","Xi ","Fu ","Ting ","Sui ","Dui ","Kun ","Fu ","Jing ","Hu ","Zhi ","Yan ","Jiong ","Feng ","Ji ","Sok ","Kase ","Zong ","Lin ","Duo ","Li ","Lu ","Liang ","Chou ","Quan ","Shao ","Qi ","Qi ","Zhun ","Qi ","Wan ","Qian ","Xian ","Shou ","Wei ","Qi ","Tao ","Wan ","Gang ","Wang ","Beng ","Zhui ","Cai ","Guo ","Cui ","Lun ","Liu ","Qi ","Zhan ","Bei ","Chuo ","Ling ","Mian ","Qi ","Qie ","Tan ","Zong ","Gun ","Zou ","Yi ","Zi ","Xing ","Liang ","Jin ","Fei ","Rui ","Min ","Yu ","Zong ","Fan ","Lu ","Xu ","Yingl ","Zhang ","Kasuri ","Xu ","Xiang ","Jian ","Ke ","Xian ","Ruan ","Mian ","Qi ","Duan ","Zhong ","Di ","Min ","Miao ","Yuan ","Xie ","Bao ","Si ","Qiu ","Bian ","Huan ","Geng ","Cong ","Mian ","Wei ","Fu ","Wei ","Yu ","Gou ","Miao ","Xie ","Lian ","Zong ","Bian ","Yun ","Yin ","Ti ","Gua ","Zhi ","Yun ","Cheng ","Chan ","Dai "]});var a5=y((Q9e,s5)=>{s5.exports=["Xia ","Yuan ","Zong ","Xu ","Nawa ","Odoshi ","Geng ","Sen ","Ying ","Jin ","Yi ","Zhui ","Ni ","Bang ","Gu ","Pan ","Zhou ","Jian ","Cuo ","Quan ","Shuang ","Yun ","Xia ","Shuai ","Xi ","Rong ","Tao ","Fu ","Yun ","Zhen ","Gao ","Ru ","Hu ","Zai ","Teng ","Xian ","Su ","Zhen ","Zong ","Tao ","Horo ","Cai ","Bi ","Feng ","Cu ","Li ","Suo ","Yin ","Xi ","Zong ","Lei ","Zhuan ","Qian ","Man ","Zhi ","Lu ","Mo ","Piao ","Lian ","Mi ","Xuan ","Zong ","Ji ","Shan ","Sui ","Fan ","Shuai ","Beng ","Yi ","Sao ","Mou ","Zhou ","Qiang ","Hun ","Sem ","Xi ","Jung ","Xiu ","Ran ","Xuan ","Hui ","Qiao ","Zeng ","Zuo ","Zhi ","Shan ","San ","Lin ","Yu ","Fan ","Liao ","Chuo ","Zun ","Jian ","Rao ","Chan ","Rui ","Xiu ","Hui ","Hua ","Zuan ","Xi ","Qiang ","Un ","Da ","Sheng ","Hui ","Xi ","Se ","Jian ","Jiang ","Huan ","Zao ","Cong ","Jie ","Jiao ","Bo ","Chan ","Yi ","Nao ","Sui ","Yi ","Shai ","Xu ","Ji ","Bin ","Qian ","Lan ","Pu ","Xun ","Zuan ","Qi ","Peng ","Li ","Mo ","Lei ","Xie ","Zuan ","Kuang ","You ","Xu ","Lei ","Xian ","Chan ","Kou ","Lu ","Chan ","Ying ","Cai ","Xiang ","Xian ","Zui ","Zuan ","Luo ","Xi ","Dao ","Lan ","Lei ","Lian ","Si ","Jiu ","Yu ","Hong ","Zhou ","Xian ","He ","Yue ","Ji ","Wan ","Kuang ","Ji ","Ren ","Wei ","Yun ","Hong ","Chun ","Pi ","Sha ","Gang ","Na ","Ren ","Zong ","Lun ","Fen ","Zhi ","Wen ","Fang ","Zhu ","Yin ","Niu ","Shu ","Xian ","Gan ","Xie ","Fu ","Lian ","Zu ","Shen ","Xi ","Zhi ","Zhong ","Zhou ","Ban ","Fu ","Zhuo ","Shao ","Yi ","Jing ","Dai ","Bang ","Rong ","Jie ","Ku ","Rao ","Die ","Heng ","Hui ","Gei ","Xuan ","Jiang ","Luo ","Jue ","Jiao ","Tong ","Geng ","Xiao ","Juan ","Xiu ","Xi ","Sui ","Tao ","Ji ","Ti ","Ji ","Xu ","Ling ","[?] ","Xu ","Qi ","Fei ","Chuo ","Zhang ","Gun ","Sheng ","Wei ","Mian ","Shou ","Beng ","Chou ","Tao ","Liu ","Quan ","Zong ","Zhan ","Wan ","Lu "]});var u5=y((V9e,l5)=>{l5.exports=["Zhui ","Zi ","Ke ","Xiang ","Jian ","Mian ","Lan ","Ti ","Miao ","Qi ","Yun ","Hui ","Si ","Duo ","Duan ","Bian ","Xian ","Gou ","Zhui ","Huan ","Di ","Lu ","Bian ","Min ","Yuan ","Jin ","Fu ","Ru ","Zhen ","Feng ","Shuai ","Gao ","Chan ","Li ","Yi ","Jian ","Bin ","Piao ","Man ","Lei ","Ying ","Suo ","Mou ","Sao ","Xie ","Liao ","Shan ","Zeng ","Jiang ","Qian ","Zao ","Huan ","Jiao ","Zuan ","Fou ","Xie ","Gang ","Fou ","Que ","Fou ","Kaakeru ","Bo ","Ping ","Hou ","[?] ","Gang ","Ying ","Ying ","Qing ","Xia ","Guan ","Zun ","Tan ","Chang ","Qi ","Weng ","Ying ","Lei ","Tan ","Lu ","Guan ","Wang ","Wang ","Gang ","Wang ","Han ","[?] ","Luo ","Fu ","Mi ","Fa ","Gu ","Zhu ","Ju ","Mao ","Gu ","Min ","Gang ","Ba ","Gua ","Ti ","Juan ","Fu ","Lin ","Yan ","Zhao ","Zui ","Gua ","Zhuo ","Yu ","Zhi ","An ","Fa ","Nan ","Shu ","Si ","Pi ","Ma ","Liu ","Ba ","Fa ","Li ","Chao ","Wei ","Bi ","Ji ","Zeng ","Tong ","Liu ","Ji ","Juan ","Mi ","Zhao ","Luo ","Pi ","Ji ","Ji ","Luan ","Yang ","Mie ","Qiang ","Ta ","Mei ","Yang ","You ","You ","Fen ","Ba ","Gao ","Yang ","Gu ","Qiang ","Zang ","Gao ","Ling ","Yi ","Zhu ","Di ","Xiu ","Qian ","Yi ","Xian ","Rong ","Qun ","Qun ","Qian ","Huan ","Zui ","Xian ","Yi ","Yashinau ","Qiang ","Xian ","Yu ","Geng ","Jie ","Tang ","Yuan ","Xi ","Fan ","Shan ","Fen ","Shan ","Lian ","Lei ","Geng ","Nou ","Qiang ","Chan ","Yu ","Gong ","Yi ","Chong ","Weng ","Fen ","Hong ","Chi ","Chi ","Cui ","Fu ","Xia ","Pen ","Yi ","La ","Yi ","Pi ","Ling ","Liu ","Zhi ","Qu ","Xi ","Xie ","Xiang ","Xi ","Xi ","Qi ","Qiao ","Hui ","Hui ","Xiao ","Se ","Hong ","Jiang ","Di ","Cui ","Fei ","Tao ","Sha ","Chi ","Zhu ","Jian ","Xuan ","Shi ","Pian ","Zong ","Wan ","Hui ","Hou ","He ","He ","Han ","Ao ","Piao ","Yi ","Lian ","Qu ","[?] ","Lin ","Pen ","Qiao ","Ao ","Fan ","Yi ","Hui ","Xuan ","Dao "]});var h5=y((eet,c5)=>{c5.exports=["Yao ","Lao ","[?] ","Kao ","Mao ","Zhe ","Qi ","Gou ","Gou ","Gou ","Die ","Die ","Er ","Shua ","Ruan ","Er ","Nai ","Zhuan ","Lei ","Ting ","Zi ","Geng ","Chao ","Hao ","Yun ","Pa ","Pi ","Chi ","Si ","Chu ","Jia ","Ju ","He ","Chu ","Lao ","Lun ","Ji ","Tang ","Ou ","Lou ","Nou ","Gou ","Pang ","Ze ","Lou ","Ji ","Lao ","Huo ","You ","Mo ","Huai ","Er ","Zhe ","Ting ","Ye ","Da ","Song ","Qin ","Yun ","Chi ","Dan ","Dan ","Hong ","Geng ","Zhi ","[?] ","Nie ","Dan ","Zhen ","Che ","Ling ","Zheng ","You ","Wa ","Liao ","Long ","Zhi ","Ning ","Tiao ","Er ","Ya ","Die ","Gua ","[?] ","Lian ","Hao ","Sheng ","Lie ","Pin ","Jing ","Ju ","Bi ","Di ","Guo ","Wen ","Xu ","Ping ","Cong ","Shikato ","[?] ","Ting ","Yu ","Cong ","Kui ","Tsuraneru ","Kui ","Cong ","Lian ","Weng ","Kui ","Lian ","Lian ","Cong ","Ao ","Sheng ","Song ","Ting ","Kui ","Nie ","Zhi ","Dan ","Ning ","Qie ","Ji ","Ting ","Ting ","Long ","Yu ","Yu ","Zhao ","Si ","Su ","Yi ","Su ","Si ","Zhao ","Zhao ","Rou ","Yi ","Le ","Ji ","Qiu ","Ken ","Cao ","Ge ","Di ","Huan ","Huang ","Yi ","Ren ","Xiao ","Ru ","Zhou ","Yuan ","Du ","Gang ","Rong ","Gan ","Cha ","Wo ","Chang ","Gu ","Zhi ","Han ","Fu ","Fei ","Fen ","Pei ","Pang ","Jian ","Fang ","Zhun ","You ","Na ","Hang ","Ken ","Ran ","Gong ","Yu ","Wen ","Yao ","Jin ","Pi ","Qian ","Xi ","Xi ","Fei ","Ken ","Jing ","Tai ","Shen ","Zhong ","Zhang ","Xie ","Shen ","Wei ","Zhou ","Die ","Dan ","Fei ","Ba ","Bo ","Qu ","Tian ","Bei ","Gua ","Tai ","Zi ","Ku ","Zhi ","Ni ","Ping ","Zi ","Fu ","Pang ","Zhen ","Xian ","Zuo ","Pei ","Jia ","Sheng ","Zhi ","Bao ","Mu ","Qu ","Hu ","Ke ","Yi ","Yin ","Xu ","Yang ","Long ","Dong ","Ka ","Lu ","Jing ","Nu ","Yan ","Pang ","Kua ","Yi ","Guang ","Gai ","Ge ","Dong ","Zhi ","Xiao ","Xiong ","Xiong ","Er ","E ","Xing ","Pian ","Neng ","Zi ","Gui "]});var g5=y((tet,d5)=>{d5.exports=["Cheng ","Tiao ","Zhi ","Cui ","Mei ","Xie ","Cui ","Xie ","Mo ","Mai ","Ji ","Obiyaakasu ","[?] ","Kuai ","Sa ","Zang ","Qi ","Nao ","Mi ","Nong ","Luan ","Wan ","Bo ","Wen ","Guan ","Qiu ","Jiao ","Jing ","Rou ","Heng ","Cuo ","Lie ","Shan ","Ting ","Mei ","Chun ","Shen ","Xie ","De ","Zui ","Cu ","Xiu ","Xin ","Tuo ","Pao ","Cheng ","Nei ","Fu ","Dou ","Tuo ","Niao ","Noy ","Pi ","Gu ","Gua ","Li ","Lian ","Zhang ","Cui ","Jie ","Liang ","Zhou ","Pi ","Biao ","Lun ","Pian ","Guo ","Kui ","Chui ","Dan ","Tian ","Nei ","Jing ","Jie ","La ","Yi ","An ","Ren ","Shen ","Chuo ","Fu ","Fu ","Ju ","Fei ","Qiang ","Wan ","Dong ","Pi ","Guo ","Zong ","Ding ","Wu ","Mei ","Ruan ","Zhuan ","Zhi ","Cou ","Gua ","Ou ","Di ","An ","Xing ","Nao ","Yu ","Chuan ","Nan ","Yun ","Zhong ","Rou ","E ","Sai ","Tu ","Yao ","Jian ","Wei ","Jiao ","Yu ","Jia ","Duan ","Bi ","Chang ","Fu ","Xian ","Ni ","Mian ","Wa ","Teng ","Tui ","Bang ","Qian ","Lu ","Wa ","Sou ","Tang ","Su ","Zhui ","Ge ","Yi ","Bo ","Liao ","Ji ","Pi ","Xie ","Gao ","Lu ","Bin ","Ou ","Chang ","Lu ","Guo ","Pang ","Chuai ","Piao ","Jiang ","Fu ","Tang ","Mo ","Xi ","Zhuan ","Lu ","Jiao ","Ying ","Lu ","Zhi ","Tara ","Chun ","Lian ","Tong ","Peng ","Ni ","Zha ","Liao ","Cui ","Gui ","Xiao ","Teng ","Fan ","Zhi ","Jiao ","Shan ","Wu ","Cui ","Run ","Xiang ","Sui ","Fen ","Ying ","Tan ","Zhua ","Dan ","Kuai ","Nong ","Tun ","Lian ","Bi ","Yong ","Jue ","Chu ","Yi ","Juan ","La ","Lian ","Sao ","Tun ","Gu ","Qi ","Cui ","Bin ","Xun ","Ru ","Huo ","Zang ","Xian ","Biao ","Xing ","Kuan ","La ","Yan ","Lu ","Huo ","Zang ","Luo ","Qu ","Zang ","Luan ","Ni ","Zang ","Chen ","Qian ","Wo ","Guang ","Zang ","Lin ","Guang ","Zi ","Jiao ","Nie ","Chou ","Ji ","Gao ","Chou ","Mian ","Nie ","Zhi ","Zhi ","Ge ","Jian ","Die ","Zhi ","Xiu ","Tai ","Zhen ","Jiu ","Xian ","Yu ","Cha "]});var f5=y((iet,p5)=>{p5.exports=["Yao ","Yu ","Chong ","Xi ","Xi ","Jiu ","Yu ","Yu ","Xing ","Ju ","Jiu ","Xin ","She ","She ","Yadoru ","Jiu ","Shi ","Tan ","Shu ","Shi ","Tian ","Dan ","Pu ","Pu ","Guan ","Hua ","Tan ","Chuan ","Shun ","Xia ","Wu ","Zhou ","Dao ","Gang ","Shan ","Yi ","[?] ","Pa ","Tai ","Fan ","Ban ","Chuan ","Hang ","Fang ","Ban ","Que ","Hesaki ","Zhong ","Jian ","Cang ","Ling ","Zhu ","Ze ","Duo ","Bo ","Xian ","Ge ","Chuan ","Jia ","Lu ","Hong ","Pang ","Xi ","[?] ","Fu ","Zao ","Feng ","Li ","Shao ","Yu ","Lang ","Ting ","[?] ","Wei ","Bo ","Meng ","Nian ","Ju ","Huang ","Shou ","Zong ","Bian ","Mao ","Die ","[?] ","Bang ","Cha ","Yi ","Sao ","Cang ","Cao ","Lou ","Dai ","Sori ","Yao ","Tong ","Yofune ","Dang ","Tan ","Lu ","Yi ","Jie ","Jian ","Huo ","Meng ","Qi ","Lu ","Lu ","Chan ","Shuang ","Gen ","Liang ","Jian ","Jian ","Se ","Yan ","Fu ","Ping ","Yan ","Yan ","Cao ","Cao ","Yi ","Le ","Ting ","Qiu ","Ai ","Nai ","Tiao ","Jiao ","Jie ","Peng ","Wan ","Yi ","Chai ","Mian ","Mie ","Gan ","Qian ","Yu ","Yu ","Shuo ","Qiong ","Tu ","Xia ","Qi ","Mang ","Zi ","Hui ","Sui ","Zhi ","Xiang ","Bi ","Fu ","Tun ","Wei ","Wu ","Zhi ","Qi ","Shan ","Wen ","Qian ","Ren ","Fou ","Kou ","Jie ","Lu ","Xu ","Ji ","Qin ","Qi ","Yuan ","Fen ","Ba ","Rui ","Xin ","Ji ","Hua ","Hua ","Fang ","Wu ","Jue ","Gou ","Zhi ","Yun ","Qin ","Ao ","Chu ","Mao ","Ya ","Fei ","Reng ","Hang ","Cong ","Yin ","You ","Bian ","Yi ","Susa ","Wei ","Li ","Pi ","E ","Xian ","Chang ","Cang ","Meng ","Su ","Yi ","Yuan ","Ran ","Ling ","Tai ","Tiao ","Di ","Miao ","Qiong ","Li ","Yong ","Ke ","Mu ","Pei ","Bao ","Gou ","Min ","Yi ","Yi ","Ju ","Pi ","Ruo ","Ku ","Zhu ","Ni ","Bo ","Bing ","Shan ","Qiu ","Yao ","Xian ","Ben ","Hong ","Ying ","Zha ","Dong ","Ju ","Die ","Nie ","Gan ","Hu ","Ping ","Mei ","Fu ","Sheng ","Gu ","Bi ","Wei "]});var b5=y((net,m5)=>{m5.exports=["Fu ","Zhuo ","Mao ","Fan ","Qie ","Mao ","Mao ","Ba ","Zi ","Mo ","Zi ","Di ","Chi ","Ji ","Jing ","Long ","[?] ","Niao ","[?] ","Xue ","Ying ","Qiong ","Ge ","Ming ","Li ","Rong ","Yin ","Gen ","Qian ","Chai ","Chen ","Yu ","Xiu ","Zi ","Lie ","Wu ","Ji ","Kui ","Ce ","Chong ","Ci ","Gou ","Guang ","Mang ","Chi ","Jiao ","Jiao ","Fu ","Yu ","Zhu ","Zi ","Jiang ","Hui ","Yin ","Cha ","Fa ","Rong ","Ru ","Chong ","Mang ","Tong ","Zhong ","[?] ","Zhu ","Xun ","Huan ","Kua ","Quan ","Gai ","Da ","Jing ","Xing ","Quan ","Cao ","Jing ","Er ","An ","Shou ","Chi ","Ren ","Jian ","Ti ","Huang ","Ping ","Li ","Jin ","Lao ","Shu ","Zhuang ","Da ","Jia ","Rao ","Bi ","Ze ","Qiao ","Hui ","Qi ","Dang ","[?] ","Rong ","Hun ","Ying ","Luo ","Ying ","Xun ","Jin ","Sun ","Yin ","Mai ","Hong ","Zhou ","Yao ","Du ","Wei ","Chu ","Dou ","Fu ","Ren ","Yin ","He ","Bi ","Bu ","Yun ","Di ","Tu ","Sui ","Sui ","Cheng ","Chen ","Wu ","Bie ","Xi ","Geng ","Li ","Fu ","Zhu ","Mo ","Li ","Zhuang ","Ji ","Duo ","Qiu ","Sha ","Suo ","Chen ","Feng ","Ju ","Mei ","Meng ","Xing ","Jing ","Che ","Xin ","Jun ","Yan ","Ting ","Diao ","Cuo ","Wan ","Han ","You ","Cuo ","Jia ","Wang ","You ","Niu ","Shao ","Xian ","Lang ","Fu ","E ","Mo ","Wen ","Jie ","Nan ","Mu ","Kan ","Lai ","Lian ","Shi ","Wo ","Usagi ","Lian ","Huo ","You ","Ying ","Ying ","Nuc ","Chun ","Mang ","Mang ","Ci ","Wan ","Jing ","Di ","Qu ","Dong ","Jian ","Zou ","Gu ","La ","Lu ","Ju ","Wei ","Jun ","Nie ","Kun ","He ","Pu ","Zi ","Gao ","Guo ","Fu ","Lun ","Chang ","Chou ","Song ","Chui ","Zhan ","Men ","Cai ","Ba ","Li ","Tu ","Bo ","Han ","Bao ","Qin ","Juan ","Xi ","Qin ","Di ","Jie ","Pu ","Dang ","Jin ","Zhao ","Tai ","Geng ","Hua ","Gu ","Ling ","Fei ","Jin ","An ","Wang ","Beng ","Zhou ","Yan ","Ju ","Jian ","Lin ","Tan ","Shu ","Tian ","Dao "]});var v5=y((ret,y5)=>{y5.exports=["Hu ","Qi ","He ","Cui ","Tao ","Chun ","Bei ","Chang ","Huan ","Fei ","Lai ","Qi ","Meng ","Ping ","Wei ","Dan ","Sha ","Huan ","Yan ","Yi ","Tiao ","Qi ","Wan ","Ce ","Nai ","Kutabireru ","Tuo ","Jiu ","Tie ","Luo ","[?] ","[?] ","Meng ","[?] ","Yaji ","[?] ","Ying ","Ying ","Ying ","Xiao ","Sa ","Qiu ","Ke ","Xiang ","Wan ","Yu ","Yu ","Fu ","Lian ","Xuan ","Yuan ","Nan ","Ze ","Wo ","Chun ","Xiao ","Yu ","Pian ","Mao ","An ","E ","Luo ","Ying ","Huo ","Gua ","Jiang ","Mian ","Zuo ","Zuo ","Ju ","Bao ","Rou ","Xi ","Xie ","An ","Qu ","Jian ","Fu ","Lu ","Jing ","Pen ","Feng ","Hong ","Hong ","Hou ","Yan ","Tu ","Zhu ","Zi ","Xiang ","Shen ","Ge ","Jie ","Jing ","Mi ","Huang ","Shen ","Pu ","Gai ","Dong ","Zhou ","Qian ","Wei ","Bo ","Wei ","Pa ","Ji ","Hu ","Zang ","Jia ","Duan ","Yao ","Jun ","Cong ","Quan ","Wei ","Xian ","Kui ","Ting ","Hun ","Xi ","Shi ","Qi ","Lan ","Zong ","Yao ","Yuan ","Mei ","Yun ","Shu ","Di ","Zhuan ","Guan ","Sukumo ","Xue ","Chan ","Kai ","Kui ","[?] ","Jiang ","Lou ","Wei ","Pai ","[?] ","Sou ","Yin ","Shi ","Chun ","Shi ","Yun ","Zhen ","Lang ","Nu ","Meng ","He ","Que ","Suan ","Yuan ","Li ","Ju ","Xi ","Pang ","Chu ","Xu ","Tu ","Liu ","Wo ","Zhen ","Qian ","Zu ","Po ","Cuo ","Yuan ","Chu ","Yu ","Kuai ","Pan ","Pu ","Pu ","Na ","Shuo ","Xi ","Fen ","Yun ","Zheng ","Jian ","Ji ","Ruo ","Cang ","En ","Mi ","Hao ","Sun ","Zhen ","Ming ","Sou ","Xu ","Liu ","Xi ","Gu ","Lang ","Rong ","Weng ","Gai ","Cuo ","Shi ","Tang ","Luo ","Ru ","Suo ","Xian ","Bei ","Yao ","Gui ","Bi ","Zong ","Gun ","Za ","Xiu ","Ce ","Hai ","Lan ","[?] ","Ji ","Li ","Can ","Lang ","Yu ","[?] ","Ying ","Mo ","Diao ","Tiao ","Mao ","Tong ","Zhu ","Peng ","An ","Lian ","Cong ","Xi ","Ping ","Qiu ","Jin ","Chun ","Jie ","Wei ","Tui ","Cao ","Yu ","Yi ","Ji ","Liao ","Bi ","Lu ","Su "]});var x5=y((oet,w5)=>{w5.exports=["Bu ","Zhang ","Luo ","Jiang ","Man ","Yan ","Ling ","Ji ","Piao ","Gun ","Han ","Di ","Su ","Lu ","She ","Shang ","Di ","Mie ","Xun ","Man ","Bo ","Di ","Cuo ","Zhe ","Sen ","Xuan ","Wei ","Hu ","Ao ","Mi ","Lou ","Cu ","Zhong ","Cai ","Po ","Jiang ","Mi ","Cong ","Niao ","Hui ","Jun ","Yin ","Jian ","Yan ","Shu ","Yin ","Kui ","Chen ","Hu ","Sha ","Kou ","Qian ","Ma ","Zang ","Sonoko ","Qiang ","Dou ","Lian ","Lin ","Kou ","Ai ","Bi ","Li ","Wei ","Ji ","Xun ","Sheng ","Fan ","Meng ","Ou ","Chan ","Dian ","Xun ","Jiao ","Rui ","Rui ","Lei ","Yu ","Qiao ","Chu ","Hua ","Jian ","Mai ","Yun ","Bao ","You ","Qu ","Lu ","Rao ","Hui ","E ","Teng ","Fei ","Jue ","Zui ","Fa ","Ru ","Fen ","Kui ","Shun ","Rui ","Ya ","Xu ","Fu ","Jue ","Dang ","Wu ","Tong ","Si ","Xiao ","Xi ","Long ","Yun ","[?] ","Qi ","Jian ","Yun ","Sun ","Ling ","Yu ","Xia ","Yong ","Ji ","Hong ","Si ","Nong ","Lei ","Xuan ","Yun ","Yu ","Xi ","Hao ","Bo ","Hao ","Ai ","Wei ","Hui ","Wei ","Ji ","Ci ","Xiang ","Luan ","Mie ","Yi ","Leng ","Jiang ","Can ","Shen ","Qiang ","Lian ","Ke ","Yuan ","Da ","Ti ","Tang ","Xie ","Bi ","Zhan ","Sun ","Lian ","Fan ","Ding ","Jie ","Gu ","Xie ","Shu ","Jian ","Kao ","Hong ","Sa ","Xin ","Xun ","Yao ","Hie ","Sou ","Shu ","Xun ","Dui ","Pin ","Wei ","Neng ","Chou ","Mai ","Ru ","Piao ","Tai ","Qi ","Zao ","Chen ","Zhen ","Er ","Ni ","Ying ","Gao ","Cong ","Xiao ","Qi ","Fa ","Jian ","Xu ","Kui ","Jie ","Bian ","Diao ","Mi ","Lan ","Jin ","Cang ","Miao ","Qiong ","Qie ","Xian ","[?] ","Ou ","Xian ","Su ","Lu ","Yi ","Xu ","Xie ","Li ","Yi ","La ","Lei ","Xiao ","Di ","Zhi ","Bei ","Teng ","Yao ","Mo ","Huan ","Piao ","Fan ","Sou ","Tan ","Tui ","Qiong ","Qiao ","Wei ","Liu ","Hui ","[?] ","Gao ","Yun ","[?] ","Li ","Shu ","Chu ","Ai ","Lin ","Zao ","Xuan ","Chen ","Lai ","Huo "]});var S5=y((set,C5)=>{C5.exports=["Tuo ","Wu ","Rui ","Rui ","Qi ","Heng ","Lu ","Su ","Tui ","Mang ","Yun ","Pin ","Yu ","Xun ","Ji ","Jiong ","Xian ","Mo ","Hagi ","Su ","Jiong ","[?] ","Nie ","Bo ","Rang ","Yi ","Xian ","Yu ","Ju ","Lian ","Lian ","Yin ","Qiang ","Ying ","Long ","Tong ","Wei ","Yue ","Ling ","Qu ","Yao ","Fan ","Mi ","Lan ","Kui ","Lan ","Ji ","Dang ","Katsura ","Lei ","Lei ","Hua ","Feng ","Zhi ","Wei ","Kui ","Zhan ","Huai ","Li ","Ji ","Mi ","Lei ","Huai ","Luo ","Ji ","Kui ","Lu ","Jian ","San ","[?] ","Lei ","Quan ","Xiao ","Yi ","Luan ","Men ","Bie ","Hu ","Hu ","Lu ","Nue ","Lu ","Si ","Xiao ","Qian ","Chu ","Hu ","Xu ","Cuo ","Fu ","Xu ","Xu ","Lu ","Hu ","Yu ","Hao ","Jiao ","Ju ","Guo ","Bao ","Yan ","Zhan ","Zhan ","Kui ","Ban ","Xi ","Shu ","Chong ","Qiu ","Diao ","Ji ","Qiu ","Cheng ","Shi ","[?] ","Di ","Zhe ","She ","Yu ","Gan ","Zi ","Hong ","Hui ","Meng ","Ge ","Sui ","Xia ","Chai ","Shi ","Yi ","Ma ","Xiang ","Fang ","E ","Pa ","Chi ","Qian ","Wen ","Wen ","Rui ","Bang ","Bi ","Yue ","Yue ","Jun ","Qi ","Ran ","Yin ","Qi ","Tian ","Yuan ","Jue ","Hui ","Qin ","Qi ","Zhong ","Ya ","Ci ","Mu ","Wang ","Fen ","Fen ","Hang ","Gong ","Zao ","Fu ","Ran ","Jie ","Fu ","Chi ","Dou ","Piao ","Xian ","Ni ","Te ","Qiu ","You ","Zha ","Ping ","Chi ","You ","He ","Han ","Ju ","Li ","Fu ","Ran ","Zha ","Gou ","Pi ","Bo ","Xian ","Zhu ","Diao ","Bie ","Bing ","Gu ","Ran ","Qu ","She ","Tie ","Ling ","Gu ","Dan ","Gu ","Ying ","Li ","Cheng ","Qu ","Mou ","Ge ","Ci ","Hui ","Hui ","Mang ","Fu ","Yang ","Wa ","Lie ","Zhu ","Yi ","Xian ","Kuo ","Jiao ","Li ","Yi ","Ping ","Ji ","Ha ","She ","Yi ","Wang ","Mo ","Qiong ","Qie ","Gui ","Gong ","Zhi ","Man ","Ebi ","Zhi ","Jia ","Rao ","Si ","Qi ","Xing ","Lie ","Qiu ","Shao ","Yong ","Jia ","Shui ","Che ","Bai ","E ","Han "]});var T5=y((aet,D5)=>{D5.exports=["Shu ","Xuan ","Feng ","Shen ","Zhen ","Fu ","Xian ","Zhe ","Wu ","Fu ","Li ","Lang ","Bi ","Chu ","Yuan ","You ","Jie ","Dan ","Yan ","Ting ","Dian ","Shui ","Hui ","Gua ","Zhi ","Song ","Fei ","Ju ","Mi ","Qi ","Qi ","Yu ","Jun ","Zha ","Meng ","Qiang ","Si ","Xi ","Lun ","Li ","Die ","Tiao ","Tao ","Kun ","Gan ","Han ","Yu ","Bang ","Fei ","Pi ","Wei ","Dun ","Yi ","Yuan ","Su ","Quan ","Qian ","Rui ","Ni ","Qing ","Wei ","Liang ","Guo ","Wan ","Dong ","E ","Ban ","Di ","Wang ","Can ","Yang ","Ying ","Guo ","Chan ","[?] ","La ","Ke ","Ji ","He ","Ting ","Mai ","Xu ","Mian ","Yu ","Jie ","Shi ","Xuan ","Huang ","Yan ","Bian ","Rou ","Wei ","Fu ","Yuan ","Mei ","Wei ","Fu ","Ruan ","Xie ","You ","Qiu ","Mao ","Xia ","Ying ","Shi ","Chong ","Tang ","Zhu ","Zong ","Ti ","Fu ","Yuan ","Hui ","Meng ","La ","Du ","Hu ","Qiu ","Die ","Li ","Gua ","Yun ","Ju ","Nan ","Lou ","Qun ","Rong ","Ying ","Jiang ","[?] ","Lang ","Pang ","Si ","Xi ","Ci ","Xi ","Yuan ","Weng ","Lian ","Sou ","Ban ","Rong ","Rong ","Ji ","Wu ","Qiu ","Han ","Qin ","Yi ","Bi ","Hua ","Tang ","Yi ","Du ","Nai ","He ","Hu ","Hui ","Ma ","Ming ","Yi ","Wen ","Ying ","Teng ","Yu ","Cang ","So ","Ebi ","Man ","[?] ","Shang ","Zhe ","Cao ","Chi ","Di ","Ao ","Lu ","Wei ","Zhi ","Tang ","Chen ","Piao ","Qu ","Pi ","Yu ","Jian ","Luo ","Lou ","Qin ","Zhong ","Yin ","Jiang ","Shuai ","Wen ","Jiao ","Wan ","Zhi ","Zhe ","Ma ","Ma ","Guo ","Liu ","Mao ","Xi ","Cong ","Li ","Man ","Xiao ","Kamakiri ","Zhang ","Mang ","Xiang ","Mo ","Zui ","Si ","Qiu ","Te ","Zhi ","Peng ","Peng ","Jiao ","Qu ","Bie ","Liao ","Pan ","Gui ","Xi ","Ji ","Zhuan ","Huang ","Fei ","Lao ","Jue ","Jue ","Hui ","Yin ","Chan ","Jiao ","Shan ","Rao ","Xiao ","Mou ","Chong ","Xun ","Si ","[?] ","Cheng ","Dang ","Li ","Xie ","Shan ","Yi ","Jing ","Da ","Chan ","Qi "]});var P5=y((uet,k5)=>{k5.exports=["Ci ","Xiang ","She ","Luo ","Qin ","Ying ","Chai ","Li ","Ze ","Xuan ","Lian ","Zhu ","Ze ","Xie ","Mang ","Xie ","Qi ","Rong ","Jian ","Meng ","Hao ","Ruan ","Huo ","Zhuo ","Jie ","Bin ","He ","Mie ","Fan ","Lei ","Jie ","La ","Mi ","Li ","Chun ","Li ","Qiu ","Nie ","Lu ","Du ","Xiao ","Zhu ","Long ","Li ","Long ","Feng ","Ye ","Beng ","Shang ","Gu ","Juan ","Ying ","[?] ","Xi ","Can ","Qu ","Quan ","Du ","Can ","Man ","Jue ","Jie ","Zhu ","Zha ","Xie ","Huang ","Niu ","Pei ","Nu ","Xin ","Zhong ","Mo ","Er ","Ke ","Mie ","Xi ","Xing ","Yan ","Kan ","Yuan ","[?] ","Ling ","Xuan ","Shu ","Xian ","Tong ","Long ","Jie ","Xian ","Ya ","Hu ","Wei ","Dao ","Chong ","Wei ","Dao ","Zhun ","Heng ","Qu ","Yi ","Yi ","Bu ","Gan ","Yu ","Biao ","Cha ","Yi ","Shan ","Chen ","Fu ","Gun ","Fen ","Shuai ","Jie ","Na ","Zhong ","Dan ","Ri ","Zhong ","Zhong ","Xie ","Qi ","Xie ","Ran ","Zhi ","Ren ","Qin ","Jin ","Jun ","Yuan ","Mei ","Chai ","Ao ","Niao ","Hui ","Ran ","Jia ","Tuo ","Ling ","Dai ","Bao ","Pao ","Yao ","Zuo ","Bi ","Shao ","Tan ","Ju ","He ","Shu ","Xiu ","Zhen ","Yi ","Pa ","Bo ","Di ","Wa ","Fu ","Gun ","Zhi ","Zhi ","Ran ","Pan ","Yi ","Mao ","Tuo ","Na ","Kou ","Xian ","Chan ","Qu ","Bei ","Gun ","Xi ","Ne ","Bo ","Horo ","Fu ","Yi ","Chi ","Ku ","Ren ","Jiang ","Jia ","Cun ","Mo ","Jie ","Er ","Luo ","Ru ","Zhu ","Gui ","Yin ","Cai ","Lie ","Kamishimo ","Yuki ","Zhuang ","Dang ","[?] ","Kun ","Ken ","Niao ","Shu ","Jia ","Kun ","Cheng ","Li ","Juan ","Shen ","Pou ","Ge ","Yi ","Yu ","Zhen ","Liu ","Qiu ","Qun ","Ji ","Yi ","Bu ","Zhuang ","Shui ","Sha ","Qun ","Li ","Lian ","Lian ","Ku ","Jian ","Fou ","Chan ","Bi ","Gun ","Tao ","Yuan ","Ling ","Chi ","Chang ","Chou ","Duo ","Biao ","Liang ","Chang ","Pei ","Pei ","Fei ","Yuan ","Luo ","Guo ","Yan ","Du ","Xi ","Zhi ","Ju ","Qi "]});var R5=y((cet,E5)=>{E5.exports=["Ji ","Zhi ","Gua ","Ken ","Che ","Ti ","Ti ","Fu ","Chong ","Xie ","Bian ","Die ","Kun ","Duan ","Xiu ","Xiu ","He ","Yuan ","Bao ","Bao ","Fu ","Yu ","Tuan ","Yan ","Hui ","Bei ","Chu ","Lu ","Ena ","Hitoe ","Yun ","Da ","Gou ","Da ","Huai ","Rong ","Yuan ","Ru ","Nai ","Jiong ","Suo ","Ban ","Tun ","Chi ","Sang ","Niao ","Ying ","Jie ","Qian ","Huai ","Ku ","Lian ","Bao ","Li ","Zhe ","Shi ","Lu ","Yi ","Die ","Xie ","Xian ","Wei ","Biao ","Cao ","Ji ","Jiang ","Sen ","Bao ","Xiang ","Chihaya ","Pu ","Jian ","Zhuan ","Jian ","Zui ","Ji ","Dan ","Za ","Fan ","Bo ","Xiang ","Xin ","Bie ","Rao ","Man ","Lan ","Ao ","Duo ","Gui ","Cao ","Sui ","Nong ","Chan ","Lian ","Bi ","Jin ","Dang ","Shu ","Tan ","Bi ","Lan ","Pu ","Ru ","Zhi ","[?] ","Shu ","Wa ","Shi ","Bai ","Xie ","Bo ","Chen ","Lai ","Long ","Xi ","Xian ","Lan ","Zhe ","Dai ","Tasuki ","Zan ","Shi ","Jian ","Pan ","Yi ","Ran ","Ya ","Xi ","Xi ","Yao ","Feng ","Tan ","[?] ","Biao ","Fu ","Ba ","He ","Ji ","Ji ","Jian ","Guan ","Bian ","Yan ","Gui ","Jue ","Pian ","Mao ","Mi ","Mi ","Mie ","Shi ","Si ","Zhan ","Luo ","Jue ","Mi ","Tiao ","Lian ","Yao ","Zhi ","Jun ","Xi ","Shan ","Wei ","Xi ","Tian ","Yu ","Lan ","E ","Du ","Qin ","Pang ","Ji ","Ming ","Ying ","Gou ","Qu ","Zhan ","Jin ","Guan ","Deng ","Jian ","Luo ","Qu ","Jian ","Wei ","Jue ","Qu ","Luo ","Lan ","Shen ","Di ","Guan ","Jian ","Guan ","Yan ","Gui ","Mi ","Shi ","Zhan ","Lan ","Jue ","Ji ","Xi ","Di ","Tian ","Yu ","Gou ","Jin ","Qu ","Jiao ","Jiu ","Jin ","Cu ","Jue ","Zhi ","Chao ","Ji ","Gu ","Dan ","Zui ","Di ","Shang ","Hua ","Quan ","Ge ","Chi ","Jie ","Gui ","Gong ","Hong ","Jie ","Hun ","Qiu ","Xing ","Su ","Ni ","Ji ","Lu ","Zhi ","Zha ","Bi ","Xing ","Hu ","Shang ","Gong ","Zhi ","Xue ","Chu ","Xi ","Yi ","Lu ","Jue ","Xi ","Yan ","Xi "]});var L5=y((het,_5)=>{_5.exports=["Yan ","Yan ","Ding ","Fu ","Qiu ","Qiu ","Jiao ","Hong ","Ji ","Fan ","Xun ","Diao ","Hong ","Cha ","Tao ","Xu ","Jie ","Yi ","Ren ","Xun ","Yin ","Shan ","Qi ","Tuo ","Ji ","Xun ","Yin ","E ","Fen ","Ya ","Yao ","Song ","Shen ","Yin ","Xin ","Jue ","Xiao ","Ne ","Chen ","You ","Zhi ","Xiong ","Fang ","Xin ","Chao ","She ","Xian ","Sha ","Tun ","Xu ","Yi ","Yi ","Su ","Chi ","He ","Shen ","He ","Xu ","Zhen ","Zhu ","Zheng ","Gou ","Zi ","Zi ","Zhan ","Gu ","Fu ","Quan ","Die ","Ling ","Di ","Yang ","Li ","Nao ","Pan ","Zhou ","Gan ","Yi ","Ju ","Ao ","Zha ","Tuo ","Yi ","Qu ","Zhao ","Ping ","Bi ","Xiong ","Qu ","Ba ","Da ","Zu ","Tao ","Zhu ","Ci ","Zhe ","Yong ","Xu ","Xun ","Yi ","Huang ","He ","Shi ","Cha ","Jiao ","Shi ","Hen ","Cha ","Gou ","Gui ","Quan ","Hui ","Jie ","Hua ","Gai ","Xiang ","Wei ","Shen ","Chou ","Tong ","Mi ","Zhan ","Ming ","E ","Hui ","Yan ","Xiong ","Gua ","Er ","Beng ","Tiao ","Chi ","Lei ","Zhu ","Kuang ","Kua ","Wu ","Yu ","Teng ","Ji ","Zhi ","Ren ","Su ","Lang ","E ","Kuang ","E ","Shi ","Ting ","Dan ","Bo ","Chan ","You ","Heng ","Qiao ","Qin ","Shua ","An ","Yu ","Xiao ","Cheng ","Jie ","Xian ","Wu ","Wu ","Gao ","Song ","Pu ","Hui ","Jing ","Shuo ","Zhen ","Shuo ","Du ","Yasashi ","Chang ","Shui ","Jie ","Ke ","Qu ","Cong ","Xiao ","Sui ","Wang ","Xuan ","Fei ","Chi ","Ta ","Yi ","Na ","Yin ","Diao ","Pi ","Chuo ","Chan ","Chen ","Zhun ","Ji ","Qi ","Tan ","Zhui ","Wei ","Ju ","Qing ","Jian ","Zheng ","Ze ","Zou ","Qian ","Zhuo ","Liang ","Jian ","Zhu ","Hao ","Lun ","Shen ","Biao ","Huai ","Pian ","Yu ","Die ","Xu ","Pian ","Shi ","Xuan ","Shi ","Hun ","Hua ","E ","Zhong ","Di ","Xie ","Fu ","Pu ","Ting ","Jian ","Qi ","Yu ","Zi ","Chuan ","Xi ","Hui ","Yin ","An ","Xian ","Nan ","Chen ","Feng ","Zhu ","Yang ","Yan ","Heng ","Xuan ","Ge ","Nuo ","Qi "]});var F5=y((det,I5)=>{I5.exports=["Mou ","Ye ","Wei ","[?] ","Teng ","Zou ","Shan ","Jian ","Bo ","Ku ","Huang ","Huo ","Ge ","Ying ","Mi ","Xiao ","Mi ","Xi ","Qiang ","Chen ","Nue ","Ti ","Su ","Bang ","Chi ","Qian ","Shi ","Jiang ","Yuan ","Xie ","Xue ","Tao ","Yao ","Yao ","[?] ","Yu ","Biao ","Cong ","Qing ","Li ","Mo ","Mo ","Shang ","Zhe ","Miu ","Jian ","Ze ","Jie ","Lian ","Lou ","Can ","Ou ","Guan ","Xi ","Zhuo ","Ao ","Ao ","Jin ","Zhe ","Yi ","Hu ","Jiang ","Man ","Chao ","Han ","Hua ","Chan ","Xu ","Zeng ","Se ","Xi ","She ","Dui ","Zheng ","Nao ","Lan ","E ","Ying ","Jue ","Ji ","Zun ","Jiao ","Bo ","Hui ","Zhuan ","Mu ","Zen ","Zha ","Shi ","Qiao ","Tan ","Zen ","Pu ","Sheng ","Xuan ","Zao ","Tan ","Dang ","Sui ","Qian ","Ji ","Jiao ","Jing ","Lian ","Nou ","Yi ","Ai ","Zhan ","Pi ","Hui ","Hua ","Yi ","Yi ","Shan ","Rang ","Nou ","Qian ","Zhui ","Ta ","Hu ","Zhou ","Hao ","Ye ","Ying ","Jian ","Yu ","Jian ","Hui ","Du ","Zhe ","Xuan ","Zan ","Lei ","Shen ","Wei ","Chan ","Li ","Yi ","Bian ","Zhe ","Yan ","E ","Chou ","Wei ","Chou ","Yao ","Chan ","Rang ","Yin ","Lan ","Chen ","Huo ","Zhe ","Huan ","Zan ","Yi ","Dang ","Zhan ","Yan ","Du ","Yan ","Ji ","Ding ","Fu ","Ren ","Ji ","Jie ","Hong ","Tao ","Rang ","Shan ","Qi ","Tuo ","Xun ","Yi ","Xun ","Ji ","Ren ","Jiang ","Hui ","Ou ","Ju ","Ya ","Ne ","Xu ","E ","Lun ","Xiong ","Song ","Feng ","She ","Fang ","Jue ","Zheng ","Gu ","He ","Ping ","Zu ","Shi ","Xiong ","Zha ","Su ","Zhen ","Di ","Zou ","Ci ","Qu ","Zhao ","Bi ","Yi ","Yi ","Kuang ","Lei ","Shi ","Gua ","Shi ","Jie ","Hui ","Cheng ","Zhu ","Shen ","Hua ","Dan ","Gou ","Quan ","Gui ","Xun ","Yi ","Zheng ","Gai ","Xiang ","Cha ","Hun ","Xu ","Zhou ","Jie ","Wu ","Yu ","Qiao ","Wu ","Gao ","You ","Hui ","Kuang ","Shuo ","Song ","Ai ","Qing ","Zhu ","Zou ","Nuo ","Du ","Zhuo ","Fei ","Ke ","Wei "]});var M5=y((get,j5)=>{j5.exports=["Yu ","Shui ","Shen ","Diao ","Chan ","Liang ","Zhun ","Sui ","Tan ","Shen ","Yi ","Mou ","Chen ","Die ","Huang ","Jian ","Xie ","Nue ","Ye ","Wei ","E ","Yu ","Xuan ","Chan ","Zi ","An ","Yan ","Di ","Mi ","Pian ","Xu ","Mo ","Dang ","Su ","Xie ","Yao ","Bang ","Shi ","Qian ","Mi ","Jin ","Man ","Zhe ","Jian ","Miu ","Tan ","Zen ","Qiao ","Lan ","Pu ","Jue ","Yan ","Qian ","Zhan ","Chen ","Gu ","Qian ","Hong ","Xia ","Jue ","Hong ","Han ","Hong ","Xi ","Xi ","Huo ","Liao ","Han ","Du ","Long ","Dou ","Jiang ","Qi ","Shi ","Li ","Deng ","Wan ","Bi ","Shu ","Xian ","Feng ","Zhi ","Zhi ","Yan ","Yan ","Shi ","Chu ","Hui ","Tun ","Yi ","Tun ","Yi ","Jian ","Ba ","Hou ","E ","Cu ","Xiang ","Huan ","Jian ","Ken ","Gai ","Qu ","Fu ","Xi ","Bin ","Hao ","Yu ","Zhu ","Jia ","[?] ","Xi ","Bo ","Wen ","Huan ","Bin ","Di ","Zong ","Fen ","Yi ","Zhi ","Bao ","Chai ","Han ","Pi ","Na ","Pi ","Gou ","Na ","You ","Diao ","Mo ","Si ","Xiu ","Huan ","Kun ","He ","He ","Mo ","Han ","Mao ","Li ","Ni ","Bi ","Yu ","Jia ","Tuan ","Mao ","Pi ","Xi ","E ","Ju ","Mo ","Chu ","Tan ","Huan ","Jue ","Bei ","Zhen ","Yuan ","Fu ","Cai ","Gong ","Te ","Yi ","Hang ","Wan ","Pin ","Huo ","Fan ","Tan ","Guan ","Ze ","Zhi ","Er ","Zhu ","Shi ","Bi ","Zi ","Er ","Gui ","Pian ","Bian ","Mai ","Dai ","Sheng ","Kuang ","Fei ","Tie ","Yi ","Chi ","Mao ","He ","Bi ","Lu ","Ren ","Hui ","Gai ","Pian ","Zi ","Jia ","Xu ","Zei ","Jiao ","Gai ","Zang ","Jian ","Ying ","Xun ","Zhen ","She ","Bin ","Bin ","Qiu ","She ","Chuan ","Zang ","Zhou ","Lai ","Zan ","Si ","Chen ","Shang ","Tian ","Pei ","Geng ","Xian ","Mai ","Jian ","Sui ","Fu ","Tan ","Cong ","Cong ","Zhi ","Ji ","Zhang ","Du ","Jin ","Xiong ","Shun ","Yun ","Bao ","Zai ","Lai ","Feng ","Cang ","Ji ","Sheng ","Ai ","Zhuan ","Fu ","Gou ","Sai ","Ze ","Liao "]});var A5=y((pet,O5)=>{O5.exports=["Wei ","Bai ","Chen ","Zhuan ","Zhi ","Zhui ","Biao ","Yun ","Zeng ","Tan ","Zan ","Yan ","[?] ","Shan ","Wan ","Ying ","Jin ","Gan ","Xian ","Zang ","Bi ","Du ","Shu ","Yan ","[?] ","Xuan ","Long ","Gan ","Zang ","Bei ","Zhen ","Fu ","Yuan ","Gong ","Cai ","Ze ","Xian ","Bai ","Zhang ","Huo ","Zhi ","Fan ","Tan ","Pin ","Bian ","Gou ","Zhu ","Guan ","Er ","Jian ","Bi ","Shi ","Tie ","Gui ","Kuang ","Dai ","Mao ","Fei ","He ","Yi ","Zei ","Zhi ","Jia ","Hui ","Zi ","Ren ","Lu ","Zang ","Zi ","Gai ","Jin ","Qiu ","Zhen ","Lai ","She ","Fu ","Du ","Ji ","Shu ","Shang ","Si ","Bi ","Zhou ","Geng ","Pei ","Tan ","Lai ","Feng ","Zhui ","Fu ","Zhuan ","Sai ","Ze ","Yan ","Zan ","Yun ","Zeng ","Shan ","Ying ","Gan ","Chi ","Xi ","She ","Nan ","Xiong ","Xi ","Cheng ","He ","Cheng ","Zhe ","Xia ","Tang ","Zou ","Zou ","Li ","Jiu ","Fu ","Zhao ","Gan ","Qi ","Shan ","Qiong ","Qin ","Xian ","Ci ","Jue ","Qin ","Chi ","Ci ","Chen ","Chen ","Die ","Ju ","Chao ","Di ","Se ","Zhan ","Zhu ","Yue ","Qu ","Jie ","Chi ","Chu ","Gua ","Xue ","Ci ","Tiao ","Duo ","Lie ","Gan ","Suo ","Cu ","Xi ","Zhao ","Su ","Yin ","Ju ","Jian ","Que ","Tang ","Chuo ","Cui ","Lu ","Qu ","Dang ","Qiu ","Zi ","Ti ","Qu ","Chi ","Huang ","Qiao ","Qiao ","Yao ","Zao ","Ti ","[?] ","Zan ","Zan ","Zu ","Pa ","Bao ","Ku ","Ke ","Dun ","Jue ","Fu ","Chen ","Jian ","Fang ","Zhi ","Sa ","Yue ","Pa ","Qi ","Yue ","Qiang ","Tuo ","Tai ","Yi ","Nian ","Ling ","Mei ","Ba ","Die ","Ku ","Tuo ","Jia ","Ci ","Pao ","Qia ","Zhu ","Ju ","Die ","Zhi ","Fu ","Pan ","Ju ","Shan ","Bo ","Ni ","Ju ","Li ","Gen ","Yi ","Ji ","Dai ","Xian ","Jiao ","Duo ","Zhu ","Zhuan ","Kua ","Zhuai ","Gui ","Qiong ","Kui ","Xiang ","Chi ","Lu ","Beng ","Zhi ","Jia ","Tiao ","Cai ","Jian ","Ta ","Qiao ","Bi ","Xian ","Duo ","Ji ","Ju ","Ji ","Shu ","Tu "]});var H5=y((fet,N5)=>{N5.exports=["Chu ","Jing ","Nie ","Xiao ","Bo ","Chi ","Qun ","Mou ","Shu ","Lang ","Yong ","Jiao ","Chou ","Qiao ","[?] ","Ta ","Jian ","Qi ","Wo ","Wei ","Zhuo ","Jie ","Ji ","Nie ","Ju ","Ju ","Lun ","Lu ","Leng ","Huai ","Ju ","Chi ","Wan ","Quan ","Ti ","Bo ","Zu ","Qie ","Ji ","Cu ","Zong ","Cai ","Zong ","Peng ","Zhi ","Zheng ","Dian ","Zhi ","Yu ","Duo ","Dun ","Chun ","Yong ","Zhong ","Di ","Zhe ","Chen ","Chuai ","Jian ","Gua ","Tang ","Ju ","Fu ","Zu ","Die ","Pian ","Rou ","Nuo ","Ti ","Cha ","Tui ","Jian ","Dao ","Cuo ","Xi ","Ta ","Qiang ","Zhan ","Dian ","Ti ","Ji ","Nie ","Man ","Liu ","Zhan ","Bi ","Chong ","Lu ","Liao ","Cu ","Tang ","Dai ","Suo ","Xi ","Kui ","Ji ","Zhi ","Qiang ","Di ","Man ","Zong ","Lian ","Beng ","Zao ","Nian ","Bie ","Tui ","Ju ","Deng ","Ceng ","Xian ","Fan ","Chu ","Zhong ","Dun ","Bo ","Cu ","Zu ","Jue ","Jue ","Lin ","Ta ","Qiao ","Qiao ","Pu ","Liao ","Dun ","Cuan ","Kuang ","Zao ","Ta ","Bi ","Bi ","Zhu ","Ju ","Chu ","Qiao ","Dun ","Chou ","Ji ","Wu ","Yue ","Nian ","Lin ","Lie ","Zhi ","Li ","Zhi ","Chan ","Chu ","Duan ","Wei ","Long ","Lin ","Xian ","Wei ","Zuan ","Lan ","Xie ","Rang ","Xie ","Nie ","Ta ","Qu ","Jie ","Cuan ","Zuan ","Xi ","Kui ","Jue ","Lin ","Shen ","Gong ","Dan ","Segare ","Qu ","Ti ","Duo ","Duo ","Gong ","Lang ","Nerau ","Luo ","Ai ","Ji ","Ju ","Tang ","Utsuke ","[?] ","Yan ","Shitsuke ","Kang ","Qu ","Lou ","Lao ","Tuo ","Zhi ","Yagate ","Ti ","Dao ","Yagate ","Yu ","Che ","Ya ","Gui ","Jun ","Wei ","Yue ","Xin ","Di ","Xuan ","Fan ","Ren ","Shan ","Qiang ","Shu ","Tun ","Chen ","Dai ","E ","Na ","Qi ","Mao ","Ruan ","Ren ","Fan ","Zhuan ","Hong ","Hu ","Qu ","Huang ","Di ","Ling ","Dai ","Ao ","Zhen ","Fan ","Kuang ","Ang ","Peng ","Bei ","Gu ","Ku ","Pao ","Zhu ","Rong ","E ","Ba ","Zhou ","Zhi ","Yao ","Ke ","Yi ","Qing ","Shi ","Ping "]});var B5=y((met,q5)=>{q5.exports=["Er ","Qiong ","Ju ","Jiao ","Guang ","Lu ","Kai ","Quan ","Zhou ","Zai ","Zhi ","She ","Liang ","Yu ","Shao ","You ","Huan ","Yun ","Zhe ","Wan ","Fu ","Qing ","Zhou ","Ni ","Ling ","Zhe ","Zhan ","Liang ","Zi ","Hui ","Wang ","Chuo ","Guo ","Kan ","Yi ","Peng ","Qian ","Gun ","Nian ","Pian ","Guan ","Bei ","Lun ","Pai ","Liang ","Ruan ","Rou ","Ji ","Yang ","Xian ","Chuan ","Cou ","Qun ","Ge ","You ","Hong ","Shu ","Fu ","Zi ","Fu ","Wen ","Ben ","Zhan ","Yu ","Wen ","Tao ","Gu ","Zhen ","Xia ","Yuan ","Lu ","Jiu ","Chao ","Zhuan ","Wei ","Hun ","Sori ","Che ","Jiao ","Zhan ","Pu ","Lao ","Fen ","Fan ","Lin ","Ge ","Se ","Kan ","Huan ","Yi ","Ji ","Dui ","Er ","Yu ","Xian ","Hong ","Lei ","Pei ","Li ","Li ","Lu ","Lin ","Che ","Ya ","Gui ","Xuan ","Di ","Ren ","Zhuan ","E ","Lun ","Ruan ","Hong ","Ku ","Ke ","Lu ","Zhou ","Zhi ","Yi ","Hu ","Zhen ","Li ","Yao ","Qing ","Shi ","Zai ","Zhi ","Jiao ","Zhou ","Quan ","Lu ","Jiao ","Zhe ","Fu ","Liang ","Nian ","Bei ","Hui ","Gun ","Wang ","Liang ","Chuo ","Zi ","Cou ","Fu ","Ji ","Wen ","Shu ","Pei ","Yuan ","Xia ","Zhan ","Lu ","Che ","Lin ","Xin ","Gu ","Ci ","Ci ","Pi ","Zui ","Bian ","La ","La ","Ci ","Xue ","Ban ","Bian ","Bian ","Bian ","[?] ","Bian ","Ban ","Ci ","Bian ","Bian ","Chen ","Ru ","Nong ","Nong ","Zhen ","Chuo ","Chuo ","Suberu ","Reng ","Bian ","Bian ","Sip ","Ip ","Liao ","Da ","Chan ","Gan ","Qian ","Yu ","Yu ","Qi ","Xun ","Yi ","Guo ","Mai ","Qi ","Za ","Wang ","Jia ","Zhun ","Ying ","Ti ","Yun ","Jin ","Hang ","Ya ","Fan ","Wu ","Da ","E ","Huan ","Zhe ","Totemo ","Jin ","Yuan ","Wei ","Lian ","Chi ","Che ","Ni ","Tiao ","Zhi ","Yi ","Jiong ","Jia ","Chen ","Dai ","Er ","Di ","Po ","Wang ","Die ","Ze ","Tao ","Shu ","Tuo ","Kep ","Jing ","Hui ","Tong ","You ","Mi ","Beng ","Ji ","Nai ","Yi ","Jie ","Zhui ","Lie ","Xun "]});var Y5=y((bet,W5)=>{W5.exports=["Tui ","Song ","Gua ","Tao ","Pang ","Hou ","Ni ","Dun ","Jiong ","Xuan ","Xun ","Bu ","You ","Xiao ","Qiu ","Tou ","Zhu ","Qiu ","Di ","Di ","Tu ","Jing ","Ti ","Dou ","Yi ","Zhe ","Tong ","Guang ","Wu ","Shi ","Cheng ","Su ","Zao ","Qun ","Feng ","Lian ","Suo ","Hui ","Li ","Sako ","Lai ","Ben ","Cuo ","Jue ","Beng ","Huan ","Dai ","Lu ","You ","Zhou ","Jin ","Yu ","Chuo ","Kui ","Wei ","Ti ","Yi ","Da ","Yuan ","Luo ","Bi ","Nuo ","Yu ","Dang ","Sui ","Dun ","Sui ","Yan ","Chuan ","Chi ","Ti ","Yu ","Shi ","Zhen ","You ","Yun ","E ","Bian ","Guo ","E ","Xia ","Huang ","Qiu ","Dao ","Da ","Wei ","Appare ","Yi ","Gou ","Yao ","Chu ","Liu ","Xun ","Ta ","Di ","Chi ","Yuan ","Su ","Ta ","Qian ","[?] ","Yao ","Guan ","Zhang ","Ao ","Shi ","Ce ","Chi ","Su ","Zao ","Zhe ","Dun ","Di ","Lou ","Chi ","Cuo ","Lin ","Zun ","Rao ","Qian ","Xuan ","Yu ","Yi ","Wu ","Liao ","Ju ","Shi ","Bi ","Yao ","Mai ","Xie ","Sui ","Huan ","Zhan ","Teng ","Er ","Miao ","Bian ","Bian ","La ","Li ","Yuan ","Yao ","Luo ","Li ","Yi ","Ting ","Deng ","Qi ","Yong ","Shan ","Han ","Yu ","Mang ","Ru ","Qiong ","[?] ","Kuang ","Fu ","Kang ","Bin ","Fang ","Xing ","Na ","Xin ","Shen ","Bang ","Yuan ","Cun ","Huo ","Xie ","Bang ","Wu ","Ju ","You ","Han ","Tai ","Qiu ","Bi ","Pei ","Bing ","Shao ","Bei ","Wa ","Di ","Zou ","Ye ","Lin ","Kuang ","Gui ","Zhu ","Shi ","Ku ","Yu ","Gai ","Ge ","Xi ","Zhi ","Ji ","Xun ","Hou ","Xing ","Jiao ","Xi ","Gui ","Nuo ","Lang ","Jia ","Kuai ","Zheng ","Otoko ","Yun ","Yan ","Cheng ","Dou ","Chi ","Lu ","Fu ","Wu ","Fu ","Gao ","Hao ","Lang ","Jia ","Geng ","Jun ","Ying ","Bo ","Xi ","Bei ","Li ","Yun ","Bu ","Xiao ","Qi ","Pi ","Qing ","Guo ","Zhou ","Tan ","Zou ","Ping ","Lai ","Ni ","Chen ","You ","Bu ","Xiang ","Dan ","Ju ","Yong ","Qiao ","Yi ","Du ","Yan ","Mei "]});var J5=y((yet,Z5)=>{Z5.exports=["Ruo ","Bei ","E ","Yu ","Juan ","Yu ","Yun ","Hou ","Kui ","Xiang ","Xiang ","Sou ","Tang ","Ming ","Xi ","Ru ","Chu ","Zi ","Zou ","Ju ","Wu ","Xiang ","Yun ","Hao ","Yong ","Bi ","Mo ","Chao ","Fu ","Liao ","Yin ","Zhuan ","Hu ","Qiao ","Yan ","Zhang ","Fan ","Qiao ","Xu ","Deng ","Bi ","Xin ","Bi ","Ceng ","Wei ","Zheng ","Mao ","Shan ","Lin ","Po ","Dan ","Meng ","Ye ","Cao ","Kuai ","Feng ","Meng ","Zou ","Kuang ","Lian ","Zan ","Chan ","You ","Qi ","Yan ","Chan ","Zan ","Ling ","Huan ","Xi ","Feng ","Zan ","Li ","You ","Ding ","Qiu ","Zhuo ","Pei ","Zhou ","Yi ","Hang ","Yu ","Jiu ","Yan ","Zui ","Mao ","Dan ","Xu ","Tou ","Zhen ","Fen ","Sakenomoto ","[?] ","Yun ","Tai ","Tian ","Qia ","Tuo ","Zuo ","Han ","Gu ","Su ","Po ","Chou ","Zai ","Ming ","Luo ","Chuo ","Chou ","You ","Tong ","Zhi ","Xian ","Jiang ","Cheng ","Yin ","Tu ","Xiao ","Mei ","Ku ","Suan ","Lei ","Pu ","Zui ","Hai ","Yan ","Xi ","Niang ","Wei ","Lu ","Lan ","Yan ","Tao ","Pei ","Zhan ","Chun ","Tan ","Zui ","Chuo ","Cu ","Kun ","Ti ","Mian ","Du ","Hu ","Xu ","Xing ","Tan ","Jiu ","Chun ","Yun ","Po ","Ke ","Sou ","Mi ","Quan ","Chou ","Cuo ","Yun ","Yong ","Ang ","Zha ","Hai ","Tang ","Jiang ","Piao ","Shan ","Yu ","Li ","Zao ","Lao ","Yi ","Jiang ","Pu ","Jiao ","Xi ","Tan ","Po ","Nong ","Yi ","Li ","Ju ","Jiao ","Yi ","Niang ","Ru ","Xun ","Chou ","Yan ","Ling ","Mi ","Mi ","Niang ","Xin ","Jiao ","Xi ","Mi ","Yan ","Bian ","Cai ","Shi ","You ","Shi ","Shi ","Li ","Zhong ","Ye ","Liang ","Li ","Jin ","Jin ","Qiu ","Yi ","Diao ","Dao ","Zhao ","Ding ","Po ","Qiu ","He ","Fu ","Zhen ","Zhi ","Ba ","Luan ","Fu ","Nai ","Diao ","Shan ","Qiao ","Kou ","Chuan ","Zi ","Fan ","Yu ","Hua ","Han ","Gong ","Qi ","Mang ","Ri ","Di ","Si ","Xi ","Yi ","Chai ","Shi ","Tu ","Xi ","Nu ","Qian ","Ishiyumi ","Jian ","Pi ","Ye ","Yin "]});var U5=y((vet,$5)=>{$5.exports=["Ba ","Fang ","Chen ","Xing ","Tou ","Yue ","Yan ","Fu ","Pi ","Na ","Xin ","E ","Jue ","Dun ","Gou ","Yin ","Qian ","Ban ","Ji ","Ren ","Chao ","Niu ","Fen ","Yun ","Ji ","Qin ","Pi ","Guo ","Hong ","Yin ","Jun ","Shi ","Yi ","Zhong ","Nie ","Gai ","Ri ","Huo ","Tai ","Kang ","Habaki ","Irori ","Ngaak ","[?] ","Duo ","Zi ","Ni ","Tu ","Shi ","Min ","Gu ","E ","Ling ","Bing ","Yi ","Gu ","Ba ","Pi ","Yu ","Si ","Zuo ","Bu ","You ","Dian ","Jia ","Zhen ","Shi ","Shi ","Tie ","Ju ","Zhan ","Shi ","She ","Xuan ","Zhao ","Bao ","He ","Bi ","Sheng ","Chu ","Shi ","Bo ","Zhu ","Chi ","Za ","Po ","Tong ","Qian ","Fu ","Zhai ","Liu ","Qian ","Fu ","Li ","Yue ","Pi ","Yang ","Ban ","Bo ","Jie ","Gou ","Shu ","Zheng ","Mu ","Ni ","Nie ","Di ","Jia ","Mu ","Dan ","Shen ","Yi ","Si ","Kuang ","Ka ","Bei ","Jian ","Tong ","Xing ","Hong ","Jiao ","Chi ","Er ","Ge ","Bing ","Shi ","Mou ","Jia ","Yin ","Jun ","Zhou ","Chong ","Shang ","Tong ","Mo ","Lei ","Ji ","Yu ","Xu ","Ren ","Zun ","Zhi ","Qiong ","Shan ","Chi ","Xian ","Xing ","Quan ","Pi ","Tie ","Zhu ","Hou ","Ming ","Kua ","Yao ","Xian ","Xian ","Xiu ","Jun ","Cha ","Lao ","Ji ","Pi ","Ru ","Mi ","Yi ","Yin ","Guang ","An ","Diou ","You ","Se ","Kao ","Qian ","Luan ","Kasugai ","Ai ","Diao ","Han ","Rui ","Shi ","Keng ","Qiu ","Xiao ","Zhe ","Xiu ","Zang ","Ti ","Cuo ","Gua ","Gong ","Zhong ","Dou ","Lu ","Mei ","Lang ","Wan ","Xin ","Yun ","Bei ","Wu ","Su ","Yu ","Chan ","Ting ","Bo ","Han ","Jia ","Hong ","Cuan ","Feng ","Chan ","Wan ","Zhi ","Si ","Xuan ","Wu ","Wu ","Tiao ","Gong ","Zhuo ","Lue ","Xing ","Qian ","Shen ","Han ","Lue ","Xie ","Chu ","Zheng ","Ju ","Xian ","Tie ","Mang ","Pu ","Li ","Pan ","Rui ","Cheng ","Gao ","Li ","Te ","Pyeng ","Zhu ","[?] ","Tu ","Liu ","Zui ","Ju ","Chang ","Yuan ","Jian ","Gang ","Diao ","Tao ","Chang "]});var G5=y((wet,X5)=>{X5.exports=["Lun ","Kua ","Ling ","Bei ","Lu ","Li ","Qiang ","Pou ","Juan ","Min ","Zui ","Peng ","An ","Pi ","Xian ","Ya ","Zhui ","Lei ","A ","Kong ","Ta ","Kun ","Du ","Wei ","Chui ","Zi ","Zheng ","Ben ","Nie ","Cong ","Qun ","Tan ","Ding ","Qi ","Qian ","Zhuo ","Qi ","Yu ","Jin ","Guan ","Mao ","Chang ","Tian ","Xi ","Lian ","Tao ","Gu ","Cuo ","Shu ","Zhen ","Lu ","Meng ","Lu ","Hua ","Biao ","Ga ","Lai ","Ken ","Kazari ","Bu ","Nai ","Wan ","Zan ","[?] ","De ","Xian ","[?] ","Huo ","Liang ","[?] ","Men ","Kai ","Ying ","Di ","Lian ","Guo ","Xian ","Du ","Tu ","Wei ","Cong ","Fu ","Rou ","Ji ","E ","Rou ","Chen ","Ti ","Zha ","Hong ","Yang ","Duan ","Xia ","Yu ","Keng ","Xing ","Huang ","Wei ","Fu ","Zhao ","Cha ","Qie ","She ","Hong ","Kui ","Tian ","Mou ","Qiao ","Qiao ","Hou ","Tou ","Cong ","Huan ","Ye ","Min ","Jian ","Duan ","Jian ","Song ","Kui ","Hu ","Xuan ","Duo ","Jie ","Zhen ","Bian ","Zhong ","Zi ","Xiu ","Ye ","Mei ","Pai ","Ai ","Jie ","[?] ","Mei ","Chuo ","Ta ","Bang ","Xia ","Lian ","Suo ","Xi ","Liu ","Zu ","Ye ","Nou ","Weng ","Rong ","Tang ","Suo ","Qiang ","Ge ","Shuo ","Chui ","Bo ","Pan ","Sa ","Bi ","Sang ","Gang ","Zi ","Wu ","Ying ","Huang ","Tiao ","Liu ","Kai ","Sun ","Sha ","Sou ","Wan ","Hao ","Zhen ","Zhen ","Luo ","Yi ","Yuan ","Tang ","Nie ","Xi ","Jia ","Ge ","Ma ","Juan ","Kasugai ","Habaki ","Suo ","[?] ","[?] ","[?] ","Na ","Lu ","Suo ","Ou ","Zu ","Tuan ","Xiu ","Guan ","Xuan ","Lian ","Shou ","Ao ","Man ","Mo ","Luo ","Bi ","Wei ","Liu ","Di ","Qiao ","Cong ","Yi ","Lu ","Ao ","Keng ","Qiang ","Cui ","Qi ","Chang ","Tang ","Man ","Yong ","Chan ","Feng ","Jing ","Biao ","Shu ","Lou ","Xiu ","Cong ","Long ","Zan ","Jian ","Cao ","Li ","Xia ","Xi ","Kang ","[?] ","Beng ","[?] ","[?] ","Zheng ","Lu ","Hua ","Ji ","Pu ","Hui ","Qiang ","Po ","Lin ","Suo ","Xiu ","San ","Cheng "]});var K5=y((xet,z5)=>{z5.exports=["Kui ","Si ","Liu ","Nao ","Heng ","Pie ","Sui ","Fan ","Qiao ","Quan ","Yang ","Tang ","Xiang ","Jue ","Jiao ","Zun ","Liao ","Jie ","Lao ","Dui ","Tan ","Zan ","Ji ","Jian ","Zhong ","Deng ","Ya ","Ying ","Dui ","Jue ","Nou ","Ti ","Pu ","Tie ","[?] ","[?] ","Ding ","Shan ","Kai ","Jian ","Fei ","Sui ","Lu ","Juan ","Hui ","Yu ","Lian ","Zhuo ","Qiao ","Qian ","Zhuo ","Lei ","Bi ","Tie ","Huan ","Ye ","Duo ","Guo ","Dang ","Ju ","Fen ","Da ","Bei ","Yi ","Ai ","Zong ","Xun ","Diao ","Zhu ","Heng ","Zhui ","Ji ","Nie ","Ta ","Huo ","Qing ","Bin ","Ying ","Kui ","Ning ","Xu ","Jian ","Jian ","Yari ","Cha ","Zhi ","Mie ","Li ","Lei ","Ji ","Zuan ","Kuang ","Shang ","Peng ","La ","Du ","Shuo ","Chuo ","Lu ","Biao ","Bao ","Lu ","[?] ","[?] ","Long ","E ","Lu ","Xin ","Jian ","Lan ","Bo ","Jian ","Yao ","Chan ","Xiang ","Jian ","Xi ","Guan ","Cang ","Nie ","Lei ","Cuan ","Qu ","Pan ","Luo ","Zuan ","Luan ","Zao ","Nie ","Jue ","Tang ","Shu ","Lan ","Jin ","Qiu ","Yi ","Zhen ","Ding ","Zhao ","Po ","Diao ","Tu ","Qian ","Chuan ","Shan ","Ji ","Fan ","Diao ","Men ","Nu ","Xi ","Chai ","Xing ","Gai ","Bu ","Tai ","Ju ","Dun ","Chao ","Zhong ","Na ","Bei ","Gang ","Ban ","Qian ","Yao ","Qin ","Jun ","Wu ","Gou ","Kang ","Fang ","Huo ","Tou ","Niu ","Ba ","Yu ","Qian ","Zheng ","Qian ","Gu ","Bo ","E ","Po ","Bu ","Ba ","Yue ","Zuan ","Mu ","Dan ","Jia ","Dian ","You ","Tie ","Bo ","Ling ","Shuo ","Qian ","Liu ","Bao ","Shi ","Xuan ","She ","Bi ","Ni ","Pi ","Duo ","Xing ","Kao ","Lao ","Er ","Mang ","Ya ","You ","Cheng ","Jia ","Ye ","Nao ","Zhi ","Dang ","Tong ","Lu ","Diao ","Yin ","Kai ","Zha ","Zhu ","Xian ","Ting ","Diu ","Xian ","Hua ","Quan ","Sha ","Jia ","Yao ","Ge ","Ming ","Zheng ","Se ","Jiao ","Yi ","Chan ","Chong ","Tang ","An ","Yin ","Ru ","Zhu ","Lao ","Pu ","Wu ","Lai ","Te ","Lian ","Keng "]});var V5=y((Cet,Q5)=>{Q5.exports=["Xiao ","Suo ","Li ","Zheng ","Chu ","Guo ","Gao ","Tie ","Xiu ","Cuo ","Lue ","Feng ","Xin ","Liu ","Kai ","Jian ","Rui ","Ti ","Lang ","Qian ","Ju ","A ","Qiang ","Duo ","Tian ","Cuo ","Mao ","Ben ","Qi ","De ","Kua ","Kun ","Chang ","Xi ","Gu ","Luo ","Chui ","Zhui ","Jin ","Zhi ","Xian ","Juan ","Huo ","Pou ","Tan ","Ding ","Jian ","Ju ","Meng ","Zi ","Qie ","Ying ","Kai ","Qiang ","Song ","E ","Cha ","Qiao ","Zhong ","Duan ","Sou ","Huang ","Huan ","Ai ","Du ","Mei ","Lou ","Zi ","Fei ","Mei ","Mo ","Zhen ","Bo ","Ge ","Nie ","Tang ","Juan ","Nie ","Na ","Liu ","Hao ","Bang ","Yi ","Jia ","Bin ","Rong ","Biao ","Tang ","Man ","Luo ","Beng ","Yong ","Jing ","Di ","Zu ","Xuan ","Liu ","Tan ","Jue ","Liao ","Pu ","Lu ","Dui ","Lan ","Pu ","Cuan ","Qiang ","Deng ","Huo ","Lei ","Huan ","Zhuo ","Lian ","Yi ","Cha ","Biao ","La ","Chan ","Xiang ","Chang ","Chang ","Jiu ","Ao ","Die ","Qu ","Liao ","Mi ","Chang ","Men ","Ma ","Shuan ","Shan ","Huo ","Men ","Yan ","Bi ","Han ","Bi ","San ","Kai ","Kang ","Beng ","Hong ","Run ","San ","Xian ","Xian ","Jian ","Min ","Xia ","Yuru ","Dou ","Zha ","Nao ","Jian ","Peng ","Xia ","Ling ","Bian ","Bi ","Run ","He ","Guan ","Ge ","Ge ","Fa ","Chu ","Hong ","Gui ","Min ","Se ","Kun ","Lang ","Lu ","Ting ","Sha ","Ju ","Yue ","Yue ","Chan ","Qu ","Lin ","Chang ","Shai ","Kun ","Yan ","Min ","Yan ","E ","Hun ","Yu ","Wen ","Xiang ","Bao ","Xiang ","Qu ","Yao ","Wen ","Ban ","An ","Wei ","Yin ","Kuo ","Que ","Lan ","Du ","[?] ","Phwung ","Tian ","Nie ","Ta ","Kai ","He ","Que ","Chuang ","Guan ","Dou ","Qi ","Kui ","Tang ","Guan ","Piao ","Kan ","Xi ","Hui ","Chan ","Pi ","Dang ","Huan ","Ta ","Wen ","[?] ","Men ","Shuan ","Shan ","Yan ","Han ","Bi ","Wen ","Chuang ","Run ","Wei ","Xian ","Hong ","Jian ","Min ","Kang ","Men ","Zha ","Nao ","Gui ","Wen ","Ta ","Min ","Lu ","Kai "]});var t7=y((Det,e7)=>{e7.exports=["Fa ","Ge ","He ","Kun ","Jiu ","Yue ","Lang ","Du ","Yu ","Yan ","Chang ","Xi ","Wen ","Hun ","Yan ","E ","Chan ","Lan ","Qu ","Hui ","Kuo ","Que ","Ge ","Tian ","Ta ","Que ","Kan ","Huan ","Fu ","Fu ","Le ","Dui ","Xin ","Qian ","Wu ","Yi ","Tuo ","Yin ","Yang ","Dou ","E ","Sheng ","Ban ","Pei ","Keng ","Yun ","Ruan ","Zhi ","Pi ","Jing ","Fang ","Yang ","Yin ","Zhen ","Jie ","Cheng ","E ","Qu ","Di ","Zu ","Zuo ","Dian ","Ling ","A ","Tuo ","Tuo ","Po ","Bing ","Fu ","Ji ","Lu ","Long ","Chen ","Xing ","Duo ","Lou ","Mo ","Jiang ","Shu ","Duo ","Xian ","Er ","Gui ","Yu ","Gai ","Shan ","Xun ","Qiao ","Xing ","Chun ","Fu ","Bi ","Xia ","Shan ","Sheng ","Zhi ","Pu ","Dou ","Yuan ","Zhen ","Chu ","Xian ","Tou ","Nie ","Yun ","Xian ","Pei ","Pei ","Zou ","Yi ","Dui ","Lun ","Yin ","Ju ","Chui ","Chen ","Pi ","Ling ","Tao ","Xian ","Lu ","Sheng ","Xian ","Yin ","Zhu ","Yang ","Reng ","Shan ","Chong ","Yan ","Yin ","Yu ","Ti ","Yu ","Long ","Wei ","Wei ","Nie ","Dui ","Sui ","An ","Huang ","Jie ","Sui ","Yin ","Gai ","Yan ","Hui ","Ge ","Yun ","Wu ","Wei ","Ai ","Xi ","Tang ","Ji ","Zhang ","Dao ","Ao ","Xi ","Yin ","[?] ","Rao ","Lin ","Tui ","Deng ","Pi ","Sui ","Sui ","Yu ","Xian ","Fen ","Ni ","Er ","Ji ","Dao ","Xi ","Yin ","E ","Hui ","Long ","Xi ","Li ","Li ","Li ","Zhui ","He ","Zhi ","Zhun ","Jun ","Nan ","Yi ","Que ","Yan ","Qian ","Ya ","Xiong ","Ya ","Ji ","Gu ","Huan ","Zhi ","Gou ","Jun ","Ci ","Yong ","Ju ","Chu ","Hu ","Za ","Luo ","Yu ","Chou ","Diao ","Sui ","Han ","Huo ","Shuang ","Guan ","Chu ","Za ","Yong ","Ji ","Xi ","Chou ","Liu ","Li ","Nan ","Xue ","Za ","Ji ","Ji ","Yu ","Yu ","Xue ","Na ","Fou ","Se ","Mu ","Wen ","Fen ","Pang ","Yun ","Li ","Li ","Ang ","Ling ","Lei ","An ","Bao ","Meng ","Dian ","Dang ","Xing ","Wu ","Zhao "]});var n7=y((Tet,i7)=>{i7.exports=["Xu ","Ji ","Mu ","Chen ","Xiao ","Zha ","Ting ","Zhen ","Pei ","Mei ","Ling ","Qi ","Chou ","Huo ","Sha ","Fei ","Weng ","Zhan ","Yin ","Ni ","Chou ","Tun ","Lin ","[?] ","Dong ","Ying ","Wu ","Ling ","Shuang ","Ling ","Xia ","Hong ","Yin ","Mo ","Mai ","Yun ","Liu ","Meng ","Bin ","Wu ","Wei ","Huo ","Yin ","Xi ","Yi ","Ai ","Dan ","Deng ","Xian ","Yu ","Lu ","Long ","Dai ","Ji ","Pang ","Yang ","Ba ","Pi ","Wei ","[?] ","Xi ","Ji ","Mai ","Meng ","Meng ","Lei ","Li ","Huo ","Ai ","Fei ","Dai ","Long ","Ling ","Ai ","Feng ","Li ","Bao ","[?] ","He ","He ","Bing ","Qing ","Qing ","Jing ","Tian ","Zhen ","Jing ","Cheng ","Qing ","Jing ","Jing ","Dian ","Jing ","Tian ","Fei ","Fei ","Kao ","Mi ","Mian ","Mian ","Pao ","Ye ","Tian ","Hui ","Ye ","Ge ","Ding ","Cha ","Jian ","Ren ","Di ","Du ","Wu ","Ren ","Qin ","Jin ","Xue ","Niu ","Ba ","Yin ","Sa ","Na ","Mo ","Zu ","Da ","Ban ","Yi ","Yao ","Tao ","Tuo ","Jia ","Hong ","Pao ","Yang ","Tomo ","Yin ","Jia ","Tao ","Ji ","Xie ","An ","An ","Hen ","Gong ","Kohaze ","Da ","Qiao ","Ting ","Wan ","Ying ","Sui ","Tiao ","Qiao ","Xuan ","Kong ","Beng ","Ta ","Zhang ","Bing ","Kuo ","Ju ","La ","Xie ","Rou ","Bang ","Yi ","Qiu ","Qiu ","He ","Xiao ","Mu ","Ju ","Jian ","Bian ","Di ","Jian ","On ","Tao ","Gou ","Ta ","Bei ","Xie ","Pan ","Ge ","Bi ","Kuo ","Tang ","Lou ","Gui ","Qiao ","Xue ","Ji ","Jian ","Jiang ","Chan ","Da ","Huo ","Xian ","Qian ","Du ","Wa ","Jian ","Lan ","Wei ","Ren ","Fu ","Mei ","Juan ","Ge ","Wei ","Qiao ","Han ","Chang ","[?] ","Rou ","Xun ","She ","Wei ","Ge ","Bei ","Tao ","Gou ","Yun ","[?] ","Bi ","Wei ","Hui ","Du ","Wa ","Du ","Wei ","Ren ","Fu ","Han ","Wei ","Yun ","Tao ","Jiu ","Jiu ","Xian ","Xie ","Xian ","Ji ","Yin ","Za ","Yun ","Shao ","Le ","Peng ","Heng ","Ying ","Yun ","Peng ","Yin ","Yin ","Xiang "]});var o7=y((ket,r7)=>{r7.exports=["Hu ","Ye ","Ding ","Qing ","Pan ","Xiang ","Shun ","Han ","Xu ","Yi ","Xu ","Gu ","Song ","Kui ","Qi ","Hang ","Yu ","Wan ","Ban ","Dun ","Di ","Dan ","Pan ","Po ","Ling ","Ce ","Jing ","Lei ","He ","Qiao ","E ","E ","Wei ","Jie ","Gua ","Shen ","Yi ","Shen ","Hai ","Dui ","Pian ","Ping ","Lei ","Fu ","Jia ","Tou ","Hui ","Kui ","Jia ","Le ","Tian ","Cheng ","Ying ","Jun ","Hu ","Han ","Jing ","Tui ","Tui ","Pin ","Lai ","Tui ","Zi ","Zi ","Chui ","Ding ","Lai ","Yan ","Han ","Jian ","Ke ","Cui ","Jiong ","Qin ","Yi ","Sai ","Ti ","E ","E ","Yan ","Hun ","Kan ","Yong ","Zhuan ","Yan ","Xian ","Xin ","Yi ","Yuan ","Sang ","Dian ","Dian ","Jiang ","Ku ","Lei ","Liao ","Piao ","Yi ","Man ","Qi ","Rao ","Hao ","Qiao ","Gu ","Xun ","Qian ","Hui ","Zhan ","Ru ","Hong ","Bin ","Xian ","Pin ","Lu ","Lan ","Nie ","Quan ","Ye ","Ding ","Qing ","Han ","Xiang ","Shun ","Xu ","Xu ","Wan ","Gu ","Dun ","Qi ","Ban ","Song ","Hang ","Yu ","Lu ","Ling ","Po ","Jing ","Jie ","Jia ","Tian ","Han ","Ying ","Jiong ","Hai ","Yi ","Pin ","Hui ","Tui ","Han ","Ying ","Ying ","Ke ","Ti ","Yong ","E ","Zhuan ","Yan ","E ","Nie ","Man ","Dian ","Sang ","Hao ","Lei ","Zhan ","Ru ","Pin ","Quan ","Feng ","Biao ","Oroshi ","Fu ","Xia ","Zhan ","Biao ","Sa ","Ba ","Tai ","Lie ","Gua ","Xuan ","Shao ","Ju ","Bi ","Si ","Wei ","Yang ","Yao ","Sou ","Kai ","Sao ","Fan ","Liu ","Xi ","Liao ","Piao ","Piao ","Liu ","Biao ","Biao ","Biao ","Liao ","[?] ","Se ","Feng ","Biao ","Feng ","Yang ","Zhan ","Biao ","Sa ","Ju ","Si ","Sou ","Yao ","Liu ","Piao ","Biao ","Biao ","Fei ","Fan ","Fei ","Fei ","Shi ","Shi ","Can ","Ji ","Ding ","Si ","Tuo ","Zhan ","Sun ","Xiang ","Tun ","Ren ","Yu ","Juan ","Chi ","Yin ","Fan ","Fan ","Sun ","Yin ","Zhu ","Yi ","Zhai ","Bi ","Jie ","Tao ","Liu ","Ci ","Tie ","Si ","Bao ","Shi ","Duo "]});var a7=y((Pet,s7)=>{s7.exports=["Hai ","Ren ","Tian ","Jiao ","Jia ","Bing ","Yao ","Tong ","Ci ","Xiang ","Yang ","Yang ","Er ","Yan ","Le ","Yi ","Can ","Bo ","Nei ","E ","Bu ","Jun ","Dou ","Su ","Yu ","Shi ","Yao ","Hun ","Guo ","Shi ","Jian ","Zhui ","Bing ","Xian ","Bu ","Ye ","Tan ","Fei ","Zhang ","Wei ","Guan ","E ","Nuan ","Hun ","Hu ","Huang ","Tie ","Hui ","Jian ","Hou ","He ","Xing ","Fen ","Wei ","Gu ","Cha ","Song ","Tang ","Bo ","Gao ","Xi ","Kui ","Liu ","Sou ","Tao ","Ye ","Yun ","Mo ","Tang ","Man ","Bi ","Yu ","Xiu ","Jin ","San ","Kui ","Zhuan ","Shan ","Chi ","Dan ","Yi ","Ji ","Rao ","Cheng ","Yong ","Tao ","Hui ","Xiang ","Zhan ","Fen ","Hai ","Meng ","Yan ","Mo ","Chan ","Xiang ","Luo ","Zuan ","Nang ","Shi ","Ding ","Ji ","Tuo ","Xing ","Tun ","Xi ","Ren ","Yu ","Chi ","Fan ","Yin ","Jian ","Shi ","Bao ","Si ","Duo ","Yi ","Er ","Rao ","Xiang ","Jia ","Le ","Jiao ","Yi ","Bing ","Bo ","Dou ","E ","Yu ","Nei ","Jun ","Guo ","Hun ","Xian ","Guan ","Cha ","Kui ","Gu ","Sou ","Chan ","Ye ","Mo ","Bo ","Liu ","Xiu ","Jin ","Man ","San ","Zhuan ","Nang ","Shou ","Kui ","Guo ","Xiang ","Fen ","Ba ","Ni ","Bi ","Bo ","Tu ","Han ","Fei ","Jian ","An ","Ai ","Fu ","Xian ","Wen ","Xin ","Fen ","Bin ","Xing ","Ma ","Yu ","Feng ","Han ","Di ","Tuo ","Tuo ","Chi ","Xun ","Zhu ","Zhi ","Pei ","Xin ","Ri ","Sa ","Yin ","Wen ","Zhi ","Dan ","Lu ","You ","Bo ","Bao ","Kuai ","Tuo ","Yi ","Qu ","[?] ","Qu ","Jiong ","Bo ","Zhao ","Yuan ","Peng ","Zhou ","Ju ","Zhu ","Nu ","Ju ","Pi ","Zang ","Jia ","Ling ","Zhen ","Tai ","Fu ","Yang ","Shi ","Bi ","Tuo ","Tuo ","Si ","Liu ","Ma ","Pian ","Tao ","Zhi ","Rong ","Teng ","Dong ","Xun ","Quan ","Shen ","Jiong ","Er ","Hai ","Bo ","Zhu ","Yin ","Luo ","Shuu ","Dan ","Xie ","Liu ","Ju ","Song ","Qin ","Mang ","Liang ","Han ","Tu ","Xuan ","Tui ","Jun "]});var u7=y((Eet,l7)=>{l7.exports=["E ","Cheng ","Xin ","Ai ","Lu ","Zhui ","Zhou ","She ","Pian ","Kun ","Tao ","Lai ","Zong ","Ke ","Qi ","Qi ","Yan ","Fei ","Sao ","Yan ","Jie ","Yao ","Wu ","Pian ","Cong ","Pian ","Qian ","Fei ","Huang ","Jian ","Huo ","Yu ","Ti ","Quan ","Xia ","Zong ","Kui ","Rou ","Si ","Gua ","Tuo ","Kui ","Sou ","Qian ","Cheng ","Zhi ","Liu ","Pang ","Teng ","Xi ","Cao ","Du ","Yan ","Yuan ","Zou ","Sao ","Shan ","Li ","Zhi ","Shuang ","Lu ","Xi ","Luo ","Zhang ","Mo ","Ao ","Can ","Piao ","Cong ","Qu ","Bi ","Zhi ","Yu ","Xu ","Hua ","Bo ","Su ","Xiao ","Lin ","Chan ","Dun ","Liu ","Tuo ","Zeng ","Tan ","Jiao ","Tie ","Yan ","Luo ","Zhan ","Jing ","Yi ","Ye ","Tuo ","Bin ","Zou ","Yan ","Peng ","Lu ","Teng ","Xiang ","Ji ","Shuang ","Ju ","Xi ","Huan ","Li ","Biao ","Ma ","Yu ","Tuo ","Xun ","Chi ","Qu ","Ri ","Bo ","Lu ","Zang ","Shi ","Si ","Fu ","Ju ","Zou ","Zhu ","Tuo ","Nu ","Jia ","Yi ","Tai ","Xiao ","Ma ","Yin ","Jiao ","Hua ","Luo ","Hai ","Pian ","Biao ","Li ","Cheng ","Yan ","Xin ","Qin ","Jun ","Qi ","Qi ","Ke ","Zhui ","Zong ","Su ","Can ","Pian ","Zhi ","Kui ","Sao ","Wu ","Ao ","Liu ","Qian ","Shan ","Piao ","Luo ","Cong ","Chan ","Zou ","Ji ","Shuang ","Xiang ","Gu ","Wei ","Wei ","Wei ","Yu ","Gan ","Yi ","Ang ","Tou ","Xie ","Bao ","Bi ","Chi ","Ti ","Di ","Ku ","Hai ","Qiao ","Gou ","Kua ","Ge ","Tui ","Geng ","Pian ","Bi ","Ke ","Ka ","Yu ","Sui ","Lou ","Bo ","Xiao ","Pang ","Bo ","Ci ","Kuan ","Bin ","Mo ","Liao ","Lou ","Nao ","Du ","Zang ","Sui ","Ti ","Bin ","Kuan ","Lu ","Gao ","Gao ","Qiao ","Kao ","Qiao ","Lao ","Zao ","Biao ","Kun ","Kun ","Ti ","Fang ","Xiu ","Ran ","Mao ","Dan ","Kun ","Bin ","Fa ","Tiao ","Peng ","Zi ","Fa ","Ran ","Ti ","Pao ","Pi ","Mao ","Fu ","Er ","Rong ","Qu ","Gong ","Xiu ","Gua ","Ji ","Peng ","Zhua ","Shao ","Sha "]});var h7=y((Ret,c7)=>{c7.exports=["Ti ","Li ","Bin ","Zong ","Ti ","Peng ","Song ","Zheng ","Quan ","Zong ","Shun ","Jian ","Duo ","Hu ","La ","Jiu ","Qi ","Lian ","Zhen ","Bin ","Peng ","Mo ","San ","Man ","Man ","Seng ","Xu ","Lie ","Qian ","Qian ","Nong ","Huan ","Kuai ","Ning ","Bin ","Lie ","Rang ","Dou ","Dou ","Nao ","Hong ","Xi ","Dou ","Han ","Dou ","Dou ","Jiu ","Chang ","Yu ","Yu ","Li ","Juan ","Fu ","Qian ","Gui ","Zong ","Liu ","Gui ","Shang ","Yu ","Gui ","Mei ","Ji ","Qi ","Jie ","Kui ","Hun ","Ba ","Po ","Mei ","Xu ","Yan ","Xiao ","Liang ","Yu ","Tui ","Qi ","Wang ","Liang ","Wei ","Jian ","Chi ","Piao ","Bi ","Mo ","Ji ","Xu ","Chou ","Yan ","Zhan ","Yu ","Dao ","Ren ","Ji ","Eri ","Gong ","Tuo ","Diao ","Ji ","Xu ","E ","E ","Sha ","Hang ","Tun ","Mo ","Jie ","Shen ","Fan ","Yuan ","Bi ","Lu ","Wen ","Hu ","Lu ","Za ","Fang ","Fen ","Na ","You ","Namazu ","Todo ","He ","Xia ","Qu ","Han ","Pi ","Ling ","Tuo ","Bo ","Qiu ","Ping ","Fu ","Bi ","Ji ","Wei ","Ju ","Diao ","Bo ","You ","Gun ","Pi ","Nian ","Xing ","Tai ","Bao ","Fu ","Zha ","Ju ","Gu ","Kajika ","Tong ","[?] ","Ta ","Jie ","Shu ","Hou ","Xiang ","Er ","An ","Wei ","Tiao ","Zhu ","Yin ","Lie ","Luo ","Tong ","Yi ","Qi ","Bing ","Wei ","Jiao ","Bu ","Gui ","Xian ","Ge ","Hui ","Bora ","Mate ","Kao ","Gori ","Duo ","Jun ","Ti ","Man ","Xiao ","Za ","Sha ","Qin ","Yu ","Nei ","Zhe ","Gun ","Geng ","Su ","Wu ","Qiu ","Ting ","Fu ","Wan ","You ","Li ","Sha ","Sha ","Gao ","Meng ","Ugui ","Asari ","Subashiri ","Kazunoko ","Yong ","Ni ","Zi ","Qi ","Qing ","Xiang ","Nei ","Chun ","Ji ","Diao ","Qie ","Gu ","Zhou ","Dong ","Lai ","Fei ","Ni ","Yi ","Kun ","Lu ","Jiu ","Chang ","Jing ","Lun ","Ling ","Zou ","Li ","Meng ","Zong ","Zhi ","Nian ","Shachi ","Dojou ","Sukesou ","Shi ","Shen ","Hun ","Shi ","Hou ","Xing ","Zhu ","La ","Zong ","Ji ","Bian ","Bian "]});var g7=y((_et,d7)=>{d7.exports=["Huan ","Quan ","Ze ","Wei ","Wei ","Yu ","Qun ","Rou ","Die ","Huang ","Lian ","Yan ","Qiu ","Qiu ","Jian ","Bi ","E ","Yang ","Fu ","Sai ","Jian ","Xia ","Tuo ","Hu ","Muroaji ","Ruo ","Haraka ","Wen ","Jian ","Hao ","Wu ","Fang ","Sao ","Liu ","Ma ","Shi ","Shi ","Yin ","Z ","Teng ","Ta ","Yao ","Ge ","Rong ","Qian ","Qi ","Wen ","Ruo ","Hatahata ","Lian ","Ao ","Le ","Hui ","Min ","Ji ","Tiao ","Qu ","Jian ","Sao ","Man ","Xi ","Qiu ","Biao ","Ji ","Ji ","Zhu ","Jiang ","Qiu ","Zhuan ","Yong ","Zhang ","Kang ","Xue ","Bie ","Jue ","Qu ","Xiang ","Bo ","Jiao ","Xun ","Su ","Huang ","Zun ","Shan ","Shan ","Fan ","Jue ","Lin ","Xun ","Miao ","Xi ","Eso ","Kyou ","Fen ","Guan ","Hou ","Kuai ","Zei ","Sao ","Zhan ","Gan ","Gui ","Sheng ","Li ","Chang ","Hatahata ","Shiira ","Mutsu ","Ru ","Ji ","Xu ","Huo ","Shiira ","Li ","Lie ","Li ","Mie ","Zhen ","Xiang ","E ","Lu ","Guan ","Li ","Xian ","Yu ","Dao ","Ji ","You ","Tun ","Lu ","Fang ","Ba ","He ","Bo ","Ping ","Nian ","Lu ","You ","Zha ","Fu ","Bo ","Bao ","Hou ","Pi ","Tai ","Gui ","Jie ","Kao ","Wei ","Er ","Tong ","Ze ","Hou ","Kuai ","Ji ","Jiao ","Xian ","Za ","Xiang ","Xun ","Geng ","Li ","Lian ","Jian ","Li ","Shi ","Tiao ","Gun ","Sha ","Wan ","Jun ","Ji ","Yong ","Qing ","Ling ","Qi ","Zou ","Fei ","Kun ","Chang ","Gu ","Ni ","Nian ","Diao ","Jing ","Shen ","Shi ","Zi ","Fen ","Die ","Bi ","Chang ","Shi ","Wen ","Wei ","Sai ","E ","Qiu ","Fu ","Huang ","Quan ","Jiang ","Bian ","Sao ","Ao ","Qi ","Ta ","Yin ","Yao ","Fang ","Jian ","Le ","Biao ","Xue ","Bie ","Man ","Min ","Yong ","Wei ","Xi ","Jue ","Shan ","Lin ","Zun ","Huo ","Gan ","Li ","Zhan ","Guan ","Niao ","Yi ","Fu ","Li ","Jiu ","Bu ","Yan ","Fu ","Diao ","Ji ","Feng ","Nio ","Gan ","Shi ","Feng ","Ming ","Bao ","Yuan ","Zhi ","Hu ","Qin ","Fu ","Fen ","Wen ","Jian ","Shi ","Yu "]});var f7=y((Let,p7)=>{p7.exports=["Fou ","Yiao ","Jue ","Jue ","Pi ","Huan ","Zhen ","Bao ","Yan ","Ya ","Zheng ","Fang ","Feng ","Wen ","Ou ","Te ","Jia ","Nu ","Ling ","Mie ","Fu ","Tuo ","Wen ","Li ","Bian ","Zhi ","Ge ","Yuan ","Zi ","Qu ","Xiao ","Zhi ","Dan ","Ju ","You ","Gu ","Zhong ","Yu ","Yang ","Rong ","Ya ","Tie ","Yu ","Shigi ","Ying ","Zhui ","Wu ","Er ","Gua ","Ai ","Zhi ","Yan ","Heng ","Jiao ","Ji ","Lie ","Zhu ","Ren ","Yi ","Hong ","Luo ","Ru ","Mou ","Ge ","Ren ","Jiao ","Xiu ","Zhou ","Zhi ","Luo ","Chidori ","Toki ","Ten ","Luan ","Jia ","Ji ","Yu ","Huan ","Tuo ","Bu ","Wu ","Juan ","Yu ","Bo ","Xun ","Xun ","Bi ","Xi ","Jun ","Ju ","Tu ","Jing ","Ti ","E ","E ","Kuang ","Hu ","Wu ","Shen ","Lai ","Ikaruga ","Kakesu ","Lu ","Ping ","Shu ","Fu ","An ","Zhao ","Peng ","Qin ","Qian ","Bei ","Diao ","Lu ","Que ","Jian ","Ju ","Tu ","Ya ","Yuan ","Qi ","Li ","Ye ","Zhui ","Kong ","Zhui ","Kun ","Sheng ","Qi ","Jing ","Yi ","Yi ","Jing ","Zi ","Lai ","Dong ","Qi ","Chun ","Geng ","Ju ","Qu ","Isuka ","Kikuitadaki ","Ji ","Shu ","[?] ","Chi ","Miao ","Rou ","An ","Qiu ","Ti ","Hu ","Ti ","E ","Jie ","Mao ","Fu ","Chun ","Tu ","Yan ","He ","Yuan ","Pian ","Yun ","Mei ","Hu ","Ying ","Dun ","Mu ","Ju ","Tsugumi ","Cang ","Fang ","Gu ","Ying ","Yuan ","Xuan ","Weng ","Shi ","He ","Chu ","Tang ","Xia ","Ruo ","Liu ","Ji ","Gu ","Jian ","Zhun ","Han ","Zi ","Zi ","Ni ","Yao ","Yan ","Ji ","Li ","Tian ","Kou ","Ti ","Ti ","Ni ","Tu ","Ma ","Jiao ","Gao ","Tian ","Chen ","Li ","Zhuan ","Zhe ","Ao ","Yao ","Yi ","Ou ","Chi ","Zhi ","Liao ","Rong ","Lou ","Bi ","Shuang ","Zhuo ","Yu ","Wu ","Jue ","Yin ","Quan ","Si ","Jiao ","Yi ","Hua ","Bi ","Ying ","Su ","Huang ","Fan ","Jiao ","Liao ","Yan ","Kao ","Jiu ","Xian ","Xian ","Tu ","Mai ","Zun ","Yu ","Ying ","Lu ","Tuan ","Xian ","Xue ","Yi ","Pi "]});var b7=y((Iet,m7)=>{m7.exports=["Shu ","Luo ","Qi ","Yi ","Ji ","Zhe ","Yu ","Zhan ","Ye ","Yang ","Pi ","Ning ","Huo ","Mi ","Ying ","Meng ","Di ","Yue ","Yu ","Lei ","Bao ","Lu ","He ","Long ","Shuang ","Yue ","Ying ","Guan ","Qu ","Li ","Luan ","Niao ","Jiu ","Ji ","Yuan ","Ming ","Shi ","Ou ","Ya ","Cang ","Bao ","Zhen ","Gu ","Dong ","Lu ","Ya ","Xiao ","Yang ","Ling ","Zhi ","Qu ","Yuan ","Xue ","Tuo ","Si ","Zhi ","Er ","Gua ","Xiu ","Heng ","Zhou ","Ge ","Luan ","Hong ","Wu ","Bo ","Li ","Juan ","Hu ","E ","Yu ","Xian ","Ti ","Wu ","Que ","Miao ","An ","Kun ","Bei ","Peng ","Qian ","Chun ","Geng ","Yuan ","Su ","Hu ","He ","E ","Gu ","Qiu ","Zi ","Mei ","Mu ","Ni ","Yao ","Weng ","Liu ","Ji ","Ni ","Jian ","He ","Yi ","Ying ","Zhe ","Liao ","Liao ","Jiao ","Jiu ","Yu ","Lu ","Xuan ","Zhan ","Ying ","Huo ","Meng ","Guan ","Shuang ","Lu ","Jin ","Ling ","Jian ","Xian ","Cuo ","Jian ","Jian ","Yan ","Cuo ","Lu ","You ","Cu ","Ji ","Biao ","Cu ","Biao ","Zhu ","Jun ","Zhu ","Jian ","Mi ","Mi ","Wu ","Liu ","Chen ","Jun ","Lin ","Ni ","Qi ","Lu ","Jiu ","Jun ","Jing ","Li ","Xiang ","Yan ","Jia ","Mi ","Li ","She ","Zhang ","Lin ","Jing ","Ji ","Ling ","Yan ","Cu ","Mai ","Mai ","Ge ","Chao ","Fu ","Mian ","Mian ","Fu ","Pao ","Qu ","Qu ","Mou ","Fu ","Xian ","Lai ","Qu ","Mian ","[?] ","Feng ","Fu ","Qu ","Mian ","Ma ","Mo ","Mo ","Hui ","Ma ","Zou ","Nen ","Fen ","Huang ","Huang ","Jin ","Guang ","Tian ","Tou ","Heng ","Xi ","Kuang ","Heng ","Shu ","Li ","Nian ","Chi ","Hei ","Hei ","Yi ","Qian ","Dan ","Xi ","Tuan ","Mo ","Mo ","Qian ","Dai ","Chu ","You ","Dian ","Yi ","Xia ","Yan ","Qu ","Mei ","Yan ","Jing ","Yu ","Li ","Dang ","Du ","Can ","Yin ","An ","Yan ","Tan ","An ","Zhen ","Dai ","Can ","Yi ","Mei ","Dan ","Yan ","Du ","Lu ","Zhi ","Fen ","Fu ","Fu ","Min ","Min ","Yuan "]});var v7=y((Fet,y7)=>{y7.exports=["Cu ","Qu ","Chao ","Wa ","Zhu ","Zhi ","Mang ","Ao ","Bie ","Tuo ","Bi ","Yuan ","Chao ","Tuo ","Ding ","Mi ","Nai ","Ding ","Zi ","Gu ","Gu ","Dong ","Fen ","Tao ","Yuan ","Pi ","Chang ","Gao ","Qi ","Yuan ","Tang ","Teng ","Shu ","Shu ","Fen ","Fei ","Wen ","Ba ","Diao ","Tuo ","Tong ","Qu ","Sheng ","Shi ","You ","Shi ","Ting ","Wu ","Nian ","Jing ","Hun ","Ju ","Yan ","Tu ","Ti ","Xi ","Xian ","Yan ","Lei ","Bi ","Yao ","Qiu ","Han ","Wu ","Wu ","Hou ","Xi ","Ge ","Zha ","Xiu ","Weng ","Zha ","Nong ","Nang ","Qi ","Zhai ","Ji ","Zi ","Ji ","Ji ","Qi ","Ji ","Chi ","Chen ","Chen ","He ","Ya ","Ken ","Xie ","Pao ","Cuo ","Shi ","Zi ","Chi ","Nian ","Ju ","Tiao ","Ling ","Ling ","Chu ","Quan ","Xie ","Ken ","Nie ","Jiu ","Yao ","Chuo ","Kun ","Yu ","Chu ","Yi ","Ni ","Cuo ","Zou ","Qu ","Nen ","Xian ","Ou ","E ","Wo ","Yi ","Chuo ","Zou ","Dian ","Chu ","Jin ","Ya ","Chi ","Chen ","He ","Ken ","Ju ","Ling ","Pao ","Tiao ","Zi ","Ken ","Yu ","Chuo ","Qu ","Wo ","Long ","Pang ","Gong ","Pang ","Yan ","Long ","Long ","Gong ","Kan ","Ta ","Ling ","Ta ","Long ","Gong ","Kan ","Gui ","Qiu ","Bie ","Gui ","Yue ","Chui ","He ","Jue ","Xie ","Yu ","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var x7=y((jet,w7)=>{w7.exports=["it","ix","i","ip","iet","iex","ie","iep","at","ax","a","ap","uox","uo","uop","ot","ox","o","op","ex","e","wu","bit","bix","bi","bip","biet","biex","bie","biep","bat","bax","ba","bap","buox","buo","buop","bot","box","bo","bop","bex","be","bep","but","bux","bu","bup","burx","bur","byt","byx","by","byp","byrx","byr","pit","pix","pi","pip","piex","pie","piep","pat","pax","pa","pap","puox","puo","puop","pot","pox","po","pop","put","pux","pu","pup","purx","pur","pyt","pyx","py","pyp","pyrx","pyr","bbit","bbix","bbi","bbip","bbiet","bbiex","bbie","bbiep","bbat","bbax","bba","bbap","bbuox","bbuo","bbuop","bbot","bbox","bbo","bbop","bbex","bbe","bbep","bbut","bbux","bbu","bbup","bburx","bbur","bbyt","bbyx","bby","bbyp","nbit","nbix","nbi","nbip","nbiex","nbie","nbiep","nbat","nbax","nba","nbap","nbot","nbox","nbo","nbop","nbut","nbux","nbu","nbup","nburx","nbur","nbyt","nbyx","nby","nbyp","nbyrx","nbyr","hmit","hmix","hmi","hmip","hmiex","hmie","hmiep","hmat","hmax","hma","hmap","hmuox","hmuo","hmuop","hmot","hmox","hmo","hmop","hmut","hmux","hmu","hmup","hmurx","hmur","hmyx","hmy","hmyp","hmyrx","hmyr","mit","mix","mi","mip","miex","mie","miep","mat","max","ma","map","muot","muox","muo","muop","mot","mox","mo","mop","mex","me","mut","mux","mu","mup","murx","mur","myt","myx","my","myp","fit","fix","fi","fip","fat","fax","fa","fap","fox","fo","fop","fut","fux","fu","fup","furx","fur","fyt","fyx","fy","fyp","vit","vix","vi","vip","viet","viex","vie","viep","vat","vax","va","vap","vot","vox","vo","vop","vex","vep","vut","vux","vu","vup","vurx","vur","vyt","vyx","vy","vyp","vyrx","vyr"]});var S7=y((Met,C7)=>{C7.exports=["dit","dix","di","dip","diex","die","diep","dat","dax","da","dap","duox","duo","dot","dox","do","dop","dex","de","dep","dut","dux","du","dup","durx","dur","tit","tix","ti","tip","tiex","tie","tiep","tat","tax","ta","tap","tuot","tuox","tuo","tuop","tot","tox","to","top","tex","te","tep","tut","tux","tu","tup","turx","tur","ddit","ddix","ddi","ddip","ddiex","ddie","ddiep","ddat","ddax","dda","ddap","dduox","dduo","dduop","ddot","ddox","ddo","ddop","ddex","dde","ddep","ddut","ddux","ddu","ddup","ddurx","ddur","ndit","ndix","ndi","ndip","ndiex","ndie","ndat","ndax","nda","ndap","ndot","ndox","ndo","ndop","ndex","nde","ndep","ndut","ndux","ndu","ndup","ndurx","ndur","hnit","hnix","hni","hnip","hniet","hniex","hnie","hniep","hnat","hnax","hna","hnap","hnuox","hnuo","hnot","hnox","hnop","hnex","hne","hnep","hnut","nit","nix","ni","nip","niex","nie","niep","nax","na","nap","nuox","nuo","nuop","not","nox","no","nop","nex","ne","nep","nut","nux","nu","nup","nurx","nur","hlit","hlix","hli","hlip","hliex","hlie","hliep","hlat","hlax","hla","hlap","hluox","hluo","hluop","hlox","hlo","hlop","hlex","hle","hlep","hlut","hlux","hlu","hlup","hlurx","hlur","hlyt","hlyx","hly","hlyp","hlyrx","hlyr","lit","lix","li","lip","liet","liex","lie","liep","lat","lax","la","lap","luot","luox","luo","luop","lot","lox","lo","lop","lex","le","lep","lut","lux","lu","lup","lurx","lur","lyt","lyx","ly","lyp","lyrx","lyr","git","gix","gi","gip","giet","giex","gie","giep","gat","gax","ga","gap","guot","guox","guo","guop","got","gox","go","gop","get","gex","ge","gep","gut","gux","gu","gup","gurx","gur","kit","kix","ki","kip","kiex","kie","kiep","kat"]});var T7=y((Oet,D7)=>{D7.exports=["kax","ka","kap","kuox","kuo","kuop","kot","kox","ko","kop","ket","kex","ke","kep","kut","kux","ku","kup","kurx","kur","ggit","ggix","ggi","ggiex","ggie","ggiep","ggat","ggax","gga","ggap","gguot","gguox","gguo","gguop","ggot","ggox","ggo","ggop","gget","ggex","gge","ggep","ggut","ggux","ggu","ggup","ggurx","ggur","mgiex","mgie","mgat","mgax","mga","mgap","mguox","mguo","mguop","mgot","mgox","mgo","mgop","mgex","mge","mgep","mgut","mgux","mgu","mgup","mgurx","mgur","hxit","hxix","hxi","hxip","hxiet","hxiex","hxie","hxiep","hxat","hxax","hxa","hxap","hxuot","hxuox","hxuo","hxuop","hxot","hxox","hxo","hxop","hxex","hxe","hxep","ngiex","ngie","ngiep","ngat","ngax","nga","ngap","nguot","nguox","nguo","ngot","ngox","ngo","ngop","ngex","nge","ngep","hit","hiex","hie","hat","hax","ha","hap","huot","huox","huo","huop","hot","hox","ho","hop","hex","he","hep","wat","wax","wa","wap","wuox","wuo","wuop","wox","wo","wop","wex","we","wep","zit","zix","zi","zip","ziex","zie","ziep","zat","zax","za","zap","zuox","zuo","zuop","zot","zox","zo","zop","zex","ze","zep","zut","zux","zu","zup","zurx","zur","zyt","zyx","zy","zyp","zyrx","zyr","cit","cix","ci","cip","ciet","ciex","cie","ciep","cat","cax","ca","cap","cuox","cuo","cuop","cot","cox","co","cop","cex","ce","cep","cut","cux","cu","cup","curx","cur","cyt","cyx","cy","cyp","cyrx","cyr","zzit","zzix","zzi","zzip","zziet","zziex","zzie","zziep","zzat","zzax","zza","zzap","zzox","zzo","zzop","zzex","zze","zzep","zzux","zzu","zzup","zzurx","zzur","zzyt","zzyx","zzy","zzyp","zzyrx","zzyr","nzit","nzix","nzi","nzip","nziex","nzie","nziep","nzat","nzax","nza","nzap","nzuox","nzuo","nzox","nzop","nzex","nze","nzux","nzu"]});var P7=y((Aet,k7)=>{k7.exports=["nzup","nzurx","nzur","nzyt","nzyx","nzy","nzyp","nzyrx","nzyr","sit","six","si","sip","siex","sie","siep","sat","sax","sa","sap","suox","suo","suop","sot","sox","so","sop","sex","se","sep","sut","sux","su","sup","surx","sur","syt","syx","sy","syp","syrx","syr","ssit","ssix","ssi","ssip","ssiex","ssie","ssiep","ssat","ssax","ssa","ssap","ssot","ssox","sso","ssop","ssex","sse","ssep","ssut","ssux","ssu","ssup","ssyt","ssyx","ssy","ssyp","ssyrx","ssyr","zhat","zhax","zha","zhap","zhuox","zhuo","zhuop","zhot","zhox","zho","zhop","zhet","zhex","zhe","zhep","zhut","zhux","zhu","zhup","zhurx","zhur","zhyt","zhyx","zhy","zhyp","zhyrx","zhyr","chat","chax","cha","chap","chuot","chuox","chuo","chuop","chot","chox","cho","chop","chet","chex","che","chep","chux","chu","chup","churx","chur","chyt","chyx","chy","chyp","chyrx","chyr","rrax","rra","rruox","rruo","rrot","rrox","rro","rrop","rret","rrex","rre","rrep","rrut","rrux","rru","rrup","rrurx","rrur","rryt","rryx","rry","rryp","rryrx","rryr","nrat","nrax","nra","nrap","nrox","nro","nrop","nret","nrex","nre","nrep","nrut","nrux","nru","nrup","nrurx","nrur","nryt","nryx","nry","nryp","nryrx","nryr","shat","shax","sha","shap","shuox","shuo","shuop","shot","shox","sho","shop","shet","shex","she","shep","shut","shux","shu","shup","shurx","shur","shyt","shyx","shy","shyp","shyrx","shyr","rat","rax","ra","rap","ruox","ruo","ruop","rot","rox","ro","rop","rex","re","rep","rut","rux","ru","rup","rurx","rur","ryt","ryx","ry","ryp","ryrx","ryr","jit","jix","ji","jip","jiet","jiex","jie","jiep","juot","juox","juo","juop","jot","jox","jo","jop","jut","jux","ju","jup","jurx","jur","jyt","jyx","jy","jyp","jyrx","jyr","qit","qix","qi","qip"]});var R7=y((Net,E7)=>{E7.exports=["qiet","qiex","qie","qiep","quot","quox","quo","quop","qot","qox","qo","qop","qut","qux","qu","qup","qurx","qur","qyt","qyx","qy","qyp","qyrx","qyr","jjit","jjix","jji","jjip","jjiet","jjiex","jjie","jjiep","jjuox","jjuo","jjuop","jjot","jjox","jjo","jjop","jjut","jjux","jju","jjup","jjurx","jjur","jjyt","jjyx","jjy","jjyp","njit","njix","nji","njip","njiet","njiex","njie","njiep","njuox","njuo","njot","njox","njo","njop","njux","nju","njup","njurx","njur","njyt","njyx","njy","njyp","njyrx","njyr","nyit","nyix","nyi","nyip","nyiet","nyiex","nyie","nyiep","nyuox","nyuo","nyuop","nyot","nyox","nyo","nyop","nyut","nyux","nyu","nyup","xit","xix","xi","xip","xiet","xiex","xie","xiep","xuox","xuo","xot","xox","xo","xop","xyt","xyx","xy","xyp","xyrx","xyr","yit","yix","yi","yip","yiet","yiex","yie","yiep","yuot","yuox","yuo","yuop","yot","yox","yo","yop","yut","yux","yu","yup","yurx","yur","yyt","yyx","yy","yyp","yyrx","yyr","[?]","[?]","[?]","Qot","Li","Kit","Nyip","Cyp","Ssi","Ggop","Gep","Mi","Hxit","Lyr","Bbut","Mop","Yo","Put","Hxuo","Tat","Ga","[?]","[?]","Ddur","Bur","Gguo","Nyop","Tu","Op","Jjut","Zot","Pyt","Hmo","Yit","Vur","Shy","Vep","Za","Jo","[?]","Jjy","Got","Jjie","Wo","Du","Shur","Lie","Cy","Cuop","Cip","Hxop","Shat","[?]","Shop","Che","Zziet","[?]","Ke","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var L7=y((Het,_7)=>{_7.exports=["ga","gag","gagg","gags","gan","ganj","ganh","gad","gal","galg","galm","galb","gals","galt","galp","galh","gam","gab","gabs","gas","gass","gang","gaj","gac","gak","gat","gap","gah","gae","gaeg","gaegg","gaegs","gaen","gaenj","gaenh","gaed","gael","gaelg","gaelm","gaelb","gaels","gaelt","gaelp","gaelh","gaem","gaeb","gaebs","gaes","gaess","gaeng","gaej","gaec","gaek","gaet","gaep","gaeh","gya","gyag","gyagg","gyags","gyan","gyanj","gyanh","gyad","gyal","gyalg","gyalm","gyalb","gyals","gyalt","gyalp","gyalh","gyam","gyab","gyabs","gyas","gyass","gyang","gyaj","gyac","gyak","gyat","gyap","gyah","gyae","gyaeg","gyaegg","gyaegs","gyaen","gyaenj","gyaenh","gyaed","gyael","gyaelg","gyaelm","gyaelb","gyaels","gyaelt","gyaelp","gyaelh","gyaem","gyaeb","gyaebs","gyaes","gyaess","gyaeng","gyaej","gyaec","gyaek","gyaet","gyaep","gyaeh","geo","geog","geogg","geogs","geon","geonj","geonh","geod","geol","geolg","geolm","geolb","geols","geolt","geolp","geolh","geom","geob","geobs","geos","geoss","geong","geoj","geoc","geok","geot","geop","geoh","ge","geg","gegg","gegs","gen","genj","genh","ged","gel","gelg","gelm","gelb","gels","gelt","gelp","gelh","gem","geb","gebs","ges","gess","geng","gej","gec","gek","get","gep","geh","gyeo","gyeog","gyeogg","gyeogs","gyeon","gyeonj","gyeonh","gyeod","gyeol","gyeolg","gyeolm","gyeolb","gyeols","gyeolt","gyeolp","gyeolh","gyeom","gyeob","gyeobs","gyeos","gyeoss","gyeong","gyeoj","gyeoc","gyeok","gyeot","gyeop","gyeoh","gye","gyeg","gyegg","gyegs","gyen","gyenj","gyenh","gyed","gyel","gyelg","gyelm","gyelb","gyels","gyelt","gyelp","gyelh","gyem","gyeb","gyebs","gyes","gyess","gyeng","gyej","gyec","gyek","gyet","gyep","gyeh","go","gog","gogg","gogs","gon","gonj","gonh","god","gol","golg","golm","golb","gols","golt","golp","golh","gom","gob","gobs","gos","goss","gong","goj","goc","gok","got","gop","goh","gwa","gwag","gwagg","gwags"]});var F7=y((qet,I7)=>{I7.exports=["gwan","gwanj","gwanh","gwad","gwal","gwalg","gwalm","gwalb","gwals","gwalt","gwalp","gwalh","gwam","gwab","gwabs","gwas","gwass","gwang","gwaj","gwac","gwak","gwat","gwap","gwah","gwae","gwaeg","gwaegg","gwaegs","gwaen","gwaenj","gwaenh","gwaed","gwael","gwaelg","gwaelm","gwaelb","gwaels","gwaelt","gwaelp","gwaelh","gwaem","gwaeb","gwaebs","gwaes","gwaess","gwaeng","gwaej","gwaec","gwaek","gwaet","gwaep","gwaeh","goe","goeg","goegg","goegs","goen","goenj","goenh","goed","goel","goelg","goelm","goelb","goels","goelt","goelp","goelh","goem","goeb","goebs","goes","goess","goeng","goej","goec","goek","goet","goep","goeh","gyo","gyog","gyogg","gyogs","gyon","gyonj","gyonh","gyod","gyol","gyolg","gyolm","gyolb","gyols","gyolt","gyolp","gyolh","gyom","gyob","gyobs","gyos","gyoss","gyong","gyoj","gyoc","gyok","gyot","gyop","gyoh","gu","gug","gugg","gugs","gun","gunj","gunh","gud","gul","gulg","gulm","gulb","guls","gult","gulp","gulh","gum","gub","gubs","gus","guss","gung","guj","guc","guk","gut","gup","guh","gweo","gweog","gweogg","gweogs","gweon","gweonj","gweonh","gweod","gweol","gweolg","gweolm","gweolb","gweols","gweolt","gweolp","gweolh","gweom","gweob","gweobs","gweos","gweoss","gweong","gweoj","gweoc","gweok","gweot","gweop","gweoh","gwe","gweg","gwegg","gwegs","gwen","gwenj","gwenh","gwed","gwel","gwelg","gwelm","gwelb","gwels","gwelt","gwelp","gwelh","gwem","gweb","gwebs","gwes","gwess","gweng","gwej","gwec","gwek","gwet","gwep","gweh","gwi","gwig","gwigg","gwigs","gwin","gwinj","gwinh","gwid","gwil","gwilg","gwilm","gwilb","gwils","gwilt","gwilp","gwilh","gwim","gwib","gwibs","gwis","gwiss","gwing","gwij","gwic","gwik","gwit","gwip","gwih","gyu","gyug","gyugg","gyugs","gyun","gyunj","gyunh","gyud","gyul","gyulg","gyulm","gyulb","gyuls","gyult","gyulp","gyulh","gyum","gyub","gyubs","gyus","gyuss","gyung","gyuj","gyuc","gyuk","gyut","gyup","gyuh","geu","geug","geugg","geugs","geun","geunj","geunh","geud"]});var M7=y((Bet,j7)=>{j7.exports=["geul","geulg","geulm","geulb","geuls","geult","geulp","geulh","geum","geub","geubs","geus","geuss","geung","geuj","geuc","geuk","geut","geup","geuh","gyi","gyig","gyigg","gyigs","gyin","gyinj","gyinh","gyid","gyil","gyilg","gyilm","gyilb","gyils","gyilt","gyilp","gyilh","gyim","gyib","gyibs","gyis","gyiss","gying","gyij","gyic","gyik","gyit","gyip","gyih","gi","gig","gigg","gigs","gin","ginj","ginh","gid","gil","gilg","gilm","gilb","gils","gilt","gilp","gilh","gim","gib","gibs","gis","giss","ging","gij","gic","gik","git","gip","gih","gga","ggag","ggagg","ggags","ggan","gganj","gganh","ggad","ggal","ggalg","ggalm","ggalb","ggals","ggalt","ggalp","ggalh","ggam","ggab","ggabs","ggas","ggass","ggang","ggaj","ggac","ggak","ggat","ggap","ggah","ggae","ggaeg","ggaegg","ggaegs","ggaen","ggaenj","ggaenh","ggaed","ggael","ggaelg","ggaelm","ggaelb","ggaels","ggaelt","ggaelp","ggaelh","ggaem","ggaeb","ggaebs","ggaes","ggaess","ggaeng","ggaej","ggaec","ggaek","ggaet","ggaep","ggaeh","ggya","ggyag","ggyagg","ggyags","ggyan","ggyanj","ggyanh","ggyad","ggyal","ggyalg","ggyalm","ggyalb","ggyals","ggyalt","ggyalp","ggyalh","ggyam","ggyab","ggyabs","ggyas","ggyass","ggyang","ggyaj","ggyac","ggyak","ggyat","ggyap","ggyah","ggyae","ggyaeg","ggyaegg","ggyaegs","ggyaen","ggyaenj","ggyaenh","ggyaed","ggyael","ggyaelg","ggyaelm","ggyaelb","ggyaels","ggyaelt","ggyaelp","ggyaelh","ggyaem","ggyaeb","ggyaebs","ggyaes","ggyaess","ggyaeng","ggyaej","ggyaec","ggyaek","ggyaet","ggyaep","ggyaeh","ggeo","ggeog","ggeogg","ggeogs","ggeon","ggeonj","ggeonh","ggeod","ggeol","ggeolg","ggeolm","ggeolb","ggeols","ggeolt","ggeolp","ggeolh","ggeom","ggeob","ggeobs","ggeos","ggeoss","ggeong","ggeoj","ggeoc","ggeok","ggeot","ggeop","ggeoh","gge","ggeg","ggegg","ggegs","ggen","ggenj","ggenh","gged","ggel","ggelg","ggelm","ggelb","ggels","ggelt","ggelp","ggelh","ggem","ggeb","ggebs","gges","ggess","ggeng","ggej","ggec","ggek","gget","ggep","ggeh","ggyeo","ggyeog","ggyeogg","ggyeogs","ggyeon","ggyeonj","ggyeonh","ggyeod","ggyeol","ggyeolg","ggyeolm","ggyeolb"]});var A7=y((Wet,O7)=>{O7.exports=["ggyeols","ggyeolt","ggyeolp","ggyeolh","ggyeom","ggyeob","ggyeobs","ggyeos","ggyeoss","ggyeong","ggyeoj","ggyeoc","ggyeok","ggyeot","ggyeop","ggyeoh","ggye","ggyeg","ggyegg","ggyegs","ggyen","ggyenj","ggyenh","ggyed","ggyel","ggyelg","ggyelm","ggyelb","ggyels","ggyelt","ggyelp","ggyelh","ggyem","ggyeb","ggyebs","ggyes","ggyess","ggyeng","ggyej","ggyec","ggyek","ggyet","ggyep","ggyeh","ggo","ggog","ggogg","ggogs","ggon","ggonj","ggonh","ggod","ggol","ggolg","ggolm","ggolb","ggols","ggolt","ggolp","ggolh","ggom","ggob","ggobs","ggos","ggoss","ggong","ggoj","ggoc","ggok","ggot","ggop","ggoh","ggwa","ggwag","ggwagg","ggwags","ggwan","ggwanj","ggwanh","ggwad","ggwal","ggwalg","ggwalm","ggwalb","ggwals","ggwalt","ggwalp","ggwalh","ggwam","ggwab","ggwabs","ggwas","ggwass","ggwang","ggwaj","ggwac","ggwak","ggwat","ggwap","ggwah","ggwae","ggwaeg","ggwaegg","ggwaegs","ggwaen","ggwaenj","ggwaenh","ggwaed","ggwael","ggwaelg","ggwaelm","ggwaelb","ggwaels","ggwaelt","ggwaelp","ggwaelh","ggwaem","ggwaeb","ggwaebs","ggwaes","ggwaess","ggwaeng","ggwaej","ggwaec","ggwaek","ggwaet","ggwaep","ggwaeh","ggoe","ggoeg","ggoegg","ggoegs","ggoen","ggoenj","ggoenh","ggoed","ggoel","ggoelg","ggoelm","ggoelb","ggoels","ggoelt","ggoelp","ggoelh","ggoem","ggoeb","ggoebs","ggoes","ggoess","ggoeng","ggoej","ggoec","ggoek","ggoet","ggoep","ggoeh","ggyo","ggyog","ggyogg","ggyogs","ggyon","ggyonj","ggyonh","ggyod","ggyol","ggyolg","ggyolm","ggyolb","ggyols","ggyolt","ggyolp","ggyolh","ggyom","ggyob","ggyobs","ggyos","ggyoss","ggyong","ggyoj","ggyoc","ggyok","ggyot","ggyop","ggyoh","ggu","ggug","ggugg","ggugs","ggun","ggunj","ggunh","ggud","ggul","ggulg","ggulm","ggulb","gguls","ggult","ggulp","ggulh","ggum","ggub","ggubs","ggus","gguss","ggung","gguj","gguc","gguk","ggut","ggup","gguh","ggweo","ggweog","ggweogg","ggweogs","ggweon","ggweonj","ggweonh","ggweod","ggweol","ggweolg","ggweolm","ggweolb","ggweols","ggweolt","ggweolp","ggweolh","ggweom","ggweob","ggweobs","ggweos","ggweoss","ggweong","ggweoj","ggweoc","ggweok","ggweot","ggweop","ggweoh","ggwe","ggweg","ggwegg","ggwegs","ggwen","ggwenj","ggwenh","ggwed","ggwel","ggwelg","ggwelm","ggwelb","ggwels","ggwelt","ggwelp","ggwelh"]});var H7=y((Yet,N7)=>{N7.exports=["ggwem","ggweb","ggwebs","ggwes","ggwess","ggweng","ggwej","ggwec","ggwek","ggwet","ggwep","ggweh","ggwi","ggwig","ggwigg","ggwigs","ggwin","ggwinj","ggwinh","ggwid","ggwil","ggwilg","ggwilm","ggwilb","ggwils","ggwilt","ggwilp","ggwilh","ggwim","ggwib","ggwibs","ggwis","ggwiss","ggwing","ggwij","ggwic","ggwik","ggwit","ggwip","ggwih","ggyu","ggyug","ggyugg","ggyugs","ggyun","ggyunj","ggyunh","ggyud","ggyul","ggyulg","ggyulm","ggyulb","ggyuls","ggyult","ggyulp","ggyulh","ggyum","ggyub","ggyubs","ggyus","ggyuss","ggyung","ggyuj","ggyuc","ggyuk","ggyut","ggyup","ggyuh","ggeu","ggeug","ggeugg","ggeugs","ggeun","ggeunj","ggeunh","ggeud","ggeul","ggeulg","ggeulm","ggeulb","ggeuls","ggeult","ggeulp","ggeulh","ggeum","ggeub","ggeubs","ggeus","ggeuss","ggeung","ggeuj","ggeuc","ggeuk","ggeut","ggeup","ggeuh","ggyi","ggyig","ggyigg","ggyigs","ggyin","ggyinj","ggyinh","ggyid","ggyil","ggyilg","ggyilm","ggyilb","ggyils","ggyilt","ggyilp","ggyilh","ggyim","ggyib","ggyibs","ggyis","ggyiss","ggying","ggyij","ggyic","ggyik","ggyit","ggyip","ggyih","ggi","ggig","ggigg","ggigs","ggin","gginj","gginh","ggid","ggil","ggilg","ggilm","ggilb","ggils","ggilt","ggilp","ggilh","ggim","ggib","ggibs","ggis","ggiss","gging","ggij","ggic","ggik","ggit","ggip","ggih","na","nag","nagg","nags","nan","nanj","nanh","nad","nal","nalg","nalm","nalb","nals","nalt","nalp","nalh","nam","nab","nabs","nas","nass","nang","naj","nac","nak","nat","nap","nah","nae","naeg","naegg","naegs","naen","naenj","naenh","naed","nael","naelg","naelm","naelb","naels","naelt","naelp","naelh","naem","naeb","naebs","naes","naess","naeng","naej","naec","naek","naet","naep","naeh","nya","nyag","nyagg","nyags","nyan","nyanj","nyanh","nyad","nyal","nyalg","nyalm","nyalb","nyals","nyalt","nyalp","nyalh","nyam","nyab","nyabs","nyas","nyass","nyang","nyaj","nyac","nyak","nyat","nyap","nyah","nyae","nyaeg","nyaegg","nyaegs","nyaen","nyaenj","nyaenh","nyaed","nyael","nyaelg","nyaelm","nyaelb","nyaels","nyaelt","nyaelp","nyaelh","nyaem","nyaeb","nyaebs","nyaes"]});var B7=y((Zet,q7)=>{q7.exports=["nyaess","nyaeng","nyaej","nyaec","nyaek","nyaet","nyaep","nyaeh","neo","neog","neogg","neogs","neon","neonj","neonh","neod","neol","neolg","neolm","neolb","neols","neolt","neolp","neolh","neom","neob","neobs","neos","neoss","neong","neoj","neoc","neok","neot","neop","neoh","ne","neg","negg","negs","nen","nenj","nenh","ned","nel","nelg","nelm","nelb","nels","nelt","nelp","nelh","nem","neb","nebs","nes","ness","neng","nej","nec","nek","net","nep","neh","nyeo","nyeog","nyeogg","nyeogs","nyeon","nyeonj","nyeonh","nyeod","nyeol","nyeolg","nyeolm","nyeolb","nyeols","nyeolt","nyeolp","nyeolh","nyeom","nyeob","nyeobs","nyeos","nyeoss","nyeong","nyeoj","nyeoc","nyeok","nyeot","nyeop","nyeoh","nye","nyeg","nyegg","nyegs","nyen","nyenj","nyenh","nyed","nyel","nyelg","nyelm","nyelb","nyels","nyelt","nyelp","nyelh","nyem","nyeb","nyebs","nyes","nyess","nyeng","nyej","nyec","nyek","nyet","nyep","nyeh","no","nog","nogg","nogs","non","nonj","nonh","nod","nol","nolg","nolm","nolb","nols","nolt","nolp","nolh","nom","nob","nobs","nos","noss","nong","noj","noc","nok","not","nop","noh","nwa","nwag","nwagg","nwags","nwan","nwanj","nwanh","nwad","nwal","nwalg","nwalm","nwalb","nwals","nwalt","nwalp","nwalh","nwam","nwab","nwabs","nwas","nwass","nwang","nwaj","nwac","nwak","nwat","nwap","nwah","nwae","nwaeg","nwaegg","nwaegs","nwaen","nwaenj","nwaenh","nwaed","nwael","nwaelg","nwaelm","nwaelb","nwaels","nwaelt","nwaelp","nwaelh","nwaem","nwaeb","nwaebs","nwaes","nwaess","nwaeng","nwaej","nwaec","nwaek","nwaet","nwaep","nwaeh","noe","noeg","noegg","noegs","noen","noenj","noenh","noed","noel","noelg","noelm","noelb","noels","noelt","noelp","noelh","noem","noeb","noebs","noes","noess","noeng","noej","noec","noek","noet","noep","noeh","nyo","nyog","nyogg","nyogs","nyon","nyonj","nyonh","nyod","nyol","nyolg","nyolm","nyolb","nyols","nyolt","nyolp","nyolh","nyom","nyob","nyobs","nyos","nyoss","nyong","nyoj","nyoc"]});var Y7=y((Jet,W7)=>{W7.exports=["nyok","nyot","nyop","nyoh","nu","nug","nugg","nugs","nun","nunj","nunh","nud","nul","nulg","nulm","nulb","nuls","nult","nulp","nulh","num","nub","nubs","nus","nuss","nung","nuj","nuc","nuk","nut","nup","nuh","nweo","nweog","nweogg","nweogs","nweon","nweonj","nweonh","nweod","nweol","nweolg","nweolm","nweolb","nweols","nweolt","nweolp","nweolh","nweom","nweob","nweobs","nweos","nweoss","nweong","nweoj","nweoc","nweok","nweot","nweop","nweoh","nwe","nweg","nwegg","nwegs","nwen","nwenj","nwenh","nwed","nwel","nwelg","nwelm","nwelb","nwels","nwelt","nwelp","nwelh","nwem","nweb","nwebs","nwes","nwess","nweng","nwej","nwec","nwek","nwet","nwep","nweh","nwi","nwig","nwigg","nwigs","nwin","nwinj","nwinh","nwid","nwil","nwilg","nwilm","nwilb","nwils","nwilt","nwilp","nwilh","nwim","nwib","nwibs","nwis","nwiss","nwing","nwij","nwic","nwik","nwit","nwip","nwih","nyu","nyug","nyugg","nyugs","nyun","nyunj","nyunh","nyud","nyul","nyulg","nyulm","nyulb","nyuls","nyult","nyulp","nyulh","nyum","nyub","nyubs","nyus","nyuss","nyung","nyuj","nyuc","nyuk","nyut","nyup","nyuh","neu","neug","neugg","neugs","neun","neunj","neunh","neud","neul","neulg","neulm","neulb","neuls","neult","neulp","neulh","neum","neub","neubs","neus","neuss","neung","neuj","neuc","neuk","neut","neup","neuh","nyi","nyig","nyigg","nyigs","nyin","nyinj","nyinh","nyid","nyil","nyilg","nyilm","nyilb","nyils","nyilt","nyilp","nyilh","nyim","nyib","nyibs","nyis","nyiss","nying","nyij","nyic","nyik","nyit","nyip","nyih","ni","nig","nigg","nigs","nin","ninj","ninh","nid","nil","nilg","nilm","nilb","nils","nilt","nilp","nilh","nim","nib","nibs","nis","niss","ning","nij","nic","nik","nit","nip","nih","da","dag","dagg","dags","dan","danj","danh","dad","dal","dalg","dalm","dalb","dals","dalt","dalp","dalh","dam","dab","dabs","das","dass","dang","daj","dac","dak","dat","dap","dah"]});var J7=y(($et,Z7)=>{Z7.exports=["dae","daeg","daegg","daegs","daen","daenj","daenh","daed","dael","daelg","daelm","daelb","daels","daelt","daelp","daelh","daem","daeb","daebs","daes","daess","daeng","daej","daec","daek","daet","daep","daeh","dya","dyag","dyagg","dyags","dyan","dyanj","dyanh","dyad","dyal","dyalg","dyalm","dyalb","dyals","dyalt","dyalp","dyalh","dyam","dyab","dyabs","dyas","dyass","dyang","dyaj","dyac","dyak","dyat","dyap","dyah","dyae","dyaeg","dyaegg","dyaegs","dyaen","dyaenj","dyaenh","dyaed","dyael","dyaelg","dyaelm","dyaelb","dyaels","dyaelt","dyaelp","dyaelh","dyaem","dyaeb","dyaebs","dyaes","dyaess","dyaeng","dyaej","dyaec","dyaek","dyaet","dyaep","dyaeh","deo","deog","deogg","deogs","deon","deonj","deonh","deod","deol","deolg","deolm","deolb","deols","deolt","deolp","deolh","deom","deob","deobs","deos","deoss","deong","deoj","deoc","deok","deot","deop","deoh","de","deg","degg","degs","den","denj","denh","ded","del","delg","delm","delb","dels","delt","delp","delh","dem","deb","debs","des","dess","deng","dej","dec","dek","det","dep","deh","dyeo","dyeog","dyeogg","dyeogs","dyeon","dyeonj","dyeonh","dyeod","dyeol","dyeolg","dyeolm","dyeolb","dyeols","dyeolt","dyeolp","dyeolh","dyeom","dyeob","dyeobs","dyeos","dyeoss","dyeong","dyeoj","dyeoc","dyeok","dyeot","dyeop","dyeoh","dye","dyeg","dyegg","dyegs","dyen","dyenj","dyenh","dyed","dyel","dyelg","dyelm","dyelb","dyels","dyelt","dyelp","dyelh","dyem","dyeb","dyebs","dyes","dyess","dyeng","dyej","dyec","dyek","dyet","dyep","dyeh","do","dog","dogg","dogs","don","donj","donh","dod","dol","dolg","dolm","dolb","dols","dolt","dolp","dolh","dom","dob","dobs","dos","doss","dong","doj","doc","dok","dot","dop","doh","dwa","dwag","dwagg","dwags","dwan","dwanj","dwanh","dwad","dwal","dwalg","dwalm","dwalb","dwals","dwalt","dwalp","dwalh","dwam","dwab","dwabs","dwas","dwass","dwang","dwaj","dwac","dwak","dwat","dwap","dwah","dwae","dwaeg","dwaegg","dwaegs"]});var U7=y((Uet,$7)=>{$7.exports=["dwaen","dwaenj","dwaenh","dwaed","dwael","dwaelg","dwaelm","dwaelb","dwaels","dwaelt","dwaelp","dwaelh","dwaem","dwaeb","dwaebs","dwaes","dwaess","dwaeng","dwaej","dwaec","dwaek","dwaet","dwaep","dwaeh","doe","doeg","doegg","doegs","doen","doenj","doenh","doed","doel","doelg","doelm","doelb","doels","doelt","doelp","doelh","doem","doeb","doebs","does","doess","doeng","doej","doec","doek","doet","doep","doeh","dyo","dyog","dyogg","dyogs","dyon","dyonj","dyonh","dyod","dyol","dyolg","dyolm","dyolb","dyols","dyolt","dyolp","dyolh","dyom","dyob","dyobs","dyos","dyoss","dyong","dyoj","dyoc","dyok","dyot","dyop","dyoh","du","dug","dugg","dugs","dun","dunj","dunh","dud","dul","dulg","dulm","dulb","duls","dult","dulp","dulh","dum","dub","dubs","dus","duss","dung","duj","duc","duk","dut","dup","duh","dweo","dweog","dweogg","dweogs","dweon","dweonj","dweonh","dweod","dweol","dweolg","dweolm","dweolb","dweols","dweolt","dweolp","dweolh","dweom","dweob","dweobs","dweos","dweoss","dweong","dweoj","dweoc","dweok","dweot","dweop","dweoh","dwe","dweg","dwegg","dwegs","dwen","dwenj","dwenh","dwed","dwel","dwelg","dwelm","dwelb","dwels","dwelt","dwelp","dwelh","dwem","dweb","dwebs","dwes","dwess","dweng","dwej","dwec","dwek","dwet","dwep","dweh","dwi","dwig","dwigg","dwigs","dwin","dwinj","dwinh","dwid","dwil","dwilg","dwilm","dwilb","dwils","dwilt","dwilp","dwilh","dwim","dwib","dwibs","dwis","dwiss","dwing","dwij","dwic","dwik","dwit","dwip","dwih","dyu","dyug","dyugg","dyugs","dyun","dyunj","dyunh","dyud","dyul","dyulg","dyulm","dyulb","dyuls","dyult","dyulp","dyulh","dyum","dyub","dyubs","dyus","dyuss","dyung","dyuj","dyuc","dyuk","dyut","dyup","dyuh","deu","deug","deugg","deugs","deun","deunj","deunh","deud","deul","deulg","deulm","deulb","deuls","deult","deulp","deulh","deum","deub","deubs","deus","deuss","deung","deuj","deuc","deuk","deut","deup","deuh","dyi","dyig","dyigg","dyigs","dyin","dyinj","dyinh","dyid"]});var G7=y((Xet,X7)=>{X7.exports=["dyil","dyilg","dyilm","dyilb","dyils","dyilt","dyilp","dyilh","dyim","dyib","dyibs","dyis","dyiss","dying","dyij","dyic","dyik","dyit","dyip","dyih","di","dig","digg","digs","din","dinj","dinh","did","dil","dilg","dilm","dilb","dils","dilt","dilp","dilh","dim","dib","dibs","dis","diss","ding","dij","dic","dik","dit","dip","dih","dda","ddag","ddagg","ddags","ddan","ddanj","ddanh","ddad","ddal","ddalg","ddalm","ddalb","ddals","ddalt","ddalp","ddalh","ddam","ddab","ddabs","ddas","ddass","ddang","ddaj","ddac","ddak","ddat","ddap","ddah","ddae","ddaeg","ddaegg","ddaegs","ddaen","ddaenj","ddaenh","ddaed","ddael","ddaelg","ddaelm","ddaelb","ddaels","ddaelt","ddaelp","ddaelh","ddaem","ddaeb","ddaebs","ddaes","ddaess","ddaeng","ddaej","ddaec","ddaek","ddaet","ddaep","ddaeh","ddya","ddyag","ddyagg","ddyags","ddyan","ddyanj","ddyanh","ddyad","ddyal","ddyalg","ddyalm","ddyalb","ddyals","ddyalt","ddyalp","ddyalh","ddyam","ddyab","ddyabs","ddyas","ddyass","ddyang","ddyaj","ddyac","ddyak","ddyat","ddyap","ddyah","ddyae","ddyaeg","ddyaegg","ddyaegs","ddyaen","ddyaenj","ddyaenh","ddyaed","ddyael","ddyaelg","ddyaelm","ddyaelb","ddyaels","ddyaelt","ddyaelp","ddyaelh","ddyaem","ddyaeb","ddyaebs","ddyaes","ddyaess","ddyaeng","ddyaej","ddyaec","ddyaek","ddyaet","ddyaep","ddyaeh","ddeo","ddeog","ddeogg","ddeogs","ddeon","ddeonj","ddeonh","ddeod","ddeol","ddeolg","ddeolm","ddeolb","ddeols","ddeolt","ddeolp","ddeolh","ddeom","ddeob","ddeobs","ddeos","ddeoss","ddeong","ddeoj","ddeoc","ddeok","ddeot","ddeop","ddeoh","dde","ddeg","ddegg","ddegs","dden","ddenj","ddenh","dded","ddel","ddelg","ddelm","ddelb","ddels","ddelt","ddelp","ddelh","ddem","ddeb","ddebs","ddes","ddess","ddeng","ddej","ddec","ddek","ddet","ddep","ddeh","ddyeo","ddyeog","ddyeogg","ddyeogs","ddyeon","ddyeonj","ddyeonh","ddyeod","ddyeol","ddyeolg","ddyeolm","ddyeolb","ddyeols","ddyeolt","ddyeolp","ddyeolh","ddyeom","ddyeob","ddyeobs","ddyeos","ddyeoss","ddyeong","ddyeoj","ddyeoc","ddyeok","ddyeot","ddyeop","ddyeoh","ddye","ddyeg","ddyegg","ddyegs","ddyen","ddyenj","ddyenh","ddyed","ddyel","ddyelg","ddyelm","ddyelb"]});var K7=y((Get,z7)=>{z7.exports=["ddyels","ddyelt","ddyelp","ddyelh","ddyem","ddyeb","ddyebs","ddyes","ddyess","ddyeng","ddyej","ddyec","ddyek","ddyet","ddyep","ddyeh","ddo","ddog","ddogg","ddogs","ddon","ddonj","ddonh","ddod","ddol","ddolg","ddolm","ddolb","ddols","ddolt","ddolp","ddolh","ddom","ddob","ddobs","ddos","ddoss","ddong","ddoj","ddoc","ddok","ddot","ddop","ddoh","ddwa","ddwag","ddwagg","ddwags","ddwan","ddwanj","ddwanh","ddwad","ddwal","ddwalg","ddwalm","ddwalb","ddwals","ddwalt","ddwalp","ddwalh","ddwam","ddwab","ddwabs","ddwas","ddwass","ddwang","ddwaj","ddwac","ddwak","ddwat","ddwap","ddwah","ddwae","ddwaeg","ddwaegg","ddwaegs","ddwaen","ddwaenj","ddwaenh","ddwaed","ddwael","ddwaelg","ddwaelm","ddwaelb","ddwaels","ddwaelt","ddwaelp","ddwaelh","ddwaem","ddwaeb","ddwaebs","ddwaes","ddwaess","ddwaeng","ddwaej","ddwaec","ddwaek","ddwaet","ddwaep","ddwaeh","ddoe","ddoeg","ddoegg","ddoegs","ddoen","ddoenj","ddoenh","ddoed","ddoel","ddoelg","ddoelm","ddoelb","ddoels","ddoelt","ddoelp","ddoelh","ddoem","ddoeb","ddoebs","ddoes","ddoess","ddoeng","ddoej","ddoec","ddoek","ddoet","ddoep","ddoeh","ddyo","ddyog","ddyogg","ddyogs","ddyon","ddyonj","ddyonh","ddyod","ddyol","ddyolg","ddyolm","ddyolb","ddyols","ddyolt","ddyolp","ddyolh","ddyom","ddyob","ddyobs","ddyos","ddyoss","ddyong","ddyoj","ddyoc","ddyok","ddyot","ddyop","ddyoh","ddu","ddug","ddugg","ddugs","ddun","ddunj","ddunh","ddud","ddul","ddulg","ddulm","ddulb","dduls","ddult","ddulp","ddulh","ddum","ddub","ddubs","ddus","dduss","ddung","dduj","dduc","dduk","ddut","ddup","dduh","ddweo","ddweog","ddweogg","ddweogs","ddweon","ddweonj","ddweonh","ddweod","ddweol","ddweolg","ddweolm","ddweolb","ddweols","ddweolt","ddweolp","ddweolh","ddweom","ddweob","ddweobs","ddweos","ddweoss","ddweong","ddweoj","ddweoc","ddweok","ddweot","ddweop","ddweoh","ddwe","ddweg","ddwegg","ddwegs","ddwen","ddwenj","ddwenh","ddwed","ddwel","ddwelg","ddwelm","ddwelb","ddwels","ddwelt","ddwelp","ddwelh","ddwem","ddweb","ddwebs","ddwes","ddwess","ddweng","ddwej","ddwec","ddwek","ddwet","ddwep","ddweh","ddwi","ddwig","ddwigg","ddwigs","ddwin","ddwinj","ddwinh","ddwid","ddwil","ddwilg","ddwilm","ddwilb","ddwils","ddwilt","ddwilp","ddwilh"]});var V7=y((zet,Q7)=>{Q7.exports=["ddwim","ddwib","ddwibs","ddwis","ddwiss","ddwing","ddwij","ddwic","ddwik","ddwit","ddwip","ddwih","ddyu","ddyug","ddyugg","ddyugs","ddyun","ddyunj","ddyunh","ddyud","ddyul","ddyulg","ddyulm","ddyulb","ddyuls","ddyult","ddyulp","ddyulh","ddyum","ddyub","ddyubs","ddyus","ddyuss","ddyung","ddyuj","ddyuc","ddyuk","ddyut","ddyup","ddyuh","ddeu","ddeug","ddeugg","ddeugs","ddeun","ddeunj","ddeunh","ddeud","ddeul","ddeulg","ddeulm","ddeulb","ddeuls","ddeult","ddeulp","ddeulh","ddeum","ddeub","ddeubs","ddeus","ddeuss","ddeung","ddeuj","ddeuc","ddeuk","ddeut","ddeup","ddeuh","ddyi","ddyig","ddyigg","ddyigs","ddyin","ddyinj","ddyinh","ddyid","ddyil","ddyilg","ddyilm","ddyilb","ddyils","ddyilt","ddyilp","ddyilh","ddyim","ddyib","ddyibs","ddyis","ddyiss","ddying","ddyij","ddyic","ddyik","ddyit","ddyip","ddyih","ddi","ddig","ddigg","ddigs","ddin","ddinj","ddinh","ddid","ddil","ddilg","ddilm","ddilb","ddils","ddilt","ddilp","ddilh","ddim","ddib","ddibs","ddis","ddiss","dding","ddij","ddic","ddik","ddit","ddip","ddih","ra","rag","ragg","rags","ran","ranj","ranh","rad","ral","ralg","ralm","ralb","rals","ralt","ralp","ralh","ram","rab","rabs","ras","rass","rang","raj","rac","rak","rat","rap","rah","rae","raeg","raegg","raegs","raen","raenj","raenh","raed","rael","raelg","raelm","raelb","raels","raelt","raelp","raelh","raem","raeb","raebs","raes","raess","raeng","raej","raec","raek","raet","raep","raeh","rya","ryag","ryagg","ryags","ryan","ryanj","ryanh","ryad","ryal","ryalg","ryalm","ryalb","ryals","ryalt","ryalp","ryalh","ryam","ryab","ryabs","ryas","ryass","ryang","ryaj","ryac","ryak","ryat","ryap","ryah","ryae","ryaeg","ryaegg","ryaegs","ryaen","ryaenj","ryaenh","ryaed","ryael","ryaelg","ryaelm","ryaelb","ryaels","ryaelt","ryaelp","ryaelh","ryaem","ryaeb","ryaebs","ryaes","ryaess","ryaeng","ryaej","ryaec","ryaek","ryaet","ryaep","ryaeh","reo","reog","reogg","reogs","reon","reonj","reonh","reod","reol","reolg","reolm","reolb","reols","reolt","reolp","reolh","reom","reob","reobs","reos"]});var t9=y((Ket,e9)=>{e9.exports=["reoss","reong","reoj","reoc","reok","reot","reop","reoh","re","reg","regg","regs","ren","renj","renh","red","rel","relg","relm","relb","rels","relt","relp","relh","rem","reb","rebs","res","ress","reng","rej","rec","rek","ret","rep","reh","ryeo","ryeog","ryeogg","ryeogs","ryeon","ryeonj","ryeonh","ryeod","ryeol","ryeolg","ryeolm","ryeolb","ryeols","ryeolt","ryeolp","ryeolh","ryeom","ryeob","ryeobs","ryeos","ryeoss","ryeong","ryeoj","ryeoc","ryeok","ryeot","ryeop","ryeoh","rye","ryeg","ryegg","ryegs","ryen","ryenj","ryenh","ryed","ryel","ryelg","ryelm","ryelb","ryels","ryelt","ryelp","ryelh","ryem","ryeb","ryebs","ryes","ryess","ryeng","ryej","ryec","ryek","ryet","ryep","ryeh","ro","rog","rogg","rogs","ron","ronj","ronh","rod","rol","rolg","rolm","rolb","rols","rolt","rolp","rolh","rom","rob","robs","ros","ross","rong","roj","roc","rok","rot","rop","roh","rwa","rwag","rwagg","rwags","rwan","rwanj","rwanh","rwad","rwal","rwalg","rwalm","rwalb","rwals","rwalt","rwalp","rwalh","rwam","rwab","rwabs","rwas","rwass","rwang","rwaj","rwac","rwak","rwat","rwap","rwah","rwae","rwaeg","rwaegg","rwaegs","rwaen","rwaenj","rwaenh","rwaed","rwael","rwaelg","rwaelm","rwaelb","rwaels","rwaelt","rwaelp","rwaelh","rwaem","rwaeb","rwaebs","rwaes","rwaess","rwaeng","rwaej","rwaec","rwaek","rwaet","rwaep","rwaeh","roe","roeg","roegg","roegs","roen","roenj","roenh","roed","roel","roelg","roelm","roelb","roels","roelt","roelp","roelh","roem","roeb","roebs","roes","roess","roeng","roej","roec","roek","roet","roep","roeh","ryo","ryog","ryogg","ryogs","ryon","ryonj","ryonh","ryod","ryol","ryolg","ryolm","ryolb","ryols","ryolt","ryolp","ryolh","ryom","ryob","ryobs","ryos","ryoss","ryong","ryoj","ryoc","ryok","ryot","ryop","ryoh","ru","rug","rugg","rugs","run","runj","runh","rud","rul","rulg","rulm","rulb","ruls","rult","rulp","rulh","rum","rub","rubs","rus","russ","rung","ruj","ruc"]});var n9=y((Qet,i9)=>{i9.exports=["ruk","rut","rup","ruh","rweo","rweog","rweogg","rweogs","rweon","rweonj","rweonh","rweod","rweol","rweolg","rweolm","rweolb","rweols","rweolt","rweolp","rweolh","rweom","rweob","rweobs","rweos","rweoss","rweong","rweoj","rweoc","rweok","rweot","rweop","rweoh","rwe","rweg","rwegg","rwegs","rwen","rwenj","rwenh","rwed","rwel","rwelg","rwelm","rwelb","rwels","rwelt","rwelp","rwelh","rwem","rweb","rwebs","rwes","rwess","rweng","rwej","rwec","rwek","rwet","rwep","rweh","rwi","rwig","rwigg","rwigs","rwin","rwinj","rwinh","rwid","rwil","rwilg","rwilm","rwilb","rwils","rwilt","rwilp","rwilh","rwim","rwib","rwibs","rwis","rwiss","rwing","rwij","rwic","rwik","rwit","rwip","rwih","ryu","ryug","ryugg","ryugs","ryun","ryunj","ryunh","ryud","ryul","ryulg","ryulm","ryulb","ryuls","ryult","ryulp","ryulh","ryum","ryub","ryubs","ryus","ryuss","ryung","ryuj","ryuc","ryuk","ryut","ryup","ryuh","reu","reug","reugg","reugs","reun","reunj","reunh","reud","reul","reulg","reulm","reulb","reuls","reult","reulp","reulh","reum","reub","reubs","reus","reuss","reung","reuj","reuc","reuk","reut","reup","reuh","ryi","ryig","ryigg","ryigs","ryin","ryinj","ryinh","ryid","ryil","ryilg","ryilm","ryilb","ryils","ryilt","ryilp","ryilh","ryim","ryib","ryibs","ryis","ryiss","rying","ryij","ryic","ryik","ryit","ryip","ryih","ri","rig","rigg","rigs","rin","rinj","rinh","rid","ril","rilg","rilm","rilb","rils","rilt","rilp","rilh","rim","rib","ribs","ris","riss","ring","rij","ric","rik","rit","rip","rih","ma","mag","magg","mags","man","manj","manh","mad","mal","malg","malm","malb","mals","malt","malp","malh","mam","mab","mabs","mas","mass","mang","maj","mac","mak","mat","map","mah","mae","maeg","maegg","maegs","maen","maenj","maenh","maed","mael","maelg","maelm","maelb","maels","maelt","maelp","maelh","maem","maeb","maebs","maes","maess","maeng","maej","maec","maek","maet","maep","maeh"]});var o9=y((Vet,r9)=>{r9.exports=["mya","myag","myagg","myags","myan","myanj","myanh","myad","myal","myalg","myalm","myalb","myals","myalt","myalp","myalh","myam","myab","myabs","myas","myass","myang","myaj","myac","myak","myat","myap","myah","myae","myaeg","myaegg","myaegs","myaen","myaenj","myaenh","myaed","myael","myaelg","myaelm","myaelb","myaels","myaelt","myaelp","myaelh","myaem","myaeb","myaebs","myaes","myaess","myaeng","myaej","myaec","myaek","myaet","myaep","myaeh","meo","meog","meogg","meogs","meon","meonj","meonh","meod","meol","meolg","meolm","meolb","meols","meolt","meolp","meolh","meom","meob","meobs","meos","meoss","meong","meoj","meoc","meok","meot","meop","meoh","me","meg","megg","megs","men","menj","menh","med","mel","melg","melm","melb","mels","melt","melp","melh","mem","meb","mebs","mes","mess","meng","mej","mec","mek","met","mep","meh","myeo","myeog","myeogg","myeogs","myeon","myeonj","myeonh","myeod","myeol","myeolg","myeolm","myeolb","myeols","myeolt","myeolp","myeolh","myeom","myeob","myeobs","myeos","myeoss","myeong","myeoj","myeoc","myeok","myeot","myeop","myeoh","mye","myeg","myegg","myegs","myen","myenj","myenh","myed","myel","myelg","myelm","myelb","myels","myelt","myelp","myelh","myem","myeb","myebs","myes","myess","myeng","myej","myec","myek","myet","myep","myeh","mo","mog","mogg","mogs","mon","monj","monh","mod","mol","molg","molm","molb","mols","molt","molp","molh","mom","mob","mobs","mos","moss","mong","moj","moc","mok","mot","mop","moh","mwa","mwag","mwagg","mwags","mwan","mwanj","mwanh","mwad","mwal","mwalg","mwalm","mwalb","mwals","mwalt","mwalp","mwalh","mwam","mwab","mwabs","mwas","mwass","mwang","mwaj","mwac","mwak","mwat","mwap","mwah","mwae","mwaeg","mwaegg","mwaegs","mwaen","mwaenj","mwaenh","mwaed","mwael","mwaelg","mwaelm","mwaelb","mwaels","mwaelt","mwaelp","mwaelh","mwaem","mwaeb","mwaebs","mwaes","mwaess","mwaeng","mwaej","mwaec","mwaek","mwaet","mwaep","mwaeh","moe","moeg","moegg","moegs"]});var a9=y((ett,s9)=>{s9.exports=["moen","moenj","moenh","moed","moel","moelg","moelm","moelb","moels","moelt","moelp","moelh","moem","moeb","moebs","moes","moess","moeng","moej","moec","moek","moet","moep","moeh","myo","myog","myogg","myogs","myon","myonj","myonh","myod","myol","myolg","myolm","myolb","myols","myolt","myolp","myolh","myom","myob","myobs","myos","myoss","myong","myoj","myoc","myok","myot","myop","myoh","mu","mug","mugg","mugs","mun","munj","munh","mud","mul","mulg","mulm","mulb","muls","mult","mulp","mulh","mum","mub","mubs","mus","muss","mung","muj","muc","muk","mut","mup","muh","mweo","mweog","mweogg","mweogs","mweon","mweonj","mweonh","mweod","mweol","mweolg","mweolm","mweolb","mweols","mweolt","mweolp","mweolh","mweom","mweob","mweobs","mweos","mweoss","mweong","mweoj","mweoc","mweok","mweot","mweop","mweoh","mwe","mweg","mwegg","mwegs","mwen","mwenj","mwenh","mwed","mwel","mwelg","mwelm","mwelb","mwels","mwelt","mwelp","mwelh","mwem","mweb","mwebs","mwes","mwess","mweng","mwej","mwec","mwek","mwet","mwep","mweh","mwi","mwig","mwigg","mwigs","mwin","mwinj","mwinh","mwid","mwil","mwilg","mwilm","mwilb","mwils","mwilt","mwilp","mwilh","mwim","mwib","mwibs","mwis","mwiss","mwing","mwij","mwic","mwik","mwit","mwip","mwih","myu","myug","myugg","myugs","myun","myunj","myunh","myud","myul","myulg","myulm","myulb","myuls","myult","myulp","myulh","myum","myub","myubs","myus","myuss","myung","myuj","myuc","myuk","myut","myup","myuh","meu","meug","meugg","meugs","meun","meunj","meunh","meud","meul","meulg","meulm","meulb","meuls","meult","meulp","meulh","meum","meub","meubs","meus","meuss","meung","meuj","meuc","meuk","meut","meup","meuh","myi","myig","myigg","myigs","myin","myinj","myinh","myid","myil","myilg","myilm","myilb","myils","myilt","myilp","myilh","myim","myib","myibs","myis","myiss","mying","myij","myic","myik","myit","myip","myih","mi","mig","migg","migs","min","minj","minh","mid"]});var u9=y((ttt,l9)=>{l9.exports=["mil","milg","milm","milb","mils","milt","milp","milh","mim","mib","mibs","mis","miss","ming","mij","mic","mik","mit","mip","mih","ba","bag","bagg","bags","ban","banj","banh","bad","bal","balg","balm","balb","bals","balt","balp","balh","bam","bab","babs","bas","bass","bang","baj","bac","bak","bat","bap","bah","bae","baeg","baegg","baegs","baen","baenj","baenh","baed","bael","baelg","baelm","baelb","baels","baelt","baelp","baelh","baem","baeb","baebs","baes","baess","baeng","baej","baec","baek","baet","baep","baeh","bya","byag","byagg","byags","byan","byanj","byanh","byad","byal","byalg","byalm","byalb","byals","byalt","byalp","byalh","byam","byab","byabs","byas","byass","byang","byaj","byac","byak","byat","byap","byah","byae","byaeg","byaegg","byaegs","byaen","byaenj","byaenh","byaed","byael","byaelg","byaelm","byaelb","byaels","byaelt","byaelp","byaelh","byaem","byaeb","byaebs","byaes","byaess","byaeng","byaej","byaec","byaek","byaet","byaep","byaeh","beo","beog","beogg","beogs","beon","beonj","beonh","beod","beol","beolg","beolm","beolb","beols","beolt","beolp","beolh","beom","beob","beobs","beos","beoss","beong","beoj","beoc","beok","beot","beop","beoh","be","beg","begg","begs","ben","benj","benh","bed","bel","belg","belm","belb","bels","belt","belp","belh","bem","beb","bebs","bes","bess","beng","bej","bec","bek","bet","bep","beh","byeo","byeog","byeogg","byeogs","byeon","byeonj","byeonh","byeod","byeol","byeolg","byeolm","byeolb","byeols","byeolt","byeolp","byeolh","byeom","byeob","byeobs","byeos","byeoss","byeong","byeoj","byeoc","byeok","byeot","byeop","byeoh","bye","byeg","byegg","byegs","byen","byenj","byenh","byed","byel","byelg","byelm","byelb","byels","byelt","byelp","byelh","byem","byeb","byebs","byes","byess","byeng","byej","byec","byek","byet","byep","byeh","bo","bog","bogg","bogs","bon","bonj","bonh","bod","bol","bolg","bolm","bolb"]});var h9=y((itt,c9)=>{c9.exports=["bols","bolt","bolp","bolh","bom","bob","bobs","bos","boss","bong","boj","boc","bok","bot","bop","boh","bwa","bwag","bwagg","bwags","bwan","bwanj","bwanh","bwad","bwal","bwalg","bwalm","bwalb","bwals","bwalt","bwalp","bwalh","bwam","bwab","bwabs","bwas","bwass","bwang","bwaj","bwac","bwak","bwat","bwap","bwah","bwae","bwaeg","bwaegg","bwaegs","bwaen","bwaenj","bwaenh","bwaed","bwael","bwaelg","bwaelm","bwaelb","bwaels","bwaelt","bwaelp","bwaelh","bwaem","bwaeb","bwaebs","bwaes","bwaess","bwaeng","bwaej","bwaec","bwaek","bwaet","bwaep","bwaeh","boe","boeg","boegg","boegs","boen","boenj","boenh","boed","boel","boelg","boelm","boelb","boels","boelt","boelp","boelh","boem","boeb","boebs","boes","boess","boeng","boej","boec","boek","boet","boep","boeh","byo","byog","byogg","byogs","byon","byonj","byonh","byod","byol","byolg","byolm","byolb","byols","byolt","byolp","byolh","byom","byob","byobs","byos","byoss","byong","byoj","byoc","byok","byot","byop","byoh","bu","bug","bugg","bugs","bun","bunj","bunh","bud","bul","bulg","bulm","bulb","buls","bult","bulp","bulh","bum","bub","bubs","bus","buss","bung","buj","buc","buk","but","bup","buh","bweo","bweog","bweogg","bweogs","bweon","bweonj","bweonh","bweod","bweol","bweolg","bweolm","bweolb","bweols","bweolt","bweolp","bweolh","bweom","bweob","bweobs","bweos","bweoss","bweong","bweoj","bweoc","bweok","bweot","bweop","bweoh","bwe","bweg","bwegg","bwegs","bwen","bwenj","bwenh","bwed","bwel","bwelg","bwelm","bwelb","bwels","bwelt","bwelp","bwelh","bwem","bweb","bwebs","bwes","bwess","bweng","bwej","bwec","bwek","bwet","bwep","bweh","bwi","bwig","bwigg","bwigs","bwin","bwinj","bwinh","bwid","bwil","bwilg","bwilm","bwilb","bwils","bwilt","bwilp","bwilh","bwim","bwib","bwibs","bwis","bwiss","bwing","bwij","bwic","bwik","bwit","bwip","bwih","byu","byug","byugg","byugs","byun","byunj","byunh","byud","byul","byulg","byulm","byulb","byuls","byult","byulp","byulh"]});var g9=y((ntt,d9)=>{d9.exports=["byum","byub","byubs","byus","byuss","byung","byuj","byuc","byuk","byut","byup","byuh","beu","beug","beugg","beugs","beun","beunj","beunh","beud","beul","beulg","beulm","beulb","beuls","beult","beulp","beulh","beum","beub","beubs","beus","beuss","beung","beuj","beuc","beuk","beut","beup","beuh","byi","byig","byigg","byigs","byin","byinj","byinh","byid","byil","byilg","byilm","byilb","byils","byilt","byilp","byilh","byim","byib","byibs","byis","byiss","bying","byij","byic","byik","byit","byip","byih","bi","big","bigg","bigs","bin","binj","binh","bid","bil","bilg","bilm","bilb","bils","bilt","bilp","bilh","bim","bib","bibs","bis","biss","bing","bij","bic","bik","bit","bip","bih","bba","bbag","bbagg","bbags","bban","bbanj","bbanh","bbad","bbal","bbalg","bbalm","bbalb","bbals","bbalt","bbalp","bbalh","bbam","bbab","bbabs","bbas","bbass","bbang","bbaj","bbac","bbak","bbat","bbap","bbah","bbae","bbaeg","bbaegg","bbaegs","bbaen","bbaenj","bbaenh","bbaed","bbael","bbaelg","bbaelm","bbaelb","bbaels","bbaelt","bbaelp","bbaelh","bbaem","bbaeb","bbaebs","bbaes","bbaess","bbaeng","bbaej","bbaec","bbaek","bbaet","bbaep","bbaeh","bbya","bbyag","bbyagg","bbyags","bbyan","bbyanj","bbyanh","bbyad","bbyal","bbyalg","bbyalm","bbyalb","bbyals","bbyalt","bbyalp","bbyalh","bbyam","bbyab","bbyabs","bbyas","bbyass","bbyang","bbyaj","bbyac","bbyak","bbyat","bbyap","bbyah","bbyae","bbyaeg","bbyaegg","bbyaegs","bbyaen","bbyaenj","bbyaenh","bbyaed","bbyael","bbyaelg","bbyaelm","bbyaelb","bbyaels","bbyaelt","bbyaelp","bbyaelh","bbyaem","bbyaeb","bbyaebs","bbyaes","bbyaess","bbyaeng","bbyaej","bbyaec","bbyaek","bbyaet","bbyaep","bbyaeh","bbeo","bbeog","bbeogg","bbeogs","bbeon","bbeonj","bbeonh","bbeod","bbeol","bbeolg","bbeolm","bbeolb","bbeols","bbeolt","bbeolp","bbeolh","bbeom","bbeob","bbeobs","bbeos","bbeoss","bbeong","bbeoj","bbeoc","bbeok","bbeot","bbeop","bbeoh","bbe","bbeg","bbegg","bbegs","bben","bbenj","bbenh","bbed","bbel","bbelg","bbelm","bbelb","bbels","bbelt","bbelp","bbelh","bbem","bbeb","bbebs","bbes"]});var f9=y((rtt,p9)=>{p9.exports=["bbess","bbeng","bbej","bbec","bbek","bbet","bbep","bbeh","bbyeo","bbyeog","bbyeogg","bbyeogs","bbyeon","bbyeonj","bbyeonh","bbyeod","bbyeol","bbyeolg","bbyeolm","bbyeolb","bbyeols","bbyeolt","bbyeolp","bbyeolh","bbyeom","bbyeob","bbyeobs","bbyeos","bbyeoss","bbyeong","bbyeoj","bbyeoc","bbyeok","bbyeot","bbyeop","bbyeoh","bbye","bbyeg","bbyegg","bbyegs","bbyen","bbyenj","bbyenh","bbyed","bbyel","bbyelg","bbyelm","bbyelb","bbyels","bbyelt","bbyelp","bbyelh","bbyem","bbyeb","bbyebs","bbyes","bbyess","bbyeng","bbyej","bbyec","bbyek","bbyet","bbyep","bbyeh","bbo","bbog","bbogg","bbogs","bbon","bbonj","bbonh","bbod","bbol","bbolg","bbolm","bbolb","bbols","bbolt","bbolp","bbolh","bbom","bbob","bbobs","bbos","bboss","bbong","bboj","bboc","bbok","bbot","bbop","bboh","bbwa","bbwag","bbwagg","bbwags","bbwan","bbwanj","bbwanh","bbwad","bbwal","bbwalg","bbwalm","bbwalb","bbwals","bbwalt","bbwalp","bbwalh","bbwam","bbwab","bbwabs","bbwas","bbwass","bbwang","bbwaj","bbwac","bbwak","bbwat","bbwap","bbwah","bbwae","bbwaeg","bbwaegg","bbwaegs","bbwaen","bbwaenj","bbwaenh","bbwaed","bbwael","bbwaelg","bbwaelm","bbwaelb","bbwaels","bbwaelt","bbwaelp","bbwaelh","bbwaem","bbwaeb","bbwaebs","bbwaes","bbwaess","bbwaeng","bbwaej","bbwaec","bbwaek","bbwaet","bbwaep","bbwaeh","bboe","bboeg","bboegg","bboegs","bboen","bboenj","bboenh","bboed","bboel","bboelg","bboelm","bboelb","bboels","bboelt","bboelp","bboelh","bboem","bboeb","bboebs","bboes","bboess","bboeng","bboej","bboec","bboek","bboet","bboep","bboeh","bbyo","bbyog","bbyogg","bbyogs","bbyon","bbyonj","bbyonh","bbyod","bbyol","bbyolg","bbyolm","bbyolb","bbyols","bbyolt","bbyolp","bbyolh","bbyom","bbyob","bbyobs","bbyos","bbyoss","bbyong","bbyoj","bbyoc","bbyok","bbyot","bbyop","bbyoh","bbu","bbug","bbugg","bbugs","bbun","bbunj","bbunh","bbud","bbul","bbulg","bbulm","bbulb","bbuls","bbult","bbulp","bbulh","bbum","bbub","bbubs","bbus","bbuss","bbung","bbuj","bbuc","bbuk","bbut","bbup","bbuh","bbweo","bbweog","bbweogg","bbweogs","bbweon","bbweonj","bbweonh","bbweod","bbweol","bbweolg","bbweolm","bbweolb","bbweols","bbweolt","bbweolp","bbweolh","bbweom","bbweob","bbweobs","bbweos","bbweoss","bbweong","bbweoj","bbweoc"]});var b9=y((ott,m9)=>{m9.exports=["bbweok","bbweot","bbweop","bbweoh","bbwe","bbweg","bbwegg","bbwegs","bbwen","bbwenj","bbwenh","bbwed","bbwel","bbwelg","bbwelm","bbwelb","bbwels","bbwelt","bbwelp","bbwelh","bbwem","bbweb","bbwebs","bbwes","bbwess","bbweng","bbwej","bbwec","bbwek","bbwet","bbwep","bbweh","bbwi","bbwig","bbwigg","bbwigs","bbwin","bbwinj","bbwinh","bbwid","bbwil","bbwilg","bbwilm","bbwilb","bbwils","bbwilt","bbwilp","bbwilh","bbwim","bbwib","bbwibs","bbwis","bbwiss","bbwing","bbwij","bbwic","bbwik","bbwit","bbwip","bbwih","bbyu","bbyug","bbyugg","bbyugs","bbyun","bbyunj","bbyunh","bbyud","bbyul","bbyulg","bbyulm","bbyulb","bbyuls","bbyult","bbyulp","bbyulh","bbyum","bbyub","bbyubs","bbyus","bbyuss","bbyung","bbyuj","bbyuc","bbyuk","bbyut","bbyup","bbyuh","bbeu","bbeug","bbeugg","bbeugs","bbeun","bbeunj","bbeunh","bbeud","bbeul","bbeulg","bbeulm","bbeulb","bbeuls","bbeult","bbeulp","bbeulh","bbeum","bbeub","bbeubs","bbeus","bbeuss","bbeung","bbeuj","bbeuc","bbeuk","bbeut","bbeup","bbeuh","bbyi","bbyig","bbyigg","bbyigs","bbyin","bbyinj","bbyinh","bbyid","bbyil","bbyilg","bbyilm","bbyilb","bbyils","bbyilt","bbyilp","bbyilh","bbyim","bbyib","bbyibs","bbyis","bbyiss","bbying","bbyij","bbyic","bbyik","bbyit","bbyip","bbyih","bbi","bbig","bbigg","bbigs","bbin","bbinj","bbinh","bbid","bbil","bbilg","bbilm","bbilb","bbils","bbilt","bbilp","bbilh","bbim","bbib","bbibs","bbis","bbiss","bbing","bbij","bbic","bbik","bbit","bbip","bbih","sa","sag","sagg","sags","san","sanj","sanh","sad","sal","salg","salm","salb","sals","salt","salp","salh","sam","sab","sabs","sas","sass","sang","saj","sac","sak","sat","sap","sah","sae","saeg","saegg","saegs","saen","saenj","saenh","saed","sael","saelg","saelm","saelb","saels","saelt","saelp","saelh","saem","saeb","saebs","saes","saess","saeng","saej","saec","saek","saet","saep","saeh","sya","syag","syagg","syags","syan","syanj","syanh","syad","syal","syalg","syalm","syalb","syals","syalt","syalp","syalh","syam","syab","syabs","syas","syass","syang","syaj","syac","syak","syat","syap","syah"]});var v9=y((stt,y9)=>{y9.exports=["syae","syaeg","syaegg","syaegs","syaen","syaenj","syaenh","syaed","syael","syaelg","syaelm","syaelb","syaels","syaelt","syaelp","syaelh","syaem","syaeb","syaebs","syaes","syaess","syaeng","syaej","syaec","syaek","syaet","syaep","syaeh","seo","seog","seogg","seogs","seon","seonj","seonh","seod","seol","seolg","seolm","seolb","seols","seolt","seolp","seolh","seom","seob","seobs","seos","seoss","seong","seoj","seoc","seok","seot","seop","seoh","se","seg","segg","segs","sen","senj","senh","sed","sel","selg","selm","selb","sels","selt","selp","selh","sem","seb","sebs","ses","sess","seng","sej","sec","sek","set","sep","seh","syeo","syeog","syeogg","syeogs","syeon","syeonj","syeonh","syeod","syeol","syeolg","syeolm","syeolb","syeols","syeolt","syeolp","syeolh","syeom","syeob","syeobs","syeos","syeoss","syeong","syeoj","syeoc","syeok","syeot","syeop","syeoh","sye","syeg","syegg","syegs","syen","syenj","syenh","syed","syel","syelg","syelm","syelb","syels","syelt","syelp","syelh","syem","syeb","syebs","syes","syess","syeng","syej","syec","syek","syet","syep","syeh","so","sog","sogg","sogs","son","sonj","sonh","sod","sol","solg","solm","solb","sols","solt","solp","solh","som","sob","sobs","sos","soss","song","soj","soc","sok","sot","sop","soh","swa","swag","swagg","swags","swan","swanj","swanh","swad","swal","swalg","swalm","swalb","swals","swalt","swalp","swalh","swam","swab","swabs","swas","swass","swang","swaj","swac","swak","swat","swap","swah","swae","swaeg","swaegg","swaegs","swaen","swaenj","swaenh","swaed","swael","swaelg","swaelm","swaelb","swaels","swaelt","swaelp","swaelh","swaem","swaeb","swaebs","swaes","swaess","swaeng","swaej","swaec","swaek","swaet","swaep","swaeh","soe","soeg","soegg","soegs","soen","soenj","soenh","soed","soel","soelg","soelm","soelb","soels","soelt","soelp","soelh","soem","soeb","soebs","soes","soess","soeng","soej","soec","soek","soet","soep","soeh","syo","syog","syogg","syogs"]});var x9=y((att,w9)=>{w9.exports=["syon","syonj","syonh","syod","syol","syolg","syolm","syolb","syols","syolt","syolp","syolh","syom","syob","syobs","syos","syoss","syong","syoj","syoc","syok","syot","syop","syoh","su","sug","sugg","sugs","sun","sunj","sunh","sud","sul","sulg","sulm","sulb","suls","sult","sulp","sulh","sum","sub","subs","sus","suss","sung","suj","suc","suk","sut","sup","suh","sweo","sweog","sweogg","sweogs","sweon","sweonj","sweonh","sweod","sweol","sweolg","sweolm","sweolb","sweols","sweolt","sweolp","sweolh","sweom","sweob","sweobs","sweos","sweoss","sweong","sweoj","sweoc","sweok","sweot","sweop","sweoh","swe","sweg","swegg","swegs","swen","swenj","swenh","swed","swel","swelg","swelm","swelb","swels","swelt","swelp","swelh","swem","sweb","swebs","swes","swess","sweng","swej","swec","swek","swet","swep","sweh","swi","swig","swigg","swigs","swin","swinj","swinh","swid","swil","swilg","swilm","swilb","swils","swilt","swilp","swilh","swim","swib","swibs","swis","swiss","swing","swij","swic","swik","swit","swip","swih","syu","syug","syugg","syugs","syun","syunj","syunh","syud","syul","syulg","syulm","syulb","syuls","syult","syulp","syulh","syum","syub","syubs","syus","syuss","syung","syuj","syuc","syuk","syut","syup","syuh","seu","seug","seugg","seugs","seun","seunj","seunh","seud","seul","seulg","seulm","seulb","seuls","seult","seulp","seulh","seum","seub","seubs","seus","seuss","seung","seuj","seuc","seuk","seut","seup","seuh","syi","syig","syigg","syigs","syin","syinj","syinh","syid","syil","syilg","syilm","syilb","syils","syilt","syilp","syilh","syim","syib","syibs","syis","syiss","sying","syij","syic","syik","syit","syip","syih","si","sig","sigg","sigs","sin","sinj","sinh","sid","sil","silg","silm","silb","sils","silt","silp","silh","sim","sib","sibs","sis","siss","sing","sij","sic","sik","sit","sip","sih","ssa","ssag","ssagg","ssags","ssan","ssanj","ssanh","ssad"]});var S9=y((ltt,C9)=>{C9.exports=["ssal","ssalg","ssalm","ssalb","ssals","ssalt","ssalp","ssalh","ssam","ssab","ssabs","ssas","ssass","ssang","ssaj","ssac","ssak","ssat","ssap","ssah","ssae","ssaeg","ssaegg","ssaegs","ssaen","ssaenj","ssaenh","ssaed","ssael","ssaelg","ssaelm","ssaelb","ssaels","ssaelt","ssaelp","ssaelh","ssaem","ssaeb","ssaebs","ssaes","ssaess","ssaeng","ssaej","ssaec","ssaek","ssaet","ssaep","ssaeh","ssya","ssyag","ssyagg","ssyags","ssyan","ssyanj","ssyanh","ssyad","ssyal","ssyalg","ssyalm","ssyalb","ssyals","ssyalt","ssyalp","ssyalh","ssyam","ssyab","ssyabs","ssyas","ssyass","ssyang","ssyaj","ssyac","ssyak","ssyat","ssyap","ssyah","ssyae","ssyaeg","ssyaegg","ssyaegs","ssyaen","ssyaenj","ssyaenh","ssyaed","ssyael","ssyaelg","ssyaelm","ssyaelb","ssyaels","ssyaelt","ssyaelp","ssyaelh","ssyaem","ssyaeb","ssyaebs","ssyaes","ssyaess","ssyaeng","ssyaej","ssyaec","ssyaek","ssyaet","ssyaep","ssyaeh","sseo","sseog","sseogg","sseogs","sseon","sseonj","sseonh","sseod","sseol","sseolg","sseolm","sseolb","sseols","sseolt","sseolp","sseolh","sseom","sseob","sseobs","sseos","sseoss","sseong","sseoj","sseoc","sseok","sseot","sseop","sseoh","sse","sseg","ssegg","ssegs","ssen","ssenj","ssenh","ssed","ssel","sselg","sselm","sselb","ssels","sselt","sselp","sselh","ssem","sseb","ssebs","sses","ssess","sseng","ssej","ssec","ssek","sset","ssep","sseh","ssyeo","ssyeog","ssyeogg","ssyeogs","ssyeon","ssyeonj","ssyeonh","ssyeod","ssyeol","ssyeolg","ssyeolm","ssyeolb","ssyeols","ssyeolt","ssyeolp","ssyeolh","ssyeom","ssyeob","ssyeobs","ssyeos","ssyeoss","ssyeong","ssyeoj","ssyeoc","ssyeok","ssyeot","ssyeop","ssyeoh","ssye","ssyeg","ssyegg","ssyegs","ssyen","ssyenj","ssyenh","ssyed","ssyel","ssyelg","ssyelm","ssyelb","ssyels","ssyelt","ssyelp","ssyelh","ssyem","ssyeb","ssyebs","ssyes","ssyess","ssyeng","ssyej","ssyec","ssyek","ssyet","ssyep","ssyeh","sso","ssog","ssogg","ssogs","sson","ssonj","ssonh","ssod","ssol","ssolg","ssolm","ssolb","ssols","ssolt","ssolp","ssolh","ssom","ssob","ssobs","ssos","ssoss","ssong","ssoj","ssoc","ssok","ssot","ssop","ssoh","sswa","sswag","sswagg","sswags","sswan","sswanj","sswanh","sswad","sswal","sswalg","sswalm","sswalb"]});var T9=y((utt,D9)=>{D9.exports=["sswals","sswalt","sswalp","sswalh","sswam","sswab","sswabs","sswas","sswass","sswang","sswaj","sswac","sswak","sswat","sswap","sswah","sswae","sswaeg","sswaegg","sswaegs","sswaen","sswaenj","sswaenh","sswaed","sswael","sswaelg","sswaelm","sswaelb","sswaels","sswaelt","sswaelp","sswaelh","sswaem","sswaeb","sswaebs","sswaes","sswaess","sswaeng","sswaej","sswaec","sswaek","sswaet","sswaep","sswaeh","ssoe","ssoeg","ssoegg","ssoegs","ssoen","ssoenj","ssoenh","ssoed","ssoel","ssoelg","ssoelm","ssoelb","ssoels","ssoelt","ssoelp","ssoelh","ssoem","ssoeb","ssoebs","ssoes","ssoess","ssoeng","ssoej","ssoec","ssoek","ssoet","ssoep","ssoeh","ssyo","ssyog","ssyogg","ssyogs","ssyon","ssyonj","ssyonh","ssyod","ssyol","ssyolg","ssyolm","ssyolb","ssyols","ssyolt","ssyolp","ssyolh","ssyom","ssyob","ssyobs","ssyos","ssyoss","ssyong","ssyoj","ssyoc","ssyok","ssyot","ssyop","ssyoh","ssu","ssug","ssugg","ssugs","ssun","ssunj","ssunh","ssud","ssul","ssulg","ssulm","ssulb","ssuls","ssult","ssulp","ssulh","ssum","ssub","ssubs","ssus","ssuss","ssung","ssuj","ssuc","ssuk","ssut","ssup","ssuh","ssweo","ssweog","ssweogg","ssweogs","ssweon","ssweonj","ssweonh","ssweod","ssweol","ssweolg","ssweolm","ssweolb","ssweols","ssweolt","ssweolp","ssweolh","ssweom","ssweob","ssweobs","ssweos","ssweoss","ssweong","ssweoj","ssweoc","ssweok","ssweot","ssweop","ssweoh","sswe","ssweg","sswegg","sswegs","sswen","sswenj","sswenh","sswed","sswel","sswelg","sswelm","sswelb","sswels","sswelt","sswelp","sswelh","sswem","ssweb","sswebs","sswes","sswess","ssweng","sswej","sswec","sswek","sswet","sswep","ssweh","sswi","sswig","sswigg","sswigs","sswin","sswinj","sswinh","sswid","sswil","sswilg","sswilm","sswilb","sswils","sswilt","sswilp","sswilh","sswim","sswib","sswibs","sswis","sswiss","sswing","sswij","sswic","sswik","sswit","sswip","sswih","ssyu","ssyug","ssyugg","ssyugs","ssyun","ssyunj","ssyunh","ssyud","ssyul","ssyulg","ssyulm","ssyulb","ssyuls","ssyult","ssyulp","ssyulh","ssyum","ssyub","ssyubs","ssyus","ssyuss","ssyung","ssyuj","ssyuc","ssyuk","ssyut","ssyup","ssyuh","sseu","sseug","sseugg","sseugs","sseun","sseunj","sseunh","sseud","sseul","sseulg","sseulm","sseulb","sseuls","sseult","sseulp","sseulh"]});var P9=y((ctt,k9)=>{k9.exports=["sseum","sseub","sseubs","sseus","sseuss","sseung","sseuj","sseuc","sseuk","sseut","sseup","sseuh","ssyi","ssyig","ssyigg","ssyigs","ssyin","ssyinj","ssyinh","ssyid","ssyil","ssyilg","ssyilm","ssyilb","ssyils","ssyilt","ssyilp","ssyilh","ssyim","ssyib","ssyibs","ssyis","ssyiss","ssying","ssyij","ssyic","ssyik","ssyit","ssyip","ssyih","ssi","ssig","ssigg","ssigs","ssin","ssinj","ssinh","ssid","ssil","ssilg","ssilm","ssilb","ssils","ssilt","ssilp","ssilh","ssim","ssib","ssibs","ssis","ssiss","ssing","ssij","ssic","ssik","ssit","ssip","ssih","a","ag","agg","ags","an","anj","anh","ad","al","alg","alm","alb","als","alt","alp","alh","am","ab","abs","as","ass","ang","aj","ac","ak","at","ap","ah","ae","aeg","aegg","aegs","aen","aenj","aenh","aed","ael","aelg","aelm","aelb","aels","aelt","aelp","aelh","aem","aeb","aebs","aes","aess","aeng","aej","aec","aek","aet","aep","aeh","ya","yag","yagg","yags","yan","yanj","yanh","yad","yal","yalg","yalm","yalb","yals","yalt","yalp","yalh","yam","yab","yabs","yas","yass","yang","yaj","yac","yak","yat","yap","yah","yae","yaeg","yaegg","yaegs","yaen","yaenj","yaenh","yaed","yael","yaelg","yaelm","yaelb","yaels","yaelt","yaelp","yaelh","yaem","yaeb","yaebs","yaes","yaess","yaeng","yaej","yaec","yaek","yaet","yaep","yaeh","eo","eog","eogg","eogs","eon","eonj","eonh","eod","eol","eolg","eolm","eolb","eols","eolt","eolp","eolh","eom","eob","eobs","eos","eoss","eong","eoj","eoc","eok","eot","eop","eoh","e","eg","egg","egs","en","enj","enh","ed","el","elg","elm","elb","els","elt","elp","elh","em","eb","ebs","es","ess","eng","ej","ec","ek","et","ep","eh","yeo","yeog","yeogg","yeogs","yeon","yeonj","yeonh","yeod","yeol","yeolg","yeolm","yeolb","yeols","yeolt","yeolp","yeolh","yeom","yeob","yeobs","yeos"]});var R9=y((htt,E9)=>{E9.exports=["yeoss","yeong","yeoj","yeoc","yeok","yeot","yeop","yeoh","ye","yeg","yegg","yegs","yen","yenj","yenh","yed","yel","yelg","yelm","yelb","yels","yelt","yelp","yelh","yem","yeb","yebs","yes","yess","yeng","yej","yec","yek","yet","yep","yeh","o","og","ogg","ogs","on","onj","onh","od","ol","olg","olm","olb","ols","olt","olp","olh","om","ob","obs","os","oss","ong","oj","oc","ok","ot","op","oh","wa","wag","wagg","wags","wan","wanj","wanh","wad","wal","walg","walm","walb","wals","walt","walp","walh","wam","wab","wabs","was","wass","wang","waj","wac","wak","wat","wap","wah","wae","waeg","waegg","waegs","waen","waenj","waenh","waed","wael","waelg","waelm","waelb","waels","waelt","waelp","waelh","waem","waeb","waebs","waes","waess","waeng","waej","waec","waek","waet","waep","waeh","oe","oeg","oegg","oegs","oen","oenj","oenh","oed","oel","oelg","oelm","oelb","oels","oelt","oelp","oelh","oem","oeb","oebs","oes","oess","oeng","oej","oec","oek","oet","oep","oeh","yo","yog","yogg","yogs","yon","yonj","yonh","yod","yol","yolg","yolm","yolb","yols","yolt","yolp","yolh","yom","yob","yobs","yos","yoss","yong","yoj","yoc","yok","yot","yop","yoh","u","ug","ugg","ugs","un","unj","unh","ud","ul","ulg","ulm","ulb","uls","ult","ulp","ulh","um","ub","ubs","us","uss","ung","uj","uc","uk","ut","up","uh","weo","weog","weogg","weogs","weon","weonj","weonh","weod","weol","weolg","weolm","weolb","weols","weolt","weolp","weolh","weom","weob","weobs","weos","weoss","weong","weoj","weoc","weok","weot","weop","weoh","we","weg","wegg","wegs","wen","wenj","wenh","wed","wel","welg","welm","welb","wels","welt","welp","welh","wem","web","webs","wes","wess","weng","wej","wec"]});var L9=y((dtt,_9)=>{_9.exports=["wek","wet","wep","weh","wi","wig","wigg","wigs","win","winj","winh","wid","wil","wilg","wilm","wilb","wils","wilt","wilp","wilh","wim","wib","wibs","wis","wiss","wing","wij","wic","wik","wit","wip","wih","yu","yug","yugg","yugs","yun","yunj","yunh","yud","yul","yulg","yulm","yulb","yuls","yult","yulp","yulh","yum","yub","yubs","yus","yuss","yung","yuj","yuc","yuk","yut","yup","yuh","eu","eug","eugg","eugs","eun","eunj","eunh","eud","eul","eulg","eulm","eulb","euls","eult","eulp","eulh","eum","eub","eubs","eus","euss","eung","euj","euc","euk","eut","eup","euh","yi","yig","yigg","yigs","yin","yinj","yinh","yid","yil","yilg","yilm","yilb","yils","yilt","yilp","yilh","yim","yib","yibs","yis","yiss","ying","yij","yic","yik","yit","yip","yih","i","ig","igg","igs","in","inj","inh","id","il","ilg","ilm","ilb","ils","ilt","ilp","ilh","im","ib","ibs","is","iss","ing","ij","ic","ik","it","ip","ih","ja","jag","jagg","jags","jan","janj","janh","jad","jal","jalg","jalm","jalb","jals","jalt","jalp","jalh","jam","jab","jabs","jas","jass","jang","jaj","jac","jak","jat","jap","jah","jae","jaeg","jaegg","jaegs","jaen","jaenj","jaenh","jaed","jael","jaelg","jaelm","jaelb","jaels","jaelt","jaelp","jaelh","jaem","jaeb","jaebs","jaes","jaess","jaeng","jaej","jaec","jaek","jaet","jaep","jaeh","jya","jyag","jyagg","jyags","jyan","jyanj","jyanh","jyad","jyal","jyalg","jyalm","jyalb","jyals","jyalt","jyalp","jyalh","jyam","jyab","jyabs","jyas","jyass","jyang","jyaj","jyac","jyak","jyat","jyap","jyah","jyae","jyaeg","jyaegg","jyaegs","jyaen","jyaenj","jyaenh","jyaed","jyael","jyaelg","jyaelm","jyaelb","jyaels","jyaelt","jyaelp","jyaelh","jyaem","jyaeb","jyaebs","jyaes","jyaess","jyaeng","jyaej","jyaec","jyaek","jyaet","jyaep","jyaeh"]});var F9=y((gtt,I9)=>{I9.exports=["jeo","jeog","jeogg","jeogs","jeon","jeonj","jeonh","jeod","jeol","jeolg","jeolm","jeolb","jeols","jeolt","jeolp","jeolh","jeom","jeob","jeobs","jeos","jeoss","jeong","jeoj","jeoc","jeok","jeot","jeop","jeoh","je","jeg","jegg","jegs","jen","jenj","jenh","jed","jel","jelg","jelm","jelb","jels","jelt","jelp","jelh","jem","jeb","jebs","jes","jess","jeng","jej","jec","jek","jet","jep","jeh","jyeo","jyeog","jyeogg","jyeogs","jyeon","jyeonj","jyeonh","jyeod","jyeol","jyeolg","jyeolm","jyeolb","jyeols","jyeolt","jyeolp","jyeolh","jyeom","jyeob","jyeobs","jyeos","jyeoss","jyeong","jyeoj","jyeoc","jyeok","jyeot","jyeop","jyeoh","jye","jyeg","jyegg","jyegs","jyen","jyenj","jyenh","jyed","jyel","jyelg","jyelm","jyelb","jyels","jyelt","jyelp","jyelh","jyem","jyeb","jyebs","jyes","jyess","jyeng","jyej","jyec","jyek","jyet","jyep","jyeh","jo","jog","jogg","jogs","jon","jonj","jonh","jod","jol","jolg","jolm","jolb","jols","jolt","jolp","jolh","jom","job","jobs","jos","joss","jong","joj","joc","jok","jot","jop","joh","jwa","jwag","jwagg","jwags","jwan","jwanj","jwanh","jwad","jwal","jwalg","jwalm","jwalb","jwals","jwalt","jwalp","jwalh","jwam","jwab","jwabs","jwas","jwass","jwang","jwaj","jwac","jwak","jwat","jwap","jwah","jwae","jwaeg","jwaegg","jwaegs","jwaen","jwaenj","jwaenh","jwaed","jwael","jwaelg","jwaelm","jwaelb","jwaels","jwaelt","jwaelp","jwaelh","jwaem","jwaeb","jwaebs","jwaes","jwaess","jwaeng","jwaej","jwaec","jwaek","jwaet","jwaep","jwaeh","joe","joeg","joegg","joegs","joen","joenj","joenh","joed","joel","joelg","joelm","joelb","joels","joelt","joelp","joelh","joem","joeb","joebs","joes","joess","joeng","joej","joec","joek","joet","joep","joeh","jyo","jyog","jyogg","jyogs","jyon","jyonj","jyonh","jyod","jyol","jyolg","jyolm","jyolb","jyols","jyolt","jyolp","jyolh","jyom","jyob","jyobs","jyos","jyoss","jyong","jyoj","jyoc","jyok","jyot","jyop","jyoh","ju","jug","jugg","jugs"]});var M9=y((ptt,j9)=>{j9.exports=["jun","junj","junh","jud","jul","julg","julm","julb","juls","jult","julp","julh","jum","jub","jubs","jus","juss","jung","juj","juc","juk","jut","jup","juh","jweo","jweog","jweogg","jweogs","jweon","jweonj","jweonh","jweod","jweol","jweolg","jweolm","jweolb","jweols","jweolt","jweolp","jweolh","jweom","jweob","jweobs","jweos","jweoss","jweong","jweoj","jweoc","jweok","jweot","jweop","jweoh","jwe","jweg","jwegg","jwegs","jwen","jwenj","jwenh","jwed","jwel","jwelg","jwelm","jwelb","jwels","jwelt","jwelp","jwelh","jwem","jweb","jwebs","jwes","jwess","jweng","jwej","jwec","jwek","jwet","jwep","jweh","jwi","jwig","jwigg","jwigs","jwin","jwinj","jwinh","jwid","jwil","jwilg","jwilm","jwilb","jwils","jwilt","jwilp","jwilh","jwim","jwib","jwibs","jwis","jwiss","jwing","jwij","jwic","jwik","jwit","jwip","jwih","jyu","jyug","jyugg","jyugs","jyun","jyunj","jyunh","jyud","jyul","jyulg","jyulm","jyulb","jyuls","jyult","jyulp","jyulh","jyum","jyub","jyubs","jyus","jyuss","jyung","jyuj","jyuc","jyuk","jyut","jyup","jyuh","jeu","jeug","jeugg","jeugs","jeun","jeunj","jeunh","jeud","jeul","jeulg","jeulm","jeulb","jeuls","jeult","jeulp","jeulh","jeum","jeub","jeubs","jeus","jeuss","jeung","jeuj","jeuc","jeuk","jeut","jeup","jeuh","jyi","jyig","jyigg","jyigs","jyin","jyinj","jyinh","jyid","jyil","jyilg","jyilm","jyilb","jyils","jyilt","jyilp","jyilh","jyim","jyib","jyibs","jyis","jyiss","jying","jyij","jyic","jyik","jyit","jyip","jyih","ji","jig","jigg","jigs","jin","jinj","jinh","jid","jil","jilg","jilm","jilb","jils","jilt","jilp","jilh","jim","jib","jibs","jis","jiss","jing","jij","jic","jik","jit","jip","jih","jja","jjag","jjagg","jjags","jjan","jjanj","jjanh","jjad","jjal","jjalg","jjalm","jjalb","jjals","jjalt","jjalp","jjalh","jjam","jjab","jjabs","jjas","jjass","jjang","jjaj","jjac","jjak","jjat","jjap","jjah","jjae","jjaeg","jjaegg","jjaegs","jjaen","jjaenj","jjaenh","jjaed"]});var A9=y((ftt,O9)=>{O9.exports=["jjael","jjaelg","jjaelm","jjaelb","jjaels","jjaelt","jjaelp","jjaelh","jjaem","jjaeb","jjaebs","jjaes","jjaess","jjaeng","jjaej","jjaec","jjaek","jjaet","jjaep","jjaeh","jjya","jjyag","jjyagg","jjyags","jjyan","jjyanj","jjyanh","jjyad","jjyal","jjyalg","jjyalm","jjyalb","jjyals","jjyalt","jjyalp","jjyalh","jjyam","jjyab","jjyabs","jjyas","jjyass","jjyang","jjyaj","jjyac","jjyak","jjyat","jjyap","jjyah","jjyae","jjyaeg","jjyaegg","jjyaegs","jjyaen","jjyaenj","jjyaenh","jjyaed","jjyael","jjyaelg","jjyaelm","jjyaelb","jjyaels","jjyaelt","jjyaelp","jjyaelh","jjyaem","jjyaeb","jjyaebs","jjyaes","jjyaess","jjyaeng","jjyaej","jjyaec","jjyaek","jjyaet","jjyaep","jjyaeh","jjeo","jjeog","jjeogg","jjeogs","jjeon","jjeonj","jjeonh","jjeod","jjeol","jjeolg","jjeolm","jjeolb","jjeols","jjeolt","jjeolp","jjeolh","jjeom","jjeob","jjeobs","jjeos","jjeoss","jjeong","jjeoj","jjeoc","jjeok","jjeot","jjeop","jjeoh","jje","jjeg","jjegg","jjegs","jjen","jjenj","jjenh","jjed","jjel","jjelg","jjelm","jjelb","jjels","jjelt","jjelp","jjelh","jjem","jjeb","jjebs","jjes","jjess","jjeng","jjej","jjec","jjek","jjet","jjep","jjeh","jjyeo","jjyeog","jjyeogg","jjyeogs","jjyeon","jjyeonj","jjyeonh","jjyeod","jjyeol","jjyeolg","jjyeolm","jjyeolb","jjyeols","jjyeolt","jjyeolp","jjyeolh","jjyeom","jjyeob","jjyeobs","jjyeos","jjyeoss","jjyeong","jjyeoj","jjyeoc","jjyeok","jjyeot","jjyeop","jjyeoh","jjye","jjyeg","jjyegg","jjyegs","jjyen","jjyenj","jjyenh","jjyed","jjyel","jjyelg","jjyelm","jjyelb","jjyels","jjyelt","jjyelp","jjyelh","jjyem","jjyeb","jjyebs","jjyes","jjyess","jjyeng","jjyej","jjyec","jjyek","jjyet","jjyep","jjyeh","jjo","jjog","jjogg","jjogs","jjon","jjonj","jjonh","jjod","jjol","jjolg","jjolm","jjolb","jjols","jjolt","jjolp","jjolh","jjom","jjob","jjobs","jjos","jjoss","jjong","jjoj","jjoc","jjok","jjot","jjop","jjoh","jjwa","jjwag","jjwagg","jjwags","jjwan","jjwanj","jjwanh","jjwad","jjwal","jjwalg","jjwalm","jjwalb","jjwals","jjwalt","jjwalp","jjwalh","jjwam","jjwab","jjwabs","jjwas","jjwass","jjwang","jjwaj","jjwac","jjwak","jjwat","jjwap","jjwah","jjwae","jjwaeg","jjwaegg","jjwaegs","jjwaen","jjwaenj","jjwaenh","jjwaed","jjwael","jjwaelg","jjwaelm","jjwaelb"]});var H9=y((mtt,N9)=>{N9.exports=["jjwaels","jjwaelt","jjwaelp","jjwaelh","jjwaem","jjwaeb","jjwaebs","jjwaes","jjwaess","jjwaeng","jjwaej","jjwaec","jjwaek","jjwaet","jjwaep","jjwaeh","jjoe","jjoeg","jjoegg","jjoegs","jjoen","jjoenj","jjoenh","jjoed","jjoel","jjoelg","jjoelm","jjoelb","jjoels","jjoelt","jjoelp","jjoelh","jjoem","jjoeb","jjoebs","jjoes","jjoess","jjoeng","jjoej","jjoec","jjoek","jjoet","jjoep","jjoeh","jjyo","jjyog","jjyogg","jjyogs","jjyon","jjyonj","jjyonh","jjyod","jjyol","jjyolg","jjyolm","jjyolb","jjyols","jjyolt","jjyolp","jjyolh","jjyom","jjyob","jjyobs","jjyos","jjyoss","jjyong","jjyoj","jjyoc","jjyok","jjyot","jjyop","jjyoh","jju","jjug","jjugg","jjugs","jjun","jjunj","jjunh","jjud","jjul","jjulg","jjulm","jjulb","jjuls","jjult","jjulp","jjulh","jjum","jjub","jjubs","jjus","jjuss","jjung","jjuj","jjuc","jjuk","jjut","jjup","jjuh","jjweo","jjweog","jjweogg","jjweogs","jjweon","jjweonj","jjweonh","jjweod","jjweol","jjweolg","jjweolm","jjweolb","jjweols","jjweolt","jjweolp","jjweolh","jjweom","jjweob","jjweobs","jjweos","jjweoss","jjweong","jjweoj","jjweoc","jjweok","jjweot","jjweop","jjweoh","jjwe","jjweg","jjwegg","jjwegs","jjwen","jjwenj","jjwenh","jjwed","jjwel","jjwelg","jjwelm","jjwelb","jjwels","jjwelt","jjwelp","jjwelh","jjwem","jjweb","jjwebs","jjwes","jjwess","jjweng","jjwej","jjwec","jjwek","jjwet","jjwep","jjweh","jjwi","jjwig","jjwigg","jjwigs","jjwin","jjwinj","jjwinh","jjwid","jjwil","jjwilg","jjwilm","jjwilb","jjwils","jjwilt","jjwilp","jjwilh","jjwim","jjwib","jjwibs","jjwis","jjwiss","jjwing","jjwij","jjwic","jjwik","jjwit","jjwip","jjwih","jjyu","jjyug","jjyugg","jjyugs","jjyun","jjyunj","jjyunh","jjyud","jjyul","jjyulg","jjyulm","jjyulb","jjyuls","jjyult","jjyulp","jjyulh","jjyum","jjyub","jjyubs","jjyus","jjyuss","jjyung","jjyuj","jjyuc","jjyuk","jjyut","jjyup","jjyuh","jjeu","jjeug","jjeugg","jjeugs","jjeun","jjeunj","jjeunh","jjeud","jjeul","jjeulg","jjeulm","jjeulb","jjeuls","jjeult","jjeulp","jjeulh","jjeum","jjeub","jjeubs","jjeus","jjeuss","jjeung","jjeuj","jjeuc","jjeuk","jjeut","jjeup","jjeuh","jjyi","jjyig","jjyigg","jjyigs","jjyin","jjyinj","jjyinh","jjyid","jjyil","jjyilg","jjyilm","jjyilb","jjyils","jjyilt","jjyilp","jjyilh"]});var B9=y((btt,q9)=>{q9.exports=["jjyim","jjyib","jjyibs","jjyis","jjyiss","jjying","jjyij","jjyic","jjyik","jjyit","jjyip","jjyih","jji","jjig","jjigg","jjigs","jjin","jjinj","jjinh","jjid","jjil","jjilg","jjilm","jjilb","jjils","jjilt","jjilp","jjilh","jjim","jjib","jjibs","jjis","jjiss","jjing","jjij","jjic","jjik","jjit","jjip","jjih","ca","cag","cagg","cags","can","canj","canh","cad","cal","calg","calm","calb","cals","calt","calp","calh","cam","cab","cabs","cas","cass","cang","caj","cac","cak","cat","cap","cah","cae","caeg","caegg","caegs","caen","caenj","caenh","caed","cael","caelg","caelm","caelb","caels","caelt","caelp","caelh","caem","caeb","caebs","caes","caess","caeng","caej","caec","caek","caet","caep","caeh","cya","cyag","cyagg","cyags","cyan","cyanj","cyanh","cyad","cyal","cyalg","cyalm","cyalb","cyals","cyalt","cyalp","cyalh","cyam","cyab","cyabs","cyas","cyass","cyang","cyaj","cyac","cyak","cyat","cyap","cyah","cyae","cyaeg","cyaegg","cyaegs","cyaen","cyaenj","cyaenh","cyaed","cyael","cyaelg","cyaelm","cyaelb","cyaels","cyaelt","cyaelp","cyaelh","cyaem","cyaeb","cyaebs","cyaes","cyaess","cyaeng","cyaej","cyaec","cyaek","cyaet","cyaep","cyaeh","ceo","ceog","ceogg","ceogs","ceon","ceonj","ceonh","ceod","ceol","ceolg","ceolm","ceolb","ceols","ceolt","ceolp","ceolh","ceom","ceob","ceobs","ceos","ceoss","ceong","ceoj","ceoc","ceok","ceot","ceop","ceoh","ce","ceg","cegg","cegs","cen","cenj","cenh","ced","cel","celg","celm","celb","cels","celt","celp","celh","cem","ceb","cebs","ces","cess","ceng","cej","cec","cek","cet","cep","ceh","cyeo","cyeog","cyeogg","cyeogs","cyeon","cyeonj","cyeonh","cyeod","cyeol","cyeolg","cyeolm","cyeolb","cyeols","cyeolt","cyeolp","cyeolh","cyeom","cyeob","cyeobs","cyeos","cyeoss","cyeong","cyeoj","cyeoc","cyeok","cyeot","cyeop","cyeoh","cye","cyeg","cyegg","cyegs","cyen","cyenj","cyenh","cyed","cyel","cyelg","cyelm","cyelb","cyels","cyelt","cyelp","cyelh","cyem","cyeb","cyebs","cyes"]});var Y9=y((ytt,W9)=>{W9.exports=["cyess","cyeng","cyej","cyec","cyek","cyet","cyep","cyeh","co","cog","cogg","cogs","con","conj","conh","cod","col","colg","colm","colb","cols","colt","colp","colh","com","cob","cobs","cos","coss","cong","coj","coc","cok","cot","cop","coh","cwa","cwag","cwagg","cwags","cwan","cwanj","cwanh","cwad","cwal","cwalg","cwalm","cwalb","cwals","cwalt","cwalp","cwalh","cwam","cwab","cwabs","cwas","cwass","cwang","cwaj","cwac","cwak","cwat","cwap","cwah","cwae","cwaeg","cwaegg","cwaegs","cwaen","cwaenj","cwaenh","cwaed","cwael","cwaelg","cwaelm","cwaelb","cwaels","cwaelt","cwaelp","cwaelh","cwaem","cwaeb","cwaebs","cwaes","cwaess","cwaeng","cwaej","cwaec","cwaek","cwaet","cwaep","cwaeh","coe","coeg","coegg","coegs","coen","coenj","coenh","coed","coel","coelg","coelm","coelb","coels","coelt","coelp","coelh","coem","coeb","coebs","coes","coess","coeng","coej","coec","coek","coet","coep","coeh","cyo","cyog","cyogg","cyogs","cyon","cyonj","cyonh","cyod","cyol","cyolg","cyolm","cyolb","cyols","cyolt","cyolp","cyolh","cyom","cyob","cyobs","cyos","cyoss","cyong","cyoj","cyoc","cyok","cyot","cyop","cyoh","cu","cug","cugg","cugs","cun","cunj","cunh","cud","cul","culg","culm","culb","culs","cult","culp","culh","cum","cub","cubs","cus","cuss","cung","cuj","cuc","cuk","cut","cup","cuh","cweo","cweog","cweogg","cweogs","cweon","cweonj","cweonh","cweod","cweol","cweolg","cweolm","cweolb","cweols","cweolt","cweolp","cweolh","cweom","cweob","cweobs","cweos","cweoss","cweong","cweoj","cweoc","cweok","cweot","cweop","cweoh","cwe","cweg","cwegg","cwegs","cwen","cwenj","cwenh","cwed","cwel","cwelg","cwelm","cwelb","cwels","cwelt","cwelp","cwelh","cwem","cweb","cwebs","cwes","cwess","cweng","cwej","cwec","cwek","cwet","cwep","cweh","cwi","cwig","cwigg","cwigs","cwin","cwinj","cwinh","cwid","cwil","cwilg","cwilm","cwilb","cwils","cwilt","cwilp","cwilh","cwim","cwib","cwibs","cwis","cwiss","cwing","cwij","cwic"]});var J9=y((vtt,Z9)=>{Z9.exports=["cwik","cwit","cwip","cwih","cyu","cyug","cyugg","cyugs","cyun","cyunj","cyunh","cyud","cyul","cyulg","cyulm","cyulb","cyuls","cyult","cyulp","cyulh","cyum","cyub","cyubs","cyus","cyuss","cyung","cyuj","cyuc","cyuk","cyut","cyup","cyuh","ceu","ceug","ceugg","ceugs","ceun","ceunj","ceunh","ceud","ceul","ceulg","ceulm","ceulb","ceuls","ceult","ceulp","ceulh","ceum","ceub","ceubs","ceus","ceuss","ceung","ceuj","ceuc","ceuk","ceut","ceup","ceuh","cyi","cyig","cyigg","cyigs","cyin","cyinj","cyinh","cyid","cyil","cyilg","cyilm","cyilb","cyils","cyilt","cyilp","cyilh","cyim","cyib","cyibs","cyis","cyiss","cying","cyij","cyic","cyik","cyit","cyip","cyih","ci","cig","cigg","cigs","cin","cinj","cinh","cid","cil","cilg","cilm","cilb","cils","cilt","cilp","cilh","cim","cib","cibs","cis","ciss","cing","cij","cic","cik","cit","cip","cih","ka","kag","kagg","kags","kan","kanj","kanh","kad","kal","kalg","kalm","kalb","kals","kalt","kalp","kalh","kam","kab","kabs","kas","kass","kang","kaj","kac","kak","kat","kap","kah","kae","kaeg","kaegg","kaegs","kaen","kaenj","kaenh","kaed","kael","kaelg","kaelm","kaelb","kaels","kaelt","kaelp","kaelh","kaem","kaeb","kaebs","kaes","kaess","kaeng","kaej","kaec","kaek","kaet","kaep","kaeh","kya","kyag","kyagg","kyags","kyan","kyanj","kyanh","kyad","kyal","kyalg","kyalm","kyalb","kyals","kyalt","kyalp","kyalh","kyam","kyab","kyabs","kyas","kyass","kyang","kyaj","kyac","kyak","kyat","kyap","kyah","kyae","kyaeg","kyaegg","kyaegs","kyaen","kyaenj","kyaenh","kyaed","kyael","kyaelg","kyaelm","kyaelb","kyaels","kyaelt","kyaelp","kyaelh","kyaem","kyaeb","kyaebs","kyaes","kyaess","kyaeng","kyaej","kyaec","kyaek","kyaet","kyaep","kyaeh","keo","keog","keogg","keogs","keon","keonj","keonh","keod","keol","keolg","keolm","keolb","keols","keolt","keolp","keolh","keom","keob","keobs","keos","keoss","keong","keoj","keoc","keok","keot","keop","keoh"]});var U9=y((wtt,$9)=>{$9.exports=["ke","keg","kegg","kegs","ken","kenj","kenh","ked","kel","kelg","kelm","kelb","kels","kelt","kelp","kelh","kem","keb","kebs","kes","kess","keng","kej","kec","kek","ket","kep","keh","kyeo","kyeog","kyeogg","kyeogs","kyeon","kyeonj","kyeonh","kyeod","kyeol","kyeolg","kyeolm","kyeolb","kyeols","kyeolt","kyeolp","kyeolh","kyeom","kyeob","kyeobs","kyeos","kyeoss","kyeong","kyeoj","kyeoc","kyeok","kyeot","kyeop","kyeoh","kye","kyeg","kyegg","kyegs","kyen","kyenj","kyenh","kyed","kyel","kyelg","kyelm","kyelb","kyels","kyelt","kyelp","kyelh","kyem","kyeb","kyebs","kyes","kyess","kyeng","kyej","kyec","kyek","kyet","kyep","kyeh","ko","kog","kogg","kogs","kon","konj","konh","kod","kol","kolg","kolm","kolb","kols","kolt","kolp","kolh","kom","kob","kobs","kos","koss","kong","koj","koc","kok","kot","kop","koh","kwa","kwag","kwagg","kwags","kwan","kwanj","kwanh","kwad","kwal","kwalg","kwalm","kwalb","kwals","kwalt","kwalp","kwalh","kwam","kwab","kwabs","kwas","kwass","kwang","kwaj","kwac","kwak","kwat","kwap","kwah","kwae","kwaeg","kwaegg","kwaegs","kwaen","kwaenj","kwaenh","kwaed","kwael","kwaelg","kwaelm","kwaelb","kwaels","kwaelt","kwaelp","kwaelh","kwaem","kwaeb","kwaebs","kwaes","kwaess","kwaeng","kwaej","kwaec","kwaek","kwaet","kwaep","kwaeh","koe","koeg","koegg","koegs","koen","koenj","koenh","koed","koel","koelg","koelm","koelb","koels","koelt","koelp","koelh","koem","koeb","koebs","koes","koess","koeng","koej","koec","koek","koet","koep","koeh","kyo","kyog","kyogg","kyogs","kyon","kyonj","kyonh","kyod","kyol","kyolg","kyolm","kyolb","kyols","kyolt","kyolp","kyolh","kyom","kyob","kyobs","kyos","kyoss","kyong","kyoj","kyoc","kyok","kyot","kyop","kyoh","ku","kug","kugg","kugs","kun","kunj","kunh","kud","kul","kulg","kulm","kulb","kuls","kult","kulp","kulh","kum","kub","kubs","kus","kuss","kung","kuj","kuc","kuk","kut","kup","kuh","kweo","kweog","kweogg","kweogs"]});var G9=y((xtt,X9)=>{X9.exports=["kweon","kweonj","kweonh","kweod","kweol","kweolg","kweolm","kweolb","kweols","kweolt","kweolp","kweolh","kweom","kweob","kweobs","kweos","kweoss","kweong","kweoj","kweoc","kweok","kweot","kweop","kweoh","kwe","kweg","kwegg","kwegs","kwen","kwenj","kwenh","kwed","kwel","kwelg","kwelm","kwelb","kwels","kwelt","kwelp","kwelh","kwem","kweb","kwebs","kwes","kwess","kweng","kwej","kwec","kwek","kwet","kwep","kweh","kwi","kwig","kwigg","kwigs","kwin","kwinj","kwinh","kwid","kwil","kwilg","kwilm","kwilb","kwils","kwilt","kwilp","kwilh","kwim","kwib","kwibs","kwis","kwiss","kwing","kwij","kwic","kwik","kwit","kwip","kwih","kyu","kyug","kyugg","kyugs","kyun","kyunj","kyunh","kyud","kyul","kyulg","kyulm","kyulb","kyuls","kyult","kyulp","kyulh","kyum","kyub","kyubs","kyus","kyuss","kyung","kyuj","kyuc","kyuk","kyut","kyup","kyuh","keu","keug","keugg","keugs","keun","keunj","keunh","keud","keul","keulg","keulm","keulb","keuls","keult","keulp","keulh","keum","keub","keubs","keus","keuss","keung","keuj","keuc","keuk","keut","keup","keuh","kyi","kyig","kyigg","kyigs","kyin","kyinj","kyinh","kyid","kyil","kyilg","kyilm","kyilb","kyils","kyilt","kyilp","kyilh","kyim","kyib","kyibs","kyis","kyiss","kying","kyij","kyic","kyik","kyit","kyip","kyih","ki","kig","kigg","kigs","kin","kinj","kinh","kid","kil","kilg","kilm","kilb","kils","kilt","kilp","kilh","kim","kib","kibs","kis","kiss","king","kij","kic","kik","kit","kip","kih","ta","tag","tagg","tags","tan","tanj","tanh","tad","tal","talg","talm","talb","tals","talt","talp","talh","tam","tab","tabs","tas","tass","tang","taj","tac","tak","tat","tap","tah","tae","taeg","taegg","taegs","taen","taenj","taenh","taed","tael","taelg","taelm","taelb","taels","taelt","taelp","taelh","taem","taeb","taebs","taes","taess","taeng","taej","taec","taek","taet","taep","taeh","tya","tyag","tyagg","tyags","tyan","tyanj","tyanh","tyad"]});var K9=y((Ctt,z9)=>{z9.exports=["tyal","tyalg","tyalm","tyalb","tyals","tyalt","tyalp","tyalh","tyam","tyab","tyabs","tyas","tyass","tyang","tyaj","tyac","tyak","tyat","tyap","tyah","tyae","tyaeg","tyaegg","tyaegs","tyaen","tyaenj","tyaenh","tyaed","tyael","tyaelg","tyaelm","tyaelb","tyaels","tyaelt","tyaelp","tyaelh","tyaem","tyaeb","tyaebs","tyaes","tyaess","tyaeng","tyaej","tyaec","tyaek","tyaet","tyaep","tyaeh","teo","teog","teogg","teogs","teon","teonj","teonh","teod","teol","teolg","teolm","teolb","teols","teolt","teolp","teolh","teom","teob","teobs","teos","teoss","teong","teoj","teoc","teok","teot","teop","teoh","te","teg","tegg","tegs","ten","tenj","tenh","ted","tel","telg","telm","telb","tels","telt","telp","telh","tem","teb","tebs","tes","tess","teng","tej","tec","tek","tet","tep","teh","tyeo","tyeog","tyeogg","tyeogs","tyeon","tyeonj","tyeonh","tyeod","tyeol","tyeolg","tyeolm","tyeolb","tyeols","tyeolt","tyeolp","tyeolh","tyeom","tyeob","tyeobs","tyeos","tyeoss","tyeong","tyeoj","tyeoc","tyeok","tyeot","tyeop","tyeoh","tye","tyeg","tyegg","tyegs","tyen","tyenj","tyenh","tyed","tyel","tyelg","tyelm","tyelb","tyels","tyelt","tyelp","tyelh","tyem","tyeb","tyebs","tyes","tyess","tyeng","tyej","tyec","tyek","tyet","tyep","tyeh","to","tog","togg","togs","ton","tonj","tonh","tod","tol","tolg","tolm","tolb","tols","tolt","tolp","tolh","tom","tob","tobs","tos","toss","tong","toj","toc","tok","tot","top","toh","twa","twag","twagg","twags","twan","twanj","twanh","twad","twal","twalg","twalm","twalb","twals","twalt","twalp","twalh","twam","twab","twabs","twas","twass","twang","twaj","twac","twak","twat","twap","twah","twae","twaeg","twaegg","twaegs","twaen","twaenj","twaenh","twaed","twael","twaelg","twaelm","twaelb","twaels","twaelt","twaelp","twaelh","twaem","twaeb","twaebs","twaes","twaess","twaeng","twaej","twaec","twaek","twaet","twaep","twaeh","toe","toeg","toegg","toegs","toen","toenj","toenh","toed","toel","toelg","toelm","toelb"]});var V9=y((Stt,Q9)=>{Q9.exports=["toels","toelt","toelp","toelh","toem","toeb","toebs","toes","toess","toeng","toej","toec","toek","toet","toep","toeh","tyo","tyog","tyogg","tyogs","tyon","tyonj","tyonh","tyod","tyol","tyolg","tyolm","tyolb","tyols","tyolt","tyolp","tyolh","tyom","tyob","tyobs","tyos","tyoss","tyong","tyoj","tyoc","tyok","tyot","tyop","tyoh","tu","tug","tugg","tugs","tun","tunj","tunh","tud","tul","tulg","tulm","tulb","tuls","tult","tulp","tulh","tum","tub","tubs","tus","tuss","tung","tuj","tuc","tuk","tut","tup","tuh","tweo","tweog","tweogg","tweogs","tweon","tweonj","tweonh","tweod","tweol","tweolg","tweolm","tweolb","tweols","tweolt","tweolp","tweolh","tweom","tweob","tweobs","tweos","tweoss","tweong","tweoj","tweoc","tweok","tweot","tweop","tweoh","twe","tweg","twegg","twegs","twen","twenj","twenh","twed","twel","twelg","twelm","twelb","twels","twelt","twelp","twelh","twem","tweb","twebs","twes","twess","tweng","twej","twec","twek","twet","twep","tweh","twi","twig","twigg","twigs","twin","twinj","twinh","twid","twil","twilg","twilm","twilb","twils","twilt","twilp","twilh","twim","twib","twibs","twis","twiss","twing","twij","twic","twik","twit","twip","twih","tyu","tyug","tyugg","tyugs","tyun","tyunj","tyunh","tyud","tyul","tyulg","tyulm","tyulb","tyuls","tyult","tyulp","tyulh","tyum","tyub","tyubs","tyus","tyuss","tyung","tyuj","tyuc","tyuk","tyut","tyup","tyuh","teu","teug","teugg","teugs","teun","teunj","teunh","teud","teul","teulg","teulm","teulb","teuls","teult","teulp","teulh","teum","teub","teubs","teus","teuss","teung","teuj","teuc","teuk","teut","teup","teuh","tyi","tyig","tyigg","tyigs","tyin","tyinj","tyinh","tyid","tyil","tyilg","tyilm","tyilb","tyils","tyilt","tyilp","tyilh","tyim","tyib","tyibs","tyis","tyiss","tying","tyij","tyic","tyik","tyit","tyip","tyih","ti","tig","tigg","tigs","tin","tinj","tinh","tid","til","tilg","tilm","tilb","tils","tilt","tilp","tilh"]});var tee=y((Dtt,eee)=>{eee.exports=["tim","tib","tibs","tis","tiss","ting","tij","tic","tik","tit","tip","tih","pa","pag","pagg","pags","pan","panj","panh","pad","pal","palg","palm","palb","pals","palt","palp","palh","pam","pab","pabs","pas","pass","pang","paj","pac","pak","pat","pap","pah","pae","paeg","paegg","paegs","paen","paenj","paenh","paed","pael","paelg","paelm","paelb","paels","paelt","paelp","paelh","paem","paeb","paebs","paes","paess","paeng","paej","paec","paek","paet","paep","paeh","pya","pyag","pyagg","pyags","pyan","pyanj","pyanh","pyad","pyal","pyalg","pyalm","pyalb","pyals","pyalt","pyalp","pyalh","pyam","pyab","pyabs","pyas","pyass","pyang","pyaj","pyac","pyak","pyat","pyap","pyah","pyae","pyaeg","pyaegg","pyaegs","pyaen","pyaenj","pyaenh","pyaed","pyael","pyaelg","pyaelm","pyaelb","pyaels","pyaelt","pyaelp","pyaelh","pyaem","pyaeb","pyaebs","pyaes","pyaess","pyaeng","pyaej","pyaec","pyaek","pyaet","pyaep","pyaeh","peo","peog","peogg","peogs","peon","peonj","peonh","peod","peol","peolg","peolm","peolb","peols","peolt","peolp","peolh","peom","peob","peobs","peos","peoss","peong","peoj","peoc","peok","peot","peop","peoh","pe","peg","pegg","pegs","pen","penj","penh","ped","pel","pelg","pelm","pelb","pels","pelt","pelp","pelh","pem","peb","pebs","pes","pess","peng","pej","pec","pek","pet","pep","peh","pyeo","pyeog","pyeogg","pyeogs","pyeon","pyeonj","pyeonh","pyeod","pyeol","pyeolg","pyeolm","pyeolb","pyeols","pyeolt","pyeolp","pyeolh","pyeom","pyeob","pyeobs","pyeos","pyeoss","pyeong","pyeoj","pyeoc","pyeok","pyeot","pyeop","pyeoh","pye","pyeg","pyegg","pyegs","pyen","pyenj","pyenh","pyed","pyel","pyelg","pyelm","pyelb","pyels","pyelt","pyelp","pyelh","pyem","pyeb","pyebs","pyes","pyess","pyeng","pyej","pyec","pyek","pyet","pyep","pyeh","po","pog","pogg","pogs","pon","ponj","ponh","pod","pol","polg","polm","polb","pols","polt","polp","polh","pom","pob","pobs","pos"]});var nee=y((Ttt,iee)=>{iee.exports=["poss","pong","poj","poc","pok","pot","pop","poh","pwa","pwag","pwagg","pwags","pwan","pwanj","pwanh","pwad","pwal","pwalg","pwalm","pwalb","pwals","pwalt","pwalp","pwalh","pwam","pwab","pwabs","pwas","pwass","pwang","pwaj","pwac","pwak","pwat","pwap","pwah","pwae","pwaeg","pwaegg","pwaegs","pwaen","pwaenj","pwaenh","pwaed","pwael","pwaelg","pwaelm","pwaelb","pwaels","pwaelt","pwaelp","pwaelh","pwaem","pwaeb","pwaebs","pwaes","pwaess","pwaeng","pwaej","pwaec","pwaek","pwaet","pwaep","pwaeh","poe","poeg","poegg","poegs","poen","poenj","poenh","poed","poel","poelg","poelm","poelb","poels","poelt","poelp","poelh","poem","poeb","poebs","poes","poess","poeng","poej","poec","poek","poet","poep","poeh","pyo","pyog","pyogg","pyogs","pyon","pyonj","pyonh","pyod","pyol","pyolg","pyolm","pyolb","pyols","pyolt","pyolp","pyolh","pyom","pyob","pyobs","pyos","pyoss","pyong","pyoj","pyoc","pyok","pyot","pyop","pyoh","pu","pug","pugg","pugs","pun","punj","punh","pud","pul","pulg","pulm","pulb","puls","pult","pulp","pulh","pum","pub","pubs","pus","puss","pung","puj","puc","puk","put","pup","puh","pweo","pweog","pweogg","pweogs","pweon","pweonj","pweonh","pweod","pweol","pweolg","pweolm","pweolb","pweols","pweolt","pweolp","pweolh","pweom","pweob","pweobs","pweos","pweoss","pweong","pweoj","pweoc","pweok","pweot","pweop","pweoh","pwe","pweg","pwegg","pwegs","pwen","pwenj","pwenh","pwed","pwel","pwelg","pwelm","pwelb","pwels","pwelt","pwelp","pwelh","pwem","pweb","pwebs","pwes","pwess","pweng","pwej","pwec","pwek","pwet","pwep","pweh","pwi","pwig","pwigg","pwigs","pwin","pwinj","pwinh","pwid","pwil","pwilg","pwilm","pwilb","pwils","pwilt","pwilp","pwilh","pwim","pwib","pwibs","pwis","pwiss","pwing","pwij","pwic","pwik","pwit","pwip","pwih","pyu","pyug","pyugg","pyugs","pyun","pyunj","pyunh","pyud","pyul","pyulg","pyulm","pyulb","pyuls","pyult","pyulp","pyulh","pyum","pyub","pyubs","pyus","pyuss","pyung","pyuj","pyuc"]});var oee=y((ktt,ree)=>{ree.exports=["pyuk","pyut","pyup","pyuh","peu","peug","peugg","peugs","peun","peunj","peunh","peud","peul","peulg","peulm","peulb","peuls","peult","peulp","peulh","peum","peub","peubs","peus","peuss","peung","peuj","peuc","peuk","peut","peup","peuh","pyi","pyig","pyigg","pyigs","pyin","pyinj","pyinh","pyid","pyil","pyilg","pyilm","pyilb","pyils","pyilt","pyilp","pyilh","pyim","pyib","pyibs","pyis","pyiss","pying","pyij","pyic","pyik","pyit","pyip","pyih","pi","pig","pigg","pigs","pin","pinj","pinh","pid","pil","pilg","pilm","pilb","pils","pilt","pilp","pilh","pim","pib","pibs","pis","piss","ping","pij","pic","pik","pit","pip","pih","ha","hag","hagg","hags","han","hanj","hanh","had","hal","halg","halm","halb","hals","halt","halp","halh","ham","hab","habs","has","hass","hang","haj","hac","hak","hat","hap","hah","hae","haeg","haegg","haegs","haen","haenj","haenh","haed","hael","haelg","haelm","haelb","haels","haelt","haelp","haelh","haem","haeb","haebs","haes","haess","haeng","haej","haec","haek","haet","haep","haeh","hya","hyag","hyagg","hyags","hyan","hyanj","hyanh","hyad","hyal","hyalg","hyalm","hyalb","hyals","hyalt","hyalp","hyalh","hyam","hyab","hyabs","hyas","hyass","hyang","hyaj","hyac","hyak","hyat","hyap","hyah","hyae","hyaeg","hyaegg","hyaegs","hyaen","hyaenj","hyaenh","hyaed","hyael","hyaelg","hyaelm","hyaelb","hyaels","hyaelt","hyaelp","hyaelh","hyaem","hyaeb","hyaebs","hyaes","hyaess","hyaeng","hyaej","hyaec","hyaek","hyaet","hyaep","hyaeh","heo","heog","heogg","heogs","heon","heonj","heonh","heod","heol","heolg","heolm","heolb","heols","heolt","heolp","heolh","heom","heob","heobs","heos","heoss","heong","heoj","heoc","heok","heot","heop","heoh","he","heg","hegg","hegs","hen","henj","henh","hed","hel","helg","helm","helb","hels","helt","help","helh","hem","heb","hebs","hes","hess","heng","hej","hec","hek","het","hep","heh"]});var aee=y((Ptt,see)=>{see.exports=["hyeo","hyeog","hyeogg","hyeogs","hyeon","hyeonj","hyeonh","hyeod","hyeol","hyeolg","hyeolm","hyeolb","hyeols","hyeolt","hyeolp","hyeolh","hyeom","hyeob","hyeobs","hyeos","hyeoss","hyeong","hyeoj","hyeoc","hyeok","hyeot","hyeop","hyeoh","hye","hyeg","hyegg","hyegs","hyen","hyenj","hyenh","hyed","hyel","hyelg","hyelm","hyelb","hyels","hyelt","hyelp","hyelh","hyem","hyeb","hyebs","hyes","hyess","hyeng","hyej","hyec","hyek","hyet","hyep","hyeh","ho","hog","hogg","hogs","hon","honj","honh","hod","hol","holg","holm","holb","hols","holt","holp","holh","hom","hob","hobs","hos","hoss","hong","hoj","hoc","hok","hot","hop","hoh","hwa","hwag","hwagg","hwags","hwan","hwanj","hwanh","hwad","hwal","hwalg","hwalm","hwalb","hwals","hwalt","hwalp","hwalh","hwam","hwab","hwabs","hwas","hwass","hwang","hwaj","hwac","hwak","hwat","hwap","hwah","hwae","hwaeg","hwaegg","hwaegs","hwaen","hwaenj","hwaenh","hwaed","hwael","hwaelg","hwaelm","hwaelb","hwaels","hwaelt","hwaelp","hwaelh","hwaem","hwaeb","hwaebs","hwaes","hwaess","hwaeng","hwaej","hwaec","hwaek","hwaet","hwaep","hwaeh","hoe","hoeg","hoegg","hoegs","hoen","hoenj","hoenh","hoed","hoel","hoelg","hoelm","hoelb","hoels","hoelt","hoelp","hoelh","hoem","hoeb","hoebs","hoes","hoess","hoeng","hoej","hoec","hoek","hoet","hoep","hoeh","hyo","hyog","hyogg","hyogs","hyon","hyonj","hyonh","hyod","hyol","hyolg","hyolm","hyolb","hyols","hyolt","hyolp","hyolh","hyom","hyob","hyobs","hyos","hyoss","hyong","hyoj","hyoc","hyok","hyot","hyop","hyoh","hu","hug","hugg","hugs","hun","hunj","hunh","hud","hul","hulg","hulm","hulb","huls","hult","hulp","hulh","hum","hub","hubs","hus","huss","hung","huj","huc","huk","hut","hup","huh","hweo","hweog","hweogg","hweogs","hweon","hweonj","hweonh","hweod","hweol","hweolg","hweolm","hweolb","hweols","hweolt","hweolp","hweolh","hweom","hweob","hweobs","hweos","hweoss","hweong","hweoj","hweoc","hweok","hweot","hweop","hweoh","hwe","hweg","hwegg","hwegs"]});var uee=y((Ett,lee)=>{lee.exports=["hwen","hwenj","hwenh","hwed","hwel","hwelg","hwelm","hwelb","hwels","hwelt","hwelp","hwelh","hwem","hweb","hwebs","hwes","hwess","hweng","hwej","hwec","hwek","hwet","hwep","hweh","hwi","hwig","hwigg","hwigs","hwin","hwinj","hwinh","hwid","hwil","hwilg","hwilm","hwilb","hwils","hwilt","hwilp","hwilh","hwim","hwib","hwibs","hwis","hwiss","hwing","hwij","hwic","hwik","hwit","hwip","hwih","hyu","hyug","hyugg","hyugs","hyun","hyunj","hyunh","hyud","hyul","hyulg","hyulm","hyulb","hyuls","hyult","hyulp","hyulh","hyum","hyub","hyubs","hyus","hyuss","hyung","hyuj","hyuc","hyuk","hyut","hyup","hyuh","heu","heug","heugg","heugs","heun","heunj","heunh","heud","heul","heulg","heulm","heulb","heuls","heult","heulp","heulh","heum","heub","heubs","heus","heuss","heung","heuj","heuc","heuk","heut","heup","heuh","hyi","hyig","hyigg","hyigs","hyin","hyinj","hyinh","hyid","hyil","hyilg","hyilm","hyilb","hyils","hyilt","hyilp","hyilh","hyim","hyib","hyibs","hyis","hyiss","hying","hyij","hyic","hyik","hyit","hyip","hyih","hi","hig","higg","higs","hin","hinj","hinh","hid","hil","hilg","hilm","hilb","hils","hilt","hilp","hilh","him","hib","hibs","his","hiss","hing","hij","hic","hik","hit","hip","hih","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var hee=y((Rtt,cee)=>{cee.exports=["Kay ","Kayng ","Ke ","Ko ","Kol ","Koc ","Kwi ","Kwi ","Kyun ","Kul ","Kum ","Na ","Na ","Na ","La ","Na ","Na ","Na ","Na ","Na ","Nak ","Nak ","Nak ","Nak ","Nak ","Nak ","Nak ","Nan ","Nan ","Nan ","Nan ","Nan ","Nan ","Nam ","Nam ","Nam ","Nam ","Nap ","Nap ","Nap ","Nang ","Nang ","Nang ","Nang ","Nang ","Nay ","Nayng ","No ","No ","No ","No ","No ","No ","No ","No ","No ","No ","No ","No ","Nok ","Nok ","Nok ","Nok ","Nok ","Nok ","Non ","Nong ","Nong ","Nong ","Nong ","Noy ","Noy ","Noy ","Noy ","Nwu ","Nwu ","Nwu ","Nwu ","Nwu ","Nwu ","Nwu ","Nwu ","Nuk ","Nuk ","Num ","Nung ","Nung ","Nung ","Nung ","Nung ","Twu ","La ","Lak ","Lak ","Lan ","Lyeng ","Lo ","Lyul ","Li ","Pey ","Pen ","Pyen ","Pwu ","Pwul ","Pi ","Sak ","Sak ","Sam ","Sayk ","Sayng ","Sep ","Sey ","Sway ","Sin ","Sim ","Sip ","Ya ","Yak ","Yak ","Yang ","Yang ","Yang ","Yang ","Yang ","Yang ","Yang ","Yang ","Ye ","Ye ","Ye ","Ye ","Ye ","Ye ","Ye ","Ye ","Ye ","Ye ","Ye ","Yek ","Yek ","Yek ","Yek ","Yen ","Yen ","Yen ","Yen ","Yen ","Yen ","Yen ","Yen ","Yen ","Yen ","Yen ","Yen ","Yen ","Yen ","Yel ","Yel ","Yel ","Yel ","Yel ","Yel ","Yem ","Yem ","Yem ","Yem ","Yem ","Yep ","Yeng ","Yeng ","Yeng ","Yeng ","Yeng ","Yeng ","Yeng ","Yeng ","Yeng ","Yeng ","Yeng ","Yeng ","Yeng ","Yey ","Yey ","Yey ","Yey ","O ","Yo ","Yo ","Yo ","Yo ","Yo ","Yo ","Yo ","Yo ","Yo ","Yo ","Yong ","Wun ","Wen ","Yu ","Yu ","Yu ","Yu ","Yu ","Yu ","Yu ","Yu ","Yu ","Yu ","Yuk ","Yuk ","Yuk ","Yun ","Yun ","Yun ","Yun ","Yul ","Yul ","Yul ","Yul ","Yung ","I ","I ","I ","I ","I ","I ","I ","I ","I ","I ","I ","I ","I ","I ","Ik ","Ik ","In ","In ","In ","In ","In ","In ","In ","Im ","Im ","Im ","Ip ","Ip ","Ip ","Cang ","Cek ","Ci ","Cip ","Cha ","Chek "]});var gee=y((_tt,dee)=>{dee.exports=["Chey ","Thak ","Thak ","Thang ","Thayk ","Thong ","Pho ","Phok ","Hang ","Hang ","Hyen ","Hwak ","Wu ","Huo ","[?] ","[?] ","Zhong ","[?] ","Qing ","[?] ","[?] ","Xi ","Zhu ","Yi ","Li ","Shen ","Xiang ","Fu ","Jing ","Jing ","Yu ","[?] ","Hagi ","[?] ","Zhu ","[?] ","[?] ","Yi ","Du ","[?] ","[?] ","[?] ","Fan ","Si ","Guan ","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]"]});var fee=y((Ltt,pee)=>{pee.exports=["ff","fi","fl","ffi","ffl","st","st","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","mn","me","mi","vn","mkh","[?]","[?]","[?]","[?]","[?]","yi","","ay","`","","d","h","k","l","m","m","t","+","sh","s","sh","s","a","a","","b","g","d","h","v","z","[?]","t","y","k","k","l","[?]","l","[?]","n","n","[?]","p","p","[?]","ts","ts","r","sh","t","vo","b","k","p","l","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""]});var bee=y((Itt,mee)=>{mee.exports=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""]});var vee=y((Ftt,yee)=>{yee.exports=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","[?]","[?]","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","","","","","","","","","","","","","[?]","[?]","[?]"]});var xee=y((jtt,wee)=>{wee.exports=["[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","","","","~","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","..","--","-","_","_","(",") ","{","} ","[","] ","[(",")] ","<<",">> ","<","> ","[","] ","{","}","[?]","[?]","[?]","[?]","","","","","","","",",",",",".","",";",":","?","!","-","(",")","{","}","{","}","#","&","*","+","-","<",">","=","","\\","$","%","@","[?]","[?]","[?]","[?]","","","","[?]","","[?]","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","[?]","[?]",""]});var See=y((Mtt,Cee)=>{Cee.exports=["[?]","!",'"',"#","$","%","&","'","(",")","*","+",",","-",".","/","0","1","2","3","4","5","6","7","8","9",":",";","<","=",">","?","@","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","[","\\","]","^","_","`","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","{","|","}","~","[?]","[?]",".","[","]",",","*","wo","a","i","u","e","o","ya","yu","yo","tu","+","a","i","u","e","o","ka","ki","ku","ke","ko","sa","si","su","se","so","ta","ti","tu","te","to","na","ni","nu","ne","no","ha","hi","hu","he","ho","ma","mi","mu","me","mo","ya","yu","yo","ra","ri","ru","re","ro","wa","n",":",";","","g","gg","gs","n","nj","nh","d","dd","r","lg","lm","lb","ls","lt","lp","rh","m","b","bb","bs","s","ss","","j","jj","c","k","t","p","h","[?]","[?]","[?]","a","ae","ya","yae","eo","e","[?]","[?]","yeo","ye","o","wa","wae","oe","[?]","[?]","yo","u","weo","we","wi","yu","[?]","[?]","eu","yi","i","[?]","[?]","[?]","/C","PS","!","-","|","Y=","W=","[?]","|","-","|","-","|","#","O","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","[?]","{","|","}","","","",""]});var bD=y((Ott,Dee)=>{"use strict";var I={},CTe=/(?![\x00-\x7F]|[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3})./g;Dee.exports=function(n){return n.replace(CTe,STe)};function STe(n){var e=TTe(n);if(e>65535)return"_";var t=e>>8,i=e&255;if(t>24&&t<30||t>215&&t<249)return"";if(!I[t])switch(DTe(t)){case"00":I[t]=Y4();break;case"01":I[t]=J4();break;case"02":I[t]=U4();break;case"03":I[t]=G4();break;case"04":I[t]=K4();break;case"05":I[t]=V4();break;case"06":I[t]=t6();break;case"07":I[t]=n6();break;case"09":I[t]=o6();break;case"0a":I[t]=a6();break;case"0b":I[t]=u6();break;case"0c":I[t]=h6();break;case"0d":I[t]=g6();break;case"0e":I[t]=f6();break;case"0f":I[t]=b6();break;case"10":I[t]=v6();break;case"11":I[t]=x6();break;case"12":I[t]=S6();break;case"13":I[t]=T6();break;case"14":I[t]=P6();break;case"15":I[t]=R6();break;case"16":I[t]=L6();break;case"17":I[t]=F6();break;case"18":I[t]=M6();break;case"1e":I[t]=A6();break;case"1f":I[t]=H6();break;case"20":I[t]=B6();break;case"21":I[t]=Y6();break;case"22":I[t]=J6();break;case"23":I[t]=U6();break;case"24":I[t]=G6();break;case"25":I[t]=K6();break;case"26":I[t]=V6();break;case"27":I[t]=tV();break;case"28":I[t]=nV();break;case"2e":I[t]=oV();break;case"2f":I[t]=aV();break;case"30":I[t]=uV();break;case"31":I[t]=hV();break;case"32":I[t]=gV();break;case"33":I[t]=fV();break;case"4d":I[t]=bV();break;case"4e":I[t]=vV();break;case"4f":I[t]=xV();break;case"50":I[t]=SV();break;case"51":I[t]=TV();break;case"52":I[t]=PV();break;case"53":I[t]=RV();break;case"54":I[t]=LV();break;case"55":I[t]=FV();break;case"56":I[t]=MV();break;case"57":I[t]=AV();break;case"58":I[t]=HV();break;case"59":I[t]=BV();break;case"5a":I[t]=YV();break;case"5b":I[t]=JV();break;case"5c":I[t]=UV();break;case"5d":I[t]=GV();break;case"5e":I[t]=KV();break;case"5f":I[t]=VV();break;case"60":I[t]=t8();break;case"61":I[t]=n8();break;case"62":I[t]=o8();break;case"63":I[t]=a8();break;case"64":I[t]=u8();break;case"65":I[t]=h8();break;case"66":I[t]=g8();break;case"67":I[t]=f8();break;case"68":I[t]=b8();break;case"69":I[t]=v8();break;case"6a":I[t]=x8();break;case"6b":I[t]=S8();break;case"6c":I[t]=T8();break;case"6d":I[t]=P8();break;case"6e":I[t]=R8();break;case"6f":I[t]=L8();break;case"70":I[t]=F8();break;case"71":I[t]=M8();break;case"72":I[t]=A8();break;case"73":I[t]=H8();break;case"74":I[t]=B8();break;case"75":I[t]=Y8();break;case"76":I[t]=J8();break;case"77":I[t]=U8();break;case"78":I[t]=G8();break;case"79":I[t]=K8();break;case"7a":I[t]=V8();break;case"7b":I[t]=t5();break;case"7c":I[t]=n5();break;case"7d":I[t]=o5();break;case"7e":I[t]=a5();break;case"7f":I[t]=u5();break;case"80":I[t]=h5();break;case"81":I[t]=g5();break;case"82":I[t]=f5();break;case"83":I[t]=b5();break;case"84":I[t]=v5();break;case"85":I[t]=x5();break;case"86":I[t]=S5();break;case"87":I[t]=T5();break;case"88":I[t]=P5();break;case"89":I[t]=R5();break;case"8a":I[t]=L5();break;case"8b":I[t]=F5();break;case"8c":I[t]=M5();break;case"8d":I[t]=A5();break;case"8e":I[t]=H5();break;case"8f":I[t]=B5();break;case"90":I[t]=Y5();break;case"91":I[t]=J5();break;case"92":I[t]=U5();break;case"93":I[t]=G5();break;case"94":I[t]=K5();break;case"95":I[t]=V5();break;case"96":I[t]=t7();break;case"97":I[t]=n7();break;case"98":I[t]=o7();break;case"99":I[t]=a7();break;case"9a":I[t]=u7();break;case"9b":I[t]=h7();break;case"9c":I[t]=g7();break;case"9d":I[t]=f7();break;case"9e":I[t]=b7();break;case"9f":I[t]=v7();break;case"a0":I[t]=x7();break;case"a1":I[t]=S7();break;case"a2":I[t]=T7();break;case"a3":I[t]=P7();break;case"a4":I[t]=R7();break;case"ac":I[t]=L7();break;case"ad":I[t]=F7();break;case"ae":I[t]=M7();break;case"af":I[t]=A7();break;case"b0":I[t]=H7();break;case"b1":I[t]=B7();break;case"b2":I[t]=Y7();break;case"b3":I[t]=J7();break;case"b4":I[t]=U7();break;case"b5":I[t]=G7();break;case"b6":I[t]=K7();break;case"b7":I[t]=V7();break;case"b8":I[t]=t9();break;case"b9":I[t]=n9();break;case"ba":I[t]=o9();break;case"bb":I[t]=a9();break;case"bc":I[t]=u9();break;case"bd":I[t]=h9();break;case"be":I[t]=g9();break;case"bf":I[t]=f9();break;case"c0":I[t]=b9();break;case"c1":I[t]=v9();break;case"c2":I[t]=x9();break;case"c3":I[t]=S9();break;case"c4":I[t]=T9();break;case"c5":I[t]=P9();break;case"c6":I[t]=R9();break;case"c7":I[t]=L9();break;case"c8":I[t]=F9();break;case"c9":I[t]=M9();break;case"ca":I[t]=A9();break;case"cb":I[t]=H9();break;case"cc":I[t]=B9();break;case"cd":I[t]=Y9();break;case"ce":I[t]=J9();break;case"cf":I[t]=U9();break;case"d0":I[t]=G9();break;case"d1":I[t]=K9();break;case"d2":I[t]=V9();break;case"d3":I[t]=tee();break;case"d4":I[t]=nee();break;case"d5":I[t]=oee();break;case"d6":I[t]=aee();break;case"d7":I[t]=uee();break;case"f9":I[t]=hee();break;case"fa":I[t]=gee();break;case"fb":I[t]=fee();break;case"fc":I[t]=bee();break;case"fd":I[t]=vee();break;case"fe":I[t]=xee();break;case"ff":I[t]=See();break;default:return""}return I[t][i]}function DTe(n){return(n+256).toString(16).substr(-2)}function TTe(n){for(var e,t,i,r,o,s,a;Array.isArray(n);)n=n[0];switch(n.length){case 1:return Zo(n);case 2:return e=Zo(n.substr(0,1)),t=Zo(n.substr(1,1)),o=(e&3)<<6|t&63,s=(e&28)>>2,s<<8|o;case 3:return e=Zo(n.substr(0,1)),t=Zo(n.substr(1,1)),i=Zo(n.substr(2,1)),o=(t&3)<<6|i&63,s=(e&15)<<4|(t&60)>>2,s<<8|o;default:return e=Zo(n.substr(0,1)),t=Zo(n.substr(1,1)),i=Zo(n.substr(2,1)),r=Zo(n.substr(3,1)),o=(i&3)<<6|r&63,s=(t&15)<<4|(i&60)>>2,a=(e&7)<<5|(t&48)>>4,a<<16|s<<8|o}}function Zo(n){var e=n+"",t=e.charCodeAt(0);if(55296<=t&&t<=56319){var i=t;if(e.length===1)return t;var r=e.charCodeAt(1);return(i-55296)*1024+(r-56320)+65536}return 56320<=t&&t<=57343,t}});var Tee=k(()=>{"use strict"});async function Eee(n,e,t,i=""){if(e=="vim")return(await n.eval(t)).toString();if(e=="shell"){let s=await(0,Pee.promisify)(kee.exec)(t);return s.stdout.replace(/\s*$/,"")||s.stderr}let r=[`snip._reset("${sb(i)}")`];r.push(...t.split(/\r?\n/).map(s=>s.replace(/\t/g," "))),await md(n,r);let o=await n.call("pyxeval","str(snip.rv)");return typeof o=="string"?o:""}function yD(n){let{range:e,regex:t,line:i}=n,r=[];if(t&&e!=null){let o=i.slice(e.start.character,e.end.character);r.push(`pattern = re.compile("${sb(t)}")`),r.push(`match = pattern.search("${sb(o)}")`)}else r.push("match = None");return r.join(`
|
||
`)}function Ree(n){let{range:e,context:t,line:i}=n,r=["import re, os, vim, string, random",`path = vim.eval('expand("%:p")') or ""`,"fn = os.path.basename(path)"];t?(r.push("snip = ContextSnippet()"),r.push(`context = ${t}`)):r.push("context = True");let o=`(${e.start.line},${Buffer.byteLength(i.slice(0,e.start.character))})`,s=`(${e.start.line},${Buffer.byteLength(i.slice(0,e.end.character))})`,a=i.match(/^\s*/)[0];return r.push(`snip = SnippetUtil("${sb(a)}", ${o}, ${s}, context)`),r}async function md(n,e){try{await n.command(`pyx ${PTe(e.join(`
|
||
`))}`)}catch(t){let i=new Error(t instanceof Error?t.message:t.toString());throw i.stack=`Error on execute python code:
|
||
${e.join(`
|
||
`)}
|
||
`+(t instanceof Error?t.stack:t),i}}function ab(n){let e=Object.keys(n),t=e.length?Math.max.apply(null,e.map(r=>Number(r))):0,i=new Array(t).fill('""');for(let[r,o]of Object.entries(n))i[r]=`"${sb(o)}"`;return`t = (${i.join(",")},)`}function PTe(n,e=!1){if(!kTe&&e===!1)return n;let t=["import traceback, vim","vim.vars['errmsg'] = ''","try:"];return t.push(...n.split(`
|
||
`).map(i=>" "+i)),t.push("except Exception as e:"),t.push(" vim.vars['errmsg'] = traceback.format_exc()"),t.join(`
|
||
`)}function sb(n){return n.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\t/g,"\\t").replace(/\n/g,"\\n")}function _ee(n){if(n.indexOf("\\z")!==-1)throw new Error("pattern \\z not supported");if(n.indexOf("(?s)")!==-1)throw new Error("pattern (?s) not supported");if(n.indexOf("(?x)")!==-1)throw new Error("pattern (?x) not supported");if(n.indexOf(`
|
||
`)!==-1)throw new Error("pattern \\n not supported");if(RTe.test(n))throw new Error("pattern (?id/name)yes-pattern|no-pattern not supported");return n.replace(FTe,(e,t)=>e=="\\A"?"^":e.startsWith("(?#")?"":e.startsWith("(?P<")?"(?"+e.slice(3):e.startsWith("(?P=")?`\\k<${t}>`:"")}var kee,Pee,Ntt,kTe,ETe,RTe,_Te,LTe,ITe,FTe,SF=k(()=>{"use strict";kee=require("child_process"),Pee=require("util"),Ntt=q()("snippets-eval"),kTe=process.env.VIM_NODE_RPC=="1";ETe=/\\A/,RTe=/\(\?\(\w+\).+\|/,_Te=/\(\?#.*?\)/,LTe=/\(\?P<\w+>.*?\)/,ITe=/\(\?P=(\w+)\)/,FTe=new RegExp(`${_Te.source}|${ETe.source}|${LTe.source}|${ITe.source}`,"g")});function Iee(n,e){let t=[...n];for(;t.length>0;){let i=t.shift();if(!e(i))break;t.unshift(...i.children)}}function ATe(n,e=[]){let t="",i=n.length,r=0,o=!1,s=!1;for(;r<i;){let a=n[r];if(a.charCodeAt(0)===92&&!e.includes(r)){let l=n[r+1];if(OTe.includes(l)){r++;continue}if(l=="u"||l=="l"){let u=n[r+2];u&&(t=t+(l=="u"?u.toUpperCase():u.toLowerCase())),r=r+3;continue}if(l=="U"||l=="L"){l=="U"?o=!0:s=!0,r=r+2;continue}if(l=="E"){o=!1,s=!1,r=r+2;continue}if(l=="n"){t+=`
|
||
`,r=r+2;continue}if(l=="t"){t+=" ",r=r+2;continue}}o?a=a.toUpperCase():s&&(a=a.toLowerCase()),t+=a,r++}return t}var Fee,jTe,Lee,MTe,fo,vD,$o,yt,Jo,wD,ct,bd,lb,yd,ur,mo,vd,As,OTe,xD=k(()=>{"use strict";Fee=S(bD());nt();Tee();_e();SF();jTe=q()("snippets-parser"),Lee=["VISUAL","YANK","UUID"],MTe=["d","g","i","m","s","u","y"],fo=class{static isDigitCharacter(e){return e>=48&&e<=57}static isVariableCharacter(e){return e===95||e>=97&&e<=122||e>=65&&e<=90}constructor(){this.text("")}text(e){this.value=e,this.pos=0}tokenText(e){return this.value.substr(e.pos,e.len)}next(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};let e=this.pos,t=0,i=this.value.charCodeAt(e),r;if(r=fo._table[i],typeof r=="number")return this.pos+=1,{type:r,pos:e,len:1};if(fo.isDigitCharacter(i)){r=8;do t+=1,i=this.value.charCodeAt(e+t);while(fo.isDigitCharacter(i));return this.pos+=t,{type:r,pos:e,len:t}}if(fo.isVariableCharacter(i)){r=9;do i=this.value.charCodeAt(e+ ++t);while(fo.isVariableCharacter(i)||fo.isDigitCharacter(i));return this.pos+=t,{type:r,pos:e,len:t}}r=10;do t+=1,i=this.value.charCodeAt(e+t);while(!isNaN(i)&&typeof fo._table[i]>"u"&&!fo.isDigitCharacter(i)&&!fo.isVariableCharacter(i));return this.pos+=t,{type:r,pos:e,len:t}}},vD=fo;vD._table={[36]:0,[58]:1,[44]:2,[123]:3,[125]:4,[92]:5,[47]:6,[124]:7,[43]:11,[45]:12,[63]:13,[40]:15,[41]:16,[96]:17,[33]:18};$o=class{constructor(){this._children=[]}appendChild(e){return e instanceof yt&&this._children[this._children.length-1]instanceof yt?this._children[this._children.length-1].value+=e.value:(e.parent=this,this._children.push(e)),this}setOnlyChild(e){e.parent=this,this._children=[e]}replaceChildren(e){for(let t of e)t.parent=this;this._children=e}get children(){return this._children}get snippet(){let e=this;for(;;){if(!e)return;if(e instanceof vd)return e;e=e.parent}}toString(){return this.children.reduce((e,t)=>e+t.toString(),"")}len(){return 0}},yt=class extends $o{constructor(t){super();this.value=t}static escape(t){return t.replace(/\$|}|\\/g,"\\$&")}toString(){return this.value}toTextmateString(){return yt.escape(this.value)}len(){return this.value.length}clone(){return new yt(this.value)}},Jo=class extends $o{constructor(t,i,r){super();this.code=t;this.kind=i;this._value="";this._related=[];if(i==="python"){let{_related:o}=this,s,a=/\bt\[(\d+)\]/g;for(;s=a.exec(t),s!=null;){let l=parseInt(s[1],10);o.includes(l)||o.push(l)}}typeof r=="string"&&(this._value=r)}get related(){return this._related}update(t){if(this.kind!=="python")return;let i=new Set;this.code=this.code.replace(/\bt\[(\d+)\]/g,(r,o)=>{let s=Number(o),a=t.has(s)?t.get(s):s;return i.add(a),`t[${a}]`}),this._related=Array.from(i)}get index(){if(this.parent instanceof ct)return this.parent.index}async resolve(t){if(!this.code.length)return;let i=await Eee(t,this.kind,this.code,this._value??"");i!=null&&(this._value=i)}len(){return this._value.length}toString(){return this._value}get value(){return this._value}toTextmateString(){let t="";return this.kind=="python"?t="!p ":this.kind=="shell"?t="":this.kind=="vim"&&(t="!v "),"`"+t+this.code+"`"}clone(){return new Jo(this.code,this.kind,this.value)}},wD=class extends $o{},ct=class extends wD{constructor(t){super();this.index=t;this.primary=!1}get isFinalTabstop(){return this.index===0}get choice(){return this._children.length===1&&this._children[0]instanceof bd?this._children[0]:void 0}toTextmateString(){let t="";return this.transform&&(t=this.transform.toTextmateString()),this.children.length===0&&!this.transform?`$${this.index}`:this.children.length===0?`\${${this.index}${t}}`:this.choice?`\${${this.index}|${this.choice.toTextmateString()}|${t}}`:`\${${this.index}:${this.children.map(i=>i.toTextmateString()).join("")}${t}}`}clone(){let t=new ct(this.index);return this.transform&&(t.transform=this.transform.clone()),t._children=this.children.map(i=>i.clone()),t}},bd=class extends $o{constructor(){super(...arguments);this.options=[]}appendChild(t){return t instanceof yt&&(t.parent=this,this.options.push(t)),this}toString(){return this.options[0].value}toTextmateString(){return this.options.map(t=>t.value.replace(/\||,/g,"\\$&")).join(",")}len(){return this.options[0].len()}clone(){let t=new bd;for(let i of this.options)t.appendChild(i);return t}},lb=class extends $o{constructor(){super(...arguments);this.ascii=!1;this.ultisnip=!1}resolve(t){let i=!1,r=t.replace(this.regexp,(...o)=>(i=!0,this._replace(o.slice(0,-2))));return!i&&this._children.some(o=>o instanceof ur&&Boolean(o.elseValue))&&(r=this._replace([])),r}_replace(t){let i="",r=[];for(let o of this._children)if(o instanceof ur){let s=o.resolve(t[o.index]||"");if(this.ultisnip&&s.indexOf("\\")!==-1){let a=i.length;r.push(...CB(s,"\\").map(l=>l+a))}i+=s}else o instanceof yd?i+=o.resolve(t[o.index]):i+=o.toString();return this.ascii&&(i=(0,Fee.default)(i)),this.ultisnip?ATe(i,r):i}toString(){return""}toTextmateString(){return`/${this.regexp.source}/${this.children.map(t=>t.toTextmateString())}/${(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")}`}clone(){let t=new lb;return t.regexp=new RegExp(this.regexp.source,(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),t._children=this.children.map(i=>i.clone()),t}},yd=class extends $o{constructor(t,i,r){super();this.index=t;this.ifValue=i;this.elseValue=r}resolve(t){return t?this.ifValue:this.elseValue}toTextmateString(){return"(?"+this.index+":"+this.ifValue+(this.elseValue?":"+this.elseValue:"")+")"}clone(){return new yd(this.index,this.ifValue,this.elseValue)}},ur=class extends $o{constructor(t,i,r,o){super();this.index=t;this.shorthandName=i;this.ifValue=r;this.elseValue=o}resolve(t){return this.shorthandName==="upcase"?t?t.toLocaleUpperCase():"":this.shorthandName==="downcase"?t?t.toLocaleLowerCase():"":this.shorthandName==="capitalize"?t?t[0].toLocaleUpperCase()+t.substr(1):"":this.shorthandName==="pascalcase"?t?this._toPascalCase(t):"":Boolean(t)&&typeof this.ifValue=="string"?this.ifValue:!t&&typeof this.elseValue=="string"?this.elseValue:t||""}_toPascalCase(t){let i=t.match(/[a-z]+/gi);return i?i.map(r=>r.charAt(0).toUpperCase()+r.substr(1).toLowerCase()).join(""):t}toTextmateString(){let t="${";return t+=this.index,this.shorthandName?t+=`:/${this.shorthandName}`:this.ifValue&&this.elseValue?t+=`:?${this.ifValue}:${this.elseValue}`:this.ifValue?t+=`:+${this.ifValue}`:this.elseValue&&(t+=`:-${this.elseValue}`),t+="}",t}clone(){return new ur(this.index,this.shorthandName,this.ifValue,this.elseValue)}},mo=class extends wD{constructor(t,i){super();this.name=t;this._resolved=!1;typeof i=="boolean"&&(this._resolved=i)}get resolved(){return this._resolved}async resolve(t){let i=await t.resolve(this);if(this._resolved=!0,i&&i.includes(`
|
||
`)){let r="";this.snippet.walk(u=>{if(u==this)return!1;if(u instanceof yt){let c=u.toString().split(/\r?\n/);r=c[c.length-1].match(/^\s*/)[0]}return!0});let o=i.split(`
|
||
`),s=o.filter(u=>u.length>0).map(u=>u.match(/^\s*/)[0]),a=s.length==0?"":s.reduce((u,c)=>u.length<c.length?u:c);i=o.map((u,c)=>c==0||u.length==0||!u.startsWith(a)?u:r+u.slice(a.length)).join(`
|
||
`)}return this.transform&&(i=this.transform.resolve(i||"")),i!==void 0?(this._children=[new yt(i)],!0):!1}toTextmateString(){let t="";return this.transform&&(t=this.transform.toTextmateString()),this.children.length===0?`\${${this.name}${t}}`:`\${${this.name}:${this.children.map(i=>i.toTextmateString()).join("")}${t}}`}clone(){let t=new mo(this.name,this.resolved);return this.transform&&(t.transform=this.transform.clone()),t._children=this.children.map(i=>i.clone()),t}};vd=class extends $o{constructor(t){super();this.ultisnip=t===!0}get hasPython(){return this.ultisnip?this.pyBlocks.length>0:!1}get hasCodeBlock(){if(!this.ultisnip)return!1;let{pyBlocks:t,otherBlocks:i}=this;return t.length>0||i.length>0}get values(){if(this._values)return this._values;let t={},i=0;this.placeholders.forEach(r=>{i=Math.max(r.index,i),r.transform==null&&(r.primary||t[r.index]===void 0)&&(t[r.index]=r.toString())});for(let r=0;r<=i;r++)t[r]===void 0&&(t[r]="");return this._values=t,t}get orderedPyIndexBlocks(){let t=[],i=this.pyBlocks.filter(a=>typeof a.index=="number");if(i.length==0)return t;let r=i.map(a=>a.index),o=[],s=a=>{let{related:l}=a;return l.length==0||l.every(u=>!r.includes(u)||o.includes(u))?(o.push(a.index),t.push(a),!0):!1};for(;i.length>0;){let a=!1;for(let l of i)s(l)&&(a=!0);if(!a)break;i=i.filter(l=>!o.includes(l.index))}return t}async evalCodeBlocks(t,i){let{pyBlocks:r,otherBlocks:o}=this;if(await Promise.all(o.map(s=>{let a=s.value;return s.resolve(t).then(()=>{s.parent instanceof ct&&a!==s.value&&this.onPlaceholderUpdate(s.parent)})})),r.length){let s=ab(this.values);await md(t,[...i,s]);for(let l of r){let u=l.value;await l.resolve(t),u!==l.value&&l.parent instanceof ct&&(this.onPlaceholderUpdate(l.parent),await md(t,[ab(this.values)]))}for(let l of this.orderedPyIndexBlocks)await this.updatePyIndexBlock(t,l);let a=r.filter(l=>l.index===void 0&&l.related.length>0);for(let l of a)await l.resolve(t)}}async updatePythonCodes(t,i){let r;if(i instanceof ct)r=i.index;else for(;i.parent;){if(i instanceof ct){r=i.index;break}i=i.parent}if(r===void 0)return;let o=this.getDependentPyIndexBlocks(r);await md(t,[ab(this.values)]);for(let a of o)await this.updatePyIndexBlock(t,a);let s=this.pyBlocks.filter(a=>a.index===void 0&&a.related.length>0);for(let a of s)await a.resolve(t)}getDependentPyIndexBlocks(t){let i=[],r=[],o=this.pyBlocks.filter(a=>typeof a.index=="number"),s=a=>{let l=o.filter(u=>!r.includes(u.index)&&u.related.includes(a));l.length>0&&(i.push(...l),l.forEach(u=>{s(u.index)}))};return s(t),i}async updatePyIndexBlock(t,i){let r=i.value;await i.resolve(t),r!==i.value&&(i.parent instanceof ct&&this.onPlaceholderUpdate(i.parent),await md(t,[ab(this.values)]))}get placeholderInfo(){if(!this._placeholders){let t=[],i=[],r=[],o=[];this.walk(s=>{if(s instanceof ct)o.push(s);else if(s instanceof mo){let a=s.name.charCodeAt(0);(a<65||a>90)&&t.push(s)}else s instanceof Jo&&(s.kind==="python"?i.push(s):r.push(s));return!0}),this._placeholders={placeholders:o,pyBlocks:i,otherBlocks:r,variables:t}}return this._placeholders}get variables(){return this.placeholderInfo.variables}get placeholders(){return this.placeholderInfo.placeholders}get pyBlocks(){return this.placeholderInfo.pyBlocks}get otherBlocks(){return this.placeholderInfo.otherBlocks}get maxIndexNumber(){let{placeholders:t}=this;return t.reduce((i,r)=>Math.max(i,r.index),0)}get first(){let{placeholders:t,variables:i}=this,[r,o]=_B(t.filter(s=>!s.transform),s=>s.index!==0);if(r.length){let s=Math.min.apply(null,r.map(l=>l.index)),a=r.filter(l=>l.index==s);return a.find(l=>l.primary)??a[0]}return i.length?i[0]:o.find(s=>s.primary)??o[0]}insertSnippet(t,i,r,o){let s=i instanceof ct?i.index:this.maxIndexNumber+1,[a,l]=r,u=o?yD(o):void 0,c=new As(!!o,u).parse(t,!0),h=c.maxIndexNumber+1,d=new Map;for(let m of c.placeholders){let b=m.index;m.isFinalTabstop?m.index=h+s:m.index=m.index+s,d.set(b,m.index)}o&&c.pyBlocks.forEach(m=>{m.update(d)});let g=new Map;this.walk(m=>{if(m instanceof ct&&m.index>s){let b=m.index;m.index=m.index+h,g.set(b,m.index)}return!0}),this.hasPython&&this.walk(m=>(m instanceof Jo&&m.update(g),!0));let p=c.first,f=c.children.slice();return a&&f.unshift(new yt(a)),l&&f.push(new yt(l)),this.replace(i,f),p}async update(t,i,r){this.resetMarker(i,r),this.hasPython&&await this.updatePythonCodes(t,i)}deleteText(t,i){let r=0,o,s=t+i,a=0;if(this.walk(g=>{let p=g.len();return g instanceof yt&&t>=r&&r+p>=s?(o=g,a=t-r,!1):(r+=p,!0)}),!o)return!1;let l=o.parent,u=o.value,c=u.slice(0,a)+u.slice(a+i),h=l.children.slice(),d=h.indexOf(o);return h.splice(d,1,new yt(c)),l.replaceChildren(h),!0}resetMarker(t,i){let r;t instanceof ct?r=this.placeholders.filter(o=>o.index==t.index):r=this.variables.filter(o=>o.name==t.name);for(let o of r){let s=o.transform?o.transform.resolve(i):i;o.setOnlyChild(new yt(s||""))}this.synchronizeParents(r),this.reset()}onPlaceholderUpdate(t){let i=t.toString(),r;t instanceof ct?(this.values[t.index]=i,r=this.placeholders.filter(o=>o.index==t.index)):r=this.variables.filter(o=>o.name==t.name);for(let o of r){if(o===t)continue;let s=o.transform?o.transform.resolve(i):i;o.setOnlyChild(new yt(s||""))}this.synchronizeParents(r)}synchronizeParents(t){let i=[];t.forEach(r=>{let o=r.parent;o instanceof ct&&!i.includes(o)&&i.push(o)}),i.forEach(r=>{this.onPlaceholderUpdate(r)})}offset(t){let i=0,r=!1;return this.walk(o=>o===t?(r=!0,!1):(i+=o.len(),!0)),r?i:-1}fullLen(t){let i=0;return Iee([t],r=>(i+=r.len(),!0)),i}getTextBefore(t,i){let r="",o=s=>{let a=s.parent;if(!a)return;let l="";for(let u of a.children){if(u===s)break;l=l+u.toString()}r=l+r,a!=i&&o(a)};return o(t),r}enclosingPlaceholders(t){let i=[],{parent:r}=t;for(;r;)r instanceof ct&&i.push(r),r=r.parent;return i}async resolveVariables(t){let i=[];this.walk(r=>(r instanceof mo&&!r.resolved&&i.push(r),!0)),i.length&&(await Promise.all(i.map(r=>r.resolve(t))),this.synchronizeParents(i))}appendChild(t){return this.reset(),super.appendChild(t)}replace(t,i){t.replaceChildren(i),(t instanceof ct||t instanceof mo)&&this.onPlaceholderUpdate(t),this.reset()}reset(){this._placeholders=void 0,this._values=void 0}toTextmateString(){return this.children.reduce((t,i)=>t+i.toTextmateString(),"")}clone(){let t=new vd(this.ultisnip);return t._children=this.children.map(i=>i.clone()),t}walk(t){Iee(this.children,t)}},As=class{constructor(e,t){this.ultisnip=e;this.matchCode=t;this._scanner=new vD}static escape(e){return e.replace(/\$|}|\\/g,"\\$&")}static isPlainText(e){let t=new As().parse(e.replace(/\$0$/,""),!1);return t.children.length==1&&t.children[0]instanceof yt}text(e){return this.parse(e,!1).toString()}parse(e,t){this._scanner.text(e),this._token=this._scanner.next();let i=new vd(this.ultisnip);for(;this._parse(i););let r=new Map,o=[],s=[],a=!1;i.walk(c=>(c instanceof ct&&(c.index==0&&(a=!0),c.children.some(h=>h instanceof ct)?s.push(c):!r.has(c.index)&&c.children.length>0?(c.primary=!0,r.set(c.index,c.toString())):o.push(c)),!0));let l=s.map(c=>c.index);for(let c of o)if(r.has(c.index)){let h=r.get(c.index),d=new yt(c.transform?c.transform.resolve(h):h);c.setOnlyChild(d)}else if(!l.includes(c.index))if(c.transform){let h=new yt(c.transform.resolve(""));c.setOnlyChild(h)}else c.primary=!0,r.set(c.index,"");let u=()=>{let c=new Set;for(let h of s)if(h.children.every(d=>!(d instanceof ct)||r.has(d.index))){let d=h.toString();r.set(h.index,d);for(let g of o.filter(p=>p.index==h.index)){let p=new yt(g.transform?g.transform.resolve(d):d);g.setOnlyChild(p)}c.add(h.index)}s=s.filter(h=>!c.has(h.index)),!(s.length==0||!c.size)&&u()};return u(),!a&&t&&i.appendChild(new ct(0)),i}_accept(e,t){if(e===void 0||this._token.type===e){let i=t?this._scanner.tokenText(this._token):!0;return this._token=this._scanner.next(),i}return!1}_backTo(e){return this._scanner.pos=e.pos+e.len,this._token=e,!1}_until(e,t=!1){if(this._token.type===14)return!1;let i=this._token,r;for(;this._token.type!==e||t&&(r==null?void 0:r.type)===5;)if(t&&(r=this._token),this._token=this._scanner.next(),this._token.type===14)return!1;let o=this._scanner.value.substring(i.pos,this._token.pos);return this._token=this._scanner.next(),o}_parse(e){return this._parseEscaped(e)||this._parseCodeBlock(e)||this._parseTabstopOrVariableName(e)||this._parseComplexPlaceholder(e)||this._parseComplexVariable(e)||this._parseAnything(e)}_parseEscaped(e){let t;return(t=this._accept(5,!0))?(t=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||this.ultisnip&&this._accept(3,!0)||this.ultisnip&&this._accept(17,!0)||t,e.appendChild(new yt(t)),!0):!1}_parseTabstopOrVariableName(e){let t,i=this._token;return this._accept(0)&&(t=this._accept(9,!0)||this._accept(8,!0))?(/^\d+$/.test(t)?e.appendChild(new ct(Number(t))):this.ultisnip&&!Lee.includes(t)?e.appendChild(new yt("${"+t+"}")):e.appendChild(new mo(t)),!0):this._backTo(i)}_parseComplexPlaceholder(e){let t,i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(8,!0))))return this._backTo(i);let o=new ct(Number(t));if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(o),!0;if(!this._parse(o))return e.appendChild(new yt("${"+t+":")),o.children.forEach(e.appendChild,e),!0}else if(o.index>0&&this._accept(7)){let s=new bd;for(;;){if(this._parseChoiceElement(s)){if(this._accept(2))continue;if(this._accept(7)&&(o.appendChild(s),this._accept(4)))return e.appendChild(o),!0}return this._backTo(i),!1}}else return this._accept(6)?this._parseTransform(o)?(e.appendChild(o),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(o),!0):this._backTo(i)}_parseChoiceElement(e){let t=this._token,i=[];for(;!(this._token.type===2||this._token.type===7);){let r;if((r=this._accept(5,!0))?r=this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||r:r=this._accept(void 0,!0),!r)return this._backTo(t),!1;i.push(r)}return i.length===0?(this._backTo(t),!1):(e.appendChild(new yt(i.join(""))),!0)}_parseComplexVariable(e){let t,i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(9,!0))))return this._backTo(i);if(this.ultisnip&&!Lee.includes(t))return this._backTo(i);let o=new mo(t);if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(o),!0;if(!this._parse(o))return e.appendChild(new yt("${"+t+":")),o.children.forEach(e.appendChild,e),!0}else return this._accept(6)?this._parseTransform(o)?(e.appendChild(o),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(o),!0):this._backTo(i)}_parseTransform(e){let t=new lb;t.ultisnip=this.ultisnip===!0;let i="",r="";for(;!this._accept(6);){let s;if(s=this._accept(5,!0)){s=this._accept(6,!0)||s,i+=s;continue}if(this._token.type!==14){i+=this._accept(void 0,!0);continue}return!1}for(;!this._accept(6);){let s;if(s=this._accept(5,!0)){s=this._accept(6,!0)||s,t.appendChild(new yt(s));continue}if(!(this._parseFormatString(t)||this._parseConditionString(t)||this._parseAnything(t)))return!1}let o=!1;for(;!this._accept(4);){if(this._token.type!==14){let s=this._accept(void 0,!0);s=="a"?o=!0:(MTe.includes(s)||jTe.error(`Unknown regex option: ${s}`),r+=s);continue}return!1}try{o&&(t.ascii=!0),this.ultisnip&&(i=_ee(i)),t.regexp=new RegExp(i,r)}catch{return!1}return e.transform=t,!0}_parseConditionString(e){if(!this.ultisnip)return!1;let t=this._token;if(!this._accept(15))return!1;if(!this._accept(13))return this._backTo(t),!1;let i=this._accept(8,!0);if(!i)return this._backTo(t),!1;if(!this._accept(1))return this._backTo(t),!1;let r=this._until(16,!0);if(r){let o=0;for(;o<r.length&&!(r[o]==":"&&r[o-1]!="\\");)o++;let s=r.slice(0,o),a=r.slice(o+1);return e.appendChild(new yd(Number(i),s,a)),!0}return this._backTo(t),!1}_parseFormatString(e){let t=this._token;if(!this._accept(0))return!1;let i=!1;this._accept(3)&&(i=!0);let r=this._accept(8,!0);if(r)if(i){if(this._accept(4))return e.appendChild(new ur(Number(r))),!0;if(!this._accept(1))return this._backTo(t),!1}else return e.appendChild(new ur(Number(r))),!0;else return this._backTo(t),!1;if(this.ultisnip)return this._backTo(t),!1;if(this._accept(6)){let o=this._accept(9,!0);return!o||!this._accept(4)?(this._backTo(t),!1):(e.appendChild(new ur(Number(r),o)),!0)}else if(this._accept(11)){let o=this._until(4);if(o)return e.appendChild(new ur(Number(r),void 0,o,void 0)),!0}else if(this._accept(12)){let o=this._until(4);if(o)return e.appendChild(new ur(Number(r),void 0,void 0,o)),!0}else if(this._accept(13)){let o=this._until(1);if(o){let s=this._until(4);if(s)return e.appendChild(new ur(Number(r),void 0,o,s)),!0}}else{let o=this._until(4);if(o)return e.appendChild(new ur(Number(r),void 0,void 0,o)),!0}return this._backTo(t),!1}_parseCodeBlock(e){if(!this.ultisnip)return!1;let t=this._token;if(!this._accept(17))return!1;let i=this._until(17,!0);if(i){if(!i.startsWith("!")){let r=new Jo(i.trim(),"shell");return e.appendChild(r),!0}if(i.startsWith("!v")){let r=new Jo(i.slice(2).trim(),"vim");return e.appendChild(r),!0}if(i.startsWith("!p")){let r=i.slice(2),o=this.matchCode?this.matchCode+`
|
||
`:"";if(r.indexOf(`
|
||
`)==-1){let s=new Jo(o+r.trim(),"python");e.appendChild(s)}else{let s=r.split(/\r?\n/);s=s.filter(u=>!/^\s*$/.test(u));let a=s[0]?s[0].match(/^\s*/)[0]:"";a.length&&s.every(u=>u.startsWith(a))&&(s=s.map(u=>u.slice(a.length))),a==" "&&s[0].startsWith(a)&&(s[0]=s[0].slice(1));let l=new Jo(o+s.join(`
|
||
`),"python");e.appendChild(l)}return!0}}return this._backTo(t),!1}_parseAnything(e){if(this._token.type!==14){let t=this._scanner.tokenText(this._token);return e.appendChild(new yt(t)),this._accept(void 0),!0}return!1}},OTe=[":","(",")","{","}"]});function DF(n,e){let{range:t,newText:i}=n,r=e.length,o=i.length;if(r===0||o===0)return n;let{start:s,end:a}=t,l=0;for(let d=1;d<=Math.min(o,r)&&i[d-1]===e[d-1];d++)l=d;let u=0,c=Math.min(o-l,r-l);if(c>0)for(let d=1;d<=c&&i[o-d]===e[r-d];d++)u=d;let h=u==0?i.slice(l):i.slice(l,-u);return l>0&&(s=Ki(s,i.slice(0,l))),u>0&&(a=Ki(t.start,e.slice(0,-u))),rn.TextEdit.replace(rn.Range.create(s,a),h)}function jee(n,e,t){let i=rn.Range.create(n,Ki(n,t));return ft(e,i)==0}function Mee(n,e,t){if(t.lines.length<n.line)return!1;let r=!0;for(let o=n.line;o>=0;o--){let s=t.lines[o]??"";if(o===n.line){let a=e.lines[o].slice(0,n.character);if(!s.startsWith(a)){r=!1;break}}else if(s!==e.lines[o]){r=!1;break}}return r}function Oee(n,e,t){let i=e.lines.length;if(t.lines.length<i-n.line)return;let r,o=t.lines.length-i;for(let s=n.line;s<i;s++){let a=t.lines[s+o];if(s==n.line){let l=e.lines[s].slice(n.character);if(l.length&&!a.endsWith(l))break;r=rn.Position.create(s+o,a.length-l.length)}else if(a!==e.lines[s]){r=void 0;break}}return r}function Aee(n,e,t){let i=[],r=[],o=n.split(`
|
||
`),s=t.start.line-e.start.line;for(let a=0;a<=s;a++){let l=o[a]??"";a==s?i.push(a==0?l.substring(0,t.start.character-e.start.character):l.substring(0,t.start.character)):i.push(l)}s=e.end.line-t.end.line;for(let a=0;a<=s;a++){let l=o[t.end.line-e.start.line+a]??"";a==0?s==0?r.push(e.end.character==t.end.character?"":l.slice(t.end.character-e.end.character)):r.push(l.substring(t.end.character)):r.push(l)}return[i.join(`
|
||
`),r.join(`
|
||
`)]}function Nee(n,e,t){let i=n.split(/\r?\n/),r=t.insertSpaces?" ".repeat(t.tabSize):" ",o=t.tabSize||2;return i=i.map((s,a)=>{let l=s.match(/^\s*/)[0],u=l,c=l.startsWith(" ");return c&&t.insertSpaces?u=r.repeat(l.length):!c&&!t.insertSpaces&&(u=r.repeat(l.length/o)),(a==0||s.length==0?"":e)+u+s.slice(l.length)}),i.join(`
|
||
`)}function Hee(n){return!!(/^\s/.test(n)||n.indexOf(`
|
||
`)!==-1)}var rn,Vtt,ub,TF=k(()=>{"use strict";rn=S(W());ph();xt();so();SF();xD();Vtt=q()("snippets-snipet"),ub=class{constructor(e,t,i,r){this.snippetString=e;this.position=t;this.nvim=i;this.resolver=r}async init(e,t=!1){let i=e?yD(e):void 0,o=new As(!!e,i).parse(this.snippetString,!0);this.tmSnippet=o,await this.resolve(e),this.synchronize(),t||(this.nvim.call("coc#compat#del_var",["coc_selected_text"],!0),this.nvim.call("coc#compat#del_var",["coc_last_placeholder"],!0))}async resolve(e){let{snippet:t}=this.tmSnippet,{resolver:i,nvim:r}=this;if(i&&await t.resolveVariables(i),e&&e.noPython!==!0){let o=[];t.hasPython&&(o=Ree(e)),await t.evalCodeBlocks(r,o)}}getRanges(e){let t=e.marker;if(e.value.length==0)return[];let r=this._placeholders.filter(l=>l.index==e.index).map(l=>l.range),o=this.tmSnippet.enclosingPlaceholders(t),s,a=t.parent;if(t instanceof ct){let l=t.index;s=this.tmSnippet.placeholders.filter(u=>u.index==l&&u.parent==a)}else{let l=t.name;s=this.tmSnippet.variables.filter(u=>u.name==l&&u.parent==a)}return o.forEach(l=>{let u=this._placeholders.filter(c=>c.index==l.index&&c.marker!==l);if(!!u.length)for(let c of s){let h=this.tmSnippet.getTextBefore(c,l);u.forEach(d=>{if(d.transform)r.push(d.range);else{let g=d.range.start;r.push(rn.Range.create(Ki(g,h),Ki(g,h+c.toString())))}})}}),r.filter(l=>!Lt(l))}getSortedPlaceholders(e){let t=e?[e]:[],i=this._placeholders.filter(r=>r!==e&&!r.transform);return i.sort((r,o)=>r.primary!==o.primary?r.primary?-1:1:r.index==0||o.index==0?r.index==0?1:-1:r.index-o.index),t.push(...i),t}get hasPython(){return this.tmSnippet.pyBlocks.length>0}resetStartPosition(e){this.position=e,this.synchronize()}get start(){return Object.assign({},this.position)}get range(){return rn.Range.create(this.position,Ki(this.position,this._text))}get text(){return this._text}get finalCount(){return this._placeholders.filter(e=>e.index==0).length}get placeholders(){return this._placeholders.map(e=>e.marker)}get firstPlaceholder(){let e=0;for(let t of this._placeholders)t.index==0||t.transform||(e==0||t.index<e)&&(e=t.index);return this.getPlaceholder(e)}getPlaceholderByMarker(e){return this._placeholders.find(t=>t.marker===e)}getPlaceholder(e){let t=this._placeholders.filter(r=>r.index==e&&!r.transform);return(t.find(r=>r.primary)||t[0])??t[0]}getPrevPlaceholder(e){if(e<=1)return;let t=this._placeholders.filter(r=>r.index<e&&r.index!=0&&!r.transform),i;for(;e>1;){e=e-1;let r=t.filter(o=>o.index==e);if(r.length){i=r.find(o=>o.primary)||r[0];break}}return i}getNextPlaceholder(e){let t=this._placeholders.filter(s=>!s.transform),i,r=t.map(s=>s.index),o=Math.max.apply(null,r);for(let s=e+1;s<=o+1;s++){let a=s==o+1?0:s,l=t.filter(u=>u.index==a);if(l.length){i=l.find(u=>u.primary)||l[0];break}}return i}getPlaceholderByRange(e){return this._placeholders.find(t=>Xt(e,t.range))}async insertSnippet(e,t,i,r){if(r){let{start:s,end:a}=e.range;this.nvim.setVar("coc_last_placeholder",{current_text:e.value,start:{line:s.line,col:s.character,character:s.character},end:{line:a.line,col:a.character,character:a.character}},!0)}let o=this.tmSnippet.insertSnippet(t,e.marker,i,r);return await this.resolve(r),this.synchronize(),o}getNewText(e,t){let{before:i,after:r}=e;if(!!t.startsWith(i)&&!(t.length<i.length+r.length)&&!!t.endsWith(r))return r.length?t.slice(i.length,-r.length):t.slice(i.length)}async updatePlaceholder(e,t,i,r){let o=this.position,{marker:s,before:a}=e,l=this.tmSnippet.clone();r.onCancellationRequested(()=>{this.tmSnippet=l,this.synchronize()});let u=rn.Range.create(o,Ki(o,a));if(await this.tmSnippet.update(this.nvim,s,i),r.isCancellationRequested)return;this.synchronize();let c=this._placeholders.find(d=>d.marker==s),h=c?c.before:a;return{text:this._text,delta:lx(t,rn.TextEdit.replace(u,h))}}removeText(e,t){let i=this.tmSnippet.deleteText(e,t);return i&&this.synchronize(),i}synchronize(){let e=this.tmSnippet,{line:t,character:i}=this.position,r=Vn.create("untitled:/1","snippet",0,e.toString()),{placeholders:o,variables:s,maxIndexNumber:a}=e,l=new Map,u=a+1;this._placeholders=[...o,...s].map(c=>{let h=e.offset(c),d=r.positionAt(h),g={line:t+d.line,character:d.line==0?i+d.character:d.character},p;if(c instanceof mo){let w=c.name;l.has(w)?p=l.get(w):(l.set(w,u),p=u,u=u+1)}else p=c.index;let f=c.toString(),m=Ki(d,f);return{index:p,value:f,marker:c,transform:!!c.transform,range:rn.Range.create(g,Ki(g,f)),before:r.getText(rn.Range.create(rn.Position.create(0,0),d)),after:r.getText(rn.Range.create(m,rn.Position.create(r.lineCount,0))),primary:c instanceof ct&&c.primary===!0}}),this._text=this.tmSnippet.toString()}}});function cb(n){return n<10?"0"+n:n.toString()}function qee(n){let e,t,i,r=n.split(",");for(let o of r){if(e&&t&&i)break;if(!o.includes(":"))continue;let[s,a]=o.split(":");s.includes("s")?e=a:s.includes("e")?t=a:!i&&s==""&&(i=a)}return{start:e,end:t,single:i}}function HTe(n){if(n.endsWith("%s"))return n.slice(0,-2).trim()}var hb,rit,db,Bee=k(()=>{"use strict";hb=S(require("path"));qe();Pe();et();rit=q()("snippets-variable");db=class{constructor(e,t){this.nvim=e;this.workspaceFolder=t;this._variableToValue={};let i=new Date,r=i.getFullYear().toString();Object.assign(this._variableToValue,{CURRENT_YEAR:r,CURRENT_YEAR_SHORT:r.slice(-2),CURRENT_MONTH:cb(i.getMonth()+1),CURRENT_DATE:cb(i.getDate()),CURRENT_HOUR:cb(i.getHours()),CURRENT_MINUTE:cb(i.getMinutes()),CURRENT_SECOND:cb(i.getSeconds()),CURRENT_DAY_NAME:i.toLocaleString("en-US",{weekday:"long"}),CURRENT_DAY_NAME_SHORT:i.toLocaleString("en-US",{weekday:"short"}),CURRENT_MONTH_NAME:i.toLocaleString("en-US",{month:"long"}),CURRENT_MONTH_NAME_SHORT:i.toLocaleString("en-US",{month:"short"}),TM_FILENAME:null,TM_FILENAME_BASE:null,TM_DIRECTORY:null,TM_FILEPATH:null,YANK:null,TM_LINE_INDEX:null,TM_LINE_NUMBER:null,TM_CURRENT_LINE:null,TM_CURRENT_WORD:null,TM_SELECTED_TEXT:null,VISUAL:null,CLIPBOARD:null,RELATIVE_FILEPATH:null,RANDOM:null,RANDOM_HEX:null,UUID:null,BLOCK_COMMENT_START:null,BLOCK_COMMENT_END:null,LINE_COMMENT:null,WORKSPACE_NAME:null,WORKSPACE_FOLDER:null})}async resolveValue(e){let{nvim:t}=this;if(["TM_FILENAME","TM_FILENAME_BASE","TM_DIRECTORY","TM_FILEPATH"].includes(e)){let i=await t.eval('expand("%:p")');if(e==="TM_FILENAME")return hb.default.basename(i);if(e==="TM_FILENAME_BASE")return hb.default.basename(i,hb.default.extname(i));if(e==="TM_DIRECTORY")return hb.default.dirname(i);if(e==="TM_FILEPATH")return i}if(e==="YANK")return await t.call("getreg",['""']);if(e==="TM_LINE_INDEX")return(await t.call("line",["."])-1).toString();if(e==="TM_LINE_NUMBER")return(await t.call("line",["."])).toString();if(e==="TM_CURRENT_LINE")return await t.call("getline",["."]);if(e==="TM_CURRENT_WORD")return await t.eval("expand('<cword>')");if(e==="TM_SELECTED_TEXT"||e=="VISUAL")return await t.eval("get(g:,'coc_selected_text', v:null)");if(e==="CLIPBOARD")return await t.eval("@*");if(e==="RANDOM")return Math.random().toString().slice(-6);if(e==="RANDOM_HEX")return Math.random().toString(16).slice(-6);if(e==="UUID")return oe();if(["RELATIVE_FILEPATH","WORKSPACE_NAME","WORKSPACE_FOLDER"].includes(e)){let i=await t.eval('expand("%:p")'),r=this.workspaceFolder.getWorkspaceFolder(j.file(i));if(e==="RELATIVE_FILEPATH")return this.workspaceFolder.getRelativePath(i);if(e==="WORKSPACE_NAME")return r.name;if(e==="WORKSPACE_FOLDER")return j.parse(r.uri).fsPath}if(e==="LINE_COMMENT"){let i=await t.eval("&commentstring"),r=HTe(i);if(r)return r;let o=await t.eval("&comments"),{single:s}=qee(o);return s??""}if(["BLOCK_COMMENT_START","BLOCK_COMMENT_END"].includes(e)){let i=await t.eval("&comments"),{start:r,end:o}=qee(i);if(e==="BLOCK_COMMENT_START")return r??"";if(e==="BLOCK_COMMENT_END")return o??""}}async resolve(e){let t=e.name,i=this._variableToValue[t];if(i!=null)return i.toString();if(Qr(this._variableToValue,t)){let r=await this.resolveValue(t);return!r&&e.children.length?e.toString():r==null?"":r.toString()}return e.children.length?e.toString():t}}});var fi,Ns,kF,gb,Wee=k(()=>{"use strict";fi=S(W());ds();et();xt();_e();xe();ie();xD();TF();Bee();Ns=q()("snippets-session"),kF="snippets",gb=class{constructor(e,t,i){this.nvim=e;this.document=t;this.config=i;this.mutex=new Di;this._applying=!1;this._isActive=!1;this._snippet=null;this._onCancelEvent=new fi.Emitter;this.onCancel=this._onCancelEvent.event;this.disposable=t.onDocumentChange(async r=>{if(this._applying||!this._isActive)return;let o=r.contentChanges;o.length!==0&&await this.synchronize({version:r.textDocument.version,change:o[0]})})}async start(e,t,i=!0,r){var l;let{document:o}=this,s=this.getReplacePlaceholder(t),a=[];if(s){let u=this.snippet.range,c=o.textDocument.getText(u),h=Aee(s.value,s.range,t);this.current=await this.snippet.insertSnippet(s,e,h,r);let d=DF({range:u,newText:this.snippet.text},c);a.push(d)}else{let u=new db(this.nvim,v.workspaceFolderControl),c=new ub(e,t.start,this.nvim,u);if(await c.init(r),this._snippet=c,this.current=(l=c.firstPlaceholder)==null?void 0:l.marker,a.push(fi.TextEdit.replace(t,c.text)),e.replace(/\$0$/,"").endsWith(`
|
||
`)){let h=o.getline(t.start.line),d=h.slice(t.end.character);if(d.length){let g=t.end.character,p=d.match(/^\s*/)[0].length,f=fi.Range.create(t.end.line,g,t.end.line,g+p);a.push(fi.TextEdit.replace(f,h.match(/^\s*/)[0]))}}}if(await this.applyEdits(a),this.textDocument=o.textDocument,this.activate(),i&&this.current){let u=this.snippet.getPlaceholderByMarker(this.current);await this.selectPlaceholder(u,!0)}return this._isActive}async applyEdits(e){this._applying=!0,await this.document.applyEdits(e),this._applying=!1}getReplacePlaceholder(e){if(!this.snippet)return;let t=this.findPlaceholder(e);if(!(!t||t.index==0))return t}activate(){this._isActive||(this._isActive=!0,this.nvim.call("coc#snippet#enable",[this.config.preferComplete?1:0],!0))}deactivate(){this.cancel(),this._isActive&&(this.disposable.dispose(),this._isActive=!1,this.current=null,this.nvim.call("coc#snippet#disable",[],!0),this.config.highlight&&this.nvim.call("coc#highlight#clear_highlight",[this.bufnr,kF,0,-1],!0),this._onCancelEvent.fire(void 0),Ns.debug(`session ${this.bufnr} cancelled`))}get isActive(){return this._isActive}get bufnr(){return this.document.bufnr}async nextPlaceholder(){await this.forceSynchronize();let e=this.placeholder;if(!e)return;let t=this.snippet.getNextPlaceholder(e.index);t&&await this.selectPlaceholder(t)}async previousPlaceholder(){await this.forceSynchronize();let e=this.placeholder;if(!e)return;let t=this.snippet.getPrevPlaceholder(e.index);t&&await this.selectPlaceholder(t)}async selectCurrentPlaceholder(e=!0){if(await this.forceSynchronize(),!this.snippet)return;let t=this.snippet.getPlaceholderByMarker(this.current);t&&await this.selectPlaceholder(t,e)}async selectPlaceholder(e,t=!0){let{nvim:i,document:r,config:o}=this;if(!r||!e)return;let{start:s,end:a}=e.range,l=a.character-s.character,u=Q(r.getline(s.line).slice(0,s.character))+1,c=this.current=e.marker;if(c instanceof ct&&c.choice&&c.choice.options.length){let h=c.choice.options.map(d=>d.value);if(o.choicesMenuPicker){await i.call("coc#snippet#cursor",[s.line+1,u+l]);let d=await D.showMenuPicker(h,{title:"Pick word"});if(d<0)return;let g=fi.TextEdit.replace(e.range,h[d]);await r.applyEdits([g],!1,fi.Position.create(a.line,a.character))}else await i.call("coc#snippet#show_choices",[s.line+1,u,l,h]);t&&i.call("coc#util#do_autocmd",["CocJumpPlaceholder"],!0)}else{let h=this.snippet.finalCount;await this.select(e,t),this.highlights(e),e.index==0&&(h==1?(Ns.info("Jump to final placeholder, cancelling snippet session"),this.deactivate()):i.call("coc#snippet#disable",[],!0))}}highlights(e,t=!0){if(!this.config.highlight)return;let i=this.document.buffer;this.nvim.pauseNotification(),i.clearNamespace(kF);let r=this.snippet.getRanges(e);r.length&&i.highlightRanges(kF,"CocSnippetVisual",r),this.nvim.resumeNotification(t,!0)}async select(e,t=!0){let{range:i,value:r}=e,{nvim:o}=this;r.length>0?await o.call("coc#snippet#select",[i.start,i.end,r]):await o.call("coc#snippet#move",[i.start]),t&&o.call("coc#util#do_autocmd",["CocJumpPlaceholder"],!0),o.redrawVim()}async checkPosition(){if(!this.isActive)return;let e=await D.getCursorPosition();this.snippet&&ft(e,this.snippet.range)!=0&&(Ns.info("Cursor insert out of range, cancelling snippet session"),this.deactivate())}findPlaceholder(e){let{placeholder:t}=this;return t&&Xt(e,t.range)?t:this.snippet.getPlaceholderByRange(e)||null}async synchronize(e){await this.mutex.use(()=>{let t=this.textDocument?this.textDocument.version:-1;return e&&(this.document.version!=e.version||e.version-t!==1)&&(e=void 0),this._synchronize(e?e.change:void 0)})}async _synchronize(e){let{document:t,textDocument:i}=this;if(!t.attached||!this._isActive)return;let r=Date.now(),o=t.textDocument;if(o.version==i.version||ye(i.lines,o.lines))return;let{range:s,text:a}=this.snippet;e&&!Xt(e.range,s)&&(e=void 0);let l=Oee(s.end,i,o);if(!l){Ns.info("Content change after snippet, cancel snippet session"),this.deactivate();return}if(!Mee(s.start,i,o)){let b=o.getText(fi.Range.create(fi.Position.create(0,0),l));if(b.endsWith(a)){let w=o.positionAt(b.length-a.length);this.snippet.resetStartPosition(w),this.textDocument=o,Ns.info("Content change before snippet, reset snippet position");return}Ns.info("Before and snippet body changed, cancel snippet session"),this.deactivate();return}let c=this.tokenSource=new fi.CancellationTokenSource,h=await D.getCursorPosition();if(c.token.isCancellationRequested||t.hasChanged)return;let d,g,p=o.getText(fi.Range.create(s.start,l)),f=this.placeholder;if(e){for(let b of this.snippet.getSortedPlaceholders(f))if(Xt(e.range,b.range)){d=b,g=this.snippet.getNewText(b,p);break}if(!d&&e.text.length==0&&!Lt(e.range)&&nY(e.range)){let b=e.range.end.character-e.range.start.character,w=o.getText(fi.Range.create(s.start,e.range.start)).length;if(this.snippet.removeText(w,b)){this.textDocument=o;return}}}else for(let b of this.snippet.getSortedPlaceholders(f))if(!(Me(h,b.range.start)<0)&&(g=this.snippet.getNewText(b,p),g!=null&&jee(b.range.start,h,g))){d=b;break}if(!d&&p.endsWith(a)){let b=Ki(s.start,p.slice(0,-a.length));this.snippet.resetStartPosition(b),this.textDocument=o,Ns.info("Content change before snippet, reset snippet position");return}if(!d){Ns.info("Unable to find changed placeholder, cancel snippet session"),this.deactivate();return}let m=await this.snippet.updatePlaceholder(d,h,g,c.token);if(!(m==null||c.token.isCancellationRequested)){if(t.hasChanged){c.cancel(),c.dispose();return}if(c.dispose(),this.current=d.marker,m.text!==p){let b=DF({range:fi.Range.create(this.snippet.start,l),newText:m.text},p);await this.applyEdits([b]);let{delta:w}=m;(w.line!=0||w.character!=0)&&this.nvim.call("coc#cursor#move_to",[h.line+w.line,h.character+w.character],!0),this.highlights(d,!1),this.nvim.redrawVim()}else this.highlights(d);if(Ns.debug("update cost:",Date.now()-r,m.delta),this.textDocument=this.document.textDocument,this.config.nextOnDelete&&f&&f.value.length>0&&d.marker.toString()===""){let b=this.snippet.getNextPlaceholder(d.index);b&&await this.selectPlaceholder(b)}}}async waitSynchronize(){(await this.mutex.acquire())()}async forceSynchronize(){var t;await this.document.patchChange(),(await this.mutex.acquire())(),this.document.version!==((t=this.textDocument)==null?void 0:t.version)&&await this.synchronize()}cancel(){this.tokenSource&&(this.tokenSource.cancel(),this.tokenSource.dispose(),this.tokenSource=null)}get placeholder(){if(!(!this.snippet||!this.current))return this.snippet.getPlaceholderByMarker(this.current)}get snippet(){return this._snippet}static async resolveSnippet(e,t,i){let r=i&&fi.Range.is(i.range)?i.range.start:await D.getCursorPosition(),o=i&&typeof i.line=="string"?i.line:await e.line,s;i&&(s=Object.assign({range:fi.Range.create(r,r),line:o},i));let a=new db(e,v.workspaceFolderControl),l=new ub(t,r,e,a);return await l.init(s,!0),l.text}}});var Mr,PF=k(()=>{"use strict";Mr=class{constructor(e){this._tabstop=1;this.value=e||""}static isSnippetString(e){return e instanceof Mr?!0:e?typeof e.value=="string":!1}static _escape(e){return e.replace(/\$|}|\\/g,"\\$&")}appendText(e){return this.value+=Mr._escape(e),this}appendTabstop(e=this._tabstop++){return this.value+="$",this.value+=e,this}appendPlaceholder(e,t=this._tabstop++){if(typeof e=="function"){let i=new Mr;i._tabstop=this._tabstop,e(i),this._tabstop=i._tabstop,e=i.value}else e=Mr._escape(e);return this.value+="${",this.value+=t,this.value+=":",this.value+=e,this.value+="}",this}appendChoice(e,t=this._tabstop++){let i=e.map(r=>r.replace(/\$|}|\\|,/g,"\\$&")).join(",");return this.value+="${",this.value+=t,this.value+="|",this.value+=i,this.value+="|}",this}appendVariable(e,t){if(typeof t=="function"){let i=new Mr;i._tabstop=this._tabstop,t(i),this._tabstop=i._tabstop,t=i.value}else typeof t=="string"&&(t=t.replace(/\$|}/g,"\\$&"));return this.value+="${",this.value+=e,t&&(this.value+=":",this.value+=t),this.value+="}",this}}});var Wu,Iit,EF,ai,Yu=k(()=>{"use strict";Wu=S(W());fe();et();xt();xe();ie();Wee();TF();PF();Iit=q()("snippets-manager"),EF=class{constructor(){this.sessionMap=new Map;this.disposables=[]}get nvim(){return v.nvim}init(){P.on("InsertCharPre",(t,i)=>{let r=this.getSession(i);r&&r.cancel()},null,this.disposables),D.onDidChangeActiveTextEditor(t=>{if(!this.statusItem)return;this.getSession(t.document.bufnr)?this.statusItem.show():this.statusItem.hide()},null,this.disposables),P.on("InsertEnter",async t=>{let i=this.getSession(t);i&&await i.checkPosition()},null,this.disposables),v.onDidCloseTextDocument(t=>{let i=this.getSession(t.bufnr);i&&i.deactivate()},null,this.disposables),this.statusItem||(this.statusItem=D.createStatusBarItem(0));let e=v.getConfiguration("snippet");this.statusItem.text=e.get("statusText","")}getSnippetConfig(e){let t=v.getConfiguration("coc.preferences",e),i=v.getConfiguration("snippet",e),r=v.getConfiguration("suggest",e);return{highlight:t.get("snippetHighlight",i.get("highlight",!1)),nextOnDelete:t.get("nextPlaceholderOnDelete",i.get("nextPlaceholderOnDelete",!1)),preferComplete:r.get("preferCompleteThanJumpPlaceholder",!1),choicesMenuPicker:i.get("choicesMenuPicker",!1)}}async insertSnippet(e,t=!0,i,r,o){let{bufnr:s}=v,a=v.getAttachedDocument(s);if(i&&!Xt(i,Wu.Range.create(0,0,a.lineCount+1,0)))throw new Error("Unable to insert snippet, invalid range.");let l;if(!i){let p=await D.getCursorPosition();i=Wu.Range.create(p,p)}let u=a.getline(i.start.line),c=Mr.isSnippetString(e)?e.value:e,h=await this.normalizeInsertText(a.uri,c,u,r);o!=null&&(l=Object.assign({range:Rn(i),line:u},o),!Lt(i)&&h.includes("`!p")&&(this.nvim.call("coc#cursor#move_to",[i.start.line,i.start.character],!0),await a.applyEdits([{range:i,newText:""}]),i.end=Wu.Position.create(i.start.line,i.start.character)));let d=this.getSession(s);if(d?(await d.forceSynchronize(),d=this.getSession(s)):await a.patchChange(!0),!d){let p=this.getSnippetConfig(a.uri);d=new gb(this.nvim,a,p),d.onCancel(()=>{this.sessionMap.delete(s),this.statusItem.hide()})}let g=await d.start(h,i,t,l);return g?(this.statusItem.show(),this.sessionMap.set(s,d)):(this.statusItem.hide(),this.sessionMap.delete(s)),g}async selectCurrentPlaceholder(e=!0){let{session:t}=this;if(t)return await t.selectCurrentPlaceholder(e)}async nextPlaceholder(){let{session:e}=this;return e?await e.nextPlaceholder():(this.nvim.call("coc#snippet#disable",[],!0),this.statusItem.hide()),""}async previousPlaceholder(){let{session:e}=this;return e?await e.previousPlaceholder():(this.nvim.call("coc#snippet#disable",[],!0),this.statusItem.hide()),""}cancel(){let e=this.getSession(v.bufnr);if(e)return e.deactivate();this.nvim.call("coc#snippet#disable",[],!0),this.statusItem&&this.statusItem.hide()}get session(){return this.getSession(v.bufnr)}getSession(e){return this.sessionMap.get(e)}jumpable(){let{session:e}=this;return e?e.placeholder!=null&&e.placeholder.index!=0:!1}async editsInsideSnippet(e){let t=this.getSession(v.bufnr);if(!t||!t.snippet)return!1;await t.forceSynchronize();let i=t.snippet.range;return!!e.some(r=>rh(r.range,i))}async resolveSnippet(e,t){if(t){let i=this.getSession(v.bufnr);t.noPython=i!=null&&i.snippet.hasPython}return await gb.resolveSnippet(this.nvim,e,t)}async normalizeInsertText(e,t,i,r){let o="";if(r===Wu.InsertTextMode.asIs||!Hee(t))o=t;else{let s=i.match(/^\s*/)[0],a=D.activeTextEditor?D.activeTextEditor.options:await v.getFormatOptions(e);o=Nee(t,s,a)}return o}dispose(){this.cancel();for(let e of this.disposables)e.dispose()}},ai=new EF});var Yee=k(()=>{"use strict";yf()});function qTe(n){return Array.isArray(n)&&n.every(e=>typeof e=="string")}function BTe(n){return typeof n>"u"||qTe(n)}var Zee,wd,Jee=k(()=>{"use strict";Zee=S(W());wd=class{constructor(e){if(this._prevLine=0,this._prevChar=0,this._dataIsSortedAndDeltaEncoded=!0,this._data=[],this._dataLen=0,this._tokenTypeStrToInt=new Map,this._tokenModifierStrToInt=new Map,this._hasLegend=!1,e){this._hasLegend=!0;for(let t=0,i=e.tokenTypes.length;t<i;t++)this._tokenTypeStrToInt.set(e.tokenTypes[t],t);for(let t=0,i=e.tokenModifiers.length;t<i;t++)this._tokenModifierStrToInt.set(e.tokenModifiers[t],t)}}push(e,t,i,r,o){if(typeof e=="number"&&typeof t=="number"&&typeof i=="number"&&typeof r=="number"&&(typeof o=="number"||typeof o>"u"))return typeof o>"u"&&(o=0),this._pushEncoded(e,t,i,r,o);if(Zee.Range.is(e)&&typeof t=="string"&&BTe(i))return this._push(e,t,i);throw new Error("Illegal argument")}_push(e,t,i){if(!this._hasLegend)throw new Error("Legend must be provided in constructor");if(e.start.line!==e.end.line)throw new Error("`range` cannot span multiple lines");if(!this._tokenTypeStrToInt.has(t))throw new Error("`tokenType` is not in the provided legend");let r=e.start.line,o=e.start.character,s=e.end.character-e.start.character,a=this._tokenTypeStrToInt.get(t),l=0;if(i)for(let u of i){if(!this._tokenModifierStrToInt.has(u))throw new Error("`tokenModifier` is not in the provided legend");let c=this._tokenModifierStrToInt.get(u);l|=1<<c>>>0}this._pushEncoded(r,o,s,a,l)}_pushEncoded(e,t,i,r,o){if(this._dataIsSortedAndDeltaEncoded&&(e<this._prevLine||e===this._prevLine&&t<this._prevChar)){this._dataIsSortedAndDeltaEncoded=!1;let l=this._data.length/5|0,u=0,c=0;for(let h=0;h<l;h++){let d=this._data[5*h],g=this._data[5*h+1];d===0?(d=u,g+=c):d+=u,this._data[5*h]=d,this._data[5*h+1]=g,u=d,c=g}}let s=e,a=t;this._dataIsSortedAndDeltaEncoded&&this._dataLen>0&&(s-=this._prevLine,s===0&&(a-=this._prevChar)),this._data[this._dataLen++]=s,this._data[this._dataLen++]=a,this._data[this._dataLen++]=i,this._data[this._dataLen++]=r,this._data[this._dataLen++]=o,this._prevLine=e,this._prevChar=t}static _sortAndDeltaEncode(e){let t=[],i=e.length/5|0;for(let a=0;a<i;a++)t[a]=a;t.sort((a,l)=>{let u=e[5*a],c=e[5*l];if(u===c){let h=e[5*a+1],d=e[5*l+1];return h-d}return u-c});let r=new Array(e.length),o=0,s=0;for(let a=0;a<i;a++){let l=5*t[a],u=e[l+0],c=e[l+1],h=e[l+2],d=e[l+3],g=e[l+4],p=u-o,f=p===0?c-s:c,m=5*a;r[m+0]=p,r[m+1]=f,r[m+2]=h,r[m+3]=d,r[m+4]=g,o=u,s=c}return r}build(e){return this._dataIsSortedAndDeltaEncoded?{data:this._data,resultId:e}:{data:wd._sortAndDeltaEncode(this._data),resultId:e}}}});var pb,$ee=k(()=>{"use strict";_e();pb=class{constructor(e=!1){this.addSpace=e;this._label="";this._len=0;this._highlights=[]}append(e,t,i){if(e.length==0)return;let r=this._len>0&&this.addSpace?" ":"",o=this._len+r.length;if(this._label=this._label+r+e,this._len=this._len+Q(e)+r.length,t&&this._highlights.push({hlGroup:t,span:[o,o+Q(e)]}),i)for(let s of i){let a=o+Q(e.slice(0,s.offset)),l=o+Q(e.slice(0,s.offset+s.length));this._highlights.push({hlGroup:s.hlGroup,span:[a,l]})}}appendBuilder(e){let t=this._len>0&&this.addSpace?" ":"",i=this._len+t.length;this._label=this._label+t+e.label,this._len=this._len+Q(e.label)+t.length,this._highlights.push(...e.highlights.map(r=>({hlGroup:r.hlGroup,span:r.span.map(o=>i+o)})))}get label(){return this._label}get highlights(){return this._highlights}}});var Xee=y((fnt,Uee)=>{"use strict";Jt();fe();de();Nx();oR();YC();NI();Ta();HI();Hm();Os();ie();xe();Wo();mD();Yu();PF();Bu();uh();Yo();ds();Pe();var ce=S(W());dn();pF();re();Yee();Jee();$ee();Uee.exports={Uri:j,LineBuilder:pb,NullLogger:Mm,SettingMonitor:iD,LanguageClient:dd,CancellationTokenSource:ce.CancellationTokenSource,ProgressType:ce.ProgressType,RequestType:ce.RequestType,RequestType0:ce.RequestType0,NotificationType:ce.NotificationType,NotificationType0:ce.NotificationType0,Highligher:Hi,Mru:xs,Emitter:ce.Emitter,SnippetString:Mr,BasicList:zt,Mutex:Di,TreeItem:lo,SemanticTokensBuilder:wd,FloatFactory:Kl,RelativePattern:Qa,DocumentDiagnosticReportKind:ce.DocumentDiagnosticReportKind,UniquenessLevel:ce.UniquenessLevel,MonikerKind:ce.MonikerKind,PatternType:Kg,SourceType:Ul,MessageLevel:Sw,ConfigurationTarget:Tw,ServiceStat:Dw,FileType:Qg,State:VS,ClientState:lF,CloseAction:ZS,ErrorAction:JS,TransportKind:nD,MessageTransports:cd,RevealOutputChannelOn:QS,MarkupKind:ce.MarkupKind,DiagnosticTag:ce.DiagnosticTag,DocumentHighlightKind:ce.DocumentHighlightKind,SymbolKind:ce.SymbolKind,SignatureHelpTriggerKind:ce.SignatureHelpTriggerKind,FileChangeType:ce.FileChangeType,CodeActionKind:ce.CodeActionKind,Diagnostic:ce.Diagnostic,DiagnosticSeverity:ce.DiagnosticSeverity,CompletionItemKind:ce.CompletionItemKind,InsertTextFormat:ce.InsertTextFormat,Location:ce.Location,LocationLink:ce.LocationLink,CancellationToken:ce.CancellationToken,Position:ce.Position,Range:ce.Range,TextEdit:ce.TextEdit,Disposable:ce.Disposable,Event:ce.Event,workspace:v,window:D,CodeActionTriggerKind:ce.CodeActionTriggerKind,CompletionTriggerKind:ce.CompletionTriggerKind,snippetManager:ai,events:P,services:yn,commands:ue,sources:St,languages:_,diagnosticManager:Wt,extensions:je,listManager:Bi,TreeItemCollapsibleState:lu,fetch:Dm,download:Pm,ansiparse:pp,disposeAll:U,concurrent:Yg,watchFile:Xc,wait:Nt,runCommand:_o,isRunning:gB,executable:Wl}});function YTe(n){return()=>{throw new Error(`process.${n}() is not allowed in extension sandbox`)}}function ZTe(){let n=e=>e==="coc.nvim"?Xee():this.require(e);return n.resolve=e=>Uo._resolveFilename(e,this),n.main=process.mainModule,n.extensions=Uo._extensions,n.cache=Uo._cache,n}function JTe(n){return function(e,t){let i=ZTe.call(this),r=zee.default.dirname(t),o=e.replace(/^\#\!.*/,""),s=Uo.wrap(o),a=CD.runInContext(s,n,{filename:t}),l=[this.exports,i,this,t,r];return a.apply(this.exports,l)}}function $Te(n,e){let t=new Uo(n);t.paths=Uo._nodeModulePaths(n);let i=CD.createContext({module:t,Buffer,URL:globalThis.URL,console:{debug:(...r)=>{e.debug.apply(e,r)},log:(...r)=>{e.info.apply(e,r)},error:(...r)=>{e.error.apply(e,r)},info:(...r)=>{e.info.apply(e,r)},warn:(...r)=>{e.warn.apply(e,r)}}});UX(i,global),i.Reflect=Reflect,i.require=function(o){let s=Uo.prototype._compile;Uo.prototype._compile=JTe(i);let a=i.module.require(o);return Uo.prototype._compile=s,a},i.process=new process.constructor;for(let r of Object.keys(process))i.process[r]=process[r];return WTe.forEach(r=>{i.process[r]=YTe(r)}),i.process.chdir=()=>{},i.process.umask=r=>{if(typeof r<"u")throw new Error("Cannot use process.umask() to change mask (read-only)");return process.umask()},i}function Qee(n,e,t=!1){if(t||!Gee.default.existsSync(e))return{activate:()=>{},deactivate:null};let i=$Te(e,Kee(`extension:${n}`));delete Uo._cache[require.resolve(e)];let r=i.require(e),o=r&&r.activate||r;return typeof o!="function"?{activate:()=>{},deactivate:null}:{activate:o,deactivate:typeof r.deactivate=="function"?r.deactivate:null}}var Gee,zee,CD,Kee,bnt,Uo,WTe,Vee=k(()=>{"use strict";Gee=S(require("fs")),zee=S(require("path")),CD=S(require("vm"));Cs();Kee=q(),bnt=Kee("util-factoroy"),Uo=require("module"),WTe=["reallyExit","abort","umask","setuid","setgid","setgroups","_fatalException","exit","kill"]});function UTe(n){return n==="daily"?ete:ete*7}function rte(n,e){let t=[];return xd(n,e,t)!=null&&t.length==0}function xd(n,e,t){let i=rl.default.join(n,"package.json");if(!vn.default.existsSync(i)){t.push(`package.json not found in ${n}`);return}let r=gi(i),{name:o,engines:s,main:a}=r;if(a=a??"index.js",a.endsWith(".js")||(a=a+".js"),o||t.push("can't find name in package.json"),(!s||!hi(s))&&t.push(`invalid engines in ${i}`),s&&!s.vscode&&!vn.default.existsSync(rl.default.join(n,a))&&t.push(`main file ${a} not found, you may need to build the project.`),hi(s)){let l=Object.keys(s);if(!l.includes("coc")&&!l.includes("vscode")&&t.push("Engines in package.json doesn't have coc or vscode"),l.includes("coc")){let u=s.coc.replace(/^\^/,">=");tte.default.satisfies(e,u)||t.push(`Please update coc.nvim, ${r.name} requires coc.nvim ${s.coc}`)}}return r}function XTe(n){return/^https?:/.test(n)||!n.includes("@")?n:n.replace(/@[\d.]+$/,"")}function ote(n){try{vn.default.existsSync(n)||vn.default.mkdirSync(n,{recursive:!0}),vn.default.statSync(n).isDirectory()||(nte.info(`Trying to delete ${n}`),vn.default.unlinkSync(n),vn.default.mkdirSync(n,{recursive:!0}));let t=rl.default.join(n,"package.json");vn.default.existsSync(t)||vn.default.writeFileSync(t,'{"dependencies":{}}',"utf8")}catch(e){return console.error(`Unexpected error when check data home ${n}: ${e}`),!1}return!0}async function ste(n){return vn.default.existsSync(n)?(await(0,ite.promisify)(vn.default.readdir)(n)).filter(t=>t.endsWith(".js")):[]}var vn,rl,tte,ite,nte,ete,SD,RF=k(()=>{"use strict";vn=S(require("fs")),rl=S(require("path")),tte=S(of()),ite=require("util");$e();wi();nte=q()("extension-stat"),ete=24*60*60*1e3,SD=class{constructor(e){this.folder=e;this.disabled=new Set;this.locked=new Set;this.extensions=new Set;this.localExtensions=new Map;try{this.migrate()}catch(t){nte.error(`Error on update package.json at ${e}`,t)}}migrate(){let e=gi(this.jsonFile),t=rl.default.join(this.folder,"db.json"),i=!1;if(vn.default.existsSync(t)){let o=gi(t),s=o.extension??{};for(let[a,l]of Object.entries(s))l.disabled&&this.disabled.add(a),l.locked&&this.locked.add(a);e.disabled=Array.from(this.disabled),e.locked=Array.from(this.locked),e.lastUpdate-o.lastUpdate,vn.default.unlinkSync(t),i=!0}else this.disabled=new Set(e.disabled??[]),this.locked=new Set(e.locked??[]);i&&Ca(this.jsonFile,e);let r=Object.keys(e.dependencies??{});this.extensions=new Set(r)}addLocalExtension(e,t){this.localExtensions.set(e,t)}getFolder(e){return this.extensions.has(e)?rl.default.join(this.folder,"node_modules",e):this.localExtensions.get(e)}getExtensionsStat(){let e={};for(let t of this.extensions)this.disabled.has(t)?e[t]=1:this.locked.has(t)?e[t]=2:e[t]=0;return e}hasExtension(e){return this.extensions.has(e)}addExtension(e,t){let i=gi(this.jsonFile);i.dependencies=i.dependencies??{},i.dependencies[e]=t,this.extensions.add(e),Ca(this.jsonFile,i)}removeExtension(e){let t=gi(this.jsonFile);t.disabled&&(t.disabled=t.disabled.filter(i=>i!==e)),t.locked&&(t.locked=t.locked.filter(i=>i!==e)),t.dependencies=t.dependencies??{},delete t.dependencies[e],this.extensions.delete(e),Ca(this.jsonFile,t)}isDisabled(e){return this.disabled.has(e)}get lockedExtensions(){return Array.from(this.locked)}get disabledExtensions(){return Array.from(this.disabled)}get dependencies(){return gi(this.jsonFile).dependencies??{}}setDisable(e,t){t?this.disabled.add(e):this.disabled.delete(e),this.update("disabled",Array.from(this.disabled))}setLocked(e,t){t?this.locked.add(e):this.locked.delete(e),this.update("locked",Array.from(this.disabled))}setLastUpdate(){this.update("lastUpdate",Date.now())}shouldUpdate(e){if(e==="never")return!1;let t=UTe(e),i=gi(this.jsonFile);return i.lastUpdate==null||Date.now()-i.lastUpdate>t}get globalIds(){let e=gi(this.jsonFile);return Object.keys(e.dependencies??{})}filterGlobalExtensions(e){let t=this.disabledExtensions,i=this.dependencies,r=new Map;e.forEach(a=>{let l=XTe(a);r.set(l,a)});let o=[],s=[];for(let[a,l]of Object.entries(i))vn.default.existsSync(rl.default.join(this.folder,"node_modules",a,"package.json"))&&(s.push(a),typeof l=="string"&&/^https?:/.test(l)&&o.push(l));for(let a of r.keys()){if(t.includes(a)||this.extensions.has(a)){r.delete(a);continue}(/^https?:/.test(a)&&o.some(l=>l.startsWith(a))||s.includes(a))&&r.delete(a)}return Array.from(r.values())}update(e,t){let i=gi(this.jsonFile);i[e]=t,Ca(this.jsonFile,i)}get jsonFile(){return rl.default.join(this.folder,"package.json")}}});function ate(n){let e=[];for(let t of n??[]){let i=t.split(":")[0];i&&!e.includes(i)&&e.push(i)}return e}function GTe(n,e){for(let t of e){let i=t.split(":");if(i[0]=="onLanguage"&&(n.languageId==i[1]||n.filetype==i[1]))return!0}return!1}function zTe(n,e){for(let t of e){let i=t.split(":");if(i[0]=="onCommand"&&n==i[1])return!0}return!1}function KTe(n,e){let t=j.parse(n).scheme;for(let i of e){let r=i.split(":");if(r[0]=="onFileSystem"&&t==r[1])return!0}return!1}function lte(n){let{activationEvents:e}=n;return!e||!Array.isArray(e)?[]:e.filter(t=>typeof t=="string"&&t.length>0)}function QTe(n){let e=[];for(let t of n){let i=t.split(":");i[0]=="workspaceContains"&&i[1]&&e.push(i[1])}return e}var ute,wn,DD,cte,fb,TD,hte=k(()=>{"use strict";ute=S(require("fs")),wn=S(require("path")),DD=S(W());Pe();Jt();VR();fe();WK();re();nt();Vee();$e();xe();ie();RF();cte=q(),fb=cte("extensions-manager"),TD=class{constructor(e,t){this.states=e;this.folder=t;this.activated=!1;this.disposables=[];this.extensions=new Map;this._onDidLoadExtension=new DD.Emitter;this._onDidActiveExtension=new DD.Emitter;this._onDidUnloadExtension=new DD.Emitter;this.singleExtensionsRoot=wn.default.join(process.env.COC_VIMCONFIG,"coc-extensions");this.onDidLoadExtension=this._onDidLoadExtension.event;this.onDidActiveExtension=this._onDidActiveExtension.event;this.onDidUnloadExtension=this._onDidUnloadExtension.event;let i=this.memos=new Em(wn.default.resolve(process.env.COC_DATA_HOME,"memos.json")),r=wn.default.resolve(process.env.COC_DATA_HOME,"../memos.json");i.merge(r)}get modulesFolder(){return wn.default.join(this.folder,"node_modules")}activateExtensions(){this.activated=!0,this.attachEvents();let e=Array.from(this.extensions.keys());return Promise.allSettled(e.map(t=>{let{extension:i}=this.extensions.get(t);return this.autoActiavte(t,i)}))}async loadFileExtensions(){let e=this.singleExtensionsRoot,t=await ste(e);await Promise.allSettled(t.map(i=>this.loadExtensionFile(wn.default.join(e,i))))}attachEvents(){v.onDidRuntimePathChange(async e=>{let t=e.filter(r=>r&&rte(r,v.version)),i=D.createOutputChannel("extensions");await Promise.allSettled(t.map(r=>(i.appendLine(`Loading extension from runtimepath: ${r}`),this.loadExtension(r))))},null,this.disposables),v.onDidOpenTextDocument(e=>{let t=v.getDocument(e.bufnr);this.tryActivateExtensions("onLanguage",i=>GTe(t,i)),this.tryActivateExtensions("onFileSystem",i=>KTe(t.uri,i))},null,this.disposables),P.on("Command",async e=>{let t=!1;this.tryActivateExtensions("onCommand",i=>{let r=zTe(e,i);return r&&(t=!0),r}),t&&await Nt(50)},null,this.disposables),v.onDidChangeWorkspaceFolders(e=>{e.added.length>0&&this.tryActivateExtensions("workspaceContains",t=>{let i=QTe(t);return v.checkPatterns(i,e.added)})},null,this.disposables)}async cleanExtensions(){let{globalIds:e}=this.states;return await YE(this.modulesFolder),e.filter(t=>!this.states.isDisabled(t))}tryActivateExtensions(e,t){for(let i of this.extensions.values()){if(i.extension.isActive||!i.events.includes(e))continue;let{extension:o}=i,s=lte(o.packageJSON);Promise.resolve(t(s)).then(a=>{a&&Promise.resolve(o.activate())})}}async checkAutoActivate(e){let t=lte(e);if(t.length===0||t.includes("*"))return!0;let i=[];for(let r of t){let o=r.split(":"),s=o[0];if(s==="onLanguage"){if(v.languageIds.has(o[1])||v.filetypes.has(o[1]))return!0}else if(s==="workspaceContains"&&o[1])i.push(o[1]);else if(s==="onFileSystem"){for(let a of v.documents)if(j.parse(a.uri).scheme==o[1])return!0}}return!!(i.length>0&&await v.checkPatterns(i))}has(e){return this.extensions.has(e)}getExtension(e){return this.extensions.get(e)}get loadedExtensions(){return Array.from(this.extensions.keys())}get all(){return Array.from(this.extensions.values()).map(e=>e.extension)}async activate(e){let t=this.extensions.get(e);if(!t)throw new Error(`Extension ${e} not registered!`);let{extension:i}=t;return i.isActive?!0:(await Promise.resolve(i.activate()),i.isActive===!0)}async deactivate(e){let t=this.extensions.get(e);!t||!t.extension.isActive||await Promise.resolve(t.deactivate())}async loadExtension(e){if(Array.isArray(e))return(await Promise.allSettled(e.map(a=>this.loadExtension(a)))).forEach(a=>{if(a.status==="rejected")throw new Error(`Error on loadExtension ${a.reason}`)}),!0;let t=[],i=xd(e,v.version,t);if(t.length>0)throw new Error(t[0]);let{name:r}=i;if(this.states.isDisabled(r))return!1;await this.unloadExtension(r);let o=!this.states.hasExtension(r);return o&&this.states.addLocalExtension(r,e),await this.registerExtension(e,Object.freeze(i),o?1:0),!0}async unloadExtension(e){this.extensions.get(e)&&(await this.deactivate(e),this.extensions.delete(e),this._onDidUnloadExtension.fire(e))}async reloadExtension(e){let t=this.extensions.get(e);if(!t||t.type==3)throw new Error(`Extension ${e} not registered`);t.type==2?await this.loadExtensionFile(t.filepath):await this.loadExtension(t.directory)}async call(e,t,i){let r=this.extensions.get(e);if(!r)throw new Error(`extension ${e} not registered`);let{extension:o}=r;o.isActive||await this.activate(e);let{exports:s}=o;if(!s||typeof s[t]!="function")throw new Error(`method ${t} not found on extension ${e}`);return await Promise.resolve(s[t].apply(null,i))}getExtensionsInfo(){let e=[];for(let[t,i]of this.extensions.entries()){let{directory:r,filepath:o}=i;e.push({name:t,filepath:o,directory:r})}return e}registContribution(e,t){let{contributes:i}=t;if(i){let{configuration:r,rootPatterns:o,commands:s}=i;if(r&&r.properties){let{properties:a}=r,l={};for(let u of Object.keys(a)){let c=a[u].default;c!=null&&(l[u]=c)}v.configurations.extendsDefaults(l,e)}if(o&&o.length)for(let a of o)v.workspaceFolderControl.addRootPattern(a.filetype,a.patterns);if(s&&s.length)for(let a of s)ue.titles.set(a.command,a.title)}}getExtensionState(e){if(this.states.isDisabled(e))return"disabled";let i=this.getExtension(e);if(!i)return"unknown";let{extension:r}=i;return r.isActive?"activated":"loaded"}async autoActiavte(e,t){try{await this.checkAutoActivate(t.packageJSON)&&await Promise.resolve(t.activate())}catch(i){fb.error(`Error on activate ${e}`,i)}}async loadExtensionFile(e){if(!ute.default.existsSync(e))return;let t=wn.default.basename(e),i=wn.default.basename(e,".js"),r="single-"+i,o=wn.default.dirname(e),s={name:r,main:t,engines:{coc:">=0.0.82"}},a=wn.default.join(o,i+".json"),l=gi(a);for(let u of["activationEvents","contributes"])s[u]=l[u];await this.unloadExtension(r),await this.registerExtension(o,s,2)}registerExtensions(e){for(let t of e)try{let i=t.isLocal?1:0;this.registerExtension(t.root,t.packageJSON,i)}catch(i){fb.error("Error on regist extension: ",i)}}async registerExtension(e,t,i){let r=t.name;if(this.states.isDisabled(r))return;let o=!1,s,a=wn.default.join(e,t.main||"index.js"),l=i===2?a:e,u,c,h=[],d={activate:()=>s||(s=new Promise(async(g,p)=>{fb.debug(`activating extension ${r}`);try{let f=typeof t.engines.coc>"u";c=Qee(r,a,f);let m={subscriptions:h,extensionPath:l,globalState:this.memos.createMemento(`${r}|global`),workspaceState:this.memos.createMemento(`${r}|${v.rootPath}`),asAbsolutePath:w=>wn.default.join(e,w),storagePath:wn.default.join(this.folder,`${r}-data`),logger:cte(r)},b=await Promise.resolve(c.activate(m));o=!0,u=b,this._onDidActiveExtension.fire(d),g(b)}catch(f){fb.error(`Error on active extension ${r}:`,f),p(f)}}),s),id:r,packageJSON:t,extensionPath:l,get isActive(){return o},get exports(){if(!o)throw new Error(`Invalid access to exports, extension "${r}" not activated`);return u}};Object.freeze(d),this.extensions.set(r,{id:r,type:i,isLocal:i==1,extension:d,directory:e,filepath:a,events:ate(t.activationEvents),deactivate:async()=>{if(!!o&&(o=!1,s=void 0,u=void 0,U(h),c&&typeof c.deactivate=="function"))try{await Promise.resolve(c.deactivate()),c=void 0}catch(g){fb.error(`Error on ${r} deactivate: `,g)}}}),this.registContribution(r,t),this._onDidLoadExtension.fire(d),this.activated&&await this.autoActiavte(r,d)}async registerInternalExtension(e,t){let{id:i,packageJSON:r}=e;this.extensions.set(i,{id:i,directory:__dirname,type:3,events:ate(r.activationEvents),extension:e,deactivate:t,isLocal:!0}),this.registContribution(i,r),this._onDidLoadExtension.fire(e),await this.autoActiavte(i,e)}async uninstallExtensions(e){let[t,i]=gw(e,r=>this.states.hasExtension(r));for(let r of t)await this.unloadExtension(r),this.states.removeExtension(r),await YE(wn.default.join(this.modulesFolder,r));i.length>0&&D.showWarningMessage(`Global extensions ${i.join(", ")} not found`),t.length>0&&D.showInformationMessage(`Removed extensions: ${t.join(" ")}`)}async toggleExtension(e){let t=this.getExtensionState(e);if(t=="activated"&&await this.deactivate(e),t!="disabled")this.states.setDisable(e,!0),await this.unloadExtension(e);else if(this.states.setDisable(e,!1),e.startsWith("single-")){let i=wn.default.join(this.singleExtensionsRoot,`${e.replace(/^single-/,"")}.js`);await this.loadExtensionFile(i)}else{let i=this.states.getFolder(e);i?await this.loadExtension(i):D.showWarningMessage(`Extension ${e} not found`)}}async watchExtension(e){let t=this.getExtension(e);if(!t)throw new Error(`extension ${e} not found`);if(e.startsWith("single-"))D.showInformationMessage(`watching ${t.filepath}`),this.disposables.push(Xc(t.filepath,async()=>{await this.loadExtensionFile(t.filepath),D.showInformationMessage(`reloaded ${e}`)},!1));else{let i=v.getWatchmanPath();if(!i)throw new Error("watchman not found");let r=await ys.createClient(i,t.directory);this.disposables.push(r),D.showInformationMessage(`watching ${t.directory}`),await r.subscribe("**/*.js",async()=>{await this.reloadExtension(e),D.showInformationMessage(`reloaded ${e}`)})}}dispose(){U(this.disposables)}}});var dte,gte,$nt,kD,PD,pte=k(()=>{"use strict";dte=S(Pn()),gte=S(W());fe();vR();re();_e();xe();ie();$nt=q()("extension-ui"),kD=class{constructor(e,t){this.isUpdate=e;this.channel=t}start(e){this.channel.appendLine(`${this.isUpdate?"Updating":"Installing"} ${e.join(", ")}`)}addMessage(e,t,i){i||this.channel.appendLine(`${e} - ${t}`)}startProgress(e){this.channel.appendLine(`Start ${this.isUpdate?"update":"install"} ${e}`)}finishProgress(e,t){t?this.channel.appendLine(`${e} ${this.isUpdate?"update":"install"} succeed!`):this.channel.appendLine(`${e} ${this.isUpdate?"update":"install"} failed!`)}},PD=class{constructor(e){this.isUpdate=e;this.statMap=new Map;this.updated=new Set;this.messagesMap=new Map;this.disposables=[];this.names=[];let t=D.createFloatFactory({modes:["n"]});this.disposables.push(t);let i=(0,dte.debounce)(async(r,o)=>{if(r==this.bufnr){let s=this.getMessages(o[0]-1),a=s.length>0?[{content:s.join(`
|
||
`),filetype:"txt"}]:[];await t.show(a)}},500);this.disposables.push(gte.Disposable.create(()=>{i.clear()})),P.on("CursorMoved",i,this.disposables),P.on("BufUnload",r=>{r===this.bufnr&&this.dispose()},null,this.disposables)}async start(e){this.statMap.clear(),this.names=e;for(let t of e)this.statMap.set(t,0);await this.show()}addMessage(e,t){let i=this.messagesMap.get(e)||[];this.messagesMap.set(e,i.concat(t.trim().split(/\r?\n/))),(t.startsWith("Updated to")||t.startsWith("Installed extension"))&&this.updated.add(e)}startProgress(e){this.statMap.set(e,2)}finishProgress(e,t){this.statMap.set(e,t?3:1)}get remains(){let e=0;for(let t of this.names){let i=this.statMap.get(t);[3,1].includes(i)||(e=e+1)}return e}getLinesAndHighlights(e){let t=[],i=[];for(let r of this.names){let o=this.statMap.get(r),s="*",a,l=e+t.length;switch(o){case 2:{let d=new Date,g=Math.floor(d.getMilliseconds()/100);s=yR[g],a=void 0;break}case 1:s="\u2717",a="ErrorMsg";break;case 3:s="\u2713",a=this.updated.has(r)?"MoreMsg":"Comment";break}let u=this.messagesMap.get(r)||[],c=`- ${s} `,h=Q(c);a&&i.push({hlGroup:a,lnum:l,colStart:h,colEnd:h+Q(r)}),t.push(`${c}${r} ${u.length?u[u.length-1]:""}`)}return{lines:t,highlights:i}}getMessages(e){let t=this.names[e-2];return this.messagesMap.get(t)??[]}get stopped(){return this.interval==null}draw(){let{remains:e,bufnr:t}=this,{nvim:i}=v;if(!t)return;let r=i.createBuffer(t),o=e==0?`${this.isUpdate?"Update":"Install"} finished`:`Installing, ${e} remaining...`,{lines:s,highlights:a}=this.getLinesAndHighlights(2);i.pauseNotification(),r.setLines([o,"",...s],{start:0,end:-1,strictIndexing:!1},!0),r.updateHighlights("coc-extensions",a,{priority:99}),e==0&&this.interval&&(clearInterval(this.interval),this.interval=null),i.resumeNotification(!0,!0)}highlight(){let{nvim:e}=v;e.call("matchadd",["CocListFgCyan","^\\-\\s\\zs\\*"],!0),e.call("matchadd",["CocListFgGreen","^\\-\\s\\zs\u2713"],!0),e.call("matchadd",["CocListFgRed","^\\-\\s\\zs\u2717"],!0)}async show(){let e=P.requesting===!0,{nvim:t}=v;t.pauseNotification(),t.command(e?"enew":"vs +enew",!0),t.call("bufnr",["%"],!0),t.command("setl buftype=nofile bufhidden=wipe noswapfile nobuflisted wrap undolevels=-1",!0),e||t.command("nnoremap <silent><nowait><buffer> q :q<CR>",!0),this.highlight();let i=await t.resumeNotification();this.bufnr=i[0][1],this.interval=setInterval(()=>{this.draw()},100)}dispose(){this.bufnr=void 0,this.messagesMap.clear(),this.statMap.clear(),U(this.disposables),clearInterval(this.interval),this.interval=null}}});var bte={};Go(bte,{Extensions:()=>RD,default:()=>je,toUrl:()=>mte});function mte(n){return nw(n)?n.replace(/\.git(#master|#main)?$/,""):""}var Zu,mb,fte,VTe,_F,eke,ED,RD,je,Wo=k(()=>{"use strict";Zu=S(require("fs")),mb=S(require("path")),fte=S(Bg());Jt();re();nt();jT();wi();xe();ie();BK();hte();RF();pte();VTe=q(),_F=VTe("extensions-index"),eke=process.env.COC_DATA_HOME,ED=mb.default.join(eke,"extensions"),RD=class{constructor(){this.modulesFolder=mb.default.join(ED,"node_modules");this._additionalSchemes={};ote(ED),this.states=new SD(ED),this.manager=new TD(this.states,ED)}async init(){if(process.env.COC_NO_PLUGINS)return;let e=this.globalExtensionStats(),t=await v.nvim.eval('join(globpath(&runtimepath, "", 0, 1), ",")'),i=this.runtimeExtensionStats(t);e=e.concat(i),this.manager.registerExtensions(e),await this.manager.loadFileExtensions(),ue.register({id:"extensions.forceUpdateAll",execute:async()=>{let r=await this.manager.cleanExtensions();_F.info(`Force update extensions: ${r}`),await this.installExtensions(r)}},!1,"remove all global extensions and install them")}activateExtensions(){if(process.env.COC_NO_PLUGINS)return;this.manager.activateExtensions();let e=this.states.filterGlobalExtensions(v.env.globalExtensions);this.installExtensions(e);let t=v.getConfiguration("coc.preferences",null),i=t.get("extensionUpdateCheck","never"),r=t.get("silentAutoupdate",!0);this.states.shouldUpdate(i)&&(this.outputChannel.appendLine("Start auto update..."),this.updateExtensions(r).catch(o=>{this.outputChannel.appendLine(`Error on updateExtensions ${o}`)}))}get onDidLoadExtension(){return this.manager.onDidLoadExtension}get onDidActiveExtension(){return this.manager.onDidActiveExtension}get onDidUnloadExtension(){return this.manager.onDidUnloadExtension}get schemes(){return this._additionalSchemes}get outputChannel(){return D.createOutputChannel("extensions")}get all(){return this.manager.all}has(e){return this.manager.has(e)}getExtension(e){return this.manager.getExtension(e)}addSchemeProperty(e,t,i){this._additionalSchemes[e]=t,v.configurations.extendsDefaults({[e]:t.default},i)}getExtensionState(e){return this.manager.getExtensionState(e)}isActivated(e){let t=this.manager.getExtension(e);return t!=null&&t.extension.isActive}async call(e,t,i){return await this.manager.call(e,t,i)}get npm(){let e=v.getConfiguration("npm",null).get("binPath","npm");e=v.expand(e);for(let t of[e,"yarnpkg","yarn","npm"])if(Wl(t))return fte.default.sync(t);return D.showErrorMessage("Can't find npm or yarn in your $PATH"),null}createInstallerUI(e,t){return t?new kD(e,this.outputChannel):new PD(e)}creteInstaller(e,t){return new $C(this.modulesFolder,e,t)}async installExtensions(e){let{npm:t}=this;if(!t||e.length==0)return;e=Ai(e);let i=this.createInstallerUI(!1,!1);await Promise.resolve(i.start(e)),await Yg(e,async o=>{try{i.startProgress(o);let s=this.creteInstaller(t,o);s.on("message",(u,c)=>{i.addMessage(o,u,c)});let a=await s.install();i.finishProgress(o,!0),this.states.addExtension(a.name,a.url?a.url:`>=${a.version}`),o.match(/@[\d.]+$/)!=null&&this.states.setLocked(a.name,!0),await this.manager.loadExtension(a.folder)}catch(s){i.addMessage(o,s.message),i.finishProgress(o,!1),D.showErrorMessage(`Error on install ${o}: ${s}`),_F.error(`Error on install ${o}`,s)}})}async updateExtensions(e=!1){let{npm:t}=this;if(!t)return;let i=this.globalExtensionStats();i=i.filter(s=>s.isLocked||s.state==="disabled"?(this.outputChannel.appendLine(`Skipped update for ${s.isLocked?"locked":"disabled"} extension "${s.id}"`),!1):!0),this.states.setLastUpdate(),this.cleanModulesFolder();let r=this.createInstallerUI(!0,e);await Promise.resolve(r.start(i.map(s=>s.id))),await Yg(i,async s=>{let{id:a}=s;try{r.startProgress(a);let l=s.exotic?s.uri:null,u=this.creteInstaller(t,a);u.on("message",(h,d)=>{r.addMessage(a,h,d)});let c=await u.update(l);r.finishProgress(a,!0),c&&await this.manager.loadExtension(c)}catch(l){r.addMessage(a,l.message),r.finishProgress(a,!1),D.showErrorMessage(`Error on update ${a}: ${l}`),_F.error(`Error on update ${a}`,l)}},e?1:3)}async getExtensionStates(){let e=await v.nvim.eval('join(globpath(&runtimepath, "", 0, 1), ",")'),t=this.runtimeExtensionStats(e),i=this.globalExtensionStats();return t.concat(i)}globalExtensionStats(){let e=this.states.dependencies,t=this.states.lockedExtensions,i=[];return Object.entries(e).map(([r,o])=>{let s=mb.default.join(this.modulesFolder,r),a=[],l=xd(s,v.version,a);if(a.length>0){this.outputChannel.appendLine(`Error on load ${r} at ${s}: ${a.join(`
|
||
`)}`);return}l.name=r,i.push({id:r,isLocal:!1,version:l.version,description:l.description??"",isLocked:t.includes(r),exotic:/^https?:/.test(o),uri:mte(o),root:Zu.default.realpathSync(s),state:this.getExtensionState(r),packageJSON:Object.freeze(l)})}),i}runtimeExtensionStats(e){let t=this.states.lockedExtensions,i=e.split(","),r=[],o=new Set;return i.map(s=>{let a=[],l=xd(s,v.version,a);if(a.length>0)return;let{name:u}=l;!u||this.states.hasExtension(u)||o.has(u)||(this.states.addLocalExtension(u,s),o.add(u),r.push({id:l.name,isLocal:!0,isLocked:t.includes(u),version:l.version,description:l.description??"",exotic:!1,root:s,state:this.getExtensionState(l.name),packageJSON:Object.freeze(l)}))}),r}cleanModulesFolder(){let t=this.states.globalIds.map(r=>r.replace(/\/.*$/,""));if(!Zu.default.existsSync(this.modulesFolder))return;let i=Zu.default.readdirSync(this.modulesFolder);for(let r of i){if(t.includes(r))continue;let o=mb.default.join(this.modulesFolder,r),s=Zu.default.lstatSync(o);s.isSymbolicLink()?Zu.default.unlinkSync(o):s.isDirectory()&&Zu.default.rmSync(o,{recursive:!0,force:!0})}}dispose(){this.manager.dispose()}};je=new RD});var LF,frt,tke,_D,yte=k(()=>{"use strict";LF=S(bD());Pe();$e();tl();frt=q()("sources-keywords"),tke=["_","$"],_D=class{constructor(e){this.doc=e;this.lineWords=[];this._gitIgnored=!1;this.parseWords();let t=j.parse(e.uri);t.scheme==="file"&&$W(t.fsPath).then(i=>{this._gitIgnored=i})}getWords(){let e=[];for(let t of this.lineWords)t.forEach(i=>{e.includes(i)||e.push(i)});return e}parseWords(){let{lineWords:e,doc:t}=this,{chars:i}=t;for(let r of this.doc.textDocument.lines){let o=i.matchLine(r,2);e.push(o)}}get bufnr(){return this.doc.bufnr}get gitIgnored(){return this._gitIgnored}get words(){return new Set}onChange(e){if(e.contentChanges.length==0)return;let{lineWords:t,doc:i}=this,{range:r,text:o}=e.contentChanges[0],{start:s,end:a}=r,l=s.line,c=a.line-l,d=i.textDocument.lines.slice(l,l+o.split(/\n/).length).map(g=>i.chars.matchLine(g,2));t.splice(l,c+1,...d)}*matchWords(e,t,i){let r=t[0],o=oD(t.charCodeAt(0)),s=t.length,a=Fr(t),l=[],{lineWords:u}=this;e>=u.length&&(e=u.length-1);for(let c=0;c<u.length;c++){let h=c<e?e-c-1:c,d=u[h];for(let g of d??[]){let p=g[0];o&&tke.includes(p)&&(p=g[1]),!(i&&!sD(r,o?(0,LF.default)(p):p))&&(l.includes(g)||s>1&&!el(a,o?(0,LF.default)(g):g)||(l.push(g),yield g))}}}dispose(){this.lineWords=void 0}}});var Prt,cr,Cd=k(()=>{"use strict";dn();et();_e();ie();Prt=q()("sources-source"),cr=class{constructor(e){this._disabled=!1;this.nvim=v.nvim,this.name=e.name,this.filepath=e.filepath||"",this.sourceType=e.sourceType||0,this.isSnippet=!!e.isSnippet,this.defaults=e}get priority(){return this.getConfig("priority",1)}get triggerOnly(){let e=this.defaults.triggerOnly;return typeof e=="boolean"?e:!this.triggerCharacters&&!this.triggerPatterns?!1:Array.isArray(this.triggerPatterns)&&this.triggerPatterns.length!=0}get triggerCharacters(){return this.getConfig("triggerCharacters",null)}get optionalFns(){return this.defaults.optionalFns||[]}get triggerPatterns(){let e=this.getConfig("triggerPatterns",null);return!e||e.length==0?null:e.map(t=>typeof t=="string"?new RegExp(t+"$"):t)}get shortcut(){let e=this.getConfig("shortcut","");return e||this.name.slice(0,3)}get enable(){return this._disabled?!1:this.getConfig("enable",!0)}get filetypes(){return this.getConfig("filetypes",null)}get disableSyntaxes(){return this.getConfig("disableSyntaxes",[])}getConfig(e,t){let i=v.getConfiguration(`coc.source.${this.name}`);return t=Qr(this.defaults,e)?this.defaults[e]:t,i.get(e,t)}toggle(){this._disabled=!this._disabled}get firstMatch(){return this.getConfig("firstMatch",!0)}get menu(){return""}fixStartcol(e,t){let{col:i,input:r,line:o,bufnr:s}=e,a=tt(o,0,i),l=v.getDocument(s);if(!l)return i;let{chars:u}=l;for(let c=a.length-1;c>=0;c--){let h=a[c];if(!u.isKeywordChar(h)&&!t.includes(h))break;r=`${h}${r}`,i=i-1}return e.col=i,e.input=r,i}async shouldComplete(e){let{disableSyntaxes:t}=this;if(e.synname&&t&&t.length){let r=(e.synname||"").toLowerCase();if(t.findIndex(o=>r.includes(o.toLowerCase()))!==-1)return!1}let i=this.defaults.shouldComplete;return typeof i=="function"?await Promise.resolve(i.call(this,e)):!0}async refresh(){let e=this.defaults.refresh;typeof e=="function"&&await Promise.resolve(e.call(this))}async onCompleteDone(e,t){let i=this.defaults.onCompleteDone;typeof i=="function"&&await Promise.resolve(i.call(this,e,t))}async doComplete(e,t){let i=this.defaults.doComplete;return typeof i=="function"?await Promise.resolve(i.call(this,e,t)):null}async onCompleteResolve(e,t,i){let r=this.defaults.onCompleteResolve;typeof r=="function"&&await Promise.resolve(r.call(this,e,t,i))}}});function wte(n,e){if(!n)return;if(n.textEdit){let i=Ut.InsertReplaceEdit.is(n.textEdit)?n.textEdit.replace:n.textEdit.range;if(i)return i}let t=e==null?void 0:e.editRange;if(!!t)return Ut.Range.is(t)?t:t.replace}function ike(n,e,t){let i=e[0],r=wte(i,t);if(r===void 0)return;let{character:o}=r.start;for(let s=1;s<Math.min(10,e.length);s++){let a=e[s];if(!a.textEdit)return;let l=wte(a,t);if(!l||l.start.character!==o)return}return _t(n,r.start.character)}function nke(n,e,t,i){let{label:r,data:o,insertText:s,textEdit:a}=n;if(o&&typeof o.word=="string")return o.word;let l=s??r,u;if(a?(u=Ut.InsertReplaceEdit.is(a)?a.insert:a.range,l=a.newText):i.editRange&&(u=Ut.Range.is(i.editRange)?i.editRange:i.editRange.insert),u&&u.start.line==u.end.line){let{line:h,col:d,position:g}=t,p=Gi(h,d);if(u.start.character<p){let f=h.slice(u.start.character,p);f.length&&l.startsWith(f)&&(l=l.slice(f.length))}else u.start.character>p&&(l=h.slice(p,u.start.character)+l);if(p=g.character,u.end.character>p){let f=h.slice(p,u.end.character);l.endsWith(f)&&(l=l.slice(0,-f.length))}}let c=e?new As().text(l):l;return c.indexOf(`
|
||
`)===-1?c:c.replace(/\n.*$/s,"")}function rke(n,e,t){let i=n.match(/^\s*/)[0],r=e.match(/^\s*/)[0];if(i===r)return 0;let o=r.length-i.length;return t.start.character+=o,t.end.character+=o,o}function xte(n){return n?!n.detail&&!n.description:!0}var Ut,vte,bb,Cte=k(()=>{"use strict";Ut=S(W());Jt();fp();Yu();xD();dn();re();nt();tl();wi();_e();ie();vte=q()("source-language"),bb=class{constructor(e,t,i,r,o,s,a){this.name=e;this.shortcut=t;this.provider=i;this.documentSelector=r;this.triggerCharacters=o;this.allCommitCharacters=s;this.priority=a;this.sourceType=2;this._enabled=!0;this.completeItems=[];this.itemDefaults={};this.resolving=new WeakMap}get enable(){return this._enabled}toggle(){this._enabled=!this._enabled}shouldCommit(e,t){let i=this.completeItems[e.index];return i?this.allCommitCharacters.includes(t)?!0:(i.commitCharacters??this.itemDefaults.commitCharacters??[]).includes(t):!1}async doComplete(e,t){let{triggerCharacter:i,input:r,bufnr:o,position:s}=e;this.completeItems=[];let a=this.getTriggerKind(e);this.triggerContext={lnum:s.line,character:s.character,line:e.line};let l={triggerKind:a,option:e};a==Ut.CompletionTriggerKind.TriggerCharacter&&(l.triggerCharacter=i);let u=v.getDocument(o);await wr();let c=await Promise.resolve(this.provider.provideCompletionItems(u.textDocument,s,t,l));if(!c||t.isCancellationRequested)return null;let h=Array.isArray(c)?c:c.items;if(!h||h.length==0)return null;this.itemDefaults=Y0(c)?c.itemDefaults??{}:{},this.completeItems=h;let d=Object.assign({},e),g=ike(e.line,h,this.itemDefaults);if(g>e.col&&r.length>0){g=e.col;let b=Gi(e.line,g);h.forEach(w=>{let{textEdit:x}=w;Ut.TextEdit.is(x)?x.range.start.character=b:Ut.InsertReplaceEdit.is(x)&&(x.replace.start.character=b,x.insert.start.character=b)})}let p,f=Y0(c)?c.isIncomplete==!0:!1;g==null&&r.length>0&&this.triggerCharacters.includes(e.triggerCharacter)&&(h.every(b=>(b.insertText??b.label).startsWith(e.input))||(g=e.col+Q(e.input))),typeof g=="number"&&g<d.col&&(p=g<d.col?tt(e.line,g,d.col):"",d.col=g);let m=h.map((b,w)=>{let x=this.convertVimCompleteItem(b,d,p);return x.index=w,x});return{startcol:g,isIncomplete:f,items:m}}onCompleteResolve(e,t,i){let{index:r}=e,o=this.completeItems[r];if(!o)return Promise.resolve();if(!(typeof this.provider.resolveCompletionItem=="function"))return this.addDocumentation(e,o,t.filetype),Promise.resolve();let a=this.resolving.get(o);return a||(a=new Promise((l,u)=>{let c=i.onCancellationRequested(()=>{this.resolving.delete(o)});Promise.resolve(this.provider.resolveCompletionItem(o,i)).then(h=>{if(c.dispose(),i.isCancellationRequested||!h){this.resolving.delete(o),l();return}Object.assign(o,h),this.addDocumentation(e,o,t.filetype),l()},u)}),this.resolving.set(o,a),a)}addDocumentation(e,t,i){let{detailRendered:r}=e,{documentation:o,detail:s,labelDetails:a}=t,l=[];if(!xte(a)&&!r){let u=(a.detail??"")+(a.description?` ${a.description}`:"");l.push({filetype:"txt",content:u})}else if(s&&!e.detailRendered&&s!=e.abbr){let u=/^[\w-\s.,\t\n]+$/.test(s);l.push({filetype:u?"txt":i,content:s})}o&&(typeof o=="string"?l.push({filetype:"txt",content:o}):o.value&&l.push({filetype:o.kind=="markdown"?"markdown":"txt",content:o.value})),l.length!=0&&(e.documentation=l)}async onCompleteDone(e,t,i){let r=this.completeItems[e.index];if(!r)return;let o=v.getDocument(t.bufnr);await o.patchChange(!0);let s=!Je(r.additionalTextEdits);s&&await ai.editsInsideSnippet(r.additionalTextEdits)&&ai.cancel();let a=o.version,l=!1;i?l=await this.applyTextEdit(o,s,r,t):vte.info("Snippets support is disabled, no textEdit applied."),s&&(await o.applyEdits(r.additionalTextEdits,o.version!=a,!l),l&&await ai.selectCurrentPlaceholder()),r.command&&(ue.has(r.command.command)?await ue.execute(r.command):vte.warn(`Command "${r.command.command}" not registered to coc.nvim`))}isSnippetItem(e){return(e.insertTextFormat??this.itemDefaults.insertTextFormat)===Ut.InsertTextFormat.Snippet}async applyTextEdit(e,t,i,r){var x,T;let{linenr:o,col:s}=r,{character:a,line:l}=this.triggerContext,u=await hh(v.nvim);if(u.line!=o-1)return;let c,{textEdit:h,insertText:d,label:g}=i;if(h)c=Ut.InsertReplaceEdit.is(h)?h.replace:h.range;else{let R=this.itemDefaults.editRange;R?c=Ut.Range.is(R)?R:R.replace:i.insertText&&(c=Ut.Range.create(u.line,Gi(l,s),u.line,a))}if(!c)return!1;c.end.character<a&&(c.end.character=a);let p=e.getline(o-1,!1),f=h?h.newText:d??g,m=rke(l,p,c),b=u.character-a-m;if(b!==0&&(c.end.character+=b),this.isSnippetItem(i)){let R=((x=i.data)==null?void 0:x.ultisnip)===!0?{}:(T=i.data)==null?void 0:T.ultisnip,F=i.insertTextMode??this.itemDefaults.insertTextMode;return await ai.insertSnippet(f,!t,c,F,R||void 0)}return await e.applyEdits([Ut.TextEdit.replace(c,f)],!1,u),!1}getTriggerKind(e){let{triggerCharacters:t}=this,i=t.includes(e.triggerCharacter),r=Ut.CompletionTriggerKind.Invoked;return e.triggerForInComplete?r=Ut.CompletionTriggerKind.TriggerForIncompleteCompletions:i&&(r=Ut.CompletionTriggerKind.TriggerCharacter),r}convertVimCompleteItem(e,t,i){var a,l,u;let r=typeof e.label=="string"?e.label.trim():e.insertText??"",o=this.isSnippetItem(e);!o&&!Je(e.additionalTextEdits)&&(o=!0);let s={word:nke(e,o,t,this.itemDefaults),abbr:r,kind:e.kind,detail:e.detail,sortText:e.sortText,filterText:e.filterText??r,preselect:e.preselect===!0,deprecated:e.deprecated===!0||((a=e.tags)==null?void 0:a.includes(Ut.CompletionItemTag.Deprecated)),isSnippet:o,dup:((l=e.data)==null?void 0:l.dup)==0?0:1};return xte(e.labelDetails)||(s.labelDetails=e.labelDetails),i&&(s.filterText.startsWith(i)||e.textEdit&&el(Fr(i),e.textEdit.newText)&&(s.filterText=e.textEdit.newText.replace(/\r?\n/g,"")),!e.textEdit&&!s.word.startsWith(i)&&(s.word=`${i}${s.word}`)),typeof e.score=="number"&&!s.sortText&&(s.sortText=String.fromCodePoint(2<<20-Math.round(e.score))),((u=e.data)==null?void 0:u.optional)&&!s.abbr.endsWith("?")&&(s.abbr=s.abbr+"?"),s}}});var iot,yb,Ste=k(()=>{"use strict";tl();_e();ie();xe();Cd();iot=q()("sources-source-vim"),yb=class extends cr{async callOptionalFunc(e,t){if(!this.optionalFns.includes(e))return null;let r=`coc#source#${this.name}#${e}`,o;try{o=await this.nvim.call(r,t)}catch(s){return D.showErrorMessage(`Vim error from source ${this.name}: ${s}`),null}return o}async shouldComplete(e){return await super.shouldComplete(e)?this.optionalFns.includes("should_complete")?!!await this.callOptionalFunc("should_complete",[e]):!0:!1}async refresh(){await this.callOptionalFunc("refresh",[])}async onCompleteDone(e,t){!this.optionalFns.includes("on_complete")||await this.callOptionalFunc("on_complete",[e])}onEnter(e){if(!this.optionalFns.includes("on_enter"))return;let t=v.getDocument(e);if(!t)return;let{filetypes:i}=this;i&&!i.includes(t.filetype)||this.callOptionalFunc("on_enter",[{bufnr:e,uri:t.uri,languageId:t.filetype}]).logError()}async doComplete(e,t){let{col:i,input:r,line:o,colnr:s}=e,a=await this.callOptionalFunc("get_startcol",[e]);if(t.isCancellationRequested)return;if(a){if(a<0)return null;a=Number(a),(isNaN(a)||a<0)&&(a=i),a!==i&&(r=tt(o,a,s-1),e=Object.assign({},e,{col:a,changed:i-a,input:r}))}let l=await this.nvim.callAsync("coc#util#do_complete",[this.name,e]);if(!l||l.length==0||t.isCancellationRequested)return null;if(this.firstMatch&&r.length){let c=r[0];l=l.filter(h=>{let d=h.filterText?h.filterText[0]:h.word[0];return sD(c,d)})}l=l.map(c=>{if(typeof c=="string")return{word:c,menu:this.menu,isSnippet:this.isSnippet};let h=c.menu?c.menu+" ":"";return c.menu=`${h}${this.menu}`,c.isSnippet=this.isSnippet,c});let u={items:l};return a&&(u.startcol=a),u}}});var Tte={};Go(Tte,{default:()=>vb,register:()=>oke});function oke(n,e){return n.set("around",new vb(e)),Dte.Disposable.create(()=>{n.delete("around")})}var Dte,aot,vb,kte=k(()=>{"use strict";Dte=S(W());re();Cd();aot=q()("sources-around"),vb=class extends cr{constructor(t){super({name:"around",filepath:__filename});this.keywords=t}async getResults(t,i,r,o){let{menu:s}=this,a=Date.now(),l=a,u=0;for(let c of t){let h=Date.now();if(h-l>15&&(await wr(),l=h),o.isCancellationRequested||h-a>80)return!0;if(c!=i&&(u++,r.push({word:c,menu:s}),u==100))return!0}return!1}async doComplete(t,i){let{bufnr:r,input:o,word:s,linenr:a}=t,l=this.keywords.getItem(r);if(o.length===0||!l||i.isCancellationRequested)return null;let u=l.matchWords(a-1,o,!0),c=[];return{isIncomplete:await this.getResults(u,s,c,i),items:c}}}});var Ete={};Go(Ete,{default:()=>wb,register:()=>ske});function ske(n,e){return n.set("buffer",new wb(e)),Pte.Disposable.create(()=>{n.delete("buffer")})}var Pte,hot,wb,Rte=k(()=>{"use strict";Pte=S(W());re();Cd();hot=q()("sources-buffer"),wb=class extends cr{constructor(t){super({name:"buffer",filepath:__filename});this.keywords=t}get ignoreGitignore(){return this.getConfig("ignoreGitignore",!0)}async doComplete(t,i){let{bufnr:r,input:o,word:s}=t;if(await wr(),o.length===0||i.isCancellationRequested)return null;let{menu:a}=this,l=!1,u=Date.now(),c=u,h=new Set,d=[];for(let g of this.keywords.items){if(g.bufnr===r||this.ignoreGitignore&&g.gitIgnored)continue;let p=g.matchWords(0,o,!0);for(let f of p){let m=Date.now();if(i.isCancellationRequested)return null;if(m-c>15&&(await wr(),c=m),m-u>80||h.size>100){l=!0;break}f==s||h.has(f)||(h.add(f),d.push({word:f,menu:a}))}if(l)break}return{isIncomplete:l,items:d}}}});var Fte={};Go(Fte,{default:()=>xb,register:()=>uke});function uke(n){return n.set("file",new xb),Ite.Disposable.create(()=>{n.delete("file")})}var LD,_te,Bn,Lte,Ite,ake,lke,xb,jte=k(()=>{"use strict";LD=S(require("fs")),_te=S(Lo()),Bn=S(require("path")),Lte=S(require("util")),Ite=S(W());Cd();$e();_e();$c();ie();ake=q()("sources-file"),lke=/(?:\.{0,2}|~|\$HOME|([\w]+)|[a-zA-Z]:|)(\/|\\+)(?:[\u4E00-\u9FA5\u00A0-\u024F\w .@()-]+(\/|\\+))*(?:[\u4E00-\u9FA5\u00A0-\u024F\w .@()-])*$/,xb=class extends cr{constructor(){super({name:"file",filepath:__filename})}get triggerCharacters(){let e=this.getConfig("triggerCharacters",[]);return En?e:e.filter(t=>t!="\\")}resolveEnvVariables(e){let t=e;return t=t.replace(/%([^%]+)%/g,(i,r)=>process.env[r]),t=t.replace(/\$([A-Z_]+[A-Z0-9_]*)|\${([A-Z0-9_]*)}/gi,(i,r,o)=>process.env[r||o]),t}getPathOption(e){let{line:t,colnr:i}=e,r=tt(t,0,i-1);if(r=this.resolveEnvVariables(r),!r||r.endsWith("//"))return null;let o=r.match(lke);if(o&&o.length){let s=v.expand(o[0]),a=o[0].match(/[^/\\]*$/)[0];return{pathstr:s,part:o[1],startcol:i-a.length-1,input:a}}return null}async getFileItem(e,t){let i=Bn.default.join(e,t),r=await zi(i);if(r){let o=r.isDirectory()?t+"/":t;return{word:t,abbr:o}}return null}filterFiles(e){let t=this.getConfig("ignoreHidden",!0),i=this.getConfig("ignorePatterns",[]);return e.filter(r=>{if(r==null||t&&r.startsWith("."))return!1;for(let o of i)if((0,_te.default)(r,o,{dot:!0}))return!1;return!0})}async getItemsFromRoot(e,t){let i=[],r=/[\\/]$/.test(e)?e:Bn.default.dirname(e),o=Bn.default.isAbsolute(e)?r:Bn.default.join(t,r);try{let s=await zi(o);if(s&&s.isDirectory()){let a=await Lte.default.promisify(LD.default.readdir)(o);a=this.filterFiles(a);let l=await Promise.all(a.map(u=>this.getFileItem(o,u)));i=i.concat(l)}return i=i.filter(a=>a!=null),i}catch(s){return ake.error("Error on list files:",s),i}}get trimSameExts(){return this.getConfig("trimSameExts",[])}async doComplete(e){let{col:t,filepath:i}=e,r=this.getPathOption(e);if(!r)return null;let{pathstr:o,part:s,startcol:a,input:l}=r;if(a<e.col)return null;let u=e.col==a?"":tt(e.line,e.col,a),c=Bn.default.dirname(i),h=Bn.default.extname(Bn.default.basename(i)),d=await this.nvim.call("getcwd",[]),g;if(o.startsWith(".")?g=i?Bn.default.dirname(i):d:En&&/^\w+:/.test(o)?g=/[\\/]$/.test(o)?o:Bn.default.dirname(o):!En&&o.startsWith("/")?g=o.endsWith("/")?o:Bn.default.dirname(o):s?LD.default.existsSync(Bn.default.join(c,s))?g=c:LD.default.existsSync(Bn.default.join(d,s))&&(g=d):g=d,!g)return null;let p=await this.getItemsFromRoot(o,g),f=this.trimSameExts.includes(h),m=l[0];return m&&t==a&&(p=p.filter(b=>b.word[0]===m)),{items:p.map(b=>{let w=Bn.default.extname(b.word);return b.word=f&&w===h?b.word.replace(h,""):b.word,{word:`${u}${b.word}`,abbr:`${u}${b.abbr}`,menu:this.menu}})}}}});var Hte={};Go(Hte,{Sources:()=>FD,default:()=>St});var Ote,ID,Ate,Nte,Mte,FD,St,Os=k(()=>{"use strict";Ote=S(require("fs")),ID=S(require("path")),Ate=S(require("util")),Nte=S(W());fe();Wo();dn();re();nt();$e();_e();xe();ie();yte();Cd();Cte();Ste();Mte=q()("sources"),FD=class{constructor(){this.sourceMap=new Map;this.disposables=[];this.remoteSourcePaths=[]}init(){this.keywords=v.registerBufferSync(e=>new _D(e)),this.createNativeSources(),this.createRemoteSources(),P.on("BufEnter",this.onDocumentEnter,this,this.disposables),v.onDidRuntimePathChange(e=>{for(let t of e)t&&this.createVimSources(t)},null,this.disposables)}getShortcut(e){let t=this.sourceMap.get(e);return t?t.shortcut:""}get nvim(){return v.nvim}getKeywordsBuffer(e){return this.keywords.getItem(e)}createNativeSources(){this.disposables.push((kte(),Co(Tte)).register(this.sourceMap,this.keywords)),this.disposables.push((Rte(),Co(Ete)).register(this.sourceMap,this.keywords)),this.disposables.push((jte(),Co(Fte)).register(this.sourceMap))}createLanguageSource(e,t,i,r,o,s,a){let l=new bb(e,t,r,i,o||[],a||[],s);return Mte.debug("created service source",e),this.sourceMap.set(e,l),{dispose:()=>{this.sourceMap.delete(e)}}}async createVimSourceExtension(e,t){let i=ID.default.basename(t,".vim");try{await e.command(`source ${t}`);let r=await e.call("coc#util#remote_fns",i);for(let c of["init","complete"])if(!r.includes(c))return D.showErrorMessage(`${c} not found for source ${i}`),null;let o=await e.call(`coc#source#${i}#init`,[]),s={name:`coc-source-${i}`,engines:{coc:">= 0.0.1"},activationEvents:o.filetypes?o.filetypes.map(c=>`onLanguage:${c}`):["*"],contributes:{configuration:{properties:{[`coc.source.${i}.enable`]:{type:"boolean",default:!0},[`coc.source.${i}.firstMatch`]:{type:"boolean",default:!!o.firstMatch},[`coc.source.${i}.triggerCharacters`]:{type:"number",default:o.triggerCharacters||[]},[`coc.source.${i}.priority`]:{type:"number",default:o.priority??9},[`coc.source.${i}.shortcut`]:{type:"string",default:o.shortcut??i.slice(0,3).toUpperCase(),description:"Shortcut text shown in complete menu."},[`coc.source.${i}.disableSyntaxes`]:{type:"array",default:[],items:{type:"string"}},[`coc.source.${i}.filetypes`]:{type:"array",default:o.filetypes||null,description:"Enabled filetypes.",items:{type:"string"}}}}}},a=new yb({name:i,filepath:t,sourceType:1,optionalFns:r.filter(c=>!["init","complete"].includes(c))}),l=!1,u={id:s.name,packageJSON:s,exports:void 0,extensionPath:t,activate:()=>(l=!0,this.addSource(a),Promise.resolve())};Object.defineProperty(u,"isActive",{get:()=>l}),je.manager.registerInternalExtension(u,()=>{l=!1,this.removeSource(a)})}catch(r){D.showErrorMessage(`Error on create vim source ${i}: ${r}`)}}createRemoteSources(){let{runtimepath:e}=v.env,t=e.split(",");for(let i of t)this.createVimSources(i).logError()}async createVimSources(e){if(this.remoteSourcePaths.includes(e))return;this.remoteSourcePaths.push(e);let t=ID.default.join(e,"autoload/coc/source"),i=await zi(t);if(i&&i.isDirectory()){let r=await Ate.default.promisify(Ote.default.readdir)(t);r=r.filter(s=>s.endsWith(".vim"));let o=r.map(s=>ID.default.join(t,s));if(o.length==0)return;await Promise.all(o.map(s=>this.createVimSourceExtension(this.nvim,s)))}}get names(){return Array.from(this.sourceMap.keys())}get sources(){return Array.from(this.sourceMap.values())}has(e){return this.names.findIndex(t=>t==e)!=-1}getSource(e){return e&&this.sourceMap.get(e)||null}shouldCommit(e,t){if(!e||!e.source)return!1;let i=this.getSource(e.source);return i&&typeof i.shouldCommit=="function"?i.shouldCommit(e,t):!1}getCompleteSources(e){let{filetype:t}=e,i=tt(e.line,0,e.colnr-1),r=e.input==""&&!!e.triggerCharacter,o=v.getDocument(e.bufnr),s=o?o.uri:`unknown:${e.bufnr}`;return r?this.getTriggerSources(i,t,s):this.getNormalSources(e.filetype,s)}getNormalSources(e,t){let i=e.split(".");return this.sources.filter(r=>{let{filetypes:o,triggerOnly:s,documentSelector:a,enable:l}=r;return!(!l||s||o&&!Zg(o,i)||a&&i.every(u=>v.match(a,{uri:t,languageId:u})==0))})}checkTrigger(e,t,i){let{triggerCharacters:r,triggerPatterns:o}=e;return!!((r==null?void 0:r.length)>0&&r.includes(i)||(o==null?void 0:o.length)>0&&o.findIndex(s=>s.test(t))!==-1)}shouldTrigger(e,t,i){return this.getTriggerSources(e,t,i).length>0}getTriggerSources(e,t,i,r=[]){if(!e)return[];let o=e[e.length-1],s=t.split(".");return this.sources.filter(a=>{let{filetypes:l,enable:u,documentSelector:c,name:h}=a;return r.includes(h)||!u||l&&!Zg(l,s)||c&&s.every(d=>v.match(c,{uri:i,languageId:d})==0)?!1:this.checkTrigger(a,e,o)})}addSource(e){let{name:t}=e;return this.names.includes(t)&&Mte.warn(`Recreate source ${t}`),this.sourceMap.set(t,e),Nte.Disposable.create(()=>{this.sourceMap.delete(t)})}removeSource(e){let t=typeof e=="string"?e:e.name;this.sourceMap.delete(t)}async refresh(e){for(let t of this.sources)(!e||t.name==e)&&typeof t.refresh=="function"&&await Promise.resolve(t.refresh())}toggleSource(e){if(!e)return;let t=this.getSource(e);!t||typeof t.toggle=="function"&&t.toggle()}sourceStats(){let e=[],t=this.sources,i=v.getDocument(v.bufnr),o=v.getConfiguration("suggest",i).get("languageSourcePriority",99);for(let s of t){let a=typeof s.priority=="number"?s.priority:s.sourceType==2?o:0;e.push({name:s.name,priority:a,triggerCharacters:s.triggerCharacters||[],shortcut:s.shortcut||"",filetypes:s.filetypes||[],filepath:s.filepath||"",type:s.sourceType==0?"native":s.sourceType==1?"remote":"service",disabled:!s.enable})}return e}onDocumentEnter(e){let{sources:t}=this;for(let i of t)i.enable&&typeof i.onEnter=="function"&&i.onEnter(e)}createSource(e){if(!e.name||!e.doComplete)throw new Error("name and doComplete required for createSource");let t=new cr(Object.assign({sourceType:2},e));return this.addSource(t)}dispose(){U(this.disposables)}},St=new FD});var qte={};Go(qte,{default:()=>_});var bo,Jst,IF,_,de=k(()=>{"use strict";bo=S(W());Bu();JX();GX();zX();KX();VX();e2();t2();i2();n2();o2();s2();a2();u2();c2();L_();g2();p2();f2();m2();b2();y2();v2();w2();x2();C2();S2();D2();re();Jst=q()("languages"),IF=class{constructor(){this._onDidSemanticTokensRefresh=new bo.Emitter;this._onDidInlayHintRefresh=new bo.Emitter;this.onDidSemanticTokensRefresh=this._onDidSemanticTokensRefresh.event;this.onDidInlayHintRefresh=this._onDidInlayHintRefresh.event;this.onTypeFormatManager=new Nf;this.documentLinkManager=new Pf;this.documentColorManager=new Tf;this.foldingRangeManager=new Rf;this.renameManager=new qf;this.formatManager=new _f;this.codeActionManager=new xf;this.workspaceSymbolsManager=new Uf;this.formatRangeManager=new Lf;this.hoverManager=new If;this.signatureManager=new Zf;this.documentSymbolManager=new Ef;this.documentHighlightManager=new kf;this.definitionManager=new Df;this.declarationManager=new Sf;this.typeDefinitionManager=new Jf;this.typeHierarchyManager=new $f;this.referenceManager=new Hf;this.implementationManager=new Ff;this.codeLensManager=new Cf;this.selectionRangeManager=new Bf;this.callHierarchyManager=new wf;this.semanticTokensManager=new Wf;this.semanticTokensRangeManager=new Yf;this.linkedEditingManager=new Af;this.inlayHintManager=new jf;this.inlineValueManager=new Of}hasFormatProvider(e){return!!(this.formatManager.hasProvider(e)||this.formatRangeManager.hasProvider(e))}registerOnTypeFormattingEditProvider(e,t,i){return this.onTypeFormatManager.register(e,t,i)}registerCompletionItemProvider(e,t,i,r,o=[],s,a){i=typeof i=="string"?[{language:i}]:i;let l=(Os(),Co(Hte)).default;return l.removeSource(e),l.createLanguageSource(e,t,i,r,o,s,a)}registerCodeActionProvider(e,t,i,r){return this.codeActionManager.register(e,t,i,r)}registerHoverProvider(e,t){return this.hoverManager.register(e,t)}registerSelectionRangeProvider(e,t){return this.selectionRangeManager.register(e,t)}registerSignatureHelpProvider(e,t,i){return this.signatureManager.register(e,t,i)}registerDocumentSymbolProvider(e,t,i){return i&&(t.meta=i),this.documentSymbolManager.register(e,t)}registerFoldingRangeProvider(e,t){return this.foldingRangeManager.register(e,t)}registerDocumentHighlightProvider(e,t){return this.documentHighlightManager.register(e,t)}registerCodeLensProvider(e,t){return this.codeLensManager.register(e,t)}registerDocumentLinkProvider(e,t){return this.documentLinkManager.register(e,t)}registerDocumentColorProvider(e,t){return this.documentColorManager.register(e,t)}registerDefinitionProvider(e,t){return this.definitionManager.register(e,t)}registerDeclarationProvider(e,t){return this.declarationManager.register(e,t)}registerTypeDefinitionProvider(e,t){return this.typeDefinitionManager.register(e,t)}registerTypeHierarchyProvider(e,t){return this.typeHierarchyManager.register(e,t)}registerImplementationProvider(e,t){return this.implementationManager.register(e,t)}registerReferencesProvider(e,t){return this.referenceManager.register(e,t)}registerRenameProvider(e,t){return this.renameManager.register(e,t)}registerWorkspaceSymbolProvider(e){return arguments.length>1&&typeof arguments[1].provideWorkspaceSymbols=="function"&&(e=arguments[1]),this.workspaceSymbolsManager.register(e)}registerDocumentFormatProvider(e,t,i=0){return this.formatManager.register(e,t,i)}registerDocumentRangeFormatProvider(e,t,i=0){return this.formatRangeManager.register(e,t,i)}registerCallHierarchyProvider(e,t){return this.callHierarchyManager.register(e,t)}registerDocumentSemanticTokensProvider(e,t,i){let r=[],o=setTimeout(()=>{this._onDidSemanticTokensRefresh.fire(e)},500);return r.push(bo.Disposable.create(()=>{clearTimeout(o)})),t.onDidChangeSemanticTokens&&t.onDidChangeSemanticTokens(()=>{clearTimeout(o),this._onDidSemanticTokensRefresh.fire(e)},null,r),r.push(this.semanticTokensManager.register(e,t,i)),bo.Disposable.create(()=>{U(r)})}registerDocumentRangeSemanticTokensProvider(e,t,i){return this._onDidSemanticTokensRefresh.fire(e),this.semanticTokensRangeManager.register(e,t,i)}registerInlayHintsProvider(e,t){let i=[];return i.push(this.inlayHintManager.register(e,t)),this._onDidInlayHintRefresh.fire(e),typeof t.onDidChangeInlayHints=="function"&&t.onDidChangeInlayHints(()=>{this._onDidInlayHintRefresh.fire(e)},null,i),bo.Disposable.create(()=>{U(i),this._onDidInlayHintRefresh.fire(e)})}registerInlineValuesProvider(e,t){return this.inlineValueManager.register(e,t)}registerLinkedEditingRangeProvider(e,t){return this.linkedEditingManager.register(e,t)}shouldTriggerSignatureHelp(e,t){return this.signatureManager.shouldTrigger(e,t)}async getHover(e,t,i){return await this.hoverManager.provideHover(e,t,i)}async getSignatureHelp(e,t,i,r){return await this.signatureManager.provideSignatureHelp(e,t,i,r)}async getDefinition(e,t,i){return await this.definitionManager.provideDefinition(e,t,i)}async getDefinitionLinks(e,t,i){return await this.definitionManager.provideDefinitionLinks(e,t,i)}async getDeclaration(e,t,i){return await this.declarationManager.provideDeclaration(e,t,i)}async getTypeDefinition(e,t,i){return await this.typeDefinitionManager.provideTypeDefinition(e,t,i)}async getImplementation(e,t,i){return await this.implementationManager.provideImplementations(e,t,i)}async getReferences(e,t,i,r){return await this.referenceManager.provideReferences(e,i,t,r)}async getDocumentSymbol(e,t){return await this.documentSymbolManager.provideDocumentSymbols(e,t)}getDocumentSymbolMetadata(e){return this.documentSymbolManager.getMetaData(e)}async getSelectionRanges(e,t,i){return await this.selectionRangeManager.provideSelectionRanges(e,t,i)}async getWorkspaceSymbols(e,t){return await this.workspaceSymbolsManager.provideWorkspaceSymbols(e??"",t)}async resolveWorkspaceSymbol(e,t){return await this.workspaceSymbolsManager.resolveWorkspaceSymbol(e,t)}async prepareRename(e,t,i){return await this.renameManager.prepareRename(e,t,i)}async provideRenameEdits(e,t,i,r){return await this.renameManager.provideRenameEdits(e,t,i,r)}async provideDocumentFormattingEdits(e,t,i){let r=await this.formatManager.provideDocumentFormattingEdits(e,t,i);if(r==null){if(!this.formatRangeManager.hasProvider(e))return null;let s=e.positionAt(e.getText().length),a=bo.Range.create(bo.Position.create(0,0),s);return await this.provideDocumentRangeFormattingEdits(e,a,t,i)}return r}async provideDocumentRangeFormattingEdits(e,t,i,r){return await this.formatRangeManager.provideDocumentRangeFormattingEdits(e,t,i,r)}async getCodeActions(e,t,i,r){return await this.codeActionManager.provideCodeActions(e,t,i,r)}async getDocumentHighLight(e,t,i){return await this.documentHighlightManager.provideDocumentHighlights(e,t,i)}async getDocumentLinks(e,t){return await this.documentLinkManager.provideDocumentLinks(e,t)}async resolveDocumentLink(e,t){return await this.documentLinkManager.resolveDocumentLink(e,t)}async provideDocumentColors(e,t){return await this.documentColorManager.provideDocumentColors(e,t)}async provideFoldingRanges(e,t,i){return await this.foldingRangeManager.provideFoldingRanges(e,t,i)}async provideColorPresentations(e,t,i){return await this.documentColorManager.provideColorPresentations(e,t,i)}async getCodeLens(e,t){return await this.codeLensManager.provideCodeLenses(e,t)}async resolveCodeLens(e,t){return await this.codeLensManager.resolveCodeLens(e,t)}async resolveCodeAction(e,t){return await this.codeActionManager.resolveCodeAction(e,t)}async provideDocumentOnTypeEdits(e,t,i,r){return this.onTypeFormatManager.onCharacterType(e,t,i,r)}canFormatOnType(e,t){return this.onTypeFormatManager.couldTrigger(t,e)!=null}async prepareCallHierarchy(e,t,i){return this.callHierarchyManager.prepareCallHierarchy(e,t,i)}async provideIncomingCalls(e,t,i){return this.callHierarchyManager.provideCallHierarchyIncomingCalls(e,t,i)}async provideOutgoingCalls(e,t,i){return this.callHierarchyManager.provideCallHierarchyOutgoingCalls(e,t,i)}getLegend(e,t){return t?this.semanticTokensRangeManager.getLegend(e):this.semanticTokensManager.getLegend(e)}hasSemanticTokensEdits(e){return this.semanticTokensManager.hasSemanticTokensEdits(e)}async provideDocumentSemanticTokens(e,t){return this.semanticTokensManager.provideDocumentSemanticTokens(e,t)}async provideDocumentSemanticTokensEdits(e,t,i){return this.semanticTokensManager.provideDocumentSemanticTokensEdits(e,t,i)}async provideDocumentRangeSemanticTokens(e,t,i){return this.semanticTokensRangeManager.provideDocumentRangeSemanticTokens(e,t,i)}async provideInlayHints(e,t,i){return this.inlayHintManager.provideInlayHints(e,t,i)}async resolveInlayHint(e,t){return this.inlayHintManager.resolveInlayHint(e,t)}hasLinkedEditing(e){return this.linkedEditingManager.hasProvider(e)}async provideLinkedEdits(e,t,i){return this.linkedEditingManager.provideLinkedEditingRanges(e,t,i)}async provideInlineValues(e,t,i,r){return this.inlineValueManager.provideInlineValues(e,t,i,r)}async prepareTypeHierarchy(e,t,i){return this.typeHierarchyManager.prepareTypeHierarchy(e,t,i)}async provideTypeHierarchySupertypes(e,t){return this.typeHierarchyManager.provideTypeHierarchySupertypes(e,t)}async provideTypeHierarchySubtypes(e,t){return this.typeHierarchyManager.provideTypeHierarchySubtypes(e,t)}createDiagnosticCollection(e){return Wt.create(e)}hasProvider(e,t){switch(e){case"formatOnType":return this.onTypeFormatManager.hasProvider(t);case"rename":return this.renameManager.hasProvider(t);case"onTypeEdit":return this.onTypeFormatManager.hasProvider(t);case"documentLink":return this.documentLinkManager.hasProvider(t);case"documentColor":return this.documentColorManager.hasProvider(t);case"foldingRange":return this.foldingRangeManager.hasProvider(t);case"format":return this.formatManager.hasProvider(t)||this.formatRangeManager.hasProvider(t);case"codeAction":return this.codeActionManager.hasProvider(t);case"workspaceSymbols":return this.workspaceSymbolsManager.hasProvider();case"formatRange":return this.formatRangeManager.hasProvider(t);case"hover":return this.hoverManager.hasProvider(t);case"signature":return this.signatureManager.hasProvider(t);case"documentSymbol":return this.documentSymbolManager.hasProvider(t);case"documentHighlight":return this.documentHighlightManager.hasProvider(t);case"definition":return this.definitionManager.hasProvider(t);case"declaration":return this.declarationManager.hasProvider(t);case"typeDefinition":return this.typeDefinitionManager.hasProvider(t);case"reference":return this.referenceManager.hasProvider(t);case"implementation":return this.implementationManager.hasProvider(t);case"codeLens":return this.codeLensManager.hasProvider(t);case"selectionRange":return this.selectionRangeManager.hasProvider(t);case"callHierarchy":return this.callHierarchyManager.hasProvider(t);case"semanticTokens":return this.semanticTokensManager.hasProvider(t);case"semanticTokensRange":return this.semanticTokensRangeManager.hasProvider(t);case"linkedEditing":return this.linkedEditingManager.hasProvider(t);case"inlayHint":return this.inlayHintManager.hasProvider(t);case"inlineValue":return this.inlineValueManager.hasProvider(t);case"typeHierarchy":return this.typeHierarchyManager.hasProvider(t);default:throw new Error(`Invalid provider name: ${String(e)}`)}}},_=new IF});function Bte(){return hke++}function jD(n){return[n.hlGroup,n.lnum,n.colStart,n.colEnd,n.combine?1:0,n.start_incl?1:0,n.end_incl?1:0]}function Wte(n,e){let t=[n.hlGroup,n.lnum,n.colStart,n.colEnd];return ye(t,e.slice(0,4))}var FF,Sd,Cb,Yat,cke,hke,dke,jF,D,xe=k(()=>{"use strict";FF=S(require("fs")),Sd=S(require("path")),Cb=S(W());Pe();jw();sY();fp();fe();_Z();Ta();lR();IZ();cR();jZ();OZ();YZ();vR();dn();re();$e();ds();et();$c();Yat=q()("window"),cke=Sd.default.dirname(__dirname),hke=3e3,dke=["formatOnType","rename","onTypeEdit","documentLink","documentColor","foldingRange","format","codeAction","formatRange","hover","signature","documentSymbol","documentHighlight","definition","declaration","typeDefinition","reference","implementation","codeLens","selectionRange","callHierarchy","semanticTokens","semanticTokensRange","linkedEditing","inlayHint","inlineValue","typeHierarchy"];jF=class{constructor(){this.mutex=new Di;this.tabIds=[];this.terminalManager=new lp;this._onDidTabClose=new Cb.Emitter;this.onDidTabClose=this._onDidTabClose.event}init(e){for(let t=1;t<=e.tabCount;t++)this.tabIds.push(Bte());P.on("TabNew",t=>{this.tabIds.splice(t-1,0,Bte())}),P.on("TabClosed",t=>{let i=this.tabIds[t-1];this.tabIds.splice(t-1,1),i&&this._onDidTabClose.fire(i)})}getTabNumber(e){if(!!this.tabIds.includes(e))return this.tabIds.indexOf(e)+1}getTabId(e){return this.tabIds[e-1]}get nvim(){return this.workspace.nvim}dispose(){var e;this.terminalManager.dispose(),(e=this.statusLine)==null||e.dispose()}get activeTextEditor(){return this.workspace.editors.activeTextEditor}get visibleTextEditors(){return this.workspace.editors.visibleTextEditors}get onDidChangeActiveTextEditor(){return this.workspace.editors.onDidChangeActiveTextEditor}get onDidChangeVisibleTextEditors(){return this.workspace.editors.onDidChangeVisibleTextEditors}get terminals(){return this.terminalManager.terminals}get onDidOpenTerminal(){return this.terminalManager.onDidOpenTerminal}get onDidCloseTerminal(){return this.terminalManager.onDidCloseTerminal}async createTerminal(e){return await this.terminalManager.createTerminal(this.nvim,e)}createFloatFactory(e){let i=this.workspace.getConfiguration("coc.preferences").get("excludeImageLinksInMarkdownDocument",!0),o=this.workspace.getConfiguration("floatFactory").get("floatConfig",{});return CZ(this.workspace.nvim,Object.assign({excludeImages:i,maxWidth:80},e),o)}showMessage(e,t="more"){let{messageLevel:i}=this,r="Error",o=2;switch(t){case"more":o=0,r="MoreMsg";break;case"warning":o=1,r="WarningMsg";break}o>=i&&kZ(this.nvim,e,r)}async runTerminalCommand(e,t,i=!1){return t=t||this.workspace.cwd,await this.nvim.callAsync("coc#ui#run_terminal",{cmd:e,cwd:t,keepfocus:i?1:0})}async openTerminal(e,t={}){return await this.nvim.call("coc#ui#open_terminal",{cmd:e,...t})}async showQuickpick(e,t="Choose by number"){return await this.showMenuPicker(e,{title:t,position:"center"})}async showQuickPick(e,t,i=Cb.CancellationToken.None){this.checkDialog("showQuickPick"),t=t||{};let r=await Promise.resolve(e),o=r.some(s=>typeof s=="string");if(!i.isCancellationRequested)return await this.mutex.use(()=>new Promise((s,a)=>{if(i.isCancellationRequested)return s(void 0);let l=new gh(this.nvim,{items:r.map(u=>typeof u=="string"?{label:u}:u),title:t.title??"",canSelectMany:t.canPickMany});l.matchOnDescription=t.matchOnDescription,l.onDidFinish(u=>{if(u==null)return s(void 0);let c=o?u.map(h=>h.label):u;if(t.canPickMany)return s(c);s(c[0])}),l.show(this.dialogPreference).catch(a)}))}async createQuickPick(e){return this.checkDialog("createQuickPick"),await this.mutex.use(async()=>{let t=new gh(this.nvim,e);return await t.show(this.dialogPreference),t})}async showMenuPicker(e,t,i){return await this.mutex.use(async()=>{if(i&&i.isCancellationRequested)return-1;t=t||{},typeof t=="string"&&(t={title:t});let r=new bp(this.nvim,{items:e,...t},i),o=new Promise(s=>{r.onDidClose(a=>{P.race(["InputChar"],20).finally(()=>{s(a)})})});return await r.show(this.dialogPreference),await o})}async openLocalConfig(){let e=await this.nvim.call("expand",["%:p"]),t=await this.nvim.eval("&filetype");if(!e||!Sd.default.isAbsolute(e)){this.showWarningMessage("Current buffer doesn't have valid file path.");return}let i=this.workspace.getWorkspaceFolder(j.file(e).toString());if(!i){let l=this.workspace.getConfiguration("coc.preferences").get("rootPatterns",[]),c=this.workspace.getConfiguration("workspace").get("ignoredFiletypes",[]),h;c.includes(t)&&(h=`Filetype '${t}' is ignored for this.workspace folder resolve.`),h||(h=`Can't resolve this.workspace folder for file '${e}, consider create one of ${l.join(", ")} in your project root.'.`),this.showWarningMessage(h);return}let r=j.parse(i.uri).fsPath,o=Sd.default.join(r,".vim");if(!FF.default.existsSync(o)){if(!await this.showPrompt(`Would you like to create folder'${r}/.vim'?`))return;FF.default.mkdirSync(o)}let s=Sd.default.join(o,Uc);await this.nvim.call("coc#util#open_file",["edit",s])}async showPrompt(e){return await this.mutex.use(()=>Yw(this.nvim,e))}async showDialog(e){return this.checkDialog("showDialog"),await this.mutex.use(async()=>{let t=new mp(this.nvim,e);return await t.show(this.dialogPreference),t})}async requestInput(e,t,i){let{nvim:r}=this,o=this.workspace.getConfiguration("coc.preferences");return this.workspace.env.dialog&&o.get("promptInput",!0)&&!En?await this.mutex.use(async()=>{let s=new ka(r,t??"");return await s.show(e,Object.assign(this.inputPreference,i??{})),await new Promise(a=>{s.onDidFinish(l=>{a(l)})})}):await this.mutex.use(async()=>{let s=await this.workspace.callAsync("input",[e+": ",t||""]);return r.command("normal! :<C-u>",!0),s})}async createInputBox(e,t,i){this.checkDialog("createInputBox");let r=new ka(this.nvim,t??"");return await r.show(e,Object.assign(this.inputPreference,i)),r}createStatusBarItem(e=0,t={}){return this.statusLine||(this.statusLine=new Sp(this.nvim)),this.statusLine.createStatusBarItem(e,t.progress)}createOutputChannel(e){return hs.create(e,this.nvim)}showOutputChannel(e,t){let r=this.workspace.getConfiguration("workspace").get("openOutputCommand","vs");hs.show(e,r,t)}async echoLines(e,t=!1){let{nvim:i}=this,r=this.workspace.env.cmdheight;e.length>r&&t&&(e=e.slice(0,r));let o=this.workspace.env.columns-12;if(e=e.map(s=>(s=s.replace(/\n/g," "),t&&(s=s.slice(0,o)),s)),t&&e.length==r){let s=e[e.length-1];e[r-1]=`${s.length==o?s.slice(0,-4):s} ...`}await i.call("coc#ui#echo_lines",[e])}getCursorPosition(){return hh(this.nvim)}async moveTo(e){await SZ(this.nvim,e,this.workspace.env.isVim)}getSelectedRange(e){return PZ(this.nvim,e)}async selectRange(e){await EZ(this.nvim,e,this.nvim.isVim)}getOffset(){return DZ(this.nvim)}getCursorScreenPosition(){return TZ(this.nvim)}async showPickerDialog(e,t,i){return this.checkDialog("showPickerDialog"),await this.mutex.use(async()=>{if(i&&i.isCancellationRequested)return;let r=typeof e[0]=="string",o=new yp(this.nvim,{title:t,items:r?e.map(u=>({label:u})):e},i),s=new Promise(u=>{o.onDidClose(c=>{u(c)})});await o.show(this.dialogPreference);let a=await s;return a==null?void 0:e.filter((u,c)=>a.includes(c))})}async showInformationMessage(e,...t){let i=Error().stack;return await this._showMessage("Info",e,t,i)}async showWarningMessage(e,...t){let i=Error().stack;return await this._showMessage("Warning",e,t,i)}async showErrorMessage(e,...t){if(!this.workspace)return;let i=Error().stack;return await this._showMessage("Error",e,t,i)}async showMessagePicker(e,t,i,r){let o=r.map(a=>typeof a=="string"?a:a.title),s=await this.showMenuPicker(o,{position:"center",content:t,title:e.replace(/\r?\n/," "),borderhighlight:i});return r[s]}async _showMessage(e,t,i,r){if(!this.enableMessageDialog)return await this.showConfirm(t,i,e);if(i.length>0){let o=this.parseSource(r);return await this.showMessagePicker(`Choose action (${o})`,t,`Coc${e}Float`,i)}await this.createNotification(e.toLowerCase(),t,[],r)}async showNotification(e){this.checkDialog("showNotification");let t=Error().stack;await new Pa(this.nvim,e).show(this.getNotificationPreference(t))}async showConfirm(e,t,i){if(!t||t.length==0){let a=i=="Info"?"more":i=="Error"?"error":"warning";this.showMessage(e,a);return}let o=(typeof t[0]=="string"?t.slice():t.map(a=>a.title)).map((a,l)=>`${l+1}${a}`),s=await this.nvim.callAsync("coc#util#with_callback",["confirm",[e,o.join(`
|
||
`),0,i]]);return t[s-1]}async withProgress(e,t){this.checkDialog("withProgress");let i=this.workspace.getConfiguration("notification"),r=Error().stack;if(i.get("statusLineProgress",!0))return await this.createStatusLineProgress(e,t);let o=new vp(this.nvim,{task:t,title:e.title,cancellable:e.cancellable}),s=i.get("minProgressWidth",30),a=new Promise(l=>{o.onDidFinish(l)});return await o.show(Object.assign(this.getNotificationPreference(r,e.source),{minWidth:s})),await a}async createStatusLineProgress(e,t){let{title:i}=e,r=this.createStatusBarItem(0,{progress:!0});r.text=i??"",r.show();let o=0,s=await t({report:a=>{a.increment&&(o+=a.increment),r.text=MZ(i,a.message,o)}},Cb.CancellationToken.None);return r.dispose(),s}createTreeView(e,t){let i=(vf(),Co(ZX)).default;return new i(e,t)}async diffHighlights(e,t,i,r,o){let s=[e,t];Array.isArray(r)&&s.push(r[0],r[1]-1);let a=await this.nvim.call("coc#highlight#get_highlights",s);if(!a||(o==null?void 0:o.isCancellationRequested))return null;i.sort((m,b)=>m.lnum-b.lnum);let l=[],u=this.workspace.has("nvim-0.5.1")||this.workspace.isVim,c=[],h=[],d=0,g=i.length-1,p=0,f=new Map;if(a.forEach(m=>{p=Math.max(p,m[1]);let b=f.get(m[1]);b?b.push(m):f.set(m[1],[m])}),a.length>0){let m=Array.isArray(r)?r[0]:0;for(let b=m;b<=p;b++){let w=f.get(b)??[],x=[];for(let T=d;T<=g;T++){let R=i[T];if(R.lnum==b)d=T+1,x.push(R);else{d=T;break}}if(x.length==0)w.length>0&&(u?c.push(...w.map(T=>T[4])):l.push(b));else if(w.length==0)h.push(...x.map(T=>jD(T)));else if(u){let T=0,R=Math.min(w.length,x.length);for(;T<R&&Wte(x[T],w[T]);)T++;c.push(...w.slice(T).map(F=>F[4])),h.push(...x.slice(T).map(F=>jD(F)))}else(x.length!=w.length||!x.every((T,R)=>Wte(T,w[R])))&&(l.push(b),h.push(...x.map(T=>jD(T))))}}for(let m=d;m<=g;m++)h.push(jD(i[m]));return{remove:l,add:h,removeMarkers:c}}async applyDiffHighlights(e,t,i,r,o=!1){let{nvim:s}=this,{remove:a,add:l,removeMarkers:u}=r;a.length===0&&l.length===0&&u.length===0||(s.pauseNotification(),u.length&&s.call("coc#highlight#del_markers",[e,t,u],!0),a.length&&s.call("coc#highlight#clear",[e,t,a],!0),l.length&&s.call("coc#highlight#set",[e,t,l,i],!0),o?s.resumeNotification(!0,!0):await s.resumeNotification(!0))}async bufferCheck(){let e=await this.workspace.document;if(!e.attached){await this.showDialog({title:"Buffer check result",content:`Document not attached, ${e.notAttachReason}`,highlight:"WarningMsg"});return}let t=new Hi;t.addLine("Provider state","Title"),t.addLine("");let i=(de(),Co(qte)).default;for(let r of dke){let o=i.hasProvider(r,e.textDocument);t.addTexts([{text:"-",hlGroup:"Comment"},{text:" "},o?{text:"\u2713",hlGroup:"CocListFgGreen"}:{text:"\u2717",hlGroup:"CocListFgRed"},{text:" "},{text:r,hlGroup:o?"Normal":"CocFadeOut"}])}await this.showDialog({title:"Buffer check result",content:t.content,highlights:t.highlights})}createNotification(e,t,i,r){return new Promise((o,s)=>{let a={kind:e,content:t,buttons:i.map((u,c)=>({text:u,index:c})),callback:u=>{o(u)}};new Pa(this.nvim,a).show(this.getNotificationPreference(r)).catch(s)})}parseSource(e,t=2){let i=e.split(/\r?\n/).slice(t)[0];if(!i)return;i=i.replace(/^\s*at\s*/,"");let r;if(i.endsWith(")")){let a=i.match(/(\((.*?):\d+:\d+\))$/);a&&(r=a[2])}else{let a=i.match(/(.*?):\d+:\d+$/);a&&(r=a[1])}if(!r)return;let o=(Wo(),Co(bte)).default.manager.getExtensionsInfo(),s=o.find(a=>ni(a.filepath,r));if(s)return s.name.startsWith("single")?Sd.default.basename(s.filepath):s.name;if(s=o.find(a=>Ye(a.directory,r)),s)return s.name;if(Ye(cke,r))return"coc.nvim"}get dialogPreference(){let e=this.workspace.getConfiguration("dialog");return{rounded:e.get("rounded",!0),maxWidth:e.get("maxWidth"),maxHeight:e.get("maxHeight"),floatHighlight:e.get("floatHighlight"),floatBorderHighlight:e.get("floatBorderHighlight"),pickerButtons:e.get("pickerButtons"),pickerButtonShortcut:e.get("pickerButtonShortcut"),confirmKey:e.get("confirmKey"),shortcutHighlight:e.get("shortcutHighlight")}}get inputPreference(){let e=this.workspace.getConfiguration("dialog");return{rounded:e.get("rounded",!0),maxWidth:e.get("maxWidth",80),highlight:e.get("floatHighlight"),borderhighlight:e.get("floatBorderHighlight")}}getNotificationPreference(e,t){t||(t=this.parseSource(e));let i=this.workspace.getConfiguration("notification"),r=i.get("disabledProgressSources",[]),o=Array.isArray(r)&&(r.includes("*")||r.includes(t));return{border:i.get("border",!0),focusable:i.get("focusable",!0),marginRight:i.get("marginRight",10),timeout:i.get("timeout",10),maxWidth:i.get("maxWidth"),maxHeight:i.get("maxHeight"),highlight:i.get("highlightGroup"),winblend:i.get("winblend"),disabled:o,source:t}}checkDialog(e){if(!this.workspace.env.dialog)throw new Error(`API window.${e} requires vim >= 8.2.0750 or neovim >= 0.4.0, please upgrade your vim`)}get enableMessageDialog(){return this.workspace.getConfiguration("coc.preferences").get("enableMessageDialog",!1)}get messageLevel(){switch(this.workspace.getConfiguration("coc.preferences").get("messageLevel","more")){case"error":return 2;case"warning":return 1;default:return 0}}},D=new jF});function MD(n,e){let{source:t,code:i,severity:r,message:o}=e,s=Sb(r)[0],a=i?" "+i:"";return n.replace("%source",t).replace("%code",a).replace("%severity",s).replace("%message",o)}function Sb(n){switch(n){case Ft.DiagnosticSeverity.Warning:return"Warning";case Ft.DiagnosticSeverity.Information:return"Information";case Ft.DiagnosticSeverity.Hint:return"Hint";default:return"Error"}}function Yte(n){switch(n){case Ft.DiagnosticSeverity.Warning:return"W";case Ft.DiagnosticSeverity.Information:return"I";case Ft.DiagnosticSeverity.Hint:return"I";default:return"E"}}function Hs(n){if(n!=null)switch(n){case"hint":return Ft.DiagnosticSeverity.Hint;case"information":return Ft.DiagnosticSeverity.Information;case"warning":return Ft.DiagnosticSeverity.Warning;case"error":return Ft.DiagnosticSeverity.Error;default:return Ft.DiagnosticSeverity.Hint}}function MF(n){switch(n){case Ft.DiagnosticSeverity.Error:return"CocError";case Ft.DiagnosticSeverity.Warning:return"CocWarning";case Ft.DiagnosticSeverity.Information:return"CocInfo";case Ft.DiagnosticSeverity.Hint:return"CocHint";default:return"CocError"}}function Zte(n,e,t){let{start:i,end:r}=e.range,o=e.source||"coc.nvim",s=e.message.split(`
|
||
`)[0],a=Sb(e.severity).slice(0,1).toUpperCase();return{bufnr:n,lnum:i.line+1,end_lnum:r.line+1,col:Array.isArray(t)?_t(t[i.line]??"",i.character)+1:i.character+1,end_col:Array.isArray(t)?_t(t[r.line]??"",r.character)+1:r.character+1,text:`[${o}${e.code?" "+e.code:""}] ${s} [${a}]`,type:a}}function OD(n,e){let t=n.severity??1,i=e.severity??1;if(t!=i)return t-i;let r=Me(n.range.start,e.range.start);return r!=0?r:n.source>e.source?1:-1}function Jte(n){let e=n.tags||[];if(e.includes(Ft.DiagnosticTag.Deprecated))return"CocDeprecatedHighlight";if(e.includes(Ft.DiagnosticTag.Unnecessary))return"CocUnusedHighlight";switch(n.severity){case Ft.DiagnosticSeverity.Warning:return"CocWarningHighlight";case Ft.DiagnosticSeverity.Information:return"CocInfoHighlight";case Ft.DiagnosticSeverity.Hint:return"CocHintHighlight";default:return"CocErrorHighlight"}}function $te(n,e){let t=[],{range:i}=e;for(let r of n){let o=r.range;if(!rh(i,o)){if(Me(o.start,i.end)>0){let s=ux(o.start,e),a=ux(o.end,e);s.line>=0&&s.character>=0&&a.line>=0&&a.character>=0&&(r.range=Ft.Range.create(s,a))}t.push(r)}}return t}var Ft,OF=k(()=>{"use strict";Ft=S(W());xt();_e();so()});var Wn,slt,Ute,Xte,Gte,gke,zte,Db,AD,Kte=k(()=>{"use strict";Wn=S(W());fe();nt();xt();xe();ie();OF();slt=q()("diagnostic-buffer"),Ute="CocDiagnostic",Xte="diagnostic",Gte=["CocErrorHighlight","CocWarningHighlight","CocInfoHighlight","CocHintHighlight","CocDeprecatedHighlight","CocUnusedHighlight"],gke=500,zte="ale#other_source#ShowResults",AD=class{constructor(e,t,i){this.nvim=e;this.doc=t;this.floatFactory=i;this.diagnosticsMap=new Map;this.versionsMap=new Map;this._disposed=!1;this._dirties=new Set;this._refreshing=!1;this._onDidRefresh=new Wn.Emitter;this.onDidRefresh=this._onDidRefresh.event;this.loadConfiguration();let r,o=()=>{clearTimeout(r),this._refreshing=!0,r=setTimeout(()=>{this._refreshing=!1,this._autoRefresh&&this._refresh(!0)},gke)};o.clear=()=>{this._refreshing=!1,clearTimeout(r)},this.refreshHighlights=o}get _autoRefresh(){return this.config.enable&&this.config.autoRefresh&&this.dirty&&!this.doc.hasChanged}get config(){return this._config}loadConfiguration(){let e=v.getConfiguration("diagnostic",this.doc),t=this._config&&e.enable!=this._config.enable;this._config={enable:e.get("enable",!0),floatConfig:e.get("floatConfig",{}),messageTarget:e.get("messageTarget","float"),enableHighlightLineNumber:e.get("enableHighlightLineNumber",!0),highlightLimit:e.get("highlightLimit",1e3),highlightPriority:e.get("highlightPriority"),autoRefresh:e.get("autoRefresh",!0),checkCurrentLine:e.get("checkCurrentLine",!1),enableSign:v.env.sign&&e.get("enableSign",!0),locationlistUpdate:e.get("locationlistUpdate",!0),enableMessage:e.get("enableMessage","always"),virtualText:e.get("virtualText",!1),virtualTextAlign:e.get("virtualTextAlign","after"),virtualTextWinCol:v.has("nvim-0.5.1")?e.get("virtualTextWinCol",null):null,virtualTextCurrentLineOnly:e.get("virtualTextCurrentLineOnly"),virtualTextPrefix:e.get("virtualTextPrefix"," "),virtualTextFormat:e.get("virtualTextFormat","%message"),virtualTextLimitInOneLine:e.get("virtualTextLimitInOneLine",999),virtualTextLineSeparator:e.get("virtualTextLineSeparator"," \\ "),virtualTextLines:e.get("virtualTextLines",3),displayByAle:e.get("displayByAle",!1),level:Hs(e.get("level","hint")),locationlistLevel:Hs(e.get("locationlistLevel")),signLevel:Hs(e.get("signLevel")),virtualTextLevel:Hs(e.get("virtualTextLevel")),messageLevel:Hs(e.get("messageLevel")),signPriority:e.get("signPriority",10),refreshOnInsertMode:e.get("refreshOnInsertMode",!1),filetypeMap:e.get("filetypeMap",{}),showUnused:e.get("showUnused",!0),showDeprecated:e.get("showDeprecated",!0),format:e.get("format","[%source%code] [%severity] %message")},this._config.virtualText&&!Db&&this.nvim.createNamespace("coc-diagnostic-virtualText").then(i=>{Db=i}),t&&(this.config.enable?this._refresh(!1):this.clear())}async setState(e){this._config.enable!=e&&(this._config.enable=e,e?await this._refresh(!1):this.clear())}get dirty(){return this._dirties.size>0}get bufnr(){return this.doc.bufnr}get uri(){return this.doc.uri}onChange(e){let t=e.contentChanges;if(t.length>0){let i=Wn.TextEdit.replace(t[0].range,t[0].text);for(let[r,o]of this.diagnosticsMap.entries()){let s=$te(o,i);this.diagnosticsMap.set(r,s)}this._dirties=new Set(this.diagnosticsMap.keys())}!this.config.autoRefresh||this.refreshHighlights()}onTextChange(){this._dirties=new Set(this.diagnosticsMap.keys()),this.refreshHighlights.clear()}get displayByAle(){return this._config.displayByAle}clearHighlight(e){this.buffer.clearNamespace(Xte+e)}clearSigns(e){this.buffer.unplaceSign({group:Ute+e})}get diagnostics(){let e=[];for(let t of this.diagnosticsMap.values())e.push(...t);return e}get buffer(){return this.nvim.createBuffer(this.bufnr)}refreshAle(e,t){let i=t.map(r=>{let o=r.range;return{text:r.message,code:r.code,lnum:o.start.line+1,col:o.start.character+1,end_lnum:o.end.line+1,end_col:o.end.character,type:Yte(r.severity)}});this.nvim.call(zte,[this.bufnr,"coc"+e,i],!0)}async update(e,t){let{diagnosticsMap:i,versionsMap:r}=this,o=i.get(e);if(r.set(e,this.doc.version),!this._dirties.has(e)&&Je(t)&&Je(o))return;if(i.set(e,t),this.checkFloat(),!this.config.enable||t.length>0&&this._refreshing){this._dirties.add(e);return}let s=await this.getDiagnosticInfo(t.length===0);if(!s||s.winid==-1){this._dirties.add(e);return}let a=new Map;a.set(e,t),this.refresh(a,s)}async checkFloat(){if(v.bufnr!=this.bufnr)return;let e=await D.getCursorPosition();this.getDiagnosticsAtPosition(e).length==0&&this.floatFactory&&this.floatFactory.close()}async reset(e){this.refreshHighlights.clear(),this.versionsMap.clear();let{diagnosticsMap:t}=this;for(let i of t.keys())Je(e[i])&&(e[i]=[]);for(let[i,r]of Object.entries(e))t.set(i,r);this._dirties=new Set(t.keys()),await this._refresh(!1)}async echoMessage(e=!1,t){let i=this.config;if(!i.enable||i.enableMessage==="never"||i.displayByAle)return!1;let r=i.messageTarget=="float",o=this.getDiagnosticsAtPosition(t);if(i.messageLevel&&(o=o.filter(s=>s.severity&&s.severity<=i.messageLevel)),r)await this.showFloat(o);else{let s=[];o.forEach(a=>{s.push(MD(i.format,a))}),s.length&&(await this.nvim.command('echo ""'),await D.echoLines(s,e))}return!0}async showVirtualTextCurrentLine(e){let{config:t}=this;return!t.virtualTextCurrentLineOnly||P.insertMode&&!t.refreshOnInsertMode||!await this.isEnabled()?!1:(this.showVirtualText(e),!0)}async showFloat(e){if(this.config.messageTarget!=="float"||!this.floatFactory)return!1;if(e.length==0)return this.floatFactory.close(),!1;if(P.insertMode)return!1;let t=this.config,i="",r=[];if(Object.keys(t.filetypeMap).length>0){let o=this.doc.filetype,s=t.filetypeMap.default||"";i=t.filetypeMap[o]||(s=="bufferType"?o:s)}return e.forEach(o=>{var a;let s="Error";if(i==="")switch(o.severity){case Wn.DiagnosticSeverity.Hint:s="Hint";break;case Wn.DiagnosticSeverity.Warning:s="Warning";break;case Wn.DiagnosticSeverity.Information:s="Info";break}else s=i;r.push({filetype:s,content:MD(t.format,o)}),(a=o.codeDescription)!=null&&a.href&&r.push({filetype:"txt",content:o.codeDescription.href})}),await this.floatFactory.show(r,this.config.floatConfig),!0}async getDiagnosticInfo(e){let{refreshOnInsertMode:t}=this._config,{nvim:i,bufnr:r}=this,o=!t;if(e)o=!1;else if(P.insertMode&&!t)return;return await i.call("coc#util#diagnostic_info",[r,o])}refresh(e,t){let{nvim:i,displayByAle:r}=this;for(let o of e.keys())this._dirties.delete(o);if(r){i.pauseNotification();for(let[o,s]of e.entries())this.refreshAle(o,s);i.resumeNotification(!0,!0)}else{let o=[];i.pauseNotification();for(let[s,a]of e.entries())a.length==0&&o.push(s),this.addSigns(s,a),this.updateHighlights(s,a);this.showVirtualText(t.lnum),this.updateLocationList(t.winid,t.locationlist),this.setDiagnosticInfo(),i.resumeNotification(!0,!0),o.forEach(s=>{this.diagnosticsMap.delete(s)})}this._onDidRefresh.fire(this.diagnostics)}updateLocationList(e,t){if(!this._config.locationlistUpdate||e==-1||t!=="Diagnostics of coc")return;let i=this.toLocationListItems(this.diagnostics);this.nvim.call("setloclist",[e,[],"r",{title:"Diagnostics of coc",items:i}],!0)}toLocationListItems(e){let{locationlistLevel:t}=this._config,i=[],r=this.doc.textDocument.lines;e.sort(OD);for(let o of e)t&&o.severity&&o.severity>t||i.push(Zte(this.bufnr,o,r));return i}addSigns(e,t){let{enableSign:i,signLevel:r}=this._config;if(!i)return;let o=Ute+e,s=[],a=new Map;for(let l of t){let{range:u,severity:c}=l;if(!c||r&&c>r)continue;let h=u.start.line,d=a.get(h)||[];if(d.includes(c))continue;d.push(c),a.set(h,d);let g=this._config.signPriority+4-c;s.push({name:MF(c),lnum:h+1,priority:g})}this.nvim.call("coc#ui#update_signs",[this.bufnr,o,s],!0)}setDiagnosticInfo(){let e=[0,0,0,0],t={error:0,warning:0,information:0,hint:0,lnums:e};for(let r of this.diagnosticsMap.values())for(let o of r){let s=o.range.start.line+1;switch(o.severity){case Wn.DiagnosticSeverity.Warning:t.warning=t.warning+1,e[1]=e[1]?Math.min(e[1],s):s;break;case Wn.DiagnosticSeverity.Information:t.information=t.information+1,e[2]=e[2]?Math.min(e[2],s):s;break;case Wn.DiagnosticSeverity.Hint:t.hint=t.hint+1,e[3]=e[3]?Math.min(e[3],s):s;break;default:e[0]=e[0]?Math.min(e[0],s):s,t.error=t.error+1}}this.nvim.createBuffer(this.bufnr).setVar("coc_diagnostic_info",t,!0),this.nvim.call("coc#util#do_autocmd",["CocDiagnosticChange"],!0)}showVirtualText(e){let{_config:t}=this,{virtualText:i,virtualTextLevel:r}=t;if(!i||e<0)return;let{virtualTextPrefix:o,virtualTextLimitInOneLine:s,virtualTextCurrentLineOnly:a}=this._config,{diagnostics:l,buffer:u}=this;a&&(l=l.filter(d=>{let{start:g,end:p}=d.range;return g.line<=e-1&&p.line>=e-1})),l.sort(OD),u.clearNamespace(Db);let c=new Map,h={};h.text_align=t.virtualTextAlign,typeof t.virtualTextWinCol=="number"&&(h.virt_text_win_col=t.virtualTextWinCol);for(let d=l.length-1;d>=0;d--){let g=l[d];if(r&&g.severity&&g.severity>r)continue;let{line:p}=g.range.start,f=MF(g.severity)+"VirtualText",m=g.message.split(/\n/).map(w=>w.trim()).filter(w=>w.length>0).slice(0,this._config.virtualTextLines).join(this._config.virtualTextLineSeparator),b=c.get(p)??[];b.unshift([o+MD(this._config.virtualTextFormat,{...g,message:m}),f]),c.set(p,b)}for(let[d,g]of c.entries())u.setVirtualText(Db,d,g.slice(0,s),h)}updateHighlights(e,t){if(!t.length)this.clearHighlight(e);else{let i=this.getHighlightItems(t),r=this._config.highlightPriority;this.buffer.updateHighlights(Xte+e,i,{priority:r})}}async _refresh(e){let t=await this.getDiagnosticInfo(!e);if(!t||t.winid==-1||!this.config.enable)return;let{_dirties:i}=this;if(e){let r=new Map;for(let[o,s]of this.diagnosticsMap.entries()){if(!i.has(o))continue;let a=this.versionsMap.get(o);s.length>0&&a!=null&&this.doc.version>a||r.set(o,s)}this.refresh(r,t)}else this.refresh(this.diagnosticsMap,t)}getHighlightItems(e){let t=[];for(let i=0;i<Math.min(this._config.highlightLimit,e.length);i++){let r=e[i],o=Jte(r);this.doc.addHighlights(t,o,r.range)}return t.sort((i,r)=>i.lnum!=r.lnum?i.lnum-r.lnum:i.colStart!=r.colStart?i.colStart-r.colStart:Gte.indexOf(r.hlGroup)-Gte.indexOf(i.hlGroup)),t}clear(){let{nvim:e}=this,t=Array.from(this.diagnosticsMap.keys());if(this.refreshHighlights.clear(),this.versionsMap.clear(),this._dirties.clear(),this.displayByAle)for(let i of t)this.nvim.call(zte,[this.bufnr,i,[]],!0);else{e.pauseNotification(),this.buffer.deleteVar("coc_diagnostic_info");for(let i of t)this.clearHighlight(i),this.clearSigns(i);this._config.virtualText&&this.buffer.clearNamespace(Db),e.resumeNotification(!0,!0)}}getDiagnosticsAt(e,t){let i=[];for(let r of this.diagnosticsMap.values())t?i.push(...r.filter(o=>iY(e.line,o.range))):i.push(...r.filter(o=>ft(e,o.range)==0));return i.sort(OD),i}getDiagnosticsAtPosition(e){let{config:t,doc:i}=this,r=this.getDiagnosticsAt(e,t.checkCurrentLine);if(t.checkCurrentLine||r.length)return r;let o=i.getline(e.line).length;return e.character+1==o&&(r=this.getDiagnosticsAt(Wn.Position.create(e.line,e.character+1),!1),r.length)||e.line===i.lineCount-1&&e.character==0&&(e=Wn.Position.create(e.line+1,0),r=this.getDiagnosticsAt(e,!0)),r}async isEnabled(){return this._disposed||!this.config.enable?!1:await this.nvim.createBuffer(this.bufnr).getVar("coc_diagnostic_disable")!=1}dispose(){this.clear(),this.diagnosticsMap.clear(),this._onDidRefresh.dispose(),this._disposed=!0}}});var qs,glt,pke,Tb,Qte=k(()=>{"use strict";qs=S(W());Pe();ie();nt();glt=q()("diagnostic-collection"),pke=[qs.DiagnosticTag.Deprecated,qs.DiagnosticTag.Unnecessary],Tb=class{constructor(e,t){this.name=e;this.onDispose=t;this.diagnosticsMap=new Map;this._onDidDiagnosticsChange=new qs.Emitter;this.onDidDiagnosticsChange=this._onDidDiagnosticsChange.event}set(e,t){let i=new Map;if(Array.isArray(e))for(let r of e){let[o,s]=r,a=v.getDocument(o);o=a?a.uri:o,s==null?s=[]:s=(i.get(o)||[]).concat(s),i.set(o,s)}else{let r=v.getDocument(e),o=r?r.uri:e;i.set(o,t||[])}for(let r of i){let[o,s]=r;o=j.parse(o).toString(),s.forEach(a=>{a.range=a.range??qs.Range.create(0,0,0,0),a.message=a.message??"",a.source=a.source||this.name,!a.severity&&Array.isArray(a.tags)&&Zg(a.tags,pke)&&(a.severity=qs.DiagnosticSeverity.Hint)}),this.diagnosticsMap.set(o,s),this._onDidDiagnosticsChange.fire(o)}}delete(e){this.diagnosticsMap.delete(e),this._onDidDiagnosticsChange.fire(e)}clear(){let e=Array.from(this.diagnosticsMap.keys());e=e.filter(t=>this.diagnosticsMap.get(t).length>0),this.diagnosticsMap.clear();for(let t of e)this._onDidDiagnosticsChange.fire(t)}forEach(e,t){for(let i of this.diagnosticsMap.keys()){let r=this.diagnosticsMap.get(i);e.call(t,i,r,this)}}entries(){return this.diagnosticsMap.entries()}get(e){let t=this.diagnosticsMap.get(e);return t==null?[]:t.slice()}has(e){return this.diagnosticsMap.has(e)}dispose(){this.clear(),this.onDispose&&this.onDispose(),this._onDidDiagnosticsChange.dispose()}}});var xn,_lt,AF,Wt,Bu=k(()=>{"use strict";xn=S(W());Pe();fe();re();nt();$e();xt();_e();xe();ie();Kte();Qte();OF();_lt=q()("diagnostic-manager"),AF=class{constructor(){this._onDidRefresh=new xn.Emitter;this.onDidRefresh=this._onDidRefresh.event;this.enabled=!0;this.collections=[];this.disposables=[]}init(){let e=v.getConfiguration("diagnostic");this.floatFactory=D.createFloatFactory({modes:["n"],autoHide:!0}),this.buffers=v.registerBufferSync(i=>{let r=new AD(this.nvim,i,this.floatFactory);r.onDidRefresh(s=>{this._onDidRefresh.fire({diagnostics:s,uri:r.uri,bufnr:r.bufnr})});let o=this.getDiagnostics(r);return Object.keys(o).length>0&&r.config.autoRefresh&&r.reset(o),r}),v.onDidChangeConfiguration(i=>{for(let r of this.buffers.items)i.affectsConfiguration("diagnostic",r.doc)&&r.loadConfiguration()},null,this.disposables),v.onDidCloseTextDocument(i=>{for(let r of this.collections)r.delete(i.uri)},null,this.disposables),P.on("CursorMoved",(i,r)=>{this.messageTimer&&clearTimeout(this.messageTimer),this.messageTimer=setTimeout(()=>{let o=this.buffers.getItem(i);if(o==null||o.dirty)return;let s=async()=>{if(o.config.enableMessage!=="always")return;let a=o.doc.getPosition(r[0],r[1]);await o.echoMessage(!0,a)};Promise.all([s(),o.showVirtualTextCurrentLine(r[0])])},e.messageDelay)},null,this.disposables),P.on(["InsertEnter","BufEnter"],()=>{this.messageTimer&&clearTimeout(this.messageTimer)},null,this.disposables),P.on("InsertLeave",async i=>{let r=this.buffers.getItem(i);if(!(!r||r.config.refreshOnInsertMode))for(let o of this.buffers.items)o.refreshHighlights()},null,this.disposables),P.on("BufWinEnter",i=>{let r=this.buffers.getItem(i);r&&r.refreshHighlights()},null,this.disposables);let t=v.configurations.errorItems;this.setConfigurationErrors(t),v.configurations.onError(i=>{this.setConfigurationErrors(i)},null,this.disposables),this.defineSigns(e)}defineSigns(e){let{nvim:t}=this;t.pauseNotification();for(let i of["Error","Warning","Info","Hint"]){let r=`sign define Coc${i} linehl=Coc${i}Line`,o=e[i.toLowerCase()+"Sign"];o&&(r+=` texthl=Coc${i}Sign text=${o}`),v.isNvim&&e.enableHighlightLineNumber&&(r+=` numhl=Coc${i}Sign`),t.command(r,!0)}t.resumeNotification(!1,!0)}getItem(e){return this.buffers.getItem(e)}async setLocationlist(e){let t=this.buffers.getItem(e),i=v.getDocument(e);if(!t)throw new Error(`buffer ${e} not attached, ${i?i.notAttachReason:""}`);let r=[];for(let l of Object.values(this.getDiagnostics(t)))r.push(...l);let o=t.toLocationListItems(r),s=await this.nvim.call("getloclist",[0,{title:1}]),a=s.title&&s.title.indexOf("Diagnostics of coc")!=-1?"r":" ";await this.nvim.call("setloclist",[0,[],a,{title:"Diagnostics of coc",items:o}])}setConfigurationErrors(e){let t=this.create("config");if(e!=null&&e.length){let i=j.parse(e[0].location.uri).fsPath;D.showErrorMessage(`Error detected for config file ${i}, please check diagnostics list.`);let r=new Map;for(let o of e){let{uri:s}=o.location,a=r.get(s)||[];a.push(xn.Diagnostic.create(o.location.range,o.message,xn.DiagnosticSeverity.Error)),r.set(s,a)}t.set(Array.from(r))}else t.clear()}create(e){let t=this.getCollectionByName(e);return t||(t=new Tb(e,()=>{let i=this.collections.findIndex(r=>r==t);i!==-1&&this.collections.splice(i,1)}),this.collections.push(t),t.onDidDiagnosticsChange(i=>{let r=this.buffers.getItem(i);r&&r.config.autoRefresh&&r.update(e,this.getDiagnosticsByCollection(r,t))}),t)}getSortedRanges(e,t,i){let r=this.getCollections(e),o=[],s=i?Hs(i):0;for(let a of r){let l=a.get(e);s?l=l.filter(c=>c.severity==s):t&&t<xn.DiagnosticSeverity.Hint&&(l=l.filter(c=>!(c.severity&&c.severity>t)));let u=l.map(c=>c.range);o.push(...u)}return o.sort((a,l)=>a.start.line!=l.start.line?a.start.line-l.start.line:a.start.character-l.start.character),o}getDiagnostics(e){let t={};for(let i of this.collections)!i.has(e.uri)||(t[i.name]=this.getDiagnosticsByCollection(e,i));return t}getDiagnosticsByCollection(e,t){let{level:i,showUnused:r,showDeprecated:o}=e.config,s=t.get(e.uri)??[];return s.length&&(s=s.filter(a=>{var l,u;return!(i&&a.severity&&a.severity>i||!r&&((l=a.tags)==null?void 0:l.includes(xn.DiagnosticTag.Unnecessary))||!o&&((u=a.tags)==null?void 0:u.includes(xn.DiagnosticTag.Deprecated)))}),s.sort((a,l)=>Me(a.range.start,l.range.start))),s}getDiagnosticsInRange(e,t){let i=[];for(let r of this.collections)for(let o of r.get(e.uri)??[])Gl(o.range,t)&&i.push(o);return i}async preview(){let e=await this.getCurrentDiagnostics();if(e.length==0){this.nvim.command("pclose",!0);return}let t=[];for(let i of e){let{source:r,code:o,severity:s,message:a}=i,l=Sb(s)[0];t.push(`[${r}${o?" "+o:""}] [${l}]`),t.push(...a.split(/\r?\n/)),t.push("")}this.nvim.call("coc#ui#preview_info",[t,"txt"],!0)}async prepareJump(e){let t=await this.nvim.call("bufnr",["%"]),i=this.buffers.getItem(t);if(!i)return;let r=this.getSortedRanges(i.uri,i.config.level,e);if(Je(r))return;let o=await D.getCursorPosition(),s=await this.nvim.getOption("wrapscan");return{item:i,curpos:o,wrapscan:s!=0,ranges:r}}async jumpPrevious(e){let t=await this.prepareJump(e);if(!t)return;let{curpos:i,item:r,wrapscan:o,ranges:s}=t,a;for(let l=s.length-1;l>=0;l--){let u=s[l].end;if(Me(u,i)<0){a=s[l].start;break}}!a&&o&&(a=s[s.length-1].start),a?(await D.moveTo(a),await r.echoMessage(!1,a)):D.showWarningMessage("No more diagnostic before cursor position")}async jumpNext(e){let t=await this.prepareJump(e);if(!t)return;let{curpos:i,item:r,wrapscan:o,ranges:s}=t,a;for(let l=0;l<=s.length-1;l++){let u=s[l].start;if(Me(u,i)>0){let c=await this.nvim.call("coc#util#valid_position",[u.line,u.character]);if((c[0]!=u.line||c[1]!=u.character)&&Me(xn.Position.create(c[0],c[1]),i)<=0)continue;a=xn.Position.create(c[0],c[1]);break}}!a&&o&&(a=s[0].start),a?(await D.moveTo(a),await r.echoMessage(!1,a)):D.showWarningMessage("No more diagnostic after cursor position")}async getDiagnosticList(){let e=[],t=v.getConfiguration("diagnostic"),i=Hs(t.get("level","hint"));for(let r of this.collections)for(let[o,s]of r.entries()){if(s.length==0)continue;let a=j.parse(o),l=v.getDocument(o),u=l&&l.attached?l.textDocument.lines:void 0;if(!u&&a.scheme==="file")try{let c=s.reduce((h,d)=>Math.max(d.range.end.line,h),0);u=await Sa(a.fsPath,0,c)}catch{}for(let c of s){if(c.severity&&c.severity>i)continue;let{start:h,end:d}=c.range,g={file:a.fsPath,lnum:h.line+1,end_lnum:d.line+1,col:Array.isArray(u)?_t(u[h.line]??"",h.character)+1:h.character+1,end_col:Array.isArray(u)?_t(u[d.line]??"",d.character)+1:d.character+1,code:c.code,source:c.source??r.name,message:c.message,severity:Sb(c.severity),level:c.severity??0,location:xn.Location.create(o,c.range)};e.push(g)}}return e.sort((r,o)=>r.level!==o.level?r.level-o.level:r.file!==o.file?r.file>o.file?1:-1:r.lnum!=o.lnum?r.lnum-o.lnum:r.col-o.col),e}async getBufferAndPosition(){let[e,t,i]=await this.nvim.eval(`[bufnr("%"),line('.'),col('.')]`),r=this.buffers.getItem(e);if(!r)return;let o=r.doc.getPosition(t,i);return[r,o]}async getCurrentDiagnostics(){let e=await this.getBufferAndPosition();if(!!e)return e[0].getDiagnosticsAtPosition(e[1])}async echoCurrentMessage(){let e=await this.getBufferAndPosition();if(!e)return;let[t,i]=e;await t.echoMessage(!1,i)}async jumpRelated(){let t=(await this.getCurrentDiagnostics()).find(r=>r.relatedInformation!=null),i=t?t.relatedInformation.map(r=>r.location):[];i.length==1?await v.jumpTo(i[0].uri,i[0].range.start):i.length>1?await v.showLocations(i):D.showWarningMessage("No related information found.")}reset(){this.messageTimer&&clearTimeout(this.messageTimer),this.buffers.reset();for(let e of this.collections)e.dispose();this.collections=[]}dispose(){this.messageTimer&&clearTimeout(this.messageTimer),this.buffers.dispose();for(let e of this.collections)e.dispose();this.floatFactory.dispose(),this.collections=[],U(this.disposables)}get nvim(){return v.nvim}getCollectionByName(e){return this.collections.find(t=>t.name==e)}getCollections(e){return this.collections.filter(t=>t.has(e))}async toggleDiagnostic(e){this.enabled=e==null?!this.enabled:e!=0,await Promise.allSettled(this.buffers.items.map(t=>t.setState(this.enabled)))}async toggleDiagnosticBuffer(e,t){e=e??v.bufnr;let i=this.buffers.getItem(e);if(i){let r=t==null?await i.isEnabled():t==0;await this.nvim.call("setbufvar",[e,"coc_diagnostic_disable",r?1:0]),await i.setState(!r)}}async refreshBuffer(e){let t=this.buffers.getItem(e);return t?(await t.reset(this.getDiagnostics(t)),!0):!1}async refresh(e){let t;if(!e)t=this.buffers.items;else{let i=this.buffers.getItem(e);t=i?[i]:[]}for(let i of t)await this.refreshBuffer(i.uri)}},Wt=new AF});var ol,Vte,eie,tie,Jlt,NF,HF,ue,Jt=k(()=>{"use strict";ol=S(W());Pe();Bu();Yu();re();xe();ie();fe();Vte=S(require("path")),eie=S(require("os"));qe();tie=require("v8"),Jlt=q()("commands"),NF=class{constructor(e,t,i,r=!1){this.id=e;this.impl=t;this.thisArg=i;this.internal=r}execute(...e){let{impl:t,thisArg:i}=this;return t.apply(i,e||[])}dispose(){this.thisArg=null,this.impl=null}},HF=class{constructor(){this.commands=new Map;this.titles=new Map;this.onCommandList=[]}init(e,t){this.mru=v.createMru("commands"),this.register({id:"vscode.open",execute:async i=>{e.call("coc#ui#open_url",i.toString(),!0)}},!0),this.register({id:"workbench.action.reloadWindow",execute:async()=>{e.command("CocRestart",!0)}},!0),this.register({id:"editor.action.insertSnippet",execute:async(i,r)=>{let o=r===!0?{}:r;return await ai.insertSnippet(i.newText,!0,i.range,ol.InsertTextMode.adjustIndentation,o||void 0)}},!0),this.register({id:"editor.action.doCodeAction",execute:async i=>{await t.cocAction("doCodeAction",i)}},!0),this.register({id:"editor.action.triggerSuggest",execute:async()=>{e.call("coc#refresh",[],!0)}},!0),this.register({id:"editor.action.triggerParameterHints",execute:async()=>{let i=v.getDocument(v.bufnr);i&&await i.synchronize(),await t.cocAction("showSignatureHelp")}},!0),this.register({id:"editor.action.addRanges",execute:async i=>{await t.cocAction("addRanges",i)}},!0),this.register({id:"editor.action.restart",execute:async()=>{await Nt(30),e.command("CocRestart",!0)}},!0),this.register({id:"editor.action.showReferences",execute:async(i,r,o)=>{await v.showLocations(o)}},!0),this.register({id:"editor.action.rename",execute:async(i,r)=>{await v.jumpTo(i,r),await t.cocAction("rename")}},!0),this.register({id:"editor.action.format",execute:async()=>{await t.cocAction("format")}},!0),this.register({id:"workspace.refactor",execute:async i=>{let r=i.filter(o=>ol.Location.is(o));await t.getHandler().refactor.fromLocations(r)}},!0),this.register({id:"workspace.clearWatchman",execute:async()=>{(await D.runTerminalCommand("watchman watch-del-all")).success&&D.showInformationMessage("Cleared watchman watching directories.")}},!1,"run watch-del-all for watchman to free up memory."),this.register({id:"workspace.workspaceFolders",execute:async()=>{let r=v.workspaceFolders.map(o=>j.parse(o.uri).fsPath);await D.echoLines(r)}},!1,"show opened workspaceFolders."),this.register({id:"workspace.renameCurrentFile",execute:async()=>{await v.renameCurrent()}},!1,"change current filename to a new name and reload it."),this.register({id:"extensions.toggleAutoUpdate",execute:async()=>{let i=v.getConfiguration("coc.preferences",null);i.get("extensionUpdateCheck","daily")=="never"?(await i.update("extensionUpdateCheck","daily",!0),await D.showInformationMessage("Extension auto update enabled.")):(await i.update("extensionUpdateCheck","never",!0),await D.showInformationMessage("Extension auto update disabled."))}},!1,"toggle auto update of extensions."),this.register({id:"workspace.diagnosticRelated",execute:()=>Wt.jumpRelated()},!1,"jump to related locations of current diagnostic."),this.register({id:"workspace.showOutput",execute:async i=>{if(i)D.showOutputChannel(i);else{let r=v.channelNames;if(r.length==0)return;if(r.length==1)D.showOutputChannel(r[0]);else{let o=await D.showQuickpick(r);if(o==-1)return;let s=r[o];D.showOutputChannel(s)}}}},!1,"open output buffer to show output from languageservers or extensions."),this.register({id:"document.showIncomingCalls",execute:async()=>{await t.cocAction("showIncomingCalls")}},!1,"show incoming calls in tree view."),this.register({id:"document.showOutgoingCalls",execute:async()=>{await t.cocAction("showOutgoingCalls")}},!1,"show outgoing calls in tree view."),this.register({id:"document.echoFiletype",execute:async()=>{let i=await e.call("bufnr","%"),r=v.getDocument(i);!r||await D.echoLines([r.filetype])}},!1,"echo the mapped filetype of the current buffer"),this.register({id:"document.renameCurrentWord",execute:async()=>{let i=await e.call("bufnr","%"),r=v.getDocument(i);if(!r)return;let o=await t.cocAction("getWordEdit");if(!o){D.showWarningMessage("Invalid position");return}let s=[],{changes:a,documentChanges:l}=o;if(a){let u=a[r.uri];u&&(s=u.map(c=>c.range))}else if(l)for(let u of l)ol.TextDocumentEdit.is(u)&&u.textDocument.uri==r.uri&&(s=u.edits.map(c=>c.range));s.length&&await t.cocAction("addRanges",s)}},!1,"rename word under cursor in current buffer by use multiple cursors."),this.register({id:"document.jumpToNextSymbol",execute:async()=>{let i=await v.document;if(!i)return;let r=await t.cocAction("symbolRanges");if(!r)return;let{textDocument:o}=i,s=await D.getOffset();r.sort((a,l)=>a.start.line!=l.start.line?a.start.line-l.start.line:a.start.character-l.start.character);for(let a=0;a<=r.length-1;a++)if(o.offsetAt(r[a].start)>s){await D.moveTo(r[a].start);return}await D.moveTo(r[0].start)}},!1,"Jump to next symbol highlight position."),this.register({id:"workspace.undo",execute:async()=>{await v.files.undoWorkspaceEdit()}},!1,"Undo previous workspace edit"),this.register({id:"workspace.redo",execute:async()=>{await v.files.redoWorkspaceEdit()}},!1,"Redo previous workspace edit"),this.register({id:"workspace.inspectEdit",execute:async()=>{await v.files.inspectEdit()}},!1,"Inspect previous workspace edit in new tab"),this.register({id:"workspace.openLocation",execute:async(i,r,o)=>{i&&await e.call("win_gotoid",[i]),await v.jumpTo(r.uri,r.range.start,o)}},!0),this.register({id:"document.jumpToPrevSymbol",execute:async()=>{let i=await v.document;if(!i)return;let r=await t.cocAction("symbolRanges");if(!r)return;let{textDocument:o}=i,s=await D.getOffset();r.sort((a,l)=>a.start.line!=l.start.line?a.start.line-l.start.line:a.start.character-l.start.character);for(let a=r.length-1;a>=0;a--)if(o.offsetAt(r[a].end)<s){await D.moveTo(r[a].start);return}await D.moveTo(r[r.length-1].start)}},!1,"Jump to previous symbol highlight position."),this.register({id:"document.checkBuffer",execute:async()=>{await t.cocAction("bufferCheck")}},!1,"Check providers for current buffer."),this.register({id:"workspace.writeHeapSnapshot",execute:async()=>{let i=Vte.default.join(eie.default.homedir(),`${oe()}-${process.pid}.heapsnapshot`);(0,tie.writeHeapSnapshot)(i),D.showInformationMessage(`Create heapdump at: ${i}`)}},!1,"Generates a snapshot of the current V8 heap and writes it to a JSON file.")}get commandList(){let e=[];for(let t of this.commands.values())t.internal||e.push(t);return e}dispose(){for(let e of this.commands.values())e.dispose();this.commands.clear()}execute(e){return this.executeCommand(e.command,...e.arguments??[])}register(e,t=!1,i){for(let r of Array.isArray(e.id)?e.id:[e.id])this.registerCommand(r,e.execute,e,t),i&&this.titles.set(r,i);return e}has(e){return this.commands.has(e)}unregister(e){let t=this.commands.get(e);!t||(t.dispose(),this.commands.delete(e))}registerCommand(e,t,i,r=!1){return e.startsWith("_")&&(r=!0),this.commands.set(e,new NF(e,t,i,r)),ol.Disposable.create(()=>{this.commands.delete(e)})}executeCommand(e,...t){let i=this.commands.get(e);if(!i)throw new Error(`Command: ${e} not found`);return Promise.resolve(i.execute.apply(i,t))}async fireCommand(e,...t){await P.fire("Command",[e]);let i=Date.now(),r=await this.executeCommand(e,...t);return t.length==0&&await this.addRecent(e,P.lastChangeTs>i),r}async addRecent(e,t){await this.mru.add(e),t&&await v.nvim.command('silent! call repeat#set("\\<Plug>(coc-command-repeat)", -1)')}async repeatCommand(){let t=(await this.mru.load())[0];t&&(await this.executeCommand(t),await v.nvim.command('silent! call repeat#set("\\<Plug>(coc-command-repeat)", -1)'))}},ue=new HF});jT();var $ie=S(yH()),Uie=S(LT());fe();var Jie=require("events"),ij=S(W());Jt();var ND=S(W());Pe();fe();Os();re();nt();_e();xe();ie();var nie=S(bD()),$u=S(W());dn();re();nt();tl();_e();nt();tl();_e();function qF(n,e,t=1){return n===e?1/t:e+32===n?.5/t:0}function iie(n,e){if(!(e.length==0||n.length<e.length))return Dd(Fr(n),0,e,[])}function Dd(n,e,t,i){if(t.length===0)return[0,i];let r=n.length,o=t[0],s=t.slice(1);if(!oD(o)){let d=RB(n,o,e);if(d==-1)return;let g=d==0?5:1,p=Dd(n,d+1,s,[...i,d]);return p===void 0?void 0:[g+p[0],p[1]]}let a=e===0,l=qF(o,n[e],a?.2:1);if(l>0){let d=Dd(n,e+1,s,[...i,e]);return d===void 0?void 0:[l+d[0],d[1]]}let u=new Map,c=xB(n,e+1);if(c!=null){let d=qF(o,c[1],a?.5:1);if(d>0){let g=[...i,c[0]];d===.5&&(d=.75);let p=Dd(n,c[0]+1,s,g);p!==void 0&&u.set(d+p[0],p[1])}}for(let d=e+1;d<r;d++){let g=qF(o,n[d],a?1:10);if(g>0){let p=Dd(n,d+1,s,[...i,d]);p!==void 0&&u.set(g+p[0],p[1]);break}}if(u.size==0){if(i.length>0){let d=i[i.length-1];if(d>0&&n[d]!==o&&n[d-1]===o){let g=i.slice();g.splice(i.length-1,0,d-1);let p=Dd(n,d+1,s,g);return p===void 0?void 0:[.5+p[0],p[1]]}}return}let h=Math.max(...u.keys());return[h,u.get(h)]}var Td=S(W());fe();de();nt();et();xt();ie();var out=q()("completion-wordDistance"),Ju=class{static async create(e,t){let{position:i}=t,r=[t.linenr,t.colnr];if(!e)return Ju.None;let o=v.getDocument(t.bufnr),s=new Td.CancellationTokenSource,a=await _.getSelectionRanges(o.textDocument,[i],s.token);if(Je(a))return Ju.None;let l=[],u=d=>{d&&d.range.end.line-d.range.start.line<2e3&&(l.unshift(d.range),u(d.parent))};u(a[0]);let c=new Promise(d=>{setTimeout(()=>{s.cancel(),d(void 0)},100)}),h=await Promise.race([c,v.computeWordRanges(t.bufnr,l[0],s.token)]);return h?(delete h[t.word],new class extends Ju{distance(d,g){if(!ye([P.cursor.lnum,P.cursor.col],r))return 0;if(g.kind===Td.CompletionItemKind.Keyword||g.source==="snippets")return 2<<20;let p=h[g.word];if(Je(p))return 2<<20;let f=EB(p,Td.Range.create(d,d),VW),m=f>=0?p[f]:p[Math.max(0,~f-1)],b=l.length;for(let w of l){if(!Xt(m,w))break;b-=1}return b}}):Ju.None}},kb=Ju;kb.None=new class extends Ju{distance(){return 0}};var kd=q()("completion-complete"),fke=2<<20,Pb=class{constructor(e,t,i,r,o){this.option=e;this.document=t;this.config=i;this.sources=r;this.nvim=o;this.results=new Map;this._input="";this._completing=!1;this.names=[];this.inputOffset=0;this._onDidRefresh=new $u.Emitter;this.onDidRefresh=this._onDidRefresh.event;this.tokenSource=new $u.CancellationTokenSource,r.sort((s,a)=>(a.priority??99)-(s.priority??99)),this.names=r.map(s=>s.name),this.asciiMatch=i.asciiMatch&&e.input.length>0&&e.input.charCodeAt(0)<128}fireRefresh(e){this.timer&&clearTimeout(this.timer),this.timer=setTimeout(()=>{this._onDidRefresh.fire()},e)}getPriority(e){return typeof e.priority=="number"?e.priority:e.sourceType===2?this.config.languageSourcePriority:0}get isCompleting(){return this._completing}get input(){return this._input}get isEmpty(){let e=!0;for(let t of this.results.values())if(t.items.length>0){e=!1;break}return e}getIncompleteSources(){let e=[];for(let[t,i]of this.results.entries())i.isIncomplete&&e.push(t);return e}async doComplete(){let e=this.tokenSource.token,t=await Promise.all([this.nvim.call("coc#util#synname",[]),this.nvim.call("coc#util#suggest_variables",[this.option.bufnr]),this.document.patchChange()]);if(e.isCancellationRequested)return;this.option.synname=t[0];let i=t[1];if(i.disable)return kd.warn("suggest cancelled by b:coc_suggest_disable"),!0;if(!Je(i.disabled_sources)&&(this.sources=this.sources.filter(r=>!i.disabled_sources.includes(r.name)),this.sources.length===0))return kd.warn("suggest cancelled by b:coc_disabled_sources"),!0;if(!Je(i.blacklist)&&i.blacklist.includes(this.option.input))return kd.warn("suggest cancelled by b:coc_suggest_blacklist"),!0;await Nt(Math.min(this.config.triggerCompletionWait??0,50)),!e.isCancellationRequested&&await this.completeSources(this.sources,!1)}async completeSources(e,t){let{timeout:i,localityBonus:r}=this.config,{results:o,tokenSource:s}=this,a=this.option.col,l=e.map(f=>f.name),u=l.length;this._completing=!0;let c=s.token,h,d=new Promise(f=>{h=setTimeout(()=>{c.isCancellationRequested||(l=l.filter(m=>!g.includes(m)),s.cancel(),kd.warn(`Completion timeout after ${i}ms`,l),this.nvim.setVar("coc_timeout_sources",l,!0)),f()},typeof i=="number"?i:500)}),g=[],p=[kb.create(r,this.option).then(f=>{this.wordDistance=f}),...e.map(f=>this.completeSource(f,c).then(()=>{if(g.push(f.name),c.isCancellationRequested||t)return;let m=this.option.col!==a;m&&this.cancel(),m||g.length===u?this.fireRefresh(0):o.has(f.name)&&this.fireRefresh(16)}))];await Promise.race([d,Promise.all(p)]),clearTimeout(h),this._completing=!1}async completeSource(e,t){let i=Object.assign({},this.option),{asciiMatch:r}=this,{name:o}=e;try{if(typeof e.shouldComplete=="function"&&(!await Promise.resolve(e.shouldComplete(i))||t.isCancellationRequested))return;let s=this.getPriority(e),a=Date.now();await new Promise((l,u)=>{Promise.resolve(e.doComplete(i,t)).then(c=>{if(t.isCancellationRequested){l(void 0);return}let h=c?c.items.length:0;kd.debug(`Source "${o}" finished with ${h} items ${Date.now()-a}ms`),h>0?(c.items.forEach(d=>{let g=d.filterText??d.word;d.word=d.word??"",d.abbr=d.abbr??d.word,d.source=o,d.priority=s,d.filterText=r?(0,nie.default)(g):g}),this.setResult(o,c)):this.results.delete(o),l()},c=>{u(c)})})}catch(s){kd.error("Complete error:",e.name,s)}}async completeInComplete(e,t){let{document:i}=this;this.cancel(),this.tokenSource=new $u.CancellationTokenSource;let r=this.tokenSource.token;if(await i.patchChange(!0),r.isCancellationRequested)return;let{input:o,colnr:s,linenr:a,followWord:l,position:u}=this.option,c=e+l;Object.assign(this.option,{word:c,input:e,line:i.getline(a-1),position:{line:u.line,character:u.character+e.length-o.length},colnr:s+(e.length-o.length),triggerCharacter:void 0,triggerForInComplete:!0});let h=this.sources.filter(d=>t.includes(d.name));if(await this.completeSources(h,!0),!r.isCancellationRequested)return this.filterItems(e)}filterItems(e){let{results:t,names:i,inputOffset:r,option:o}=this;if(r>0&&(e=tt(e,r)),this._input=e,t.size==0)return[];let s=e.length,a=$u.Position.create(o.linenr-1,Gi(o.line,o.col)),l=s==0,{maxItemCount:u,defaultSortMethod:c,removeDuplicateItems:h}=this.config,d=[],g=Fr(e),p=new Set;for(let f of i){let m=t.get(f);if(!m)continue;let b=m.items;for(let w=0;w<b.length;w++){let x=b[w],{word:T,filterText:R,dup:F}=x;if(!(F!==1&&p.has(T))&&!(R.length<s)&&!(h&&x.isSnippet!==!0&&p.has(T))){if(!l){if(x.kind&&R===e)x.score=64;else{let N=iie(R,g);if(N==null||N[0]===0)continue;x.score=N[0],x.positions=N[1]}this.wordDistance&&(x.localBonus=fke-this.wordDistance.distance(a,x))}p.add(T),d.push(x)}}}return d.sort((f,m)=>{let b=f.sortText,w=m.sortText;if(f.score!==m.score)return m.score-f.score;if(f.priority!==m.priority)return m.priority-f.priority;if(f.source===m.source&&b!==w)return b<w?-1:1;if(f.localBonus!==m.localBonus)return m.localBonus-f.localBonus;if(e.length===0)return 0;switch(c){case"none":return 0;case"alphabetical":return f.filterText.localeCompare(m.filterText);case"length":default:return f.filterText.length-m.filterText.length}}),this.limitCompleteItems(d.slice(0,u))}async filterResults(e){if(clearTimeout(this.timer),e!==this.option.input){let t=this.getIncompleteSources();if(t.length)return await this.completeInComplete(e,t)}return this.filterItems(e)}limitCompleteItems(e){let{highPrioritySourceLimit:t,lowPrioritySourceLimit:i}=this.config;if(!t&&!i)return e;let r=new Map;return e.filter(o=>{let{priority:s,source:a}=o,l=s<90,u=r.get(a)||0;return i&&l&&u==i||t&&!l&&u==t?!1:(r.set(a,u+1),!0)})}setResult(e,t){let{results:i}=this,{line:r,colnr:o,col:s}=this.option;if(typeof t.startcol=="number"&&t.startcol!=s){let{startcol:a}=t;a<s&&(this.inputOffset=s-a),this.option.col=a,this.option.input=tt(r,a,o-1),i.clear(),i.set(e,t)}else i.set(e,t)}cancel(){let{tokenSource:e,timer:t}=this;t&&clearTimeout(t),e.cancel(),this._completing=!1}dispose(){this.cancel(),this._onDidRefresh.dispose(),this.sources=[],this.results.clear()}};var oie=S(W());rR();Os();ie();var rie=q()("completion-floating"),Eb=class{constructor(e,t){this.nvim=e;this.config=t;this.excludeImages=!0;this.excludeImages=v.getConfiguration("coc.preferences").get("excludeImageLinksInMarkdownDocument")}async resolveItem(e,t){let i=this.tokenSource=new oie.CancellationTokenSource,{token:r}=i;if(await this.doCompleteResolve(e,t,r),r.isCancellationRequested)return;let o=e.documentation??[];o.length===0&&typeof e.info=="string"&&(o=[{filetype:"txt",content:e.info}]),this.show(o)}show(e){let t=this.config.floatConfig;if(e=e.filter(i=>i.content.trim().length>0),e.length===0)this.close();else{let{lines:i,codes:r,highlights:o}=Ww(e,{excludeImages:this.excludeImages}),s={codes:r,highlights:o,highlight:t.highlight??"CocFloating",maxWidth:t.maxWidth||80,rounded:t.rounded?1:0,focusable:t.focusable===!0?1:0};t.shadow&&(s.shadow=1),t.border&&(s.border=[1,1,1,1]),t.borderhighlight&&(s.borderhighlight=t.borderhighlight),typeof t.winblend=="number"&&(s.winblend=t.winblend),this.nvim.call("coc#dialog#create_pum_float",[i,s],!0),this.nvim.redrawVim()}}doCompleteResolve(e,t,i){let r=St.getSource(e.source);return new Promise(o=>{if(r&&typeof r.onCompleteResolve=="function"){let s=setTimeout(()=>{i.isCancellationRequested||(this.cancel(),this.close()),rie.warn(`Resolve timeout after 500ms: ${r.name}`),o()},500);Promise.resolve(r.onCompleteResolve(e,t,i)).then(()=>{clearTimeout(s),o()},a=>{rie.error("Error on complete resolve:",a),clearTimeout(s),o()})}else o()})}cancel(){this.tokenSource&&(this.tokenSource.cancel(),this.tokenSource=void 0)}close(){this.nvim.call("coc#pum#close_detail",[],!0)}};var Eut=q()("completion-mru"),Rb=class{constructor(){this.max=0;this.items=new Map;this.itemsNoPrefex=new Map}getScore(e,t,i){let r=sie(t);return e.length==0?this.itemsNoPrefex.get(r)??-1:(i==="recentlyUsedByPrefix"&&(r=`${e}|${r}`),(i==="recentlyUsed"?this.itemsNoPrefex:this.items).get(r)??-1)}add(e,t){if(["around","buffer","word"].includes(t.source))return;let i=sie(t);t.word.toLowerCase().startsWith(e.toLowerCase())||(e="");let r=`${e}|${i}`;this.items.set(r,this.max),this.itemsNoPrefex.set(i,this.max),this.max+=1}};function sie(n){let e=n.filterText,t=n.source,i=n.kind??"";return`${e}|${t}|${i}`}var Dt=S(W());S_();Os();_e();Kn();Os();nt();_e();var jut=q()("completion-util");function BF(n,e,t){return typeof n=="number"?e.get(n)??t:n}function aie(n,e){let t=Buffer.from(e,"utf8");if(t.length<n.colnr-1)return null;let i=tt(n.line,0,n.colnr-1);return!e.startsWith(i)||e.slice(i.length).includes(" ")?null:t.slice(n.col).toString("utf8")}function lie(n,e){return!n||n.length==0||e.length==0?!1:n.some(t=>{try{return new RegExp(t).test(e)}catch{return!1}})}function uie(n){return new Map([[ut.Text,n.text??"v"],[ut.Method,n.method??"f"],[ut.Function,n.function??"f"],[ut.Constructor,typeof n.constructor=="function"?"f":n["constructor"]??""],[ut.Field,n.field??"m"],[ut.Variable,n.variable??"v"],[ut.Class,n.class??"C"],[ut.Interface,n.interface??"I"],[ut.Module,n.module??"M"],[ut.Property,n.property??"m"],[ut.Unit,n.unit??"U"],[ut.Value,n.value??"v"],[ut.Enum,n.enum??"E"],[ut.Keyword,n.keyword??"k"],[ut.Snippet,n.snippet??"S"],[ut.Color,n.color??"v"],[ut.File,n.file??"F"],[ut.Reference,n.reference??"r"],[ut.Folder,n.folder??"F"],[ut.EnumMember,n.enumMember??"m"],[ut.Constant,n.constant??"v"],[ut.Struct,n.struct??"S"],[ut.Event,n.event??"E"],[ut.Operator,n.operator??"O"],[ut.TypeParameter,n.typeParameter??"T"]])}function cie(n){return n?{word:n.word,abbr:n.abbr,kind:n.kind,source:n.source,isSnippet:n.isSnippet===!0,menu:n.menu??`[${n.source}]`,user_data:typeof n.index=="number"?`${n.source}:${n.index}`:n.user_data}:{}}function hie(n,e,t,i){let{pre:r}=t;if(r.length===0||r[r.length-1]===" "||r.length<e.length||i.bufnr!=n)return!0;let o=tt(i.line,0,i.colnr-1);return i.linenr!=t.lnum||!r.startsWith(o)}function die(n,e,t){let i=0;for(let r=e.length-1;r>=0;r--){let o=e[r];if(n.isWord(o)&&(t?o.charCodeAt(0)<255:!0))i+=1;else break}return i==0?"":e.slice(-i)}function gie(n){let{source:e}=n;return e?dw(St.getSource(e)):St.getCompleteSources(n)}function pie(n,e,t=2){if(e.length===0)return n;for(let i=t;i<n.length;i++){let r=n[i];if(e.includes(r))return n.slice(0,i)}return n}function fie(n,e){let{filterText:t,abbr:i}=e,r=i.indexOf(t);if(r==-1)return-1;let o=r==0?0:Q(i.slice(0,r));return n+o}ie();var But=q()("completion-pum"),mke={[Dt.CompletionItemKind.Text]:"CocSymbolText",[Dt.CompletionItemKind.Method]:"CocSymbolMethod",[Dt.CompletionItemKind.Function]:"CocSymbolFunction",[Dt.CompletionItemKind.Constructor]:"CocSymbolConstructor",[Dt.CompletionItemKind.Field]:"CocSymbolField",[Dt.CompletionItemKind.Variable]:"CocSymbolVariable",[Dt.CompletionItemKind.Class]:"CocSymbolClass",[Dt.CompletionItemKind.Interface]:"CocSymbolInterface",[Dt.CompletionItemKind.Module]:"CocSymbolModule",[Dt.CompletionItemKind.Property]:"CocSymbolProperty",[Dt.CompletionItemKind.Unit]:"CocSymbolUnit",[Dt.CompletionItemKind.Value]:"CocSymbolValue",[Dt.CompletionItemKind.Enum]:"CocSymbolEnum",[Dt.CompletionItemKind.Keyword]:"CocSymbolKeyword",[Dt.CompletionItemKind.Snippet]:"CocSymbolSnippet",[Dt.CompletionItemKind.Color]:"CocSymbolColor",[Dt.CompletionItemKind.File]:"CocSymbolFile",[Dt.CompletionItemKind.Reference]:"CocSymbolReference",[Dt.CompletionItemKind.Folder]:"CocSymbolFolder",[Dt.CompletionItemKind.EnumMember]:"CocSymbolEnumMember",[Dt.CompletionItemKind.Constant]:"CocSymbolConstant",[Dt.CompletionItemKind.Struct]:"CocSymbolStruct",[Dt.CompletionItemKind.Event]:"CocSymbolEvent",[Dt.CompletionItemKind.Operator]:"CocSymbolOperator",[Dt.CompletionItemKind.TypeParameter]:"CocSymbolTypeParameter"},_b=class{constructor(e,t,i,r){this.nvim=e;this.config=t;this.env=i;this.mruLoader=r;this._search=""}get search(){return this._search}reset(){this._search="",this._pumConfig=void 0}get pumConfig(){if(this._pumConfig)return this._pumConfig;let{floatConfig:e,pumFloatConfig:t,reversePumAboveCursor:i}=this.config;t||(t=e);let r={};return typeof t.highlight=="string"&&(r.highlight=t.highlight),typeof t.winblend=="number"&&(r.winblend=t.winblend),t.shadow&&(r.shadow=t.shadow),t.border&&(r.border=[1,1,1,1],r.rounded=t.rounded?1:0,r.borderhighlight=t.borderhighlight??"CocFloating"),r.reverse=i===!0,this._pumConfig=r,r}stringWidth(e,t=!1){return v.getDisplayWidth(e,t)}show(e,t,i){this._search=t;let{noselect:r,enablePreselect:o,selection:s,virtualText:a,kindMap:l,defaultKindText:u}=this.config,c=i.followWord,h=o?e.findIndex(M=>M.preselect):-1,d=-1,g=0,p=0,f=0,m=0,b=h==-1&&!r&&s!="first",w=[];for(let M=0;M<e.length;M++){let L=e[M];if(b){let ne=this.mruLoader.getScore(t,L,s);ne>d&&(d=ne,h=M)}let O=St.getShortcut(L.source),Z=this.getLabel(L);w.push(Z),g=Math.max(this.stringWidth(Z.text,!0),g),L.kind&&(f=Math.max(this.stringWidth(BF(L.kind,l,u),!0),f)),L.menu&&(p=Math.max(this.stringWidth(L.menu,!0),p)),O&&(m=Math.max(this.stringWidth(O,!0)+2,m))}if(h!==-1&&t.length>0&&(e[h].word.startsWith(t)||(h=-1)),!r)h=h==-1?0:h;else{if(h>0){let[M]=e.splice(h,1);e.unshift(M)}h=-1}let x={input:t,index:h,bufnr:i.bufnr,line:i.linenr,col:i.col,virtualText:a,words:e.map(M=>this.getInsertWord(M,t,c))},T=this.pumConfig,R=[],F=[],N=0,J={border:!!T.border,menuWidth:p,abbrWidth:g,kindWidth:f,shortcutWidth:m};this.adjustAbbrWidth(J);for(let M=0;M<e.length;M++){let[L,O]=this.buildItem(t,e[M],w[M],F,M,J);N=Math.max(N,L),R.push(O)}let H=Object.assign({width:N,highlights:F},T);this.nvim.call("coc#pum#create",[R,x,H],!0),this.nvim.redrawVim()}getInsertWord(e,t,i){let{fixInsertedWord:r,invalidInsertCharacters:o}=this.config,s=e.isSnippet?pie(e.word,o):e.word;return r?bke(s,t,i):s}getLabel(e){let{labelDetails:t,detail:i}=e,{snippetIndicator:r,labelMaxLength:o,detailField:s,detailMaxLength:a}=this.config,l=e.abbr??"",u=e.abbr??e.word,c=[];if(e.isSnippet&&!l.endsWith(r)&&(u=u+r),s==="abbr"&&i&&!t&&i.length<a&&(t={detail:" "+i.replace(/\r?\n\s*/g," ")}),t){let h=(t.detail??"")+(t.description?` ${t.description}`:"");if(u.length+h.length<=o){let d=Q(u);c.push({start:d,end:d+Q(h),hlGroup:"CocPumDetail"}),u=u+h,e.detailRendered=!0}}return u.length>o&&(u=u.slice(0,o-1)+"."),{text:u,highlights:c}}adjustAbbrWidth(e){let{formatItems:t}=this.config,i=this.env.pumwidth||15,r=0;for(let o of t)o=="abbr"?r+=e.abbrWidth+1:o=="menu"&&e.menuWidth?r+=e.menuWidth+1:o=="kind"&&e.kindWidth?r+=e.kindWidth+1:o=="shortcut"&&e.shortcutWidth&&(r+=e.shortcutWidth+1);r<i&&(e.abbrWidth=e.abbrWidth+i-r)}buildItem(e,t,i,r,o,s){let{labelMaxLength:a,formatItems:l,kindMap:u,defaultKindText:c}=this.config,h=s.border?"":" ",d=Q(h),g=h.length,p=(f,m)=>{let b=this.fillWidth(f,m);g+=m,d+=Q(b),h+=b};for(let f of l)switch(f){case"abbr":{if(e.length>0){let w=fie(d,t);w!=-1&&(t.filterText===e?r.push({hlGroup:"CocPumSearch",lnum:o,colStart:w,colEnd:w+Q(t.filterText)}):t.positions&&t.positions.length>0&&yke(r,t.abbr,t.positions,w,o,a))}let m=i.text,b=d;p(m,s.abbrWidth+1),i.highlights.forEach(w=>{r.push({hlGroup:w.hlGroup,lnum:o,colStart:b+w.start,colEnd:b+w.end})}),t.deprecated&&r.push({hlGroup:"CocPumDeprecated",lnum:o,colStart:b,colEnd:d-1});break}case"menu":{if(s.menuWidth>0){let m=d;p(t.menu??"",s.menuWidth+1),t.menu&&r.push({hlGroup:"CocPumMenu",lnum:o,colStart:m,colEnd:m+Q(t.menu)})}break}case"kind":if(s.kindWidth>0){let{kind:m}=t,b=BF(m,u,c),w=d;if(p(b??"",s.kindWidth+1),b){let x=typeof m=="number"?mke[m]??"CocSymbolDefault":"CocSymbolDefault";r.push({hlGroup:x,lnum:o,colStart:w,colEnd:w+Q(b)})}}break;case"shortcut":if(s.shortcutWidth>0){let m=d,b=St.getShortcut(t.source);p(b?`[${b}]`:"",s.shortcutWidth+1),b&&r.push({hlGroup:"CocPumShortcut",lnum:o,colStart:m,colEnd:m+Q(b)+2})}break}return[g,h]}fillWidth(e,t){let i=t-this.stringWidth(e);return i<=0?e:e+" ".repeat(i)}};function bke(n,e,t){return t.length===0?n:e.length+t.length<=n.length&&n.endsWith(t)?n.slice(0,n.length-t.length):n}function yke(n,e,t,i,r,o){for(let s of C_(e,t,o))n.push({hlGroup:"CocPumSearch",lnum:r,colStart:i+s[0],colEnd:i+s[1]})}var WF=q()("completion"),YF=class{constructor(){this._activated=!1;this.disposables=[];this.complete=null;this.activeItems=[]}init(){this.nvim=v.nvim,this.loadConfiguration(),v.onDidChangeConfiguration(this.loadConfiguration,this,this.disposables),D.onDidChangeActiveTextEditor(e=>{this.loadLocallConfig(e.document)},null,this.disposables),this.mru=new Rb,this.pum=new _b(this.nvim,this.staticConfig,v.env,this.mru),this.floating=new Eb(v.nvim,this.staticConfig),v.nvim.call("coc#ui#check_pum_keymappings",[this.config.autoTrigger],!0),P.on("CursorMovedI",this.onCursorMovedI,this,this.disposables),P.on("InsertLeave",()=>{this.stop(!0)},null,this.disposables),P.on("CompleteStop",e=>{this.stop(!1,e)},null,this.disposables),P.on("InsertEnter",this.onInsertEnter,this,this.disposables),P.on("TextChangedI",this.onTextChangedI,this,this.disposables),P.on("TextChangedP",this.onTextChangedP,this,this.disposables),P.on("MenuPopupChanged",async e=>{var i;if(!this.option)return;this.popupEvent=e,this.floating.cancel();let t=this.selectedItem;!t||!e.move&&((i=this.complete)==null?void 0:i.isCompleting)||await this.floating.resolveItem(t,this.option)},null,this.disposables)}onCursorMovedI(e,t,i){var a;if(clearTimeout(this.triggerTimer),i||!this.option||e!==this.option.bufnr)return;let{linenr:r,colnr:o,col:s}=this.option;if(r===t[0]){if(t[1]==o&&t[1]===Q(this.pretext??"")+1)return;let l=this.document.getline(t[0]-1);if(l.match(/^\s*/)[0]!==this.option.line.match(/^\s*/)[0])return;let u=Gi(l,t[1]-1),c=Gi(l,s);if(c<u){let h=l.substring(c,u);if(this.selectedItem&&h===this.selectedItem.word||!this.inserted&&h==((a=this.complete)==null?void 0:a.input))return}}this.stop(!0)}get option(){return this.complete?this.complete.option:null}get isActivated(){return this._activated}get inserted(){return this.popupEvent!=null&&this.popupEvent.inserted}get document(){return this.option?v.getDocument(this.option.bufnr):null}get selectedItem(){if(!!this.popupEvent)return this.activeItems[this.popupEvent.index]}loadLocallConfig(e){let t=v.getConfiguration("suggest",e);this.config={autoTrigger:t.get("autoTrigger","always"),languageSourcePriority:t.get("languageSourcePriority",99),snippetsSupport:t.get("snippetsSupport",!0),defaultSortMethod:t.get("defaultSortMethod","length"),removeDuplicateItems:t.get("removeDuplicateItems",!1),acceptSuggestionOnCommitCharacter:t.get("acceptSuggestionOnCommitCharacter",!1),triggerCompletionWait:t.get("triggerCompletionWait",0),triggerAfterInsertEnter:t.get("triggerAfterInsertEnter",!1),maxItemCount:t.get("maxCompleteItemCount",256),timeout:t.get("timeout",500),minTriggerInputLength:t.get("minTriggerInputLength",1),localityBonus:t.get("localityBonus",!0),highPrioritySourceLimit:t.get("highPrioritySourceLimit",null),lowPrioritySourceLimit:t.get("lowPrioritySourceLimit",null),ignoreRegexps:t.get("ignoreRegexps",[]),asciiMatch:t.get("asciiMatch",!0),asciiCharactersOnly:t.get("asciiCharactersOnly",!1)}}loadConfiguration(e){if(e&&!e.affectsConfiguration("suggest"))return;e&&this.pum.reset();let t=v.getConfiguration("suggest",null),i=t.get("completionItemKindLabels",{});this.staticConfig=Object.assign(this.staticConfig??{},{kindMap:uie(i),defaultKindText:i.default??"",detailField:t.detailField,detailMaxLength:t.detailMaxLength??100,invalidInsertCharacters:t.invalidInsertCharacters??[],formatItems:t.formatItems,floatConfig:t.floatConfig??{},pumFloatConfig:t.pumFloatConfig,labelMaxLength:t.labelMaxLength,reversePumAboveCursor:!!t.reversePumAboveCursor,snippetIndicator:t.snippetIndicator??"~",noselect:!!t.noselect,fixInsertedWord:!!t.fixInsertedWord,enablePreselect:!!t.enablePreselect,virtualText:!!t.virtualText,selection:t.selection});let r=v.getDocument(v.bufnr);this.loadLocallConfig(r)}async startCompletion(e,t){let i=v.getAttachedDocument(e.bufnr);if(e.filetype=i.filetype,WF.debug("trigger completion with",e),this.stop(!0),this.pretext=tt(e.line,0,e.colnr-1),t=t??gie(e),Je(t))return;let r=this.complete=new Pb(e,i,this.config,t,this.nvim);this._activated=!0,P.completing=!0,r.onDidRefresh(async()=>{if(clearTimeout(this.triggerTimer),r.isEmpty){this.stop(!1);return}this.inserted||await this.filterResults()}),await r.doComplete()&&this.stop(!1)}async onTextChangedP(e,t){var i;e===((i=this.option)==null?void 0:i.bufnr)&&(!t.insertChar&&this.complete&&this.complete.cancel(),this.pretext=t.pre)}async onTextChangedI(e,t){let i=v.getDocument(e);if(!i||!i.attached)return;let{option:r}=this;if(r!=null){if(!t.insertChar){let s=tt(r.line,0,r.col);if(this.selectedItem){if(s+this.popupEvent.word==t.pre){this.pretext=t.pre;return}}else if(s+this.pum.search==t.pre)return}if(t.pre.match(/^\s*/)[0]!==r.line.match(/^\s*/)[0]){await this.triggerCompletion(i,t);return}hie(e,this.pretext,t,r)&&this.stop(!0)}if(t.pre===this.pretext)return;clearTimeout(this.triggerTimer);let o=this.pretext=t.pre;if(!t.insertChar){this.complete&&await this.filterResults();return}if(this.config.acceptSuggestionOnCommitCharacter&&this.selectedItem){let s=o.slice(-1),a=this.selectedItem;if(St.shouldCommit(a,s)){WF.debug("commit by commit character.");let{linenr:l,col:u,line:c,colnr:h}=this.option;this.stop(!0);let{word:d}=a,g=`${c.slice(0,u)}${d}${t.insertChar}${c.slice(h-1)}`;await this.nvim.call("coc#util#setline",[l,g]);let p=u+d.length+2;await this.nvim.call("cursor",[l,p]),await i.patchChange();return}}if(!i.chars.isKeywordChar(t.insertChar)){let s=this.getTriggerSources(i,o);if(s.length>0){await this.triggerCompletion(i,t,s);return}}if(!this.complete){await this.triggerCompletion(i,t);return}if(this.complete.isEmpty){this.triggerTimer=setTimeout(async()=>{await this.triggerCompletion(i,t)},200);return}await this.filterResults(t)}getTriggerSources(e,t){let i=e.getVar("disabled_sources",[]);return St.getTriggerSources(t,e.filetype,e.uri,i)}async triggerCompletion(e,t,i){let{minTriggerInputLength:r,asciiCharactersOnly:o,autoTrigger:s}=this.config;if(s==="none")return!1;let{pre:a}=t;if(!i&&!this.shouldTrigger(e,a))return!1;let l=die(e,a,o),u=e.getStartWord(t.line.slice(t.pre.length)),c={input:l,position:ND.Position.create(t.lnum-1,t.pre.length),line:t.line,followWord:u,filetype:e.filetype,linenr:t.lnum,col:t.col-1-Q(l),colnr:t.col,bufnr:e.bufnr,word:l+u,changedtick:t.changedtick,synname:"",filepath:e.schema==="file"?j.parse(e.uri).fsPath:"",triggerCharacter:a.length?a.slice(-1):void 0};return i==null&&l.length<r?(WF.trace(`Suggest not triggered with input "${l}", minimal trigger input length: ${r}`),!1):lie(this.config.ignoreRegexps,c.input)?!1:(await this.startCompletion(c,i),!0)}stop(e,t=""){var l;if(!this._activated)return;let i=t==="confirm"||((l=this.popupEvent)==null?void 0:l.inserted)&&t!="cancel";this._activated=!1;let r=this.document,o=this.complete.input,s=this.complete.option,a=this.selectedItem;P.completing=!1,this.cancel(),P.fire("CompleteDone",[cie(a)]),a&&i&&this.mru.add(o,a),e&&this.nvim.call("coc#pum#_close",[],!0),r._forceSync(),t=="confirm"&&a&&this.confirmCompletion(a,s)}async confirmCompletion(e,t){await this.floating.doCompleteResolve(e,t,ND.CancellationToken.None),await this.doCompleteDone(e,t)}async doCompleteDone(e,t){let i=St.getSource(e.source);i&&typeof i.onCompleteDone=="function"&&await Promise.resolve(i.onCompleteDone(e,t,this.config.snippetsSupport))}async onInsertEnter(e){if(!this.config.triggerAfterInsertEnter||this.config.autoTrigger!=="always")return;let t=await this.nvim.call("coc#util#change_info");t.pre=tt(t.line,0,t.col-1);let i=v.getDocument(e);i&&i.attached&&await this.triggerCompletion(i,t)}shouldTrigger(e,t){let{autoTrigger:i}=this.config;return i=="none"?!1:St.shouldTrigger(t,e.filetype,e.uri)?!0:i==="always"}async filterResults(e){let{complete:t,option:i,pretext:r}=this,o=aie(i,r);if(o==null){this.stop(!0);return}let s=await t.filterResults(o);if(s===void 0||!this.option)return;let a=v.getDocument(i.bufnr);if(e&&e.insertChar&&s.length==0){let l=this.getTriggerSources(a,r);if(l.length>0){await this.triggerCompletion(a,e,l);return}}if(s.length==0){let l=o.slice(-1);(!t.isCompleting||l.length===0||!a.chars.isKeywordChar(l))&&this.stop(!0);return}this.activeItems=s,this.pum.show(s,o,this.option)}cancel(){this.complete!=null&&(this.complete.dispose(),this.complete=null),this.triggerTimer!=null&&(clearTimeout(this.triggerTimer),this.triggerTimer=null),this.pretext=void 0,this.activeItems=[],this.popupEvent=void 0}dispose(){U(this.disposables)}},Lb=new YF;jw();var Xu=S(W());xe();ie();var Pd=S(jp()),Bs=S(W());ph();re();xt();so();xe();ie();Kn();xt();so();var ZF=S(W());et();so();function JF(n,e){let t=[];for(let i=e.start.line;i<=e.end.line;i++){let r=n.getline(i)||"",o=i==e.start.line?e.start.character:0,s=i==e.end.line?e.end.character:r.length;o!=s&&t.push(ZF.Range.create(i,o,i,s))}return t}function mie(n,e){let{start:t,end:i}=ax(e),r=t.character<i.character?t.character:i.character,o=t.character<i.character?i.character:t.character,s=[];for(let a=t.line;a<=i.line;a++){let l=n.getline(a);s.push(ZF.Range.create(a,r,a,Math.min(l.length,o)))}return s}function $F(n){return Array.isArray(n.prepend)&&Array.isArray(n.append)}function Ib(n){return $F(n)?n.append[1].length+n.prepend[1].length-n.append[0]-n.prepend[0]:n.insert.length-n.remove}function HD(n,e,t){let i=n.text;if(ye(n.range,e)){let s=i.indexOf(t);if(s!==-1){let a=[s,""],l=[i.length-t.length-s,""];return{prepend:a,append:l}}if(s=t.indexOf(i),s!==-1){let a=[0,t.slice(0,s)],l=[0,t.slice(-(t.length-i.length-s))];return{prepend:a,append:l}}}if(ye(n.range.end,e.end)){let s=e.end.character-e.start.character;return{offset:s,remove:s,insert:t,fromEnd:!0}}let r=e.end.character-e.start.character;return{offset:e.start.character-n.range.start.character,remove:r,insert:t}}function Fb(n,e,t){let i=0;for(let r=0;r<e.length;r++){let o=e[r];if(!(o.position.line<n.position.line||o===t)){if(o.isBefore(n)){i++;continue}break}}return i}var yct=q()("cursors-range"),Uu=class{constructor(e,t,i){this.start=Mt.create(e,t),this._text=i,this.end=Ki(this.start,this._text)}get position(){return this.start}get line(){return this.start.line}get text(){return this._text}get range(){return Be.create(this.start,this.end)}get textEdit(){return{range:this.range,newText:this.text}}applyChange(e){$F(e)?this.applySurrondChange(e):this.applyTextChange(e)}applySurrondChange(e){let{prepend:t,append:i}=e,r=this._text.length,o=this._text.substring(t[0],r-i[0]);this._text=`${t[1]}${o}${i[1]}`}applyTextChange(e){let{text:t}=this,{offset:i,remove:r,fromEnd:o,insert:s}=e;o&&(i=-i);let a=t.slice(0,o&&i==0?t.length:i),l=t.slice(a.length);r&&(l=l.slice(r)),this._text=`${a}${s||""}${l}`}move(e){if(e!=0){let{line:t,character:i}=this.start;this.start=Mt.create(t,i+e)}this.end=Ki(this.start,this._text)}adjustFromEdit(e){let t=lx(this.start,e);if(t.line||t.character){let{line:i,character:r}=this.start;this.start=Mt.create(i+t.line,r+t.character),this.end=Ki(this.start,this._text)}return t.character}isBefore(e){let{position:t}=e,{line:i,character:r}=this.start;return t.line==i&&t.character>r}};var jb=q()("cursors-session"),Mb=class{constructor(e,t,i){this.nvim=e;this.doc=t;this.config=i;this._onDidCancel=new Bs.Emitter;this._onDidUpdate=new Bs.Emitter;this.onDidCancel=this._onDidCancel.event;this.onDidUpdate=this._onDidUpdate.event;this.disposables=[];this.ranges=[];this.activated=!0;this.changing=!1;t.buffer.setVar("coc_cursors_activated",1,!0);let{cancelKey:r,nextKey:o,previousKey:s}=this.config;this.disposables.push(v.registerLocalKeymap("n",r,()=>{this.cancel()})),this.disposables.push(v.registerLocalKeymap("n",o,async()=>{let a=this.ranges.map(c=>c.range),l=await D.getCursorPosition();for(let c of a)if(Me(c.start,l)>0){await D.moveTo(c.start);return}let u=this.config.wrapscan;a.length&&u&&await D.moveTo(a[0].start)})),this.disposables.push(v.registerLocalKeymap("n",s,async()=>{let a=this.ranges.map(c=>c.range),l=await D.getCursorPosition();for(let c=a.length-1;c>=0;c--){let h=a[c];if(Me(h.end,l)<0){await D.moveTo(h.start);return}}let u=this.config.wrapscan;a.length&&u&&await D.moveTo(a[a.length-1].start)})),this.doc.onDocumentChange(async a=>{await this.onChange(a),this.activated&&!this.changing&&this._onDidUpdate.fire()},this,this.disposables)}addRange(e){let{ranges:t}=this,i=t.findIndex(r=>Gl(r.range,e));i!==-1?t.splice(i,1):(this.createRange(e),t.sort((r,o)=>Me(r.range.start,o.range.start))),this.ranges.length==0?this.cancel():this.doHighlights()}addRanges(e){this.doc._forceSync(),this.ranges=this.ranges.filter(t=>!e.some(i=>rh(i,t.range)));for(let t of e)this.createRange(t);return this.ranges.sort((t,i)=>Me(t.range.start,i.range.start)),this.doHighlights(),!0}createRange(e){let{textDocument:t}=this.doc,{line:i,character:r}=e.start,o=t.getText(e);this.ranges.push(new Uu(i,r,o))}async onChange(e){if(!this.activated||this.changing)return;if(e.contentChanges.length===0){this.doHighlights();return}let t=e.contentChanges[0],{text:i,range:r}=t,o=this.ranges.filter(s=>!(!Gl(r,s.range)||Fw(r,s.range)&&(i.includes(`
|
||
`)||!Lt(r))));if(Lt(r)&&o.length>0&&(o=o.slice(0,1)),o.length==0)jb.debug("no affected ranges"),this.ranges.forEach(s=>{s.adjustFromEdit({range:r,newText:i})}),this.doHighlights();else if(o.length==1&&Xt(r,o[0].range)){if(jb.debug("affected single range"),i.includes(`
|
||
`)){this.cancel();return}await this.applySingleEdit(o[0],{range:r,newText:i})}else if(!i.length||!this.validChange(r,i)){jb.debug("filter affected ranges.");let s=this.ranges.filter(a=>!o.includes(a));s.length>0?(this.ranges=s,s.forEach(a=>{a.adjustFromEdit({range:r,newText:i})}),this.doHighlights()):this.cancel()}else{jb.debug("Check undo & redo");let s=this.ranges[0],a=this.ranges[this.ranges.length-1],l=e.originalLines.slice(s.line,a.line+1),u=this.doc.textDocument.lines.slice(s.line,a.line+1);this.applyComposedEdit(l,u)}}validChange(e,t){if(Ia(Bs.TextEdit.replace(e,t))!=0||!Xt(e,this.range))return!1;let i=this.ranges[0],r=this.ranges[this.ranges.length-1];return!(e.start.line!=i.position.line||e.end.line!=r.position.line)}get range(){let e=this.ranges[0],t=this.ranges[this.ranges.length-1];return Bs.Range.create(e.position,t.range.end)}doHighlights(){let{nvim:e,ranges:t,doc:i}=this,r=i.buffer,o=[];t.forEach(s=>{i.addHighlights(o,"CocCursorRange",s.range,{combine:!1,start_incl:!0,end_incl:!0})}),o.sort((s,a)=>s.lnum!=a.lnum?s.lnum-a.lnum:s.colStart!=a.colStart?s.colStart-a.colStart:0),r.updateHighlights("cursors",o,{priority:4096}),e.redrawVim()}get currentRanges(){return this.ranges.map(e=>e.range)}cancel(){if(!this.activated)return;jb.debug("cursors cancel");let e=this.doc.buffer;this.activated=!1,this.ranges=[],e.clearNamespace("cursors"),e.setVar("coc_cursors_activated",0,!0),this._onDidUpdate.fire(),this._onDidCancel.fire()}dispose(){!this.doc||(this._onDidCancel.dispose(),this._onDidUpdate.dispose(),U(this.disposables),this.ranges=[],this.doc=null)}async applySingleEdit(e,t){let{doc:i,ranges:r}=this;r.filter(u=>u!==e&&u.position.line==e.position.line).forEach(u=>u.adjustFromEdit(t));let s=HD(e,t.range,t.newText),a=Ib(s);r.forEach(u=>u.applyChange(s));let l=r.filter(u=>u!==e).map(u=>u.textEdit);if(this.changing=!0,await i.applyEdits(l,!0,!0),this.changing=!1,a!=0)for(let u of r){let c=Fb(u,this.ranges,e);u.move(c*a)}this.doHighlights()}applyComposedEdit(e,t){let i=(0,Pd.default)(e[0],t[0]),r=this.ranges[0],o=r.position.character,s=r.position.line,a=r.text.length,l=i[0];if(o>0&&(l[0]!=Pd.default.EQUAL||!l[1].startsWith(e[0].slice(0,o))))return this.cancel(),!1;let u=0,c=!1,h=[];for(let b=0;b<i.length;b++){let[w,x]=i[b];if(b==0&&o>0&&(x=x.slice(o)),w==Pd.default.EQUAL){if(u+=x.length,u>a)break}else if(w==Pd.default.DELETE){let T=u;if(u+=x.length,u>a){c=!0;break}h.push({offset:T,remove:x})}else{let T=i[b-1];T&&T[0]==Pd.default.DELETE?h[h.length-1].add=x:h.push({offset:u,add:x})}}if(c||!h.length)return this.cancel(),!1;let d=Vn.create("file:///1","",0,e.join(`
|
||
`)),g;if(h.length==1)g={offset:h[0].offset,remove:h[0].remove?h[0].remove.length:0,insert:h[0].add??""};else if(vke(h,a))g={prepend:[h[0].remove?h[0].remove.length:0,h[0].add??""],append:[h[1].remove?h[1].remove.length:0,h[1].add??""]};else{let b=r.text,w="",x="",T=h[0].offset;for(let R of h){if(R.offset>T+w.length){let F=b.slice(T+w.length,R.offset);w+=F,x+=F}R.add&&(x+=R.add),R.remove&&(w+=R.remove)}g={offset:T,remove:w.length,insert:x}}let p=this.ranges.map(b=>{let w=b.position.line-s,{start:x,end:T}=b.range,R=Bs.Range.create(w,x.character,w,T.character);return b.applyChange(g),Bs.TextEdit.replace(R,b.text)});if(Vn.applyEdits(d,p)!==t.join(`
|
||
`))return this.cancel(),!1;let m=Ib(g);if(m!=0)for(let b of this.ranges){let w=Fb(b,this.ranges);b.move(w*m)}return this.doHighlights(),!0}};function vke(n,e){return!(n.length!=2||n[0].offset!=0||n[1].offset+(n[1].remove?n[1].remove.length:0)!==e)}var Hct=q()("cursors"),Ob=class{constructor(e){this.nvim=e;this.sessionsMap=new Map;this.disposables=[];this.loadConfiguration(),v.onDidChangeConfiguration(this.loadConfiguration,this,this.disposables),v.onDidCloseTextDocument(t=>{let i=this.getSession(t.bufnr);!i||(this.sessionsMap.delete(t.bufnr),i.cancel())},null,this.disposables)}loadConfiguration(e){if(!e||e.affectsConfiguration("cursors")){let t=v.getConfiguration("cursors",null);this.config=Object.assign(this.config??{},{nextKey:t.get("nextKey","<C-n>"),previousKey:t.get("previousKey","<C-p>"),cancelKey:t.get("cancelKey","<esc>"),wrapscan:t.get("wrapscan",!0)})}}cancel(e){let t=v.getDocument(e);if(!t)return;let i=this.getSession(t.bufnr);i&&i.cancel()}getSession(e){return this.sessionsMap.get(e)}async isActivated(){let e=await this.nvim.call("bufnr",["%"]);return this.sessionsMap.get(e)!=null}async select(e,t,i){let r=v.getAttachedDocument(e),{nvim:o}=this,s=this.createSession(r),a;if(t=="operator"){let l=await o.eval(`[getpos("'["),getpos("']")]`);if(i=="char"){let u=r.getPosition(l[0][1],l[0][2]),c=r.getPosition(l[1][1],l[1][2]+1),h=JF(r,Xu.Range.create(u,c));s.addRanges(h)}else{let u=[];for(let c=l[0][1]-1;c<=l[1][1]-1;c++){let h=r.getline(c);u.push(Xu.Range.create(c,0,c,h.length))}s.addRanges(u)}}else if(t=="word"){let l=await D.getCursorPosition();if(a=r.getWordRangeAtPosition(l),!a){let u=r.getline(l.line);l.character==u.length?a=Xu.Range.create(l.line,Math.max(0,u.length-1),l.line,u.length):a=Xu.Range.create(l.line,l.character,l.line,l.character+1)}s.addRange(a),await o.command(`silent! call repeat#set("\\<Plug>(coc-cursors-${t})", -1)`)}else if(t=="position"){let l=await D.getCursorPosition(),u=r.getline(l.line);l.character>=u.length?a=Xu.Range.create(l.line,u.length-1,l.line,u.length):a=Xu.Range.create(l.line,l.character,l.line,l.character+1),s.addRange(a),await o.command(`silent! call repeat#set("\\<Plug>(coc-cursors-${t})", -1)`)}else if(t=="range"){await o.call("eval",'feedkeys("\\<esc>", "in")');let l=await D.getSelectedRange(i);if(!l)return;let u=i==""?mie(r,l):JF(r,l);for(let c of u)s.addRange(c)}else throw new Error(`select kind "${t}" not supported`)}createSession(e){let{bufnr:t}=e,i=this.getSession(t);return i||(i=new Mb(this.nvim,e,this.config),this.sessionsMap.set(t,i),i.onDidCancel(()=>{i.dispose(),this.sessionsMap.delete(t)}),i)}async addRanges(e){let{nvim:t}=this,i=await t.call("bufnr",["%"]),r=v.getAttachedDocument(i);return this.createSession(r).addRanges(e)}reset(){for(let e of this.sessionsMap.values())e.cancel();this.sessionsMap.clear()}};Bu();fe();Wo();var JD=S(W());fe();de();re();xe();ie();var Ed=S(W());Jt();Bu();de();xe();ie();var Uct=q()("handler-codeActions"),Ab=class{constructor(e,t){this.nvim=e;this.handler=t;t.addDisposable(ue.registerCommand("editor.action.organizeImport",async i=>{await this.organizeImport(i)})),ue.titles.set("editor.action.organizeImport","run organize import code action.")}async codeActionRange(e,t,i){let{doc:r}=await this.handler.getCurrentState();await r.synchronize();let o=r.getline(t-1),s=Ed.Range.create(e-1,0,t-1,o.length),a=await this.getCodeActions(r,s,i?[i]:null);if(a=a.filter(c=>!c.disabled),!a||a.length==0){D.showWarningMessage(`No${i?" "+i:""} code action available`);return}let l=await D.showMenuPicker(a.map(c=>c.title),"Choose action"),u=a[l];u&&await this.applyCodeAction(u)}async organizeImport(e){let{doc:t}=await this.handler.getCurrentState();if(e&&t.bufnr!=e)return;await t.synchronize();let i=await this.getCodeActions(t,void 0,[Ed.CodeActionKind.SourceOrganizeImports]);if(i&&i.length){await this.applyCodeAction(i[0]);return}throw new Error("Organize import action not found.")}async getCodeActions(e,t,i){t=t||Ed.Range.create(0,0,e.lineCount,0);let o={diagnostics:Wt.getDiagnosticsInRange(e.textDocument,t)};i&&Array.isArray(i)&&(o.only=i);let s=await this.handler.withRequestToken("code action",a=>_.getCodeActions(e.textDocument,t,o,a));return!s||s.length==0?[]:(s.sort((a,l)=>a.isPreferred&&!l.isPreferred?-1:l.isPreferred&&!a.isPreferred||a.disabled&&!l.disabled?1:l.disabled&&!a.disabled?-1:0),s)}get floatActions(){return v.floatSupported?v.getConfiguration("coc.preferences").get("floatActions",!0):!1}async doCodeAction(e,t){let{doc:i}=await this.handler.getCurrentState(),r;e&&(r=await D.getSelectedRange(e)),await i.synchronize();let o=await this.getCodeActions(i,r,Array.isArray(t)?t:null);if(typeof t=="string"?o=o.filter(l=>l.title==t||l.command&&l.command.title==t):Array.isArray(t)&&(o=o.filter(l=>t.some(u=>l.kind&&l.kind.startsWith(u)))),!o||o.length==0){D.showWarningMessage(`No${t?" "+t:""} code action available`);return}if(t&&o.length==1&&!o[0].disabled){await this.applyCodeAction(o[0]);return}this.floatActions||(o=o.filter(l=>!l.disabled));let s=this.floatActions?await D.showMenuPicker(o.map(l=>({text:l.title,disabled:l.disabled})),"Choose action"):await D.showQuickpick(o.map(l=>l.title)),a=o[s];a&&await this.applyCodeAction(a)}async getCurrentCodeActions(e,t){let{doc:i}=await this.handler.getCurrentState(),r;return e&&(r=await D.getSelectedRange(e)),(await this.getCodeActions(i,r,t)).filter(s=>!s.disabled)}async doQuickfix(){let e=await this.getCurrentCodeActions("currline",[Ed.CodeActionKind.QuickFix]);if(!e||e.length==0){D.showWarningMessage("No quickfix action available");return}await this.applyCodeAction(e[0]),this.nvim.command('silent! call repeat#set("\\<Plug>(coc-fix-current)", -1)',!0)}async applyCodeAction(e){if(e.disabled)throw new Error(`Action "${e.title}" is disabled: ${e.disabled.reason}`);if(!e.providerId)throw new Error("providerId not found with codeAction");let t=await this.handler.withRequestToken("resolve codeAction",o=>_.resolveCodeAction(e,o)),{edit:i,command:r}=t;i&&await v.applyEdit(i),r&&await ue.execute(r)}};fe();re();ie();var UF=S(Pn()),XF=S(W());Jt();de();xe();ie();var tht=q()("codelens-buffer"),sl,Nb=class{constructor(e,t){this.nvim=e;this.document=t;this.loadConfiguration(),this.resolveCodeLens=(0,UF.default)(()=>{this._resolveCodeLenses()},200),this.debounceFetch=(0,UF.default)(()=>{this.fetchCodeLenses()},100),this.debounceFetch()}loadConfiguration(){let e=v.getConfiguration("codeLens",this.document),t=this.nvim.hasFunction("nvim_buf_set_virtual_text")&&e.get("enable",!1);this.config={enabled:t,position:e.get("position","top"),separator:e.get("separator","\u2023"),subseparator:e.get("subseparator"," ")}}get bufnr(){return this.document.bufnr}onChange(e){e.contentChanges.length===0&&this.codeLenses!=null?this._resolveCodeLenses():(this.cancel(),this.debounceFetch())}get currentCodeLens(){var e;return(e=this.codeLenses)==null?void 0:e.codeLenses}get enabled(){var e;return(e=this.document)!=null&&e.attached?this.config.enabled&&_.hasProvider("codeLens",this.document.textDocument):!1}async forceFetch(){!this.enabled||(await this.document.synchronize(),this.cancel(),await this.fetchCodeLenses())}async fetchCodeLenses(){var t;if(!this.enabled)return;if(!(((t=this.codeLenses)==null?void 0:t.version)==this.document.version)){let{textDocument:i}=this.document,r=i.version,s=(this.tokenSource=new XF.CancellationTokenSource).token;if(s.isCancellationRequested)return;let a=await _.getCodeLens(i,s);if(a=Array.isArray(a)?a.filter(l=>l!=null):[],this.tokenSource=void 0,s.isCancellationRequested||a.length==0)return;this.codeLenses={version:r,codeLenses:a}}await this._resolveCodeLenses()}async _resolveCodeLenses(){if(!this.enabled||!this.codeLenses||this.isChanged)return;let{codeLenses:e}=this.codeLenses,[t,i,r,o]=await this.nvim.eval("[bufnr('%'),line('w0'),line('w$'),line('$')]");if(sl||(sl=await this.nvim.createNamespace("coc-codelens")),!(this.isChanged||t!=this.bufnr)){if(this.resolveTokenSource&&this.resolveTokenSource.cancel(),e=e.filter(s=>{let a=s.range.start.line+1;return a>=i&&a<=r}),e.length){let a=(this.resolveTokenSource=new XF.CancellationTokenSource).token;if(await Promise.all(e.map(l=>_.resolveCodeLens(l,a))),this.resolveTokenSource=void 0,a.isCancellationRequested||this.isChanged)return}r==o&&(r=-1),this.nvim.pauseNotification(),this.clear(i-1,r),this.setVirtualText(e),this.nvim.resumeNotification(!1,!0)}}get isChanged(){if(!this.codeLenses||this.document.dirty)return!0;let{version:e}=this.codeLenses;return this.document.textDocument.version!==e}setVirtualText(e){let{document:t}=this;if(!sl||!t||!e.length)return;let i=new Map,{position:r}=this.config;for(let o of e){let{range:s,command:a}=o;if(!a)continue;let{line:l}=s.start;i.has(l)?i.get(l).push(o):i.set(l,[o])}for(let o of i.keys()){let a=i.get(o).map(c=>c.command);a=a.filter(c=>c&&c.title);let l=[],u=a.length;for(let c=0;c<u;c++){let h=a[c];l.push([h.title.replace(/(\r\n|\r|\n|\s)+/g," "),"CocCodeLens"]),c!=u-1&&l.push([this.config.subseparator,"CocCodeLens"])}if(this.config.separator&&l.unshift([`${this.config.separator} `,"CocCodeLens"]),v.has("nvim-0.6.0")){let c=this.document.buffer,h=t.getline(o);if(r=="top"){let d=h.match(/^\s*/)[0];d.length>0&&l.unshift([d,"Normal"]),c.setExtMark(sl,o,0,{virt_lines:[l],virt_lines_above:!0})}else c.setExtMark(sl,o,0,{hl_mode:"combine",virt_text:l,virt_text_pos:r})}else this.nvim.call("nvim_buf_set_virtual_text",[this.bufnr,sl,o,l,{}],!0)}}clear(e=0,t=-1){if(!sl)return;this.nvim.createBuffer(this.bufnr).clearNamespace(sl,e,t)}async doAction(e){var i;let t=wke(e,(i=this.codeLenses)==null?void 0:i.codeLenses);if(t.length==1)await ue.execute(t[0]);else if(t.length>1){let r=await D.showMenuPicker(t.map(o=>o.title));r!=-1&&await ue.execute(t[r])}}cancel(){this.resolveCodeLens.clear(),this.debounceFetch.clear(),this.resolveTokenSource&&(this.resolveTokenSource.cancel(),this.resolveTokenSource.dispose(),this.resolveTokenSource=null),this.tokenSource&&(this.tokenSource.cancel(),this.tokenSource.dispose(),this.tokenSource=null)}dispose(){this.cancel(),this.codeLenses=void 0}};function wke(n,e){if(!(e!=null&&e.length))return[];let t=[];for(let i of e){let{range:r,command:o}=i;!o||n==r.start.line&&t.push(o)}return t}var aht=q()("codelens"),Hb=class{constructor(e){this.nvim=e;this.disposables=[];v.onDidChangeConfiguration(t=>{for(let i of this.buffers.items)t.affectsConfiguration("codeLens",i.document)&&i.loadConfiguration()},this,this.disposables),this.buffers=v.registerBufferSync(t=>{if(t.buftype=="")return new Nb(e,t)}),this.disposables.push(this.buffers),this.listen()}listen(){P.on("CursorMoved",e=>{let t=this.buffers.getItem(e);t&&t.resolveCodeLens()},null,this.disposables),P.on("CursorHold",async e=>{let t=this.buffers.getItem(e);t&&await t.forceFetch()},this,this.disposables)}async checkProvider(){for(let e of this.buffers.items)await e.forceFetch()}async doAction(){let[e,t]=await this.nvim.eval('[bufnr("%"),line(".")-1]'),i=this.buffers.getItem(e);await(i==null?void 0:i.doAction(t))}dispose(){U(this.disposables)}};var xie=S(W());Jt();Wo();de();re();function GF(n){return n.length==1?`0${n}`:n}function qb(n){let e=xke(n);return`${GF(e.red.toString(16))}${GF(e.green.toString(16))}${GF(e.blue.toString(16))}`}function xke(n){let{red:e,green:t,blue:i}=n;return{red:Math.round(e*255),green:Math.round(t*255),blue:Math.round(i*255)}}function bie(n){let e=[n.red,n.green,n.blue],t=[];for(let r=0;r<e.length;r++){let o=e[r];t[r]=o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4)}return .2126*t[0]+.7152*t[1]+.0722*t[2]<=.5}xe();ie();var vie=S(Pn()),wie=S(W());de();xt();xe();ie();var vht=q()("colors-buffer"),yie="color",Bb=class{constructor(e,t,i,r){this.nvim=e;this.bufnr=t;this.config=i;this.usedColors=r;this._colors=[];this.highlight=(0,vie.default)(()=>{this.doHighlight().logError()},300),this.highlight()}get enabled(){let{filetypes:e}=this.config,t=v.getDocument(this.bufnr);return t?e.includes("*")?!0:_.hasProvider("documentColor",t.textDocument)?e.includes(t.filetype):!1:!1}onChange(){this.cancel(),this.highlight()}get buffer(){return this.nvim.createBuffer(this.bufnr)}get colors(){return this._colors}hasColor(){return this._colors.length>0}async doHighlight(){if(!this.enabled)return;let{nvim:e}=this,t=v.getDocument(this.bufnr);this.tokenSource=new wie.CancellationTokenSource;let{token:i}=this.tokenSource,r;if(r=await _.provideDocumentColors(t.textDocument,i),i.isCancellationRequested)return;r=r||[],r.sort((a,l)=>Me(a.range.start,l.range.start)),this._colors=r;let o=[];r.forEach(a=>{let l=Cke(a.color);t.addHighlights(o,l,a.range,{combine:!1})});let s=await D.diffHighlights(this.bufnr,yie,o);i.isCancellationRequested||!s||(e.pauseNotification(),this.defineColors(r),e.resumeNotification(!1,!0),await D.applyDiffHighlights(this.bufnr,yie,this.config.highlightPriority,s,!0))}defineColors(e){for(let t of e){let i=qb(t.color);this.usedColors.has(i)||(this.nvim.command(`hi BG${i} guibg=#${i} guifg=#${bie(t.color)?"ffffff":"000000"}`,!0),this.usedColors.add(i))}}hasColorAtPosition(e){return this.colors.some(t=>ft(e,t.range)==0)}clearHighlight(){this.highlight.clear(),this._colors=[],this.buffer.clearNamespace("color")}cancel(){this.tokenSource&&(this.tokenSource.cancel(),this.tokenSource.dispose(),this.tokenSource=null)}dispose(){this._colors=[],this.highlight.clear(),this.cancel()}};function Cke(n){return`BG${qb(n)}`}var Fht=q()("colors-index"),Wb=class{constructor(e,t){this.nvim=e;this.handler=t;this.disposables=[];this.getConfiguration(),v.onDidChangeConfiguration(this.getConfiguration,this,this.disposables),D.onDidChangeActiveTextEditor(()=>{this.getConfiguration()},null,this.disposables);let i=new Set;this.highlighters=v.registerBufferSync(r=>new Bb(this.nvim,r.bufnr,this.config,i)),je.onDidActiveExtension(()=>{this.highlightAll()},null,this.disposables),this.disposables.push(ue.registerCommand("editor.action.pickColor",()=>this.pickColor())),ue.titles.set("editor.action.pickColor","pick color from system color picker when possible."),this.disposables.push(ue.registerCommand("editor.action.colorPresentation",()=>this.pickPresentation())),ue.titles.set("editor.action.colorPresentation","change color presentation.")}getConfiguration(e){if(!e||e.affectsConfiguration("colors")){let t=v.getConfiguration("colors");this.config=Object.assign(this.config||{},{filetypes:t.get("filetypes",[]),highlightPriority:t.get("highlightPriority",1e3)})}}async pickPresentation(){let{doc:e}=await this.handler.getCurrentState();this.handler.checkProvier("documentColor",e.textDocument);let t=await this.getColorInformation(e.bufnr);if(!t)return void D.showWarningMessage("Color not found at current position");let i=new xie.CancellationTokenSource,r=await _.provideColorPresentations(t,e.textDocument,i.token);if(!(r!=null&&r.length))return;let o=await D.showMenuPicker(r.map(c=>c.label),"choose color:");if(o==-1)return;let s=r[o],{textEdit:a,additionalTextEdits:l,label:u}=s;a||(a={range:t.range,newText:u}),await e.applyEdits([a]),l&&await e.applyEdits(l)}async pickColor(){let{doc:e}=await this.handler.getCurrentState();this.handler.checkProvier("documentColor",e.textDocument);let t=await this.getColorInformation(e.bufnr);if(!t)return void D.showWarningMessage("Color not found at current position");let{color:i}=t,r=[(i.red*255).toFixed(0),(i.green*255).toFixed(0),(i.blue*255).toFixed(0)],o=await this.nvim.call("coc#color#pick_color",[r]);if(!o)return;let s=qb({red:o[0]/65535,green:o[1]/65535,blue:o[2]/65535,alpha:1});await e.applyEdits([{range:t.range,newText:`#${s}`}])}isEnabled(e){let t=this.highlighters.getItem(e);return t!=null&&t.enabled===!0}clearHighlight(e){let t=this.highlighters.getItem(e);t&&t.clearHighlight()}hasColor(e){let t=this.highlighters.getItem(e);return t?t.hasColor():!1}hasColorAtPosition(e,t){let i=this.highlighters.getItem(e);return i?i.hasColorAtPosition(t):!1}highlightAll(){for(let e of this.highlighters.items)e.highlight()}async doHighlight(e){let t=this.highlighters.getItem(e);t&&await t.doHighlight()}async getColorInformation(e){let t=this.highlighters.getItem(e);if(!t)return null;let i=await D.getCursorPosition();for(let r of t.colors){let{range:o}=r,{start:s,end:a}=o;if(i.line==s.line&&i.character>=s.character&&i.character<=a.character)return r}return null}dispose(){this.highlighters.dispose(),U(this.disposables)}};Jt();mD();var Aht=q()("handler-commands"),Yb=class{constructor(e,t){this.nvim=e;this.env=t;for(let i of t.vimCommands)this.addVimCommand(i)}addVimCommand(e){let t=`vim.${e.id}`;ue.registerCommand(t,()=>{this.nvim.command(e.cmd,!0),this.nvim.redrawVim()}),e.title&&ue.titles.set(t,e.title)}getCommandList(){return ue.commandList.map(e=>e.id)}async repeat(){await ue.repeatCommand()}async runCommand(e,...t){if(e)return await ue.fireCommand(e,...t);await Bi.start(["commands"])}getCommands(){let e=ue.commandList,t=[],{titles:i}=ue;for(let r of e)t.push({id:r.id,title:i.get(r.id)||""});return t}};de();var Zb=class{constructor(e,t){this.nvim=e;this.handler=t}async fold(e){let{doc:t,winid:i}=await this.handler.getCurrentState();this.handler.checkProvier("foldingRange",t.textDocument),await t.synchronize();let r=this.nvim.createWindow(i),o=await this.nvim.eval("&foldlevel"),s=await this.handler.withRequestToken("foldingrange",a=>_.provideFoldingRanges(t.textDocument,{},a),!0);if(!s||!s.length)return!1;e&&(s=s.filter(a=>a.kind==e)),s.sort((a,l)=>l.startLine-a.startLine),this.nvim.pauseNotification(),r.setOption("foldmethod","manual",!0),this.nvim.command("normal! zE",!0);for(let a of s){let{startLine:l,endLine:u}=a,c=`${l+1}, ${u+1}fold`;this.nvim.command(c,!0)}return r.setOption("foldenable",!0,!0),r.setOption("foldlevel",o,!0),await this.nvim.resumeNotification(!0),!0}};var Ws=S(W());Jt();fe();de();Yu();_e();xe();ie();var qD=q()("handler-format"),Cie=new Map([["<",">"],[">","<"],["{","}"],["[","]"],["(",")"]]),Jb=class{constructor(e,t){this.nvim=e;this.handler=t;this.getConfiguration(),t.addDisposable(v.onDidChangeConfiguration(this.getConfiguration,this)),t.addDisposable(D.onDidChangeActiveTextEditor(()=>{this.getConfiguration()})),t.addDisposable(v.onWillSaveTextDocument(i=>{let{languageId:r,uri:o}=i.document,s=v.getConfiguration("coc.preferences",o).get("formatOnSaveFiletypes",[]);if(s.includes(r)||s.includes("*")){let a=async()=>{if(!_.hasFormatProvider(i.document)){qD.warn(`Format provider not found for ${i.document.uri}`);return}let l=await v.getFormatOptions(i.document.uri),u=new Ws.CancellationTokenSource,c,h=new Promise(p=>{c=setTimeout(()=>{qD.warn(`Format on save ${i.document.uri} timeout after 0.5s`),u.cancel(),p(void 0)},500)}),d=_.provideDocumentFormattingEdits(i.document,l,u.token),g=await Promise.race([h,d]);return clearTimeout(c),Array.isArray(g)?g:void 0};i.waitUntil(a())}})),t.addDisposable(P.on("Enter",async i=>{let r=await P.race(["CursorMovedI"],100);r.args&&r.args[0]===i&&(qD.debug("handleEnter"),await this.handleEnter(i))})),t.addDisposable(P.on("TextInsert",async(i,r,o)=>{P.pumvisible||await this.tryFormatOnType(o,i)})),t.addDisposable(ue.registerCommand("editor.action.formatDocument",async i=>{let r=i?v.getDocument(i):(await this.handler.getCurrentState()).doc;await this.documentFormat(r)})),ue.titles.set("editor.action.formatDocument","Format Document")}getConfiguration(e){var t;if(!e||e.affectsConfiguration("coc.preferences")){let i=(t=D.activeTextEditor)==null?void 0:t.document,r=v.getConfiguration("coc.preferences",i);this.preferences={formatOnType:r.get("formatOnType",!1),formatOnTypeFiletypes:r.get("formatOnTypeFiletypes",[]),bracketEnterImprove:r.get("bracketEnterImprove",!0)}}}async tryFormatOnType(e,t,i=!1){if(!e||SB(e)||!this.preferences.formatOnType||ai.getSession(t)!=null)return;let r=v.getDocument(t);if(!r||!r.attached)return;let o=this.preferences.formatOnTypeFiletypes;if(o.length>0&&!o.includes(r.filetype)&&!o.includes("*"))return;if(!_.hasProvider("formatOnType",r.textDocument)){qD.warn(`Format on type provider not found for buffer: ${r.uri}`);return}if(!_.canFormatOnType(e,r.textDocument))return;let s,a=await this.handler.withRequestToken("Format on type",async l=>{s=await D.getCursorPosition();let u=r.getline(s.line-1);if(!(i&&/^\s*$/.test(u)))return await r.synchronize(),await _.provideDocumentOnTypeEdits(e,r.textDocument,s,l)});!a||!a.length||await r.applyEdits(a,!1,!0)}async formatCurrentBuffer(){let{doc:e}=await this.handler.getCurrentState();return await this.documentFormat(e)}async formatCurrentRange(e){let{doc:t}=await this.handler.getCurrentState();return await this.documentRangeFormat(t,e)}async documentFormat(e){if(await e.synchronize(),!_.hasFormatProvider(e.textDocument))throw new Error(`Format provider not found for buffer: ${e.bufnr}`);let t=await v.getFormatOptions(e.uri),i=await this.handler.withRequestToken("format",r=>_.provideDocumentFormattingEdits(e.textDocument,t,r));return i&&i.length>0?(await e.applyEdits(i,!1,!0),!0):!1}async handleEnter(e){let{nvim:t}=this,{bracketEnterImprove:i}=this.preferences;if(await this.tryFormatOnType(`
|
||
`,e),i){let r=await t.call("line",".")-1,o=v.getDocument(e);if(!o)return;await o.patchChange();let s=o.getline(r-1),a=o.getline(r),l=s[s.length-1];if(l&&Cie.has(l)){let u=a.trim()[0];if(u&&Cie.get(l)==u){let c=[],h=await v.getFormatOptions(o.uri),d=h.insertSpaces?" ".repeat(h.tabSize):" ",g=a.match(/^\s*/)[0],p=Ws.Position.create(r-1,s.length);if(o.filetype=="vim"){let f=`
|
||
`+g+d;c.push({range:Ws.Range.create(r,g.length,r,g.length),newText:" \\ "}),f=f+"\\ ",c.push({range:Ws.Range.create(p,p),newText:f}),await o.applyEdits(c),await D.moveTo(Ws.Position.create(r,f.length-1))}else await t.eval(`feedkeys("\\<Esc>O", 'in')`)}}}}async documentRangeFormat(e,t){this.handler.checkProvier("formatRange",e.textDocument),await e.synchronize();let i;if(t){if(i=await D.getSelectedRange(t),!i)return-1}else{let[s,a,l]=await this.nvim.eval("[v:lnum,v:count,mode()]");if(a==0||l=="i"||l=="R")return-1;i=Ws.Range.create(s-1,0,s-1+a,0)}let r=await v.getFormatOptions(e.uri),o=await this.handler.withRequestToken("Format range",s=>_.provideDocumentRangeFormattingEdits(e.textDocument,i,r,s));return o&&o.length>0?(await e.applyEdits(o,!1,!0),0):-1}};var Gu=S(W());fe();de();re();xe();ie();var rdt=q()("documentHighlight"),$b=class{constructor(e,t){this.nvim=e;this.handler=t;this.disposables=[];this.highlights=new Map;P.on(["CursorMoved","CursorMovedI"],()=>{this.cancel(),this.clearHighlights()},null,this.disposables),this.loadConfiguration(),v.onDidChangeConfiguration(this.loadConfiguration,this,this.disposables),D.onDidChangeActiveTextEditor(()=>{this.loadConfiguration()},null,this.disposables)}loadConfiguration(e){let t=v.getConfiguration("documentHighlight",this.handler.uri);(!e||e.affectsConfiguration("documentHighlight"))&&(this.config=Object.assign(this.config||{},{priority:t.get("priority",-1),timeout:t.get("timeout",300)}))}isEnabled(e,t){let i=v.getDocument(e);return!(!i||!i.attached||t||!_.hasProvider("documentHighlight",i.textDocument))}clearHighlights(){if(this.highlights.size!=0){for(let e of this.highlights.keys())this.nvim.createWindow(e).clearMatchGroup("^CocHighlight");this.highlights.clear()}}async highlight(){let{nvim:e}=this;this.cancel();let[t,i,r,o]=await e.eval(`[bufnr("%"),win_getid(),coc#cursor#position(),get(b:,'coc_cursors_activated',0)]`);if(!this.isEnabled(t,o))return;let s=v.getDocument(t),a=await this.getHighlights(s,Gu.Position.create(r[0],r[1]));if(!a)return;let l={};for(let c of a){if(!c.range)continue;let h=c.kind==Gu.DocumentHighlightKind.Text?"CocHighlightText":c.kind==Gu.DocumentHighlightKind.Read?"CocHighlightRead":"CocHighlightWrite";l[h]=l[h]||[],l[h].push(c.range)}let u=e.createWindow(i);e.pauseNotification(),u.clearMatchGroup("^CocHighlight");for(let c of Object.keys(l))u.highlightRanges(c,l[c],this.config.priority,!0);e.resumeNotification(!0,!0),this.highlights.set(i,a)}async getSymbolsRanges(){let{doc:e,position:t}=await this.handler.getCurrentState();this.handler.checkProvier("documentHighlight",e.textDocument);let i=await this.getHighlights(e,t);return i?i.map(r=>r.range):null}hasHighlights(e){return this.highlights.get(e)!=null}async getHighlights(e,t){let r=e.getline(t.line)[t.character];if(!r||!e.isWord(r))return null;await e.synchronize(),this.cancel();let o=this.tokenSource=new Gu.CancellationTokenSource,s=this.timer=setTimeout(()=>{o.token.isCancellationRequested||o.cancel()},this.config.timeout),a=await _.getDocumentHighLight(e.textDocument,t,o.token);return clearTimeout(s),o.token.isCancellationRequested?null:a}cancel(){this.tokenSource&&(this.tokenSource.cancel(),this.tokenSource.dispose(),this.tokenSource=null)}dispose(){this.timer&&clearTimeout(this.timer),this.cancel(),this.highlights.clear(),U(this.disposables)}};var Sie=S(require("fs")),Or=S(W());Pe();de();re();nt();$e();xe();ie();var fdt=q()("handler-hover"),Xb=class{constructor(e,t){this.nvim=e;this.handler=t;this.disposables=[];this.documentLines=[];this.hasProvider=!1;this.loadConfiguration(),v.onDidChangeConfiguration(this.loadConfiguration,this,this.disposables),this.hoverFactory=D.createFloatFactory({modes:["n"],autoHide:this.config.autoHide}),this.disposables.push(this.hoverFactory),D.onDidChangeActiveTextEditor(()=>{this.loadConfiguration()},null,this.disposables)}registerProvider(){if(this.hasProvider)return;this.hasProvider=!0;let{nvim:e}=this,t={onDidChange:null,provideTextDocumentContent:async()=>(e.pauseNotification(),e.command("setlocal conceallevel=2 nospell nofoldenable wrap",!0),e.command("setlocal bufhidden=wipe nobuflisted",!0),e.command("setfiletype markdown",!0),e.command(`if winnr('j') != winnr('k') | exe "normal! z${Math.min(this.documentLines.length,this.config.previewMaxHeight)}\\<cr>" | endif`,!0),await e.resumeNotification(),this.documentLines.join(`
|
||
`))};this.disposables.push(v.registerTextDocumentContentProvider("coc",t))}loadConfiguration(e){if(!e||e.affectsConfiguration("hover")){let t=v.getConfiguration("hover",this.handler.uri);this.config={floatConfig:t.get("floatConfig",{}),autoHide:t.get("autoHide",!0),target:t.get("target","float"),previewMaxHeight:t.get("previewMaxHeight",12)},this.config.target=="preview"&&this.registerProvider()}}async onHover(e){let{doc:t,position:i,winid:r}=await this.handler.getCurrentState();e=="preview"&&this.registerProvider(),this.handler.checkProvier("hover",t.textDocument),await t.synchronize();let o=await this.handler.withRequestToken("hover",a=>_.getHover(t.textDocument,i,a),!0);if(o==null||!o.length)return!1;let s=o.find(a=>Or.Range.is(a.range));if(s!=null&&s.range){let a=this.nvim.createWindow(r);a.highlightRanges("CocHoverRange",[s.range],99,!0),this.timer=setTimeout(()=>{a.clearMatchGroup("CocHoverRange"),this.nvim.redrawVim()},500)}return await this.previewHover(o,e),!0}async definitionHover(e){let{doc:t,position:i,winid:r}=await this.handler.getCurrentState();e=="preview"&&this.registerProvider(),this.handler.checkProvier("hover",t.textDocument),await t.synchronize();let o=await this.handler.withRequestToken("hover",l=>_.getHover(t.textDocument,i,l),!0);if(Je(o))return!1;let s=await this.handler.withRequestToken("definitionHover",l=>_.getDefinitionLinks(t.textDocument,i,l),!1);await Ske(o,s,t.filetype);let a=o.find(l=>Or.Hover.is(l)&&Or.Range.is(l.range));if(a){let l=this.nvim.createWindow(r);l.highlightRanges("CocHoverRange",[a.range],99,!0),this.timer=setTimeout(()=>{l.clearMatchGroup("CocHoverRange"),this.nvim.redrawVim()},500)}return await this.previewHover(o,e),!0}async previewHover(e,t){let i=[];t=t??this.config.target;let r=t==="preview";for(let s of e){if(Dke(s)){i.push(s);continue}let{contents:a}=s;if(Array.isArray(a))for(let l of a)typeof l=="string"?Ub(i,l,"markdown",r):Ub(i,l.value,l.language,r);else Or.MarkedString.is(a)?typeof a=="string"?Ub(i,a,"markdown",r):Ub(i,a.value,a.language,r):Or.MarkupContent.is(a)&&Ub(i,a.value,Wg(a)?"markdown":"txt",r)}if(t=="float"){await this.hoverFactory.show(i,this.config.floatConfig);return}let o=i.reduce((s,a)=>{let l=a.content.split(/\r?\n/);return s.length>0&&s.push(""),s.push(...l),s},[]);if(t=="echo"){let s=o.join(`
|
||
`).trim();await this.nvim.call("coc#ui#echo_hover",[s])}else this.documentLines=o,await this.nvim.command("noswapfile pedit coc://document")}async getHover(){let e=[],{doc:t,position:i}=await this.handler.getCurrentState();this.handler.checkProvier("hover",t.textDocument),await t.synchronize();let r=new Or.CancellationTokenSource,o=await _.getHover(t.textDocument,i,r.token);for(let s of o){let{contents:a}=s;Array.isArray(a)?a.forEach(l=>{e.push(typeof l=="string"?l:l.value)}):Or.MarkupContent.is(a)?e.push(a.value):e.push(typeof a=="string"?a:a.value)}return e=e.filter(s=>s!=null&&s.length>0),e}dispose(){this.timer&&clearTimeout(this.timer),U(this.disposables)}};async function Ske(n,e,t){for(let i of e){if(!(i!=null&&i.targetRange))continue;let{start:r,end:o}=i.targetRange,s=o.line-r.line>=100?r.line+100:o.character==0?o.line-1:o.line,a=await Tke(i.targetUri,r.line,s);if(a.length){let l=a[0].match(/^\s*/)[0];l&&(a=a.map(u=>u.startsWith(l)?u.substring(l.length):u)),n.push({content:a.join(`
|
||
`),filetype:t})}}}function Ub(n,e,t,i=!1){let r=e.trim();!r.length||(i&&t!=="markdown"&&(r="``` "+t+`
|
||
`+r+"\n```"),n.push({content:r,filetype:t}))}function Dke(n){return n?typeof n.filetype=="string"&&typeof n.content=="string":!1}async function Tke(n,e,t){let i=v.getDocument(n);if(i)return i.getLines(e,t+1);let r=j.parse(n).fsPath;return Sie.default.existsSync(r)?await Sa(r,e,t):[]}var zu=S(W());fe();de();re();xt();xe();ie();var Ddt=q()("handler-links"),kke=/CocAction(Async)?\(["']openLink["']\)/,Gb=class{constructor(e,t){this.nvim=e;this.handler=t;this.disposables=[];this.setConfiguration(),v.onDidChangeConfiguration(this.setConfiguration,this,this.disposables),this.floatFactory=D.createFloatFactory({}),P.on("CursorHold",async()=>{!this._tooltip||!e.hasFunction("nvim_get_keymap")||await this.showTooltip()},null,this.disposables),P.on(["CursorMoved","InsertEnter"],()=>{this.cancel()},null,this.disposables)}setConfiguration(e){if(!e||e.affectsConfiguration("links")){let t=v.getConfiguration("links",null);this._tooltip=t.get("tooltip",!1)}}async showTooltip(){let{nvim:e,floatFactory:t}=this,r=(await e.getKeymap("n")).find(u=>kke.test(u.rhs)),o=r?r.lhs:void 0,s=await this.getCurrentLink();if(!s||!s.target)return;let a="";if(s.tooltip&&(a=s.tooltip+" "),o&&(a+=`Press "${o}" to open link`),!a.length)return;let l={content:a,filetype:"txt"};await t.show([l])}async getLinks(){let{doc:e}=await this.handler.getCurrentState();if(!_.hasProvider("documentLink",e.textDocument))return[];let t=this.tokenSource=new zu.CancellationTokenSource,i=await _.getDocumentLinks(e.textDocument,t.token);return t.token.isCancellationRequested?[]:i}async openLink(e){if(!e.target)throw new Error("Failed to resolve link target");await v.openResource(e.target)}async getCurrentLink(){let e=await this.getLinks(),t=await D.getCursorPosition();if(e&&e.length){for(let a of e)if(ft(t,a.range)==0){if(!a.target){let l=this.tokenSource=this.tokenSource||new zu.CancellationTokenSource;if(a=await _.resolveDocumentLink(a,this.tokenSource.token),!a.target||l.token.isCancellationRequested)continue}return a}}let i=await this.nvim.call("getline",["."]),r=/\w+?:\/\/[^)\]'" ]+/g,o,s;for(;(o=r.exec(i))!==null;){let a=o.index;if(a<=t.character&&a+o[0].length>=t.character){s=zu.DocumentLink.create(zu.Range.create(t.line,a,t.line,a+o[0].length),o[0]);break}}return s}async openCurrentLink(){let e=await this.getCurrentLink();return e?(await this.openLink(e),!0):!1}cancel(){this.tokenSource&&(this.tokenSource.cancel(),this.tokenSource=null)}dispose(){var e;(e=this.floatFactory)==null||e.dispose(),U(this.disposables)}};var Yn=S(W());Pe();de();Hm();et();ie();var Fdt=q()("handler-hover"),zb=class{constructor(e,t){this.nvim=e;this.handler=t}async request(e,t){let{doc:i,position:r}=await this.handler.getCurrentState();return this.handler.checkProvier(e,i.textDocument),await i.synchronize(),await this.handler.withRequestToken(e,o=>t(i.textDocument,r,o),!0)}async definitions(){let{doc:e,position:t}=await this.handler.getCurrentState();this.handler.checkProvier("definition",e.textDocument),await e.synchronize();let i=new Yn.CancellationTokenSource;return _.getDefinition(e.textDocument,t,i.token)}async declarations(){let{doc:e,position:t}=await this.handler.getCurrentState();this.handler.checkProvier("declaration",e.textDocument),await e.synchronize();let i=new Yn.CancellationTokenSource;return _.getDeclaration(e.textDocument,t,i.token)}async typeDefinitions(){let{doc:e,position:t}=await this.handler.getCurrentState();this.handler.checkProvier("typeDefinition",e.textDocument),await e.synchronize();let i=new Yn.CancellationTokenSource;return _.getTypeDefinition(e.textDocument,t,i.token)}async implementations(){let{doc:e,position:t}=await this.handler.getCurrentState();this.handler.checkProvier("implementation",e.textDocument),await e.synchronize();let i=new Yn.CancellationTokenSource;return _.getImplementation(e.textDocument,t,i.token)}async references(e){let{doc:t,position:i}=await this.handler.getCurrentState();this.handler.checkProvier("reference",t.textDocument),await t.synchronize();let r=new Yn.CancellationTokenSource;return _.getReferences(t.textDocument,{includeDeclaration:!e},i,r.token)}async gotoDefinition(e){let t=await this.request("definition",(i,r,o)=>_.getDefinition(i,r,o));return await this.handleLocations(t,e),t?t.length>0:!1}async gotoDeclaration(e){let t=await this.request("declaration",(i,r,o)=>_.getDeclaration(i,r,o));return await this.handleLocations(t,e),t?t.length>0:!1}async gotoTypeDefinition(e){let t=await this.request("typeDefinition",(i,r,o)=>_.getTypeDefinition(i,r,o));return await this.handleLocations(t,e),t?t.length>0:!1}async gotoImplementation(e){let t=await this.request("implementation",(i,r,o)=>_.getImplementation(i,r,o));return await this.handleLocations(t,e),t?t.length>0:!1}async gotoReferences(e,t=!0){let i=await this.request("reference",(r,o,s)=>_.getReferences(r,{includeDeclaration:t},o,s));return await this.handleLocations(i,e),i?i.length>0:!1}async getTagList(){let{doc:e,position:t}=await this.handler.getCurrentState(),i=await this.nvim.call("expand","<cword>");if(!i||!_.hasProvider("definition",e.textDocument))return null;let r=new Yn.CancellationTokenSource,o=await _.getDefinition(e.textDocument,t,r.token);return!o||!o.length?null:o.map(s=>{let a=j.parse(s.uri),l=a.scheme=="file"?a.fsPath:a.toString();return{name:i,cmd:`keepjumps ${s.range.start.line+1} | normal ${s.range.start.character+1}|`,filename:l}})}async findLocations(e,t,i,r=!1){let{doc:o,position:s}=await this.handler.getCurrentState();i=i||{},Object.assign(i,{textDocument:{uri:o.uri},position:s});let a=await yn.sendRequest(e,t,i),l=this.toLocations(a);return await this.handleLocations(l,r),l.length>0}toLocations(e){let t=[];if(e&&Qr(e,"location")&&Qr(e,"children")){let i=r=>{if(!!r){if(Yn.Location.is(r.location))t.push(r.location);else if(Yn.LocationLink.is(r.location)){let o=r.location;t.push({uri:o.targetUri,range:o.targetSelectionRange,targetRange:o.targetRange})}if(r.children&&r.children.length)for(let o of r.children)i(o)}};return i(e),t}if(Yn.Location.is(e))t.push(e);else if(Yn.LocationLink.is(e))t.push({uri:e.targetUri,range:e.targetSelectionRange,targetRange:e.targetRange});else if(Array.isArray(e))for(let i of e)Yn.Location.is(i)?t.push(i):i&&typeof i.targetUri=="string"&&t.push({uri:i.targetUri,range:i.targetSelectionRange,targetRange:i.targetRange});return t}async handleLocations(e,t){if(!e)return;let i=e.length;if(i!=0)if(i==1&&t!==!1){let{uri:r,range:o}=e[0];await v.jumpTo(r,o.start,t)}else await v.showLocations(e)}};var _d=S(W());Pe();fe();de();re();$e();so();ie();var Rd=S(jp()),Qb=S(require("path")),st=S(W());ph();Pe();Ta();re();$e();Cs();ds();et();xt();_e();so();xe();ie();et();var Kb=class{constructor(){this.stack=[]}add(e){let t=new Map;for(let i of e)t.set(i.lnum,i);this.stack.push(t)}checkInsert(e){if(!this.stack.length)return;let t=this.stack[this.stack.length-1],i=Array.from(t.keys()).sort((r,o)=>r-o);if(!!ye(i,e))return this.stack.pop(),Array.from(t.values())}};var Pke=q()("handler-refactorBuffer"),yo="\u3000",Vb=class{constructor(e,t,i,r,o){this.bufnr=e;this.srcId=t;this.nvim=i;this.config=r;this.opts=o;this._disposed=!1;this._fileItems=[];this.mutex=new Di;this.disposables=[];this.matchIds=new Set;this.changing=!1;this.changes=new Kb,this.disposables.push(v.registerLocalKeymap("n","<CR>",this.splitOpen.bind(this),!0)),r.showMenu&&this.disposables.push(v.registerLocalKeymap("n",r.showMenu,this.showMenu.bind(this),!0)),v.onDidChangeTextDocument(this.onDocumentChange,this,this.disposables)}async showMenu(){let e=await D.showMenuPicker(["Tab open","Remove block"]);if(e==-1)return;let t=await this.searchCurrentRange();if(!!t){if(e==0){let r=(await this.nvim.eval("strpart(getline('.'), 0 ,col('.') - 1)")).length,o=this.getAbsolutePath(t.filepath);this.nvim.call("coc#util#jump",["tabe",o,[t.line,r]],!0)}if(e==1){let i=this.getDeleteRange(t);await this.document.applyEdits([st.TextEdit.del(i)])}}}get fileItems(){return this._fileItems}getFileItem(e){let t=j.parse(e).fsPath;return this._fileItems.find(i=>ni(i.filepath,t))}getFileRange(e){for(let t of this._fileItems)for(let i of t.ranges)if(i.lnum==e)return Object.assign(fn(i,["highlights"]),{filepath:t.filepath});throw new Error(`File range not found at lnum: ${e}`)}onChange(e){if(this.changing)return;if(e.contentChanges.length===0){this.highlightLineNr(),this.nvim.redrawVim();return}let{nvim:t}=this;e=Rke(e);let i=e.contentChanges[0],{original:r}=e;i.range.end.line>2&&t.call("setbufvar",[e.bufnr,"&modified",1],!0);let{range:o,text:s}=i;if(Ia(st.TextEdit.replace(o,s))==0)return;let l=[st.TextEdit.replace(o,s)],u=[];if(!Lt(o)&&!s.includes("\u3000")){let c=o.start.line,h=[],d=r.split(/\r?\n/);for(let g=0;g<d.length;g++){let p=d[g];p.length>1&&p.includes("\u3000")&&h.push(c+g+1)}if(h.length){let g=h.map(p=>this.getFileRange(p));for(let p of this._fileItems)p.ranges=p.ranges.filter(f=>!h.includes(f.lnum));this.changes.add(g)}}else if(Lt(o)&&s.includes("\u3000")){let c=s.split(/\r?\n/),h=[],d=o.start.line;for(let g=0;g<c.length;g++){let p=c[g];p.length>1&&p.includes("\u3000")&&h.push(d+g+1)}if(h.length){let g=this.changes.checkInsert(h);g&&(u=g)}}else s.includes("\u3000")&&(l=this.diffChanges(r,s),l.forEach(c=>{c.range=tY(c.range,o.start)}));this.adjustLnums(l),t.pauseNotification(),this.highlightLineNr(),t.resumeNotification(!0,!0),u.length&&u.forEach(c=>{this._fileItems.find(d=>d.filepath==c.filepath).ranges.push(c)})}diffChanges(e,t){let i=[],r=(0,Rd.default)(e,t),o=0,s=Vn.create("file:///1","",0,e);for(let a=0;a<r.length;a++){let l=r[a],u=s.positionAt(o);if(l[0]==Rd.default.EQUAL)o=o+l[1].length;else if(l[0]==Rd.default.DELETE){let c=s.positionAt(o+l[1].length);if(r[a+1]&&r[a+1][0]==Rd.default.INSERT){let h=r[a+1][1];i.push(st.TextEdit.replace(st.Range.create(u,c),h)),a=a+1}else i.push(st.TextEdit.replace(st.Range.create(u,c),""));o=o+l[1].length}else l[0]==Rd.default.INSERT&&i.push(st.TextEdit.insert(u,l[1]))}return i}async onDocumentChange(e){if(this.changing||e.contentChanges.length===0)return;let{uri:t}=e.textDocument,i=this.getFileItem(t);if(!i)return;let{range:r,text:o}=e.contentChanges[0],s=Ia(st.TextEdit.replace(r,o)),a=[],l=[];for(let u=0;u<i.ranges.length;u++){let c=i.ranges[u];if(r.start.line>=c.start+c.lines.length)continue;if(r.end.line<c.start){c.start=c.start+s;continue}let h=v.getDocument(t).textDocument,d=c.start+c.lines.length+s,g=h.lines.slice(c.start,d);if(g.length){c.lines=g;let p=this.getReplaceRange(c);a.push(st.TextEdit.replace(p,g.join(`
|
||
`)))}else{l.push(u);let p=this.getDeleteRange(c);a.push(st.TextEdit.replace(p,""))}}l.length&&(i.ranges=i.ranges.filter((u,c)=>!l.includes(c))),this._fileItems=this._fileItems.filter(u=>u.ranges&&u.ranges.length>0),a.length&&(this.adjustLnums(a),this.changing=!0,await this.document.applyEdits(a),this.changing=!1),this.nvim.pauseNotification(),this.highlightLineNr(),this.buffer.setOption("modified",!1,!0),await this.nvim.resumeNotification(!0)}adjustLnums(e){for(let t of this._fileItems)for(let i of t.ranges){let r=i.lnum-1;i.lnum+=OR(st.Position.create(r,0),e)}}async getFileChanges(){let e=[],t=await this.buffer.lines;t.push(yo);let i=[],r,o;for(let s=0;s<t.length;s++){let a=t[s];if(a.startsWith(yo)){if(r&&(e.push({filepath:r,lines:i.slice(),lnum:o}),r=void 0,i=[]),a.length>1){let l=a.match(/^\u3000(.*)/);l&&(r=this.getAbsolutePath(l[1].replace(/\s+$/,"")),o=s+1,i=[])}}else i.push(a)}return e}async splitOpen(){let{nvim:e}=this,i=await e.createWindow(this.opts.fromWinid).valid,o=(await e.eval("strpart(getline('.'), 0 ,col('.') - 1)")).length,s=await this.searchCurrentRange();if(s){let a=this.getAbsolutePath(s.filepath);e.pauseNotification(),i?(e.call("win_gotoid",[this.opts.fromWinid],!0),this.nvim.call("coc#util#jump",["edit",a,[s.line,o]],!0)):this.nvim.call("coc#util#jump",["belowright vs",a,[s.line,o]],!0),e.command("normal! zz",!0),await e.resumeNotification(!0),i||(this.opts.fromWinid=await e.call("win_getid"))}}async searchCurrentRange(){let{nvim:e}=this,t=await e.eval('getline(1,line("."))'),i=t.length;for(let r=0;r<i;r++)if(t[i-r-1].match(/^\u3000(.+)/)){let a=this.getFileRange(i-r);return Object.assign({line:a.start+(r==0?1:r)-1},a)}}async addFileItems(e){if(this._disposed)return;let{cwd:t}=this.opts,{document:i}=this,r=await this.mutex.acquire();try{await i.synchronize();let o=i.lineCount,s=new Hi,a=[];for(let c of e){let h=[];for(let d of c.ranges){s.addLine(yo),s.addLine(yo);let g=o+s.length;s.addText(`${Ye(t,c.filepath)?Qb.default.relative(t,c.filepath):c.filepath}`);let p=String(d.start+1).length+String(d.end).length+4;this.srcId||s.addText(" ".repeat(p));let f=0-s.length-o;d.highlights&&a.push(...d.highlights.map(T=>Eke(T,f)));let{lines:m,start:b,end:w,highlights:x}=d;m||(m=await this.getLines(c.filepath,b,w)),h.push({lines:m,lnum:g,start:b,highlights:x}),s.addLines(m)}if(h.length){let d={filepath:c.filepath,ranges:h},g=this._fileItems.find(p=>p.filepath==c.filepath);g?g.ranges.push(...d.ranges):this._fileItems.push(d)}}let{nvim:l,buffer:u}=this;if(this.changing=!0,l.pauseNotification(),s.render(u,o),this.highlightLineNr(),u.setOption("modified",!1,!0),u.setOption("undolevels",1e3,!0),o==2&&a.length){let c=a[0].start;l.call("coc#cursor#move_to",[c.line,c.character],!0)}await l.resumeNotification(!0),await i.patchChange(),this.changing=!1,await D.cursors.addRanges(a)}catch(o){this.changing=!1,Pke.error("Error on add file item:",o)}r()}findRange(e,t){let r=this.fileItems.find(o=>ni(this.getAbsolutePath(o.filepath),e)).ranges.find(o=>o.lnum==t);if(!r)throw new Error(`File range not found at lnum: ${t}`);return r}async save(){let{nvim:e}=this,t=this.document,{buffer:i}=t;await t.patchChange();let r=await this.getFileChanges();if(!r)return;r.sort((a,l)=>a.lnum-l.lnum);let o=[];for(let a=0;a<r.length;a++){let l=r[a],u=this.findRange(l.filepath,l.lnum);ye(u.lines,l.lines)||(o.push(Object.assign({start:u.start,end:u.start+u.lines.length},l)),u.lines=l.lines)}if(o.length==0)return await D.showInformationMessage("No change."),await i.setOption("modified",!1),!1;let s={};for(let a of o){let l=j.file(a.filepath).toString(),u=s[l]||[];u.push({range:st.Range.create(a.start,0,a.end,0),newText:a.lines.join(`
|
||
`)+`
|
||
`}),s[l]=u}this.changing=!0,await v.applyEdit({changes:s}),this.changing=!1;for(let a of this.fileItems){let l=j.file(this.getAbsolutePath(a.filepath)).toString(),u=s[l];u&&u.length>0&&a.ranges.forEach(c=>{c.start+=OR(st.Position.create(c.start,0),u)})}return e.pauseNotification(),i.setOption("modified",!1,!0),this.config.saveToFile&&e.command("silent noa wa",!0),this.highlightLineNr(),await e.resumeNotification(),!0}async getLines(e,t,i){let r=j.file(e).toString(),o=v.getDocument(r);return o?o.getLines(t,i):await Sa(e,t,i-1)}getAbsolutePath(e){return Qb.default.isAbsolute(e)?e:Qb.default.join(this.opts.cwd,e)}highlightLineNr(){let{fileItems:e,nvim:t,srcId:i,bufnr:r}=this,{winid:o,cwd:s}=this.opts,a={};if(i){t.call("nvim_buf_clear_namespace",[r,i,0,-1],!0);for(let l of e)for(let u of l.ranges){let c=u.start+u.lines.length,h=`${u.start+1}:${c}`;a[u.lnum]=[u.start+1,c],t.call("nvim_buf_set_virtual_text",[r,i,u.lnum-1,[[h,"LineNr"]],{}],!0)}}else{this.matchIds.size&&(t.call("coc#highlight#clear_matches",[o,Array.from(this.matchIds)],!0),this.matchIds.clear());let l=2e3;for(let u of e){let c=`${s?Qb.default.relative(s,u.filepath):u.filepath}`,h=Q(c)+1;for(let d of u.ranges){let g=d.start+d.lines.length,p=`:${d.start+1}:${g}`;for(let f=0;f<p.length;f++){let m=p[f];this.matchIds.add(l),a[d.lnum]=[d.start+1,g],t.call("matchaddpos",["Conceal",[[d.lnum,h+f]],99,l,{conceal:m,window:o}],!0),l++}}}}this.buffer.setVar("line_infos",a,!0)}getDeleteRange(e){let{document:t}=this,i=e.lnum-1,r,o=t.lineCount;for(let s=i;s<o;s++){if(s+1==o){r=st.Position.create(o,0);break}let a=t.getline(s);if(a===yo){r=st.Position.create(s+1,0);break}if(s!=i&&a.startsWith(yo)){r=st.Position.create(s,0);break}}return st.Range.create(st.Position.create(i,0),r)}getReplaceRange(e){let{document:t}=this,i=e.lnum,r,o=t.lineCount;for(let s=i;s<o;s++){let a=t.getline(s);if(s+1==o){r=st.Position.create(s,a.length);break}if(t.getline(s+1).startsWith("\u3000")){r=st.Position.create(s,a.length);break}}return st.Range.create(st.Position.create(i,0),r)}get valid(){return this.buffer.valid}get buffer(){return this.nvim.createBuffer(this.bufnr)}get document(){return v.getDocument(this.bufnr)}dispose(){this._disposed=!0,U(this.disposables)}};function Eke(n,e){let{start:t,end:i}=n;return st.Range.create(t.line-e,t.character,i.line-e,i.character)}function Rke(n){let{contentChanges:e,bufnr:t,textDocument:i,original:r,originalLines:o}=n,{range:s,text:a}=e[0],l=[{range:s,text:a}];if(r){let u=r.split(/\r?\n/),c=u[u.length-1];if(c.startsWith(yo)){let g=o[s.start.line].slice(0,s.start.character);if(g==c){r=g+u.slice(0,-1).join(`
|
||
`)+`
|
||
`;let{start:p,end:f}=s;l[0].range=st.Range.create(p.line,0,f.line,0)}}let h=o[s.start.line-1],d=u.length>1?u[u.length-2]:"";if(c==""&&d.startsWith(yo)&&h==d&&s.start.character==0&&s.end.character==0){r=h+`
|
||
`+u.slice(0,-2).join(`
|
||
`)+`
|
||
`;let{start:g,end:p}=s;l[0].range=st.Range.create(g.line-1,0,p.line-1,0)}}else if(Lt(s)&&s.start.character!=0){let u=a.split(/\r?\n/),c=u[u.length-1],h=o[s.start.line].slice(0,s.start.character);if(c.startsWith(yo)&&h==c){l[0].text=h+u.slice(0,-1).join(`
|
||
`)+`
|
||
`;let{start:d,end:g}=s;l[0].range=st.Range.create(d.line,0,g.line,0)}}return{contentChanges:l,bufnr:t,textDocument:i,original:r,originalLines:o}}var Die=require("child_process"),Tie=require("events"),KF=S(require("path")),kie=S(require("readline"));Kn();Ta();uh();ds();xe();var _ke=q()("handler-search"),Lke=["--color","ansi","--colors","path:fg:black","--colors","line:fg:green","--colors","match:fg:red","--no-messages","--heading","-n"],Ike="\x1B",zF=class extends Tie.EventEmitter{start(t,i,r){this.process=(0,Die.spawn)(t,i,{cwd:r}),this.process.on("error",h=>{this.emit("error",h.message)});let o=kie.default.createInterface(this.process.stdout),s,a,l=[],u=[],c=!0;o.on("line",h=>{if(h.includes(Ike)){let d=pp(h);if(d.length==0)return;if(d[0].foreground=="black"){a={filepath:KF.default.join(r,d[0].text),ranges:[]};return}if(d[0].foreground=="green"){let p=parseInt(d[0].text,10)-1,f=d[0].text.length+1;c&&(s=p,c=!1);let m="";for(let w of d){if(w.foreground=="red"){let x=p-s,T=m.length-f;u.push(Be.create(x,T,x,T+w.text.length))}m+=w.text}let b=m.slice(f);l.push(b)}}else{let d=h.trim().length==0;a&&(d||h.trim()=="--")&&a.ranges.push({lines:l,highlights:u,start:s}),d&&(this.emit("item",a),a=null),l=[],u=[],c=!0}}),o.on("close",()=>{a&&(l.length&&a.ranges.push({lines:l,highlights:u,start:s}),this.emit("item",a)),l=u=a=null,this.emit("end")})}dispose(){this.process&&this.process.kill()}},ey=class{constructor(e,t="rg"){this.nvim=e;this.cmd=t}run(e,t,i){let{nvim:r,cmd:o}=this,{afterContext:s,beforeContext:a}=i.config,l=["-A",s.toString(),"-B",a.toString()].concat(Lke,e),u=Fke(e);u&&l.pop(),l.push("--",u?KF.default.isAbsolute(u)?u:`./${u.replace(/^\.\//,"")}`:"./"),this.task=new zF,this.task.start(o,l,t);let c=new Di,h=0,d=0,g=Date.now(),p=[],f=async()=>{if(p.length==0)return;let m=p.slice();p=[];let b=await c.acquire();try{await i.addFileItems(m)}catch(w){_ke.error(w)}b()};return new Promise((m,b)=>{let w=setInterval(f,300);this.task.on("item",async x=>{h++,d=d+x.ranges.reduce((T,R)=>T+R.highlights.length,0),p.push(x)}),this.task.on("error",x=>{clearInterval(w),D.showErrorMessage(`Error on command "${o}": ${x}`),this.task=null,b(new Error(x))}),this.task.on("end",async()=>{clearInterval(w);try{await f(),(await c.acquire())(),this.task.removeAllListeners(),this.task=null;let T=i.buffer;if(T){if(r.pauseNotification(),h==0)T.setLines(["No match found"],{start:1,end:2,strictIndexing:!1},!0),T.addHighlight({line:1,srcId:-1,colEnd:-1,colStart:0,hlGroup:"Error"}),T.setOption("modified",!1,!0);else{let R=new Hi;R.addText("Files","MoreMsg"),R.addText(": "),R.addText(`${h} `,"Number"),R.addText("Matches","MoreMsg"),R.addText(": "),R.addText(`${d} `,"Number"),R.addText("Duration","MoreMsg"),R.addText(": "),R.addText(`${Date.now()-g}ms`,"Number"),R.render(T,1,2)}T.setOption("modified",!1,!0),r.resumeNotification(!1,!0)}}catch(x){b(x);return}m()})})}abort(){var e;(e=this.task)==null||e.dispose()}};function Fke(n){if(n.length<2)return;let e=n.length;if(!n[e-1].startsWith("-")&&!n[e-2].startsWith("-"))return n[e-1]}var Dgt=q()("handler-refactor"),jke="__coc_refactor__",Mke=0,ty=class{constructor(e,t){this.nvim=e;this.handler=t;this.buffers=new Map;this.disposables=[];this._onCreate=new _d.Emitter;this.onCreate=this._onCreate.event;this.setConfiguration(),v.onDidChangeConfiguration(this.setConfiguration,this,this.disposables),P.on("BufUnload",i=>{let r=this.buffers.get(i);r&&(r.dispose(),this.buffers.delete(i))},null,this.disposables),v.onDidChangeTextDocument(i=>{let r=this.buffers.get(i.bufnr);r&&r.onChange(i)},null,this.disposables)}async init(){v.isNvim&&this.nvim.hasFunction("nvim_create_namespace")&&(this.srcId=await this.nvim.createNamespace("coc-refactor"))}has(e){return this.buffers.has(e)}setConfiguration(e){if(e&&!e.affectsConfiguration("refactor"))return;let t=v.getConfiguration("refactor",null);this.config=Object.assign(this.config||{},{afterContext:t.get("afterContext",3),beforeContext:t.get("beforeContext",3),openCommand:t.get("openCommand","edit"),saveToFile:t.get("saveToFile",!0),showMenu:t.get("showMenu","<Tab>")})}async doRefactor(){let{doc:e,position:t}=await this.handler.getCurrentState();if(!_.hasProvider("rename",e.textDocument))throw new Error("Rename provider not found for current buffer");await e.synchronize();let i=await this.handler.withRequestToken("refactor",async r=>{let o=await _.prepareRename(e.textDocument,t,r);if(r.isCancellationRequested)return null;if(o===!1)throw new Error("Provider returns null on prepare, unable to rename at current position");let s=await _.provideRenameEdits(e.textDocument,t,"NewName",r);if(r.isCancellationRequested)return null;if(!s)throw new Error("Provider returns null for rename edits.");return s});i&&await this.fromWorkspaceEdit(i,e.filetype)}async search(e){let t=await this.createRefactorBuffer(),i=await this.nvim.call("getcwd",[]);await new ey(this.nvim).run(e,i,t)}async save(e){let t=this.buffers.get(e);if(t)return await t.save()}getBuffer(e){return this.buffers.get(e)}async createRefactorBuffer(e,t=!1){let{nvim:i}=this,[r,o]=await i.eval("[win_getid(),getcwd()]"),{openCommand:s}=this.config;i.pauseNotification(),i.command(`${s} ${jke}${Mke++}`,!0),i.command("setl buftype=acwrite nobuflisted bufhidden=wipe nofen wrap conceallevel=2 concealcursor=n",!0),i.command("setl undolevels=-1 nolist nospell noswapfile foldmethod=expr foldexpr=coc#util#refactor_foldlevel(v:lnum)",!0),i.command("setl foldtext=coc#util#refactor_fold_text(v:foldstart)",!0),i.call("setline",[1,["Save current buffer to make changes",yo]],!0),i.call("matchadd",["Comment","\\%1l"],!0),i.call("matchadd",["Conceal","^\\%u3000"],!0),i.call("matchadd",["Label","^\\%u3000\\zs\\S\\+"],!0),i.command("setl nomod",!0),e&&i.command(`runtime! syntax/${e}.vim`,!0),i.call("coc#util#do_autocmd",["CocRefactorOpen"],!0),await i.resumeNotification();let[a,l]=await i.eval('[bufnr("%"),win_getid()]'),u={fromWinid:r,winid:l,cwd:o};await v.document;let c=new Vb(a,t?void 0:this.srcId,this.nvim,this.config,u);return this.buffers.set(a,c),c}async fromLines(e){let t=await this.createRefactorBuffer();return await t.buffer.setLines(e,{start:0,end:-1,strictIndexing:!1}),t}async fromLocations(e,t){if(!e||e.length==0)return;let i={},r={changes:i};for(let o of e){let s=i[o.uri]||[];s.push({range:o.range,newText:""}),i[o.uri]=s}return await this.fromWorkspaceEdit(r,t)}async fromWorkspaceEdit(e,t){if(!e||_J(e))return;let i=[],{beforeContext:r,afterContext:o}=this.config,{changes:s,documentChanges:a}=e;if(!s){s={};for(let u of a||[])if(_d.TextDocumentEdit.is(u)){let{textDocument:c,edits:h}=u;s[c.uri]=h}}for(let u of Object.keys(s)){let c=await this.getLineCount(u),h=s[u],d=[],g=null,p=null,f=[];h.sort((m,b)=>m.range.start.line-b.range.start.line);for(let m of h){let{line:b}=m.range.start,w=Math.max(0,b-r);g!=null&&w<p?(p=Math.min(c,b+o+1),f.push(Pie(m.range,g))):(g!=null&&d.push({start:g,end:p,highlights:f}),g=w,p=Math.min(c,b+o+1),f=[Pie(m.range,g)])}g!=null&&d.push({start:g,end:p,highlights:f}),i.push({ranges:d,filepath:j.parse(u).fsPath})}let l=await this.createRefactorBuffer(t);return await l.addFileItems(i),l}async getLineCount(e){let t=v.getDocument(e);return t?t.lineCount:await GW(j.parse(e).fsPath)}reset(){for(let e of this.buffers.values())e.dispose();this.buffers.clear()}dispose(){this._onCreate.dispose(),this.buffers.clear(),U(this.disposables)}};function Pie(n,e){let{start:t,end:i}=n;return _d.Range.create(t.line-e,t.character,i.line-e,i.character)}var iy=S(W());de();xt();xe();ie();var Lgt=q()("handler-rename"),ny=class{constructor(e,t){this.nvim=e;this.handler=t}async getWordEdit(){let{doc:e,position:t}=await this.handler.getCurrentState(),i=e.getWordRangeAtPosition(t);if(!i||Lt(i))return null;let r=e.textDocument.getText(i);if(_.hasProvider("rename",e.textDocument)){await e.synchronize();let s=new iy.CancellationTokenSource;if(await _.prepareRename(e.textDocument,t,s.token)!==!1){let l=r.startsWith("a")?"b":"a",u=await _.provideRenameEdits(e.textDocument,t,l,s.token);if(u)return u}}D.showInformationMessage("Rename provider not found, extract word ranges from current buffer");let o=e.getSymbolRanges(r);return{changes:{[e.uri]:o.map(s=>({range:s,newText:r}))}}}async rename(e){let{doc:t,position:i}=await this.handler.getCurrentState();this.handler.checkProvier("rename",t.textDocument),await t.synchronize();let r=new iy.CancellationTokenSource().token,o=await _.prepareRename(t.textDocument,i,r);if(o===!1)return D.showWarningMessage("Invalid position for rename"),!1;let s;if(!e){iy.Range.is(o)?(s=t.textDocument.getText(o),await D.moveTo(o.start)):o&&typeof o.placeholder=="string"?s=o.placeholder:s=await this.nvim.eval('expand("<cword>")');let l=v.getConfiguration("coc.preferences",null);e=await D.requestInput("New name",l.get("renameFillCurrent",!0)?s:void 0)}if(e===""&&D.showWarningMessage("Empty word, rename canceled"),!e)return!1;let a=await _.provideRenameEdits(t.textDocument,i,e,r);return r.isCancellationRequested||!a?!1:(await v.applyEdit(a),this.nvim.redrawVim(),!0)}};Pe();var QF=S(require("fs")),Rie=S(require("path"));Wo();dn();ie();Yu();var Eie=q()("handler-workspace"),ry=class{constructor(e,t){this.nvim=e;this.handler=t}async openLog(){let e=Eie.logfile;await v.jumpTo(j.file(e).toString())}async doAutocmd(e,t){await v.autocmds.doAutocmd(e,t)}async getConfiguration(e){let t=await v.document;return v.getConfiguration(e,t?t.uri:void 0)}getRootPatterns(e){let t=v.getDocument(e);return t?{buffer:v.workspaceFolderControl.getRootPatterns(t,0),server:v.workspaceFolderControl.getRootPatterns(t,1)||[],global:v.workspaceFolderControl.getRootPatterns(t,2)}:null}async ensureDocument(){let e=await v.document;return e&&e.attached}async doKeymap(e,t="",i){return await v.keymaps.doKeymap(e,t,i)}async snippetCheck(e,t){return!!(t&&ai.jumpable()||e&&await Promise.resolve(je.manager.call("coc-snippets","expandable",[])))}async showInfo(){let e=[],t=v.version+"-3727269e 2022-10-23 00:47:09 +0800";e.push("## versions"),e.push("");let r=(await this.nvim.call("execute",["version"])).trim().split(/\r?\n/,2)[0].replace(/\(.*\)/,"").trim();e.push("vim version: "+r+`${v.isVim?" "+v.env.version:""}`),e.push("node version: "+process.version),e.push("coc.nvim version: "+t),e.push("coc.nvim directory: "+Rie.default.dirname(__dirname)),e.push("term: "+(process.env.TERM_PROGRAM||process.env.TERM)),e.push("platform: "+process.platform),e.push(""),e.push("## Log of coc.nvim"),e.push("");let o=Eie.logfile;if(QF.default.existsSync(o)){let a=QF.default.readFileSync(o,{encoding:"utf8"});e.push(...a.split(/\r?\n/))}await this.nvim.command("vnew +setl\\ buftype=nofile\\ bufhidden=wipe\\ nobuflisted"),await(await this.nvim.buffer).setLines(e,{start:0,end:-1,strictIndexing:!1})}};var VF=S(W());de();et();xt();xe();var oy=class{constructor(e,t){this.nvim=e;this.handler=t;this.selectionRange=null}async getSelectionRanges(){let{doc:e,position:t}=await this.handler.getCurrentState();return this.handler.checkProvier("selectionRange",e.textDocument),await e.synchronize(),await this.handler.withRequestToken("selection ranges",r=>_.getSelectionRanges(e.textDocument,[t],r))}async selectRange(e,t){let{nvim:i}=this,{doc:r}=await this.handler.getCurrentState();this.handler.checkProvier("selectionRange",r.textDocument);let o=[];if(!t&&(!this.selectionRange||!e))return;if(e){let u=await D.getSelectedRange(e);o.push(u.start,u.end)}else{let u=await D.getCursorPosition();o.push(u)}if(!t){let u=VF.Range.create(o[0],o[1]),{selectionRange:c}=this;for(;c&&c.parent&&!ye(c.parent.range,u);)c=c.parent;c&&c.parent&&await D.selectRange(c.range);return}await r.synchronize();let s=await this.handler.withRequestToken("selection ranges",u=>_.getSelectionRanges(r.textDocument,o,u));if(!s||s.length==0)return;await i.eval("mode()")!="n"&&await i.eval(`feedkeys("\\<Esc>", 'in')`);let l;if(s.length==1)l=s[0];else{let u=o[1]??o[0],c=VF.Range.create(o[0],u);for(l=s[0];l;){if(ye(c,l.range)){l=l.parent;continue}if(ft(o[0],l.range)==0&&ft(u,l.range)==0)break;l=l.parent}}!l||(this.selectionRange=s[0],await D.selectRange(l.range))}};var Id=S(W());Jt();fe();de();var Lie=S(require("path")),Ld=S(W());Pe();Jt();ie();yf();var ej=class{constructor(e,t,i,r,o,s,a){this.meta=e;this.winid=t;this.config=i;this.commandId=r;this.rootItems=o;this.getIcon=s;this.resolveChildren=a;this._onDidChangeTreeData=new Ld.Emitter;this.onDidChangeTreeData=this._onDidChangeTreeData.event;this.actions=[];this.addAction("Open in new tab",async l=>{await ue.executeCommand(this.commandId,t,l,"tabe")}),this.addAction("Dismiss",async l=>{if(l.parent==null){let u=this.rootItems.filter(c=>c!==l);this.reset(u)}else{let u=l.parent,c=u.children.findIndex(h=>h===l);u.children.splice(c,1),this._onDidChangeTreeData.fire(u)}})}cancel(){this.tokenSource&&(this.tokenSource.cancel(),this.tokenSource=void 0)}reset(e){this.rootItems=e,this._onDidChangeTreeData.fire(void 0)}addAction(e,t){this.actions.push({title:e,handler:t})}async getChildren(e){this.cancel(),this.tokenSource=new Ld.CancellationTokenSource;let{token:t}=this.tokenSource;if(!e){for(let r of this.rootItems){let o=await this.resolveChildren(r,this.meta,t);_ie(r,o,t)}return this.rootItems}if(e.children)return e.children;let i=await this.resolveChildren(e,this.meta,t);return this.tokenSource=void 0,_ie(e,i,t),i}getTreeItem(e){var i;let t=new lo(e.name,e.children?2:1);return this.config.enableTooltip&&(t.tooltip=Lie.default.relative(v.cwd,j.parse(e.uri).fsPath)),t.description=e.detail,t.deprecated=(i=e.tags)==null?void 0:i.includes(Ld.SymbolTag.Deprecated),t.icon=this.getIcon(e.kind),t.command={command:this.commandId,title:"open location",arguments:[this.winid,e,this.config.openCommand]},t}resolveActions(){return this.actions}dispose(){this.cancel(),v.nvim.createWindow(this.winid).clearMatchGroup(ej.rangesHighlight)}},al=ej;al.rangesHighlight="CocSelectedRange";function _ie(n,e,t){!Array.isArray(e)||t&&t.isCancellationRequested||(e.forEach(i=>i.parent=n),n.children=e)}vf();re();nt();Cs();xe();ie();var ypt=q()("Handler-callHierarchy");function Iie(n){return!!(n&&typeof n.name=="string"&&n.kind&&Id.Range.is(n.range))}var Ys=class{constructor(e,t){this.nvim=e;this.handler=t;this.disposables=[];this.highlightWinids=new Set;this.loadConfiguration(),v.onDidChangeConfiguration(this.loadConfiguration,this,this.disposables),this.disposables.push(ue.registerCommand(Ys.commandId,async(i,r,o)=>{var l;let{nvim:s}=this;await s.call("win_gotoid",[i]),await v.jumpTo(r.uri,r.selectionRange.start,o);let a=await s.window;if(a.clearMatchGroup(Ys.rangesHighlight),a.highlightRanges(Ys.rangesHighlight,[r.selectionRange],10,!0),!!((l=r.ranges)!=null&&l.length)){if(r.sourceUri){let u=v.getDocument(r.sourceUri);if(!u)return;let c=await s.call("coc#compat#buf_win_id",[u.bufnr]);if(c==-1)return;c!=a.id&&(a=s.createWindow(c),a.clearMatchGroup(Ys.rangesHighlight))}a.highlightRanges(Ys.rangesHighlight,r.ranges,100,!0),this.highlightWinids.add(a.id)}},null,!0)),P.on("BufWinEnter",(i,r)=>{this.highlightWinids.has(r)&&(this.highlightWinids.delete(r),e.createWindow(r).clearMatchGroup(Ys.rangesHighlight))},null,this.disposables)}loadConfiguration(e){if(!e||e.affectsConfiguration("callHierarchy")){let t=v.getConfiguration("callHierarchy",null);this.config={splitCommand:t.get("splitCommand"),openCommand:t.get("openCommand"),enableTooltip:t.get("enableTooltip")}}}createProvider(e,t,i,r){let o=new al(r,i,this.config,Ys.commandId,e,s=>this.handler.getIcon(s),(s,a,l)=>this.getChildren(t,s,a,l));for(let s of["incoming","outgoing"])o.addAction(`Show ${s[0].toUpperCase()}${s.slice(1)} Calls`,a=>{o.meta=s;let l=[fn(a,["children","parent","ranges","sourceUri"])];o.reset(l)});return o}async getChildren(e,t,i,r){let o=[];if(i=="incoming"){let s=await _.provideIncomingCalls(e,t,r);s&&(o=s.map(a=>Object.assign(a.from,{ranges:a.fromRanges})))}else{let s=await _.provideOutgoingCalls(e,t,r);s&&(o=s.map(a=>Object.assign(a.to,{ranges:a.fromRanges,sourceUri:t.uri})))}return o}async prepare(e,t,i){this.handler.checkProvier("callHierarchy",e);let r=await _.prepareCallHierarchy(e,t,i);return Iie(r)?[r]:r}async getCallHierarchyItems(e,t){let{doc:i,position:r}=await this.handler.getCurrentState(),o=new Id.CancellationTokenSource;if(!e){await i.synchronize();let a=await this.prepare(i.textDocument,r,o.token);if(e=a?a[0]:void 0,!a)throw new Error("Unable to getCallHierarchyItem at current position")}let s=t=="incoming"?"provideIncomingCalls":"provideOutgoingCalls";return await _[s](i.textDocument,e,o.token)}async getIncoming(e){return await this.getCallHierarchyItems(e,"incoming")}async getOutgoing(e){return await this.getCallHierarchyItems(e,"outgoing")}async showCallHierarchyTree(e){let{doc:t,position:i,winid:r}=await this.handler.getCurrentState();if(await t.synchronize(),!_.hasProvider("callHierarchy",t.textDocument)){D.showErrorMessage("CallHierarchy provider not found for current document, it's not supported by your languageserver");return}let o=await _.prepareCallHierarchy(t.textDocument,i,Id.CancellationToken.None),s=Iie(o)?[o]:o;if(Je(s)){D.showWarningMessage("Unable to get CallHierarchyItem at cursor position.");return}let a=this.createProvider(s,t.textDocument,r,e),l=new Fo("calls",{treeDataProvider:a});l.title=Fie(e),a.onDidChangeTreeData(u=>{u||(l.title=Fie(a.meta))}),l.onDidChangeVisibility(u=>{u.visible||a.dispose()}),this.disposables.push(l),await l.show(this.config.splitCommand)}dispose(){this.highlightWinids.clear(),U(this.disposables)}},Ku=Ys;Ku.commandId="callHierarchy.reveal",Ku.rangesHighlight="CocSelectedRange";function Fie(n){return`${n.toUpperCase()} CALLS`}Jt();fe();de();vf();re();nt();Cs();xe();ie();var _pt=q()("Handler-typeHierarchy"),Qu=class{constructor(e,t){this.nvim=e;this.handler=t;this.disposables=[];this.highlightWinids=new Set;this.loadConfiguration(),v.onDidChangeConfiguration(this.loadConfiguration,this,this.disposables),P.on("BufWinEnter",(i,r)=>{this.highlightWinids.has(r)&&(this.highlightWinids.delete(r),e.createWindow(r).clearMatchGroup(Qu.rangesHighlight))},null,this.disposables),this.disposables.push(ue.registerCommand(Qu.commandId,async(i,r,o)=>{let{nvim:s}=this;await s.call("win_gotoid",[i]),await v.jumpTo(r.uri,r.range.start,o);let a=await s.window;a.clearMatchGroup(Qu.rangesHighlight),a.highlightRanges(Qu.rangesHighlight,[r.selectionRange],10,!0),this.highlightWinids.add(a.id)},null,!0))}loadConfiguration(e){if(!e||e.affectsConfiguration("typeHierarchy")){let t=v.getConfiguration("typeHierarchy",null);this.config={splitCommand:t.get("splitCommand"),openCommand:t.get("openCommand"),enableTooltip:t.get("enableTooltip")}}}createProvider(e,t,i){let r=new al(i,t,this.config,Qu.commandId,e,o=>this.handler.getIcon(o),(o,s,a)=>this.getChildren(o,s,a));return r.addAction("Show Super Types",o=>{r.meta="supertypes";let s=[fn(o,["children","parent"])];r.reset(s)}),r.addAction("Show Sub Types",o=>{r.meta="subtypes";let s=[fn(o,["children","parent"])];r.reset(s)}),r}async getChildren(e,t,i){let r=[];return t=="supertypes"?r=await _.provideTypeHierarchySupertypes(e,i):r=await _.provideTypeHierarchySubtypes(e,i),r}async prepare(e,t){return this.handler.checkProvier("typeHierarchy",e),await this.handler.withRequestToken("typeHierarchy",async i=>await _.prepareTypeHierarchy(e,t,i),!1)}async showTypeHierarchyTree(e){let{doc:t,position:i,winid:r}=await this.handler.getCurrentState();await t.synchronize();let o=await this.prepare(t.textDocument,i);if(Je(o)){D.showWarningMessage("Unable to get TypeHierarchyItems at cursor position.");return}let s=this.createProvider(o,r,e),a=new Fo("types",{treeDataProvider:s});a.title=jie(e),s.onDidChangeTreeData(l=>{l||(a.title=jie(s.meta))}),a.onDidChangeVisibility(l=>{l.visible||s.dispose()}),this.disposables.push(a),await a.show(this.config.splitCommand)}dispose(){this.highlightWinids.clear(),U(this.disposables)}},Vu=Qu;Vu.rangesHighlight="CocSelectedRange",Vu.commandId="typeHierarchy.reveal";function jie(n){return n==="supertypes"?"Super types":"Sub types"}Jt();fe();de();Ta();re();nt();_e();xe();ie();var vo=S(W());de();var ll=class{constructor(){this.ranges=[]}get current(){let e=[];return this.ranges.sort((t,i)=>t[0]-i[0]),this.ranges.forEach(t=>{e.push(t[0],t[1])}),e}clear(){this.ranges=[]}add(e,t){e>t&&([e,t]=[t,e]);let{ranges:i}=this;if(i.length==0)i.push([e,t]);else{i.sort((l,u)=>l[0]-u[0]);let r,o,s=[];for(let l=0;l<i.length;l++){let u=i[l];u[1]<e||u[0]>t||(s.push(l),r==null&&(r=Math.min(e,u[0])),o=Math.max(t,u[1]))}let a=s.length?i.filter((l,u)=>!s.includes(u)):i;this.ranges=a,r!=null&&o!=null?this.ranges.push([r,o]):this.ranges.push([e,t])}}has(e,t){return this.ranges.findIndex(r=>r[0]<=e&&r[1]>=t)!==-1}static mergeSpans(e){let t=[];for(let i of e){let r=t.findIndex(o=>!(i[1]<o[0]||i[0]>o[1]));if(r==-1)t.push(i);else{let o=t[r];t[r]=[Math.min(i[0],o[0]),Math.max(i[1],o[1])]}}return t}};re();xr();re();_e();xe();ie();var Oke=q()("semanticTokens-buffer"),Ake=15,Fd="CocSem",Xo="semanticTokens",Nke=100,sy=class{constructor(e,t,i){this.nvim=e;this.doc=t;this.highlightGroups=i;this._dirty=!1;this.regions=new ll;this._onDidRefresh=new vo.Emitter;this.onDidRefresh=this._onDidRefresh.event;this.loadConfiguration(),this.highlight=lw(()=>{this.doHighlight()},Nke),this.highlight()}loadConfiguration(){let e=v.getConfiguration("semanticTokens",this.doc),t=this.config!=null&&this.config.enable!=e.enable;this.config={enable:e.get("enable"),filetypes:e.get("filetypes"),highlightPriority:e.get("highlightPriority"),incrementTypes:e.get("incrementTypes"),combinedModifiers:e.get("combinedModifiers")},t&&(this.config.enable?this.highlight():this.clearHighlight())}get configEnabled(){let{enable:e,filetypes:t}=this.config;return Array.isArray(t)?t.includes("*")||t.includes(this.doc.filetype):e}get bufnr(){return this.doc.bufnr}onChange(){this.highlight()}onTextChange(){this.cancel()}async forceHighlight(){this.clearHighlight(),this.cancel(),await this.doHighlight(!0)}async onShown(){if(this.shouldRangeHighlight)return;let{doc:e}=this;e.dirty||e.version===this._version||await this.doHighlight(!1,!0)}get hasProvider(){let{textDocument:e}=this.doc;return _.hasProvider("semanticTokens",e)||_.hasProvider("semanticTokensRange",e)}get hasLegend(){let{textDocument:e}=this.doc;return _.getLegend(e)!=null||_.getLegend(e,!0)!=null}get rangeProviderOnly(){let{textDocument:e}=this.doc;return!_.hasProvider("semanticTokens",e)&&_.hasProvider("semanticTokensRange",e)}get shouldRangeHighlight(){let{textDocument:e}=this.doc;return _.hasProvider("semanticTokensRange",e)&&this.previousResults==null}get lineCount(){return this.doc.lineCount}get highlights(){if(!!this._highlights&&this._highlights[0]==this.doc.version)return this._highlights[1]}get buffer(){return this.nvim.createBuffer(this.bufnr)}get enabled(){return!this.configEnabled||!v.env.updateHighlight||!this.hasLegend?!1:this.hasProvider}checkState(){if(!v.env.updateHighlight)throw new Error("Can't perform highlight update, highlight update requires vim >= 8.1.1719 or neovim >= 0.5.0");if(!this.configEnabled)throw new Error(`Semantic tokens highlight not enabled for current filetype: ${this.doc.filetype}`);if(!this.hasProvider)throw new Error(`SemanticTokens provider not found for ${this.doc.uri}`)}async getTokenRanges(e,t,i){let r=0,o=0,s=Date.now(),a=[];for(let l=0;l<e.length;l+=5){if(Date.now()-s>Ake){if(await wr(),i.isCancellationRequested)break;s=Date.now()}let u=e[l],c=e[l+1],h=e[l+2],d=t.tokenTypes[e[l+3]],g=t.tokenModifiers.filter((b,w)=>e[l+4]&1<<w),p=r+u,f=u===0?o+c:c,m=f+h;r=p,o=f,this.addHighlightItems(a,p,f,m,d,g)}return i.isCancellationRequested?null:a}addHighlightItems(e,t,i,r,o,s){let{combinedModifiers:a}=this.config,{highlightGroups:l}=this;s=s||[];let u,c=!1;for(let p of s){let f=Fd+_n(p)+_n(o);if(l.includes(f)){c=a.includes(p),u=f;break}}if(!u)for(let p of s){let f=Fd+_n(p);if(l.includes(f)){u=f,c=a.includes(p);break}}if(!u){let p=Fd+_n(o);l.includes(p)&&(u=p)}let h=this.doc.getline(t),d=_t(h,i),g=_t(h,r);e.push({range:[t,d,g],tokenType:o,combine:c,hlGroup:u,tokenModifiers:s})}toHighlightItems(e,t,i){let{incrementTypes:r}=this.config,o=typeof t=="number"&&typeof i=="number",s=[];for(let a of e){if(!a.hlGroup)continue;let l=a.range[0];if(o&&(l<t||l>=i))continue;let u={lnum:l,hlGroup:a.hlGroup,colStart:a.range[1],colEnd:a.range[2],combine:a.combine};r.includes(a.tokenType)&&(u.end_incl=!0,u.start_incl=!0),s.push(u)}return s}async doHighlight(e=!1,t=!1){var l;if(this.cancel(),!this.enabled)return;let r=(this.tokenSource=new vo.CancellationTokenSource).token;if(!t&&(await this.nvim.eval(`get(get(getbufinfo(${this.bufnr}),0,{}),'hidden',0)`)==1||r.isCancellationRequested))return;if(this.shouldRangeHighlight){let u=this.rangeTokenSource=new vo.CancellationTokenSource;if(await this.doRangeHighlight(u.token),r.isCancellationRequested||this.rangeProviderOnly)return}let{doc:o}=this,s=o.version,a;if(s===((l=this.previousResults)==null?void 0:l.version))if(this._highlights&&this._highlights[0]==s)a=this._highlights[1];else{let u=this.previousResults.tokens,c=_.getLegend(o.textDocument);a=await this.getTokenRanges(u,c,r),a&&(this._highlights=[s,a])}else a=await this.sendRequest(()=>this.requestAllHighlights(r,e),r),a&&(this._highlights=[s,a]);if(!(!a||r.isCancellationRequested)){if(!this._dirty||a.length<200){let u=this.toHighlightItems(a),c=await D.diffHighlights(this.bufnr,Xo,u,void 0,r);if(r.isCancellationRequested||!c)return;this._dirty=!0,this._version=s;let h=this.config.highlightPriority;await D.applyDiffHighlights(this.bufnr,Xo,h,c)}else this.regions.clear(),await this.highlightRegions(r);this._onDidRefresh.fire()}}async waitRefresh(){return new Promise((e,t)=>{let i=setTimeout(()=>{r.dispose(),t(new Error("Timeout after 500ms"))},500),r=this.onDidRefresh(()=>{r.dispose(),clearTimeout(i),e()})})}async sendRequest(e,t){try{return await e()}catch(i){t.isCancellationRequested||(i instanceof ii?this.highlight(500):Oke.error("Error on request semanticTokens: ",i));return}}async doRangeHighlight(e){if(!this.enabled)return;let{version:t}=this.doc,i=await this.sendRequest(()=>this.requestRangeHighlights(e),e);if(i==null||e.isCancellationRequested)return;let{highlights:r,start:o,end:s}=i;if(this.rangeProviderOnly||!this.previousResults){(!this._highlights||t!==this._highlights[0])&&(this._highlights=[t,[]]);let c=this._highlights[1],h=c.reduce((d,g)=>d.add(g.range[0]),new Set);r.forEach(d=>{h.has(d.range[0])||c.push(d)})}let a=this.toHighlightItems(r),l=this.config.highlightPriority,u=await D.diffHighlights(this.bufnr,Xo,a,[o,s],e);u&&(await D.applyDiffHighlights(this.bufnr,Xo,l,u,!0),this._dirty=!0)}async highlightRegions(e,t=!1){let{regions:i,highlights:r,config:o,lineCount:s,bufnr:a}=this;if(!r)return;let l=o.highlightPriority,u=await this.nvim.call("coc#window#visible_ranges",[a]);if(e.isCancellationRequested||u.length===0)return;let c=v.env.lines;u.forEach(h=>{let d=h[0];h[0]=Math.max(0,Math.floor(d-c*1.5)),h[1]=Math.min(s,Math.ceil(h[1]+c*1.5),d+c*2)});for(let[h,d]of ll.mergeSpans(u)){if(!t&&i.has(h,d))continue;let g=this.toHighlightItems(r,h,d),p=await D.diffHighlights(a,Xo,g,[h,d],e);if(e.isCancellationRequested)break;i.add(h,d),p&&D.applyDiffHighlights(a,Xo,l,p,!0)}}async onCursorMoved(){if(this.cancel(!0),!this.enabled||this.doc.dirty)return;let t=(this.rangeTokenSource=new vo.CancellationTokenSource).token;await Nt(100),!t.isCancellationRequested&&(this.shouldRangeHighlight?await this.doRangeHighlight(t):await this.highlightRegions(t))}async requestRangeHighlights(e){let{nvim:t,doc:i}=this,r=await t.call("coc#window#visible_range",[this.bufnr]);if(!r||e.isCancellationRequested)return null;let o=Math.min(r[0]+v.env.lines*2,r[1]),s=vo.Range.create(r[0]-1,0,o,0),a=await _.provideDocumentRangeSemanticTokens(i.textDocument,s,e);if(!a||!vo.SemanticTokens.is(a)||e.isCancellationRequested)return null;let l=_.getLegend(i.textDocument,!0),u=await this.getTokenRanges(a.data,l,e);return e.isCancellationRequested?null:{highlights:u,start:r[0]-1,end:r[1]}}async requestAllHighlights(e,t){let{doc:i}=this,r=_.getLegend(i.textDocument),o=_.hasSemanticTokensEdits(i.textDocument),s=t?null:this.previousResults,a=i.version,l;if(o&&(s==null?void 0:s.resultId)?l=await _.provideDocumentSemanticTokensEdits(i.textDocument,s.resultId,e):l=await _.provideDocumentSemanticTokens(i.textDocument,e),e.isCancellationRequested||l==null)return;let u=[];return vo.SemanticTokens.is(l)?u=l.data:s&&Array.isArray(l.edits)&&(u=s.tokens,l.edits.forEach(c=>{u.splice(c.start,c.deleteCount?c.deleteCount:0,...c.data??[])})),this.previousResults={resultId:l.resultId,tokens:u,version:a},await this.getTokenRanges(u,r,e)}clearHighlight(){this.previousResults=void 0,this._highlights=void 0,this.regions.clear(),this.buffer.clearNamespace(Xo)}abandonResult(){this.previousResults=void 0}cancel(e=!1){this.rangeTokenSource&&(this.rangeTokenSource.cancel(),this.rangeTokenSource.dispose(),this.rangeTokenSource=null),!e&&(this.regions.clear(),this.highlight.clear(),this.tokenSource&&(this.tokenSource.cancel(),this.tokenSource.dispose(),this.tokenSource=null))}dispose(){this.cancel(),this.clearHighlight(),this._onDidRefresh.dispose()}};var nft=q()("semanticTokens"),BD="Statement",ay=class{constructor(e){this.nvim=e;this.disposables=[];this.highlightGroups=v.env.semanticHighlights.slice(),this.floatFactory=D.createFloatFactory({title:"Semantic token info",highlight:"Normal",borderhighlight:"MoreMsg",border:[1,1,1,1]}),v.onDidChangeConfiguration(t=>{for(let i of this.highlighters.items)t.affectsConfiguration("semanticTokens"),i.doc&&i.loadConfiguration()},this,this.disposables),ue.register({id:"semanticTokens.checkCurrent",execute:async()=>{await this.showHighlightInfo()}},!1,"show semantic tokens highlight information of current buffer"),ue.register({id:"semanticTokens.refreshCurrent",execute:()=>this.highlightCurrent()},!1,"refresh semantic tokens highlight of current buffer."),ue.register({id:"semanticTokens.inspect",execute:()=>this.inspectSemanticToken()},!1,"Inspect semantic token information at cursor position."),ue.register({id:"semanticTokens.clearCurrent",execute:async()=>{(await e.buffer).clearNamespace(Xo,0,-1)}},!1,"clear semantic tokens highlight of current buffer"),ue.register({id:"semanticTokens.clearAll",execute:async()=>{let t=await e.buffers;for(let i of t)i.clearNamespace(Xo,0,-1)}},!1,"clear semantic tokens highlight of all buffers"),this.highlighters=v.registerBufferSync(t=>new sy(this.nvim,t,this.highlightGroups)),_.onDidSemanticTokensRefresh(async t=>{let i=await this.nvim.call("coc#window#bufnrs");for(let r of this.highlighters.items){let o=v.getDocument(r.bufnr);!o||!v.match(t,o.textDocument)||(r.abandonResult(),i.includes(r.bufnr)&&r.highlight())}},null,this.disposables),P.on("BufWinEnter",async t=>{let i=this.highlighters.getItem(t);i&&await i.onShown()},null,this.disposables),P.on("CursorMoved",async t=>{let i=this.highlighters.getItem(t);i&&await i.onCursorMoved()},null,this.disposables)}async inspectSemanticToken(){let e=await this.getCurrentItem();if(!e||!e.enabled){if(e)try{e.checkState()}catch(a){D.showErrorMessage(a.message)}else{let a=await v.document;D.showErrorMessage(`Document not attached, ${a==null?void 0:a.notAttachReason}`)}this.floatFactory.close();return}let[t,i,r]=await this.nvim.call("getcurpos",[]),s=(e.highlights??[]).find(a=>{let l=r-1;return a.range[0]===i-1&&l>=a.range[1]&&l<a.range[2]});if(s){let a=s.tokenModifiers||[],l=[];if(s.hlGroup){let c=17;l.push({lnum:2,colStart:c,colEnd:c+s.hlGroup.length,hlGroup:s.hlGroup})}let u=[{filetype:"txt",content:`Type: ${s.tokenType}
|
||
Modifiers: ${a.join(", ")}
|
||
Highlight group: ${s.hlGroup||""}`,highlights:l}];await this.floatFactory.show(u)}else this.floatFactory.close()}async fetchHighlightGroups(){let e=await this.nvim.call("coc#util#semantic_hlgroups"),t=this.highlightGroups.length;this.highlightGroups.splice(0,t,...e)}async getCurrentItem(){let e=await this.nvim.buffer,t=this.highlighters.getItem(e.id);return t}getItem(e){return this.highlighters.getItem(e)}async highlightCurrent(){let e=await this.getCurrentItem();if(!e||!e.enabled)throw new Error("Unable to perform semantic highlights for current buffer.");await this.fetchHighlightGroups(),await e.forceHighlight()}async showHighlightInfo(){let e=await this.nvim.buffer,{nvim:t}=this,i=this.highlighters.getItem(e.id);if(!i)return t.echoError("Document not attached.");let r=new Hi;t.pauseNotification(),t.command(`vs +setl\\ buftype=nofile __coc_semantic_highlights_${e.id}__`,!0),t.command("setl bufhidden=wipe noswapfile nobuflisted wrap undolevels=-1",!0),t.call("bufnr",["%"],!0);let o=await t.resumeNotification();r.addLine("Semantic highlights info",BD),r.addLine("");try{i.checkState();let a=i.highlights??[];r.addLine("The number of semantic tokens: "),r.addText(String(a.length),"Number"),r.addLine(""),r.addLine("Semantic highlight groups used by current buffer",BD),r.addLine("");let l=Ai(a.filter(h=>h.hlGroup!=null).map(({hlGroup:h})=>h));for(let h of l)r.addTexts([{text:"-",hlGroup:"Comment"},{text:" "},{text:h,hlGroup:h}]);r.addLine(""),r.addLine("Tokens types that current Language Server supported:",BD),r.addLine("");let u=v.getDocument(i.bufnr),c=_.getLegend(u.textDocument)??_.getLegend(u.textDocument,!0);if(c.tokenTypes.length){for(let h of[...new Set(c.tokenTypes)]){let d=Fd+_n(h);r.addTexts([{text:"-",hlGroup:"Comment"},{text:" "},{text:d,hlGroup:d}])}r.addLine("")}else r.addLine("No token types supported","Comment"),r.addLine("");if(r.addLine("Tokens modifiers that current Language Server supported:",BD),r.addLine(""),c.tokenModifiers.length){for(let h of[...new Set(c.tokenModifiers)]){let d=Fd+_n(h);r.addTexts([{text:"-",hlGroup:"Comment"},{text:" "},{text:d,hlGroup:d}])}r.addLine("")}else r.addLine("No token modifiers exist","Comment"),r.addLine("")}catch(a){r.addLine(a instanceof Error?a.message:a.toString(),"Error")}t.pauseNotification();let s=o[0][2];r.render(t.createBuffer(s)),t.resumeNotification(!0,!0)}dispose(){this.floatFactory.dispose(),this.highlighters.dispose(),U(this.disposables)}};var Mie=S(Pn()),ly=S(W());fe();de();re();_e();xe();ie();var fft=q()("handler-signature"),uy=class{constructor(e,t){this.nvim=e;this.handler=t;this.disposables=[];this.loadConfiguration(),this.signatureFactory=D.createFloatFactory(Object.assign({preferTop:this.config.preferAbove,autoHide:!1,modes:["i","ic","s"]},this.config.floatConfig)),this.disposables.push(this.signatureFactory),v.onDidChangeConfiguration(this.loadConfiguration,this,this.disposables),P.on("CursorMovedI",(0,Mie.default)(this.checkCurosr.bind(this),100),null,this.disposables),P.on(["InsertLeave","BufEnter"],()=>{var i;(i=this.tokenSource)==null||i.cancel()},null,this.disposables),P.on("TextChangedI",()=>{this.config.hideOnChange&&this.signatureFactory.close()},null,this.disposables),P.on("TextInsert",async(i,r,o)=>{if(!this.config.enableTrigger)return;let s=v.getDocument(i);!s||!s.attached||!_.shouldTriggerSignatureHelp(s.textDocument,o)||await this._triggerSignatureHelp(s,{line:r.lnum-1,character:r.pre.length},!1)},null,this.disposables),D.onDidChangeActiveTextEditor(()=>{this.loadConfiguration()},null,this.disposables)}checkCurosr(e,t){let i=this.lastPosition,r=this.signatureFactory;if(!i||e!==i.bufnr||r.window==null)return;let o=v.getDocument(e);if(!o||t[0]!=i.lnum||t[1]<i.col){r.close();return}let s=o.getline(i.lnum-1);if(tt(s,i.col-1,t[1]-1).endsWith(")"))return r.close()}loadConfiguration(e){var t;if(!e||e.affectsConfiguration("signature")){let i=(t=D.activeTextEditor)==null?void 0:t.document,r=v.getConfiguration("signature",i);this.config={target:r.get("target","float"),floatConfig:r.get("floatConfig",{}),enableTrigger:r.get("enable",!0),wait:Math.max(r.get("triggerSignatureWait",500),200),preferAbove:r.get("preferShownAbove",!0),hideOnChange:r.get("hideOnTextChange",!1)}}}async triggerSignatureHelp(){let{doc:e,position:t}=await this.handler.getCurrentState();return _.hasProvider("signature",e.textDocument)?await this._triggerSignatureHelp(e,t,!0,0):!1}async _triggerSignatureHelp(e,t,i=!0,r=0){var d;(d=this.tokenSource)==null||d.cancel();let o=this.tokenSource=new ly.CancellationTokenSource,s=o.token;s.onCancellationRequested(()=>{o.dispose(),this.tokenSource=void 0});let{target:a}=this.config,l=this.timer=setTimeout(()=>{o.cancel()},this.config.wait);await e.patchChange(!0);let u=await _.getSignatureHelp(e.textDocument,t,s,{isRetrigger:this.signatureFactory.checkRetrigger(e.bufnr),triggerKind:i?ly.SignatureHelpTriggerKind.Invoked:ly.SignatureHelpTriggerKind.TriggerCharacter});if(clearTimeout(l),s.isCancellationRequested)return!1;if(!u||u.signatures.length==0)return this.signatureFactory.close(),!1;let{activeSignature:c,signatures:h}=u;if(c){let[g]=h.splice(c,1);g&&h.unshift(g)}return a=="echo"?this.echoSignature(u):await this.showSignatureHelp(e,t,u,r),!0}async showSignatureHelp(e,t,i,r){let{signatures:o,activeParameter:s}=i;s=typeof s=="number"?s:void 0;let a=null,l=r,u=o.reduce((h,d,g)=>{var b,w;let p=null,f=d.activeParameter??s;f===void 0&&((b=d.parameters)==null?void 0:b.length)>0&&(f=0);let m=d.label.indexOf("(");if(g==0&&typeof f=="number"){let x=(w=d.parameters)==null?void 0:w[f];if(x){let T=d.label.slice(m==-1?0:m);if(a=x.documentation,typeof x.label=="string"){let R=T.slice(0),F=R.match(new RegExp("\\b"+x.label.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")+"\\b")),N=F?F.index:R.indexOf(x.label);N!=-1&&(p=[N+m,N+x.label.length+m])}else p=x.label}}if(p==null&&(p=[m+1,m+1]),r==l&&(r=r+p[0]+1),h.push({content:d.label,filetype:e.filetype,active:p}),a){let x=typeof a=="string"?a:a.value;x.trim().length&&h.push({content:x,filetype:Wg(d.documentation)?"markdown":"txt"})}if(g==0&&d.documentation){let{documentation:x}=d,T=typeof x=="string"?x:x.value;T.trim().length&&h.push({content:T,filetype:Wg(d.documentation)?"markdown":"txt"})}return h},[]),c=e.getline(t.line,!1).slice(0,t.character);this.lastPosition={bufnr:e.bufnr,lnum:t.line+1,col:Q(c)+1},await this.signatureFactory.show(u,{offsetX:r})}echoSignature(e){var s;let{signatures:t,activeParameter:i}=e,r=v.env.columns;t=t.slice(0,v.env.cmdheight);let o=[];for(let a of t){let l=[],{label:u}=a;u=u.replace(/\n/g," "),u.length>=r-16&&(u=u.slice(0,r-16)+"...");let c=u.indexOf("(");if(c==-1)l=[{text:u,type:"Normal"}];else{l.push({text:u.slice(0,c),type:"Label"});let h=u.slice(c);if(o.length==0&&i!=null){let d=(s=a.parameters)==null?void 0:s[i];if(d){let g,p;if(typeof d.label=="string"){let f=h.slice(0),m=f.match(new RegExp("\\b"+d.label.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")+"\\b")),b=m?m.index:f.indexOf(d.label);b==-1?l.push({text:h,type:"Normal"}):(g=b,p=b+d.label.length)}else[g,p]=d.label,g=g-c,p=p-c;g!=null&&p!=null&&(l.push({text:h.slice(0,g),type:"Normal"}),l.push({text:h.slice(g,p),type:"MoreMsg"}),l.push({text:h.slice(p),type:"Normal"}))}}else l.push({text:h,type:"Normal"})}o.push(l)}this.nvim.callTimer("coc#ui#echo_signatures",[o],!0)}dispose(){U(this.disposables),this.timer&&clearTimeout(this.timer)}};var cl=S(W());fe();de();re();et();xt();_e();xe();ie();var qie=S(Pn()),ul=S(W());de();re();ie();var WD=S(W());tb();xt();function Oie(n){let e=[],t=n.slice();return t.sort(Aie),t.forEach(i=>Nie(e,i,0)),e}function Aie(n,e){let t=n.selectionRange,i=e.selectionRange;return Me(t.start,i.start)}function Nie(n,e,t){let{name:i,selectionRange:r,detail:o,kind:s,children:a,range:l,tags:u}=e,{start:c}=r||l,h={col:c.character+1,lnum:c.line+1,text:i,level:t,kind:Ms(s),range:l,selectionRange:r};if(o&&(h.detail=o),u&&u.includes(WD.SymbolTag.Deprecated)&&(h.deprecated=!0),n.push(h),a&&a.length){a.sort(Aie);for(let d of a)Nie(n,d,t+1)}}function Hke(n){return n&&WD.DocumentSymbol.is(n)}function Hie(n){return Hke(n[0])}var cy=class{constructor(e,t){this.bufnr=e;this.autoUpdateBufnrs=t;this.disposables=[];this._onDidUpdate=new ul.Emitter;this.onDidUpdate=this._onDidUpdate.event;this.fetchSymbols=(0,qie.default)(()=>{this._fetchSymbols().logError()},500)}async getSymbols(){var t;let e=v.getDocument(this.bufnr);return e?(await e.patchChange(),this.autoUpdateBufnrs.add(this.bufnr),e.version==this.version&&((t=this.symbols)==null?void 0:t.length)?this.symbols:(this.cancel(),await this._fetchSymbols(),this.symbols)):[]}onChange(e){e.contentChanges.length!==0&&(this.cancel(),this.autoUpdateBufnrs.has(this.bufnr)&&this.fetchSymbols())}get textDocument(){var e;return(e=v.getDocument(this.bufnr))==null?void 0:e.textDocument}async _fetchSymbols(){let{textDocument:e}=this;if(!e)return;let{version:t}=e,i=this.tokenSource=new ul.CancellationTokenSource,{token:r}=i,o=await _.getDocumentSymbol(e,r);if(this.tokenSource=void 0,o==null||r.isCancellationRequested)return;let s;Hie(o)?s=o:s=o.map(a=>{let l=ul.DocumentSymbol.create(a.name,"",a.kind,a.location.range,a.location.range);return a.deprecated&&(l.tags=[ul.SymbolTag.Deprecated]),l}),this.version=t,this.symbols=s,this._onDidUpdate.fire(s)}cancel(){this.fetchSymbols.clear(),this.tokenSource&&(this.tokenSource.cancel(),this.tokenSource.dispose(),this.tokenSource=null)}dispose(){this.cancel(),this.symbols=void 0,this._onDidUpdate.dispose(),U(this.disposables)}};var YD=S(W());fe();de();qe();var Bie=S(W());Jt();re();yf();function qke(n){return n?typeof n.text=="string"&&typeof n.hlGroup=="string":!1}function Bke(n,e){return n.label===e.label&&n.deprecated===e.deprecated&&n.key===e.key}function Wke(n,e){return n.length!==e.length?!1:n.every((t,i)=>Bke(t,e[i]))}var hy=class{constructor(e){this.opts=e;this.disposables=[];this._onDidChangeTreeData=new Bie.Emitter;this.onDidChangeTreeData=this._onDidChangeTreeData.event;this.invokeCommand=`_invoke_${oe()}`,this.disposables.push(ue.registerCommand(this.invokeCommand,async t=>{typeof e.handleClick=="function"?await e.handleClick(t):console.error("Handler not found")},null,!0)),typeof e.resolveActions=="function"&&(this.resolveActions=e.resolveActions.bind(this))}iterate(e,t,i,r){let o=r(e,t,i);if(o===!1)return!1;if(Array.isArray(e.children)){for(let s of e.children)if(this.iterate(s,e,i+1,r)===!1)return!1}return o}updateNodes(e,t,i,r=!0){let o=Wke(e,t),s=(a,l,u)=>{var h,d,g,p,f,m;let c=!1;for(let b of Object.keys(l))["children","key"].includes(b)||(a[b]=l[b]);if(((h=a.children)==null?void 0:h.length)&&!((d=l.children)!=null&&d.length)&&(delete a.children,c=!0),!((g=a.children)!=null&&g.length)&&((p=l.children)==null?void 0:p.length)&&(a.children=l.children,c=!0),c){u&&this._onDidChangeTreeData.fire(a);return}((f=a.children)==null?void 0:f.length)&&((m=l.children)==null?void 0:m.length)&&this.updateNodes(a.children,l.children,a,u)};if(o)for(let a=0;a<e.length;a++)s(e[a],t[a],r);else{let a=e.splice(0,e.length),l=new Set;for(let u=0;u<t.length;u++){let c=t[u],h;if(c.key?h=a.findIndex((d,g)=>!l.has(g)&&d.key==c.key):h=a.findIndex((d,g)=>!l.has(g)&&d.label==c.label),h===-1)e[u]=c;else{l.add(h);let d=a[h];s(d,c,!1),e[u]=d}}r&&this._onDidChangeTreeData.fire(i)}}update(e,t){if(!!this.data)return t?(this.data=e||[],this._onDidChangeTreeData.fire(void 0)):this.updateNodes(this.data,e||[],void 0),this.data}getTreeItem(e){var o;let t=e.label,{expandLevel:i}=this.opts,r;if(!((o=e.children)!=null&&o.length))r=new lo(t);else if(i&&i>0){let s=this.getLevel(e),a=s&&s<=i?2:1;r=new lo(t,a)}else r=new lo(t,1);if(r.description=e.description,e.deprecated&&(r.deprecated=!0),e.tooltip&&(r.tooltip=e.tooltip),qke(e.icon))r.icon=e.icon;else if(typeof this.opts.resolveIcon=="function"){let s=this.opts.resolveIcon(e);s&&(r.icon=s)}return r}async getChildren(e){if(e)return e.children||[];if(this.data)return this.data;let t=await Promise.resolve(this.opts.provideData());if(!Array.isArray(t))throw new Error("Unable to fetch data");return this.data=t,t}getParent(e){if(!this.data)return;let t;for(let i of this.data)if(this.iterate(i,null,0,(o,s)=>{if(o===e)return t=s,!1})===!1)break;return t}getLevel(e){if(!this.data)return;let t=0;for(let i of this.data)if(this.iterate(i,null,1,(o,s,a)=>{if(o===e)return t=a,!1})===!1)break;return t}async resolveTreeItem(e,t,i){if(typeof this.opts.resolveItem=="function"){let r=await Promise.resolve(this.opts.resolveItem(e,t,i));r&&Object.assign(e,r)}return e.command||(e.command={title:`invoke ${t.label}`,command:this.invokeCommand,arguments:[t]}),e}dispose(){this.data=[],this._onDidChangeTreeData.dispose(),typeof this.opts.onDispose=="function"&&this.opts.onDispose(),U(this.disposables)}};vf();re();xt();xe();ie();var tmt=q()("symbols-outline"),dy=class{constructor(e,t,i){this.nvim=e;this.buffers=t;this.handler=i;this.treeViewList=[];this.providersMap=new Map;this.sortByMap=new Map;this.disposables=[];this.loadConfiguration(),v.onDidChangeConfiguration(this.loadConfiguration,this,this.disposables),v.onDidCloseTextDocument(async r=>{let{bufnr:o}=r,s=this.providersMap.get(o);!s||await e.call("bufloaded",[o])||(this.providersMap.delete(o),s.dispose())},null,this.disposables),D.onDidChangeActiveTextEditor(async r=>{if(!this.config.checkBufferSwitch)return;this.treeViewList.find(s=>s.visible&&s.targetTabnr==r.tabpagenr)&&(await this.showOutline(r.document.bufnr,r.tabpagenr),await e.command(`noa call win_gotoid(${r.winid})`))},null,this.disposables),P.on("CursorHold",async(r,o)=>{if(!this.config.followCursor||!this.providersMap.get(r))return;let a=await e.call("tabpagenr"),l=this.treeViewList.find(u=>u.visible&&u.targetBufnr==r&&u.targetTabnr==a);!l||await this.revealPosition(r,l,YD.Position.create(o[0]-1,o[1]-1))},null,this.disposables)}async revealPosition(e,t,i){let r=this.providersMap.get(e),o=await Promise.resolve(r.getChildren()),s=Yke(i,o);s&&await t.reveal(s)}loadConfiguration(e){if(!e||e.affectsConfiguration("outline")){let t=v.getConfiguration("outline",null);this.config={splitCommand:t.get("splitCommand"),switchSortKey:t.get("switchSortKey"),togglePreviewKey:t.get("togglePreviewKey"),followCursor:t.get("followCursor"),keepWindow:t.get("keepWindow"),expandLevel:t.get("expandLevel"),autoWidth:t.get("autoWidth"),checkBufferSwitch:t.get("checkBufferSwitch"),detailAsDescription:t.get("detailAsDescription"),sortBy:t.get("sortBy"),showLineNumber:t.get("showLineNumber"),codeActionKinds:t.get("codeActionKinds"),autoPreview:t.get("autoPreview"),previewMaxWidth:t.get("previewMaxWidth"),previewBorder:t.get("previewBorder"),previewBorderRounded:t.get("previewBorderRounded"),previewHighlightGroup:t.get("previewHighlightGroup"),previewBorderHighlightGroup:t.get("previewBorderHighlightGroup"),previewWinblend:t.get("previewWinblend")}}}convertSymbolToNode(e,t){var s;let i=[],{detailAsDescription:r,showLineNumber:o}=this.config;return r&&e.detail&&i.push(e.detail),o&&i.push(`${e.selectionRange.start.line+1}`),{label:e.name,tooltip:r?void 0:e.detail,description:i.join(" "),icon:this.handler.getIcon(e.kind),deprecated:(s=e.tags)==null?void 0:s.includes(YD.SymbolTag.Deprecated),kind:e.kind,range:e.range,selectRange:e.selectionRange,children:Array.isArray(e.children)?e.children.map(a=>this.convertSymbolToNode(a,t)).sort(t):void 0}}setMessage(e,t){this.treeViewList.forEach(i=>{i.valid&&i.targetBufnr==e&&(i.message=t)})}convertSymbols(e,t){let i=this.getSortBy(e),r=(o,s)=>i==="name"?o.label<s.label?-1:1:i==="category"?o.kind==s.kind?o.label<s.label?-1:1:o.kind-s.kind:Me(o.selectRange.start,s.selectRange.start);return t.map(o=>this.convertSymbolToNode(o,r)).sort(r)}onSymbolsUpdate(e,t){let i=this.providersMap.get(e);i&&i.update(this.convertSymbols(e,t))}createProvider(e){let{nvim:t}=this,i=new hy({expandLevel:this.config.expandLevel,provideData:async()=>{let r=this.buffers.getItem(e);if(!r)throw new Error("Document not attached");let o=v.getDocument(e);if(!_.hasProvider("documentSymbol",o.textDocument))throw new Error("Document symbol provider not found");let s=_.getDocumentSymbolMetadata(o.textDocument);s&&s.label&&this.treeViewList.filter(u=>u.valid&&u.targetBufnr==e).forEach(u=>u.description=s.label),this.setMessage(e,"Loading document symbols");let a=await r.getSymbols();if(!a||a.length==0)throw new Error("Empty symbols returned from language server. ");return this.setMessage(e,void 0),this.convertSymbols(e,a)},handleClick:async r=>{let o=await t.call("bufwinnr",[e]);if(o==-1)return;t.pauseNotification(),t.command(`${o}wincmd w`,!0);let s=r.selectRange.start;t.call("coc#cursor#move_to",[s.line,s.character],!0),t.command("normal! zz",!0);let a=t.createBuffer(e);a.highlightRanges("outline-hover","CocHoverRange",[r.selectRange]),t.command("redraw",!0),await t.resumeNotification(),setTimeout(()=>{a.clearNamespace("outline-hover"),t.command("redraw",!0)},300)},resolveActions:async(r,o)=>{let s=await t.call("bufwinnr",[e]);if(s==-1)return;let a=v.getDocument(e);return[...(await this.handler.getCodeActions(a,o.range,this.config.codeActionKinds)).map(c=>({title:c.title,handler:async()=>{let h=o.range.start;await t.command(`${s}wincmd w`),await this.nvim.call("coc#cursor#move_to",[h.line,h.character]),await this.handler.applyCodeAction(c)}})),{title:"Visual Select",handler:async c=>{await t.command(`${s}wincmd w`),await D.selectRange(c.range)}}]},onDispose:()=>{for(let r of this.treeViewList.slice())r.provider===i&&r.dispose()}});return i}getSortBy(e){return this.sortByMap.get(e)??this.config.sortBy}async showOutline(e,t){this.providersMap.has(e)||this.providersMap.set(e,this.createProvider(e));let i=this.treeViewList.find(r=>r.valid&&r.targetBufnr==e&&r.targetTabnr==t);if(!i){let{switchSortKey:r,togglePreviewKey:o}=this.config,s=this.config.autoPreview,a;i=new Fo("OUTLINE",{autoWidth:this.config.autoWidth,bufhidden:"hide",enableFilter:!0,treeDataProvider:this.providersMap.get(e)});let l=this.getSortBy(e),u;i.description=`${l[0].toUpperCase()}${l.slice(1)}`,this.treeViewList.push(i);let c=P.on("BufEnter",h=>{a&&h!==a&&(u=void 0,this.closePreview())});i.onDispose(()=>{let h=this.treeViewList.findIndex(d=>d===i);h!==-1&&this.treeViewList.splice(h,1),c.dispose(),this.closePreview()}),i.onDidCursorMoved(async h=>{s&&u!==h&&(u=h,a=await this.doPreview(e,h))}),i.registerLocalKeymap("n",r,async()=>{let h=["category","name","position"],d=this.getSortBy(e),g=h.map(w=>({text:w,disabled:w===d})),p=await D.showMenuPicker(g,{title:"Choose sort method"});if(p<0)return;let f=h[p];this.sortByMap.set(e,f),this.treeViewList.filter(w=>w.targetBufnr==e).forEach(w=>{w.description=`${f[0].toUpperCase()}${f.slice(1)}`});let b=this.buffers.getItem(e);this.onSymbolsUpdate(e,b.symbols)},!0),i.registerLocalKeymap("n",o,async h=>{s=!s,s?a=await this.doPreview(e,h):(u=void 0,this.closePreview())},!0)}return await i.show(this.config.splitCommand),i}async doPreview(e,t){if(!t){this.closePreview();return}let i={bufnr:e,range:t.range,border:this.config.previewBorder,rounded:this.config.previewBorderRounded,maxWidth:this.config.previewMaxWidth,highlight:this.config.previewHighlightGroup,borderhighlight:this.config.previewBorderHighlightGroup,winblend:this.config.previewWinblend};return await this.nvim.call("coc#ui#outline_preview",[i])}closePreview(){this.nvim.call("coc#ui#outline_close_preview",[],!0)}async show(e){let[t,i,r]=await this.nvim.eval('[bufnr("%"),tabpagenr(),win_getid()]'),o=v.getDocument(t);if(o&&!o.attached){D.showErrorMessage(`Unable to show outline, ${o.notAttachReason}`);return}let s=await D.getCursorPosition(),a=await this.showOutline(t,i);if(e==1||e===void 0&&this.config.keepWindow)await this.nvim.command(`noa call win_gotoid(${r})`);else if(this.config.followCursor){let l=a.onDidRefrash(async()=>{l.dispose(),await this.nvim.eval('bufnr("%")')==t&&a.visible&&await this.revealPosition(t,a,s)})}}has(e){return this.providersMap.has(e)}async hide(){let e=await this.nvim.call("coc#window#find",["cocViewId","OUTLINE"]);e!=-1&&await this.nvim.call("coc#window#close",[e])}dispose(){for(let e of this.treeViewList)e.dispose();this.treeViewList=[];for(let e of this.providersMap.values())e.dispose();this.providersMap.clear(),U(this.disposables)}};function Yke(n,e){let t,i=r=>{for(let o of r)if(ft(n,o.range)==0){t=o,Array.isArray(o.children)&&i(o.children);break}};return i(e),t}var gy=class{constructor(e,t){this.nvim=e;this.handler=t;this.disposables=[];this.autoUpdateBufnrs=new Set;this.buffers=v.registerBufferSync(i=>{if(i.buftype!="")return;let r=new cy(i.bufnr,this.autoUpdateBufnrs);return r.onDidUpdate(o=>{!this.outline||this.outline.onSymbolsUpdate(r.bufnr,o)}),r}),this.outline=new dy(e,this.buffers,t),P.on("CursorHold",async(i,r)=>{if(!this.buffers.getItem(i)||!this.autoUpdate(i))return;let o=v.getDocument(i),s=Gi(o.getline(r[0]-1),r[1]-1),a=cl.Position.create(r[0]-1,s),l=await this.getFunctionSymbol(i,a);e.createBuffer(i).setVar("coc_current_function",l??"",!0),this.nvim.call("coc#util#do_autocmd",["CocStatusChange"],!0)},null,this.disposables),P.on("InsertEnter",i=>{let r=this.buffers.getItem(i);r&&r.cancel()},null,this.disposables)}autoUpdate(e){let t=v.getDocument(e);return v.getConfiguration("coc.preferences",t).get("currentFunctionSymbolAutoUpdate",!1)}get labels(){return v.getConfiguration("suggest").get("completionItemKindLabels",{})}async getWorkspaceSymbols(e){this.handler.checkProvier("workspaceSymbols",null);let t=new cl.CancellationTokenSource;return await _.getWorkspaceSymbols(e,t.token)}async resolveWorkspaceSymbol(e){var i;if((i=e.location)!=null&&i.uri)return e;let t=new cl.CancellationTokenSource;return await _.resolveWorkspaceSymbol(e,t.token)}async getDocumentSymbols(e){if(!e){let r=await v.document;if(!r||!r.attached)return;await Nt(1),e=r.bufnr}let t=this.buffers.getItem(e);if(!t)return;let i=await t.getSymbols();return i?Oie(i):void 0}async getFunctionSymbol(e,t){let i=await this.getDocumentSymbols(e),r=this.nvim.createBuffer(e);if(!i||i.length===0)return r.setVar("coc_current_function","",!0),this.nvim.call("coc#util#do_autocmd",["CocStatusChange"],!0),"";i=i.filter(a=>["Class","Method","Function","Struct"].includes(a.kind));let o="",s=this.labels;for(let a of i.reverse())if(a.range&&ft(t,a.range)==0&&!a.text.endsWith(") callback")){o=a.text;let l=s[a.kind.toLowerCase()];l&&(o=`${l} ${o}`);break}return o}async getCurrentFunctionSymbol(){let e=await this.nvim.call("bufnr",["%"]),t=v.getDocument(e);if(!t||!t.attached)return"";if(!_.hasProvider("documentSymbol",t.textDocument))return;let i=await D.getCursorPosition();return await this.getFunctionSymbol(e,i)}async selectSymbolRange(e,t,i){let{doc:r}=await this.handler.getCurrentState();this.handler.checkProvier("documentSymbol",r.textDocument);let o;if(t)o=await D.getSelectedRange(t);else{let l=await D.getCursorPosition();o=cl.Range.create(l,l)}let s=await this.getDocumentSymbols(r.bufnr);if(!s||s.length===0){D.showWarningMessage("No symbols found");return}s=s.filter(l=>i.includes(l.kind));let a;for(let l of s.reverse())if(l.range&&!ye(l.range,o)&&Xt(o,l.range)){a=l.range;break}if(e&&a){let{start:l,end:u}=a,c=r.getline(l.line+1),h=r.getline(u.line-1);a=cl.Range.create(l.line+1,c.match(/^\s*/)[0].length,u.line-1,h.length)}a?await D.selectRange(a):["v","V",""].includes(t)&&await this.nvim.command("normal! gv")}async showOutline(e){await this.outline.show(e)}async hideOutline(){await this.outline.hide()}hasOutline(e){return this.outline.has(e)}dispose(){this.outline.dispose(),this.buffers.dispose(),U(this.disposables)}};tb();var Wie=S(Pn()),ZD=S(W());fe();de();xt();_e();xe();ie();var Zke=q()("handler-linkedEditing"),py=class{constructor(e,t){this.nvim=e;this.changing=!1;this.checkPosition=(0,Wie.default)(this._checkPosition,100),t.addDisposable(P.on("CursorMoved",(i,r)=>{this.cancel(),this.checkPosition(i,[r[0],r[1]])})),t.addDisposable(P.on("CursorMovedI",(i,r)=>{this.cancel(),this.checkPosition(i,[r[0],r[1]])})),t.addDisposable(D.onDidChangeActiveTextEditor(()=>{this.cancel(),this.cancelEdit()})),t.addDisposable(P.on("InsertCharPre",(i,r)=>{if(r!==this.bufnr)return;let o=v.getDocument(r);this.wordPattern?new RegExp(this.wordPattern).test(i)||this.cancelEdit():!o.isWord(i)&&i!=="-"&&this.cancelEdit()})),t.addDisposable(v.onDidChangeTextDocument(async i=>{await this.onChange(i)}))}cancelEdit(){var e;(e=this.window)==null||e.clearMatchGroup("^CocLinkedEditing"),this.ranges=void 0,this.window=void 0,this.bufnr=void 0}async onChange(e){if(e.bufnr!==this.bufnr||this.changing||!this.ranges)return;if(e.contentChanges.length===0){this.doHighlights();return}let t=e.contentChanges[0],{text:i,range:r}=t,o=this.ranges.filter(s=>!(!Gl(r,s.range)||Fw(r,s.range)&&(i.includes(`
|
||
`)||!Lt(r))));if(o.length==1&&Xt(r,o[0].range)){if(i.includes(`
|
||
`)){this.cancelEdit();return}Zke.debug("affected single range"),await this.applySingleEdit(o[0],{range:r,newText:i})}else this.cancelEdit()}async applySingleEdit(e,t){let{bufnr:i,ranges:r}=this,o=v.getDocument(i);r.filter(c=>c!==e&&c.position.line==e.position.line).forEach(c=>c.adjustFromEdit(t));let a=HD(e,t.range,t.newText),l=Ib(a);r.forEach(c=>c.applyChange(a));let u=r.filter(c=>c!==e).map(c=>c.textEdit);if(this.changing=!0,await o.applyEdits(u,!0,!0),this.changing=!1,l!=0)for(let c of r){let h=Fb(c,this.ranges,e);c.move(h*l)}this.doHighlights()}doHighlights(){let{window:e,ranges:t,nvim:i}=this;e&&t&&(i.pauseNotification(),e.clearMatchGroup("^CocLinkedEditing"),e.highlightRanges("CocLinkedEditing",t.map(r=>r.range),99,!0),i.resumeNotification(!0,!0))}_checkPosition(e,t){if(P.pumvisible||!v.isAttached(e))return;let i=v.getDocument(e);if(!v.getConfiguration("coc.preferences",i).get("enableLinkedEditing",!1)||!_.hasProvider("linkedEditing",i.textDocument))return;let s=Gi(i.getline(t[0]-1),t[1]-1),a=ZD.Position.create(t[0]-1,s);if(this.ranges){if(this.ranges.some(l=>ft(a,l.range)==0))return;this.cancelEdit()}this.enable(i,a)}async enable(e,t){let i=e.textDocument,o=(this.tokenSource=new ZD.CancellationTokenSource).token,s=await this.nvim.window,a=await _.provideLinkedEdits(i,t,o);if(o.isCancellationRequested||!a||a.ranges.length==0)return;let l=a.ranges.map(u=>new Uu(u.start.line,u.start.character,i.getText(u)));this.wordPattern=a.wordPattern,this.bufnr=e.bufnr,this.window=s,this.ranges=l,this.doHighlights()}cancel(){this.tokenSource&&(this.tokenSource.cancel(),this.tokenSource=null)}};var Yie=S(W());Jt();fe();de();re();xe();ie();var wo=S(W());fe();de();L_();re();xr();xt();_e();ie();var qmt=q()("inlayHint-buffer"),ec,Jke=100;function tj(n){switch(n){case wo.InlayHintKind.Parameter:return"CocInlayHintParameter";case wo.InlayHintKind.Type:return"CocInlayHintType";default:return"CocInlayHint"}}var fy=class{constructor(e,t){this.nvim=e;this.doc=t;this.regions=new ll;this.currentHints=[];this._onDidRefresh=new wo.Emitter;this.onDidRefresh=this._onDidRefresh.event;this.loadConfiguration(),this.render=lw(()=>{this.renderRange()},Jke),this.render()}loadConfiguration(){let e=v.getConfiguration("inlayHint",this.doc),t=this.config&&this.config.enable!=e.enable;if(this.config={enable:e.get("enable"),display:e.get("display",!0),filetypes:e.get("filetypes"),refreshOnInsertMode:e.get("refreshOnInsertMode"),enableParameter:e.get("enableParameter"),typeSeparator:e.get("typeSeparator",""),parameterSeparator:e.get("parameterSeparator",""),subSeparator:e.get("subSeparator"," ")},t){let{enable:i,display:r}=this.config;i?(this.clearCache(),this.clearVirtualText()):r&&this.renderRange()}}onInsertLeave(){this.config.refreshOnInsertMode||this.render()}onInsertEnter(){this.config.refreshOnInsertMode||this.cancel()}get current(){return this.currentHints}get enabled(){return!this.config.display||!this.configEnabled?!1:_.hasProvider("inlayHint",this.doc.textDocument)}get configEnabled(){let{filetypes:e,enable:t}=this.config;return Array.isArray(e)?e.includes("*")||e.includes(this.doc.filetype):t===!0}toggle(){if(!_.hasProvider("inlayHint",this.doc.textDocument))throw new Error("Inlay hint provider not found for current document");if(!this.configEnabled)throw new Error(`Filetype "${this.doc.filetype}" not enabled by inlayHint configuration`);this.config.display?(this.config.display=!1,this.clearCache(),this.clearVirtualText()):(this.config.display=!0,this.renderRange())}clearCache(){this.currentHints=[],this.regions.clear(),this.render.clear()}onTextChange(){this.clearCache(),this.cancel()}onChange(){this.cancel(),this.render()}cancel(){this.render.clear(),this.tokenSource&&(this.tokenSource.cancel(),this.tokenSource=null)}async requestInlayHints(e,t){try{return await _.provideInlayHints(this.doc.textDocument,e,t)}catch(i){!t.isCancellationRequested&&i instanceof ii&&this.render(500)}}async renderRange(){if(this.cancel(),P.insertMode&&!this.config.refreshOnInsertMode||!this.enabled)return;this.tokenSource=new wo.CancellationTokenSource;let e=this.tokenSource.token,t=await this.nvim.call("coc#window#visible_range",[this.doc.bufnr]);if(!Array.isArray(t)||t[1]<=0||e.isCancellationRequested||(ec||(ec=await this.nvim.createNamespace("coc-inlayHint")),e.isCancellationRequested||this.regions.has(t[0],t[1])))return;let i=wo.Range.create(t[0]-1,0,t[1],0),r=await this.requestInlayHints(i,e);r==null||e.isCancellationRequested||(this.regions.add(t[0],t[1]),this.config.enableParameter||(r=r.filter(o=>o.kind!==wo.InlayHintKind.Parameter)),this.currentHints=this.currentHints.filter(o=>ft(o.position,i)!==0),this.currentHints.push(...r),this.setVirtualText(i,r,v.env.isVim))}setVirtualText(e,t,i){let{nvim:r,doc:o}=this,s=o.buffer,{subSeparator:a,parameterSeparator:l,typeSeparator:u}=this.config,c=new Map;if(!i)for(let h of t){let{line:d}=h.position,g=c.get(d)??[];g.length>0&&g.push([a,a===" "?"Normal":tj(h.kind)]);let p=h.kind===wo.InlayHintKind.Parameter?l:u;g.push([p+Mf(h),tj(h.kind)]),c.set(d,g)}if(r.pauseNotification(),s.clearNamespace(ec,e.start.line,e.end.line+1),i)for(let h of t){let d=[],{position:g}=h,p=this.doc.getline(g.line),f=_t(p,g.character)+1;h.paddingLeft&&d.push([" ","Normal"]),d.push([Mf(h),tj(h.kind)]),h.paddingRight&&d.push([" ","Normal"]),s.setVirtualText(ec,g.line,d,{col:f})}else for(let[h,d]of c.entries())s.setExtMark(ec,h,0,{virt_text:d,virt_text_pos:"eol",hl_mode:"combine"});r.resumeNotification(!0,!0),this._onDidRefresh.fire()}clearVirtualText(){ec&&this.doc.buffer.clearNamespace(ec)}dispose(){this.cancel()}};var Gmt=q()("inlayHint-index"),my=class{constructor(e,t){this.disposables=[];this.buffers=v.registerBufferSync(i=>{if(!!v.env.virtualText)return new fy(e,i)}),this.disposables.push(this.buffers),v.onDidChangeConfiguration(i=>{for(let r of this.buffers.items)i.affectsConfiguration("inlayHint",r.doc)&&r.loadConfiguration()},null,this.disposables),_.onDidInlayHintRefresh(async i=>{for(let r of this.buffers.items)v.match(i,r.doc.textDocument)&&(r.clearCache(),_.hasProvider("inlayHint",r.doc.textDocument)?r.render():r.clearVirtualText())},null,this.disposables),P.on("InsertLeave",i=>{let r=this.buffers.getItem(i);r&&r.onInsertLeave()},null,this.disposables),P.on("InsertEnter",i=>{let r=this.buffers.getItem(i);r&&r.onInsertEnter()},null,this.disposables),P.on("CursorMoved",i=>{this.refresh(i)},null,this.disposables),P.on("WinScrolled",async i=>{let r=await e.call("winbufnr",[i]);r!=-1&&this.refresh(r)},null,this.disposables),this.disposables.push(ue.registerCommand("document.toggleInlayHint",i=>{this.toggle(i??v.bufnr)})),t.addDisposable(Yie.Disposable.create(()=>{U(this.disposables)}))}toggle(e){let t=this.getItem(e);try{if(!v.env.virtualText)throw new Error("virtual text requires nvim >= 0.5.0 or vim >= 9.0.0067, please upgrade your vim.");v.getAttachedDocument(e),t.toggle()}catch(i){D.showErrorMessage(i.message)}}getItem(e){return this.buffers.getItem(e)}refresh(e){let t=this.buffers.getItem(e);t&&t.render()}};var $ke=q()("Handler"),by=class{constructor(e){this.nvim=e;this.disposables=[];this.requestStatusItem=D.createStatusBarItem(0,{progress:!0}),P.on(["CursorMoved","CursorMovedI","InsertEnter","InsertSnippet","InsertLeave"],()=>{this.requestTokenSource&&(this.requestTokenSource.cancel(),this.requestTokenSource=null)},null,this.disposables),this.labels=v.getConfiguration("suggest").get("completionItemKindLabels",{}),this.fold=new Zb(e,this),this.links=new Gb(e,this),this.codeLens=new Hb(e),this.colors=new Wb(e,this),this.format=new Jb(e,this),this.symbols=new gy(e,this),this.refactor=new ty(e,this),this.hover=new Xb(e,this),this.locations=new zb(e,this),this.signature=new uy(e,this),this.rename=new ny(e,this),this.workspace=new ry(e,this),this.codeActions=new Ab(e,this),this.commands=new Yb(e,v.env),this.callHierarchy=new Ku(e,this),this.typeHierarchy=new Vu(e,this),this.documentHighlighter=new $b(e,this),this.semanticHighlighter=new ay(e),this.selectionRange=new oy(e,this),this.linkedEditingHandler=new py(e,this),this.inlayHintHandler=new my(e,this),this.disposables.push({dispose:()=>{this.callHierarchy.dispose(),this.typeHierarchy.dispose(),this.codeLens.dispose(),this.links.dispose(),this.refactor.dispose(),this.signature.dispose(),this.symbols.dispose(),this.hover.dispose(),this.colors.dispose(),this.documentHighlighter.dispose(),this.semanticHighlighter.dispose()}}),this.refactor.init()}get uri(){var e;return(e=D.activeTextEditor)==null?void 0:e.document.uri}async getCurrentState(){let{nvim:e}=this,[t,[i,r],o,s]=await e.eval("[bufnr('%'),coc#cursor#position(),win_getid(),mode()]");return{doc:v.getAttachedDocument(t),mode:s,position:JD.Position.create(i,r),winid:o}}addDisposable(e){this.disposables.push(e)}checkProvier(e,t){if(!_.hasProvider(e,t))throw new Error(`${e} provider not found for current buffer, your language server doesn't support it.`)}async withRequestToken(e,t,i){this.requestTokenSource&&(this.requestTokenSource.cancel(),this.requestTokenSource.dispose()),this.requestTimer&&clearTimeout(this.requestTimer);let r=this.requestStatusItem;this.requestTokenSource=new JD.CancellationTokenSource;let{token:o}=this.requestTokenSource;o.onCancellationRequested(()=>{r.text=`${e} request canceled`,r.isProgress=!1,this.requestTimer=setTimeout(()=>{r.hide()},500)}),r.isProgress=!0,r.text=`requesting ${e}`,r.show();let s;try{s=await Promise.resolve(t(o))}catch(a){$ke.error(`Error on request ${e}`,a),this.nvim.errWriteLine(`Error on ${e}: ${a}`)}return this.requestTokenSource&&(this.requestTokenSource.dispose(),this.requestTokenSource=void 0),o.isCancellationRequested?null:(r.hide(),i&&(!s||Array.isArray(s)&&s.length==0)?(D.showWarningMessage(`${e} not found`),null):s)}getIcon(e){let{labels:t}=this,i=Ms(e),r=typeof t.default=="string"?t.default:i[0].toLowerCase(),o=i=="Unknown"?"":t[i[0].toLowerCase()+i.slice(1)];return(!o||typeof o!="string")&&(o=r),{text:o,hlGroup:i=="Unknown"?"CocSymbolDefault":`CocSymbol${i}`}}async getCodeActions(e,t,i){return(await this.codeActions.getCodeActions(e,t,i)).filter(o=>!o.disabled)}async applyCodeAction(e){await this.codeActions.applyCodeAction(e)}async hasProvider(e){let t=await this.nvim.call("bufnr","%"),i=v.getDocument(t);return i?_.hasProvider(e,i.textDocument):!1}dispose(){this.requestTimer&&clearTimeout(this.requestTimer),U(this.disposables)}};mD();Hm();Yu();Os();re();xe();ie();var Zie=q()("plugin"),yy=class extends Jie.EventEmitter{constructor(t){super();this.nvim=t;this._ready=!1;this.actions=new Map;this.disposables=[];this.disposables.push(v.registerTextDocumentContentProvider("output",hs.getProvider(t))),Object.defineProperty(D,"workspace",{get:()=>v}),Object.defineProperty(v,"nvim",{get:()=>this.nvim}),Object.defineProperty(D,"cursors",{get:()=>this.cursors}),v.onDidChangeWorkspaceFolders(()=>{t.setVar("WorkspaceFolders",v.folderPaths,!0)},null,this.disposables),P.on("VimResized",(i,r)=>{v.env&&Object.assign(v.env,{columns:i,lines:r})},null,this.disposables),this.cursors=new Ob(t),ue.init(t,this),this.addAction("checkJsonExtension",()=>{je.has("coc-json")||D.showInformationMessage("Run :CocInstall coc-json for json intellisense")}),this.addAction("rootPatterns",i=>this.handler.workspace.getRootPatterns(i)),this.addAction("ensureDocument",()=>this.handler.workspace.ensureDocument()),this.addAction("getConfig",async i=>this.handler.workspace.getConfiguration(i)),this.addAction("doAutocmd",async(i,...r)=>this.handler.workspace.doAutocmd(i,r)),this.addAction("openLog",async()=>this.handler.workspace.openLog()),this.addAction("attach",()=>v.attach()),this.addAction("detach",()=>v.detach()),this.addAction("doKeymap",async(i,r,o)=>this.handler.workspace.doKeymap(i,r,o)),this.addAction("registerExtensions",(...i)=>je.manager.loadExtension(i),"registExtensions"),this.addAction("snippetCheck",async(i,r)=>this.handler.workspace.snippetCheck(i,r)),this.addAction("snippetNext",()=>ai.nextPlaceholder()),this.addAction("snippetPrev",()=>ai.previousPlaceholder()),this.addAction("snippetCancel",()=>ai.cancel()),this.addAction("openLocalConfig",()=>D.openLocalConfig()),this.addAction("bufferCheck",()=>D.bufferCheck()),this.addAction("showInfo",()=>this.handler.workspace.showInfo()),this.addAction("hasProvider",i=>this.handler.hasProvider(i)),this.addAction("listNames",()=>Bi.names),this.addAction("listDescriptions",()=>Bi.descriptions),this.addAction("listLoadItems",i=>Bi.loadItems(i)),this.addAction("search",(...i)=>this.handler.refactor.search(i)),this.addAction("cursorsSelect",(i,r,o)=>this.cursors.select(i,r,o)),this.addAction("fillDiagnostics",i=>Wt.setLocationlist(i)),this.addAction("saveRefactor",i=>this.handler.refactor.save(i)),this.addAction("commandList",()=>this.handler.commands.getCommandList()),this.addAction("selectSymbolRange",(i,r,o)=>this.handler.symbols.selectSymbolRange(i,r,o)),this.addAction("openList",(...i)=>Bi.start(i)),this.addAction("listResume",i=>Bi.resume(i)),this.addAction("listCancel",()=>Bi.cancel(!0)),this.addAction("listPrev",i=>Bi.previous(i)),this.addAction("listNext",i=>Bi.next(i)),this.addAction("listFirst",i=>Bi.first(i)),this.addAction("listLast",i=>Bi.last(i)),this.addAction("sendRequest",(i,r,o)=>yn.sendRequest(i,r,o)),this.addAction("sendNotification",(i,r,o)=>yn.sendNotification(i,r,o)),this.addAction("registerNotification",(i,r)=>yn.registerNotification(i,r),"registNotification"),this.addAction("updateConfig",(i,r)=>v.configurations.updateMemoryConfig({[i]:r})),this.addAction("links",()=>this.handler.links.getLinks()),this.addAction("openLink",()=>this.handler.links.openCurrentLink()),this.addAction("pickColor",()=>this.handler.colors.pickColor()),this.addAction("colorPresentation",()=>this.handler.colors.pickPresentation()),this.addAction("highlight",()=>this.handler.documentHighlighter.highlight()),this.addAction("fold",i=>this.handler.fold.fold(i)),this.addAction("startCompletion",i=>Lb.startCompletion(i)),this.addAction("sourceStat",()=>St.sourceStats()),this.addAction("refreshSource",i=>St.refresh(i)),this.addAction("toggleSource",i=>St.toggleSource(i)),this.addAction("diagnosticRefresh",i=>Wt.refresh(i)),this.addAction("diagnosticInfo",()=>Wt.echoCurrentMessage()),this.addAction("diagnosticToggle",i=>Wt.toggleDiagnostic(i)),this.addAction("diagnosticToggleBuffer",(i,r)=>Wt.toggleDiagnosticBuffer(i,r)),this.addAction("diagnosticNext",i=>Wt.jumpNext(i)),this.addAction("diagnosticPrevious",i=>Wt.jumpPrevious(i)),this.addAction("diagnosticPreview",()=>Wt.preview()),this.addAction("diagnosticList",async()=>Wt.getDiagnosticList()),this.addAction("findLocations",(i,r,o,s)=>this.handler.locations.findLocations(i,r,o,s)),this.addAction("getTagList",()=>this.handler.locations.getTagList()),this.addAction("jumpDefinition",i=>this.handler.locations.gotoDefinition(i)),this.addAction("definitions",()=>this.handler.locations.definitions()),this.addAction("jumpDeclaration",i=>this.handler.locations.gotoDeclaration(i)),this.addAction("declarations",()=>this.handler.locations.declarations()),this.addAction("jumpImplementation",i=>this.handler.locations.gotoImplementation(i)),this.addAction("implementations",()=>this.handler.locations.implementations()),this.addAction("jumpTypeDefinition",i=>this.handler.locations.gotoTypeDefinition(i)),this.addAction("typeDefinitions",()=>this.handler.locations.typeDefinitions()),this.addAction("jumpReferences",i=>this.handler.locations.gotoReferences(i)),this.addAction("references",i=>this.handler.locations.references(i)),this.addAction("jumpUsed",i=>this.handler.locations.gotoReferences(i,!1)),this.addAction("doHover",i=>this.handler.hover.onHover(i)),this.addAction("definitionHover",i=>this.handler.hover.definitionHover(i)),this.addAction("getHover",()=>this.handler.hover.getHover()),this.addAction("showSignatureHelp",()=>this.handler.signature.triggerSignatureHelp()),this.addAction("documentSymbols",i=>this.handler.symbols.getDocumentSymbols(i)),this.addAction("symbolRanges",()=>this.handler.documentHighlighter.getSymbolsRanges()),this.addAction("selectionRanges",()=>this.handler.selectionRange.getSelectionRanges()),this.addAction("rangeSelect",(i,r)=>this.handler.selectionRange.selectRange(i,r)),this.addAction("rename",i=>this.handler.rename.rename(i)),this.addAction("getWorkspaceSymbols",i=>this.handler.symbols.getWorkspaceSymbols(i)),this.addAction("resolveWorkspaceSymbol",i=>this.handler.symbols.resolveWorkspaceSymbol(i)),this.addAction("formatSelected",i=>this.handler.format.formatCurrentRange(i)),this.addAction("format",()=>this.handler.format.formatCurrentBuffer()),this.addAction("commands",()=>this.handler.commands.getCommands()),this.addAction("services",()=>yn.getServiceStats()),this.addAction("toggleService",i=>yn.toggle(i)),this.addAction("codeAction",(i,r)=>this.handler.codeActions.doCodeAction(i,r)),this.addAction("organizeImport",()=>this.handler.codeActions.organizeImport()),this.addAction("fixAll",()=>this.handler.codeActions.doCodeAction(null,[ij.CodeActionKind.SourceFixAll])),this.addAction("doCodeAction",i=>this.handler.codeActions.applyCodeAction(i)),this.addAction("codeActions",(i,r)=>this.handler.codeActions.getCurrentCodeActions(i,r)),this.addAction("quickfixes",i=>this.handler.codeActions.getCurrentCodeActions(i,[ij.CodeActionKind.QuickFix])),this.addAction("codeLensAction",()=>this.handler.codeLens.doAction()),this.addAction("runCommand",(...i)=>this.handler.commands.runCommand(...i)),this.addAction("doQuickfix",()=>this.handler.codeActions.doQuickfix()),this.addAction("refactor",()=>this.handler.refactor.doRefactor()),this.addAction("repeatCommand",()=>this.handler.commands.repeat()),this.addAction("installExtensions",(...i)=>je.installExtensions(i)),this.addAction("updateExtensions",()=>je.updateExtensions()),this.addAction("extensionStats",()=>je.getExtensionStates()),this.addAction("loadedExtensions",()=>je.manager.loadedExtensions),this.addAction("watchExtension",i=>je.manager.watchExtension(i)),this.addAction("activeExtension",i=>je.manager.activate(i)),this.addAction("deactivateExtension",i=>je.manager.deactivate(i)),this.addAction("reloadExtension",i=>je.manager.reloadExtension(i)),this.addAction("toggleExtension",i=>je.manager.toggleExtension(i)),this.addAction("uninstallExtension",(...i)=>je.manager.uninstallExtensions(i)),this.addAction("getCurrentFunctionSymbol",()=>this.handler.symbols.getCurrentFunctionSymbol()),this.addAction("showOutline",i=>this.handler.symbols.showOutline(i)),this.addAction("hideOutline",()=>this.handler.symbols.hideOutline()),this.addAction("getWordEdit",()=>this.handler.rename.getWordEdit()),this.addAction("addCommand",i=>this.handler.commands.addVimCommand(i)),this.addAction("addRanges",i=>this.cursors.addRanges(i)),this.addAction("currentWorkspacePath",()=>v.rootPath),this.addAction("selectCurrentPlaceholder",i=>ai.selectCurrentPlaceholder(!!i)),this.addAction("codeActionRange",(i,r,o)=>this.handler.codeActions.codeActionRange(i,r,o)),this.addAction("incomingCalls",i=>this.handler.callHierarchy.getIncoming(i)),this.addAction("outgoingCalls",i=>this.handler.callHierarchy.getOutgoing(i)),this.addAction("showIncomingCalls",()=>this.handler.callHierarchy.showCallHierarchyTree("incoming")),this.addAction("showOutgoingCalls",()=>this.handler.callHierarchy.showCallHierarchyTree("outgoing")),this.addAction("showSuperTypes",()=>this.handler.typeHierarchy.showTypeHierarchyTree("supertypes")),this.addAction("showSubTypes",()=>this.handler.typeHierarchy.showTypeHierarchyTree("subtypes")),this.addAction("inspectSemanticToken",()=>this.handler.semanticHighlighter.inspectSemanticToken()),this.addAction("semanticHighlight",()=>this.handler.semanticHighlighter.highlightCurrent()),this.addAction("showSemanticHighlightInfo",()=>this.handler.semanticHighlighter.showHighlightInfo())}get workspace(){return v}get completion(){return Lb}addAction(t,i,r){if(this.actions.has(t))throw new Error(`Action ${t} already exists`);this.actions.set(t,i),r&&this.actions.set(r,i)}async init(){let{nvim:t}=this,i=Date.now();try{await je.init(),await v.init(D),t.setVar("coc_workspace_initialized",!0,!0),ai.init(),Lb.init(),Wt.init(),Bi.init(t),St.init(),this.handler=new by(t),yn.init(),je.activateExtensions(),v.autocmds.setupDynamicAutocmd(!0),t.pauseNotification(),t.setVar("WorkspaceFolders",v.folderPaths,!0),t.setVar("coc_service_initialized",1,!0),t.call("coc#util#do_autocmd",["CocNvimInit"],!0),t.resumeNotification(!1,!0),this._ready=!0,await P.fire("ready",[]),Zie.info(`coc.nvim initialized with node: ${process.version} after ${Date.now()-i}ms`),this.emit("ready")}catch(r){t.echoError(r)}}get isReady(){return this._ready}get ready(){return this._ready?Promise.resolve():new Promise(t=>{this.once("ready",()=>{t()})})}hasAction(t){return this.actions.has(t)}async cocAction(t,...i){let r=this.actions.get(t);if(!r)throw new Error(`Action "${t}" doesn't exist`);let o=Date.now(),s=await Promise.resolve(r.apply(null,i)),a=Date.now()-o;return a>500&&Zie.warn(`Slow action "${t}" cost ${a}ms`),s}getHandler(){return this.handler}dispose(){this.removeAllListeners(),U(this.disposables),je.dispose(),Bi.dispose(),v.dispose(),hs.dispose(),D.dispose(),St.dispose(),yn.dispose(),this.handler&&this.handler.dispose(),ai.dispose(),ue.dispose(),Lb.dispose(),Wt.dispose()}};var Xie=S(of());wi();Pe();wR();var xo=q()("attach"),Uke=["installExtensions","updateExtensions"],Gie=(n,e=!0)=>{let t=(0,$ie.attach)(n,Uie.default.getLogger("node-client"),e);t.call("coc#util#path_replace_patterns").then(s=>{if(hi(s)){let a=j.file;j.file=l=>(l=l.replace(/\\/g,"/"),Object.keys(s).forEach(u=>l=l.replace(new RegExp("^"+u),s[u])),a(l))}}).logError(),t.setVar("coc_process_pid",process.pid,!0);let i=new yy(t),r=!1,o=!1;return t.on("notification",async(s,a)=>{switch(s){case"VimEnter":{!o&&r&&(o=!0,await i.init());break}case"Log":{xo.debug(...a);break}case"TaskExit":case"TaskStderr":case"TaskStdout":case"GlobalChange":case"PromptInsert":case"InputChar":case"MenuInput":case"OptionSet":case"PromptKeyPress":case"FloatBtnClick":case"CompleteStop":xo.trace("Event: ",s,...a),await P.fire(s,a);break;case"CocAutocmd":xo.trace("Notification autocmd:",...a),await P.fire(a[0],a.slice(1));break;case"redraw":break;default:{if(!i.hasAction(s)){console.error(`action "${s}" does not exist`);return}try{i.isReady?xo.info("receive notification:",s,a):xo.warn(`Plugin not ready when received "${s}"`,a),await i.ready,await i.cocAction(s,...a)}catch(u){t.echoError(`Error on notification "${s}": ${u instanceof Error?u.message:u}`),xo.error(u)}}}}),t.on("request",async(s,a,l)=>{if(s=="redraw"){l.send();return}let u=setTimeout(()=>{xo.error("Request cost more than 3s",s,a)},3e3);try{if(P.requesting=!0,s=="CocAutocmd")xo.trace("Request autocmd:",...a),await P.fire(a[0],a.slice(1)),l.send(void 0);else{if(!i.isReady&&!Uke.includes(s)){xo.warn(`Plugin not ready on request "${s}"`,a),l.send("Plugin not ready",!0);return}xo.info("Request action:",s,a);let c=await i.cocAction(s,...a);l.send(c)}clearTimeout(u),P.requesting=!1}catch(c){P.requesting=!1,clearTimeout(u),l.send(c instanceof Error?c.message:c.toString(),!0),xo.error("Request error:",s,a,c)}}),t.channelId.then(async s=>{r=!0;let{major:a,minor:l,patch:u}=Xie.default.parse(Kw);t.setClientInfo("coc",{major:a,minor:l,patch:u},"remote",{},{}),await t.getVvar("vim_did_enter")&&!o&&(o=!0,await i.init())}).catch(s=>{console.error(`Channel create error: ${s.message}`)}),i};Object.defineProperty(console,"log",{value(){$D&&$D.info(...arguments)}});var $D=q()("server");Gie({reader:process.stdin,writer:process.stdout});process.on("uncaughtException",function(n){let e="Uncaught exception: "+n.message;console.error(e),$D.error("uncaughtException",n.stack)});process.on("unhandledRejection",function(n,e){n instanceof Error?console.error("UnhandledRejection: "+n.message+`
|
||
`+n.stack):console.error("UnhandledRejection: "+n),$D.error("unhandledRejection ",e,n)});
|
||
/*!
|
||
* bytes
|
||
* Copyright(c) 2012-2014 TJ Holowaychuk
|
||
* Copyright(c) 2015 Jed Watson
|
||
* MIT Licensed
|
||
*/
|
||
/*!
|
||
* content-disposition
|
||
* Copyright(c) 2014-2017 Douglas Christopher Wilson
|
||
* MIT Licensed
|
||
*/
|
||
/*! (c) 2020 Andrea Giammarchi */
|
||
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
||
/**
|
||
* event-lite.js - Light-weight EventEmitter (less than 1KB when gzipped)
|
||
*
|
||
* @copyright Yusuke Kawasaki
|
||
* @license MIT
|
||
* @constructor
|
||
* @see https://github.com/kawanet/event-lite
|
||
* @see http://kawanet.github.io/event-lite/EventLite.html
|
||
* @example
|
||
* var EventLite = require("event-lite");
|
||
*
|
||
* function MyClass() {...} // your class
|
||
*
|
||
* EventLite.mixin(MyClass.prototype); // import event methods
|
||
*
|
||
* var obj = new MyClass();
|
||
* obj.on("foo", function() {...}); // add event listener
|
||
* obj.once("bar", function() {...}); // add one-time event listener
|
||
* obj.emit("foo"); // dispatch event
|
||
* obj.emit("bar"); // dispatch another event
|
||
* obj.off("foo"); // remove event listener
|
||
*/
|