@next-bricks/vb-experiment 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bricks.json +1 -1
- package/dist/chunks/311.dced50b5.js +24 -0
- package/dist/chunks/311.dced50b5.js.map +1 -0
- package/dist/chunks/635.3130d43a.js +3 -0
- package/dist/chunks/635.3130d43a.js.LICENSE.txt +8 -0
- package/dist/chunks/635.3130d43a.js.map +1 -0
- package/dist/chunks/68.2ff11e20.js +2 -0
- package/dist/chunks/68.2ff11e20.js.map +1 -0
- package/dist/chunks/export-as-source-files.5a50d094.js +2 -0
- package/dist/chunks/export-as-source-files.5a50d094.js.map +1 -0
- package/dist/chunks/main.313728c5.js +2 -0
- package/dist/chunks/main.313728c5.js.map +1 -0
- package/dist/index.2185a719.js +2 -0
- package/dist/index.2185a719.js.map +1 -0
- package/dist-types/data-providers/export-as-source-files.d.ts +0 -6
- package/dist-types/data-providers/utils/buildFileStructure.d.ts +13 -0
- package/dist-types/data-providers/utils/extract.d.ts +15 -0
- package/dist-types/data-providers/utils/printWithPlaceholders.d.ts +2 -0
- package/package.json +2 -2
- package/dist/chunks/493.dbcf61da.js +0 -24
- package/dist/chunks/493.dbcf61da.js.map +0 -1
- package/dist/chunks/644.b2d6383d.js +0 -2
- package/dist/chunks/644.b2d6383d.js.map +0 -1
- package/dist/chunks/export-as-source-files.26e0ab0d.js +0 -2
- package/dist/chunks/export-as-source-files.26e0ab0d.js.map +0 -1
- package/dist/chunks/main.2de93623.js +0 -2
- package/dist/chunks/main.2de93623.js.map +0 -1
- package/dist/index.dbae8da0.js +0 -2
- package/dist/index.dbae8da0.js.map +0 -1
- /package/dist/chunks/{493.dbcf61da.js.LICENSE.txt → 311.dced50b5.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*! For license information please see 311.dced50b5.js.LICENSE.txt */
|
|
2
|
+
(self.webpackChunk_next_bricks_vb_experiment=self.webpackChunk_next_bricks_vb_experiment||[]).push([[311],{782:function(e,t,r){var n,s;void 0===(s="function"==typeof(n=function(){"use strict";function t(e,t,r){var n=new XMLHttpRequest;n.open("GET",e),n.responseType="blob",n.onload=function(){o(n.response,t,r)},n.onerror=function(){console.error("could not download file")},n.send()}function n(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function s(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(r){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var i="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof r.g&&r.g.global===r.g?r.g:void 0,a=i.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),o=i.saveAs||("object"!=typeof window||window!==i?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(e,r,a){var o=i.URL||i.webkitURL,u=document.createElement("a");r=r||e.name||"download",u.download=r,u.rel="noopener","string"==typeof e?(u.href=e,u.origin===location.origin?s(u):n(u.href)?t(e,r,a):s(u,u.target="_blank")):(u.href=o.createObjectURL(e),setTimeout((function(){o.revokeObjectURL(u.href)}),4e4),setTimeout((function(){s(u)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,r,i){if(r=r||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(function(e,t){return void 0===t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}(e,i),r);else if(n(e))t(e,r,i);else{var a=document.createElement("a");a.href=e,a.target="_blank",setTimeout((function(){s(a)}))}}:function(e,r,n,s){if((s=s||open("","_blank"))&&(s.document.title=s.document.body.innerText="downloading..."),"string"==typeof e)return t(e,r,n);var o="application/octet-stream"===e.type,u=/constructor/i.test(i.HTMLElement)||i.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||o&&u||a)&&"undefined"!=typeof FileReader){var p=new FileReader;p.onloadend=function(){var e=p.result;e=l?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),s?s.location.href=e:location=e,s=null},p.readAsDataURL(e)}else{var c=i.URL||i.webkitURL,h=c.createObjectURL(e);s?s.location=h:location.href=h,s=null,setTimeout((function(){c.revokeObjectURL(h)}),4e4)}});i.saveAs=o.saveAs=o,e.exports=o})?n.apply(t,[]):n)||(e.exports=s)},297:(e,t,r)=>{e.exports=function e(t,r,n){function s(a,o){if(!r[a]){if(!t[a]){if(i)return i(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var l=r[a]={exports:{}};t[a][0].call(l.exports,(function(e){return s(t[a][1][e]||e)}),l,l.exports,e,t,r,n)}return r[a].exports}for(var i=void 0,a=0;a<n.length;a++)s(n[a]);return s}({1:[function(e,t,r){"use strict";var n=e("./utils"),s=e("./support"),i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.encode=function(e){for(var t,r,s,a,o,u,l,p=[],c=0,h=e.length,d=h,f="string"!==n.getTypeOf(e);c<e.length;)d=h-c,s=f?(t=e[c++],r=c<h?e[c++]:0,c<h?e[c++]:0):(t=e.charCodeAt(c++),r=c<h?e.charCodeAt(c++):0,c<h?e.charCodeAt(c++):0),a=t>>2,o=(3&t)<<4|r>>4,u=1<d?(15&r)<<2|s>>6:64,l=2<d?63&s:64,p.push(i.charAt(a)+i.charAt(o)+i.charAt(u)+i.charAt(l));return p.join("")},r.decode=function(e){var t,r,n,a,o,u,l=0,p=0,c="data:";if(e.substr(0,5)===c)throw new Error("Invalid base64 input, it looks like a data url.");var h,d=3*(e=e.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(e.charAt(e.length-1)===i.charAt(64)&&d--,e.charAt(e.length-2)===i.charAt(64)&&d--,d%1!=0)throw new Error("Invalid base64 input, bad content length.");for(h=s.uint8array?new Uint8Array(0|d):new Array(0|d);l<e.length;)t=i.indexOf(e.charAt(l++))<<2|(a=i.indexOf(e.charAt(l++)))>>4,r=(15&a)<<4|(o=i.indexOf(e.charAt(l++)))>>2,n=(3&o)<<6|(u=i.indexOf(e.charAt(l++))),h[p++]=t,64!==o&&(h[p++]=r),64!==u&&(h[p++]=n);return h}},{"./support":30,"./utils":32}],2:[function(e,t,r){"use strict";var n=e("./external"),s=e("./stream/DataWorker"),i=e("./stream/Crc32Probe"),a=e("./stream/DataLengthProbe");function o(e,t,r,n,s){this.compressedSize=e,this.uncompressedSize=t,this.crc32=r,this.compression=n,this.compressedContent=s}o.prototype={getContentWorker:function(){var e=new s(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("data_length")),t=this;return e.on("end",(function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),e},getCompressedWorker:function(){return new s(n.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},o.createWorkerFrom=function(e,t,r){return e.pipe(new i).pipe(new a("uncompressedSize")).pipe(t.compressWorker(r)).pipe(new a("compressedSize")).withStreamInfo("compression",t)},t.exports=o},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,r){"use strict";var n=e("./stream/GenericWorker");r.STORE={magic:"\0\0",compressWorker:function(){return new n("STORE compression")},uncompressWorker:function(){return new n("STORE decompression")}},r.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,r){"use strict";var n=e("./utils"),s=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==n.getTypeOf(e)?function(e,t,r,n){var i=s,a=0+r;e^=-1;for(var o=0;o<a;o++)e=e>>>8^i[255&(e^t[o])];return-1^e}(0|t,e,e.length):function(e,t,r,n){var i=s,a=0+r;e^=-1;for(var o=0;o<a;o++)e=e>>>8^i[255&(e^t.charCodeAt(o))];return-1^e}(0|t,e,e.length):0}},{"./utils":32}],5:[function(e,t,r){"use strict";r.base64=!1,r.binary=!1,r.dir=!1,r.createFolders=!0,r.date=null,r.compression=null,r.compressionOptions=null,r.comment=null,r.unixPermissions=null,r.dosPermissions=null},{}],6:[function(e,t,r){"use strict";var n;n="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:n}},{lie:37}],7:[function(e,t,r){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,s=e("pako"),i=e("./utils"),a=e("./stream/GenericWorker"),o=n?"uint8array":"array";function u(e,t){a.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}r.magic="\b\0",i.inherits(u,a),u.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(i.transformTo(o,e.data),!1)},u.prototype.flush=function(){a.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},u.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this._pako=null},u.prototype._createPako=function(){this._pako=new s[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},r.compressWorker=function(e){return new u("Deflate",e)},r.uncompressWorker=function(){return new u("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,r){"use strict";function n(e,t){var r,n="";for(r=0;r<t;r++)n+=String.fromCharCode(255&e),e>>>=8;return n}function s(e,t,r,s,a,p){var c,h,d=e.file,f=e.compression,m=p!==o.utf8encode,y=i.transformTo("string",p(d.name)),g=i.transformTo("string",o.utf8encode(d.name)),D=d.comment,x=i.transformTo("string",p(D)),E=i.transformTo("string",o.utf8encode(D)),b=g.length!==d.name.length,C=E.length!==D.length,v="",A="",S="",T=d.dir,w=d.date,F={crc32:0,compressedSize:0,uncompressedSize:0};t&&!r||(F.crc32=e.crc32,F.compressedSize=e.compressedSize,F.uncompressedSize=e.uncompressedSize);var P=0;t&&(P|=8),m||!b&&!C||(P|=2048);var k=0,N=0;T&&(k|=16),"UNIX"===a?(N=798,k|=function(e,t){var r=e;return e||(r=t?16893:33204),(65535&r)<<16}(d.unixPermissions,T)):(N=20,k|=function(e){return 63&(e||0)}(d.dosPermissions)),c=w.getUTCHours(),c<<=6,c|=w.getUTCMinutes(),c<<=5,c|=w.getUTCSeconds()/2,h=w.getUTCFullYear()-1980,h<<=4,h|=w.getUTCMonth()+1,h<<=5,h|=w.getUTCDate(),b&&(A=n(1,1)+n(u(y),4)+g,v+="up"+n(A.length,2)+A),C&&(S=n(1,1)+n(u(x),4)+E,v+="uc"+n(S.length,2)+S);var I="";return I+="\n\0",I+=n(P,2),I+=f.magic,I+=n(c,2),I+=n(h,2),I+=n(F.crc32,4),I+=n(F.compressedSize,4),I+=n(F.uncompressedSize,4),I+=n(y.length,2),I+=n(v.length,2),{fileRecord:l.LOCAL_FILE_HEADER+I+y+v,dirRecord:l.CENTRAL_FILE_HEADER+n(N,2)+I+n(x.length,2)+"\0\0\0\0"+n(k,4)+n(s,4)+y+v+x}}var i=e("../utils"),a=e("../stream/GenericWorker"),o=e("../utf8"),u=e("../crc32"),l=e("../signature");function p(e,t,r,n){a.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=r,this.encodeFileName=n,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}i.inherits(p,a),p.prototype.push=function(e){var t=e.meta.percent||0,r=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,a.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:r?(t+100*(r-n-1))/r:100}}))},p.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var r=s(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},p.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,r=s(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),t)this.push({data:function(e){return l.DATA_DESCRIPTOR+n(e.crc32,4)+n(e.compressedSize,4)+n(e.uncompressedSize,4)}(e),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},p.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var r=this.bytesWritten-e,s=function(e,t,r,s,a){var o=i.transformTo("string",a(s));return l.CENTRAL_DIRECTORY_END+"\0\0\0\0"+n(e,2)+n(e,2)+n(t,4)+n(r,4)+n(o.length,2)+o}(this.dirRecords.length,r,e,this.zipComment,this.encodeFileName);this.push({data:s,meta:{percent:100}})},p.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},p.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()})),e.on("error",(function(e){t.error(e)})),this},p.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},p.prototype.error=function(e){var t=this._sources;if(!a.prototype.error.call(this,e))return!1;for(var r=0;r<t.length;r++)try{t[r].error(e)}catch(e){}return!0},p.prototype.lock=function(){a.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()},t.exports=p},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,t,r){"use strict";var n=e("../compressions"),s=e("./ZipFileWorker");r.generateWorker=function(e,t,r){var i=new s(t.streamFiles,r,t.platform,t.encodeFileName),a=0;try{e.forEach((function(e,r){a++;var s=function(e,t){var r=e||t,s=n[r];if(!s)throw new Error(r+" is not a valid compression method !");return s}(r.options.compression,t.compression),o=r.options.compressionOptions||t.compressionOptions||{},u=r.dir,l=r.date;r._compressWorker(s,o).withStreamInfo("file",{name:e,dir:u,date:l,comment:r.comment||"",unixPermissions:r.unixPermissions,dosPermissions:r.dosPermissions}).pipe(i)})),i.entriesCount=a}catch(e){i.error(e)}return i}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,t,r){"use strict";function n(){if(!(this instanceof n))return new n;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var e=new n;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}(n.prototype=e("./object")).loadAsync=e("./load"),n.support=e("./support"),n.defaults=e("./defaults"),n.version="3.10.1",n.loadAsync=function(e,t){return(new n).loadAsync(e,t)},n.external=e("./external"),t.exports=n},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,t,r){"use strict";var n=e("./utils"),s=e("./external"),i=e("./utf8"),a=e("./zipEntries"),o=e("./stream/Crc32Probe"),u=e("./nodejsUtils");function l(e){return new s.Promise((function(t,r){var n=e.decompressed.getContentWorker().pipe(new o);n.on("error",(function(e){r(e)})).on("end",(function(){n.streamInfo.crc32!==e.decompressed.crc32?r(new Error("Corrupted zip : CRC32 mismatch")):t()})).resume()}))}t.exports=function(e,t){var r=this;return t=n.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:i.utf8decode}),u.isNode&&u.isStream(e)?s.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):n.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then((function(e){var r=new a(t);return r.load(e),r})).then((function(e){var r=[s.Promise.resolve(e)],n=e.files;if(t.checkCRC32)for(var i=0;i<n.length;i++)r.push(l(n[i]));return s.Promise.all(r)})).then((function(e){for(var s=e.shift(),i=s.files,a=0;a<i.length;a++){var o=i[a],u=o.fileNameStr,l=n.resolve(o.fileNameStr);r.file(l,o.decompressed,{binary:!0,optimizedBinaryString:!0,date:o.date,dir:o.dir,comment:o.fileCommentStr.length?o.fileCommentStr:null,unixPermissions:o.unixPermissions,dosPermissions:o.dosPermissions,createFolders:t.createFolders}),o.dir||(r.file(l).unsafeOriginalName=u)}return s.zipComment.length&&(r.comment=s.zipComment),r}))}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,t,r){"use strict";var n=e("../utils"),s=e("../stream/GenericWorker");function i(e,t){s.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}n.inherits(i,s),i.prototype._bindStream=function(e){var t=this;(this._stream=e).pause(),e.on("data",(function(e){t.push({data:e,meta:{percent:0}})})).on("error",(function(e){t.isPaused?this.generatedError=e:t.error(e)})).on("end",(function(){t.isPaused?t._upstreamEnded=!0:t.end()}))},i.prototype.pause=function(){return!!s.prototype.pause.call(this)&&(this._stream.pause(),!0)},i.prototype.resume=function(){return!!s.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},t.exports=i},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,t,r){"use strict";var n=e("readable-stream").Readable;function s(e,t,r){n.call(this,t),this._helper=e;var s=this;e.on("data",(function(e,t){s.push(e)||s._helper.pause(),r&&r(t)})).on("error",(function(e){s.emit("error",e)})).on("end",(function(){s.push(null)}))}e("../utils").inherits(s,n),s.prototype._read=function(){this._helper.resume()},t.exports=s},{"../utils":32,"readable-stream":16}],14:[function(e,t,r){"use strict";t.exports={isNode:"undefined"!=typeof Buffer,newBufferFrom:function(e,t){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(e,t);if("number"==typeof e)throw new Error('The "data" argument must not be a number');return new Buffer(e,t)},allocBuffer:function(e){if(Buffer.alloc)return Buffer.alloc(e);var t=new Buffer(e);return t.fill(0),t},isBuffer:function(e){return Buffer.isBuffer(e)},isStream:function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume}}},{}],15:[function(e,t,r){"use strict";function n(e,t,r){var n,s=i.getTypeOf(t),o=i.extend(r||{},u);o.date=o.date||new Date,null!==o.compression&&(o.compression=o.compression.toUpperCase()),"string"==typeof o.unixPermissions&&(o.unixPermissions=parseInt(o.unixPermissions,8)),o.unixPermissions&&16384&o.unixPermissions&&(o.dir=!0),o.dosPermissions&&16&o.dosPermissions&&(o.dir=!0),o.dir&&(e=m(e)),o.createFolders&&(n=f(e))&&y.call(this,n,!0);var c="string"===s&&!1===o.binary&&!1===o.base64;r&&void 0!==r.binary||(o.binary=!c),(t instanceof l&&0===t.uncompressedSize||o.dir||!t||0===t.length)&&(o.base64=!1,o.binary=!0,t="",o.compression="STORE",s="string");var g;g=t instanceof l||t instanceof a?t:h.isNode&&h.isStream(t)?new d(e,t):i.prepareContent(e,t,o.binary,o.optimizedBinaryString,o.base64);var D=new p(e,g,o);this.files[e]=D}var s=e("./utf8"),i=e("./utils"),a=e("./stream/GenericWorker"),o=e("./stream/StreamHelper"),u=e("./defaults"),l=e("./compressedObject"),p=e("./zipObject"),c=e("./generate"),h=e("./nodejsUtils"),d=e("./nodejs/NodejsStreamInputAdapter"),f=function(e){"/"===e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return 0<t?e.substring(0,t):""},m=function(e){return"/"!==e.slice(-1)&&(e+="/"),e},y=function(e,t){return t=void 0!==t?t:u.createFolders,e=m(e),this.files[e]||n.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function g(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var D={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,r,n;for(t in this.files)n=this.files[t],(r=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(r,n)},filter:function(e){var t=[];return this.forEach((function(r,n){e(r,n)&&t.push(n)})),t},file:function(e,t,r){if(1!==arguments.length)return e=this.root+e,n.call(this,e,t,r),this;if(g(e)){var s=e;return this.filter((function(e,t){return!t.dir&&s.test(e)}))}var i=this.files[this.root+e];return i&&!i.dir?i:null},folder:function(e){if(!e)return this;if(g(e))return this.filter((function(t,r){return r.dir&&e.test(t)}));var t=this.root+e,r=y.call(this,t),n=this.clone();return n.root=r.name,n},remove:function(e){e=this.root+e;var t=this.files[e];if(t||("/"!==e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var r=this.filter((function(t,r){return r.name.slice(0,e.length)===e})),n=0;n<r.length;n++)delete this.files[r[n].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(e){var t,r={};try{if((r=i.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:s.utf8encode})).type=r.type.toLowerCase(),r.compression=r.compression.toUpperCase(),"binarystring"===r.type&&(r.type="string"),!r.type)throw new Error("No output type specified.");i.checkSupport(r.type),"darwin"!==r.platform&&"freebsd"!==r.platform&&"linux"!==r.platform&&"sunos"!==r.platform||(r.platform="UNIX"),"win32"===r.platform&&(r.platform="DOS");var n=r.comment||this.comment||"";t=c.generateWorker(this,r,n)}catch(e){(t=new a("error")).error(e)}return new o(t,r.type||"string",r.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return(e=e||{}).type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}};t.exports=D},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(e,t,r){"use strict";t.exports=e("stream")},{stream:void 0}],17:[function(e,t,r){"use strict";var n=e("./DataReader");function s(e){n.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}e("../utils").inherits(s,n),s.prototype.byteAt=function(e){return this.data[this.zero+e]},s.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),s=e.charCodeAt(3),i=this.length-4;0<=i;--i)if(this.data[i]===t&&this.data[i+1]===r&&this.data[i+2]===n&&this.data[i+3]===s)return i-this.zero;return-1},s.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),s=e.charCodeAt(3),i=this.readData(4);return t===i[0]&&r===i[1]&&n===i[2]&&s===i[3]},s.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=s},{"../utils":32,"./DataReader":18}],18:[function(e,t,r){"use strict";var n=e("../utils");function s(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}s.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt:function(e){var t,r=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)r=(r<<8)+this.byteAt(t);return this.index+=e,r},readString:function(e){return n.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=s},{"../utils":32}],19:[function(e,t,r){"use strict";var n=e("./Uint8ArrayReader");function s(e){n.call(this,e)}e("../utils").inherits(s,n),s.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=s},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,r){"use strict";var n=e("./DataReader");function s(e){n.call(this,e)}e("../utils").inherits(s,n),s.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},s.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},s.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},s.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=s},{"../utils":32,"./DataReader":18}],21:[function(e,t,r){"use strict";var n=e("./ArrayReader");function s(e){n.call(this,e)}e("../utils").inherits(s,n),s.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=s},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,r){"use strict";var n=e("../utils"),s=e("../support"),i=e("./ArrayReader"),a=e("./StringReader"),o=e("./NodeBufferReader"),u=e("./Uint8ArrayReader");t.exports=function(e){var t=n.getTypeOf(e);return n.checkSupport(t),"string"!==t||s.uint8array?"nodebuffer"===t?new o(e):s.uint8array?new u(n.transformTo("uint8array",e)):new i(n.transformTo("array",e)):new a(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,r){"use strict";r.LOCAL_FILE_HEADER="PK",r.CENTRAL_FILE_HEADER="PK",r.CENTRAL_DIRECTORY_END="PK",r.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",r.ZIP64_CENTRAL_DIRECTORY_END="PK",r.DATA_DESCRIPTOR="PK\b"},{}],24:[function(e,t,r){"use strict";var n=e("./GenericWorker"),s=e("../utils");function i(e){n.call(this,"ConvertWorker to "+e),this.destType=e}s.inherits(i,n),i.prototype.processChunk=function(e){this.push({data:s.transformTo(this.destType,e.data),meta:e.meta})},t.exports=i},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,r){"use strict";var n=e("./GenericWorker"),s=e("../crc32");function i(){n.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(i,n),i.prototype.processChunk=function(e){this.streamInfo.crc32=s(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=i},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,r){"use strict";var n=e("../utils"),s=e("./GenericWorker");function i(e){s.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}n.inherits(i,s),i.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}s.prototype.processChunk.call(this,e)},t.exports=i},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,r){"use strict";var n=e("../utils"),s=e("./GenericWorker");function i(e){s.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then((function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=n.getTypeOf(e),t.isPaused||t._tickAndRepeat()}),(function(e){t.error(e)}))}n.inherits(i,s),i.prototype.cleanUp=function(){s.prototype.cleanUp.call(this),this.data=null},i.prototype.resume=function(){return!!s.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,n.delay(this._tickAndRepeat,[],this)),!0)},i.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(n.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},i.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=i},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,r){"use strict";function n(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}n.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var r=0;r<this._listeners[e].length;r++)this._listeners[e][r].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.end()})),e.on("error",(function(e){t.error(e)})),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var e=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}},t.exports=n},{}],29:[function(e,t,r){"use strict";var n=e("../utils"),s=e("./ConvertWorker"),i=e("./GenericWorker"),a=e("../base64"),o=e("../support"),u=e("../external"),l=null;if(o.nodestream)try{l=e("../nodejs/NodejsStreamOutputAdapter")}catch(e){}function p(e,t,r){var a=t;switch(t){case"blob":case"arraybuffer":a="uint8array";break;case"base64":a="string"}try{this._internalType=a,this._outputType=t,this._mimeType=r,n.checkSupport(a),this._worker=e.pipe(new s(a)),e.lock()}catch(e){this._worker=new i("error"),this._worker.error(e)}}p.prototype={accumulate:function(e){return function(e,t){return new u.Promise((function(r,s){var i=[],o=e._internalType,u=e._outputType,l=e._mimeType;e.on("data",(function(e,r){i.push(e),t&&t(r)})).on("error",(function(e){i=[],s(e)})).on("end",(function(){try{var e=function(e,t,r){switch(e){case"blob":return n.newBlob(n.transformTo("arraybuffer",t),r);case"base64":return a.encode(t);default:return n.transformTo(e,t)}}(u,function(e,t){var r,n=0,s=null,i=0;for(r=0;r<t.length;r++)i+=t[r].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(s=new Uint8Array(i),r=0;r<t.length;r++)s.set(t[r],n),n+=t[r].length;return s;case"nodebuffer":return Buffer.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}(o,i),l);r(e)}catch(e){s(e)}i=[]})).resume()}))}(this,e)},on:function(e,t){var r=this;return"data"===e?this._worker.on(e,(function(e){t.call(r,e.data,e.meta)})):this._worker.on(e,(function(){n.delay(t,arguments,r)})),this},resume:function(){return n.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(n.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new l(this,{objectMode:"nodebuffer"!==this._outputType},e)}},t.exports=p},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,t,r){"use strict";if(r.base64=!0,r.array=!0,r.string=!0,r.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,r.nodebuffer="undefined"!=typeof Buffer,r.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)r.blob=!1;else{var n=new ArrayBuffer(0);try{r.blob=0===new Blob([n],{type:"application/zip"}).size}catch(e){try{var s=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);s.append(n),r.blob=0===s.getBlob("application/zip").size}catch(e){r.blob=!1}}}try{r.nodestream=!!e("readable-stream").Readable}catch(e){r.nodestream=!1}},{"readable-stream":16}],31:[function(e,t,r){"use strict";for(var n=e("./utils"),s=e("./support"),i=e("./nodejsUtils"),a=e("./stream/GenericWorker"),o=new Array(256),u=0;u<256;u++)o[u]=252<=u?6:248<=u?5:240<=u?4:224<=u?3:192<=u?2:1;function l(){a.call(this,"utf-8 decode"),this.leftOver=null}function p(){a.call(this,"utf-8 encode")}o[254]=o[254]=1,r.utf8encode=function(e){return s.nodebuffer?i.newBufferFrom(e,"utf-8"):function(e){var t,r,n,i,a,o=e.length,u=0;for(i=0;i<o;i++)55296==(64512&(r=e.charCodeAt(i)))&&i+1<o&&56320==(64512&(n=e.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(n-56320),i++),u+=r<128?1:r<2048?2:r<65536?3:4;for(t=s.uint8array?new Uint8Array(u):new Array(u),i=a=0;a<u;i++)55296==(64512&(r=e.charCodeAt(i)))&&i+1<o&&56320==(64512&(n=e.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(n-56320),i++),r<128?t[a++]=r:(r<2048?t[a++]=192|r>>>6:(r<65536?t[a++]=224|r>>>12:(t[a++]=240|r>>>18,t[a++]=128|r>>>12&63),t[a++]=128|r>>>6&63),t[a++]=128|63&r);return t}(e)},r.utf8decode=function(e){return s.nodebuffer?n.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,r,s,i,a=e.length,u=new Array(2*a);for(t=r=0;t<a;)if((s=e[t++])<128)u[r++]=s;else if(4<(i=o[s]))u[r++]=65533,t+=i-1;else{for(s&=2===i?31:3===i?15:7;1<i&&t<a;)s=s<<6|63&e[t++],i--;1<i?u[r++]=65533:s<65536?u[r++]=s:(s-=65536,u[r++]=55296|s>>10&1023,u[r++]=56320|1023&s)}return u.length!==r&&(u.subarray?u=u.subarray(0,r):u.length=r),n.applyFromCharCode(u)}(e=n.transformTo(s.uint8array?"uint8array":"array",e))},n.inherits(l,a),l.prototype.processChunk=function(e){var t=n.transformTo(s.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(s.uint8array){var i=t;(t=new Uint8Array(i.length+this.leftOver.length)).set(this.leftOver,0),t.set(i,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var a=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;return r<0||0===r?t:r+o[e[r]]>t?r:t}(t),u=t;a!==t.length&&(s.uint8array?(u=t.subarray(0,a),this.leftOver=t.subarray(a,t.length)):(u=t.slice(0,a),this.leftOver=t.slice(a,t.length))),this.push({data:r.utf8decode(u),meta:e.meta})},l.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:r.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},r.Utf8DecodeWorker=l,n.inherits(p,a),p.prototype.processChunk=function(e){this.push({data:r.utf8encode(e.data),meta:e.meta})},r.Utf8EncodeWorker=p},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,r){"use strict";var n=e("./support"),s=e("./base64"),i=e("./nodejsUtils"),a=e("./external");function o(e){return e}function u(e,t){for(var r=0;r<e.length;++r)t[r]=255&e.charCodeAt(r);return t}e("setimmediate"),r.newBlob=function(e,t){r.checkSupport("blob");try{return new Blob([e],{type:t})}catch(r){try{var n=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return n.append(e),n.getBlob(t)}catch(e){throw new Error("Bug : can't construct the Blob.")}}};var l={stringifyByChunk:function(e,t,r){var n=[],s=0,i=e.length;if(i<=r)return String.fromCharCode.apply(null,e);for(;s<i;)"array"===t||"nodebuffer"===t?n.push(String.fromCharCode.apply(null,e.slice(s,Math.min(s+r,i)))):n.push(String.fromCharCode.apply(null,e.subarray(s,Math.min(s+r,i)))),s+=r;return n.join("")},stringifyByChar:function(e){for(var t="",r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},applyCanBeUsed:{uint8array:function(){try{return n.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){return!1}}(),nodebuffer:function(){try{return n.nodebuffer&&1===String.fromCharCode.apply(null,i.allocBuffer(1)).length}catch(e){return!1}}()}};function p(e){var t=65536,n=r.getTypeOf(e),s=!0;if("uint8array"===n?s=l.applyCanBeUsed.uint8array:"nodebuffer"===n&&(s=l.applyCanBeUsed.nodebuffer),s)for(;1<t;)try{return l.stringifyByChunk(e,n,t)}catch(e){t=Math.floor(t/2)}return l.stringifyByChar(e)}function c(e,t){for(var r=0;r<e.length;r++)t[r]=e[r];return t}r.applyFromCharCode=p;var h={};h.string={string:o,array:function(e){return u(e,new Array(e.length))},arraybuffer:function(e){return h.string.uint8array(e).buffer},uint8array:function(e){return u(e,new Uint8Array(e.length))},nodebuffer:function(e){return u(e,i.allocBuffer(e.length))}},h.array={string:p,array:o,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return i.newBufferFrom(e)}},h.arraybuffer={string:function(e){return p(new Uint8Array(e))},array:function(e){return c(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:o,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return i.newBufferFrom(new Uint8Array(e))}},h.uint8array={string:p,array:function(e){return c(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:o,nodebuffer:function(e){return i.newBufferFrom(e)}},h.nodebuffer={string:p,array:function(e){return c(e,new Array(e.length))},arraybuffer:function(e){return h.nodebuffer.uint8array(e).buffer},uint8array:function(e){return c(e,new Uint8Array(e.length))},nodebuffer:o},r.transformTo=function(e,t){if(t=t||"",!e)return t;r.checkSupport(e);var n=r.getTypeOf(t);return h[n][e](t)},r.resolve=function(e){for(var t=e.split("/"),r=[],n=0;n<t.length;n++){var s=t[n];"."===s||""===s&&0!==n&&n!==t.length-1||(".."===s?r.pop():r.push(s))}return r.join("/")},r.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":n.nodebuffer&&i.isBuffer(e)?"nodebuffer":n.uint8array&&e instanceof Uint8Array?"uint8array":n.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},r.checkSupport=function(e){if(!n[e.toLowerCase()])throw new Error(e+" is not supported by this platform")},r.MAX_VALUE_16BITS=65535,r.MAX_VALUE_32BITS=-1,r.pretty=function(e){var t,r,n="";for(r=0;r<(e||"").length;r++)n+="\\x"+((t=e.charCodeAt(r))<16?"0":"")+t.toString(16).toUpperCase();return n},r.delay=function(e,t,r){setImmediate((function(){e.apply(r||null,t||[])}))},r.inherits=function(e,t){function r(){}r.prototype=t.prototype,e.prototype=new r},r.extend=function(){var e,t,r={};for(e=0;e<arguments.length;e++)for(t in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],t)&&void 0===r[t]&&(r[t]=arguments[e][t]);return r},r.prepareContent=function(e,t,i,o,l){return a.Promise.resolve(t).then((function(e){return n.blob&&(e instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(e)))&&"undefined"!=typeof FileReader?new a.Promise((function(t,r){var n=new FileReader;n.onload=function(e){t(e.target.result)},n.onerror=function(e){r(e.target.error)},n.readAsArrayBuffer(e)})):e})).then((function(t){var p=r.getTypeOf(t);return p?("arraybuffer"===p?t=r.transformTo("uint8array",t):"string"===p&&(l?t=s.decode(t):i&&!0!==o&&(t=function(e){return u(e,n.uint8array?new Uint8Array(e.length):new Array(e.length))}(t))),t):a.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(e,t,r){"use strict";var n=e("./reader/readerFor"),s=e("./utils"),i=e("./signature"),a=e("./zipEntry"),o=e("./support");function u(e){this.files=[],this.loadOptions=e}u.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+s.pretty(t)+", expected "+s.pretty(e)+")")}},isSignature:function(e,t){var r=this.reader.index;this.reader.setIndex(e);var n=this.reader.readString(4)===t;return this.reader.setIndex(r),n},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=o.uint8array?"uint8array":"array",r=s.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(r)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e,t,r,n=this.zip64EndOfCentralSize-44;0<n;)e=this.reader.readInt(2),t=this.reader.readInt(4),r=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,value:r}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(i.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(i.CENTRAL_FILE_HEADER);)(e=new a({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(i.CENTRAL_DIRECTORY_END);if(e<0)throw this.isSignature(0,i.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(e);var t=e;if(this.checkSignature(i.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===s.MAX_VALUE_16BITS||this.diskWithCentralDirStart===s.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===s.MAX_VALUE_16BITS||this.centralDirRecords===s.MAX_VALUE_16BITS||this.centralDirSize===s.MAX_VALUE_32BITS||this.centralDirOffset===s.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(i.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(i.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,i.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(i.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(i.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var r=this.centralDirOffset+this.centralDirSize;this.zip64&&(r+=20,r+=12+this.zip64EndOfCentralSize);var n=t-r;if(0<n)this.isSignature(t,i.CENTRAL_FILE_HEADER)||(this.reader.zero=n);else if(n<0)throw new Error("Corrupted zip: missing "+Math.abs(n)+" bytes.")},prepareReader:function(e){this.reader=n(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=u},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(e,t,r){"use strict";var n=e("./reader/readerFor"),s=e("./utils"),i=e("./compressedObject"),a=e("./crc32"),o=e("./utf8"),u=e("./compressions"),l=e("./support");function p(e,t){this.options=e,this.loadOptions=t}p.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(e){var t,r;if(e.skip(22),this.fileNameLength=e.readInt(2),r=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(r),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(t=function(e){for(var t in u)if(Object.prototype.hasOwnProperty.call(u,t)&&u[t].magic===e)return u[t];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+s.pretty(this.compressionMethod)+" unknown (inner file : "+s.transformTo("string",this.fileName)+")");this.decompressed=new i(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=n(this.extraFields[1].value);this.uncompressedSize===s.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===s.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===s.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===s.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,r,n,s=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4<s;)t=e.readInt(2),r=e.readInt(2),n=e.readData(r),this.extraFields[t]={id:t,length:r,value:n};e.setIndex(s)},handleUTF8:function(){var e=l.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=o.utf8decode(this.fileName),this.fileCommentStr=o.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(null!==t)this.fileNameStr=t;else{var r=s.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}var n=this.findExtraFieldUnicodeComment();if(null!==n)this.fileCommentStr=n;else{var i=s.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(i)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=n(e.value);return 1!==t.readInt(1)||a(this.fileName)!==t.readInt(4)?null:o.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=n(e.value);return 1!==t.readInt(1)||a(this.fileComment)!==t.readInt(4)?null:o.utf8decode(t.readData(e.length-5))}return null}},t.exports=p},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,t,r){"use strict";function n(e,t,r){this.name=e,this.dir=r.dir,this.date=r.date,this.comment=r.comment,this.unixPermissions=r.unixPermissions,this.dosPermissions=r.dosPermissions,this._data=t,this._dataBinary=r.binary,this.options={compression:r.compression,compressionOptions:r.compressionOptions}}var s=e("./stream/StreamHelper"),i=e("./stream/DataWorker"),a=e("./utf8"),o=e("./compressedObject"),u=e("./stream/GenericWorker");n.prototype={internalStream:function(e){var t=null,r="string";try{if(!e)throw new Error("No output type specified.");var n="string"===(r=e.toLowerCase())||"text"===r;"binarystring"!==r&&"text"!==r||(r="string"),t=this._decompressWorker();var i=!this._dataBinary;i&&!n&&(t=t.pipe(new a.Utf8EncodeWorker)),!i&&n&&(t=t.pipe(new a.Utf8DecodeWorker))}catch(e){(t=new u("error")).error(e)}return new s(t,r,"")},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof o&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var r=this._decompressWorker();return this._dataBinary||(r=r.pipe(new a.Utf8EncodeWorker)),o.createWorkerFrom(r,e,t)},_decompressWorker:function(){return this._data instanceof o?this._data.getContentWorker():this._data instanceof u?this._data:new i(this._data)}};for(var l=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],p=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},c=0;c<l.length;c++)n.prototype[l[c]]=p;t.exports=n},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(e,t,n){(function(e){"use strict";var r,n,s=e.MutationObserver||e.WebKitMutationObserver;if(s){var i=0,a=new s(p),o=e.document.createTextNode("");a.observe(o,{characterData:!0}),r=function(){o.data=i=++i%2}}else if(e.setImmediate||void 0===e.MessageChannel)r="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){p(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(p,0)};else{var u=new e.MessageChannel;u.port1.onmessage=p,r=function(){u.port2.postMessage(0)}}var l=[];function p(){var e,t;n=!0;for(var r=l.length;r;){for(t=l,l=[],e=-1;++e<r;)t[e]();r=l.length}n=!1}t.exports=function(e){1!==l.push(e)||n||r()}}).call(this,void 0!==r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(e,t,r){"use strict";var n=e("immediate");function s(){}var i={},a=["REJECTED"],o=["FULFILLED"],u=["PENDING"];function l(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=u,this.queue=[],this.outcome=void 0,e!==s&&d(this,e)}function p(e,t,r){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof r&&(this.onRejected=r,this.callRejected=this.otherCallRejected)}function c(e,t,r){n((function(){var n;try{n=t(r)}catch(n){return i.reject(e,n)}n===e?i.reject(e,new TypeError("Cannot resolve promise with itself")):i.resolve(e,n)}))}function h(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function d(e,t){var r=!1;function n(t){r||(r=!0,i.reject(e,t))}function s(t){r||(r=!0,i.resolve(e,t))}var a=f((function(){t(s,n)}));"error"===a.status&&n(a.value)}function f(e,t){var r={};try{r.value=e(t),r.status="success"}catch(e){r.status="error",r.value=e}return r}(t.exports=l).prototype.finally=function(e){if("function"!=typeof e)return this;var t=this.constructor;return this.then((function(r){return t.resolve(e()).then((function(){return r}))}),(function(r){return t.resolve(e()).then((function(){throw r}))}))},l.prototype.catch=function(e){return this.then(null,e)},l.prototype.then=function(e,t){if("function"!=typeof e&&this.state===o||"function"!=typeof t&&this.state===a)return this;var r=new this.constructor(s);return this.state!==u?c(r,this.state===o?e:t,this.outcome):this.queue.push(new p(r,e,t)),r},p.prototype.callFulfilled=function(e){i.resolve(this.promise,e)},p.prototype.otherCallFulfilled=function(e){c(this.promise,this.onFulfilled,e)},p.prototype.callRejected=function(e){i.reject(this.promise,e)},p.prototype.otherCallRejected=function(e){c(this.promise,this.onRejected,e)},i.resolve=function(e,t){var r=f(h,t);if("error"===r.status)return i.reject(e,r.value);var n=r.value;if(n)d(e,n);else{e.state=o,e.outcome=t;for(var s=-1,a=e.queue.length;++s<a;)e.queue[s].callFulfilled(t)}return e},i.reject=function(e,t){e.state=a,e.outcome=t;for(var r=-1,n=e.queue.length;++r<n;)e.queue[r].callRejected(t);return e},l.resolve=function(e){return e instanceof this?e:i.resolve(new this(s),e)},l.reject=function(e){var t=new this(s);return i.reject(t,e)},l.all=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var r=e.length,n=!1;if(!r)return this.resolve([]);for(var a=new Array(r),o=0,u=-1,l=new this(s);++u<r;)p(e[u],u);return l;function p(e,s){t.resolve(e).then((function(e){a[s]=e,++o!==r||n||(n=!0,i.resolve(l,a))}),(function(e){n||(n=!0,i.reject(l,e))}))}},l.race=function(e){if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var t=e.length,r=!1;if(!t)return this.resolve([]);for(var n,a=-1,o=new this(s);++a<t;)n=e[a],this.resolve(n).then((function(e){r||(r=!0,i.resolve(o,e))}),(function(e){r||(r=!0,i.reject(o,e))}));return o}},{immediate:36}],38:[function(e,t,r){"use strict";var n={};(0,e("./lib/utils/common").assign)(n,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),t.exports=n},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,t,r){"use strict";var n=e("./zlib/deflate"),s=e("./utils/common"),i=e("./utils/strings"),a=e("./zlib/messages"),o=e("./zlib/zstream"),u=Object.prototype.toString,l=0,p=-1,c=0,h=8;function d(e){if(!(this instanceof d))return new d(e);this.options=s.assign({level:p,method:h,chunkSize:16384,windowBits:15,memLevel:8,strategy:c,to:""},e||{});var t=this.options;t.raw&&0<t.windowBits?t.windowBits=-t.windowBits:t.gzip&&0<t.windowBits&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new o,this.strm.avail_out=0;var r=n.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==l)throw new Error(a[r]);if(t.header&&n.deflateSetHeader(this.strm,t.header),t.dictionary){var f;if(f="string"==typeof t.dictionary?i.string2buf(t.dictionary):"[object ArrayBuffer]"===u.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(r=n.deflateSetDictionary(this.strm,f))!==l)throw new Error(a[r]);this._dict_set=!0}}function f(e,t){var r=new d(t);if(r.push(e,!0),r.err)throw r.msg||a[r.err];return r.result}d.prototype.push=function(e,t){var r,a,o=this.strm,p=this.options.chunkSize;if(this.ended)return!1;a=t===~~t?t:!0===t?4:0,"string"==typeof e?o.input=i.string2buf(e):"[object ArrayBuffer]"===u.call(e)?o.input=new Uint8Array(e):o.input=e,o.next_in=0,o.avail_in=o.input.length;do{if(0===o.avail_out&&(o.output=new s.Buf8(p),o.next_out=0,o.avail_out=p),1!==(r=n.deflate(o,a))&&r!==l)return this.onEnd(r),!(this.ended=!0);0!==o.avail_out&&(0!==o.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(i.buf2binstring(s.shrinkBuf(o.output,o.next_out))):this.onData(s.shrinkBuf(o.output,o.next_out)))}while((0<o.avail_in||0===o.avail_out)&&1!==r);return 4===a?(r=n.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===l):2!==a||(this.onEnd(l),!(o.avail_out=0))},d.prototype.onData=function(e){this.chunks.push(e)},d.prototype.onEnd=function(e){e===l&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=s.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},r.Deflate=d,r.deflate=f,r.deflateRaw=function(e,t){return(t=t||{}).raw=!0,f(e,t)},r.gzip=function(e,t){return(t=t||{}).gzip=!0,f(e,t)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,t,r){"use strict";var n=e("./zlib/inflate"),s=e("./utils/common"),i=e("./utils/strings"),a=e("./zlib/constants"),o=e("./zlib/messages"),u=e("./zlib/zstream"),l=e("./zlib/gzheader"),p=Object.prototype.toString;function c(e){if(!(this instanceof c))return new c(e);this.options=s.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new u,this.strm.avail_out=0;var r=n.inflateInit2(this.strm,t.windowBits);if(r!==a.Z_OK)throw new Error(o[r]);this.header=new l,n.inflateGetHeader(this.strm,this.header)}function h(e,t){var r=new c(t);if(r.push(e,!0),r.err)throw r.msg||o[r.err];return r.result}c.prototype.push=function(e,t){var r,o,u,l,c,h,d=this.strm,f=this.options.chunkSize,m=this.options.dictionary,y=!1;if(this.ended)return!1;o=t===~~t?t:!0===t?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof e?d.input=i.binstring2buf(e):"[object ArrayBuffer]"===p.call(e)?d.input=new Uint8Array(e):d.input=e,d.next_in=0,d.avail_in=d.input.length;do{if(0===d.avail_out&&(d.output=new s.Buf8(f),d.next_out=0,d.avail_out=f),(r=n.inflate(d,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&m&&(h="string"==typeof m?i.string2buf(m):"[object ArrayBuffer]"===p.call(m)?new Uint8Array(m):m,r=n.inflateSetDictionary(this.strm,h)),r===a.Z_BUF_ERROR&&!0===y&&(r=a.Z_OK,y=!1),r!==a.Z_STREAM_END&&r!==a.Z_OK)return this.onEnd(r),!(this.ended=!0);d.next_out&&(0!==d.avail_out&&r!==a.Z_STREAM_END&&(0!==d.avail_in||o!==a.Z_FINISH&&o!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(u=i.utf8border(d.output,d.next_out),l=d.next_out-u,c=i.buf2string(d.output,u),d.next_out=l,d.avail_out=f-l,l&&s.arraySet(d.output,d.output,u,l,0),this.onData(c)):this.onData(s.shrinkBuf(d.output,d.next_out)))),0===d.avail_in&&0===d.avail_out&&(y=!0)}while((0<d.avail_in||0===d.avail_out)&&r!==a.Z_STREAM_END);return r===a.Z_STREAM_END&&(o=a.Z_FINISH),o===a.Z_FINISH?(r=n.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===a.Z_OK):o!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),!(d.avail_out=0))},c.prototype.onData=function(e){this.chunks.push(e)},c.prototype.onEnd=function(e){e===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=s.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},r.Inflate=c,r.inflate=h,r.inflateRaw=function(e,t){return(t=t||{}).raw=!0,h(e,t)},r.ungzip=h},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,t,r){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;r.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n])}}return e},r.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var s={arraySet:function(e,t,r,n,s){if(t.subarray&&e.subarray)e.set(t.subarray(r,r+n),s);else for(var i=0;i<n;i++)e[s+i]=t[r+i]},flattenChunks:function(e){var t,r,n,s,i,a;for(t=n=0,r=e.length;t<r;t++)n+=e[t].length;for(a=new Uint8Array(n),t=s=0,r=e.length;t<r;t++)i=e[t],a.set(i,s),s+=i.length;return a}},i={arraySet:function(e,t,r,n,s){for(var i=0;i<n;i++)e[s+i]=t[r+i]},flattenChunks:function(e){return[].concat.apply([],e)}};r.setTyped=function(e){e?(r.Buf8=Uint8Array,r.Buf16=Uint16Array,r.Buf32=Int32Array,r.assign(r,s)):(r.Buf8=Array,r.Buf16=Array,r.Buf32=Array,r.assign(r,i))},r.setTyped(n)},{}],42:[function(e,t,r){"use strict";var n=e("./common"),s=!0,i=!0;try{String.fromCharCode.apply(null,[0])}catch(e){s=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){i=!1}for(var a=new n.Buf8(256),o=0;o<256;o++)a[o]=252<=o?6:248<=o?5:240<=o?4:224<=o?3:192<=o?2:1;function u(e,t){if(t<65537&&(e.subarray&&i||!e.subarray&&s))return String.fromCharCode.apply(null,n.shrinkBuf(e,t));for(var r="",a=0;a<t;a++)r+=String.fromCharCode(e[a]);return r}a[254]=a[254]=1,r.string2buf=function(e){var t,r,s,i,a,o=e.length,u=0;for(i=0;i<o;i++)55296==(64512&(r=e.charCodeAt(i)))&&i+1<o&&56320==(64512&(s=e.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(s-56320),i++),u+=r<128?1:r<2048?2:r<65536?3:4;for(t=new n.Buf8(u),i=a=0;a<u;i++)55296==(64512&(r=e.charCodeAt(i)))&&i+1<o&&56320==(64512&(s=e.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(s-56320),i++),r<128?t[a++]=r:(r<2048?t[a++]=192|r>>>6:(r<65536?t[a++]=224|r>>>12:(t[a++]=240|r>>>18,t[a++]=128|r>>>12&63),t[a++]=128|r>>>6&63),t[a++]=128|63&r);return t},r.buf2binstring=function(e){return u(e,e.length)},r.binstring2buf=function(e){for(var t=new n.Buf8(e.length),r=0,s=t.length;r<s;r++)t[r]=e.charCodeAt(r);return t},r.buf2string=function(e,t){var r,n,s,i,o=t||e.length,l=new Array(2*o);for(r=n=0;r<o;)if((s=e[r++])<128)l[n++]=s;else if(4<(i=a[s]))l[n++]=65533,r+=i-1;else{for(s&=2===i?31:3===i?15:7;1<i&&r<o;)s=s<<6|63&e[r++],i--;1<i?l[n++]=65533:s<65536?l[n++]=s:(s-=65536,l[n++]=55296|s>>10&1023,l[n++]=56320|1023&s)}return u(l,n)},r.utf8border=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;return r<0||0===r?t:r+a[e[r]]>t?r:t}},{"./common":41}],43:[function(e,t,r){"use strict";t.exports=function(e,t,r,n){for(var s=65535&e|0,i=e>>>16&65535|0,a=0;0!==r;){for(r-=a=2e3<r?2e3:r;i=i+(s=s+t[n++]|0)|0,--a;);s%=65521,i%=65521}return s|i<<16|0}},{}],44:[function(e,t,r){"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(e,t,r){"use strict";var n=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();t.exports=function(e,t,r,s){var i=n,a=s+r;e^=-1;for(var o=s;o<a;o++)e=e>>>8^i[255&(e^t[o])];return-1^e}},{}],46:[function(e,t,r){"use strict";var n,s=e("../utils/common"),i=e("./trees"),a=e("./adler32"),o=e("./crc32"),u=e("./messages"),l=0,p=0,c=-2,h=2,d=8,f=286,m=30,y=19,g=2*f+1,D=15,x=3,E=258,b=E+x+1,C=42,v=113;function A(e,t){return e.msg=u[t],t}function S(e){return(e<<1)-(4<e?9:0)}function T(e){for(var t=e.length;0<=--t;)e[t]=0}function w(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),0!==r&&(s.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))}function F(e,t){i._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,w(e.strm)}function P(e,t){e.pending_buf[e.pending++]=t}function k(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function N(e,t){var r,n,s=e.max_chain_length,i=e.strstart,a=e.prev_length,o=e.nice_match,u=e.strstart>e.w_size-b?e.strstart-(e.w_size-b):0,l=e.window,p=e.w_mask,c=e.prev,h=e.strstart+E,d=l[i+a-1],f=l[i+a];e.prev_length>=e.good_match&&(s>>=2),o>e.lookahead&&(o=e.lookahead);do{if(l[(r=t)+a]===f&&l[r+a-1]===d&&l[r]===l[i]&&l[++r]===l[i+1]){i+=2,r++;do{}while(l[++i]===l[++r]&&l[++i]===l[++r]&&l[++i]===l[++r]&&l[++i]===l[++r]&&l[++i]===l[++r]&&l[++i]===l[++r]&&l[++i]===l[++r]&&l[++i]===l[++r]&&i<h);if(n=E-(h-i),i=h-E,a<n){if(e.match_start=t,o<=(a=n))break;d=l[i+a-1],f=l[i+a]}}}while((t=c[t&p])>u&&0!=--s);return a<=e.lookahead?a:e.lookahead}function I(e){var t,r,n,i,u,l,p,c,h,d,f=e.w_size;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=f+(f-b)){for(s.arraySet(e.window,e.window,f,f,0),e.match_start-=f,e.strstart-=f,e.block_start-=f,t=r=e.hash_size;n=e.head[--t],e.head[t]=f<=n?n-f:0,--r;);for(t=r=f;n=e.prev[--t],e.prev[t]=f<=n?n-f:0,--r;);i+=f}if(0===e.strm.avail_in)break;if(l=e.strm,p=e.window,c=e.strstart+e.lookahead,d=void 0,(h=i)<(d=l.avail_in)&&(d=h),r=0===d?0:(l.avail_in-=d,s.arraySet(p,l.input,l.next_in,d,c),1===l.state.wrap?l.adler=a(l.adler,p,d,c):2===l.state.wrap&&(l.adler=o(l.adler,p,d,c)),l.next_in+=d,l.total_in+=d,d),e.lookahead+=r,e.lookahead+e.insert>=x)for(u=e.strstart-e.insert,e.ins_h=e.window[u],e.ins_h=(e.ins_h<<e.hash_shift^e.window[u+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[u+x-1])&e.hash_mask,e.prev[u&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=u,u++,e.insert--,!(e.lookahead+e.insert<x)););}while(e.lookahead<b&&0!==e.strm.avail_in)}function B(e,t){for(var r,n;;){if(e.lookahead<b){if(I(e),e.lookahead<b&&t===l)return 1;if(0===e.lookahead)break}if(r=0,e.lookahead>=x&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+x-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==r&&e.strstart-r<=e.w_size-b&&(e.match_length=N(e,r)),e.match_length>=x)if(n=i._tr_tally(e,e.strstart-e.match_start,e.match_length-x),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=x){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+x-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,0!=--e.match_length;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else n=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(F(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<x-1?e.strstart:x-1,4===t?(F(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(F(e,!1),0===e.strm.avail_out)?1:2}function _(e,t){for(var r,n,s;;){if(e.lookahead<b){if(I(e),e.lookahead<b&&t===l)return 1;if(0===e.lookahead)break}if(r=0,e.lookahead>=x&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+x-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=x-1,0!==r&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-b&&(e.match_length=N(e,r),e.match_length<=5&&(1===e.strategy||e.match_length===x&&4096<e.strstart-e.match_start)&&(e.match_length=x-1)),e.prev_length>=x&&e.match_length<=e.prev_length){for(s=e.strstart+e.lookahead-x,n=i._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-x),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=s&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+x-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!=--e.prev_length;);if(e.match_available=0,e.match_length=x-1,e.strstart++,n&&(F(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((n=i._tr_tally(e,0,e.window[e.strstart-1]))&&F(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=i._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<x-1?e.strstart:x-1,4===t?(F(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(F(e,!1),0===e.strm.avail_out)?1:2}function O(e,t,r,n,s){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=n,this.func=s}function L(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=d,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new s.Buf16(2*g),this.dyn_dtree=new s.Buf16(2*(2*m+1)),this.bl_tree=new s.Buf16(2*(2*y+1)),T(this.dyn_ltree),T(this.dyn_dtree),T(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new s.Buf16(D+1),this.heap=new s.Buf16(2*f+1),T(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new s.Buf16(2*f+1),T(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function j(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=h,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?C:v,e.adler=2===t.wrap?0:1,t.last_flush=l,i._tr_init(t),p):A(e,c)}function M(e){var t=j(e);return t===p&&function(e){e.window_size=2*e.w_size,T(e.head),e.max_lazy_match=n[e.level].max_lazy,e.good_match=n[e.level].good_length,e.nice_match=n[e.level].nice_length,e.max_chain_length=n[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=x-1,e.match_available=0,e.ins_h=0}(e.state),t}function R(e,t,r,n,i,a){if(!e)return c;var o=1;if(-1===t&&(t=6),n<0?(o=0,n=-n):15<n&&(o=2,n-=16),i<1||9<i||r!==d||n<8||15<n||t<0||9<t||a<0||4<a)return A(e,c);8===n&&(n=9);var u=new L;return(e.state=u).strm=e,u.wrap=o,u.gzhead=null,u.w_bits=n,u.w_size=1<<u.w_bits,u.w_mask=u.w_size-1,u.hash_bits=i+7,u.hash_size=1<<u.hash_bits,u.hash_mask=u.hash_size-1,u.hash_shift=~~((u.hash_bits+x-1)/x),u.window=new s.Buf8(2*u.w_size),u.head=new s.Buf16(u.hash_size),u.prev=new s.Buf16(u.w_size),u.lit_bufsize=1<<i+6,u.pending_buf_size=4*u.lit_bufsize,u.pending_buf=new s.Buf8(u.pending_buf_size),u.d_buf=1*u.lit_bufsize,u.l_buf=3*u.lit_bufsize,u.level=t,u.strategy=a,u.method=r,M(e)}n=[new O(0,0,0,0,(function(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(I(e),0===e.lookahead&&t===l)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,F(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-b&&(F(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(F(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(F(e,!1),e.strm.avail_out),1)})),new O(4,4,8,4,B),new O(4,5,16,8,B),new O(4,6,32,32,B),new O(4,4,16,16,_),new O(8,16,32,32,_),new O(8,16,128,128,_),new O(8,32,128,256,_),new O(32,128,258,1024,_),new O(32,258,258,4096,_)],r.deflateInit=function(e,t){return R(e,t,d,15,8,0)},r.deflateInit2=R,r.deflateReset=M,r.deflateResetKeep=j,r.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?c:(e.state.gzhead=t,p):c},r.deflate=function(e,t){var r,s,a,u;if(!e||!e.state||5<t||t<0)return e?A(e,c):c;if(s=e.state,!e.output||!e.input&&0!==e.avail_in||666===s.status&&4!==t)return A(e,0===e.avail_out?-5:c);if(s.strm=e,r=s.last_flush,s.last_flush=t,s.status===C)if(2===s.wrap)e.adler=0,P(s,31),P(s,139),P(s,8),s.gzhead?(P(s,(s.gzhead.text?1:0)+(s.gzhead.hcrc?2:0)+(s.gzhead.extra?4:0)+(s.gzhead.name?8:0)+(s.gzhead.comment?16:0)),P(s,255&s.gzhead.time),P(s,s.gzhead.time>>8&255),P(s,s.gzhead.time>>16&255),P(s,s.gzhead.time>>24&255),P(s,9===s.level?2:2<=s.strategy||s.level<2?4:0),P(s,255&s.gzhead.os),s.gzhead.extra&&s.gzhead.extra.length&&(P(s,255&s.gzhead.extra.length),P(s,s.gzhead.extra.length>>8&255)),s.gzhead.hcrc&&(e.adler=o(e.adler,s.pending_buf,s.pending,0)),s.gzindex=0,s.status=69):(P(s,0),P(s,0),P(s,0),P(s,0),P(s,0),P(s,9===s.level?2:2<=s.strategy||s.level<2?4:0),P(s,3),s.status=v);else{var h=d+(s.w_bits-8<<4)<<8;h|=(2<=s.strategy||s.level<2?0:s.level<6?1:6===s.level?2:3)<<6,0!==s.strstart&&(h|=32),h+=31-h%31,s.status=v,k(s,h),0!==s.strstart&&(k(s,e.adler>>>16),k(s,65535&e.adler)),e.adler=1}if(69===s.status)if(s.gzhead.extra){for(a=s.pending;s.gzindex<(65535&s.gzhead.extra.length)&&(s.pending!==s.pending_buf_size||(s.gzhead.hcrc&&s.pending>a&&(e.adler=o(e.adler,s.pending_buf,s.pending-a,a)),w(e),a=s.pending,s.pending!==s.pending_buf_size));)P(s,255&s.gzhead.extra[s.gzindex]),s.gzindex++;s.gzhead.hcrc&&s.pending>a&&(e.adler=o(e.adler,s.pending_buf,s.pending-a,a)),s.gzindex===s.gzhead.extra.length&&(s.gzindex=0,s.status=73)}else s.status=73;if(73===s.status)if(s.gzhead.name){a=s.pending;do{if(s.pending===s.pending_buf_size&&(s.gzhead.hcrc&&s.pending>a&&(e.adler=o(e.adler,s.pending_buf,s.pending-a,a)),w(e),a=s.pending,s.pending===s.pending_buf_size)){u=1;break}u=s.gzindex<s.gzhead.name.length?255&s.gzhead.name.charCodeAt(s.gzindex++):0,P(s,u)}while(0!==u);s.gzhead.hcrc&&s.pending>a&&(e.adler=o(e.adler,s.pending_buf,s.pending-a,a)),0===u&&(s.gzindex=0,s.status=91)}else s.status=91;if(91===s.status)if(s.gzhead.comment){a=s.pending;do{if(s.pending===s.pending_buf_size&&(s.gzhead.hcrc&&s.pending>a&&(e.adler=o(e.adler,s.pending_buf,s.pending-a,a)),w(e),a=s.pending,s.pending===s.pending_buf_size)){u=1;break}u=s.gzindex<s.gzhead.comment.length?255&s.gzhead.comment.charCodeAt(s.gzindex++):0,P(s,u)}while(0!==u);s.gzhead.hcrc&&s.pending>a&&(e.adler=o(e.adler,s.pending_buf,s.pending-a,a)),0===u&&(s.status=103)}else s.status=103;if(103===s.status&&(s.gzhead.hcrc?(s.pending+2>s.pending_buf_size&&w(e),s.pending+2<=s.pending_buf_size&&(P(s,255&e.adler),P(s,e.adler>>8&255),e.adler=0,s.status=v)):s.status=v),0!==s.pending){if(w(e),0===e.avail_out)return s.last_flush=-1,p}else if(0===e.avail_in&&S(t)<=S(r)&&4!==t)return A(e,-5);if(666===s.status&&0!==e.avail_in)return A(e,-5);if(0!==e.avail_in||0!==s.lookahead||t!==l&&666!==s.status){var f=2===s.strategy?function(e,t){for(var r;;){if(0===e.lookahead&&(I(e),0===e.lookahead)){if(t===l)return 1;break}if(e.match_length=0,r=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(F(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(F(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(F(e,!1),0===e.strm.avail_out)?1:2}(s,t):3===s.strategy?function(e,t){for(var r,n,s,a,o=e.window;;){if(e.lookahead<=E){if(I(e),e.lookahead<=E&&t===l)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=x&&0<e.strstart&&(n=o[s=e.strstart-1])===o[++s]&&n===o[++s]&&n===o[++s]){a=e.strstart+E;do{}while(n===o[++s]&&n===o[++s]&&n===o[++s]&&n===o[++s]&&n===o[++s]&&n===o[++s]&&n===o[++s]&&n===o[++s]&&s<a);e.match_length=E-(a-s),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=x?(r=i._tr_tally(e,1,e.match_length-x),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(F(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(F(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(F(e,!1),0===e.strm.avail_out)?1:2}(s,t):n[s.level].func(s,t);if(3!==f&&4!==f||(s.status=666),1===f||3===f)return 0===e.avail_out&&(s.last_flush=-1),p;if(2===f&&(1===t?i._tr_align(s):5!==t&&(i._tr_stored_block(s,0,0,!1),3===t&&(T(s.head),0===s.lookahead&&(s.strstart=0,s.block_start=0,s.insert=0))),w(e),0===e.avail_out))return s.last_flush=-1,p}return 4!==t?p:s.wrap<=0?1:(2===s.wrap?(P(s,255&e.adler),P(s,e.adler>>8&255),P(s,e.adler>>16&255),P(s,e.adler>>24&255),P(s,255&e.total_in),P(s,e.total_in>>8&255),P(s,e.total_in>>16&255),P(s,e.total_in>>24&255)):(k(s,e.adler>>>16),k(s,65535&e.adler)),w(e),0<s.wrap&&(s.wrap=-s.wrap),0!==s.pending?p:1)},r.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==C&&69!==t&&73!==t&&91!==t&&103!==t&&t!==v&&666!==t?A(e,c):(e.state=null,t===v?A(e,-3):p):c},r.deflateSetDictionary=function(e,t){var r,n,i,o,u,l,h,d,f=t.length;if(!e||!e.state)return c;if(2===(o=(r=e.state).wrap)||1===o&&r.status!==C||r.lookahead)return c;for(1===o&&(e.adler=a(e.adler,t,f,0)),r.wrap=0,f>=r.w_size&&(0===o&&(T(r.head),r.strstart=0,r.block_start=0,r.insert=0),d=new s.Buf8(r.w_size),s.arraySet(d,t,f-r.w_size,r.w_size,0),t=d,f=r.w_size),u=e.avail_in,l=e.next_in,h=e.input,e.avail_in=f,e.next_in=0,e.input=t,I(r);r.lookahead>=x;){for(n=r.strstart,i=r.lookahead-(x-1);r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+x-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++,--i;);r.strstart=n,r.lookahead=x-1,I(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=x-1,r.match_available=0,e.next_in=l,e.input=h,e.avail_in=u,r.wrap=o,p},r.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,t,r){"use strict";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(e,t,r){"use strict";t.exports=function(e,t){var r,n,s,i,a,o,u,l,p,c,h,d,f,m,y,g,D,x,E,b,C,v,A,S,T;r=e.state,n=e.next_in,S=e.input,s=n+(e.avail_in-5),i=e.next_out,T=e.output,a=i-(t-e.avail_out),o=i+(e.avail_out-257),u=r.dmax,l=r.wsize,p=r.whave,c=r.wnext,h=r.window,d=r.hold,f=r.bits,m=r.lencode,y=r.distcode,g=(1<<r.lenbits)-1,D=(1<<r.distbits)-1;e:do{f<15&&(d+=S[n++]<<f,f+=8,d+=S[n++]<<f,f+=8),x=m[d&g];t:for(;;){if(d>>>=E=x>>>24,f-=E,0==(E=x>>>16&255))T[i++]=65535&x;else{if(!(16&E)){if(0==(64&E)){x=m[(65535&x)+(d&(1<<E)-1)];continue t}if(32&E){r.mode=12;break e}e.msg="invalid literal/length code",r.mode=30;break e}b=65535&x,(E&=15)&&(f<E&&(d+=S[n++]<<f,f+=8),b+=d&(1<<E)-1,d>>>=E,f-=E),f<15&&(d+=S[n++]<<f,f+=8,d+=S[n++]<<f,f+=8),x=y[d&D];r:for(;;){if(d>>>=E=x>>>24,f-=E,!(16&(E=x>>>16&255))){if(0==(64&E)){x=y[(65535&x)+(d&(1<<E)-1)];continue r}e.msg="invalid distance code",r.mode=30;break e}if(C=65535&x,f<(E&=15)&&(d+=S[n++]<<f,(f+=8)<E&&(d+=S[n++]<<f,f+=8)),u<(C+=d&(1<<E)-1)){e.msg="invalid distance too far back",r.mode=30;break e}if(d>>>=E,f-=E,(E=i-a)<C){if(p<(E=C-E)&&r.sane){e.msg="invalid distance too far back",r.mode=30;break e}if(A=h,(v=0)===c){if(v+=l-E,E<b){for(b-=E;T[i++]=h[v++],--E;);v=i-C,A=T}}else if(c<E){if(v+=l+c-E,(E-=c)<b){for(b-=E;T[i++]=h[v++],--E;);if(v=0,c<b){for(b-=E=c;T[i++]=h[v++],--E;);v=i-C,A=T}}}else if(v+=c-E,E<b){for(b-=E;T[i++]=h[v++],--E;);v=i-C,A=T}for(;2<b;)T[i++]=A[v++],T[i++]=A[v++],T[i++]=A[v++],b-=3;b&&(T[i++]=A[v++],1<b&&(T[i++]=A[v++]))}else{for(v=i-C;T[i++]=T[v++],T[i++]=T[v++],T[i++]=T[v++],2<(b-=3););b&&(T[i++]=T[v++],1<b&&(T[i++]=T[v++]))}break}}break}}while(n<s&&i<o);n-=b=f>>3,d&=(1<<(f-=b<<3))-1,e.next_in=n,e.next_out=i,e.avail_in=n<s?s-n+5:5-(n-s),e.avail_out=i<o?o-i+257:257-(i-o),r.hold=d,r.bits=f}},{}],49:[function(e,t,r){"use strict";var n=e("../utils/common"),s=e("./adler32"),i=e("./crc32"),a=e("./inffast"),o=e("./inftrees"),u=0,l=-2,p=1,c=852,h=592;function d(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function f(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function m(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=p,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new n.Buf32(c),t.distcode=t.distdyn=new n.Buf32(h),t.sane=1,t.back=-1,u):l}function y(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,m(e)):l}function g(e,t){var r,n;return e&&e.state?(n=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t)?l:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,y(e))):l}function D(e,t){var r,n;return e?(n=new f,(e.state=n).window=null,(r=g(e,t))!==u&&(e.state=null),r):l}var x,E,b=!0;function C(e){if(b){var t;for(x=new n.Buf32(512),E=new n.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(o(1,e.lens,0,288,x,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;o(2,e.lens,0,32,E,0,e.work,{bits:5}),b=!1}e.lencode=x,e.lenbits=9,e.distcode=E,e.distbits=5}function v(e,t,r,s){var i,a=e.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new n.Buf8(a.wsize)),s>=a.wsize?(n.arraySet(a.window,t,r-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):(s<(i=a.wsize-a.wnext)&&(i=s),n.arraySet(a.window,t,r-s,i,a.wnext),(s-=i)?(n.arraySet(a.window,t,r-s,s,0),a.wnext=s,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=i))),0}r.inflateReset=y,r.inflateReset2=g,r.inflateResetKeep=m,r.inflateInit=function(e){return D(e,15)},r.inflateInit2=D,r.inflate=function(e,t){var r,c,h,f,m,y,g,D,x,E,b,A,S,T,w,F,P,k,N,I,B,_,O,L,j=0,M=new n.Buf8(4),R=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return l;12===(r=e.state).mode&&(r.mode=13),m=e.next_out,h=e.output,g=e.avail_out,f=e.next_in,c=e.input,y=e.avail_in,D=r.hold,x=r.bits,E=y,b=g,_=u;e:for(;;)switch(r.mode){case p:if(0===r.wrap){r.mode=13;break}for(;x<16;){if(0===y)break e;y--,D+=c[f++]<<x,x+=8}if(2&r.wrap&&35615===D){M[r.check=0]=255&D,M[1]=D>>>8&255,r.check=i(r.check,M,2,0),x=D=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&D)<<8)+(D>>8))%31){e.msg="incorrect header check",r.mode=30;break}if(8!=(15&D)){e.msg="unknown compression method",r.mode=30;break}if(x-=4,B=8+(15&(D>>>=4)),0===r.wbits)r.wbits=B;else if(B>r.wbits){e.msg="invalid window size",r.mode=30;break}r.dmax=1<<B,e.adler=r.check=1,r.mode=512&D?10:12,x=D=0;break;case 2:for(;x<16;){if(0===y)break e;y--,D+=c[f++]<<x,x+=8}if(r.flags=D,8!=(255&r.flags)){e.msg="unknown compression method",r.mode=30;break}if(57344&r.flags){e.msg="unknown header flags set",r.mode=30;break}r.head&&(r.head.text=D>>8&1),512&r.flags&&(M[0]=255&D,M[1]=D>>>8&255,r.check=i(r.check,M,2,0)),x=D=0,r.mode=3;case 3:for(;x<32;){if(0===y)break e;y--,D+=c[f++]<<x,x+=8}r.head&&(r.head.time=D),512&r.flags&&(M[0]=255&D,M[1]=D>>>8&255,M[2]=D>>>16&255,M[3]=D>>>24&255,r.check=i(r.check,M,4,0)),x=D=0,r.mode=4;case 4:for(;x<16;){if(0===y)break e;y--,D+=c[f++]<<x,x+=8}r.head&&(r.head.xflags=255&D,r.head.os=D>>8),512&r.flags&&(M[0]=255&D,M[1]=D>>>8&255,r.check=i(r.check,M,2,0)),x=D=0,r.mode=5;case 5:if(1024&r.flags){for(;x<16;){if(0===y)break e;y--,D+=c[f++]<<x,x+=8}r.length=D,r.head&&(r.head.extra_len=D),512&r.flags&&(M[0]=255&D,M[1]=D>>>8&255,r.check=i(r.check,M,2,0)),x=D=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&(y<(A=r.length)&&(A=y),A&&(r.head&&(B=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),n.arraySet(r.head.extra,c,f,A,B)),512&r.flags&&(r.check=i(r.check,c,A,f)),y-=A,f+=A,r.length-=A),r.length))break e;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===y)break e;for(A=0;B=c[f+A++],r.head&&B&&r.length<65536&&(r.head.name+=String.fromCharCode(B)),B&&A<y;);if(512&r.flags&&(r.check=i(r.check,c,A,f)),y-=A,f+=A,B)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===y)break e;for(A=0;B=c[f+A++],r.head&&B&&r.length<65536&&(r.head.comment+=String.fromCharCode(B)),B&&A<y;);if(512&r.flags&&(r.check=i(r.check,c,A,f)),y-=A,f+=A,B)break e}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;x<16;){if(0===y)break e;y--,D+=c[f++]<<x,x+=8}if(D!==(65535&r.check)){e.msg="header crc mismatch",r.mode=30;break}x=D=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=12;break;case 10:for(;x<32;){if(0===y)break e;y--,D+=c[f++]<<x,x+=8}e.adler=r.check=d(D),x=D=0,r.mode=11;case 11:if(0===r.havedict)return e.next_out=m,e.avail_out=g,e.next_in=f,e.avail_in=y,r.hold=D,r.bits=x,2;e.adler=r.check=1,r.mode=12;case 12:if(5===t||6===t)break e;case 13:if(r.last){D>>>=7&x,x-=7&x,r.mode=27;break}for(;x<3;){if(0===y)break e;y--,D+=c[f++]<<x,x+=8}switch(r.last=1&D,x-=1,3&(D>>>=1)){case 0:r.mode=14;break;case 1:if(C(r),r.mode=20,6!==t)break;D>>>=2,x-=2;break e;case 2:r.mode=17;break;case 3:e.msg="invalid block type",r.mode=30}D>>>=2,x-=2;break;case 14:for(D>>>=7&x,x-=7&x;x<32;){if(0===y)break e;y--,D+=c[f++]<<x,x+=8}if((65535&D)!=(D>>>16^65535)){e.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&D,x=D=0,r.mode=15,6===t)break e;case 15:r.mode=16;case 16:if(A=r.length){if(y<A&&(A=y),g<A&&(A=g),0===A)break e;n.arraySet(h,c,f,A,m),y-=A,f+=A,g-=A,m+=A,r.length-=A;break}r.mode=12;break;case 17:for(;x<14;){if(0===y)break e;y--,D+=c[f++]<<x,x+=8}if(r.nlen=257+(31&D),D>>>=5,x-=5,r.ndist=1+(31&D),D>>>=5,x-=5,r.ncode=4+(15&D),D>>>=4,x-=4,286<r.nlen||30<r.ndist){e.msg="too many length or distance symbols",r.mode=30;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;x<3;){if(0===y)break e;y--,D+=c[f++]<<x,x+=8}r.lens[R[r.have++]]=7&D,D>>>=3,x-=3}for(;r.have<19;)r.lens[R[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,O={bits:r.lenbits},_=o(0,r.lens,0,19,r.lencode,0,r.work,O),r.lenbits=O.bits,_){e.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;F=(j=r.lencode[D&(1<<r.lenbits)-1])>>>16&255,P=65535&j,!((w=j>>>24)<=x);){if(0===y)break e;y--,D+=c[f++]<<x,x+=8}if(P<16)D>>>=w,x-=w,r.lens[r.have++]=P;else{if(16===P){for(L=w+2;x<L;){if(0===y)break e;y--,D+=c[f++]<<x,x+=8}if(D>>>=w,x-=w,0===r.have){e.msg="invalid bit length repeat",r.mode=30;break}B=r.lens[r.have-1],A=3+(3&D),D>>>=2,x-=2}else if(17===P){for(L=w+3;x<L;){if(0===y)break e;y--,D+=c[f++]<<x,x+=8}x-=w,B=0,A=3+(7&(D>>>=w)),D>>>=3,x-=3}else{for(L=w+7;x<L;){if(0===y)break e;y--,D+=c[f++]<<x,x+=8}x-=w,B=0,A=11+(127&(D>>>=w)),D>>>=7,x-=7}if(r.have+A>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=30;break}for(;A--;)r.lens[r.have++]=B}}if(30===r.mode)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,O={bits:r.lenbits},_=o(1,r.lens,0,r.nlen,r.lencode,0,r.work,O),r.lenbits=O.bits,_){e.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,O={bits:r.distbits},_=o(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,O),r.distbits=O.bits,_){e.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===t)break e;case 20:r.mode=21;case 21:if(6<=y&&258<=g){e.next_out=m,e.avail_out=g,e.next_in=f,e.avail_in=y,r.hold=D,r.bits=x,a(e,b),m=e.next_out,h=e.output,g=e.avail_out,f=e.next_in,c=e.input,y=e.avail_in,D=r.hold,x=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;F=(j=r.lencode[D&(1<<r.lenbits)-1])>>>16&255,P=65535&j,!((w=j>>>24)<=x);){if(0===y)break e;y--,D+=c[f++]<<x,x+=8}if(F&&0==(240&F)){for(k=w,N=F,I=P;F=(j=r.lencode[I+((D&(1<<k+N)-1)>>k)])>>>16&255,P=65535&j,!(k+(w=j>>>24)<=x);){if(0===y)break e;y--,D+=c[f++]<<x,x+=8}D>>>=k,x-=k,r.back+=k}if(D>>>=w,x-=w,r.back+=w,r.length=P,0===F){r.mode=26;break}if(32&F){r.back=-1,r.mode=12;break}if(64&F){e.msg="invalid literal/length code",r.mode=30;break}r.extra=15&F,r.mode=22;case 22:if(r.extra){for(L=r.extra;x<L;){if(0===y)break e;y--,D+=c[f++]<<x,x+=8}r.length+=D&(1<<r.extra)-1,D>>>=r.extra,x-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;F=(j=r.distcode[D&(1<<r.distbits)-1])>>>16&255,P=65535&j,!((w=j>>>24)<=x);){if(0===y)break e;y--,D+=c[f++]<<x,x+=8}if(0==(240&F)){for(k=w,N=F,I=P;F=(j=r.distcode[I+((D&(1<<k+N)-1)>>k)])>>>16&255,P=65535&j,!(k+(w=j>>>24)<=x);){if(0===y)break e;y--,D+=c[f++]<<x,x+=8}D>>>=k,x-=k,r.back+=k}if(D>>>=w,x-=w,r.back+=w,64&F){e.msg="invalid distance code",r.mode=30;break}r.offset=P,r.extra=15&F,r.mode=24;case 24:if(r.extra){for(L=r.extra;x<L;){if(0===y)break e;y--,D+=c[f++]<<x,x+=8}r.offset+=D&(1<<r.extra)-1,D>>>=r.extra,x-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===g)break e;if(A=b-g,r.offset>A){if((A=r.offset-A)>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=30;break}S=A>r.wnext?(A-=r.wnext,r.wsize-A):r.wnext-A,A>r.length&&(A=r.length),T=r.window}else T=h,S=m-r.offset,A=r.length;for(g<A&&(A=g),g-=A,r.length-=A;h[m++]=T[S++],--A;);0===r.length&&(r.mode=21);break;case 26:if(0===g)break e;h[m++]=r.length,g--,r.mode=21;break;case 27:if(r.wrap){for(;x<32;){if(0===y)break e;y--,D|=c[f++]<<x,x+=8}if(b-=g,e.total_out+=b,r.total+=b,b&&(e.adler=r.check=r.flags?i(r.check,h,b,m-b):s(r.check,h,b,m-b)),b=g,(r.flags?D:d(D))!==r.check){e.msg="incorrect data check",r.mode=30;break}x=D=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;x<32;){if(0===y)break e;y--,D+=c[f++]<<x,x+=8}if(D!==(4294967295&r.total)){e.msg="incorrect length check",r.mode=30;break}x=D=0}r.mode=29;case 29:_=1;break e;case 30:_=-3;break e;case 31:return-4;default:return l}return e.next_out=m,e.avail_out=g,e.next_in=f,e.avail_in=y,r.hold=D,r.bits=x,(r.wsize||b!==e.avail_out&&r.mode<30&&(r.mode<27||4!==t))&&v(e,e.output,e.next_out,b-e.avail_out)?(r.mode=31,-4):(E-=e.avail_in,b-=e.avail_out,e.total_in+=E,e.total_out+=b,r.total+=b,r.wrap&&b&&(e.adler=r.check=r.flags?i(r.check,h,b,e.next_out-b):s(r.check,h,b,e.next_out-b)),e.data_type=r.bits+(r.last?64:0)+(12===r.mode?128:0)+(20===r.mode||15===r.mode?256:0),(0==E&&0===b||4===t)&&_===u&&(_=-5),_)},r.inflateEnd=function(e){if(!e||!e.state)return l;var t=e.state;return t.window&&(t.window=null),e.state=null,u},r.inflateGetHeader=function(e,t){var r;return e&&e.state?0==(2&(r=e.state).wrap)?l:((r.head=t).done=!1,u):l},r.inflateSetDictionary=function(e,t){var r,n=t.length;return e&&e.state?0!==(r=e.state).wrap&&11!==r.mode?l:11===r.mode&&s(1,t,n,0)!==r.check?-3:v(e,t,n,n)?(r.mode=31,-4):(r.havedict=1,u):l},r.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,t,r){"use strict";var n=e("../utils/common"),s=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],i=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],o=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,r,u,l,p,c,h){var d,f,m,y,g,D,x,E,b,C=h.bits,v=0,A=0,S=0,T=0,w=0,F=0,P=0,k=0,N=0,I=0,B=null,_=0,O=new n.Buf16(16),L=new n.Buf16(16),j=null,M=0;for(v=0;v<=15;v++)O[v]=0;for(A=0;A<u;A++)O[t[r+A]]++;for(w=C,T=15;1<=T&&0===O[T];T--);if(T<w&&(w=T),0===T)return l[p++]=20971520,l[p++]=20971520,h.bits=1,0;for(S=1;S<T&&0===O[S];S++);for(w<S&&(w=S),v=k=1;v<=15;v++)if(k<<=1,(k-=O[v])<0)return-1;if(0<k&&(0===e||1!==T))return-1;for(L[1]=0,v=1;v<15;v++)L[v+1]=L[v]+O[v];for(A=0;A<u;A++)0!==t[r+A]&&(c[L[t[r+A]]++]=A);if(D=0===e?(B=j=c,19):1===e?(B=s,_-=257,j=i,M-=257,256):(B=a,j=o,-1),v=S,g=p,P=A=I=0,m=-1,y=(N=1<<(F=w))-1,1===e&&852<N||2===e&&592<N)return 1;for(;;){for(x=v-P,b=c[A]<D?(E=0,c[A]):c[A]>D?(E=j[M+c[A]],B[_+c[A]]):(E=96,0),d=1<<v-P,S=f=1<<F;l[g+(I>>P)+(f-=d)]=x<<24|E<<16|b|0,0!==f;);for(d=1<<v-1;I&d;)d>>=1;if(0!==d?(I&=d-1,I+=d):I=0,A++,0==--O[v]){if(v===T)break;v=t[r+c[A]]}if(w<v&&(I&y)!==m){for(0===P&&(P=w),g+=S,k=1<<(F=v-P);F+P<T&&!((k-=O[F+P])<=0);)F++,k<<=1;if(N+=1<<F,1===e&&852<N||2===e&&592<N)return 1;l[m=I&y]=w<<24|F<<16|g-p|0}}return 0!==I&&(l[g+I]=v-P<<24|64<<16|0),h.bits=w,0}},{"../utils/common":41}],51:[function(e,t,r){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(e,t,r){"use strict";var n=e("../utils/common");function s(e){for(var t=e.length;0<=--t;)e[t]=0}var i=256,a=286,o=30,u=15,l=16,p=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],c=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],h=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],d=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],f=new Array(576);s(f);var m=new Array(60);s(m);var y=new Array(512);s(y);var g=new Array(256);s(g);var D=new Array(29);s(D);var x,E,b,C=new Array(o);function v(e,t,r,n,s){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=s,this.has_stree=e&&e.length}function A(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function S(e){return e<256?y[e]:y[256+(e>>>7)]}function T(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function w(e,t,r){e.bi_valid>l-r?(e.bi_buf|=t<<e.bi_valid&65535,T(e,e.bi_buf),e.bi_buf=t>>l-e.bi_valid,e.bi_valid+=r-l):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function F(e,t,r){w(e,r[2*t],r[2*t+1])}function P(e,t){for(var r=0;r|=1&e,e>>>=1,r<<=1,0<--t;);return r>>>1}function k(e,t,r){var n,s,i=new Array(u+1),a=0;for(n=1;n<=u;n++)i[n]=a=a+r[n-1]<<1;for(s=0;s<=t;s++){var o=e[2*s+1];0!==o&&(e[2*s]=P(i[o]++,o))}}function N(e){var t;for(t=0;t<a;t++)e.dyn_ltree[2*t]=0;for(t=0;t<o;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function I(e){8<e.bi_valid?T(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function B(e,t,r,n){var s=2*t,i=2*r;return e[s]<e[i]||e[s]===e[i]&&n[t]<=n[r]}function _(e,t,r){for(var n=e.heap[r],s=r<<1;s<=e.heap_len&&(s<e.heap_len&&B(t,e.heap[s+1],e.heap[s],e.depth)&&s++,!B(t,n,e.heap[s],e.depth));)e.heap[r]=e.heap[s],r=s,s<<=1;e.heap[r]=n}function O(e,t,r){var n,s,a,o,u=0;if(0!==e.last_lit)for(;n=e.pending_buf[e.d_buf+2*u]<<8|e.pending_buf[e.d_buf+2*u+1],s=e.pending_buf[e.l_buf+u],u++,0===n?F(e,s,t):(F(e,(a=g[s])+i+1,t),0!==(o=p[a])&&w(e,s-=D[a],o),F(e,a=S(--n),r),0!==(o=c[a])&&w(e,n-=C[a],o)),u<e.last_lit;);F(e,256,t)}function L(e,t){var r,n,s,i=t.dyn_tree,a=t.stat_desc.static_tree,o=t.stat_desc.has_stree,l=t.stat_desc.elems,p=-1;for(e.heap_len=0,e.heap_max=573,r=0;r<l;r++)0!==i[2*r]?(e.heap[++e.heap_len]=p=r,e.depth[r]=0):i[2*r+1]=0;for(;e.heap_len<2;)i[2*(s=e.heap[++e.heap_len]=p<2?++p:0)]=1,e.depth[s]=0,e.opt_len--,o&&(e.static_len-=a[2*s+1]);for(t.max_code=p,r=e.heap_len>>1;1<=r;r--)_(e,i,r);for(s=l;r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],_(e,i,1),n=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=n,i[2*s]=i[2*r]+i[2*n],e.depth[s]=(e.depth[r]>=e.depth[n]?e.depth[r]:e.depth[n])+1,i[2*r+1]=i[2*n+1]=s,e.heap[1]=s++,_(e,i,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var r,n,s,i,a,o,l=t.dyn_tree,p=t.max_code,c=t.stat_desc.static_tree,h=t.stat_desc.has_stree,d=t.stat_desc.extra_bits,f=t.stat_desc.extra_base,m=t.stat_desc.max_length,y=0;for(i=0;i<=u;i++)e.bl_count[i]=0;for(l[2*e.heap[e.heap_max]+1]=0,r=e.heap_max+1;r<573;r++)m<(i=l[2*l[2*(n=e.heap[r])+1]+1]+1)&&(i=m,y++),l[2*n+1]=i,p<n||(e.bl_count[i]++,a=0,f<=n&&(a=d[n-f]),o=l[2*n],e.opt_len+=o*(i+a),h&&(e.static_len+=o*(c[2*n+1]+a)));if(0!==y){do{for(i=m-1;0===e.bl_count[i];)i--;e.bl_count[i]--,e.bl_count[i+1]+=2,e.bl_count[m]--,y-=2}while(0<y);for(i=m;0!==i;i--)for(n=e.bl_count[i];0!==n;)p<(s=e.heap[--r])||(l[2*s+1]!==i&&(e.opt_len+=(i-l[2*s+1])*l[2*s],l[2*s+1]=i),n--)}}(e,t),k(i,p,e.bl_count)}function j(e,t,r){var n,s,i=-1,a=t[1],o=0,u=7,l=4;for(0===a&&(u=138,l=3),t[2*(r+1)+1]=65535,n=0;n<=r;n++)s=a,a=t[2*(n+1)+1],++o<u&&s===a||(o<l?e.bl_tree[2*s]+=o:0!==s?(s!==i&&e.bl_tree[2*s]++,e.bl_tree[32]++):o<=10?e.bl_tree[34]++:e.bl_tree[36]++,i=s,l=(o=0)===a?(u=138,3):s===a?(u=6,3):(u=7,4))}function M(e,t,r){var n,s,i=-1,a=t[1],o=0,u=7,l=4;for(0===a&&(u=138,l=3),n=0;n<=r;n++)if(s=a,a=t[2*(n+1)+1],!(++o<u&&s===a)){if(o<l)for(;F(e,s,e.bl_tree),0!=--o;);else 0!==s?(s!==i&&(F(e,s,e.bl_tree),o--),F(e,16,e.bl_tree),w(e,o-3,2)):o<=10?(F(e,17,e.bl_tree),w(e,o-3,3)):(F(e,18,e.bl_tree),w(e,o-11,7));i=s,l=(o=0)===a?(u=138,3):s===a?(u=6,3):(u=7,4)}}s(C);var R=!1;function $(e,t,r,s){w(e,0+(s?1:0),3),function(e,t,r,s){I(e),T(e,r),T(e,~r),n.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}(e,t,r)}r._tr_init=function(e){R||(function(){var e,t,r,n,s,i=new Array(u+1);for(n=r=0;n<28;n++)for(D[n]=r,e=0;e<1<<p[n];e++)g[r++]=n;for(g[r-1]=n,n=s=0;n<16;n++)for(C[n]=s,e=0;e<1<<c[n];e++)y[s++]=n;for(s>>=7;n<o;n++)for(C[n]=s<<7,e=0;e<1<<c[n]-7;e++)y[256+s++]=n;for(t=0;t<=u;t++)i[t]=0;for(e=0;e<=143;)f[2*e+1]=8,e++,i[8]++;for(;e<=255;)f[2*e+1]=9,e++,i[9]++;for(;e<=279;)f[2*e+1]=7,e++,i[7]++;for(;e<=287;)f[2*e+1]=8,e++,i[8]++;for(k(f,287,i),e=0;e<o;e++)m[2*e+1]=5,m[2*e]=P(e,5);x=new v(f,p,257,a,u),E=new v(m,c,0,o,u),b=new v(new Array(0),h,0,19,7)}(),R=!0),e.l_desc=new A(e.dyn_ltree,x),e.d_desc=new A(e.dyn_dtree,E),e.bl_desc=new A(e.bl_tree,b),e.bi_buf=0,e.bi_valid=0,N(e)},r._tr_stored_block=$,r._tr_flush_block=function(e,t,r,n){var s,a,o=0;0<e.level?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,r=4093624447;for(t=0;t<=31;t++,r>>>=1)if(1&r&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<i;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),L(e,e.l_desc),L(e,e.d_desc),o=function(e){var t;for(j(e,e.dyn_ltree,e.l_desc.max_code),j(e,e.dyn_dtree,e.d_desc.max_code),L(e,e.bl_desc),t=18;3<=t&&0===e.bl_tree[2*d[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),s=e.opt_len+3+7>>>3,(a=e.static_len+3+7>>>3)<=s&&(s=a)):s=a=r+5,r+4<=s&&-1!==t?$(e,t,r,n):4===e.strategy||a===s?(w(e,2+(n?1:0),3),O(e,f,m)):(w(e,4+(n?1:0),3),function(e,t,r,n){var s;for(w(e,t-257,5),w(e,r-1,5),w(e,n-4,4),s=0;s<n;s++)w(e,e.bl_tree[2*d[s]+1],3);M(e,e.dyn_ltree,t-1),M(e,e.dyn_dtree,r-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),O(e,e.dyn_ltree,e.dyn_dtree)),N(e),n&&I(e)},r._tr_tally=function(e,t,r){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(g[r]+i+1)]++,e.dyn_dtree[2*S(t)]++),e.last_lit===e.lit_bufsize-1},r._tr_align=function(e){w(e,2,3),F(e,256,f),function(e){16===e.bi_valid?(T(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},{"../utils/common":41}],53:[function(e,t,r){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(e,t,n){(function(e){!function(e,t){"use strict";if(!e.setImmediate){var r,n,s,i,a=1,o={},u=!1,l=e.document,p=Object.getPrototypeOf&&Object.getPrototypeOf(e);p=p&&p.setTimeout?p:e,r="[object process]"==={}.toString.call(e.process)?function(e){process.nextTick((function(){h(e)}))}:function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?(i="setImmediate$"+Math.random()+"$",e.addEventListener?e.addEventListener("message",d,!1):e.attachEvent("onmessage",d),function(t){e.postMessage(i+t,"*")}):e.MessageChannel?((s=new MessageChannel).port1.onmessage=function(e){h(e.data)},function(e){s.port2.postMessage(e)}):l&&"onreadystatechange"in l.createElement("script")?(n=l.documentElement,function(e){var t=l.createElement("script");t.onreadystatechange=function(){h(e),t.onreadystatechange=null,n.removeChild(t),t=null},n.appendChild(t)}):function(e){setTimeout(h,0,e)},p.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var s={callback:e,args:t};return o[a]=s,r(a),a++},p.clearImmediate=c}function c(e){delete o[e]}function h(e){if(u)setTimeout(h,0,e);else{var r=o[e];if(r){u=!0;try{!function(e){var r=e.callback,n=e.args;switch(n.length){case 0:r();break;case 1:r(n[0]);break;case 2:r(n[0],n[1]);break;case 3:r(n[0],n[1],n[2]);break;default:r.apply(t,n)}}(r)}finally{c(e),u=!1}}}}function d(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(i)&&h(+t.data.slice(i.length))}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,void 0!==r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[10])(10)},483:(e,t,r)=>{e.exports=function(){"use strict";var e=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),t=e(((e,t)=>{var n=function(e){return e&&e.Math==Math&&e};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||function(){return this}()||Function("return this")()})),n=e(((e,t)=>{t.exports=function(e){try{return!!e()}catch{return!0}}})),s=e(((e,t)=>{var r=n();t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))})),i=e(((e,t)=>{var r=n();t.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))})),a=e(((e,t)=>{var r=i(),n=Function.prototype.call;t.exports=r?n.bind(n):function(){return n.apply(n,arguments)}})),o=e((e=>{var t={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,n=r&&!t.call({1:2},1);e.f=n?function(e){var t=r(this,e);return!!t&&t.enumerable}:t})),u=e(((e,t)=>{t.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}})),l=e(((e,t)=>{var r=i(),n=Function.prototype,s=n.call,a=r&&n.bind.bind(s,s);t.exports=r?a:function(e){return function(){return s.apply(e,arguments)}}})),p=e(((e,t)=>{var r=l(),n=r({}.toString),s=r("".slice);t.exports=function(e){return s(n(e),8,-1)}})),c=e(((e,t)=>{var r=l(),s=n(),i=p(),a=Object,o=r("".split);t.exports=s((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?o(e,""):a(e)}:a})),h=e(((e,t)=>{t.exports=function(e){return null==e}})),d=e(((e,t)=>{var r=h(),n=TypeError;t.exports=function(e){if(r(e))throw n("Can't call method on "+e);return e}})),f=e(((e,t)=>{var r=c(),n=d();t.exports=function(e){return r(n(e))}})),m=e(((e,t)=>{var r="object"==typeof document&&document.all,n=typeof r>"u"&&void 0!==r;t.exports={all:r,IS_HTMLDDA:n}})),y=e(((e,t)=>{var r=m(),n=r.all;t.exports=r.IS_HTMLDDA?function(e){return"function"==typeof e||e===n}:function(e){return"function"==typeof e}})),g=e(((e,t)=>{var r=y(),n=m(),s=n.all;t.exports=n.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:r(e)||e===s}:function(e){return"object"==typeof e?null!==e:r(e)}})),D=e(((e,r)=>{var n=t(),s=y();r.exports=function(e,t){return arguments.length<2?function(e){return s(e)?e:void 0}(n[e]):n[e]&&n[e][t]}})),x=e(((e,t)=>{var r=l();t.exports=r({}.isPrototypeOf)})),E=e(((e,t)=>{var r=D();t.exports=r("navigator","userAgent")||""})),b=e(((e,r)=>{var n,s,i=t(),a=E(),o=i.process,u=i.Deno,l=o&&o.versions||u&&u.version,p=l&&l.v8;p&&(s=(n=p.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!s&&a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(s=+n[1]),r.exports=s})),C=e(((e,t)=>{var r=b(),s=n();t.exports=!!Object.getOwnPropertySymbols&&!s((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))})),v=e(((e,t)=>{var r=C();t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator})),A=e(((e,t)=>{var r=D(),n=y(),s=x(),i=v(),a=Object;t.exports=i?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return n(t)&&s(t.prototype,a(e))}})),S=e(((e,t)=>{var r=String;t.exports=function(e){try{return r(e)}catch{return"Object"}}})),T=e(((e,t)=>{var r=y(),n=S(),s=TypeError;t.exports=function(e){if(r(e))return e;throw s(n(e)+" is not a function")}})),w=e(((e,t)=>{var r=T(),n=h();t.exports=function(e,t){var s=e[t];return n(s)?void 0:r(s)}})),F=e(((e,t)=>{var r=a(),n=y(),s=g(),i=TypeError;t.exports=function(e,t){var a,o;if("string"===t&&n(a=e.toString)&&!s(o=r(a,e))||n(a=e.valueOf)&&!s(o=r(a,e))||"string"!==t&&n(a=e.toString)&&!s(o=r(a,e)))return o;throw i("Can't convert object to primitive value")}})),P=e(((e,t)=>{t.exports=!1})),k=e(((e,r)=>{var n=t(),s=Object.defineProperty;r.exports=function(e,t){try{s(n,e,{value:t,configurable:!0,writable:!0})}catch{n[e]=t}return t}})),N=e(((e,r)=>{var n=t(),s=k(),i="__core-js_shared__",a=n[i]||s(i,{});r.exports=a})),I=e(((e,t)=>{var r=P(),n=N();(t.exports=function(e,t){return n[e]||(n[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.26.1",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE",source:"https://github.com/zloirock/core-js"})})),B=e(((e,t)=>{var r=d(),n=Object;t.exports=function(e){return n(r(e))}})),_=e(((e,t)=>{var r=l(),n=B(),s=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(e,t){return s(n(e),t)}})),O=e(((e,t)=>{var r=l(),n=0,s=Math.random(),i=r(1..toString);t.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+i(++n+s,36)}})),L=e(((e,r)=>{var n=t(),s=I(),i=_(),a=O(),o=C(),u=v(),l=s("wks"),p=n.Symbol,c=p&&p.for,h=u?p:p&&p.withoutSetter||a;r.exports=function(e){if(!i(l,e)||!o&&"string"!=typeof l[e]){var t="Symbol."+e;o&&i(p,e)?l[e]=p[e]:l[e]=u&&c?c(t):h(t)}return l[e]}})),j=e(((e,t)=>{var r=a(),n=g(),s=A(),i=w(),o=F(),u=L(),l=TypeError,p=u("toPrimitive");t.exports=function(e,t){if(!n(e)||s(e))return e;var a,u=i(e,p);if(u){if(void 0===t&&(t="default"),a=r(u,e,t),!n(a)||s(a))return a;throw l("Can't convert object to primitive value")}return void 0===t&&(t="number"),o(e,t)}})),M=e(((e,t)=>{var r=j(),n=A();t.exports=function(e){var t=r(e,"string");return n(t)?t:t+""}})),R=e(((e,r)=>{var n=t(),s=g(),i=n.document,a=s(i)&&s(i.createElement);r.exports=function(e){return a?i.createElement(e):{}}})),$=e(((e,t)=>{var r=s(),i=n(),a=R();t.exports=!r&&!i((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))})),U=e((e=>{var t=s(),r=a(),n=o(),i=u(),l=f(),p=M(),c=_(),h=$(),d=Object.getOwnPropertyDescriptor;e.f=t?d:function(e,t){if(e=l(e),t=p(t),h)try{return d(e,t)}catch{}if(c(e,t))return i(!r(n.f,e,t),e[t])}})),z=e(((e,t)=>{var r=s(),i=n();t.exports=r&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))})),V=e(((e,t)=>{var r=g(),n=String,s=TypeError;t.exports=function(e){if(r(e))return e;throw s(n(e)+" is not an object")}})),W=e((e=>{var t=s(),r=$(),n=z(),i=V(),a=M(),o=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,p="enumerable",c="configurable",h="writable";e.f=t?n?function(e,t,r){if(i(e),t=a(t),i(r),"function"==typeof e&&"prototype"===t&&"value"in r&&h in r&&!r[h]){var n=l(e,t);n&&n[h]&&(e[t]=r.value,r={configurable:c in r?r[c]:n[c],enumerable:p in r?r[p]:n[p],writable:!1})}return u(e,t,r)}:u:function(e,t,n){if(i(e),t=a(t),i(n),r)try{return u(e,t,n)}catch{}if("get"in n||"set"in n)throw o("Accessors not supported");return"value"in n&&(e[t]=n.value),e}})),q=e(((e,t)=>{var r=s(),n=W(),i=u();t.exports=r?function(e,t,r){return n.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}})),H=e(((e,t)=>{var r=s(),n=_(),i=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,o=n(i,"name"),u=o&&"something"===function(){}.name,l=o&&(!r||r&&a(i,"name").configurable);t.exports={EXISTS:o,PROPER:u,CONFIGURABLE:l}})),J=e(((e,t)=>{var r=l(),n=y(),s=N(),i=r(Function.toString);n(s.inspectSource)||(s.inspectSource=function(e){return i(e)}),t.exports=s.inspectSource})),G=e(((e,r)=>{var n=t(),s=y(),i=n.WeakMap;r.exports=s(i)&&/native code/.test(String(i))})),X=e(((e,t)=>{var r=I(),n=O(),s=r("keys");t.exports=function(e){return s[e]||(s[e]=n(e))}})),K=e(((e,t)=>{t.exports={}})),Z=e(((e,r)=>{var n,s,i,a,o,u=G(),l=t(),p=g(),c=q(),h=_(),d=N(),f=X(),m=K(),y="Object already initialized",D=l.TypeError,x=l.WeakMap;u||d.state?((a=d.state||(d.state=new x)).get=a.get,a.has=a.has,a.set=a.set,n=function(e,t){if(a.has(e))throw D(y);return t.facade=e,a.set(e,t),t},s=function(e){return a.get(e)||{}},i=function(e){return a.has(e)}):(m[o=f("state")]=!0,n=function(e,t){if(h(e,o))throw D(y);return t.facade=e,c(e,o,t),t},s=function(e){return h(e,o)?e[o]:{}},i=function(e){return h(e,o)}),r.exports={set:n,get:s,has:i,enforce:function(e){return i(e)?s(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!p(t)||(r=s(t)).type!==e)throw D("Incompatible receiver, "+e+" required");return r}}}})),Y=e(((e,t)=>{var r=n(),i=y(),a=_(),o=s(),u=H().CONFIGURABLE,l=J(),p=Z(),c=p.enforce,h=p.get,d=Object.defineProperty,f=o&&!r((function(){return 8!==d((function(){}),"length",{value:8}).length})),m=String(String).split("String"),g=t.exports=function(e,t,r){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!a(e,"name")||u&&e.name!==t)&&(o?d(e,"name",{value:t,configurable:!0}):e.name=t),f&&r&&a(r,"arity")&&e.length!==r.arity&&d(e,"length",{value:r.arity});try{r&&a(r,"constructor")&&r.constructor?o&&d(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch{}var n=c(e);return a(n,"source")||(n.source=m.join("string"==typeof t?t:"")),e};Function.prototype.toString=g((function(){return i(this)&&h(this).source||l(this)}),"toString")})),Q=e(((e,t)=>{var r=y(),n=W(),s=Y(),i=k();t.exports=function(e,t,a,o){o||(o={});var u=o.enumerable,l=void 0!==o.name?o.name:t;if(r(a)&&s(a,l,o),o.global)u?e[t]=a:i(t,a);else{try{o.unsafe?e[t]&&(u=!0):delete e[t]}catch{}u?e[t]=a:n.f(e,t,{value:a,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable})}return e}})),ee=e(((e,t)=>{var r=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(e){var t=+e;return(t>0?n:r)(t)}})),te=e(((e,t)=>{var r=ee();t.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}})),re=e(((e,t)=>{var r=te(),n=Math.max,s=Math.min;t.exports=function(e,t){var i=r(e);return i<0?n(i+t,0):s(i,t)}})),ne=e(((e,t)=>{var r=te(),n=Math.min;t.exports=function(e){return e>0?n(r(e),9007199254740991):0}})),se=e(((e,t)=>{var r=ne();t.exports=function(e){return r(e.length)}})),ie=e(((e,t)=>{var r=f(),n=re(),s=se(),i=function(e){return function(t,i,a){var o,u=r(t),l=s(u),p=n(a,l);if(e&&i!=i){for(;l>p;)if((o=u[p++])!=o)return!0}else for(;l>p;p++)if((e||p in u)&&u[p]===i)return e||p||0;return!e&&-1}};t.exports={includes:i(!0),indexOf:i(!1)}})),ae=e(((e,t)=>{var r=l(),n=_(),s=f(),i=ie().indexOf,a=K(),o=r([].push);t.exports=function(e,t){var r,u=s(e),l=0,p=[];for(r in u)!n(a,r)&&n(u,r)&&o(p,r);for(;t.length>l;)n(u,r=t[l++])&&(~i(p,r)||o(p,r));return p}})),oe=e(((e,t)=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]})),ue=e((e=>{var t=ae(),r=oe().concat("length","prototype");e.f=Object.getOwnPropertyNames||function(e){return t(e,r)}})),le=e((e=>{e.f=Object.getOwnPropertySymbols})),pe=e(((e,t)=>{var r=D(),n=l(),s=ue(),i=le(),a=V(),o=n([].concat);t.exports=r("Reflect","ownKeys")||function(e){var t=s.f(a(e)),r=i.f;return r?o(t,r(e)):t}})),ce=e(((e,t)=>{var r=_(),n=pe(),s=U(),i=W();t.exports=function(e,t,a){for(var o=n(t),u=i.f,l=s.f,p=0;p<o.length;p++){var c=o[p];!r(e,c)&&(!a||!r(a,c))&&u(e,c,l(t,c))}}})),he=e(((e,t)=>{var r=n(),s=y(),i=/#|\.prototype\./,a=function(e,t){var n=u[o(e)];return n==p||n!=l&&(s(t)?r(t):!!t)},o=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},u=a.data={},l=a.NATIVE="N",p=a.POLYFILL="P";t.exports=a})),de=e(((e,r)=>{var n=t(),s=U().f,i=q(),a=Q(),o=k(),u=ce(),l=he();r.exports=function(e,t){var r,p,c,h,d,f=e.target,m=e.global,y=e.stat;if(r=m?n:y?n[f]||o(f,{}):(n[f]||{}).prototype)for(p in t){if(h=t[p],c=e.dontCallGetSet?(d=s(r,p))&&d.value:r[p],!l(m?p:f+(y?".":"#")+p,e.forced)&&void 0!==c){if(typeof h==typeof c)continue;u(h,c)}(e.sham||c&&c.sham)&&i(h,"sham",!0),a(r,p,h,e)}}})),fe=e((()=>{var e=de(),r=t();e({global:!0,forced:r.globalThis!==r},{globalThis:r})})),me=e((()=>{fe()})),ye=e(((e,t)=>{var r=Y(),n=W();t.exports=function(e,t,s){return s.get&&r(s.get,t,{getter:!0}),s.set&&r(s.set,t,{setter:!0}),n.f(e,t,s)}})),ge=e(((e,t)=>{var r=V();t.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}})),De=e((()=>{var e=t(),r=s(),i=ye(),a=ge(),o=n(),u=e.RegExp,l=u.prototype;r&&o((function(){var e=!0;try{u(".","d")}catch{e=!1}var t={},r="",n=e?"dgimsy":"gimsy",s=function(e,n){Object.defineProperty(t,e,{get:function(){return r+=n,!0}})},i={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in e&&(i.hasIndices="d"),i)s(a,i[a]);return Object.getOwnPropertyDescriptor(l,"flags").get.call(t)!==n||r!==n}))&&i(l,"flags",{configurable:!0,get:a})})),xe=e(((e,t)=>{var r=p();t.exports=Array.isArray||function(e){return"Array"==r(e)}})),Ee=e(((e,t)=>{var r=TypeError;t.exports=function(e){if(e>9007199254740991)throw r("Maximum allowed index exceeded");return e}})),be=e(((e,t)=>{var r=p(),n=l();t.exports=function(e){if("Function"===r(e))return n(e)}})),Ce=e(((e,t)=>{var r=be(),n=T(),s=i(),a=r(r.bind);t.exports=function(e,t){return n(e),void 0===t?e:s?a(e,t):function(){return e.apply(t,arguments)}}})),ve=e(((e,t)=>{var r=xe(),n=se(),s=Ee(),i=Ce(),a=function(e,t,o,u,l,p,c,h){for(var d,f,m=l,y=0,g=!!c&&i(c,h);y<u;)y in o&&(d=g?g(o[y],y,t):o[y],p>0&&r(d)?(f=n(d),m=a(e,t,d,f,m,p-1)-1):(s(m+1),e[m]=d),m++),y++;return m};t.exports=a})),Ae=e(((e,t)=>{var r={};r[L()("toStringTag")]="z",t.exports="[object z]"===String(r)})),Se=e(((e,t)=>{var r=Ae(),n=y(),s=p(),i=L()("toStringTag"),a=Object,o="Arguments"==s(function(){return arguments}());t.exports=r?s:function(e){var t,r,u;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch{}}(t=a(e),i))?r:o?s(t):"Object"==(u=s(t))&&n(t.callee)?"Arguments":u}})),Te=e(((e,t)=>{var r=l(),s=n(),i=y(),a=Se(),o=D(),u=J(),p=function(){},c=[],h=o("Reflect","construct"),d=/^\s*(?:class|function)\b/,f=r(d.exec),m=!d.exec(p),g=function(e){if(!i(e))return!1;try{return h(p,c,e),!0}catch{return!1}},x=function(e){if(!i(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return m||!!f(d,u(e))}catch{return!0}};x.sham=!0,t.exports=!h||s((function(){var e;return g(g.call)||!g(Object)||!g((function(){e=!0}))||e}))?x:g})),we=e(((e,t)=>{var r=xe(),n=Te(),s=g(),i=L()("species"),a=Array;t.exports=function(e){var t;return r(e)&&(t=e.constructor,(n(t)&&(t===a||r(t.prototype))||s(t)&&null===(t=t[i]))&&(t=void 0)),void 0===t?a:t}})),Fe=e(((e,t)=>{var r=we();t.exports=function(e,t){return new(r(e))(0===t?0:t)}})),Pe=e((()=>{var e=de(),t=ve(),r=T(),n=B(),s=se(),i=Fe();e({target:"Array",proto:!0},{flatMap:function(e){var a,o=n(this),u=s(o);return r(e),(a=i(o,0)).length=t(a,o,o,u,0,1,e,arguments.length>1?arguments[1]:void 0),a}})})),ke=e(((e,t)=>{me(),De(),Pe();var r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,a=(e,t)=>function(){return e&&(t=(0,e[s(e)[0]])(e=0)),t},o=(e,t)=>function(){return t||(0,e[s(e)[0]])((t={exports:{}}).exports,t),t.exports},u=e=>((e,t,a,o)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let u of s(t))!i.call(e,u)&&u!==a&&r(e,u,{get:()=>t[u],enumerable:!(o=n(t,u))||o.enumerable});return e})(r({},"__esModule",{value:!0}),e),l=a({"<define:process>"(){}}),p=o({"src/utils/try-combinations.js"(e,t){l(),t.exports=function(){let e;for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];for(let[t,n]of r.entries())try{return{result:n()}}catch(r){0===t&&(e=r)}return{error:e}}}}),c=o({"src/language-js/utils/get-shebang.js"(e,t){l(),t.exports=function(e){if(!e.startsWith("#!"))return"";let t=e.indexOf("\n");return-1===t?e:e.slice(0,t)}}}),h=o({"src/utils/text/skip-inline-comment.js"(e,t){l(),t.exports=function(e,t){if(!1===t)return!1;if("/"===e.charAt(t)&&"*"===e.charAt(t+1))for(let r=t+2;r<e.length;++r)if("*"===e.charAt(r)&&"/"===e.charAt(r+1))return r+2;return t}}}),d=o({"src/utils/text/skip-newline.js"(e,t){l(),t.exports=function(e,t,r){let n=r&&r.backwards;if(!1===t)return!1;let s=e.charAt(t);if(n){if("\r"===e.charAt(t-1)&&"\n"===s)return t-2;if("\n"===s||"\r"===s||"\u2028"===s||"\u2029"===s)return t-1}else{if("\r"===s&&"\n"===e.charAt(t+1))return t+2;if("\n"===s||"\r"===s||"\u2028"===s||"\u2029"===s)return t+1}return t}}}),f=o({"src/utils/text/skip.js"(e,t){function r(e){return(t,r,n)=>{let s=n&&n.backwards;if(!1===r)return!1;let{length:i}=t,a=r;for(;a>=0&&a<i;){let r=t.charAt(a);if(e instanceof RegExp){if(!e.test(r))return a}else if(!e.includes(r))return a;s?a--:a++}return(-1===a||a===i)&&a}}l();var n=r(/\s/),s=r(" \t"),i=r(",; \t"),a=r(/[^\n\r]/);t.exports={skipWhitespace:n,skipSpaces:s,skipToLineEnd:i,skipEverythingButNewLine:a}}}),m=o({"src/utils/text/skip-trailing-comment.js"(e,t){l();var{skipEverythingButNewLine:r}=f();t.exports=function(e,t){return!1!==t&&("/"===e.charAt(t)&&"/"===e.charAt(t+1)?r(e,t):t)}}}),y=o({"src/utils/text/get-next-non-space-non-comment-character-index-with-start-index.js"(e,t){l();var r=h(),n=d(),s=m(),{skipSpaces:i}=f();t.exports=function(e,t){let a=null,o=t;for(;o!==a;)a=o,o=i(e,o),o=r(e,o),o=s(e,o),o=n(e,o);return o}}}),g={};function D(){if(typeof I>"u"){var e=new ArrayBuffer(2),t=new Uint8Array(e),r=new Uint16Array(e);if(t[0]=1,t[1]=2,258===r[0])I="BE";else{if(513!==r[0])throw new Error("unable to figure out endianess");I="LE"}}return I}function x(){return typeof globalThis.location<"u"?globalThis.location.hostname:""}function E(){return[]}function b(){return 0}function C(){return Number.MAX_VALUE}function v(){return Number.MAX_VALUE}function A(){return[]}function S(){return"Browser"}function T(){return typeof globalThis.navigator<"u"?globalThis.navigator.appVersion:""}function w(){}function F(){}function P(){return"javascript"}function k(){return"browser"}function N(){return"/tmp"}((e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})})(g,{EOL:()=>_,arch:()=>P,cpus:()=>A,default:()=>O,endianness:()=>D,freemem:()=>C,getNetworkInterfaces:()=>F,hostname:()=>x,loadavg:()=>E,networkInterfaces:()=>w,platform:()=>k,release:()=>T,tmpDir:()=>N,tmpdir:()=>B,totalmem:()=>v,type:()=>S,uptime:()=>b});var I,B,_,O,L=a({"node-modules-polyfills:os"(){l(),O={EOL:_="\n",tmpdir:B=N,tmpDir:N,networkInterfaces:w,getNetworkInterfaces:F,release:T,type:S,cpus:A,totalmem:v,freemem:C,uptime:b,loadavg:E,hostname:x,endianness:D}}}),j=o({"node-modules-polyfills-commonjs:os"(e,t){l();var r=(L(),u(g));if(r&&r.default){t.exports=r.default;for(let e in r)t.exports[e]=r[e]}else r&&(t.exports=r)}}),M=o({"node_modules/detect-newline/index.js"(e,t){l();var r=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");let t=e.match(/(?:\r?\n)/g)||[];if(0===t.length)return;let r=t.filter((e=>"\r\n"===e)).length;return r>t.length-r?"\r\n":"\n"};t.exports=r,t.exports.graceful=e=>"string"==typeof e&&r(e)||"\n"}}),R=o({"node_modules/jest-docblock/build/index.js"(e){function t(){let e=j();return t=function(){return e},e}function r(){let e=function(e){return e&&e.__esModule?e:{default:e}}(M());return r=function(){return e},e}l(),Object.defineProperty(e,"__esModule",{value:!0}),e.extract=function(e){let t=e.match(i);return t?t[0].trimLeft():""},e.parse=function(e){return d(e).pragmas},e.parseWithComments=d,e.print=function(e){let{comments:n="",pragmas:s={}}=e,i=(0,r().default)(n)||t().EOL,a=" *",o=Object.keys(s),u=o.map((e=>f(e,s[e]))).reduce(((e,t)=>e.concat(t)),[]).map((e=>`${a} ${e}${i}`)).join("");if(!n){if(0===o.length)return"";if(1===o.length&&!Array.isArray(s[o[0]])){let e=s[o[0]];return`/** ${f(o[0],e)[0]} */`}}let l=n.split(i).map((e=>`${a} ${e}`)).join(i)+i;return"/**"+i+(n?l:"")+(n&&o.length?a+i:"")+u+" */"},e.strip=function(e){let t=e.match(i);return t&&t[0]?e.substring(t[0].length):e};var n=/\*\/$/,s=/^\/\*\*?/,i=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,a=/(^|\s+)\/\/([^\r\n]*)/g,o=/^(\r?\n)+/,u=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,p=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,c=/(\r?\n|^) *\* ?/g,h=[];function d(e){let i=(0,r().default)(e)||t().EOL;e=e.replace(s,"").replace(n,"").replace(c,"$1");let l="";for(;l!==e;)l=e,e=e.replace(u,`${i}$1 $2${i}`);e=e.replace(o,"").trimRight();let d,f=Object.create(null),m=e.replace(p,"").replace(o,"").trimRight();for(;d=p.exec(e);){let e=d[2].replace(a,"");"string"==typeof f[d[1]]||Array.isArray(f[d[1]])?f[d[1]]=h.concat(f[d[1]],e):f[d[1]]=e}return{comments:m,pragmas:f}}function f(e,t){return h.concat(t).map((t=>`@${e} ${t}`.trim()))}}}),$=o({"src/common/end-of-line.js"(e,t){l(),t.exports={guessEndOfLine:function(e){let t=e.indexOf("\r");return t>=0?"\n"===e.charAt(t+1)?"crlf":"cr":"lf"},convertEndOfLineToChars:function(e){switch(e){case"cr":return"\r";case"crlf":return"\r\n";default:return"\n"}},countEndOfLineChars:function(e,t){let r;switch(t){case"\n":r=/\n/g;break;case"\r":r=/\r/g;break;case"\r\n":r=/\r\n/g;break;default:throw new Error(`Unexpected "eol" ${JSON.stringify(t)}.`)}let n=e.match(r);return n?n.length:0},normalizeEndOfLine:function(e){return e.replace(/\r\n?/g,"\n")}}}}),U=o({"src/language-js/pragma.js"(e,t){l();var{parseWithComments:r,strip:n,extract:s,print:i}=R(),{normalizeEndOfLine:a}=$(),o=c();function u(e){let t=o(e);t&&(e=e.slice(t.length+1));let n=s(e),{pragmas:i,comments:a}=r(n);return{shebang:t,text:e,pragmas:i,comments:a}}t.exports={hasPragma:function(e){let t=Object.keys(u(e).pragmas);return t.includes("prettier")||t.includes("format")},insertPragma:function(e){let{shebang:t,text:r,pragmas:s,comments:o}=u(e),l=n(r),p=i({pragmas:Object.assign({format:""},s),comments:o.trimStart()});return(t?`${t}\n`:"")+a(p)+(l.startsWith("\n")?"\n":"\n\n")+l}}}}),z=o({"src/utils/is-non-empty-array.js"(e,t){l(),t.exports=function(e){return Array.isArray(e)&&e.length>0}}}),V=o({"src/language-js/loc.js"(e,t){l();var r=z();function n(e){var t,s;let i=e.range?e.range[0]:e.start,a=null!==(t=null===(s=e.declaration)||void 0===s?void 0:s.decorators)&&void 0!==t?t:e.decorators;return r(a)?Math.min(n(a[0]),i):i}function s(e){return e.range?e.range[1]:e.end}function i(e,t){let r=n(e);return Number.isInteger(r)&&r===n(t)}t.exports={locStart:n,locEnd:s,hasSameLocStart:i,hasSameLoc:function(e,t){return i(e,t)&&function(e,t){let r=s(e);return Number.isInteger(r)&&r===s(t)}(e,t)}}}}),W=o({"src/language-js/parse/utils/create-parser.js"(e,t){l();var{hasPragma:r}=U(),{locStart:n,locEnd:s}=V();t.exports=function(e){return e="function"==typeof e?{parse:e}:e,Object.assign({astFormat:"estree",hasPragma:r,locStart:n,locEnd:s},e)}}}),q=o({"src/common/parser-create-error.js"(e,t){l(),t.exports=function(e,t){let r=new SyntaxError(e+" ("+t.start.line+":"+t.start.column+")");return r.loc=t,r}}}),H=o({"src/language-js/parse/utils/create-babel-parse-error.js"(e,t){l();var r=q();t.exports=function(e){let{message:t,loc:n}=e;return r(t.replace(/ \(.*\)/,""),{start:{line:n?n.line:0,column:n?n.column+1:0}})}}}),J=o({"src/language-js/utils/is-ts-keyword-type.js"(e,t){l(),t.exports=function(e){let{type:t}=e;return t.startsWith("TS")&&t.endsWith("Keyword")}}}),G=o({"src/language-js/utils/is-block-comment.js"(e,t){l();var r=new Set(["Block","CommentBlock","MultiLine"]);t.exports=e=>r.has(null==e?void 0:e.type)}}),X=o({"src/language-js/utils/is-type-cast-comment.js"(e,t){l();var r=G();t.exports=function(e){return r(e)&&"*"===e.value[0]&&/@(?:type|satisfies)\b/.test(e.value)}}}),K=o({"src/utils/get-last.js"(e,t){l();t.exports=e=>e[e.length-1]}}),Z=o({"src/language-js/parse/postprocess/visit-node.js"(e,t){l(),t.exports=function e(t,r){if(Array.isArray(t)){for(let n=0;n<t.length;n++)t[n]=e(t[n],r);return t}if(t&&"object"==typeof t&&"string"==typeof t.type){let n=Object.keys(t);for(let s=0;s<n.length;s++)t[n[s]]=e(t[n[s]],r);return r(t)||t}return t}}}),Y=o({"src/language-js/parse/postprocess/throw-syntax-error.js"(e,t){l();var r=q();t.exports=function(e,t){let{start:n,end:s}=e.loc;throw r(t,{start:{line:n.line,column:n.column+1},end:{line:s.line,column:s.column+1}})}}}),Q=o({"src/language-js/parse/postprocess/index.js"(e,t){l();var{locStart:r,locEnd:n}=V(),s=J(),i=X(),a=K(),o=Z(),u=Y();function p(e){switch(e.type){case"CallExpression":e.type="OptionalCallExpression",e.callee=p(e.callee);break;case"MemberExpression":e.type="OptionalMemberExpression",e.object=p(e.object);break;case"TSNonNullExpression":e.expression=p(e.expression)}return e}function c(e){return"LogicalExpression"===e.type&&"LogicalExpression"===e.right.type&&e.operator===e.right.operator}function h(e){return c(e)?h({type:"LogicalExpression",operator:e.operator,left:h({type:"LogicalExpression",operator:e.operator,left:e.left,right:e.right.left,range:[r(e.left),n(e.right.left)]}),right:e.right.right,range:[r(e),n(e)]}):e}t.exports=function(e,t){if("typescript"!==t.parser&&"flow"!==t.parser&&"acorn"!==t.parser&&"espree"!==t.parser&&"meriyah"!==t.parser){let t=new Set;e=o(e,(e=>{e.leadingComments&&e.leadingComments.some(i)&&t.add(r(e))})),e=o(e,(e=>{if("ParenthesizedExpression"===e.type){let{expression:n}=e;if("TypeCastExpression"===n.type)return n.range=e.range,n;let s=r(e);if(!t.has(s))return n.extra=Object.assign(Object.assign({},n.extra),{},{parenthesized:!0}),n}}))}return o(e,(e=>{switch(e.type){case"ChainExpression":return p(e.expression);case"LogicalExpression":if(c(e))return h(e);break;case"VariableDeclaration":{let s=a(e.declarations);s&&s.init&&function(e,s){";"!==t.originalText[n(s)]&&(e.range=[r(e),n(s)])}(e,s);break}case"TSParenthesizedType":return s(e.typeAnnotation)||"TSThisType"===e.typeAnnotation.type||(e.typeAnnotation.range=[r(e),n(e)]),e.typeAnnotation;case"TSTypeParameter":if("string"==typeof e.name){let t=r(e);e.name={type:"Identifier",name:e.name,range:[t,t+e.name.length]}}break;case"ObjectExpression":if("typescript"===t.parser){let t=e.properties.find((e=>"Property"===e.type&&"TSEmptyBodyFunctionExpression"===e.value.type));t&&u(t.value,"Unexpected token.")}break;case"SequenceExpression":{let t=a(e.expressions);e.range=[r(e),Math.min(n(t),n(e))];break}case"TopicReference":t.__isUsingHackPipeline=!0;break;case"ExportAllDeclaration":{let{exported:s}=e;if("meriyah"===t.parser&&s&&"Identifier"===s.type){let i=t.originalText.slice(r(s),n(s));(i.startsWith('"')||i.startsWith("'"))&&(e.exported=Object.assign(Object.assign({},e.exported),{},{type:"Literal",value:e.exported.name,raw:i}))}break}case"PropertyDefinition":if("meriyah"===t.parser&&e.static&&!e.computed&&!e.key){let t="static",n=r(e);Object.assign(e,{static:!1,key:{type:"Identifier",name:t,range:[n,n+t.length]}})}}}))}}}),ee=o({"node_modules/@babel/parser/lib/index.js"(e){l(),Object.defineProperty(e,"__esModule",{value:!0});var t={sourceType:"script",sourceFilename:void 0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0};var r=class{constructor(e,t){this.token=void 0,this.preserveSpace=void 0,this.token=e,this.preserveSpace=!!t}},n={brace:new r("{"),j_oTag:new r("<tag"),j_cTag:new r("</tag"),j_expr:new r("<tag>...</tag>",!0)};n.template=new r("`",!0);var s=!0,i=!0,a=!0,o=!0,u=!0,p=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.rightAssociative=!!t.rightAssociative,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=null!=t.binop?t.binop:null,this.updateContext=null}},c=new Map;function h(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.keyword=e;let r=b(e,t);return c.set(e,r),r}function d(e,t){return b(e,{beforeExpr:s,binop:t})}var f=-1,m=[],y=[],g=[],D=[],x=[],E=[];function b(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var r,n,s,i;return++f,y.push(e),g.push(null!=(r=t.binop)?r:-1),D.push(null!=(n=t.beforeExpr)&&n),x.push(null!=(s=t.startsExpr)&&s),E.push(null!=(i=t.prefix)&&i),m.push(new p(e,t)),f}function C(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var r,n,s,i;return++f,c.set(e,f),y.push(e),g.push(null!=(r=t.binop)?r:-1),D.push(null!=(n=t.beforeExpr)&&n),x.push(null!=(s=t.startsExpr)&&s),E.push(null!=(i=t.prefix)&&i),m.push(new p("name",t)),f}var v={bracketL:b("[",{beforeExpr:s,startsExpr:i}),bracketHashL:b("#[",{beforeExpr:s,startsExpr:i}),bracketBarL:b("[|",{beforeExpr:s,startsExpr:i}),bracketR:b("]"),bracketBarR:b("|]"),braceL:b("{",{beforeExpr:s,startsExpr:i}),braceBarL:b("{|",{beforeExpr:s,startsExpr:i}),braceHashL:b("#{",{beforeExpr:s,startsExpr:i}),braceR:b("}"),braceBarR:b("|}"),parenL:b("(",{beforeExpr:s,startsExpr:i}),parenR:b(")"),comma:b(",",{beforeExpr:s}),semi:b(";",{beforeExpr:s}),colon:b(":",{beforeExpr:s}),doubleColon:b("::",{beforeExpr:s}),dot:b("."),question:b("?",{beforeExpr:s}),questionDot:b("?."),arrow:b("=>",{beforeExpr:s}),template:b("template"),ellipsis:b("...",{beforeExpr:s}),backQuote:b("`",{startsExpr:i}),dollarBraceL:b("${",{beforeExpr:s,startsExpr:i}),templateTail:b("...`",{startsExpr:i}),templateNonTail:b("...${",{beforeExpr:s,startsExpr:i}),at:b("@"),hash:b("#",{startsExpr:i}),interpreterDirective:b("#!..."),eq:b("=",{beforeExpr:s,isAssign:o}),assign:b("_=",{beforeExpr:s,isAssign:o}),slashAssign:b("_=",{beforeExpr:s,isAssign:o}),xorAssign:b("_=",{beforeExpr:s,isAssign:o}),moduloAssign:b("_=",{beforeExpr:s,isAssign:o}),incDec:b("++/--",{prefix:u,postfix:!0,startsExpr:i}),bang:b("!",{beforeExpr:s,prefix:u,startsExpr:i}),tilde:b("~",{beforeExpr:s,prefix:u,startsExpr:i}),doubleCaret:b("^^",{startsExpr:i}),doubleAt:b("@@",{startsExpr:i}),pipeline:d("|>",0),nullishCoalescing:d("??",1),logicalOR:d("||",1),logicalAND:d("&&",2),bitwiseOR:d("|",3),bitwiseXOR:d("^",4),bitwiseAND:d("&",5),equality:d("==/!=/===/!==",6),lt:d("</>/<=/>=",7),gt:d("</>/<=/>=",7),relational:d("</>/<=/>=",7),bitShift:d("<</>>/>>>",8),bitShiftL:d("<</>>/>>>",8),bitShiftR:d("<</>>/>>>",8),plusMin:b("+/-",{beforeExpr:s,binop:9,prefix:u,startsExpr:i}),modulo:b("%",{binop:10,startsExpr:i}),star:b("*",{binop:10}),slash:d("/",10),exponent:b("**",{beforeExpr:s,binop:11,rightAssociative:!0}),_in:h("in",{beforeExpr:s,binop:7}),_instanceof:h("instanceof",{beforeExpr:s,binop:7}),_break:h("break"),_case:h("case",{beforeExpr:s}),_catch:h("catch"),_continue:h("continue"),_debugger:h("debugger"),_default:h("default",{beforeExpr:s}),_else:h("else",{beforeExpr:s}),_finally:h("finally"),_function:h("function",{startsExpr:i}),_if:h("if"),_return:h("return",{beforeExpr:s}),_switch:h("switch"),_throw:h("throw",{beforeExpr:s,prefix:u,startsExpr:i}),_try:h("try"),_var:h("var"),_const:h("const"),_with:h("with"),_new:h("new",{beforeExpr:s,startsExpr:i}),_this:h("this",{startsExpr:i}),_super:h("super",{startsExpr:i}),_class:h("class",{startsExpr:i}),_extends:h("extends",{beforeExpr:s}),_export:h("export"),_import:h("import",{startsExpr:i}),_null:h("null",{startsExpr:i}),_true:h("true",{startsExpr:i}),_false:h("false",{startsExpr:i}),_typeof:h("typeof",{beforeExpr:s,prefix:u,startsExpr:i}),_void:h("void",{beforeExpr:s,prefix:u,startsExpr:i}),_delete:h("delete",{beforeExpr:s,prefix:u,startsExpr:i}),_do:h("do",{isLoop:a,beforeExpr:s}),_for:h("for",{isLoop:a}),_while:h("while",{isLoop:a}),_as:C("as",{startsExpr:i}),_assert:C("assert",{startsExpr:i}),_async:C("async",{startsExpr:i}),_await:C("await",{startsExpr:i}),_from:C("from",{startsExpr:i}),_get:C("get",{startsExpr:i}),_let:C("let",{startsExpr:i}),_meta:C("meta",{startsExpr:i}),_of:C("of",{startsExpr:i}),_sent:C("sent",{startsExpr:i}),_set:C("set",{startsExpr:i}),_static:C("static",{startsExpr:i}),_using:C("using",{startsExpr:i}),_yield:C("yield",{startsExpr:i}),_asserts:C("asserts",{startsExpr:i}),_checks:C("checks",{startsExpr:i}),_exports:C("exports",{startsExpr:i}),_global:C("global",{startsExpr:i}),_implements:C("implements",{startsExpr:i}),_intrinsic:C("intrinsic",{startsExpr:i}),_infer:C("infer",{startsExpr:i}),_is:C("is",{startsExpr:i}),_mixins:C("mixins",{startsExpr:i}),_proto:C("proto",{startsExpr:i}),_require:C("require",{startsExpr:i}),_satisfies:C("satisfies",{startsExpr:i}),_keyof:C("keyof",{startsExpr:i}),_readonly:C("readonly",{startsExpr:i}),_unique:C("unique",{startsExpr:i}),_abstract:C("abstract",{startsExpr:i}),_declare:C("declare",{startsExpr:i}),_enum:C("enum",{startsExpr:i}),_module:C("module",{startsExpr:i}),_namespace:C("namespace",{startsExpr:i}),_interface:C("interface",{startsExpr:i}),_type:C("type",{startsExpr:i}),_opaque:C("opaque",{startsExpr:i}),name:b("name",{startsExpr:i}),string:b("string",{startsExpr:i}),num:b("num",{startsExpr:i}),bigint:b("bigint",{startsExpr:i}),decimal:b("decimal",{startsExpr:i}),regexp:b("regexp",{startsExpr:i}),privateName:b("#name",{startsExpr:i}),eof:b("eof"),jsxName:b("jsxName"),jsxText:b("jsxText",{beforeExpr:!0}),jsxTagStart:b("jsxTagStart",{startsExpr:!0}),jsxTagEnd:b("jsxTagEnd"),placeholder:b("%%",{startsExpr:!0})};function A(e){return e>=93&&e<=130}function S(e){return e>=58&&e<=130}function T(e){return e>=58&&e<=134}function w(e){return x[e]}function F(e){return e>=127&&e<=129}function P(e){return e>=58&&e<=92}function k(e){return 34===e}function N(e){return y[e]}function I(e){return g[e]}function B(e){return e>=24&&e<=25}function _(e){return m[e]}function O(e,t){if(null==e)return{};var r,n,s={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],!(t.indexOf(r)>=0)&&(s[r]=e[r]);return s}m[8].updateContext=e=>{e.pop()},m[5].updateContext=m[7].updateContext=m[23].updateContext=e=>{e.push(n.brace)},m[22].updateContext=e=>{e[e.length-1]===n.template?e.pop():e.push(n.template)},m[140].updateContext=e=>{e.push(n.j_expr,n.j_oTag)};var L=class{constructor(e,t,r){this.line=void 0,this.column=void 0,this.index=void 0,this.line=e,this.column=t,this.index=r}},j=class{constructor(e,t){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=e,this.end=t}};function M(e,t){let{line:r,column:n,index:s}=e;return new L(r,n+t,s+t)}var R="BABEL_PARSER_SYNTAX_ERROR",$="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",U=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length-1;return{get(){return e.reduce(((e,t)=>e[t]),this)},set(r){e.reduce(((e,n,s)=>s===t?e[n]=r:e[n]),this)}}},z={ImportMetaOutsideModule:{message:"import.meta may appear only with 'sourceType: \"module\"'",code:$},ImportOutsideModule:{message:"'import' and 'export' may appear only with 'sourceType: \"module\"'",code:$}},V={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},W=e=>{let{type:t,prefix:r}=e;return"UpdateExpression"===t?V.UpdateExpression[String(r)]:V[t]},q={AccessorIsGenerator:e=>{let{kind:t}=e;return`A ${t}ter cannot be a generator.`},ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitInUsingBinding:"'await' is not allowed to be used as a name in 'using' declarations.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncFunction:"'await' is only allowed within async functions.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:e=>{let{kind:t}=e;return`Missing initializer in ${t} declaration.`},DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:e=>{let{exportName:t}=e;return`\`${t}\` has already been exported. Exported identifiers must be unique.`},DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:e=>{let{localName:t,exportName:r}=e;return`A string literal cannot be used as an exported binding without \`from\`.\n- Did you mean \`export { '${t}' as '${r}' } from 'some-module'\`?`},ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:e=>{let{type:t}=e;return`'${"ForInStatement"===t?"for-in":"for-of"}' loop variable declaration may not have an initializer.`},ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:e=>{let{type:t}=e;return`Unsyntactic ${"BreakStatement"===t?"break":"continue"}.`},IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportBindingIsString:e=>{let{importName:t}=e;return`A string literal cannot be used as an imported binding.\n- Did you mean \`import { "${t}" as foo }\`?`},ImportCallArgumentTrailingComma:"Trailing comma is disallowed inside import(...) arguments.",ImportCallArity:e=>{let{maxArgumentCount:t}=e;return`\`import()\` requires exactly ${1===t?"one argument":"one or two arguments"}.`},ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:e=>{let{radix:t}=e;return`Expected number in radix ${t}.`},InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:e=>{let{reservedWord:t}=e;return`Escape sequence in keyword ${t}.`},InvalidIdentifier:e=>{let{identifierName:t}=e;return`Invalid identifier ${t}.`},InvalidLhs:e=>{let{ancestor:t}=e;return`Invalid left-hand side in ${W(t)}.`},InvalidLhsBinding:e=>{let{ancestor:t}=e;return`Binding invalid left-hand side in ${W(t)}.`},InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:e=>{let{unexpected:t}=e;return`Unexpected character '${t}'.`},InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:e=>{let{identifierName:t}=e;return`Private name #${t} is not defined.`},InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:e=>{let{labelName:t}=e;return`Label '${t}' is already declared.`},LetInLexicalBinding:"'let' is not allowed to be used as a name in 'let' or 'const' declarations.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:e=>{let{missingPlugin:t}=e;return`This experimental syntax requires enabling the parser plugin: ${t.map((e=>JSON.stringify(e))).join(", ")}.`},MissingOneOfPlugins:e=>{let{missingPlugin:t}=e;return`This experimental syntax requires enabling one of the following parser plugin(s): ${t.map((e=>JSON.stringify(e))).join(", ")}.`},MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:e=>{let{key:t}=e;return`Duplicate key "${t}" is not allowed in module attributes.`},ModuleExportNameHasLoneSurrogate:e=>{let{surrogateCharCode:t}=e;return`An export name cannot include a lone surrogate, found '\\u${t.toString(16)}'.`},ModuleExportUndefined:e=>{let{localName:t}=e;return`Export '${t}' is not defined.`},MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:e=>{let{identifierName:t}=e;return`Private names are only allowed in property accesses (\`obj.#${t}\`) or in \`in\` expressions (\`#${t} in obj\`).`},PrivateNameRedeclaration:e=>{let{identifierName:t}=e;return`Duplicate private name #${t}.`},RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:e=>{let{keyword:t}=e;return`Unexpected keyword '${t}'.`},UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:e=>{let{reservedWord:t}=e;return`Unexpected reserved word '${t}'.`},UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:e=>{let{expected:t,unexpected:r}=e;return`Unexpected token${r?` '${r}'.`:""}${t?`, expected "${t}"`:""}`},UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script`.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:e=>{let{target:t,onlyValidPropertyName:r}=e;return`The only valid meta property for ${t} is ${t}.${r}.`},UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:e=>{let{identifierName:t}=e;return`Identifier '${t}' has already been declared.`},YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},H=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),J={PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:e=>{let{token:t}=e;return`Invalid topic token ${t}. In order to use ${t} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${t}" }.`},PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:e=>{let{type:t}=e;return`Hack-style pipe body cannot be an unparenthesized ${W({type:t})}; please wrap it in parentheses.`},PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'},G=["toMessage"],X=["message"];function K(e){let{toMessage:t}=e,r=O(e,G);return function e(n){let{loc:s,details:i}=n;return((e,t,r)=>Object.keys(r).map((e=>[e,r[e]])).filter((e=>{let[,t]=e;return!!t})).map((e=>{let[t,r]=e;return[t,"function"==typeof r?{value:r,enumerable:!1}:"string"==typeof r.reflect?Object.assign({},r,U(r.reflect.split("."))):r]})).reduce(((e,t)=>{let[r,n]=t;return Object.defineProperty(e,r,Object.assign({configurable:!0},n))}),Object.assign(new e,t)))(SyntaxError,Object.assign({},r,{loc:s}),{clone(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.loc||{};return e({loc:new L("line"in r?r.line:this.loc.line,"column"in r?r.column:this.loc.column,"index"in r?r.index:this.loc.index),details:Object.assign({},this.details,t.details)})},details:{value:i,enumerable:!1},message:{get(){return`${t(this.details)} (${this.loc.line}:${this.loc.column})`},set(e){Object.defineProperty(this,"message",{value:e})}},pos:{reflect:"loc.index",enumerable:!0},missingPlugin:"missingPlugin"in i&&{reflect:"details.missingPlugin",enumerable:!0}})}}function Z(e,t){if(Array.isArray(e))return t=>Z(t,e[0]);let r={};for(let n of Object.keys(e)){let s=e[n],i="string"==typeof s?{message:()=>s}:"function"==typeof s?{message:s}:s,{message:a}=i,o=O(i,X),u="string"==typeof a?()=>a:a;r[n]=K(Object.assign({code:R,reasonCode:n,toMessage:u},t?{syntaxPlugin:t}:{},o))}return r}var Y=Object.assign({},Z(z),Z(q),Z({StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:e=>{let{referenceName:t}=e;return`Assigning to '${t}' in strict mode.`},StrictEvalArgumentsBinding:e=>{let{bindingName:t}=e;return`Binding '${t}' in strict mode.`},StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."}),Z`pipelineOperator`(J)),{defineProperty:Q}=Object,ee=(e,t)=>Q(e,t,{enumerable:!1,value:e[t]});function te(e){return e.loc.start&&ee(e.loc.start,"index"),e.loc.end&&ee(e.loc.end,"index"),e}var re="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",ne="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",se=new RegExp("["+re+"]"),ie=new RegExp("["+re+ne+"]");re=ne=null;var ae=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,3104,541,1507,4938,6,4191],oe=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239];function ue(e,t){let r=65536;for(let n=0,s=t.length;n<s;n+=2){if(r+=t[n],r>e)return!1;if(r+=t[n+1],r>=e)return!0}return!1}function le(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&se.test(String.fromCharCode(e)):ue(e,ae)))}function pe(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&ie.test(String.fromCharCode(e)):ue(e,ae)||ue(e,oe))))}var ce=["implements","interface","let","package","private","protected","public","static","yield"],he=["eval","arguments"],de=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"]),fe=new Set(ce),me=new Set(he);function ye(e,t){return t&&"await"===e||"enum"===e}function ge(e,t){return ye(e,t)||fe.has(e)}function De(e){return me.has(e)}function xe(e,t){return ge(e,t)||De(e)}var Ee=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);var be=64,Ce=128,ve=256,Ae=387,Se=128,Te=1024,we=2048,Fe=4096,Pe=8192,ke=8201,Ne=64,Ie=class{constructor(e){this.var=new Set,this.lexical=new Set,this.functions=new Set,this.flags=e}},Be=class{constructor(e,t){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=e,this.inModule=t}get inTopLevel(){return(1&this.currentScope().flags)>0}get inFunction(){return(2&this.currentVarScopeFlags())>0}get allowSuper(){return(16&this.currentThisScopeFlags())>0}get allowDirectSuper(){return(32&this.currentThisScopeFlags())>0}get inClass(){return(this.currentThisScopeFlags()&be)>0}get inClassAndNotInNonArrowFunction(){let e=this.currentThisScopeFlags();return(e&be)>0&&0==(2&e)}get inStaticBlock(){for(let e=this.scopeStack.length-1;;e--){let{flags:t}=this.scopeStack[e];if(t&Ce)return!0;if(451&t)return!1}}get inNonArrowFunction(){return(2&this.currentThisScopeFlags())>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(e){return new Ie(e)}enter(e){this.scopeStack.push(this.createScope(e))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(e){return!!(130&e.flags||!this.parser.inModule&&1&e.flags)}declareName(e,t,r){let n=this.currentScope();if(8&t||16&t)this.checkRedeclarationInScope(n,e,t,r),16&t?n.functions.add(e):n.lexical.add(e),8&t&&this.maybeExportDefined(n,e);else if(4&t)for(let s=this.scopeStack.length-1;s>=0&&(n=this.scopeStack[s],this.checkRedeclarationInScope(n,e,t,r),n.var.add(e),this.maybeExportDefined(n,e),!(n.flags&Ae));--s);this.parser.inModule&&1&n.flags&&this.undefinedExports.delete(e)}maybeExportDefined(e,t){this.parser.inModule&&1&e.flags&&this.undefinedExports.delete(t)}checkRedeclarationInScope(e,t,r,n){this.isRedeclaredInScope(e,t,r)&&this.parser.raise(Y.VarRedeclaration,{at:n,identifierName:t})}isRedeclaredInScope(e,t,r){return!!(1&r)&&(8&r?e.lexical.has(t)||e.functions.has(t)||e.var.has(t):16&r?e.lexical.has(t)||!this.treatFunctionsAsVarInScope(e)&&e.var.has(t):e.lexical.has(t)&&!(8&e.flags&&e.lexical.values().next().value===t)||!this.treatFunctionsAsVarInScope(e)&&e.functions.has(t))}checkLocalExport(e){let{name:t}=e,r=this.scopeStack[0];!r.lexical.has(t)&&!r.var.has(t)&&!r.functions.has(t)&&this.undefinedExports.set(t,e.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let e=this.scopeStack.length-1;;e--){let{flags:t}=this.scopeStack[e];if(t&Ae)return t}}currentThisScopeFlags(){for(let e=this.scopeStack.length-1;;e--){let{flags:t}=this.scopeStack[e];if(451&t&&!(4&t))return t}}},_e=class extends Ie{constructor(){super(...arguments),this.declareFunctions=new Set}},Oe=class extends Be{createScope(e){return new _e(e)}declareName(e,t,r){let n=this.currentScope();if(t&we)return this.checkRedeclarationInScope(n,e,t,r),this.maybeExportDefined(n,e),void n.declareFunctions.add(e);super.declareName(e,t,r)}isRedeclaredInScope(e,t,r){return!!super.isRedeclaredInScope(e,t,r)||!!(r&we)&&!e.declareFunctions.has(t)&&(e.lexical.has(t)||e.functions.has(t))}checkLocalExport(e){this.scopeStack[0].declareFunctions.has(e.name)||super.checkLocalExport(e)}},Le=class{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}hasPlugin(e){if("string"==typeof e)return this.plugins.has(e);{let[t,r]=e;if(!this.hasPlugin(t))return!1;let n=this.plugins.get(t);for(let e of Object.keys(r))if((null==n?void 0:n[e])!==r[e])return!1;return!0}}getPluginOption(e,t){var r;return null==(r=this.plugins.get(e))?void 0:r[t]}};function je(e,t){void 0===e.trailingComments?e.trailingComments=t:e.trailingComments.unshift(...t)}function Me(e,t){void 0===e.innerComments?e.innerComments=t:e.innerComments.unshift(...t)}function Re(e,t,r){let n=null,s=t.length;for(;null===n&&s>0;)n=t[--s];null===n||n.start>r.start?Me(e,r.comments):je(n,r.comments)}var $e=class extends Le{addComment(e){this.filename&&(e.loc.filename=this.filename),this.state.comments.push(e)}processComment(e){let{commentStack:t}=this.state,r=t.length;if(0===r)return;let n=r-1,s=t[n];s.start===e.end&&(s.leadingNode=e,n--);let{start:i}=e;for(;n>=0;n--){let r=t[n],s=r.end;if(!(s>i)){s===i&&(r.trailingNode=e);break}r.containingNode=e,this.finalizeComment(r),t.splice(n,1)}}finalizeComment(e){let{comments:t}=e;if(null!==e.leadingNode||null!==e.trailingNode)null!==e.leadingNode&&je(e.leadingNode,t),null!==e.trailingNode&&function(e,t){void 0===e.leadingComments?e.leadingComments=t:e.leadingComments.unshift(...t)}(e.trailingNode,t);else{let{containingNode:r,start:n}=e;if(44===this.input.charCodeAt(n-1))switch(r.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":Re(r,r.properties,e);break;case"CallExpression":case"OptionalCallExpression":Re(r,r.arguments,e);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":Re(r,r.params,e);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":Re(r,r.elements,e);break;case"ExportNamedDeclaration":case"ImportDeclaration":Re(r,r.specifiers,e);break;default:Me(r,t)}else Me(r,t)}}finalizeRemainingComments(){let{commentStack:e}=this.state;for(let t=e.length-1;t>=0;t--)this.finalizeComment(e[t]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(e){let{commentStack:t}=this.state,{length:r}=t;if(0===r)return;let n=t[r-1];n.leadingNode===e&&(n.leadingNode=null)}takeSurroundingComments(e,t,r){let{commentStack:n}=this.state,s=n.length;if(0===s)return;let i=s-1;for(;i>=0;i--){let s=n[i],a=s.end;if(s.start===r)s.leadingNode=e;else if(a===t)s.trailingNode=e;else if(a<t)break}}},Ue=/\r\n?|[\n\u2028\u2029]/,ze=new RegExp(Ue.source,"g");function Ve(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}var We=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,qe=new RegExp("(?=("+/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/y.source+"))\\1"+/(?=[\n\r\u2028\u2029]|\/\*(?!.*?\*\/)|$)/.source,"y");function He(e){switch(e){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}var Je=class{constructor(){this.strict=void 0,this.curLine=void 0,this.lineStart=void 0,this.startLoc=void 0,this.endLoc=void 0,this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.maybeInArrowParameters=!1,this.inType=!1,this.noAnonFunctionType=!1,this.hasFlowComment=!1,this.isAmbientContext=!1,this.inAbstractClass=!1,this.inDisallowConditionalTypesContext=!1,this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.soloAwait=!1,this.inFSharpPipelineDirectBody=!1,this.labels=[],this.comments=[],this.commentStack=[],this.pos=0,this.type=137,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.lastTokStart=0,this.context=[n.brace],this.canStartJSXElement=!0,this.containsEsc=!1,this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0}init(e){let{strictMode:t,sourceType:r,startLine:n,startColumn:s}=e;this.strict=!1!==t&&(!0===t||"module"===r),this.curLine=n,this.lineStart=-s,this.startLoc=this.endLoc=new L(n,s,0)}curPosition(){return new L(this.curLine,this.pos-this.lineStart,this.pos)}clone(e){let t=new Je,r=Object.keys(this);for(let n=0,s=r.length;n<s;n++){let s=r[n],i=this[s];!e&&Array.isArray(i)&&(i=i.slice()),t[s]=i}return t}},Ge=function(e){return e>=48&&e<=57},Xe={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},Ke={bin:e=>48===e||49===e,oct:e=>e>=48&&e<=55,dec:e=>e>=48&&e<=57,hex:e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102};function Ze(e,t,r,n,s,i){let a=r,o=n,u=s,l="",p=null,c=r,{length:h}=t;for(;;){if(r>=h){i.unterminated(a,o,u),l+=t.slice(c,r);break}let d=t.charCodeAt(r);if(Ye(e,d,t,r)){l+=t.slice(c,r);break}if(92===d){l+=t.slice(c,r);let a=Qe(t,r,n,s,"template"===e,i);null!==a.ch||p?l+=a.ch:p={pos:r,lineStart:n,curLine:s},({pos:r,lineStart:n,curLine:s}=a),c=r}else 8232===d||8233===d?(++s,n=++r):10===d||13===d?"template"===e?(l+=t.slice(c,r)+"\n",++r,13===d&&10===t.charCodeAt(r)&&++r,++s,c=n=r):i.unterminated(a,o,u):++r}return{pos:r,str:l,firstInvalidLoc:p,lineStart:n,curLine:s,containsInvalid:!!p}}function Ye(e,t,r,n){return"template"===e?96===t||36===t&&123===r.charCodeAt(n+1):t===("double"===e?34:39)}function Qe(e,t,r,n,s,i){let a=!s;t++;let o=e=>({pos:t,ch:e,lineStart:r,curLine:n}),u=e.charCodeAt(t++);switch(u){case 110:return o("\n");case 114:return o("\r");case 120:{let s;return({code:s,pos:t}=et(e,t,r,n,2,!1,a,i)),o(null===s?null:String.fromCharCode(s))}case 117:{let s;return({code:s,pos:t}=rt(e,t,r,n,a,i)),o(null===s?null:String.fromCodePoint(s))}case 116:return o("\t");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:10===e.charCodeAt(t)&&++t;case 10:r=t,++n;case 8232:case 8233:return o("");case 56:case 57:if(s)return o(null);i.strictNumericEscape(t-1,r,n);default:if(u>=48&&u<=55){let a=t-1,u=e.slice(a,t+2).match(/^[0-7]+/)[0],l=parseInt(u,8);l>255&&(u=u.slice(0,-1),l=parseInt(u,8)),t+=u.length-1;let p=e.charCodeAt(t);if("0"!==u||56===p||57===p){if(s)return o(null);i.strictNumericEscape(a,r,n)}return o(String.fromCharCode(l))}return o(String.fromCharCode(u))}}function et(e,t,r,n,s,i,a,o){let u,l=t;return({n:u,pos:t}=tt(e,t,r,n,16,s,i,!1,o,!a)),null===u&&(a?o.invalidEscapeSequence(l,r,n):t=l-1),{code:u,pos:t}}function tt(e,t,r,n,s,i,a,o,u,l){let p=t,c=16===s?Xe.hex:Xe.decBinOct,h=16===s?Ke.hex:10===s?Ke.dec:8===s?Ke.oct:Ke.bin,d=!1,f=0;for(let p=0,m=null==i?1/0:i;p<m;++p){let i,p=e.charCodeAt(t);if(95!==p||"bail"===o){if(i=p>=97?p-97+10:p>=65?p-65+10:Ge(p)?p-48:1/0,i>=s){if(i<=9&&l)return{n:null,pos:t};if(i<=9&&u.invalidDigit(t,r,n,s))i=0;else{if(!a)break;i=0,d=!0}}++t,f=f*s+i}else{let s=e.charCodeAt(t-1),i=e.charCodeAt(t+1);if(o){if(Number.isNaN(i)||!h(i)||c.has(s)||c.has(i)){if(l)return{n:null,pos:t};u.unexpectedNumericSeparator(t,r,n)}}else{if(l)return{n:null,pos:t};u.numericSeparatorInEscapeSequence(t,r,n)}++t}}return t===p||null!=i&&t-p!==i||d?{n:null,pos:t}:{n:f,pos:t}}function rt(e,t,r,n,s,i){let a;if(123===e.charCodeAt(t)){if(++t,({code:a,pos:t}=et(e,t,r,n,e.indexOf("}",t)-t,!0,s,i)),++t,null!==a&&a>1114111){if(!s)return{code:null,pos:t};i.invalidCodePoint(t,r,n)}}else({code:a,pos:t}=et(e,t,r,n,4,!1,s,i));return{code:a,pos:t}}var nt=["at"],st=["at"];function it(e,t,r){return new L(r,e-t,e)}var at=new Set([103,109,115,105,121,117,100,118]),ot=class{constructor(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,this.loc=new j(e.startLoc,e.endLoc)}},ut=class extends $e{constructor(e,t){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(e,t,r,n)=>!!this.options.errorRecovery&&(this.raise(Y.InvalidDigit,{at:it(e,t,r),radix:n}),!0),numericSeparatorInEscapeSequence:this.errorBuilder(Y.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(Y.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(Y.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(Y.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(e,t,r)=>{this.recordStrictModeErrors(Y.StrictNumericEscape,{at:it(e,t,r)})},unterminated:(e,t,r)=>{throw this.raise(Y.UnterminatedString,{at:it(e-1,t,r)})}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(Y.StrictNumericEscape),unterminated:(e,t,r)=>{throw this.raise(Y.UnterminatedTemplate,{at:it(e,t,r)})}}),this.state=new Je,this.state.init(e),this.input=t,this.length=t.length,this.isLookahead=!1}pushToken(e){this.tokens.length=this.state.tokensLength,this.tokens.push(e),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new ot(this.state)),this.state.lastTokStart=this.state.start,this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(e){return!!this.match(e)&&(this.next(),!0)}match(e){return this.state.type===e}createLookaheadState(e){return{pos:e.pos,value:null,type:e.type,start:e.start,end:e.end,context:[this.curContext()],inType:e.inType,startLoc:e.startLoc,lastTokEndLoc:e.lastTokEndLoc,curLine:e.curLine,lineStart:e.lineStart,curPosition:e.curPosition}}lookahead(){let e=this.state;this.state=this.createLookaheadState(e),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let t=this.state;return this.state=e,t}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(e){return We.lastIndex=e,We.test(this.input)?We.lastIndex:e}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}codePointAtPos(e){let t=this.input.charCodeAt(e);if(55296==(64512&t)&&++e<this.input.length){let r=this.input.charCodeAt(e);56320==(64512&r)&&(t=65536+((1023&t)<<10)+(1023&r))}return t}setStrict(e){this.state.strict=e,e&&(this.state.strictErrors.forEach((e=>{let[t,r]=e;return this.raise(t,{at:r})})),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length?this.finishToken(137):this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(e){let t;this.isLookahead||(t=this.state.curPosition());let r=this.state.pos,n=this.input.indexOf(e,r+2);if(-1===n)throw this.raise(Y.UnterminatedComment,{at:this.state.curPosition()});for(this.state.pos=n+e.length,ze.lastIndex=r+2;ze.test(this.input)&&ze.lastIndex<=n;)++this.state.curLine,this.state.lineStart=ze.lastIndex;if(this.isLookahead)return;let s={type:"CommentBlock",value:this.input.slice(r+2,n),start:r,end:n+e.length,loc:new j(t,this.state.curPosition())};return this.options.tokens&&this.pushToken(s),s}skipLineComment(e){let t,r=this.state.pos;this.isLookahead||(t=this.state.curPosition());let n=this.input.charCodeAt(this.state.pos+=e);if(this.state.pos<this.length)for(;!Ve(n)&&++this.state.pos<this.length;)n=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;let s=this.state.pos,i={type:"CommentLine",value:this.input.slice(r+e,s),start:r,end:s,loc:new j(t,this.state.curPosition())};return this.options.tokens&&this.pushToken(i),i}skipSpace(){let e=this.state.pos,t=[];e:for(;this.state.pos<this.length;){let r=this.input.charCodeAt(this.state.pos);switch(r){case 32:case 160:case 9:++this.state.pos;break;case 13:10===this.input.charCodeAt(this.state.pos+1)&&++this.state.pos;case 10:case 8232:case 8233:++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:{let e=this.skipBlockComment("*/");void 0!==e&&(this.addComment(e),this.options.attachComment&&t.push(e));break}case 47:{let e=this.skipLineComment(2);void 0!==e&&(this.addComment(e),this.options.attachComment&&t.push(e));break}default:break e}break;default:if(He(r))++this.state.pos;else if(45===r&&!this.inModule&&this.options.annexB){let r=this.state.pos;if(45!==this.input.charCodeAt(r+1)||62!==this.input.charCodeAt(r+2)||!(0===e||this.state.lineStart>e))break e;{let e=this.skipLineComment(3);void 0!==e&&(this.addComment(e),this.options.attachComment&&t.push(e))}}else{if(60!==r||this.inModule||!this.options.annexB)break e;{let e=this.state.pos;if(33!==this.input.charCodeAt(e+1)||45!==this.input.charCodeAt(e+2)||45!==this.input.charCodeAt(e+3))break e;{let e=this.skipLineComment(4);void 0!==e&&(this.addComment(e),this.options.attachComment&&t.push(e))}}}}}if(t.length>0){let r={start:e,end:this.state.pos,comments:t,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(r)}}finishToken(e,t){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let r=this.state.type;this.state.type=e,this.state.value=t,this.isLookahead||this.updateContext(r)}replaceToken(e){this.state.type=e,this.updateContext()}readToken_numberSign(){if(0===this.state.pos&&this.readToken_interpreter())return;let e=this.state.pos+1,t=this.codePointAtPos(e);if(t>=48&&t<=57)throw this.raise(Y.UnexpectedDigitAfterHash,{at:this.state.curPosition()});if(123===t||91===t&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),"bar"===this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(123===t?Y.RecordExpressionHashIncorrectStartSyntaxType:Y.TupleExpressionHashIncorrectStartSyntaxType,{at:this.state.curPosition()});this.state.pos+=2,123===t?this.finishToken(7):this.finishToken(1)}else le(t)?(++this.state.pos,this.finishToken(136,this.readWord1(t))):92===t?(++this.state.pos,this.finishToken(136,this.readWord1())):this.finishOp(27,1)}readToken_dot(){let e=this.input.charCodeAt(this.state.pos+1);e>=48&&e<=57?this.readNumber(!0):46===e&&46===this.input.charCodeAt(this.state.pos+2)?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(0!==this.state.pos||this.length<2)return!1;let e=this.input.charCodeAt(this.state.pos+1);if(33!==e)return!1;let t=this.state.pos;for(this.state.pos+=1;!Ve(e)&&++this.state.pos<this.length;)e=this.input.charCodeAt(this.state.pos);let r=this.input.slice(t+2,this.state.pos);return this.finishToken(28,r),!0}readToken_mult_modulo(e){let t=42===e?55:54,r=1,n=this.input.charCodeAt(this.state.pos+1);42===e&&42===n&&(r++,n=this.input.charCodeAt(this.state.pos+2),t=57),61===n&&!this.state.inType&&(r++,t=37===e?33:30),this.finishOp(t,r)}readToken_pipe_amp(e){let t=this.input.charCodeAt(this.state.pos+1);if(t!==e){if(124===e){if(62===t)return void this.finishOp(39,2);if(this.hasPlugin("recordAndTuple")&&125===t){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(Y.RecordExpressionBarIncorrectEndSyntaxType,{at:this.state.curPosition()});return this.state.pos+=2,void this.finishToken(9)}if(this.hasPlugin("recordAndTuple")&&93===t){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(Y.TupleExpressionBarIncorrectEndSyntaxType,{at:this.state.curPosition()});return this.state.pos+=2,void this.finishToken(4)}}61!==t?this.finishOp(124===e?43:45,1):this.finishOp(30,2)}else 61===this.input.charCodeAt(this.state.pos+2)?this.finishOp(30,3):this.finishOp(124===e?41:42,2)}readToken_caret(){let e=this.input.charCodeAt(this.state.pos+1);61!==e||this.state.inType?94===e&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])?(this.finishOp(37,2),94===this.input.codePointAt(this.state.pos)&&this.unexpected()):this.finishOp(44,1):this.finishOp(32,2)}readToken_atSign(){64===this.input.charCodeAt(this.state.pos+1)&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"@@"}])?this.finishOp(38,2):this.finishOp(26,1)}readToken_plus_min(e){let t=this.input.charCodeAt(this.state.pos+1);t!==e?61===t?this.finishOp(30,2):this.finishOp(53,1):this.finishOp(34,2)}readToken_lt(){let{pos:e}=this.state,t=this.input.charCodeAt(e+1);if(60===t)return 61===this.input.charCodeAt(e+2)?void this.finishOp(30,3):void this.finishOp(51,2);61!==t?this.finishOp(47,1):this.finishOp(49,2)}readToken_gt(){let{pos:e}=this.state,t=this.input.charCodeAt(e+1);if(62===t){let t=62===this.input.charCodeAt(e+2)?3:2;return 61===this.input.charCodeAt(e+t)?void this.finishOp(30,t+1):void this.finishOp(52,t)}61!==t?this.finishOp(48,1):this.finishOp(49,2)}readToken_eq_excl(e){let t=this.input.charCodeAt(this.state.pos+1);if(61!==t)return 61===e&&62===t?(this.state.pos+=2,void this.finishToken(19)):void this.finishOp(61===e?29:35,1);this.finishOp(46,61===this.input.charCodeAt(this.state.pos+2)?3:2)}readToken_question(){let e=this.input.charCodeAt(this.state.pos+1),t=this.input.charCodeAt(this.state.pos+2);63===e?61===t?this.finishOp(30,3):this.finishOp(40,2):46!==e||t>=48&&t<=57?(++this.state.pos,this.finishToken(17)):(this.state.pos+=2,this.finishToken(18))}getTokenFromCode(e){switch(e){case 46:return void this.readToken_dot();case 40:return++this.state.pos,void this.finishToken(10);case 41:return++this.state.pos,void this.finishToken(11);case 59:return++this.state.pos,void this.finishToken(13);case 44:return++this.state.pos,void this.finishToken(12);case 91:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(Y.TupleExpressionBarIncorrectStartSyntaxType,{at:this.state.curPosition()});this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:return++this.state.pos,void this.finishToken(3);case 123:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(Y.RecordExpressionBarIncorrectStartSyntaxType,{at:this.state.curPosition()});this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:return++this.state.pos,void this.finishToken(8);case 58:return void(this.hasPlugin("functionBind")&&58===this.input.charCodeAt(this.state.pos+1)?this.finishOp(15,2):(++this.state.pos,this.finishToken(14)));case 63:return void this.readToken_question();case 96:return void this.readTemplateToken();case 48:{let e=this.input.charCodeAt(this.state.pos+1);if(120===e||88===e)return void this.readRadixNumber(16);if(111===e||79===e)return void this.readRadixNumber(8);if(98===e||66===e)return void this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return void this.readNumber(!1);case 34:case 39:return void this.readString(e);case 47:return void this.readToken_slash();case 37:case 42:return void this.readToken_mult_modulo(e);case 124:case 38:return void this.readToken_pipe_amp(e);case 94:return void this.readToken_caret();case 43:case 45:return void this.readToken_plus_min(e);case 60:return void this.readToken_lt();case 62:return void this.readToken_gt();case 61:case 33:return void this.readToken_eq_excl(e);case 126:return void this.finishOp(36,1);case 64:return void this.readToken_atSign();case 35:return void this.readToken_numberSign();case 92:return void this.readWord();default:if(le(e))return void this.readWord(e)}throw this.raise(Y.InvalidOrUnexpectedToken,{at:this.state.curPosition(),unexpected:String.fromCodePoint(e)})}finishOp(e,t){let r=this.input.slice(this.state.pos,this.state.pos+t);this.state.pos+=t,this.finishToken(e,r)}readRegexp(){let e,t,r=this.state.startLoc,n=this.state.start+1,{pos:s}=this.state;for(;;++s){if(s>=this.length)throw this.raise(Y.UnterminatedRegExp,{at:M(r,1)});let n=this.input.charCodeAt(s);if(Ve(n))throw this.raise(Y.UnterminatedRegExp,{at:M(r,1)});if(e)e=!1;else{if(91===n)t=!0;else if(93===n&&t)t=!1;else if(47===n&&!t)break;e=92===n}}let i=this.input.slice(n,s);++s;let a="",o=()=>M(r,s+2-n);for(;s<this.length;){let e=this.codePointAtPos(s),t=String.fromCharCode(e);if(at.has(e))118===e?(this.expectPlugin("regexpUnicodeSets",o()),a.includes("u")&&this.raise(Y.IncompatibleRegExpUVFlags,{at:o()})):117===e&&a.includes("v")&&this.raise(Y.IncompatibleRegExpUVFlags,{at:o()}),a.includes(t)&&this.raise(Y.DuplicateRegExpFlags,{at:o()});else{if(!pe(e)&&92!==e)break;this.raise(Y.MalformedRegExpFlags,{at:o()})}++s,a+=t}this.state.pos=s,this.finishToken(135,{pattern:i,flags:a})}readInt(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{n:s,pos:i}=tt(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,t,r,n,this.errorHandlers_readInt,!1);return this.state.pos=i,s}readRadixNumber(e){let t=this.state.curPosition(),r=!1;this.state.pos+=2;let n=this.readInt(e);null==n&&this.raise(Y.InvalidDigit,{at:M(t,2),radix:e});let s=this.input.charCodeAt(this.state.pos);if(110===s)++this.state.pos,r=!0;else if(109===s)throw this.raise(Y.InvalidDecimal,{at:t});if(le(this.codePointAtPos(this.state.pos)))throw this.raise(Y.NumberIdentifier,{at:this.state.curPosition()});if(r){let e=this.input.slice(t.index,this.state.pos).replace(/[_n]/g,"");this.finishToken(133,e)}else this.finishToken(132,n)}readNumber(e){let t=this.state.pos,r=this.state.curPosition(),n=!1,s=!1,i=!1,a=!1,o=!1;!e&&null===this.readInt(10)&&this.raise(Y.InvalidNumber,{at:this.state.curPosition()});let u=this.state.pos-t>=2&&48===this.input.charCodeAt(t);if(u){let e=this.input.slice(t,this.state.pos);if(this.recordStrictModeErrors(Y.StrictOctalLiteral,{at:r}),!this.state.strict){let t=e.indexOf("_");t>0&&this.raise(Y.ZeroDigitNumericSeparator,{at:M(r,t)})}o=u&&!/[89]/.test(e)}let l=this.input.charCodeAt(this.state.pos);if(46===l&&!o&&(++this.state.pos,this.readInt(10),n=!0,l=this.input.charCodeAt(this.state.pos)),(69===l||101===l)&&!o&&(l=this.input.charCodeAt(++this.state.pos),(43===l||45===l)&&++this.state.pos,null===this.readInt(10)&&this.raise(Y.InvalidOrMissingExponent,{at:r}),n=!0,a=!0,l=this.input.charCodeAt(this.state.pos)),110===l&&((n||u)&&this.raise(Y.InvalidBigIntLiteral,{at:r}),++this.state.pos,s=!0),109===l&&(this.expectPlugin("decimal",this.state.curPosition()),(a||u)&&this.raise(Y.InvalidDecimal,{at:r}),++this.state.pos,i=!0),le(this.codePointAtPos(this.state.pos)))throw this.raise(Y.NumberIdentifier,{at:this.state.curPosition()});let p=this.input.slice(t,this.state.pos).replace(/[_mn]/g,"");if(s)return void this.finishToken(133,p);if(i)return void this.finishToken(134,p);let c=o?parseInt(p,8):parseFloat(p);this.finishToken(132,c)}readCodePoint(e){let{code:t,pos:r}=rt(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,this.errorHandlers_readCodePoint);return this.state.pos=r,t}readString(e){let{str:t,pos:r,curLine:n,lineStart:s}=Ze(34===e?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=r+1,this.state.lineStart=s,this.state.curLine=n,this.finishToken(131,t)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){let e=this.input[this.state.pos],{str:t,firstInvalidLoc:r,pos:n,curLine:s,lineStart:i}=Ze("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=n+1,this.state.lineStart=i,this.state.curLine=s,r&&(this.state.firstInvalidTemplateEscapePos=new L(r.curLine,r.pos-r.lineStart,r.pos)),96===this.input.codePointAt(n)?this.finishToken(24,r?null:e+t+"`"):(this.state.pos++,this.finishToken(25,r?null:e+t+"${"))}recordStrictModeErrors(e,t){let{at:r}=t,n=r.index;this.state.strict&&!this.state.strictErrors.has(n)?this.raise(e,{at:r}):this.state.strictErrors.set(n,[e,r])}readWord1(e){this.state.containsEsc=!1;let t="",r=this.state.pos,n=this.state.pos;for(void 0!==e&&(this.state.pos+=e<=65535?1:2);this.state.pos<this.length;){let e=this.codePointAtPos(this.state.pos);if(pe(e))this.state.pos+=e<=65535?1:2;else{if(92!==e)break;{this.state.containsEsc=!0,t+=this.input.slice(n,this.state.pos);let e=this.state.curPosition(),s=this.state.pos===r?le:pe;if(117!==this.input.charCodeAt(++this.state.pos)){this.raise(Y.MissingUnicodeEscape,{at:this.state.curPosition()}),n=this.state.pos-1;continue}++this.state.pos;let i=this.readCodePoint(!0);null!==i&&(s(i)||this.raise(Y.EscapedCharNotAnIdentifier,{at:e}),t+=String.fromCodePoint(i)),n=this.state.pos}}}return t+this.input.slice(n,this.state.pos)}readWord(e){let t=this.readWord1(e),r=c.get(t);void 0!==r?this.finishToken(r,N(r)):this.finishToken(130,t)}checkKeywordEscapes(){let{type:e}=this.state;P(e)&&this.state.containsEsc&&this.raise(Y.InvalidEscapedReservedWord,{at:this.state.startLoc,reservedWord:N(e)})}raise(e,t){let{at:r}=t,n=O(t,nt),s=e({loc:r instanceof L?r:r.loc.start,details:n});if(!this.options.errorRecovery)throw s;return this.isLookahead||this.state.errors.push(s),s}raiseOverwrite(e,t){let{at:r}=t,n=O(t,st),s=r instanceof L?r:r.loc.start,i=s.index,a=this.state.errors;for(let t=a.length-1;t>=0;t--){let r=a[t];if(r.loc.index===i)return a[t]=e({loc:s,details:n});if(r.loc.index<i)break}return this.raise(e,t)}updateContext(e){}unexpected(e,t){throw this.raise(Y.UnexpectedToken,{expected:t?N(t):null,at:null!=e?e:this.state.startLoc})}expectPlugin(e,t){if(this.hasPlugin(e))return!0;throw this.raise(Y.MissingPlugin,{at:null!=t?t:this.state.startLoc,missingPlugin:[e]})}expectOnePlugin(e){if(!e.some((e=>this.hasPlugin(e))))throw this.raise(Y.MissingOneOfPlugins,{at:this.state.startLoc,missingPlugin:e})}errorBuilder(e){return(t,r,n)=>{this.raise(e,{at:it(t,r,n)})}}},lt=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.type=void 0,this.type=e}canBeArrowParameterDeclaration(){return 2===this.type||1===this.type}isCertainlyParameterDeclaration(){return 3===this.type}},pt=class extends lt{constructor(e){super(e),this.declarationErrors=new Map}recordDeclarationError(e,t){let{at:r}=t,n=r.index;this.declarationErrors.set(n,[e,r])}clearDeclarationError(e){this.declarationErrors.delete(e)}iterateErrors(e){this.declarationErrors.forEach(e)}};function ct(){return new lt}function ht(e,t){return(e?2:0)|(t?1:0)}var dt=class extends ut{addExtra(e,t,r){let n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(!e)return;let s=e.extra=e.extra||{};n?s[t]=r:Object.defineProperty(s,t,{enumerable:n,value:r})}isContextual(e){return this.state.type===e&&!this.state.containsEsc}isUnparsedContextual(e,t){let r=e+t.length;if(this.input.slice(e,r)===t){let e=this.input.charCodeAt(r);return!(pe(e)||55296==(64512&e))}return!1}isLookaheadContextual(e){let t=this.nextTokenStart();return this.isUnparsedContextual(t,e)}eatContextual(e){return!!this.isContextual(e)&&(this.next(),!0)}expectContextual(e,t){if(!this.eatContextual(e)){if(null!=t)throw this.raise(t,{at:this.state.startLoc});this.unexpected(null,e)}}canInsertSemicolon(){return this.match(137)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return Ue.test(this.input.slice(this.state.lastTokEndLoc.index,this.state.start))}hasFollowingLineBreak(){return qe.lastIndex=this.state.end,qe.test(this.input)}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(){(arguments.length>0&&void 0!==arguments[0]&&!arguments[0]?this.eat(13):this.isLineTerminator())||this.raise(Y.MissingSemicolon,{at:this.state.lastTokEndLoc})}expect(e,t){this.eat(e)||this.unexpected(t,e)}tryParse(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state.clone(),r={node:null};try{let n=e((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;throw r.node=e,r}));if(this.state.errors.length>t.errors.length){let e=this.state;return this.state=t,this.state.tokensLength=e.tokensLength,{node:n,error:e.errors[t.errors.length],thrown:!1,aborted:!1,failState:e}}return{node:n,error:null,thrown:!1,aborted:!1,failState:null}}catch(e){let n=this.state;if(this.state=t,e instanceof SyntaxError)return{node:null,error:e,thrown:!0,aborted:!1,failState:n};if(e===r)return{node:r.node,error:null,thrown:!1,aborted:!0,failState:n};throw e}}checkExpressionErrors(e,t){if(!e)return!1;let{shorthandAssignLoc:r,doubleProtoLoc:n,privateKeyLoc:s,optionalParametersLoc:i}=e;if(!t)return!!(r||n||i||s);null!=r&&this.raise(Y.InvalidCoverInitializedName,{at:r}),null!=n&&this.raise(Y.DuplicateProto,{at:n}),null!=s&&this.raise(Y.UnexpectedPrivateField,{at:s}),null!=i&&this.unexpected(i)}isLiteralPropertyName(){return T(this.state.type)}isPrivateName(e){return"PrivateName"===e.type}getPrivateNameSV(e){return e.id.name}hasPropertyAsPrivateName(e){return("MemberExpression"===e.type||"OptionalMemberExpression"===e.type)&&this.isPrivateName(e.property)}isObjectProperty(e){return"ObjectProperty"===e.type}isObjectMethod(e){return"ObjectMethod"===e.type}initializeScopes(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"module"===this.options.sourceType,t=this.state.labels;this.state.labels=[];let r=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let n=this.inModule;this.inModule=e;let s=this.scope,i=this.getScopeHandler();this.scope=new i(this,e);let a=this.prodParam;this.prodParam=new class{constructor(){this.stacks=[]}enter(e){this.stacks.push(e)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(2&this.currentFlags())>0}get hasYield(){return(1&this.currentFlags())>0}get hasReturn(){return(4&this.currentFlags())>0}get hasIn(){return(8&this.currentFlags())>0}};let o=this.classScope;this.classScope=new class{constructor(e){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=e}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new class{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}})}exit(){let e=this.stack.pop(),t=this.current();for(let[r,n]of Array.from(e.undefinedPrivateNames))t?t.undefinedPrivateNames.has(r)||t.undefinedPrivateNames.set(r,n):this.parser.raise(Y.InvalidPrivateFieldResolution,{at:n,identifierName:r})}declarePrivateName(e,t,r){let{privateNames:n,loneAccessors:s,undefinedPrivateNames:i}=this.current(),a=n.has(e);if(3&t){let r=a&&s.get(e);r?(a=(3&r)==(3&t)||(4&r)!=(4&t),a||s.delete(e)):a||s.set(e,t)}a&&this.parser.raise(Y.PrivateNameRedeclaration,{at:r,identifierName:e}),n.add(e),i.delete(e)}usePrivateName(e,t){let r;for(r of this.stack)if(r.privateNames.has(e))return;r?r.undefinedPrivateNames.set(e,t):this.parser.raise(Y.InvalidPrivateFieldResolution,{at:t,identifierName:e})}}(this);let u=this.expressionScope;return this.expressionScope=new class{constructor(e){this.parser=void 0,this.stack=[new lt],this.parser=e}enter(e){this.stack.push(e)}exit(){this.stack.pop()}recordParameterInitializerError(e,t){let{at:r}=t,n={at:r.loc.start},{stack:s}=this,i=s.length-1,a=s[i];for(;!a.isCertainlyParameterDeclaration();){if(!a.canBeArrowParameterDeclaration())return;a.recordDeclarationError(e,n),a=s[--i]}this.parser.raise(e,n)}recordArrowParameterBindingError(e,t){let{at:r}=t,{stack:n}=this,s=n[n.length-1],i={at:r.loc.start};if(s.isCertainlyParameterDeclaration())this.parser.raise(e,i);else{if(!s.canBeArrowParameterDeclaration())return;s.recordDeclarationError(e,i)}}recordAsyncArrowParametersError(e){let{at:t}=e,{stack:r}=this,n=r.length-1,s=r[n];for(;s.canBeArrowParameterDeclaration();)2===s.type&&s.recordDeclarationError(Y.AwaitBindingIdentifier,{at:t}),s=r[--n]}validateAsPattern(){let{stack:e}=this,t=e[e.length-1];t.canBeArrowParameterDeclaration()&&t.iterateErrors((t=>{let[r,n]=t;this.parser.raise(r,{at:n});let s=e.length-2,i=e[s];for(;i.canBeArrowParameterDeclaration();)i.clearDeclarationError(n.index),i=e[--s]}))}}(this),()=>{this.state.labels=t,this.exportedIdentifiers=r,this.inModule=n,this.scope=s,this.prodParam=a,this.classScope=o,this.expressionScope=u}}enterInitialScopes(){let e=0;this.inModule&&(e|=2),this.scope.enter(1),this.prodParam.enter(e)}checkDestructuringPrivate(e){let{privateKeyLoc:t}=e;null!==t&&this.expectPlugin("destructuringPrivate",t)}},ft=class{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null}},mt=class{constructor(e,t,r){this.type="",this.start=t,this.end=0,this.loc=new j(r),null!=e&&e.options.ranges&&(this.range=[t,0]),null!=e&&e.filename&&(this.loc.filename=e.filename)}},yt=mt.prototype;function gt(e){let{type:t,start:r,end:n,loc:s,range:i,extra:a,name:o}=e,u=Object.create(yt);return u.type=t,u.start=r,u.end=n,u.loc=s,u.range=i,u.extra=a,u.name=o,"Placeholder"===t&&(u.expectedNode=e.expectedNode),u}function Dt(e){let{type:t,start:r,end:n,loc:s,range:i,extra:a}=e;if("Placeholder"===t)return function(e){return gt(e)}(e);let o=Object.create(yt);return o.type=t,o.start=r,o.end=n,o.loc=s,o.range=i,void 0!==e.raw?o.raw=e.raw:o.extra=a,o.value=e.value,o}yt.__clone=function(){let e=new mt(void 0,this.start,this.loc.start),t=Object.keys(this);for(let r=0,n=t.length;r<n;r++){let n=t[r];"leadingComments"!==n&&"trailingComments"!==n&&"innerComments"!==n&&(e[n]=this[n])}return e};var xt=class extends dt{startNode(){return new mt(this,this.state.start,this.state.startLoc)}startNodeAt(e){return new mt(this,e.index,e)}startNodeAtNode(e){return this.startNodeAt(e.loc.start)}finishNode(e,t){return this.finishNodeAt(e,t,this.state.lastTokEndLoc)}finishNodeAt(e,t,r){return e.type=t,e.end=r.index,e.loc.end=r,this.options.ranges&&(e.range[1]=r.index),this.options.attachComment&&this.processComment(e),e}resetStartLocation(e,t){e.start=t.index,e.loc.start=t,this.options.ranges&&(e.range[0]=t.index)}resetEndLocation(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state.lastTokEndLoc;e.end=t.index,e.loc.end=t,this.options.ranges&&(e.range[1]=t.index)}resetStartLocationFromNode(e,t){this.resetStartLocation(e,t.loc.start)}},Et=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),bt=Z`flow`({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:e=>{let{reservedType:t}=e;return`Cannot overwrite reserved type ${t}.`},DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:e=>{let{memberName:t,enumName:r}=e;return`Boolean enum members need to be initialized. Use either \`${t} = true,\` or \`${t} = false,\` in enum \`${r}\`.`},EnumDuplicateMemberName:e=>{let{memberName:t,enumName:r}=e;return`Enum member names need to be unique, but the name \`${t}\` has already been used before in enum \`${r}\`.`},EnumInconsistentMemberValues:e=>{let{enumName:t}=e;return`Enum \`${t}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`},EnumInvalidExplicitType:e=>{let{invalidEnumType:t,enumName:r}=e;return`Enum type \`${t}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${r}\`.`},EnumInvalidExplicitTypeUnknownSupplied:e=>{let{enumName:t}=e;return`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`},EnumInvalidMemberInitializerPrimaryType:e=>{let{enumName:t,memberName:r,explicitType:n}=e;return`Enum \`${t}\` has type \`${n}\`, so the initializer of \`${r}\` needs to be a ${n} literal.`},EnumInvalidMemberInitializerSymbolType:e=>{let{enumName:t,memberName:r}=e;return`Symbol enum members cannot be initialized. Use \`${r},\` in enum \`${t}\`.`},EnumInvalidMemberInitializerUnknownType:e=>{let{enumName:t,memberName:r}=e;return`The enum member initializer for \`${r}\` needs to be a literal (either a boolean, number, or string) in enum \`${t}\`.`},EnumInvalidMemberName:e=>{let{enumName:t,memberName:r,suggestion:n}=e;return`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${r}\`, consider using \`${n}\`, in enum \`${t}\`.`},EnumNumberMemberNotInitialized:e=>{let{enumName:t,memberName:r}=e;return`Number enum members need to be initialized, e.g. \`${r} = 1\` in enum \`${t}\`.`},EnumStringMemberInconsistentlyInitailized:e=>{let{enumName:t}=e;return`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${t}\`.`},GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:e=>{let{reservedType:t}=e;return`Unexpected reserved type ${t}.`},UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:e=>{let{unsupportedExportKind:t,suggestion:r}=e;return`\`declare export ${t}\` is not supported. Use \`${r}\` instead.`},UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function Ct(e){return"type"===e.importKind||"typeof"===e.importKind}function vt(e){return S(e)&&97!==e}var At={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};var St=/\*?\s*@((?:no)?flow)\b/,Tt={__proto__:null,quot:'"',amp:"&",apos:"'",lt:"<",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:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"},wt=Z`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:e=>{let{openingTagName:t}=e;return`Expected corresponding JSX closing tag for <${t}>.`},MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:e=>{let{unexpected:t,HTMLEntity:r}=e;return`Unexpected token \`${t}\`. Did you mean \`${r}\` or \`{'${t}'}\`?`},UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"});function Ft(e){return!!e&&("JSXOpeningFragment"===e.type||"JSXClosingFragment"===e.type)}function Pt(e){if("JSXIdentifier"===e.type)return e.name;if("JSXNamespacedName"===e.type)return e.namespace.name+":"+e.name.name;if("JSXMemberExpression"===e.type)return Pt(e.object)+"."+Pt(e.property);throw new Error("Node had unexpected type: "+e.type)}var kt=class extends Ie{constructor(){super(...arguments),this.types=new Set,this.enums=new Set,this.constEnums=new Set,this.classes=new Set,this.exportOnlyBindings=new Set}},Nt=class extends Be{constructor(){super(...arguments),this.importsStack=[]}createScope(e){return this.importsStack.push(new Set),new kt(e)}enter(e){e==ve&&this.importsStack.push(new Set),super.enter(e)}exit(){let e=super.exit();return e==ve&&this.importsStack.pop(),e}hasImport(e,t){let r=this.importsStack.length;if(this.importsStack[r-1].has(e))return!0;if(!t&&r>1)for(let t=0;t<r-1;t++)if(this.importsStack[t].has(e))return!0;return!1}declareName(e,t,r){if(t&Fe)return this.hasImport(e,!0)&&this.parser.raise(Y.VarRedeclaration,{at:r,identifierName:e}),void this.importsStack[this.importsStack.length-1].add(e);let n=this.currentScope();if(t&Te)return this.maybeExportDefined(n,e),void n.exportOnlyBindings.add(e);super.declareName(e,t,r),2&t&&(1&t||(this.checkRedeclarationInScope(n,e,t,r),this.maybeExportDefined(n,e)),n.types.add(e)),256&t&&n.enums.add(e),512&t&&n.constEnums.add(e),t&Se&&n.classes.add(e)}isRedeclaredInScope(e,t,r){return e.enums.has(t)?!(256&r)||!!(512&r)!==e.constEnums.has(t):r&Se&&e.classes.has(t)?!!e.lexical.has(t)&&!!(1&r):!!(2&r&&e.types.has(t))||super.isRedeclaredInScope(e,t,r)}checkLocalExport(e){let{name:t}=e;if(!this.hasImport(t)){for(let e=this.scopeStack.length-1;e>=0;e--){let r=this.scopeStack[e];if(r.types.has(t)||r.exportOnlyBindings.has(t))return}super.checkLocalExport(e)}}},It=e=>"ParenthesizedExpression"===e.type?It(e.expression):e,Bt=class extends xt{toAssignable(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];var r,n;let s;switch(("ParenthesizedExpression"===e.type||null!=(r=e.extra)&&r.parenthesized)&&(s=It(e),t?"Identifier"===s.type?this.expressionScope.recordArrowParameterBindingError(Y.InvalidParenthesizedAssignment,{at:e}):"MemberExpression"!==s.type&&this.raise(Y.InvalidParenthesizedAssignment,{at:e}):this.raise(Y.InvalidParenthesizedAssignment,{at:e})),e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern";for(let r=0,n=e.properties.length,s=n-1;r<n;r++){var i;let n=e.properties[r],a=r===s;this.toAssignableObjectExpressionProp(n,a,t),a&&"RestElement"===n.type&&null!=(i=e.extra)&&i.trailingCommaLoc&&this.raise(Y.RestTrailingComma,{at:e.extra.trailingCommaLoc})}break;case"ObjectProperty":{let{key:r,value:n}=e;this.isPrivateName(r)&&this.classScope.usePrivateName(this.getPrivateNameSV(r),r.loc.start),this.toAssignable(n,t);break}case"SpreadElement":throw new Error("Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignable's caller.");case"ArrayExpression":e.type="ArrayPattern",this.toAssignableList(e.elements,null==(n=e.extra)?void 0:n.trailingCommaLoc,t);break;case"AssignmentExpression":"="!==e.operator&&this.raise(Y.MissingEqInAssignment,{at:e.left.loc.end}),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(s,t)}}toAssignableObjectExpressionProp(e,t,r){if("ObjectMethod"===e.type)this.raise("get"===e.kind||"set"===e.kind?Y.PatternHasAccessor:Y.PatternHasMethod,{at:e.key});else if("SpreadElement"===e.type){e.type="RestElement";let n=e.argument;this.checkToRestConversion(n,!1),this.toAssignable(n,r),t||this.raise(Y.RestTrailingComma,{at:e})}else this.toAssignable(e,r)}toAssignableList(e,t,r){let n=e.length-1;for(let s=0;s<=n;s++){let i=e[s];if(i){if("SpreadElement"===i.type){i.type="RestElement";let e=i.argument;this.checkToRestConversion(e,!0),this.toAssignable(e,r)}else this.toAssignable(i,r);"RestElement"===i.type&&(s<n?this.raise(Y.RestTrailingComma,{at:i}):t&&this.raise(Y.RestTrailingComma,{at:t}))}}}isAssignable(e,t){switch(e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":return!0;case"ObjectExpression":{let t=e.properties.length-1;return e.properties.every(((e,r)=>"ObjectMethod"!==e.type&&(r===t||"SpreadElement"!==e.type)&&this.isAssignable(e)))}case"ObjectProperty":return this.isAssignable(e.value);case"SpreadElement":return this.isAssignable(e.argument);case"ArrayExpression":return e.elements.every((e=>null===e||this.isAssignable(e)));case"AssignmentExpression":return"="===e.operator;case"ParenthesizedExpression":return this.isAssignable(e.expression);case"MemberExpression":case"OptionalMemberExpression":return!t;default:return!1}}toReferencedList(e,t){return e}toReferencedListDeep(e,t){this.toReferencedList(e,t);for(let t of e)"ArrayExpression"===(null==t?void 0:t.type)&&this.toReferencedListDeep(t.elements)}parseSpread(e){let t=this.startNode();return this.next(),t.argument=this.parseMaybeAssignAllowIn(e,void 0),this.finishNode(t,"SpreadElement")}parseRestBinding(){let e=this.startNode();return this.next(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{let e=this.startNode();return this.next(),e.elements=this.parseBindingList(3,93,1),this.finishNode(e,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0)}return this.parseIdentifier()}parseBindingList(e,t,r){let n=1&r,s=[],i=!0;for(;!this.eat(e);)if(i?i=!1:this.expect(12),n&&this.match(12))s.push(null);else{if(this.eat(e))break;if(this.match(21)){if(s.push(this.parseAssignableListItemTypes(this.parseRestBinding(),r)),!this.checkCommaAfterRest(t)){this.expect(e);break}}else{let e=[];for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(Y.UnsupportedParameterDecorator,{at:this.state.startLoc});this.match(26);)e.push(this.parseDecorator());s.push(this.parseAssignableListItem(r,e))}}return s}parseBindingRestProperty(e){return this.next(),e.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(e,"RestElement")}parseBindingProperty(){let e=this.startNode(),{type:t,startLoc:r}=this.state;return 21===t?this.parseBindingRestProperty(e):(136===t?(this.expectPlugin("destructuringPrivate",r),this.classScope.usePrivateName(this.state.value,r),e.key=this.parsePrivateName()):this.parsePropertyName(e),e.method=!1,this.parseObjPropValue(e,r,!1,!1,!0,!1))}parseAssignableListItem(e,t){let r=this.parseMaybeDefault();this.parseAssignableListItemTypes(r,e);let n=this.parseMaybeDefault(r.loc.start,r);return t.length&&(r.decorators=t),n}parseAssignableListItemTypes(e,t){return e}parseMaybeDefault(e,t){var r;if(null!=e||(e=this.state.startLoc),t=null!=(r=t)?r:this.parseBindingAtom(),!this.eat(29))return t;let n=this.startNodeAt(e);return n.left=t,n.right=this.parseMaybeAssignAllowIn(),this.finishNode(n,"AssignmentPattern")}isValidLVal(e,t,r){return((e,t)=>Object.hasOwnProperty.call(e,t)&&e[t])({AssignmentPattern:"left",RestElement:"argument",ObjectProperty:"value",ParenthesizedExpression:"expression",ArrayPattern:"elements",ObjectPattern:"properties"},e)}checkLVal(e,t){let{in:r,binding:n=Ne,checkClashes:s=!1,strictModeChanged:i=!1,hasParenthesizedAncestor:a=!1}=t;var o;let u=e.type;if(this.isObjectMethod(e))return;if("MemberExpression"===u)return void(n!==Ne&&this.raise(Y.InvalidPropertyBindingPattern,{at:e}));if("Identifier"===u){this.checkIdentifier(e,n,i);let{name:t}=e;return void(s&&(s.has(t)?this.raise(Y.ParamDupe,{at:e}):s.add(t)))}let l=this.isValidLVal(u,!(a||null!=(o=e.extra)&&o.parenthesized)&&"AssignmentExpression"===r.type,n);if(!0===l)return;if(!1===l){let t=n===Ne?Y.InvalidLhs:Y.InvalidLhsBinding;return void this.raise(t,{at:e,ancestor:r})}let[p,c]=Array.isArray(l)?l:[l,"ParenthesizedExpression"===u],h="ArrayPattern"===u||"ObjectPattern"===u||"ParenthesizedExpression"===u?{type:u}:r;for(let t of[].concat(e[p]))t&&this.checkLVal(t,{in:h,binding:n,checkClashes:s,strictModeChanged:i,hasParenthesizedAncestor:c})}checkIdentifier(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.state.strict&&(r?xe(e.name,this.inModule):De(e.name))&&(t===Ne?this.raise(Y.StrictEvalArguments,{at:e,referenceName:e.name}):this.raise(Y.StrictEvalArgumentsBinding,{at:e,bindingName:e.name})),t&Pe&&"let"===e.name&&this.raise(Y.LetInLexicalBinding,{at:e}),t&Ne||this.declareNameFromIdentifier(e,t)}declareNameFromIdentifier(e,t){this.scope.declareName(e.name,t,e.loc.start)}checkToRestConversion(e,t){switch(e.type){case"ParenthesizedExpression":this.checkToRestConversion(e.expression,t);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(t)break;default:this.raise(Y.InvalidRestAssignmentPattern,{at:e})}}checkCommaAfterRest(e){return!!this.match(12)&&(this.raise(this.lookaheadCharCode()===e?Y.RestTrailingComma:Y.ElementAfterRest,{at:this.state.startLoc}),!0)}};function _t(e){if(!e)throw new Error("Assert fail")}var Ot=Z`typescript`({AbstractMethodHasImplementation:e=>{let{methodName:t}=e;return`Method '${t}' cannot have an implementation because it is marked abstract.`},AbstractPropertyHasInitializer:e=>{let{propertyName:t}=e;return`Property '${t}' cannot have an initializer because it is marked abstract.`},AccesorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccesorCannotHaveTypeParameters:"An accessor cannot have type parameters.",AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:e=>{let{kind:t}=e;return`'declare' is not allowed in ${t}ters.`},DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:e=>{let{modifier:t}=e;return"Accessibility modifier already seen."},DuplicateModifier:e=>{let{modifier:t}=e;return`Duplicate modifier: '${t}'.`},EmptyHeritageClauseType:e=>{let{token:t}=e;return`'${t}' list cannot be empty.`},EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:e=>{let{modifiers:t}=e;return`'${t[0]}' modifier cannot be used with '${t[1]}' modifier.`},IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:e=>{let{modifier:t}=e;return`Index signatures cannot have an accessibility modifier ('${t}').`},IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidModifierOnTypeMember:e=>{let{modifier:t}=e;return`'${t}' modifier cannot appear on a type member.`},InvalidModifierOnTypeParameter:e=>{let{modifier:t}=e;return`'${t}' modifier cannot appear on a type parameter.`},InvalidModifierOnTypeParameterPositions:e=>{let{modifier:t}=e;return`'${t}' modifier can only appear on a type parameter of a class, interface or type alias.`},InvalidModifiersOrder:e=>{let{orderedModifiers:t}=e;return`'${t[0]}' modifier must precede '${t[1]}' modifier.`},InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",MixedLabeledAndUnlabeledElements:"Tuple members must all have names or all not have names.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifer:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:e=>{let{modifier:t}=e;return`Private elements cannot have an accessibility modifier ('${t}').`},ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccesorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccesorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccesorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:e=>{let{typeParameterName:t}=e;return`Single type parameter ${t} should have a trailing comma. Example usage: <${t},>.`},StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:e=>{let{type:t}=e;return`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${t}.`}});function Lt(e){return"private"===e||"public"===e||"protected"===e}function jt(e){return"in"===e||"out"===e}function Mt(e){if("MemberExpression"!==e.type)return!1;let{computed:t,property:r}=e;return(!t||"StringLiteral"===r.type||!("TemplateLiteral"!==r.type||r.expressions.length>0))&&Ut(e.object)}function Rt(e,t){var r;let{type:n}=e;if(null!=(r=e.extra)&&r.parenthesized)return!1;if(t){if("Literal"===n){let{value:t}=e;if("string"==typeof t||"boolean"==typeof t)return!0}}else if("StringLiteral"===n||"BooleanLiteral"===n)return!0;return!!($t(e,t)||function(e,t){if("UnaryExpression"===e.type){let{operator:r,argument:n}=e;if("-"===r&&$t(n,t))return!0}return!1}(e,t)||"TemplateLiteral"===n&&0===e.expressions.length||Mt(e))}function $t(e,t){return t?"Literal"===e.type&&("number"==typeof e.value||"bigint"in e):"NumericLiteral"===e.type||"BigIntLiteral"===e.type}function Ut(e){return"Identifier"===e.type||"MemberExpression"===e.type&&!e.computed&&Ut(e.object)}var zt=Z`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."});function Vt(e,t){let[r,n]="string"==typeof t?[t,{}]:t,s=Object.keys(n),i=0===s.length;return e.some((e=>{if("string"==typeof e)return i&&e===r;{let[t,i]=e;if(t!==r)return!1;for(let e of s)if(i[e]!==n[e])return!1;return!0}}))}function Wt(e,t,r){let n=e.find((e=>Array.isArray(e)?e[0]===t:e===t));return n&&Array.isArray(n)&&n.length>1?n[1][r]:null}var qt=["minimal","fsharp","hack","smart"],Ht=["^^","@@","^","%","#"],Jt=["hash","bar"];var Gt={estree:e=>class extends e{parse(){let e=te(super.parse());return this.options.tokens&&(e.tokens=e.tokens.map(te)),e}parseRegExpLiteral(e){let{pattern:t,flags:r}=e,n=null;try{n=new RegExp(t,r)}catch{}let s=this.estreeParseLiteral(n);return s.regex={pattern:t,flags:r},s}parseBigIntLiteral(e){let t;try{t=BigInt(e)}catch{t=null}let r=this.estreeParseLiteral(t);return r.bigint=String(r.value||e),r}parseDecimalLiteral(e){let t=this.estreeParseLiteral(null);return t.decimal=String(t.value||e),t}estreeParseLiteral(e){return this.parseLiteral(e,"Literal")}parseStringLiteral(e){return this.estreeParseLiteral(e)}parseNumericLiteral(e){return this.estreeParseLiteral(e)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(e){return this.estreeParseLiteral(e)}directiveToStmt(e){let t=e.value;delete e.value,t.type="Literal",t.raw=t.extra.raw,t.value=t.extra.expressionValue;let r=e;return r.type="ExpressionStatement",r.expression=t,r.directive=t.extra.rawValue,delete t.extra,r}initFunction(e,t){super.initFunction(e,t),e.expression=!1}checkDeclaration(e){null!=e&&this.isObjectProperty(e)?this.checkDeclaration(e.value):super.checkDeclaration(e)}getObjectOrClassMethodParams(e){return e.value.params}isValidDirective(e){var t;return"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&!(null!=(t=e.expression.extra)&&t.parenthesized)}parseBlockBody(e,t,r,n,s){super.parseBlockBody(e,t,r,n,s);let i=e.directives.map((e=>this.directiveToStmt(e)));e.body=i.concat(e.body),delete e.directives}pushClassMethod(e,t,r,n,s,i){this.parseMethod(t,r,n,s,i,"ClassMethod",!0),t.typeParameters&&(t.value.typeParameters=t.typeParameters,delete t.typeParameters),e.body.push(t)}parsePrivateName(){let e=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(e):e}convertPrivateNameToPrivateIdentifier(e){let t=super.getPrivateNameSV(e);return delete e.id,e.name=t,e.type="PrivateIdentifier",e}isPrivateName(e){return this.getPluginOption("estree","classFeatures")?"PrivateIdentifier"===e.type:super.isPrivateName(e)}getPrivateNameSV(e){return this.getPluginOption("estree","classFeatures")?e.name:super.getPrivateNameSV(e)}parseLiteral(e,t){let r=super.parseLiteral(e,t);return r.raw=r.extra.raw,delete r.extra,r}parseFunctionBody(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];super.parseFunctionBody(e,t,r),e.expression="BlockStatement"!==e.body.type}parseMethod(e,t,r,n,s,i){let a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],o=this.startNode();return o.kind=e.kind,o=super.parseMethod(o,t,r,n,s,i,a),o.type="FunctionExpression",delete o.kind,e.value=o,"ClassPrivateMethod"===i&&(e.computed=!1),this.finishNode(e,"MethodDefinition")}parseClassProperty(){let e=super.parseClassProperty(...arguments);return this.getPluginOption("estree","classFeatures")&&(e.type="PropertyDefinition"),e}parseClassPrivateProperty(){let e=super.parseClassPrivateProperty(...arguments);return this.getPluginOption("estree","classFeatures")&&(e.type="PropertyDefinition",e.computed=!1),e}parseObjectMethod(e,t,r,n,s){let i=super.parseObjectMethod(e,t,r,n,s);return i&&(i.type="Property","method"===i.kind&&(i.kind="init"),i.shorthand=!1),i}parseObjectProperty(e,t,r,n){let s=super.parseObjectProperty(e,t,r,n);return s&&(s.kind="init",s.type="Property"),s}isValidLVal(e,t,r){return"Property"===e?"value":super.isValidLVal(e,t,r)}isAssignable(e,t){return null!=e&&this.isObjectProperty(e)?this.isAssignable(e.value,t):super.isAssignable(e,t)}toAssignable(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null!=e&&this.isObjectProperty(e)){let{key:r,value:n}=e;this.isPrivateName(r)&&this.classScope.usePrivateName(this.getPrivateNameSV(r),r.loc.start),this.toAssignable(n,t)}else super.toAssignable(e,t)}toAssignableObjectExpressionProp(e,t,r){"get"===e.kind||"set"===e.kind?this.raise(Y.PatternHasAccessor,{at:e.key}):e.method?this.raise(Y.PatternHasMethod,{at:e.key}):super.toAssignableObjectExpressionProp(e,t,r)}finishCallExpression(e,t){let r=super.finishCallExpression(e,t);var n;return"Import"===r.callee.type&&(r.type="ImportExpression",r.source=r.arguments[0],this.hasPlugin("importAssertions")&&(r.attributes=null!=(n=r.arguments[1])?n:null),delete r.arguments,delete r.callee),r}toReferencedArguments(e){"ImportExpression"!==e.type&&super.toReferencedArguments(e)}parseExport(e,t){let r=this.state.lastTokStartLoc,n=super.parseExport(e,t);switch(n.type){case"ExportAllDeclaration":n.exported=null;break;case"ExportNamedDeclaration":1===n.specifiers.length&&"ExportNamespaceSpecifier"===n.specifiers[0].type&&(n.type="ExportAllDeclaration",n.exported=n.specifiers[0].exported,delete n.specifiers);case"ExportDefaultDeclaration":{var s;let{declaration:e}=n;"ClassDeclaration"===(null==e?void 0:e.type)&&(null==(s=e.decorators)?void 0:s.length)>0&&e.start===n.start&&this.resetStartLocation(n,r)}}return n}parseSubscript(e,t,r,n){let s=super.parseSubscript(e,t,r,n);if(n.optionalChainMember){if(("OptionalMemberExpression"===s.type||"OptionalCallExpression"===s.type)&&(s.type=s.type.substring(8)),n.stop){let e=this.startNodeAtNode(s);return e.expression=s,this.finishNode(e,"ChainExpression")}}else("MemberExpression"===s.type||"CallExpression"===s.type)&&(s.optional=!1);return s}hasPropertyAsPrivateName(e){return"ChainExpression"===e.type&&(e=e.expression),super.hasPropertyAsPrivateName(e)}isObjectProperty(e){return"Property"===e.type&&"init"===e.kind&&!e.method}isObjectMethod(e){return e.method||"get"===e.kind||"set"===e.kind}finishNodeAt(e,t,r){return te(super.finishNodeAt(e,t,r))}resetStartLocation(e,t){super.resetStartLocation(e,t),te(e)}resetEndLocation(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state.lastTokEndLoc;super.resetEndLocation(e,t),te(e)}},jsx:e=>class extends e{jsxReadToken(){let e="",t=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(wt.UnterminatedJsxContent,{at:this.state.startLoc});let r=this.input.charCodeAt(this.state.pos);switch(r){case 60:case 123:return this.state.pos===this.state.start?void(60===r&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(140)):super.getTokenFromCode(r)):(e+=this.input.slice(t,this.state.pos),void this.finishToken(139,e));case 38:e+=this.input.slice(t,this.state.pos),e+=this.jsxReadEntity(),t=this.state.pos;break;default:Ve(r)?(e+=this.input.slice(t,this.state.pos),e+=this.jsxReadNewLine(!0),t=this.state.pos):++this.state.pos}}}jsxReadNewLine(e){let t,r=this.input.charCodeAt(this.state.pos);return++this.state.pos,13===r&&10===this.input.charCodeAt(this.state.pos)?(++this.state.pos,t=e?"\n":"\r\n"):t=String.fromCharCode(r),++this.state.curLine,this.state.lineStart=this.state.pos,t}jsxReadString(e){let t="",r=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(Y.UnterminatedString,{at:this.state.startLoc});let n=this.input.charCodeAt(this.state.pos);if(n===e)break;38===n?(t+=this.input.slice(r,this.state.pos),t+=this.jsxReadEntity(),r=this.state.pos):Ve(n)?(t+=this.input.slice(r,this.state.pos),t+=this.jsxReadNewLine(!1),r=this.state.pos):++this.state.pos}t+=this.input.slice(r,this.state.pos++),this.finishToken(131,t)}jsxReadEntity(){let e=++this.state.pos;if(35===this.codePointAtPos(this.state.pos)){++this.state.pos;let e=10;120===this.codePointAtPos(this.state.pos)&&(e=16,++this.state.pos);let t=this.readInt(e,void 0,!1,"bail");if(null!==t&&59===this.codePointAtPos(this.state.pos))return++this.state.pos,String.fromCodePoint(t)}else{let t=0,r=!1;for(;t++<10&&this.state.pos<this.length&&!(r=59==this.codePointAtPos(this.state.pos));)++this.state.pos;if(r){let t=this.input.slice(e,this.state.pos),r=Tt[t];if(++this.state.pos,r)return r}}return this.state.pos=e,"&"}jsxReadWord(){let e,t=this.state.pos;do{e=this.input.charCodeAt(++this.state.pos)}while(pe(e)||45===e);this.finishToken(138,this.input.slice(t,this.state.pos))}jsxParseIdentifier(){let e=this.startNode();return this.match(138)?e.name=this.state.value:P(this.state.type)?e.name=N(this.state.type):this.unexpected(),this.next(),this.finishNode(e,"JSXIdentifier")}jsxParseNamespacedName(){let e=this.state.startLoc,t=this.jsxParseIdentifier();if(!this.eat(14))return t;let r=this.startNodeAt(e);return r.namespace=t,r.name=this.jsxParseIdentifier(),this.finishNode(r,"JSXNamespacedName")}jsxParseElementName(){let e=this.state.startLoc,t=this.jsxParseNamespacedName();if("JSXNamespacedName"===t.type)return t;for(;this.eat(16);){let r=this.startNodeAt(e);r.object=t,r.property=this.jsxParseIdentifier(),t=this.finishNode(r,"JSXMemberExpression")}return t}jsxParseAttributeValue(){let e;switch(this.state.type){case 5:return e=this.startNode(),this.setContext(n.brace),this.next(),e=this.jsxParseExpressionContainer(e,n.j_oTag),"JSXEmptyExpression"===e.expression.type&&this.raise(wt.AttributeIsEmpty,{at:e}),e;case 140:case 131:return this.parseExprAtom();default:throw this.raise(wt.UnsupportedJsxValue,{at:this.state.startLoc})}}jsxParseEmptyExpression(){let e=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(e,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(e){return this.next(),e.expression=this.parseExpression(),this.setContext(n.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXSpreadChild")}jsxParseExpressionContainer(e,t){if(this.match(8))e.expression=this.jsxParseEmptyExpression();else{let t=this.parseExpression();e.expression=t}return this.setContext(t),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXExpressionContainer")}jsxParseAttribute(){let e=this.startNode();return this.match(5)?(this.setContext(n.brace),this.next(),this.expect(21),e.argument=this.parseMaybeAssignAllowIn(),this.setContext(n.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXSpreadAttribute")):(e.name=this.jsxParseNamespacedName(),e.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(e,"JSXAttribute"))}jsxParseOpeningElementAt(e){let t=this.startNodeAt(e);return this.eat(141)?this.finishNode(t,"JSXOpeningFragment"):(t.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(t))}jsxParseOpeningElementAfterName(e){let t=[];for(;!this.match(56)&&!this.match(141);)t.push(this.jsxParseAttribute());return e.attributes=t,e.selfClosing=this.eat(56),this.expect(141),this.finishNode(e,"JSXOpeningElement")}jsxParseClosingElementAt(e){let t=this.startNodeAt(e);return this.eat(141)?this.finishNode(t,"JSXClosingFragment"):(t.name=this.jsxParseElementName(),this.expect(141),this.finishNode(t,"JSXClosingElement"))}jsxParseElementAt(e){let t=this.startNodeAt(e),r=[],s=this.jsxParseOpeningElementAt(e),i=null;if(!s.selfClosing){e:for(;;)switch(this.state.type){case 140:if(e=this.state.startLoc,this.next(),this.eat(56)){i=this.jsxParseClosingElementAt(e);break e}r.push(this.jsxParseElementAt(e));break;case 139:r.push(this.parseExprAtom());break;case 5:{let e=this.startNode();this.setContext(n.brace),this.next(),this.match(21)?r.push(this.jsxParseSpreadChild(e)):r.push(this.jsxParseExpressionContainer(e,n.j_expr));break}default:this.unexpected()}Ft(s)&&!Ft(i)&&null!==i?this.raise(wt.MissingClosingTagFragment,{at:i}):(!Ft(s)&&Ft(i)||!Ft(s)&&!Ft(i)&&Pt(i.name)!==Pt(s.name))&&this.raise(wt.MissingClosingTagElement,{at:i,openingTagName:Pt(s.name)})}if(Ft(s)?(t.openingFragment=s,t.closingFragment=i):(t.openingElement=s,t.closingElement=i),t.children=r,this.match(47))throw this.raise(wt.UnwrappedAdjacentJSXElements,{at:this.state.startLoc});return Ft(s)?this.finishNode(t,"JSXFragment"):this.finishNode(t,"JSXElement")}jsxParseElement(){let e=this.state.startLoc;return this.next(),this.jsxParseElementAt(e)}setContext(e){let{context:t}=this.state;t[t.length-1]=e}parseExprAtom(e){return this.match(139)?this.parseLiteral(this.state.value,"JSXText"):this.match(140)?this.jsxParseElement():this.match(47)&&33!==this.input.charCodeAt(this.state.pos)?(this.replaceToken(140),this.jsxParseElement()):super.parseExprAtom(e)}skipSpace(){this.curContext().preserveSpace||super.skipSpace()}getTokenFromCode(e){let t=this.curContext();if(t!==n.j_expr){if(t===n.j_oTag||t===n.j_cTag){if(le(e))return void this.jsxReadWord();if(62===e)return++this.state.pos,void this.finishToken(141);if((34===e||39===e)&&t===n.j_oTag)return void this.jsxReadString(e)}if(60===e&&this.state.canStartJSXElement&&33!==this.input.charCodeAt(this.state.pos+1))return++this.state.pos,void this.finishToken(140);super.getTokenFromCode(e)}else this.jsxReadToken()}updateContext(e){let{context:t,type:r}=this.state;if(56===r&&140===e)t.splice(-2,2,n.j_cTag),this.state.canStartJSXElement=!1;else if(140===r)t.push(n.j_oTag);else if(141===r){let r=t[t.length-1];r===n.j_oTag&&56===e||r===n.j_cTag?(t.pop(),this.state.canStartJSXElement=t[t.length-1]===n.j_expr):(this.setContext(n.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=function(e){return D[e]}(r)}},flow:e=>class extends e{constructor(){super(...arguments),this.flowPragma=void 0}getScopeHandler(){return Oe}shouldParseTypes(){return this.getPluginOption("flow","all")||"flow"===this.flowPragma}shouldParseEnums(){return!!this.getPluginOption("flow","enums")}finishToken(e,t){131!==e&&13!==e&&28!==e&&void 0===this.flowPragma&&(this.flowPragma=null),super.finishToken(e,t)}addComment(e){if(void 0===this.flowPragma){let t=St.exec(e.value);if(t)if("flow"===t[1])this.flowPragma="flow";else{if("noflow"!==t[1])throw new Error("Unexpected flow pragma");this.flowPragma="noflow"}}super.addComment(e)}flowParseTypeInitialiser(e){let t=this.state.inType;this.state.inType=!0,this.expect(e||14);let r=this.flowParseType();return this.state.inType=t,r}flowParsePredicate(){let e=this.startNode(),t=this.state.startLoc;return this.next(),this.expectContextual(108),this.state.lastTokStart>t.index+1&&this.raise(bt.UnexpectedSpaceBetweenModuloChecks,{at:t}),this.eat(10)?(e.value=super.parseExpression(),this.expect(11),this.finishNode(e,"DeclaredPredicate")):this.finishNode(e,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){let e=this.state.inType;this.state.inType=!0,this.expect(14);let t=null,r=null;return this.match(54)?(this.state.inType=e,r=this.flowParsePredicate()):(t=this.flowParseType(),this.state.inType=e,this.match(54)&&(r=this.flowParsePredicate())),[t,r]}flowParseDeclareClass(e){return this.next(),this.flowParseInterfaceish(e,!0),this.finishNode(e,"DeclareClass")}flowParseDeclareFunction(e){this.next();let t=e.id=this.parseIdentifier(),r=this.startNode(),n=this.startNode();this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,this.expect(10);let s=this.flowParseFunctionTypeParams();return r.params=s.params,r.rest=s.rest,r.this=s._this,this.expect(11),[r.returnType,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),n.typeAnnotation=this.finishNode(r,"FunctionTypeAnnotation"),t.typeAnnotation=this.finishNode(n,"TypeAnnotation"),this.resetEndLocation(t),this.semicolon(),this.scope.declareName(e.id.name,2048,e.id.loc.start),this.finishNode(e,"DeclareFunction")}flowParseDeclare(e,t){return this.match(80)?this.flowParseDeclareClass(e):this.match(68)?this.flowParseDeclareFunction(e):this.match(74)?this.flowParseDeclareVariable(e):this.eatContextual(125)?this.match(16)?this.flowParseDeclareModuleExports(e):(t&&this.raise(bt.NestedDeclareModule,{at:this.state.lastTokStartLoc}),this.flowParseDeclareModule(e)):this.isContextual(128)?this.flowParseDeclareTypeAlias(e):this.isContextual(129)?this.flowParseDeclareOpaqueType(e):this.isContextual(127)?this.flowParseDeclareInterface(e):this.match(82)?this.flowParseDeclareExportDeclaration(e,t):void this.unexpected()}flowParseDeclareVariable(e){return this.next(),e.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(e.id.name,5,e.id.loc.start),this.semicolon(),this.finishNode(e,"DeclareVariable")}flowParseDeclareModule(e){this.scope.enter(0),this.match(131)?e.id=super.parseExprAtom():e.id=this.parseIdentifier();let t=e.body=this.startNode(),r=t.body=[];for(this.expect(5);!this.match(8);){let e=this.startNode();this.match(83)?(this.next(),!this.isContextual(128)&&!this.match(87)&&this.raise(bt.InvalidNonTypeImportInDeclareModule,{at:this.state.lastTokStartLoc}),super.parseImport(e)):(this.expectContextual(123,bt.UnsupportedStatementInDeclareModule),e=this.flowParseDeclare(e,!0)),r.push(e)}this.scope.exit(),this.expect(8),this.finishNode(t,"BlockStatement");let n=null,s=!1;return r.forEach((e=>{!function(e){return"DeclareExportAllDeclaration"===e.type||"DeclareExportDeclaration"===e.type&&(!e.declaration||"TypeAlias"!==e.declaration.type&&"InterfaceDeclaration"!==e.declaration.type)}(e)?"DeclareModuleExports"===e.type&&(s&&this.raise(bt.DuplicateDeclareModuleExports,{at:e}),"ES"===n&&this.raise(bt.AmbiguousDeclareModuleKind,{at:e}),n="CommonJS",s=!0):("CommonJS"===n&&this.raise(bt.AmbiguousDeclareModuleKind,{at:e}),n="ES")})),e.kind=n||"CommonJS",this.finishNode(e,"DeclareModule")}flowParseDeclareExportDeclaration(e,t){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?e.declaration=this.flowParseDeclare(this.startNode()):(e.declaration=this.flowParseType(),this.semicolon()),e.default=!0,this.finishNode(e,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(128)||this.isContextual(127))&&!t){let e=this.state.value;throw this.raise(bt.UnsupportedDeclareExportKind,{at:this.state.startLoc,unsupportedExportKind:e,suggestion:At[e]})}return this.match(74)||this.match(68)||this.match(80)||this.isContextual(129)?(e.declaration=this.flowParseDeclare(this.startNode()),e.default=!1,this.finishNode(e,"DeclareExportDeclaration")):this.match(55)||this.match(5)||this.isContextual(127)||this.isContextual(128)||this.isContextual(129)?("ExportNamedDeclaration"===(e=this.parseExport(e,null)).type&&(e.type="ExportDeclaration",e.default=!1,delete e.exportKind),e.type="Declare"+e.type,e):void this.unexpected()}flowParseDeclareModuleExports(e){return this.next(),this.expectContextual(109),e.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(e,"DeclareModuleExports")}flowParseDeclareTypeAlias(e){this.next();let t=this.flowParseTypeAlias(e);return t.type="DeclareTypeAlias",t}flowParseDeclareOpaqueType(e){this.next();let t=this.flowParseOpaqueType(e,!0);return t.type="DeclareOpaqueType",t}flowParseDeclareInterface(e){return this.next(),this.flowParseInterfaceish(e,!1),this.finishNode(e,"DeclareInterface")}flowParseInterfaceish(e,t){if(e.id=this.flowParseRestrictedIdentifier(!t,!0),this.scope.declareName(e.id.name,t?17:ke,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.extends=[],e.implements=[],e.mixins=[],this.eat(81))do{e.extends.push(this.flowParseInterfaceExtends())}while(!t&&this.eat(12));if(t){if(this.eatContextual(115))do{e.mixins.push(this.flowParseInterfaceExtends())}while(this.eat(12));if(this.eatContextual(111))do{e.implements.push(this.flowParseInterfaceExtends())}while(this.eat(12))}e.body=this.flowParseObjectType({allowStatic:t,allowExact:!1,allowSpread:!1,allowProto:t,allowInexact:!1})}flowParseInterfaceExtends(){let e=this.startNode();return e.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,this.finishNode(e,"InterfaceExtends")}flowParseInterface(e){return this.flowParseInterfaceish(e,!1),this.finishNode(e,"InterfaceDeclaration")}checkNotUnderscore(e){"_"===e&&this.raise(bt.UnexpectedReservedUnderscore,{at:this.state.startLoc})}checkReservedType(e,t,r){Et.has(e)&&this.raise(r?bt.AssignReservedType:bt.UnexpectedReservedType,{at:t,reservedType:e})}flowParseRestrictedIdentifier(e,t){return this.checkReservedType(this.state.value,this.state.startLoc,t),this.parseIdentifier(e)}flowParseTypeAlias(e){return e.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(e.id.name,ke,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(e,"TypeAlias")}flowParseOpaqueType(e,t){return this.expectContextual(128),e.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(e.id.name,ke,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.supertype=null,this.match(14)&&(e.supertype=this.flowParseTypeInitialiser(14)),e.impltype=null,t||(e.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(e,"OpaqueType")}flowParseTypeParameter(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.state.startLoc,r=this.startNode(),n=this.flowParseVariance(),s=this.flowParseTypeAnnotatableIdentifier();return r.name=s.name,r.variance=n,r.bound=s.typeAnnotation,this.match(29)?(this.eat(29),r.default=this.flowParseType()):e&&this.raise(bt.MissingTypeParamDefault,{at:t}),this.finishNode(r,"TypeParameter")}flowParseTypeParameterDeclaration(){let e=this.state.inType,t=this.startNode();t.params=[],this.state.inType=!0,this.match(47)||this.match(140)?this.next():this.unexpected();let r=!1;do{let e=this.flowParseTypeParameter(r);t.params.push(e),e.default&&(r=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=e,this.finishNode(t,"TypeParameterDeclaration")}flowParseTypeParameterInstantiation(){let e=this.startNode(),t=this.state.inType;e.params=[],this.state.inType=!0,this.expect(47);let r=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)e.params.push(this.flowParseType()),this.match(48)||this.expect(12);return this.state.noAnonFunctionType=r,this.expect(48),this.state.inType=t,this.finishNode(e,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){let e=this.startNode(),t=this.state.inType;for(e.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)e.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=t,this.finishNode(e,"TypeParameterInstantiation")}flowParseInterfaceType(){let e=this.startNode();if(this.expectContextual(127),e.extends=[],this.eat(81))do{e.extends.push(this.flowParseInterfaceExtends())}while(this.eat(12));return e.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(e,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(132)||this.match(131)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(e,t,r){return e.static=t,14===this.lookahead().type?(e.id=this.flowParseObjectPropertyKey(),e.key=this.flowParseTypeInitialiser()):(e.id=null,e.key=this.flowParseType()),this.expect(3),e.value=this.flowParseTypeInitialiser(),e.variance=r,this.finishNode(e,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(e,t){return e.static=t,e.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(e.method=!0,e.optional=!1,e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start))):(e.method=!1,this.eat(17)&&(e.optional=!0),e.value=this.flowParseTypeInitialiser()),this.finishNode(e,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(e){for(e.params=[],e.rest=null,e.typeParameters=null,e.this=null,this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(e.this=this.flowParseFunctionTypeParam(!0),e.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(e.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),e.returnType=this.flowParseTypeInitialiser(),this.finishNode(e,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(e,t){let r=this.startNode();return e.static=t,e.value=this.flowParseObjectTypeMethodish(r),this.finishNode(e,"ObjectTypeCallProperty")}flowParseObjectType(e){let{allowStatic:t,allowExact:r,allowSpread:n,allowProto:s,allowInexact:i}=e,a=this.state.inType;this.state.inType=!0;let o=this.startNode();o.callProperties=[],o.properties=[],o.indexers=[],o.internalSlots=[];let u,l,p=!1;for(r&&this.match(6)?(this.expect(6),u=9,l=!0):(this.expect(5),u=8,l=!1),o.exact=l;!this.match(u);){let e=!1,r=null,a=null,u=this.startNode();if(s&&this.isContextual(116)){let e=this.lookahead();14!==e.type&&17!==e.type&&(this.next(),r=this.state.startLoc,t=!1)}if(t&&this.isContextual(104)){let t=this.lookahead();14!==t.type&&17!==t.type&&(this.next(),e=!0)}let c=this.flowParseVariance();if(this.eat(0))null!=r&&this.unexpected(r),this.eat(0)?(c&&this.unexpected(c.loc.start),o.internalSlots.push(this.flowParseObjectTypeInternalSlot(u,e))):o.indexers.push(this.flowParseObjectTypeIndexer(u,e,c));else if(this.match(10)||this.match(47))null!=r&&this.unexpected(r),c&&this.unexpected(c.loc.start),o.callProperties.push(this.flowParseObjectTypeCallProperty(u,e));else{let t="init";(this.isContextual(98)||this.isContextual(103))&&T(this.lookahead().type)&&(t=this.state.value,this.next());let s=this.flowParseObjectTypeProperty(u,e,r,c,t,n,null!=i?i:!l);null===s?(p=!0,a=this.state.lastTokStartLoc):o.properties.push(s)}this.flowObjectTypeSemicolon(),a&&!this.match(8)&&!this.match(9)&&this.raise(bt.UnexpectedExplicitInexactInObject,{at:a})}this.expect(u),n&&(o.inexact=p);let c=this.finishNode(o,"ObjectTypeAnnotation");return this.state.inType=a,c}flowParseObjectTypeProperty(e,t,r,n,s,i,a){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(i?a||this.raise(bt.InexactInsideExact,{at:this.state.lastTokStartLoc}):this.raise(bt.InexactInsideNonObject,{at:this.state.lastTokStartLoc}),n&&this.raise(bt.InexactVariance,{at:n}),null):(i||this.raise(bt.UnexpectedSpreadType,{at:this.state.lastTokStartLoc}),null!=r&&this.unexpected(r),n&&this.raise(bt.SpreadVariance,{at:n}),e.argument=this.flowParseType(),this.finishNode(e,"ObjectTypeSpreadProperty"));{e.key=this.flowParseObjectPropertyKey(),e.static=t,e.proto=null!=r,e.kind=s;let a=!1;return this.match(47)||this.match(10)?(e.method=!0,null!=r&&this.unexpected(r),n&&this.unexpected(n.loc.start),e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start)),("get"===s||"set"===s)&&this.flowCheckGetterSetterParams(e),!i&&"constructor"===e.key.name&&e.value.this&&this.raise(bt.ThisParamBannedInConstructor,{at:e.value.this})):("init"!==s&&this.unexpected(),e.method=!1,this.eat(17)&&(a=!0),e.value=this.flowParseTypeInitialiser(),e.variance=n),e.optional=a,this.finishNode(e,"ObjectTypeProperty")}}flowCheckGetterSetterParams(e){let t="get"===e.kind?0:1,r=e.value.params.length+(e.value.rest?1:0);e.value.this&&this.raise("get"===e.kind?bt.GetterMayNotHaveThisParam:bt.SetterMayNotHaveThisParam,{at:e.value.this}),r!==t&&this.raise("get"===e.kind?Y.BadGetterArity:Y.BadSetterArity,{at:e}),"set"===e.kind&&e.value.rest&&this.raise(Y.BadSetterRestParameter,{at:e})}flowObjectTypeSemicolon(){!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)&&this.unexpected()}flowParseQualifiedTypeIdentifier(e,t){null!=e||(e=this.state.startLoc);let r=t||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){let t=this.startNodeAt(e);t.qualification=r,t.id=this.flowParseRestrictedIdentifier(!0),r=this.finishNode(t,"QualifiedTypeIdentifier")}return r}flowParseGenericType(e,t){let r=this.startNodeAt(e);return r.typeParameters=null,r.id=this.flowParseQualifiedTypeIdentifier(e,t),this.match(47)&&(r.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(r,"GenericTypeAnnotation")}flowParseTypeofType(){let e=this.startNode();return this.expect(87),e.argument=this.flowParsePrimaryType(),this.finishNode(e,"TypeofTypeAnnotation")}flowParseTupleType(){let e=this.startNode();for(e.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(e.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(e,"TupleTypeAnnotation")}flowParseFunctionTypeParam(e){let t=null,r=!1,n=null,s=this.startNode(),i=this.lookahead(),a=78===this.state.type;return 14===i.type||17===i.type?(a&&!e&&this.raise(bt.ThisParamMustBeFirst,{at:s}),t=this.parseIdentifier(a),this.eat(17)&&(r=!0,a&&this.raise(bt.ThisParamMayNotBeOptional,{at:s})),n=this.flowParseTypeInitialiser()):n=this.flowParseType(),s.name=t,s.optional=r,s.typeAnnotation=n,this.finishNode(s,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(e){let t=this.startNodeAt(e.loc.start);return t.name=null,t.optional=!1,t.typeAnnotation=e,this.finishNode(t,"FunctionTypeParam")}flowParseFunctionTypeParams(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=null,r=null;for(this.match(78)&&(r=this.flowParseFunctionTypeParam(!0),r.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(t=this.flowParseFunctionTypeParam(!1)),{params:e,rest:t,_this:r}}flowIdentToTypeAnnotation(e,t,r){switch(r.name){case"any":return this.finishNode(t,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(t,"BooleanTypeAnnotation");case"mixed":return this.finishNode(t,"MixedTypeAnnotation");case"empty":return this.finishNode(t,"EmptyTypeAnnotation");case"number":return this.finishNode(t,"NumberTypeAnnotation");case"string":return this.finishNode(t,"StringTypeAnnotation");case"symbol":return this.finishNode(t,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(r.name),this.flowParseGenericType(e,r)}}flowParsePrimaryType(){let e,t,r=this.state.startLoc,n=this.startNode(),s=!1,i=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,t=this.flowParseTupleType(),this.state.noAnonFunctionType=i,t;case 47:return n.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),e=this.flowParseFunctionTypeParams(),n.params=e.params,n.rest=e.rest,n.this=e._this,this.expect(11),this.expect(19),n.returnType=this.flowParseType(),this.finishNode(n,"FunctionTypeAnnotation");case 10:if(this.next(),!this.match(11)&&!this.match(21))if(A(this.state.type)||this.match(78)){let e=this.lookahead().type;s=17!==e&&14!==e}else s=!0;if(s){if(this.state.noAnonFunctionType=!1,t=this.flowParseType(),this.state.noAnonFunctionType=i,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&19===this.lookahead().type))return this.expect(11),t;this.eat(12)}return e=t?this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(t)]):this.flowParseFunctionTypeParams(),n.params=e.params,n.rest=e.rest,n.this=e._this,this.expect(11),this.expect(19),n.returnType=this.flowParseType(),n.typeParameters=null,this.finishNode(n,"FunctionTypeAnnotation");case 131:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return n.value=this.match(85),this.next(),this.finishNode(n,"BooleanLiteralTypeAnnotation");case 53:if("-"===this.state.value){if(this.next(),this.match(132))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",n);if(this.match(133))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",n);throw this.raise(bt.UnexpectedSubtractionOperand,{at:this.state.startLoc})}return void this.unexpected();case 132:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 133:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:return this.next(),this.finishNode(n,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(n,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(n,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(n,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(P(this.state.type)){let e=N(this.state.type);return this.next(),super.createIdentifier(n,e)}if(A(this.state.type))return this.isContextual(127)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(r,n,this.parseIdentifier())}this.unexpected()}flowParsePostfixType(){let e=this.state.startLoc,t=this.flowParsePrimaryType(),r=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){let n=this.startNodeAt(e),s=this.eat(18);r=r||s,this.expect(0),!s&&this.match(3)?(n.elementType=t,this.next(),t=this.finishNode(n,"ArrayTypeAnnotation")):(n.objectType=t,n.indexType=this.flowParseType(),this.expect(3),r?(n.optional=s,t=this.finishNode(n,"OptionalIndexedAccessType")):t=this.finishNode(n,"IndexedAccessType"))}return t}flowParsePrefixType(){let e=this.startNode();return this.eat(17)?(e.typeAnnotation=this.flowParsePrefixType(),this.finishNode(e,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){let e=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){let t=this.startNodeAt(e.loc.start);return t.params=[this.reinterpretTypeAsFunctionTypeParam(e)],t.rest=null,t.this=null,t.returnType=this.flowParseType(),t.typeParameters=null,this.finishNode(t,"FunctionTypeAnnotation")}return e}flowParseIntersectionType(){let e=this.startNode();this.eat(45);let t=this.flowParseAnonFunctionWithoutParens();for(e.types=[t];this.eat(45);)e.types.push(this.flowParseAnonFunctionWithoutParens());return 1===e.types.length?t:this.finishNode(e,"IntersectionTypeAnnotation")}flowParseUnionType(){let e=this.startNode();this.eat(43);let t=this.flowParseIntersectionType();for(e.types=[t];this.eat(43);)e.types.push(this.flowParseIntersectionType());return 1===e.types.length?t:this.finishNode(e,"UnionTypeAnnotation")}flowParseType(){let e=this.state.inType;this.state.inType=!0;let t=this.flowParseUnionType();return this.state.inType=e,t}flowParseTypeOrImplicitInstantiation(){if(130===this.state.type&&"_"===this.state.value){let e=this.state.startLoc,t=this.parseIdentifier();return this.flowParseGenericType(e,t)}return this.flowParseType()}flowParseTypeAnnotation(){let e=this.startNode();return e.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(e,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(e){let t=e?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(14)&&(t.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(t)),t}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.loc.end),e.expression}flowParseVariance(){let e=null;return this.match(53)?(e=this.startNode(),"+"===this.state.value?e.kind="plus":e.kind="minus",this.next(),this.finishNode(e,"Variance")):e}parseFunctionBody(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t?this.forwardNoArrowParamsConversionAt(e,(()=>super.parseFunctionBody(e,!0,r))):super.parseFunctionBody(e,!1,r)}parseFunctionBodyAndFinish(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this.match(14)){let t=this.startNode();[t.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),e.returnType=t.typeAnnotation?this.finishNode(t,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(e,t,r)}parseStatementLike(e){if(this.state.strict&&this.isContextual(127)){if(S(this.lookahead().type)){let e=this.startNode();return this.next(),this.flowParseInterface(e)}}else if(this.shouldParseEnums()&&this.isContextual(124)){let e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}let t=super.parseStatementLike(e);return void 0===this.flowPragma&&!this.isValidDirective(t)&&(this.flowPragma=null),t}parseExpressionStatement(e,t,r){if("Identifier"===t.type)if("declare"===t.name){if(this.match(80)||A(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(e)}else if(A(this.state.type)){if("interface"===t.name)return this.flowParseInterface(e);if("type"===t.name)return this.flowParseTypeAlias(e);if("opaque"===t.name)return this.flowParseOpaqueType(e,!1)}return super.parseExpressionStatement(e,t,r)}shouldParseExportDeclaration(){let{type:e}=this.state;return F(e)||this.shouldParseEnums()&&124===e?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:e}=this.state;return F(e)||this.shouldParseEnums()&&124===e?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.shouldParseEnums()&&this.isContextual(124)){let e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}return super.parseExportDefaultExpression()}parseConditional(e,t,r){if(!this.match(17))return e;if(this.state.maybeInArrowParameters){let t=this.lookaheadCharCode();if(44===t||61===t||58===t||41===t)return this.setOptionalParametersError(r),e}this.expect(17);let n=this.state.clone(),s=this.state.noArrowAt,i=this.startNodeAt(t),{consequent:a,failed:o}=this.tryParseConditionalConsequent(),[u,l]=this.getArrowLikeExpressions(a);if(o||l.length>0){let e=[...s];if(l.length>0){this.state=n,this.state.noArrowAt=e;for(let t=0;t<l.length;t++)e.push(l[t].start);({consequent:a,failed:o}=this.tryParseConditionalConsequent()),[u,l]=this.getArrowLikeExpressions(a)}o&&u.length>1&&this.raise(bt.AmbiguousConditionalArrow,{at:n.startLoc}),o&&1===u.length&&(this.state=n,e.push(u[0].start),this.state.noArrowAt=e,({consequent:a,failed:o}=this.tryParseConditionalConsequent()))}return this.getArrowLikeExpressions(a,!0),this.state.noArrowAt=s,this.expect(14),i.test=e,i.consequent=a,i.alternate=this.forwardNoArrowParamsConversionAt(i,(()=>this.parseMaybeAssign(void 0,void 0))),this.finishNode(i,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let e=this.parseMaybeAssignAllowIn(),t=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:e,failed:t}}getArrowLikeExpressions(e,t){let r=[e],n=[];for(;0!==r.length;){let e=r.pop();"ArrowFunctionExpression"===e.type?(e.typeParameters||!e.returnType?this.finishArrowValidation(e):n.push(e),r.push(e.body)):"ConditionalExpression"===e.type&&(r.push(e.consequent),r.push(e.alternate))}return t?(n.forEach((e=>this.finishArrowValidation(e))),[n,[]]):function(e,t){let r=[],n=[];for(let s=0;s<e.length;s++)(t(e[s],s,e)?r:n).push(e[s]);return[r,n]}(n,(e=>e.params.every((e=>this.isAssignable(e,!0)))))}finishArrowValidation(e){var t;this.toAssignableList(e.params,null==(t=e.extra)?void 0:t.trailingCommaLoc,!1),this.scope.enter(6),super.checkParams(e,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(e,t){let r;return-1!==this.state.noArrowParamsConversionAt.indexOf(e.start)?(this.state.noArrowParamsConversionAt.push(this.state.start),r=t(),this.state.noArrowParamsConversionAt.pop()):r=t(),r}parseParenItem(e,t){if(e=super.parseParenItem(e,t),this.eat(17)&&(e.optional=!0,this.resetEndLocation(e)),this.match(14)){let r=this.startNodeAt(t);return r.expression=e,r.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(r,"TypeCastExpression")}return e}assertModuleNodeAllowed(e){"ImportDeclaration"===e.type&&("type"===e.importKind||"typeof"===e.importKind)||"ExportNamedDeclaration"===e.type&&"type"===e.exportKind||"ExportAllDeclaration"===e.type&&"type"===e.exportKind||super.assertModuleNodeAllowed(e)}parseExport(e,t){let r=super.parseExport(e,t);return("ExportNamedDeclaration"===r.type||"ExportAllDeclaration"===r.type)&&(r.exportKind=r.exportKind||"value"),r}parseExportDeclaration(e){if(this.isContextual(128)){e.exportKind="type";let t=this.startNode();return this.next(),this.match(5)?(e.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(e),null):this.flowParseTypeAlias(t)}if(this.isContextual(129)){e.exportKind="type";let t=this.startNode();return this.next(),this.flowParseOpaqueType(t,!1)}if(this.isContextual(127)){e.exportKind="type";let t=this.startNode();return this.next(),this.flowParseInterface(t)}if(this.shouldParseEnums()&&this.isContextual(124)){e.exportKind="value";let t=this.startNode();return this.next(),this.flowParseEnumDeclaration(t)}return super.parseExportDeclaration(e)}eatExportStar(e){return!!super.eatExportStar(e)||!(!this.isContextual(128)||55!==this.lookahead().type)&&(e.exportKind="type",this.next(),this.next(),!0)}maybeParseExportNamespaceSpecifier(e){let{startLoc:t}=this.state,r=super.maybeParseExportNamespaceSpecifier(e);return r&&"type"===e.exportKind&&this.unexpected(t),r}parseClassId(e,t,r){super.parseClassId(e,t,r),this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(e,t,r){let{startLoc:n}=this.state;if(this.isContextual(123)){if(super.parseClassMemberFromModifier(e,t))return;t.declare=!0}super.parseClassMember(e,t,r),t.declare&&("ClassProperty"!==t.type&&"ClassPrivateProperty"!==t.type&&"PropertyDefinition"!==t.type?this.raise(bt.DeclareClassElement,{at:n}):t.value&&this.raise(bt.DeclareClassFieldInitializer,{at:t.value}))}isIterator(e){return"iterator"===e||"asyncIterator"===e}readIterator(){let e=super.readWord1(),t="@@"+e;(!this.isIterator(e)||!this.state.inType)&&this.raise(Y.InvalidIdentifier,{at:this.state.curPosition(),identifierName:t}),this.finishToken(130,t)}getTokenFromCode(e){let t=this.input.charCodeAt(this.state.pos+1);123===e&&124===t?this.finishOp(6,2):!this.state.inType||62!==e&&60!==e?this.state.inType&&63===e?46===t?this.finishOp(18,2):this.finishOp(17,1):function(e,t,r){return 64===e&&64===t&&le(r)}(e,t,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(e):this.finishOp(62===e?48:47,1)}isAssignable(e,t){return"TypeCastExpression"===e.type?this.isAssignable(e.expression,t):super.isAssignable(e,t)}toAssignable(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];!t&&"AssignmentExpression"===e.type&&"TypeCastExpression"===e.left.type&&(e.left=this.typeCastToParameter(e.left)),super.toAssignable(e,t)}toAssignableList(e,t,r){for(let t=0;t<e.length;t++){let r=e[t];"TypeCastExpression"===(null==r?void 0:r.type)&&(e[t]=this.typeCastToParameter(r))}super.toAssignableList(e,t,r)}toReferencedList(e,t){for(let n=0;n<e.length;n++){var r;let s=e[n];s&&"TypeCastExpression"===s.type&&(null==(r=s.extra)||!r.parenthesized)&&(e.length>1||!t)&&this.raise(bt.TypeCastInPattern,{at:s.typeAnnotation})}return e}parseArrayLike(e,t,r,n){let s=super.parseArrayLike(e,t,r,n);return t&&!this.state.maybeInArrowParameters&&this.toReferencedList(s.elements),s}isValidLVal(e,t,r){return"TypeCastExpression"===e||super.isValidLVal(e,t,r)}parseClassProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(e)}parseClassPrivateProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(e){return!this.match(14)&&super.isNonstaticConstructor(e)}pushClassMethod(e,t,r,n,s,i){if(t.variance&&this.unexpected(t.variance.loc.start),delete t.variance,this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(e,t,r,n,s,i),t.params&&s){let e=t.params;e.length>0&&this.isThisParam(e[0])&&this.raise(bt.ThisParamBannedInConstructor,{at:t})}else if("MethodDefinition"===t.type&&s&&t.value.params){let e=t.value.params;e.length>0&&this.isThisParam(e[0])&&this.raise(bt.ThisParamBannedInConstructor,{at:t})}}pushClassPrivateMethod(e,t,r,n){t.variance&&this.unexpected(t.variance.loc.start),delete t.variance,this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(e,t,r,n)}parseClassSuper(e){if(super.parseClassSuper(e),e.superClass&&this.match(47)&&(e.superTypeParameters=this.flowParseTypeParameterInstantiation()),this.isContextual(111)){this.next();let t=e.implements=[];do{let e=this.startNode();e.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,t.push(this.finishNode(e,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(e){super.checkGetterSetterParams(e);let t=this.getObjectOrClassMethodParams(e);if(t.length>0){let r=t[0];this.isThisParam(r)&&"get"===e.kind?this.raise(bt.GetterMayNotHaveThisParam,{at:r}):this.isThisParam(r)&&this.raise(bt.SetterMayNotHaveThisParam,{at:r})}}parsePropertyNamePrefixOperator(e){e.variance=this.flowParseVariance()}parseObjPropValue(e,t,r,n,s,i,a){let o;e.variance&&this.unexpected(e.variance.loc.start),delete e.variance,this.match(47)&&!i&&(o=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());let u=super.parseObjPropValue(e,t,r,n,s,i,a);return o&&((u.value||u).typeParameters=o),u}parseAssignableListItemTypes(e){return this.eat(17)&&("Identifier"!==e.type&&this.raise(bt.PatternIsOptional,{at:e}),this.isThisParam(e)&&this.raise(bt.ThisParamMayNotBeOptional,{at:e}),e.optional=!0),this.match(14)?e.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(e)&&this.raise(bt.ThisParamAnnotationRequired,{at:e}),this.match(29)&&this.isThisParam(e)&&this.raise(bt.ThisParamNoDefault,{at:e}),this.resetEndLocation(e),e}parseMaybeDefault(e,t){let r=super.parseMaybeDefault(e,t);return"AssignmentPattern"===r.type&&r.typeAnnotation&&r.right.start<r.typeAnnotation.start&&this.raise(bt.TypeBeforeInitializer,{at:r.typeAnnotation}),r}shouldParseDefaultImport(e){return Ct(e)?vt(this.state.type):super.shouldParseDefaultImport(e)}checkImportReflection(e){super.checkImportReflection(e),e.module&&"value"!==e.importKind&&this.raise(bt.ImportReflectionHasImportType,{at:e.specifiers[0].loc.start})}parseImportSpecifierLocal(e,t,r){t.local=Ct(e)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,r))}maybeParseDefaultImportSpecifier(e){e.importKind="value";let t=null;if(this.match(87)?t="typeof":this.isContextual(128)&&(t="type"),t){let r=this.lookahead(),{type:n}=r;"type"===t&&55===n&&this.unexpected(null,r.type),(vt(n)||5===n||55===n)&&(this.next(),e.importKind=t)}return super.maybeParseDefaultImportSpecifier(e)}parseImportSpecifier(e,t,r,n,s){let i=e.imported,a=null;"Identifier"===i.type&&("type"===i.name?a="type":"typeof"===i.name&&(a="typeof"));let o=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){let t=this.parseIdentifier(!0);null===a||S(this.state.type)?(e.imported=i,e.importKind=null,e.local=this.parseIdentifier()):(e.imported=t,e.importKind=a,e.local=gt(t))}else{if(null!==a&&S(this.state.type))e.imported=this.parseIdentifier(!0),e.importKind=a;else{if(t)throw this.raise(Y.ImportBindingIsString,{at:e,importName:i.value});e.imported=i,e.importKind=null}this.eatContextual(93)?e.local=this.parseIdentifier():(o=!0,e.local=gt(e.imported))}let u=Ct(e);return r&&u&&this.raise(bt.ImportTypeShorthandOnlyInPureImport,{at:e}),(r||u)&&this.checkReservedType(e.local.name,e.local.loc.start,!0),o&&!r&&!u&&this.checkReservedWord(e.local.name,e.loc.start,!0,!0),this.finishImportSpecifier(e,"ImportSpecifier")}parseBindingAtom(){return 78===this.state.type?this.parseIdentifier(!0):super.parseBindingAtom()}parseFunctionParams(e,t){let r=e.kind;"get"!==r&&"set"!==r&&this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t),this.match(14)&&(e.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,t){if(this.match(14)){let t=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,e.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=t}return super.parseAsyncArrowFromCallExpression(e,t)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(e,t){var r;let s,i=null;if(this.hasPlugin("jsx")&&(this.match(140)||this.match(47))){if(i=this.state.clone(),s=this.tryParse((()=>super.parseMaybeAssign(e,t)),i),!s.error)return s.node;let{context:r}=this.state,a=r[r.length-1];(a===n.j_oTag||a===n.j_expr)&&r.pop()}if(null!=(r=s)&&r.error||this.match(47)){var a,o;i=i||this.state.clone();let r,n=this.tryParse((n=>{var s;r=this.flowParseTypeParameterDeclaration();let i=this.forwardNoArrowParamsConversionAt(r,(()=>{let n=super.parseMaybeAssign(e,t);return this.resetStartLocationFromNode(n,r),n}));null!=(s=i.extra)&&s.parenthesized&&n();let a=this.maybeUnwrapTypeCastExpression(i);return"ArrowFunctionExpression"!==a.type&&n(),a.typeParameters=r,this.resetStartLocationFromNode(a,r),i}),i),u=null;if(n.node&&"ArrowFunctionExpression"===this.maybeUnwrapTypeCastExpression(n.node).type){if(!n.error&&!n.aborted)return n.node.async&&this.raise(bt.UnexpectedTypeParameterBeforeAsyncArrowFunction,{at:r}),n.node;u=n.node}if(null!=(a=s)&&a.node)return this.state=s.failState,s.node;if(u)return this.state=n.failState,u;throw null!=(o=s)&&o.thrown?s.error:n.thrown?n.error:this.raise(bt.UnexpectedTokenAfterTypeParameter,{at:r})}return super.parseMaybeAssign(e,t)}parseArrow(e){if(this.match(14)){let t=this.tryParse((()=>{let t=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let r=this.startNode();return[r.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=t,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),r}));if(t.thrown)return null;t.error&&(this.state=t.failState),e.returnType=t.node.typeAnnotation?this.finishNode(t.node,"TypeAnnotation"):null}return super.parseArrow(e)}shouldParseArrow(e){return this.match(14)||super.shouldParseArrow(e)}setArrowFunctionParameters(e,t){-1!==this.state.noArrowParamsConversionAt.indexOf(e.start)?e.params=t:super.setArrowFunctionParameters(e,t)}checkParams(e,t,r){let n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(!r||-1===this.state.noArrowParamsConversionAt.indexOf(e.start)){for(let t=0;t<e.params.length;t++)this.isThisParam(e.params[t])&&t>0&&this.raise(bt.ThisParamMustBeFirst,{at:e.params[t]});super.checkParams(e,t,r,n)}}parseParenAndDistinguishExpression(e){return super.parseParenAndDistinguishExpression(e&&-1===this.state.noArrowAt.indexOf(this.state.start))}parseSubscripts(e,t,r){if("Identifier"===e.type&&"async"===e.name&&-1!==this.state.noArrowAt.indexOf(t.index)){this.next();let r=this.startNodeAt(t);r.callee=e,r.arguments=super.parseCallExpressionArguments(11,!1),e=this.finishNode(r,"CallExpression")}else if("Identifier"===e.type&&"async"===e.name&&this.match(47)){let n=this.state.clone(),s=this.tryParse((e=>this.parseAsyncArrowWithTypeParameters(t)||e()),n);if(!s.error&&!s.aborted)return s.node;let i=this.tryParse((()=>super.parseSubscripts(e,t,r)),n);if(i.node&&!i.error)return i.node;if(s.node)return this.state=s.failState,s.node;if(i.node)return this.state=i.failState,i.node;throw s.error||i.error}return super.parseSubscripts(e,t,r)}parseSubscript(e,t,r,n){if(this.match(18)&&this.isLookaheadToken_lt()){if(n.optionalChainMember=!0,r)return n.stop=!0,e;this.next();let s=this.startNodeAt(t);return s.callee=e,s.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(10),s.arguments=this.parseCallExpressionArguments(11,!1),s.optional=!0,this.finishCallExpression(s,!0)}if(!r&&this.shouldParseTypes()&&this.match(47)){let r=this.startNodeAt(t);r.callee=e;let s=this.tryParse((()=>(r.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),r.arguments=super.parseCallExpressionArguments(11,!1),n.optionalChainMember&&(r.optional=!1),this.finishCallExpression(r,n.optionalChainMember))));if(s.node)return s.error&&(this.state=s.failState),s.node}return super.parseSubscript(e,t,r,n)}parseNewCallee(e){super.parseNewCallee(e);let t=null;this.shouldParseTypes()&&this.match(47)&&(t=this.tryParse((()=>this.flowParseTypeParameterInstantiationCallOrNew())).node),e.typeArguments=t}parseAsyncArrowWithTypeParameters(e){let t=this.startNodeAt(e);if(this.parseFunctionParams(t,!1),this.parseArrow(t))return super.parseArrowExpression(t,void 0,!0)}readToken_mult_modulo(e){let t=this.input.charCodeAt(this.state.pos+1);if(42===e&&47===t&&this.state.hasFlowComment)return this.state.hasFlowComment=!1,this.state.pos+=2,void this.nextToken();super.readToken_mult_modulo(e)}readToken_pipe_amp(e){let t=this.input.charCodeAt(this.state.pos+1);124!==e||125!==t?super.readToken_pipe_amp(e):this.finishOp(9,2)}parseTopLevel(e,t){let r=super.parseTopLevel(e,t);return this.state.hasFlowComment&&this.raise(bt.UnterminatedFlowComment,{at:this.state.curPosition()}),r}skipBlockComment(){if(!this.hasPlugin("flowComments")||!this.skipFlowComment())return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/");{if(this.state.hasFlowComment)throw this.raise(bt.NestedFlowComment,{at:this.state.startLoc});this.hasFlowCommentCompletion();let e=this.skipFlowComment();e&&(this.state.pos+=e,this.state.hasFlowComment=!0)}}skipFlowComment(){let{pos:e}=this.state,t=2;for(;[32,9].includes(this.input.charCodeAt(e+t));)t++;let r=this.input.charCodeAt(t+e),n=this.input.charCodeAt(t+e+1);return 58===r&&58===n?t+2:"flow-include"===this.input.slice(t+e,t+e+12)?t+12:58===r&&58!==n&&t}hasFlowCommentCompletion(){if(-1===this.input.indexOf("*/",this.state.pos))throw this.raise(Y.UnterminatedComment,{at:this.state.curPosition()})}flowEnumErrorBooleanMemberNotInitialized(e,t){let{enumName:r,memberName:n}=t;this.raise(bt.EnumBooleanMemberNotInitialized,{at:e,memberName:n,enumName:r})}flowEnumErrorInvalidMemberInitializer(e,t){return this.raise(t.explicitType?"symbol"===t.explicitType?bt.EnumInvalidMemberInitializerSymbolType:bt.EnumInvalidMemberInitializerPrimaryType:bt.EnumInvalidMemberInitializerUnknownType,Object.assign({at:e},t))}flowEnumErrorNumberMemberNotInitialized(e,t){let{enumName:r,memberName:n}=t;this.raise(bt.EnumNumberMemberNotInitialized,{at:e,enumName:r,memberName:n})}flowEnumErrorStringMemberInconsistentlyInitailized(e,t){let{enumName:r}=t;this.raise(bt.EnumStringMemberInconsistentlyInitailized,{at:e,enumName:r})}flowEnumMemberInit(){let e=this.state.startLoc,t=()=>this.match(12)||this.match(8);switch(this.state.type){case 132:{let r=this.parseNumericLiteral(this.state.value);return t()?{type:"number",loc:r.loc.start,value:r}:{type:"invalid",loc:e}}case 131:{let r=this.parseStringLiteral(this.state.value);return t()?{type:"string",loc:r.loc.start,value:r}:{type:"invalid",loc:e}}case 85:case 86:{let r=this.parseBooleanLiteral(this.match(85));return t()?{type:"boolean",loc:r.loc.start,value:r}:{type:"invalid",loc:e}}default:return{type:"invalid",loc:e}}}flowEnumMemberRaw(){let e=this.state.startLoc;return{id:this.parseIdentifier(!0),init:this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:e}}}flowEnumCheckExplicitTypeMismatch(e,t,r){let{explicitType:n}=t;null!==n&&n!==r&&this.flowEnumErrorInvalidMemberInitializer(e,t)}flowEnumMembers(e){let{enumName:t,explicitType:r}=e,n=new Set,s={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},i=!1;for(;!this.match(8);){if(this.eat(21)){i=!0;break}let e=this.startNode(),{id:a,init:o}=this.flowEnumMemberRaw(),u=a.name;if(""===u)continue;/^[a-z]/.test(u)&&this.raise(bt.EnumInvalidMemberName,{at:a,memberName:u,suggestion:u[0].toUpperCase()+u.slice(1),enumName:t}),n.has(u)&&this.raise(bt.EnumDuplicateMemberName,{at:a,memberName:u,enumName:t}),n.add(u);let l={enumName:t,explicitType:r,memberName:u};switch(e.id=a,o.type){case"boolean":this.flowEnumCheckExplicitTypeMismatch(o.loc,l,"boolean"),e.init=o.value,s.booleanMembers.push(this.finishNode(e,"EnumBooleanMember"));break;case"number":this.flowEnumCheckExplicitTypeMismatch(o.loc,l,"number"),e.init=o.value,s.numberMembers.push(this.finishNode(e,"EnumNumberMember"));break;case"string":this.flowEnumCheckExplicitTypeMismatch(o.loc,l,"string"),e.init=o.value,s.stringMembers.push(this.finishNode(e,"EnumStringMember"));break;case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(o.loc,l);case"none":switch(r){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(o.loc,l);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(o.loc,l);break;default:s.defaultedMembers.push(this.finishNode(e,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:s,hasUnknownMembers:i}}flowEnumStringMembers(e,t,r){let{enumName:n}=r;if(0===e.length)return t;if(0===t.length)return e;if(t.length>e.length){for(let t of e)this.flowEnumErrorStringMemberInconsistentlyInitailized(t,{enumName:n});return t}for(let e of t)this.flowEnumErrorStringMemberInconsistentlyInitailized(e,{enumName:n});return e}flowEnumParseExplicitType(e){let{enumName:t}=e;if(!this.eatContextual(101))return null;if(!A(this.state.type))throw this.raise(bt.EnumInvalidExplicitTypeUnknownSupplied,{at:this.state.startLoc,enumName:t});let{value:r}=this.state;return this.next(),"boolean"!==r&&"number"!==r&&"string"!==r&&"symbol"!==r&&this.raise(bt.EnumInvalidExplicitType,{at:this.state.startLoc,enumName:t,invalidEnumType:r}),r}flowEnumBody(e,t){let r=t.name,n=t.loc.start,s=this.flowEnumParseExplicitType({enumName:r});this.expect(5);let{members:i,hasUnknownMembers:a}=this.flowEnumMembers({enumName:r,explicitType:s});switch(e.hasUnknownMembers=a,s){case"boolean":return e.explicitType=!0,e.members=i.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody");case"number":return e.explicitType=!0,e.members=i.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody");case"string":return e.explicitType=!0,e.members=this.flowEnumStringMembers(i.stringMembers,i.defaultedMembers,{enumName:r}),this.expect(8),this.finishNode(e,"EnumStringBody");case"symbol":return e.members=i.defaultedMembers,this.expect(8),this.finishNode(e,"EnumSymbolBody");default:{let t=()=>(e.members=[],this.expect(8),this.finishNode(e,"EnumStringBody"));e.explicitType=!1;let s=i.booleanMembers.length,a=i.numberMembers.length,o=i.stringMembers.length,u=i.defaultedMembers.length;if(!(s||a||o||u))return t();if(!s&&!a)return e.members=this.flowEnumStringMembers(i.stringMembers,i.defaultedMembers,{enumName:r}),this.expect(8),this.finishNode(e,"EnumStringBody");if(!a&&!o&&s>=u){for(let e of i.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(e.loc.start,{enumName:r,memberName:e.id.name});return e.members=i.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody")}if(!s&&!o&&a>=u){for(let e of i.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(e.loc.start,{enumName:r,memberName:e.id.name});return e.members=i.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody")}return this.raise(bt.EnumInconsistentMemberValues,{at:n,enumName:r}),t()}}}flowParseEnumDeclaration(e){let t=this.parseIdentifier();return e.id=t,e.body=this.flowEnumBody(this.startNode(),t),this.finishNode(e,"EnumDeclaration")}isLookaheadToken_lt(){let e=this.nextTokenStart();if(60===this.input.charCodeAt(e)){let t=this.input.charCodeAt(e+1);return 60!==t&&61!==t}return!1}maybeUnwrapTypeCastExpression(e){return"TypeCastExpression"===e.type?e.expression:e}},typescript:e=>class extends e{constructor(){super(...arguments),this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:Ot.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:Ot.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:Ot.InvalidModifierOnTypeParameter})}getScopeHandler(){return Nt}tsIsIdentifier(){return A(this.state.type)}tsTokenCanFollowModifier(){return(this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(136)||this.isLiteralPropertyName())&&!this.hasPrecedingLineBreak()}tsNextTokenCanFollowModifier(){return this.next(),this.tsTokenCanFollowModifier()}tsParseModifier(e,t){if(!A(this.state.type)&&58!==this.state.type&&75!==this.state.type)return;let r=this.state.value;if(-1!==e.indexOf(r)){if(t&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return r}}tsParseModifiers(e,t){let{allowedModifiers:r,disallowedModifiers:n,stopOnStartOfClassStaticBlock:s,errorTemplate:i=Ot.InvalidModifierOnTypeMember}=e,a=(e,r,n,s)=>{r===n&&t[s]&&this.raise(Ot.InvalidModifiersOrder,{at:e,orderedModifiers:[n,s]})},o=(e,r,n,s)=>{(t[n]&&r===s||t[s]&&r===n)&&this.raise(Ot.IncompatibleModifiers,{at:e,modifiers:[n,s]})};for(;;){let{startLoc:e}=this.state,u=this.tsParseModifier(r.concat(null!=n?n:[]),s);if(!u)break;Lt(u)?t.accessibility?this.raise(Ot.DuplicateAccessibilityModifier,{at:e,modifier:u}):(a(e,u,u,"override"),a(e,u,u,"static"),a(e,u,u,"readonly"),t.accessibility=u):jt(u)?(t[u]&&this.raise(Ot.DuplicateModifier,{at:e,modifier:u}),t[u]=!0,a(e,u,"in","out")):(Object.hasOwnProperty.call(t,u)?this.raise(Ot.DuplicateModifier,{at:e,modifier:u}):(a(e,u,"static","readonly"),a(e,u,"static","override"),a(e,u,"override","readonly"),a(e,u,"abstract","override"),o(e,u,"declare","override"),o(e,u,"static","abstract")),t[u]=!0),null!=n&&n.includes(u)&&this.raise(i,{at:e,modifier:u})}}tsIsListTerminator(e){switch(e){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}}tsParseList(e,t){let r=[];for(;!this.tsIsListTerminator(e);)r.push(t());return r}tsParseDelimitedList(e,t,r){return function(e){if(null==e)throw new Error(`Unexpected ${e} value.`);return e}(this.tsParseDelimitedListWorker(e,t,!0,r))}tsParseDelimitedListWorker(e,t,r,n){let s=[],i=-1;for(;!this.tsIsListTerminator(e);){i=-1;let n=t();if(null==n)return;if(s.push(n),!this.eat(12)){if(this.tsIsListTerminator(e))break;return void(r&&this.expect(12))}i=this.state.lastTokStart}return n&&(n.value=i),s}tsParseBracketedList(e,t,r,n,s){n||(r?this.expect(0):this.expect(47));let i=this.tsParseDelimitedList(e,t,s);return r?this.expect(3):this.expect(48),i}tsParseImportType(){let e=this.startNode();return this.expect(83),this.expect(10),this.match(131)||this.raise(Ot.UnsupportedImportTypeArgument,{at:this.state.startLoc}),e.argument=super.parseExprAtom(),this.expect(11),this.eat(16)&&(e.qualifier=this.tsParseEntityName()),this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSImportType")}tsParseEntityName(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.parseIdentifier(e);for(;this.eat(16);){let r=this.startNodeAtNode(t);r.left=t,r.right=this.parseIdentifier(e),t=this.finishNode(r,"TSQualifiedName")}return t}tsParseTypeReference(){let e=this.startNode();return e.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeReference")}tsParseThisTypePredicate(e){this.next();let t=this.startNodeAtNode(e);return t.parameterName=e,t.typeAnnotation=this.tsParseTypeAnnotation(!1),t.asserts=!1,this.finishNode(t,"TSTypePredicate")}tsParseThisTypeNode(){let e=this.startNode();return this.next(),this.finishNode(e,"TSThisType")}tsParseTypeQuery(){let e=this.startNode();return this.expect(87),this.match(83)?e.exprName=this.tsParseImportType():e.exprName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeQuery")}tsParseTypeParameter(e){let t=this.startNode();return e(t),t.name=this.tsParseTypeParameterName(),t.constraint=this.tsEatThenParseType(81),t.default=this.tsEatThenParseType(29),this.finishNode(t,"TSTypeParameter")}tsTryParseTypeParameters(e){if(this.match(47))return this.tsParseTypeParameters(e)}tsParseTypeParameters(e){let t=this.startNode();this.match(47)||this.match(140)?this.next():this.unexpected();let r={value:-1};return t.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,e),!1,!0,r),0===t.params.length&&this.raise(Ot.EmptyTypeParameters,{at:t}),-1!==r.value&&this.addExtra(t,"trailingComma",r.value),this.finishNode(t,"TSTypeParameterDeclaration")}tsFillSignature(e,t){let r=19===e;t.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),t.parameters=this.tsParseBindingListForSignature(),(r||this.match(e))&&(t.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(e))}tsParseBindingListForSignature(){return super.parseBindingList(11,41,2).map((e=>("Identifier"!==e.type&&"RestElement"!==e.type&&"ObjectPattern"!==e.type&&"ArrayPattern"!==e.type&&this.raise(Ot.UnsupportedSignatureParameterKind,{at:e,type:e.type}),e)))}tsParseTypeMemberSemicolon(){!this.eat(12)&&!this.isLineTerminator()&&this.expect(13)}tsParseSignatureMember(e,t){return this.tsFillSignature(14,t),this.tsParseTypeMemberSemicolon(),this.finishNode(t,e)}tsIsUnambiguouslyIndexSignature(){return this.next(),!!A(this.state.type)&&(this.next(),this.match(14))}tsTryParseIndexSignature(e){if(!this.match(0)||!this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this)))return;this.expect(0);let t=this.parseIdentifier();t.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(t),this.expect(3),e.parameters=[t];let r=this.tsTryParseTypeAnnotation();return r&&(e.typeAnnotation=r),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSIndexSignature")}tsParsePropertyOrMethodSignature(e,t){this.eat(17)&&(e.optional=!0);let r=e;if(this.match(10)||this.match(47)){t&&this.raise(Ot.ReadonlyForMethodSignature,{at:e});let n=r;n.kind&&this.match(47)&&this.raise(Ot.AccesorCannotHaveTypeParameters,{at:this.state.curPosition()}),this.tsFillSignature(14,n),this.tsParseTypeMemberSemicolon();let s="parameters",i="typeAnnotation";if("get"===n.kind)n[s].length>0&&(this.raise(Y.BadGetterArity,{at:this.state.curPosition()}),this.isThisParam(n[s][0])&&this.raise(Ot.AccesorCannotDeclareThisParameter,{at:this.state.curPosition()}));else if("set"===n.kind){if(1!==n[s].length)this.raise(Y.BadSetterArity,{at:this.state.curPosition()});else{let e=n[s][0];this.isThisParam(e)&&this.raise(Ot.AccesorCannotDeclareThisParameter,{at:this.state.curPosition()}),"Identifier"===e.type&&e.optional&&this.raise(Ot.SetAccesorCannotHaveOptionalParameter,{at:this.state.curPosition()}),"RestElement"===e.type&&this.raise(Ot.SetAccesorCannotHaveRestParameter,{at:this.state.curPosition()})}n[i]&&this.raise(Ot.SetAccesorCannotHaveReturnType,{at:n[i]})}else n.kind="method";return this.finishNode(n,"TSMethodSignature")}{let e=r;t&&(e.readonly=!0);let n=this.tsTryParseTypeAnnotation();return n&&(e.typeAnnotation=n),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSPropertySignature")}}tsParseTypeMember(){let e=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",e);if(this.match(77)){let t=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",e):(e.key=this.createIdentifier(t,"new"),this.tsParsePropertyOrMethodSignature(e,!1))}return this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},e),this.tsTryParseIndexSignature(e)||(super.parsePropertyName(e),!e.computed&&"Identifier"===e.key.type&&("get"===e.key.name||"set"===e.key.name)&&this.tsTokenCanFollowModifier()&&(e.kind=e.key.name,super.parsePropertyName(e)),this.tsParsePropertyOrMethodSignature(e,!!e.readonly))}tsParseTypeLiteral(){let e=this.startNode();return e.members=this.tsParseObjectTypeMembers(),this.finishNode(e,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);let e=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),e}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(120):(this.isContextual(120)&&this.next(),!(!this.match(0)||(this.next(),!this.tsIsIdentifier()))&&(this.next(),this.match(58)))}tsParseMappedTypeParameter(){let e=this.startNode();return e.name=this.tsParseTypeParameterName(),e.constraint=this.tsExpectThenParseType(58),this.finishNode(e,"TSTypeParameter")}tsParseMappedType(){let e=this.startNode();return this.expect(5),this.match(53)?(e.readonly=this.state.value,this.next(),this.expectContextual(120)):this.eatContextual(120)&&(e.readonly=!0),this.expect(0),e.typeParameter=this.tsParseMappedTypeParameter(),e.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(e.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(e.optional=!0),e.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(e,"TSMappedType")}tsParseTupleType(){let e=this.startNode();e.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let t=!1,r=null;return e.elementTypes.forEach((e=>{let{type:n}=e;t&&"TSRestType"!==n&&"TSOptionalType"!==n&&!("TSNamedTupleMember"===n&&e.optional)&&this.raise(Ot.OptionalTypeBeforeRequired,{at:e}),t||(t="TSNamedTupleMember"===n&&e.optional||"TSOptionalType"===n);let s=n;"TSRestType"===n&&(s=(e=e.typeAnnotation).type);let i="TSNamedTupleMember"===s;null!=r||(r=i),r!==i&&this.raise(Ot.MixedLabeledAndUnlabeledElements,{at:e})})),this.finishNode(e,"TSTupleType")}tsParseTupleElementType(){let e,t,r,n,{startLoc:s}=this.state,i=this.eat(21),a=S(this.state.type)?this.lookaheadCharCode():null;if(58===a)e=!0,r=!1,t=this.parseIdentifier(!0),this.expect(14),n=this.tsParseType();else if(63===a){r=!0;let s=this.state.startLoc,i=this.state.value,a=this.tsParseNonArrayType();58===this.lookaheadCharCode()?(e=!0,t=this.createIdentifier(this.startNodeAt(s),i),this.expect(17),this.expect(14),n=this.tsParseType()):(e=!1,n=a,this.expect(17))}else n=this.tsParseType(),r=this.eat(17),e=this.eat(14);if(e){let e;t?(e=this.startNodeAtNode(t),e.optional=r,e.label=t,e.elementType=n,this.eat(17)&&(e.optional=!0,this.raise(Ot.TupleOptionalAfterType,{at:this.state.lastTokStartLoc}))):(e=this.startNodeAtNode(n),e.optional=r,this.raise(Ot.InvalidTupleMemberLabel,{at:n}),e.label=n,e.elementType=this.tsParseType()),n=this.finishNode(e,"TSNamedTupleMember")}else if(r){let e=this.startNodeAtNode(n);e.typeAnnotation=n,n=this.finishNode(e,"TSOptionalType")}if(i){let e=this.startNodeAt(s);e.typeAnnotation=n,n=this.finishNode(e,"TSRestType")}return n}tsParseParenthesizedType(){let e=this.startNode();return this.expect(10),e.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(e,"TSParenthesizedType")}tsParseFunctionOrConstructorType(e,t){let r=this.startNode();return"TSConstructorType"===e&&(r.abstract=!!t,t&&this.next(),this.next()),this.tsInAllowConditionalTypesContext((()=>this.tsFillSignature(19,r))),this.finishNode(r,e)}tsParseLiteralTypeNode(){let e=this.startNode();return e.literal=(()=>{switch(this.state.type){case 132:case 133:case 131:case 85:case 86:return super.parseExprAtom();default:this.unexpected()}})(),this.finishNode(e,"TSLiteralType")}tsParseTemplateLiteralType(){let e=this.startNode();return e.literal=super.parseTemplate(!1),this.finishNode(e,"TSLiteralType")}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let e=this.tsParseThisTypeNode();return this.isContextual(114)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(e):e}tsParseNonArrayType(){switch(this.state.type){case 131:case 132:case 133:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if("-"===this.state.value){let e=this.startNode(),t=this.lookahead();return 132!==t.type&&133!==t.type&&this.unexpected(),e.literal=this.parseMaybeUnary(),this.finishNode(e,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{let{type:e}=this.state;if(A(e)||88===e||84===e){let t=88===e?"TSVoidKeyword":84===e?"TSNullKeyword":function(e){switch(e){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}(this.state.value);if(void 0!==t&&46!==this.lookaheadCharCode()){let e=this.startNode();return this.next(),this.finishNode(e,t)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){let e=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){let t=this.startNodeAtNode(e);t.elementType=e,this.expect(3),e=this.finishNode(t,"TSArrayType")}else{let t=this.startNodeAtNode(e);t.objectType=e,t.indexType=this.tsParseType(),this.expect(3),e=this.finishNode(t,"TSIndexedAccessType")}return e}tsParseTypeOperator(){let e=this.startNode(),t=this.state.value;return this.next(),e.operator=t,e.typeAnnotation=this.tsParseTypeOperatorOrHigher(),"readonly"===t&&this.tsCheckTypeAnnotationForReadOnly(e),this.finishNode(e,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(e){switch(e.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(Ot.UnexpectedReadonly,{at:e})}}tsParseInferType(){let e=this.startNode();this.expectContextual(113);let t=this.startNode();return t.name=this.tsParseTypeParameterName(),t.constraint=this.tsTryParse((()=>this.tsParseConstraintForInferType())),e.typeParameter=this.finishNode(t,"TSTypeParameter"),this.finishNode(e,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){let e=this.tsInDisallowConditionalTypesContext((()=>this.tsParseType()));if(this.state.inDisallowConditionalTypesContext||!this.match(17))return e}}tsParseTypeOperatorOrHigher(){return function(e){return e>=119&&e<=121}(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(113)?this.tsParseInferType():this.tsInAllowConditionalTypesContext((()=>this.tsParseArrayTypeOrHigher()))}tsParseUnionOrIntersectionType(e,t,r){let n=this.startNode(),s=this.eat(r),i=[];do{i.push(t())}while(this.eat(r));return 1!==i.length||s?(n.types=i,this.finishNode(n,e)):i[0]}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return!!this.match(47)||this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(A(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){let{errors:e}=this.state,t=e.length;try{return this.parseObjectLike(8,!0),e.length===t}catch{return!1}}if(this.match(0)){this.next();let{errors:e}=this.state,t=e.length;try{return super.parseBindingList(3,93,1),e.length===t}catch{return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){return this.next(),!!(this.match(11)||this.match(21)||this.tsSkipParameterStart()&&(this.match(14)||this.match(12)||this.match(17)||this.match(29)||this.match(11)&&(this.next(),this.match(19))))}tsParseTypeOrTypePredicateAnnotation(e){return this.tsInType((()=>{let t=this.startNode();this.expect(e);let r=this.startNode(),n=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(n&&this.match(78)){let e=this.tsParseThisTypeOrThisTypePredicate();return"TSThisType"===e.type?(r.parameterName=e,r.asserts=!0,r.typeAnnotation=null,e=this.finishNode(r,"TSTypePredicate")):(this.resetStartLocationFromNode(e,r),e.asserts=!0),t.typeAnnotation=e,this.finishNode(t,"TSTypeAnnotation")}let s=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!s)return n?(r.parameterName=this.parseIdentifier(),r.asserts=n,r.typeAnnotation=null,t.typeAnnotation=this.finishNode(r,"TSTypePredicate"),this.finishNode(t,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,t);let i=this.tsParseTypeAnnotation(!1);return r.parameterName=s,r.typeAnnotation=i,r.asserts=n,t.typeAnnotation=this.finishNode(r,"TSTypePredicate"),this.finishNode(t,"TSTypeAnnotation")}))}tsTryParseTypeOrTypePredicateAnnotation(){return this.match(14)?this.tsParseTypeOrTypePredicateAnnotation(14):void 0}tsTryParseTypeAnnotation(){return this.match(14)?this.tsParseTypeAnnotation():void 0}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){let e=this.parseIdentifier();if(this.isContextual(114)&&!this.hasPrecedingLineBreak())return this.next(),e}tsParseTypePredicateAsserts(){if(107!==this.state.type)return!1;let e=this.state.containsEsc;return this.next(),!(!A(this.state.type)&&!this.match(78)||(e&&this.raise(Y.InvalidEscapedReservedWord,{at:this.state.lastTokStartLoc,reservedWord:"asserts"}),0))}tsParseTypeAnnotation(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.startNode();return this.tsInType((()=>{e&&this.expect(14),t.typeAnnotation=this.tsParseType()})),this.finishNode(t,"TSTypeAnnotation")}tsParseType(){_t(this.state.inType);let e=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return e;let t=this.startNodeAtNode(e);return t.checkType=e,t.extendsType=this.tsInDisallowConditionalTypesContext((()=>this.tsParseNonConditionalType())),this.expect(17),t.trueType=this.tsInAllowConditionalTypesContext((()=>this.tsParseType())),this.expect(14),t.falseType=this.tsInAllowConditionalTypesContext((()=>this.tsParseType())),this.finishNode(t,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(122)&&77===this.lookahead().type}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(Ot.ReservedTypeAssertion,{at:this.state.startLoc});let e=this.startNode();return e.typeAnnotation=this.tsInType((()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType()))),this.expect(48),e.expression=this.parseMaybeUnary(),this.finishNode(e,"TSTypeAssertion")}tsParseHeritageClause(e){let t=this.state.startLoc,r=this.tsParseDelimitedList("HeritageClauseElement",(()=>{let e=this.startNode();return e.expression=this.tsParseEntityName(),this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSExpressionWithTypeArguments")}));return r.length||this.raise(Ot.EmptyHeritageClauseType,{at:t,token:e}),r}tsParseInterfaceDeclaration(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.hasFollowingLineBreak())return null;this.expectContextual(127),t.declare&&(e.declare=!0),A(this.state.type)?(e.id=this.parseIdentifier(),this.checkIdentifier(e.id,130)):(e.id=null,this.raise(Ot.MissingInterfaceName,{at:this.state.startLoc})),e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(e.extends=this.tsParseHeritageClause("extends"));let r=this.startNode();return r.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(r,"TSInterfaceBody"),this.finishNode(e,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(e){return e.id=this.parseIdentifier(),this.checkIdentifier(e.id,2),e.typeAnnotation=this.tsInType((()=>{if(e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(112)&&16!==this.lookahead().type){let e=this.startNode();return this.next(),this.finishNode(e,"TSIntrinsicKeyword")}return this.tsParseType()})),this.semicolon(),this.finishNode(e,"TSTypeAliasDeclaration")}tsInNoContext(e){let t=this.state.context;this.state.context=[t[0]];try{return e()}finally{this.state.context=t}}tsInType(e){let t=this.state.inType;this.state.inType=!0;try{return e()}finally{this.state.inType=t}}tsInDisallowConditionalTypesContext(e){let t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}}tsInAllowConditionalTypesContext(e){let t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}}tsEatThenParseType(e){return this.match(e)?this.tsNextThenParseType():void 0}tsExpectThenParseType(e){return this.tsDoThenParseType((()=>this.expect(e)))}tsNextThenParseType(){return this.tsDoThenParseType((()=>this.next()))}tsDoThenParseType(e){return this.tsInType((()=>(e(),this.tsParseType())))}tsParseEnumMember(){let e=this.startNode();return e.id=this.match(131)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(e.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(e,"TSEnumMember")}tsParseEnumDeclaration(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.const&&(e.const=!0),t.declare&&(e.declare=!0),this.expectContextual(124),e.id=this.parseIdentifier(),this.checkIdentifier(e.id,e.const?8971:8459),this.expect(5),e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(e,"TSEnumDeclaration")}tsParseModuleBlock(){let e=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(e.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(e,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e.id=this.parseIdentifier(),t||this.checkIdentifier(e.id,1024),this.eat(16)){let t=this.startNode();this.tsParseModuleOrNamespaceDeclaration(t,!0),e.body=t}else this.scope.enter(ve),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(e,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(e){return this.isContextual(110)?(e.global=!0,e.id=this.parseIdentifier()):this.match(131)?e.id=super.parseStringLiteral(this.state.value):this.unexpected(),this.match(5)?(this.scope.enter(ve),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(e,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(e,t){e.isExport=t||!1,e.id=this.parseIdentifier(),this.checkIdentifier(e.id,Fe),this.expect(29);let r=this.tsParseModuleReference();return"type"===e.importKind&&"TSExternalModuleReference"!==r.type&&this.raise(Ot.ImportAliasHasImportType,{at:r}),e.moduleReference=r,this.semicolon(),this.finishNode(e,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(117)&&40===this.lookaheadCharCode()}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsParseExternalModuleReference(){let e=this.startNode();return this.expectContextual(117),this.expect(10),this.match(131)||this.unexpected(),e.expression=super.parseExprAtom(),this.expect(11),this.finishNode(e,"TSExternalModuleReference")}tsLookAhead(e){let t=this.state.clone(),r=e();return this.state=t,r}tsTryParseAndCatch(e){let t=this.tryParse((t=>e()||t()));if(!t.aborted&&t.node)return t.error&&(this.state=t.failState),t.node}tsTryParse(e){let t=this.state.clone(),r=e();if(void 0!==r&&!1!==r)return r;this.state=t}tsTryParseDeclare(e){if(this.isLineTerminator())return;let t,r=this.state.type;return this.isContextual(99)&&(r=74,t="let"),this.tsInAmbientContext((()=>{if(68===r)return e.declare=!0,super.parseFunctionStatement(e,!1,!1);if(80===r)return e.declare=!0,this.parseClass(e,!0,!1);if(124===r)return this.tsParseEnumDeclaration(e,{declare:!0});if(110===r)return this.tsParseAmbientExternalModuleDeclaration(e);if(75===r||74===r)return this.match(75)&&this.isLookaheadContextual("enum")?(this.expect(75),this.tsParseEnumDeclaration(e,{const:!0,declare:!0})):(e.declare=!0,this.parseVarStatement(e,t||this.state.value,!0));if(127===r){let t=this.tsParseInterfaceDeclaration(e,{declare:!0});if(t)return t}return A(r)?this.tsParseDeclaration(e,this.state.value,!0,null):void 0}))}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0,null)}tsParseExpressionStatement(e,t,r){switch(t.name){case"declare":{let t=this.tsTryParseDeclare(e);if(t)return t.declare=!0,t;break}case"global":if(this.match(5)){this.scope.enter(ve),this.prodParam.enter(0);let r=e;return r.global=!0,r.id=t,r.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(r,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(e,t.name,!1,r)}}tsParseDeclaration(e,t,r,n){switch(t){case"abstract":if(this.tsCheckLineTerminator(r)&&(this.match(80)||A(this.state.type)))return this.tsParseAbstractDeclaration(e,n);break;case"module":if(this.tsCheckLineTerminator(r)){if(this.match(131))return this.tsParseAmbientExternalModuleDeclaration(e);if(A(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(e)}break;case"namespace":if(this.tsCheckLineTerminator(r)&&A(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(e);break;case"type":if(this.tsCheckLineTerminator(r)&&A(this.state.type))return this.tsParseTypeAliasDeclaration(e)}}tsCheckLineTerminator(e){return e?!this.hasFollowingLineBreak()&&(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(e){if(!this.match(47))return;let t=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let r=this.tsTryParseAndCatch((()=>{let t=this.startNodeAt(e);return t.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(t),t.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),t}));return this.state.maybeInArrowParameters=t,r?super.parseArrowExpression(r,null,!0):void 0}tsParseTypeArgumentsInExpression(){if(47===this.reScan_lt())return this.tsParseTypeArguments()}tsParseTypeArguments(){let e=this.startNode();return e.params=this.tsInType((()=>this.tsInNoContext((()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))))),0===e.params.length&&this.raise(Ot.EmptyTypeArguments,{at:e}),this.expect(48),this.finishNode(e,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return function(e){return e>=122&&e<=128}(this.state.type)}isExportDefaultSpecifier(){return!this.tsIsDeclarationStart()&&super.isExportDefaultSpecifier()}parseAssignableListItem(e,t){let r=this.state.startLoc,n={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},n);let s=n.accessibility,i=n.override,a=n.readonly;!(4&e)&&(s||a||i)&&this.raise(Ot.UnexpectedParameterModifier,{at:r});let o=this.parseMaybeDefault();this.parseAssignableListItemTypes(o,e);let u=this.parseMaybeDefault(o.loc.start,o);if(s||a||i){let e=this.startNodeAt(r);return t.length&&(e.decorators=t),s&&(e.accessibility=s),a&&(e.readonly=a),i&&(e.override=i),"Identifier"!==u.type&&"AssignmentPattern"!==u.type&&this.raise(Ot.UnsupportedParameterPropertyKind,{at:e}),e.parameter=u,this.finishNode(e,"TSParameterProperty")}return t.length&&(o.decorators=t),u}isSimpleParameter(e){return"TSParameterProperty"===e.type&&super.isSimpleParameter(e.parameter)||super.isSimpleParameter(e)}tsDisallowOptionalPattern(e){for(let t of e.params)"Identifier"!==t.type&&t.optional&&!this.state.isAmbientContext&&this.raise(Ot.PatternIsOptional,{at:t})}setArrowFunctionParameters(e,t,r){super.setArrowFunctionParameters(e,t,r),this.tsDisallowOptionalPattern(e)}parseFunctionBodyAndFinish(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.match(14)&&(e.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));let n="FunctionDeclaration"===t?"TSDeclareFunction":"ClassMethod"===t||"ClassPrivateMethod"===t?"TSDeclareMethod":void 0;return n&&!this.match(5)&&this.isLineTerminator()?this.finishNode(e,n):"TSDeclareFunction"===n&&this.state.isAmbientContext&&(this.raise(Ot.DeclareFunctionHasImplementation,{at:e}),e.declare)?super.parseFunctionBodyAndFinish(e,n,r):(this.tsDisallowOptionalPattern(e),super.parseFunctionBodyAndFinish(e,t,r))}registerFunctionStatementId(e){!e.body&&e.id?this.checkIdentifier(e.id,1024):super.registerFunctionStatementId(e)}tsCheckForInvalidTypeCasts(e){e.forEach((e=>{"TSTypeCastExpression"===(null==e?void 0:e.type)&&this.raise(Ot.UnexpectedTypeAnnotation,{at:e.typeAnnotation})}))}toReferencedList(e,t){return this.tsCheckForInvalidTypeCasts(e),e}parseArrayLike(e,t,r,n){let s=super.parseArrayLike(e,t,r,n);return"ArrayExpression"===s.type&&this.tsCheckForInvalidTypeCasts(s.elements),s}parseSubscript(e,t,r,n){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let r=this.startNodeAt(t);return r.expression=e,this.finishNode(r,"TSNonNullExpression")}let s=!1;if(this.match(18)&&60===this.lookaheadCharCode()){if(r)return n.stop=!0,e;n.optionalChainMember=s=!0,this.next()}if(this.match(47)||this.match(51)){let i,a=this.tsTryParseAndCatch((()=>{if(!r&&this.atPossibleAsyncArrow(e)){let e=this.tsTryParseGenericAsyncArrowFunction(t);if(e)return e}let a=this.tsParseTypeArgumentsInExpression();if(!a)return;if(s&&!this.match(10))return void(i=this.state.curPosition());if(B(this.state.type)){let r=super.parseTaggedTemplateExpression(e,t,n);return r.typeParameters=a,r}if(!r&&this.eat(10)){let r=this.startNodeAt(t);return r.callee=e,r.arguments=this.parseCallExpressionArguments(11,!1),this.tsCheckForInvalidTypeCasts(r.arguments),r.typeParameters=a,n.optionalChainMember&&(r.optional=s),this.finishCallExpression(r,n.optionalChainMember)}let o=this.state.type;if(48===o||52===o||10!==o&&w(o)&&!this.hasPrecedingLineBreak())return;let u=this.startNodeAt(t);return u.expression=e,u.typeParameters=a,this.finishNode(u,"TSInstantiationExpression")}));if(i&&this.unexpected(i,10),a)return"TSInstantiationExpression"===a.type&&(this.match(16)||this.match(18)&&40!==this.lookaheadCharCode())&&this.raise(Ot.InvalidPropertyAccessAfterInstantiationExpression,{at:this.state.startLoc}),a}return super.parseSubscript(e,t,r,n)}parseNewCallee(e){var t;super.parseNewCallee(e);let{callee:r}=e;"TSInstantiationExpression"===r.type&&(null==(t=r.extra)||!t.parenthesized)&&(e.typeParameters=r.typeParameters,e.callee=r.expression)}parseExprOp(e,t,r){let n;if(I(58)>r&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(n=this.isContextual(118)))){let s=this.startNodeAt(t);return s.expression=e,s.typeAnnotation=this.tsInType((()=>(this.next(),this.match(75)?(n&&this.raise(Y.UnexpectedKeyword,{at:this.state.startLoc,keyword:"const"}),this.tsParseTypeReference()):this.tsParseType()))),this.finishNode(s,n?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(s,t,r)}return super.parseExprOp(e,t,r)}checkReservedWord(e,t,r,n){this.state.isAmbientContext||super.checkReservedWord(e,t,r,n)}checkImportReflection(e){super.checkImportReflection(e),e.module&&"value"!==e.importKind&&this.raise(Ot.ImportReflectionHasImportType,{at:e.specifiers[0].loc.start})}checkDuplicateExports(){}parseImport(e){if(e.importKind="value",A(this.state.type)||this.match(55)||this.match(5)){let t=this.lookahead();if(this.isContextual(128)&&12!==t.type&&97!==t.type&&29!==t.type&&(e.importKind="type",this.next(),t=this.lookahead()),A(this.state.type)&&29===t.type)return this.tsParseImportEqualsDeclaration(e)}let t=super.parseImport(e);return"type"===t.importKind&&t.specifiers.length>1&&"ImportDefaultSpecifier"===t.specifiers[0].type&&this.raise(Ot.TypeImportCannotSpecifyDefaultAndNamed,{at:t}),t}parseExport(e,t){if(this.match(83))return this.next(),this.isContextual(128)&&61!==this.lookaheadCharCode()?(e.importKind="type",this.next()):e.importKind="value",this.tsParseImportEqualsDeclaration(e,!0);if(this.eat(29)){let t=e;return t.expression=super.parseExpression(),this.semicolon(),this.finishNode(t,"TSExportAssignment")}if(this.eatContextual(93)){let t=e;return this.expectContextual(126),t.id=this.parseIdentifier(),this.semicolon(),this.finishNode(t,"TSNamespaceExportDeclaration")}if(e.exportKind="value",this.isContextual(128)){let t=this.lookaheadCharCode();(123===t||42===t)&&(this.next(),e.exportKind="type")}return super.parseExport(e,t)}isAbstractClass(){return this.isContextual(122)&&80===this.lookahead().type}parseExportDefaultExpression(){if(this.isAbstractClass()){let e=this.startNode();return this.next(),e.abstract=!0,this.parseClass(e,!0,!0)}if(this.match(127)){let e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e}return super.parseExportDefaultExpression()}parseVarStatement(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],{isAmbientContext:n}=this.state,s=super.parseVarStatement(e,t,r||n);if(!n)return s;for(let{id:e,init:r}of s.declarations)r&&("const"!==t||e.typeAnnotation?this.raise(Ot.InitializerNotAllowedInAmbientContext,{at:r}):Rt(r,this.hasPlugin("estree"))||this.raise(Ot.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference,{at:r}));return s}parseStatementContent(e,t){if(this.match(75)&&this.isLookaheadContextual("enum")){let e=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(e,{const:!0})}if(this.isContextual(124))return this.tsParseEnumDeclaration(this.startNode());if(this.isContextual(127)){let e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e}return super.parseStatementContent(e,t)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(e,t){return t.some((t=>Lt(t)?e.accessibility===t:!!e[t]))}tsIsStartOfStaticBlocks(){return this.isContextual(104)&&123===this.lookaheadCharCode()}parseClassMember(e,t,r){let n=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:n,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:Ot.InvalidModifierOnTypeParameterPositions},t);let s=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(t,n)&&this.raise(Ot.StaticBlockCannotHaveModifier,{at:this.state.curPosition()}),super.parseClassStaticBlock(e,t)):this.parseClassMemberWithIsStatic(e,t,r,!!t.static)};t.declare?this.tsInAmbientContext(s):s()}parseClassMemberWithIsStatic(e,t,r,n){let s=this.tsTryParseIndexSignature(t);if(s)return e.body.push(s),t.abstract&&this.raise(Ot.IndexSignatureHasAbstract,{at:t}),t.accessibility&&this.raise(Ot.IndexSignatureHasAccessibility,{at:t,modifier:t.accessibility}),t.declare&&this.raise(Ot.IndexSignatureHasDeclare,{at:t}),void(t.override&&this.raise(Ot.IndexSignatureHasOverride,{at:t}));!this.state.inAbstractClass&&t.abstract&&this.raise(Ot.NonAbstractClassHasAbstractMethod,{at:t}),t.override&&(r.hadSuperClass||this.raise(Ot.OverrideNotInSubClass,{at:t})),super.parseClassMemberWithIsStatic(e,t,r,n)}parsePostMemberNameModifiers(e){this.eat(17)&&(e.optional=!0),e.readonly&&this.match(10)&&this.raise(Ot.ClassMethodHasReadonly,{at:e}),e.declare&&this.match(10)&&this.raise(Ot.ClassMethodHasDeclare,{at:e})}parseExpressionStatement(e,t,r){return("Identifier"===t.type?this.tsParseExpressionStatement(e,t,r):void 0)||super.parseExpressionStatement(e,t,r)}shouldParseExportDeclaration(){return!!this.tsIsDeclarationStart()||super.shouldParseExportDeclaration()}parseConditional(e,t,r){if(!this.state.maybeInArrowParameters||!this.match(17))return super.parseConditional(e,t,r);let n=this.tryParse((()=>super.parseConditional(e,t)));return n.node?(n.error&&(this.state=n.failState),n.node):(n.error&&super.setOptionalParametersError(r,n.error),e)}parseParenItem(e,t){if(e=super.parseParenItem(e,t),this.eat(17)&&(e.optional=!0,this.resetEndLocation(e)),this.match(14)){let r=this.startNodeAt(t);return r.expression=e,r.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(r,"TSTypeCastExpression")}return e}parseExportDeclaration(e){if(!this.state.isAmbientContext&&this.isContextual(123))return this.tsInAmbientContext((()=>this.parseExportDeclaration(e)));let t=this.state.startLoc,r=this.eatContextual(123);if(r&&(this.isContextual(123)||!this.shouldParseExportDeclaration()))throw this.raise(Ot.ExpectedAmbientAfterExportDeclare,{at:this.state.startLoc});let n=A(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(e);return n?(("TSInterfaceDeclaration"===n.type||"TSTypeAliasDeclaration"===n.type||r)&&(e.exportKind="type"),r&&(this.resetStartLocation(n,t),n.declare=!0),n):null}parseClassId(e,t,r,n){if((!t||r)&&this.isContextual(111))return;super.parseClassId(e,t,r,e.declare?1024:8331);let s=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);s&&(e.typeParameters=s)}parseClassPropertyAnnotation(e){e.optional||(this.eat(35)?e.definite=!0:this.eat(17)&&(e.optional=!0));let t=this.tsTryParseTypeAnnotation();t&&(e.typeAnnotation=t)}parseClassProperty(e){if(this.parseClassPropertyAnnotation(e),this.state.isAmbientContext&&!(e.readonly&&!e.typeAnnotation)&&this.match(29)&&this.raise(Ot.DeclareClassFieldHasInitializer,{at:this.state.startLoc}),e.abstract&&this.match(29)){let{key:t}=e;this.raise(Ot.AbstractPropertyHasInitializer,{at:this.state.startLoc,propertyName:"Identifier"!==t.type||e.computed?`[${this.input.slice(t.start,t.end)}]`:t.name})}return super.parseClassProperty(e)}parseClassPrivateProperty(e){return e.abstract&&this.raise(Ot.PrivateElementHasAbstract,{at:e}),e.accessibility&&this.raise(Ot.PrivateElementHasAccessibility,{at:e,modifier:e.accessibility}),this.parseClassPropertyAnnotation(e),super.parseClassPrivateProperty(e)}parseClassAccessorProperty(e){return this.parseClassPropertyAnnotation(e),e.optional&&this.raise(Ot.AccessorCannotBeOptional,{at:e}),super.parseClassAccessorProperty(e)}pushClassMethod(e,t,r,n,s,i){let a=this.tsTryParseTypeParameters(this.tsParseConstModifier);a&&s&&this.raise(Ot.ConstructorHasTypeParameters,{at:a});let{declare:o=!1,kind:u}=t;o&&("get"===u||"set"===u)&&this.raise(Ot.DeclareAccessor,{at:t,kind:u}),a&&(t.typeParameters=a),super.pushClassMethod(e,t,r,n,s,i)}pushClassPrivateMethod(e,t,r,n){let s=this.tsTryParseTypeParameters(this.tsParseConstModifier);s&&(t.typeParameters=s),super.pushClassPrivateMethod(e,t,r,n)}declareClassPrivateMethodInScope(e,t){"TSDeclareMethod"!==e.type&&("MethodDefinition"===e.type&&!e.value.body||super.declareClassPrivateMethodInScope(e,t))}parseClassSuper(e){super.parseClassSuper(e),e.superClass&&(this.match(47)||this.match(51))&&(e.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual(111)&&(e.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(e,t,r,n,s,i,a){let o=this.tsTryParseTypeParameters(this.tsParseConstModifier);return o&&(e.typeParameters=o),super.parseObjPropValue(e,t,r,n,s,i,a)}parseFunctionParams(e,t){let r=this.tsTryParseTypeParameters(this.tsParseConstModifier);r&&(e.typeParameters=r),super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t),"Identifier"===e.id.type&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(e.definite=!0);let r=this.tsTryParseTypeAnnotation();r&&(e.id.typeAnnotation=r,this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,t){return this.match(14)&&(e.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(e,t)}parseMaybeAssign(e,t){var r,s,i,a,o,u,l;let p,c,h;if(this.hasPlugin("jsx")&&(this.match(140)||this.match(47))){if(p=this.state.clone(),c=this.tryParse((()=>super.parseMaybeAssign(e,t)),p),!c.error)return c.node;let{context:r}=this.state,s=r[r.length-1];(s===n.j_oTag||s===n.j_expr)&&r.pop()}if(!(null!=(r=c)&&r.error||this.match(47)))return super.parseMaybeAssign(e,t);(!p||p===this.state)&&(p=this.state.clone());let d,f=this.tryParse((r=>{var n,s;d=this.tsParseTypeParameters(this.tsParseConstModifier);let i=super.parseMaybeAssign(e,t);return("ArrowFunctionExpression"!==i.type||null!=(n=i.extra)&&n.parenthesized)&&r(),0!==(null==(s=d)?void 0:s.params.length)&&this.resetStartLocationFromNode(i,d),i.typeParameters=d,i}),p);if(!f.error&&!f.aborted)return d&&this.reportReservedArrowTypeParam(d),f.node;if(!c&&(_t(!this.hasPlugin("jsx")),h=this.tryParse((()=>super.parseMaybeAssign(e,t)),p),!h.error))return h.node;if(null!=(s=c)&&s.node)return this.state=c.failState,c.node;if(f.node)return this.state=f.failState,d&&this.reportReservedArrowTypeParam(d),f.node;if(null!=(i=h)&&i.node)return this.state=h.failState,h.node;throw null!=(a=c)&&a.thrown?c.error:f.thrown?f.error:null!=(o=h)&&o.thrown?h.error:(null==(u=c)?void 0:u.error)||f.error||(null==(l=h)?void 0:l.error)}reportReservedArrowTypeParam(e){var t;1===e.params.length&&!e.params[0].constraint&&(null==(t=e.extra)||!t.trailingComma)&&this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(Ot.ReservedArrowTypeParam,{at:e})}parseMaybeUnary(e,t){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(e,t)}parseArrow(e){if(this.match(14)){let t=this.tryParse((e=>{let t=this.tsParseTypeOrTypePredicateAnnotation(14);return(this.canInsertSemicolon()||!this.match(19))&&e(),t}));if(t.aborted)return;t.thrown||(t.error&&(this.state=t.failState),e.returnType=t.node)}return super.parseArrow(e)}parseAssignableListItemTypes(e,t){if(!(2&t))return e;this.eat(17)&&(e.optional=!0);let r=this.tsTryParseTypeAnnotation();return r&&(e.typeAnnotation=r),this.resetEndLocation(e),e}isAssignable(e,t){switch(e.type){case"TSTypeCastExpression":return this.isAssignable(e.expression,t);case"TSParameterProperty":return!0;default:return super.isAssignable(e,t)}}toAssignable(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];switch(e.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(e,t);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":t?this.expressionScope.recordArrowParameterBindingError(Ot.UnexpectedTypeCastInParameter,{at:e}):this.raise(Ot.UnexpectedTypeCastInParameter,{at:e}),this.toAssignable(e.expression,t);break;case"AssignmentExpression":!t&&"TSTypeCastExpression"===e.left.type&&(e.left=this.typeCastToParameter(e.left));default:super.toAssignable(e,t)}}toAssignableParenthesizedExpression(e,t){switch(e.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(e.expression,t);break;default:super.toAssignable(e,t)}}checkToRestConversion(e,t){switch(e.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(e.expression,!1);break;default:super.checkToRestConversion(e,t)}}isValidLVal(e,t,r){return((e,t)=>Object.hasOwnProperty.call(e,t)&&e[t])({TSTypeCastExpression:!0,TSParameterProperty:"parameter",TSNonNullExpression:"expression",TSAsExpression:(r!==Ne||!t)&&["expression",!0],TSSatisfiesExpression:(r!==Ne||!t)&&["expression",!0],TSTypeAssertion:(r!==Ne||!t)&&["expression",!0]},e)||super.isValidLVal(e,t,r)}parseBindingAtom(){return 78===this.state.type?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(e){if(this.match(47)||this.match(51)){let t=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let r=super.parseMaybeDecoratorArguments(e);return r.typeParameters=t,r}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(e)}checkCommaAfterRest(e){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===e?(this.next(),!1):super.checkCommaAfterRest(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(e,t){let r=super.parseMaybeDefault(e,t);return"AssignmentPattern"===r.type&&r.typeAnnotation&&r.right.start<r.typeAnnotation.start&&this.raise(Ot.TypeAnnotationAfterAssign,{at:r.typeAnnotation}),r}getTokenFromCode(e){if(this.state.inType){if(62===e)return void this.finishOp(48,1);if(60===e)return void this.finishOp(47,1)}super.getTokenFromCode(e)}reScan_lt_gt(){let{type:e}=this.state;47===e?(this.state.pos-=1,this.readToken_lt()):48===e&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:e}=this.state;return 51===e?(this.state.pos-=2,this.finishOp(47,1),47):e}toAssignableList(e,t,r){for(let t=0;t<e.length;t++){let r=e[t];"TSTypeCastExpression"===(null==r?void 0:r.type)&&(e[t]=this.typeCastToParameter(r))}super.toAssignableList(e,t,r)}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.loc.end),e.expression}shouldParseArrow(e){return this.match(14)?e.every((e=>this.isAssignable(e,!0))):super.shouldParseArrow(e)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(e){if(this.match(47)||this.match(51)){let t=this.tsTryParseAndCatch((()=>this.tsParseTypeArgumentsInExpression()));t&&(e.typeParameters=t)}return super.jsxParseOpeningElementAfterName(e)}getGetterSetterExpectedParamCount(e){let t=super.getGetterSetterExpectedParamCount(e),r=this.getObjectOrClassMethodParams(e)[0];return r&&this.isThisParam(r)?t+1:t}parseCatchClauseParam(){let e=super.parseCatchClauseParam(),t=this.tsTryParseTypeAnnotation();return t&&(e.typeAnnotation=t,this.resetEndLocation(e)),e}tsInAmbientContext(e){let t=this.state.isAmbientContext;this.state.isAmbientContext=!0;try{return e()}finally{this.state.isAmbientContext=t}}parseClass(e,t,r){let n=this.state.inAbstractClass;this.state.inAbstractClass=!!e.abstract;try{return super.parseClass(e,t,r)}finally{this.state.inAbstractClass=n}}tsParseAbstractDeclaration(e,t){if(this.match(80))return e.abstract=!0,this.maybeTakeDecorators(t,this.parseClass(e,!0,!1));if(this.isContextual(127)){if(!this.hasFollowingLineBreak())return e.abstract=!0,this.raise(Ot.NonClassMethodPropertyHasAbstractModifer,{at:e}),this.tsParseInterfaceDeclaration(e)}else this.unexpected(null,80)}parseMethod(e,t,r,n,s,i,a){let o=super.parseMethod(e,t,r,n,s,i,a);if(o.abstract&&(this.hasPlugin("estree")?o.value.body:o.body)){let{key:e}=o;this.raise(Ot.AbstractMethodHasImplementation,{at:o,methodName:"Identifier"!==e.type||o.computed?`[${this.input.slice(e.start,e.end)}]`:e.name})}return o}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(e,t,r,n){return!t&&n?(this.parseTypeOnlyImportExportSpecifier(e,!1,r),this.finishNode(e,"ExportSpecifier")):(e.exportKind="value",super.parseExportSpecifier(e,t,r,n))}parseImportSpecifier(e,t,r,n,s){return!t&&n?(this.parseTypeOnlyImportExportSpecifier(e,!0,r),this.finishNode(e,"ImportSpecifier")):(e.importKind="value",super.parseImportSpecifier(e,t,r,n,r?4098:Fe))}parseTypeOnlyImportExportSpecifier(e,t,r){let n,s=t?"imported":"local",i=t?"local":"exported",a=e[s],o=!1,u=!0,l=a.loc.start;if(this.isContextual(93)){let e=this.parseIdentifier();if(this.isContextual(93)){let r=this.parseIdentifier();S(this.state.type)?(o=!0,a=e,n=t?this.parseIdentifier():this.parseModuleExportName(),u=!1):(n=r,u=!1)}else S(this.state.type)?(u=!1,n=t?this.parseIdentifier():this.parseModuleExportName()):(o=!0,a=e)}else S(this.state.type)&&(o=!0,t?(a=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(a.name,a.loc.start,!0,!0)):a=this.parseModuleExportName());o&&r&&this.raise(t?Ot.TypeModifierIsUsedInTypeImports:Ot.TypeModifierIsUsedInTypeExports,{at:l}),e[s]=a,e[i]=n,e[t?"importKind":"exportKind"]=o?"type":"value",u&&this.eatContextual(93)&&(e[i]=t?this.parseIdentifier():this.parseModuleExportName()),e[i]||(e[i]=gt(e[s])),t&&this.checkIdentifier(e[i],o?4098:Fe)}},v8intrinsic:e=>class extends e{parseV8Intrinsic(){if(this.match(54)){let e=this.state.startLoc,t=this.startNode();if(this.next(),A(this.state.type)){let e=this.parseIdentifierName(),r=this.createIdentifier(t,e);if(r.type="V8IntrinsicIdentifier",this.match(10))return r}this.unexpected(e)}}parseExprAtom(e){return this.parseV8Intrinsic()||super.parseExprAtom(e)}},placeholders:e=>class extends e{parsePlaceholder(e){if(this.match(142)){let t=this.startNode();return this.next(),this.assertNoSpace(),t.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(142),this.finishPlaceholder(t,e)}}finishPlaceholder(e,t){let r=!(!e.expectedNode||"Placeholder"!==e.type);return e.expectedNode=t,r?e:this.finishNode(e,"Placeholder")}getTokenFromCode(e){37===e&&37===this.input.charCodeAt(this.state.pos+1)?this.finishOp(142,2):super.getTokenFromCode(e)}parseExprAtom(e){return this.parsePlaceholder("Expression")||super.parseExprAtom(e)}parseIdentifier(e){return this.parsePlaceholder("Identifier")||super.parseIdentifier(e)}checkReservedWord(e,t,r,n){void 0!==e&&super.checkReservedWord(e,t,r,n)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(e,t,r){return"Placeholder"===e||super.isValidLVal(e,t,r)}toAssignable(e,t){e&&"Placeholder"===e.type&&"Expression"===e.expectedNode?e.expectedNode="Pattern":super.toAssignable(e,t)}chStartsBindingIdentifier(e,t){return!(!super.chStartsBindingIdentifier(e,t)&&142!==this.lookahead().type)}verifyBreakContinue(e,t){e.label&&"Placeholder"===e.label.type||super.verifyBreakContinue(e,t)}parseExpressionStatement(e,t){if("Placeholder"!==t.type||t.extra&&t.extra.parenthesized)return super.parseExpressionStatement(e,t);if(this.match(14)){let r=e;return r.label=this.finishPlaceholder(t,"Identifier"),this.next(),r.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(r,"LabeledStatement")}return this.semicolon(),e.name=t.name,this.finishPlaceholder(e,"Statement")}parseBlock(e,t,r){return this.parsePlaceholder("BlockStatement")||super.parseBlock(e,t,r)}parseFunctionId(e){return this.parsePlaceholder("Identifier")||super.parseFunctionId(e)}parseClass(e,t,r){let n=t?"ClassDeclaration":"ClassExpression";this.next();let s=this.state.strict,i=this.parsePlaceholder("Identifier");if(i){if(!(this.match(81)||this.match(142)||this.match(5))){if(r||!t)return e.id=null,e.body=this.finishPlaceholder(i,"ClassBody"),this.finishNode(e,n);throw this.raise(zt.ClassNameIsRequired,{at:this.state.startLoc})}e.id=i}else this.parseClassId(e,t,r);return super.parseClassSuper(e),e.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!e.superClass,s),this.finishNode(e,n)}parseExport(e,t){let r=this.parsePlaceholder("Identifier");if(!r)return super.parseExport(e,t);if(!this.isContextual(97)&&!this.match(12))return e.specifiers=[],e.source=null,e.declaration=this.finishPlaceholder(r,"Declaration"),this.finishNode(e,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");let n=this.startNode();return n.exported=r,e.specifiers=[this.finishNode(n,"ExportDefaultSpecifier")],super.parseExport(e,t)}isExportDefaultSpecifier(){if(this.match(65)){let e=this.nextTokenStart();if(this.isUnparsedContextual(e,"from")&&this.input.startsWith(N(142),this.nextTokenStartSince(e+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(e){return!!(e.specifiers&&e.specifiers.length>0)||super.maybeParseExportDefaultSpecifier(e)}checkExport(e){let{specifiers:t}=e;null!=t&&t.length&&(e.specifiers=t.filter((e=>"Placeholder"===e.exported.type))),super.checkExport(e),e.specifiers=t}parseImport(e){let t=this.parsePlaceholder("Identifier");if(!t)return super.parseImport(e);if(e.specifiers=[],!this.isContextual(97)&&!this.match(12))return e.source=this.finishPlaceholder(t,"StringLiteral"),this.semicolon(),this.finishNode(e,"ImportDeclaration");let r=this.startNodeAtNode(t);return r.local=t,e.specifiers.push(this.finishNode(r,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(e)||this.parseNamedImportSpecifiers(e)),this.expectContextual(97),e.source=this.parseImportSource(),this.semicolon(),this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.state.lastTokEndLoc.index&&this.raise(zt.UnexpectedSpace,{at:this.state.lastTokEndLoc})}}},Xt=Object.keys(Gt),Kt=class extends Bt{checkProto(e,t,r,n){if("SpreadElement"===e.type||this.isObjectMethod(e)||e.computed||e.shorthand)return;let s=e.key;if("__proto__"===("Identifier"===s.type?s.name:s.value)){if(t)return void this.raise(Y.RecordNoProto,{at:s});r.used&&(n?null===n.doubleProtoLoc&&(n.doubleProtoLoc=s.loc.start):this.raise(Y.DuplicateProto,{at:s})),r.used=!0}}shouldExitDescending(e,t){return"ArrowFunctionExpression"===e.type&&e.start===t}getExpression(){this.enterInitialScopes(),this.nextToken();let e=this.parseExpression();return this.match(137)||this.unexpected(),this.finalizeRemainingComments(),e.comments=this.state.comments,e.errors=this.state.errors,this.options.tokens&&(e.tokens=this.tokens),e}parseExpression(e,t){return e?this.disallowInAnd((()=>this.parseExpressionBase(t))):this.allowInAnd((()=>this.parseExpressionBase(t)))}parseExpressionBase(e){let t=this.state.startLoc,r=this.parseMaybeAssign(e);if(this.match(12)){let n=this.startNodeAt(t);for(n.expressions=[r];this.eat(12);)n.expressions.push(this.parseMaybeAssign(e));return this.toReferencedList(n.expressions),this.finishNode(n,"SequenceExpression")}return r}parseMaybeAssignDisallowIn(e,t){return this.disallowInAnd((()=>this.parseMaybeAssign(e,t)))}parseMaybeAssignAllowIn(e,t){return this.allowInAnd((()=>this.parseMaybeAssign(e,t)))}setOptionalParametersError(e,t){var r;e.optionalParametersLoc=null!=(r=null==t?void 0:t.loc)?r:this.state.startLoc}parseMaybeAssign(e,t){let r,n=this.state.startLoc;if(this.isContextual(106)&&this.prodParam.hasYield){let e=this.parseYield();return t&&(e=t.call(this,e,n)),e}e?r=!1:(e=new ft,r=!0);let{type:s}=this.state;(10===s||A(s))&&(this.state.potentialArrowAt=this.state.start);let i=this.parseMaybeConditional(e);if(t&&(i=t.call(this,i,n)),function(e){return e>=29&&e<=33}(this.state.type)){let t=this.startNodeAt(n),r=this.state.value;if(t.operator=r,this.match(29)){this.toAssignable(i,!0),t.left=i;let r=n.index;null!=e.doubleProtoLoc&&e.doubleProtoLoc.index>=r&&(e.doubleProtoLoc=null),null!=e.shorthandAssignLoc&&e.shorthandAssignLoc.index>=r&&(e.shorthandAssignLoc=null),null!=e.privateKeyLoc&&e.privateKeyLoc.index>=r&&(this.checkDestructuringPrivate(e),e.privateKeyLoc=null)}else t.left=i;return this.next(),t.right=this.parseMaybeAssign(),this.checkLVal(i,{in:this.finishNode(t,"AssignmentExpression")}),t}return r&&this.checkExpressionErrors(e,!0),i}parseMaybeConditional(e){let t=this.state.startLoc,r=this.state.potentialArrowAt,n=this.parseExprOps(e);return this.shouldExitDescending(n,r)?n:this.parseConditional(n,t,e)}parseConditional(e,t,r){if(this.eat(17)){let r=this.startNodeAt(t);return r.test=e,r.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),r.alternate=this.parseMaybeAssign(),this.finishNode(r,"ConditionalExpression")}return e}parseMaybeUnaryOrPrivate(e){return this.match(136)?this.parsePrivateName():this.parseMaybeUnary(e)}parseExprOps(e){let t=this.state.startLoc,r=this.state.potentialArrowAt,n=this.parseMaybeUnaryOrPrivate(e);return this.shouldExitDescending(n,r)?n:this.parseExprOp(n,t,-1)}parseExprOp(e,t,r){if(this.isPrivateName(e)){let t=this.getPrivateNameSV(e);(r>=I(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(Y.PrivateInExpectedIn,{at:e,identifierName:t}),this.classScope.usePrivateName(t,e.loc.start)}let n=this.state.type;if(function(e){return e>=39&&e<=59}(n)&&(this.prodParam.hasIn||!this.match(58))){let s=I(n);if(s>r){if(39===n){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return e;this.checkPipelineAtInfixOperator(e,t)}let i=this.startNodeAt(t);i.left=e,i.operator=this.state.value;let a=41===n||42===n,o=40===n;if(o&&(s=I(42)),this.next(),39===n&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&96===this.state.type&&this.prodParam.hasAwait)throw this.raise(Y.UnexpectedAwaitAfterPipelineBody,{at:this.state.startLoc});i.right=this.parseExprOpRightExpr(n,s);let u=this.finishNode(i,a||o?"LogicalExpression":"BinaryExpression"),l=this.state.type;if(o&&(41===l||42===l)||a&&40===l)throw this.raise(Y.MixingCoalesceWithLogical,{at:this.state.startLoc});return this.parseExprOp(u,t,r)}}return e}parseExprOpRightExpr(e,t){let r=this.state.startLoc;if(39===e)switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext((()=>this.parseHackPipeBody()));case"smart":return this.withTopicBindingContext((()=>{if(this.prodParam.hasYield&&this.isContextual(106))throw this.raise(Y.PipeBodyIsTighter,{at:this.state.startLoc});return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(e,t),r)}));case"fsharp":return this.withSoloAwaitPermittingContext((()=>this.parseFSharpPipelineBody(t)))}return this.parseExprOpBaseRightExpr(e,t)}parseExprOpBaseRightExpr(e,t){let r=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),r,function(e){return 57===e}(e)?t-1:t)}parseHackPipeBody(){var e;let{startLoc:t}=this.state,r=this.parseMaybeAssign();return H.has(r.type)&&!(null!=(e=r.extra)&&e.parenthesized)&&this.raise(Y.PipeUnparenthesizedBody,{at:t,type:r.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(Y.PipeTopicUnused,{at:t}),r}checkExponentialAfterUnary(e){this.match(57)&&this.raise(Y.UnexpectedTokenUnaryExponentiation,{at:e.argument})}parseMaybeUnary(e,t){let r=this.state.startLoc,n=this.isContextual(96);if(n&&this.isAwaitAllowed()){this.next();let e=this.parseAwait(r);return t||this.checkExponentialAfterUnary(e),e}let s=this.match(34),i=this.startNode();if(function(e){return E[e]}(this.state.type)){i.operator=this.state.value,i.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");let r=this.match(89);if(this.next(),i.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),this.state.strict&&r){let e=i.argument;"Identifier"===e.type?this.raise(Y.StrictDelete,{at:i}):this.hasPropertyAsPrivateName(e)&&this.raise(Y.DeletePrivateField,{at:i})}if(!s)return t||this.checkExponentialAfterUnary(i),this.finishNode(i,"UnaryExpression")}let a=this.parseUpdate(i,s,e);if(n){let{type:e}=this.state;if((this.hasPlugin("v8intrinsic")?w(e):w(e)&&!this.match(54))&&!this.isAmbiguousAwait())return this.raiseOverwrite(Y.AwaitNotInAsyncContext,{at:r}),this.parseAwait(r)}return a}parseUpdate(e,t,r){if(t){let t=e;return this.checkLVal(t.argument,{in:this.finishNode(t,"UpdateExpression")}),e}let n=this.state.startLoc,s=this.parseExprSubscripts(r);if(this.checkExpressionErrors(r,!1))return s;for(;k(this.state.type)&&!this.canInsertSemicolon();){let e=this.startNodeAt(n);e.operator=this.state.value,e.prefix=!1,e.argument=s,this.next(),this.checkLVal(s,{in:s=this.finishNode(e,"UpdateExpression")})}return s}parseExprSubscripts(e){let t=this.state.startLoc,r=this.state.potentialArrowAt,n=this.parseExprAtom(e);return this.shouldExitDescending(n,r)?n:this.parseSubscripts(n,t)}parseSubscripts(e,t,r){let n={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(e),stop:!1};do{e=this.parseSubscript(e,t,r,n),n.maybeAsyncArrow=!1}while(!n.stop);return e}parseSubscript(e,t,r,n){let{type:s}=this.state;if(!r&&15===s)return this.parseBind(e,t,r,n);if(B(s))return this.parseTaggedTemplateExpression(e,t,n);let i=!1;if(18===s){if(r&&(this.raise(Y.OptionalChainingNoNew,{at:this.state.startLoc}),40===this.lookaheadCharCode()))return n.stop=!0,e;n.optionalChainMember=i=!0,this.next()}if(!r&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(e,t,n,i);{let r=this.eat(0);return r||i||this.eat(16)?this.parseMember(e,t,n,r,i):(n.stop=!0,e)}}parseMember(e,t,r,n,s){let i=this.startNodeAt(t);return i.object=e,i.computed=n,n?(i.property=this.parseExpression(),this.expect(3)):this.match(136)?("Super"===e.type&&this.raise(Y.SuperPrivateField,{at:t}),this.classScope.usePrivateName(this.state.value,this.state.startLoc),i.property=this.parsePrivateName()):i.property=this.parseIdentifier(!0),r.optionalChainMember?(i.optional=s,this.finishNode(i,"OptionalMemberExpression")):this.finishNode(i,"MemberExpression")}parseBind(e,t,r,n){let s=this.startNodeAt(t);return s.object=e,this.next(),s.callee=this.parseNoCallExpr(),n.stop=!0,this.parseSubscripts(this.finishNode(s,"BindExpression"),t,r)}parseCoverCallAndAsyncArrowHead(e,t,r,n){let s=this.state.maybeInArrowParameters,i=null;this.state.maybeInArrowParameters=!0,this.next();let a=this.startNodeAt(t);a.callee=e;let{maybeAsyncArrow:o,optionalChainMember:u}=r;o&&(this.expressionScope.enter(new pt(2)),i=new ft),u&&(a.optional=n),a.arguments=n?this.parseCallExpressionArguments(11):this.parseCallExpressionArguments(11,"Import"===e.type,"Super"!==e.type,a,i);let l=this.finishCallExpression(a,u);return o&&this.shouldParseAsyncArrow()&&!n?(r.stop=!0,this.checkDestructuringPrivate(i),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),l=this.parseAsyncArrowFromCallExpression(this.startNodeAt(t),l)):(o&&(this.checkExpressionErrors(i,!0),this.expressionScope.exit()),this.toReferencedArguments(l)),this.state.maybeInArrowParameters=s,l}toReferencedArguments(e,t){this.toReferencedListDeep(e.arguments,t)}parseTaggedTemplateExpression(e,t,r){let n=this.startNodeAt(t);return n.tag=e,n.quasi=this.parseTemplate(!0),r.optionalChainMember&&this.raise(Y.OptionalChainingNoTemplate,{at:t}),this.finishNode(n,"TaggedTemplateExpression")}atPossibleAsyncArrow(e){return"Identifier"===e.type&&"async"===e.name&&this.state.lastTokEndLoc.index===e.end&&!this.canInsertSemicolon()&&e.end-e.start==5&&e.start===this.state.potentialArrowAt}finishCallExpression(e,t){if("Import"===e.callee.type)if(2===e.arguments.length&&(this.hasPlugin("moduleAttributes")||this.expectPlugin("importAssertions")),0===e.arguments.length||e.arguments.length>2)this.raise(Y.ImportCallArity,{at:e,maxArgumentCount:this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")?2:1});else for(let t of e.arguments)"SpreadElement"===t.type&&this.raise(Y.ImportCallSpreadArgument,{at:t});return this.finishNode(e,t?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(e,t,r,n,s){let i=[],a=!0,o=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(e);){if(a)a=!1;else if(this.expect(12),this.match(e)){t&&!this.hasPlugin("importAssertions")&&!this.hasPlugin("moduleAttributes")&&this.raise(Y.ImportCallArgumentTrailingComma,{at:this.state.lastTokStartLoc}),n&&this.addTrailingCommaExtraToNode(n),this.next();break}i.push(this.parseExprListItem(!1,s,r))}return this.state.inFSharpPipelineDirectBody=o,i}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(e,t){var r;return this.resetPreviousNodeTrailingComments(t),this.expect(19),this.parseArrowExpression(e,t.arguments,!0,null==(r=t.extra)?void 0:r.trailingCommaLoc),t.innerComments&&Me(e,t.innerComments),t.callee.trailingComments&&Me(e,t.callee.trailingComments),e}parseNoCallExpr(){let e=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,!0)}parseExprAtom(e){let t,r=null,{type:n}=this.state;switch(n){case 79:return this.parseSuper();case 83:return t=this.startNode(),this.next(),this.match(16)?this.parseImportMetaProperty(t):(this.match(10)||this.raise(Y.UnsupportedImport,{at:this.state.lastTokStartLoc}),this.finishNode(t,"Import"));case 78:return t=this.startNode(),this.next(),this.finishNode(t,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 132:return this.parseNumericLiteral(this.state.value);case 133:return this.parseBigIntLiteral(this.state.value);case 134:return this.parseDecimalLiteral(this.state.value);case 131:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{let e=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(e)}case 2:case 1:return this.parseArrayLike(2===this.state.type?4:3,!1,!0);case 0:return this.parseArrayLike(3,!0,!1,e);case 6:case 7:return this.parseObjectLike(6===this.state.type?9:8,!1,!0);case 5:return this.parseObjectLike(8,!1,!1,e);case 68:return this.parseFunctionOrFunctionSent();case 26:r=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(r,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{t=this.startNode(),this.next(),t.object=null;let e=t.callee=this.parseNoCallExpr();if("MemberExpression"===e.type)return this.finishNode(t,"BindExpression");throw this.raise(Y.UnsupportedBind,{at:e})}case 136:return this.raise(Y.PrivateInExpectedIn,{at:this.state.startLoc,identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{let e=this.getPluginOption("pipelineOperator","proposal");if(e)return this.parseTopicReference(e);this.unexpected();break}case 47:{let e=this.input.codePointAt(this.nextTokenStart());le(e)||62===e?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected();break}default:if(A(n)){if(this.isContextual(125)&&123===this.lookaheadCharCode()&&!this.hasFollowingLineBreak())return this.parseModuleExpression();let e=this.state.potentialArrowAt===this.state.start,t=this.state.containsEsc,r=this.parseIdentifier();if(!t&&"async"===r.name&&!this.canInsertSemicolon()){let{type:e}=this.state;if(68===e)return this.resetPreviousNodeTrailingComments(r),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(r));if(A(e))return 61===this.lookaheadCharCode()?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(r)):r;if(90===e)return this.resetPreviousNodeTrailingComments(r),this.parseDo(this.startNodeAtNode(r),!0)}return e&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(r),[r],!1)):r}this.unexpected()}}parseTopicReferenceThenEqualsSign(e,t){let r=this.getPluginOption("pipelineOperator","proposal");if(r)return this.state.type=e,this.state.value=t,this.state.pos--,this.state.end--,this.state.endLoc=M(this.state.endLoc,-1),this.parseTopicReference(r);this.unexpected()}parseTopicReference(e){let t=this.startNode(),r=this.state.startLoc,n=this.state.type;return this.next(),this.finishTopicReference(t,r,e,n)}finishTopicReference(e,t,r,n){if(this.testTopicReferenceConfiguration(r,t,n)){let n="smart"===r?"PipelinePrimaryTopicReference":"TopicReference";return this.topicReferenceIsAllowedInCurrentContext()||this.raise("smart"===r?Y.PrimaryTopicNotAllowed:Y.PipeTopicUnbound,{at:t}),this.registerTopicReference(),this.finishNode(e,n)}throw this.raise(Y.PipeTopicUnconfiguredToken,{at:t,token:N(n)})}testTopicReferenceConfiguration(e,t,r){switch(e){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:N(r)}]);case"smart":return 27===r;default:throw this.raise(Y.PipeTopicRequiresHackPipes,{at:t})}}parseAsyncArrowUnaryFunction(e){this.prodParam.enter(ht(!0,this.prodParam.hasYield));let t=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(Y.LineTerminatorBeforeArrow,{at:this.state.curPosition()}),this.expect(19),this.parseArrowExpression(e,t,!0)}parseDo(e,t){this.expectPlugin("doExpressions"),t&&this.expectPlugin("asyncDoExpressions"),e.async=t,this.next();let r=this.state.labels;return this.state.labels=[],t?(this.prodParam.enter(2),e.body=this.parseBlock(),this.prodParam.exit()):e.body=this.parseBlock(),this.state.labels=r,this.finishNode(e,"DoExpression")}parseSuper(){let e=this.startNode();return this.next(),!this.match(10)||this.scope.allowDirectSuper||this.options.allowSuperOutsideMethod?!this.scope.allowSuper&&!this.options.allowSuperOutsideMethod&&this.raise(Y.UnexpectedSuper,{at:e}):this.raise(Y.SuperNotAllowed,{at:e}),!this.match(10)&&!this.match(0)&&!this.match(16)&&this.raise(Y.UnsupportedSuper,{at:e}),this.finishNode(e,"Super")}parsePrivateName(){let e=this.startNode(),t=this.startNodeAt(M(this.state.startLoc,1)),r=this.state.value;return this.next(),e.id=this.createIdentifier(t,r),this.finishNode(e,"PrivateName")}parseFunctionOrFunctionSent(){let e=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){let t=this.createIdentifier(this.startNodeAtNode(e),"function");return this.next(),this.match(102)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(e,t,"sent")}return this.parseFunction(e)}parseMetaProperty(e,t,r){e.meta=t;let n=this.state.containsEsc;return e.property=this.parseIdentifier(!0),(e.property.name!==r||n)&&this.raise(Y.UnsupportedMetaProperty,{at:e.property,target:t.name,onlyValidPropertyName:r}),this.finishNode(e,"MetaProperty")}parseImportMetaProperty(e){let t=this.createIdentifier(this.startNodeAtNode(e),"import");return this.next(),this.isContextual(100)&&(this.inModule||this.raise(Y.ImportMetaOutsideModule,{at:t}),this.sawUnambiguousESM=!0),this.parseMetaProperty(e,t,"meta")}parseLiteralAtNode(e,t,r){return this.addExtra(r,"rawValue",e),this.addExtra(r,"raw",this.input.slice(r.start,this.state.end)),r.value=e,this.next(),this.finishNode(r,t)}parseLiteral(e,t){let r=this.startNode();return this.parseLiteralAtNode(e,t,r)}parseStringLiteral(e){return this.parseLiteral(e,"StringLiteral")}parseNumericLiteral(e){return this.parseLiteral(e,"NumericLiteral")}parseBigIntLiteral(e){return this.parseLiteral(e,"BigIntLiteral")}parseDecimalLiteral(e){return this.parseLiteral(e,"DecimalLiteral")}parseRegExpLiteral(e){let t=this.parseLiteral(e.value,"RegExpLiteral");return t.pattern=e.pattern,t.flags=e.flags,t}parseBooleanLiteral(e){let t=this.startNode();return t.value=e,this.next(),this.finishNode(t,"BooleanLiteral")}parseNullLiteral(){let e=this.startNode();return this.next(),this.finishNode(e,"NullLiteral")}parseParenAndDistinguishExpression(e){let t,r=this.state.startLoc;this.next(),this.expressionScope.enter(new pt(1));let n=this.state.maybeInArrowParameters,s=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let i,a,o=this.state.startLoc,u=[],l=new ft,p=!0;for(;!this.match(11);){if(p)p=!1;else if(this.expect(12,null===l.optionalParametersLoc?null:l.optionalParametersLoc),this.match(11)){a=this.state.startLoc;break}if(this.match(21)){let e=this.state.startLoc;if(i=this.state.startLoc,u.push(this.parseParenItem(this.parseRestBinding(),e)),!this.checkCommaAfterRest(41))break}else u.push(this.parseMaybeAssignAllowIn(l,this.parseParenItem))}let c=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=n,this.state.inFSharpPipelineDirectBody=s;let h=this.startNodeAt(r);return e&&this.shouldParseArrow(u)&&(h=this.parseArrow(h))?(this.checkDestructuringPrivate(l),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(h,u,!1),h):(this.expressionScope.exit(),u.length||this.unexpected(this.state.lastTokStartLoc),a&&this.unexpected(a),i&&this.unexpected(i),this.checkExpressionErrors(l,!0),this.toReferencedListDeep(u,!0),u.length>1?(t=this.startNodeAt(o),t.expressions=u,this.finishNode(t,"SequenceExpression"),this.resetEndLocation(t,c)):t=u[0],this.wrapParenthesis(r,t))}wrapParenthesis(e,t){if(!this.options.createParenthesizedExpressions)return this.addExtra(t,"parenthesized",!0),this.addExtra(t,"parenStart",e.index),this.takeSurroundingComments(t,e.index,this.state.lastTokEndLoc.index),t;let r=this.startNodeAt(e);return r.expression=t,this.finishNode(r,"ParenthesizedExpression")}shouldParseArrow(e){return!this.canInsertSemicolon()}parseArrow(e){if(this.eat(19))return e}parseParenItem(e,t){return e}parseNewOrNewTarget(){let e=this.startNode();if(this.next(),this.match(16)){let t=this.createIdentifier(this.startNodeAtNode(e),"new");this.next();let r=this.parseMetaProperty(e,t,"target");return!this.scope.inNonArrowFunction&&!this.scope.inClass&&!this.options.allowNewTargetOutsideFunction&&this.raise(Y.UnexpectedNewTarget,{at:r}),r}return this.parseNew(e)}parseNew(e){if(this.parseNewCallee(e),this.eat(10)){let t=this.parseExprList(11);this.toReferencedList(t),e.arguments=t}else e.arguments=[];return this.finishNode(e,"NewExpression")}parseNewCallee(e){e.callee=this.parseNoCallExpr(),"Import"===e.callee.type&&this.raise(Y.ImportCallNotNewExpression,{at:e.callee})}parseTemplateElement(e){let{start:t,startLoc:r,end:n,value:s}=this.state,i=t+1,a=this.startNodeAt(M(r,1));null===s&&(e||this.raise(Y.InvalidEscapeSequenceTemplate,{at:M(this.state.firstInvalidTemplateEscapePos,1)}));let o=this.match(24),u=o?-1:-2,l=n+u;a.value={raw:this.input.slice(i,l).replace(/\r\n?/g,"\n"),cooked:null===s?null:s.slice(1,u)},a.tail=o,this.next();let p=this.finishNode(a,"TemplateElement");return this.resetEndLocation(p,M(this.state.lastTokEndLoc,u)),p}parseTemplate(e){let t=this.startNode();t.expressions=[];let r=this.parseTemplateElement(e);for(t.quasis=[r];!r.tail;)t.expressions.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),t.quasis.push(r=this.parseTemplateElement(e));return this.finishNode(t,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(e,t,r,n){r&&this.expectPlugin("recordAndTuple");let s=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let i=Object.create(null),a=!0,o=this.startNode();for(o.properties=[],this.next();!this.match(e);){if(a)a=!1;else if(this.expect(12),this.match(e)){this.addTrailingCommaExtraToNode(o);break}let s;t?s=this.parseBindingProperty():(s=this.parsePropertyDefinition(n),this.checkProto(s,r,i,n)),r&&!this.isObjectProperty(s)&&"SpreadElement"!==s.type&&this.raise(Y.InvalidRecordProperty,{at:s}),s.shorthand&&this.addExtra(s,"shorthand",!0),o.properties.push(s)}this.next(),this.state.inFSharpPipelineDirectBody=s;let u="ObjectExpression";return t?u="ObjectPattern":r&&(u="RecordExpression"),this.finishNode(o,u)}addTrailingCommaExtraToNode(e){this.addExtra(e,"trailingComma",this.state.lastTokStart),this.addExtra(e,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(e){return!e.computed&&"Identifier"===e.key.type&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(e){let t=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(Y.UnsupportedPropertyDecorator,{at:this.state.startLoc});this.match(26);)t.push(this.parseDecorator());let r,n=this.startNode(),s=!1,i=!1;if(this.match(21))return t.length&&this.unexpected(),this.parseSpread();t.length&&(n.decorators=t,t=[]),n.method=!1,e&&(r=this.state.startLoc);let a=this.eat(55);this.parsePropertyNamePrefixOperator(n);let o=this.state.containsEsc,u=this.parsePropertyName(n,e);if(!a&&!o&&this.maybeAsyncOrAccessorProp(n)){let e=u.name;"async"===e&&!this.hasPrecedingLineBreak()&&(s=!0,this.resetPreviousNodeTrailingComments(u),a=this.eat(55),this.parsePropertyName(n)),("get"===e||"set"===e)&&(i=!0,this.resetPreviousNodeTrailingComments(u),n.kind=e,this.match(55)&&(a=!0,this.raise(Y.AccessorIsGenerator,{at:this.state.curPosition(),kind:e}),this.next()),this.parsePropertyName(n))}return this.parseObjPropValue(n,r,a,s,!1,i,e)}getGetterSetterExpectedParamCount(e){return"get"===e.kind?0:1}getObjectOrClassMethodParams(e){return e.params}checkGetterSetterParams(e){var t;let r=this.getGetterSetterExpectedParamCount(e),n=this.getObjectOrClassMethodParams(e);n.length!==r&&this.raise("get"===e.kind?Y.BadGetterArity:Y.BadSetterArity,{at:e}),"set"===e.kind&&"RestElement"===(null==(t=n[n.length-1])?void 0:t.type)&&this.raise(Y.BadSetterRestParameter,{at:e})}parseObjectMethod(e,t,r,n,s){if(s){let r=this.parseMethod(e,t,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(r),r}if(r||t||this.match(10))return n&&this.unexpected(),e.kind="method",e.method=!0,this.parseMethod(e,t,r,!1,!1,"ObjectMethod")}parseObjectProperty(e,t,r,n){if(e.shorthand=!1,this.eat(14))return e.value=r?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(n),this.finishNode(e,"ObjectProperty");if(!e.computed&&"Identifier"===e.key.type){if(this.checkReservedWord(e.key.name,e.key.loc.start,!0,!1),r)e.value=this.parseMaybeDefault(t,gt(e.key));else if(this.match(29)){let r=this.state.startLoc;null!=n?null===n.shorthandAssignLoc&&(n.shorthandAssignLoc=r):this.raise(Y.InvalidCoverInitializedName,{at:r}),e.value=this.parseMaybeDefault(t,gt(e.key))}else e.value=gt(e.key);return e.shorthand=!0,this.finishNode(e,"ObjectProperty")}}parseObjPropValue(e,t,r,n,s,i,a){let o=this.parseObjectMethod(e,r,n,s,i)||this.parseObjectProperty(e,t,s,a);return o||this.unexpected(),o}parsePropertyName(e,t){if(this.eat(0))e.computed=!0,e.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let r,{type:n,value:s}=this.state;if(S(n))r=this.parseIdentifier(!0);else switch(n){case 132:r=this.parseNumericLiteral(s);break;case 131:r=this.parseStringLiteral(s);break;case 133:r=this.parseBigIntLiteral(s);break;case 134:r=this.parseDecimalLiteral(s);break;case 136:{let e=this.state.startLoc;null!=t?null===t.privateKeyLoc&&(t.privateKeyLoc=e):this.raise(Y.UnexpectedPrivateField,{at:e}),r=this.parsePrivateName();break}default:this.unexpected()}e.key=r,136!==n&&(e.computed=!1)}return e.key}initFunction(e,t){e.id=null,e.generator=!1,e.async=t}parseMethod(e,t,r,n,s,i){let a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];this.initFunction(e,r),e.generator=t,this.scope.enter(18|(a?be:0)|(s?32:0)),this.prodParam.enter(ht(r,e.generator)),this.parseFunctionParams(e,n);let o=this.parseFunctionBodyAndFinish(e,i,!0);return this.prodParam.exit(),this.scope.exit(),o}parseArrayLike(e,t,r,n){r&&this.expectPlugin("recordAndTuple");let s=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let i=this.startNode();return this.next(),i.elements=this.parseExprList(e,!r,n,i),this.state.inFSharpPipelineDirectBody=s,this.finishNode(i,r?"TupleExpression":"ArrayExpression")}parseArrowExpression(e,t,r,n){this.scope.enter(6);let s=ht(r,!1);!this.match(5)&&this.prodParam.hasIn&&(s|=8),this.prodParam.enter(s),this.initFunction(e,r);let i=this.state.maybeInArrowParameters;return t&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(e,t,n)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(e,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=i,this.finishNode(e,"ArrowFunctionExpression")}setArrowFunctionParameters(e,t,r){this.toAssignableList(t,r,!1),e.params=t}parseFunctionBodyAndFinish(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this.parseFunctionBody(e,!1,r),this.finishNode(e,t)}parseFunctionBody(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=t&&!this.match(5);if(this.expressionScope.enter(ct()),n)e.body=this.parseMaybeAssign(),this.checkParams(e,!1,t,!1);else{let n=this.state.strict,s=this.state.labels;this.state.labels=[],this.prodParam.enter(4|this.prodParam.currentFlags()),e.body=this.parseBlock(!0,!1,(s=>{let i=!this.isSimpleParamList(e.params);s&&i&&this.raise(Y.IllegalLanguageModeDirective,{at:"method"!==e.kind&&"constructor"!==e.kind||!e.key?e:e.key.loc.end});let a=!n&&this.state.strict;this.checkParams(e,!(this.state.strict||t||r||i),t,a),this.state.strict&&e.id&&this.checkIdentifier(e.id,65,a)})),this.prodParam.exit(),this.state.labels=s}this.expressionScope.exit()}isSimpleParameter(e){return"Identifier"===e.type}isSimpleParamList(e){for(let t=0,r=e.length;t<r;t++)if(!this.isSimpleParameter(e[t]))return!1;return!0}checkParams(e,t,r){let n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],s=!t&&new Set,i={type:"FormalParameters"};for(let t of e.params)this.checkLVal(t,{in:i,binding:5,checkClashes:s,strictModeChanged:n})}parseExprList(e,t,r,n){let s=[],i=!0;for(;!this.eat(e);){if(i)i=!1;else if(this.expect(12),this.match(e)){n&&this.addTrailingCommaExtraToNode(n),this.next();break}s.push(this.parseExprListItem(t,r))}return s}parseExprListItem(e,t,r){let n;if(this.match(12))e||this.raise(Y.UnexpectedToken,{at:this.state.curPosition(),unexpected:","}),n=null;else if(this.match(21)){let e=this.state.startLoc;n=this.parseParenItem(this.parseSpread(t),e)}else if(this.match(17)){this.expectPlugin("partialApplication"),r||this.raise(Y.UnexpectedArgumentPlaceholder,{at:this.state.startLoc});let e=this.startNode();this.next(),n=this.finishNode(e,"ArgumentPlaceholder")}else n=this.parseMaybeAssignAllowIn(t,this.parseParenItem);return n}parseIdentifier(e){let t=this.startNode(),r=this.parseIdentifierName(e);return this.createIdentifier(t,r)}createIdentifier(e,t){return e.name=t,e.loc.identifierName=t,this.finishNode(e,"Identifier")}parseIdentifierName(e){let t,{startLoc:r,type:n}=this.state;S(n)?t=this.state.value:this.unexpected();let s=function(e){return e<=92}(n);return e?s&&this.replaceToken(130):this.checkReservedWord(t,r,s,!1),this.next(),t}checkReservedWord(e,t,r,n){if(!(e.length>10)&&function(e){return Ee.has(e)}(e))if(r&&function(e){return de.has(e)}(e))this.raise(Y.UnexpectedKeyword,{at:t,keyword:e});else if((this.state.strict?n?xe:ge:ye)(e,this.inModule))this.raise(Y.UnexpectedReservedWord,{at:t,reservedWord:e});else if("yield"===e){if(this.prodParam.hasYield)return void this.raise(Y.YieldBindingIdentifier,{at:t})}else if("await"===e){if(this.prodParam.hasAwait)return void this.raise(Y.AwaitBindingIdentifier,{at:t});if(this.scope.inStaticBlock)return void this.raise(Y.AwaitBindingIdentifierInStaticBlock,{at:t});this.expressionScope.recordAsyncArrowParametersError({at:t})}else if("arguments"===e&&this.scope.inClassAndNotInNonArrowFunction)return void this.raise(Y.ArgumentsInClass,{at:t})}isAwaitAllowed(){return!!(this.prodParam.hasAwait||this.options.allowAwaitOutsideFunction&&!this.scope.inFunction)}parseAwait(e){let t=this.startNodeAt(e);return this.expressionScope.recordParameterInitializerError(Y.AwaitExpressionFormalParameter,{at:t}),this.eat(55)&&this.raise(Y.ObsoleteAwaitStar,{at:t}),!this.scope.inFunction&&!this.options.allowAwaitOutsideFunction&&(this.isAmbiguousAwait()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(t.argument=this.parseMaybeUnary(null,!0)),this.finishNode(t,"AwaitExpression")}isAmbiguousAwait(){if(this.hasPrecedingLineBreak())return!0;let{type:e}=this.state;return 53===e||10===e||0===e||B(e)||101===e&&!this.state.containsEsc||135===e||56===e||this.hasPlugin("v8intrinsic")&&54===e}parseYield(){let e=this.startNode();this.expressionScope.recordParameterInitializerError(Y.YieldInParameter,{at:e}),this.next();let t=!1,r=null;if(!this.hasPrecedingLineBreak())switch(t=this.eat(55),this.state.type){case 13:case 137:case 8:case 11:case 3:case 9:case 14:case 12:if(!t)break;default:r=this.parseMaybeAssign()}return e.delegate=t,e.argument=r,this.finishNode(e,"YieldExpression")}checkPipelineAtInfixOperator(e,t){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&"SequenceExpression"===e.type&&this.raise(Y.PipelineHeadSequenceExpression,{at:t})}parseSmartPipelineBodyInStyle(e,t){if(this.isSimpleReference(e)){let r=this.startNodeAt(t);return r.callee=e,this.finishNode(r,"PipelineBareFunction")}{let r=this.startNodeAt(t);return this.checkSmartPipeTopicBodyEarlyErrors(t),r.expression=e,this.finishNode(r,"PipelineTopicExpression")}}isSimpleReference(e){switch(e.type){case"MemberExpression":return!e.computed&&this.isSimpleReference(e.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(e){if(this.match(19))throw this.raise(Y.PipelineBodyNoArrow,{at:this.state.startLoc});this.topicReferenceWasUsedInCurrentContext()||this.raise(Y.PipelineTopicUnused,{at:e})}withTopicBindingContext(e){let t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}withSmartMixTopicForbiddingContext(e){if(!this.hasPlugin(["pipelineOperator",{proposal:"smart"}]))return e();{let t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}}withSoloAwaitPermittingContext(e){let t=this.state.soloAwait;this.state.soloAwait=!0;try{return e()}finally{this.state.soloAwait=t}}allowInAnd(e){let t=this.prodParam.currentFlags();if(8&~t){this.prodParam.enter(8|t);try{return e()}finally{this.prodParam.exit()}}return e()}disallowInAnd(e){let t=this.prodParam.currentFlags();if(8&t){this.prodParam.enter(-9&t);try{return e()}finally{this.prodParam.exit()}}return e()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return null!=this.state.topicContext.maxTopicIndex&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(e){let t=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let r=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let n=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),t,e);return this.state.inFSharpPipelineDirectBody=r,n}parseModuleExpression(){this.expectPlugin("moduleBlocks");let e=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);let t=this.startNodeAt(this.state.endLoc);this.next();let r=this.initializeScopes(!0);this.enterInitialScopes();try{e.body=this.parseProgram(t,8,"module")}finally{r()}return this.finishNode(e,"ModuleExpression")}parsePropertyNamePrefixOperator(e){}},Zt={kind:"loop"},Yt={kind:"switch"},Qt=/[\uD800-\uDFFF]/u,er=/in(?:stanceof)?/y;var tr=class extends Kt{parseTopLevel(e,t){return e.program=this.parseProgram(t),e.comments=this.state.comments,this.options.tokens&&(e.tokens=function(e,t){for(let r=0;r<e.length;r++){let n=e[r],{type:s}=n;if("number"==typeof s){if(136===s){let{loc:t,start:s,value:i,end:a}=n,o=s+1,u=M(t.start,1);e.splice(r,1,new ot({type:_(27),value:"#",start:s,end:o,startLoc:t.start,endLoc:u}),new ot({type:_(130),value:i,start:o,end:a,startLoc:u,endLoc:t.end})),r++;continue}if(B(s)){let i,a,o,u,l,{loc:p,start:c,value:h,end:d}=n,f=c+1,m=M(p.start,1);i=96===t.charCodeAt(c)?new ot({type:_(22),value:"`",start:c,end:f,startLoc:p.start,endLoc:m}):new ot({type:_(8),value:"}",start:c,end:f,startLoc:p.start,endLoc:m}),24===s?(o=d-1,u=M(p.end,-1),a=null===h?null:h.slice(1,-1),l=new ot({type:_(22),value:"`",start:o,end:d,startLoc:u,endLoc:p.end})):(o=d-2,u=M(p.end,-2),a=null===h?null:h.slice(1,-2),l=new ot({type:_(23),value:"${",start:o,end:d,startLoc:u,endLoc:p.end})),e.splice(r,1,i,new ot({type:_(20),value:a,start:f,end:o,startLoc:m,endLoc:u}),l),r+=2;continue}n.type=_(s)}}return e}(this.tokens,this.input)),this.finishNode(e,"File")}parseProgram(e){let t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:137,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.options.sourceType;if(e.sourceType=n,e.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(e,!0,!0,r),this.inModule&&!this.options.allowUndeclaredExports&&this.scope.undefinedExports.size>0)for(let[e,t]of Array.from(this.scope.undefinedExports))this.raise(Y.ModuleExportUndefined,{at:t,localName:e});return t=137===r?this.finishNode(e,"Program"):this.finishNodeAt(e,"Program",M(this.state.startLoc,-1)),t}stmtToDirective(e){let t=e;t.type="Directive",t.value=t.expression,delete t.expression;let r=t.value,n=r.value,s=this.input.slice(r.start,r.end),i=r.value=s.slice(1,-1);return this.addExtra(r,"raw",s),this.addExtra(r,"rawValue",i),this.addExtra(r,"expressionValue",n),r.type="DirectiveLiteral",t}parseInterpreterDirective(){if(!this.match(28))return null;let e=this.startNode();return e.value=this.state.value,this.next(),this.finishNode(e,"InterpreterDirective")}isLet(){return!!this.isContextual(99)&&this.hasFollowingBindingAtom()}chStartsBindingIdentifier(e,t){if(le(e)){if(er.lastIndex=t,er.test(this.input)){let e=this.codePointAtPos(er.lastIndex);if(!pe(e)&&92!==e)return!1}return!0}return 92===e}chStartsBindingPattern(e){return 91===e||123===e}hasFollowingBindingAtom(){let e=this.nextTokenStart(),t=this.codePointAtPos(e);return this.chStartsBindingPattern(t)||this.chStartsBindingIdentifier(t,e)}hasFollowingBindingIdentifier(){let e=this.nextTokenStart(),t=this.codePointAtPos(e);return this.chStartsBindingIdentifier(t,e)}startsUsingForOf(){let e=this.lookahead();return!(101===e.type&&!e.containsEsc||(this.expectPlugin("explicitResourceManagement"),0))}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=0;return this.options.annexB&&!this.state.strict&&(t|=4,e&&(t|=8)),this.parseStatementLike(t)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(e){let t=null;return this.match(26)&&(t=this.parseDecorators(!0)),this.parseStatementContent(e,t)}parseStatementContent(e,t){let r=this.state.type,n=this.startNode(),s=!!(2&e),i=!!(4&e),a=1&e;switch(r){case 60:return this.parseBreakContinueStatement(n,!0);case 63:return this.parseBreakContinueStatement(n,!1);case 64:return this.parseDebuggerStatement(n);case 90:return this.parseDoWhileStatement(n);case 91:return this.parseForStatement(n);case 68:if(46===this.lookaheadCharCode())break;return i||this.raise(this.state.strict?Y.StrictFunction:this.options.annexB?Y.SloppyFunctionAnnexB:Y.SloppyFunction,{at:this.state.startLoc}),this.parseFunctionStatement(n,!1,!s&&i);case 80:return s||this.unexpected(),this.parseClass(this.maybeTakeDecorators(t,n),!0);case 69:return this.parseIfStatement(n);case 70:return this.parseReturnStatement(n);case 71:return this.parseSwitchStatement(n);case 72:return this.parseThrowStatement(n);case 73:return this.parseTryStatement(n);case 105:if(this.hasFollowingLineBreak()||this.state.containsEsc||!this.hasFollowingBindingIdentifier())break;return this.expectPlugin("explicitResourceManagement"),!this.scope.inModule&&this.scope.inTopLevel?this.raise(Y.UnexpectedUsingDeclaration,{at:this.state.startLoc}):s||this.raise(Y.UnexpectedLexicalDeclaration,{at:this.state.startLoc}),this.parseVarStatement(n,"using");case 99:{if(this.state.containsEsc)break;let e=this.nextTokenStart(),t=this.codePointAtPos(e);if(91!==t&&(!s&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(t,e)&&123!==t))break}case 75:s||this.raise(Y.UnexpectedLexicalDeclaration,{at:this.state.startLoc});case 74:{let e=this.state.value;return this.parseVarStatement(n,e)}case 92:return this.parseWhileStatement(n);case 76:return this.parseWithStatement(n);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(n);case 83:{let e=this.lookaheadCharCode();if(40===e||46===e)break}case 82:{let e;return!this.options.allowImportExportEverywhere&&!a&&this.raise(Y.UnexpectedImportExport,{at:this.state.startLoc}),this.next(),83===r?(e=this.parseImport(n),"ImportDeclaration"===e.type&&(!e.importKind||"value"===e.importKind)&&(this.sawUnambiguousESM=!0)):(e=this.parseExport(n,t),("ExportNamedDeclaration"===e.type&&(!e.exportKind||"value"===e.exportKind)||"ExportAllDeclaration"===e.type&&(!e.exportKind||"value"===e.exportKind)||"ExportDefaultDeclaration"===e.type)&&(this.sawUnambiguousESM=!0)),this.assertModuleNodeAllowed(e),e}default:if(this.isAsyncFunction())return s||this.raise(Y.AsyncFunctionInSingleStatementContext,{at:this.state.startLoc}),this.next(),this.parseFunctionStatement(n,!0,!s&&i)}let o=this.state.value,u=this.parseExpression();return A(r)&&"Identifier"===u.type&&this.eat(14)?this.parseLabeledStatement(n,o,u,e):this.parseExpressionStatement(n,u,t)}assertModuleNodeAllowed(e){!this.options.allowImportExportEverywhere&&!this.inModule&&this.raise(Y.ImportOutsideModule,{at:e})}decoratorsEnabledBeforeExport(){return!!this.hasPlugin("decorators-legacy")||this.hasPlugin("decorators")&&!1!==this.getPluginOption("decorators","decoratorsBeforeExport")}maybeTakeDecorators(e,t,r){return e&&(t.decorators&&t.decorators.length>0?("boolean"!=typeof this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(Y.DecoratorsBeforeAfterExport,{at:t.decorators[0]}),t.decorators.unshift(...e)):t.decorators=e,this.resetStartLocationFromNode(t,e[0]),r&&this.resetStartLocationFromNode(r,t)),t}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(e){let t=[];do{t.push(this.parseDecorator())}while(this.match(26));if(this.match(82))e||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(Y.DecoratorExportClass,{at:this.state.startLoc});else if(!this.canHaveLeadingDecorator())throw this.raise(Y.UnexpectedLeadingDecorator,{at:this.state.startLoc});return t}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);let e=this.startNode();if(this.next(),this.hasPlugin("decorators")){let t,r=this.state.startLoc;if(this.match(10)){let r=this.state.startLoc;this.next(),t=this.parseExpression(),this.expect(11),t=this.wrapParenthesis(r,t);let n=this.state.startLoc;e.expression=this.parseMaybeDecoratorArguments(t),!1===this.getPluginOption("decorators","allowCallParenthesized")&&e.expression!==t&&this.raise(Y.DecoratorArgumentsOutsideParentheses,{at:n})}else{for(t=this.parseIdentifier(!1);this.eat(16);){let e=this.startNodeAt(r);e.object=t,this.match(136)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),e.property=this.parsePrivateName()):e.property=this.parseIdentifier(!0),e.computed=!1,t=this.finishNode(e,"MemberExpression")}e.expression=this.parseMaybeDecoratorArguments(t)}}else e.expression=this.parseExprSubscripts();return this.finishNode(e,"Decorator")}parseMaybeDecoratorArguments(e){if(this.eat(10)){let t=this.startNodeAtNode(e);return t.callee=e,t.arguments=this.parseCallExpressionArguments(11,!1),this.toReferencedList(t.arguments),this.finishNode(t,"CallExpression")}return e}parseBreakContinueStatement(e,t){return this.next(),this.isLineTerminator()?e.label=null:(e.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(e,t),this.finishNode(e,t?"BreakStatement":"ContinueStatement")}verifyBreakContinue(e,t){let r;for(r=0;r<this.state.labels.length;++r){let n=this.state.labels[r];if((null==e.label||n.name===e.label.name)&&(null!=n.kind&&(t||"loop"===n.kind)||e.label&&t))break}if(r===this.state.labels.length){let r=t?"BreakStatement":"ContinueStatement";this.raise(Y.IllegalBreakContinue,{at:e,type:r})}}parseDebuggerStatement(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);let e=this.parseExpression();return this.expect(11),e}parseDoWhileStatement(e){return this.next(),this.state.labels.push(Zt),e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.state.labels.pop(),this.expect(92),e.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(e,"DoWhileStatement")}parseForStatement(e){this.next(),this.state.labels.push(Zt);let t=null;if(this.isAwaitAllowed()&&this.eatContextual(96)&&(t=this.state.lastTokStartLoc),this.scope.enter(0),this.expect(10),this.match(13))return null!==t&&this.unexpected(t),this.parseFor(e,null);let r=this.isContextual(99),n=this.isContextual(105)&&!this.hasFollowingLineBreak(),s=r&&this.hasFollowingBindingAtom()||n&&this.hasFollowingBindingIdentifier()&&this.startsUsingForOf();if(this.match(74)||this.match(75)||s){let r=this.startNode(),s=this.state.value;this.next(),this.parseVar(r,!0,s);let i=this.finishNode(r,"VariableDeclaration"),a=this.match(58);return a&&n&&this.raise(Y.ForInUsing,{at:i}),(a||this.isContextual(101))&&1===i.declarations.length?this.parseForIn(e,i,t):(null!==t&&this.unexpected(t),this.parseFor(e,i))}let i=this.isContextual(95),a=new ft,o=this.parseExpression(!0,a),u=this.isContextual(101);if(u&&(r&&this.raise(Y.ForOfLet,{at:o}),null===t&&i&&"Identifier"===o.type&&this.raise(Y.ForOfAsync,{at:o})),u||this.match(58)){this.checkDestructuringPrivate(a),this.toAssignable(o,!0);let r=u?"ForOfStatement":"ForInStatement";return this.checkLVal(o,{in:{type:r}}),this.parseForIn(e,o,t)}return this.checkExpressionErrors(a,!0),null!==t&&this.unexpected(t),this.parseFor(e,o)}parseFunctionStatement(e,t,r){return this.next(),this.parseFunction(e,1|(r?2:0)|(t?8:0))}parseIfStatement(e){return this.next(),e.test=this.parseHeaderExpression(),e.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),e.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(e,"IfStatement")}parseReturnStatement(e){return!this.prodParam.hasReturn&&!this.options.allowReturnOutsideFunction&&this.raise(Y.IllegalReturn,{at:this.state.startLoc}),this.next(),this.isLineTerminator()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")}parseSwitchStatement(e){this.next(),e.discriminant=this.parseHeaderExpression();let t,r=e.cases=[];this.expect(5),this.state.labels.push(Yt),this.scope.enter(0);for(let e;!this.match(8);)if(this.match(61)||this.match(65)){let n=this.match(61);t&&this.finishNode(t,"SwitchCase"),r.push(t=this.startNode()),t.consequent=[],this.next(),n?t.test=this.parseExpression():(e&&this.raise(Y.MultipleDefaultsInSwitch,{at:this.state.lastTokStartLoc}),e=!0,t.test=null),this.expect(14)}else t?t.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(e,"SwitchStatement")}parseThrowStatement(e){return this.next(),this.hasPrecedingLineBreak()&&this.raise(Y.NewlineAfterThrow,{at:this.state.lastTokEndLoc}),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")}parseCatchClauseParam(){let e=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&"Identifier"===e.type?8:0),this.checkLVal(e,{in:{type:"CatchClause"},binding:9}),e}parseTryStatement(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.match(62)){let t=this.startNode();this.next(),this.match(10)?(this.expect(10),t.param=this.parseCatchClauseParam(),this.expect(11)):(t.param=null,this.scope.enter(0)),t.body=this.withSmartMixTopicForbiddingContext((()=>this.parseBlock(!1,!1))),this.scope.exit(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(67)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(Y.NoCatchOrFinally,{at:e}),this.finishNode(e,"TryStatement")}parseVarStatement(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this.next(),this.parseVar(e,!1,t,r),this.semicolon(),this.finishNode(e,"VariableDeclaration")}parseWhileStatement(e){return this.next(),e.test=this.parseHeaderExpression(),this.state.labels.push(Zt),e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.state.labels.pop(),this.finishNode(e,"WhileStatement")}parseWithStatement(e){return this.state.strict&&this.raise(Y.StrictWith,{at:this.state.startLoc}),this.next(),e.object=this.parseHeaderExpression(),e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.finishNode(e,"WithStatement")}parseEmptyStatement(e){return this.next(),this.finishNode(e,"EmptyStatement")}parseLabeledStatement(e,t,r,n){for(let e of this.state.labels)e.name===t&&this.raise(Y.LabelRedeclaration,{at:r,labelName:t});let s=function(e){return e>=90&&e<=92}(this.state.type)?"loop":this.match(71)?"switch":null;for(let t=this.state.labels.length-1;t>=0;t--){let r=this.state.labels[t];if(r.statementStart!==e.start)break;r.statementStart=this.state.start,r.kind=s}return this.state.labels.push({name:t,kind:s,statementStart:this.state.start}),e.body=8&n?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),e.label=r,this.finishNode(e,"LabeledStatement")}parseExpressionStatement(e,t,r){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")}parseBlock(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2?arguments[2]:void 0,n=this.startNode();return e&&this.state.strictErrors.clear(),this.expect(5),t&&this.scope.enter(0),this.parseBlockBody(n,e,!1,8,r),t&&this.scope.exit(),this.finishNode(n,"BlockStatement")}isValidDirective(e){return"ExpressionStatement"===e.type&&"StringLiteral"===e.expression.type&&!e.expression.extra.parenthesized}parseBlockBody(e,t,r,n,s){let i=e.body=[],a=e.directives=[];this.parseBlockOrModuleBlockBody(i,t?a:void 0,r,n,s)}parseBlockOrModuleBlockBody(e,t,r,n,s){let i=this.state.strict,a=!1,o=!1;for(;!this.match(n);){let n=r?this.parseModuleItem():this.parseStatementListItem();if(t&&!o){if(this.isValidDirective(n)){let e=this.stmtToDirective(n);t.push(e),!a&&"use strict"===e.value.value&&(a=!0,this.setStrict(!0));continue}o=!0,this.state.strictErrors.clear()}e.push(n)}s&&s.call(this,a),i||this.setStrict(!1),this.next()}parseFor(e,t){return e.init=t,this.semicolon(!1),e.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),e.update=this.match(11)?null:this.parseExpression(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,"ForStatement")}parseForIn(e,t,r){let n=this.match(58);return this.next(),n?null!==r&&this.unexpected(r):e.await=null!==r,"VariableDeclaration"===t.type&&null!=t.declarations[0].init&&(!n||!this.options.annexB||this.state.strict||"var"!==t.kind||"Identifier"!==t.declarations[0].id.type)&&this.raise(Y.ForInOfLoopInitializer,{at:t,type:n?"ForInStatement":"ForOfStatement"}),"AssignmentPattern"===t.type&&this.raise(Y.InvalidLhs,{at:t,ancestor:{type:"ForStatement"}}),e.left=t,e.right=n?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,n?"ForInStatement":"ForOfStatement")}parseVar(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=e.declarations=[];for(e.kind=r;;){let e=this.startNode();if(this.parseVarId(e,r),e.init=this.eat(29)?t?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,null===e.init&&!n&&("Identifier"===e.id.type||t&&(this.match(58)||this.isContextual(101))?"const"===r&&!(this.match(58)||this.isContextual(101))&&this.raise(Y.DeclarationMissingInitializer,{at:this.state.lastTokEndLoc,kind:"const"}):this.raise(Y.DeclarationMissingInitializer,{at:this.state.lastTokEndLoc,kind:"destructuring"})),s.push(this.finishNode(e,"VariableDeclarator")),!this.eat(12))break}return e}parseVarId(e,t){"using"===t&&!this.inModule&&this.match(96)&&this.raise(Y.AwaitInUsingBinding,{at:this.state.startLoc});let r=this.parseBindingAtom();this.checkLVal(r,{in:{type:"VariableDeclarator"},binding:"var"===t?5:ke}),e.id=r}parseAsyncFunctionExpression(e){return this.parseFunction(e,8)}parseFunction(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=2&t,n=!!(1&t),s=n&&!(4&t),i=!!(8&t);this.initFunction(e,i),this.match(55)&&(r&&this.raise(Y.GeneratorInSingleStatementContext,{at:this.state.startLoc}),this.next(),e.generator=!0),n&&(e.id=this.parseFunctionId(s));let a=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(2),this.prodParam.enter(ht(i,e.generator)),n||(e.id=this.parseFunctionId()),this.parseFunctionParams(e,!1),this.withSmartMixTopicForbiddingContext((()=>{this.parseFunctionBodyAndFinish(e,n?"FunctionDeclaration":"FunctionExpression")})),this.prodParam.exit(),this.scope.exit(),n&&!r&&this.registerFunctionStatementId(e),this.state.maybeInArrowParameters=a,e}parseFunctionId(e){return e||A(this.state.type)?this.parseIdentifier():null}parseFunctionParams(e,t){this.expect(10),this.expressionScope.enter(new lt(3)),e.params=this.parseBindingList(11,41,2|(t?4:0)),this.expressionScope.exit()}registerFunctionStatementId(e){e.id&&this.scope.declareName(e.id.name,!this.options.annexB||this.state.strict||e.generator||e.async?this.scope.treatFunctionsAsVar?5:ke:17,e.id.loc.start)}parseClass(e,t,r){this.next();let n=this.state.strict;return this.state.strict=!0,this.parseClassId(e,t,r),this.parseClassSuper(e),e.body=this.parseClassBody(!!e.superClass,n),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}isNonstaticConstructor(e){return!(e.computed||e.static||"constructor"!==e.key.name&&"constructor"!==e.key.value)}parseClassBody(e,t){this.classScope.enter();let r={hadConstructor:!1,hadSuperClass:e},n=[],s=this.startNode();if(s.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext((()=>{for(;!this.match(8);){if(this.eat(13)){if(n.length>0)throw this.raise(Y.DecoratorSemicolon,{at:this.state.lastTokEndLoc});continue}if(this.match(26)){n.push(this.parseDecorator());continue}let e=this.startNode();n.length&&(e.decorators=n,this.resetStartLocationFromNode(e,n[0]),n=[]),this.parseClassMember(s,e,r),"constructor"===e.kind&&e.decorators&&e.decorators.length>0&&this.raise(Y.DecoratorConstructor,{at:e})}})),this.state.strict=t,this.next(),n.length)throw this.raise(Y.TrailingDecorator,{at:this.state.startLoc});return this.classScope.exit(),this.finishNode(s,"ClassBody")}parseClassMemberFromModifier(e,t){let r=this.parseIdentifier(!0);if(this.isClassMethod()){let n=t;return n.kind="method",n.computed=!1,n.key=r,n.static=!1,this.pushClassMethod(e,n,!1,!1,!1,!1),!0}if(this.isClassProperty()){let n=t;return n.computed=!1,n.key=r,n.static=!1,e.body.push(this.parseClassProperty(n)),!0}return this.resetPreviousNodeTrailingComments(r),!1}parseClassMember(e,t,r){let n=this.isContextual(104);if(n){if(this.parseClassMemberFromModifier(e,t))return;if(this.eat(5))return void this.parseClassStaticBlock(e,t)}this.parseClassMemberWithIsStatic(e,t,r,n)}parseClassMemberWithIsStatic(e,t,r,n){let s=t,i=t,a=t,o=t,u=t,l=s,p=s;if(t.static=n,this.parsePropertyNamePrefixOperator(t),this.eat(55)){l.kind="method";let t=this.match(136);return this.parseClassElementName(l),t?void this.pushClassPrivateMethod(e,i,!0,!1):(this.isNonstaticConstructor(s)&&this.raise(Y.ConstructorIsGenerator,{at:s.key}),void this.pushClassMethod(e,s,!0,!1,!1,!1))}let c=A(this.state.type)&&!this.state.containsEsc,h=this.match(136),d=this.parseClassElementName(t),f=this.state.startLoc;if(this.parsePostMemberNameModifiers(p),this.isClassMethod()){if(l.kind="method",h)return void this.pushClassPrivateMethod(e,i,!1,!1);let n=this.isNonstaticConstructor(s),a=!1;n&&(s.kind="constructor",r.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(Y.DuplicateConstructor,{at:d}),n&&this.hasPlugin("typescript")&&t.override&&this.raise(Y.OverrideOnConstructor,{at:d}),r.hadConstructor=!0,a=r.hadSuperClass),this.pushClassMethod(e,s,!1,!1,n,a)}else if(this.isClassProperty())h?this.pushClassPrivateProperty(e,o):this.pushClassProperty(e,a);else if(c&&"async"===d.name&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(d);let t=this.eat(55);p.optional&&this.unexpected(f),l.kind="method";let r=this.match(136);this.parseClassElementName(l),this.parsePostMemberNameModifiers(p),r?this.pushClassPrivateMethod(e,i,t,!0):(this.isNonstaticConstructor(s)&&this.raise(Y.ConstructorIsAsync,{at:s.key}),this.pushClassMethod(e,s,t,!0,!1,!1))}else if(!c||"get"!==d.name&&"set"!==d.name||this.match(55)&&this.isLineTerminator())if(c&&"accessor"===d.name&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(d);let t=this.match(136);this.parseClassElementName(a),this.pushClassAccessorProperty(e,u,t)}else this.isLineTerminator()?h?this.pushClassPrivateProperty(e,o):this.pushClassProperty(e,a):this.unexpected();else{this.resetPreviousNodeTrailingComments(d),l.kind=d.name;let t=this.match(136);this.parseClassElementName(s),t?this.pushClassPrivateMethod(e,i,!1,!1):(this.isNonstaticConstructor(s)&&this.raise(Y.ConstructorIsAccessor,{at:s.key}),this.pushClassMethod(e,s,!1,!1,!1,!1)),this.checkGetterSetterParams(s)}}parseClassElementName(e){let{type:t,value:r}=this.state;if((130===t||131===t)&&e.static&&"prototype"===r&&this.raise(Y.StaticPrototype,{at:this.state.startLoc}),136===t){"constructor"===r&&this.raise(Y.ConstructorClassPrivateField,{at:this.state.startLoc});let t=this.parsePrivateName();return e.key=t,t}return this.parsePropertyName(e)}parseClassStaticBlock(e,t){var r;this.scope.enter(208);let n=this.state.labels;this.state.labels=[],this.prodParam.enter(0);let s=t.body=[];this.parseBlockOrModuleBlockBody(s,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=n,e.body.push(this.finishNode(t,"StaticBlock")),null!=(r=t.decorators)&&r.length&&this.raise(Y.DecoratorStaticBlock,{at:t})}pushClassProperty(e,t){!t.computed&&("constructor"===t.key.name||"constructor"===t.key.value)&&this.raise(Y.ConstructorClassField,{at:t.key}),e.body.push(this.parseClassProperty(t))}pushClassPrivateProperty(e,t){let r=this.parseClassPrivateProperty(t);e.body.push(r),this.classScope.declarePrivateName(this.getPrivateNameSV(r.key),0,r.key.loc.start)}pushClassAccessorProperty(e,t,r){if(!r&&!t.computed){let e=t.key;("constructor"===e.name||"constructor"===e.value)&&this.raise(Y.ConstructorClassField,{at:e})}let n=this.parseClassAccessorProperty(t);e.body.push(n),r&&this.classScope.declarePrivateName(this.getPrivateNameSV(n.key),0,n.key.loc.start)}pushClassMethod(e,t,r,n,s,i){e.body.push(this.parseMethod(t,r,n,s,i,"ClassMethod",!0))}pushClassPrivateMethod(e,t,r,n){let s=this.parseMethod(t,r,n,!1,!1,"ClassPrivateMethod",!0);e.body.push(s);let i="get"===s.kind?s.static?6:2:"set"===s.kind?s.static?5:1:0;this.declareClassPrivateMethodInScope(s,i)}declareClassPrivateMethodInScope(e,t){this.classScope.declarePrivateName(this.getPrivateNameSV(e.key),t,e.key.loc.start)}parsePostMemberNameModifiers(e){}parseClassPrivateProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassPrivateProperty")}parseClassProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassProperty")}parseClassAccessorProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassAccessorProperty")}parseInitializer(e){this.scope.enter(80),this.expressionScope.enter(ct()),this.prodParam.enter(0),e.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:8331;if(A(this.state.type))e.id=this.parseIdentifier(),t&&this.declareNameFromIdentifier(e.id,n);else{if(!r&&t)throw this.raise(Y.MissingClassName,{at:this.state.startLoc});e.id=null}}parseClassSuper(e){e.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(e,t){let r=this.maybeParseExportDefaultSpecifier(e),n=!r||this.eat(12),s=n&&this.eatExportStar(e),i=s&&this.maybeParseExportNamespaceSpecifier(e),a=n&&(!i||this.eat(12)),o=r||s;if(s&&!i){if(r&&this.unexpected(),t)throw this.raise(Y.UnsupportedDecoratorExport,{at:e});return this.parseExportFrom(e,!0),this.finishNode(e,"ExportAllDeclaration")}let u,l=this.maybeParseExportNamedSpecifiers(e);if(r&&n&&!s&&!l&&this.unexpected(null,5),i&&a&&this.unexpected(null,97),o||l){if(u=!1,t)throw this.raise(Y.UnsupportedDecoratorExport,{at:e});this.parseExportFrom(e,o)}else u=this.maybeParseExportDeclaration(e);if(o||l||u){var p;let r=e;if(this.checkExport(r,!0,!1,!!r.source),"ClassDeclaration"===(null==(p=r.declaration)?void 0:p.type))this.maybeTakeDecorators(t,r.declaration,r);else if(t)throw this.raise(Y.UnsupportedDecoratorExport,{at:e});return this.finishNode(r,"ExportNamedDeclaration")}if(this.eat(65)){let r=e,n=this.parseExportDefaultExpression();if(r.declaration=n,"ClassDeclaration"===n.type)this.maybeTakeDecorators(t,n,r);else if(t)throw this.raise(Y.UnsupportedDecoratorExport,{at:e});return this.checkExport(r,!0,!0),this.finishNode(r,"ExportDefaultDeclaration")}this.unexpected(null,5)}eatExportStar(e){return this.eat(55)}maybeParseExportDefaultSpecifier(e){if(this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom");let t=this.startNode();return t.exported=this.parseIdentifier(!0),e.specifiers=[this.finishNode(t,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(e){if(this.isContextual(93)){e.specifiers||(e.specifiers=[]);let t=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),t.exported=this.parseModuleExportName(),e.specifiers.push(this.finishNode(t,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(e){if(this.match(5)){e.specifiers||(e.specifiers=[]);let t="type"===e.exportKind;return e.specifiers.push(...this.parseExportSpecifiers(t)),e.source=null,e.declaration=null,this.hasPlugin("importAssertions")&&(e.assertions=[]),!0}return!1}maybeParseExportDeclaration(e){return!!this.shouldParseExportDeclaration()&&(e.specifiers=[],e.source=null,this.hasPlugin("importAssertions")&&(e.assertions=[]),e.declaration=this.parseExportDeclaration(e),!0)}isAsyncFunction(){if(!this.isContextual(95))return!1;let e=this.nextTokenStart();return!Ue.test(this.input.slice(this.state.pos,e))&&this.isUnparsedContextual(e,"function")}parseExportDefaultExpression(){let e=this.startNode();if(this.match(68))return this.next(),this.parseFunction(e,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(e,13);if(this.match(80))return this.parseClass(e,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&!0===this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(Y.DecoratorBeforeExport,{at:this.state.startLoc}),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet())throw this.raise(Y.UnsupportedDefaultExport,{at:this.state.startLoc});let t=this.parseMaybeAssignAllowIn();return this.semicolon(),t}parseExportDeclaration(e){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:e}=this.state;if(A(e)){if(95===e&&!this.state.containsEsc||99===e)return!1;if((128===e||127===e)&&!this.state.containsEsc){let{type:e}=this.lookahead();if(A(e)&&97!==e||5===e)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;let t=this.nextTokenStart(),r=this.isUnparsedContextual(t,"from");if(44===this.input.charCodeAt(t)||A(this.state.type)&&r)return!0;if(this.match(65)&&r){let e=this.input.charCodeAt(this.nextTokenStartSince(t+4));return 34===e||39===e}return!1}parseExportFrom(e,t){if(this.eatContextual(97)){e.source=this.parseImportSource(),this.checkExport(e);let t=this.maybeParseImportAssertions();t&&(e.assertions=t,this.checkJSONModuleImport(e))}else t&&this.unexpected();this.semicolon()}shouldParseExportDeclaration(){let{type:e}=this.state;return 26===e&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(!0===this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(Y.DecoratorBeforeExport,{at:this.state.startLoc}),!0):74===e||75===e||68===e||80===e||this.isLet()||this.isAsyncFunction()}checkExport(e,t,r,n){if(t)if(r){if(this.checkDuplicateExports(e,"default"),this.hasPlugin("exportDefaultFrom")){var s;let t=e.declaration;"Identifier"===t.type&&"from"===t.name&&t.end-t.start==4&&(null==(s=t.extra)||!s.parenthesized)&&this.raise(Y.ExportDefaultFromAsIdentifier,{at:t})}}else if(e.specifiers&&e.specifiers.length)for(let t of e.specifiers){let{exported:e}=t,r="Identifier"===e.type?e.name:e.value;if(this.checkDuplicateExports(t,r),!n&&t.local){let{local:e}=t;"Identifier"!==e.type?this.raise(Y.ExportBindingIsString,{at:t,localName:e.value,exportName:r}):(this.checkReservedWord(e.name,e.loc.start,!0,!1),this.scope.checkLocalExport(e))}}else if(e.declaration)if("FunctionDeclaration"===e.declaration.type||"ClassDeclaration"===e.declaration.type){let t=e.declaration.id;if(!t)throw new Error("Assertion failure");this.checkDuplicateExports(e,t.name)}else if("VariableDeclaration"===e.declaration.type)for(let t of e.declaration.declarations)this.checkDeclaration(t.id)}checkDeclaration(e){if("Identifier"===e.type)this.checkDuplicateExports(e,e.name);else if("ObjectPattern"===e.type)for(let t of e.properties)this.checkDeclaration(t);else if("ArrayPattern"===e.type)for(let t of e.elements)t&&this.checkDeclaration(t);else"ObjectProperty"===e.type?this.checkDeclaration(e.value):"RestElement"===e.type?this.checkDeclaration(e.argument):"AssignmentPattern"===e.type&&this.checkDeclaration(e.left)}checkDuplicateExports(e,t){this.exportedIdentifiers.has(t)&&("default"===t?this.raise(Y.DuplicateDefaultExport,{at:e}):this.raise(Y.DuplicateExport,{at:e,exportName:t})),this.exportedIdentifiers.add(t)}parseExportSpecifiers(e){let t=[],r=!0;for(this.expect(5);!this.eat(8);){if(r)r=!1;else if(this.expect(12),this.eat(8))break;let n=this.isContextual(128),s=this.match(131),i=this.startNode();i.local=this.parseModuleExportName(),t.push(this.parseExportSpecifier(i,s,e,n))}return t}parseExportSpecifier(e,t,r,n){return this.eatContextual(93)?e.exported=this.parseModuleExportName():t?e.exported=Dt(e.local):e.exported||(e.exported=gt(e.local)),this.finishNode(e,"ExportSpecifier")}parseModuleExportName(){if(this.match(131)){let e=this.parseStringLiteral(this.state.value),t=e.value.match(Qt);return t&&this.raise(Y.ModuleExportNameHasLoneSurrogate,{at:e,surrogateCharCode:t[0].charCodeAt(0)}),e}return this.parseIdentifier(!0)}isJSONModuleImport(e){return null!=e.assertions&&e.assertions.some((e=>{let{key:t,value:r}=e;return"json"===r.value&&("Identifier"===t.type?"type"===t.name:"type"===t.value)}))}checkImportReflection(e){var t;e.module&&((1!==e.specifiers.length||"ImportDefaultSpecifier"!==e.specifiers[0].type)&&this.raise(Y.ImportReflectionNotBinding,{at:e.specifiers[0].loc.start}),(null==(t=e.assertions)?void 0:t.length)>0&&this.raise(Y.ImportReflectionHasAssertion,{at:e.specifiers[0].loc.start}))}checkJSONModuleImport(e){if(this.isJSONModuleImport(e)&&"ExportAllDeclaration"!==e.type){let{specifiers:t}=e;if(null!=t){let e=t.find((e=>{let t;if("ExportSpecifier"===e.type?t=e.local:"ImportSpecifier"===e.type&&(t=e.imported),void 0!==t)return"Identifier"===t.type?"default"!==t.name:"default"!==t.value}));void 0!==e&&this.raise(Y.ImportJSONBindingNotDefault,{at:e.loc.start})}}}parseMaybeImportReflection(e){let t=!1;if(this.isContextual(125)){let e=this.lookahead(),r=e.type;A(r)?(97!==r||102===this.input.charCodeAt(this.nextTokenStartSince(e.end)))&&(t=!0):12!==r&&(t=!0)}t?(this.expectPlugin("importReflection"),this.next(),e.module=!0):this.hasPlugin("importReflection")&&(e.module=!1)}parseImport(e){if(e.specifiers=[],!this.match(131)){this.parseMaybeImportReflection(e);let t=!this.maybeParseDefaultImportSpecifier(e)||this.eat(12),r=t&&this.maybeParseStarImportSpecifier(e);t&&!r&&this.parseNamedImportSpecifiers(e),this.expectContextual(97)}e.source=this.parseImportSource();let t=this.maybeParseImportAssertions();if(t)e.assertions=t;else{let t=this.maybeParseModuleAttributes();t&&(e.attributes=t)}return this.checkImportReflection(e),this.checkJSONModuleImport(e),this.semicolon(),this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.match(131)||this.unexpected(),this.parseExprAtom()}shouldParseDefaultImport(e){return A(this.state.type)}parseImportSpecifierLocal(e,t,r){t.local=this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,r))}finishImportSpecifier(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ke;return this.checkLVal(e.local,{in:{type:t},binding:r}),this.finishNode(e,t)}parseAssertEntries(){let e=[],t=new Set;do{if(this.match(8))break;let r=this.startNode(),n=this.state.value;if(t.has(n)&&this.raise(Y.ModuleAttributesWithDuplicateKeys,{at:this.state.startLoc,key:n}),t.add(n),this.match(131)?r.key=this.parseStringLiteral(n):r.key=this.parseIdentifier(!0),this.expect(14),!this.match(131))throw this.raise(Y.ModuleAttributeInvalidValue,{at:this.state.startLoc});r.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(r,"ImportAttribute"))}while(this.eat(12));return e}maybeParseModuleAttributes(){if(!this.match(76)||this.hasPrecedingLineBreak())return this.hasPlugin("moduleAttributes")?[]:null;this.expectPlugin("moduleAttributes"),this.next();let e=[],t=new Set;do{let r=this.startNode();if(r.key=this.parseIdentifier(!0),"type"!==r.key.name&&this.raise(Y.ModuleAttributeDifferentFromType,{at:r.key}),t.has(r.key.name)&&this.raise(Y.ModuleAttributesWithDuplicateKeys,{at:r.key,key:r.key.name}),t.add(r.key.name),this.expect(14),!this.match(131))throw this.raise(Y.ModuleAttributeInvalidValue,{at:this.state.startLoc});r.value=this.parseStringLiteral(this.state.value),this.finishNode(r,"ImportAttribute"),e.push(r)}while(this.eat(12));return e}maybeParseImportAssertions(){if(!this.isContextual(94)||this.hasPrecedingLineBreak())return this.hasPlugin("importAssertions")?[]:null;this.expectPlugin("importAssertions"),this.next(),this.eat(5);let e=this.parseAssertEntries();return this.eat(8),e}maybeParseDefaultImportSpecifier(e){return!!this.shouldParseDefaultImport(e)&&(this.parseImportSpecifierLocal(e,this.startNode(),"ImportDefaultSpecifier"),!0)}maybeParseStarImportSpecifier(e){if(this.match(55)){let t=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(e,t,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(e){let t=!0;for(this.expect(5);!this.eat(8);){if(t)t=!1;else{if(this.eat(14))throw this.raise(Y.DestructureNamedImport,{at:this.state.startLoc});if(this.expect(12),this.eat(8))break}let r=this.startNode(),n=this.match(131),s=this.isContextual(128);r.imported=this.parseModuleExportName();let i=this.parseImportSpecifier(r,n,"type"===e.importKind||"typeof"===e.importKind,s,void 0);e.specifiers.push(i)}}parseImportSpecifier(e,t,r,n,s){if(this.eatContextual(93))e.local=this.parseIdentifier();else{let{imported:r}=e;if(t)throw this.raise(Y.ImportBindingIsString,{at:e,importName:r.value});this.checkReservedWord(r.name,e.loc.start,!0,!0),e.local||(e.local=gt(r))}return this.finishImportSpecifier(e,"ImportSpecifier",s)}isThisParam(e){return"Identifier"===e.type&&"this"===e.name}},rr=class extends tr{constructor(e,r){super(e=function(e){if(e&&null!=e.annexB&&!1!==e.annexB)throw new Error("The `annexB` option can only be set to `false`.");let r={};for(let n of Object.keys(t))r[n]=e&&null!=e[n]?e[n]:t[n];return r}(e),r),this.options=e,this.initializeScopes(),this.plugins=function(e){let t=new Map;for(let r of e){let[e,n]=Array.isArray(r)?r:[r,{}];t.has(e)||t.set(e,n||{})}return t}(this.options.plugins),this.filename=e.sourceFilename}getScopeHandler(){return Be}parse(){this.enterInitialScopes();let e=this.startNode(),t=this.startNode();return this.nextToken(),e.errors=null,this.parseTopLevel(e,t),e.errors=this.state.errors,e}};var nr=function(e){let t={};for(let r of Object.keys(e))t[r]=_(e[r]);return t}(v);function sr(e,t){let r=rr;return null!=e&&e.plugins&&(function(e){if(Vt(e,"decorators")){if(Vt(e,"decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");let t=Wt(e,"decorators","decoratorsBeforeExport");if(null!=t&&"boolean"!=typeof t)throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");let r=Wt(e,"decorators","allowCallParenthesized");if(null!=r&&"boolean"!=typeof r)throw new Error("'allowCallParenthesized' must be a boolean.")}if(Vt(e,"flow")&&Vt(e,"typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(Vt(e,"placeholders")&&Vt(e,"v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(Vt(e,"pipelineOperator")){let t=Wt(e,"pipelineOperator","proposal");if(!qt.includes(t)){let e=qt.map((e=>`"${e}"`)).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${e}.`)}let r=Vt(e,["recordAndTuple",{syntaxType:"hash"}]);if("hack"===t){if(Vt(e,"placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(Vt(e,"v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");let t=Wt(e,"pipelineOperator","topicToken");if(!Ht.includes(t)){let e=Ht.map((e=>`"${e}"`)).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${e}.`)}if("#"===t&&r)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "hack", topicToken: "#" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.')}else if("smart"===t&&r)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "smart" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.')}if(Vt(e,"moduleAttributes")){if(Vt(e,"importAssertions"))throw new Error("Cannot combine importAssertions and moduleAttributes plugins.");if("may-2020"!==Wt(e,"moduleAttributes","version"))throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(Vt(e,"recordAndTuple")&&null!=Wt(e,"recordAndTuple","syntaxType")&&!Jt.includes(Wt(e,"recordAndTuple","syntaxType")))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+Jt.map((e=>`'${e}'`)).join(", "));if(Vt(e,"asyncDoExpressions")&&!Vt(e,"doExpressions")){let e=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw e.missingPlugins="doExpressions",e}}(e.plugins),r=function(e){let t=Xt.filter((t=>Vt(e,t))),r=t.join("/"),n=ir[r];if(!n){n=rr;for(let e of t)n=Gt[e](n);ir[r]=n}return n}(e.plugins)),new r(e,t)}var ir={};e.parse=function(e,t){var r;if("unambiguous"!==(null==(r=t)?void 0:r.sourceType))return sr(t,e).parse();t=Object.assign({},t);try{t.sourceType="module";let r=sr(t,e),n=r.parse();if(r.sawUnambiguousESM)return n;if(r.ambiguousScriptDifferentAst)try{return t.sourceType="script",sr(t,e).parse()}catch{}else n.program.sourceType="script";return n}catch(r){try{return t.sourceType="script",sr(t,e).parse()}catch{}throw r}},e.parseExpression=function(e,t){let r=sr(t,e);return r.options.strictMode&&(r.state.strict=!0),r.getExpression()},e.tokTypes=nr}}),te=o({"src/language-js/parse/json.js"(e,t){l();var r=z(),n=q(),s=W(),i=H();function a(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{allowComments:t=!0}=e;return function(e){let n,{parseExpression:s}=ee();try{n=s(e,{tokens:!0,ranges:!0})}catch(e){throw i(e)}if(!t&&r(n.comments))throw o(n.comments[0],"Comment");return u(n),n}}function o(e,t){let[r,s]=[e.loc.start,e.loc.end].map((e=>{let{line:t,column:r}=e;return{line:t,column:r+1}}));return n(`${t} is not allowed in JSON.`,{start:r,end:s})}function u(e){switch(e.type){case"ArrayExpression":for(let t of e.elements)null!==t&&u(t);return;case"ObjectExpression":for(let t of e.properties)u(t);return;case"ObjectProperty":if(e.computed)throw o(e.key,"Computed key");if(e.shorthand)throw o(e.key,"Shorthand property");return"Identifier"!==e.key.type&&u(e.key),void u(e.value);case"UnaryExpression":{let{operator:t,argument:r}=e;if("+"!==t&&"-"!==t)throw o(e,`Operator '${e.operator}'`);if("NumericLiteral"===r.type||"Identifier"===r.type&&("Infinity"===r.name||"NaN"===r.name))return;throw o(r,`Operator '${t}' before '${r.type}'`)}case"Identifier":if("Infinity"!==e.name&&"NaN"!==e.name&&"undefined"!==e.name)throw o(e,`Identifier '${e.name}'`);return;case"TemplateLiteral":if(r(e.expressions))throw o(e.expressions[0],"'TemplateLiteral' with expression");for(let t of e.quasis)u(t);return;case"NullLiteral":case"BooleanLiteral":case"NumericLiteral":case"StringLiteral":case"TemplateElement":return;default:throw o(e,`'${e.type}'`)}}var p=a(),c={json:s({parse:p,hasPragma:()=>!0}),json5:s(p),"json-stringify":s({parse:a({allowComments:!1}),astFormat:"estree-json"})};t.exports=c}});l();var re=p(),ne=c(),se=y(),ie=W(),ae=H(),oe=Q(),ue=te(),le={sourceType:"module",allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,allowSuperOutsideMethod:!0,allowUndeclaredExports:!0,errorRecovery:!0,createParenthesizedExpressions:!0,plugins:["doExpressions","exportDefaultFrom","functionBind","functionSent","throwExpressions","partialApplication",["decorators",{decoratorsBeforeExport:!1}],"importAssertions","decimal","moduleBlocks","asyncDoExpressions","regexpUnicodeSets","destructuringPrivate","decoratorAutoAccessors"],tokens:!0,ranges:!0},pe=["recordAndTuple",{syntaxType:"hash"}],ce="v8intrinsic",he=[["pipelineOperator",{proposal:"hack",topicToken:"%"}],["pipelineOperator",{proposal:"minimal"}],["pipelineOperator",{proposal:"fsharp"}]],de=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:le;return Object.assign(Object.assign({},t),{},{plugins:[...t.plugins,...e]})},fe=/@(?:no)?flow\b/;function ye(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return function(t,n){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(("babel"===s.parser||"__babel_estree"===s.parser)&&function(e,t){if(t.filepath&&t.filepath.endsWith(".js.flow"))return!0;let r=ne(e);r&&(e=e.slice(r.length));let n=se(e,0);return!1!==n&&(e=e.slice(0,n)),fe.test(e)}(t,s))return s.parser="babel-flow",xe(t,n,s);let i=r;"script"===s.__babelSourceType&&(i=i.map((e=>Object.assign(Object.assign({},e),{},{sourceType:"script"})))),/#[[{]/.test(t)&&(i=i.map((e=>de([pe],e))));let a=/%[A-Z]/.test(t);t.includes("|>")?i=(a?[...he,ce]:he).flatMap((e=>i.map((t=>de([e],t))))):a&&(i=i.map((e=>de([ce],e))));let{result:o,error:u}=re(...i.map((r=>()=>function(e,t,r){let n=(0,ee()[e])(t,r),s=n.errors.find((e=>!Ae.has(e.reasonCode)));if(s)throw s;return n}(e,t,r))));if(!o)throw ae(u);return s.originalText=t,oe(o,s)}}var ge=ye("parse",de(["jsx","flow"])),xe=ye("parse",de(["jsx",["flow",{all:!0,enums:!0}]])),Ee=ye("parse",de(["jsx","typescript"]),de(["typescript"])),be=ye("parse",de(["jsx","flow","estree"])),Ce=ye("parseExpression",de(["jsx"])),ve=ye("parseExpression",de(["typescript"])),Ae=new Set(["StrictNumericEscape","StrictWith","StrictOctalLiteral","StrictDelete","StrictEvalArguments","StrictEvalArgumentsBinding","StrictFunction","EmptyTypeArguments","EmptyTypeParameters","ConstructorHasTypeParameters","UnsupportedParameterPropertyKind","UnexpectedParameterModifier","MixedLabeledAndUnlabeledElements","InvalidTupleMemberLabel","NonClassMethodPropertyHasAbstractModifer","ReadonlyForMethodSignature","ClassMethodHasDeclare","ClassMethodHasReadonly","InvalidModifierOnTypeMember","DuplicateAccessibilityModifier","IndexSignatureHasDeclare","DecoratorExportClass","ParamDupe","InvalidDecimal","RestTrailingComma","UnsupportedParameterDecorator","UnterminatedJsxContent","UnexpectedReservedWord","ModuleAttributesWithDuplicateKeys","LineTerminatorBeforeArrow","InvalidEscapeSequenceTemplate","NonAbstractClassHasAbstractMethod","UnsupportedPropertyDecorator","OptionalTypeBeforeRequired","PatternIsOptional","OptionalBindingPattern","DeclareClassFieldHasInitializer","TypeImportCannotSpecifyDefaultAndNamed","DeclareFunctionHasImplementation","ConstructorClassField","VarRedeclaration","InvalidPrivateFieldResolution","DuplicateExport"]),Se=ie(ge),Te=ie(Ee),we=ie(Ce),Fe=ie(ve);t.exports={parsers:Object.assign(Object.assign({babel:Se,"babel-flow":ie(xe),"babel-ts":Te},ue),{},{__js_expression:we,__vue_expression:we,__vue_ts_expression:Fe,__vue_event_binding:Se,__vue_ts_event_binding:Te,__babel_estree:ie(be)})}}));return ke()}()},691:(e,t,r)=>{var n,s,i;e.exports=function(){"use strict";var a=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),o=a(((e,t)=>{var n=function(e){return e&&e.Math==Math&&e};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||function(){return this}()||Function("return this")()})),u=a(((e,t)=>{t.exports=function(e){try{return!!e()}catch{return!0}}})),l=a(((e,t)=>{var r=u();t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))})),p=a(((e,t)=>{var r=u();t.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))})),c=a(((e,t)=>{var r=p(),n=Function.prototype.call;t.exports=r?n.bind(n):function(){return n.apply(n,arguments)}})),h=a((e=>{var t={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,n=r&&!t.call({1:2},1);e.f=n?function(e){var t=r(this,e);return!!t&&t.enumerable}:t})),d=a(((e,t)=>{t.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}})),f=a(((e,t)=>{var r=p(),n=Function.prototype,s=n.call,i=r&&n.bind.bind(s,s);t.exports=r?i:function(e){return function(){return s.apply(e,arguments)}}})),m=a(((e,t)=>{var r=f(),n=r({}.toString),s=r("".slice);t.exports=function(e){return s(n(e),8,-1)}})),y=a(((e,t)=>{var r=f(),n=u(),s=m(),i=Object,a=r("".split);t.exports=n((function(){return!i("z").propertyIsEnumerable(0)}))?function(e){return"String"==s(e)?a(e,""):i(e)}:i})),g=a(((e,t)=>{t.exports=function(e){return null==e}})),D=a(((e,t)=>{var r=g(),n=TypeError;t.exports=function(e){if(r(e))throw n("Can't call method on "+e);return e}})),x=a(((e,t)=>{var r=y(),n=D();t.exports=function(e){return r(n(e))}})),E=a(((e,t)=>{var r="object"==typeof document&&document.all,n=typeof r>"u"&&void 0!==r;t.exports={all:r,IS_HTMLDDA:n}})),b=a(((e,t)=>{var r=E(),n=r.all;t.exports=r.IS_HTMLDDA?function(e){return"function"==typeof e||e===n}:function(e){return"function"==typeof e}})),C=a(((e,t)=>{var r=b(),n=E(),s=n.all;t.exports=n.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:r(e)||e===s}:function(e){return"object"==typeof e?null!==e:r(e)}})),v=a(((e,t)=>{var r=o(),n=b();t.exports=function(e,t){return arguments.length<2?function(e){return n(e)?e:void 0}(r[e]):r[e]&&r[e][t]}})),A=a(((e,t)=>{var r=f();t.exports=r({}.isPrototypeOf)})),S=a(((e,t)=>{var r=v();t.exports=r("navigator","userAgent")||""})),T=a(((e,t)=>{var r,n,s=o(),i=S(),a=s.process,u=s.Deno,l=a&&a.versions||u&&u.version,p=l&&l.v8;p&&(n=(r=p.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!n&&i&&(!(r=i.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=i.match(/Chrome\/(\d+)/))&&(n=+r[1]),t.exports=n})),w=a(((e,t)=>{var r=T(),n=u();t.exports=!!Object.getOwnPropertySymbols&&!n((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))})),F=a(((e,t)=>{var r=w();t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator})),P=a(((e,t)=>{var r=v(),n=b(),s=A(),i=F(),a=Object;t.exports=i?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return n(t)&&s(t.prototype,a(e))}})),k=a(((e,t)=>{var r=String;t.exports=function(e){try{return r(e)}catch{return"Object"}}})),N=a(((e,t)=>{var r=b(),n=k(),s=TypeError;t.exports=function(e){if(r(e))return e;throw s(n(e)+" is not a function")}})),I=a(((e,t)=>{var r=N(),n=g();t.exports=function(e,t){var s=e[t];return n(s)?void 0:r(s)}})),B=a(((e,t)=>{var r=c(),n=b(),s=C(),i=TypeError;t.exports=function(e,t){var a,o;if("string"===t&&n(a=e.toString)&&!s(o=r(a,e))||n(a=e.valueOf)&&!s(o=r(a,e))||"string"!==t&&n(a=e.toString)&&!s(o=r(a,e)))return o;throw i("Can't convert object to primitive value")}})),_=a(((e,t)=>{t.exports=!1})),O=a(((e,t)=>{var r=o(),n=Object.defineProperty;t.exports=function(e,t){try{n(r,e,{value:t,configurable:!0,writable:!0})}catch{r[e]=t}return t}})),L=a(((e,t)=>{var r=o(),n=O(),s="__core-js_shared__",i=r[s]||n(s,{});t.exports=i})),j=a(((e,t)=>{var r=_(),n=L();(t.exports=function(e,t){return n[e]||(n[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.26.1",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE",source:"https://github.com/zloirock/core-js"})})),M=a(((e,t)=>{var r=D(),n=Object;t.exports=function(e){return n(r(e))}})),R=a(((e,t)=>{var r=f(),n=M(),s=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(e,t){return s(n(e),t)}})),$=a(((e,t)=>{var r=f(),n=0,s=Math.random(),i=r(1..toString);t.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+i(++n+s,36)}})),U=a(((e,t)=>{var r=o(),n=j(),s=R(),i=$(),a=w(),u=F(),l=n("wks"),p=r.Symbol,c=p&&p.for,h=u?p:p&&p.withoutSetter||i;t.exports=function(e){if(!s(l,e)||!a&&"string"!=typeof l[e]){var t="Symbol."+e;a&&s(p,e)?l[e]=p[e]:l[e]=u&&c?c(t):h(t)}return l[e]}})),z=a(((e,t)=>{var r=c(),n=C(),s=P(),i=I(),a=B(),o=U(),u=TypeError,l=o("toPrimitive");t.exports=function(e,t){if(!n(e)||s(e))return e;var o,p=i(e,l);if(p){if(void 0===t&&(t="default"),o=r(p,e,t),!n(o)||s(o))return o;throw u("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}})),V=a(((e,t)=>{var r=z(),n=P();t.exports=function(e){var t=r(e,"string");return n(t)?t:t+""}})),W=a(((e,t)=>{var r=o(),n=C(),s=r.document,i=n(s)&&n(s.createElement);t.exports=function(e){return i?s.createElement(e):{}}})),q=a(((e,t)=>{var r=l(),n=u(),s=W();t.exports=!r&&!n((function(){return 7!=Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a}))})),H=a((e=>{var t=l(),r=c(),n=h(),s=d(),i=x(),a=V(),o=R(),u=q(),p=Object.getOwnPropertyDescriptor;e.f=t?p:function(e,t){if(e=i(e),t=a(t),u)try{return p(e,t)}catch{}if(o(e,t))return s(!r(n.f,e,t),e[t])}})),J=a(((e,t)=>{var r=l(),n=u();t.exports=r&&n((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))})),G=a(((e,t)=>{var r=C(),n=String,s=TypeError;t.exports=function(e){if(r(e))return e;throw s(n(e)+" is not an object")}})),X=a((e=>{var t=l(),r=q(),n=J(),s=G(),i=V(),a=TypeError,o=Object.defineProperty,u=Object.getOwnPropertyDescriptor,p="enumerable",c="configurable",h="writable";e.f=t?n?function(e,t,r){if(s(e),t=i(t),s(r),"function"==typeof e&&"prototype"===t&&"value"in r&&h in r&&!r[h]){var n=u(e,t);n&&n[h]&&(e[t]=r.value,r={configurable:c in r?r[c]:n[c],enumerable:p in r?r[p]:n[p],writable:!1})}return o(e,t,r)}:o:function(e,t,n){if(s(e),t=i(t),s(n),r)try{return o(e,t,n)}catch{}if("get"in n||"set"in n)throw a("Accessors not supported");return"value"in n&&(e[t]=n.value),e}})),K=a(((e,t)=>{var r=l(),n=X(),s=d();t.exports=r?function(e,t,r){return n.f(e,t,s(1,r))}:function(e,t,r){return e[t]=r,e}})),Z=a(((e,t)=>{var r=l(),n=R(),s=Function.prototype,i=r&&Object.getOwnPropertyDescriptor,a=n(s,"name"),o=a&&"something"===function(){}.name,u=a&&(!r||r&&i(s,"name").configurable);t.exports={EXISTS:a,PROPER:o,CONFIGURABLE:u}})),Y=a(((e,t)=>{var r=f(),n=b(),s=L(),i=r(Function.toString);n(s.inspectSource)||(s.inspectSource=function(e){return i(e)}),t.exports=s.inspectSource})),Q=a(((e,t)=>{var r=o(),n=b(),s=r.WeakMap;t.exports=n(s)&&/native code/.test(String(s))})),ee=a(((e,t)=>{var r=j(),n=$(),s=r("keys");t.exports=function(e){return s[e]||(s[e]=n(e))}})),te=a(((e,t)=>{t.exports={}})),re=a(((e,t)=>{var r,n,s,i,a,u=Q(),l=o(),p=C(),c=K(),h=R(),d=L(),f=ee(),m=te(),y="Object already initialized",g=l.TypeError,D=l.WeakMap;u||d.state?((i=d.state||(d.state=new D)).get=i.get,i.has=i.has,i.set=i.set,r=function(e,t){if(i.has(e))throw g(y);return t.facade=e,i.set(e,t),t},n=function(e){return i.get(e)||{}},s=function(e){return i.has(e)}):(m[a=f("state")]=!0,r=function(e,t){if(h(e,a))throw g(y);return t.facade=e,c(e,a,t),t},n=function(e){return h(e,a)?e[a]:{}},s=function(e){return h(e,a)}),t.exports={set:r,get:n,has:s,enforce:function(e){return s(e)?n(e):r(e,{})},getterFor:function(e){return function(t){var r;if(!p(t)||(r=n(t)).type!==e)throw g("Incompatible receiver, "+e+" required");return r}}}})),ne=a(((e,t)=>{var r=u(),n=b(),s=R(),i=l(),a=Z().CONFIGURABLE,o=Y(),p=re(),c=p.enforce,h=p.get,d=Object.defineProperty,f=i&&!r((function(){return 8!==d((function(){}),"length",{value:8}).length})),m=String(String).split("String"),y=t.exports=function(e,t,r){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!s(e,"name")||a&&e.name!==t)&&(i?d(e,"name",{value:t,configurable:!0}):e.name=t),f&&r&&s(r,"arity")&&e.length!==r.arity&&d(e,"length",{value:r.arity});try{r&&s(r,"constructor")&&r.constructor?i&&d(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch{}var n=c(e);return s(n,"source")||(n.source=m.join("string"==typeof t?t:"")),e};Function.prototype.toString=y((function(){return n(this)&&h(this).source||o(this)}),"toString")})),se=a(((e,t)=>{var r=b(),n=X(),s=ne(),i=O();t.exports=function(e,t,a,o){o||(o={});var u=o.enumerable,l=void 0!==o.name?o.name:t;if(r(a)&&s(a,l,o),o.global)u?e[t]=a:i(t,a);else{try{o.unsafe?e[t]&&(u=!0):delete e[t]}catch{}u?e[t]=a:n.f(e,t,{value:a,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable})}return e}})),ie=a(((e,t)=>{var r=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(e){var t=+e;return(t>0?n:r)(t)}})),ae=a(((e,t)=>{var r=ie();t.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}})),oe=a(((e,t)=>{var r=ae(),n=Math.max,s=Math.min;t.exports=function(e,t){var i=r(e);return i<0?n(i+t,0):s(i,t)}})),ue=a(((e,t)=>{var r=ae(),n=Math.min;t.exports=function(e){return e>0?n(r(e),9007199254740991):0}})),le=a(((e,t)=>{var r=ue();t.exports=function(e){return r(e.length)}})),pe=a(((e,t)=>{var r=x(),n=oe(),s=le(),i=function(e){return function(t,i,a){var o,u=r(t),l=s(u),p=n(a,l);if(e&&i!=i){for(;l>p;)if((o=u[p++])!=o)return!0}else for(;l>p;p++)if((e||p in u)&&u[p]===i)return e||p||0;return!e&&-1}};t.exports={includes:i(!0),indexOf:i(!1)}})),ce=a(((e,t)=>{var r=f(),n=R(),s=x(),i=pe().indexOf,a=te(),o=r([].push);t.exports=function(e,t){var r,u=s(e),l=0,p=[];for(r in u)!n(a,r)&&n(u,r)&&o(p,r);for(;t.length>l;)n(u,r=t[l++])&&(~i(p,r)||o(p,r));return p}})),he=a(((e,t)=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]})),de=a((e=>{var t=ce(),r=he().concat("length","prototype");e.f=Object.getOwnPropertyNames||function(e){return t(e,r)}})),fe=a((e=>{e.f=Object.getOwnPropertySymbols})),me=a(((e,t)=>{var r=v(),n=f(),s=de(),i=fe(),a=G(),o=n([].concat);t.exports=r("Reflect","ownKeys")||function(e){var t=s.f(a(e)),r=i.f;return r?o(t,r(e)):t}})),ye=a(((e,t)=>{var r=R(),n=me(),s=H(),i=X();t.exports=function(e,t,a){for(var o=n(t),u=i.f,l=s.f,p=0;p<o.length;p++){var c=o[p];!r(e,c)&&(!a||!r(a,c))&&u(e,c,l(t,c))}}})),ge=a(((e,t)=>{var r=u(),n=b(),s=/#|\.prototype\./,i=function(e,t){var s=o[a(e)];return s==p||s!=l&&(n(t)?r(t):!!t)},a=i.normalize=function(e){return String(e).replace(s,".").toLowerCase()},o=i.data={},l=i.NATIVE="N",p=i.POLYFILL="P";t.exports=i})),De=a(((e,t)=>{var r=o(),n=H().f,s=K(),i=se(),a=O(),u=ye(),l=ge();t.exports=function(e,t){var o,p,c,h,d,f=e.target,m=e.global,y=e.stat;if(o=m?r:y?r[f]||a(f,{}):(r[f]||{}).prototype)for(p in t){if(h=t[p],c=e.dontCallGetSet?(d=n(o,p))&&d.value:o[p],!l(m?p:f+(y?".":"#")+p,e.forced)&&void 0!==c){if(typeof h==typeof c)continue;u(h,c)}(e.sham||c&&c.sham)&&s(h,"sham",!0),i(o,p,h,e)}}})),xe=a(((e,t)=>{var r=m();t.exports=Array.isArray||function(e){return"Array"==r(e)}})),Ee=a(((e,t)=>{var r=TypeError;t.exports=function(e){if(e>9007199254740991)throw r("Maximum allowed index exceeded");return e}})),be=a(((e,t)=>{var r=m(),n=f();t.exports=function(e){if("Function"===r(e))return n(e)}})),Ce=a(((e,t)=>{var r=be(),n=N(),s=p(),i=r(r.bind);t.exports=function(e,t){return n(e),void 0===t?e:s?i(e,t):function(){return e.apply(t,arguments)}}})),ve=a(((e,t)=>{var r=xe(),n=le(),s=Ee(),i=Ce(),a=function(e,t,o,u,l,p,c,h){for(var d,f,m=l,y=0,g=!!c&&i(c,h);y<u;)y in o&&(d=g?g(o[y],y,t):o[y],p>0&&r(d)?(f=n(d),m=a(e,t,d,f,m,p-1)-1):(s(m+1),e[m]=d),m++),y++;return m};t.exports=a})),Ae=a(((e,t)=>{var r={};r[U()("toStringTag")]="z",t.exports="[object z]"===String(r)})),Se=a(((e,t)=>{var r=Ae(),n=b(),s=m(),i=U()("toStringTag"),a=Object,o="Arguments"==s(function(){return arguments}());t.exports=r?s:function(e){var t,r,u;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch{}}(t=a(e),i))?r:o?s(t):"Object"==(u=s(t))&&n(t.callee)?"Arguments":u}})),Te=a(((e,t)=>{var r=f(),n=u(),s=b(),i=Se(),a=v(),o=Y(),l=function(){},p=[],c=a("Reflect","construct"),h=/^\s*(?:class|function)\b/,d=r(h.exec),m=!h.exec(l),y=function(e){if(!s(e))return!1;try{return c(l,p,e),!0}catch{return!1}},g=function(e){if(!s(e))return!1;switch(i(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return m||!!d(h,o(e))}catch{return!0}};g.sham=!0,t.exports=!c||n((function(){var e;return y(y.call)||!y(Object)||!y((function(){e=!0}))||e}))?g:y})),we=a(((e,t)=>{var r=xe(),n=Te(),s=C(),i=U()("species"),a=Array;t.exports=function(e){var t;return r(e)&&(t=e.constructor,(n(t)&&(t===a||r(t.prototype))||s(t)&&null===(t=t[i]))&&(t=void 0)),void 0===t?a:t}})),Fe=a(((e,t)=>{var r=we();t.exports=function(e,t){return new(r(e))(0===t?0:t)}})),Pe=a((()=>{var e=De(),t=ve(),r=N(),n=M(),s=le(),i=Fe();e({target:"Array",proto:!0},{flatMap:function(e){var a,o=n(this),u=s(o);return r(e),(a=i(o,0)).length=t(a,o,o,u,0,1,e,arguments.length>1?arguments[1]:void 0),a}})})),ke=a(((e,t)=>{t.exports={}})),Ne=a(((e,t)=>{var r=U(),n=ke(),s=r("iterator"),i=Array.prototype;t.exports=function(e){return void 0!==e&&(n.Array===e||i[s]===e)}})),Ie=a(((e,t)=>{var r=Se(),n=I(),s=g(),i=ke(),a=U()("iterator");t.exports=function(e){if(!s(e))return n(e,a)||n(e,"@@iterator")||i[r(e)]}})),Be=a(((e,t)=>{var r=c(),n=N(),s=G(),i=k(),a=Ie(),o=TypeError;t.exports=function(e,t){var u=arguments.length<2?a(e):t;if(n(u))return s(r(u,e));throw o(i(e)+" is not iterable")}})),_e=a(((e,t)=>{var r=c(),n=G(),s=I();t.exports=function(e,t,i){var a,o;n(e);try{if(!(a=s(e,"return"))){if("throw"===t)throw i;return i}a=r(a,e)}catch(e){o=!0,a=e}if("throw"===t)throw i;if(o)throw a;return n(a),i}})),Oe=a(((e,t)=>{var r=Ce(),n=c(),s=G(),i=k(),a=Ne(),o=le(),u=A(),l=Be(),p=Ie(),h=_e(),d=TypeError,f=function(e,t){this.stopped=e,this.result=t},m=f.prototype;t.exports=function(e,t,c){var y,g,D,x,E,b,C,v=c&&c.that,A=!(!c||!c.AS_ENTRIES),S=!(!c||!c.IS_RECORD),T=!(!c||!c.IS_ITERATOR),w=!(!c||!c.INTERRUPTED),F=r(t,v),P=function(e){return y&&h(y,"normal",e),new f(!0,e)},k=function(e){return A?(s(e),w?F(e[0],e[1],P):F(e[0],e[1])):w?F(e,P):F(e)};if(S)y=e.iterator;else if(T)y=e;else{if(!(g=p(e)))throw d(i(e)+" is not iterable");if(a(g)){for(D=0,x=o(e);x>D;D++)if((E=k(e[D]))&&u(m,E))return E;return new f(!1)}y=l(e,g)}for(b=S?e.next:y.next;!(C=n(b,y)).done;){try{E=k(C.value)}catch(e){h(y,"throw",e)}if("object"==typeof E&&E&&u(m,E))return E}return new f(!1)}})),Le=a(((e,t)=>{var r=V(),n=X(),s=d();t.exports=function(e,t,i){var a=r(t);a in e?n.f(e,a,s(0,i)):e[a]=i}})),je=a((()=>{var e=De(),t=Oe(),r=Le();e({target:"Object",stat:!0},{fromEntries:function(e){var n={};return t(e,(function(e,t){r(n,e,t)}),{AS_ENTRIES:!0}),n}})})),Me=a(((e,t)=>{var r=ne(),n=X();t.exports=function(e,t,s){return s.get&&r(s.get,t,{getter:!0}),s.set&&r(s.set,t,{setter:!0}),n.f(e,t,s)}})),Re=a(((e,t)=>{var r=G();t.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}})),$e=a((()=>{var e=o(),t=l(),r=Me(),n=Re(),s=u(),i=e.RegExp,a=i.prototype;t&&s((function(){var e=!0;try{i(".","d")}catch{e=!1}var t={},r="",n=e?"dgimsy":"gimsy",s=function(e,n){Object.defineProperty(t,e,{get:function(){return r+=n,!0}})},o={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var u in e&&(o.hasIndices="d"),o)s(u,o[u]);return Object.getOwnPropertyDescriptor(a,"flags").get.call(t)!==n||r!==n}))&&r(a,"flags",{configurable:!0,get:n})})),Ue=a((()=>{var e=De(),t=o();e({global:!0,forced:t.globalThis!==t},{globalThis:t})})),ze=a((()=>{Ue()})),Ve=a((()=>{var e=De(),t=ve(),r=M(),n=le(),s=ae(),i=Fe();e({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,a=r(this),o=n(a),u=i(a,0);return u.length=t(u,a,a,o,0,void 0===e?1:s(e)),u}})})),We=a(((r,a)=>{var o=["cliName","cliCategory","cliDescription"],u=["_"],l=["languageId"];function p(e,t){if(null==e)return{};var r,n,s=function(e,t){if(null==e)return{};var r,n,s={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],!(t.indexOf(r)>=0)&&(s[r]=e[r]);return s}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(s[r]=e[r])}return s}Pe(),je(),$e(),ze(),Ve();var c,h=Object.create,d=Object.defineProperty,f=Object.getOwnPropertyDescriptor,m=Object.getOwnPropertyNames,y=Object.getPrototypeOf,g=Object.prototype.hasOwnProperty,D=(e,t)=>function(){return e&&(t=(0,e[m(e)[0]])(e=0)),t},x=(e,t)=>function(){return t||(0,e[m(e)[0]])((t={exports:{}}).exports,t),t.exports},E=(e,t)=>{for(var r in t)d(e,r,{get:t[r],enumerable:!0})},b=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of m(t))!g.call(e,s)&&s!==r&&d(e,s,{get:()=>t[s],enumerable:!(n=f(t,s))||n.enumerable});return e},C=e=>b(d({},"__esModule",{value:!0}),e),v=D({"<define:process>"(){c={env:{},argv:[]}}}),A=x({"package.json"(e,t){t.exports={version:"2.8.6"}}}),S=x({"node_modules/diff/lib/diff/base.js"(e){function t(){}function r(e,t,r,n,s){for(var i=0,a=t.length,o=0,u=0;i<a;i++){var l=t[i];if(l.removed){if(l.value=e.join(n.slice(u,u+l.count)),u+=l.count,i&&t[i-1].added){var p=t[i-1];t[i-1]=t[i],t[i]=p}}else{if(!l.added&&s){var c=r.slice(o,o+l.count);c=c.map((function(e,t){var r=n[u+t];return r.length>e.length?r:e})),l.value=e.join(c)}else l.value=e.join(r.slice(o,o+l.count));o+=l.count,l.added||(u+=l.count)}}var h=t[a-1];return a>1&&"string"==typeof h.value&&(h.added||h.removed)&&e.equals("",h.value)&&(t[a-2].value+=h.value,t.pop()),t}v(),Object.defineProperty(e,"__esModule",{value:!0}),e.default=t,t.prototype={diff:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=n.callback;"function"==typeof n&&(s=n,n={}),this.options=n;var i=this;function a(e){return s?(setTimeout((function(){s(void 0,e)}),0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var o=(t=this.removeEmpty(this.tokenize(t))).length,u=e.length,l=1,p=o+u,c=[{newPos:-1,components:[]}],h=this.extractCommon(c[0],t,e,0);if(c[0].newPos+1>=o&&h+1>=u)return a([{value:this.join(t),count:t.length}]);function d(){for(var n=-1*l;n<=l;n+=2){var s=void 0,p=c[n-1],h=c[n+1],d=(h?h.newPos:0)-n;p&&(c[n-1]=void 0);var f=p&&p.newPos+1<o,m=h&&0<=d&&d<u;if(f||m){if(!f||m&&p.newPos<h.newPos?(s={newPos:(y=h).newPos,components:y.components.slice(0)},i.pushComponent(s.components,void 0,!0)):((s=p).newPos++,i.pushComponent(s.components,!0,void 0)),d=i.extractCommon(s,t,e,n),s.newPos+1>=o&&d+1>=u)return a(r(i,s.components,t,e,i.useLongestToken));c[n]=s}else c[n]=void 0}var y;l++}if(s)!function e(){setTimeout((function(){if(l>p)return s();d()||e()}),0)}();else for(;l<=p;){var f=d();if(f)return f}},pushComponent:function(e,t,r){var n=e[e.length-1];n&&n.added===t&&n.removed===r?e[e.length-1]={count:n.count+1,added:t,removed:r}:e.push({count:1,added:t,removed:r})},extractCommon:function(e,t,r,n){for(var s=t.length,i=r.length,a=e.newPos,o=a-n,u=0;a+1<s&&o+1<i&&this.equals(t[a+1],r[o+1]);)a++,o++,u++;return u&&e.components.push({count:u}),e.newPos=a,o},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],r=0;r<e.length;r++)e[r]&&t.push(e[r]);return t},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}}}}),T=x({"node_modules/diff/lib/diff/array.js"(e){v(),Object.defineProperty(e,"__esModule",{value:!0}),e.diffArrays=function(e,t,n){return r.diff(e,t,n)},e.arrayDiff=void 0;var t,r=new((t=S(),t&&t.__esModule?t:{default:t}).default);e.arrayDiff=r,r.tokenize=function(e){return e.slice()},r.join=r.removeEmpty=function(e){return e}}}),w=x({"src/document/doc-builders.js"(e,t){function r(e){return{type:"concat",parts:e}}function n(e){return{type:"indent",contents:e}}function s(e,t){return{type:"align",contents:t,n:e}}function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"group",id:t.id,contents:e,break:Boolean(t.shouldBreak),expandedStates:t.expandedStates}}v();var a={type:"break-parent"},o={type:"line",hard:!0},u={type:"line",hard:!0,literal:!0},l=r([o,a]),p=r([u,a]),c={type:"cursor",placeholder:Symbol("cursor")};t.exports={concat:r,join:function(e,t){let n=[];for(let r=0;r<t.length;r++)0!==r&&n.push(e),n.push(t[r]);return r(n)},line:{type:"line"},softline:{type:"line",soft:!0},hardline:l,literalline:p,group:i,conditionalGroup:function(e,t){return i(e[0],Object.assign(Object.assign({},t),{},{expandedStates:e}))},fill:function(e){return{type:"fill",parts:e}},lineSuffix:function(e){return{type:"line-suffix",contents:e}},lineSuffixBoundary:{type:"line-suffix-boundary"},cursor:c,breakParent:a,ifBreak:function(e,t){return{type:"if-break",breakContents:e,flatContents:t,groupId:(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).groupId}},trim:{type:"trim"},indent:n,indentIfBreak:function(e,t){return{type:"indent-if-break",contents:e,groupId:t.groupId,negate:t.negate}},align:s,addAlignmentToDoc:function(e,t,r){let i=e;if(t>0){for(let e=0;e<Math.floor(t/r);++e)i=n(i);i=s(t%r,i),i=s(Number.NEGATIVE_INFINITY,i)}return i},markAsRoot:function(e){return s({type:"root"},e)},dedentToRoot:function(e){return s(Number.NEGATIVE_INFINITY,e)},dedent:function(e){return s(-1,e)},hardlineWithoutBreakParent:o,literallineWithoutBreakParent:u,label:function(e,t){return{type:"label",label:e,contents:t}}}}}),F=x({"src/common/end-of-line.js"(e,t){v(),t.exports={guessEndOfLine:function(e){let t=e.indexOf("\r");return t>=0?"\n"===e.charAt(t+1)?"crlf":"cr":"lf"},convertEndOfLineToChars:function(e){switch(e){case"cr":return"\r";case"crlf":return"\r\n";default:return"\n"}},countEndOfLineChars:function(e,t){let r;switch(t){case"\n":r=/\n/g;break;case"\r":r=/\r/g;break;case"\r\n":r=/\r\n/g;break;default:throw new Error(`Unexpected "eol" ${JSON.stringify(t)}.`)}let n=e.match(r);return n?n.length:0},normalizeEndOfLine:function(e){return e.replace(/\r\n?/g,"\n")}}}}),P=x({"src/utils/get-last.js"(e,t){v();t.exports=e=>e[e.length-1]}});var k=D({"node_modules/strip-ansi/node_modules/ansi-regex/index.js"(){v()}});function N(e){if("string"!=typeof e)throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(function(){let{onlyFirst:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}(),"")}var I=D({"node_modules/strip-ansi/index.js"(){v(),k()}});function B(e){return!!Number.isInteger(e)&&e>=4352&&(e<=4447||9001===e||9002===e||11904<=e&&e<=12871&&12351!==e||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141)}var _=D({"node_modules/is-fullwidth-code-point/index.js"(){v()}}),O=x({"node_modules/emoji-regex/index.js"(e,t){v(),t.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}}}),L={};function j(e){if("string"!=typeof e||0===e.length||0===(e=N(e)).length)return 0;e=e.replace((0,M.default)()," ");let t=0;for(let r=0;r<e.length;r++){let n=e.codePointAt(r);n<=31||n>=127&&n<=159||n>=768&&n<=879||(n>65535&&r++,t+=B(n)?2:1)}return t}E(L,{default:()=>j});var M,R=D({"node_modules/string-width/index.js"(){var e,t,r;v(),I(),_(),e=O(),r=null!=e?h(y(e)):{},M=b(!t&&e&&e.__esModule?r:d(r,"default",{value:e,enumerable:!0}),e)}}),$=x({"src/utils/get-string-width.js"(e,t){v();var r=(R(),C(L)).default,n=/[^\x20-\x7F]/;t.exports=function(e){return e?n.test(e)?r(e):e.length:0}}}),U=x({"src/document/doc-utils.js"(e,t){v();var r=P(),{literalline:n,join:s}=w(),i=e=>Array.isArray(e)||e&&"concat"===e.type,a=e=>{if(Array.isArray(e))return e;if("concat"!==e.type&&"fill"!==e.type)throw new Error("Expect doc type to be `concat` or `fill`.");return e.parts},o={};function u(e,t,r,n){let s=[e];for(;s.length>0;){let e=s.pop();if(e!==o){if(r&&s.push(e,o),!t||!1!==t(e))if(i(e)||"fill"===e.type){let t=a(e);for(let e=t.length-1;e>=0;--e)s.push(t[e])}else if("if-break"===e.type)e.flatContents&&s.push(e.flatContents),e.breakContents&&s.push(e.breakContents);else if("group"===e.type&&e.expandedStates)if(n)for(let t=e.expandedStates.length-1;t>=0;--t)s.push(e.expandedStates[t]);else s.push(e.contents);else e.contents&&s.push(e.contents)}else r(s.pop())}}function l(e,t){let r=new Map;return n(e);function n(e){if(r.has(e))return r.get(e);let s=function(e){if(Array.isArray(e))return t(e.map(n));if("concat"===e.type||"fill"===e.type){let r=e.parts.map(n);return t(Object.assign(Object.assign({},e),{},{parts:r}))}if("if-break"===e.type){let r=e.breakContents&&n(e.breakContents),s=e.flatContents&&n(e.flatContents);return t(Object.assign(Object.assign({},e),{},{breakContents:r,flatContents:s}))}if("group"===e.type&&e.expandedStates){let r=e.expandedStates.map(n),s=r[0];return t(Object.assign(Object.assign({},e),{},{contents:s,expandedStates:r}))}if(e.contents){let r=n(e.contents);return t(Object.assign(Object.assign({},e),{},{contents:r}))}return t(e)}(e);return r.set(e,s),s}}function p(e,t,r){let n=r,s=!1;return u(e,(function(e){let r=t(e);if(void 0!==r&&(s=!0,n=r),s)return!1})),n}function c(e){if("group"===e.type&&e.break||"line"===e.type&&e.hard||"break-parent"===e.type)return!0}function h(e){if(e.length>0){let t=r(e);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function d(e){return"line"!==e.type||e.hard?"if-break"===e.type?e.flatContents||"":e:e.soft?"":" "}var f=(e,t)=>e&&"line"===e.type&&e.hard&&t&&"break-parent"===t.type;function m(e){if(!e)return e;if(i(e)||"fill"===e.type){let t=a(e);for(;t.length>1&&f(...t.slice(-2));)t.length-=2;if(t.length>0){let e=m(r(t));t[t.length-1]=e}return Array.isArray(e)?t:Object.assign(Object.assign({},e),{},{parts:t})}switch(e.type){case"align":case"indent":case"indent-if-break":case"group":case"line-suffix":case"label":{let t=m(e.contents);return Object.assign(Object.assign({},e),{},{contents:t})}case"if-break":{let t=m(e.breakContents),r=m(e.flatContents);return Object.assign(Object.assign({},e),{},{breakContents:t,flatContents:r})}}return e}function y(e){return l(e,(e=>function(e){switch(e.type){case"fill":if(e.parts.every((e=>""===e)))return"";break;case"group":if(!(e.contents||e.id||e.break||e.expandedStates))return"";if("group"===e.contents.type&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case"align":case"indent":case"indent-if-break":case"line-suffix":if(!e.contents)return"";break;case"if-break":if(!e.flatContents&&!e.breakContents)return""}if(!i(e))return e;let t=[];for(let n of a(e)){if(!n)continue;let[e,...s]=i(n)?a(n):[n];"string"==typeof e&&"string"==typeof r(t)?t[t.length-1]+=e:t.push(e),t.push(...s)}return 0===t.length?"":1===t.length?t[0]:Array.isArray(e)?t:Object.assign(Object.assign({},e),{},{parts:t})}(e)))}function g(e){let t=[],n=e.filter(Boolean);for(;n.length>0;){let e=n.shift();if(e){if(i(e)){n.unshift(...a(e));continue}if(t.length>0&&"string"==typeof r(t)&&"string"==typeof e){t[t.length-1]+=e;continue}t.push(e)}}return t}function D(e){return s(arguments.length>1&&void 0!==arguments[1]?arguments[1]:n,e.split("\n")).parts}function x(e){if("line"===e.type)return!0}t.exports={isConcat:i,getDocParts:a,willBreak:function(e){return p(e,c,!1)},traverseDoc:u,findInDoc:p,mapDoc:l,propagateBreaks:function(e){let t=new Set,r=[];u(e,(function(e){if("break-parent"===e.type&&h(r),"group"===e.type){if(r.push(e),t.has(e))return!1;t.add(e)}}),(function(e){"group"===e.type&&r.pop().break&&h(r)}),!0)},removeLines:function(e){return l(e,d)},stripTrailingHardline:function(e){return m(y(e))},normalizeParts:g,normalizeDoc:function(e){return l(e,(e=>Array.isArray(e)?g(e):e.parts?Object.assign(Object.assign({},e),{},{parts:g(e.parts)}):e))},cleanDoc:y,replaceTextEndOfLine:D,replaceEndOfLine:function(e){return l(e,(e=>"string"==typeof e&&e.includes("\n")?D(e):e))},canBreak:function(e){return p(e,x,!1)}}}}),z=x({"src/document/doc-printer.js"(e,t){v();var r,{convertEndOfLineToChars:n}=F(),s=P(),i=$(),{fill:a,cursor:o,indent:u}=w(),{isConcat:l,getDocParts:p}=U();function c(e,t){return d(e,{type:"indent"},t)}function h(e,t,r){return t===Number.NEGATIVE_INFINITY?e.root||{value:"",length:0,queue:[]}:t<0?d(e,{type:"dedent"},r):t?"root"===t.type?Object.assign(Object.assign({},e),{},{root:e}):d(e,{type:"string"==typeof t?"stringAlign":"numberAlign",n:t},r):e}function d(e,t,r){let n="dedent"===t.type?e.queue.slice(0,-1):[...e.queue,t],s="",i=0,a=0,o=0;for(let e of n)switch(e.type){case"indent":p(),r.useTabs?u(1):l(r.tabWidth);break;case"stringAlign":p(),s+=e.n,i+=e.n.length;break;case"numberAlign":a+=1,o+=e.n;break;default:throw new Error(`Unexpected type '${e.type}'`)}return c(),Object.assign(Object.assign({},e),{},{value:s,length:i,queue:n});function u(e){s+="\t".repeat(e),i+=r.tabWidth*e}function l(e){s+=" ".repeat(e),i+=e}function p(){r.useTabs?(a>0&&u(a),h()):c()}function c(){o>0&&l(o),h()}function h(){a=0,o=0}}function f(e){if(0===e.length)return 0;let t=0;for(;e.length>0&&"string"==typeof s(e)&&/^[\t ]*$/.test(s(e));)t+=e.pop().length;if(e.length>0&&"string"==typeof s(e)){let r=s(e).replace(/[\t ]*$/,"");t+=s(e).length-r.length,e[e.length-1]=r}return t}function m(e,t,n,a,o){let u=t.length,c=[e],h=[];for(;n>=0;){if(0===c.length){if(0===u)return!0;c.push(t[--u]);continue}let{mode:e,doc:d}=c.pop();if("string"==typeof d)h.push(d),n-=i(d);else if(l(d)||"fill"===d.type){let t=p(d);for(let r=t.length-1;r>=0;r--)c.push({mode:e,doc:t[r]})}else switch(d.type){case"indent":case"align":case"indent-if-break":case"label":c.push({mode:e,doc:d.contents});break;case"trim":n+=f(h);break;case"group":{if(o&&d.break)return!1;let t=d.break?1:e,r=d.expandedStates&&1===t?s(d.expandedStates):d.contents;c.push({mode:t,doc:r});break}case"if-break":{let t=1===(d.groupId?r[d.groupId]||2:e)?d.breakContents:d.flatContents;t&&c.push({mode:e,doc:t});break}case"line":if(1===e||d.hard)return!0;d.soft||(h.push(" "),n--);break;case"line-suffix":a=!0;break;case"line-suffix-boundary":if(a)return!1}}return!1}t.exports={printDocToString:function(e,t){r={};let d=t.printWidth,y=n(t.endOfLine),g=0,D=[{ind:{value:"",length:0,queue:[]},mode:1,doc:e}],x=[],E=!1,b=[];for(;D.length>0;){let{ind:e,mode:n,doc:C}=D.pop();if("string"==typeof C){let e="\n"!==y?C.replace(/\n/g,y):C;x.push(e),g+=i(e)}else if(l(C)){let t=p(C);for(let r=t.length-1;r>=0;r--)D.push({ind:e,mode:n,doc:t[r]})}else switch(C.type){case"cursor":x.push(o.placeholder);break;case"indent":D.push({ind:c(e,t),mode:n,doc:C.contents});break;case"align":D.push({ind:h(e,C.n,t),mode:n,doc:C.contents});break;case"trim":g-=f(x);break;case"group":switch(n){case 2:if(!E){D.push({ind:e,mode:C.break?1:2,doc:C.contents});break}case 1:{E=!1;let t={ind:e,mode:2,doc:C.contents},r=d-g,n=b.length>0;if(!C.break&&m(t,D,r,n))D.push(t);else if(C.expandedStates){let t=s(C.expandedStates);if(C.break){D.push({ind:e,mode:1,doc:t});break}for(let s=1;s<C.expandedStates.length+1;s++){if(s>=C.expandedStates.length){D.push({ind:e,mode:1,doc:t});break}{let t={ind:e,mode:2,doc:C.expandedStates[s]};if(m(t,D,r,n)){D.push(t);break}}}}else D.push({ind:e,mode:1,doc:C.contents});break}}C.id&&(r[C.id]=s(D).mode);break;case"fill":{let t=d-g,{parts:r}=C;if(0===r.length)break;let[s,i]=r,o={ind:e,mode:2,doc:s},u={ind:e,mode:1,doc:s},l=m(o,[],t,b.length>0,!0);if(1===r.length){l?D.push(o):D.push(u);break}let p={ind:e,mode:2,doc:i},c={ind:e,mode:1,doc:i};if(2===r.length){l?D.push(p,o):D.push(c,u);break}r.splice(0,2);let h={ind:e,mode:n,doc:a(r)};m({ind:e,mode:2,doc:[s,i,r[0]]},[],t,b.length>0,!0)?D.push(h,p,o):l?D.push(h,c,o):D.push(h,c,u);break}case"if-break":case"indent-if-break":{let t=C.groupId?r[C.groupId]:n;if(1===t){let t="if-break"===C.type?C.breakContents:C.negate?C.contents:u(C.contents);t&&D.push({ind:e,mode:n,doc:t})}if(2===t){let t="if-break"===C.type?C.flatContents:C.negate?u(C.contents):C.contents;t&&D.push({ind:e,mode:n,doc:t})}break}case"line-suffix":b.push({ind:e,mode:n,doc:C.contents});break;case"line-suffix-boundary":b.length>0&&D.push({ind:e,mode:n,doc:{type:"line",hard:!0}});break;case"line":switch(n){case 2:if(!C.hard){C.soft||(x.push(" "),g+=1);break}E=!0;case 1:if(b.length>0){D.push({ind:e,mode:n,doc:C},...b.reverse()),b.length=0;break}C.literal?e.root?(x.push(y,e.root.value),g=e.root.length):(x.push(y),g=0):(g-=f(x),x.push(y+e.value),g=e.length)}break;case"label":D.push({ind:e,mode:n,doc:C.contents})}0===D.length&&b.length>0&&(D.push(...b.reverse()),b.length=0)}let C=x.indexOf(o.placeholder);if(-1!==C){let e=x.indexOf(o.placeholder,C+1),t=x.slice(0,C).join(""),r=x.slice(C+1,e).join("");return{formatted:t+r+x.slice(e+1).join(""),cursorNodeStart:t.length,cursorNodeText:r}}return{formatted:x.join("")}}}}}),V=x({"src/document/doc-debug.js"(e,t){v();var{isConcat:r,getDocParts:n}=U();function s(e){if(!e)return"";if(r(e)){let t=[];for(let i of n(e))if(r(i))t.push(...s(i).parts);else{let e=s(i);""!==e&&t.push(e)}return{type:"concat",parts:t}}return"if-break"===e.type?Object.assign(Object.assign({},e),{},{breakContents:s(e.breakContents),flatContents:s(e.flatContents)}):"group"===e.type?Object.assign(Object.assign({},e),{},{contents:s(e.contents),expandedStates:e.expandedStates&&e.expandedStates.map(s)}):"fill"===e.type?{type:"fill",parts:e.parts.map(s)}:e.contents?Object.assign(Object.assign({},e),{},{contents:s(e.contents)}):e}t.exports={printDocToDebug:function(e){let t=Object.create(null),i=new Set;return function e(t,s,i){if("string"==typeof t)return JSON.stringify(t);if(r(t)){let r=n(t).map(e).filter(Boolean);return 1===r.length?r[0]:`[${r.join(", ")}]`}if("line"===t.type){let e=Array.isArray(i)&&i[s+1]&&"break-parent"===i[s+1].type;return t.literal?e?"literalline":"literallineWithoutBreakParent":t.hard?e?"hardline":"hardlineWithoutBreakParent":t.soft?"softline":"line"}if("break-parent"===t.type)return Array.isArray(i)&&i[s-1]&&"line"===i[s-1].type&&i[s-1].hard?void 0:"breakParent";if("trim"===t.type)return"trim";if("indent"===t.type)return"indent("+e(t.contents)+")";if("align"===t.type)return t.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+e(t.contents)+")":t.n<0?"dedent("+e(t.contents)+")":"root"===t.n.type?"markAsRoot("+e(t.contents)+")":"align("+JSON.stringify(t.n)+", "+e(t.contents)+")";if("if-break"===t.type)return"ifBreak("+e(t.breakContents)+(t.flatContents?", "+e(t.flatContents):"")+(t.groupId?(t.flatContents?"":', ""')+`, { groupId: ${a(t.groupId)} }`:"")+")";if("indent-if-break"===t.type){let r=[];t.negate&&r.push("negate: true"),t.groupId&&r.push(`groupId: ${a(t.groupId)}`);let n=r.length>0?`, { ${r.join(", ")} }`:"";return`indentIfBreak(${e(t.contents)}${n})`}if("group"===t.type){let r=[];t.break&&"propagated"!==t.break&&r.push("shouldBreak: true"),t.id&&r.push(`id: ${a(t.id)}`);let n=r.length>0?`, { ${r.join(", ")} }`:"";return t.expandedStates?`conditionalGroup([${t.expandedStates.map((t=>e(t))).join(",")}]${n})`:`group(${e(t.contents)}${n})`}if("fill"===t.type)return`fill([${t.parts.map((t=>e(t))).join(", ")}])`;if("line-suffix"===t.type)return"lineSuffix("+e(t.contents)+")";if("line-suffix-boundary"===t.type)return"lineSuffixBoundary";if("label"===t.type)return`label(${JSON.stringify(t.label)}, ${e(t.contents)})`;throw new Error("Unknown doc type "+t.type)}(s(e));function a(e){if("symbol"!=typeof e)return JSON.stringify(String(e));if(e in t)return t[e];let r=String(e).slice(7,-1)||"symbol";for(let n=0;;n++){let s=r+(n>0?` #${n}`:"");if(!i.has(s))return i.add(s),t[e]=`Symbol.for(${JSON.stringify(s)})`}}}}}}),W=x({"src/document/index.js"(e,t){v(),t.exports={builders:w(),printer:z(),utils:U(),debug:V()}}}),q={};function H(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}E(q,{default:()=>H});var J=D({"node_modules/escape-string-regexp/index.js"(){v()}}),G=x({"node_modules/semver/internal/debug.js"(e,t){v();var r="object"==typeof c&&c.env&&c.env.NODE_DEBUG&&/\bsemver\b/i.test(c.env.NODE_DEBUG)?function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return console.error("SEMVER",...t)}:()=>{};t.exports=r}}),X=x({"node_modules/semver/internal/constants.js"(e,t){v();var r=Number.MAX_SAFE_INTEGER||9007199254740991;t.exports={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:r,MAX_SAFE_COMPONENT_LENGTH:16}}}),K=x({"node_modules/semver/internal/re.js"(e,t){v();var{MAX_SAFE_COMPONENT_LENGTH:r}=X(),n=G(),s=(e=t.exports={}).re=[],i=e.src=[],a=e.t={},o=0,u=(e,t,r)=>{let u=o++;n(e,u,t),a[e]=u,i[u]=t,s[u]=new RegExp(t,r?"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",`(${i[a.NUMERICIDENTIFIER]})\\.(${i[a.NUMERICIDENTIFIER]})\\.(${i[a.NUMERICIDENTIFIER]})`),u("MAINVERSIONLOOSE",`(${i[a.NUMERICIDENTIFIERLOOSE]})\\.(${i[a.NUMERICIDENTIFIERLOOSE]})\\.(${i[a.NUMERICIDENTIFIERLOOSE]})`),u("PRERELEASEIDENTIFIER",`(?:${i[a.NUMERICIDENTIFIER]}|${i[a.NONNUMERICIDENTIFIER]})`),u("PRERELEASEIDENTIFIERLOOSE",`(?:${i[a.NUMERICIDENTIFIERLOOSE]}|${i[a.NONNUMERICIDENTIFIER]})`),u("PRERELEASE",`(?:-(${i[a.PRERELEASEIDENTIFIER]}(?:\\.${i[a.PRERELEASEIDENTIFIER]})*))`),u("PRERELEASELOOSE",`(?:-?(${i[a.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${i[a.PRERELEASEIDENTIFIERLOOSE]})*))`),u("BUILDIDENTIFIER","[0-9A-Za-z-]+"),u("BUILD",`(?:\\+(${i[a.BUILDIDENTIFIER]}(?:\\.${i[a.BUILDIDENTIFIER]})*))`),u("FULLPLAIN",`v?${i[a.MAINVERSION]}${i[a.PRERELEASE]}?${i[a.BUILD]}?`),u("FULL",`^${i[a.FULLPLAIN]}$`),u("LOOSEPLAIN",`[v=\\s]*${i[a.MAINVERSIONLOOSE]}${i[a.PRERELEASELOOSE]}?${i[a.BUILD]}?`),u("LOOSE",`^${i[a.LOOSEPLAIN]}$`),u("GTLT","((?:<|>)?=?)"),u("XRANGEIDENTIFIERLOOSE",`${i[a.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),u("XRANGEIDENTIFIER",`${i[a.NUMERICIDENTIFIER]}|x|X|\\*`),u("XRANGEPLAIN",`[v=\\s]*(${i[a.XRANGEIDENTIFIER]})(?:\\.(${i[a.XRANGEIDENTIFIER]})(?:\\.(${i[a.XRANGEIDENTIFIER]})(?:${i[a.PRERELEASE]})?${i[a.BUILD]}?)?)?`),u("XRANGEPLAINLOOSE",`[v=\\s]*(${i[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[a.XRANGEIDENTIFIERLOOSE]})(?:${i[a.PRERELEASELOOSE]})?${i[a.BUILD]}?)?)?`),u("XRANGE",`^${i[a.GTLT]}\\s*${i[a.XRANGEPLAIN]}$`),u("XRANGELOOSE",`^${i[a.GTLT]}\\s*${i[a.XRANGEPLAINLOOSE]}$`),u("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),u("COERCERTL",i[a.COERCE],!0),u("LONETILDE","(?:~>?)"),u("TILDETRIM",`(\\s*)${i[a.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",u("TILDE",`^${i[a.LONETILDE]}${i[a.XRANGEPLAIN]}$`),u("TILDELOOSE",`^${i[a.LONETILDE]}${i[a.XRANGEPLAINLOOSE]}$`),u("LONECARET","(?:\\^)"),u("CARETTRIM",`(\\s*)${i[a.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",u("CARET",`^${i[a.LONECARET]}${i[a.XRANGEPLAIN]}$`),u("CARETLOOSE",`^${i[a.LONECARET]}${i[a.XRANGEPLAINLOOSE]}$`),u("COMPARATORLOOSE",`^${i[a.GTLT]}\\s*(${i[a.LOOSEPLAIN]})$|^$`),u("COMPARATOR",`^${i[a.GTLT]}\\s*(${i[a.FULLPLAIN]})$|^$`),u("COMPARATORTRIM",`(\\s*)${i[a.GTLT]}\\s*(${i[a.LOOSEPLAIN]}|${i[a.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",u("HYPHENRANGE",`^\\s*(${i[a.XRANGEPLAIN]})\\s+-\\s+(${i[a.XRANGEPLAIN]})\\s*$`),u("HYPHENRANGELOOSE",`^\\s*(${i[a.XRANGEPLAINLOOSE]})\\s+-\\s+(${i[a.XRANGEPLAINLOOSE]})\\s*$`),u("STAR","(<|>)?=?\\s*\\*"),u("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),u("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}}),Z=x({"node_modules/semver/internal/parse-options.js"(e,t){v();var r=["includePrerelease","loose","rtl"];t.exports=e=>e?"object"!=typeof e?{loose:!0}:r.filter((t=>e[t])).reduce(((e,t)=>(e[t]=!0,e)),{}):{}}}),Y=x({"node_modules/semver/internal/identifiers.js"(e,t){v();var r=/^[0-9]+$/,n=(e,t)=>{let n=r.test(e),s=r.test(t);return n&&s&&(e=+e,t=+t),e===t?0:n&&!s?-1:s&&!n?1:e<t?-1:1};t.exports={compareIdentifiers:n,rcompareIdentifiers:(e,t)=>n(t,e)}}}),Q=x({"node_modules/semver/classes/semver.js"(e,t){v();var r=G(),{MAX_LENGTH:n,MAX_SAFE_INTEGER:s}=X(),{re:i,t:a}=K(),o=Z(),{compareIdentifiers:u}=Y(),l=class{constructor(e,t){if(t=o(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>n)throw new TypeError(`version is longer than ${n} characters`);r("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let u=e.trim().match(t.loose?i[a.LOOSE]:i[a.FULL]);if(!u)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+u[1],this.minor=+u[2],this.patch=+u[3],this.major>s||this.major<0)throw new TypeError("Invalid major version");if(this.minor>s||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>s||this.patch<0)throw new TypeError("Invalid patch version");u[4]?this.prerelease=u[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t<s)return t}return e})):this.prerelease=[],this.build=u[5]?u[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(r("SemVer.compare",this.version,this.options,e),!(e instanceof l)){if("string"==typeof e&&e===this.version)return 0;e=new l(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof l||(e=new l(e,this.options)),u(this.major,e.major)||u(this.minor,e.minor)||u(this.patch,e.patch)}comparePre(e){if(e instanceof l||(e=new l(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{let n=this.prerelease[t],s=e.prerelease[t];if(r("prerelease compare",t,n,s),void 0===n&&void 0===s)return 0;if(void 0===s)return 1;if(void 0===n)return-1;if(n!==s)return u(n,s)}while(++t)}compareBuild(e){e instanceof l||(e=new l(e,this.options));let t=0;do{let n=this.build[t],s=e.build[t];if(r("prerelease compare",t,n,s),void 0===n&&void 0===s)return 0;if(void 0===s)return 1;if(void 0===n)return-1;if(n!==s)return u(n,s)}while(++t)}inc(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":(0!==this.minor||0!==this.patch||0===this.prerelease.length)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(0!==this.patch||0===this.prerelease.length)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{let e=this.prerelease.length;for(;--e>=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(0===u(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}};t.exports=l}}),ee=x({"node_modules/semver/functions/compare.js"(e,t){v();var r=Q();t.exports=(e,t,n)=>new r(e,n).compare(new r(t,n))}}),te=x({"node_modules/semver/functions/lt.js"(e,t){v();var r=ee();t.exports=(e,t,n)=>r(e,t,n)<0}}),re=x({"node_modules/semver/functions/gte.js"(e,t){v();var r=ee();t.exports=(e,t,n)=>r(e,t,n)>=0}}),ne=x({"src/utils/arrayify.js"(e,t){v(),t.exports=(e,t)=>Object.entries(e).map((e=>{let[r,n]=e;return Object.assign({[t]:r},n)}))}}),se=x({"node_modules/outdent/lib/index.js"(e,t){function r(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]}function n(){return typeof WeakMap<"u"?new WeakMap:{add:r,delete:r,get:r,set:r,has:function(e){return!1}}}v(),Object.defineProperty(e,"__esModule",{value:!0}),e.outdent=void 0;var s=Object.prototype.hasOwnProperty,i=function(e,t){return s.call(e,t)};function a(e,t){for(var r in t)i(t,r)&&(e[r]=t[r]);return e}var o=/^[ \t]*(?:\r\n|\r|\n)/,u=/(?:\r\n|\r|\n)[ \t]*$/,l=/^(?:[\r\n]|$)/,p=/(?:\r\n|\r|\n)([ \t]*)(?:[^ \t\r\n]|$)/,c=/^[ \t]*[\r\n][ \t\r\n]*$/;function h(e,t,r){var n=0,s=e[0].match(p);s&&(n=s[1].length);var i=new RegExp("(\\r\\n|\\r|\\n).{0,"+n+"}","g");t&&(e=e.slice(1));var a=r.newline,l=r.trimLeadingNewline,c=r.trimTrailingNewline,h="string"==typeof a,d=e.length;return e.map((function(e,t){return e=e.replace(i,"$1"),0===t&&l&&(e=e.replace(o,"")),t===d-1&&c&&(e=e.replace(u,"")),h&&(e=e.replace(/\r\n|\n|\r/g,(function(e){return a}))),e}))}var d=function e(t){var r=n(),s=n();return a((function n(o){for(var u=[],p=1;p<arguments.length;p++)u[p-1]=arguments[p];if(function(e){return i(e,"raw")&&i(e,"length")}(o)){var f=o,m=(u[0]===n||u[0]===d)&&c.test(f[0])&&l.test(f[1]),y=m?s:r,g=y.get(f);return g||(g=h(f,m,t),y.set(f,g)),0===u.length?g[0]:function(e,t){for(var r="",n=0,s=e.length;n<s;n++)r+=e[n],n<s-1&&(r+=t[n]);return r}(g,m?u.slice(1):u)}return e(a(a({},t),o||{}))}),{string:function(e){return h([e],!1,t)[0]}})}({trimLeadingNewline:!0,trimTrailingNewline:!0});if(e.outdent=d,e.default=d,typeof t<"u")try{t.exports=d,Object.defineProperty(d,"__esModule",{value:!0}),d.default=d,d.outdent=d}catch{}}}),ie=x({"src/main/core-options.js"(e,t){v();var{outdent:r}=se(),n="Config",s="Editor",i="Other",a="Global",o="Special",u={cursorOffset:{since:"1.4.0",category:o,type:"int",default:-1,range:{start:-1,end:Number.POSITIVE_INFINITY,step:1},description:r`
|
|
3
|
+
Print (to stderr) where a cursor at the given position would move to after formatting.
|
|
4
|
+
This option cannot be used with --range-start and --range-end.
|
|
5
|
+
`,cliCategory:s},endOfLine:{since:"1.15.0",category:a,type:"choice",default:[{since:"1.15.0",value:"auto"},{since:"2.0.0",value:"lf"}],description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:r`
|
|
6
|
+
Maintain existing
|
|
7
|
+
(mixed values within one file are normalised by looking at what's used after the first line)
|
|
8
|
+
`}]},filepath:{since:"1.4.0",category:o,type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:i,cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{since:"1.8.0",category:o,type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:i},parser:{since:"0.0.10",category:a,type:"choice",default:[{since:"0.0.10",value:"babylon"},{since:"1.13.0",value:void 0}],description:"Which parser to use.",exception:e=>"string"==typeof e||"function"==typeof e,choices:[{value:"flow",description:"Flow"},{value:"babel",since:"1.16.0",description:"JavaScript"},{value:"babel-flow",since:"1.16.0",description:"Flow"},{value:"babel-ts",since:"2.0.0",description:"TypeScript"},{value:"typescript",since:"1.4.0",description:"TypeScript"},{value:"acorn",since:"2.6.0",description:"JavaScript"},{value:"espree",since:"2.2.0",description:"JavaScript"},{value:"meriyah",since:"2.2.0",description:"JavaScript"},{value:"css",since:"1.7.1",description:"CSS"},{value:"less",since:"1.7.1",description:"Less"},{value:"scss",since:"1.7.1",description:"SCSS"},{value:"json",since:"1.5.0",description:"JSON"},{value:"json5",since:"1.13.0",description:"JSON5"},{value:"json-stringify",since:"1.13.0",description:"JSON.stringify"},{value:"graphql",since:"1.5.0",description:"GraphQL"},{value:"markdown",since:"1.8.0",description:"Markdown"},{value:"mdx",since:"1.15.0",description:"MDX"},{value:"vue",since:"1.10.0",description:"Vue"},{value:"yaml",since:"1.14.0",description:"YAML"},{value:"glimmer",since:"2.3.0",description:"Ember / Handlebars"},{value:"html",since:"1.15.0",description:"HTML"},{value:"angular",since:"1.15.0",description:"Angular"},{value:"lwc",since:"1.17.0",description:"Lightning Web Components"}]},plugins:{since:"1.10.0",type:"path",array:!0,default:[{value:[]}],category:a,description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>"string"==typeof e||"object"==typeof e,cliName:"plugin",cliCategory:n},pluginSearchDirs:{since:"1.13.0",type:"path",array:!0,default:[{value:[]}],category:a,description:r`
|
|
9
|
+
Custom directory that contains prettier plugins in node_modules subdirectory.
|
|
10
|
+
Overrides default behavior when plugins are searched relatively to the location of Prettier.
|
|
11
|
+
Multiple values are accepted.
|
|
12
|
+
`,exception:e=>"string"==typeof e||"object"==typeof e,cliName:"plugin-search-dir",cliCategory:n},printWidth:{since:"0.0.0",category:a,type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},rangeEnd:{since:"1.4.0",category:o,type:"int",default:Number.POSITIVE_INFINITY,range:{start:0,end:Number.POSITIVE_INFINITY,step:1},description:r`
|
|
13
|
+
Format code ending at a given character offset (exclusive).
|
|
14
|
+
The range will extend forwards to the end of the selected statement.
|
|
15
|
+
This option cannot be used with --cursor-offset.
|
|
16
|
+
`,cliCategory:s},rangeStart:{since:"1.4.0",category:o,type:"int",default:0,range:{start:0,end:Number.POSITIVE_INFINITY,step:1},description:r`
|
|
17
|
+
Format code starting at a given character offset.
|
|
18
|
+
The range will extend backwards to the start of the first line containing the selected statement.
|
|
19
|
+
This option cannot be used with --cursor-offset.
|
|
20
|
+
`,cliCategory:s},requirePragma:{since:"1.7.0",category:o,type:"boolean",default:!1,description:r`
|
|
21
|
+
Require either '@prettier' or '@format' to be present in the file's first docblock comment
|
|
22
|
+
in order for it to be formatted.
|
|
23
|
+
`,cliCategory:i},tabWidth:{type:"int",category:a,default:2,description:"Number of spaces per indentation level.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},useTabs:{since:"1.0.0",category:a,type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{since:"2.1.0",category:a,type:"choice",default:[{since:"2.1.0",value:"auto"}],description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};t.exports={CATEGORY_CONFIG:n,CATEGORY_EDITOR:s,CATEGORY_FORMAT:"Format",CATEGORY_OTHER:i,CATEGORY_OUTPUT:"Output",CATEGORY_GLOBAL:a,CATEGORY_SPECIAL:o,options:u}}}),ae=x({"src/main/support.js"(e,t){v();var r={compare:ee(),lt:te(),gte:re()},n=ne(),s=A().version,i=ie().options;t.exports={getSupportInfo:function(){let{plugins:e=[],showUnreleased:t=!1,showDeprecated:a=!1,showInternal:u=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=s.split("-",1)[0],c=e.flatMap((e=>e.languages||[])).filter(d),h=n(Object.assign({},...e.map((e=>{let{options:t}=e;return t})),i),"name").filter((e=>d(e)&&f(e))).sort(((e,t)=>e.name===t.name?0:e.name<t.name?-1:1)).map((function(e){if(u)return e;let{cliName:t,cliCategory:r,cliDescription:n}=e;return p(e,o)})).map((t=>{t=Object.assign({},t),Array.isArray(t.default)&&(t.default=1===t.default.length?t.default[0].value:t.default.filter(d).sort(((e,t)=>r.compare(t.since,e.since)))[0].value),Array.isArray(t.choices)&&(t.choices=t.choices.filter((e=>d(e)&&f(e))),"parser"===t.name&&function(e,t,r){let n=new Set(e.choices.map((e=>e.value)));for(let s of t)if(s.parsers)for(let t of s.parsers)if(!n.has(t)){n.add(t);let i=r.find((e=>e.parsers&&e.parsers[t])),a=s.name;i&&i.name&&(a+=` (plugin: ${i.name})`),e.choices.push({value:t,description:a})}}(t,c,e));let n=Object.fromEntries(e.filter((e=>e.defaultOptions&&void 0!==e.defaultOptions[t.name])).map((e=>[e.name,e.defaultOptions[t.name]])));return Object.assign(Object.assign({},t),{},{pluginDefaults:n})}));return{languages:c,options:h};function d(e){return t||!("since"in e)||e.since&&r.gte(l,e.since)}function f(e){return a||!("deprecated"in e)||e.deprecated&&r.lt(l,e.deprecated)}}}}}),oe=x({"src/utils/is-non-empty-array.js"(e,t){v(),t.exports=function(e){return Array.isArray(e)&&e.length>0}}}),ue=x({"src/utils/text/skip.js"(e,t){function r(e){return(t,r,n)=>{let s=n&&n.backwards;if(!1===r)return!1;let{length:i}=t,a=r;for(;a>=0&&a<i;){let r=t.charAt(a);if(e instanceof RegExp){if(!e.test(r))return a}else if(!e.includes(r))return a;s?a--:a++}return(-1===a||a===i)&&a}}v();var n=r(/\s/),s=r(" \t"),i=r(",; \t"),a=r(/[^\n\r]/);t.exports={skipWhitespace:n,skipSpaces:s,skipToLineEnd:i,skipEverythingButNewLine:a}}}),le=x({"src/utils/text/skip-inline-comment.js"(e,t){v(),t.exports=function(e,t){if(!1===t)return!1;if("/"===e.charAt(t)&&"*"===e.charAt(t+1))for(let r=t+2;r<e.length;++r)if("*"===e.charAt(r)&&"/"===e.charAt(r+1))return r+2;return t}}}),pe=x({"src/utils/text/skip-trailing-comment.js"(e,t){v();var{skipEverythingButNewLine:r}=ue();t.exports=function(e,t){return!1!==t&&("/"===e.charAt(t)&&"/"===e.charAt(t+1)?r(e,t):t)}}}),ce=x({"src/utils/text/skip-newline.js"(e,t){v(),t.exports=function(e,t,r){let n=r&&r.backwards;if(!1===t)return!1;let s=e.charAt(t);if(n){if("\r"===e.charAt(t-1)&&"\n"===s)return t-2;if("\n"===s||"\r"===s||"\u2028"===s||"\u2029"===s)return t-1}else{if("\r"===s&&"\n"===e.charAt(t+1))return t+2;if("\n"===s||"\r"===s||"\u2028"===s||"\u2029"===s)return t+1}return t}}}),he=x({"src/utils/text/get-next-non-space-non-comment-character-index-with-start-index.js"(e,t){v();var r=le(),n=ce(),s=pe(),{skipSpaces:i}=ue();t.exports=function(e,t){let a=null,o=t;for(;o!==a;)a=o,o=i(e,o),o=r(e,o),o=s(e,o),o=n(e,o);return o}}}),de=x({"src/common/util.js"(e,t){v();var{default:r}=(J(),C(q)),n=P(),{getSupportInfo:s}=ae(),i=oe(),a=$(),{skipWhitespace:o,skipSpaces:u,skipToLineEnd:l,skipEverythingButNewLine:p}=ue(),c=le(),h=pe(),d=ce(),f=he();function m(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=u(e,r.backwards?t-1:t,r);return n!==d(e,n,r)}function y(e,t){let r=null,n=t;for(;n!==r;)r=n,n=l(e,n),n=c(e,n),n=u(e,n);return n=h(e,n),n=d(e,n),!1!==n&&m(e,n)}function g(e,t,r){return f(e,r(t))}function D(e,t){let r=0;for(let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;n<e.length;++n)"\t"===e[n]?r=r+t-r%t:r++;return r}function x(e,t){let r={quote:'"',regex:/"/g,escaped:"""},n={quote:"'",regex:/'/g,escaped:"'"},s="'"===t?n:r,i=s===n?r:n,a=s;return(e.includes(s.quote)||e.includes(i.quote))&&(a=(e.match(s.regex)||[]).length>(e.match(i.regex)||[]).length?i:s),a}function E(e,t,r){let n='"'===t?"'":'"',s=e.replace(/\\(.)|(["'])/gs,((e,s,i)=>s===n?s:i===t?"\\"+i:i||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(s)?s:"\\"+s)));return t+s+t}function b(e,t){(e.comments||(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=function(e){let t=e.type||e.kind||"(unknown type)",r=String(e.name||e.id&&("object"==typeof e.id?e.id.name:e.id)||e.key&&("object"==typeof e.key?e.key.name:e.key)||e.value&&("object"==typeof e.value?"":String(e.value))||e.operator||"");return r.length>20&&(r=r.slice(0,19)+"…"),t+(r?" "+r:"")}(e)}t.exports={inferParserByLanguage:function(e,t){let{languages:r}=s({plugins:t.plugins}),n=r.find((t=>{let{name:r}=t;return r.toLowerCase()===e}))||r.find((t=>{let{aliases:r}=t;return Array.isArray(r)&&r.includes(e)}))||r.find((t=>{let{extensions:r}=t;return Array.isArray(r)&&r.includes(`.${e}`)}));return n&&n.parsers[0]},getStringWidth:a,getMaxContinuousCount:function(e,t){let n=e.match(new RegExp(`(${r(t)})+`,"g"));return null===n?0:n.reduce(((e,r)=>Math.max(e,r.length/t.length)),0)},getMinNotPresentContinuousCount:function(e,t){let n=e.match(new RegExp(`(${r(t)})+`,"g"));if(null===n)return 0;let s=new Map,i=0;for(let e of n){let r=e.length/t.length;s.set(r,!0),r>i&&(i=r)}for(let e=1;e<i;e++)if(!s.get(e))return e;return i+1},getPenultimate:e=>e[e.length-2],getLast:n,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:f,getNextNonSpaceNonCommentCharacterIndex:g,getNextNonSpaceNonCommentCharacter:function(e,t,r){return e.charAt(g(e,t,r))},skip:function(e){return(t,r,n)=>{let s=n&&n.backwards;if(!1===r)return!1;let{length:i}=t,a=r;for(;a>=0&&a<i;){let r=t.charAt(a);if(e instanceof RegExp){if(!e.test(r))return a}else if(!e.includes(r))return a;s?a--:a++}return(-1===a||a===i)&&a}},skipWhitespace:o,skipSpaces:u,skipToLineEnd:l,skipEverythingButNewLine:p,skipInlineComment:c,skipTrailingComment:h,skipNewline:d,isNextLineEmptyAfterIndex:y,isNextLineEmpty:function(e,t,r){return y(e,r(t))},isPreviousLineEmpty:function(e,t,r){let n=r(t)-1;return n=u(e,n,{backwards:!0}),n=d(e,n,{backwards:!0}),n=u(e,n,{backwards:!0}),n!==d(e,n,{backwards:!0})},hasNewline:m,hasNewlineInRange:function(e,t,r){for(let n=t;n<r;++n)if("\n"===e.charAt(n))return!0;return!1},hasSpaces:function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return u(e,r.backwards?t-1:t,r)!==t},getAlignmentSize:D,getIndentSize:function(e,t){let r=e.lastIndexOf("\n");return-1===r?0:D(e.slice(r+1).match(/^[\t ]*/)[0],t)},getPreferredQuote:x,printString:function(e,t){let r=e.slice(1,-1);return E(r,"json"===t.parser||"json5"===t.parser&&"preserve"===t.quoteProps&&!t.singleQuote?'"':t.__isInHtmlAttribute?"'":x(r,t.singleQuote?"'":'"').quote,!("css"===t.parser||"less"===t.parser||"scss"===t.parser||t.__embeddedInHtml))},printNumber:function(e){return e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(\d)/,"$1$2$3").replace(/^([+-]?[\d.]+)e[+-]?0+$/,"$1").replace(/^([+-])?\./,"$10.").replace(/(\.\d+?)0+(?=e|$)/,"$1").replace(/\.(?=e|$)/,"")},makeString:E,addLeadingComment:function(e,t){t.leading=!0,t.trailing=!1,b(e,t)},addDanglingComment:function(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),b(e,t)},addTrailingComment:function(e,t){t.leading=!1,t.trailing=!0,b(e,t)},isFrontMatterNode:function(e){return e&&"front-matter"===e.type},isNonEmptyArray:i,createGroupIdMapper:function(e){let t=new WeakMap;return function(r){return t.has(r)||t.set(r,Symbol(e)),t.get(r)}}}}}),fe={};function me(e,t){for(var r=0,n=e.length-1;n>=0;n--){var s=e[n];"."===s?e.splice(n,1):".."===s?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}function ye(){for(var e="",t=!1,r=arguments.length-1;r>=-1&&!t;r--){var n=r>=0?arguments[r]:"/";if("string"!=typeof n)throw new TypeError("Arguments to path.resolve must be strings");n&&(e=n+"/"+e,t="/"===n.charAt(0))}return(t?"/":"")+(e=me(Ae(e.split("/"),(function(e){return!!e})),!t).join("/"))||"."}function ge(e){var t=De(e),r="/"===Ne(e,-1);return!(e=me(Ae(e.split("/"),(function(e){return!!e})),!t).join("/"))&&!t&&(e="."),e&&r&&(e+="/"),(t?"/":"")+e}function De(e){return"/"===e.charAt(0)}function xe(){return ge(Ae(Array.prototype.slice.call(arguments,0),(function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))}function Ee(e,t){function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var r=e.length-1;r>=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}e=ye(e).substr(1),t=ye(t).substr(1);for(var n=r(e.split("/")),s=r(t.split("/")),i=Math.min(n.length,s.length),a=i,o=0;o<i;o++)if(n[o]!==s[o]){a=o;break}var u=[];for(o=a;o<n.length;o++)u.push("..");return(u=u.concat(s.slice(a))).join("/")}function be(e){var t=Te(e),r=t[0],n=t[1];return r||n?(n&&(n=n.substr(0,n.length-1)),r+n):"."}function Ce(e,t){var r=Te(e)[2];return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r}function ve(e){return Te(e)[3]}function Ae(e,t){if(e.filter)return e.filter(t);for(var r=[],n=0;n<e.length;n++)t(e[n],n,e)&&r.push(e[n]);return r}E(fe,{basename:()=>Ce,default:()=>ke,delimiter:()=>Fe,dirname:()=>be,extname:()=>ve,isAbsolute:()=>De,join:()=>xe,normalize:()=>ge,relative:()=>Ee,resolve:()=>ye,sep:()=>we});var Se,Te,we,Fe,ke,Ne,Ie=D({"node-modules-polyfills:path"(){v(),Se=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,Te=function(e){return Se.exec(e).slice(1)},ke={extname:ve,basename:Ce,dirname:be,sep:we="/",delimiter:Fe=":",relative:Ee,join:xe,isAbsolute:De,normalize:ge,resolve:ye},Ne=function(e,t,r){return e.substr(t,r)}}}),Be=x({"node-modules-polyfills-commonjs:path"(e,t){v();var r=(Ie(),C(fe));if(r&&r.default){t.exports=r.default;for(let e in r)t.exports[e]=r[e]}else r&&(t.exports=r)}}),_e=x({"src/common/errors.js"(e,t){v();var r=class extends Error{},n=class extends Error{},s=class extends Error{},i=class extends Error{};t.exports={ConfigError:r,DebugError:n,UndefinedParserError:s,ArgExpansionBailout:i}}}),Oe={};function Le(e,t){function r(){this.constructor=e}ut(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function Me(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(n=Object.getOwnPropertySymbols(e);s<n.length;s++)t.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(e,n[s])&&(r[n[s]]=e[n[s]])}return r}function Re(e,t,r,n){var s,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}function Ue(e,t){return function(r,n){t(r,n,e)}}function We(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function qe(e,t,r,n){return new(r||(r=Promise))((function(s,i){function a(e){try{u(n.next(e))}catch(e){i(e)}}function o(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){e.done?s(e.value):function(e){return e instanceof r?e:new r((function(t){t(e)}))}(e.value).then(a,o)}u((n=n.apply(e,t||[])).next())}))}function He(e,t){var r,n,s,i,a={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return i={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function o(i){return function(o){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(s=2&i[0]?n.return:i[0]?n.throw||((s=n.return)&&s.call(n),0):n.next)&&!(s=s.call(n,i[1])).done)return s;switch(n=0,s&&(i=[2&i[0],s.value]),i[0]){case 0:case 1:s=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(s=(s=a.trys).length>0&&s[s.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!s||i[1]>s[0]&&i[1]<s[3])){a.label=i[1];break}if(6===i[0]&&a.label<s[1]){a.label=s[1],s=i;break}if(s&&a.label<s[2]){a.label=s[2],a.ops.push(i);break}s[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=s=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,o])}}}function Je(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}function Ge(e,t){for(var r in e)"default"!==r&&!t.hasOwnProperty(r)&&(t[r]=e[r])}function Xe(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ke(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,s,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){s={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(s)throw s.error}}return a}function Ze(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Ke(arguments[t]));return e}function Ye(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),s=0;for(t=0;t<r;t++)for(var i=arguments[t],a=0,o=i.length;a<o;a++,s++)n[s]=i[a];return n}function Qe(e){return this instanceof Qe?(this.v=e,this):new Qe(e)}function et(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,s=r.apply(e,t||[]),i=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(e){s[e]&&(n[e]=function(t){return new Promise((function(r,n){i.push([e,t,r,n])>1||o(e,t)}))})}function o(e,t){try{!function(e){e.value instanceof Qe?Promise.resolve(e.value.v).then(u,l):p(i[0][2],e)}(s[e](t))}catch(e){p(i[0][3],e)}}function u(e){o("next",e)}function l(e){o("throw",e)}function p(e,t){e(t),i.shift(),i.length&&o(i[0][0],i[0][1])}}function tt(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,s){t[n]=e[n]?function(t){return(r=!r)?{value:Qe(e[n](t)),done:"return"===n}:s?s(t):t}:s}}function rt(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=Xe(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,s){!function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}(n,s,(t=e[r](t)).done,t.value)}))}}}function nt(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function st(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function it(e){return e&&e.__esModule?e:{default:e}}function at(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function ot(e,t,r){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,r),r}E(Oe,{__assign:()=>lt,__asyncDelegator:()=>tt,__asyncGenerator:()=>et,__asyncValues:()=>rt,__await:()=>Qe,__awaiter:()=>qe,__classPrivateFieldGet:()=>at,__classPrivateFieldSet:()=>ot,__createBinding:()=>Je,__decorate:()=>Re,__exportStar:()=>Ge,__extends:()=>Le,__generator:()=>He,__importDefault:()=>it,__importStar:()=>st,__makeTemplateObject:()=>nt,__metadata:()=>We,__param:()=>Ue,__read:()=>Ke,__rest:()=>Me,__spread:()=>Ze,__spreadArrays:()=>Ye,__values:()=>Xe});var ut,lt,pt=D({"node_modules/tslib/tslib.es6.js"(){v(),ut=function(e,t){return(ut=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},lt=function(){return lt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var s in t=arguments[r])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},lt.apply(this,arguments)}}}),ct=x({"node_modules/vnopts/lib/descriptors/api.js"(e){v(),Object.defineProperty(e,"__esModule",{value:!0}),e.apiDescriptor={key:e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e),value(t){if(null===t||"object"!=typeof t)return JSON.stringify(t);if(Array.isArray(t))return`[${t.map((t=>e.apiDescriptor.value(t))).join(", ")}]`;let r=Object.keys(t);return 0===r.length?"{}":`{ ${r.map((r=>`${e.apiDescriptor.key(r)}: ${e.apiDescriptor.value(t[r])}`)).join(", ")} }`},pair:t=>{let{key:r,value:n}=t;return e.apiDescriptor.value({[r]:n})}}}}),ht=x({"node_modules/vnopts/lib/descriptors/index.js"(e){v(),Object.defineProperty(e,"__esModule",{value:!0}),(pt(),C(Oe)).__exportStar(ct(),e)}}),dt=x({"scripts/build/shims/chalk.cjs"(e,t){v();var r=e=>e;r.grey=r,r.red=r,r.bold=r,r.yellow=r,r.blue=r,r.default=r,t.exports=r}}),ft=x({"node_modules/vnopts/lib/handlers/deprecated/common.js"(e){v(),Object.defineProperty(e,"__esModule",{value:!0});var t=dt();e.commonDeprecatedHandler=(e,r,n)=>{let{descriptor:s}=n,i=[`${t.default.yellow("string"==typeof e?s.key(e):s.pair(e))} is deprecated`];return r&&i.push(`we now treat it as ${t.default.blue("string"==typeof r?s.key(r):s.pair(r))}`),i.join("; ")+"."}}}),mt=x({"node_modules/vnopts/lib/handlers/deprecated/index.js"(e){v(),Object.defineProperty(e,"__esModule",{value:!0}),(pt(),C(Oe)).__exportStar(ft(),e)}}),yt=x({"node_modules/vnopts/lib/handlers/invalid/common.js"(e){v(),Object.defineProperty(e,"__esModule",{value:!0});var t=dt();e.commonInvalidHandler=(e,r,n)=>[`Invalid ${t.default.red(n.descriptor.key(e))} value.`,`Expected ${t.default.blue(n.schemas[e].expected(n))},`,`but received ${t.default.red(n.descriptor.value(r))}.`].join(" ")}}),gt=x({"node_modules/vnopts/lib/handlers/invalid/index.js"(e){v(),Object.defineProperty(e,"__esModule",{value:!0}),(pt(),C(Oe)).__exportStar(yt(),e)}}),Dt=x({"node_modules/vnopts/node_modules/leven/index.js"(e,t){v();var r=[],n=[];t.exports=function(e,t){if(e===t)return 0;var s=e;e.length>t.length&&(e=t,t=s);var i=e.length,a=t.length;if(0===i)return a;if(0===a)return i;for(;i>0&&e.charCodeAt(~-i)===t.charCodeAt(~-a);)i--,a--;if(0===i)return a;for(var o=0;o<i&&e.charCodeAt(o)===t.charCodeAt(o);)o++;if(a-=o,0==(i-=o))return a;for(var u,l,p,c,h=0,d=0;h<i;)n[o+h]=e.charCodeAt(o+h),r[h]=++h;for(;d<a;)for(u=t.charCodeAt(o+d),p=d++,l=d,h=0;h<i;h++)c=u===n[o+h]?p:p+1,p=r[h],l=r[h]=p>l?c>l?l+1:c:c>p?p+1:c;return l}}}),xt=x({"node_modules/vnopts/lib/handlers/unknown/leven.js"(e){v(),Object.defineProperty(e,"__esModule",{value:!0});var t=dt(),r=Dt();e.levenUnknownHandler=(e,n,s)=>{let{descriptor:i,logger:a,schemas:o}=s,u=[`Ignored unknown option ${t.default.yellow(i.pair({key:e,value:n}))}.`],l=Object.keys(o).sort().find((t=>r(e,t)<3));l&&u.push(`Did you mean ${t.default.blue(i.key(l))}?`),a.warn(u.join(" "))}}}),Et=x({"node_modules/vnopts/lib/handlers/unknown/index.js"(e){v(),Object.defineProperty(e,"__esModule",{value:!0}),(pt(),C(Oe)).__exportStar(xt(),e)}}),bt=x({"node_modules/vnopts/lib/handlers/index.js"(e){v(),Object.defineProperty(e,"__esModule",{value:!0});var t=(pt(),C(Oe));t.__exportStar(mt(),e),t.__exportStar(gt(),e),t.__exportStar(Et(),e)}}),Ct=x({"node_modules/vnopts/lib/schema.js"(e){v(),Object.defineProperty(e,"__esModule",{value:!0});var t=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function r(e,r){let i=new e(r),a=Object.create(i);for(let e of t)e in r&&(a[e]=s(r[e],i,n.prototype[e].length));return a}e.createSchema=r;var n=class{constructor(e){this.name=e.name}static create(e){return r(this,e)}default(e){}expected(e){return"nothing"}validate(e,t){return!1}deprecated(e,t){return!1}forward(e,t){}redirect(e,t){}overlap(e,t,r){return e}preprocess(e,t){return e}postprocess(e,t){return e}};function s(e,t,r){return"function"==typeof e?function(){for(var n=arguments.length,s=new Array(n),i=0;i<n;i++)s[i]=arguments[i];return e(...s.slice(0,r-1),t,...s.slice(r-1))}:()=>e}e.Schema=n}}),vt=x({"node_modules/vnopts/lib/schemas/alias.js"(e){v(),Object.defineProperty(e,"__esModule",{value:!0});var t=Ct(),r=class extends t.Schema{constructor(e){super(e),this._sourceName=e.sourceName}expected(e){return e.schemas[this._sourceName].expected(e)}validate(e,t){return t.schemas[this._sourceName].validate(e,t)}redirect(e,t){return this._sourceName}};e.AliasSchema=r}}),At=x({"node_modules/vnopts/lib/schemas/any.js"(e){v(),Object.defineProperty(e,"__esModule",{value:!0});var t=Ct(),r=class extends t.Schema{expected(){return"anything"}validate(){return!0}};e.AnySchema=r}}),St=x({"node_modules/vnopts/lib/schemas/array.js"(e){v(),Object.defineProperty(e,"__esModule",{value:!0});var t=(pt(),C(Oe)),r=Ct(),n=class extends r.Schema{constructor(e){var{valueSchema:r,name:n=r.name}=e,s=t.__rest(e,["valueSchema","name"]);super(Object.assign({},s,{name:n})),this._valueSchema=r}expected(e){return`an array of ${this._valueSchema.expected(e)}`}validate(e,t){if(!Array.isArray(e))return!1;let r=[];for(let n of e){let e=t.normalizeValidateResult(this._valueSchema.validate(n,t),n);!0!==e&&r.push(e.value)}return 0===r.length||{value:r}}deprecated(e,t){let r=[];for(let n of e){let e=t.normalizeDeprecatedResult(this._valueSchema.deprecated(n,t),n);!1!==e&&r.push(...e.map((e=>{let{value:t}=e;return{value:[t]}})))}return r}forward(e,t){let r=[];for(let n of e){let e=t.normalizeForwardResult(this._valueSchema.forward(n,t),n);r.push(...e.map(s))}return r}redirect(e,t){let r=[],n=[];for(let i of e){let e=t.normalizeRedirectResult(this._valueSchema.redirect(i,t),i);"remain"in e&&r.push(e.remain),n.push(...e.redirect.map(s))}return 0===r.length?{redirect:n}:{redirect:n,remain:r}}overlap(e,t){return e.concat(t)}};function s(e){let{from:t,to:r}=e;return{from:[t],to:r}}e.ArraySchema=n}}),Tt=x({"node_modules/vnopts/lib/schemas/boolean.js"(e){v(),Object.defineProperty(e,"__esModule",{value:!0});var t=Ct(),r=class extends t.Schema{expected(){return"true or false"}validate(e){return"boolean"==typeof e}};e.BooleanSchema=r}}),wt=x({"node_modules/vnopts/lib/utils.js"(e){function t(e,t){return"string"==typeof e||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}function r(e,r){return void 0===e?[]:Array.isArray(e)?e.map((e=>t(e,r))):[t(e,r)]}v(),Object.defineProperty(e,"__esModule",{value:!0}),e.recordFromArray=function(e,t){let r=Object.create(null);for(let n of e){let e=n[t];if(r[e])throw new Error(`Duplicate ${t} ${JSON.stringify(e)}`);r[e]=n}return r},e.mapFromArray=function(e,t){let r=new Map;for(let n of e){let e=n[t];if(r.has(e))throw new Error(`Duplicate ${t} ${JSON.stringify(e)}`);r.set(e,n)}return r},e.createAutoChecklist=function(){let e=Object.create(null);return t=>{let r=JSON.stringify(t);return!!e[r]||(e[r]=!0,!1)}},e.partition=function(e,t){let r=[],n=[];for(let s of e)t(s)?r.push(s):n.push(s);return[r,n]},e.isInt=function(e){return e===Math.floor(e)},e.comparePrimitive=function(e,t){if(e===t)return 0;let r=typeof e,n=typeof t,s=["undefined","object","boolean","number","string"];return r!==n?s.indexOf(r)-s.indexOf(n):"string"!==r?Number(e)-Number(t):e.localeCompare(t)},e.normalizeDefaultResult=function(e){return void 0===e?{}:e},e.normalizeValidateResult=function(e,t){return!0===e||(!1===e?{value:t}:e)},e.normalizeDeprecatedResult=function(e,t){return!1!==e&&(!0===e?!!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])||[{value:t}]:"value"in e?[e]:0!==e.length&&e)},e.normalizeTransferResult=t,e.normalizeForwardResult=r,e.normalizeRedirectResult=function(e,t){let n=r("object"==typeof e&&"redirect"in e?e.redirect:e,t);return 0===n.length?{remain:t,redirect:n}:"object"==typeof e&&"remain"in e?{remain:e.remain,redirect:n}:{redirect:n}}}}),Ft=x({"node_modules/vnopts/lib/schemas/choice.js"(e){v(),Object.defineProperty(e,"__esModule",{value:!0});var t=Ct(),r=wt(),n=class extends t.Schema{constructor(e){super(e),this._choices=r.mapFromArray(e.choices.map((e=>e&&"object"==typeof e?e:{value:e})),"value")}expected(e){let{descriptor:t}=e,n=Array.from(this._choices.keys()).map((e=>this._choices.get(e))).filter((e=>!e.deprecated)).map((e=>e.value)).sort(r.comparePrimitive).map(t.value),s=n.slice(0,-2),i=n.slice(-2);return s.concat(i.join(" or ")).join(", ")}validate(e){return this._choices.has(e)}deprecated(e){let t=this._choices.get(e);return!(!t||!t.deprecated)&&{value:e}}forward(e){let t=this._choices.get(e);return t?t.forward:void 0}redirect(e){let t=this._choices.get(e);return t?t.redirect:void 0}};e.ChoiceSchema=n}}),Pt=x({"node_modules/vnopts/lib/schemas/number.js"(e){v(),Object.defineProperty(e,"__esModule",{value:!0});var t=Ct(),r=class extends t.Schema{expected(){return"a number"}validate(e,t){return"number"==typeof e}};e.NumberSchema=r}}),kt=x({"node_modules/vnopts/lib/schemas/integer.js"(e){v(),Object.defineProperty(e,"__esModule",{value:!0});var t=wt(),r=Pt(),n=class extends r.NumberSchema{expected(){return"an integer"}validate(e,r){return!0===r.normalizeValidateResult(super.validate(e,r),e)&&t.isInt(e)}};e.IntegerSchema=n}}),Nt=x({"node_modules/vnopts/lib/schemas/string.js"(e){v(),Object.defineProperty(e,"__esModule",{value:!0});var t=Ct(),r=class extends t.Schema{expected(){return"a string"}validate(e){return"string"==typeof e}};e.StringSchema=r}}),It=x({"node_modules/vnopts/lib/schemas/index.js"(e){v(),Object.defineProperty(e,"__esModule",{value:!0});var t=(pt(),C(Oe));t.__exportStar(vt(),e),t.__exportStar(At(),e),t.__exportStar(St(),e),t.__exportStar(Tt(),e),t.__exportStar(Ft(),e),t.__exportStar(kt(),e),t.__exportStar(Pt(),e),t.__exportStar(Nt(),e)}}),Bt=x({"node_modules/vnopts/lib/defaults.js"(e){v(),Object.defineProperty(e,"__esModule",{value:!0});var t=ct(),r=ft(),n=gt(),s=xt();e.defaultDescriptor=t.apiDescriptor,e.defaultUnknownHandler=s.levenUnknownHandler,e.defaultInvalidHandler=n.commonInvalidHandler,e.defaultDeprecatedHandler=r.commonDeprecatedHandler}}),_t=x({"node_modules/vnopts/lib/normalize.js"(e){v(),Object.defineProperty(e,"__esModule",{value:!0});var t=Bt(),r=wt();e.normalize=(e,t,r)=>new n(t,r).normalize(e);var n=class{constructor(e,n){let{logger:s=console,descriptor:i=t.defaultDescriptor,unknown:a=t.defaultUnknownHandler,invalid:o=t.defaultInvalidHandler,deprecated:u=t.defaultDeprecatedHandler}=n||{};this._utils={descriptor:i,logger:s||{warn:()=>{}},schemas:r.recordFromArray(e,"name"),normalizeDefaultResult:r.normalizeDefaultResult,normalizeDeprecatedResult:r.normalizeDeprecatedResult,normalizeForwardResult:r.normalizeForwardResult,normalizeRedirectResult:r.normalizeRedirectResult,normalizeValidateResult:r.normalizeValidateResult},this._unknownHandler=a,this._invalidHandler=o,this._deprecatedHandler=u,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=r.createAutoChecklist()}normalize(e){let t={},n=[e],s=()=>{for(;0!==n.length;){let e=n.shift(),r=this._applyNormalization(e,t);n.push(...r)}};s();for(let e of Object.keys(this._utils.schemas)){let s=this._utils.schemas[e];if(!(e in t)){let t=r.normalizeDefaultResult(s.default(this._utils));"value"in t&&n.push({[e]:t.value})}}s();for(let e of Object.keys(this._utils.schemas)){let r=this._utils.schemas[e];e in t&&(t[e]=r.postprocess(t[e],this._utils))}return t}_applyNormalization(e,t){let n=[],[s,i]=r.partition(Object.keys(e),(e=>e in this._utils.schemas));for(let i of s){let s=this._utils.schemas[i],a=s.preprocess(e[i],this._utils),o=r.normalizeValidateResult(s.validate(a,this._utils),a);if(!0!==o){let{value:e}=o,t=this._invalidHandler(i,e,this._utils);throw"string"==typeof t?new Error(t):t}let u=e=>{let{from:t,to:r}=e;n.push("string"==typeof r?{[r]:t}:{[r.key]:r.value})},l=e=>{let{value:t,redirectTo:n}=e,o=r.normalizeDeprecatedResult(s.deprecated(t,this._utils),a,!0);if(!1!==o)if(!0===o)this._hasDeprecationWarned(i)||this._utils.logger.warn(this._deprecatedHandler(i,n,this._utils));else for(let{value:e}of o){let t={key:i,value:e};if(!this._hasDeprecationWarned(t)){let r="string"==typeof n?{key:n,value:e}:n;this._utils.logger.warn(this._deprecatedHandler(t,r,this._utils))}}};r.normalizeForwardResult(s.forward(a,this._utils),a).forEach(u);let p=r.normalizeRedirectResult(s.redirect(a,this._utils),a);if(p.redirect.forEach(u),"remain"in p){let e=p.remain;t[i]=i in t?s.overlap(t[i],e,this._utils):e,l({value:e})}for(let{from:e,to:t}of p.redirect)l({value:e,redirectTo:t})}for(let r of i){let s=e[r],i=this._unknownHandler(r,s,this._utils);if(i)for(let e of Object.keys(i)){let r={[e]:i[e]};e in this._utils.schemas?n.push(r):Object.assign(t,r)}}return n}};e.Normalizer=n}}),Ot=x({"node_modules/vnopts/lib/index.js"(e){v(),Object.defineProperty(e,"__esModule",{value:!0});var t=(pt(),C(Oe));t.__exportStar(ht(),e),t.__exportStar(bt(),e),t.__exportStar(It(),e),t.__exportStar(_t(),e),t.__exportStar(Ct(),e)}}),Lt=x({"src/main/options-normalizer.js"(e,t){v();var r,n=Ot(),s=P(),i={key:e=>1===e.length?`-${e}`:`--${e}`,value:e=>n.apiDescriptor.value(e),pair:e=>{let{key:t,value:r}=e;return!1===r?`--no-${t}`:!0===r?i.key(t):""===r?`${i.key(t)} without an argument`:`${i.key(t)}=${r}`}},a=e=>{let{colorsModule:t,levenshteinDistance:r}=e;return class extends n.ChoiceSchema{constructor(e){let{name:t,flags:r}=e;super({name:t,choices:r}),this._flags=[...r].sort()}preprocess(e,n){if("string"==typeof e&&e.length>0&&!this._flags.includes(e)){let s=this._flags.find((t=>r(t,e)<3));if(s)return n.logger.warn([`Unknown flag ${t.yellow(n.descriptor.value(e))},`,`did you mean ${t.blue(n.descriptor.value(s))}?`].join(" ")),s}return e}expected(){return"a flag"}}};function o(e,t){let{logger:s=!1,isCLI:a=!1,passThrough:o=!1,colorsModule:c=null,levenshteinDistance:h=null}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},d=o?Array.isArray(o)?(e,t)=>o.includes(e)?{[e]:t}:void 0:(e,t)=>({[e]:t}):(e,t,r)=>{let s=r.schemas,{_:i}=s,a=p(s,u);return n.levenUnknownHandler(e,t,Object.assign(Object.assign({},r),{},{schemas:a}))},f=a?i:n.apiDescriptor,m=function(e,t){let{isCLI:r,colorsModule:s,levenshteinDistance:i}=t,a=[];r&&a.push(n.AnySchema.create({name:"_"}));for(let t of e)a.push(l(t,{isCLI:r,optionInfos:e,colorsModule:s,levenshteinDistance:i})),t.alias&&r&&a.push(n.AliasSchema.create({name:t.alias,sourceName:t.name}));return a}(t,{isCLI:a,colorsModule:c,levenshteinDistance:h}),y=new n.Normalizer(m,{logger:s,unknown:d,descriptor:f}),g=!1!==s;g&&r&&(y._hasDeprecationWarned=r);let D=y.normalize(e);return g&&(r=y._hasDeprecationWarned),a&&!1===D["plugin-search"]&&(D["plugin-search-dir"]=!1),D}function l(e,t){let{isCLI:r,optionInfos:i,colorsModule:o,levenshteinDistance:u}=t,{name:l}=e;if("plugin-search-dir"===l||"pluginSearchDirs"===l)return n.AnySchema.create({name:l,preprocess:e=>(!1===e||(e=Array.isArray(e)?e:[e]),e),validate:e=>!1===e||e.every((e=>"string"==typeof e)),expected:()=>"false or paths to plugin search dir"});let p,c={name:l},h={};switch(e.type){case"int":p=n.IntegerSchema,r&&(c.preprocess=Number);break;case"string":case"path":p=n.StringSchema;break;case"choice":p=n.ChoiceSchema,c.choices=e.choices.map((t=>"object"==typeof t&&t.redirect?Object.assign(Object.assign({},t),{},{redirect:{to:{key:e.name,value:t.redirect}}}):t));break;case"boolean":p=n.BooleanSchema;break;case"flag":p=a({colorsModule:o,levenshteinDistance:u}),c.flags=i.flatMap((e=>[e.alias,e.description&&e.name,e.oppositeDescription&&`no-${e.name}`].filter(Boolean)));break;default:throw new Error(`Unexpected type ${e.type}`)}if(e.exception?c.validate=(t,r,n)=>e.exception(t)||r.validate(t,n):c.validate=(e,t,r)=>void 0===e||t.validate(e,r),e.redirect&&(h.redirect=t=>t?{to:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(h.deprecated=!0),r&&!e.array){let e=c.preprocess||(e=>e);c.preprocess=(t,r,n)=>r.preprocess(e(Array.isArray(t)?s(t):t),n)}return e.array?n.ArraySchema.create(Object.assign(Object.assign(Object.assign({},r?{preprocess:e=>Array.isArray(e)?e:[e]}:{}),h),{},{valueSchema:p.create(c)})):p.create(Object.assign(Object.assign({},c),h))}t.exports={normalizeApiOptions:function(e,t,r){return o(e,t,r)},normalizeCliOptions:function(e,t,r){return o(e,t,Object.assign({isCLI:!0},r))}}}}),jt=x({"src/language-js/loc.js"(e,t){v();var r=oe();function n(e){var t,s;let i=e.range?e.range[0]:e.start,a=null!==(t=null===(s=e.declaration)||void 0===s?void 0:s.decorators)&&void 0!==t?t:e.decorators;return r(a)?Math.min(n(a[0]),i):i}function s(e){return e.range?e.range[1]:e.end}function i(e,t){let r=n(e);return Number.isInteger(r)&&r===n(t)}t.exports={locStart:n,locEnd:s,hasSameLocStart:i,hasSameLoc:function(e,t){return i(e,t)&&function(e,t){let r=s(e);return Number.isInteger(r)&&r===s(t)}(e,t)}}}}),Mt=x({"src/main/load-parser.js"(e,t){v(),t.exports=()=>{}}}),Rt=x({"scripts/build/shims/babel-highlight.cjs"(e,t){v();var r=dt(),n={shouldHighlight:()=>!1,getChalk:()=>r};t.exports=n}}),$t=x({"node_modules/@babel/code-frame/lib/index.js"(e){v(),Object.defineProperty(e,"__esModule",{value:!0}),e.codeFrameColumns=s,e.default=function(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!r){r=!0;let e="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";c.emitWarning?c.emitWarning(e,"DeprecationWarning"):(new Error(e).name="DeprecationWarning",console.warn(new Error(e)))}return s(e,{start:{column:n=Math.max(n,0),line:t}},i)};var t=Rt(),r=!1;var n=/\r\n|[\n\r\u2028\u2029]/;function s(e,r){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=(s.highlightCode||s.forceColor)&&(0,t.shouldHighlight)(s),a=(0,t.getChalk)(s),o=function(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}(a),u=(e,t)=>i?e(t):t,l=e.split(n),{start:p,end:c,markerLines:h}=function(e,t,r){let n=Object.assign({column:0,line:-1},e.start),s=Object.assign({},n,e.end),{linesAbove:i=2,linesBelow:a=3}=r||{},o=n.line,u=n.column,l=s.line,p=s.column,c=Math.max(o-(i+1),0),h=Math.min(t.length,l+a);-1===o&&(c=0),-1===l&&(h=t.length);let d=l-o,f={};if(d)for(let e=0;e<=d;e++){let r=e+o;if(u)if(0===e){let e=t[r-1].length;f[r]=[u,e-u+1]}else if(e===d)f[r]=[0,p];else{let n=t[r-e].length;f[r]=[0,n]}else f[r]=!0}else f[o]=u===p?!u||[u,0]:[u,p-u];return{start:c,end:h,markerLines:f}}(r,l,s),d=r.start&&"number"==typeof r.start.column,f=String(c).length,m=(i?(0,t.default)(e,s):e).split(n,c).slice(p,c).map(((e,t)=>{let r=p+1+t,n=` ${` ${r}`.slice(-f)} |`,i=h[r],a=!h[r+1];if(i){let t="";if(Array.isArray(i)){let r=e.slice(0,Math.max(i[0]-1,0)).replace(/[^\t]/g," "),l=i[1]||1;t=["\n ",u(o.gutter,n.replace(/\d/g," "))," ",r,u(o.marker,"^").repeat(l)].join(""),a&&s.message&&(t+=" "+u(o.message,s.message))}return[u(o.marker,">"),u(o.gutter,n),e.length>0?` ${e}`:"",t].join("")}return` ${u(o.gutter,n)}${e.length>0?` ${e}`:""}`})).join("\n");return s.message&&!d&&(m=`${" ".repeat(f+1)}${s.message}\n${m}`),i?a.reset(m):m}}}),Ut=x({"src/main/parser.js"(e,t){v();var{ConfigError:r}=_e(),n=jt(),{locStart:s,locEnd:i}=(Mt(),n),a=Object.getOwnPropertyNames,o=Object.getOwnPropertyDescriptor;function u(e){let t={};for(let r of e.plugins)if(r.parsers)for(let e of a(r.parsers))Object.defineProperty(t,e,o(r.parsers,e));return t}function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u(e);if("function"==typeof e.parser)return{parse:e.parser,astFormat:"estree",locStart:s,locEnd:i};if("string"==typeof e.parser){if(Object.prototype.hasOwnProperty.call(t,e.parser))return t[e.parser];throw new r(`Couldn't resolve parser "${e.parser}". Parsers must be explicitly added to the standalone bundle.`)}}t.exports={parse:function(e,t){let r=u(t),n=Object.defineProperties({},Object.fromEntries(Object.keys(r).map((e=>[e,{enumerable:!0,get:()=>r[e].parse}])))),s=l(t,r);try{return s.preprocess&&(e=s.preprocess(e,t)),{text:e,ast:s.parse(e,n,t)}}catch(t){let{loc:r}=t;if(r){let{codeFrameColumns:n}=$t();throw t.codeFrame=n(e,r,{highlightCode:!0}),t.message+="\n"+t.codeFrame,t}throw t}},resolveParser:l}}}),zt=x({"src/main/options.js"(e,t){v();var r=Be(),{UndefinedParserError:n}=_e(),{getSupportInfo:s}=ae(),i=Lt(),{resolveParser:a}=Ut(),o={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};function u(e,t){let n=r.basename(e).toLowerCase(),i=s({plugins:t}).languages.filter((e=>null!==e.since)).find((e=>e.extensions&&e.extensions.some((e=>n.endsWith(e)))||e.filenames&&e.filenames.some((e=>e.toLowerCase()===n))));return i&&i.parsers[0]}t.exports={normalize:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Object.assign({},e),l=s({plugins:e.plugins,showUnreleased:!0,showDeprecated:!0}).options,p=Object.assign(Object.assign({},o),Object.fromEntries(l.filter((e=>void 0!==e.default)).map((e=>[e.name,e.default]))));if(!r.parser)if(r.filepath){if(r.parser=u(r.filepath,r.plugins),!r.parser)throw new n(`No parser could be inferred for file: ${r.filepath}`)}else(t.logger||console).warn("No parser and no filepath given, using 'babel' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred."),r.parser="babel";let c=a(i.normalizeApiOptions(r,[l.find((e=>"parser"===e.name))],{passThrough:!0,logger:!1}));r.astFormat=c.astFormat,r.locEnd=c.locEnd,r.locStart=c.locStart;let h=function(e){let{astFormat:t}=e;if(!t)throw new Error("getPlugin() requires astFormat to be set");let r=e.plugins.find((e=>e.printers&&e.printers[t]));if(!r)throw new Error(`Couldn't find plugin for AST format "${t}"`);return r}(r);r.printer=h.printers[r.astFormat];let d=Object.fromEntries(l.filter((e=>e.pluginDefaults&&void 0!==e.pluginDefaults[h.name])).map((e=>[e.name,e.pluginDefaults[h.name]]))),f=Object.assign(Object.assign({},p),d);for(let[e,t]of Object.entries(f))(null===r[e]||void 0===r[e])&&(r[e]=t);return"json"===r.parser&&(r.trailingComma="none"),i.normalizeApiOptions(r,l,Object.assign({passThrough:Object.keys(o)},t))},hiddenDefaults:o,inferParser:u}}}),Vt=x({"src/main/massage-ast.js"(e,t){v(),t.exports=function e(t,r,n){if(Array.isArray(t))return t.map((t=>e(t,r,n))).filter(Boolean);if(!t||"object"!=typeof t)return t;let s,i=r.printer.massageAstNode;s=i&&i.ignoredProperties?i.ignoredProperties:new Set;let a={};for(let[n,i]of Object.entries(t))!s.has(n)&&"function"!=typeof i&&(a[n]=e(i,r,t));if(i){let e=i(t,a,n);if(null===e)return;if(e)return e}return a}}}),Wt=x({"scripts/build/shims/assert.cjs"(e,t){v();var r=()=>{};r.ok=r,r.strictEqual=r,t.exports=r}}),qt=x({"src/main/comments.js"(e,t){v();var r=Wt(),{builders:{line:n,hardline:s,breakParent:i,indent:a,lineSuffix:o,join:u,cursor:l}}=W(),{hasNewline:p,skipNewline:c,skipSpaces:h,isPreviousLineEmpty:d,addLeadingComment:f,addDanglingComment:m,addTrailingComment:y}=de(),g=new WeakMap;function D(e,t,r){if(!e)return;let{printer:n,locStart:s,locEnd:i}=t;if(r){if(n.canAttachComment&&n.canAttachComment(e)){let t;for(t=r.length-1;t>=0&&!(s(r[t])<=s(e)&&i(r[t])<=i(e));--t);return void r.splice(t+1,0,e)}}else if(g.has(e))return g.get(e);let a=n.getCommentChildNodes&&n.getCommentChildNodes(e,t)||"object"==typeof e&&Object.entries(e).filter((e=>{let[t]=e;return"enclosingNode"!==t&&"precedingNode"!==t&&"followingNode"!==t&&"tokens"!==t&&"comments"!==t&&"parent"!==t})).map((e=>{let[,t]=e;return t}));if(a){r||(r=[],g.set(e,r));for(let e of a)D(e,t,r);return r}}function x(e,t,r,n){let s,i,{locStart:a,locEnd:o}=r,u=a(t),l=o(t),p=D(e,r),c=0,h=p.length;for(;c<h;){let e=c+h>>1,n=p[e],d=a(n),f=o(n);if(d<=u&&l<=f)return x(n,t,r,n);if(f<=u)s=n,c=e+1;else{if(!(l<=d))throw new Error("Comment location overlaps with node location");i=n,h=e}}if(n&&"TemplateLiteral"===n.type){let{quasis:e}=n,a=w(e,t,r);s&&w(e,s,r)!==a&&(s=null),i&&w(e,i,r)!==a&&(i=null)}return{enclosingNode:n,precedingNode:s,followingNode:i}}var E=()=>!1;var b=e=>!/[\S\n\u2028\u2029]/.test(e);function C(e,t,r,n){let{comment:s,precedingNode:i}=r[n],{locStart:a,locEnd:o}=t,u=a(s);if(i)for(let t=n-1;t>=0;t--){let{comment:n,precedingNode:s}=r[t];if(s!==i||!b(e.slice(o(n),u)))break;u=a(n)}return p(e,u,{backwards:!0})}function A(e,t,r,n){let{comment:s,followingNode:i}=r[n],{locStart:a,locEnd:o}=t,u=o(s);if(i)for(let t=n+1;t<r.length;t++){let{comment:n,followingNode:s}=r[t];if(s!==i||!b(e.slice(u,a(n))))break;u=o(n)}return p(e,u)}function S(e,t,n){let s=e.length;if(0===s)return;let i,{precedingNode:a,followingNode:o,enclosingNode:u}=e[0],l=n.printer.getGapRegex&&n.printer.getGapRegex(u)||/^[\s(]*$/,p=n.locStart(o);for(i=s;i>0;--i){let{comment:s,precedingNode:u,followingNode:c}=e[i-1];r.strictEqual(u,a),r.strictEqual(c,o);let h=t.slice(n.locEnd(s),p);if(!l.test(h))break;p=n.locStart(s)}for(let[t,{comment:r}]of e.entries())t<i?y(a,r):f(o,r);for(let e of[a,o])e.comments&&e.comments.length>1&&e.comments.sort(((e,t)=>n.locStart(e)-n.locStart(t)));e.length=0}function T(e,t){return e.getValue().printed=!0,t.printer.printComment(e,t)}function w(e,t,r){let n=r.locStart(t)-1;for(let t=1;t<e.length;++t)if(n<r.locStart(e[t]))return t-1;return 0}function F(e,t,r){let a=e.getValue();if(!a)return{};let u=a.comments||[];r&&(u=u.filter((e=>!r.has(e))));let f=a===t.cursorNode;if(0===u.length){let e=f?l:"";return{leading:e,trailing:e}}let m=[],y=[];return e.each((()=>{let a=e.getValue();if(r&&r.has(a))return;let{leading:u,trailing:l}=a;u?m.push(function(e,t){let r=e.getValue(),i=[T(e,t)],{printer:a,originalText:o,locStart:u,locEnd:l}=t;if(a.isBlockComment&&a.isBlockComment(r)){let e=p(o,l(r))?p(o,u(r),{backwards:!0})?s:n:" ";i.push(e)}else i.push(s);let d=c(o,h(o,l(r)));return!1!==d&&p(o,d)&&i.push(s),i}(e,t)):l&&y.push(function(e,t){let r=e.getValue(),n=T(e,t),{printer:a,originalText:u,locStart:l}=t,c=a.isBlockComment&&a.isBlockComment(r);if(p(u,l(r),{backwards:!0})){let e=d(u,r,l);return o([s,e?s:"",n])}let h=[" ",n];return c||(h=[o(h),i]),h}(e,t))}),"comments"),f&&(m.unshift(l),y.push(l)),{leading:m,trailing:y}}t.exports={attach:function(e,t,r,n){if(!Array.isArray(e))return;let s=[],{locStart:i,locEnd:a,printer:{handleComments:o={}}}=n,{avoidAstMutation:u,ownLine:l=E,endOfLine:p=E,remaining:c=E}=o,h=e.map(((s,i)=>Object.assign(Object.assign({},x(t,s,n)),{},{comment:s,text:r,options:n,ast:t,isLastComment:e.length-1===i})));for(let[e,t]of h.entries()){let r,{comment:n,precedingNode:o,enclosingNode:d,followingNode:g,text:D,options:x,ast:E,isLastComment:b}=t;if("json"===x.parser||"json5"===x.parser||"__js_expression"===x.parser||"__vue_expression"===x.parser||"__vue_ts_expression"===x.parser){if(i(n)-i(E)<=0){f(E,n);continue}if(a(n)-a(E)>=0){y(E,n);continue}}if(u?r=[t]:(n.enclosingNode=d,n.precedingNode=o,n.followingNode=g,r=[n,D,x,E,b]),C(D,x,h,e))n.placement="ownLine",l(...r)||(g?f(g,n):o?y(o,n):m(d||E,n));else if(A(D,x,h,e))n.placement="endOfLine",p(...r)||(o?y(o,n):g?f(g,n):m(d||E,n));else if(n.placement="remaining",!c(...r))if(o&&g){let e=s.length;e>0&&s[e-1].followingNode!==g&&S(s,D,x),s.push(t)}else o?y(o,n):g?f(g,n):m(d||E,n)}if(S(s,r,n),!u)for(let t of e)delete t.precedingNode,delete t.enclosingNode,delete t.followingNode},printComments:function(e,t,r,n){let{leading:s,trailing:i}=F(e,r,n);return s||i?[s,t,i]:t},printCommentsSeparately:F,printDanglingComments:function(e,t,r,n){let i=[],o=e.getValue();return o&&o.comments&&(e.each((()=>{let r=e.getValue();!r.leading&&!r.trailing&&(!n||n(r))&&i.push(T(e,t))}),"comments"),0!==i.length)?r?u(s,i):a([s,u(s,i)]):""},getSortedChildNodes:D,ensureAllCommentsPrinted:function(e){if(e)for(let t of e){if(!t.printed)throw new Error('Comment "'+t.value.trim()+'" was not printed. Please report this error!');delete t.printed}}}}}),Ht=x({"src/common/ast-path.js"(e,t){v();var r=P();function n(e,t){let r=s(e.stack,t);return-1===r?null:e.stack[r]}function s(e,t){for(let r=e.length-1;r>=0;r-=2){let n=e[r];if(n&&!Array.isArray(n)&&--t<0)return r}return-1}t.exports=class{constructor(e){this.stack=[e]}getName(){let{stack:e}=this,{length:t}=e;return t>1?e[t-2]:null}getValue(){return r(this.stack)}getNode(){return n(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)}getParentNode(){return n(this,(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)+1)}call(e){let{stack:t}=this,{length:n}=t,s=r(t);for(var i=arguments.length,a=new Array(i>1?i-1:0),o=1;o<i;o++)a[o-1]=arguments[o];for(let e of a)s=s[e],t.push(e,s);let u=e(this);return t.length=n,u}callParent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=s(this.stack,t+1),n=this.stack.splice(r+1),i=e(this);return this.stack.push(...n),i}each(e){let{stack:t}=this,{length:n}=t,s=r(t);for(var i=arguments.length,a=new Array(i>1?i-1:0),o=1;o<i;o++)a[o-1]=arguments[o];for(let e of a)s=s[e],t.push(e,s);for(let r=0;r<s.length;++r)t.push(r,s[r]),e(this,r,s),t.length-=2;t.length=n}map(e){let t=[];for(var r=arguments.length,n=new Array(r>1?r-1:0),s=1;s<r;s++)n[s-1]=arguments[s];return this.each(((r,n,s)=>{t[n]=e(r,n,s)}),...n),t}try(e){let{stack:t}=this,r=[...t];try{return e()}finally{t.length=0,t.push(...r)}}match(){let e=this.stack.length-1,t=null,r=this.stack[e--];for(var n=arguments.length,s=new Array(n),i=0;i<n;i++)s[i]=arguments[i];for(let n of s){if(void 0===r)return!1;let s=null;if("number"==typeof t&&(s=t,t=this.stack[e--],r=this.stack[e--]),n&&!n(r,t,s))return!1;t=this.stack[e--],r=this.stack[e--]}return!0}findAncestor(e){let t=this.stack.length-1,r=null,n=this.stack[t--];for(;n;){let s=null;if("number"==typeof r&&(s=r,r=this.stack[t--],n=this.stack[t--]),null!==r&&e(n,r,s))return n;r=this.stack[t--],n=this.stack[t--]}}}}}),Jt=x({"src/main/multiparser.js"(e,t){v();var{utils:{stripTrailingHardline:r}}=W(),{normalize:n}=zt(),s=qt();t.exports={printSubtree:function(e,t,i,a){if(i.printer.embed&&"auto"===i.embeddedLanguageFormatting)return i.printer.embed(e,t,((e,t,o)=>function(e,t,i,a){let{stripTrailingHardline:o=!1}=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},u=n(Object.assign(Object.assign(Object.assign({},i),t),{},{parentParser:i.parser,originalText:e}),{passThrough:!0}),l=Ut().parse(e,u),{ast:p}=l;e=l.text;let c=p.comments;delete p.comments,s.attach(c,p,e,u),u[Symbol.for("comments")]=c||[],u[Symbol.for("tokens")]=p.tokens||[];let h=a(p,u);return s.ensureAllCommentsPrinted(c),o?"string"==typeof h?h.replace(/(?:\r?\n)*$/,""):r(h):h}(e,t,i,a,o)),i)}}}}),Gt=x({"src/main/ast-to-doc.js"(e,t){v();var r=Ht(),{builders:{hardline:n,addAlignmentToDoc:s},utils:{propagateBreaks:i}}=W(),{printComments:a}=qt(),o=Jt();function u(e,t){let l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,{printer:p}=t;p.preprocess&&(e=p.preprocess(e,t));let c=new Map,h=new r(e),d=f();return l>0&&(d=s([n,d],l,t.tabWidth)),i(d),d;function f(e,t){return void 0===e||e===h?m(t):Array.isArray(e)?h.call((()=>m(t)),...e):h.call((()=>m(t)),e)}function m(e){let r=h.getValue(),n=r&&"object"==typeof r&&void 0===e;if(n&&c.has(r))return c.get(r);let s=function(e,t,r,n){let s,i,l=e.getValue(),{printer:p}=t;if(p.hasPrettierIgnore&&p.hasPrettierIgnore(e))({doc:s,printedComments:i}=function(e,t){let{originalText:r,[Symbol.for("comments")]:n,locStart:s,locEnd:i}=t,a=s(e),o=i(e),u=new Set;for(let e of n)s(e)>=a&&i(e)<=o&&(e.printed=!0,u.add(e));return{doc:r.slice(a,o),printedComments:u}}(l,t));else{if(l)try{s=o.printSubtree(e,r,t,u)}catch(e){if(globalThis.PRETTIER_DEBUG)throw e}s||(s=p.print(e,t,r,n))}return(!p.willPrintOwnComments||!p.willPrintOwnComments(e,t))&&(s=a(e,s,t,i)),s}(h,t,f,e);return n&&c.set(r,s),s}}t.exports=u}}),Xt=x({"src/main/range-util.js"(e,t){v();var r=Wt(),n=qt();function s(e){let t=e.length-1;for(;;){let r=e[t];if(!r||"Program"!==r.type&&"File"!==r.type)break;t--}return e.slice(0,t+1)}function i(e,t,r,s){let a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],o=arguments.length>5?arguments[5]:void 0,{locStart:u,locEnd:l}=r,p=u(e),c=l(e);if(!(t>c||t<p||"rangeEnd"===o&&t===p||"rangeStart"===o&&t===c)){for(let u of n.getSortedChildNodes(e,r)){let n=i(u,t,r,s,[e,...a],o);if(n)return n}if(!s||s(e,a[0]))return{node:e,parentNodes:a}}}var a=new Set(["ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral","UnaryExpression","TemplateLiteral"]),o=new Set(["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"]);function u(e,t,r){if(!t)return!1;switch(e.parser){case"flow":case"babel":case"babel-flow":case"babel-ts":case"typescript":case"acorn":case"espree":case"meriyah":case"__babel_estree":return function(e,t){return"DeclareExportDeclaration"!==t&&"TypeParameterDeclaration"!==e&&("Directive"===e||"TypeAlias"===e||"TSExportAssignment"===e||e.startsWith("Declare")||e.startsWith("TSDeclare")||e.endsWith("Statement")||e.endsWith("Declaration"))}(t.type,r&&r.type);case"json":case"json5":case"json-stringify":return a.has(t.type);case"graphql":return o.has(t.kind);case"vue":return"root"!==t.tag}return!1}t.exports={calculateRange:function(e,t,n){let{rangeStart:o,rangeEnd:l,locStart:p,locEnd:c}=t;r.ok(l>o);let h=e.slice(o,l).search(/\S/),d=-1===h;if(!d)for(o+=h;l>o&&!/\S/.test(e[l-1]);--l);let f,m,y=i(n,o,t,((e,r)=>u(t,e,r)),[],"rangeStart"),g=d?y:i(n,l,t,(e=>u(t,e)),[],"rangeEnd");if(!y||!g)return{rangeStart:0,rangeEnd:0};if((e=>{let{parser:t}=e;return"json"===t||"json5"===t||"json-stringify"===t})(t)){let e=function(e,t){let r=[e.node,...e.parentNodes],n=new Set([t.node,...t.parentNodes]);return r.find((e=>a.has(e.type)&&n.has(e)))}(y,g);f=e,m=e}else({startNode:f,endNode:m}=function(e,t,r){let{locStart:n,locEnd:i}=r,a=e.node,o=t.node;if(a===o)return{startNode:a,endNode:o};let u=n(e.node);for(let e of s(t.parentNodes)){if(!(n(e)>=u))break;o=e}let l=i(t.node);for(let t of s(e.parentNodes)){if(!(i(t)<=l))break;if(a=t,a===o)break}return{startNode:a,endNode:o}}(y,g,t));return{rangeStart:Math.min(p(f),p(m)),rangeEnd:Math.max(c(f),c(m))}},findNodeAtOffset:i}}}),Kt=x({"src/main/core.js"(e,t){v();var{diffArrays:r}=T(),{printer:{printDocToString:n},debug:{printDocToDebug:s}}=W(),{getAlignmentSize:i}=de(),{guessEndOfLine:a,convertEndOfLineToChars:o,countEndOfLineChars:u,normalizeEndOfLine:l}=F(),p=zt().normalize,c=Vt(),h=qt(),d=Ut(),f=Gt(),m=Xt(),y=Symbol("cursor");function g(e,t,r){let n=t.comments;return n&&(delete t.comments,h.attach(n,t,e,r)),r[Symbol.for("comments")]=n||[],r[Symbol.for("tokens")]=t.tokens||[],r.originalText=e,n}function D(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!e||0===e.trim().length)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:i,text:a}=d.parse(e,t);if(t.cursorOffset>=0){let e=m.findNodeAtOffset(i,t.cursorOffset,t);e&&e.node&&(t.cursorNode=e.node)}let u=g(a,i,t),l=f(i,t,s),p=n(l,t);if(h.ensureAllCommentsPrinted(u),s>0){let e=p.formatted.trim();void 0!==p.cursorNodeStart&&(p.cursorNodeStart-=p.formatted.indexOf(e)),p.formatted=e+o(t.endOfLine)}if(t.cursorOffset>=0){let e,n,s,i,o;if(t.cursorNode&&p.cursorNodeText?(e=t.locStart(t.cursorNode),n=a.slice(e,t.locEnd(t.cursorNode)),s=t.cursorOffset-e,i=p.cursorNodeStart,o=p.cursorNodeText):(e=0,n=a,s=t.cursorOffset,i=0,o=p.formatted),n===o)return{formatted:p.formatted,cursorOffset:i+s,comments:u};let l=[...n];l.splice(s,0,y);let c=[...o],h=r(l,c),d=i;for(let e of h)if(e.removed){if(e.value.includes(y))break}else d+=e.count;return{formatted:p.formatted,cursorOffset:d,comments:u}}return{formatted:p.formatted,cursorOffset:-1,comments:u}}function x(e,t,r){return"number"!=typeof t||Number.isNaN(t)||t<0||t>e.length?r:t}function E(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:s}=t;return r=x(e,r,-1),n=x(e,n,0),s=x(e,s,e.length),Object.assign(Object.assign({},t),{},{cursorOffset:r,rangeStart:n,rangeEnd:s})}function b(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:s,endOfLine:i}=E(e,t),o="\ufeff"===e.charAt(0);if(o&&(e=e.slice(1),r--,n--,s--),"auto"===i&&(i=a(e)),e.includes("\r")){let t=t=>u(e.slice(0,Math.max(t,0)),"\r\n");r-=t(r),n-=t(n),s-=t(s),e=l(e)}return{hasBOM:o,text:e,options:E(e,Object.assign(Object.assign({},t),{},{cursorOffset:r,rangeStart:n,rangeEnd:s,endOfLine:i}))}}function C(e,t){let r=d.resolveParser(t);return!r.hasPragma||r.hasPragma(e)}function A(e,t){let r,{hasBOM:n,text:s,options:a}=b(e,p(t));return a.rangeStart>=a.rangeEnd&&""!==s||a.requirePragma&&!C(s,a)?{formatted:e,cursorOffset:t.cursorOffset,comments:[]}:(a.rangeStart>0||a.rangeEnd<s.length?r=function(e,t){let{ast:r,text:n}=d.parse(e,t),{rangeStart:s,rangeEnd:a}=m.calculateRange(n,t,r),l=n.slice(s,a),p=Math.min(s,n.lastIndexOf("\n",s)+1),c=n.slice(p,s).match(/^\s*/)[0],h=i(c,t.tabWidth),f=D(l,Object.assign(Object.assign({},t),{},{rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:t.cursorOffset>s&&t.cursorOffset<=a?t.cursorOffset-s:-1,endOfLine:"lf"}),h),y=f.formatted.trimEnd(),{cursorOffset:g}=t;g>a?g+=y.length-l.length:f.cursorOffset>=0&&(g=f.cursorOffset+s);let x=n.slice(0,s)+y+n.slice(a);if("lf"!==t.endOfLine){let e=o(t.endOfLine);g>=0&&"\r\n"===e&&(g+=u(x.slice(0,g),"\n")),x=x.replace(/\n/g,e)}return{formatted:x,cursorOffset:g,comments:f.comments}}(s,a):(!a.requirePragma&&a.insertPragma&&a.printer.insertPragma&&!C(s,a)&&(s=a.printer.insertPragma(s)),r=D(s,a)),n&&(r.formatted="\ufeff"+r.formatted,r.cursorOffset>=0&&r.cursorOffset++),r)}t.exports={formatWithCursor:A,parse(e,t,r){let{text:n,options:s}=b(e,p(t)),i=d.parse(n,s);return r&&(i.ast=c(i.ast,s)),i},formatAST(e,t){t=p(t);let r=f(e,t);return n(r,t)},formatDoc:(e,t)=>A(s(e),Object.assign(Object.assign({},t),{},{parser:"__js_expression"})).formatted,printToDoc(e,t){t=p(t);let{ast:r,text:n}=d.parse(e,t);return g(n,r,t),f(r,t)},printDocToString:(e,t)=>n(e,p(t))}}}),Zt=x({"src/common/util-shared.js"(e,t){v();var{getMaxContinuousCount:r,getStringWidth:n,getAlignmentSize:s,getIndentSize:i,skip:a,skipWhitespace:o,skipSpaces:u,skipNewline:l,skipToLineEnd:p,skipEverythingButNewLine:c,skipInlineComment:h,skipTrailingComment:d,hasNewline:f,hasNewlineInRange:m,hasSpaces:y,isNextLineEmpty:g,isNextLineEmptyAfterIndex:D,isPreviousLineEmpty:x,getNextNonSpaceNonCommentCharacterIndex:E,makeString:b,addLeadingComment:C,addDanglingComment:A,addTrailingComment:S}=de();t.exports={getMaxContinuousCount:r,getStringWidth:n,getAlignmentSize:s,getIndentSize:i,skip:a,skipWhitespace:o,skipSpaces:u,skipNewline:l,skipToLineEnd:p,skipEverythingButNewLine:c,skipInlineComment:h,skipTrailingComment:d,hasNewline:f,hasNewlineInRange:m,hasSpaces:y,isNextLineEmpty:g,isNextLineEmptyAfterIndex:D,isPreviousLineEmpty:x,getNextNonSpaceNonCommentCharacterIndex:E,makeString:b,addLeadingComment:C,addDanglingComment:A,addTrailingComment:S}}}),Yt=x({"src/utils/create-language.js"(e,t){v(),t.exports=function(e,t){let{languageId:r}=e,n=p(e,l);return Object.assign(Object.assign({linguistLanguageId:r},n),t(e))}}}),Qt=x({"node_modules/esutils/lib/ast.js"(e,t){v(),function(){function e(e){if(null==e)return!1;switch(e.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function r(e){switch(e.type){case"IfStatement":return null!=e.alternate?e.alternate:e.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return e.body}return null}t.exports={isExpression:function(e){if(null==e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1},isStatement:e,isIterationStatement:function(e){if(null==e)return!1;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1},isSourceElement:function(t){return e(t)||null!=t&&"FunctionDeclaration"===t.type},isProblematicIfStatement:function(e){var t;if("IfStatement"!==e.type||null==e.alternate)return!1;t=e.consequent;do{if("IfStatement"===t.type&&null==t.alternate)return!0;t=r(t)}while(t);return!1},trailingStatement:r}}()}}),er=x({"node_modules/esutils/lib/code.js"(e,t){v(),function(){var e,r,n,s,i,a;function o(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(Math.floor((e-65536)/1024)+55296)+String.fromCharCode((e-65536)%1024+56320)}for(r={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\u08B6-\u08BD\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\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\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-\u1884\u1887-\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\u1C80-\u1C88\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\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\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\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\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-\uA7AE\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]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\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\u08B6-\u08BD\u08D4-\u08E1\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\u0C80-\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\u0D54-\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\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-\u19D9\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\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\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\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\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\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\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-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\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]/},e={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\u08B6-\u08BD\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\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\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\u1C80-\u1C88\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-\uA7AE\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\uDCB0-\uDCD3\uDCD8-\uDCFB\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[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\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\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\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\uDD00-\uDD43]|\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\u08B6-\u08BD\u08D4-\u08E1\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\u0C80-\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\u0D54-\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\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\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-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\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\uDCB0-\uDCD3\uDCD8-\uDCFB\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\uDE3E\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[\uDC00-\uDC4A\uDC50-\uDC59\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]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\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\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\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]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\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]/},n=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],s=new Array(128),a=0;a<128;++a)s[a]=a>=97&&a<=122||a>=65&&a<=90||36===a||95===a;for(i=new Array(128),a=0;a<128;++a)i[a]=a>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||36===a||95===a;t.exports={isDecimalDigit:function(e){return 48<=e&&e<=57},isHexDigit:function(e){return 48<=e&&e<=57||97<=e&&e<=102||65<=e&&e<=70},isOctalDigit:function(e){return e>=48&&e<=55},isWhiteSpace:function(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&n.indexOf(e)>=0},isLineTerminator:function(e){return 10===e||13===e||8232===e||8233===e},isIdentifierStartES5:function(e){return e<128?s[e]:r.NonAsciiIdentifierStart.test(o(e))},isIdentifierPartES5:function(e){return e<128?i[e]:r.NonAsciiIdentifierPart.test(o(e))},isIdentifierStartES6:function(t){return t<128?s[t]:e.NonAsciiIdentifierStart.test(o(t))},isIdentifierPartES6:function(t){return t<128?i[t]:e.NonAsciiIdentifierPart.test(o(t))}}}()}}),tr=x({"node_modules/esutils/lib/keyword.js"(e,t){v(),function(){var e=er();function r(e,t){return!(!t&&"yield"===e)&&n(e,t)}function n(e,t){if(t&&function(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}(e))return!0;switch(e.length){case 2:return"if"===e||"in"===e||"do"===e;case 3:return"var"===e||"for"===e||"new"===e||"try"===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}}function s(e,t){return"null"===e||"true"===e||"false"===e||r(e,t)}function i(e,t){return"null"===e||"true"===e||"false"===e||n(e,t)}function a(t){var r,n,s;if(0===t.length||(s=t.charCodeAt(0),!e.isIdentifierStartES5(s)))return!1;for(r=1,n=t.length;r<n;++r)if(s=t.charCodeAt(r),!e.isIdentifierPartES5(s))return!1;return!0}function o(e,t){return 1024*(e-55296)+(t-56320)+65536}function u(t){var r,n,s,i,a;if(0===t.length)return!1;for(a=e.isIdentifierStartES6,r=0,n=t.length;r<n;++r){if(55296<=(s=t.charCodeAt(r))&&s<=56319){if(++r>=n||!(56320<=(i=t.charCodeAt(r))&&i<=57343))return!1;s=o(s,i)}if(!a(s))return!1;a=e.isIdentifierPartES6}return!0}t.exports={isKeywordES5:r,isKeywordES6:n,isReservedWordES5:s,isReservedWordES6:i,isRestrictedWord:function(e){return"eval"===e||"arguments"===e},isIdentifierNameES5:a,isIdentifierNameES6:u,isIdentifierES5:function(e,t){return a(e)&&!s(e,t)},isIdentifierES6:function(e,t){return u(e)&&!i(e,t)}}}()}}),rr=x({"node_modules/esutils/lib/utils.js"(e){v(),e.ast=Qt(),e.code=er(),e.keyword=tr()}}),nr=x({"src/language-js/utils/is-block-comment.js"(e,t){v();var r=new Set(["Block","CommentBlock","MultiLine"]);t.exports=e=>r.has(null==e?void 0:e.type)}}),sr=x({"src/language-js/utils/is-node-matches.js"(e,t){v(),t.exports=function(e,t){return t.some((t=>function(e,t){let r=t.split(".");for(let t=r.length-1;t>=0;t--){let n=r[t];if(0===t)return"Identifier"===e.type&&e.name===n;if("MemberExpression"!==e.type||e.optional||e.computed||"Identifier"!==e.property.type||e.property.name!==n)return!1;e=e.object}}(e,t)))}}}),ir=x({"src/language-js/utils/index.js"(e,t){v();var r=rr().keyword.isIdentifierNameES5,{getLast:n,hasNewline:s,skipWhitespace:i,isNonEmptyArray:a,isNextLineEmptyAfterIndex:o,getStringWidth:u}=de(),{locStart:l,locEnd:p,hasSameLocStart:c}=jt(),h=nr(),d=sr(),f="(?:(?=.)\\s)",m=new RegExp(`^${f}*:`),y=new RegExp(`^${f}*::`);function g(e){return e=new Set(e),t=>e.has(null==t?void 0:t.type)}var D=g(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose"]),x=g(["ExportDefaultDeclaration","ExportDefaultSpecifier","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration"]);var E=g(["BooleanLiteral","DirectiveLiteral","Literal","NullLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","RegExpLiteral","StringLiteral","TemplateLiteral","TSTypeLiteral","JSXText"]);function b(e){return"NumericLiteral"===e.type||"Literal"===e.type&&"number"==typeof e.value}function C(e){return"StringLiteral"===e.type||"Literal"===e.type&&"string"==typeof e.value}var A=g(["ObjectTypeAnnotation","TSTypeLiteral","TSMappedType"]),S=g(["FunctionExpression","ArrowFunctionExpression"]);function T(e){return B(e)&&"Identifier"===e.callee.type&&["async","inject","fakeAsync","waitForAsync"].includes(e.callee.name)}var w=g(["JSXElement","JSXFragment"]);function F(e){return"get"===e.kind||"set"===e.kind}function P(e){return F(e)||c(e,e.value)}var k=g(["BinaryExpression","LogicalExpression","NGPipeExpression"]);var N=new Set(["AnyTypeAnnotation","TSAnyKeyword","NullLiteralTypeAnnotation","TSNullKeyword","ThisTypeAnnotation","TSThisType","NumberTypeAnnotation","TSNumberKeyword","VoidTypeAnnotation","TSVoidKeyword","BooleanTypeAnnotation","TSBooleanKeyword","BigIntTypeAnnotation","TSBigIntKeyword","SymbolTypeAnnotation","TSSymbolKeyword","StringTypeAnnotation","TSStringKeyword","BooleanLiteralTypeAnnotation","StringLiteralTypeAnnotation","BigIntLiteralTypeAnnotation","NumberLiteralTypeAnnotation","TSLiteralType","TSTemplateLiteralType","EmptyTypeAnnotation","MixedTypeAnnotation","TSNeverKeyword","TSObjectKeyword","TSUndefinedKeyword","TSUnknownKeyword"]);var I=["it","it.only","it.skip","describe","describe.only","describe.skip","test","test.only","test.skip","test.step","test.describe","test.describe.only","test.describe.parallel","test.describe.parallel.only","test.describe.serial","test.describe.serial.only","skip","xit","xdescribe","xtest","fit","fdescribe","ftest"];var B=g(["CallExpression","OptionalCallExpression"]),_=g(["MemberExpression","OptionalMemberExpression"]);function O(e){return/^(?:\d+|\d+\.\d+)$/.test(e)}function L(e){return e.quasis.some((e=>e.value.raw.includes("\n")))}function j(e){var t,r;return null!==(t=null===(r=e.extra)||void 0===r?void 0:r.raw)&&void 0!==t?t:e.raw}var M={"==":!0,"!=":!0,"===":!0,"!==":!0},R={"*":!0,"/":!0,"%":!0},$={">>":!0,">>>":!0,"<<":!0};var U=new Map([["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].flatMap(((e,t)=>e.map((e=>[e,t])))));function z(e){return U.get(e)}var V=new WeakMap;function W(e){if(V.has(e))return V.get(e);let t=[];return e.this&&t.push(e.this),Array.isArray(e.parameters)?t.push(...e.parameters):Array.isArray(e.params)&&t.push(...e.params),e.rest&&t.push(e.rest),V.set(e,t),t}var q=new WeakMap;function H(e){if(q.has(e))return q.get(e);let t=e.arguments;return"ImportExpression"===e.type&&(t=[e.source],e.attributes&&t.push(e.attributes)),q.set(e,t),t}function J(e){return"prettier-ignore"===e.value.trim()&&!e.unignore}function G(e){return e&&(e.prettierIgnore||Z(e,X.PrettierIgnore))}var X={Leading:2,Trailing:4,Dangling:8,Block:16,Line:32,PrettierIgnore:64,First:128,Last:256},K=(e,t)=>{if("function"==typeof e&&(t=e,e=0),e||t)return(r,n,s)=>!(e&X.Leading&&!r.leading||e&X.Trailing&&!r.trailing||e&X.Dangling&&(r.leading||r.trailing)||e&X.Block&&!h(r)||e&X.Line&&!D(r)||e&X.First&&0!==n||e&X.Last&&n!==s.length-1||e&X.PrettierIgnore&&!J(r)||t&&!t(r))};function Z(e,t,r){if(!a(null==e?void 0:e.comments))return!1;let n=K(t,r);return!n||e.comments.some(n)}function Y(e,t,r){if(!Array.isArray(null==e?void 0:e.comments))return[];let n=K(t,r);return n?e.comments.filter(n):e.comments}function Q(e){return B(e)||"NewExpression"===e.type||"ImportExpression"===e.type}var ee=Symbol("ifWithoutBlockAndSameLineComment");function te(e){return"TSAsExpression"===e.type||"TSSatisfiesExpression"===e.type}t.exports={getFunctionParameters:W,iterateFunctionParametersPath:function(e,t){let r=e.getValue(),n=0,s=e=>t(e,n++);r.this&&e.call(s,"this"),Array.isArray(r.parameters)?e.each(s,"parameters"):Array.isArray(r.params)&&e.each(s,"params"),r.rest&&e.call(s,"rest")},getCallArguments:H,iterateCallArgumentsPath:function(e,t){let r=e.getValue();"ImportExpression"===r.type?(e.call((e=>t(e,0)),"source"),r.attributes&&e.call((e=>t(e,1)),"attributes")):e.each(t,"arguments")},hasRestParameter:function(e){var t;if(e.rest)return!0;let r=W(e);return"RestElement"===(null===(t=n(r))||void 0===t?void 0:t.type)},getLeftSide:function(e){var t,r,n,s,i,a;return e.expressions?e.expressions[0]:null!==(t=null!==(r=null!==(n=null!==(s=null!==(i=null!==(a=e.left)&&void 0!==a?a:e.test)&&void 0!==i?i:e.callee)&&void 0!==s?s:e.object)&&void 0!==n?n:e.tag)&&void 0!==r?r:e.argument)&&void 0!==t?t:e.expression},getLeftSidePathName:function(e,t){if(t.expressions)return["expressions",0];if(t.left)return["left"];if(t.test)return["test"];if(t.object)return["object"];if(t.callee)return["callee"];if(t.tag)return["tag"];if(t.argument)return["argument"];if(t.expression)return["expression"];throw new Error("Unexpected node has no left side.")},getParentExportDeclaration:function(e){let t=e.getParentNode();return"declaration"===e.getName()&&x(t)?t:null},getTypeScriptMappedTypeModifier:function(e,t){return"+"===e||"-"===e?e+t:t},hasFlowAnnotationComment:function(e){let t=null==e?void 0:e[0];return h(t)&&y.test(t.value)},hasFlowShorthandAnnotationComment:function(e){var t,r;return(null===(t=e.extra)||void 0===t?void 0:t.parenthesized)&&h(null===(r=e.trailingComments)||void 0===r?void 0:r[0])&&m.test(e.trailingComments[0].value)},hasLeadingOwnLineComment:function(e,t){return w(t)?G(t):Z(t,X.Leading,(t=>s(e,p(t))))},hasNakedLeftSide:function(e){return"AssignmentExpression"===e.type||"BinaryExpression"===e.type||"LogicalExpression"===e.type||"NGPipeExpression"===e.type||"ConditionalExpression"===e.type||B(e)||_(e)||"SequenceExpression"===e.type||"TaggedTemplateExpression"===e.type||"BindExpression"===e.type||"UpdateExpression"===e.type&&!e.prefix||te(e)||"TSNonNullExpression"===e.type},hasNode:function e(t,r){if(!t||"object"!=typeof t)return!1;if(Array.isArray(t))return t.some((t=>e(t,r)));let n=r(t);return"boolean"==typeof n?n:Object.values(t).some((t=>e(t,r)))},hasIgnoreComment:function(e){return G(e.getValue())},hasNodeIgnoreComment:G,identity:function(e){return e},isBinaryish:k,isCallLikeExpression:Q,isEnabledHackPipeline:function(e){return Boolean(e.__isUsingHackPipeline)},isLineComment:D,isPrettierIgnoreComment:J,isCallExpression:B,isMemberExpression:_,isExportDeclaration:x,isFlowAnnotationComment:function(e,t){let r=l(t),n=i(e,p(t));return!1!==n&&"/*"===e.slice(r,r+2)&&"*/"===e.slice(n,n+2)},isFunctionCompositionArgs:function(e){if(e.length<=1)return!1;let t=0;for(let r of e)if(S(r)){if(t+=1,t>1)return!0}else if(B(r))for(let e of r.arguments)if(S(e))return!0;return!1},isFunctionNotation:P,isFunctionOrArrowExpression:S,isGetterOrSetter:F,isJestEachTemplateLiteral:function(e,t){let r=/^[fx]?(?:describe|it|test)$/;return"TaggedTemplateExpression"===t.type&&t.quasi===e&&"MemberExpression"===t.tag.type&&"Identifier"===t.tag.property.type&&"each"===t.tag.property.name&&("Identifier"===t.tag.object.type&&r.test(t.tag.object.name)||"MemberExpression"===t.tag.object.type&&"Identifier"===t.tag.object.property.type&&("only"===t.tag.object.property.name||"skip"===t.tag.object.property.name)&&"Identifier"===t.tag.object.object.type&&r.test(t.tag.object.object.name))},isJsxNode:w,isLiteral:E,isLongCurriedCallExpression:function(e){let t=e.getValue(),r=e.getParentNode();return B(t)&&B(r)&&r.callee===t&&t.arguments.length>r.arguments.length&&r.arguments.length>0},isSimpleCallArgument:function e(t,r){if(r>=2)return!1;let n=t=>e(t,r+1),s="Literal"===t.type&&"regex"in t&&t.regex.pattern||"RegExpLiteral"===t.type&&t.pattern;return!(s&&u(s)>5)&&("Literal"===t.type||"BigIntLiteral"===t.type||"DecimalLiteral"===t.type||"BooleanLiteral"===t.type||"NullLiteral"===t.type||"NumericLiteral"===t.type||"RegExpLiteral"===t.type||"StringLiteral"===t.type||"Identifier"===t.type||"ThisExpression"===t.type||"Super"===t.type||"PrivateName"===t.type||"PrivateIdentifier"===t.type||"ArgumentPlaceholder"===t.type||"Import"===t.type||("TemplateLiteral"===t.type?t.quasis.every((e=>!e.value.raw.includes("\n")))&&t.expressions.every(n):"ObjectExpression"===t.type?t.properties.every((e=>!e.computed&&(e.shorthand||e.value&&n(e.value)))):"ArrayExpression"===t.type?t.elements.every((e=>null===e||n(e))):Q(t)?("ImportExpression"===t.type||e(t.callee,r))&&H(t).every(n):_(t)?e(t.object,r)&&e(t.property,r):"UnaryExpression"===t.type&&{"!":!0,"-":!0,"+":!0,"~":!0}[t.operator]||"UpdateExpression"===t.type&&{"++":!0,"--":!0}[t.operator]?e(t.argument,r):"TSNonNullExpression"===t.type&&e(t.expression,r)))},isMemberish:function(e){return _(e)||"BindExpression"===e.type&&Boolean(e.object)},isNumericLiteral:b,isSignedNumericLiteral:function(e){return"UnaryExpression"===e.type&&("+"===e.operator||"-"===e.operator)&&b(e.argument)},isObjectProperty:function(e){return e&&("ObjectProperty"===e.type||"Property"===e.type&&!e.method&&"init"===e.kind)},isObjectType:A,isObjectTypePropertyAFunction:function(e){return!("ObjectTypeProperty"!==e.type&&"ObjectTypeInternalSlot"!==e.type||"FunctionTypeAnnotation"!==e.value.type||e.static||P(e))},isSimpleType:function(e){return!(!e||("GenericTypeAnnotation"!==e.type&&"TSTypeReference"!==e.type||e.typeParameters)&&!N.has(e.type))},isSimpleNumber:O,isSimpleTemplateLiteral:function(e){let t="expressions";"TSTemplateLiteralType"===e.type&&(t="types");let r=e[t];return 0!==r.length&&r.every((e=>{if(Z(e))return!1;if("Identifier"===e.type||"ThisExpression"===e.type)return!0;if(_(e)){let t=e;for(;_(t);)if("Identifier"!==t.property.type&&"Literal"!==t.property.type&&"StringLiteral"!==t.property.type&&"NumericLiteral"!==t.property.type||(t=t.object,Z(t)))return!1;return"Identifier"===t.type||"ThisExpression"===t.type}return!1}))},isStringLiteral:C,isStringPropSafeToUnquote:function(e,t){return"json"!==t.parser&&C(e.key)&&j(e.key).slice(1,-1)===e.key.value&&(r(e.key.value)&&!("babel-ts"===t.parser&&"ClassProperty"===e.type||"typescript"===t.parser&&"PropertyDefinition"===e.type)||O(e.key.value)&&String(Number(e.key.value))===e.key.value&&("babel"===t.parser||"acorn"===t.parser||"espree"===t.parser||"meriyah"===t.parser||"__babel_estree"===t.parser))},isTemplateOnItsOwnLine:function(e,t){return("TemplateLiteral"===e.type&&L(e)||"TaggedTemplateExpression"===e.type&&L(e.quasi))&&!s(t,l(e),{backwards:!0})},isTestCall:function e(t,r){if("CallExpression"!==t.type)return!1;if(1===t.arguments.length){if(T(t)&&r&&e(r))return S(t.arguments[0]);if(function(e){return"Identifier"===e.callee.type&&/^(?:before|after)(?:Each|All)$/.test(e.callee.name)&&1===e.arguments.length}(t))return T(t.arguments[0])}else if((2===t.arguments.length||3===t.arguments.length)&&("TemplateLiteral"===t.arguments[0].type||C(t.arguments[0]))&&function(e){return d(e,I)}(t.callee))return!(t.arguments[2]&&!b(t.arguments[2]))&&((2===t.arguments.length?S(t.arguments[1]):function(e){return"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type&&"BlockStatement"===e.body.type}(t.arguments[1])&&W(t.arguments[1]).length<=1)||T(t.arguments[1]));return!1},isTheOnlyJsxElementInMarkdown:function(e,t){if("markdown"!==e.parentParser&&"mdx"!==e.parentParser)return!1;let r=t.getNode();if(!r.expression||!w(r.expression))return!1;let n=t.getParentNode();return"Program"===n.type&&1===n.body.length},isTSXFile:function(e){return e.filepath&&/\.tsx$/i.test(e.filepath)},isTypeAnnotationAFunction:function(e){return!("TypeAnnotation"!==e.type&&"TSTypeAnnotation"!==e.type||"FunctionTypeAnnotation"!==e.typeAnnotation.type||e.static||c(e,e.typeAnnotation))},isNextLineEmpty:(e,t)=>{let{originalText:r}=t;return o(r,p(e))},needsHardlineAfterDanglingComment:function(e){if(!Z(e))return!1;let t=n(Y(e,X.Dangling));return t&&!h(t)},rawText:j,shouldPrintComma:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"es5";return"es5"===e.trailingComma&&"es5"===t||"all"===e.trailingComma&&("all"===t||"es5"===t)},isBitwiseOperator:function(e){return Boolean($[e])||"|"===e||"^"===e||"&"===e},shouldFlatten:function(e,t){return!(z(t)!==z(e)||"**"===e||M[e]&&M[t]||"%"===t&&R[e]||"%"===e&&R[t]||t!==e&&R[t]&&R[e]||$[e]&&$[t])},startsWithNoLookaheadToken:function e(t,r){switch(t.type){case"BinaryExpression":case"LogicalExpression":case"AssignmentExpression":case"NGPipeExpression":return e(t.left,r);case"MemberExpression":case"OptionalMemberExpression":return e(t.object,r);case"TaggedTemplateExpression":return"FunctionExpression"!==t.tag.type&&e(t.tag,r);case"CallExpression":case"OptionalCallExpression":return"FunctionExpression"!==t.callee.type&&e(t.callee,r);case"ConditionalExpression":return e(t.test,r);case"UpdateExpression":return!t.prefix&&e(t.argument,r);case"BindExpression":return t.object&&e(t.object,r);case"SequenceExpression":return e(t.expressions[0],r);case"TSSatisfiesExpression":case"TSAsExpression":case"TSNonNullExpression":return e(t.expression,r);default:return r(t)}},getPrecedence:z,hasComment:Z,getComments:Y,CommentCheckFlags:X,markerForIfWithoutBlockAndSameLineComment:ee,isTSTypeExpression:te}}}),ar=x({"src/language-js/print/template-literal.js"(e,t){v();var r=P(),{getStringWidth:n,getIndentSize:s}=de(),{builders:{join:i,hardline:a,softline:o,group:u,indent:l,align:p,lineSuffixBoundary:c,addAlignmentToDoc:h},printer:{printDocToString:d},utils:{mapDoc:f}}=W(),{isBinaryish:m,isJestEachTemplateLiteral:y,isSimpleTemplateLiteral:g,hasComment:D,isMemberExpression:x,isTSTypeExpression:E}=ir();function b(e){return e.replace(/([\\`]|\${)/g,"\\$1")}t.exports={printTemplateLiteral:function(e,t,f){let b=e.getValue();if("TemplateLiteral"===b.type&&y(b,e.getParentNode())){let s=function(e,t,s){let o=e.getNode(),u=o.quasis[0].value.raw.trim().split(/\s*\|\s*/);if(u.length>1||u.some((e=>e.length>0))){t.__inJestEach=!0;let p=e.map(s,"expressions");t.__inJestEach=!1;let h=[],f=p.map((e=>"${"+d(e,Object.assign(Object.assign({},t),{},{printWidth:Number.POSITIVE_INFINITY,endOfLine:"lf"})).formatted+"}")),m=[{hasLineBreak:!1,cells:[]}];for(let e=1;e<o.quasis.length;e++){let t=r(m),n=f[e-1];t.cells.push(n),n.includes("\n")&&(t.hasLineBreak=!0),o.quasis[e].value.raw.includes("\n")&&m.push({hasLineBreak:!1,cells:[]})}let y=Math.max(u.length,...m.map((e=>e.cells.length))),g=Array.from({length:y}).fill(0),D=[{cells:u},...m.filter((e=>e.cells.length>0))];for(let{cells:e}of D.filter((e=>!e.hasLineBreak)))for(let[t,r]of e.entries())g[t]=Math.max(g[t],n(r));return h.push(c,"`",l([a,i(a,D.map((e=>i(" | ",e.cells.map(((t,r)=>e.hasLineBreak?t:t+" ".repeat(g[r]-n(t))))))))]),a,"`"),h}}(e,f,t);if(s)return s}let C="expressions";"TSTemplateLiteralType"===b.type&&(C="types");let v=[],A=e.map(t,C),S=g(b);return S&&(A=A.map((e=>d(e,Object.assign(Object.assign({},f),{},{printWidth:Number.POSITIVE_INFINITY})).formatted))),v.push(c,"`"),e.each((e=>{let r=e.getName();if(v.push(t()),r<A.length){let{tabWidth:t}=f,n=e.getValue(),i=s(n.value.raw,t),a=A[r];if(!S){let e=b[C][r];(D(e)||x(e)||"ConditionalExpression"===e.type||"SequenceExpression"===e.type||E(e)||m(e))&&(a=[l([o,a]),o])}let d=0===i&&n.value.raw.endsWith("\n")?p(Number.NEGATIVE_INFINITY,a):h(a,i,t);v.push(u(["${",d,c,"}"]))}}),"quasis"),v.push("`"),v},printTemplateExpressions:function(e,t){return e.map((e=>function(e,t){let r=e.getValue(),n=t();return D(r)&&(n=u([l([o,n]),o])),["${",n,c,"}"]}(e,t)),"expressions")},escapeTemplateCharacters:function(e,t){return f(e,(e=>"string"==typeof e?t?e.replace(/(\\*)`/g,"$1$1\\`"):b(e):e))},uncookTemplateElementValue:b}}}),or=x({"src/language-js/embed/markdown.js"(e,t){v();var{builders:{indent:r,softline:n,literalline:s,dedentToRoot:i}}=W(),{escapeTemplateCharacters:a}=ar();t.exports=function(e,t,o){let u=e.getValue().quasis[0].value.raw.replace(/((?:\\\\)*)\\`/g,((e,t)=>"\\".repeat(t.length/2)+"`")),l=function(e){let t=e.match(/^([^\S\n]*)\S/m);return null===t?"":t[1]}(u),p=""!==l;p&&(u=u.replace(new RegExp(`^${l}`,"gm"),""));let c=a(o(u,{parser:"markdown",__inJsTemplate:!0},{stripTrailingHardline:!0}),!0);return["`",p?r([n,c]):[s,i(c)],n,"`"]}}}),ur=x({"src/language-js/embed/css.js"(e,t){v();var{isNonEmptyArray:r}=de(),{builders:{indent:n,hardline:s,softline:i},utils:{mapDoc:a,replaceEndOfLine:o,cleanDoc:u}}=W(),{printTemplateExpressions:l}=ar();t.exports=function(e,t,p){let c=e.getValue(),h=c.quasis.map((e=>e.value.raw)),d=0;return function(e,t,l){if(1===t.quasis.length&&!t.quasis[0].value.raw.trim())return"``";let p=function(e,t){if(!r(t))return e;let n=0,s=a(u(e),(e=>"string"==typeof e&&e.includes("@prettier-placeholder")?e.split(/@prettier-placeholder-(\d+)-id/).map(((e,r)=>r%2==0?o(e):(n++,t[e]))):e));return t.length===n?s:null}(e,l);if(!p)throw new Error("Couldn't insert all the expressions");return["`",n([s,p]),i,"`"]}(p(h.reduce(((e,t,r)=>0===r?t:e+"@prettier-placeholder-"+d+++"-id"+t),""),{parser:"scss"},{stripTrailingHardline:!0}),c,l(e,t))}}}),lr=x({"src/language-js/embed/graphql.js"(e,t){v();var{builders:{indent:r,join:n,hardline:s}}=W(),{escapeTemplateCharacters:i,printTemplateExpressions:a}=ar();function o(e){let t=[],r=!1,i=e.map((e=>e.trim()));for(let[e,n]of i.entries())""!==n&&(""===i[e-1]&&r?t.push([s,n]):t.push(n),r=!0);return 0===t.length?null:n(s,t)}t.exports=function(e,t,u){let l=e.getValue(),p=l.quasis.length;if(1===p&&""===l.quasis[0].value.raw.trim())return"``";let c=a(e,t),h=[];for(let e=0;e<p;e++){let t=0===e,r=e===p-1,n=l.quasis[e].value.cooked,s=n.split("\n"),a=s.length,d=c[e],f=a>2&&""===s[0].trim()&&""===s[1].trim(),m=a>2&&""===s[a-1].trim()&&""===s[a-2].trim(),y=s.every((e=>/^\s*(?:#[^\n\r]*)?$/.test(e)));if(!r&&/#[^\n\r]*$/.test(s[a-1]))return null;let g=null;g=y?o(s):u(n,{parser:"graphql"},{stripTrailingHardline:!0}),g?(g=i(g,!1),!t&&f&&h.push(""),h.push(g),!r&&m&&h.push("")):!t&&!r&&f&&h.push(""),d&&h.push(d)}return["`",r([s,n(s,h)]),s,"`"]}}}),pr=x({"src/language-js/embed/html.js"(e,t){v();var{builders:{indent:r,line:n,hardline:s,group:i},utils:{mapDoc:a}}=W(),{printTemplateExpressions:o,uncookTemplateElementValue:u}=ar(),l=0;t.exports=function(e,t,p,c,h){let{parser:d}=h,f=e.getValue(),m=l;l=l+1>>>0;let y=e=>`PRETTIER_HTML_PLACEHOLDER_${e}_${m}_IN_JS`,g=f.quasis.map(((e,t,r)=>t===r.length-1?e.value.cooked:e.value.cooked+y(t))).join(""),D=o(e,t);if(0===D.length&&0===g.trim().length)return"``";let x=new RegExp(y("(\\d+)"),"g"),E=0,b=p(g,{parser:d,__onHtmlRoot(e){E=e.children.length}},{stripTrailingHardline:!0}),C=a(b,(e=>{if("string"!=typeof e)return e;let t=[],r=e.split(x);for(let e=0;e<r.length;e++){let n=r[e];if(e%2==0){n&&(n=u(n),c.__embeddedInHtml&&(n=n.replace(/<\/(script)\b/gi,"<\\/$1")),t.push(n));continue}let s=Number(n);t.push(D[s])}return t})),v=/^\s/.test(g)?" ":"",A=/\s$/.test(g)?" ":"",S="ignore"===c.htmlWhitespaceSensitivity?s:v&&A?n:null;return i(S?["`",r([S,i(C)]),S,"`"]:["`",v,E>1?r(i(C)):i(C),A,"`"])}}}),cr=x({"src/language-js/embed.js"(e,t){v();var{hasComment:r,CommentCheckFlags:n,isObjectProperty:s}=ir(),i=or(),a=ur(),o=lr(),u=pr();function l(e){return function(e){let t=e.getValue(),r=e.getParentNode(),n=e.getParentNode(1);return n&&t.quasis&&"JSXExpressionContainer"===r.type&&"JSXElement"===n.type&&"style"===n.openingElement.name.name&&n.openingElement.attributes.some((e=>"jsx"===e.name.name))||r&&"TaggedTemplateExpression"===r.type&&"Identifier"===r.tag.type&&"css"===r.tag.name||r&&"TaggedTemplateExpression"===r.type&&"MemberExpression"===r.tag.type&&"css"===r.tag.object.name&&("global"===r.tag.property.name||"resolve"===r.tag.property.name)}(e)||function(e){let t=e.getParentNode();if(!t||"TaggedTemplateExpression"!==t.type)return!1;let r="ParenthesizedExpression"===t.tag.type?t.tag.expression:t.tag;switch(r.type){case"MemberExpression":return c(r.object)||h(r);case"CallExpression":return c(r.callee)||"MemberExpression"===r.callee.type&&("MemberExpression"===r.callee.object.type&&(c(r.callee.object.object)||h(r.callee.object))||"CallExpression"===r.callee.object.type&&c(r.callee.object.callee));case"Identifier":return"css"===r.name;default:return!1}}(e)||function(e){let t=e.getParentNode(),r=e.getParentNode(1);return r&&"JSXExpressionContainer"===t.type&&"JSXAttribute"===r.type&&"JSXIdentifier"===r.name.type&&"css"===r.name.name}(e)||function(e){return e.match((e=>"TemplateLiteral"===e.type),((e,t)=>"ArrayExpression"===e.type&&"elements"===t),((e,t)=>s(e)&&"Identifier"===e.key.type&&"styles"===e.key.name&&"value"===t),...p)}(e)?"css":function(e){let t=e.getValue(),r=e.getParentNode();return d(t,"GraphQL")||r&&("TaggedTemplateExpression"===r.type&&("MemberExpression"===r.tag.type&&"graphql"===r.tag.object.name&&"experimental"===r.tag.property.name||"Identifier"===r.tag.type&&("gql"===r.tag.name||"graphql"===r.tag.name))||"CallExpression"===r.type&&"Identifier"===r.callee.type&&"graphql"===r.callee.name)}(e)?"graphql":function(e){return d(e.getValue(),"HTML")||e.match((e=>"TemplateLiteral"===e.type),((e,t)=>"TaggedTemplateExpression"===e.type&&"Identifier"===e.tag.type&&"html"===e.tag.name&&"quasi"===t))}(e)?"html":function(e){return e.match((e=>"TemplateLiteral"===e.type),((e,t)=>s(e)&&"Identifier"===e.key.type&&"template"===e.key.name&&"value"===t),...p)}(e)?"angular":function(e){let t=e.getValue(),r=e.getParentNode();return r&&"TaggedTemplateExpression"===r.type&&1===t.quasis.length&&"Identifier"===r.tag.type&&("md"===r.tag.name||"markdown"===r.tag.name)}(e)?"markdown":void 0}var p=[(e,t)=>"ObjectExpression"===e.type&&"properties"===t,(e,t)=>"CallExpression"===e.type&&"Identifier"===e.callee.type&&"Component"===e.callee.name&&"arguments"===t,(e,t)=>"Decorator"===e.type&&"expression"===t];function c(e){return"Identifier"===e.type&&"styled"===e.name}function h(e){return/^[A-Z]/.test(e.object.name)&&"extend"===e.property.name}function d(e,t){return r(e,n.Block|n.Leading,(e=>{let{value:r}=e;return r===` ${t} `}))}t.exports=function(e,t,r,n){let s=e.getValue();if("TemplateLiteral"!==s.type||function(e){let{quasis:t}=e;return t.some((e=>{let{value:{cooked:t}}=e;return null===t}))}(s))return;let p=l(e);if(p){if("markdown"===p)return i(e,t,r);if("css"===p)return a(e,t,r);if("graphql"===p)return o(e,t,r);if("html"===p||"angular"===p)return u(e,t,r,n,{parser:p})}}}}),hr=x({"src/language-js/clean.js"(e,t){v();var r=nr(),n=new Set(["range","raw","comments","leadingComments","trailingComments","innerComments","extra","start","end","loc","flags","errors","tokens"]),s=e=>{for(let t of e.quasis)delete t.value};function i(e,t,n){if("Program"===e.type&&delete t.sourceType,("BigIntLiteral"===e.type||"BigIntLiteralTypeAnnotation"===e.type)&&t.value&&(t.value=t.value.toLowerCase()),("BigIntLiteral"===e.type||"Literal"===e.type)&&t.bigint&&(t.bigint=t.bigint.toLowerCase()),"DecimalLiteral"===e.type&&(t.value=Number(t.value)),"Literal"===e.type&&t.decimal&&(t.decimal=Number(t.decimal)),"EmptyStatement"===e.type||"JSXText"===e.type||"JSXExpressionContainer"===e.type&&("Literal"===e.expression.type||"StringLiteral"===e.expression.type)&&" "===e.expression.value)return null;if(("Property"===e.type||"ObjectProperty"===e.type||"MethodDefinition"===e.type||"ClassProperty"===e.type||"ClassMethod"===e.type||"PropertyDefinition"===e.type||"TSDeclareMethod"===e.type||"TSPropertySignature"===e.type||"ObjectTypeProperty"===e.type)&&"object"==typeof e.key&&e.key&&("Literal"===e.key.type||"NumericLiteral"===e.key.type||"StringLiteral"===e.key.type||"Identifier"===e.key.type)&&delete t.key,"JSXElement"===e.type&&"style"===e.openingElement.name.name&&e.openingElement.attributes.some((e=>"jsx"===e.name.name)))for(let{type:e,expression:r}of t.children)"JSXExpressionContainer"===e&&"TemplateLiteral"===r.type&&s(r);"JSXAttribute"===e.type&&"css"===e.name.name&&"JSXExpressionContainer"===e.value.type&&"TemplateLiteral"===e.value.expression.type&&s(t.value.expression),"JSXAttribute"===e.type&&e.value&&"Literal"===e.value.type&&/["']|"|'/.test(e.value.value)&&(t.value.value=t.value.value.replace(/["']|"|'/g,'"'));let i=e.expression||e.callee;if("Decorator"===e.type&&"CallExpression"===i.type&&"Component"===i.callee.name&&1===i.arguments.length){let r=e.expression.arguments[0].properties;for(let[e,n]of t.expression.arguments[0].properties.entries())switch(r[e].key.name){case"styles":"ArrayExpression"===n.value.type&&s(n.value.elements[0]);break;case"template":"TemplateLiteral"===n.value.type&&s(n.value)}}var a;return"TaggedTemplateExpression"===e.type&&("MemberExpression"===e.tag.type||"Identifier"===e.tag.type&&("gql"===e.tag.name||"graphql"===e.tag.name||"css"===e.tag.name||"md"===e.tag.name||"markdown"===e.tag.name||"html"===e.tag.name)||"CallExpression"===e.tag.type)&&s(t.quasi),"TemplateLiteral"===e.type&&((null===(a=e.leadingComments)||void 0===a?void 0:a.some((e=>r(e)&&["GraphQL","HTML"].some((t=>e.value===` ${t} `)))))||"CallExpression"===n.type&&"graphql"===n.callee.name||!e.leadingComments)&&s(t),"InterpreterDirective"===e.type&&(t.value=t.value.trimEnd()),"TSIntersectionType"!==e.type&&"TSUnionType"!==e.type||1!==e.types.length?void 0:t.types[0]}i.ignoredProperties=n,t.exports=i}}),dr={};function fr(){if(typeof Fr>"u"){var e=new ArrayBuffer(2),t=new Uint8Array(e),r=new Uint16Array(e);if(t[0]=1,t[1]=2,258===r[0])Fr="BE";else{if(513!==r[0])throw new Error("unable to figure out endianess");Fr="LE"}}return Fr}function mr(){return typeof globalThis.location<"u"?globalThis.location.hostname:""}function yr(){return[]}function gr(){return 0}function Dr(){return Number.MAX_VALUE}function xr(){return Number.MAX_VALUE}function Er(){return[]}function br(){return"Browser"}function Cr(){return typeof globalThis.navigator<"u"?globalThis.navigator.appVersion:""}function vr(){}function Ar(){}function Sr(){return"javascript"}function Tr(){return"browser"}function wr(){return"/tmp"}E(dr,{EOL:()=>kr,arch:()=>Sr,cpus:()=>Er,default:()=>Nr,endianness:()=>fr,freemem:()=>Dr,getNetworkInterfaces:()=>Ar,hostname:()=>mr,loadavg:()=>yr,networkInterfaces:()=>vr,platform:()=>Tr,release:()=>Cr,tmpDir:()=>wr,tmpdir:()=>Pr,totalmem:()=>xr,type:()=>br,uptime:()=>gr});var Fr,Pr,kr,Nr,Ir=D({"node-modules-polyfills:os"(){v(),Nr={EOL:kr="\n",tmpdir:Pr=wr,tmpDir:wr,networkInterfaces:vr,getNetworkInterfaces:Ar,release:Cr,type:br,cpus:Er,totalmem:xr,freemem:Dr,uptime:gr,loadavg:yr,hostname:mr,endianness:fr}}}),Br=x({"node-modules-polyfills-commonjs:os"(e,t){v();var r=(Ir(),C(dr));if(r&&r.default){t.exports=r.default;for(let e in r)t.exports[e]=r[e]}else r&&(t.exports=r)}}),_r=x({"node_modules/detect-newline/index.js"(e,t){v();var r=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");let t=e.match(/(?:\r?\n)/g)||[];if(0===t.length)return;let r=t.filter((e=>"\r\n"===e)).length;return r>t.length-r?"\r\n":"\n"};t.exports=r,t.exports.graceful=e=>"string"==typeof e&&r(e)||"\n"}}),Or=x({"node_modules/jest-docblock/build/index.js"(e){function t(){let e=Br();return t=function(){return e},e}function r(){let e=function(e){return e&&e.__esModule?e:{default:e}}(_r());return r=function(){return e},e}v(),Object.defineProperty(e,"__esModule",{value:!0}),e.extract=function(e){let t=e.match(i);return t?t[0].trimLeft():""},e.parse=function(e){return h(e).pragmas},e.parseWithComments=h,e.print=function(e){let{comments:n="",pragmas:s={}}=e,i=(0,r().default)(n)||t().EOL,a=" *",o=Object.keys(s),u=o.map((e=>d(e,s[e]))).reduce(((e,t)=>e.concat(t)),[]).map((e=>`${a} ${e}${i}`)).join("");if(!n){if(0===o.length)return"";if(1===o.length&&!Array.isArray(s[o[0]])){let e=s[o[0]];return`/** ${d(o[0],e)[0]} */`}}let l=n.split(i).map((e=>`${a} ${e}`)).join(i)+i;return"/**"+i+(n?l:"")+(n&&o.length?a+i:"")+u+" */"},e.strip=function(e){let t=e.match(i);return t&&t[0]?e.substring(t[0].length):e};var n=/\*\/$/,s=/^\/\*\*?/,i=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,a=/(^|\s+)\/\/([^\r\n]*)/g,o=/^(\r?\n)+/,u=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,l=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,p=/(\r?\n|^) *\* ?/g,c=[];function h(e){let i=(0,r().default)(e)||t().EOL;e=e.replace(s,"").replace(n,"").replace(p,"$1");let h="";for(;h!==e;)h=e,e=e.replace(u,`${i}$1 $2${i}`);e=e.replace(o,"").trimRight();let d,f=Object.create(null),m=e.replace(l,"").replace(o,"").trimRight();for(;d=l.exec(e);){let e=d[2].replace(a,"");"string"==typeof f[d[1]]||Array.isArray(f[d[1]])?f[d[1]]=c.concat(f[d[1]],e):f[d[1]]=e}return{comments:m,pragmas:f}}function d(e,t){return c.concat(t).map((t=>`@${e} ${t}`.trim()))}}}),Lr=x({"src/language-js/utils/get-shebang.js"(e,t){v(),t.exports=function(e){if(!e.startsWith("#!"))return"";let t=e.indexOf("\n");return-1===t?e:e.slice(0,t)}}}),jr=x({"src/language-js/pragma.js"(e,t){v();var{parseWithComments:r,strip:n,extract:s,print:i}=Or(),{normalizeEndOfLine:a}=F(),o=Lr();function u(e){let t=o(e);t&&(e=e.slice(t.length+1));let n=s(e),{pragmas:i,comments:a}=r(n);return{shebang:t,text:e,pragmas:i,comments:a}}t.exports={hasPragma:function(e){let t=Object.keys(u(e).pragmas);return t.includes("prettier")||t.includes("format")},insertPragma:function(e){let{shebang:t,text:r,pragmas:s,comments:o}=u(e),l=n(r),p=i({pragmas:Object.assign({format:""},s),comments:o.trimStart()});return(t?`${t}\n`:"")+a(p)+(l.startsWith("\n")?"\n":"\n\n")+l}}}}),Mr=x({"src/language-js/utils/is-type-cast-comment.js"(e,t){v();var r=nr();t.exports=function(e){return r(e)&&"*"===e.value[0]&&/@(?:type|satisfies)\b/.test(e.value)}}}),Rr=x({"src/language-js/comments.js"(e,t){v();var{getLast:r,hasNewline:n,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:s,getNextNonSpaceNonCommentCharacter:i,hasNewlineInRange:a,addLeadingComment:o,addTrailingComment:u,addDanglingComment:l,getNextNonSpaceNonCommentCharacterIndex:p,isNonEmptyArray:c}=de(),{getFunctionParameters:h,isPrettierIgnoreComment:d,isJsxNode:f,hasFlowShorthandAnnotationComment:m,hasFlowAnnotationComment:y,hasIgnoreComment:g,isCallLikeExpression:D,getCallArguments:x,isCallExpression:E,isMemberExpression:b,isObjectProperty:C,isLineComment:A,getComments:S,CommentCheckFlags:T,markerForIfWithoutBlockAndSameLineComment:w}=ir(),{locStart:F,locEnd:P}=jt(),k=nr(),N=Mr();function I(e,t){let r=(e.body||e.properties).find((e=>{let{type:t}=e;return"EmptyStatement"!==t}));r?o(r,t):l(e,t)}function B(e,t){"BlockStatement"===e.type?I(e,t):o(e,t)}function _(e){let{comment:t,followingNode:r}=e;return!(!r||!N(t)||(o(r,t),0))}function O(e){let{comment:t,precedingNode:r,enclosingNode:n,followingNode:s,text:a}=e;if("IfStatement"!==(null==n?void 0:n.type)||!s)return!1;if(")"===i(a,t,P))return u(r,t),!0;if(r===n.consequent&&s===n.alternate){if("BlockStatement"===r.type)u(r,t);else{let e="SingleLine"===t.type||t.loc.start.line===t.loc.end.line,s=t.loc.start.line===r.loc.start.line;e&&s?l(r,t,w):l(n,t)}return!0}return"BlockStatement"===s.type?(I(s,t),!0):"IfStatement"===s.type?(B(s.consequent,t),!0):n.consequent===s&&(o(s,t),!0)}function L(e){let{comment:t,precedingNode:r,enclosingNode:n,followingNode:s,text:a}=e;return!("WhileStatement"!==(null==n?void 0:n.type)||!s||(")"===i(a,t,P)?(u(r,t),0):"BlockStatement"===s.type?(I(s,t),0):n.body!==s||(o(s,t),0)))}function j(e){let{comment:t,precedingNode:r,enclosingNode:n,followingNode:s}=e;return!("TryStatement"!==(null==n?void 0:n.type)&&"CatchClause"!==(null==n?void 0:n.type)||!s||("CatchClause"===n.type&&r?(u(r,t),0):"BlockStatement"===s.type?(I(s,t),0):"TryStatement"===s.type?(B(s.finalizer,t),0):"CatchClause"!==s.type||(B(s.body,t),0)))}function M(e){let{comment:t,enclosingNode:r,followingNode:n}=e;return!(!b(r)||"Identifier"!==(null==n?void 0:n.type)||(o(r,t),0))}function R(e){let{comment:t,precedingNode:r,enclosingNode:n,followingNode:s,text:i}=e,u=r&&!a(i,P(r),F(t));return!(r&&u||"ConditionalExpression"!==(null==n?void 0:n.type)&&"TSConditionalType"!==(null==n?void 0:n.type)||!s||(o(s,t),0))}function $(e){let{comment:t,precedingNode:r,enclosingNode:n}=e;return!(!C(n)||!n.shorthand||n.key!==r||"AssignmentPattern"!==n.value.type||(u(n.value.left,t),0))}var U=new Set(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function z(e){let{comment:t,precedingNode:n,enclosingNode:s,followingNode:i}=e;if(U.has(null==s?void 0:s.type)){if(c(s.decorators)&&(!i||"Decorator"!==i.type))return u(r(s.decorators),t),!0;if(s.body&&i===s.body)return I(s.body,t),!0;if(i){if(s.superClass&&i===s.superClass&&n&&(n===s.id||n===s.typeParameters))return u(n,t),!0;for(let e of["implements","extends","mixins"])if(s[e]&&i===s[e][0])return!n||n!==s.id&&n!==s.typeParameters&&n!==s.superClass?l(s,t,e):u(n,t),!0}}return!1}var V=new Set(["ClassMethod","ClassProperty","PropertyDefinition","TSAbstractPropertyDefinition","TSAbstractMethodDefinition","TSDeclareMethod","MethodDefinition","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty"]);function W(e){let{comment:t,precedingNode:r,enclosingNode:n,text:s}=e;return!!(n&&r&&"("===i(s,t,P)&&("Property"===n.type||"TSDeclareMethod"===n.type||"TSAbstractMethodDefinition"===n.type)&&"Identifier"===r.type&&n.key===r&&":"!==i(s,r,P)||"Decorator"===(null==r?void 0:r.type)&&V.has(null==n?void 0:n.type))&&(u(r,t),!0)}var q=new Set(["FunctionDeclaration","FunctionExpression","ClassMethod","MethodDefinition","ObjectMethod"]);function H(e){let{comment:t,precedingNode:r,enclosingNode:n,text:s}=e;return!("("!==i(s,t,P)||!r||!q.has(null==n?void 0:n.type)||(u(r,t),0))}function J(e){let{comment:t,enclosingNode:r,text:n}=e;if("ArrowFunctionExpression"!==(null==r?void 0:r.type))return!1;let s=p(n,t,P);return!1!==s&&"=>"===n.slice(s,s+2)&&(l(r,t),!0)}function G(e){let{comment:t,enclosingNode:r,text:n}=e;return!(")"!==i(n,t,P)||(r&&(he(r)&&0===h(r).length||D(r)&&0===x(r).length)?(l(r,t),0):"MethodDefinition"!==(null==r?void 0:r.type)&&"TSAbstractMethodDefinition"!==(null==r?void 0:r.type)||0!==h(r.value).length||(l(r.value,t),0)))}function X(e){let{comment:t,precedingNode:n,enclosingNode:a,followingNode:o,text:l}=e;if("FunctionTypeParam"===(null==n?void 0:n.type)&&"FunctionTypeAnnotation"===(null==a?void 0:a.type)&&"FunctionTypeParam"!==(null==o?void 0:o.type)||("Identifier"===(null==n?void 0:n.type)||"AssignmentPattern"===(null==n?void 0:n.type))&&a&&he(a)&&")"===i(l,t,P))return u(n,t),!0;if("FunctionDeclaration"===(null==a?void 0:a.type)&&"BlockStatement"===(null==o?void 0:o.type)){let e=(()=>{let e=h(a);if(e.length>0)return s(l,P(r(e)));let t=s(l,P(a.id));return!1!==t&&s(l,t+1)})();if(F(t)>e)return I(o,t),!0}return!1}function K(e){let{comment:t,enclosingNode:r}=e;return"LabeledStatement"===(null==r?void 0:r.type)&&(o(r,t),!0)}function Z(e){let{comment:t,enclosingNode:r}=e;return!("ContinueStatement"!==(null==r?void 0:r.type)&&"BreakStatement"!==(null==r?void 0:r.type)||r.label||(u(r,t),0))}function Y(e){let{comment:t,precedingNode:r,enclosingNode:n}=e;return!!(E(n)&&r&&n.callee===r&&n.arguments.length>0)&&(o(n.arguments[0],t),!0)}function Q(e){let{comment:t,precedingNode:r,enclosingNode:n,followingNode:s}=e;return"UnionTypeAnnotation"===(null==n?void 0:n.type)||"TSUnionType"===(null==n?void 0:n.type)?(d(t)&&(s.prettierIgnore=!0,t.unignore=!0),!!r&&(u(r,t),!0)):(("UnionTypeAnnotation"===(null==s?void 0:s.type)||"TSUnionType"===(null==s?void 0:s.type))&&d(t)&&(s.types[0].prettierIgnore=!0,t.unignore=!0),!1)}function ee(e){let{comment:t,enclosingNode:r}=e;return!!C(r)&&(o(r,t),!0)}function te(e){let{comment:t,enclosingNode:r,followingNode:n,ast:s,isLastComment:i}=e;return s&&s.body&&0===s.body.length?(i?l(s,t):o(s,t),!0):"Program"!==(null==r?void 0:r.type)||0!==(null==r?void 0:r.body.length)||c(r.directives)?"Program"===(null==n?void 0:n.type)&&0===(null==n?void 0:n.body.length)&&"ModuleExpression"===(null==r?void 0:r.type)&&(l(n,t),!0):(i?l(r,t):o(r,t),!0)}function re(e){let{comment:t,enclosingNode:r}=e;return("ForInStatement"===(null==r?void 0:r.type)||"ForOfStatement"===(null==r?void 0:r.type))&&(o(r,t),!0)}function ne(e){let{comment:t,precedingNode:r,enclosingNode:s,text:i}=e;if("ImportSpecifier"===(null==s?void 0:s.type)||"ExportSpecifier"===(null==s?void 0:s.type))return o(s,t),!0;let a="ImportSpecifier"===(null==r?void 0:r.type)&&"ImportDeclaration"===(null==s?void 0:s.type),l="ExportSpecifier"===(null==r?void 0:r.type)&&"ExportNamedDeclaration"===(null==s?void 0:s.type);return!(!a&&!l||!n(i,P(t))||(u(r,t),0))}function se(e){let{comment:t,enclosingNode:r}=e;return"AssignmentPattern"===(null==r?void 0:r.type)&&(o(r,t),!0)}var ie=new Set(["VariableDeclarator","AssignmentExpression","TypeAlias","TSTypeAliasDeclaration"]),ae=new Set(["ObjectExpression","ArrayExpression","TemplateLiteral","TaggedTemplateExpression","ObjectTypeAnnotation","TSTypeLiteral"]);function oe(e){let{comment:t,enclosingNode:r,followingNode:n}=e;return!(!ie.has(null==r?void 0:r.type)||!n||!ae.has(n.type)&&!k(t)||(o(n,t),0))}function ue(e){let{comment:t,enclosingNode:r,followingNode:n,text:s}=e;return!(n||"TSMethodSignature"!==(null==r?void 0:r.type)&&"TSDeclareFunction"!==(null==r?void 0:r.type)&&"TSAbstractMethodDefinition"!==(null==r?void 0:r.type)||";"!==i(s,t,P)||(u(r,t),0))}function le(e){let{comment:t,enclosingNode:r,followingNode:n}=e;if(d(t)&&"TSMappedType"===(null==r?void 0:r.type)&&"TSTypeParameter"===(null==n?void 0:n.type)&&n.constraint)return r.prettierIgnore=!0,t.unignore=!0,!0}function pe(e){let{comment:t,precedingNode:r,enclosingNode:n,followingNode:s}=e;return!("TSMappedType"!==(null==n?void 0:n.type)||("TSTypeParameter"===(null==s?void 0:s.type)&&s.name?(o(s.name,t),0):"TSTypeParameter"!==(null==r?void 0:r.type)||!r.constraint||(u(r.constraint,t),0)))}function ce(e){let{comment:t,enclosingNode:r,followingNode:n}=e;return!(!r||"SwitchCase"!==r.type||r.test||!n||n!==r.consequent[0]||("BlockStatement"===n.type&&A(t)?I(n,t):l(r,t),0))}function he(e){return"ArrowFunctionExpression"===e.type||"FunctionExpression"===e.type||"FunctionDeclaration"===e.type||"ObjectMethod"===e.type||"ClassMethod"===e.type||"TSDeclareFunction"===e.type||"TSCallSignatureDeclaration"===e.type||"TSConstructSignatureDeclaration"===e.type||"TSMethodSignature"===e.type||"TSConstructorType"===e.type||"TSFunctionType"===e.type||"TSDeclareMethod"===e.type}t.exports={handleOwnLineComment:function(e){return[le,X,M,O,L,j,z,re,Q,te,ne,se,W,K,Z].some((t=>t(e)))},handleEndOfLineComment:function(e){return[_,X,R,ne,O,L,j,z,K,Y,ee,te,oe,Z,ce].some((t=>t(e)))},handleRemainingComment:function(e){return[le,O,L,$,G,W,te,J,H,pe,Z,ue].some((t=>t(e)))},getCommentChildNodes:function(e,t){if(("typescript"===t.parser||"flow"===t.parser||"acorn"===t.parser||"espree"===t.parser||"meriyah"===t.parser||"__babel_estree"===t.parser)&&"MethodDefinition"===e.type&&e.value&&"FunctionExpression"===e.value.type&&0===h(e.value).length&&!e.value.returnType&&!c(e.value.typeParameters)&&e.value.body)return[...e.decorators||[],e.key,e.value.body]},willPrintOwnComments:function(e){let t=e.getValue(),r=e.getParentNode();return(t&&(f(t)||m(t)||E(r)&&(y(S(n=t,T.Leading))||y(S(n,T.Trailing))))||r&&("JSXSpreadAttribute"===r.type||"JSXSpreadChild"===r.type||"UnionTypeAnnotation"===r.type||"TSUnionType"===r.type||("ClassDeclaration"===r.type||"ClassExpression"===r.type)&&r.superClass===t))&&(!g(e)||"UnionTypeAnnotation"===r.type||"TSUnionType"===r.type);var n}}}}),$r=x({"src/language-js/needs-parens.js"(e,t){v();var r=P(),n=oe(),{getFunctionParameters:s,getLeftSidePathName:i,hasFlowShorthandAnnotationComment:a,hasNakedLeftSide:o,hasNode:u,isBitwiseOperator:l,startsWithNoLookaheadToken:p,shouldFlatten:c,getPrecedence:h,isCallExpression:d,isMemberExpression:f,isObjectProperty:m,isTSTypeExpression:y}=ir();function g(e,t){let r=e.getParentNode();if(!r)return!1;let i=e.getName(),o=e.getNode();if(t.__isInHtmlInterpolation&&!t.bracketSpacing&&function(e){return"ObjectExpression"===e.type}(o)&&D(e))return!0;if(function(e){return"BlockStatement"===e.type||"BreakStatement"===e.type||"ClassBody"===e.type||"ClassDeclaration"===e.type||"ClassMethod"===e.type||"ClassProperty"===e.type||"PropertyDefinition"===e.type||"ClassPrivateProperty"===e.type||"ContinueStatement"===e.type||"DebuggerStatement"===e.type||"DeclareClass"===e.type||"DeclareExportAllDeclaration"===e.type||"DeclareExportDeclaration"===e.type||"DeclareFunction"===e.type||"DeclareInterface"===e.type||"DeclareModule"===e.type||"DeclareModuleExports"===e.type||"DeclareVariable"===e.type||"DoWhileStatement"===e.type||"EnumDeclaration"===e.type||"ExportAllDeclaration"===e.type||"ExportDefaultDeclaration"===e.type||"ExportNamedDeclaration"===e.type||"ExpressionStatement"===e.type||"ForInStatement"===e.type||"ForOfStatement"===e.type||"ForStatement"===e.type||"FunctionDeclaration"===e.type||"IfStatement"===e.type||"ImportDeclaration"===e.type||"InterfaceDeclaration"===e.type||"LabeledStatement"===e.type||"MethodDefinition"===e.type||"ReturnStatement"===e.type||"SwitchStatement"===e.type||"ThrowStatement"===e.type||"TryStatement"===e.type||"TSDeclareFunction"===e.type||"TSEnumDeclaration"===e.type||"TSImportEqualsDeclaration"===e.type||"TSInterfaceDeclaration"===e.type||"TSModuleDeclaration"===e.type||"TSNamespaceExportDeclaration"===e.type||"TypeAlias"===e.type||"VariableDeclaration"===e.type||"WhileStatement"===e.type||"WithStatement"===e.type}(o))return!1;if("flow"!==t.parser&&a(e.getValue()))return!0;if("Identifier"===o.type){if(o.extra&&o.extra.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(o.name)||"left"===i&&("async"===o.name&&!r.await||"let"===o.name)&&"ForOfStatement"===r.type)return!0;if("let"===o.name){var g;let t=null===(g=e.findAncestor((e=>"ForOfStatement"===e.type)))||void 0===g?void 0:g.left;if(t&&p(t,(e=>e===o)))return!0}if("object"===i&&"let"===o.name&&"MemberExpression"===r.type&&r.computed&&!r.optional){let t=e.findAncestor((e=>"ExpressionStatement"===e.type||"ForStatement"===e.type||"ForInStatement"===e.type)),r=t?"ExpressionStatement"===t.type?t.expression:"ForStatement"===t.type?t.init:t.left:void 0;if(r&&p(r,(e=>e===o)))return!0}return!1}if("ObjectExpression"===o.type||"FunctionExpression"===o.type||"ClassExpression"===o.type||"DoExpression"===o.type){var E;let t=null===(E=e.findAncestor((e=>"ExpressionStatement"===e.type)))||void 0===E?void 0:E.expression;if(t&&p(t,(e=>e===o)))return!0}switch(r.type){case"ParenthesizedExpression":return!1;case"ClassDeclaration":case"ClassExpression":if("superClass"===i&&("ArrowFunctionExpression"===o.type||"AssignmentExpression"===o.type||"AwaitExpression"===o.type||"BinaryExpression"===o.type||"ConditionalExpression"===o.type||"LogicalExpression"===o.type||"NewExpression"===o.type||"ObjectExpression"===o.type||"SequenceExpression"===o.type||"TaggedTemplateExpression"===o.type||"UnaryExpression"===o.type||"UpdateExpression"===o.type||"YieldExpression"===o.type||"TSNonNullExpression"===o.type))return!0;break;case"ExportDefaultDeclaration":return x(e,t)||"SequenceExpression"===o.type;case"Decorator":if("expression"===i){if(f(o)&&o.computed)return!0;let e=!1,r=!1,n=o;for(;n;)switch(n.type){case"MemberExpression":r=!0,n=n.object;break;case"CallExpression":if(r||e)return"typescript"!==t.parser;e=!0,n=n.callee;break;case"Identifier":return!1;case"TaggedTemplateExpression":return"typescript"!==t.parser;default:return!0}return!0}break;case"ArrowFunctionExpression":if("body"===i&&"SequenceExpression"!==o.type&&p(o,(e=>"ObjectExpression"===e.type)))return!0}switch(o.type){case"UpdateExpression":if("UnaryExpression"===r.type)return o.prefix&&("++"===o.operator&&"+"===r.operator||"--"===o.operator&&"-"===r.operator);case"UnaryExpression":switch(r.type){case"UnaryExpression":return o.operator===r.operator&&("+"===o.operator||"-"===o.operator);case"BindExpression":case"TaggedTemplateExpression":case"TSNonNullExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return"object"===i;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===i;case"BinaryExpression":return"left"===i&&"**"===r.operator;default:return!1}case"BinaryExpression":if("UpdateExpression"===r.type||"in"===o.operator&&function(e){let t=0,r=e.getValue();for(;r;){let n=e.getParentNode(t++);if(n&&"ForStatement"===n.type&&n.init===r)return!0;r=n}return!1}(e))return!0;if("|>"===o.operator&&o.extra&&o.extra.parenthesized){let t=e.getParentNode(1);if("BinaryExpression"===t.type&&"|>"===t.operator)return!0}case"TSTypeAssertion":case"TSAsExpression":case"TSSatisfiesExpression":case"LogicalExpression":switch(r.type){case"TSSatisfiesExpression":case"TSAsExpression":return!y(o);case"ConditionalExpression":return y(o);case"CallExpression":case"NewExpression":case"OptionalCallExpression":return"callee"===i;case"ClassExpression":case"ClassDeclaration":return"superClass"===i;case"TSTypeAssertion":case"TaggedTemplateExpression":case"UnaryExpression":case"JSXSpreadAttribute":case"SpreadElement":case"SpreadProperty":case"BindExpression":case"AwaitExpression":case"TSNonNullExpression":case"UpdateExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return"object"===i;case"AssignmentExpression":case"AssignmentPattern":return"left"===i&&("TSTypeAssertion"===o.type||y(o));case"LogicalExpression":if("LogicalExpression"===o.type)return r.operator!==o.operator;case"BinaryExpression":{let{operator:e,type:t}=o;if(!e&&"TSTypeAssertion"!==t)return!0;let n=h(e),s=r.operator,a=h(s);return a>n||"right"===i&&a===n||a===n&&!c(s,e)||(a<n&&"%"===e?"+"===s||"-"===s:!!l(s))}default:return!1}case"SequenceExpression":switch(r.type){case"ReturnStatement":case"ForStatement":return!1;case"ExpressionStatement":return"expression"!==i;case"ArrowFunctionExpression":return"body"!==i;default:return!0}case"YieldExpression":if("UnaryExpression"===r.type||"AwaitExpression"===r.type||y(r)||"TSNonNullExpression"===r.type)return!0;case"AwaitExpression":switch(r.type){case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"SpreadElement":case"SpreadProperty":case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return"object"===i;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===i;case"ConditionalExpression":return"test"===i;case"BinaryExpression":return!(!o.argument&&"|>"===r.operator);default:return!1}case"TSConditionalType":case"TSFunctionType":case"TSConstructorType":if("extendsType"===i&&"TSConditionalType"===r.type){if("TSConditionalType"===o.type)return!0;let{typeAnnotation:e}=o.returnType||o.typeAnnotation;if("TSTypePredicate"===e.type&&e.typeAnnotation&&(e=e.typeAnnotation.typeAnnotation),"TSInferType"===e.type&&e.typeParameter.constraint)return!0}if("checkType"===i&&"TSConditionalType"===r.type)return!0;case"TSUnionType":case"TSIntersectionType":if(("TSUnionType"===r.type||"TSIntersectionType"===r.type)&&r.types.length>1&&(!o.types||o.types.length>1))return!0;case"TSInferType":if("TSInferType"===o.type&&"TSRestType"===r.type)return!1;case"TSTypeOperator":return"TSArrayType"===r.type||"TSOptionalType"===r.type||"TSRestType"===r.type||"objectType"===i&&"TSIndexedAccessType"===r.type||"TSTypeOperator"===r.type||"TSTypeAnnotation"===r.type&&e.getParentNode(1).type.startsWith("TSJSDoc");case"TSTypeQuery":return"objectType"===i&&"TSIndexedAccessType"===r.type||"elementType"===i&&"TSArrayType"===r.type;case"TypeofTypeAnnotation":return"objectType"===i&&("IndexedAccessType"===r.type||"OptionalIndexedAccessType"===r.type)||"elementType"===i&&"ArrayTypeAnnotation"===r.type;case"ArrayTypeAnnotation":return"NullableTypeAnnotation"===r.type;case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return"ArrayTypeAnnotation"===r.type||"NullableTypeAnnotation"===r.type||"IntersectionTypeAnnotation"===r.type||"UnionTypeAnnotation"===r.type||"objectType"===i&&("IndexedAccessType"===r.type||"OptionalIndexedAccessType"===r.type);case"NullableTypeAnnotation":return"ArrayTypeAnnotation"===r.type||"objectType"===i&&("IndexedAccessType"===r.type||"OptionalIndexedAccessType"===r.type);case"FunctionTypeAnnotation":{let t="NullableTypeAnnotation"===r.type?e.getParentNode(1):r;return"UnionTypeAnnotation"===t.type||"IntersectionTypeAnnotation"===t.type||"ArrayTypeAnnotation"===t.type||"objectType"===i&&("IndexedAccessType"===t.type||"OptionalIndexedAccessType"===t.type)||"NullableTypeAnnotation"===t.type||"FunctionTypeParam"===r.type&&null===r.name&&s(o).some((e=>e.typeAnnotation&&"NullableTypeAnnotation"===e.typeAnnotation.type))}case"OptionalIndexedAccessType":return"objectType"===i&&"IndexedAccessType"===r.type;case"StringLiteral":case"NumericLiteral":case"Literal":if("string"==typeof o.value&&"ExpressionStatement"===r.type&&!r.directive){let t=e.getParentNode(1);return"Program"===t.type||"BlockStatement"===t.type}return"object"===i&&"MemberExpression"===r.type&&"number"==typeof o.value;case"AssignmentExpression":{let t=e.getParentNode(1);return"body"===i&&"ArrowFunctionExpression"===r.type||("key"!==i||"ClassProperty"!==r.type&&"PropertyDefinition"!==r.type||!r.computed)&&("init"!==i&&"update"!==i||"ForStatement"!==r.type)&&("ExpressionStatement"===r.type?"ObjectPattern"===o.left.type:!("key"===i&&"TSPropertySignature"===r.type||"AssignmentExpression"===r.type||"SequenceExpression"===r.type&&t&&"ForStatement"===t.type&&(t.init===r||t.update===r)||"value"===i&&"Property"===r.type&&t&&"ObjectPattern"===t.type&&t.properties.includes(r)||"NGChainedExpression"===r.type))}case"ConditionalExpression":switch(r.type){case"TaggedTemplateExpression":case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":case"ExportDefaultDeclaration":case"AwaitExpression":case"JSXSpreadAttribute":case"TSTypeAssertion":case"TypeCastExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===i;case"ConditionalExpression":return"test"===i;case"MemberExpression":case"OptionalMemberExpression":return"object"===i;default:return!1}case"FunctionExpression":switch(r.type){case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===i;case"TaggedTemplateExpression":return!0;default:return!1}case"ArrowFunctionExpression":switch(r.type){case"BinaryExpression":return"|>"!==r.operator||o.extra&&o.extra.parenthesized;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===i;case"MemberExpression":case"OptionalMemberExpression":return"object"===i;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"BindExpression":case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"AwaitExpression":case"TSTypeAssertion":return!0;case"ConditionalExpression":return"test"===i;default:return!1}case"ClassExpression":return!!n(o.decorators)||"NewExpression"===r.type&&"callee"===i;case"OptionalMemberExpression":case"OptionalCallExpression":{let t=e.getParentNode(1);if("object"===i&&"MemberExpression"===r.type||"callee"===i&&("CallExpression"===r.type||"NewExpression"===r.type)||"TSNonNullExpression"===r.type&&"MemberExpression"===t.type&&t.object===r)return!0}case"CallExpression":case"MemberExpression":case"TaggedTemplateExpression":case"TSNonNullExpression":if("callee"===i&&("BindExpression"===r.type||"NewExpression"===r.type)){let e=o;for(;e;)switch(e.type){case"CallExpression":case"OptionalCallExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":case"BindExpression":e=e.object;break;case"TaggedTemplateExpression":e=e.tag;break;case"TSNonNullExpression":e=e.expression;break;default:return!1}}return!1;case"BindExpression":return"callee"===i&&("BindExpression"===r.type||"NewExpression"===r.type)||"object"===i&&f(r);case"NGPipeExpression":return!("NGRoot"===r.type||"NGMicrosyntaxExpression"===r.type||"ObjectProperty"===r.type&&(!o.extra||!o.extra.parenthesized)||"ArrayExpression"===r.type||d(r)&&r.arguments[i]===o||"right"===i&&"NGPipeExpression"===r.type||"property"===i&&"MemberExpression"===r.type||"AssignmentExpression"===r.type);case"JSXFragment":case"JSXElement":return"callee"===i||"left"===i&&"BinaryExpression"===r.type&&"<"===r.operator||"ArrayExpression"!==r.type&&"ArrowFunctionExpression"!==r.type&&"AssignmentExpression"!==r.type&&"AssignmentPattern"!==r.type&&"BinaryExpression"!==r.type&&"NewExpression"!==r.type&&"ConditionalExpression"!==r.type&&"ExpressionStatement"!==r.type&&"JsExpressionRoot"!==r.type&&"JSXAttribute"!==r.type&&"JSXElement"!==r.type&&"JSXExpressionContainer"!==r.type&&"JSXFragment"!==r.type&&"LogicalExpression"!==r.type&&!d(r)&&!m(r)&&"ReturnStatement"!==r.type&&"ThrowStatement"!==r.type&&"TypeCastExpression"!==r.type&&"VariableDeclarator"!==r.type&&"YieldExpression"!==r.type;case"TypeAnnotation":return"returnType"===i&&"ArrowFunctionExpression"===r.type&&function(e){return u(e,(e=>"ObjectTypeAnnotation"===e.type&&u(e,(e=>"FunctionTypeAnnotation"===e.type||void 0))||void 0))}(o)}return!1}function D(e){let t=e.getValue(),n=e.getParentNode(),s=e.getName();switch(n.type){case"NGPipeExpression":if("number"==typeof s&&n.arguments[s]===t&&n.arguments.length-1===s)return e.callParent(D);break;case"ObjectProperty":if("value"===s){let t=e.getParentNode(1);return r(t.properties)===n}break;case"BinaryExpression":case"LogicalExpression":if("right"===s)return e.callParent(D);break;case"ConditionalExpression":if("alternate"===s)return e.callParent(D);break;case"UnaryExpression":if(n.prefix)return e.callParent(D)}return!1}function x(e,t){let r=e.getValue(),n=e.getParentNode();return"FunctionExpression"===r.type||"ClassExpression"===r.type?"ExportDefaultDeclaration"===n.type||!g(e,t):!(!o(r)||"ExportDefaultDeclaration"!==n.type&&g(e,t))&&e.call((e=>x(e,t)),...i(e,r))}t.exports=g}}),Ur=x({"src/language-js/print-preprocess.js"(e,t){v(),t.exports=function(e,t){switch(t.parser){case"json":case"json5":case"json-stringify":case"__js_expression":case"__vue_expression":case"__vue_ts_expression":return Object.assign(Object.assign({},e),{},{type:t.parser.startsWith("__")?"JsExpressionRoot":"JsonRoot",node:e,comments:[],rootMarker:t.rootMarker});default:return e}}}}),zr=x({"src/language-js/print/html-binding.js"(e,t){v();var{builders:{join:r,line:n,group:s,softline:i,indent:a}}=W();t.exports={isVueEventBindingExpression:function e(t){switch(t.type){case"MemberExpression":switch(t.property.type){case"Identifier":case"NumericLiteral":case"StringLiteral":return e(t.object)}return!1;case"Identifier":return!0;default:return!1}},printHtmlBinding:function(e,t,o){let u=e.getValue();if(t.__onHtmlBindingRoot&&null===e.getName()&&t.__onHtmlBindingRoot(u,t),"File"===u.type){if(t.__isVueForBindingLeft)return e.call((e=>{let t=r([",",n],e.map(o,"params")),{params:u}=e.getValue();return 1===u.length?t:["(",a([i,s(t)]),i,")"]}),"program","body",0);if(t.__isVueBindings)return e.call((e=>r([",",n],e.map(o,"params"))),"program","body",0)}}}}}),Vr=x({"src/language-js/print/binaryish.js"(e,t){v();var{printComments:r}=qt(),{getLast:n}=de(),{builders:{join:s,line:i,softline:a,group:o,indent:u,align:l,indentIfBreak:p},utils:{cleanDoc:c,getDocParts:h,isConcat:d}}=W(),{hasLeadingOwnLineComment:f,isBinaryish:m,isJsxNode:y,shouldFlatten:g,hasComment:D,CommentCheckFlags:x,isCallExpression:E,isMemberExpression:b,isObjectProperty:C,isEnabledHackPipeline:A}=ir(),S=0;function T(e,t,n,a,p){let y=e.getValue();if(!m(y))return[o(t())];let E=[];g(y.operator,y.left.operator)?E=e.call((e=>T(e,t,n,!0,p)),"left"):E.push(o(t("left")));let b,C=w(y),v=("|>"===y.operator||"NGPipeExpression"===y.type||"|"===y.operator&&"__vue_expression"===n.parser)&&!f(n.originalText,y.right),S="NGPipeExpression"===y.type?"|":y.operator,F="NGPipeExpression"===y.type&&y.arguments.length>0?o(u([i,": ",s([i,": "],e.map(t,"arguments").map((e=>l(2,o(e)))))])):"";if(C)b=[S," ",t("right"),F];else{let r=A(n)&&"|>"===S?e.call((e=>T(e,t,n,!0,p)),"right"):t("right");b=[v?i:"",S,v?" ":i,r,F]}let P=e.getParentNode(),k=D(y.left,x.Trailing|x.Line),N=k||!(p&&"LogicalExpression"===y.type)&&P.type!==y.type&&y.left.type!==y.type&&y.right.type!==y.type;if(E.push(v?"":" ",N?o(b,{shouldBreak:k}):b),a&&D(y)){let t=c(r(e,E,n));return d(t)||"fill"===t.type?h(t):[t]}return E}function w(e){return"LogicalExpression"===e.type&&!!("ObjectExpression"===e.right.type&&e.right.properties.length>0||"ArrayExpression"===e.right.type&&e.right.elements.length>0||y(e.right))}t.exports={printBinaryishExpression:function(e,t,r){let s=e.getValue(),i=e.getParentNode(),l=e.getParentNode(1),c=s!==i.body&&("IfStatement"===i.type||"WhileStatement"===i.type||"SwitchStatement"===i.type||"DoWhileStatement"===i.type),h=A(t)&&"|>"===s.operator,d=T(e,r,t,!1,c);if(c)return d;if(h)return o(d);if(E(i)&&i.callee===s||"UnaryExpression"===i.type||b(i)&&!i.computed)return o([u([a,...d]),a]);let f="ReturnStatement"===i.type||"ThrowStatement"===i.type||"JSXExpressionContainer"===i.type&&"JSXAttribute"===l.type||"|"!==s.operator&&"JsExpressionRoot"===i.type||"NGPipeExpression"!==s.type&&("NGRoot"===i.type&&"__ng_binding"===t.parser||"NGMicrosyntaxExpression"===i.type&&"NGMicrosyntax"===l.type&&1===l.body.length)||s===i.body&&"ArrowFunctionExpression"===i.type||s!==i.body&&"ForStatement"===i.type||"ConditionalExpression"===i.type&&"ReturnStatement"!==l.type&&"ThrowStatement"!==l.type&&!E(l)||"TemplateLiteral"===i.type,D="AssignmentExpression"===i.type||"VariableDeclarator"===i.type||"ClassProperty"===i.type||"PropertyDefinition"===i.type||"TSAbstractPropertyDefinition"===i.type||"ClassPrivateProperty"===i.type||C(i),x=m(s.left)&&g(s.operator,s.left.operator);if(f||w(s)&&!x||!w(s)&&D)return o(d);if(0===d.length)return"";let v=y(s.right),F=d.findIndex((e=>"string"!=typeof e&&!Array.isArray(e)&&"group"===e.type)),P=d.slice(0,-1===F?1:F+1),k=d.slice(P.length,v?-1:void 0),N=Symbol("logicalChain-"+ ++S),I=o([...P,u(k)],{id:N});if(!v)return I;let B=n(d);return o([I,p(B,{groupId:N})])},shouldInlineLogicalExpression:w}}}),Wr=x({"src/language-js/print/angular.js"(e,t){v();var{builders:{join:r,line:n,group:s}}=W(),{hasNode:i,hasComment:a,getComments:o}=ir(),{printBinaryishExpression:u}=Vr();function l(e,t,r){return"NGMicrosyntaxKeyedExpression"===e.type&&"of"===e.key.name&&1===t&&"NGMicrosyntaxLet"===r.body[0].type&&null===r.body[0].value}t.exports={printAngular:function(e,t,p){let c=e.getValue();if(c.type.startsWith("NG"))switch(c.type){case"NGRoot":return[p("node"),a(c.node)?" //"+o(c.node)[0].value.trimEnd():""];case"NGPipeExpression":return u(e,t,p);case"NGChainedExpression":return s(r([";",n],e.map((e=>function(e){return i(e.getValue(),(e=>{switch(e.type){case void 0:return!1;case"CallExpression":case"OptionalCallExpression":case"AssignmentExpression":return!0}}))}(e)?p():["(",p(),")"]),"expressions")));case"NGEmptyExpression":return"";case"NGQuotedExpression":return[c.prefix,": ",c.value.trim()];case"NGMicrosyntax":return e.map(((e,t)=>[0===t?"":l(e.getValue(),t,c)?" ":[";",n],p()]),"body");case"NGMicrosyntaxKey":return/^[$_a-z][\w$]*(?:-[$_a-z][\w$])*$/i.test(c.name)?c.name:JSON.stringify(c.name);case"NGMicrosyntaxExpression":return[p("expression"),null===c.alias?"":[" as ",p("alias")]];case"NGMicrosyntaxKeyedExpression":{let t=e.getName(),r=e.getParentNode(),n=l(c,t,r)||(1===t&&("then"===c.key.name||"else"===c.key.name)||2===t&&"else"===c.key.name&&"NGMicrosyntaxKeyedExpression"===r.body[t-1].type&&"then"===r.body[t-1].key.name)&&"NGMicrosyntaxExpression"===r.body[0].type;return[p("key"),n?" ":": ",p("expression")]}case"NGMicrosyntaxLet":return["let ",p("key"),null===c.value?"":[" = ",p("value")]];case"NGMicrosyntaxAs":return[p("key")," as ",p("alias")];default:throw new Error(`Unknown Angular node type: ${JSON.stringify(c.type)}.`)}}}}}),qr=x({"src/language-js/print/jsx.js"(e,t){v();var{printComments:r,printDanglingComments:n,printCommentsSeparately:s}=qt(),{builders:{line:i,hardline:a,softline:o,group:u,indent:l,conditionalGroup:p,fill:c,ifBreak:h,lineSuffixBoundary:d,join:f},utils:{willBreak:m}}=W(),{getLast:y,getPreferredQuote:g}=de(),{isJsxNode:D,rawText:x,isCallExpression:E,isStringLiteral:b,isBinaryish:C,hasComment:A,CommentCheckFlags:S,hasNodeIgnoreComment:T}=ir(),w=$r(),{willPrintOwnComments:F}=Rr(),P=e=>""===e||e===i||e===a||e===o;function k(e,t,r){let n=e.getValue();if("JSXElement"===n.type&&function(e){if(0===e.children.length)return!0;if(e.children.length>1)return!1;let t=e.children[0];return"JSXText"===t.type&&!M(t)}(n))return[r("openingElement"),r("closingElement")];let s="JSXElement"===n.type?r("openingElement"):r("openingFragment"),d="JSXElement"===n.type?r("closingElement"):r("closingFragment");if(1===n.children.length&&"JSXExpressionContainer"===n.children[0].type&&("TemplateLiteral"===n.children[0].expression.type||"TaggedTemplateExpression"===n.children[0].expression.type))return[s,...e.map(r,"children"),d];n.children=n.children.map((e=>function(e){return"JSXExpressionContainer"===e.type&&b(e.expression)&&" "===e.expression.value&&!A(e.expression)}(e)?{type:"JSXText",value:" ",raw:" "}:e));let f=n.children.some(D),g=n.children.filter((e=>"JSXExpressionContainer"===e.type)).length>1,E="JSXElement"===n.type&&n.openingElement.attributes.length>1,C=m(s)||f||E||g,v="mdx"===e.getParentNode().rootMarker,S=t.singleQuote?"{' '}":'{" "}',T=v?" ":h([S,o]," "),w=function(e,t,r,n,s){let o=[];return e.each(((e,t,u)=>{let l=e.getValue();if("JSXText"===l.type){let e=x(l);if(M(l)){let r,a=e.split(O);if(""===a[0]){if(o.push(""),a.shift(),/\n/.test(a[0])){let e=u[t+1];o.push(I(s,a[1],l,e))}else o.push(n);a.shift()}if(""===y(a)&&(a.pop(),r=a.pop()),0===a.length)return;for(let[e,t]of a.entries())e%2==1?o.push(i):o.push(t);if(void 0!==r)if(/\n/.test(r)){let e=u[t+1];o.push(I(s,y(o),l,e))}else o.push(n);else{let e=u[t+1];o.push(N(s,y(o),l,e))}}else/\n/.test(e)?e.match(/\n/g).length>1&&o.push("",a):o.push("",n)}else{let e=r();o.push(e);let n=u[t+1];if(n&&M(n)){let e=j(x(n)).split(O)[0];o.push(N(s,e,l,n))}else o.push(a)}}),"children"),o}(e,0,r,T,n.openingElement&&n.openingElement.name&&"fbt"===n.openingElement.name.name),F=n.children.some((e=>M(e)));for(let e=w.length-2;e>=0;e--){let t=""===w[e]&&""===w[e+1],r=w[e]===a&&""===w[e+1]&&w[e+2]===a,n=(w[e]===o||w[e]===a)&&""===w[e+1]&&w[e+2]===T,s=w[e]===T&&""===w[e+1]&&(w[e+2]===o||w[e+2]===a),i=w[e]===T&&""===w[e+1]&&w[e+2]===T,u=w[e]===o&&""===w[e+1]&&w[e+2]===a||w[e]===a&&""===w[e+1]&&w[e+2]===o;r&&F||t||n||i||u?w.splice(e,2):s&&w.splice(e+1,2)}for(;w.length>0&&P(y(w));)w.pop();for(;w.length>1&&P(w[0])&&P(w[1]);)w.shift(),w.shift();let k=[];for(let[e,t]of w.entries()){if(t===T){if(1===e&&""===w[e-1]){if(2===w.length){k.push(S);continue}k.push([S,a]);continue}if(e===w.length-1){k.push(S);continue}if(""===w[e-1]&&w[e-2]===a){k.push(S);continue}}k.push(t),m(t)&&(C=!0)}let B=F?c(k):u(k,{shouldBreak:!0});if(v)return B;let _=u([s,l([a,B]),a,d]);return C?_:p([u([s,...w,d]),_])}function N(e,t,r,n){return e?"":"JSXElement"===r.type&&!r.closingElement||n&&"JSXElement"===n.type&&!n.closingElement?1===t.length?o:a:o}function I(e,t,r,n){return e?a:1===t.length?"JSXElement"===r.type&&!r.closingElement||n&&"JSXElement"===n.type&&!n.closingElement?a:o:a}function B(e,t,r){return e.selfClosing?[i,"/>"]:function(e,t,r){let n=e.attributes.length>0&&A(y(e.attributes),S.Trailing);return 0===e.attributes.length&&!r||(t.bracketSameLine||t.jsxBracketSameLine)&&(!r||e.attributes.length>0)&&!n}(e,t,r)?[">"]:[o,">"]}function _(e,t,n){return function(e,t,r){let n=e.getParentNode();if(!n||{ArrayExpression:!0,JSXAttribute:!0,JSXElement:!0,JSXExpressionContainer:!0,JSXFragment:!0,ExpressionStatement:!0,CallExpression:!0,OptionalCallExpression:!0,ConditionalExpression:!0,JsExpressionRoot:!0}[n.type])return t;let s=e.match(void 0,(e=>"ArrowFunctionExpression"===e.type),E,(e=>"JSXExpressionContainer"===e.type)),i=w(e,r);return u([i?"":h("("),l([o,t]),o,i?"":h(")")],{shouldBreak:s})}(e,r(e,k(e,t,n),t),t)}var O=new RegExp("([ \n\r\t]+)"),L=new RegExp("[^ \n\r\t]"),j=e=>e.replace(new RegExp("(?:^"+O.source+"|"+O.source+"$)"),"");function M(e){return"JSXText"===e.type&&(L.test(x(e))||!/\n/.test(x(e)))}t.exports={hasJsxIgnoreComment:function(e){let t=e.getValue(),r=e.getParentNode();if(!(r&&t&&D(t)&&D(r)))return!1;let n=null;for(let e=r.children.indexOf(t);e>0;e--){let t=r.children[e-1];if("JSXText"!==t.type||M(t)){n=t;break}}return n&&"JSXExpressionContainer"===n.type&&"JSXEmptyExpression"===n.expression.type&&T(n.expression)},printJsx:function(e,t,p){let c=e.getValue();if(c.type.startsWith("JSX"))switch(c.type){case"JSXAttribute":return function(e,t,r){let n=e.getValue(),i=[];if(i.push(r("name")),n.value){let a;if(b(n.value)){let r=x(n.value).slice(1,-1).replace(/'/g,"'").replace(/"/g,'"'),{escaped:i,quote:o,regex:u}=g(r,t.jsxSingleQuote?"'":'"');r=r.replace(u,i);let{leading:l,trailing:p}=e.call((()=>s(e,t)),"value");a=[l,o,r,o,p]}else a=r("value");i.push("=",a)}return i}(e,t,p);case"JSXIdentifier":return String(c.name);case"JSXNamespacedName":return f(":",[p("namespace"),p("name")]);case"JSXMemberExpression":return f(".",[p("object"),p("property")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return function(e,t,n){let s=e.getValue();return["{",e.call((e=>{let s=["...",n()],i=e.getValue();return A(i)&&F(e)?[l([o,r(e,s,t)]),o]:s}),"JSXSpreadAttribute"===s.type?"argument":"expression"),"}"]}(e,t,p);case"JSXExpressionContainer":return function(e,t,r){let n=e.getValue(),s=(e,t)=>"JSXEmptyExpression"===e.type||!A(e)&&("ArrayExpression"===e.type||"ObjectExpression"===e.type||"ArrowFunctionExpression"===e.type||"AwaitExpression"===e.type&&(s(e.argument,e)||"JSXElement"===e.argument.type)||E(e)||"FunctionExpression"===e.type||"TemplateLiteral"===e.type||"TaggedTemplateExpression"===e.type||"DoExpression"===e.type||D(t)&&("ConditionalExpression"===e.type||C(e)));return s(n.expression,e.getParentNode(0))?u(["{",r("expression"),d,"}"]):u(["{",l([o,r("expression")]),o,d,"}"])}(e,0,p);case"JSXFragment":case"JSXElement":return _(e,t,p);case"JSXOpeningElement":return function(e,t,r){let n=e.getValue(),s=n.name&&A(n.name)||n.typeParameters&&A(n.typeParameters);if(n.selfClosing&&0===n.attributes.length&&!s)return["<",r("name"),r("typeParameters")," />"];if(n.attributes&&1===n.attributes.length&&n.attributes[0].value&&b(n.attributes[0].value)&&!n.attributes[0].value.value.includes("\n")&&!s&&!A(n.attributes[0]))return u(["<",r("name"),r("typeParameters")," ",...e.map(r,"attributes"),n.selfClosing?" />":">"]);let o=n.attributes&&n.attributes.some((e=>e.value&&b(e.value)&&e.value.value.includes("\n"))),p=t.singleAttributePerLine&&n.attributes.length>1?a:i;return u(["<",r("name"),r("typeParameters"),l(e.map((()=>[p,r()]),"attributes")),...B(n,t,s)],{shouldBreak:o})}(e,t,p);case"JSXClosingElement":return function(e,t,r){let n=e.getValue(),s=[];s.push("</");let i=r("name");return A(n.name,S.Leading|S.Line)?s.push(l([a,i]),a):A(n.name,S.Leading|S.Block)?s.push(" ",i):s.push(i),s.push(">"),s}(e,0,p);case"JSXOpeningFragment":case"JSXClosingFragment":return function(e,t){let r=e.getValue(),s=A(r),i=A(r,S.Line),o="JSXOpeningFragment"===r.type;return[o?"<":"</",l([i?a:s&&!o?" ":"",n(e,t,!0)]),i?a:"",">"]}(e,t);case"JSXEmptyExpression":return function(e,t){let r=e.getValue(),s=A(r,S.Line);return[n(e,t,!s),s?a:""]}(e,t);case"JSXText":throw new Error("JSXText should be handled by JSXElement");default:throw new Error(`Unknown JSX node type: ${JSON.stringify(c.type)}.`)}}}}}),Hr=x({"src/language-js/print/misc.js"(e,t){v();var{isNonEmptyArray:r}=de(),{builders:{indent:n,join:s,line:i}}=W(),{isFlowAnnotationComment:a}=ir();function o(e,t,r){let n=e.getValue();if(!n.typeAnnotation)return"";let s=e.getParentNode(),i="DeclareFunction"===s.type&&s.id===n;return a(t.originalText,n.typeAnnotation)?[" /*: ",r("typeAnnotation")," */"]:[i?"":": ",r("typeAnnotation")]}t.exports={printOptionalToken:function(e){let t=e.getValue();return!t.optional||"Identifier"===t.type&&t===e.getParentNode().key?"":"OptionalCallExpression"===t.type||"OptionalMemberExpression"===t.type&&t.computed?"?.":"?"},printDefiniteToken:function(e){return e.getValue().definite||e.match(void 0,((e,t)=>"id"===t&&"VariableDeclarator"===e.type&&e.definite))?"!":""},printFunctionTypeParameters:function(e,t,r){let n=e.getValue();return n.typeArguments?r("typeArguments"):n.typeParameters?r("typeParameters"):""},printBindExpressionCallee:function(e,t,r){return["::",r("callee")]},printTypeScriptModifiers:function(e,t,n){let i=e.getValue();return r(i.modifiers)?[s(" ",e.map(n,"modifiers"))," "]:""},printTypeAnnotation:o,printRestSpread:function(e,t,r){return["...",r("argument"),o(e,t,r)]},adjustClause:function(e,t,r){return"EmptyStatement"===e.type?";":"BlockStatement"===e.type||r?[" ",t]:n([i,t])},printDirective:function(e,t){let r=e.slice(1,-1);if(r.includes('"')||r.includes("'"))return e;let n=t.singleQuote?"'":'"';return n+r+n}}}}),Jr=x({"src/language-js/print/array.js"(e,t){v();var{printDanglingComments:r}=qt(),{builders:{line:n,softline:s,hardline:i,group:a,indent:o,ifBreak:u,fill:l}}=W(),{getLast:p,hasNewline:c}=de(),{shouldPrintComma:h,hasComment:d,CommentCheckFlags:f,isNextLineEmpty:m,isNumericLiteral:y,isSignedNumericLiteral:g}=ir(),{locStart:D}=jt(),{printOptionalToken:x,printTypeAnnotation:E}=Hr();function b(e,t){return e.elements.length>1&&e.elements.every((e=>e&&(y(e)||g(e)&&!d(e.argument))&&!d(e,f.Trailing|f.Line,(e=>!c(t.originalText,D(e),{backwards:!0})))))}function C(e,t,r,i){let o=[],u=[];return e.each((e=>{o.push(u,a(i())),u=[",",n],e.getValue()&&m(e.getValue(),t)&&u.push(s)}),r),o}function A(e,t,r,s){let a=[];return e.each(((e,o,u)=>{let l=o===u.length-1;a.push([r(),l?s:","]),l||a.push(m(e.getValue(),t)?[i,i]:d(u[o+1],f.Leading|f.Line)?i:n)}),"elements"),l(a)}t.exports={printArray:function(e,t,n){let i=e.getValue(),l=[],c="TupleExpression"===i.type?"#[":"[";if(0===i.elements.length)d(i,f.Dangling)?l.push(a([c,r(e,t),s,"]"])):l.push(c,"]");else{let d=p(i.elements),f=!(d&&"RestElement"===d.type),m=null===d,y=Symbol("array"),g=!t.__inJestEach&&i.elements.length>1&&i.elements.every(((e,t,r)=>{let n=e&&e.type;if("ArrayExpression"!==n&&"ObjectExpression"!==n)return!1;let s=r[t+1];if(s&&n!==s.type)return!1;let i="ArrayExpression"===n?"elements":"properties";return e[i]&&e[i].length>1})),D=b(i,t),x=f?m?",":h(t)?D?u(",","",{groupId:y}):u(","):"":"";l.push(a([c,o([s,D?A(e,t,n,x):[C(e,t,"elements",n),x],r(e,t,!0)]),s,"]"],{shouldBreak:g,id:y}))}return l.push(x(e),E(e,t,n)),l},printArrayItems:C,isConciselyPrintedArray:b}}}),Gr=x({"src/language-js/print/call-arguments.js"(e,t){v();var{printDanglingComments:r}=qt(),{getLast:n,getPenultimate:s}=de(),{getFunctionParameters:i,hasComment:a,CommentCheckFlags:o,isFunctionCompositionArgs:u,isJsxNode:l,isLongCurriedCallExpression:p,shouldPrintComma:c,getCallArguments:h,iterateCallArgumentsPath:d,isNextLineEmpty:f,isCallExpression:m,isStringLiteral:y,isObjectProperty:g,isTSTypeExpression:D}=ir(),{builders:{line:x,hardline:E,softline:b,group:C,indent:A,conditionalGroup:S,ifBreak:T,breakParent:w},utils:{willBreak:F}}=W(),{ArgExpansionBailout:P}=_e(),{isConciselyPrintedArray:k}=Jr();function N(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return"ObjectExpression"===e.type&&(e.properties.length>0||a(e))||"ArrayExpression"===e.type&&(e.elements.length>0||a(e))||"TSTypeAssertion"===e.type&&N(e.expression)||D(e)&&N(e.expression)||"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type&&(!e.returnType||!e.returnType.typeAnnotation||"TSTypeReference"!==e.returnType.typeAnnotation.type||function(e){return"BlockStatement"===e.type&&(e.body.some((e=>"EmptyStatement"!==e.type))||a(e,o.Dangling))}(e.body))&&("BlockStatement"===e.body.type||"ArrowFunctionExpression"===e.body.type&&N(e.body,!0)||"ObjectExpression"===e.body.type||"ArrayExpression"===e.body.type||!t&&(m(e.body)||"ConditionalExpression"===e.body.type)||l(e.body))||"DoExpression"===e.type||"ModuleExpression"===e.type}t.exports=function(e,t,l){let m=e.getValue(),D="ImportExpression"===m.type,v=h(m);if(0===v.length)return["(",r(e,t,!0),")"];if(function(e){return 2===e.length&&"ArrowFunctionExpression"===e[0].type&&0===i(e[0]).length&&"BlockStatement"===e[0].body.type&&"ArrayExpression"===e[1].type&&!e.some((e=>a(e)))}(v))return["(",l(["arguments",0]),", ",l(["arguments",1]),")"];let I=!1,B=!1,_=v.length-1,O=[];d(e,((e,r)=>{let n=e.getNode(),s=[l()];r===_||(f(n,t)?(0===r&&(B=!0),I=!0,s.push(",",E,E)):s.push(",",x)),O.push(s)}));let L=D||m.callee&&"Import"===m.callee.type||!c(t,"all")?"":",";function j(){return C(["(",A([x,...O]),L,x,")"],{shouldBreak:!0})}if(I||"Decorator"!==e.getParentNode().type&&u(v))return j();let M=function(e){if(2!==e.length)return!1;let[t,r]=e;return!("ModuleExpression"!==t.type||!function(e){return"ObjectExpression"===e.type&&1===e.properties.length&&g(e.properties[0])&&"Identifier"===e.properties[0].key.type&&"type"===e.properties[0].key.name&&y(e.properties[0].value)&&"module"===e.properties[0].value.value}(r))||!a(t)&&("FunctionExpression"===t.type||"ArrowFunctionExpression"===t.type&&"BlockStatement"===t.body.type)&&"FunctionExpression"!==r.type&&"ArrowFunctionExpression"!==r.type&&"ConditionalExpression"!==r.type&&!N(r)}(v),R=function(e,t){let r=n(e),i=s(e);return!a(r,o.Leading)&&!a(r,o.Trailing)&&N(r)&&(!i||i.type!==r.type)&&(2!==e.length||"ArrowFunctionExpression"!==i.type||"ArrayExpression"!==r.type)&&!(e.length>1&&"ArrayExpression"===r.type&&k(r,t))}(v,t);if(M||R){if(M?O.slice(1).some(F):O.slice(0,-1).some(F))return j();let t=[];try{e.try((()=>{d(e,((e,r)=>{M&&0===r&&(t=[[l([],{expandFirstArg:!0}),O.length>1?",":"",B?E:x,B?E:""],...O.slice(1)]),R&&r===_&&(t=[...O.slice(0,-1),l([],{expandLastArg:!0})])}))}))}catch(e){if(e instanceof P)return j();throw e}return[O.some(F)?w:"",S([["(",...t,")"],M?["(",C(t[0],{shouldBreak:!0}),...t.slice(1),")"]:["(",...O.slice(0,-1),C(n(t),{shouldBreak:!0}),")"],j()])]}let $=["(",A([b,...O]),T(L),b,")"];return p(e)?$:C($,{shouldBreak:O.some(F)||I})}}}),Xr=x({"src/language-js/print/member.js"(e,t){v();var{builders:{softline:r,group:n,indent:s,label:i}}=W(),{isNumericLiteral:a,isMemberExpression:o,isCallExpression:u}=ir(),{printOptionalToken:l}=Hr();function p(e,t,i){let o=i("property"),u=e.getValue(),p=l(e);return u.computed?!u.property||a(u.property)?[p,"[",o,"]"]:n([p,"[",s([r,o]),r,"]"]):[p,".",o]}t.exports={printMemberExpression:function(e,t,a){let l,c=e.getValue(),h=e.getParentNode(),d=0;do{l=e.getParentNode(d),d++}while(l&&(o(l)||"TSNonNullExpression"===l.type));let f=a("object"),m=p(e,0,a),y=l&&("NewExpression"===l.type||"BindExpression"===l.type||"AssignmentExpression"===l.type&&"Identifier"!==l.left.type)||c.computed||"Identifier"===c.object.type&&"Identifier"===c.property.type&&!o(h)||("AssignmentExpression"===h.type||"VariableDeclarator"===h.type)&&(u(c.object)&&c.object.arguments.length>0||"TSNonNullExpression"===c.object.type&&u(c.object.expression)&&c.object.expression.arguments.length>0||"member-chain"===f.label);return i("member-chain"===f.label?"member-chain":"member",[f,y?m:n(s([r,m]))])},printMemberLookup:p}}}),Kr=x({"src/language-js/print/member-chain.js"(e,t){v();var{printComments:r}=qt(),{getLast:n,isNextLineEmptyAfterIndex:s,getNextNonSpaceNonCommentCharacterIndex:i}=de(),a=$r(),{isCallExpression:o,isMemberExpression:u,isFunctionOrArrowExpression:l,isLongCurriedCallExpression:p,isMemberish:c,isNumericLiteral:h,isSimpleCallArgument:d,hasComment:f,CommentCheckFlags:m,isNextLineEmpty:y}=ir(),{locEnd:g}=jt(),{builders:{join:D,hardline:x,group:E,indent:b,conditionalGroup:C,breakParent:A,label:S},utils:{willBreak:T}}=W(),w=Gr(),{printMemberLookup:F}=Xr(),{printOptionalToken:P,printFunctionTypeParameters:k,printBindExpressionCallee:N}=Hr();t.exports=function(e,t,v){let I=e.getParentNode(),B=!I||"ExpressionStatement"===I.type,_=[];function O(e){let{originalText:r}=t,n=i(r,e,g);return")"===r.charAt(n)?!1!==n&&s(r,n+1):y(e,t)}function L(e){let n=e.getValue();o(n)&&(c(n.callee)||o(n.callee))?(_.unshift({node:n,printed:[r(e,[P(e),k(e,t,v),w(e,t,v)],t),O(n)?x:""]}),e.call((e=>L(e)),"callee")):c(n)?(_.unshift({node:n,needsParens:a(e,t),printed:r(e,u(n)?F(e,t,v):N(e,t,v),t)}),e.call((e=>L(e)),"object")):"TSNonNullExpression"===n.type?(_.unshift({node:n,printed:r(e,"!",t)}),e.call((e=>L(e)),"expression")):_.unshift({node:n,printed:v()})}let j=e.getValue();_.unshift({node:j,printed:[P(e),k(e,t,v),w(e,t,v)]}),j.callee&&e.call((e=>L(e)),"callee");let M=[],R=[_[0]],$=1;for(;$<_.length&&("TSNonNullExpression"===_[$].node.type||o(_[$].node)||u(_[$].node)&&_[$].node.computed&&h(_[$].node.property));++$)R.push(_[$]);if(!o(_[0].node))for(;$+1<_.length&&c(_[$].node)&&c(_[$+1].node);++$)R.push(_[$]);M.push(R),R=[];let U=!1;for(;$<_.length;++$){if(U&&c(_[$].node)){if(_[$].node.computed&&h(_[$].node.property)){R.push(_[$]);continue}M.push(R),R=[],U=!1}(o(_[$].node)||"ImportExpression"===_[$].node.type)&&(U=!0),R.push(_[$]),f(_[$].node,m.Trailing)&&(M.push(R),R=[],U=!1)}function z(e){return/^[A-Z]|^[$_]+$/.test(e)}R.length>0&&M.push(R);let V=M.length>=2&&!f(M[1][0].node)&&function(e){let r=e[1].length>0&&e[1][0].node.computed;if(1===e[0].length){let n=e[0][0].node;return"ThisExpression"===n.type||"Identifier"===n.type&&(z(n.name)||B&&function(e){return e.length<=t.tabWidth}(n.name)||r)}let s=n(e[0]).node;return u(s)&&"Identifier"===s.property.type&&(z(s.property.name)||r)}(M);function W(e){let t=e.map((e=>e.printed));return e.length>0&&n(e).needsParens?["(",...t,")"]:t}let q=M.map(W),H=q,J=V?3:2,G=M.flat(),X=G.slice(1,-1).some((e=>f(e.node,m.Leading)))||G.slice(0,-1).some((e=>f(e.node,m.Trailing)))||M[J]&&f(M[J][0].node,m.Leading);if(M.length<=J&&!X)return p(e)?H:E(H);let K,Z=n(M[V?1:0]).node,Y=!o(Z)&&O(Z),Q=[W(M[0]),V?M.slice(1,2).map(W):"",Y?x:"",(te=M.slice(V?2:1),0===te.length?"":b(E([x,D(x,te.map(W))])))],ee=_.map((e=>{let{node:t}=e;return t})).filter(o);var te;return K=X||ee.length>2&&ee.some((e=>!e.arguments.every((e=>d(e,0)))))||q.slice(0,-1).some(T)||function(){let e=n(n(M)).node,t=n(q);return o(e)&&T(t)&&ee.slice(0,-1).some((e=>e.arguments.some(l)))}()?E(Q):[T(H)||Y?A:"",C([H,Q])],S("member-chain",K)}}}),Zr=x({"src/language-js/print/call-expression.js"(e,t){v();var{builders:{join:r,group:n}}=W(),s=$r(),{getCallArguments:i,hasFlowAnnotationComment:a,isCallExpression:o,isMemberish:u,isStringLiteral:l,isTemplateOnItsOwnLine:p,isTestCall:c,iterateCallArgumentsPath:h}=ir(),d=Kr(),f=Gr(),{printOptionalToken:m,printFunctionTypeParameters:y}=Hr();t.exports={printCallExpression:function(e,t,g){let D=e.getValue(),x=e.getParentNode(),E="NewExpression"===D.type,b="ImportExpression"===D.type,C=m(e),v=i(D);if(v.length>0&&(!b&&!E&&function(e,t){if("Identifier"!==e.callee.type)return!1;if("require"===e.callee.name)return!0;if("define"===e.callee.name){let r=i(e);return"ExpressionStatement"===t.type&&(1===r.length||2===r.length&&"ArrayExpression"===r[0].type||3===r.length&&l(r[0])&&"ArrayExpression"===r[1].type)}return!1}(D,x)||1===v.length&&p(v[0],t.originalText)||!E&&c(D,x))){let n=[];return h(e,(()=>{n.push(g())})),[E?"new ":"",g("callee"),C,y(e,t,g),"(",r(", ",n),")"]}let A=("babel"===t.parser||"babel-flow"===t.parser)&&D.callee&&"Identifier"===D.callee.type&&a(D.callee.trailingComments);if(A&&(D.callee.trailingComments[0].printed=!0),!b&&!E&&u(D.callee)&&!e.call((e=>s(e,t)),"callee"))return d(e,t,g);let S=[E?"new ":"",b?"import":g("callee"),C,A?`/*:: ${D.callee.trailingComments[0].value.slice(2).trim()} */`:"",y(e,t,g),f(e,t,g)];return b||o(D.callee)?n(S):S}}}}),Yr=x({"src/language-js/print/assignment.js"(e,t){v();var{isNonEmptyArray:r,getStringWidth:n}=de(),{builders:{line:s,group:i,indent:a,indentIfBreak:o,lineSuffixBoundary:u},utils:{cleanDoc:l,willBreak:p,canBreak:c}}=W(),{hasLeadingOwnLineComment:h,isBinaryish:d,isStringLiteral:f,isLiteral:m,isNumericLiteral:y,isCallExpression:g,isMemberExpression:D,getCallArguments:x,rawText:E,hasComment:b,isSignedNumericLiteral:C,isObjectProperty:A}=ir(),{shouldInlineLogicalExpression:S}=Vr(),{printCallExpression:T}=Zr();function w(e,t,p,m,g,D){let x=function(e,t,s,i,a){let o=e.getValue(),u=o[a];if(!u)return"only-left";let p=!F(u);if(e.match(F,P,(e=>!p||"ExpressionStatement"!==e.type&&"VariableDeclaration"!==e.type)))return p?"ArrowFunctionExpression"===u.type&&"ArrowFunctionExpression"===u.body.type?"chain-tail-arrow-chain":"chain-tail":"chain";if(!p&&F(u.right)||h(t.originalText,u))return"break-after-operator";if("CallExpression"===u.type&&"require"===u.callee.name||"json5"===t.parser||"json"===t.parser)return"never-break-after-operator";if(function(e){if(P(e)){let t=e.left||e.id;return"ObjectPattern"===t.type&&t.properties.length>2&&t.properties.some((e=>A(e)&&(!e.shorthand||e.value&&"AssignmentPattern"===e.value.type)))}return!1}(o)||function(e){let t=function(e){return function(e){return"TSTypeAliasDeclaration"===e.type||"TypeAlias"===e.type}(e)&&e.typeParameters&&e.typeParameters.params?e.typeParameters.params:null}(e);if(r(t)){let r="TSTypeAliasDeclaration"===e.type?"constraint":"bound";if(t.length>1&&t.some((e=>e[r]||e.default)))return!0}return!1}(o)||function(e){if("VariableDeclarator"!==e.type)return!1;let{typeAnnotation:t}=e.id;if(!t||!t.typeAnnotation)return!1;let n=N(t.typeAnnotation);return r(n)&&n.length>1&&n.some((e=>r(N(e))||"TSConditionalType"===e.type))}(o)||k(o)&&c(i))return"break-lhs";let m=function(e,t,r){if(!A(e))return!1;let s=3;return"string"==typeof(t=l(t))&&n(t)<r.tabWidth+s}(o,i,t);return e.call((()=>function(e,t,n,s){let i=e.getValue();if(d(i)&&!S(i))return!0;switch(i.type){case"StringLiteralTypeAnnotation":case"SequenceExpression":return!0;case"ConditionalExpression":{let{test:e}=i;return d(e)&&!S(e)}case"ClassExpression":return r(i.decorators)}if(s)return!1;let a=i,o=[];for(;;)if("UnaryExpression"===a.type)a=a.argument,o.push("argument");else{if("TSNonNullExpression"!==a.type)break;a=a.expression,o.push("expression")}return!(!f(a)&&!e.call((()=>I(e,t,n)),...o))}(e,t,s,m)),a)?"break-after-operator":m||"TemplateLiteral"===u.type||"TaggedTemplateExpression"===u.type||"BooleanLiteral"===u.type||y(u)||"ClassExpression"===u.type?"never-break-after-operator":"fluid"}(e,t,p,m,D),E=p(D,{assignmentLayout:x});switch(x){case"break-after-operator":return i([i(m),g,i(a([s,E]))]);case"never-break-after-operator":return i([i(m),g," ",E]);case"fluid":{let e=Symbol("assignment");return i([i(m),g,i(a(s),{id:e}),u,o(E,{groupId:e})])}case"break-lhs":return i([m,g," ",i(E)]);case"chain":return[i(m),g,s,E];case"chain-tail":return[i(m),g,a([s,E])];case"chain-tail-arrow-chain":return[i(m),g,E];case"only-left":return m}}function F(e){return"AssignmentExpression"===e.type}function P(e){return F(e)||"VariableDeclarator"===e.type}function k(e){return"VariableDeclarator"===e.type&&e.init&&"ArrowFunctionExpression"===e.init.type}function N(e){return function(e){return"TSTypeReference"===e.type||"GenericTypeAnnotation"===e.type}(e)&&e.typeParameters&&e.typeParameters.params?e.typeParameters.params:null}function I(e,t,n){let s=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=e.getValue(),a=()=>I(e,t,n,!0);if("TSNonNullExpression"===i.type)return e.call(a,"expression");if(g(i)){if("member-chain"===T(e,t,n).label)return!1;let s=x(i);return!(!(0===s.length||1===s.length&&function(e,t){let{printWidth:r}=t;if(b(e))return!1;let n=.25*r;if("ThisExpression"===e.type||"Identifier"===e.type&&e.name.length<=n||C(e)&&!b(e.argument))return!0;let s="Literal"===e.type&&"regex"in e&&e.regex.pattern||"RegExpLiteral"===e.type&&e.pattern;return s?s.length<=n:f(e)?E(e).length<=n:"TemplateLiteral"===e.type?0===e.expressions.length&&e.quasis[0].value.raw.length<=n&&!e.quasis[0].value.raw.includes("\n"):m(e)}(s[0],t))||function(e,t){let n=function(e){return e.typeParameters&&e.typeParameters.params||e.typeArguments&&e.typeArguments.params}(e);if(r(n)){if(n.length>1)return!0;if(1===n.length){let e=n[0];if("TSUnionType"===e.type||"UnionTypeAnnotation"===e.type||"TSIntersectionType"===e.type||"IntersectionTypeAnnotation"===e.type||"TSTypeLiteral"===e.type||"ObjectTypeAnnotation"===e.type)return!0}let r=e.typeParameters?"typeParameters":"typeArguments";if(p(t(r)))return!0}return!1}(i,n))&&e.call(a,"callee")}return D(i)?e.call(a,"object"):s&&("Identifier"===i.type||"ThisExpression"===i.type)}t.exports={printVariableDeclarator:function(e,t,r){return w(e,t,r,r("id")," =","init")},printAssignmentExpression:function(e,t,r){let n=e.getValue();return w(e,t,r,r("left"),[" ",n.operator],"right")},printAssignment:w,isArrowFunctionVariableDeclarator:k}}}),Qr=x({"src/language-js/print/function-parameters.js"(e,t){v();var{getNextNonSpaceNonCommentCharacter:r}=de(),{printDanglingComments:n}=qt(),{builders:{line:s,hardline:i,softline:a,group:o,indent:u,ifBreak:l},utils:{removeLines:p,willBreak:c}}=W(),{getFunctionParameters:h,iterateFunctionParametersPath:d,isSimpleType:f,isTestCall:m,isTypeAnnotationAFunction:y,isObjectType:g,isObjectTypePropertyAFunction:D,hasRestParameter:x,shouldPrintComma:E,hasComment:b,isNextLineEmpty:C}=ir(),{locEnd:A}=jt(),{ArgExpansionBailout:S}=_e(),{printFunctionTypeParameters:T}=Hr();function w(e){if(!e)return!1;let t=h(e);if(1!==t.length)return!1;let[r]=t;return!b(r)&&("ObjectPattern"===r.type||"ArrayPattern"===r.type||"Identifier"===r.type&&r.typeAnnotation&&("TypeAnnotation"===r.typeAnnotation.type||"TSTypeAnnotation"===r.typeAnnotation.type)&&g(r.typeAnnotation.typeAnnotation)||"FunctionTypeParam"===r.type&&g(r.typeAnnotation)||"AssignmentPattern"===r.type&&("ObjectPattern"===r.left.type||"ArrayPattern"===r.left.type)&&("Identifier"===r.right.type||"ObjectExpression"===r.right.type&&0===r.right.properties.length||"ArrayExpression"===r.right.type&&0===r.right.elements.length))}t.exports={printFunctionParameters:function(e,t,g,b,v){let F=e.getValue(),P=h(F),k=v?T(e,g,t):"";if(0===P.length)return[k,"(",n(e,g,!0,(e=>")"===r(g.originalText,e,A))),")"];let N=e.getParentNode(),I=m(N),B=w(F),_=[];if(d(e,((e,r)=>{let n=r===P.length-1;n&&F.rest&&_.push("..."),_.push(t()),!n&&(_.push(","),I||B?_.push(" "):C(P[r],g)?_.push(i,i):_.push(s))})),b){if(c(k)||c(_))throw new S;return o([p(k),"(",p(_),")"])}let O=P.every((e=>!e.decorators));return B&&O||I?[k,"(",..._,")"]:(D(N)||y(N)||"TypeAlias"===N.type||"UnionTypeAnnotation"===N.type||"TSUnionType"===N.type||"IntersectionTypeAnnotation"===N.type||"FunctionTypeAnnotation"===N.type&&N.returnType===F)&&1===P.length&&null===P[0].name&&F.this!==P[0]&&P[0].typeAnnotation&&null===F.typeParameters&&f(P[0].typeAnnotation)&&!F.rest?"always"===g.arrowParens?["(",..._,")"]:_:[k,"(",u([a,..._]),l(!x(F)&&E(g,"all")?",":""),a,")"]},shouldHugFunctionParameters:w,shouldGroupFunctionParameters:function(e,t){let r=function(e){let t;return e.returnType?(t=e.returnType,t.typeAnnotation&&(t=t.typeAnnotation)):e.typeAnnotation&&(t=e.typeAnnotation),t}(e);if(!r)return!1;let n=e.typeParameters&&e.typeParameters.params;if(n){if(n.length>1)return!1;if(1===n.length){let e=n[0];if(e.constraint||e.default)return!1}}return 1===h(e).length&&(g(r)||c(t))}}}}),en=x({"src/language-js/print/type-annotation.js"(e,t){v();var{printComments:r,printDanglingComments:n}=qt(),{isNonEmptyArray:s}=de(),{builders:{group:i,join:a,line:o,softline:u,indent:l,align:p,ifBreak:c}}=W(),h=$r(),{locStart:d}=jt(),{isSimpleType:f,isObjectType:m,hasLeadingOwnLineComment:y,isObjectTypePropertyAFunction:g,shouldPrintComma:D}=ir(),{printAssignment:x}=Yr(),{printFunctionParameters:E,shouldGroupFunctionParameters:b}=Qr(),{printArrayItems:C}=Jr();function A(e){if(f(e)||m(e))return!0;if("UnionTypeAnnotation"===e.type||"TSUnionType"===e.type){let t=e.types.filter((e=>"VoidTypeAnnotation"===e.type||"TSVoidKeyword"===e.type||"NullLiteralTypeAnnotation"===e.type||"TSNullKeyword"===e.type)).length,r=e.types.some((e=>"ObjectTypeAnnotation"===e.type||"TSTypeLiteral"===e.type||"GenericTypeAnnotation"===e.type||"TSTypeReference"===e.type));if(e.types.length-1===t&&r)return!0}return!1}t.exports={printOpaqueType:function(e,t,r){let n=t.semi?";":"",s=e.getValue(),i=[];return i.push("opaque type ",r("id"),r("typeParameters")),s.supertype&&i.push(": ",r("supertype")),s.impltype&&i.push(" = ",r("impltype")),i.push(n),i},printTypeAlias:function(e,t,r){let n=t.semi?";":"",s=e.getValue(),i=[];s.declare&&i.push("declare "),i.push("type ",r("id"),r("typeParameters"));let a="TSTypeAliasDeclaration"===s.type?"typeAnnotation":"right";return[x(e,t,r,i," =",a),n]},printIntersectionType:function(e,t,r){let n=e.getValue(),s=e.map(r,"types"),a=[],u=!1;for(let e=0;e<s.length;++e)0===e?a.push(s[e]):m(n.types[e-1])&&m(n.types[e])?a.push([" & ",u?l(s[e]):s[e]]):m(n.types[e-1])||m(n.types[e])?(e>1&&(u=!0),a.push(" & ",e>1?l(s[e]):s[e])):a.push(l([" &",o,s[e]]));return i(a)},printUnionType:function(e,t,n){let s=e.getValue(),d=e.getParentNode(),f=!("TypeParameterInstantiation"===d.type||"TSTypeParameterInstantiation"===d.type||"GenericTypeAnnotation"===d.type||"TSTypeReference"===d.type||"TSTypeAssertion"===d.type||"TupleTypeAnnotation"===d.type||"TSTupleType"===d.type||"FunctionTypeParam"===d.type&&!d.name&&e.getParentNode(1).this!==d||("TypeAlias"===d.type||"VariableDeclarator"===d.type||"TSTypeAliasDeclaration"===d.type)&&y(t.originalText,s)),m=A(s),g=e.map((e=>{let s=n();return m||(s=p(2,s)),r(e,s,t)}),"types");if(m)return a(" | ",g);let D=f&&!y(t.originalText,s),x=[c([D?o:"","| "]),a([o,"| "],g)];return h(e,t)?i([l(x),u]):"TupleTypeAnnotation"===d.type&&d.types.length>1||"TSTupleType"===d.type&&d.elementTypes.length>1?i([l([c(["(",u]),x]),u,c(")")]):i(f?l(x):x)},printFunctionType:function(e,t,r){let n=e.getValue(),s=[],a=e.getParentNode(0),o=e.getParentNode(1),u=e.getParentNode(2),l="TSFunctionType"===n.type||!(("ObjectTypeProperty"===a.type||"ObjectTypeInternalSlot"===a.type)&&!a.variance&&!a.optional&&d(a)===d(n)||"ObjectTypeCallProperty"===a.type||u&&"DeclareFunction"===u.type),p=l&&("TypeAnnotation"===a.type||"TSTypeAnnotation"===a.type),c=p&&l&&("TypeAnnotation"===a.type||"TSTypeAnnotation"===a.type)&&"ArrowFunctionExpression"===o.type;g(a)&&(l=!0,p=!0),c&&s.push("(");let h=E(e,r,t,!1,!0),f=n.returnType||n.predicate||n.typeAnnotation?[l?" => ":": ",r("returnType"),r("predicate"),r("typeAnnotation")]:"",m=b(n,f);return s.push(m?i(h):h),f&&s.push(f),c&&s.push(")"),i(s)},printTupleType:function(e,t,r){let a=e.getValue(),o="TSTupleType"===a.type?"elementTypes":"types",p=a[o],h=s(p),d=h?u:"";return i(["[",l([d,C(e,t,o,r)]),c(h&&D(t,"all")?",":""),n(e,t,!0),d,"]"])},printIndexedAccessType:function(e,t,r){let n=e.getValue(),s="OptionalIndexedAccessType"===n.type&&n.optional?"?.[":"[";return[r("objectType"),s,r("indexType"),"]"]},shouldHugType:A,printJSDocType:function(e,t,r){let n=e.getValue();return[n.postfix?"":r,t("typeAnnotation"),n.postfix?r:""]}}}}),tn=x({"src/language-js/print/type-parameters.js"(e,t){v();var{printDanglingComments:r}=qt(),{builders:{join:n,line:s,hardline:i,softline:a,group:o,indent:u,ifBreak:l}}=W(),{isTestCall:p,hasComment:c,CommentCheckFlags:h,isTSXFile:d,shouldPrintComma:f,getFunctionParameters:m,isObjectType:y,getTypeScriptMappedTypeModifier:g}=ir(),{createGroupIdMapper:D}=de(),{shouldHugType:x}=en(),{isArrowFunctionVariableDeclarator:E}=Yr(),b=D("typeParameters");function C(e,t){let n=e.getValue();if(!c(n,h.Dangling))return"";let s=!c(n,h.Line),a=r(e,t,s);return s?a:[a,i]}t.exports={printTypeParameter:function(e,t,r){let n=e.getValue(),s=["TSTypeParameter"===n.type&&n.const?"const ":""],i=e.getParentNode();return"TSMappedType"===i.type?(i.readonly&&s.push(g(i.readonly,"readonly")," "),s.push("[",r("name")),n.constraint&&s.push(" in ",r("constraint")),i.nameType&&s.push(" as ",e.callParent((()=>r("nameType")))),s.push("]"),s):(n.variance&&s.push(r("variance")),n.in&&s.push("in "),n.out&&s.push("out "),s.push(r("name")),n.bound&&s.push(": ",r("bound")),n.constraint&&s.push(" extends ",r("constraint")),n.default&&s.push(" = ",r("default")),s)},printTypeParameters:function(e,t,r,i){let c=e.getValue();if(!c[i])return"";if(!Array.isArray(c[i]))return r(i);let h=e.getNode(2),g=h&&p(h),D=e.match((e=>!(1===e[i].length&&y(e[i][0]))),void 0,((e,t)=>"typeAnnotation"===t),(e=>"Identifier"===e.type),E);if(0===c[i].length||!D&&(g||1===c[i].length&&("NullableTypeAnnotation"===c[i][0].type||x(c[i][0]))))return["<",n(", ",e.map(r,i)),C(e,t),">"];let v="TSTypeParameterInstantiation"===c.type?"":1===m(c).length&&d(t)&&!c[i][0].constraint&&"ArrowFunctionExpression"===e.getParentNode().type?",":f(t,"all")?l(","):"";return o(["<",u([a,n([",",s],e.map(r,i))]),v,a,">"],{id:b(c)})},getTypeParametersGroupId:b}}}),rn=x({"src/language-js/print/property.js"(e,t){v();var{printComments:r}=qt(),{printString:n,printNumber:s}=de(),{isNumericLiteral:i,isSimpleNumber:a,isStringLiteral:o,isStringPropSafeToUnquote:u,rawText:l}=ir(),{printAssignment:p}=Yr(),c=new WeakMap;function h(e,t,p){let h=e.getNode();if(h.computed)return["[",p("key"),"]"];let d=e.getParentNode(),{key:f}=h;if("consistent"===t.quoteProps&&!c.has(d)){let e=(d.properties||d.body||d.members).some((e=>!e.computed&&e.key&&o(e.key)&&!u(e,t)));c.set(d,e)}if(("Identifier"===f.type||i(f)&&a(s(l(f)))&&String(f.value)===s(l(f))&&"typescript"!==t.parser&&"babel-ts"!==t.parser)&&("json"===t.parser||"consistent"===t.quoteProps&&c.get(d))){let s=n(JSON.stringify("Identifier"===f.type?f.name:f.value.toString()),t);return e.call((e=>r(e,s,t)),"key")}return u(h,t)&&("as-needed"===t.quoteProps||"consistent"===t.quoteProps&&!c.get(d))?e.call((e=>r(e,/^\d/.test(f.value)?s(f.value):f.value,t)),"key"):p("key")}t.exports={printProperty:function(e,t,r){return e.getValue().shorthand?r("value"):p(e,t,r,h(e,t,r),":","value")},printPropertyKey:h}}}),nn=x({"src/language-js/print/function.js"(e,t){v();var r=Wt(),{printDanglingComments:n,printCommentsSeparately:s}=qt(),i=P(),{getNextNonSpaceNonCommentCharacterIndex:a}=de(),{builders:{line:o,softline:u,group:l,indent:p,ifBreak:c,hardline:h,join:d,indentIfBreak:f},utils:{removeLines:m,willBreak:y}}=W(),{ArgExpansionBailout:g}=_e(),{getFunctionParameters:D,hasLeadingOwnLineComment:x,isFlowAnnotationComment:E,isJsxNode:b,isTemplateOnItsOwnLine:C,shouldPrintComma:A,startsWithNoLookaheadToken:S,isBinaryish:T,isLineComment:w,hasComment:F,getComments:k,CommentCheckFlags:N,isCallLikeExpression:I,isCallExpression:B,getCallArguments:_,hasNakedLeftSide:O,getLeftSide:L}=ir(),{locEnd:j}=jt(),{printFunctionParameters:M,shouldGroupFunctionParameters:R}=Qr(),{printPropertyKey:$}=rn(),{printFunctionTypeParameters:U}=Hr();function z(e,t,r){let n=e.getNode(),s=M(e,r,t),i=q(e,r,t),a=R(n,i),o=[U(e,t,r),l([a?l(s):s,i])];return n.body?o.push(" ",r("body")):o.push(t.semi?";":""),o}function V(e,t){return"always"!==t.arrowParens&&"avoid"===t.arrowParens&&function(e){let t=D(e);return!(1!==t.length||e.typeParameters||F(e,N.Dangling)||"Identifier"!==t[0].type||t[0].typeAnnotation||F(t[0])||t[0].optional||e.predicate||e.returnType)}(e.getValue())}function q(e,t,r){let n=e.getValue(),s=t("returnType");if(n.returnType&&E(r.originalText,n.returnType))return[" /*: ",s," */"];let i=[s];return n.returnType&&n.returnType.typeAnnotation&&i.unshift(": "),n.predicate&&i.push(n.returnType?" ":": ",t("predicate")),i}function H(e,t,r){let s=e.getValue(),a=t.semi?";":"",o=[];s.argument&&(function(e,t){if(x(e.originalText,t))return!0;if(O(t)){let r,n=t;for(;r=L(n);)if(n=r,x(e.originalText,n))return!0}return!1}(t,s.argument)?o.push([" (",p([h,r("argument")]),h,")"]):T(s.argument)||"SequenceExpression"===s.argument.type?o.push(l([c(" ("," "),p([u,r("argument")]),u,c(")")])):o.push(" ",r("argument")));let d=k(s),f=i(d),m=f&&w(f);return m&&o.push(a),F(s,N.Dangling)&&o.push(" ",n(e,t,!0)),m||o.push(a),o}t.exports={printFunction:function(e,t,r,n){let s=e.getValue(),i=!1;if(("FunctionDeclaration"===s.type||"FunctionExpression"===s.type)&&n&&n.expandLastArg){let t=e.getParentNode();B(t)&&_(t).length>1&&(i=!0)}let a=[];"TSDeclareFunction"===s.type&&s.declare&&a.push("declare "),s.async&&a.push("async "),s.generator?a.push("function* "):a.push("function "),s.id&&a.push(t("id"));let o=M(e,t,r,i),u=q(e,t,r),p=R(s,u);return a.push(U(e,r,t),l([p?l(o):o,u]),s.body?" ":"",t("body")),r.semi&&(s.declare||!s.body)&&a.push(";"),a},printArrowFunction:function(e,t,r,i){let h=e.getValue(),E=[],v=[],T=!1;if(function o(){let u=function(e,t,r,s){let i=[];if(e.getValue().async&&i.push("async "),V(e,t))i.push(r(["params",0]));else{let n=s&&(s.expandLastArg||s.expandFirstArg),a=q(e,r,t);if(n){if(y(a))throw new g;a=l(m(a))}i.push(l([M(e,r,t,n,!0),a]))}let o=n(e,t,!0,(e=>{let r=a(t.originalText,e,j);return!1!==r&&"=>"===t.originalText.slice(r,r+2)}));return o&&i.push(" ",o),i}(e,t,r,i);if(0===E.length)E.push(u);else{let{leading:r,trailing:n}=s(e,t);E.push([r,u]),v.unshift(n)}T=T||h.returnType&&D(h).length>0||h.typeParameters||D(h).some((e=>"Identifier"!==e.type)),"ArrowFunctionExpression"!==h.body.type||i&&i.expandLastArg?v.unshift(r("body",i)):(h=h.body,e.call(o,"body"))}(),E.length>1)return function(e,t,r,n,s,i){let a=e.getName(),h=e.getParentNode(),m=I(h)&&"callee"===a,y=Boolean(t&&t.assignmentLayout),g="BlockStatement"!==i.body.type&&"ObjectExpression"!==i.body.type&&"SequenceExpression"!==i.body.type,D=m&&g||t&&"chain-tail-arrow-chain"===t.assignmentLayout,x=Symbol("arrow-chain");return"SequenceExpression"===i.body.type&&(s=l(["(",p([u,s]),u,")"])),l([l(p([m||y?u:"",l(d([" =>",o],r),{shouldBreak:n})]),{id:x,shouldBreak:D})," =>",f(g?p([o,s]):[" ",s],{groupId:x}),m?c(u,"",{groupId:x}):""])}(e,i,E,T,v,h);let w=E;if(w.push(" =>"),!x(t.originalText,h.body)&&("ArrayExpression"===h.body.type||"ObjectExpression"===h.body.type||"BlockStatement"===h.body.type||b(h.body)||C(h.body,t.originalText)||"ArrowFunctionExpression"===h.body.type||"DoExpression"===h.body.type))return l([...w," ",v]);if("SequenceExpression"===h.body.type)return l([...w,l([" (",p([u,v]),u,")"])]);let P=(i&&i.expandLastArg||"JSXExpressionContainer"===e.getParentNode().type)&&!F(h),k=i&&i.expandLastArg&&A(t,"all"),N="ConditionalExpression"===h.body.type&&!S(h.body,(e=>"ObjectExpression"===e.type));return l([...w,l([p([o,N?c("","("):"",v,N?c("",")"):""]),P?[c(k?",":""),u]:""])])},printMethod:function(e,t,n){let s=e.getNode(),{kind:i}=s,a=s.value||s,o=[];return i&&"init"!==i&&"method"!==i&&"constructor"!==i?(r.ok("get"===i||"set"===i),o.push(i," ")):a.async&&o.push("async "),a.generator&&o.push("*"),o.push($(e,t,n),s.optional||s.key.optional?"?":""),s===a?o.push(z(e,t,n)):"FunctionExpression"===a.type?o.push(e.call((e=>z(e,t,n)),"value")):o.push(n("value")),o},printReturnStatement:function(e,t,r){return["return",H(e,t,r)]},printThrowStatement:function(e,t,r){return["throw",H(e,t,r)]},printMethodInternal:z,shouldPrintParamsWithoutParens:V}}}),sn=x({"src/language-js/print/decorators.js"(e,t){v();var{isNonEmptyArray:r,hasNewline:n}=de(),{builders:{line:s,hardline:i,join:a,breakParent:o,group:u}}=W(),{locStart:l,locEnd:p}=jt(),{getParentExportDeclaration:c}=ir();function h(e,t){return e.decorators.some((e=>n(t.originalText,p(e))))}function d(e){if("ExportDefaultDeclaration"!==e.type&&"ExportNamedDeclaration"!==e.type&&"DeclareExportDeclaration"!==e.type)return!1;let t=e.declaration&&e.declaration.decorators;return r(t)&&l(e)===l(t[0])}t.exports={printDecorators:function(e,t,n){let u=e.getValue(),{decorators:l}=u;if(!r(l)||d(e.getParentNode()))return;let p="ClassExpression"===u.type||"ClassDeclaration"===u.type||h(u,t);return[c(e)?i:p?o:"",a(s,e.map(n,"decorators")),s]},printClassMemberDecorators:function(e,t,r){let n=e.getValue();return u([a(s,e.map(r,"decorators")),h(n,t)?i:s])},printDecoratorsBeforeExport:function(e,t,r){return[a(i,e.map(r,"declaration","decorators")),i]},hasDecoratorsBeforeExport:d}}}),an=x({"src/language-js/print/class.js"(e,t){v();var{isNonEmptyArray:r,createGroupIdMapper:n}=de(),{printComments:s,printDanglingComments:i}=qt(),{builders:{join:a,line:o,hardline:u,softline:l,group:p,indent:c,ifBreak:h}}=W(),{hasComment:d,CommentCheckFlags:f}=ir(),{getTypeParametersGroupId:m}=tn(),{printMethod:y}=nn(),{printOptionalToken:g,printTypeAnnotation:D,printDefiniteToken:x}=Hr(),{printPropertyKey:E}=rn(),{printAssignment:b}=Yr(),{printClassMemberDecorators:C}=sn();var A=n("heritageGroup");function S(e){return e.typeParameters&&!d(e.typeParameters,f.Trailing|f.Line)&&!function(e){return["superClass","extends","mixins","implements"].filter((t=>Boolean(e[t]))).length>1}(e)}function T(e,t,n,s){let l=e.getValue();if(!r(l[s]))return"";let d=i(e,t,!0,(e=>{let{marker:t}=e;return t===s}));return[S(l)?h(" ",o,{groupId:m(l.typeParameters)}):o,d,d&&u,s,p(c([o,a([",",o],e.map(n,s))]))]}function w(e,t,r){let n=r("superClass");return"AssignmentExpression"===e.getParentNode().type?p(h(["(",c([l,n]),l,")"],n)):n}t.exports={printClass:function(e,t,n){let i=e.getValue(),a=[];i.declare&&a.push("declare "),i.abstract&&a.push("abstract "),a.push("class");let u=i.id&&d(i.id,f.Trailing)||i.typeParameters&&d(i.typeParameters,f.Trailing)||i.superClass&&d(i.superClass)||r(i.extends)||r(i.mixins)||r(i.implements),l=[],h=[];if(i.id&&l.push(" ",n("id")),l.push(n("typeParameters")),i.superClass){let r=[w(e,0,n),n("superTypeParameters")],i=e.call((e=>["extends ",s(e,r,t)]),"superClass");u?h.push(o,p(i)):h.push(" ",i)}else h.push(T(e,t,n,"extends"));if(h.push(T(e,t,n,"mixins"),T(e,t,n,"implements")),u){let e;e=S(i)?[...l,c(h)]:c([...l,h]),a.push(p(e,{id:A(i)}))}else a.push(...l,...h);return a.push(" ",n("body")),a},printClassMethod:function(e,t,n){let s=e.getValue(),i=[];return r(s.decorators)&&i.push(C(e,t,n)),s.accessibility&&i.push(s.accessibility+" "),s.readonly&&i.push("readonly "),s.declare&&i.push("declare "),s.static&&i.push("static "),("TSAbstractMethodDefinition"===s.type||s.abstract)&&i.push("abstract "),s.override&&i.push("override "),i.push(y(e,t,n)),i},printClassProperty:function(e,t,n){let s=e.getValue(),i=[],a=t.semi?";":"";return r(s.decorators)&&i.push(C(e,t,n)),s.accessibility&&i.push(s.accessibility+" "),s.declare&&i.push("declare "),s.static&&i.push("static "),("TSAbstractPropertyDefinition"===s.type||"TSAbstractAccessorProperty"===s.type||s.abstract)&&i.push("abstract "),s.override&&i.push("override "),s.readonly&&i.push("readonly "),s.variance&&i.push(n("variance")),("ClassAccessorProperty"===s.type||"AccessorProperty"===s.type||"TSAbstractAccessorProperty"===s.type)&&i.push("accessor "),i.push(E(e,t,n),g(e),x(e),D(e,t,n)),[b(e,t,n,i," =","value"),a]},printHardlineAfterHeritage:function(e){return h(u,"",{groupId:A(e)})}}}}),on=x({"src/language-js/print/interface.js"(e,t){v();var{isNonEmptyArray:r}=de(),{builders:{join:n,line:s,group:i,indent:a,ifBreak:o}}=W(),{hasComment:u,identity:l,CommentCheckFlags:p}=ir(),{getTypeParametersGroupId:c}=tn(),{printTypeScriptModifiers:h}=Hr();t.exports={printInterface:function(e,t,d){let f=e.getValue(),m=[];f.declare&&m.push("declare "),"TSInterfaceDeclaration"===f.type&&m.push(f.abstract?"abstract ":"",h(e,t,d)),m.push("interface");let y=[],g=[];"InterfaceTypeAnnotation"!==f.type&&y.push(" ",d("id"),d("typeParameters"));let D=f.typeParameters&&!u(f.typeParameters,p.Trailing|p.Line);return r(f.extends)&&g.push(D?o(" ",s,{groupId:c(f.typeParameters)}):s,"extends ",(1===f.extends.length?l:a)(n([",",s],e.map(d,"extends")))),f.id&&u(f.id,p.Trailing)||r(f.extends)?D?m.push(i([...y,a(g)])):m.push(i(a([...y,...g]))):m.push(...y,...g),m.push(" ",d("body")),i(m)}}}}),un=x({"src/language-js/print/module.js"(e,t){v();var{isNonEmptyArray:r}=de(),{builders:{softline:n,group:s,indent:i,join:a,line:o,ifBreak:u,hardline:l}}=W(),{printDanglingComments:p}=qt(),{hasComment:c,CommentCheckFlags:h,shouldPrintComma:d,needsHardlineAfterDanglingComment:f,isStringLiteral:m,rawText:y}=ir(),{locStart:g,hasSameLoc:D}=jt(),{hasDecoratorsBeforeExport:x,printDecoratorsBeforeExport:E}=sn();function b(e,t,r){let n=e.getValue();if(!n.source)return"";let s=[];return A(n,t)||s.push(" from"),s.push(" ",r("source")),s}function C(e,t,l){let p=e.getValue();if(A(p,t))return"";let h=[" "];if(r(p.specifiers)){let r=[],f=[];e.each((()=>{let t=e.getValue().type;if("ExportNamespaceSpecifier"===t||"ExportDefaultSpecifier"===t||"ImportNamespaceSpecifier"===t||"ImportDefaultSpecifier"===t)r.push(l());else{if("ExportSpecifier"!==t&&"ImportSpecifier"!==t)throw new Error(`Unknown specifier type ${JSON.stringify(t)}`);f.push(l())}}),"specifiers"),h.push(a(", ",r)),f.length>0&&(r.length>0&&h.push(", "),f.length>1||r.length>0||p.specifiers.some((e=>c(e)))?h.push(s(["{",i([t.bracketSpacing?o:n,a([",",o],f)]),u(d(t)?",":""),t.bracketSpacing?o:n,"}"])):h.push(["{",t.bracketSpacing?" ":"",...f,t.bracketSpacing?" ":"","}"]))}else h.push("{}");return h}function A(e,t){let{type:n,importKind:s,source:i,specifiers:a}=e;return"ImportDeclaration"===n&&!r(a)&&"type"!==s&&!/{\s*}/.test(t.originalText.slice(g(e),g(i)))}function S(e,t,n){let s=e.getNode();return r(s.assertions)?[" assert {",t.bracketSpacing?" ":"",a(", ",e.map(n,"assertions")),t.bracketSpacing?" ":"","}"]:""}t.exports={printImportDeclaration:function(e,t,r){let n=e.getValue(),s=t.semi?";":"",i=[],{importKind:a}=n;return i.push("import"),a&&"value"!==a&&i.push(" ",a),i.push(C(e,t,r),b(e,t,r),S(e,t,r),s),i},printExportDeclaration:function(e,t,r){let n=e.getValue(),s=[];x(n)&&s.push(E(e,t,r));let{type:i,exportKind:a,declaration:o}=n;return s.push("export"),(n.default||"ExportDefaultDeclaration"===i)&&s.push(" default"),c(n,h.Dangling)&&(s.push(" ",p(e,t,!0)),f(n)&&s.push(l)),o?s.push(" ",r("declaration")):s.push("type"===a?" type":"",C(e,t,r),b(e,t,r),S(e,t,r)),function(e,t){if(!t.semi)return!1;let{type:r,declaration:n}=e,s=e.default||"ExportDefaultDeclaration"===r;if(!n)return!0;let{type:i}=n;return!(!s||"ClassDeclaration"===i||"FunctionDeclaration"===i||"TSInterfaceDeclaration"===i||"DeclareClass"===i||"DeclareFunction"===i||"TSDeclareFunction"===i||"EnumDeclaration"===i)}(n,t)&&s.push(";"),s},printExportAllDeclaration:function(e,t,r){let n=e.getValue(),s=t.semi?";":"",i=[],{exportKind:a,exported:o}=n;return i.push("export"),"type"===a&&i.push(" type"),i.push(" *"),o&&i.push(" as ",r("exported")),i.push(b(e,t,r),S(e,t,r),s),i},printModuleSpecifier:function(e,t,r){let n=e.getNode(),{type:s}=n,i=[],a="ImportSpecifier"===s?n.importKind:n.exportKind;a&&"value"!==a&&i.push(a," ");let o=s.startsWith("Import"),u=o?"imported":"local",l=o?"local":"exported",p=n[u],c=n[l],h="",d="";return"ExportNamespaceSpecifier"===s||"ImportNamespaceSpecifier"===s?h="*":p&&(h=r(u)),c&&!function(e){if("ImportSpecifier"!==e.type&&"ExportSpecifier"!==e.type)return!1;let{local:t,["ImportSpecifier"===e.type?"imported":"exported"]:r}=e;return!(t.type!==r.type||!D(t,r))&&(m(t)?t.value===r.value&&y(t)===y(r):"Identifier"===t.type&&t.name===r.name)}(n)&&(d=r(l)),i.push(h,h&&d?" as ":"",d),i}}}}),ln=x({"src/language-js/print/object.js"(e,t){v();var{printDanglingComments:r}=qt(),{builders:{line:n,softline:s,group:i,indent:a,ifBreak:o,hardline:u}}=W(),{getLast:l,hasNewlineInRange:p,hasNewline:c,isNonEmptyArray:h}=de(),{shouldPrintComma:d,hasComment:f,getComments:m,CommentCheckFlags:y,isNextLineEmpty:g}=ir(),{locStart:D,locEnd:x}=jt(),{printOptionalToken:E,printTypeAnnotation:b}=Hr(),{shouldHugFunctionParameters:C}=Qr(),{shouldHugType:A}=en(),{printHardlineAfterHeritage:S}=an();t.exports={printObject:function(e,t,v){let T,w=t.semi?";":"",F=e.getValue();T="TSTypeLiteral"===F.type?"members":"TSInterfaceBody"===F.type?"body":"properties";let P="ObjectTypeAnnotation"===F.type,k=[T];P&&k.push("indexers","callProperties","internalSlots");let N=k.map((e=>F[e][0])).sort(((e,t)=>D(e)-D(t)))[0],I=e.getParentNode(0),B=P&&I&&("InterfaceDeclaration"===I.type||"DeclareInterface"===I.type||"DeclareClass"===I.type)&&"body"===e.getName(),_="TSInterfaceBody"===F.type||B||"ObjectPattern"===F.type&&"FunctionDeclaration"!==I.type&&"FunctionExpression"!==I.type&&"ArrowFunctionExpression"!==I.type&&"ObjectMethod"!==I.type&&"ClassMethod"!==I.type&&"ClassPrivateMethod"!==I.type&&"AssignmentPattern"!==I.type&&"CatchClause"!==I.type&&F.properties.some((e=>e.value&&("ObjectPattern"===e.value.type||"ArrayPattern"===e.value.type)))||"ObjectPattern"!==F.type&&N&&p(t.originalText,D(F),D(N)),O=B?";":"TSInterfaceBody"===F.type||"TSTypeLiteral"===F.type?o(w,";"):",",L="RecordExpression"===F.type?"#{":F.exact?"{|":"{",j=F.exact?"|}":"}",M=[];for(let t of k)e.each((e=>{let t=e.getValue();M.push({node:t,printed:v(),loc:D(t)})}),t);k.length>1&&M.sort(((e,t)=>e.loc-t.loc));let R=[],$=M.map((e=>{let r=[...R,i(e.printed)];return R=[O,n],("TSPropertySignature"===e.node.type||"TSMethodSignature"===e.node.type||"TSConstructSignatureDeclaration"===e.node.type)&&f(e.node,y.PrettierIgnore)&&R.shift(),g(e.node,t)&&R.push(u),r}));if(F.inexact){let s;if(f(F,y.Dangling)){let i=f(F,y.Line);s=[r(e,t,!0),i||c(t.originalText,x(l(m(F))))?u:n,"..."]}else s=["..."];$.push([...R,...s])}let U,z=l(F[T]),V=!(F.inexact||z&&"RestElement"===z.type||z&&("TSPropertySignature"===z.type||"TSCallSignatureDeclaration"===z.type||"TSMethodSignature"===z.type||"TSConstructSignatureDeclaration"===z.type)&&f(z,y.PrettierIgnore));if(0===$.length){if(!f(F,y.Dangling))return[L,j,b(e,t,v)];U=i([L,r(e,t),s,j,E(e),b(e,t,v)])}else U=[B&&h(F.properties)?S(I):"",L,a([t.bracketSpacing?n:s,...$]),o(V&&(","!==O||d(t))?O:""),t.bracketSpacing?n:s,j,E(e),b(e,t,v)];return e.match((e=>"ObjectPattern"===e.type&&!e.decorators),((e,t,r)=>C(e)&&("params"===t||"parameters"===t||"this"===t||"rest"===t)&&0===r))||e.match(A,((e,t)=>"typeAnnotation"===t),((e,t)=>"typeAnnotation"===t),((e,t,r)=>C(e)&&("params"===t||"parameters"===t||"this"===t||"rest"===t)&&0===r))||!_&&e.match((e=>"ObjectPattern"===e.type),(e=>"AssignmentExpression"===e.type||"VariableDeclarator"===e.type))?U:i(U,{shouldBreak:_})}}}}),pn=x({"src/language-js/print/flow.js"(e,t){v();var r=Wt(),{printDanglingComments:n}=qt(),{printString:s,printNumber:i}=de(),{builders:{hardline:a,softline:o,group:u,indent:l}}=W(),{getParentExportDeclaration:p,isFunctionNotation:c,isGetterOrSetter:h,rawText:d,shouldPrintComma:f}=ir(),{locStart:m,locEnd:y}=jt(),{replaceTextEndOfLine:g}=U(),{printClass:D}=an(),{printOpaqueType:x,printTypeAlias:E,printIntersectionType:b,printUnionType:C,printFunctionType:A,printTupleType:S,printIndexedAccessType:T}=en(),{printInterface:w}=on(),{printTypeParameter:F,printTypeParameters:P}=tn(),{printExportDeclaration:k,printExportAllDeclaration:N}=un(),{printArrayItems:I}=Jr(),{printObject:B}=ln(),{printPropertyKey:_}=rn(),{printOptionalToken:O,printTypeAnnotation:L,printRestSpread:j}=Hr();function M(e,t){let n=p(e);return n?(r.strictEqual(n.type,"DeclareExportDeclaration"),t):["declare ",t]}t.exports={printFlow:function(e,t,p){let v=e.getValue(),R=t.semi?";":"",$=[];switch(v.type){case"DeclareClass":return M(e,D(e,t,p));case"DeclareFunction":return M(e,["function ",p("id"),v.predicate?" ":"",p("predicate"),R]);case"DeclareModule":return M(e,["module ",p("id")," ",p("body")]);case"DeclareModuleExports":return M(e,["module.exports",": ",p("typeAnnotation"),R]);case"DeclareVariable":return M(e,["var ",p("id"),R]);case"DeclareOpaqueType":return M(e,x(e,t,p));case"DeclareInterface":return M(e,w(e,t,p));case"DeclareTypeAlias":return M(e,E(e,t,p));case"DeclareExportDeclaration":return M(e,k(e,t,p));case"DeclareExportAllDeclaration":return M(e,N(e,t,p));case"OpaqueType":return x(e,t,p);case"TypeAlias":return E(e,t,p);case"IntersectionTypeAnnotation":return b(e,t,p);case"UnionTypeAnnotation":return C(e,t,p);case"FunctionTypeAnnotation":return A(e,t,p);case"TupleTypeAnnotation":return S(e,t,p);case"GenericTypeAnnotation":return[p("id"),P(e,t,p,"typeParameters")];case"IndexedAccessType":case"OptionalIndexedAccessType":return T(e,t,p);case"TypeAnnotation":return p("typeAnnotation");case"TypeParameter":return F(e,t,p);case"TypeofTypeAnnotation":return["typeof ",p("argument")];case"ExistsTypeAnnotation":return"*";case"EmptyTypeAnnotation":return"empty";case"MixedTypeAnnotation":return"mixed";case"ArrayTypeAnnotation":return[p("elementType"),"[]"];case"BooleanLiteralTypeAnnotation":return String(v.value);case"EnumDeclaration":return["enum ",p("id")," ",p("body")];case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":if("EnumSymbolBody"===v.type||v.explicitType){let e=null;switch(v.type){case"EnumBooleanBody":e="boolean";break;case"EnumNumberBody":e="number";break;case"EnumStringBody":e="string";break;case"EnumSymbolBody":e="symbol"}$.push("of ",e," ")}if(0!==v.members.length||v.hasUnknownMembers){let r=v.members.length>0?[a,I(e,t,"members",p),v.hasUnknownMembers||f(t)?",":""]:[];$.push(u(["{",l([...r,...v.hasUnknownMembers?[a,"..."]:[]]),n(e,t,!0),a,"}"]))}else $.push(u(["{",n(e,t),o,"}"]));return $;case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":return[p("id")," = ","object"==typeof v.init?p("init"):String(v.init)];case"EnumDefaultedMember":return p("id");case"FunctionTypeParam":{let t=v.name?p("name"):e.getParentNode().this===v?"this":"";return[t,O(e),t?": ":"",p("typeAnnotation")]}case"InterfaceDeclaration":case"InterfaceTypeAnnotation":return w(e,t,p);case"ClassImplements":case"InterfaceExtends":return[p("id"),p("typeParameters")];case"NullableTypeAnnotation":return["?",p("typeAnnotation")];case"Variance":{let{kind:e}=v;return r.ok("plus"===e||"minus"===e),"plus"===e?"+":"-"}case"ObjectTypeCallProperty":return v.static&&$.push("static "),$.push(p("value")),$;case"ObjectTypeIndexer":return[v.static?"static ":"",v.variance?p("variance"):"","[",p("id"),v.id?": ":"",p("key"),"]: ",p("value")];case"ObjectTypeProperty":{let r="";return v.proto?r="proto ":v.static&&(r="static "),[r,h(v)?v.kind+" ":"",v.variance?p("variance"):"",_(e,t,p),O(e),c(v)?"":": ",p("value")]}case"ObjectTypeAnnotation":return B(e,t,p);case"ObjectTypeInternalSlot":return[v.static?"static ":"","[[",p("id"),"]]",O(e),v.method?"":": ",p("value")];case"ObjectTypeSpreadProperty":return j(e,t,p);case"QualifiedTypeofIdentifier":case"QualifiedTypeIdentifier":return[p("qualification"),".",p("id")];case"StringLiteralTypeAnnotation":return g(s(d(v),t));case"NumberLiteralTypeAnnotation":r.strictEqual(typeof v.value,"number");case"BigIntLiteralTypeAnnotation":return v.extra?i(v.extra.raw):i(v.raw);case"TypeCastExpression":return["(",p("expression"),L(e,t,p),")"];case"TypeParameterDeclaration":case"TypeParameterInstantiation":{let r=P(e,t,p,"params");if("flow"===t.parser){let e=m(v),n=y(v),s=t.originalText.lastIndexOf("/*",e),i=t.originalText.indexOf("*/",n);if(-1!==s&&-1!==i){let e=t.originalText.slice(s+2,i).trim();if(e.startsWith("::")&&!e.includes("/*")&&!e.includes("*/"))return["/*:: ",r," */"]}}return r}case"InferredPredicate":return"%checks";case"DeclaredPredicate":return["%checks(",p("value"),")"];case"AnyTypeAnnotation":return"any";case"BooleanTypeAnnotation":return"boolean";case"BigIntTypeAnnotation":return"bigint";case"NullLiteralTypeAnnotation":return"null";case"NumberTypeAnnotation":return"number";case"SymbolTypeAnnotation":return"symbol";case"StringTypeAnnotation":return"string";case"VoidTypeAnnotation":return"void";case"ThisTypeAnnotation":return"this";case"Node":case"Printable":case"SourceLocation":case"Position":case"Statement":case"Function":case"Pattern":case"Expression":case"Declaration":case"Specifier":case"NamedSpecifier":case"Comment":case"MemberTypeAnnotation":case"Type":throw new Error("unprintable type: "+JSON.stringify(v.type))}}}}}),cn=x({"src/language-js/utils/is-ts-keyword-type.js"(e,t){v(),t.exports=function(e){let{type:t}=e;return t.startsWith("TS")&&t.endsWith("Keyword")}}}),hn=x({"src/language-js/print/ternary.js"(e,t){v();var{hasNewlineInRange:r}=de(),{isJsxNode:n,getComments:s,isCallExpression:i,isMemberExpression:a,isTSTypeExpression:o}=ir(),{locStart:u,locEnd:l}=jt(),p=nr(),{builders:{line:c,softline:h,group:d,indent:f,align:m,ifBreak:y,dedent:g,breakParent:D}}=W();function x(e,t,r){let n=e.getValue(),s="ConditionalExpression"===n.type,i=s?"alternate":"falseType",a=e.getParentNode(),o=s?r("test"):[r("checkType")," ","extends"," ",r("extendsType")];return a.type===n.type&&a[i]===n?m(2,o):o}var E=new Map([["AssignmentExpression","right"],["VariableDeclarator","init"],["ReturnStatement","argument"],["ThrowStatement","argument"],["UnaryExpression","argument"],["YieldExpression","argument"]]);t.exports={printTernary:function(e,t,b){let C,v,A=e.getValue(),S="ConditionalExpression"===A.type,T=S?"consequent":"trueType",w=S?"alternate":"falseType",F=S?["test"]:["checkType","extendsType"],P=A[T],k=A[w],N=[],I=!1,B=e.getParentNode(),_=B.type===A.type&&F.some((e=>B[e]===A)),O=B.type===A.type&&!_,L=0;do{v=C||A,C=e.getParentNode(L),L++}while(C&&C.type===A.type&&F.every((e=>C[e]!==v)));let j=C||B,M=v;if(S&&(n(A[F[0]])||n(P)||n(k)||function(e){let t=[e];for(let e=0;e<t.length;e++){let r=t[e];for(let e of["test","consequent","alternate"]){let s=r[e];if(n(s))return!0;"ConditionalExpression"===s.type&&t.push(s)}}return!1}(M))){I=!0,O=!0;let e=e=>[y("("),f([h,e]),h,y(")")],t=e=>"NullLiteral"===e.type||"Literal"===e.type&&null===e.value||"Identifier"===e.type&&"undefined"===e.name;N.push(" ? ",t(P)?b(T):e(b(T))," : ",k.type===A.type||t(k)?b(w):e(b(w)))}else{let e=[c,"? ",P.type===A.type?y("","("):"",m(2,b(T)),P.type===A.type?y("",")"):"",c,": ",k.type===A.type?b(w):m(2,b(w))];N.push(B.type!==A.type||B[w]===A||_?e:t.useTabs?g(f(e)):m(Math.max(0,t.tabWidth-2),e))}let R=[...F.map((e=>s(A[e]))),s(P),s(k)].flat().some((e=>p(e)&&r(t.originalText,u(e),l(e)))),$=!I&&(a(B)||"NGPipeExpression"===B.type&&B.left===A)&&!B.computed,U=function(e){let t=e.getValue();if("ConditionalExpression"!==t.type)return!1;let r,n=t;for(let t=0;!r;t++){let s=e.getParentNode(t);i(s)&&s.callee===n||a(s)&&s.object===n||"TSNonNullExpression"===s.type&&s.expression===n?n=s:"NewExpression"===s.type&&s.callee===n||o(s)&&s.expression===n?(r=e.getParentNode(t+1),n=s):r=s}return n!==t&&r[E.get(r.type)]===n}(e),z=(V=[x(e,0,b),O?N:f(N),S&&$&&!U?h:""],B===j?d(V,{shouldBreak:R}):R?[V,D]:V);var V;return _||U?d([f([h,z]),h]):z}}}}),dn=x({"src/language-js/print/statement.js"(e,t){v();var{builders:{hardline:r}}=W(),n=$r(),{getLeftSidePathName:s,hasNakedLeftSide:i,isJsxNode:a,isTheOnlyJsxElementInMarkdown:o,hasComment:u,CommentCheckFlags:l,isNextLineEmpty:p}=ir(),{shouldPrintParamsWithoutParens:c}=nn();function h(e,t,n,s){let i=e.getValue(),a=[],c="ClassBody"===i.type,h=function(e){for(let t=e.length-1;t>=0;t--){let r=e[t];if("EmptyStatement"!==r.type)return r}}(i[s]);return e.each(((e,s,i)=>{let m=e.getValue();if("EmptyStatement"===m.type)return;let y=n();t.semi||c||o(t,e)||!function(e,t){return"ExpressionStatement"===e.getNode().type&&e.call((e=>d(e,t)),"expression")}(e,t)?a.push(y):u(m,l.Leading)?a.push(n([],{needsSemi:!0})):a.push(";",y),!t.semi&&c&&f(m)&&function(e,t){let{type:r,name:n}=e.key;if(!(e.computed||"Identifier"!==r||"static"!==n&&"get"!==n&&"set"!==n&&"accessor"!==n||e.value||e.typeAnnotation))return!0;if(!t||t.static||t.accessibility)return!1;if(!t.computed){let e=t.key&&t.key.name;if("in"===e||"instanceof"===e)return!0}if(f(t)&&t.variance&&!t.static&&!t.declare)return!0;switch(t.type){case"ClassProperty":case"PropertyDefinition":case"TSAbstractPropertyDefinition":return t.computed;case"MethodDefinition":case"TSAbstractMethodDefinition":case"ClassMethod":case"ClassPrivateMethod":{if((t.value?t.value.async:t.async)||"get"===t.kind||"set"===t.kind)return!1;let e=t.value?t.value.generator:t.generator;return!(!t.computed&&!e)}case"TSIndexSignature":return!0}return!1}(m,i[s+1])&&a.push(";"),m!==h&&(a.push(r),p(m,t)&&a.push(r))}),s),a}function d(e,t){let r=e.getValue();switch(r.type){case"ParenthesizedExpression":case"TypeCastExpression":case"ArrayExpression":case"ArrayPattern":case"TemplateLiteral":case"TemplateElement":case"RegExpLiteral":return!0;case"ArrowFunctionExpression":if(!c(e,t))return!0;break;case"UnaryExpression":{let{prefix:e,operator:t}=r;if(e&&("+"===t||"-"===t))return!0;break}case"BindExpression":if(!r.object)return!0;break;case"Literal":if(r.regex)return!0;break;default:if(a(r))return!0}return!!n(e,t)||!!i(r)&&e.call((e=>d(e,t)),...s(e,r))}var f=e=>{let{type:t}=e;return"ClassProperty"===t||"PropertyDefinition"===t||"ClassPrivateProperty"===t||"ClassAccessorProperty"===t||"AccessorProperty"===t||"TSAbstractPropertyDefinition"===t||"TSAbstractAccessorProperty"===t};t.exports={printBody:function(e,t,r){return h(e,t,r,"body")},printSwitchCaseConsequent:function(e,t,r){return h(e,t,r,"consequent")}}}}),fn=x({"src/language-js/print/block.js"(e,t){v();var{printDanglingComments:r}=qt(),{isNonEmptyArray:n}=de(),{builders:{hardline:s,indent:i}}=W(),{hasComment:a,CommentCheckFlags:o,isNextLineEmpty:u}=ir(),{printHardlineAfterHeritage:l}=an(),{printBody:p}=dn();function c(e,t,i){let l=e.getValue(),c=n(l.directives),h=l.body.some((e=>"EmptyStatement"!==e.type)),d=a(l,o.Dangling);if(!c&&!h&&!d)return"";let f=[];if(c&&e.each(((e,r,n)=>{f.push(i()),(r<n.length-1||h||d)&&(f.push(s),u(e.getValue(),t)&&f.push(s))}),"directives"),h&&f.push(p(e,t,i)),d&&f.push(r(e,t,!0)),"Program"===l.type){let t=e.getParentNode();(!t||"ModuleExpression"!==t.type)&&f.push(s)}return f}t.exports={printBlock:function(e,t,r){let a=e.getValue(),o=[];if("StaticBlock"===a.type&&o.push("static "),"ClassBody"===a.type&&n(a.body)){let t=e.getParentNode();o.push(l(t))}o.push("{");let u=c(e,t,r);if(u)o.push(i([s,u]),s);else{let t=e.getParentNode(),r=e.getParentNode(1);"ArrowFunctionExpression"===t.type||"FunctionExpression"===t.type||"FunctionDeclaration"===t.type||"ObjectMethod"===t.type||"ClassMethod"===t.type||"ClassPrivateMethod"===t.type||"ForStatement"===t.type||"WhileStatement"===t.type||"DoWhileStatement"===t.type||"DoExpression"===t.type||"CatchClause"===t.type&&!r.finalizer||"TSModuleDeclaration"===t.type||"TSDeclareFunction"===t.type||"StaticBlock"===a.type||"ClassBody"===a.type||o.push(s)}return o.push("}"),o},printBlockBody:c}}}),mn=x({"src/language-js/print/typescript.js"(e,t){v();var{printDanglingComments:r}=qt(),{hasNewlineInRange:n}=de(),{builders:{join:s,line:i,hardline:a,softline:o,group:u,indent:l,conditionalGroup:p,ifBreak:c}}=W(),{isStringLiteral:h,getTypeScriptMappedTypeModifier:d,shouldPrintComma:f,isCallExpression:m,isMemberExpression:y}=ir(),g=cn(),{locStart:D,locEnd:x}=jt(),{printOptionalToken:E,printTypeScriptModifiers:b}=Hr(),{printTernary:C}=hn(),{printFunctionParameters:A,shouldGroupFunctionParameters:S}=Qr(),{printTemplateLiteral:T}=ar(),{printArrayItems:w}=Jr(),{printObject:F}=ln(),{printClassProperty:P,printClassMethod:k}=an(),{printTypeParameter:N,printTypeParameters:I}=tn(),{printPropertyKey:B}=rn(),{printFunction:_,printMethodInternal:O}=nn(),{printInterface:L}=on(),{printBlock:j}=fn(),{printTypeAlias:M,printIntersectionType:R,printUnionType:$,printFunctionType:U,printTupleType:z,printIndexedAccessType:V,printJSDocType:q}=en();t.exports={printTypescript:function(e,t,v){let W=e.getValue();if(!W.type.startsWith("TS"))return;if(g(W))return W.type.slice(2,-7).toLowerCase();let H=t.semi?";":"",J=[];switch(W.type){case"TSThisType":return"this";case"TSTypeAssertion":{let e=!("ArrayExpression"===W.expression.type||"ObjectExpression"===W.expression.type),t=u(["<",l([o,v("typeAnnotation")]),o,">"]),r=[c("("),l([o,v("expression")]),o,c(")")];return e?p([[t,v("expression")],[t,u(r,{shouldBreak:!0})],[t,v("expression")]]):u([t,v("expression")])}case"TSDeclareFunction":return _(e,v,t);case"TSExportAssignment":return["export = ",v("expression"),H];case"TSModuleBlock":return j(e,t,v);case"TSInterfaceBody":case"TSTypeLiteral":return F(e,t,v);case"TSTypeAliasDeclaration":return M(e,t,v);case"TSQualifiedName":return s(".",[v("left"),v("right")]);case"TSAbstractMethodDefinition":case"TSDeclareMethod":return k(e,t,v);case"TSAbstractAccessorProperty":case"TSAbstractPropertyDefinition":return P(e,t,v);case"TSInterfaceHeritage":case"TSExpressionWithTypeArguments":return J.push(v("expression")),W.typeParameters&&J.push(v("typeParameters")),J;case"TSTemplateLiteralType":return T(e,v,t);case"TSNamedTupleMember":return[v("label"),W.optional?"?":"",": ",v("elementType")];case"TSRestType":return["...",v("typeAnnotation")];case"TSOptionalType":return[v("typeAnnotation"),"?"];case"TSInterfaceDeclaration":return L(e,t,v);case"TSClassImplements":case"TSInstantiationExpression":return[v("expression"),v("typeParameters")];case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return I(e,t,v,"params");case"TSTypeParameter":return N(e,t,v);case"TSSatisfiesExpression":case"TSAsExpression":{let t="TSAsExpression"===W.type?"as":"satisfies";J.push(v("expression"),` ${t} `,v("typeAnnotation"));let r=e.getParentNode();return m(r)&&r.callee===W||y(r)&&r.object===W?u([l([o,...J]),o]):J}case"TSArrayType":return[v("elementType"),"[]"];case"TSPropertySignature":return W.readonly&&J.push("readonly "),J.push(B(e,t,v),E(e)),W.typeAnnotation&&J.push(": ",v("typeAnnotation")),W.initializer&&J.push(" = ",v("initializer")),J;case"TSParameterProperty":return W.accessibility&&J.push(W.accessibility+" "),W.export&&J.push("export "),W.static&&J.push("static "),W.override&&J.push("override "),W.readonly&&J.push("readonly "),J.push(v("parameter")),J;case"TSTypeQuery":return["typeof ",v("exprName"),v("typeParameters")];case"TSIndexSignature":{let r=e.getParentNode(),n=W.parameters.length>1?c(f(t)?",":""):"",i=u([l([o,s([", ",o],e.map(v,"parameters"))]),n,o]);return[W.export?"export ":"",W.accessibility?[W.accessibility," "]:"",W.static?"static ":"",W.readonly?"readonly ":"",W.declare?"declare ":"","[",W.parameters?i:"",W.typeAnnotation?"]: ":"]",W.typeAnnotation?v("typeAnnotation"):"","ClassBody"===r.type?H:""]}case"TSTypePredicate":return[W.asserts?"asserts ":"",v("parameterName"),W.typeAnnotation?[" is ",v("typeAnnotation")]:""];case"TSNonNullExpression":return[v("expression"),"!"];case"TSImportType":return[W.isTypeOf?"typeof ":"","import(",v(W.parameter?"parameter":"argument"),")",W.qualifier?[".",v("qualifier")]:"",I(e,t,v,"typeParameters")];case"TSLiteralType":return v("literal");case"TSIndexedAccessType":return V(e,t,v);case"TSConstructSignatureDeclaration":case"TSCallSignatureDeclaration":case"TSConstructorType":if("TSConstructorType"===W.type&&W.abstract&&J.push("abstract "),"TSCallSignatureDeclaration"!==W.type&&J.push("new "),J.push(u(A(e,v,t,!1,!0))),W.returnType||W.typeAnnotation){let e="TSConstructorType"===W.type;J.push(e?" => ":": ",v("returnType"),v("typeAnnotation"))}return J;case"TSTypeOperator":return[W.operator," ",v("typeAnnotation")];case"TSMappedType":{let s=n(t.originalText,D(W),x(W));return u(["{",l([t.bracketSpacing?i:o,v("typeParameter"),W.optional?d(W.optional,"?"):"",W.typeAnnotation?": ":"",v("typeAnnotation"),c(H)]),r(e,t,!0),t.bracketSpacing?i:o,"}"],{shouldBreak:s})}case"TSMethodSignature":{let r=W.kind&&"method"!==W.kind?`${W.kind} `:"";J.push(W.accessibility?[W.accessibility," "]:"",r,W.export?"export ":"",W.static?"static ":"",W.readonly?"readonly ":"",W.abstract?"abstract ":"",W.declare?"declare ":"",W.computed?"[":"",v("key"),W.computed?"]":"",E(e));let n=A(e,v,t,!1,!0),s=W.returnType?"returnType":"typeAnnotation",i=W[s],a=i?v(s):"",o=S(W,a);return J.push(o?u(n):n),i&&J.push(": ",u(a)),u(J)}case"TSNamespaceExportDeclaration":return J.push("export as namespace ",v("id")),t.semi&&J.push(";"),u(J);case"TSEnumDeclaration":return W.declare&&J.push("declare "),W.modifiers&&J.push(b(e,t,v)),W.const&&J.push("const "),J.push("enum ",v("id")," "),0===W.members.length?J.push(u(["{",r(e,t),o,"}"])):J.push(u(["{",l([a,w(e,t,"members",v),f(t,"es5")?",":""]),r(e,t,!0),a,"}"])),J;case"TSEnumMember":return W.computed?J.push("[",v("id"),"]"):J.push(v("id")),W.initializer&&J.push(" = ",v("initializer")),J;case"TSImportEqualsDeclaration":return W.isExport&&J.push("export "),J.push("import "),W.importKind&&"value"!==W.importKind&&J.push(W.importKind," "),J.push(v("id")," = ",v("moduleReference")),t.semi&&J.push(";"),u(J);case"TSExternalModuleReference":return["require(",v("expression"),")"];case"TSModuleDeclaration":{let r=e.getParentNode(),n=h(W.id),s="TSModuleDeclaration"===r.type,i=W.body&&"TSModuleDeclaration"===W.body.type;if(s)J.push(".");else{W.declare&&J.push("declare "),J.push(b(e,t,v));let r=t.originalText.slice(D(W),D(W.id));"Identifier"===W.id.type&&"global"===W.id.name&&!/namespace|module/.test(r)||J.push(n||/(?:^|\s)module(?:\s|$)/.test(r)?"module ":"namespace ")}return J.push(v("id")),i?J.push(v("body")):W.body?J.push(" ",u(v("body"))):J.push(H),J}case"TSConditionalType":return C(e,t,v);case"TSInferType":return["infer"," ",v("typeParameter")];case"TSIntersectionType":return R(e,t,v);case"TSUnionType":return $(e,t,v);case"TSFunctionType":return U(e,t,v);case"TSTupleType":return z(e,t,v);case"TSTypeReference":return[v("typeName"),I(e,t,v,"typeParameters")];case"TSTypeAnnotation":return v("typeAnnotation");case"TSEmptyBodyFunctionExpression":return O(e,t,v);case"TSJSDocAllType":return"*";case"TSJSDocUnknownType":return"?";case"TSJSDocNullableType":return q(e,v,"?");case"TSJSDocNonNullableType":return q(e,v,"!");default:throw new Error(`Unknown TypeScript node type: ${JSON.stringify(W.type)}.`)}}}}}),yn=x({"src/language-js/print/comment.js"(e,t){v();var{hasNewline:r}=de(),{builders:{join:n,hardline:s},utils:{replaceTextEndOfLine:i}}=W(),{isLineComment:a}=ir(),{locStart:o,locEnd:u}=jt(),l=nr();t.exports={printComment:function(e,t){let p=e.getValue();if(a(p))return t.originalText.slice(o(p),u(p)).trimEnd();if(l(p)){if(function(e){let t=`*${e.value}*`.split("\n");return t.length>1&&t.every((e=>"*"===e.trim()[0]))}(p)){let e=function(e){let t=e.value.split("\n");return["/*",n(s,t.map(((e,r)=>0===r?e.trimEnd():" "+(r<t.length-1?e.trim():e.trimStart())))),"*/"]}(p);return p.trailing&&!r(t.originalText,o(p),{backwards:!0})?[s,e]:e}let e=u(p),a="*-/"===t.originalText.slice(e-3,e);return["/*",i(p.value),a?"*-/":"*/"]}throw new Error("Not a comment: "+JSON.stringify(p))}}}}),gn=x({"src/language-js/print/literal.js"(e,t){v();var{printString:r,printNumber:n}=de(),{replaceTextEndOfLine:s}=U(),{printDirective:i}=Hr();function a(e){return e.toLowerCase()}function o(e){let{pattern:t,flags:r}=e;return r=[...r].sort().join(""),`/${t}/${r}`}t.exports={printLiteral:function(e,t){let u=e.getNode();switch(u.type){case"RegExpLiteral":return o(u);case"BigIntLiteral":return a(u.bigint||u.extra.raw);case"NumericLiteral":return n(u.extra.raw);case"StringLiteral":return s(r(u.extra.raw,t));case"NullLiteral":return"null";case"BooleanLiteral":return String(u.value);case"DecimalLiteral":return n(u.value)+"m";case"Literal":{if(u.regex)return o(u.regex);if(u.bigint)return a(u.raw);if(u.decimal)return n(u.decimal)+"m";let{value:l}=u;return"number"==typeof l?n(u.raw):"string"==typeof l?function(e){if("expression"!==e.getName())return;let t=e.getParentNode();return"ExpressionStatement"===t.type&&t.directive}(e)?i(u.raw,t):s(r(u.raw,t)):String(l)}}}}}}),Dn=x({"src/language-js/printer-estree.js"(e,t){v();var{printDanglingComments:r}=qt(),{hasNewline:n}=de(),{builders:{join:s,line:i,hardline:a,softline:o,group:u,indent:l},utils:{replaceTextEndOfLine:p}}=W(),c=cr(),h=hr(),{insertPragma:d}=jr(),f=Rr(),m=$r(),y=Ur(),{hasFlowShorthandAnnotationComment:g,hasComment:D,CommentCheckFlags:x,isTheOnlyJsxElementInMarkdown:E,isLineComment:b,isNextLineEmpty:C,needsHardlineAfterDanglingComment:A,hasIgnoreComment:S,isCallExpression:T,isMemberExpression:w,markerForIfWithoutBlockAndSameLineComment:F}=ir(),{locStart:P,locEnd:k}=jt(),N=nr(),{printHtmlBinding:I,isVueEventBindingExpression:B}=zr(),{printAngular:_}=Wr(),{printJsx:O,hasJsxIgnoreComment:L}=qr(),{printFlow:j}=pn(),{printTypescript:M}=mn(),{printOptionalToken:R,printBindExpressionCallee:$,printTypeAnnotation:U,adjustClause:z,printRestSpread:V,printDefiniteToken:q,printDirective:H}=Hr(),{printImportDeclaration:J,printExportDeclaration:G,printExportAllDeclaration:X,printModuleSpecifier:K}=un(),{printTernary:Z}=hn(),{printTemplateLiteral:Y}=ar(),{printArray:Q}=Jr(),{printObject:ee}=ln(),{printClass:te,printClassMethod:re,printClassProperty:ne}=an(),{printProperty:se}=rn(),{printFunction:ie,printArrowFunction:ae,printMethod:oe,printReturnStatement:ue,printThrowStatement:le}=nn(),{printCallExpression:pe}=Zr(),{printVariableDeclarator:ce,printAssignmentExpression:he}=Yr(),{printBinaryishExpression:fe}=Vr(),{printSwitchCaseConsequent:me}=dn(),{printMemberExpression:ye}=Xr(),{printBlock:ge,printBlockBody:De}=fn(),{printComment:xe}=yn(),{printLiteral:Ee}=gn(),{printDecorators:be}=sn();t.exports={preprocess:y,print:function(e,t,c,h){let d=function(e,t,c,h){let d=e.getValue(),f=t.semi?";":"";if(!d)return"";if("string"==typeof d)return d;for(let r of[Ee,I,_,O,j,M]){let n=r(e,t,c);if(typeof n<"u")return n}let m=[];switch(d.type){case"JsExpressionRoot":return c("node");case"JsonRoot":return[c("node"),a];case"File":return d.program&&d.program.interpreter&&m.push(c(["program","interpreter"])),m.push(c("program")),m;case"Program":return De(e,t,c);case"EmptyStatement":return"";case"ExpressionStatement":{if("__vue_event_binding"===t.parser||"__vue_ts_event_binding"===t.parser){let t=e.getParentNode();if("Program"===t.type&&1===t.body.length&&t.body[0]===d)return[c("expression"),B(d.expression)?";":""]}let n=r(e,t,!0,(e=>{let{marker:t}=e;return t===F}));return[c("expression"),E(t,e)?"":f,n?[" ",n]:""]}case"ParenthesizedExpression":return D(d.expression)||"ObjectExpression"!==d.expression.type&&"ArrayExpression"!==d.expression.type?u(["(",l([o,c("expression")]),o,")"]):["(",c("expression"),")"];case"AssignmentExpression":return he(e,t,c);case"VariableDeclarator":return ce(e,t,c);case"BinaryExpression":case"LogicalExpression":return fe(e,t,c);case"AssignmentPattern":return[c("left")," = ",c("right")];case"OptionalMemberExpression":case"MemberExpression":return ye(e,t,c);case"MetaProperty":return[c("meta"),".",c("property")];case"BindExpression":return d.object&&m.push(c("object")),m.push(u(l([o,$(e,t,c)]))),m;case"Identifier":return[d.name,R(e),q(e),U(e,t,c)];case"V8IntrinsicIdentifier":return["%",d.name];case"SpreadElement":case"SpreadElementPattern":case"SpreadProperty":case"SpreadPropertyPattern":case"RestElement":return V(e,t,c);case"FunctionDeclaration":case"FunctionExpression":return ie(e,c,t,h);case"ArrowFunctionExpression":return ae(e,t,c,h);case"YieldExpression":return m.push("yield"),d.delegate&&m.push("*"),d.argument&&m.push(" ",c("argument")),m;case"AwaitExpression":if(m.push("await"),d.argument){m.push(" ",c("argument"));let t=e.getParentNode();if(T(t)&&t.callee===d||w(t)&&t.object===d){m=[l([o,...m]),o];let t=e.findAncestor((e=>"AwaitExpression"===e.type||"BlockStatement"===e.type));if(!t||"AwaitExpression"!==t.type)return u(m)}}return m;case"ExportDefaultDeclaration":case"ExportNamedDeclaration":return G(e,t,c);case"ExportAllDeclaration":return X(e,t,c);case"ImportDeclaration":return J(e,t,c);case"ImportSpecifier":case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ExportNamespaceSpecifier":case"ImportDefaultSpecifier":case"ExportDefaultSpecifier":return K(e,t,c);case"ImportAttribute":return[c("key"),": ",c("value")];case"Import":return"import";case"BlockStatement":case"StaticBlock":case"ClassBody":return ge(e,t,c);case"ThrowStatement":return le(e,t,c);case"ReturnStatement":return ue(e,t,c);case"NewExpression":case"ImportExpression":case"OptionalCallExpression":case"CallExpression":return pe(e,t,c);case"ObjectExpression":case"ObjectPattern":case"RecordExpression":return ee(e,t,c);case"ObjectProperty":case"Property":return d.method||"get"===d.kind||"set"===d.kind?oe(e,t,c):se(e,t,c);case"ObjectMethod":return oe(e,t,c);case"Decorator":return["@",c("expression")];case"ArrayExpression":case"ArrayPattern":case"TupleExpression":return Q(e,t,c);case"SequenceExpression":{let t=e.getParentNode(0);if("ExpressionStatement"===t.type||"ForStatement"===t.type){let t=[];return e.each(((e,r)=>{0===r?t.push(c()):t.push(",",l([i,c()]))}),"expressions"),u(t)}return u(s([",",i],e.map(c,"expressions")))}case"ThisExpression":return"this";case"Super":return"super";case"Directive":return[c("value"),f];case"DirectiveLiteral":return H(d.extra.raw,t);case"UnaryExpression":return m.push(d.operator),/[a-z]$/.test(d.operator)&&m.push(" "),D(d.argument)?m.push(u(["(",l([o,c("argument")]),o,")"])):m.push(c("argument")),m;case"UpdateExpression":return m.push(c("argument"),d.operator),d.prefix&&m.reverse(),m;case"ConditionalExpression":return Z(e,t,c);case"VariableDeclaration":{let t,r=e.map(c,"declarations"),n=e.getParentNode(),s="ForStatement"===n.type||"ForInStatement"===n.type||"ForOfStatement"===n.type,o=d.declarations.some((e=>e.init));return 1!==r.length||D(d.declarations[0])?r.length>0&&(t=l(r[0])):t=r[0],m=[d.declare?"declare ":"",d.kind,t?[" ",t]:"",l(r.slice(1).map((e=>[",",o&&!s?a:i,e])))],s&&n.body!==d||m.push(f),u(m)}case"WithStatement":return u(["with (",c("object"),")",z(d.body,c("body"))]);case"IfStatement":{let n=z(d.consequent,c("consequent")),s=u(["if (",u([l([o,c("test")]),o]),")",n]);if(m.push(s),d.alternate){let n=D(d.consequent,x.Trailing|x.Line)||A(d),s="BlockStatement"===d.consequent.type&&!n;m.push(s?" ":a),D(d,x.Dangling)&&m.push(r(e,t,!0),n?a:" "),m.push("else",u(z(d.alternate,c("alternate"),"IfStatement"===d.alternate.type)))}return m}case"ForStatement":{let n=z(d.body,c("body")),s=r(e,t,!0),a=s?[s,o]:"";return d.init||d.test||d.update?[a,u(["for (",u([l([o,c("init"),";",i,c("test"),";",i,c("update")]),o]),")",n])]:[a,u(["for (;;)",n])]}case"WhileStatement":return u(["while (",u([l([o,c("test")]),o]),")",z(d.body,c("body"))]);case"ForInStatement":return u(["for (",c("left")," in ",c("right"),")",z(d.body,c("body"))]);case"ForOfStatement":return u(["for",d.await?" await":""," (",c("left")," of ",c("right"),")",z(d.body,c("body"))]);case"DoWhileStatement":{let e=z(d.body,c("body"));return m=[u(["do",e])],"BlockStatement"===d.body.type?m.push(" "):m.push(a),m.push("while (",u([l([o,c("test")]),o]),")",f),m}case"DoExpression":return[d.async?"async ":"","do ",c("body")];case"BreakStatement":return m.push("break"),d.label&&m.push(" ",c("label")),m.push(f),m;case"ContinueStatement":return m.push("continue"),d.label&&m.push(" ",c("label")),m.push(f),m;case"LabeledStatement":return"EmptyStatement"===d.body.type?[c("label"),":;"]:[c("label"),": ",c("body")];case"TryStatement":return["try ",c("block"),d.handler?[" ",c("handler")]:"",d.finalizer?[" finally ",c("finalizer")]:""];case"CatchClause":if(d.param){let e=D(d.param,(e=>!N(e)||e.leading&&n(t.originalText,k(e))||e.trailing&&n(t.originalText,P(e),{backwards:!0}))),r=c("param");return["catch ",e?["(",l([o,r]),o,") "]:["(",r,") "],c("body")]}return["catch ",c("body")];case"SwitchStatement":return[u(["switch (",l([o,c("discriminant")]),o,")"])," {",d.cases.length>0?l([a,s(a,e.map(((e,r,n)=>{let s=e.getValue();return[c(),r!==n.length-1&&C(s,t)?a:""]}),"cases"))]):"",a,"}"];case"SwitchCase":{d.test?m.push("case ",c("test"),":"):m.push("default:"),D(d,x.Dangling)&&m.push(" ",r(e,t,!0));let n=d.consequent.filter((e=>"EmptyStatement"!==e.type));if(n.length>0){let r=me(e,t,c);m.push(1===n.length&&"BlockStatement"===n[0].type?[" ",r]:l([a,r]))}return m}case"DebuggerStatement":return["debugger",f];case"ClassDeclaration":case"ClassExpression":return te(e,t,c);case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":return re(e,t,c);case"ClassProperty":case"PropertyDefinition":case"ClassPrivateProperty":case"ClassAccessorProperty":case"AccessorProperty":return ne(e,t,c);case"TemplateElement":return p(d.value.raw);case"TemplateLiteral":return Y(e,c,t);case"TaggedTemplateExpression":return[c("tag"),c("typeParameters"),c("quasi")];case"PrivateIdentifier":return["#",c("name")];case"PrivateName":return["#",c("id")];case"InterpreterDirective":return m.push("#!",d.value,a),C(d,t)&&m.push(a),m;case"TopicReference":return"%";case"ArgumentPlaceholder":return"?";case"ModuleExpression":{m.push("module {");let e=c("body");return e&&m.push(l([a,e]),a),m.push("}"),m}default:throw new Error("unknown type: "+JSON.stringify(d.type))}}(e,t,c,h);if(!d)return"";let f=e.getValue(),{type:y}=f;if("ClassMethod"===y||"ClassPrivateMethod"===y||"ClassProperty"===y||"ClassAccessorProperty"===y||"AccessorProperty"===y||"TSAbstractAccessorProperty"===y||"PropertyDefinition"===y||"TSAbstractPropertyDefinition"===y||"ClassPrivateProperty"===y||"MethodDefinition"===y||"TSAbstractMethodDefinition"===y||"TSDeclareMethod"===y)return d;let b=[d],v=be(e,t,c),S="ClassExpression"===f.type&&v;if(v&&(b=[...v,d],!S))return u(b);if(!m(e,t))return h&&h.needsSemi&&b.unshift(";"),1===b.length&&b[0]===d?d:b;if(S&&(b=[l([i,...b])]),b.unshift("("),h&&h.needsSemi&&b.unshift(";"),g(f)){let[e]=f.trailingComments;b.push(" /*",e.value.trimStart(),"*/"),e.printed=!0}return S&&b.push(i),b.push(")"),b},embed:c,insertPragma:d,massageAstNode:h,hasPrettierIgnore:e=>S(e)||L(e),willPrintOwnComments:f.willPrintOwnComments,canAttachComment:function(e){return e.type&&!N(e)&&!b(e)&&"EmptyStatement"!==e.type&&"TemplateElement"!==e.type&&"Import"!==e.type&&"TSEmptyBodyFunctionExpression"!==e.type},printComment:xe,isBlockComment:N,handleComments:{avoidAstMutation:!0,ownLine:f.handleOwnLineComment,endOfLine:f.handleEndOfLineComment,remaining:f.handleRemainingComment},getCommentChildNodes:f.getCommentChildNodes}}}),xn=x({"src/language-js/printer-estree-json.js"(e,t){v();var{builders:{hardline:r,indent:n,join:s}}=W(),i=Ur();function a(e){return"key"===e.getName()&&"ObjectProperty"===e.getParentNode().type}var o=new Set(["start","end","extra","loc","comments","leadingComments","trailingComments","innerComments","errors","range","tokens"]);function u(e,t){let{type:r}=e;if("ObjectProperty"!==r){if("UnaryExpression"===r&&"+"===e.operator)return t.argument;if("ArrayExpression"!==r)return"TemplateLiteral"===r?{type:"StringLiteral",value:e.quasis[0].value.cooked}:void 0;for(let[r,n]of e.elements.entries())null===n&&t.elements.splice(r,0,{type:"NullLiteral"})}else{let{key:r}=e;"Identifier"===r.type?t.key={type:"StringLiteral",value:r.name}:"NumericLiteral"===r.type&&(t.key={type:"StringLiteral",value:String(r.value)})}}u.ignoredProperties=o,t.exports={preprocess:i,print:function(e,t,i){let o=e.getValue();switch(o.type){case"JsonRoot":return[i("node"),r];case"ArrayExpression":{if(0===o.elements.length)return"[]";let t=e.map((()=>null===e.getValue()?"null":i()),"elements");return["[",n([r,s([",",r],t)]),r,"]"]}case"ObjectExpression":return 0===o.properties.length?"{}":["{",n([r,s([",",r],e.map(i,"properties"))]),r,"}"];case"ObjectProperty":return[i("key"),": ",i("value")];case"UnaryExpression":return["+"===o.operator?"":o.operator,i("argument")];case"NullLiteral":return"null";case"BooleanLiteral":return o.value?"true":"false";case"StringLiteral":return JSON.stringify(o.value);case"NumericLiteral":return a(e)?JSON.stringify(String(o.value)):JSON.stringify(o.value);case"Identifier":return a(e)?JSON.stringify(o.name):o.name;case"TemplateLiteral":return i(["quasis",0]);case"TemplateElement":return JSON.stringify(o.value.cooked);default:throw new Error("unknown type: "+JSON.stringify(o.type))}},massageAstNode:u}}}),En=x({"src/common/common-options.js"(e,t){v();var r="Common";t.exports={bracketSpacing:{since:"0.0.0",category:r,type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{since:"0.0.0",category:r,type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{since:"1.8.2",category:r,type:"choice",default:[{since:"1.8.2",value:!0},{since:"1.9.0",value:"preserve"}],description:"How to wrap prose.",choices:[{since:"1.9.0",value:"always",description:"Wrap prose if it exceeds the print width."},{since:"1.9.0",value:"never",description:"Do not wrap prose."},{since:"1.9.0",value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{since:"2.4.0",category:r,type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{since:"2.6.0",category:r,type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}}}}),bn=x({"src/language-js/options.js"(e,t){v();var r=En(),n="JavaScript";t.exports={arrowParens:{since:"1.9.0",category:n,type:"choice",default:[{since:"1.9.0",value:"avoid"},{since:"2.0.0",value:"always"}],description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"always",description:"Always include parens. Example: `(x) => x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSameLine:r.bracketSameLine,bracketSpacing:r.bracketSpacing,jsxBracketSameLine:{since:"0.17.0",category:n,type:"boolean",description:"Put > on the last line instead of at a new line.",deprecated:"2.4.0"},semi:{since:"1.0.0",category:n,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},singleQuote:r.singleQuote,jsxSingleQuote:{since:"1.15.0",category:n,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{since:"1.17.0",category:n,type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{since:"0.0.0",category:n,type:"choice",default:[{since:"0.0.0",value:!1},{since:"0.19.0",value:"none"},{since:"2.0.0",value:"es5"}],description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."},{value:"all",description:"Trailing commas wherever possible (including function arguments)."}]},singleAttributePerLine:r.singleAttributePerLine}}}),Cn=x({"src/language-js/parse/parsers.js"(){v()}}),vn=x({"node_modules/linguist-languages/data/JavaScript.json"(e,t){t.exports={name:"JavaScript",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:["js","node"],extensions:[".js","._js",".bones",".cjs",".es",".es6",".frag",".gs",".jake",".javascript",".jsb",".jscad",".jsfl",".jslib",".jsm",".jspre",".jss",".jsx",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib"],filenames:["Jakefile"],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],languageId:183}}}),An=x({"node_modules/linguist-languages/data/TypeScript.json"(e,t){t.exports={name:"TypeScript",type:"programming",color:"#3178c6",aliases:["ts"],interpreters:["deno","ts-node"],extensions:[".ts",".cts",".mts"],tmScope:"source.ts",aceMode:"typescript",codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",languageId:378}}}),Sn=x({"node_modules/linguist-languages/data/TSX.json"(e,t){t.exports={name:"TSX",type:"programming",color:"#3178c6",group:"TypeScript",extensions:[".tsx"],tmScope:"source.tsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",languageId:94901924}}}),Tn=x({"node_modules/linguist-languages/data/JSON.json"(e,t){t.exports={name:"JSON",type:"data",color:"#292929",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",aliases:["geojson","jsonl","topojson"],extensions:[".json",".4DForm",".4DProject",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".jsonl",".mcmeta",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],filenames:[".arcconfig",".auto-changelog",".c8rc",".htmlhintrc",".imgbotconfig",".nycrc",".tern-config",".tern-project",".watchmanconfig","Pipfile.lock","composer.lock","mcmod.info"],languageId:174}}}),wn=x({"node_modules/linguist-languages/data/JSON with Comments.json"(e,t){t.exports={name:"JSON with Comments",type:"data",color:"#292929",group:"JSON",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",aliases:["jsonc"],extensions:[".jsonc",".code-snippets",".sublime-build",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],filenames:[".babelrc",".devcontainer.json",".eslintrc.json",".jscsrc",".jshintrc",".jslintrc","api-extractor.json","devcontainer.json","jsconfig.json","language-configuration.json","tsconfig.json","tslint.json"],languageId:423}}}),Fn=x({"node_modules/linguist-languages/data/JSON5.json"(e,t){t.exports={name:"JSON5",type:"data",color:"#267CB9",extensions:[".json5"],tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"application/json",languageId:175}}}),Pn=x({"src/language-js/index.js"(e,t){v();var r=Yt(),n=Dn(),s=xn(),i=bn(),a=Cn(),o=[r(vn(),(e=>({since:"0.0.0",parsers:["babel","acorn","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"],interpreters:[...e.interpreters,"zx"],extensions:[...e.extensions.filter((e=>".jsx"!==e)),".wxs"]}))),r(vn(),(()=>({name:"Flow",since:"0.0.0",parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"],aliases:[],filenames:[],extensions:[".js.flow"]}))),r(vn(),(()=>({name:"JSX",since:"0.0.0",parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"],aliases:void 0,filenames:void 0,extensions:[".jsx"],group:"JavaScript",interpreters:void 0,tmScope:"source.js.jsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",color:void 0}))),r(An(),(()=>({since:"1.4.0",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"]}))),r(Sn(),(()=>({since:"1.4.0",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"]}))),r(Tn(),(()=>({name:"JSON.stringify",since:"1.13.0",parsers:["json-stringify"],vscodeLanguageIds:["json"],extensions:[".importmap"],filenames:["package.json","package-lock.json","composer.json"]}))),r(Tn(),(e=>({since:"1.5.0",parsers:["json"],vscodeLanguageIds:["json"],extensions:e.extensions.filter((e=>".jsonl"!==e))}))),r(wn(),(e=>({since:"1.5.0",parsers:["json"],vscodeLanguageIds:["jsonc"],filenames:[...e.filenames,".eslintrc",".swcrc"]}))),r(Fn(),(()=>({since:"1.13.0",parsers:["json5"],vscodeLanguageIds:["json5"]})))],u={estree:n,"estree-json":s};t.exports={languages:o,options:i,printers:u,parsers:a}}}),kn=x({"src/language-css/clean.js"(e,t){v();var{isFrontMatterNode:r}=de(),n=P(),s=new Set(["raw","raws","sourceIndex","source","before","after","trailingComma"]);function i(e,t,s){if(r(e)&&"yaml"===e.lang&&delete t.value,"css-comment"===e.type&&"css-root"===s.type&&s.nodes.length>0&&((s.nodes[0]===e||r(s.nodes[0])&&s.nodes[1]===e)&&(delete t.text,/^\*\s*@(?:format|prettier)\s*$/.test(e.text))||"css-root"===s.type&&n(s.nodes)===e))return null;if("value-root"===e.type&&delete t.text,("media-query"===e.type||"media-query-list"===e.type||"media-feature-expression"===e.type)&&delete t.value,"css-rule"===e.type&&delete t.params,"selector-combinator"===e.type&&(t.value=t.value.replace(/\s+/g," ")),"media-feature"===e.type&&(t.value=t.value.replace(/ /g,"")),("value-word"===e.type&&(e.isColor&&e.isHex||["initial","inherit","unset","revert"].includes(t.value.replace().toLowerCase()))||"media-feature"===e.type||"selector-root-invalid"===e.type||"selector-pseudo"===e.type)&&(t.value=t.value.toLowerCase()),"css-decl"===e.type&&(t.prop=t.prop.toLowerCase()),("css-atrule"===e.type||"css-import"===e.type)&&(t.name=t.name.toLowerCase()),"value-number"===e.type&&(t.unit=t.unit.toLowerCase()),("media-feature"===e.type||"media-keyword"===e.type||"media-type"===e.type||"media-unknown"===e.type||"media-url"===e.type||"media-value"===e.type||"selector-attribute"===e.type||"selector-string"===e.type||"selector-class"===e.type||"selector-combinator"===e.type||"value-string"===e.type)&&t.value&&(t.value=function(e){return e.replace(/'/g,'"').replace(/\\([^\dA-Fa-f])/g,"$1")}(t.value)),"selector-attribute"===e.type&&(t.attribute=t.attribute.trim(),t.namespace&&"string"==typeof t.namespace&&(t.namespace=t.namespace.trim(),0===t.namespace.length&&(t.namespace=!0)),t.value&&(t.value=t.value.trim().replace(/^["']|["']$/g,""),delete t.quoted)),("media-value"===e.type||"media-type"===e.type||"value-number"===e.type||"selector-root-invalid"===e.type||"selector-class"===e.type||"selector-combinator"===e.type||"selector-tag"===e.type)&&t.value&&(t.value=t.value.replace(/([\d+.Ee-]+)([A-Za-z]*)/g,((e,t,r)=>{let n=Number(t);return Number.isNaN(n)?e:n+r.toLowerCase()}))),"selector-tag"===e.type){let r=e.value.toLowerCase();["from","to"].includes(r)&&(t.value=r)}if("css-atrule"===e.type&&"supports"===e.name.toLowerCase()&&delete t.value,"selector-unknown"===e.type&&delete t.value,"value-comma_group"===e.type){let r=e.groups.findIndex((e=>"value-number"===e.type&&"..."===e.unit));-1!==r&&(t.groups[r].unit="",t.groups.splice(r+1,0,{type:"value-word",value:"...",isColor:!1,isHex:!1}))}return"value-comma_group"===e.type&&e.groups.some((e=>"value-atword"===e.type&&e.value.endsWith("[")||"value-word"===e.type&&e.value.startsWith("]")))?{type:"value-atword",value:e.groups.map((e=>e.value)).join(""),group:{open:null,close:null,groups:[],type:"value-paren_group"}}:void 0}i.ignoredProperties=s,t.exports=i}}),Nn=x({"src/utils/front-matter/print.js"(e,t){v();var{builders:{hardline:r,markAsRoot:n}}=W();t.exports=function(e,t){if("yaml"===e.lang){let s=e.value.trim(),i=s?t(s,{parser:"yaml"},{stripTrailingHardline:!0}):"";return n([e.startDelimiter,r,i,i?r:"",e.endDelimiter])}}}}),In=x({"src/language-css/embed.js"(e,t){v();var{builders:{hardline:r}}=W(),n=Nn();t.exports=function(e,t,s){let i=e.getValue();if("front-matter"===i.type){let e=n(i,s);return e?[e,r]:""}}}}),Bn=x({"src/utils/front-matter/parse.js"(e,t){v();var r=new RegExp("^(?<startDelimiter>-{3}|\\+{3})(?<language>[^\\n]*)\\n(?:|(?<value>.*?)\\n)(?<endDelimiter>\\k<startDelimiter>|\\.{3})[^\\S\\n]*(?:\\n|$)","s");t.exports=function(e){let t=e.match(r);if(!t)return{content:e};let{startDelimiter:n,language:s,value:i="",endDelimiter:a}=t.groups,o=s.trim()||"yaml";if("+++"===n&&(o="toml"),"yaml"!==o&&n!==a)return{content:e};let[u]=t;return{frontMatter:{type:"front-matter",lang:o,value:i,startDelimiter:n,endDelimiter:a,raw:u.replace(/\n$/,"")},content:u.replace(/[^\n]/g," ")+e.slice(u.length)}}}}),_n=x({"src/language-css/pragma.js"(e,t){v();var r=jr(),n=Bn();t.exports={hasPragma:function(e){return r.hasPragma(n(e).content)},insertPragma:function(e){let{frontMatter:t,content:s}=n(e);return(t?t.raw+"\n\n":"")+r.insertPragma(s)}}}}),On=x({"src/language-css/utils/index.js"(e,t){v();var r=new Set(["red","green","blue","alpha","a","rgb","hue","h","saturation","s","lightness","l","whiteness","w","blackness","b","tint","shade","blend","blenda","contrast","hsl","hsla","hwb","hwba"]);function n(e,t){let r,n=Array.isArray(t)?t:[t],s=-1;for(;r=e.getParentNode(++s);)if(n.includes(r.type))return s;return-1}function s(e,t){let r=n(e,t);return-1===r?null:e.getParentNode(r)}var i=new Set(["initial","inherit","unset","revert"]);function a(e){return"value-operator"===e.type&&"*"===e.value}function o(e){return"value-operator"===e.type&&"/"===e.value}function u(e){return"value-operator"===e.type&&"+"===e.value}function l(e){return"value-operator"===e.type&&"-"===e.value}function p(e){return"value-operator"===e.type&&"%"===e.value}function c(e){var t,r;return"value-comma_group"===e.type&&"value-colon"===(null===(t=e.groups)||void 0===t||null===(r=t[1])||void 0===r?void 0:r.type)}function h(e){var t;return"value-paren_group"===e.type&&(null===(t=e.groups)||void 0===t?void 0:t[0])&&c(e.groups[0])}function d(e){return"value-colon"===(null==e?void 0:e.type)}t.exports={getAncestorCounter:n,getAncestorNode:s,getPropOfDeclNode:function(e){var t;let r=s(e,"css-decl");return null==r||null===(t=r.prop)||void 0===t?void 0:t.toLowerCase()},maybeToLowerCase:function(e){return e.includes("$")||e.includes("@")||e.includes("#")||e.startsWith("%")||e.startsWith("--")||e.startsWith(":--")||e.includes("(")&&e.includes(")")?e:e.toLowerCase()},insideValueFunctionNode:function(e,t){var r;let n=s(e,"value-func");return(null==n||null===(r=n.value)||void 0===r?void 0:r.toLowerCase())===t},insideICSSRuleNode:function(e){var t;let r=s(e,"css-rule"),n=null==r||null===(t=r.raws)||void 0===t?void 0:t.selector;return n&&(n.startsWith(":import")||n.startsWith(":export"))},insideAtRuleNode:function(e,t){let r=Array.isArray(t)?t:[t],n=s(e,"css-atrule");return n&&r.includes(n.name.toLowerCase())},insideURLFunctionInImportAtRuleNode:function(e){let t=e.getValue(),r=s(e,"css-atrule");return"import"===(null==r?void 0:r.name)&&"url"===t.groups[0].value&&2===t.groups.length},isKeyframeAtRuleKeywords:function(e,t){let r=s(e,"css-atrule");return(null==r?void 0:r.name)&&r.name.toLowerCase().endsWith("keyframes")&&["from","to"].includes(t.toLowerCase())},isWideKeywords:function(e){return i.has(e.toLowerCase())},isLastNode:function(e,t){var r;let n=null===(r=e.getParentNode())||void 0===r?void 0:r.nodes;return n&&n.indexOf(t)===n.length-1},isSCSSControlDirectiveNode:function(e){return"css-atrule"===e.type&&["if","else","for","each","while"].includes(e.name)},isDetachedRulesetDeclarationNode:function(e){let{selector:t}=e;return!!t&&("string"==typeof t&&/^@.+:.*$/.test(t)||t.value&&/^@.+:.*$/.test(t.value))},isRelationalOperatorNode:function(e){return"value-word"===e.type&&["<",">","<=",">="].includes(e.value)},isEqualityOperatorNode:function(e){return"value-word"===e.type&&["==","!="].includes(e.value)},isMultiplicationNode:a,isDivisionNode:o,isAdditionNode:u,isSubtractionNode:l,isModuloNode:p,isMathOperatorNode:function(e){return a(e)||o(e)||u(e)||l(e)||p(e)},isEachKeywordNode:function(e){return"value-word"===e.type&&"in"===e.value},isForKeywordNode:function(e){return"value-word"===e.type&&["from","through","end"].includes(e.value)},isURLFunctionNode:function(e){return"value-func"===e.type&&"url"===e.value.toLowerCase()},isIfElseKeywordNode:function(e){return"value-word"===e.type&&["and","or","not"].includes(e.value)},hasComposesNode:function(e){var t,r;return"value-root"===(null===(t=e.value)||void 0===t?void 0:t.type)&&"value-value"===(null===(r=e.value.group)||void 0===r?void 0:r.type)&&"composes"===e.prop.toLowerCase()},hasParensAroundNode:function(e){var t,r,n;return"value-paren_group"===(null===(t=e.value)||void 0===t||null===(r=t.group)||void 0===r||null===(n=r.group)||void 0===n?void 0:n.type)&&null!==e.value.group.group.open&&null!==e.value.group.group.close},hasEmptyRawBefore:function(e){var t;return""===(null===(t=e.raws)||void 0===t?void 0:t.before)},isDetachedRulesetCallNode:function(e){var t;return(null===(t=e.raws)||void 0===t?void 0:t.params)&&/^\(\s*\)$/.test(e.raws.params)},isTemplatePlaceholderNode:function(e){return e.name.startsWith("prettier-placeholder")},isTemplatePropNode:function(e){return e.prop.startsWith("@prettier-placeholder")},isPostcssSimpleVarNode:function(e,t){return"$$"===e.value&&"value-func"===e.type&&"value-word"===(null==t?void 0:t.type)&&!t.raws.before},isKeyValuePairNode:c,isKeyValuePairInParenGroupNode:h,isKeyInValuePairNode:function(e,t){if(!c(t))return!1;let{groups:r}=t,n=r.indexOf(e);return-1!==n&&d(r[n+1])},isSCSSMapItemNode:function(e){var t;let r=e.getValue();if(0===r.groups.length)return!1;let n=e.getParentNode(1);if(!(h(r)||n&&h(n)))return!1;let i=s(e,"css-decl");return!!(null!=i&&null!==(t=i.prop)&&void 0!==t&&t.startsWith("$")||h(n)||"value-func"===n.type)},isInlineValueCommentNode:function(e){return"value-comment"===e.type&&e.inline},isHashNode:function(e){return"value-word"===e.type&&"#"===e.value},isLeftCurlyBraceNode:function(e){return"value-word"===e.type&&"{"===e.value},isRightCurlyBraceNode:function(e){return"value-word"===e.type&&"}"===e.value},isWordNode:function(e){return["value-word","value-atword"].includes(e.type)},isColonNode:d,isMediaAndSupportsKeywords:function(e){return e.value&&["not","and","or"].includes(e.value.toLowerCase())},isColorAdjusterFuncNode:function(e){return"value-func"===e.type&&r.has(e.value.toLowerCase())},lastLineHasInlineComment:function(e){return/\/\//.test(e.split(/[\n\r]/).pop())},isAtWordPlaceholderNode:function(e){return"value-atword"===(null==e?void 0:e.type)&&e.value.startsWith("prettier-placeholder-")},isConfigurationNode:function(e,t){var r,n;if("("!==(null===(r=e.open)||void 0===r?void 0:r.value)||")"!==(null===(n=e.close)||void 0===n?void 0:n.value)||e.groups.some((e=>"value-comma_group"!==e.type)))return!1;if("value-comma_group"===t.type){let r=t.groups.indexOf(e)-1,n=t.groups[r];if("value-word"===(null==n?void 0:n.type)&&"with"===n.value)return!0}return!1},isParenGroupNode:function(e){var t,r;return"value-paren_group"===e.type&&"("===(null===(t=e.open)||void 0===t?void 0:t.value)&&")"===(null===(r=e.close)||void 0===r?void 0:r.value)}}}}),Ln=x({"src/utils/line-column-to-index.js"(e,t){v(),t.exports=function(e,t){let r=0;for(let n=0;n<e.line-1;++n)r=t.indexOf("\n",r)+1;return r+e.column}}}),jn=x({"src/language-css/loc.js"(e,t){v();var{skipEverythingButNewLine:r}=ue(),n=P(),s=Ln();function i(e,t){return"number"==typeof e.sourceIndex?e.sourceIndex:e.source?s(e.source.start,t)-1:null}function a(e,t){if("css-comment"===e.type&&e.inline)return r(t,e.source.startOffset);let i=e.nodes&&n(e.nodes);return i&&e.source&&!e.source.end&&(e=i),e.source&&e.source.end?s(e.source.end,t):null}function o(e,t,r){e.source&&(e.source.startOffset=i(e,r)+t,e.source.endOffset=a(e,r)+t);for(let n in e){let s=e[n];"source"===n||!s||"object"!=typeof s||o(s,t,r)}}function u(e){let t=e.source.startOffset;return"string"==typeof e.prop&&(t+=e.prop.length),"css-atrule"===e.type&&"string"==typeof e.name&&(t+=1+e.name.length+e.raws.afterName.match(/^\s*:?\s*/)[0].length),"css-atrule"!==e.type&&e.raws&&"string"==typeof e.raws.between&&(t+=e.raws.between.length),t}t.exports={locStart:function(e){return e.source.startOffset},locEnd:function(e){return e.source.endOffset},calculateLoc:function e(t,r){t.source&&(t.source.startOffset=i(t,r),t.source.endOffset=a(t,r));for(let n in t){let s=t[n];"source"===n||!s||"object"!=typeof s||("value-root"===s.type||"value-unknown"===s.type?o(s,u(t),s.text||s.value):e(s,r))}},replaceQuotesInInlineComments:function(e){let t,r="initial",n="initial",s=!1,i=[];for(let a=0;a<e.length;a++){let o=e[a];switch(r){case"initial":if("'"===o){r="single-quotes";continue}if('"'===o){r="double-quotes";continue}if(("u"===o||"U"===o)&&"url("===e.slice(a,a+4).toLowerCase()){r="url",a+=3;continue}if("*"===o&&"/"===e[a-1]){r="comment-block";continue}if("/"===o&&"/"===e[a-1]){r="comment-inline",t=a-1;continue}continue;case"single-quotes":if("'"===o&&"\\"!==e[a-1]&&(r=n,n="initial"),"\n"===o||"\r"===o)return e;continue;case"double-quotes":if('"'===o&&"\\"!==e[a-1]&&(r=n,n="initial"),"\n"===o||"\r"===o)return e;continue;case"url":if(")"===o&&(r="initial"),"\n"===o||"\r"===o)return e;if("'"===o){r="single-quotes",n="url";continue}if('"'===o){r="double-quotes",n="url";continue}continue;case"comment-block":"/"===o&&"*"===e[a-1]&&(r="initial");continue;case"comment-inline":('"'===o||"'"===o||"*"===o)&&(s=!0),("\n"===o||"\r"===o)&&(s&&i.push([t,a]),r="initial",s=!1);continue}}for(let[t,r]of i)e=e.slice(0,t)+e.slice(t,r).replace(/["'*]/g," ")+e.slice(r);return e}}}}),Mn=x({"src/language-css/utils/is-less-parser.js"(e,t){v(),t.exports=function(e){return"css"===e.parser||"less"===e.parser}}}),Rn=x({"src/language-css/utils/is-scss.js"(e,t){v(),t.exports=function(e,t){return"less"===e||"scss"===e?"scss"===e:/(?:\w\s*:\s*[^:}]+|#){|@import[^\n]+(?:url|,)/.test(t)}}}),$n=x({"src/language-css/utils/css-units.evaluate.js"(e,t){t.exports={em:"em",rem:"rem",ex:"ex",rex:"rex",cap:"cap",rcap:"rcap",ch:"ch",rch:"rch",ic:"ic",ric:"ric",lh:"lh",rlh:"rlh",vw:"vw",svw:"svw",lvw:"lvw",dvw:"dvw",vh:"vh",svh:"svh",lvh:"lvh",dvh:"dvh",vi:"vi",svi:"svi",lvi:"lvi",dvi:"dvi",vb:"vb",svb:"svb",lvb:"lvb",dvb:"dvb",vmin:"vmin",svmin:"svmin",lvmin:"lvmin",dvmin:"dvmin",vmax:"vmax",svmax:"svmax",lvmax:"lvmax",dvmax:"dvmax",cm:"cm",mm:"mm",q:"Q",in:"in",pt:"pt",pc:"pc",px:"px",deg:"deg",grad:"grad",rad:"rad",turn:"turn",s:"s",ms:"ms",hz:"Hz",khz:"kHz",dpi:"dpi",dpcm:"dpcm",dppx:"dppx",x:"x"}}}),Un=x({"src/language-css/utils/print-unit.js"(e,t){v();var r=$n();t.exports=function(e){let t=e.toLowerCase();return Object.prototype.hasOwnProperty.call(r,t)?r[t]:e}}}),zn=x({"src/language-css/printer-postcss.js"(e,t){v();var r=P(),{printNumber:n,printString:s,hasNewline:i,isFrontMatterNode:a,isNextLineEmpty:o,isNonEmptyArray:u}=de(),{builders:{join:l,line:p,hardline:c,softline:h,group:d,fill:f,indent:m,dedent:y,ifBreak:g,breakParent:D},utils:{removeLines:x,getDocParts:E}}=W(),b=kn(),C=In(),{insertPragma:A}=_n(),{getAncestorNode:S,getPropOfDeclNode:T,maybeToLowerCase:w,insideValueFunctionNode:F,insideICSSRuleNode:k,insideAtRuleNode:N,insideURLFunctionInImportAtRuleNode:I,isKeyframeAtRuleKeywords:B,isWideKeywords:_,isLastNode:O,isSCSSControlDirectiveNode:L,isDetachedRulesetDeclarationNode:j,isRelationalOperatorNode:M,isEqualityOperatorNode:R,isMultiplicationNode:$,isDivisionNode:U,isAdditionNode:z,isSubtractionNode:V,isMathOperatorNode:q,isEachKeywordNode:H,isForKeywordNode:J,isURLFunctionNode:G,isIfElseKeywordNode:X,hasComposesNode:K,hasParensAroundNode:Z,hasEmptyRawBefore:Y,isKeyValuePairNode:Q,isKeyInValuePairNode:ee,isDetachedRulesetCallNode:te,isTemplatePlaceholderNode:re,isTemplatePropNode:ne,isPostcssSimpleVarNode:se,isSCSSMapItemNode:ie,isInlineValueCommentNode:ae,isHashNode:oe,isLeftCurlyBraceNode:ue,isRightCurlyBraceNode:le,isWordNode:pe,isColonNode:ce,isMediaAndSupportsKeywords:he,isColorAdjusterFuncNode:fe,lastLineHasInlineComment:me,isAtWordPlaceholderNode:ye,isConfigurationNode:ge,isParenGroupNode:De}=On(),{locStart:xe,locEnd:Ee}=jn(),be=Mn(),Ce=Rn(),ve=Un();function Ae(e){return"es5"===e.trailingComma||"all"===e.trailingComma}function Se(e,t,r){let n=[];return e.each(((e,s,u)=>{let l=u[s-1];if(l&&"css-comment"===l.type&&"prettier-ignore"===l.text.trim()){let r=e.getValue();n.push(t.originalText.slice(xe(r),Ee(r)))}else n.push(r());s!==u.length-1&&("css-comment"===u[s+1].type&&!i(t.originalText,xe(u[s+1]),{backwards:!0})&&!a(u[s])||"css-atrule"===u[s+1].type&&"else"===u[s+1].name&&"css-comment"!==u[s].type?n.push(" "):(n.push(t.__isHTMLStyleAttribute?p:c),o(t.originalText,e.getValue(),Ee)&&!a(u[s])&&n.push(c)))}),"nodes"),n}var Te=/(["'])(?:(?!\1)[^\\]|\\.)*\1/gs,we=new RegExp(Te.source+`|(${/[$@]?[A-Z_a-z\u0080-\uFFFF][\w\u0080-\uFFFF-]*/g.source})?(${/(?:\d*\.\d+|\d+\.?)(?:[Ee][+-]?\d+)?/g.source})(${/[A-Za-z]+/g.source})?`,"g");function Fe(e,t){return e.replace(Te,(e=>s(e,t)))}function Pe(e,t){let r=t.singleQuote?"'":'"';return e.includes('"')||e.includes("'")?e:r+e+r}function ke(e){return e.replace(we,((e,t,r,n,s)=>!r&&n?Ne(n)+w(s||""):e))}function Ne(e){return n(e).replace(/\.0(?=$|e)/,"")}t.exports={print:function(e,t,n){let i=e.getValue();if(!i)return"";if("string"==typeof i)return i;switch(i.type){case"front-matter":return[i.raw,c];case"css-root":{let r=Se(e,t,n),s=i.raws.after.trim();return s.startsWith(";")&&(s=s.slice(1).trim()),[r,s?` ${s}`:"",E(r).length>0?c:""]}case"css-comment":{let e=i.inline||i.raws.inline,r=t.originalText.slice(xe(i),Ee(i));return e?r.trimEnd():r}case"css-rule":return[n("selector"),i.important?" !important":"",i.nodes?[i.selector&&"selector-unknown"===i.selector.type&&me(i.selector.value)?p:" ","{",i.nodes.length>0?m([c,Se(e,t,n)]):"",c,"}",j(i)?";":""]:";"];case"css-decl":{let r=e.getParentNode(),{between:s}=i.raws,a=s.trim(),o=":"===a,u=K(i)?x(n("value")):n("value");return!o&&me(a)&&(u=m([c,y(u)])),[i.raws.before.replace(/[\s;]/g,""),"css-atrule"===r.type&&r.variable||k(e)?i.prop:w(i.prop),a.startsWith("//")?" ":"",a,i.extend?"":" ",be(t)&&i.extend&&i.selector?["extend(",n("selector"),")"]:"",u,i.raws.important?i.raws.important.replace(/\s*!\s*important/i," !important"):i.important?" !important":"",i.raws.scssDefault?i.raws.scssDefault.replace(/\s*!default/i," !default"):i.scssDefault?" !default":"",i.raws.scssGlobal?i.raws.scssGlobal.replace(/\s*!global/i," !global"):i.scssGlobal?" !global":"",i.nodes?[" {",m([h,Se(e,t,n)]),h,"}"]:ne(i)&&!r.raws.semicolon&&";"!==t.originalText[Ee(i)-1]?"":t.__isHTMLStyleAttribute&&O(e,i)?g(";"):";"]}case"css-atrule":{let r=e.getParentNode(),s=re(i)&&!r.raws.semicolon&&";"!==t.originalText[Ee(i)-1];if(be(t)){if(i.mixin)return[n("selector"),i.important?" !important":"",s?"":";"];if(i.function)return[i.name,n("params"),s?"":";"];if(i.variable)return["@",i.name,": ",i.value?n("value"):"",i.raws.between.trim()?i.raws.between.trim()+" ":"",i.nodes?["{",m([i.nodes.length>0?h:"",Se(e,t,n)]),h,"}"]:"",s?"":";"]}return["@",te(i)||i.name.endsWith(":")?i.name:w(i.name),i.params?[te(i)?"":re(i)?""===i.raws.afterName?"":i.name.endsWith(":")?" ":/^\s*\n\s*\n/.test(i.raws.afterName)?[c,c]:/^\s*\n/.test(i.raws.afterName)?c:" ":" ",n("params")]:"",i.selector?m([" ",n("selector")]):"",i.value?d([" ",n("value"),L(i)?Z(i)?" ":p:""]):"else"===i.name?" ":"",i.nodes?[L(i)?"":i.selector&&!i.selector.nodes&&"string"==typeof i.selector.value&&me(i.selector.value)||!i.selector&&"string"==typeof i.params&&me(i.params)?p:" ","{",m([i.nodes.length>0?h:"",Se(e,t,n)]),h,"}"]:s?"":";"]}case"media-query-list":{let t=[];return e.each((e=>{let r=e.getValue();"media-query"===r.type&&""===r.value||t.push(n())}),"nodes"),d(m(l(p,t)))}case"media-query":return[l(" ",e.map(n,"nodes")),O(e,i)?"":","];case"media-type":case"media-value":return ke(Fe(i.value,t));case"media-feature-expression":return i.nodes?["(",...e.map(n,"nodes"),")"]:i.value;case"media-feature":return w(Fe(i.value.replace(/ +/g," "),t));case"media-colon":case"value-comma":return[i.value," "];case"media-keyword":case"selector-string":return Fe(i.value,t);case"media-url":return Fe(i.value.replace(/^url\(\s+/gi,"url(").replace(/\s+\)$/g,")"),t);case"media-unknown":case"selector-comment":case"selector-nesting":case"value-paren":case"value-operator":case"value-unicode-range":case"value-unknown":return i.value;case"selector-root":return d([N(e,"custom-selector")?[S(e,"css-atrule").customSelector,p]:"",l([",",N(e,["extend","custom-selector","nest"])?p:c],e.map(n,"nodes"))]);case"selector-selector":return d(m(e.map(n,"nodes")));case"selector-tag":{let t=e.getParentNode(),r=t&&t.nodes.indexOf(i),n=r&&t.nodes[r-1];return[i.namespace?[!0===i.namespace?"":i.namespace.trim(),"|"]:"","selector-nesting"===n.type?i.value:ke(B(e,i.value)?i.value.toLowerCase():i.value)]}case"selector-id":return["#",i.value];case"selector-class":return[".",ke(Fe(i.value,t))];case"selector-attribute":var a;return["[",i.namespace?[!0===i.namespace?"":i.namespace.trim(),"|"]:"",i.attribute.trim(),null!==(a=i.operator)&&void 0!==a?a:"",i.value?Pe(Fe(i.value.trim(),t),t):"",i.insensitive?" i":"","]"];case"selector-combinator":if("+"===i.value||">"===i.value||"~"===i.value||">>>"===i.value){let t=e.getParentNode();return["selector-selector"===t.type&&t.nodes[0]===i?"":p,i.value,O(e,i)?"":" "]}return[i.value.trim().startsWith("(")?p:"",ke(Fe(i.value.trim(),t))||p];case"selector-universal":return[i.namespace?[!0===i.namespace?"":i.namespace.trim(),"|"]:"",i.value];case"selector-pseudo":return[w(i.value),u(i.nodes)?d(["(",m([h,l([",",p],e.map(n,"nodes"))]),h,")"]):""];case"selector-unknown":{let r=S(e,"css-rule");if(r&&r.isSCSSNesterProperty)return ke(Fe(w(i.value),t));let n=e.getParentNode();if(n.raws&&n.raws.selector){let e=xe(n),r=e+n.raws.selector.length;return t.originalText.slice(e,r).trim()}let s=e.getParentNode(1);if("value-paren_group"===n.type&&s&&"value-func"===s.type&&"selector"===s.value){let e=Ee(n.open)+1,r=xe(n.close),s=t.originalText.slice(e,r).trim();return me(s)?[D,s]:s}return i.value}case"value-value":case"value-root":return n("group");case"value-comment":return t.originalText.slice(xe(i),Ee(i));case"value-comma_group":{let r=e.getParentNode(),s=e.getParentNode(1),a=T(e),o=a&&"value-value"===r.type&&("grid"===a||a.startsWith("grid-template")),u=S(e,"css-atrule"),l=u&&L(u),g=i.groups.some((e=>ae(e))),x=e.map(n,"groups"),E=[],C=F(e,"url"),v=!1,A=!1;for(let n=0;n<i.groups.length;++n){var b;E.push(x[n]);let a=i.groups[n-1],d=i.groups[n],f=i.groups[n+1],m=i.groups[n+2];if(C){(f&&z(f)||z(d))&&E.push(" ");continue}if(N(e,"forward")&&"value-word"===d.type&&d.value&&void 0!==a&&"value-word"===a.type&&"as"===a.value&&"value-operator"===f.type&&"*"===f.value||!f||"value-word"===d.type&&d.value.endsWith("-")&&ye(f))continue;if("value-string"===d.type&&d.quoted){let e=d.value.lastIndexOf("#{"),t=d.value.lastIndexOf("}");-1!==e&&-1!==t?v=e>t:-1!==e?v=!0:-1!==t&&(v=!1)}if(v||ce(d)||ce(f)||"value-atword"===d.type&&(""===d.value||d.value.endsWith("["))||"value-word"===f.type&&f.value.startsWith("]")||"~"===d.value||d.value&&d.value.includes("\\")&&f&&"value-comment"!==f.type||a&&a.value&&a.value.indexOf("\\")===a.value.length-1&&"value-operator"===d.type&&"/"===d.value||"\\"===d.value||se(d,f)||oe(d)||ue(d)||le(f)||ue(f)&&Y(f)||le(d)&&Y(f)||"--"===d.value&&oe(f))continue;let g=q(d),D=q(f);if((g&&oe(f)||D&&le(d))&&Y(f)||!a&&U(d)||F(e,"calc")&&(z(d)||z(f)||V(d)||V(f))&&Y(f))continue;let S=(z(d)||V(d))&&0===n&&("value-number"===f.type||f.isHex)&&s&&fe(s)&&!Y(f),T=m&&"value-func"===m.type||m&&pe(m)||"value-func"===d.type||pe(d),w="value-func"===f.type||pe(f)||a&&"value-func"===a.type||a&&pe(a);if(($(f)||$(d)||F(e,"calc")||S||!(U(f)&&!T||U(d)&&!w||z(f)&&!T||z(d)&&!w||V(f)||V(d))||!(Y(f)||g&&(!a||a&&q(a))))&&("scss"!==t.parser&&"less"!==t.parser||!g||"-"!==d.value||!De(f)||Ee(d)!==xe(f.open)||"("!==f.open.value)){if(ae(d)){if("value-paren_group"===r.type){E.push(y(c));continue}E.push(c);continue}if(l&&(R(f)||M(f)||X(f)||H(d)||J(d))){E.push(" ");continue}if(u&&"namespace"===u.name.toLowerCase()){E.push(" ");continue}if(o){d.source&&f.source&&d.source.start.line!==f.source.start.line?(E.push(c),A=!0):E.push(" ");continue}if(D){E.push(" ");continue}if(!(f&&"..."===f.value||ye(d)&&ye(f)&&Ee(d)===xe(f))){if(ye(d)&&De(f)&&Ee(d)===xe(f.open)){E.push(h);continue}if("with"===d.value&&De(f)){E.push(" ");continue}null!==(b=d.value)&&void 0!==b&&b.endsWith("#")&&"{"===f.value&&De(f.group)||E.push(p)}}}return g&&E.push(D),A&&E.unshift(c),l?d(m(E)):I(e)?d(f(E)):d(m(f(E)))}case"value-paren_group":{let s=e.getParentNode();if(s&&G(s)&&(1===i.groups.length||i.groups.length>0&&"value-comma_group"===i.groups[0].type&&i.groups[0].groups.length>0&&"value-word"===i.groups[0].groups[0].type&&i.groups[0].groups[0].value.startsWith("data:")))return[i.open?n("open"):"",l(",",e.map(n,"groups")),i.close?n("close"):""];if(!i.open){let t=e.map(n,"groups"),r=[];for(let e=0;e<t.length;e++)0!==e&&r.push([",",p]),r.push(t[e]);return d(m(f(r)))}let a=ie(e),D=r(i.groups),x=D&&"value-comment"===D.type,b=ee(i,s),C=ge(i,s),v=C||a&&!b,A=C||b,S=d([i.open?n("open"):"",m([h,l([p],e.map(((e,s)=>{let a=e.getValue(),l=s===i.groups.length-1,p=[n(),l?"":","];if(Q(a)&&"value-comma_group"===a.type&&a.groups&&"value-paren_group"!==a.groups[0].type&&a.groups[2]&&"value-paren_group"===a.groups[2].type){let e=E(p[0].contents.contents);e[1]=d(e[1]),p=[d(y(p))]}if(!l&&"value-comma_group"===a.type&&u(a.groups)){let e=r(a.groups);!e.source&&e.close&&(e=e.close),e.source&&o(t.originalText,e,Ee)&&p.push(c)}return p}),"groups"))]),g(!x&&Ce(t.parser,t.originalText)&&a&&Ae(t)?",":""),h,i.close?n("close"):""],{shouldBreak:v});return A?y(S):S}case"value-func":return[i.value,N(e,"supports")&&he(i)?" ":"",n("group")];case"value-number":return[Ne(i.value),ve(i.unit)];case"value-word":return i.isColor&&i.isHex||_(i.value)?i.value.toLowerCase():i.value;case"value-colon":{let t=e.getParentNode(),n=t&&t.groups.indexOf(i),s=n&&t.groups[n-1];return[i.value,s&&"string"==typeof s.value&&"\\"===r(s.value)||F(e,"url")?"":p]}case"value-string":return s(i.raws.quote+i.value+i.raws.quote,t);case"value-atword":return["@",i.value];default:throw new Error(`Unknown postcss type ${JSON.stringify(i.type)}`)}},embed:C,insertPragma:A,massageAstNode:b}}}),Vn=x({"src/language-css/options.js"(e,t){v();var r=En();t.exports={singleQuote:r.singleQuote}}}),Wn=x({"src/language-css/parsers.js"(){v()}}),qn=x({"node_modules/linguist-languages/data/CSS.json"(e,t){t.exports={name:"CSS",type:"markup",tmScope:"source.css",aceMode:"css",codemirrorMode:"css",codemirrorMimeType:"text/css",color:"#563d7c",extensions:[".css"],languageId:50}}}),Hn=x({"node_modules/linguist-languages/data/PostCSS.json"(e,t){t.exports={name:"PostCSS",type:"markup",color:"#dc3a0c",tmScope:"source.postcss",group:"CSS",extensions:[".pcss",".postcss"],aceMode:"text",languageId:262764437}}}),Jn=x({"node_modules/linguist-languages/data/Less.json"(e,t){t.exports={name:"Less",type:"markup",color:"#1d365d",aliases:["less-css"],extensions:[".less"],tmScope:"source.css.less",aceMode:"less",codemirrorMode:"css",codemirrorMimeType:"text/css",languageId:198}}}),Gn=x({"node_modules/linguist-languages/data/SCSS.json"(e,t){t.exports={name:"SCSS",type:"markup",color:"#c6538c",tmScope:"source.css.scss",aceMode:"scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",extensions:[".scss"],languageId:329}}}),Xn=x({"src/language-css/index.js"(e,t){v();var r=Yt(),n=zn(),s=Vn(),i=Wn(),a=[r(qn(),(e=>({since:"1.4.0",parsers:["css"],vscodeLanguageIds:["css"],extensions:[...e.extensions,".wxss"]}))),r(Hn(),(()=>({since:"1.4.0",parsers:["css"],vscodeLanguageIds:["postcss"]}))),r(Jn(),(()=>({since:"1.4.0",parsers:["less"],vscodeLanguageIds:["less"]}))),r(Gn(),(()=>({since:"1.4.0",parsers:["scss"],vscodeLanguageIds:["scss"]})))],o={postcss:n};t.exports={languages:a,options:s,printers:o,parsers:i}}}),Kn=x({"src/language-handlebars/loc.js"(e,t){v(),t.exports={locStart:function(e){return e.loc.start.offset},locEnd:function(e){return e.loc.end.offset}}}}),Zn=x({"src/language-handlebars/clean.js"(e,t){function r(e,t){if("TextNode"===e.type){let r=e.chars.trim();if(!r)return null;t.chars=r.replace(/[\t\n\f\r ]+/g," ")}"AttrNode"===e.type&&"class"===e.name.toLowerCase()&&delete t.value}v(),r.ignoredProperties=new Set(["loc","selfClosing"]),t.exports=r}}),Yn=x({"src/language-handlebars/html-void-elements.evaluate.js"(e,t){t.exports=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]}}),Qn=x({"src/language-handlebars/utils.js"(e,t){v();var r=P(),n=Yn();function s(e){return e.toUpperCase()===e}var i=new Set(n);function a(e){return o(e,["TextNode"])&&!/\S/.test(e.chars)}function o(e,t){return e&&t.includes(e.type)}function u(e,t){return o(e.getParentNode(0),t)}function l(e,t){var r,n,s,i;let a=e.getValue(),o=null!==(r=e.getParentNode(0))&&void 0!==r?r:{},u=null!==(n=null!==(s=null!==(i=o.children)&&void 0!==i?i:o.body)&&void 0!==s?s:o.parts)&&void 0!==n?n:[],l=u.indexOf(a);return-1!==l&&u[l+t]}function p(e){return l(e,-(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1))}function c(e){return l(e,1)}function h(e){return o(e,["MustacheCommentStatement"])&&"string"==typeof e.value&&"prettier-ignore"===e.value.trim()}t.exports={getNextNode:c,getPreviousNode:p,hasPrettierIgnore:function(e){let t=e.getValue(),r=p(e,2);return h(t)||h(r)},isLastNodeOfSiblings:function(e){let t=e.getValue(),n=e.getParentNode(0);return!!(u(e,["ElementNode"])&&r(n.children)===t||u(e,["Block"])&&r(n.body)===t)},isNextNodeOfSomeType:function(e,t){return o(c(e),t)},isNodeOfSomeType:o,isParentOfSomeType:u,isPreviousNodeOfSomeType:function(e,t){return o(p(e),t)},isVoid:function(e){return!0===e.selfClosing||function(e){return i.has(e.toLowerCase())&&!s(e[0])}(e.tag)||function(e){return o(e,["ElementNode"])&&"string"==typeof e.tag&&!e.tag.startsWith(":")&&(s(e.tag[0])||e.tag.includes("."))}(e)&&e.children.every((e=>a(e)))},isWhitespaceNode:a}}}),es=x({"src/language-handlebars/printer-glimmer.js"(e,t){v();var{builders:{dedent:r,fill:n,group:s,hardline:i,ifBreak:a,indent:o,join:u,line:l,softline:p},utils:{getDocParts:c,replaceTextEndOfLine:h}}=W(),{getPreferredQuote:d,isNonEmptyArray:f}=de(),{locStart:m,locEnd:y}=Kn(),g=Zn(),{getNextNode:D,getPreviousNode:x,hasPrettierIgnore:E,isLastNodeOfSiblings:b,isNextNodeOfSomeType:C,isNodeOfSomeType:A,isParentOfSomeType:S,isPreviousNodeOfSomeType:T,isVoid:w,isWhitespaceNode:F}=Qn();function P(e,t){return m(e)-m(t)}function k(e,t,r){let n=e.getValue().children.every((e=>F(e)));return"ignore"===t.htmlWhitespaceSensitivity&&n?"":e.map(((e,n)=>{let s=r();return 0===n&&"ignore"===t.htmlWhitespaceSensitivity?[p,s]:s}),"children")}function N(e){return w(e)?a([p,"/>"],[" />",p]):a([p,">"],">")}function I(e){return[!1===e.escaped?"{{{":"{{",e.strip&&e.strip.open?"~":""]}function B(e){let t=!1===e.escaped?"}}}":"}}";return[e.strip&&e.strip.close?"~":"",t]}function _(e){return[I(e),e.openStrip.open?"~":"","#"]}function O(e){let t=B(e);return[e.openStrip.close?"~":"",t]}function L(e){return[I(e),e.closeStrip.open?"~":"","/"]}function j(e){let t=B(e);return[e.closeStrip.close?"~":"",t]}function M(e){return[I(e),e.inverseStrip.open?"~":""]}function R(e){let t=B(e);return[e.inverseStrip.close?"~":"",t]}function $(e,t){let r=e.getValue(),n=[],i=re(e,t);return i&&n.push(s(i)),f(r.program.blockParams)&&n.push(ne(r.program)),s([_(r),te(0,t),n.length>0?o([l,u(l,n)]):"",p,O(r)])}function U(e,t){return["ignore"===t.htmlWhitespaceSensitivity?i:"",M(e),"else",R(e)]}function z(e,t,r){let n=e.getValue(),i=e.getParentNode(1);return s([M(i),["else"," ",r],o([l,s(re(e,t)),...f(n.program.blockParams)?[l,ne(n.program)]:[]]),p,R(i)])}function V(e,t,r){let n=e.getValue();return"ignore"===r.htmlWhitespaceSensitivity?[q(n)?p:i,L(n),t("path"),j(n)]:[L(n),t("path"),j(n)]}function q(e){return A(e,["BlockStatement"])&&e.program.body.every((e=>F(e)))}function H(e){return A(e,["BlockStatement"])&&e.inverse}function J(e,t,r){if(q(e.getValue()))return"";let n=t("program");return"ignore"===r.htmlWhitespaceSensitivity?o([i,n]):o(n)}function G(e,t,r){let n=e.getValue(),s=t("inverse"),a="ignore"===r.htmlWhitespaceSensitivity?[i,s]:s;return function(e){return H(e)&&1===e.inverse.body.length&&A(e.inverse.body[0],["BlockStatement"])&&e.inverse.body[0].path.parts[0]===e.path.parts[0]}(n)?a:H(n)?[U(n,r),o(a)]:""}function X(e){return c(u(l,function(e){return e.split(/[\t\n\f\r ]+/)}(e)))}function K(e){return(e="string"==typeof e?e:"").split("\n").length-1}function Z(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return Array.from({length:Math.min(e,2)}).fill(i)}function Y(e,t){let{quote:r,regex:n}=d(e,t);return[r,e.replace(n,`\\${r}`),r]}function Q(e,t){let r=te(0,t),n=re(e,t);return n?o([r,l,s(n)]):r}function ee(e,t){let r=te(0,t),n=re(e,t);return n?[o([r,l,n]),p]:r}function te(e,t){return t("path")}function re(e,t){let r=e.getValue(),n=[];if(r.params.length>0){let r=e.map(t,"params");n.push(...r)}if(r.hash&&r.hash.pairs.length>0){let e=t("hash");n.push(e)}return 0===n.length?"":u(l,n)}function ne(e){return["as |",e.blockParams.join(" "),"|"]}t.exports={print:function(e,t,a){let c=e.getValue();if(!c)return"";if(E(e))return t.originalText.slice(m(c),y(c));let g=t.singleQuote?"'":'"';switch(c.type){case"Block":case"Program":case"Template":return s(e.map(a,"body"));case"ElementNode":{let r=s(function(e,t){let r=e.getValue(),n=["attributes","modifiers","comments"].filter((e=>f(r[e]))),s=n.flatMap((e=>r[e])).sort(P);for(let r of n)e.each((e=>{let r=s.indexOf(e.getValue());s.splice(r,1,[l,t()])}),r);return f(r.blockParams)&&s.push(l,ne(r)),["<",r.tag,o(s),N(r)]}(e,a)),n="ignore"===t.htmlWhitespaceSensitivity&&C(e,["ElementNode"])?p:"";if(w(c))return[r,n];let u=["</",c.tag,">"];return 0===c.children.length?[r,o(u),n]:"ignore"===t.htmlWhitespaceSensitivity?[r,o(k(e,t,a)),i,o(u),n]:[r,o(s(k(e,t,a))),o(u),n]}case"BlockStatement":{let r=e.getParentNode(1);return r&&r.inverse&&1===r.inverse.body.length&&r.inverse.body[0]===c&&r.inverse.body[0].path.parts[0]===r.path.parts[0]?[z(e,a,r.inverse.body[0].path.parts[0]),J(e,a,t),G(e,a,t)]:[$(e,a),s([J(e,a,t),G(e,a,t),V(e,a,t)])]}case"ElementModifierStatement":return s(["{{",ee(e,a),"}}"]);case"MustacheStatement":return s([I(c),ee(e,a),B(c)]);case"SubExpression":return s(["(",Q(e,a),p,")"]);case"AttrNode":{let e="TextNode"===c.value.type;if(e&&""===c.value.chars&&m(c.value)===y(c.value))return c.name;let t=e?d(c.value.chars,g).quote:"ConcatStatement"===c.value.type?d(c.value.parts.filter((e=>"TextNode"===e.type)).map((e=>e.chars)).join(""),g).quote:"",r=a("value");return[c.name,"=",t,"class"===c.name&&t?s(o(r)):r,t]}case"ConcatStatement":return e.map(a,"parts");case"Hash":return u(l,e.map(a,"pairs"));case"HashPair":return[c.key,"=",a("value")];case"TextNode":{let s=c.chars.replace(/{{/g,"\\{{"),i=function(e){for(let t=0;t<2;t++){let r=e.getParentNode(t);if(r&&"AttrNode"===r.type)return r.name.toLowerCase()}}(e);if(i){if("class"===i){let t=s.trim().split(/\s+/).join(" "),r=!1,n=!1;return S(e,["ConcatStatement"])&&(T(e,["MustacheStatement"])&&/^\s/.test(s)&&(r=!0),C(e,["MustacheStatement"])&&/\s$/.test(s)&&""!==t&&(n=!0)),[r?l:"",t,n?l:""]}return h(s)}let a=/^[\t\n\f\r ]*$/.test(s),o=!x(e),u=!D(e);if("ignore"!==t.htmlWhitespaceSensitivity){let t=/^[\t\n\f\r ]*/,i=/[\t\n\f\r ]*$/,p=u&&S(e,["Template"]),c=o&&S(e,["Template"]);if(a){if(c||p)return"";let t=[l],n=K(s);return n&&(t=Z(n)),b(e)&&(t=t.map((e=>r(e)))),t}let[h]=s.match(t),[d]=s.match(i),f=[];if(h){f=[l];let e=K(h);e&&(f=Z(e)),s=s.replace(t,"")}let m=[];if(d){if(!p){m=[l];let t=K(d);t&&(m=Z(t)),b(e)&&(m=m.map((e=>r(e))))}s=s.replace(i,"")}return[...f,n(X(s)),...m]}let p=K(s),d=function(e){return K(((e="string"==typeof e?e:"").match(/^([^\S\n\r]*[\n\r])+/g)||[])[0]||"")}(s),f=function(e){return K(((e="string"==typeof e?e:"").match(/([\n\r][^\S\n\r]*)+$/g)||[])[0]||"")}(s);if((o||u)&&a&&S(e,["Block","ElementNode","Template"]))return"";a&&p?(d=Math.min(p,2),f=0):(C(e,["BlockStatement","ElementNode"])&&(f=Math.max(f,1)),T(e,["BlockStatement","ElementNode"])&&(d=Math.max(d,1)));let m="",y="";return 0===f&&C(e,["MustacheStatement"])&&(y=" "),0===d&&T(e,["MustacheStatement"])&&(m=" "),o&&(d=0,m=""),u&&(f=0,y=""),s=s.replace(/^[\t\n\f\r ]+/g,m).replace(/[\t\n\f\r ]+$/,y),[...Z(d),n(X(s)),...Z(f)]}case"MustacheCommentStatement":{let e=m(c),r=y(c),n="~"===t.originalText.charAt(e+2),s="~"===t.originalText.charAt(r-3),i=c.value.includes("}}")?"--":"";return["{{",n?"~":"","!",i,c.value,i,s?"~":"","}}"]}case"PathExpression":return c.original;case"BooleanLiteral":case"NumberLiteral":return String(c.value);case"CommentStatement":return["\x3c!--",c.value,"--\x3e"];case"StringLiteral":if(function(e){let t=0,r=e.getParentNode(t);for(;r&&A(r,["SubExpression"]);)t++,r=e.getParentNode(t);return!!(r&&A(e.getParentNode(t+1),["ConcatStatement"])&&A(e.getParentNode(t+2),["AttrNode"]))}(e)){let e=t.singleQuote?'"':"'";return Y(c.value,e)}return Y(c.value,g);case"UndefinedLiteral":return"undefined";case"NullLiteral":return"null";default:throw new Error("unknown glimmer type: "+JSON.stringify(c.type))}},massageAstNode:g}}}),ts=x({"src/language-handlebars/parsers.js"(){v()}}),rs=x({"node_modules/linguist-languages/data/Handlebars.json"(e,t){t.exports={name:"Handlebars",type:"markup",color:"#f7931e",aliases:["hbs","htmlbars"],extensions:[".handlebars",".hbs"],tmScope:"text.html.handlebars",aceMode:"handlebars",languageId:155}}}),ns=x({"src/language-handlebars/index.js"(e,t){v();var r=Yt(),n=es(),s=ts(),i=[r(rs(),(()=>({since:"2.3.0",parsers:["glimmer"],vscodeLanguageIds:["handlebars"]})))],a={glimmer:n};t.exports={languages:i,printers:a,parsers:s}}}),ss=x({"src/language-graphql/pragma.js"(e,t){v(),t.exports={hasPragma:function(e){return/^\s*#[^\S\n]*@(?:format|prettier)\s*(?:\n|$)/.test(e)},insertPragma:function(e){return"# @format\n\n"+e}}}}),is=x({"src/language-graphql/loc.js"(e,t){v(),t.exports={locStart:function(e){return"number"==typeof e.start?e.start:e.loc&&e.loc.start},locEnd:function(e){return"number"==typeof e.end?e.end:e.loc&&e.loc.end}}}}),as=x({"src/language-graphql/printer-graphql.js"(e,t){v();var{builders:{join:r,hardline:n,line:s,softline:i,group:a,indent:o,ifBreak:u}}=W(),{isNextLineEmpty:l,isNonEmptyArray:p}=de(),{insertPragma:c}=ss(),{locStart:h,locEnd:d}=is();function f(e,t,n){if(0===n.directives.length)return"";let u=r(s,e.map(t,"directives"));return"FragmentDefinition"===n.kind||"OperationDefinition"===n.kind?a([s,u]):[" ",a(o([i,u]))]}function m(e,t,r,s){return e.map(((e,s,i)=>{let a=r();return s<i.length-1&&l(t.originalText,e.getValue(),d)?[a,n]:a}),s)}function y(e,t,r){let n=e.getNode(),i=[],{interfaces:a}=n,o=e.map((e=>r(e)),"interfaces");for(let e=0;e<a.length;e++){let r=a[e];i.push(o[e]);let n=a[e+1];if(n){let e=t.originalText.slice(r.loc.end,n.loc.start),a=e.includes("#"),o=e.replace(/#.*/g,"").trim();i.push(","===o?",":" &",a?s:" ")}}return i}function g(e,t){"StringValue"===e.kind&&e.block&&!e.value.includes("\n")&&(t.value=t.value.trim())}g.ignoredProperties=new Set(["loc","comments"]),t.exports={print:function(e,t,c){let g=e.getValue();if(!g)return"";if("string"==typeof g)return g;switch(g.kind){case"Document":{let r=[];return e.each(((e,s,i)=>{r.push(c()),s!==i.length-1&&(r.push(n),l(t.originalText,e.getValue(),d)&&r.push(n))}),"definitions"),[...r,n]}case"OperationDefinition":{let n="{"!==t.originalText[h(g)],s=Boolean(g.name);return[n?g.operation:"",n&&s?[" ",c("name")]:"",n&&!s&&p(g.variableDefinitions)?" ":"",p(g.variableDefinitions)?a(["(",o([i,r([u("",", "),i],e.map(c,"variableDefinitions"))]),i,")"]):"",f(e,c,g),g.selectionSet&&(n||s)?" ":"",c("selectionSet")]}case"FragmentDefinition":return["fragment ",c("name"),p(g.variableDefinitions)?a(["(",o([i,r([u("",", "),i],e.map(c,"variableDefinitions"))]),i,")"]):""," on ",c("typeCondition"),f(e,c,g)," ",c("selectionSet")];case"SelectionSet":return["{",o([n,r(n,m(e,t,c,"selections"))]),n,"}"];case"Field":return a([g.alias?[c("alias"),": "]:"",c("name"),g.arguments.length>0?a(["(",o([i,r([u("",", "),i],m(e,t,c,"arguments"))]),i,")"]):"",f(e,c,g),g.selectionSet?" ":"",c("selectionSet")]);case"Name":case"IntValue":case"FloatValue":case"EnumValue":return g.value;case"StringValue":if(g.block){let e=g.value.replace(/"""/g,"\\$&").split("\n");return 1===e.length&&(e[0]=e[0].trim()),e.every((e=>""===e))&&(e.length=0),r(n,['"""',...e,'"""'])}return['"',g.value.replace(/["\\]/g,"\\$&").replace(/\n/g,"\\n"),'"'];case"BooleanValue":return g.value?"true":"false";case"NullValue":return"null";case"Variable":return["$",c("name")];case"ListValue":return a(["[",o([i,r([u("",", "),i],e.map(c,"values"))]),i,"]"]);case"ObjectValue":return a(["{",t.bracketSpacing&&g.fields.length>0?" ":"",o([i,r([u("",", "),i],e.map(c,"fields"))]),i,u("",t.bracketSpacing&&g.fields.length>0?" ":""),"}"]);case"ObjectField":case"Argument":return[c("name"),": ",c("value")];case"Directive":return["@",c("name"),g.arguments.length>0?a(["(",o([i,r([u("",", "),i],m(e,t,c,"arguments"))]),i,")"]):""];case"NamedType":return c("name");case"VariableDefinition":return[c("variable"),": ",c("type"),g.defaultValue?[" = ",c("defaultValue")]:"",f(e,c,g)];case"ObjectTypeExtension":case"ObjectTypeDefinition":return[c("description"),g.description?n:"","ObjectTypeExtension"===g.kind?"extend ":"","type ",c("name"),g.interfaces.length>0?[" implements ",...y(e,t,c)]:"",f(e,c,g),g.fields.length>0?[" {",o([n,r(n,m(e,t,c,"fields"))]),n,"}"]:""];case"FieldDefinition":return[c("description"),g.description?n:"",c("name"),g.arguments.length>0?a(["(",o([i,r([u("",", "),i],m(e,t,c,"arguments"))]),i,")"]):"",": ",c("type"),f(e,c,g)];case"DirectiveDefinition":return[c("description"),g.description?n:"","directive ","@",c("name"),g.arguments.length>0?a(["(",o([i,r([u("",", "),i],m(e,t,c,"arguments"))]),i,")"]):"",g.repeatable?" repeatable":""," on ",r(" | ",e.map(c,"locations"))];case"EnumTypeExtension":case"EnumTypeDefinition":return[c("description"),g.description?n:"","EnumTypeExtension"===g.kind?"extend ":"","enum ",c("name"),f(e,c,g),g.values.length>0?[" {",o([n,r(n,m(e,t,c,"values"))]),n,"}"]:""];case"EnumValueDefinition":return[c("description"),g.description?n:"",c("name"),f(e,c,g)];case"InputValueDefinition":return[c("description"),g.description?g.description.block?n:s:"",c("name"),": ",c("type"),g.defaultValue?[" = ",c("defaultValue")]:"",f(e,c,g)];case"InputObjectTypeExtension":case"InputObjectTypeDefinition":return[c("description"),g.description?n:"","InputObjectTypeExtension"===g.kind?"extend ":"","input ",c("name"),f(e,c,g),g.fields.length>0?[" {",o([n,r(n,m(e,t,c,"fields"))]),n,"}"]:""];case"SchemaExtension":return["extend schema",f(e,c,g),...g.operationTypes.length>0?[" {",o([n,r(n,m(e,t,c,"operationTypes"))]),n,"}"]:[]];case"SchemaDefinition":return[c("description"),g.description?n:"","schema",f(e,c,g)," {",g.operationTypes.length>0?o([n,r(n,m(e,t,c,"operationTypes"))]):"",n,"}"];case"OperationTypeDefinition":return[c("operation"),": ",c("type")];case"InterfaceTypeExtension":case"InterfaceTypeDefinition":return[c("description"),g.description?n:"","InterfaceTypeExtension"===g.kind?"extend ":"","interface ",c("name"),g.interfaces.length>0?[" implements ",...y(e,t,c)]:"",f(e,c,g),g.fields.length>0?[" {",o([n,r(n,m(e,t,c,"fields"))]),n,"}"]:""];case"FragmentSpread":return["...",c("name"),f(e,c,g)];case"InlineFragment":return["...",g.typeCondition?[" on ",c("typeCondition")]:"",f(e,c,g)," ",c("selectionSet")];case"UnionTypeExtension":case"UnionTypeDefinition":return a([c("description"),g.description?n:"",a(["UnionTypeExtension"===g.kind?"extend ":"","union ",c("name"),f(e,c,g),g.types.length>0?[" =",u(""," "),o([u([s," "]),r([s,"| "],e.map(c,"types"))])]:""])]);case"ScalarTypeExtension":case"ScalarTypeDefinition":return[c("description"),g.description?n:"","ScalarTypeExtension"===g.kind?"extend ":"","scalar ",c("name"),f(e,c,g)];case"NonNullType":return[c("type"),"!"];case"ListType":return["[",c("type"),"]"];default:throw new Error("unknown graphql type: "+JSON.stringify(g.kind))}},massageAstNode:g,hasPrettierIgnore:function(e){var t;let r=e.getValue();return null==r||null===(t=r.comments)||void 0===t?void 0:t.some((e=>"prettier-ignore"===e.value.trim()))},insertPragma:c,printComment:function(e){let t=e.getValue();if("Comment"===t.kind)return"#"+t.value.trimEnd();throw new Error("Not a comment: "+JSON.stringify(t))},canAttachComment:function(e){return e.kind&&"Comment"!==e.kind}}}}),os=x({"src/language-graphql/options.js"(e,t){v();var r=En();t.exports={bracketSpacing:r.bracketSpacing}}}),us=x({"src/language-graphql/parsers.js"(){v()}}),ls=x({"node_modules/linguist-languages/data/GraphQL.json"(e,t){t.exports={name:"GraphQL",type:"data",color:"#e10098",extensions:[".graphql",".gql",".graphqls"],tmScope:"source.graphql",aceMode:"text",languageId:139}}}),ps=x({"src/language-graphql/index.js"(e,t){v();var r=Yt(),n=as(),s=os(),i=us(),a=[r(ls(),(()=>({since:"1.5.0",parsers:["graphql"],vscodeLanguageIds:["graphql"]})))],o={graphql:n};t.exports={languages:a,options:s,printers:o,parsers:i}}}),cs=x({"node_modules/collapse-white-space/index.js"(e,t){v(),t.exports=function(e){return String(e).replace(/\s+/g," ")}}}),hs=x({"src/language-markdown/loc.js"(e,t){v(),t.exports={locStart:function(e){return e.position.start.offset},locEnd:function(e){return e.position.end.offset}}}}),ds=x({"src/language-markdown/constants.evaluate.js"(e,t){t.exports={cjkPattern:"(?:[\\u02ea-\\u02eb\\u1100-\\u11ff\\u2e80-\\u2e99\\u2e9b-\\u2ef3\\u2f00-\\u2fd5\\u2ff0-\\u303f\\u3041-\\u3096\\u3099-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312f\\u3131-\\u318e\\u3190-\\u3191\\u3196-\\u31ba\\u31c0-\\u31e3\\u31f0-\\u321e\\u322a-\\u3247\\u3260-\\u327e\\u328a-\\u32b0\\u32c0-\\u32cb\\u32d0-\\u3370\\u337b-\\u337f\\u33e0-\\u33fe\\u3400-\\u4db5\\u4e00-\\u9fef\\ua960-\\ua97c\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufe10-\\ufe1f\\ufe30-\\ufe6f\\uff00-\\uffef]|[\\ud840-\\ud868\\ud86a-\\ud86c\\ud86f-\\ud872\\ud874-\\ud879][\\udc00-\\udfff]|\\ud82c[\\udc00-\\udd1e\\udd50-\\udd52\\udd64-\\udd67]|\\ud83c[\\ude00\\ude50-\\ude51]|\\ud869[\\udc00-\\uded6\\udf00-\\udfff]|\\ud86d[\\udc00-\\udf34\\udf40-\\udfff]|\\ud86e[\\udc00-\\udc1d\\udc20-\\udfff]|\\ud873[\\udc00-\\udea1\\udeb0-\\udfff]|\\ud87a[\\udc00-\\udfe0]|\\ud87e[\\udc00-\\ude1d])(?:[\\ufe00-\\ufe0f]|\\udb40[\\udd00-\\uddef])?",kPattern:"[\\u1100-\\u11ff\\u3001-\\u3003\\u3008-\\u3011\\u3013-\\u301f\\u302e-\\u3030\\u3037\\u30fb\\u3131-\\u318e\\u3200-\\u321e\\u3260-\\u327e\\ua960-\\ua97c\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\ufe45-\\ufe46\\uff61-\\uff65\\uffa0-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc]",punctuationPattern:"[\\u0021-\\u002f\\u003a-\\u0040\\u005b-\\u0060\\u007b-\\u007e\\u00a1\\u00a7\\u00ab\\u00b6-\\u00b7\\u00bb\\u00bf\\u037e\\u0387\\u055a-\\u055f\\u0589-\\u058a\\u05be\\u05c0\\u05c3\\u05c6\\u05f3-\\u05f4\\u0609-\\u060a\\u060c-\\u060d\\u061b\\u061e-\\u061f\\u066a-\\u066d\\u06d4\\u0700-\\u070d\\u07f7-\\u07f9\\u0830-\\u083e\\u085e\\u0964-\\u0965\\u0970\\u09fd\\u0a76\\u0af0\\u0c77\\u0c84\\u0df4\\u0e4f\\u0e5a-\\u0e5b\\u0f04-\\u0f12\\u0f14\\u0f3a-\\u0f3d\\u0f85\\u0fd0-\\u0fd4\\u0fd9-\\u0fda\\u104a-\\u104f\\u10fb\\u1360-\\u1368\\u1400\\u166e\\u169b-\\u169c\\u16eb-\\u16ed\\u1735-\\u1736\\u17d4-\\u17d6\\u17d8-\\u17da\\u1800-\\u180a\\u1944-\\u1945\\u1a1e-\\u1a1f\\u1aa0-\\u1aa6\\u1aa8-\\u1aad\\u1b5a-\\u1b60\\u1bfc-\\u1bff\\u1c3b-\\u1c3f\\u1c7e-\\u1c7f\\u1cc0-\\u1cc7\\u1cd3\\u2010-\\u2027\\u2030-\\u2043\\u2045-\\u2051\\u2053-\\u205e\\u207d-\\u207e\\u208d-\\u208e\\u2308-\\u230b\\u2329-\\u232a\\u2768-\\u2775\\u27c5-\\u27c6\\u27e6-\\u27ef\\u2983-\\u2998\\u29d8-\\u29db\\u29fc-\\u29fd\\u2cf9-\\u2cfc\\u2cfe-\\u2cff\\u2d70\\u2e00-\\u2e2e\\u2e30-\\u2e4f\\u3001-\\u3003\\u3008-\\u3011\\u3014-\\u301f\\u3030\\u303d\\u30a0\\u30fb\\ua4fe-\\ua4ff\\ua60d-\\ua60f\\ua673\\ua67e\\ua6f2-\\ua6f7\\ua874-\\ua877\\ua8ce-\\ua8cf\\ua8f8-\\ua8fa\\ua8fc\\ua92e-\\ua92f\\ua95f\\ua9c1-\\ua9cd\\ua9de-\\ua9df\\uaa5c-\\uaa5f\\uaade-\\uaadf\\uaaf0-\\uaaf1\\uabeb\\ufd3e-\\ufd3f\\ufe10-\\ufe19\\ufe30-\\ufe52\\ufe54-\\ufe61\\ufe63\\ufe68\\ufe6a-\\ufe6b\\uff01-\\uff03\\uff05-\\uff0a\\uff0c-\\uff0f\\uff1a-\\uff1b\\uff1f-\\uff20\\uff3b-\\uff3d\\uff3f\\uff5b\\uff5d\\uff5f-\\uff65]|\\ud800[\\udd00-\\udd02\\udf9f\\udfd0]|\\ud801[\\udd6f]|\\ud802[\\udc57\\udd1f\\udd3f\\ude50-\\ude58\\ude7f\\udef0-\\udef6\\udf39-\\udf3f\\udf99-\\udf9c]|\\ud803[\\udf55-\\udf59]|\\ud804[\\udc47-\\udc4d\\udcbb-\\udcbc\\udcbe-\\udcc1\\udd40-\\udd43\\udd74-\\udd75\\uddc5-\\uddc8\\uddcd\\udddb\\udddd-\\udddf\\ude38-\\ude3d\\udea9]|\\ud805[\\udc4b-\\udc4f\\udc5b\\udc5d\\udcc6\\uddc1-\\uddd7\\ude41-\\ude43\\ude60-\\ude6c\\udf3c-\\udf3e]|\\ud806[\\udc3b\\udde2\\ude3f-\\ude46\\ude9a-\\ude9c\\ude9e-\\udea2]|\\ud807[\\udc41-\\udc45\\udc70-\\udc71\\udef7-\\udef8\\udfff]|\\ud809[\\udc70-\\udc74]|\\ud81a[\\ude6e-\\ude6f\\udef5\\udf37-\\udf3b\\udf44]|\\ud81b[\\ude97-\\ude9a\\udfe2]|\\ud82f[\\udc9f]|\\ud836[\\ude87-\\ude8b]|\\ud83a[\\udd5e-\\udd5f]"}}}),fs=x({"src/language-markdown/utils.js"(e,t){v();var{getLast:r}=de(),{locStart:n,locEnd:s}=hs(),{cjkPattern:i,kPattern:a,punctuationPattern:o}=ds(),u=["liquidNode","inlineCode","emphasis","esComment","strong","delete","wikiLink","link","linkReference","image","imageReference","footnote","footnoteReference","sentence","whitespace","word","break","inlineMath"],l=[...u,"tableCell","paragraph","heading"],p=new RegExp(a),c=new RegExp(o);function h(e,t){let[,r,n,s]=t.slice(e.position.start.offset,e.position.end.offset).match(/^\s*(\d+)(\.|\))(\s*)/);return{numberText:r,marker:n,leadingSpaces:s}}t.exports={mapAst:function(e,t){return function e(r,n,s){let i=Object.assign({},t(r,n,s));return i.children&&(i.children=i.children.map(((t,r)=>e(t,r,[i,...s])))),i}(e,null,[])},splitText:function(e,t){let n="non-cjk",s="cj-letter",a="cjk-punctuation",o=[],u=("preserve"===t.proseWrap?e:e.replace(new RegExp(`(${i})\n(${i})`,"g"),"$1$2")).split(/([\t\n ]+)/);for(let[e,t]of u.entries()){if(e%2==1){o.push({type:"whitespace",value:/\n/.test(t)?"\n":" "});continue}if((0===e||e===u.length-1)&&""===t)continue;let h=t.split(new RegExp(`(${i})`));for(let[e,t]of h.entries())if(0!==e&&e!==h.length-1||""!==t){if(e%2==0){""!==t&&l({type:"word",value:t,kind:n,hasLeadingPunctuation:c.test(t[0]),hasTrailingPunctuation:c.test(r(t))});continue}l(c.test(t)?{type:"word",value:t,kind:a,hasLeadingPunctuation:!0,hasTrailingPunctuation:!0}:{type:"word",value:t,kind:p.test(t)?"k-letter":s,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1})}}return o;function l(e){let t=r(o);var i,u;t&&"word"===t.type&&(t.kind===n&&e.kind===s&&!t.hasTrailingPunctuation||t.kind===s&&e.kind===n&&!e.hasLeadingPunctuation?o.push({type:"whitespace",value:" "}):(i=n,u=a,!(t.kind===i&&e.kind===u||t.kind===u&&e.kind===i||[t.value,e.value].some((e=>/\u3000/.test(e))))&&o.push({type:"whitespace",value:""}))),o.push(e)}},punctuationPattern:o,getFencedCodeBlockValue:function(e,t){let{value:r}=e;return e.position.end.offset===t.length&&r.endsWith("\n")&&t.endsWith("\n")?r.slice(0,-1):r},getOrderedListItemInfo:h,hasGitDiffFriendlyOrderedList:function(e,t){if(!e.ordered||e.children.length<2)return!1;let r=Number(h(e.children[0],t.originalText).numberText),n=Number(h(e.children[1],t.originalText).numberText);if(0===r&&e.children.length>2){let r=Number(h(e.children[2],t.originalText).numberText);return 1===n&&1===r}return 1===n},INLINE_NODE_TYPES:u,INLINE_NODE_WRAPPER_TYPES:l,isAutolink:function(e){if("link"!==(null==e?void 0:e.type)||1!==e.children.length)return!1;let[t]=e.children;return n(e)===n(t)&&s(e)===s(t)}}}}),ms=x({"src/language-markdown/embed.js"(e,t){v();var{inferParserByLanguage:r,getMaxContinuousCount:n}=de(),{builders:{hardline:s,markAsRoot:i},utils:{replaceEndOfLine:a}}=W(),o=Nn(),{getFencedCodeBlockValue:u}=fs();t.exports=function(e,t,l,p){let c=e.getValue();if("code"===c.type&&null!==c.lang){let e=r(c.lang,p);if(e){let t=p.__inJsTemplate?"~":"`",r=t.repeat(Math.max(3,n(c.value,t)+1)),o={parser:e};"tsx"===c.lang&&(o.filepath="dummy.tsx");let h=l(u(c,p.originalText),o,{stripTrailingHardline:!0});return i([r,c.lang,c.meta?" "+c.meta:"",s,a(h),s,r])}}switch(c.type){case"front-matter":return o(c,l);case"importExport":return[l(c.value,{parser:"babel"},{stripTrailingHardline:!0}),s];case"jsx":return l(`<$>${c.value}</$>`,{parser:"__js_expression",rootMarker:"mdx"},{stripTrailingHardline:!0})}return null}}}),ys=x({"src/language-markdown/pragma.js"(e,t){v();var r=Bn(),n=["format","prettier"];function s(e){let t=`@(${n.join("|")})`,r=new RegExp([`\x3c!--\\s*${t}\\s*--\x3e`,`{\\s*\\/\\*\\s*${t}\\s*\\*\\/\\s*}`,`\x3c!--.*\r?\n[\\s\\S]*(^|\n)[^\\S\n]*${t}[^\\S\n]*($|\n)[\\s\\S]*\n.*--\x3e`].join("|"),"m"),s=e.match(r);return 0===(null==s?void 0:s.index)}t.exports={startWithPragma:s,hasPragma:e=>s(r(e).content.trimStart()),insertPragma:e=>{let t=r(e),s=`\x3c!-- @${n[0]} --\x3e`;return t.frontMatter?`${t.frontMatter.raw}\n\n${s}\n\n${t.content}`:`${s}\n\n${t.content}`}}}}),gs=x({"src/language-markdown/print-preprocess.js"(e,t){v();var r=P(),{getOrderedListItemInfo:n,mapAst:s,splitText:i}=fs(),a=/^.$/su;function o(e,t,n){return s(e,(e=>{if(!e.children)return e;let s=e.children.reduce(((e,s)=>{let i=r(e);return i&&t(i,s)?e.splice(-1,1,n(i,s)):e.push(s),e}),[]);return Object.assign(Object.assign({},e),{},{children:s})}))}t.exports=function(e,t){return function(e){return o(e,((e,t)=>"importExport"===e.type&&"importExport"===t.type),((e,t)=>({type:"importExport",value:e.value+"\n\n"+t.value,position:{start:e.position.start,end:t.position.end}})))}(e=function(e){return s(e,(e=>"import"!==e.type&&"export"!==e.type?e:Object.assign(Object.assign({},e),{},{type:"importExport"})))}(e=function(e,t){return s(e,((e,r,n)=>{let[s]=n;if("text"!==e.type)return e;let{value:a}=e;return"paragraph"===s.type&&(0===r&&(a=a.trimStart()),r===s.children.length-1&&(a=a.trimEnd())),{type:"sentence",position:e.position,children:i(a,t)}}))}(e=function(e,t){return s(e,((e,t,r)=>{if("list"===e.type&&e.children.length>0){for(let t=0;t<r.length;t++){let n=r[t];if("list"===n.type&&!n.isAligned)return e.isAligned=!1,e}e.isAligned=i(e)}return e}));function r(e){return 0===e.children.length?-1:e.children[0].position.start.column-1}function i(e){if(!e.ordered)return!0;let[s,i]=e.children;if(n(s,t.originalText).leadingSpaces.length>1)return!0;let a=r(s);return-1!==a&&(1===e.children.length?a%t.tabWidth==0:a===r(i)&&(a%t.tabWidth==0||n(i,t.originalText).leadingSpaces.length>1))}}(e=function(e,t){return s(e,((e,r,n)=>{if("code"===e.type){let r=/^\n?(?: {4,}|\t)/.test(t.originalText.slice(e.position.start.offset,e.position.end.offset));if(e.isIndented=r,r)for(let e=0;e<n.length;e++){let t=n[e];if(t.hasIndentedCodeblock)break;"list"===t.type&&(t.hasIndentedCodeblock=!0)}}return e}))}(e=function(e,t){return s(e,(e=>"inlineCode"!==e.type||"preserve"===t.proseWrap?e:Object.assign(Object.assign({},e),{},{value:e.value.replace(/\s+/g," ")})))}(e=function(e){return o(e,((e,t)=>"text"===e.type&&"text"===t.type),((e,t)=>({type:"text",value:e.value+t.value,position:{start:e.position.start,end:t.position.end}})))}(e=function(e,t){return s(e,(e=>"text"===e.type&&"*"!==e.value&&"_"!==e.value&&a.test(e.value)&&e.position.end.offset-e.position.start.offset!==e.value.length?Object.assign(Object.assign({},e),{},{value:t.originalText.slice(e.position.start.offset,e.position.end.offset)}):e))}(e,t)),t),t),t),t)))}}}),Ds=x({"src/language-markdown/clean.js"(e,t){v();var r=cs(),{isFrontMatterNode:n}=de(),{startWithPragma:s}=ys(),i=new Set(["position","raw"]);function a(e,t,i){if(("front-matter"===e.type||"code"===e.type||"yaml"===e.type||"import"===e.type||"export"===e.type||"jsx"===e.type)&&delete t.value,"list"===e.type&&delete t.isAligned,("list"===e.type||"listItem"===e.type)&&(delete t.spread,delete t.loose),"text"===e.type||("inlineCode"===e.type&&(t.value=e.value.replace(/[\t\n ]+/g," ")),"wikiLink"===e.type&&(t.value=e.value.trim().replace(/[\t\n]+/g," ")),("definition"===e.type||"linkReference"===e.type||"imageReference"===e.type)&&(t.label=r(e.label)),("definition"===e.type||"link"===e.type||"image"===e.type)&&e.title&&(t.title=e.title.replace(/\\(["')])/g,"$1")),i&&"root"===i.type&&i.children.length>0&&(i.children[0]===e||n(i.children[0])&&i.children[1]===e)&&"html"===e.type&&s(e.value)))return null}a.ignoredProperties=i,t.exports=a}}),xs=x({"src/language-markdown/printer-markdown.js"(e,t){v();var r=cs(),{getLast:n,getMinNotPresentContinuousCount:s,getMaxContinuousCount:i,getStringWidth:a,isNonEmptyArray:o}=de(),{builders:{breakParent:u,join:l,line:p,literalline:c,markAsRoot:h,hardline:d,softline:f,ifBreak:m,fill:y,align:g,indent:D,group:x,hardlineWithoutBreakParent:E},utils:{normalizeDoc:b,replaceTextEndOfLine:C},printer:{printDocToString:A}}=W(),S=ms(),{insertPragma:T}=ys(),{locStart:w,locEnd:F}=hs(),P=gs(),k=Ds(),{getFencedCodeBlockValue:N,hasGitDiffFriendlyOrderedList:I,splitText:B,punctuationPattern:_,INLINE_NODE_TYPES:O,INLINE_NODE_WRAPPER_TYPES:L,isAutolink:j}=fs(),M=new Set(["importExport"]),R=["heading","tableCell","link","wikiLink"],$=new Set(["listItem","definition","footnoteDefinition"]);function U(e,t,r,n){let s=e.getValue(),i=null===s.checked?"":s.checked?"[x] ":"[ ] ";return[i,G(e,t,r,{processor:(e,s)=>{if(0===s&&"list"!==e.getValue().type)return g(" ".repeat(i.length),r());let a=" ".repeat(function(e,t,r){return e<t?t:e>r?r:e}(t.tabWidth-n.length,0,3));return[a,g(a,r())]}})]}function z(e,t){return function(e,t,r){let n=-1;for(let s of t.children)if(s.type===e.type&&r(s)?n++:n=-1,s===e)return n}(e,t,(t=>t.ordered===e.ordered))}function V(e,t){let r,n=Array.isArray(t)?t:[t],s=-1;for(;r=e.getParentNode(++s);)if(n.includes(r.type))return s;return-1}function q(e,t){let r=V(e,t);return-1===r?null:e.getParentNode(r)}function H(e,t,r){if("preserve"===r.proseWrap&&"\n"===t)return d;let n="always"===r.proseWrap&&!q(e,R);return""!==t?n?p:" ":n?f:""}function J(e,t,r){let n=[],s=null,{children:i}=e.getValue();for(let[e,t]of i.entries())switch(Z(t)){case"start":null===s&&(s={index:e,offset:t.position.end.offset});break;case"end":null!==s&&(n.push({start:s,end:{index:e,offset:t.position.start.offset}}),s=null)}return G(e,t,r,{processor:(e,s)=>{if(n.length>0){let e=n[0];if(s===e.start.index)return[X(i[e.start.index]),t.originalText.slice(e.start.offset,e.end.offset),X(i[e.end.index])];if(e.start.index<s&&s<e.end.index)return!1;if(s===e.end.index)return n.shift(),!1}return r()}})}function G(e,t,r){let n,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},{postprocessor:i}=s,a=s.processor||(()=>r()),o=e.getValue(),u=[];return e.each(((e,r)=>{let s=e.getValue(),i=a(e,r);if(!1!==i){let e={parts:u,prevNode:n,parentNode:o,options:t};(function(e,t){let r=0===t.parts.length,n=O.includes(e.type),s="html"===e.type&&L.includes(t.parentNode.type);return!r&&!n&&!s})(s,e)&&(u.push(d),n&&M.has(n.type)||(function(e,t){var r,n,s;let i=(t.prevNode&&t.prevNode.type)===e.type&&$.has(e.type),a="listItem"===t.parentNode.type&&!t.parentNode.loose,o="listItem"===(null===(r=t.prevNode)||void 0===r?void 0:r.type)&&t.prevNode.loose,u="next"===Z(t.prevNode),l="html"===e.type&&"html"===(null===(n=t.prevNode)||void 0===n?void 0:n.type)&&t.prevNode.position.end.line+1===e.position.start.line,p="html"===e.type&&"listItem"===t.parentNode.type&&"paragraph"===(null===(s=t.prevNode)||void 0===s?void 0:s.type)&&t.prevNode.position.end.line+1===e.position.start.line;return o||!(i||a||u||l||p)}(s,e)||Y(s,e))&&u.push(d),Y(s,e)&&u.push(d)),u.push(i),n=s}}),"children"),i?i(u):u}function X(e){return"html"===e.type?e.value:"paragraph"===e.type&&Array.isArray(e.children)&&1===e.children.length&&"esComment"===e.children[0].type?["{/* ",e.children[0].value," */}"]:void 0}function K(e){let t=e;for(;o(t.children);)t=n(t.children);return t}function Z(e){let t;if("html"===e.type)t=e.value.match(/^<!--\s*prettier-ignore(?:-(start|end))?\s*-->$/);else{let r;"esComment"===e.type?r=e:"paragraph"===e.type&&1===e.children.length&&"esComment"===e.children[0].type&&(r=e.children[0]),r&&(t=r.value.match(/^prettier-ignore(?:-(start|end))?$/))}return!!t&&(t[1]||"next")}function Y(e,t){let r=t.prevNode&&"list"===t.prevNode.type,n="code"===e.type&&e.isIndented;return r&&n}function Q(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=[" ",...Array.isArray(t)?t:[t]];return new RegExp(r.map((e=>`\\${e}`)).join("|")).test(e)?`<${e}>`:e}function ee(e,t){if(!e)return"";if(!(arguments.length>2&&void 0!==arguments[2])||arguments[2])return" "+ee(e,t,!1);if((e=e.replace(/\\(["')])/g,"$1")).includes('"')&&e.includes("'")&&!e.includes(")"))return`(${e})`;let r=e.split("'").length-1,n=e.split('"').length-1,s=r>n?'"':n>r||t.singleQuote?"'":'"';return`${s}${e=(e=e.replace(/\\/,"\\\\")).replace(new RegExp(`(${s})`,"g"),"\\$1")}${s}`}function te(e){return`[${r(e.label)}]`}function re(e){return`[^${e.label}]`}t.exports={preprocess:P,print:function(e,t,r){let o=e.getValue();if(function(e){let t=q(e,["linkReference","imageReference"]);return t&&("linkReference"!==t.type||"full"!==t.referenceType)}(e))return B(t.originalText.slice(o.position.start.offset,o.position.end.offset),t).map((r=>"word"===r.type?r.value:""===r.value?"":H(e,r.value,t)));switch(o.type){case"front-matter":return t.originalText.slice(o.position.start.offset,o.position.end.offset);case"root":return 0===o.children.length?"":[b(J(e,t,r)),M.has(K(o).type)?"":d];case"paragraph":return G(e,t,r,{postprocessor:y});case"sentence":return G(e,t,r);case"word":{let t=o.value.replace(/\*/g,"\\$&").replace(new RegExp([`(^|${_})(_+)`,`(_+)(${_}|$)`].join("|"),"g"),((e,t,r,n,s)=>(r?`${t}${r}`:`${n}${s}`).replace(/_/g,"\\_"))),r=(e,t,r)=>"sentence"===e.type&&0===r,n=(e,t,r)=>j(e.children[r-1]);return t!==o.value&&(e.match(void 0,r,n)||e.match(void 0,r,((e,t,r)=>"emphasis"===e.type&&0===r),n))&&(t=t.replace(/^(\\?[*_])+/,(e=>e.replace(/\\/g,"")))),t}case"whitespace":{let r=e.getParentNode(),n=r.children.indexOf(o),s=r.children[n+1],i=s&&/^>|^(?:[*+-]|#{1,6}|\d+[).])$/.test(s.value)?"never":t.proseWrap;return H(e,o.value,{proseWrap:i})}case"emphasis":{let s;if(j(o.children[0]))s=t.originalText[o.position.start.offset];else{let t=e.getParentNode(),r=t.children.indexOf(o),i=t.children[r-1],a=t.children[r+1];s=i&&"sentence"===i.type&&i.children.length>0&&"word"===n(i.children).type&&!n(i.children).hasTrailingPunctuation||a&&"sentence"===a.type&&a.children.length>0&&"word"===a.children[0].type&&!a.children[0].hasLeadingPunctuation||q(e,"emphasis")?"*":"_"}return[s,G(e,t,r),s]}case"strong":return["**",G(e,t,r),"**"];case"delete":return["~~",G(e,t,r),"~~"];case"inlineCode":{let e=s(o.value,"`"),t="`".repeat(e||1),r=e&&!/^\s/.test(o.value)?" ":"";return[t,r,o.value,r,t]}case"wikiLink":{let e="";return e="preserve"===t.proseWrap?o.value:o.value.replace(/[\t\n]+/g," "),["[[",e,"]]"]}case"link":switch(t.originalText[o.position.start.offset]){case"<":{let e="mailto:";return["<",o.url.startsWith(e)&&t.originalText.slice(o.position.start.offset+1,o.position.start.offset+1+e.length)!==e?o.url.slice(e.length):o.url,">"]}case"[":return["[",G(e,t,r),"](",Q(o.url,")"),ee(o.title,t),")"];default:return t.originalText.slice(o.position.start.offset,o.position.end.offset)}case"image":return[""),ee(o.title,t),")"];case"blockquote":return["> ",g("> ",G(e,t,r))];case"heading":return["#".repeat(o.depth)+" ",G(e,t,r)];case"code":{if(o.isIndented){let e=" ".repeat(4);return g(e,[e,...C(o.value,d)])}let e=t.__inJsTemplate?"~":"`",r=e.repeat(Math.max(3,i(o.value,e)+1));return[r,o.lang||"",o.meta?" "+o.meta:"",d,...C(N(o,t.originalText),d),d,r]}case"html":{let t=e.getParentNode(),r="root"===t.type&&n(t.children)===o?o.value.trimEnd():o.value,s=/^<!--.*-->$/s.test(r);return C(r,s?d:h(c))}case"list":{let n=z(o,e.getParentNode()),s=I(o,t);return G(e,t,r,{processor:(e,i)=>{let a=function(){let e=o.ordered?(0===i?o.start:s?1:o.start+i)+(n%2==0?". ":") "):n%2==0?"- ":"* ";return o.isAligned||o.hasIndentedCodeblock?function(e,t){let r=n();return e+" ".repeat(r>=4?0:r);function n(){let r=e.length%t.tabWidth;return 0===r?0:t.tabWidth-r}}(e,t):e}(),u=e.getValue();return 2===u.children.length&&"html"===u.children[1].type&&u.children[0].position.start.column!==u.children[1].position.start.column?[a,U(e,t,r,a)]:[a,g(" ".repeat(a.length),U(e,t,r,a))]}})}case"thematicBreak":{let t=V(e,"list");return-1===t?"---":z(e.getParentNode(t),e.getParentNode(t+1))%2==0?"***":"---"}case"linkReference":return["[",G(e,t,r),"]","full"===o.referenceType?te(o):"collapsed"===o.referenceType?"[]":""];case"imageReference":return"full"===o.referenceType?["![",o.alt||"","]",te(o)]:["![",o.alt,"]","collapsed"===o.referenceType?"[]":""];case"definition":{let e="always"===t.proseWrap?p:" ";return x([te(o),":",D([e,Q(o.url),null===o.title?"":[e,ee(o.title,t,!1)]])])}case"footnote":return["[^",G(e,t,r),"]"];case"footnoteReference":return re(o);case"footnoteDefinition":{let n=e.getParentNode().children[e.getName()+1],s=1===o.children.length&&"paragraph"===o.children[0].type&&("never"===t.proseWrap||"preserve"===t.proseWrap&&o.children[0].position.start.line===o.children[0].position.end.line);return[re(o),": ",s?G(e,t,r):x([g(" ".repeat(4),G(e,t,r,{processor:(e,t)=>0===t?x([f,r()]):r()})),n&&"footnoteDefinition"===n.type?f:""])]}case"table":return function(e,t,r){let n=e.getValue(),s=[],i=e.map((e=>e.map(((e,n)=>{let i=A(r(),t).formatted,o=a(i);return s[n]=Math.max(s[n]||3,o),{text:i,width:o}}),"children")),"children"),o=c(!1);if("never"!==t.proseWrap)return[u,o];let p=c(!0);return[u,x(m(p,o))];function c(e){let t=[d(i[0],e),h(e)];return i.length>1&&t.push(l(E,i.slice(1).map((t=>d(t,e))))),l(E,t)}function h(e){return`| ${s.map(((t,r)=>{let s=n.align[r],i="center"===s||"right"===s?":":"-";return`${"center"===s||"left"===s?":":"-"}${e?"-":"-".repeat(t-2)}${i}`})).join(" | ")} |`}function d(e,t){return`| ${e.map(((e,r)=>{let{text:i,width:a}=e;if(t)return i;let o=s[r]-a,u=n.align[r],l=0;"right"===u?l=o:"center"===u&&(l=Math.floor(o/2));let p=o-l;return`${" ".repeat(l)}${i}${" ".repeat(p)}`})).join(" | ")} |`}}(e,t,r);case"tableCell":return G(e,t,r);case"break":return/\s/.test(t.originalText[o.position.start.offset])?[" ",h(c)]:["\\",d];case"liquidNode":return C(o.value,d);case"importExport":return[o.value,d];case"esComment":return["{/* ",o.value," */}"];case"jsx":return o.value;case"math":return["$$",d,o.value?[...C(o.value,d),d]:"","$$"];case"inlineMath":return t.originalText.slice(w(o),F(o));default:throw new Error(`Unknown markdown type ${JSON.stringify(o.type)}`)}},embed:S,massageAstNode:k,hasPrettierIgnore:function(e){let t=Number(e.getName());return 0!==t&&"next"===Z(e.getParentNode().children[t-1])},insertPragma:T}}}),Es=x({"src/language-markdown/options.js"(e,t){v();var r=En();t.exports={proseWrap:r.proseWrap,singleQuote:r.singleQuote}}}),bs=x({"src/language-markdown/parsers.js"(){v()}}),Cs=x({"node_modules/linguist-languages/data/Markdown.json"(e,t){t.exports={name:"Markdown",type:"prose",color:"#083fa1",aliases:["pandoc"],aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:[".md",".livemd",".markdown",".mdown",".mdwn",".mdx",".mkd",".mkdn",".mkdown",".ronn",".scd",".workbook"],filenames:["contents.lr"],tmScope:"source.gfm",languageId:222}}}),vs=x({"src/language-markdown/index.js"(e,t){v();var r=Yt(),n=xs(),s=Es(),i=bs(),a=[r(Cs(),(e=>({since:"1.8.0",parsers:["markdown"],vscodeLanguageIds:["markdown"],filenames:[...e.filenames,"README"],extensions:e.extensions.filter((e=>".mdx"!==e))}))),r(Cs(),(()=>({name:"MDX",since:"1.15.0",parsers:["mdx"],vscodeLanguageIds:["mdx"],filenames:[],extensions:[".mdx"]})))],o={mdast:n};t.exports={languages:a,options:s,printers:o,parsers:i}}}),As=x({"src/language-html/clean.js"(e,t){v();var{isFrontMatterNode:r}=de(),n=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan"]);function s(e,t){if("text"===e.type||"comment"===e.type||r(e)||"yaml"===e.type||"toml"===e.type)return null;"attribute"===e.type&&delete t.value,"docType"===e.type&&delete t.value}s.ignoredProperties=n,t.exports=s}}),Ss=x({"src/language-html/constants.evaluate.js"(e,t){t.exports={CSS_DISPLAY_TAGS:{area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"block",rp:"none",script:"block",source:"block",style:"none",template:"inline",track:"block",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",fieldset:"block",button:"inline-block",details:"block",summary:"block",dialog:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block",select:"inline-block",option:"block",optgroup:"block"},CSS_DISPLAY_DEFAULT:"inline",CSS_WHITE_SPACE_TAGS:{listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"},CSS_WHITE_SPACE_DEFAULT:"normal"}}}),Ts=x({"src/language-html/utils/is-unknown-namespace.js"(e,t){v(),t.exports=function(e){return"element"===e.type&&!e.hasExplicitNamespace&&!["html","svg"].includes(e.namespace)}}}),ws=x({"src/language-html/utils/index.js"(e,t){v();var{inferParserByLanguage:r,isFrontMatterNode:n}=de(),{builders:{line:s,hardline:i,join:a},utils:{getDocParts:o,replaceTextEndOfLine:u}}=W(),{CSS_DISPLAY_TAGS:l,CSS_DISPLAY_DEFAULT:p,CSS_WHITE_SPACE_TAGS:c,CSS_WHITE_SPACE_DEFAULT:h}=Ss(),d=Ts(),f=new Set(["\t","\n","\f","\r"," "]),m=e=>e.replace(/[\t\n\f\r ]+$/,""),y=e=>(e=>e.replace(/^[\t\f\r ]*\n/g,""))(m(e)),g=e=>e.match(/^[\t\n\f\r ]*/)[0];function D(e){return"element"===e.type&&("script"===e.fullName||"style"===e.fullName||"svg:style"===e.fullName||d(e)&&("script"===e.name||"style"===e.name))}function x(e){return k(e).startsWith("pre")}function E(e){return"element"===e.type&&e.children.length>0&&(["html","head","ul","ol","select"].includes(e.name)||e.cssDisplay.startsWith("table")&&"table-cell"!==e.cssDisplay)}function b(e){return T(e)||"element"===e.type&&"br"===e.fullName||C(e)}function C(e){return A(e)&&S(e)}function A(e){return e.hasLeadingSpaces&&(e.prev?e.prev.sourceSpan.end.line<e.sourceSpan.start.line:"root"===e.parent.type||e.parent.startSourceSpan.end.line<e.sourceSpan.start.line)}function S(e){return e.hasTrailingSpaces&&(e.next?e.next.sourceSpan.start.line>e.sourceSpan.end.line:"root"===e.parent.type||e.parent.endSourceSpan&&e.parent.endSourceSpan.start.line>e.sourceSpan.end.line)}function T(e){switch(e.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(e.name)}return!1}function w(e){let{type:t,lang:r}=e.attrMap;return"module"===t||"text/javascript"===t||"text/babel"===t||"application/javascript"===t||"jsx"===r?"babel":"application/x-typescript"===t||"ts"===r||"tsx"===r?"typescript":"text/markdown"===t?"markdown":"text/html"===t?"html":t&&(t.endsWith("json")||t.endsWith("importmap"))||"speculationrules"===t?"json":"text/x-handlebars-template"===t?"glimmer":void 0}function F(e){return"block"===e||"list-item"===e||e.startsWith("table")}function P(e){return k(e).startsWith("pre")}function k(e){return"element"===e.type&&(!e.namespace||d(e))&&c[e.name]||h}function N(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){let t=Number.POSITIVE_INFINITY;for(let r of e.split("\n")){if(0===r.length)continue;if(!f.has(r[0]))return 0;let e=g(r).length;r.length!==e&&e<t&&(t=e)}return t===Number.POSITIVE_INFINITY?0:t}(e);return 0===t?e:e.split("\n").map((e=>e.slice(t))).join("\n")}var I=new Set(["template","style","script"]);function B(e,t){return _(e,t)&&!I.has(e.fullName)}function _(e,t){return"vue"===t.parser&&"element"===e.type&&"root"===e.parent.type&&"html"!==e.fullName.toLowerCase()}function O(e,t){return _(e,t)&&(B(e,t)||e.attrMap.lang&&"html"!==e.attrMap.lang)}t.exports={htmlTrim:e=>(e=>e.replace(/^[\t\n\f\r ]+/,""))(m(e)),htmlTrimPreserveIndentation:y,hasHtmlWhitespace:e=>/[\t\n\f\r ]/.test(e),getLeadingAndTrailingHtmlWhitespace:e=>{let[,t,r,n]=e.match(/^([\t\n\f\r ]*)(.*?)([\t\n\f\r ]*)$/s);return{leadingWhitespace:t,trailingWhitespace:n,text:r}},canHaveInterpolation:function(e){return e.children&&!D(e)},countChars:function(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r},countParents:function(e,t){let r=0;for(let n=e.stack.length-1;n>=0;n--){let s=e.stack[n];s&&"object"==typeof s&&!Array.isArray(s)&&t(s)&&r++}return r},dedentString:N,forceBreakChildren:E,forceBreakContent:function(e){return E(e)||"element"===e.type&&e.children.length>0&&(["body","script","style"].includes(e.name)||e.children.some((e=>function(e){return e.children&&e.children.some((e=>"text"!==e.type))}(e))))||e.firstChild&&e.firstChild===e.lastChild&&"text"!==e.firstChild.type&&A(e.firstChild)&&(!e.lastChild.isTrailingSpaceSensitive||S(e.lastChild))},forceNextEmptyLine:function(e){return n(e)||e.next&&e.sourceSpan.end&&e.sourceSpan.end.line+1<e.next.sourceSpan.start.line},getLastDescendant:function e(t){return t.lastChild?e(t.lastChild):t},getNodeCssStyleDisplay:function(e,t){if(e.prev&&"comment"===e.prev.type){let t=e.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/);if(t)return t[1]}let r=!1;if("element"===e.type&&"svg"===e.namespace){if(!function(e,t){let r=e;for(;r;){if(t(r))return!0;r=r.parent}return!1}(e,(e=>"svg:foreignObject"===e.fullName)))return"svg"===e.name?"inline-block":"block";r=!0}switch(t.htmlWhitespaceSensitivity){case"strict":return"inline";case"ignore":return"block";default:return"vue"===t.parser&&e.parent&&"root"===e.parent.type?"block":"element"===e.type&&(!e.namespace||r||d(e))&&l[e.name]||p}},getNodeCssStyleWhiteSpace:k,hasPrettierIgnore:function(e){return!("attribute"===e.type||!e.parent||!e.prev)&&function(e){return"comment"===e.type&&"prettier-ignore"===e.value.trim()}(e.prev)},inferScriptParser:function(e,t){return"script"!==e.name||e.attrMap.src?"style"===e.name?function(e,t){let{lang:n}=e.attrMap;return n&&"postcss"!==n&&"css"!==n?"scss"===n?"scss":"less"===n?"less":"stylus"===n?r("stylus",t):void 0:"css"}(e,t):t&&O(e,t)?w(e)||!("src"in e.attrMap)&&r(e.attrMap.lang,t):void 0:e.attrMap.lang||e.attrMap.type?w(e):"babel"},isVueCustomBlock:B,isVueNonHtmlBlock:O,isVueScriptTag:function(e,t){return _(e,t)&&"script"===e.name},isVueSlotAttribute:function(e){let t=e.fullName;return"#"===t.charAt(0)||"slot-scope"===t||"v-slot"===t||t.startsWith("v-slot:")},isVueSfcBindingsAttribute:function(e,t){let r=e.parent;if(!_(r,t))return!1;let n=r.fullName,s=e.fullName;return"script"===n&&"setup"===s||"style"===n&&"vars"===s},isVueSfcBlock:_,isDanglingSpaceSensitiveNode:function(e){return function(e){return!F(e)&&"inline-block"!==e}(e.cssDisplay)&&!D(e)},isIndentationSensitiveNode:x,isLeadingSpaceSensitiveNode:function(e,t){let r=!(n(e)||("text"!==e.type&&"interpolation"!==e.type||!e.prev||"text"!==e.prev.type&&"interpolation"!==e.prev.type)&&(!e.parent||"none"===e.parent.cssDisplay||!P(e.parent)&&(!e.prev&&("root"===e.parent.type||P(e)&&e.parent||D(e.parent)||B(e.parent,t)||!function(e){return!F(e)&&"inline-block"!==e}(e.parent.cssDisplay))||e.prev&&!function(e){return!F(e)}(e.prev.cssDisplay))));return r&&!e.prev&&e.parent&&e.parent.tagDefinition&&e.parent.tagDefinition.ignoreFirstLf?"interpolation"===e.type:r},isPreLikeNode:P,isScriptLikeTag:D,isTextLikeNode:function(e){return"text"===e.type||"comment"===e.type},isTrailingSpaceSensitiveNode:function(e,t){return!(n(e)||("text"!==e.type&&"interpolation"!==e.type||!e.next||"text"!==e.next.type&&"interpolation"!==e.next.type)&&(!e.parent||"none"===e.parent.cssDisplay||!P(e.parent)&&(!e.next&&("root"===e.parent.type||P(e)&&e.parent||D(e.parent)||B(e.parent,t)||!function(e){return!F(e)&&"inline-block"!==e}(e.parent.cssDisplay))||e.next&&!function(e){return!F(e)}(e.next.cssDisplay))))},isWhitespaceSensitiveNode:function(e){return D(e)||"interpolation"===e.type||x(e)},isUnknownNamespace:d,preferHardlineAsLeadingSpaces:function(e){return T(e)||e.prev&&b(e.prev)||C(e)},preferHardlineAsTrailingSpaces:b,shouldPreserveContent:function(e,t){return!!("ieConditionalComment"===e.type&&e.lastChild&&!e.lastChild.isSelfClosing&&!e.lastChild.endSourceSpan||"ieConditionalComment"===e.type&&!e.complete||P(e)&&e.children.some((e=>"text"!==e.type&&"interpolation"!==e.type))||O(e,t)&&!D(e)&&"interpolation"!==e.type)},unescapeQuoteEntities:function(e){return e.replace(/'/g,"'").replace(/"/g,'"')},getTextValueParts:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.value;return e.parent.isWhitespaceSensitive?e.parent.isIndentationSensitive?u(t):u(N(y(t)),i):o(a(s,(e=>e.split(/[\t\n\f\r ]+/))(t)))}}}}),Fs=x({"node_modules/angular-html-parser/lib/compiler/src/chars.js"(e){function t(t){return e.$0<=t&&t<=e.$9}v(),Object.defineProperty(e,"__esModule",{value:!0}),e.$EOF=0,e.$BSPACE=8,e.$TAB=9,e.$LF=10,e.$VTAB=11,e.$FF=12,e.$CR=13,e.$SPACE=32,e.$BANG=33,e.$DQ=34,e.$HASH=35,e.$$=36,e.$PERCENT=37,e.$AMPERSAND=38,e.$SQ=39,e.$LPAREN=40,e.$RPAREN=41,e.$STAR=42,e.$PLUS=43,e.$COMMA=44,e.$MINUS=45,e.$PERIOD=46,e.$SLASH=47,e.$COLON=58,e.$SEMICOLON=59,e.$LT=60,e.$EQ=61,e.$GT=62,e.$QUESTION=63,e.$0=48,e.$7=55,e.$9=57,e.$A=65,e.$E=69,e.$F=70,e.$X=88,e.$Z=90,e.$LBRACKET=91,e.$BACKSLASH=92,e.$RBRACKET=93,e.$CARET=94,e.$_=95,e.$a=97,e.$b=98,e.$e=101,e.$f=102,e.$n=110,e.$r=114,e.$t=116,e.$u=117,e.$v=118,e.$x=120,e.$z=122,e.$LBRACE=123,e.$BAR=124,e.$RBRACE=125,e.$NBSP=160,e.$PIPE=124,e.$TILDA=126,e.$AT=64,e.$BT=96,e.isWhitespace=function(t){return t>=e.$TAB&&t<=e.$SPACE||t==e.$NBSP},e.isDigit=t,e.isAsciiLetter=function(t){return t>=e.$a&&t<=e.$z||t>=e.$A&&t<=e.$Z},e.isAsciiHexDigit=function(r){return r>=e.$a&&r<=e.$f||r>=e.$A&&r<=e.$F||t(r)},e.isNewLine=function(t){return t===e.$LF||t===e.$CR},e.isOctalDigit=function(t){return e.$0<=t&&t<=e.$7}}}),Ps=x({"node_modules/angular-html-parser/lib/compiler/src/aot/static_symbol.js"(e){v(),Object.defineProperty(e,"__esModule",{value:!0});var t=class{constructor(e,t,r){this.filePath=e,this.name=t,this.members=r}assertNoMembers(){if(this.members.length)throw new Error(`Illegal state: symbol without members expected, but got ${JSON.stringify(this)}.`)}};e.StaticSymbol=t;e.StaticSymbolCache=class{constructor(){this.cache=new Map}get(e,r,n){let s=`"${e}".${r}${(n=n||[]).length?`.${n.join(".")}`:""}`,i=this.cache.get(s);return i||(i=new t(e,r,n),this.cache.set(s,i)),i}}}}),ks=x({"node_modules/angular-html-parser/lib/compiler/src/util.js"(e){v(),Object.defineProperty(e,"__esModule",{value:!0});var t=/-+([a-z0-9])/g;function r(e,t,r){let n=e.indexOf(t);return-1==n?r:[e.slice(0,n).trim(),e.slice(n+1).trim()]}function n(e,t,r){return Array.isArray(e)?t.visitArray(e,r):function(e){return"object"==typeof e&&null!==e&&Object.getPrototypeOf(e)===a}(e)?t.visitStringMap(e,r):null==e||"string"==typeof e||"number"==typeof e||"boolean"==typeof e?t.visitPrimitive(e,r):t.visitOther(e,r)}e.dashCaseToCamelCase=function(e){return e.replace(t,(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t[1].toUpperCase()}))},e.splitAtColon=function(e,t){return r(e,":",t)},e.splitAtPeriod=function(e,t){return r(e,".",t)},e.visitValue=n,e.isDefined=function(e){return null!=e},e.noUndefined=function(e){return void 0===e?null:e};e.ValueTransformer=class{visitArray(e,t){return e.map((e=>n(e,this,t)))}visitStringMap(e,t){let r={};return Object.keys(e).forEach((s=>{r[s]=n(e[s],this,t)})),r}visitPrimitive(e,t){return e}visitOther(e,t){return e}},e.SyncAsync={assertSync:e=>{if(o(e))throw new Error("Illegal state: value cannot be a promise");return e},then:(e,t)=>o(e)?e.then(t):t(e),all:e=>e.some(o)?Promise.all(e):e},e.error=function(e){throw new Error(`Internal Error: ${e}`)},e.syntaxError=function(e,t){let r=Error(e);return r[s]=!0,t&&(r[i]=t),r};var s="ngSyntaxError",i="ngParseErrors";e.isSyntaxError=function(e){return e[s]},e.getParseErrors=function(e){return e[i]||[]},e.escapeRegExp=function(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")};var a=Object.getPrototypeOf({});function o(e){return!!e&&"function"==typeof e.then}e.utf8Encode=function(e){let t="";for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);if(n>=55296&&n<=56319&&e.length>r+1){let t=e.charCodeAt(r+1);t>=56320&&t<=57343&&(r++,n=(n-55296<<10)+t-56320+65536)}n<=127?t+=String.fromCharCode(n):n<=2047?t+=String.fromCharCode(n>>6&31|192,63&n|128):n<=65535?t+=String.fromCharCode(n>>12|224,n>>6&63|128,63&n|128):n<=2097151&&(t+=String.fromCharCode(n>>18&7|240,n>>12&63|128,n>>6&63|128,63&n|128))}return t},e.stringify=function e(t){if("string"==typeof t)return t;if(t instanceof Array)return"["+t.map(e).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;if(!t.toString)return"object";let r=t.toString();if(null==r)return""+r;let n=r.indexOf("\n");return-1===n?r:r.substring(0,n)},e.resolveForwardRef=function(e){return"function"==typeof e&&e.hasOwnProperty("__forward_ref__")?e():e},e.isPromise=o;e.Version=class{constructor(e){this.full=e;let t=e.split(".");this.major=t[0],this.minor=t[1],this.patch=t.slice(2).join(".")}};var u=typeof window<"u"&&window,l=typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self,p=typeof globalThis<"u"&&globalThis||u||l;e.global=p}}),Ns=x({"node_modules/angular-html-parser/lib/compiler/src/compile_metadata.js"(e){v(),Object.defineProperty(e,"__esModule",{value:!0});var t=Ps(),r=ks(),n=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/;function s(e){return e.replace(/\W/g,"_")}e.sanitizeIdentifier=s;var i,a,o=0;function u(e){if(!e||!e.reference)return null;let n=e.reference;if(n instanceof t.StaticSymbol)return n.name;if(n.__anonymousType)return n.__anonymousType;let i=r.stringify(n);return i.indexOf("(")>=0?(i="anonymous_"+o++,n.__anonymousType=i):i=s(i),i}e.identifierName=u,e.identifierModuleUrl=function(e){let n=e.reference;return n instanceof t.StaticSymbol?n.filePath:`./${r.stringify(n)}`},e.viewClassName=function(e,t){return`View_${u({reference:e})}_${t}`},e.rendererTypeName=function(e){return`RenderType_${u({reference:e})}`},e.hostViewClassName=function(e){return`HostView_${u({reference:e})}`},e.componentFactoryName=function(e){return`${u({reference:e})}NgFactory`},(a=i=e.CompileSummaryKind||(e.CompileSummaryKind={}))[a.Pipe=0]="Pipe",a[a.Directive=1]="Directive",a[a.NgModule=2]="NgModule",a[a.Injectable=3]="Injectable",e.tokenName=function(e){return null!=e.value?s(e.value):u(e.identifier)},e.tokenReference=function(e){return null!=e.identifier?e.identifier.reference:e.value};e.CompileStylesheetMetadata=class{constructor(){let{moduleUrl:e,styles:t,styleUrls:r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.moduleUrl=e||null,this.styles=p(t),this.styleUrls=p(r)}};e.CompileTemplateMetadata=class{constructor(e){let{encapsulation:t,template:r,templateUrl:n,htmlAst:s,styles:i,styleUrls:a,externalStylesheets:o,animations:u,ngContentSelectors:l,interpolation:h,isInline:d,preserveWhitespaces:f}=e;if(this.encapsulation=t,this.template=r,this.templateUrl=n,this.htmlAst=s,this.styles=p(i),this.styleUrls=p(a),this.externalStylesheets=p(o),this.animations=u?c(u):[],this.ngContentSelectors=l||[],h&&2!=h.length)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=h,this.isInline=d,this.preserveWhitespaces=f}toSummary(){return{ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation,styles:this.styles,animations:this.animations}}};var l=class{static create(e){let{isHost:t,type:s,isComponent:i,selector:a,exportAs:o,changeDetection:u,inputs:p,outputs:c,host:h,providers:d,viewProviders:f,queries:m,guards:y,viewQueries:g,entryComponents:D,template:x,componentViewType:E,rendererType:b,componentFactory:C}=e,v={},A={},S={};null!=h&&Object.keys(h).forEach((e=>{let t=h[e],r=e.match(n);null===r?S[e]=t:null!=r[1]?A[r[1]]=t:null!=r[2]&&(v[r[2]]=t)}));let T={};null!=p&&p.forEach((e=>{let t=r.splitAtColon(e,[e,e]);T[t[0]]=t[1]}));let w={};return null!=c&&c.forEach((e=>{let t=r.splitAtColon(e,[e,e]);w[t[0]]=t[1]})),new l({isHost:t,type:s,isComponent:!!i,selector:a,exportAs:o,changeDetection:u,inputs:T,outputs:w,hostListeners:v,hostProperties:A,hostAttributes:S,providers:d,viewProviders:f,queries:m,guards:y,viewQueries:g,entryComponents:D,template:x,componentViewType:E,rendererType:b,componentFactory:C})}constructor(e){let{isHost:t,type:r,isComponent:n,selector:s,exportAs:i,changeDetection:a,inputs:o,outputs:u,hostListeners:l,hostProperties:c,hostAttributes:h,providers:d,viewProviders:f,queries:m,guards:y,viewQueries:g,entryComponents:D,template:x,componentViewType:E,rendererType:b,componentFactory:C}=e;this.isHost=!!t,this.type=r,this.isComponent=n,this.selector=s,this.exportAs=i,this.changeDetection=a,this.inputs=o,this.outputs=u,this.hostListeners=l,this.hostProperties=c,this.hostAttributes=h,this.providers=p(d),this.viewProviders=p(f),this.queries=p(m),this.guards=y,this.viewQueries=p(g),this.entryComponents=p(D),this.template=x,this.componentViewType=E,this.rendererType=b,this.componentFactory=C}toSummary(){return{summaryKind:i.Directive,type:this.type,isComponent:this.isComponent,selector:this.selector,exportAs:this.exportAs,inputs:this.inputs,outputs:this.outputs,hostListeners:this.hostListeners,hostProperties:this.hostProperties,hostAttributes:this.hostAttributes,providers:this.providers,viewProviders:this.viewProviders,queries:this.queries,guards:this.guards,viewQueries:this.viewQueries,entryComponents:this.entryComponents,changeDetection:this.changeDetection,template:this.template&&this.template.toSummary(),componentViewType:this.componentViewType,rendererType:this.rendererType,componentFactory:this.componentFactory}}};e.CompileDirectiveMetadata=l;e.CompilePipeMetadata=class{constructor(e){let{type:t,name:r,pure:n}=e;this.type=t,this.name=r,this.pure=!!n}toSummary(){return{summaryKind:i.Pipe,type:this.type,name:this.name,pure:this.pure}}};e.CompileShallowModuleMetadata=class{};e.CompileNgModuleMetadata=class{constructor(e){let{type:t,providers:r,declaredDirectives:n,exportedDirectives:s,declaredPipes:i,exportedPipes:a,entryComponents:o,bootstrapComponents:u,importedModules:l,exportedModules:c,schemas:h,transitiveModule:d,id:f}=e;this.type=t||null,this.declaredDirectives=p(n),this.exportedDirectives=p(s),this.declaredPipes=p(i),this.exportedPipes=p(a),this.providers=p(r),this.entryComponents=p(o),this.bootstrapComponents=p(u),this.importedModules=p(l),this.exportedModules=p(c),this.schemas=p(h),this.id=f||null,this.transitiveModule=d||null}toSummary(){let e=this.transitiveModule;return{summaryKind:i.NgModule,type:this.type,entryComponents:e.entryComponents,providers:e.providers,modules:e.modules,exportedDirectives:e.exportedDirectives,exportedPipes:e.exportedPipes}}};function p(e){return e||[]}e.TransitiveCompileNgModuleMetadata=class{constructor(){this.directivesSet=new Set,this.directives=[],this.exportedDirectivesSet=new Set,this.exportedDirectives=[],this.pipesSet=new Set,this.pipes=[],this.exportedPipesSet=new Set,this.exportedPipes=[],this.modulesSet=new Set,this.modules=[],this.entryComponentsSet=new Set,this.entryComponents=[],this.providers=[]}addProvider(e,t){this.providers.push({provider:e,module:t})}addDirective(e){this.directivesSet.has(e.reference)||(this.directivesSet.add(e.reference),this.directives.push(e))}addExportedDirective(e){this.exportedDirectivesSet.has(e.reference)||(this.exportedDirectivesSet.add(e.reference),this.exportedDirectives.push(e))}addPipe(e){this.pipesSet.has(e.reference)||(this.pipesSet.add(e.reference),this.pipes.push(e))}addExportedPipe(e){this.exportedPipesSet.has(e.reference)||(this.exportedPipesSet.add(e.reference),this.exportedPipes.push(e))}addModule(e){this.modulesSet.has(e.reference)||(this.modulesSet.add(e.reference),this.modules.push(e))}addEntryComponent(e){this.entryComponentsSet.has(e.componentType)||(this.entryComponentsSet.add(e.componentType),this.entryComponents.push(e))}};function c(e){return e.reduce(((e,t)=>{let r=Array.isArray(t)?c(t):t;return e.concat(r)}),[])}function h(e){return e.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/,"ng:///")}e.ProviderMeta=class{constructor(e,t){let{useClass:r,useValue:n,useExisting:s,useFactory:i,deps:a,multi:o}=t;this.token=e,this.useClass=r||null,this.useValue=n,this.useExisting=s,this.useFactory=i||null,this.dependencies=a||null,this.multi=!!o}},e.flatten=c,e.templateSourceUrl=function(e,r,n){let s;return s=n.isInline?r.type.reference instanceof t.StaticSymbol?`${r.type.reference.filePath}.${r.type.reference.name}.html`:`${u(e)}/${u(r.type)}.html`:n.templateUrl,r.type.reference instanceof t.StaticSymbol?s:h(s)},e.sharedStylesheetJitUrl=function(e,t){let r=e.moduleUrl.split(/\/\\/g);return h(`css/${t}${r[r.length-1]}.ngstyle.js`)},e.ngModuleJitUrl=function(e){return h(`${u(e.type)}/module.ngfactory.js`)},e.templateJitUrl=function(e,t){return h(`${u(e)}/${u(t.type)}.ngfactory.js`)}}}),Is=x({"node_modules/angular-html-parser/lib/compiler/src/parse_util.js"(e){v(),Object.defineProperty(e,"__esModule",{value:!0});var t=Fs(),r=Ns(),n=class{constructor(e,t,r,n){this.file=e,this.offset=t,this.line=r,this.col=n}toString(){return null!=this.offset?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(e){let r=this.file.content,s=r.length,i=this.offset,a=this.line,o=this.col;for(;i>0&&e<0;)if(i--,e++,r.charCodeAt(i)==t.$LF){a--;let e=r.substr(0,i-1).lastIndexOf(String.fromCharCode(t.$LF));o=e>0?i-e:i}else o--;for(;i<s&&e>0;){let n=r.charCodeAt(i);i++,e--,n==t.$LF?(a++,o=0):o++}return new n(this.file,i,a,o)}getContext(e,t){let r=this.file.content,n=this.offset;if(null!=n){n>r.length-1&&(n=r.length-1);let s=n,i=0,a=0;for(;i<e&&n>0&&(n--,i++,"\n"!=r[n]||++a!=t););for(i=0,a=0;i<e&&s<r.length-1&&(s++,i++,"\n"!=r[s]||++a!=t););return{before:r.substring(n,this.offset),after:r.substring(this.offset,s+1)}}return null}};e.ParseLocation=n;var s=class{constructor(e,t){this.content=e,this.url=t}};e.ParseSourceFile=s;var i,a,o=class{constructor(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.start=e,this.end=t,this.details=r}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}};e.ParseSourceSpan=o,e.EMPTY_PARSE_LOCATION=new n(new s("",""),0,0,0),e.EMPTY_SOURCE_SPAN=new o(e.EMPTY_PARSE_LOCATION,e.EMPTY_PARSE_LOCATION),(a=i=e.ParseErrorLevel||(e.ParseErrorLevel={}))[a.WARNING=0]="WARNING",a[a.ERROR=1]="ERROR";e.ParseError=class{constructor(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.ERROR;this.span=e,this.msg=t,this.level=r}contextualMessage(){let e=this.span.start.getContext(100,3);return e?`${this.msg} ("${e.before}[${i[this.level]} ->]${e.after}")`:this.msg}toString(){let e=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${e}`}},e.typeSourceSpan=function(e,t){let i=r.identifierModuleUrl(t),a=null!=i?`in ${e} ${r.identifierName(t)} in ${i}`:`in ${e} ${r.identifierName(t)}`,u=new s("",a);return new o(new n(u,-1,-1,-1),new n(u,-1,-1,-1))},e.r3JitTypeSourceSpan=function(e,t,r){let i=new s("",`in ${e} ${t} in ${r}`);return new o(new n(i,-1,-1,-1),new n(i,-1,-1,-1))}}}),Bs=x({"src/language-html/print-preprocess.js"(e,t){v();var{ParseSourceSpan:r}=Is(),{htmlTrim:n,getLeadingAndTrailingHtmlWhitespace:s,hasHtmlWhitespace:i,canHaveInterpolation:a,getNodeCssStyleDisplay:o,isDanglingSpaceSensitiveNode:u,isIndentationSensitiveNode:l,isLeadingSpaceSensitiveNode:p,isTrailingSpaceSensitiveNode:c,isWhitespaceSensitiveNode:h,isVueScriptTag:d}=ws(),f=[function(e){e.walk((e=>{if("element"===e.type&&e.tagDefinition.ignoreFirstLf&&e.children.length>0&&"text"===e.children[0].type&&"\n"===e.children[0].value[0]){let t=e.children[0];1===t.value.length?e.removeChild(t):t.value=t.value.slice(1)}}))},function(e){let t=e=>"element"===e.type&&e.prev&&"ieConditionalStartComment"===e.prev.type&&e.prev.sourceSpan.end.offset===e.startSourceSpan.start.offset&&e.firstChild&&"ieConditionalEndComment"===e.firstChild.type&&e.firstChild.sourceSpan.start.offset===e.startSourceSpan.end.offset;e.walk((e=>{if(e.children)for(let n=0;n<e.children.length;n++){let s=e.children[n];if(!t(s))continue;let i=s.prev,a=s.firstChild;e.removeChild(i),n--;let o=new r(i.sourceSpan.start,a.sourceSpan.end),u=new r(o.start,s.sourceSpan.end);s.condition=i.condition,s.sourceSpan=u,s.startSourceSpan=o,s.removeChild(a)}}))},function(e){return function(e,t,n){e.walk((e=>{if(e.children)for(let s=0;s<e.children.length;s++){let i=e.children[s];if("text"!==i.type&&!t(i))continue;"text"!==i.type&&(i.type="text",i.value=n(i));let a=i.prev;!a||"text"!==a.type||(a.value+=i.value,a.sourceSpan=new r(a.sourceSpan.start,i.sourceSpan.end),e.removeChild(i),s--)}}))}(e,(e=>"cdata"===e.type),(e=>`<![CDATA[${e.value}]]>`))},function(e,t){if("html"===t.parser)return;let n=/{{(.+?)}}/s;e.walk((e=>{if(a(e))for(let t of e.children){if("text"!==t.type)continue;let s=t.sourceSpan.start,i=null,a=t.value.split(n);for(let n=0;n<a.length;n++,s=i){let o=a[n];n%2!=0?(i=s.moveBy(o.length+4),e.insertChildBefore(t,{type:"interpolation",sourceSpan:new r(s,i),children:0===o.length?[]:[{type:"text",value:o,sourceSpan:new r(s.moveBy(2),i.moveBy(-2))}]})):(i=s.moveBy(o.length),o.length>0&&e.insertChildBefore(t,{type:"text",value:o,sourceSpan:new r(s,i)}))}e.removeChild(t)}}))},function(e){e.walk((e=>{if(!e.children)return;if(0===e.children.length||1===e.children.length&&"text"===e.children[0].type&&0===n(e.children[0].value).length)return e.hasDanglingSpaces=e.children.length>0,void(e.children=[]);let t=h(e),i=l(e);if(!t)for(let t=0;t<e.children.length;t++){let n=e.children[t];if("text"!==n.type)continue;let{leadingWhitespace:i,text:a,trailingWhitespace:o}=s(n.value),u=n.prev,l=n.next;a?(n.value=a,n.sourceSpan=new r(n.sourceSpan.start.moveBy(i.length),n.sourceSpan.end.moveBy(-o.length)),i&&(u&&(u.hasTrailingSpaces=!0),n.hasLeadingSpaces=!0),o&&(n.hasTrailingSpaces=!0,l&&(l.hasLeadingSpaces=!0))):(e.removeChild(n),t--,(i||o)&&(u&&(u.hasTrailingSpaces=!0),l&&(l.hasLeadingSpaces=!0)))}e.isWhitespaceSensitive=t,e.isIndentationSensitive=i}))},function(e,t){e.walk((e=>{e.cssDisplay=o(e,t)}))},function(e){e.walk((e=>{e.isSelfClosing=!e.children||"element"===e.type&&(e.tagDefinition.isVoid||e.startSourceSpan===e.endSourceSpan)}))},function(e,t){e.walk((e=>{"element"===e.type&&(e.hasHtmComponentClosingTag=e.endSourceSpan&&/^<\s*\/\s*\/\s*>$/.test(t.originalText.slice(e.endSourceSpan.start.offset,e.endSourceSpan.end.offset)))}))},function(e,t){e.walk((e=>{let{children:r}=e;if(r){if(0===r.length)return void(e.isDanglingSpaceSensitive=u(e));for(let e of r)e.isLeadingSpaceSensitive=p(e,t),e.isTrailingSpaceSensitive=c(e,t);for(let e=0;e<r.length;e++){let t=r[e];t.isLeadingSpaceSensitive=(0===e||t.prev.isTrailingSpaceSensitive)&&t.isLeadingSpaceSensitive,t.isTrailingSpaceSensitive=(e===r.length-1||t.next.isLeadingSpaceSensitive)&&t.isTrailingSpaceSensitive}}}))},function(e){let t=e=>"element"===e.type&&0===e.attrs.length&&1===e.children.length&&"text"===e.firstChild.type&&!i(e.children[0].value)&&!e.firstChild.hasLeadingSpaces&&!e.firstChild.hasTrailingSpaces&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces&&e.prev&&"text"===e.prev.type&&e.next&&"text"===e.next.type;e.walk((e=>{if(e.children)for(let n=0;n<e.children.length;n++){let s=e.children[n];if(!t(s))continue;let i=s.prev,a=s.next;i.value+=`<${s.rawName}>`+s.firstChild.value+`</${s.rawName}>`+a.value,i.sourceSpan=new r(i.sourceSpan.start,a.sourceSpan.end),i.isTrailingSpaceSensitive=a.isTrailingSpaceSensitive,i.hasTrailingSpaces=a.hasTrailingSpaces,e.removeChild(s),n--,e.removeChild(a)}}))},function(e,t){if("vue"===t.parser){let r=e.children.find((e=>d(e,t)));if(!r)return;let{lang:n}=r.attrMap;("ts"===n||"typescript"===n)&&(t.__should_parse_vue_template_with_ts=!0)}}];t.exports=function(e,t){for(let r of f)r(e,t);return e}}}),_s=x({"src/language-html/pragma.js"(e,t){v(),t.exports={hasPragma:function(e){return/^\s*<!--\s*@(?:format|prettier)\s*-->/.test(e)},insertPragma:function(e){return"\x3c!-- @format --\x3e\n\n"+e.replace(/^\s*\n/,"")}}}}),Os=x({"src/language-html/loc.js"(e,t){v(),t.exports={locStart:function(e){return e.sourceSpan.start.offset},locEnd:function(e){return e.sourceSpan.end.offset}}}}),Ls=x({"src/language-html/print/tag.js"(e,t){v();var r=Wt(),{isNonEmptyArray:n}=de(),{builders:{indent:s,join:i,line:a,softline:o,hardline:u},utils:{replaceTextEndOfLine:l}}=W(),{locStart:p,locEnd:c}=Os(),{isTextLikeNode:h,getLastDescendant:d,isPreLikeNode:f,hasPrettierIgnore:m,shouldPreserveContent:y,isVueSfcBlock:g}=ws();function D(e,t){return e.lastChild&&F(e.lastChild)?"":[E(e,t),C(e,t)]}function x(e,t){return(e.next?T(e.next):w(e.parent))?"":[A(e,t),b(e,t)]}function E(e,t){return w(e)?A(e.lastChild,t):""}function b(e,t){return F(e)?C(e.parent,t):P(e)?O(e.next):""}function C(e,t){if(r(!e.isSelfClosing),S(e,t))return"";switch(e.type){case"ieConditionalComment":return"<!";case"element":if(e.hasHtmComponentClosingTag)return"<//";default:return`</${e.rawName}`}}function A(e,t){if(S(e,t))return"";switch(e.type){case"ieConditionalComment":case"ieConditionalEndComment":return"[endif]--\x3e";case"ieConditionalStartComment":return"]>\x3c!--\x3e";case"interpolation":return"}}";case"element":if(e.isSelfClosing)return"/>";default:return">"}}function S(e,t){return!e.isSelfClosing&&!e.endSourceSpan&&(m(e)||y(e.parent,t))}function T(e){return e.prev&&"docType"!==e.prev.type&&!h(e.prev)&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function w(e){return e.lastChild&&e.lastChild.isTrailingSpaceSensitive&&!e.lastChild.hasTrailingSpaces&&!h(d(e.lastChild))&&!f(e)}function F(e){return!e.next&&!e.hasTrailingSpaces&&e.isTrailingSpaceSensitive&&h(d(e))}function P(e){return e.next&&!h(e.next)&&h(e)&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces}function k(e){return!e.prev&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function N(e,t,r){let h=e.getValue();if(!n(h.attrs))return h.isSelfClosing?" ":"";let d=h.prev&&"comment"===h.prev.type&&function(e){let t=e.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/s);return!!t&&(!t[1]||t[1].split(/\s+/))}(h.prev.value),f="boolean"==typeof d?()=>d:Array.isArray(d)?e=>d.includes(e.rawName):()=>!1,m=e.map((e=>{let n=e.getValue();return f(n)?l(t.originalText.slice(p(n),c(n))):r()}),"attrs"),y="element"===h.type&&"script"===h.fullName&&1===h.attrs.length&&"src"===h.attrs[0].fullName&&0===h.children.length,D=t.singleAttributePerLine&&h.attrs.length>1&&!g(h,t)?u:a,x=[s([y?" ":a,i(D,m)])];return h.firstChild&&k(h.firstChild)||h.isSelfClosing&&w(h.parent)||y?x.push(h.isSelfClosing?" ":""):x.push(t.bracketSameLine?h.isSelfClosing?" ":"":h.isSelfClosing?a:o),x}function I(e){return e.firstChild&&k(e.firstChild)?"":L(e)}function B(e,t){return e.prev&&P(e.prev)?"":[_(e,t),O(e)]}function _(e,t){return k(e)?L(e.parent):T(e)?A(e.prev,t):""}function O(e){switch(e.type){case"ieConditionalComment":case"ieConditionalStartComment":return`\x3c!--[if ${e.condition}`;case"ieConditionalEndComment":return"\x3c!--<!";case"interpolation":return"{{";case"docType":return"<!DOCTYPE";case"element":if(e.condition)return`\x3c!--[if ${e.condition}]>\x3c!--\x3e<${e.rawName}`;default:return`<${e.rawName}`}}function L(e){switch(r(!e.isSelfClosing),e.type){case"ieConditionalComment":return"]>";case"element":if(e.condition)return">\x3c!--<![endif]--\x3e";default:return">"}}t.exports={printClosingTag:function(e,t){return[e.isSelfClosing?"":D(e,t),x(e,t)]},printClosingTagStart:D,printClosingTagStartMarker:C,printClosingTagEndMarker:A,printClosingTagSuffix:b,printClosingTagEnd:x,needsToBorrowLastChildClosingTagEndMarker:w,needsToBorrowParentClosingTagStartMarker:F,needsToBorrowPrevClosingTagEndMarker:T,printOpeningTag:function(e,t,r){let n=e.getValue();return[B(n,t),N(e,t,r),n.isSelfClosing?"":I(n)]},printOpeningTagStart:B,printOpeningTagPrefix:_,printOpeningTagStartMarker:O,printOpeningTagEndMarker:L,needsToBorrowNextOpeningTagStartMarker:P,needsToBorrowParentOpeningTagEndMarker:k}}}),js=x({"node_modules/parse-srcset/src/parse-srcset.js"(r,a){v(),s=[],void 0===(i="function"==typeof(n=function(){return function(e,t){var r=t&&t.logger||console;function n(e){return" "===e||"\t"===e||"\n"===e||"\f"===e||"\r"===e}function s(t){var r,n=t.exec(e.substring(g));if(n)return r=n[0],g+=r.length,r}for(var i,a,o,u,l,p=e.length,c=/^[ \t\n\r\u000c]+/,h=/^[, \t\n\r\u000c]+/,d=/^[^ \t\n\r\u000c]+/,f=/[,]+$/,m=/^\d+$/,y=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,g=0,D=[];;){if(s(h),g>=p)return D;i=s(d),a=[],","===i.slice(-1)?(i=i.replace(f,""),E()):x()}function x(){for(s(c),o="",u="in descriptor";;){if(l=e.charAt(g),"in descriptor"===u)if(n(l))o&&(a.push(o),o="",u="after descriptor");else{if(","===l)return g+=1,o&&a.push(o),void E();if("("===l)o+=l,u="in parens";else{if(""===l)return o&&a.push(o),void E();o+=l}}else if("in parens"===u)if(")"===l)o+=l,u="in descriptor";else{if(""===l)return a.push(o),void E();o+=l}else if("after descriptor"===u&&!n(l)){if(""===l)return void E();u="in descriptor",g-=1}g+=1}}function E(){var t,n,s,o,u,l,p,c,h,d=!1,f={};for(o=0;o<a.length;o++)l=(u=a[o])[u.length-1],p=u.substring(0,u.length-1),c=parseInt(p,10),h=parseFloat(p),m.test(p)&&"w"===l?((t||n)&&(d=!0),0===c?d=!0:t=c):y.test(p)&&"x"===l?((t||n||s)&&(d=!0),h<0?d=!0:n=h):m.test(p)&&"h"===l?((s||n)&&(d=!0),0===c?d=!0:s=c):d=!0;d?r&&r.error&&r.error("Invalid srcset descriptor found in '"+e+"' at '"+u+"'."):(f.url=i,t&&(f.w=t),n&&(f.d=n),s&&(f.h=s),D.push(f))}}})?n.apply(t,s):n)||(e.exports=i)}}),Ms=x({"src/language-html/syntax-attribute.js"(e,t){v();var r=js(),{builders:{ifBreak:n,join:s,line:i}}=W();t.exports={printImgSrcset:function(e){let t=r(e,{logger:{error(e){throw new Error(e)}}}),a=t.some((e=>{let{w:t}=e;return t})),o=t.some((e=>{let{h:t}=e;return t}));if(a+o+t.some((e=>{let{d:t}=e;return t}))>1)throw new Error("Mixed descriptor in srcset is not supported");let u=a?"w":o?"h":"d",l=a?"w":o?"h":"x",p=e=>Math.max(...e),c=t.map((e=>e.url)),h=p(c.map((e=>e.length))),d=t.map((e=>e[u])).map((e=>e?e.toString():"")),f=d.map((e=>{let t=e.indexOf(".");return-1===t?e.length:t})),m=p(f);return s([",",i],c.map(((e,t)=>{let r=[e],s=d[t];if(s){let i=h-e.length+1,a=m-f[t],o=" ".repeat(i+a);r.push(n(o," "),s+l)}return r})))},printClassNames:function(e){return e.trim().split(/\s+/).join(" ")}}}}),Rs=x({"src/language-html/syntax-vue.js"(e,t){v();var{builders:{group:r}}=W();t.exports={isVueEventBindingExpression:function(e){let t=e.trim();return/^(?:[\w$]+|\([^)]*\))\s*=>|^function\s*\(/.test(t)||/^[$A-Z_a-z][\w$]*(?:\.[$A-Z_a-z][\w$]*|\['[^']*']|\["[^"]*"]|\[\d+]|\[[$A-Z_a-z][\w$]*])*$/.test(t)},printVueFor:function(e,t){let{left:n,operator:s,right:i}=function(e){let t=/(.*?)\s+(in|of)\s+(.*)/s,r=/,([^,\]}]*)(?:,([^,\]}]*))?$/,n=/^\(|\)$/g,s=e.match(t);if(!s)return;let i={};if(i.for=s[3].trim(),!i.for)return;let a=s[1].trim().replace(n,""),o=a.match(r);o?(i.alias=a.replace(r,""),i.iterator1=o[1].trim(),o[2]&&(i.iterator2=o[2].trim())):i.alias=a;let u=[i.alias,i.iterator1,i.iterator2];return u.some(((e,t)=>!e&&(0===t||u.slice(t+1).some(Boolean))))?void 0:{left:u.filter(Boolean).join(","),operator:s[2],right:i.for}}(e);return[r(t(`function _(${n}) {}`,{parser:"babel",__isVueForBindingLeft:!0}))," ",s," ",t(i,{parser:"__js_expression"},{stripTrailingHardline:!0})]},printVueBindings:function(e,t){return t(`function _(${e}) {}`,{parser:"babel",__isVueBindings:!0})}}}}),$s=x({"src/language-html/get-node-content.js"(e,t){v();var{needsToBorrowParentClosingTagStartMarker:r,printClosingTagStartMarker:n,needsToBorrowLastChildClosingTagEndMarker:s,printClosingTagEndMarker:i,needsToBorrowParentOpeningTagEndMarker:a,printOpeningTagEndMarker:o}=Ls();t.exports=function(e,t){let u=e.startSourceSpan.end.offset;e.firstChild&&a(e.firstChild)&&(u-=o(e).length);let l=e.endSourceSpan.start.offset;return e.lastChild&&r(e.lastChild)?l+=n(e,t).length:s(e)&&(l-=i(e.lastChild,t).length),t.originalText.slice(u,l)}}}),Us=x({"src/language-html/embed.js"(e,t){v();var{builders:{breakParent:r,group:n,hardline:s,indent:i,line:a,fill:o,softline:u},utils:{mapDoc:l,replaceTextEndOfLine:p}}=W(),c=Nn(),{printClosingTag:h,printClosingTagSuffix:d,needsToBorrowPrevClosingTagEndMarker:f,printOpeningTagPrefix:m,printOpeningTag:y}=Ls(),{printImgSrcset:g,printClassNames:D}=Ms(),{printVueFor:x,printVueBindings:E,isVueEventBindingExpression:b}=Rs(),{isScriptLikeTag:C,isVueNonHtmlBlock:A,inferScriptParser:S,htmlTrimPreserveIndentation:T,dedentString:w,unescapeQuoteEntities:F,isVueSlotAttribute:P,isVueSfcBindingsAttribute:k,getTextValueParts:N}=ws(),I=$s();function B(e,t,r){let s=t=>new RegExp(t.join("|")).test(e.fullName),l=()=>F(e.value),c=!1,h=(e,t)=>{let r="NGRoot"===e.type?"NGMicrosyntax"===e.node.type&&1===e.node.body.length&&"NGMicrosyntaxExpression"===e.node.body[0].type?e.node.body[0].expression:e.node:"JsExpressionRoot"===e.type?e.node:e;r&&("ObjectExpression"===r.type||"ArrayExpression"===r.type||"__vue_expression"===t.parser&&("TemplateLiteral"===r.type||"StringLiteral"===r.type))&&(c=!0)},d=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return n([i([u,e]),t?u:""])},f=e=>c?(e=>n(e))(e):d(e),m=(e,r)=>t(e,Object.assign({__onHtmlBindingRoot:h,__embeddedInHtml:!0},r));if("srcset"===e.fullName&&("img"===e.parent.fullName||"source"===e.parent.fullName))return d(g(l()));if("class"===e.fullName&&!r.parentParser){let e=l();if(!e.includes("{{"))return D(e)}if("style"===e.fullName&&!r.parentParser){let e=l();if(!e.includes("{{"))return d(m(e,{parser:"css",__isHTMLStyleAttribute:!0}))}if("vue"===r.parser){if("v-for"===e.fullName)return x(l(),m);if(P(e)||k(e,r))return E(l(),m);let t=["^:","^v-bind:"],n=["^v-"];if(s(["^@","^v-on:"])){let e=l(),t=b(e)?"__js_expression":r.__should_parse_vue_template_with_ts?"__vue_ts_event_binding":"__vue_event_binding";return f(m(e,{parser:t}))}if(s(t))return f(m(l(),{parser:"__vue_expression"}));if(s(n))return f(m(l(),{parser:"__js_expression"}))}if("angular"===r.parser){let t=(e,t)=>m(e,Object.assign(Object.assign({},t),{},{trailingComma:"none"})),r=["^\\*"],u=["^\\[.+\\]$","^bind(on)?-","^ng-(if|show|hide|class|style)$"],c=["^i18n(-.+)?$"];if(s(["^\\(.+\\)$","^on-"]))return f(t(l(),{parser:"__ng_action"}));if(s(u))return f(t(l(),{parser:"__ng_binding"}));if(s(c)){let t=l().trim();return d(o(N(e,t)),!t.includes("@@"))}if(s(r))return f(t(l(),{parser:"__ng_directive"}));let h=/{{(.+?)}}/s,y=l();if(h.test(y)){let e=[];for(let[r,s]of y.split(h).entries())if(r%2==0)e.push(p(s));else try{e.push(n(["{{",i([a,t(s,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})]),a,"}}"]))}catch{e.push("{{",p(s),"}}")}return n(e)}}return null}t.exports=function(e,t,o,u){let p=e.getValue();switch(p.type){case"element":if(C(p)||"interpolation"===p.type)return;if(!p.isSelfClosing&&A(p,u)){let r=S(p,u);if(!r)return;let i=I(p,u),a=/^\s*$/.test(i),l="";return a||(l=o(T(i),{parser:r,__embeddedInHtml:!0},{stripTrailingHardline:!0}),a=""===l),[m(p,u),n(y(e,u,t)),a?"":s,l,a?"":s,h(p,u),d(p,u)]}break;case"text":if(C(p.parent)){let e=S(p.parent,u);if(e){let t="markdown"===e?w(p.value.replace(/^[^\S\n]*\n/,"")):p.value,n={parser:e,__embeddedInHtml:!0};if("html"===u.parser&&"babel"===e){let e="script",{attrMap:t}=p.parent;t&&("module"===t.type||"text/babel"===t.type&&"module"===t["data-type"])&&(e="module"),n.__babelSourceType=e}return[r,m(p,u),o(t,n,{stripTrailingHardline:!0}),d(p,u)]}}else if("interpolation"===p.parent.type){let e={__isInHtmlInterpolation:!0,__embeddedInHtml:!0};return"angular"===u.parser?(e.parser="__ng_interpolation",e.trailingComma="none"):"vue"===u.parser?e.parser=u.__should_parse_vue_template_with_ts?"__vue_ts_expression":"__vue_expression":e.parser="__js_expression",[i([a,o(p.value,e,{stripTrailingHardline:!0})]),p.parent.next&&f(p.parent.next)?" ":a]}break;case"attribute":{if(!p.value)break;if(/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(u.originalText.slice(p.valueSpan.start.offset,p.valueSpan.end.offset)))return[p.rawName,"=",p.value];if("lwc"===u.parser&&/^{.*}$/s.test(u.originalText.slice(p.valueSpan.start.offset,p.valueSpan.end.offset)))return[p.rawName,"=",p.value];let e=B(p,((e,t)=>o(e,Object.assign({__isInHtmlAttribute:!0,__embeddedInHtml:!0},t),{stripTrailingHardline:!0})),u);if(e)return[p.rawName,'="',n(l(e,(e=>"string"==typeof e?e.replace(/"/g,"""):e))),'"'];break}case"front-matter":return c(p,o)}}}}),zs=x({"src/language-html/print/children.js"(e,t){v();var{builders:{breakParent:r,group:n,ifBreak:s,line:i,softline:a,hardline:o},utils:{replaceTextEndOfLine:u}}=W(),{locStart:l,locEnd:p}=Os(),{forceBreakChildren:c,forceNextEmptyLine:h,isTextLikeNode:d,hasPrettierIgnore:f,preferHardlineAsLeadingSpaces:m}=ws(),{printOpeningTagPrefix:y,needsToBorrowNextOpeningTagStartMarker:g,printOpeningTagStartMarker:D,needsToBorrowPrevClosingTagEndMarker:x,printClosingTagEndMarker:E,printClosingTagSuffix:b,needsToBorrowParentClosingTagStartMarker:C}=Ls();function A(e,t,r){let n=e.getValue();return f(n)?[y(n,t),...u(t.originalText.slice(l(n)+(n.prev&&g(n.prev)?D(n).length:0),p(n)-(n.next&&x(n.next)?E(n,t).length:0))),b(n,t)]:r()}function S(e,t){return d(e)&&d(t)?e.isTrailingSpaceSensitive?e.hasTrailingSpaces?m(t)?o:i:"":m(t)?o:a:g(e)&&(f(t)||t.firstChild||t.isSelfClosing||"element"===t.type&&t.attrs.length>0)||"element"===e.type&&e.isSelfClosing&&x(t)?"":!t.isLeadingSpaceSensitive||m(t)||x(t)&&e.lastChild&&C(e.lastChild)&&e.lastChild.lastChild&&C(e.lastChild.lastChild)?o:t.hasLeadingSpaces?i:a}t.exports={printChildren:function(e,t,i){let u=e.getValue();if(c(u))return[r,...e.map((e=>{let r=e.getValue(),n=r.prev?S(r.prev,r):"";return[n?[n,h(r.prev)?o:""]:"",A(e,t,i)]}),"children")];let l=u.children.map((()=>Symbol("")));return e.map(((e,r)=>{let u=e.getValue();if(d(u)){if(u.prev&&d(u.prev)){let r=S(u.prev,u);if(r)return h(u.prev)?[o,o,A(e,t,i)]:[r,A(e,t,i)]}return A(e,t,i)}let p=[],c=[],f=[],m=[],y=u.prev?S(u.prev,u):"",g=u.next?S(u,u.next):"";return y&&(h(u.prev)?p.push(o,o):y===o?p.push(o):d(u.prev)?c.push(y):c.push(s("",a,{groupId:l[r-1]}))),g&&(h(u)?d(u.next)&&m.push(o,o):g===o?d(u.next)&&m.push(o):f.push(g)),[...p,n([...c,n([A(e,t,i),...f],{id:l[r]})]),...m]}),"children")}}}}),Vs=x({"src/language-html/print/element.js"(e,t){v();var{builders:{breakParent:r,dedentToRoot:n,group:s,ifBreak:i,indentIfBreak:a,indent:o,line:u,softline:l},utils:{replaceTextEndOfLine:p}}=W(),c=$s(),{shouldPreserveContent:h,isScriptLikeTag:d,isVueCustomBlock:f,countParents:m,forceBreakContent:y}=ws(),{printOpeningTagPrefix:g,printOpeningTag:D,printClosingTagSuffix:x,printClosingTag:E,needsToBorrowPrevClosingTagEndMarker:b,needsToBorrowLastChildClosingTagEndMarker:C}=Ls(),{printChildren:A}=zs();t.exports={printElement:function(e,t,v){let S=e.getValue();if(h(S,t))return[g(S,t),s(D(e,t,v)),...p(c(S,t)),...E(S,t),x(S,t)];let T=1===S.children.length&&"interpolation"===S.firstChild.type&&S.firstChild.isLeadingSpaceSensitive&&!S.firstChild.hasLeadingSpaces&&S.lastChild.isTrailingSpaceSensitive&&!S.lastChild.hasTrailingSpaces,w=Symbol("element-attr-group-id"),F=r=>s([s(D(e,t,v),{id:w}),r,E(S,t)]);return 0===S.children.length?F(S.hasDanglingSpaces&&S.isDanglingSpaceSensitive?u:""):F([y(S)?r:"",(P=[T?i(l,"",{groupId:w}):S.firstChild.hasLeadingSpaces&&S.firstChild.isLeadingSpaceSensitive?u:"text"===S.firstChild.type&&S.isWhitespaceSensitive&&S.isIndentationSensitive?n(l):l,A(e,t,v)],T?a(P,{groupId:w}):!d(S)&&!f(S,t)||"root"!==S.parent.type||"vue"!==t.parser||t.vueIndentScriptAndStyle?o(P):P),(S.next?b(S.next):C(S.parent))?S.lastChild.hasTrailingSpaces&&S.lastChild.isTrailingSpaceSensitive?" ":"":T?i(l,"",{groupId:w}):S.lastChild.hasTrailingSpaces&&S.lastChild.isTrailingSpaceSensitive?u:("comment"===S.lastChild.type||"text"===S.lastChild.type&&S.isWhitespaceSensitive&&S.isIndentationSensitive)&&new RegExp(`\\n[\\t ]{${t.tabWidth*m(e,(e=>e.parent&&"root"!==e.parent.type))}}$`).test(S.lastChild.value)?"":l]);var P}}}}),Ws=x({"src/language-html/printer-html.js"(e,t){v();var{builders:{fill:r,group:n,hardline:s,literalline:i},utils:{cleanDoc:a,getDocParts:o,isConcat:u,replaceTextEndOfLine:l}}=W(),p=As(),{countChars:c,unescapeQuoteEntities:h,getTextValueParts:d}=ws(),f=Bs(),{insertPragma:m}=_s(),{locStart:y,locEnd:g}=Os(),D=Us(),{printClosingTagSuffix:x,printClosingTagEnd:E,printOpeningTagPrefix:b,printOpeningTagStart:C}=Ls(),{printElement:A}=Vs(),{printChildren:S}=zs();t.exports={preprocess:f,print:function(e,t,p){let f=e.getValue();switch(f.type){case"front-matter":return l(f.raw);case"root":return t.__onHtmlRoot&&t.__onHtmlRoot(f),[n(S(e,t,p)),s];case"element":case"ieConditionalComment":return A(e,t,p);case"ieConditionalStartComment":case"ieConditionalEndComment":return[C(f),E(f)];case"interpolation":return[C(f,t),...e.map(p,"children"),E(f,t)];case"text":{if("interpolation"===f.parent.type){let e=/\n[^\S\n]*$/,t=e.test(f.value),r=t?f.value.replace(e,""):f.value;return[...l(r),t?s:""]}let e=a([b(f,t),...d(f),x(f,t)]);return u(e)||"fill"===e.type?r(o(e)):e}case"docType":return[n([C(f,t)," ",f.value.replace(/^html\b/i,"html").replace(/\s+/g," ")]),E(f,t)];case"comment":return[b(f,t),...l(t.originalText.slice(y(f),g(f)),i),x(f,t)];case"attribute":{if(null===f.value)return f.rawName;let e=h(f.value),t=c(e,"'")<c(e,'"')?"'":'"';return[f.rawName,"=",t,...l('"'===t?e.replace(/"/g,"""):e.replace(/'/g,"'")),t]}default:throw new Error(`Unexpected node type ${f.type}`)}},insertPragma:m,massageAstNode:p,embed:D}}}),qs=x({"src/language-html/options.js"(e,t){v();var r=En(),n="HTML";t.exports={bracketSameLine:r.bracketSameLine,htmlWhitespaceSensitivity:{since:"1.15.0",category:n,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},singleAttributePerLine:r.singleAttributePerLine,vueIndentScriptAndStyle:{since:"1.19.0",category:n,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}}}}),Hs=x({"src/language-html/parsers.js"(){v()}}),Js=x({"node_modules/linguist-languages/data/HTML.json"(e,t){t.exports={name:"HTML",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".html",".hta",".htm",".html.hl",".inc",".xht",".xhtml"],languageId:146}}}),Gs=x({"node_modules/linguist-languages/data/Vue.json"(e,t){t.exports={name:"Vue",type:"markup",color:"#41b883",extensions:[".vue"],tmScope:"text.html.vue",aceMode:"html",languageId:391}}}),Xs=x({"src/language-html/index.js"(e,t){v();var r=Yt(),n=Ws(),s=qs(),i=Hs(),a=[r(Js(),(()=>({name:"Angular",since:"1.15.0",parsers:["angular"],vscodeLanguageIds:["html"],extensions:[".component.html"],filenames:[]}))),r(Js(),(e=>({since:"1.15.0",parsers:["html"],vscodeLanguageIds:["html"],extensions:[...e.extensions,".mjml"]}))),r(Js(),(()=>({name:"Lightning Web Components",since:"1.17.0",parsers:["lwc"],vscodeLanguageIds:["html"],extensions:[],filenames:[]}))),r(Gs(),(()=>({since:"1.10.0",parsers:["vue"],vscodeLanguageIds:["vue"]})))],o={html:n};t.exports={languages:a,printers:o,options:s,parsers:i}}}),Ks=x({"src/language-yaml/pragma.js"(e,t){v(),t.exports={isPragma:function(e){return/^\s*@(?:prettier|format)\s*$/.test(e)},hasPragma:function(e){return/^\s*#[^\S\n]*@(?:prettier|format)\s*?(?:\n|$)/.test(e)},insertPragma:function(e){return`# @format\n\n${e}`}}}}),Zs=x({"src/language-yaml/loc.js"(e,t){v(),t.exports={locStart:function(e){return e.position.start.offset},locEnd:function(e){return e.position.end.offset}}}}),Ys=x({"src/language-yaml/embed.js"(e,t){v(),t.exports=function(e,t,r,n){if("root"===e.getValue().type&&n.filepath&&/(?:[/\\]|^)\.(?:prettier|stylelint|lintstaged)rc$/.test(n.filepath))return r(n.originalText,Object.assign(Object.assign({},n),{},{parser:"json"}))}}}),Qs=x({"src/language-yaml/utils.js"(e,t){v();var{getLast:r,isNonEmptyArray:n}=de();function s(e,t){return e&&"string"==typeof e.type&&(!t||t.includes(e.type))}function i(e){return"prettier-ignore"===e.value.trim()}function a(e){return n(null==e?void 0:e.leadingComments)}function o(e){return n(null==e?void 0:e.middleComments)}function u(e){return null==e?void 0:e.indicatorComment}function l(e){return null==e?void 0:e.trailingComment}function p(e){return n(null==e?void 0:e.endComments)}function c(e){let t,r=[];for(let n of e.split(/( +)/))" "!==n?" "===t?r.push(n):r.push((r.pop()||"")+n):void 0===t&&r.unshift(""),t=n;return" "===t&&r.push((r.pop()||"")+" "),""===r[0]&&(r.shift(),r.unshift(" "+(r.shift()||""))),r}t.exports={getLast:r,getAncestorCount:function(e,t){let r=0,n=e.stack.length-1;for(let i=0;i<n;i++){let n=e.stack[i];s(n)&&t(n)&&r++}return r},isNode:s,isEmptyNode:function(e){return!n(e.children)&&!function(e){return a(e)||o(e)||u(e)||l(e)||p(e)}(e)},isInlineNode:function(e){if(!e)return!0;switch(e.type){case"plain":case"quoteDouble":case"quoteSingle":case"alias":case"flowMapping":case"flowSequence":return!0;default:return!1}},mapNode:function e(t,r,n){return r("children"in t?Object.assign(Object.assign({},t),{},{children:t.children.map((n=>e(n,r,t)))}):t,n)},defineShortcut:function(e,t,r){Object.defineProperty(e,t,{get:r,enumerable:!1})},isNextLineEmpty:function(e,t){let r=0,n=t.length;for(let s=e.position.end.offset-1;s<n;s++){let e=t[s];if("\n"===e&&r++,1===r&&/\S/.test(e))return!1;if(2===r)return!0}return!1},isLastDescendantNode:function(e){switch(e.getValue().type){case"tag":case"anchor":case"comment":return!1}let t=e.stack.length;for(let r=1;r<t;r++){let t=e.stack[r],n=e.stack[r-1];if(Array.isArray(n)&&"number"==typeof t&&t!==n.length-1)return!1}return!0},getBlockValueLineContents:function(e,t){let n,{parentIndent:s,isLastDescendant:i,options:a}=t,o=e.position.start.line===e.position.end.line?"":a.originalText.slice(e.position.start.offset,e.position.end.offset).match(/^[^\n]*\n(.*)$/s)[1];if(null===e.indent){let e=o.match(/^(?<leadingSpace> *)[^\n\r ]/m);n=e?e.groups.leadingSpace.length:Number.POSITIVE_INFINITY}else n=e.indent-1+s;let u=o.split("\n").map((e=>e.slice(n)));return"preserve"===a.proseWrap||"blockLiteral"===e.type?l(u.map((e=>0===e.length?[]:[e]))):l(u.map((e=>0===e.length?[]:c(e))).reduce(((e,t,n)=>0!==n&&u[n-1].length>0&&t.length>0&&!/^\s/.test(t[0])&&!/^\s|\s$/.test(r(e))?[...e.slice(0,-1),[...r(e),...t]]:[...e,t]),[]).map((e=>e.reduce(((e,t)=>e.length>0&&/\s$/.test(r(e))?[...e.slice(0,-1),r(e)+" "+t]:[...e,t]),[]))).map((e=>"never"===a.proseWrap?[e.join(" ")]:e)));function l(t){if("keep"===e.chomping)return 0===r(t).length?t.slice(0,-1):t;let n=0;for(let e=t.length-1;e>=0&&0===t[e].length;e--)n++;return 0===n?t:n>=2&&!i?t.slice(0,-(n-1)):t.slice(0,-n)}},getFlowScalarLineContents:function(e,t,n){let s=t.split("\n").map(((e,t,r)=>0===t&&t===r.length-1?e:0!==t&&t!==r.length-1?e.trim():0===t?e.trimEnd():e.trimStart()));return"preserve"===n.proseWrap?s.map((e=>0===e.length?[]:[e])):s.map((e=>0===e.length?[]:c(e))).reduce(((t,n,i)=>0!==i&&s[i-1].length>0&&n.length>0&&("quoteDouble"!==e||!r(r(t)).endsWith("\\"))?[...t.slice(0,-1),[...r(t),...n]]:[...t,n]),[]).map((e=>"never"===n.proseWrap?[e.join(" ")]:e))},getLastDescendantNode:function e(t){return n(t.children)?e(r(t.children)):t},hasPrettierIgnore:function(e){let t=e.getValue();if("documentBody"===t.type){let t=e.getParentNode();return p(t.head)&&i(r(t.head.endComments))}return a(t)&&i(r(t.leadingComments))},hasLeadingComments:a,hasMiddleComments:o,hasIndicatorComment:u,hasTrailingComment:l,hasEndComments:p}}}),ei=x({"src/language-yaml/print-preprocess.js"(e,t){v();var{defineShortcut:r,mapNode:n}=Qs();function s(e){switch(e.type){case"document":r(e,"head",(()=>e.children[0])),r(e,"body",(()=>e.children[1]));break;case"documentBody":case"sequenceItem":case"flowSequenceItem":case"mappingKey":case"mappingValue":r(e,"content",(()=>e.children[0]));break;case"mappingItem":case"flowMappingItem":r(e,"key",(()=>e.children[0])),r(e,"value",(()=>e.children[1]))}return e}t.exports=function(e){return n(e,s)}}}),ti=x({"src/language-yaml/print/misc.js"(e,t){v();var{builders:{softline:r,align:n}}=W(),{hasEndComments:s,isNextLineEmpty:i,isNode:a}=Qs(),o=new WeakMap;function u(e){return s(e)&&!a(e,["documentHead","documentBody","flowMapping","flowSequence"])}t.exports={alignWithSpaces:function(e,t){return n(" ".repeat(e),t)},shouldPrintEndComments:u,printNextEmptyLine:function(e,t){let n,s=e.getValue(),a=e.stack[0];return o.has(a)?n=o.get(a):(n=new Set,o.set(a,n)),n.has(s.position.end.line)||(n.add(s.position.end.line),!i(s,t)||u(e.getParentNode()))?"":r}}}}),ri=x({"src/language-yaml/print/flow-mapping-sequence.js"(e,t){v();var{builders:{ifBreak:r,line:n,softline:s,hardline:i,join:a}}=W(),{isEmptyNode:o,getLast:u,hasEndComments:l}=Qs(),{printNextEmptyLine:p,alignWithSpaces:c}=ti();function h(e,t,p){let h=e.getValue(),f="flowMapping"===h.type,m=f?"{":"[",y=f?"}":"]",g=s;f&&h.children.length>0&&p.bracketSpacing&&(g=n);let D=u(h.children),x=D&&"flowMappingItem"===D.type&&o(D.key)&&o(D.value);return[m,c(p.tabWidth,[g,d(e,t,p),"none"===p.trailingComma?"":r(","),l(h)?[i,a(i,e.map(t,"endComments"))]:""]),x?"":g,y]}function d(e,t,r){let s=e.getValue();return e.map(((e,i)=>[t(),i===s.children.length-1?"":[",",n,s.children[i].position.start.line!==s.children[i+1].position.start.line?p(e,r.originalText):""]]),"children")}t.exports={printFlowMapping:h,printFlowSequence:h}}}),ni=x({"src/language-yaml/print/mapping-item.js"(e,t){v();var{builders:{conditionalGroup:r,group:n,hardline:s,ifBreak:i,join:a,line:o}}=W(),{hasLeadingComments:u,hasMiddleComments:l,hasTrailingComment:p,hasEndComments:c,isNode:h,isEmptyNode:d,isInlineNode:f}=Qs(),{alignWithSpaces:m}=ti();function y(e,t){if(!e)return!0;switch(e.type){case"plain":case"quoteSingle":case"quoteDouble":break;case"alias":return!0;default:return!1}if("preserve"===t.proseWrap)return e.position.start.line===e.position.end.line;if(/\\$/m.test(t.originalText.slice(e.position.start.offset,e.position.end.offset)))return!1;switch(t.proseWrap){case"never":return!e.value.includes("\n");case"always":return!/[\n ]/.test(e.value);default:return!1}}t.exports=function(e,t,g,D,x){let{key:E,value:b}=e,C=d(E),v=d(b);if(C&&v)return": ";let A=D("key"),S=function(e){return e.key.content&&"alias"===e.key.content.type}(e)?" ":"";if(v)return"flowMappingItem"===e.type&&"flowMapping"===t.type?A:"mappingItem"!==e.type||!y(E.content,x)||p(E.content)||t.tag&&"tag:yaml.org,2002:set"===t.tag.value?["? ",m(2,A)]:[A,S,":"];let T=D("value");if(C)return[": ",m(2,T)];if(u(b)||!f(E.content))return["? ",m(2,A),s,a("",g.map(D,"value","leadingComments").map((e=>[e,s]))),": ",m(2,T)];if(function(e){if(!e)return!0;switch(e.type){case"plain":case"quoteDouble":case"quoteSingle":return e.position.start.line===e.position.end.line;case"alias":return!0;default:return!1}}(E.content)&&!u(E.content)&&!l(E.content)&&!p(E.content)&&!c(E)&&!u(b.content)&&!l(b.content)&&!c(b)&&y(b.content,x))return[A,S,": ",T];let w=Symbol("mappingKey"),F=n([i("? "),n(m(2,A),{id:w})]),P=[s,": ",m(2,T)],k=[S,":"];u(b.content)||c(b)&&b.content&&!h(b.content,["mapping","sequence"])||"mapping"===t.type&&p(E.content)&&f(b.content)||h(b.content,["mapping","sequence"])&&null===b.content.tag&&null===b.content.anchor?k.push(s):b.content&&k.push(o),k.push(T);let N=m(x.tabWidth,k);return!y(E.content,x)||u(E.content)||l(E.content)||c(E)?r([[F,i(P,N,{groupId:w})]]):r([[A,N]])}}}),si=x({"src/language-yaml/print/block.js"(e,t){v();var{builders:{dedent:r,dedentToRoot:n,fill:s,hardline:i,join:a,line:o,literalline:u,markAsRoot:l},utils:{getDocParts:p}}=W(),{getAncestorCount:c,getBlockValueLineContents:h,hasIndicatorComment:d,isLastDescendantNode:f,isNode:m}=Qs(),{alignWithSpaces:y}=ti();t.exports=function(e,t,g){let D=e.getValue(),x=c(e,(e=>m(e,["sequence","mapping"]))),E=f(e),b=["blockFolded"===D.type?">":"|"];null!==D.indent&&b.push(D.indent.toString()),"clip"!==D.chomping&&b.push("keep"===D.chomping?"+":"-"),d(D)&&b.push(" ",t("indicatorComment"));let C=h(D,{parentIndent:x,isLastDescendant:E,options:g}),v=[];for(let[e,t]of C.entries())0===e&&v.push(i),v.push(s(p(a(o,t)))),e!==C.length-1?v.push(0===t.length?i:l(u)):"keep"===D.chomping&&E&&v.push(n(0===t.length?i:u));return null===D.indent?b.push(r(y(g.tabWidth,v))):b.push(n(y(D.indent-1+x,v))),b}}}),ii=x({"src/language-yaml/printer-yaml.js"(e,t){v();var{builders:{breakParent:r,fill:n,group:s,hardline:i,join:a,line:o,lineSuffix:u,literalline:l},utils:{getDocParts:p,replaceTextEndOfLine:c}}=W(),{isPreviousLineEmpty:h}=de(),{insertPragma:d,isPragma:f}=Ks(),{locStart:m}=Zs(),y=Ys(),{getFlowScalarLineContents:g,getLastDescendantNode:D,hasLeadingComments:x,hasMiddleComments:E,hasTrailingComment:b,hasEndComments:C,hasPrettierIgnore:A,isLastDescendantNode:S,isNode:T,isInlineNode:w}=Qs(),F=ei(),{alignWithSpaces:P,printNextEmptyLine:k,shouldPrintEndComments:N}=ti(),{printFlowMapping:I,printFlowSequence:B}=ri(),_=ni(),O=si();function L(e,t){return b(e)||t&&(t.head.children.length>0||C(t.head))}function j(e,t,r){let s=g(e,t,r);return a(i,s.map((e=>n(p(a(o,e))))))}t.exports={preprocess:F,embed:y,print:function(e,t,n){let o=e.getValue(),p=[];"mappingValue"!==o.type&&x(o)&&p.push([a(i,e.map(n,"leadingComments")),i]);let{tag:d,anchor:f}=o;d&&p.push(n("tag")),d&&f&&p.push(" "),f&&p.push(n("anchor"));let y="";T(o,["mapping","sequence","comment","directive","mappingItem","sequenceItem"])&&!S(e)&&(y=k(e,t.originalText)),(d||f)&&(T(o,["sequence","mapping"])&&!E(o)?p.push(i):p.push(" ")),E(o)&&p.push([1===o.middleComments.length?"":i,a(i,e.map(n,"middleComments")),i]);let g=e.getParentNode();return A(e)?p.push(c(t.originalText.slice(o.position.start.offset,o.position.end.offset).trimEnd(),l)):p.push(s(function(e,t,r,n,s){switch(e.type){case"root":{let{children:t}=e,n=[];r.each(((e,r)=>{let a=t[r],o=t[r+1];0!==r&&n.push(i),n.push(s()),L(a,o)?(n.push(i,"..."),b(a)&&n.push(" ",s("trailingComment"))):o&&!b(o.head)&&n.push(i,"---")}),"children");let a=D(e);return(!T(a,["blockLiteral","blockFolded"])||"keep"!==a.chomping)&&n.push(i),n}case"document":{let o=[];return"head"===function(e,t,r,n){return r.children[0]===e&&/---(?:\s|$)/.test(n.originalText.slice(m(e),m(e)+4))||e.head.children.length>0||C(e.head)||b(e.head)?"head":!L(e,t)&&!!t&&"root"}(e,t.children[r.getName()+1],t,n)&&((e.head.children.length>0||e.head.endComments.length>0)&&o.push(s("head")),b(e.head)?o.push(["---"," ",s(["head","trailingComment"])]):o.push("---")),function(e){return e.body.children.length>0||C(e.body)}(e)&&o.push(s("body")),a(i,o)}case"documentHead":return a(i,[...r.map(s,"children"),...r.map(s,"endComments")]);case"documentBody":{let{children:t,endComments:n}=e,o="";if(t.length>0&&n.length>0){let t=D(e);T(t,["blockFolded","blockLiteral"])?"keep"!==t.chomping&&(o=[i,i]):o=i}return[a(i,r.map(s,"children")),o,a(i,r.map(s,"endComments"))]}case"directive":return["%",a(" ",[e.name,...e.parameters])];case"comment":return["#",e.value];case"alias":return["*",e.value];case"tag":return n.originalText.slice(e.position.start.offset,e.position.end.offset);case"anchor":return["&",e.value];case"plain":return j(e.type,n.originalText.slice(e.position.start.offset,e.position.end.offset),n);case"quoteDouble":case"quoteSingle":{let t="'",r='"',s=n.originalText.slice(e.position.start.offset+1,e.position.end.offset-1);if("quoteSingle"===e.type&&s.includes("\\")||"quoteDouble"===e.type&&/\\[^"]/.test(s)){let i="quoteDouble"===e.type?r:t;return[i,j(e.type,s,n),i]}if(s.includes(r))return[t,j(e.type,"quoteDouble"===e.type?s.replace(/\\"/g,r).replace(/'/g,t.repeat(2)):s,n),t];if(s.includes(t))return[r,j(e.type,"quoteSingle"===e.type?s.replace(/''/g,t):s,n),r];let i=n.singleQuote?t:r;return[i,j(e.type,s,n),i]}case"blockFolded":case"blockLiteral":return O(r,s,n);case"mapping":case"sequence":return a(i,r.map(s,"children"));case"sequenceItem":return["- ",P(2,e.content?s("content"):"")];case"mappingKey":case"mappingValue":return e.content?s("content"):"";case"mappingItem":case"flowMappingItem":return _(e,t,r,s,n);case"flowMapping":return I(r,s,n);case"flowSequence":return B(r,s,n);case"flowSequenceItem":return s("content");default:throw new Error(`Unexpected node type ${e.type}`)}}(o,g,e,t,n))),b(o)&&!T(o,["document","documentHead"])&&p.push(u(["mappingValue"!==o.type||o.content?" ":"","mappingKey"===g.type&&"mapping"===e.getParentNode(2).type&&w(o)?"":r,n("trailingComment")])),N(o)&&p.push(P("sequenceItem"===o.type?2:0,[i,a(i,e.map((e=>[h(t.originalText,e.getValue(),m)?i:"",n()]),"endComments"))])),p.push(y),p},massageAstNode:function(e,t){if(T(t))switch(delete t.position,t.type){case"comment":if(f(t.value))return null;break;case"quoteDouble":case"quoteSingle":t.type="quote"}},insertPragma:d}}}),ai=x({"src/language-yaml/options.js"(e,t){v();var r=En();t.exports={bracketSpacing:r.bracketSpacing,singleQuote:r.singleQuote,proseWrap:r.proseWrap}}}),oi=x({"src/language-yaml/parsers.js"(){v()}}),ui=x({"node_modules/linguist-languages/data/YAML.json"(e,t){t.exports={name:"YAML",type:"data",color:"#cb171e",tmScope:"source.yaml",aliases:["yml"],extensions:[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yaml.sed",".yml.mysql"],filenames:[".clang-format",".clang-tidy",".gemrc","CITATION.cff","glide.lock","yarn.lock"],aceMode:"yaml",codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",languageId:407}}}),li=x({"src/language-yaml/index.js"(e,t){v();var r=Yt(),n=ii(),s=ai(),i=oi(),a=[r(ui(),(e=>({since:"1.14.0",parsers:["yaml"],vscodeLanguageIds:["yaml","ansible","home-assistant"],filenames:[...e.filenames.filter((e=>"yarn.lock"!==e)),".prettierrc",".stylelintrc",".lintstagedrc"]})))];t.exports={languages:a,printers:{yaml:n},options:s,parsers:i}}}),pi=x({"src/languages.js"(e,t){v(),t.exports=[Pn(),Xn(),ns(),ps(),vs(),Xs(),li()]}});v();var{version:ci}=A(),hi=Kt(),{getSupportInfo:di}=ae(),fi=Zt(),mi=pi(),yi=W();function gi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return function(){for(var r=arguments.length,n=new Array(r),s=0;s<r;s++)n[s]=arguments[s];let i=n[t]||{},a=i.plugins||[];return n[t]=Object.assign(Object.assign({},i),{},{plugins:[...mi,...Array.isArray(a)?a:Object.values(a)]}),e(...n)}}var Di=gi(hi.formatWithCursor);a.exports={formatWithCursor:Di,format:(e,t)=>Di(e,t).formatted,check(e,t){let{formatted:r}=Di(e,t);return r===e},doc:yi,getSupportInfo:gi(di,0),version:ci,util:fi,__debug:{parse:gi(hi.parse),formatAST:gi(hi.formatAST),formatDoc:gi(hi.formatDoc),printToDoc:gi(hi.printToDoc),printDocToString:gi(hi.printDocToString)}}}));return We()}()},795:(e,t,r)=>{"use strict";function n(e,t,r,n,s,i,a){try{var o=e[i](a),u=o.value}catch(e){return void r(e)}o.done?t(u):Promise.resolve(u).then(n,s)}function s(e){return function(){var t=this,r=arguments;return new Promise((function(s,i){var a=e.apply(t,r);function o(e){n(a,s,i,o,u,"next",e)}function u(e){n(a,s,i,o,u,"throw",e)}o(void 0)}))}}r.d(t,{Z:()=>s})},876:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function s(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var s=r.call(e,"string");if("object"!==n(s))return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===n(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}r.d(t,{Z:()=>a})}}]);
|
|
24
|
+
//# sourceMappingURL=311.dced50b5.js.map
|