/*! For license information please see extension.js.LICENSE.txt */ (()=>{var e={1456:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageTypes=void 0,t.MessageTypes={Debug:"Debug",Info:"Info",Warning:"Warning"}},2130:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6449:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConfigFields=void 0,t.ConfigFields={allowCompoundWords:"allowCompoundWords",cache:"cache",caseSensitive:"caseSensitive",description:"description",dictionaries:"dictionaries",dictionaryDefinitions:"dictionaryDefinitions",enabled:"enabled",enabledLanguageIds:"enabledLanguageIds",enableFiletypes:"enableFiletypes",enableGlobDot:"enableGlobDot",failFast:"failFast",features:"features",files:"files",flagWords:"flagWords",gitignoreRoot:"gitignoreRoot",globRoot:"globRoot",ignorePaths:"ignorePaths",ignoreRegExpList:"ignoreRegExpList",ignoreWords:"ignoreWords",import:"import",includeRegExpList:"includeRegExpList",language:"language",languageId:"languageId",languageSettings:"languageSettings",maxDuplicateProblems:"maxDuplicateProblems",maxNumberOfProblems:"maxNumberOfProblems",minWordLength:"minWordLength",name:"name",noConfigSearch:"noConfigSearch",noSuggestDictionaries:"noSuggestDictionaries",numSuggestions:"numSuggestions",overrides:"overrides",patterns:"patterns",pnpFiles:"pnpFiles",readonly:"readonly",reporters:"reporters",showStatus:"showStatus",spellCheckDelayMs:"spellCheckDelayMs",suggestionNumChanges:"suggestionNumChanges",suggestionsTimeout:"suggestionsTimeout",useGitignore:"useGitignore",usePnP:"usePnP",userWords:"userWords",words:"words"}},3158:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.ConfigFields=void 0;var o=n(6449);Object.defineProperty(t,"ConfigFields",{enumerable:!0,get:function(){return o.ConfigFields}}),r(n(1456),t),r(n(2130),t)},7092:e=>{const t=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9];let n;const i=e=>e<1e5?e<100?e<10?0:1:e<1e4?e<1e3?2:3:4:e<1e7?e<1e6?5:6:e<1e9?e<1e8?7:8:9;function r(e,n){if(e===n)return 0;if(~~e===e&&~~n===n){if(0===e||0===n)return e=0)return-1;if(e>=0)return 1;e=-e,n=-n}const r=i(e),o=i(n);let s=0;return ro&&(n*=t[r-o-1],e/=10,s=1),e===n?s:e=0;)o++;return o-t}function s(e,t,n){for(n--;t>>1;o(i,e[t])<0?c=t:a=t+1}let u=r-a;switch(u){case 3:e[a+3]=e[a+2],n[a+3]=n[a+2];case 2:e[a+2]=e[a+1],n[a+2]=n[a+1];case 1:e[a+1]=e[a],n[a+1]=n[a];break;default:for(;u>0;)e[a+u]=e[a+u-1],n[a+u]=n[a+u-1],u--}e[a]=i,n[a]=s}}function c(e,t,n,i,r,o){let s=0,a=0,c=1;if(o(e,t[n+r])>0){for(a=i-r;c0;)s=c,c=1+(c<<1),c<=0&&(c=a);c>a&&(c=a),s+=r,c+=r}else{for(a=r+1;ca&&(c=a);const i=s;s=r-c,c=r-i}for(s++;s>>1);o(e,t[n+i])>0?s=i+1:c=i}return c}function u(e,t,n,i,r,o){let s=0,a=0,c=1;if(o(e,t[n+r])<0){for(a=r+1;ca&&(c=a);const i=s;s=r-c,c=r-i}else{for(a=i-r;c=0;)s=c,c=1+(c<<1),c<=0&&(c=a);c>a&&(c=a),s+=r,c+=r}for(s++;s>>1);o(e,t[n+i])<0?c=i:s=i+1}return c}class l{constructor(e,t){this.array=e,this.compare=t;const{length:n}=e;this.length=n,this.minGallop=7,this.tmpStorageLength=n<512?n>>>1:256,this.tmp=new Array(this.tmpStorageLength),this.tmpIndex=new Array(this.tmpStorageLength),this.stackLength=n<120?5:n<1542?10:n<119151?19:40,this.runStart=new Array(this.stackLength),this.runLength=new Array(this.stackLength),this.stackSize=0}pushRun(e,t){this.runStart[this.stackSize]=e,this.runLength[this.stackSize]=t,this.stackSize+=1}mergeRuns(){for(;this.stackSize>1;){let e=this.stackSize-2;if(e>=1&&this.runLength[e-1]<=this.runLength[e]+this.runLength[e+1]||e>=2&&this.runLength[e-2]<=this.runLength[e]+this.runLength[e-1])this.runLength[e-1]this.runLength[e+1])break;this.mergeAt(e)}}forceMergeRuns(){for(;this.stackSize>1;){let e=this.stackSize-2;e>0&&this.runLength[e-1]=7||i>=7);if(m)break;g<0&&(g=0),g+=2}if(this.minGallop=g,g<1&&(this.minGallop=1),1===t){for(h=0;h=0;h--)s[m+h]=s[g+h],n[m+h]=n[g+h];return s[f]=a[p],void(n[f]=l[p])}let{minGallop:y}=this;for(;;){let i=0,v=0,C=!1;do{if(o(a[p],s[d])<0){if(s[f]=s[d],n[f]=n[d],f--,d--,i++,v=0,0==--t){C=!0;break}}else if(s[f]=a[p],n[f]=l[p],f--,p--,v++,i=0,1==--r){C=!0;break}}while((i|v)=0;h--)s[m+h]=s[g+h],n[m+h]=n[g+h];if(0===t){C=!0;break}}if(s[f]=a[p],n[f]=l[p],f--,p--,1==--r){C=!0;break}if(v=r-c(s[d],a,0,r,r-1,o),0!==v){for(f-=v,p-=v,r-=v,m=f+1,g=p+1,h=0;h=7||v>=7);if(C)break;y<0&&(y=0),y+=2}if(this.minGallop=y,y<1&&(this.minGallop=1),1===r){for(f-=t,d-=t,m=f+1,g=d+1,h=t-1;h>=0;h--)s[m+h]=s[g+h],n[m+h]=n[g+h];s[f]=a[p],n[f]=l[p]}else{if(0===r)throw new Error("mergeHigh preconditions were not respected");for(g=f-(r-1),h=0;h=32;)t|=1&e,e>>=1;return e+t}(h);do{if(d=o(e,i,s,t),df&&(n=f),a(e,i,i+n,i+d,t),d=n}p.pushRun(i,d),p.mergeRuns(),h-=d,i+=d}while(0!==h);return p.forceMergeRuns(),n}}},2294:e=>{"use strict";function t(e,t,r){e instanceof RegExp&&(e=n(e,r)),t instanceof RegExp&&(t=n(t,r));var o=i(e,t,r);return o&&{start:o[0],end:o[1],pre:r.slice(0,o[0]),body:r.slice(o[0]+e.length,o[1]),post:r.slice(o[1]+t.length)}}function n(e,t){var n=t.match(e);return n?n[0]:null}function i(e,t,n){var i,r,o,s,a,c=n.indexOf(e),u=n.indexOf(t,c+1),l=c;if(c>=0&&u>0){if(e===t)return[c,u];for(i=[],o=n.length;l>=0&&!a;)l==c?(i.push(l),c=n.indexOf(e,l+1)):1==i.length?a=[i.pop(),u]:((r=i.pop())=0?c:u;i.length&&(a=[o,s])}return a}e.exports=t,t.range=i},402:(e,t,n)=>{var i=n(4114),r=n(2294);e.exports=function(e){return e?("{}"===e.substr(0,2)&&(e="\\{\\}"+e.substr(2)),y(function(e){return e.split("\\\\").join(o).split("\\{").join(s).split("\\}").join(a).split("\\,").join(c).split("\\.").join(u)}(e),!0).map(h)):[]};var o="\0SLASH"+Math.random()+"\0",s="\0OPEN"+Math.random()+"\0",a="\0CLOSE"+Math.random()+"\0",c="\0COMMA"+Math.random()+"\0",u="\0PERIOD"+Math.random()+"\0";function l(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function h(e){return e.split(o).join("\\").split(s).join("{").split(a).join("}").split(c).join(",").split(u).join(".")}function d(e){if(!e)return[""];var t=[],n=r("{","}",e);if(!n)return e.split(",");var i=n.pre,o=n.body,s=n.post,a=i.split(",");a[a.length-1]+="{"+o+"}";var c=d(s);return s.length&&(a[a.length-1]+=c.shift(),a.push.apply(a,c)),t.push.apply(t,a),t}function p(e){return"{"+e+"}"}function f(e){return/^-?0\d/.test(e)}function g(e,t){return e<=t}function m(e,t){return e>=t}function y(e,t){var n=[],o=r("{","}",e);if(!o||/\$$/.test(o.pre))return[e];var s,c=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(o.body),u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(o.body),h=c||u,v=o.body.indexOf(",")>=0;if(!h&&!v)return o.post.match(/,.*\}/)?y(e=o.pre+"{"+o.body+a+o.post):[e];if(h)s=o.body.split(/\.\./);else if(1===(s=d(o.body)).length&&1===(s=y(s[0],!1).map(p)).length)return(b=o.post.length?y(o.post,!1):[""]).map((function(e){return o.pre+s[0]+e}));var C,S=o.pre,b=o.post.length?y(o.post,!1):[""];if(h){var E=l(s[0]),w=l(s[1]),D=Math.max(s[0].length,s[1].length),x=3==s.length?Math.abs(l(s[2])):1,_=g;w0){var R=new Array(A+1).join("0");F=k<0?"-"+R+F.slice(1):R+F}}C.push(F)}}else C=i(s,(function(e){return y(e,!1)}));for(var O=0;O{const{isArray:i}=n(7646),{sort:r}=n(7092),{SYMBOL_PREFIXES:o,UNDEFINED:s,symbol:a,copy_comments:c,swap_comments:u}=n(5344),l=(e,t,n,i,r)=>{c(e,t,n+i,n,r)},h=(e,t,n,i,r,o)=>{if(r>0){let s=i;for(;s-- >0;)l(e,t,n+s,r,o);return}let s=0;for(;s{o.forEach((n=>{const i=a(n,t);delete e[i]}))};class p extends Array{splice(...e){const{length:t}=this,n=super.splice(...e);let[i,r,...o]=e;i<0&&(i+=t),r=1===arguments.length?t-i:Math.min(t-i,r);const{length:s}=o,a=i+r;return h(this,this,a,t-a,s-r,!0),n}slice(...e){const{length:t}=this,n=super.slice(...e);if(!n.length)return new p;let[i,r]=e;return r===s?r=t:r<0&&(r+=t),i<0?i+=t:i===s&&(i=0),h(n,this,i,r-i,-i),n}unshift(...e){const{length:t}=this,n=super.unshift(...e),{length:i}=e;return i>0&&h(this,this,0,t,i,!0),n}shift(){const e=super.shift(),{length:t}=this;return d(this,0),h(this,this,1,t,-1,!0),e}reverse(){return super.reverse(),(e=>{const{length:t}=e;let n=0;const i=t/2;for(;n{const r=t;t+=i(e)?e.length:1,e instanceof p&&h(n,e,0,e.length,r)})),n):n}sort(...e){const t=r(this,...e.slice(0,1)),n=Object.create(null);return t.forEach(((e,t)=>{if(e===t)return;const i=((e,t)=>{let n=t;for(;n in e;)n=e[n];return n})(n,e);i!==t&&(n[t]=i,u(this,t,i))})),this}}e.exports={CommentArray:p}},5344:(e,t,n)=>{const i=n(2001),{isObject:r,isArray:o,isString:s,isNumber:a}=n(7646),c="before",u="after-prop",l="after-colon",h="after-value",d="after",p="before-all",f="after-all",g=[c,u,l,h,d],m=[c,p,f].map(Symbol.for),y=void 0,v=(e,t)=>Symbol.for(e+":"+t),C=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),S=(e,t,n,r,o,s)=>{const a=v(o,r);if(!i(t,a))return;const c=n===r?a:v(o,n);C(e,c,t[a]),s&&delete t[a]},b=(e,t,n,i,r)=>{g.forEach((o=>{S(e,t,n,i,o,r)}))},E=(e,t)=>{m.forEach((n=>{const i=t[n];i&&C(e,n,i)}))};e.exports={SYMBOL_PREFIXES:g,PREFIX_BEFORE:c,PREFIX_AFTER_PROP:u,PREFIX_AFTER_COLON:l,PREFIX_AFTER_VALUE:h,PREFIX_AFTER:d,PREFIX_BEFORE_ALL:p,PREFIX_AFTER_ALL:f,BRACKET_OPEN:"[",BRACKET_CLOSE:"]",CURLY_BRACKET_OPEN:"{",CURLY_BRACKET_CLOSE:"}",COLON:":",COMMA:",",MINUS:"-",EMPTY:"",UNDEFINED:y,symbol:v,define:C,copy_comments:b,swap_comments:(e,t,n)=>{t!==n&&g.forEach((r=>{const o=v(r,n);if(!i(e,o))return void S(e,e,n,t,r,!0);const s=e[o];delete e[o],S(e,e,n,t,r,!0),C(e,v(r,t),s)}))},assign_non_prop_comments:E,assign(e,t,n){if(!r(e))throw new TypeError("Cannot convert undefined or null to object");if(!r(t))return e;if(n===y)n=Object.keys(t),E(e,t);else{if(!o(n))throw new TypeError("keys must be array or undefined");0===n.length&&E(e,t)}return((e,t,n)=>(n.forEach((n=>{(s(n)||a(n))&&i(t,n)&&(e[n]=t[n],b(e,t,n,n))})),e))(e,t,n)}}},6724:(e,t,n)=>{const{parse:i,tokenize:r}=n(7745),o=n(7437),{CommentArray:s}=n(8458),{assign:a}=n(5344);e.exports={parse:i,stringify:o,tokenize:r,CommentArray:s,assign:a}},7745:(e,t,n)=>{const i=n(671),{CommentArray:r}=n(8458),{PREFIX_BEFORE:o,PREFIX_AFTER_PROP:s,PREFIX_AFTER_COLON:a,PREFIX_AFTER_VALUE:c,PREFIX_AFTER:u,PREFIX_BEFORE_ALL:l,PREFIX_AFTER_ALL:h,BRACKET_OPEN:d,BRACKET_CLOSE:p,CURLY_BRACKET_OPEN:f,CURLY_BRACKET_CLOSE:g,COLON:m,COMMA:y,MINUS:v,EMPTY:C,UNDEFINED:S,define:b,assign_non_prop_comments:E}=n(5344),w=e=>i.tokenize(e,{comment:!0,loc:!0}),D=[];let x=null,_=null;const T=[];let k,F,A=!1,R=!1,O=null,P=null,M=null,N=null;const I=()=>{T.length=D.length=0,P=null,k=S},L=e=>Symbol.for(k!==S?e+m+k:e),j=(e,t)=>N?N(e,t):t,B=()=>{const e=new SyntaxError(`Unexpected token ${M.value.slice(0,1)}`);throw Object.assign(e,M.loc.start),e},q=()=>{const e=new SyntaxError("Unexpected end of JSON input");throw Object.assign(e,P?P.loc.end:{line:1,column:0}),e},U=()=>{const e=O[++F];R=M&&e&&M.loc.end.line===e.loc.start.line||!1,P=M,M=e},W=()=>(M||q(),"Punctuator"===M.type?M.value:M.type),$=e=>W()===e,K=e=>{$(e)||B()},z=e=>{D.push(x),x=e},V=()=>{x=D.pop()},H=()=>{if(!_)return;const e=[];for(const t of _){if(!t.inline)break;e.push(t)}const{length:t}=e;t&&(t===_.length?_=null:_.splice(0,t),b(x,L(u),e))},G=e=>{_&&(b(x,L(e),_),_=null)},J=e=>{const t=[];for(;M&&($("LineComment")||$("BlockComment"));){const e={...M,inline:R};t.push(e),U()}A||t.length&&(e?b(x,L(e),t):_=t)},X=(e,t)=>{t&&T.push(k),k=e},Y=()=>{k=T.pop()};function Q(){let e=W();if(e===f)return U(),(()=>{const e={};z(e),X(S,!0);let t,n=!1;for(J();!($(g)||n&&(G(c),K(y),U(),J(),H(),$(g)));)n=!0,K("String"),t=JSON.parse(M.value),X(t),G(o),U(),J(s),K(m),U(),J(a),e[t]=j(t,Q()),J();return n&&G(u),U(),k=void 0,n||G(o),V(),Y(),e})();if(e===d)return U(),(()=>{const e=new r;z(e),X(S,!0);let t=!1,n=0;for(J();!($(p)||t&&(G(c),K(y),U(),J(),H(),$(p)));)t=!0,X(n),G(o),e[n]=j(n,Q()),n++,J();return t&&G(u),U(),k=void 0,t||G(o),V(),Y(),e})();let t,n=C;switch(e===v&&(U(),e=W(),n=v),e){case"String":case"Boolean":case"Null":case"Numeric":return t=M.value,U(),JSON.parse(n+t)}}e.exports={parse:(e,t,n)=>{I(),O=w(e),N=t,A=n,O.length||q(),F=-1,U(),z({}),J(l);let i=Q();var r;return J(h),M&&B(),n||null===i||(r=i,Object(r)!==r&&(i=new Object(i)),E(i,x)),V(),i=j("",i),I(),O.length=0,_=x=O=P=M=N=null,i},tokenize:w}},7437:(e,t,n)=>{const{isArray:i,isObject:r,isFunction:o,isNumber:s,isString:a}=n(7646),c=n(4076),{PREFIX_BEFORE_ALL:u,PREFIX_BEFORE:l,PREFIX_AFTER_PROP:h,PREFIX_AFTER_COLON:d,PREFIX_AFTER_VALUE:p,PREFIX_AFTER:f,PREFIX_AFTER_ALL:g,BRACKET_OPEN:m,BRACKET_CLOSE:y,CURLY_BRACKET_OPEN:v,CURLY_BRACKET_CLOSE:C,COLON:S,COMMA:b,EMPTY:E,UNDEFINED:w}=n(5344),D=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,x="\n",_="null",T=e=>`${l}:${e}`,k=e=>`${p}:${e}`,F=e=>`${f}:${e}`,A={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},R=e=>`"${(e=>(D.lastIndex=0,D.test(e)?e.replace(D,(e=>{const t=A[e];return"string"==typeof t?t:e})):e))(e)}"`,O=(e,t,n,i)=>{const r=e[Symbol.for(t)];if(!r||!r.length)return E;let o=!1;const s=r.reduce(((e,{inline:t,type:i,value:r})=>(o="LineComment"===i,e+(t?" ":x+n)+((e,t)=>t?`//${e}`:`/*${e}*/`)(r,o))),E);return i||o?s+x+n:s};let P=null,M=E;const N=(e,t,n)=>e?t?e+t.trim()+x+n:e.trimRight()+x+n:t?t.trimRight()+x+n:E,I=(e,t,n)=>{const i=O(t,l,n+M,!0);return N(i,e,n)};function L(e,t,n){let s=t[e];switch(r(s)&&o(s.toJSON)&&(s=s.toJSON(e)),o(P)&&(s=P.call(t,e,s)),typeof s){case"string":return R(s);case"number":return Number.isFinite(s)?String(s):_;case"boolean":case"null":return String(s);case"object":return i(s)?((e,t)=>{const n=t+M,{length:i}=e;let r=E,o=E;for(let t=0;t{if(!e)return"null";const n=t+M;let r=E,o=E,s=!0;return(i(P)?P:Object.keys(e)).forEach((t=>{const i=L(t,e,n);if(i===w)return;s||(r+=b),s=!1;const a=N(o,O(e,T(t),n),n);r+=a||x+n,r+=R(t)+O(e,`${h}:${t}`,n)+S+O(e,`${d}:${t}`,n)+" "+i+O(e,k(t),n),o=O(e,F(t),n)})),r+=N(o,O(e,f,n),n),v+I(r,e,t)+C})(s,n)}}const{toString:j}=Object.prototype,B=["[object Number]","[object String]","[object Boolean]"];e.exports=(e,t,n)=>{const l=(e=>a(e)?e:s(e)?c(" ",e):E)(n);if(!l)return JSON.stringify(e,t);o(t)||i(t)||(t=null),P=t,M=l;const h=(e=>{if("object"!=typeof e)return!1;const t=j.call(e);return B.includes(t)})(e)?JSON.stringify(e):L("",{"":e},E);return P=null,M=E,r(e)?O(e,u,E).trimLeft()+h+O(e,g,E).trimRight():h}},4114:e=>{e.exports=function(e,n){for(var i=[],r=0;r{function i(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===i(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===i(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===i(e)},t.isError=function(e){return"[object Error]"===i(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(4300).Buffer.isBuffer},671:function(e){var t;t=function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={exports:{},id:i,loaded:!1};return e[i].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=n(3),o=n(8),s=n(15);function a(e,t,n){var s=null,a=function(e,t){n&&n(e,t),s&&s.visit(e,t)},c="function"==typeof n?a:null,u=!1;if(t){u="boolean"==typeof t.comment&&t.comment;var l="boolean"==typeof t.attachComment&&t.attachComment;(u||l)&&((s=new i.CommentHandler).attach=l,t.comment=!0,c=a)}var h,d=!1;t&&"string"==typeof t.sourceType&&(d="module"===t.sourceType),h=t&&"boolean"==typeof t.jsx&&t.jsx?new r.JSXParser(e,t,c):new o.Parser(e,t,c);var p=d?h.parseModule():h.parseScript();return u&&s&&(p.comments=s.comments),h.config.tokens&&(p.tokens=h.tokens),h.config.tolerant&&(p.errors=h.errorHandler.errors),p}t.parse=a,t.parseModule=function(e,t,n){var i=t||{};return i.sourceType="module",a(e,i,n)},t.parseScript=function(e,t,n){var i=t||{};return i.sourceType="script",a(e,i,n)},t.tokenize=function(e,t,n){var i,r=new s.Tokenizer(e,t);i=[];try{for(;;){var o=r.getNextToken();if(!o)break;n&&(o=n(o)),i.push(o)}}catch(e){r.errorHandler.tolerate(e)}return r.errorHandler.tolerant&&(i.errors=r.errors()),i};var c=n(2);t.Syntax=c.Syntax,t.version="4.0.1"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=function(){function e(){this.attach=!1,this.comments=[],this.stack=[],this.leading=[],this.trailing=[]}return e.prototype.insertInnerComments=function(e,t){if(e.type===i.Syntax.BlockStatement&&0===e.body.length){for(var n=[],r=this.leading.length-1;r>=0;--r){var o=this.leading[r];t.end.offset>=o.start&&(n.unshift(o.comment),this.leading.splice(r,1),this.trailing.splice(r,1))}n.length&&(e.innerComments=n)}},e.prototype.findTrailingComments=function(e){var t=[];if(this.trailing.length>0){for(var n=this.trailing.length-1;n>=0;--n){var i=this.trailing[n];i.start>=e.end.offset&&t.unshift(i.comment)}return this.trailing.length=0,t}var r=this.stack[this.stack.length-1];if(r&&r.node.trailingComments){var o=r.node.trailingComments[0];o&&o.range[0]>=e.end.offset&&(t=r.node.trailingComments,delete r.node.trailingComments)}return t},e.prototype.findLeadingComments=function(e){for(var t,n=[];this.stack.length>0&&(o=this.stack[this.stack.length-1])&&o.start>=e.start.offset;)t=o.node,this.stack.pop();if(t){for(var i=(t.leadingComments?t.leadingComments.length:0)-1;i>=0;--i){var r=t.leadingComments[i];r.range[1]<=e.start.offset&&(n.unshift(r),t.leadingComments.splice(i,1))}return t.leadingComments&&0===t.leadingComments.length&&delete t.leadingComments,n}for(i=this.leading.length-1;i>=0;--i){var o;(o=this.leading[i]).start<=e.start.offset&&(n.unshift(o.comment),this.leading.splice(i,1))}return n},e.prototype.visitNode=function(e,t){if(!(e.type===i.Syntax.Program&&e.body.length>0)){this.insertInnerComments(e,t);var n=this.findTrailingComments(t),r=this.findLeadingComments(t);r.length>0&&(e.leadingComments=r),n.length>0&&(e.trailingComments=n),this.stack.push({node:e,start:t.start.offset})}},e.prototype.visitComment=function(e,t){var n="L"===e.type[0]?"Line":"Block",i={type:n,value:e.value};if(e.range&&(i.range=e.range),e.loc&&(i.loc=e.loc),this.comments.push(i),this.attach){var r={comment:{type:n,value:e.value,range:[t.start.offset,t.end.offset]},start:t.start.offset};e.loc&&(r.comment.loc=e.loc),e.type=n,this.leading.push(r),this.trailing.push(r)}},e.prototype.visit=function(e,t){"LineComment"===e.type||"BlockComment"===e.type?this.visitComment(e,t):this.attach&&this.visitNode(e,t)},e}();t.CommentHandler=r},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Syntax={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForOfStatement:"ForOfStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"}},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(4),s=n(5),a=n(6),c=n(7),u=n(8),l=n(13),h=n(14);function d(e){var t;switch(e.type){case a.JSXSyntax.JSXIdentifier:t=e.name;break;case a.JSXSyntax.JSXNamespacedName:var n=e;t=d(n.namespace)+":"+d(n.name);break;case a.JSXSyntax.JSXMemberExpression:var i=e;t=d(i.object)+"."+d(i.property)}return t}l.TokenName[100]="JSXIdentifier",l.TokenName[101]="JSXText";var p=function(e){function t(t,n,i){return e.call(this,t,n,i)||this}return r(t,e),t.prototype.parsePrimaryExpression=function(){return this.match("<")?this.parseJSXRoot():e.prototype.parsePrimaryExpression.call(this)},t.prototype.startJSX=function(){this.scanner.index=this.startMarker.index,this.scanner.lineNumber=this.startMarker.line,this.scanner.lineStart=this.startMarker.index-this.startMarker.column},t.prototype.finishJSX=function(){this.nextToken()},t.prototype.reenterJSX=function(){this.startJSX(),this.expectJSX("}"),this.config.tokens&&this.tokens.pop()},t.prototype.createJSXNode=function(){return this.collectComments(),{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},t.prototype.createJSXChildNode=function(){return{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},t.prototype.scanXHTMLEntity=function(e){for(var t="&",n=!0,i=!1,r=!1,s=!1;!this.scanner.eof()&&n&&!i;){var a=this.scanner.source[this.scanner.index];if(a===e)break;if(i=";"===a,t+=a,++this.scanner.index,!i)switch(t.length){case 2:r="#"===a;break;case 3:r&&(n=(s="x"===a)||o.Character.isDecimalDigit(a.charCodeAt(0)),r=r&&!s);break;default:n=(n=n&&!(r&&!o.Character.isDecimalDigit(a.charCodeAt(0))))&&!(s&&!o.Character.isHexDigit(a.charCodeAt(0)))}}if(n&&i&&t.length>2){var c=t.substr(1,t.length-2);r&&c.length>1?t=String.fromCharCode(parseInt(c.substr(1),10)):s&&c.length>2?t=String.fromCharCode(parseInt("0"+c.substr(1),16)):r||s||!h.XHTMLEntities[c]||(t=h.XHTMLEntities[c])}return t},t.prototype.lexJSX=function(){var e=this.scanner.source.charCodeAt(this.scanner.index);if(60===e||62===e||47===e||58===e||61===e||123===e||125===e)return{type:7,value:a=this.scanner.source[this.scanner.index++],lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index-1,end:this.scanner.index};if(34===e||39===e){for(var t=this.scanner.index,n=this.scanner.source[this.scanner.index++],i="";!this.scanner.eof()&&(c=this.scanner.source[this.scanner.index++])!==n;)i+="&"===c?this.scanXHTMLEntity(n):c;return{type:8,value:i,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:t,end:this.scanner.index}}if(46===e){var r=this.scanner.source.charCodeAt(this.scanner.index+1),s=this.scanner.source.charCodeAt(this.scanner.index+2),a=46===r&&46===s?"...":".";return t=this.scanner.index,this.scanner.index+=a.length,{type:7,value:a,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:t,end:this.scanner.index}}if(96===e)return{type:10,value:"",lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index,end:this.scanner.index};if(o.Character.isIdentifierStart(e)&&92!==e){for(t=this.scanner.index,++this.scanner.index;!this.scanner.eof();){var c=this.scanner.source.charCodeAt(this.scanner.index);if(o.Character.isIdentifierPart(c)&&92!==c)++this.scanner.index;else{if(45!==c)break;++this.scanner.index}}return{type:100,value:this.scanner.source.slice(t,this.scanner.index),lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:t,end:this.scanner.index}}return this.scanner.lex()},t.prototype.nextJSXToken=function(){this.collectComments(),this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;var e=this.lexJSX();return this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.config.tokens&&this.tokens.push(this.convertToken(e)),e},t.prototype.nextJSXText=function(){this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;for(var e=this.scanner.index,t="";!this.scanner.eof();){var n=this.scanner.source[this.scanner.index];if("{"===n||"<"===n)break;++this.scanner.index,t+=n,o.Character.isLineTerminator(n.charCodeAt(0))&&(++this.scanner.lineNumber,"\r"===n&&"\n"===this.scanner.source[this.scanner.index]&&++this.scanner.index,this.scanner.lineStart=this.scanner.index)}this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart;var i={type:101,value:t,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:e,end:this.scanner.index};return t.length>0&&this.config.tokens&&this.tokens.push(this.convertToken(i)),i},t.prototype.peekJSXToken=function(){var e=this.scanner.saveState();this.scanner.scanComments();var t=this.lexJSX();return this.scanner.restoreState(e),t},t.prototype.expectJSX=function(e){var t=this.nextJSXToken();7===t.type&&t.value===e||this.throwUnexpectedToken(t)},t.prototype.matchJSX=function(e){var t=this.peekJSXToken();return 7===t.type&&t.value===e},t.prototype.parseJSXIdentifier=function(){var e=this.createJSXNode(),t=this.nextJSXToken();return 100!==t.type&&this.throwUnexpectedToken(t),this.finalize(e,new s.JSXIdentifier(t.value))},t.prototype.parseJSXElementName=function(){var e=this.createJSXNode(),t=this.parseJSXIdentifier();if(this.matchJSX(":")){var n=t;this.expectJSX(":");var i=this.parseJSXIdentifier();t=this.finalize(e,new s.JSXNamespacedName(n,i))}else if(this.matchJSX("."))for(;this.matchJSX(".");){var r=t;this.expectJSX(".");var o=this.parseJSXIdentifier();t=this.finalize(e,new s.JSXMemberExpression(r,o))}return t},t.prototype.parseJSXAttributeName=function(){var e,t=this.createJSXNode(),n=this.parseJSXIdentifier();if(this.matchJSX(":")){var i=n;this.expectJSX(":");var r=this.parseJSXIdentifier();e=this.finalize(t,new s.JSXNamespacedName(i,r))}else e=n;return e},t.prototype.parseJSXStringLiteralAttribute=function(){var e=this.createJSXNode(),t=this.nextJSXToken();8!==t.type&&this.throwUnexpectedToken(t);var n=this.getTokenRaw(t);return this.finalize(e,new c.Literal(t.value,n))},t.prototype.parseJSXExpressionAttribute=function(){var e=this.createJSXNode();this.expectJSX("{"),this.finishJSX(),this.match("}")&&this.tolerateError("JSX attributes must only be assigned a non-empty expression");var t=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(e,new s.JSXExpressionContainer(t))},t.prototype.parseJSXAttributeValue=function(){return this.matchJSX("{")?this.parseJSXExpressionAttribute():this.matchJSX("<")?this.parseJSXElement():this.parseJSXStringLiteralAttribute()},t.prototype.parseJSXNameValueAttribute=function(){var e=this.createJSXNode(),t=this.parseJSXAttributeName(),n=null;return this.matchJSX("=")&&(this.expectJSX("="),n=this.parseJSXAttributeValue()),this.finalize(e,new s.JSXAttribute(t,n))},t.prototype.parseJSXSpreadAttribute=function(){var e=this.createJSXNode();this.expectJSX("{"),this.expectJSX("..."),this.finishJSX();var t=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(e,new s.JSXSpreadAttribute(t))},t.prototype.parseJSXAttributes=function(){for(var e=[];!this.matchJSX("/")&&!this.matchJSX(">");){var t=this.matchJSX("{")?this.parseJSXSpreadAttribute():this.parseJSXNameValueAttribute();e.push(t)}return e},t.prototype.parseJSXOpeningElement=function(){var e=this.createJSXNode();this.expectJSX("<");var t=this.parseJSXElementName(),n=this.parseJSXAttributes(),i=this.matchJSX("/");return i&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(e,new s.JSXOpeningElement(t,i,n))},t.prototype.parseJSXBoundaryElement=function(){var e=this.createJSXNode();if(this.expectJSX("<"),this.matchJSX("/")){this.expectJSX("/");var t=this.parseJSXElementName();return this.expectJSX(">"),this.finalize(e,new s.JSXClosingElement(t))}var n=this.parseJSXElementName(),i=this.parseJSXAttributes(),r=this.matchJSX("/");return r&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(e,new s.JSXOpeningElement(n,r,i))},t.prototype.parseJSXEmptyExpression=function(){var e=this.createJSXChildNode();return this.collectComments(),this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.finalize(e,new s.JSXEmptyExpression)},t.prototype.parseJSXExpressionContainer=function(){var e,t=this.createJSXNode();return this.expectJSX("{"),this.matchJSX("}")?(e=this.parseJSXEmptyExpression(),this.expectJSX("}")):(this.finishJSX(),e=this.parseAssignmentExpression(),this.reenterJSX()),this.finalize(t,new s.JSXExpressionContainer(e))},t.prototype.parseJSXChildren=function(){for(var e=[];!this.scanner.eof();){var t=this.createJSXChildNode(),n=this.nextJSXText();if(n.start0))break;o=this.finalize(e.node,new s.JSXElement(e.opening,e.children,e.closing)),(e=t[t.length-1]).children.push(o),t.pop()}}return e},t.prototype.parseJSXElement=function(){var e=this.createJSXNode(),t=this.parseJSXOpeningElement(),n=[],i=null;if(!t.selfClosing){var r=this.parseComplexJSXElement({node:e,opening:t,closing:i,children:n});n=r.children,i=r.closing}return this.finalize(e,new s.JSXElement(t,n,i))},t.prototype.parseJSXRoot=function(){this.config.tokens&&this.tokens.pop(),this.startJSX();var e=this.parseJSXElement();return this.finishJSX(),e},t.prototype.isStartOfExpression=function(){return e.prototype.isStartOfExpression.call(this)||this.match("<")},t}(u.Parser);t.JSXParser=p},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};t.Character={fromCodePoint:function(e){return e<65536?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10))+String.fromCharCode(56320+(e-65536&1023))},isWhiteSpace:function(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(e)>=0},isLineTerminator:function(e){return 10===e||13===e||8232===e||8233===e},isIdentifierStart:function(e){return 36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||92===e||e>=128&&n.NonAsciiIdentifierStart.test(t.Character.fromCodePoint(e))},isIdentifierPart:function(e){return 36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||92===e||e>=128&&n.NonAsciiIdentifierPart.test(t.Character.fromCodePoint(e))},isDecimalDigit:function(e){return e>=48&&e<=57},isHexDigit:function(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102},isOctalDigit:function(e){return e>=48&&e<=55}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(6);t.JSXClosingElement=function(e){this.type=i.JSXSyntax.JSXClosingElement,this.name=e};t.JSXElement=function(e,t,n){this.type=i.JSXSyntax.JSXElement,this.openingElement=e,this.children=t,this.closingElement=n};t.JSXEmptyExpression=function(){this.type=i.JSXSyntax.JSXEmptyExpression};t.JSXExpressionContainer=function(e){this.type=i.JSXSyntax.JSXExpressionContainer,this.expression=e};t.JSXIdentifier=function(e){this.type=i.JSXSyntax.JSXIdentifier,this.name=e};t.JSXMemberExpression=function(e,t){this.type=i.JSXSyntax.JSXMemberExpression,this.object=e,this.property=t};t.JSXAttribute=function(e,t){this.type=i.JSXSyntax.JSXAttribute,this.name=e,this.value=t};t.JSXNamespacedName=function(e,t){this.type=i.JSXSyntax.JSXNamespacedName,this.namespace=e,this.name=t};t.JSXOpeningElement=function(e,t,n){this.type=i.JSXSyntax.JSXOpeningElement,this.name=e,this.selfClosing=t,this.attributes=n};t.JSXSpreadAttribute=function(e){this.type=i.JSXSyntax.JSXSpreadAttribute,this.argument=e};t.JSXText=function(e,t){this.type=i.JSXSyntax.JSXText,this.value=e,this.raw=t}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JSXSyntax={JSXAttribute:"JSXAttribute",JSXClosingElement:"JSXClosingElement",JSXElement:"JSXElement",JSXEmptyExpression:"JSXEmptyExpression",JSXExpressionContainer:"JSXExpressionContainer",JSXIdentifier:"JSXIdentifier",JSXMemberExpression:"JSXMemberExpression",JSXNamespacedName:"JSXNamespacedName",JSXOpeningElement:"JSXOpeningElement",JSXSpreadAttribute:"JSXSpreadAttribute",JSXText:"JSXText"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2);t.ArrayExpression=function(e){this.type=i.Syntax.ArrayExpression,this.elements=e};t.ArrayPattern=function(e){this.type=i.Syntax.ArrayPattern,this.elements=e};t.ArrowFunctionExpression=function(e,t,n){this.type=i.Syntax.ArrowFunctionExpression,this.id=null,this.params=e,this.body=t,this.generator=!1,this.expression=n,this.async=!1};t.AssignmentExpression=function(e,t,n){this.type=i.Syntax.AssignmentExpression,this.operator=e,this.left=t,this.right=n};t.AssignmentPattern=function(e,t){this.type=i.Syntax.AssignmentPattern,this.left=e,this.right=t};t.AsyncArrowFunctionExpression=function(e,t,n){this.type=i.Syntax.ArrowFunctionExpression,this.id=null,this.params=e,this.body=t,this.generator=!1,this.expression=n,this.async=!0};t.AsyncFunctionDeclaration=function(e,t,n){this.type=i.Syntax.FunctionDeclaration,this.id=e,this.params=t,this.body=n,this.generator=!1,this.expression=!1,this.async=!0};t.AsyncFunctionExpression=function(e,t,n){this.type=i.Syntax.FunctionExpression,this.id=e,this.params=t,this.body=n,this.generator=!1,this.expression=!1,this.async=!0};t.AwaitExpression=function(e){this.type=i.Syntax.AwaitExpression,this.argument=e};t.BinaryExpression=function(e,t,n){var r="||"===e||"&&"===e;this.type=r?i.Syntax.LogicalExpression:i.Syntax.BinaryExpression,this.operator=e,this.left=t,this.right=n};t.BlockStatement=function(e){this.type=i.Syntax.BlockStatement,this.body=e};t.BreakStatement=function(e){this.type=i.Syntax.BreakStatement,this.label=e};t.CallExpression=function(e,t){this.type=i.Syntax.CallExpression,this.callee=e,this.arguments=t};t.CatchClause=function(e,t){this.type=i.Syntax.CatchClause,this.param=e,this.body=t};t.ClassBody=function(e){this.type=i.Syntax.ClassBody,this.body=e};t.ClassDeclaration=function(e,t,n){this.type=i.Syntax.ClassDeclaration,this.id=e,this.superClass=t,this.body=n};t.ClassExpression=function(e,t,n){this.type=i.Syntax.ClassExpression,this.id=e,this.superClass=t,this.body=n};t.ComputedMemberExpression=function(e,t){this.type=i.Syntax.MemberExpression,this.computed=!0,this.object=e,this.property=t};t.ConditionalExpression=function(e,t,n){this.type=i.Syntax.ConditionalExpression,this.test=e,this.consequent=t,this.alternate=n};t.ContinueStatement=function(e){this.type=i.Syntax.ContinueStatement,this.label=e};t.DebuggerStatement=function(){this.type=i.Syntax.DebuggerStatement};t.Directive=function(e,t){this.type=i.Syntax.ExpressionStatement,this.expression=e,this.directive=t};t.DoWhileStatement=function(e,t){this.type=i.Syntax.DoWhileStatement,this.body=e,this.test=t};t.EmptyStatement=function(){this.type=i.Syntax.EmptyStatement};t.ExportAllDeclaration=function(e){this.type=i.Syntax.ExportAllDeclaration,this.source=e};t.ExportDefaultDeclaration=function(e){this.type=i.Syntax.ExportDefaultDeclaration,this.declaration=e};t.ExportNamedDeclaration=function(e,t,n){this.type=i.Syntax.ExportNamedDeclaration,this.declaration=e,this.specifiers=t,this.source=n};t.ExportSpecifier=function(e,t){this.type=i.Syntax.ExportSpecifier,this.exported=t,this.local=e};t.ExpressionStatement=function(e){this.type=i.Syntax.ExpressionStatement,this.expression=e};t.ForInStatement=function(e,t,n){this.type=i.Syntax.ForInStatement,this.left=e,this.right=t,this.body=n,this.each=!1};t.ForOfStatement=function(e,t,n){this.type=i.Syntax.ForOfStatement,this.left=e,this.right=t,this.body=n};t.ForStatement=function(e,t,n,r){this.type=i.Syntax.ForStatement,this.init=e,this.test=t,this.update=n,this.body=r};t.FunctionDeclaration=function(e,t,n,r){this.type=i.Syntax.FunctionDeclaration,this.id=e,this.params=t,this.body=n,this.generator=r,this.expression=!1,this.async=!1};t.FunctionExpression=function(e,t,n,r){this.type=i.Syntax.FunctionExpression,this.id=e,this.params=t,this.body=n,this.generator=r,this.expression=!1,this.async=!1};t.Identifier=function(e){this.type=i.Syntax.Identifier,this.name=e};t.IfStatement=function(e,t,n){this.type=i.Syntax.IfStatement,this.test=e,this.consequent=t,this.alternate=n};t.ImportDeclaration=function(e,t){this.type=i.Syntax.ImportDeclaration,this.specifiers=e,this.source=t};t.ImportDefaultSpecifier=function(e){this.type=i.Syntax.ImportDefaultSpecifier,this.local=e};t.ImportNamespaceSpecifier=function(e){this.type=i.Syntax.ImportNamespaceSpecifier,this.local=e};t.ImportSpecifier=function(e,t){this.type=i.Syntax.ImportSpecifier,this.local=e,this.imported=t};t.LabeledStatement=function(e,t){this.type=i.Syntax.LabeledStatement,this.label=e,this.body=t};t.Literal=function(e,t){this.type=i.Syntax.Literal,this.value=e,this.raw=t};t.MetaProperty=function(e,t){this.type=i.Syntax.MetaProperty,this.meta=e,this.property=t};t.MethodDefinition=function(e,t,n,r,o){this.type=i.Syntax.MethodDefinition,this.key=e,this.computed=t,this.value=n,this.kind=r,this.static=o};t.Module=function(e){this.type=i.Syntax.Program,this.body=e,this.sourceType="module"};t.NewExpression=function(e,t){this.type=i.Syntax.NewExpression,this.callee=e,this.arguments=t};t.ObjectExpression=function(e){this.type=i.Syntax.ObjectExpression,this.properties=e};t.ObjectPattern=function(e){this.type=i.Syntax.ObjectPattern,this.properties=e};t.Property=function(e,t,n,r,o,s){this.type=i.Syntax.Property,this.key=t,this.computed=n,this.value=r,this.kind=e,this.method=o,this.shorthand=s};t.RegexLiteral=function(e,t,n,r){this.type=i.Syntax.Literal,this.value=e,this.raw=t,this.regex={pattern:n,flags:r}};t.RestElement=function(e){this.type=i.Syntax.RestElement,this.argument=e};t.ReturnStatement=function(e){this.type=i.Syntax.ReturnStatement,this.argument=e};t.Script=function(e){this.type=i.Syntax.Program,this.body=e,this.sourceType="script"};t.SequenceExpression=function(e){this.type=i.Syntax.SequenceExpression,this.expressions=e};t.SpreadElement=function(e){this.type=i.Syntax.SpreadElement,this.argument=e};t.StaticMemberExpression=function(e,t){this.type=i.Syntax.MemberExpression,this.computed=!1,this.object=e,this.property=t};t.Super=function(){this.type=i.Syntax.Super};t.SwitchCase=function(e,t){this.type=i.Syntax.SwitchCase,this.test=e,this.consequent=t};t.SwitchStatement=function(e,t){this.type=i.Syntax.SwitchStatement,this.discriminant=e,this.cases=t};t.TaggedTemplateExpression=function(e,t){this.type=i.Syntax.TaggedTemplateExpression,this.tag=e,this.quasi=t};t.TemplateElement=function(e,t){this.type=i.Syntax.TemplateElement,this.value=e,this.tail=t};t.TemplateLiteral=function(e,t){this.type=i.Syntax.TemplateLiteral,this.quasis=e,this.expressions=t};t.ThisExpression=function(){this.type=i.Syntax.ThisExpression};t.ThrowStatement=function(e){this.type=i.Syntax.ThrowStatement,this.argument=e};t.TryStatement=function(e,t,n){this.type=i.Syntax.TryStatement,this.block=e,this.handler=t,this.finalizer=n};t.UnaryExpression=function(e,t){this.type=i.Syntax.UnaryExpression,this.operator=e,this.argument=t,this.prefix=!0};t.UpdateExpression=function(e,t,n){this.type=i.Syntax.UpdateExpression,this.operator=e,this.argument=t,this.prefix=n};t.VariableDeclaration=function(e,t){this.type=i.Syntax.VariableDeclaration,this.declarations=e,this.kind=t};t.VariableDeclarator=function(e,t){this.type=i.Syntax.VariableDeclarator,this.id=e,this.init=t};t.WhileStatement=function(e,t){this.type=i.Syntax.WhileStatement,this.test=e,this.body=t};t.WithStatement=function(e,t){this.type=i.Syntax.WithStatement,this.object=e,this.body=t};t.YieldExpression=function(e,t){this.type=i.Syntax.YieldExpression,this.argument=e,this.delegate=t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(9),r=n(10),o=n(11),s=n(7),a=n(12),c=n(2),u=n(13),l="ArrowParameterPlaceHolder",h=function(){function e(e,t,n){void 0===t&&(t={}),this.config={range:"boolean"==typeof t.range&&t.range,loc:"boolean"==typeof t.loc&&t.loc,source:null,tokens:"boolean"==typeof t.tokens&&t.tokens,comment:"boolean"==typeof t.comment&&t.comment,tolerant:"boolean"==typeof t.tolerant&&t.tolerant},this.config.loc&&t.source&&null!==t.source&&(this.config.source=String(t.source)),this.delegate=n,this.errorHandler=new r.ErrorHandler,this.errorHandler.tolerant=this.config.tolerant,this.scanner=new a.Scanner(e,this.errorHandler),this.scanner.trackComment=this.config.comment,this.operatorPrecedence={")":0,";":0,",":0,"=":0,"]":0,"||":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":11,"/":11,"%":11},this.lookahead={type:2,value:"",lineNumber:this.scanner.lineNumber,lineStart:0,start:0,end:0},this.hasLineTerminator=!1,this.context={isModule:!1,await:!1,allowIn:!0,allowStrictDirective:!0,allowYield:!0,firstCoverInitializedNameError:null,isAssignmentTarget:!1,isBindingElement:!1,inFunctionBody:!1,inIteration:!1,inSwitch:!1,labelSet:{},strict:!1},this.tokens=[],this.startMarker={index:0,line:this.scanner.lineNumber,column:0},this.lastMarker={index:0,line:this.scanner.lineNumber,column:0},this.nextToken(),this.lastMarker={index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}return e.prototype.throwError=function(e){for(var t=[],n=1;n0&&this.delegate)for(var t=0;t>="===e||">>>="===e||"&="===e||"^="===e||"|="===e},e.prototype.isolateCoverGrammar=function(e){var t=this.context.isBindingElement,n=this.context.isAssignmentTarget,i=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var r=e.call(this);return null!==this.context.firstCoverInitializedNameError&&this.throwUnexpectedToken(this.context.firstCoverInitializedNameError),this.context.isBindingElement=t,this.context.isAssignmentTarget=n,this.context.firstCoverInitializedNameError=i,r},e.prototype.inheritCoverGrammar=function(e){var t=this.context.isBindingElement,n=this.context.isAssignmentTarget,i=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var r=e.call(this);return this.context.isBindingElement=this.context.isBindingElement&&t,this.context.isAssignmentTarget=this.context.isAssignmentTarget&&n,this.context.firstCoverInitializedNameError=i||this.context.firstCoverInitializedNameError,r},e.prototype.consumeSemicolon=function(){this.match(";")?this.nextToken():this.hasLineTerminator||(2===this.lookahead.type||this.match("}")||this.throwUnexpectedToken(this.lookahead),this.lastMarker.index=this.startMarker.index,this.lastMarker.line=this.startMarker.line,this.lastMarker.column=this.startMarker.column)},e.prototype.parsePrimaryExpression=function(){var e,t,n,i=this.createNode();switch(this.lookahead.type){case 3:(this.context.isModule||this.context.await)&&"await"===this.lookahead.value&&this.tolerateUnexpectedToken(this.lookahead),e=this.matchAsyncFunction()?this.parseFunctionExpression():this.finalize(i,new s.Identifier(this.nextToken().value));break;case 6:case 8:this.context.strict&&this.lookahead.octal&&this.tolerateUnexpectedToken(this.lookahead,o.Messages.StrictOctalLiteral),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,t=this.nextToken(),n=this.getTokenRaw(t),e=this.finalize(i,new s.Literal(t.value,n));break;case 1:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,t=this.nextToken(),n=this.getTokenRaw(t),e=this.finalize(i,new s.Literal("true"===t.value,n));break;case 5:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,t=this.nextToken(),n=this.getTokenRaw(t),e=this.finalize(i,new s.Literal(null,n));break;case 10:e=this.parseTemplateLiteral();break;case 7:switch(this.lookahead.value){case"(":this.context.isBindingElement=!1,e=this.inheritCoverGrammar(this.parseGroupExpression);break;case"[":e=this.inheritCoverGrammar(this.parseArrayInitializer);break;case"{":e=this.inheritCoverGrammar(this.parseObjectInitializer);break;case"/":case"/=":this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.scanner.index=this.startMarker.index,t=this.nextRegexToken(),n=this.getTokenRaw(t),e=this.finalize(i,new s.RegexLiteral(t.regex,n,t.pattern,t.flags));break;default:e=this.throwUnexpectedToken(this.nextToken())}break;case 4:!this.context.strict&&this.context.allowYield&&this.matchKeyword("yield")?e=this.parseIdentifierName():!this.context.strict&&this.matchKeyword("let")?e=this.finalize(i,new s.Identifier(this.nextToken().value)):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.matchKeyword("function")?e=this.parseFunctionExpression():this.matchKeyword("this")?(this.nextToken(),e=this.finalize(i,new s.ThisExpression)):e=this.matchKeyword("class")?this.parseClassExpression():this.throwUnexpectedToken(this.nextToken()));break;default:e=this.throwUnexpectedToken(this.nextToken())}return e},e.prototype.parseSpreadElement=function(){var e=this.createNode();this.expect("...");var t=this.inheritCoverGrammar(this.parseAssignmentExpression);return this.finalize(e,new s.SpreadElement(t))},e.prototype.parseArrayInitializer=function(){var e=this.createNode(),t=[];for(this.expect("[");!this.match("]");)if(this.match(","))this.nextToken(),t.push(null);else if(this.match("...")){var n=this.parseSpreadElement();this.match("]")||(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.expect(",")),t.push(n)}else t.push(this.inheritCoverGrammar(this.parseAssignmentExpression)),this.match("]")||this.expect(",");return this.expect("]"),this.finalize(e,new s.ArrayExpression(t))},e.prototype.parsePropertyMethod=function(e){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var t=this.context.strict,n=this.context.allowStrictDirective;this.context.allowStrictDirective=e.simple;var i=this.isolateCoverGrammar(this.parseFunctionSourceElements);return this.context.strict&&e.firstRestricted&&this.tolerateUnexpectedToken(e.firstRestricted,e.message),this.context.strict&&e.stricted&&this.tolerateUnexpectedToken(e.stricted,e.message),this.context.strict=t,this.context.allowStrictDirective=n,i},e.prototype.parsePropertyMethodFunction=function(){var e=this.createNode(),t=this.context.allowYield;this.context.allowYield=!0;var n=this.parseFormalParameters(),i=this.parsePropertyMethod(n);return this.context.allowYield=t,this.finalize(e,new s.FunctionExpression(null,n.params,i,!1))},e.prototype.parsePropertyMethodAsyncFunction=function(){var e=this.createNode(),t=this.context.allowYield,n=this.context.await;this.context.allowYield=!1,this.context.await=!0;var i=this.parseFormalParameters(),r=this.parsePropertyMethod(i);return this.context.allowYield=t,this.context.await=n,this.finalize(e,new s.AsyncFunctionExpression(null,i.params,r))},e.prototype.parseObjectPropertyKey=function(){var e,t=this.createNode(),n=this.nextToken();switch(n.type){case 8:case 6:this.context.strict&&n.octal&&this.tolerateUnexpectedToken(n,o.Messages.StrictOctalLiteral);var i=this.getTokenRaw(n);e=this.finalize(t,new s.Literal(n.value,i));break;case 3:case 1:case 5:case 4:e=this.finalize(t,new s.Identifier(n.value));break;case 7:"["===n.value?(e=this.isolateCoverGrammar(this.parseAssignmentExpression),this.expect("]")):e=this.throwUnexpectedToken(n);break;default:e=this.throwUnexpectedToken(n)}return e},e.prototype.isPropertyKey=function(e,t){return e.type===c.Syntax.Identifier&&e.name===t||e.type===c.Syntax.Literal&&e.value===t},e.prototype.parseObjectProperty=function(e){var t,n=this.createNode(),i=this.lookahead,r=null,a=null,c=!1,u=!1,l=!1,h=!1;if(3===i.type){var d=i.value;this.nextToken(),c=this.match("["),r=(h=!(this.hasLineTerminator||"async"!==d||this.match(":")||this.match("(")||this.match("*")||this.match(",")))?this.parseObjectPropertyKey():this.finalize(n,new s.Identifier(d))}else this.match("*")?this.nextToken():(c=this.match("["),r=this.parseObjectPropertyKey());var p=this.qualifiedPropertyName(this.lookahead);if(3===i.type&&!h&&"get"===i.value&&p)t="get",c=this.match("["),r=this.parseObjectPropertyKey(),this.context.allowYield=!1,a=this.parseGetterMethod();else if(3===i.type&&!h&&"set"===i.value&&p)t="set",c=this.match("["),r=this.parseObjectPropertyKey(),a=this.parseSetterMethod();else if(7===i.type&&"*"===i.value&&p)t="init",c=this.match("["),r=this.parseObjectPropertyKey(),a=this.parseGeneratorMethod(),u=!0;else if(r||this.throwUnexpectedToken(this.lookahead),t="init",this.match(":")&&!h)!c&&this.isPropertyKey(r,"__proto__")&&(e.value&&this.tolerateError(o.Messages.DuplicateProtoProperty),e.value=!0),this.nextToken(),a=this.inheritCoverGrammar(this.parseAssignmentExpression);else if(this.match("("))a=h?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),u=!0;else if(3===i.type)if(d=this.finalize(n,new s.Identifier(i.value)),this.match("=")){this.context.firstCoverInitializedNameError=this.lookahead,this.nextToken(),l=!0;var f=this.isolateCoverGrammar(this.parseAssignmentExpression);a=this.finalize(n,new s.AssignmentPattern(d,f))}else l=!0,a=d;else this.throwUnexpectedToken(this.nextToken());return this.finalize(n,new s.Property(t,r,c,a,u,l))},e.prototype.parseObjectInitializer=function(){var e=this.createNode();this.expect("{");for(var t=[],n={value:!1};!this.match("}");)t.push(this.parseObjectProperty(n)),this.match("}")||this.expectCommaSeparator();return this.expect("}"),this.finalize(e,new s.ObjectExpression(t))},e.prototype.parseTemplateHead=function(){i.assert(this.lookahead.head,"Template literal must start with a template head");var e=this.createNode(),t=this.nextToken(),n=t.value,r=t.cooked;return this.finalize(e,new s.TemplateElement({raw:n,cooked:r},t.tail))},e.prototype.parseTemplateElement=function(){10!==this.lookahead.type&&this.throwUnexpectedToken();var e=this.createNode(),t=this.nextToken(),n=t.value,i=t.cooked;return this.finalize(e,new s.TemplateElement({raw:n,cooked:i},t.tail))},e.prototype.parseTemplateLiteral=function(){var e=this.createNode(),t=[],n=[],i=this.parseTemplateHead();for(n.push(i);!i.tail;)t.push(this.parseExpression()),i=this.parseTemplateElement(),n.push(i);return this.finalize(e,new s.TemplateLiteral(n,t))},e.prototype.reinterpretExpressionAsPattern=function(e){switch(e.type){case c.Syntax.Identifier:case c.Syntax.MemberExpression:case c.Syntax.RestElement:case c.Syntax.AssignmentPattern:break;case c.Syntax.SpreadElement:e.type=c.Syntax.RestElement,this.reinterpretExpressionAsPattern(e.argument);break;case c.Syntax.ArrayExpression:e.type=c.Syntax.ArrayPattern;for(var t=0;t")||this.expect("=>"),e={type:l,params:[],async:!1};else{var t=this.lookahead,n=[];if(this.match("..."))e=this.parseRestElement(n),this.expect(")"),this.match("=>")||this.expect("=>"),e={type:l,params:[e],async:!1};else{var i=!1;if(this.context.isBindingElement=!0,e=this.inheritCoverGrammar(this.parseAssignmentExpression),this.match(",")){var r=[];for(this.context.isAssignmentTarget=!1,r.push(e);2!==this.lookahead.type&&this.match(",");){if(this.nextToken(),this.match(")")){this.nextToken();for(var o=0;o")||this.expect("=>"),this.context.isBindingElement=!1,o=0;o")&&(e.type===c.Syntax.Identifier&&"yield"===e.name&&(i=!0,e={type:l,params:[e],async:!1}),!i)){if(this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),e.type===c.Syntax.SequenceExpression)for(o=0;o")){for(var c=0;c0){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;for(var r=[e,this.lookahead],o=t,a=this.isolateCoverGrammar(this.parseExponentiationExpression),c=[o,n.value,a],u=[i];!((i=this.binaryPrecedence(this.lookahead))<=0);){for(;c.length>2&&i<=u[u.length-1];){a=c.pop();var l=c.pop();u.pop(),o=c.pop(),r.pop();var h=this.startNode(r[r.length-1]);c.push(this.finalize(h,new s.BinaryExpression(l,o,a)))}c.push(this.nextToken().value),u.push(i),r.push(this.lookahead),c.push(this.isolateCoverGrammar(this.parseExponentiationExpression))}var d=c.length-1;t=c[d];for(var p=r.pop();d>1;){var f=r.pop(),g=p&&p.lineStart;h=this.startNode(f,g),l=c[d-1],t=this.finalize(h,new s.BinaryExpression(l,c[d-2],t)),d-=2,p=f}}return t},e.prototype.parseConditionalExpression=function(){var e=this.lookahead,t=this.inheritCoverGrammar(this.parseBinaryExpression);if(this.match("?")){this.nextToken();var n=this.context.allowIn;this.context.allowIn=!0;var i=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowIn=n,this.expect(":");var r=this.isolateCoverGrammar(this.parseAssignmentExpression);t=this.finalize(this.startNode(e),new s.ConditionalExpression(t,i,r)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return t},e.prototype.checkPatternParam=function(e,t){switch(t.type){case c.Syntax.Identifier:this.validateParam(e,t,t.name);break;case c.Syntax.RestElement:this.checkPatternParam(e,t.argument);break;case c.Syntax.AssignmentPattern:this.checkPatternParam(e,t.left);break;case c.Syntax.ArrayPattern:for(var n=0;n")){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var r=e.async,a=this.reinterpretAsCoverFormalsList(e);if(a){this.hasLineTerminator&&this.tolerateUnexpectedToken(this.lookahead),this.context.firstCoverInitializedNameError=null;var u=this.context.strict,h=this.context.allowStrictDirective;this.context.allowStrictDirective=a.simple;var d=this.context.allowYield,p=this.context.await;this.context.allowYield=!0,this.context.await=r;var f=this.startNode(t);this.expect("=>");var g=void 0;if(this.match("{")){var m=this.context.allowIn;this.context.allowIn=!0,g=this.parseFunctionSourceElements(),this.context.allowIn=m}else g=this.isolateCoverGrammar(this.parseAssignmentExpression);var y=g.type!==c.Syntax.BlockStatement;this.context.strict&&a.firstRestricted&&this.throwUnexpectedToken(a.firstRestricted,a.message),this.context.strict&&a.stricted&&this.tolerateUnexpectedToken(a.stricted,a.message),e=r?this.finalize(f,new s.AsyncArrowFunctionExpression(a.params,g,y)):this.finalize(f,new s.ArrowFunctionExpression(a.params,g,y)),this.context.strict=u,this.context.allowStrictDirective=h,this.context.allowYield=d,this.context.await=p}}else if(this.matchAssign()){if(this.context.isAssignmentTarget||this.tolerateError(o.Messages.InvalidLHSInAssignment),this.context.strict&&e.type===c.Syntax.Identifier){var v=e;this.scanner.isRestrictedWord(v.name)&&this.tolerateUnexpectedToken(n,o.Messages.StrictLHSAssignment),this.scanner.isStrictModeReservedWord(v.name)&&this.tolerateUnexpectedToken(n,o.Messages.StrictReservedWord)}this.match("=")?this.reinterpretExpressionAsPattern(e):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1);var C=(n=this.nextToken()).value,S=this.isolateCoverGrammar(this.parseAssignmentExpression);e=this.finalize(this.startNode(t),new s.AssignmentExpression(C,e,S)),this.context.firstCoverInitializedNameError=null}}return e},e.prototype.parseExpression=function(){var e=this.lookahead,t=this.isolateCoverGrammar(this.parseAssignmentExpression);if(this.match(",")){var n=[];for(n.push(t);2!==this.lookahead.type&&this.match(",");)this.nextToken(),n.push(this.isolateCoverGrammar(this.parseAssignmentExpression));t=this.finalize(this.startNode(e),new s.SequenceExpression(n))}return t},e.prototype.parseStatementListItem=function(){var e;if(this.context.isAssignmentTarget=!0,this.context.isBindingElement=!0,4===this.lookahead.type)switch(this.lookahead.value){case"export":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,o.Messages.IllegalExportDeclaration),e=this.parseExportDeclaration();break;case"import":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,o.Messages.IllegalImportDeclaration),e=this.parseImportDeclaration();break;case"const":e=this.parseLexicalDeclaration({inFor:!1});break;case"function":e=this.parseFunctionDeclaration();break;case"class":e=this.parseClassDeclaration();break;case"let":e=this.isLexicalDeclaration()?this.parseLexicalDeclaration({inFor:!1}):this.parseStatement();break;default:e=this.parseStatement()}else e=this.parseStatement();return e},e.prototype.parseBlock=function(){var e=this.createNode();this.expect("{");for(var t=[];!this.match("}");)t.push(this.parseStatementListItem());return this.expect("}"),this.finalize(e,new s.BlockStatement(t))},e.prototype.parseLexicalBinding=function(e,t){var n=this.createNode(),i=this.parsePattern([],e);this.context.strict&&i.type===c.Syntax.Identifier&&this.scanner.isRestrictedWord(i.name)&&this.tolerateError(o.Messages.StrictVarName);var r=null;return"const"===e?this.matchKeyword("in")||this.matchContextualKeyword("of")||(this.match("=")?(this.nextToken(),r=this.isolateCoverGrammar(this.parseAssignmentExpression)):this.throwError(o.Messages.DeclarationMissingInitializer,"const")):(!t.inFor&&i.type!==c.Syntax.Identifier||this.match("="))&&(this.expect("="),r=this.isolateCoverGrammar(this.parseAssignmentExpression)),this.finalize(n,new s.VariableDeclarator(i,r))},e.prototype.parseBindingList=function(e,t){for(var n=[this.parseLexicalBinding(e,t)];this.match(",");)this.nextToken(),n.push(this.parseLexicalBinding(e,t));return n},e.prototype.isLexicalDeclaration=function(){var e=this.scanner.saveState();this.scanner.scanComments();var t=this.scanner.lex();return this.scanner.restoreState(e),3===t.type||7===t.type&&"["===t.value||7===t.type&&"{"===t.value||4===t.type&&"let"===t.value||4===t.type&&"yield"===t.value},e.prototype.parseLexicalDeclaration=function(e){var t=this.createNode(),n=this.nextToken().value;i.assert("let"===n||"const"===n,"Lexical declaration must be either let or const");var r=this.parseBindingList(n,e);return this.consumeSemicolon(),this.finalize(t,new s.VariableDeclaration(r,n))},e.prototype.parseBindingRestElement=function(e,t){var n=this.createNode();this.expect("...");var i=this.parsePattern(e,t);return this.finalize(n,new s.RestElement(i))},e.prototype.parseArrayPattern=function(e,t){var n=this.createNode();this.expect("[");for(var i=[];!this.match("]");)if(this.match(","))this.nextToken(),i.push(null);else{if(this.match("...")){i.push(this.parseBindingRestElement(e,t));break}i.push(this.parsePatternWithDefault(e,t)),this.match("]")||this.expect(",")}return this.expect("]"),this.finalize(n,new s.ArrayPattern(i))},e.prototype.parsePropertyPattern=function(e,t){var n,i,r=this.createNode(),o=!1,a=!1;if(3===this.lookahead.type){var c=this.lookahead;n=this.parseVariableIdentifier();var u=this.finalize(r,new s.Identifier(c.value));if(this.match("=")){e.push(c),a=!0,this.nextToken();var l=this.parseAssignmentExpression();i=this.finalize(this.startNode(c),new s.AssignmentPattern(u,l))}else this.match(":")?(this.expect(":"),i=this.parsePatternWithDefault(e,t)):(e.push(c),a=!0,i=u)}else o=this.match("["),n=this.parseObjectPropertyKey(),this.expect(":"),i=this.parsePatternWithDefault(e,t);return this.finalize(r,new s.Property("init",n,o,i,!1,a))},e.prototype.parseObjectPattern=function(e,t){var n=this.createNode(),i=[];for(this.expect("{");!this.match("}");)i.push(this.parsePropertyPattern(e,t)),this.match("}")||this.expect(",");return this.expect("}"),this.finalize(n,new s.ObjectPattern(i))},e.prototype.parsePattern=function(e,t){var n;return this.match("[")?n=this.parseArrayPattern(e,t):this.match("{")?n=this.parseObjectPattern(e,t):(!this.matchKeyword("let")||"const"!==t&&"let"!==t||this.tolerateUnexpectedToken(this.lookahead,o.Messages.LetInLexicalBinding),e.push(this.lookahead),n=this.parseVariableIdentifier(t)),n},e.prototype.parsePatternWithDefault=function(e,t){var n=this.lookahead,i=this.parsePattern(e,t);if(this.match("=")){this.nextToken();var r=this.context.allowYield;this.context.allowYield=!0;var o=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowYield=r,i=this.finalize(this.startNode(n),new s.AssignmentPattern(i,o))}return i},e.prototype.parseVariableIdentifier=function(e){var t=this.createNode(),n=this.nextToken();return 4===n.type&&"yield"===n.value?this.context.strict?this.tolerateUnexpectedToken(n,o.Messages.StrictReservedWord):this.context.allowYield||this.throwUnexpectedToken(n):3!==n.type?this.context.strict&&4===n.type&&this.scanner.isStrictModeReservedWord(n.value)?this.tolerateUnexpectedToken(n,o.Messages.StrictReservedWord):(this.context.strict||"let"!==n.value||"var"!==e)&&this.throwUnexpectedToken(n):(this.context.isModule||this.context.await)&&3===n.type&&"await"===n.value&&this.tolerateUnexpectedToken(n),this.finalize(t,new s.Identifier(n.value))},e.prototype.parseVariableDeclaration=function(e){var t=this.createNode(),n=this.parsePattern([],"var");this.context.strict&&n.type===c.Syntax.Identifier&&this.scanner.isRestrictedWord(n.name)&&this.tolerateError(o.Messages.StrictVarName);var i=null;return this.match("=")?(this.nextToken(),i=this.isolateCoverGrammar(this.parseAssignmentExpression)):n.type===c.Syntax.Identifier||e.inFor||this.expect("="),this.finalize(t,new s.VariableDeclarator(n,i))},e.prototype.parseVariableDeclarationList=function(e){var t={inFor:e.inFor},n=[];for(n.push(this.parseVariableDeclaration(t));this.match(",");)this.nextToken(),n.push(this.parseVariableDeclaration(t));return n},e.prototype.parseVariableStatement=function(){var e=this.createNode();this.expectKeyword("var");var t=this.parseVariableDeclarationList({inFor:!1});return this.consumeSemicolon(),this.finalize(e,new s.VariableDeclaration(t,"var"))},e.prototype.parseEmptyStatement=function(){var e=this.createNode();return this.expect(";"),this.finalize(e,new s.EmptyStatement)},e.prototype.parseExpressionStatement=function(){var e=this.createNode(),t=this.parseExpression();return this.consumeSemicolon(),this.finalize(e,new s.ExpressionStatement(t))},e.prototype.parseIfClause=function(){return this.context.strict&&this.matchKeyword("function")&&this.tolerateError(o.Messages.StrictFunction),this.parseStatement()},e.prototype.parseIfStatement=function(){var e,t=this.createNode(),n=null;this.expectKeyword("if"),this.expect("(");var i=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),e=this.finalize(this.createNode(),new s.EmptyStatement)):(this.expect(")"),e=this.parseIfClause(),this.matchKeyword("else")&&(this.nextToken(),n=this.parseIfClause())),this.finalize(t,new s.IfStatement(i,e,n))},e.prototype.parseDoWhileStatement=function(){var e=this.createNode();this.expectKeyword("do");var t=this.context.inIteration;this.context.inIteration=!0;var n=this.parseStatement();this.context.inIteration=t,this.expectKeyword("while"),this.expect("(");var i=this.parseExpression();return!this.match(")")&&this.config.tolerant?this.tolerateUnexpectedToken(this.nextToken()):(this.expect(")"),this.match(";")&&this.nextToken()),this.finalize(e,new s.DoWhileStatement(n,i))},e.prototype.parseWhileStatement=function(){var e,t=this.createNode();this.expectKeyword("while"),this.expect("(");var n=this.parseExpression();if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),e=this.finalize(this.createNode(),new s.EmptyStatement);else{this.expect(")");var i=this.context.inIteration;this.context.inIteration=!0,e=this.parseStatement(),this.context.inIteration=i}return this.finalize(t,new s.WhileStatement(n,e))},e.prototype.parseForStatement=function(){var e,t,n,i=null,r=null,a=null,u=!0,l=this.createNode();if(this.expectKeyword("for"),this.expect("("),this.match(";"))this.nextToken();else if(this.matchKeyword("var")){i=this.createNode(),this.nextToken();var h=this.context.allowIn;this.context.allowIn=!1;var d=this.parseVariableDeclarationList({inFor:!0});if(this.context.allowIn=h,1===d.length&&this.matchKeyword("in")){var p=d[0];p.init&&(p.id.type===c.Syntax.ArrayPattern||p.id.type===c.Syntax.ObjectPattern||this.context.strict)&&this.tolerateError(o.Messages.ForInOfLoopInitializer,"for-in"),i=this.finalize(i,new s.VariableDeclaration(d,"var")),this.nextToken(),e=i,t=this.parseExpression(),i=null}else 1===d.length&&null===d[0].init&&this.matchContextualKeyword("of")?(i=this.finalize(i,new s.VariableDeclaration(d,"var")),this.nextToken(),e=i,t=this.parseAssignmentExpression(),i=null,u=!1):(i=this.finalize(i,new s.VariableDeclaration(d,"var")),this.expect(";"))}else if(this.matchKeyword("const")||this.matchKeyword("let")){i=this.createNode();var f=this.nextToken().value;this.context.strict||"in"!==this.lookahead.value?(h=this.context.allowIn,this.context.allowIn=!1,d=this.parseBindingList(f,{inFor:!0}),this.context.allowIn=h,1===d.length&&null===d[0].init&&this.matchKeyword("in")?(i=this.finalize(i,new s.VariableDeclaration(d,f)),this.nextToken(),e=i,t=this.parseExpression(),i=null):1===d.length&&null===d[0].init&&this.matchContextualKeyword("of")?(i=this.finalize(i,new s.VariableDeclaration(d,f)),this.nextToken(),e=i,t=this.parseAssignmentExpression(),i=null,u=!1):(this.consumeSemicolon(),i=this.finalize(i,new s.VariableDeclaration(d,f)))):(i=this.finalize(i,new s.Identifier(f)),this.nextToken(),e=i,t=this.parseExpression(),i=null)}else{var g=this.lookahead;if(h=this.context.allowIn,this.context.allowIn=!1,i=this.inheritCoverGrammar(this.parseAssignmentExpression),this.context.allowIn=h,this.matchKeyword("in"))this.context.isAssignmentTarget&&i.type!==c.Syntax.AssignmentExpression||this.tolerateError(o.Messages.InvalidLHSInForIn),this.nextToken(),this.reinterpretExpressionAsPattern(i),e=i,t=this.parseExpression(),i=null;else if(this.matchContextualKeyword("of"))this.context.isAssignmentTarget&&i.type!==c.Syntax.AssignmentExpression||this.tolerateError(o.Messages.InvalidLHSInForLoop),this.nextToken(),this.reinterpretExpressionAsPattern(i),e=i,t=this.parseAssignmentExpression(),i=null,u=!1;else{if(this.match(",")){for(var m=[i];this.match(",");)this.nextToken(),m.push(this.isolateCoverGrammar(this.parseAssignmentExpression));i=this.finalize(this.startNode(g),new s.SequenceExpression(m))}this.expect(";")}}if(void 0===e&&(this.match(";")||(r=this.parseExpression()),this.expect(";"),this.match(")")||(a=this.parseExpression())),!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),n=this.finalize(this.createNode(),new s.EmptyStatement);else{this.expect(")");var y=this.context.inIteration;this.context.inIteration=!0,n=this.isolateCoverGrammar(this.parseStatement),this.context.inIteration=y}return void 0===e?this.finalize(l,new s.ForStatement(i,r,a,n)):u?this.finalize(l,new s.ForInStatement(e,t,n)):this.finalize(l,new s.ForOfStatement(e,t,n))},e.prototype.parseContinueStatement=function(){var e=this.createNode();this.expectKeyword("continue");var t=null;if(3===this.lookahead.type&&!this.hasLineTerminator){var n=this.parseVariableIdentifier();t=n;var i="$"+n.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,i)||this.throwError(o.Messages.UnknownLabel,n.name)}return this.consumeSemicolon(),null!==t||this.context.inIteration||this.throwError(o.Messages.IllegalContinue),this.finalize(e,new s.ContinueStatement(t))},e.prototype.parseBreakStatement=function(){var e=this.createNode();this.expectKeyword("break");var t=null;if(3===this.lookahead.type&&!this.hasLineTerminator){var n=this.parseVariableIdentifier(),i="$"+n.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,i)||this.throwError(o.Messages.UnknownLabel,n.name),t=n}return this.consumeSemicolon(),null!==t||this.context.inIteration||this.context.inSwitch||this.throwError(o.Messages.IllegalBreak),this.finalize(e,new s.BreakStatement(t))},e.prototype.parseReturnStatement=function(){this.context.inFunctionBody||this.tolerateError(o.Messages.IllegalReturn);var e=this.createNode();this.expectKeyword("return");var t=(this.match(";")||this.match("}")||this.hasLineTerminator||2===this.lookahead.type)&&8!==this.lookahead.type&&10!==this.lookahead.type?null:this.parseExpression();return this.consumeSemicolon(),this.finalize(e,new s.ReturnStatement(t))},e.prototype.parseWithStatement=function(){this.context.strict&&this.tolerateError(o.Messages.StrictModeWith);var e,t=this.createNode();this.expectKeyword("with"),this.expect("(");var n=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),e=this.finalize(this.createNode(),new s.EmptyStatement)):(this.expect(")"),e=this.parseStatement()),this.finalize(t,new s.WithStatement(n,e))},e.prototype.parseSwitchCase=function(){var e,t=this.createNode();this.matchKeyword("default")?(this.nextToken(),e=null):(this.expectKeyword("case"),e=this.parseExpression()),this.expect(":");for(var n=[];!(this.match("}")||this.matchKeyword("default")||this.matchKeyword("case"));)n.push(this.parseStatementListItem());return this.finalize(t,new s.SwitchCase(e,n))},e.prototype.parseSwitchStatement=function(){var e=this.createNode();this.expectKeyword("switch"),this.expect("(");var t=this.parseExpression();this.expect(")");var n=this.context.inSwitch;this.context.inSwitch=!0;var i=[],r=!1;for(this.expect("{");!this.match("}");){var a=this.parseSwitchCase();null===a.test&&(r&&this.throwError(o.Messages.MultipleDefaultsInSwitch),r=!0),i.push(a)}return this.expect("}"),this.context.inSwitch=n,this.finalize(e,new s.SwitchStatement(t,i))},e.prototype.parseLabelledStatement=function(){var e,t=this.createNode(),n=this.parseExpression();if(n.type===c.Syntax.Identifier&&this.match(":")){this.nextToken();var i=n,r="$"+i.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,r)&&this.throwError(o.Messages.Redeclaration,"Label",i.name),this.context.labelSet[r]=!0;var a=void 0;if(this.matchKeyword("class"))this.tolerateUnexpectedToken(this.lookahead),a=this.parseClassDeclaration();else if(this.matchKeyword("function")){var u=this.lookahead,l=this.parseFunctionDeclaration();this.context.strict?this.tolerateUnexpectedToken(u,o.Messages.StrictFunction):l.generator&&this.tolerateUnexpectedToken(u,o.Messages.GeneratorInLegacyContext),a=l}else a=this.parseStatement();delete this.context.labelSet[r],e=new s.LabeledStatement(i,a)}else this.consumeSemicolon(),e=new s.ExpressionStatement(n);return this.finalize(t,e)},e.prototype.parseThrowStatement=function(){var e=this.createNode();this.expectKeyword("throw"),this.hasLineTerminator&&this.throwError(o.Messages.NewlineAfterThrow);var t=this.parseExpression();return this.consumeSemicolon(),this.finalize(e,new s.ThrowStatement(t))},e.prototype.parseCatchClause=function(){var e=this.createNode();this.expectKeyword("catch"),this.expect("("),this.match(")")&&this.throwUnexpectedToken(this.lookahead);for(var t=[],n=this.parsePattern(t),i={},r=0;r0&&this.tolerateError(o.Messages.BadGetterArity);var i=this.parsePropertyMethod(n);return this.context.allowYield=t,this.finalize(e,new s.FunctionExpression(null,n.params,i,!1))},e.prototype.parseSetterMethod=function(){var e=this.createNode(),t=this.context.allowYield;this.context.allowYield=!0;var n=this.parseFormalParameters();1!==n.params.length?this.tolerateError(o.Messages.BadSetterArity):n.params[0]instanceof s.RestElement&&this.tolerateError(o.Messages.BadSetterRestParameter);var i=this.parsePropertyMethod(n);return this.context.allowYield=t,this.finalize(e,new s.FunctionExpression(null,n.params,i,!1))},e.prototype.parseGeneratorMethod=function(){var e=this.createNode(),t=this.context.allowYield;this.context.allowYield=!0;var n=this.parseFormalParameters();this.context.allowYield=!1;var i=this.parsePropertyMethod(n);return this.context.allowYield=t,this.finalize(e,new s.FunctionExpression(null,n.params,i,!0))},e.prototype.isStartOfExpression=function(){var e=!0,t=this.lookahead.value;switch(this.lookahead.type){case 7:e="["===t||"("===t||"{"===t||"+"===t||"-"===t||"!"===t||"~"===t||"++"===t||"--"===t||"/"===t||"/="===t;break;case 4:e="class"===t||"delete"===t||"function"===t||"let"===t||"new"===t||"super"===t||"this"===t||"typeof"===t||"void"===t||"yield"===t}return e},e.prototype.parseYieldExpression=function(){var e=this.createNode();this.expectKeyword("yield");var t=null,n=!1;if(!this.hasLineTerminator){var i=this.context.allowYield;this.context.allowYield=!1,(n=this.match("*"))?(this.nextToken(),t=this.parseAssignmentExpression()):this.isStartOfExpression()&&(t=this.parseAssignmentExpression()),this.context.allowYield=i}return this.finalize(e,new s.YieldExpression(t,n))},e.prototype.parseClassElement=function(e){var t=this.lookahead,n=this.createNode(),i="",r=null,a=null,c=!1,u=!1,l=!1,h=!1;if(this.match("*"))this.nextToken();else if(c=this.match("["),"static"===(r=this.parseObjectPropertyKey()).name&&(this.qualifiedPropertyName(this.lookahead)||this.match("*"))&&(t=this.lookahead,l=!0,c=this.match("["),this.match("*")?this.nextToken():r=this.parseObjectPropertyKey()),3===t.type&&!this.hasLineTerminator&&"async"===t.value){var d=this.lookahead.value;":"!==d&&"("!==d&&"*"!==d&&(h=!0,t=this.lookahead,r=this.parseObjectPropertyKey(),3===t.type&&"constructor"===t.value&&this.tolerateUnexpectedToken(t,o.Messages.ConstructorIsAsync))}var p=this.qualifiedPropertyName(this.lookahead);return 3===t.type?"get"===t.value&&p?(i="get",c=this.match("["),r=this.parseObjectPropertyKey(),this.context.allowYield=!1,a=this.parseGetterMethod()):"set"===t.value&&p&&(i="set",c=this.match("["),r=this.parseObjectPropertyKey(),a=this.parseSetterMethod()):7===t.type&&"*"===t.value&&p&&(i="init",c=this.match("["),r=this.parseObjectPropertyKey(),a=this.parseGeneratorMethod(),u=!0),!i&&r&&this.match("(")&&(i="init",a=h?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),u=!0),i||this.throwUnexpectedToken(this.lookahead),"init"===i&&(i="method"),c||(l&&this.isPropertyKey(r,"prototype")&&this.throwUnexpectedToken(t,o.Messages.StaticPrototype),!l&&this.isPropertyKey(r,"constructor")&&(("method"!==i||!u||a&&a.generator)&&this.throwUnexpectedToken(t,o.Messages.ConstructorSpecialMethod),e.value?this.throwUnexpectedToken(t,o.Messages.DuplicateConstructor):e.value=!0,i="constructor")),this.finalize(n,new s.MethodDefinition(r,c,a,i,l))},e.prototype.parseClassElementList=function(){var e=[],t={value:!1};for(this.expect("{");!this.match("}");)this.match(";")?this.nextToken():e.push(this.parseClassElement(t));return this.expect("}"),e},e.prototype.parseClassBody=function(){var e=this.createNode(),t=this.parseClassElementList();return this.finalize(e,new s.ClassBody(t))},e.prototype.parseClassDeclaration=function(e){var t=this.createNode(),n=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var i=e&&3!==this.lookahead.type?null:this.parseVariableIdentifier(),r=null;this.matchKeyword("extends")&&(this.nextToken(),r=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var o=this.parseClassBody();return this.context.strict=n,this.finalize(t,new s.ClassDeclaration(i,r,o))},e.prototype.parseClassExpression=function(){var e=this.createNode(),t=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var n=3===this.lookahead.type?this.parseVariableIdentifier():null,i=null;this.matchKeyword("extends")&&(this.nextToken(),i=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var r=this.parseClassBody();return this.context.strict=t,this.finalize(e,new s.ClassExpression(n,i,r))},e.prototype.parseModule=function(){this.context.strict=!0,this.context.isModule=!0,this.scanner.isModule=!0;for(var e=this.createNode(),t=this.parseDirectivePrologues();2!==this.lookahead.type;)t.push(this.parseStatementListItem());return this.finalize(e,new s.Module(t))},e.prototype.parseScript=function(){for(var e=this.createNode(),t=this.parseDirectivePrologues();2!==this.lookahead.type;)t.push(this.parseStatementListItem());return this.finalize(e,new s.Script(t))},e.prototype.parseModuleSpecifier=function(){var e=this.createNode();8!==this.lookahead.type&&this.throwError(o.Messages.InvalidModuleSpecifier);var t=this.nextToken(),n=this.getTokenRaw(t);return this.finalize(e,new s.Literal(t.value,n))},e.prototype.parseImportSpecifier=function(){var e,t,n=this.createNode();return 3===this.lookahead.type?(t=e=this.parseVariableIdentifier(),this.matchContextualKeyword("as")&&(this.nextToken(),t=this.parseVariableIdentifier())):(t=e=this.parseIdentifierName(),this.matchContextualKeyword("as")?(this.nextToken(),t=this.parseVariableIdentifier()):this.throwUnexpectedToken(this.nextToken())),this.finalize(n,new s.ImportSpecifier(t,e))},e.prototype.parseNamedImports=function(){this.expect("{");for(var e=[];!this.match("}");)e.push(this.parseImportSpecifier()),this.match("}")||this.expect(",");return this.expect("}"),e},e.prototype.parseImportDefaultSpecifier=function(){var e=this.createNode(),t=this.parseIdentifierName();return this.finalize(e,new s.ImportDefaultSpecifier(t))},e.prototype.parseImportNamespaceSpecifier=function(){var e=this.createNode();this.expect("*"),this.matchContextualKeyword("as")||this.throwError(o.Messages.NoAsAfterImportNamespace),this.nextToken();var t=this.parseIdentifierName();return this.finalize(e,new s.ImportNamespaceSpecifier(t))},e.prototype.parseImportDeclaration=function(){this.context.inFunctionBody&&this.throwError(o.Messages.IllegalImportDeclaration);var e,t=this.createNode();this.expectKeyword("import");var n=[];if(8===this.lookahead.type)e=this.parseModuleSpecifier();else{if(this.match("{")?n=n.concat(this.parseNamedImports()):this.match("*")?n.push(this.parseImportNamespaceSpecifier()):this.isIdentifierName(this.lookahead)&&!this.matchKeyword("default")?(n.push(this.parseImportDefaultSpecifier()),this.match(",")&&(this.nextToken(),this.match("*")?n.push(this.parseImportNamespaceSpecifier()):this.match("{")?n=n.concat(this.parseNamedImports()):this.throwUnexpectedToken(this.lookahead))):this.throwUnexpectedToken(this.nextToken()),!this.matchContextualKeyword("from")){var i=this.lookahead.value?o.Messages.UnexpectedToken:o.Messages.MissingFromClause;this.throwError(i,this.lookahead.value)}this.nextToken(),e=this.parseModuleSpecifier()}return this.consumeSemicolon(),this.finalize(t,new s.ImportDeclaration(n,e))},e.prototype.parseExportSpecifier=function(){var e=this.createNode(),t=this.parseIdentifierName(),n=t;return this.matchContextualKeyword("as")&&(this.nextToken(),n=this.parseIdentifierName()),this.finalize(e,new s.ExportSpecifier(t,n))},e.prototype.parseExportDeclaration=function(){this.context.inFunctionBody&&this.throwError(o.Messages.IllegalExportDeclaration);var e,t=this.createNode();if(this.expectKeyword("export"),this.matchKeyword("default"))if(this.nextToken(),this.matchKeyword("function")){var n=this.parseFunctionDeclaration(!0);e=this.finalize(t,new s.ExportDefaultDeclaration(n))}else this.matchKeyword("class")?(n=this.parseClassDeclaration(!0),e=this.finalize(t,new s.ExportDefaultDeclaration(n))):this.matchContextualKeyword("async")?(n=this.matchAsyncFunction()?this.parseFunctionDeclaration(!0):this.parseAssignmentExpression(),e=this.finalize(t,new s.ExportDefaultDeclaration(n))):(this.matchContextualKeyword("from")&&this.throwError(o.Messages.UnexpectedToken,this.lookahead.value),n=this.match("{")?this.parseObjectInitializer():this.match("[")?this.parseArrayInitializer():this.parseAssignmentExpression(),this.consumeSemicolon(),e=this.finalize(t,new s.ExportDefaultDeclaration(n)));else if(this.match("*")){if(this.nextToken(),!this.matchContextualKeyword("from")){var i=this.lookahead.value?o.Messages.UnexpectedToken:o.Messages.MissingFromClause;this.throwError(i,this.lookahead.value)}this.nextToken();var r=this.parseModuleSpecifier();this.consumeSemicolon(),e=this.finalize(t,new s.ExportAllDeclaration(r))}else if(4===this.lookahead.type){switch(n=void 0,this.lookahead.value){case"let":case"const":n=this.parseLexicalDeclaration({inFor:!1});break;case"var":case"class":case"function":n=this.parseStatementListItem();break;default:this.throwUnexpectedToken(this.lookahead)}e=this.finalize(t,new s.ExportNamedDeclaration(n,[],null))}else if(this.matchAsyncFunction())n=this.parseFunctionDeclaration(),e=this.finalize(t,new s.ExportNamedDeclaration(n,[],null));else{var a=[],c=null,u=!1;for(this.expect("{");!this.match("}");)u=u||this.matchKeyword("default"),a.push(this.parseExportSpecifier()),this.match("}")||this.expect(",");this.expect("}"),this.matchContextualKeyword("from")?(this.nextToken(),c=this.parseModuleSpecifier(),this.consumeSemicolon()):u?(i=this.lookahead.value?o.Messages.UnexpectedToken:o.Messages.MissingFromClause,this.throwError(i,this.lookahead.value)):this.consumeSemicolon(),e=this.finalize(t,new s.ExportNamedDeclaration(null,a,c))}return e},e}();t.Parser=h},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assert=function(e,t){if(!e)throw new Error("ASSERT: "+t)}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){this.errors=[],this.tolerant=!1}return e.prototype.recordError=function(e){this.errors.push(e)},e.prototype.tolerate=function(e){if(!this.tolerant)throw e;this.recordError(e)},e.prototype.constructError=function(e,t){var n=new Error(e);try{throw n}catch(e){Object.create&&Object.defineProperty&&(n=Object.create(e),Object.defineProperty(n,"column",{value:t}))}return n},e.prototype.createError=function(e,t,n,i){var r="Line "+t+": "+i,o=this.constructError(r,n);return o.index=e,o.lineNumber=t,o.description=i,o},e.prototype.throwError=function(e,t,n,i){throw this.createError(e,t,n,i)},e.prototype.tolerateError=function(e,t,n,i){var r=this.createError(e,t,n,i);if(!this.tolerant)throw r;this.recordError(r)},e}();t.ErrorHandler=n},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Messages={BadGetterArity:"Getter must not have any formal parameters",BadSetterArity:"Setter must have exactly one formal parameter",BadSetterRestParameter:"Setter function argument must not be a rest parameter",ConstructorIsAsync:"Class constructor may not be an async method",ConstructorSpecialMethod:"Class constructor may not be an accessor",DeclarationMissingInitializer:"Missing initializer in %0 declaration",DefaultRestParameter:"Unexpected token =",DuplicateBinding:"Duplicate binding %0",DuplicateConstructor:"A class may only have one constructor",DuplicateProtoProperty:"Duplicate __proto__ fields are not allowed in object literals",ForInOfLoopInitializer:"%0 loop variable declaration may not have an initializer",GeneratorInLegacyContext:"Generator declarations are not allowed in legacy contexts",IllegalBreak:"Illegal break statement",IllegalContinue:"Illegal continue statement",IllegalExportDeclaration:"Unexpected token",IllegalImportDeclaration:"Unexpected token",IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list",IllegalReturn:"Illegal return statement",InvalidEscapedReservedWord:"Keyword must not contain escaped characters",InvalidHexEscapeSequence:"Invalid hexadecimal escape sequence",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",InvalidLHSInForLoop:"Invalid left-hand side in for-loop",InvalidModuleSpecifier:"Unexpected token",InvalidRegExp:"Invalid regular expression",LetInLexicalBinding:"let is disallowed as a lexically bound name",MissingFromClause:"Unexpected token",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NewlineAfterThrow:"Illegal newline after throw",NoAsAfterImportNamespace:"Unexpected token",NoCatchOrFinally:"Missing catch or finally after try",ParameterAfterRestParameter:"Rest parameter must be last formal parameter",Redeclaration:"%0 '%1' has already been declared",StaticPrototype:"Classes may not have static property named prototype",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictModeWith:"Strict mode code may not include a with statement",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictReservedWord:"Use of future reserved word in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",TemplateOctalLiteral:"Octal literals are not allowed in template strings.",UnexpectedEOS:"Unexpected end of input",UnexpectedIdentifier:"Unexpected identifier",UnexpectedNumber:"Unexpected number",UnexpectedReserved:"Unexpected reserved word",UnexpectedString:"Unexpected string",UnexpectedTemplate:"Unexpected quasi %0",UnexpectedToken:"Unexpected token %0",UnexpectedTokenIllegal:"Unexpected token ILLEGAL",UnknownLabel:"Undefined label '%0'",UnterminatedRegExp:"Invalid regular expression: missing /"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(9),r=n(4),o=n(11);function s(e){return"0123456789abcdef".indexOf(e.toLowerCase())}function a(e){return"01234567".indexOf(e)}var c=function(){function e(e,t){this.source=e,this.errorHandler=t,this.trackComment=!1,this.isModule=!1,this.length=e.length,this.index=0,this.lineNumber=e.length>0?1:0,this.lineStart=0,this.curlyStack=[]}return e.prototype.saveState=function(){return{index:this.index,lineNumber:this.lineNumber,lineStart:this.lineStart}},e.prototype.restoreState=function(e){this.index=e.index,this.lineNumber=e.lineNumber,this.lineStart=e.lineStart},e.prototype.eof=function(){return this.index>=this.length},e.prototype.throwUnexpectedToken=function(e){return void 0===e&&(e=o.Messages.UnexpectedTokenIllegal),this.errorHandler.throwError(this.index,this.lineNumber,this.index-this.lineStart+1,e)},e.prototype.tolerateUnexpectedToken=function(e){void 0===e&&(e=o.Messages.UnexpectedTokenIllegal),this.errorHandler.tolerateError(this.index,this.lineNumber,this.index-this.lineStart+1,e)},e.prototype.skipSingleLineComment=function(e){var t,n,i=[];for(this.trackComment&&(i=[],t=this.index-e,n={start:{line:this.lineNumber,column:this.index-this.lineStart-e},end:{}});!this.eof();){var o=this.source.charCodeAt(this.index);if(++this.index,r.Character.isLineTerminator(o)){if(this.trackComment){n.end={line:this.lineNumber,column:this.index-this.lineStart-1};var s={multiLine:!1,slice:[t+e,this.index-1],range:[t,this.index-1],loc:n};i.push(s)}return 13===o&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,i}}return this.trackComment&&(n.end={line:this.lineNumber,column:this.index-this.lineStart},s={multiLine:!1,slice:[t+e,this.index],range:[t,this.index],loc:n},i.push(s)),i},e.prototype.skipMultiLineComment=function(){var e,t,n=[];for(this.trackComment&&(n=[],e=this.index-2,t={start:{line:this.lineNumber,column:this.index-this.lineStart-2},end:{}});!this.eof();){var i=this.source.charCodeAt(this.index);if(r.Character.isLineTerminator(i))13===i&&10===this.source.charCodeAt(this.index+1)&&++this.index,++this.lineNumber,++this.index,this.lineStart=this.index;else if(42===i){if(47===this.source.charCodeAt(this.index+1)){if(this.index+=2,this.trackComment){t.end={line:this.lineNumber,column:this.index-this.lineStart};var o={multiLine:!0,slice:[e+2,this.index-2],range:[e,this.index],loc:t};n.push(o)}return n}++this.index}else++this.index}return this.trackComment&&(t.end={line:this.lineNumber,column:this.index-this.lineStart},o={multiLine:!0,slice:[e+2,this.index],range:[e,this.index],loc:t},n.push(o)),this.tolerateUnexpectedToken(),n},e.prototype.scanComments=function(){var e;this.trackComment&&(e=[]);for(var t=0===this.index;!this.eof();){var n=this.source.charCodeAt(this.index);if(r.Character.isWhiteSpace(n))++this.index;else if(r.Character.isLineTerminator(n))++this.index,13===n&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,t=!0;else if(47===n)if(47===(n=this.source.charCodeAt(this.index+1))){this.index+=2;var i=this.skipSingleLineComment(2);this.trackComment&&(e=e.concat(i)),t=!0}else{if(42!==n)break;this.index+=2,i=this.skipMultiLineComment(),this.trackComment&&(e=e.concat(i))}else if(t&&45===n){if(45!==this.source.charCodeAt(this.index+1)||62!==this.source.charCodeAt(this.index+2))break;this.index+=3,i=this.skipSingleLineComment(3),this.trackComment&&(e=e.concat(i))}else{if(60!==n||this.isModule)break;if("!--"!==this.source.slice(this.index+1,this.index+4))break;this.index+=4,i=this.skipSingleLineComment(4),this.trackComment&&(e=e.concat(i))}}return e},e.prototype.isFutureReservedWord=function(e){switch(e){case"enum":case"export":case"import":case"super":return!0;default:return!1}},e.prototype.isStrictModeReservedWord=function(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}},e.prototype.isRestrictedWord=function(e){return"eval"===e||"arguments"===e},e.prototype.isKeyword=function(e){switch(e.length){case 2:return"if"===e||"in"===e||"do"===e;case 3:return"var"===e||"for"===e||"new"===e||"try"===e||"let"===e;case 4:return"this"===e||"else"===e||"case"===e||"void"===e||"with"===e||"enum"===e;case 5:return"while"===e||"break"===e||"catch"===e||"throw"===e||"const"===e||"yield"===e||"class"===e||"super"===e;case 6:return"return"===e||"typeof"===e||"delete"===e||"switch"===e||"export"===e||"import"===e;case 7:return"default"===e||"finally"===e||"extends"===e;case 8:return"function"===e||"continue"===e||"debugger"===e;case 10:return"instanceof"===e;default:return!1}},e.prototype.codePointAt=function(e){var t=this.source.charCodeAt(e);if(t>=55296&&t<=56319){var n=this.source.charCodeAt(e+1);n>=56320&&n<=57343&&(t=1024*(t-55296)+n-56320+65536)}return t},e.prototype.scanHexEscape=function(e){for(var t="u"===e?4:2,n=0,i=0;i1114111||"}"!==e)&&this.throwUnexpectedToken(),r.Character.fromCodePoint(t)},e.prototype.getIdentifier=function(){for(var e=this.index++;!this.eof();){var t=this.source.charCodeAt(this.index);if(92===t)return this.index=e,this.getComplexIdentifier();if(t>=55296&&t<57343)return this.index=e,this.getComplexIdentifier();if(!r.Character.isIdentifierPart(t))break;++this.index}return this.source.slice(e,this.index)},e.prototype.getComplexIdentifier=function(){var e,t=this.codePointAt(this.index),n=r.Character.fromCodePoint(t);for(this.index+=n.length,92===t&&(117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,e=this.scanUnicodeCodePointEscape()):null!==(e=this.scanHexEscape("u"))&&"\\"!==e&&r.Character.isIdentifierStart(e.charCodeAt(0))||this.throwUnexpectedToken(),n=e);!this.eof()&&(t=this.codePointAt(this.index),r.Character.isIdentifierPart(t));)n+=e=r.Character.fromCodePoint(t),this.index+=e.length,92===t&&(n=n.substr(0,n.length-1),117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,e=this.scanUnicodeCodePointEscape()):null!==(e=this.scanHexEscape("u"))&&"\\"!==e&&r.Character.isIdentifierPart(e.charCodeAt(0))||this.throwUnexpectedToken(),n+=e);return n},e.prototype.octalToDecimal=function(e){var t="0"!==e,n=a(e);return!this.eof()&&r.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(t=!0,n=8*n+a(this.source[this.index++]),"0123".indexOf(e)>=0&&!this.eof()&&r.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(n=8*n+a(this.source[this.index++]))),{code:n,octal:t}},e.prototype.scanIdentifier=function(){var e,t=this.index,n=92===this.source.charCodeAt(t)?this.getComplexIdentifier():this.getIdentifier();if(3!=(e=1===n.length?3:this.isKeyword(n)?4:"null"===n?5:"true"===n||"false"===n?1:3)&&t+n.length!==this.index){var i=this.index;this.index=t,this.tolerateUnexpectedToken(o.Messages.InvalidEscapedReservedWord),this.index=i}return{type:e,value:n,lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index}},e.prototype.scanPunctuator=function(){var e=this.index,t=this.source[this.index];switch(t){case"(":case"{":"{"===t&&this.curlyStack.push("{"),++this.index;break;case".":++this.index,"."===this.source[this.index]&&"."===this.source[this.index+1]&&(this.index+=2,t="...");break;case"}":++this.index,this.curlyStack.pop();break;case")":case";":case",":case"[":case"]":case":":case"?":case"~":++this.index;break;default:">>>="===(t=this.source.substr(this.index,4))?this.index+=4:"==="===(t=t.substr(0,3))||"!=="===t||">>>"===t||"<<="===t||">>="===t||"**="===t?this.index+=3:"&&"===(t=t.substr(0,2))||"||"===t||"=="===t||"!="===t||"+="===t||"-="===t||"*="===t||"/="===t||"++"===t||"--"===t||"<<"===t||">>"===t||"&="===t||"|="===t||"^="===t||"%="===t||"<="===t||">="===t||"=>"===t||"**"===t?this.index+=2:(t=this.source[this.index],"<>=!+-*%&|^/".indexOf(t)>=0&&++this.index)}return this.index===e&&this.throwUnexpectedToken(),{type:7,value:t,lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanHexLiteral=function(e){for(var t="";!this.eof()&&r.Character.isHexDigit(this.source.charCodeAt(this.index));)t+=this.source[this.index++];return 0===t.length&&this.throwUnexpectedToken(),r.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseInt("0x"+t,16),lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanBinaryLiteral=function(e){for(var t,n="";!this.eof()&&("0"===(t=this.source[this.index])||"1"===t);)n+=this.source[this.index++];return 0===n.length&&this.throwUnexpectedToken(),this.eof()||(t=this.source.charCodeAt(this.index),(r.Character.isIdentifierStart(t)||r.Character.isDecimalDigit(t))&&this.throwUnexpectedToken()),{type:6,value:parseInt(n,2),lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanOctalLiteral=function(e,t){var n="",i=!1;for(r.Character.isOctalDigit(e.charCodeAt(0))?(i=!0,n="0"+this.source[this.index++]):++this.index;!this.eof()&&r.Character.isOctalDigit(this.source.charCodeAt(this.index));)n+=this.source[this.index++];return i||0!==n.length||this.throwUnexpectedToken(),(r.Character.isIdentifierStart(this.source.charCodeAt(this.index))||r.Character.isDecimalDigit(this.source.charCodeAt(this.index)))&&this.throwUnexpectedToken(),{type:6,value:parseInt(n,8),octal:i,lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index}},e.prototype.isImplicitOctalLiteral=function(){for(var e=this.index+1;e=0&&(n=n.replace(/\\u\{([0-9a-fA-F]+)\}|\\u([a-fA-F0-9]{4})/g,(function(e,t,n){var r=parseInt(t||n,16);return r>1114111&&i.throwUnexpectedToken(o.Messages.InvalidRegExp),r<=65535?String.fromCharCode(r):"￿"})).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"￿"));try{RegExp(n)}catch(e){this.throwUnexpectedToken(o.Messages.InvalidRegExp)}try{return new RegExp(e,t)}catch(e){return null}},e.prototype.scanRegExpBody=function(){var e=this.source[this.index];i.assert("/"===e,"Regular expression literal must start with a slash");for(var t=this.source[this.index++],n=!1,s=!1;!this.eof();)if(t+=e=this.source[this.index++],"\\"===e)e=this.source[this.index++],r.Character.isLineTerminator(e.charCodeAt(0))&&this.throwUnexpectedToken(o.Messages.UnterminatedRegExp),t+=e;else if(r.Character.isLineTerminator(e.charCodeAt(0)))this.throwUnexpectedToken(o.Messages.UnterminatedRegExp);else if(n)"]"===e&&(n=!1);else{if("/"===e){s=!0;break}"["===e&&(n=!0)}return s||this.throwUnexpectedToken(o.Messages.UnterminatedRegExp),t.substr(1,t.length-2)},e.prototype.scanRegExpFlags=function(){for(var e="";!this.eof();){var t=this.source[this.index];if(!r.Character.isIdentifierPart(t.charCodeAt(0)))break;if(++this.index,"\\"!==t||this.eof())e+=t;else if("u"===(t=this.source[this.index])){++this.index;var n=this.index,i=this.scanHexEscape("u");if(null!==i)for(e+=i;n=55296&&e<57343&&r.Character.isIdentifierStart(this.codePointAt(this.index))?this.scanIdentifier():this.scanPunctuator()},e}();t.Scanner=c},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TokenName={},t.TokenName[1]="Boolean",t.TokenName[2]="",t.TokenName[3]="Identifier",t.TokenName[4]="Keyword",t.TokenName[5]="Null",t.TokenName[6]="Numeric",t.TokenName[7]="Punctuator",t.TokenName[8]="String",t.TokenName[9]="RegularExpression",t.TokenName[10]="Template"},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XHTMLEntities={quot:'"',amp:"&",apos:"'",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",lang:"⟨",rang:"⟩"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(10),r=n(12),o=n(13),s=function(){function e(){this.values=[],this.curly=this.paren=-1}return e.prototype.beforeFunctionExpression=function(e){return["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","**","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="].indexOf(e)>=0},e.prototype.isRegexStart=function(){var e=this.values[this.values.length-1],t=null!==e;switch(e){case"this":case"]":t=!1;break;case")":var n=this.values[this.paren-1];t="if"===n||"while"===n||"for"===n||"with"===n;break;case"}":if(t=!1,"function"===this.values[this.curly-3])t=!!(i=this.values[this.curly-4])&&!this.beforeFunctionExpression(i);else if("function"===this.values[this.curly-4]){var i;t=!(i=this.values[this.curly-5])||!this.beforeFunctionExpression(i)}}return t},e.prototype.push=function(e){7===e.type||4===e.type?("{"===e.value?this.curly=this.values.length:"("===e.value&&(this.paren=this.values.length),this.values.push(e.value)):this.values.push(null)},e}(),a=function(){function e(e,t){this.errorHandler=new i.ErrorHandler,this.errorHandler.tolerant=!!t&&"boolean"==typeof t.tolerant&&t.tolerant,this.scanner=new r.Scanner(e,this.errorHandler),this.scanner.trackComment=!!t&&"boolean"==typeof t.comment&&t.comment,this.trackRange=!!t&&"boolean"==typeof t.range&&t.range,this.trackLoc=!!t&&"boolean"==typeof t.loc&&t.loc,this.buffer=[],this.reader=new s}return e.prototype.errors=function(){return this.errorHandler.errors},e.prototype.getNextToken=function(){if(0===this.buffer.length){var e=this.scanner.scanComments();if(this.scanner.trackComment)for(var t=0;t{"use strict";const i=n(85),r=n(1017),o=n(5145).mkdirsSync,s=n(2450).utimesMillisSync,a=n(3719);function c(e,t,n,o){const s=(o.dereference?i.statSync:i.lstatSync)(t);if(s.isDirectory())return function(e,t,n,r,o){return t?h(n,r,o):function(e,t,n,r){return i.mkdirSync(n),h(t,n,r),l(n,e)}(e.mode,n,r,o)}(s,e,t,n,o);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return function(e,t,n,r,o){return t?function(e,t,n,r){if(r.overwrite)return i.unlinkSync(n),u(e,t,n,r);if(r.errorOnExist)throw new Error(`'${n}' already exists`)}(e,n,r,o):u(e,n,r,o)}(s,e,t,n,o);if(s.isSymbolicLink())return function(e,t,n,o){let s=i.readlinkSync(t);if(o.dereference&&(s=r.resolve(process.cwd(),s)),e){let e;try{e=i.readlinkSync(n)}catch(e){if("EINVAL"===e.code||"UNKNOWN"===e.code)return i.symlinkSync(s,n);throw e}if(o.dereference&&(e=r.resolve(process.cwd(),e)),a.isSrcSubdir(s,e))throw new Error(`Cannot copy '${s}' to a subdirectory of itself, '${e}'.`);if(i.statSync(n).isDirectory()&&a.isSrcSubdir(e,s))throw new Error(`Cannot overwrite '${e}' with '${s}'.`);return function(e,t){return i.unlinkSync(t),i.symlinkSync(e,t)}(s,n)}return i.symlinkSync(s,n)}(e,t,n,o);if(s.isSocket())throw new Error(`Cannot copy a socket file: ${t}`);if(s.isFIFO())throw new Error(`Cannot copy a FIFO pipe: ${t}`);throw new Error(`Unknown file: ${t}`)}function u(e,t,n,r){return i.copyFileSync(t,n),r.preserveTimestamps&&function(e,t,n){(function(e){return 0==(128&e)})(e)&&function(e,t){l(e,128|t)}(n,e),function(e,t){const n=i.statSync(e);s(t,n.atime,n.mtime)}(t,n)}(e.mode,t,n),l(n,e.mode)}function l(e,t){return i.chmodSync(e,t)}function h(e,t,n){i.readdirSync(e).forEach((i=>function(e,t,n,i){const o=r.join(t,e),s=r.join(n,e),{destStat:u}=a.checkPathsSync(o,s,"copy",i);return function(e,t,n,i){if(!i.filter||i.filter(t,n))return c(e,t,n,i)}(u,o,s,i)}(i,e,t,n)))}e.exports=function(e,t,n){"function"==typeof n&&(n={filter:n}),(n=n||{}).clobber=!("clobber"in n)||!!n.clobber,n.overwrite="overwrite"in n?!!n.overwrite:n.clobber,n.preserveTimestamps&&"ia32"===process.arch&&console.warn("fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269");const{srcStat:s,destStat:u}=a.checkPathsSync(e,t,"copy",n);return a.checkParentPathsSync(e,s,t,"copy"),function(e,t,n,s){if(s.filter&&!s.filter(t,n))return;const a=r.dirname(n);return i.existsSync(a)||o(a),c(e,t,n,s)}(u,e,t,n)}},5205:(e,t,n)=>{"use strict";const i=n(85),r=n(1017),o=n(5145).mkdirs,s=n(9699).pathExists,a=n(2450).utimesMillis,c=n(3719);function u(e,t,n,i,a){const c=r.dirname(n);s(c,((r,s)=>r?a(r):s?h(e,t,n,i,a):void o(c,(r=>r?a(r):h(e,t,n,i,a)))))}function l(e,t,n,i,r,o){Promise.resolve(r.filter(n,i)).then((s=>s?e(t,n,i,r,o):o()),(e=>o(e)))}function h(e,t,n,o,s){(o.dereference?i.stat:i.lstat)(t,((a,u)=>a?s(a):u.isDirectory()?function(e,t,n,r,o,s){return t?g(n,r,o,s):function(e,t,n,r,o){i.mkdir(n,(i=>{if(i)return o(i);g(t,n,r,(t=>t?o(t):f(n,e,o)))}))}(e.mode,n,r,o,s)}(u,e,t,n,o,s):u.isFile()||u.isCharacterDevice()||u.isBlockDevice()?function(e,t,n,r,o,s){return t?function(e,t,n,r,o){if(!r.overwrite)return r.errorOnExist?o(new Error(`'${n}' already exists`)):o();i.unlink(n,(i=>i?o(i):d(e,t,n,r,o)))}(e,n,r,o,s):d(e,n,r,o,s)}(u,e,t,n,o,s):u.isSymbolicLink()?function(e,t,n,o,s){i.readlink(t,((t,a)=>t?s(t):(o.dereference&&(a=r.resolve(process.cwd(),a)),e?void i.readlink(n,((t,u)=>t?"EINVAL"===t.code||"UNKNOWN"===t.code?i.symlink(a,n,s):s(t):(o.dereference&&(u=r.resolve(process.cwd(),u)),c.isSrcSubdir(a,u)?s(new Error(`Cannot copy '${a}' to a subdirectory of itself, '${u}'.`)):e.isDirectory()&&c.isSrcSubdir(u,a)?s(new Error(`Cannot overwrite '${u}' with '${a}'.`)):function(e,t,n){i.unlink(t,(r=>r?n(r):i.symlink(e,t,n)))}(a,n,s)))):i.symlink(a,n,s))))}(e,t,n,o,s):u.isSocket()?s(new Error(`Cannot copy a socket file: ${t}`)):u.isFIFO()?s(new Error(`Cannot copy a FIFO pipe: ${t}`)):s(new Error(`Unknown file: ${t}`))))}function d(e,t,n,r,o){i.copyFile(t,n,(i=>i?o(i):r.preserveTimestamps?function(e,t,n,i){return function(e){return 0==(128&e)}(e)?function(e,t,n){return f(e,128|t,n)}(n,e,(r=>r?i(r):p(e,t,n,i))):p(e,t,n,i)}(e.mode,t,n,o):f(n,e.mode,o)))}function p(e,t,n,r){!function(e,t,n){i.stat(e,((e,i)=>e?n(e):a(t,i.atime,i.mtime,n)))}(t,n,(t=>t?r(t):f(n,e,r)))}function f(e,t,n){return i.chmod(e,t,n)}function g(e,t,n,r){i.readdir(e,((i,o)=>i?r(i):m(o,e,t,n,r)))}function m(e,t,n,i,o){const s=e.pop();return s?function(e,t,n,i,o,s){const a=r.join(n,t),u=r.join(i,t);c.checkPaths(a,u,"copy",o,((t,r)=>{if(t)return s(t);const{destStat:c}=r;!function(e,t,n,i,r){i.filter?l(h,e,t,n,i,r):h(e,t,n,i,r)}(c,a,u,o,(t=>t?s(t):m(e,n,i,o,s)))}))}(e,s,t,n,i,o):o()}e.exports=function(e,t,n,i){"function"!=typeof n||i?"function"==typeof n&&(n={filter:n}):(i=n,n={}),i=i||function(){},(n=n||{}).clobber=!("clobber"in n)||!!n.clobber,n.overwrite="overwrite"in n?!!n.overwrite:n.clobber,n.preserveTimestamps&&"ia32"===process.arch&&console.warn("fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269"),c.checkPaths(e,t,"copy",n,((r,o)=>{if(r)return i(r);const{srcStat:s,destStat:a}=o;c.checkParentPaths(e,s,t,"copy",(r=>r?i(r):n.filter?l(u,a,e,t,n,i):u(a,e,t,n,i)))}))}},1889:(e,t,n)=>{"use strict";const i=n(5725).fromCallback;e.exports={copy:i(n(5205)),copySync:n(2178)}},4088:(e,t,n)=>{"use strict";const i=n(5725).fromPromise,r=n(2143),o=n(1017),s=n(5145),a=n(3495),c=i((async function(e){let t;try{t=await r.readdir(e)}catch{return s.mkdirs(e)}return Promise.all(t.map((t=>a.remove(o.join(e,t)))))}));function u(e){let t;try{t=r.readdirSync(e)}catch{return s.mkdirsSync(e)}t.forEach((t=>{t=o.join(e,t),a.removeSync(t)}))}e.exports={emptyDirSync:u,emptydirSync:u,emptyDir:c,emptydir:c}},1454:(e,t,n)=>{"use strict";const i=n(5725).fromCallback,r=n(1017),o=n(85),s=n(5145);e.exports={createFile:i((function(e,t){function n(){o.writeFile(e,"",(e=>{if(e)return t(e);t()}))}o.stat(e,((i,a)=>{if(!i&&a.isFile())return t();const c=r.dirname(e);o.stat(c,((e,i)=>{if(e)return"ENOENT"===e.code?s.mkdirs(c,(e=>{if(e)return t(e);n()})):t(e);i.isDirectory()?n():o.readdir(c,(e=>{if(e)return t(e)}))}))}))})),createFileSync:function(e){let t;try{t=o.statSync(e)}catch{}if(t&&t.isFile())return;const n=r.dirname(e);try{o.statSync(n).isDirectory()||o.readdirSync(n)}catch(e){if(!e||"ENOENT"!==e.code)throw e;s.mkdirsSync(n)}o.writeFileSync(e,"")}}},2689:(e,t,n)=>{"use strict";const{createFile:i,createFileSync:r}=n(1454),{createLink:o,createLinkSync:s}=n(462),{createSymlink:a,createSymlinkSync:c}=n(3318);e.exports={createFile:i,createFileSync:r,ensureFile:i,ensureFileSync:r,createLink:o,createLinkSync:s,ensureLink:o,ensureLinkSync:s,createSymlink:a,createSymlinkSync:c,ensureSymlink:a,ensureSymlinkSync:c}},462:(e,t,n)=>{"use strict";const i=n(5725).fromCallback,r=n(1017),o=n(85),s=n(5145),a=n(9699).pathExists,{areIdentical:c}=n(3719);e.exports={createLink:i((function(e,t,n){function i(e,t){o.link(e,t,(e=>{if(e)return n(e);n(null)}))}o.lstat(t,((u,l)=>{o.lstat(e,((o,u)=>{if(o)return o.message=o.message.replace("lstat","ensureLink"),n(o);if(l&&c(u,l))return n(null);const h=r.dirname(t);a(h,((r,o)=>r?n(r):o?i(e,t):void s.mkdirs(h,(r=>{if(r)return n(r);i(e,t)}))))}))}))})),createLinkSync:function(e,t){let n;try{n=o.lstatSync(t)}catch{}try{const t=o.lstatSync(e);if(n&&c(t,n))return}catch(e){throw e.message=e.message.replace("lstat","ensureLink"),e}const i=r.dirname(t);return o.existsSync(i)||s.mkdirsSync(i),o.linkSync(e,t)}}},7650:(e,t,n)=>{"use strict";const i=n(1017),r=n(85),o=n(9699).pathExists;e.exports={symlinkPaths:function(e,t,n){if(i.isAbsolute(e))return r.lstat(e,(t=>t?(t.message=t.message.replace("lstat","ensureSymlink"),n(t)):n(null,{toCwd:e,toDst:e})));{const s=i.dirname(t),a=i.join(s,e);return o(a,((t,o)=>t?n(t):o?n(null,{toCwd:a,toDst:e}):r.lstat(e,(t=>t?(t.message=t.message.replace("lstat","ensureSymlink"),n(t)):n(null,{toCwd:e,toDst:i.relative(s,e)})))))}},symlinkPathsSync:function(e,t){let n;if(i.isAbsolute(e)){if(n=r.existsSync(e),!n)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}{const o=i.dirname(t),s=i.join(o,e);if(n=r.existsSync(s),n)return{toCwd:s,toDst:e};if(n=r.existsSync(e),!n)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:i.relative(o,e)}}}}},2947:(e,t,n)=>{"use strict";const i=n(85);e.exports={symlinkType:function(e,t,n){if(n="function"==typeof t?t:n,t="function"!=typeof t&&t)return n(null,t);i.lstat(e,((e,i)=>{if(e)return n(null,"file");t=i&&i.isDirectory()?"dir":"file",n(null,t)}))},symlinkTypeSync:function(e,t){let n;if(t)return t;try{n=i.lstatSync(e)}catch{return"file"}return n&&n.isDirectory()?"dir":"file"}}},3318:(e,t,n)=>{"use strict";const i=n(5725).fromCallback,r=n(1017),o=n(2143),s=n(5145),a=s.mkdirs,c=s.mkdirsSync,u=n(7650),l=u.symlinkPaths,h=u.symlinkPathsSync,d=n(2947),p=d.symlinkType,f=d.symlinkTypeSync,g=n(9699).pathExists,{areIdentical:m}=n(3719);function y(e,t,n,i){l(e,t,((s,c)=>{if(s)return i(s);e=c.toDst,p(c.toCwd,n,((n,s)=>{if(n)return i(n);const c=r.dirname(t);g(c,((n,r)=>n?i(n):r?o.symlink(e,t,s,i):void a(c,(n=>{if(n)return i(n);o.symlink(e,t,s,i)}))))}))}))}e.exports={createSymlink:i((function(e,t,n,i){i="function"==typeof n?n:i,n="function"!=typeof n&&n,o.lstat(t,((r,s)=>{!r&&s.isSymbolicLink()?Promise.all([o.stat(e),o.stat(t)]).then((([r,o])=>{if(m(r,o))return i(null);y(e,t,n,i)})):y(e,t,n,i)}))})),createSymlinkSync:function(e,t,n){let i;try{i=o.lstatSync(t)}catch{}if(i&&i.isSymbolicLink()){const n=o.statSync(e),i=o.statSync(t);if(m(n,i))return}const s=h(e,t);e=s.toDst,n=f(s.toCwd,n);const a=r.dirname(t);return o.existsSync(a)||c(a),o.symlinkSync(e,t,n)}}},2143:(e,t,n)=>{"use strict";const i=n(5725).fromCallback,r=n(85),o=["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((e=>"function"==typeof r[e]));Object.assign(t,r),o.forEach((e=>{t[e]=i(r[e])})),t.realpath.native=i(r.realpath.native),t.exists=function(e,t){return"function"==typeof t?r.exists(e,t):new Promise((t=>r.exists(e,t)))},t.read=function(e,t,n,i,o,s){return"function"==typeof s?r.read(e,t,n,i,o,s):new Promise(((s,a)=>{r.read(e,t,n,i,o,((e,t,n)=>{if(e)return a(e);s({bytesRead:t,buffer:n})}))}))},t.write=function(e,t,...n){return"function"==typeof n[n.length-1]?r.write(e,t,...n):new Promise(((i,o)=>{r.write(e,t,...n,((e,t,n)=>{if(e)return o(e);i({bytesWritten:t,buffer:n})}))}))},"function"==typeof r.writev&&(t.writev=function(e,t,...n){return"function"==typeof n[n.length-1]?r.writev(e,t,...n):new Promise(((i,o)=>{r.writev(e,t,...n,((e,t,n)=>{if(e)return o(e);i({bytesWritten:t,buffers:n})}))}))})},890:(e,t,n)=>{"use strict";e.exports={...n(2143),...n(1889),...n(4088),...n(2689),...n(9270),...n(5145),...n(4146),...n(5048),...n(9699),...n(3495)}},9270:(e,t,n)=>{"use strict";const i=n(5725).fromPromise,r=n(9691);r.outputJson=i(n(8700)),r.outputJsonSync=n(2286),r.outputJSON=r.outputJson,r.outputJSONSync=r.outputJsonSync,r.writeJSON=r.writeJson,r.writeJSONSync=r.writeJsonSync,r.readJSON=r.readJson,r.readJSONSync=r.readJsonSync,e.exports=r},9691:(e,t,n)=>{"use strict";const i=n(370);e.exports={readJson:i.readFile,readJsonSync:i.readFileSync,writeJson:i.writeFile,writeJsonSync:i.writeFileSync}},2286:(e,t,n)=>{"use strict";const{stringify:i}=n(7154),{outputFileSync:r}=n(5048);e.exports=function(e,t,n){const o=i(t,n);r(e,o,n)}},8700:(e,t,n)=>{"use strict";const{stringify:i}=n(7154),{outputFile:r}=n(5048);e.exports=async function(e,t,n={}){const o=i(t,n);await r(e,o,n)}},5145:(e,t,n)=>{"use strict";const i=n(5725).fromPromise,{makeDir:r,makeDirSync:o}=n(646),s=i(r);e.exports={mkdirs:s,mkdirsSync:o,mkdirp:s,mkdirpSync:o,ensureDir:s,ensureDirSync:o}},646:(e,t,n)=>{"use strict";const i=n(2143),{checkPath:r}=n(8051),o=e=>"number"==typeof e?e:{mode:511,...e}.mode;e.exports.makeDir=async(e,t)=>(r(e),i.mkdir(e,{mode:o(t),recursive:!0})),e.exports.makeDirSync=(e,t)=>(r(e),i.mkdirSync(e,{mode:o(t),recursive:!0}))},8051:(e,t,n)=>{"use strict";const i=n(1017);e.exports.checkPath=function(e){if("win32"===process.platform&&/[<>:"|?*]/.test(e.replace(i.parse(e).root,""))){const t=new Error(`Path contains invalid characters: ${e}`);throw t.code="EINVAL",t}}},4146:(e,t,n)=>{"use strict";const i=n(5725).fromCallback;e.exports={move:i(n(2571)),moveSync:n(1612)}},1612:(e,t,n)=>{"use strict";const i=n(85),r=n(1017),o=n(1889).copySync,s=n(3495).removeSync,a=n(5145).mkdirpSync,c=n(3719);function u(e,t,n){try{i.renameSync(e,t)}catch(i){if("EXDEV"!==i.code)throw i;return function(e,t,n){return o(e,t,{overwrite:n,errorOnExist:!0}),s(e)}(e,t,n)}}e.exports=function(e,t,n){const o=(n=n||{}).overwrite||n.clobber||!1,{srcStat:l,isChangingCase:h=!1}=c.checkPathsSync(e,t,"move",n);return c.checkParentPathsSync(e,l,t,"move"),function(e){const t=r.dirname(e);return r.parse(t).root===t}(t)||a(r.dirname(t)),function(e,t,n,r){if(r)return u(e,t,n);if(n)return s(t),u(e,t,n);if(i.existsSync(t))throw new Error("dest already exists.");return u(e,t,n)}(e,t,o,h)}},2571:(e,t,n)=>{"use strict";const i=n(85),r=n(1017),o=n(1889).copy,s=n(3495).remove,a=n(5145).mkdirp,c=n(9699).pathExists,u=n(3719);function l(e,t,n,i,r){return i?h(e,t,n,r):n?s(t,(i=>i?r(i):h(e,t,n,r))):void c(t,((i,o)=>i?r(i):o?r(new Error("dest already exists.")):h(e,t,n,r)))}function h(e,t,n,r){i.rename(e,t,(i=>i?"EXDEV"!==i.code?r(i):function(e,t,n,i){o(e,t,{overwrite:n,errorOnExist:!0},(t=>t?i(t):s(e,i)))}(e,t,n,r):r()))}e.exports=function(e,t,n,i){"function"==typeof n&&(i=n,n={});const o=n.overwrite||n.clobber||!1;u.checkPaths(e,t,"move",n,((n,s)=>{if(n)return i(n);const{srcStat:c,isChangingCase:h=!1}=s;u.checkParentPaths(e,c,t,"move",(n=>n?i(n):function(e){const t=r.dirname(e);return r.parse(t).root===t}(t)?l(e,t,o,h,i):void a(r.dirname(t),(n=>n?i(n):l(e,t,o,h,i)))))}))}},5048:(e,t,n)=>{"use strict";const i=n(5725).fromCallback,r=n(85),o=n(1017),s=n(5145),a=n(9699).pathExists;e.exports={outputFile:i((function(e,t,n,i){"function"==typeof n&&(i=n,n="utf8");const c=o.dirname(e);a(c,((o,a)=>o?i(o):a?r.writeFile(e,t,n,i):void s.mkdirs(c,(o=>{if(o)return i(o);r.writeFile(e,t,n,i)}))))})),outputFileSync:function(e,...t){const n=o.dirname(e);if(r.existsSync(n))return r.writeFileSync(e,...t);s.mkdirsSync(n),r.writeFileSync(e,...t)}}},9699:(e,t,n)=>{"use strict";const i=n(5725).fromPromise,r=n(2143);e.exports={pathExists:i((function(e){return r.access(e).then((()=>!0)).catch((()=>!1))})),pathExistsSync:r.existsSync}},3495:(e,t,n)=>{"use strict";const i=n(85),r=n(5725).fromCallback,o=n(9373);e.exports={remove:r((function(e,t){if(i.rm)return i.rm(e,{recursive:!0,force:!0},t);o(e,t)})),removeSync:function(e){if(i.rmSync)return i.rmSync(e,{recursive:!0,force:!0});o.sync(e)}}},9373:(e,t,n)=>{"use strict";const i=n(85),r=n(1017),o=n(9491),s="win32"===process.platform;function a(e){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach((t=>{e[t]=e[t]||i[t],e[t+="Sync"]=e[t]||i[t]})),e.maxBusyTries=e.maxBusyTries||3}function c(e,t,n){let i=0;"function"==typeof t&&(n=t,t={}),o(e,"rimraf: missing path"),o.strictEqual(typeof e,"string","rimraf: path should be a string"),o.strictEqual(typeof n,"function","rimraf: callback function required"),o(t,"rimraf: invalid options argument provided"),o.strictEqual(typeof t,"object","rimraf: options should be object"),a(t),u(e,t,(function r(o){if(o){if(("EBUSY"===o.code||"ENOTEMPTY"===o.code||"EPERM"===o.code)&&iu(e,t,r)),100*i);"ENOENT"===o.code&&(o=null)}n(o)}))}function u(e,t,n){o(e),o(t),o("function"==typeof n),t.lstat(e,((i,r)=>i&&"ENOENT"===i.code?n(null):i&&"EPERM"===i.code&&s?l(e,t,i,n):r&&r.isDirectory()?d(e,t,i,n):void t.unlink(e,(i=>{if(i){if("ENOENT"===i.code)return n(null);if("EPERM"===i.code)return s?l(e,t,i,n):d(e,t,i,n);if("EISDIR"===i.code)return d(e,t,i,n)}return n(i)}))))}function l(e,t,n,i){o(e),o(t),o("function"==typeof i),t.chmod(e,438,(r=>{r?i("ENOENT"===r.code?null:n):t.stat(e,((r,o)=>{r?i("ENOENT"===r.code?null:n):o.isDirectory()?d(e,t,n,i):t.unlink(e,i)}))}))}function h(e,t,n){let i;o(e),o(t);try{t.chmodSync(e,438)}catch(e){if("ENOENT"===e.code)return;throw n}try{i=t.statSync(e)}catch(e){if("ENOENT"===e.code)return;throw n}i.isDirectory()?f(e,t,n):t.unlinkSync(e)}function d(e,t,n,i){o(e),o(t),o("function"==typeof i),t.rmdir(e,(s=>{!s||"ENOTEMPTY"!==s.code&&"EEXIST"!==s.code&&"EPERM"!==s.code?s&&"ENOTDIR"===s.code?i(n):i(s):function(e,t,n){o(e),o(t),o("function"==typeof n),t.readdir(e,((i,o)=>{if(i)return n(i);let s,a=o.length;if(0===a)return t.rmdir(e,n);o.forEach((i=>{c(r.join(e,i),t,(i=>{if(!s)return i?n(s=i):void(0==--a&&t.rmdir(e,n))}))}))}))}(e,t,i)}))}function p(e,t){let n;a(t=t||{}),o(e,"rimraf: missing path"),o.strictEqual(typeof e,"string","rimraf: path should be a string"),o(t,"rimraf: missing options"),o.strictEqual(typeof t,"object","rimraf: options should be object");try{n=t.lstatSync(e)}catch(n){if("ENOENT"===n.code)return;"EPERM"===n.code&&s&&h(e,t,n)}try{n&&n.isDirectory()?f(e,t,null):t.unlinkSync(e)}catch(n){if("ENOENT"===n.code)return;if("EPERM"===n.code)return s?h(e,t,n):f(e,t,n);if("EISDIR"!==n.code)throw n;f(e,t,n)}}function f(e,t,n){o(e),o(t);try{t.rmdirSync(e)}catch(i){if("ENOTDIR"===i.code)throw n;if("ENOTEMPTY"===i.code||"EEXIST"===i.code||"EPERM"===i.code)!function(e,t){if(o(e),o(t),t.readdirSync(e).forEach((n=>p(r.join(e,n),t))),!s)return t.rmdirSync(e,t);{const n=Date.now();do{try{return t.rmdirSync(e,t)}catch{}}while(Date.now()-n<500)}}(e,t);else if("ENOENT"!==i.code)throw i}}e.exports=c,c.sync=p},3719:(e,t,n)=>{"use strict";const i=n(2143),r=n(1017),o=n(3837);function s(e,t,n){const r=n.dereference?e=>i.stat(e,{bigint:!0}):e=>i.lstat(e,{bigint:!0});return Promise.all([r(e),r(t).catch((e=>{if("ENOENT"===e.code)return null;throw e}))]).then((([e,t])=>({srcStat:e,destStat:t})))}function a(e,t){return t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev}function c(e,t){const n=r.resolve(e).split(r.sep).filter((e=>e)),i=r.resolve(t).split(r.sep).filter((e=>e));return n.reduce(((e,t,n)=>e&&i[n]===t),!0)}function u(e,t,n){return`Cannot ${n} '${e}' to a subdirectory of itself, '${t}'.`}e.exports={checkPaths:function(e,t,n,i,l){o.callbackify(s)(e,t,i,((i,o)=>{if(i)return l(i);const{srcStat:s,destStat:h}=o;if(h){if(a(s,h)){const i=r.basename(e),o=r.basename(t);return"move"===n&&i!==o&&i.toLowerCase()===o.toLowerCase()?l(null,{srcStat:s,destStat:h,isChangingCase:!0}):l(new Error("Source and destination must not be the same."))}if(s.isDirectory()&&!h.isDirectory())return l(new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`));if(!s.isDirectory()&&h.isDirectory())return l(new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`))}return s.isDirectory()&&c(e,t)?l(new Error(u(e,t,n))):l(null,{srcStat:s,destStat:h})}))},checkPathsSync:function(e,t,n,o){const{srcStat:s,destStat:l}=function(e,t,n){let r;const o=n.dereference?e=>i.statSync(e,{bigint:!0}):e=>i.lstatSync(e,{bigint:!0}),s=o(e);try{r=o(t)}catch(e){if("ENOENT"===e.code)return{srcStat:s,destStat:null};throw e}return{srcStat:s,destStat:r}}(e,t,o);if(l){if(a(s,l)){const i=r.basename(e),o=r.basename(t);if("move"===n&&i!==o&&i.toLowerCase()===o.toLowerCase())return{srcStat:s,destStat:l,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(s.isDirectory()&&!l.isDirectory())throw new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`);if(!s.isDirectory()&&l.isDirectory())throw new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`)}if(s.isDirectory()&&c(e,t))throw new Error(u(e,t,n));return{srcStat:s,destStat:l}},checkParentPaths:function e(t,n,o,s,c){const l=r.resolve(r.dirname(t)),h=r.resolve(r.dirname(o));if(h===l||h===r.parse(h).root)return c();i.stat(h,{bigint:!0},((i,r)=>i?"ENOENT"===i.code?c():c(i):a(n,r)?c(new Error(u(t,o,s))):e(t,n,h,s,c)))},checkParentPathsSync:function e(t,n,o,s){const c=r.resolve(r.dirname(t)),l=r.resolve(r.dirname(o));if(l===c||l===r.parse(l).root)return;let h;try{h=i.statSync(l,{bigint:!0})}catch(e){if("ENOENT"===e.code)return;throw e}if(a(n,h))throw new Error(u(t,o,s));return e(t,n,l,s)},isSrcSubdir:c,areIdentical:a}},2450:(e,t,n)=>{"use strict";const i=n(85);e.exports={utimesMillis:function(e,t,n,r){i.open(e,"r+",((e,o)=>{if(e)return r(e);i.futimes(o,t,n,(e=>{i.close(o,(t=>{r&&r(e||t)}))}))}))},utimesMillisSync:function(e,t,n){const r=i.openSync(e,"r+");return i.futimesSync(r,t,n),i.closeSync(r)}}},4203:e=>{"use strict";e.exports=function(e){if(null===e||"object"!=typeof e)return e;if(e instanceof Object)var n={__proto__:t(e)};else n=Object.create(null);return Object.getOwnPropertyNames(e).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})),n};var t=Object.getPrototypeOf||function(e){return e.__proto__}},85:(e,t,n)=>{var i,r,o=n(7147),s=n(2965),a=n(5361),c=n(4203),u=n(3837);function l(e,t){Object.defineProperty(e,i,{get:function(){return t}})}"function"==typeof Symbol&&"function"==typeof Symbol.for?(i=Symbol.for("graceful-fs.queue"),r=Symbol.for("graceful-fs.previous")):(i="___graceful-fs.queue",r="___graceful-fs.previous");var h,d=function(){};if(u.debuglog?d=u.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(d=function(){var e=u.format.apply(u,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: "),console.error(e)}),!o[i]){var p=global[i]||[];l(o,p),o.close=function(e){function t(t,n){return e.call(o,t,(function(e){e||m(),"function"==typeof n&&n.apply(this,arguments)}))}return Object.defineProperty(t,r,{value:e}),t}(o.close),o.closeSync=function(e){function t(t){e.apply(o,arguments),m()}return Object.defineProperty(t,r,{value:e}),t}(o.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",(function(){d(o[i]),n(9491).equal(o[i].length,0)}))}function f(e){s(e),e.gracefulify=f,e.createReadStream=function(t,n){return new e.ReadStream(t,n)},e.createWriteStream=function(t,n){return new e.WriteStream(t,n)};var t=e.readFile;e.readFile=function(e,n,i){return"function"==typeof n&&(i=n,n=null),function e(n,i,r,o){return t(n,i,(function(t){!t||"EMFILE"!==t.code&&"ENFILE"!==t.code?"function"==typeof r&&r.apply(this,arguments):g([e,[n,i,r],t,o||Date.now(),Date.now()])}))}(e,n,i)};var n=e.writeFile;e.writeFile=function(e,t,i,r){return"function"==typeof i&&(r=i,i=null),function e(t,i,r,o,s){return n(t,i,r,(function(n){!n||"EMFILE"!==n.code&&"ENFILE"!==n.code?"function"==typeof o&&o.apply(this,arguments):g([e,[t,i,r,o],n,s||Date.now(),Date.now()])}))}(e,t,i,r)};var i=e.appendFile;i&&(e.appendFile=function(e,t,n,r){return"function"==typeof n&&(r=n,n=null),function e(t,n,r,o,s){return i(t,n,r,(function(i){!i||"EMFILE"!==i.code&&"ENFILE"!==i.code?"function"==typeof o&&o.apply(this,arguments):g([e,[t,n,r,o],i,s||Date.now(),Date.now()])}))}(e,t,n,r)});var r=e.copyFile;r&&(e.copyFile=function(e,t,n,i){return"function"==typeof n&&(i=n,n=0),function e(t,n,i,o,s){return r(t,n,i,(function(r){!r||"EMFILE"!==r.code&&"ENFILE"!==r.code?"function"==typeof o&&o.apply(this,arguments):g([e,[t,n,i,o],r,s||Date.now(),Date.now()])}))}(e,t,n,i)});var o=e.readdir;if(e.readdir=function(e,t,n){return"function"==typeof t&&(n=t,t=null),function e(t,n,i,r){return o(t,n,(function(o,s){!o||"EMFILE"!==o.code&&"ENFILE"!==o.code?(s&&s.sort&&s.sort(),"function"==typeof i&&i.call(this,o,s)):g([e,[t,n,i],o,r||Date.now(),Date.now()])}))}(e,t,n)},"v0.8"===process.version.substr(0,4)){var c=a(e);p=c.ReadStream,m=c.WriteStream}var u=e.ReadStream;u&&(p.prototype=Object.create(u.prototype),p.prototype.open=function(){var e=this;v(e.path,e.flags,e.mode,(function(t,n){t?(e.autoClose&&e.destroy(),e.emit("error",t)):(e.fd=n,e.emit("open",n),e.read())}))});var l=e.WriteStream;l&&(m.prototype=Object.create(l.prototype),m.prototype.open=function(){var e=this;v(e.path,e.flags,e.mode,(function(t,n){t?(e.destroy(),e.emit("error",t)):(e.fd=n,e.emit("open",n))}))}),Object.defineProperty(e,"ReadStream",{get:function(){return p},set:function(e){p=e},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return m},set:function(e){m=e},enumerable:!0,configurable:!0});var h=p;Object.defineProperty(e,"FileReadStream",{get:function(){return h},set:function(e){h=e},enumerable:!0,configurable:!0});var d=m;function p(e,t){return this instanceof p?(u.apply(this,arguments),this):p.apply(Object.create(p.prototype),arguments)}function m(e,t){return this instanceof m?(l.apply(this,arguments),this):m.apply(Object.create(m.prototype),arguments)}Object.defineProperty(e,"FileWriteStream",{get:function(){return d},set:function(e){d=e},enumerable:!0,configurable:!0});var y=e.open;function v(e,t,n,i){return"function"==typeof n&&(i=n,n=null),function e(t,n,i,r,o){return y(t,n,i,(function(s,a){!s||"EMFILE"!==s.code&&"ENFILE"!==s.code?"function"==typeof r&&r.apply(this,arguments):g([e,[t,n,i,r],s,o||Date.now(),Date.now()])}))}(e,t,n,i)}return e.open=v,e}function g(e){d("ENQUEUE",e[0].name,e[1]),o[i].push(e),y()}function m(){for(var e=Date.now(),t=0;t2&&(o[i][t][3]=e,o[i][t][4]=e);y()}function y(){if(clearTimeout(h),h=void 0,0!==o[i].length){var e=o[i].shift(),t=e[0],n=e[1],r=e[2],s=e[3],a=e[4];if(void 0===s)d("RETRY",t.name,n),t.apply(null,n);else if(Date.now()-s>=6e4){d("TIMEOUT",t.name,n);var c=n.pop();"function"==typeof c&&c.call(null,r)}else{var u=Date.now()-a,l=Math.max(a-s,1);u>=Math.min(1.2*l,100)?(d("RETRY",t.name,n),t.apply(null,n.concat([s]))):o[i].push(e)}void 0===h&&(h=setTimeout(y,0))}}global[i]||l(global,o[i]),e.exports=f(c(o)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!o.__patched&&(e.exports=f(o),o.__patched=!0)},5361:(e,t,n)=>{var i=n(2781).Stream;e.exports=function(e){return{ReadStream:function t(n,r){if(!(this instanceof t))return new t(n,r);i.call(this);var o=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536,r=r||{};for(var s=Object.keys(r),a=0,c=s.length;athis.end)throw new Error("start must be <= end");this.pos=this.start}null===this.fd?e.open(this.path,this.flags,this.mode,(function(e,t){if(e)return o.emit("error",e),void(o.readable=!1);o.fd=t,o.emit("open",t),o._read()})):process.nextTick((function(){o._read()}))},WriteStream:function t(n,r){if(!(this instanceof t))return new t(n,r);i.call(this),this.path=n,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= zero");this.pos=this.start}this.busy=!1,this._queue=[],null===this.fd&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}},2965:(e,t,n)=>{var i=n(2057),r=process.cwd,o=null,s=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return o||(o=r.call(process)),o};try{process.cwd()}catch(e){}if("function"==typeof process.chdir){var a=process.chdir;process.chdir=function(e){o=null,a.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,a)}e.exports=function(e){var t,n;function r(t){return t?function(n,i,r){return t.call(e,n,i,(function(e){h(e)&&(e=null),r&&r.apply(this,arguments)}))}:t}function o(t){return t?function(n,i){try{return t.call(e,n,i)}catch(e){if(!h(e))throw e}}:t}function a(t){return t?function(n,i,r,o){return t.call(e,n,i,r,(function(e){h(e)&&(e=null),o&&o.apply(this,arguments)}))}:t}function c(t){return t?function(n,i,r){try{return t.call(e,n,i,r)}catch(e){if(!h(e))throw e}}:t}function u(t){return t?function(n,i,r){function o(e,t){t&&(t.uid<0&&(t.uid+=4294967296),t.gid<0&&(t.gid+=4294967296)),r&&r.apply(this,arguments)}return"function"==typeof i&&(r=i,i=null),i?t.call(e,n,i,o):t.call(e,n,o)}:t}function l(t){return t?function(n,i){var r=i?t.call(e,n,i):t.call(e,n);return r&&(r.uid<0&&(r.uid+=4294967296),r.gid<0&&(r.gid+=4294967296)),r}:t}function h(e){return!e||"ENOSYS"===e.code||!(process.getuid&&0===process.getuid()||"EINVAL"!==e.code&&"EPERM"!==e.code)}i.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&function(e){e.lchmod=function(t,n,r){e.open(t,i.O_WRONLY|i.O_SYMLINK,n,(function(t,i){t?r&&r(t):e.fchmod(i,n,(function(t){e.close(i,(function(e){r&&r(t||e)}))}))}))},e.lchmodSync=function(t,n){var r,o=e.openSync(t,i.O_WRONLY|i.O_SYMLINK,n),s=!0;try{r=e.fchmodSync(o,n),s=!1}finally{if(s)try{e.closeSync(o)}catch(e){}else e.closeSync(o)}return r}}(e),e.lutimes||function(e){i.hasOwnProperty("O_SYMLINK")?(e.lutimes=function(t,n,r,o){e.open(t,i.O_SYMLINK,(function(t,i){t?o&&o(t):e.futimes(i,n,r,(function(t){e.close(i,(function(e){o&&o(t||e)}))}))}))},e.lutimesSync=function(t,n,r){var o,s=e.openSync(t,i.O_SYMLINK),a=!0;try{o=e.futimesSync(s,n,r),a=!1}finally{if(a)try{e.closeSync(s)}catch(e){}else e.closeSync(s)}return o}):(e.lutimes=function(e,t,n,i){i&&process.nextTick(i)},e.lutimesSync=function(){})}(e),e.chown=a(e.chown),e.fchown=a(e.fchown),e.lchown=a(e.lchown),e.chmod=r(e.chmod),e.fchmod=r(e.fchmod),e.lchmod=r(e.lchmod),e.chownSync=c(e.chownSync),e.fchownSync=c(e.fchownSync),e.lchownSync=c(e.lchownSync),e.chmodSync=o(e.chmodSync),e.fchmodSync=o(e.fchmodSync),e.lchmodSync=o(e.lchmodSync),e.stat=u(e.stat),e.fstat=u(e.fstat),e.lstat=u(e.lstat),e.statSync=l(e.statSync),e.fstatSync=l(e.fstatSync),e.lstatSync=l(e.lstatSync),e.lchmod||(e.lchmod=function(e,t,n){n&&process.nextTick(n)},e.lchmodSync=function(){}),e.lchown||(e.lchown=function(e,t,n,i){i&&process.nextTick(i)},e.lchownSync=function(){}),"win32"===s&&(e.rename=(t=e.rename,function(n,i,r){var o=Date.now(),s=0;t(n,i,(function a(c){if(c&&("EACCES"===c.code||"EPERM"===c.code)&&Date.now()-o<6e4)return setTimeout((function(){e.stat(i,(function(e,o){e&&"ENOENT"===e.code?t(n,i,a):r(c)}))}),s),void(s<100&&(s+=10));r&&r(c)}))})),e.read=function(t){function n(n,i,r,o,s,a){var c;if(a&&"function"==typeof a){var u=0;c=function(l,h,d){if(l&&"EAGAIN"===l.code&&u<10)return u++,t.call(e,n,i,r,o,s,c);a.apply(this,arguments)}}return t.call(e,n,i,r,o,s,c)}return Object.setPrototypeOf&&Object.setPrototypeOf(n,t),n}(e.read),e.readSync=(n=e.readSync,function(t,i,r,o,s){for(var a=0;;)try{return n.call(e,t,i,r,o,s)}catch(e){if("EAGAIN"===e.code&&a<10){a++;continue}throw e}})}},2001:e=>{"use strict";const t=Object.prototype.hasOwnProperty;e.exports=(e,n)=>t.call(e,n)},370:(e,t,n)=>{let i;try{i=n(85)}catch(e){i=n(7147)}const r=n(5725),{stringify:o,stripBom:s}=n(7154),a={readFile:r.fromPromise((async function(e,t={}){"string"==typeof t&&(t={encoding:t});const n=t.fs||i,o=!("throws"in t)||t.throws;let a,c=await r.fromCallback(n.readFile)(e,t);c=s(c);try{a=JSON.parse(c,t?t.reviver:null)}catch(t){if(o)throw t.message=`${e}: ${t.message}`,t;return null}return a})),readFileSync:function(e,t={}){"string"==typeof t&&(t={encoding:t});const n=t.fs||i,r=!("throws"in t)||t.throws;try{let i=n.readFileSync(e,t);return i=s(i),JSON.parse(i,t.reviver)}catch(t){if(r)throw t.message=`${e}: ${t.message}`,t;return null}},writeFile:r.fromPromise((async function(e,t,n={}){const s=n.fs||i,a=o(t,n);await r.fromCallback(s.writeFile)(e,a,n)})),writeFileSync:function(e,t,n={}){const r=n.fs||i,s=o(t,n);return r.writeFileSync(e,s,n)}};e.exports=a},7154:e=>{e.exports={stringify:function(e,{EOL:t="\n",finalEOL:n=!0,replacer:i=null,spaces:r}={}){const o=n?t:"";return JSON.stringify(e,i,r).replace(/\n/g,t)+o},stripBom:function(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}}},7945:(e,t,n)=>{"use strict";function i(e){var t=function(){};return t.prototype=e,new t}function r(e){var t=arguments.length,n=void 0,i=void 0;for(n=1;nHn,Observable:()=>C,Pool:()=>an,Property:()=>b,Stream:()=>S,combine:()=>le,concat:()=>sn,constant:()=>z,constantError:()=>H,default:()=>Gn,dissableDeprecationWarnings:()=>zn,fromCallback:()=>j,fromESObservable:()=>oe,fromEvents:()=>$,fromNodeCallback:()=>B,fromPoll:()=>O,fromPromise:()=>te,interval:()=>k,later:()=>_,merge:()=>nn,never:()=>w,pool:()=>$n,repeat:()=>on,sequentially:()=>A,staticLand:()=>de,stream:()=>L,withInterval:()=>N,zip:()=>Qt}),e=n.hmd(e);var s=[""],a="end",c="value",u="error",l="any";function h(e,t){var n=void 0,i=void 0,r=void 0,o=void 0;if(0===e.length)return t;if(0===t.length)return e;for(o=0,n=new Array(e.length+t.length),i=e.length,r=0;r=0&&t0&&void 0!==arguments[0]?arguments[0]:this.toString(),t=void 0,n=function(n){var i="<"+n.type+(t?":current":"")+">";n.type===a?console.log(e,i):console.log(e,i,n.value)};return this._alive&&(this._logHandlers||(this._logHandlers=[]),this._logHandlers.push({name:e,handler:n})),t=!0,this.onAny(n),t=!1,this},offLog:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.toString();if(this._logHandlers){var t=p(this._logHandlers,(function(t){return t.name===e}));-1!==t&&(this.offAny(this._logHandlers[t].handler),this._logHandlers.splice(t,1))}return this},spy:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.toString(),t=function(t){var n="<"+t.type+">";t.type===a?console.log(e,n):console.log(e,n,t.value)};return this._alive&&(this._spyHandlers||(this._spyHandlers=[]),this._spyHandlers.push({name:e,handler:t}),this._dispatcher.addSpy(t)),this},offSpy:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.toString();if(this._spyHandlers){var t=p(this._spyHandlers,(function(t){return t.name===e}));-1!==t&&(this._dispatcher.removeSpy(this._spyHandlers[t].handler),this._spyHandlers.splice(t,1))}return this}}),C.prototype.toString=function(){return"["+this._name+"]"},o(S,C,{_name:"stream",getType:function(){return"stream"}}),o(b,C,{_name:"property",_emitValue:function(e){this._alive&&(this._currentEvent={type:c,value:e},this._activating||this._dispatcher.dispatch({type:c,value:e}))},_emitError:function(e){this._alive&&(this._currentEvent={type:u,value:e},this._activating||this._dispatcher.dispatch({type:u,value:e}))},_emitEnd:function(){this._alive&&(this._alive=!1,this._activating||this._dispatcher.dispatch({type:a}),this._clear())},_on:function(e,t){return this._alive&&(this._dispatcher.add(e,t),this._setActive(!0)),null!==this._currentEvent&&y(e,t,this._currentEvent),this._alive||y(e,t,{type:a}),this},getType:function(){return"property"}});var E=new S;function w(){return E}function D(e){function t(e,t){var n=this;S.call(this),this._wait=e,this._intervalId=null,this._$onTick=function(){return n._onTick()},this._init(t)}return o(t,S,{_init:function(){},_free:function(){},_onTick:function(){},_onActivation:function(){this._intervalId=setInterval(this._$onTick,this._wait)},_onDeactivation:function(){null!==this._intervalId&&(clearInterval(this._intervalId),this._intervalId=null)},_clear:function(){S.prototype._clear.call(this),this._$onTick=null,this._free()}},e),t}E._emitEnd(),E._name="never";var x=D({_name:"later",_init:function(e){var t=e.x;this._x=t},_free:function(){this._x=null},_onTick:function(){this._emitValue(this._x),this._emitEnd()}});function _(e,t){return new x(e,{x:t})}var T=D({_name:"interval",_init:function(e){var t=e.x;this._x=t},_free:function(){this._x=null},_onTick:function(){this._emitValue(this._x)}});function k(e,t){return new T(e,{x:t})}var F=D({_name:"sequentially",_init:function(e){var t=e.xs;this._xs=f(t)},_free:function(){this._xs=null},_onTick:function(){1===this._xs.length?(this._emitValue(this._xs[0]),this._emitEnd()):this._emitValue(this._xs.shift())}});function A(e,t){return 0===t.length?w():new F(e,{xs:t})}var R=D({_name:"fromPoll",_init:function(e){var t=e.fn;this._fn=t},_free:function(){this._fn=null},_onTick:function(){var e=this._fn;this._emitValue(e())}});function O(e,t){return new R(e,{fn:t})}function P(e){function t(t){return e._emitValue(t),e._active}function n(t){return e._emit(t.type,t.value),e._active}return{value:t,error:function(t){return e._emitError(t),e._active},end:function(){return e._emitEnd(),e._active},event:n,emit:t,emitEvent:n}}var M=D({_name:"withInterval",_init:function(e){var t=e.fn;this._fn=t,this._emitter=P(this)},_free:function(){this._fn=null,this._emitter=null},_onTick:function(){(0,this._fn)(this._emitter)}});function N(e,t){return new M(e,{fn:t})}function I(e){S.call(this),this._fn=e,this._unsubscribe=null}function L(e){return new I(e)}function j(e){var t=!1;return L((function(n){t||(e((function(e){n.emit(e),n.end()})),t=!0)})).setName("fromCallback")}function B(e){var t=!1;return L((function(n){t||(e((function(e,t){e?n.error(e):n.emit(t),n.end()})),t=!0)})).setName("fromNodeCallback")}function q(e,t){switch(t){case 0:return function(){return e()};case 1:return function(t){return e(t[0])};case 2:return function(t){return e(t[0],t[1])};case 3:return function(t){return e(t[0],t[1],t[2])};case 4:return function(t){return e(t[0],t[1],t[2],t[3])};default:return function(t){return e.apply(null,t)}}}function U(e,t,n){var i=n?n.length:0;if(null!=t)return 0===i?e.call(t):e.apply(t,n);switch(i){case 0:return e();case 1:return e(n[0]);case 2:return e(n[0],n[1]);case 3:return e(n[0],n[1],n[2]);case 4:return e(n[0],n[1],n[2],n[3]);default:return e.apply(null,n)}}o(I,S,{_name:"stream",_onActivation:function(){var e=(0,this._fn)(P(this));this._unsubscribe="function"==typeof e?e:null,this._active||this._callUnsubscribe()},_callUnsubscribe:function(){null!==this._unsubscribe&&(this._unsubscribe(),this._unsubscribe=null)},_onDeactivation:function(){this._callUnsubscribe()},_clear:function(){S.prototype._clear.call(this),this._fn=null}});var W=[["addEventListener","removeEventListener"],["addListener","removeListener"],["on","off"]];function $(e,t,n){for(var i=void 0,r=void 0,o=0;o1&&void 0!==arguments[1]?arguments[1]:null;if(null!==t&&"function"!=typeof t)throw new Error("You should call toProperty() with a function or no arguments.");return new Q(e,{fn:t})}var ee=X("changes",{_handleValue:function(e){this._activating||this._emitValue(e)},_handleError:function(e){this._activating||this._emitError(e)}});function te(e){var t=!1,n=L((function(n){if(!t){var i=e.then((function(e){n.emit(e),n.end()}),(function(e){n.error(e),n.end()}));i&&"function"==typeof i.done&&i.done(),t=!0}}));return Z(n,null).setName("fromPromise")}function ne(){if("function"==typeof Promise)return Promise;throw new Error("There isn't default Promise, use shim or parameter")}var ie=function(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}("undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:e),re=ie.default?ie.default:ie;function oe(e){var t=e[re]?e[re]():e;return L((function(e){var n=t.subscribe({error:function(t){e.error(t),e.end()},next:function(t){e.emit(t)},complete:function(){e.end()}});return n.unsubscribe?function(){n.unsubscribe()}:n})).setName("fromESObservable")}function se(e){this._observable=e.takeErrors(1)}function ae(){return new se(this)}function ce(e,t,n){for(var i in e)e.hasOwnProperty(i)&&(t.push(i),n.push(e[i]))}function ue(e,t,n){var i=this;S.call(this),this._activeCount=e.length,this._sources=h(e,t),this._combinator=n,this._aliveCount=0,this._latestValues=new Array(this._sources.length),this._latestErrors=new Array(this._sources.length),function(e,t){var n=e.length,i=void 0;for(i=0;i1&&void 0!==arguments[1]?arguments[1]:[],n=arguments[2];if(!Array.isArray(t))throw new Error("Combine can only combine active and passive collections of the same type.");return n=n?q(n,e.length+t.length):function(e){return e},0===e.length?w():new ue(e,t,n)}(e,t,n):function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2];if("object"!=typeof t||Array.isArray(t))throw new Error("Combine can only combine active and passive collections of the same type.");var i=[],r=[],o=[];ce(e,i,r),ce(t,i,o);var s=function(e){for(var t={},r=e.length-1;0<=r;r--)t[i[r]]=e[r];return n?n(t):t};return 0===r.length?w():new ue(r,o,s)}(e,t,n)}r(se.prototype,{subscribe:function(e,t,n){var i=this,r="function"==typeof e?{next:e,error:t,complete:n}:e,o=function(e){e.type===a&&(s=!0),e.type===c&&r.next?r.next(e.value):e.type===u&&r.error?r.error(e.value):e.type===a&&r.complete&&r.complete(e.value)};this._observable.onAny(o);var s=!1;return{unsubscribe:function(){s=!0,i._observable.offAny(o)},get closed(){return s}}}}),se.prototype[re]=function(){return this},o(ue,S,{_name:"combine",_onActivation:function(){this._aliveCount=this._activeCount;for(var e=this._activeCount;e1&&void 0!==arguments[1]?arguments[1]:me;return new(e._ofSameType(fe,ge))(e,{fn:t})}var ve={_init:function(e){var t=e.fn;this._fn=t},_free:function(){this._fn=null},_handleValue:function(e){(0,this._fn)(e)&&this._emitValue(e)}},Ce=X("filter",ve),Se=Y("filter",ve),be=function(e){return e},Ee={_init:function(e){var t=e.n;this._n=t,t<=0&&this._emitEnd()},_handleValue:function(e){0!==this._n&&(this._n--,this._emitValue(e),0===this._n&&this._emitEnd())}},we=X("take",Ee),De=Y("take",Ee),xe={_init:function(e){var t=e.n;this._n=t,t<=0&&this._emitEnd()},_handleError:function(e){0!==this._n&&(this._n--,this._emitError(e),0===this._n&&this._emitEnd())}},_e=X("takeErrors",xe),Te=Y("takeErrors",xe),ke={_init:function(e){var t=e.fn;this._fn=t},_free:function(){this._fn=null},_handleValue:function(e){(0,this._fn)(e)?this._emitValue(e):this._emitEnd()}},Fe=X("takeWhile",ke),Ae=Y("takeWhile",ke),Re=function(e){return e},Oe={_init:function(){this._lastValue=s},_free:function(){this._lastValue=null},_handleValue:function(e){this._lastValue=e},_handleEnd:function(){this._lastValue!==s&&this._emitValue(this._lastValue),this._emitEnd()}},Pe=X("last",Oe),Me=Y("last",Oe),Ne={_init:function(e){var t=e.n;this._n=Math.max(0,t)},_handleValue:function(e){0===this._n?this._emitValue(e):this._n--}},Ie=X("skip",Ne),Le=Y("skip",Ne),je={_init:function(e){var t=e.fn;this._fn=t},_free:function(){this._fn=null},_handleValue:function(e){var t=this._fn;null===this._fn||t(e)||(this._fn=null),null===this._fn&&this._emitValue(e)}},Be=X("skipWhile",je),qe=Y("skipWhile",je),Ue=function(e){return e},We={_init:function(e){var t=e.fn;this._fn=t,this._prev=s},_free:function(){this._fn=null,this._prev=null},_handleValue:function(e){var t=this._fn;this._prev!==s&&t(this._prev,e)||(this._prev=e,this._emitValue(e))}},$e=X("skipDuplicates",We),Ke=Y("skipDuplicates",We),ze=function(e,t){return e===t};function Ve(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ze;return new(e._ofSameType($e,Ke))(e,{fn:t})}var He={_init:function(e){var t=e.fn,n=e.seed;this._fn=t,this._prev=n},_free:function(){this._prev=null,this._fn=null},_handleValue:function(e){if(this._prev!==s){var t=this._fn;this._emitValue(t(this._prev,e))}this._prev=e}},Ge=X("diff",He),Je=Y("diff",He);function Xe(e,t){return[e,t]}var Ye=Y("scan",{_init:function(e){var t=e.fn,n=e.seed;this._fn=t,this._seed=n,n!==s&&this._emitValue(n)},_free:function(){this._fn=null,this._seed=null},_handleValue:function(e){var t=this._fn;null===this._currentEvent||this._currentEvent.type===u?this._emitValue(this._seed===s?e:t(this._seed,e)):this._emitValue(t(this._currentEvent.value,e))}}),Qe=X("flatten",{_init:function(e){var t=e.fn;this._fn=t},_free:function(){this._fn=null},_handleValue:function(e){for(var t=(0,this._fn)(e),n=0;n=0)this._timeoutId=setTimeout(this._$later,this._wait-e);else{if(this._timeoutId=null,!this._immediate){var t=this._laterValue;this._laterValue=null,this._emitValue(t)}this._endLater&&this._emitEnd()}}},ut=X("debounce",ct),lt=Y("debounce",ct),ht={_init:function(e){var t=e.fn;this._fn=t},_free:function(){this._fn=null},_handleError:function(e){var t=this._fn;this._emitError(t(e))}},dt=X("mapErrors",ht),pt=Y("mapErrors",ht),ft=function(e){return e},gt={_init:function(e){var t=e.fn;this._fn=t},_free:function(){this._fn=null},_handleError:function(e){(0,this._fn)(e)&&this._emitError(e)}},mt=X("filterErrors",gt),yt=Y("filterErrors",gt),vt=function(e){return e},Ct={_handleValue:function(){}},St=X("ignoreValues",Ct),bt=Y("ignoreValues",Ct),Et={_handleError:function(){}},wt=X("ignoreErrors",Et),Dt=Y("ignoreErrors",Et),xt={_handleEnd:function(){}},_t=X("ignoreEnd",xt),Tt=Y("ignoreEnd",xt),kt={_init:function(e){var t=e.fn;this._fn=t},_free:function(){this._fn=null},_handleEnd:function(){var e=this._fn;this._emitValue(e()),this._emitEnd()}},Ft=X("beforeEnd",kt),At=Y("beforeEnd",kt),Rt={_init:function(e){var t=e.min,n=e.max;this._max=n,this._min=t,this._buff=[]},_free:function(){this._buff=null},_handleValue:function(e){this._buff=function(e,t,n){var i=Math.min(n,e.length+1),r=e.length-i+1,o=new Array(i),s=void 0;for(s=r;s=this._min&&this._emitValue(this._buff)}},Ot=X("slidingWindow",Rt),Pt=Y("slidingWindow",Rt),Mt={_init:function(e){var t=e.fn,n=e.flushOnEnd;this._fn=t,this._flushOnEnd=n,this._buff=[]},_free:function(){this._buff=null},_flush:function(){null!==this._buff&&0!==this._buff.length&&(this._emitValue(this._buff),this._buff=[])},_handleValue:function(e){this._buff.push(e),(0,this._fn)(e)||this._flush()},_handleEnd:function(){this._flushOnEnd&&this._flush(),this._emitEnd()}},Nt=X("bufferWhile",Mt),It=Y("bufferWhile",Mt),Lt=function(e){return e},jt={_init:function(e){var t=e.count,n=e.flushOnEnd;this._count=t,this._flushOnEnd=n,this._buff=[]},_free:function(){this._buff=null},_flush:function(){null!==this._buff&&0!==this._buff.length&&(this._emitValue(this._buff),this._buff=[])},_handleValue:function(e){this._buff.push(e),this._buff.length>=this._count&&this._flush()},_handleEnd:function(){this._flushOnEnd&&this._flush(),this._emitEnd()}},Bt=X("bufferWithCount",jt),qt=Y("bufferWithCount",jt),Ut={_init:function(e){var t=this,n=e.wait,i=e.count,r=e.flushOnEnd;this._wait=n,this._count=i,this._flushOnEnd=r,this._intervalId=null,this._$onTick=function(){return t._flush()},this._buff=[]},_free:function(){this._$onTick=null,this._buff=null},_flush:function(){null!==this._buff&&(this._emitValue(this._buff),this._buff=[])},_handleValue:function(e){this._buff.push(e),this._buff.length>=this._count&&(clearInterval(this._intervalId),this._flush(),this._intervalId=setInterval(this._$onTick,this._wait))},_handleEnd:function(){this._flushOnEnd&&0!==this._buff.length&&this._flush(),this._emitEnd()},_onActivation:function(){this._intervalId=setInterval(this._$onTick,this._wait),this._source.onAny(this._$handleAny)},_onDeactivation:function(){null!==this._intervalId&&(clearInterval(this._intervalId),this._intervalId=null),this._source.offAny(this._$handleAny)}},Wt=X("bufferWithTimeOrCount",Ut),$t=Y("bufferWithTimeOrCount",Ut),Kt={_init:function(e){var t,n=e.transducer;this._xform=n((t=this,{"@@transducer/step":function(e,n){return t._emitValue(n),null},"@@transducer/result":function(){return t._emitEnd(),null}}))},_free:function(){this._xform=null},_handleValue:function(e){null!==this._xform["@@transducer/step"](null,e)&&this._xform["@@transducer/result"](null)},_handleEnd:function(){this._xform["@@transducer/result"](null)}},zt=X("transduce",Kt),Vt=Y("transduce",Kt),Ht={_init:function(e){var t=e.fn;this._handler=t,this._emitter=P(this)},_free:function(){this._handler=null,this._emitter=null},_handleAny:function(e){this._handler(this._emitter,e)}},Gt=X("withHandler",Ht),Jt=Y("withHandler",Ht),Xt=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function Yt(e,t){var n=this;S.call(this),this._buffers=m(e,(function(e){return Xt(e)?f(e):[]})),this._sources=m(e,(function(e){return Xt(e)?w():e})),this._combinator=t?q(t,this._sources.length):function(e){return e},this._aliveCount=0,this._$handlers=[];for(var i=function(e){n._$handlers.push((function(t){return n._handleAny(e,t)}))},r=0;r0&&void 0!==arguments[0]?arguments[0]:{},n=t.queueLim,i=void 0===n?0:n,r=t.concurLim,o=void 0===r?-1:r,s=t.drop,a=void 0===s?"new":s;S.call(this),this._queueLim=i<0?-1:i,this._concurLim=o<0?-1:o,this._drop=a,this._queue=[],this._curSources=[],this._$handleSubAny=function(t){return e._handleSubAny(t)},this._$endHandlers=[],this._currentlyAdding=null,0===this._concurLim&&this._emitEnd()}function tn(e){en.call(this),this._addAll(e),this._initialised=!0}function nn(e){return 0===e.length?w():new tn(e)}function rn(e){var t=this;S.call(this),this._generator=e,this._source=null,this._inLoop=!1,this._iteration=0,this._$handleAny=function(e){return t._handleAny(e)}}o(en,S,{_name:"abstractPool",_add:function(e,t){t=t||Zt,-1===this._concurLim||this._curSources.lengtht&&e[t]})).setName("concat")}function an(){en.call(this)}function cn(e,t,n){var i=this;en.call(this,n),this._source=e,this._fn=t,this._mainEnded=!1,this._lastCurrent=null,this._$handleMain=function(e){return i._handleMain(e)}}function un(e,t){cn.call(this,e,t)}function ln(e,t){return function(n,i,r){var o=this;e.call(this),this._primary=n,this._secondary=i,this._name=n._name+"."+t,this._lastSecondary=s,this._$handleSecondaryAny=function(e){return o._handleSecondaryAny(e)},this._$handlePrimaryAny=function(e){return o._handlePrimaryAny(e)},this._init(r)}}function hn(e){return{_init:function(){},_free:function(){},_handlePrimaryValue:function(e){this._emitValue(e)},_handlePrimaryError:function(e){this._emitError(e)},_handlePrimaryEnd:function(){this._emitEnd()},_handleSecondaryValue:function(e){this._lastSecondary=e},_handleSecondaryError:function(e){this._emitError(e)},_handleSecondaryEnd:function(){},_handlePrimaryAny:function(e){switch(e.type){case c:return this._handlePrimaryValue(e.value);case u:return this._handlePrimaryError(e.value);case a:return this._handlePrimaryEnd(e.value)}},_handleSecondaryAny:function(e){switch(e.type){case c:return this._handleSecondaryValue(e.value);case u:return this._handleSecondaryError(e.value);case a:this._handleSecondaryEnd(e.value),this._removeSecondary()}},_removeSecondary:function(){null!==this._secondary&&(this._secondary.offAny(this._$handleSecondaryAny),this._$handleSecondaryAny=null,this._secondary=null)},_onActivation:function(){null!==this._secondary&&this._secondary.onAny(this._$handleSecondaryAny),this._active&&this._primary.onAny(this._$handlePrimaryAny)},_onDeactivation:function(){null!==this._secondary&&this._secondary.offAny(this._$handleSecondaryAny),this._primary.offAny(this._$handlePrimaryAny)},_clear:function(){e.prototype._clear.call(this),this._primary=null,this._secondary=null,this._lastSecondary=null,this._$handleSecondaryAny=null,this._$handlePrimaryAny=null,this._free()}}}function dn(e,t){var n=ln(S,e);return o(n,S,hn(S),t),n}function pn(e,t){var n=ln(b,e);return o(n,b,hn(b),t),n}o(an,en,{_name:"pool",plug:function(e){return this._add(e),this},unplug:function(e){return this._remove(e),this}}),o(cn,en,{_onActivation:function(){en.prototype._onActivation.call(this),this._active&&this._source.onAny(this._$handleMain)},_onDeactivation:function(){en.prototype._onDeactivation.call(this),this._source.offAny(this._$handleMain),this._hadNoEvSinceDeact=!0},_handleMain:function(e){e.type===c&&(this._activating&&this._hadNoEvSinceDeact&&this._lastCurrent===e.value||this._add(e.value,this._fn),this._lastCurrent=e.value,this._hadNoEvSinceDeact=!1),e.type===u&&this._emitError(e.value),e.type===a&&(this._isEmpty()?this._emitEnd():this._mainEnded=!0)},_onEmpty:function(){this._mainEnded&&this._emitEnd()},_clear:function(){en.prototype._clear.call(this),this._source=null,this._lastCurrent=null,this._$handleMain=null}}),o(un,cn,{_handleMain:function(e){e.type===u&&(this._activating&&this._hadNoEvSinceDeact&&this._lastCurrent===e.value||this._add(e.value,this._fn),this._lastCurrent=e.value,this._hadNoEvSinceDeact=!1),e.type===c&&this._emitValue(e.value),e.type===a&&(this._isEmpty()?this._emitEnd():this._mainEnded=!0)}});var fn={_handlePrimaryValue:function(e){this._lastSecondary!==s&&this._lastSecondary&&this._emitValue(e)},_handleSecondaryEnd:function(){this._lastSecondary!==s&&this._lastSecondary||this._emitEnd()}},gn=dn("filterBy",fn),mn=pn("filterBy",fn),yn=function(e,t){return t},vn={_handlePrimaryValue:function(e){this._lastSecondary!==s&&this._emitValue(e)},_handleSecondaryEnd:function(){this._lastSecondary===s&&this._emitEnd()}},Cn=dn("skipUntilBy",vn),Sn=pn("skipUntilBy",vn),bn={_handleSecondaryValue:function(){this._emitEnd()}},En=dn("takeUntilBy",bn),wn=pn("takeUntilBy",bn),Dn={_init:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.flushOnEnd,n=void 0===t||t;this._buff=[],this._flushOnEnd=n},_free:function(){this._buff=null},_flush:function(){null!==this._buff&&(this._emitValue(this._buff),this._buff=[])},_handlePrimaryEnd:function(){this._flushOnEnd&&this._flush(),this._emitEnd()},_onActivation:function(){this._primary.onAny(this._$handlePrimaryAny),this._alive&&null!==this._secondary&&this._secondary.onAny(this._$handleSecondaryAny)},_handlePrimaryValue:function(e){this._buff.push(e)},_handleSecondaryValue:function(){this._flush()},_handleSecondaryEnd:function(){this._flushOnEnd||this._emitEnd()}},xn=dn("bufferBy",Dn),_n=pn("bufferBy",Dn),Tn={_init:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.flushOnEnd,n=void 0===t||t,i=e.flushOnChange,r=void 0!==i&&i;this._buff=[],this._flushOnEnd=n,this._flushOnChange=r},_free:function(){this._buff=null},_flush:function(){null!==this._buff&&(this._emitValue(this._buff),this._buff=[])},_handlePrimaryEnd:function(){this._flushOnEnd&&this._flush(),this._emitEnd()},_handlePrimaryValue:function(e){this._buff.push(e),this._lastSecondary===s||this._lastSecondary||this._flush()},_handleSecondaryEnd:function(){this._flushOnEnd||this._lastSecondary!==s&&!this._lastSecondary||this._emitEnd()},_handleSecondaryValue:function(e){this._flushOnChange&&!e&&this._flush(),this._lastSecondary=e}},kn=dn("bufferWhileBy",Tn),Fn=pn("bufferWhileBy",Tn),An=function(){return!1},Rn=function(){return!0},On={_init:function(e){var t=e.fn;this._fn=t},_free:function(){this._fn=null},_handleValue:function(e){var t=(0,this._fn)(e);t.convert?this._emitError(t.error):this._emitValue(e)}},Pn=X("valuesToErrors",On),Mn=Y("valuesToErrors",On),Nn=function(e){return{convert:!0,error:e}},In={_init:function(e){var t=e.fn;this._fn=t},_free:function(){this._fn=null},_handleError:function(e){var t=(0,this._fn)(e);t.convert?this._emitValue(t.value):this._emitError(e)}},Ln=X("errorsToValues",In),jn=Y("errorsToValues",In),Bn=function(e){return{convert:!0,value:e}},qn={_handleError:function(e){this._emitError(e),this._emitEnd()}},Un=X("endOnError",qn),Wn=Y("endOnError",qn);C.prototype.toProperty=function(e){return Z(this,e)},C.prototype.changes=function(){return new ee(this)},C.prototype.toPromise=function(e){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ne(),n=null;return new t((function(t,i){e.onAny((function(e){e.type===a&&null!==n?((n.type===c?t:i)(n.value),n=null):n=e}))}))}(this,e)},C.prototype.toESObservable=ae,C.prototype[re]=ae,C.prototype.map=function(e){return ye(this,e)},C.prototype.filter=function(e){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:be;return new(e._ofSameType(Ce,Se))(e,{fn:t})}(this,e)},C.prototype.take=function(e){return function(e,t){return new(e._ofSameType(we,De))(e,{n:t})}(this,e)},C.prototype.takeErrors=function(e){return function(e,t){return new(e._ofSameType(_e,Te))(e,{n:t})}(this,e)},C.prototype.takeWhile=function(e){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Re;return new(e._ofSameType(Fe,Ae))(e,{fn:t})}(this,e)},C.prototype.last=function(){return new((e=this)._ofSameType(Pe,Me))(e);var e},C.prototype.skip=function(e){return function(e,t){return new(e._ofSameType(Ie,Le))(e,{n:t})}(this,e)},C.prototype.skipWhile=function(e){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ue;return new(e._ofSameType(Be,qe))(e,{fn:t})}(this,e)},C.prototype.skipDuplicates=function(e){return Ve(this,e)},C.prototype.diff=function(e,t){return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s;return new(e._ofSameType(Ge,Je))(e,{fn:t||Xe,seed:n})}(this,e,t)},C.prototype.scan=function(e,t){return function(e,t){return new Ye(e,{fn:t,seed:arguments.length>2&&void 0!==arguments[2]?arguments[2]:s})}(this,e,t)},C.prototype.flatten=function(e){return function(e){return new Qe(e,{fn:arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ze})}(this,e)},C.prototype.delay=function(e){return function(e,t){return new(e._ofSameType(nt,it))(e,{wait:t})}(this,e)},C.prototype.throttle=function(e,t){return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.leading,r=void 0===i||i,o=n.trailing,s=void 0===o||o;return new(e._ofSameType(st,at))(e,{wait:t,leading:r,trailing:s})}(this,e,t)},C.prototype.debounce=function(e,t){return function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).immediate,i=void 0!==n&&n;return new(e._ofSameType(ut,lt))(e,{wait:t,immediate:i})}(this,e,t)},C.prototype.mapErrors=function(e){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ft;return new(e._ofSameType(dt,pt))(e,{fn:t})}(this,e)},C.prototype.filterErrors=function(e){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:vt;return new(e._ofSameType(mt,yt))(e,{fn:t})}(this,e)},C.prototype.ignoreValues=function(){return new((e=this)._ofSameType(St,bt))(e);var e},C.prototype.ignoreErrors=function(){return new((e=this)._ofSameType(wt,Dt))(e);var e},C.prototype.ignoreEnd=function(){return new((e=this)._ofSameType(_t,Tt))(e);var e},C.prototype.beforeEnd=function(e){return function(e,t){return new(e._ofSameType(Ft,At))(e,{fn:t})}(this,e)},C.prototype.slidingWindow=function(e,t){return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return new(e._ofSameType(Ot,Pt))(e,{min:n,max:t})}(this,e,t)},C.prototype.bufferWhile=function(e,t){return function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).flushOnEnd,i=void 0===n||n;return new(e._ofSameType(Nt,It))(e,{fn:t||Lt,flushOnEnd:i})}(this,e,t)},C.prototype.bufferWithCount=function(e,t){return function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).flushOnEnd,i=void 0===n||n;return new(e._ofSameType(Bt,qt))(e,{count:t,flushOnEnd:i})}(this,e,t)},C.prototype.bufferWithTimeOrCount=function(e,t,n){return function(e,t,n){var i=(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).flushOnEnd,r=void 0===i||i;return new(e._ofSameType(Wt,$t))(e,{wait:t,count:n,flushOnEnd:r})}(this,e,t,n)},C.prototype.transduce=function(e){return function(e,t){return new(e._ofSameType(zt,Vt))(e,{transducer:t})}(this,e)},C.prototype.withHandler=function(e){return function(e,t){return new(e._ofSameType(Gt,Jt))(e,{fn:t})}(this,e)},C.prototype.thru=function(e){return e(this)},C.prototype.combine=function(e,t){return le([this,e],t)},C.prototype.zip=function(e,t){return Qt([this,e],t)},C.prototype.merge=function(e){return nn([this,e])},C.prototype.concat=function(e){return sn([this,e])};var $n=function(){return new an};C.prototype.flatMap=function(e){return new cn(this,e).setName(this,"flatMap")},C.prototype.flatMapLatest=function(e){return new cn(this,e,{concurLim:1,drop:"old"}).setName(this,"flatMapLatest")},C.prototype.flatMapFirst=function(e){return new cn(this,e,{concurLim:1}).setName(this,"flatMapFirst")},C.prototype.flatMapConcat=function(e){return new cn(this,e,{queueLim:-1,concurLim:1}).setName(this,"flatMapConcat")},C.prototype.flatMapConcurLimit=function(e,t){return new cn(this,e,{queueLim:-1,concurLim:t}).setName(this,"flatMapConcurLimit")},C.prototype.flatMapErrors=function(e){return new un(this,e).setName(this,"flatMapErrors")},C.prototype.filterBy=function(e){return n=e,new((t=this)._ofSameType(gn,mn))(t,n);var t,n},C.prototype.sampledBy=function(e,t){return function(e,t,n){return le([t],[e],n?function(e,t){return n(t,e)}:yn).setName(e,"sampledBy")}(this,e,t)},C.prototype.skipUntilBy=function(e){return n=e,new((t=this)._ofSameType(Cn,Sn))(t,n);var t,n},C.prototype.takeUntilBy=function(e){return n=e,new((t=this)._ofSameType(En,wn))(t,n);var t,n},C.prototype.bufferBy=function(e,t){return function(e,t,n){return new(e._ofSameType(xn,_n))(e,t,n)}(this,e,t)},C.prototype.bufferWhileBy=function(e,t){return function(e,t,n){return new(e._ofSameType(kn,Fn))(e,t,n)}(this,e,t)};var Kn=!0;function zn(){Kn=!1}function Vn(e){Kn&&console&&"function"==typeof console.warn&&console.warn(e,"\nHere is an Error object for you containing the call stack:",new Error)}C.prototype.awaiting=function(e){return Vn("You are using deprecated .awaiting() method, see https://github.com/kefirjs/kefir/issues/145"),function(e,t){var n=nn([ye(e,Rn),ye(t,An)]);return(n=Z(n=Ve(n),An)).setName(e,"awaiting")}(this,e)},C.prototype.valuesToErrors=function(e){return Vn("You are using deprecated .valuesToErrors() method, see https://github.com/kefirjs/kefir/issues/149"),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Nn;return new(e._ofSameType(Pn,Mn))(e,{fn:t})}(this,e)},C.prototype.errorsToValues=function(e){return Vn("You are using deprecated .errorsToValues() method, see https://github.com/kefirjs/kefir/issues/149"),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Bn;return new(e._ofSameType(Ln,jn))(e,{fn:t})}(this,e)},C.prototype.endOnError=function(){return Vn("You are using deprecated .endOnError() method, see https://github.com/kefirjs/kefir/issues/150"),new((e=this)._ofSameType(Un,Wn))(e);var e};var Hn={Observable:C,Stream:S,Property:b,never:w,later:_,interval:k,sequentially:A,fromPoll:O,withInterval:N,fromCallback:j,fromNodeCallback:B,fromEvents:$,stream:L,constant:z,constantError:H,fromPromise:te,fromESObservable:oe,combine:le,zip:Qt,merge:nn,concat:sn,Pool:an,pool:$n,repeat:on,staticLand:de};Hn.Kefir=Hn;const Gn=Hn},7105:(e,t,n)=>{"use strict";const i=n(8006),r=Symbol("max"),o=Symbol("length"),s=Symbol("lengthCalculator"),a=Symbol("allowStale"),c=Symbol("maxAge"),u=Symbol("dispose"),l=Symbol("noDisposeOnSet"),h=Symbol("lruList"),d=Symbol("cache"),p=Symbol("updateAgeOnGet"),f=()=>1,g=(e,t,n)=>{const i=e[d].get(t);if(i){const t=i.value;if(m(e,t)){if(v(e,i),!e[a])return}else n&&(e[p]&&(i.value.now=Date.now()),e[h].unshiftNode(i));return t.value}},m=(e,t)=>{if(!t||!t.maxAge&&!e[c])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[c]&&n>e[c]},y=e=>{if(e[o]>e[r])for(let t=e[h].tail;e[o]>e[r]&&null!==t;){const n=t.prev;v(e,t),t=n}},v=(e,t)=>{if(t){const n=t.value;e[u]&&e[u](n.key,n.value),e[o]-=n.length,e[d].delete(n.key),e[h].removeNode(t)}};class C{constructor(e,t,n,i,r){this.key=e,this.value=t,this.length=n,this.now=i,this.maxAge=r||0}}const S=(e,t,n,i)=>{let r=n.value;m(e,r)&&(v(e,n),e[a]||(r=void 0)),r&&t.call(i,r.value,r.key,e)};e.exports=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[r]=e.max||1/0;const t=e.length||f;if(this[s]="function"!=typeof t?f:t,this[a]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[c]=e.maxAge||0,this[u]=e.dispose,this[l]=e.noDisposeOnSet||!1,this[p]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[r]=e||1/0,y(this)}get max(){return this[r]}set allowStale(e){this[a]=!!e}get allowStale(){return this[a]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[c]=e,y(this)}get maxAge(){return this[c]}set lengthCalculator(e){"function"!=typeof e&&(e=f),e!==this[s]&&(this[s]=e,this[o]=0,this[h].forEach((e=>{e.length=this[s](e.value,e.key),this[o]+=e.length}))),y(this)}get lengthCalculator(){return this[s]}get length(){return this[o]}get itemCount(){return this[h].length}rforEach(e,t){t=t||this;for(let n=this[h].tail;null!==n;){const i=n.prev;S(this,e,n,t),n=i}}forEach(e,t){t=t||this;for(let n=this[h].head;null!==n;){const i=n.next;S(this,e,n,t),n=i}}keys(){return this[h].toArray().map((e=>e.key))}values(){return this[h].toArray().map((e=>e.value))}reset(){this[u]&&this[h]&&this[h].length&&this[h].forEach((e=>this[u](e.key,e.value))),this[d]=new Map,this[h]=new i,this[o]=0}dump(){return this[h].map((e=>!m(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[h]}set(e,t,n){if((n=n||this[c])&&"number"!=typeof n)throw new TypeError("maxAge must be a number");const i=n?Date.now():0,a=this[s](t,e);if(this[d].has(e)){if(a>this[r])return v(this,this[d].get(e)),!1;const s=this[d].get(e).value;return this[u]&&(this[l]||this[u](e,s.value)),s.now=i,s.maxAge=n,s.value=t,this[o]+=a-s.length,s.length=a,this.get(e),y(this),!0}const p=new C(e,t,a,i,n);return p.length>this[r]?(this[u]&&this[u](e,t),!1):(this[o]+=p.length,this[h].unshift(p),this[d].set(e,this[h].head),y(this),!0)}has(e){if(!this[d].has(e))return!1;const t=this[d].get(e).value;return!m(this,t)}get(e){return g(this,e,!0)}peek(e){return g(this,e,!1)}pop(){const e=this[h].tail;return e?(v(this,e),e.value):null}del(e){v(this,this[d].get(e))}load(e){this.reset();const t=Date.now();for(let n=e.length-1;n>=0;n--){const i=e[n],r=i.e||0;if(0===r)this.set(i.k,i.v);else{const e=r-t;e>0&&this.set(i.k,i.v,e)}}}prune(){this[d].forEach(((e,t)=>g(this,t,!1)))}}},7339:(e,t,n)=>{e.exports=d,d.Minimatch=p;var i=function(){try{return n(1017)}catch(e){}}()||{sep:"/"};d.sep=i.sep;var r=d.GLOBSTAR=p.GLOBSTAR={},o=n(402),s={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},a="[^/]",c="[^/]*?",u="().*{}+?[]^$\\!".split("").reduce((function(e,t){return e[t]=!0,e}),{}),l=/\/+/;function h(e,t){t=t||{};var n={};return Object.keys(e).forEach((function(t){n[t]=e[t]})),Object.keys(t).forEach((function(e){n[e]=t[e]})),n}function d(e,t,n){return g(t),n||(n={}),!(!n.nocomment&&"#"===t.charAt(0))&&new p(t,n).match(e)}function p(e,t){if(!(this instanceof p))return new p(e,t);g(e),t||(t={}),e=e.trim(),t.allowWindowsEscape||"/"===i.sep||(e=e.split(i.sep).join("/")),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.make()}function f(e,t){return t||(t=this instanceof p?this.options:{}),e=void 0===e?this.pattern:e,g(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:o(e)}d.filter=function(e,t){return t=t||{},function(n,i,r){return d(n,e,t)}},d.defaults=function(e){if(!e||"object"!=typeof e||!Object.keys(e).length)return d;var t=d,n=function(n,i,r){return t(n,i,h(e,r))};return(n.Minimatch=function(n,i){return new t.Minimatch(n,h(e,i))}).defaults=function(n){return t.defaults(h(e,n)).Minimatch},n.filter=function(n,i){return t.filter(n,h(e,i))},n.defaults=function(n){return t.defaults(h(e,n))},n.makeRe=function(n,i){return t.makeRe(n,h(e,i))},n.braceExpand=function(n,i){return t.braceExpand(n,h(e,i))},n.match=function(n,i,r){return t.match(n,i,h(e,r))},n},p.defaults=function(e){return d.defaults(e).Minimatch},p.prototype.debug=function(){},p.prototype.make=function(){var e=this.pattern,t=this.options;if(t.nocomment||"#"!==e.charAt(0))if(e){this.parseNegate();var n=this.globSet=this.braceExpand();t.debug&&(this.debug=function(){console.error.apply(console,arguments)}),this.debug(this.pattern,n),n=this.globParts=n.map((function(e){return e.split(l)})),this.debug(this.pattern,n),n=n.map((function(e,t,n){return e.map(this.parse,this)}),this),this.debug(this.pattern,n),n=n.filter((function(e){return-1===e.indexOf(!1)})),this.debug(this.pattern,n),this.set=n}else this.empty=!0;else this.comment=!0},p.prototype.parseNegate=function(){var e=this.pattern,t=!1,n=0;if(!this.options.nonegate){for(var i=0,r=e.length;i65536)throw new TypeError("pattern is too long")};p.prototype.parse=function(e,t){g(e);var n=this.options;if("**"===e){if(!n.noglobstar)return r;e="*"}if(""===e)return"";var i,o="",l=!!n.nocase,h=!1,d=[],p=[],f=!1,y=-1,v=-1,C="."===e.charAt(0)?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",S=this;function b(){if(i){switch(i){case"*":o+=c,l=!0;break;case"?":o+=a,l=!0;break;default:o+="\\"+i}S.debug("clearStateChar %j %j",i,o),i=!1}}for(var E,w=0,D=e.length;w-1;R--){var O=p[R],P=o.slice(0,O.reStart),M=o.slice(O.reStart,O.reEnd-8),N=o.slice(O.reEnd-8,O.reEnd),I=o.slice(O.reEnd);N+=I;var L=P.split("(").length-1,j=I;for(w=0;w=0&&!(r=e[o]);o--);for(o=0;o>> no match, partial?",e,d,t,p),d!==a))}if("string"==typeof l?(u=h===l,this.debug("string match",l,h,u)):(u=h.match(l),this.debug("pattern match",l,h,u)),!u)return!1}if(o===a&&s===c)return!0;if(o===a)return n;if(s===c)return o===a-1&&""===e[o];throw new Error("wtf?")}},4076:e=>{"use strict";var t,n="";e.exports=function(e,i){if("string"!=typeof e)throw new TypeError("expected a string");if(1===i)return e;if(2===i)return e+e;var r=e.length*i;if(t!==e||void 0===t)t=e,n="";else if(n.length>=r)return n.substr(0,r);for(;r>n.length&&i>1;)1&i&&(n+=e),i>>=1,e+=e;return n=(n+=e).substr(0,r)}},7847:(e,t,n)=>{const i=Symbol("SemVer ANY");class r{static get ANY(){return i}constructor(e,t){if(t=o(t),e instanceof r){if(e.loose===!!t.loose)return e;e=e.value}u("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===i?this.value="":this.value=this.operator+this.semver.version,u("comp",this)}parse(e){const t=this.options.loose?s[a.COMPARATORLOOSE]:s[a.COMPARATOR],n=e.match(t);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new l(n[2],this.options.loose):this.semver=i}toString(){return this.value}test(e){if(u("Comparator.test",e,this.options.loose),this.semver===i||e===i)return!0;if("string"==typeof e)try{e=new l(e,this.options)}catch(e){return!1}return c(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Comparator is required");if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||new h(e.value,t).test(this.value);if(""===e.operator)return""===e.value||new h(this.value,t).test(e.semver);const n=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==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),u=c(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return n||i||o&&s||a||u}}e.exports=r;const o=n(1388),{re:s,t:a}=n(4808),c=n(8117),u=n(952),l=n(2435),h=n(6843)},6843:(e,t,n)=>{class i{constructor(e,t){if(t=o(t),e instanceof i)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new i(e.raw,t);if(e instanceof s)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(/\s*\|\|\s*/).map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${e}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!f(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&g(e[0])){this.set=[e];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();const t=`parseRange:${Object.keys(this.options).join(",")}:${e}`,n=r.get(t);if(n)return n;const i=this.options.loose,o=i?u[l.HYPHENRANGELOOSE]:u[l.HYPHENRANGE];e=e.replace(o,T(this.options.includePrerelease)),a("hyphen replace",e),e=e.replace(u[l.COMPARATORTRIM],h),a("comparator trim",e,u[l.COMPARATORTRIM]),e=(e=(e=e.replace(u[l.TILDETRIM],d)).replace(u[l.CARETTRIM],p)).split(/\s+/).join(" ");const c=i?u[l.COMPARATORLOOSE]:u[l.COMPARATOR],g=e.split(" ").map((e=>y(e,this.options))).join(" ").split(/\s+/).map((e=>_(e,this.options))).filter(this.options.loose?e=>!!e.match(c):()=>!0).map((e=>new s(e,this.options))),m=(g.length,new Map);for(const e of g){if(f(e))return[e];m.set(e.value,e)}m.size>1&&m.has("")&&m.delete("");const v=[...m.values()];return r.set(t,v),v}intersects(e,t){if(!(e instanceof i))throw new TypeError("a Range is required");return this.set.some((n=>m(n,t)&&e.set.some((e=>m(e,t)&&n.every((n=>e.every((e=>n.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new c(e,this.options)}catch(e){return!1}for(let t=0;t"<0.0.0-0"===e.value,g=e=>""===e.value,m=(e,t)=>{let n=!0;const i=e.slice();let r=i.pop();for(;n&&i.length;)n=i.every((e=>r.intersects(e,t))),r=i.pop();return n},y=(e,t)=>(a("comp",e,t),e=b(e,t),a("caret",e),e=C(e,t),a("tildes",e),e=w(e,t),a("xrange",e),e=x(e,t),a("stars",e),e),v=e=>!e||"x"===e.toLowerCase()||"*"===e,C=(e,t)=>e.trim().split(/\s+/).map((e=>S(e,t))).join(" "),S=(e,t)=>{const n=t.loose?u[l.TILDELOOSE]:u[l.TILDE];return e.replace(n,((t,n,i,r,o)=>{let s;return a("tilde",e,t,n,i,r,o),v(n)?s="":v(i)?s=`>=${n}.0.0 <${+n+1}.0.0-0`:v(r)?s=`>=${n}.${i}.0 <${n}.${+i+1}.0-0`:o?(a("replaceTilde pr",o),s=`>=${n}.${i}.${r}-${o} <${n}.${+i+1}.0-0`):s=`>=${n}.${i}.${r} <${n}.${+i+1}.0-0`,a("tilde return",s),s}))},b=(e,t)=>e.trim().split(/\s+/).map((e=>E(e,t))).join(" "),E=(e,t)=>{a("caret",e,t);const n=t.loose?u[l.CARETLOOSE]:u[l.CARET],i=t.includePrerelease?"-0":"";return e.replace(n,((t,n,r,o,s)=>{let c;return a("caret",e,t,n,r,o,s),v(n)?c="":v(r)?c=`>=${n}.0.0${i} <${+n+1}.0.0-0`:v(o)?c="0"===n?`>=${n}.${r}.0${i} <${n}.${+r+1}.0-0`:`>=${n}.${r}.0${i} <${+n+1}.0.0-0`:s?(a("replaceCaret pr",s),c="0"===n?"0"===r?`>=${n}.${r}.${o}-${s} <${n}.${r}.${+o+1}-0`:`>=${n}.${r}.${o}-${s} <${n}.${+r+1}.0-0`:`>=${n}.${r}.${o}-${s} <${+n+1}.0.0-0`):(a("no pr"),c="0"===n?"0"===r?`>=${n}.${r}.${o}${i} <${n}.${r}.${+o+1}-0`:`>=${n}.${r}.${o}${i} <${n}.${+r+1}.0-0`:`>=${n}.${r}.${o} <${+n+1}.0.0-0`),a("caret return",c),c}))},w=(e,t)=>(a("replaceXRanges",e,t),e.split(/\s+/).map((e=>D(e,t))).join(" ")),D=(e,t)=>{e=e.trim();const n=t.loose?u[l.XRANGELOOSE]:u[l.XRANGE];return e.replace(n,((n,i,r,o,s,c)=>{a("xRange",e,n,i,r,o,s,c);const u=v(r),l=u||v(o),h=l||v(s),d=h;return"="===i&&d&&(i=""),c=t.includePrerelease?"-0":"",u?n=">"===i||"<"===i?"<0.0.0-0":"*":i&&d?(l&&(o=0),s=0,">"===i?(i=">=",l?(r=+r+1,o=0,s=0):(o=+o+1,s=0)):"<="===i&&(i="<",l?r=+r+1:o=+o+1),"<"===i&&(c="-0"),n=`${i+r}.${o}.${s}${c}`):l?n=`>=${r}.0.0${c} <${+r+1}.0.0-0`:h&&(n=`>=${r}.${o}.0${c} <${r}.${+o+1}.0-0`),a("xRange return",n),n}))},x=(e,t)=>(a("replaceStars",e,t),e.trim().replace(u[l.STAR],"")),_=(e,t)=>(a("replaceGTE0",e,t),e.trim().replace(u[t.includePrerelease?l.GTE0PRE:l.GTE0],"")),T=e=>(t,n,i,r,o,s,a,c,u,l,h,d,p)=>`${n=v(i)?"":v(r)?`>=${i}.0.0${e?"-0":""}`:v(o)?`>=${i}.${r}.0${e?"-0":""}`:s?`>=${n}`:`>=${n}${e?"-0":""}`} ${c=v(u)?"":v(l)?`<${+u+1}.0.0-0`:v(h)?`<${u}.${+l+1}.0-0`:d?`<=${u}.${l}.${h}-${d}`:e?`<${u}.${l}.${+h+1}-0`:`<=${c}`}`.trim(),k=(e,t,n)=>{for(let n=0;n0){const i=e[n].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0}},2435:(e,t,n)=>{const i=n(952),{MAX_LENGTH:r,MAX_SAFE_INTEGER:o}=n(5558),{re:s,t:a}=n(4808),c=n(1388),{compareIdentifiers:u}=n(4935);class l{constructor(e,t){if(t=c(t),e instanceof l){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid Version: ${e}`);if(e.length>r)throw new TypeError(`version is longer than ${r} characters`);i("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?s[a.LOOSE]:s[a.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?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}}e.exports=l},6694:(e,t,n)=>{const i=n(9943);e.exports=(e,t)=>{const n=i(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null}},8117:(e,t,n)=>{const i=n(3276),r=n(7893),o=n(6379),s=n(8463),a=n(1897),c=n(506);e.exports=(e,t,n,u)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return i(e,n,u);case"!=":return r(e,n,u);case">":return o(e,n,u);case">=":return s(e,n,u);case"<":return a(e,n,u);case"<=":return c(e,n,u);default:throw new TypeError(`Invalid operator: ${t}`)}}},8686:(e,t,n)=>{const i=n(2435),r=n(9943),{re:o,t:s}=n(4808);e.exports=(e,t)=>{if(e instanceof i)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let n=null;if((t=t||{}).rtl){let t;for(;(t=o[s.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&t.index+t[0].length===n.index+n[0].length||(n=t),o[s.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;o[s.COERCERTL].lastIndex=-1}else n=e.match(o[s.COERCE]);return null===n?null:r(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,t)}},5914:(e,t,n)=>{const i=n(2435);e.exports=(e,t,n)=>{const r=new i(e,n),o=new i(t,n);return r.compare(o)||r.compareBuild(o)}},5404:(e,t,n)=>{const i=n(2271);e.exports=(e,t)=>i(e,t,!0)},2271:(e,t,n)=>{const i=n(2435);e.exports=(e,t,n)=>new i(e,n).compare(new i(t,n))},6007:(e,t,n)=>{const i=n(9943),r=n(3276);e.exports=(e,t)=>{if(r(e,t))return null;{const n=i(e),r=i(t),o=n.prerelease.length||r.prerelease.length,s=o?"pre":"",a=o?"prerelease":"";for(const e in n)if(("major"===e||"minor"===e||"patch"===e)&&n[e]!==r[e])return s+e;return a}}},3276:(e,t,n)=>{const i=n(2271);e.exports=(e,t,n)=>0===i(e,t,n)},6379:(e,t,n)=>{const i=n(2271);e.exports=(e,t,n)=>i(e,t,n)>0},8463:(e,t,n)=>{const i=n(2271);e.exports=(e,t,n)=>i(e,t,n)>=0},6360:(e,t,n)=>{const i=n(2435);e.exports=(e,t,n,r)=>{"string"==typeof n&&(r=n,n=void 0);try{return new i(e,n).inc(t,r).version}catch(e){return null}}},1897:(e,t,n)=>{const i=n(2271);e.exports=(e,t,n)=>i(e,t,n)<0},506:(e,t,n)=>{const i=n(2271);e.exports=(e,t,n)=>i(e,t,n)<=0},4551:(e,t,n)=>{const i=n(2435);e.exports=(e,t)=>new i(e,t).major},469:(e,t,n)=>{const i=n(2435);e.exports=(e,t)=>new i(e,t).minor},7893:(e,t,n)=>{const i=n(2271);e.exports=(e,t,n)=>0!==i(e,t,n)},9943:(e,t,n)=>{const{MAX_LENGTH:i}=n(5558),{re:r,t:o}=n(4808),s=n(2435),a=n(1388);e.exports=(e,t)=>{if(t=a(t),e instanceof s)return e;if("string"!=typeof e)return null;if(e.length>i)return null;if(!(t.loose?r[o.LOOSE]:r[o.FULL]).test(e))return null;try{return new s(e,t)}catch(e){return null}}},4250:(e,t,n)=>{const i=n(2435);e.exports=(e,t)=>new i(e,t).patch},8204:(e,t,n)=>{const i=n(9943);e.exports=(e,t)=>{const n=i(e,t);return n&&n.prerelease.length?n.prerelease:null}},733:(e,t,n)=>{const i=n(2271);e.exports=(e,t,n)=>i(t,e,n)},2961:(e,t,n)=>{const i=n(5914);e.exports=(e,t)=>e.sort(((e,n)=>i(n,e,t)))},9844:(e,t,n)=>{const i=n(6843);e.exports=(e,t,n)=>{try{t=new i(t,n)}catch(e){return!1}return t.test(e)}},1116:(e,t,n)=>{const i=n(5914);e.exports=(e,t)=>e.sort(((e,n)=>i(e,n,t)))},7230:(e,t,n)=>{const i=n(9943);e.exports=(e,t)=>{const n=i(e,t);return n?n.version:null}},7699:(e,t,n)=>{const i=n(4808);e.exports={re:i.re,src:i.src,tokens:i.t,SEMVER_SPEC_VERSION:n(5558).SEMVER_SPEC_VERSION,SemVer:n(2435),compareIdentifiers:n(4935).compareIdentifiers,rcompareIdentifiers:n(4935).rcompareIdentifiers,parse:n(9943),valid:n(7230),clean:n(6694),inc:n(6360),diff:n(6007),major:n(4551),minor:n(469),patch:n(4250),prerelease:n(8204),compare:n(2271),rcompare:n(733),compareLoose:n(5404),compareBuild:n(5914),sort:n(1116),rsort:n(2961),gt:n(6379),lt:n(1897),eq:n(3276),neq:n(7893),gte:n(8463),lte:n(506),cmp:n(8117),coerce:n(8686),Comparator:n(7847),Range:n(6843),satisfies:n(9844),toComparators:n(8865),maxSatisfying:n(3727),minSatisfying:n(4338),minVersion:n(1542),validRange:n(6240),outside:n(9106),gtr:n(995),ltr:n(7805),intersects:n(2013),simplifyRange:n(1338),subset:n(3122)}},5558:e=>{const t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:t,MAX_SAFE_COMPONENT_LENGTH:16}},952:e=>{const t="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},4935:e=>{const t=/^[0-9]+$/,n=(e,n)=>{const i=t.test(e),r=t.test(n);return i&&r&&(e=+e,n=+n),e===n?0:i&&!r?-1:r&&!i?1:en(t,e)}},1388:e=>{const t=["includePrerelease","loose","rtl"];e.exports=e=>e?"object"!=typeof e?{loose:!0}:t.filter((t=>e[t])).reduce(((e,t)=>(e[t]=!0,e)),{}):{}},4808:(e,t,n)=>{const{MAX_SAFE_COMPONENT_LENGTH:i}=n(5558),r=n(952),o=(t=e.exports={}).re=[],s=t.src=[],a=t.t={};let c=0;const u=(e,t,n)=>{const i=c++;r(i,t),a[e]=i,s[i]=t,o[i]=new RegExp(t,n?"g":void 0)};u("NUMERICIDENTIFIER","0|[1-9]\\d*"),u("NUMERICIDENTIFIERLOOSE","[0-9]+"),u("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),u("MAINVERSION",`(${s[a.NUMERICIDENTIFIER]})\\.(${s[a.NUMERICIDENTIFIER]})\\.(${s[a.NUMERICIDENTIFIER]})`),u("MAINVERSIONLOOSE",`(${s[a.NUMERICIDENTIFIERLOOSE]})\\.(${s[a.NUMERICIDENTIFIERLOOSE]})\\.(${s[a.NUMERICIDENTIFIERLOOSE]})`),u("PRERELEASEIDENTIFIER",`(?:${s[a.NUMERICIDENTIFIER]}|${s[a.NONNUMERICIDENTIFIER]})`),u("PRERELEASEIDENTIFIERLOOSE",`(?:${s[a.NUMERICIDENTIFIERLOOSE]}|${s[a.NONNUMERICIDENTIFIER]})`),u("PRERELEASE",`(?:-(${s[a.PRERELEASEIDENTIFIER]}(?:\\.${s[a.PRERELEASEIDENTIFIER]})*))`),u("PRERELEASELOOSE",`(?:-?(${s[a.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${s[a.PRERELEASEIDENTIFIERLOOSE]})*))`),u("BUILDIDENTIFIER","[0-9A-Za-z-]+"),u("BUILD",`(?:\\+(${s[a.BUILDIDENTIFIER]}(?:\\.${s[a.BUILDIDENTIFIER]})*))`),u("FULLPLAIN",`v?${s[a.MAINVERSION]}${s[a.PRERELEASE]}?${s[a.BUILD]}?`),u("FULL",`^${s[a.FULLPLAIN]}$`),u("LOOSEPLAIN",`[v=\\s]*${s[a.MAINVERSIONLOOSE]}${s[a.PRERELEASELOOSE]}?${s[a.BUILD]}?`),u("LOOSE",`^${s[a.LOOSEPLAIN]}$`),u("GTLT","((?:<|>)?=?)"),u("XRANGEIDENTIFIERLOOSE",`${s[a.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),u("XRANGEIDENTIFIER",`${s[a.NUMERICIDENTIFIER]}|x|X|\\*`),u("XRANGEPLAIN",`[v=\\s]*(${s[a.XRANGEIDENTIFIER]})(?:\\.(${s[a.XRANGEIDENTIFIER]})(?:\\.(${s[a.XRANGEIDENTIFIER]})(?:${s[a.PRERELEASE]})?${s[a.BUILD]}?)?)?`),u("XRANGEPLAINLOOSE",`[v=\\s]*(${s[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[a.XRANGEIDENTIFIERLOOSE]})(?:${s[a.PRERELEASELOOSE]})?${s[a.BUILD]}?)?)?`),u("XRANGE",`^${s[a.GTLT]}\\s*${s[a.XRANGEPLAIN]}$`),u("XRANGELOOSE",`^${s[a.GTLT]}\\s*${s[a.XRANGEPLAINLOOSE]}$`),u("COERCE",`(^|[^\\d])(\\d{1,${i}})(?:\\.(\\d{1,${i}}))?(?:\\.(\\d{1,${i}}))?(?:$|[^\\d])`),u("COERCERTL",s[a.COERCE],!0),u("LONETILDE","(?:~>?)"),u("TILDETRIM",`(\\s*)${s[a.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",u("TILDE",`^${s[a.LONETILDE]}${s[a.XRANGEPLAIN]}$`),u("TILDELOOSE",`^${s[a.LONETILDE]}${s[a.XRANGEPLAINLOOSE]}$`),u("LONECARET","(?:\\^)"),u("CARETTRIM",`(\\s*)${s[a.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",u("CARET",`^${s[a.LONECARET]}${s[a.XRANGEPLAIN]}$`),u("CARETLOOSE",`^${s[a.LONECARET]}${s[a.XRANGEPLAINLOOSE]}$`),u("COMPARATORLOOSE",`^${s[a.GTLT]}\\s*(${s[a.LOOSEPLAIN]})$|^$`),u("COMPARATOR",`^${s[a.GTLT]}\\s*(${s[a.FULLPLAIN]})$|^$`),u("COMPARATORTRIM",`(\\s*)${s[a.GTLT]}\\s*(${s[a.LOOSEPLAIN]}|${s[a.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",u("HYPHENRANGE",`^\\s*(${s[a.XRANGEPLAIN]})\\s+-\\s+(${s[a.XRANGEPLAIN]})\\s*$`),u("HYPHENRANGELOOSE",`^\\s*(${s[a.XRANGEPLAINLOOSE]})\\s+-\\s+(${s[a.XRANGEPLAINLOOSE]})\\s*$`),u("STAR","(<|>)?=?\\s*\\*"),u("GTE0","^\\s*>=\\s*0.0.0\\s*$"),u("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")},995:(e,t,n)=>{const i=n(9106);e.exports=(e,t,n)=>i(e,t,">",n)},2013:(e,t,n)=>{const i=n(6843);e.exports=(e,t,n)=>(e=new i(e,n),t=new i(t,n),e.intersects(t))},7805:(e,t,n)=>{const i=n(9106);e.exports=(e,t,n)=>i(e,t,"<",n)},3727:(e,t,n)=>{const i=n(2435),r=n(6843);e.exports=(e,t,n)=>{let o=null,s=null,a=null;try{a=new r(t,n)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(o&&-1!==s.compare(e)||(o=e,s=new i(o,n)))})),o}},4338:(e,t,n)=>{const i=n(2435),r=n(6843);e.exports=(e,t,n)=>{let o=null,s=null,a=null;try{a=new r(t,n)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(o&&1!==s.compare(e)||(o=e,s=new i(o,n)))})),o}},1542:(e,t,n)=>{const i=n(2435),r=n(6843),o=n(6379);e.exports=(e,t)=>{e=new r(e,t);let n=new i("0.0.0");if(e.test(n))return n;if(n=new i("0.0.0-0"),e.test(n))return n;n=null;for(let t=0;t{const t=new i(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":s&&!o(t,s)||(s=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})),!s||n&&!o(n,s)||(n=s)}return n&&e.test(n)?n:null}},9106:(e,t,n)=>{const i=n(2435),r=n(7847),{ANY:o}=r,s=n(6843),a=n(9844),c=n(6379),u=n(1897),l=n(506),h=n(8463);e.exports=(e,t,n,d)=>{let p,f,g,m,y;switch(e=new i(e,d),t=new s(t,d),n){case">":p=c,f=l,g=u,m=">",y=">=";break;case"<":p=u,f=h,g=c,m="<",y="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(a(e,t,d))return!1;for(let n=0;n{e.semver===o&&(e=new r(">=0.0.0")),s=s||e,a=a||e,p(e.semver,s.semver,d)?s=e:g(e.semver,a.semver,d)&&(a=e)})),s.operator===m||s.operator===y)return!1;if((!a.operator||a.operator===m)&&f(e,a.semver))return!1;if(a.operator===y&&g(e,a.semver))return!1}return!0}},1338:(e,t,n)=>{const i=n(9844),r=n(2271);e.exports=(e,t,n)=>{const o=[];let s=null,a=null;const c=e.sort(((e,t)=>r(e,t,n)));for(const e of c)i(e,t,n)?(a=e,s||(s=e)):(a&&o.push([s,a]),a=null,s=null);s&&o.push([s,null]);const u=[];for(const[e,t]of o)e===t?u.push(e):t||e!==c[0]?t?e===c[0]?u.push(`<=${t}`):u.push(`${e} - ${t}`):u.push(`>=${e}`):u.push("*");const l=u.join(" || "),h="string"==typeof t.raw?t.raw:String(t);return l.length{const i=n(6843),r=n(7847),{ANY:o}=r,s=n(9844),a=n(2271),c=(e,t,n)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===o){if(1===t.length&&t[0].semver===o)return!0;e=n.includePrerelease?[new r(">=0.0.0-0")]:[new r(">=0.0.0")]}if(1===t.length&&t[0].semver===o){if(n.includePrerelease)return!0;t=[new r(">=0.0.0")]}const i=new Set;let c,h,d,p,f,g,m;for(const t of e)">"===t.operator||">="===t.operator?c=u(c,t,n):"<"===t.operator||"<="===t.operator?h=l(h,t,n):i.add(t.semver);if(i.size>1)return null;if(c&&h){if(d=a(c.semver,h.semver,n),d>0)return null;if(0===d&&(">="!==c.operator||"<="!==h.operator))return null}for(const e of i){if(c&&!s(e,String(c),n))return null;if(h&&!s(e,String(h),n))return null;for(const i of t)if(!s(e,String(i),n))return!1;return!0}let y=!(!h||n.includePrerelease||!h.semver.prerelease.length)&&h.semver,v=!(!c||n.includePrerelease||!c.semver.prerelease.length)&&c.semver;y&&1===y.prerelease.length&&"<"===h.operator&&0===y.prerelease[0]&&(y=!1);for(const e of t){if(m=m||">"===e.operator||">="===e.operator,g=g||"<"===e.operator||"<="===e.operator,c)if(v&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch&&(v=!1),">"===e.operator||">="===e.operator){if(p=u(c,e,n),p===e&&p!==c)return!1}else if(">="===c.operator&&!s(c.semver,String(e),n))return!1;if(h)if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),"<"===e.operator||"<="===e.operator){if(f=l(h,e,n),f===e&&f!==h)return!1}else if("<="===h.operator&&!s(h.semver,String(e),n))return!1;if(!e.operator&&(h||c)&&0!==d)return!1}return!(c&&g&&!h&&0!==d||h&&m&&!c&&0!==d||v||y)},u=(e,t,n)=>{if(!e)return t;const i=a(e.semver,t.semver,n);return i>0?e:i<0||">"===t.operator&&">="===e.operator?t:e},l=(e,t,n)=>{if(!e)return t;const i=a(e.semver,t.semver,n);return i<0?e:i>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,n={})=>{if(e===t)return!0;e=new i(e,n),t=new i(t,n);let r=!1;e:for(const i of e.set){for(const e of t.set){const t=c(i,e,n);if(r=r||null!==t,t)continue e}if(r)return!1}return!0}},8865:(e,t,n)=>{const i=n(6843);e.exports=(e,t)=>new i(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))},6240:(e,t,n)=>{const i=n(6843);e.exports=(e,t)=>{try{return new i(e,t).range||"*"}catch(e){return null}}},6695:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.registerCspellInlineCompletionProviders=void 0;const s=o(n(9496)),a=n(1750),c=o(n(2411)),u=n(1419),l=new Set(["tex","bibtex","latex","latex-expl3","jlweave","rsweave","doctex"]);t.registerCspellInlineCompletionProviders=async function(e){const t=await async function(){const e=await s.languages.getLanguages(),{value:t,byLangId:n}=function(){var e,t;const n="showAutocompleteSuggestions",i=null!==(e=(0,u.inspectConfigByScopeAndKey)(void 0,n).languageIds)&&void 0!==e?e:[],r=null!==(t=(0,u.getSettingFromVSConfig)(n,void 0))&&void 0!==t&&t,o=i.map((e=>[e,(0,u.getSettingFromVSConfig)(n,{languageId:e})]));return{value:r,byLangId:new Map(o)}}();return e.filter((e=>{var i;return null!==(i=n.get(e))&&void 0!==i?i:!l.has(e)&&t}))}();e.push(s.languages.registerCompletionItemProvider(t,h,":"),s.languages.registerCompletionItemProvider(t,h," "),s.languages.registerCompletionItemProvider(t,g," "),s.languages.registerCompletionItemProvider(t,m," "))};const h={provideCompletionItems(e,t){const n=f((0,a.getCSpellDiags)(e.uri),t,1),i=e.lineAt(t).text.substr(0,t.character);if(!/cspell:\s?$/i.test(i))return;const r={words:n.map((t=>e.getText(t.range)))};return p.map((e=>"function"==typeof e?e(r):e)).map(d)},resolveCompletionItem:e=>e};function d(e){const t=new s.CompletionItem(e.label,e.kind||s.CompletionItemKind.Text);return t.insertText=new s.SnippetString(e.insertText),t.documentation=e.description,t.sortText=e.sortText,t.commitCharacters=e.commitCharacters||[" "],t}const p=[{label:"words",insertText:"words",description:"Words to be allowed in the document",sortText:"1",kind:s.CompletionItemKind.Snippet},{label:"ignore words",insertText:"ignore",description:"Words to be ignored in the document",sortText:"2",kind:s.CompletionItemKind.Snippet},{label:"ignoreRegExp",insertText:"ignoreRegExp /${1:expression}/g",description:"Ignore text matching the regular expression."},{label:"disable-next-line",insertText:"disable-next-line",description:"Do not spell check the next line",sortText:"3"},{label:"disable-line",insertText:"disable-line",description:"Do not spell check the current line"},{label:"disable spell checker",insertText:"disable",description:"Disable spell checking from this point further."},{label:"enable spell checker",insertText:"enable",description:"Enable spell checking from this point further."},{label:"dictionaries",insertText:"dictionaries",commitCharacters:[" "],description:"Add dictionaries to be used in this document.",kind:s.CompletionItemKind.Snippet},{label:"locale",insertText:"locale ${1:en}",description:"Set the language locale to be used in this document. (i.e. fr,en)",kind:s.CompletionItemKind.Snippet},{label:"disable compound words",insertText:"disableCompoundWords",description:"Turn OFF Allow Compound Words."},{label:"enable compound words",insertText:"enableCompoundWords",description:"Turn ON Allow Compound Words."}];function f(e,t,n){function i(e){const n=e.range.start;return 1e3*Math.abs(n.line-t.line)+n.character}return[...e].sort(((e,t)=>i(e)-i(t))).slice(0,n)}const g={async provideCompletionItems(e,t){const n=e.lineAt(t).text.substr(0,t.character);if(!/cspell:\s*dictionaries/i.test(n))return;const i=await c.get("client").getConfigurationForDocument(e),r=i.docSettings||i.settings;if(!r)return;const o=new Set(r.dictionaries||[]);return(r.dictionaryDefinitions||[]).map((e=>e.name)).filter((e=>!!e)).filter((e=>!o.has(e))).map((e=>new s.CompletionItem(e,s.CompletionItemKind.Text))).map((e=>(e.commitCharacters=[" "],e)))},resolveCompletionItem:e=>e},m={provideCompletionItems(e,t){const n=e.lineAt(t),i=n.text.substr(0,t.character);if(!/cspell:\s*(words|ignore)/i.test(i))return;const r=new Set(n.text.split(/[\s:.]/)),o=f((0,a.getCSpellDiags)(e.uri).filter((t=>!r.has(e.getText(t.range)))),t,10);return o.length?[...new Set(o.map((t=>e.getText(t.range))))].sort().map((e=>new s.CompletionItem(e,s.CompletionItemKind.Text))).map((e=>(e.commitCharacters=[" "],e))):void 0},resolveCompletionItem:e=>e}},1287:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.CSpellClient=void 0;const s=n(4561),a=n(9496),c=o(n(165)),u=n(165),l=n(6742),h=o(n(2979)),d=n(2979),p=o(n(2187)),f=n(7053),g=n(8422),m=n(4876),y=n(6997),v=["--nolazy","--inspect=60048"],C=l.diagnosticSource,S=u.Trace.Off;class b{constructor(e,t){this.import=new Set,this.disposables=new Set,this.broadcasterOnSpellCheckDocument=(0,f.createBroadcaster)(),this.getConfigurationForDocument=this.factoryGetConfigurationForDocument(),this.cacheGetConfigurationForDocument=new Map;const n=e.asAbsolutePath("packages/_server/dist/main.js"),i=h.getScopedSettingFromVSConfig("enabledLanguageIds",h.Scopes.Workspace);this.allowedSchemas=new Set(h.getScopedSettingFromVSConfig("allowedSchemas",h.Scopes.Workspace)||s.supportedSchemes),s.setOfSupportedSchemes.clear(),this.allowedSchemas.forEach((e=>s.setOfSupportedSchemes.add(e))),this.languageIds=new Set(t.concat(i||[]).concat(p.languageIds));const r=[...this.languageIds],o={documentSelector:[...this.allowedSchemas].map((e=>r.map((t=>({language:t,scheme:e}))))).reduce(((e,t)=>e.concat(t))),diagnosticCollectionName:C,synchronize:{configurationSection:[d.sectionCSpell,"search"]},middleware:{handleDiagnostics(e,t,n){n(e,t)}}};S!==u.Trace.Off&&(o.traceOutputChannel=a.window.createOutputChannel("Trace CSpell"));const c=this.calcServerArgs(),l={execArgv:c},g={execArgv:[...c,...v]},m={run:{module:n,transport:u.TransportKind.ipc,options:l},debug:{module:n,transport:u.TransportKind.ipc,options:g}};this.client=new u.LanguageClient("cspell","Code Spell Checker",m,o),this.client.registerProposedFeatures(),setTimeout((()=>{this.client.trace=S,S!==u.Trace.Off&&this.client.traceOutputChannel.show()}),1e3),this.serverApi=(0,y.createServerApi)(this.client),this.initWhenReady().catch((e=>console.error(e)))}needsStart(){return this.client.needsStart()}needsStop(){return this.client.needsStop()}start(){return this.exposeDisposable(this.client.start())}async isSpellCheckEnabled(e){const{uri:t,languageId:n=""}=e;if(!t||!n)return{uri:t};const i=await this.serverApi.isSpellCheckEnabled({uri:t.toString(),languageId:n});return Object.assign(Object.assign({},i),{uri:t})}async _getConfigurationForDocument(e){const{uri:t,languageId:n}=e||{},i=w(t);return t?this.serverApi.getConfigurationForDocument({uri:t.toString(),languageId:n,workspaceConfig:i}):this.serverApi.getConfigurationForDocument({workspaceConfig:i})}factoryGetConfigurationForDocument(){return e=>{var t;const n=null===(t=null==e?void 0:e.uri)||void 0===t?void 0:t.toString(),i=this.cacheGetConfigurationForDocument.get(n);if(i)return i;const r=this._getConfigurationForDocument(e);return this.cacheGetConfigurationForDocument.set(n,r),r}}notifySettingsChanged(){return this.cacheGetConfigurationForDocument.clear(),setTimeout((()=>this.cacheGetConfigurationForDocument.clear()),250),(0,m.silenceErrors)(this.whenReady((()=>this.serverApi.notifyConfigChange())),"notifySettingsChanged")}registerConfiguration(e){return(0,m.logErrors)(this.whenReady((()=>this.serverApi.registerConfigurationFile(e))),"registerConfiguration")}get diagnostics(){return this.client&&this.client.diagnostics||void 0}triggerSettingsRefresh(){return this.notifySettingsChanged()}async whenReady(e){return await this.client.onReady(),e()}static create(e){return Promise.resolve(a.languages.getLanguages().then((t=>new b(e,t))))}exposeDisposable(e){return this.registerDisposable(e),new a.Disposable((()=>this.disposeOf(e)))}registerDisposable(...e){for(const t of e)this.disposables.add(t)}disposeOf(e){this.disposables.has(e)&&(this.disposables.delete(e),e.dispose())}dispose(){const e=[...this.disposables];this.disposables.clear(),a.Disposable.from(...e).dispose()}calcServerArgs(){return[]}onSpellCheckDocumentNotification(e){return this.broadcasterOnSpellCheckDocument.listen(e)}async requestSpellingSuggestions(e,t,n){const i={textDocument:c.TextDocumentIdentifier.create(e.uri.toString()),range:F(t),context:c.CodeActionContext.create(n.map(k))},r=await(0,y.requestCodeAction)(this.client,i);return r?r.filter(x).map(_):[]}async initWhenReady(){await this.client.onReady(),this.registerHandleNotificationsFromServer(),this.registerHandleOnWorkspaceConfigForDocumentRequest()}registerHandleOnWorkspaceConfigForDocumentRequest(){this.registerDisposable(this.serverApi.onWorkspaceConfigForDocumentRequest(E))}registerHandleNotificationsFromServer(){this.registerDisposable(this.serverApi.onSpellCheckDocument((e=>this.broadcasterOnSpellCheckDocument.send(e))))}}function E(e){const{uri:t}=e;return w(a.Uri.parse(t))}function w(e){var t,n;const i=(0,g.findConicalDocumentScope)(e),r=(0,d.inspectConfigKeys)(i,["words","userWords","ignoreWords"]),o=null===(t=a.workspace.workspaceFile)||void 0===t?void 0:t.toString(),s=i&&(null===(n=a.workspace.getWorkspaceFolder(i))||void 0===n?void 0:n.uri.toString()),c=void 0!==o,u=D(r.userWords,c),l=D(r.words,c),h=D(r.ignoreWords,c);return l.user=u.user,{uri:null==e?void 0:e.toString(),workspaceFile:o,workspaceFolder:s,words:l,ignoreWords:h}}function D(e,t){if(!e)return{};const{globalValue:n,workspaceValue:i,workspaceFolderValue:r}=e;return{user:void 0!==n||void 0,workspace:void 0!==i||void 0,folder:t&&(void 0!==r||void 0)}}function x(e){return c.CodeAction.is(e)}function _(e){const t=void 0!==e.kind&&a.CodeActionKind.Empty.append(e.kind)||void 0,n=new a.CodeAction(e.title,t);return n.command=e.command&&e.command,n}t.CSpellClient=b;const T={[a.DiagnosticSeverity.Error]:c.DiagnosticSeverity.Error,[a.DiagnosticSeverity.Warning]:c.DiagnosticSeverity.Warning,[a.DiagnosticSeverity.Information]:c.DiagnosticSeverity.Information,[a.DiagnosticSeverity.Hint]:c.DiagnosticSeverity.Hint};function k(e){return c.Diagnostic.create(F(e.range),e.message,T[e.severity],void 0,e.source)}function F(e){const{start:t,end:n}=e;return c.Range.create(A(t),A(n))}function A(e){const{line:t,character:n}=e;return c.Position.create(t,n)}},9540:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeLocale=void 0,r(n(1287),t);var o=n(6997);Object.defineProperty(t,"normalizeLocale",{enumerable:!0,get:function(){return o.normalizeLocale}})},6997:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(5972),t),r(n(607),t)},5972:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createServerApi=t.requestCodeAction=void 0;const i=n(165);t.requestCodeAction=async function(e,t){const n=i.CodeActionRequest.type;return await e.sendRequest(n,t)},t.createServerApi=function(e){async function t(t,n){await e.onReady();const r=new i.RequestType(t);return await e.sendRequest(r,n)}function n(t,...n){e.sendNotification(t,n)}return{isSpellCheckEnabled:e=>t("isSpellCheckEnabled",e),getConfigurationForDocument:e=>t("getConfigurationForDocument",e),splitTextIntoWords:e=>t("splitTextIntoWords",e),spellingSuggestions:e=>t("spellingSuggestions",e),notifyConfigChange:(...e)=>n("notifyConfigChange",...e),registerConfigurationFile:(...e)=>n("registerConfigurationFile",...e),onSpellCheckDocument:t=>function(t,n){const r=new i.NotificationType("onSpellCheckDocument");return e.onNotification(r,n)}(0,t),onWorkspaceConfigForDocumentRequest:t=>function(t,n){const r=new i.RequestType("onWorkspaceConfigForDocumentRequest");return e.onRequest(r,n)}(0,t)}}},607:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeToLocales=t.normalizeLocale=t.extractScope=t.extractCustomDictionaries=t.extractActiveDictionaries=t.extractDictionariesGroupByName=t.extractDictionariesByLocaleLanguageSettings=t.extractDictionariesByLocale=t.extractLocalesFromLanguageSettings=t.extractLocales=t.extractLanguage=void 0;const s=n(9841),a=o(n(9759)),c=n(9759);function u(e=[]){return g(e.map((e=>e.locale||e.local||"")).map(f).join(","))}function l(e=[]){const t=new Map;return e.map((({local:e,locale:t,dictionaries:n=[]})=>({locale:f(t||e),dictionaries:n}))).filter((e=>!!e.locale)).filter((e=>e.dictionaries.length>0)).forEach((e=>{e.locale.split(",").forEach((n=>{t.set(n,(t.get(n)||[]).concat(e.dictionaries).filter(a.uniqueFilter()))}))})),t}function h(e){var t;return new Map((null===(t=e.dictionaryDefinitions)||void 0===t?void 0:t.map((e=>[e.name,e])))||[])}function d(e){const t=h(e);return(e.dictionaries||[]).map((e=>t.get(e))).filter(c.isDefined)}function p(e){var t;return null!==(t=e.addWords)&&void 0!==t&&t}function f(e=""){return Array.isArray(e)&&(e=e.join(",")),g(e).join(",")}function g(e=""){return e.replace(/[|;\s]/g,",").replace(/[*]/g,"").split(",").map(s.normalizeCode).map((e=>e.trim())).filter((e=>!!e)).filter(a.uniqueFilter())}t.extractLanguage=function(e){return e&&e.language&&g(e.language)||void 0},t.extractLocales=function(e={}){return u(e.languageSettings)},t.extractLocalesFromLanguageSettings=u,t.extractDictionariesByLocale=function(e={}){return l(e.languageSettings)},t.extractDictionariesByLocaleLanguageSettings=l,t.extractDictionariesGroupByName=h,t.extractActiveDictionaries=d,t.extractCustomDictionaries=function(e){return d(e).filter(p).filter((e=>e.addWords))},t.extractScope=function(e){return new Set("string"==typeof e.scope?[e.scope]:e.scope||[])},t.normalizeLocale=f,t.normalizeToLocales=g},8768:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.__testing__=t.disableCurrentLanguage=t.enableCurrentLanguage=t.enableDisableLocaleLegacy=t.enableDisableLocale=t.enableDisableLanguageId=t.disableLanguageIdCmd=t.enableLanguageIdCmd=t.addWordToUserDictionary=t.addWordToWorkspaceDictionary=t.registerCommands=void 0;const s=n(9496),a=o(n(2411)),c=n(1750),u=o(n(2979)),l=n(2979),h=n(5026),d=n(5023),p=n(5076),f=n(8506),g=n(3047),m=n(94),y=n(6225),v=n(4876),C=n(5294),S=n(8781),b=n(2511),E=n(7469),w={"cSpell.addWordsToConfigFileFromServer":(e,t,n)=>$(e,(0,h.createCSpellConfigRepository)((0,b.toUri)(n.uri),n.name)),"cSpell.addWordsToDictionaryFileFromServer":(e,t,n)=>function(e,t){return(0,v.handleErrors)(a.get("dictionaryHelper").addWordToDictionary(e,t),"addWordsToDictionaryTarget")}(e,(0,g.createDictionaryTargetForFile)((0,b.toUri)(n.uri),n.name)),"cSpell.addWordsToVSCodeSettingsFromServer":(e,t,n)=>{const i=(0,y.dictionaryScopeToConfigurationTarget)(n);return $(e,(0,h.createVSCodeConfigRepository)(i,(0,b.toUri)(t),!1))}},D=function(e,t){return async function(){var n,i;const r=null===(n=s.window.activeTextEditor)||void 0===n?void 0:n.document,o=null===(i=s.window.activeTextEditor)||void 0===i?void 0:i.selection,a=o&&(null==r?void 0:r.getWordRangeAtPosition(o.active)),u=r?(0,c.getCSpellDiags)(r.uri):void 0,l=(0,f.normalizeWords)((0,c.extractMatchingDiagTexts)(r,o,u)||[]);if(l.length){const n=(null==o?void 0:o.anchor.isEqual(o.active))&&1===l.length?l:await se(l.sort(oe),{title:e,placeHolder:"Choose words"});if(!n)return;return t(n.join(" "),null==r?void 0:r.uri)}if(!(a&&o&&r&&r.getText(a))){const n=await s.window.showInputBox({title:e,prompt:e});if(!n)return;return t(n,null==r?void 0:r.uri)}const h=o.contains(a)?r.getText(o):r.getText(a),d=(0,f.normalizeWords)(h),p=d.length>1?await se(d.sort(oe),{title:e,placeHolder:"Choose words"}):[await s.window.showInputBox({title:e,prompt:e,value:d[0]})];if(p)return t(p.join(" "),null==r?void 0:r.uri)}},x=(e,t=!1)=>ne(e,void 0,void 0,t),_=D("Add Words to Folder Dictionary",(function(e,t){return H(e,p.dictionaryTargetBestMatchesFolder,t)})),T=D("Add Words to Workspace Dictionaries",z),k=D("Add Words to User Dictionary",V),F=D("Add Words to Folder Settings",ue(H,p.dictionaryTargetBestMatchesVSCodeFolder)),A=D("Add Words to Workspace Settings",ue(H,p.dictionaryTargetBestMatchesVSCodeWorkspace)),R=D("Add Words to User Settings",ue(H,p.dictionaryTargetBestMatchesVSCodeUser)),O=D("Remove Words from Folder Dictionary",(function(e,t){return J(e,l.ConfigurationTarget.WorkspaceFolder,t)})),P=D("Remove Words from Workspace Dictionaries",(function(e,t){return J(e,l.ConfigurationTarget.Workspace,t)})),M=D("Remove Words from Global Dictionary",(function(e){return J(e,l.ConfigurationTarget.Global,void 0)})),N=D("Ignore Words",ue(G,void 0)),I=D("Ignore Words in Folder Settings",ue(G,l.ConfigurationTarget.WorkspaceFolder)),L=D("Ignore Words in Workspace Settings",ue(G,l.ConfigurationTarget.Workspace)),j=D("Ignore Words in User Settings",ue(G,l.ConfigurationTarget.Global)),B=D("Add Words to cSpell Configuration",ue(H,p.dictionaryTargetBestMatchesCSpell)),q={"cSpell.addWordToDictionary":D("Add Words to Dictionary",ue(H,p.dictionaryTargetBestMatches)),"cSpell.addWordToFolderDictionary":_,"cSpell.addWordToWorkspaceDictionary":T,"cSpell.addWordToUserDictionary":k,"cSpell.addWordToFolderSettings":F,"cSpell.addWordToWorkspaceSettings":A,"cSpell.addWordToUserSettings":R,"cSpell.removeWordFromFolderDictionary":O,"cSpell.removeWordFromWorkspaceDictionary":P,"cSpell.removeWordFromUserDictionary":M,"cSpell.addIgnoreWord":N,"cSpell.addIgnoreWordsToFolder":I,"cSpell.addIgnoreWordsToWorkspace":L,"cSpell.addIgnoreWordsToUser":j,"cSpell.suggestSpellingCorrections":ce,"cSpell.goToNextSpellingIssue":()=>le("next",!1),"cSpell.goToPreviousSpellingIssue":()=>le("previous",!1),"cSpell.goToNextSpellingIssueAndSuggest":()=>le("next",!0),"cSpell.goToPreviousSpellingIssueAndSuggest":()=>le("previous",!0),"cSpell.enableLanguage":X,"cSpell.disableLanguage":Y,"cSpell.enableForGlobal":async()=>(0,l.setEnableSpellChecking)(await x(l.ConfigurationTarget.Global),!0),"cSpell.disableForGlobal":async()=>(0,l.setEnableSpellChecking)(await x(l.ConfigurationTarget.Global),!1),"cSpell.toggleEnableForGlobal":async()=>(0,l.toggleEnableSpellChecker)(await x(l.ConfigurationTarget.Global,!0)),"cSpell.enableForWorkspace":async()=>(0,l.setEnableSpellChecking)(await x(l.ConfigurationTarget.Workspace),!0),"cSpell.disableForWorkspace":async()=>(0,l.setEnableSpellChecking)(await x(l.ConfigurationTarget.Workspace),!1),"cSpell.toggleEnableForWorkspace":async()=>(0,l.toggleEnableSpellChecker)(await x(l.ConfigurationTarget.Workspace)),"cSpell.toggleEnableSpellChecker":async()=>(0,l.toggleEnableSpellChecker)(await x(l.ConfigurationTarget.Global)),"cSpell.enableCurrentLanguage":ee,"cSpell.disableCurrentLanguage":te,"cSpell.editText":async function(e,t,n){const i=a.get("client").client,r=s.window.activeTextEditor;if(r&&r.document.uri.toString()===e){if(r.document.version!==t)return U(s.window.showInformationMessage("Spelling changes are outdated and cannot be applied to the document."),"handlerApplyTextEdits");if(s.workspace.getConfiguration(u.sectionCSpell,r.document).get(W)&&1===n.length){console.log("fixSpellingWithRenameProvider Enabled");const e=n[0],t=i.protocol2CodeConverter.asRange(e.range);if(await async function(e,t,n){if(t.start.line!==t.end.line)return!1;const i=e.getWordRangeAtPosition(t.start);if(!i||!i.contains(t))return!1;const r=i.start.character,o=t.start.character-r,a=t.end.character-r,c=e.getText(i),u=[c.slice(0,o),n,c.slice(a)].join("");try{const n=await s.commands.executeCommand("vscode.executeDocumentRenameProvider",e.uri,t.start,u).then((e=>e),(e=>(console.log(e),!1)));return!!n&&n.size>0&&await s.workspace.applyEdit(n)}catch(e){return!1}}(r.document,t,e.newText))return}return r.edit((e=>{for(const t of n)e.replace(i.protocol2CodeConverter.asRange(t.range),t.newText)})).then((e=>e?void 0:U(s.window.showErrorMessage("Failed to apply spelling changes to the document."),"handlerApplyTextEdits2")))}},"cSpell.logPerfTimeline":function(){C.performance.getEntries().forEach((e=>{console.log(e.name,(0,C.toMilliseconds)(e.startTime),e.duration)}))},"cSpell.addWordToCSpellConfig":B,"cSpell.addIssuesToDictionary":function(){return(0,v.handleErrors)(a.get("dictionaryHelper").addIssuesToDictionary(),"addAllIssuesFromDocument")},"cSpell.createCustomDictionary":async function(){var e;const t=await ie(null===(e=s.window.activeTextEditor)||void 0===e?void 0:e.document),n=await(0,p.quickPickTarget)(t);if(!n)return;const i=(0,d.configTargetToConfigRepo)(n);i&&await a.get("dictionaryHelper").createCustomDictionary(i)},"cSpell.createCSpellConfig":async function(){var e;const t=await(0,l.createConfigFileRelativeToDocumentUri)(null===(e=s.window.activeTextEditor)||void 0===e?void 0:e.document.uri);if(t){const e=await s.window.showTextDocument(t);(0,S.scrollToText)(e,'"cspell":')}},"cSpell.openFileAtLine":async function(e,t){e=(0,b.toUri)(e);const n=t&&{selection:he(t)}||void 0;await s.window.showTextDocument(e,n)}};function U(e,t,n=v.ignoreError){const i=Promise.resolve(e).then((()=>{}));return(0,v.handleErrors)(i,t,n)}const W="fixSpellingWithRenameProvider";function $(e,t){return(0,v.handleErrors)(a.get("dictionaryHelper").addWordsToConfigRep(e,t),"addWordsToConfig")}function K(e,t){return s.commands.registerCommand(e,(0,v.catchErrors)(t,`Register command: ${e}`))}function z(e,t){return console.log("addWordToWorkspaceDictionary %o",arguments),H(e,p.dictionaryTargetBestMatchesWorkspace,t)}function V(e){return H(e,p.dictionaryTargetBestMatchesUser,void 0)}function H(e,t,n){return(0,v.handleErrors)(function(e,t,n){return n=(0,b.toUri)(n),a.get("dictionaryHelper").addWordsToTargets(e,t,n)}(e,t,n),"addWordToTarget")}function G(e,t,n){return(0,v.handleErrors)(async function(e,t,n){n=(0,b.toUri)(n);const i=await re(n),r=t?i.filter((e=>e.scope===(0,y.configurationTargetToDictionaryScope)(t))):i;return u.addIgnoreWordsToSettings(r,e)}(e,t,n),ae("addIgnoreWordsToTarget",void 0,n))}function J(e,t,n){return(0,v.handleErrors)(function(e,t,n){n=(0,b.toUri)(n);const i=(0,p.createClientConfigTargetVSCode)(t,n,void 0);return a.get("dictionaryHelper").removeWordsFromTargets(e,[i],n)}(e,t,n),ae("removeWordFromTarget",t,n))}function X(e,t){return Q(e,(0,b.toUri)(t),void 0,!0)}function Y(e,t){return Q(e,(0,b.toUri)(t),void 0,!1)}function Q(e,t,n,i){return(0,v.handleErrors)((async()=>{const r=await(n?async function(e,t,n){const i=await ne(e,t,void 0),{targets:r,scopes:o}=i,s=new Set(o);return r.filter((e=>s.has(e.scope)))}(n,t):re(t));return u.enableLanguageIdForTarget(e,i,r)}),ae(`enableDisableLanguageId enable: ${i}`,n,t))}function Z(e,t,n,i,r){return(0,v.handleErrors)((async()=>{const{targets:o,scopes:s}=await ne(n||l.ConfigurationTarget.Global,t,i);return u.enableLocaleForTarget(e,r,o,s)}),ae(`enableDisableLocale enable: ${r}`,n,t))}function ee(){return(0,v.handleErrors)((async()=>{var e;const t=null===(e=s.window.activeTextEditor)||void 0===e?void 0:e.document;if(!t)return;const n=await ie(t);return u.enableLanguageId(n,t.languageId)}),"enableCurrentLanguage")}function te(){return(0,v.handleErrors)((async()=>{var e;const t=null===(e=s.window.activeTextEditor)||void 0===e?void 0:e.document;if(!t)return;const n=await ie(t);return u.disableLanguageId(n,t.languageId)}),"disableCurrentLanguage")}async function ne(e,t,n,i){var r;const o=i?[(0,y.configurationTargetToClientConfigScope)(e)]:(0,y.configurationTargetToClientConfigScopeInfluenceRange)(e),a=(0,p.createConfigTargetMatchPattern)(p.matchKindAll,p.matchScopeAll,{dictionary:!1});return t=(0,b.toUri)(t),{targets:(await(t?re(t,a):ie(null===(r=s.window.activeTextEditor)||void 0===r?void 0:r.document,a))).map((e=>"vscode"===e.kind?Object.assign(Object.assign({},e),{configScope:n}):e)),scopes:o}}async function ie(e,t=p.patternMatchNoDictionaries){const{uri:n,languageId:i}=e||{},r=(await a.get("client").getConfigurationForDocument({uri:n,languageId:i})).configTargets.map(m.mapConfigTargetToClientConfigTarget);return(0,p.filterClientConfigTargets)(r,t)}async function re(e,t=p.patternMatchNoDictionaries){var n;return ie((e=(0,b.toUri)(e))?await async function(e){const t=(0,E.findMatchingDocument)(e);return t||((await s.workspace.fs.stat(e)).type!==s.FileType.File?{uri:e}:await s.workspace.openTextDocument(e))}(e):null===(n=s.window.activeTextEditor)||void 0===n?void 0:n.document,t)}t.registerCommands=function(){return[...Object.entries(q).map((([e,t])=>K(e,t))),...Object.entries(w).map((([e,t])=>K(e,t)))]},t.addWordToWorkspaceDictionary=z,t.addWordToUserDictionary=V,t.enableLanguageIdCmd=X,t.disableLanguageIdCmd=Y,t.enableDisableLanguageId=Q,t.enableDisableLocale=Z,t.enableDisableLocaleLegacy=function(e,t,n){const i="boolean"==typeof e?e?l.ConfigurationTarget.Global:l.ConfigurationTarget.Workspace:e,r=(0,l.normalizeTarget)(i);return Z(t,r.uri,r.target,r.configScope,n)},t.enableCurrentLanguage=ee,t.disableCurrentLanguage=te;const oe=(new Intl.Collator).compare;async function se(e,t){if(e.length<=1){const n=await s.window.showInputBox(Object.assign(Object.assign({},t),{value:e[0]}));if(!n)return;return[n]}const n=e.map((e=>({label:e,picked:!0}))),i=await s.window.showQuickPick(n,Object.assign(Object.assign({},t),{canPickMany:!0}));return null==i?void 0:i.map((e=>e.label))}function ae(e,t,n){const i=t?(0,y.configurationTargetToDictionaryScope)(t):"";return i?`${e} ${i} ${(0,b.toUri)(n)}`:`${e} ${(0,b.toUri)(n)}`}async function ce(){var e,t;const n=null===(e=s.window.activeTextEditor)||void 0===e?void 0:e.document,i=null===(t=s.window.activeTextEditor)||void 0===t?void 0:t.selection,r=i&&(null==n?void 0:n.getWordRangeAtPosition(i.active)),o=n?(0,c.getCSpellDiags)(n.uri):void 0,u=(0,c.extractMatchingDiagRanges)(n,i,o),h=(null==u?void 0:u[0])||r,d=h&&(null==o?void 0:o.filter((e=>!!e.range.intersection(h))));if(!(n&&i&&h&&d))return U(s.window.showInformationMessage("Nothing to suggest."),"actionSuggestSpellingCorrections");if("quickFix"===(0,l.getSettingFromVSConfig)(l.ConfigFields.suggestionMenuType,n))return await s.commands.executeCommand("editor.action.quickFix");const p=await a.get("client").requestSpellingSuggestions(n,h,d);if(!p||!p.length)return U(s.window.showInformationMessage(`No Suggestions Found for ${n.getText(h)}`),"actionSuggestSpellingCorrections");const f=p.map((e=>({label:e.title,_action:e}))),g=await s.window.showQuickPick(f);if(g&&g._action.command){const{command:e,arguments:t=[]}=g._action.command;s.commands.executeCommand(e,...t)}}function ue(e,t){return(n,i)=>e(n,t,i)}async function le(e,t){const n=s.window.activeTextEditor;if(!n)return;const i=n.document,r=n.selection,o=i?(0,c.getCSpellDiags)(i.uri):void 0,a=o?"next"===e?function(e,t){return e.filter((e=>{var n;return null===(n=e.range)||void 0===n?void 0:n.start.isAfter(t.end)})).concat(e[0])[0]}(o,r):function(e,t){return[e[e.length-1]].concat(e.filter((e=>{var n;return null===(n=e.range)||void 0===n?void 0:n.end.isBefore(t.start)}))).pop()}(o,r):void 0,u=null==a?void 0:a.range;return i&&r&&u&&a?(n.revealRange(u,s.TextEditorRevealType.InCenterIfOutsideViewport),n.selection=new s.Selection(u.start,u.end),t?ce():void 0):U(s.window.showInformationMessage("No issues found in this document."),"actionJumpToSpellingError")}function he(e){if(void 0===e)return;e="string"==typeof e?Number.parseInt(e):e;const t=new s.Position(e-1,0);return new s.Range(t,t)}t.__testing__={commandHandlers:q}},6742:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.diagnosticSource=t.extensionId=void 0,t.extensionId="cSpell",t.diagnosticSource=t.extensionId},6677:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.updateDocumentRelatedContext=void 0;const i=n(9496),r=n(6742),o=n(1750),s=n(2511),a=r.extensionId;function*c(e,t){"object"!=typeof t&&(yield[e,t]);for(const[n,i]of Object.entries(t))yield*c(`${e}.${n}`,i)}const u=new Map,l=Object.freeze({usesConfigFile:!1,usesCustomDictionary:!1,hasIssues:!1,showCreateConfig:!1,showCreateDictionary:!1}),h=Object.freeze({addWordToFolderDictionary:!1,addWordToWorkspaceDictionary:!1,addWordToUserDictionary:!1,addWordToFolderSettings:!1,addWordToWorkspaceSettings:!1,addWordToUserSettings:!1,addWordToDictionary:!1,addWordToCSpellConfig:!1,addIssuesToDictionary:!1,showSuggestions:!1,createCustomDictionary:!1,createCSpellConfig:!1,addIgnoreWord:!1});async function d(e){const t=[...c(a,e)].filter((([e,t])=>t!==u.get(e))),n=t.map((([e,t])=>i.commands.executeCommand("setContext",e,t)));t.forEach((([e,t])=>u.set(e,t))),await Promise.all(n)}const p=new WeakMap;async function f(e,t){var n;const r={documentConfigContext:Object.assign({},l),editorMenuContext:Object.assign({},h)},a=e.getConfigurationForDocument(t),c=(0,o.getCSpellDiags)(t.uri),u=await a,{agg:p,matrix:f,configFoundInWorkspace:g}=function(e){const t={},n={vscode:{},cspell:{},dictionary:{}};let r=!1;for(const o of e)t[o.kind]=(t[o.kind]||0)+1,t[o.scope]=(t[o.scope]||0)+1,n[o.kind][o.scope]=(n[o.kind][o.scope]||0)+1,r=r||"cspell"===o.kind&&!!i.workspace.getWorkspaceFolder((0,s.toUri)(o.configUri));return{agg:t,matrix:n,configFoundInWorkspace:r}}(u.configTargets),m=(p.dictionary||0)-(f.dictionary.user||0),y=!!p.cspell,v=m>0,C=c.length>0,S=c.length>1,b=!g||!p.cspell,E=!v,w=!!f.vscode.workspace,D=!!f.vscode.folder;r.documentConfigContext={usesConfigFile:y,usesCustomDictionary:v,hasIssues:C,showCreateConfig:b,showCreateDictionary:E};const x=!!(null===(n=u.settings)||void 0===n?void 0:n.showCommandsInEditorContextMenu);r.editorMenuContext.addWordToFolderDictionary=x&&C&&!!f.dictionary.folder,r.editorMenuContext.addWordToWorkspaceDictionary=x&&C&&!!f.dictionary.workspace,r.editorMenuContext.addWordToUserDictionary=x&&C&&!!f.dictionary.user,r.editorMenuContext.addWordToFolderSettings=x&&C&&D,r.editorMenuContext.addWordToWorkspaceSettings=x&&C&&w,r.editorMenuContext.addWordToUserSettings=x&&C&&!f.dictionary.user,r.editorMenuContext.addWordToDictionary=x&&C&&!!f.dictionary.unknown,r.editorMenuContext.addWordToCSpellConfig=x&&C&&y&&!v,r.editorMenuContext.addIssuesToDictionary=x&&C&&S,r.editorMenuContext.createCustomDictionary=x&&E,r.editorMenuContext.createCSpellConfig=x&&b,r.editorMenuContext.addIgnoreWord=x&&C,r.editorMenuContext.showSuggestions=x&&C,await d(r)}t.updateDocumentRelatedContext=async function e(t,n){const i={documentConfigContext:Object.assign({},l),editorMenuContext:Object.assign({},h)};if(!n)return void await d(i);const r=n,o=p.get(r);if(o)return o.stale=!o.pending,o.value;const s={value:f(t,r),pending:!0,stale:!1};function a(){p.delete(r),s.stale&&e(t,r)}return s.value.finally((()=>{s.pending=!1,setTimeout(a,1e3)})),p.set(r,s),s.value}},2411:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.__testing__=t.set=t.get=t.register=t.getDependencies=void 0;const n=Object.keys({name:void 0,extensionContext:void 0,client:void 0,dictionaryHelper:void 0}),i={};function r(e){Object.defineProperty(i,e,{get:function(){throw new Error(`Missing Dependency: ${e}`)},configurable:!0,enumerable:!0})}function o(){n.forEach(r)}t.getDependencies=function(){return i},t.register=function(e,t){Object.defineProperty(i,e,{get:function(){const n=t();return Object.defineProperty(this,e,{value:n}),n}})},t.get=function(e){if(void 0===Object.getOwnPropertyDescriptor(i,e))throw new Error(`Missing Dependency Resolver: '${e}'`);return i[e]},t.set=function(e,t){Object.defineProperty(i,e,{value:t,configurable:!0,enumerable:!0})},o(),t.__testing__={init:o}},1750:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.__testing__=t.extractMatchingDiagRanges=t.extractMatchingDiagTexts=t.extractMatchingDiagText=t.getCSpellDiags=void 0;const i=n(9496),r=n(6742),o=n(8506),s=n(9759);function a(e,t,n){if(!e||!n)return;const i=c(e,t,n);return null==i?void 0:i.map((t=>e.getText(t)))}function c(e,t,n){if(!e||!n)return;const i=t&&e.getText(t);return n.map((e=>e.range)).map((e=>u(i,t,e))).filter(s.isDefined)}function u(e,t,n){if(!t||void 0===e||n.contains(t))return n;const i=t.intersection(n);return i&&!i.isEmpty?(0,o.isWordLike)(e)?t:n:void 0}t.getCSpellDiags=function(e){return(e&&i.languages.getDiagnostics(e)||[]).filter((e=>e.source===r.diagnosticSource))},t.extractMatchingDiagText=function(e,t,n){var i;if(e&&t&&n)return null===(i=a(e,t,n))||void 0===i?void 0:i.filter((0,s.uniqueFilter)()).join(" ")},t.extractMatchingDiagTexts=a,t.extractMatchingDiagRanges=c,t.__testing__={determineWordRangeToAddToDictionaryFromSelection:u,extractMatchingDiagTexts:a}},6574:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.activate=void 0;const s=o(n(9496)),a=n(355),c=n(6695),u=n(9540),l=o(n(8768)),h=n(6677),d=o(n(2411)),p=o(n(7518)),f=o(n(3981)),g=o(n(8335)),m=o(n(2979)),y=n(2979),v=n(4196),C=n(4876),S=n(5294);S.performance.mark("cspell_done_import"),g.init(),t.activate=async function(e){S.performance.mark("cspell_activate_start");const t=await u.CSpellClient.create(e);e.subscriptions.push(t),d.set("client",t),d.set("extensionContext",e),p.activate(e,t),e.subscriptions.push(t.start());const n=(0,v.initStatusBar)(e,t);function i(e=0){setTimeout(r,e)}function r(){(0,C.silenceErrors)(t.triggerSettingsRefresh(),"triggerGetSettings").then((()=>{f.update(),n.refresh()}))}function o(){i()}const g=s.workspace.createFileSystemWatcher(m.configFileLocationGlob);function b(e){for(const t of e)if(m.configFilesToWatch.has(a.Utils.basename(t))){i();break}}e.subscriptions.push(g,g.onDidChange(o),g.onDidCreate(o),g.onDidDelete(o),s.workspace.onDidSaveTextDocument((function(e){b([e.uri])})),s.workspace.onDidRenameFiles((function(e){b(e.files.map((e=>e.newUri)).concat(e.files.map((e=>e.oldUri))))})),s.workspace.onDidDeleteFiles((function(e){b(e.files)})),s.workspace.onDidCreateFiles((function(e){b(e.files)})),s.workspace.onDidOpenTextDocument((function(e){b([e.uri])})),s.window.onDidChangeActiveTextEditor((function(e){(0,C.logErrors)((0,h.updateDocumentRelatedContext)(t,null==e?void 0:e.document),"handleOnDidChangeActiveTextEditor")})),s.window.onDidChangeVisibleTextEditors((function(e){var n;(0,C.logErrors)((0,h.updateDocumentRelatedContext)(t,null===(n=s.window.activeTextEditor)||void 0===n?void 0:n.document),"handleOnDidChangeVisibleTextEditors")})),s.languages.onDidChangeDiagnostics((function(e){const n=s.window.activeTextEditor;n&&new Set(e.uris.map((e=>e.toString()))).has(n.document.uri.toString())&&setTimeout((()=>{(0,C.logErrors)((0,h.updateDocumentRelatedContext)(t,n.document),"handleOnDidChangeDiagnostics")}),10)})),...l.registerCommands(),s.workspace.onDidChangeConfiguration((function(e){e.affectsConfiguration(y.sectionCSpell)&&i()}))),(0,c.registerCspellInlineCompletionProviders)(e.subscriptions).catch((()=>{})),f.activate(e,t);const E={enableLocale:(e,t)=>l.enableDisableLocaleLegacy(e,t,!0),disableLocale:(e,t)=>l.enableDisableLocaleLegacy(e,t,!1)},w={registerConfig:function(e){t.registerConfiguration(e)},triggerGetSettings:i,enableLanguageId:l.enableLanguageIdCmd,disableLanguageId:l.disableLanguageIdCmd,enableCurrentLanguage:l.enableCurrentLanguage,disableCurrentLanguage:l.disableCurrentLanguage,addWordToUserDictionary:l.addWordToUserDictionary,addWordToWorkspaceDictionary:l.addWordToWorkspaceDictionary,enableLocale:E.enableLocale,disableLocale:E.disableLocale,updateSettings:()=>!1,cSpellClient:()=>t,getConfigurationForDocument:e=>t.getConfigurationForDocument(e),enableLocal:E.enableLocale,disableLocal:E.disableLocale};return S.performance.mark("cspell_activate_end"),S.performance.measure("cspell_activation","cspell_activate_start","cspell_activate_end"),w},S.performance.mark("cspell_done_load")},3162:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.RegexpOutlineItem=t.RegexpOutlineProvider=void 0;const s=o(n(9496));function a(e){const t={treeItem:new c(e)};return t.children=function(e){const t=e.treeItem.pattern;if(t.defs.length<2)return;const n=t.name;return t.defs.map(((e,t)=>({name:`${n}.${t}`,defs:[e]}))).map(a)}(t),t}t.RegexpOutlineProvider=class{constructor(){this._onDidChangeTreeData=new s.EventEmitter,this.onDidChangeTreeData=this._onDidChangeTreeData.event}refresh(e){this.outline=e?function(e){const t={treeItem:new s.TreeItem("root",s.TreeItemCollapsibleState.Expanded)};return t.children=[...e.entries()].map((e=>function(e,t,n){return{parent:e,treeItem:new s.TreeItem(t,s.TreeItemCollapsibleState.Expanded),children:n.map(a)}}(t,...e))),t}(e):void 0,this._onDidChangeTreeData.fire(void 0)}getChildren(e){var t;return e?Promise.resolve(e.children):Promise.resolve(null===(t=this.outline)||void 0===t?void 0:t.children)}getTreeItem(e){return e.treeItem}getParent(e){return e.parent}};class c extends s.TreeItem{constructor(e){var t,n;super((n=e.name).length<=50?n:n.substr(0,49)+"…",e.defs.length>1?s.TreeItemCollapsibleState.Expanded:s.TreeItemCollapsibleState.None),this.pattern=e,this.pattern=e;const{timeMs:i,errorMsg:r,toolTip:o,count:a}=function(e){const t=e.defs.map((e=>e.elapsedTime)).reduce(((e,t)=>e+t),0).toFixed(2),n=e.defs.map((e=>e.errorMessage)).filter((e=>!!e)).join(", "),i=e.defs.map((e=>e.regexp.toString()));return{timeMs:t,errorMsg:n,toolTip:i.length>1?"Multi Pattern":i.join(""),count:e.defs.map((e=>e.matches.length)).reduce(((e,t)=>e+t),0)}}(e),c=[`${i}ms`,`(${a})`,r?" "+r:""].filter((e=>!!e));this.description=c.join(" "),this.tooltip=o,this.command={command:"cSpellRegExpTester.selectRegExp",arguments:[null===(t=e.defs[0])||void 0===t?void 0:t.regexp],title:"Select RegExp"},this.contextValue="regexp"}}t.RegexpOutlineItem=c},3735:(e,t)=>{"use strict";function n(e){return e instanceof RegExp}Object.defineProperty(t,"__esModule",{value:!0}),t.isRegExp=t.toRegExp=void 0,t.toRegExp=function(e,t){if(n(e))return e;const i=e.match(/^\/(.*)\/([gimsuy]*)$/);return i?new RegExp(i[1],i[2]||void 0):new RegExp(e,t)},t.isRegExp=n},6391:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.activate=void 0;const s=o(n(9496)),a=n(6742),c=n(4876),u=n(3735),l=n(7640),h=n(3162),d=n(3837);function p(e){const{name:t,pattern:n}=e;function i(e){return e.toString()}return{name:t,pattern:(r=n,Array.isArray(r)?r.map(i):i(r))};var r}function f(){const e=s.workspace.getConfiguration(a.extensionId);return!!(null==e?void 0:e.get("experimental.enableRegexpView"))}t.activate=function(e,t){const n=new Set,i=new h.RegexpOutlineProvider;let r,o;s.window.registerTreeDataProvider("cSpellRegExpView",i);const a=s.window.createTextEditorDecorationType({overviewRulerColor:"green",overviewRulerLane:s.OverviewRulerLane.Center,light:{backgroundColor:"#C0C0FFCC"},dark:{backgroundColor:"#347890CC"}});let g,m=f(),y=m?s.window.activeTextEditor:void 0,v=[];const C=(0,c.catchErrors)((async function(){var n,o;if(!m||!y)return void b();const c=y.document,u=c.version,h=await t.getConfigurationForDocument(c),d=function(e,t){var n,i,r;const o=[];return t.forEach((e=>o.push({category:"User Patterns",pattern:e}))),null===(n=null==e?void 0:e.includeRegExpList)||void 0===n||n.forEach((e=>o.push({category:"Include Regexp List",pattern:e.toString()}))),null===(i=null==e?void 0:e.ignoreRegExpList)||void 0===i||i.forEach((e=>o.push({category:"Exclude Regexp List",pattern:e.toString()}))),null===(r=null==e?void 0:e.patterns)||void 0===r||r.forEach((e=>o.push({category:"Patterns",pattern:p(e)}))),o}(h.docSettings,v),f=d.map((e=>e.pattern)),C=g?0:-1,E=await function(){r||(r=l.PatternMatcherClient.create(e));const t=r;return t.onReady().then((()=>t))}(),w={patterns:(null===(n=h.docSettings)||void 0===n?void 0:n.patterns)||(null===(o=h.settings)||void 0===o?void 0:o.patterns)||[]};await E.matchPatternsInDocument(c,f,w).then((e=>{var t;if(!s.window.activeTextEditor||c.version!==u||(null===(t=s.window.activeTextEditor)||void 0===t?void 0:t.document)!=c)return;if(e.message)return;const n=e&&new Map;null==e||e.patternMatches.forEach(((e,t)=>{const i=d[t].category,r=n.get(i)||[];r.push(e),n.set(i,r)})),i.refresh(n);const r=s.window.activeTextEditor,o=e.patternMatches.filter(((e,t)=>t===C)).map(S).reduce(((e,t)=>e.concat(t)),[]).map((e=>{const{range:t,message:n}=e,i=r.document.positionAt(t[0]),o=r.document.positionAt(t[1]);return{range:new s.Range(i,o),hoverMessage:n}}));r.setDecorations(a,o)}))}),"updateDecorations",c.showError);function S(e){const{name:t,defs:n}=e;return n.map((e=>e.matches.map((t=>({range:t,elapsedTime:e.elapsedTime}))).map((({range:e,elapsedTime:n})=>({range:e,message:E(t,n)}))))).reduce(((e,t)=>e.concat(t)),[])}function b(){null==y||y.setDecorations(a,[])}function E(e,t){return(new s.MarkdownString).appendText(e+" "+t.toFixed(2)+"ms")}function w(){o&&(clearTimeout(o),o=void 0),o=setTimeout(C,100)}function D(e){g=e||g;const t=s.window.showInputBox({prompt:"Enter a Regular Expression",placeHolder:"Example: /\bw+/g",value:null==g?void 0:g.toString(),validateInput:function(e){try{(0,u.toRegExp)(e,"g")}catch(e){return(0,d.format)(e)}}}).then((e=>{g=e||void 0,_(g),w()}));return(0,c.logErrors)(t,"userTestRegExp")}function x(e){return"string"==typeof e&&!!e}function _(e){const t=new Set([e].concat(v));v=[...t].filter(x),v.length=Math.min(v.length,5)}y&&w(),s.window.onDidChangeActiveTextEditor((e=>{m&&(y=e,e&&w())}),null,e.subscriptions),s.workspace.onDidChangeTextDocument((e=>{m&&y&&e.document===y.document&&w()}),null,e.subscriptions),e.subscriptions.push({dispose:function(){for(const e of n)e.dispose();n.clear()}},s.commands.registerCommand("cSpellRegExpTester.testRegExp",(0,c.catchErrors)(D,"testRegExp",c.logError)),s.commands.registerCommand("cSpellRegExpTester.selectRegExp",(function(e){g=g===e?void 0:e,_(g),w()})),s.commands.registerCommand("cSpellRegExpTester.editRegExp",(function(e){var t,n;if(null===(t=null==e?void 0:e.treeItem)||void 0===t?void 0:t.pattern){w();const{defs:t,name:i}=e.treeItem.pattern;D((null===(n=t[0])||void 0===n?void 0:n.regexp)||i)}})),s.workspace.onDidChangeConfiguration((function(){const e=m;m=f(),e!=m&&(m?(y=s.window.activeTextEditor,w()):b())})))}},7518:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(6391),t)},7640:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PatternMatcherClient=void 0;const i=n(165),r=n(4876),o=n(1530),s=["--nolazy","--inspect=60148"];class a{constructor(e){const t=e.asAbsolutePath("packages/_serverPatternMatcher/dist/main.js"),n={documentSelector:[{scheme:"file"},{scheme:"untitled"}],diagnosticCollectionName:"cspell-pattern-matcher",initializationFailedHandler:e=>(console.error("Server initialization failed. %o",e),!1)},a=[],c={execArgv:a},u={execArgv:[...a,...s]},l={run:{module:t,transport:i.TransportKind.ipc,options:c},debug:{module:t,transport:i.TransportKind.ipc,options:u}};this.client=new i.LanguageClient("cspell-pattern-matcher",l,n),this.client.registerProposedFeatures(),this.serverApi=(0,o.createServerApi)(this.client),(0,r.logErrors)(this.initWhenReady(),"Init Pattern Matcher Server"),e.subscriptions.push(this.client.start(),this)}static create(e){return new a(e)}async matchPatternsInDocument(e,t,n){return this.serverApi.matchPatternsInDocument({uri:e.uri.toString(),patterns:t,settings:n})}dispose(){c("Dispose: Pattern Matcher Client")}onReady(){return this.client.onReady()}async initWhenReady(){c("waiting initWhenReady"),await this.onReady(),c("done initWhenReady")}}t.PatternMatcherClient=a;const c=(...e)=>{}},1530:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(9357),t)},9357:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createServerApi=t.requestCodeAction=void 0;const i=n(165);t.requestCodeAction=async function(e,t){const n=i.CodeActionRequest.type;return await e.sendRequest(n,t)},t.createServerApi=function(e){return{matchPatternsInDocument:t=>async function(t,n){await e.onReady();const r=new i.RequestType("matchPatternsInDocument");return await e.sendRequest(r,n)}(0,t)}}},1860:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.commandDisplayCSpellInfo=void 0,t.commandDisplayCSpellInfo="cSpell.displayCSpellInfo"},8976:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.commandDisplayCSpellInfo=void 0;var i=n(1860);Object.defineProperty(t,"commandDisplayCSpellInfo",{enumerable:!0,get:function(){return i.commandDisplayCSpellInfo}})},8588:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.__testing__=t.calcSettings=void 0;const s=n(4561),a=o(n(9496)),c=n(9496),u=n(2979),l=n(9759),h=n(7007),d=n(2511);t.calcSettings=async function(e,t,n,i){const r=t||(null===(o=function(){var e;return null===(e=a.workspace.workspaceFolders)||void 0===e?void 0:e[0]}())||void 0===o?void 0:o.uri);var o;const s=(0,u.inspectConfig)(r),c=await n.getConfigurationForDocument(e);return{knownLanguageIds:[...n.languageIds].sort(),dictionaries:T(c.settings),configs:m(s,c,e,i),workspace:O(n.allowedSchemas,a.workspace),activeFileUri:e&&e.uri.toString(),activeFolderUri:null==r?void 0:r.toString()}};const p={defaultValue:"default",globalValue:"user",workspaceValue:"workspace",workspaceFolderValue:"folder"},f=["defaultValue","globalValue","workspaceValue","workspaceFolderValue"],g=new Map(f.map(((e,t)=>[e,t])));function m(e,t,n,i){return{user:C(1,e),workspace:C(2,e),folder:C(3,e),file:b(t,n,i)}}function y(e){return g.get(e)||0}function v(e,t,n){for(let i=e;i>0;--i){const e=f[i],r=n[e];if(r&&r[t])return e}return"defaultValue"}function C(e,t){var n,i,r;const o=v(e,"language",t),s=v(e,"enabledLanguageIds",t),a=v(e,"enableFiletypes",t),c=P(null===(n=t[s])||void 0===n?void 0:n.enabledLanguageIds,null===(i=t[a])||void 0===i?void 0:i.enableFiletypes),u=(h=a,y(l=s)>y(h)?l:h);var l,h;return{inherited:{locales:p[o],languageIdsEnabled:p[u]},locales:F(null===(r=t[o])||void 0===r?void 0:r.language),languageIdsEnabled:c}}function S(e){if(e)return e.map((e=>Object.assign(Object.assign({},e),{name:e.name||e.configUri&&(0,s.uriToName)((0,d.toUri)(e.configUri))})))}function b(e,t,n){if(!t)return;const{uri:i,fileName:r,languageId:o,isUntitled:u}=t,{languageEnabled:l,docSettings:h,fileEnabled:d,fileIsExcluded:p,fileIsIncluded:f,gitignoreInfo:g,excludedBy:m}=e,y=new Set(h&&h.dictionaries||[]),v=T(h).filter((e=>y.has(e.name)));n("extractFileConfig languageEnabled: "+(l?"true":"false"));const C=a.workspace.getWorkspaceFolder(i);return{uri:i.toString(),fileName:r,isUntitled:u,languageId:o,dictionaries:v,languageEnabled:l,fileEnabled:d,configFiles:w(e),fileIsExcluded:p,fileIsIncluded:f,fileIsInWorkspace:!!C||u,excludedBy:S(m),gitignoreInfo:function(){if(!g)return;const{glob:e,gitIgnoreFile:t,line:n,matched:i,root:r}=g,o=c.Uri.file(t);return{matched:i,glob:e,line:n,root:r,gitignoreFileUri:o.toString(),gitignoreName:(0,s.uriToName)(o)}}(),blockedReason:e.blockedReason}}function E(e){return a.workspace.asRelativePath(e,!0)}function w(e){const{configFiles:t,configTargets:n}=e,i=n.filter(D).map((({name:e,configUri:t})=>({name:e,uri:t})));return i.length?i:t.map((e=>({name:(0,s.uriToName)((0,d.toUri)(e)),uri:e})))}function D(e){return"cspell"===e.kind}const x=/\.txt$/,_=/(?:@|%40)cspell\//;function T(e){if(!e)return[];const t=e.dictionaryDefinitions||[],n=new Map(t.map(k).map((e=>[e.name,e])));return(e.languageSettings||[]).forEach((e=>{const t=F(e.locale||e.local),i=A(e.languageId);(e.dictionaries||[]).forEach((e=>{const r=n.get(e);r&&(r.locales=R(r.locales,t),r.languageIds=R(r.languageIds,i))}))})),[...n.values()]}function k(e){const t=c.Uri.joinPath(c.Uri.file(e.path||""),e.file||""),n=t.toString(),i=x.test(n)&&!_.test(n);return{name:e.name,locales:[],languageIds:[],description:e.description,uri:i?n:void 0,uriName:i?E(t):void 0}}function F(e){return A(e)}function A(e){return(0,h.pipe)(e,(0,h.map)((e=>"string"==typeof e?e:e.join(","))),(0,h.map)((e=>e.replace(/\*/g,"").split(/[,;]/).map((e=>e.trim())).filter((e=>!!e)))),(0,h.defaultTo)([]))}function R(e,t){return e.concat(t).filter((0,l.uniqueFilter)())}function O(e,t){const{name:n,workspaceFolders:i,textDocuments:r}=t,o={name:n,workspaceFolders:i?i.map((function(e){const{name:t,index:n}=e;return{uri:e.uri.toString(),name:t,index:n}})):void 0,textDocuments:r.filter((t=>e.has(t.uri.scheme))).map((function(e){const{fileName:t,languageId:n,isUntitled:i}=e;return{uri:e.uri.toString(),fileName:E(t),languageId:n,isUntitled:i}}))};return o}function P(e=[],t=[]){const n=new Set;return function(e){return e.map((e=>e.replace(/!/g,"~"))).sort().map((e=>e.replace(/~/g,"!")))}(e.concat(t)).map(M).forEach((({enable:e,lang:t})=>{e?n.add(t):n.delete(t)})),[...n].sort()}function M(e){const[t,n]=N(e);return{enable:!(1&t.length),lang:n}}function N(e){const t=e.match(/^!*/),n=(null==t?void 0:t[0])||"";return[n,e.slice(n.length)]}t.__testing__={applyEnableFiletypesToEnabledLanguageIds:P,calcEnableLang:M,extractConfigFiles:w,extractDictionariesFromConfig:T,extractViewerConfigFromConfig:m,mapWorkspace:O,normalizeLocales:F,splitBangPrefix:N}},3981:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.__testing__=t.update=t.activate=void 0;const s=o(n(7945)),a=n(3837),c=o(n(9496)),u=n(9496),l=n(3312),h=n(8768),d=n(2979),p=n(2511),f=n(7469),g=n(1860),m=n(8588),y=n(3837),v="Spell Checker Preferences",C=(0,y.promisify)(setTimeout);let S,b=!1;const E={user:c.ConfigurationTarget.Global,workspace:c.ConfigurationTarget.Workspace,folder:c.ConfigurationTarget.WorkspaceFolder};t.activate=function(e,t){e.subscriptions.push(c.commands.registerCommand(g.commandDisplayCSpellInfo,(async()=>{var n;const i=(null===(n=c.window.activeTextEditor)||void 0===n?void 0:n.viewColumn)||c.ViewColumn.Active;S?S.reveal(i):S=await async function(e,t,n){const i=e.asAbsolutePath("packages/client/settingsViewer/webapp"),r=await async function(){const e=M(c.window.activeTextEditor),t=e&&c.workspace.getWorkspaceFolder(e)||c.workspace.workspaceFolders&&c.workspace.workspaceFolders[0],n=t&&t.uri;return{activeTabName:e?"File":"User",activeDocumentUri:e,activeFolderUri:n,settings:await k(e,n)}}(),o=e.extensionPath;let a;const g=[],y={enableScripts:!0,enableCommandUris:!0,localResourceRoots:[u.Uri.file(i),u.Uri.file(o)]},_=c.window.createWebviewPanel("cspellConfigViewer",v,t,y),T=new l.MessageBus(function(e){let t;const n={set onmessage(e){t=e},postMessage:t=>(e.webview.postMessage(t),n),disposable:e.webview.onDidReceiveMessage((e=>{t&&t({data:e})}))};return n}(_),console);async function k(e,t){const i=e&&(0,f.findMatchingDocument)(e);return(0,m.calcSettings)(i,t,n,x)}async function F(){const e=(0,d.getSettingFromVSConfig)("logLevel",void 0);b="Debug"===e,x("refreshStateAndNotify"),await async function(){x(`refreshState: uri "${r.activeDocumentUri}"`),await C(500),r.settings=await k(r.activeDocumentUri,r.activeFolderUri)}(),await void(null==a||a.emit())}function A(e){var t;t=M(e),r.activeDocumentUri=P(t)||r.activeDocumentUri}return g.push(s.stream((e=>(a=e,()=>{a=void 0}))).throttle(250).observe((()=>{const{activeTabName:e,settings:t}=r;x(`notifyView: tab ${e}`),T.postMessage({command:"ConfigurationChangeMessage",value:{activeTab:e,settings:t}})}))),g.push(s.stream((t=>{c.workspace.onDidChangeConfiguration((()=>t.value({})),null,e.subscriptions)})).throttle(1e3).observe((()=>F()))),c.window.onDidChangeActiveTextEditor((async e=>{e&&(A(e),await F())}),null,e.subscriptions),T.listenFor("RequestConfigurationMessage",(()=>F)),T.listenFor("SelectTabMessage",(e=>{x(`SelectTabMessage: tab ${e.value}`),r.activeTabName=e.value})),T.listenFor("SelectFolderMessage",(e=>{x(`SelectFolderMessage: folder '${e.value}'`);const t=e.value,n=c.workspace.workspaceFolders&&c.workspace.workspaceFolders[0];return r.activeFolderUri=t&&u.Uri.parse(t)||n&&n.uri,F()})),T.listenFor("SelectFileMessage",(e=>{x(`SelectFolderMessage: folder '${e.value}'`);const t=e.value;return r.activeDocumentUri=t&&u.Uri.parse(t)||r.activeDocumentUri,F()})),T.listenFor("ConfigurationChangeMessage",(()=>{})),T.listenFor("OpenLinkMessage",(e=>{const t=u.Uri.parse(e.value.uri);switch(t.scheme){case"file":return c.window.showTextDocument(t);case"command":return D()}throw new Error(`Unknown link: ${t.toString()}`)})),g.push(s.stream((e=>{T.listenFor("EnableLanguageIdMessage",(t=>e.value(t)))})).debounce(20).map((e=>{const{target:t,languageId:n,enable:i,uri:r}=e.value;x(`EnableLanguageIdMessage: ${t}, ${n}, ${i?"enable":"disable"}`);const o=r?u.Uri.parse(r):void 0;return(0,h.enableDisableLanguageId)(n,o,t?E[t]:void 0,i)})).flatMap(O(w)).observe(F)),g.push(s.stream((e=>{T.listenFor("EnableLocaleMessage",(t=>e.value(t)))})).debounce(20).map((e=>{const{target:t,locale:n,enable:i,uri:r}=e.value;x(`EnableLocaleMessage: ${t}, ${n}, ${i?"enable":"disable"}`);const o=r?u.Uri.parse(r):void 0,s=E[t];return(0,h.enableDisableLocale)(n,(0,p.toUri)(r),s,o,i)})).flatMap(O(w)).observe(F)),_.onDidDispose(R,null,e.subscriptions),_.onDidChangeViewState((()=>F()),void 0,e.subscriptions),{panel:_,async updateView(){await async function(e,t){x("updateView");const n=function(e,t){const n=u.Uri.file(t);return`\n\n\n \n \n \n CSpell Settings Viewer\n \n
Root