bloom-layout
Version:
layout components used in bloom packages
1 lines • 173 kB
JavaScript
"use strict";function createError(t,e){const s=new SyntaxError(t+" ("+e.start.line+":"+e.start.column+")");return s.loc=e,s}function unwrapExports(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function createCommonjsModule(t,e){return e={exports:{}},t(e,e.exports),e.exports}function parse(t,e,s){const i=lib,r={sourceType:"module",allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,plugins:["jsx","flow","doExpressions","objectRestSpread","decorators","classProperties","exportDefaultFrom","exportNamespaceFrom","asyncGenerators","functionBind","functionSent","dynamicImport","numericSeparator","importMeta","optionalCatchBinding","optionalChaining","classPrivateProperties","pipelineOperator","nullishCoalescingOperator"]},a=s&&"json"===s.parser?"parseExpression":"parse";let n;try{n=i[a](t,r)}catch(e){try{n=i[a](t,Object.assign({},r,{strictMode:!1}))}catch(t){throw parserCreateError(e.message.replace(/ \(.*\)/,""),{start:{line:e.loc.line,column:e.loc.column+1}})}}return delete n.tokens,n}var parserCreateError=createError,lib=createCommonjsModule(function(t,e){function s(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function i(t){var e={};for(var s in C)e[s]=t&&null!=t[s]?t[s]:C[s];return e}function r(t){var e=t.split(" ");return function(t){return e.indexOf(t)>=0}}function a(t,e){for(var s=65536,i=0;i<e.length;i+=2){if((s+=e[i])>t)return!1;if((s+=e[i+1])>=t)return!0}return!1}function n(t){return t<65?36===t:t<91||(t<97?95===t:t<123||(t<=65535?t>=170&&j.test(String.fromCharCode(t)):a(t,B)))}function o(t){return t<48?36===t:t<58||!(t<65)&&(t<91||(t<97?95===t:t<123||(t<=65535?t>=170&&F.test(String.fromCharCode(t)):a(t,B)||a(t,q))))}function h(t){return 10===t||13===t||8232===t||8233===t}function p(t,e){for(var s=1,i=0;;){U.lastIndex=i;var r=U.exec(t);if(!(r&&r.index<e))return new X(s,e-i);++s,i=r.index+r[0].length}throw new Error("Unreachable")}function c(t){return t[t.length-1]}function l(t){return t<=65535?String.fromCharCode(t):String.fromCharCode(55296+(t-65536>>10),56320+(t-65536&1023))}function u(t){for(var e={},s=0;s<t.length;s++)e[t[s]]=!0;return e}function d(t){return null!=t&&"Property"===t.type&&"init"===t.kind&&!1===t.method}function f(t){return"DeclareExportAllDeclaration"===t.type||"DeclareExportDeclaration"===t.type&&(!t.declaration||"TypeAlias"!==t.declaration.type&&"InterfaceDeclaration"!==t.declaration.type)}function m(t){return"type"===t.importKind||"typeof"===t.importKind}function y(t){return(t.type===I.name||!!t.type.keyword)&&"from"!==t.value}function x(t,e){for(var s=[],i=[],r=0;r<t.length;r++)(e(t[r],r,t)?s:i).push(t[r]);return[s,i]}function P(t){return!!t&&("JSXOpeningFragment"===t.type||"JSXClosingFragment"===t.type)}function v(t){if("JSXIdentifier"===t.type)return t.name;if("JSXNamespacedName"===t.type)return t.namespace.name+":"+t.name.name;if("JSXMemberExpression"===t.type)return v(t.object)+"."+v(t.property);throw new Error("Node had unexpected type: "+t.type)}function g(t){if(null==t)throw new Error(`Unexpected ${t} value.`);return t}function b(t){if(!t)throw new Error("Assert fail")}function T(t){switch(t){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";default:return}}function w(t,e){return new(t&&t.plugins?A(t.plugins):ot)(t,e)}function A(t){if(t.indexOf("decorators")>=0&&t.indexOf("decorators2")>=0)throw new Error("Cannot use decorators and decorators2 plugin together");var e=t.filter(function(t){return"estree"===t||"flow"===t||"jsx"===t||"typescript"===t});if(e.indexOf("flow")>=0&&(e=e.filter(function(t){return"flow"!==t})).push("flow"),e.indexOf("flow")>=0&&e.indexOf("typescript")>=0)throw new Error("Cannot combine flow and typescript plugins.");e.indexOf("typescript")>=0&&(e=e.filter(function(t){return"typescript"!==t})).push("typescript"),e.indexOf("estree")>=0&&(e=e.filter(function(t){return"estree"!==t})).unshift("estree");var s=e.join("/"),i=dt[s];if(!i){i=ot;for(var r=0,a=e;r<a.length;r++){var n=a[r];i=nt[n](i)}dt[s]=i}return i}function N(t){return t.program.body.some(function(t){return"ImportDeclaration"===t.type&&(!t.importKind||"value"===t.importKind)||"ExportNamedDeclaration"===t.type&&(!t.exportKind||"value"===t.exportKind)||"ExportAllDeclaration"===t.type&&(!t.exportKind||"value"===t.exportKind)||"ExportDefaultDeclaration"===t.type})}Object.defineProperty(e,"__esModule",{value:!0});var C={sourceType:"script",sourceFilename:void 0,startLine:1,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1},E=!0,k=function(t,e){void 0===e&&(e={}),this.label=t,this.keyword=e.keyword,this.beforeExpr=!!e.beforeExpr,this.startsExpr=!!e.startsExpr,this.rightAssociative=!!e.rightAssociative,this.isLoop=!!e.isLoop,this.isAssign=!!e.isAssign,this.prefix=!!e.prefix,this.postfix=!!e.postfix,this.binop=0===e.binop?0:e.binop||null,this.updateContext=null},S=function(t){function e(e,s){return void 0===s&&(s={}),s.keyword=e,t.call(this,e,s)||this}return s(e,t),e}(k),L=function(t){function e(e,s){return t.call(this,e,{beforeExpr:E,binop:s})||this}return s(e,t),e}(k),I={num:new k("num",{startsExpr:!0}),bigint:new k("bigint",{startsExpr:!0}),regexp:new k("regexp",{startsExpr:!0}),string:new k("string",{startsExpr:!0}),name:new k("name",{startsExpr:!0}),eof:new k("eof"),bracketL:new k("[",{beforeExpr:E,startsExpr:!0}),bracketR:new k("]"),braceL:new k("{",{beforeExpr:E,startsExpr:!0}),braceBarL:new k("{|",{beforeExpr:E,startsExpr:!0}),braceR:new k("}"),braceBarR:new k("|}"),parenL:new k("(",{beforeExpr:E,startsExpr:!0}),parenR:new k(")"),comma:new k(",",{beforeExpr:E}),semi:new k(";",{beforeExpr:E}),colon:new k(":",{beforeExpr:E}),doubleColon:new k("::",{beforeExpr:E}),dot:new k("."),question:new k("?",{beforeExpr:E}),questionDot:new k("?."),arrow:new k("=>",{beforeExpr:E}),template:new k("template"),ellipsis:new k("...",{beforeExpr:E}),backQuote:new k("`",{startsExpr:!0}),dollarBraceL:new k("${",{beforeExpr:E,startsExpr:!0}),at:new k("@"),hash:new k("#"),eq:new k("=",{beforeExpr:E,isAssign:!0}),assign:new k("_=",{beforeExpr:E,isAssign:!0}),incDec:new k("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),bang:new k("!",{beforeExpr:E,prefix:!0,startsExpr:!0}),tilde:new k("~",{beforeExpr:E,prefix:!0,startsExpr:!0}),pipeline:new L("|>",0),nullishCoalescing:new L("??",1),logicalOR:new L("||",1),logicalAND:new L("&&",2),bitwiseOR:new L("|",3),bitwiseXOR:new L("^",4),bitwiseAND:new L("&",5),equality:new L("==/!=",6),relational:new L("</>",7),bitShift:new L("<</>>",8),plusMin:new k("+/-",{beforeExpr:E,binop:9,prefix:!0,startsExpr:!0}),modulo:new L("%",10),star:new L("*",10),slash:new L("/",10),exponent:new k("**",{beforeExpr:E,binop:11,rightAssociative:!0})},M={break:new S("break"),case:new S("case",{beforeExpr:E}),catch:new S("catch"),continue:new S("continue"),debugger:new S("debugger"),default:new S("default",{beforeExpr:E}),do:new S("do",{isLoop:!0,beforeExpr:E}),else:new S("else",{beforeExpr:E}),finally:new S("finally"),for:new S("for",{isLoop:!0}),function:new S("function",{startsExpr:!0}),if:new S("if"),return:new S("return",{beforeExpr:E}),switch:new S("switch"),throw:new S("throw",{beforeExpr:E,prefix:!0,startsExpr:!0}),try:new S("try"),var:new S("var"),let:new S("let"),const:new S("const"),while:new S("while",{isLoop:!0}),with:new S("with"),new:new S("new",{beforeExpr:E,startsExpr:!0}),this:new S("this",{startsExpr:!0}),super:new S("super",{startsExpr:!0}),class:new S("class"),extends:new S("extends",{beforeExpr:E}),export:new S("export"),import:new S("import",{startsExpr:!0}),yield:new S("yield",{beforeExpr:E,startsExpr:!0}),null:new S("null",{startsExpr:!0}),true:new S("true",{startsExpr:!0}),false:new S("false",{startsExpr:!0}),in:new S("in",{beforeExpr:E,binop:7}),instanceof:new S("instanceof",{beforeExpr:E,binop:7}),typeof:new S("typeof",{beforeExpr:E,prefix:!0,startsExpr:!0}),void:new S("void",{beforeExpr:E,prefix:!0,startsExpr:!0}),delete:new S("delete",{beforeExpr:E,prefix:!0,startsExpr:!0})};Object.keys(M).forEach(function(t){I["_"+t]=M[t]});var D={6:r("enum await"),strict:r("implements interface let package private protected public static yield"),strictBind:r("eval arguments")},O=r("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this let const class extends export import yield super"),R="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠ-ࢴࢶ-ࢽऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿕ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞮꞰ-ꞷꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭥꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",_="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣔ-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఃా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഁ-ഃാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ංඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ູົຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭ᳲ-᳴᳸᳹᷀-᷵᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱꤀-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",j=new RegExp("["+R+"]"),F=new RegExp("["+R+_+"]");R=_=null;var B=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,17,26,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,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,26,45,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,785,52,76,44,33,24,27,35,42,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,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,54,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,86,25,391,63,32,0,449,56,264,8,2,36,18,0,50,29,881,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,881,68,12,0,67,12,65,0,32,6124,20,754,9486,1,3071,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,4149,196,60,67,1213,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,42710,42,4148,12,221,3,5761,10591,541],q=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,1306,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,52,0,13,2,49,13,10,2,4,9,83,11,7,0,161,11,6,9,7,3,57,0,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,87,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,423,9,838,7,2,7,17,9,57,21,2,13,19882,9,135,4,60,6,26,9,1016,45,17,3,19723,1,5319,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,2214,6,110,6,6,9,792487,239],V=/\r\n?|\n|\u2028|\u2029/,U=new RegExp(V.source,"g"),K=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/,W=function(t,e,s,i){this.token=t,this.isExpr=!!e,this.preserveSpace=!!s,this.override=i},G={braceStatement:new W("{",!1),braceExpression:new W("{",!0),templateQuasi:new W("${",!0),parenStatement:new W("(",!1),parenExpression:new W("(",!0),template:new W("`",!0,!0,function(t){return t.readTmplToken()}),functionExpression:new W("function",!0)};I.parenR.updateContext=I.braceR.updateContext=function(){if(1!==this.state.context.length){var t=this.state.context.pop();t===G.braceStatement&&this.curContext()===G.functionExpression?(this.state.context.pop(),this.state.exprAllowed=!1):t===G.templateQuasi?this.state.exprAllowed=!0:this.state.exprAllowed=!t.isExpr}else this.state.exprAllowed=!0},I.name.updateContext=function(t){"of"!==this.state.value||this.curContext()!==G.parenStatement?(this.state.exprAllowed=!1,t!==I._let&&t!==I._const&&t!==I._var||V.test(this.input.slice(this.state.end))&&(this.state.exprAllowed=!0)):this.state.exprAllowed=!t.beforeExpr},I.braceL.updateContext=function(t){this.state.context.push(this.braceIsBlock(t)?G.braceStatement:G.braceExpression),this.state.exprAllowed=!0},I.dollarBraceL.updateContext=function(){this.state.context.push(G.templateQuasi),this.state.exprAllowed=!0},I.parenL.updateContext=function(t){var e=t===I._if||t===I._for||t===I._with||t===I._while;this.state.context.push(e?G.parenStatement:G.parenExpression),this.state.exprAllowed=!0},I.incDec.updateContext=function(){},I._function.updateContext=function(){this.curContext()!==G.braceStatement&&this.state.context.push(G.functionExpression),this.state.exprAllowed=!1},I.backQuote.updateContext=function(){this.curContext()===G.template?this.state.context.pop():this.state.context.push(G.template),this.state.exprAllowed=!1};var X=function(t,e){this.line=t,this.column=e},J=function(t,e){this.start=t,this.end=e},H=function(t){function e(){return t.apply(this,arguments)||this}return s(e,t),e.prototype.raise=function(t,e,s){var i=p(this.input,t);e+=` (${i.line}:${i.column})`;var r=new SyntaxError(e);throw r.pos=t,r.loc=i,s&&(r.missingPlugin=s),r},e}(function(t){function e(){return t.apply(this,arguments)||this}s(e,t);var i=e.prototype;return i.addComment=function(t){this.filename&&(t.loc.filename=this.filename),this.state.trailingComments.push(t),this.state.leadingComments.push(t)},i.processComment=function(t){if(!("Program"===t.type&&t.body.length>0)){var e,s,i,r,a,n=this.state.commentStack;if(this.state.trailingComments.length>0)this.state.trailingComments[0].start>=t.end?(i=this.state.trailingComments,this.state.trailingComments=[]):this.state.trailingComments.length=0;else if(n.length>0){var o=c(n);o.trailingComments&&o.trailingComments[0].start>=t.end&&(i=o.trailingComments,o.trailingComments=null)}for(n.length>0&&c(n).start>=t.start&&(e=n.pop());n.length>0&&c(n).start>=t.start;)s=n.pop();if(!s&&e&&(s=e),e&&this.state.leadingComments.length>0){var h=c(this.state.leadingComments);if("ObjectProperty"===e.type){if(h.start>=t.start&&this.state.commentPreviousNode){for(a=0;a<this.state.leadingComments.length;a++)this.state.leadingComments[a].end<this.state.commentPreviousNode.end&&(this.state.leadingComments.splice(a,1),a--);this.state.leadingComments.length>0&&(e.trailingComments=this.state.leadingComments,this.state.leadingComments=[])}}else if("CallExpression"===t.type&&t.arguments&&t.arguments.length){var p=c(t.arguments);p&&h.start>=p.start&&h.end<=t.end&&this.state.commentPreviousNode&&this.state.leadingComments.length>0&&(p.trailingComments=this.state.leadingComments,this.state.leadingComments=[])}}if(s){if(s.leadingComments)if(s!==t&&s.leadingComments.length>0&&c(s.leadingComments).end<=t.start)t.leadingComments=s.leadingComments,s.leadingComments=null;else for(r=s.leadingComments.length-2;r>=0;--r)if(s.leadingComments[r].end<=t.start){t.leadingComments=s.leadingComments.splice(0,r+1);break}}else if(this.state.leadingComments.length>0)if(c(this.state.leadingComments).end<=t.start){if(this.state.commentPreviousNode)for(a=0;a<this.state.leadingComments.length;a++)this.state.leadingComments[a].end<this.state.commentPreviousNode.end&&(this.state.leadingComments.splice(a,1),a--);this.state.leadingComments.length>0&&(t.leadingComments=this.state.leadingComments,this.state.leadingComments=[])}else{for(r=0;r<this.state.leadingComments.length&&!(this.state.leadingComments[r].end>t.start);r++);var l=this.state.leadingComments.slice(0,r);t.leadingComments=0===l.length?null:l,0===(i=this.state.leadingComments.slice(r)).length&&(i=null)}this.state.commentPreviousNode=t,i&&(i.length&&i[0].start>=t.start&&c(i).end<=t.end?t.innerComments=i:t.trailingComments=i),n.push(t)}},e}(function(){function t(){}var e=t.prototype;return e.isReservedWord=function(t){return"await"===t?this.inModule:D[6](t)},e.hasPlugin=function(t){return!!this.plugins[t]},t}())),$=function(){function t(){}var e=t.prototype;return e.init=function(t,e){this.strict=!1!==t.strictMode&&"module"===t.sourceType,this.input=e,this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.inMethod=this.inFunction=this.inParameters=this.maybeInArrowParameters=this.inGenerator=this.inAsync=this.inPropertyName=this.inType=this.inClassProperty=this.noAnonFunctionType=!1,this.classLevel=0,this.labels=[],this.decoratorStack=[[]],this.yieldInPossibleArrowParameters=null,this.tokens=[],this.comments=[],this.trailingComments=[],this.leadingComments=[],this.commentStack=[],this.commentPreviousNode=null,this.pos=this.lineStart=0,this.curLine=t.startLine,this.type=I.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=[G.braceStatement],this.exprAllowed=!0,this.containsEsc=this.containsOctal=!1,this.octalPosition=null,this.invalidTemplateEscapePosition=null,this.exportedIdentifiers=[]},e.curPosition=function(){return new X(this.curLine,this.pos-this.lineStart)},e.clone=function(e){var s=this,i=new t;return Object.keys(this).forEach(function(t){var r=s[t];e&&"context"!==t||!Array.isArray(r)||(r=r.slice()),i[t]=r}),i},t}(),z=function(t){return t>=48&&t<=57},Q={decBinOct:[46,66,69,79,95,98,101,111],hex:[46,88,95,120]},Y={};Y.bin=[48,49],Y.oct=Y.bin.concat([50,51,52,53,54,55]),Y.dec=Y.oct.concat([56,57]),Y.hex=Y.dec.concat([65,66,67,68,69,70,97,98,99,100,101,102]);var Z=function(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,this.loc=new J(t.startLoc,t.endLoc)},tt=function(t){function e(){return t.apply(this,arguments)||this}s(e,t);var i=e.prototype;return i.addExtra=function(t,e,s){t&&((t.extra=t.extra||{})[e]=s)},i.isRelational=function(t){return this.match(I.relational)&&this.state.value===t},i.expectRelational=function(t){this.isRelational(t)?this.next():this.unexpected(null,I.relational)},i.eatRelational=function(t){return!!this.isRelational(t)&&(this.next(),!0)},i.isContextual=function(t){return this.match(I.name)&&this.state.value===t},i.isLookaheadContextual=function(t){var e=this.lookahead();return e.type===I.name&&e.value===t},i.eatContextual=function(t){return this.state.value===t&&this.eat(I.name)},i.expectContextual=function(t,e){this.eatContextual(t)||this.unexpected(null,e)},i.canInsertSemicolon=function(){return this.match(I.eof)||this.match(I.braceR)||this.hasPrecedingLineBreak()},i.hasPrecedingLineBreak=function(){return V.test(this.input.slice(this.state.lastTokEnd,this.state.start))},i.isLineTerminator=function(){return this.eat(I.semi)||this.canInsertSemicolon()},i.semicolon=function(){this.isLineTerminator()||this.unexpected(null,I.semi)},i.expect=function(t,e){this.eat(t)||this.unexpected(e,t)},i.unexpected=function(t,e){throw void 0===e&&(e="Unexpected token"),"string"!=typeof e&&(e=`Unexpected token, expected "${e.label}"`),this.raise(null!=t?t:this.state.start,e)},i.expectPlugin=function(t,e){if(!this.hasPlugin(t))throw this.raise(null!=e?e:this.state.start,`This experimental syntax requires enabling the parser plugin: '${t}'`,[t]);return!0},i.expectOnePlugin=function(t,e){var s=this;if(!t.some(function(t){return s.hasPlugin(t)}))throw this.raise(null!=e?e:this.state.start,`This experimental syntax requires enabling one of the following parser plugin(s): '${t.join(", ")}'`,t)},e}(function(t){function e(e,s){var i;return i=t.call(this)||this,i.state=new $,i.state.init(e,s),i.isLookahead=!1,i}s(e,t);var i=e.prototype;return i.next=function(){this.options.tokens&&!this.isLookahead&&this.state.tokens.push(new Z(this.state)),this.state.lastTokEnd=this.state.end,this.state.lastTokStart=this.state.start,this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()},i.eat=function(t){return!!this.match(t)&&(this.next(),!0)},i.match=function(t){return this.state.type===t},i.isKeyword=function(t){return O(t)},i.lookahead=function(){var t=this.state;this.state=t.clone(!0),this.isLookahead=!0,this.next(),this.isLookahead=!1;var e=this.state;return this.state=t,e},i.setStrict=function(t){if(this.state.strict=t,this.match(I.num)||this.match(I.string)){for(this.state.pos=this.state.start;this.state.pos<this.state.lineStart;)this.state.lineStart=this.input.lastIndexOf("\n",this.state.lineStart-2)+1,--this.state.curLine;this.nextToken()}},i.curContext=function(){return this.state.context[this.state.context.length-1]},i.nextToken=function(){var t=this.curContext();t&&t.preserveSpace||this.skipSpace(),this.state.containsOctal=!1,this.state.octalPosition=null,this.state.start=this.state.pos,this.state.startLoc=this.state.curPosition(),this.state.pos>=this.input.length?this.finishToken(I.eof):t.override?t.override(this):this.readToken(this.fullCharCodeAtPos())},i.readToken=function(t){n(t)||92===t?this.readWord():this.getTokenFromCode(t)},i.fullCharCodeAtPos=function(){var t=this.input.charCodeAt(this.state.pos);return t<=55295||t>=57344?t:(t<<10)+this.input.charCodeAt(this.state.pos+1)-56613888},i.pushComment=function(t,e,s,i,r,a){var n={type:t?"CommentBlock":"CommentLine",value:e,start:s,end:i,loc:new J(r,a)};this.isLookahead||(this.options.tokens&&this.state.tokens.push(n),this.state.comments.push(n),this.addComment(n))},i.skipBlockComment=function(){var t=this.state.curPosition(),e=this.state.pos,s=this.input.indexOf("*/",this.state.pos+=2);-1===s&&this.raise(this.state.pos-2,"Unterminated comment"),this.state.pos=s+2,U.lastIndex=e;for(var i;(i=U.exec(this.input))&&i.index<this.state.pos;)++this.state.curLine,this.state.lineStart=i.index+i[0].length;this.pushComment(!0,this.input.slice(e+2,s),e,this.state.pos,t,this.state.curPosition())},i.skipLineComment=function(t){var e=this.state.pos,s=this.state.curPosition(),i=this.input.charCodeAt(this.state.pos+=t);if(this.state.pos<this.input.length)for(;10!==i&&13!==i&&8232!==i&&8233!==i&&++this.state.pos<this.input.length;)i=this.input.charCodeAt(this.state.pos);this.pushComment(!1,this.input.slice(e+t,this.state.pos),e,this.state.pos,s,this.state.curPosition())},i.skipSpace=function(){t:for(;this.state.pos<this.input.length;){var t=this.input.charCodeAt(this.state.pos);switch(t){case 32:case 160:++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:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break t}break;default:if(!(t>8&&t<14||t>=5760&&K.test(String.fromCharCode(t))))break t;++this.state.pos}}},i.finishToken=function(t,e){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();var s=this.state.type;this.state.type=t,this.state.value=e,this.updateContext(s)},i.readToken_dot=function(){var t=this.input.charCodeAt(this.state.pos+1);if(t>=48&&t<=57)this.readNumber(!0);else{var e=this.input.charCodeAt(this.state.pos+2);46===t&&46===e?(this.state.pos+=3,this.finishToken(I.ellipsis)):(++this.state.pos,this.finishToken(I.dot))}},i.readToken_slash=function(){if(this.state.exprAllowed)return++this.state.pos,void this.readRegexp();61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(I.assign,2):this.finishOp(I.slash,1)},i.readToken_mult_modulo=function(t){var e=42===t?I.star:I.modulo,s=1,i=this.input.charCodeAt(this.state.pos+1),r=this.state.exprAllowed;42===t&&42===i&&(s++,i=this.input.charCodeAt(this.state.pos+2),e=I.exponent),61!==i||r||(s++,e=I.assign),this.finishOp(e,s)},i.readToken_pipe_amp=function(t){var e=this.input.charCodeAt(this.state.pos+1);if(e!==t){if(124===t){if(62===e)return void this.finishOp(I.pipeline,2);if(125===e&&this.hasPlugin("flow"))return void this.finishOp(I.braceBarR,2)}61!==e?this.finishOp(124===t?I.bitwiseOR:I.bitwiseAND,1):this.finishOp(I.assign,2)}else this.finishOp(124===t?I.logicalOR:I.logicalAND,2)},i.readToken_caret=function(){61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(I.assign,2):this.finishOp(I.bitwiseXOR,1)},i.readToken_plus_min=function(t){var e=this.input.charCodeAt(this.state.pos+1);if(e===t)return 45===e&&!this.inModule&&62===this.input.charCodeAt(this.state.pos+2)&&V.test(this.input.slice(this.state.lastTokEnd,this.state.pos))?(this.skipLineComment(3),this.skipSpace(),void this.nextToken()):void this.finishOp(I.incDec,2);61===e?this.finishOp(I.assign,2):this.finishOp(I.plusMin,1)},i.readToken_lt_gt=function(t){var e=this.input.charCodeAt(this.state.pos+1),s=1;return e===t?(s=62===t&&62===this.input.charCodeAt(this.state.pos+2)?3:2,61===this.input.charCodeAt(this.state.pos+s)?void this.finishOp(I.assign,s+1):void this.finishOp(I.bitShift,s)):33!==e||60!==t||this.inModule||45!==this.input.charCodeAt(this.state.pos+2)||45!==this.input.charCodeAt(this.state.pos+3)?(61===e&&(s=2),void this.finishOp(I.relational,s)):(this.skipLineComment(4),this.skipSpace(),void this.nextToken())},i.readToken_eq_excl=function(t){var e=this.input.charCodeAt(this.state.pos+1);if(61!==e)return 61===t&&62===e?(this.state.pos+=2,void this.finishToken(I.arrow)):void this.finishOp(61===t?I.eq:I.bang,1);this.finishOp(I.equality,61===this.input.charCodeAt(this.state.pos+2)?3:2)},i.readToken_question=function(){var t=this.input.charCodeAt(this.state.pos+1),e=this.input.charCodeAt(this.state.pos+2);63===t?this.finishOp(I.nullishCoalescing,2):46!==t||e>=48&&e<=57?(++this.state.pos,this.finishToken(I.question)):(this.state.pos+=2,this.finishToken(I.questionDot))},i.getTokenFromCode=function(t){switch(t){case 35:if((this.hasPlugin("classPrivateProperties")||this.hasPlugin("classPrivateMethods"))&&this.state.classLevel>0)return++this.state.pos,void this.finishToken(I.hash);this.raise(this.state.pos,`Unexpected character '${l(t)}'`);case 46:return void this.readToken_dot();case 40:return++this.state.pos,void this.finishToken(I.parenL);case 41:return++this.state.pos,void this.finishToken(I.parenR);case 59:return++this.state.pos,void this.finishToken(I.semi);case 44:return++this.state.pos,void this.finishToken(I.comma);case 91:return++this.state.pos,void this.finishToken(I.bracketL);case 93:return++this.state.pos,void this.finishToken(I.bracketR);case 123:return void(this.hasPlugin("flow")&&124===this.input.charCodeAt(this.state.pos+1)?this.finishOp(I.braceBarL,2):(++this.state.pos,this.finishToken(I.braceL)));case 125:return++this.state.pos,void this.finishToken(I.braceR);case 58:return void(this.hasPlugin("functionBind")&&58===this.input.charCodeAt(this.state.pos+1)?this.finishOp(I.doubleColon,2):(++this.state.pos,this.finishToken(I.colon)));case 63:return void this.readToken_question();case 64:return++this.state.pos,void this.finishToken(I.at);case 96:return++this.state.pos,void this.finishToken(I.backQuote);case 48:var 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(t);case 47:return void this.readToken_slash();case 37:case 42:return void this.readToken_mult_modulo(t);case 124:case 38:return void this.readToken_pipe_amp(t);case 94:return void this.readToken_caret();case 43:case 45:return void this.readToken_plus_min(t);case 60:case 62:return void this.readToken_lt_gt(t);case 61:case 33:return void this.readToken_eq_excl(t);case 126:return void this.finishOp(I.tilde,1)}this.raise(this.state.pos,`Unexpected character '${l(t)}'`)},i.finishOp=function(t,e){var s=this.input.slice(this.state.pos,this.state.pos+e);this.state.pos+=e,this.finishToken(t,s)},i.readRegexp=function(){for(var t,e,s=this.state.pos;;){this.state.pos>=this.input.length&&this.raise(s,"Unterminated regular expression");var i=this.input.charAt(this.state.pos);if(V.test(i)&&this.raise(s,"Unterminated regular expression"),t)t=!1;else{if("["===i)e=!0;else if("]"===i&&e)e=!1;else if("/"===i&&!e)break;t="\\"===i}++this.state.pos}var r=this.input.slice(s,this.state.pos);++this.state.pos;var a=this.readWord1();a&&(/^[gmsiyu]*$/.test(a)||this.raise(s,"Invalid regular expression flag")),this.finishToken(I.regexp,{pattern:r,flags:a})},i.readInt=function(t,e){for(var s=this.state.pos,i=16===t?Q.hex:Q.decBinOct,r=16===t?Y.hex:10===t?Y.dec:8===t?Y.oct:Y.bin,a=0,n=0,o=null==e?1/0:e;n<o;++n){var h=this.input.charCodeAt(this.state.pos),p=void 0;if(this.hasPlugin("numericSeparator")){var c=this.input.charCodeAt(this.state.pos-1),l=this.input.charCodeAt(this.state.pos+1);if(95===h){-1===r.indexOf(l)&&this.raise(this.state.pos,"Invalid or unexpected token"),(i.indexOf(c)>-1||i.indexOf(l)>-1||Number.isNaN(l))&&this.raise(this.state.pos,"Invalid or unexpected token"),++this.state.pos;continue}}if((p=h>=97?h-97+10:h>=65?h-65+10:z(h)?h-48:1/0)>=t)break;++this.state.pos,a=a*t+p}return this.state.pos===s||null!=e&&this.state.pos-s!==e?null:a},i.readRadixNumber=function(t){var e=this.state.pos,s=!1;this.state.pos+=2;var i=this.readInt(t);if(null==i&&this.raise(this.state.start+2,"Expected number in radix "+t),this.hasPlugin("bigInt")&&110===this.input.charCodeAt(this.state.pos)&&(++this.state.pos,s=!0),n(this.fullCharCodeAtPos())&&this.raise(this.state.pos,"Identifier directly after number"),s){var r=this.input.slice(e,this.state.pos).replace(/[_n]/g,"");this.finishToken(I.bigint,r)}else this.finishToken(I.num,i)},i.readNumber=function(t){var e=this.state.pos,s=48===this.input.charCodeAt(e),i=!1,r=!1;t||null!==this.readInt(10)||this.raise(e,"Invalid number"),s&&this.state.pos==e+1&&(s=!1);var a=this.input.charCodeAt(this.state.pos);46!==a||s||(++this.state.pos,this.readInt(10),i=!0,a=this.input.charCodeAt(this.state.pos)),69!==a&&101!==a||s||(43!==(a=this.input.charCodeAt(++this.state.pos))&&45!==a||++this.state.pos,null===this.readInt(10)&&this.raise(e,"Invalid number"),i=!0,a=this.input.charCodeAt(this.state.pos)),this.hasPlugin("bigInt")&&110===a&&((i||s)&&this.raise(e,"Invalid BigIntLiteral"),++this.state.pos,r=!0),n(this.fullCharCodeAtPos())&&this.raise(this.state.pos,"Identifier directly after number");var o=this.input.slice(e,this.state.pos).replace(/[_n]/g,"");if(r)this.finishToken(I.bigint,o);else{var h;i?h=parseFloat(o):s&&1!==o.length?this.state.strict?this.raise(e,"Invalid number"):h=/[89]/.test(o)?parseInt(o,10):parseInt(o,8):h=parseInt(o,10),this.finishToken(I.num,h)}},i.readCodePoint=function(t){var e;if(123===this.input.charCodeAt(this.state.pos)){var s=++this.state.pos;if(e=this.readHexChar(this.input.indexOf("}",this.state.pos)-this.state.pos,t),++this.state.pos,null===e)--this.state.invalidTemplateEscapePosition;else if(e>1114111){if(!t)return this.state.invalidTemplateEscapePosition=s-2,null;this.raise(s,"Code point out of bounds")}}else e=this.readHexChar(4,t);return e},i.readString=function(t){for(var e="",s=++this.state.pos;;){this.state.pos>=this.input.length&&this.raise(this.state.start,"Unterminated string constant");var i=this.input.charCodeAt(this.state.pos);if(i===t)break;92===i?(e+=this.input.slice(s,this.state.pos),e+=this.readEscapedChar(!1),s=this.state.pos):(h(i)&&this.raise(this.state.start,"Unterminated string constant"),++this.state.pos)}e+=this.input.slice(s,this.state.pos++),this.finishToken(I.string,e)},i.readTmplToken=function(){for(var t="",e=this.state.pos,s=!1;;){this.state.pos>=this.input.length&&this.raise(this.state.start,"Unterminated template");var i=this.input.charCodeAt(this.state.pos);if(96===i||36===i&&123===this.input.charCodeAt(this.state.pos+1))return this.state.pos===this.state.start&&this.match(I.template)?36===i?(this.state.pos+=2,void this.finishToken(I.dollarBraceL)):(++this.state.pos,void this.finishToken(I.backQuote)):(t+=this.input.slice(e,this.state.pos),void this.finishToken(I.template,s?null:t));if(92===i){t+=this.input.slice(e,this.state.pos);var r=this.readEscapedChar(!0);null===r?s=!0:t+=r,e=this.state.pos}else if(h(i)){switch(t+=this.input.slice(e,this.state.pos),++this.state.pos,i){case 13:10===this.input.charCodeAt(this.state.pos)&&++this.state.pos;case 10:t+="\n";break;default:t+=String.fromCharCode(i)}++this.state.curLine,this.state.lineStart=this.state.pos,e=this.state.pos}else++this.state.pos}},i.readEscapedChar=function(t){var e=!t,s=this.input.charCodeAt(++this.state.pos);switch(++this.state.pos,s){case 110:return"\n";case 114:return"\r";case 120:var i=this.readHexChar(2,e);return null===i?null:String.fromCharCode(i);case 117:var r=this.readCodePoint(e);return null===r?null:l(r);case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.state.pos)&&++this.state.pos;case 10:return this.state.lineStart=this.state.pos,++this.state.curLine,"";default:if(s>=48&&s<=55){var a=this.state.pos-1,n=this.input.substr(this.state.pos-1,3).match(/^[0-7]+/)[0],o=parseInt(n,8);if(o>255&&(n=n.slice(0,-1),o=parseInt(n,8)),o>0){if(t)return this.state.invalidTemplateEscapePosition=a,null;this.state.strict?this.raise(a,"Octal literal in strict mode"):this.state.containsOctal||(this.state.containsOctal=!0,this.state.octalPosition=a)}return this.state.pos+=n.length-1,String.fromCharCode(o)}return String.fromCharCode(s)}},i.readHexChar=function(t,e){var s=this.state.pos,i=this.readInt(16,t);return null===i&&(e?this.raise(s,"Bad character escape sequence"):(this.state.pos=s-1,this.state.invalidTemplateEscapePosition=s-1)),i},i.readWord1=function(){this.state.containsEsc=!1;for(var t="",e=!0,s=this.state.pos;this.state.pos<this.input.length;){var i=this.fullCharCodeAtPos();if(o(i))this.state.pos+=i<=65535?1:2;else{if(92!==i)break;this.state.containsEsc=!0,t+=this.input.slice(s,this.state.pos);var r=this.state.pos;117!==this.input.charCodeAt(++this.state.pos)&&this.raise(this.state.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.state.pos;var a=this.readCodePoint(!0);(e?n:o)(a,!0)||this.raise(r,"Invalid Unicode escape"),t+=l(a),s=this.state.pos}e=!1}return t+this.input.slice(s,this.state.pos)},i.readWord=function(){var t=this.readWord1(),e=I.name;this.isKeyword(t)&&(this.state.containsEsc&&this.raise(this.state.pos,`Escape sequence in keyword ${t}`),e=M[t]),this.finishToken(e,t)},i.braceIsBlock=function(t){if(t===I.colon){var e=this.curContext();if(e===G.braceStatement||e===G.braceExpression)return!e.isExpr}return t===I._return?V.test(this.input.slice(this.state.lastTokEnd,this.state.start)):t===I._else||t===I.semi||t===I.eof||t===I.parenR||(t===I.braceL?this.curContext()===G.braceStatement:t===I.relational||!this.state.exprAllowed)},i.updateContext=function(t){var e,s=this.state.type;!s.keyword||t!==I.dot&&t!==I.questionDot?(e=s.updateContext)?e.call(this,t):this.state.exprAllowed=s.beforeExpr:this.state.exprAllowed=!1},e}(H)),et=["leadingComments","trailingComments","innerComments"],st=function(){function t(t,e,s){this.type="",this.start=e,this.end=0,this.loc=new J(s),t&&t.options.ranges&&(this.range=[e,0]),t&&t.filename&&(this.loc.filename=t.filename)}return t.prototype.__clone=function(){var e=this,s=new t;return Object.keys(this).forEach(function(t){et.indexOf(t)<0&&(s[t]=e[t])}),s},t}(),it=[],rt={kind:"loop"},at={kind:"switch"},nt={},ot=function(t){function e(e,s){var r;return e=i(e),r=t.call(this,e,s)||this,r.options=e,r.inModule="module"===r.options.sourceType,r.input=s,r.plugins=u(r.options.plugins),r.filename=e.sourceFilename,0===r.state.pos&&"#"===r.input[0]&&"!"===r.input[1]&&r.skipLineComment(2),r}return s(e,t),e.prototype.parse=function(){var t=this.startNode(),e=this.startNode();return this.nextToken(),this.parseTopLevel(t,e)},e}(function(t){function e(){return t.apply(this,arguments)||this}s(e,t);var i=e.prototype;return i.parseTopLevel=function(t,e){return e.sourceType=this.options.sourceType,this.parseBlockBody(e,!0,!0,I.eof),t.program=this.finishNode(e,"Program"),t.comments=this.state.comments,this.options.tokens&&(t.tokens=this.state.tokens),this.finishNode(t,"File")},i.stmtToDirective=function(t){var e=t.expression,s=this.startNodeAt(e.start,e.loc.start),i=this.startNodeAt(t.start,t.loc.start),r=this.input.slice(e.start,e.end),a=s.value=r.slice(1,-1);return this.addExtra(s,"raw",r),this.addExtra(s,"rawValue",a),i.value=this.finishNodeAt(s,"DirectiveLiteral",e.end,e.loc.end),this.finishNodeAt(i,"Directive",t.end,t.loc.end)},i.parseStatement=function(t,e){return this.match(I.at)&&this.parseDecorators(!0),this.parseStatementContent(t,e)},i.parseStatementContent=function(t,e){var s=this.state.type,i=this.startNode();switch(s){case I._break:case I._continue:return this.parseBreakContinueStatement(i,s.keyword);case I._debugger:return this.parseDebuggerStatement(i);case I._do:return this.parseDoStatement(i);case I._for:return this.parseForStatement(i);case I._function:if(this.lookahead().type===I.dot)break;return t||this.unexpected(),this.parseFunctionStatement(i);case I._class:return t||this.unexpected(),this.parseClass(i,!0);case I._if:return this.parseIfStatement(i);case I._return:return this.parseReturnStatement(i);case I._switch:return this.parseSwitchStatement(i);case I._throw:return this.parseThrowStatement(i);case I._try:return this.parseTryStatement(i);case I._let:case I._const:t||this.unexpected();case I._var:return this.parseVarStatement(i,s);case I._while:return this.parseWhileStatement(i);case I._with:return this.parseWithStatement(i);case I.braceL:return this.parseBlock();case I.semi:return this.parseEmptyStatement(i);case I._export:case I._import:if(this.hasPlugin("dynamicImport")&&this.lookahead().type===I.parenL||this.hasPlugin("importMeta")&&this.lookahead().type===I.dot)break;this.options.allowImportExportEverywhere||e||this.raise(this.state.start,"'import' and 'export' may only appear at the top level"),this.next();var r;return r=s==I._import?this.parseImport(i):this.parseExport(i),this.assertModuleNodeAllowed(i),r;case I.name:if("async"===this.state.value){var a=this.state.clone();if(this.next(),this.match(I._function)&&!this.canInsertSemicolon())return this.expect(I._function),this.parseFunction(i,!0,!1,!0);this.state=a}}var n=this.state.value,o=this.parseExpression();return s===I.name&&"Identifier"===o.type&&this.eat(I.colon)?this.parseLabeledStatement(i,n,o):this.parseExpressionStatement(i,o)},i.assertModuleNodeAllowed=function(t){this.options.allowImportExportEverywhere||this.inModule||this.raise(t.start,`'import' and 'export' may appear only with 'sourceType: "module"'`)},i.takeDecorators=function(t){var e=this.state.decoratorStack[this.state.decoratorStack.length-1];e.length&&(t.decorators=e,this.resetStartLocationFromNode(t,e[0]),this.state.decoratorStack[this.state.decoratorStack.length-1]=[])},i.parseDecorators=function(t){this.hasPlugin("decorators2")&&(t=!1);for(var e=this.state.decoratorStack[this.state.decoratorStack.length-1];this.match(I.at);){var s=this.parseDecorator();e.push(s)}if(this.match(I._export)){if(t)return;this.raise(this.state.start,"Using the export keyword between a decorator and a class is not allowed. Please use `export @dec class` instead")}this.match(I._class)||this.raise(this.state.start,"Leading decorators must be attached to a class declaration")},i.parseDecorator=function(){this.expectOnePlugin(["decorators","decorators2"]);var t=this.startNode();if(this.next(),this.hasPlugin("decorators2")){for(var e=this.state.start,s=this.state.startLoc,i=this.parseIdentifier(!1);this.eat(I.dot);){var r=this.startNodeAt(e,s);r.object=i,r.property=this.parseIdentifier(!0),r.computed=!1,i=this.finishNode(r,"MemberExpression")}if(this.eat(I.parenL)){var a=this.startNodeAt(e,s);a.callee=i,this.state.decoratorStack.push([]),a.arguments=this.parseCallExpressionArguments(I.parenR,!1),this.state.decoratorStack.pop(),i=this.finishNode(a,"CallExpression"),this.toReferencedList(i.arguments)}t.expression=i}else t.expression=this.parseMaybeAssign();return this.finishNode(t,"Decorator")},i.parseBreakContinueStatement=function(t,e){var s="break"===e;this.next(),this.isLineTerminator()?t.label=null:this.match(I.name)?(t.label=this.parseIdentifier(),this.semicolon()):this.unexpected();var i;for(i=0;i<this.state.labels.length;++i){var r=this.state.labels[i];if(null==t.label||r.name===t.label.name){if(null!=r.kind&&(s||"loop"===r.kind))break;if(t.label&&s)break}}return i===this.state.labels.length&&this.raise(t.start,"Unsyntactic "+e),this.finishNode(t,s?"BreakStatement":"ContinueStatement")},i.parseDebuggerStatement=function(t){return this.next(),this.semicolon(),this.finishNode(t,"DebuggerStatement")},i.parseDoStatement=function(t){return this.next(),this.state.labels.push(rt),t.body=this.parseStatement(!1),this.state.labels.pop(),this.expect(I._while),t.test=this.parseParenExpression(),this.eat(I.semi),this.finishNode(t,"DoWhileStatement")},i.parseForStatement=function(t){this.next(),this.state.labels.push(rt);var e=!1;if(this.state.inAsync&&this.isContextual("await")&&(this.expectPlugin("asyncGenerators"),e=!0,this.next()),this.expect(I.parenL),this.match(I.semi))return e&&this.unexpected(),this.parseFor(t,null);if(this.match(I._var)||this.match(I._let)||this.match(I._const)){var s=this.startNode(),i=this.state.type;return this.next(),this.parseVar(s,!0,i),this.finishNode(s,"VariableDeclaration"),!this.match(I._in)&&!this.isContextual("of")||1!==s.declarations.length||s.declarations[0].init?(e&&this.unexpected(),this.parseFor(t,s)):this.parseForIn(t,s,e)}var r={start:0},a=this.parseExpression(!0,r);if(this.match(I._in)||this.isContextual("of")){var n=this.isContextual("of")?"for-of statement":"for-in statement";return this.toAssignable(a,void 0,n),this.checkLVal(a,void 0,void 0,n),this.parseForIn(t,a,e)}return r.start&&this.unexpected(r.start),e&&this.unexpected(),this.parseFor(t,a)},i.parseFunctionStatement=function(t){return this.next(),this.parseFunction(t,!0)},i.parseIfStatement=function(t){return this.next(),t.test=this.parseParenExpression(),t.consequent=this.parseStatement(!1),t.alternate=this.eat(I._else)?this.parseStatement(!1):null,this.finishNode(t,"IfStatement")},i.parseReturnStatement=function(t){return this.state.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.state.start,"'return' outside of function"),this.next(),this.isLineTerminator()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")},i.parseSwitchStatement=function(t){this.next(),t.discriminant=this.parseParenExpression();var e=t.cases=[];this.expect(I.braceL),this.state.labels.push(at);for(var s,i;!this.match(I.braceR);)if(this.match(I._case)||this.match(I._default)){var r=this.match(I._case);s&&this.finishNode(s,"SwitchCase"),e.push(s=this.startNode()),s.consequent=[],this.next(),r?s.test=this.parseExpression():(i&&this.raise(this.state.lastTokStart,"Multiple default clauses"),i=!0,s.test=null),this.expect(I.colon)}else s?s.consequent.push(this.parseStatement(!0)):this.unexpected();return s&&this.finishNode(s,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(t,"SwitchStatement")},i.parseThrowStatement=function(t){return this.next(),V.test(this.input.slice(this.state.lastTokEnd,this.state.start))&&this.raise(this.state.lastTokEnd,"Illegal newline after throw"),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")},i.parseTryStatement=function(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.match(I._catch)){var e=this.startNode();if(this.next(),this.match(I.parenL)){this.expect(I.parenL),e.param=this.parseBindingAtom();var s=Object.create(null);this.checkLVal(e.param,!0,s,"catch clause"),this.expect(I.parenR)}else this.expectPlugin("optionalCatchBinding"),e.param=null;e.body=this.parseBlock(),t.handler=this.finishNode(e,"CatchClause")}return t.guardedHandlers=it,t.finalizer=this.eat(I._finally)?this.parseBlock():null,t.handler||t.finalizer||this.raise(t.start,"Missing catch or finally clause"),this.finishNode(t,"TryStatement")},i.parseVarStatement=function(t,e){return this.next(),this.parseVar(t,!1,e),this.semicolon(),this.finishNode(t,"VariableDeclaration")},i.parseWhileStatement=function(t){return this.next(),t.test=this.parseParenExpression(),this.state.labels.push(rt),t.body=this.parseStatement(!1),this.state.labels.pop(),this.finishNode(t,"WhileStatement")},i.parseWithStatement=function(t){return this.state.strict&&this.raise(this.state.start,"'with' in strict mode"),this.next(),t.object=this.parseParenExpression(),t.body=this.parseStatement(!1),this.finishNode(t,"WithStatement")},i.parseEmptyStatement=function(t){return this.next(),this.finishNode(t,"EmptyStatement")},i.parseLabeledStatement=function(t,e,s){for(var i=0,r=this.state.labels;i<r.length;i++)r[i].name===e&&this.raise(s.start,`Label '${e}' is already declared`);for(var a=this.state.type.isLoop?"loop":this.match(I._switch)?"switch":null,n=this.state.labels.length-1;n>=0;n--){var o=this.state.labels[n];if(o.statementStart!==t.start)break;o.statementStart=this.state.start,o.kind=a}return this.state.labels.push({name:e,kind:a,statementStart:this.state.start}),t.body=this.parseStatement(!0),("ClassDeclaration"==t.body.type||"VariableDeclaration"==t.body.type&&"var"!==t.body.kind||"FunctionDeclaration"==t.body.type&&(this.state.strict||t.body.generator||t.body.async))&&this.raise(t.body.start,"Invalid labeled declaration"),this.state.labels.pop(),t.label=s,this.finishNode(t,"LabeledStatement")},i.parseExpressionStatement=function(t,e){return t.expression=e,this.semicolon(),this.finishNode(t,"ExpressionStatement")},i.parseBlock=function(t){var e=this.startNode();return this.expect(I.braceL),this.parseBlockBody(e,t,!1,I.braceR),this.finishNode(e,"BlockStatement")},i.isValidDirective=function(t){return"ExpressionStatement"===t.type&&"StringLiteral"===t.expression.type&&!t.expression.extra.parenthesized},i.parseBlockBody=function(t,e,s,i){var r=t.body=[],a=t.directives=[];this.parseBlockOrModuleBlockBody(r,e?a:void 0,s,i)},i.parseBlockOrModuleBlockBody=function(t,e,s,i){for(var r,a,n=!1;!this.eat(i);){n||!this.state.containsOctal||a||(a=this.state.octalPosition);var o=this.parseStatement(!0,s);if(e&&!n&&this.isValidDirective(o)){var h=this.stmtToDirective(o);e.push(h),void 0===r&&"use strict"===h.value.value&&(r=this.state.strict,this.setStrict(!0),a&&this.raise(a,"Octal literal in strict mode"))}else n=!0,t.push(o)}!1===r&&this.setStrict(!1)},i.parseFor=function(t,e){return t.init=e,this.expect(I.semi),t.test=this.match(I.semi)?null:this.parseExpression(),this.expect(I.semi),t.update=this.match(I.parenR)?null:this.parseExpression(),this.expect(I.parenR),t.body=this.parseStatement(!1),this.state.labels.pop(),this.finishNode(t,"ForStatement")},i.parseForIn=function(t,e,s){var i=this.match(I._in)?"ForInStatement":"ForOfStatement";return s?this.eatContextual("of"):this.next(),"ForOfStatement"===i&&(t.await=!!s),t.left=e,t.right=this.parseExpression(),this.expect(I.parenR),t.body=this.parseStatement(!1),this.state.labels.pop(),this.finishNode(t,i)},i.parseVar=function(t,e,s){var i=t.declarations=[];for(t.kind=s.keyword;;){var r=this.startNode();if(this.parseVarHead(r),this.eat(I.eq)?r.init=this.parseMaybeAssign(e):(s!==I._const||this.match(I._in)||this.isContextual("of")?"Identifier"===r.id.type||e&&(this.match(I._in)||this.isContextual("of"))||this.raise(this.state.lastTokEnd,"Complex binding patterns require an initialization value"):this.hasPlugin("typescript")||this.unexpected(),r.init=null),i.push(this.finishNode(r,"VariableDeclarator")),!this.eat(I.comma))break}return t},i.parseVarHead=function(t){t.id=this.parseBindingAtom(),this.checkLVal(t.id,!0,void 0,"variable declaration")},i.parseFunction=function(t,e,s,i,r){var a=this.state.inFunction,n=this.state.inMethod,o=this.state.inGenerator;return this.state.inFunction=!0,this.state.inMethod=!1,this.initFunction(t,i),this.match(I.star)&&(t.async&&this.expectPlugin("asyncGenerators"),t.generator=!0,this.next()),!e||r||this.match(I.name)||this.match(I._yield)||this.unexpected(),e||(this.state.inGenerator=t.generator),(this.match(I.name)||this.match(I._yield))&&(t.id=this.parseBindingIdentifier()),e&&(this.state.inGenerator=t.generator),this.parseFunctionParams(t),this.parseFunctionBodyAndFinish(t,e?"FunctionDeclaration":"FunctionExpression",s),this.state.inFunction=a,this.state.inMethod=n,this.state.inGenerator=o,t},i.parseFunctionParams=function(t,e){var s=this.state.inParameters;this.state.inParameters=!0,this.expect(I.parenL),t.params=this.parseBindingList(I.parenR,!1,e),this.state.inParameters=s},i.parseClass=function(t,e,s){return this.next(),this.takeDecorators(t),this.parseClassId(t,e,s),this.parseClassSuper(t),this.parseClassBody(t),this.finishNode(t,e?"ClassDeclaration":"ClassExpression")},i.isClassProperty=function(){return this.match(I.eq)||this.match(I.semi)||this.match(I.braceR)},i.isClassMethod=function(){return this.match(I.parenL)},i.isNonstaticConstructor=function(t){return!(t.computed||t.static||"constructor"!==t.key.name&&"constructor"!==t.key.value)},i.parseClassBody=function(t){var e=this.state.strict;this.state.strict=!0,this.state.classLevel++;var s={hadConstructor:!1},i=[],r=this.startNode();for(r.body=[],this.expect(I.braceL);!this.eat(I.braceR);)if(this.eat(I.semi))i.length>0&&this.raise(this.state.lastTokEnd,"Deco