From 1dbefcbd83d793b53b26afa4bfe36638b4b751cb Mon Sep 17 00:00:00 2001 From: Dominic Gannaway Date: Thu, 21 Dec 2017 13:34:06 +0000 Subject: [PATCH] Adds more REPL options and updates bundle. Adds more REPL options, such as: "omitInvariants" and "reactOutput". "reactEnabled" and "omitInvariants" are now on by default. Bundle has been updated to the latest version. --- js/prepack.min.js | 2 +- js/repl.js | 19 ++++++++++++++++--- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/js/prepack.min.js b/js/prepack.min.js index f0f46106c7..ea20064aab 100644 --- a/js/prepack.min.js +++ b/js/prepack.min.js @@ -1 +1 @@ -var Prepack=function(e){function t(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var r={};return t.m=e,t.c=r,t.i=function(e){return e},t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=472)}([function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=r(175);Object.defineProperty(t,"Value",{enumerable:!0,get:function(){return n(i).default}});var a=r(497);Object.defineProperty(t,"ConcreteValue",{enumerable:!0,get:function(){return n(a).default}});var o=r(507);Object.defineProperty(t,"PrimitiveValue",{enumerable:!0,get:function(){return n(o).default}});var s=r(506);Object.defineProperty(t,"ObjectValue",{enumerable:!0,get:function(){return n(s).default}});var u=r(501);Object.defineProperty(t,"FunctionValue",{enumerable:!0,get:function(){return n(u).default}});var l=r(498);Object.defineProperty(t,"ECMAScriptFunctionValue",{enumerable:!0,get:function(){return n(l).default}});var c=r(499);Object.defineProperty(t,"ECMAScriptSourceFunctionValue",{enumerable:!0,get:function(){return n(c).default}});var f=r(496);Object.defineProperty(t,"BoundFunctionValue",{enumerable:!0,get:function(){return n(f).default}});var d=r(503);Object.defineProperty(t,"NativeFunctionValue",{enumerable:!0,get:function(){return n(d).default}}),Object.defineProperty(t,"NativeFunctionCallback",{enumerable:!0,get:function(){return d.NativeFunctionCallback}});var p=r(494);Object.defineProperty(t,"ArrayValue",{enumerable:!0,get:function(){return n(p).default}});var h=r(512);Object.defineProperty(t,"UndefinedValue",{enumerable:!0,get:function(){return n(h).default}});var v=r(500);Object.defineProperty(t,"EmptyValue",{enumerable:!0,get:function(){return n(v).default}});var y=r(504);Object.defineProperty(t,"NullValue",{enumerable:!0,get:function(){return n(y).default}});var m=r(505);Object.defineProperty(t,"NumberValue",{enumerable:!0,get:function(){return n(m).default}});var b=r(508);Object.defineProperty(t,"ProxyValue",{enumerable:!0,get:function(){return n(b).default}});var g=r(509);Object.defineProperty(t,"StringExotic",{enumerable:!0,get:function(){return n(g).default}});var w=r(493);Object.defineProperty(t,"ArgumentsExotic",{enumerable:!0,get:function(){return n(w).default}});var E=r(502);Object.defineProperty(t,"IntegerIndexedExotic",{enumerable:!0,get:function(){return n(E).default}});var C=r(495);Object.defineProperty(t,"BooleanValue",{enumerable:!0,get:function(){return n(C).default}});var S=r(510);Object.defineProperty(t,"StringValue",{enumerable:!0,get:function(){return n(S).default}});var A=r(511);Object.defineProperty(t,"SymbolValue",{enumerable:!0,get:function(){return n(A).default}});var T=r(492);Object.defineProperty(t,"AbstractValue",{enumerable:!0,get:function(){return n(T).default}}),Object.defineProperty(t,"AbstractValueBuildNodeFunction",{enumerable:!0,get:function(){return T.AbstractValueBuildNodeFunction}});var O=r(174);Object.defineProperty(t,"AbstractObjectValue",{enumerable:!0,get:function(){return n(O).default}})},function(e,t,r){"use strict";function n(e,t){if(!e){var r=new Error(t);throw r.name="Invariant Violation",r}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t,r){"use strict";function n(e){t.Create=d=e}function i(e){t.Environment=p=e}function a(e){t.Functions=h=e}function o(e){t.Join=v=e}function s(e){t.Leak=y=e}function u(e){t.Path=m=e}function l(e){t.Properties=b=e}function c(e){t.To=g=e}function f(e){t.Widen=w=e}Object.defineProperty(t,"__esModule",{value:!0}),t.setCreate=n,t.setEnvironment=i,t.setFunctions=a,t.setJoin=o,t.setLeak=s,t.setPath=u,t.setProperties=l,t.setTo=c,t.setWiden=f;var d=t.Create=null,p=t.Environment=null,h=t.Functions=null,v=t.Join=null,y=t.Leak=null,m=t.Path=null,b=t.Properties=null,g=t.To=null,w=t.Widen=null},function(e,t,r){"use strict";function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.PossiblyNormalCompletion=t.JoinedAbruptCompletions=t.ReturnCompletion=t.BreakCompletion=t.ContinueCompletion=t.ThrowCompletion=t.AbruptCompletion=t.NormalCompletion=t.Completion=void 0;var o=function(){function e(e,t){for(var r=0;r8&&void 0!==arguments[8]?arguments[8]:void 0;a(this,t),(0,u.default)(i instanceof f||i instanceof l.Value||s instanceof f||s instanceof l.Value),(0,u.default)(i instanceof d||s instanceof d),(0,u.default)(e===i||i instanceof d||i instanceof f&&e===i.value),(0,u.default)(e===s||s instanceof d||s instanceof f&&e===s.value);var m=i instanceof d?i.location:s instanceof c?s.location:s.expressionLocation,b=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,m));return b.joinCondition=r,b.consequent=i,b.consequentEffects=o,b.alternate=s,b.alternateEffects=p,b.savedEffects=y,b.pathConditions=h,b.savedPathConditions=v,b}return i(t,e),o(t,[{key:"containsBreakOrContinue",value:function(){return this.consequent instanceof h||this.consequent instanceof p||(this.alternate instanceof h||this.alternate instanceof p||(!(!(this.consequent instanceof v||this.consequent instanceof t)||!this.consequent.containsBreakOrContinue())||!(!(this.alternate instanceof v||this.alternate instanceof t)||!this.alternate.containsBreakOrContinue())))}}]),t}(f)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(12);Object.keys(n).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}})});var i=r(13);Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}})});var a=r(21);Object.keys(a).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}})});var o=r(164);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}})});var s=r(410);Object.keys(s).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}})});var u=r(10);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}})});var l=r(16);Object.keys(l).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}})});var c=r(414);Object.keys(c).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}})});var f=r(166);Object.keys(f).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}})});var d=r(9);Object.keys(d).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}})});var p=r(48);Object.keys(p).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return p[e]}})});var h=r(167);Object.keys(h).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return h[e]}})});var v=r(411);Object.keys(v).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return v[e]}})});var y=r(79);Object.keys(y).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return y[e]}})});var m=r(107);Object.keys(m).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return m[e]}})});var b=r(57);Object.keys(b).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return b[e]}})})},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=Y["is"+e];t||(t=Y["is"+e]=function(t,r){return Y.is(e,t,r)}),Y["assert"+e]=function(r,n){if(n=n||{},!t(r,n))throw new Error("Expected type "+(0,k.default)(e)+" with option "+(0,k.default)(n))}}function a(e,t,r){return!!t&&(!!o(t.type,e)&&(void 0===r||Y.shallowEqual(t,r)))}function o(e,t){if(e===t)return!0;if(Y.ALIAS_KEYS[t])return!1;var r=Y.FLIPPED_ALIAS_KEYS[t];if(r){if(r[0]===e)return!0;for(var n=r,i=Array.isArray(n),a=0,n=i?n:(0,N.default)(n);;){var o;if(i){if(a>=n.length)break;o=n[a++]}else{if(a=n.next(),a.done)break;o=a.value}if(e===o)return!0}}return!1}function s(e,t,r){if(e){var n=Y.NODE_FIELDS[e.type];if(n){var i=n[t];i&&i.validate&&(i.optional&&null==r||i.validate(e,t,r))}}}function u(e,t){for(var r=(0,j.default)(t),n=r,i=Array.isArray(n),a=0,n=i?n:(0,N.default)(n);;){var o;if(i){if(a>=n.length)break;o=n[a++]}else{if(a=n.next(),a.done)break;o=a.value}var s=o;if(e[s]!==t[s])return!1}return!0}function l(e,t,r){return e.object=Y.memberExpression(e.object,e.property,e.computed),e.property=t,e.computed=!!r,e}function c(e,t){return e.object=Y.memberExpression(t,e.object),e}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body";return e[t]=Y.toBlock(e[t],e)}function d(e){if(!e)return e;var t={};for(var r in e)"_"!==r[0]&&(t[r]=e[r]);return t}function p(e){var t=d(e);return delete t.loc,t}function h(e){if(!e)return e;var t={};for(var r in e)if("_"!==r[0]){var n=e[r];n&&(n.type?n=Y.cloneDeep(n):Array.isArray(n)&&(n=n.map(Y.cloneDeep))),t[r]=n}return t}function v(e,t){var r=e.split(".");return function(e){if(!Y.isMemberExpression(e))return!1;for(var n=[e],i=0;n.length;){var a=n.shift();if(t&&i===r.length)return!0;if(Y.isIdentifier(a)){if(r[i]!==a.name)return!1}else{if(!Y.isStringLiteral(a)){if(Y.isMemberExpression(a)){if(a.computed&&!Y.isStringLiteral(a.property))return!1;n.push(a.object),n.push(a.property);continue}return!1}if(r[i]!==a.value)return!1}if(++i>r.length)return!1}return!0}}function y(e){for(var t=Y.COMMENT_KEYS,r=Array.isArray(t),n=0,t=r?t:(0,N.default)(t);;){var i;if(r){if(n>=t.length)break;i=t[n++]}else{if(n=t.next(),n.done)break;i=n.value}delete e[i]}return e}function m(e,t){return b(e,t),g(e,t),w(e,t),e}function b(e,t){E("trailingComments",e,t)}function g(e,t){E("leadingComments",e,t)}function w(e,t){E("innerComments",e,t)}function E(e,t,r){t&&r&&(t[e]=(0,q.default)([].concat(t[e],r[e]).filter(Boolean)))}function C(e,t){if(!e||!t)return e;for(var r=Y.INHERIT_KEYS.optional,n=Array.isArray(r),i=0,r=n?r:(0,N.default)(r);;){var a;if(n){if(i>=r.length)break;a=r[i++]}else{if(i=r.next(),i.done)break;a=i.value}var o=a;null==e[o]&&(e[o]=t[o])}for(var s in t)"_"===s[0]&&(e[s]=t[s]);for(var u=Y.INHERIT_KEYS.force,l=Array.isArray(u),c=0,u=l?u:(0,N.default)(u);;){var f;if(l){if(c>=u.length)break;f=u[c++]}else{if(c=u.next(),c.done)break;f=c.value}var d=f;e[d]=t[d]}return Y.inheritsComments(e,t),e}function S(e){if(!A(e))throw new TypeError("Not a valid node "+(e&&e.type))}function A(e){return!(!e||!H.VISITOR_KEYS[e.type])}function T(e,t,r){if(e){var n=Y.VISITOR_KEYS[e.type];if(n){r=r||{},t(e,r);for(var i=n,a=Array.isArray(i),o=0,i=a?i:(0,N.default)(i);;){var s;if(a){if(o>=i.length)break;s=i[o++]}else{if(o=i.next(),o.done)break;s=o.value}var u=s,l=e[u];if(Array.isArray(l))for(var c=l,f=Array.isArray(c),d=0,c=f?c:(0,N.default)(c);;){var p;if(f){if(d>=c.length)break;p=c[d++]}else{if(d=c.next(),d.done)break;p=d.value}var h=p;T(h,t,r)}else T(l,t,r)}}}}function O(e,t){t=t||{};for(var r=t.preserveComments?Z:ee,n=r,i=Array.isArray(n),a=0,n=i?n:(0,N.default)(n);;){var o;if(i){if(a>=n.length)break;o=n[a++]}else{if(a=n.next(),a.done)break;o=a.value}var s=o;null!=e[s]&&(e[s]=void 0)}for(var u in e)"_"===u[0]&&null!=e[u]&&(e[u]=void 0);for(var l=(0,V.default)(e),c=l,f=Array.isArray(c),d=0,c=f?c:(0,N.default)(c);;){var p;if(f){if(d>=c.length)break;p=c[d++]}else{if(d=c.next(),d.done)break;p=d.value}e[p]=null}}function P(e,t){return T(e,O,t),e}t.__esModule=!0,t.createTypeAnnotationBasedOnTypeof=t.removeTypeDuplicates=t.createUnionTypeAnnotation=t.valueToNode=t.toBlock=t.toExpression=t.toStatement=t.toBindingIdentifierName=t.toIdentifier=t.toKeyAlias=t.toSequenceExpression=t.toComputedKey=t.isNodesEquivalent=t.isImmutable=t.isScope=t.isSpecifierDefault=t.isVar=t.isBlockScoped=t.isLet=t.isValidIdentifier=t.isReferenced=t.isBinding=t.getOuterBindingIdentifiers=t.getBindingIdentifiers=t.TYPES=t.react=t.DEPRECATED_KEYS=t.BUILDER_KEYS=t.NODE_FIELDS=t.ALIAS_KEYS=t.VISITOR_KEYS=t.NOT_LOCAL_BINDING=t.BLOCK_SCOPED_SYMBOL=t.INHERIT_KEYS=t.UNARY_OPERATORS=t.STRING_UNARY_OPERATORS=t.NUMBER_UNARY_OPERATORS=t.BOOLEAN_UNARY_OPERATORS=t.BINARY_OPERATORS=t.NUMBER_BINARY_OPERATORS=t.BOOLEAN_BINARY_OPERATORS=t.COMPARISON_BINARY_OPERATORS=t.EQUALITY_BINARY_OPERATORS=t.BOOLEAN_NUMBER_BINARY_OPERATORS=t.UPDATE_OPERATORS=t.LOGICAL_OPERATORS=t.COMMENT_KEYS=t.FOR_INIT_KEYS=t.FLATTENABLE_KEYS=t.STATEMENT_OR_BLOCK_KEYS=void 0;var x=r(531),V=n(x),_=r(11),N=n(_),D=r(58),j=n(D),I=r(69),k=n(I),F=r(116);Object.defineProperty(t,"STATEMENT_OR_BLOCK_KEYS",{enumerable:!0,get:function(){return F.STATEMENT_OR_BLOCK_KEYS}}),Object.defineProperty(t,"FLATTENABLE_KEYS",{enumerable:!0,get:function(){return F.FLATTENABLE_KEYS}}),Object.defineProperty(t,"FOR_INIT_KEYS",{enumerable:!0,get:function(){return F.FOR_INIT_KEYS}}),Object.defineProperty(t,"COMMENT_KEYS",{enumerable:!0,get:function(){return F.COMMENT_KEYS}}),Object.defineProperty(t,"LOGICAL_OPERATORS",{enumerable:!0,get:function(){return F.LOGICAL_OPERATORS}}),Object.defineProperty(t,"UPDATE_OPERATORS",{enumerable:!0,get:function(){return F.UPDATE_OPERATORS}}),Object.defineProperty(t,"BOOLEAN_NUMBER_BINARY_OPERATORS",{enumerable:!0,get:function(){return F.BOOLEAN_NUMBER_BINARY_OPERATORS}}),Object.defineProperty(t,"EQUALITY_BINARY_OPERATORS",{enumerable:!0,get:function(){return F.EQUALITY_BINARY_OPERATORS}}),Object.defineProperty(t,"COMPARISON_BINARY_OPERATORS",{enumerable:!0,get:function(){return F.COMPARISON_BINARY_OPERATORS}}),Object.defineProperty(t,"BOOLEAN_BINARY_OPERATORS",{enumerable:!0,get:function(){return F.BOOLEAN_BINARY_OPERATORS}}),Object.defineProperty(t,"NUMBER_BINARY_OPERATORS",{enumerable:!0,get:function(){return F.NUMBER_BINARY_OPERATORS}}),Object.defineProperty(t,"BINARY_OPERATORS",{enumerable:!0,get:function(){return F.BINARY_OPERATORS}}),Object.defineProperty(t,"BOOLEAN_UNARY_OPERATORS",{enumerable:!0,get:function(){return F.BOOLEAN_UNARY_OPERATORS}}),Object.defineProperty(t,"NUMBER_UNARY_OPERATORS",{enumerable:!0,get:function(){return F.NUMBER_UNARY_OPERATORS}}),Object.defineProperty(t,"STRING_UNARY_OPERATORS",{enumerable:!0,get:function(){return F.STRING_UNARY_OPERATORS}}),Object.defineProperty(t,"UNARY_OPERATORS",{enumerable:!0,get:function(){return F.UNARY_OPERATORS}}),Object.defineProperty(t,"INHERIT_KEYS",{enumerable:!0,get:function(){return F.INHERIT_KEYS}}),Object.defineProperty(t,"BLOCK_SCOPED_SYMBOL",{enumerable:!0,get:function(){return F.BLOCK_SCOPED_SYMBOL}}),Object.defineProperty(t,"NOT_LOCAL_BINDING",{enumerable:!0,get:function(){return F.NOT_LOCAL_BINDING}}),t.is=a,t.isType=o,t.validate=s,t.shallowEqual=u,t.appendToMemberExpression=l,t.prependToMemberExpression=c,t.ensureBlock=f,t.clone=d,t.cloneWithoutLoc=p,t.cloneDeep=h,t.buildMatchMemberExpression=v,t.removeComments=y,t.inheritsComments=m,t.inheritTrailingComments=b,t.inheritLeadingComments=g,t.inheritInnerComments=w,t.inherits=C,t.assertNode=S,t.isNode=A,t.traverseFast=T,t.removeProperties=O,t.removePropertiesDeep=P;var B=r(185);Object.defineProperty(t,"getBindingIdentifiers",{enumerable:!0,get:function(){return B.getBindingIdentifiers}}),Object.defineProperty(t,"getOuterBindingIdentifiers",{enumerable:!0,get:function(){return B.getOuterBindingIdentifiers}});var M=r(569);Object.defineProperty(t,"isBinding",{enumerable:!0,get:function(){return M.isBinding}}),Object.defineProperty(t,"isReferenced",{enumerable:!0,get:function(){return M.isReferenced}}),Object.defineProperty(t,"isValidIdentifier",{enumerable:!0,get:function(){return M.isValidIdentifier}}),Object.defineProperty(t,"isLet",{enumerable:!0,get:function(){return M.isLet}}),Object.defineProperty(t,"isBlockScoped",{enumerable:!0,get:function(){return M.isBlockScoped}}),Object.defineProperty(t,"isVar",{enumerable:!0,get:function(){return M.isVar}}),Object.defineProperty(t,"isSpecifierDefault",{enumerable:!0,get:function(){return M.isSpecifierDefault}}),Object.defineProperty(t,"isScope",{enumerable:!0,get:function(){return M.isScope}}),Object.defineProperty(t,"isImmutable",{enumerable:!0,get:function(){return M.isImmutable}}),Object.defineProperty(t,"isNodesEquivalent",{enumerable:!0,get:function(){return M.isNodesEquivalent}});var R=r(559);Object.defineProperty(t,"toComputedKey",{enumerable:!0,get:function(){return R.toComputedKey}}),Object.defineProperty(t,"toSequenceExpression",{enumerable:!0,get:function(){return R.toSequenceExpression}}),Object.defineProperty(t,"toKeyAlias",{enumerable:!0,get:function(){return R.toKeyAlias}}),Object.defineProperty(t,"toIdentifier",{enumerable:!0,get:function(){return R.toIdentifier}}),Object.defineProperty(t,"toBindingIdentifierName",{enumerable:!0,get:function(){return R.toBindingIdentifierName}}),Object.defineProperty(t,"toStatement",{enumerable:!0,get:function(){return R.toStatement}}),Object.defineProperty(t,"toExpression",{enumerable:!0,get:function(){return R.toExpression}}),Object.defineProperty(t,"toBlock",{enumerable:!0,get:function(){return R.toBlock}}),Object.defineProperty(t,"valueToNode",{enumerable:!0,get:function(){return R.valueToNode}});var $=r(567);Object.defineProperty(t,"createUnionTypeAnnotation",{enumerable:!0,get:function(){return $.createUnionTypeAnnotation}}),Object.defineProperty(t,"removeTypeDuplicates",{enumerable:!0,get:function(){return $.removeTypeDuplicates}}),Object.defineProperty(t,"createTypeAnnotationBasedOnTypeof",{enumerable:!0,get:function(){return $.createTypeAnnotationBasedOnTypeof}});var L=r(771),G=n(L),z=r(233),U=n(z),W=r(753),q=n(W);r(564);var H=r(40),K=r(568),J=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(K),Y=t;t.VISITOR_KEYS=H.VISITOR_KEYS,t.ALIAS_KEYS=H.ALIAS_KEYS,t.NODE_FIELDS=H.NODE_FIELDS,t.BUILDER_KEYS=H.BUILDER_KEYS,t.DEPRECATED_KEYS=H.DEPRECATED_KEYS,t.react=J;for(var X in Y.VISITOR_KEYS)i(X);Y.FLIPPED_ALIAS_KEYS={},(0,j.default)(Y.ALIAS_KEYS).forEach(function(e){Y.ALIAS_KEYS[e].forEach(function(t){(Y.FLIPPED_ALIAS_KEYS[t]=Y.FLIPPED_ALIAS_KEYS[t]||[]).push(e)})}),(0,j.default)(Y.FLIPPED_ALIAS_KEYS).forEach(function(e){Y[e.toUpperCase()+"_TYPES"]=Y.FLIPPED_ALIAS_KEYS[e],i(e)});t.TYPES=(0,j.default)(Y.VISITOR_KEYS).concat((0,j.default)(Y.FLIPPED_ALIAS_KEYS)).concat((0,j.default)(Y.DEPRECATED_KEYS));(0,j.default)(Y.BUILDER_KEYS).forEach(function(e){function t(){if(arguments.length>r.length)throw new Error("t."+e+": Too many arguments passed. Received "+arguments.length+" but can receive no more than "+r.length);var t={};t.type=e;for(var n=0,i=r,a=Array.isArray(i),o=0,i=a?i:(0,N.default)(i);;){var u;if(a){if(o>=i.length)break;u=i[o++]}else{if(o=i.next(),o.done)break;u=o.value}var l=u,c=Y.NODE_FIELDS[e][l],f=arguments[n++];void 0===f&&(f=(0,U.default)(c.default)),t[l]=f}for(var d in t)s(t,d,t[d]);return t}var r=Y.BUILDER_KEYS[e];Y[e]=t,Y[e[0].toLowerCase()+e.slice(1)]=t});for(var Q in Y.DEPRECATED_KEYS)!function(e){function t(t){return function(){return console.trace("The node type "+e+" has been renamed to "+r),t.apply(this,arguments)}}var r=Y.DEPRECATED_KEYS[e];Y[e]=Y[e[0].toLowerCase()+e.slice(1)]=t(Y[r]),Y["is"+e]=t(Y["is"+r]),Y["assert"+e]=t(Y["assert"+r])}(Q);(0,G.default)(Y),(0,G.default)(Y.VISITOR_KEYS);var Z=["tokens","start","end","loc","raw","rawValue"],ee=Y.COMMENT_KEYS.concat(["comments"]).concat(Z)},function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function o(e){var t=new Error(e||"A fatal error occurred while prepacking.");return Object.setPrototypeOf(t,o.prototype),t}Object.defineProperty(t,"__esModule",{value:!0}),t.FatalError=o;t.CompilerDiagnostic=function(e){function t(e,r,a,o){n(this,t);var s=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return s.location=r,s.severity=o,s.errorCode=a,s}return a(t,e),t}(Error);Object.setPrototypeOf(o,Error),Object.setPrototypeOf(o.prototype,Error.prototype)},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e){return[e.intrinsics.empty,new m.Generator(e),new Map,new Map,new Set]}Object.defineProperty(t,"__esModule",{value:!0}),t.Realm=t.ExecutionContext=t.Tracer=void 0;var o=function(){function e(e,t){var r=[],n=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(n=(o=s.next()).done)&&(r.push(o.value),!t||r.length!==t);n=!0);}catch(e){i=!0,a=e}finally{try{!n&&s.return&&s.return()}finally{if(i)throw a}}return r}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function e(e,t){for(var r=0;re)throw new u.FatalError("Timed out")}}},{key:"hasRunningContext",value:function(){return 0!==this.contextStack.length}},{key:"getRunningContext",value:function(){var e=this.contextStack[this.contextStack.length-1];return(0,h.default)(e,"There's no running execution context"),e}},{key:"onDestroyScope",value:function(e){(0,h.default)(this.activeLexicalEnvironments.has(e));var t=this.modifiedBindings;if(t){var r=e.environmentRecord;if(r instanceof c.DeclarativeEnvironmentRecord){var n=!0,i=!1,a=void 0;try{for(var o,s=t.keys()[Symbol.iterator]();!(n=(o=s.next()).done);n=!0){var u=o.value;r.bindings[u.name]&&r.bindings[u.name]===u&&t.delete(u)}}catch(e){i=!0,a=e}finally{try{!n&&s.return&&s.return()}finally{if(i)throw a}}}}this.activeLexicalEnvironments.delete(e),e.destroy()}},{key:"pushContext",value:function(e){if(this.contextStack.length>=this.maxStackDepth)throw new u.FatalError("Maximum stack depth exceeded");this.contextStack.push(e)}},{key:"popContext",value:function(e){if(void 0!==e.function){var t=this.modifiedBindings;if(void 0!==t){var r=!0,n=!1,i=void 0;try{for(var a,o=t.keys()[Symbol.iterator]();!(r=(a=o.next()).done);r=!0){var s=a.value;s.environment.$FunctionObject===e.function&&t.delete(s)}}catch(e){n=!0,i=e}finally{try{!r&&o.return&&o.return()}finally{if(n)throw i}}}}var u=this.contextStack.pop();(0,h.default)(u===e)}},{key:"wrapInGlobalEnv",value:function(e){var t=new E;t.isStrict=this.isStrict,t.lexicalEnvironment=this.$GlobalEnv,t.variableEnvironment=this.$GlobalEnv,t.realm=this,this.pushContext(t);try{return e()}finally{this.popContext(t)}}},{key:"assignToGlobal",value:function(e,t){var r=this;this.wrapInGlobalEnv(function(){return r.$GlobalEnv.assignToGlobal(e,t)})}},{key:"deleteGlobalBinding",value:function(e){this.$GlobalEnv.environmentRecord.DeleteBinding(e)}},{key:"evaluatePure",value:function(e){if(!this.trackLeaks)return e();var t=this.createdObjectsTrackedForLeaks;this.createdObjectsTrackedForLeaks=new Set;try{return e()}finally{this.createdObjectsTrackedForLeaks=t}}},{key:"evaluateNodeForEffects",value:function(e,t,r,n){return this.evaluateForEffects(function(){return r.evaluateCompletionDeref(e,t)},n)}},{key:"evaluateAndRevertInGlobalEnv",value:function(e){var t=this;this.wrapInGlobalEnv(function(){return t.evaluateForEffects(e)})}},{key:"evaluateNodeForEffectsInGlobalEnv",value:function(e,t){var r=this;return this.wrapInGlobalEnv(function(){return r.evaluateNodeForEffects(e,!1,r.$GlobalEnv,t)})}},{key:"partiallyEvaluateNodeForEffects",value:function(e,t,r){function n(){var n=void 0,s=r.partiallyEvaluateCompletionDeref(e,t),u=o(s,3);return n=u[0],i=u[1],a=u[2],n}var i=void 0,a=void 0,s=this.evaluateForEffects(n);return(0,h.default)(void 0!==i&&void 0!==a),[s,i,a]}},{key:"evaluateForEffects",value:function(e,t){var r=this.getAndResetModifiedMaps(),n=o(r,2),i=n[0],a=n[1],s=this.generator,u=this.createdObjects,f=this.savedCompletion;this.generator=new m.Generator(this),this.createdObjects=new Set,this.savedCompletion=void 0;var p=void 0;try{var v=!0,y=!1,g=void 0;try{for(var w,E=this.tracers[Symbol.iterator]();!(v=(w=E.next()).done);v=!0){w.value.beginEvaluateForEffects(t)}}catch(e){y=!0,g=e}finally{try{!v&&E.return&&E.return()}finally{if(y)throw g}}var C=void 0;try{try{C=e(),C instanceof c.Reference&&(C=b.Environment.GetValue(this,C))}catch(e){if(!(e instanceof d.AbruptCompletion))throw e;C=e}if((C instanceof l.Value||C instanceof d.AbruptCompletion)&&(C=b.Functions.incorporateSavedCompletion(this,C)),(0,h.default)(void 0!==C),C instanceof d.PossiblyNormalCompletion){var S=this.getCapturedEffects(C,C.value);(0,h.default)(void 0!==S),this.stopEffectCaptureAndUndoEffects(C),b.Join.updatePossiblyNormalCompletionWithSubsequentEffects(this,C,S),this.savedCompletion=void 0}(0,h.default)(void 0!==this.generator),(0,h.default)(void 0!==this.modifiedBindings),(0,h.default)(void 0!==this.modifiedProperties),(0,h.default)(void 0!==this.createdObjects);var A=this.generator,T=this.modifiedBindings,O=this.modifiedProperties,P=this.createdObjects;return p=[C,A,T,O,P]}finally{void 0!==this.savedCompletion&&this.stopEffectCaptureAndUndoEffects(this.savedCompletion),void 0!==p?(this.restoreBindings(p[2]),this.restoreProperties(p[3])):(this.restoreBindings(this.modifiedBindings),this.restoreProperties(this.modifiedProperties)),this.generator=s,this.modifiedBindings=i,this.modifiedProperties=a,this.createdObjects=u,this.savedCompletion=f}}finally{var x=!0,V=!1,_=void 0;try{for(var N,D=this.tracers[Symbol.iterator]();!(x=(N=D.next()).done);x=!0){N.value.endEvaluateForEffects(t,p)}}catch(e){V=!0,_=e}finally{try{!x&&D.return&&D.return()}finally{if(V)throw _}}}}},{key:"evaluateWithUndoForDiagnostic",value:function(e){if(!this.useAbstractInterpretation)return e();var t=this.errorHandler,r=void 0;try{this.errorHandler=function(e){return r=e,"Fail"};var n=this.evaluateForEffects(e);this.applyEffects(n);var i=n[0];if(i instanceof d.AbruptCompletion)throw i;return i instanceof d.PossiblyNormalCompletion&&(i=this.composeWithSavedCompletion(i)),(0,h.default)(i instanceof l.Value),i}catch(e){if(void 0!==r)return r;throw e}finally{this.errorHandler=t}}},{key:"evaluateForFixpointEffects",value:function(e,t){try{for(var r=this.evaluateForEffects(t);;){this.restoreBindings(r[2]),this.restoreProperties(r[3]);var n=this.evaluateForEffects(function(){if(!(e()instanceof l.AbstractValue))throw new u.FatalError("loop terminates before fixed point");return t()});if(this.restoreBindings(r[2]),this.restoreProperties(r[3]),b.Widen.containsEffects(r,n)){var i=o(n,4),a=i[1],s=i[2],c=i[3];return this._emitLocalAssignments(a,s),this._emitPropertAssignments(a,c),[r,n]}r=b.Widen.widenEffects(this,r,n)}}catch(e){return}}},{key:"_emitLocalAssignments",value:function(e,t){var r=new Map;t.forEach(function(t,n,i){var a=t.value;if(a instanceof l.AbstractValue){(0,h.default)(void 0!==a._buildNode);var s=e.derive(a.types,a.values,[a],function(e){return o(e,1)[0]},{skipInvariant:!0});r.set(n,s)}}),t.forEach(function(t,n,i){if(t.value instanceof l.AbstractValue){var a=n.phiNode,s=r.get(n);(0,h.default)(void 0!==s),e.emitStatement([s],function(e){var t=o(e,1),r=t[0];(0,h.default)(void 0!==a);var n=a.buildNode([]);return w.expressionStatement(w.assignmentExpression("=",n,r))})}})}},{key:"_emitPropertAssignments",value:function(e,t){var r=new Map;t.forEach(function(t,n,i){var a=t&&t.value;if(a instanceof l.AbstractValue){(0,h.default)(void 0!==a._buildNode);var s=e.derive(a.types,a.values,[a],function(e){return o(e,1)[0]},{skipInvariant:!0});s.mightBeEmpty=a.mightBeEmpty,r.set(n,s)}}),t.forEach(function(t,n,i){var a=n.pathNode,s=r.get(n);(0,h.default)(void 0!==s);var u=s.mightBeEmpty;e.emitStatement([n.object,s],function(e){var t=o(e,2),r=t[0],i=t[1];(0,h.default)(void 0!==a);var s=a.buildNode([r]),l=w.expressionStatement(w.assignmentExpression("=",s,i));if(u){(0,h.default)("string"==typeof n.key);var c=w.binaryExpression("in",w.stringLiteral(n.key),r),f=w.binaryExpression("!==",i,w.unaryExpression("void",w.numericLiteral(0))),d=w.logicalExpression("||",f,c);return w.ifStatement(d,l)}return l})})}},{key:"composeEffects",value:function(e,t){var r=o(e,5),n=r[1],i=r[2],s=r[3],u=r[4],l=o(t,5),c=l[0],f=l[1],d=l[2],p=l[3],h=l[4],v=a(this),y=o(v,5),m=y[2],g=y[3],w=y[4];return v[0]=c,v[1]=b.Join.composeGenerators(this,n||v[1],f),i&&i.forEach(function(e,t,r){return m.set(t,e)}),d.forEach(function(e,t,r){return m.set(t,e)}),s&&s.forEach(function(e,t,r){return g.set(t,e)}),p.forEach(function(e,t,r){return g.set(t,e)}),u&&u.forEach(function(e,t){return w.add(e)}),h.forEach(function(e,t){return w.add(e)}),v}},{key:"updateAbruptCompletions",value:function(e,t){if(t.consequent instanceof d.AbruptCompletion){t.consequentEffects=this.composeEffects(e,t.consequentEffects);var r=t.alternate;r instanceof d.PossiblyNormalCompletion&&this.updateAbruptCompletions(e,r)}else{(0,h.default)(t.alternate instanceof d.AbruptCompletion),t.alternateEffects=this.composeEffects(e,t.alternateEffects);var n=t.consequent;n instanceof d.PossiblyNormalCompletion&&this.updateAbruptCompletions(e,n)}}},{key:"composeWithSavedCompletion",value:function(e){return void 0===this.savedCompletion?(this.savedCompletion=e,this.savedCompletion.savedPathConditions=this.pathConditions,this.captureEffects(e)):this.savedCompletion=b.Join.composePossiblyNormalCompletions(this,this.savedCompletion,e),e.consequent instanceof d.AbruptCompletion?(b.Path.pushInverseAndRefine(e.joinCondition),e.alternate instanceof d.PossiblyNormalCompletion&&e.alternate.pathConditions.forEach(b.Path.pushAndRefine)):e.alternate instanceof d.AbruptCompletion&&(b.Path.pushAndRefine(e.joinCondition),e.consequent instanceof d.PossiblyNormalCompletion&&e.consequent.pathConditions.forEach(b.Path.pushAndRefine)),e.value}},{key:"incorporatePriorSavedCompletion",value:function(e){void 0!==e&&(void 0===this.savedCompletion?(this.savedCompletion=e,this.captureEffects(e)):this.savedCompletion=b.Join.composePossiblyNormalCompletions(this,e,this.savedCompletion))}},{key:"captureEffects",value:function(e){void 0===e.savedEffects&&(e.savedEffects=[this.intrinsics.undefined,this.generator,this.modifiedBindings,this.modifiedProperties,this.createdObjects],this.generator=new m.Generator(this),this.modifiedBindings=new Map,this.modifiedProperties=new Map,this.createdObjects=new Set)}},{key:"getCapturedEffects",value:function(e,t){if(void 0!==e.savedEffects)return void 0===t&&(t=this.intrinsics.undefined),(0,h.default)(void 0!==this.generator),(0,h.default)(void 0!==this.modifiedBindings),(0,h.default)(void 0!==this.modifiedProperties),(0,h.default)(void 0!==this.createdObjects),[t,this.generator,this.modifiedBindings,this.modifiedProperties,this.createdObjects]}},{key:"stopEffectCapture",value:function(e){var t=this.getCapturedEffects(e);void 0!==t&&(this.stopEffectCaptureAndUndoEffects(e),this.applyEffects(t))}},{key:"stopEffectCaptureAndUndoEffects",value:function(e){if(this.restoreBindings(this.modifiedBindings),this.restoreProperties(this.modifiedProperties),void 0!==e.savedEffects){var t=o(e.savedEffects,5),r=(t[0],t[1]),n=t[2],i=t[3],a=t[4];e.savedEffects=void 0,this.generator=r,this.modifiedBindings=n,this.modifiedProperties=i,this.createdObjects=a}else(0,h.default)(!1)}},{key:"applyEffects",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=o(e,5),n=r[1],i=r[2],a=r[3],s=r[4];this.appendGenerator(n,t),this.restoreBindings(i),this.restoreProperties(a);var u=this.modifiedBindings;void 0!==u&&i.forEach(function(e,t,r){(0,h.default)(void 0!==u),u.has(t)||u.set(t,e)});var l=this.modifiedProperties;if(void 0!==l&&a.forEach(function(e,t,r){(0,h.default)(void 0!==l),l.has(t)||l.set(t,e)}),s.size>0){var c=this.createdObjects;void 0===c?this.createdObjects=new Set(s):s.forEach(function(e,t){(0,h.default)(void 0!==c),c.add(e)})}}},{key:"outputToConsole",value:function(e,t){if(this.isReadOnly)throw new u.FatalError("Trying to create console output in read-only realm");this.useAbstractInterpretation?((0,h.default)(void 0!==this.generator),this.generator.emitConsoleLog(e,t)):console[e](function(e,t){for(var r="";t.length;){var n=t.shift();r+=b.To.ToString(e,n)}return r}(this,t))}},{key:"recordModifiedBinding",value:function(e){if(e.environment.isReadOnly)throw new u.FatalError("Trying to modify a binding in read-only realm");return void 0===this.modifiedBindings||this.modifiedBindings.has(e)||this.modifiedBindings.set(e,{hasLeaked:e.hasLeaked,value:e.value}),e}},{key:"callReportObjectGetOwnProperties",value:function(e){void 0!==this.reportObjectGetOwnProperties&&this.reportObjectGetOwnProperties(e)}},{key:"callReportPropertyAccess",value:function(e){void 0!==this.reportPropertyAccess&&this.reportPropertyAccess(e)}},{key:"recordModifiedProperty",value:function(e){if(void 0!==e){if(this.isReadOnly&&(this.getRunningContext().isReadOnly||!this.isNewObject(e.object)))throw new u.FatalError("Trying to modify a property in read-only realm");this.callReportPropertyAccess(e),void 0===this.modifiedProperties||this.modifiedProperties.has(e)||this.modifiedProperties.set(e,(0,f.cloneDescriptor)(e.descriptor))}}},{key:"isNewObject",value:function(e){return!(e instanceof l.AbstractObjectValue)&&(void 0===this.createdObjects||this.createdObjects.has(e))}},{key:"recordNewObject",value:function(e){void 0!==this.createdObjects&&this.createdObjects.add(e),void 0!==this.createdObjectsTrackedForLeaks&&this.createdObjectsTrackedForLeaks.add(e)}},{key:"getAndResetModifiedMaps",value:function(){var e=[this.modifiedBindings,this.modifiedProperties];return this.modifiedBindings=new Map,this.modifiedProperties=new Map,e}},{key:"restoreBindings",value:function(e){void 0!==e&&e.forEach(function(e,t,r){var n=e.hasLeaked,i=e.value,a=t.hasLeaked,o=t.value;t.hasLeaked=n,t.value=i,r.set(t,{hasLeaked:a,value:o})})}},{key:"restoreProperties",value:function(e){void 0!==e&&e.forEach(function(e,t,r){var n=t.descriptor;t.descriptor=e,r.set(t,n)})}},{key:"setModifiedMaps",value:function(e,t){this.modifiedBindings=e,this.modifiedProperties=t}},{key:"rebuildObjectProperty",value:function(e,t,r,n){r instanceof l.AbstractValue&&(r.isIntrinsic()||(r.intrinsicName=n+"."+t,r.kind="rebuiltProperty",r.args=[e],r._buildNode=function(e){var r=o(e,1),n=r[0];return w.memberExpression(n,w.identifier(t))},this.rebuildNestedProperties(r,r.intrinsicName)))}},{key:"rebuildNestedProperties",value:function(e,t){if(e instanceof l.AbstractObjectValue&&!e.values.isTop()){var r=e.getTemplate();(0,h.default)(!r.intrinsicName||r.intrinsicName===t),r.intrinsicName=t,r.intrinsicNameGenerated=!0;var n=!0,i=!1,a=void 0;try{for(var s,c=r.properties[Symbol.iterator]();!(n=(s=c.next()).done);n=!0){var f=s.value,d=o(f,2),p=d[0],v=d[1];if(void 0!==v&&void 0!==v.descriptor){(0,h.default)(void 0!==v.descriptor);var y=v.descriptor.value;if(b.Properties.ThrowIfMightHaveBeenDeleted(y),void 0===y)throw l.AbstractValue.reportIntrospectionError(e,p),new u.FatalError;(0,h.default)(y instanceof l.Value),this.rebuildObjectProperty(e,p,y,t)}}}catch(e){i=!0,a=e}finally{try{!n&&c.return&&c.return()}finally{if(i)throw a}}}}},{key:"createExecutionContext",value:function(){var e=new E,t=this.nextContextLocation;return t&&(e.setLocation(t),this.nextContextLocation=null),e}},{key:"setNextExecutionContextLocation",value:function(e){e&&(this.nextContextLocation=e)}},{key:"reportIntrospectionError",value:function(e){void 0===e&&(e=""),"string"==typeof e&&(e=new l.StringValue(this,e)),(0,h.default)(e instanceof l.StringValue),this.nextContextLocation=this.currentLocation;var t=new u.CompilerDiagnostic(e.value,this.currentLocation,"PP0001","FatalError");this.handleError(t)}},{key:"createErrorThrowCompletion",value:function(e,t){return(0,h.default)(e!==this.intrinsics.__IntrospectionError),void 0===t&&(t=""),"string"==typeof t&&(t=new l.StringValue(this,t)),(0,h.default)(t instanceof l.StringValue),this.nextContextLocation=this.currentLocation,new d.ThrowCompletion((0,f.Construct)(this,e,[t]),this.currentLocation)}},{key:"appendGenerator",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=this.generator;if(void 0===r)return void(0,h.default)(e.empty());r.appendGenerator(e,t)}},{key:"handleError",value:function(e){if(!e.callStack&&this.contextStack.length>0){var t=(0,f.Construct)(this,this.intrinsics.Error),r=t.$Get("stack",t);r instanceof l.StringValue&&(e.callStack=r.value)}var n=this.errorHandler;if(!n){var i=e.errorCode+": "+e.message;if(e.location){var a=e.location.start,o=e.location.end;i+=" at "+a.line+":"+a.column+" to "+o.line+":"+o.column}try{switch(e.severity){case"Information":return console.log("Info: "+i),"Recover";case"Warning":return console.warn("Warn: "+i),"Recover";case"RecoverableError":return console.error("Error: "+i),"Fail";case"FatalError":return console.error("Fatal Error: "+i),"Fail";default:(0,h.default)(!1,"Unexpected error type")}}finally{console.log(e.callStack)}}return n(e)}},{key:"saveNameString",value:function(e){this._abstractValuesDefined.add(e)}},{key:"isNameStringUnique",value:function(e){return!this._abstractValuesDefined.has(e)}}]),e}()},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){var r=V.TypesDomain.topVal,n=V.ValuesDomain.topVal;return(0,C.default)(void 0!==e.generator),e.generator.derive(r,n,[],function(e,r){return r.serializeBinding(t)})}function u(e){var t=e.environment.realm;e.hasLeaked||(t.recordModifiedBinding(e).hasLeaked=!0)}function l(e){var t=e.getType();return t===y.BooleanValue||t===y.StringValue||t===y.SymbolValue||t===y.NumberValue}Object.defineProperty(t,"__esModule",{value:!0}),t.Reference=t.LexicalEnvironment=t.GlobalEnvironmentRecord=t.FunctionEnvironmentRecord=t.ObjectEnvironmentRecord=t.DeclarativeEnvironmentRecord=t.EnvironmentRecord=void 0;var c=function(){function e(e,t){var r=[],n=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(n=(o=s.next()).done)&&(r.push(o.value),!t||r.length!==t);n=!0);}catch(e){i=!0,a=e}finally{try{!n&&s.return&&s.return()}finally{if(i)throw a}}return r}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),f=function(){function e(e,t){for(var r=0;r2&&void 0!==arguments[2]&&arguments[2];(0,C.default)(!this.frozen);var n=this.realm,i=this;return(0,C.default)(!i.bindings[e],"shouldn't have the binding "+e),this.bindings[e]=n.recordModifiedBinding({initialized:!1,mutable:!0,deletable:t,environment:i,name:e,isGlobal:r,hasLeaked:!1}),n.intrinsics.undefined}},{key:"CreateImmutableBinding",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(0,C.default)(!this.frozen);var n=this.realm,i=this;return(0,C.default)(!i.bindings[e],"shouldn't have the binding "+e),this.bindings[e]=n.recordModifiedBinding({initialized:!1,strict:t,deletable:!1,environment:i,name:e,isGlobal:r,hasLeaked:!1}),n.intrinsics.undefined}},{key:"InitializeBinding",value:function(e,t){var r=this,n=r.bindings[e];return(0,C.default)(n&&!n.initialized,"shouldn't have the binding "+e),this.realm.recordModifiedBinding(n).value=t,n.initialized=!0,this.realm.intrinsics.empty}},{key:"SetMutableBinding",value:function(e,t,r){var n=this.realm,i=this,a=i.bindings[e];if(!a){if(r)throw n.createErrorThrowCompletion(n.intrinsics.ReferenceError,e+" not found");return i.CreateMutableBinding(e,!0),i.InitializeBinding(e,t),this.realm.intrinsics.empty}if(a.strict&&(r=!0),!a.initialized)throw n.createErrorThrowCompletion(n.intrinsics.ReferenceError,e+" has not yet been initialized");if(a.mutable)a.hasLeaked?(O.Leak.leakValue(n,t),(0,C.default)(n.generator),n.generator.emitBindingAssignment(a,t)):n.recordModifiedBinding(a).value=t;else if(r)throw n.createErrorThrowCompletion(n.intrinsics.TypeError,"attempt to change immutable binding");return this.realm.intrinsics.empty}},{key:"GetBindingValue",value:function(e,t){var r=this.realm,n=this,i=n.bindings[e];if((0,C.default)(i,"expected binding"),!i.initialized)throw r.createErrorThrowCompletion(r.intrinsics.ReferenceError);return i.hasLeaked?s(r,i):((0,C.default)(i.value),i.value)}},{key:"DeleteBinding",value:function(e){(0,C.default)(!this.frozen);var t=this;return(0,C.default)(t.bindings[e],"expected binding to exist"),!!t.bindings[e].deletable&&(this.realm.recordModifiedBinding(t.bindings[e]).value=void 0,delete t.bindings[e],!0)}},{key:"HasThisBinding",value:function(){return!1}},{key:"HasSuperBinding",value:function(){return!1}},{key:"WithBaseObject",value:function(){return this.realm.intrinsics.undefined}}]),t}(N),j=(t.ObjectEnvironmentRecord=function(e){function t(e,r){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.object=r,n}return a(t,e),f(t,[{key:"HasBinding",value:function(e){var t=this.realm,r=this,n=this.object;if(!(0,T.HasProperty)(t,n,e))return!1;if(!r.withEnvironment)return!0;var i=(0,T.Get)(t,n,t.intrinsics.SymbolUnscopables);if(i instanceof y.ObjectValue||i instanceof y.AbstractObjectValue){if(O.To.ToBooleanPartial(t,(0,T.Get)(t,i,e)))return!1}return i.throwIfNotConcrete(),!0}},{key:"CreateMutableBinding",value:function(e,t){var r=this.realm,n=this,i=n.object,a=!!t;return new y.BooleanValue(r,O.Properties.DefinePropertyOrThrow(r,i,e,{value:r.intrinsics.undefined,writable:!0,enumerable:!0,configurable:a}))}},{key:"CreateImmutableBinding",value:function(e,t){(0,C.default)(!1)}},{key:"InitializeBinding",value:function(e,t){return this.SetMutableBinding(e,t,!1)}},{key:"SetMutableBinding",value:function(e,t,r){var n=this.realm,i=this,a=i.object;return new y.BooleanValue(n,O.Properties.Set(n,a,e,t,r))}},{key:"GetBindingValue",value:function(e,t){var r=this.realm,n=this,i=n.object;if(!(0,T.HasProperty)(r,i,e)){if(t)throw r.createErrorThrowCompletion(r.intrinsics.ReferenceError);return r.intrinsics.undefined}return(0,T.Get)(r,i,e)}},{key:"DeleteBinding",value:function(e){return this.object.$Delete(e)}},{key:"HasThisBinding",value:function(){return!1}},{key:"HasSuperBinding",value:function(){return!1}},{key:"WithBaseObject",value:function(){var e=this;return e.withEnvironment?e.object:this.realm.intrinsics.undefined}}]),t}(N),t.FunctionEnvironmentRecord=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),f(t,[{key:"BindThisValue",value:function(e){var t=this.realm,r=this;if((0,C.default)("lexical"!==r.$ThisBindingStatus,"this binding status shouldn't be lexical"),"initialized"===r.$ThisBindingStatus)throw t.createErrorThrowCompletion(t.intrinsics.ReferenceError);return r.$ThisValue=e,r.$ThisBindingStatus="initialized",e}},{key:"HasThisBinding",value:function(){return"lexical"!==this.$ThisBindingStatus}},{key:"HasSuperBinding",value:function(){var e=this;return"lexical"!==e.$ThisBindingStatus&&void 0!==e.$HomeObject}},{key:"GetThisBinding",value:function(){var e=this.realm,t=this;if((0,C.default)("lexical"!==t.$ThisBindingStatus,"this binding status shouldn't be lexical"),"uninitialized"===t.$ThisBindingStatus)throw e.createErrorThrowCompletion(e.intrinsics.ReferenceError);return t.$ThisValue}},{key:"GetSuperBase",value:function(){var e=this,t=e.$HomeObject;return void 0===t?this.realm.intrinsics.undefined:((0,C.default)(t instanceof y.ObjectValue,"expected object value"),t.$GetPrototypeOf())}}]),t}(D),t.GlobalEnvironmentRecord=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),f(t,[{key:"HasBinding",value:function(e){var t=this;return!!t.$DeclarativeRecord.HasBinding(e)||t.$ObjectRecord.HasBinding(e)}},{key:"CreateMutableBinding",value:function(e,t){var r=this.realm,n=this,i=n.$DeclarativeRecord;if(i.HasBinding(e))throw r.createErrorThrowCompletion(r.intrinsics.TypeError);return i.CreateMutableBinding(e,t,!0)}},{key:"CreateImmutableBinding",value:function(e,t){var r=this.realm,n=this,i=n.$DeclarativeRecord;if(i.HasBinding(e))throw r.createErrorThrowCompletion(r.intrinsics.TypeError);return i.CreateImmutableBinding(e,t,!0)}},{key:"InitializeBinding",value:function(e,t){var r=this,n=r.$DeclarativeRecord;return n.HasBinding(e)?n.InitializeBinding(e,t):r.$ObjectRecord.InitializeBinding(e,t)}},{key:"SetMutableBinding",value:function(e,t,r){var n=this,i=n.$DeclarativeRecord;return i.HasBinding(e)?i.SetMutableBinding(e,t,r):n.$ObjectRecord.SetMutableBinding(e,t,r)}},{key:"GetBindingValue",value:function(e,t){var r=this,n=r.$DeclarativeRecord;return n.HasBinding(e)?n.GetBindingValue(e,t):r.$ObjectRecord.GetBindingValue(e,t)}},{key:"DeleteBinding",value:function(e){var t=this.realm,r=this,n=r.$DeclarativeRecord;if(n.HasBinding(e))return n.DeleteBinding(e);var i=r.$ObjectRecord,a=i.object;if((0,T.HasOwnProperty)(t,a,e)){var o=i.DeleteBinding(e);if(o){var s=r.$VarNames;s.indexOf(e)>=0&&s.splice(s.indexOf(e),1)}return o}return!0}},{key:"HasThisBinding",value:function(){return!0}},{key:"HasSuperBinding",value:function(){return!0}},{key:"WithBaseObject",value:function(){return this.realm.intrinsics.undefined}},{key:"GetThisBinding",value:function(){var e=this;return(0,C.default)(e.$GlobalThisValue),e.$GlobalThisValue}},{key:"HasVarDeclaration",value:function(e){return this.$VarNames.indexOf(e)>=0}},{key:"HasLexicalDeclaration",value:function(e){return this.$DeclarativeRecord.HasBinding(e)}},{key:"HasRestrictedGlobalProperty",value:function(e){var t=this,r=t.$ObjectRecord,n=r.object,i=n.$GetOwnProperty(e);return!!i&&(O.Properties.ThrowIfMightHaveBeenDeleted(i.value),!i.configurable)}},{key:"CanDeclareGlobalVar",value:function(e){var t=this.realm,r=this,n=r.$ObjectRecord,i=n.object;return!!(0,T.HasOwnProperty)(t,i,e)||(0,T.IsExtensible)(t,i)}},{key:"CanDeclareGlobalFunction",value:function(e){var t=this.realm,r=this,n=r.$ObjectRecord,i=n.object,a=i.$GetOwnProperty(e);return a?(O.Properties.ThrowIfMightHaveBeenDeleted(a.value),!!a.configurable||!!((0,T.IsDataDescriptor)(t,a)&&a.writable&&a.enumerable)):(0,T.IsExtensible)(t,i)}},{key:"CreateGlobalVarBinding",value:function(e,t){var r=this.realm,n=this,i=n.$ObjectRecord,a=i.object,o=(0,T.HasOwnProperty)(r,a,e),s=(0,T.IsExtensible)(r,a);!o&&s&&(i.CreateMutableBinding(e,t),i.InitializeBinding(e,this.realm.intrinsics.undefined));var u=n.$VarNames;u.indexOf(e)<0&&u.push(e)}},{key:"CreateGlobalFunctionBinding",value:function(e,t,r){var n=this,i=n.$ObjectRecord,a=i.object,o=a.$GetOwnProperty(e),s=void 0;!o||o.configurable?s={value:t,writable:!0,enumerable:!0,configurable:r}:(O.Properties.ThrowIfMightHaveBeenDeleted(o.value),s={value:t}),O.Properties.DefinePropertyOrThrow(this.realm,a,e,s),O.Properties.Set(this.realm,a,e,t,!1);var u=n.$VarNames;u.indexOf(e)<0&&u.push(e)}}]),t}(N),0),I=(t.LexicalEnvironment=function(){function e(t){o(this,e),(0,C.default)(t,"expected realm"),this.realm=t,this.destroyed=!1,this._uid=j++}return f(e,[{key:"destroy",value:function(){this.destroyed=!0,this.environmentRecord instanceof D&&(this.environmentRecord.frozen=!0)}},{key:"assignToGlobal",value:function(e,t){var r=this.evaluate(e,!1);O.Properties.PutValue(this.realm,r,t)}},{key:"partiallyEvaluateCompletionDeref",value:function(e,t,r){var n=this.partiallyEvaluateCompletion(e,t,r),i=c(n,3),a=i[0],o=i[1],s=i[2];return a instanceof I&&(a=O.Environment.GetValue(this.realm,a)),[a,o,s]}},{key:"partiallyEvaluateCompletion",value:function(e,t,r){try{return this.partiallyEvaluate(e,t,r)}catch(t){if(t instanceof d.Completion)return[t,e,[]];if(t instanceof Error)throw t;throw new p.FatalError(t)}}},{key:"evaluateCompletionDeref",value:function(e,t,r){var n=this.evaluateCompletion(e,t,r);return n instanceof I&&(n=O.Environment.GetValue(this.realm,n)),n}},{key:"evaluateCompletion",value:function(e,t,r){try{return this.evaluate(e,t,r)}catch(e){if((e instanceof d.JoinedAbruptCompletions||e instanceof d.PossiblyNormalCompletion)&&e.containsBreakOrContinue())throw y.AbstractValue.reportIntrospectionError(e.joinCondition),new p.FatalError;if(e instanceof d.AbruptCompletion)return e;if(e instanceof Error)throw e;throw new p.FatalError(e)}}},{key:"evaluateAbstractCompletion",value:function(e,t,r){try{return this.evaluateAbstract(e,t,r)}catch(e){if(e instanceof d.Completion)return e;if(e instanceof Error)throw e;if(e instanceof Object)throw new p.FatalError(e.constructor.name+": "+e);throw new p.FatalError(e)}}},{key:"concatenateAndParse",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"script",r=[],n={},i=[],a=!0,o=!1,s=void 0;try{for(var u,l=e[Symbol.iterator]();!(a=(u=l.next()).done);a=!0){var c=u.value;try{var f=(0,w.default)(this.realm,c.fileContents,c.filePath,t);c.sourceMapContents&&c.sourceMapContents.length>0&&this.fixup_source_locations(f,c.sourceMapContents),this.fixup_filenames(f),r=r.concat(f.program.body),n[c.filePath]=c.fileContents,i=i.concat(f.program.directives)}catch(e){if(e instanceof d.ThrowCompletion){var h=e.value;if(h instanceof y.ObjectValue){var v=h.$Get("message",h);v.value="Syntax error: "+v.value,e.location.source=c.filePath,e.location.start={line:e.location.line,column:e.location.column},e.location.end={line:e.location.line,column:e.location.column};var m=new p.CompilerDiagnostic(v.value,e.location,"PP1004","FatalError");throw this.realm.handleError(m),new p.FatalError(v.value)}}throw e}}}catch(e){o=!0,s=e}finally{try{!a&&l.return&&l.return()}finally{if(o)throw s}}return[x.file(x.program(r,i)),n]}},{key:"executeSources",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"script",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,n=new v.ExecutionContext;n.lexicalEnvironment=this,n.variableEnvironment=this,n.realm=this.realm,this.realm.pushContext(n);var i=void 0,a=void 0;try{var o=void 0,s=this.concatenateAndParse(e,t),u=c(s,2);o=u[0],a=u[1],r&&r(o),i=this.evaluateCompletion(o,!1)}finally{this.realm.popContext(n),this.realm.onDestroyScope(n.lexicalEnvironment),this.destroyed||this.realm.onDestroyScope(this),(0,C.default)(0===this.realm.activeLexicalEnvironments.size)}return i instanceof d.AbruptCompletion?[i,a]:[O.Environment.GetValue(this.realm,i),a]}},{key:"executePartialEvaluator",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h.defaultOptions,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"script",n=this.concatenateAndParse(e,r),i=c(n,2),a=i[0],o=i[1],s=new v.ExecutionContext;s.lexicalEnvironment=this,s.variableEnvironment=this,s.realm=this.realm,this.realm.pushContext(s);var u=void 0;try{var l=void 0,f=this.partiallyEvaluateCompletionDeref(a,!1),p=c(f,2);if(l=p[0],u=p[1],l instanceof d.AbruptCompletion)return l}finally{this.realm.popContext(s),this.realm.onDestroyScope(s.lexicalEnvironment),this.destroyed||this.realm.onDestroyScope(this),(0,C.default)(0===this.realm.activeLexicalEnvironments.size)}(0,C.default)("File"===u.type);var y=u,m=x.program(y.program.body,a.program.directives);return this.fixup_filenames(m),(0,b.default)(m,{sourceMaps:t.sourceMaps},o)}},{key:"execute",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"script",i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0,a=new v.ExecutionContext;a.lexicalEnvironment=this,a.variableEnvironment=this,a.realm=this.realm,this.realm.pushContext(a);var o=void 0,s=void 0;try{try{o=(0,w.default)(this.realm,e,t,n)}catch(e){if(e instanceof d.ThrowCompletion)return e;throw e}i&&i(o),r.length>0&&this.fixup_source_locations(o,r),this.fixup_filenames(o),s=this.evaluateCompletion(o,!1)}finally{this.realm.popContext(a),a.lexicalEnvironment!==this&&this.realm.onDestroyScope(a.lexicalEnvironment),(0,C.default)(1===this.realm.activeLexicalEnvironments.size)}return s instanceof d.AbruptCompletion?s:O.Environment.GetValue(this.realm,s)}},{key:"fixup_source_locations",value:function(e,t){var r=new _.SourceMapConsumer(t);(0,A.default)(e,function(e){function t(e,t){var n=r.originalPositionFor({line:t.line,column:t.column});null!==n.source&&(t.line=n.line,t.column=n.column,e.source=n.source)}function n(e){if(e){var r=!0,n=!1,i=void 0;try{for(var a,o=e[Symbol.iterator]();!(r=(a=o.next()).done);r=!0){var s=a.value,u=s.loc;u&&(t(u,u.start),t(u,u.end))}}catch(e){n=!0,i=e}finally{try{!r&&o.return&&o.return()}finally{if(n)throw i}}}}var i=e.loc;return!!i&&(t(i,i.start),t(i,i.end),n(e.leadingComments),n(e.innerComments),n(e.trailingComments),!1)})}},{key:"fixup_filenames",value:function(e){(0,A.default)(e,function(e){function t(e,t){if(e){var r=!0,n=!1,i=void 0;try{for(var a,o=e[Symbol.iterator]();!(r=(a=o.next()).done);r=!0){var s=a.value;s.loc&&(s.loc.filename=t,s.loc.source=t)}}catch(e){n=!0,i=e}finally{try{!r&&o.return&&o.return()}finally{if(n)throw i}}}}var r=e.loc;if(r&&r.source){var n=r.source;r.filename=n,t(e.leadingComments,n),t(e.innerComments,n),t(e.trailingComments,n)}else e.leadingComments=null,e.innerComments=null,e.trailingComments=null,e.loc=null;return!1})}},{key:"evaluate",value:function(e,t,r){this.realm.debuggerInstance&&this.realm.debuggerInstance.checkForActions(e);var n=this.evaluateAbstract(e,t,r);return(0,C.default)(n instanceof y.Value||n instanceof I,e.type),n}},{key:"evaluateAbstract",value:function(e,t,r){this.realm.currentLocation=e.loc,this.realm.testTimeout();var n=this.realm.evaluators[e.type];if(n){return n(e,t,this,this.realm,r)}throw new TypeError("Unsupported node type "+e.type)}},{key:"partiallyEvaluate",value:function(e,t,r){var n=this.realm.partialEvaluators[e.type];if(n)return n(e,t,this,this.realm,r);throw new TypeError("Unsupported node type "+e.type)}}]),e}(),t.Reference=function e(t,r,n,i){o(this,e),(0,C.default)(t instanceof y.AbstractObjectValue||void 0===t||t instanceof y.ObjectValue||t instanceof N||l(t)),this.base=t,this.referencedName=r,(0,C.default)(!(r instanceof y.AbstractValue&&r.mightNotBeString())),this.strict=n,this.thisValue=i,(0,C.default)(void 0===i||!(t instanceof N))})},function(e,t,r){"use strict";function n(e,t){if(!t.mightBeObject())return!1;t=t.throwIfNotObject();var r=(0,O.Get)(e,t,e.intrinsics.SymbolIsConcatSpreadable);return r.mightBeUndefined()?(r.throwIfNotConcrete(),p(e,t)):x.To.ToBooleanPartial(e,r)}function i(e,t){return!!t&&(!a(e,t)&&!o(e,t))}function a(e,t){return!!t&&("get"in t||"set"in t)}function o(e,t){return!!t&&("value"in t||"writable"in t)}function s(e,t){return t.getExtensible()}function u(e,t){return t.$IsExtensible()}function l(e,t){return!!t.mightBeObject()&&(!!(0,N.HasCompatibleType)(t,P.FunctionValue)||(t=t.throwIfNotConcreteObject(),!!t.$Call))}function c(e,t){return!!t.mightBeObject()&&(t=t.throwIfNotConcreteObject(),!!t.$Construct)}function f(e,t){return(0,_.default)("number"==typeof t,"Type(argument) is not number"),!isNaN(t)&&t!==1/0&&t!==-1/0&&Math.floor(Math.abs(t))===Math.abs(t)}function d(e,t){if("string"==typeof t)return!0;if(t instanceof P.StringValue)return!0;if(t instanceof P.SymbolValue)return!0;if(t instanceof P.AbstractValue)throw P.AbstractValue.reportIntrospectionError(t),new T.FatalError;return!1}function p(e,t){if(!t.mightBeObject())return!1;if(t instanceof P.ArrayValue||t===e.intrinsics.ArrayPrototype)return!0;if(t instanceof P.ProxyValue){if(!t.$ProxyHandler||t.$ProxyHandler instanceof P.NullValue)throw e.createErrorThrowCompletion(e.intrinsics.TypeError);return p(e,t.$ProxyTarget)}return t.throwIfNotConcrete(),!1}function h(e,t){return!1}function v(e,t){if(!t.mightBeObject())return!1;t=t.throwIfNotObject();var r=(0,O.Get)(e,t,e.intrinsics.SymbolMatch);return void 0!==r?!0===x.To.ToBooleanPartial(e,r):!!t.$RegExpMatcher}function y(e,t){switch(t.type){case"Identifier":return!0;case"MemberExpression":return!1;default:throw Error("Unexpected AST form : "+t.type)}}function m(e,t){switch(t.type){case"ThisExpression":case"Identifier":case"StringLiteral":case"NumericLiteral":case"BooleanLiteral":case"NullLiteral":case"RegExpLiteral":case"ArrayExpression":case"ObjectExpression":case"TemplateLiteral":case"ConditionalExpression":case"UpdateExpression":return!1;case"BinaryExpression":case"LogicalExpression":return!1;case"MemberExpression":case"CallExpression":case"NewExpression":case"MetaProperty":case"TaggedTemplateExpression":case"UnaryExpression":case"AssignmentExpression":case"SequenceExpression":return!1;case"ArrowFunctionExpression":case"FunctionExpression":case"ClassExpression":return!0;case"JSXElement":return!1;default:throw Error("Unexpected AST form : "+t.type)}}function b(e,t){return!!m(e,t)&&!0!==(0,N.HasName)(e,t)}function g(e,t){var r=void 0;if("string"==typeof t)r=t;else{if(!(t instanceof P.StringValue))return!1;r=t.value}var n=x.To.ToUint32(e,new P.StringValue(e,r));return n!==Math.pow(2,32)-1&&x.To.ToString(e,new P.NumberValue(e,n))===r}function w(e,t){return!!t.mightBeObject()&&(t=t.throwIfNotConcreteObject(),!!t.$PromiseState)}function E(e,t){return(0,_.default)(t instanceof P.ObjectValue&&"$ArrayBufferData"in t),null===t.$ArrayBufferData}function C(e,t){return!!t.mightBeObject()&&(t=t.throwIfNotConcreteObject(),t.$GetPrototypeOf()===e.intrinsics.__IntrospectionErrorPrototype)}function S(e){return e.static}function A(e){switch(e.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ForOfStatement":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareVariable":case"InterfaceDeclaration":case"TypeAlias":case"ForAwaitStatement":return!0;default:return!1}}Object.defineProperty(t,"__esModule",{value:!0}),t.IsConcatSpreadable=n,t.IsGenericDescriptor=i,t.IsAccessorDescriptor=a,t.IsDataDescriptor=o,t.OrdinaryIsExtensible=s,t.IsExtensible=u,t.IsCallable=l,t.IsConstructor=c,t.IsInteger=f,t.IsPropertyKey=d,t.IsArray=p,t.IsInTailPosition=h,t.IsRegExp=v,t.IsIdentifierRef=y,t.IsFunctionDefinition=m,t.IsAnonymousFunctionDefinition=b,t.IsArrayIndex=g,t.IsPromise=w,t.IsDetachedBuffer=E,t.IsIntrospectionError=C,t.IsStatic=S,t.IsStatement=A;var T=r(6),O=r(10),P=r(0),x=r(2),V=r(1),_=function(e){return e&&e.__esModule?e:{default:e}}(V),N=r(16);r(5)},function(e,t,r){"use strict";function n(e,t){if((0,S.default)((0,w.IsCallable)(e,t),"expected callable object"),t.$Realm)return t.$Realm;if(t instanceof m.BoundFunctionValue){return n(e,t.$BoundTargetFunction)}if(t instanceof m.ProxyValue){if(t.$ProxyHandler instanceof m.NullValue)throw e.createErrorThrowCompletion(e.intrinsics.TypeError,"proxy handler is null");(0,S.default)(t.$ProxyTarget instanceof m.ObjectValue);return n(e,t.$ProxyTarget)}return e}function i(e,t,r,n,a){function o(){var o=s?void 0===s.value?e.intrinsics.undefined:s.value:e.intrinsics.undefined;if((0,S.default)(o instanceof m.Value),!s||o.mightHaveBeenDeleted()){var u=t.$GetPrototypeOf();if(u instanceof m.NullValue)return o;if(o.mightHaveBeenDeleted()&&o instanceof m.AbstractValue){var l=i(e,u,r,o,!0);if(l instanceof m.UndefinedValue)return o;var c=m.AbstractValue.createFromBinaryOp(e,"!==",o,e.intrinsics.empty);return E.Join.joinValuesAsConditional(e,c,o,l)}return(0,S.default)(!s||o instanceof m.EmptyValue),u.$Get(r,n)}if((0,w.IsDataDescriptor)(e,s))return o;if(a)throw(0,S.default)(o instanceof m.AbstractValue),m.AbstractValue.reportIntrospectionError(o),new b.FatalError;(0,S.default)((0,w.IsAccessorDescriptor)(e,s),"expected accessor descriptor");var f=s.get;return!f||f instanceof m.UndefinedValue?e.intrinsics.undefined:(0,w.Call)(e,f,n)}(0,S.default)((0,w.IsPropertyKey)(e,r),"expected property key");var s=t.$GetOwnProperty(r);if(void 0!==s&&void 0!==s.joinCondition){var u=s.joinCondition;if(void 0!==u){var l=s.descriptor2;s=s.descriptor1;var c=E.Path.withCondition(u,function(){return void 0!==s?e.evaluateForEffects(function(){return o()}):(0,y.construct_empty_effects)(e)}),f=h(c,5),d=f[0],p=f[1],g=f[2],C=f[3],A=f[4];s=l;var T=E.Path.withInverseCondition(u,function(){return void 0!==s?e.evaluateForEffects(function(){return o()}):(0,y.construct_empty_effects)(e)}),O=h(T,5),P=O[0],x=O[1],V=O[2],_=O[3],N=O[4],D=E.Join.joinEffects(e,u,[d,p,g,C,A],[P,x,V,_,N]),j=D[0];if(j instanceof v.PossiblyNormalCompletion&&(j=e.composeWithSavedCompletion(j)),e.applyEffects(D),j instanceof v.AbruptCompletion)throw j;return(0,S.default)(j instanceof m.Value),j}}return o()}function a(e){return e.getRunningContext().realm.$GlobalObject}function o(e,t,r,n,i,a){(0,S.default)("string"==typeof t,"expected matched to be a stirng");var o=t.length;(0,S.default)("string"==typeof r,"expected matched to be a stirng");var s=r.length;(0,S.default)(n>=0,"expected position to be a nonegative integer"),(0,S.default)(n<=s,"expected position to be less than string length"),(0,S.default)(Array.isArray(i),"expected captures to be an array"),(0,S.default)("string"==typeof a,"expected replacement to be a stirng");for(var u=n+o,l=i.length,c="",f=0;f=a.length)c+=d;else{var p=a.charAt(f+1);if("&"===p)c+=t;else if("$"===p)c+="$";else if("`"===p)c+=r.substr(0,n);else if("'"===p)c+=r.substr(u);else if(p>="0"&&p<="9"){var h=p.charCodeAt(0)-"0".charCodeAt(0);if(f+2="0"&&v<="9"){var y=10*h+(v.charCodeAt(0)-"0".charCodeAt(0));y<=l&&(h=y,f+=1)}}c+=h>0&&h<=l?i[h-1]||"":"$"+h}else c+="$"+p;f+=1}}return c}function s(e,t,r){(0,S.default)((0,w.IsPropertyKey)(e,r),"expected property key");var n=c(e,t,r);if((0,w.HasSomeCompatibleType)(n,m.NullValue,m.UndefinedValue))return e.intrinsics.undefined;if(!(0,w.IsCallable)(e,n))throw e.createErrorThrowCompletion(e.intrinsics.TypeError,"not callable");return n}function u(e,t,r){(0,S.default)(e.intrinsics[r],"not a valid proto ref"),(0,S.default)(!0===(0,w.IsCallable)(e,t),"expected constructor to be callable");var i=l(e,t,new m.StringValue(e,"prototype"));return i instanceof m.ObjectValue||(e=n(e,t),i=e.intrinsics[r]),i}function l(e,t,r){return(0,S.default)(t instanceof m.ObjectValue||t instanceof m.AbstractObjectValue,"Not an object value"),(0,S.default)((0,w.IsPropertyKey)(e,r),"Not a valid property key"),t.$Get(r,t)}function c(e,t,r){return(0,S.default)((0,w.IsPropertyKey)(e,r),"Not a valid property key"),E.To.ToObjectPartial(e,t).$Get(r,t)}function f(e,t){if((0,S.default)(E.Environment.IsPropertyReference(e,t),"expected property reference"),E.Environment.IsSuperReference(e,t))return(0,S.default)(void 0!==t.thisValue),t.thisValue;var r=E.Environment.GetBase(e,t);return(0,S.default)(r instanceof m.Value),r}function d(e){var t=E.Environment.GetThisEnvironment(e);if(!("$NewTarget"in t))throw e.createErrorThrowCompletion(e.intrinsics.SyntaxError,"new.target not allowed here");return t.$NewTarget||e.intrinsics.undefined}function p(e,t){var r=t.quasis.map(function(e){return e.value.raw}),n=e.$TemplateMap,i=!0,a=!1,o=void 0;try{for(var s,u=n[Symbol.iterator]();!(i=(s=u.next()).done);i=!0){var l=s.value,c=void 0;if(l.$Strings.length===r.length){c=!0;for(var f=0;ft.length)return!1;for(var a=0;a3&&void 0!==arguments[3]&&arguments[3];if(isNaN(t)||isNaN(r))return e.intrinsics.NaN;var i=t,a=r;return n&&(a=-a),new C.NumberValue(e,i+a)}function y(e,t,r){if(!r.mightBeObject())throw e.createErrorThrowCompletion(e.intrinsics.TypeError,"Expecting a function in instanceof check");var n=(0,O.GetMethod)(e,r,e.intrinsics.SymbolHasInstance);if(!(n instanceof C.UndefinedValue))return x.To.ToBooleanPartial(e,(0,S.Call)(e,n,r,[t]));if(!1===(0,A.IsCallable)(e,r))throw e.createErrorThrowCompletion(e.intrinsics.TypeError,"Expecting a function in instanceof check");return m(e,r,t)}function m(e,t,r){if(!1===(0,A.IsCallable)(e,t))return!1;if((0,_.default)(t instanceof C.ObjectValue),t instanceof C.BoundFunctionValue){return y(e,r,t.$BoundTargetFunction)}if(!((r=r.throwIfNotConcrete())instanceof C.ObjectValue))return!1;var n=(0,O.Get)(e,t,"prototype").throwIfNotConcrete();if(!(n instanceof C.ObjectValue))throw e.createErrorThrowCompletion(e.intrinsics.TypeError,"Type(P) is not Object");for(;;){if((r=r.$GetPrototypeOf())instanceof C.NullValue)return!1;if(!0===f(e,n,r))return!0}return!1}function b(e,t){if(t instanceof C.UndefinedValue)return"Undefined";if(t instanceof C.NullValue)return"Null";if((0,P.HasCompatibleType)(t,C.BooleanValue))return"Boolean";if((0,P.HasCompatibleType)(t,C.StringValue))return"String";if((0,P.HasCompatibleType)(t,C.SymbolValue))return"Symbol";if((0,P.HasCompatibleType)(t,C.NumberValue))return"Number";if(t.mightNotBeObject())throw(0,_.default)(t instanceof C.AbstractValue),C.AbstractValue.reportIntrospectionError(t),new E.FatalError;return"Object"}function g(e,t){(0,_.default)(t instanceof C.SymbolValue,"expected symbol");var r=t.$Description;return r=r?r.throwIfNotConcreteString().value:"",(0,_.default)("string"==typeof r,"expected string"),"Symbol("+r+")"}function w(e,t,r){return(t instanceof T.ReturnCompletion||t instanceof T.ThrowCompletion)&&(0,_.default)(t.value,"expected completion record to have a value"),t instanceof C.EmptyValue?r:t instanceof C.Value||t.value&&!(t.value instanceof C.EmptyValue)?t:(t.value=r,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.URIUnescaped=t.URIMark=t.DecimalDigit=t.URIAlpha=t.URIReserved=void 0,t.SplitMatch=n,t.RequireObjectCoercible=i,t.AbstractRelationalComparison=a,t.AbstractEqualityComparison=o,t.StrictEqualityComparison=s,t.StrictEqualityComparisonPartial=u,t.SameValueZero=l,t.SameValueZeroPartial=c,t.SameValue=f,t.SameValuePartial=d,t.SameValueNonNumber=p,t.SamePropertyKey=h,t.Add=v,t.InstanceofOperator=y,t.OrdinaryHasInstance=m,t.Type=b,t.SymbolDescriptiveString=g,t.UpdateEmpty=w;var E=r(6),C=r(0),S=r(13),A=r(9),T=r(3),O=r(10),P=r(16),x=r(2),V=r(1),_=function(e){return e&&e.__esModule?e:{default:e}}(V),N=(t.URIReserved=";/?:@&=+$,",t.URIAlpha="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"),D=t.DecimalDigit="0123456789",j=t.URIMark="-_.!~*'()";t.URIUnescaped=N+D+j},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t1&&void 0!==arguments[1])||arguments[1],r=Number.parseInt(e,10);if(r>=0&&r.toString()===e)return v.numericLiteral(r);if(t){var n=/^[\u0000-\u007f]*$/.test(e);if(v.isValidIdentifier(e)&&n)return v.identifier(e)}return v.stringLiteral(e)}},{key:"getParent",value:function(){return this.parent}},{key:"empty",value:function(){return 0===this._entries.length}},{key:"emitGlobalDeclaration",value:function(e,t){this.preludeGenerator.declaredGlobals.add(e),t instanceof f.UndefinedValue||this.emitGlobalAssignment(e,t,!0)}},{key:"emitGlobalAssignment",value:function(e,t,r){var n=this;this._addEntry({args:[t],buildNode:function(t){var i=l(t,1),a=i[0];return v.expressionStatement(v.assignmentExpression("=",n.preludeGenerator.globalReference(e,!r),a))}})}},{key:"emitGlobalDelete",value:function(e,t){var r=this;this._addEntry({args:[],buildNode:function(n){a(n);return v.expressionStatement(v.unaryExpression("delete",r.preludeGenerator.globalReference(e,!t)))}})}},{key:"emitBindingAssignment",value:function(e,t){this._addEntry({args:[t],buildNode:function(t,r){var n=l(t,1),i=n[0];return v.expressionStatement(v.assignmentExpression("=",r.serializeBinding(e),i))}})}},{key:"emitPropertyAssignment",value:function(e,t,r){if(!e.refuseSerialization){var n=this.getAsPropertyNameExpression(t);this._addEntry({args:[e,r],buildNode:function(e){var t=l(e,2),r=t[0],i=t[1];return v.expressionStatement(v.assignmentExpression("=",v.memberExpression(r,n,!v.isIdentifier(n)),i))}})}}},{key:"emitDefineProperty",value:function(e,t,r){var n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(!e.refuseSerialization)if(r.enumerable&&r.configurable&&r.writable&&r.value&&!n){var i=r.value;(0,m.default)(i instanceof f.Value),this.emitPropertyAssignment(e,t,i)}else{r=Object.assign({},r);var a=r.value||e.$Realm.intrinsics.undefined;(0,m.default)(a instanceof f.Value),this._addEntry({args:[e,a,r.get||e.$Realm.intrinsics.undefined,r.set||e.$Realm.intrinsics.undefined],buildNode:function(n,i){return i.emitDefinePropertyBody(e,t,r)}})}}},{key:"emitPropertyDelete",value:function(e,t){if(!e.refuseSerialization){var r=this.getAsPropertyNameExpression(t);this._addEntry({args:[e],buildNode:function(e){var t=l(e,1),n=t[0];return v.expressionStatement(v.unaryExpression("delete",v.memberExpression(n,r,!v.isIdentifier(r))))}})}}},{key:"emitCall",value:function(e,t){this._addEntry({args:t,buildNode:function(t){return v.expressionStatement(v.callExpression(e(),[].concat(i(t))))}})}},{key:"emitConsoleLog",value:function(e,t){var r=this;this.emitCall(function(){return v.memberExpression(v.identifier("console"),v.identifier(e))},t.map(function(e){return"string"==typeof e?new f.StringValue(r.realm,e):e}))}},{key:"emitDoWhileStatement",value:function(e,t){this._addEntry({args:[],buildNode:function(r,n){var i=(a(r),e.intrinsicName);(0,m.default)(void 0!==i);var o=n.serializeGenerator(t),s=v.blockStatement(o);return v.doWhileStatement(v.identifier(i),s)},dependencies:[t]})}},{key:"emitInvariant",value:function(e,t,r){this.realm.omitInvariants||this._addEntry({args:e,buildNode:function(e){var n=v.stringLiteral("Prepack model invariant violation");if(r){var i=e.pop();n=v.binaryExpression("+",v.stringLiteral("Prepack model invariant violation: "),r(i))}var a=t(e),o=v.blockStatement([v.throwStatement(v.newExpression(v.identifier("Error"),[n]))]);return v.ifStatement(a,o)}})}},{key:"emitCallAndCaptureResult",value:function(e,t,r,n,i){return this.derive(e,t,n,function(e){return v.callExpression(r(),e)})}},{key:"emitStatement",value:function(e,t){this._addEntry({args:e,buildNode:t})}},{key:"emitVoidExpression",value:function(e,t,r,n){return this._addEntry({args:r,buildNode:function(e){return v.expressionStatement(n instanceof Function?n(e):n)}}),this.realm.intrinsics.undefined}},{key:"emitForInStatement",value:function(e,t,r,n,i){this._addEntry({args:[e,n,r,n,r],buildNode:function(e){var r=l(e,6),n=r[0],a=r[1],o=r[2];r[3],r[4],r[5];return v.forInStatement(t,n,v.blockStatement([v.expressionStatement(v.assignmentExpression("=",v.memberExpression(a,i,!0),v.memberExpression(o,i,!0)))]))}})}},{key:"derive",value:function(e,t,r,n,i){(0,m.default)(n instanceof Function||0===r.length);var a=v.identifier(this.preludeGenerator.nameGenerator.generate("derived"));this.preludeGenerator.derivedIds.set(a.name,r);var o={};i&&i.kind&&(o.kind=i.kind);var s=f.Value.isTypeCompatibleWith(e.getType(),f.ObjectValue)?f.AbstractObjectValue:f.AbstractValue,u=new s(this.realm,e,t,0,[],a,o);this._addEntry({isPure:i?i.isPure:void 0,declared:u,args:r,buildNode:function(e,t){return v.variableDeclaration("var",[v.variableDeclarator(a,n instanceof Function?n(e,t):n)])}});var l=e.getType();if(u.intrinsicName=a.name,i&&i.skipInvariant)return u;var c=void 0;return l instanceof f.FunctionValue?c="function":l===f.UndefinedValue?(0,m.default)(!1):l===f.NullValue?(0,m.default)(!1):l===f.StringValue?c="string":l===f.BooleanValue?c="boolean":l===f.NumberValue?c="number":l===f.SymbolValue?c="symbol":l===f.ObjectValue&&(c="object"),void 0!==c&&this.emitInvariant([u,u],function(e){(0,m.default)(void 0!==c);var t=v.binaryExpression("!==",v.unaryExpression("typeof",e[0]),v.stringLiteral(c));return"object"===c&&(t=v.logicalExpression("&&",t,v.binaryExpression("!==",v.unaryExpression("typeof",e[0]),v.stringLiteral("function"))),t=v.logicalExpression("||",t,v.binaryExpression("===",e[0],b.nullExpression))),t},function(e){return e}),u}},{key:"serialize",value:function(e){var t=!0,r=!1,n=void 0;try{for(var i,a=this._entries[Symbol.iterator]();!(t=(i=a.next()).done);t=!0){var o=i.value;if(!o.isPure||!o.declared||!e.canOmit(o.declared)){var s=o.args.map(function(t,r){return e.serializeValue(t)});e.emit(o.buildNode(s,e)),void 0!==o.declared&&e.declare(o.declared)}}}catch(e){r=!0,n=e}finally{try{!t&&a.return&&a.return()}finally{if(r)throw n}}}},{key:"visitEntry",value:function(e,t){if(e.isPure&&e.declared&&t.canSkip(e.declared))t.recordDelayedEntry(e);else if(e.declared&&t.recordDeclaration(e.declared),t.visitValues(e.args),e.dependencies){var r=!0,n=!1,i=void 0;try{for(var a,o=e.dependencies[Symbol.iterator]();!(r=(a=o.next()).done);r=!0){var s=a.value;t.visitGenerator(s)}}catch(e){n=!0,i=e}finally{try{!r&&o.return&&o.return()}finally{if(n)throw i}}}}},{key:"visit",value:function(e){var t=!0,r=!1,n=void 0;try{for(var i,a=this._entries[Symbol.iterator]();!(t=(i=a.next()).done);t=!0){var o=i.value;this.visitEntry(o,e)}}catch(e){r=!0,n=e}finally{try{!t&&a.return&&a.return()}finally{if(r)throw n}}}},{key:"_addEntry",value:function(e){this._entries.push(e)}},{key:"appendGenerator",value:function(e,t){e.empty()||this._addEntry({args:[],buildNode:function(r,n){var i=n.serializeGenerator(e),a=v.blockStatement(i);return t.length>0&&(a.leadingComments=[{type:"BlockComment",value:t}]),a},dependencies:[e]})}},{key:"composeGenerators",value:function(e,t){this._addEntry({args:[],buildNode:function(r,n){var i=(a(r),[]);return e.empty()||i.push(s(e,n)),t.empty()||i.push(s(t,n)),v.blockStatement(i)},dependencies:[e,t]})}},{key:"joinGenerators",value:function(e,t,r){this._addEntry({args:[e],buildNode:function(e,n){var i=l(e,1),a=i[0],o=t.empty()?null:s(t,n),u=r.empty()?null:s(r,n);return o?v.ifStatement(a,o,u):((0,m.default)(u),v.ifStatement(v.unaryExpression("!",a),u))},dependencies:[t,r]})}}]),e}(),t.NameGenerator=function(){function e(t,r,n,i){o(this,e),this.prefix=i,this.uidCounter=0,this.debugNames=r,this.forbiddenNames=t,this.uniqueSuffix=n}return c(e,[{key:"generate",value:function(e){var t=void 0;do{t=this.prefix+p.encode(this.uidCounter++),this.uniqueSuffix.length>0&&(t+=this.uniqueSuffix),this.debugNames&&(t+=e?"_"+u(e):"_")}while(this.forbiddenNames.has(t));return t}}]),e}());t.PreludeGenerator=function(){function e(t,r){o(this,e),this.prelude=[],this.derivedIds=new Map,this.memoizedRefs=new Map,this.nameGenerator=new g(new Set,!!t,r||"","_$"),this.usesThis=!1,this.declaredGlobals=new Set}return c(e,[{key:"createNameGenerator",value:function(e){return new g(this.nameGenerator.forbiddenNames,this.nameGenerator.debugNames,this.nameGenerator.uniqueSuffix,e)}},{key:"convertStringToMember",value:function(e){var t=this;return e.split(".").map(function(e){return"global"===e?t.memoizeReference(e):v.identifier(e)}).reduce(function(e,t){return v.memberExpression(e,t)})}},{key:"globalReference",value:function(e){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&v.isValidIdentifier(e))return v.identifier(e);var t=v.isValidIdentifier(e)?v.identifier(e):v.stringLiteral(e);return v.memberExpression(this.memoizeReference("global"),t,!v.isIdentifier(t))}},{key:"memoizeReference",value:function(e){var t=this.memoizedRefs.get(e);if(t)return t;var r=void 0;if(e.includes("(")||e.includes("["))r=v.identifier(e);else if("global"===e)this.usesThis=!0,r=v.thisExpression();else{var n=e.lastIndexOf(".");r=-1===n?v.memberExpression(this.memoizeReference("global"),v.identifier(e)):v.memberExpression(this.memoizeReference(e.substr(0,n)),v.identifier(e.substr(n+1)))}return t=v.identifier(this.nameGenerator.generate(e)),this.prelude.push(v.variableDeclaration("var",[v.variableDeclarator(t,r)])),this.memoizedRefs.set(e,t),t}}]),e}()},function(e,t,r){"use strict";function n(e,t){if("ArrowFunctionExpression"===t.type)return!1;if("FunctionExpression"===t.type){if(null===t.id)return!1;if(null!==t.id)return!0}if("ClassExpression"===t.type){if(null===t.id)return!1;if(null!==t.id)return!0}throw Error("Unexpected AST node type : "+t.type)}function i(e,t,r){return(0,h.default)((0,c.IsPropertyKey)(e,r),"expected property key"),t.$HasProperty(r)}function a(e,t,r){(0,h.default)((0,c.IsPropertyKey)(e,r),"not a valid property key");var n=t.$GetOwnProperty(r);return void 0!==n&&(d.Properties.ThrowIfMightHaveBeenDeleted(n.value),!0)}function o(e,t,r){(0,h.default)("string"==typeof r||(0,c.IsPropertyKey)(e,r),"expected property key");var n=t.$GetOwnProperty(r);if(void 0!==n)return d.Properties.ThrowIfMightHaveBeenDeleted(n.value),!0;var i=t.$GetPrototypeOf();return!(i instanceof f.NullValue)&&((0,h.default)(i instanceof f.ObjectValue),i.$HasProperty(r))}function s(e,t){var r=e.getType();if(r===f.Value)throw(0,h.default)(e instanceof f.AbstractValue),f.AbstractValue.reportIntrospectionError(e),new l.FatalError;return f.Value.isTypeCompatibleWith(r,t)}function u(e){var t=e.getType();if(t===f.Value)throw(0,h.default)(e instanceof f.AbstractValue),f.AbstractValue.reportIntrospectionError(e),new l.FatalError;for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i0&&e[0]===e[0].toUpperCase()}function u(e,t){if(!(t instanceof v.FunctionValue))return!1;if(t.$Prototype instanceof v.ObjectValue){var r=(0,y.Get)(e,t.$Prototype,"prototype");if(r instanceof v.ObjectValue)return r.properties.has("isReactComponent")}return!1}function l(e,t,r){if(e.react.reactLibraryObject===t)return!0;if(!(r.tryQuery(function(){return(0,y.Get)(e,t,"version")},void 0,!1)instanceof v.StringValue))return!1;if(!(r.tryQuery(function(){return(0,y.Get)(e,t,"createElement")},void 0,!1)instanceof v.FunctionValue))return!1;if(!(r.tryQuery(function(){return(0,y.Get)(e,t,"cloneElement")},void 0,!1)instanceof v.FunctionValue))return!1;if(!(r.tryQuery(function(){return(0,y.Get)(e,t,"isValidElement")},void 0,!1)instanceof v.FunctionValue))return!1;if(!(r.tryQuery(function(){return(0,y.Get)(e,t,"Component")},void 0,!1)instanceof v.FunctionValue))return!1;r.tryQuery(function(){return(0,y.Get)(e,t,"Children")},void 0,!1);return v.ObjectValue,!1}function c(e,t){if(!(t instanceof v.FunctionValue))return!1;var r=(0,y.Get)(e,t,"prototype");return r instanceof v.ObjectValue&&r.properties.has("__reactAutoBindPairs")}function f(e,t,r){var n=(0,y.Get)(e,r,"key")||e.intrinsics.null,i=d("",t.usedReactElementKeys),a=new v.StringValue(e,i);n!==e.intrinsics.null&&(a=(0,m.computeBinary)(e,"+",n,a)),r.$Set("key",a,r)}function d(e,t){var r=void 0;do{r=Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,2)}while(t.has(r));return t.add(r),void 0!==e?""+r+e:r}function p(e,t,r){var n=(0,y.Get)(e,t,"length");(0,g.default)(n instanceof v.NumberValue,"Invalid length on ArrayValue during reconcilation");for(var i=n.value,a=0;a=0),this.body=t,this.index=r}return a(e,[{key:"isNotEarlierThan",value:function(e){return this.body===e.body&&this.index>=e.index}}]),e}(),t.TimingStatistics=function e(){n(this,e),this.totalTime=0,this.globalCodeTime=0,this.initializeMoreModulesTime=0,this.deepTraversalTime=0,this.referenceCountsTime=0,this.serializePassTime=0},t.ReactStatistics=function e(){n(this,e),this.optimizedTrees=0,this.inlinedComponents=0},t.SerializerStatistics=function(){function e(){n(this,e),this.objects=0,this.objectProperties=0,this.functions=0,this.functionClones=0,this.referentialized=0,this.valueIds=0,this.valuesInlined=0,this.delayedValues=0,this.acceleratedModules=0,this.delayedModules=0}return a(e,[{key:"log",value:function(){console.log("=== serialization statistics"),console.log(this.objects+" objects with "+this.objectProperties+" properties"),console.log(this.functions+" functions plus "+this.functionClones+" clones due to captured variables; "+this.referentialized+" captured mutable variables"),console.log(this.valueIds+" eager and "+this.delayedValues+" delayed value ids generated, and "+this.valuesInlined+" values inlined"),console.log(this.acceleratedModules+" accelerated and "+this.delayedModules+" delayed modules.")}}]),e}()},function(e,t,r){var n=r(129)("wks"),i=r(94),a=r(31).Symbol,o="function"==typeof a;(e.exports=function(e){return n[e]||(n[e]=o&&a[e]||(o?a:i)("Symbol."+e))}).store=n},function(e,t){var r=Array.isArray;e.exports=r},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,r){"use strict";function n(e,t,r,n){var i="",a="";if(t){t instanceof s.NativeFunctionValue&&(i="native");var o=t.$Get("name",t);o.mightBeUndefined()?o.throwIfNotConcrete():a=l.To.ToStringPartial(e,o),r&&r.$NewTarget&&(a="new "+a)}if(!i)if(n)i=n.start.line+":"+(n.start.column+1),n.source&&(i=n.source+":"+i);else if(i=(n?n.source:void 0)||"unknown",!a)return;return a?"at "+a+" ("+i+")":"at "+i}function i(e,t){(0,f.default)(t.$ErrorData);var r=t.$ErrorData.contextStack;if(!r)return e.intrinsics.undefined;var i=[],a="";a+=l.To.ToStringPartial(e,(0,u.Get)(e,t,"name"));var o=(0,u.Get)(e,t,"message");o.mightBeUndefined()?o.throwIfNotConcrete():(o=l.To.ToStringPartial(e,o))&&(a+=": "+o);var c=!0,d=!1,p=void 0;try{for(var h,v=r.reverse()[Symbol.iterator]();!(c=(h=v.next()).done);c=!0){var y=h.value,m=y.caller,b=n(e,m?m.function:void 0,m?m.lexicalEnvironment:void 0,y.loc);void 0!==b&&i.push(b)}}catch(e){d=!0,p=e}finally{try{!c&&v.return&&v.return()}finally{if(d)throw p}}return new s.StringValue(e,a+"\n "+i.join("\n "))}function a(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=new s.NativeFunctionValue(t,e,e,1,function(r,a,u,c){var f=o(a,1),d=f[0],p=c||n,h=l.Create.OrdinaryCreateFromConstructor(t,p,e+"Prototype",{$ErrorData:void 0});h.$ErrorData={contextStack:t.contextStack.slice(1),locationData:void 0};var v={value:i(t,h),enumerable:!1,configurable:!0,writable:!0};if(l.Properties.DefinePropertyOrThrow(t,h,"stack",v),d.mightBeUndefined())d.throwIfNotConcrete();else{var y=d.getType()===s.StringValue?d:l.To.ToStringValue(t,d),m={value:y,writable:!0,enumerable:!1,configurable:!0};l.Properties.DefinePropertyOrThrow(t,h,"message",m)}return h});return r&&(n.$Prototype=t.intrinsics.Error),n}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){var r=[],n=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(n=(o=s.next()).done)&&(r.push(o.value),!t||r.length!==t);n=!0);}catch(e){i=!0,a=e}finally{try{!n&&s.return&&s.return()}finally{if(i)throw a}}return r}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();t.default=function(e){return a("Error",e,!1)},t.describeLocation=n,t.build=a;var s=r(0),u=r(4),l=r(2),c=r(1),f=function(e){return e&&e.__esModule?e:{default:e}}(c)},function(e,t,r){"use strict";function n(e){switch(e){case"Float32":return"Float32Array";case"Float64":return"Float64Array";case"Int8":return"Int8Array";case"Int16":return"Int16Array";case"Int32":return"Int32Array";case"Uint8":return"Uint8Array";case"Uint16":return"Uint16Array";case"Uint32":return"Uint32Array";case"Uint8Clamped":return"Uint8ClampedArray";default:(0,b.default)(!1)}}function i(e,t){var r=new u.NativeFunctionValue(e,t+"Array",t+"Array",3,function(r,i,o,s){if(0===o){if(!s)throw e.createErrorThrowCompletion(e.intrinsics.TypeError,"NewTarget is undefined");var v=n(t);return(0,l.AllocateTypedArray)(e,v,s,t+"ArrayPrototype",0)}if(i[0]instanceof u.ObjectValue){if("$TypedArrayName"in i[0]){var m=i[0].throwIfNotConcrete();if((0,b.default)(m instanceof u.ObjectValue&&"string"==typeof m.$TypedArrayName),!s)throw e.createErrorThrowCompletion(e.intrinsics.TypeError,"NewTarget is undefined");var g=n(t),w=(0,l.AllocateTypedArray)(e,g,s,t+"ArrayPrototype"),E=m,C=E.$ViewedArrayBuffer;if((0,b.default)(C),!0===(0,h.IsDetachedBuffer)(e,C))throw e.createErrorThrowCompletion(e.intrinsics.TypeError,"IsDetachedBuffer(srcData) is true");g=w.$TypedArrayName,(0,b.default)("string"==typeof g);var S=l.ArrayElementType[g],A=E.$ArrayLength;(0,b.default)("number"==typeof A);var T=E.$TypedArrayName;(0,b.default)("string"==typeof T);var O=l.ArrayElementType[T],P=l.ArrayElementSize[T],x=E.$ByteOffset;(0,b.default)("number"==typeof x);var V=l.ArrayElementSize[g],_=V*A,N=void 0;if(S===O)N=(0,y.CloneArrayBuffer)(e,C,x);else{var D=(0,c.SpeciesConstructor)(e,C,e.intrinsics.ArrayBuffer);if(N=(0,y.AllocateArrayBuffer)(e,D,_),!0===(0,h.IsDetachedBuffer)(e,C))throw e.createErrorThrowCompletion(e.intrinsics.TypeError,"IsDetachedBuffer(srcData) is true");for(var j=x,I=0,k=A;k>0;){var F=(0,y.GetValueFromBuffer)(e,C,j,O);(0,y.SetValueInBuffer)(e,N,I,S,F.value),j+=P,I+=V,k-=1}}return w.$ViewedArrayBuffer=N,w.$ByteLength=_,w.$ByteOffset=0,w.$ArrayLength=A,w}if("$ArrayBufferData"in i[0]||"$TypedArrayName"in i[0]){var B=i[0].throwIfNotConcrete(),M=i[1],R=i[2];if((0,b.default)(B instanceof u.ObjectValue&&"$ArrayBufferData"in B),!s)throw e.createErrorThrowCompletion(e.intrinsics.TypeError,"NewTarget is undefined");var $=n(t),L=(0,l.AllocateTypedArray)(e,$,s,t+"ArrayPrototype");$=L.$TypedArrayName,(0,b.default)($);var G=l.ArrayElementSize[$],z=d.To.ToIndexPartial(e,M);if(z%G!=0)throw e.createErrorThrowCompletion(e.intrinsics.RangeError,"offset modulo elementSize ≠ 0");if(!0===(0,h.IsDetachedBuffer)(e,B))throw e.createErrorThrowCompletion(e.intrinsics.TypeError,"IsDetachedBuffer(buffer) is true");var U=B.$ArrayBufferByteLength;(0,b.default)("number"==typeof U);var W=void 0;if(!R||R instanceof u.UndefinedValue){if(U%G!=0)throw e.createErrorThrowCompletion(e.intrinsics.RangeError,"bufferByteLength modulo elementSize ≠ 0");if((W=U-z)<0)throw e.createErrorThrowCompletion(e.intrinsics.RangeError,"newByteLength < 0")}else{if(W=d.To.ToIndexPartial(e,R)*G,z+W>U)throw e.createErrorThrowCompletion(e.intrinsics.RangeError,"offset+newByteLength > bufferByteLength")}return L.$ViewedArrayBuffer=B,L.$ByteLength=W,L.$ByteOffset=z,L.$ArrayLength=W/G,L}var q=i[0].throwIfNotConcrete();if((0,b.default)(q instanceof u.ObjectValue&&a(q.$TypedArrayName)&&!q.$ArrayBufferData),!s)throw e.createErrorThrowCompletion(e.intrinsics.TypeError,"NewTarget is undefined");var H=n(t),K=(0,l.AllocateTypedArray)(e,H,s,t+"ArrayPrototype"),J=(0,f.GetMethod)(e,q,e.intrinsics.SymbolIterator);if(!(J instanceof u.UndefinedValue)){var Y=(0,p.IterableToList)(e,q,J),X=Y.length;(0,l.AllocateTypedArrayBuffer)(e,K,X);for(var Q=0;Q0;){var A=h.To.ToString(e,new o.NumberValue(e,g)),T=h.To.ToString(e,new o.NumberValue(e,m));if(!0===(0,l.HasProperty)(e,d,A)){var O=(0,u.Get)(e,d,A);h.Properties.Set(e,d,T,O,!0)}else h.Properties.DeletePropertyOrThrow(e,d,T);g+=S,m+=S,C-=1}return d}),t.defineNativeMethod("entries",0,function(t){var r=t;return(0,f.ValidateTypedArray)(e,r),(0,y.default)(r instanceof o.ObjectValue),h.Create.CreateArrayIterator(e,r,"key+value")}),t.defineNativeMethod("every",1,function(t,r){var n=i(r,2),a=n[0],d=n[1],p=h.To.ToObject(e,t.throwIfNotConcrete());(0,f.ValidateTypedArray)(e,p);var v=p.$ArrayLength;if((0,y.default)("number"==typeof v),!(0,c.IsCallable)(e,a))throw e.createErrorThrowCompletion(e.intrinsics.TypeError,"not a function");for(var m=d||e.intrinsics.undefined,b=0;b=0?v=d:(v=c+d)<0&&(v=0);v=d)return new o.NumberValue(e,-1);var m=void 0;for(v>=0?m=Object.is(v,-0)?0:v:(m=d+v)<0&&(m=0);m=0?Object.is(v,-0)?0:Math.min(v,d-1):d+v;m>=0;){if((0,l.HasProperty)(e,c,new o.StringValue(e,m+""))){var b=(0,u.Get)(e,c,new o.StringValue(e,m+""));if((0,p.StrictEqualityComparisonPartial)(e,a,b))return new o.NumberValue(e,m)}m--}return new o.NumberValue(e,-1)}),t.defineNativeGetter("length",function(t){var r=t.throwIfNotConcrete();if(!(r instanceof o.ObjectValue))throw e.createErrorThrowCompletion(e.intrinsics.TypeError,"Type(O) is not Object");if(!("$TypedArrayName"in r))throw e.createErrorThrowCompletion(e.intrinsics.TypeError,"O does not have a [[TypedArrayName]] internal slot");(0,y.default)(r.$ViewedArrayBuffer,"O has a [[ViewedArrayBuffer]] internal slot");var n=r.$ViewedArrayBuffer;if((0,y.default)(n),!0===(0,c.IsDetachedBuffer)(e,n))return e.intrinsics.zero;var i=r.$ArrayLength;return(0,y.default)("number"==typeof i),new o.NumberValue(e,i)}),t.defineNativeMethod("map",1,function(t,r){var n=i(r,2),a=n[0],l=n[1],d=t;(0,f.ValidateTypedArray)(e,d),(0,y.default)(d instanceof o.ObjectValue);var p=d.$ArrayLength;if((0,y.default)("number"==typeof p),!1===(0,c.IsCallable)(e,a))throw e.createErrorThrowCompletion(e.intrinsics.TypeError,"IsCallable(callbackfn) is false");for(var v=l||e.intrinsics.undefined,m=(0,f.TypedArraySpeciesCreate)(e,d,[new o.NumberValue(e,p)]),b=0;b=0;){var w=new o.StringValue(e,m+"");g=(0,l.HasProperty)(e,p,w),g&&(b=(0,u.Get)(e,p,w)),m--}if(!g||!b)throw e.createErrorThrowCompletion(e.intrinsics.TypeError,"Array.prototype")}for(;m>=0;){var E=new o.StringValue(e,m+"");if((0,l.HasProperty)(e,p,E)){var C=(0,u.Get)(e,p,E);b=(0,s.Call)(e,a,e.intrinsics.undefined,[b,C,new o.NumberValue(e,m),p])}m--}return b}),t.defineNativeMethod("reverse",0,function(t){var r=h.To.ToObject(e,t.throwIfNotConcrete());(0,f.ValidateTypedArray)(e,r);var n=r.$ArrayLength;(0,y.default)("number"==typeof n);for(var i=Math.floor(n/2),a=0;a!==i;){var s=n-a-1,c=new o.StringValue(e,s+""),d=new o.StringValue(e,a+""),p=(0,l.HasProperty)(e,r,d),v=void 0;p&&(v=(0,u.Get)(e,r,d));var m=(0,l.HasProperty)(e,r,c),b=void 0;m&&(b=(0,u.Get)(e,r,c)),p&&m?((0,y.default)(v,"expected lower value to exist"),(0,y.default)(b,"expected upper value to exist"),h.Properties.Set(e,r,d,b,!0),h.Properties.Set(e,r,c,v,!0)):!p&&m?((0,y.default)(b,"expected upper value to exist"),h.Properties.Set(e,r,d,b,!0),h.Properties.DeletePropertyOrThrow(e,r,c)):p&&!m&&((0,y.default)(v,"expected lower value to exist"),h.Properties.DeletePropertyOrThrow(e,r,d),h.Properties.Set(e,r,c,v,!0)),a++}return r}),t.defineNativeMethod("set",1,function(t,r){var n=i(r,2),a=n[0],s=n[1];if(a.$TypedArrayName){var l=a;(0,y.default)(l instanceof o.ObjectValue&&l.$TypedArrayName);var v=t.throwIfNotConcrete();if(!(v instanceof o.ObjectValue))throw e.createErrorThrowCompletion(e.intrinsics.TypeError,"Type(target) is not Object");if("string"!=typeof v.$TypedArrayName)throw e.createErrorThrowCompletion(e.intrinsics.TypeError,"target does not have a [[TypedArrayName]] internal slot");(0,y.default)(v.$ViewedArrayBuffer);var m=h.To.ToInteger(e,s||e.intrinsics.undefined);if(m<0)throw e.createErrorThrowCompletion(e.intrinsics.RangeError,"targetOffset < 0");var b=v.$ViewedArrayBuffer;if((0,y.default)(b instanceof o.ObjectValue),!0===(0,c.IsDetachedBuffer)(e,b))throw e.createErrorThrowCompletion(e.intrinsics.TypeError,"IsDetachedBuffer(targetBuffer) is true");var g=v.$ArrayLength;(0,y.default)("number"==typeof g);var w=l.$ViewedArrayBuffer;if((0,y.default)(w),!0===(0,c.IsDetachedBuffer)(e,w))throw e.createErrorThrowCompletion(e.intrinsics.TypeError,"IsDetachedBuffer(srcBuffer) is true");var E=v.$TypedArrayName;(0,y.default)("string"==typeof E);var C=f.ArrayElementType[E],S=f.ArrayElementSize[E],A=v.$ByteOffset;(0,y.default)("number"==typeof A);var T=l.$TypedArrayName;(0,y.default)("string"==typeof T);var O=f.ArrayElementType[T],P=f.ArrayElementSize[T],x=l.$ArrayLength;(0,y.default)("number"==typeof x);var V=l.$ByteOffset;if((0,y.default)("number"==typeof V),x+m>g)throw e.createErrorThrowCompletion(e.intrinsics.RangeError,"srcLength + targetOffset > targetLength");var _=void 0;!0===(0,p.SameValue)(e,w,b)?(w=(0,d.CloneArrayBuffer)(e,b,V,e.intrinsics.ArrayBuffer),_=0):_=V;var N=m*S+A,D=N+S*x;if(O===C)for(;NR)throw e.createErrorThrowCompletion(e.intrinsics.RangeError,"srcLength + targetOffset > targetLength");for(var q=B*L+z,H=0,K=q+L*W;q0){var V=p.$ViewedArrayBuffer;if((0,y.default)(V),!0===(0,c.IsDetachedBuffer)(e,V))throw e.createErrorThrowCompletion(e.intrinsics.TypeError,"IsDetachedBuffer(srcBuffer) is true");var _=C.$ViewedArrayBuffer;(0,y.default)(_ instanceof o.ObjectValue);var N=a.ElementSize[A],D=p.$ByteOffset;(0,y.default)("number"==typeof D);var j=C.$ByteOffset;(0,y.default)("number"==typeof j);for(var I=b*N+D,k=j+E*N;jr.value?new o.NumberValue(e,1):Object.is(t.value,-0)&&Object.is(r.value,0)?new o.NumberValue(e,-1):Object.is(t.value,0)&&Object.is(r.value,-0)?new o.NumberValue(e,1):e.intrinsics.zero},v=function(t,r){(0,y.default)(t instanceof o.NumberValue,"Unexpected type"),(0,y.default)(r instanceof o.NumberValue,"Unexpected type");var n=p(t,r);return h.To.ToNumber(e,n)},m=[],b=0;b=l.length)break;d=l[f++]}else{if(f=l.next(),f.done)break;d=f.value}var h=d;if((!a||!a[h])&&s.visit(e,h))return}},a.clearNode=function(e,t){E.removeProperties(e,t),S.path.delete(e)},a.removeProperties=function(e,t){return E.traverseFast(e,a.clearNode,t),e},a.hasType=function(e,t,r,n){if((0,g.default)(n,e.type))return!1;if(e.type===r)return!0;var i={has:!1,type:r};return a(e,{blacklist:n,enter:o},t,i),i.has},a.clearCache=function(){S.clear()},a.clearCache.clearPath=S.clearPath,a.clearCache.clearScope=S.clearScope,a.copyCache=function(e,t){S.path.has(e)&&S.path.set(t,S.path.get(e))}},function(e,t){var r=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(e,t,r){var n=r(220),i="object"==typeof self&&self&&self.Object===Object&&self,a=n||i||Function("return this")();e.exports=a},function(e,t,r){var n=r(36);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},function(e,t,r){e.exports=!r(53)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,r){var n=r(31),i=r(14),a=r(70),o=r(42),s=function(e,t,r){var u,l,c,f=e&s.F,d=e&s.G,p=e&s.S,h=e&s.P,v=e&s.B,y=e&s.W,m=d?i:i[t]||(i[t]={}),b=m.prototype,g=d?n:p?n[t]:(n[t]||{}).prototype;d&&(r=t);for(u in r)(l=!f&&g&&void 0!==g[u])&&u in m||(c=l?g[u]:r[u],m[u]=d&&"function"!=typeof g[u]?r[u]:v&&l?a(c,n):y&&g[u]==c?function(e){var t=function(t,r,n){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,r)}return new e(t,r,n)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(c):h&&"function"==typeof c?a(Function.call,c):c,h&&((m.virtual||(m.virtual={}))[u]=c,e&s.R&&b&&!b[u]&&o(b,u,c)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,e.exports=s},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,r){var n=r(33),i=r(189),a=r(132),o=Object.defineProperty;t.f=r(34)?Object.defineProperty:function(e,t,r){if(n(e),t=a(t,!0),n(r),i)try{return o(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(e[t]=r.value),e}},function(e,t,r){"use strict";function n(e){if(e.strict)return!0;if("BlockStatement"!==e.type&&"Program"!==e.type)return!1;var t=e.directives;return!!t&&t.some(function(e){return"Directive"===e.type&&("DirectiveLiteral"===e.value.type&&"use strict"===e.value.value)})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=r(534),a=n(i),o=r(180),s=n(o),u="function"==typeof s.default&&"symbol"==typeof a.default?function(e){return typeof e}:function(e){return e&&"function"==typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":typeof e};t.default="function"==typeof s.default&&"symbol"===u(a.default)?function(e){return void 0===e?"undefined":u(e)}:function(e){return e&&"function"==typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":void 0===e?"undefined":u(e)}},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e){return Array.isArray(e)?"array":null===e?"null":void 0===e?"undefined":void 0===e?"undefined":(0,m.default)(e)}function a(e){function t(t,r,n){if(Array.isArray(n))for(var i=0;i=a.length)break;u=a[s++]}else{if(s=a.next(),s.done)break;u=s.value}var l=u;if(g.is(l,n)){i=!0;break}}if(!i)throw new TypeError("Property "+t+" of "+e.type+" expected node to be of a type "+(0,v.default)(r)+" but instead got "+(0,v.default)(n&&n.type))}for(var t=arguments.length,r=Array(t),n=0;n=o.length)break;l=o[u++]}else{if(u=o.next(),u.done)break;l=u.value}var c=l;if(i(n)===c||g.is(c,n)){a=!0;break}}if(!a)throw new TypeError("Property "+t+" of "+e.type+" expected node to be of a type "+(0,v.default)(r)+" but instead got "+(0,v.default)(n&&n.type))}for(var t=arguments.length,r=Array(t),n=0;n=e.length)break;i=e[n++]}else{if(n=e.next(),n.done)break;i=n.value}i.apply(void 0,arguments)}}for(var t=arguments.length,r=Array(t),n=0;n1&&void 0!==arguments[1]?arguments[1]:{},r=t.inherits&&T[t.inherits]||{};t.fields=t.fields||r.fields||{},t.visitor=t.visitor||r.visitor||[],t.aliases=t.aliases||r.aliases||[],t.builder=t.builder||r.builder||t.visitor||[],t.deprecatedAlias&&(A[t.deprecatedAlias]=e);for(var n=t.visitor.concat(t.builder),a=Array.isArray(n),o=0,n=a?n:(0,p.default)(n);;){var s;if(a){if(o>=n.length)break;s=n[o++]}else{if(o=n.next(),o.done)break;s=o.value}var u=s;t.fields[u]=t.fields[u]||{}}for(var c in t.fields){var f=t.fields[c];-1===t.builder.indexOf(c)&&(f.optional=!0),void 0===f.default?f.default=null:f.validate||(f.validate=l(i(f.default)))}w[e]=t.visitor,S[e]=t.builder,C[e]=t.fields,E[e]=t.aliases,T[e]=t}t.__esModule=!0,t.DEPRECATED_KEYS=t.BUILDER_KEYS=t.NODE_FIELDS=t.ALIAS_KEYS=t.VISITOR_KEYS=void 0;var d=r(11),p=n(d),h=r(69),v=n(h),y=r(39),m=n(y);t.assertEach=a,t.assertOneOf=o,t.assertNodeType=s,t.assertNodeOrValueType=u,t.assertValueType=l,t.chain=c,t.default=f;var b=r(5),g=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(b),w=t.VISITOR_KEYS={},E=t.ALIAS_KEYS={},C=t.NODE_FIELDS={},S=t.BUILDER_KEYS={},A=t.DEPRECATED_KEYS={},T={}},function(e,t){var r={}.hasOwnProperty;e.exports=function(e,t){return r.call(e,t)}},function(e,t,r){var n=r(37),i=r(91);e.exports=r(34)?function(e,t,r){return n.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},function(e,t,r){function n(e){return null==e?void 0===e?u:s:l&&l in Object(e)?a(e):o(e)}var i=r(74),a=r(693),o=r(718),s="[object Null]",u="[object Undefined]",l=i?i.toStringTag:void 0;e.exports=n},function(e,t,r){function n(e){return null!=e&&a(e.length)&&!i(e)}var i=r(235),a=r(151);e.exports=n},function(e,t){function r(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}e.exports=r},function(e,t){function r(e){return null!=e&&"object"==typeof e}e.exports=r},function(e,t,r){function n(e){return o(e)?i(e):a(e)}var i=r(203),a=r(661),o=r(44);e.exports=n},function(e,t,r){"use strict";function n(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.intrinsics.undefined,r=arguments[2];r||(r=(0,y.GetMethod)(e,t,e.intrinsics.SymbolIterator));var n=(0,y.Call)(e,r,t);if(!(n instanceof v.ObjectValue))throw e.createErrorThrowCompletion(e.intrinsics.TypeError);return n}function i(e,t){var r=s(e,t);return!o(e,r)&&r}function a(e,t){return(0,b.default)(t instanceof v.ObjectValue,"expected obj"),(0,y.Get)(e,t,"value")}function o(e,t){return(0,b.default)(t instanceof v.ObjectValue,"expected obj"),w.To.ToBooleanPartial(e,(0,y.Get)(e,t,"done"))}function s(e,t,r){var n=void 0;if(!((n=r?(0,y.Invoke)(e,t,"next",[r]):(0,y.Invoke)(e,t,"next",[]))instanceof v.ObjectValue))throw e.createErrorThrowCompletion(e.intrinsics.TypeError);return n}function u(e,t){var r=w.Create.ObjectCreate(e,e.intrinsics.IteratorPrototype,{$IteratorNext:void 0,$IteratedList:void 0,$ListIteratorNextIndex:void 0});r.$IteratedList=t,r.$ListIteratorNextIndex=0;var n=l(e);return r.$IteratorNext=n,w.Create.CreateMethodProperty(e,r,new v.StringValue(e,"next"),n),r}function l(e){var t=new v.NativeFunctionValue(e,void 0,"next",0,function(r){(0,b.default)(r instanceof v.ObjectValue);var n=r,i=t;if(!n.$IteratorNext)throw e.createErrorThrowCompletion(e.intrinsics.TypeError,"O does not have an [[IteratorNext]] internal slot");var a=n.$IteratorNext;if(!(0,g.SameValue)(e,i,a))throw e.createErrorThrowCompletion(e.intrinsics.TypeError);if(!n.$IteratedList)throw e.createErrorThrowCompletion(e.intrinsics.TypeError,"O does not have an [[IteratedList]] internal slot");var o=n.$IteratedList;(0,b.default)("number"==typeof n.$ListIteratorNextIndex);var s=n.$ListIteratorNextIndex;return s>=o.length?w.Create.CreateIterResultObject(e,e.intrinsics.undefined,!0):(n.$ListIteratorNextIndex=s+1,w.Create.CreateIterResultObject(e,o[s],!1))});return t}function c(e,t,r){if(!(t instanceof v.ObjectValue))throw e.createErrorThrowCompletion(e.intrinsics.TypeError);if(!t.$MapData)throw e.createErrorThrowCompletion(e.intrinsics.TypeError);var n=w.Create.ObjectCreate(e,e.intrinsics.MapIteratorPrototype,{$Map:void 0,$MapNextIndex:void 0,$MapIterationKind:void 0});return n.$Map=t,n.$MapNextIndex=new v.NumberValue(e,0),n.$MapIterationKind=r,n}function f(e,t,r){if(!(t instanceof v.ObjectValue))throw e.createErrorThrowCompletion(e.intrinsics.TypeError);if(!t.$SetData)throw e.createErrorThrowCompletion(e.intrinsics.TypeError);var n=w.Create.ObjectCreate(e,e.intrinsics.SetIteratorPrototype,{$IteratedSet:void 0,$SetNextIndex:void 0,$SetIterationKind:void 0});return n.$IteratedSet=t,n.$SetNextIndex=0,n.$SetIterationKind=r,n}function d(e,t,r){(0,b.default)(t instanceof v.ObjectValue,"expected object"),(0,b.default)(r instanceof h.Completion,"expected completion record");var n=(0,y.GetMethod)(e,t,"return");if(n instanceof v.UndefinedValue)return r;var i=void 0;try{i=(0,y.Call)(e,n.throwIfNotConcrete(),t,[])}catch(e){if(!(e instanceof h.AbruptCompletion))throw e;i=e}return r instanceof h.ThrowCompletion?r:i instanceof h.ThrowCompletion?i:i instanceof v.ObjectValue?r:e.createErrorThrowCompletion(e.intrinsics.TypeError)}function p(e,t,r){for(var o=n(e,t,r),s=[],u=!0;!1!==u;)if(!1!==(u=i(e,o))){var l=a(e,u);s.push(l)}return s}Object.defineProperty(t,"__esModule",{value:!0}),t.GetIterator=n,t.IteratorStep=i,t.IteratorValue=a,t.IteratorComplete=o,t.IteratorNext=s,t.CreateListIterator=u,t.CreateMapIterator=c,t.CreateSetIterator=f,t.IteratorClose=d,t.IterableToList=p;var h=r(3),v=r(0),y=r(4),m=r(1),b=function(e){return e&&e.__esModule?e:{default:e}}(m),g=r(12),w=r(2)},function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.Logger=void 0;var i=function(){function e(e,t){for(var r=0;revaluate for effects"),this.evaluateForEffectsNesting++,this.requireStack.push(void 0))}},{key:"endEvaluateForEffects",value:function(e,t){if(e!==this){var r=this.requireStack.pop();(0,E.default)(void 0===r),this.evaluateForEffectsNesting--,this.log("require("+c+")");var b=0===this.requireStack.length;if(this.evaluateForEffectsNesting>0){if(b){var w=new d.CompilerDiagnostic("Non-deterministically conditional top-level require not currently supported",u.currentLocation,"PP0017","FatalError");throw u.handleError(w),new d.FatalError}return void(this.modules.isModuleInitialized(c)||this.uninitializedModuleIdsRequiredInEvaluateForEffects.add(c))}return s(u,function(){var e=void 0;try{o.requireStack.push(c);var t=o.requireSequence.length;o.requireSequence.push(c);var r=void 0,i=void 0,s=o.statistics.delayedModules;do{try{i=u.evaluateForEffects(function(){return a()},o)}catch(e){}if(r=[],b){var l=!0,f=!1,p=void 0;try{for(var h,y=o.uninitializedModuleIdsRequiredInEvaluateForEffects[Symbol.iterator]();!(l=(h=y.next()).done);l=!0){var w=h.value,C=o.modules.tryInitializeModule(w,"accelerated initialization of conditional module "+w+" as it's required in an evaluate-for-effects context by module "+c);void 0!==C&&C[0]instanceof m.Value&&o.modules.isModuleInitialized(w)&&r.push(w)}}catch(e){f=!0,p=e}finally{try{!l&&y.return&&y.return()}finally{if(f)throw p}}o.uninitializedModuleIdsRequiredInEvaluateForEffects.clear(),r.length>0&&(console.log("restarting require("+c+") after accelerating conditional require calls for "+r.join()),o.statistics.acceleratedModules+=r.length)}}while(r.length>0);if(void 0===i||i[0]instanceof v.AbruptCompletion){console.log("delaying require("+c+")"),o.statistics.delayedModules=s+1;for(var S=new Set,A=t;A0&&console.log("=== speculatively initialized "+e+" additional modules")}},{key:"isModuleInitialized",value:function(e){var t=this.realm,r=t.setReadOnly(!0),n=this.disallowDelayingRequiresOverride;this.disallowDelayingRequiresOverride=!0;try{var i=g.callExpression(g.identifier("require"),[g.valueToNode(e)]),a=t.evaluateNodeForEffectsInGlobalEnv(i),o=u(a,5),s=o[0],l=o[1],c=o[2],f=o[3],p=o[4];if((0,E.default)(c),s instanceof v.AbruptCompletion)return;if((0,E.default)(s instanceof m.Value),!l.empty()||s instanceof m.ObjectValue&&p.has(s))return;var h=!1,y=!0,b=!1,w=void 0;try{for(var C,S=f[Symbol.iterator]();!(y=(C=S.next()).done);y=!0){var A=C.value,T=u(A,1),O=T[0],P=O.object;(0,E.default)(P instanceof m.ObjectValue),p.has(P)||(h=!0)}}catch(e){b=!0,w=e}finally{try{!y&&S.return&&S.return()}finally{if(b)throw w}}if(h)return;return s}catch(e){if(e instanceof d.FatalError)return;throw e}finally{t.setReadOnly(r),this.disallowDelayingRequiresOverride=n}}}]),e}()},function(e,t,r){"use strict";function n(e,t){if(e){var r=a.VISITOR_KEYS[e.type];if(r){if(!t(e)){var i=!0,o=!1,s=void 0;try{for(var u,l=r[Symbol.iterator]();!(i=(u=l.next()).done);i=!0){var c=u.value,f=e[c];if(Array.isArray(f)){var d=!0,p=!1,h=void 0;try{for(var v,y=f[Symbol.iterator]();!(d=(v=y.next()).done);d=!0){n(v.value,t)}}catch(e){p=!0,h=e}finally{try{!d&&y.return&&y.return()}finally{if(p)throw h}}}else n(f,t)}}catch(e){o=!0,s=e}finally{try{!i&&l.return&&l.return()}finally{if(o)throw s}}}}}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var i=r(5),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(i)},function(e,t,r){"use strict";function n(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=r(11),o=i(a),s=r(18),u=i(s),l=r(183),c=n(l),f=r(557),d=i(f),p=r(631),h=i(p),v=r(30),y=i(v),m=r(232),b=i(m),g=r(115),w=i(g),E=r(5),C=n(E),S=r(85),A=(0,d.default)("babel"),T=function(){function e(t,r){(0,u.default)(this,e),this.parent=r,this.hub=t,this.contexts=[],this.data={},this.shouldSkip=!1,this.shouldStop=!1,this.removed=!1,this.state=null,this.opts=null,this.skipKeys=null,this.parentPath=null,this.context=null,this.container=null,this.listKey=null,this.inList=!1,this.parentKey=null,this.key=null,this.node=null,this.scope=null,this.type=null,this.typeAnnotation=null}return e.get=function(t){var r=t.hub,n=t.parentPath,i=t.parent,a=t.container,o=t.listKey,s=t.key;!r&&n&&(r=n.hub),(0,h.default)(i,"To get a node path the parent needs to exist");var u=a[s],l=S.path.get(i)||[];S.path.has(i)||S.path.set(i,l);for(var c=void 0,f=0;f1&&void 0!==arguments[1]?arguments[1]:SyntaxError;return this.hub.file.buildCodeFrameError(this.node,e,t)},e.prototype.traverse=function(e,t){(0,y.default)(this.node,e,this.scope,t,this)},e.prototype.mark=function(e,t){this.hub.file.metadata.marked.push({type:e,message:t,loc:this.node.loc})},e.prototype.set=function(e,t){C.validate(this.node,e,t),this.node[e]=t},e.prototype.getPathLocation=function(){var e=[],t=this;do{var r=t.key;t.inList&&(r=t.listKey+"["+r+"]"),e.unshift(r)}while(t=t.parentPath);return e.join(".")},e.prototype.debug=function(e){A.enabled&&A(this.getPathLocation()+" "+this.type+": "+e())},e}();t.default=T,(0,b.default)(T.prototype,r(540)),(0,b.default)(T.prototype,r(546)),(0,b.default)(T.prototype,r(554)),(0,b.default)(T.prototype,r(544)),(0,b.default)(T.prototype,r(543)),(0,b.default)(T.prototype,r(549)),(0,b.default)(T.prototype,r(542)),(0,b.default)(T.prototype,r(553)),(0,b.default)(T.prototype,r(552)),(0,b.default)(T.prototype,r(545)),(0,b.default)(T.prototype,r(541));for(var O=C.TYPES,P=Array.isArray(O),x=0,O=P?O:(0,o.default)(O);;){var V;if("break"===function(){if(P){if(x>=O.length)return"break";V=O[x++]}else{if(x=O.next(),x.done)return"break";V=x.value}var e=V,t="is"+e;T.prototype[t]=function(e){return C[t](this.node,e)},T.prototype["assert"+e]=function(r){if(!this[t](r))throw new TypeError("Expected node path of type "+e)}}())break}for(var _ in c){(function(e){if("_"===e[0])return"continue";C.TYPES.indexOf(e)<0&&C.TYPES.push(e);var t=c[e];T.prototype["is"+e]=function(e){return t.checkPath(this,e)}})(_)}e.exports=t.default},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,r){var n=r(122),i=r(87);e.exports=function(e){return n(i(e))}},function(e,t,r){function n(e,t){var r=a(e,t);return i(r)?r:void 0}var i=r(658),a=r(694);e.exports=n},function(e,t,r){"use strict";function n(e,t,r,n,i,a){function l(t,s){var u=t(e,r),l=t(e,n);if(u&&l)return s;var c=u?a:i,d=new o.CompilerDiagnostic(f,c,"PP0002","RecoverableError");if("Recover"===e.handleError(d))return s;throw new o.FatalError}if("+"===t){var d=u.To.GetToPrimitivePureResultType(e,r),p=u.To.GetToPrimitivePureResultType(e,n);if(void 0===d||void 0===p){var h=void 0===d?i:a,v=new o.CompilerDiagnostic(f,h,"PP0002","RecoverableError");if("Recover"===e.handleError(v))return d=r.getType(),p=n.getType(),d===s.StringValue||p===s.StringValue?s.StringValue:d===s.NumberValue&&p===s.NumberValue?s.NumberValue:s.Value;throw new o.FatalError}return d===s.StringValue||p===s.StringValue?s.StringValue:s.NumberValue}if("<"===t||">"===t||">="===t||"<="===t)return l(u.To.IsToPrimitivePure.bind(u.To),s.BooleanValue);if("!="===t||"=="===t){var y=r.getType(),m=n.getType();return y===s.NullValue||y===s.UndefinedValue||m===s.NullValue||m===s.UndefinedValue?s.BooleanValue:l(u.To.IsToPrimitivePure.bind(u.To),s.BooleanValue)}if("==="===t||"!=="===t)return s.BooleanValue;if(">>>"===t||"<<"===t||">>"===t||"&"===t||"|"===t||"^"===t||"**"===t||"%"===t||"/"===t||"*"===t||"-"===t)return l(u.To.IsToNumberPure.bind(u.To),s.NumberValue);if("in"===t||"instanceof"===t){if(n.mightNotBeObject()){var b=new o.CompilerDiagnostic("might not be an object, hence the "+t+" operator might throw a TypeError",a,"PP0003","RecoverableError");if("Recover"===e.handleError(b))return s.BooleanValue;throw new o.FatalError}if(!n.mightNotBeObject()&&n.isSimpleObject())return s.BooleanValue;var g=new o.CompilerDiagnostic("might be an object that behaves badly for the "+t+" operator",a,"PP0004","RecoverableError");if("Recover"===e.handleError(g))return s.BooleanValue;throw new o.FatalError}(0,c.default)(!1,"unimplemented "+t)}function i(e,t,r,i,o,u,l){if(e.useAbstractInterpretation&&("=="===t||"==="===t||"!="===t||"!=="===t)&&(!r.mightNotBeObject()&&(i instanceof s.NullValue||i instanceof s.UndefinedValue)||(r instanceof s.NullValue||r instanceof s.UndefinedValue)&&!i.mightNotBeObject()))return new s.BooleanValue(e,"="!==t[0]);if(r instanceof s.AbstractValue||i instanceof s.AbstractValue)return n(e,t,r,i,o,u),s.AbstractValue.createFromBinaryOp(e,t,r,i,l);if("in"===t&&!(i instanceof s.ObjectValue))throw e.createErrorThrowCompletion(e.intrinsics.TypeError);return(0,c.default)(r instanceof s.ConcreteValue),(0,c.default)(i instanceof s.ConcreteValue),a.ValuesDomain.computeBinary(e,t,r,i)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r,n){var a=r.evaluate(e.left,t),o=u.Environment.GetValue(n,a),s=r.evaluate(e.right,t),l=u.Environment.GetValue(n,s);return i(n,e.operator,o,l,e.left.loc,e.right.loc,e.loc)},t.getPureBinaryOperationResultType=n,t.computeBinary=i;var a=r(20),o=r(6),s=r(0),u=r(2),l=r(1),c=function(e){return e&&e.__esModule?e:{default:e}}(l),f="might be an object with an unknown valueOf or toString or Symbol.toPrimitive method"},function(e,t,r){"use strict";function n(e,t){(0,b.default)(t>=0,"size >= 0");var r=void 0;try{r=new Uint8Array(t)}catch(t){throw t instanceof RangeError?e.createErrorThrowCompletion(e.intrinsics.RangeError,"Invalid typed array length"):t}for(var n=0;n=0&&i>=0&&a>=0);var o=n.length;(0,b.default)(i+a<=o,"fromIndex+count ≤ fromSize");var s=t.length;for((0,b.default)(r+a<=s,"toIndex+count ≤ toSize");a>0;)t[r]=n[i],r+=1,i+=1,a-=1;return e.intrinsics.empty}function a(e,t,r){var i=y.Create.OrdinaryCreateFromConstructor(e,t,"ArrayBufferPrototype",{$ArrayBufferData:void 0,$ArrayBufferByteLength:void 0});(0,b.default)("number"==typeof r&&r>=0,"byteLength is an integer value ≥ 0");var a=n(e,r);return i.$ArrayBufferData=a,i.$ArrayBufferByteLength=r,i}function o(e,t){return(0,b.default)(t instanceof d.ObjectValue&&"$ArrayBufferData"in t&&"$ArrayBufferByteLength"in t),y.Properties.ThrowIfInternalSlotNotWritable(e,t,"$ArrayBufferData").$ArrayBufferData=null,y.Properties.ThrowIfInternalSlotNotWritable(e,t,"$ArrayBufferByteLength").$ArrayBufferByteLength=0,e.intrinsics.null}function s(e,t,r,n,i){if(!((t=t.throwIfNotConcrete())instanceof d.ObjectValue))throw e.createErrorThrowCompletion(e.intrinsics.TypeError,"Type(view) is not Object");if(!("$DataView"in t))throw e.createErrorThrowCompletion(e.intrinsics.TypeError,"view does not have a [[DataView]] internal slot");(0,b.default)(t.$ViewedArrayBuffer);var a=y.To.ToIndexPartial(e,r),o=y.To.ToBooleanPartial(e,n),s=t.$ViewedArrayBuffer;if((0,b.default)(s),!0===(0,v.IsDetachedBuffer)(e,s))throw e.createErrorThrowCompletion(e.intrinsics.TypeError,"IsDetachedBuffer(buffer) is true");var l=t.$ByteOffset;(0,b.default)("number"==typeof l);var c=t.$ByteLength;if((0,b.default)("number"==typeof c),a+g.ElementSize[i]>c)throw e.createErrorThrowCompletion(e.intrinsics.RangeError,"getIndex + elementSize > viewSize");return u(e,s,a+l,i,o)}function u(e,t,r,n,i){(0,b.default)(!1===(0,v.IsDetachedBuffer)(e,t)),(0,b.default)(t.$ArrayBufferData instanceof Uint8Array&&r+g.ElementSize[n]<=t.$ArrayBufferData.length),(0,b.default)(r>=0);var a=t.$ArrayBufferData;(0,b.default)(a instanceof Uint8Array);var o=g.ElementSize[n],s=new DataView(a.buffer,r,o);if(void 0===i&&(i=!0),"Float32"===n)return new d.NumberValue(e,s.getFloat32(0,i));if("Float64"===n)return new d.NumberValue(e,s.getFloat64(0,i));var u=void 0;return u="Uint8"===n||"Uint16"===n||"Uint32"===n||"Uint8Clamped"===n?1===o?s.getUint8(0):2===o?s.getUint16(0,i):s.getUint32(0,i):1===o?s.getInt8(0):2===o?s.getInt16(0,i):s.getInt32(0,i),new d.NumberValue(e,u)}function l(e,t,r,n,i,a){if(!((t=t.throwIfNotConcrete())instanceof d.ObjectValue))throw e.createErrorThrowCompletion(e.intrinsics.TypeError,"Type(view) is not Object");if(!("$DataView"in t))throw e.createErrorThrowCompletion(e.intrinsics.TypeError,"view does not have a [[DataView]] internal slot");(0,b.default)(t.$ViewedArrayBuffer);var o=y.To.ToIndexPartial(e,r),s=y.To.ToNumber(e,a),u=y.To.ToBooleanPartial(e,n),l=t.$ViewedArrayBuffer;if((0,b.default)(l),!0===(0,v.IsDetachedBuffer)(e,l))throw e.createErrorThrowCompletion(e.intrinsics.TypeError,"IsDetachedBuffer(buffer) is true");var c=t.$ByteOffset;(0,b.default)("number"==typeof c);var p=t.$ByteLength;if((0,b.default)("number"==typeof p),o+g.ElementSize[i]>p)throw e.createErrorThrowCompletion(e.intrinsics.RangeError,"getIndex + elementSize > viewSize");return f(e,l,o+c,i,s,u)}function c(e,t,r,n){if((0,b.default)(t instanceof d.ObjectValue&&t.$ArrayBufferData),void 0===n&&(n=(0,p.SpeciesConstructor)(e,t,e.intrinsics.ArrayBuffer),!0===(0,v.IsDetachedBuffer)(e,t)))throw e.createErrorThrowCompletion(e.intrinsics.TypeError,"IsDetachedBuffer(srcBuffer) is true");(0,b.default)(!0===(0,h.IsConstructor)(e,n),"IsConstructor(cloneConstructor) is true");var o=t.$ArrayBufferByteLength;(0,b.default)("number"==typeof o),(0,b.default)(r<=o,"srcByteOffset ≤ srcLength");var s=o-r,u=t.$ArrayBufferData;(0,b.default)(u);var l=a(e,n,o);if(!0===(0,v.IsDetachedBuffer)(e,t))throw e.createErrorThrowCompletion(e.intrinsics.TypeError,"IsDetachedBuffer(srcBuffer) is true");var c=l.$ArrayBufferData;return(0,b.default)(c),i(e,c,0,u,r,s),l}function f(e,t,r,n,i,a){(0,b.default)(!1===(0,v.IsDetachedBuffer)(e,t)),(0,b.default)(t.$ArrayBufferData instanceof Uint8Array&&r+g.ElementSize[n]<=t.$ArrayBufferData.length),(0,b.default)(r>=0),(0,b.default)("number"==typeof i);var o=y.Properties.ThrowIfInternalSlotNotWritable(e,t,"$ArrayBufferData").$ArrayBufferData;(0,b.default)(o instanceof Uint8Array),void 0===a&&(a=!0);var s=new Uint8Array(g.ElementSize[n]);if("Float32"===n)new DataView(s.buffer).setFloat32(0,i,a);else if("Float64"===n)new DataView(s.buffer).setFloat64(0,i,a);else{var u=g.ElementSize[n],l=y.To.ElementConv[n],c=l(e,i);c>0?1===u?new DataView(s.buffer).setUint8(0,c):2===u?new DataView(s.buffer).setUint16(0,c,a):4===u?new DataView(s.buffer).setUint32(0,c,a):(0,b.default)(!1):1===u?new DataView(s.buffer).setInt8(0,c):2===u?new DataView(s.buffer).setInt16(0,c,a):4===u?new DataView(s.buffer).setInt32(0,c,a):(0,b.default)(!1)}for(var f=0;f1)for(var r=1;r=0))}function a(e,t,r){var n=r.environmentRecord;(0,p.default)(n instanceof l.DeclarativeEnvironmentRecord);var i=!0,a=!1,o=void 0;try{for(var s,u=v.Environment.BoundNames(e,t)[Symbol.iterator]();!(i=(s=u.next()).done);i=!0){var c=s.value;"const"===t.kind?n.CreateImmutableBinding(c,!0):n.CreateMutableBinding(c,!1)}}catch(e){a=!0,o=e}finally{try{!i&&u.return&&u.return()}finally{if(a)throw o}}}function o(e,t,r,n,i,a){var o=e.getRunningContext().lexicalEnvironment;if(r.length){var s=v.Environment.NewDeclarativeEnvironment(e,o),l=s.environmentRecord,d=!0,y=!1,m=void 0;try{for(var b,g=r[Symbol.iterator]();!(d=(b=g.next()).done);d=!0){var w=b.value;l.CreateMutableBinding(w,!1)}}catch(e){y=!0,m=e}finally{try{!d&&g.return&&g.return()}finally{if(y)throw m}}e.getRunningContext().lexicalEnvironment=s,t=s}var E=void 0;try{E=t.evaluate(n,a)}finally{var C=e.getRunningContext().lexicalEnvironment;C!==o&&e.onDestroyScope(C),e.getRunningContext().lexicalEnvironment=o}t=o;var S=v.Environment.GetValue(e,E);if("enumerate"===i){if(S instanceof f.NullValue||S instanceof f.UndefinedValue)throw new c.BreakCompletion(e.intrinsics.empty,n.loc,void 0);var A=v.To.ToObjectPartial(e,S);return A.isPartialObject()||A instanceof f.AbstractObjectValue?A:v.Properties.EnumerateObjectProperties(e,A)}if((0,p.default)("iterate"===i,"expected iterationKind to be iterate"),S instanceof f.AbstractValue){var T=new u.CompilerDiagnostic("for of loops over unknown collections are not yet supported",n.loc,"PP0014","FatalError");throw e.handleError(T),new u.FatalError}return(0,h.GetIterator)(e,S)}function s(e,t,r,o,s,u,d,y){var m=e.getRunningContext().lexicalEnvironment,b=e.intrinsics.undefined,g=v.Environment.IsDestructuring(r);for(g&&"assignment"===u&&(0,p.default)("VariableDeclaration"!==r.type);;){var w=(0,h.IteratorStep)(e,s);if(!w)return b;var E=(0,h.IteratorValue)(e,w),C=void 0,S=void 0;if("assignment"===u||"varBinding"===u)g||(S=t.evaluateCompletion(r,y));else if((0,p.default)("lexicalBinding"===u,"expected lhsKind to be lexicalBinding"),(0,p.default)("VariableDeclaration"===r.type),C=v.Environment.NewDeclarativeEnvironment(e,m),a(e,r,C),e.getRunningContext().lexicalEnvironment=C,t=C,!g){var A=v.Environment.BoundNames(e,r);(0,p.default)(1===A.length,"expected single name");var T=A[0];S=v.Environment.ResolveBinding(e,T,y)}var O=void 0;try{g?"assignment"===u?((0,p.default)("ArrayPattern"===r.type||"ObjectPattern"===r.type),O=(0,h.DestructuringAssignmentEvaluation)(e,r,E,y,C||t)):"varBinding"===u?O=v.Environment.BindingInitialization(e,r,E,y,void 0):((0,p.default)("lexicalBinding"===u),(0,p.default)(void 0!==C),O=v.Environment.BindingInitialization(e,r,E,y,C)):S instanceof c.AbruptCompletion?O=S:"lexicalBinding"===u?((0,p.default)(S instanceof l.Reference),O=v.Environment.InitializeReferencedBinding(e,S,E)):((0,p.default)(void 0!==S),O=v.Properties.PutValue(e,S,E))}catch(e){if(!(e instanceof c.AbruptCompletion))throw e;O=e}if(O instanceof c.AbruptCompletion)throw e.getRunningContext().lexicalEnvironment=m,(0,h.IteratorClose)(e,s,O);var P=t.evaluateCompletion(o,y);(0,p.default)(P instanceof f.Value||P instanceof c.AbruptCompletion);var x=e.getRunningContext().lexicalEnvironment;if(x!==m&&e.onDestroyScope(x),e.getRunningContext().lexicalEnvironment=m,t=m,!i(e,P,d))throw(0,p.default)(P instanceof c.AbruptCompletion),P=(0,h.UpdateEmpty)(e,P,b),(0,p.default)(P instanceof c.AbruptCompletion),(0,h.IteratorClose)(e,s,P);var V=n(e,P);V instanceof f.EmptyValue||(b=V)}(0,p.default)(!1)}Object.defineProperty(t,"__esModule",{value:!0}),t.InternalGetResultValue=n,t.LoopContinues=i,t.ForInOfHeadEvaluation=o,t.ForInOfBodyEvaluation=s,t.default=function(e,t,r,n,i){var a=e.left,u=e.right,l=e.body;try{if("VariableDeclaration"===a.type){if("var"===a.kind){var d=o(n,r,[],u,"iterate",t);return(0,p.default)(d instanceof f.ObjectValue),s(n,r,a.declarations[0].id,l,d,"varBinding",i,t)}var y=o(n,r,v.Environment.BoundNames(n,a),u,"iterate",t);return(0,p.default)(y instanceof f.ObjectValue),s(n,r,a,l,y,"lexicalBinding",i,t)}var m=o(n,r,[],u,"iterate",t);return(0,p.default)(m instanceof f.ObjectValue),s(n,r,a,l,m,"assignment",i,t)}catch(e){if(e instanceof c.BreakCompletion&&!e.target)return(0,h.UpdateEmpty)(n,e,n.intrinsics.undefined).value;throw e}};var u=r(6),l=r(8),c=r(3),f=r(0),d=r(1),p=function(e){return e&&e.__esModule?e:{default:e}}(d),h=r(4),v=r(2)},function(e,t,r){"use strict";function n(e,t,r,n){var s=i(e,t,r,n);if(s instanceof o.AbstractValue){var u=new a.CompilerDiagnostic("unknown computed property name",e.loc,"PP0014","FatalError");throw r.handleError(u),new a.FatalError}return s}function i(e,t,r,n){if(e.computed){var i=u.Environment.GetValue(r,t.evaluate(e.key,n));return i instanceof o.AbstractValue?i:((0,c.default)(i instanceof o.ConcreteValue),u.To.ToPropertyKey(r,i))}if("Identifier"===e.key.type)return new o.StringValue(r,e.key.name);var a=u.Environment.GetValue(r,t.evaluate(e.key,n));return(0,c.default)(a instanceof o.ConcreteValue),u.To.ToString(r,a)}Object.defineProperty(t,"__esModule",{value:!0}),t.EvalPropertyName=n,t.default=function(e,t,r,n){var l=u.Create.ObjectCreate(n,n.intrinsics.ObjectPrototype),f=!0,d=!1,p=void 0;try{for(var h,v=e.properties[Symbol.iterator]();!(f=(h=v.next()).done);f=!0){var y=h.value;if("ObjectProperty"===y.type){var m=i(y,r,n,t),b=r.evaluate(y.value,t),g=u.Environment.GetValue(n,b);if((0,s.IsAnonymousFunctionDefinition)(n,y.value)){(0,c.default)(g instanceof o.ObjectValue);var w=(0,s.HasOwnProperty)(n,g,"name");(0,c.default)(!w),u.Functions.SetFunctionName(n,g,m)}if(m instanceof o.AbstractValue){if(m.mightNotBeString()){var E=new a.CompilerDiagnostic("property key value is unknown",y.loc,"PP0011","FatalError");if("Fail"===n.handleError(E))throw new a.FatalError;continue}l.$SetPartial(m,g,l)}else u.Create.CreateDataPropertyOrThrow(n,l,m,g)}else(0,c.default)("ObjectMethod"===y.type),u.Properties.PropertyDefinitionEvaluation(n,y,l,r,t,!0)}}catch(e){d=!0,p=e}finally{try{!f&&v.return&&v.return()}finally{if(d)throw p}}return l};var a=r(6),o=r(0),s=r(4),u=r(2),l=r(1),c=function(e){return e&&e.__esModule?e:{default:e}}(l)},function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.ResidualHeapInspector=void 0;var i=function(){function e(e,t){var r=[],n=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(n=(o=s.next()).done)&&(r.push(o.value),!t||r.length!==t);n=!0);}catch(e){i=!0,a=e}finally{try{!n&&s.return&&s.return()}finally{if(i)throw a}}return r}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=function(){function e(e,t){for(var r=0;r=r&&(r=Number(c)+1)}}catch(e){i=!0,a=e}finally{try{!n&&l.return&&l.return()}finally{if(i)throw a}}return r}function i(e,t){if(e===t)return e;for(var r=e,n=t,i=0,a=0;;){var o=r&&r.getParent(),u=n&&n.getParent();if(o===t)return t;if(u===e)return e;if(o&&i++,u&&a++,!o&&!u)break;r=o,n=u}for(r=e;i>a;)(0,s.default)(void 0!==r),r=r.getParent(),i--;for(n=t;i=0;c--)o=u[c],"."===o?u.splice(c,1):".."===o?l++:l>0&&(""===o?(u.splice(c+1,l),l=0):(u.splice(c,2),l--));return r=u.join("/"),""===r&&(r=s?"/":"."),a?(a.path=r,i(a)):r}function o(e,t){""===e&&(e="."),""===t&&(t=".");var r=n(t),o=n(e);if(o&&(e=o.path||"/"),r&&!r.scheme)return o&&(r.scheme=o.scheme),i(r);if(r||t.match(m))return t;if(o&&!o.host&&!o.path)return o.host=t,i(o);var s="/"===t.charAt(0)?t:a(e.replace(/\/+$/,"")+"/"+t);return o?(o.path=s,i(o)):s}function s(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var r=0;0!==t.indexOf(e+"/");){var n=e.lastIndexOf("/");if(n<0)return t;if(e=e.slice(0,n),e.match(/^([^\/]+:\/)?\/*$/))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)}function u(e){return e}function l(e){return f(e)?"$"+e:e}function c(e){return f(e)?e.slice(1):e}function f(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var r=t-10;r>=0;r--)if(36!==e.charCodeAt(r))return!1;return!0}function d(e,t,r){var n=e.source-t.source;return 0!==n?n:0!==(n=e.originalLine-t.originalLine)?n:0!==(n=e.originalColumn-t.originalColumn)||r?n:0!==(n=e.generatedColumn-t.generatedColumn)?n:(n=e.generatedLine-t.generatedLine,0!==n?n:e.name-t.name)}function p(e,t,r){var n=e.generatedLine-t.generatedLine;return 0!==n?n:0!==(n=e.generatedColumn-t.generatedColumn)||r?n:0!==(n=e.source-t.source)?n:0!==(n=e.originalLine-t.originalLine)?n:(n=e.originalColumn-t.originalColumn,0!==n?n:e.name-t.name)}function h(e,t){return e===t?0:e>t?1:-1}function v(e,t){var r=e.generatedLine-t.generatedLine;return 0!==r?r:0!==(r=e.generatedColumn-t.generatedColumn)?r:0!==(r=h(e.source,t.source))?r:0!==(r=e.originalLine-t.originalLine)?r:(r=e.originalColumn-t.originalColumn,0!==r?r:h(e.name,t.name))}t.getArg=r;var y=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,m=/^data:.+\,.+$/;t.urlParse=n,t.urlGenerate=i,t.normalize=a,t.join=o,t.isAbsolute=function(e){return"/"===e.charAt(0)||!!e.match(y)},t.relative=s;var b=function(){return!("__proto__"in Object.create(null))}();t.toSetString=b?u:l,t.fromSetString=b?u:c,t.compareByOriginalPositions=d,t.compareByGeneratedPositionsDeflated=p,t.compareByGeneratedPositionsInflated=v},function(e,t){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){"use strict";function n(e,t,r){return a(e,i(e,e.intrinsics.RegExp),t,r)}function i(e,t){var r=m.Create.OrdinaryCreateFromConstructor(e,t,"RegExpPrototype",{$RegExpMatcher:void 0,$OriginalSource:void 0,$OriginalFlags:void 0});return m.Properties.DefinePropertyOrThrow(e,r,"lastIndex",{writable:!0,enumerable:!1,configurable:!1}),r}function a(e,t,r,n){(0,f.default)(e.isNewObject(t));var i=void 0;i=!r||(0,y.HasCompatibleType)(r,d.UndefinedValue)?"":m.To.ToStringPartial(e,r);var a=void 0;a=!n||(0,y.HasCompatibleType)(n,d.UndefinedValue)?"":m.To.ToStringPartial(e,n);for(var o=0;o=0&&(u+="i"),a.indexOf("u")>=0&&(u+="u"),a.indexOf("m")>=0&&(u+="m");var l=new RegExp(i,u);t.$RegExpMatcher=function(e,t){l.lastIndex=t;var r=l.exec(e);return r?{endIndex:r.index+r[0].length,captures:r}:null}}catch(t){throw t instanceof SyntaxError?e.createErrorThrowCompletion(e.intrinsics.SyntaxError,"invalid RegExp"):t}return m.Properties.Set(e,t,"lastIndex",e.intrinsics.zero,!0),t}function o(e,t,r){(0,f.default)(t instanceof d.ObjectValue,"Type(R) is Object"),(0,f.default)("string"==typeof r,"Type(S) is String");var n=(0,p.Get)(e,t,"exec");if((0,h.IsCallable)(e,n)){var i=(0,v.Call)(e,n,t,[new d.StringValue(e,r)]);if(!(0,y.HasSomeCompatibleType)(i,d.ObjectValue,d.NullValue))throw e.createErrorThrowCompletion(e.intrinsics.TypeError,"Type(result) is neither Object or Null");return i.throwIfNotConcrete()}if(void 0===t.$RegExpMatcher)throw e.createErrorThrowCompletion(e.intrinsics.TypeError,"R does not have a [[RegExpMatcher]] internal slot");return s(e,t,r)}function s(e,t,r){(0,f.default)(void 0!==t.$RegExpMatcher&&void 0!==t.$OriginalSource&&void 0!==t.$OriginalFlags,"R is an initialized RegExp instance"),(0,f.default)("string"==typeof r,"Type(S) is String");var n=r.length,i=m.To.ToLength(e,(0,p.Get)(e,t,"lastIndex")),a=t.$OriginalFlags;(0,f.default)("string"==typeof a);var o=a.indexOf("g")>=0,s=a.indexOf("y")>=0;!1===o&&!1===s&&(i=0);var l=t.$RegExpMatcher;(0,f.default)(void 0!==l);for(var c=a.indexOf("u")>=0,h=!1,v=null;!h;){if(i>n)return m.Properties.Set(e,t,"lastIndex",e.intrinsics.zero,!0),e.intrinsics.null;if(null==(v=l(r,i))){if(s)return m.Properties.Set(e,t,"lastIndex",e.intrinsics.zero,!0),e.intrinsics.null;i=u(e,r,i,c)}else(0,f.default)(v,"r is a State"),h=!0,i=v.captures.index}(0,f.default)(null!=v);var y=v.endIndex;!0!==o&&!0!==s||m.Properties.Set(e,t,"lastIndex",new d.NumberValue(e,y),!0);var b=v.captures.length-1,g=m.Create.ArrayCreate(e,b+1),w=(0,p.Get)(e,g,"length").throwIfNotConcrete();(0,f.default)(w instanceof d.NumberValue),(0,f.default)(w.value===b+1,'The value of A\'s "length" property is n + 1');var E=i;m.Create.CreateDataProperty(e,g,"index",new d.NumberValue(e,E)),m.Create.CreateDataProperty(e,g,"input",new d.StringValue(e,r));var C=r.substr(i,y-i);m.Create.CreateDataProperty(e,g,"0",new d.StringValue(e,C));for(var S=1;S<=b;++S){var A=v.captures[S],T=void 0;void 0===A?T=e.intrinsics.undefined:c?T=e.intrinsics.undefined:((0,f.default)("string"==typeof A),T=new d.StringValue(e,A)),m.Create.CreateDataProperty(e,g,m.To.ToString(e,new d.NumberValue(e,S)),T)}return g}function u(e,t,r,n){if((0,f.default)("string"==typeof t,"Type(S) is String"),(0,f.default)(r>=0&&r<=Math.pow(2,53)-1,"index is an integer such that 0≤index≤253-1"),(0,f.default)("boolean"==typeof n,"Type(unicode) is Boolean"),!1===n)return r+1;if(r+1>=t.length)return r+1;var i=t.charCodeAt(r);if(i<55296||i>56319)return r+1;var a=t.charCodeAt(r+1);return a<56320||a>57343?r+1:r+2}function l(e,t,r){return t.replace("/","/")}Object.defineProperty(t,"__esModule",{value:!0}),t.RegExpCreate=n,t.RegExpAlloc=i,t.RegExpInitialize=a,t.RegExpExec=o,t.RegExpBuiltinExec=s,t.AdvanceStringIndex=u,t.EscapeRegExpPattern=l;var c=r(1),f=function(e){return e&&e.__esModule?e:{default:e}}(c),d=r(0),p=r(10),h=r(9),v=r(13),y=r(16),m=r(2)},function(e,t,r){"use strict";function n(e,t,r){(0,g.default)("$ViewedArrayBuffer"in r&&"$ArrayLength"in r&&"$ByteOffset"in r&&"$TypedArrayName"in r);var n=new d.IntegerIndexedExotic(e);return Object.assign(n,r),n.$Prototype=t,n.setExtensible(!0),n}function i(e,t,r){(0,g.default)("number"==typeof r,"Type(index) is Number"),(0,g.default)(t instanceof d.ObjectValue&&t.$ViewedArrayBuffer&&void 0!==t.$ArrayLength&&void 0!==t.$ByteOffset&&t.$TypedArrayName);var n=t.$ViewedArrayBuffer;if(!0===(0,v.IsDetachedBuffer)(e,n))throw e.createErrorThrowCompletion(e.intrinsics.TypeError,"IsDetachedBuffer(buffer) is true");if(!1===(0,v.IsInteger)(e,r))return e.intrinsics.undefined;if(Object.is(r,-0))return e.intrinsics.undefined;var i=t.$ArrayLength;if((0,g.default)("number"==typeof i),r<0||r>=i)return e.intrinsics.undefined;var a=t.$ByteOffset;(0,g.default)("number"==typeof a);var o=t.$TypedArrayName;(0,g.default)("string"==typeof o);var s=w[o],u=r*s+a,l=E[o];return(0,h.GetValueFromBuffer)(e,n,u,l)}function a(e,t,r,n){(0,g.default)("number"==typeof r,"Type(index) is Number"),(0,g.default)(t instanceof d.ObjectValue&&t.$ViewedArrayBuffer&&void 0!==t.$ArrayLength&&void 0!==t.$ByteOffset&&t.$TypedArrayName);var i=m.To.ToNumber(e,n),a=t.$ViewedArrayBuffer;if((0,g.default)(a),!0===(0,v.IsDetachedBuffer)(e,a))throw e.createErrorThrowCompletion(e.intrinsics.TypeError,"IsDetachedBuffer(buffer) is true");if(!1===(0,v.IsInteger)(e,r))return!1;if(Object.is(r,-0))return!1;var o=t.$ArrayLength;if((0,g.default)("number"==typeof o),r<0||r>=o)return!1;var s=t.$ByteOffset;(0,g.default)("number"==typeof s);var u=t.$TypedArrayName;(0,g.default)("string"==typeof u);var l=w[u],c=r*l+s,f=E[u];return(0,h.SetValueInBuffer)(e,a,c,f,i),!0}function o(e,t){if(!((t=t.throwIfNotConcrete())instanceof d.ObjectValue))throw e.createErrorThrowCompletion(e.intrinsics.TypeError,"Type(O) is not Object");if(!t.$TypedArrayName)throw e.createErrorThrowCompletion(e.intrinsics.TypeError,"Type(O) is not Object");(0,g.default)(t.$ViewedArrayBuffer,"O has a [[ViewedArrayBuffer]] internal slot");var r=t.$ViewedArrayBuffer;if(!0===(0,v.IsDetachedBuffer)(e,r))throw e.createErrorThrowCompletion(e.intrinsics.TypeError,"IsDetachedBuffer(buffer) is true");return r}function s(e,t,r,i,a){var o=(0,p.GetPrototypeFromConstructor)(e,r,i),s=n(e,o,{$ViewedArrayBuffer:void 0,$TypedArrayName:void 0,$ByteLength:void 0,$ByteOffset:void 0,$ArrayLength:void 0});return(0,g.default)(void 0===s.$ViewedArrayBuffer),s.$TypedArrayName=t,void 0===a?(s.$ByteLength=0,s.$ByteOffset=0,s.$ArrayLength=0):u(e,s,a),s}function u(e,t,r){(0,g.default)(e.isNewObject(t)),(0,g.default)(t instanceof d.ObjectValue&&"$ViewedArrayBuffer"in t,"O is an Object that has a [[ViewedArrayBuffer]] internal slot"),(0,g.default)(void 0===t.$ViewedArrayBuffer,"O.[[ViewedArrayBuffer]] is undefined"),(0,g.default)(r>=0,"length ≥ 0");var n=t.$TypedArrayName;(0,g.default)(n);var i=w[n],a=i*r,o=(0,h.AllocateArrayBuffer)(e,e.intrinsics.ArrayBuffer,a);return t.$ViewedArrayBuffer=o,t.$ByteLength=a,t.$ByteOffset=0,t.$ArrayLength=r,t}function l(e,t,r){var n=(0,y.Construct)(e,t,r);if(o(e,n),1===r.length&&r[0].mightBeNumber()){if(r[0].mightNotBeNumber())throw(0,g.default)(r[0]instanceof d.AbstractValue),d.AbstractValue.reportIntrospectionError(r[0]),new f.FatalError;if((0,g.default)("number"==typeof n.$ArrayLength),n.$ArrayLength3&&void 0!==arguments[3]?arguments[3]:"script",i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;try{var l=[];e.react.enabled&&(l.push("jsx"),e.react.flowRequired&&l.push("flow"));var d=(0,f.parse)(t,{filename:r,sourceType:n,startLine:i,plugins:l});return(0,c.default)(d,function(e){return(0,a.default)(e.loc),e.loc.source=r,!1}),d}catch(n){if(n instanceof SyntaxError){var p=["Invalid left-hand side in postfix operation","Invalid left-hand side in prefix operation","Invalid left-hand side in assignment expression"],h=void 0;throw h=p.some(function(e){return n.message.indexOf(e)>=0})?(0,u.Construct)(e,e.intrinsics.ReferenceError,[new s.StringValue(e,n.message)]):(0,u.Construct)(e,e.intrinsics.SyntaxError,[new s.StringValue(e,n.message)]),(0,a.default)(h.$ErrorData),h.$ErrorData.locationData={filename:r,sourceCode:t,loc:n.loc,stackDecorated:!1},new o.ThrowCompletion(h,n.loc)}throw n}};var i=r(1),a=n(i),o=r(3),s=r(0),u=r(21),l=r(51),c=n(l),f=r(86)},function(e,t,r){"use strict";function n(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n=0}}function i(e,t){for(var r=65536,n=0;ne)return!1;if((r+=t[n+1])>=e)return!0}}function a(e){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&E.test(String.fromCharCode(e)):i(e,S)))}function o(e){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&C.test(String.fromCharCode(e)):i(e,S)||i(e,A))))}function s(e){var t={};for(var r in T)t[r]=e&&r in e?e[r]:T[r];return t}function u(e){return 10===e||13===e||8232===e||8233===e}function l(e,t){for(var r=1,n=0;;){B.lastIndex=n;var i=B.exec(e);if(!(i&&i.index>10),56320+(e-65536&1023))}function f(e,t,r,n){return e.type=t,e.end=r,e.loc.end=n,this.processComment(e),e}function d(e){return e[e.length-1]}function p(e){return e&&"Property"===e.type&&"init"===e.kind&&!1===e.method}function h(e){return"JSXIdentifier"===e.type?e.name:"JSXNamespacedName"===e.type?e.namespace.name+":"+e.name.name:"JSXMemberExpression"===e.type?h(e.object)+"."+h(e.property):void 0}function v(e,t){return new K(t,e).parse()}function y(e,t){var r=new K(t,e);return r.options.strictMode&&(r.state.strict=!0),r.getExpression()}Object.defineProperty(t,"__esModule",{value:!0});var m={6:n("enum await"),strict:n("implements interface let package private protected public static yield"),strictBind:n("eval arguments")},b=n("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"),g="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠ-ࢴࢶ-ࢽऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿕ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞮꞰ-ꞷꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭥꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",w="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣔ-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఃా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഁ-ഃാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ංඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ູົຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭ᳲ-᳴᳸᳹᷀-᷵᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱꤀-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",E=new RegExp("["+g+"]"),C=new RegExp("["+g+w+"]");g=w=null;var S=[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],A=[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],T={sourceType:"script",sourceFilename:void 0,startLine:1,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,plugins:[],strictMode:null},O="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},P=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},x=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},V=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},_=!0,N=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};P(this,e),this.label=t,this.keyword=r.keyword,this.beforeExpr=!!r.beforeExpr,this.startsExpr=!!r.startsExpr,this.rightAssociative=!!r.rightAssociative,this.isLoop=!!r.isLoop,this.isAssign=!!r.isAssign,this.prefix=!!r.prefix,this.postfix=!!r.postfix,this.binop=r.binop||null,this.updateContext=null},D=function(e){function t(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return P(this,t),n.keyword=r,V(this,e.call(this,r,n))}return x(t,e),t}(N),j=function(e){function t(r,n){return P(this,t),V(this,e.call(this,r,{beforeExpr:_,binop:n}))}return x(t,e),t}(N),I={num:new N("num",{startsExpr:!0}),regexp:new N("regexp",{startsExpr:!0}),string:new N("string",{startsExpr:!0}),name:new N("name",{startsExpr:!0}),eof:new N("eof"),bracketL:new N("[",{beforeExpr:_,startsExpr:!0}),bracketR:new N("]"),braceL:new N("{",{beforeExpr:_,startsExpr:!0}),braceBarL:new N("{|",{beforeExpr:_,startsExpr:!0}),braceR:new N("}"),braceBarR:new N("|}"),parenL:new N("(",{beforeExpr:_,startsExpr:!0}),parenR:new N(")"),comma:new N(",",{beforeExpr:_}),semi:new N(";",{beforeExpr:_}),colon:new N(":",{beforeExpr:_}),doubleColon:new N("::",{beforeExpr:_}),dot:new N("."),question:new N("?",{beforeExpr:_}),arrow:new N("=>",{beforeExpr:_}),template:new N("template"),ellipsis:new N("...",{beforeExpr:_}),backQuote:new N("`",{startsExpr:!0}),dollarBraceL:new N("${",{beforeExpr:_,startsExpr:!0}),at:new N("@"),eq:new N("=",{beforeExpr:_,isAssign:!0}),assign:new N("_=",{beforeExpr:_,isAssign:!0}),incDec:new N("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new N("prefix",{beforeExpr:_,prefix:!0,startsExpr:!0}),logicalOR:new j("||",1),logicalAND:new j("&&",2),bitwiseOR:new j("|",3),bitwiseXOR:new j("^",4),bitwiseAND:new j("&",5),equality:new j("==/!=",6),relational:new j("",7),bitShift:new j("<>",8),plusMin:new N("+/-",{beforeExpr:_,binop:9,prefix:!0,startsExpr:!0}),modulo:new j("%",10),star:new j("*",10),slash:new j("/",10),exponent:new N("**",{beforeExpr:_,binop:11,rightAssociative:!0})},k={break:new D("break"),case:new D("case",{beforeExpr:_}),catch:new D("catch"),continue:new D("continue"),debugger:new D("debugger"),default:new D("default",{beforeExpr:_}),do:new D("do",{isLoop:!0,beforeExpr:_}),else:new D("else",{beforeExpr:_}),finally:new D("finally"),for:new D("for",{isLoop:!0}),function:new D("function",{startsExpr:!0}),if:new D("if"),return:new D("return",{beforeExpr:_}),switch:new D("switch"),throw:new D("throw",{beforeExpr:_}),try:new D("try"),var:new D("var"),let:new D("let"),const:new D("const"),while:new D("while",{isLoop:!0}),with:new D("with"),new:new D("new",{beforeExpr:_,startsExpr:!0}),this:new D("this",{startsExpr:!0}),super:new D("super",{startsExpr:!0}),class:new D("class"),extends:new D("extends",{beforeExpr:_}),export:new D("export"),import:new D("import",{startsExpr:!0}),yield:new D("yield",{beforeExpr:_,startsExpr:!0}),null:new D("null",{startsExpr:!0}),true:new D("true",{startsExpr:!0}),false:new D("false",{startsExpr:!0}),in:new D("in",{beforeExpr:_,binop:7}),instanceof:new D("instanceof",{beforeExpr:_,binop:7}),typeof:new D("typeof",{beforeExpr:_,prefix:!0,startsExpr:!0}),void:new D("void",{beforeExpr:_,prefix:!0,startsExpr:!0}),delete:new D("delete",{beforeExpr:_,prefix:!0,startsExpr:!0})};Object.keys(k).forEach(function(e){I["_"+e]=k[e]});var F=/\r\n?|\n|\u2028|\u2029/,B=new RegExp(F.source,"g"),M=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/,R=function e(t,r,n,i){P(this,e),this.token=t,this.isExpr=!!r,this.preserveSpace=!!n,this.override=i},$={braceStatement:new R("{",!1),braceExpression:new R("{",!0),templateQuasi:new R("${",!0),parenStatement:new R("(",!1),parenExpression:new R("(",!0),template:new R("`",!0,!0,function(e){return e.readTmplToken()}),functionExpression:new R("function",!0)};I.parenR.updateContext=I.braceR.updateContext=function(){if(1===this.state.context.length)return void(this.state.exprAllowed=!0);var e=this.state.context.pop();e===$.braceStatement&&this.curContext()===$.functionExpression?(this.state.context.pop(),this.state.exprAllowed=!1):e===$.templateQuasi?this.state.exprAllowed=!0:this.state.exprAllowed=!e.isExpr},I.name.updateContext=function(e){this.state.exprAllowed=!1,e!==I._let&&e!==I._const&&e!==I._var||F.test(this.input.slice(this.state.end))&&(this.state.exprAllowed=!0)},I.braceL.updateContext=function(e){this.state.context.push(this.braceIsBlock(e)?$.braceStatement:$.braceExpression),this.state.exprAllowed=!0},I.dollarBraceL.updateContext=function(){this.state.context.push($.templateQuasi),this.state.exprAllowed=!0},I.parenL.updateContext=function(e){var t=e===I._if||e===I._for||e===I._with||e===I._while;this.state.context.push(t?$.parenStatement:$.parenExpression),this.state.exprAllowed=!0},I.incDec.updateContext=function(){},I._function.updateContext=function(){this.curContext()!==$.braceStatement&&this.state.context.push($.functionExpression),this.state.exprAllowed=!1},I.backQuote.updateContext=function(){this.curContext()===$.template?this.state.context.pop():this.state.context.push($.template),this.state.exprAllowed=!1};var L=function e(t,r){P(this,e),this.line=t,this.column=r},G=function e(t,r){P(this,e),this.start=t,this.end=r},z=function(){function e(){P(this,e)}return e.prototype.init=function(e,t){return this.strict=!1!==e.strictMode&&"module"===e.sourceType,this.input=t,this.potentialArrowAt=-1,this.inMethod=this.inFunction=this.inGenerator=this.inAsync=this.inPropertyName=this.inType=this.inClassProperty=this.noAnonFunctionType=!1,this.labels=[],this.decorators=[],this.tokens=[],this.comments=[],this.trailingComments=[],this.leadingComments=[],this.commentStack=[],this.pos=this.lineStart=0,this.curLine=e.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=[$.braceStatement],this.exprAllowed=!0,this.containsEsc=this.containsOctal=!1,this.octalPosition=null,this.invalidTemplateEscapePosition=null,this.exportedIdentifiers=[],this},e.prototype.curPosition=function(){return new L(this.curLine,this.pos-this.lineStart)},e.prototype.clone=function(t){var r=new e;for(var n in this){var i=this[n];t&&"context"!==n||!Array.isArray(i)||(i=i.slice()),r[n]=i}return r},e}(),U=function e(t){P(this,e),this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,this.loc=new G(t.startLoc,t.endLoc)},W=function(){function e(t,r){P(this,e),this.state=new z,this.state.init(t,r)}return e.prototype.next=function(){this.isLookahead||this.state.tokens.push(new U(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()},e.prototype.eat=function(e){return!!this.match(e)&&(this.next(),!0)},e.prototype.match=function(e){return this.state.type===e},e.prototype.isKeyword=function(e){return b(e)},e.prototype.lookahead=function(){var e=this.state;this.state=e.clone(!0),this.isLookahead=!0,this.next(),this.isLookahead=!1;var t=this.state.clone(!0);return this.state=e,t},e.prototype.setStrict=function(e){if(this.state.strict=e,this.match(I.num)||this.match(I.string)){for(this.state.pos=this.state.start;this.state.pos=this.input.length?this.finishToken(I.eof):e.override?e.override(this):this.readToken(this.fullCharCodeAtPos())},e.prototype.readToken=function(e){return a(e)||92===e?this.readWord():this.getTokenFromCode(e)},e.prototype.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.state.pos);return e<=55295||e>=57344?e:(e<<10)+this.input.charCodeAt(this.state.pos+1)-56613888},e.prototype.pushComment=function(e,t,r,n,i,a){var o={type:e?"CommentBlock":"CommentLine",value:t,start:r,end:n,loc:new G(i,a)};this.isLookahead||(this.state.tokens.push(o),this.state.comments.push(o),this.addComment(o))},e.prototype.skipBlockComment=function(){var e=this.state.curPosition(),t=this.state.pos,r=this.input.indexOf("*/",this.state.pos+=2);-1===r&&this.raise(this.state.pos-2,"Unterminated comment"),this.state.pos=r+2,B.lastIndex=t;for(var n=void 0;(n=B.exec(this.input))&&n.index8&&e<14||e>=5760&&M.test(String.fromCharCode(e))))break e;++this.state.pos}}},e.prototype.finishToken=function(e,t){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();var r=this.state.type;this.state.type=e,this.state.value=t,this.updateContext(r)},e.prototype.readToken_dot=function(){var e=this.input.charCodeAt(this.state.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.state.pos+2);return 46===e&&46===t?(this.state.pos+=3,this.finishToken(I.ellipsis)):(++this.state.pos,this.finishToken(I.dot))},e.prototype.readToken_slash=function(){return this.state.exprAllowed?(++this.state.pos,this.readRegexp()):61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(I.assign,2):this.finishOp(I.slash,1)},e.prototype.readToken_mult_modulo=function(e){var t=42===e?I.star:I.modulo,r=1,n=this.input.charCodeAt(this.state.pos+1);return 42===n&&(r++,n=this.input.charCodeAt(this.state.pos+2),t=I.exponent),61===n&&(r++,t=I.assign),this.finishOp(t,r)},e.prototype.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.state.pos+1);return t===e?this.finishOp(124===e?I.logicalOR:I.logicalAND,2):61===t?this.finishOp(I.assign,2):124===e&&125===t&&this.hasPlugin("flow")?this.finishOp(I.braceBarR,2):this.finishOp(124===e?I.bitwiseOR:I.bitwiseAND,1)},e.prototype.readToken_caret=function(){return 61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(I.assign,2):this.finishOp(I.bitwiseXOR,1)},e.prototype.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.state.pos+1);return t===e?45===t&&62===this.input.charCodeAt(this.state.pos+2)&&F.test(this.input.slice(this.state.lastTokEnd,this.state.pos))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(I.incDec,2):61===t?this.finishOp(I.assign,2):this.finishOp(I.plusMin,1)},e.prototype.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.state.pos+1),r=1;return t===e?(r=62===e&&62===this.input.charCodeAt(this.state.pos+2)?3:2,61===this.input.charCodeAt(this.state.pos+r)?this.finishOp(I.assign,r+1):this.finishOp(I.bitShift,r)):33===t&&60===e&&45===this.input.charCodeAt(this.state.pos+2)&&45===this.input.charCodeAt(this.state.pos+3)?(this.inModule&&this.unexpected(),this.skipLineComment(4),this.skipSpace(),this.nextToken()):(61===t&&(r=2),this.finishOp(I.relational,r))},e.prototype.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.state.pos+1);return 61===t?this.finishOp(I.equality,61===this.input.charCodeAt(this.state.pos+2)?3:2):61===e&&62===t?(this.state.pos+=2,this.finishToken(I.arrow)):this.finishOp(61===e?I.eq:I.prefix,1)},e.prototype.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.state.pos,this.finishToken(I.parenL);case 41:return++this.state.pos,this.finishToken(I.parenR);case 59:return++this.state.pos,this.finishToken(I.semi);case 44:return++this.state.pos,this.finishToken(I.comma);case 91:return++this.state.pos,this.finishToken(I.bracketL);case 93:return++this.state.pos,this.finishToken(I.bracketR);case 123:return 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,this.finishToken(I.braceR);case 58:return 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++this.state.pos,this.finishToken(I.question);case 64:return++this.state.pos,this.finishToken(I.at);case 96:return++this.state.pos,this.finishToken(I.backQuote);case 48:var t=this.input.charCodeAt(this.state.pos+1);if(120===t||88===t)return this.readRadixNumber(16);if(111===t||79===t)return this.readRadixNumber(8);if(98===t||66===t)return this.readRadixNumber(2);case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 126:return this.finishOp(I.prefix,1)}this.raise(this.state.pos,"Unexpected character '"+c(e)+"'")},e.prototype.finishOp=function(e,t){var r=this.input.slice(this.state.pos,this.state.pos+t);return this.state.pos+=t,this.finishToken(e,r)},e.prototype.readRegexp=function(){for(var e=this.state.pos,t=void 0,r=void 0;;){this.state.pos>=this.input.length&&this.raise(e,"Unterminated regular expression");var n=this.input.charAt(this.state.pos);if(F.test(n)&&this.raise(e,"Unterminated regular expression"),t)t=!1;else{if("["===n)r=!0;else if("]"===n&&r)r=!1;else if("/"===n&&!r)break;t="\\"===n}++this.state.pos}var i=this.input.slice(e,this.state.pos);++this.state.pos;var a=this.readWord1();if(a){/^[gmsiyu]*$/.test(a)||this.raise(e,"Invalid regular expression flag")}return this.finishToken(I.regexp,{pattern:i,flags:a})},e.prototype.readInt=function(e,t){for(var r=this.state.pos,n=0,i=0,a=null==t?1/0:t;i=97?o-97+10:o>=65?o-65+10:o>=48&&o<=57?o-48:1/0)>=e)break;++this.state.pos,n=n*e+s}return this.state.pos===r||null!=t&&this.state.pos-r!==t?null:n},e.prototype.readRadixNumber=function(e){this.state.pos+=2;var t=this.readInt(e);return null==t&&this.raise(this.state.start+2,"Expected number in radix "+e),a(this.fullCharCodeAtPos())&&this.raise(this.state.pos,"Identifier directly after number"),this.finishToken(I.num,t)},e.prototype.readNumber=function(e){var t=this.state.pos,r=48===this.input.charCodeAt(t),n=!1;e||null!==this.readInt(10)||this.raise(t,"Invalid number"),r&&this.state.pos==t+1&&(r=!1);var i=this.input.charCodeAt(this.state.pos);46!==i||r||(++this.state.pos,this.readInt(10),n=!0,i=this.input.charCodeAt(this.state.pos)),69!==i&&101!==i||r||(i=this.input.charCodeAt(++this.state.pos),43!==i&&45!==i||++this.state.pos,null===this.readInt(10)&&this.raise(t,"Invalid number"),n=!0),a(this.fullCharCodeAtPos())&&this.raise(this.state.pos,"Identifier directly after number");var o=this.input.slice(t,this.state.pos),s=void 0;return n?s=parseFloat(o):r&&1!==o.length?this.state.strict?this.raise(t,"Invalid number"):s=/[89]/.test(o)?parseInt(o,10):parseInt(o,8):s=parseInt(o,10),this.finishToken(I.num,s)},e.prototype.readCodePoint=function(e){var t=this.input.charCodeAt(this.state.pos),r=void 0;if(123===t){var n=++this.state.pos;if(r=this.readHexChar(this.input.indexOf("}",this.state.pos)-this.state.pos,e),++this.state.pos,null===r)--this.state.invalidTemplateEscapePosition;else if(r>1114111){if(!e)return this.state.invalidTemplateEscapePosition=n-2,null;this.raise(n,"Code point out of bounds")}}else r=this.readHexChar(4,e);return r},e.prototype.readString=function(e){for(var t="",r=++this.state.pos;;){this.state.pos>=this.input.length&&this.raise(this.state.start,"Unterminated string constant");var n=this.input.charCodeAt(this.state.pos);if(n===e)break;92===n?(t+=this.input.slice(r,this.state.pos),t+=this.readEscapedChar(!1),r=this.state.pos):(u(n)&&this.raise(this.state.start,"Unterminated string constant"),++this.state.pos)}return t+=this.input.slice(r,this.state.pos++),this.finishToken(I.string,t)},e.prototype.readTmplToken=function(){for(var e="",t=this.state.pos,r=!1;;){this.state.pos>=this.input.length&&this.raise(this.state.start,"Unterminated template");var n=this.input.charCodeAt(this.state.pos);if(96===n||36===n&&123===this.input.charCodeAt(this.state.pos+1))return this.state.pos===this.state.start&&this.match(I.template)?36===n?(this.state.pos+=2,this.finishToken(I.dollarBraceL)):(++this.state.pos,this.finishToken(I.backQuote)):(e+=this.input.slice(t,this.state.pos),this.finishToken(I.template,r?null:e));if(92===n){e+=this.input.slice(t,this.state.pos);var i=this.readEscapedChar(!0);null===i?r=!0:e+=i,t=this.state.pos}else if(u(n)){switch(e+=this.input.slice(t,this.state.pos),++this.state.pos,n){case 13:10===this.input.charCodeAt(this.state.pos)&&++this.state.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(n)}++this.state.curLine,this.state.lineStart=this.state.pos,t=this.state.pos}else++this.state.pos}},e.prototype.readEscapedChar=function(e){var t=!e,r=this.input.charCodeAt(++this.state.pos);switch(++this.state.pos,r){case 110:return"\n";case 114:return"\r";case 120:var n=this.readHexChar(2,t);return null===n?null:String.fromCharCode(n);case 117:var i=this.readCodePoint(t);return null===i?null:c(i);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(r>=48&&r<=55){var a=this.state.pos-1,o=this.input.substr(this.state.pos-1,3).match(/^[0-7]+/)[0],s=parseInt(o,8);if(s>255&&(o=o.slice(0,-1),s=parseInt(o,8)),s>0){if(e)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+=o.length-1,String.fromCharCode(s)}return String.fromCharCode(r)}},e.prototype.readHexChar=function(e,t){var r=this.state.pos,n=this.readInt(16,e);return null===n&&(t?this.raise(r,"Bad character escape sequence"):(this.state.pos=r-1,this.state.invalidTemplateEscapePosition=r-1)),n},e.prototype.readWord1=function(){this.state.containsEsc=!1;for(var e="",t=!0,r=this.state.pos;this.state.pos-1)||!!this.plugins[e]},t.prototype.extend=function(e,t){this[e]=t(this[e])},t.prototype.loadAllPlugins=function(){var e=this,t=Object.keys(q).filter(function(e){return"flow"!==e&&"estree"!==e});t.push("flow"),t.forEach(function(t){var r=q[t];r&&r(e)})},t.prototype.loadPlugins=function(e){if(e.indexOf("*")>=0)return this.loadAllPlugins(),{"*":!0};var t={};e.indexOf("flow")>=0&&(e=e.filter(function(e){return"flow"!==e}),e.push("flow")),e.indexOf("estree")>=0&&(e=e.filter(function(e){return"estree"!==e}),e.unshift("estree"));for(var r=e,n=Array.isArray(r),i=0,r=n?r:r[Symbol.iterator]();;){var a;if(n){if(i>=r.length)break;a=r[i++]}else{if(i=r.next(),i.done)break;a=i.value}var o=a;if(!t[o]){t[o]=!0;var s=q[o];s&&s(this)}}return t},t.prototype.parse=function(){var e=this.startNode(),t=this.startNode();return this.nextToken(),this.parseTopLevel(e,t)},t}(W),J=K.prototype;J.addExtra=function(e,t,r){if(e){(e.extra=e.extra||{})[t]=r}},J.isRelational=function(e){return this.match(I.relational)&&this.state.value===e},J.expectRelational=function(e){this.isRelational(e)?this.next():this.unexpected(null,I.relational)},J.isContextual=function(e){return this.match(I.name)&&this.state.value===e},J.eatContextual=function(e){return this.state.value===e&&this.eat(I.name)},J.expectContextual=function(e,t){this.eatContextual(e)||this.unexpected(null,t)},J.canInsertSemicolon=function(){return this.match(I.eof)||this.match(I.braceR)||F.test(this.input.slice(this.state.lastTokEnd,this.state.start))},J.isLineTerminator=function(){return this.eat(I.semi)||this.canInsertSemicolon()},J.semicolon=function(){this.isLineTerminator()||this.unexpected(null,I.semi)},J.expect=function(e,t){return this.eat(e)||this.unexpected(t,e)},J.unexpected=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Unexpected token";t&&"object"===(void 0===t?"undefined":O(t))&&t.label&&(t="Unexpected token, expected "+t.label),this.raise(null!=e?e:this.state.start,t)};var Y=K.prototype;Y.parseTopLevel=function(e,t){return t.sourceType=this.options.sourceType,this.parseBlockBody(t,!0,!0,I.eof),e.program=this.finishNode(t,"Program"),e.comments=this.state.comments,e.tokens=this.state.tokens,this.finishNode(e,"File")};var X={kind:"loop"},Q={kind:"switch"};Y.stmtToDirective=function(e){var t=e.expression,r=this.startNodeAt(t.start,t.loc.start),n=this.startNodeAt(e.start,e.loc.start),i=this.input.slice(t.start,t.end),a=r.value=i.slice(1,-1);return this.addExtra(r,"raw",i),this.addExtra(r,"rawValue",a),n.value=this.finishNodeAt(r,"DirectiveLiteral",t.end,t.loc.end),this.finishNodeAt(n,"Directive",e.end,e.loc.end)},Y.parseStatement=function(e,t){this.match(I.at)&&this.parseDecorators(!0);var r=this.state.type,n=this.startNode();switch(r){case I._break:case I._continue:return this.parseBreakContinueStatement(n,r.keyword);case I._debugger:return this.parseDebuggerStatement(n);case I._do:return this.parseDoStatement(n);case I._for:return this.parseForStatement(n);case I._function:return e||this.unexpected(),this.parseFunctionStatement(n);case I._class:return e||this.unexpected(),this.parseClass(n,!0);case I._if:return this.parseIfStatement(n);case I._return:return this.parseReturnStatement(n);case I._switch:return this.parseSwitchStatement(n);case I._throw:return this.parseThrowStatement(n);case I._try:return this.parseTryStatement(n);case I._let:case I._const:e||this.unexpected();case I._var:return this.parseVarStatement(n,r);case I._while:return this.parseWhileStatement(n);case I._with:return this.parseWithStatement(n);case I.braceL:return this.parseBlock();case I.semi:return this.parseEmptyStatement(n);case I._export:case I._import:if(this.hasPlugin("dynamicImport")&&this.lookahead().type===I.parenL)break;return this.options.allowImportExportEverywhere||(t||this.raise(this.state.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.state.start,"'import' and 'export' may appear only with 'sourceType: \"module\"'")),r===I._import?this.parseImport(n):this.parseExport(n);case I.name:if("async"===this.state.value){var i=this.state.clone();if(this.next(),this.match(I._function)&&!this.canInsertSemicolon())return this.expect(I._function),this.parseFunction(n,!0,!1,!0);this.state=i}}var a=this.state.value,o=this.parseExpression();return r===I.name&&"Identifier"===o.type&&this.eat(I.colon)?this.parseLabeledStatement(n,a,o):this.parseExpressionStatement(n,o)},Y.takeDecorators=function(e){this.state.decorators.length&&(e.decorators=this.state.decorators,this.state.decorators=[])},Y.parseDecorators=function(e){for(;this.match(I.at);){var t=this.parseDecorator();this.state.decorators.push(t)}e&&this.match(I._export)||this.match(I._class)||this.raise(this.state.start,"Leading decorators must be attached to a class declaration")},Y.parseDecorator=function(){this.hasPlugin("decorators")||this.unexpected();var e=this.startNode();return this.next(),e.expression=this.parseMaybeAssign(),this.finishNode(e,"Decorator")},Y.parseBreakContinueStatement=function(e,t){var r="break"===t;this.next(),this.isLineTerminator()?e.label=null:this.match(I.name)?(e.label=this.parseIdentifier(),this.semicolon()):this.unexpected();var n=void 0;for(n=0;n=n.length)break;o=n[a++]}else{if(a=n.next(),a.done)break;o=a.value}o.name===t&&this.raise(r.start,"Label '"+t+"' is already declared")}for(var s=this.state.type.isLoop?"loop":this.match(I._switch)?"switch":null,u=this.state.labels.length-1;u>=0;u--){var l=this.state.labels[u];if(l.statementStart!==e.start)break;l.statementStart=this.state.start,l.kind=s}return this.state.labels.push({name:t,kind:s,statementStart:this.state.start}),e.body=this.parseStatement(!0),this.state.labels.pop(),e.label=r,this.finishNode(e,"LabeledStatement")},Y.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},Y.parseBlock=function(e){var t=this.startNode();return this.expect(I.braceL),this.parseBlockBody(t,e,!1,I.braceR),this.finishNode(t,"BlockStatement")},Y.isValidDirective=function(e){return"ExpressionStatement"===e.type&&"StringLiteral"===e.expression.type&&!e.expression.extra.parenthesized},Y.parseBlockBody=function(e,t,r,n){e.body=[],e.directives=[];for(var i=!1,a=void 0,o=void 0;!this.eat(n);){i||!this.state.containsOctal||o||(o=this.state.octalPosition);var s=this.parseStatement(!0,r);if(t&&!i&&this.isValidDirective(s)){var u=this.stmtToDirective(s);e.directives.push(u),void 0===a&&"use strict"===u.value.value&&(a=this.state.strict,this.setStrict(!0),o&&this.raise(o,"Octal literal in strict mode"))}else i=!0,e.body.push(s)}!1===a&&this.setStrict(!1)},Y.parseFor=function(e,t){return e.init=t,this.expect(I.semi),e.test=this.match(I.semi)?null:this.parseExpression(),this.expect(I.semi),e.update=this.match(I.parenR)?null:this.parseExpression(),this.expect(I.parenR),e.body=this.parseStatement(!1),this.state.labels.pop(),this.finishNode(e,"ForStatement")},Y.parseForIn=function(e,t,r){var n=void 0;return r?(this.eatContextual("of"),n="ForAwaitStatement"):(n=this.match(I._in)?"ForInStatement":"ForOfStatement",this.next()),e.left=t,e.right=this.parseExpression(),this.expect(I.parenR),e.body=this.parseStatement(!1),this.state.labels.pop(),this.finishNode(e,n)},Y.parseVar=function(e,t,r){for(e.declarations=[],e.kind=r.keyword;;){var n=this.startNode();if(this.parseVarHead(n),this.eat(I.eq)?n.init=this.parseMaybeAssign(t):r!==I._const||this.match(I._in)||this.isContextual("of")?"Identifier"===n.id.type||t&&(this.match(I._in)||this.isContextual("of"))?n.init=null:this.raise(this.state.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),e.declarations.push(this.finishNode(n,"VariableDeclarator")),!this.eat(I.comma))break}return e},Y.parseVarHead=function(e){e.id=this.parseBindingAtom(),this.checkLVal(e.id,!0,void 0,"variable declaration")},Y.parseFunction=function(e,t,r,n,i){var a=this.state.inMethod;return this.state.inMethod=!1,this.initFunction(e,n),this.match(I.star)&&(e.async&&!this.hasPlugin("asyncGenerators")?this.unexpected():(e.generator=!0,this.next())),!t||i||this.match(I.name)||this.match(I._yield)||this.unexpected(),(this.match(I.name)||this.match(I._yield))&&(e.id=this.parseBindingIdentifier()),this.parseFunctionParams(e),this.parseFunctionBody(e,r),this.state.inMethod=a,this.finishNode(e,t?"FunctionDeclaration":"FunctionExpression")},Y.parseFunctionParams=function(e){this.expect(I.parenL),e.params=this.parseBindingList(I.parenR)},Y.parseClass=function(e,t,r){return this.next(),this.takeDecorators(e),this.parseClassId(e,t,r),this.parseClassSuper(e),this.parseClassBody(e),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},Y.isClassProperty=function(){return this.match(I.eq)||this.match(I.semi)||this.match(I.braceR)},Y.isClassMethod=function(){return this.match(I.parenL)},Y.isNonstaticConstructor=function(e){return!(e.computed||e.static||"constructor"!==e.key.name&&"constructor"!==e.key.value)},Y.parseClassBody=function(e){var t=this.state.strict;this.state.strict=!0;var r=!1,n=!1,i=[],a=this.startNode();for(a.body=[],this.expect(I.braceL);!this.eat(I.braceR);)if(this.eat(I.semi))i.length>0&&this.raise(this.state.lastTokEnd,"Decorators must not be followed by a semicolon");else if(this.match(I.at))i.push(this.parseDecorator());else{var o=this.startNode();if(i.length&&(o.decorators=i,i=[]),o.static=!1,this.match(I.name)&&"static"===this.state.value){var s=this.parseIdentifier(!0);if(this.isClassMethod()){o.kind="method",o.computed=!1,o.key=s,this.parseClassMethod(a,o,!1,!1);continue}if(this.isClassProperty()){o.computed=!1,o.key=s,a.body.push(this.parseClassProperty(o));continue}o.static=!0}if(this.eat(I.star))o.kind="method",this.parsePropertyName(o),this.isNonstaticConstructor(o)&&this.raise(o.key.start,"Constructor can't be a generator"),o.computed||!o.static||"prototype"!==o.key.name&&"prototype"!==o.key.value||this.raise(o.key.start,"Classes may not have static property named prototype"),this.parseClassMethod(a,o,!0,!1);else{var u=this.match(I.name),l=this.parsePropertyName(o);if(o.computed||!o.static||"prototype"!==o.key.name&&"prototype"!==o.key.value||this.raise(o.key.start,"Classes may not have static property named prototype"),this.isClassMethod())this.isNonstaticConstructor(o)?(n?this.raise(l.start,"Duplicate constructor in the same class"):o.decorators&&this.raise(o.start,"You can't attach decorators to a class constructor"),n=!0,o.kind="constructor"):o.kind="method",this.parseClassMethod(a,o,!1,!1);else if(this.isClassProperty())this.isNonstaticConstructor(o)&&this.raise(o.key.start,"Classes may not have a non-static field named 'constructor'"),a.body.push(this.parseClassProperty(o));else if(u&&"async"===l.name&&!this.isLineTerminator()){var c=this.hasPlugin("asyncGenerators")&&this.eat(I.star);o.kind="method",this.parsePropertyName(o),this.isNonstaticConstructor(o)&&this.raise(o.key.start,"Constructor can't be an async function"),this.parseClassMethod(a,o,c,!0)}else!u||"get"!==l.name&&"set"!==l.name||this.isLineTerminator()&&this.match(I.star)?this.hasPlugin("classConstructorCall")&&u&&"call"===l.name&&this.match(I.name)&&"constructor"===this.state.value?(r?this.raise(o.start,"Duplicate constructor call in the same class"):o.decorators&&this.raise(o.start,"You can't attach decorators to a class constructor"),r=!0,o.kind="constructorCall",this.parsePropertyName(o),this.parseClassMethod(a,o,!1,!1)):this.isLineTerminator()?(this.isNonstaticConstructor(o)&&this.raise(o.key.start,"Classes may not have a non-static field named 'constructor'"),a.body.push(this.parseClassProperty(o))):this.unexpected():(o.kind=l.name,this.parsePropertyName(o),this.isNonstaticConstructor(o)&&this.raise(o.key.start,"Constructor can't have get/set modifier"),this.parseClassMethod(a,o,!1,!1),this.checkGetterSetterParamCount(o))}}i.length&&this.raise(this.state.start,"You have trailing decorators with no method"),e.body=this.finishNode(a,"ClassBody"),this.state.strict=t},Y.parseClassProperty=function(e){return this.state.inClassProperty=!0,this.match(I.eq)?(this.hasPlugin("classProperties")||this.unexpected(),this.next(),e.value=this.parseMaybeAssign()):e.value=null,this.semicolon(),this.state.inClassProperty=!1,this.finishNode(e,"ClassProperty")},Y.parseClassMethod=function(e,t,r,n){this.parseMethod(t,r,n),e.body.push(this.finishNode(t,"ClassMethod"))},Y.parseClassId=function(e,t,r){this.match(I.name)?e.id=this.parseIdentifier():r||!t?e.id=null:this.unexpected()},Y.parseClassSuper=function(e){e.superClass=this.eat(I._extends)?this.parseExprSubscripts():null},Y.parseExport=function(e){if(this.next(),this.match(I.star)){var t=this.startNode();if(this.next(),!this.hasPlugin("exportExtensions")||!this.eatContextual("as"))return this.parseExportFrom(e,!0),this.finishNode(e,"ExportAllDeclaration");t.exported=this.parseIdentifier(),e.specifiers=[this.finishNode(t,"ExportNamespaceSpecifier")],this.parseExportSpecifiersMaybe(e),this.parseExportFrom(e,!0)}else if(this.hasPlugin("exportExtensions")&&this.isExportDefaultSpecifier()){var r=this.startNode();if(r.exported=this.parseIdentifier(!0),e.specifiers=[this.finishNode(r,"ExportDefaultSpecifier")],this.match(I.comma)&&this.lookahead().type===I.star){this.expect(I.comma);var n=this.startNode();this.expect(I.star),this.expectContextual("as"),n.exported=this.parseIdentifier(),e.specifiers.push(this.finishNode(n,"ExportNamespaceSpecifier"))}else this.parseExportSpecifiersMaybe(e);this.parseExportFrom(e,!0)}else{if(this.eat(I._default)){var i=this.startNode(),a=!1;return this.eat(I._function)?i=this.parseFunction(i,!0,!1,!1,!0):this.match(I._class)?i=this.parseClass(i,!0,!0):(a=!0,i=this.parseMaybeAssign()),e.declaration=i,a&&this.semicolon(),this.checkExport(e,!0,!0),this.finishNode(e,"ExportDefaultDeclaration")}this.shouldParseExportDeclaration()?(e.specifiers=[],e.source=null,e.declaration=this.parseExportDeclaration(e)):(e.declaration=null,e.specifiers=this.parseExportSpecifiers(),this.parseExportFrom(e))}return this.checkExport(e,!0),this.finishNode(e,"ExportNamedDeclaration")},Y.parseExportDeclaration=function(){return this.parseStatement(!0)},Y.isExportDefaultSpecifier=function(){if(this.match(I.name))return"async"!==this.state.value;if(!this.match(I._default))return!1;var e=this.lookahead();return e.type===I.comma||e.type===I.name&&"from"===e.value},Y.parseExportSpecifiersMaybe=function(e){this.eat(I.comma)&&(e.specifiers=e.specifiers.concat(this.parseExportSpecifiers()))},Y.parseExportFrom=function(e,t){this.eatContextual("from")?(e.source=this.match(I.string)?this.parseExprAtom():this.unexpected(),this.checkExport(e)):t?this.unexpected():e.source=null,this.semicolon()},Y.shouldParseExportDeclaration=function(){return"var"===this.state.type.keyword||"const"===this.state.type.keyword||"let"===this.state.type.keyword||"function"===this.state.type.keyword||"class"===this.state.type.keyword||this.isContextual("async")},Y.checkExport=function(e,t,r){if(t)if(r)this.checkDuplicateExports(e,"default");else if(e.specifiers&&e.specifiers.length)for(var n=e.specifiers,i=Array.isArray(n),a=0,n=i?n:n[Symbol.iterator]();;){var o;if(i){if(a>=n.length)break;o=n[a++]}else{if(a=n.next(),a.done)break;o=a.value}var s=o;this.checkDuplicateExports(s,s.exported.name)}else if(e.declaration)if("FunctionDeclaration"===e.declaration.type||"ClassDeclaration"===e.declaration.type)this.checkDuplicateExports(e,e.declaration.id.name);else if("VariableDeclaration"===e.declaration.type)for(var u=e.declaration.declarations,l=Array.isArray(u),c=0,u=l?u:u[Symbol.iterator]();;){var f;if(l){if(c>=u.length)break;f=u[c++]}else{if(c=u.next(),c.done)break;f=c.value}var d=f;this.checkDeclaration(d.id)}if(this.state.decorators.length){var p=e.declaration&&("ClassDeclaration"===e.declaration.type||"ClassExpression"===e.declaration.type);e.declaration&&p||this.raise(e.start,"You can only use decorators on an export when exporting a class"),this.takeDecorators(e.declaration)}},Y.checkDeclaration=function(e){if("ObjectPattern"===e.type)for(var t=e.properties,r=Array.isArray(t),n=0,t=r?t:t[Symbol.iterator]();;){var i;if(r){if(n>=t.length)break;i=t[n++]}else{if(n=t.next(),n.done)break;i=n.value}var a=i;this.checkDeclaration(a)}else if("ArrayPattern"===e.type)for(var o=e.elements,s=Array.isArray(o),u=0,o=s?o:o[Symbol.iterator]();;){var l;if(s){if(u>=o.length)break;l=o[u++]}else{if(u=o.next(),u.done)break;l=u.value}var c=l;c&&this.checkDeclaration(c)}else"ObjectProperty"===e.type?this.checkDeclaration(e.value):"RestElement"===e.type||"RestProperty"===e.type?this.checkDeclaration(e.argument):"Identifier"===e.type&&this.checkDuplicateExports(e,e.name)},Y.checkDuplicateExports=function(e,t){this.state.exportedIdentifiers.indexOf(t)>-1&&this.raiseDuplicateExportError(e,t),this.state.exportedIdentifiers.push(t)},Y.raiseDuplicateExportError=function(e,t){this.raise(e.start,"default"===t?"Only one default export allowed per module.":"`"+t+"` has already been exported. Exported identifiers must be unique.")},Y.parseExportSpecifiers=function(){var e=[],t=!0,r=void 0;for(this.expect(I.braceL);!this.eat(I.braceR);){if(t)t=!1;else if(this.expect(I.comma),this.eat(I.braceR))break;var n=this.match(I._default);n&&!r&&(r=!0);var i=this.startNode();i.local=this.parseIdentifier(n),i.exported=this.eatContextual("as")?this.parseIdentifier(!0):i.local.__clone(),e.push(this.finishNode(i,"ExportSpecifier"))}return r&&!this.isContextual("from")&&this.unexpected(),e},Y.parseImport=function(e){return this.eat(I._import),this.match(I.string)?(e.specifiers=[],e.source=this.parseExprAtom()):(e.specifiers=[],this.parseImportSpecifiers(e),this.expectContextual("from"),e.source=this.match(I.string)?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},Y.parseImportSpecifiers=function(e){var t=!0;if(this.match(I.name)){var r=this.state.start,n=this.state.startLoc;if(e.specifiers.push(this.parseImportSpecifierDefault(this.parseIdentifier(),r,n)),!this.eat(I.comma))return}if(this.match(I.star)){var i=this.startNode();return this.next(),this.expectContextual("as"),i.local=this.parseIdentifier(),this.checkLVal(i.local,!0,void 0,"import namespace specifier"),void e.specifiers.push(this.finishNode(i,"ImportNamespaceSpecifier"))}for(this.expect(I.braceL);!this.eat(I.braceR);){if(t)t=!1;else if(this.eat(I.colon)&&this.unexpected(null,"ES2015 named imports do not destructure. Use another statement for destructuring after the import."),this.expect(I.comma),this.eat(I.braceR))break;this.parseImportSpecifier(e)}},Y.parseImportSpecifier=function(e){var t=this.startNode();t.imported=this.parseIdentifier(!0),this.eatContextual("as")?t.local=this.parseIdentifier():(this.checkReservedWord(t.imported.name,t.start,!0,!0),t.local=t.imported.__clone()),this.checkLVal(t.local,!0,void 0,"import specifier"),e.specifiers.push(this.finishNode(t,"ImportSpecifier"))},Y.parseImportSpecifierDefault=function(e,t,r){var n=this.startNodeAt(t,r);return n.local=e,this.checkLVal(n.local,!0,void 0,"default import specifier"),this.finishNode(n,"ImportDefaultSpecifier")};var ee=K.prototype;ee.toAssignable=function(e,t,r){if(e)switch(e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":break;case"ObjectExpression":e.type="ObjectPattern";for(var n=e.properties,i=Array.isArray(n),a=0,n=i?n:n[Symbol.iterator]();;){var o;if(i){if(a>=n.length)break;o=n[a++]}else{if(a=n.next(),a.done)break;o=a.value}var s=o;"ObjectMethod"===s.type?"get"===s.kind||"set"===s.kind?this.raise(s.key.start,"Object pattern can't contain getter or setter"):this.raise(s.key.start,"Object pattern can't contain methods"):this.toAssignable(s,t,"object destructuring pattern")}break;case"ObjectProperty":this.toAssignable(e.value,t,r);break;case"SpreadProperty":e.type="RestProperty";var u=e.argument;this.toAssignable(u,t,r);break;case"ArrayExpression":e.type="ArrayPattern",this.toAssignableList(e.elements,t,r);break;case"AssignmentExpression":"="===e.operator?(e.type="AssignmentPattern",delete e.operator):this.raise(e.left.end,"Only '=' operator can be used for specifying default value.");break;case"MemberExpression":if(!t)break;default:var l="Invalid left-hand side"+(r?" in "+r:"expression");this.raise(e.start,l)}return e},ee.toAssignableList=function(e,t,r){var n=e.length;if(n){var i=e[n-1];if(i&&"RestElement"===i.type)--n;else if(i&&"SpreadElement"===i.type){i.type="RestElement";var a=i.argument;this.toAssignable(a,t,r),"Identifier"!==a.type&&"MemberExpression"!==a.type&&"ArrayPattern"!==a.type&&this.unexpected(a.start),--n}}for(var o=0;o=a.length)break;u=a[s++]}else{if(s=a.next(),s.done)break;u=s.value}var l=u;"ObjectProperty"===l.type&&(l=l.value),this.checkLVal(l,t,r,"object destructuring pattern")}break;case"ArrayPattern":for(var c=e.elements,f=Array.isArray(c),d=0,c=f?c:c[Symbol.iterator]();;){var p;if(f){if(d>=c.length)break;p=c[d++]}else{if(d=c.next(),d.done)break;p=d.value}var h=p;h&&this.checkLVal(h,t,r,"array destructuring pattern")}break;case"AssignmentPattern":this.checkLVal(e.left,t,r,"assignment pattern");break;case"RestProperty":this.checkLVal(e.argument,t,r,"rest property");break;case"RestElement":this.checkLVal(e.argument,t,r,"rest element");break;default:var v=(t?"Binding invalid":"Invalid")+" left-hand side"+(n?" in "+n:"expression");this.raise(e.start,v)}};var te=K.prototype;te.checkPropClash=function(e,t){if(!e.computed&&!e.kind){var r=e.key;"__proto__"===("Identifier"===r.type?r.name:String(r.value))&&(t.proto&&this.raise(r.start,"Redefinition of __proto__ property"),t.proto=!0)}},te.getExpression=function(){this.nextToken();var e=this.parseExpression();return this.match(I.eof)||this.unexpected(),e},te.parseExpression=function(e,t){var r=this.state.start,n=this.state.startLoc,i=this.parseMaybeAssign(e,t);if(this.match(I.comma)){var a=this.startNodeAt(r,n);for(a.expressions=[i];this.eat(I.comma);)a.expressions.push(this.parseMaybeAssign(e,t));return this.toReferencedList(a.expressions),this.finishNode(a,"SequenceExpression")}return i},te.parseMaybeAssign=function(e,t,r,n){var i=this.state.start,a=this.state.startLoc;if(this.match(I._yield)&&this.state.inGenerator){var o=this.parseYield();return r&&(o=r.call(this,o,i,a)),o}var s=void 0;t?s=!1:(t={start:0},s=!0),(this.match(I.parenL)||this.match(I.name))&&(this.state.potentialArrowAt=this.state.start);var u=this.parseMaybeConditional(e,t,n);if(r&&(u=r.call(this,u,i,a)),this.state.type.isAssign){var l=this.startNodeAt(i,a);if(l.operator=this.state.value,l.left=this.match(I.eq)?this.toAssignable(u,void 0,"assignment expression"):u,t.start=0,this.checkLVal(u,void 0,void 0,"assignment expression"),u.extra&&u.extra.parenthesized){var c=void 0;"ObjectPattern"===u.type?c="`({a}) = 0` use `({a} = 0)`":"ArrayPattern"===u.type&&(c="`([a]) = 0` use `([a] = 0)`"),c&&this.raise(u.start,"You're trying to assign to a parenthesized expression, eg. instead of "+c)}return this.next(),l.right=this.parseMaybeAssign(e),this.finishNode(l,"AssignmentExpression")}return s&&t.start&&this.unexpected(t.start),u},te.parseMaybeConditional=function(e,t,r){var n=this.state.start,i=this.state.startLoc,a=this.parseExprOps(e,t);return t&&t.start?a:this.parseConditional(a,e,n,i,r)},te.parseConditional=function(e,t,r,n){if(this.eat(I.question)){var i=this.startNodeAt(r,n);return i.test=e,i.consequent=this.parseMaybeAssign(),this.expect(I.colon),i.alternate=this.parseMaybeAssign(t),this.finishNode(i,"ConditionalExpression")}return e},te.parseExprOps=function(e,t){var r=this.state.start,n=this.state.startLoc,i=this.parseMaybeUnary(t);return t&&t.start?i:this.parseExprOp(i,r,n,-1,e)},te.parseExprOp=function(e,t,r,n,i){var a=this.state.type.binop;if(!(null==a||i&&this.match(I._in))&&a>n){var o=this.startNodeAt(t,r);o.left=e,o.operator=this.state.value,"**"!==o.operator||"UnaryExpression"!==e.type||!e.extra||e.extra.parenthesizedArgument||e.extra.parenthesized||this.raise(e.argument.start,"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.");var s=this.state.type;this.next();var u=this.state.start,l=this.state.startLoc;return o.right=this.parseExprOp(this.parseMaybeUnary(),u,l,s.rightAssociative?a-1:a,i),this.finishNode(o,s===I.logicalOR||s===I.logicalAND?"LogicalExpression":"BinaryExpression"),this.parseExprOp(o,t,r,n,i)}return e},te.parseMaybeUnary=function(e){if(this.state.type.prefix){var t=this.startNode(),r=this.match(I.incDec);t.operator=this.state.value,t.prefix=!0,this.next();var n=this.state.type;return t.argument=this.parseMaybeUnary(),this.addExtra(t,"parenthesizedArgument",!(n!==I.parenL||t.argument.extra&&t.argument.extra.parenthesized)),e&&e.start&&this.unexpected(e.start),r?this.checkLVal(t.argument,void 0,void 0,"prefix operation"):this.state.strict&&"delete"===t.operator&&"Identifier"===t.argument.type&&this.raise(t.start,"Deleting local variable in strict mode"),this.finishNode(t,r?"UpdateExpression":"UnaryExpression")}var i=this.state.start,a=this.state.startLoc,o=this.parseExprSubscripts(e);if(e&&e.start)return o;for(;this.state.type.postfix&&!this.canInsertSemicolon();){var s=this.startNodeAt(i,a);s.operator=this.state.value,s.prefix=!1,s.argument=o,this.checkLVal(o,void 0,void 0,"postfix operation"),this.next(),o=this.finishNode(s,"UpdateExpression")}return o},te.parseExprSubscripts=function(e){var t=this.state.start,r=this.state.startLoc,n=this.state.potentialArrowAt,i=this.parseExprAtom(e);return"ArrowFunctionExpression"===i.type&&i.start===n?i:e&&e.start?i:this.parseSubscripts(i,t,r)},te.parseSubscripts=function(e,t,r,n){for(;;){if(!n&&this.eat(I.doubleColon)){var i=this.startNodeAt(t,r);return i.object=e,i.callee=this.parseNoCallExpr(),this.parseSubscripts(this.finishNode(i,"BindExpression"),t,r,n)}if(this.eat(I.dot)){var a=this.startNodeAt(t,r);a.object=e,a.property=this.parseIdentifier(!0),a.computed=!1,e=this.finishNode(a,"MemberExpression")}else if(this.eat(I.bracketL)){var o=this.startNodeAt(t,r);o.object=e,o.property=this.parseExpression(),o.computed=!0,this.expect(I.bracketR),e=this.finishNode(o,"MemberExpression")}else if(!n&&this.match(I.parenL)){var s=this.state.potentialArrowAt===e.start&&"Identifier"===e.type&&"async"===e.name&&!this.canInsertSemicolon();this.next();var u=this.startNodeAt(t,r);if(u.callee=e,u.arguments=this.parseCallExpressionArguments(I.parenR,s),"Import"===u.callee.type&&1!==u.arguments.length&&this.raise(u.start,"import() requires exactly one argument"),e=this.finishNode(u,"CallExpression"),s&&this.shouldParseAsyncArrow())return this.parseAsyncArrowFromCallExpression(this.startNodeAt(t,r),u);this.toReferencedList(u.arguments)}else{if(!this.match(I.backQuote))return e;var l=this.startNodeAt(t,r);l.tag=e,l.quasi=this.parseTemplate(!0),e=this.finishNode(l,"TaggedTemplateExpression")}}},te.parseCallExpressionArguments=function(e,t){for(var r=[],n=void 0,i=!0;!this.eat(e);){if(i)i=!1;else if(this.expect(I.comma),this.eat(e))break;this.match(I.parenL)&&!n&&(n=this.state.start),r.push(this.parseExprListItem(!1,t?{start:0}:void 0,t?{start:0}:void 0))}return t&&n&&this.shouldParseAsyncArrow()&&this.unexpected(),r},te.shouldParseAsyncArrow=function(){return this.match(I.arrow)},te.parseAsyncArrowFromCallExpression=function(e,t){return this.expect(I.arrow),this.parseArrowExpression(e,t.arguments,!0)},te.parseNoCallExpr=function(){var e=this.state.start,t=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,t,!0)},te.parseExprAtom=function(e){var t=this.state.potentialArrowAt===this.state.start,r=void 0;switch(this.state.type){case I._super:return this.state.inMethod||this.state.inClassProperty||this.options.allowSuperOutsideMethod||this.raise(this.state.start,"'super' outside of function or class"),r=this.startNode(),this.next(),this.match(I.parenL)||this.match(I.bracketL)||this.match(I.dot)||this.unexpected(),this.match(I.parenL)&&"constructor"!==this.state.inMethod&&!this.options.allowSuperOutsideMethod&&this.raise(r.start,"super() outside of class constructor"),this.finishNode(r,"Super");case I._import:return this.hasPlugin("dynamicImport")||this.unexpected(),r=this.startNode(),this.next(),this.match(I.parenL)||this.unexpected(null,I.parenL),this.finishNode(r,"Import");case I._this:return r=this.startNode(),this.next(),this.finishNode(r,"ThisExpression");case I._yield:this.state.inGenerator&&this.unexpected();case I.name:r=this.startNode();var n="await"===this.state.value&&this.state.inAsync,i=this.shouldAllowYieldIdentifier(),a=this.parseIdentifier(n||i);if("await"===a.name){if(this.state.inAsync||this.inModule)return this.parseAwait(r)}else{if("async"===a.name&&this.match(I._function)&&!this.canInsertSemicolon())return this.next(),this.parseFunction(r,!1,!1,!0);if(t&&"async"===a.name&&this.match(I.name)){var o=[this.parseIdentifier()];return this.expect(I.arrow),this.parseArrowExpression(r,o,!0)}}return t&&!this.canInsertSemicolon()&&this.eat(I.arrow)?this.parseArrowExpression(r,[a]):a;case I._do:if(this.hasPlugin("doExpressions")){var s=this.startNode();this.next();var u=this.state.inFunction,l=this.state.labels;return this.state.labels=[],this.state.inFunction=!1,s.body=this.parseBlock(!1,!0),this.state.inFunction=u,this.state.labels=l,this.finishNode(s,"DoExpression")}case I.regexp:var c=this.state.value;return r=this.parseLiteral(c.value,"RegExpLiteral"),r.pattern=c.pattern,r.flags=c.flags,r;case I.num:return this.parseLiteral(this.state.value,"NumericLiteral");case I.string:return this.parseLiteral(this.state.value,"StringLiteral");case I._null:return r=this.startNode(),this.next(),this.finishNode(r,"NullLiteral");case I._true:case I._false:return r=this.startNode(),r.value=this.match(I._true),this.next(),this.finishNode(r,"BooleanLiteral");case I.parenL:return this.parseParenAndDistinguishExpression(null,null,t);case I.bracketL:return r=this.startNode(),this.next(),r.elements=this.parseExprList(I.bracketR,!0,e),this.toReferencedList(r.elements),this.finishNode(r,"ArrayExpression");case I.braceL:return this.parseObj(!1,e);case I._function:return this.parseFunctionExpression();case I.at:this.parseDecorators();case I._class:return r=this.startNode(),this.takeDecorators(r),this.parseClass(r,!1);case I._new:return this.parseNew();case I.backQuote:return this.parseTemplate(!1);case I.doubleColon:r=this.startNode(),this.next(),r.object=null;var f=r.callee=this.parseNoCallExpr();if("MemberExpression"===f.type)return this.finishNode(r,"BindExpression");this.raise(f.start,"Binding should be performed on object property.");default:this.unexpected()}},te.parseFunctionExpression=function(){var e=this.startNode(),t=this.parseIdentifier(!0);return this.state.inGenerator&&this.eat(I.dot)&&this.hasPlugin("functionSent")?this.parseMetaProperty(e,t,"sent"):this.parseFunction(e,!1)},te.parseMetaProperty=function(e,t,r){return e.meta=t,e.property=this.parseIdentifier(!0),e.property.name!==r&&this.raise(e.property.start,"The only valid meta property for new is "+t.name+"."+r),this.finishNode(e,"MetaProperty")},te.parseLiteral=function(e,t,r,n){r=r||this.state.start,n=n||this.state.startLoc;var i=this.startNodeAt(r,n);return this.addExtra(i,"rawValue",e),this.addExtra(i,"raw",this.input.slice(r,this.state.end)),i.value=e,this.next(),this.finishNode(i,t)},te.parseParenExpression=function(){this.expect(I.parenL);var e=this.parseExpression();return this.expect(I.parenR),e},te.parseParenAndDistinguishExpression=function(e,t,r){e=e||this.state.start,t=t||this.state.startLoc;var n=void 0;this.expect(I.parenL);for(var i=this.state.start,a=this.state.startLoc,o=[],s={start:0},u={start:0},l=!0,c=void 0,f=void 0;!this.match(I.parenR);){if(l)l=!1;else if(this.expect(I.comma,u.start||null),this.match(I.parenR)){f=this.state.start;break}if(this.match(I.ellipsis)){var d=this.state.start,p=this.state.startLoc;c=this.state.start,o.push(this.parseParenItem(this.parseRest(),d,p));break}o.push(this.parseMaybeAssign(!1,s,this.parseParenItem,u))}var h=this.state.start,v=this.state.startLoc;this.expect(I.parenR);var y=this.startNodeAt(e,t);if(r&&this.shouldParseArrow()&&(y=this.parseArrow(y))){for(var m=o,b=Array.isArray(m),g=0,m=b?m:m[Symbol.iterator]();;){var w;if(b){if(g>=m.length)break;w=m[g++]}else{if(g=m.next(),g.done)break;w=g.value}var E=w;E.extra&&E.extra.parenthesized&&this.unexpected(E.extra.parenStart)}return this.parseArrowExpression(y,o)}return o.length||this.unexpected(this.state.lastTokStart),f&&this.unexpected(f),c&&this.unexpected(c),s.start&&this.unexpected(s.start),u.start&&this.unexpected(u.start),o.length>1?(n=this.startNodeAt(i,a),n.expressions=o,this.toReferencedList(n.expressions),this.finishNodeAt(n,"SequenceExpression",h,v)):n=o[0],this.addExtra(n,"parenthesized",!0),this.addExtra(n,"parenStart",e),n},te.shouldParseArrow=function(){return!this.canInsertSemicolon()},te.parseArrow=function(e){if(this.eat(I.arrow))return e},te.parseParenItem=function(e){return e},te.parseNew=function(){var e=this.startNode(),t=this.parseIdentifier(!0);if(this.eat(I.dot)){var r=this.parseMetaProperty(e,t,"target");return this.state.inFunction||this.raise(r.property.start,"new.target can only be used in functions"),r}return e.callee=this.parseNoCallExpr(),this.eat(I.parenL)?(e.arguments=this.parseExprList(I.parenR),this.toReferencedList(e.arguments)):e.arguments=[],this.finishNode(e,"NewExpression")},te.parseTemplateElement=function(e){var t=this.startNode();return null===this.state.value&&(e&&this.hasPlugin("templateInvalidEscapes")?this.state.invalidTemplateEscapePosition=null:this.raise(this.state.invalidTemplateEscapePosition,"Invalid escape sequence in template")),t.value={raw:this.input.slice(this.state.start,this.state.end).replace(/\r\n?/g,"\n"),cooked:this.state.value},this.next(),t.tail=this.match(I.backQuote),this.finishNode(t,"TemplateElement")},te.parseTemplate=function(e){var t=this.startNode();this.next(),t.expressions=[];var r=this.parseTemplateElement(e);for(t.quasis=[r];!r.tail;)this.expect(I.dollarBraceL),t.expressions.push(this.parseExpression()),this.expect(I.braceR),t.quasis.push(r=this.parseTemplateElement(e));return this.next(),this.finishNode(t,"TemplateLiteral")},te.parseObj=function(e,t){var r=[],n=Object.create(null),i=!0,a=this.startNode();a.properties=[],this.next();for(var o=null;!this.eat(I.braceR);){if(i)i=!1;else if(this.expect(I.comma),this.eat(I.braceR))break;for(;this.match(I.at);)r.push(this.parseDecorator());var s=this.startNode(),u=!1,l=!1,c=void 0,f=void 0;if(r.length&&(s.decorators=r,r=[]),this.hasPlugin("objectRestSpread")&&this.match(I.ellipsis)){if(s=this.parseSpread(e?{start:0}:void 0),s.type=e?"RestProperty":"SpreadProperty",e&&this.toAssignable(s.argument,!0,"object pattern"),a.properties.push(s),!e)continue;var d=this.state.start;if(null===o){if(this.eat(I.braceR))break;if(this.match(I.comma)&&this.lookahead().type===I.braceR)continue;o=d;continue}this.unexpected(o,"Cannot have multiple rest elements when destructuring")}if(s.method=!1,s.shorthand=!1,(e||t)&&(c=this.state.start,f=this.state.startLoc),e||(u=this.eat(I.star)),!e&&this.isContextual("async")){u&&this.unexpected();var p=this.parseIdentifier();this.match(I.colon)||this.match(I.parenL)||this.match(I.braceR)||this.match(I.eq)||this.match(I.comma)?(s.key=p,s.computed=!1):(l=!0,this.hasPlugin("asyncGenerators")&&(u=this.eat(I.star)),this.parsePropertyName(s))}else this.parsePropertyName(s);this.parseObjPropValue(s,c,f,u,l,e,t),this.checkPropClash(s,n),s.shorthand&&this.addExtra(s,"shorthand",!0),a.properties.push(s)}return null!==o&&this.unexpected(o,"The rest element has to be the last element when destructuring"),r.length&&this.raise(this.state.start,"You have trailing decorators with no property"),this.finishNode(a,e?"ObjectPattern":"ObjectExpression")},te.isGetterOrSetterMethod=function(e,t){return!t&&!e.computed&&"Identifier"===e.key.type&&("get"===e.key.name||"set"===e.key.name)&&(this.match(I.string)||this.match(I.num)||this.match(I.bracketL)||this.match(I.name)||this.state.type.keyword)},te.checkGetterSetterParamCount=function(e){var t="get"===e.kind?0:1;if(e.params.length!==t){var r=e.start;"get"===e.kind?this.raise(r,"getter should have no params"):this.raise(r,"setter should have exactly one param")}},te.parseObjectMethod=function(e,t,r,n){return r||t||this.match(I.parenL)?(n&&this.unexpected(),e.kind="method",e.method=!0,this.parseMethod(e,t,r),this.finishNode(e,"ObjectMethod")):this.isGetterOrSetterMethod(e,n)?((t||r)&&this.unexpected(),e.kind=e.key.name,this.parsePropertyName(e),this.parseMethod(e),this.checkGetterSetterParamCount(e),this.finishNode(e,"ObjectMethod")):void 0},te.parseObjectProperty=function(e,t,r,n,i){return this.eat(I.colon)?(e.value=n?this.parseMaybeDefault(this.state.start,this.state.startLoc):this.parseMaybeAssign(!1,i),this.finishNode(e,"ObjectProperty")):e.computed||"Identifier"!==e.key.type?void 0:(this.checkReservedWord(e.key.name,e.key.start,!0,!0),n?e.value=this.parseMaybeDefault(t,r,e.key.__clone()):this.match(I.eq)&&i?(i.start||(i.start=this.state.start),e.value=this.parseMaybeDefault(t,r,e.key.__clone())):e.value=e.key.__clone(),e.shorthand=!0,this.finishNode(e,"ObjectProperty"))},te.parseObjPropValue=function(e,t,r,n,i,a,o){var s=this.parseObjectMethod(e,n,i,a)||this.parseObjectProperty(e,t,r,a,o);return s||this.unexpected(),s},te.parsePropertyName=function(e){if(this.eat(I.bracketL))e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(I.bracketR);else{e.computed=!1;var t=this.state.inPropertyName;this.state.inPropertyName=!0,e.key=this.match(I.num)||this.match(I.string)?this.parseExprAtom():this.parseIdentifier(!0),this.state.inPropertyName=t}return e.key},te.initFunction=function(e,t){e.id=null,e.generator=!1,e.expression=!1,e.async=!!t},te.parseMethod=function(e,t,r){var n=this.state.inMethod;return this.state.inMethod=e.kind||!0,this.initFunction(e,r),this.expect(I.parenL),e.params=this.parseBindingList(I.parenR),e.generator=!!t,this.parseFunctionBody(e),this.state.inMethod=n,e},te.parseArrowExpression=function(e,t,r){return this.initFunction(e,r),e.params=this.toAssignableList(t,!0,"arrow function parameters"),this.parseFunctionBody(e,!0),this.finishNode(e,"ArrowFunctionExpression")},te.isStrictBody=function(e,t){if(!t&&e.body.directives.length)for(var r=e.body.directives,n=Array.isArray(r),i=0,r=n?r:r[Symbol.iterator]();;){var a;if(n){if(i>=r.length)break;a=r[i++]}else{if(i=r.next(),i.done)break;a=i.value}var o=a;if("use strict"===o.value.value)return!0}return!1},te.parseFunctionBody=function(e,t){var r=t&&!this.match(I.braceL),n=this.state.inAsync;if(this.state.inAsync=e.async,r)e.body=this.parseMaybeAssign(),e.expression=!0;else{var i=this.state.inFunction,a=this.state.inGenerator,o=this.state.labels;this.state.inFunction=!0,this.state.inGenerator=e.generator,this.state.labels=[],e.body=this.parseBlock(!0),e.expression=!1,this.state.inFunction=i,this.state.inGenerator=a,this.state.labels=o}this.state.inAsync=n;var s=this.isStrictBody(e,r),u=this.state.strict||t||s;if(s&&e.id&&"Identifier"===e.id.type&&"yield"===e.id.name&&this.raise(e.id.start,"Binding yield in strict mode"),u){var l=Object.create(null),c=this.state.strict;s&&(this.state.strict=!0),e.id&&this.checkLVal(e.id,!0,void 0,"function name");for(var f=e.params,d=Array.isArray(f),p=0,f=d?f:f[Symbol.iterator]();;){var h;if(d){if(p>=f.length)break;h=f[p++]}else{if(p=f.next(),p.done)break;h=p.value}var v=h;s&&"Identifier"!==v.type&&this.raise(v.start,"Non-simple parameter in strict mode"),this.checkLVal(v,!0,l,"function parameter list")}this.state.strict=c}},te.parseExprList=function(e,t,r){for(var n=[],i=!0;!this.eat(e);){if(i)i=!1;else if(this.expect(I.comma),this.eat(e))break;n.push(this.parseExprListItem(t,r))}return n},te.parseExprListItem=function(e,t,r){return e&&this.match(I.comma)?null:this.match(I.ellipsis)?this.parseSpread(t):this.parseMaybeAssign(!1,t,this.parseParenItem,r)},te.parseIdentifier=function(e){var t=this.startNode();return e||this.checkReservedWord(this.state.value,this.state.start,!!this.state.type.keyword,!1),this.match(I.name)?t.name=this.state.value:this.state.type.keyword?t.name=this.state.type.keyword:this.unexpected(),!e&&"await"===t.name&&this.state.inAsync&&this.raise(t.start,"invalid use of await inside of an async function"),t.loc.identifierName=t.name,this.next(),this.finishNode(t,"Identifier")},te.checkReservedWord=function(e,t,r,n){(this.isReservedWord(e)||r&&this.isKeyword(e))&&this.raise(t,e+" is a reserved word"),this.state.strict&&(m.strict(e)||n&&m.strictBind(e))&&this.raise(t,e+" is a reserved word in strict mode")},te.parseAwait=function(e){return this.state.inAsync||this.unexpected(),this.match(I.star)&&this.raise(e.start,"await* has been removed from the async functions proposal. Use Promise.all() instead."),e.argument=this.parseMaybeUnary(),this.finishNode(e,"AwaitExpression")},te.parseYield=function(){var e=this.startNode();return this.next(),this.match(I.semi)||this.canInsertSemicolon()||!this.match(I.star)&&!this.state.type.startsExpr?(e.delegate=!1,e.argument=null):(e.delegate=this.eat(I.star),e.argument=this.parseMaybeAssign()),this.finishNode(e,"YieldExpression")};var re=K.prototype,ne=["leadingComments","trailingComments","innerComments"],ie=function(){function e(t,r,n){P(this,e),this.type="",this.start=t,this.end=0,this.loc=new G(r),n&&(this.loc.filename=n)}return e.prototype.__clone=function(){var t=new e;for(var r in this)ne.indexOf(r)<0&&(t[r]=this[r]);return t},e}();re.startNode=function(){return new ie(this.state.start,this.state.startLoc,this.filename)},re.startNodeAt=function(e,t){return new ie(e,t,this.filename)},re.finishNode=function(e,t){return f.call(this,e,t,this.state.lastTokEnd,this.state.lastTokEndLoc)},re.finishNodeAt=function(e,t,r,n){return f.call(this,e,t,r,n)},K.prototype.raise=function(e,t){var r=l(this.input,e);t+=" ("+r.line+":"+r.column+")";var n=new SyntaxError(t);throw n.pos=e,n.loc=r,n};var ae=K.prototype;ae.addComment=function(e){this.filename&&(e.loc.filename=this.filename),this.state.trailingComments.push(e),this.state.leadingComments.push(e)},ae.processComment=function(e){if(!("Program"===e.type&&e.body.length>0)){var t=this.state.commentStack,r=void 0,n=void 0,i=void 0,a=void 0,o=void 0;if(this.state.trailingComments.length>0)this.state.trailingComments[0].start>=e.end?(i=this.state.trailingComments,this.state.trailingComments=[]):this.state.trailingComments.length=0;else{var s=d(t);t.length>0&&s.trailingComments&&s.trailingComments[0].start>=e.end&&(i=s.trailingComments,s.trailingComments=null)}for(t.length>0&&d(t).start>=e.start&&(r=t.pop());t.length>0&&d(t).start>=e.start;)n=t.pop();if(!n&&r&&(n=r),r&&this.state.leadingComments.length>0){var u=d(this.state.leadingComments);if("ObjectProperty"===r.type){if(u.start>=e.start&&this.state.commentPreviousNode){for(o=0;o0&&(r.trailingComments=this.state.leadingComments,this.state.leadingComments=[])}}else if("CallExpression"===e.type&&e.arguments&&e.arguments.length){var l=d(e.arguments);l&&u.start>=l.start&&u.end<=e.end&&this.state.commentPreviousNode&&this.state.leadingComments.length>0&&(l.trailingComments=this.state.leadingComments,this.state.leadingComments=[])}}if(n){if(n.leadingComments)if(n!==e&&d(n.leadingComments).end<=e.start)e.leadingComments=n.leadingComments,n.leadingComments=null;else for(a=n.leadingComments.length-2;a>=0;--a)if(n.leadingComments[a].end<=e.start){e.leadingComments=n.leadingComments.splice(0,a+1);break}}else if(this.state.leadingComments.length>0)if(d(this.state.leadingComments).end<=e.start){if(this.state.commentPreviousNode)for(o=0;o0&&(e.leadingComments=this.state.leadingComments,this.state.leadingComments=[])}else{for(a=0;ae.start);a++);e.leadingComments=this.state.leadingComments.slice(0,a),0===e.leadingComments.length&&(e.leadingComments=null),i=this.state.leadingComments.slice(a),0===i.length&&(i=null)}this.state.commentPreviousNode=e,i&&(i.length&&i[0].start>=e.start&&d(i).end<=e.end?e.innerComments=i:e.trailingComments=i),t.push(e)}};var oe=K.prototype;oe.estreeParseRegExpLiteral=function(e){var t=e.pattern,r=e.flags,n=null;try{n=new RegExp(t,r)}catch(e){}var i=this.estreeParseLiteral(n);return i.regex={pattern:t,flags:r},i},oe.estreeParseLiteral=function(e){return this.parseLiteral(e,"Literal")},oe.directiveToStmt=function(e){var t=e.value,r=this.startNodeAt(e.start,e.loc.start),n=this.startNodeAt(t.start,t.loc.start);return n.value=t.value,n.raw=t.extra.raw,r.expression=this.finishNodeAt(n,"Literal",t.end,t.loc.end),r.directive=t.extra.raw.slice(1,-1),this.finishNodeAt(r,"ExpressionStatement",e.end,e.loc.end)};var se=function(e){e.extend("checkDeclaration",function(e){return function(t){p(t)?this.checkDeclaration(t.value):e.call(this,t)}}),e.extend("checkGetterSetterParamCount",function(){return function(e){var t="get"===e.kind?0:1;if(e.value.params.length!==t){var r=e.start;"get"===e.kind?this.raise(r,"getter should have no params"):this.raise(r,"setter should have exactly one param")}}}),e.extend("checkLVal",function(e){return function(t,r,n){var i=this;switch(t.type){case"ObjectPattern":t.properties.forEach(function(e){i.checkLVal("Property"===e.type?e.value:e,r,n,"object destructuring pattern")});break;default:for(var a=arguments.length,o=Array(a>3?a-3:0),s=3;s0)for(var r=e.body.body,n=Array.isArray(r),i=0,r=n?r:r[Symbol.iterator]();;){var a;if(n){if(i>=r.length)break;a=r[i++]}else{if(i=r.next(),i.done)break;a=i.value}var o=a;if("ExpressionStatement"!==o.type||"Literal"!==o.expression.type)break;if("use strict"===o.expression.value)return!0}return!1}}),e.extend("isValidDirective",function(){return function(e){return!("ExpressionStatement"!==e.type||"Literal"!==e.expression.type||"string"!=typeof e.expression.value||e.expression.extra&&e.expression.extra.parenthesized)}}),e.extend("stmtToDirective",function(e){return function(t){var r=e.call(this,t),n=t.expression.value;return r.value.value=n,r}}),e.extend("parseBlockBody",function(e){return function(t){for(var r=this,n=arguments.length,i=Array(n>1?n-1:0),a=1;a1?n-1:0),a=1;a2?n-2:0),a=2;a=o.length)break;l=o[u++]}else{if(u=o.next(),u.done)break;l=u.value}var c=l;"get"===c.kind||"set"===c.kind?this.raise(c.key.start,"Object pattern can't contain getter or setter"):c.method?this.raise(c.key.start,"Object pattern can't contain methods"):this.toAssignable(c,r,"object destructuring pattern")}return t}return e.call.apply(e,[this,t,r].concat(i))}})},ue=["any","mixed","empty","bool","boolean","number","string","void","null"],le=K.prototype;le.flowParseTypeInitialiser=function(e){var t=this.state.inType;this.state.inType=!0,this.expect(e||I.colon);var r=this.flowParseType();return this.state.inType=t,r},le.flowParsePredicate=function(){var e=this.startNode(),t=this.state.startLoc,r=this.state.start;this.expect(I.modulo);var n=this.state.startLoc;return this.expectContextual("checks"),t.line===n.line&&t.column===n.column-1||this.raise(r,"Spaces between ´%´ and ´checks´ are not allowed here."),this.eat(I.parenL)?(e.expression=this.parseExpression(),this.expect(I.parenR),this.finishNode(e,"DeclaredPredicate")):this.finishNode(e,"InferredPredicate")},le.flowParseTypeAndPredicateInitialiser=function(){var e=this.state.inType;this.state.inType=!0,this.expect(I.colon);var t=null,r=null;return this.match(I.modulo)?(this.state.inType=e,r=this.flowParsePredicate()):(t=this.flowParseType(),this.state.inType=e,this.match(I.modulo)&&(r=this.flowParsePredicate())),[t,r]},le.flowParseDeclareClass=function(e){return this.next(),this.flowParseInterfaceish(e,!0),this.finishNode(e,"DeclareClass")},le.flowParseDeclareFunction=function(e){this.next();var t=e.id=this.parseIdentifier(),r=this.startNode(),n=this.startNode();this.isRelational("<")?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,this.expect(I.parenL);var i=this.flowParseFunctionTypeParams();r.params=i.params,r.rest=i.rest,this.expect(I.parenR);var a=null,o=this.flowParseTypeAndPredicateInitialiser();return r.returnType=o[0],a=o[1],n.typeAnnotation=this.finishNode(r,"FunctionTypeAnnotation"),n.predicate=a,t.typeAnnotation=this.finishNode(n,"TypeAnnotation"),this.finishNode(t,t.type),this.semicolon(),this.finishNode(e,"DeclareFunction")},le.flowParseDeclare=function(e){return this.match(I._class)?this.flowParseDeclareClass(e):this.match(I._function)?this.flowParseDeclareFunction(e):this.match(I._var)?this.flowParseDeclareVariable(e):this.isContextual("module")?this.lookahead().type===I.dot?this.flowParseDeclareModuleExports(e):this.flowParseDeclareModule(e):this.isContextual("type")?this.flowParseDeclareTypeAlias(e):this.isContextual("opaque")?this.flowParseDeclareOpaqueType(e):this.isContextual("interface")?this.flowParseDeclareInterface(e):this.match(I._export)?this.flowParseDeclareExportDeclaration(e):void this.unexpected()},le.flowParseDeclareExportDeclaration=function(e){if(this.expect(I._export),this.isContextual("opaque"))return e.declaration=this.flowParseDeclare(this.startNode()),e.default=!1,this.finishNode(e,"DeclareExportDeclaration");throw this.unexpected()},le.flowParseDeclareVariable=function(e){return this.next(),e.id=this.flowParseTypeAnnotatableIdentifier(),this.semicolon(),this.finishNode(e,"DeclareVariable")},le.flowParseDeclareModule=function(e){this.next(),this.match(I.string)?e.id=this.parseExprAtom():e.id=this.parseIdentifier();var t=e.body=this.startNode(),r=t.body=[];for(this.expect(I.braceL);!this.match(I.braceR);){var n=this.startNode();if(this.match(I._import)){var i=this.lookahead();"type"!==i.value&&"typeof"!==i.value&&this.unexpected(null,"Imports within a `declare module` body must always be `import type` or `import typeof`"),this.parseImport(n)}else this.expectContextual("declare","Only declares and type imports are allowed inside declare module"),n=this.flowParseDeclare(n,!0);r.push(n)}return this.expect(I.braceR),this.finishNode(t,"BlockStatement"),this.finishNode(e,"DeclareModule")},le.flowParseDeclareModuleExports=function(e){return this.expectContextual("module"),this.expect(I.dot),this.expectContextual("exports"),e.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(e,"DeclareModuleExports")},le.flowParseDeclareTypeAlias=function(e){return this.next(),this.flowParseTypeAlias(e),this.finishNode(e,"DeclareTypeAlias")},le.flowParseDeclareOpaqueType=function(e){return this.next(),this.flowParseOpaqueType(e,!0),this.finishNode(e,"DeclareOpaqueType")},le.flowParseDeclareInterface=function(e){return this.next(),this.flowParseInterfaceish(e),this.finishNode(e,"DeclareInterface")},le.flowParseInterfaceish=function(e){if(e.id=this.parseIdentifier(),this.isRelational("<")?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.extends=[],e.mixins=[],this.eat(I._extends))do{e.extends.push(this.flowParseInterfaceExtends())}while(this.eat(I.comma));if(this.isContextual("mixins")){this.next();do{e.mixins.push(this.flowParseInterfaceExtends())}while(this.eat(I.comma))}e.body=this.flowParseObjectType(!0,!1,!1)},le.flowParseInterfaceExtends=function(){var e=this.startNode();return e.id=this.flowParseQualifiedTypeIdentifier(),this.isRelational("<")?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,this.finishNode(e,"InterfaceExtends")},le.flowParseInterface=function(e){return this.flowParseInterfaceish(e,!1),this.finishNode(e,"InterfaceDeclaration")},le.flowParseRestrictedIdentifier=function(e){return ue.indexOf(this.state.value)>-1&&this.raise(this.state.start,"Cannot overwrite primitive type "+this.state.value),this.parseIdentifier(e)},le.flowParseTypeAlias=function(e){return e.id=this.flowParseRestrictedIdentifier(),this.isRelational("<")?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.right=this.flowParseTypeInitialiser(I.eq),this.semicolon(),this.finishNode(e,"TypeAlias")},le.flowParseOpaqueType=function(e,t){return this.expectContextual("type"),e.id=this.flowParseRestrictedIdentifier(),this.isRelational("<")?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.supertype=null,this.match(I.colon)&&(e.supertype=this.flowParseTypeInitialiser(I.colon)),e.impltype=null,t||(e.impltype=this.flowParseTypeInitialiser(I.eq)),this.semicolon(),this.finishNode(e,"OpaqueType")},le.flowParseTypeParameter=function(){var e=this.startNode(),t=this.flowParseVariance(),r=this.flowParseTypeAnnotatableIdentifier();return e.name=r.name,e.variance=t,e.bound=r.typeAnnotation,this.match(I.eq)&&(this.eat(I.eq),e.default=this.flowParseType()),this.finishNode(e,"TypeParameter")},le.flowParseTypeParameterDeclaration=function(){var e=this.state.inType,t=this.startNode();t.params=[],this.state.inType=!0,this.isRelational("<")||this.match(I.jsxTagStart)?this.next():this.unexpected();do{t.params.push(this.flowParseTypeParameter()),this.isRelational(">")||this.expect(I.comma)}while(!this.isRelational(">"));return this.expectRelational(">"),this.state.inType=e,this.finishNode(t,"TypeParameterDeclaration")},le.flowParseTypeParameterInstantiation=function(){var e=this.startNode(),t=this.state.inType;for(e.params=[],this.state.inType=!0,this.expectRelational("<");!this.isRelational(">");)e.params.push(this.flowParseType()),this.isRelational(">")||this.expect(I.comma);return this.expectRelational(">"),this.state.inType=t,this.finishNode(e,"TypeParameterInstantiation")},le.flowParseObjectPropertyKey=function(){return this.match(I.num)||this.match(I.string)?this.parseExprAtom():this.parseIdentifier(!0)},le.flowParseObjectTypeIndexer=function(e,t,r){return e.static=t,this.expect(I.bracketL),this.lookahead().type===I.colon?(e.id=this.flowParseObjectPropertyKey(),e.key=this.flowParseTypeInitialiser()):(e.id=null,e.key=this.flowParseType()),this.expect(I.bracketR),e.value=this.flowParseTypeInitialiser(),e.variance=r,this.flowObjectTypeSemicolon(),this.finishNode(e,"ObjectTypeIndexer")},le.flowParseObjectTypeMethodish=function(e){for(e.params=[],e.rest=null,e.typeParameters=null,this.isRelational("<")&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(I.parenL);!this.match(I.parenR)&&!this.match(I.ellipsis);)e.params.push(this.flowParseFunctionTypeParam()),this.match(I.parenR)||this.expect(I.comma);return this.eat(I.ellipsis)&&(e.rest=this.flowParseFunctionTypeParam()),this.expect(I.parenR),e.returnType=this.flowParseTypeInitialiser(),this.finishNode(e,"FunctionTypeAnnotation")},le.flowParseObjectTypeMethod=function(e,t,r,n){var i=this.startNodeAt(e,t);return i.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e,t)),i.static=r,i.key=n,i.optional=!1,this.flowObjectTypeSemicolon(),this.finishNode(i,"ObjectTypeProperty")},le.flowParseObjectTypeCallProperty=function(e,t){var r=this.startNode();return e.static=t,e.value=this.flowParseObjectTypeMethodish(r),this.flowObjectTypeSemicolon(),this.finishNode(e,"ObjectTypeCallProperty")},le.flowParseObjectType=function(e,t,r){var n=this.state.inType;this.state.inType=!0;var i=this.startNode(),a=void 0,o=void 0,s=!1;i.callProperties=[],i.properties=[],i.indexers=[];var u=void 0,l=void 0;for(t&&this.match(I.braceBarL)?(this.expect(I.braceBarL),u=I.braceBarR,l=!0):(this.expect(I.braceL),u=I.braceR,l=!1),i.exact=l;!this.match(u);){var c=!1,f=this.state.start,d=this.state.startLoc;a=this.startNode(),e&&this.isContextual("static")&&this.lookahead().type!==I.colon&&(this.next(),s=!0);var p=this.state.start,h=this.flowParseVariance();this.match(I.bracketL)?i.indexers.push(this.flowParseObjectTypeIndexer(a,s,h)):this.match(I.parenL)||this.isRelational("<")?(h&&this.unexpected(p),i.callProperties.push(this.flowParseObjectTypeCallProperty(a,s))):this.match(I.ellipsis)?(r||this.unexpected(null,"Spread operator cannot appear in class or interface definitions"),h&&this.unexpected(h.start,"Spread properties cannot have variance"),this.expect(I.ellipsis),a.argument=this.flowParseType(),this.flowObjectTypeSemicolon(),i.properties.push(this.finishNode(a,"ObjectTypeSpreadProperty"))):(o=this.flowParseObjectPropertyKey(),this.isRelational("<")||this.match(I.parenL)?(h&&this.unexpected(h.start),i.properties.push(this.flowParseObjectTypeMethod(f,d,s,o))):(this.eat(I.question)&&(c=!0),a.key=o,a.value=this.flowParseTypeInitialiser(),a.optional=c,a.static=s,a.variance=h,this.flowObjectTypeSemicolon(),i.properties.push(this.finishNode(a,"ObjectTypeProperty")))),s=!1}this.expect(u);var v=this.finishNode(i,"ObjectTypeAnnotation");return this.state.inType=n,v},le.flowObjectTypeSemicolon=function(){this.eat(I.semi)||this.eat(I.comma)||this.match(I.braceR)||this.match(I.braceBarR)||this.unexpected()},le.flowParseQualifiedTypeIdentifier=function(e,t,r){e=e||this.state.start,t=t||this.state.startLoc;for(var n=r||this.parseIdentifier();this.eat(I.dot);){var i=this.startNodeAt(e,t);i.qualification=n,i.id=this.parseIdentifier(),n=this.finishNode(i,"QualifiedTypeIdentifier")}return n},le.flowParseGenericType=function(e,t,r){var n=this.startNodeAt(e,t);return n.typeParameters=null,n.id=this.flowParseQualifiedTypeIdentifier(e,t,r),this.isRelational("<")&&(n.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(n,"GenericTypeAnnotation")},le.flowParseTypeofType=function(){var e=this.startNode();return this.expect(I._typeof),e.argument=this.flowParsePrimaryType(),this.finishNode(e,"TypeofTypeAnnotation")},le.flowParseTupleType=function(){var e=this.startNode();for(e.types=[],this.expect(I.bracketL);this.state.pos0&&void 0!==arguments[0]?arguments[0]:[],t={params:e,rest:null};!this.match(I.parenR)&&!this.match(I.ellipsis);)t.params.push(this.flowParseFunctionTypeParam()),this.match(I.parenR)||this.expect(I.comma);return this.eat(I.ellipsis)&&(t.rest=this.flowParseFunctionTypeParam()),t},le.flowIdentToTypeAnnotation=function(e,t,r,n){switch(n.name){case"any":return this.finishNode(r,"AnyTypeAnnotation");case"void":return this.finishNode(r,"VoidTypeAnnotation");case"bool":case"boolean":return this.finishNode(r,"BooleanTypeAnnotation");case"mixed":return this.finishNode(r,"MixedTypeAnnotation");case"empty":return this.finishNode(r,"EmptyTypeAnnotation");case"number":return this.finishNode(r,"NumberTypeAnnotation");case"string":return this.finishNode(r,"StringTypeAnnotation");default:return this.flowParseGenericType(e,t,n)}},le.flowParsePrimaryType=function(){var e=this.state.start,t=this.state.startLoc,r=this.startNode(),n=void 0,i=void 0,a=!1,o=this.state.noAnonFunctionType;switch(this.state.type){case I.name:return this.flowIdentToTypeAnnotation(e,t,r,this.parseIdentifier());case I.braceL:return this.flowParseObjectType(!1,!1,!0);case I.braceBarL:return this.flowParseObjectType(!1,!0,!0);case I.bracketL:return this.flowParseTupleType();case I.relational:if("<"===this.state.value)return r.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(I.parenL),n=this.flowParseFunctionTypeParams(),r.params=n.params,r.rest=n.rest,this.expect(I.parenR),this.expect(I.arrow),r.returnType=this.flowParseType(),this.finishNode(r,"FunctionTypeAnnotation");break;case I.parenL:if(this.next(),!this.match(I.parenR)&&!this.match(I.ellipsis))if(this.match(I.name)){var s=this.lookahead().type;a=s!==I.question&&s!==I.colon}else a=!0;if(a){if(this.state.noAnonFunctionType=!1,i=this.flowParseType(),this.state.noAnonFunctionType=o,this.state.noAnonFunctionType||!(this.match(I.comma)||this.match(I.parenR)&&this.lookahead().type===I.arrow))return this.expect(I.parenR),i;this.eat(I.comma)}return n=i?this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(i)]):this.flowParseFunctionTypeParams(),r.params=n.params,r.rest=n.rest,this.expect(I.parenR),this.expect(I.arrow),r.returnType=this.flowParseType(),r.typeParameters=null,this.finishNode(r,"FunctionTypeAnnotation");case I.string:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case I._true:case I._false:return r.value=this.match(I._true),this.next(),this.finishNode(r,"BooleanLiteralTypeAnnotation");case I.plusMin:if("-"===this.state.value)return this.next(),this.match(I.num)||this.unexpected(null,"Unexpected token, expected number"),this.parseLiteral(-this.state.value,"NumericLiteralTypeAnnotation",r.start,r.loc.start);this.unexpected();case I.num:return this.parseLiteral(this.state.value,"NumericLiteralTypeAnnotation");case I._null:return r.value=this.match(I._null),this.next(),this.finishNode(r,"NullLiteralTypeAnnotation");case I._this:return r.value=this.match(I._this),this.next(),this.finishNode(r,"ThisTypeAnnotation");case I.star:return this.next(),this.finishNode(r,"ExistentialTypeParam");default:if("typeof"===this.state.type.keyword)return this.flowParseTypeofType()}this.unexpected()},le.flowParsePostfixType=function(){for(var e=this.state.start,t=this.state.startLoc,r=this.flowParsePrimaryType();!this.canInsertSemicolon()&&this.match(I.bracketL);){var n=this.startNodeAt(e,t);n.elementType=r,this.expect(I.bracketL),this.expect(I.bracketR),r=this.finishNode(n,"ArrayTypeAnnotation")}return r},le.flowParsePrefixType=function(){var e=this.startNode();return this.eat(I.question)?(e.typeAnnotation=this.flowParsePrefixType(),this.finishNode(e,"NullableTypeAnnotation")):this.flowParsePostfixType()},le.flowParseAnonFunctionWithoutParens=function(){var e=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(I.arrow)){var t=this.startNodeAt(e.start,e.loc.start);return t.params=[this.reinterpretTypeAsFunctionTypeParam(e)],t.rest=null,t.returnType=this.flowParseType(),t.typeParameters=null,this.finishNode(t,"FunctionTypeAnnotation")}return e},le.flowParseIntersectionType=function(){var e=this.startNode();this.eat(I.bitwiseAND);var t=this.flowParseAnonFunctionWithoutParens();for(e.types=[t];this.eat(I.bitwiseAND);)e.types.push(this.flowParseAnonFunctionWithoutParens());return 1===e.types.length?t:this.finishNode(e,"IntersectionTypeAnnotation")},le.flowParseUnionType=function(){var e=this.startNode();this.eat(I.bitwiseOR);var t=this.flowParseIntersectionType();for(e.types=[t];this.eat(I.bitwiseOR);)e.types.push(this.flowParseIntersectionType());return 1===e.types.length?t:this.finishNode(e,"UnionTypeAnnotation")},le.flowParseType=function(){var e=this.state.inType;this.state.inType=!0;var t=this.flowParseUnionType();return this.state.inType=e,t},le.flowParseTypeAnnotation=function(){var e=this.startNode();return e.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(e,"TypeAnnotation")},le.flowParseTypeAndPredicateAnnotation=function(){var e=this.startNode(),t=this.flowParseTypeAndPredicateInitialiser();return e.typeAnnotation=t[0],e.predicate=t[1],this.finishNode(e,"TypeAnnotation")},le.flowParseTypeAnnotatableIdentifier=function(){var e=this.flowParseRestrictedIdentifier();return this.match(I.colon)&&(e.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(e,e.type)),e},le.typeCastToParameter=function(e){return e.expression.typeAnnotation=e.typeAnnotation,this.finishNodeAt(e.expression,e.expression.type,e.typeAnnotation.end,e.typeAnnotation.loc.end)},le.flowParseVariance=function(){var e=null;return this.match(I.plusMin)&&("+"===this.state.value?e="plus":"-"===this.state.value&&(e="minus"),this.next()),e};var ce=function(e){e.extend("parseFunctionBody",function(e){return function(t,r){return this.match(I.colon)&&!r&&(t.returnType=this.flowParseTypeAndPredicateAnnotation()),e.call(this,t,r)}}),e.extend("parseStatement",function(e){return function(t,r){if(this.state.strict&&this.match(I.name)&&"interface"===this.state.value){var n=this.startNode();return this.next(),this.flowParseInterface(n)}return e.call(this,t,r)}}),e.extend("parseExpressionStatement",function(e){return function(t,r){if("Identifier"===r.type)if("declare"===r.name){if(this.match(I._class)||this.match(I.name)||this.match(I._function)||this.match(I._var)||this.match(I._export))return this.flowParseDeclare(t)}else if(this.match(I.name)){if("interface"===r.name)return this.flowParseInterface(t);if("type"===r.name)return this.flowParseTypeAlias(t);if("opaque"===r.name)return this.flowParseOpaqueType(t,!1)}return e.call(this,t,r)}}),e.extend("shouldParseExportDeclaration",function(e){return function(){return this.isContextual("type")||this.isContextual("interface")||this.isContextual("opaque")||e.call(this)}}),e.extend("isExportDefaultSpecifier",function(e){return function(){return(!this.match(I.name)||"type"!==this.state.value&&"interface"!==this.state.value&&"opaque"!==this.state.value)&&e.call(this)}}),e.extend("parseConditional",function(e){return function(t,r,n,i,a){if(a&&this.match(I.question)){var o=this.state.clone();try{return e.call(this,t,r,n,i)}catch(e){if(e instanceof SyntaxError)return this.state=o,a.start=e.pos||this.state.start,t;throw e}}return e.call(this,t,r,n,i)}}),e.extend("parseParenItem",function(e){return function(t,r,n){if(t=e.call(this,t,r,n),this.eat(I.question)&&(t.optional=!0),this.match(I.colon)){var i=this.startNodeAt(r,n);return i.expression=t,i.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(i,"TypeCastExpression")}return t}}),e.extend("parseExport",function(e){return function(t){return t=e.call(this,t),"ExportNamedDeclaration"===t.type&&(t.exportKind=t.exportKind||"value"),t}}),e.extend("parseExportDeclaration",function(e){return function(t){if(this.isContextual("type")){t.exportKind="type";var r=this.startNode();return this.next(),this.match(I.braceL)?(t.specifiers=this.parseExportSpecifiers(),this.parseExportFrom(t),null):this.flowParseTypeAlias(r)}if(this.isContextual("opaque")){t.exportKind="type";var n=this.startNode();return this.next(),this.flowParseOpaqueType(n,!1)}if(this.isContextual("interface")){t.exportKind="type";var i=this.startNode();return this.next(),this.flowParseInterface(i)}return e.call(this,t)}}),e.extend("parseClassId",function(e){return function(t){e.apply(this,arguments),this.isRelational("<")&&(t.typeParameters=this.flowParseTypeParameterDeclaration())}}),e.extend("isKeyword",function(e){return function(t){return(!this.state.inType||"void"!==t)&&e.call(this,t)}}),e.extend("readToken",function(e){return function(t){return!this.state.inType||62!==t&&60!==t?e.call(this,t):this.finishOp(I.relational,1)}}),e.extend("jsx_readToken",function(e){return function(){if(!this.state.inType)return e.call(this)}}),e.extend("toAssignable",function(e){return function(t,r,n){return"TypeCastExpression"===t.type?e.call(this,this.typeCastToParameter(t),r,n):e.call(this,t,r,n)}}),e.extend("toAssignableList",function(e){return function(t,r,n){for(var i=0;i2?n-2:0),a=2;a1114111||pe(o)!=o)throw RangeError("Invalid code point: "+o);o<=65535?e.push(o):(o-=65536,t=55296+(o>>10),r=o%1024+56320,e.push(t,r)),(n+1==i||e.length>16384)&&(a+=de.apply(null,e),e.length=0)}return a}}var he=fe,ve={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:"♦"},ye=/^[\da-fA-F]+$/,me=/^\d+$/;$.j_oTag=new R("...",!0,!0),I.jsxName=new N("jsxName"),I.jsxText=new N("jsxText",{beforeExpr:!0}),I.jsxTagStart=new N("jsxTagStart",{startsExpr:!0}),I.jsxTagEnd=new N("jsxTagEnd"),I.jsxTagStart.updateContext=function(){this.state.context.push($.j_expr),this.state.context.push($.j_oTag),this.state.exprAllowed=!1},I.jsxTagEnd.updateContext=function(e){var t=this.state.context.pop();t===$.j_oTag&&e===I.slash||t===$.j_cTag?(this.state.context.pop(),this.state.exprAllowed=this.curContext()===$.j_expr):this.state.exprAllowed=!0};var be=K.prototype;be.jsxReadToken=function(){for(var e="",t=this.state.pos;;){this.state.pos>=this.input.length&&this.raise(this.state.start,"Unterminated JSX contents");var r=this.input.charCodeAt(this.state.pos);switch(r){case 60:case 123:return this.state.pos===this.state.start?60===r&&this.state.exprAllowed?(++this.state.pos,this.finishToken(I.jsxTagStart)):this.getTokenFromCode(r):(e+=this.input.slice(t,this.state.pos),this.finishToken(I.jsxText,e));case 38:e+=this.input.slice(t,this.state.pos),e+=this.jsxReadEntity(),t=this.state.pos;break;default:u(r)?(e+=this.input.slice(t,this.state.pos),e+=this.jsxReadNewLine(!0),t=this.state.pos):++this.state.pos}}},be.jsxReadNewLine=function(e){var t=this.input.charCodeAt(this.state.pos),r=void 0;return++this.state.pos,13===t&&10===this.input.charCodeAt(this.state.pos)?(++this.state.pos,r=e?"\n":"\r\n"):r=String.fromCharCode(t),++this.state.curLine,this.state.lineStart=this.state.pos,r},be.jsxReadString=function(e){for(var t="",r=++this.state.pos;;){this.state.pos>=this.input.length&&this.raise(this.state.start,"Unterminated string constant");var 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):u(n)?(t+=this.input.slice(r,this.state.pos),t+=this.jsxReadNewLine(!1),r=this.state.pos):++this.state.pos}return t+=this.input.slice(r,this.state.pos++),this.finishToken(I.string,t)},be.jsxReadEntity=function(){for(var e="",t=0,r=void 0,n=this.input[this.state.pos],i=++this.state.pos;this.state.pos")}return r.openingElement=i,r.closingElement=a,r.children=n,this.match(I.relational)&&"<"===this.state.value&&this.raise(this.state.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(r,"JSXElement")},be.jsxParseElement=function(){var e=this.state.start,t=this.state.startLoc;return this.next(),this.jsxParseElementAt(e,t)};var ge=function(e){e.extend("parseExprAtom",function(e){return function(t){if(this.match(I.jsxText)){var r=this.parseLiteral(this.state.value,"JSXText");return r.extra=null,r}return this.match(I.jsxTagStart)?this.jsxParseElement():e.call(this,t)}}),e.extend("readToken",function(e){return function(t){if(this.state.inPropertyName)return e.call(this,t);var r=this.curContext();if(r===$.j_expr)return this.jsxReadToken();if(r===$.j_oTag||r===$.j_cTag){if(a(t))return this.jsxReadWord();if(62===t)return++this.state.pos,this.finishToken(I.jsxTagEnd);if((34===t||39===t)&&r===$.j_oTag)return this.jsxReadString(t)}return 60===t&&this.state.exprAllowed?(++this.state.pos,this.finishToken(I.jsxTagStart)):e.call(this,t)}}),e.extend("updateContext",function(e){return function(t){if(this.match(I.braceL)){var r=this.curContext();r===$.j_oTag?this.state.context.push($.braceExpression):r===$.j_expr?this.state.context.push($.templateQuasi):e.call(this,t),this.state.exprAllowed=!0}else{if(!this.match(I.slash)||t!==I.jsxTagStart)return e.call(this,t);this.state.context.length-=2,this.state.context.push($.j_cTag),this.state.exprAllowed=!1}}})};q.estree=se,q.flow=ce,q.jsx=ge,t.parse=v,t.parseExpression=y,t.tokTypes=I},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,r){var n=r(70),i=r(599),a=r(598),o=r(33),s=r(131),u=r(196),l={},c={},t=e.exports=function(e,t,r,f,d){var p,h,v,y,m=d?function(){return e}:u(e),b=n(r,f,t?2:1),g=0;if("function"!=typeof m)throw TypeError(e+" is not iterable!");if(a(m)){for(p=s(e.length);p>g;g++)if((y=t?b(o(h=e[g])[0],h[1]):b(e[g]))===l||y===c)return y}else for(v=m.call(e);!(h=v.next()).done;)if((y=i(v,b,h.value,t))===l||y===c)return y};t.BREAK=l,t.RETURN=c},function(e,t,r){var n=r(33),i=r(602),a=r(121),o=r(128)("IE_PROTO"),s=function(){},u=function(){var e,t=r(188)("iframe"),n=a.length;for(t.style.display="none",r(597).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write("