terser 3.10.12 → 3.10.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of terser might be problematic. Click here for more details.

package/dist/bundle.js CHANGED
@@ -41,5 +41,5 @@
41
41
  SUCH DAMAGE.
42
42
 
43
43
  ***********************************************************************/
44
- "use strict";function n(e){return e.split("")}function t(e,n){return n.indexOf(e)>=0}function i(e,n){for(var t=0,i=n.length;t<i;++t)if(e(n[t]))return n[t]}function r(e){Object.defineProperty(e.prototype,"stack",{get:function(){var e=new Error(this.message);e.name=this.name;try{throw e}catch(e){return e.stack}}})}function o(e,n){this.message=e,this.defs=n}function a(e,n,t){!0===e&&(e={});var i=e||{};if(t)for(var r in i)b(i,r)&&!b(n,r)&&o.croak("`"+r+"` is not a supported option",n);for(var r in n)b(n,r)&&(i[r]=e&&b(e,r)?e[r]:n[r]);return i}function s(e,n){var t=0;for(var i in n)b(n,i)&&(e[i]=n[i],t++);return t}function u(){}function c(){return!1}function f(){return!0}function l(){return this}function p(){return null}o.prototype=Object.create(Error.prototype),o.prototype.constructor=o,o.prototype.name="DefaultsError",r(o),o.croak=function(e,n){throw new o(e,n)};var d=function(){function e(e,o,a){var s,u=[],c=[];function f(){var f=o(e[s],s),l=f instanceof r;return l&&(f=f.v),f instanceof t?(f=f.v)instanceof i?c.push.apply(c,a?f.v.slice().reverse():f.v):c.push(f):f!==n&&(f instanceof i?u.push.apply(u,a?f.v.slice().reverse():f.v):u.push(f)),l}if(e instanceof Array)if(a){for(s=e.length;--s>=0&&!f(););u.reverse(),c.reverse()}else for(s=0;s<e.length&&!f();++s);else for(s in e)if(b(e,s)&&f())break;return c.concat(u)}e.at_top=function(e){return new t(e)},e.splice=function(e){return new i(e)},e.last=function(e){return new r(e)};var n=e.skip={};function t(e){this.v=e}function i(e){this.v=e}function r(e){this.v=e}return e}();function h(e,n){e.indexOf(n)<0&&e.push(n)}function m(e,n){return e.replace(/\{(.+?)\}/g,function(e,t){return n&&n[t]})}function _(e,n){for(var t=e.length;--t>=0;)e[t]===n&&e.splice(t,1)}function v(e,n){if(e.length<2)return e.slice();return function e(t){if(t.length<=1)return t;var i=Math.floor(t.length/2),r=t.slice(0,i),o=t.slice(i);return function(e,t){for(var i=[],r=0,o=0,a=0;r<e.length&&o<t.length;)n(e[r],t[o])<=0?i[a++]=e[r++]:i[a++]=t[o++];return r<e.length&&i.push.apply(i,e.slice(r)),o<t.length&&i.push.apply(i,t.slice(o)),i}(r=e(r),o=e(o))}(e)}function g(e){e instanceof Array||(e=e.split(" "));var n="",t=[];e:for(var i=0;i<e.length;++i){for(var r=0;r<t.length;++r)if(t[r][0].length==e[i].length){t[r].push(e[i]);continue e}t.push([e[i]])}function o(e){return JSON.stringify(e).replace(/[\u2028\u2029]/g,function(e){switch(e){case"\u2028":return"\\u2028";case"\u2029":return"\\u2029"}return e})}function a(e){if(1==e.length)return n+="return str === "+o(e[0])+";";n+="switch(str){";for(var t=0;t<e.length;++t)n+="case "+o(e[t])+":";n+="return true}return false;"}if(t.length>3){t.sort(function(e,n){return n.length-e.length}),n+="switch(str.length){";for(i=0;i<t.length;++i){var s=t[i];n+="case "+s[0].length+":",a(s)}n+="}"}else a(e);return new Function("str",n)}function D(e,n){for(var t=e.length;--t>=0;)if(!n(e[t]))return!1;return!0}function y(){this._values=Object.create(null),this._size=0}function b(e,n){return Object.prototype.hasOwnProperty.call(e,n)}function E(e){for(var n,t=e.parent(-1),i=0;n=e.parent(i);i++){if(n instanceof k&&n.body===t)return!0;if(!(n instanceof Be&&n.expressions[0]===t||"Call"==n.TYPE&&n.expression===t||n instanceof Te&&n.expression===t||n instanceof Oe&&n.expression===t||n instanceof Ne&&n.condition===t||n instanceof ze&&n.left===t||n instanceof qe&&n.expression===t))return!1;t=n}}function w(e,n){return!0===e||e instanceof RegExp&&e.test(n)}function x(n,t,i,r){arguments.length<4&&(r=F);var o=t=t?t.split(/\s+/):[];r&&r.PROPS&&(t=t.concat(r.PROPS));for(var a="return function AST_"+n+"(props){ if (props) { ",s=t.length;--s>=0;)a+="this."+t[s]+" = props."+t[s]+";";var u=r&&new r;(u&&u.initialize||i&&i.initialize)&&(a+="this.initialize();"),a+="}}";var c=new Function(a)();if(u&&(c.prototype=u,c.BASE=r),r&&r.SUBCLASSES.push(c),c.prototype.CTOR=c,c.PROPS=t||null,c.SELF_PROPS=o,c.SUBCLASSES=[],n&&(c.prototype.TYPE=c.TYPE=n),i)for(s in i)b(i,s)&&(/^\$/.test(s)?c[s.substr(1)]=i[s]:c.prototype[s]=i[s]);return c.DEFMETHOD=function(e,n){this.prototype[e]=n},void 0!==e&&(e["AST_"+n]=c),c}y.prototype={set:function(e,n){return this.has(e)||++this._size,this._values["$"+e]=n,this},add:function(e,n){return this.has(e)?this.get(e).push(n):this.set(e,[n]),this},get:function(e){return this._values["$"+e]},del:function(e){return this.has(e)&&(--this._size,delete this._values["$"+e]),this},has:function(e){return"$"+e in this._values},each:function(e){for(var n in this._values)e(this._values[n],n.substr(1))},size:function(){return this._size},map:function(e){var n=[];for(var t in this._values)n.push(e(this._values[t],t.substr(1)));return n},clone:function(){var e=new y;for(var n in this._values)e._values[n]=this._values[n];return e._size=this._size,e},toObject:function(){return this._values}},y.fromObject=function(e){var n=new y;return n._size=s(n._values,e),n};var A=x("Token","type value line col pos endline endcol endpos nlb comments_before comments_after file raw",{},null),F=x("Node","start end",{_clone:function(e){if(e){var n=this.clone();return n.transform(new Dt(function(e){if(e!==n)return e.clone(!0)}))}return new this.CTOR(this)},clone:function(e){return this._clone(e)},$documentation:"Base class of all AST nodes",$propdoc:{start:"[AST_Token] The first token of this node",end:"[AST_Token] The last token of this node"},_walk:function(e){return e._visit(this)},walk:function(e){return this._walk(e)}},null);F.warn_function=null,F.warn=function(e,n){F.warn_function&&F.warn_function(m(e,n))};var k=x("Statement",null,{$documentation:"Base class of all statements"}),C=x("Debugger",null,{$documentation:"Represents a debugger statement"},k),B=x("Directive","value quote",{$documentation:'Represents a directive, like "use strict";',$propdoc:{value:"[string] The value of this directive as a plain string (it's not an AST_String!)",quote:"[string] the original quote character"}},k),S=x("SimpleStatement","body",{$documentation:"A statement consisting of an expression, i.e. a = 1 + 2",$propdoc:{body:"[AST_Node] an expression node (should not be instanceof AST_Statement)"},_walk:function(e){return e._visit(this,function(){this.body._walk(e)})}},k);function T(e,n){var t=e.body;if(t instanceof F)t._walk(n);else for(var i=0,r=t.length;i<r;i++)t[i]._walk(n)}function O(e){var n=this._clone(e);return this.block_scope&&(n.block_scope=this.block_scope.clone()),n}var $=x("Block","body block_scope",{$documentation:"A body of statements (usually braced)",$propdoc:{body:"[AST_Statement*] an array of statements",block_scope:"[AST_Scope] the block scope"},_walk:function(e){return e._visit(this,function(){T(this,e)})},clone:O},k),M=x("BlockStatement",null,{$documentation:"A block statement"},$),q=x("EmptyStatement",null,{$documentation:"The empty statement (empty block or simply a semicolon)"},k),z=x("StatementWithBody","body",{$documentation:"Base class for all statements that contain one nested body: `For`, `ForIn`, `Do`, `While`, `With`",$propdoc:{body:"[AST_Statement] the body; this should always be present, even if it's an AST_EmptyStatement"}},k),N=x("LabeledStatement","label",{$documentation:"Statement with a label",$propdoc:{label:"[AST_Label] a label definition"},_walk:function(e){return e._visit(this,function(){this.label._walk(e),this.body._walk(e)})},clone:function(e){var n=this._clone(e);if(e){var t=n.label,i=this.label;n.walk(new qn(function(e){e instanceof ue&&e.label&&e.label.thedef===i&&(e.label.thedef=t,t.references.push(e))}))}return n}},z),j=x("IterationStatement","block_scope",{$documentation:"Internal class. All loops inherit from it.",$propdoc:{block_scope:"[AST_Scope] the block scope for this iteration statement."},clone:O},z),I=x("DWLoop","condition",{$documentation:"Base class for do/while statements",$propdoc:{condition:"[AST_Node] the loop condition. Should not be instanceof AST_Statement"}},j),H=x("Do",null,{$documentation:"A `do` statement",_walk:function(e){return e._visit(this,function(){this.body._walk(e),this.condition._walk(e)})}},I),R=x("While",null,{$documentation:"A `while` statement",_walk:function(e){return e._visit(this,function(){this.condition._walk(e),this.body._walk(e)})}},I),P=x("For","init condition step",{$documentation:"A `for` statement",$propdoc:{init:"[AST_Node?] the `for` initialization code, or null if empty",condition:"[AST_Node?] the `for` termination clause, or null if empty",step:"[AST_Node?] the `for` update clause, or null if empty"},_walk:function(e){return e._visit(this,function(){this.init&&this.init._walk(e),this.condition&&this.condition._walk(e),this.step&&this.step._walk(e),this.body._walk(e)})}},j),U=x("ForIn","init object",{$documentation:"A `for ... in` statement",$propdoc:{init:"[AST_Node] the `for/in` initialization code",object:"[AST_Node] the object that we're looping through"},_walk:function(e){return e._visit(this,function(){this.init._walk(e),this.object._walk(e),this.body._walk(e)})}},j),L=x("ForOf","await",{$documentation:"A `for ... of` statement"},U),V=x("With","expression",{$documentation:"A `with` statement",$propdoc:{expression:"[AST_Node] the `with` expression"},_walk:function(e){return e._visit(this,function(){this.expression._walk(e),this.body._walk(e)})}},z),Y=x("Scope","variables functions uses_with uses_eval parent_scope enclosed cname",{$documentation:"Base class for all statements introducing a lexical scope",$propdoc:{variables:"[Object/S] a map of name -> SymbolDef for all variables/functions defined in this scope",functions:"[Object/S] like `variables`, but only lists function declarations",uses_with:"[boolean/S] tells whether this scope uses the `with` statement",uses_eval:"[boolean/S] tells whether this scope contains a direct call to the global `eval`",parent_scope:"[AST_Scope?/S] link to the parent scope",enclosed:"[SymbolDef*/S] a list of all symbol definitions that are accessed from this scope or any subscopes",cname:"[integer/S] current index for mangling variables (used internally by the mangler)"},get_defun_scope:function(){for(var e=this;e.is_block_scope();)e=e.parent_scope;return e},clone:function(e){var n=this._clone(e);return this.variables&&(n.variables=this.variables.clone()),this.functions&&(n.functions=this.functions.clone()),this.enclosed&&(n.enclosed=this.enclosed.slice()),n},pinned:function(){return this.uses_eval||this.uses_with}},$),W=x("Toplevel","globals",{$documentation:"The toplevel scope",$propdoc:{globals:"[Object/S] a map of name -> SymbolDef for all undeclared names"},wrap_commonjs:function(e){var n=this.body,t="(function(exports){'$ORIG';})(typeof "+e+"=='undefined'?("+e+"={}):"+e+");";return t=(t=gt(t)).transform(new Dt(function(e){if(e instanceof B&&"$ORIG"==e.value)return d.splice(n)}))},wrap_enclose:function(e){"string"!=typeof e&&(e="");var n=e.indexOf(":");n<0&&(n=e.length);var t=this.body;return gt(["(function(",e.slice(0,n),'){"$ORIG"})(',e.slice(n+1),")"].join("")).transform(new Dt(function(e){if(e instanceof B&&"$ORIG"==e.value)return d.splice(t)}))}},Y),G=x("Expansion","expression",{$documentation:"An expandible argument, such as ...rest, a splat, such as [1,2,...all], or an expansion in a variable declaration, such as var [first, ...rest] = list",$propdoc:{expression:"[AST_Node] the thing to be expanded"},_walk:function(e){var n=this;return e._visit(this,function(){n.expression.walk(e)})}}),X=x("Lambda","name argnames uses_arguments is_generator async",{$documentation:"Base class for functions",$propdoc:{name:"[AST_SymbolDeclaration?] the name of this function",argnames:"[AST_SymbolFunarg|AST_Destructuring|AST_Expansion|AST_DefaultAssign*] array of function arguments, destructurings, or expanding arguments",uses_arguments:"[boolean/S] tells whether this function accesses the arguments array",is_generator:"[boolean] is this a generator method",async:"[boolean] is this method async"},args_as_names:function(){for(var e=[],n=0;n<this.argnames.length;n++)this.argnames[n]instanceof ee?e=e.concat(this.argnames[n].all_symbols()):e.push(this.argnames[n]);return e},_walk:function(e){return e._visit(this,function(){this.name&&this.name._walk(e);for(var n=this.argnames,t=0,i=n.length;t<i;t++)n[t]._walk(e);T(this,e)})}},Y),J=x("Accessor",null,{$documentation:"A setter/getter function. The `name` property is always null."},X),Z=x("Function","inlined",{$documentation:"A function expression"},X),K=x("Arrow","inlined",{$documentation:"An ES6 Arrow function ((a) => b)"},X),Q=x("Defun","inlined",{$documentation:"A function definition"},X),ee=x("Destructuring","names is_array",{$documentation:"A destructuring of several names. Used in destructuring assignment and with destructuring function argument names",$propdoc:{names:"[AST_Node*] Array of properties or elements",is_array:"[Boolean] Whether the destructuring represents an object or array"},_walk:function(e){return e._visit(this,function(){this.names.forEach(function(n){n._walk(e)})})},all_symbols:function(){var e=[];return this.walk(new qn(function(n){n instanceof Je&&e.push(n),n instanceof G&&e.push(n.expression)})),e}}),ne=x("PrefixedTemplateString","template_string prefix",{$documentation:"A templatestring with a prefix, such as String.raw`foobarbaz`",$propdoc:{template_string:"[AST_TemplateString] The template string",prefix:"[AST_SymbolRef|AST_PropAccess] The prefix, which can be a symbol such as `foo` or a dotted expression such as `String.raw`."},_walk:function(e){this.prefix._walk(e),this.template_string._walk(e)}}),te=x("TemplateString","segments",{$documentation:"A template string literal",$propdoc:{segments:"[AST_Node*] One or more segments, starting with AST_TemplateSegment. AST_Node may follow AST_TemplateSegment, but each AST_Node must be followed by AST_TemplateSegment."},_walk:function(e){return e._visit(this,function(){this.segments.forEach(function(n){n._walk(e)})})}}),ie=x("TemplateSegment","value raw",{$documentation:"A segment of a template string literal",$propdoc:{value:"Content of the segment",raw:"Raw content of the segment"}}),re=x("Jump",null,{$documentation:"Base class for \u201cjumps\u201d (for now that's `return`, `throw`, `break` and `continue`)"},k),oe=x("Exit","value",{$documentation:"Base class for \u201cexits\u201d (`return` and `throw`)",$propdoc:{value:"[AST_Node?] the value returned or thrown by this statement; could be null for AST_Return"},_walk:function(e){return e._visit(this,this.value&&function(){this.value._walk(e)})}},re),ae=x("Return",null,{$documentation:"A `return` statement"},oe),se=x("Throw",null,{$documentation:"A `throw` statement"},oe),ue=x("LoopControl","label",{$documentation:"Base class for loop control statements (`break` and `continue`)",$propdoc:{label:"[AST_LabelRef?] the label, or null if none"},_walk:function(e){return e._visit(this,this.label&&function(){this.label._walk(e)})}},re),ce=x("Break",null,{$documentation:"A `break` statement"},ue),fe=x("Continue",null,{$documentation:"A `continue` statement"},ue),le=x("If","condition alternative",{$documentation:"A `if` statement",$propdoc:{condition:"[AST_Node] the `if` condition",alternative:"[AST_Statement?] the `else` part, or null if not present"},_walk:function(e){return e._visit(this,function(){this.condition._walk(e),this.body._walk(e),this.alternative&&this.alternative._walk(e)})}},z),pe=x("Switch","expression",{$documentation:"A `switch` statement",$propdoc:{expression:"[AST_Node] the `switch` \u201cdiscriminant\u201d"},_walk:function(e){return e._visit(this,function(){this.expression._walk(e),T(this,e)})}},$),de=x("SwitchBranch",null,{$documentation:"Base class for `switch` branches"},$),he=x("Default",null,{$documentation:"A `default` switch branch"},de),me=x("Case","expression",{$documentation:"A `case` switch branch",$propdoc:{expression:"[AST_Node] the `case` expression"},_walk:function(e){return e._visit(this,function(){this.expression._walk(e),T(this,e)})}},de),_e=x("Try","bcatch bfinally",{$documentation:"A `try` statement",$propdoc:{bcatch:"[AST_Catch?] the catch block, or null if not present",bfinally:"[AST_Finally?] the finally block, or null if not present"},_walk:function(e){return e._visit(this,function(){T(this,e),this.bcatch&&this.bcatch._walk(e),this.bfinally&&this.bfinally._walk(e)})}},$),ve=x("Catch","argname",{$documentation:"A `catch` node; only makes sense as part of a `try` statement",$propdoc:{argname:"[AST_SymbolCatch|AST_Destructuring|AST_Expansion|AST_DefaultAssign] symbol for the exception"},_walk:function(e){return e._visit(this,function(){this.argname&&this.argname._walk(e),T(this,e)})}},$),ge=x("Finally",null,{$documentation:"A `finally` node; only makes sense as part of a `try` statement"},$),De=x("Definitions","definitions",{$documentation:"Base class for `var` or `const` nodes (variable declarations/initializations)",$propdoc:{definitions:"[AST_VarDef*] array of variable definitions"},_walk:function(e){return e._visit(this,function(){for(var n=this.definitions,t=0,i=n.length;t<i;t++)n[t]._walk(e)})}},k),ye=x("Var",null,{$documentation:"A `var` statement"},De),be=x("Let",null,{$documentation:"A `let` statement"},De),Ee=x("Const",null,{$documentation:"A `const` statement"},De),we=x("NameMapping","foreign_name name",{$documentation:"The part of the export/import statement that declare names from a module.",$propdoc:{foreign_name:"[AST_SymbolExportForeign|AST_SymbolImportForeign] The name being exported/imported (as specified in the module)",name:"[AST_SymbolExport|AST_SymbolImport] The name as it is visible to this module."},_walk:function(e){return e._visit(this,function(){this.foreign_name._walk(e),this.name._walk(e)})}}),xe=x("Import","imported_name imported_names module_name",{$documentation:"An `import` statement",$propdoc:{imported_name:"[AST_SymbolImport] The name of the variable holding the module's default export.",imported_names:"[AST_NameMapping*] The names of non-default imported variables",module_name:"[AST_String] String literal describing where this module came from"},_walk:function(e){return e._visit(this,function(){this.imported_name&&this.imported_name._walk(e),this.imported_names&&this.imported_names.forEach(function(n){n._walk(e)}),this.module_name._walk(e)})}}),Ae=x("Export","exported_definition exported_value is_default exported_names module_name",{$documentation:"An `export` statement",$propdoc:{exported_definition:"[AST_Defun|AST_Definitions|AST_DefClass?] An exported definition",exported_value:"[AST_Node?] An exported value",exported_names:"[AST_NameMapping*?] List of exported names",module_name:"[AST_String?] Name of the file to load exports from",is_default:"[Boolean] Whether this is the default exported value of this module"},_walk:function(e){e._visit(this,function(){this.exported_definition&&this.exported_definition._walk(e),this.exported_value&&this.exported_value._walk(e),this.exported_names&&this.exported_names.forEach(function(n){n._walk(e)}),this.module_name&&this.module_name._walk(e)})}},k),Fe=x("VarDef","name value",{$documentation:"A variable declaration; only appears in a AST_Definitions node",$propdoc:{name:"[AST_Destructuring|AST_SymbolConst|AST_SymbolLet|AST_SymbolVar] name of the variable",value:"[AST_Node?] initializer, or null of there's no initializer"},_walk:function(e){return e._visit(this,function(){this.name._walk(e),this.value&&this.value._walk(e)})}}),ke=x("Call","expression args",{$documentation:"A function call expression",$propdoc:{expression:"[AST_Node] expression to invoke as function",args:"[AST_Node*] array of arguments"},_walk:function(e){return e._visit(this,function(){for(var n=this.args,t=0,i=n.length;t<i;t++)n[t]._walk(e);this.expression._walk(e)})}}),Ce=x("New",null,{$documentation:"An object instantiation. Derives from a function call since it has exactly the same properties"},ke),Be=x("Sequence","expressions",{$documentation:"A sequence expression (comma-separated expressions)",$propdoc:{expressions:"[AST_Node*] array of expressions (at least two)"},_walk:function(e){return e._visit(this,function(){this.expressions.forEach(function(n){n._walk(e)})})}}),Se=x("PropAccess","expression property",{$documentation:'Base class for property access expressions, i.e. `a.foo` or `a["foo"]`',$propdoc:{expression:"[AST_Node] the \u201ccontainer\u201d expression",property:"[AST_Node|string] the property to access. For AST_Dot this is always a plain string, while for AST_Sub it's an arbitrary AST_Node"}}),Te=x("Dot",null,{$documentation:"A dotted property access expression",_walk:function(e){return e._visit(this,function(){this.expression._walk(e)})}},Se),Oe=x("Sub",null,{$documentation:'Index-style property access, i.e. `a["foo"]`',_walk:function(e){return e._visit(this,function(){this.expression._walk(e),this.property._walk(e)})}},Se),$e=x("Unary","operator expression",{$documentation:"Base class for unary expressions",$propdoc:{operator:"[string] the operator",expression:"[AST_Node] expression that this unary operator applies to"},_walk:function(e){return e._visit(this,function(){this.expression._walk(e)})}}),Me=x("UnaryPrefix",null,{$documentation:"Unary prefix expression, i.e. `typeof i` or `++i`"},$e),qe=x("UnaryPostfix",null,{$documentation:"Unary postfix expression, i.e. `i++`"},$e),ze=x("Binary","operator left right",{$documentation:"Binary expression, i.e. `a + b`",$propdoc:{left:"[AST_Node] left-hand side expression",operator:"[string] the operator",right:"[AST_Node] right-hand side expression"},_walk:function(e){return e._visit(this,function(){this.left._walk(e),this.right._walk(e)})}}),Ne=x("Conditional","condition consequent alternative",{$documentation:"Conditional expression using the ternary operator, i.e. `a ? b : c`",$propdoc:{condition:"[AST_Node]",consequent:"[AST_Node]",alternative:"[AST_Node]"},_walk:function(e){return e._visit(this,function(){this.condition._walk(e),this.consequent._walk(e),this.alternative._walk(e)})}}),je=x("Assign",null,{$documentation:"An assignment expression \u2014 `a = b + 5`"},ze),Ie=x("DefaultAssign",null,{$documentation:"A default assignment expression like in `(a = 3) => a`"},ze),He=x("Array","elements",{$documentation:"An array literal",$propdoc:{elements:"[AST_Node*] array of elements"},_walk:function(e){return e._visit(this,function(){for(var n=this.elements,t=0,i=n.length;t<i;t++)n[t]._walk(e)})}}),Re=x("Object","properties",{$documentation:"An object literal",$propdoc:{properties:"[AST_ObjectProperty*] array of properties"},_walk:function(e){return e._visit(this,function(){for(var n=this.properties,t=0,i=n.length;t<i;t++)n[t]._walk(e)})}}),Pe=x("ObjectProperty","key value",{$documentation:"Base class for literal object properties",$propdoc:{key:"[string|AST_Node] property name. For ObjectKeyVal this is a string. For getters, setters and computed property this is an AST_Node.",value:"[AST_Node] property value. For getters and setters this is an AST_Accessor."},_walk:function(e){return e._visit(this,function(){this.key instanceof F&&this.key._walk(e),this.value._walk(e)})}}),Ue=x("ObjectKeyVal","quote",{$documentation:"A key: value object property",$propdoc:{quote:"[string] the original quote character"}},Pe),Le=x("ObjectSetter","quote static",{$propdoc:{quote:"[string|undefined] the original quote character, if any",static:"[boolean] whether this is a static setter (classes only)"},$documentation:"An object setter property"},Pe),Ve=x("ObjectGetter","quote static",{$propdoc:{quote:"[string|undefined] the original quote character, if any",static:"[boolean] whether this is a static getter (classes only)"},$documentation:"An object getter property"},Pe),Ye=x("ConciseMethod","quote static is_generator async",{$propdoc:{quote:"[string|undefined] the original quote character, if any",static:"[boolean] is this method static (classes only)",is_generator:"[boolean] is this a generator method",async:"[boolean] is this method async"},$documentation:"An ES6 concise method inside an object or class"},Pe),We=x("Class","name extends properties inlined",{$propdoc:{name:"[AST_SymbolClass|AST_SymbolDefClass?] optional class name.",extends:"[AST_Node]? optional parent class",properties:"[AST_ObjectProperty*] array of properties"},$documentation:"An ES6 class",_walk:function(e){return e._visit(this,function(){this.name&&this.name._walk(e),this.extends&&this.extends._walk(e),this.properties.forEach(function(n){n._walk(e)})})}},Y),Ge=x("DefClass",null,{$documentation:"A class definition"},We),Xe=x("ClassExpression",null,{$documentation:"A class expression."},We),Je=x("Symbol","scope name thedef",{$propdoc:{name:"[string] name of this symbol",scope:"[AST_Scope/S] the current scope (not necessarily the definition scope)",thedef:"[SymbolDef/S] the definition of this symbol"},$documentation:"Base class for all symbols"}),Ze=x("NewTarget",null,{$documentation:"A reference to new.target"}),Ke=x("SymbolDeclaration","init",{$documentation:"A declaration symbol (symbol in var/const, function name or argument, symbol in catch)"},Je),Qe=x("SymbolVar",null,{$documentation:"Symbol defining a variable"},Ke),en=x("SymbolBlockDeclaration",null,{$documentation:"Base class for block-scoped declaration symbols"},Ke),nn=x("SymbolConst",null,{$documentation:"A constant declaration"},en),tn=x("SymbolLet",null,{$documentation:"A block-scoped `let` declaration"},en),rn=x("SymbolFunarg",null,{$documentation:"Symbol naming a function argument"},Qe),on=x("SymbolDefun",null,{$documentation:"Symbol defining a function"},Ke),an=x("SymbolMethod",null,{$documentation:"Symbol in an object defining a method"},Je),sn=x("SymbolLambda",null,{$documentation:"Symbol naming a function expression"},Ke),un=x("SymbolDefClass",null,{$documentation:"Symbol naming a class's name in a class declaration. Lexically scoped to its containing scope, and accessible within the class."},en),cn=x("SymbolClass",null,{$documentation:"Symbol naming a class's name. Lexically scoped to the class."},Ke),fn=x("SymbolCatch",null,{$documentation:"Symbol naming the exception in catch"},en),ln=x("SymbolImport",null,{$documentation:"Symbol referring to an imported name"},en),pn=x("SymbolImportForeign",null,{$documentation:"A symbol imported from a module, but it is defined in the other module, and its real name is irrelevant for this module's purposes"},Je),dn=x("Label","references",{$documentation:"Symbol naming a label (declaration)",$propdoc:{references:"[AST_LoopControl*] a list of nodes referring to this label"},initialize:function(){this.references=[],this.thedef=this}},Je),hn=x("SymbolRef",null,{$documentation:"Reference to some symbol (not definition/declaration)"},Je),mn=x("SymbolExport",null,{$documentation:"Symbol referring to a name to export"},hn),_n=x("SymbolExportForeign",null,{$documentation:"A symbol exported from this module, but it is used in the other module, and its real name is irrelevant for this module's purposes"},Je),vn=x("LabelRef",null,{$documentation:"Reference to a label symbol"},Je),gn=x("This",null,{$documentation:"The `this` symbol"},Je),Dn=x("Super",null,{$documentation:"The `super` symbol"},gn),yn=x("Constant",null,{$documentation:"Base class for all constants",getValue:function(){return this.value}}),bn=x("String","value quote",{$documentation:"A string literal",$propdoc:{value:"[string] the contents of this string",quote:"[string] the original quote character"}},yn),En=x("Number","value literal",{$documentation:"A number literal",$propdoc:{value:"[number] the numeric value",literal:"[string] numeric value as string (optional)"}},yn),wn=x("RegExp","value",{$documentation:"A regexp literal",$propdoc:{value:"[RegExp] the actual regexp"}},yn),xn=x("Atom",null,{$documentation:"Base class for atoms"},yn),An=x("Null",null,{$documentation:"The `null` atom",value:null},xn),Fn=x("NaN",null,{$documentation:"The impossible value",value:NaN},xn),kn=x("Undefined",null,{$documentation:"The `undefined` value",value:void 0},xn),Cn=x("Hole",null,{$documentation:"A hole in an array",value:void 0},xn),Bn=x("Infinity",null,{$documentation:"The `Infinity` value",value:1/0},xn),Sn=x("Boolean",null,{$documentation:"Base class for booleans"},xn),Tn=x("False",null,{$documentation:"The `false` atom",value:!1},Sn),On=x("True",null,{$documentation:"The `true` atom",value:!0},Sn),$n=x("Await","expression",{$documentation:"An `await` statement",$propdoc:{expression:"[AST_Node] the mandatory expression being awaited"},_walk:function(e){return e._visit(this,function(){this.expression._walk(e)})}}),Mn=x("Yield","expression is_star",{$documentation:"A `yield` statement",$propdoc:{expression:"[AST_Node?] the value returned or thrown by this statement; could be null (representing undefined) but only when is_star is set to false",is_star:"[Boolean] Whether this is a yield or yield* statement"},_walk:function(e){return e._visit(this,this.expression&&function(){this.expression._walk(e)})}});function qn(e){this.visit=e,this.stack=[],this.directives=Object.create(null)}qn.prototype={_visit:function(e,n){this.push(e);var t=this.visit(e,n?function(){n.call(e)}:u);return!t&&n&&n.call(e),this.pop(),t},parent:function(e){return this.stack[this.stack.length-2-(e||0)]},push:function(e){e instanceof X?this.directives=Object.create(this.directives):e instanceof B&&!this.directives[e.value]?this.directives[e.value]=e:e instanceof We&&(this.directives=Object.create(this.directives),this.directives["use strict"]||(this.directives["use strict"]=e)),this.stack.push(e)},pop:function(){var e=this.stack.pop();(e instanceof X||e instanceof We)&&(this.directives=Object.getPrototypeOf(this.directives))},self:function(){return this.stack[this.stack.length-1]},find_parent:function(e){for(var n=this.stack,t=n.length;--t>=0;){var i=n[t];if(i instanceof e)return i}},has_directive:function(e){var n=this.directives[e];if(n)return n;var t=this.stack[this.stack.length-1];if(t instanceof Y&&t.body)for(var i=0;i<t.body.length;++i){var r=t.body[i];if(!(r instanceof B))break;if(r.value==e)return r}},loopcontrol_target:function(e){var n=this.stack;if(e.label)for(var t=n.length;--t>=0;){if((i=n[t])instanceof N&&i.label.name==e.label.name)return i.body}else for(t=n.length;--t>=0;){var i;if((i=n[t])instanceof j||e instanceof ce&&i instanceof pe)return i}}};var zn="break case catch class const continue debugger default delete do else export extends finally for function if in instanceof let new return switch throw try typeof var void while with",Nn="false null true",jn="enum implements import interface package private protected public static super this "+Nn+" "+zn,In="return new delete throw else case yield await";zn=g(zn),jn=g(jn),In=g(In),Nn=g(Nn);var Hn=g(n("+-*&%=<>!?|~^")),Rn=/[0-9a-f]/i,Pn=/^0x[0-9a-f]+$/i,Un=/^0[0-7]+$/,Ln=/^0o[0-7]+$/i,Vn=/^0b[01]+$/i,Yn=/^\d*\.?\d*(?:e[+-]?\d*(?:\d\.?|\.?\d)\d*)?$/i,Wn=g(["in","instanceof","typeof","new","void","delete","++","--","+","-","!","~","&","|","^","*","**","/","%",">>","<<",">>>","<",">","<=",">=","==","===","!=","!==","?","=","+=","-=","/=","*=","**=","%=",">>=","<<=",">>>=","|=","^=","&=","&&","||"]),Gn=g(n(" \xa0\n\r\t\f\v\u200b\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u2028\u2029\u202f\u205f\u3000\ufeff")),Xn=g(n("\n\r\u2028\u2029")),Jn=g(n(";]),:")),Zn=g(n("[{(,;:")),Kn=g(n("[]{}(),;:")),Qn={ID_Start:/[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,ID_Continue:/[0-9A-Z_a-z\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};function et(e,n){var t=e.charAt(n);if(nt(t)){var i=e.charAt(n+1);if(tt(i))return t+i}if(tt(t)){var r=e.charAt(n-1);if(nt(r))return r+t}return t}function nt(e){return"string"==typeof e&&(e=e.charCodeAt(0)),e>=55296&&e<=56319}function tt(e){return"string"==typeof e&&(e=e.charCodeAt(0)),e>=56320&&e<=57343}function it(e){return e>=48&&e<=57}function rt(e){return"string"==typeof e&&!jn(e)}function ot(e){var n=e.charCodeAt(0);return Qn.ID_Start.test(e)||36==n||95==n}function at(e){var n=e.charCodeAt(0);return Qn.ID_Continue.test(e)||36==n||95==n||8204==n||8205==n}function st(e){return/^[a-z_$][a-z0-9_$]*$/i.test(e)}function ut(e,n,t,i,r){this.message=e,this.filename=n,this.line=t,this.col=i,this.pos=r}function ct(e,n,t,i,r){throw new ut(e,n,t,i,r)}function ft(e,n,t){return e.type==n&&(null==t||e.value==t)}ut.prototype=Object.create(Error.prototype),ut.prototype.constructor=ut,ut.prototype.name="SyntaxError",r(ut);var lt={};function pt(e,n,t,i){var r={text:e,filename:n,pos:0,tokpos:0,line:1,tokline:0,col:0,tokcol:0,newline_before:!1,regex_allowed:!1,brace_counter:0,template_braces:[],comments_before:[],directives:{},directive_stack:[]};function o(){return et(r.text,r.pos)}function a(e,n){var t=et(r.text,r.pos++);if(e&&!t)throw lt;return Xn(t)?(r.newline_before=r.newline_before||!n,++r.line,r.col=0,n||"\r"!=t||"\n"!=o()||(++r.pos,t="\n")):(t.length>1&&(++r.pos,++r.col),++r.col),t}function s(e){for(;e-- >0;)a()}function u(e){return r.text.substr(r.pos,e.length)==e}function c(e,n){var t=r.text.indexOf(e,r.pos);if(n&&-1==t)throw lt;return t}function f(){r.tokline=r.line,r.tokcol=r.col,r.tokpos=r.pos}var l=!1,p=null;function d(t,i,o){r.regex_allowed="operator"==t&&!ht(i)||"keyword"==t&&In(i)||"punc"==t&&Zn(i)||"arrow"==t,"punc"==t&&"."==i?l=!0:o||(l=!1);var a={type:t,value:i,line:r.tokline,col:r.tokcol,pos:r.tokpos,endline:r.line,endcol:r.col,endpos:r.pos,nlb:r.newline_before,file:n};return/^(?:num|string|regexp)$/i.test(t)&&(a.raw=e.substring(a.pos,a.endpos)),o||(a.comments_before=r.comments_before,a.comments_after=r.comments_before=[]),r.newline_before=!1,a=new A(a),o||(p=a),a}function h(){for(;Gn(o());)a()}function m(e){ct(e,n,r.tokline,r.tokcol,r.tokpos)}function _(e){var n=!1,t=!1,i=!1,r="."==e,s=function(e){for(var n,t="",i=0;(n=o())&&e(n,i++);)t+=a();return t}(function(o,a){switch(o.charCodeAt(0)){case 98:case 66:return i=!0;case 111:case 79:case 120:case 88:return!i&&(i=!0);case 101:case 69:return!!i||!n&&(n=t=!0);case 45:return t||0==a&&!e;case 43:return t;case t=!1,46:return!(r||i||n)&&(r=!0)}return Rn.test(o)});e&&(s=e+s),Un.test(s)&&B.has_directive("use strict")&&m("Legacy octal literals are not allowed in strict mode");var u=function(e){if(Pn.test(e))return parseInt(e.substr(2),16);if(Un.test(e))return parseInt(e.substr(1),8);if(Ln.test(e))return parseInt(e.substr(2),8);if(Vn.test(e))return parseInt(e.substr(2),2);if(Yn.test(e))return parseFloat(e);var n=parseFloat(e);return n==e?n:void 0}(s);if(!isNaN(u))return d("num",u);m("Invalid syntax: "+s)}function v(e,n,t){var i,s=a(!0,e);switch(s.charCodeAt(0)){case 110:return"\n";case 114:return"\r";case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 120:return String.fromCharCode(g(2,n));case 117:if("{"==o()){for(a(!0),"}"===o()&&m("Expecting hex-character between {}");"0"==o();)a(!0);var u,f=c("}",!0)-r.pos;return(f>6||(u=g(f,n))>1114111)&&m("Unicode reference out of bounds"),a(!0),(i=u)>65535?(i-=65536,String.fromCharCode(55296+(i>>10))+String.fromCharCode(i%1024+56320)):String.fromCharCode(i)}return String.fromCharCode(g(4,n));case 10:return"";case 13:if("\n"==o())return a(!0,e),""}return s>="0"&&s<="7"?(t&&n&&m("Octal escape sequences are not allowed in template strings"),function(e,n){var t=o();t>="0"&&t<="7"&&(e+=a(!0))[0]<="3"&&(t=o())>="0"&&t<="7"&&(e+=a(!0));if("0"===e)return"\0";e.length>0&&B.has_directive("use strict")&&n&&m("Legacy octal escape sequences are not allowed in strict mode");return String.fromCharCode(parseInt(e,8))}(s,n)):s}function g(e,n){for(var t=0;e>0;--e){if(!n&&isNaN(parseInt(o(),16)))return parseInt(t,16)||"";var i=a(!0);isNaN(parseInt(i,16))&&m("Invalid hex-character pattern in string"),t+=i}return parseInt(t,16)}var D=C("Unterminated string constant",function(e){for(var n=a(),t="";;){var i=a(!0,!0);if("\\"==i)i=v(!0,!0);else if(Xn(i))m("Unterminated string constant");else if(i==n)break;t+=i}var r=d("string",t);return r.quote=e,r}),y=C("Unterminated template",function(e){e&&r.template_braces.push(r.brace_counter);var n,t,i="",s="";for(a(!0,!0);"`"!=(n=a(!0,!0));){if("\r"==n)"\n"==o()&&++r.pos,n="\n";else if("$"==n&&"{"==o())return a(!0,!0),r.brace_counter++,(t=d(e?"template_head":"template_substitution",i)).begin=e,t.raw=s,t.end=!1,t;if(s+=n,"\\"==n){var u=r.pos;n=v(!0,!("name"===p.type||"punc"===p.type&&(")"===p.value||"]"===p.value)),!0),s+=r.text.substr(u,r.pos-u)}i+=n}return r.template_braces.pop(),(t=d(e?"template_head":"template_substitution",i)).begin=e,t.raw=s,t.end=!0,t});function b(e){var n,t=r.regex_allowed,i=function(){for(var e=r.text,n=r.pos,t=r.text.length;n<t;++n){var i=e[n];if(Xn(i))return n}return-1}();return-1==i?(n=r.text.substr(r.pos),r.pos=r.text.length):(n=r.text.substring(r.pos,i),r.pos=i),r.col=r.tokcol+(r.pos-r.tokpos),r.comments_before.push(d(e,n,!0)),r.regex_allowed=t,B}var E=C("Unterminated multiline comment",function(){var e=r.regex_allowed,n=c("*/",!0),t=r.text.substring(r.pos,n).replace(/\r\n|\r|\u2028|\u2029/g,"\n");return s(function(e){for(var n=0,t=0;t<e.length;t++)nt(e.charCodeAt(t))&&tt(e.charCodeAt(t+1))&&(n++,t++);return e.length-n}(t)+2),r.comments_before.push(d("comment2",t,!0)),r.newline_before=r.newline_before||t.indexOf("\n")>=0,r.regex_allowed=e,B}),w=C("Unterminated identifier name",function(){var e,n="",t=!1,i=function(){return t=!0,a(),"u"!==o()&&m("Expecting UnicodeEscapeSequence -- uXXXX or u{XXXX}"),v(!1,!0)};if("\\"===(n=o()))ot(n=i())||m("First identifier char is an invalid identifier char");else{if(!ot(n))return"";a()}for(;null!=(e=o());){if("\\"===(e=o()))at(e=i())||m("Invalid escaped identifier char");else{if(!at(e))break;a()}n+=e}return jn(n)&&t&&m("Escaped characters are not allowed in keywords"),n}),x=C("Unterminated regular expression",function(e){for(var n,t=!1,i=!1;n=a(!0);)if(Xn(n))m("Unexpected line terminator");else if(t)e+="\\"+n,t=!1;else if("["==n)i=!0,e+=n;else if("]"==n&&i)i=!1,e+=n;else{if("/"==n&&!i)break;"\\"==n?t=!0:e+=n}var r=w();try{var o=new RegExp(e,r);return o.raw_source="/"+e+"/"+r,d("regexp",o)}catch(e){m(e.message)}});function F(e){return d("operator",function e(n){if(!o())return n;var t=n+o();return Wn(t)?(a(),e(t)):n}(e||a()))}function k(){switch(a(),o()){case"/":return a(),b("comment1");case"*":return a(),E()}return r.regex_allowed?x(""):F("/")}function C(e,n){return function(t){try{return n(t)}catch(n){if(n!==lt)throw n;m(e)}}}function B(e){if(null!=e)return x(e);for(i&&0==r.pos&&u("#!")&&(f(),s(2),b("comment5"));;){if(h(),f(),t){if(u("\x3c!--")){s(4),b("comment3");continue}if(u("--\x3e")&&r.newline_before){s(3),b("comment4");continue}}var n=o();if(!n)return d("eof");var c=n.charCodeAt(0);switch(c){case 34:case 39:return D(n);case 46:return a(),it(o().charCodeAt(0))?_("."):"."===o()?(a(),a(),d("expand","...")):d("punc",".");case 47:var p=k();if(p===B)continue;return p;case 61:return a(),">"===o()?(a(),d("arrow","=>")):F("=");case 96:return y(!0);case 123:r.brace_counter++;break;case 125:if(r.brace_counter--,r.template_braces.length>0&&r.template_braces[r.template_braces.length-1]===r.brace_counter)return y(!1)}if(it(c))return _();if(Kn(n))return d("punc",a());if(Hn(n))return F();if(92==c||ot(n))return v=void 0,v=w(),l?d("name",v):Nn(v)?d("atom",v):zn(v)?Wn(v)?d("operator",v):d("keyword",v):d("name",v);break}var v;m("Unexpected character '"+n+"'")}return B.next=a,B.peek=o,B.context=function(e){return e&&(r=e),r},B.add_directive=function(e){r.directive_stack[r.directive_stack.length-1].push(e),void 0===r.directives[e]?r.directives[e]=1:r.directives[e]++},B.push_directives_stack=function(){r.directive_stack.push([])},B.pop_directives_stack=function(){for(var e=r.directive_stack[r.directive_stack.length-1],n=0;n<e.length;n++)r.directives[e[n]]--;r.directive_stack.pop()},B.has_directive=function(e){return r.directives[e]>0},B}var dt=g(["typeof","void","delete","--","++","!","~","-","+"]),ht=g(["--","++"]),mt=g(["=","+=","-=","/=","*=","**=","%=",">>=","<<=",">>>=","|=","^=","&="]),_t=function(e,n){for(var t=0;t<e.length;++t)for(var i=e[t],r=0;r<i.length;++r)n[i[r]]=t+1;return n}([["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]],{}),vt=g(["atom","num","string","regexp","name"]);function gt(e,n){n=a(n,{bare_returns:!1,ecma:8,expression:!1,filename:null,html5_comments:!0,module:!1,shebang:!0,strict:!1,toplevel:null},!0);var t={input:"string"==typeof e?pt(e,n.filename,n.html5_comments,n.shebang):e,token:null,prev:null,peeked:null,in_function:0,in_async:-1,in_generator:-1,in_directives:!0,in_loop:0,labels:[]};function r(e,n){return ft(t.token,e,n)}function o(){return t.peeked||(t.peeked=t.input())}function s(){return t.prev=t.token,t.peeked||o(),t.token=t.peeked,t.peeked=null,t.in_directives=t.in_directives&&("string"==t.token.type||r("punc",";")),t.token}function u(){return t.prev}function c(e,n,i,r){var o=t.input.context();ct(e,o.filename,null!=n?n:o.tokline,null!=i?i:o.tokcol,null!=r?r:o.tokpos)}function f(e,n){c(n,e.line,e.col)}function l(e){null==e&&(e=t.token),f(e,"Unexpected token: "+e.type+" ("+e.value+")")}function p(e,n){if(r(e,n))return s();f(t.token,"Unexpected token "+t.token.type+" \xab"+t.token.value+"\xbb, expected "+e+" \xab"+n+"\xbb")}function d(e){return p("punc",e)}function h(e){return e.nlb||!D(e.comments_before,function(e){return!e.nlb})}function m(){return!n.strict&&(r("eof")||r("punc","}")||h(t.token))}function _(){return t.in_generator===t.in_function}function v(){return t.in_async===t.in_function}function g(e){r("punc",";")?s():e||m()||l()}function y(){d("(");var e=nt(!0);return d(")"),e}function E(e){return function(){var n=t.token,i=e.apply(null,arguments),r=u();return i.start=n,i.end=r,i}}function w(){(r("operator","/")||r("operator","/="))&&(t.peeked=null,t.token=t.input(t.token.value.substr(1)))}t.token=s();var x=E(function(e,a,_){switch(w(),t.token.type){case"string":if(t.in_directives){var D=o();-1==t.token.raw.indexOf("\\")&&(ft(D,"punc",";")||ft(D,"punc","}")||h(D)||ft(D,"eof"))?t.input.add_directive(t.token.value):t.in_directives=!1}var b=t.in_directives,E=A();return b&&E.body instanceof bn?new B(E.body):E;case"template_head":case"num":case"regexp":case"operator":case"atom":return A();case"name":if("async"==t.token.value&&ft(o(),"keyword","function"))return s(),s(),a&&c("functions are not allowed as the body of a loop"),O(Q,!1,!0,e);if("import"==t.token.value&&!ft(o(),"punc","(")){s();var F=function(){var e,n,i=u();r("name")&&(e=Un(ln));r("punc",",")&&s();((n=In(!0))||e)&&p("name","from");var o=t.token;"string"!==o.type&&l();return s(),new xe({start:i,imported_name:e,imported_names:n,module_name:new bn({start:o,value:o.value,quote:o.quote,end:o}),end:t.token})}();return g(),F}return ft(o(),"punc",":")?function(){var e=Un(dn);"await"===e.name&&v()&&f(t.prev,"await cannot be used as label inside async function");i(function(n){return n.name==e.name},t.labels)&&c("Label "+e.name+" defined twice");d(":"),t.labels.push(e);var n=x();t.labels.pop(),n instanceof j||e.references.forEach(function(n){n instanceof fe&&(n=n.label.start,c("Continue label `"+e.name+"` refers to non-IterationStatement.",n.line,n.col,n.pos))});return new N({body:n,label:e})}():A();case"punc":switch(t.token.value){case"{":return new M({start:t.token,body:re(),end:u()});case"[":case"(":return A();case";":return t.in_directives=!1,s(),new q;default:l()}case"keyword":switch(t.token.value){case"break":return s(),k(ce);case"continue":return s(),k(fe);case"debugger":return s(),g(),new C;case"do":s();var T=tt(x);p("keyword","while");var $=y();return g(!0),new H({body:T,condition:$});case"while":return s(),new R({condition:y(),body:tt(function(){return x(!1,!0)})});case"for":return s(),function(){var e="`for await` invalid in this context",n=t.token;"name"==n.type&&"await"==n.value?(v()||f(n,e),s()):n=!1;d("(");var i=null;if(r("punc",";"))n&&f(n,e);else{i=r("keyword","var")?(s(),de(!0)):r("keyword","let")?(s(),$e(!0)):r("keyword","const")?(s(),We(!0)):nt(!0,!0);var o=r("operator","in"),a=r("name","of");if(n&&!a&&f(n,e),o||a)return i instanceof De?i.definitions.length>1&&f(i.start,"Only one variable declaration allowed in for..in loop"):Kn(i)||(i=Qn(i))instanceof ee||f(i.start,"Invalid left-hand side in for..in loop"),s(),o?function(e){var n=nt(!0);return d(")"),new U({init:e,object:n,body:tt(function(){return x(!1,!0)})})}(i):function(e,n){var t=e instanceof De?e.definitions[0].name:null,i=nt(!0);return d(")"),new L({await:n,init:e,name:t,object:i,body:tt(function(){return x(!1,!0)})})}(i,!!n)}return function(e){d(";");var n=r("punc",";")?null:nt(!0);d(";");var t=r("punc",")")?null:nt(!0);return d(")"),new P({init:e,condition:n,step:t,body:tt(function(){return x(!1,!0)})})}(i)}();case"class":return s(),a&&c("classes are not allowed as the body of a loop"),_&&c("classes are not allowed as the body of an if"),qn(Ge);case"function":return s(),a&&c("functions are not allowed as the body of a loop"),O(Q,!1,!1,e);case"if":return s(),function(){var e=y(),n=x(!1,!1,!0),t=null;r("keyword","else")&&(s(),t=x(!1,!1,!0));return new le({condition:e,body:n,alternative:t})}();case"return":0!=t.in_function||n.bare_returns||c("'return' outside of function"),s();var I=null;return r("punc",";")?s():m()||(I=nt(!0),g()),new ae({value:I});case"switch":return s(),new pe({expression:y(),body:tt(oe)});case"throw":s(),h(t.token)&&c("Illegal newline after 'throw'");I=nt(!0);return g(),new se({value:I});case"try":return s(),function(){var e=re(),n=null,i=null;if(r("keyword","catch")){var o=t.token;if(s(),r("punc","{"))var a=null;else{d("(");var a=z(void 0,fn);d(")")}n=new ve({start:o,argname:a,body:re(),end:u()})}if(r("keyword","finally")){var o=t.token;s(),i=new ge({start:o,body:re(),end:u()})}n||i||c("Missing catch/finally blocks");return new _e({body:e,bcatch:n,bfinally:i})}();case"var":s();F=de();return g(),F;case"let":s();F=$e();return g(),F;case"const":s();F=We();return g(),F;case"with":return t.input.has_directive("use strict")&&c("Strict mode may not include a with statement"),s(),new V({expression:y(),body:x()});case"export":if(!ft(o(),"punc","(")){s();F=function(){var e,n,i,a,c,f=t.token;if(r("keyword","default"))e=!0,s();else if(n=In(!1)){if(r("name","from")){s();var p=t.token;return"string"!==p.type&&l(),s(),new Ae({start:f,is_default:e,exported_names:n,module_name:new bn({start:p,value:p.value,quote:p.quote,end:p}),end:u()})}return new Ae({start:f,is_default:e,exported_names:n,end:u()})}r("punc","{")||e&&(r("keyword","class")||r("keyword","function"))&&ft(o(),"punc")?(a=nt(!1),g()):(i=x(e))instanceof De&&e?l(i.start):i instanceof De||i instanceof X||i instanceof Ge?c=i:i instanceof S?a=i.body:l(i.start);return new Ae({start:f,is_default:e,exported_value:a,exported_definition:c,end:u()})}();return r("punc",";")&&g(),F}}}l()});function A(e){return new S({body:(e=nt(!0),g(),e)})}function k(e){var n,r=null;m()||(r=Un(vn,!0)),null!=r?((n=i(function(e){return e.name==r.name},t.labels))||c("Undefined label "+r.name),r.thedef=n):0==t.in_loop&&c(e.TYPE+" not inside a loop or switch"),g();var o=new e({label:r});return n&&n.references.push(o),o}var T=function(e,n,i){h(t.token)&&c("Unexpected newline before arrow (=>)"),p("arrow","=>");var o=Y(r("punc","{"),!1,i),a=o instanceof Array&&o.length?o[o.length-1].end:o instanceof Array?e:o.end;return new K({start:e,end:a,async:i,argnames:n,body:o})},O=function(e,n,i,o){t.token;var a=e===Q,c=r("operator","*");c&&s();var f=r("name")?Un(a?on:sn):null;a&&!f&&(o?e=Z:l()),!f||e===J||f instanceof Ke||l(u());var p=[],d=Y(!0,c||n,i,f,p);return new e({start:p.start,end:d.end,is_generator:c,async:i,name:f,argnames:p,body:d})};function $(e,n){var t={},i=!1,r=!1,o=!1,a=!!n,s={add_parameter:function(n){if(void 0!==t["$"+n.value])!1===i&&(i=n),s.check_strict();else if(t["$"+n.value]=!0,e)switch(n.value){case"arguments":case"eval":case"yield":a&&f(n,"Unexpected "+n.value+" identifier as parameter inside strict mode");break;default:jn(n.value)&&l()}},mark_default_assignment:function(e){!1===r&&(r=e)},mark_spread:function(e){!1===o&&(o=e)},mark_strict_mode:function(){a=!0},is_strict:function(){return!1!==r||!1!==o||a},check_strict:function(){s.is_strict()&&!1!==i&&f(i,"Parameter "+i.value+" was used already")}};return s}function z(e,n){var i,o=!1;return void 0===e&&(e=$(!0,t.input.has_directive("use strict"))),r("expand","...")&&(o=t.token,e.mark_spread(t.token),s()),i=I(e,n),r("operator","=")&&!1===o&&(e.mark_default_assignment(t.token),s(),i=new Ie({start:i.start,left:i,operator:"=",right:nt(!1),end:t.token})),!1!==o&&(r("punc",")")||l(),i=new G({start:o,expression:i,end:o})),e.check_strict(),i}function I(e,n){var i,a=[],f=!0,p=!1,h=t.token;if(void 0===e&&(e=$(!1,t.input.has_directive("use strict"))),n=void 0===n?rn:n,r("punc","[")){for(s();!r("punc","]");){if(f?f=!1:d(","),r("expand","...")&&(p=!0,i=t.token,e.mark_spread(t.token),s()),r("punc"))switch(t.token.value){case",":a.push(new Cn({start:t.token,end:t.token}));continue;case"]":break;case"[":case"{":a.push(I(e,n));break;default:l()}else r("name")?(e.add_parameter(t.token),a.push(Un(n))):c("Invalid function parameter");r("operator","=")&&!1===p&&(e.mark_default_assignment(t.token),s(),a[a.length-1]=new Ie({start:a[a.length-1].start,left:a[a.length-1],operator:"=",right:nt(!1),end:t.token})),p&&(r("punc","]")||c("Rest element must be last element"),a[a.length-1]=new G({start:i,expression:a[a.length-1],end:i}))}return d("]"),e.check_strict(),new ee({start:h,names:a,is_array:!0,end:u()})}if(r("punc","{")){for(s();!r("punc","}");){if(f?f=!1:d(","),r("expand","...")&&(p=!0,i=t.token,e.mark_spread(t.token),s()),r("name")&&(ft(o(),"punc")||ft(o(),"operator"))&&-1!==[",","}","="].indexOf(o().value)){e.add_parameter(t.token);var m=u(),_=Un(n);p?a.push(new G({start:i,expression:_,end:_.end})):a.push(new Ue({start:m,key:_.name,value:_,end:_.end}))}else{if(r("punc","}"))continue;var v=t.token,g=Hn();null===g?l(u()):"name"!==u().type||r("punc",":")?(d(":"),a.push(new Ue({start:v,quote:v.quote,key:g,value:I(e,n),end:u()}))):a.push(new Ue({start:u(),key:g,value:new n({start:u(),name:g,end:u()}),end:u()}))}p?r("punc","}")||c("Rest element must be last element"):r("operator","=")&&(e.mark_default_assignment(t.token),s(),a[a.length-1].value=new Ie({start:a[a.length-1].value.start,left:a[a.length-1].value,operator:"=",right:nt(!1),end:t.token}))}return d("}"),e.check_strict(),new ee({start:h,names:a,is_array:!1,end:u()})}if(r("name"))return e.add_parameter(t.token),Un(n);c("Invalid function parameter")}function Y(e,i,o,a,u){var c=t.in_loop,f=t.labels,p=t.in_generator,h=t.in_async;if(++t.in_function,i&&(t.in_generator=t.in_function),o&&(t.in_async=t.in_function),u&&function(e){t.token;var i=$(!0,t.input.has_directive("use strict"));for(d("(");!r("punc",")");){var o=z(i);if(e.push(o),r("punc",")")||(d(","),r("punc",")")&&n.ecma<8&&l()),o instanceof G)break}s()}(u),e&&(t.in_directives=!0),t.in_loop=0,t.labels=[],e){t.input.push_directives_stack();var m=re();a&&Pn(a),u&&u.forEach(Pn),t.input.pop_directives_stack()}else m=nt(!1);return--t.in_function,t.in_loop=c,t.labels=f,t.in_generator=p,t.in_async=h,m}function re(){d("{");for(var e=[];!r("punc","}");)r("eof")&&l(),e.push(x());return s(),e}function oe(){d("{");for(var e,n=[],i=null,o=null;!r("punc","}");)r("eof")&&l(),r("keyword","case")?(o&&(o.end=u()),i=[],o=new me({start:(e=t.token,s(),e),expression:nt(!0),body:i}),n.push(o),d(":")):r("keyword","default")?(o&&(o.end=u()),i=[],o=new he({start:(e=t.token,s(),d(":"),e),body:i}),n.push(o)):(i||l(),i.push(x()));return o&&(o.end=u()),s(),n}function ue(e,n){for(var i,o=[];;){var a="var"===n?Qe:"const"===n?nn:"let"===n?tn:null;if(r("punc","{")||r("punc","[")?i=new Fe({start:t.token,name:I(void 0,a),value:r("operator","=")?(p("operator","="),nt(!1,e)):null,end:u()}):"import"==(i=new Fe({start:t.token,name:Un(a),value:r("operator","=")?(s(),nt(!1,e)):e||"const"!==n?null:c("Missing initializer in const declaration"),end:u()})).name.name&&c("Unexpected token: import"),o.push(i),!r("punc",","))break;s()}return o}var de=function(e){return new ye({start:u(),definitions:ue(e,"var"),end:u()})},$e=function(e){return new be({start:u(),definitions:ue(e,"let"),end:u()})},We=function(e){return new Ee({start:u(),definitions:ue(e,"const"),end:u()})};function Je(){var e,n=t.token;switch(n.type){case"name":e=Rn(hn);break;case"num":e=new En({start:n,end:n,value:n.value});break;case"string":e=new bn({start:n,end:n,value:n.value,quote:n.quote});break;case"regexp":e=new wn({start:n,end:n,value:n.value});break;case"atom":switch(n.value){case"false":e=new Tn({start:n,end:n});break;case"true":e=new On({start:n,end:n});break;case"null":e=new An({start:n,end:n})}}return s(),e}function en(e,n,t,i){var r=function(e,n){return n?new Ie({start:e.start,left:e,operator:"=",right:n,end:n.end}):e};return e instanceof Re?r(new ee({start:e.start,end:e.end,is_array:!1,names:e.properties.map(en)}),i):e instanceof Ue?(e.value=en(e.value,0,[e.key]),r(e,i)):e instanceof Cn?e:e instanceof ee?(e.names=e.names.map(en),r(e,i)):e instanceof hn?r(new rn({name:e.name,start:e.start,end:e.end}),i):e instanceof G?(e.expression=en(e.expression),r(e,i)):e instanceof He?r(new ee({start:e.start,end:e.end,is_array:!0,names:e.elements.map(en)}),i):e instanceof je?r(en(e.left,void 0,void 0,e.right),i):e instanceof Ie?(e.left=en(e.left,0,[e.left]),e):void c("Invalid function parameter",e.start.line,e.start.col)}var yn=function(e,i){if(r("operator","new"))return function(e){var i=t.token;if(p("operator","new"),r("punc","."))return s(),p("name","target"),Vn(new Ze({start:i,end:u()}),e);var o,a=yn(!1);r("punc","(")?(s(),o=Fn(")",n.ecma>=8)):o=[];var c=new Ce({start:i,expression:a,args:o,end:u()});return Ln(c),Vn(c,e)}(e);var a,c=t.token,f=r("name","async")&&"["!=(a=o()).value&&"arrow"!=a.type&&Je();if(r("punc")){switch(t.token.value){case"(":if(f&&!e)break;var h=function(e,i){var o,a,c,f=[];for(d("(");!r("punc",")");)o&&l(o),r("expand","...")?(o=t.token,i&&(a=t.token),s(),f.push(new G({start:u(),expression:nt(),end:t.token}))):f.push(nt()),r("punc",")")||(d(","),r("punc",")")&&(n.ecma<8&&l(),c=u(),i&&(a=c)));return d(")"),e&&r("arrow","=>")?o&&c&&l(c):a&&l(a),f}(i,!f);if(i&&r("arrow","=>"))return T(c,h.map(en),!!f);var m=f?new ke({expression:f,args:h}):1==h.length?h[0]:new Be({expressions:h});if(m.start){var _=c.comments_before.length;if([].unshift.apply(m.start.comments_before,c.comments_before),c.comments_before=m.start.comments_before,c.comments_before_length=_,0==_&&c.comments_before.length>0){var v=c.comments_before[0];v.nlb||(v.nlb=c.nlb,c.nlb=!1)}c.comments_after=m.start.comments_after}m.start=c;var g=u();return m.end&&(g.comments_before=m.end.comments_before,[].push.apply(m.end.comments_after,g.comments_after),g.comments_after=m.end.comments_after),m.end=g,m instanceof ke&&Ln(m),Vn(m,e);case"[":return Vn(kn(),e);case"{":return Vn(Sn(),e)}f||l()}if(i&&r("name")&&ft(o(),"arrow")){var D=new rn({name:t.token.value,start:c,end:c});return s(),T(c,[D],!!f)}if(r("keyword","function")){s();var y=O(Z,!1,!!f);return y.start=c,y.end=u(),Vn(y,e)}if(f)return Vn(f,e);if(r("keyword","class")){s();var b=qn(Xe);return b.start=c,b.end=u(),Vn(b,e)}return r("template_head")?Vn(xn(!1),e):vt(t.token.type)?Vn(Je(),e):void l()};function xn(e){var n=[],i=t.token;for(n.push(new ie({start:t.token,raw:t.token.raw,value:t.token.value,end:t.token}));!1===t.token.end;)s(),w(),n.push(nt(!0)),ft("template_substitution")||l(),n.push(new ie({start:t.token,raw:t.token.raw,value:t.token.value,end:t.token}));return s(),new te({start:i,segments:n,end:t.token})}function Fn(e,n,i){for(var o=!0,a=[];!r("punc",e)&&(o?o=!1:d(","),!n||!r("punc",e));)r("punc",",")&&i?a.push(new Cn({start:t.token,end:t.token})):r("expand","...")?(s(),a.push(new G({start:u(),expression:nt(),end:t.token}))):a.push(nt(!1));return s(),a}var kn=E(function(){return d("["),new He({elements:Fn("]",!n.strict,!0)})}),Bn=E(function(e,n){return O(J,e,n)}),Sn=E(function(){var e=t.token,i=!0,o=[];for(d("{");!r("punc","}")&&(i?i=!1:d(","),n.strict||!r("punc","}"));)if("expand"!=(e=t.token).type){var a,c=Hn();if(r("punc",":"))null===c?l(u()):(s(),a=nt(!1));else{var f=zn(c,e);if(f){o.push(f);continue}a=new hn({start:u(),name:c,end:u()})}r("operator","=")&&(s(),a=new je({start:e,left:a,operator:"=",right:nt(!1),end:u()})),o.push(new Ue({start:e,quote:e.quote,key:c instanceof F?c:""+c,value:a,end:u()}))}else s(),o.push(new G({start:e,expression:nt(!1),end:u()}));return s(),new Re({properties:o})});function qn(e){var n,i,o,a,c=[];for(t.input.push_directives_stack(),t.input.add_directive("use strict"),"name"==t.token.type&&"extends"!=t.token.value&&(o=Un(e===Ge?un:cn)),e!==Ge||o||l(),"extends"==t.token.value&&(s(),a=nt(!0)),d("{"),r("punc",";")&&s();!r("punc","}");)n=t.token,(i=zn(Hn(),n,!0))||l(),c.push(i),r("punc",";")&&s();return t.input.pop_directives_stack(),s(),new e({start:n,name:o,extends:a,properties:c,end:u()})}function zn(e,n,i){var o=function(e,n){return"string"==typeof e||"number"==typeof e?new an({start:n,name:""+e,end:u()}):(null===e&&l(),e)},a=!1,s=!1,c=!1,f=n;if(i&&"static"===e&&!r("punc","(")&&(s=!0,f=t.token,e=Hn()),"async"!==e||r("punc","(")||r("punc",",")||r("punc","}")||(a=!0,f=t.token,e=Hn()),null===e&&(c=!0,f=t.token,null===(e=Hn())&&l()),r("punc","("))return e=o(e,n),new Ye({start:n,static:s,is_generator:c,async:a,key:e,quote:e instanceof an?f.quote:void 0,value:Bn(c,a),end:u()});if(f=t.token,"get"==e){if(!r("punc")||r("punc","["))return e=o(Hn(),n),new Ve({start:n,static:s,key:e,quote:e instanceof an?f.quote:void 0,value:Bn(),end:u()})}else if("set"==e&&(!r("punc")||r("punc","[")))return e=o(Hn(),n),new Le({start:n,static:s,key:e,quote:e instanceof an?f.quote:void 0,value:Bn(),end:u()})}function Nn(e){function n(e){return new e({name:Hn(),start:u(),end:u()})}var i,o,a=e?pn:_n,c=e?ln:mn,f=t.token;return e?i=n(a):o=n(c),r("name","as")?(s(),e?o=n(c):i=n(a)):e?o=new c(i):i=new a(o),new we({start:f,foreign_name:i,name:o,end:u()})}function In(e){var n;if(r("punc","{")){for(s(),n=[];!r("punc","}");)n.push(Nn(e)),r("punc",",")&&s();s()}else if(r("operator","*")){var i;s(),e&&r("name","as")&&(s(),i=Un(e?ln:_n)),n=[function(e,n){var i,r=e?pn:_n,o=e?ln:mn,a=t.token,s=u();return n=n||new o({name:"*",start:a,end:s}),i=new r({name:"*",start:a,end:s}),new we({start:a,foreign_name:i,name:n,end:s})}(e,i)]}return n}function Hn(){var e=t.token;switch(e.type){case"punc":if("["===e.value){s();var n=nt(!1);return d("]"),n}l(e);case"operator":if("*"===e.value)return s(),null;-1===["delete","in","instanceof","new","typeof","void"].indexOf(e.value)&&l(e);case"name":"yield"==e.value&&(_()?f(e,"Yield cannot be used as identifier inside generators"):ft(o(),"punc",":")||ft(o(),"punc","(")||!t.input.has_directive("use strict")||f(e,"Unexpected yield identifier inside strict mode"));case"string":case"num":case"keyword":case"atom":return s(),e.value;default:l(e)}}function Rn(e){var n=t.token.value;return new("this"==n?gn:"super"==n?Dn:e)({name:String(n),start:t.token,end:t.token})}function Pn(e){var n=e.name;_()&&"yield"==n&&f(e.start,"Yield cannot be used as identifier inside generators"),t.input.has_directive("use strict")&&("yield"==n&&f(e.start,"Unexpected yield identifier inside strict mode"),e instanceof Ke&&("arguments"==n||"eval"==n)&&f(e.start,"Unexpected "+n+" in strict mode"))}function Un(e,n){if(!r("name"))return n||c("Name expected"),null;var t=Rn(e);return Pn(t),s(),t}function Ln(e){for(var n=e.start,t=n.comments_before,i=b(n,"comments_before_length")?n.comments_before_length:t.length;--i>=0;){var r=t[i];if(/[@#]__PURE__/.test(r.value)){e.pure=r;break}}}var Vn=function(e,n){var i,o=e.start;if(r("punc","."))return s(),Vn(new Te({start:o,expression:e,property:(i=t.token,"name"!=i.type&&l(),s(),i.value),end:u()}),n);if(r("punc","[")){s();var a=nt(!0);return d("]"),Vn(new Oe({start:o,expression:e,property:a,end:u()}),n)}if(n&&r("punc","(")){s();var c=new ke({start:o,expression:e,args:Yn(),end:u()});return Ln(c),Vn(c,!0)}return r("template_head")?Vn(new ne({start:o,prefix:e,template_string:xn(),end:u()}),n):e},Yn=E(function(){for(var e=[];!r("punc",")");)r("expand","...")?(s(),e.push(new G({start:u(),expression:nt(!1),end:u()}))):e.push(nt(!1)),r("punc",")")||(d(","),r("punc",")")&&n.ecma<8&&l());return s(),e}),Wn=function(e,n){var i=t.token;if("name"==i.type&&"await"==i.value){if(v())return s(),v()||c("Unexpected await expression outside async function",t.prev.line,t.prev.col,t.prev.pos),new $n({start:u(),end:t.token,expression:Wn(!0)});t.input.has_directive("use strict")&&f(t.token,"Unexpected await identifier inside strict mode")}if(r("operator")&&dt(i.value)){s(),w();var o=Gn(Me,i,Wn(e));return o.start=i,o.end=u(),o}for(var a=yn(e,n);r("operator")&&ht(t.token.value)&&!h(t.token);)a instanceof K&&l(),(a=Gn(qe,t.token,a)).start=i,a.end=t.token,s();return a};function Gn(e,n,i){var r=n.value;switch(r){case"++":case"--":Kn(i)||c("Invalid use of "+r+" operator",n.line,n.col,n.pos);break;case"delete":i instanceof hn&&t.input.has_directive("use strict")&&c("Calling delete on expression not allowed in strict mode",i.start.line,i.start.col,i.start.pos)}return new e({operator:r,expression:i})}var Xn=function(e,n,i){var o=r("operator")?t.token.value:null;"in"==o&&i&&(o=null),"**"==o&&e instanceof Me&&!ft(e.start,"punc","(")&&"--"!==e.operator&&"++"!==e.operator&&l(e.start);var a=null!=o?_t[o]:null;if(null!=a&&(a>n||"**"===o&&n===a)){s();var u=Xn(Wn(!0),a,i);return Xn(new ze({start:e.start,left:e,operator:o,right:u,end:u.end}),n,i)}return e};var Zn=function(e){var n=t.token,i=function(e){return Xn(Wn(!0,!0),0,e)}(e);if(r("operator","?")){s();var o=nt(!1);return d(":"),new Ne({start:n,condition:i,consequent:o,alternative:nt(!1,e),end:u()})}return i};function Kn(e){return e instanceof Se||e instanceof hn}function Qn(e){if(e instanceof Re)e=new ee({start:e.start,names:e.properties.map(Qn),is_array:!1,end:e.end});else if(e instanceof He){for(var n=[],t=0;t<e.elements.length;t++)e.elements[t]instanceof G&&(t+1!==e.elements.length&&f(e.elements[t].start,"Spread must the be last element in destructuring array"),e.elements[t].expression=Qn(e.elements[t].expression)),n.push(Qn(e.elements[t]));e=new ee({start:e.start,names:n,is_array:!0,end:e.end})}else e instanceof Pe?e.value=Qn(e.value):e instanceof je&&(e=new Ie({start:e.start,left:e.left,operator:"=",right:e.right,end:e.end}));return e}var et=function(e){var n=t.token;if("name"==n.type&&"yield"==n.value){if(_())return s(),function(){_()||c("Unexpected yield expression outside generator function",t.prev.line,t.prev.col,t.prev.pos);var e=t.token,n=!1,i=!0;return m()||r("punc")&&Jn(t.token.value)?i=!1:r("operator","*")&&(n=!0,s()),new Mn({start:e,is_star:n,expression:i?nt():null,end:u()})}();t.input.has_directive("use strict")&&f(t.token,"Unexpected yield identifier inside strict mode")}var i=Zn(e),o=t.token.value;if(r("operator")&&mt(o)){if(Kn(i)||(i=Qn(i))instanceof ee)return s(),new je({start:n,left:i,operator:o,right:et(e),end:u()});c("Invalid assignment")}return i},nt=function(e,n){for(var i=t.token,a=[];a.push(et(n)),e&&r("punc",",");)s(),e=!0;return 1==a.length?a[0]:new Be({start:i,expressions:a,end:o()})};function tt(e){++t.in_loop;var n=e();return--t.in_loop,n}return n.expression?nt(!0):function(){var e=t.token,i=[];for(t.input.push_directives_stack(),n.module&&t.input.add_directive("use strict");!r("eof");)i.push(x());t.input.pop_directives_stack();var o=u(),a=n.toplevel;return a?(a.body=a.body.concat(i),a.end=o):a=new W({start:e,body:i,end:o}),a}()}function Dt(e,n){qn.call(this),this.before=e,this.after=n}function yt(e,n,t){this.name=n.name,this.orig=[n],this.init=t,this.eliminated=0,this.scope=e,this.references=[],this.replaced=0,this.global=!1,this.export=!1,this.mangled_name=null,this.undeclared=!1,this.id=yt.next_id++}function bt(e,n){var i=e.enclosed;e:for(;;){var r=Et(++e.cname);if(rt(r)&&!t(r,n.reserved)){for(var o=i.length;--o>=0;){var a=i[o];if(r==(a.mangled_name||a.unmangleable(n)&&a.name))continue e}return r}}}Dt.prototype=new qn,function(e){function n(n,t){n.DEFMETHOD("transform",function(n,i){var r,o;return n.push(this),n.before&&(r=n.before(this,t,i)),r===e&&(t(r=this,n),n.after&&(o=n.after(r,i))!==e&&(r=o)),n.pop(),r})}function t(e,n){return d(e,function(e){return e.transform(n,!0)})}n(F,u),n(N,function(e,n){e.label=e.label.transform(n),e.body=e.body.transform(n)}),n(S,function(e,n){e.body=e.body.transform(n)}),n($,function(e,n){e.body=t(e.body,n)}),n(H,function(e,n){e.body=e.body.transform(n),e.condition=e.condition.transform(n)}),n(R,function(e,n){e.condition=e.condition.transform(n),e.body=e.body.transform(n)}),n(P,function(e,n){e.init&&(e.init=e.init.transform(n)),e.condition&&(e.condition=e.condition.transform(n)),e.step&&(e.step=e.step.transform(n)),e.body=e.body.transform(n)}),n(U,function(e,n){e.init=e.init.transform(n),e.object=e.object.transform(n),e.body=e.body.transform(n)}),n(V,function(e,n){e.expression=e.expression.transform(n),e.body=e.body.transform(n)}),n(oe,function(e,n){e.value&&(e.value=e.value.transform(n))}),n(ue,function(e,n){e.label&&(e.label=e.label.transform(n))}),n(le,function(e,n){e.condition=e.condition.transform(n),e.body=e.body.transform(n),e.alternative&&(e.alternative=e.alternative.transform(n))}),n(pe,function(e,n){e.expression=e.expression.transform(n),e.body=t(e.body,n)}),n(me,function(e,n){e.expression=e.expression.transform(n),e.body=t(e.body,n)}),n(_e,function(e,n){e.body=t(e.body,n),e.bcatch&&(e.bcatch=e.bcatch.transform(n)),e.bfinally&&(e.bfinally=e.bfinally.transform(n))}),n(ve,function(e,n){e.argname&&(e.argname=e.argname.transform(n)),e.body=t(e.body,n)}),n(De,function(e,n){e.definitions=t(e.definitions,n)}),n(Fe,function(e,n){e.name=e.name.transform(n),e.value&&(e.value=e.value.transform(n))}),n(ee,function(e,n){e.names=t(e.names,n)}),n(X,function(e,n){e.name&&(e.name=e.name.transform(n)),e.argnames=t(e.argnames,n),e.body instanceof F?e.body=e.body.transform(n):e.body=t(e.body,n)}),n(ke,function(e,n){e.expression=e.expression.transform(n),e.args=t(e.args,n)}),n(Be,function(e,n){e.expressions=t(e.expressions,n)}),n(Te,function(e,n){e.expression=e.expression.transform(n)}),n(Oe,function(e,n){e.expression=e.expression.transform(n),e.property=e.property.transform(n)}),n(Mn,function(e,n){e.expression&&(e.expression=e.expression.transform(n))}),n($n,function(e,n){e.expression=e.expression.transform(n)}),n($e,function(e,n){e.expression=e.expression.transform(n)}),n(ze,function(e,n){e.left=e.left.transform(n),e.right=e.right.transform(n)}),n(Ne,function(e,n){e.condition=e.condition.transform(n),e.consequent=e.consequent.transform(n),e.alternative=e.alternative.transform(n)}),n(He,function(e,n){e.elements=t(e.elements,n)}),n(Re,function(e,n){e.properties=t(e.properties,n)}),n(Pe,function(e,n){e.key instanceof F&&(e.key=e.key.transform(n)),e.value=e.value.transform(n)}),n(We,function(e,n){e.name&&(e.name=e.name.transform(n)),e.extends&&(e.extends=e.extends.transform(n)),e.properties=t(e.properties,n)}),n(G,function(e,n){e.expression=e.expression.transform(n)}),n(we,function(e,n){e.foreign_name=e.foreign_name.transform(n),e.name=e.name.transform(n)}),n(xe,function(e,n){e.imported_name&&(e.imported_name=e.imported_name.transform(n)),e.imported_names&&t(e.imported_names,n),e.module_name=e.module_name.transform(n)}),n(Ae,function(e,n){e.exported_definition&&(e.exported_definition=e.exported_definition.transform(n)),e.exported_value&&(e.exported_value=e.exported_value.transform(n)),e.exported_names&&t(e.exported_names,n),e.module_name&&(e.module_name=e.module_name.transform(n))}),n(te,function(e,n){e.segments=t(e.segments,n)}),n(ne,function(e,n){e.prefix=e.prefix.transform(n),e.template_string=e.template_string.transform(n)})}(),yt.next_id=1,yt.prototype={unmangleable:function(e){return e||(e={}),this.global&&!e.toplevel||this.export||this.undeclared||!e.eval&&this.scope.pinned()||(this.orig[0]instanceof sn||this.orig[0]instanceof on)&&w(e.keep_fnames,this.orig[0].name)||this.orig[0]instanceof an||(this.orig[0]instanceof cn||this.orig[0]instanceof un)&&w(e.keep_classnames,this.orig[0].name)},mangle:function(e){var n=e.cache&&e.cache.props;if(this.global&&n&&n.has(this.name))this.mangled_name=n.get(this.name);else if(!this.mangled_name&&!this.unmangleable(e)){var t,i=this.scope,r=this.orig[0];e.ie8&&r instanceof sn&&(i=i.parent_scope),(t=this.redefined())?this.mangled_name=t.mangled_name||t.name:this.mangled_name=i.next_mangled(e,this),this.global&&n&&n.set(this.name,this.mangled_name)}},redefined:function(){return this.defun&&this.defun.variables.get(this.name)}},W.DEFMETHOD("figure_out_scope",function(e){e=a(e,{cache:null,ie8:!1,safari10:!1});var n=this,t=n.parent_scope=null,i=new y,r=null,o=null,s=[],u=new qn(function(n,a){if(n.is_block_scope()){var c=t;return n.block_scope=t=new Y(n),t.init_scope_vars(c),n instanceof Y||(t.uses_with=c.uses_with,t.uses_eval=c.uses_eval,t.directives=c.directives),e.safari10&&(n instanceof P||n instanceof U)&&s.push(t),a(),t=c,!0}if(n instanceof ee)return o=n,a(),o=null,!0;if(n instanceof Y){n.init_scope_vars(t);c=t;var f=r,l=i;return r=t=n,i=new y,a(),t=c,r=f,i=l,!0}if(n instanceof N){var p=n.label;if(i.has(p.name))throw new Error(m("Label {name} defined twice",p));return i.set(p.name,p),a(),i.del(p.name),!0}if(n instanceof V)for(var d=t;d;d=d.parent_scope)d.uses_with=!0;else{if(n instanceof Je&&(n.scope=t),n instanceof dn&&(n.thedef=n,n.references=[]),n instanceof sn)r.def_function(n,"arguments"==n.name?void 0:r);else if(n instanceof on)v((n.scope=r.parent_scope.get_defun_scope()).def_function(n,r),1);else if(n instanceof cn)v(r.def_variable(n,r),1);else if(n instanceof ln)t.def_variable(n);else if(n instanceof un)v((n.scope=r.parent_scope).def_function(n,r),1);else if(n instanceof Qe||n instanceof tn||n instanceof nn){if(D((h=n instanceof en?t.def_variable(n,null):r.def_variable(n,"SymbolVar"==n.TYPE?null:void 0)).orig,function(e){return e===n||(n instanceof en?e instanceof sn:!(e instanceof tn||e instanceof nn))})||ct(n.name+" redeclared",n.start.file,n.start.line,n.start.col,n.start.pos),n instanceof rn||v(h,2),h.destructuring=o,r!==t){n.mark_enclosed(e);var h=t.find_variable(n);n.thedef!==h&&(n.thedef=h,n.reference(e))}}else if(n instanceof fn)t.def_variable(n).defun=r;else if(n instanceof vn){var _=i.get(n.name);if(!_)throw new Error(m("Undefined label {name} [{line},{col}]",{name:n.name,line:n.start.line,col:n.start.col}));n.thedef=_}t instanceof W||!(n instanceof Ae||n instanceof xe)||ct(n.TYPE+" statement may only appear at top level",n.start.file,n.start.line,n.start.col,n.start.pos)}function v(e,n){if(o){var t=0;do{n++}while(u.parent(t++)!==o)}var i=u.parent(n);e.export=i instanceof Ae}});n.walk(u),n.globals=new y;u=new qn(function(t,i){if(t instanceof ue&&t.label)return t.label.thedef.references.push(t),!0;if(t instanceof hn){var r,o=t.name;if("eval"==o&&u.parent()instanceof ke)for(var a=t.scope;a&&!a.uses_eval;a=a.parent_scope)a.uses_eval=!0;return u.parent()instanceof we&&u.parent(1).module_name||!(r=t.scope.find_variable(o))?(r=n.def_global(t),t instanceof mn&&(r.export=t.TYPE)):r.scope instanceof X&&"arguments"==o&&(r.scope.uses_arguments=!0),t.thedef=r,t.reference(e),!t.scope.is_block_scope()||r.orig[0]instanceof en||(t.scope=t.scope.get_defun_scope()),!0}var s;if(t instanceof fn&&(s=t.definition().redefined()))for(a=t.scope;a&&(h(a.enclosed,s),a!==s.scope);)a=a.parent_scope});if(n.walk(u),(e.ie8||e.safari10)&&n.walk(new qn(function(t,i){if(t instanceof fn){var r=t.name,o=t.thedef.references,a=t.thedef.defun,s=a.find_variable(r)||n.globals.get(r)||a.def_variable(t);return o.forEach(function(n){n.thedef=s,n.reference(e)}),t.thedef=s,t.reference(e),!0}})),e.safari10)for(var c=0;c<s.length;c++){(t=s[c]).parent_scope.variables.each(function(e){h(t.enclosed,e)})}}),W.DEFMETHOD("def_global",function(e){var n=this.globals,t=e.name;if(n.has(t))return n.get(t);var i=new yt(this,e);return i.undeclared=!0,i.global=!0,n.set(t,i),i}),Y.DEFMETHOD("init_scope_vars",function(e){this.variables=new y,this.functions=new y,this.uses_with=!1,this.uses_eval=!1,this.parent_scope=e,this.enclosed=[],this.cname=-1}),F.DEFMETHOD("is_block_scope",c),We.DEFMETHOD("is_block_scope",c),X.DEFMETHOD("is_block_scope",c),W.DEFMETHOD("is_block_scope",c),de.DEFMETHOD("is_block_scope",c),$.DEFMETHOD("is_block_scope",f),j.DEFMETHOD("is_block_scope",f),X.DEFMETHOD("init_scope_vars",function(){Y.prototype.init_scope_vars.apply(this,arguments),this.uses_arguments=!1,this.def_variable(new rn({name:"arguments",start:this.start,end:this.end}))}),K.DEFMETHOD("init_scope_vars",function(){Y.prototype.init_scope_vars.apply(this,arguments),this.uses_arguments=!1}),Je.DEFMETHOD("mark_enclosed",function(e){for(var n=this.definition(),t=this.scope;t&&(h(t.enclosed,n),e.keep_fnames&&t.functions.each(function(t){w(e.keep_fnames,t.name)&&h(n.scope.enclosed,t)}),t!==n.scope);)t=t.parent_scope}),Je.DEFMETHOD("reference",function(e){this.definition().references.push(this),this.mark_enclosed(e)}),Y.DEFMETHOD("find_variable",function(e){return e instanceof Je&&(e=e.name),this.variables.get(e)||this.parent_scope&&this.parent_scope.find_variable(e)}),Y.DEFMETHOD("def_function",function(e,n){var t=this.def_variable(e,n);return(!t.init||t.init instanceof Q)&&(t.init=n),this.functions.set(e.name,t),t}),Y.DEFMETHOD("def_variable",function(e,n){var t=this.variables.get(e.name);return t?(t.orig.push(e),t.init&&(t.scope!==e.scope||t.init instanceof Z)&&(t.init=n)):(t=new yt(this,e,n),this.variables.set(e.name,t),t.global=!this.parent_scope),e.thedef=t}),Y.DEFMETHOD("next_mangled",function(e){return bt(this,e)}),W.DEFMETHOD("next_mangled",function(e){var n;do{n=bt(this,e)}while(t(n,this.mangled_names));return n}),Z.DEFMETHOD("next_mangled",function(e,n){for(var t=n.orig[0]instanceof rn&&this.name&&this.name.definition(),i=t?t.mangled_name||t.name:null;;){var r=bt(this,e);if(!i||i!=r)return r}}),Je.DEFMETHOD("unmangleable",function(e){var n=this.definition();return!n||n.unmangleable(e)}),dn.DEFMETHOD("unmangleable",c),Je.DEFMETHOD("unreferenced",function(){return!this.definition().references.length&&!this.scope.pinned()}),Je.DEFMETHOD("definition",function(){return this.thedef}),Je.DEFMETHOD("global",function(){return this.definition().global}),W.DEFMETHOD("_default_mangler_options",function(e){return(e=a(e,{eval:!1,ie8:!1,keep_classnames:!1,keep_fnames:!1,module:!1,reserved:[],toplevel:!1})).module&&(e.toplevel=!0),Array.isArray(e.reserved)||(e.reserved=[]),h(e.reserved,"arguments"),e}),W.DEFMETHOD("mangle_names",function(e){e=this._default_mangler_options(e);var n=-1,i=[],r=this.mangled_names=[];e.cache&&(this.globals.each(a),e.cache.props&&e.cache.props.each(function(e){h(r,e)}));var o=new qn(function(t,r){if(t instanceof N){var o=n;return r(),n=o,!0}if(t instanceof Y)t.variables.each(a);else if(t.is_block_scope())t.block_scope.variables.each(a);else{if(t instanceof dn){var s;do{s=Et(++n)}while(!rt(s));return t.mangled_name=s,!0}!e.ie8&&!e.safari10&&t instanceof fn&&i.push(t.definition())}});function a(n){t(n.name,e.reserved)||n.export||i.push(n)}this.walk(o),i.forEach(function(n){n.mangle(e)})}),W.DEFMETHOD("find_colliding_names",function(e){var n=e.cache&&e.cache.props,t=Object.create(null);return e.reserved.forEach(i),this.globals.each(r),this.walk(new qn(function(e){e instanceof Y&&e.variables.each(r),e instanceof fn&&r(e.definition())})),t;function i(e){t[e]=!0}function r(t){var r=t.name;if(t.global&&n&&n.has(r))r=n.get(r);else if(!t.unmangleable(e))return;i(r)}}),W.DEFMETHOD("expand_names",function(e){Et.reset(),Et.sort(),e=this._default_mangler_options(e);var n=this.find_colliding_names(e),i=0;function r(r){if(!(r.global&&e.cache||r.unmangleable(e)||t(r.name,e.reserved))){var o=r.redefined();r.name=o?o.name:function(){var e;do{e=Et(i++)}while(n[e]||!rt(e));return e}(),r.orig.forEach(function(e){e.name=r.name}),r.references.forEach(function(e){e.name=r.name})}}this.globals.each(r),this.walk(new qn(function(e){e instanceof Y&&e.variables.each(r),e instanceof fn&&r(e.definition())}))}),F.DEFMETHOD("tail_node",l),Be.DEFMETHOD("tail_node",function(){return this.expressions[this.expressions.length-1]}),W.DEFMETHOD("compute_char_frequency",function(e){e=this._default_mangler_options(e);try{F.prototype.print=function(n,t){this._print(n,t),this instanceof Je&&!this.unmangleable(e)?Et.consider(this.name,-1):e.properties&&(this instanceof Te?Et.consider(this.property,-1):this instanceof Oe&&function e(n){n instanceof bn?Et.consider(n.value,-1):n instanceof Ne?(e(n.consequent),e(n.alternative)):n instanceof Be&&e(n.tail_node())}(this.property))},Et.consider(this.print_to_string(),1)}finally{F.prototype.print=F.prototype._print}Et.sort()});var Et=function(){var e,n,t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_".split(""),i="0123456789".split("");function r(){n=Object.create(null),t.forEach(function(e){n[e]=0}),i.forEach(function(e){n[e]=0})}function o(e,t){return n[t]-n[e]}function a(n){var t="",i=54;n++;do{t+=e[--n%i],n=Math.floor(n/i),i=64}while(n>0);return t}return a.consider=function(e,t){for(var i=e.length;--i>=0;)n[e[i]]+=t},a.sort=function(){e=v(t,o).concat(v(i,o))},a.reset=r,r(),a}(),wt=/^$|[;{][\s\n]*$/;function xt(e){return"comment2"==e.type&&/@preserve|@license|@cc_on/i.test(e.value)}function At(e){var n=!e;void 0===(e=a(e,{ascii_only:!1,beautify:!1,braces:!1,comments:!1,ecma:5,ie8:!1,indent_level:4,indent_start:0,inline_script:!0,keep_quoted_props:!1,max_line_len:!1,preamble:null,quote_keys:!1,quote_style:0,safari10:!1,semicolons:!0,shebang:!0,shorthand:void 0,source_map:null,webkit:!1,width:80,wrap_iife:!1},!0)).shorthand&&(e.shorthand=e.ecma>5);var t=c;if(e.comments){var i=e.comments;if("string"==typeof e.comments&&/^\/.*\/[a-zA-Z]*$/.test(e.comments)){var r=e.comments.lastIndexOf("/");i=new RegExp(e.comments.substr(1,r-1),e.comments.substr(r+1))}t=i instanceof RegExp?function(e){return"comment5"!=e.type&&i.test(e.value)}:"function"==typeof i?function(e){return"comment5"!=e.type&&i(this,e)}:"some"===i?xt:f}var o=0,s=0,l=1,p=0,d="",h=e.ascii_only?function(n,t){return e.ecma>=6&&(n=n.replace(/[\ud800-\udbff][\udc00-\udfff]/g,function(e){var n,t;return"\\u{"+(n=e,t=0,nt(n.charAt(t))?65536+(n.charCodeAt(t)-55296<<10)+n.charCodeAt(t+1)-56320:n.charCodeAt(t)).toString(16)+"}"})),n.replace(/[\u0000-\u001f\u007f-\uffff]/g,function(e){var n=e.charCodeAt(0).toString(16);if(n.length<=2&&!t){for(;n.length<2;)n="0"+n;return"\\x"+n}for(;n.length<4;)n="0"+n;return"\\u"+n})}:function(e){for(var n="",t=0,i=e.length;t<i;t++)nt(e[t])&&!tt(e[t+1])||tt(e[t])&&!nt(e[t-1])?n+="\\u"+e.charCodeAt(t).toString(16):n+=e[t];return n};function m(n,t){var i=function(n,t){var i=0,r=0;function o(){return"'"+n.replace(/\x27/g,"\\'")+"'"}function a(){return'"'+n.replace(/\x22/g,'\\"')+'"'}if(n=n.replace(/[\\\b\f\n\r\v\t\x22\x27\u2028\u2029\0\ufeff]/g,function(t,o){switch(t){case'"':return++i,'"';case"'":return++r,"'";case"\\":return"\\\\";case"\n":return"\\n";case"\r":return"\\r";case"\t":return"\\t";case"\b":return"\\b";case"\f":return"\\f";case"\v":return e.ie8?"\\x0B":"\\v";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";case"\ufeff":return"\\ufeff";case"\0":return/[0-9]/.test(et(n,o+1))?"\\x00":"\\0"}return t}),n=h(n),"`"===t)return"`"+n.replace(/`/g,"\\`")+"`";switch(e.quote_style){case 1:return o();case 2:return a();case 3:return"'"==t?o():a();default:return i>r?o():a()}}(n,t);return e.inline_script&&(i=(i=(i=i.replace(/<\x2f(script)([>\/\t\n\f\r ])/gi,"<\\/$1$2")).replace(/\x3c!--/g,"\\x3c!--")).replace(/--\x3e/g,"--\\x3e")),i}function _(n){return function e(n,t){if(t<=0)return"";if(1==t)return n;var i=e(n,t>>1);return i+=i,1&t&&(i+=n),i}(" ",e.indent_start+o-n*e.indent_level)}var v,y,b=!1,E=!1,w=!1,x=0,A=!1,C=!1,B=-1,S="",T=e.source_map&&[],O=T?function(){T.forEach(function(n){try{e.source_map.add(n.token.file,n.line,n.col,n.token.line,n.token.col,n.name||"name"!=n.token.type?n.name:n.token.value)}catch(e){null!=n.token.file&&F.warn("Couldn't figure out mapping for {file}:{line},{col} \u2192 {cline},{ccol} [{name}]",{file:n.token.file,line:n.token.line,col:n.token.col,cline:n.line,ccol:n.col,name:n.name||""})}}),T=[]}:u,$=e.max_line_len?function(){if(s>e.max_line_len){if(x){var n=d.slice(0,x),t=d.slice(x);if(T){var i=t.length-s;T.forEach(function(e){e.line++,e.col+=i})}d=n+"\n"+t,l++,p++,s=t.length}s>e.max_line_len&&F.warn("Output exceeds {max_line_len} characters",e)}x&&(x=0,O())}:u,M=g("( [ + * / - , . `");function q(n){var t=et(n=String(n),0),i=et(S,S.length-1);A&&t&&(A=!1,"\n"!=t&&(q("\n"),N())),C&&t&&(C=!1,/[\s;})]/.test(t)||z()),B=-1;i=S.charAt(S.length-1);w&&(w=!1,(":"==i&&"}"==t||(!t||";}".indexOf(t)<0)&&";"!=i)&&(e.semicolons||M(t)?(d+=";",s++,p++):($(),d+="\n",p++,l++,s=0,/^\s+$/.test(n)&&(w=!0)),e.beautify||(E=!1))),E&&((at(i)&&(at(t)||"\\"==t)||"/"==t&&t==i||("+"==t||"-"==t)&&t==S)&&(d+=" ",s++,p++),E=!1),v&&(T.push({token:v,name:y,line:l,col:s}),v=!1,x||O()),d+=n,b="("==n[n.length-1],p+=n.length;var r=n.split(/\r?\n/),o=r.length-1;l+=o,s+=r[0].length,o>0&&($(),s=r[o].length),S=n}var z=e.beautify?function(){q(" ")}:function(){E=!0},N=e.beautify?function(n){e.beautify&&q(_(n?.5:0))}:u,j=e.beautify?function(e,n){!0===e&&(e=P());var t=o;o=e;var i=n();return o=t,i}:function(e,n){return n()},I=e.beautify?function(){if(B<0)return q("\n");"\n"!=d[B]&&(d=d.slice(0,B)+"\n"+d.slice(B),p++,l++),B++}:e.max_line_len?function(){$(),x=d.length}:u,H=e.beautify?function(){q(";")}:function(){w=!0};function R(){w=!1,q(";")}function P(){return o+e.indent_level}function U(){return x&&$(),d}function L(){var e=d.lastIndexOf("\n");return/^ *$/.test(d.slice(e+1))}var V=[];return{get:U,toString:U,indent:N,indentation:function(){return o},current_width:function(){return s-o},should_break:function(){return e.width&&this.current_width()>=e.width},has_parens:function(){return b},newline:I,print:q,star:function(){q("*")},space:z,comma:function(){q(","),z()},colon:function(){q(":"),z()},last:function(){return S},semicolon:H,force_semicolon:R,to_utf8:h,print_name:function(e){q(function(e){return e=e.toString(),e=h(e,!0)}(e))},print_string:function(e,n,t){var i=m(e,n);!0===t&&-1===i.indexOf("\\")&&(wt.test(d)||R(),R()),q(i)},print_template_string_chars:function(e){var n=m(e,"`").replace(/\${/g,"\\${");return q(n.substr(1,n.length-2))},encode_string:m,next_indent:P,with_indent:j,with_block:function(e){var n;return q("{"),I(),j(P(),function(){n=e()}),N(),q("}"),n},with_parens:function(e){q("(");var n=e();return q(")"),n},with_square:function(e){q("[");var n=e();return q("]"),n},add_mapping:T?function(e,n){v=e,y=n}:u,option:function(n){return e[n]},prepend_comments:n?u:function(n){var i=this,r=n.start;if(r&&(!r.comments_before||r.comments_before._dumped!==i)){var o=r.comments_before;if(o||(o=r.comments_before=[]),o._dumped=i,n instanceof oe&&n.value){var a=new qn(function(e){var n=a.parent();if(!(n instanceof oe||n instanceof ze&&n.left===e||"Call"==n.TYPE&&n.expression===e||n instanceof Ne&&n.condition===e||n instanceof Te&&n.expression===e||n instanceof Be&&n.expressions[0]===e||n instanceof Oe&&n.expression===e||n instanceof qe))return!0;if(e.start){var t=e.start.comments_before;t&&t._dumped!==i&&(t._dumped=i,o=o.concat(t))}});a.push(n),n.value.walk(a)}if(0==p){o.length>0&&e.shebang&&"comment5"==o[0].type&&(q("#!"+o.shift().value+"\n"),N());var s=e.preamble;s&&q(s.replace(/\r\n?|[\n\u2028\u2029]|\s*$/g,"\n"))}if(0!=(o=o.filter(t,n)).length){var u=L();o.forEach(function(e,n){u||(e.nlb?(q("\n"),N(),u=!0):n>0&&z()),/comment[134]/.test(e.type)?(q("//"+e.value.replace(/[@#]__PURE__/g," ")+"\n"),N(),u=!0):"comment2"==e.type&&(q("/*"+e.value.replace(/[@#]__PURE__/g," ")+"*/"),u=!1)}),u||(r.nlb?(q("\n"),N()):z())}}},append_comments:n||t===c?u:function(e,n){var i=e.end;if(i){var r=i[n?"comments_before":"comments_after"];if(r&&r._dumped!==this&&(e instanceof k||D(r,function(e){return!/comment[134]/.test(e.type)}))){r._dumped=this;var o=d.length;r.filter(t,e).forEach(function(e,t){C=!1,A?(q("\n"),N(),A=!1):e.nlb&&(t>0||!L())?(q("\n"),N()):(t>0||!n)&&z(),/comment[134]/.test(e.type)?(q("//"+e.value.replace(/[@#]__PURE__/g," ")),A=!0):"comment2"==e.type&&(q("/*"+e.value.replace(/[@#]__PURE__/g," ")+"*/"),C=!0)}),d.length>o&&(B=o)}}},line:function(){return l},col:function(){return s},pos:function(){return p},push_node:function(e){V.push(e)},pop_node:function(){return V.pop()},parent:function(e){return V[V.length-2-(e||0)]}}}function Ft(e,n){if(!(this instanceof Ft))return new Ft(e,n);Dt.call(this,this.before,this.after),void 0===e.defaults||e.defaults||(n=!0),this.options=a(e,{arguments:!1,arrows:!n,booleans:!n,booleans_as_integers:!1,collapse_vars:!n,comparisons:!n,computed_props:!n,conditionals:!n,dead_code:!n,defaults:!0,directives:!n,drop_console:!1,drop_debugger:!n,ecma:5,evaluate:!n,expression:!1,global_defs:!1,hoist_funs:!1,hoist_props:!n,hoist_vars:!1,ie8:!1,if_return:!n,inline:!n,join_vars:!n,keep_classnames:!1,keep_fargs:!0,keep_fnames:!1,keep_infinity:!1,loops:!n,module:!1,negate_iife:!n,passes:1,properties:!n,pure_getters:!n&&"strict",pure_funcs:null,reduce_funcs:!n,reduce_vars:!n,sequences:!n,side_effects:!n,switches:!n,top_retain:null,toplevel:!(!e||!e.top_retain),typeofs:!n,unsafe:!1,unsafe_arrows:!1,unsafe_comps:!1,unsafe_Function:!1,unsafe_math:!1,unsafe_methods:!1,unsafe_proto:!1,unsafe_regexp:!1,unsafe_undefined:!1,unused:!n,warnings:!1},!0);var t=this.options.global_defs;if("object"==typeof t)for(var i in t)/^@/.test(i)&&b(t,i)&&(t[i.slice(1)]=gt(t[i],{expression:!0}));!0===this.options.inline&&(this.options.inline=3);var r=this.options.pure_funcs;this.pure_funcs="function"==typeof r?r:r?function(e){return r.indexOf(e.expression.print_to_string())<0}:f;var o=this.options.top_retain;o instanceof RegExp?this.top_retain=function(e){return o.test(e.name)}:"function"==typeof o?this.top_retain=o:o&&("string"==typeof o&&(o=o.split(/,/)),this.top_retain=function(e){return o.indexOf(e.name)>=0}),this.options.module&&(this.directives["use strict"]=!0,this.options.toplevel=!0);var s=this.options.toplevel;this.toplevel="string"==typeof s?{funcs:/funcs/.test(s),vars:/vars/.test(s)}:{funcs:s,vars:s};var u=this.options.sequences;this.sequences_limit=1==u?800:0|u,this.warnings_produced={}}function kt(e,n){function t(e){h(n,e)}e.walk(new qn(function(e){e instanceof Ue&&e.quote?t(e.key):e instanceof Pe&&e.quote?t(e.key.name):e instanceof Oe&&Ct(e.property,t)}))}function Ct(e,n){e.walk(new qn(function(e){return e instanceof Be?Ct(e.tail_node(),n):e instanceof bn?n(e.value):e instanceof Ne&&(Ct(e.consequent,n),Ct(e.alternative,n)),!0}))}function Bt(e,n){var t=(n=a(n,{builtins:!1,cache:null,debug:!1,keep_quoted:!1,only_cache:!1,regex:null,reserved:null},!0)).reserved;Array.isArray(t)||(t=[]),n.builtins||function(e){var n={},t="object"==typeof global?global:self;function i(n){h(e,n)}["Symbol","Map","Promise","Proxy","Reflect","Set","WeakMap","WeakSet"].forEach(function(e){n[e]=t[e]||new Function}),["null","true","false","Infinity","-Infinity","undefined"].forEach(i),[Object,Array,Function,Number,String,Boolean,Error,Math,Date,RegExp,n.Symbol,ArrayBuffer,DataView,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,eval,EvalError,Float32Array,Float64Array,Int8Array,Int16Array,Int32Array,isFinite,isNaN,JSON,n.Map,parseFloat,parseInt,n.Promise,n.Proxy,RangeError,ReferenceError,n.Reflect,n.Set,SyntaxError,TypeError,Uint8Array,Uint8ClampedArray,Uint16Array,Uint32Array,URIError,n.WeakMap,n.WeakSet].forEach(function(e){Object.getOwnPropertyNames(e).map(i),e.prototype&&Object.getOwnPropertyNames(e.prototype).map(i)})}(t);var i,r=-1;n.cache?(i=n.cache.props).each(function(e){h(t,e)}):i=new y;var o,s=n.regex,u=!1!==n.debug;u&&(o=!0===n.debug?"":n.debug);var c=[],f=[];return e.walk(new qn(function(e){e instanceof Ue?"string"==typeof e.key&&d(e.key):e instanceof Pe?d(e.key.name):e instanceof Te?d(e.property):e instanceof Oe?Ct(e.property,d):e instanceof ke&&"Object.defineProperty"==e.expression.print_to_string()&&Ct(e.args[1],d)})),e.transform(new Dt(function(e){e instanceof Ue?"string"==typeof e.key&&(e.key=m(e.key)):e instanceof Pe?e.key.name=m(e.key.name):e instanceof Te?e.property=m(e.property):!n.keep_quoted&&e instanceof Oe?e.property=_(e.property):e instanceof ke&&"Object.defineProperty"==e.expression.print_to_string()&&(e.args[1]=_(e.args[1]))}));function l(e){return!(f.indexOf(e)>=0)&&(!(t.indexOf(e)>=0)&&(n.only_cache?i.has(e):!/^-?[0-9]+(\.[0-9]+)?(e[+-][0-9]+)?$/.test(e)))}function p(e){return!(s&&!s.test(e))&&(!(t.indexOf(e)>=0)&&(i.has(e)||c.indexOf(e)>=0))}function d(e){l(e)&&h(c,e),p(e)||h(f,e)}function m(e){if(!p(e))return e;var n=i.get(e);if(!n){if(u){var t="_$"+e+"$"+o+"_";l(t)&&(n=t)}if(!n)do{n=Et(++r)}while(!l(n));i.set(e,n)}return n}function _(e){return e.transform(new Dt(function(e){if(e instanceof Be){var n=e.expressions.length-1;e.expressions[n]=_(e.expressions[n])}else e instanceof bn?e.value=m(e.value):e instanceof Ne&&(e.consequent=_(e.consequent),e.alternative=_(e.alternative));return e}))}}!function(){function e(e,n){e.DEFMETHOD("_codegen",n)}var n=!1,t=null,i=null;function r(e,n){Array.isArray(e)?e.forEach(function(e){r(e,n)}):e.DEFMETHOD("needs_parens",n)}function o(e,t,i,r){var o=e.length-1;n=r,e.forEach(function(e,r){!0!==n||e instanceof B||e instanceof q||e instanceof S&&e.body instanceof bn||(n=!1),e instanceof q||(i.indent(),e.print(i),r==o&&t||(i.newline(),t&&i.newline())),!0===n&&e instanceof S&&e.body instanceof bn&&(n=!1)}),n=!1}function a(e,n){n.print("{"),n.with_indent(n.next_indent(),function(){n.append_comments(e,!0)}),n.print("}")}function s(e,n,t){e.body.length>0?n.with_block(function(){o(e.body,!1,n,t)}):a(e,n)}function f(e,n,t){var i=!1;t&&e.walk(new qn(function(e){return!!(i||e instanceof Y)||(e instanceof ze&&"in"==e.operator?(i=!0,!0):void 0)})),e.print(n,i)}function l(e,n,t){t.option("quote_keys")?t.print_string(e):""+ +e==e&&e>=0?t.print(h(e)):(jn(e)?!t.option("ie8"):st(e))?n&&t.option("keep_quoted_props")?t.print_string(e,n):t.print_name(e):t.print_string(e,n)}function p(e,n){n.option("braces")?m(e,n):!e||e instanceof q?n.force_semicolon():e.print(n)}function d(e,n){return e.args.length>0||n.option("beautify")}function h(e){var n,t=e.toString(10),i=[t.replace(/^0\./,".").replace("e+","e")];return Math.floor(e)===e?(e>=0?i.push("0x"+e.toString(16).toLowerCase(),"0"+e.toString(8)):i.push("-0x"+(-e).toString(16).toLowerCase(),"-0"+(-e).toString(8)),(n=/^(.*?)(0+)$/.exec(e))&&i.push(n[1]+"e"+n[2].length)):(n=/^0?\.(0+)(.*)$/.exec(e))&&i.push(n[2]+"e-"+(n[1].length+n[2].length),t.substr(t.indexOf("."))),function(e){for(var n=e[0],t=n.length,i=1;i<e.length;++i)e[i].length<t&&(t=(n=e[i]).length);return n}(i)}function m(e,n){!e||e instanceof q?n.print("{}"):e instanceof M?e.print(n):n.with_block(function(){n.indent(),e.print(n),n.newline()})}function _(e,n){e.forEach(function(e){e.DEFMETHOD("add_source_map",n)})}F.DEFMETHOD("print",function(e,n){var r=this,o=r._codegen;function a(){e.prepend_comments(r),r.add_source_map(e),o(r,e),e.append_comments(r)}r instanceof Y?t=r:!i&&r instanceof B&&"use asm"==r.value&&(i=t),e.push_node(r),n||r.needs_parens(e)?e.with_parens(a):a(),e.pop_node(),r===i&&(i=null)}),F.DEFMETHOD("_print",F.prototype.print),F.DEFMETHOD("print_to_string",function(e){var n=At(e);return this.print(n),n.get()}),r(F,c),r(Z,function(e){if(!e.has_parens()&&E(e))return!0;var n;if(e.option("webkit")&&((n=e.parent())instanceof Se&&n.expression===this))return!0;return!!e.option("wrap_iife")&&((n=e.parent())instanceof ke&&n.expression===this)}),r(K,function(e){var n=e.parent();return n instanceof Se&&n.expression===this}),r(Re,function(e){return!e.has_parens()&&E(e)}),r(Xe,E),r($e,function(e){var n=e.parent();return n instanceof Se&&n.expression===this||n instanceof ke&&n.expression===this||n instanceof ze&&"**"===n.operator&&this instanceof Me&&n.left===this&&"++"!==this.operator&&"--"!==this.operator}),r($n,function(e){var n=e.parent();return n instanceof Se&&n.expression===this||n instanceof ke&&n.expression===this||e.option("safari10")&&n instanceof Me}),r(Be,function(e){var n=e.parent();return n instanceof ke||n instanceof $e||n instanceof ze||n instanceof Fe||n instanceof Se||n instanceof He||n instanceof Pe||n instanceof Ne||n instanceof K||n instanceof Ie||n instanceof G||n instanceof L&&this===n.object||n instanceof Mn||n instanceof Ae}),r(ze,function(e){var n=e.parent();if(n instanceof ke&&n.expression===this)return!0;if(n instanceof $e)return!0;if(n instanceof Se&&n.expression===this)return!0;if(n instanceof ze){var t=n.operator,i=_t[t],r=this.operator,o=_t[r];if(i>o||i==o&&(this===n.right||"**"==t))return!0}}),r(Mn,function(e){var n=e.parent();return n instanceof ze&&"="!==n.operator||(n instanceof ke&&n.expression===this||(n instanceof Ne&&n.condition===this||(n instanceof $e||(n instanceof Se&&n.expression===this||void 0))))}),r(Se,function(e){var n=e.parent();if(n instanceof Ce&&n.expression===this){var t=!1;return this.walk(new qn(function(e){return!!(t||e instanceof Y)||(e instanceof ke?(t=!0,!0):void 0)})),t}}),r(ke,function(e){var n,t=e.parent();return!!(t instanceof Ce&&t.expression===this||t instanceof Ae&&t.is_default&&this.expression instanceof Z)||this.expression instanceof Z&&t instanceof Se&&t.expression===this&&(n=e.parent(1))instanceof je&&n.left===t}),r(Ce,function(e){var n=e.parent();if(!d(this,e)&&(n instanceof Se||n instanceof ke&&n.expression===this))return!0}),r(En,function(e){var n=e.parent();if(n instanceof Se&&n.expression===this){var t=this.getValue();if(t<0||/^0/.test(h(t)))return!0}}),r([je,Ne],function(e){var n=e.parent();return n instanceof $e||(n instanceof ze&&!(n instanceof je)||(n instanceof ke&&n.expression===this||(n instanceof Ne&&n.condition===this||(n instanceof Se&&n.expression===this||(this instanceof je&&this.left instanceof ee&&!1===this.left.is_array||void 0)))))}),e(B,function(e,n){n.print_string(e.value,e.quote),n.semicolon()}),e(G,function(e,n){n.print("..."),e.expression.print(n)}),e(ee,function(e,n){n.print(e.is_array?"[":"{");var t=e.names.length;e.names.forEach(function(e,i){i>0&&n.comma(),e.print(n),i==t-1&&e instanceof Cn&&n.comma()}),n.print(e.is_array?"]":"}")}),e(C,function(e,n){n.print("debugger"),n.semicolon()}),z.DEFMETHOD("_do_print_body",function(e){p(this.body,e)}),e(k,function(e,n){e.body.print(n),n.semicolon()}),e(W,function(e,n){o(e.body,!0,n,!0),n.print("")}),e(N,function(e,n){e.label.print(n),n.colon(),e.body.print(n)}),e(S,function(e,n){e.body.print(n),n.semicolon()}),e(M,function(e,n){s(e,n)}),e(q,function(e,n){n.semicolon()}),e(H,function(e,n){n.print("do"),n.space(),m(e.body,n),n.space(),n.print("while"),n.space(),n.with_parens(function(){e.condition.print(n)}),n.semicolon()}),e(R,function(e,n){n.print("while"),n.space(),n.with_parens(function(){e.condition.print(n)}),n.space(),e._do_print_body(n)}),e(P,function(e,n){n.print("for"),n.space(),n.with_parens(function(){e.init?(e.init instanceof De?e.init.print(n):f(e.init,n,!0),n.print(";"),n.space()):n.print(";"),e.condition?(e.condition.print(n),n.print(";"),n.space()):n.print(";"),e.step&&e.step.print(n)}),n.space(),e._do_print_body(n)}),e(U,function(e,n){n.print("for"),e.await&&(n.space(),n.print("await")),n.space(),n.with_parens(function(){e.init.print(n),n.space(),n.print(e instanceof L?"of":"in"),n.space(),e.object.print(n)}),n.space(),e._do_print_body(n)}),e(V,function(e,n){n.print("with"),n.space(),n.with_parens(function(){e.expression.print(n)}),n.space(),e._do_print_body(n)}),X.DEFMETHOD("_do_print",function(e,n){var t=this;n||(t.async&&(e.print("async"),e.space()),e.print("function"),t.is_generator&&e.star(),t.name&&e.space()),t.name instanceof Je?t.name.print(e):n&&t.name instanceof F&&e.with_square(function(){t.name.print(e)}),e.with_parens(function(){t.argnames.forEach(function(n,t){t&&e.comma(),n.print(e)})}),e.space(),s(t,e,!0)}),e(X,function(e,n){e._do_print(n)}),e(ne,function(e,n){var t=e.prefix,i=t instanceof K||t instanceof ze||t instanceof Ne||t instanceof Be||t instanceof $e;i&&n.print("("),e.prefix.print(n),i&&n.print(")"),e.template_string.print(n)}),e(te,function(e,n){var t=n.parent()instanceof ne;n.print("`");for(var i=0;i<e.segments.length;i++)e.segments[i]instanceof ie?t?n.print(e.segments[i].raw):n.print_template_string_chars(e.segments[i].value):(n.print("${"),e.segments[i].print(n),n.print("}"));n.print("`")}),K.DEFMETHOD("_do_print",function(e){var n=this,t=e.parent(),i=t instanceof ze||t instanceof $e||t instanceof ke&&n===t.expression;i&&e.print("("),n.async&&(e.print("async"),e.space()),1===n.argnames.length&&n.argnames[0]instanceof Je?n.argnames[0].print(e):e.with_parens(function(){n.argnames.forEach(function(n,t){t&&e.comma(),n.print(e)})}),e.space(),e.print("=>"),e.space(),n.body instanceof F?n.body.print(e):s(n,e),i&&e.print(")")}),oe.DEFMETHOD("_do_print",function(e,n){e.print(n),this.value&&(e.space(),this.value.print(e)),e.semicolon()}),e(ae,function(e,n){e._do_print(n,"return")}),e(se,function(e,n){e._do_print(n,"throw")}),e(Mn,function(e,n){var t=e.is_star?"*":"";n.print("yield"+t),e.expression&&(n.space(),e.expression.print(n))}),e($n,function(e,n){n.print("await"),n.space();var t=e.expression,i=!(t instanceof ke||t instanceof hn||t instanceof Se||t instanceof $e||t instanceof yn);i&&n.print("("),e.expression.print(n),i&&n.print(")")}),ue.DEFMETHOD("_do_print",function(e,n){e.print(n),this.label&&(e.space(),this.label.print(e)),e.semicolon()}),e(ce,function(e,n){e._do_print(n,"break")}),e(fe,function(e,n){e._do_print(n,"continue")}),e(le,function(e,n){n.print("if"),n.space(),n.with_parens(function(){e.condition.print(n)}),n.space(),e.alternative?(!function(e,n){var t=e.body;if(n.option("braces")||n.option("ie8")&&t instanceof H)return m(t,n);if(!t)return n.force_semicolon();for(;;)if(t instanceof le){if(!t.alternative)return void m(e.body,n);t=t.alternative}else{if(!(t instanceof z))break;t=t.body}p(e.body,n)}(e,n),n.space(),n.print("else"),n.space(),e.alternative instanceof le?e.alternative.print(n):p(e.alternative,n)):e._do_print_body(n)}),e(pe,function(e,n){n.print("switch"),n.space(),n.with_parens(function(){e.expression.print(n)}),n.space();var t=e.body.length-1;t<0?a(e,n):n.with_block(function(){e.body.forEach(function(e,i){n.indent(!0),e.print(n),i<t&&e.body.length>0&&n.newline()})})}),de.DEFMETHOD("_do_print_body",function(e){e.newline(),this.body.forEach(function(n){e.indent(),n.print(e),e.newline()})}),e(he,function(e,n){n.print("default:"),e._do_print_body(n)}),e(me,function(e,n){n.print("case"),n.space(),e.expression.print(n),n.print(":"),e._do_print_body(n)}),e(_e,function(e,n){n.print("try"),n.space(),s(e,n),e.bcatch&&(n.space(),e.bcatch.print(n)),e.bfinally&&(n.space(),e.bfinally.print(n))}),e(ve,function(e,n){n.print("catch"),e.argname&&(n.space(),n.with_parens(function(){e.argname.print(n)})),n.space(),s(e,n)}),e(ge,function(e,n){n.print("finally"),n.space(),s(e,n)}),De.DEFMETHOD("_do_print",function(e,n){e.print(n),e.space(),this.definitions.forEach(function(n,t){t&&e.comma(),n.print(e)});var t=e.parent();(!(t instanceof P||t instanceof U)||t&&t.init!==this)&&e.semicolon()}),e(be,function(e,n){e._do_print(n,"let")}),e(ye,function(e,n){e._do_print(n,"var")}),e(Ee,function(e,n){e._do_print(n,"const")}),e(xe,function(e,n){n.print("import"),n.space(),e.imported_name&&e.imported_name.print(n),e.imported_name&&e.imported_names&&(n.print(","),n.space()),e.imported_names&&(1===e.imported_names.length&&"*"===e.imported_names[0].foreign_name.name?e.imported_names[0].print(n):(n.print("{"),e.imported_names.forEach(function(t,i){n.space(),t.print(n),i<e.imported_names.length-1&&n.print(",")}),n.space(),n.print("}"))),(e.imported_name||e.imported_names)&&(n.space(),n.print("from"),n.space()),e.module_name.print(n),n.semicolon()}),e(we,function(e,n){var t=n.parent()instanceof xe,i=e.name.definition();(i&&i.mangled_name||e.name.name)!==e.foreign_name.name?(t?n.print(e.foreign_name.name):e.name.print(n),n.space(),n.print("as"),n.space(),t?e.name.print(n):n.print(e.foreign_name.name)):e.name.print(n)}),e(Ae,function(e,n){if(n.print("export"),n.space(),e.is_default&&(n.print("default"),n.space()),e.exported_names)1===e.exported_names.length&&"*"===e.exported_names[0].name.name?e.exported_names[0].print(n):(n.print("{"),e.exported_names.forEach(function(t,i){n.space(),t.print(n),i<e.exported_names.length-1&&n.print(",")}),n.space(),n.print("}"));else if(e.exported_value)e.exported_value.print(n);else if(e.exported_definition&&(e.exported_definition.print(n),e.exported_definition instanceof De))return;e.module_name&&(n.space(),n.print("from"),n.space(),e.module_name.print(n)),(e.exported_value&&!(e.exported_value instanceof Q||e.exported_value instanceof Z||e.exported_value instanceof We)||e.module_name||e.exported_names)&&n.semicolon()}),e(Fe,function(e,n){if(e.name.print(n),e.value){n.space(),n.print("="),n.space();var t=n.parent(1),i=t instanceof P||t instanceof U;f(e.value,n,i)}}),e(ke,function(e,n){e.expression.print(n),e instanceof Ce&&!d(e,n)||((e.expression instanceof ke||e.expression instanceof X)&&n.add_mapping(e.start),n.with_parens(function(){e.args.forEach(function(e,t){t&&n.comma(),e.print(n)})}))}),e(Ce,function(e,n){n.print("new"),n.space(),ke.prototype._codegen(e,n)}),Be.DEFMETHOD("_do_print",function(e){this.expressions.forEach(function(n,t){t>0&&(e.comma(),e.should_break()&&(e.newline(),e.indent())),n.print(e)})}),e(Be,function(e,n){e._do_print(n)}),e(Te,function(e,n){var t=e.expression;t.print(n);var i=e.property;n.option("ie8")&&jn(i)?(n.print("["),n.add_mapping(e.end),n.print_string(i),n.print("]")):(t instanceof En&&t.getValue()>=0&&(/[xa-f.)]/i.test(n.last())||n.print(".")),n.print("."),n.add_mapping(e.end),n.print_name(i))}),e(Oe,function(e,n){e.expression.print(n),n.print("["),e.property.print(n),n.print("]")}),e(Me,function(e,n){var t=e.operator;n.print(t),(/^[a-z]/i.test(t)||/[+-]$/.test(t)&&e.expression instanceof Me&&/^[+-]/.test(e.expression.operator))&&n.space(),e.expression.print(n)}),e(qe,function(e,n){e.expression.print(n),n.print(e.operator)}),e(ze,function(e,n){var t=e.operator;e.left.print(n),">"==t[0]&&e.left instanceof qe&&"--"==e.left.operator?n.print(" "):n.space(),n.print(t),("<"==t||"<<"==t)&&e.right instanceof Me&&"!"==e.right.operator&&e.right.expression instanceof Me&&"--"==e.right.expression.operator?n.print(" "):n.space(),e.right.print(n)}),e(Ne,function(e,n){e.condition.print(n),n.space(),n.print("?"),n.space(),e.consequent.print(n),n.space(),n.colon(),e.alternative.print(n)}),e(He,function(e,n){n.with_square(function(){var t=e.elements,i=t.length;i>0&&n.space(),t.forEach(function(e,t){t&&n.comma(),e.print(n),t===i-1&&e instanceof Cn&&n.comma()}),i>0&&n.space()})}),e(Re,function(e,n){e.properties.length>0?n.with_block(function(){e.properties.forEach(function(e,t){t&&(n.print(","),n.newline()),n.indent(),e.print(n)}),n.newline()}):a(e,n)}),e(We,function(e,n){if(n.print("class"),n.space(),e.name&&(e.name.print(n),n.space()),e.extends){var t=!(e.extends instanceof hn||e.extends instanceof Se||e.extends instanceof Xe||e.extends instanceof Z);n.print("extends"),t?n.print("("):n.space(),e.extends.print(n),t?n.print(")"):n.space()}e.properties.length>0?n.with_block(function(){e.properties.forEach(function(e,t){t&&n.newline(),n.indent(),e.print(n)}),n.newline()}):n.print("{}")}),e(Ze,function(e,n){n.print("new.target")}),e(Ue,function(e,n){function t(e){var n=e.definition();return n?n.mangled_name||n.name:e.name}var i=n.option("shorthand");i&&e.value instanceof Je&&st(e.key)&&t(e.value)===e.key&&rt(e.key)?l(e.key,e.quote,n):i&&e.value instanceof Ie&&e.value.left instanceof Je&&st(e.key)&&t(e.value.left)===e.key?(l(e.key,e.quote,n),n.space(),n.print("="),n.space(),e.value.right.print(n)):(e.key instanceof F?n.with_square(function(){e.key.print(n)}):l(e.key,e.quote,n),n.colon(),e.value.print(n))}),Pe.DEFMETHOD("_print_getter_setter",function(e,n){var t=this;t.static&&(n.print("static"),n.space()),e&&(n.print(e),n.space()),t.key instanceof an?l(t.key.name,t.quote,n):n.with_square(function(){t.key.print(n)}),t.value._do_print(n,!0)}),e(Le,function(e,n){e._print_getter_setter("set",n)}),e(Ve,function(e,n){e._print_getter_setter("get",n)}),e(Ye,function(e,n){var t;e.is_generator&&e.async?t="async*":e.is_generator?t="*":e.async&&(t="async"),e._print_getter_setter(t,n)}),Je.DEFMETHOD("_do_print",function(e){var n=this.definition();e.print_name(n?n.mangled_name||n.name:this.name)}),e(Je,function(e,n){e._do_print(n)}),e(Cn,u),e(gn,function(e,n){n.print("this")}),e(Dn,function(e,n){n.print("super")}),e(yn,function(e,n){n.print(e.getValue())}),e(bn,function(e,t){t.print_string(e.getValue(),e.quote,n)}),e(En,function(e,n){i&&e.start&&null!=e.start.raw?n.print(e.start.raw):n.print(h(e.getValue()))}),e(wn,function(e,n){var t=e.getValue().toString();t=n.to_utf8(t),n.print(t);var i=n.parent();i instanceof ze&&/^in/.test(i.operator)&&i.left===e&&n.print(" ")}),_([F,N,W],u),_([He,M,ve,We,yn,C,De,B,ge,re,X,Ce,Re,z,Je,pe,de,_e],function(e){e.add_mapping(this.start)}),_([Ve,Le],function(e){e.add_mapping(this.start,this.key.name)}),_([Pe],function(e){e.add_mapping(this.start,this.key)})}(),Ft.prototype=new Dt,s(Ft.prototype,{option:function(e){return this.options[e]},exposed:function(e){if(e.export)return!0;if(e.global)for(var n=0,t=e.orig.length;n<t;n++)if(!this.toplevel[e.orig[n]instanceof on?"funcs":"vars"])return!0;return!1},in_boolean_context:function(){if(!this.option("booleans"))return!1;for(var e,n=this.self(),t=0;e=this.parent(t);t++){if(e instanceof S||e instanceof Ne&&e.condition===n||e instanceof I&&e.condition===n||e instanceof P&&e.condition===n||e instanceof le&&e.condition===n||e instanceof Me&&"!"==e.operator&&e.expression===n)return!0;if(!(e instanceof ze&&("&&"==e.operator||"||"==e.operator)||e instanceof Ne||e.tail_node()===n))return!1;n=e}},compress:function(e){e=e.resolve_defines(this),this.option("expression")&&e.process_expression(!0);for(var n=+this.options.passes||1,t=1/0,i=!1,r={ie8:this.option("ie8")},o=0;o<n;o++)if(e.figure_out_scope(r),0===o&&this.option("drop_console")&&(e=e.drop_console()),(o>0||this.option("reduce_vars"))&&e.reset_opt_flags(this),e=e.transform(this),n>1){var a=0;if(e.walk(new qn(function(){a++})),this.info("pass "+o+": last_count: "+t+", count: "+a),a<t)t=a,i=!1;else{if(i)break;i=!0}}return this.option("expression")&&e.process_expression(!1),e},info:function(){"verbose"==this.options.warnings&&F.warn.apply(F,arguments)},warn:function(e,n){if(this.options.warnings){var t=m(e,n);t in this.warnings_produced||(this.warnings_produced[t]=!0,F.warn.apply(F,arguments))}},clear_warnings:function(){this.warnings_produced={}},before:function(e,n,t){if(e._squeezed)return e;var i=!1;e instanceof Y&&(e=(e=e.hoist_properties(this)).hoist_declarations(this),i=!0),n(e,this),n(e,this);var r=e.optimize(this);return i&&r instanceof Y&&(r.drop_unused(this),n(r,this)),r===e&&(r._squeezed=!0),r}}),function(){function e(e,n){e.DEFMETHOD("optimize",function(e){if(this._optimized)return this;if(e.has_directive("use asm"))return this;var t=n(this,e);return t._optimized=!0,t})}function n(e,n){if(!((n=xn(n))instanceof F)){var t;if(e instanceof He){var i=e.elements;if("length"==n)return A(i.length,e);"number"==typeof n&&n in i&&(t=i[n])}else if(e instanceof Re){n=""+n;for(var r=e.properties,o=r.length;--o>=0;){if(!(r[o]instanceof Ue))return;t||r[o].key!==n||(t=r[o].value)}}return t instanceof hn&&t.fixed_value()||t}}function r(e,t,i,o,a,s){var u=t.parent(a),c=In(i,u);if(c)return c;if(!s&&u instanceof ke&&u.expression===i&&!(o instanceof K)&&!(o instanceof We)&&!u.is_expr_pure(e)&&(!(o instanceof Z)||!(u instanceof Ce)&&o.contains_this()))return!0;if(u instanceof He)return r(e,t,u,u,a+1);if(u instanceof Ue&&i===u.value){var f=t.parent(a+1);return r(e,t,f,f,a+2)}if(u instanceof Se&&u.expression===i){var l=n(o,u.property);return!s&&r(e,t,u,l,a+1)}}function o(e){return e instanceof K||e instanceof Z}function a(e){if(e instanceof gn)return!0;if(e instanceof hn)return e.definition().orig[0]instanceof sn;if(e instanceof Se){if((e=e.expression)instanceof hn){if(e.is_immutable())return!1;e=e.fixed_value()}return!e||!(e instanceof wn)&&(e instanceof yn||a(e))}return!1}function s(e,n){if(!(e instanceof hn))return!1;for(var t=e.definition().orig,i=t.length;--i>=0;)if(t[i]instanceof n)return!0}function h(e,n){for(var t,i=0;(t=e.parent(i++))&&!(t instanceof Y);)if(t instanceof ve&&t.argname){t=t.argname.definition().scope;break}return t.find_variable(n)}function v(e,n,t){return t||(t={}),n&&(t.start||(t.start=n.start),t.end||(t.end=n.end)),new e(t)}function x(e,n){return 1==n.length?n[0]:v(Be,e,{expressions:n.reduce(z,[])})}function A(e,n){switch(typeof e){case"string":return v(bn,n,{value:e});case"number":return isNaN(e)?v(Fn,n):isFinite(e)?1/e<0?v(Me,n,{operator:"-",expression:v(En,n,{value:-e})}):v(En,n,{value:e}):e<0?v(Me,n,{operator:"-",expression:v(Bn,n)}):v(Bn,n);case"boolean":return v(e?On:Tn,n);case"undefined":return v(kn,n);default:if(null===e)return v(An,n,{value:null});if(e instanceof RegExp)return v(wn,n,{value:e});throw new Error(m("Can't handle constant of type: {type}",{type:typeof e}))}}function O(e,n,t){return e instanceof Me&&"delete"==e.operator||e instanceof ke&&e.expression===n&&(t instanceof Se||t instanceof hn&&"eval"==t.name)?x(n,[v(En,n,{value:0}),t]):t}function z(e,n){return n instanceof Be?e.push.apply(e,n.expressions):e.push(n),e}function L(e){if(null===e)return[];if(e instanceof M)return e.body;if(e instanceof q)return[];if(e instanceof k)return[e];throw new Error("Can't convert thing to statement array")}function se(e){return null===e||(e instanceof q||e instanceof M&&0==e.body.length)}function we(e){return!(e instanceof Ge||e instanceof Q||e instanceof be||e instanceof Ee||e instanceof Ae||e instanceof xe)}function Le(e){return e instanceof j&&e.body instanceof M?e.body:e}function Ze(e){return"Call"==e.TYPE&&(e.expression instanceof Z||Ze(e.expression))}function tn(e){return e instanceof hn&&e.definition().undeclared}e(F,function(e,n){return e}),W.DEFMETHOD("drop_console",function(){return this.transform(new Dt(function(e){if("Call"==e.TYPE){var n=e.expression;if(n instanceof Se){for(var t=n.expression;t.expression;)t=t.expression;if(tn(t)&&"console"==t.name)return v(kn,e)}}}))}),F.DEFMETHOD("equivalent_to",function(e){return this.TYPE==e.TYPE&&this.print_to_string()==e.print_to_string()}),Y.DEFMETHOD("process_expression",function(e,n){var t=this,i=new Dt(function(r){if(e&&r instanceof S)return v(ae,r,{value:r.body});if(!e&&r instanceof ae){if(n){var o=r.value&&r.value.drop_side_effect_free(n,!0);return o?v(S,r,{body:o}):v(q,r)}return v(S,r,{body:r.value||v(Me,r,{operator:"void",expression:v(En,r,{value:0})})})}if(r instanceof We||r instanceof X&&r!==t)return r;if(r instanceof $){var a=r.body.length-1;a>=0&&(r.body[a]=r.body[a].transform(i))}else r instanceof le?(r.body=r.body.transform(i),r.alternative&&(r.alternative=r.alternative.transform(i))):r instanceof V&&(r.body=r.body.transform(i));return r});t.transform(i)}),function(e){function t(e,n){n.assignments=0,n.chained=!1,n.direct_access=!1,n.escaped=!1,n.scope.pinned()?n.fixed=!1:n.orig[0]instanceof nn||!e.exposed(n)?n.fixed=n.init:n.fixed=!1,n.recursive_refs=0,n.references=[],n.should_replace=void 0,n.single_use=void 0}function i(e,n,i){i.variables.each(function(i){t(n,i),null===i.fixed?(i.safe_ids=e.safe_ids,c(e,i,!0)):i.fixed&&(e.loop_ids[i.id]=e.in_loop,c(e,i,!0))})}function o(e,n){n.block_scope&&n.block_scope.variables.each(function(n){t(e,n)})}function a(e){e.safe_ids=Object.create(e.safe_ids)}function s(e){e.safe_ids=Object.getPrototypeOf(e.safe_ids)}function c(e,n,t){e.safe_ids[n.id]=t}function f(e,n){if("m"==n.single_use)return!1;if(e.safe_ids[n.id]){if(null==n.fixed){var t=n.orig[0];if(t instanceof rn||"arguments"==t.name)return!1;n.fixed=v(kn,t)}return!0}return n.fixed instanceof Q}function l(e,n,t){return void 0===n.fixed||(null===n.fixed&&n.safe_ids?(n.safe_ids[n.id]=!1,delete n.safe_ids,!0):!!b(e.safe_ids,n.id)&&(!!f(e,n)&&(!1!==n.fixed&&(!(null!=n.fixed&&(!t||n.references.length>n.assignments))&&D(n.orig,function(e){return!(e instanceof nn||e instanceof on||e instanceof sn)})))))}function p(e,t,i,r,o,a,s){var u=e.parent(a);if(o){if(o.is_constant())return;if(o instanceof Xe)return}if(u instanceof je&&"="==u.operator&&r===u.right||u instanceof ke&&(r!==u.expression||u instanceof Ce)||u instanceof oe&&r===u.value&&r.scope!==t.scope||u instanceof Fe&&r===u.value||u instanceof Mn&&r===u.value&&r.scope!==t.scope)return!(s>1)||o&&o.is_constant_expression(i)||(s=1),void((!t.escaped||t.escaped>s)&&(t.escaped=s));if(u instanceof He||u instanceof $n||u instanceof ze&&Nn(u.operator)||u instanceof Ne&&r!==u.condition||u instanceof G||u instanceof Be&&r===u.tail_node())p(e,t,i,u,u,a+1,s);else if(u instanceof Ue&&r===u.value){var c=e.parent(a+1);p(e,t,i,c,c,a+2,s)}else if(u instanceof Se&&r===u.expression&&(p(e,t,i,u,o=n(o,u.property),a+1,s+1),o))return;a>0||u instanceof Be&&r!==u.tail_node()||u instanceof S||(t.direct_access=!0)}e(F,u);var d=new qn(function(e){if(e instanceof Je){var n=e.definition();n&&(e instanceof hn&&n.references.push(e),n.fixed=!1)}});function h(e,n,t){this.inlined=!1;var r=e.safe_ids;return e.safe_ids=Object.create(null),i(e,t,this),n(),e.safe_ids=r,!0}function m(e,n,t){var r,o=this;return o.inlined=!1,a(e),i(e,t,o),!o.name&&(r=e.parent())instanceof ke&&r.expression===o&&o.argnames.forEach(function(n,t){if(n.definition){var i=n.definition();void 0!==i.fixed||o.uses_arguments&&!e.has_directive("use strict")?i.fixed=!1:(i.fixed=function(){return r.args[t]||v(kn,r)},e.loop_ids[i.id]=e.in_loop,c(e,i,!0))}}),n(),s(e),!0}e(J,function(e,n,t){return a(e),i(e,t,this),n(),s(e),!0}),e(K,m),e(je,function(e,n,t){var i=this;if(i.left instanceof ee)i.left.walk(d);else{var o=i.left;if(o instanceof hn){var a=o.definition(),s=l(e,a,o.scope,i.right);if(a.assignments++,s){var u=a.fixed;if(u||"="==i.operator){var f="="==i.operator,h=f?i.right:i;if(!r(t,e,i,h,0))return a.references.push(o),f||(a.chained=!0),a.fixed=f?function(){return i.right}:function(){return v(ze,i,{operator:i.operator.slice(0,-1),left:u instanceof F?u:u(),right:i.right})},c(e,a,!1),i.right.walk(e),c(e,a,!0),p(e,a,o.scope,i,h,0,1),!0}}}}}),e(ze,function(e){if(Nn(this.operator))return this.left.walk(e),a(e),this.right.walk(e),s(e),!0}),e($,function(e,n,t){o(t,this)}),e(me,function(e){return a(e),this.expression.walk(e),s(e),a(e),T(this,e),s(e),!0}),e(Xe,function(e,n){return this.inlined=!1,a(e),n(),s(e),!0}),e(Ne,function(e){return this.condition.walk(e),a(e),this.consequent.walk(e),s(e),a(e),this.alternative.walk(e),s(e),!0}),e(he,function(e,n){return a(e),n(),s(e),!0}),e(Ge,h),e(Q,h),e(H,function(e,n,t){o(t,this);var i=e.in_loop;return e.in_loop=this,a(e),this.body.walk(e),Jn(this)&&(s(e),a(e)),this.condition.walk(e),s(e),e.in_loop=i,!0}),e(P,function(e,n,t){o(t,this),this.init&&this.init.walk(e);var i=e.in_loop;return e.in_loop=this,a(e),this.condition&&this.condition.walk(e),this.body.walk(e),this.step&&(Jn(this)&&(s(e),a(e)),this.step.walk(e)),s(e),e.in_loop=i,!0}),e(U,function(e,n,t){o(t,this),this.init.walk(d),this.object.walk(e);var i=e.in_loop;return e.in_loop=this,a(e),this.body.walk(e),s(e),e.in_loop=i,!0}),e(Z,m),e(le,function(e){return this.condition.walk(e),a(e),this.body.walk(e),s(e),this.alternative&&(a(e),this.alternative.walk(e),s(e)),!0}),e(N,function(e){return a(e),this.body.walk(e),s(e),!0}),e(fn,function(){this.definition().fixed=!1}),e(hn,function(e,n,t){var i,o=this.definition();o.references.push(this),1==o.references.length&&!o.fixed&&o.orig[0]instanceof on&&(e.loop_ids[o.id]=e.in_loop),void 0!==o.fixed&&f(e,o)?o.fixed&&((i=this.fixed_value())instanceof X&&Qn(e,o)?o.recursive_refs++:i&&!t.exposed(o)&&function(e,n,t){return n.option("unused")&&!t.scope.pinned()&&t.references.length-t.recursive_refs==1&&e.loop_ids[t.id]===e.in_loop}(e,t,o)?o.single_use=i instanceof X&&!i.pinned()||i instanceof We||o.scope===this.scope&&i.is_constant_expression():o.single_use=!1,r(t,e,this,i,0,function(e){return!!e&&(e.is_constant()||e instanceof X||e instanceof gn)}(i))&&(o.single_use?o.single_use="m":o.fixed=!1)):o.fixed=!1,p(e,o,this.scope,this,i,0,1)}),e(W,function(e,n,r){this.globals.each(function(e){t(r,e)}),i(e,r,this)}),e(_e,function(e,n,t){return o(t,this),a(e),T(this,e),s(e),this.bcatch&&(a(e),this.bcatch.walk(e),s(e)),this.bfinally&&this.bfinally.walk(e),!0}),e($e,function(e,n){var t=this;if("++"==t.operator||"--"==t.operator){var i=t.expression;if(i instanceof hn){var r=i.definition(),o=l(e,r,!0);if(r.assignments++,o){var a=r.fixed;if(a)return r.references.push(i),r.chained=!0,r.fixed=function(){return v(ze,t,{operator:t.operator.slice(0,-1),left:v(Me,t,{operator:"+",expression:a instanceof F?a:a()}),right:v(En,t,{value:1})})},c(e,r,!0),!0}}}}),e(Fe,function(e,n){var t=this;if(t.name instanceof ee)t.name.walk(d);else{var i=t.name.definition();if(t.value){if(l(e,i,t.value))return i.fixed=function(){return t.value},e.loop_ids[i.id]=e.in_loop,c(e,i,!1),n(),c(e,i,!0),!0;i.fixed=!1}}}),e(R,function(e,n,t){o(t,this);var i=e.in_loop;return e.in_loop=this,a(e),n(),s(e),e.in_loop=i,!0})}(function(e,n){e.DEFMETHOD("reduce_vars",n)}),W.DEFMETHOD("reset_opt_flags",function(e){var n=this,t=e.option("reduce_vars"),i=new qn(function(r,o){if(r._squeezed=!1,r._optimized=!1,t)return e.top_retain&&(i.parent()===n?r._top=!0:delete r._top),r.reduce_vars(i,o,e)});i.safe_ids=Object.create(null),i.in_loop=null,i.loop_ids=Object.create(null),n.walk(i)}),Je.DEFMETHOD("fixed_value",function(){var e=this.definition().fixed;return!e||e instanceof F?e:e()}),hn.DEFMETHOD("is_immutable",function(){var e=this.definition().orig;return 1==e.length&&e[0]instanceof sn});var un=g("Array Boolean clearInterval clearTimeout console Date decodeURI decodeURIComponent encodeURI encodeURIComponent Error escape eval EvalError Function isFinite isNaN JSON Math Number parseFloat parseInt RangeError ReferenceError RegExp Object setInterval setTimeout String SyntaxError TypeError unescape URIError");hn.DEFMETHOD("is_declared",function(e){return!this.definition().undeclared||e.option("unsafe")&&un(this.name)});var cn,ln,pn,dn=g("Infinity NaN undefined");function _n(e){return e instanceof Bn||e instanceof Fn||e instanceof kn}function vn(e,n){var i,u,c=n.find_parent(Y).get_defun_scope();!function(){var e=n.self(),t=0;do{if(e instanceof ve||e instanceof ge)t++;else if(e instanceof j)i=!0;else{if(e instanceof Y){c=e;break}e instanceof _e&&(u=!0)}}while(e=n.parent(t++))}();var f,l=10;do{f=!1,h(e),n.option("dead_code")&&g(e,n),n.option("if_return")&&m(e,n),n.sequences_limit>0&&(b(e,n),w(e,n)),n.option("join_vars")&&k(e),n.option("collapse_vars")&&p(e,n)}while(f&&l-- >0);function p(e,n){if(c.pinned())return e;for(var l,p=[],h=e.length,m=new Dt(function(e,t){if(N)return e;if(!z)return e!==g[y]?e:++y<g.length?Z(e):(z=!0,(w=function e(n,t,i){var r=m.parent(t);if(r instanceof je)return i&&!(r.left instanceof Se||r.left.name in F)?e(r,t+1,i):n;if(r instanceof ze)return!i||Nn(r.operator)&&r.left!==n?n:e(r,t+1,i);if(r instanceof ke)return n;if(r instanceof me)return n;if(r instanceof Ne)return i&&r.condition===n?e(r,t+1,i):n;if(r instanceof De)return e(r,t+1,!0);if(r instanceof oe)return i?e(r,t+1,i):n;if(r instanceof le)return i&&r.condition===n?e(r,t+1,i):n;if(r instanceof j)return n;if(r instanceof Be)return e(r,t+1,r.tail_node()!==n);if(r instanceof S)return e(r,t+1,!0);if(r instanceof pe)return n;if(r instanceof Fe)return n;return null}(e,0))===e&&(N=!0),e);var i,r=m.parent();if(e instanceof je&&"="!=e.operator&&A.equivalent_to(e.left)||e instanceof $n||e instanceof ke&&A instanceof Se&&A.equivalent_to(e.expression)||e instanceof C||e instanceof ee||e instanceof G&&e.expression instanceof Je&&e.expression.definition().references.length>1||e instanceof j&&!(e instanceof P)||e instanceof ue||e instanceof _e||e instanceof V||e instanceof Mn||r instanceof P&&e!==r.init||!T&&e instanceof hn&&!e.is_declared(n))return N=!0,e;if(x||k&&T||!(r instanceof ze&&Nn(r.operator)&&r.left!==e||r instanceof Ne&&r.condition!==e||r instanceof le&&r.condition!==e)||(x=r),R&&!(e instanceof Ke)&&A.equivalent_to(e)){if(x)return N=!0,e;if(In(e,r))return E&&H++,e;if(f=N=!0,H++,n.info("Collapsing {name} [{file}:{line},{col}]",{name:e.print_to_string(),file:e.start.file,line:e.start.line,col:e.start.col}),b instanceof qe)return v(Me,b,b);if(b instanceof Fe){if(E)return N=!1,e;var o=b.name.definition(),a=b.value;return o.references.length-o.replaced!=1||n.exposed(o)?v(je,b,{operator:"=",left:v(hn,b.name,b.name),right:a}):(o.replaced++,q&&_n(a)?a.transform(n):O(r,e,a))}return b.write_only=!1,b}return(e instanceof ke||e instanceof oe&&(B||A instanceof Se||ve(A))||e instanceof Se&&(B||e.expression.may_throw_on_access(n))||e instanceof hn&&(F[e.name]||B&&ve(e))||e instanceof Fe&&e.value&&(e.name.name in F||B&&ve(e.name))||(i=In(e.left,e))&&(i instanceof Se||i.name in F)||M&&(u?e.has_side_effects(n):function e(n,t){if(n instanceof je)return e(n.left,!0);if(n instanceof $e)return e(n.expression,!0);if(n instanceof Fe)return n.value&&e(n.value);if(t){if(n instanceof Te)return e(n.expression,!0);if(n instanceof Oe)return e(n.expression,!0);if(n instanceof hn)return n.definition().scope!==c}return!1}(e)))&&(w=e,e instanceof Y&&(N=!0)),Z(e)},function(e){N||(w===e&&(N=!0),x===e&&(x=null))}),_=new Dt(function(e){if(N)return e;if(!z){if(e!==g[y])return e;if(++y<g.length)return;return z=!0,e}return e instanceof hn&&e.name==J.name?(--H||(N=!0),In(e,_.parent())?e:(J.replaced++,E.replaced--,b.value)):e instanceof he||e instanceof Y?e:void 0});--h>=0;){0==h&&n.option("unused")&&ne();var g=[];for(te(e[h]);p.length>0;){g=p.pop();var y=0,b=g[g.length-1],E=null,w=null,x=null,A=ie(b);if(A&&!a(A)&&!A.has_side_effects(n)){var F=ae(b),k=ce(A);A instanceof hn&&(F[A.name]=!1);var B=fe(b),T=de(),M=b.may_throw(n),q=b.name instanceof rn,z=q,N=!1,H=0,R=!l||!z;if(!R){for(var L=n.self().argnames.lastIndexOf(b.name)+1;!N&&L<l.length;L++)l[L].transform(m);R=!0}for(var W=h;!N&&W<e.length;W++)e[W].transform(m);if(E){var J=b.name.definition();if(N&&J.references.length-J.replaced>H)H=!1;else{N=!1,y=0,z=q;for(W=h;!N&&W<e.length;W++)e[W].transform(_);E.single_use=!1}}H&&!se(b)&&e.splice(h,1)}}}function Z(e){if(e instanceof Y)return e;if(e instanceof pe){e.expression=e.expression.transform(m);for(var n=0,t=e.body.length;!N&&n<t;n++){var i=e.body[n];if(i instanceof me){if(!z){if(i!==g[y])continue;y++}if(i.expression=i.expression.transform(m),!T)break}}return N=!0,e}}function Q(e,n,t){var i=!1,r=!(e instanceof K);return n.walk(new qn(function(n,o){if(i)return!0;if(n instanceof hn&&e.variables.has(n.name)){var a=n.definition().scope;if(a!==c)for(;a=a.parent_scope;)if(a===c)return!0;return i=!0}if((t||r)&&n instanceof gn)return i=!0;if(n instanceof Y&&!(n instanceof K)){var s=r;return r=!1,o(),r=s,!0}})),i}function ne(){var e,i=n.self();if(o(i)&&!i.name&&!i.uses_arguments&&!i.pinned()&&(e=n.parent())instanceof ke&&e.expression===i&&D(e.args,function(e){return!(e instanceof G)})){var r=n.has_directive("use strict");r&&!t(r,i.body)&&(r=!1);var a=i.argnames.length;l=e.args.slice(a);for(var s=Object.create(null),u=a;--u>=0;){var c=i.argnames[u],f=e.args[u];if(l.unshift(v(Fe,c,{name:c,value:f})),!(c.name in s))if(s[c.name]=!0,c instanceof G){var d=e.args.slice(u);D(d,function(e){return!Q(i,e,r)})&&p.unshift([v(Fe,c,{name:c.expression,value:v(He,e,{elements:d})})])}else f?(f instanceof X&&f.pinned()||Q(i,f,r))&&(f=null):f=v(kn,c).transform(n),f&&p.unshift([v(Fe,c,{name:c,value:f})])}}}function te(e){if(g.push(e),e instanceof je)e.left.has_side_effects(n)||p.push(g.slice()),te(e.right);else if(e instanceof ze)te(e.left),te(e.right);else if(e instanceof ke)te(e.expression),e.args.forEach(te);else if(e instanceof me)te(e.expression);else if(e instanceof Ne)te(e.condition),te(e.consequent),te(e.alternative);else if(!(e instanceof De)||!n.option("unused")&&e instanceof Ee)e instanceof I?(te(e.condition),e.body instanceof $||te(e.body)):e instanceof oe?e.value&&te(e.value):e instanceof P?(e.init&&te(e.init),e.condition&&te(e.condition),e.step&&te(e.step),e.body instanceof $||te(e.body)):e instanceof U?(te(e.object),e.body instanceof $||te(e.body)):e instanceof le?(te(e.condition),e.body instanceof $||te(e.body),!e.alternative||e.alternative instanceof $||te(e.alternative)):e instanceof Be?e.expressions.forEach(te):e instanceof S?te(e.body):e instanceof pe?(te(e.expression),e.body.forEach(te)):e instanceof $e?"++"!=e.operator&&"--"!=e.operator||p.push(g.slice()):e instanceof Fe&&e.value&&(p.push(g.slice()),te(e.value));else{var t=e.definitions.length,i=t-200;for(i<0&&(i=0);i<t;i++)te(e.definitions[i])}g.pop()}function ie(e){if(!(e instanceof Fe&&e.name instanceof Ke)){var i=e[e instanceof je?"left":"expression"];return!s(i,nn)&&i}var r=e.name.definition();if(t(e.name,r.orig)){var o=r.references.length-r.replaced;if(o)return r.orig.length-r.eliminated>1&&!(e.name instanceof rn)||(o>1?function(e){var n=e.value;if(n instanceof hn&&"arguments"!=n.name){var t=n.definition();if(!t.undeclared)return E=t}}(e):!n.exposed(r))?v(hn,e.name,e.name):void 0}}function re(e){return e[e instanceof je?"right":"value"]}function ae(e){var t=Object.create(null);if(e instanceof $e)return t;var i=new qn(function(e,o){for(var a=e;a instanceof Se;)a=a.expression;(a instanceof hn||a instanceof gn)&&(t[a.name]=t[a.name]||r(n,i,e,e,0))});return re(e).walk(i),t}function se(t){if(t.name instanceof rn){var i=n.parent(),r=n.self().argnames,o=r.indexOf(t.name);if(o<0)i.args.length=Math.min(i.args.length,r.length-1);else{var a=i.args;a[o]&&(a[o]=v(En,a[o],{value:0}))}return!0}var s=!1;return e[h].transform(new Dt(function(e,n,i){return s?e:e===t||e.body===t?(s=!0,e instanceof Fe?(e.value=null,e):i?d.skip:null):void 0},function(e){if(e instanceof Be)switch(e.expressions.length){case 0:return null;case 1:return e.expressions[0]}}))}function ce(e){for(;e instanceof Se;)e=e.expression;return e instanceof hn&&e.definition().scope===c&&!(i&&(e.name in F||b instanceof $e||b instanceof je&&"="!=b.operator))}function fe(e){return!(e instanceof $e)&&re(e).has_side_effects(n)}function de(){if(B)return!1;if(E)return!0;if(A instanceof hn){var e=A.definition();if(e.references.length-e.replaced==(b instanceof Fe?1:2))return!0}return!1}function ve(e){if(!e.definition)return!0;var n=e.definition();return!(1==n.orig.length&&n.orig[0]instanceof on)&&(n.scope.get_defun_scope()!==c||!D(n.references,function(e){var n=e.scope.get_defun_scope();return"Scope"==n.TYPE&&(n=n.parent_scope),n===c}))}}function h(e){for(var n=[],t=0;t<e.length;){var i=e[t];i instanceof M&&D(i.body,we)?(f=!0,h(i.body),[].splice.apply(e,[t,1].concat(i.body)),t+=i.body.length):i instanceof q?(f=!0,e.splice(t,1)):i instanceof B?n.indexOf(i.value)<0?(t++,n.push(i.value)):(f=!0,e.splice(t,1)):t++}}function m(e,n){for(var t=n.self(),i=function(e){for(var n=0,t=e.length;--t>=0;){var i=e[t];if(i instanceof le&&i.body instanceof ae&&++n>1)return!0}return!1}(e),r=t instanceof X,o=e.length;--o>=0;){var a=e[o],s=D(o),u=e[s];if(r&&!u&&a instanceof ae){if(!a.value){f=!0,e.splice(o,1);continue}if(a.value instanceof Me&&"void"==a.value.operator){f=!0,e[o]=v(S,a,{body:a.value.expression});continue}}if(a instanceof le){var c;if(h(c=Wn(a.body))){c.label&&_(c.label.thedef.references,c),f=!0,(a=a.clone()).condition=a.condition.negate(n);var l=g(a.body,c);a.body=v(M,a,{body:L(a.alternative).concat(m())}),a.alternative=v(M,a,{body:l}),e[o]=a.transform(n);continue}if(h(c=Wn(a.alternative))){c.label&&_(c.label.thedef.references,c),f=!0,(a=a.clone()).body=v(M,a.body,{body:L(a.body).concat(m())});l=g(a.alternative,c);a.alternative=v(M,a.alternative,{body:l}),e[o]=a.transform(n);continue}}if(a instanceof le&&a.body instanceof ae){var p=a.body.value;if(!p&&!a.alternative&&(r&&!u||u instanceof ae&&!u.value)){f=!0,e[o]=v(S,a.condition,{body:a.condition});continue}if(p&&!a.alternative&&u instanceof ae&&u.value){f=!0,(a=a.clone()).alternative=u,e.splice(o,1,a.transform(n)),e.splice(s,1);continue}if(p&&!a.alternative&&(!u&&r&&i||u instanceof ae)){f=!0,(a=a.clone()).alternative=u||v(ae,a,{value:null}),e.splice(o,1,a.transform(n)),u&&e.splice(s,1);continue}var d=e[b(o)];if(n.option("sequences")&&r&&!a.alternative&&d instanceof le&&d.body instanceof ae&&D(s)==e.length&&u instanceof S){f=!0,(a=a.clone()).alternative=v(M,u,{body:[u,v(ae,u,{value:null})]}),e.splice(o,1,a.transform(n)),e.splice(s,1);continue}}}function h(i){if(!i)return!1;for(var a=o+1,s=e.length;a<s;a++){var u=e[a];if(u instanceof Ee||u instanceof be)return!1}var c,f=i instanceof ue?n.loopcontrol_target(i):null;return i instanceof ae&&r&&(!(c=i.value)||c instanceof Me&&"void"==c.operator)||i instanceof fe&&t===Le(f)||i instanceof ce&&f instanceof M&&t===f}function m(){var n=e.slice(o+1);return e.length=o+1,n.filter(function(n){return!(n instanceof Q)||(e.push(n),!1)})}function g(e,n){var t=L(e).slice(0,-1);return n.value&&t.push(v(S,n.value,{body:n.value.expression})),t}function D(n){for(var t=n+1,i=e.length;t<i;t++){var r=e[t];if(!(r instanceof ye&&y(r)))break}return t}function b(n){for(var t=n;--t>=0;){var i=e[t];if(!(i instanceof ye&&y(i)))break}return t}}function g(e,n){for(var t,i=n.self(),r=0,o=0,a=e.length;r<a;r++){var s=e[r];if(s instanceof ue){var u=n.loopcontrol_target(s);s instanceof ce&&!(u instanceof j)&&Le(u)===i||s instanceof fe&&Le(u)===i?s.label&&_(s.label.thedef.references,s):e[o++]=s}else e[o++]=s;if(Wn(s)){t=e.slice(r+1);break}}e.length=o,f=o!=a,t&&t.forEach(function(t){Dn(n,t,e)})}function y(e){return D(e.definitions,function(e){return!e.value})}function b(e,n){if(!(e.length<2)){for(var t=[],i=0,r=0,o=e.length;r<o;r++){var a=e[r];if(a instanceof S){t.length>=n.sequences_limit&&u();var s=a.body;t.length>0&&(s=s.drop_side_effect_free(n)),s&&z(t,s)}else a instanceof De&&y(a)||a instanceof Q?e[i++]=a:(u(),e[i++]=a)}u(),e.length=i,i!=o&&(f=!0)}function u(){if(t.length){var n=x(t[0],t);e[i++]=v(S,n,{body:n}),t=[]}}}function E(e,n){if(!(e instanceof M))return e;for(var t=null,i=0,r=e.body.length;i<r;i++){var o=e.body[i];if(o instanceof ye&&y(o))n.push(o);else{if(t)return!1;t=o}}return t}function w(e,n){function t(e){r--,f=!0;var t=i.body;return x(t,[t,e]).transform(n)}for(var i,r=0,o=0;o<e.length;o++){var a=e[o];if(i)if(a instanceof oe)a.value=t(a.value||v(kn,a).transform(n));else if(a instanceof P){if(!(a.init instanceof De)){var s=!1;i.body.walk(new qn(function(e){return!!(s||e instanceof Y)||(e instanceof ze&&"in"==e.operator?(s=!0,!0):void 0)})),s||(a.init?a.init=t(a.init):(a.init=i.body,r--,f=!0))}}else a instanceof U?a.init instanceof Ee||a.init instanceof be||(a.object=t(a.object)):a instanceof le?a.condition=t(a.condition):a instanceof pe?a.expression=t(a.expression):a instanceof V&&(a.expression=t(a.expression));if(n.option("conditionals")&&a instanceof le){var u=[],c=E(a.body,u),l=E(a.alternative,u);if(!1!==c&&!1!==l&&u.length>0){var p=u.length;u.push(v(le,a,{condition:a.condition,body:c||v(q,a.body),alternative:l})),u.unshift(r,1),[].splice.apply(e,u),o+=p,r+=p+1,i=null,f=!0;continue}}e[r++]=a,i=a instanceof S?a:null}e.length=r}function A(e,t){if(e instanceof De){var i,r=e.definitions[e.definitions.length-1];if(r.value instanceof Re)if(t instanceof je?i=[t]:t instanceof Be&&(i=t.expressions.slice()),i){var o=!1;do{var a=i[0];if(!(a instanceof je))break;if("="!=a.operator)break;if(!(a.left instanceof Se))break;var s=a.left.expression;if(!(s instanceof hn))break;if(r.name.name!=s.name)break;if(!a.right.is_constant_expression(c))break;var u=a.left.property;if(u instanceof F&&(u=u.evaluate(n)),u instanceof F)break;u=""+u;var f=n.option("ecma")<6&&n.has_directive("use strict")?function(e){return e.key!=u&&e.key.name!=u}:function(e){return e.key.name!=u};if(!D(r.value.properties,f))break;r.value.properties.push(v(Ue,a,{key:u,value:a.right})),i.shift(),o=!0}while(i.length);return o&&i}}}function k(e){for(var n,t=0,i=-1,r=e.length;t<r;t++){var o=e[t],a=e[i];if(o instanceof De)a&&a.TYPE==o.TYPE?(a.definitions=a.definitions.concat(o.definitions),f=!0):n&&n.TYPE==o.TYPE&&y(o)?(n.definitions=n.definitions.concat(o.definitions),f=!0):(e[++i]=o,n=o);else if(o instanceof oe)o.value=u(o.value);else if(o instanceof P){(s=A(a,o.init))?(f=!0,o.init=s.length?x(o.init,s):null,e[++i]=o):a instanceof ye&&(!o.init||o.init.TYPE==a.TYPE)?(o.init&&(a.definitions=a.definitions.concat(o.init.definitions)),o.init=a,e[i]=o,f=!0):n&&o.init&&n.TYPE==o.init.TYPE&&y(o.init)?(n.definitions=n.definitions.concat(o.init.definitions),o.init=null,e[++i]=o,f=!0):e[++i]=o}else if(o instanceof U)o.object=u(o.object);else if(o instanceof le)o.condition=u(o.condition);else if(o instanceof S){var s;if(s=A(a,o.body)){if(f=!0,!s.length)continue;o.body=x(o.body,s)}e[++i]=o}else o instanceof pe?o.expression=u(o.expression):o instanceof V?o.expression=u(o.expression):e[++i]=o}function u(n){e[++i]=o;var t=A(a,n);return t?(f=!0,t.length?x(n,t):n instanceof Be?n.tail_node().left:n.left):n}e.length=i+1}}function Dn(e,n,t){n instanceof Q||e.warn("Dropping unreachable code [{file}:{line},{col}]",n.start),n.walk(new qn(function(i){return i instanceof ye?(e.warn("Declarations in unreachable code! [{file}:{line},{col}]",i.start),i.remove_initializers(),t.push(i),!0):i instanceof Q&&(i===n||!e.has_directive("use strict"))?(t.push(i===n?i:v(ye,i,{definitions:[v(Fe,i,{name:v(Qe,i.name,i.name),value:null})]})),!0):i instanceof Y||void 0}))}function xn(e){return e instanceof yn?e.getValue():e instanceof Me&&"void"==e.operator&&e.expression instanceof yn?void 0:e}function zn(e,n){return e.is_undefined||e instanceof kn||e instanceof Me&&"void"==e.operator&&!e.expression.has_side_effects(n)}!function(e){function n(e){return/strict/.test(e.option("pure_getters"))}F.DEFMETHOD("may_throw_on_access",function(e){return!e.option("pure_getters")||this._dot_throw(e)}),e(F,n),e(An,f),e(kn,f),e(yn,c),e(He,c),e(Re,function(e){if(!n(e))return!1;for(var t=this.properties.length;--t>=0;)if(this.properties[t]._dot_throw(e))return!0;return!1}),e(Pe,c),e(Ve,f),e(G,function(e){return this.expression._dot_throw(e)}),e(Z,c),e(K,c),e(qe,c),e(Me,function(){return"void"==this.operator}),e(ze,function(e){return("&&"==this.operator||"||"==this.operator)&&(this.left._dot_throw(e)||this.right._dot_throw(e))}),e(je,function(e){return"="==this.operator&&this.right._dot_throw(e)}),e(Ne,function(e){return this.consequent._dot_throw(e)||this.alternative._dot_throw(e)}),e(Te,function(e){return!!n(e)&&!(this.expression instanceof Z&&"prototype"==this.property)}),e(Be,function(e){return this.tail_node()._dot_throw(e)}),e(hn,function(e){if(this.is_undefined)return!0;if(!n(e))return!1;if(tn(this)&&this.is_declared(e))return!1;if(this.is_immutable())return!1;var t=this.fixed_value();return!t||t._dot_throw(e)})}(function(e,n){e.DEFMETHOD("_dot_throw",n)}),ln=["!","delete"],pn=["in","instanceof","==","!=","===","!==","<","<=",">=",">"],(cn=function(e,n){e.DEFMETHOD("is_boolean",n)})(F,c),cn(Me,function(){return t(this.operator,ln)}),cn(ze,function(){return t(this.operator,pn)||Nn(this.operator)&&this.left.is_boolean()&&this.right.is_boolean()}),cn(Ne,function(){return this.consequent.is_boolean()&&this.alternative.is_boolean()}),cn(je,function(){return"="==this.operator&&this.right.is_boolean()}),cn(Be,function(){return this.tail_node().is_boolean()}),cn(On,f),cn(Tn,f),function(e){e(F,c),e(En,f);var n=g("+ - ~ ++ --");e($e,function(){return n(this.operator)});var t=g("- * / % & | ^ << >> >>>");e(ze,function(e){return t(this.operator)||"+"==this.operator&&this.left.is_number(e)&&this.right.is_number(e)}),e(je,function(e){return t(this.operator.slice(0,-1))||"="==this.operator&&this.right.is_number(e)}),e(Be,function(e){return this.tail_node().is_number(e)}),e(Ne,function(e){return this.consequent.is_number(e)&&this.alternative.is_number(e)})}(function(e,n){e.DEFMETHOD("is_number",n)}),function(e){e(F,c),e(bn,f),e(te,function(){return 1===this.segments.length}),e(Me,function(){return"typeof"==this.operator}),e(ze,function(e){return"+"==this.operator&&(this.left.is_string(e)||this.right.is_string(e))}),e(je,function(e){return("="==this.operator||"+="==this.operator)&&this.right.is_string(e)}),e(Be,function(e){return this.tail_node().is_string(e)}),e(Ne,function(e){return this.consequent.is_string(e)&&this.alternative.is_string(e)})}(function(e,n){e.DEFMETHOD("is_string",n)});var Nn=g("&& ||"),jn=g("delete ++ --");function In(e,n){return n instanceof $e&&jn(n.operator)?n.expression:n instanceof je&&n.left===e?e:void 0}function Hn(e,n){return e.print_to_string().length>n.print_to_string().length?n:e}function Rn(e,n,t){return(E(e)?function(e,n){return Hn(v(S,e,{body:e}),v(S,n,{body:n})).body}:Hn)(n,t)}function Pn(e){for(var n in e)e[n]=g(e[n])}!function(e){function n(e,n){e.warn("global_defs "+n.print_to_string()+" redefined [{file}:{line},{col}]",n.start)}W.DEFMETHOD("resolve_defines",function(e){return e.option("global_defs")?(this.figure_out_scope({ie8:e.option("ie8")}),this.transform(new Dt(function(t){var i=t._find_defs(e,"");if(i){for(var r,o=0,a=t;(r=this.parent(o++))&&r instanceof Se&&r.expression===a;)a=r;if(!In(a,r))return i;n(e,t)}}))):this}),e(F,u),e(Te,function(e,n){return this.expression._find_defs(e,"."+this.property+n)}),e(Ke,function(e){this.global()&&b(e.option("global_defs"),this.name)&&n(e,this)}),e(hn,function(e,n){if(this.global()){var t=e.option("global_defs"),i=this.name+n;return b(t,i)?function e(n,t){if(n instanceof F)return v(n.CTOR,t,n);if(Array.isArray(n))return v(He,t,{elements:n.map(function(n){return e(n,t)})});if(n&&"object"==typeof n){var i=[];for(var r in n)b(n,r)&&i.push(v(Ue,t,{key:r,value:e(n[r],t)}));return v(Re,t,{properties:i})}return A(n,t)}(t[i],this):void 0}})}(function(e,n){e.DEFMETHOD("_find_defs",n)});var Un=["constructor","toString","valueOf"],Ln={Array:["indexOf","join","lastIndexOf","slice"].concat(Un),Boolean:Un,Function:Un,Number:["toExponential","toFixed","toPrecision"].concat(Un),Object:Un,RegExp:["test"].concat(Un),String:["charAt","charCodeAt","concat","indexOf","italics","lastIndexOf","match","replace","search","slice","split","substr","substring","toLowerCase","toUpperCase","trim"].concat(Un)};Pn(Ln);var Vn={Array:["isArray"],Math:["abs","acos","asin","atan","ceil","cos","exp","floor","log","round","sin","sqrt","tan","atan2","pow","max","min"],Number:["isFinite","isNaN"],Object:["create","getOwnPropertyDescriptor","getOwnPropertyNames","getPrototypeOf","isExtensible","isFrozen","isSealed","keys"],String:["fromCharCode"]};Pn(Vn),function(e){F.DEFMETHOD("evaluate",function(e){if(!e.option("evaluate"))return this;var n=this._eval(e,1);return!n||n instanceof RegExp?n:"function"==typeof n||"object"==typeof n?this:n});var n=g("! ~ - + void");F.DEFMETHOD("is_constant",function(){return this instanceof yn?!(this instanceof wn):this instanceof Me&&this.expression instanceof yn&&n(this.operator)}),e(k,function(){throw new Error(m("Cannot evaluate a statement [{file}:{line},{col}]",this.start))}),e(X,l),e(We,l),e(F,l),e(yn,function(){return this.getValue()}),e(te,function(){return 1!==this.segments.length?this:this.segments[0].value}),e(Z,function(e){if(e.option("unsafe")){var n=function(){};return n.node=this,n.toString=function(){return this.node.print_to_string()},n}return this}),e(He,function(e,n){if(e.option("unsafe")){for(var t=[],i=0,r=this.elements.length;i<r;i++){var o=this.elements[i],a=o._eval(e,n);if(o===a)return this;t.push(a)}return t}return this}),e(Re,function(e,n){if(e.option("unsafe")){for(var t={},i=0,r=this.properties.length;i<r;i++){var o=this.properties[i];if(o instanceof G)return this;var a=o.key;if(a instanceof Je)a=a.name;else if(a instanceof F&&(a=a._eval(e,n))===o.key)return this;if("function"==typeof Object.prototype[a])return this;if(!(o.value instanceof Z)&&(t[a]=o.value._eval(e,n),t[a]===o.value))return this}return t}return this});var t=g("! typeof void");e(Me,function(e,n){var i=this.expression;if(e.option("typeofs")&&"typeof"==this.operator&&(i instanceof X||i instanceof hn&&i.fixed_value()instanceof X))return"function";if(t(this.operator)||n++,(i=i._eval(e,n))===this.expression)return this;switch(this.operator){case"!":return!i;case"typeof":return i instanceof RegExp?this:typeof i;case"void":return;case"~":return~i;case"-":return-i;case"+":return+i}return this});var i=g("&& || === !==");e(ze,function(e,n){i(this.operator)||n++;var t=this.left._eval(e,n);if(t===this.left)return this;var r,o=this.right._eval(e,n);if(o===this.right)return this;switch(this.operator){case"&&":r=t&&o;break;case"||":r=t||o;break;case"|":r=t|o;break;case"&":r=t&o;break;case"^":r=t^o;break;case"+":r=t+o;break;case"*":r=t*o;break;case"**":r=Math.pow(t,o);break;case"/":r=t/o;break;case"%":r=t%o;break;case"-":r=t-o;break;case"<<":r=t<<o;break;case">>":r=t>>o;break;case">>>":r=t>>>o;break;case"==":r=t==o;break;case"===":r=t===o;break;case"!=":r=t!=o;break;case"!==":r=t!==o;break;case"<":r=t<o;break;case"<=":r=t<=o;break;case">":r=t>o;break;case">=":r=t>=o;break;default:return this}return isNaN(r)&&e.find_parent(V)?this:r}),e(Ne,function(e,n){var t=this.condition._eval(e,n);if(t===this.condition)return this;var i=t?this.consequent:this.alternative,r=i._eval(e,n);return r===i?this:r}),e(hn,function(e,n){var t,i=this.fixed_value();if(!i)return this;if(b(i,"_eval"))t=i._eval();else{if(this._eval=l,t=i._eval(e,n),delete this._eval,t===i)return this;i._eval=function(){return t}}if(t&&"object"==typeof t){var r=this.definition().escaped;if(r&&n>r)return this}return t});var r={Array:Array,Math:Math,Number:Number,Object:Object,String:String},o={Math:["E","LN10","LN2","LOG2E","LOG10E","PI","SQRT1_2","SQRT2"],Number:["MAX_VALUE","MIN_VALUE","NaN","NEGATIVE_INFINITY","POSITIVE_INFINITY"]};Pn(o),e(Se,function(e,n){if(e.option("unsafe")){var t=this.property;if(t instanceof F&&(t=t._eval(e,n))===this.property)return this;var i,a=this.expression;if(tn(a)){if(!(o[a.name]||c)(t))return this;i=r[a.name]}else{if(!(i=a._eval(e,n+1))||i===a||!b(i,t))return this;if("function"==typeof i)switch(t){case"name":return i.node.name?i.node.name.name:"";case"length":return i.node.argnames.length;default:return this}}return i[t]}return this}),e(ke,function(e,n){var t=this.expression;if(e.option("unsafe")&&t instanceof Se){var i,o=t.property;if(o instanceof F&&(o=o._eval(e,n))===t.property)return this;var a=t.expression;if(tn(a)){if(!(Vn[a.name]||c)(o))return this;i=r[a.name]}else if((i=a._eval(e,n+1))===a||!(i&&Ln[i.constructor.name]||c)(o))return this;for(var s=[],u=0,f=this.args.length;u<f;u++){var l=this.args[u],p=l._eval(e,n);if(l===p)return this;s.push(p)}try{return i[o].apply(i,s)}catch(n){e.warn("Error evaluating {code} [{file}:{line},{col}]",{code:this.print_to_string(),file:this.start.file,line:this.start.line,col:this.start.col})}}return this}),e(Ce,l)}(function(e,n){e.DEFMETHOD("_eval",n)}),function(e){function n(e){return v(Me,e,{operator:"!",expression:e})}function t(e,t,i){var r=n(e);if(i){var o=v(S,t,{body:t});return Hn(r,o)===o?t:r}return Hn(r,t)}e(F,function(){return n(this)}),e(k,function(){throw new Error("Cannot negate a statement")}),e(Z,function(){return n(this)}),e(K,function(){return n(this)}),e(Me,function(){return"!"==this.operator?this.expression:n(this)}),e(Be,function(e){var n=this.expressions.slice();return n.push(n.pop().negate(e)),x(this,n)}),e(Ne,function(e,n){var i=this.clone();return i.consequent=i.consequent.negate(e),i.alternative=i.alternative.negate(e),t(this,i,n)}),e(ze,function(e,i){var r=this.clone(),o=this.operator;if(e.option("unsafe_comps"))switch(o){case"<=":return r.operator=">",r;case"<":return r.operator=">=",r;case">=":return r.operator="<",r;case">":return r.operator="<=",r}switch(o){case"==":return r.operator="!=",r;case"!=":return r.operator="==",r;case"===":return r.operator="!==",r;case"!==":return r.operator="===",r;case"&&":return r.operator="||",r.left=r.left.negate(e,i),r.right=r.right.negate(e),t(this,r,i);case"||":return r.operator="&&",r.left=r.left.negate(e,i),r.right=r.right.negate(e),t(this,r,i)}return n(this)})}(function(e,n){e.DEFMETHOD("negate",function(e,t){return n.call(this,e,t)})});var Yn=g("Boolean decodeURI decodeURIComponent Date encodeURI encodeURIComponent Error escape EvalError isFinite isNaN Number Object parseFloat parseInt RangeError ReferenceError String SyntaxError TypeError unescape URIError");function Wn(e){return e&&e.aborts()}ke.DEFMETHOD("is_expr_pure",function(e){if(e.option("unsafe")){var n=this.expression;if(tn(n)&&Yn(n.name))return!0;if(n instanceof Te&&tn(n.expression)&&(Vn[n.expression.name]||c)(n.property))return!0}return this.pure||!e.pure_funcs(this)}),F.DEFMETHOD("is_call_pure",c),Te.DEFMETHOD("is_call_pure",function(e){if(e.option("unsafe")){var n=this.expression,t=c;return n instanceof He?t=Ln.Array:n.is_boolean()?t=Ln.Boolean:n.is_number(e)?t=Ln.Number:n instanceof wn?t=Ln.RegExp:n.is_string(e)?t=Ln.String:this.may_throw_on_access(e)||(t=Ln.Object),t(this.property)}}),function(e){function n(e,n){for(var t=e.length;--t>=0;)if(e[t].has_side_effects(n))return!0;return!1}e(F,f),e(q,c),e(yn,c),e(gn,c),e($,function(e){return n(this.body,e)}),e(ke,function(e){return!(this.is_expr_pure(e)||this.expression.is_call_pure(e)&&!this.expression.has_side_effects(e))||n(this.args,e)}),e(pe,function(e){return this.expression.has_side_effects(e)||n(this.body,e)}),e(me,function(e){return this.expression.has_side_effects(e)||n(this.body,e)}),e(_e,function(e){return n(this.body,e)||this.bcatch&&this.bcatch.has_side_effects(e)||this.bfinally&&this.bfinally.has_side_effects(e)}),e(le,function(e){return this.condition.has_side_effects(e)||this.body&&this.body.has_side_effects(e)||this.alternative&&this.alternative.has_side_effects(e)}),e(N,function(e){return this.body.has_side_effects(e)}),e(S,function(e){return this.body.has_side_effects(e)}),e(X,c),e(We,c),e(Ge,f),e(ze,function(e){return this.left.has_side_effects(e)||this.right.has_side_effects(e)}),e(je,f),e(Ne,function(e){return this.condition.has_side_effects(e)||this.consequent.has_side_effects(e)||this.alternative.has_side_effects(e)}),e($e,function(e){return jn(this.operator)||this.expression.has_side_effects(e)}),e(hn,function(e){return!this.is_declared(e)}),e(Ke,c),e(Re,function(e){return n(this.properties,e)}),e(Pe,function(e){return!!(this.key instanceof Ue&&this.key.has_side_effects(e))||this.value.has_side_effects(e)}),e(He,function(e){return n(this.elements,e)}),e(Te,function(e){return this.expression.may_throw_on_access(e)||this.expression.has_side_effects(e)}),e(Oe,function(e){return this.expression.may_throw_on_access(e)||this.expression.has_side_effects(e)||this.property.has_side_effects(e)}),e(Be,function(e){return n(this.expressions,e)}),e(De,function(e){return n(this.definitions,e)}),e(Fe,function(e){return this.value}),e(ie,c),e(te,function(e){return n(this.segments,e)})}(function(e,n){e.DEFMETHOD("has_side_effects",n)}),function(e){function n(e,n){for(var t=e.length;--t>=0;)if(e[t].may_throw(n))return!0;return!1}e(F,f),e(We,c),e(yn,c),e(q,c),e(X,c),e(Ke,c),e(gn,c),e(He,function(e){return n(this.elements,e)}),e(je,function(e){return!!this.right.may_throw(e)||!(!e.has_directive("use strict")&&"="==this.operator&&this.left instanceof hn)&&this.left.may_throw(e)}),e(ze,function(e){return this.left.may_throw(e)||this.right.may_throw(e)}),e($,function(e){return n(this.body,e)}),e(ke,function(e){return!!n(this.args,e)||!this.is_expr_pure(e)&&(!!this.expression.may_throw(e)||(!(this.expression instanceof X)||n(this.expression.body,e)))}),e(me,function(e){return this.expression.may_throw(e)||n(this.body,e)}),e(Ne,function(e){return this.condition.may_throw(e)||this.consequent.may_throw(e)||this.alternative.may_throw(e)}),e(De,function(e){return n(this.definitions,e)}),e(Te,function(e){return this.expression.may_throw_on_access(e)||this.expression.may_throw(e)}),e(le,function(e){return this.condition.may_throw(e)||this.body&&this.body.may_throw(e)||this.alternative&&this.alternative.may_throw(e)}),e(N,function(e){return this.body.may_throw(e)}),e(Re,function(e){return n(this.properties,e)}),e(Pe,function(e){return this.value.may_throw(e)}),e(ae,function(e){return this.value&&this.value.may_throw(e)}),e(Be,function(e){return n(this.expressions,e)}),e(S,function(e){return this.body.may_throw(e)}),e(Oe,function(e){return this.expression.may_throw_on_access(e)||this.expression.may_throw(e)||this.property.may_throw(e)}),e(pe,function(e){return this.expression.may_throw(e)||n(this.body,e)}),e(hn,function(e){return!this.is_declared(e)}),e(_e,function(e){return this.bcatch?this.bcatch.may_throw(e):n(this.body,e)||this.bfinally&&this.bfinally.may_throw(e)}),e($e,function(e){return!("typeof"==this.operator&&this.expression instanceof hn)&&this.expression.may_throw(e)}),e(Fe,function(e){return!!this.value&&this.value.may_throw(e)})}(function(e,n){e.DEFMETHOD("may_throw",n)}),function(e){function n(e){for(var n=e.length;--n>=0;)if(!e[n].is_constant_expression())return!1;return!0}function i(e){var n=this,i=!0;return n.walk(new qn(function(r){if(!i)return!0;if(r instanceof hn){if(n.inlined)return i=!1,!0;var o=r.definition();if(t(o,n.enclosed)&&!n.variables.has(o.name)){if(e){var a=e.find_variable(r);if(o.undeclared?!a:a===o)return i="f",!0}i=!1}return!0}return r instanceof gn&&n instanceof K?(i=!1,!0):void 0})),i}e(F,c),e(yn,f),e(We,function(e){return!(this.extends&&!this.extends.is_constant_expression(e))&&i.call(this,e)}),e(X,i),e($e,function(){return this.expression.is_constant_expression()}),e(ze,function(){return this.left.is_constant_expression()&&this.right.is_constant_expression()}),e(He,function(){return n(this.elements)}),e(Re,function(){return n(this.properties)}),e(Pe,function(){return!(this.key instanceof F)&&this.value.is_constant_expression()})}(function(e,n){e.DEFMETHOD("is_constant_expression",n)}),function(e){function n(){for(var e=0;e<this.body.length;e++)if(Wn(this.body[e]))return this.body[e];return null}e(k,p),e(re,l),e(xe,function(){return null}),e(M,n),e(de,n),e(le,function(){return this.alternative&&Wn(this.body)&&Wn(this.alternative)&&this})}(function(e,n){e.DEFMETHOD("aborts",n)});var Gn=["use asm","use strict"];function Xn(e,n){return vn(e.body,n),n.option("side_effects")&&1==e.body.length&&e.body[0]===n.has_directive("use strict")&&(e.body.length=0),e}function Jn(e,n){var t=!1,i=new qn(function(n){return!!(t||n instanceof Y)||(n instanceof ue&&i.loopcontrol_target(n)===e?t=!0:void 0)});return n instanceof N&&i.push(n),i.push(e),e.body.walk(i),t}function Zn(e,n){return n.top_retain&&e._top&&e instanceof Q&&e.name&&n.top_retain(e.name)}e(B,function(e,n){return!n.option("directives")||t(e.value,Gn)&&n.has_directive(e.value)===e?e:v(q,e)}),e(C,function(e,n){return n.option("drop_debugger")?v(q,e):e}),e(N,function(e,n){return e.body instanceof ce&&n.loopcontrol_target(e.body)===e.body?v(q,e):0==e.label.references.length?e.body:e}),e($,function(e,n){return vn(e.body,n),e}),e(M,function(e,n){switch(vn(e.body,n),e.body.length){case 1:if(!n.has_directive("use strict")&&n.parent()instanceof le&&!((t=e.body[0])instanceof Ee||t instanceof be||t instanceof We)||we(e.body[0]))return e.body[0];break;case 0:return v(q,e)}var t;return e}),e(X,Xn),Y.DEFMETHOD("drop_unused",function(e){if(e.option("unused")&&!e.has_directive("use asm")){var n=this;if(!n.pinned()){var t=!(n instanceof W)||e.toplevel.funcs,i=!(n instanceof W)||e.toplevel.vars,r=/keep_assign/.test(e.option("unused"))?c:function(e){return e instanceof je&&(e.write_only||"="==e.operator)?e.left:e instanceof $e&&e.write_only?e.expression:void 0},o=[],a=Object.create(null),u=Object.create(null);n instanceof W&&e.top_retain&&n.variables.each(function(n){!e.top_retain(n)||n.id in a||(a[n.id]=!0,o.push(n))});var f=new y,l=new y,p=null,h=this,m=new qn(function(r,s){if(r instanceof X&&r.uses_arguments&&!m.has_directive("use strict")&&r.argnames.forEach(function(e){if(e instanceof Ke){var n=e.definition();n.id in a||(a[n.id]=!0,o.push(n))}}),r!==n){if(r instanceof Q||r instanceof Ge){var c=r.name.definition();return((d=m.parent()instanceof Ae)||!t&&h===n)&&(!c.global||c.id in a||(a[c.id]=!0,o.push(c))),l.add(c.id,r),!0}if(r instanceof rn&&h===n&&f.add(r.definition().id,r),r instanceof De&&h===n){var d=m.parent()instanceof Ae;return r.definitions.forEach(function(n){if(n.name instanceof Qe&&f.add(n.name.definition().id,n),!d&&i||n.name.walk(new qn(function(e){if(e instanceof Ke){var n=e.definition();!d&&!n.global||n.id in a||(a[n.id]=!0,o.push(n))}})),n.value){if(n.name instanceof ee){var t=p;p=n.value,n.walk(m),p=t}else{var r=n.name.definition();l.add(r.id,n.value),r.chained||n.name.fixed_value()!==n.value||(u[r.id]=n)}n.value.has_side_effects(e)&&n.value.walk(m)}}),!0}return r.destructuring&&p&&l.add(r.name,p),A(r,s)}});n.walk(m),m=new qn(A);for(var g=0;g<o.length;g++){var b=l.get(o[g].id);b&&b.forEach(function(e){e.walk(m)})}var E=new Dt(function(o,s,c){var l=E.parent();if(i&&(A=r(o))instanceof hn){var p=(m=A.definition()).id in a;if(o instanceof je){if(!p||m.id in u&&u[m.id]!==o)return O(l,o,o.right.transform(E))}else if(!p)return v(En,o,{value:0})}if(h===n){var m;if(o.name&&(o instanceof Xe&&!w(e.option("keep_classnames"),(m=o.name.definition()).name)||o instanceof Z&&!w(e.option("keep_fnames"),(m=o.name.definition()).name))&&(m.id in a&&!(m.orig.length>1)||(o.name=null)),o instanceof X&&!(o instanceof J))for(var g=!e.option("keep_fargs"),y=o.argnames,b=y.length;--b>=0;){var A;(A=y[b])instanceof G&&(A=A.expression),A instanceof Ie&&(A=A.left),A instanceof ee||A.definition().id in a?g=!1:(A.__unused=!0,g&&(y.pop(),e[A.unreferenced()?"warn":"info"]("Dropping unused function argument {name} [{file}:{line},{col}]",j(A))))}if((o instanceof Q||o instanceof Ge)&&o!==n)if(!((m=o.name.definition()).id in a||!t&&m.global))return e[o.name.unreferenced()?"warn":"info"]("Dropping unused function {name} [{file}:{line},{col}]",j(o.name)),m.eliminated++,v(q,o);if(o instanceof De&&!(l instanceof U&&l.init===o)){var F=!(l instanceof W||o instanceof ye),k=[],C=[],B=[],T=[];switch(o.definitions.forEach(function(n){n.value&&(n.value=n.value.transform(E));var t=n.name instanceof ee,r=t?new yt(null,{name:"<destructure>"}):n.name.definition();if(F&&r.global)return B.push(n);if(!i&&!F||t&&(n.name.names.length||n.name.is_array||1!=e.option("pure_getters"))||r.id in a){if(n.value&&r.id in u&&u[r.id]!==n&&(n.value=n.value.drop_side_effect_free(e)),n.name instanceof Qe){var s=f.get(r.id);if(s.length>1&&(!n.value||r.orig.indexOf(n.name)>r.eliminated)){if(e.warn("Dropping duplicated definition of variable {name} [{file}:{line},{col}]",j(n.name)),n.value){var c=v(hn,n.name,n.name);r.references.push(c);var l=v(je,n,{operator:"=",left:c,right:n.value});u[r.id]===n&&(u[r.id]=l),T.push(l.transform(E))}return _(s,n),void r.eliminated++}}n.value?(T.length>0&&(B.length>0?(T.push(n.value),n.value=x(n.value,T)):k.push(v(S,o,{body:x(o,T)})),T=[]),B.push(n)):C.push(n)}else if(r.orig[0]instanceof fn){(p=n.value&&n.value.drop_side_effect_free(e))&&T.push(p),n.value=null,C.push(n)}else{var p;(p=n.value&&n.value.drop_side_effect_free(e))?(t||e.warn("Side effects in initialization of unused variable {name} [{file}:{line},{col}]",j(n.name)),T.push(p)):t||e[n.name.unreferenced()?"warn":"info"]("Dropping unused variable {name} [{file}:{line},{col}]",j(n.name)),r.eliminated++}}),(C.length>0||B.length>0)&&(o.definitions=C.concat(B),k.push(o)),T.length>0&&k.push(v(S,o,{body:x(o,T)})),k.length){case 0:return c?d.skip:v(q,o);case 1:return k[0];default:return c?d.splice(k):v(M,o,{body:k})}}if(o instanceof P)return s(o,this),o.init instanceof M&&($=o.init,o.init=$.body.pop(),$.body.push(o)),o.init instanceof S?o.init=o.init.body:se(o.init)&&(o.init=null),$?c?d.splice($.body):$:o;if(o instanceof N&&o.body instanceof P){if(s(o,this),o.body instanceof M){var $=o.body;return o.body=$.body.pop(),$.body.push(o),c?d.splice($.body):$}return o}if(o instanceof M)return s(o,this),c&&D(o.body,we)?d.splice(o.body):o;if(o instanceof Y){var z=h;return h=o,s(o,this),h=z,o}}function j(e){return{name:e.name,file:e.start.file,line:e.start.line,col:e.start.col}}});n.transform(E)}}function A(e,t){var i,c=r(e);if(c instanceof hn&&!s(e.left,en)&&n.variables.get(c.name)===(i=c.definition()))return e instanceof je&&(e.right.walk(m),i.chained||e.left.fixed_value()!==e.right||(u[i.id]=e)),!0;if(e instanceof hn)return(i=e.definition()).id in a||(a[i.id]=!0,o.push(i),(i=i.redefined())&&(a[i.id]=!0,o.push(i))),!0;if(e instanceof Y){var f=h;return h=e,t(),h=f,!0}}}),Y.DEFMETHOD("hoist_declarations",function(e){var n=this;if(e.has_directive("use asm"))return n;if(!Array.isArray(n.body))return n;var t=e.option("hoist_funs"),r=e.option("hoist_vars");if(t||r){var o=[],a=[],s=new y,u=0,c=0;n.walk(new qn(function(e){return e instanceof Y&&e!==n||(e instanceof ye?(++c,!0):void 0)})),r=r&&c>1;var f=new Dt(function(i){if(i!==n){if(i instanceof B)return o.push(i),v(q,i);if(t&&i instanceof Q&&!(f.parent()instanceof Ae)&&f.parent()===n)return a.push(i),v(q,i);if(r&&i instanceof ye){i.definitions.forEach(function(e){e.name instanceof ee||(s.set(e.name.name,e),++u)});var c=i.to_assignments(e),l=f.parent();if(l instanceof U&&l.init===i){if(null==c){var p=i.definitions[0].name;return v(hn,p,p)}return c}return l instanceof P&&l.init===i?c:c?v(S,i,{body:c}):v(q,i)}if(i instanceof Y)return i}});if(n=n.transform(f),u>0){var l=[];if(s.each(function(e,t){n instanceof X&&i(function(n){return n.name==e.name.name},n.args_as_names())?s.del(t):((e=e.clone()).value=null,l.push(e),s.set(t,e))}),l.length>0){for(var p=0;p<n.body.length;){if(n.body[p]instanceof S){var d,h,m=n.body[p].body;if(m instanceof je&&"="==m.operator&&(d=m.left)instanceof Je&&s.has(d.name)){if((g=s.get(d.name)).value)break;g.value=m.right,_(l,g),l.push(g),n.body.splice(p,1);continue}if(m instanceof Be&&(h=m.expressions[0])instanceof je&&"="==h.operator&&(d=h.left)instanceof Je&&s.has(d.name)){var g;if((g=s.get(d.name)).value)break;g.value=h.right,_(l,g),l.push(g),n.body[p].body=x(m,m.expressions.slice(1));continue}}if(n.body[p]instanceof q)n.body.splice(p,1);else{if(!(n.body[p]instanceof M))break;var D=[p,1].concat(n.body[p].body);n.body.splice.apply(n.body,D)}}l=v(ye,n,{definitions:l}),a.push(l)}}n.body=o.concat(a,n.body)}return n}),Y.DEFMETHOD("var_names",function(){var e=this._var_names;return e||(this._var_names=e=Object.create(null),this.enclosed.forEach(function(n){e[n.name]=!0}),this.variables.each(function(n,t){e[t]=!0})),e}),Y.DEFMETHOD("make_var_name",function(e){for(var n=this.var_names(),t=e=e.replace(/(?:^[^a-z_$]|[^a-z0-9_$])/gi,"_"),i=0;n[t];i++)t=e+"$"+i;return n[t]=!0,t}),Y.DEFMETHOD("hoist_properties",function(e){var n=this;if(!e.option("hoist_props")||e.has_directive("use asm"))return n;var t=n instanceof W&&e.top_retain||c,i=Object.create(null),r=new Dt(function(o,a){if(o instanceof De&&r.parent()instanceof Ae)return o;var s;if(o instanceof Fe&&((f=o.name).scope===n&&1!=(l=f.definition()).escaped&&!l.assignments&&!l.direct_access&&!l.single_use&&!e.exposed(l)&&!t(l)&&(s=f.fixed_value())===o.value&&s instanceof Re)){a(o,this);var u=new y,c=[];return s.properties.forEach(function(e){var t,i,r;c.push(v(Fe,o,{name:(t=e.key,i=v(f.CTOR,f,{name:n.make_var_name(f.name+"_"+t),scope:n}),r=n.def_variable(i),u.set(t,r),n.enclosed.push(r),i),value:e.value}))}),i[l.id]=u,d.splice(c)}if(o instanceof Se&&o.expression instanceof hn&&(u=i[o.expression.definition().id])){var f,l=u.get(xn(o.property));return(f=v(hn,o,{name:l.name,scope:o.expression.scope,thedef:l})).reference({}),f}});return n.transform(r)}),function(e){function n(e,n,t){var i=e.length;if(!i)return null;for(var r=[],o=!1,a=0;a<i;a++){var s=e[a].drop_side_effect_free(n,t);o|=s!==e[a],s&&(r.push(s),t=!1)}return o?r.length?r:null:e}e(F,l),e(yn,p),e(gn,p),e(ke,function(e,t){if(!this.is_expr_pure(e)){if(this.expression.is_call_pure(e)){var i=this.args.slice();return i.unshift(this.expression.expression),(i=n(i,e,t))&&x(this,i)}if(o(this.expression)&&(!this.expression.name||!this.expression.name.definition().references.length)){var r=this.clone();return r.expression.process_expression(!1,e),r}return this}this.pure&&e.warn("Dropping __PURE__ call [{file}:{line},{col}]",this.start);var a=n(this.args,e,t);return a&&x(this,a)}),e(J,p),e(Z,p),e(K,p),e(Xe,p),e(ze,function(e,n){var t=this.right.drop_side_effect_free(e);if(!t)return this.left.drop_side_effect_free(e,n);if(Nn(this.operator)){if(t===this.right)return this;var i=this.clone();return i.right=t,i}var r=this.left.drop_side_effect_free(e,n);return r?x(this,[r,t]):this.right.drop_side_effect_free(e,n)}),e(je,function(e){var n=this.left;if(n.has_side_effects(e)||e.has_directive("use strict")&&n instanceof Se&&n.expression.is_constant())return this;for(this.write_only=!0;n instanceof Se;)n=n.expression;return n.is_constant_expression(e.find_parent(Y))?this.right.drop_side_effect_free(e):this}),e(Ne,function(e){var n=this.consequent.drop_side_effect_free(e),t=this.alternative.drop_side_effect_free(e);if(n===this.consequent&&t===this.alternative)return this;if(!n)return t?v(ze,this,{operator:"||",left:this.condition,right:t}):this.condition.drop_side_effect_free(e);if(!t)return v(ze,this,{operator:"&&",left:this.condition,right:n});var i=this.clone();return i.consequent=n,i.alternative=t,i}),e($e,function(e,n){if(jn(this.operator))return this.write_only=!this.expression.has_side_effects(e),this;if("typeof"==this.operator&&this.expression instanceof hn)return null;var t=this.expression.drop_side_effect_free(e,n);return n&&t&&Ze(t)?t===this.expression&&"!"==this.operator?this:t.negate(e,n):t}),e(hn,function(e){return this.is_declared(e)?null:this}),e(Re,function(e,t){var i=n(this.properties,e,t);return i&&x(this,i)}),e(Pe,function(e,n){return this.value.drop_side_effect_free(e,n)}),e(He,function(e,t){var i=n(this.elements,e,t);return i&&x(this,i)}),e(Te,function(e,n){return this.expression.may_throw_on_access(e)?this:this.expression.drop_side_effect_free(e,n)}),e(Oe,function(e,n){if(this.expression.may_throw_on_access(e))return this;var t=this.expression.drop_side_effect_free(e,n);if(!t)return this.property.drop_side_effect_free(e,n);var i=this.property.drop_side_effect_free(e);return i?x(this,[t,i]):t}),e(Be,function(e){var n=this.tail_node(),t=n.drop_side_effect_free(e);if(t===n)return this;var i=this.expressions.slice(0,-1);return t&&i.push(t),x(this,i)}),e(G,function(e,n){return this.expression.drop_side_effect_free(e,n)}),e(ie,p),e(te,function(e){var t=n(this.segments,e,E);return t&&x(this,t)})}(function(e,n){e.DEFMETHOD("drop_side_effect_free",n)}),e(S,function(e,n){if(n.option("side_effects")){var t=e.body,i=t.drop_side_effect_free(n,!0);if(!i)return n.warn("Dropping side-effect-free statement [{file}:{line},{col}]",e.start),v(q,e);if(i!==t)return v(S,e,{body:i})}return e}),e(R,function(e,n){return n.option("loops")?v(P,e,e).optimize(n):e}),e(H,function(e,n){if(!n.option("loops"))return e;var t=e.condition.tail_node().evaluate(n);if(!(t instanceof F)){if(t)return v(P,e,{body:v(M,e.body,{body:[e.body,v(S,e.condition,{body:e.condition})]})}).optimize(n);if(!Jn(e,n.parent()))return v(M,e.body,{body:[e.body,v(S,e.condition,{body:e.condition})]}).optimize(n)}return e}),e(P,function(e,n){if(!n.option("loops"))return e;if(n.option("side_effects")&&e.init&&(e.init=e.init.drop_side_effect_free(n)),e.condition){var t=e.condition.evaluate(n);if(!(t instanceof F))if(t)e.condition=null;else if(!n.option("dead_code")){var i=e.condition;e.condition=A(t,e.condition),e.condition=Hn(e.condition.transform(n),i)}if(n.option("dead_code")&&(t instanceof F&&(t=e.condition.tail_node().evaluate(n)),!t)){var r=[];return Dn(n,e.body,r),e.init instanceof k?r.push(e.init):e.init&&r.push(v(S,e.init,{body:e.init})),r.push(v(S,e.condition,{body:e.condition})),v(M,e,{body:r}).optimize(n)}}return function e(n,t){var i=n.body instanceof M?n.body.body[0]:n.body;if(t.option("dead_code")&&o(i)){var r=[];return n.init instanceof k?r.push(n.init):n.init&&r.push(v(S,n.init,{body:n.init})),n.condition&&r.push(v(S,n.condition,{body:n.condition})),Dn(t,n.body,r),v(M,n,{body:r})}return i instanceof le&&(o(i.body)?(n.condition?n.condition=v(ze,n.condition,{left:n.condition,operator:"&&",right:i.condition.negate(t)}):n.condition=i.condition.negate(t),a(i.alternative)):o(i.alternative)&&(n.condition?n.condition=v(ze,n.condition,{left:n.condition,operator:"&&",right:i.condition}):n.condition=i.condition,a(i.body))),n;function o(e){return e instanceof ce&&t.loopcontrol_target(e)===t.self()}function a(i){i=L(i),n.body instanceof M?(n.body=n.body.clone(),n.body.body=i.concat(n.body.body.slice(1)),n.body=n.body.transform(t)):n.body=v(M,n.body,{body:i}).transform(t),n=e(n,t)}}(e,n)}),e(le,function(e,n){if(se(e.alternative)&&(e.alternative=null),!n.option("conditionals"))return e;var t=e.condition.evaluate(n);if(!(n.option("dead_code")||t instanceof F)){var i=e.condition;e.condition=A(t,i),e.condition=Hn(e.condition.transform(n),i)}if(n.option("dead_code")){if(t instanceof F&&(t=e.condition.tail_node().evaluate(n)),!t){n.warn("Condition always false [{file}:{line},{col}]",e.condition.start);var r=[];return Dn(n,e.body,r),r.push(v(S,e.condition,{body:e.condition})),e.alternative&&r.push(e.alternative),v(M,e,{body:r}).optimize(n)}if(!(t instanceof F)){n.warn("Condition always true [{file}:{line},{col}]",e.condition.start);r=[];return e.alternative&&Dn(n,e.alternative,r),r.push(v(S,e.condition,{body:e.condition})),r.push(e.body),v(M,e,{body:r}).optimize(n)}}var o=e.condition.negate(n),a=e.condition.print_to_string().length,s=o.print_to_string().length,u=s<a;if(e.alternative&&u){u=!1,e.condition=o;var c=e.body;e.body=e.alternative||v(q,e),e.alternative=c}if(se(e.body)&&se(e.alternative))return v(S,e.condition,{body:e.condition.clone()}).optimize(n);if(e.body instanceof S&&e.alternative instanceof S)return v(S,e,{body:v(Ne,e,{condition:e.condition,consequent:e.body.body,alternative:e.alternative.body})}).optimize(n);if(se(e.alternative)&&e.body instanceof S)return a===s&&!u&&e.condition instanceof ze&&"||"==e.condition.operator&&(u=!0),u?v(S,e,{body:v(ze,e,{operator:"||",left:o,right:e.body.body})}).optimize(n):v(S,e,{body:v(ze,e,{operator:"&&",left:e.condition,right:e.body.body})}).optimize(n);if(e.body instanceof q&&e.alternative instanceof S)return v(S,e,{body:v(ze,e,{operator:"||",left:e.condition,right:e.alternative.body})}).optimize(n);if(e.body instanceof oe&&e.alternative instanceof oe&&e.body.TYPE==e.alternative.TYPE)return v(e.body.CTOR,e,{value:v(Ne,e,{condition:e.condition,consequent:e.body.value||v(kn,e.body),alternative:e.alternative.value||v(kn,e.alternative)}).transform(n)}).optimize(n);if(e.body instanceof le&&!e.body.alternative&&!e.alternative&&(e=v(le,e,{condition:v(ze,e.condition,{operator:"&&",left:e.condition,right:e.body.condition}),body:e.body.body,alternative:null})),Wn(e.body)&&e.alternative){var f=e.alternative;return e.alternative=null,v(M,e,{body:[e,f]}).optimize(n)}if(Wn(e.alternative)){r=e.body;return e.body=e.alternative,e.condition=u?o:e.condition.negate(n),e.alternative=null,v(M,e,{body:[e,r]}).optimize(n)}return e}),e(pe,function(e,n){if(!n.option("switches"))return e;var t,i=e.expression.evaluate(n);if(!(i instanceof F)){var r=e.expression;e.expression=A(i,r),e.expression=Hn(e.expression.transform(n),r)}if(!n.option("dead_code"))return e;i instanceof F&&(i=e.expression.tail_node().evaluate(n));for(var o,a,s=[],u=[],c=0,f=e.body.length;c<f&&!a;c++){if((t=e.body[c])instanceof he)o?D(t,u[u.length-1]):o=t;else if(!(i instanceof F)){if(!((_=t.expression.evaluate(n))instanceof F)&&_!==i){D(t,u[u.length-1]);continue}if(_ instanceof F&&(_=t.expression.tail_node().evaluate(n)),_===i&&(a=t,o)){var l=u.indexOf(o);u.splice(l,1),D(o,u[l-1]),o=null}}if(Wn(t)){var p=u[u.length-1];Wn(p)&&p.body.length==t.body.length&&v(M,p,p).equivalent_to(v(M,t,t))&&(p.body=[])}u.push(t)}for(;c<f;)D(e.body[c++],u[u.length-1]);for(u.length>0&&(u[0].body=s.concat(u[0].body)),e.body=u;t=u[u.length-1];){var d=t.body[t.body.length-1];if(d instanceof ce&&n.loopcontrol_target(d)===e&&t.body.pop(),t.body.length||t instanceof me&&(o||t.expression.has_side_effects(n)))break;u.pop()===o&&(o=null)}if(0==u.length)return v(M,e,{body:s.concat(v(S,e.expression,{body:e.expression}))}).optimize(n);if(1==u.length&&(u[0]===a||u[0]===o)){var h=!1,m=new qn(function(n){if(h||n instanceof X||n instanceof S)return!0;n instanceof ce&&m.loopcontrol_target(n)===e&&(h=!0)});if(e.walk(m),!h){var _,g=u[0].body.slice();return(_=u[0].expression)&&g.unshift(v(S,_,{body:_})),g.unshift(v(S,e.expression,{body:e.expression})),v(M,e,{body:g}).optimize(n)}}return e;function D(e,t){t&&!Wn(t)?t.body=t.body.concat(e.body):Dn(n,e,s)}}),e(_e,function(e,n){if(vn(e.body,n),e.bcatch&&e.bfinally&&D(e.bfinally.body,se)&&(e.bfinally=null),n.option("dead_code")&&D(e.body,se)){var t=[];return e.bcatch&&(Dn(n,e.bcatch,t),t.forEach(function(e){e instanceof De&&e.definitions.forEach(function(e){var n=e.name.definition().redefined();n&&(e.name=e.name.clone(),e.name.thedef=n)})})),e.bfinally&&(t=t.concat(e.bfinally.body)),v(M,e,{body:t}).optimize(n)}return e}),De.DEFMETHOD("remove_initializers",function(){var e=[];this.definitions.forEach(function(n){n.name instanceof Ke?(n.value=null,e.push(n)):n.name.walk(new qn(function(t){t instanceof Ke&&e.push(v(Fe,n,{name:t,value:null}))}))}),this.definitions=e}),De.DEFMETHOD("to_assignments",function(e){var n=e.option("reduce_vars"),t=this.definitions.reduce(function(e,t){if(!t.value||t.name instanceof ee){if(t.value){var i=v(Fe,t,{name:t.name,value:t.value}),r=v(ye,t,{definitions:[i]});e.push(r)}}else{var o=v(hn,t.name,t.name);e.push(v(je,t,{operator:"=",left:o,right:t.value})),n&&(o.definition().fixed=!1)}return(t=t.name.definition()).eliminated++,t.replaced--,e},[]);return 0==t.length?null:x(this,t)}),e(De,function(e,n){return 0==e.definitions.length?v(q,e):e}),e(xe,function(e,n){return e}),e(ke,function(e,n){var t=e.expression,i=t,r=D(e.args,function(e){return!(e instanceof G)});n.option("reduce_vars")&&i instanceof hn&&Zn(i=i.fixed_value(),n)&&(i=t);var a=i instanceof X;if(n.option("unused")&&r&&a&&!i.uses_arguments&&!i.pinned()){for(var s=0,u=0,c=0,f=e.args.length;c<f;c++){if(i.argnames[c]instanceof G){if(i.argnames[c].expression.__unused)for(;c<f;){(y=e.args[c++].drop_side_effect_free(n))&&(e.args[s++]=y)}else for(;c<f;)e.args[s++]=e.args[c++];u=s;break}var l=c>=i.argnames.length;if(l||i.argnames[c].__unused){if(y=e.args[c].drop_side_effect_free(n))e.args[s++]=y;else if(!l){e.args[s++]=v(En,e.args[c],{value:0});continue}}else e.args[s++]=e.args[c];u=s}e.args.length=u}if(n.option("unsafe"))if(tn(t))switch(t.name){case"Array":if(1!=e.args.length)return v(He,e,{elements:e.args}).optimize(n);break;case"Object":if(0==e.args.length)return v(Re,e,{properties:[]});break;case"String":if(0==e.args.length)return v(bn,e,{value:""});if(e.args.length<=1)return v(ze,e,{left:e.args[0],operator:"+",right:v(bn,e,{value:""})}).optimize(n);break;case"Number":if(0==e.args.length)return v(En,e,{value:0});if(1==e.args.length)return v(Me,e,{expression:e.args[0],operator:"+"}).optimize(n);case"Boolean":if(0==e.args.length)return v(Tn,e);if(1==e.args.length)return v(Me,e,{expression:v(Me,e,{expression:e.args[0],operator:"!"}),operator:"!"}).optimize(n);break;case"RegExp":var p=[];if(D(e.args,function(e){var t=e.evaluate(n);return p.unshift(t),e!==t}))try{return Rn(n,e,v(wn,e,{value:RegExp.apply(RegExp,p)}))}catch(t){n.warn("Error converting {expr} [{file}:{line},{col}]",{expr:e.print_to_string(),file:e.start.file,line:e.start.line,col:e.start.col})}}else if(t instanceof Te)switch(t.property){case"toString":if(0==e.args.length&&!t.expression.may_throw_on_access(n))return v(ze,e,{left:v(bn,e,{value:""}),operator:"+",right:t.expression}).optimize(n);break;case"join":if(t.expression instanceof He)e:{var d;if(!(e.args.length>0&&(d=e.args[0].evaluate(n))===e.args[0])){var h,m=[],_=[];for(c=0,f=t.expression.elements.length;c<f;c++){var g=t.expression.elements[c];if(g instanceof G)break e;(H=g.evaluate(n))!==g?_.push(H):(_.length>0&&(m.push(v(bn,e,{value:_.join(d)})),_.length=0),m.push(g))}return _.length>0&&m.push(v(bn,e,{value:_.join(d)})),0==m.length?v(bn,e,{value:""}):1==m.length?m[0].is_string(n)?m[0]:v(ze,m[0],{operator:"+",left:v(bn,e,{value:""}),right:m[0]}):""==d?(h=m[0].is_string(n)||m[1].is_string(n)?m.shift():v(bn,e,{value:""}),m.reduce(function(e,n){return v(ze,n,{operator:"+",left:e,right:n})},h).optimize(n)):((y=e.clone()).expression=y.expression.clone(),y.expression.expression=y.expression.expression.clone(),y.expression.expression.elements=m,Rn(n,e,y));var y}}break;case"charAt":if(t.expression.is_string(n)){var b=e.args[0],E=b?b.evaluate(n):0;if(E!==b)return v(Oe,t,{expression:t.expression,property:A(0|E,b||t)}).optimize(n)}break;case"apply":if(2==e.args.length&&e.args[1]instanceof He)return(N=e.args[1].elements.slice()).unshift(e.args[0]),v(ke,e,{expression:v(Te,t,{expression:t.expression,property:"call"}),args:N}).optimize(n);break;case"call":var w=t.expression;if(w instanceof hn&&(w=w.fixed_value()),w instanceof X&&!w.contains_this())return(e.args.length?x(this,[e.args[0],v(ke,e,{expression:t.expression,args:e.args.slice(1)})]):v(ke,e,{expression:t.expression,args:[]})).optimize(n)}if(n.option("unsafe_Function")&&tn(t)&&"Function"==t.name){if(0==e.args.length)return v(Z,e,{argnames:[],body:[]}).optimize(n);if(D(e.args,function(e){return e instanceof bn}))try{var k=gt(O="n(function("+e.args.slice(0,-1).map(function(e){return e.value}).join(",")+"){"+e.args[e.args.length-1].value+"})"),C={ie8:n.option("ie8")};k.figure_out_scope(C);var B,T=new Ft(n.options);(k=k.transform(T)).figure_out_scope(C),Et.reset(),k.compute_char_frequency(C),k.mangle_names(C),k.walk(new qn(function(e){return!!B||(o(e)?(B=e,!0):void 0)})),B.body instanceof F&&(B.body=[v(ae,B.body,{value:B.body})]);var O=At();return M.prototype._codegen.call(B,B,O),e.args=[v(bn,e,{value:B.argnames.map(function(e){return e.print_to_string()}).join(",")}),v(bn,e.args[e.args.length-1],{value:O.get().replace(/^\{|\}$/g,"")})],e}catch(t){if(!(t instanceof ut))throw t;n.warn("Error parsing code passed to new Function [{file}:{line},{col}]",e.args[e.args.length-1].start),n.warn(t.toString())}}var $=a&&i.body;$ instanceof F?$=v(ae,$,{value:$}):$&&($=$[0]);var q=a&&!i.is_generator&&!i.async,z=n.option("inline")&&!e.is_expr_pure(n);if(z&&$ instanceof ae&&q&&(!(H=$.value)||H.is_constant_expression())){H=H?H.clone(!0):v(kn,e);var N=e.args.concat(H);return x(e,N).optimize(n)}if(q){var I,H,R,P,U=-1;if(z&&r&&!i.uses_arguments&&!i.pinned()&&!(n.parent()instanceof We)&&!(i.name&&i instanceof Z)&&(!(n.find_parent(X)instanceof K)||0==i.argnames.length&&(i.body instanceof F||1==i.body.length))&&(H=function(e){var t=i.body instanceof F?[i.body]:i.body,r=t.length;if(n.option("inline")<3)return 1==r&&V(e);e=null;for(var o=0;o<r;o++){var a=t[o];if(a instanceof ye){if(e&&!D(a.definitions,function(e){return!e.value}))return!1}else{if(e)return!1;e=a}}return V(e)}($))&&(t===i||n.option("unused")&&1==(I=t.definition()).references.length&&!Qn(n,I)&&i.is_constant_expression(t.scope))&&!e.pure&&!i.contains_this()&&function(){var e=Object.create(null);do{if(!(R=n.parent(++U)).is_block_scope()||n.parent(U-1)instanceof Y||R.block_scope&&R.block_scope.variables.each(function(n){e[n.name]=!0}),R instanceof ve)R.argname&&(e[R.argname.name]=!0);else if(R instanceof j)P=[];else if(R instanceof hn&&R.fixed_value()instanceof Y)return!1}while(!(R instanceof Y)||R instanceof K);var t=!(R instanceof W)||n.toplevel.vars,r=n.option("inline");return!(!function(e,n){for(var t=i.body.length,r=0;r<t;r++){var o=i.body[r];if(o instanceof ye){if(!n)return!1;for(var a=o.definitions.length;--a>=0;){var s=o.definitions[a].name;if(s instanceof ee||e[s.name]||dn(s.name)||R.var_names()[s.name])return!1;P&&P.push(s.definition())}}}return!0}(e,r>=3&&t)||!function(e,n){for(var t=0,r=i.argnames.length;t<r;t++){var o=i.argnames[t];if(o instanceof Ie){if(o.left.__unused)continue;return!1}if(o instanceof ee)return!1;if(o instanceof G){if(o.expression.__unused)continue;return!1}if(!o.__unused){if(!n||e[o.name]||dn(o.name)||R.var_names()[o.name])return!1;P&&P.push(o.definition())}}return!0}(e,r>=2&&t)||P&&0!=P.length&&nt(i,P))}())return i._squeezed=!0,x(e,function(){var t=[],r=[];(function(n,t){for(var r=i.argnames.length,o=e.args.length;--o>=r;)t.push(e.args[o]);for(o=r;--o>=0;){var a=i.argnames[o],s=e.args[o];if(a.__unused||!a.name||R.var_names()[a.name])s&&t.push(s);else{var u=v(Qe,a,a);a.definition().orig.push(u),!s&&P&&(s=v(kn,e)),J(n,t,u,s)}}n.reverse(),t.reverse()})(t,r),function(e,n){for(var t=n.length,r=0,o=i.body.length;r<o;r++){var a=i.body[r];if(a instanceof ye)for(var s=0,u=a.definitions.length;s<u;s++){var c=a.definitions[s],f=c.name;if(J(e,n,f,c.value),P&&D(i.argnames,function(e){return e.name!=f.name})){var l=i.variables.get(f.name),p=v(hn,f,f);l.references.push(p),n.splice(t++,0,v(je,c,{operator:"=",left:p,right:v(kn,f)}))}}}}(t,r),r.push(H),t.length&&(c=R.body.indexOf(n.parent(U-1))+1,R.body.splice(c,0,v(ye,i,{definitions:t})));return r}()).optimize(n);if(n.option("side_effects")&&!(i.body instanceof F)&&D(i.body,se)){N=e.args.concat(v(kn,e));return x(e,N).optimize(n)}}if(n.option("negate_iife")&&n.parent()instanceof S&&Ze(e))return e.negate(n,!0);var L=e.evaluate(n);return L!==e?(L=A(L,e).optimize(n),Rn(n,L,e)):e;function V(n){return n?n instanceof ae?n.value?n.value.clone(!0):v(kn,e):n instanceof S?v(Me,n,{operator:"void",expression:n.body.clone(!0)}):void 0:v(kn,e)}function J(n,t,i,r){var o=i.definition();R.variables.set(i.name,o),R.enclosed.push(o),R.var_names()[i.name]||(R.var_names()[i.name]=!0,n.push(v(Fe,i,{name:i,value:null})));var a=v(hn,i,i);o.references.push(a),r&&t.push(v(je,e,{operator:"=",left:a,right:r.clone()}))}}),e(Ce,function(e,n){if(n.option("unsafe")){var t=e.expression;if(tn(t))switch(t.name){case"Object":case"RegExp":case"Function":case"Error":case"Array":return v(ke,e,e).transform(n)}}return e}),e(Be,function(e,n){if(!n.option("side_effects"))return e;var t,i,r=[];t=E(n),i=e.expressions.length-1,e.expressions.forEach(function(e,o){o<i&&(e=e.drop_side_effect_free(n,t)),e&&(z(r,e),t=!1)});var o=r.length-1;return function(){for(;o>0&&zn(r[o],n);)o--;o<r.length-1&&(r[o]=v(Me,e,{operator:"void",expression:r[o]}),r.length=o+1)}(),0==o?((e=O(n.parent(),n.self(),r[0]))instanceof Be||(e=e.optimize(n)),e):(e.expressions=r,e)}),$e.DEFMETHOD("lift_sequences",function(e){if(e.option("sequences")&&this.expression instanceof Be){var n=this.expression.expressions.slice(),t=this.clone();return t.expression=n.pop(),n.push(t),x(this,n).optimize(e)}return this}),e(qe,function(e,n){return e.lift_sequences(n)}),e(Me,function(e,n){var t=e.expression;if("delete"==e.operator&&!(t instanceof hn||t instanceof Se||_n(t)))return t instanceof Be?((t=t.expressions.slice()).push(v(On,e)),x(e,t).optimize(n)):x(e,[t,v(On,e)]).optimize(n);var i=e.lift_sequences(n);if(i!==e)return i;if(n.option("side_effects")&&"void"==e.operator)return(t=t.drop_side_effect_free(n))?(e.expression=t,e):v(kn,e).optimize(n);if(n.in_boolean_context())switch(e.operator){case"!":if(t instanceof Me&&"!"==t.operator)return t.expression;t instanceof ze&&(e=Rn(n,e,t.negate(n,E(n))));break;case"typeof":return n.warn("Boolean expression always true [{file}:{line},{col}]",e.start),(t instanceof hn?v(On,e):x(e,[t,v(On,e)])).optimize(n)}if("-"==e.operator&&t instanceof Bn&&(t=t.transform(n)),t instanceof ze&&("+"==e.operator||"-"==e.operator)&&("*"==t.operator||"/"==t.operator||"%"==t.operator))return v(ze,e,{operator:t.operator,left:v(Me,t.left,{operator:e.operator,expression:t.left}),right:t.right});if("-"!=e.operator||!(t instanceof En||t instanceof Bn)){var r=e.evaluate(n);if(r!==e)return Rn(n,r=A(r,e).optimize(n),e)}return e}),ze.DEFMETHOD("lift_sequences",function(e){if(e.option("sequences")){if(this.left instanceof Be){var n=this.left.expressions.slice();return(t=this.clone()).left=n.pop(),n.push(t),x(this,n).optimize(e)}if(this.right instanceof Be&&!this.left.has_side_effects(e)){for(var t,i="="==this.operator&&this.left instanceof hn,r=(n=this.right.expressions).length-1,o=0;o<r&&(i||!n[o].has_side_effects(e));o++);if(o==r)return n=n.slice(),(t=this.clone()).right=n.pop(),n.push(t),x(this,n).optimize(e);if(o>0)return(t=this.clone()).right=x(this.right,n.slice(o)),(n=n.slice(0,o)).push(t),x(this,n).optimize(e)}}return this});var Kn=g("== === != !== * & | ^");function Qn(e,n){for(var t,i=0;t=e.parent(i);i++)if(t instanceof X){var r=t.name;if(r&&r.definition()===n)break}return t}function et(e,n){return e instanceof hn||e.TYPE===n.TYPE}function nt(e,n){var i=!1,r=new qn(function(e){return!!i||(e instanceof hn&&t(e.definition(),n)?i=!0:void 0)}),o=new qn(function(n){if(i)return!0;if(n instanceof Y&&n!==e){var t=o.parent();if(t instanceof ke&&t.expression===n)return;return n.walk(r),!0}});return e.walk(o),i}e(ze,function(e,n){function t(){return e.left.is_constant()||e.right.is_constant()||!e.left.has_side_effects(n)&&!e.right.has_side_effects(n)}function i(n){if(t()){n&&(e.operator=n);var i=e.left;e.left=e.right,e.right=i}}if(Kn(e.operator)&&e.right.is_constant()&&!e.left.is_constant()&&(e.left instanceof ze&&_t[e.left.operator]>=_t[e.operator]||i()),e=e.lift_sequences(n),n.option("comparisons"))switch(e.operator){case"===":case"!==":var r=!0;(e.left.is_string(n)&&e.right.is_string(n)||e.left.is_number(n)&&e.right.is_number(n)||e.left.is_boolean()&&e.right.is_boolean()||e.left.equivalent_to(e.right))&&(e.operator=e.operator.substr(0,2));case"==":case"!=":if(!r&&zn(e.left,n))e.left=v(An,e.left);else if(n.option("typeofs")&&e.left instanceof bn&&"undefined"==e.left.value&&e.right instanceof Me&&"typeof"==e.right.operator){var o=e.right.expression;(o instanceof hn?!o.is_declared(n):o instanceof Se&&n.option("ie8"))||(e.right=o,e.left=v(kn,e.left).optimize(n),2==e.operator.length&&(e.operator+="="))}else if(e.left instanceof hn&&e.right instanceof hn&&e.left.definition()===e.right.definition()&&((u=e.left.fixed_value())instanceof He||u instanceof X||u instanceof Re||u instanceof We))return v("="==e.operator[0]?On:Tn,e);break;case"&&":case"||":var a=e.left;if(a.operator==e.operator&&(a=a.right),a instanceof ze&&a.operator==("&&"==e.operator?"!==":"===")&&e.right instanceof ze&&a.operator==e.right.operator&&(zn(a.left,n)&&e.right.left instanceof An||a.left instanceof An&&zn(e.right.left,n))&&!a.right.has_side_effects(n)&&a.right.equivalent_to(e.right.right)){var s=v(ze,e,{operator:a.operator.slice(0,-1),left:v(An,e),right:a.right});return a!==e.left&&(s=v(ze,e,{operator:e.operator,left:e.left.left,right:s})),s}}var u;if("+"==e.operator&&n.in_boolean_context()){var c=e.left.evaluate(n),f=e.right.evaluate(n);if(c&&"string"==typeof c)return n.warn("+ in boolean context always true [{file}:{line},{col}]",e.start),x(e,[e.right,v(On,e)]).optimize(n);if(f&&"string"==typeof f)return n.warn("+ in boolean context always true [{file}:{line},{col}]",e.start),x(e,[e.left,v(On,e)]).optimize(n)}if(n.option("comparisons")&&e.is_boolean()){if(!(n.parent()instanceof ze)||n.parent()instanceof je){var l=v(Me,e,{operator:"!",expression:e.negate(n,E(n))});e=Rn(n,e,l)}if(n.option("unsafe_comps"))switch(e.operator){case"<":i(">");break;case"<=":i(">=")}}if("+"==e.operator){if(e.right instanceof bn&&""==e.right.getValue()&&e.left.is_string(n))return e.left;if(e.left instanceof bn&&""==e.left.getValue()&&e.right.is_string(n))return e.right;if(e.left instanceof ze&&"+"==e.left.operator&&e.left.left instanceof bn&&""==e.left.left.getValue()&&e.right.is_string(n))return e.left=e.left.right,e.transform(n)}if(n.option("evaluate")){switch(e.operator){case"&&":if(!(c=!!e.left.truthy||!e.left.falsy&&e.left.evaluate(n)))return n.warn("Condition left of && always false [{file}:{line},{col}]",e.start),O(n.parent(),n.self(),e.left).optimize(n);if(!(c instanceof F))return n.warn("Condition left of && always true [{file}:{line},{col}]",e.start),x(e,[e.left,e.right]).optimize(n);if(f=e.right.evaluate(n)){if(!(f instanceof F)){if("&&"==(p=n.parent()).operator&&p.left===n.self()||n.in_boolean_context())return n.warn("Dropping side-effect-free && [{file}:{line},{col}]",e.start),e.left.optimize(n)}}else{if(n.in_boolean_context())return n.warn("Boolean && always false [{file}:{line},{col}]",e.start),x(e,[e.left,v(Tn,e)]).optimize(n);e.falsy=!0}if("||"==e.left.operator)if(!(d=e.left.right.evaluate(n)))return v(Ne,e,{condition:e.left.left,consequent:e.right,alternative:e.left.right}).optimize(n);break;case"||":var p,d;if(!(c=!!e.left.truthy||!e.left.falsy&&e.left.evaluate(n)))return n.warn("Condition left of || always false [{file}:{line},{col}]",e.start),x(e,[e.left,e.right]).optimize(n);if(!(c instanceof F))return n.warn("Condition left of || always true [{file}:{line},{col}]",e.start),O(n.parent(),n.self(),e.left).optimize(n);if(f=e.right.evaluate(n)){if(!(f instanceof F)){if(n.in_boolean_context())return n.warn("Boolean || always true [{file}:{line},{col}]",e.start),x(e,[e.left,v(On,e)]).optimize(n);e.truthy=!0}}else if("||"==(p=n.parent()).operator&&p.left===n.self()||n.in_boolean_context())return n.warn("Dropping side-effect-free || [{file}:{line},{col}]",e.start),e.left.optimize(n);if("&&"==e.left.operator)if((d=e.left.right.evaluate(n))&&!(d instanceof F))return v(Ne,e,{condition:e.left.left,consequent:e.left.right,alternative:e.right}).optimize(n)}var h=!0;switch(e.operator){case"+":if(e.left instanceof yn&&e.right instanceof ze&&"+"==e.right.operator&&e.right.left instanceof yn&&e.right.is_string(n)&&(e=v(ze,e,{operator:"+",left:v(bn,e.left,{value:""+e.left.getValue()+e.right.left.getValue(),start:e.left.start,end:e.right.left.end}),right:e.right.right})),e.right instanceof yn&&e.left instanceof ze&&"+"==e.left.operator&&e.left.right instanceof yn&&e.left.is_string(n)&&(e=v(ze,e,{operator:"+",left:e.left.left,right:v(bn,e.right,{value:""+e.left.right.getValue()+e.right.getValue(),start:e.left.right.start,end:e.right.end})})),e.left instanceof ze&&"+"==e.left.operator&&e.left.is_string(n)&&e.left.right instanceof yn&&e.right instanceof ze&&"+"==e.right.operator&&e.right.left instanceof yn&&e.right.is_string(n)&&(e=v(ze,e,{operator:"+",left:v(ze,e.left,{operator:"+",left:e.left.left,right:v(bn,e.left.right,{value:""+e.left.right.getValue()+e.right.left.getValue(),start:e.left.right.start,end:e.right.left.end})}),right:e.right.right})),e.right instanceof Me&&"-"==e.right.operator&&e.left.is_number(n)){e=v(ze,e,{operator:"-",left:e.left,right:e.right.expression});break}if(e.left instanceof Me&&"-"==e.left.operator&&t()&&e.right.is_number(n)){e=v(ze,e,{operator:"-",left:e.right,right:e.left.expression});break}case"*":h=n.option("unsafe_math");case"&":case"|":case"^":if(e.left.is_number(n)&&e.right.is_number(n)&&t()&&!(e.left instanceof ze&&e.left.operator!=e.operator&&_t[e.left.operator]>=_t[e.operator])){var m=v(ze,e,{operator:e.operator,left:e.right,right:e.left});e=e.right instanceof yn&&!(e.left instanceof yn)?Rn(n,m,e):Rn(n,e,m)}h&&e.is_number(n)&&(e.right instanceof ze&&e.right.operator==e.operator&&(e=v(ze,e,{operator:e.operator,left:v(ze,e.left,{operator:e.operator,left:e.left,right:e.right.left,start:e.left.start,end:e.right.left.end}),right:e.right.right})),e.right instanceof yn&&e.left instanceof ze&&e.left.operator==e.operator&&(e.left.left instanceof yn?e=v(ze,e,{operator:e.operator,left:v(ze,e.left,{operator:e.operator,left:e.left.left,right:e.right,start:e.left.left.start,end:e.right.end}),right:e.left.right}):e.left.right instanceof yn&&(e=v(ze,e,{operator:e.operator,left:v(ze,e.left,{operator:e.operator,left:e.left.right,right:e.right,start:e.left.right.start,end:e.right.end}),right:e.left.left}))),e.left instanceof ze&&e.left.operator==e.operator&&e.left.right instanceof yn&&e.right instanceof ze&&e.right.operator==e.operator&&e.right.left instanceof yn&&(e=v(ze,e,{operator:e.operator,left:v(ze,e.left,{operator:e.operator,left:v(ze,e.left.left,{operator:e.operator,left:e.left.right,right:e.right.left,start:e.left.right.start,end:e.right.left.end}),right:e.left.left}),right:e.right.right})))}}if(e.right instanceof ze&&e.right.operator==e.operator&&(Nn(e.operator)||"+"==e.operator&&(e.right.left.is_string(n)||e.left.is_string(n)&&e.right.right.is_string(n))))return e.left=v(ze,e.left,{operator:e.operator,left:e.left,right:e.right.left}),e.right=e.right.right,e.transform(n);var _=e.evaluate(n);return _!==e?(_=A(_,e).optimize(n),Rn(n,_,e)):e}),e(mn,function(e,n){return e}),e(hn,function(e,n){if(!n.option("ie8")&&tn(e)&&(!e.scope.uses_with||!n.find_parent(V)))switch(e.name){case"undefined":return v(kn,e).optimize(n);case"NaN":return v(Fn,e).optimize(n);case"Infinity":return v(Bn,e).optimize(n)}var t=n.parent();if(n.option("reduce_vars")&&In(e,t)!==e){var i=e.definition();if(n.top_retain&&i.global&&n.top_retain(i))return i.fixed=!1,i.should_replace=!1,i.single_use=!1,e;var r=e.fixed_value(),a=i.single_use&&!(t instanceof ke&&t.is_expr_pure(n));if(a&&(r instanceof X||r instanceof We))if(Zn(r,n))a=!1;else if(i.scope!==e.scope&&(!n.option("reduce_funcs")&&r instanceof X||1==i.escaped||r.inlined))a=!1;else if(Qn(n,i))a=!1;else if((i.scope!==e.scope||i.orig[0]instanceof rn)&&"f"==(a=r.is_constant_expression(e.scope))){var s=e.scope;do{(s instanceof Q||o(s))&&(s.inlined=!0)}while(s=s.parent_scope)}if(a&&r){var u;if(r instanceof Ge&&(r=v(Xe,r,r)),r instanceof Q&&(r._squeezed=!0,r=v(Z,r,r)),i.recursive_refs>0&&r.name instanceof on){var c=(u=r.clone(!0)).name.definition(),f=u.variables.get(u.name.name),l=f&&f.orig[0];l instanceof sn||((l=v(sn,u.name,u.name)).scope=u,u.name=l,f=u.def_function(l)),u.walk(new qn(function(e){e instanceof hn&&e.definition()===c&&(e.thedef=f,f.references.push(e))}))}else(u=r.optimize(n))===r&&(u=r.clone(!0));return u}if(r&&void 0===i.should_replace){var p;if(r instanceof gn)i.orig[0]instanceof rn||!D(i.references,function(e){return i.scope===e.scope})||(p=r);else{var d=r.evaluate(n);d===r||!n.option("unsafe_regexp")&&d instanceof RegExp||(p=A(d,r))}if(p){var h,m=p.optimize(n).print_to_string().length;!function(e){var n;return e.walk(new qn(function(e){if(e instanceof hn&&(n=!0),n)return!0})),n}(r)?(m=Math.min(m,r.print_to_string().length),h=function(){var e=Hn(p.optimize(n),r);return e===p||e===r?e.clone(!0):e}):h=function(){var e=p.optimize(n);return e===p?e.clone(!0):e};var _=i.name.length,g=0;n.option("unused")&&!n.exposed(i)&&(g=(_+2+m)/(i.references.length-i.assignments)),i.should_replace=m<=_+g&&h}else i.should_replace=!1}if(i.should_replace)return i.should_replace()}return e}),e(kn,function(e,n){if(n.option("unsafe_undefined")){var t=h(n,"undefined");if(t){var i=v(hn,e,{name:"undefined",scope:t.scope,thedef:t});return i.is_undefined=!0,i}}var r=In(n.self(),n.parent());return r&&et(r,e)?e:v(Me,e,{operator:"void",expression:v(En,e,{value:0})})}),e(Bn,function(e,n){var t=In(n.self(),n.parent());return t&&et(t,e)?e:!n.option("keep_infinity")||t&&!et(t,e)||h(n,"Infinity")?v(ze,e,{operator:"/",left:v(En,e,{value:1}),right:v(En,e,{value:0})}):e}),e(Fn,function(e,n){var t=In(n.self(),n.parent());return t&&!et(t,e)||h(n,"NaN")?v(ze,e,{operator:"/",left:v(En,e,{value:0}),right:v(En,e,{value:0})}):e});var tt=["+","-","/","*","%",">>","<<",">>>","|","^","&"],it=["*","|","^","&"];function rt(e,n){return e instanceof hn&&(e=e.fixed_value()),!!e&&(!(e instanceof X||e instanceof We)||n.parent()instanceof Ce||!e.contains_this())}function ot(e,n){return n.in_boolean_context()?Rn(n,e,x(e,[e,v(On,e)]).optimize(n)):e}function at(e,n){if(!n.option("computed_props"))return e;if(!(e.key instanceof yn))return e;if(e.key instanceof bn||e.key instanceof En){if("constructor"==e.key.value&&n.parent()instanceof We)return e;e.key=e instanceof Ue?e.key.value:v(an,e.key,{name:e.key.value})}return e}e(je,function(e,n){var i;if(n.option("dead_code")&&e.left instanceof hn&&(i=e.left.definition()).scope===n.find_parent(X)){var r,o=0,a=e;do{if(r=a,(a=n.parent(o++))instanceof oe){if(s(o,a))break;if(nt(i.scope,[i]))break;return"="==e.operator?e.right:(i.fixed=!1,v(ze,e,{operator:e.operator.slice(0,-1),left:e.left,right:e.right}).optimize(n))}}while(a instanceof ze&&a.right===r||a instanceof Be&&a.tail_node()===r)}return"="==(e=e.lift_sequences(n)).operator&&e.left instanceof hn&&e.right instanceof ze&&(e.right.left instanceof hn&&e.right.left.name==e.left.name&&t(e.right.operator,tt)?(e.operator=e.right.operator+"=",e.right=e.right.right):e.right.right instanceof hn&&e.right.right.name==e.left.name&&t(e.right.operator,it)&&!e.right.left.has_side_effects(n)&&(e.operator=e.right.operator+"=",e.right=e.right.left)),e;function s(t,i){var r=e.right;e.right=v(An,r);var o=i.may_throw(n);e.right=r;for(var a,s=e.left.definition().scope;(a=n.parent(t++))!==s;)if(a instanceof _e){if(a.bfinally)return!0;if(o&&a.bcatch)return!0}}}),e(Ie,function(e,n){if(!n.option("evaluate"))return e;var t=e.right.evaluate(n);return void 0===t?e=e.left:t!==e.right&&(t=A(t,e.right),e.right=Hn(t,e.right)),e}),e(Ne,function(e,n){if(!n.option("conditionals"))return e;if(e.condition instanceof Be){var t=e.condition.expressions.slice();return e.condition=t.pop(),t.push(e),x(e,t)}var i=e.condition.evaluate(n);if(i!==e.condition)return i?(n.warn("Condition always true [{file}:{line},{col}]",e.start),O(n.parent(),n.self(),e.consequent)):(n.warn("Condition always false [{file}:{line},{col}]",e.start),O(n.parent(),n.self(),e.alternative));var r=i.negate(n,E(n));Rn(n,i,r)===r&&(e=v(Ne,e,{condition:r,consequent:e.alternative,alternative:e.consequent}));var o,a=e.condition,s=e.consequent,u=e.alternative;if(a instanceof hn&&s instanceof hn&&a.definition()===s.definition())return v(ze,e,{operator:"||",left:a,right:u});if(s instanceof je&&u instanceof je&&s.operator==u.operator&&s.left.equivalent_to(u.left)&&(!e.condition.has_side_effects(n)||"="==s.operator&&!s.left.has_side_effects(n)))return v(je,e,{operator:s.operator,left:s.left,right:v(Ne,e,{condition:e.condition,consequent:s.right,alternative:u.right})});if(s instanceof ke&&u.TYPE===s.TYPE&&s.args.length>0&&s.args.length==u.args.length&&s.expression.equivalent_to(u.expression)&&!e.condition.has_side_effects(n)&&!s.expression.has_side_effects(n)&&"number"==typeof(o=function(){for(var e=s.args,n=u.args,t=0,i=e.length;t<i;t++){if(e[t]instanceof G)return;if(!e[t].equivalent_to(n[t])){if(n[t]instanceof G)return;for(var r=t+1;r<i;r++){if(e[r]instanceof G)return;if(!e[r].equivalent_to(n[r]))return}return t}}}())){var c=s.clone();return c.args[o]=v(Ne,e,{condition:e.condition,consequent:s.args[o],alternative:u.args[o]}),c}if(s instanceof Ne&&s.alternative.equivalent_to(u))return v(Ne,e,{condition:v(ze,e,{left:e.condition,operator:"&&",right:s.condition}),consequent:s.consequent,alternative:u});if(s.equivalent_to(u))return x(e,[e.condition,s]).optimize(n);if(s instanceof ze&&"||"==s.operator&&s.right.equivalent_to(u))return v(ze,e,{operator:"||",left:v(ze,e,{operator:"&&",left:e.condition,right:s.left}),right:u}).optimize(n);var f=n.in_boolean_context();return p(e.consequent)?d(e.alternative)?l(e.condition):v(ze,e,{operator:"||",left:l(e.condition),right:e.alternative}):d(e.consequent)?p(e.alternative)?l(e.condition.negate(n)):v(ze,e,{operator:"&&",left:l(e.condition.negate(n)),right:e.alternative}):p(e.alternative)?v(ze,e,{operator:"||",left:l(e.condition.negate(n)),right:e.consequent}):d(e.alternative)?v(ze,e,{operator:"&&",left:l(e.condition),right:e.consequent}):e;function l(e){return e.is_boolean()?e:v(Me,e,{operator:"!",expression:e.negate(n)})}function p(e){return e instanceof On||f&&e instanceof yn&&e.getValue()||e instanceof Me&&"!"==e.operator&&e.expression instanceof yn&&!e.expression.getValue()}function d(e){return e instanceof Tn||f&&e instanceof yn&&!e.getValue()||e instanceof Me&&"!"==e.operator&&e.expression instanceof yn&&e.expression.getValue()}}),e(Sn,function(e,n){if(n.in_boolean_context())return v(En,e,{value:+e.value});var t=n.parent();return n.option("booleans_as_integers")?(t instanceof ze&&("==="==t.operator||"!=="==t.operator)&&(t.operator=t.operator.replace(/=$/,"")),v(En,e,{value:+e.value})):n.option("booleans")?t instanceof ze&&("=="==t.operator||"!="==t.operator)?(n.warn("Non-strict equality against boolean: {operator} {value} [{file}:{line},{col}]",{operator:t.operator,value:e.value,file:t.start.file,line:t.start.line,col:t.start.col}),v(En,e,{value:+e.value})):v(Me,e,{operator:"!",expression:v(En,e,{value:1-e.value})}):e}),e(Oe,function(e,n){var t,i=e.expression,r=e.property;if(n.option("properties")){var o=r.evaluate(n);if(o!==r){if("string"==typeof o)if("undefined"==o)o=void 0;else(E=parseFloat(o)).toString()==o&&(o=E);r=e.property=Hn(r,A(o,r).transform(n));var a=""+o;if(st(a)&&a.length<=r.print_to_string().length+1)return v(Te,e,{expression:i,property:a}).optimize(n)}}e:if(n.option("arguments")&&i instanceof hn&&"arguments"==i.name&&1==i.definition().orig.length&&(t=i.scope)instanceof X&&t.uses_arguments&&!(t instanceof K)&&r instanceof En){for(var s=r.getValue(),u=Object.create(null),c=t.argnames,f=0;f<c.length;f++){if(!(c[f]instanceof rn))break e;var l=c[f].name;if(l in u)break e;u[l]=!0}var p=t.argnames[s];if(p&&n.has_directive("use strict")){var d=p.definition();(!n.option("reduce_vars")||d.assignments||d.orig.length>1)&&(p=null)}else if(!p&&!n.option("keep_fargs")&&s<t.argnames.length+5)for(;s>=t.argnames.length;)p=v(rn,t,{name:t.make_var_name("argument_"+t.argnames.length),scope:t}),t.argnames.push(p),t.enclosed.push(t.def_variable(p));if(p){var h=v(hn,e,p);return h.reference({}),delete p.__unused,h}}if(In(e,n.parent()))return e;if(o!==r){var m=e.flatten_object(a,n);m&&(i=e.expression=m.expression,r=e.property=m.property)}if(n.option("properties")&&n.option("side_effects")&&r instanceof En&&i instanceof He){s=r.getValue();var _=i.elements,g=_[s];e:if(rt(g,n)){for(var D=!0,y=[],b=_.length;--b>s;){(E=_[b].drop_side_effect_free(n))&&(y.unshift(E),D&&E.has_side_effects(n)&&(D=!1))}if(g instanceof G)break e;for(g=g instanceof Cn?v(kn,g):g,D||y.unshift(g);--b>=0;){var E;if((E=_[b])instanceof G)break e;(E=E.drop_side_effect_free(n))?y.unshift(E):s--}return D?(y.push(g),x(e,y).optimize(n)):v(Oe,e,{expression:v(He,i,{elements:y}),property:v(En,r,{value:s})})}}var w=e.evaluate(n);return w!==e?Rn(n,w=A(w,e).optimize(n),e):e}),X.DEFMETHOD("contains_this",function(){var e,n=this;return n.walk(new qn(function(t){return!!e||(t instanceof gn?e=!0:t!==n&&t instanceof Y&&!(t instanceof K)||void 0)})),e}),Se.DEFMETHOD("flatten_object",function(e,n){if(n.option("properties")){var t=n.option("unsafe_arrows")&&n.option("ecma")>=6,i=this.expression;if(i instanceof Re)for(var r=i.properties,o=r.length;--o>=0;){var a=r[o];if(""+(a instanceof Ye?a.key.name:a.key)==e){if(!D(r,function(e){return e instanceof Ue||t&&e instanceof Ye&&!e.is_generator}))break;if(!rt(a.value,n))break;return v(Oe,this,{expression:v(He,i,{elements:r.map(function(e){var n=e.value;n instanceof J&&(n=v(Z,n,n));var t=e.key;return t instanceof F&&!(t instanceof an)?x(e,[t,n]):n})}),property:v(En,this,{value:o})})}}}}),e(Te,function(e,n){if("arguments"!=e.property&&"caller"!=e.property||n.warn("Function.protoype.{prop} not supported [{file}:{line},{col}]",{prop:e.property,file:e.start.file,line:e.start.line,col:e.start.col}),In(e,n.parent()))return e;if(n.option("unsafe_proto")&&e.expression instanceof Te&&"prototype"==e.expression.property){var t=e.expression.expression;if(tn(t))switch(t.name){case"Array":e.expression=v(He,e.expression,{elements:[]});break;case"Function":e.expression=v(Z,e.expression,{argnames:[],body:[]});break;case"Number":e.expression=v(En,e.expression,{value:0});break;case"Object":e.expression=v(Re,e.expression,{properties:[]});break;case"RegExp":e.expression=v(wn,e.expression,{value:/t/});break;case"String":e.expression=v(bn,e.expression,{value:""})}}var i=e.flatten_object(e.property,n);if(i)return i.optimize(n);var r=e.evaluate(n);return r!==e?Rn(n,r=A(r,e).optimize(n),e):e}),e(He,ot),e(Re,ot),e(wn,ot),e(ae,function(e,n){return e.value&&zn(e.value,n)&&(e.value=null),e}),e(K,function(e,n){if(e.body instanceof F||(e=Xn(e,n)),n.option("arrows")&&1==e.body.length&&e.body[0]instanceof ae){var t=e.body[0].value;e.body=t||[]}return e}),e(Z,function(e,n){if(e=Xn(e,n),n.option("unsafe_arrows")&&n.option("ecma")>=6&&!e.name&&!e.is_generator&&!e.uses_arguments&&!e.pinned()){var t=!1;if(e.walk(new qn(function(e){return!!t||(e instanceof gn?(t=!0,!0):void 0)})),!t)return v(K,e,e).optimize(n)}return e}),e(We,function(e,n){return e}),e(Mn,function(e,n){return e.expression&&!e.is_star&&zn(e.expression,n)&&(e.expression=null),e}),e(te,function(e,n){if(!n.option("evaluate")||n.parent()instanceof ne)return e;for(var t=[],i=0;i<e.segments.length;i++){var r=e.segments[i];if(r instanceof F){var o=r.evaluate(n);if(o!==r&&(o+"").length<=r.print_to_string().length+"${}".length){t[t.length-1].value=t[t.length-1].value+o+e.segments[++i].value;continue}}t.push(r)}return e.segments=t,1==t.length?v(bn,e,t[0]):e}),e(ne,function(e,n){return e}),e(Pe,at),e(Ye,function(e,n){if(at(e,n),n.option("arrows")&&n.parent()instanceof Re&&!e.is_generator&&!e.value.uses_arguments&&!e.value.pinned()&&1==e.value.body.length&&e.value.body[0]instanceof ae&&e.value.body[0].value&&!e.value.contains_this()){var t=v(K,e.value,e.value);return t.async=e.async,t.is_generator=e.is_generator,v(Ue,e,{key:e.key instanceof an?e.key.name:e.key,value:t,quote:e.quote})}return e}),e(Ue,function(e,n){at(e,n);var t=n.option("unsafe_methods");if(t&&n.option("ecma")>=6&&(!(t instanceof RegExp)||t.test(e.key+""))){var i=e.key,r=e.value;if((r instanceof K&&Array.isArray(r.body)&&!r.contains_this()||r instanceof Z)&&!r.name)return v(Ye,e,{async:r.async,is_generator:r.is_generator,key:i instanceof F?i:v(an,e,{name:i}),value:v(J,r,r),quote:e.quote})}return e}),e(ee,function(e,n){if(1==n.option("pure_getters")&&n.option("unused")&&!e.is_array&&Array.isArray(e.names)&&!function(e){for(var n=[/^VarDef$/,/^(Const|Let|Var)$/,/^Export$/],t=0,i=0,r=n.length;t<r;i++){var o=e.parent(i);if(!o)return!1;if(0!==t||"Destructuring"!=o.TYPE){if(!n[t].test(o.TYPE))return!1;t++}}return!0}(n)){for(var t=[],i=0;i<e.names.length;i++){var r=e.names[i];r instanceof Ue&&"string"==typeof r.key&&r.value instanceof Ke&&!o(n,r.value.definition())||t.push(r)}t.length!=e.names.length&&(e.names=t)}return e;function o(e,n){return!!n.references.length||!!n.global&&(!e.toplevel.vars||!!e.top_retain&&e.top_retain(n))}})}(),function(){var n=function(e){for(var n=!0,t=0;t<e.length;t++)n&&e[t]instanceof k&&e[t].body instanceof bn?e[t]=new B({start:e[t].start,end:e[t].end,value:e[t].body.value}):!n||e[t]instanceof k&&e[t].body instanceof bn||(n=!1);return e},t={Program:function(e){return new W({start:r(e),end:o(e),body:n(e.body.map(u))})},ArrayPattern:function(e){return new ee({start:r(e),end:o(e),names:e.elements.map(function(e){return null===e?new Cn:u(e)}),is_array:!0})},ObjectPattern:function(e){return new ee({start:r(e),end:o(e),names:e.properties.map(u),is_array:!1})},AssignmentPattern:function(e){return new ze({start:r(e),end:o(e),left:u(e.left),operator:"=",right:u(e.right)})},SpreadElement:function(e){return new G({start:r(e),end:o(e),expression:u(e.argument)})},RestElement:function(e){return new G({start:r(e),end:o(e),expression:u(e.argument)})},TemplateElement:function(e){return new ie({start:r(e),end:o(e),value:e.value.cooked,raw:e.value.raw})},TemplateLiteral:function(e){for(var n=[],t=0;t<e.quasis.length;t++)n.push(u(e.quasis[t])),e.expressions[t]&&n.push(u(e.expressions[t]));return new te({start:r(e),end:o(e),segments:n})},TaggedTemplateExpression:function(e){return new ne({start:r(e),end:o(e),template_string:u(e.quasi),prefix:u(e.tag)})},FunctionDeclaration:function(e){return new Q({start:r(e),end:o(e),name:u(e.id),argnames:e.params.map(u),is_generator:e.generator,async:e.async,body:n(u(e.body).body)})},FunctionExpression:function(e){return new Z({start:r(e),end:o(e),name:u(e.id),argnames:e.params.map(u),is_generator:e.generator,async:e.async,body:n(u(e.body).body)})},ArrowFunctionExpression:function(e){return new K({start:r(e),end:o(e),argnames:e.params.map(u),body:u(e.body),async:e.async})},ExpressionStatement:function(e){return new S({start:r(e),end:o(e),body:u(e.expression)})},TryStatement:function(e){var n=e.handlers||[e.handler];if(n.length>1||e.guardedHandlers&&e.guardedHandlers.length)throw new Error("Multiple catch clauses are not supported.");return new _e({start:r(e),end:o(e),body:u(e.block).body,bcatch:u(n[0]),bfinally:e.finalizer?new ge(u(e.finalizer)):null})},Property:function(e){var n=e.key,t={start:r(n||e.value),end:o(e.value),key:"Identifier"==n.type?n.name:n.value,value:u(e.value)};return e.computed&&(t.key=u(e.key)),e.method?(t.is_generator=e.value.generator,t.async=e.value.async,e.computed?t.key=u(e.key):t.key=new an({name:t.key}),new Ye(t)):"init"==e.kind?("Identifier"!=n.type&&"Literal"!=n.type&&(t.key=u(n)),new Ue(t)):("string"!=typeof t.key&&"number"!=typeof t.key||(t.key=new an({name:t.key})),t.value=new J(t.value),"get"==e.kind?new Ve(t):"set"==e.kind?new Le(t):"method"==e.kind?(t.async=e.value.async,t.is_generator=e.value.generator,t.quote=e.computed?'"':null,new Ye(t)):void 0)},MethodDefinition:function(e){var n={start:r(e),end:o(e),key:e.computed?u(e.key):new an({name:e.key.name||e.key.value}),value:u(e.value),static:e.static};return"get"==e.kind?new Ve(n):"set"==e.kind?new Le(n):(n.is_generator=e.value.generator,n.async=e.value.async,new Ye(n))},ArrayExpression:function(e){return new He({start:r(e),end:o(e),elements:e.elements.map(function(e){return null===e?new Cn:u(e)})})},ObjectExpression:function(e){return new Re({start:r(e),end:o(e),properties:e.properties.map(function(e){return"SpreadElement"===e.type?u(e):(e.type="Property",u(e))})})},SequenceExpression:function(e){return new Be({start:r(e),end:o(e),expressions:e.expressions.map(u)})},MemberExpression:function(e){return new(e.computed?Oe:Te)({start:r(e),end:o(e),property:e.computed?u(e.property):e.property.name,expression:u(e.object)})},SwitchCase:function(e){return new(e.test?me:he)({start:r(e),end:o(e),expression:u(e.test),body:e.consequent.map(u)})},VariableDeclaration:function(e){return new("const"===e.kind?Ee:"let"===e.kind?be:ye)({start:r(e),end:o(e),definitions:e.declarations.map(u)})},ImportDeclaration:function(e){var n=null,t=null;return e.specifiers.forEach(function(e){"ImportSpecifier"===e.type?(t||(t=[]),t.push(new we({start:r(e),end:o(e),foreign_name:u(e.imported),name:u(e.local)}))):"ImportDefaultSpecifier"===e.type?n=u(e.local):"ImportNamespaceSpecifier"===e.type&&(t||(t=[]),t.push(new we({start:r(e),end:o(e),foreign_name:new pn({name:"*"}),name:u(e.local)})))}),new xe({start:r(e),end:o(e),imported_name:n,imported_names:t,module_name:u(e.source)})},ExportAllDeclaration:function(e){return new Ae({start:r(e),end:o(e),exported_names:[new we({name:new _n({name:"*"}),foreign_name:new _n({name:"*"})})],module_name:u(e.source)})},ExportNamedDeclaration:function(e){return new Ae({start:r(e),end:o(e),exported_definition:u(e.declaration),exported_names:e.specifiers&&e.specifiers.length?e.specifiers.map(function(e){return new we({foreign_name:u(e.exported),name:u(e.local)})}):null,module_name:u(e.source)})},ExportDefaultDeclaration:function(e){return new Ae({start:r(e),end:o(e),exported_value:u(e.declaration),is_default:!0})},Literal:function(e){var n=e.value,t={start:r(e),end:o(e)};if(null===n)return new An(t);var i=e.regex;if(i&&i.pattern){t.value=new RegExp(i.pattern,i.flags);var a=t.value.toString();return t.value.raw_source=i.flags?a.substring(0,a.length-i.flags.length)+i.flags:a,new wn(t)}if(i)return t.value=e.regex&&e.raw?e.raw:n,new wn(t);switch(typeof n){case"string":return t.value=n,new bn(t);case"number":return t.value=n,new En(t);case"boolean":return new(n?On:Tn)(t)}},MetaProperty:function(e){if("new"===e.meta.name&&"target"===e.property.name)return new Ze({start:r(e),end:o(e)})},Identifier:function(e){var n=s[s.length-2];return new("LabeledStatement"==n.type?dn:"VariableDeclarator"==n.type&&n.id===e?"const"==n.kind?nn:"let"==n.kind?tn:Qe:/Import.*Specifier/.test(n.type)?n.local===e?ln:pn:"ExportSpecifier"==n.type?n.local===e?mn:_n:"FunctionExpression"==n.type?n.id===e?sn:rn:"FunctionDeclaration"==n.type?n.id===e?on:rn:"ArrowFunctionExpression"==n.type?-1!==n.params.indexOf(e)?rn:hn:"ClassExpression"==n.type?n.id===e?cn:hn:"Property"==n.type?n.key===e&&n.computed||n.value===e?hn:an:"ClassDeclaration"==n.type?n.id===e?un:hn:"MethodDefinition"==n.type?n.computed?hn:an:"CatchClause"==n.type?fn:"BreakStatement"==n.type||"ContinueStatement"==n.type?vn:hn)({start:r(e),end:o(e),name:e.name})}};function i(e){if("Literal"==e.type)return null!=e.raw?e.raw:e.value+""}function r(e){var n=e.loc,t=n&&n.start,r=e.range;return new A({file:n&&n.source,line:t&&t.line,col:t&&t.column,pos:r?r[0]:e.start,endline:t&&t.line,endcol:t&&t.column,endpos:r?r[0]:e.start,raw:i(e)})}function o(e){var n=e.loc,t=n&&n.end,r=e.range;return new A({file:n&&n.source,line:t&&t.line,col:t&&t.column,pos:r?r[1]:e.end,endline:t&&t.line,endcol:t&&t.column,endpos:r?r[1]:e.end,raw:i(e)})}function a(n,i,a){var s="function From_Moz_"+n+"(M){\n";s+="return new U2."+i.name+"({\nstart: my_start_token(M),\nend: my_end_token(M)";var f="function To_Moz_"+n+"(M){\n";f+="return {\ntype: "+JSON.stringify(n),a&&a.split(/\s*,\s*/).forEach(function(e){var n=/([a-z0-9$_]+)(=|@|>|%)([a-z0-9$_]+)/i.exec(e);if(!n)throw new Error("Can't understand property map: "+e);var t=n[1],i=n[2],r=n[3];switch(s+=",\n"+r+": ",f+=",\n"+t+": ",i){case"@":s+="M."+t+".map(from_moz)",f+="M."+r+".map(to_moz)";break;case">":s+="from_moz(M."+t+")",f+="to_moz(M."+r+")";break;case"=":s+="M."+t,f+="M."+r;break;case"%":s+="from_moz(M."+t+").body",f+="to_moz_block(M)";break;default:throw new Error("Can't understand operator in propmap: "+e)}}),s+="\n})\n}",f+="\n}\n}",s=new Function("U2","my_start_token","my_end_token","from_moz","return("+s+")")(e,r,o,u),f=new Function("to_moz","to_moz_block","to_moz_scope","return("+f+")")(l,d,h),t[n]=s,c(i,f)}t.UpdateExpression=t.UnaryExpression=function(e){return new(("prefix"in e?e.prefix:"UnaryExpression"==e.type)?Me:qe)({start:r(e),end:o(e),operator:e.operator,expression:u(e.argument)})},t.ClassDeclaration=t.ClassExpression=function(e){return new("ClassDeclaration"===e.type?Ge:Xe)({start:r(e),end:o(e),name:u(e.id),extends:u(e.superClass),properties:e.body.body.map(u)})},a("EmptyStatement",q),a("BlockStatement",M,"body@body"),a("IfStatement",le,"test>condition, consequent>body, alternate>alternative"),a("LabeledStatement",N,"label>label, body>body"),a("BreakStatement",ce,"label>label"),a("ContinueStatement",fe,"label>label"),a("WithStatement",V,"object>expression, body>body"),a("SwitchStatement",pe,"discriminant>expression, cases@body"),a("ReturnStatement",ae,"argument>value"),a("ThrowStatement",se,"argument>value"),a("WhileStatement",R,"test>condition, body>body"),a("DoWhileStatement",H,"test>condition, body>body"),a("ForStatement",P,"init>init, test>condition, update>step, body>body"),a("ForInStatement",U,"left>init, right>object, body>body"),a("ForOfStatement",L,"left>init, right>object, body>body, await=await"),a("AwaitExpression",$n,"argument>expression"),a("YieldExpression",Mn,"argument>expression, delegate=is_star"),a("DebuggerStatement",C),a("VariableDeclarator",Fe,"id>name, init>value"),a("CatchClause",ve,"param>argname, body%body"),a("ThisExpression",gn),a("Super",Dn),a("BinaryExpression",ze,"operator=operator, left>left, right>right"),a("LogicalExpression",ze,"operator=operator, left>left, right>right"),a("AssignmentExpression",je,"operator=operator, left>left, right>right"),a("ConditionalExpression",Ne,"test>condition, consequent>consequent, alternate>alternative"),a("NewExpression",Ce,"callee>expression, arguments@args"),a("CallExpression",ke,"callee>expression, arguments@args"),c(W,function(e){return h("Program",e)}),c(G,function(e,n){return{type:p()?"RestElement":"SpreadElement",argument:l(e.expression)}}),c(ne,function(e){return{type:"TaggedTemplateExpression",tag:l(e.prefix),quasi:l(e.template_string)}}),c(te,function(e){for(var n=[],t=[],i=0;i<e.segments.length;i++)i%2!=0?t.push(l(e.segments[i])):n.push({type:"TemplateElement",value:{raw:e.segments[i].raw,cooked:e.segments[i].value},tail:i===e.segments.length-1});return{type:"TemplateLiteral",quasis:n,expressions:t}}),c(Q,function(e){return{type:"FunctionDeclaration",id:l(e.name),params:e.argnames.map(l),generator:e.is_generator,async:e.async,body:h("BlockStatement",e)}}),c(Z,function(e,n){var t=void 0!==n.is_generator?n.is_generator:e.is_generator;return{type:"FunctionExpression",id:l(e.name),params:e.argnames.map(l),generator:t,async:e.async,body:h("BlockStatement",e)}}),c(K,function(e){var n=e.body instanceof Array?{type:"BlockStatement",body:e.body.map(l)}:l(e.body);return{type:"ArrowFunctionExpression",params:e.argnames.map(l),async:e.async,body:n}}),c(ee,function(e){return e.is_array?{type:"ArrayPattern",elements:e.names.map(l)}:{type:"ObjectPattern",properties:e.names.map(l)}}),c(B,function(e){return{type:"ExpressionStatement",expression:{type:"Literal",value:e.value}}}),c(S,function(e){return{type:"ExpressionStatement",expression:l(e.body)}}),c(de,function(e){return{type:"SwitchCase",test:l(e.expression),consequent:e.body.map(l)}}),c(_e,function(e){return{type:"TryStatement",block:d(e),handler:l(e.bcatch),guardedHandlers:[],finalizer:l(e.bfinally)}}),c(ve,function(e){return{type:"CatchClause",param:l(e.argname),guard:null,body:d(e)}}),c(De,function(e){return{type:"VariableDeclaration",kind:e instanceof Ee?"const":e instanceof be?"let":"var",declarations:e.definitions.map(l)}}),c(Ae,function(e){return e.exported_names?"*"===e.exported_names[0].name.name?{type:"ExportAllDeclaration",source:l(e.module_name)}:{type:"ExportNamedDeclaration",specifiers:e.exported_names.map(function(e){return{type:"ExportSpecifier",exported:l(e.foreign_name),local:l(e.name)}}),declaration:l(e.exported_definition),source:l(e.module_name)}:{type:e.is_default?"ExportDefaultDeclaration":"ExportNamedDeclaration",declaration:l(e.exported_value||e.exported_definition)}}),c(xe,function(e){var n=[];return e.imported_name&&n.push({type:"ImportDefaultSpecifier",local:l(e.imported_name)}),e.imported_names&&"*"===e.imported_names[0].foreign_name.name?n.push({type:"ImportNamespaceSpecifier",local:l(e.imported_names[0].name)}):e.imported_names&&e.imported_names.forEach(function(e){n.push({type:"ImportSpecifier",local:l(e.name),imported:l(e.foreign_name)})}),{type:"ImportDeclaration",specifiers:n,source:l(e.module_name)}}),c(Be,function(e){return{type:"SequenceExpression",expressions:e.expressions.map(l)}}),c(Se,function(e){var n=e instanceof Oe;return{type:"MemberExpression",object:l(e.expression),computed:n,property:n?l(e.property):{type:"Identifier",name:e.property}}}),c($e,function(e){return{type:"++"==e.operator||"--"==e.operator?"UpdateExpression":"UnaryExpression",operator:e.operator,prefix:e instanceof Me,argument:l(e.expression)}}),c(ze,function(e){return"="==e.operator&&p()?{type:"AssignmentPattern",left:l(e.left),right:l(e.right)}:{type:"&&"==e.operator||"||"==e.operator?"LogicalExpression":"BinaryExpression",left:l(e.left),operator:e.operator,right:l(e.right)}}),c(He,function(e){return{type:"ArrayExpression",elements:e.elements.map(l)}}),c(Re,function(e){return{type:"ObjectExpression",properties:e.properties.map(l)}}),c(Pe,function(e,n){var t,i=e.key instanceof F?l(e.key):{type:"Identifier",value:e.key};"number"==typeof e.key&&(i={type:"Literal",value:Number(e.key)}),"string"==typeof e.key&&(i={type:"Identifier",name:e.key});var r="string"==typeof e.key||"number"==typeof e.key,o=!r&&(!(e.key instanceof Je)||e.key instanceof hn);return e instanceof Ue?(t="init",o=!r):e instanceof Ve?t="get":e instanceof Le&&(t="set"),n instanceof We?{type:"MethodDefinition",computed:o,kind:t,static:e.static,key:l(e.key),value:l(e.value)}:{type:"Property",computed:o,kind:t,key:i,value:l(e.value)}}),c(Ye,function(e,n){return n instanceof Re?{type:"Property",computed:!(e.key instanceof Je)||e.key instanceof hn,kind:"init",method:!0,shorthand:!1,key:l(e.key),value:l(e.value)}:{type:"MethodDefinition",computed:!(e.key instanceof Je)||e.key instanceof hn,kind:"constructor"===e.key?"constructor":"method",static:e.static,key:l(e.key),value:l(e.value)}}),c(We,function(e){return{type:e instanceof Xe?"ClassExpression":"ClassDeclaration",superClass:l(e.extends),id:e.name?l(e.name):null,body:{type:"ClassBody",body:e.properties.map(l)}}}),c(Ze,function(e){return{type:"MetaProperty",meta:{type:"Identifier",name:"new"},property:{type:"Identifier",name:"target"}}}),c(Je,function(e,n){if(e instanceof an&&n.quote)return{type:"Literal",value:e.name};var t=e.definition();return{type:"Identifier",name:t?t.mangled_name||t.name:e.name}}),c(wn,function(e){var n=e.value.source,t=e.value.toString().match(/[gimuys]*$/)[0];return{type:"Literal",value:new RegExp(n,t),raw:e.value.raw_source,regex:{pattern:n,flags:t}}}),c(yn,function(e){var n=e.value;return"number"==typeof n&&(n<0||0===n&&1/n<0)?{type:"UnaryExpression",operator:"-",prefix:!0,argument:{type:"Literal",value:-n,raw:e.start.raw}}:{type:"Literal",value:n,raw:e.start.raw}}),c(xn,function(e){return{type:"Identifier",name:String(e.value)}}),Sn.DEFMETHOD("to_mozilla_ast",yn.prototype.to_mozilla_ast),An.DEFMETHOD("to_mozilla_ast",yn.prototype.to_mozilla_ast),Cn.DEFMETHOD("to_mozilla_ast",function(){return null}),$.DEFMETHOD("to_mozilla_ast",M.prototype.to_mozilla_ast),X.DEFMETHOD("to_mozilla_ast",Z.prototype.to_mozilla_ast);var s=null;function u(e){s.push(e);var n=null!=e?t[e.type](e):null;return s.pop(),n}function c(e,n){e.DEFMETHOD("to_mozilla_ast",function(e){return t=this,i=n(this,e),r=t.start,o=t.end,null!=r.pos&&null!=o.endpos&&(i.range=[r.pos,o.endpos]),r.line&&(i.loc={start:{line:r.line,column:r.col},end:o.endline?{line:o.endline,column:o.endcol}:null},r.file&&(i.loc.source=r.file)),i;var t,i,r,o})}F.from_mozilla_ast=function(e){var n=s;s=[];var t=u(e);return s=n,t};var f=null;function l(e){null===f&&(f=[]),f.push(e);var n=null!=e?e.to_mozilla_ast(f[f.length-2]):null;return f.pop(),0===f.length&&(f=null),n}function p(){for(var e=f.length;e--;)if(f[e]instanceof ee)return!0;return!1}function d(e){return{type:"BlockStatement",body:e.body.map(l)}}function h(e,n){var t=n.body.map(l);return n.body[0]instanceof S&&n.body[0].body instanceof bn&&t.unshift(l(new q(n.body[0]))),{type:e,body:t}}}();var St="undefined"==typeof atob?function(e){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(e,"base64").toString();if("string"!=typeof e)throw new Errror('"b64" must be a string');return new Buffer(e,"base64").toString()}:atob,Tt="undefined"==typeof btoa?function(e){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(e).toString("base64");if("string"!=typeof e)throw new Errror('"str" must be a string');return new Buffer(e).toString("base64")}:btoa;function Ot(e,n,t){n[e]&&t.forEach(function(t){n[t]&&("object"!=typeof n[t]&&(n[t]={}),e in n[t]||(n[t][e]=n[e]))})}function $t(e){e&&("props"in e?e.props instanceof y||(e.props=y.fromObject(e.props)):e.props=new y)}function Mt(e){return{props:e.props.toObject()}}e.Dictionary=y,e.minify=function(e,n){var t,i,r=F.warn_function;try{var o,s=(n=a(n,{compress:{},ecma:void 0,enclose:!1,ie8:!1,keep_classnames:void 0,keep_fnames:!1,mangle:{},module:!1,nameCache:null,output:{},parse:{},rename:void 0,safari10:!1,sourceMap:!1,timings:!1,toplevel:!1,warnings:!1,wrap:!1},!0)).timings&&{start:Date.now()};void 0===n.keep_classnames&&(n.keep_classnames=n.keep_fnames),void 0===n.rename&&(n.rename=n.compress&&n.mangle),Ot("ecma",n,["parse","compress","output"]),Ot("ie8",n,["compress","mangle","output"]),Ot("keep_classnames",n,["compress","mangle"]),Ot("keep_fnames",n,["compress","mangle"]),Ot("module",n,["parse","compress","mangle"]),Ot("safari10",n,["mangle","output"]),Ot("toplevel",n,["compress","mangle"]),Ot("warnings",n,["compress"]),n.mangle&&(n.mangle=a(n.mangle,{cache:n.nameCache&&(n.nameCache.vars||{}),eval:!1,ie8:!1,keep_classnames:!1,keep_fnames:!1,module:!1,properties:!1,reserved:[],safari10:!1,toplevel:!1},!0),n.mangle.properties&&("object"!=typeof n.mangle.properties&&(n.mangle.properties={}),n.mangle.properties.keep_quoted&&(o=n.mangle.properties.reserved,Array.isArray(o)||(o=[]),n.mangle.properties.reserved=o),!n.nameCache||"cache"in n.mangle.properties||(n.mangle.properties.cache=n.nameCache.props||{})),$t(n.mangle.cache),$t(n.mangle.properties.cache)),n.sourceMap&&(n.sourceMap=a(n.sourceMap,{content:null,filename:null,includeSources:!1,root:null,url:null},!0));var u,c=[];if(n.warnings&&!F.warn_function&&(F.warn_function=function(e){c.push(e)}),s&&(s.parse=Date.now()),e instanceof W)u=e;else{for(var f in"string"==typeof e&&(e=[e]),n.parse=n.parse||{},n.parse.toplevel=null,e)if(b(e,f)&&(n.parse.filename=f,n.parse.toplevel=gt(e[f],n.parse),n.sourceMap&&"inline"==n.sourceMap.content)){if(Object.keys(e).length>1)throw new Error("inline source map only works with singular input");n.sourceMap.content=(t=e[f],i=void 0,(i=/\n\/\/# sourceMappingURL=data:application\/json(;.*?)?;base64,(.*)/.exec(t))?St(i[2]):(F.warn("inline source map not found"),null))}u=n.parse.toplevel}o&&kt(u,o),n.wrap&&(u=u.wrap_commonjs(n.wrap)),n.enclose&&(u=u.wrap_enclose(n.enclose)),s&&(s.rename=Date.now()),s&&(s.compress=Date.now()),n.compress&&(u=new Ft(n.compress).compress(u)),s&&(s.scope=Date.now()),n.mangle&&u.figure_out_scope(n.mangle),s&&(s.mangle=Date.now()),n.mangle&&(Et.reset(),u.compute_char_frequency(n.mangle),u.mangle_names(n.mangle)),s&&(s.properties=Date.now()),n.mangle&&n.mangle.properties&&(u=Bt(u,n.mangle.properties)),s&&(s.output=Date.now());var l={};if(n.output.ast&&(l.ast=u),!b(n.output,"code")||n.output.code){if(n.sourceMap&&("string"==typeof n.sourceMap.content&&(n.sourceMap.content=JSON.parse(n.sourceMap.content)),n.output.source_map=function(e){e=a(e,{file:null,root:null,orig:null,orig_line_diff:0,dest_line_diff:0});var n=new(require("source-map").SourceMapGenerator)({file:e.file,sourceRoot:e.root}),t=e.orig&&new(require("source-map").SourceMapConsumer)(e.orig);return t&&Array.isArray(e.orig.sources)&&t._sources.toArray().forEach(function(e){var i=t.sourceContentFor(e,!0);i&&n.setSourceContent(e,i)}),{add:function(i,r,o,a,s,u){if(t){var c=t.originalPositionFor({line:a,column:s});if(null===c.source)return;i=c.source,a=c.line,s=c.column,u=c.name||u}n.addMapping({generated:{line:r+e.dest_line_diff,column:o},original:{line:a+e.orig_line_diff,column:s},source:i,name:u})},get:function(){return n},toString:function(){return JSON.stringify(n.toJSON())}}}({file:n.sourceMap.filename,orig:n.sourceMap.content,root:n.sourceMap.root}),n.sourceMap.includeSources)){if(e instanceof W)throw new Error("original source content unavailable");for(var f in e)b(e,f)&&n.output.source_map.get().setSourceContent(f,e[f])}delete n.output.ast,delete n.output.code;var p=At(n.output);u.print(p),l.code=p.get(),n.sourceMap&&(l.map=n.output.source_map.toString(),"inline"==n.sourceMap.url?l.code+="\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,"+Tt(l.map):n.sourceMap.url&&(l.code+="\n//# sourceMappingURL="+n.sourceMap.url))}return n.nameCache&&n.mangle&&(n.mangle.cache&&(n.nameCache.vars=Mt(n.mangle.cache)),n.mangle.properties&&n.mangle.properties.cache&&(n.nameCache.props=Mt(n.mangle.properties.cache))),s&&(s.end=Date.now(),l.timings={parse:.001*(s.rename-s.parse),rename:.001*(s.compress-s.rename),compress:.001*(s.scope-s.compress),scope:.001*(s.mangle-s.scope),mangle:.001*(s.properties-s.mangle),properties:.001*(s.output-s.properties),output:.001*(s.end-s.output),total:.001*(s.end-s.start)}),c.length&&(l.warnings=c),l}catch(e){return{error:e}}finally{F.warn_function=r}},e.parse=gt,e.push_uniq=h,e.OutputStream=At,e.TreeTransformer=Dt,e.TreeWalker=qn,e.string_template=m,e.Compressor=Ft,e.defaults=a,e.base54=Et,e.mangle_properties=Bt,e.reserve_quoted_keys=kt,e.to_ascii=St}("undefined"!=typeof module?module.exports:Terser={});
44
+ "use strict";function n(e){return e.split("")}function t(e,n){return n.indexOf(e)>=0}function i(e,n){for(var t=0,i=n.length;t<i;++t)if(e(n[t]))return n[t]}function r(e){Object.defineProperty(e.prototype,"stack",{get:function(){var e=new Error(this.message);e.name=this.name;try{throw e}catch(e){return e.stack}}})}function o(e,n){this.message=e,this.defs=n}function a(e,n,t){!0===e&&(e={});var i=e||{};if(t)for(var r in i)b(i,r)&&!b(n,r)&&o.croak("`"+r+"` is not a supported option",n);for(var r in n)b(n,r)&&(i[r]=e&&b(e,r)?e[r]:n[r]);return i}function s(e,n){var t=0;for(var i in n)b(n,i)&&(e[i]=n[i],t++);return t}function u(){}function c(){return!1}function f(){return!0}function l(){return this}function p(){return null}o.prototype=Object.create(Error.prototype),o.prototype.constructor=o,o.prototype.name="DefaultsError",r(o),o.croak=function(e,n){throw new o(e,n)};var d=function(){function e(e,o,a){var s,u=[],c=[];function f(){var f=o(e[s],s),l=f instanceof r;return l&&(f=f.v),f instanceof t?(f=f.v)instanceof i?c.push.apply(c,a?f.v.slice().reverse():f.v):c.push(f):f!==n&&(f instanceof i?u.push.apply(u,a?f.v.slice().reverse():f.v):u.push(f)),l}if(e instanceof Array)if(a){for(s=e.length;--s>=0&&!f(););u.reverse(),c.reverse()}else for(s=0;s<e.length&&!f();++s);else for(s in e)if(b(e,s)&&f())break;return c.concat(u)}e.at_top=function(e){return new t(e)},e.splice=function(e){return new i(e)},e.last=function(e){return new r(e)};var n=e.skip={};function t(e){this.v=e}function i(e){this.v=e}function r(e){this.v=e}return e}();function h(e,n){e.indexOf(n)<0&&e.push(n)}function m(e,n){return e.replace(/\{(.+?)\}/g,function(e,t){return n&&n[t]})}function _(e,n){for(var t=e.length;--t>=0;)e[t]===n&&e.splice(t,1)}function v(e,n){if(e.length<2)return e.slice();return function e(t){if(t.length<=1)return t;var i=Math.floor(t.length/2),r=t.slice(0,i),o=t.slice(i);return function(e,t){for(var i=[],r=0,o=0,a=0;r<e.length&&o<t.length;)n(e[r],t[o])<=0?i[a++]=e[r++]:i[a++]=t[o++];return r<e.length&&i.push.apply(i,e.slice(r)),o<t.length&&i.push.apply(i,t.slice(o)),i}(r=e(r),o=e(o))}(e)}function g(e){e instanceof Array||(e=e.split(" "));var n="",t=[];e:for(var i=0;i<e.length;++i){for(var r=0;r<t.length;++r)if(t[r][0].length==e[i].length){t[r].push(e[i]);continue e}t.push([e[i]])}function o(e){return JSON.stringify(e).replace(/[\u2028\u2029]/g,function(e){switch(e){case"\u2028":return"\\u2028";case"\u2029":return"\\u2029"}return e})}function a(e){if(1==e.length)return n+="return str === "+o(e[0])+";";n+="switch(str){";for(var t=0;t<e.length;++t)n+="case "+o(e[t])+":";n+="return true}return false;"}if(t.length>3){t.sort(function(e,n){return n.length-e.length}),n+="switch(str.length){";for(i=0;i<t.length;++i){var s=t[i];n+="case "+s[0].length+":",a(s)}n+="}"}else a(e);return new Function("str",n)}function D(e,n){for(var t=e.length;--t>=0;)if(!n(e[t]))return!1;return!0}function y(){this._values=Object.create(null),this._size=0}function b(e,n){return Object.prototype.hasOwnProperty.call(e,n)}function E(e){for(var n,t=e.parent(-1),i=0;n=e.parent(i);i++){if(n instanceof k&&n.body===t)return!0;if(!(n instanceof Be&&n.expressions[0]===t||"Call"==n.TYPE&&n.expression===t||n instanceof Te&&n.expression===t||n instanceof Oe&&n.expression===t||n instanceof Ne&&n.condition===t||n instanceof ze&&n.left===t||n instanceof qe&&n.expression===t))return!1;t=n}}function w(e,n){return!0===e||e instanceof RegExp&&e.test(n)}function x(n,t,i,r){arguments.length<4&&(r=F);var o=t=t?t.split(/\s+/):[];r&&r.PROPS&&(t=t.concat(r.PROPS));for(var a="return function AST_"+n+"(props){ if (props) { ",s=t.length;--s>=0;)a+="this."+t[s]+" = props."+t[s]+";";var u=r&&new r;(u&&u.initialize||i&&i.initialize)&&(a+="this.initialize();"),a+="}}";var c=new Function(a)();if(u&&(c.prototype=u,c.BASE=r),r&&r.SUBCLASSES.push(c),c.prototype.CTOR=c,c.PROPS=t||null,c.SELF_PROPS=o,c.SUBCLASSES=[],n&&(c.prototype.TYPE=c.TYPE=n),i)for(s in i)b(i,s)&&(/^\$/.test(s)?c[s.substr(1)]=i[s]:c.prototype[s]=i[s]);return c.DEFMETHOD=function(e,n){this.prototype[e]=n},void 0!==e&&(e["AST_"+n]=c),c}y.prototype={set:function(e,n){return this.has(e)||++this._size,this._values["$"+e]=n,this},add:function(e,n){return this.has(e)?this.get(e).push(n):this.set(e,[n]),this},get:function(e){return this._values["$"+e]},del:function(e){return this.has(e)&&(--this._size,delete this._values["$"+e]),this},has:function(e){return"$"+e in this._values},each:function(e){for(var n in this._values)e(this._values[n],n.substr(1))},size:function(){return this._size},map:function(e){var n=[];for(var t in this._values)n.push(e(this._values[t],t.substr(1)));return n},clone:function(){var e=new y;for(var n in this._values)e._values[n]=this._values[n];return e._size=this._size,e},toObject:function(){return this._values}},y.fromObject=function(e){var n=new y;return n._size=s(n._values,e),n};var A=x("Token","type value line col pos endline endcol endpos nlb comments_before comments_after file raw",{},null),F=x("Node","start end",{_clone:function(e){if(e){var n=this.clone();return n.transform(new Dt(function(e){if(e!==n)return e.clone(!0)}))}return new this.CTOR(this)},clone:function(e){return this._clone(e)},$documentation:"Base class of all AST nodes",$propdoc:{start:"[AST_Token] The first token of this node",end:"[AST_Token] The last token of this node"},_walk:function(e){return e._visit(this)},walk:function(e){return this._walk(e)}},null);F.warn_function=null,F.warn=function(e,n){F.warn_function&&F.warn_function(m(e,n))};var k=x("Statement",null,{$documentation:"Base class of all statements"}),C=x("Debugger",null,{$documentation:"Represents a debugger statement"},k),B=x("Directive","value quote",{$documentation:'Represents a directive, like "use strict";',$propdoc:{value:"[string] The value of this directive as a plain string (it's not an AST_String!)",quote:"[string] the original quote character"}},k),S=x("SimpleStatement","body",{$documentation:"A statement consisting of an expression, i.e. a = 1 + 2",$propdoc:{body:"[AST_Node] an expression node (should not be instanceof AST_Statement)"},_walk:function(e){return e._visit(this,function(){this.body._walk(e)})}},k);function T(e,n){var t=e.body;if(t instanceof F)t._walk(n);else for(var i=0,r=t.length;i<r;i++)t[i]._walk(n)}function O(e){var n=this._clone(e);return this.block_scope&&(n.block_scope=this.block_scope.clone()),n}var $=x("Block","body block_scope",{$documentation:"A body of statements (usually braced)",$propdoc:{body:"[AST_Statement*] an array of statements",block_scope:"[AST_Scope] the block scope"},_walk:function(e){return e._visit(this,function(){T(this,e)})},clone:O},k),M=x("BlockStatement",null,{$documentation:"A block statement"},$),q=x("EmptyStatement",null,{$documentation:"The empty statement (empty block or simply a semicolon)"},k),z=x("StatementWithBody","body",{$documentation:"Base class for all statements that contain one nested body: `For`, `ForIn`, `Do`, `While`, `With`",$propdoc:{body:"[AST_Statement] the body; this should always be present, even if it's an AST_EmptyStatement"}},k),N=x("LabeledStatement","label",{$documentation:"Statement with a label",$propdoc:{label:"[AST_Label] a label definition"},_walk:function(e){return e._visit(this,function(){this.label._walk(e),this.body._walk(e)})},clone:function(e){var n=this._clone(e);if(e){var t=n.label,i=this.label;n.walk(new qn(function(e){e instanceof ue&&e.label&&e.label.thedef===i&&(e.label.thedef=t,t.references.push(e))}))}return n}},z),j=x("IterationStatement","block_scope",{$documentation:"Internal class. All loops inherit from it.",$propdoc:{block_scope:"[AST_Scope] the block scope for this iteration statement."},clone:O},z),I=x("DWLoop","condition",{$documentation:"Base class for do/while statements",$propdoc:{condition:"[AST_Node] the loop condition. Should not be instanceof AST_Statement"}},j),H=x("Do",null,{$documentation:"A `do` statement",_walk:function(e){return e._visit(this,function(){this.body._walk(e),this.condition._walk(e)})}},I),R=x("While",null,{$documentation:"A `while` statement",_walk:function(e){return e._visit(this,function(){this.condition._walk(e),this.body._walk(e)})}},I),P=x("For","init condition step",{$documentation:"A `for` statement",$propdoc:{init:"[AST_Node?] the `for` initialization code, or null if empty",condition:"[AST_Node?] the `for` termination clause, or null if empty",step:"[AST_Node?] the `for` update clause, or null if empty"},_walk:function(e){return e._visit(this,function(){this.init&&this.init._walk(e),this.condition&&this.condition._walk(e),this.step&&this.step._walk(e),this.body._walk(e)})}},j),U=x("ForIn","init object",{$documentation:"A `for ... in` statement",$propdoc:{init:"[AST_Node] the `for/in` initialization code",object:"[AST_Node] the object that we're looping through"},_walk:function(e){return e._visit(this,function(){this.init._walk(e),this.object._walk(e),this.body._walk(e)})}},j),L=x("ForOf","await",{$documentation:"A `for ... of` statement"},U),V=x("With","expression",{$documentation:"A `with` statement",$propdoc:{expression:"[AST_Node] the `with` expression"},_walk:function(e){return e._visit(this,function(){this.expression._walk(e),this.body._walk(e)})}},z),Y=x("Scope","variables functions uses_with uses_eval parent_scope enclosed cname",{$documentation:"Base class for all statements introducing a lexical scope",$propdoc:{variables:"[Object/S] a map of name -> SymbolDef for all variables/functions defined in this scope",functions:"[Object/S] like `variables`, but only lists function declarations",uses_with:"[boolean/S] tells whether this scope uses the `with` statement",uses_eval:"[boolean/S] tells whether this scope contains a direct call to the global `eval`",parent_scope:"[AST_Scope?/S] link to the parent scope",enclosed:"[SymbolDef*/S] a list of all symbol definitions that are accessed from this scope or any subscopes",cname:"[integer/S] current index for mangling variables (used internally by the mangler)"},get_defun_scope:function(){for(var e=this;e.is_block_scope();)e=e.parent_scope;return e},clone:function(e){var n=this._clone(e);return this.variables&&(n.variables=this.variables.clone()),this.functions&&(n.functions=this.functions.clone()),this.enclosed&&(n.enclosed=this.enclosed.slice()),n},pinned:function(){return this.uses_eval||this.uses_with}},$),W=x("Toplevel","globals",{$documentation:"The toplevel scope",$propdoc:{globals:"[Object/S] a map of name -> SymbolDef for all undeclared names"},wrap_commonjs:function(e){var n=this.body,t="(function(exports){'$ORIG';})(typeof "+e+"=='undefined'?("+e+"={}):"+e+");";return t=(t=gt(t)).transform(new Dt(function(e){if(e instanceof B&&"$ORIG"==e.value)return d.splice(n)}))},wrap_enclose:function(e){"string"!=typeof e&&(e="");var n=e.indexOf(":");n<0&&(n=e.length);var t=this.body;return gt(["(function(",e.slice(0,n),'){"$ORIG"})(',e.slice(n+1),")"].join("")).transform(new Dt(function(e){if(e instanceof B&&"$ORIG"==e.value)return d.splice(t)}))}},Y),G=x("Expansion","expression",{$documentation:"An expandible argument, such as ...rest, a splat, such as [1,2,...all], or an expansion in a variable declaration, such as var [first, ...rest] = list",$propdoc:{expression:"[AST_Node] the thing to be expanded"},_walk:function(e){var n=this;return e._visit(this,function(){n.expression.walk(e)})}}),X=x("Lambda","name argnames uses_arguments is_generator async",{$documentation:"Base class for functions",$propdoc:{name:"[AST_SymbolDeclaration?] the name of this function",argnames:"[AST_SymbolFunarg|AST_Destructuring|AST_Expansion|AST_DefaultAssign*] array of function arguments, destructurings, or expanding arguments",uses_arguments:"[boolean/S] tells whether this function accesses the arguments array",is_generator:"[boolean] is this a generator method",async:"[boolean] is this method async"},args_as_names:function(){for(var e=[],n=0;n<this.argnames.length;n++)this.argnames[n]instanceof ee?e=e.concat(this.argnames[n].all_symbols()):e.push(this.argnames[n]);return e},_walk:function(e){return e._visit(this,function(){this.name&&this.name._walk(e);for(var n=this.argnames,t=0,i=n.length;t<i;t++)n[t]._walk(e);T(this,e)})}},Y),J=x("Accessor",null,{$documentation:"A setter/getter function. The `name` property is always null."},X),Z=x("Function","inlined",{$documentation:"A function expression"},X),K=x("Arrow","inlined",{$documentation:"An ES6 Arrow function ((a) => b)"},X),Q=x("Defun","inlined",{$documentation:"A function definition"},X),ee=x("Destructuring","names is_array",{$documentation:"A destructuring of several names. Used in destructuring assignment and with destructuring function argument names",$propdoc:{names:"[AST_Node*] Array of properties or elements",is_array:"[Boolean] Whether the destructuring represents an object or array"},_walk:function(e){return e._visit(this,function(){this.names.forEach(function(n){n._walk(e)})})},all_symbols:function(){var e=[];return this.walk(new qn(function(n){n instanceof Je&&e.push(n),n instanceof G&&e.push(n.expression)})),e}}),ne=x("PrefixedTemplateString","template_string prefix",{$documentation:"A templatestring with a prefix, such as String.raw`foobarbaz`",$propdoc:{template_string:"[AST_TemplateString] The template string",prefix:"[AST_SymbolRef|AST_PropAccess] The prefix, which can be a symbol such as `foo` or a dotted expression such as `String.raw`."},_walk:function(e){this.prefix._walk(e),this.template_string._walk(e)}}),te=x("TemplateString","segments",{$documentation:"A template string literal",$propdoc:{segments:"[AST_Node*] One or more segments, starting with AST_TemplateSegment. AST_Node may follow AST_TemplateSegment, but each AST_Node must be followed by AST_TemplateSegment."},_walk:function(e){return e._visit(this,function(){this.segments.forEach(function(n){n._walk(e)})})}}),ie=x("TemplateSegment","value raw",{$documentation:"A segment of a template string literal",$propdoc:{value:"Content of the segment",raw:"Raw content of the segment"}}),re=x("Jump",null,{$documentation:"Base class for \u201cjumps\u201d (for now that's `return`, `throw`, `break` and `continue`)"},k),oe=x("Exit","value",{$documentation:"Base class for \u201cexits\u201d (`return` and `throw`)",$propdoc:{value:"[AST_Node?] the value returned or thrown by this statement; could be null for AST_Return"},_walk:function(e){return e._visit(this,this.value&&function(){this.value._walk(e)})}},re),ae=x("Return",null,{$documentation:"A `return` statement"},oe),se=x("Throw",null,{$documentation:"A `throw` statement"},oe),ue=x("LoopControl","label",{$documentation:"Base class for loop control statements (`break` and `continue`)",$propdoc:{label:"[AST_LabelRef?] the label, or null if none"},_walk:function(e){return e._visit(this,this.label&&function(){this.label._walk(e)})}},re),ce=x("Break",null,{$documentation:"A `break` statement"},ue),fe=x("Continue",null,{$documentation:"A `continue` statement"},ue),le=x("If","condition alternative",{$documentation:"A `if` statement",$propdoc:{condition:"[AST_Node] the `if` condition",alternative:"[AST_Statement?] the `else` part, or null if not present"},_walk:function(e){return e._visit(this,function(){this.condition._walk(e),this.body._walk(e),this.alternative&&this.alternative._walk(e)})}},z),pe=x("Switch","expression",{$documentation:"A `switch` statement",$propdoc:{expression:"[AST_Node] the `switch` \u201cdiscriminant\u201d"},_walk:function(e){return e._visit(this,function(){this.expression._walk(e),T(this,e)})}},$),de=x("SwitchBranch",null,{$documentation:"Base class for `switch` branches"},$),he=x("Default",null,{$documentation:"A `default` switch branch"},de),me=x("Case","expression",{$documentation:"A `case` switch branch",$propdoc:{expression:"[AST_Node] the `case` expression"},_walk:function(e){return e._visit(this,function(){this.expression._walk(e),T(this,e)})}},de),_e=x("Try","bcatch bfinally",{$documentation:"A `try` statement",$propdoc:{bcatch:"[AST_Catch?] the catch block, or null if not present",bfinally:"[AST_Finally?] the finally block, or null if not present"},_walk:function(e){return e._visit(this,function(){T(this,e),this.bcatch&&this.bcatch._walk(e),this.bfinally&&this.bfinally._walk(e)})}},$),ve=x("Catch","argname",{$documentation:"A `catch` node; only makes sense as part of a `try` statement",$propdoc:{argname:"[AST_SymbolCatch|AST_Destructuring|AST_Expansion|AST_DefaultAssign] symbol for the exception"},_walk:function(e){return e._visit(this,function(){this.argname&&this.argname._walk(e),T(this,e)})}},$),ge=x("Finally",null,{$documentation:"A `finally` node; only makes sense as part of a `try` statement"},$),De=x("Definitions","definitions",{$documentation:"Base class for `var` or `const` nodes (variable declarations/initializations)",$propdoc:{definitions:"[AST_VarDef*] array of variable definitions"},_walk:function(e){return e._visit(this,function(){for(var n=this.definitions,t=0,i=n.length;t<i;t++)n[t]._walk(e)})}},k),ye=x("Var",null,{$documentation:"A `var` statement"},De),be=x("Let",null,{$documentation:"A `let` statement"},De),Ee=x("Const",null,{$documentation:"A `const` statement"},De),we=x("NameMapping","foreign_name name",{$documentation:"The part of the export/import statement that declare names from a module.",$propdoc:{foreign_name:"[AST_SymbolExportForeign|AST_SymbolImportForeign] The name being exported/imported (as specified in the module)",name:"[AST_SymbolExport|AST_SymbolImport] The name as it is visible to this module."},_walk:function(e){return e._visit(this,function(){this.foreign_name._walk(e),this.name._walk(e)})}}),xe=x("Import","imported_name imported_names module_name",{$documentation:"An `import` statement",$propdoc:{imported_name:"[AST_SymbolImport] The name of the variable holding the module's default export.",imported_names:"[AST_NameMapping*] The names of non-default imported variables",module_name:"[AST_String] String literal describing where this module came from"},_walk:function(e){return e._visit(this,function(){this.imported_name&&this.imported_name._walk(e),this.imported_names&&this.imported_names.forEach(function(n){n._walk(e)}),this.module_name._walk(e)})}}),Ae=x("Export","exported_definition exported_value is_default exported_names module_name",{$documentation:"An `export` statement",$propdoc:{exported_definition:"[AST_Defun|AST_Definitions|AST_DefClass?] An exported definition",exported_value:"[AST_Node?] An exported value",exported_names:"[AST_NameMapping*?] List of exported names",module_name:"[AST_String?] Name of the file to load exports from",is_default:"[Boolean] Whether this is the default exported value of this module"},_walk:function(e){e._visit(this,function(){this.exported_definition&&this.exported_definition._walk(e),this.exported_value&&this.exported_value._walk(e),this.exported_names&&this.exported_names.forEach(function(n){n._walk(e)}),this.module_name&&this.module_name._walk(e)})}},k),Fe=x("VarDef","name value",{$documentation:"A variable declaration; only appears in a AST_Definitions node",$propdoc:{name:"[AST_Destructuring|AST_SymbolConst|AST_SymbolLet|AST_SymbolVar] name of the variable",value:"[AST_Node?] initializer, or null of there's no initializer"},_walk:function(e){return e._visit(this,function(){this.name._walk(e),this.value&&this.value._walk(e)})}}),ke=x("Call","expression args",{$documentation:"A function call expression",$propdoc:{expression:"[AST_Node] expression to invoke as function",args:"[AST_Node*] array of arguments"},_walk:function(e){return e._visit(this,function(){for(var n=this.args,t=0,i=n.length;t<i;t++)n[t]._walk(e);this.expression._walk(e)})}}),Ce=x("New",null,{$documentation:"An object instantiation. Derives from a function call since it has exactly the same properties"},ke),Be=x("Sequence","expressions",{$documentation:"A sequence expression (comma-separated expressions)",$propdoc:{expressions:"[AST_Node*] array of expressions (at least two)"},_walk:function(e){return e._visit(this,function(){this.expressions.forEach(function(n){n._walk(e)})})}}),Se=x("PropAccess","expression property",{$documentation:'Base class for property access expressions, i.e. `a.foo` or `a["foo"]`',$propdoc:{expression:"[AST_Node] the \u201ccontainer\u201d expression",property:"[AST_Node|string] the property to access. For AST_Dot this is always a plain string, while for AST_Sub it's an arbitrary AST_Node"}}),Te=x("Dot",null,{$documentation:"A dotted property access expression",_walk:function(e){return e._visit(this,function(){this.expression._walk(e)})}},Se),Oe=x("Sub",null,{$documentation:'Index-style property access, i.e. `a["foo"]`',_walk:function(e){return e._visit(this,function(){this.expression._walk(e),this.property._walk(e)})}},Se),$e=x("Unary","operator expression",{$documentation:"Base class for unary expressions",$propdoc:{operator:"[string] the operator",expression:"[AST_Node] expression that this unary operator applies to"},_walk:function(e){return e._visit(this,function(){this.expression._walk(e)})}}),Me=x("UnaryPrefix",null,{$documentation:"Unary prefix expression, i.e. `typeof i` or `++i`"},$e),qe=x("UnaryPostfix",null,{$documentation:"Unary postfix expression, i.e. `i++`"},$e),ze=x("Binary","operator left right",{$documentation:"Binary expression, i.e. `a + b`",$propdoc:{left:"[AST_Node] left-hand side expression",operator:"[string] the operator",right:"[AST_Node] right-hand side expression"},_walk:function(e){return e._visit(this,function(){this.left._walk(e),this.right._walk(e)})}}),Ne=x("Conditional","condition consequent alternative",{$documentation:"Conditional expression using the ternary operator, i.e. `a ? b : c`",$propdoc:{condition:"[AST_Node]",consequent:"[AST_Node]",alternative:"[AST_Node]"},_walk:function(e){return e._visit(this,function(){this.condition._walk(e),this.consequent._walk(e),this.alternative._walk(e)})}}),je=x("Assign",null,{$documentation:"An assignment expression \u2014 `a = b + 5`"},ze),Ie=x("DefaultAssign",null,{$documentation:"A default assignment expression like in `(a = 3) => a`"},ze),He=x("Array","elements",{$documentation:"An array literal",$propdoc:{elements:"[AST_Node*] array of elements"},_walk:function(e){return e._visit(this,function(){for(var n=this.elements,t=0,i=n.length;t<i;t++)n[t]._walk(e)})}}),Re=x("Object","properties",{$documentation:"An object literal",$propdoc:{properties:"[AST_ObjectProperty*] array of properties"},_walk:function(e){return e._visit(this,function(){for(var n=this.properties,t=0,i=n.length;t<i;t++)n[t]._walk(e)})}}),Pe=x("ObjectProperty","key value",{$documentation:"Base class for literal object properties",$propdoc:{key:"[string|AST_Node] property name. For ObjectKeyVal this is a string. For getters, setters and computed property this is an AST_Node.",value:"[AST_Node] property value. For getters and setters this is an AST_Accessor."},_walk:function(e){return e._visit(this,function(){this.key instanceof F&&this.key._walk(e),this.value._walk(e)})}}),Ue=x("ObjectKeyVal","quote",{$documentation:"A key: value object property",$propdoc:{quote:"[string] the original quote character"}},Pe),Le=x("ObjectSetter","quote static",{$propdoc:{quote:"[string|undefined] the original quote character, if any",static:"[boolean] whether this is a static setter (classes only)"},$documentation:"An object setter property"},Pe),Ve=x("ObjectGetter","quote static",{$propdoc:{quote:"[string|undefined] the original quote character, if any",static:"[boolean] whether this is a static getter (classes only)"},$documentation:"An object getter property"},Pe),Ye=x("ConciseMethod","quote static is_generator async",{$propdoc:{quote:"[string|undefined] the original quote character, if any",static:"[boolean] is this method static (classes only)",is_generator:"[boolean] is this a generator method",async:"[boolean] is this method async"},$documentation:"An ES6 concise method inside an object or class"},Pe),We=x("Class","name extends properties inlined",{$propdoc:{name:"[AST_SymbolClass|AST_SymbolDefClass?] optional class name.",extends:"[AST_Node]? optional parent class",properties:"[AST_ObjectProperty*] array of properties"},$documentation:"An ES6 class",_walk:function(e){return e._visit(this,function(){this.name&&this.name._walk(e),this.extends&&this.extends._walk(e),this.properties.forEach(function(n){n._walk(e)})})}},Y),Ge=x("DefClass",null,{$documentation:"A class definition"},We),Xe=x("ClassExpression",null,{$documentation:"A class expression."},We),Je=x("Symbol","scope name thedef",{$propdoc:{name:"[string] name of this symbol",scope:"[AST_Scope/S] the current scope (not necessarily the definition scope)",thedef:"[SymbolDef/S] the definition of this symbol"},$documentation:"Base class for all symbols"}),Ze=x("NewTarget",null,{$documentation:"A reference to new.target"}),Ke=x("SymbolDeclaration","init",{$documentation:"A declaration symbol (symbol in var/const, function name or argument, symbol in catch)"},Je),Qe=x("SymbolVar",null,{$documentation:"Symbol defining a variable"},Ke),en=x("SymbolBlockDeclaration",null,{$documentation:"Base class for block-scoped declaration symbols"},Ke),nn=x("SymbolConst",null,{$documentation:"A constant declaration"},en),tn=x("SymbolLet",null,{$documentation:"A block-scoped `let` declaration"},en),rn=x("SymbolFunarg",null,{$documentation:"Symbol naming a function argument"},Qe),on=x("SymbolDefun",null,{$documentation:"Symbol defining a function"},Ke),an=x("SymbolMethod",null,{$documentation:"Symbol in an object defining a method"},Je),sn=x("SymbolLambda",null,{$documentation:"Symbol naming a function expression"},Ke),un=x("SymbolDefClass",null,{$documentation:"Symbol naming a class's name in a class declaration. Lexically scoped to its containing scope, and accessible within the class."},en),cn=x("SymbolClass",null,{$documentation:"Symbol naming a class's name. Lexically scoped to the class."},Ke),fn=x("SymbolCatch",null,{$documentation:"Symbol naming the exception in catch"},en),ln=x("SymbolImport",null,{$documentation:"Symbol referring to an imported name"},en),pn=x("SymbolImportForeign",null,{$documentation:"A symbol imported from a module, but it is defined in the other module, and its real name is irrelevant for this module's purposes"},Je),dn=x("Label","references",{$documentation:"Symbol naming a label (declaration)",$propdoc:{references:"[AST_LoopControl*] a list of nodes referring to this label"},initialize:function(){this.references=[],this.thedef=this}},Je),hn=x("SymbolRef",null,{$documentation:"Reference to some symbol (not definition/declaration)"},Je),mn=x("SymbolExport",null,{$documentation:"Symbol referring to a name to export"},hn),_n=x("SymbolExportForeign",null,{$documentation:"A symbol exported from this module, but it is used in the other module, and its real name is irrelevant for this module's purposes"},Je),vn=x("LabelRef",null,{$documentation:"Reference to a label symbol"},Je),gn=x("This",null,{$documentation:"The `this` symbol"},Je),Dn=x("Super",null,{$documentation:"The `super` symbol"},gn),yn=x("Constant",null,{$documentation:"Base class for all constants",getValue:function(){return this.value}}),bn=x("String","value quote",{$documentation:"A string literal",$propdoc:{value:"[string] the contents of this string",quote:"[string] the original quote character"}},yn),En=x("Number","value literal",{$documentation:"A number literal",$propdoc:{value:"[number] the numeric value",literal:"[string] numeric value as string (optional)"}},yn),wn=x("RegExp","value",{$documentation:"A regexp literal",$propdoc:{value:"[RegExp] the actual regexp"}},yn),xn=x("Atom",null,{$documentation:"Base class for atoms"},yn),An=x("Null",null,{$documentation:"The `null` atom",value:null},xn),Fn=x("NaN",null,{$documentation:"The impossible value",value:NaN},xn),kn=x("Undefined",null,{$documentation:"The `undefined` value",value:void 0},xn),Cn=x("Hole",null,{$documentation:"A hole in an array",value:void 0},xn),Bn=x("Infinity",null,{$documentation:"The `Infinity` value",value:1/0},xn),Sn=x("Boolean",null,{$documentation:"Base class for booleans"},xn),Tn=x("False",null,{$documentation:"The `false` atom",value:!1},Sn),On=x("True",null,{$documentation:"The `true` atom",value:!0},Sn),$n=x("Await","expression",{$documentation:"An `await` statement",$propdoc:{expression:"[AST_Node] the mandatory expression being awaited"},_walk:function(e){return e._visit(this,function(){this.expression._walk(e)})}}),Mn=x("Yield","expression is_star",{$documentation:"A `yield` statement",$propdoc:{expression:"[AST_Node?] the value returned or thrown by this statement; could be null (representing undefined) but only when is_star is set to false",is_star:"[Boolean] Whether this is a yield or yield* statement"},_walk:function(e){return e._visit(this,this.expression&&function(){this.expression._walk(e)})}});function qn(e){this.visit=e,this.stack=[],this.directives=Object.create(null)}qn.prototype={_visit:function(e,n){this.push(e);var t=this.visit(e,n?function(){n.call(e)}:u);return!t&&n&&n.call(e),this.pop(),t},parent:function(e){return this.stack[this.stack.length-2-(e||0)]},push:function(e){e instanceof X?this.directives=Object.create(this.directives):e instanceof B&&!this.directives[e.value]?this.directives[e.value]=e:e instanceof We&&(this.directives=Object.create(this.directives),this.directives["use strict"]||(this.directives["use strict"]=e)),this.stack.push(e)},pop:function(){var e=this.stack.pop();(e instanceof X||e instanceof We)&&(this.directives=Object.getPrototypeOf(this.directives))},self:function(){return this.stack[this.stack.length-1]},find_parent:function(e){for(var n=this.stack,t=n.length;--t>=0;){var i=n[t];if(i instanceof e)return i}},has_directive:function(e){var n=this.directives[e];if(n)return n;var t=this.stack[this.stack.length-1];if(t instanceof Y&&t.body)for(var i=0;i<t.body.length;++i){var r=t.body[i];if(!(r instanceof B))break;if(r.value==e)return r}},loopcontrol_target:function(e){var n=this.stack;if(e.label)for(var t=n.length;--t>=0;){if((i=n[t])instanceof N&&i.label.name==e.label.name)return i.body}else for(t=n.length;--t>=0;){var i;if((i=n[t])instanceof j||e instanceof ce&&i instanceof pe)return i}}};var zn="break case catch class const continue debugger default delete do else export extends finally for function if in instanceof let new return switch throw try typeof var void while with",Nn="false null true",jn="enum implements import interface package private protected public static super this "+Nn+" "+zn,In="return new delete throw else case yield await";zn=g(zn),jn=g(jn),In=g(In),Nn=g(Nn);var Hn=g(n("+-*&%=<>!?|~^")),Rn=/[0-9a-f]/i,Pn=/^0x[0-9a-f]+$/i,Un=/^0[0-7]+$/,Ln=/^0o[0-7]+$/i,Vn=/^0b[01]+$/i,Yn=/^\d*\.?\d*(?:e[+-]?\d*(?:\d\.?|\.?\d)\d*)?$/i,Wn=g(["in","instanceof","typeof","new","void","delete","++","--","+","-","!","~","&","|","^","*","**","/","%",">>","<<",">>>","<",">","<=",">=","==","===","!=","!==","?","=","+=","-=","/=","*=","**=","%=",">>=","<<=",">>>=","|=","^=","&=","&&","||"]),Gn=g(n(" \xa0\n\r\t\f\v\u200b\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u2028\u2029\u202f\u205f\u3000\ufeff")),Xn=g(n("\n\r\u2028\u2029")),Jn=g(n(";]),:")),Zn=g(n("[{(,;:")),Kn=g(n("[]{}(),;:")),Qn={ID_Start:/[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,ID_Continue:/[0-9A-Z_a-z\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};function et(e,n){var t=e.charAt(n);if(nt(t)){var i=e.charAt(n+1);if(tt(i))return t+i}if(tt(t)){var r=e.charAt(n-1);if(nt(r))return r+t}return t}function nt(e){return"string"==typeof e&&(e=e.charCodeAt(0)),e>=55296&&e<=56319}function tt(e){return"string"==typeof e&&(e=e.charCodeAt(0)),e>=56320&&e<=57343}function it(e){return e>=48&&e<=57}function rt(e){return"string"==typeof e&&!jn(e)}function ot(e){var n=e.charCodeAt(0);return Qn.ID_Start.test(e)||36==n||95==n}function at(e){var n=e.charCodeAt(0);return Qn.ID_Continue.test(e)||36==n||95==n||8204==n||8205==n}function st(e){return/^[a-z_$][a-z0-9_$]*$/i.test(e)}function ut(e,n,t,i,r){this.message=e,this.filename=n,this.line=t,this.col=i,this.pos=r}function ct(e,n,t,i,r){throw new ut(e,n,t,i,r)}function ft(e,n,t){return e.type==n&&(null==t||e.value==t)}ut.prototype=Object.create(Error.prototype),ut.prototype.constructor=ut,ut.prototype.name="SyntaxError",r(ut);var lt={};function pt(e,n,t,i){var r={text:e,filename:n,pos:0,tokpos:0,line:1,tokline:0,col:0,tokcol:0,newline_before:!1,regex_allowed:!1,brace_counter:0,template_braces:[],comments_before:[],directives:{},directive_stack:[]};function o(){return et(r.text,r.pos)}function a(e,n){var t=et(r.text,r.pos++);if(e&&!t)throw lt;return Xn(t)?(r.newline_before=r.newline_before||!n,++r.line,r.col=0,n||"\r"!=t||"\n"!=o()||(++r.pos,t="\n")):(t.length>1&&(++r.pos,++r.col),++r.col),t}function s(e){for(;e-- >0;)a()}function u(e){return r.text.substr(r.pos,e.length)==e}function c(e,n){var t=r.text.indexOf(e,r.pos);if(n&&-1==t)throw lt;return t}function f(){r.tokline=r.line,r.tokcol=r.col,r.tokpos=r.pos}var l=!1,p=null;function d(t,i,o){r.regex_allowed="operator"==t&&!ht(i)||"keyword"==t&&In(i)||"punc"==t&&Zn(i)||"arrow"==t,"punc"==t&&"."==i?l=!0:o||(l=!1);var a={type:t,value:i,line:r.tokline,col:r.tokcol,pos:r.tokpos,endline:r.line,endcol:r.col,endpos:r.pos,nlb:r.newline_before,file:n};return/^(?:num|string|regexp)$/i.test(t)&&(a.raw=e.substring(a.pos,a.endpos)),o||(a.comments_before=r.comments_before,a.comments_after=r.comments_before=[]),r.newline_before=!1,a=new A(a),o||(p=a),a}function h(){for(;Gn(o());)a()}function m(e){ct(e,n,r.tokline,r.tokcol,r.tokpos)}function _(e){var n=!1,t=!1,i=!1,r="."==e,s=function(e){for(var n,t="",i=0;(n=o())&&e(n,i++);)t+=a();return t}(function(o,a){switch(o.charCodeAt(0)){case 98:case 66:return i=!0;case 111:case 79:case 120:case 88:return!i&&(i=!0);case 101:case 69:return!!i||!n&&(n=t=!0);case 45:return t||0==a&&!e;case 43:return t;case t=!1,46:return!(r||i||n)&&(r=!0)}return Rn.test(o)});e&&(s=e+s),Un.test(s)&&B.has_directive("use strict")&&m("Legacy octal literals are not allowed in strict mode");var u=function(e){if(Pn.test(e))return parseInt(e.substr(2),16);if(Un.test(e))return parseInt(e.substr(1),8);if(Ln.test(e))return parseInt(e.substr(2),8);if(Vn.test(e))return parseInt(e.substr(2),2);if(Yn.test(e))return parseFloat(e);var n=parseFloat(e);return n==e?n:void 0}(s);if(!isNaN(u))return d("num",u);m("Invalid syntax: "+s)}function v(e,n,t){var i,s=a(!0,e);switch(s.charCodeAt(0)){case 110:return"\n";case 114:return"\r";case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 120:return String.fromCharCode(g(2,n));case 117:if("{"==o()){for(a(!0),"}"===o()&&m("Expecting hex-character between {}");"0"==o();)a(!0);var u,f=c("}",!0)-r.pos;return(f>6||(u=g(f,n))>1114111)&&m("Unicode reference out of bounds"),a(!0),(i=u)>65535?(i-=65536,String.fromCharCode(55296+(i>>10))+String.fromCharCode(i%1024+56320)):String.fromCharCode(i)}return String.fromCharCode(g(4,n));case 10:return"";case 13:if("\n"==o())return a(!0,e),""}return s>="0"&&s<="7"?(t&&n&&m("Octal escape sequences are not allowed in template strings"),function(e,n){var t=o();t>="0"&&t<="7"&&(e+=a(!0))[0]<="3"&&(t=o())>="0"&&t<="7"&&(e+=a(!0));if("0"===e)return"\0";e.length>0&&B.has_directive("use strict")&&n&&m("Legacy octal escape sequences are not allowed in strict mode");return String.fromCharCode(parseInt(e,8))}(s,n)):s}function g(e,n){for(var t=0;e>0;--e){if(!n&&isNaN(parseInt(o(),16)))return parseInt(t,16)||"";var i=a(!0);isNaN(parseInt(i,16))&&m("Invalid hex-character pattern in string"),t+=i}return parseInt(t,16)}var D=C("Unterminated string constant",function(e){for(var n=a(),t="";;){var i=a(!0,!0);if("\\"==i)i=v(!0,!0);else if(Xn(i))m("Unterminated string constant");else if(i==n)break;t+=i}var r=d("string",t);return r.quote=e,r}),y=C("Unterminated template",function(e){e&&r.template_braces.push(r.brace_counter);var n,t,i="",s="";for(a(!0,!0);"`"!=(n=a(!0,!0));){if("\r"==n)"\n"==o()&&++r.pos,n="\n";else if("$"==n&&"{"==o())return a(!0,!0),r.brace_counter++,(t=d(e?"template_head":"template_substitution",i)).begin=e,t.raw=s,t.end=!1,t;if(s+=n,"\\"==n){var u=r.pos;n=v(!0,!("name"===p.type||"punc"===p.type&&(")"===p.value||"]"===p.value)),!0),s+=r.text.substr(u,r.pos-u)}i+=n}return r.template_braces.pop(),(t=d(e?"template_head":"template_substitution",i)).begin=e,t.raw=s,t.end=!0,t});function b(e){var n,t=r.regex_allowed,i=function(){for(var e=r.text,n=r.pos,t=r.text.length;n<t;++n){var i=e[n];if(Xn(i))return n}return-1}();return-1==i?(n=r.text.substr(r.pos),r.pos=r.text.length):(n=r.text.substring(r.pos,i),r.pos=i),r.col=r.tokcol+(r.pos-r.tokpos),r.comments_before.push(d(e,n,!0)),r.regex_allowed=t,B}var E=C("Unterminated multiline comment",function(){var e=r.regex_allowed,n=c("*/",!0),t=r.text.substring(r.pos,n).replace(/\r\n|\r|\u2028|\u2029/g,"\n");return s(function(e){for(var n=0,t=0;t<e.length;t++)nt(e.charCodeAt(t))&&tt(e.charCodeAt(t+1))&&(n++,t++);return e.length-n}(t)+2),r.comments_before.push(d("comment2",t,!0)),r.newline_before=r.newline_before||t.indexOf("\n")>=0,r.regex_allowed=e,B}),w=C("Unterminated identifier name",function(){var e,n="",t=!1,i=function(){return t=!0,a(),"u"!==o()&&m("Expecting UnicodeEscapeSequence -- uXXXX or u{XXXX}"),v(!1,!0)};if("\\"===(n=o()))ot(n=i())||m("First identifier char is an invalid identifier char");else{if(!ot(n))return"";a()}for(;null!=(e=o());){if("\\"===(e=o()))at(e=i())||m("Invalid escaped identifier char");else{if(!at(e))break;a()}n+=e}return jn(n)&&t&&m("Escaped characters are not allowed in keywords"),n}),x=C("Unterminated regular expression",function(e){for(var n,t=!1,i=!1;n=a(!0);)if(Xn(n))m("Unexpected line terminator");else if(t)e+="\\"+n,t=!1;else if("["==n)i=!0,e+=n;else if("]"==n&&i)i=!1,e+=n;else{if("/"==n&&!i)break;"\\"==n?t=!0:e+=n}var r=w();try{var o=new RegExp(e,r);return o.raw_source="/"+e+"/"+r,d("regexp",o)}catch(e){m(e.message)}});function F(e){return d("operator",function e(n){if(!o())return n;var t=n+o();return Wn(t)?(a(),e(t)):n}(e||a()))}function k(){switch(a(),o()){case"/":return a(),b("comment1");case"*":return a(),E()}return r.regex_allowed?x(""):F("/")}function C(e,n){return function(t){try{return n(t)}catch(n){if(n!==lt)throw n;m(e)}}}function B(e){if(null!=e)return x(e);for(i&&0==r.pos&&u("#!")&&(f(),s(2),b("comment5"));;){if(h(),f(),t){if(u("\x3c!--")){s(4),b("comment3");continue}if(u("--\x3e")&&r.newline_before){s(3),b("comment4");continue}}var n=o();if(!n)return d("eof");var c=n.charCodeAt(0);switch(c){case 34:case 39:return D(n);case 46:return a(),it(o().charCodeAt(0))?_("."):"."===o()?(a(),a(),d("expand","...")):d("punc",".");case 47:var p=k();if(p===B)continue;return p;case 61:return a(),">"===o()?(a(),d("arrow","=>")):F("=");case 96:return y(!0);case 123:r.brace_counter++;break;case 125:if(r.brace_counter--,r.template_braces.length>0&&r.template_braces[r.template_braces.length-1]===r.brace_counter)return y(!1)}if(it(c))return _();if(Kn(n))return d("punc",a());if(Hn(n))return F();if(92==c||ot(n))return v=void 0,v=w(),l?d("name",v):Nn(v)?d("atom",v):zn(v)?Wn(v)?d("operator",v):d("keyword",v):d("name",v);break}var v;m("Unexpected character '"+n+"'")}return B.next=a,B.peek=o,B.context=function(e){return e&&(r=e),r},B.add_directive=function(e){r.directive_stack[r.directive_stack.length-1].push(e),void 0===r.directives[e]?r.directives[e]=1:r.directives[e]++},B.push_directives_stack=function(){r.directive_stack.push([])},B.pop_directives_stack=function(){for(var e=r.directive_stack[r.directive_stack.length-1],n=0;n<e.length;n++)r.directives[e[n]]--;r.directive_stack.pop()},B.has_directive=function(e){return r.directives[e]>0},B}var dt=g(["typeof","void","delete","--","++","!","~","-","+"]),ht=g(["--","++"]),mt=g(["=","+=","-=","/=","*=","**=","%=",">>=","<<=",">>>=","|=","^=","&="]),_t=function(e,n){for(var t=0;t<e.length;++t)for(var i=e[t],r=0;r<i.length;++r)n[i[r]]=t+1;return n}([["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]],{}),vt=g(["atom","num","string","regexp","name"]);function gt(e,n){n=a(n,{bare_returns:!1,ecma:8,expression:!1,filename:null,html5_comments:!0,module:!1,shebang:!0,strict:!1,toplevel:null},!0);var t={input:"string"==typeof e?pt(e,n.filename,n.html5_comments,n.shebang):e,token:null,prev:null,peeked:null,in_function:0,in_async:-1,in_generator:-1,in_directives:!0,in_loop:0,labels:[]};function r(e,n){return ft(t.token,e,n)}function o(){return t.peeked||(t.peeked=t.input())}function s(){return t.prev=t.token,t.peeked||o(),t.token=t.peeked,t.peeked=null,t.in_directives=t.in_directives&&("string"==t.token.type||r("punc",";")),t.token}function u(){return t.prev}function c(e,n,i,r){var o=t.input.context();ct(e,o.filename,null!=n?n:o.tokline,null!=i?i:o.tokcol,null!=r?r:o.tokpos)}function f(e,n){c(n,e.line,e.col)}function l(e){null==e&&(e=t.token),f(e,"Unexpected token: "+e.type+" ("+e.value+")")}function p(e,n){if(r(e,n))return s();f(t.token,"Unexpected token "+t.token.type+" \xab"+t.token.value+"\xbb, expected "+e+" \xab"+n+"\xbb")}function d(e){return p("punc",e)}function h(e){return e.nlb||!D(e.comments_before,function(e){return!e.nlb})}function m(){return!n.strict&&(r("eof")||r("punc","}")||h(t.token))}function _(){return t.in_generator===t.in_function}function v(){return t.in_async===t.in_function}function g(e){r("punc",";")?s():e||m()||l()}function y(){d("(");var e=tt(!0);return d(")"),e}function E(e){return function(){var n=t.token,i=e.apply(null,arguments),r=u();return i.start=n,i.end=r,i}}function w(){(r("operator","/")||r("operator","/="))&&(t.peeked=null,t.token=t.input(t.token.value.substr(1)))}t.token=s();var x=E(function(e,a,_){switch(w(),t.token.type){case"string":if(t.in_directives){var D=o();-1==t.token.raw.indexOf("\\")&&(ft(D,"punc",";")||ft(D,"punc","}")||h(D)||ft(D,"eof"))?t.input.add_directive(t.token.value):t.in_directives=!1}var b=t.in_directives,E=A();return b&&E.body instanceof bn?new B(E.body):E;case"template_head":case"num":case"regexp":case"operator":case"atom":return A();case"name":if("async"==t.token.value&&ft(o(),"keyword","function"))return s(),s(),a&&c("functions are not allowed as the body of a loop"),O(Q,!1,!0,e);if("import"==t.token.value&&!ft(o(),"punc","(")){s();var F=function(){var e,n,i=u();r("name")&&(e=Ln(ln));r("punc",",")&&s();((n=Hn(!0))||e)&&p("name","from");var o=t.token;"string"!==o.type&&l();return s(),new xe({start:i,imported_name:e,imported_names:n,module_name:new bn({start:o,value:o.value,quote:o.quote,end:o}),end:t.token})}();return g(),F}return ft(o(),"punc",":")?function(){var e=Ln(dn);"await"===e.name&&v()&&f(t.prev,"await cannot be used as label inside async function");i(function(n){return n.name==e.name},t.labels)&&c("Label "+e.name+" defined twice");d(":"),t.labels.push(e);var n=x();t.labels.pop(),n instanceof j||e.references.forEach(function(n){n instanceof fe&&(n=n.label.start,c("Continue label `"+e.name+"` refers to non-IterationStatement.",n.line,n.col,n.pos))});return new N({body:n,label:e})}():A();case"punc":switch(t.token.value){case"{":return new M({start:t.token,body:re(),end:u()});case"[":case"(":return A();case";":return t.in_directives=!1,s(),new q;default:l()}case"keyword":switch(t.token.value){case"break":return s(),k(ce);case"continue":return s(),k(fe);case"debugger":return s(),g(),new C;case"do":s();var T=it(x);p("keyword","while");var $=y();return g(!0),new H({body:T,condition:$});case"while":return s(),new R({condition:y(),body:it(function(){return x(!1,!0)})});case"for":return s(),function(){var e="`for await` invalid in this context",n=t.token;"name"==n.type&&"await"==n.value?(v()||f(n,e),s()):n=!1;d("(");var i=null;if(r("punc",";"))n&&f(n,e);else{i=r("keyword","var")?(s(),de(!0)):r("keyword","let")?(s(),$e(!0)):r("keyword","const")?(s(),We(!0)):tt(!0,!0);var o=r("operator","in"),a=r("name","of");if(n&&!a&&f(n,e),o||a)return i instanceof De?i.definitions.length>1&&f(i.start,"Only one variable declaration allowed in for..in loop"):Qn(i)||(i=et(i))instanceof ee||f(i.start,"Invalid left-hand side in for..in loop"),s(),o?function(e){var n=tt(!0);return d(")"),new U({init:e,object:n,body:it(function(){return x(!1,!0)})})}(i):function(e,n){var t=e instanceof De?e.definitions[0].name:null,i=tt(!0);return d(")"),new L({await:n,init:e,name:t,object:i,body:it(function(){return x(!1,!0)})})}(i,!!n)}return function(e){d(";");var n=r("punc",";")?null:tt(!0);d(";");var t=r("punc",")")?null:tt(!0);return d(")"),new P({init:e,condition:n,step:t,body:it(function(){return x(!1,!0)})})}(i)}();case"class":return s(),a&&c("classes are not allowed as the body of a loop"),_&&c("classes are not allowed as the body of an if"),qn(Ge);case"function":return s(),a&&c("functions are not allowed as the body of a loop"),O(Q,!1,!1,e);case"if":return s(),function(){var e=y(),n=x(!1,!1,!0),t=null;r("keyword","else")&&(s(),t=x(!1,!1,!0));return new le({condition:e,body:n,alternative:t})}();case"return":0!=t.in_function||n.bare_returns||c("'return' outside of function"),s();var I=null;return r("punc",";")?s():m()||(I=tt(!0),g()),new ae({value:I});case"switch":return s(),new pe({expression:y(),body:it(oe)});case"throw":s(),h(t.token)&&c("Illegal newline after 'throw'");I=tt(!0);return g(),new se({value:I});case"try":return s(),function(){var e=re(),n=null,i=null;if(r("keyword","catch")){var o=t.token;if(s(),r("punc","{"))var a=null;else{d("(");var a=z(void 0,fn);d(")")}n=new ve({start:o,argname:a,body:re(),end:u()})}if(r("keyword","finally")){var o=t.token;s(),i=new ge({start:o,body:re(),end:u()})}n||i||c("Missing catch/finally blocks");return new _e({body:e,bcatch:n,bfinally:i})}();case"var":s();F=de();return g(),F;case"let":s();F=$e();return g(),F;case"const":s();F=We();return g(),F;case"with":return t.input.has_directive("use strict")&&c("Strict mode may not include a with statement"),s(),new V({expression:y(),body:x()});case"export":if(!ft(o(),"punc","(")){s();F=function(){var e,n,i,a,c,f=t.token;if(r("keyword","default"))e=!0,s();else if(n=Hn(!1)){if(r("name","from")){s();var p=t.token;return"string"!==p.type&&l(),s(),new Ae({start:f,is_default:e,exported_names:n,module_name:new bn({start:p,value:p.value,quote:p.quote,end:p}),end:u()})}return new Ae({start:f,is_default:e,exported_names:n,end:u()})}r("punc","{")||e&&(r("keyword","class")||r("keyword","function"))&&ft(o(),"punc")?(a=tt(!1),g()):(i=x(e))instanceof De&&e?l(i.start):i instanceof De||i instanceof X||i instanceof Ge?c=i:i instanceof S?a=i.body:l(i.start);return new Ae({start:f,is_default:e,exported_value:a,exported_definition:c,end:u()})}();return r("punc",";")&&g(),F}}}l()});function A(e){return new S({body:(e=tt(!0),g(),e)})}function k(e){var n,r=null;m()||(r=Ln(vn,!0)),null!=r?((n=i(function(e){return e.name==r.name},t.labels))||c("Undefined label "+r.name),r.thedef=n):0==t.in_loop&&c(e.TYPE+" not inside a loop or switch"),g();var o=new e({label:r});return n&&n.references.push(o),o}var T=function(e,n,i){h(t.token)&&c("Unexpected newline before arrow (=>)"),p("arrow","=>");var o=Y(r("punc","{"),!1,i),a=o instanceof Array&&o.length?o[o.length-1].end:o instanceof Array?e:o.end;return new K({start:e,end:a,async:i,argnames:n,body:o})},O=function(e,n,i,o){t.token;var a=e===Q,c=r("operator","*");c&&s();var f=r("name")?Ln(a?on:sn):null;a&&!f&&(o?e=Z:l()),!f||e===J||f instanceof Ke||l(u());var p=[],d=Y(!0,c||n,i,f,p);return new e({start:p.start,end:d.end,is_generator:c,async:i,name:f,argnames:p,body:d})};function $(e,n){var t={},i=!1,r=!1,o=!1,a=!!n,s={add_parameter:function(n){if(void 0!==t["$"+n.value])!1===i&&(i=n),s.check_strict();else if(t["$"+n.value]=!0,e)switch(n.value){case"arguments":case"eval":case"yield":a&&f(n,"Unexpected "+n.value+" identifier as parameter inside strict mode");break;default:jn(n.value)&&l()}},mark_default_assignment:function(e){!1===r&&(r=e)},mark_spread:function(e){!1===o&&(o=e)},mark_strict_mode:function(){a=!0},is_strict:function(){return!1!==r||!1!==o||a},check_strict:function(){s.is_strict()&&!1!==i&&f(i,"Parameter "+i.value+" was used already")}};return s}function z(e,n){var i,o=!1;return void 0===e&&(e=$(!0,t.input.has_directive("use strict"))),r("expand","...")&&(o=t.token,e.mark_spread(t.token),s()),i=I(e,n),r("operator","=")&&!1===o&&(e.mark_default_assignment(t.token),s(),i=new Ie({start:i.start,left:i,operator:"=",right:tt(!1),end:t.token})),!1!==o&&(r("punc",")")||l(),i=new G({start:o,expression:i,end:o})),e.check_strict(),i}function I(e,n){var i,a=[],f=!0,p=!1,h=t.token;if(void 0===e&&(e=$(!1,t.input.has_directive("use strict"))),n=void 0===n?rn:n,r("punc","[")){for(s();!r("punc","]");){if(f?f=!1:d(","),r("expand","...")&&(p=!0,i=t.token,e.mark_spread(t.token),s()),r("punc"))switch(t.token.value){case",":a.push(new Cn({start:t.token,end:t.token}));continue;case"]":break;case"[":case"{":a.push(I(e,n));break;default:l()}else r("name")?(e.add_parameter(t.token),a.push(Ln(n))):c("Invalid function parameter");r("operator","=")&&!1===p&&(e.mark_default_assignment(t.token),s(),a[a.length-1]=new Ie({start:a[a.length-1].start,left:a[a.length-1],operator:"=",right:tt(!1),end:t.token})),p&&(r("punc","]")||c("Rest element must be last element"),a[a.length-1]=new G({start:i,expression:a[a.length-1],end:i}))}return d("]"),e.check_strict(),new ee({start:h,names:a,is_array:!0,end:u()})}if(r("punc","{")){for(s();!r("punc","}");){if(f?f=!1:d(","),r("expand","...")&&(p=!0,i=t.token,e.mark_spread(t.token),s()),r("name")&&(ft(o(),"punc")||ft(o(),"operator"))&&-1!==[",","}","="].indexOf(o().value)){e.add_parameter(t.token);var m=u(),_=Ln(n);p?a.push(new G({start:i,expression:_,end:_.end})):a.push(new Ue({start:m,key:_.name,value:_,end:_.end}))}else{if(r("punc","}"))continue;var v=t.token,g=Rn();null===g?l(u()):"name"!==u().type||r("punc",":")?(d(":"),a.push(new Ue({start:v,quote:v.quote,key:g,value:I(e,n),end:u()}))):a.push(new Ue({start:u(),key:g,value:new n({start:u(),name:g,end:u()}),end:u()}))}p?r("punc","}")||c("Rest element must be last element"):r("operator","=")&&(e.mark_default_assignment(t.token),s(),a[a.length-1].value=new Ie({start:a[a.length-1].value.start,left:a[a.length-1].value,operator:"=",right:tt(!1),end:t.token}))}return d("}"),e.check_strict(),new ee({start:h,names:a,is_array:!1,end:u()})}if(r("name"))return e.add_parameter(t.token),Ln(n);c("Invalid function parameter")}function Y(e,i,o,a,u){var c=t.in_loop,f=t.labels,p=t.in_generator,h=t.in_async;if(++t.in_function,i&&(t.in_generator=t.in_function),o&&(t.in_async=t.in_function),u&&function(e){t.token;var i=$(!0,t.input.has_directive("use strict"));for(d("(");!r("punc",")");){var o=z(i);if(e.push(o),r("punc",")")||(d(","),r("punc",")")&&n.ecma<8&&l()),o instanceof G)break}s()}(u),e&&(t.in_directives=!0),t.in_loop=0,t.labels=[],e){t.input.push_directives_stack();var m=re();a&&Un(a),u&&u.forEach(Un),t.input.pop_directives_stack()}else m=tt(!1);return--t.in_function,t.in_loop=c,t.labels=f,t.in_generator=p,t.in_async=h,m}function re(){d("{");for(var e=[];!r("punc","}");)r("eof")&&l(),e.push(x());return s(),e}function oe(){d("{");for(var e,n=[],i=null,o=null;!r("punc","}");)r("eof")&&l(),r("keyword","case")?(o&&(o.end=u()),i=[],o=new me({start:(e=t.token,s(),e),expression:tt(!0),body:i}),n.push(o),d(":")):r("keyword","default")?(o&&(o.end=u()),i=[],o=new he({start:(e=t.token,s(),d(":"),e),body:i}),n.push(o)):(i||l(),i.push(x()));return o&&(o.end=u()),s(),n}function ue(e,n){for(var i,o=[];;){var a="var"===n?Qe:"const"===n?nn:"let"===n?tn:null;if(r("punc","{")||r("punc","[")?i=new Fe({start:t.token,name:I(void 0,a),value:r("operator","=")?(p("operator","="),tt(!1,e)):null,end:u()}):"import"==(i=new Fe({start:t.token,name:Ln(a),value:r("operator","=")?(s(),tt(!1,e)):e||"const"!==n?null:c("Missing initializer in const declaration"),end:u()})).name.name&&c("Unexpected token: import"),o.push(i),!r("punc",","))break;s()}return o}var de=function(e){return new ye({start:u(),definitions:ue(e,"var"),end:u()})},$e=function(e){return new be({start:u(),definitions:ue(e,"let"),end:u()})},We=function(e){return new Ee({start:u(),definitions:ue(e,"const"),end:u()})};function Je(){var e,n=t.token;switch(n.type){case"name":e=Pn(hn);break;case"num":e=new En({start:n,end:n,value:n.value});break;case"string":e=new bn({start:n,end:n,value:n.value,quote:n.quote});break;case"regexp":e=new wn({start:n,end:n,value:n.value});break;case"atom":switch(n.value){case"false":e=new Tn({start:n,end:n});break;case"true":e=new On({start:n,end:n});break;case"null":e=new An({start:n,end:n})}}return s(),e}function en(e,n,t,i){var r=function(e,n){return n?new Ie({start:e.start,left:e,operator:"=",right:n,end:n.end}):e};return e instanceof Re?r(new ee({start:e.start,end:e.end,is_array:!1,names:e.properties.map(en)}),i):e instanceof Ue?(e.value=en(e.value,0,[e.key]),r(e,i)):e instanceof Cn?e:e instanceof ee?(e.names=e.names.map(en),r(e,i)):e instanceof hn?r(new rn({name:e.name,start:e.start,end:e.end}),i):e instanceof G?(e.expression=en(e.expression),r(e,i)):e instanceof He?r(new ee({start:e.start,end:e.end,is_array:!0,names:e.elements.map(en)}),i):e instanceof je?r(en(e.left,void 0,void 0,e.right),i):e instanceof Ie?(e.left=en(e.left,0,[e.left]),e):void c("Invalid function parameter",e.start.line,e.start.col)}var yn=function(e,i){if(r("operator","new"))return function(e){var i=t.token;if(p("operator","new"),r("punc","."))return s(),p("name","target"),Yn(new Ze({start:i,end:u()}),e);var o,a=yn(!1);r("punc","(")?(s(),o=Fn(")",n.ecma>=8)):o=[];var c=new Ce({start:i,expression:a,args:o,end:u()});return Vn(c),Yn(c,e)}(e);var a,c=t.token,f=r("name","async")&&"["!=(a=o()).value&&"arrow"!=a.type&&Je();if(r("punc")){switch(t.token.value){case"(":if(f&&!e)break;var h=function(e,i){var o,a,c,f=[];for(d("(");!r("punc",")");)o&&l(o),r("expand","...")?(o=t.token,i&&(a=t.token),s(),f.push(new G({start:u(),expression:tt(),end:t.token}))):f.push(tt()),r("punc",")")||(d(","),r("punc",")")&&(n.ecma<8&&l(),c=u(),i&&(a=c)));return d(")"),e&&r("arrow","=>")?o&&c&&l(c):a&&l(a),f}(i,!f);if(i&&r("arrow","=>"))return T(c,h.map(en),!!f);var m=f?new ke({expression:f,args:h}):1==h.length?h[0]:new Be({expressions:h});if(m.start){var _=c.comments_before.length;if([].unshift.apply(m.start.comments_before,c.comments_before),c.comments_before=m.start.comments_before,c.comments_before_length=_,0==_&&c.comments_before.length>0){var v=c.comments_before[0];v.nlb||(v.nlb=c.nlb,c.nlb=!1)}c.comments_after=m.start.comments_after}m.start=c;var g=u();return m.end&&(g.comments_before=m.end.comments_before,[].push.apply(m.end.comments_after,g.comments_after),g.comments_after=m.end.comments_after),m.end=g,m instanceof ke&&Vn(m),Yn(m,e);case"[":return Yn(kn(),e);case"{":return Yn(Sn(),e)}f||l()}if(i&&r("name")&&ft(o(),"arrow")){var D=new rn({name:t.token.value,start:c,end:c});return s(),T(c,[D],!!f)}if(r("keyword","function")){s();var y=O(Z,!1,!!f);return y.start=c,y.end=u(),Yn(y,e)}if(f)return Yn(f,e);if(r("keyword","class")){s();var b=qn(Xe);return b.start=c,b.end=u(),Yn(b,e)}return r("template_head")?Yn(xn(!1),e):vt(t.token.type)?Yn(Je(),e):void l()};function xn(e){var n=[],i=t.token;for(n.push(new ie({start:t.token,raw:t.token.raw,value:t.token.value,end:t.token}));!1===t.token.end;)s(),w(),n.push(tt(!0)),ft("template_substitution")||l(),n.push(new ie({start:t.token,raw:t.token.raw,value:t.token.value,end:t.token}));return s(),new te({start:i,segments:n,end:t.token})}function Fn(e,n,i){for(var o=!0,a=[];!r("punc",e)&&(o?o=!1:d(","),!n||!r("punc",e));)r("punc",",")&&i?a.push(new Cn({start:t.token,end:t.token})):r("expand","...")?(s(),a.push(new G({start:u(),expression:tt(),end:t.token}))):a.push(tt(!1));return s(),a}var kn=E(function(){return d("["),new He({elements:Fn("]",!n.strict,!0)})}),Bn=E(function(e,n){return O(J,e,n)}),Sn=E(function(){var e=t.token,i=!0,o=[];for(d("{");!r("punc","}")&&(i?i=!1:d(","),n.strict||!r("punc","}"));)if("expand"!=(e=t.token).type){var a,c=Rn();if(r("punc",":"))null===c?l(u()):(s(),a=tt(!1));else{var f=zn(c,e);if(f){o.push(f);continue}a=new hn({start:u(),name:c,end:u()})}r("operator","=")&&(s(),a=new je({start:e,left:a,operator:"=",right:tt(!1),end:u()})),o.push(new Ue({start:e,quote:e.quote,key:c instanceof F?c:""+c,value:a,end:u()}))}else s(),o.push(new G({start:e,expression:tt(!1),end:u()}));return s(),new Re({properties:o})});function qn(e){var n,i,o,a,c=[];for(t.input.push_directives_stack(),t.input.add_directive("use strict"),"name"==t.token.type&&"extends"!=t.token.value&&(o=Ln(e===Ge?un:cn)),e!==Ge||o||l(),"extends"==t.token.value&&(s(),a=tt(!0)),d("{"),r("punc",";")&&s();!r("punc","}");)n=t.token,(i=zn(Rn(),n,!0))||l(),c.push(i),r("punc",";")&&s();return t.input.pop_directives_stack(),s(),new e({start:n,name:o,extends:a,properties:c,end:u()})}function zn(e,n,i){var o=function(e,n){return"string"==typeof e||"number"==typeof e?new an({start:n,name:""+e,end:u()}):(null===e&&l(),e)},a=!1,s=!1,c=!1,f=n;if(i&&"static"===e&&!r("punc","(")&&(s=!0,f=t.token,e=Rn()),"async"!==e||r("punc","(")||r("punc",",")||r("punc","}")||(a=!0,f=t.token,e=Rn()),null===e&&(c=!0,f=t.token,null===(e=Rn())&&l()),r("punc","("))return e=o(e,n),new Ye({start:n,static:s,is_generator:c,async:a,key:e,quote:e instanceof an?f.quote:void 0,value:Bn(c,a),end:u()});if(f=t.token,"get"==e){if(!r("punc")||r("punc","["))return e=o(Rn(),n),new Ve({start:n,static:s,key:e,quote:e instanceof an?f.quote:void 0,value:Bn(),end:u()})}else if("set"==e&&(!r("punc")||r("punc","[")))return e=o(Rn(),n),new Le({start:n,static:s,key:e,quote:e instanceof an?f.quote:void 0,value:Bn(),end:u()})}function Nn(e){function n(e){return new e({name:Rn(),start:u(),end:u()})}var i,o,a=e?pn:_n,c=e?ln:mn,f=t.token;return e?i=n(a):o=n(c),r("name","as")?(s(),e?o=n(c):i=n(a)):e?o=new c(i):i=new a(o),new we({start:f,foreign_name:i,name:o,end:u()})}function In(e,n){var i,r=e?pn:_n,o=e?ln:mn,a=t.token,s=u();return n=n||new o({name:"*",start:a,end:s}),i=new r({name:"*",start:a,end:s}),new we({start:a,foreign_name:i,name:n,end:s})}function Hn(e){var n;if(r("punc","{")){for(s(),n=[];!r("punc","}");)n.push(Nn(e)),r("punc",",")&&s();s()}else if(r("operator","*")){var t;s(),e&&r("name","as")&&(s(),t=Ln(e?ln:_n)),n=[In(e,t)]}return n}function Rn(){var e=t.token;switch(e.type){case"punc":if("["===e.value){s();var n=tt(!1);return d("]"),n}l(e);case"operator":if("*"===e.value)return s(),null;-1===["delete","in","instanceof","new","typeof","void"].indexOf(e.value)&&l(e);case"name":"yield"==e.value&&(_()?f(e,"Yield cannot be used as identifier inside generators"):ft(o(),"punc",":")||ft(o(),"punc","(")||!t.input.has_directive("use strict")||f(e,"Unexpected yield identifier inside strict mode"));case"string":case"num":case"keyword":case"atom":return s(),e.value;default:l(e)}}function Pn(e){var n=t.token.value;return new("this"==n?gn:"super"==n?Dn:e)({name:String(n),start:t.token,end:t.token})}function Un(e){var n=e.name;_()&&"yield"==n&&f(e.start,"Yield cannot be used as identifier inside generators"),t.input.has_directive("use strict")&&("yield"==n&&f(e.start,"Unexpected yield identifier inside strict mode"),e instanceof Ke&&("arguments"==n||"eval"==n)&&f(e.start,"Unexpected "+n+" in strict mode"))}function Ln(e,n){if(!r("name"))return n||c("Name expected"),null;var t=Pn(e);return Un(t),s(),t}function Vn(e){for(var n=e.start,t=n.comments_before,i=b(n,"comments_before_length")?n.comments_before_length:t.length;--i>=0;){var r=t[i];if(/[@#]__PURE__/.test(r.value)){e.pure=r;break}}}var Yn=function(e,n){var i,o=e.start;if(r("punc","."))return s(),Yn(new Te({start:o,expression:e,property:(i=t.token,"name"!=i.type&&l(),s(),i.value),end:u()}),n);if(r("punc","[")){s();var a=tt(!0);return d("]"),Yn(new Oe({start:o,expression:e,property:a,end:u()}),n)}if(n&&r("punc","(")){s();var c=new ke({start:o,expression:e,args:Wn(),end:u()});return Vn(c),Yn(c,!0)}return r("template_head")?Yn(new ne({start:o,prefix:e,template_string:xn(),end:u()}),n):e},Wn=E(function(){for(var e=[];!r("punc",")");)r("expand","...")?(s(),e.push(new G({start:u(),expression:tt(!1),end:u()}))):e.push(tt(!1)),r("punc",")")||(d(","),r("punc",")")&&n.ecma<8&&l());return s(),e}),Gn=function(e,n){var i=t.token;if("name"==i.type&&"await"==i.value){if(v())return s(),v()||c("Unexpected await expression outside async function",t.prev.line,t.prev.col,t.prev.pos),new $n({start:u(),end:t.token,expression:Gn(!0)});t.input.has_directive("use strict")&&f(t.token,"Unexpected await identifier inside strict mode")}if(r("operator")&&dt(i.value)){s(),w();var o=Xn(Me,i,Gn(e));return o.start=i,o.end=u(),o}for(var a=yn(e,n);r("operator")&&ht(t.token.value)&&!h(t.token);)a instanceof K&&l(),(a=Xn(qe,t.token,a)).start=i,a.end=t.token,s();return a};function Xn(e,n,i){var r=n.value;switch(r){case"++":case"--":Qn(i)||c("Invalid use of "+r+" operator",n.line,n.col,n.pos);break;case"delete":i instanceof hn&&t.input.has_directive("use strict")&&c("Calling delete on expression not allowed in strict mode",i.start.line,i.start.col,i.start.pos)}return new e({operator:r,expression:i})}var Zn=function(e,n,i){var o=r("operator")?t.token.value:null;"in"==o&&i&&(o=null),"**"==o&&e instanceof Me&&!ft(e.start,"punc","(")&&"--"!==e.operator&&"++"!==e.operator&&l(e.start);var a=null!=o?_t[o]:null;if(null!=a&&(a>n||"**"===o&&n===a)){s();var u=Zn(Gn(!0),a,i);return Zn(new ze({start:e.start,left:e,operator:o,right:u,end:u.end}),n,i)}return e};var Kn=function(e){var n=t.token,i=function(e){return Zn(Gn(!0,!0),0,e)}(e);if(r("operator","?")){s();var o=tt(!1);return d(":"),new Ne({start:n,condition:i,consequent:o,alternative:tt(!1,e),end:u()})}return i};function Qn(e){return e instanceof Se||e instanceof hn}function et(e){if(e instanceof Re)e=new ee({start:e.start,names:e.properties.map(et),is_array:!1,end:e.end});else if(e instanceof He){for(var n=[],t=0;t<e.elements.length;t++)e.elements[t]instanceof G&&(t+1!==e.elements.length&&f(e.elements[t].start,"Spread must the be last element in destructuring array"),e.elements[t].expression=et(e.elements[t].expression)),n.push(et(e.elements[t]));e=new ee({start:e.start,names:n,is_array:!0,end:e.end})}else e instanceof Pe?e.value=et(e.value):e instanceof je&&(e=new Ie({start:e.start,left:e.left,operator:"=",right:e.right,end:e.end}));return e}var nt=function(e){var n=t.token;if("name"==n.type&&"yield"==n.value){if(_())return s(),function(){_()||c("Unexpected yield expression outside generator function",t.prev.line,t.prev.col,t.prev.pos);var e=t.token,n=!1,i=!0;return m()||r("punc")&&Jn(t.token.value)?i=!1:r("operator","*")&&(n=!0,s()),new Mn({start:e,is_star:n,expression:i?tt():null,end:u()})}();t.input.has_directive("use strict")&&f(t.token,"Unexpected yield identifier inside strict mode")}var i=Kn(e),o=t.token.value;if(r("operator")&&mt(o)){if(Qn(i)||(i=et(i))instanceof ee)return s(),new je({start:n,left:i,operator:o,right:nt(e),end:u()});c("Invalid assignment")}return i},tt=function(e,n){for(var i=t.token,a=[];a.push(nt(n)),e&&r("punc",",");)s(),e=!0;return 1==a.length?a[0]:new Be({start:i,expressions:a,end:o()})};function it(e){++t.in_loop;var n=e();return--t.in_loop,n}return n.expression?tt(!0):function(){var e=t.token,i=[];for(t.input.push_directives_stack(),n.module&&t.input.add_directive("use strict");!r("eof");)i.push(x());t.input.pop_directives_stack();var o=u(),a=n.toplevel;return a?(a.body=a.body.concat(i),a.end=o):a=new W({start:e,body:i,end:o}),a}()}function Dt(e,n){qn.call(this),this.before=e,this.after=n}function yt(e,n,t){this.name=n.name,this.orig=[n],this.init=t,this.eliminated=0,this.scope=e,this.references=[],this.replaced=0,this.global=!1,this.export=!1,this.mangled_name=null,this.undeclared=!1,this.id=yt.next_id++}function bt(e,n){var i=e.enclosed;e:for(;;){var r=Et(++e.cname);if(rt(r)&&!t(r,n.reserved)){for(var o=i.length;--o>=0;){var a=i[o];if(r==(a.mangled_name||a.unmangleable(n)&&a.name))continue e}return r}}}Dt.prototype=new qn,function(e){function n(n,t){n.DEFMETHOD("transform",function(n,i){var r,o;return n.push(this),n.before&&(r=n.before(this,t,i)),r===e&&(t(r=this,n),n.after&&(o=n.after(r,i))!==e&&(r=o)),n.pop(),r})}function t(e,n){return d(e,function(e){return e.transform(n,!0)})}n(F,u),n(N,function(e,n){e.label=e.label.transform(n),e.body=e.body.transform(n)}),n(S,function(e,n){e.body=e.body.transform(n)}),n($,function(e,n){e.body=t(e.body,n)}),n(H,function(e,n){e.body=e.body.transform(n),e.condition=e.condition.transform(n)}),n(R,function(e,n){e.condition=e.condition.transform(n),e.body=e.body.transform(n)}),n(P,function(e,n){e.init&&(e.init=e.init.transform(n)),e.condition&&(e.condition=e.condition.transform(n)),e.step&&(e.step=e.step.transform(n)),e.body=e.body.transform(n)}),n(U,function(e,n){e.init=e.init.transform(n),e.object=e.object.transform(n),e.body=e.body.transform(n)}),n(V,function(e,n){e.expression=e.expression.transform(n),e.body=e.body.transform(n)}),n(oe,function(e,n){e.value&&(e.value=e.value.transform(n))}),n(ue,function(e,n){e.label&&(e.label=e.label.transform(n))}),n(le,function(e,n){e.condition=e.condition.transform(n),e.body=e.body.transform(n),e.alternative&&(e.alternative=e.alternative.transform(n))}),n(pe,function(e,n){e.expression=e.expression.transform(n),e.body=t(e.body,n)}),n(me,function(e,n){e.expression=e.expression.transform(n),e.body=t(e.body,n)}),n(_e,function(e,n){e.body=t(e.body,n),e.bcatch&&(e.bcatch=e.bcatch.transform(n)),e.bfinally&&(e.bfinally=e.bfinally.transform(n))}),n(ve,function(e,n){e.argname&&(e.argname=e.argname.transform(n)),e.body=t(e.body,n)}),n(De,function(e,n){e.definitions=t(e.definitions,n)}),n(Fe,function(e,n){e.name=e.name.transform(n),e.value&&(e.value=e.value.transform(n))}),n(ee,function(e,n){e.names=t(e.names,n)}),n(X,function(e,n){e.name&&(e.name=e.name.transform(n)),e.argnames=t(e.argnames,n),e.body instanceof F?e.body=e.body.transform(n):e.body=t(e.body,n)}),n(ke,function(e,n){e.expression=e.expression.transform(n),e.args=t(e.args,n)}),n(Be,function(e,n){e.expressions=t(e.expressions,n)}),n(Te,function(e,n){e.expression=e.expression.transform(n)}),n(Oe,function(e,n){e.expression=e.expression.transform(n),e.property=e.property.transform(n)}),n(Mn,function(e,n){e.expression&&(e.expression=e.expression.transform(n))}),n($n,function(e,n){e.expression=e.expression.transform(n)}),n($e,function(e,n){e.expression=e.expression.transform(n)}),n(ze,function(e,n){e.left=e.left.transform(n),e.right=e.right.transform(n)}),n(Ne,function(e,n){e.condition=e.condition.transform(n),e.consequent=e.consequent.transform(n),e.alternative=e.alternative.transform(n)}),n(He,function(e,n){e.elements=t(e.elements,n)}),n(Re,function(e,n){e.properties=t(e.properties,n)}),n(Pe,function(e,n){e.key instanceof F&&(e.key=e.key.transform(n)),e.value=e.value.transform(n)}),n(We,function(e,n){e.name&&(e.name=e.name.transform(n)),e.extends&&(e.extends=e.extends.transform(n)),e.properties=t(e.properties,n)}),n(G,function(e,n){e.expression=e.expression.transform(n)}),n(we,function(e,n){e.foreign_name=e.foreign_name.transform(n),e.name=e.name.transform(n)}),n(xe,function(e,n){e.imported_name&&(e.imported_name=e.imported_name.transform(n)),e.imported_names&&t(e.imported_names,n),e.module_name=e.module_name.transform(n)}),n(Ae,function(e,n){e.exported_definition&&(e.exported_definition=e.exported_definition.transform(n)),e.exported_value&&(e.exported_value=e.exported_value.transform(n)),e.exported_names&&t(e.exported_names,n),e.module_name&&(e.module_name=e.module_name.transform(n))}),n(te,function(e,n){e.segments=t(e.segments,n)}),n(ne,function(e,n){e.prefix=e.prefix.transform(n),e.template_string=e.template_string.transform(n)})}(),yt.next_id=1,yt.prototype={unmangleable:function(e){return e||(e={}),this.global&&!e.toplevel||this.export||this.undeclared||!e.eval&&this.scope.pinned()||(this.orig[0]instanceof sn||this.orig[0]instanceof on)&&w(e.keep_fnames,this.orig[0].name)||this.orig[0]instanceof an||(this.orig[0]instanceof cn||this.orig[0]instanceof un)&&w(e.keep_classnames,this.orig[0].name)},mangle:function(e){var n=e.cache&&e.cache.props;if(this.global&&n&&n.has(this.name))this.mangled_name=n.get(this.name);else if(!this.mangled_name&&!this.unmangleable(e)){var t,i=this.scope,r=this.orig[0];e.ie8&&r instanceof sn&&(i=i.parent_scope),(t=this.redefined())?this.mangled_name=t.mangled_name||t.name:this.mangled_name=i.next_mangled(e,this),this.global&&n&&n.set(this.name,this.mangled_name)}},redefined:function(){return this.defun&&this.defun.variables.get(this.name)}},W.DEFMETHOD("figure_out_scope",function(e){e=a(e,{cache:null,ie8:!1,safari10:!1});var n=this,t=n.parent_scope=null,i=new y,r=null,o=null,s=[],u=new qn(function(n,a){if(n.is_block_scope()){var c=t;return n.block_scope=t=new Y(n),t.init_scope_vars(c),n instanceof Y||(t.uses_with=c.uses_with,t.uses_eval=c.uses_eval,t.directives=c.directives),e.safari10&&(n instanceof P||n instanceof U)&&s.push(t),a(),t=c,!0}if(n instanceof ee)return o=n,a(),o=null,!0;if(n instanceof Y){n.init_scope_vars(t);c=t;var f=r,l=i;return r=t=n,i=new y,a(),t=c,r=f,i=l,!0}if(n instanceof N){var p=n.label;if(i.has(p.name))throw new Error(m("Label {name} defined twice",p));return i.set(p.name,p),a(),i.del(p.name),!0}if(n instanceof V)for(var d=t;d;d=d.parent_scope)d.uses_with=!0;else{if(n instanceof Je&&(n.scope=t),n instanceof dn&&(n.thedef=n,n.references=[]),n instanceof sn)r.def_function(n,"arguments"==n.name?void 0:r);else if(n instanceof on)v((n.scope=r.parent_scope.get_defun_scope()).def_function(n,r),1);else if(n instanceof cn)v(r.def_variable(n,r),1);else if(n instanceof ln)t.def_variable(n);else if(n instanceof un)v((n.scope=r.parent_scope).def_function(n,r),1);else if(n instanceof Qe||n instanceof tn||n instanceof nn){if(D((h=n instanceof en?t.def_variable(n,null):r.def_variable(n,"SymbolVar"==n.TYPE?null:void 0)).orig,function(e){return e===n||(n instanceof en?e instanceof sn:!(e instanceof tn||e instanceof nn))})||ct(n.name+" redeclared",n.start.file,n.start.line,n.start.col,n.start.pos),n instanceof rn||v(h,2),h.destructuring=o,r!==t){n.mark_enclosed(e);var h=t.find_variable(n);n.thedef!==h&&(n.thedef=h,n.reference(e))}}else if(n instanceof fn)t.def_variable(n).defun=r;else if(n instanceof vn){var _=i.get(n.name);if(!_)throw new Error(m("Undefined label {name} [{line},{col}]",{name:n.name,line:n.start.line,col:n.start.col}));n.thedef=_}t instanceof W||!(n instanceof Ae||n instanceof xe)||ct(n.TYPE+" statement may only appear at top level",n.start.file,n.start.line,n.start.col,n.start.pos)}function v(e,n){if(o){var t=0;do{n++}while(u.parent(t++)!==o)}var i=u.parent(n);e.export=i instanceof Ae}});n.walk(u),n.globals=new y;u=new qn(function(t,i){if(t instanceof ue&&t.label)return t.label.thedef.references.push(t),!0;if(t instanceof hn){var r,o=t.name;if("eval"==o&&u.parent()instanceof ke)for(var a=t.scope;a&&!a.uses_eval;a=a.parent_scope)a.uses_eval=!0;return u.parent()instanceof we&&u.parent(1).module_name||!(r=t.scope.find_variable(o))?(r=n.def_global(t),t instanceof mn&&(r.export=t.TYPE)):r.scope instanceof X&&"arguments"==o&&(r.scope.uses_arguments=!0),t.thedef=r,t.reference(e),!t.scope.is_block_scope()||r.orig[0]instanceof en||(t.scope=t.scope.get_defun_scope()),!0}var s;if(t instanceof fn&&(s=t.definition().redefined()))for(a=t.scope;a&&(h(a.enclosed,s),a!==s.scope);)a=a.parent_scope});if(n.walk(u),(e.ie8||e.safari10)&&n.walk(new qn(function(t,i){if(t instanceof fn){var r=t.name,o=t.thedef.references,a=t.thedef.defun,s=a.find_variable(r)||n.globals.get(r)||a.def_variable(t);return o.forEach(function(n){n.thedef=s,n.reference(e)}),t.thedef=s,t.reference(e),!0}})),e.safari10)for(var c=0;c<s.length;c++){(t=s[c]).parent_scope.variables.each(function(e){h(t.enclosed,e)})}}),W.DEFMETHOD("def_global",function(e){var n=this.globals,t=e.name;if(n.has(t))return n.get(t);var i=new yt(this,e);return i.undeclared=!0,i.global=!0,n.set(t,i),i}),Y.DEFMETHOD("init_scope_vars",function(e){this.variables=new y,this.functions=new y,this.uses_with=!1,this.uses_eval=!1,this.parent_scope=e,this.enclosed=[],this.cname=-1}),F.DEFMETHOD("is_block_scope",c),We.DEFMETHOD("is_block_scope",c),X.DEFMETHOD("is_block_scope",c),W.DEFMETHOD("is_block_scope",c),de.DEFMETHOD("is_block_scope",c),$.DEFMETHOD("is_block_scope",f),j.DEFMETHOD("is_block_scope",f),X.DEFMETHOD("init_scope_vars",function(){Y.prototype.init_scope_vars.apply(this,arguments),this.uses_arguments=!1,this.def_variable(new rn({name:"arguments",start:this.start,end:this.end}))}),K.DEFMETHOD("init_scope_vars",function(){Y.prototype.init_scope_vars.apply(this,arguments),this.uses_arguments=!1}),Je.DEFMETHOD("mark_enclosed",function(e){for(var n=this.definition(),t=this.scope;t&&(h(t.enclosed,n),e.keep_fnames&&t.functions.each(function(t){w(e.keep_fnames,t.name)&&h(n.scope.enclosed,t)}),t!==n.scope);)t=t.parent_scope}),Je.DEFMETHOD("reference",function(e){this.definition().references.push(this),this.mark_enclosed(e)}),Y.DEFMETHOD("find_variable",function(e){return e instanceof Je&&(e=e.name),this.variables.get(e)||this.parent_scope&&this.parent_scope.find_variable(e)}),Y.DEFMETHOD("def_function",function(e,n){var t=this.def_variable(e,n);return(!t.init||t.init instanceof Q)&&(t.init=n),this.functions.set(e.name,t),t}),Y.DEFMETHOD("def_variable",function(e,n){var t=this.variables.get(e.name);return t?(t.orig.push(e),t.init&&(t.scope!==e.scope||t.init instanceof Z)&&(t.init=n)):(t=new yt(this,e,n),this.variables.set(e.name,t),t.global=!this.parent_scope),e.thedef=t}),Y.DEFMETHOD("next_mangled",function(e){return bt(this,e)}),W.DEFMETHOD("next_mangled",function(e){var n;do{n=bt(this,e)}while(t(n,this.mangled_names));return n}),Z.DEFMETHOD("next_mangled",function(e,n){for(var t=n.orig[0]instanceof rn&&this.name&&this.name.definition(),i=t?t.mangled_name||t.name:null;;){var r=bt(this,e);if(!i||i!=r)return r}}),Je.DEFMETHOD("unmangleable",function(e){var n=this.definition();return!n||n.unmangleable(e)}),dn.DEFMETHOD("unmangleable",c),Je.DEFMETHOD("unreferenced",function(){return!this.definition().references.length&&!this.scope.pinned()}),Je.DEFMETHOD("definition",function(){return this.thedef}),Je.DEFMETHOD("global",function(){return this.definition().global}),W.DEFMETHOD("_default_mangler_options",function(e){return(e=a(e,{eval:!1,ie8:!1,keep_classnames:!1,keep_fnames:!1,module:!1,reserved:[],toplevel:!1})).module&&(e.toplevel=!0),Array.isArray(e.reserved)||(e.reserved=[]),h(e.reserved,"arguments"),e}),W.DEFMETHOD("mangle_names",function(e){e=this._default_mangler_options(e);var n=-1,i=[],r=this.mangled_names=[];e.cache&&(this.globals.each(a),e.cache.props&&e.cache.props.each(function(e){h(r,e)}));var o=new qn(function(t,r){if(t instanceof N){var o=n;return r(),n=o,!0}if(t instanceof Y)t.variables.each(a);else if(t.is_block_scope())t.block_scope.variables.each(a);else{if(t instanceof dn){var s;do{s=Et(++n)}while(!rt(s));return t.mangled_name=s,!0}!e.ie8&&!e.safari10&&t instanceof fn&&i.push(t.definition())}});function a(n){t(n.name,e.reserved)||n.export||i.push(n)}this.walk(o),i.forEach(function(n){n.mangle(e)})}),W.DEFMETHOD("find_colliding_names",function(e){var n=e.cache&&e.cache.props,t=Object.create(null);return e.reserved.forEach(i),this.globals.each(r),this.walk(new qn(function(e){e instanceof Y&&e.variables.each(r),e instanceof fn&&r(e.definition())})),t;function i(e){t[e]=!0}function r(t){var r=t.name;if(t.global&&n&&n.has(r))r=n.get(r);else if(!t.unmangleable(e))return;i(r)}}),W.DEFMETHOD("expand_names",function(e){Et.reset(),Et.sort(),e=this._default_mangler_options(e);var n=this.find_colliding_names(e),i=0;function r(r){if(!(r.global&&e.cache||r.unmangleable(e)||t(r.name,e.reserved))){var o=r.redefined();r.name=o?o.name:function(){var e;do{e=Et(i++)}while(n[e]||!rt(e));return e}(),r.orig.forEach(function(e){e.name=r.name}),r.references.forEach(function(e){e.name=r.name})}}this.globals.each(r),this.walk(new qn(function(e){e instanceof Y&&e.variables.each(r),e instanceof fn&&r(e.definition())}))}),F.DEFMETHOD("tail_node",l),Be.DEFMETHOD("tail_node",function(){return this.expressions[this.expressions.length-1]}),W.DEFMETHOD("compute_char_frequency",function(e){e=this._default_mangler_options(e);try{F.prototype.print=function(n,t){this._print(n,t),this instanceof Je&&!this.unmangleable(e)?Et.consider(this.name,-1):e.properties&&(this instanceof Te?Et.consider(this.property,-1):this instanceof Oe&&function e(n){n instanceof bn?Et.consider(n.value,-1):n instanceof Ne?(e(n.consequent),e(n.alternative)):n instanceof Be&&e(n.tail_node())}(this.property))},Et.consider(this.print_to_string(),1)}finally{F.prototype.print=F.prototype._print}Et.sort()});var Et=function(){var e,n,t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_".split(""),i="0123456789".split("");function r(){n=Object.create(null),t.forEach(function(e){n[e]=0}),i.forEach(function(e){n[e]=0})}function o(e,t){return n[t]-n[e]}function a(n){var t="",i=54;n++;do{t+=e[--n%i],n=Math.floor(n/i),i=64}while(n>0);return t}return a.consider=function(e,t){for(var i=e.length;--i>=0;)n[e[i]]+=t},a.sort=function(){e=v(t,o).concat(v(i,o))},a.reset=r,r(),a}(),wt=/^$|[;{][\s\n]*$/;function xt(e){return"comment2"==e.type&&/@preserve|@license|@cc_on/i.test(e.value)}function At(e){var n=!e;void 0===(e=a(e,{ascii_only:!1,beautify:!1,braces:!1,comments:!1,ecma:5,ie8:!1,indent_level:4,indent_start:0,inline_script:!0,keep_quoted_props:!1,max_line_len:!1,preamble:null,quote_keys:!1,quote_style:0,safari10:!1,semicolons:!0,shebang:!0,shorthand:void 0,source_map:null,webkit:!1,width:80,wrap_iife:!1},!0)).shorthand&&(e.shorthand=e.ecma>5);var t=c;if(e.comments){var i=e.comments;if("string"==typeof e.comments&&/^\/.*\/[a-zA-Z]*$/.test(e.comments)){var r=e.comments.lastIndexOf("/");i=new RegExp(e.comments.substr(1,r-1),e.comments.substr(r+1))}t=i instanceof RegExp?function(e){return"comment5"!=e.type&&i.test(e.value)}:"function"==typeof i?function(e){return"comment5"!=e.type&&i(this,e)}:"some"===i?xt:f}var o=0,s=0,l=1,p=0,d="",h=e.ascii_only?function(n,t){return e.ecma>=6&&(n=n.replace(/[\ud800-\udbff][\udc00-\udfff]/g,function(e){var n,t;return"\\u{"+(n=e,t=0,nt(n.charAt(t))?65536+(n.charCodeAt(t)-55296<<10)+n.charCodeAt(t+1)-56320:n.charCodeAt(t)).toString(16)+"}"})),n.replace(/[\u0000-\u001f\u007f-\uffff]/g,function(e){var n=e.charCodeAt(0).toString(16);if(n.length<=2&&!t){for(;n.length<2;)n="0"+n;return"\\x"+n}for(;n.length<4;)n="0"+n;return"\\u"+n})}:function(e){for(var n="",t=0,i=e.length;t<i;t++)nt(e[t])&&!tt(e[t+1])||tt(e[t])&&!nt(e[t-1])?n+="\\u"+e.charCodeAt(t).toString(16):n+=e[t];return n};function m(n,t){var i=function(n,t){var i=0,r=0;function o(){return"'"+n.replace(/\x27/g,"\\'")+"'"}function a(){return'"'+n.replace(/\x22/g,'\\"')+'"'}if(n=n.replace(/[\\\b\f\n\r\v\t\x22\x27\u2028\u2029\0\ufeff]/g,function(t,o){switch(t){case'"':return++i,'"';case"'":return++r,"'";case"\\":return"\\\\";case"\n":return"\\n";case"\r":return"\\r";case"\t":return"\\t";case"\b":return"\\b";case"\f":return"\\f";case"\v":return e.ie8?"\\x0B":"\\v";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";case"\ufeff":return"\\ufeff";case"\0":return/[0-9]/.test(et(n,o+1))?"\\x00":"\\0"}return t}),n=h(n),"`"===t)return"`"+n.replace(/`/g,"\\`")+"`";switch(e.quote_style){case 1:return o();case 2:return a();case 3:return"'"==t?o():a();default:return i>r?o():a()}}(n,t);return e.inline_script&&(i=(i=(i=i.replace(/<\x2f(script)([>\/\t\n\f\r ])/gi,"<\\/$1$2")).replace(/\x3c!--/g,"\\x3c!--")).replace(/--\x3e/g,"--\\x3e")),i}function _(n){return function e(n,t){if(t<=0)return"";if(1==t)return n;var i=e(n,t>>1);return i+=i,1&t&&(i+=n),i}(" ",e.indent_start+o-n*e.indent_level)}var v,y,b=!1,E=!1,w=!1,x=0,A=!1,C=!1,B=-1,S="",T=e.source_map&&[],O=T?function(){T.forEach(function(n){try{e.source_map.add(n.token.file,n.line,n.col,n.token.line,n.token.col,n.name||"name"!=n.token.type?n.name:n.token.value)}catch(e){null!=n.token.file&&F.warn("Couldn't figure out mapping for {file}:{line},{col} \u2192 {cline},{ccol} [{name}]",{file:n.token.file,line:n.token.line,col:n.token.col,cline:n.line,ccol:n.col,name:n.name||""})}}),T=[]}:u,$=e.max_line_len?function(){if(s>e.max_line_len){if(x){var n=d.slice(0,x),t=d.slice(x);if(T){var i=t.length-s;T.forEach(function(e){e.line++,e.col+=i})}d=n+"\n"+t,l++,p++,s=t.length}s>e.max_line_len&&F.warn("Output exceeds {max_line_len} characters",e)}x&&(x=0,O())}:u,M=g("( [ + * / - , . `");function q(n){var t=et(n=String(n),0),i=et(S,S.length-1);A&&t&&(A=!1,"\n"!=t&&(q("\n"),N())),C&&t&&(C=!1,/[\s;})]/.test(t)||z()),B=-1;i=S.charAt(S.length-1);w&&(w=!1,(":"==i&&"}"==t||(!t||";}".indexOf(t)<0)&&";"!=i)&&(e.semicolons||M(t)?(d+=";",s++,p++):($(),d+="\n",p++,l++,s=0,/^\s+$/.test(n)&&(w=!0)),e.beautify||(E=!1))),E&&((at(i)&&(at(t)||"\\"==t)||"/"==t&&t==i||("+"==t||"-"==t)&&t==S)&&(d+=" ",s++,p++),E=!1),v&&(T.push({token:v,name:y,line:l,col:s}),v=!1,x||O()),d+=n,b="("==n[n.length-1],p+=n.length;var r=n.split(/\r?\n/),o=r.length-1;l+=o,s+=r[0].length,o>0&&($(),s=r[o].length),S=n}var z=e.beautify?function(){q(" ")}:function(){E=!0},N=e.beautify?function(n){e.beautify&&q(_(n?.5:0))}:u,j=e.beautify?function(e,n){!0===e&&(e=P());var t=o;o=e;var i=n();return o=t,i}:function(e,n){return n()},I=e.beautify?function(){if(B<0)return q("\n");"\n"!=d[B]&&(d=d.slice(0,B)+"\n"+d.slice(B),p++,l++),B++}:e.max_line_len?function(){$(),x=d.length}:u,H=e.beautify?function(){q(";")}:function(){w=!0};function R(){w=!1,q(";")}function P(){return o+e.indent_level}function U(){return x&&$(),d}function L(){var e=d.lastIndexOf("\n");return/^ *$/.test(d.slice(e+1))}var V=[];return{get:U,toString:U,indent:N,indentation:function(){return o},current_width:function(){return s-o},should_break:function(){return e.width&&this.current_width()>=e.width},has_parens:function(){return b},newline:I,print:q,star:function(){q("*")},space:z,comma:function(){q(","),z()},colon:function(){q(":"),z()},last:function(){return S},semicolon:H,force_semicolon:R,to_utf8:h,print_name:function(e){q(function(e){return e=e.toString(),e=h(e,!0)}(e))},print_string:function(e,n,t){var i=m(e,n);!0===t&&-1===i.indexOf("\\")&&(wt.test(d)||R(),R()),q(i)},print_template_string_chars:function(e){var n=m(e,"`").replace(/\${/g,"\\${");return q(n.substr(1,n.length-2))},encode_string:m,next_indent:P,with_indent:j,with_block:function(e){var n;return q("{"),I(),j(P(),function(){n=e()}),N(),q("}"),n},with_parens:function(e){q("(");var n=e();return q(")"),n},with_square:function(e){q("[");var n=e();return q("]"),n},add_mapping:T?function(e,n){v=e,y=n}:u,option:function(n){return e[n]},prepend_comments:n?u:function(n){var i=this,r=n.start;if(r&&(!r.comments_before||r.comments_before._dumped!==i)){var o=r.comments_before;if(o||(o=r.comments_before=[]),o._dumped=i,n instanceof oe&&n.value){var a=new qn(function(e){var n=a.parent();if(!(n instanceof oe||n instanceof ze&&n.left===e||"Call"==n.TYPE&&n.expression===e||n instanceof Ne&&n.condition===e||n instanceof Te&&n.expression===e||n instanceof Be&&n.expressions[0]===e||n instanceof Oe&&n.expression===e||n instanceof qe))return!0;if(e.start){var t=e.start.comments_before;t&&t._dumped!==i&&(t._dumped=i,o=o.concat(t))}});a.push(n),n.value.walk(a)}if(0==p){o.length>0&&e.shebang&&"comment5"==o[0].type&&(q("#!"+o.shift().value+"\n"),N());var s=e.preamble;s&&q(s.replace(/\r\n?|[\n\u2028\u2029]|\s*$/g,"\n"))}if(0!=(o=o.filter(t,n)).length){var u=L();o.forEach(function(e,n){u||(e.nlb?(q("\n"),N(),u=!0):n>0&&z()),/comment[134]/.test(e.type)?(q("//"+e.value.replace(/[@#]__PURE__/g," ")+"\n"),N(),u=!0):"comment2"==e.type&&(q("/*"+e.value.replace(/[@#]__PURE__/g," ")+"*/"),u=!1)}),u||(r.nlb?(q("\n"),N()):z())}}},append_comments:n||t===c?u:function(e,n){var i=e.end;if(i){var r=i[n?"comments_before":"comments_after"];if(r&&r._dumped!==this&&(e instanceof k||D(r,function(e){return!/comment[134]/.test(e.type)}))){r._dumped=this;var o=d.length;r.filter(t,e).forEach(function(e,t){C=!1,A?(q("\n"),N(),A=!1):e.nlb&&(t>0||!L())?(q("\n"),N()):(t>0||!n)&&z(),/comment[134]/.test(e.type)?(q("//"+e.value.replace(/[@#]__PURE__/g," ")),A=!0):"comment2"==e.type&&(q("/*"+e.value.replace(/[@#]__PURE__/g," ")+"*/"),C=!0)}),d.length>o&&(B=o)}}},line:function(){return l},col:function(){return s},pos:function(){return p},push_node:function(e){V.push(e)},pop_node:function(){return V.pop()},parent:function(e){return V[V.length-2-(e||0)]}}}function Ft(e,n){if(!(this instanceof Ft))return new Ft(e,n);Dt.call(this,this.before,this.after),void 0===e.defaults||e.defaults||(n=!0),this.options=a(e,{arguments:!1,arrows:!n,booleans:!n,booleans_as_integers:!1,collapse_vars:!n,comparisons:!n,computed_props:!n,conditionals:!n,dead_code:!n,defaults:!0,directives:!n,drop_console:!1,drop_debugger:!n,ecma:5,evaluate:!n,expression:!1,global_defs:!1,hoist_funs:!1,hoist_props:!n,hoist_vars:!1,ie8:!1,if_return:!n,inline:!n,join_vars:!n,keep_classnames:!1,keep_fargs:!0,keep_fnames:!1,keep_infinity:!1,loops:!n,module:!1,negate_iife:!n,passes:1,properties:!n,pure_getters:!n&&"strict",pure_funcs:null,reduce_funcs:!n,reduce_vars:!n,sequences:!n,side_effects:!n,switches:!n,top_retain:null,toplevel:!(!e||!e.top_retain),typeofs:!n,unsafe:!1,unsafe_arrows:!1,unsafe_comps:!1,unsafe_Function:!1,unsafe_math:!1,unsafe_methods:!1,unsafe_proto:!1,unsafe_regexp:!1,unsafe_undefined:!1,unused:!n,warnings:!1},!0);var t=this.options.global_defs;if("object"==typeof t)for(var i in t)/^@/.test(i)&&b(t,i)&&(t[i.slice(1)]=gt(t[i],{expression:!0}));!0===this.options.inline&&(this.options.inline=3);var r=this.options.pure_funcs;this.pure_funcs="function"==typeof r?r:r?function(e){return r.indexOf(e.expression.print_to_string())<0}:f;var o=this.options.top_retain;o instanceof RegExp?this.top_retain=function(e){return o.test(e.name)}:"function"==typeof o?this.top_retain=o:o&&("string"==typeof o&&(o=o.split(/,/)),this.top_retain=function(e){return o.indexOf(e.name)>=0}),this.options.module&&(this.directives["use strict"]=!0,this.options.toplevel=!0);var s=this.options.toplevel;this.toplevel="string"==typeof s?{funcs:/funcs/.test(s),vars:/vars/.test(s)}:{funcs:s,vars:s};var u=this.options.sequences;this.sequences_limit=1==u?800:0|u,this.warnings_produced={}}function kt(e,n){function t(e){h(n,e)}e.walk(new qn(function(e){e instanceof Ue&&e.quote?t(e.key):e instanceof Pe&&e.quote?t(e.key.name):e instanceof Oe&&Ct(e.property,t)}))}function Ct(e,n){e.walk(new qn(function(e){return e instanceof Be?Ct(e.tail_node(),n):e instanceof bn?n(e.value):e instanceof Ne&&(Ct(e.consequent,n),Ct(e.alternative,n)),!0}))}function Bt(e,n){var t=(n=a(n,{builtins:!1,cache:null,debug:!1,keep_quoted:!1,only_cache:!1,regex:null,reserved:null},!0)).reserved;Array.isArray(t)||(t=[]),n.builtins||function(e){var n={},t="object"==typeof global?global:self;function i(n){h(e,n)}["Symbol","Map","Promise","Proxy","Reflect","Set","WeakMap","WeakSet"].forEach(function(e){n[e]=t[e]||new Function}),["null","true","false","Infinity","-Infinity","undefined"].forEach(i),[Object,Array,Function,Number,String,Boolean,Error,Math,Date,RegExp,n.Symbol,ArrayBuffer,DataView,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,eval,EvalError,Float32Array,Float64Array,Int8Array,Int16Array,Int32Array,isFinite,isNaN,JSON,n.Map,parseFloat,parseInt,n.Promise,n.Proxy,RangeError,ReferenceError,n.Reflect,n.Set,SyntaxError,TypeError,Uint8Array,Uint8ClampedArray,Uint16Array,Uint32Array,URIError,n.WeakMap,n.WeakSet].forEach(function(e){Object.getOwnPropertyNames(e).map(i),e.prototype&&Object.getOwnPropertyNames(e.prototype).map(i)})}(t);var i,r=-1;n.cache?(i=n.cache.props).each(function(e){h(t,e)}):i=new y;var o,s=n.regex,u=!1!==n.debug;u&&(o=!0===n.debug?"":n.debug);var c=[],f=[];return e.walk(new qn(function(e){e instanceof Ue?"string"==typeof e.key&&d(e.key):e instanceof Pe?d(e.key.name):e instanceof Te?d(e.property):e instanceof Oe?Ct(e.property,d):e instanceof ke&&"Object.defineProperty"==e.expression.print_to_string()&&Ct(e.args[1],d)})),e.transform(new Dt(function(e){e instanceof Ue?"string"==typeof e.key&&(e.key=m(e.key)):e instanceof Pe?e.key.name=m(e.key.name):e instanceof Te?e.property=m(e.property):!n.keep_quoted&&e instanceof Oe?e.property=_(e.property):e instanceof ke&&"Object.defineProperty"==e.expression.print_to_string()&&(e.args[1]=_(e.args[1]))}));function l(e){return!(f.indexOf(e)>=0)&&(!(t.indexOf(e)>=0)&&(n.only_cache?i.has(e):!/^-?[0-9]+(\.[0-9]+)?(e[+-][0-9]+)?$/.test(e)))}function p(e){return!(s&&!s.test(e))&&(!(t.indexOf(e)>=0)&&(i.has(e)||c.indexOf(e)>=0))}function d(e){l(e)&&h(c,e),p(e)||h(f,e)}function m(e){if(!p(e))return e;var n=i.get(e);if(!n){if(u){var t="_$"+e+"$"+o+"_";l(t)&&(n=t)}if(!n)do{n=Et(++r)}while(!l(n));i.set(e,n)}return n}function _(e){return e.transform(new Dt(function(e){if(e instanceof Be){var n=e.expressions.length-1;e.expressions[n]=_(e.expressions[n])}else e instanceof bn?e.value=m(e.value):e instanceof Ne&&(e.consequent=_(e.consequent),e.alternative=_(e.alternative));return e}))}}!function(){function e(e,n){e.DEFMETHOD("_codegen",n)}var n=!1,t=null,i=null;function r(e,n){Array.isArray(e)?e.forEach(function(e){r(e,n)}):e.DEFMETHOD("needs_parens",n)}function o(e,t,i,r){var o=e.length-1;n=r,e.forEach(function(e,r){!0!==n||e instanceof B||e instanceof q||e instanceof S&&e.body instanceof bn||(n=!1),e instanceof q||(i.indent(),e.print(i),r==o&&t||(i.newline(),t&&i.newline())),!0===n&&e instanceof S&&e.body instanceof bn&&(n=!1)}),n=!1}function a(e,n){n.print("{"),n.with_indent(n.next_indent(),function(){n.append_comments(e,!0)}),n.print("}")}function s(e,n,t){e.body.length>0?n.with_block(function(){o(e.body,!1,n,t)}):a(e,n)}function f(e,n,t){var i=!1;t&&e.walk(new qn(function(e){return!!(i||e instanceof Y)||(e instanceof ze&&"in"==e.operator?(i=!0,!0):void 0)})),e.print(n,i)}function l(e,n,t){t.option("quote_keys")?t.print_string(e):""+ +e==e&&e>=0?t.print(h(e)):(jn(e)?!t.option("ie8"):st(e))?n&&t.option("keep_quoted_props")?t.print_string(e,n):t.print_name(e):t.print_string(e,n)}function p(e,n){n.option("braces")?m(e,n):!e||e instanceof q?n.force_semicolon():e.print(n)}function d(e,n){return e.args.length>0||n.option("beautify")}function h(e){var n,t=e.toString(10),i=[t.replace(/^0\./,".").replace("e+","e")];return Math.floor(e)===e?(e>=0?i.push("0x"+e.toString(16).toLowerCase(),"0"+e.toString(8)):i.push("-0x"+(-e).toString(16).toLowerCase(),"-0"+(-e).toString(8)),(n=/^(.*?)(0+)$/.exec(e))&&i.push(n[1]+"e"+n[2].length)):(n=/^0?\.(0+)(.*)$/.exec(e))&&i.push(n[2]+"e-"+(n[1].length+n[2].length),t.substr(t.indexOf("."))),function(e){for(var n=e[0],t=n.length,i=1;i<e.length;++i)e[i].length<t&&(t=(n=e[i]).length);return n}(i)}function m(e,n){!e||e instanceof q?n.print("{}"):e instanceof M?e.print(n):n.with_block(function(){n.indent(),e.print(n),n.newline()})}function _(e,n){e.forEach(function(e){e.DEFMETHOD("add_source_map",n)})}F.DEFMETHOD("print",function(e,n){var r=this,o=r._codegen;function a(){e.prepend_comments(r),r.add_source_map(e),o(r,e),e.append_comments(r)}r instanceof Y?t=r:!i&&r instanceof B&&"use asm"==r.value&&(i=t),e.push_node(r),n||r.needs_parens(e)?e.with_parens(a):a(),e.pop_node(),r===i&&(i=null)}),F.DEFMETHOD("_print",F.prototype.print),F.DEFMETHOD("print_to_string",function(e){var n=At(e);return this.print(n),n.get()}),r(F,c),r(Z,function(e){if(!e.has_parens()&&E(e))return!0;var n;if(e.option("webkit")&&((n=e.parent())instanceof Se&&n.expression===this))return!0;return!!e.option("wrap_iife")&&((n=e.parent())instanceof ke&&n.expression===this)}),r(K,function(e){var n=e.parent();return n instanceof Se&&n.expression===this}),r(Re,function(e){return!e.has_parens()&&E(e)}),r(Xe,E),r($e,function(e){var n=e.parent();return n instanceof Se&&n.expression===this||n instanceof ke&&n.expression===this||n instanceof ze&&"**"===n.operator&&this instanceof Me&&n.left===this&&"++"!==this.operator&&"--"!==this.operator}),r($n,function(e){var n=e.parent();return n instanceof Se&&n.expression===this||n instanceof ke&&n.expression===this||e.option("safari10")&&n instanceof Me}),r(Be,function(e){var n=e.parent();return n instanceof ke||n instanceof $e||n instanceof ze||n instanceof Fe||n instanceof Se||n instanceof He||n instanceof Pe||n instanceof Ne||n instanceof K||n instanceof Ie||n instanceof G||n instanceof L&&this===n.object||n instanceof Mn||n instanceof Ae}),r(ze,function(e){var n=e.parent();if(n instanceof ke&&n.expression===this)return!0;if(n instanceof $e)return!0;if(n instanceof Se&&n.expression===this)return!0;if(n instanceof ze){var t=n.operator,i=_t[t],r=this.operator,o=_t[r];if(i>o||i==o&&(this===n.right||"**"==t))return!0}}),r(Mn,function(e){var n=e.parent();return n instanceof ze&&"="!==n.operator||(n instanceof ke&&n.expression===this||(n instanceof Ne&&n.condition===this||(n instanceof $e||(n instanceof Se&&n.expression===this||void 0))))}),r(Se,function(e){var n=e.parent();if(n instanceof Ce&&n.expression===this){var t=!1;return this.walk(new qn(function(e){return!!(t||e instanceof Y)||(e instanceof ke?(t=!0,!0):void 0)})),t}}),r(ke,function(e){var n,t=e.parent();return!!(t instanceof Ce&&t.expression===this||t instanceof Ae&&t.is_default&&this.expression instanceof Z)||this.expression instanceof Z&&t instanceof Se&&t.expression===this&&(n=e.parent(1))instanceof je&&n.left===t}),r(Ce,function(e){var n=e.parent();if(!d(this,e)&&(n instanceof Se||n instanceof ke&&n.expression===this))return!0}),r(En,function(e){var n=e.parent();if(n instanceof Se&&n.expression===this){var t=this.getValue();if(t<0||/^0/.test(h(t)))return!0}}),r([je,Ne],function(e){var n=e.parent();return n instanceof $e||(n instanceof ze&&!(n instanceof je)||(n instanceof ke&&n.expression===this||(n instanceof Ne&&n.condition===this||(n instanceof Se&&n.expression===this||(this instanceof je&&this.left instanceof ee&&!1===this.left.is_array||void 0)))))}),e(B,function(e,n){n.print_string(e.value,e.quote),n.semicolon()}),e(G,function(e,n){n.print("..."),e.expression.print(n)}),e(ee,function(e,n){n.print(e.is_array?"[":"{");var t=e.names.length;e.names.forEach(function(e,i){i>0&&n.comma(),e.print(n),i==t-1&&e instanceof Cn&&n.comma()}),n.print(e.is_array?"]":"}")}),e(C,function(e,n){n.print("debugger"),n.semicolon()}),z.DEFMETHOD("_do_print_body",function(e){p(this.body,e)}),e(k,function(e,n){e.body.print(n),n.semicolon()}),e(W,function(e,n){o(e.body,!0,n,!0),n.print("")}),e(N,function(e,n){e.label.print(n),n.colon(),e.body.print(n)}),e(S,function(e,n){e.body.print(n),n.semicolon()}),e(M,function(e,n){s(e,n)}),e(q,function(e,n){n.semicolon()}),e(H,function(e,n){n.print("do"),n.space(),m(e.body,n),n.space(),n.print("while"),n.space(),n.with_parens(function(){e.condition.print(n)}),n.semicolon()}),e(R,function(e,n){n.print("while"),n.space(),n.with_parens(function(){e.condition.print(n)}),n.space(),e._do_print_body(n)}),e(P,function(e,n){n.print("for"),n.space(),n.with_parens(function(){e.init?(e.init instanceof De?e.init.print(n):f(e.init,n,!0),n.print(";"),n.space()):n.print(";"),e.condition?(e.condition.print(n),n.print(";"),n.space()):n.print(";"),e.step&&e.step.print(n)}),n.space(),e._do_print_body(n)}),e(U,function(e,n){n.print("for"),e.await&&(n.space(),n.print("await")),n.space(),n.with_parens(function(){e.init.print(n),n.space(),n.print(e instanceof L?"of":"in"),n.space(),e.object.print(n)}),n.space(),e._do_print_body(n)}),e(V,function(e,n){n.print("with"),n.space(),n.with_parens(function(){e.expression.print(n)}),n.space(),e._do_print_body(n)}),X.DEFMETHOD("_do_print",function(e,n){var t=this;n||(t.async&&(e.print("async"),e.space()),e.print("function"),t.is_generator&&e.star(),t.name&&e.space()),t.name instanceof Je?t.name.print(e):n&&t.name instanceof F&&e.with_square(function(){t.name.print(e)}),e.with_parens(function(){t.argnames.forEach(function(n,t){t&&e.comma(),n.print(e)})}),e.space(),s(t,e,!0)}),e(X,function(e,n){e._do_print(n)}),e(ne,function(e,n){var t=e.prefix,i=t instanceof K||t instanceof ze||t instanceof Ne||t instanceof Be||t instanceof $e;i&&n.print("("),e.prefix.print(n),i&&n.print(")"),e.template_string.print(n)}),e(te,function(e,n){var t=n.parent()instanceof ne;n.print("`");for(var i=0;i<e.segments.length;i++)e.segments[i]instanceof ie?t?n.print(e.segments[i].raw):n.print_template_string_chars(e.segments[i].value):(n.print("${"),e.segments[i].print(n),n.print("}"));n.print("`")}),K.DEFMETHOD("_do_print",function(e){var n=this,t=e.parent(),i=t instanceof ze||t instanceof $e||t instanceof ke&&n===t.expression;i&&e.print("("),n.async&&(e.print("async"),e.space()),1===n.argnames.length&&n.argnames[0]instanceof Je?n.argnames[0].print(e):e.with_parens(function(){n.argnames.forEach(function(n,t){t&&e.comma(),n.print(e)})}),e.space(),e.print("=>"),e.space(),n.body instanceof F?n.body.print(e):s(n,e),i&&e.print(")")}),oe.DEFMETHOD("_do_print",function(e,n){e.print(n),this.value&&(e.space(),this.value.print(e)),e.semicolon()}),e(ae,function(e,n){e._do_print(n,"return")}),e(se,function(e,n){e._do_print(n,"throw")}),e(Mn,function(e,n){var t=e.is_star?"*":"";n.print("yield"+t),e.expression&&(n.space(),e.expression.print(n))}),e($n,function(e,n){n.print("await"),n.space();var t=e.expression,i=!(t instanceof ke||t instanceof hn||t instanceof Se||t instanceof $e||t instanceof yn);i&&n.print("("),e.expression.print(n),i&&n.print(")")}),ue.DEFMETHOD("_do_print",function(e,n){e.print(n),this.label&&(e.space(),this.label.print(e)),e.semicolon()}),e(ce,function(e,n){e._do_print(n,"break")}),e(fe,function(e,n){e._do_print(n,"continue")}),e(le,function(e,n){n.print("if"),n.space(),n.with_parens(function(){e.condition.print(n)}),n.space(),e.alternative?(!function(e,n){var t=e.body;if(n.option("braces")||n.option("ie8")&&t instanceof H)return m(t,n);if(!t)return n.force_semicolon();for(;;)if(t instanceof le){if(!t.alternative)return void m(e.body,n);t=t.alternative}else{if(!(t instanceof z))break;t=t.body}p(e.body,n)}(e,n),n.space(),n.print("else"),n.space(),e.alternative instanceof le?e.alternative.print(n):p(e.alternative,n)):e._do_print_body(n)}),e(pe,function(e,n){n.print("switch"),n.space(),n.with_parens(function(){e.expression.print(n)}),n.space();var t=e.body.length-1;t<0?a(e,n):n.with_block(function(){e.body.forEach(function(e,i){n.indent(!0),e.print(n),i<t&&e.body.length>0&&n.newline()})})}),de.DEFMETHOD("_do_print_body",function(e){e.newline(),this.body.forEach(function(n){e.indent(),n.print(e),e.newline()})}),e(he,function(e,n){n.print("default:"),e._do_print_body(n)}),e(me,function(e,n){n.print("case"),n.space(),e.expression.print(n),n.print(":"),e._do_print_body(n)}),e(_e,function(e,n){n.print("try"),n.space(),s(e,n),e.bcatch&&(n.space(),e.bcatch.print(n)),e.bfinally&&(n.space(),e.bfinally.print(n))}),e(ve,function(e,n){n.print("catch"),e.argname&&(n.space(),n.with_parens(function(){e.argname.print(n)})),n.space(),s(e,n)}),e(ge,function(e,n){n.print("finally"),n.space(),s(e,n)}),De.DEFMETHOD("_do_print",function(e,n){e.print(n),e.space(),this.definitions.forEach(function(n,t){t&&e.comma(),n.print(e)});var t=e.parent();(!(t instanceof P||t instanceof U)||t&&t.init!==this)&&e.semicolon()}),e(be,function(e,n){e._do_print(n,"let")}),e(ye,function(e,n){e._do_print(n,"var")}),e(Ee,function(e,n){e._do_print(n,"const")}),e(xe,function(e,n){n.print("import"),n.space(),e.imported_name&&e.imported_name.print(n),e.imported_name&&e.imported_names&&(n.print(","),n.space()),e.imported_names&&(1===e.imported_names.length&&"*"===e.imported_names[0].foreign_name.name?e.imported_names[0].print(n):(n.print("{"),e.imported_names.forEach(function(t,i){n.space(),t.print(n),i<e.imported_names.length-1&&n.print(",")}),n.space(),n.print("}"))),(e.imported_name||e.imported_names)&&(n.space(),n.print("from"),n.space()),e.module_name.print(n),n.semicolon()}),e(we,function(e,n){var t=n.parent()instanceof xe,i=e.name.definition();(i&&i.mangled_name||e.name.name)!==e.foreign_name.name?(t?n.print(e.foreign_name.name):e.name.print(n),n.space(),n.print("as"),n.space(),t?e.name.print(n):n.print(e.foreign_name.name)):e.name.print(n)}),e(Ae,function(e,n){if(n.print("export"),n.space(),e.is_default&&(n.print("default"),n.space()),e.exported_names)1===e.exported_names.length&&"*"===e.exported_names[0].name.name?e.exported_names[0].print(n):(n.print("{"),e.exported_names.forEach(function(t,i){n.space(),t.print(n),i<e.exported_names.length-1&&n.print(",")}),n.space(),n.print("}"));else if(e.exported_value)e.exported_value.print(n);else if(e.exported_definition&&(e.exported_definition.print(n),e.exported_definition instanceof De))return;e.module_name&&(n.space(),n.print("from"),n.space(),e.module_name.print(n)),(e.exported_value&&!(e.exported_value instanceof Q||e.exported_value instanceof Z||e.exported_value instanceof We)||e.module_name||e.exported_names)&&n.semicolon()}),e(Fe,function(e,n){if(e.name.print(n),e.value){n.space(),n.print("="),n.space();var t=n.parent(1),i=t instanceof P||t instanceof U;f(e.value,n,i)}}),e(ke,function(e,n){e.expression.print(n),e instanceof Ce&&!d(e,n)||((e.expression instanceof ke||e.expression instanceof X)&&n.add_mapping(e.start),n.with_parens(function(){e.args.forEach(function(e,t){t&&n.comma(),e.print(n)})}))}),e(Ce,function(e,n){n.print("new"),n.space(),ke.prototype._codegen(e,n)}),Be.DEFMETHOD("_do_print",function(e){this.expressions.forEach(function(n,t){t>0&&(e.comma(),e.should_break()&&(e.newline(),e.indent())),n.print(e)})}),e(Be,function(e,n){e._do_print(n)}),e(Te,function(e,n){var t=e.expression;t.print(n);var i=e.property;n.option("ie8")&&jn(i)?(n.print("["),n.add_mapping(e.end),n.print_string(i),n.print("]")):(t instanceof En&&t.getValue()>=0&&(/[xa-f.)]/i.test(n.last())||n.print(".")),n.print("."),n.add_mapping(e.end),n.print_name(i))}),e(Oe,function(e,n){e.expression.print(n),n.print("["),e.property.print(n),n.print("]")}),e(Me,function(e,n){var t=e.operator;n.print(t),(/^[a-z]/i.test(t)||/[+-]$/.test(t)&&e.expression instanceof Me&&/^[+-]/.test(e.expression.operator))&&n.space(),e.expression.print(n)}),e(qe,function(e,n){e.expression.print(n),n.print(e.operator)}),e(ze,function(e,n){var t=e.operator;e.left.print(n),">"==t[0]&&e.left instanceof qe&&"--"==e.left.operator?n.print(" "):n.space(),n.print(t),("<"==t||"<<"==t)&&e.right instanceof Me&&"!"==e.right.operator&&e.right.expression instanceof Me&&"--"==e.right.expression.operator?n.print(" "):n.space(),e.right.print(n)}),e(Ne,function(e,n){e.condition.print(n),n.space(),n.print("?"),n.space(),e.consequent.print(n),n.space(),n.colon(),e.alternative.print(n)}),e(He,function(e,n){n.with_square(function(){var t=e.elements,i=t.length;i>0&&n.space(),t.forEach(function(e,t){t&&n.comma(),e.print(n),t===i-1&&e instanceof Cn&&n.comma()}),i>0&&n.space()})}),e(Re,function(e,n){e.properties.length>0?n.with_block(function(){e.properties.forEach(function(e,t){t&&(n.print(","),n.newline()),n.indent(),e.print(n)}),n.newline()}):a(e,n)}),e(We,function(e,n){if(n.print("class"),n.space(),e.name&&(e.name.print(n),n.space()),e.extends){var t=!(e.extends instanceof hn||e.extends instanceof Se||e.extends instanceof Xe||e.extends instanceof Z);n.print("extends"),t?n.print("("):n.space(),e.extends.print(n),t?n.print(")"):n.space()}e.properties.length>0?n.with_block(function(){e.properties.forEach(function(e,t){t&&n.newline(),n.indent(),e.print(n)}),n.newline()}):n.print("{}")}),e(Ze,function(e,n){n.print("new.target")}),e(Ue,function(e,n){function t(e){var n=e.definition();return n?n.mangled_name||n.name:e.name}var i=n.option("shorthand");i&&e.value instanceof Je&&st(e.key)&&t(e.value)===e.key&&rt(e.key)?l(e.key,e.quote,n):i&&e.value instanceof Ie&&e.value.left instanceof Je&&st(e.key)&&t(e.value.left)===e.key?(l(e.key,e.quote,n),n.space(),n.print("="),n.space(),e.value.right.print(n)):(e.key instanceof F?n.with_square(function(){e.key.print(n)}):l(e.key,e.quote,n),n.colon(),e.value.print(n))}),Pe.DEFMETHOD("_print_getter_setter",function(e,n){var t=this;t.static&&(n.print("static"),n.space()),e&&(n.print(e),n.space()),t.key instanceof an?l(t.key.name,t.quote,n):n.with_square(function(){t.key.print(n)}),t.value._do_print(n,!0)}),e(Le,function(e,n){e._print_getter_setter("set",n)}),e(Ve,function(e,n){e._print_getter_setter("get",n)}),e(Ye,function(e,n){var t;e.is_generator&&e.async?t="async*":e.is_generator?t="*":e.async&&(t="async"),e._print_getter_setter(t,n)}),Je.DEFMETHOD("_do_print",function(e){var n=this.definition();e.print_name(n?n.mangled_name||n.name:this.name)}),e(Je,function(e,n){e._do_print(n)}),e(Cn,u),e(gn,function(e,n){n.print("this")}),e(Dn,function(e,n){n.print("super")}),e(yn,function(e,n){n.print(e.getValue())}),e(bn,function(e,t){t.print_string(e.getValue(),e.quote,n)}),e(En,function(e,n){i&&e.start&&null!=e.start.raw?n.print(e.start.raw):n.print(h(e.getValue()))}),e(wn,function(e,n){var t=e.getValue().toString();t=n.to_utf8(t),n.print(t);var i=n.parent();i instanceof ze&&/^in/.test(i.operator)&&i.left===e&&n.print(" ")}),_([F,N,W],u),_([He,M,ve,We,yn,C,De,B,ge,re,X,Ce,Re,z,Je,pe,de,_e],function(e){e.add_mapping(this.start)}),_([Ve,Le],function(e){e.add_mapping(this.start,this.key.name)}),_([Pe],function(e){e.add_mapping(this.start,this.key)})}(),Ft.prototype=new Dt,s(Ft.prototype,{option:function(e){return this.options[e]},exposed:function(e){if(e.export)return!0;if(e.global)for(var n=0,t=e.orig.length;n<t;n++)if(!this.toplevel[e.orig[n]instanceof on?"funcs":"vars"])return!0;return!1},in_boolean_context:function(){if(!this.option("booleans"))return!1;for(var e,n=this.self(),t=0;e=this.parent(t);t++){if(e instanceof S||e instanceof Ne&&e.condition===n||e instanceof I&&e.condition===n||e instanceof P&&e.condition===n||e instanceof le&&e.condition===n||e instanceof Me&&"!"==e.operator&&e.expression===n)return!0;if(!(e instanceof ze&&("&&"==e.operator||"||"==e.operator)||e instanceof Ne||e.tail_node()===n))return!1;n=e}},compress:function(e){e=e.resolve_defines(this),this.option("expression")&&e.process_expression(!0);for(var n=+this.options.passes||1,t=1/0,i=!1,r={ie8:this.option("ie8")},o=0;o<n;o++)if(e.figure_out_scope(r),0===o&&this.option("drop_console")&&(e=e.drop_console()),(o>0||this.option("reduce_vars"))&&e.reset_opt_flags(this),e=e.transform(this),n>1){var a=0;if(e.walk(new qn(function(){a++})),this.info("pass "+o+": last_count: "+t+", count: "+a),a<t)t=a,i=!1;else{if(i)break;i=!0}}return this.option("expression")&&e.process_expression(!1),e},info:function(){"verbose"==this.options.warnings&&F.warn.apply(F,arguments)},warn:function(e,n){if(this.options.warnings){var t=m(e,n);t in this.warnings_produced||(this.warnings_produced[t]=!0,F.warn.apply(F,arguments))}},clear_warnings:function(){this.warnings_produced={}},before:function(e,n,t){if(e._squeezed)return e;var i=!1;e instanceof Y&&(e=(e=e.hoist_properties(this)).hoist_declarations(this),i=!0),n(e,this),n(e,this);var r=e.optimize(this);return i&&r instanceof Y&&(r.drop_unused(this),n(r,this)),r===e&&(r._squeezed=!0),r}}),function(){function e(e,n){e.DEFMETHOD("optimize",function(e){if(this._optimized)return this;if(e.has_directive("use asm"))return this;var t=n(this,e);return t._optimized=!0,t})}function n(e,n){if(!((n=xn(n))instanceof F)){var t;if(e instanceof He){var i=e.elements;if("length"==n)return A(i.length,e);"number"==typeof n&&n in i&&(t=i[n])}else if(e instanceof Re){n=""+n;for(var r=e.properties,o=r.length;--o>=0;){if(!(r[o]instanceof Ue))return;t||r[o].key!==n||(t=r[o].value)}}return t instanceof hn&&t.fixed_value()||t}}function r(e,t,i,o,a,s){var u=t.parent(a),c=In(i,u);if(c)return c;if(!s&&u instanceof ke&&u.expression===i&&!(o instanceof K)&&!(o instanceof We)&&!u.is_expr_pure(e)&&(!(o instanceof Z)||!(u instanceof Ce)&&o.contains_this()))return!0;if(u instanceof He)return r(e,t,u,u,a+1);if(u instanceof Ue&&i===u.value){var f=t.parent(a+1);return r(e,t,f,f,a+2)}if(u instanceof Se&&u.expression===i){var l=n(o,u.property);return!s&&r(e,t,u,l,a+1)}}function o(e){return e instanceof K||e instanceof Z}function a(e){if(e instanceof gn)return!0;if(e instanceof hn)return e.definition().orig[0]instanceof sn;if(e instanceof Se){if((e=e.expression)instanceof hn){if(e.is_immutable())return!1;e=e.fixed_value()}return!e||!(e instanceof wn)&&(e instanceof yn||a(e))}return!1}function s(e,n){if(!(e instanceof hn))return!1;for(var t=e.definition().orig,i=t.length;--i>=0;)if(t[i]instanceof n)return!0}function h(e,n){for(var t,i=0;(t=e.parent(i++))&&!(t instanceof Y);)if(t instanceof ve&&t.argname){t=t.argname.definition().scope;break}return t.find_variable(n)}function v(e,n,t){return t||(t={}),n&&(t.start||(t.start=n.start),t.end||(t.end=n.end)),new e(t)}function x(e,n){return 1==n.length?n[0]:v(Be,e,{expressions:n.reduce(z,[])})}function A(e,n){switch(typeof e){case"string":return v(bn,n,{value:e});case"number":return isNaN(e)?v(Fn,n):isFinite(e)?1/e<0?v(Me,n,{operator:"-",expression:v(En,n,{value:-e})}):v(En,n,{value:e}):e<0?v(Me,n,{operator:"-",expression:v(Bn,n)}):v(Bn,n);case"boolean":return v(e?On:Tn,n);case"undefined":return v(kn,n);default:if(null===e)return v(An,n,{value:null});if(e instanceof RegExp)return v(wn,n,{value:e});throw new Error(m("Can't handle constant of type: {type}",{type:typeof e}))}}function O(e,n,t){return e instanceof Me&&"delete"==e.operator||e instanceof ke&&e.expression===n&&(t instanceof Se||t instanceof hn&&"eval"==t.name)?x(n,[v(En,n,{value:0}),t]):t}function z(e,n){return n instanceof Be?e.push.apply(e,n.expressions):e.push(n),e}function L(e){if(null===e)return[];if(e instanceof M)return e.body;if(e instanceof q)return[];if(e instanceof k)return[e];throw new Error("Can't convert thing to statement array")}function se(e){return null===e||(e instanceof q||e instanceof M&&0==e.body.length)}function we(e){return!(e instanceof Ge||e instanceof Q||e instanceof be||e instanceof Ee||e instanceof Ae||e instanceof xe)}function Le(e){return e instanceof j&&e.body instanceof M?e.body:e}function Ze(e){return"Call"==e.TYPE&&(e.expression instanceof Z||Ze(e.expression))}function tn(e){return e instanceof hn&&e.definition().undeclared}e(F,function(e,n){return e}),W.DEFMETHOD("drop_console",function(){return this.transform(new Dt(function(e){if("Call"==e.TYPE){var n=e.expression;if(n instanceof Se){for(var t=n.expression;t.expression;)t=t.expression;if(tn(t)&&"console"==t.name)return v(kn,e)}}}))}),F.DEFMETHOD("equivalent_to",function(e){return this.TYPE==e.TYPE&&this.print_to_string()==e.print_to_string()}),Y.DEFMETHOD("process_expression",function(e,n){var t=this,i=new Dt(function(r){if(e&&r instanceof S)return v(ae,r,{value:r.body});if(!e&&r instanceof ae){if(n){var o=r.value&&r.value.drop_side_effect_free(n,!0);return o?v(S,r,{body:o}):v(q,r)}return v(S,r,{body:r.value||v(Me,r,{operator:"void",expression:v(En,r,{value:0})})})}if(r instanceof We||r instanceof X&&r!==t)return r;if(r instanceof $){var a=r.body.length-1;a>=0&&(r.body[a]=r.body[a].transform(i))}else r instanceof le?(r.body=r.body.transform(i),r.alternative&&(r.alternative=r.alternative.transform(i))):r instanceof V&&(r.body=r.body.transform(i));return r});t.transform(i)}),function(e){function t(e,n){n.assignments=0,n.chained=!1,n.direct_access=!1,n.escaped=!1,n.scope.pinned()?n.fixed=!1:n.orig[0]instanceof nn||!e.exposed(n)?n.fixed=n.init:n.fixed=!1,n.recursive_refs=0,n.references=[],n.should_replace=void 0,n.single_use=void 0}function i(e,n,i){i.variables.each(function(i){t(n,i),null===i.fixed?(i.safe_ids=e.safe_ids,c(e,i,!0)):i.fixed&&(e.loop_ids[i.id]=e.in_loop,c(e,i,!0))})}function o(e,n){n.block_scope&&n.block_scope.variables.each(function(n){t(e,n)})}function a(e){e.safe_ids=Object.create(e.safe_ids)}function s(e){e.safe_ids=Object.getPrototypeOf(e.safe_ids)}function c(e,n,t){e.safe_ids[n.id]=t}function f(e,n){if("m"==n.single_use)return!1;if(e.safe_ids[n.id]){if(null==n.fixed){var t=n.orig[0];if(t instanceof rn||"arguments"==t.name)return!1;n.fixed=v(kn,t)}return!0}return n.fixed instanceof Q}function l(e,n,t){return void 0===n.fixed||(null===n.fixed&&n.safe_ids?(n.safe_ids[n.id]=!1,delete n.safe_ids,!0):!!b(e.safe_ids,n.id)&&(!!f(e,n)&&(!1!==n.fixed&&(!(null!=n.fixed&&(!t||n.references.length>n.assignments))&&D(n.orig,function(e){return!(e instanceof nn||e instanceof on||e instanceof sn)})))))}function p(e,t,i,r,o,a,s){var u=e.parent(a);if(o){if(o.is_constant())return;if(o instanceof Xe)return}if(u instanceof je&&"="==u.operator&&r===u.right||u instanceof ke&&(r!==u.expression||u instanceof Ce)||u instanceof oe&&r===u.value&&r.scope!==t.scope||u instanceof Fe&&r===u.value||u instanceof Mn&&r===u.value&&r.scope!==t.scope)return!(s>1)||o&&o.is_constant_expression(i)||(s=1),void((!t.escaped||t.escaped>s)&&(t.escaped=s));if(u instanceof He||u instanceof $n||u instanceof ze&&Nn(u.operator)||u instanceof Ne&&r!==u.condition||u instanceof G||u instanceof Be&&r===u.tail_node())p(e,t,i,u,u,a+1,s);else if(u instanceof Ue&&r===u.value){var c=e.parent(a+1);p(e,t,i,c,c,a+2,s)}else if(u instanceof Se&&r===u.expression&&(p(e,t,i,u,o=n(o,u.property),a+1,s+1),o))return;a>0||u instanceof Be&&r!==u.tail_node()||u instanceof S||(t.direct_access=!0)}e(F,u);var d=new qn(function(e){if(e instanceof Je){var n=e.definition();n&&(e instanceof hn&&n.references.push(e),n.fixed=!1)}});function h(e,n,t){this.inlined=!1;var r=e.safe_ids;return e.safe_ids=Object.create(null),i(e,t,this),n(),e.safe_ids=r,!0}function m(e,n,t){var r,o=this;return o.inlined=!1,a(e),i(e,t,o),!o.name&&(r=e.parent())instanceof ke&&r.expression===o&&o.argnames.forEach(function(n,t){if(n.definition){var i=n.definition();void 0!==i.fixed||o.uses_arguments&&!e.has_directive("use strict")?i.fixed=!1:(i.fixed=function(){return r.args[t]||v(kn,r)},e.loop_ids[i.id]=e.in_loop,c(e,i,!0))}}),n(),s(e),!0}e(J,function(e,n,t){return a(e),i(e,t,this),n(),s(e),!0}),e(K,m),e(je,function(e,n,t){var i=this;if(i.left instanceof ee)i.left.walk(d);else{var o=i.left;if(o instanceof hn){var a=o.definition(),s=l(e,a,o.scope,i.right);if(a.assignments++,s){var u=a.fixed;if(u||"="==i.operator){var f="="==i.operator,h=f?i.right:i;if(!r(t,e,i,h,0))return a.references.push(o),f||(a.chained=!0),a.fixed=f?function(){return i.right}:function(){return v(ze,i,{operator:i.operator.slice(0,-1),left:u instanceof F?u:u(),right:i.right})},c(e,a,!1),i.right.walk(e),c(e,a,!0),p(e,a,o.scope,i,h,0,1),!0}}}}}),e(ze,function(e){if(Nn(this.operator))return this.left.walk(e),a(e),this.right.walk(e),s(e),!0}),e($,function(e,n,t){o(t,this)}),e(me,function(e){return a(e),this.expression.walk(e),s(e),a(e),T(this,e),s(e),!0}),e(Xe,function(e,n){return this.inlined=!1,a(e),n(),s(e),!0}),e(Ne,function(e){return this.condition.walk(e),a(e),this.consequent.walk(e),s(e),a(e),this.alternative.walk(e),s(e),!0}),e(he,function(e,n){return a(e),n(),s(e),!0}),e(Ge,h),e(Q,h),e(H,function(e,n,t){o(t,this);var i=e.in_loop;return e.in_loop=this,a(e),this.body.walk(e),Jn(this)&&(s(e),a(e)),this.condition.walk(e),s(e),e.in_loop=i,!0}),e(P,function(e,n,t){o(t,this),this.init&&this.init.walk(e);var i=e.in_loop;return e.in_loop=this,a(e),this.condition&&this.condition.walk(e),this.body.walk(e),this.step&&(Jn(this)&&(s(e),a(e)),this.step.walk(e)),s(e),e.in_loop=i,!0}),e(U,function(e,n,t){o(t,this),this.init.walk(d),this.object.walk(e);var i=e.in_loop;return e.in_loop=this,a(e),this.body.walk(e),s(e),e.in_loop=i,!0}),e(Z,m),e(le,function(e){return this.condition.walk(e),a(e),this.body.walk(e),s(e),this.alternative&&(a(e),this.alternative.walk(e),s(e)),!0}),e(N,function(e){return a(e),this.body.walk(e),s(e),!0}),e(fn,function(){this.definition().fixed=!1}),e(hn,function(e,n,t){var i,o=this.definition();o.references.push(this),1==o.references.length&&!o.fixed&&o.orig[0]instanceof on&&(e.loop_ids[o.id]=e.in_loop),void 0!==o.fixed&&f(e,o)?o.fixed&&((i=this.fixed_value())instanceof X&&Qn(e,o)?o.recursive_refs++:i&&!t.exposed(o)&&function(e,n,t){return n.option("unused")&&!t.scope.pinned()&&t.references.length-t.recursive_refs==1&&e.loop_ids[t.id]===e.in_loop}(e,t,o)?o.single_use=i instanceof X&&!i.pinned()||i instanceof We||o.scope===this.scope&&i.is_constant_expression():o.single_use=!1,r(t,e,this,i,0,function(e){return!!e&&(e.is_constant()||e instanceof X||e instanceof gn)}(i))&&(o.single_use?o.single_use="m":o.fixed=!1)):o.fixed=!1,p(e,o,this.scope,this,i,0,1)}),e(W,function(e,n,r){this.globals.each(function(e){t(r,e)}),i(e,r,this)}),e(_e,function(e,n,t){return o(t,this),a(e),T(this,e),s(e),this.bcatch&&(a(e),this.bcatch.walk(e),s(e)),this.bfinally&&this.bfinally.walk(e),!0}),e($e,function(e,n){var t=this;if("++"==t.operator||"--"==t.operator){var i=t.expression;if(i instanceof hn){var r=i.definition(),o=l(e,r,!0);if(r.assignments++,o){var a=r.fixed;if(a)return r.references.push(i),r.chained=!0,r.fixed=function(){return v(ze,t,{operator:t.operator.slice(0,-1),left:v(Me,t,{operator:"+",expression:a instanceof F?a:a()}),right:v(En,t,{value:1})})},c(e,r,!0),!0}}}}),e(Fe,function(e,n){var t=this;if(t.name instanceof ee)t.name.walk(d);else{var i=t.name.definition();if(t.value){if(l(e,i,t.value))return i.fixed=function(){return t.value},e.loop_ids[i.id]=e.in_loop,c(e,i,!1),n(),c(e,i,!0),!0;i.fixed=!1}}}),e(R,function(e,n,t){o(t,this);var i=e.in_loop;return e.in_loop=this,a(e),n(),s(e),e.in_loop=i,!0})}(function(e,n){e.DEFMETHOD("reduce_vars",n)}),W.DEFMETHOD("reset_opt_flags",function(e){var n=this,t=e.option("reduce_vars"),i=new qn(function(r,o){if(r._squeezed=!1,r._optimized=!1,t)return e.top_retain&&(i.parent()===n?r._top=!0:delete r._top),r.reduce_vars(i,o,e)});i.safe_ids=Object.create(null),i.in_loop=null,i.loop_ids=Object.create(null),n.walk(i)}),Je.DEFMETHOD("fixed_value",function(){var e=this.definition().fixed;return!e||e instanceof F?e:e()}),hn.DEFMETHOD("is_immutable",function(){var e=this.definition().orig;return 1==e.length&&e[0]instanceof sn});var un=g("Array Boolean clearInterval clearTimeout console Date decodeURI decodeURIComponent encodeURI encodeURIComponent Error escape eval EvalError Function isFinite isNaN JSON Math Number parseFloat parseInt RangeError ReferenceError RegExp Object setInterval setTimeout String SyntaxError TypeError unescape URIError");hn.DEFMETHOD("is_declared",function(e){return!this.definition().undeclared||e.option("unsafe")&&un(this.name)});var cn,ln,pn,dn=g("Infinity NaN undefined");function _n(e){return e instanceof Bn||e instanceof Fn||e instanceof kn}function vn(e,n){var i,u,c=n.find_parent(Y).get_defun_scope();!function(){var e=n.self(),t=0;do{if(e instanceof ve||e instanceof ge)t++;else if(e instanceof j)i=!0;else{if(e instanceof Y){c=e;break}e instanceof _e&&(u=!0)}}while(e=n.parent(t++))}();var f,l=10;do{f=!1,h(e),n.option("dead_code")&&g(e,n),n.option("if_return")&&m(e,n),n.sequences_limit>0&&(b(e,n),w(e,n)),n.option("join_vars")&&k(e),n.option("collapse_vars")&&p(e,n)}while(f&&l-- >0);function p(e,n){if(c.pinned())return e;for(var l,p=[],h=e.length,m=new Dt(function(e,t){if(N)return e;if(!z)return e!==g[y]?e:++y<g.length?Z(e):(z=!0,(w=function e(n,t,i){var r=m.parent(t);if(r instanceof je)return i&&!(r.left instanceof Se||r.left.name in F)?e(r,t+1,i):n;if(r instanceof ze)return!i||Nn(r.operator)&&r.left!==n?n:e(r,t+1,i);if(r instanceof ke)return n;if(r instanceof me)return n;if(r instanceof Ne)return i&&r.condition===n?e(r,t+1,i):n;if(r instanceof De)return e(r,t+1,!0);if(r instanceof oe)return i?e(r,t+1,i):n;if(r instanceof le)return i&&r.condition===n?e(r,t+1,i):n;if(r instanceof j)return n;if(r instanceof Be)return e(r,t+1,r.tail_node()!==n);if(r instanceof S)return e(r,t+1,!0);if(r instanceof pe)return n;if(r instanceof Fe)return n;return null}(e,0))===e&&(N=!0),e);var i,r=m.parent();if(e instanceof je&&"="!=e.operator&&A.equivalent_to(e.left)||e instanceof $n||e instanceof ke&&A instanceof Se&&A.equivalent_to(e.expression)||e instanceof C||e instanceof ee||e instanceof G&&e.expression instanceof Je&&e.expression.definition().references.length>1||e instanceof j&&!(e instanceof P)||e instanceof ue||e instanceof _e||e instanceof V||e instanceof Mn||r instanceof P&&e!==r.init||!T&&e instanceof hn&&!e.is_declared(n))return N=!0,e;if(x||k&&T||!(r instanceof ze&&Nn(r.operator)&&r.left!==e||r instanceof Ne&&r.condition!==e||r instanceof le&&r.condition!==e)||(x=r),R&&!(e instanceof Ke)&&A.equivalent_to(e)){if(x)return N=!0,e;if(In(e,r))return E&&H++,e;if(f=N=!0,H++,n.info("Collapsing {name} [{file}:{line},{col}]",{name:e.print_to_string(),file:e.start.file,line:e.start.line,col:e.start.col}),b instanceof qe)return v(Me,b,b);if(b instanceof Fe){if(E)return N=!1,e;var o=b.name.definition(),a=b.value;return o.references.length-o.replaced!=1||n.exposed(o)?v(je,b,{operator:"=",left:v(hn,b.name,b.name),right:a}):(o.replaced++,q&&_n(a)?a.transform(n):O(r,e,a))}return b.write_only=!1,b}return(e instanceof ke||e instanceof oe&&(B||A instanceof Se||ve(A))||e instanceof Se&&(B||e.expression.may_throw_on_access(n))||e instanceof hn&&(F[e.name]||B&&ve(e))||e instanceof Fe&&e.value&&(e.name.name in F||B&&ve(e.name))||(i=In(e.left,e))&&(i instanceof Se||i.name in F)||M&&(u?e.has_side_effects(n):function e(n,t){if(n instanceof je)return e(n.left,!0);if(n instanceof $e)return e(n.expression,!0);if(n instanceof Fe)return n.value&&e(n.value);if(t){if(n instanceof Te)return e(n.expression,!0);if(n instanceof Oe)return e(n.expression,!0);if(n instanceof hn)return n.definition().scope!==c}return!1}(e)))&&(w=e,e instanceof Y&&(N=!0)),Z(e)},function(e){N||(w===e&&(N=!0),x===e&&(x=null))}),_=new Dt(function(e){if(N)return e;if(!z){if(e!==g[y])return e;if(++y<g.length)return;return z=!0,e}return e instanceof hn&&e.name==J.name?(--H||(N=!0),In(e,_.parent())?e:(J.replaced++,E.replaced--,b.value)):e instanceof he||e instanceof Y?e:void 0});--h>=0;){0==h&&n.option("unused")&&ne();var g=[];for(te(e[h]);p.length>0;){g=p.pop();var y=0,b=g[g.length-1],E=null,w=null,x=null,A=ie(b);if(A&&!a(A)&&!A.has_side_effects(n)){var F=ae(b),k=ce(A);A instanceof hn&&(F[A.name]=!1);var B=fe(b),T=de(),M=b.may_throw(n),q=b.name instanceof rn,z=q,N=!1,H=0,R=!l||!z;if(!R){for(var L=n.self().argnames.lastIndexOf(b.name)+1;!N&&L<l.length;L++)l[L].transform(m);R=!0}for(var W=h;!N&&W<e.length;W++)e[W].transform(m);if(E){var J=b.name.definition();if(N&&J.references.length-J.replaced>H)H=!1;else{N=!1,y=0,z=q;for(W=h;!N&&W<e.length;W++)e[W].transform(_);E.single_use=!1}}H&&!se(b)&&e.splice(h,1)}}}function Z(e){if(e instanceof Y)return e;if(e instanceof pe){e.expression=e.expression.transform(m);for(var n=0,t=e.body.length;!N&&n<t;n++){var i=e.body[n];if(i instanceof me){if(!z){if(i!==g[y])continue;y++}if(i.expression=i.expression.transform(m),!T)break}}return N=!0,e}}function Q(e,n,t){var i=!1,r=!(e instanceof K);return n.walk(new qn(function(n,o){if(i)return!0;if(n instanceof hn&&e.variables.has(n.name)){var a=n.definition().scope;if(a!==c)for(;a=a.parent_scope;)if(a===c)return!0;return i=!0}if((t||r)&&n instanceof gn)return i=!0;if(n instanceof Y&&!(n instanceof K)){var s=r;return r=!1,o(),r=s,!0}})),i}function ne(){var e,i=n.self();if(o(i)&&!i.name&&!i.uses_arguments&&!i.pinned()&&(e=n.parent())instanceof ke&&e.expression===i&&D(e.args,function(e){return!(e instanceof G)})){var r=n.has_directive("use strict");r&&!t(r,i.body)&&(r=!1);var a=i.argnames.length;l=e.args.slice(a);for(var s=Object.create(null),u=a;--u>=0;){var c=i.argnames[u],f=e.args[u];if(l.unshift(v(Fe,c,{name:c,value:f})),!(c.name in s))if(s[c.name]=!0,c instanceof G){var d=e.args.slice(u);D(d,function(e){return!Q(i,e,r)})&&p.unshift([v(Fe,c,{name:c.expression,value:v(He,e,{elements:d})})])}else f?(f instanceof X&&f.pinned()||Q(i,f,r))&&(f=null):f=v(kn,c).transform(n),f&&p.unshift([v(Fe,c,{name:c,value:f})])}}}function te(e){if(g.push(e),e instanceof je)e.left.has_side_effects(n)||p.push(g.slice()),te(e.right);else if(e instanceof ze)te(e.left),te(e.right);else if(e instanceof ke)te(e.expression),e.args.forEach(te);else if(e instanceof me)te(e.expression);else if(e instanceof Ne)te(e.condition),te(e.consequent),te(e.alternative);else if(!(e instanceof De)||!n.option("unused")&&e instanceof Ee)e instanceof I?(te(e.condition),e.body instanceof $||te(e.body)):e instanceof oe?e.value&&te(e.value):e instanceof P?(e.init&&te(e.init),e.condition&&te(e.condition),e.step&&te(e.step),e.body instanceof $||te(e.body)):e instanceof U?(te(e.object),e.body instanceof $||te(e.body)):e instanceof le?(te(e.condition),e.body instanceof $||te(e.body),!e.alternative||e.alternative instanceof $||te(e.alternative)):e instanceof Be?e.expressions.forEach(te):e instanceof S?te(e.body):e instanceof pe?(te(e.expression),e.body.forEach(te)):e instanceof $e?"++"!=e.operator&&"--"!=e.operator||p.push(g.slice()):e instanceof Fe&&e.value&&(p.push(g.slice()),te(e.value));else{var t=e.definitions.length,i=t-200;for(i<0&&(i=0);i<t;i++)te(e.definitions[i])}g.pop()}function ie(e){if(!(e instanceof Fe&&e.name instanceof Ke)){var i=e[e instanceof je?"left":"expression"];return!s(i,nn)&&i}var r=e.name.definition();if(t(e.name,r.orig)){var o=r.references.length-r.replaced;if(o)return r.orig.length-r.eliminated>1&&!(e.name instanceof rn)||(o>1?function(e){var n=e.value;if(n instanceof hn&&"arguments"!=n.name){var t=n.definition();if(!t.undeclared)return E=t}}(e):!n.exposed(r))?v(hn,e.name,e.name):void 0}}function re(e){return e[e instanceof je?"right":"value"]}function ae(e){var t=Object.create(null);if(e instanceof $e)return t;var i=new qn(function(e,o){for(var a=e;a instanceof Se;)a=a.expression;(a instanceof hn||a instanceof gn)&&(t[a.name]=t[a.name]||r(n,i,e,e,0))});return re(e).walk(i),t}function se(t){if(t.name instanceof rn){var i=n.parent(),r=n.self().argnames,o=r.indexOf(t.name);if(o<0)i.args.length=Math.min(i.args.length,r.length-1);else{var a=i.args;a[o]&&(a[o]=v(En,a[o],{value:0}))}return!0}var s=!1;return e[h].transform(new Dt(function(e,n,i){return s?e:e===t||e.body===t?(s=!0,e instanceof Fe?(e.value=null,e):i?d.skip:null):void 0},function(e){if(e instanceof Be)switch(e.expressions.length){case 0:return null;case 1:return e.expressions[0]}}))}function ce(e){for(;e instanceof Se;)e=e.expression;return e instanceof hn&&e.definition().scope===c&&!(i&&(e.name in F||b instanceof $e||b instanceof je&&"="!=b.operator))}function fe(e){return!(e instanceof $e)&&re(e).has_side_effects(n)}function de(){if(B)return!1;if(E)return!0;if(A instanceof hn){var e=A.definition();if(e.references.length-e.replaced==(b instanceof Fe?1:2))return!0}return!1}function ve(e){if(!e.definition)return!0;var n=e.definition();return!(1==n.orig.length&&n.orig[0]instanceof on)&&(n.scope.get_defun_scope()!==c||!D(n.references,function(e){var n=e.scope.get_defun_scope();return"Scope"==n.TYPE&&(n=n.parent_scope),n===c}))}}function h(e){for(var n=[],t=0;t<e.length;){var i=e[t];i instanceof M&&D(i.body,we)?(f=!0,h(i.body),[].splice.apply(e,[t,1].concat(i.body)),t+=i.body.length):i instanceof q?(f=!0,e.splice(t,1)):i instanceof B?n.indexOf(i.value)<0?(t++,n.push(i.value)):(f=!0,e.splice(t,1)):t++}}function m(e,n){for(var t=n.self(),i=function(e){for(var n=0,t=e.length;--t>=0;){var i=e[t];if(i instanceof le&&i.body instanceof ae&&++n>1)return!0}return!1}(e),r=t instanceof X,o=e.length;--o>=0;){var a=e[o],s=D(o),u=e[s];if(r&&!u&&a instanceof ae){if(!a.value){f=!0,e.splice(o,1);continue}if(a.value instanceof Me&&"void"==a.value.operator){f=!0,e[o]=v(S,a,{body:a.value.expression});continue}}if(a instanceof le){var c;if(h(c=Wn(a.body))){c.label&&_(c.label.thedef.references,c),f=!0,(a=a.clone()).condition=a.condition.negate(n);var l=g(a.body,c);a.body=v(M,a,{body:L(a.alternative).concat(m())}),a.alternative=v(M,a,{body:l}),e[o]=a.transform(n);continue}if(h(c=Wn(a.alternative))){c.label&&_(c.label.thedef.references,c),f=!0,(a=a.clone()).body=v(M,a.body,{body:L(a.body).concat(m())});l=g(a.alternative,c);a.alternative=v(M,a.alternative,{body:l}),e[o]=a.transform(n);continue}}if(a instanceof le&&a.body instanceof ae){var p=a.body.value;if(!p&&!a.alternative&&(r&&!u||u instanceof ae&&!u.value)){f=!0,e[o]=v(S,a.condition,{body:a.condition});continue}if(p&&!a.alternative&&u instanceof ae&&u.value){f=!0,(a=a.clone()).alternative=u,e.splice(o,1,a.transform(n)),e.splice(s,1);continue}if(p&&!a.alternative&&(!u&&r&&i||u instanceof ae)){f=!0,(a=a.clone()).alternative=u||v(ae,a,{value:null}),e.splice(o,1,a.transform(n)),u&&e.splice(s,1);continue}var d=e[b(o)];if(n.option("sequences")&&r&&!a.alternative&&d instanceof le&&d.body instanceof ae&&D(s)==e.length&&u instanceof S){f=!0,(a=a.clone()).alternative=v(M,u,{body:[u,v(ae,u,{value:null})]}),e.splice(o,1,a.transform(n)),e.splice(s,1);continue}}}function h(i){if(!i)return!1;for(var a=o+1,s=e.length;a<s;a++){var u=e[a];if(u instanceof Ee||u instanceof be)return!1}var c,f=i instanceof ue?n.loopcontrol_target(i):null;return i instanceof ae&&r&&(!(c=i.value)||c instanceof Me&&"void"==c.operator)||i instanceof fe&&t===Le(f)||i instanceof ce&&f instanceof M&&t===f}function m(){var n=e.slice(o+1);return e.length=o+1,n.filter(function(n){return!(n instanceof Q)||(e.push(n),!1)})}function g(e,n){var t=L(e).slice(0,-1);return n.value&&t.push(v(S,n.value,{body:n.value.expression})),t}function D(n){for(var t=n+1,i=e.length;t<i;t++){var r=e[t];if(!(r instanceof ye&&y(r)))break}return t}function b(n){for(var t=n;--t>=0;){var i=e[t];if(!(i instanceof ye&&y(i)))break}return t}}function g(e,n){for(var t,i=n.self(),r=0,o=0,a=e.length;r<a;r++){var s=e[r];if(s instanceof ue){var u=n.loopcontrol_target(s);s instanceof ce&&!(u instanceof j)&&Le(u)===i||s instanceof fe&&Le(u)===i?s.label&&_(s.label.thedef.references,s):e[o++]=s}else e[o++]=s;if(Wn(s)){t=e.slice(r+1);break}}e.length=o,f=o!=a,t&&t.forEach(function(t){Dn(n,t,e)})}function y(e){return D(e.definitions,function(e){return!e.value})}function b(e,n){if(!(e.length<2)){for(var t=[],i=0,r=0,o=e.length;r<o;r++){var a=e[r];if(a instanceof S){t.length>=n.sequences_limit&&u();var s=a.body;t.length>0&&(s=s.drop_side_effect_free(n)),s&&z(t,s)}else a instanceof De&&y(a)||a instanceof Q?e[i++]=a:(u(),e[i++]=a)}u(),e.length=i,i!=o&&(f=!0)}function u(){if(t.length){var n=x(t[0],t);e[i++]=v(S,n,{body:n}),t=[]}}}function E(e,n){if(!(e instanceof M))return e;for(var t=null,i=0,r=e.body.length;i<r;i++){var o=e.body[i];if(o instanceof ye&&y(o))n.push(o);else{if(t)return!1;t=o}}return t}function w(e,n){function t(e){r--,f=!0;var t=i.body;return x(t,[t,e]).transform(n)}for(var i,r=0,o=0;o<e.length;o++){var a=e[o];if(i)if(a instanceof oe)a.value=t(a.value||v(kn,a).transform(n));else if(a instanceof P){if(!(a.init instanceof De)){var s=!1;i.body.walk(new qn(function(e){return!!(s||e instanceof Y)||(e instanceof ze&&"in"==e.operator?(s=!0,!0):void 0)})),s||(a.init?a.init=t(a.init):(a.init=i.body,r--,f=!0))}}else a instanceof U?a.init instanceof Ee||a.init instanceof be||(a.object=t(a.object)):a instanceof le?a.condition=t(a.condition):a instanceof pe?a.expression=t(a.expression):a instanceof V&&(a.expression=t(a.expression));if(n.option("conditionals")&&a instanceof le){var u=[],c=E(a.body,u),l=E(a.alternative,u);if(!1!==c&&!1!==l&&u.length>0){var p=u.length;u.push(v(le,a,{condition:a.condition,body:c||v(q,a.body),alternative:l})),u.unshift(r,1),[].splice.apply(e,u),o+=p,r+=p+1,i=null,f=!0;continue}}e[r++]=a,i=a instanceof S?a:null}e.length=r}function A(e,t){if(e instanceof De){var i,r=e.definitions[e.definitions.length-1];if(r.value instanceof Re)if(t instanceof je?i=[t]:t instanceof Be&&(i=t.expressions.slice()),i){var o=!1;do{var a=i[0];if(!(a instanceof je))break;if("="!=a.operator)break;if(!(a.left instanceof Se))break;var s=a.left.expression;if(!(s instanceof hn))break;if(r.name.name!=s.name)break;if(!a.right.is_constant_expression(c))break;var u=a.left.property;if(u instanceof F&&(u=u.evaluate(n)),u instanceof F)break;u=""+u;var f=n.option("ecma")<6&&n.has_directive("use strict")?function(e){return e.key!=u&&e.key.name!=u}:function(e){return e.key.name!=u};if(!D(r.value.properties,f))break;r.value.properties.push(v(Ue,a,{key:u,value:a.right})),i.shift(),o=!0}while(i.length);return o&&i}}}function k(e){for(var n,t=0,i=-1,r=e.length;t<r;t++){var o=e[t],a=e[i];if(o instanceof De)a&&a.TYPE==o.TYPE?(a.definitions=a.definitions.concat(o.definitions),f=!0):n&&n.TYPE==o.TYPE&&y(o)?(n.definitions=n.definitions.concat(o.definitions),f=!0):(e[++i]=o,n=o);else if(o instanceof oe)o.value=u(o.value);else if(o instanceof P){(s=A(a,o.init))?(f=!0,o.init=s.length?x(o.init,s):null,e[++i]=o):a instanceof ye&&(!o.init||o.init.TYPE==a.TYPE)?(o.init&&(a.definitions=a.definitions.concat(o.init.definitions)),o.init=a,e[i]=o,f=!0):n&&o.init&&n.TYPE==o.init.TYPE&&y(o.init)?(n.definitions=n.definitions.concat(o.init.definitions),o.init=null,e[++i]=o,f=!0):e[++i]=o}else if(o instanceof U)o.object=u(o.object);else if(o instanceof le)o.condition=u(o.condition);else if(o instanceof S){var s;if(s=A(a,o.body)){if(f=!0,!s.length)continue;o.body=x(o.body,s)}e[++i]=o}else o instanceof pe?o.expression=u(o.expression):o instanceof V?o.expression=u(o.expression):e[++i]=o}function u(n){e[++i]=o;var t=A(a,n);return t?(f=!0,t.length?x(n,t):n instanceof Be?n.tail_node().left:n.left):n}e.length=i+1}}function Dn(e,n,t){n instanceof Q||e.warn("Dropping unreachable code [{file}:{line},{col}]",n.start),n.walk(new qn(function(i){return i instanceof ye?(e.warn("Declarations in unreachable code! [{file}:{line},{col}]",i.start),i.remove_initializers(),t.push(i),!0):i instanceof Q&&(i===n||!e.has_directive("use strict"))?(t.push(i===n?i:v(ye,i,{definitions:[v(Fe,i,{name:v(Qe,i.name,i.name),value:null})]})),!0):i instanceof Y||void 0}))}function xn(e){return e instanceof yn?e.getValue():e instanceof Me&&"void"==e.operator&&e.expression instanceof yn?void 0:e}function zn(e,n){return e.is_undefined||e instanceof kn||e instanceof Me&&"void"==e.operator&&!e.expression.has_side_effects(n)}!function(e){function n(e){return/strict/.test(e.option("pure_getters"))}F.DEFMETHOD("may_throw_on_access",function(e){return!e.option("pure_getters")||this._dot_throw(e)}),e(F,n),e(An,f),e(kn,f),e(yn,c),e(He,c),e(Re,function(e){if(!n(e))return!1;for(var t=this.properties.length;--t>=0;)if(this.properties[t]._dot_throw(e))return!0;return!1}),e(Pe,c),e(Ve,f),e(G,function(e){return this.expression._dot_throw(e)}),e(Z,c),e(K,c),e(qe,c),e(Me,function(){return"void"==this.operator}),e(ze,function(e){return("&&"==this.operator||"||"==this.operator)&&(this.left._dot_throw(e)||this.right._dot_throw(e))}),e(je,function(e){return"="==this.operator&&this.right._dot_throw(e)}),e(Ne,function(e){return this.consequent._dot_throw(e)||this.alternative._dot_throw(e)}),e(Te,function(e){return!!n(e)&&!(this.expression instanceof Z&&"prototype"==this.property)}),e(Be,function(e){return this.tail_node()._dot_throw(e)}),e(hn,function(e){if(this.is_undefined)return!0;if(!n(e))return!1;if(tn(this)&&this.is_declared(e))return!1;if(this.is_immutable())return!1;var t=this.fixed_value();return!t||t._dot_throw(e)})}(function(e,n){e.DEFMETHOD("_dot_throw",n)}),ln=["!","delete"],pn=["in","instanceof","==","!=","===","!==","<","<=",">=",">"],(cn=function(e,n){e.DEFMETHOD("is_boolean",n)})(F,c),cn(Me,function(){return t(this.operator,ln)}),cn(ze,function(){return t(this.operator,pn)||Nn(this.operator)&&this.left.is_boolean()&&this.right.is_boolean()}),cn(Ne,function(){return this.consequent.is_boolean()&&this.alternative.is_boolean()}),cn(je,function(){return"="==this.operator&&this.right.is_boolean()}),cn(Be,function(){return this.tail_node().is_boolean()}),cn(On,f),cn(Tn,f),function(e){e(F,c),e(En,f);var n=g("+ - ~ ++ --");e($e,function(){return n(this.operator)});var t=g("- * / % & | ^ << >> >>>");e(ze,function(e){return t(this.operator)||"+"==this.operator&&this.left.is_number(e)&&this.right.is_number(e)}),e(je,function(e){return t(this.operator.slice(0,-1))||"="==this.operator&&this.right.is_number(e)}),e(Be,function(e){return this.tail_node().is_number(e)}),e(Ne,function(e){return this.consequent.is_number(e)&&this.alternative.is_number(e)})}(function(e,n){e.DEFMETHOD("is_number",n)}),function(e){e(F,c),e(bn,f),e(te,function(){return 1===this.segments.length}),e(Me,function(){return"typeof"==this.operator}),e(ze,function(e){return"+"==this.operator&&(this.left.is_string(e)||this.right.is_string(e))}),e(je,function(e){return("="==this.operator||"+="==this.operator)&&this.right.is_string(e)}),e(Be,function(e){return this.tail_node().is_string(e)}),e(Ne,function(e){return this.consequent.is_string(e)&&this.alternative.is_string(e)})}(function(e,n){e.DEFMETHOD("is_string",n)});var Nn=g("&& ||"),jn=g("delete ++ --");function In(e,n){return n instanceof $e&&jn(n.operator)?n.expression:n instanceof je&&n.left===e?e:void 0}function Hn(e,n){return e.print_to_string().length>n.print_to_string().length?n:e}function Rn(e,n,t){return(E(e)?function(e,n){return Hn(v(S,e,{body:e}),v(S,n,{body:n})).body}:Hn)(n,t)}function Pn(e){for(var n in e)e[n]=g(e[n])}!function(e){function n(e,n){e.warn("global_defs "+n.print_to_string()+" redefined [{file}:{line},{col}]",n.start)}W.DEFMETHOD("resolve_defines",function(e){return e.option("global_defs")?(this.figure_out_scope({ie8:e.option("ie8")}),this.transform(new Dt(function(t){var i=t._find_defs(e,"");if(i){for(var r,o=0,a=t;(r=this.parent(o++))&&r instanceof Se&&r.expression===a;)a=r;if(!In(a,r))return i;n(e,t)}}))):this}),e(F,u),e(Te,function(e,n){return this.expression._find_defs(e,"."+this.property+n)}),e(Ke,function(e){this.global()&&b(e.option("global_defs"),this.name)&&n(e,this)}),e(hn,function(e,n){if(this.global()){var t=e.option("global_defs"),i=this.name+n;return b(t,i)?function e(n,t){if(n instanceof F)return v(n.CTOR,t,n);if(Array.isArray(n))return v(He,t,{elements:n.map(function(n){return e(n,t)})});if(n&&"object"==typeof n){var i=[];for(var r in n)b(n,r)&&i.push(v(Ue,t,{key:r,value:e(n[r],t)}));return v(Re,t,{properties:i})}return A(n,t)}(t[i],this):void 0}})}(function(e,n){e.DEFMETHOD("_find_defs",n)});var Un=["constructor","toString","valueOf"],Ln={Array:["indexOf","join","lastIndexOf","slice"].concat(Un),Boolean:Un,Function:Un,Number:["toExponential","toFixed","toPrecision"].concat(Un),Object:Un,RegExp:["test"].concat(Un),String:["charAt","charCodeAt","concat","indexOf","italics","lastIndexOf","match","replace","search","slice","split","substr","substring","toLowerCase","toUpperCase","trim"].concat(Un)};Pn(Ln);var Vn={Array:["isArray"],Math:["abs","acos","asin","atan","ceil","cos","exp","floor","log","round","sin","sqrt","tan","atan2","pow","max","min"],Number:["isFinite","isNaN"],Object:["create","getOwnPropertyDescriptor","getOwnPropertyNames","getPrototypeOf","isExtensible","isFrozen","isSealed","keys"],String:["fromCharCode"]};Pn(Vn),function(e){F.DEFMETHOD("evaluate",function(e){if(!e.option("evaluate"))return this;var n=this._eval(e,1);return!n||n instanceof RegExp?n:"function"==typeof n||"object"==typeof n?this:n});var n=g("! ~ - + void");F.DEFMETHOD("is_constant",function(){return this instanceof yn?!(this instanceof wn):this instanceof Me&&this.expression instanceof yn&&n(this.operator)}),e(k,function(){throw new Error(m("Cannot evaluate a statement [{file}:{line},{col}]",this.start))}),e(X,l),e(We,l),e(F,l),e(yn,function(){return this.getValue()}),e(te,function(){return 1!==this.segments.length?this:this.segments[0].value}),e(Z,function(e){if(e.option("unsafe")){var n=function(){};return n.node=this,n.toString=function(){return this.node.print_to_string()},n}return this}),e(He,function(e,n){if(e.option("unsafe")){for(var t=[],i=0,r=this.elements.length;i<r;i++){var o=this.elements[i],a=o._eval(e,n);if(o===a)return this;t.push(a)}return t}return this}),e(Re,function(e,n){if(e.option("unsafe")){for(var t={},i=0,r=this.properties.length;i<r;i++){var o=this.properties[i];if(o instanceof G)return this;var a=o.key;if(a instanceof Je)a=a.name;else if(a instanceof F&&(a=a._eval(e,n))===o.key)return this;if("function"==typeof Object.prototype[a])return this;if(!(o.value instanceof Z)&&(t[a]=o.value._eval(e,n),t[a]===o.value))return this}return t}return this});var t=g("! typeof void");e(Me,function(e,n){var i=this.expression;if(e.option("typeofs")&&"typeof"==this.operator&&(i instanceof X||i instanceof hn&&i.fixed_value()instanceof X))return"function";if(t(this.operator)||n++,(i=i._eval(e,n))===this.expression)return this;switch(this.operator){case"!":return!i;case"typeof":return i instanceof RegExp?this:typeof i;case"void":return;case"~":return~i;case"-":return-i;case"+":return+i}return this});var i=g("&& || === !==");e(ze,function(e,n){i(this.operator)||n++;var t=this.left._eval(e,n);if(t===this.left)return this;var r,o=this.right._eval(e,n);if(o===this.right)return this;switch(this.operator){case"&&":r=t&&o;break;case"||":r=t||o;break;case"|":r=t|o;break;case"&":r=t&o;break;case"^":r=t^o;break;case"+":r=t+o;break;case"*":r=t*o;break;case"**":r=Math.pow(t,o);break;case"/":r=t/o;break;case"%":r=t%o;break;case"-":r=t-o;break;case"<<":r=t<<o;break;case">>":r=t>>o;break;case">>>":r=t>>>o;break;case"==":r=t==o;break;case"===":r=t===o;break;case"!=":r=t!=o;break;case"!==":r=t!==o;break;case"<":r=t<o;break;case"<=":r=t<=o;break;case">":r=t>o;break;case">=":r=t>=o;break;default:return this}return isNaN(r)&&e.find_parent(V)?this:r}),e(Ne,function(e,n){var t=this.condition._eval(e,n);if(t===this.condition)return this;var i=t?this.consequent:this.alternative,r=i._eval(e,n);return r===i?this:r}),e(hn,function(e,n){var t,i=this.fixed_value();if(!i)return this;if(b(i,"_eval"))t=i._eval();else{if(this._eval=l,t=i._eval(e,n),delete this._eval,t===i)return this;i._eval=function(){return t}}if(t&&"object"==typeof t){var r=this.definition().escaped;if(r&&n>r)return this}return t});var r={Array:Array,Math:Math,Number:Number,Object:Object,String:String},o={Math:["E","LN10","LN2","LOG2E","LOG10E","PI","SQRT1_2","SQRT2"],Number:["MAX_VALUE","MIN_VALUE","NaN","NEGATIVE_INFINITY","POSITIVE_INFINITY"]};Pn(o),e(Se,function(e,n){if(e.option("unsafe")){var t=this.property;if(t instanceof F&&(t=t._eval(e,n))===this.property)return this;var i,a=this.expression;if(tn(a)){if(!(o[a.name]||c)(t))return this;i=r[a.name]}else{if(!(i=a._eval(e,n+1))||i===a||!b(i,t))return this;if("function"==typeof i)switch(t){case"name":return i.node.name?i.node.name.name:"";case"length":return i.node.argnames.length;default:return this}}return i[t]}return this}),e(ke,function(e,n){var t=this.expression;if(e.option("unsafe")&&t instanceof Se){var i,o=t.property;if(o instanceof F&&(o=o._eval(e,n))===t.property)return this;var a=t.expression;if(tn(a)){if(!(Vn[a.name]||c)(o))return this;i=r[a.name]}else if((i=a._eval(e,n+1))===a||!(i&&Ln[i.constructor.name]||c)(o))return this;for(var s=[],u=0,f=this.args.length;u<f;u++){var l=this.args[u],p=l._eval(e,n);if(l===p)return this;s.push(p)}try{return i[o].apply(i,s)}catch(n){e.warn("Error evaluating {code} [{file}:{line},{col}]",{code:this.print_to_string(),file:this.start.file,line:this.start.line,col:this.start.col})}}return this}),e(Ce,l)}(function(e,n){e.DEFMETHOD("_eval",n)}),function(e){function n(e){return v(Me,e,{operator:"!",expression:e})}function t(e,t,i){var r=n(e);if(i){var o=v(S,t,{body:t});return Hn(r,o)===o?t:r}return Hn(r,t)}e(F,function(){return n(this)}),e(k,function(){throw new Error("Cannot negate a statement")}),e(Z,function(){return n(this)}),e(K,function(){return n(this)}),e(Me,function(){return"!"==this.operator?this.expression:n(this)}),e(Be,function(e){var n=this.expressions.slice();return n.push(n.pop().negate(e)),x(this,n)}),e(Ne,function(e,n){var i=this.clone();return i.consequent=i.consequent.negate(e),i.alternative=i.alternative.negate(e),t(this,i,n)}),e(ze,function(e,i){var r=this.clone(),o=this.operator;if(e.option("unsafe_comps"))switch(o){case"<=":return r.operator=">",r;case"<":return r.operator=">=",r;case">=":return r.operator="<",r;case">":return r.operator="<=",r}switch(o){case"==":return r.operator="!=",r;case"!=":return r.operator="==",r;case"===":return r.operator="!==",r;case"!==":return r.operator="===",r;case"&&":return r.operator="||",r.left=r.left.negate(e,i),r.right=r.right.negate(e),t(this,r,i);case"||":return r.operator="&&",r.left=r.left.negate(e,i),r.right=r.right.negate(e),t(this,r,i)}return n(this)})}(function(e,n){e.DEFMETHOD("negate",function(e,t){return n.call(this,e,t)})});var Yn=g("Boolean decodeURI decodeURIComponent Date encodeURI encodeURIComponent Error escape EvalError isFinite isNaN Number Object parseFloat parseInt RangeError ReferenceError String SyntaxError TypeError unescape URIError");function Wn(e){return e&&e.aborts()}ke.DEFMETHOD("is_expr_pure",function(e){if(e.option("unsafe")){var n=this.expression;if(tn(n)&&Yn(n.name))return!0;if(n instanceof Te&&tn(n.expression)&&(Vn[n.expression.name]||c)(n.property))return!0}return this.pure||!e.pure_funcs(this)}),F.DEFMETHOD("is_call_pure",c),Te.DEFMETHOD("is_call_pure",function(e){if(e.option("unsafe")){var n=this.expression,t=c;return n instanceof He?t=Ln.Array:n.is_boolean()?t=Ln.Boolean:n.is_number(e)?t=Ln.Number:n instanceof wn?t=Ln.RegExp:n.is_string(e)?t=Ln.String:this.may_throw_on_access(e)||(t=Ln.Object),t(this.property)}}),function(e){function n(e,n){for(var t=e.length;--t>=0;)if(e[t].has_side_effects(n))return!0;return!1}e(F,f),e(q,c),e(yn,c),e(gn,c),e($,function(e){return n(this.body,e)}),e(ke,function(e){return!(this.is_expr_pure(e)||this.expression.is_call_pure(e)&&!this.expression.has_side_effects(e))||n(this.args,e)}),e(pe,function(e){return this.expression.has_side_effects(e)||n(this.body,e)}),e(me,function(e){return this.expression.has_side_effects(e)||n(this.body,e)}),e(_e,function(e){return n(this.body,e)||this.bcatch&&this.bcatch.has_side_effects(e)||this.bfinally&&this.bfinally.has_side_effects(e)}),e(le,function(e){return this.condition.has_side_effects(e)||this.body&&this.body.has_side_effects(e)||this.alternative&&this.alternative.has_side_effects(e)}),e(N,function(e){return this.body.has_side_effects(e)}),e(S,function(e){return this.body.has_side_effects(e)}),e(X,c),e(We,c),e(Ge,f),e(ze,function(e){return this.left.has_side_effects(e)||this.right.has_side_effects(e)}),e(je,f),e(Ne,function(e){return this.condition.has_side_effects(e)||this.consequent.has_side_effects(e)||this.alternative.has_side_effects(e)}),e($e,function(e){return jn(this.operator)||this.expression.has_side_effects(e)}),e(hn,function(e){return!this.is_declared(e)}),e(Ke,c),e(Re,function(e){return n(this.properties,e)}),e(Pe,function(e){return!!(this.key instanceof Ue&&this.key.has_side_effects(e))||this.value.has_side_effects(e)}),e(He,function(e){return n(this.elements,e)}),e(Te,function(e){return this.expression.may_throw_on_access(e)||this.expression.has_side_effects(e)}),e(Oe,function(e){return this.expression.may_throw_on_access(e)||this.expression.has_side_effects(e)||this.property.has_side_effects(e)}),e(Be,function(e){return n(this.expressions,e)}),e(De,function(e){return n(this.definitions,e)}),e(Fe,function(e){return this.value}),e(ie,c),e(te,function(e){return n(this.segments,e)})}(function(e,n){e.DEFMETHOD("has_side_effects",n)}),function(e){function n(e,n){for(var t=e.length;--t>=0;)if(e[t].may_throw(n))return!0;return!1}e(F,f),e(We,c),e(yn,c),e(q,c),e(X,c),e(Ke,c),e(gn,c),e(He,function(e){return n(this.elements,e)}),e(je,function(e){return!!this.right.may_throw(e)||!(!e.has_directive("use strict")&&"="==this.operator&&this.left instanceof hn)&&this.left.may_throw(e)}),e(ze,function(e){return this.left.may_throw(e)||this.right.may_throw(e)}),e($,function(e){return n(this.body,e)}),e(ke,function(e){return!!n(this.args,e)||!this.is_expr_pure(e)&&(!!this.expression.may_throw(e)||(!(this.expression instanceof X)||n(this.expression.body,e)))}),e(me,function(e){return this.expression.may_throw(e)||n(this.body,e)}),e(Ne,function(e){return this.condition.may_throw(e)||this.consequent.may_throw(e)||this.alternative.may_throw(e)}),e(De,function(e){return n(this.definitions,e)}),e(Te,function(e){return this.expression.may_throw_on_access(e)||this.expression.may_throw(e)}),e(le,function(e){return this.condition.may_throw(e)||this.body&&this.body.may_throw(e)||this.alternative&&this.alternative.may_throw(e)}),e(N,function(e){return this.body.may_throw(e)}),e(Re,function(e){return n(this.properties,e)}),e(Pe,function(e){return this.value.may_throw(e)}),e(ae,function(e){return this.value&&this.value.may_throw(e)}),e(Be,function(e){return n(this.expressions,e)}),e(S,function(e){return this.body.may_throw(e)}),e(Oe,function(e){return this.expression.may_throw_on_access(e)||this.expression.may_throw(e)||this.property.may_throw(e)}),e(pe,function(e){return this.expression.may_throw(e)||n(this.body,e)}),e(hn,function(e){return!this.is_declared(e)}),e(_e,function(e){return this.bcatch?this.bcatch.may_throw(e):n(this.body,e)||this.bfinally&&this.bfinally.may_throw(e)}),e($e,function(e){return!("typeof"==this.operator&&this.expression instanceof hn)&&this.expression.may_throw(e)}),e(Fe,function(e){return!!this.value&&this.value.may_throw(e)})}(function(e,n){e.DEFMETHOD("may_throw",n)}),function(e){function n(e){for(var n=e.length;--n>=0;)if(!e[n].is_constant_expression())return!1;return!0}function i(e){var n=this,i=!0;return n.walk(new qn(function(r){if(!i)return!0;if(r instanceof hn){if(n.inlined)return i=!1,!0;var o=r.definition();if(t(o,n.enclosed)&&!n.variables.has(o.name)){if(e){var a=e.find_variable(r);if(o.undeclared?!a:a===o)return i="f",!0}i=!1}return!0}return r instanceof gn&&n instanceof K?(i=!1,!0):void 0})),i}e(F,c),e(yn,f),e(We,function(e){return!(this.extends&&!this.extends.is_constant_expression(e))&&i.call(this,e)}),e(X,i),e($e,function(){return this.expression.is_constant_expression()}),e(ze,function(){return this.left.is_constant_expression()&&this.right.is_constant_expression()}),e(He,function(){return n(this.elements)}),e(Re,function(){return n(this.properties)}),e(Pe,function(){return!(this.key instanceof F)&&this.value.is_constant_expression()})}(function(e,n){e.DEFMETHOD("is_constant_expression",n)}),function(e){function n(){for(var e=0;e<this.body.length;e++)if(Wn(this.body[e]))return this.body[e];return null}e(k,p),e(re,l),e(xe,function(){return null}),e(M,n),e(de,n),e(le,function(){return this.alternative&&Wn(this.body)&&Wn(this.alternative)&&this})}(function(e,n){e.DEFMETHOD("aborts",n)});var Gn=["use asm","use strict"];function Xn(e,n){return vn(e.body,n),n.option("side_effects")&&1==e.body.length&&e.body[0]===n.has_directive("use strict")&&(e.body.length=0),e}function Jn(e,n){var t=!1,i=new qn(function(n){return!!(t||n instanceof Y)||(n instanceof ue&&i.loopcontrol_target(n)===e?t=!0:void 0)});return n instanceof N&&i.push(n),i.push(e),e.body.walk(i),t}function Zn(e,n){return n.top_retain&&e._top&&e instanceof Q&&e.name&&n.top_retain(e.name)}e(B,function(e,n){return!n.option("directives")||t(e.value,Gn)&&n.has_directive(e.value)===e?e:v(q,e)}),e(C,function(e,n){return n.option("drop_debugger")?v(q,e):e}),e(N,function(e,n){return e.body instanceof ce&&n.loopcontrol_target(e.body)===e.body?v(q,e):0==e.label.references.length?e.body:e}),e($,function(e,n){return vn(e.body,n),e}),e(M,function(e,n){switch(vn(e.body,n),e.body.length){case 1:if(!n.has_directive("use strict")&&n.parent()instanceof le&&!((t=e.body[0])instanceof Ee||t instanceof be||t instanceof We)||we(e.body[0]))return e.body[0];break;case 0:return v(q,e)}var t;return e}),e(X,Xn),Y.DEFMETHOD("drop_unused",function(e){if(e.option("unused")&&!e.has_directive("use asm")){var n=this;if(!n.pinned()){var t=!(n instanceof W)||e.toplevel.funcs,i=!(n instanceof W)||e.toplevel.vars,r=/keep_assign/.test(e.option("unused"))?c:function(e){return e instanceof je&&(e.write_only||"="==e.operator)?e.left:e instanceof $e&&e.write_only?e.expression:void 0},o=[],a=Object.create(null),u=Object.create(null);n instanceof W&&e.top_retain&&n.variables.each(function(n){!e.top_retain(n)||n.id in a||(a[n.id]=!0,o.push(n))});var f=new y,l=new y,p=null,h=this,m=new qn(function(r,s){if(r instanceof X&&r.uses_arguments&&!m.has_directive("use strict")&&r.argnames.forEach(function(e){if(e instanceof Ke){var n=e.definition();n.id in a||(a[n.id]=!0,o.push(n))}}),r!==n){if(r instanceof Q||r instanceof Ge){var c=r.name.definition();return((d=m.parent()instanceof Ae)||!t&&h===n)&&(!c.global||c.id in a||(a[c.id]=!0,o.push(c))),l.add(c.id,r),!0}if(r instanceof rn&&h===n&&f.add(r.definition().id,r),r instanceof De&&h===n){var d=m.parent()instanceof Ae;return r.definitions.forEach(function(n){if(n.name instanceof Qe&&f.add(n.name.definition().id,n),!d&&i||n.name.walk(new qn(function(e){if(e instanceof Ke){var n=e.definition();!d&&!n.global||n.id in a||(a[n.id]=!0,o.push(n))}})),n.value){if(n.name instanceof ee){var t=p;p=n.value,n.walk(m),p=t}else{var r=n.name.definition();l.add(r.id,n.value),r.chained||n.name.fixed_value()!==n.value||(u[r.id]=n)}n.value.has_side_effects(e)&&n.value.walk(m)}}),!0}return r.destructuring&&p&&l.add(r.name,p),A(r,s)}});n.walk(m),m=new qn(A);for(var g=0;g<o.length;g++){var b=l.get(o[g].id);b&&b.forEach(function(e){e.walk(m)})}var E=new Dt(function(o,s,c){var l=E.parent();if(i&&(A=r(o))instanceof hn){var p=(m=A.definition()).id in a;if(o instanceof je){if(!p||m.id in u&&u[m.id]!==o)return O(l,o,o.right.transform(E))}else if(!p)return v(En,o,{value:0})}if(h===n){var m;if(o.name&&(o instanceof Xe&&!w(e.option("keep_classnames"),(m=o.name.definition()).name)||o instanceof Z&&!w(e.option("keep_fnames"),(m=o.name.definition()).name))&&(m.id in a&&!(m.orig.length>1)||(o.name=null)),o instanceof X&&!(o instanceof J))for(var g=!e.option("keep_fargs"),y=o.argnames,b=y.length;--b>=0;){var A;(A=y[b])instanceof G&&(A=A.expression),A instanceof Ie&&(A=A.left),A instanceof ee||A.definition().id in a?g=!1:(A.__unused=!0,g&&(y.pop(),e[A.unreferenced()?"warn":"info"]("Dropping unused function argument {name} [{file}:{line},{col}]",j(A))))}if((o instanceof Q||o instanceof Ge)&&o!==n)if(!((m=o.name.definition()).id in a||!t&&m.global))return e[o.name.unreferenced()?"warn":"info"]("Dropping unused function {name} [{file}:{line},{col}]",j(o.name)),m.eliminated++,v(q,o);if(o instanceof De&&!(l instanceof U&&l.init===o)){var F=!(l instanceof W||o instanceof ye),k=[],C=[],B=[],T=[];switch(o.definitions.forEach(function(n){n.value&&(n.value=n.value.transform(E));var t=n.name instanceof ee,r=t?new yt(null,{name:"<destructure>"}):n.name.definition();if(F&&r.global)return B.push(n);if(!i&&!F||t&&(n.name.names.length||n.name.is_array||1!=e.option("pure_getters"))||r.id in a){if(n.value&&r.id in u&&u[r.id]!==n&&(n.value=n.value.drop_side_effect_free(e)),n.name instanceof Qe){var s=f.get(r.id);if(s.length>1&&(!n.value||r.orig.indexOf(n.name)>r.eliminated)){if(e.warn("Dropping duplicated definition of variable {name} [{file}:{line},{col}]",j(n.name)),n.value){var c=v(hn,n.name,n.name);r.references.push(c);var l=v(je,n,{operator:"=",left:c,right:n.value});u[r.id]===n&&(u[r.id]=l),T.push(l.transform(E))}return _(s,n),void r.eliminated++}}n.value?(T.length>0&&(B.length>0?(T.push(n.value),n.value=x(n.value,T)):k.push(v(S,o,{body:x(o,T)})),T=[]),B.push(n)):C.push(n)}else if(r.orig[0]instanceof fn){(p=n.value&&n.value.drop_side_effect_free(e))&&T.push(p),n.value=null,C.push(n)}else{var p;(p=n.value&&n.value.drop_side_effect_free(e))?(t||e.warn("Side effects in initialization of unused variable {name} [{file}:{line},{col}]",j(n.name)),T.push(p)):t||e[n.name.unreferenced()?"warn":"info"]("Dropping unused variable {name} [{file}:{line},{col}]",j(n.name)),r.eliminated++}}),(C.length>0||B.length>0)&&(o.definitions=C.concat(B),k.push(o)),T.length>0&&k.push(v(S,o,{body:x(o,T)})),k.length){case 0:return c?d.skip:v(q,o);case 1:return k[0];default:return c?d.splice(k):v(M,o,{body:k})}}if(o instanceof P)return s(o,this),o.init instanceof M&&($=o.init,o.init=$.body.pop(),$.body.push(o)),o.init instanceof S?o.init=o.init.body:se(o.init)&&(o.init=null),$?c?d.splice($.body):$:o;if(o instanceof N&&o.body instanceof P){if(s(o,this),o.body instanceof M){var $=o.body;return o.body=$.body.pop(),$.body.push(o),c?d.splice($.body):$}return o}if(o instanceof M)return s(o,this),c&&D(o.body,we)?d.splice(o.body):o;if(o instanceof Y){var z=h;return h=o,s(o,this),h=z,o}}function j(e){return{name:e.name,file:e.start.file,line:e.start.line,col:e.start.col}}});n.transform(E)}}function A(e,t){var i,c=r(e);if(c instanceof hn&&!s(e.left,en)&&n.variables.get(c.name)===(i=c.definition()))return e instanceof je&&(e.right.walk(m),i.chained||e.left.fixed_value()!==e.right||(u[i.id]=e)),!0;if(e instanceof hn)return(i=e.definition()).id in a||(a[i.id]=!0,o.push(i),(i=i.redefined())&&(a[i.id]=!0,o.push(i))),!0;if(e instanceof Y){var f=h;return h=e,t(),h=f,!0}}}),Y.DEFMETHOD("hoist_declarations",function(e){var n=this;if(e.has_directive("use asm"))return n;if(!Array.isArray(n.body))return n;var t=e.option("hoist_funs"),r=e.option("hoist_vars");if(t||r){var o=[],a=[],s=new y,u=0,c=0;n.walk(new qn(function(e){return e instanceof Y&&e!==n||(e instanceof ye?(++c,!0):void 0)})),r=r&&c>1;var f=new Dt(function(i){if(i!==n){if(i instanceof B)return o.push(i),v(q,i);if(t&&i instanceof Q&&!(f.parent()instanceof Ae)&&f.parent()===n)return a.push(i),v(q,i);if(r&&i instanceof ye){i.definitions.forEach(function(e){e.name instanceof ee||(s.set(e.name.name,e),++u)});var c=i.to_assignments(e),l=f.parent();if(l instanceof U&&l.init===i){if(null==c){var p=i.definitions[0].name;return v(hn,p,p)}return c}return l instanceof P&&l.init===i?c:c?v(S,i,{body:c}):v(q,i)}if(i instanceof Y)return i}});if(n=n.transform(f),u>0){var l=[];if(s.each(function(e,t){n instanceof X&&i(function(n){return n.name==e.name.name},n.args_as_names())?s.del(t):((e=e.clone()).value=null,l.push(e),s.set(t,e))}),l.length>0){for(var p=0;p<n.body.length;){if(n.body[p]instanceof S){var d,h,m=n.body[p].body;if(m instanceof je&&"="==m.operator&&(d=m.left)instanceof Je&&s.has(d.name)){if((g=s.get(d.name)).value)break;g.value=m.right,_(l,g),l.push(g),n.body.splice(p,1);continue}if(m instanceof Be&&(h=m.expressions[0])instanceof je&&"="==h.operator&&(d=h.left)instanceof Je&&s.has(d.name)){var g;if((g=s.get(d.name)).value)break;g.value=h.right,_(l,g),l.push(g),n.body[p].body=x(m,m.expressions.slice(1));continue}}if(n.body[p]instanceof q)n.body.splice(p,1);else{if(!(n.body[p]instanceof M))break;var D=[p,1].concat(n.body[p].body);n.body.splice.apply(n.body,D)}}l=v(ye,n,{definitions:l}),a.push(l)}}n.body=o.concat(a,n.body)}return n}),Y.DEFMETHOD("var_names",function(){var e=this._var_names;return e||(this._var_names=e=Object.create(null),this.enclosed.forEach(function(n){e[n.name]=!0}),this.variables.each(function(n,t){e[t]=!0})),e}),Y.DEFMETHOD("make_var_name",function(e){for(var n=this.var_names(),t=e=e.replace(/(?:^[^a-z_$]|[^a-z0-9_$])/gi,"_"),i=0;n[t];i++)t=e+"$"+i;return n[t]=!0,t}),Y.DEFMETHOD("hoist_properties",function(e){var n=this;if(!e.option("hoist_props")||e.has_directive("use asm"))return n;var t=n instanceof W&&e.top_retain||c,i=Object.create(null),r=new Dt(function(o,a){if(o instanceof De&&r.parent()instanceof Ae)return o;var s;if(o instanceof Fe&&((f=o.name).scope===n&&1!=(l=f.definition()).escaped&&!l.assignments&&!l.direct_access&&!l.single_use&&!e.exposed(l)&&!t(l)&&(s=f.fixed_value())===o.value&&s instanceof Re)){a(o,this);var u=new y,c=[];return s.properties.forEach(function(e){c.push(v(Fe,o,{name:p(e.key),value:e.value}))}),i[l.id]=u,d.splice(c)}if(o instanceof Se&&o.expression instanceof hn&&(u=i[o.expression.definition().id])){var f,l=u.get(xn(o.property));return(f=v(hn,o,{name:l.name,scope:o.expression.scope,thedef:l})).reference({}),f}function p(e){var t=v(f.CTOR,f,{name:n.make_var_name(f.name+"_"+e),scope:n}),i=n.def_variable(t);return u.set(e,i),n.enclosed.push(i),t}});return n.transform(r)}),function(e){function n(e,n,t){var i=e.length;if(!i)return null;for(var r=[],o=!1,a=0;a<i;a++){var s=e[a].drop_side_effect_free(n,t);o|=s!==e[a],s&&(r.push(s),t=!1)}return o?r.length?r:null:e}e(F,l),e(yn,p),e(gn,p),e(ke,function(e,t){if(!this.is_expr_pure(e)){if(this.expression.is_call_pure(e)){var i=this.args.slice();return i.unshift(this.expression.expression),(i=n(i,e,t))&&x(this,i)}if(o(this.expression)&&(!this.expression.name||!this.expression.name.definition().references.length)){var r=this.clone();return r.expression.process_expression(!1,e),r}return this}this.pure&&e.warn("Dropping __PURE__ call [{file}:{line},{col}]",this.start);var a=n(this.args,e,t);return a&&x(this,a)}),e(J,p),e(Z,p),e(K,p),e(Xe,p),e(ze,function(e,n){var t=this.right.drop_side_effect_free(e);if(!t)return this.left.drop_side_effect_free(e,n);if(Nn(this.operator)){if(t===this.right)return this;var i=this.clone();return i.right=t,i}var r=this.left.drop_side_effect_free(e,n);return r?x(this,[r,t]):this.right.drop_side_effect_free(e,n)}),e(je,function(e){var n=this.left;if(n.has_side_effects(e)||e.has_directive("use strict")&&n instanceof Se&&n.expression.is_constant())return this;for(this.write_only=!0;n instanceof Se;)n=n.expression;return n.is_constant_expression(e.find_parent(Y))?this.right.drop_side_effect_free(e):this}),e(Ne,function(e){var n=this.consequent.drop_side_effect_free(e),t=this.alternative.drop_side_effect_free(e);if(n===this.consequent&&t===this.alternative)return this;if(!n)return t?v(ze,this,{operator:"||",left:this.condition,right:t}):this.condition.drop_side_effect_free(e);if(!t)return v(ze,this,{operator:"&&",left:this.condition,right:n});var i=this.clone();return i.consequent=n,i.alternative=t,i}),e($e,function(e,n){if(jn(this.operator))return this.write_only=!this.expression.has_side_effects(e),this;if("typeof"==this.operator&&this.expression instanceof hn)return null;var t=this.expression.drop_side_effect_free(e,n);return n&&t&&Ze(t)?t===this.expression&&"!"==this.operator?this:t.negate(e,n):t}),e(hn,function(e){return this.is_declared(e)?null:this}),e(Re,function(e,t){var i=n(this.properties,e,t);return i&&x(this,i)}),e(Pe,function(e,n){return this.value.drop_side_effect_free(e,n)}),e(He,function(e,t){var i=n(this.elements,e,t);return i&&x(this,i)}),e(Te,function(e,n){return this.expression.may_throw_on_access(e)?this:this.expression.drop_side_effect_free(e,n)}),e(Oe,function(e,n){if(this.expression.may_throw_on_access(e))return this;var t=this.expression.drop_side_effect_free(e,n);if(!t)return this.property.drop_side_effect_free(e,n);var i=this.property.drop_side_effect_free(e);return i?x(this,[t,i]):t}),e(Be,function(e){var n=this.tail_node(),t=n.drop_side_effect_free(e);if(t===n)return this;var i=this.expressions.slice(0,-1);return t&&i.push(t),x(this,i)}),e(G,function(e,n){return this.expression.drop_side_effect_free(e,n)}),e(ie,p),e(te,function(e){var t=n(this.segments,e,E);return t&&x(this,t)})}(function(e,n){e.DEFMETHOD("drop_side_effect_free",n)}),e(S,function(e,n){if(n.option("side_effects")){var t=e.body,i=t.drop_side_effect_free(n,!0);if(!i)return n.warn("Dropping side-effect-free statement [{file}:{line},{col}]",e.start),v(q,e);if(i!==t)return v(S,e,{body:i})}return e}),e(R,function(e,n){return n.option("loops")?v(P,e,e).optimize(n):e}),e(H,function(e,n){if(!n.option("loops"))return e;var t=e.condition.tail_node().evaluate(n);if(!(t instanceof F)){if(t)return v(P,e,{body:v(M,e.body,{body:[e.body,v(S,e.condition,{body:e.condition})]})}).optimize(n);if(!Jn(e,n.parent()))return v(M,e.body,{body:[e.body,v(S,e.condition,{body:e.condition})]}).optimize(n)}return e}),e(P,function(e,n){if(!n.option("loops"))return e;if(n.option("side_effects")&&e.init&&(e.init=e.init.drop_side_effect_free(n)),e.condition){var t=e.condition.evaluate(n);if(!(t instanceof F))if(t)e.condition=null;else if(!n.option("dead_code")){var i=e.condition;e.condition=A(t,e.condition),e.condition=Hn(e.condition.transform(n),i)}if(n.option("dead_code")&&(t instanceof F&&(t=e.condition.tail_node().evaluate(n)),!t)){var r=[];return Dn(n,e.body,r),e.init instanceof k?r.push(e.init):e.init&&r.push(v(S,e.init,{body:e.init})),r.push(v(S,e.condition,{body:e.condition})),v(M,e,{body:r}).optimize(n)}}return function e(n,t){var i=n.body instanceof M?n.body.body[0]:n.body;if(t.option("dead_code")&&o(i)){var r=[];return n.init instanceof k?r.push(n.init):n.init&&r.push(v(S,n.init,{body:n.init})),n.condition&&r.push(v(S,n.condition,{body:n.condition})),Dn(t,n.body,r),v(M,n,{body:r})}return i instanceof le&&(o(i.body)?(n.condition?n.condition=v(ze,n.condition,{left:n.condition,operator:"&&",right:i.condition.negate(t)}):n.condition=i.condition.negate(t),a(i.alternative)):o(i.alternative)&&(n.condition?n.condition=v(ze,n.condition,{left:n.condition,operator:"&&",right:i.condition}):n.condition=i.condition,a(i.body))),n;function o(e){return e instanceof ce&&t.loopcontrol_target(e)===t.self()}function a(i){i=L(i),n.body instanceof M?(n.body=n.body.clone(),n.body.body=i.concat(n.body.body.slice(1)),n.body=n.body.transform(t)):n.body=v(M,n.body,{body:i}).transform(t),n=e(n,t)}}(e,n)}),e(le,function(e,n){if(se(e.alternative)&&(e.alternative=null),!n.option("conditionals"))return e;var t=e.condition.evaluate(n);if(!(n.option("dead_code")||t instanceof F)){var i=e.condition;e.condition=A(t,i),e.condition=Hn(e.condition.transform(n),i)}if(n.option("dead_code")){if(t instanceof F&&(t=e.condition.tail_node().evaluate(n)),!t){n.warn("Condition always false [{file}:{line},{col}]",e.condition.start);var r=[];return Dn(n,e.body,r),r.push(v(S,e.condition,{body:e.condition})),e.alternative&&r.push(e.alternative),v(M,e,{body:r}).optimize(n)}if(!(t instanceof F)){n.warn("Condition always true [{file}:{line},{col}]",e.condition.start);r=[];return e.alternative&&Dn(n,e.alternative,r),r.push(v(S,e.condition,{body:e.condition})),r.push(e.body),v(M,e,{body:r}).optimize(n)}}var o=e.condition.negate(n),a=e.condition.print_to_string().length,s=o.print_to_string().length,u=s<a;if(e.alternative&&u){u=!1,e.condition=o;var c=e.body;e.body=e.alternative||v(q,e),e.alternative=c}if(se(e.body)&&se(e.alternative))return v(S,e.condition,{body:e.condition.clone()}).optimize(n);if(e.body instanceof S&&e.alternative instanceof S)return v(S,e,{body:v(Ne,e,{condition:e.condition,consequent:e.body.body,alternative:e.alternative.body})}).optimize(n);if(se(e.alternative)&&e.body instanceof S)return a===s&&!u&&e.condition instanceof ze&&"||"==e.condition.operator&&(u=!0),u?v(S,e,{body:v(ze,e,{operator:"||",left:o,right:e.body.body})}).optimize(n):v(S,e,{body:v(ze,e,{operator:"&&",left:e.condition,right:e.body.body})}).optimize(n);if(e.body instanceof q&&e.alternative instanceof S)return v(S,e,{body:v(ze,e,{operator:"||",left:e.condition,right:e.alternative.body})}).optimize(n);if(e.body instanceof oe&&e.alternative instanceof oe&&e.body.TYPE==e.alternative.TYPE)return v(e.body.CTOR,e,{value:v(Ne,e,{condition:e.condition,consequent:e.body.value||v(kn,e.body),alternative:e.alternative.value||v(kn,e.alternative)}).transform(n)}).optimize(n);if(e.body instanceof le&&!e.body.alternative&&!e.alternative&&(e=v(le,e,{condition:v(ze,e.condition,{operator:"&&",left:e.condition,right:e.body.condition}),body:e.body.body,alternative:null})),Wn(e.body)&&e.alternative){var f=e.alternative;return e.alternative=null,v(M,e,{body:[e,f]}).optimize(n)}if(Wn(e.alternative)){r=e.body;return e.body=e.alternative,e.condition=u?o:e.condition.negate(n),e.alternative=null,v(M,e,{body:[e,r]}).optimize(n)}return e}),e(pe,function(e,n){if(!n.option("switches"))return e;var t,i=e.expression.evaluate(n);if(!(i instanceof F)){var r=e.expression;e.expression=A(i,r),e.expression=Hn(e.expression.transform(n),r)}if(!n.option("dead_code"))return e;i instanceof F&&(i=e.expression.tail_node().evaluate(n));for(var o,a,s=[],u=[],c=0,f=e.body.length;c<f&&!a;c++){if((t=e.body[c])instanceof he)o?D(t,u[u.length-1]):o=t;else if(!(i instanceof F)){if(!((_=t.expression.evaluate(n))instanceof F)&&_!==i){D(t,u[u.length-1]);continue}if(_ instanceof F&&(_=t.expression.tail_node().evaluate(n)),_===i&&(a=t,o)){var l=u.indexOf(o);u.splice(l,1),D(o,u[l-1]),o=null}}if(Wn(t)){var p=u[u.length-1];Wn(p)&&p.body.length==t.body.length&&v(M,p,p).equivalent_to(v(M,t,t))&&(p.body=[])}u.push(t)}for(;c<f;)D(e.body[c++],u[u.length-1]);for(u.length>0&&(u[0].body=s.concat(u[0].body)),e.body=u;t=u[u.length-1];){var d=t.body[t.body.length-1];if(d instanceof ce&&n.loopcontrol_target(d)===e&&t.body.pop(),t.body.length||t instanceof me&&(o||t.expression.has_side_effects(n)))break;u.pop()===o&&(o=null)}if(0==u.length)return v(M,e,{body:s.concat(v(S,e.expression,{body:e.expression}))}).optimize(n);if(1==u.length&&(u[0]===a||u[0]===o)){var h=!1,m=new qn(function(n){if(h||n instanceof X||n instanceof S)return!0;n instanceof ce&&m.loopcontrol_target(n)===e&&(h=!0)});if(e.walk(m),!h){var _,g=u[0].body.slice();return(_=u[0].expression)&&g.unshift(v(S,_,{body:_})),g.unshift(v(S,e.expression,{body:e.expression})),v(M,e,{body:g}).optimize(n)}}return e;function D(e,t){t&&!Wn(t)?t.body=t.body.concat(e.body):Dn(n,e,s)}}),e(_e,function(e,n){if(vn(e.body,n),e.bcatch&&e.bfinally&&D(e.bfinally.body,se)&&(e.bfinally=null),n.option("dead_code")&&D(e.body,se)){var t=[];return e.bcatch&&(Dn(n,e.bcatch,t),t.forEach(function(e){e instanceof De&&e.definitions.forEach(function(e){var n=e.name.definition().redefined();n&&(e.name=e.name.clone(),e.name.thedef=n)})})),e.bfinally&&(t=t.concat(e.bfinally.body)),v(M,e,{body:t}).optimize(n)}return e}),De.DEFMETHOD("remove_initializers",function(){var e=[];this.definitions.forEach(function(n){n.name instanceof Ke?(n.value=null,e.push(n)):n.name.walk(new qn(function(t){t instanceof Ke&&e.push(v(Fe,n,{name:t,value:null}))}))}),this.definitions=e}),De.DEFMETHOD("to_assignments",function(e){var n=e.option("reduce_vars"),t=this.definitions.reduce(function(e,t){if(!t.value||t.name instanceof ee){if(t.value){var i=v(Fe,t,{name:t.name,value:t.value}),r=v(ye,t,{definitions:[i]});e.push(r)}}else{var o=v(hn,t.name,t.name);e.push(v(je,t,{operator:"=",left:o,right:t.value})),n&&(o.definition().fixed=!1)}return(t=t.name.definition()).eliminated++,t.replaced--,e},[]);return 0==t.length?null:x(this,t)}),e(De,function(e,n){return 0==e.definitions.length?v(q,e):e}),e(xe,function(e,n){return e}),e(ke,function(e,n){var t=e.expression,i=t,r=D(e.args,function(e){return!(e instanceof G)});n.option("reduce_vars")&&i instanceof hn&&Zn(i=i.fixed_value(),n)&&(i=t);var a=i instanceof X;if(n.option("unused")&&r&&a&&!i.uses_arguments&&!i.pinned()){for(var s=0,u=0,c=0,f=e.args.length;c<f;c++){if(i.argnames[c]instanceof G){if(i.argnames[c].expression.__unused)for(;c<f;){(y=e.args[c++].drop_side_effect_free(n))&&(e.args[s++]=y)}else for(;c<f;)e.args[s++]=e.args[c++];u=s;break}var l=c>=i.argnames.length;if(l||i.argnames[c].__unused){if(y=e.args[c].drop_side_effect_free(n))e.args[s++]=y;else if(!l){e.args[s++]=v(En,e.args[c],{value:0});continue}}else e.args[s++]=e.args[c];u=s}e.args.length=u}if(n.option("unsafe"))if(tn(t))switch(t.name){case"Array":if(1!=e.args.length)return v(He,e,{elements:e.args}).optimize(n);break;case"Object":if(0==e.args.length)return v(Re,e,{properties:[]});break;case"String":if(0==e.args.length)return v(bn,e,{value:""});if(e.args.length<=1)return v(ze,e,{left:e.args[0],operator:"+",right:v(bn,e,{value:""})}).optimize(n);break;case"Number":if(0==e.args.length)return v(En,e,{value:0});if(1==e.args.length)return v(Me,e,{expression:e.args[0],operator:"+"}).optimize(n);case"Boolean":if(0==e.args.length)return v(Tn,e);if(1==e.args.length)return v(Me,e,{expression:v(Me,e,{expression:e.args[0],operator:"!"}),operator:"!"}).optimize(n);break;case"RegExp":var p=[];if(D(e.args,function(e){var t=e.evaluate(n);return p.unshift(t),e!==t}))try{return Rn(n,e,v(wn,e,{value:RegExp.apply(RegExp,p)}))}catch(t){n.warn("Error converting {expr} [{file}:{line},{col}]",{expr:e.print_to_string(),file:e.start.file,line:e.start.line,col:e.start.col})}}else if(t instanceof Te)switch(t.property){case"toString":if(0==e.args.length&&!t.expression.may_throw_on_access(n))return v(ze,e,{left:v(bn,e,{value:""}),operator:"+",right:t.expression}).optimize(n);break;case"join":if(t.expression instanceof He)e:{var d;if(!(e.args.length>0&&(d=e.args[0].evaluate(n))===e.args[0])){var h,m=[],_=[];for(c=0,f=t.expression.elements.length;c<f;c++){var g=t.expression.elements[c];if(g instanceof G)break e;(H=g.evaluate(n))!==g?_.push(H):(_.length>0&&(m.push(v(bn,e,{value:_.join(d)})),_.length=0),m.push(g))}return _.length>0&&m.push(v(bn,e,{value:_.join(d)})),0==m.length?v(bn,e,{value:""}):1==m.length?m[0].is_string(n)?m[0]:v(ze,m[0],{operator:"+",left:v(bn,e,{value:""}),right:m[0]}):""==d?(h=m[0].is_string(n)||m[1].is_string(n)?m.shift():v(bn,e,{value:""}),m.reduce(function(e,n){return v(ze,n,{operator:"+",left:e,right:n})},h).optimize(n)):((y=e.clone()).expression=y.expression.clone(),y.expression.expression=y.expression.expression.clone(),y.expression.expression.elements=m,Rn(n,e,y));var y}}break;case"charAt":if(t.expression.is_string(n)){var b=e.args[0],E=b?b.evaluate(n):0;if(E!==b)return v(Oe,t,{expression:t.expression,property:A(0|E,b||t)}).optimize(n)}break;case"apply":if(2==e.args.length&&e.args[1]instanceof He)return(N=e.args[1].elements.slice()).unshift(e.args[0]),v(ke,e,{expression:v(Te,t,{expression:t.expression,property:"call"}),args:N}).optimize(n);break;case"call":var w=t.expression;if(w instanceof hn&&(w=w.fixed_value()),w instanceof X&&!w.contains_this())return(e.args.length?x(this,[e.args[0],v(ke,e,{expression:t.expression,args:e.args.slice(1)})]):v(ke,e,{expression:t.expression,args:[]})).optimize(n)}if(n.option("unsafe_Function")&&tn(t)&&"Function"==t.name){if(0==e.args.length)return v(Z,e,{argnames:[],body:[]}).optimize(n);if(D(e.args,function(e){return e instanceof bn}))try{var k=gt(O="n(function("+e.args.slice(0,-1).map(function(e){return e.value}).join(",")+"){"+e.args[e.args.length-1].value+"})"),C={ie8:n.option("ie8")};k.figure_out_scope(C);var B,T=new Ft(n.options);(k=k.transform(T)).figure_out_scope(C),Et.reset(),k.compute_char_frequency(C),k.mangle_names(C),k.walk(new qn(function(e){return!!B||(o(e)?(B=e,!0):void 0)})),B.body instanceof F&&(B.body=[v(ae,B.body,{value:B.body})]);var O=At();return M.prototype._codegen.call(B,B,O),e.args=[v(bn,e,{value:B.argnames.map(function(e){return e.print_to_string()}).join(",")}),v(bn,e.args[e.args.length-1],{value:O.get().replace(/^\{|\}$/g,"")})],e}catch(t){if(!(t instanceof ut))throw t;n.warn("Error parsing code passed to new Function [{file}:{line},{col}]",e.args[e.args.length-1].start),n.warn(t.toString())}}var $=a&&i.body;$ instanceof F?$=v(ae,$,{value:$}):$&&($=$[0]);var q=a&&!i.is_generator&&!i.async,z=n.option("inline")&&!e.is_expr_pure(n);if(z&&$ instanceof ae&&q&&(!(H=$.value)||H.is_constant_expression())){H=H?H.clone(!0):v(kn,e);var N=e.args.concat(H);return x(e,N).optimize(n)}if(q){var I,H,R,P,U=-1;if(z&&r&&!i.uses_arguments&&!i.pinned()&&!(n.parent()instanceof We)&&!(i.name&&i instanceof Z)&&(!(n.find_parent(X)instanceof K)||0==i.argnames.length&&(i.body instanceof F||1==i.body.length))&&(H=function(e){var t=i.body instanceof F?[i.body]:i.body,r=t.length;if(n.option("inline")<3)return 1==r&&V(e);e=null;for(var o=0;o<r;o++){var a=t[o];if(a instanceof ye){if(e&&!D(a.definitions,function(e){return!e.value}))return!1}else{if(e)return!1;e=a}}return V(e)}($))&&(t===i||n.option("unused")&&1==(I=t.definition()).references.length&&!Qn(n,I)&&i.is_constant_expression(t.scope))&&!e.pure&&!i.contains_this()&&function(){var e=Object.create(null);do{if(!(R=n.parent(++U)).is_block_scope()||n.parent(U-1)instanceof Y||R.block_scope&&R.block_scope.variables.each(function(n){e[n.name]=!0}),R instanceof ve)R.argname&&(e[R.argname.name]=!0);else if(R instanceof j)P=[];else if(R instanceof hn&&R.fixed_value()instanceof Y)return!1}while(!(R instanceof Y)||R instanceof K);var t=!(R instanceof W)||n.toplevel.vars,r=n.option("inline");return!(!function(e,n){for(var t=i.body.length,r=0;r<t;r++){var o=i.body[r];if(o instanceof ye){if(!n)return!1;for(var a=o.definitions.length;--a>=0;){var s=o.definitions[a].name;if(s instanceof ee||e[s.name]||dn(s.name)||R.var_names()[s.name])return!1;P&&P.push(s.definition())}}}return!0}(e,r>=3&&t)||!function(e,n){for(var t=0,r=i.argnames.length;t<r;t++){var o=i.argnames[t];if(o instanceof Ie){if(o.left.__unused)continue;return!1}if(o instanceof ee)return!1;if(o instanceof G){if(o.expression.__unused)continue;return!1}if(!o.__unused){if(!n||e[o.name]||dn(o.name)||R.var_names()[o.name])return!1;P&&P.push(o.definition())}}return!0}(e,r>=2&&t)||P&&0!=P.length&&nt(i,P))}())return i._squeezed=!0,x(e,function(){var t=[],r=[];(function(n,t){for(var r=i.argnames.length,o=e.args.length;--o>=r;)t.push(e.args[o]);for(o=r;--o>=0;){var a=i.argnames[o],s=e.args[o];if(a.__unused||!a.name||R.var_names()[a.name])s&&t.push(s);else{var u=v(Qe,a,a);a.definition().orig.push(u),!s&&P&&(s=v(kn,e)),J(n,t,u,s)}}n.reverse(),t.reverse()})(t,r),function(e,n){for(var t=n.length,r=0,o=i.body.length;r<o;r++){var a=i.body[r];if(a instanceof ye)for(var s=0,u=a.definitions.length;s<u;s++){var c=a.definitions[s],f=c.name;if(J(e,n,f,c.value),P&&D(i.argnames,function(e){return e.name!=f.name})){var l=i.variables.get(f.name),p=v(hn,f,f);l.references.push(p),n.splice(t++,0,v(je,c,{operator:"=",left:p,right:v(kn,f)}))}}}}(t,r),r.push(H),t.length&&(c=R.body.indexOf(n.parent(U-1))+1,R.body.splice(c,0,v(ye,i,{definitions:t})));return r}()).optimize(n);if(n.option("side_effects")&&!(i.body instanceof F)&&D(i.body,se)){N=e.args.concat(v(kn,e));return x(e,N).optimize(n)}}if(n.option("negate_iife")&&n.parent()instanceof S&&Ze(e))return e.negate(n,!0);var L=e.evaluate(n);return L!==e?(L=A(L,e).optimize(n),Rn(n,L,e)):e;function V(n){return n?n instanceof ae?n.value?n.value.clone(!0):v(kn,e):n instanceof S?v(Me,n,{operator:"void",expression:n.body.clone(!0)}):void 0:v(kn,e)}function J(n,t,i,r){var o=i.definition();R.variables.set(i.name,o),R.enclosed.push(o),R.var_names()[i.name]||(R.var_names()[i.name]=!0,n.push(v(Fe,i,{name:i,value:null})));var a=v(hn,i,i);o.references.push(a),r&&t.push(v(je,e,{operator:"=",left:a,right:r.clone()}))}}),e(Ce,function(e,n){if(n.option("unsafe")){var t=e.expression;if(tn(t))switch(t.name){case"Object":case"RegExp":case"Function":case"Error":case"Array":return v(ke,e,e).transform(n)}}return e}),e(Be,function(e,n){if(!n.option("side_effects"))return e;var t,i,r=[];t=E(n),i=e.expressions.length-1,e.expressions.forEach(function(e,o){o<i&&(e=e.drop_side_effect_free(n,t)),e&&(z(r,e),t=!1)});var o=r.length-1;return function(){for(;o>0&&zn(r[o],n);)o--;o<r.length-1&&(r[o]=v(Me,e,{operator:"void",expression:r[o]}),r.length=o+1)}(),0==o?((e=O(n.parent(),n.self(),r[0]))instanceof Be||(e=e.optimize(n)),e):(e.expressions=r,e)}),$e.DEFMETHOD("lift_sequences",function(e){if(e.option("sequences")&&this.expression instanceof Be){var n=this.expression.expressions.slice(),t=this.clone();return t.expression=n.pop(),n.push(t),x(this,n).optimize(e)}return this}),e(qe,function(e,n){return e.lift_sequences(n)}),e(Me,function(e,n){var t=e.expression;if("delete"==e.operator&&!(t instanceof hn||t instanceof Se||_n(t)))return t instanceof Be?((t=t.expressions.slice()).push(v(On,e)),x(e,t).optimize(n)):x(e,[t,v(On,e)]).optimize(n);var i=e.lift_sequences(n);if(i!==e)return i;if(n.option("side_effects")&&"void"==e.operator)return(t=t.drop_side_effect_free(n))?(e.expression=t,e):v(kn,e).optimize(n);if(n.in_boolean_context())switch(e.operator){case"!":if(t instanceof Me&&"!"==t.operator)return t.expression;t instanceof ze&&(e=Rn(n,e,t.negate(n,E(n))));break;case"typeof":return n.warn("Boolean expression always true [{file}:{line},{col}]",e.start),(t instanceof hn?v(On,e):x(e,[t,v(On,e)])).optimize(n)}if("-"==e.operator&&t instanceof Bn&&(t=t.transform(n)),t instanceof ze&&("+"==e.operator||"-"==e.operator)&&("*"==t.operator||"/"==t.operator||"%"==t.operator))return v(ze,e,{operator:t.operator,left:v(Me,t.left,{operator:e.operator,expression:t.left}),right:t.right});if("-"!=e.operator||!(t instanceof En||t instanceof Bn)){var r=e.evaluate(n);if(r!==e)return Rn(n,r=A(r,e).optimize(n),e)}return e}),ze.DEFMETHOD("lift_sequences",function(e){if(e.option("sequences")){if(this.left instanceof Be){var n=this.left.expressions.slice();return(t=this.clone()).left=n.pop(),n.push(t),x(this,n).optimize(e)}if(this.right instanceof Be&&!this.left.has_side_effects(e)){for(var t,i="="==this.operator&&this.left instanceof hn,r=(n=this.right.expressions).length-1,o=0;o<r&&(i||!n[o].has_side_effects(e));o++);if(o==r)return n=n.slice(),(t=this.clone()).right=n.pop(),n.push(t),x(this,n).optimize(e);if(o>0)return(t=this.clone()).right=x(this.right,n.slice(o)),(n=n.slice(0,o)).push(t),x(this,n).optimize(e)}}return this});var Kn=g("== === != !== * & | ^");function Qn(e,n){for(var t,i=0;t=e.parent(i);i++)if(t instanceof X){var r=t.name;if(r&&r.definition()===n)break}return t}function et(e,n){return e instanceof hn||e.TYPE===n.TYPE}function nt(e,n){var i=!1,r=new qn(function(e){return!!i||(e instanceof hn&&t(e.definition(),n)?i=!0:void 0)}),o=new qn(function(n){if(i)return!0;if(n instanceof Y&&n!==e){var t=o.parent();if(t instanceof ke&&t.expression===n)return;return n.walk(r),!0}});return e.walk(o),i}e(ze,function(e,n){function t(){return e.left.is_constant()||e.right.is_constant()||!e.left.has_side_effects(n)&&!e.right.has_side_effects(n)}function i(n){if(t()){n&&(e.operator=n);var i=e.left;e.left=e.right,e.right=i}}if(Kn(e.operator)&&e.right.is_constant()&&!e.left.is_constant()&&(e.left instanceof ze&&_t[e.left.operator]>=_t[e.operator]||i()),e=e.lift_sequences(n),n.option("comparisons"))switch(e.operator){case"===":case"!==":var r=!0;(e.left.is_string(n)&&e.right.is_string(n)||e.left.is_number(n)&&e.right.is_number(n)||e.left.is_boolean()&&e.right.is_boolean()||e.left.equivalent_to(e.right))&&(e.operator=e.operator.substr(0,2));case"==":case"!=":if(!r&&zn(e.left,n))e.left=v(An,e.left);else if(n.option("typeofs")&&e.left instanceof bn&&"undefined"==e.left.value&&e.right instanceof Me&&"typeof"==e.right.operator){var o=e.right.expression;(o instanceof hn?!o.is_declared(n):o instanceof Se&&n.option("ie8"))||(e.right=o,e.left=v(kn,e.left).optimize(n),2==e.operator.length&&(e.operator+="="))}else if(e.left instanceof hn&&e.right instanceof hn&&e.left.definition()===e.right.definition()&&((u=e.left.fixed_value())instanceof He||u instanceof X||u instanceof Re||u instanceof We))return v("="==e.operator[0]?On:Tn,e);break;case"&&":case"||":var a=e.left;if(a.operator==e.operator&&(a=a.right),a instanceof ze&&a.operator==("&&"==e.operator?"!==":"===")&&e.right instanceof ze&&a.operator==e.right.operator&&(zn(a.left,n)&&e.right.left instanceof An||a.left instanceof An&&zn(e.right.left,n))&&!a.right.has_side_effects(n)&&a.right.equivalent_to(e.right.right)){var s=v(ze,e,{operator:a.operator.slice(0,-1),left:v(An,e),right:a.right});return a!==e.left&&(s=v(ze,e,{operator:e.operator,left:e.left.left,right:s})),s}}var u;if("+"==e.operator&&n.in_boolean_context()){var c=e.left.evaluate(n),f=e.right.evaluate(n);if(c&&"string"==typeof c)return n.warn("+ in boolean context always true [{file}:{line},{col}]",e.start),x(e,[e.right,v(On,e)]).optimize(n);if(f&&"string"==typeof f)return n.warn("+ in boolean context always true [{file}:{line},{col}]",e.start),x(e,[e.left,v(On,e)]).optimize(n)}if(n.option("comparisons")&&e.is_boolean()){if(!(n.parent()instanceof ze)||n.parent()instanceof je){var l=v(Me,e,{operator:"!",expression:e.negate(n,E(n))});e=Rn(n,e,l)}if(n.option("unsafe_comps"))switch(e.operator){case"<":i(">");break;case"<=":i(">=")}}if("+"==e.operator){if(e.right instanceof bn&&""==e.right.getValue()&&e.left.is_string(n))return e.left;if(e.left instanceof bn&&""==e.left.getValue()&&e.right.is_string(n))return e.right;if(e.left instanceof ze&&"+"==e.left.operator&&e.left.left instanceof bn&&""==e.left.left.getValue()&&e.right.is_string(n))return e.left=e.left.right,e.transform(n)}if(n.option("evaluate")){switch(e.operator){case"&&":if(!(c=!!e.left.truthy||!e.left.falsy&&e.left.evaluate(n)))return n.warn("Condition left of && always false [{file}:{line},{col}]",e.start),O(n.parent(),n.self(),e.left).optimize(n);if(!(c instanceof F))return n.warn("Condition left of && always true [{file}:{line},{col}]",e.start),x(e,[e.left,e.right]).optimize(n);if(f=e.right.evaluate(n)){if(!(f instanceof F)){if("&&"==(p=n.parent()).operator&&p.left===n.self()||n.in_boolean_context())return n.warn("Dropping side-effect-free && [{file}:{line},{col}]",e.start),e.left.optimize(n)}}else{if(n.in_boolean_context())return n.warn("Boolean && always false [{file}:{line},{col}]",e.start),x(e,[e.left,v(Tn,e)]).optimize(n);e.falsy=!0}if("||"==e.left.operator)if(!(d=e.left.right.evaluate(n)))return v(Ne,e,{condition:e.left.left,consequent:e.right,alternative:e.left.right}).optimize(n);break;case"||":var p,d;if(!(c=!!e.left.truthy||!e.left.falsy&&e.left.evaluate(n)))return n.warn("Condition left of || always false [{file}:{line},{col}]",e.start),x(e,[e.left,e.right]).optimize(n);if(!(c instanceof F))return n.warn("Condition left of || always true [{file}:{line},{col}]",e.start),O(n.parent(),n.self(),e.left).optimize(n);if(f=e.right.evaluate(n)){if(!(f instanceof F)){if(n.in_boolean_context())return n.warn("Boolean || always true [{file}:{line},{col}]",e.start),x(e,[e.left,v(On,e)]).optimize(n);e.truthy=!0}}else if("||"==(p=n.parent()).operator&&p.left===n.self()||n.in_boolean_context())return n.warn("Dropping side-effect-free || [{file}:{line},{col}]",e.start),e.left.optimize(n);if("&&"==e.left.operator)if((d=e.left.right.evaluate(n))&&!(d instanceof F))return v(Ne,e,{condition:e.left.left,consequent:e.left.right,alternative:e.right}).optimize(n)}var h=!0;switch(e.operator){case"+":if(e.left instanceof yn&&e.right instanceof ze&&"+"==e.right.operator&&e.right.left instanceof yn&&e.right.is_string(n)&&(e=v(ze,e,{operator:"+",left:v(bn,e.left,{value:""+e.left.getValue()+e.right.left.getValue(),start:e.left.start,end:e.right.left.end}),right:e.right.right})),e.right instanceof yn&&e.left instanceof ze&&"+"==e.left.operator&&e.left.right instanceof yn&&e.left.is_string(n)&&(e=v(ze,e,{operator:"+",left:e.left.left,right:v(bn,e.right,{value:""+e.left.right.getValue()+e.right.getValue(),start:e.left.right.start,end:e.right.end})})),e.left instanceof ze&&"+"==e.left.operator&&e.left.is_string(n)&&e.left.right instanceof yn&&e.right instanceof ze&&"+"==e.right.operator&&e.right.left instanceof yn&&e.right.is_string(n)&&(e=v(ze,e,{operator:"+",left:v(ze,e.left,{operator:"+",left:e.left.left,right:v(bn,e.left.right,{value:""+e.left.right.getValue()+e.right.left.getValue(),start:e.left.right.start,end:e.right.left.end})}),right:e.right.right})),e.right instanceof Me&&"-"==e.right.operator&&e.left.is_number(n)){e=v(ze,e,{operator:"-",left:e.left,right:e.right.expression});break}if(e.left instanceof Me&&"-"==e.left.operator&&t()&&e.right.is_number(n)){e=v(ze,e,{operator:"-",left:e.right,right:e.left.expression});break}case"*":h=n.option("unsafe_math");case"&":case"|":case"^":if(e.left.is_number(n)&&e.right.is_number(n)&&t()&&!(e.left instanceof ze&&e.left.operator!=e.operator&&_t[e.left.operator]>=_t[e.operator])){var m=v(ze,e,{operator:e.operator,left:e.right,right:e.left});e=e.right instanceof yn&&!(e.left instanceof yn)?Rn(n,m,e):Rn(n,e,m)}h&&e.is_number(n)&&(e.right instanceof ze&&e.right.operator==e.operator&&(e=v(ze,e,{operator:e.operator,left:v(ze,e.left,{operator:e.operator,left:e.left,right:e.right.left,start:e.left.start,end:e.right.left.end}),right:e.right.right})),e.right instanceof yn&&e.left instanceof ze&&e.left.operator==e.operator&&(e.left.left instanceof yn?e=v(ze,e,{operator:e.operator,left:v(ze,e.left,{operator:e.operator,left:e.left.left,right:e.right,start:e.left.left.start,end:e.right.end}),right:e.left.right}):e.left.right instanceof yn&&(e=v(ze,e,{operator:e.operator,left:v(ze,e.left,{operator:e.operator,left:e.left.right,right:e.right,start:e.left.right.start,end:e.right.end}),right:e.left.left}))),e.left instanceof ze&&e.left.operator==e.operator&&e.left.right instanceof yn&&e.right instanceof ze&&e.right.operator==e.operator&&e.right.left instanceof yn&&(e=v(ze,e,{operator:e.operator,left:v(ze,e.left,{operator:e.operator,left:v(ze,e.left.left,{operator:e.operator,left:e.left.right,right:e.right.left,start:e.left.right.start,end:e.right.left.end}),right:e.left.left}),right:e.right.right})))}}if(e.right instanceof ze&&e.right.operator==e.operator&&(Nn(e.operator)||"+"==e.operator&&(e.right.left.is_string(n)||e.left.is_string(n)&&e.right.right.is_string(n))))return e.left=v(ze,e.left,{operator:e.operator,left:e.left,right:e.right.left}),e.right=e.right.right,e.transform(n);var _=e.evaluate(n);return _!==e?(_=A(_,e).optimize(n),Rn(n,_,e)):e}),e(mn,function(e,n){return e}),e(hn,function(e,n){if(!n.option("ie8")&&tn(e)&&(!e.scope.uses_with||!n.find_parent(V)))switch(e.name){case"undefined":return v(kn,e).optimize(n);case"NaN":return v(Fn,e).optimize(n);case"Infinity":return v(Bn,e).optimize(n)}var t=n.parent();if(n.option("reduce_vars")&&In(e,t)!==e){var i=e.definition();if(n.top_retain&&i.global&&n.top_retain(i))return i.fixed=!1,i.should_replace=!1,i.single_use=!1,e;var r=e.fixed_value(),a=i.single_use&&!(t instanceof ke&&t.is_expr_pure(n));if(a&&(r instanceof X||r instanceof We))if(Zn(r,n))a=!1;else if(i.scope!==e.scope&&(!n.option("reduce_funcs")&&r instanceof X||1==i.escaped||r.inlined||function(e){for(var n,t=0;n=e.parent(t++);){if(n instanceof k)return!1;if(n instanceof He||n instanceof Ue||n instanceof Re)return!0}return!1}(n)))a=!1;else if(Qn(n,i))a=!1;else if((i.scope!==e.scope||i.orig[0]instanceof rn)&&"f"==(a=r.is_constant_expression(e.scope))){var s=e.scope;do{(s instanceof Q||o(s))&&(s.inlined=!0)}while(s=s.parent_scope)}if(a&&r){var u;if(r instanceof Ge&&(r=v(Xe,r,r)),r instanceof Q&&(r._squeezed=!0,r=v(Z,r,r)),i.recursive_refs>0&&r.name instanceof on){var c=(u=r.clone(!0)).name.definition(),f=u.variables.get(u.name.name),l=f&&f.orig[0];l instanceof sn||((l=v(sn,u.name,u.name)).scope=u,u.name=l,f=u.def_function(l)),u.walk(new qn(function(e){e instanceof hn&&e.definition()===c&&(e.thedef=f,f.references.push(e))}))}else(u=r.optimize(n))===r&&(u=r.clone(!0));return u}if(r&&void 0===i.should_replace){var p;if(r instanceof gn)i.orig[0]instanceof rn||!D(i.references,function(e){return i.scope===e.scope})||(p=r);else{var d=r.evaluate(n);d===r||!n.option("unsafe_regexp")&&d instanceof RegExp||(p=A(d,r))}if(p){var h,m=p.optimize(n).print_to_string().length;!function(e){var n;return e.walk(new qn(function(e){if(e instanceof hn&&(n=!0),n)return!0})),n}(r)?(m=Math.min(m,r.print_to_string().length),h=function(){var e=Hn(p.optimize(n),r);return e===p||e===r?e.clone(!0):e}):h=function(){var e=p.optimize(n);return e===p?e.clone(!0):e};var _=i.name.length,g=0;n.option("unused")&&!n.exposed(i)&&(g=(_+2+m)/(i.references.length-i.assignments)),i.should_replace=m<=_+g&&h}else i.should_replace=!1}if(i.should_replace)return i.should_replace()}return e}),e(kn,function(e,n){if(n.option("unsafe_undefined")){var t=h(n,"undefined");if(t){var i=v(hn,e,{name:"undefined",scope:t.scope,thedef:t});return i.is_undefined=!0,i}}var r=In(n.self(),n.parent());return r&&et(r,e)?e:v(Me,e,{operator:"void",expression:v(En,e,{value:0})})}),e(Bn,function(e,n){var t=In(n.self(),n.parent());return t&&et(t,e)?e:!n.option("keep_infinity")||t&&!et(t,e)||h(n,"Infinity")?v(ze,e,{operator:"/",left:v(En,e,{value:1}),right:v(En,e,{value:0})}):e}),e(Fn,function(e,n){var t=In(n.self(),n.parent());return t&&!et(t,e)||h(n,"NaN")?v(ze,e,{operator:"/",left:v(En,e,{value:0}),right:v(En,e,{value:0})}):e});var tt=["+","-","/","*","%",">>","<<",">>>","|","^","&"],it=["*","|","^","&"];function rt(e,n){return e instanceof hn&&(e=e.fixed_value()),!!e&&(!(e instanceof X||e instanceof We)||n.parent()instanceof Ce||!e.contains_this())}function ot(e,n){return n.in_boolean_context()?Rn(n,e,x(e,[e,v(On,e)]).optimize(n)):e}function at(e,n){if(!n.option("computed_props"))return e;if(!(e.key instanceof yn))return e;if(e.key instanceof bn||e.key instanceof En){if("constructor"==e.key.value&&n.parent()instanceof We)return e;e.key=e instanceof Ue?e.key.value:v(an,e.key,{name:e.key.value})}return e}e(je,function(e,n){var i;if(n.option("dead_code")&&e.left instanceof hn&&(i=e.left.definition()).scope===n.find_parent(X)){var r,o=0,a=e;do{if(r=a,(a=n.parent(o++))instanceof oe){if(s(o,a))break;if(nt(i.scope,[i]))break;return"="==e.operator?e.right:(i.fixed=!1,v(ze,e,{operator:e.operator.slice(0,-1),left:e.left,right:e.right}).optimize(n))}}while(a instanceof ze&&a.right===r||a instanceof Be&&a.tail_node()===r)}return"="==(e=e.lift_sequences(n)).operator&&e.left instanceof hn&&e.right instanceof ze&&(e.right.left instanceof hn&&e.right.left.name==e.left.name&&t(e.right.operator,tt)?(e.operator=e.right.operator+"=",e.right=e.right.right):e.right.right instanceof hn&&e.right.right.name==e.left.name&&t(e.right.operator,it)&&!e.right.left.has_side_effects(n)&&(e.operator=e.right.operator+"=",e.right=e.right.left)),e;function s(t,i){var r=e.right;e.right=v(An,r);var o=i.may_throw(n);e.right=r;for(var a,s=e.left.definition().scope;(a=n.parent(t++))!==s;)if(a instanceof _e){if(a.bfinally)return!0;if(o&&a.bcatch)return!0}}}),e(Ie,function(e,n){if(!n.option("evaluate"))return e;var t=e.right.evaluate(n);return void 0===t?e=e.left:t!==e.right&&(t=A(t,e.right),e.right=Hn(t,e.right)),e}),e(Ne,function(e,n){if(!n.option("conditionals"))return e;if(e.condition instanceof Be){var t=e.condition.expressions.slice();return e.condition=t.pop(),t.push(e),x(e,t)}var i=e.condition.evaluate(n);if(i!==e.condition)return i?(n.warn("Condition always true [{file}:{line},{col}]",e.start),O(n.parent(),n.self(),e.consequent)):(n.warn("Condition always false [{file}:{line},{col}]",e.start),O(n.parent(),n.self(),e.alternative));var r=i.negate(n,E(n));Rn(n,i,r)===r&&(e=v(Ne,e,{condition:r,consequent:e.alternative,alternative:e.consequent}));var o,a=e.condition,s=e.consequent,u=e.alternative;if(a instanceof hn&&s instanceof hn&&a.definition()===s.definition())return v(ze,e,{operator:"||",left:a,right:u});if(s instanceof je&&u instanceof je&&s.operator==u.operator&&s.left.equivalent_to(u.left)&&(!e.condition.has_side_effects(n)||"="==s.operator&&!s.left.has_side_effects(n)))return v(je,e,{operator:s.operator,left:s.left,right:v(Ne,e,{condition:e.condition,consequent:s.right,alternative:u.right})});if(s instanceof ke&&u.TYPE===s.TYPE&&s.args.length>0&&s.args.length==u.args.length&&s.expression.equivalent_to(u.expression)&&!e.condition.has_side_effects(n)&&!s.expression.has_side_effects(n)&&"number"==typeof(o=function(){for(var e=s.args,n=u.args,t=0,i=e.length;t<i;t++){if(e[t]instanceof G)return;if(!e[t].equivalent_to(n[t])){if(n[t]instanceof G)return;for(var r=t+1;r<i;r++){if(e[r]instanceof G)return;if(!e[r].equivalent_to(n[r]))return}return t}}}())){var c=s.clone();return c.args[o]=v(Ne,e,{condition:e.condition,consequent:s.args[o],alternative:u.args[o]}),c}if(s instanceof Ne&&s.alternative.equivalent_to(u))return v(Ne,e,{condition:v(ze,e,{left:e.condition,operator:"&&",right:s.condition}),consequent:s.consequent,alternative:u});if(s.equivalent_to(u))return x(e,[e.condition,s]).optimize(n);if(s instanceof ze&&"||"==s.operator&&s.right.equivalent_to(u))return v(ze,e,{operator:"||",left:v(ze,e,{operator:"&&",left:e.condition,right:s.left}),right:u}).optimize(n);var f=n.in_boolean_context();return p(e.consequent)?d(e.alternative)?l(e.condition):v(ze,e,{operator:"||",left:l(e.condition),right:e.alternative}):d(e.consequent)?p(e.alternative)?l(e.condition.negate(n)):v(ze,e,{operator:"&&",left:l(e.condition.negate(n)),right:e.alternative}):p(e.alternative)?v(ze,e,{operator:"||",left:l(e.condition.negate(n)),right:e.consequent}):d(e.alternative)?v(ze,e,{operator:"&&",left:l(e.condition),right:e.consequent}):e;function l(e){return e.is_boolean()?e:v(Me,e,{operator:"!",expression:e.negate(n)})}function p(e){return e instanceof On||f&&e instanceof yn&&e.getValue()||e instanceof Me&&"!"==e.operator&&e.expression instanceof yn&&!e.expression.getValue()}function d(e){return e instanceof Tn||f&&e instanceof yn&&!e.getValue()||e instanceof Me&&"!"==e.operator&&e.expression instanceof yn&&e.expression.getValue()}}),e(Sn,function(e,n){if(n.in_boolean_context())return v(En,e,{value:+e.value});var t=n.parent();return n.option("booleans_as_integers")?(t instanceof ze&&("==="==t.operator||"!=="==t.operator)&&(t.operator=t.operator.replace(/=$/,"")),v(En,e,{value:+e.value})):n.option("booleans")?t instanceof ze&&("=="==t.operator||"!="==t.operator)?(n.warn("Non-strict equality against boolean: {operator} {value} [{file}:{line},{col}]",{operator:t.operator,value:e.value,file:t.start.file,line:t.start.line,col:t.start.col}),v(En,e,{value:+e.value})):v(Me,e,{operator:"!",expression:v(En,e,{value:1-e.value})}):e}),e(Oe,function(e,n){var t,i=e.expression,r=e.property;if(n.option("properties")){var o=r.evaluate(n);if(o!==r){if("string"==typeof o)if("undefined"==o)o=void 0;else(E=parseFloat(o)).toString()==o&&(o=E);r=e.property=Hn(r,A(o,r).transform(n));var a=""+o;if(st(a)&&a.length<=r.print_to_string().length+1)return v(Te,e,{expression:i,property:a}).optimize(n)}}e:if(n.option("arguments")&&i instanceof hn&&"arguments"==i.name&&1==i.definition().orig.length&&(t=i.scope)instanceof X&&t.uses_arguments&&!(t instanceof K)&&r instanceof En){for(var s=r.getValue(),u=Object.create(null),c=t.argnames,f=0;f<c.length;f++){if(!(c[f]instanceof rn))break e;var l=c[f].name;if(l in u)break e;u[l]=!0}var p=t.argnames[s];if(p&&n.has_directive("use strict")){var d=p.definition();(!n.option("reduce_vars")||d.assignments||d.orig.length>1)&&(p=null)}else if(!p&&!n.option("keep_fargs")&&s<t.argnames.length+5)for(;s>=t.argnames.length;)p=v(rn,t,{name:t.make_var_name("argument_"+t.argnames.length),scope:t}),t.argnames.push(p),t.enclosed.push(t.def_variable(p));if(p){var h=v(hn,e,p);return h.reference({}),delete p.__unused,h}}if(In(e,n.parent()))return e;if(o!==r){var m=e.flatten_object(a,n);m&&(i=e.expression=m.expression,r=e.property=m.property)}if(n.option("properties")&&n.option("side_effects")&&r instanceof En&&i instanceof He){s=r.getValue();var _=i.elements,g=_[s];e:if(rt(g,n)){for(var D=!0,y=[],b=_.length;--b>s;){(E=_[b].drop_side_effect_free(n))&&(y.unshift(E),D&&E.has_side_effects(n)&&(D=!1))}if(g instanceof G)break e;for(g=g instanceof Cn?v(kn,g):g,D||y.unshift(g);--b>=0;){var E;if((E=_[b])instanceof G)break e;(E=E.drop_side_effect_free(n))?y.unshift(E):s--}return D?(y.push(g),x(e,y).optimize(n)):v(Oe,e,{expression:v(He,i,{elements:y}),property:v(En,r,{value:s})})}}var w=e.evaluate(n);return w!==e?Rn(n,w=A(w,e).optimize(n),e):e}),X.DEFMETHOD("contains_this",function(){var e,n=this;return n.walk(new qn(function(t){return!!e||(t instanceof gn?e=!0:t!==n&&t instanceof Y&&!(t instanceof K)||void 0)})),e}),Se.DEFMETHOD("flatten_object",function(e,n){if(n.option("properties")){var t=n.option("unsafe_arrows")&&n.option("ecma")>=6,i=this.expression;if(i instanceof Re)for(var r=i.properties,o=r.length;--o>=0;){var a=r[o];if(""+(a instanceof Ye?a.key.name:a.key)==e){if(!D(r,function(e){return e instanceof Ue||t&&e instanceof Ye&&!e.is_generator}))break;if(!rt(a.value,n))break;return v(Oe,this,{expression:v(He,i,{elements:r.map(function(e){var n=e.value;n instanceof J&&(n=v(Z,n,n));var t=e.key;return t instanceof F&&!(t instanceof an)?x(e,[t,n]):n})}),property:v(En,this,{value:o})})}}}}),e(Te,function(e,n){if("arguments"!=e.property&&"caller"!=e.property||n.warn("Function.protoype.{prop} not supported [{file}:{line},{col}]",{prop:e.property,file:e.start.file,line:e.start.line,col:e.start.col}),In(e,n.parent()))return e;if(n.option("unsafe_proto")&&e.expression instanceof Te&&"prototype"==e.expression.property){var t=e.expression.expression;if(tn(t))switch(t.name){case"Array":e.expression=v(He,e.expression,{elements:[]});break;case"Function":e.expression=v(Z,e.expression,{argnames:[],body:[]});break;case"Number":e.expression=v(En,e.expression,{value:0});break;case"Object":e.expression=v(Re,e.expression,{properties:[]});break;case"RegExp":e.expression=v(wn,e.expression,{value:/t/});break;case"String":e.expression=v(bn,e.expression,{value:""})}}var i=e.flatten_object(e.property,n);if(i)return i.optimize(n);var r=e.evaluate(n);return r!==e?Rn(n,r=A(r,e).optimize(n),e):e}),e(He,ot),e(Re,ot),e(wn,ot),e(ae,function(e,n){return e.value&&zn(e.value,n)&&(e.value=null),e}),e(K,function(e,n){if(e.body instanceof F||(e=Xn(e,n)),n.option("arrows")&&1==e.body.length&&e.body[0]instanceof ae){var t=e.body[0].value;e.body=t||[]}return e}),e(Z,function(e,n){if(e=Xn(e,n),n.option("unsafe_arrows")&&n.option("ecma")>=6&&!e.name&&!e.is_generator&&!e.uses_arguments&&!e.pinned()){var t=!1;if(e.walk(new qn(function(e){return!!t||(e instanceof gn?(t=!0,!0):void 0)})),!t)return v(K,e,e).optimize(n)}return e}),e(We,function(e,n){return e}),e(Mn,function(e,n){return e.expression&&!e.is_star&&zn(e.expression,n)&&(e.expression=null),e}),e(te,function(e,n){if(!n.option("evaluate")||n.parent()instanceof ne)return e;for(var t=[],i=0;i<e.segments.length;i++){var r=e.segments[i];if(r instanceof F){var o=r.evaluate(n);if(o!==r&&(o+"").length<=r.print_to_string().length+"${}".length){t[t.length-1].value=t[t.length-1].value+o+e.segments[++i].value;continue}}t.push(r)}return e.segments=t,1==t.length?v(bn,e,t[0]):e}),e(ne,function(e,n){return e}),e(Pe,at),e(Ye,function(e,n){if(at(e,n),n.option("arrows")&&n.parent()instanceof Re&&!e.is_generator&&!e.value.uses_arguments&&!e.value.pinned()&&1==e.value.body.length&&e.value.body[0]instanceof ae&&e.value.body[0].value&&!e.value.contains_this()){var t=v(K,e.value,e.value);return t.async=e.async,t.is_generator=e.is_generator,v(Ue,e,{key:e.key instanceof an?e.key.name:e.key,value:t,quote:e.quote})}return e}),e(Ue,function(e,n){at(e,n);var t=n.option("unsafe_methods");if(t&&n.option("ecma")>=6&&(!(t instanceof RegExp)||t.test(e.key+""))){var i=e.key,r=e.value;if((r instanceof K&&Array.isArray(r.body)&&!r.contains_this()||r instanceof Z)&&!r.name)return v(Ye,e,{async:r.async,is_generator:r.is_generator,key:i instanceof F?i:v(an,e,{name:i}),value:v(J,r,r),quote:e.quote})}return e}),e(ee,function(e,n){if(1==n.option("pure_getters")&&n.option("unused")&&!e.is_array&&Array.isArray(e.names)&&!function(e){for(var n=[/^VarDef$/,/^(Const|Let|Var)$/,/^Export$/],t=0,i=0,r=n.length;t<r;i++){var o=e.parent(i);if(!o)return!1;if(0!==t||"Destructuring"!=o.TYPE){if(!n[t].test(o.TYPE))return!1;t++}}return!0}(n)){for(var t=[],i=0;i<e.names.length;i++){var r=e.names[i];r instanceof Ue&&"string"==typeof r.key&&r.value instanceof Ke&&!o(n,r.value.definition())||t.push(r)}t.length!=e.names.length&&(e.names=t)}return e;function o(e,n){return!!n.references.length||!!n.global&&(!e.toplevel.vars||!!e.top_retain&&e.top_retain(n))}})}(),function(){var n=function(e){for(var n=!0,t=0;t<e.length;t++)n&&e[t]instanceof k&&e[t].body instanceof bn?e[t]=new B({start:e[t].start,end:e[t].end,value:e[t].body.value}):!n||e[t]instanceof k&&e[t].body instanceof bn||(n=!1);return e},t={Program:function(e){return new W({start:r(e),end:o(e),body:n(e.body.map(u))})},ArrayPattern:function(e){return new ee({start:r(e),end:o(e),names:e.elements.map(function(e){return null===e?new Cn:u(e)}),is_array:!0})},ObjectPattern:function(e){return new ee({start:r(e),end:o(e),names:e.properties.map(u),is_array:!1})},AssignmentPattern:function(e){return new ze({start:r(e),end:o(e),left:u(e.left),operator:"=",right:u(e.right)})},SpreadElement:function(e){return new G({start:r(e),end:o(e),expression:u(e.argument)})},RestElement:function(e){return new G({start:r(e),end:o(e),expression:u(e.argument)})},TemplateElement:function(e){return new ie({start:r(e),end:o(e),value:e.value.cooked,raw:e.value.raw})},TemplateLiteral:function(e){for(var n=[],t=0;t<e.quasis.length;t++)n.push(u(e.quasis[t])),e.expressions[t]&&n.push(u(e.expressions[t]));return new te({start:r(e),end:o(e),segments:n})},TaggedTemplateExpression:function(e){return new ne({start:r(e),end:o(e),template_string:u(e.quasi),prefix:u(e.tag)})},FunctionDeclaration:function(e){return new Q({start:r(e),end:o(e),name:u(e.id),argnames:e.params.map(u),is_generator:e.generator,async:e.async,body:n(u(e.body).body)})},FunctionExpression:function(e){return new Z({start:r(e),end:o(e),name:u(e.id),argnames:e.params.map(u),is_generator:e.generator,async:e.async,body:n(u(e.body).body)})},ArrowFunctionExpression:function(e){return new K({start:r(e),end:o(e),argnames:e.params.map(u),body:u(e.body),async:e.async})},ExpressionStatement:function(e){return new S({start:r(e),end:o(e),body:u(e.expression)})},TryStatement:function(e){var n=e.handlers||[e.handler];if(n.length>1||e.guardedHandlers&&e.guardedHandlers.length)throw new Error("Multiple catch clauses are not supported.");return new _e({start:r(e),end:o(e),body:u(e.block).body,bcatch:u(n[0]),bfinally:e.finalizer?new ge(u(e.finalizer)):null})},Property:function(e){var n=e.key,t={start:r(n||e.value),end:o(e.value),key:"Identifier"==n.type?n.name:n.value,value:u(e.value)};return e.computed&&(t.key=u(e.key)),e.method?(t.is_generator=e.value.generator,t.async=e.value.async,e.computed?t.key=u(e.key):t.key=new an({name:t.key}),new Ye(t)):"init"==e.kind?("Identifier"!=n.type&&"Literal"!=n.type&&(t.key=u(n)),new Ue(t)):("string"!=typeof t.key&&"number"!=typeof t.key||(t.key=new an({name:t.key})),t.value=new J(t.value),"get"==e.kind?new Ve(t):"set"==e.kind?new Le(t):"method"==e.kind?(t.async=e.value.async,t.is_generator=e.value.generator,t.quote=e.computed?'"':null,new Ye(t)):void 0)},MethodDefinition:function(e){var n={start:r(e),end:o(e),key:e.computed?u(e.key):new an({name:e.key.name||e.key.value}),value:u(e.value),static:e.static};return"get"==e.kind?new Ve(n):"set"==e.kind?new Le(n):(n.is_generator=e.value.generator,n.async=e.value.async,new Ye(n))},ArrayExpression:function(e){return new He({start:r(e),end:o(e),elements:e.elements.map(function(e){return null===e?new Cn:u(e)})})},ObjectExpression:function(e){return new Re({start:r(e),end:o(e),properties:e.properties.map(function(e){return"SpreadElement"===e.type?u(e):(e.type="Property",u(e))})})},SequenceExpression:function(e){return new Be({start:r(e),end:o(e),expressions:e.expressions.map(u)})},MemberExpression:function(e){return new(e.computed?Oe:Te)({start:r(e),end:o(e),property:e.computed?u(e.property):e.property.name,expression:u(e.object)})},SwitchCase:function(e){return new(e.test?me:he)({start:r(e),end:o(e),expression:u(e.test),body:e.consequent.map(u)})},VariableDeclaration:function(e){return new("const"===e.kind?Ee:"let"===e.kind?be:ye)({start:r(e),end:o(e),definitions:e.declarations.map(u)})},ImportDeclaration:function(e){var n=null,t=null;return e.specifiers.forEach(function(e){"ImportSpecifier"===e.type?(t||(t=[]),t.push(new we({start:r(e),end:o(e),foreign_name:u(e.imported),name:u(e.local)}))):"ImportDefaultSpecifier"===e.type?n=u(e.local):"ImportNamespaceSpecifier"===e.type&&(t||(t=[]),t.push(new we({start:r(e),end:o(e),foreign_name:new pn({name:"*"}),name:u(e.local)})))}),new xe({start:r(e),end:o(e),imported_name:n,imported_names:t,module_name:u(e.source)})},ExportAllDeclaration:function(e){return new Ae({start:r(e),end:o(e),exported_names:[new we({name:new _n({name:"*"}),foreign_name:new _n({name:"*"})})],module_name:u(e.source)})},ExportNamedDeclaration:function(e){return new Ae({start:r(e),end:o(e),exported_definition:u(e.declaration),exported_names:e.specifiers&&e.specifiers.length?e.specifiers.map(function(e){return new we({foreign_name:u(e.exported),name:u(e.local)})}):null,module_name:u(e.source)})},ExportDefaultDeclaration:function(e){return new Ae({start:r(e),end:o(e),exported_value:u(e.declaration),is_default:!0})},Literal:function(e){var n=e.value,t={start:r(e),end:o(e)};if(null===n)return new An(t);var i=e.regex;if(i&&i.pattern){t.value=new RegExp(i.pattern,i.flags);var a=t.value.toString();return t.value.raw_source=i.flags?a.substring(0,a.length-i.flags.length)+i.flags:a,new wn(t)}if(i)return t.value=e.regex&&e.raw?e.raw:n,new wn(t);switch(typeof n){case"string":return t.value=n,new bn(t);case"number":return t.value=n,new En(t);case"boolean":return new(n?On:Tn)(t)}},MetaProperty:function(e){if("new"===e.meta.name&&"target"===e.property.name)return new Ze({start:r(e),end:o(e)})},Identifier:function(e){var n=s[s.length-2];return new("LabeledStatement"==n.type?dn:"VariableDeclarator"==n.type&&n.id===e?"const"==n.kind?nn:"let"==n.kind?tn:Qe:/Import.*Specifier/.test(n.type)?n.local===e?ln:pn:"ExportSpecifier"==n.type?n.local===e?mn:_n:"FunctionExpression"==n.type?n.id===e?sn:rn:"FunctionDeclaration"==n.type?n.id===e?on:rn:"ArrowFunctionExpression"==n.type?-1!==n.params.indexOf(e)?rn:hn:"ClassExpression"==n.type?n.id===e?cn:hn:"Property"==n.type?n.key===e&&n.computed||n.value===e?hn:an:"ClassDeclaration"==n.type?n.id===e?un:hn:"MethodDefinition"==n.type?n.computed?hn:an:"CatchClause"==n.type?fn:"BreakStatement"==n.type||"ContinueStatement"==n.type?vn:hn)({start:r(e),end:o(e),name:e.name})}};function i(e){if("Literal"==e.type)return null!=e.raw?e.raw:e.value+""}function r(e){var n=e.loc,t=n&&n.start,r=e.range;return new A({file:n&&n.source,line:t&&t.line,col:t&&t.column,pos:r?r[0]:e.start,endline:t&&t.line,endcol:t&&t.column,endpos:r?r[0]:e.start,raw:i(e)})}function o(e){var n=e.loc,t=n&&n.end,r=e.range;return new A({file:n&&n.source,line:t&&t.line,col:t&&t.column,pos:r?r[1]:e.end,endline:t&&t.line,endcol:t&&t.column,endpos:r?r[1]:e.end,raw:i(e)})}function a(n,i,a){var s="function From_Moz_"+n+"(M){\n";s+="return new U2."+i.name+"({\nstart: my_start_token(M),\nend: my_end_token(M)";var f="function To_Moz_"+n+"(M){\n";f+="return {\ntype: "+JSON.stringify(n),a&&a.split(/\s*,\s*/).forEach(function(e){var n=/([a-z0-9$_]+)(=|@|>|%)([a-z0-9$_]+)/i.exec(e);if(!n)throw new Error("Can't understand property map: "+e);var t=n[1],i=n[2],r=n[3];switch(s+=",\n"+r+": ",f+=",\n"+t+": ",i){case"@":s+="M."+t+".map(from_moz)",f+="M."+r+".map(to_moz)";break;case">":s+="from_moz(M."+t+")",f+="to_moz(M."+r+")";break;case"=":s+="M."+t,f+="M."+r;break;case"%":s+="from_moz(M."+t+").body",f+="to_moz_block(M)";break;default:throw new Error("Can't understand operator in propmap: "+e)}}),s+="\n})\n}",f+="\n}\n}",s=new Function("U2","my_start_token","my_end_token","from_moz","return("+s+")")(e,r,o,u),f=new Function("to_moz","to_moz_block","to_moz_scope","return("+f+")")(l,d,h),t[n]=s,c(i,f)}t.UpdateExpression=t.UnaryExpression=function(e){return new(("prefix"in e?e.prefix:"UnaryExpression"==e.type)?Me:qe)({start:r(e),end:o(e),operator:e.operator,expression:u(e.argument)})},t.ClassDeclaration=t.ClassExpression=function(e){return new("ClassDeclaration"===e.type?Ge:Xe)({start:r(e),end:o(e),name:u(e.id),extends:u(e.superClass),properties:e.body.body.map(u)})},a("EmptyStatement",q),a("BlockStatement",M,"body@body"),a("IfStatement",le,"test>condition, consequent>body, alternate>alternative"),a("LabeledStatement",N,"label>label, body>body"),a("BreakStatement",ce,"label>label"),a("ContinueStatement",fe,"label>label"),a("WithStatement",V,"object>expression, body>body"),a("SwitchStatement",pe,"discriminant>expression, cases@body"),a("ReturnStatement",ae,"argument>value"),a("ThrowStatement",se,"argument>value"),a("WhileStatement",R,"test>condition, body>body"),a("DoWhileStatement",H,"test>condition, body>body"),a("ForStatement",P,"init>init, test>condition, update>step, body>body"),a("ForInStatement",U,"left>init, right>object, body>body"),a("ForOfStatement",L,"left>init, right>object, body>body, await=await"),a("AwaitExpression",$n,"argument>expression"),a("YieldExpression",Mn,"argument>expression, delegate=is_star"),a("DebuggerStatement",C),a("VariableDeclarator",Fe,"id>name, init>value"),a("CatchClause",ve,"param>argname, body%body"),a("ThisExpression",gn),a("Super",Dn),a("BinaryExpression",ze,"operator=operator, left>left, right>right"),a("LogicalExpression",ze,"operator=operator, left>left, right>right"),a("AssignmentExpression",je,"operator=operator, left>left, right>right"),a("ConditionalExpression",Ne,"test>condition, consequent>consequent, alternate>alternative"),a("NewExpression",Ce,"callee>expression, arguments@args"),a("CallExpression",ke,"callee>expression, arguments@args"),c(W,function(e){return h("Program",e)}),c(G,function(e,n){return{type:p()?"RestElement":"SpreadElement",argument:l(e.expression)}}),c(ne,function(e){return{type:"TaggedTemplateExpression",tag:l(e.prefix),quasi:l(e.template_string)}}),c(te,function(e){for(var n=[],t=[],i=0;i<e.segments.length;i++)i%2!=0?t.push(l(e.segments[i])):n.push({type:"TemplateElement",value:{raw:e.segments[i].raw,cooked:e.segments[i].value},tail:i===e.segments.length-1});return{type:"TemplateLiteral",quasis:n,expressions:t}}),c(Q,function(e){return{type:"FunctionDeclaration",id:l(e.name),params:e.argnames.map(l),generator:e.is_generator,async:e.async,body:h("BlockStatement",e)}}),c(Z,function(e,n){var t=void 0!==n.is_generator?n.is_generator:e.is_generator;return{type:"FunctionExpression",id:l(e.name),params:e.argnames.map(l),generator:t,async:e.async,body:h("BlockStatement",e)}}),c(K,function(e){var n=e.body instanceof Array?{type:"BlockStatement",body:e.body.map(l)}:l(e.body);return{type:"ArrowFunctionExpression",params:e.argnames.map(l),async:e.async,body:n}}),c(ee,function(e){return e.is_array?{type:"ArrayPattern",elements:e.names.map(l)}:{type:"ObjectPattern",properties:e.names.map(l)}}),c(B,function(e){return{type:"ExpressionStatement",expression:{type:"Literal",value:e.value}}}),c(S,function(e){return{type:"ExpressionStatement",expression:l(e.body)}}),c(de,function(e){return{type:"SwitchCase",test:l(e.expression),consequent:e.body.map(l)}}),c(_e,function(e){return{type:"TryStatement",block:d(e),handler:l(e.bcatch),guardedHandlers:[],finalizer:l(e.bfinally)}}),c(ve,function(e){return{type:"CatchClause",param:l(e.argname),guard:null,body:d(e)}}),c(De,function(e){return{type:"VariableDeclaration",kind:e instanceof Ee?"const":e instanceof be?"let":"var",declarations:e.definitions.map(l)}}),c(Ae,function(e){return e.exported_names?"*"===e.exported_names[0].name.name?{type:"ExportAllDeclaration",source:l(e.module_name)}:{type:"ExportNamedDeclaration",specifiers:e.exported_names.map(function(e){return{type:"ExportSpecifier",exported:l(e.foreign_name),local:l(e.name)}}),declaration:l(e.exported_definition),source:l(e.module_name)}:{type:e.is_default?"ExportDefaultDeclaration":"ExportNamedDeclaration",declaration:l(e.exported_value||e.exported_definition)}}),c(xe,function(e){var n=[];return e.imported_name&&n.push({type:"ImportDefaultSpecifier",local:l(e.imported_name)}),e.imported_names&&"*"===e.imported_names[0].foreign_name.name?n.push({type:"ImportNamespaceSpecifier",local:l(e.imported_names[0].name)}):e.imported_names&&e.imported_names.forEach(function(e){n.push({type:"ImportSpecifier",local:l(e.name),imported:l(e.foreign_name)})}),{type:"ImportDeclaration",specifiers:n,source:l(e.module_name)}}),c(Be,function(e){return{type:"SequenceExpression",expressions:e.expressions.map(l)}}),c(Se,function(e){var n=e instanceof Oe;return{type:"MemberExpression",object:l(e.expression),computed:n,property:n?l(e.property):{type:"Identifier",name:e.property}}}),c($e,function(e){return{type:"++"==e.operator||"--"==e.operator?"UpdateExpression":"UnaryExpression",operator:e.operator,prefix:e instanceof Me,argument:l(e.expression)}}),c(ze,function(e){return"="==e.operator&&p()?{type:"AssignmentPattern",left:l(e.left),right:l(e.right)}:{type:"&&"==e.operator||"||"==e.operator?"LogicalExpression":"BinaryExpression",left:l(e.left),operator:e.operator,right:l(e.right)}}),c(He,function(e){return{type:"ArrayExpression",elements:e.elements.map(l)}}),c(Re,function(e){return{type:"ObjectExpression",properties:e.properties.map(l)}}),c(Pe,function(e,n){var t,i=e.key instanceof F?l(e.key):{type:"Identifier",value:e.key};"number"==typeof e.key&&(i={type:"Literal",value:Number(e.key)}),"string"==typeof e.key&&(i={type:"Identifier",name:e.key});var r="string"==typeof e.key||"number"==typeof e.key,o=!r&&(!(e.key instanceof Je)||e.key instanceof hn);return e instanceof Ue?(t="init",o=!r):e instanceof Ve?t="get":e instanceof Le&&(t="set"),n instanceof We?{type:"MethodDefinition",computed:o,kind:t,static:e.static,key:l(e.key),value:l(e.value)}:{type:"Property",computed:o,kind:t,key:i,value:l(e.value)}}),c(Ye,function(e,n){return n instanceof Re?{type:"Property",computed:!(e.key instanceof Je)||e.key instanceof hn,kind:"init",method:!0,shorthand:!1,key:l(e.key),value:l(e.value)}:{type:"MethodDefinition",computed:!(e.key instanceof Je)||e.key instanceof hn,kind:"constructor"===e.key?"constructor":"method",static:e.static,key:l(e.key),value:l(e.value)}}),c(We,function(e){return{type:e instanceof Xe?"ClassExpression":"ClassDeclaration",superClass:l(e.extends),id:e.name?l(e.name):null,body:{type:"ClassBody",body:e.properties.map(l)}}}),c(Ze,function(e){return{type:"MetaProperty",meta:{type:"Identifier",name:"new"},property:{type:"Identifier",name:"target"}}}),c(Je,function(e,n){if(e instanceof an&&n.quote)return{type:"Literal",value:e.name};var t=e.definition();return{type:"Identifier",name:t?t.mangled_name||t.name:e.name}}),c(wn,function(e){var n=e.value.source,t=e.value.toString().match(/[gimuys]*$/)[0];return{type:"Literal",value:new RegExp(n,t),raw:e.value.raw_source,regex:{pattern:n,flags:t}}}),c(yn,function(e){var n=e.value;return"number"==typeof n&&(n<0||0===n&&1/n<0)?{type:"UnaryExpression",operator:"-",prefix:!0,argument:{type:"Literal",value:-n,raw:e.start.raw}}:{type:"Literal",value:n,raw:e.start.raw}}),c(xn,function(e){return{type:"Identifier",name:String(e.value)}}),Sn.DEFMETHOD("to_mozilla_ast",yn.prototype.to_mozilla_ast),An.DEFMETHOD("to_mozilla_ast",yn.prototype.to_mozilla_ast),Cn.DEFMETHOD("to_mozilla_ast",function(){return null}),$.DEFMETHOD("to_mozilla_ast",M.prototype.to_mozilla_ast),X.DEFMETHOD("to_mozilla_ast",Z.prototype.to_mozilla_ast);var s=null;function u(e){s.push(e);var n=null!=e?t[e.type](e):null;return s.pop(),n}function c(e,n){e.DEFMETHOD("to_mozilla_ast",function(e){return t=this,i=n(this,e),r=t.start,o=t.end,null!=r.pos&&null!=o.endpos&&(i.range=[r.pos,o.endpos]),r.line&&(i.loc={start:{line:r.line,column:r.col},end:o.endline?{line:o.endline,column:o.endcol}:null},r.file&&(i.loc.source=r.file)),i;var t,i,r,o})}F.from_mozilla_ast=function(e){var n=s;s=[];var t=u(e);return s=n,t};var f=null;function l(e){null===f&&(f=[]),f.push(e);var n=null!=e?e.to_mozilla_ast(f[f.length-2]):null;return f.pop(),0===f.length&&(f=null),n}function p(){for(var e=f.length;e--;)if(f[e]instanceof ee)return!0;return!1}function d(e){return{type:"BlockStatement",body:e.body.map(l)}}function h(e,n){var t=n.body.map(l);return n.body[0]instanceof S&&n.body[0].body instanceof bn&&t.unshift(l(new q(n.body[0]))),{type:e,body:t}}}();var St="undefined"==typeof atob?function(e){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(e,"base64").toString();if("string"!=typeof e)throw new Errror('"b64" must be a string');return new Buffer(e,"base64").toString()}:atob,Tt="undefined"==typeof btoa?function(e){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(e).toString("base64");if("string"!=typeof e)throw new Errror('"str" must be a string');return new Buffer(e).toString("base64")}:btoa;function Ot(e,n,t){n[e]&&t.forEach(function(t){n[t]&&("object"!=typeof n[t]&&(n[t]={}),e in n[t]||(n[t][e]=n[e]))})}function $t(e){e&&("props"in e?e.props instanceof y||(e.props=y.fromObject(e.props)):e.props=new y)}function Mt(e){return{props:e.props.toObject()}}e.Dictionary=y,e.minify=function(e,n){var t,i,r=F.warn_function;try{var o,s=(n=a(n,{compress:{},ecma:void 0,enclose:!1,ie8:!1,keep_classnames:void 0,keep_fnames:!1,mangle:{},module:!1,nameCache:null,output:{},parse:{},rename:void 0,safari10:!1,sourceMap:!1,timings:!1,toplevel:!1,warnings:!1,wrap:!1},!0)).timings&&{start:Date.now()};void 0===n.keep_classnames&&(n.keep_classnames=n.keep_fnames),void 0===n.rename&&(n.rename=n.compress&&n.mangle),Ot("ecma",n,["parse","compress","output"]),Ot("ie8",n,["compress","mangle","output"]),Ot("keep_classnames",n,["compress","mangle"]),Ot("keep_fnames",n,["compress","mangle"]),Ot("module",n,["parse","compress","mangle"]),Ot("safari10",n,["mangle","output"]),Ot("toplevel",n,["compress","mangle"]),Ot("warnings",n,["compress"]),n.mangle&&(n.mangle=a(n.mangle,{cache:n.nameCache&&(n.nameCache.vars||{}),eval:!1,ie8:!1,keep_classnames:!1,keep_fnames:!1,module:!1,properties:!1,reserved:[],safari10:!1,toplevel:!1},!0),n.mangle.properties&&("object"!=typeof n.mangle.properties&&(n.mangle.properties={}),n.mangle.properties.keep_quoted&&(o=n.mangle.properties.reserved,Array.isArray(o)||(o=[]),n.mangle.properties.reserved=o),!n.nameCache||"cache"in n.mangle.properties||(n.mangle.properties.cache=n.nameCache.props||{})),$t(n.mangle.cache),$t(n.mangle.properties.cache)),n.sourceMap&&(n.sourceMap=a(n.sourceMap,{content:null,filename:null,includeSources:!1,root:null,url:null},!0));var u,c=[];if(n.warnings&&!F.warn_function&&(F.warn_function=function(e){c.push(e)}),s&&(s.parse=Date.now()),e instanceof W)u=e;else{for(var f in"string"==typeof e&&(e=[e]),n.parse=n.parse||{},n.parse.toplevel=null,e)if(b(e,f)&&(n.parse.filename=f,n.parse.toplevel=gt(e[f],n.parse),n.sourceMap&&"inline"==n.sourceMap.content)){if(Object.keys(e).length>1)throw new Error("inline source map only works with singular input");n.sourceMap.content=(t=e[f],i=void 0,(i=/\n\/\/# sourceMappingURL=data:application\/json(;.*?)?;base64,(.*)/.exec(t))?St(i[2]):(F.warn("inline source map not found"),null))}u=n.parse.toplevel}o&&kt(u,o),n.wrap&&(u=u.wrap_commonjs(n.wrap)),n.enclose&&(u=u.wrap_enclose(n.enclose)),s&&(s.rename=Date.now()),s&&(s.compress=Date.now()),n.compress&&(u=new Ft(n.compress).compress(u)),s&&(s.scope=Date.now()),n.mangle&&u.figure_out_scope(n.mangle),s&&(s.mangle=Date.now()),n.mangle&&(Et.reset(),u.compute_char_frequency(n.mangle),u.mangle_names(n.mangle)),s&&(s.properties=Date.now()),n.mangle&&n.mangle.properties&&(u=Bt(u,n.mangle.properties)),s&&(s.output=Date.now());var l={};if(n.output.ast&&(l.ast=u),!b(n.output,"code")||n.output.code){if(n.sourceMap&&("string"==typeof n.sourceMap.content&&(n.sourceMap.content=JSON.parse(n.sourceMap.content)),n.output.source_map=function(e){e=a(e,{file:null,root:null,orig:null,orig_line_diff:0,dest_line_diff:0});var n=new(require("source-map").SourceMapGenerator)({file:e.file,sourceRoot:e.root}),t=e.orig&&new(require("source-map").SourceMapConsumer)(e.orig);return t&&Array.isArray(e.orig.sources)&&t._sources.toArray().forEach(function(e){var i=t.sourceContentFor(e,!0);i&&n.setSourceContent(e,i)}),{add:function(i,r,o,a,s,u){if(t){var c=t.originalPositionFor({line:a,column:s});if(null===c.source)return;i=c.source,a=c.line,s=c.column,u=c.name||u}n.addMapping({generated:{line:r+e.dest_line_diff,column:o},original:{line:a+e.orig_line_diff,column:s},source:i,name:u})},get:function(){return n},toString:function(){return JSON.stringify(n.toJSON())}}}({file:n.sourceMap.filename,orig:n.sourceMap.content,root:n.sourceMap.root}),n.sourceMap.includeSources)){if(e instanceof W)throw new Error("original source content unavailable");for(var f in e)b(e,f)&&n.output.source_map.get().setSourceContent(f,e[f])}delete n.output.ast,delete n.output.code;var p=At(n.output);u.print(p),l.code=p.get(),n.sourceMap&&(l.map=n.output.source_map.toString(),"inline"==n.sourceMap.url?l.code+="\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,"+Tt(l.map):n.sourceMap.url&&(l.code+="\n//# sourceMappingURL="+n.sourceMap.url))}return n.nameCache&&n.mangle&&(n.mangle.cache&&(n.nameCache.vars=Mt(n.mangle.cache)),n.mangle.properties&&n.mangle.properties.cache&&(n.nameCache.props=Mt(n.mangle.properties.cache))),s&&(s.end=Date.now(),l.timings={parse:.001*(s.rename-s.parse),rename:.001*(s.compress-s.rename),compress:.001*(s.scope-s.compress),scope:.001*(s.mangle-s.scope),mangle:.001*(s.properties-s.mangle),properties:.001*(s.output-s.properties),output:.001*(s.end-s.output),total:.001*(s.end-s.start)}),c.length&&(l.warnings=c),l}catch(e){return{error:e}}finally{F.warn_function=r}},e.parse=gt,e.push_uniq=h,e.OutputStream=At,e.TreeTransformer=Dt,e.TreeWalker=qn,e.string_template=m,e.Compressor=Ft,e.defaults=a,e.base54=Et,e.mangle_properties=Bt,e.reserve_quoted_keys=kt,e.to_ascii=St}("undefined"!=typeof module?module.exports:Terser={});
45
45
  //# sourceMappingURL=bundle.js.map