!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("source-map")):"function"==typeof define&&define.amd?define(["exports","source-map"],t):t((e=e||self).Terser={},e.sourceMap)}(this,function(e,t){"use strict";function n(e){return e.split("")}function i(e,t){return t.includes(e)}function r(e,t){for(var n=0,i=t.length;n=0&&!l(););u.reverse(),c.reverse()}else for(s=0;s=0;)e[n]===t&&e.splice(n,1)}function h(e,t){if(e.length<2)return e.slice();return function e(n){if(n.length<=1)return n;var i=Math.floor(n.length/2),r=n.slice(0,i),o=n.slice(i);return function(e,n){for(var i=[],r=0,o=0,a=0;r=0;)if(!t(e[n]))return!1;return!0}function v(e,t,n){e.has(t)?e.get(t).push(n):e.set(t,[n])}function A(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function S(e){for(var t,n=e.parent(-1),i=0;t=e.parent(i);i++){if(t instanceof ce&&t.body===n)return!0;if(!(t instanceof ft&&t.expressions[0]===n||"Call"==t.TYPE&&t.expression===n||t instanceof _t&&t.expression===n||t instanceof dt&&t.expression===n||t instanceof gt&&t.condition===n||t instanceof Dt&&t.left===n||t instanceof ht&&t.expression===n))return!1;n=t}}function T(e,t){return!0===e||e instanceof RegExp&&e.test(t)}var b="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",y="false null true",C="enum implements import interface package private protected public static super this "+y+" "+b,O="return new delete throw else case yield await";b=D(b),C=D(C),O=D(O),y=D(y);var F=D(n("+-*&%=<>!?|~^")),M=/[0-9a-f]/i,R=/^0x[0-9a-f]+$/i,w=/^0[0-7]+$/,N=/^0o[0-7]+$/i,x=/^0b[01]+$/i,k=/^\d*\.?\d*(?:e[+-]?\d*(?:\d\.?|\.?\d)\d*)?$/i,I=D(["in","instanceof","typeof","new","void","delete","++","--","+","-","!","~","&","|","^","*","**","/","%",">>","<<",">>>","<",">","<=",">=","==","===","!=","!==","?","=","+=","-=","/=","*=","**=","%=",">>=","<<=",">>>=","|=","^=","&=","&&","||"]),L=D(n("  \n\r\t\f\v​           \u2028\u2029   \ufeff")),V=D(n("\n\r\u2028\u2029")),P=D(n(";]),:")),B=D(n("[{(,;:")),K=D(n("[]{}(),;:")),U={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 G(e,t){var n=e.charAt(t);if(H(n)){var i=e.charAt(t+1);if(X(i))return n+i}if(X(n)){var r=e.charAt(t-1);if(H(r))return r+n}return n}function H(e){return"string"==typeof e&&(e=e.charCodeAt(0)),e>=55296&&e<=56319}function X(e){return"string"==typeof e&&(e=e.charCodeAt(0)),e>=56320&&e<=57343}function z(e){return e>=48&&e<=57}function W(e){var t=e.charCodeAt(0);return U.ID_Start.test(e)||36==t||95==t}function Y(e){var t=e.charCodeAt(0);return U.ID_Continue.test(e)||36==t||95==t||8204==t||8205==t}function q(e){return/^[a-z_$][a-z0-9_$]*$/i.test(e)}function $(e,t,n,i,r){this.message=e,this.filename=t,this.line=n,this.col=i,this.pos=r}function j(e,t,n,i,r){throw new $(e,t,n,i,r)}function Z(e,t,n){return e.type==t&&(null==n||e.value==n)}$.prototype=Object.create(Error.prototype),$.prototype.constructor=$,$.prototype.name="SyntaxError",o($);var Q={};function J(e,t,n,i){var r={text:e,filename:t,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 G(r.text,r.pos)}function a(e,t){var n=G(r.text,r.pos++);if(e&&!n)throw Q;return V.has(n)?(r.newline_before=r.newline_before||!t,++r.line,r.col=0,t||"\r"!=n||"\n"!=o()||(++r.pos,n="\n")):(n.length>1&&(++r.pos,++r.col),++r.col),n}function s(e){for(;e-- >0;)a()}function u(e){return r.text.substr(r.pos,e.length)==e}function c(e,t){var n=r.text.indexOf(e,r.pos);if(t&&-1==n)throw Q;return n}function l(){r.tokline=r.line,r.tokcol=r.col,r.tokpos=r.pos}var f=!1,p=null;function _(n,i,o){r.regex_allowed="operator"==n&&!te.has(i)||"keyword"==n&&O.has(i)||"punc"==n&&B.has(i)||"arrow"==n,"punc"==n&&"."==i?f=!0:o||(f=!1);var a={type:n,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:t};return/^(?:num|string|regexp)$/i.test(n)&&(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 se(a),o||(p=a),a}function d(){for(;L.has(o());)a()}function m(e){j(e,t,r.tokline,r.tokcol,r.tokpos)}function E(e){var t=!1,n=!1,i=!1,r="."==e,s=function(e){for(var t,n="",i=0;(t=o())&&e(t,i++);)n+=a();return n}(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||!t&&(t=n=!0);case 45:return n||0==a&&!e;case 43:return n;case n=!1,46:return!(r||i||t)&&(r=!0)}return M.test(o)});e&&(s=e+s),w.test(s)&&Z.has_directive("use strict")&&m("Legacy octal literals are not allowed in strict mode");var u=function(e){if(R.test(e))return parseInt(e.substr(2),16);if(w.test(e))return parseInt(e.substr(1),8);if(N.test(e))return parseInt(e.substr(2),8);if(x.test(e))return parseInt(e.substr(2),2);if(k.test(e))return parseFloat(e);var t=parseFloat(e);return t==e?t:void 0}(s);if(!isNaN(u))return _("num",u);m("Invalid syntax: "+s)}function h(e,t,n){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(D(2,t));case 117:if("{"==o()){for(a(!0),"}"===o()&&m("Expecting hex-character between {}");"0"==o();)a(!0);var u,l=c("}",!0)-r.pos;return(l>6||(u=D(l,t))>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(D(4,t));case 10:return"";case 13:if("\n"==o())return a(!0,e),""}return s>="0"&&s<="7"?(n&&t&&m("Octal escape sequences are not allowed in template strings"),function(e,t){var n=o();n>="0"&&n<="7"&&(e+=a(!0))[0]<="3"&&(n=o())>="0"&&n<="7"&&(e+=a(!0));if("0"===e)return"\0";e.length>0&&Z.has_directive("use strict")&&t&&m("Legacy octal escape sequences are not allowed in strict mode");return String.fromCharCode(parseInt(e,8))}(s,t)):s}function D(e,t){for(var n=0;e>0;--e){if(!t&&isNaN(parseInt(o(),16)))return parseInt(n,16)||"";var i=a(!0);isNaN(parseInt(i,16))&&m("Invalid hex-character pattern in string"),n+=i}return parseInt(n,16)}var g=$("Unterminated string constant",function(e){for(var t=a(),n="";;){var i=a(!0,!0);if("\\"==i)i=h(!0,!0);else if(V.has(i))m("Unterminated string constant");else if(i==t)break;n+=i}var r=_("string",n);return r.quote=e,r}),v=$("Unterminated template",function(e){e&&r.template_braces.push(r.brace_counter);var t,n,i="",s="";for(a(!0,!0);"`"!=(t=a(!0,!0));){if("\r"==t)"\n"==o()&&++r.pos,t="\n";else if("$"==t&&"{"==o())return a(!0,!0),r.brace_counter++,(n=_(e?"template_head":"template_substitution",i)).begin=e,n.raw=s,n.end=!1,n;if(s+=t,"\\"==t){var u=r.pos;t=h(!0,!(p&&("name"===p.type||"punc"===p.type&&(")"===p.value||"]"===p.value))),!0),s+=r.text.substr(u,r.pos-u)}i+=t}return r.template_braces.pop(),(n=_(e?"template_head":"template_substitution",i)).begin=e,n.raw=s,n.end=!0,n});function A(e){var t,n=r.regex_allowed,i=function(){for(var e=r.text,t=r.pos,n=r.text.length;t"===o()?(a(),_("arrow","=>")):U("=");case 96:return v(!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 v(!1)}if(z(c))return E();if(K.has(t))return _("punc",a());if(F.has(t))return U();if(92==c||W(t))return h=void 0,h=T(),f?_("name",h):y.has(h)?_("atom",h):b.has(h)?I.has(h)?_("operator",h):_("keyword",h):_("name",h);break}var h;m("Unexpected character '"+t+"'")}return Z.next=a,Z.peek=o,Z.context=function(e){return e&&(r=e),r},Z.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]++},Z.push_directives_stack=function(){r.directive_stack.push([])},Z.pop_directives_stack=function(){for(var e=r.directive_stack[r.directive_stack.length-1],t=0;t0},Z}var ee=D(["typeof","void","delete","--","++","!","~","-","+"]),te=D(["--","++"]),ne=D(["=","+=","-=","/=","*=","**=","%=",">>=","<<=",">>>=","|=","^=","&="]),ie=function(e,t){for(var n=0;n","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]],{}),re=D(["atom","num","string","regexp","name"]);function oe(e,t){t=s(t,{bare_returns:!1,ecma:8,expression:!1,filename:null,html5_comments:!0,module:!1,shebang:!0,strict:!1,toplevel:null},!0);var n={input:"string"==typeof e?J(e,t.filename,t.html5_comments,t.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 i(e,t){return Z(n.token,e,t)}function o(){return n.peeked||(n.peeked=n.input())}function a(){return n.prev=n.token,n.peeked||o(),n.token=n.peeked,n.peeked=null,n.in_directives=n.in_directives&&("string"==n.token.type||i("punc",";")),n.token}function u(){return n.prev}function c(e,t,i,r){var o=n.input.context();j(e,o.filename,null!=t?t:o.tokline,null!=i?i:o.tokcol,null!=r?r:o.tokpos)}function l(e,t){c(t,e.line,e.col)}function f(e){null==e&&(e=n.token),l(e,"Unexpected token: "+e.type+" ("+e.value+")")}function p(e,t){if(i(e,t))return a();l(n.token,"Unexpected token "+n.token.type+" «"+n.token.value+"», expected "+e+" «"+t+"»")}function _(e){return p("punc",e)}function d(e){return e.nlb||!g(e.comments_before,function(e){return!e.nlb})}function m(){return!t.strict&&(i("eof")||i("punc","}")||d(n.token))}function E(){return n.in_generator===n.in_function}function h(){return n.in_async===n.in_function}function D(e){i("punc",";")?a():e||m()||f()}function v(){_("(");var e=Lt(!0);return _(")"),e}function S(e){return function(){var t=n.token,i=e.apply(null,arguments),r=u();return i.start=t,i.end=r,i}}function T(){(i("operator","/")||i("operator","/="))&&(n.peeked=null,n.token=n.input(n.token.value.substr(1)))}n.token=a();var b=S(function(e,s,E){switch(T(),n.token.type){case"string":if(n.in_directives){var g=o();!n.token.raw.includes("\\")&&(Z(g,"punc",";")||Z(g,"punc","}")||d(g)||Z(g,"eof"))?n.input.add_directive(n.token.value):n.in_directives=!1}var A=n.in_directives,S=y();return A&&S.body instanceof nn?new fe(S.body):S;case"template_head":case"num":case"regexp":case"operator":case"atom":return y();case"name":if("async"==n.token.value&&Z(o(),"keyword","function"))return a(),a(),s&&c("functions are not allowed as the body of a loop"),M(Ie,!1,!0,e);if("import"==n.token.value&&!Z(o(),"punc","(")){a();var C=function(){var e,t,r=u();i("name")&&(e=me(Wt));i("punc",",")&&a();((t=se(!0))||e)&&p("name","from");var o=n.token;"string"!==o.type&&f();return a(),new at({start:r,imported_name:e,imported_names:t,module_name:new nn({start:o,value:o.value,quote:o.quote,end:o}),end:n.token})}();return D(),C}return Z(o(),"punc",":")?function(){var e=me(qt);"await"===e.name&&h()&&l(n.prev,"await cannot be used as label inside async function");r(function(t){return t.name==e.name},n.labels)&&c("Label "+e.name+" defined twice");_(":"),n.labels.push(e);var t=b();n.labels.pop(),t instanceof ve||e.references.forEach(function(t){t instanceof We&&(t=t.label.start,c("Continue label `"+e.name+"` refers to non-IterationStatement.",t.line,t.col,t.pos))});return new ge({body:t,label:e})}():y();case"punc":switch(n.token.value){case"{":return new Ee({start:n.token,body:k(),end:u()});case"[":case"(":return y();case";":return n.in_directives=!1,a(),new he;default:f()}case"keyword":switch(n.token.value){case"break":return a(),O(ze);case"continue":return a(),O(We);case"debugger":return a(),D(),new le;case"do":a();var F=tn(b);p("keyword","while");var R=v();return D(!0),new Se({body:F,condition:R});case"while":return a(),new Te({condition:v(),body:tn(function(){return b(!1,!0)})});case"for":return a(),function(){var e="`for await` invalid in this context",t=n.token;"name"==t.type&&"await"==t.value?(h()||l(t,e),a()):t=!1;_("(");var r=null;if(i("punc",";"))t&&l(t,e);else{r=i("keyword","var")?(a(),V(!0)):i("keyword","let")?(a(),B(!0)):i("keyword","const")?(a(),K(!0)):Lt(!0,!0);var o=i("operator","in"),s=i("name","of");if(t&&!s&&l(t,e),o||s)return r instanceof tt?r.definitions.length>1&&l(r.start,"Only one variable declaration allowed in for..in loop"):mt(r)||(r=Mt(r))instanceof Le||l(r.start,"Invalid left-hand side in for..in loop"),a(),o?function(e){var t=Lt(!0);return _(")"),new ye({init:e,object:t,body:tn(function(){return b(!1,!0)})})}(r):function(e,t){var n=e instanceof tt?e.definitions[0].name:null,i=Lt(!0);return _(")"),new Ce({await:t,init:e,name:n,object:i,body:tn(function(){return b(!1,!0)})})}(r,!!t)}return function(e){_(";");var t=i("punc",";")?null:Lt(!0);_(";");var n=i("punc",")")?null:Lt(!0);return _(")"),new be({init:e,condition:t,step:n,body:tn(function(){return b(!1,!0)})})}(r)}();case"class":return a(),s&&c("classes are not allowed as the body of a loop"),E&&c("classes are not allowed as the body of an if"),$(Rt);case"function":return a(),s&&c("functions are not allowed as the body of a loop"),M(Ie,!1,!1,e);case"if":return a(),function(){var e=v(),t=b(!1,!1,!0),n=null;i("keyword","else")&&(a(),n=b(!1,!1,!0));return new Ye({condition:e,body:t,alternative:n})}();case"return":0!=n.in_function||t.bare_returns||c("'return' outside of function"),a();var N=null;return i("punc",";")?a():m()||(N=Lt(!0),D()),new Ge({value:N});case"switch":return a(),new qe({expression:v(),body:tn(I)});case"throw":a(),d(n.token)&&c("Illegal newline after 'throw'");N=Lt(!0);return D(),new He({value:N});case"try":return a(),function(){var e=k(),t=null,r=null;if(i("keyword","catch")){var o=n.token;if(a(),i("punc","{"))var s=null;else{_("(");var s=w(void 0,zt);_(")")}t=new Je({start:o,argname:s,body:k(),end:u()})}if(i("keyword","finally")){var o=n.token;a(),r=new et({start:o,body:k(),end:u()})}t||r||c("Missing catch/finally blocks");return new Qe({body:e,bcatch:t,bfinally:r})}();case"var":a();C=V();return D(),C;case"let":a();C=B();return D(),C;case"const":a();C=K();return D(),C;case"with":return n.input.has_directive("use strict")&&c("Strict mode may not include a with statement"),a(),new Oe({expression:v(),body:b()});case"export":if(!Z(o(),"punc","(")){a();C=function(){var e,t,r,s,c,l=n.token;if(i("keyword","default"))e=!0,a();else if(t=se(!1)){if(i("name","from")){a();var p=n.token;return"string"!==p.type&&f(),a(),new st({start:l,is_default:e,exported_names:t,module_name:new nn({start:p,value:p.value,quote:p.quote,end:p}),end:u()})}return new st({start:l,is_default:e,exported_names:t,end:u()})}i("punc","{")||e&&(i("keyword","class")||i("keyword","function"))&&Z(o(),"punc")?(s=Lt(!1),D()):(r=b(e))instanceof tt&&e?f(r.start):r instanceof tt||r instanceof we||r instanceof Rt?c=r:r instanceof pe?s=r.body:f(r.start);return new st({start:l,is_default:e,exported_value:s,exported_definition:c,end:u()})}();return i("punc",";")&&D(),C}}}f()});function y(e){return new pe({body:(e=Lt(!0),D(),e)})}function O(e){var t,i=null;m()||(i=me(Qt,!0)),null!=i?((t=r(function(e){return e.name==i.name},n.labels))||c("Undefined label "+i.name),i.thedef=t):0==n.in_loop&&c(e.TYPE+" not inside a loop or switch"),D();var o=new e({label:i});return t&&t.references.push(o),o}var F=function(e,t,r){d(n.token)&&c("Unexpected newline before arrow (=>)"),p("arrow","=>");var o=x(i("punc","{"),!1,r),a=o instanceof Array&&o.length?o[o.length-1].end:o instanceof Array?e:o.end;return new ke({start:e,end:a,async:r,argnames:t,body:o})},M=function(e,t,n,r){var o=e===Ie,s=i("operator","*");s&&a();var c=i("name")?me(o?Kt:Gt):null;o&&!c&&(r?e=xe:f()),!c||e===Ne||c instanceof kt||f(u());var l=[],p=x(!0,s||t,n,c,l);return new e({start:l.start,end:p.end,is_generator:s,async:n,name:c,argnames:l,body:p})};function R(e,t){var n=new Set,i=!1,r=!1,o=!1,a=!!t,s={add_parameter:function(t){if(n.has(t.value))!1===i&&(i=t),s.check_strict();else if(n.add(t.value),e)switch(t.value){case"arguments":case"eval":case"yield":a&&l(t,"Unexpected "+t.value+" identifier as parameter inside strict mode");break;default:C.has(t.value)&&f()}},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&&l(i,"Parameter "+i.value+" was used already")}};return s}function w(e,t){var r,o=!1;return void 0===e&&(e=R(!0,n.input.has_directive("use strict"))),i("expand","...")&&(o=n.token,e.mark_spread(n.token),a()),r=N(e,t),i("operator","=")&&!1===o&&(e.mark_default_assignment(n.token),a(),r=new At({start:r.start,left:r,operator:"=",right:Lt(!1),end:n.token})),!1!==o&&(i("punc",")")||f(),r=new Re({start:o,expression:r,end:o})),e.check_strict(),r}function N(e,t){var r,s=[],l=!0,p=!1,d=n.token;if(void 0===e&&(e=R(!1,n.input.has_directive("use strict"))),t=void 0===t?Bt:t,i("punc","[")){for(a();!i("punc","]");){if(l?l=!1:_(","),i("expand","...")&&(p=!0,r=n.token,e.mark_spread(n.token),a()),i("punc"))switch(n.token.value){case",":s.push(new ln({start:n.token,end:n.token}));continue;case"]":break;case"[":case"{":s.push(N(e,t));break;default:f()}else i("name")?(e.add_parameter(n.token),s.push(me(t))):c("Invalid function parameter");i("operator","=")&&!1===p&&(e.mark_default_assignment(n.token),a(),s[s.length-1]=new At({start:s[s.length-1].start,left:s[s.length-1],operator:"=",right:Lt(!1),end:n.token})),p&&(i("punc","]")||c("Rest element must be last element"),s[s.length-1]=new Re({start:r,expression:s[s.length-1],end:r}))}return _("]"),e.check_strict(),new Le({start:d,names:s,is_array:!0,end:u()})}if(i("punc","{")){for(a();!i("punc","}");){if(l?l=!1:_(","),i("expand","...")&&(p=!0,r=n.token,e.mark_spread(n.token),a()),i("name")&&(Z(o(),"punc")||Z(o(),"operator"))&&[",","}","="].includes(o().value)){e.add_parameter(n.token);var m=u(),E=me(t);p?s.push(new Re({start:r,expression:E,end:E.end})):s.push(new yt({start:m,key:E.name,value:E,end:E.end}))}else{if(i("punc","}"))continue;var h=n.token,D=ce();null===D?f(u()):"name"!==u().type||i("punc",":")?(_(":"),s.push(new yt({start:h,quote:h.quote,key:D,value:N(e,t),end:u()}))):s.push(new yt({start:u(),key:D,value:new t({start:u(),name:D,end:u()}),end:u()}))}p?i("punc","}")||c("Rest element must be last element"):i("operator","=")&&(e.mark_default_assignment(n.token),a(),s[s.length-1].value=new At({start:s[s.length-1].value.start,left:s[s.length-1].value,operator:"=",right:Lt(!1),end:n.token}))}return _("}"),e.check_strict(),new Le({start:d,names:s,is_array:!1,end:u()})}if(i("name"))return e.add_parameter(n.token),me(t);c("Invalid function parameter")}function x(e,r,o,s,u){var c=n.in_loop,l=n.labels,p=n.in_generator,d=n.in_async;if(++n.in_function,r&&(n.in_generator=n.in_function),o&&(n.in_async=n.in_function),u&&function(e){var r=R(!0,n.input.has_directive("use strict"));for(_("(");!i("punc",")");){var o=w(r);if(e.push(o),i("punc",")")||(_(","),i("punc",")")&&t.ecma<8&&f()),o instanceof Re)break}a()}(u),e&&(n.in_directives=!0),n.in_loop=0,n.labels=[],e){n.input.push_directives_stack();var m=k();s&&de(s),u&&u.forEach(de),n.input.pop_directives_stack()}else m=Lt(!1);return--n.in_function,n.in_loop=c,n.labels=l,n.in_generator=p,n.in_async=d,m}function k(){_("{");for(var e=[];!i("punc","}");)i("eof")&&f(),e.push(b());return a(),e}function I(){_("{");for(var e,t=[],r=null,o=null;!i("punc","}");)i("eof")&&f(),i("keyword","case")?(o&&(o.end=u()),r=[],o=new Ze({start:(e=n.token,a(),e),expression:Lt(!0),body:r}),t.push(o),_(":")):i("keyword","default")?(o&&(o.end=u()),r=[],o=new je({start:(e=n.token,a(),_(":"),e),body:r}),t.push(o)):(r||f(),r.push(b()));return o&&(o.end=u()),a(),t}function L(e,t){for(var r,o=[];;){var s="var"===t?It:"const"===t?Vt:"let"===t?Pt:null;if(i("punc","{")||i("punc","[")?r=new ut({start:n.token,name:N(void 0,s),value:i("operator","=")?(p("operator","="),Lt(!1,e)):null,end:u()}):"import"==(r=new ut({start:n.token,name:me(s),value:i("operator","=")?(a(),Lt(!1,e)):e||"const"!==t?null:c("Missing initializer in const declaration"),end:u()})).name.name&&c("Unexpected token: import"),o.push(r),!i("punc",","))break;a()}return o}var V=function(e){return new nt({start:u(),definitions:L(e,"var"),end:u()})},B=function(e){return new it({start:u(),definitions:L(e,"let"),end:u()})},K=function(e){return new rt({start:u(),definitions:L(e,"const"),end:u()})};function U(){var e,t=n.token;switch(t.type){case"name":e=_e($t);break;case"num":e=new rn({start:t,end:t,value:t.value});break;case"string":e=new nn({start:t,end:t,value:t.value,quote:t.quote});break;case"regexp":e=new on({start:t,end:t,value:t.value});break;case"atom":switch(t.value){case"false":e=new _n({start:t,end:t});break;case"true":e=new dn({start:t,end:t});break;case"null":e=new sn({start:t,end:t})}}return a(),e}function G(e,t,n,i){var r=function(e,t){return t?new At({start:e.start,left:e,operator:"=",right:t,end:t.end}):e};return e instanceof Tt?r(new Le({start:e.start,end:e.end,is_array:!1,names:e.properties.map(G)}),i):e instanceof yt?(e.value=G(e.value,0,[e.key]),r(e,i)):e instanceof ln?e:e instanceof Le?(e.names=e.names.map(G),r(e,i)):e instanceof $t?r(new Bt({name:e.name,start:e.start,end:e.end}),i):e instanceof Re?(e.expression=G(e.expression),r(e,i)):e instanceof St?r(new Le({start:e.start,end:e.end,is_array:!0,names:e.elements.map(G)}),i):e instanceof vt?r(G(e.left,void 0,void 0,e.right),i):e instanceof At?(e.left=G(e.left,0,[e.left]),e):void c("Invalid function parameter",e.start.line,e.start.col)}var H=function(e,r){if(i("operator","new"))return function(e){var r=n.token;if(p("operator","new"),i("punc","."))return a(),p("name","target"),Ae(new xt({start:r,end:u()}),e);var o,s=H(!1);i("punc","(")?(a(),o=z(")",t.ecma>=8)):o=[];var c=new lt({start:r,expression:s,args:o,end:u()});return De(c),Ae(c,e)}(e);var s,c=n.token,l=i("name","async")&&"["!=(s=o()).value&&"arrow"!=s.type&&U();if(i("punc")){switch(n.token.value){case"(":if(l&&!e)break;var d=function(e,r){var o,s,c,l=[];for(_("(");!i("punc",")");)o&&f(o),i("expand","...")?(o=n.token,r&&(s=n.token),a(),l.push(new Re({start:u(),expression:Lt(),end:n.token}))):l.push(Lt()),i("punc",")")||(_(","),i("punc",")")&&(t.ecma<8&&f(),c=u(),r&&(s=c)));return _(")"),e&&i("arrow","=>")?o&&c&&f(c):s&&f(s),l}(r,!l);if(r&&i("arrow","=>"))return F(c,d.map(G),!!l);var m=l?new ct({expression:l,args:d}):1==d.length?d[0]:new ft({expressions:d});if(m.start){var E=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=E,0==E&&c.comments_before.length>0){var h=c.comments_before[0];h.nlb||(h.nlb=c.nlb,c.nlb=!1)}c.comments_after=m.start.comments_after}m.start=c;var D=u();return m.end&&(D.comments_before=m.end.comments_before,[].push.apply(m.end.comments_after,D.comments_after),D.comments_after=m.end.comments_after),m.end=D,m instanceof ct&&De(m),Ae(m,e);case"[":return Ae(W(),e);case"{":return Ae(q(),e)}l||f()}if(r&&i("name")&&Z(o(),"arrow")){var g=new Bt({name:n.token.value,start:c,end:c});return a(),F(c,[g],!!l)}if(i("keyword","function")){a();var v=M(xe,!1,!!l);return v.start=c,v.end=u(),Ae(v,e)}if(l)return Ae(l,e);if(i("keyword","class")){a();var A=$(wt);return A.start=c,A.end=u(),Ae(A,e)}return i("template_head")?Ae(X(!1),e):re.has(n.token.type)?Ae(U(),e):void f()};function X(e){var t=[],i=n.token;for(t.push(new Be({start:n.token,raw:n.token.raw,value:n.token.value,end:n.token}));!1===n.token.end;)a(),T(),t.push(Lt(!0)),Z("template_substitution")||f(),t.push(new Be({start:n.token,raw:n.token.raw,value:n.token.value,end:n.token}));return a(),new Pe({start:i,segments:t,end:n.token})}function z(e,t,r){for(var o=!0,s=[];!i("punc",e)&&(o?o=!1:_(","),!t||!i("punc",e));)i("punc",",")&&r?s.push(new ln({start:n.token,end:n.token})):i("expand","...")?(a(),s.push(new Re({start:u(),expression:Lt(),end:n.token}))):s.push(Lt(!1));return a(),s}var W=S(function(){return _("["),new St({elements:z("]",!t.strict,!0)})}),Y=S(function(e,t){return M(Ne,e,t)}),q=S(function(){var e=n.token,r=!0,o=[];for(_("{");!i("punc","}")&&(r?r=!1:_(","),t.strict||!i("punc","}"));)if("expand"!=(e=n.token).type){var s,c=ce();if(i("punc",":"))null===c?f(u()):(a(),s=Lt(!1));else{var l=Q(c,e);if(l){o.push(l);continue}s=new $t({start:u(),name:c,end:u()})}i("operator","=")&&(a(),s=new vt({start:e,left:s,operator:"=",right:Lt(!1),end:u()})),o.push(new yt({start:e,quote:e.quote,key:c instanceof ue?c:""+c,value:s,end:u()}))}else a(),o.push(new Re({start:e,expression:Lt(!1),end:u()}));return a(),new Tt({properties:o})});function $(e){var t,r,o,s,c=[];for(n.input.push_directives_stack(),n.input.add_directive("use strict"),"name"==n.token.type&&"extends"!=n.token.value&&(o=me(e===Rt?Ht:Xt)),e!==Rt||o||f(),"extends"==n.token.value&&(a(),s=Lt(!0)),_("{"),i("punc",";")&&a();!i("punc","}");)t=n.token,(r=Q(ce(),t,!0))||f(),c.push(r),i("punc",";")&&a();return n.input.pop_directives_stack(),a(),new e({start:t,name:o,extends:s,properties:c,end:u()})}function Q(e,t,r){var o=function(e,t){return"string"==typeof e||"number"==typeof e?new Ut({start:t,name:""+e,end:u()}):(null===e&&f(),e)},a=!1,s=!1,c=!1,l=t;if(r&&"static"===e&&!i("punc","(")&&(s=!0,l=n.token,e=ce()),"async"!==e||i("punc","(")||i("punc",",")||i("punc","}")||(a=!0,l=n.token,e=ce()),null===e&&(c=!0,l=n.token,null===(e=ce())&&f()),i("punc","("))return e=o(e,t),new Ft({start:t,static:s,is_generator:c,async:a,key:e,quote:e instanceof Ut?l.quote:void 0,value:Y(c,a),end:u()});if(l=n.token,"get"==e){if(!i("punc")||i("punc","["))return e=o(ce(),t),new Ot({start:t,static:s,key:e,quote:e instanceof Ut?l.quote:void 0,value:Y(),end:u()})}else if("set"==e&&(!i("punc")||i("punc","[")))return e=o(ce(),t),new Ct({start:t,static:s,key:e,quote:e instanceof Ut?l.quote:void 0,value:Y(),end:u()})}function oe(e){function t(e){return new e({name:ce(),start:u(),end:u()})}var r,o,s=e?Yt:Zt,c=e?Wt:jt,l=n.token;return e?r=t(s):o=t(c),i("name","as")?(a(),e?o=t(c):r=t(s)):e?o=new c(r):r=new s(o),new ot({start:l,foreign_name:r,name:o,end:u()})}function ae(e,t){var i,r=e?Yt:Zt,o=e?Wt:jt,a=n.token,s=u();return t=t||new o({name:"*",start:a,end:s}),i=new r({name:"*",start:a,end:s}),new ot({start:a,foreign_name:i,name:t,end:s})}function se(e){var t;if(i("punc","{")){for(a(),t=[];!i("punc","}");)t.push(oe(e)),i("punc",",")&&a();a()}else if(i("operator","*")){var n;a(),e&&i("name","as")&&(a(),n=me(e?Wt:Zt)),t=[ae(e,n)]}return t}function ce(){var e=n.token;switch(e.type){case"punc":if("["===e.value){a();var t=Lt(!1);return _("]"),t}f(e);case"operator":if("*"===e.value)return a(),null;["delete","in","instanceof","new","typeof","void"].includes(e.value)||f(e);case"name":"yield"==e.value&&(E()?l(e,"Yield cannot be used as identifier inside generators"):Z(o(),"punc",":")||Z(o(),"punc","(")||!n.input.has_directive("use strict")||l(e,"Unexpected yield identifier inside strict mode"));case"string":case"num":case"keyword":case"atom":return a(),e.value;default:f(e)}}function _e(e){var t=n.token.value;return new("this"==t?Jt:"super"==t?en:e)({name:String(t),start:n.token,end:n.token})}function de(e){var t=e.name;E()&&"yield"==t&&l(e.start,"Yield cannot be used as identifier inside generators"),n.input.has_directive("use strict")&&("yield"==t&&l(e.start,"Unexpected yield identifier inside strict mode"),e instanceof kt&&("arguments"==t||"eval"==t)&&l(e.start,"Unexpected "+t+" in strict mode"))}function me(e,t){if(!i("name"))return t||c("Name expected"),null;var n=_e(e);return de(n),a(),n}function De(e){for(var t=e.start,n=t.comments_before,i=A(t,"comments_before_length")?t.comments_before_length:n.length;--i>=0;){var r=n[i];if(/[@#]__PURE__/.test(r.value)){e.pure=r;break}}}var Ae=function(e,t){var r,o=e.start;if(i("punc","."))return a(),Ae(new _t({start:o,expression:e,property:(r=n.token,"name"!=r.type&&f(),a(),r.value),end:u()}),t);if(i("punc","[")){a();var s=Lt(!0);return _("]"),Ae(new dt({start:o,expression:e,property:s,end:u()}),t)}if(t&&i("punc","(")){a();var c=new ct({start:o,expression:e,args:Fe(),end:u()});return De(c),Ae(c,!0)}return i("template_head")?Ae(new Ve({start:o,prefix:e,template_string:X(),end:u()}),t):e},Fe=S(function(){for(var e=[];!i("punc",")");)i("expand","...")?(a(),e.push(new Re({start:u(),expression:Lt(!1),end:u()}))):e.push(Lt(!1)),i("punc",")")||(_(","),i("punc",")")&&t.ecma<8&&f());return a(),e}),Ke=function(e,t){var r=n.token;if("name"==r.type&&"await"==r.value){if(h())return a(),h()||c("Unexpected await expression outside async function",n.prev.line,n.prev.col,n.prev.pos),new mn({start:u(),end:n.token,expression:Ke(!0)});n.input.has_directive("use strict")&&l(n.token,"Unexpected await identifier inside strict mode")}if(i("operator")&&ee.has(r.value)){a(),T();var o=Ue(Et,r,Ke(e));return o.start=r,o.end=u(),o}for(var s=H(e,t);i("operator")&&te.has(n.token.value)&&!d(n.token);)s instanceof ke&&f(),(s=Ue(ht,n.token,s)).start=r,s.end=n.token,a();return s};function Ue(e,t,i){var r=t.value;switch(r){case"++":case"--":mt(i)||c("Invalid use of "+r+" operator",t.line,t.col,t.pos);break;case"delete":i instanceof $t&&n.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 Xe=function(e,t,r){var o=i("operator")?n.token.value:null;"in"==o&&r&&(o=null),"**"==o&&e instanceof Et&&!Z(e.start,"punc","(")&&"--"!==e.operator&&"++"!==e.operator&&f(e.start);var s=null!=o?ie[o]:null;if(null!=s&&(s>t||"**"===o&&t===s)){a();var u=Xe(Ke(!0),s,r);return Xe(new Dt({start:e.start,left:e,operator:o,right:u,end:u.end}),t,r)}return e};var $e=function(e){var t=n.token,r=function(e){return Xe(Ke(!0,!0),0,e)}(e);if(i("operator","?")){a();var o=Lt(!1);return _(":"),new gt({start:t,condition:r,consequent:o,alternative:Lt(!1,e),end:u()})}return r};function mt(e){return e instanceof pt||e instanceof $t}function Mt(e){if(e instanceof Tt)e=new Le({start:e.start,names:e.properties.map(Mt),is_array:!1,end:e.end});else if(e instanceof St){for(var t=[],n=0;n=0;)o+="this."+t[a]+" = props."+t[a]+";";var s=i&&new i;(s&&s.initialize||n&&n.initialize)&&(o+="this.initialize();"),o+="}}";var u=new Function(o)();if(s&&(u.prototype=s,u.BASE=i),i&&i.SUBCLASSES.push(u),u.prototype.CTOR=u,u.PROPS=t||null,u.SELF_PROPS=r,u.SUBCLASSES=[],e&&(u.prototype.TYPE=u.TYPE=e),n)for(a in n)A(n,a)&&(/^\$/.test(a)?u[a.substr(1)]=n[a]:u.prototype[a]=n[a]);return u.DEFMETHOD=function(e,t){this.prototype[e]=t},u}var se=ae("Token","type value line col pos endline endcol endpos nlb comments_before comments_after file raw",{},null),ue=ae("Node","start end",{_clone:function(e){if(e){var t=this.clone();return t.transform(new Dn(function(e){if(e!==t)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);ue.warn_function=null,ue.warn=function(e,t){ue.warn_function&&ue.warn_function(m(e,t))};var ce=ae("Statement",null,{$documentation:"Base class of all statements"}),le=ae("Debugger",null,{$documentation:"Represents a debugger statement"},ce),fe=ae("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"}},ce),pe=ae("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)})}},ce);function _e(e,t){var n=e.body;if(n instanceof ue)n._walk(t);else for(var i=0,r=n.length;i SymbolDef for all variables/functions defined in this scope",functions:"[Map/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 t=this._clone(e);return this.variables&&(t.variables=new Map(this.variables)),this.functions&&(t.functions=new Map(this.functions)),this.enclosed&&(t.enclosed=this.enclosed.slice()),t},pinned:function(){return this.uses_eval||this.uses_with}},me),Me=ae("Toplevel","globals",{$documentation:"The toplevel scope",$propdoc:{globals:"[Map/S] a map of name -> SymbolDef for all undeclared names"},wrap_commonjs:function(e){var t=this.body,n="(function(exports){'$ORIG';})(typeof "+e+"=='undefined'?("+e+"={}):"+e+");";return n=(n=oe(n)).transform(new Dn(function(e){if(e instanceof fe&&"$ORIG"==e.value)return _.splice(t)}))},wrap_enclose:function(e){"string"!=typeof e&&(e="");var t=e.indexOf(":");t<0&&(t=e.length);var n=this.body;return oe(["(function(",e.slice(0,t),'){"$ORIG"})(',e.slice(t+1),")"].join("")).transform(new Dn(function(e){if(e instanceof fe&&"$ORIG"==e.value)return _.splice(n)}))}},Fe),Re=ae("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 t=this;return e._visit(this,function(){t.expression.walk(e)})}}),we=ae("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=[],t=0;t b)"},we),Ie=ae("Defun","inlined",{$documentation:"A function definition"},we),Le=ae("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(t){t._walk(e)})})},all_symbols:function(){var e=[];return this.walk(new hn(function(t){t instanceof Nt&&e.push(t),t instanceof Re&&e.push(t.expression)})),e}}),Ve=ae("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)}}),Pe=ae("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(t){t._walk(e)})})}}),Be=ae("TemplateSegment","value raw",{$documentation:"A segment of a template string literal",$propdoc:{value:"Content of the segment",raw:"Raw content of the segment"}}),Ke=ae("Jump",null,{$documentation:"Base class for “jumps” (for now that's `return`, `throw`, `break` and `continue`)"},ce),Ue=ae("Exit","value",{$documentation:"Base class for “exits” (`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)})}},Ke),Ge=ae("Return",null,{$documentation:"A `return` statement"},Ue),He=ae("Throw",null,{$documentation:"A `throw` statement"},Ue),Xe=ae("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)})}},Ke),ze=ae("Break",null,{$documentation:"A `break` statement"},Xe),We=ae("Continue",null,{$documentation:"A `continue` statement"},Xe),Ye=ae("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)})}},De),qe=ae("Switch","expression",{$documentation:"A `switch` statement",$propdoc:{expression:"[AST_Node] the `switch` “discriminant”"},_walk:function(e){return e._visit(this,function(){this.expression._walk(e),_e(this,e)})}},me),$e=ae("SwitchBranch",null,{$documentation:"Base class for `switch` branches"},me),je=ae("Default",null,{$documentation:"A `default` switch branch"},$e),Ze=ae("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),_e(this,e)})}},$e),Qe=ae("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(){_e(this,e),this.bcatch&&this.bcatch._walk(e),this.bfinally&&this.bfinally._walk(e)})}},me),Je=ae("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),_e(this,e)})}},me),et=ae("Finally",null,{$documentation:"A `finally` node; only makes sense as part of a `try` statement"},me),tt=ae("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 t=this.definitions,n=0,i=t.length;n a`"},Dt),St=ae("Array","elements",{$documentation:"An array literal",$propdoc:{elements:"[AST_Node*] array of elements"},_walk:function(e){return e._visit(this,function(){for(var t=this.elements,n=0,i=t.length;n=0;){var i=t[n];if(i instanceof e)return i}},has_directive:function(e){var t=this.directives[e];if(t)return t;var n=this.stack[this.stack.length-1];if(n instanceof Fe&&n.body)for(var i=0;i=0;){if((i=t[n])instanceof ge&&i.label.name==e.label.name)return i.body}else for(n=t.length;--n>=0;){var i;if((i=t[n])instanceof ve||e instanceof ze&&i instanceof qe)return i}}},Dn.prototype=new hn;var gn=Object.freeze({AST_Accessor:Ne,AST_Array:St,AST_Arrow:ke,AST_Assign:vt,AST_Atom:an,AST_Await:mn,AST_Binary:Dt,AST_Block:me,AST_BlockStatement:Ee,AST_Boolean:pn,AST_Break:ze,AST_Call:ct,AST_Case:Ze,AST_Catch:Je,AST_Class:Mt,AST_ClassExpression:wt,AST_ConciseMethod:Ft,AST_Conditional:gt,AST_Const:rt,AST_Constant:tn,AST_Continue:We,AST_Debugger:le,AST_Default:je,AST_DefaultAssign:At,AST_DefClass:Rt,AST_Definitions:tt,AST_Defun:Ie,AST_Destructuring:Le,AST_Directive:fe,AST_Do:Se,AST_Dot:_t,AST_DWLoop:Ae,AST_EmptyStatement:he,AST_Exit:Ue,AST_Expansion:Re,AST_Export:st,AST_False:_n,AST_Finally:et,AST_For:be,AST_ForIn:ye,AST_ForOf:Ce,AST_Function:xe,AST_Hole:ln,AST_If:Ye,AST_Import:at,AST_Infinity:fn,AST_IterationStatement:ve,AST_Jump:Ke,AST_Label:qt,AST_LabeledStatement:ge,AST_LabelRef:Qt,AST_Lambda:we,AST_Let:it,AST_LoopControl:Xe,AST_NameMapping:ot,AST_NaN:un,AST_New:lt,AST_NewTarget:xt,AST_Node:ue,AST_Null:sn,AST_Number:rn,AST_Object:Tt,AST_ObjectGetter:Ot,AST_ObjectKeyVal:yt,AST_ObjectProperty:bt,AST_ObjectSetter:Ct,AST_PrefixedTemplateString:Ve,AST_PropAccess:pt,AST_RegExp:on,AST_Return:Ge,AST_Scope:Fe,AST_Sequence:ft,AST_SimpleStatement:pe,AST_Statement:ce,AST_StatementWithBody:De,AST_String:nn,AST_Sub:dt,AST_Super:en,AST_Switch:qe,AST_SwitchBranch:$e,AST_Symbol:Nt,AST_SymbolBlockDeclaration:Lt,AST_SymbolCatch:zt,AST_SymbolClass:Xt,AST_SymbolConst:Vt,AST_SymbolDeclaration:kt,AST_SymbolDefClass:Ht,AST_SymbolDefun:Kt,AST_SymbolExport:jt,AST_SymbolExportForeign:Zt,AST_SymbolFunarg:Bt,AST_SymbolImport:Wt,AST_SymbolImportForeign:Yt,AST_SymbolLambda:Gt,AST_SymbolLet:Pt,AST_SymbolMethod:Ut,AST_SymbolRef:$t,AST_SymbolVar:It,AST_TemplateSegment:Be,AST_TemplateString:Pe,AST_This:Jt,AST_Throw:He,AST_Token:se,AST_Toplevel:Me,AST_True:dn,AST_Try:Qe,AST_Unary:mt,AST_UnaryPostfix:ht,AST_UnaryPrefix:Et,AST_Undefined:cn,AST_Var:nt,AST_VarDef:ut,AST_While:Te,AST_With:Oe,AST_Yield:En,TreeTransformer:Dn,TreeWalker:hn,walk_body:_e});!function(){function e(e,t){e.DEFMETHOD("transform",function(e,n){var i,r;return e.push(this),e.before&&(i=e.before(this,t,n)),void 0===i&&(t(i=this,e),e.after&&void 0!==(r=e.after(i,n))&&(i=r)),e.pop(),i})}function t(e,t){return _(e,function(e){return e.transform(t,!0)})}e(ue,u),e(ge,function(e,t){e.label=e.label.transform(t),e.body=e.body.transform(t)}),e(pe,function(e,t){e.body=e.body.transform(t)}),e(me,function(e,n){e.body=t(e.body,n)}),e(Se,function(e,t){e.body=e.body.transform(t),e.condition=e.condition.transform(t)}),e(Te,function(e,t){e.condition=e.condition.transform(t),e.body=e.body.transform(t)}),e(be,function(e,t){e.init&&(e.init=e.init.transform(t)),e.condition&&(e.condition=e.condition.transform(t)),e.step&&(e.step=e.step.transform(t)),e.body=e.body.transform(t)}),e(ye,function(e,t){e.init=e.init.transform(t),e.object=e.object.transform(t),e.body=e.body.transform(t)}),e(Oe,function(e,t){e.expression=e.expression.transform(t),e.body=e.body.transform(t)}),e(Ue,function(e,t){e.value&&(e.value=e.value.transform(t))}),e(Xe,function(e,t){e.label&&(e.label=e.label.transform(t))}),e(Ye,function(e,t){e.condition=e.condition.transform(t),e.body=e.body.transform(t),e.alternative&&(e.alternative=e.alternative.transform(t))}),e(qe,function(e,n){e.expression=e.expression.transform(n),e.body=t(e.body,n)}),e(Ze,function(e,n){e.expression=e.expression.transform(n),e.body=t(e.body,n)}),e(Qe,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))}),e(Je,function(e,n){e.argname&&(e.argname=e.argname.transform(n)),e.body=t(e.body,n)}),e(tt,function(e,n){e.definitions=t(e.definitions,n)}),e(ut,function(e,t){e.name=e.name.transform(t),e.value&&(e.value=e.value.transform(t))}),e(Le,function(e,n){e.names=t(e.names,n)}),e(we,function(e,n){e.name&&(e.name=e.name.transform(n)),e.argnames=t(e.argnames,n),e.body instanceof ue?e.body=e.body.transform(n):e.body=t(e.body,n)}),e(ct,function(e,n){e.expression=e.expression.transform(n),e.args=t(e.args,n)}),e(ft,function(e,n){e.expressions=t(e.expressions,n)}),e(_t,function(e,t){e.expression=e.expression.transform(t)}),e(dt,function(e,t){e.expression=e.expression.transform(t),e.property=e.property.transform(t)}),e(En,function(e,t){e.expression&&(e.expression=e.expression.transform(t))}),e(mn,function(e,t){e.expression=e.expression.transform(t)}),e(mt,function(e,t){e.expression=e.expression.transform(t)}),e(Dt,function(e,t){e.left=e.left.transform(t),e.right=e.right.transform(t)}),e(gt,function(e,t){e.condition=e.condition.transform(t),e.consequent=e.consequent.transform(t),e.alternative=e.alternative.transform(t)}),e(St,function(e,n){e.elements=t(e.elements,n)}),e(Tt,function(e,n){e.properties=t(e.properties,n)}),e(bt,function(e,t){e.key instanceof ue&&(e.key=e.key.transform(t)),e.value=e.value.transform(t)}),e(Mt,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)}),e(Re,function(e,t){e.expression=e.expression.transform(t)}),e(ot,function(e,t){e.foreign_name=e.foreign_name.transform(t),e.name=e.name.transform(t)}),e(at,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)}),e(st,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))}),e(Pe,function(e,n){e.segments=t(e.segments,n)}),e(Ve,function(e,t){e.prefix=e.prefix.transform(t),e.template_string=e.template_string.transform(t)})}();var vn=/^$|[;{][\s\n]*$/;function An(e){return"comment2"==e.type&&/@preserve|@license|@cc_on/i.test(e.value)}function Sn(e){var t=!e;void 0===(e=s(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 n=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))}n=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?An:l}var o=0,a=0,f=1,p=0,_="",d=e.ascii_only?function(t,n){return e.ecma>=6&&(t=t.replace(/[\ud800-\udbff][\udc00-\udfff]/g,function(e){return"\\u{"+function(e,t){return H(e.charAt(t))?65536+(e.charCodeAt(t)-55296<<10)+e.charCodeAt(t+1)-56320:e.charCodeAt(t)}(e,0).toString(16)+"}"})),t.replace(/[\u0000-\u001f\u007f-\uffff]/g,function(e){var t=e.charCodeAt(0).toString(16);if(t.length<=2&&!n){for(;t.length<2;)t="0"+t;return"\\x"+t}for(;t.length<4;)t="0"+t;return"\\u"+t})}:function(e){for(var t="",n=0,i=e.length;nr?o():a()}}(t,n);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 E(t){return function e(t,n){if(n<=0)return"";if(1==n)return t;var i=e(t,n>>1);return i+=i,1&n&&(i+=t),i}(" ",e.indent_start+o-t*e.indent_level)}var h,v,A=!1,S=!1,T=!1,b=0,y=!1,C=!1,O=-1,F="",M=e.source_map&&[],R=M?function(){M.forEach(function(t){try{e.source_map.add(t.token.file,t.line,t.col,t.token.line,t.token.col,t.name||"name"!=t.token.type?t.name:t.token.value)}catch(e){null!=t.token.file&&ue.warn("Couldn't figure out mapping for {file}:{line},{col} → {cline},{ccol} [{name}]",{file:t.token.file,line:t.token.line,col:t.token.col,cline:t.line,ccol:t.col,name:t.name||""})}}),M=[]}:u,w=e.max_line_len?function(){if(a>e.max_line_len){if(b){var t=_.slice(0,b),n=_.slice(b);if(M){var i=n.length-a;M.forEach(function(e){e.line++,e.col+=i})}_=t+"\n"+n,f++,p++,a=n.length}a>e.max_line_len&&ue.warn("Output exceeds {max_line_len} characters",e)}b&&(b=0,R())}:u,N=D("( [ + * / - , . `");function x(t){var n=G(t=String(t),0);y&&n&&(y=!1,"\n"!==n&&(x("\n"),I())),C&&n&&(C=!1,/[\s;})]/.test(n)||k()),O=-1;var i=F.charAt(F.length-1);T&&(T=!1,(":"!==i||"}"!==n)&&(n&&";}".includes(n)||";"===i)||(e.semicolons||N.has(n)?(_+=";",a++,p++):(w(),a>0&&(_+="\n",p++,f++,a=0),/^\s+$/.test(t)&&(T=!0)),e.beautify||(S=!1))),S&&((Y(i)&&(Y(n)||"\\"==n)||"/"==n&&n==i||("+"==n||"-"==n)&&n==F)&&(_+=" ",a++,p++),S=!1),h&&(M.push({token:h,name:v,line:f,col:a}),h=!1,b||R()),_+=t,A="("==t[t.length-1],p+=t.length;var r=t.split(/\r?\n/),o=r.length-1;f+=o,a+=r[0].length,o>0&&(w(),a=r[o].length),F=t}var k=e.beautify?function(){x(" ")}:function(){S=!0},I=e.beautify?function(t){e.beautify&&x(E(t?.5:0))}:u,L=e.beautify?function(e,t){!0===e&&(e=K());var n=o;o=e;var i=t();return o=n,i}:function(e,t){return t()},V=e.beautify?function(){if(O<0)return x("\n");"\n"!=_[O]&&(_=_.slice(0,O)+"\n"+_.slice(O),p++,f++),O++}:e.max_line_len?function(){w(),b=_.length}:u,P=e.beautify?function(){x(";")}:function(){T=!0};function B(){T=!1,x(";")}function K(){return o+e.indent_level}function U(){return b&&w(),_}function z(){var e=_.lastIndexOf("\n");return/^ *$/.test(_.slice(e+1))}var W=[];return{get:U,toString:U,indent:I,indentation:function(){return o},current_width:function(){return a-o},should_break:function(){return e.width&&this.current_width()>=e.width},has_parens:function(){return A},newline:V,print:x,star:function(){x("*")},space:k,comma:function(){x(","),k()},colon:function(){x(":"),k()},last:function(){return F},semicolon:P,force_semicolon:B,to_utf8:d,print_name:function(e){x(function(e){return e=e.toString(),e=d(e,!0)}(e))},print_string:function(e,t,n){var i=m(e,t);!0!==n||i.includes("\\")||(vn.test(_)||B(),B()),x(i)},print_template_string_chars:function(e){var t=m(e,"`").replace(/\${/g,"\\${");return x(t.substr(1,t.length-2))},encode_string:m,next_indent:K,with_indent:L,with_block:function(e){var t;return x("{"),V(),L(K(),function(){t=e()}),I(),x("}"),t},with_parens:function(e){x("(");var t=e();return x(")"),t},with_square:function(e){x("[");var t=e();return x("]"),t},add_mapping:M?function(e,t){h=e,v=t}:u,option:function(t){return e[t]},prepend_comments:t?u:function(t){var i=this,r=t.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,t instanceof Ue&&t.value){var a=new hn(function(e){var t=a.parent();if(!(t instanceof Ue||t instanceof Dt&&t.left===e||"Call"==t.TYPE&&t.expression===e||t instanceof gt&&t.condition===e||t instanceof _t&&t.expression===e||t instanceof ft&&t.expressions[0]===e||t instanceof dt&&t.expression===e||t instanceof ht))return!0;if(e.start){var n=e.start.comments_before;n&&n._dumped!==i&&(n._dumped=i,o=o.concat(n))}});a.push(t),t.value.walk(a)}if(0==p){o.length>0&&e.shebang&&"comment5"==o[0].type&&(x("#!"+o.shift().value+"\n"),I());var s=e.preamble;s&&x(s.replace(/\r\n?|[\n\u2028\u2029]|\s*$/g,"\n"))}if(0!=(o=o.filter(n,t)).length){var u=z();o.forEach(function(e,t){u||(e.nlb?(x("\n"),I(),u=!0):t>0&&k()),/comment[134]/.test(e.type)?(x("//"+e.value.replace(/[@#]__PURE__/g," ")+"\n"),I(),u=!0):"comment2"==e.type&&(x("/*"+e.value.replace(/[@#]__PURE__/g," ")+"*/"),u=!1)}),u||(r.nlb?(x("\n"),I()):k())}}},append_comments:t||n===c?u:function(e,t){var i=e.end;if(i){var r=i[t?"comments_before":"comments_after"];if(r&&r._dumped!==this&&(e instanceof ce||g(r,function(e){return!/comment[134]/.test(e.type)}))){r._dumped=this;var o=_.length;r.filter(n,e).forEach(function(e,n){C=!1,y?(x("\n"),I(),y=!1):e.nlb&&(n>0||!z())?(x("\n"),I()):(n>0||!t)&&k(),/comment[134]/.test(e.type)?(x("//"+e.value.replace(/[@#]__PURE__/g," ")),y=!0):"comment2"==e.type&&(x("/*"+e.value.replace(/[@#]__PURE__/g," ")+"*/"),C=!0)}),_.length>o&&(O=o)}}},line:function(){return f},col:function(){return a},pos:function(){return p},push_node:function(e){W.push(e)},pop_node:function(){return W.pop()},parent:function(e){return W[W.length-2-(e||0)]}}}function Tn(e,t,n){this.name=t.name,this.orig=[t],this.init=n,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=Tn.next_id++}!function(){function e(e,t){e.DEFMETHOD("_codegen",t)}var t=!1,n=null,i=null;function r(e,t){Array.isArray(e)?e.forEach(function(e){r(e,t)}):e.DEFMETHOD("needs_parens",t)}function o(e,n,i,r){var o=e.length-1;t=r,e.forEach(function(e,r){!0!==t||e instanceof fe||e instanceof he||e instanceof pe&&e.body instanceof nn||(t=!1),e instanceof he||(i.indent(),e.print(i),r==o&&n||(i.newline(),n&&i.newline())),!0===t&&e instanceof pe&&e.body instanceof nn&&(t=!1)}),t=!1}function a(e,t){t.print("{"),t.with_indent(t.next_indent(),function(){t.append_comments(e,!0)}),t.print("}")}function s(e,t,n){e.body.length>0?t.with_block(function(){o(e.body,!1,t,n)}):a(e,t)}function l(e,t,n){var i=!1;n&&e.walk(new hn(function(e){return!!(i||e instanceof Fe)||(e instanceof Dt&&"in"==e.operator?(i=!0,!0):void 0)})),e.print(t,i)}function f(e,t,n){n.option("quote_keys")?n.print_string(e):""+ +e==e&&e>=0?n.print(d(e)):(C.has(e)?!n.option("ie8"):q(e))?t&&n.option("keep_quoted_props")?n.print_string(e,t):n.print_name(e):n.print_string(e,t)}function p(e,t){t.option("braces")?m(e,t):!e||e instanceof he?t.force_semicolon():e.print(t)}function _(e,t){return e.args.length>0||t.option("beautify")}function d(e){var t,n=[e.toString(10).replace(/^0\./,".").replace("e+","e")];return Math.floor(e)===e?(n.push((e>=0?"0x":"-0x")+e.toString(16).toLowerCase()),(t=/^(.*?)(0{3,})$/.exec(e))&&n.push(t[1]+"e"+t[2].length)):(t=/^0?\.(0+)(.*)$/.exec(e))&&n.push(t[2]+"e-"+(t[1].length+t[2].length)),function(e){for(var t=e[0],n=t.length,i=1;io||i==o&&(this===t.right||"**"==n))return!0}}),r(En,function(e){var t=e.parent();return t instanceof Dt&&"="!==t.operator||(t instanceof ct&&t.expression===this||(t instanceof gt&&t.condition===this||(t instanceof mt||(t instanceof pt&&t.expression===this||void 0))))}),r(pt,function(e){var t=e.parent();if(t instanceof lt&&t.expression===this){var n=!1;return this.walk(new hn(function(e){return!!(n||e instanceof Fe)||(e instanceof ct?(n=!0,!0):void 0)})),n}}),r(ct,function(e){var t,n=e.parent();return!!(n instanceof lt&&n.expression===this||n instanceof st&&n.is_default&&this.expression instanceof xe)||this.expression instanceof xe&&n instanceof pt&&n.expression===this&&(t=e.parent(1))instanceof vt&&t.left===n}),r(lt,function(e){var t=e.parent();if(!_(this,e)&&(t instanceof pt||t instanceof ct&&t.expression===this))return!0}),r(rn,function(e){var t=e.parent();if(t instanceof pt&&t.expression===this){var n=this.getValue();if(n<0||/^0/.test(d(n)))return!0}}),r([vt,gt],function(e){var t=e.parent();return t instanceof mt||(t instanceof Dt&&!(t instanceof vt)||(t instanceof ct&&t.expression===this||(t instanceof gt&&t.condition===this||(t instanceof pt&&t.expression===this||(this instanceof vt&&this.left instanceof Le&&!1===this.left.is_array||void 0)))))}),e(fe,function(e,t){t.print_string(e.value,e.quote),t.semicolon()}),e(Re,function(e,t){t.print("..."),e.expression.print(t)}),e(Le,function(e,t){t.print(e.is_array?"[":"{");var n=e.names.length;e.names.forEach(function(e,i){i>0&&t.comma(),e.print(t),i==n-1&&e instanceof ln&&t.comma()}),t.print(e.is_array?"]":"}")}),e(le,function(e,t){t.print("debugger"),t.semicolon()}),De.DEFMETHOD("_do_print_body",function(e){p(this.body,e)}),e(ce,function(e,t){e.body.print(t),t.semicolon()}),e(Me,function(e,t){o(e.body,!0,t,!0),t.print("")}),e(ge,function(e,t){e.label.print(t),t.colon(),e.body.print(t)}),e(pe,function(e,t){e.body.print(t),t.semicolon()}),e(Ee,function(e,t){s(e,t)}),e(he,function(e,t){t.semicolon()}),e(Se,function(e,t){t.print("do"),t.space(),m(e.body,t),t.space(),t.print("while"),t.space(),t.with_parens(function(){e.condition.print(t)}),t.semicolon()}),e(Te,function(e,t){t.print("while"),t.space(),t.with_parens(function(){e.condition.print(t)}),t.space(),e._do_print_body(t)}),e(be,function(e,t){t.print("for"),t.space(),t.with_parens(function(){e.init?(e.init instanceof tt?e.init.print(t):l(e.init,t,!0),t.print(";"),t.space()):t.print(";"),e.condition?(e.condition.print(t),t.print(";"),t.space()):t.print(";"),e.step&&e.step.print(t)}),t.space(),e._do_print_body(t)}),e(ye,function(e,t){t.print("for"),e.await&&(t.space(),t.print("await")),t.space(),t.with_parens(function(){e.init.print(t),t.space(),t.print(e instanceof Ce?"of":"in"),t.space(),e.object.print(t)}),t.space(),e._do_print_body(t)}),e(Oe,function(e,t){t.print("with"),t.space(),t.with_parens(function(){e.expression.print(t)}),t.space(),e._do_print_body(t)}),we.DEFMETHOD("_do_print",function(e,t){var n=this;t||(n.async&&(e.print("async"),e.space()),e.print("function"),n.is_generator&&e.star(),n.name&&e.space()),n.name instanceof Nt?n.name.print(e):t&&n.name instanceof ue&&e.with_square(function(){n.name.print(e)}),e.with_parens(function(){n.argnames.forEach(function(t,n){n&&e.comma(),t.print(e)})}),e.space(),s(n,e,!0)}),e(we,function(e,t){e._do_print(t)}),e(Ve,function(e,t){var n=e.prefix,i=n instanceof ke||n instanceof Dt||n instanceof gt||n instanceof ft||n instanceof mt;i&&t.print("("),e.prefix.print(t),i&&t.print(")"),e.template_string.print(t)}),e(Pe,function(e,t){var n=t.parent()instanceof Ve;t.print("`");for(var i=0;i"),e.space(),t.body instanceof ue?t.body.print(e):s(t,e),i&&e.print(")")}),Ue.DEFMETHOD("_do_print",function(e,t){e.print(t),this.value&&(e.space(),this.value.print(e)),e.semicolon()}),e(Ge,function(e,t){e._do_print(t,"return")}),e(He,function(e,t){e._do_print(t,"throw")}),e(En,function(e,t){var n=e.is_star?"*":"";t.print("yield"+n),e.expression&&(t.space(),e.expression.print(t))}),e(mn,function(e,t){t.print("await"),t.space();var n=e.expression,i=!(n instanceof ct||n instanceof $t||n instanceof pt||n instanceof mt||n instanceof tn);i&&t.print("("),e.expression.print(t),i&&t.print(")")}),Xe.DEFMETHOD("_do_print",function(e,t){e.print(t),this.label&&(e.space(),this.label.print(e)),e.semicolon()}),e(ze,function(e,t){e._do_print(t,"break")}),e(We,function(e,t){e._do_print(t,"continue")}),e(Ye,function(e,t){t.print("if"),t.space(),t.with_parens(function(){e.condition.print(t)}),t.space(),e.alternative?(!function(e,t){var n=e.body;if(t.option("braces")||t.option("ie8")&&n instanceof Se)return m(n,t);if(!n)return t.force_semicolon();for(;;)if(n instanceof Ye){if(!n.alternative)return void m(e.body,t);n=n.alternative}else{if(!(n instanceof De))break;n=n.body}p(e.body,t)}(e,t),t.space(),t.print("else"),t.space(),e.alternative instanceof Ye?e.alternative.print(t):p(e.alternative,t)):e._do_print_body(t)}),e(qe,function(e,t){t.print("switch"),t.space(),t.with_parens(function(){e.expression.print(t)}),t.space();var n=e.body.length-1;n<0?a(e,t):t.with_block(function(){e.body.forEach(function(e,i){t.indent(!0),e.print(t),i0&&t.newline()})})}),$e.DEFMETHOD("_do_print_body",function(e){e.newline(),this.body.forEach(function(t){e.indent(),t.print(e),e.newline()})}),e(je,function(e,t){t.print("default:"),e._do_print_body(t)}),e(Ze,function(e,t){t.print("case"),t.space(),e.expression.print(t),t.print(":"),e._do_print_body(t)}),e(Qe,function(e,t){t.print("try"),t.space(),s(e,t),e.bcatch&&(t.space(),e.bcatch.print(t)),e.bfinally&&(t.space(),e.bfinally.print(t))}),e(Je,function(e,t){t.print("catch"),e.argname&&(t.space(),t.with_parens(function(){e.argname.print(t)})),t.space(),s(e,t)}),e(et,function(e,t){t.print("finally"),t.space(),s(e,t)}),tt.DEFMETHOD("_do_print",function(e,t){e.print(t),e.space(),this.definitions.forEach(function(t,n){n&&e.comma(),t.print(e)});var n=e.parent();(!(n instanceof be||n instanceof ye)||n&&n.init!==this)&&e.semicolon()}),e(it,function(e,t){e._do_print(t,"let")}),e(nt,function(e,t){e._do_print(t,"var")}),e(rt,function(e,t){e._do_print(t,"const")}),e(at,function(e,t){t.print("import"),t.space(),e.imported_name&&e.imported_name.print(t),e.imported_name&&e.imported_names&&(t.print(","),t.space()),e.imported_names&&(1===e.imported_names.length&&"*"===e.imported_names[0].foreign_name.name?e.imported_names[0].print(t):(t.print("{"),e.imported_names.forEach(function(n,i){t.space(),n.print(t),i0&&(e.comma(),e.should_break()&&(e.newline(),e.indent())),t.print(e)})}),e(ft,function(e,t){e._do_print(t)}),e(_t,function(e,t){var n=e.expression;n.print(t);var i=e.property;t.option("ie8")&&C.has(i)?(t.print("["),t.add_mapping(e.end),t.print_string(i),t.print("]")):(n instanceof rn&&n.getValue()>=0&&(/[xa-f.)]/i.test(t.last())||t.print(".")),t.print("."),t.add_mapping(e.end),t.print_name(i))}),e(dt,function(e,t){e.expression.print(t),t.print("["),e.property.print(t),t.print("]")}),e(Et,function(e,t){var n=e.operator;t.print(n),(/^[a-z]/i.test(n)||/[+-]$/.test(n)&&e.expression instanceof Et&&/^[+-]/.test(e.expression.operator))&&t.space(),e.expression.print(t)}),e(ht,function(e,t){e.expression.print(t),t.print(e.operator)}),e(Dt,function(e,t){var n=e.operator;e.left.print(t),">"==n[0]&&e.left instanceof ht&&"--"==e.left.operator?t.print(" "):t.space(),t.print(n),("<"==n||"<<"==n)&&e.right instanceof Et&&"!"==e.right.operator&&e.right.expression instanceof Et&&"--"==e.right.expression.operator?t.print(" "):t.space(),e.right.print(t)}),e(gt,function(e,t){e.condition.print(t),t.space(),t.print("?"),t.space(),e.consequent.print(t),t.space(),t.colon(),e.alternative.print(t)}),e(St,function(e,t){t.with_square(function(){var n=e.elements,i=n.length;i>0&&t.space(),n.forEach(function(e,n){n&&t.comma(),e.print(t),n===i-1&&e instanceof ln&&t.comma()}),i>0&&t.space()})}),e(Tt,function(e,t){e.properties.length>0?t.with_block(function(){e.properties.forEach(function(e,n){n&&(t.print(","),t.newline()),t.indent(),e.print(t)}),t.newline()}):a(e,t)}),e(Mt,function(e,t){if(t.print("class"),t.space(),e.name&&(e.name.print(t),t.space()),e.extends){var n=!(e.extends instanceof $t||e.extends instanceof pt||e.extends instanceof wt||e.extends instanceof xe);t.print("extends"),n?t.print("("):t.space(),e.extends.print(t),n?t.print(")"):t.space()}e.properties.length>0?t.with_block(function(){e.properties.forEach(function(e,n){n&&t.newline(),t.indent(),e.print(t)}),t.newline()}):t.print("{}")}),e(xt,function(e,t){t.print("new.target")}),e(yt,function(e,t){function n(e){var t=e.definition();return t?t.mangled_name||t.name:e.name}var i=t.option("shorthand");i&&e.value instanceof Nt&&q(e.key)&&n(e.value)===e.key&&!C.has(e.key)?f(e.key,e.quote,t):i&&e.value instanceof At&&e.value.left instanceof Nt&&q(e.key)&&n(e.value.left)===e.key?(f(e.key,e.quote,t),t.space(),t.print("="),t.space(),e.value.right.print(t)):(e.key instanceof ue?t.with_square(function(){e.key.print(t)}):f(e.key,e.quote,t),t.colon(),e.value.print(t))}),bt.DEFMETHOD("_print_getter_setter",function(e,t){var n=this;n.static&&(t.print("static"),t.space()),e&&(t.print(e),t.space()),n.key instanceof Ut?f(n.key.name,n.quote,t):t.with_square(function(){n.key.print(t)}),n.value._do_print(t,!0)}),e(Ct,function(e,t){e._print_getter_setter("set",t)}),e(Ot,function(e,t){e._print_getter_setter("get",t)}),e(Ft,function(e,t){var n;e.is_generator&&e.async?n="async*":e.is_generator?n="*":e.async&&(n="async"),e._print_getter_setter(n,t)}),Nt.DEFMETHOD("_do_print",function(e){var t=this.definition();e.print_name(t?t.mangled_name||t.name:this.name)}),e(Nt,function(e,t){e._do_print(t)}),e(ln,u),e(Jt,function(e,t){t.print("this")}),e(en,function(e,t){t.print("super")}),e(tn,function(e,t){t.print(e.getValue())}),e(nn,function(e,n){n.print_string(e.getValue(),e.quote,t)}),e(rn,function(e,t){i&&e.start&&null!=e.start.raw?t.print(e.start.raw):t.print(d(e.getValue()))}),e(on,function(e,t){var n=e.getValue().toString();n=t.to_utf8(n),t.print(n);var i=t.parent();i instanceof Dt&&/^in/.test(i.operator)&&i.left===e&&t.print(" ")}),E([ue,ge,Me],u),E([St,Ee,Je,Mt,tn,le,tt,fe,et,Ke,we,lt,Tt,De,Nt,qe,$e,Qe],function(e){e.add_mapping(this.start)}),E([Ot,Ct],function(e){e.add_mapping(this.start,this.key.name)}),E([bt],function(e){e.add_mapping(this.start,this.key)})}(),Tn.next_id=1;var bn=1,yn=2;function Cn(e,t){var n=e.enclosed;e:for(;;){var r=On(++e.cname);if(!C.has(r)&&!i(r,t.reserved)){for(var o=n.length;--o>=0;){var a=n[o];if(r==(a.mangled_name||a.unmangleable(t)&&a.name))continue e}return r}}}Tn.prototype={unmangleable:function(e){return e||(e={}),this.global&&!e.toplevel||this.export&bn||this.undeclared||!e.eval&&this.scope.pinned()||(this.orig[0]instanceof Gt||this.orig[0]instanceof Kt)&&T(e.keep_fnames,this.orig[0].name)||this.orig[0]instanceof Ut||(this.orig[0]instanceof Xt||this.orig[0]instanceof Ht)&&T(e.keep_classnames,this.orig[0].name)},mangle:function(e){var t=e.cache&&e.cache.props;if(this.global&&t&&t.has(this.name))this.mangled_name=t.get(this.name);else if(!this.mangled_name&&!this.unmangleable(e)){var n,i=this.scope,r=this.orig[0];e.ie8&&r instanceof Gt&&(i=i.parent_scope),(n=this.redefined())?this.mangled_name=n.mangled_name||n.name:this.mangled_name=i.next_mangled(e,this),this.global&&t&&t.set(this.name,this.mangled_name)}},redefined:function(){return this.defun&&this.defun.variables.get(this.name)}},Me.DEFMETHOD("figure_out_scope",function(e){e=s(e,{cache:null,ie8:!1,safari10:!1});var t=this,n=t.parent_scope=null,i=new Map,r=null,o=null,a=[],u=new hn(function(t,s){if(t.is_block_scope()){var c=n;return t.block_scope=n=new Fe(t),n.init_scope_vars(c),t instanceof Fe||(n.uses_with=c.uses_with,n.uses_eval=c.uses_eval,n.directives=c.directives),e.safari10&&(t instanceof be||t instanceof ye)&&a.push(n),s(),n=c,!0}if(t instanceof Le)return o=t,s(),o=null,!0;if(t instanceof Fe){t.init_scope_vars(n);c=n;var l=r,f=i;return r=n=t,i=new Map,s(),n=c,r=l,i=f,!0}if(t instanceof ge){var p=t.label;if(i.has(p.name))throw new Error(m("Label {name} defined twice",p));return i.set(p.name,p),s(),i.delete(p.name),!0}if(t instanceof Oe)for(var _=n;_;_=_.parent_scope)_.uses_with=!0;else{if(t instanceof Nt&&(t.scope=n),t instanceof qt&&(t.thedef=t,t.references=[]),t instanceof Gt)r.def_function(t,"arguments"==t.name?void 0:r);else if(t instanceof Kt)h((t.scope=r.parent_scope.get_defun_scope()).def_function(t,r),1);else if(t instanceof Xt)h(r.def_variable(t,r),1);else if(t instanceof Wt)n.def_variable(t);else if(t instanceof Ht)h((t.scope=r.parent_scope).def_function(t,r),1);else if(t instanceof It||t instanceof Pt||t instanceof Vt){if(g((d=t instanceof Lt?n.def_variable(t,null):r.def_variable(t,"SymbolVar"==t.TYPE?null:void 0)).orig,function(e){return e===t||(t instanceof Lt?e instanceof Gt:!(e instanceof Pt||e instanceof Vt))})||j(t.name+" redeclared",t.start.file,t.start.line,t.start.col,t.start.pos),t instanceof Bt||h(d,2),d.destructuring=o,r!==n){t.mark_enclosed(e);var d=n.find_variable(t);t.thedef!==d&&(t.thedef=d,t.reference(e))}}else if(t instanceof zt)n.def_variable(t).defun=r;else if(t instanceof Qt){var E=i.get(t.name);if(!E)throw new Error(m("Undefined label {name} [{line},{col}]",{name:t.name,line:t.start.line,col:t.start.col}));t.thedef=E}n instanceof Me||!(t instanceof st||t instanceof at)||j(t.TYPE+" statement may only appear at top level",t.start.file,t.start.line,t.start.col,t.start.pos)}function h(e,t){if(o){var n=0;do{t++}while(u.parent(n++)!==o)}var i=u.parent(t);if(e.export=i instanceof st&&bn){var r=i.exported_definition;(r instanceof Ie||r instanceof Rt)&&i.is_default&&(e.export=yn)}}});t.walk(u),t.globals=new Map;u=new hn(function(n,i){if(n instanceof Xe&&n.label)return n.label.thedef.references.push(n),!0;if(n instanceof $t){var r,o=n.name;if("eval"==o&&u.parent()instanceof ct)for(var a=n.scope;a&&!a.uses_eval;a=a.parent_scope)a.uses_eval=!0;return u.parent()instanceof ot&&u.parent(1).module_name||!(r=n.scope.find_variable(o))?(r=t.def_global(n),n instanceof jt&&(r.export=bn)):r.scope instanceof we&&"arguments"==o&&(r.scope.uses_arguments=!0),n.thedef=r,n.reference(e),!n.scope.is_block_scope()||r.orig[0]instanceof Lt||(n.scope=n.scope.get_defun_scope()),!0}var s;if(n instanceof zt&&(s=n.definition().redefined()))for(a=n.scope;a&&(d(a.enclosed,s),a!==s.scope);)a=a.parent_scope});if(t.walk(u),(e.ie8||e.safari10)&&t.walk(new hn(function(n,i){if(n instanceof zt){var r=n.name,o=n.thedef.references,a=n.thedef.defun,s=a.find_variable(r)||t.globals.get(r)||a.def_variable(n);return o.forEach(function(t){t.thedef=s,t.reference(e)}),n.thedef=s,n.reference(e),!0}})),e.safari10)for(var c=0;c0);return n}return a.consider=function(e,n){for(var i=e.length;--i>=0;)t.set(e[i],t.get(e[i])+n)},a.sort=function(){e=h(n,o).concat(h(i,o))},a.reset=r,r(),a}();function Fn(e,t){if(!(this instanceof Fn))return new Fn(e,t);Dn.call(this,this.before,this.after),void 0===e.defaults||e.defaults||(t=!0),this.options=s(e,{arguments:!1,arrows:!t,booleans:!t,booleans_as_integers:!1,collapse_vars:!t,comparisons:!t,computed_props:!t,conditionals:!t,dead_code:!t,defaults:!0,directives:!t,drop_console:!1,drop_debugger:!t,ecma:5,evaluate:!t,expression:!1,global_defs:!1,hoist_funs:!1,hoist_props:!t,hoist_vars:!1,ie8:!1,if_return:!t,inline:!t,join_vars:!t,keep_classnames:!1,keep_fargs:!0,keep_fnames:!1,keep_infinity:!1,loops:!t,module:!1,negate_iife:!t,passes:1,properties:!t,pure_getters:!t&&"strict",pure_funcs:null,reduce_funcs:!t,reduce_vars:!t,sequences:!t,side_effects:!t,switches:!t,top_retain:null,toplevel:!(!e||!e.top_retain),typeofs:!t,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:!t,warnings:!1},!0);var n=this.options.global_defs;if("object"==typeof n)for(var i in n)/^@/.test(i)&&A(n,i)&&(n[i.slice(1)]=oe(n[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.includes(e.expression.print_to_string())}:l;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.includes(e.name)}),this.options.module&&(this.directives["use strict"]=!0,this.options.toplevel=!0);var a=this.options.toplevel;this.toplevel="string"==typeof a?{funcs:/funcs/.test(a),vars:/vars/.test(a)}:{funcs:a,vars:a};var u=this.options.sequences;this.sequences_limit=1==u?800:0|u,this.warnings_produced={}}Fn.prototype=new Dn,function(e,t){var n=0;for(var i in t)A(t,i)&&(e[i]=t[i],n++)}(Fn.prototype,{option:function(e){return this.options[e]},exposed:function(e){if(e.export)return!0;if(e.global)for(var t=0,n=e.orig.length;t0||this.option("reduce_vars"))&&e.reset_opt_flags(this),e=e.transform(this),t>1){var a=0;if(e.walk(new hn(function(){a++})),this.info("pass "+o+": last_count: "+n+", count: "+a),a=0;){if(!(r[o]instanceof yt))return;n||r[o].key!==t||(n=r[o].value)}}return n instanceof $t&&n.fixed_value()||n}}function n(e,i,r,o,a,s){var u=i.parent(a),c=X(r,u);if(c)return c;if(!s&&u instanceof ct&&u.expression===r&&!(o instanceof ke)&&!(o instanceof Mt)&&!u.is_expr_pure(e)&&(!(o instanceof xe)||!(u instanceof lt)&&o.contains_this()))return!0;if(u instanceof St)return n(e,i,u,u,a+1);if(u instanceof yt&&r===u.value){var l=i.parent(a+1);return n(e,i,l,l,a+2)}if(u instanceof pt&&u.expression===r){var f=t(o,u.property);return!s&&n(e,i,u,f,a+1)}}function o(e){return e instanceof ke||e instanceof xe}function a(e){if(e instanceof Jt)return!0;if(e instanceof $t)return e.definition().orig[0]instanceof Gt;if(e instanceof pt){if((e=e.expression)instanceof $t){if(e.is_immutable())return!1;e=e.fixed_value()}return!e||!(e instanceof on)&&(e instanceof tn||a(e))}return!1}function s(e,t){if(!(e instanceof $t))return!1;for(var n=e.definition().orig,i=n.length;--i>=0;)if(n[i]instanceof t)return!0}function d(e,t){for(var n,i=0;(n=e.parent(i++))&&!(n instanceof Fe);)if(n instanceof Je&&n.argname){n=n.argname.definition().scope;break}return n.find_variable(t)}function h(e,t,n){return n||(n={}),t&&(n.start||(n.start=t.start),n.end||(n.end=t.end)),new e(n)}function b(e,t){return 1==t.length?t[0]:h(ft,e,{expressions:t.reduce(O,[])})}function y(e,t){switch(typeof e){case"string":return h(nn,t,{value:e});case"number":return isNaN(e)?h(un,t):isFinite(e)?1/e<0?h(Et,t,{operator:"-",expression:h(rn,t,{value:-e})}):h(rn,t,{value:e}):e<0?h(Et,t,{operator:"-",expression:h(fn,t)}):h(fn,t);case"boolean":return h(e?dn:_n,t);case"undefined":return h(cn,t);default:if(null===e)return h(sn,t,{value:null});if(e instanceof RegExp)return h(on,t,{value:e});throw new Error(m("Can't handle constant of type: {type}",{type:typeof e}))}}function C(e,t,n){return e instanceof Et&&"delete"==e.operator||e instanceof ct&&e.expression===t&&(n instanceof pt||n instanceof $t&&"eval"==n.name)?b(t,[h(rn,t,{value:0}),n]):n}function O(e,t){return t instanceof ft?e.push.apply(e,t.expressions):e.push(t),e}function F(e){if(null===e)return[];if(e instanceof Ee)return e.body;if(e instanceof he)return[];if(e instanceof ce)return[e];throw new Error("Can't convert thing to statement array")}function M(e){return null===e||(e instanceof he||e instanceof Ee&&0==e.body.length)}function R(e){return!(e instanceof Rt||e instanceof Ie||e instanceof it||e instanceof rt||e instanceof st||e instanceof at)}function w(e){return e instanceof ve&&e.body instanceof Ee?e.body:e}function N(e){return"Call"==e.TYPE&&(e.expression instanceof xe||N(e.expression))}function x(e){return e instanceof $t&&e.definition().undeclared}e(ue,function(e,t){return e}),Me.DEFMETHOD("drop_console",function(){return this.transform(new Dn(function(e){if("Call"==e.TYPE){var t=e.expression;if(t instanceof pt){for(var n=t.expression;n.expression;)n=n.expression;if(x(n)&&"console"==n.name)return h(cn,e)}}}))}),ue.DEFMETHOD("equivalent_to",function(e){return this.TYPE==e.TYPE&&this.print_to_string()==e.print_to_string()}),Fe.DEFMETHOD("process_expression",function(e,t){var n=this,i=new Dn(function(r){if(e&&r instanceof pe)return h(Ge,r,{value:r.body});if(!e&&r instanceof Ge){if(t){var o=r.value&&r.value.drop_side_effect_free(t,!0);return o?h(pe,r,{body:o}):h(he,r)}return h(pe,r,{body:r.value||h(Et,r,{operator:"void",expression:h(rn,r,{value:0})})})}if(r instanceof Mt||r instanceof we&&r!==n)return r;if(r instanceof me){var a=r.body.length-1;a>=0&&(r.body[a]=r.body[a].transform(i))}else r instanceof Ye?(r.body=r.body.transform(i),r.alternative&&(r.alternative=r.alternative.transform(i))):r instanceof Oe&&(r.body=r.body.transform(i));return r});n.transform(i)}),function(e){function i(e,t){t.assignments=0,t.chained=!1,t.direct_access=!1,t.escaped=!1,t.scope.pinned()?t.fixed=!1:t.orig[0]instanceof Vt||!e.exposed(t)?t.fixed=t.init:t.fixed=!1,t.recursive_refs=0,t.references=[],t.should_replace=void 0,t.single_use=void 0}function r(e,t,n){n.variables.forEach(function(n){i(t,n),null===n.fixed?(n.safe_ids=e.safe_ids,c(e,n,!0)):n.fixed&&(e.loop_ids[n.id]=e.in_loop,c(e,n,!0))})}function o(e,t){t.block_scope&&t.block_scope.variables.forEach(function(t){i(e,t)})}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,t,n){e.safe_ids[t.id]=n}function l(e,t){if("m"==t.single_use)return!1;if(e.safe_ids[t.id]){if(null==t.fixed){var n=t.orig[0];if(n instanceof Bt||"arguments"==n.name)return!1;t.fixed=h(cn,n)}return!0}return t.fixed instanceof Ie}function f(e,t,n){return void 0===t.fixed||(null===t.fixed&&t.safe_ids?(t.safe_ids[t.id]=!1,delete t.safe_ids,!0):!!A(e.safe_ids,t.id)&&(!!l(e,t)&&(!1!==t.fixed&&(!(null!=t.fixed&&(!n||t.references.length>t.assignments))&&g(t.orig,function(e){return!(e instanceof Vt||e instanceof Kt||e instanceof Gt)})))))}function p(e,n,i,r,o,a,s){var u=e.parent(a);if(o){if(o.is_constant())return;if(o instanceof wt)return}if(u instanceof vt&&"="==u.operator&&r===u.right||u instanceof ct&&(r!==u.expression||u instanceof lt)||u instanceof Ue&&r===u.value&&r.scope!==n.scope||u instanceof ut&&r===u.value||u instanceof En&&r===u.value&&r.scope!==n.scope)return!(s>1)||o&&o.is_constant_expression(i)||(s=1),void((!n.escaped||n.escaped>s)&&(n.escaped=s));if(u instanceof St||u instanceof mn||u instanceof Dt&&G.has(u.operator)||u instanceof gt&&r!==u.condition||u instanceof Re||u instanceof ft&&r===u.tail_node())p(e,n,i,u,u,a+1,s);else if(u instanceof yt&&r===u.value){var c=e.parent(a+1);p(e,n,i,c,c,a+2,s)}else if(u instanceof pt&&r===u.expression&&(p(e,n,i,u,o=t(o,u.property),a+1,s+1),o))return;a>0||u instanceof ft&&r!==u.tail_node()||u instanceof pe||(n.direct_access=!0)}e(ue,u);var _=new hn(function(e){if(e instanceof Nt){var t=e.definition();t&&(e instanceof $t&&t.references.push(e),t.fixed=!1)}});function d(e,t,n){this.inlined=!1;var i=e.safe_ids;return e.safe_ids=Object.create(null),r(e,n,this),t(),e.safe_ids=i,!0}function m(e,t,n){var i,o=this;return o.inlined=!1,a(e),r(e,n,o),!o.name&&(i=e.parent())instanceof ct&&i.expression===o&&o.argnames.forEach(function(t,n){if(t.definition){var r=t.definition();void 0!==r.fixed||o.uses_arguments&&!e.has_directive("use strict")?r.fixed=!1:(r.fixed=function(){return i.args[n]||h(cn,i)},e.loop_ids[r.id]=e.in_loop,c(e,r,!0))}}),t(),s(e),!0}e(Ne,function(e,t,n){return a(e),r(e,n,this),t(),s(e),!0}),e(ke,m),e(vt,function(e,t,i){var r=this;if(r.left instanceof Le)r.left.walk(_);else{var o=r.left;if(o instanceof $t){var a=o.definition(),s=f(e,a,o.scope,r.right);if(a.assignments++,s){var u=a.fixed;if(u||"="==r.operator){var l="="==r.operator,d=l?r.right:r;if(!n(i,e,r,d,0))return a.references.push(o),l||(a.chained=!0),a.fixed=l?function(){return r.right}:function(){return h(Dt,r,{operator:r.operator.slice(0,-1),left:u instanceof ue?u:u(),right:r.right})},c(e,a,!1),r.right.walk(e),c(e,a,!0),p(e,a,o.scope,r,d,0,1),!0}}}}}),e(Dt,function(e){if(G.has(this.operator))return this.left.walk(e),a(e),this.right.walk(e),s(e),!0}),e(me,function(e,t,n){o(n,this)}),e(Ze,function(e){return a(e),this.expression.walk(e),s(e),a(e),_e(this,e),s(e),!0}),e(wt,function(e,t){return this.inlined=!1,a(e),t(),s(e),!0}),e(gt,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(je,function(e,t){return a(e),t(),s(e),!0}),e(Rt,d),e(Ie,d),e(Se,function(e,t,n){o(n,this);var i=e.in_loop;return e.in_loop=this,a(e),this.body.walk(e),ae(this)&&(s(e),a(e)),this.condition.walk(e),s(e),e.in_loop=i,!0}),e(be,function(e,t,n){o(n,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&&(ae(this)&&(s(e),a(e)),this.step.walk(e)),s(e),e.in_loop=i,!0}),e(ye,function(e,t,n){o(n,this),this.init.walk(_),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(xe,m),e(Ye,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(ge,function(e){return a(e),this.body.walk(e),s(e),!0}),e(zt,function(){this.definition().fixed=!1}),e($t,function(e,t,i){var r,o=this.definition();o.references.push(this),1==o.references.length&&!o.fixed&&o.orig[0]instanceof Kt&&(e.loop_ids[o.id]=e.in_loop),void 0!==o.fixed&&l(e,o)?o.fixed&&((r=this.fixed_value())instanceof we&&De(e,o)?o.recursive_refs++:r&&!i.exposed(o)&&function(e,t,n){return t.option("unused")&&!n.scope.pinned()&&n.references.length-n.recursive_refs==1&&e.loop_ids[n.id]===e.in_loop}(e,i,o)?o.single_use=r instanceof we&&!r.pinned()||r instanceof Mt||o.scope===this.scope&&r.is_constant_expression():o.single_use=!1,n(i,e,this,r,0,function(e){return!!e&&(e.is_constant()||e instanceof we||e instanceof Jt)}(r))&&(o.single_use?o.single_use="m":o.fixed=!1)):o.fixed=!1,p(e,o,this.scope,this,r,0,1)}),e(Me,function(e,t,n){this.globals.forEach(function(e){i(n,e)}),r(e,n,this)}),e(Qe,function(e,t,n){return o(n,this),a(e),_e(this,e),s(e),this.bcatch&&(a(e),this.bcatch.walk(e),s(e)),this.bfinally&&this.bfinally.walk(e),!0}),e(mt,function(e,t){var n=this;if("++"==n.operator||"--"==n.operator){var i=n.expression;if(i instanceof $t){var r=i.definition(),o=f(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 h(Dt,n,{operator:n.operator.slice(0,-1),left:h(Et,n,{operator:"+",expression:a instanceof ue?a:a()}),right:h(rn,n,{value:1})})},c(e,r,!0),!0}}}}),e(ut,function(e,t){var n=this;if(n.name instanceof Le)n.name.walk(_);else{var i=n.name.definition();if(n.value){if(f(e,i,n.value))return i.fixed=function(){return n.value},e.loop_ids[i.id]=e.in_loop,c(e,i,!1),t(),c(e,i,!0),!0;i.fixed=!1}}}),e(Te,function(e,t,n){o(n,this);var i=e.in_loop;return e.in_loop=this,a(e),t(),s(e),e.in_loop=i,!0})}(function(e,t){e.DEFMETHOD("reduce_vars",t)}),Me.DEFMETHOD("reset_opt_flags",function(e){var t=this,n=e.option("reduce_vars"),i=new hn(function(r,o){if(r._squeezed=!1,r._optimized=!1,n)return e.top_retain&&(i.parent()===t?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),t.walk(i)}),Nt.DEFMETHOD("fixed_value",function(){var e=this.definition().fixed;return!e||e instanceof ue?e:e()}),$t.DEFMETHOD("is_immutable",function(){var e=this.definition().orig;return 1==e.length&&e[0]instanceof Gt});var k=D("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");$t.DEFMETHOD("is_declared",function(e){return!this.definition().undeclared||e.option("unsafe")&&k.has(this.name)});var I,L=D("Infinity NaN undefined");function V(e){return e instanceof fn||e instanceof un||e instanceof cn}function P(e,t){var r,u,c=t.find_parent(Fe).get_defun_scope();!function(){var e=t.self(),n=0;do{if(e instanceof Je||e instanceof et)n++;else if(e instanceof ve)r=!0;else{if(e instanceof Fe){c=e;break}e instanceof Qe&&(u=!0)}}while(e=t.parent(n++))}();var l,f=10;do{l=!1,d(e),t.option("dead_code")&&D(e,t),t.option("if_return")&&m(e,t),t.sequences_limit>0&&(A(e,t),T(e,t)),t.option("join_vars")&&M(e),t.option("collapse_vars")&&p(e,t)}while(l&&f-- >0);function p(e,t){if(c.pinned())return e;for(var f,p=[],d=e.length,m=new Dn(function(e,n){if(k)return e;if(!x)return e!==D[v]?e:++v=0;){0==d&&t.option("unused")&&z();var D=[];for(W(e[d]);p.length>0;){D=p.pop();var v=0,A=D[D.length-1],S=null,T=null,b=null,y=Y(A);if(y&&!a(y)&&!y.has_side_effects(t)){var O=$(A),F=Z(y);y instanceof $t&&O.set(y.name,!1);var M=Q(A),R=J(),w=A.may_throw(t),N=A.name instanceof Bt,x=N,k=!1,I=0,L=!f||!x;if(!L){for(var P=t.self().argnames.lastIndexOf(A.name)+1;!k&&PI)I=!1;else{k=!1,v=0,x=N;for(B=d;!k&&B=0;){var c=n.argnames[u],l=e.args[u];if(f.unshift(h(ut,c,{name:c,value:l})),!s.has(c.name))if(s.add(c.name),c instanceof Re){var _=e.args.slice(u);g(_,function(e){return!H(n,e,r)})&&p.unshift([h(ut,c,{name:c.expression,value:h(St,e,{elements:_})})])}else l?(l instanceof we&&l.pinned()||H(n,l,r))&&(l=null):l=h(cn,c).transform(t),l&&p.unshift([h(ut,c,{name:c,value:l})])}}}function W(e){if(D.push(e),e instanceof vt)e.left.has_side_effects(t)||p.push(D.slice()),W(e.right);else if(e instanceof Dt)W(e.left),W(e.right);else if(e instanceof ct)W(e.expression),e.args.forEach(W);else if(e instanceof Ze)W(e.expression);else if(e instanceof gt)W(e.condition),W(e.consequent),W(e.alternative);else if(!(e instanceof tt)||!t.option("unused")&&e instanceof rt)e instanceof Ae?(W(e.condition),e.body instanceof me||W(e.body)):e instanceof Ue?e.value&&W(e.value):e instanceof be?(e.init&&W(e.init),e.condition&&W(e.condition),e.step&&W(e.step),e.body instanceof me||W(e.body)):e instanceof ye?(W(e.object),e.body instanceof me||W(e.body)):e instanceof Ye?(W(e.condition),e.body instanceof me||W(e.body),!e.alternative||e.alternative instanceof me||W(e.alternative)):e instanceof ft?e.expressions.forEach(W):e instanceof pe?W(e.body):e instanceof qe?(W(e.expression),e.body.forEach(W)):e instanceof mt?"++"!=e.operator&&"--"!=e.operator||p.push(D.slice()):e instanceof ut&&e.value&&(p.push(D.slice()),W(e.value));else{var n=e.definitions.length,i=n-200;for(i<0&&(i=0);i1&&!(e.name instanceof Bt)||(o>1?function(e){var t=e.value;if(t instanceof $t&&"arguments"!=t.name){var n=t.definition();if(!n.undeclared)return S=n}}(e):!t.exposed(r))?h($t,e.name,e.name):void 0}}function q(e){return e[e instanceof vt?"right":"value"]}function $(e){var i=new Map;if(e instanceof mt)return i;var r=new hn(function(e,o){for(var a=e;a instanceof pt;)a=a.expression;(a instanceof $t||a instanceof Jt)&&i.set(a.name,i.get(a.name)||n(t,r,e,e,0))});return q(e).walk(r),i}function j(n){if(n.name instanceof Bt){var i=t.parent(),r=t.self().argnames,o=r.indexOf(n.name);if(o<0)i.args.length=Math.min(i.args.length,r.length-1);else{var a=i.args;a[o]&&(a[o]=h(rn,a[o],{value:0}))}return!0}var s=!1;return e[d].transform(new Dn(function(e,t,i){return s?e:e===n||e.body===n?(s=!0,e instanceof ut?(e.value=null,e):i?_.skip:null):void 0},function(e){if(e instanceof ft)switch(e.expressions.length){case 0:return null;case 1:return e.expressions[0]}}))}function Z(e){for(;e instanceof pt;)e=e.expression;return e instanceof $t&&e.definition().scope===c&&!(r&&(O.has(e.name)||A instanceof mt||A instanceof vt&&"="!=A.operator))}function Q(e){return!(e instanceof mt)&&q(e).has_side_effects(t)}function J(){if(M)return!1;if(S)return!0;if(y instanceof $t){var e=y.definition();if(e.references.length-e.replaced==(A instanceof ut?1:2))return!0}return!1}function ee(e){if(!e.definition)return!0;var t=e.definition();return!(1==t.orig.length&&t.orig[0]instanceof Kt)&&(t.scope.get_defun_scope()!==c||!g(t.references,function(e){var t=e.scope.get_defun_scope();return"Scope"==t.TYPE&&(t=t.parent_scope),t===c}))}}function d(e){for(var t=[],n=0;n=0;){var i=e[n];if(i instanceof Ye&&i.body instanceof Ge&&++t>1)return!0}return!1}(e),r=n instanceof we,o=e.length;--o>=0;){var a=e[o],s=g(o),u=e[s];if(r&&!u&&a instanceof Ge){if(!a.value){l=!0,e.splice(o,1);continue}if(a.value instanceof Et&&"void"==a.value.operator){l=!0,e[o]=h(pe,a,{body:a.value.expression});continue}}if(a instanceof Ye){var c;if(d(c=ee(a.body))){c.label&&E(c.label.thedef.references,c),l=!0,(a=a.clone()).condition=a.condition.negate(t);var f=D(a.body,c);a.body=h(Ee,a,{body:F(a.alternative).concat(m())}),a.alternative=h(Ee,a,{body:f}),e[o]=a.transform(t);continue}if(d(c=ee(a.alternative))){c.label&&E(c.label.thedef.references,c),l=!0,(a=a.clone()).body=h(Ee,a.body,{body:F(a.body).concat(m())});f=D(a.alternative,c);a.alternative=h(Ee,a.alternative,{body:f}),e[o]=a.transform(t);continue}}if(a instanceof Ye&&a.body instanceof Ge){var p=a.body.value;if(!p&&!a.alternative&&(r&&!u||u instanceof Ge&&!u.value)){l=!0,e[o]=h(pe,a.condition,{body:a.condition});continue}if(p&&!a.alternative&&u instanceof Ge&&u.value){l=!0,(a=a.clone()).alternative=u,e.splice(o,1,a.transform(t)),e.splice(s,1);continue}if(p&&!a.alternative&&(!u&&r&&i||u instanceof Ge)){l=!0,(a=a.clone()).alternative=u||h(Ge,a,{value:null}),e.splice(o,1,a.transform(t)),u&&e.splice(s,1);continue}var _=e[A(o)];if(t.option("sequences")&&r&&!a.alternative&&_ instanceof Ye&&_.body instanceof Ge&&g(s)==e.length&&u instanceof pe){l=!0,(a=a.clone()).alternative=h(Ee,u,{body:[u,h(Ge,u,{value:null})]}),e.splice(o,1,a.transform(t)),e.splice(s,1);continue}}}function d(i){if(!i)return!1;for(var a=o+1,s=e.length;a=0;){var i=e[n];if(!(i instanceof nt&&v(i)))break}return n}}function D(e,t){for(var n,i=t.self(),r=0,o=0,a=e.length;r=t.sequences_limit&&u();var s=a.body;n.length>0&&(s=s.drop_side_effect_free(t)),s&&O(n,s)}else a instanceof tt&&v(a)||a instanceof Ie?e[i++]=a:(u(),e[i++]=a)}u(),e.length=i,i!=o&&(l=!0)}function u(){if(n.length){var t=b(n[0],n);e[i++]=h(pe,t,{body:t}),n=[]}}}function S(e,t){if(!(e instanceof Ee))return e;for(var n=null,i=0,r=e.body.length;i0){var p=u.length;u.push(h(Ye,a,{condition:a.condition,body:c||h(he,a.body),alternative:f})),u.unshift(r,1),[].splice.apply(e,u),o+=p,r+=p+1,i=null,l=!0;continue}}e[r++]=a,i=a instanceof pe?a:null}e.length=r}function y(e,n){if(e instanceof tt){var i,r=e.definitions[e.definitions.length-1];if(r.value instanceof Tt)if(n instanceof vt?i=[n]:n instanceof ft&&(i=n.expressions.slice()),i){var o=!1;do{var a=i[0];if(!(a instanceof vt))break;if("="!=a.operator)break;if(!(a.left instanceof pt))break;var s=a.left.expression;if(!(s instanceof $t))break;if(r.name.name!=s.name)break;if(!a.right.is_constant_expression(c))break;var u=a.left.property;if(u instanceof ue&&(u=u.evaluate(t)),u instanceof ue)break;u=""+u;var l=t.option("ecma")<6&&t.has_directive("use strict")?function(e){return e.key!=u&&e.key&&e.key.name!=u}:function(e){return e.key&&e.key.name!=u};if(!g(r.value.properties,l))break;var f=r.value.properties.filter(function(e){return e.key===u})[0];f?f.value=new ft({start:f.start,expressions:[f.value.clone(),a.right.clone()],end:f.end}):r.value.properties.push(h(yt,a,{key:u,value:a.right})),i.shift(),o=!0}while(i.length);return o&&i}}}function M(e){for(var t,n=0,i=-1,r=e.length;n=0;)if(this.properties[n]._dot_throw(e))return!0;return!1}),e(bt,c),e(Ot,l),e(Re,function(e){return this.expression._dot_throw(e)}),e(xe,c),e(ke,c),e(ht,c),e(Et,function(){return"void"==this.operator}),e(Dt,function(e){return("&&"==this.operator||"||"==this.operator)&&(this.left._dot_throw(e)||this.right._dot_throw(e))}),e(vt,function(e){return"="==this.operator&&this.right._dot_throw(e)}),e(gt,function(e){return this.consequent._dot_throw(e)||this.alternative._dot_throw(e)}),e(_t,function(e){return!!t(e)&&!(this.expression instanceof xe&&"prototype"==this.property)}),e(ft,function(e){return this.tail_node()._dot_throw(e)}),e($t,function(e){if(this.is_undefined)return!0;if(!t(e))return!1;if(x(this)&&this.is_declared(e))return!1;if(this.is_immutable())return!1;var n=this.fixed_value();return!n||n._dot_throw(e)})}(function(e,t){e.DEFMETHOD("_dot_throw",t)}),function(e){const t=D("! delete"),n=D("in instanceof == != === !== < <= >= >");e(ue,c),e(Et,function(){return t.has(this.operator)}),e(Dt,function(){return n.has(this.operator)||G.has(this.operator)&&this.left.is_boolean()&&this.right.is_boolean()}),e(gt,function(){return this.consequent.is_boolean()&&this.alternative.is_boolean()}),e(vt,function(){return"="==this.operator&&this.right.is_boolean()}),e(ft,function(){return this.tail_node().is_boolean()}),e(dn,l),e(_n,l)}(function(e,t){e.DEFMETHOD("is_boolean",t)}),function(e){e(ue,c),e(rn,l);var t=D("+ - ~ ++ --");e(mt,function(){return t.has(this.operator)});var n=D("- * / % & | ^ << >> >>>");e(Dt,function(e){return n.has(this.operator)||"+"==this.operator&&this.left.is_number(e)&&this.right.is_number(e)}),e(vt,function(e){return n.has(this.operator.slice(0,-1))||"="==this.operator&&this.right.is_number(e)}),e(ft,function(e){return this.tail_node().is_number(e)}),e(gt,function(e){return this.consequent.is_number(e)&&this.alternative.is_number(e)})}(function(e,t){e.DEFMETHOD("is_number",t)}),(I=function(e,t){e.DEFMETHOD("is_string",t)})(ue,c),I(nn,l),I(Pe,function(){return 1===this.segments.length}),I(Et,function(){return"typeof"==this.operator}),I(Dt,function(e){return"+"==this.operator&&(this.left.is_string(e)||this.right.is_string(e))}),I(vt,function(e){return("="==this.operator||"+="==this.operator)&&this.right.is_string(e)}),I(ft,function(e){return this.tail_node().is_string(e)}),I(gt,function(e){return this.consequent.is_string(e)&&this.alternative.is_string(e)});var G=D("&& ||"),H=D("delete ++ --");function X(e,t){return t instanceof mt&&H.has(t.operator)?t.expression:t instanceof vt&&t.left===e?e:void 0}function z(e,t){return e.print_to_string().length>t.print_to_string().length?t:e}function W(e,t,n){return(S(e)?function(e,t){return z(h(pe,e,{body:e}),h(pe,t,{body:t})).body}:z)(t,n)}function Y(e){for(var t of Object.keys(e))e[t]=D(e[t])}!function(e){function t(e,t){e.warn("global_defs "+t.print_to_string()+" redefined [{file}:{line},{col}]",t.start)}Me.DEFMETHOD("resolve_defines",function(e){return e.option("global_defs")?(this.figure_out_scope({ie8:e.option("ie8")}),this.transform(new Dn(function(n){var i=n._find_defs(e,"");if(i){for(var r,o=0,a=n;(r=this.parent(o++))&&r instanceof pt&&r.expression===a;)a=r;if(!X(a,r))return i;t(e,n)}}))):this}),e(ue,u),e(_t,function(e,t){return this.expression._find_defs(e,"."+this.property+t)}),e(kt,function(e){this.global()&&A(e.option("global_defs"),this.name)&&t(e,this)}),e($t,function(e,t){if(this.global()){var n=e.option("global_defs"),i=this.name+t;return A(n,i)?function e(t,n){if(t instanceof ue)return h(t.CTOR,n,t);if(Array.isArray(t))return h(St,n,{elements:t.map(function(t){return e(t,n)})});if(t&&"object"==typeof t){var i=[];for(var r in t)A(t,r)&&i.push(h(yt,n,{key:r,value:e(t[r],n)}));return h(Tt,n,{properties:i})}return y(t,n)}(n[i],this):void 0}})}(function(e,t){e.DEFMETHOD("_find_defs",t)});var j=["constructor","toString","valueOf"],Z={Array:["indexOf","join","lastIndexOf","slice"].concat(j),Boolean:j,Function:j,Number:["toExponential","toFixed","toPrecision"].concat(j),Object:j,RegExp:["test"].concat(j),String:["charAt","charCodeAt","concat","indexOf","italics","lastIndexOf","match","replace","search","slice","split","substr","substring","toLowerCase","toUpperCase","trim"].concat(j)};Y(Z);var Q={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"]};Y(Q),function(e){ue.DEFMETHOD("evaluate",function(e){if(!e.option("evaluate"))return this;var t=this._eval(e,1);return!t||t instanceof RegExp?t:"function"==typeof t||"object"==typeof t?this:t});var t=D("! ~ - + void");ue.DEFMETHOD("is_constant",function(){return this instanceof tn?!(this instanceof on):this instanceof Et&&this.expression instanceof tn&&t.has(this.operator)}),e(ce,function(){throw new Error(m("Cannot evaluate a statement [{file}:{line},{col}]",this.start))}),e(we,f),e(Mt,f),e(ue,f),e(tn,function(){return this.getValue()}),e(Pe,function(){return 1!==this.segments.length?this:this.segments[0].value}),e(xe,function(e){if(e.option("unsafe")){var t=function(){};return t.node=this,t.toString=function(){return this.node.print_to_string()},t}return this}),e(St,function(e,t){if(e.option("unsafe")){for(var n=[],i=0,r=this.elements.length;i>":r=n>>o;break;case">>>":r=n>>>o;break;case"==":r=n==o;break;case"===":r=n===o;break;case"!=":r=n!=o;break;case"!==":r=n!==o;break;case"<":r=n":r=n>o;break;case">=":r=n>=o;break;default:return this}return isNaN(r)&&e.find_parent(Oe)?this:r}),e(gt,function(e,t){var n=this.condition._eval(e,t);if(n===this.condition)return this;var i=n?this.consequent:this.alternative,r=i._eval(e,t);return r===i?this:r}),e($t,function(e,t){var n,i=this.fixed_value();if(!i)return this;if(A(i,"_eval"))n=i._eval();else{if(this._eval=f,n=i._eval(e,t),delete this._eval,n===i)return this;i._eval=function(){return n}}if(n&&"object"==typeof n){var r=this.definition().escaped;if(r&&t>r)return this}return n});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"]};Y(o),e(pt,function(e,t){if(e.option("unsafe")){var n=this.property;if(n instanceof ue&&(n=n._eval(e,t))===this.property)return this;var i,a=this.expression;if(x(a)){var s,u="hasOwnProperty"===a.name&&"call"===n&&(s=e.parent()&&e.parent().args)&&s&&s[0]&&s[0].evaluate(e);if(null==(u=u instanceof _t?u.expression:u)||u.thedef&&u.thedef.undeclared)return this.clone();var c=o[a.name];if(!c||!c.has(n))return this;i=r[a.name]}else{if(!(i=a._eval(e,t+1))||i===a||!A(i,n))return this;if("function"==typeof i)switch(n){case"name":return i.node.name?i.node.name.name:"";case"length":return i.node.argnames.length;default:return this}}return i[n]}return this}),e(ct,function(e,t){var n=this.expression;if(e.option("unsafe")&&n instanceof pt){var i,o=n.property;if(o instanceof ue&&(o=o._eval(e,t))===n.property)return this;var a=n.expression;if(x(a)){var s="hasOwnProperty"===a.name&&"call"===o&&this.args[0]&&this.args[0].evaluate(e);if(null==(s=s instanceof _t?s.expression:s)||s.thedef&&s.thedef.undeclared)return this.clone();var u=Q[a.name];if(!u||!u.has(o))return this;i=r[a.name]}else{if((i=a._eval(e,t+1))===a||!i)return this;var c=Z[i.constructor.name];if(!c||!c.has(o))return this}for(var l=[],f=0,p=this.args.length;f=":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),n(this,r,i);case"||":return r.operator="&&",r.left=r.left.negate(e,i),r.right=r.right.negate(e),n(this,r,i)}return t(this)})}(function(e,t){e.DEFMETHOD("negate",function(e,n){return t.call(this,e,n)})});var J=D("Boolean decodeURI decodeURIComponent Date encodeURI encodeURIComponent Error escape EvalError isFinite isNaN Number Object parseFloat parseInt RangeError ReferenceError String SyntaxError TypeError unescape URIError");function ee(e){return e&&e.aborts()}ct.DEFMETHOD("is_expr_pure",function(e){if(e.option("unsafe")){var t=this.expression,n=this.args&&this.args[0]&&this.args[0].evaluate(e);if(t.expression&&"hasOwnProperty"===t.expression.name&&(null==n||n.thedef&&n.thedef.undeclared))return!1;if(x(t)&&J.has(t.name))return!0;if(t instanceof _t&&x(t.expression)&&Q.hasOwnProperty(t.expression.name)&&Q[t.expression.name].has(t.property))return!0}return this.pure||!e.pure_funcs(this)}),ue.DEFMETHOD("is_call_pure",c),_t.DEFMETHOD("is_call_pure",function(e){if(!e.option("unsafe"))return;const t=this.expression;let n;return t instanceof St?n=Z.Array:t.is_boolean()?n=Z.Boolean:t.is_number(e)?n=Z.Number:t instanceof on?n=Z.RegExp:t.is_string(e)?n=Z.String:this.may_throw_on_access(e)||(n=Z.Object),n&&n.has(this.property)}),function(e){function t(e,t){for(var n=e.length;--n>=0;)if(e[n].has_side_effects(t))return!0;return!1}e(ue,l),e(he,c),e(tn,c),e(Jt,c),e(me,function(e){return t(this.body,e)}),e(ct,function(e){return!(this.is_expr_pure(e)||this.expression.is_call_pure(e)&&!this.expression.has_side_effects(e))||t(this.args,e)}),e(qe,function(e){return this.expression.has_side_effects(e)||t(this.body,e)}),e(Ze,function(e){return this.expression.has_side_effects(e)||t(this.body,e)}),e(Qe,function(e){return t(this.body,e)||this.bcatch&&this.bcatch.has_side_effects(e)||this.bfinally&&this.bfinally.has_side_effects(e)}),e(Ye,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(ge,function(e){return this.body.has_side_effects(e)}),e(pe,function(e){return this.body.has_side_effects(e)}),e(we,c),e(Mt,c),e(Rt,l),e(Dt,function(e){return this.left.has_side_effects(e)||this.right.has_side_effects(e)}),e(vt,l),e(gt,function(e){return this.condition.has_side_effects(e)||this.consequent.has_side_effects(e)||this.alternative.has_side_effects(e)}),e(mt,function(e){return H.has(this.operator)||this.expression.has_side_effects(e)}),e($t,function(e){return!this.is_declared(e)}),e(kt,c),e(Tt,function(e){return t(this.properties,e)}),e(bt,function(e){return!!(this.key instanceof yt&&this.key.has_side_effects(e))||this.value.has_side_effects(e)}),e(St,function(e){return t(this.elements,e)}),e(_t,function(e){return this.expression.may_throw_on_access(e)||this.expression.has_side_effects(e)}),e(dt,function(e){return this.expression.may_throw_on_access(e)||this.expression.has_side_effects(e)||this.property.has_side_effects(e)}),e(ft,function(e){return t(this.expressions,e)}),e(tt,function(e){return t(this.definitions,e)}),e(ut,function(e){return this.value}),e(Be,c),e(Pe,function(e){return t(this.segments,e)})}(function(e,t){e.DEFMETHOD("has_side_effects",t)}),function(e){function t(e,t){for(var n=e.length;--n>=0;)if(e[n].may_throw(t))return!0;return!1}e(ue,l),e(Mt,c),e(tn,c),e(he,c),e(we,c),e(kt,c),e(Jt,c),e(St,function(e){return t(this.elements,e)}),e(vt,function(e){return!!this.right.may_throw(e)||!(!e.has_directive("use strict")&&"="==this.operator&&this.left instanceof $t)&&this.left.may_throw(e)}),e(Dt,function(e){return this.left.may_throw(e)||this.right.may_throw(e)}),e(me,function(e){return t(this.body,e)}),e(ct,function(e){return!!t(this.args,e)||!this.is_expr_pure(e)&&(!!this.expression.may_throw(e)||(!(this.expression instanceof we)||t(this.expression.body,e)))}),e(Ze,function(e){return this.expression.may_throw(e)||t(this.body,e)}),e(gt,function(e){return this.condition.may_throw(e)||this.consequent.may_throw(e)||this.alternative.may_throw(e)}),e(tt,function(e){return t(this.definitions,e)}),e(_t,function(e){return this.expression.may_throw_on_access(e)||this.expression.may_throw(e)}),e(Ye,function(e){return this.condition.may_throw(e)||this.body&&this.body.may_throw(e)||this.alternative&&this.alternative.may_throw(e)}),e(ge,function(e){return this.body.may_throw(e)}),e(Tt,function(e){return t(this.properties,e)}),e(bt,function(e){return this.value.may_throw(e)}),e(Ge,function(e){return this.value&&this.value.may_throw(e)}),e(ft,function(e){return t(this.expressions,e)}),e(pe,function(e){return this.body.may_throw(e)}),e(dt,function(e){return this.expression.may_throw_on_access(e)||this.expression.may_throw(e)||this.property.may_throw(e)}),e(qe,function(e){return this.expression.may_throw(e)||t(this.body,e)}),e($t,function(e){return!this.is_declared(e)}),e(Qe,function(e){return this.bcatch?this.bcatch.may_throw(e):t(this.body,e)||this.bfinally&&this.bfinally.may_throw(e)}),e(mt,function(e){return!("typeof"==this.operator&&this.expression instanceof $t)&&this.expression.may_throw(e)}),e(ut,function(e){return!!this.value&&this.value.may_throw(e)})}(function(e,t){e.DEFMETHOD("may_throw",t)}),function(e){function t(e){for(var t=e.length;--t>=0;)if(!e[t].is_constant_expression())return!1;return!0}function n(e){var t=this,n=!0;return t.walk(new hn(function(r){if(!n)return!0;if(r instanceof $t){if(t.inlined)return n=!1,!0;var o=r.definition();if(i(o,t.enclosed)&&!t.variables.has(o.name)){if(e){var a=e.find_variable(r);if(o.undeclared?!a:a===o)return n="f",!0}n=!1}return!0}return r instanceof Jt&&t instanceof ke?(n=!1,!0):void 0})),n}e(ue,c),e(tn,l),e(Mt,function(e){return!(this.extends&&!this.extends.is_constant_expression(e))&&n.call(this,e)}),e(we,n),e(mt,function(){return this.expression.is_constant_expression()}),e(Dt,function(){return this.left.is_constant_expression()&&this.right.is_constant_expression()}),e(St,function(){return t(this.elements)}),e(Tt,function(){return t(this.properties)}),e(bt,function(){return!(this.key instanceof ue)&&this.value.is_constant_expression()})}(function(e,t){e.DEFMETHOD("is_constant_expression",t)}),function(e){function t(){for(var e=0;e1)&&(s.name=null),s instanceof we&&!(s instanceof Ne))for(var v=!e.option("keep_fargs"),A=s.argnames,S=A.length;--S>=0;){var y;(y=A[S])instanceof Re&&(y=y.expression),y instanceof At&&(y=y.left),y instanceof Le||o.has(y.definition().id)?v=!1:(y.__unused=!0,v&&(A.pop(),e[y.unreferenced()?"warn":"info"]("Dropping unused function argument {name} [{file}:{line},{col}]",L(y))))}if((s instanceof Ie||s instanceof Rt)&&s!==t){d=s.name.definition();if(!(o.has(d.id)||!n&&d.global))return e[s.name.unreferenced()?"warn":"info"]("Dropping unused function {name} [{file}:{line},{col}]",L(s.name)),d.eliminated++,h(he,s)}if(s instanceof tt&&!(f instanceof ye&&f.init===s)){var O=!(f instanceof Me||s instanceof nt),F=[],w=[],N=[],x=[];switch(s.definitions.forEach(function(t){t.value&&(t.value=t.value.transform(m));var n=t.name instanceof Le,r=n?new Tn(null,{name:""}):t.name.definition();if(O&&r.global)return N.push(t);if(!i&&!O||n&&(t.name.names.length||t.name.is_array||1!=e.option("pure_getters"))||o.has(r.id)){if(t.value&&a.has(r.id)&&a.get(r.id)!==t&&(t.value=t.value.drop_side_effect_free(e)),t.name instanceof It){var c=u.get(r.id);if(c.length>1&&(!t.value||r.orig.indexOf(t.name)>r.eliminated)){if(e.warn("Dropping duplicated definition of variable {name} [{file}:{line},{col}]",L(t.name)),t.value){var l=h($t,t.name,t.name);r.references.push(l);var f=h(vt,t,{operator:"=",left:l,right:t.value});a.get(r.id)===t&&a.set(r.id,f),x.push(f.transform(m))}return E(c,t),void r.eliminated++}}t.value?(x.length>0&&(N.length>0?(x.push(t.value),t.value=b(t.value,x)):F.push(h(pe,s,{body:b(s,x)})),x=[]),N.push(t)):w.push(t)}else if(r.orig[0]instanceof zt){(p=t.value&&t.value.drop_side_effect_free(e))&&x.push(p),t.value=null,w.push(t)}else{var p;(p=t.value&&t.value.drop_side_effect_free(e))?(n||e.warn("Side effects in initialization of unused variable {name} [{file}:{line},{col}]",L(t.name)),x.push(p)):n||e[t.name.unreferenced()?"warn":"info"]("Dropping unused variable {name} [{file}:{line},{col}]",L(t.name)),r.eliminated++}}),(w.length>0||N.length>0)&&(s.definitions=w.concat(N),F.push(s)),x.length>0&&F.push(h(pe,s,{body:b(s,x)})),F.length){case 0:return l?_.skip:h(he,s);case 1:return F[0];default:return l?_.splice(F):h(Ee,s,{body:F})}}if(s instanceof be)return c(s,this),s.init instanceof Ee&&(k=s.init,s.init=k.body.pop(),k.body.push(s)),s.init instanceof pe?s.init=s.init.body:M(s.init)&&(s.init=null),k?l?_.splice(k.body):k:s;if(s instanceof ge&&s.body instanceof be){if(c(s,this),s.body instanceof Ee){var k=s.body;return s.body=k.body.pop(),k.body.push(s),l?_.splice(k.body):k}return s}if(s instanceof Ee)return c(s,this),l&&g(s.body,R)?_.splice(s.body):s;if(s instanceof Fe){var I=p;return p=s,c(s,this),p=I,s}}function L(e){return{name:e.name,file:e.start.file,line:e.start.line,col:e.start.col}}});t.transform(m)}}function D(e,n){var i,u=r(e);if(u instanceof $t&&!s(e.left,Lt)&&t.variables.get(u.name)===(i=u.definition()))return e instanceof vt&&(e.right.walk(d),i.chained||e.left.fixed_value()!==e.right||a.set(i.id,e)),!0;if(e instanceof $t)return i=e.definition(),o.has(i.id)||(o.set(i.id,i),(i=i.redefined())&&o.set(i.id,i)),!0;if(e instanceof Fe){var c=p;return p=e,n(),p=c,!0}}}),Fe.DEFMETHOD("hoist_declarations",function(e){var t=this;if(e.has_directive("use asm"))return t;if(!Array.isArray(t.body))return t;var n=e.option("hoist_funs"),i=e.option("hoist_vars");if(n||i){var o=[],a=[],s=new Map,u=0,c=0;t.walk(new hn(function(e){return e instanceof Fe&&e!==t||(e instanceof nt?(++c,!0):void 0)})),i=i&&c>1;var l=new Dn(function(r){if(r!==t){if(r instanceof fe)return o.push(r),h(he,r);if(n&&r instanceof Ie&&!(l.parent()instanceof st)&&l.parent()===t)return a.push(r),h(he,r);if(i&&r instanceof nt){r.definitions.forEach(function(e){e.name instanceof Le||(s.set(e.name.name,e),++u)});var c=r.to_assignments(e),f=l.parent();if(f instanceof ye&&f.init===r){if(null==c){var p=r.definitions[0].name;return h($t,p,p)}return c}return f instanceof be&&f.init===r?c:c?h(pe,r,{body:c}):h(he,r)}if(r instanceof Fe)return r}});if(t=t.transform(l),u>0){var f=[];if(s.forEach(function(e,n){t instanceof we&&r(function(t){return t.name==e.name.name},t.args_as_names())?s.delete(n):((e=e.clone()).value=null,f.push(e),s.set(n,e))}),f.length>0){for(var p=0;p0&&(u[0].body=s.concat(u[0].body)),e.body=u;n=u[u.length-1];){var _=n.body[n.body.length-1];if(_ instanceof ze&&t.loopcontrol_target(_)===e&&n.body.pop(),n.body.length||n instanceof Ze&&(o||n.expression.has_side_effects(t)))break;u.pop()===o&&(o=null)}if(0==u.length)return h(Ee,e,{body:s.concat(h(pe,e.expression,{body:e.expression}))}).optimize(t);if(1==u.length&&(u[0]===a||u[0]===o)){var d=!1,m=new hn(function(t){if(d||t instanceof we||t instanceof pe)return!0;t instanceof ze&&m.loopcontrol_target(t)===e&&(d=!0)});if(e.walk(m),!d){var E,D=u[0].body.slice();return(E=u[0].expression)&&D.unshift(h(pe,E,{body:E})),D.unshift(h(pe,e.expression,{body:e.expression})),h(Ee,e,{body:D}).optimize(t)}}return e;function g(e,n){n&&!ee(n)?n.body=n.body.concat(e.body):B(t,e,s)}}),e(Qe,function(e,t){if(P(e.body,t),e.bcatch&&e.bfinally&&g(e.bfinally.body,M)&&(e.bfinally=null),t.option("dead_code")&&g(e.body,M)){var n=[];return e.bcatch&&(B(t,e.bcatch,n),n.forEach(function(e){e instanceof tt&&e.definitions.forEach(function(e){var t=e.name.definition().redefined();t&&(e.name=e.name.clone(),e.name.thedef=t)})})),e.bfinally&&(n=n.concat(e.bfinally.body)),h(Ee,e,{body:n}).optimize(t)}return e}),tt.DEFMETHOD("remove_initializers",function(){var e=[];this.definitions.forEach(function(t){t.name instanceof kt?(t.value=null,e.push(t)):t.name.walk(new hn(function(n){n instanceof kt&&e.push(h(ut,t,{name:n,value:null}))}))}),this.definitions=e}),tt.DEFMETHOD("to_assignments",function(e){var t=e.option("reduce_vars"),n=this.definitions.reduce(function(e,n){if(!n.value||n.name instanceof Le){if(n.value){var i=h(ut,n,{name:n.name,value:n.value}),r=h(nt,n,{definitions:[i]});e.push(r)}}else{var o=h($t,n.name,n.name);e.push(h(vt,n,{operator:"=",left:o,right:n.value})),t&&(o.definition().fixed=!1)}return(n=n.name.definition()).eliminated++,n.replaced--,e},[]);return 0==n.length?null:b(this,n)}),e(tt,function(e,t){return 0==e.definitions.length?h(he,e):e}),e(at,function(e,t){return e}),e(ct,function(e,t){var n=e.expression,i=n;Ht(e,t,e.args);var r=g(e.args,function(e){return!(e instanceof Re)});t.option("reduce_vars")&&i instanceof $t&&se(i=i.fixed_value(),t)&&(i=n);var a=i instanceof we;if(t.option("unused")&&r&&a&&!i.uses_arguments&&!i.pinned()){for(var s=0,u=0,c=0,l=e.args.length;c=i.argnames.length;if(f||i.argnames[c].__unused){if(v=e.args[c].drop_side_effect_free(t))e.args[s++]=v;else if(!f){e.args[s++]=h(rn,e.args[c],{value:0});continue}}else e.args[s++]=e.args[c];u=s}e.args.length=u}if(t.option("unsafe"))if(x(n))switch(n.name){case"Array":if(1!=e.args.length)return h(St,e,{elements:e.args}).optimize(t);if(e.args[0]instanceof rn&&e.args[0].value<=11){const t=[];for(let n=0;n0&&(_=e.args[0].evaluate(t))===e.args[0])){var d,m=[],E=[];for(c=0,l=n.expression.elements.length;c0&&(m.push(h(nn,e,{value:E.join(_)})),E.length=0),m.push(D))}return E.length>0&&m.push(h(nn,e,{value:E.join(_)})),0==m.length?h(nn,e,{value:""}):1==m.length?m[0].is_string(t)?m[0]:h(Dt,m[0],{operator:"+",left:h(nn,e,{value:""}),right:m[0]}):""==_?(d=m[0].is_string(t)||m[1].is_string(t)?m.shift():h(nn,e,{value:""}),m.reduce(function(e,t){return h(Dt,t,{operator:"+",left:e,right:t})},d).optimize(t)):((v=e.clone()).expression=v.expression.clone(),v.expression.expression=v.expression.expression.clone(),v.expression.expression.elements=m,W(t,e,v));var v}}break;case"charAt":if(n.expression.is_string(t)){var A=e.args[0],S=A?A.evaluate(t):0;if(S!==A)return h(dt,n,{expression:n.expression,property:y(0|S,A||n)}).optimize(t)}break;case"apply":if(2==e.args.length&&e.args[1]instanceof St)return(P=e.args[1].elements.slice()).unshift(e.args[0]),h(ct,e,{expression:h(_t,n,{expression:n.expression,property:"call"}),args:P}).optimize(t);break;case"call":var T=n.expression;if(T instanceof $t&&(T=T.fixed_value()),T instanceof we&&!T.contains_this())return(e.args.length?b(this,[e.args[0],h(ct,e,{expression:n.expression,args:e.args.slice(1)})]):h(ct,e,{expression:n.expression,args:[]})).optimize(t)}if(t.option("unsafe_Function")&&x(n)&&"Function"==n.name){if(0==e.args.length)return h(xe,e,{argnames:[],body:[]}).optimize(t);if(g(e.args,function(e){return e instanceof nn}))try{var C=oe(w="n(function("+e.args.slice(0,-1).map(function(e){return e.value}).join(",")+"){"+e.args[e.args.length-1].value+"})"),O={ie8:t.option("ie8")};C.figure_out_scope(O);var F,R=new Fn(t.options);(C=C.transform(R)).figure_out_scope(O),On.reset(),C.compute_char_frequency(O),C.mangle_names(O),C.walk(new hn(function(e){return!!F||(o(e)?(F=e,!0):void 0)})),F.body instanceof ue&&(F.body=[h(Ge,F.body,{value:F.body})]);var w=Sn();return Ee.prototype._codegen.call(F,F,w),e.args=[h(nn,e,{value:F.argnames.map(function(e){return e.print_to_string()}).join(",")}),h(nn,e.args[e.args.length-1],{value:w.get().replace(/^{|}$/g,"")})],e}catch(n){if(!(n instanceof $))throw n;t.warn("Error parsing code passed to new Function [{file}:{line},{col}]",e.args[e.args.length-1].start),t.warn(n.toString())}}var k=a&&i.body;k instanceof ue?k=h(Ge,k,{value:k}):k&&(k=k[0]);var I=a&&!i.is_generator&&!i.async,V=t.option("inline")&&!e.is_expr_pure(t);if(V&&k instanceof Ge&&I&&(!(K=k.value)||K.is_constant_expression())){K=K?K.clone(!0):h(cn,e);var P=e.args.concat(K);return b(e,P).optimize(t)}if(I){var B,K,U,G,H=-1;if(V&&r&&!i.uses_arguments&&!i.pinned()&&!(t.parent()instanceof Mt)&&!(i.name&&i instanceof xe)&&(!(t.find_parent(we)instanceof ke)||0==i.argnames.length&&(i.body instanceof ue||1==i.body.length))&&(K=function(e){var n=i.body instanceof ue?[i.body]:i.body,r=n.length;if(t.option("inline")<3)return 1==r&&z(e);e=null;for(var o=0;o=0;){var s=o.definitions[a].name;if(s instanceof Le||e.has(s.name)||L.has(s.name)||U.var_names().has(s.name))return!1;G&&G.push(s.definition())}}}return!0}(e,r>=3&&n)||!function(e,t){for(var n=0,r=i.argnames.length;n=2&&n)||G&&0!=G.length&&He(i,G))}()&&!(U instanceof Mt))return i._squeezed=!0,b(e,function(){var n=[],r=[];(function(t,n){for(var r=i.argnames.length,o=e.args.length;--o>=r;)n.push(e.args[o]);for(o=r;--o>=0;){var a=i.argnames[o],s=e.args[o];if(a.__unused||!a.name||U.var_names().has(a.name))s&&n.push(s);else{var u=h(It,a,a);a.definition().orig.push(u),!s&&G&&(s=h(cn,e)),Y(t,n,u,s)}}t.reverse(),n.reverse()})(n,r),function(e,t){for(var n=t.length,r=0,o=i.body.length;r0&&U(r[o],t);)o--;o0)return(n=this.clone()).right=b(this.right,t.slice(o)),(t=t.slice(0,o)).push(n),b(this,t).optimize(e)}}return this});var de=D("== === != !== * & | ^");function De(e,t){for(var n,i=0;n=e.parent(i);i++)if(n instanceof we){var r=n.name;if(r&&r.definition()===t)break}return n}function Ce(e,t){return e instanceof $t||e.TYPE===t.TYPE}function He(e,t){var n=!1,r=new hn(function(e){return!!n||(e instanceof $t&&i(e.definition(),t)?n=!0:void 0)}),o=new hn(function(t){if(n)return!0;if(t instanceof Fe&&t!==e){var i=o.parent();if(i instanceof ct&&i.expression===t)return;return t.walk(r),!0}});return e.walk(o),n}e(Dt,function(e,t){function n(){return e.left.is_constant()||e.right.is_constant()||!e.left.has_side_effects(t)&&!e.right.has_side_effects(t)}function i(t){if(n()){t&&(e.operator=t);var i=e.left;e.left=e.right,e.right=i}}if(de.has(e.operator)&&e.right.is_constant()&&!e.left.is_constant()&&(e.left instanceof Dt&&ie[e.left.operator]>=ie[e.operator]||i()),e=e.lift_sequences(t),t.option("comparisons"))switch(e.operator){case"===":case"!==":var r=!0;(e.left.is_string(t)&&e.right.is_string(t)||e.left.is_number(t)&&e.right.is_number(t)||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&&U(e.left,t))e.left=h(sn,e.left);else if(t.option("typeofs")&&e.left instanceof nn&&"undefined"==e.left.value&&e.right instanceof Et&&"typeof"==e.right.operator){var o=e.right.expression;(o instanceof $t?!o.is_declared(t):o instanceof pt&&t.option("ie8"))||(e.right=o,e.left=h(cn,e.left).optimize(t),2==e.operator.length&&(e.operator+="="))}else if(e.left instanceof $t&&e.right instanceof $t&&e.left.definition()===e.right.definition()&&((u=e.left.fixed_value())instanceof St||u instanceof we||u instanceof Tt||u instanceof Mt))return h("="==e.operator[0]?dn:_n,e);break;case"&&":case"||":var a=e.left;if(a.operator==e.operator&&(a=a.right),a instanceof Dt&&a.operator==("&&"==e.operator?"!==":"===")&&e.right instanceof Dt&&a.operator==e.right.operator&&(U(a.left,t)&&e.right.left instanceof sn||a.left instanceof sn&&U(e.right.left,t))&&!a.right.has_side_effects(t)&&a.right.equivalent_to(e.right.right)){var s=h(Dt,e,{operator:a.operator.slice(0,-1),left:h(sn,e),right:a.right});return a!==e.left&&(s=h(Dt,e,{operator:e.operator,left:e.left.left,right:s})),s}}var u;if("+"==e.operator&&t.in_boolean_context()){var c=e.left.evaluate(t),l=e.right.evaluate(t);if(c&&"string"==typeof c)return t.warn("+ in boolean context always true [{file}:{line},{col}]",e.start),b(e,[e.right,h(dn,e)]).optimize(t);if(l&&"string"==typeof l)return t.warn("+ in boolean context always true [{file}:{line},{col}]",e.start),b(e,[e.left,h(dn,e)]).optimize(t)}if(t.option("comparisons")&&e.is_boolean()){if(!(t.parent()instanceof Dt)||t.parent()instanceof vt){var f=h(Et,e,{operator:"!",expression:e.negate(t,S(t))});e=W(t,e,f)}if(t.option("unsafe_comps"))switch(e.operator){case"<":i(">");break;case"<=":i(">=")}}if("+"==e.operator){if(e.right instanceof nn&&""==e.right.getValue()&&e.left.is_string(t))return e.left;if(e.left instanceof nn&&""==e.left.getValue()&&e.right.is_string(t))return e.right;if(e.left instanceof Dt&&"+"==e.left.operator&&e.left.left instanceof nn&&""==e.left.left.getValue()&&e.right.is_string(t))return e.left=e.left.right,e.transform(t)}if(t.option("evaluate")){switch(e.operator){case"&&":if(!(c=!!e.left.truthy||!e.left.falsy&&e.left.evaluate(t)))return t.warn("Condition left of && always false [{file}:{line},{col}]",e.start),C(t.parent(),t.self(),e.left).optimize(t);if(!(c instanceof ue))return t.warn("Condition left of && always true [{file}:{line},{col}]",e.start),b(e,[e.left,e.right]).optimize(t);if(l=e.right.evaluate(t)){if(!(l instanceof ue)){if("&&"==(p=t.parent()).operator&&p.left===t.self()||t.in_boolean_context())return t.warn("Dropping side-effect-free && [{file}:{line},{col}]",e.start),e.left.optimize(t)}}else{if(t.in_boolean_context())return t.warn("Boolean && always false [{file}:{line},{col}]",e.start),b(e,[e.left,h(_n,e)]).optimize(t);e.falsy=!0}if("||"==e.left.operator)if(!(_=e.left.right.evaluate(t)))return h(gt,e,{condition:e.left.left,consequent:e.right,alternative:e.left.right}).optimize(t);break;case"||":var p,_;if(!(c=!!e.left.truthy||!e.left.falsy&&e.left.evaluate(t)))return t.warn("Condition left of || always false [{file}:{line},{col}]",e.start),b(e,[e.left,e.right]).optimize(t);if(!(c instanceof ue))return t.warn("Condition left of || always true [{file}:{line},{col}]",e.start),C(t.parent(),t.self(),e.left).optimize(t);if(l=e.right.evaluate(t)){if(!(l instanceof ue)){if(t.in_boolean_context())return t.warn("Boolean || always true [{file}:{line},{col}]",e.start),b(e,[e.left,h(dn,e)]).optimize(t);e.truthy=!0}}else if("||"==(p=t.parent()).operator&&p.left===t.self()||t.in_boolean_context())return t.warn("Dropping side-effect-free || [{file}:{line},{col}]",e.start),e.left.optimize(t);if("&&"==e.left.operator)if((_=e.left.right.evaluate(t))&&!(_ instanceof ue))return h(gt,e,{condition:e.left.left,consequent:e.left.right,alternative:e.right}).optimize(t)}var d=!0;switch(e.operator){case"+":if(e.left instanceof tn&&e.right instanceof Dt&&"+"==e.right.operator&&e.right.left instanceof tn&&e.right.is_string(t)&&(e=h(Dt,e,{operator:"+",left:h(nn,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 tn&&e.left instanceof Dt&&"+"==e.left.operator&&e.left.right instanceof tn&&e.left.is_string(t)&&(e=h(Dt,e,{operator:"+",left:e.left.left,right:h(nn,e.right,{value:""+e.left.right.getValue()+e.right.getValue(),start:e.left.right.start,end:e.right.end})})),e.left instanceof Dt&&"+"==e.left.operator&&e.left.is_string(t)&&e.left.right instanceof tn&&e.right instanceof Dt&&"+"==e.right.operator&&e.right.left instanceof tn&&e.right.is_string(t)&&(e=h(Dt,e,{operator:"+",left:h(Dt,e.left,{operator:"+",left:e.left.left,right:h(nn,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 Et&&"-"==e.right.operator&&e.left.is_number(t)){e=h(Dt,e,{operator:"-",left:e.left,right:e.right.expression});break}if(e.left instanceof Et&&"-"==e.left.operator&&n()&&e.right.is_number(t)){e=h(Dt,e,{operator:"-",left:e.right,right:e.left.expression});break}case"*":d=t.option("unsafe_math");case"&":case"|":case"^":if(e.left.is_number(t)&&e.right.is_number(t)&&n()&&!(e.left instanceof Dt&&e.left.operator!=e.operator&&ie[e.left.operator]>=ie[e.operator])){var m=h(Dt,e,{operator:e.operator,left:e.right,right:e.left});e=e.right instanceof tn&&!(e.left instanceof tn)?W(t,m,e):W(t,e,m)}d&&e.is_number(t)&&(e.right instanceof Dt&&e.right.operator==e.operator&&(e=h(Dt,e,{operator:e.operator,left:h(Dt,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 tn&&e.left instanceof Dt&&e.left.operator==e.operator&&(e.left.left instanceof tn?e=h(Dt,e,{operator:e.operator,left:h(Dt,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 tn&&(e=h(Dt,e,{operator:e.operator,left:h(Dt,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 Dt&&e.left.operator==e.operator&&e.left.right instanceof tn&&e.right instanceof Dt&&e.right.operator==e.operator&&e.right.left instanceof tn&&(e=h(Dt,e,{operator:e.operator,left:h(Dt,e.left,{operator:e.operator,left:h(Dt,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 Dt&&e.right.operator==e.operator&&(G.has(e.operator)||"+"==e.operator&&(e.right.left.is_string(t)||e.left.is_string(t)&&e.right.right.is_string(t))))return e.left=h(Dt,e.left,{operator:e.operator,left:e.left,right:e.right.left}),e.right=e.right.right,e.transform(t);var E=e.evaluate(t);return E!==e?(E=y(E,e).optimize(t),W(t,E,e)):e}),e(jt,function(e,t){return e}),e($t,function(e,t){if(!t.option("ie8")&&x(e)&&(!e.scope.uses_with||!t.find_parent(Oe)))switch(e.name){case"undefined":return h(cn,e).optimize(t);case"NaN":return h(un,e).optimize(t);case"Infinity":return h(fn,e).optimize(t)}var n=t.parent();if(t.option("reduce_vars")&&X(e,n)!==e){var i=e.definition();if(t.top_retain&&i.global&&t.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&&!(n instanceof ct&&n.is_expr_pure(t));if(a&&(r instanceof we||r instanceof Mt))if(se(r,t))a=!1;else if(i.scope!==e.scope&&(!t.option("reduce_funcs")&&r instanceof we||1==i.escaped||r.inlined||function(e){for(var t,n=0;t=e.parent(n++);){if(t instanceof ce)return!1;if(t instanceof St||t instanceof yt||t instanceof Tt)return!0}return!1}(t)))a=!1;else if(De(t,i))a=!1;else if((i.scope!==e.scope||i.orig[0]instanceof Bt)&&"f"==(a=r.is_constant_expression(e.scope))){var s=e.scope;do{(s instanceof Ie||o(s))&&(s.inlined=!0)}while(s=s.parent_scope)}if(a&&r){var u;if(r instanceof Rt&&(r=h(wt,r,r)),r instanceof Ie&&(r._squeezed=!0,r=h(xe,r,r)),i.recursive_refs>0&&r.name instanceof Kt){var c=(u=r.clone(!0)).name.definition(),l=u.variables.get(u.name.name),f=l&&l.orig[0];f instanceof Gt||((f=h(Gt,u.name,u.name)).scope=u,u.name=f,l=u.def_function(f)),u.walk(new hn(function(e){e instanceof $t&&e.definition()===c&&(e.thedef=l,l.references.push(e))}))}else(u=r.optimize(t))===r&&(u=r.clone(!0));return u}if(r&&void 0===i.should_replace){var p;if(r instanceof Jt)i.orig[0]instanceof Bt||!g(i.references,function(e){return i.scope===e.scope})||(p=r);else{var _=r.evaluate(t);_===r||!t.option("unsafe_regexp")&&_ instanceof RegExp||(p=y(_,r))}if(p){var d,m=p.optimize(t).print_to_string().length;!function(e){var t;return e.walk(new hn(function(e){if(e instanceof $t&&(t=!0),t)return!0})),t}(r)?(m=Math.min(m,r.print_to_string().length),d=function(){var e=z(p.optimize(t),r);return e===p||e===r?e.clone(!0):e}):d=function(){var e=p.optimize(t);return e===p?e.clone(!0):e};var E=i.name.length,D=0;t.option("unused")&&!t.exposed(i)&&(D=(E+2+m)/(i.references.length-i.assignments)),i.should_replace=m<=E+D&&d}else i.should_replace=!1}if(i.should_replace)return i.should_replace()}return e}),e(cn,function(e,t){if(t.option("unsafe_undefined")){var n=d(t,"undefined");if(n){var i=h($t,e,{name:"undefined",scope:n.scope,thedef:n});return i.is_undefined=!0,i}}var r=X(t.self(),t.parent());return r&&Ce(r,e)?e:h(Et,e,{operator:"void",expression:h(rn,e,{value:0})})}),e(fn,function(e,t){var n=X(t.self(),t.parent());return n&&Ce(n,e)?e:!t.option("keep_infinity")||n&&!Ce(n,e)||d(t,"Infinity")?h(Dt,e,{operator:"/",left:h(rn,e,{value:1}),right:h(rn,e,{value:0})}):e}),e(un,function(e,t){var n=X(t.self(),t.parent());return n&&!Ce(n,e)||d(t,"NaN")?h(Dt,e,{operator:"/",left:h(rn,e,{value:0}),right:h(rn,e,{value:0})}):e});const ot=D("+ - / * % >> << >>> | ^ &"),Ct=D("* | ^ &");function xt(e,t){return e instanceof $t&&(e=e.fixed_value()),!!e&&(!(e instanceof we||e instanceof Mt)||t.parent()instanceof lt||!e.contains_this())}function Pt(e,t){return t.in_boolean_context()?W(t,e,b(e,[e,h(dn,e)]).optimize(t)):e}function Ht(e,t,n){for(var i=0;i0&&s.args.length==u.args.length&&s.expression.equivalent_to(u.expression)&&!e.condition.has_side_effects(t)&&!s.expression.has_side_effects(t)&&"number"==typeof(o=function(){for(var e=s.args,t=u.args,n=0,i=e.length;n1)&&(p=null)}else if(!p&&!t.option("keep_fargs")&&s=n.argnames.length;)p=h(Bt,n,{name:n.make_var_name("argument_"+n.argnames.length),scope:n}),n.argnames.push(p),n.enclosed.push(n.def_variable(p));if(p){var d=h($t,e,p);return d.reference({}),delete p.__unused,d}}if(X(e,t.parent()))return e;if(o!==r){var m=e.flatten_object(a,t);m&&(i=e.expression=m.expression,r=e.property=m.property)}if(t.option("properties")&&t.option("side_effects")&&r instanceof rn&&i instanceof St){s=r.getValue();var E=i.elements,D=E[s];e:if(xt(D,t)){for(var g=!0,v=[],A=E.length;--A>s;){(S=E[A].drop_side_effect_free(t))&&(v.unshift(S),g&&S.has_side_effects(t)&&(g=!1))}if(D instanceof Re)break e;for(D=D instanceof ln?h(cn,D):D,g||v.unshift(D);--A>=0;){var S;if((S=E[A])instanceof Re)break e;(S=S.drop_side_effect_free(t))?v.unshift(S):s--}return g?(v.push(D),b(e,v).optimize(t)):h(dt,e,{expression:h(St,i,{elements:v}),property:h(rn,r,{value:s})})}}var T=e.evaluate(t);return T!==e?W(t,T=y(T,e).optimize(t),e):e}),we.DEFMETHOD("contains_this",function(){var e,t=this;return t.walk(new hn(function(n){return!!e||(n instanceof Jt?e=!0:n!==t&&n instanceof Fe&&!(n instanceof ke)||void 0)})),e}),pt.DEFMETHOD("flatten_object",function(e,t){if(t.option("properties")){var n=t.option("unsafe_arrows")&&t.option("ecma")>=6,i=this.expression;if(i instanceof Tt)for(var r=i.properties,o=r.length;--o>=0;){var a=r[o];if(""+(a instanceof Ft?a.key.name:a.key)==e){if(!g(r,function(e){return e instanceof yt||n&&e instanceof Ft&&!e.is_generator}))break;if(!xt(a.value,t))break;return h(dt,this,{expression:h(St,i,{elements:r.map(function(e){var t=e.value;t instanceof Ne&&(t=h(xe,t,t));var n=e.key;return n instanceof ue&&!(n instanceof Ut)?b(e,[n,t]):t})}),property:h(rn,this,{value:o})})}}}}),e(_t,function(e,t){if("arguments"!=e.property&&"caller"!=e.property||t.warn("Function.prototype.{prop} not supported [{file}:{line},{col}]",{prop:e.property,file:e.start.file,line:e.start.line,col:e.start.col}),X(e,t.parent()))return e;if(t.option("unsafe_proto")&&e.expression instanceof _t&&"prototype"==e.expression.property){var n=e.expression.expression;if(x(n))switch(n.name){case"Array":e.expression=h(St,e.expression,{elements:[]});break;case"Function":e.expression=h(xe,e.expression,{argnames:[],body:[]});break;case"Number":e.expression=h(rn,e.expression,{value:0});break;case"Object":e.expression=h(Tt,e.expression,{properties:[]});break;case"RegExp":e.expression=h(on,e.expression,{value:/t/});break;case"String":e.expression=h(nn,e.expression,{value:""})}}var i=e.flatten_object(e.property,t);if(i)return i.optimize(t);var r=e.evaluate(t);return r!==e?W(t,r=y(r,e).optimize(t),e):e}),e(St,function(e,t){var n=Pt(e,t);return n!==e?n:Ht(e,0,e.elements)}),e(Tt,function(e,t){var n=Pt(e,t);if(n!==e)return n;for(var i=e.properties,r=0;r=6&&!e.name&&!e.is_generator&&!e.uses_arguments&&!e.pinned()){var n=!1;if(e.walk(new hn(function(e){return!!n||(e instanceof Jt?(n=!0,!0):void 0)})),!n)return h(ke,e,e).optimize(t)}return e}),e(Mt,function(e,t){return e}),e(En,function(e,t){return e.expression&&!e.is_star&&U(e.expression,t)&&(e.expression=null),e}),e(Pe,function(e,t){if(!t.option("evaluate")||t.parent()instanceof Ve)return e;for(var n=[],i=0;i=6&&(!(n instanceof RegExp)||n.test(e.key+""))){var i=e.key,r=e.value;if((r instanceof ke&&Array.isArray(r.body)&&!r.contains_this()||r instanceof xe)&&!r.name)return h(Ft,e,{async:r.async,is_generator:r.is_generator,key:i instanceof ue?i:h(Ut,e,{name:i}),value:h(Ne,r,r),quote:e.quote})}return e}),e(Le,function(e,t){if(1==t.option("pure_getters")&&t.option("unused")&&!e.is_array&&Array.isArray(e.names)&&!function(e){for(var t=[/^VarDef$/,/^(Const|Let|Var)$/,/^Export$/],n=0,i=0,r=t.length;n1)throw new Error("inline source map only works with singular input");n.sourceMap.content=(i=e[f],r=void 0,(r=/(?:^|[^.])\/\/# sourceMappingURL=data:application\/json(;[\w=-]*)?;base64,([+\/0-9A-Za-z]*=*)\s*$/.exec(i))?xn(r[2]):(ue.warn("inline source map not found"),null))}c=n.parse.toplevel}a&&"strict"!==n.mangle.properties.keep_quoted&&Rn(c,a),n.wrap&&(c=c.wrap_commonjs(n.wrap)),n.enclose&&(c=c.wrap_enclose(n.enclose)),u&&(u.rename=Date.now()),u&&(u.compress=Date.now()),n.compress&&(c=new Fn(n.compress).compress(c)),u&&(u.scope=Date.now()),n.mangle&&c.figure_out_scope(n.mangle),u&&(u.mangle=Date.now()),n.mangle&&(On.reset(),c.compute_char_frequency(n.mangle),c.mangle_names(n.mangle)),u&&(u.properties=Date.now()),n.mangle&&n.mangle.properties&&(c=Nn(c,n.mangle.properties)),u&&(u.output=Date.now());var p={};if(n.output.ast&&(p.ast=c),!A(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=s(e,{file:null,root:null,orig:null,orig_line_diff:0,dest_line_diff:0});var n=new t.SourceMapGenerator({file:e.file,sourceRoot:e.root}),i=e.orig&&new t.SourceMapConsumer(e.orig);return i&&i.sources.forEach(function(e){var t=i.sourceContentFor(e,!0);t&&n.setSourceContent(e,t)}),{add:function(t,r,o,a,s,u){if(i){var c=i.originalPositionFor({line:a,column:s});if(null===c.source)return;t=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:t,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 Me)throw new Error("original source content unavailable");for(var f in e)A(e,f)&&n.output.source_map.get().setSourceContent(f,e[f])}delete n.output.ast,delete n.output.code;var _=Sn(n.output);c.print(_),p.code=_.get(),n.sourceMap&&(p.map=n.output.source_map.toString(),"inline"==n.sourceMap.url?p.code+="\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,"+kn(p.map):n.sourceMap.url&&(p.code+="\n//# sourceMappingURL="+n.sourceMap.url))}return n.nameCache&&n.mangle&&(n.mangle.cache&&(n.nameCache.vars=Vn(n.mangle.cache)),n.mangle.properties&&n.mangle.properties.cache&&(n.nameCache.props=Vn(n.mangle.properties.cache))),u&&(u.end=Date.now(),p.timings={parse:.001*(u.rename-u.parse),rename:.001*(u.compress-u.rename),compress:.001*(u.scope-u.compress),scope:.001*(u.mangle-u.scope),mangle:.001*(u.properties-u.mangle),properties:.001*(u.output-u.properties),output:.001*(u.end-u.output),total:.001*(u.end-u.start)}),l.length&&(p.warnings=l),p}catch(e){return{error:e}}finally{ue.warn_function=o}}function Bn(e){var t=Pn("",e);return t.error&&t.error.defs}!function(){var e=function(e){for(var t=!0,n=0;n%])([a-z0-9$_]+)/i.exec(e);if(!t)throw new Error("Can't understand property map: "+e);var n=t[1],i=t[2],r=t[3];switch(a+=",\n"+r+": ",c+=",\n"+n+": ",i){case"@":a+="M."+n+".map(from_moz)",c+="M."+r+".map(to_moz)";break;case">":a+="from_moz(M."+n+")",c+="to_moz(M."+r+")";break;case"=":a+="M."+n,c+="M."+r;break;case"%":a+="from_moz(M."+n+").body",c+="to_moz_block(M)";break;default:throw new Error("Can't understand operator in propmap: "+e)}}),a+="\n})\n}",c+="\n}\n}",a=new Function("U2","my_start_token","my_end_token","from_moz","return("+a+")")(gn,i,r,s),c=new Function("to_moz","to_moz_block","to_moz_scope","return("+c+")")(l,p,_),t[e]=a,u(n,c)}t.UpdateExpression=t.UnaryExpression=function(e){return new(("prefix"in e?e.prefix:"UnaryExpression"==e.type)?Et:ht)({start:i(e),end:r(e),operator:e.operator,expression:s(e.argument)})},t.ClassDeclaration=t.ClassExpression=function(e){return new("ClassDeclaration"===e.type?Rt:wt)({start:i(e),end:r(e),name:s(e.id),extends:s(e.superClass),properties:e.body.body.map(s)})},o("EmptyStatement",he),o("BlockStatement",Ee,"body@body"),o("IfStatement",Ye,"test>condition, consequent>body, alternate>alternative"),o("LabeledStatement",ge,"label>label, body>body"),o("BreakStatement",ze,"label>label"),o("ContinueStatement",We,"label>label"),o("WithStatement",Oe,"object>expression, body>body"),o("SwitchStatement",qe,"discriminant>expression, cases@body"),o("ReturnStatement",Ge,"argument>value"),o("ThrowStatement",He,"argument>value"),o("WhileStatement",Te,"test>condition, body>body"),o("DoWhileStatement",Se,"test>condition, body>body"),o("ForStatement",be,"init>init, test>condition, update>step, body>body"),o("ForInStatement",ye,"left>init, right>object, body>body"),o("ForOfStatement",Ce,"left>init, right>object, body>body, await=await"),o("AwaitExpression",mn,"argument>expression"),o("YieldExpression",En,"argument>expression, delegate=is_star"),o("DebuggerStatement",le),o("VariableDeclarator",ut,"id>name, init>value"),o("CatchClause",Je,"param>argname, body%body"),o("ThisExpression",Jt),o("Super",en),o("BinaryExpression",Dt,"operator=operator, left>left, right>right"),o("LogicalExpression",Dt,"operator=operator, left>left, right>right"),o("AssignmentExpression",vt,"operator=operator, left>left, right>right"),o("ConditionalExpression",gt,"test>condition, consequent>consequent, alternate>alternative"),o("NewExpression",lt,"callee>expression, arguments@args"),o("CallExpression",ct,"callee>expression, arguments@args"),u(Me,function(e){return _("Program",e)}),u(Re,function(e,t){return{type:f()?"RestElement":"SpreadElement",argument:l(e.expression)}}),u(Ve,function(e){return{type:"TaggedTemplateExpression",tag:l(e.prefix),quasi:l(e.template_string)}}),u(Pe,function(e){for(var t=[],n=[],i=0;i{const n=Bn({[t]:{0:0}});n&&(e[t]=n)}),e}});