react-undraw-illustrations
Version:
unDraw: MIT licensed illustrations for every project you can imagine and create...for React!
1 lines • 11.6 MB
JavaScript
!function(e){var t=window.webpackJsonp;window.webpackJsonp=function webpackJsonpCallback(a,r,n){for(var c,s,d=0,f=[];d<a.length;d++)s=a[d],l[s]&&f.push(l[s][0]),l[s]=0;for(c in r)Object.prototype.hasOwnProperty.call(r,c)&&(e[c]=r[c]);for(t&&t(a,r,n);f.length;)f.shift()()};var a={},l={1:0};function __webpack_require__(t){if(a[t])return a[t].exports;var l=a[t]={i:t,l:!1,exports:{}};return e[t].call(l.exports,l,l.exports,__webpack_require__),l.l=!0,l.exports}__webpack_require__.e=function requireEnsure(e){var t=l[e];if(0===t)return new Promise(function(e){e()});if(t)return t[2];var a=new Promise(function(a,r){t=l[e]=[a,r]});t[2]=a;var r=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,__webpack_require__.nc&&n.setAttribute("nonce",__webpack_require__.nc),n.src=__webpack_require__.p+"build/"+({}[e]||e)+"."+{0:"5f138c50"}[e]+".js";var c=setTimeout(onScriptComplete,12e4);function onScriptComplete(){n.onerror=n.onload=null,clearTimeout(c);var t=l[e];0!==t&&(t&&t[1](new Error("Loading chunk "+e+" failed.")),l[e]=void 0)}return n.onerror=n.onload=onScriptComplete,r.appendChild(n),a},__webpack_require__.m=e,__webpack_require__.c=a,__webpack_require__.d=function(e,t,a){__webpack_require__.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:a})},__webpack_require__.n=function(e){var t=e&&e.__esModule?function getDefault(){return e.default}:function getModuleExports(){return e};return __webpack_require__.d(t,"a",t),t},__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},__webpack_require__.p="",__webpack_require__.oe=function(e){throw console.error(e),e},__webpack_require__(__webpack_require__.s=0)}({"./node_modules/base64-js/index.js":function(e,t,a){"use strict";t.byteLength=function byteLength(e){var t=getLens(e),a=t[0],l=t[1];return 3*(a+l)/4-l},t.toByteArray=function toByteArray(e){for(var t,a=getLens(e),l=a[0],c=a[1],s=new n(function _byteLength(e,t,a){return 3*(t+a)/4-a}(0,l,c)),d=0,f=c>0?l-4:l,i=0;i<f;i+=4)t=r[e.charCodeAt(i)]<<18|r[e.charCodeAt(i+1)]<<12|r[e.charCodeAt(i+2)]<<6|r[e.charCodeAt(i+3)],s[d++]=t>>16&255,s[d++]=t>>8&255,s[d++]=255&t;2===c&&(t=r[e.charCodeAt(i)]<<2|r[e.charCodeAt(i+1)]>>4,s[d++]=255&t);1===c&&(t=r[e.charCodeAt(i)]<<10|r[e.charCodeAt(i+1)]<<4|r[e.charCodeAt(i+2)]>>2,s[d++]=t>>8&255,s[d++]=255&t);return s},t.fromByteArray=function fromByteArray(e){for(var t,a=e.length,r=a%3,n=[],c=0,s=a-r;c<s;c+=16383)n.push(encodeChunk(e,c,c+16383>s?s:c+16383));1===r?(t=e[a-1],n.push(l[t>>2]+l[t<<4&63]+"==")):2===r&&(t=(e[a-2]<<8)+e[a-1],n.push(l[t>>10]+l[t>>4&63]+l[t<<2&63]+"="));return n.join("")};for(var l=[],r=[],n="undefined"!=typeof Uint8Array?Uint8Array:Array,c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,d=c.length;s<d;++s)l[s]=c[s],r[c.charCodeAt(s)]=s;function getLens(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var a=e.indexOf("=");return-1===a&&(a=t),[a,a===t?0:4-a%4]}function encodeChunk(e,t,a){for(var r,n,c=[],s=t;s<a;s+=3)r=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),c.push(l[(n=r)>>18&63]+l[n>>12&63]+l[n>>6&63]+l[63&n]);return c.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},"./node_modules/buble/dist/buble-browser.es.js":function(e,t,a){"use strict";(function(e){a.d(t,"a",function(){return transform});var l=a("./node_modules/magic-string/dist/magic-string.es.js"),r=a("./node_modules/buble/node_modules/acorn/dist/acorn.es.js"),n={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"},c=/^[\da-fA-F]+$/,s=/^\d+$/,d="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};function createCommonjsModule(e,t){return e(t={exports:{}},t.exports),t.exports}var f=createCommonjsModule(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function injectDynamicImport(e){var t=e.tokTypes;return t._import.startsExpr=!0,e.plugins.dynamicImport=function dynamicImportPlugin(e){e.extend("parseStatement",function(e){return function parseStatement(){var a=this.startNode();if(this.type===t._import&&function peekNext(){return this.input[this.pos]}.call(this)===t.parenL.label){var l=this.parseExpression();return this.parseExpressionStatement(a,l)}for(var r=arguments.length,n=Array(r),c=0;c<r;c++)n[c]=arguments[c];return e.apply(this,n)}}),e.extend("parseExprAtom",function(e){return function parseExprAtom(l){return this.type===t._import?function parseDynamicImport(){var e=this.startNode();return this.next(),this.type!==t.parenL&&this.unexpected(),this.finishNode(e,a)}.call(this):e.call(this,l)}})},e};var a=t.DynamicImportKey="Import"}),i=function unwrapExports(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(f);f.DynamicImportKey;function toJSON(e){var t={};return Object.keys(e).forEach(function(a){"parent"!==a&&"program"!==a&&"keys"!==a&&"__wrapped"!==a&&(Array.isArray(e[a])?t[a]=e[a].map(toJSON):e[a]&&e[a].toJSON?t[a]=e[a].toJSON():t[a]=e[a])}),t}var o=function Node(){};function extractNames(e){var t=[];return m[e.type](t,e),t}o.prototype.ancestor=function ancestor(e){for(var t=this;e--;)if(!(t=t.parent))return null;return t},o.prototype.contains=function contains(e){for(;e;){if(e===this)return!0;e=e.parent}return!1},o.prototype.findLexicalBoundary=function findLexicalBoundary(){return this.parent.findLexicalBoundary()},o.prototype.findNearest=function findNearest(e){return"string"==typeof e&&(e=new RegExp("^"+e+"$")),e.test(this.type)?this:this.parent.findNearest(e)},o.prototype.unparenthesizedParent=function unparenthesizedParent(){for(var e=this.parent;e&&"ParenthesizedExpression"===e.type;)e=e.parent;return e},o.prototype.unparenthesize=function unparenthesize(){for(var e=this;"ParenthesizedExpression"===e.type;)e=e.expression;return e},o.prototype.findScope=function findScope(e){return this.parent.findScope(e)},o.prototype.getIndentation=function getIndentation(){return this.parent.getIndentation()},o.prototype.initialise=function initialise(e){for(var t=0,a=this.keys;t<a.length;t+=1){var l=this[a[t]];Array.isArray(l)?l.forEach(function(t){return t&&t.initialise(e)}):l&&"object"==typeof l&&l.initialise(e)}},o.prototype.toJSON=function toJSON$1(){return toJSON(this)},o.prototype.toString=function toString(){return this.program.magicString.original.slice(this.start,this.end)},o.prototype.transpile=function transpile(e,t){for(var a=0,l=this.keys;a<l.length;a+=1){var r=this[l[a]];Array.isArray(r)?r.forEach(function(a){return a&&a.transpile(e,t)}):r&&"object"==typeof r&&r.transpile(e,t)}};var m={Identifier:function Identifier(e,t){e.push(t)},ObjectPattern:function ObjectPattern(e,t){for(var a=0,l=t.properties;a<l.length;a+=1){var r=l[a];m[r.type](e,r)}},Property:function Property(e,t){m[t.value.type](e,t.value)},ArrayPattern:function ArrayPattern(e,t){for(var a=0,l=t.elements;a<l.length;a+=1){var r=l[a];r&&m[r.type](e,r)}},RestElement:function RestElement(e,t){m[t.argument.type](e,t.argument)},AssignmentPattern:function AssignmentPattern(e,t){m[t.left.type](e,t.left)}},u=Object.create(null);function Scope(e){e=e||{},this.parent=e.parent,this.isBlockScope=!!e.block,this.createDeclarationCallback=e.declare;for(var t=this;t.isBlockScope;)t=t.parent;this.functionScope=t,this.identifiers=[],this.declarations=Object.create(null),this.references=Object.create(null),this.blockScopedDeclarations=this.isBlockScope?null:Object.create(null),this.aliases=Object.create(null)}function locate(e,t){var a,l=e.split("\n"),r=l.length,n=0;for(a=0;a<r;a+=1){var c=n+l[a].length+1;if(c>t)return{line:a+1,column:t-n,char:a};n=c}throw new Error("Could not determine location of character")}function repeat(e,t){for(var a="";t--;)a+=e;return a}function getSnippet(e,t,a){void 0===a&&(a=1);var l=Math.max(t.line-5,0),r=t.line,n=String(r).length,c=e.split("\n").slice(l,r),s=c[c.length-1].slice(0,t.column).replace(/\t/g," ").length,d=c.map(function(e,t){return function pad(e,t){var a=String(e);return a+repeat(" ",t-a.length)}(t+l+1,n)+" : "+e.replace(/\t/g," ")}).join("\n");return d+="\n"+repeat(" ",n+3+s)+repeat("^",a)}"do if in for let new try var case else enum eval null this true void with await break catch class const false super throw while yield delete export import public return static switch typeof default extends finally package private continue debugger function arguments interface protected implements instanceof".split(" ").forEach(function(e){return u[e]=!0}),Scope.prototype={addDeclaration:function addDeclaration(e,t){for(var a=0,l=extractNames(e);a<l.length;a+=1){var r=l[a],n=r.name,c={name:n,node:r,kind:t,instances:[]};this.declarations[n]=c,this.isBlockScope&&(this.functionScope.blockScopedDeclarations[n]||(this.functionScope.blockScopedDeclarations[n]=[]),this.functionScope.blockScopedDeclarations[n].push(c))}},addReference:function addReference(e){this.consolidated?this.consolidateReference(e):this.identifiers.push(e)},consolidate:function consolidate(){for(var e=0;e<this.identifiers.length;e+=1){var t=this.identifiers[e];this.consolidateReference(t)}this.consolidated=!0},consolidateReference:function consolidateReference(e){var t=this.declarations[e.name];t?t.instances.push(e):(this.references[e.name]=!0,this.parent&&this.parent.addReference(e))},contains:function contains(e){return this.declarations[e]||!!this.parent&&this.parent.contains(e)},createIdentifier:function createIdentifier(e){"number"==typeof e&&(e=e.toString());for(var t=e=e.replace(/\s/g,"").replace(/\[([^\]]+)\]/g,"_$1").replace(/[^a-zA-Z0-9_$]/g,"_").replace(/_{2,}/,"_"),a=1;this.declarations[t]||this.references[t]||this.aliases[t]||t in u;)t=e+"$"+a++;return this.aliases[t]=!0,t},createDeclaration:function createDeclaration(e){var t=this.createIdentifier(e);return this.createDeclarationCallback(t),t},findDeclaration:function findDeclaration(e){return this.declarations[e]||this.parent&&this.parent.findDeclaration(e)},resolveName:function resolveName(e){var t=this.findDeclaration(e);return t?t.name:e}};var p=function(e){function CompileError(t,a){if(e.call(this,t),this.name="CompileError",a){var l=a.program.magicString.original,r=locate(l,a.start);this.message=t+" ("+r.line+":"+r.column+")",this.stack=(new e).stack.replace(new RegExp(".+new "+this.name+".+\\n","m"),""),this.loc=r,this.snippet=getSnippet(l,r,a.end-a.start)}}return e&&(CompileError.__proto__=e),CompileError.prototype=Object.create(e&&e.prototype),CompileError.prototype.constructor=CompileError,CompileError.prototype.toString=function toString(){return this.name+": "+this.message+"\n"+this.snippet},CompileError}(Error);function findIndex(e,t){for(var a=0;a<e.length;a+=1)if(t(e[a],a))return a;return-1}var h={Identifier:destructureIdentifier,AssignmentPattern:function destructureAssignmentPattern(e,t,a,l,r,n,c){var s="Identifier"===l.left.type,d=s?l.left.name:r;n||c.push(function(t,a,r){e.prependRight(l.left.end,a+"if ( "+d+" === void 0 ) "+d),e.move(l.left.end,l.right.end,t),e.appendLeft(l.right.end,r)});s||destructure(e,t,a,l.left,r,n,c)},ArrayPattern:function destructureArrayPattern(e,t,a,l,r,n,c){var s=l.start;l.elements.forEach(function(l,d){l&&("RestElement"===l.type?handleProperty(e,t,a,s,l.argument,r+".slice("+d+")",n,c):handleProperty(e,t,a,s,l,r+"["+d+"]",n,c),s=l.end)}),e.remove(s,l.end)},ObjectPattern:destructureObjectPattern};function destructure(e,t,a,l,r,n,c){h[l.type](e,t,a,l,r,n,c)}function destructureIdentifier(e,t,a,l,r,n,c){c.push(function(t,c,s){e.overwrite(l.start,l.end,(n?c:c+"var ")+a(l)+" = "+r+s),e.move(l.start,l.end,t)})}function destructureObjectPattern(e,t,a,l,r,n,c){var s=this,d=l.start,f=[];l.properties.forEach(function(l){var i,o;if("Property"===l.type){var m=l.computed||"Identifier"!==l.key.type,u=m?e.slice(l.key.start,l.key.end):l.key.name;i=m?r+"["+u+"]":r+"."+u,o=l.value,f.push(m?u:'"'+u+'"')}else{if("RestElement"!==l.type)throw new p(s,"Unexpected node of type "+l.type+" in object pattern");o=l.argument,i=t("rest"),c.push(function(t,a,c){var s=l.program.getObjectWithoutPropertiesHelper(e);e.overwrite(l.start,d=l.argument.start,(n?a:a+"var ")+i+" = "+s+"( "+r+", ["+f.join(", ")+"] )"+c),e.move(l.start,d,t)})}handleProperty(e,t,a,d,o,i,n,c),d=l.end}),e.remove(d,l.end)}function handleProperty(e,t,a,l,r,n,c,s){switch(r.type){case"Identifier":e.remove(l,r.start),destructureIdentifier(e,0,a,r,n,c,s);break;case"MemberExpression":e.remove(l,r.start),function destructureMemberExpression(e,t,a,l,r,n,c){c.push(function(t,a,c){e.prependRight(l.start,n?a:a+"var "),e.appendLeft(l.end," = "+r+c),e.move(l.start,l.end,t)})}(e,0,0,r,n,!0,s);break;case"AssignmentPattern":var d,f="Identifier"===r.left.type;d=f?a(r.left):t(n),s.push(function(t,a,l){c?(e.prependRight(r.right.start,d+" = "+n+", "+d+" = "+d+" === void 0 ? "),e.appendLeft(r.right.end," : "+d+l)):(e.prependRight(r.right.start,a+"var "+d+" = "+n+"; if ( "+d+" === void 0 ) "+d+" = "),e.appendLeft(r.right.end,l)),e.move(r.right.start,r.right.end,t)}),f?e.remove(l,r.right.start):(e.remove(l,r.left.start),e.remove(r.left.end,r.right.start),handleProperty(e,t,a,l,r.left,d,c,s));break;case"ObjectPattern":e.remove(l,l=r.start);var i=n;r.properties.length>1&&(i=t(n),s.push(function(t,a,s){e.prependRight(r.start,(c?"":a+"var ")+i+" = "),e.overwrite(r.start,l=r.start+1,n),e.appendLeft(l,s),e.overwrite(r.start,l=r.start+1,(c?"":a+"var ")+i+" = "+n+s),e.move(r.start,l,t)})),destructureObjectPattern(e,t,a,r,i,c,s);break;case"ArrayPattern":if(e.remove(l,l=r.start),r.elements.filter(Boolean).length>1){var o=t(n);s.push(function(t,a,s){e.prependRight(r.start,(c?"":a+"var ")+o+" = "),e.overwrite(r.start,l=r.start+1,n,{contentOnly:!0}),e.appendLeft(l,s),e.move(r.start,l,t)}),r.elements.forEach(function(r,n){r&&("RestElement"===r.type?handleProperty(e,t,a,l,r.argument,o+".slice("+n+")",c,s):handleProperty(e,t,a,l,r,o+"["+n+"]",c,s),l=r.end)})}else{var m=findIndex(r.elements,Boolean),u=r.elements[m];"RestElement"===u.type?handleProperty(e,t,a,l,u.argument,n+".slice("+m+")",c,s):handleProperty(e,t,a,l,u,n+"["+m+"]",c,s),l=u.end}e.remove(l,r.end);break;default:throw new Error("Unexpected node type in destructuring ("+r.type+")")}}var y=function(e){function BlockStatement(){e.apply(this,arguments)}return e&&(BlockStatement.__proto__=e),BlockStatement.prototype=Object.create(e&&e.prototype),BlockStatement.prototype.constructor=BlockStatement,BlockStatement.prototype.createScope=function createScope(){var e=this;this.parentIsFunction=/Function/.test(this.parent.type),this.isFunctionBlock=this.parentIsFunction||"Root"===this.parent.type,this.scope=new Scope({block:!this.isFunctionBlock,parent:this.parent.findScope(!1),declare:function(t){return e.createdDeclarations.push(t)}}),this.parentIsFunction&&this.parent.params.forEach(function(t){e.scope.addDeclaration(t,"param")})},BlockStatement.prototype.initialise=function initialise(e){this.thisAlias=null,this.argumentsAlias=null,this.defaultParameters=[],this.createdDeclarations=[],this.scope||this.createScope(),this.body.forEach(function(t){return t.initialise(e)}),this.scope.consolidate()},BlockStatement.prototype.findLexicalBoundary=function findLexicalBoundary(){return"Program"===this.type?this:/^Function/.test(this.parent.type)?this:this.parent.findLexicalBoundary()},BlockStatement.prototype.findScope=function findScope(e){return e&&!this.isFunctionBlock?this.parent.findScope(e):this.scope},BlockStatement.prototype.getArgumentsAlias=function getArgumentsAlias(){return this.argumentsAlias||(this.argumentsAlias=this.scope.createIdentifier("arguments")),this.argumentsAlias},BlockStatement.prototype.getArgumentsArrayAlias=function getArgumentsArrayAlias(){return this.argumentsArrayAlias||(this.argumentsArrayAlias=this.scope.createIdentifier("argsArray")),this.argumentsArrayAlias},BlockStatement.prototype.getThisAlias=function getThisAlias(){return this.thisAlias||(this.thisAlias=this.scope.createIdentifier("this")),this.thisAlias},BlockStatement.prototype.getIndentation=function getIndentation(){if(void 0===this.indentation){for(var e=this.program.magicString.original,t=this.synthetic||!this.body.length,a=t?this.start:this.body[0].start;a&&"\n"!==e[a];)a-=1;for(this.indentation="";;){var l=e[a+=1];if(" "!==l&&"\t"!==l)break;this.indentation+=l}for(var r=this.program.magicString.getIndentString(),n=this.parent;n;)"constructor"!==n.kind||n.parent.parent.superClass||(this.indentation=this.indentation.replace(r,"")),n=n.parent;t&&(this.indentation+=r)}return this.indentation},BlockStatement.prototype.transpile=function transpile(t,a){var l,r=this,n=this.getIndentation(),c=[];if(this.argumentsAlias&&c.push(function(e,a,l){var n=a+"var "+r.argumentsAlias+" = arguments"+l;t.appendLeft(e,n)}),this.thisAlias&&c.push(function(e,a,l){var n=a+"var "+r.thisAlias+" = this"+l;t.appendLeft(e,n)}),this.argumentsArrayAlias&&c.push(function(e,a,l){var c=r.scope.createIdentifier("i"),s=a+"var "+c+" = arguments.length, "+r.argumentsArrayAlias+" = Array("+c+");\n"+n+"while ( "+c+"-- ) "+r.argumentsArrayAlias+"["+c+"] = arguments["+c+"]"+l;t.appendLeft(e,s)}),/Function/.test(this.parent.type)?this.transpileParameters(this.parent.params,t,a,n,c):"CatchClause"===this.parent.type&&this.transpileParameters([this.parent.param],t,a,n,c),a.letConst&&this.isFunctionBlock&&this.transpileBlockScopedIdentifiers(t),e.prototype.transpile.call(this,t,a),this.createdDeclarations.length&&c.push(function(e,a,l){var n=a+"var "+r.createdDeclarations.join(", ")+l;t.appendLeft(e,n)}),this.synthetic)if("ArrowFunctionExpression"===this.parent.type){var s=this.body[0];c.length?(t.appendLeft(this.start,"{").prependRight(this.end,this.parent.getIndentation()+"}"),t.prependRight(s.start,"\n"+n+"return "),t.appendLeft(s.end,";\n")):a.arrow&&(t.prependRight(s.start,"{ return "),t.appendLeft(s.end,"; }"))}else c.length&&t.prependRight(this.start,"{").appendLeft(this.end,"}");l=function isUseStrict(e){return!!e&&"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"use strict"===e.expression.value}(this.body[0])?this.body[0].end:this.synthetic||"Root"===this.parent.type?this.start:this.start+1;var d="\n"+n,f=";";c.forEach(function(e,t){t===c.length-1&&(f=";\n"),e(l,d,f)})},BlockStatement.prototype.transpileParameters=function transpileParameters(e,t,a,l,r){var n=this;e.forEach(function(c){if("AssignmentPattern"===c.type&&"Identifier"===c.left.type)a.defaultParameter&&r.push(function(e,a,l){var r=a+"if ( "+c.left.name+" === void 0 ) "+c.left.name;t.prependRight(c.left.end,r).move(c.left.end,c.right.end,e).appendLeft(c.right.end,l)});else if("RestElement"===c.type)a.spreadRest&&r.push(function(a,r,s){var d=e[e.length-2];if(d)t.remove(d?d.end:c.start,c.end);else{for(var f=c.start,i=c.end;/\s/.test(t.original[f-1]);)f-=1;for(;/\s/.test(t.original[i]);)i+=1;t.remove(f,i)}var o=c.argument.name,m=n.scope.createIdentifier("len"),u=e.length-1;u?t.prependRight(a,r+"var "+o+" = [], "+m+" = arguments.length - "+u+";\n"+l+"while ( "+m+"-- > 0 ) "+o+"[ "+m+" ] = arguments[ "+m+" + "+u+" ]"+s):t.prependRight(a,r+"var "+o+" = [], "+m+" = arguments.length;\n"+l+"while ( "+m+"-- ) "+o+"[ "+m+" ] = arguments[ "+m+" ]"+s)});else if("Identifier"!==c.type&&a.parameterDestructuring){var s=n.scope.createIdentifier("ref");destructure(t,function(e){return n.scope.createIdentifier(e)},function(e){var t=e.name;return n.scope.resolveName(t)},c,s,!1,r),t.prependRight(c.start,s)}})},BlockStatement.prototype.transpileBlockScopedIdentifiers=function transpileBlockScopedIdentifiers(e){var t=this;Object.keys(this.scope.blockScopedDeclarations).forEach(function(a){for(var l=0,r=t.scope.blockScopedDeclarations[a];l<r.length;l+=1){var n=r[l],c=!1;if("for.let"===n.kind){var s=n.node.findNearest("ForStatement");if(s.shouldRewriteAsFunction){var d=t.scope.createIdentifier(a),f=s.reassigned[a]?t.scope.createIdentifier(a):a;n.name=d,e.overwrite(n.node.start,n.node.end,d,{storeName:!0}),s.aliases[a]={outer:d,inner:f};for(var i=0,o=n.instances;i<o.length;i+=1){var m=o[i],u=s.body.contains(m)?f:d;a!==u&&e.overwrite(m.start,m.end,u,{storeName:!0})}c=!0}}if(!c){var p=t.scope.createIdentifier(a);if(a!==p){n.name=p,e.overwrite(n.node.start,n.node.end,p,{storeName:!0});for(var h=0,y=n.instances;h<y.length;h+=1){var E=y[h];E.rewritten=!0,e.overwrite(E.start,E.end,p,{storeName:!0})}}}}})},BlockStatement}(o);function isArguments(e){return"Identifier"===e.type&&"arguments"===e.name}function spread(e,t,a,l,r){for(var n=t.length,c=-1;n--;){var s=t[n];s&&"SpreadElement"===s.type&&(isArguments(s.argument)&&e.overwrite(s.argument.start,s.argument.end,l),c=n)}if(-1===c)return!1;if(r){for(n=0;n<t.length;n+=1){var d=t[n];"SpreadElement"===d.type?e.remove(d.start,d.argument.start):(e.prependRight(d.start,"["),e.prependRight(d.end,"]"))}return!0}var f=t[c],i=t[c-1];for(i?e.overwrite(i.end,f.start," ].concat( "):(e.remove(a,f.start),e.overwrite(f.end,t[1].start,".concat( ")),n=c;n<t.length;n+=1)(f=t[n])&&("SpreadElement"===f.type?e.remove(f.start,f.argument.start):(e.appendLeft(f.start,"["),e.appendLeft(f.end,"]")));return!0}var E=function(e){function ArrayExpression(){e.apply(this,arguments)}return e&&(ArrayExpression.__proto__=e),ArrayExpression.prototype=Object.create(e&&e.prototype),ArrayExpression.prototype.constructor=ArrayExpression,ArrayExpression.prototype.initialise=function initialise(t){if(t.spreadRest&&this.elements.length)for(var a=this.findLexicalBoundary(),l=this.elements.length;l--;){var r=this.elements[l];r&&"SpreadElement"===r.type&&isArguments(r.argument)&&(this.argumentsArrayAlias=a.getArgumentsArrayAlias())}e.prototype.initialise.call(this,t)},ArrayExpression.prototype.transpile=function transpile(t,a){if(e.prototype.transpile.call(this,t,a),a.spreadRest){if(this.elements.length){var l=this.elements[this.elements.length-1];l&&/\s*,/.test(t.original.slice(l.end,this.end))&&t.overwrite(l.end,this.end-1," ")}if(1===this.elements.length){var r=this.elements[0];r&&"SpreadElement"===r.type&&(isArguments(r.argument)?t.overwrite(this.start,this.end,"[].concat( "+this.argumentsArrayAlias+" )"):(t.overwrite(this.start,r.argument.start,"[].concat( "),t.overwrite(r.end,this.end," )")))}else{spread(t,this.elements,this.start,this.argumentsArrayAlias)&&t.overwrite(this.end-1,this.end,")")}}},ArrayExpression}(o);function removeTrailingComma(e,t){for(;")"!==e.original[t];){if(","===e.original[t])return void e.remove(t,t+1);"/"===e.original[t]&&(t=e.original.indexOf("/"===e.original[t+1]?"\n":"*/",t)+1),t+=1}}var x=function(e){function ArrowFunctionExpression(){e.apply(this,arguments)}return e&&(ArrowFunctionExpression.__proto__=e),ArrowFunctionExpression.prototype=Object.create(e&&e.prototype),ArrowFunctionExpression.prototype.constructor=ArrowFunctionExpression,ArrowFunctionExpression.prototype.initialise=function initialise(t){this.body.createScope(),e.prototype.initialise.call(this,t)},ArrowFunctionExpression.prototype.transpile=function transpile(t,a){var l=1===this.params.length&&this.start===this.params[0].start;if(a.arrow||this.needsArguments(a)){for(var r=this.body.start;"="!==t.original[r];)r-=1;t.remove(r,this.body.start),e.prototype.transpile.call(this,t,a),l&&(t.prependRight(this.params[0].start,"("),t.appendLeft(this.params[0].end,")")),this.parent&&"ExpressionStatement"===this.parent.type?t.prependRight(this.start,"!function"):t.prependRight(this.start,"function ")}else e.prototype.transpile.call(this,t,a);a.trailingFunctionCommas&&this.params.length&&!l&&removeTrailingComma(t,this.params[this.params.length-1].end)},ArrowFunctionExpression.prototype.needsArguments=function needsArguments(e){return e.spreadRest&&this.params.filter(function(e){return"RestElement"===e.type}).length>0},ArrowFunctionExpression}(o);function checkConst(e,t){var a=t.findDeclaration(e.name);if(a&&"const"===a.kind)throw new p(e.name+" is read-only",e)}var g=function(e){function AssignmentExpression(){e.apply(this,arguments)}return e&&(AssignmentExpression.__proto__=e),AssignmentExpression.prototype=Object.create(e&&e.prototype),AssignmentExpression.prototype.constructor=AssignmentExpression,AssignmentExpression.prototype.initialise=function initialise(t){if("Identifier"===this.left.type){var a=this.findScope(!1).findDeclaration(this.left.name),l=a&&a.node.ancestor(3);l&&"ForStatement"===l.type&&l.body.contains(this)&&(l.reassigned[this.left.name]=!0)}e.prototype.initialise.call(this,t)},AssignmentExpression.prototype.transpile=function transpile(t,a){"Identifier"===this.left.type&&checkConst(this.left,this.findScope(!1)),"**="===this.operator&&a.exponentiation?this.transpileExponentiation(t,a):/Pattern/.test(this.left.type)&&a.destructuring&&this.transpileDestructuring(t,a),e.prototype.transpile.call(this,t,a)},AssignmentExpression.prototype.transpileDestructuring=function transpileDestructuring(e){var t=this,a=this.findScope(!0),l=this.findScope(!1),r=a.createDeclaration("assign");e.appendRight(this.left.end,"("+r),e.appendLeft(this.right.end,", ");var n=[];destructure(e,function(e){return a.createDeclaration(e)},function(e){var t=l.resolveName(e.name);return checkConst(e,l),t},this.left,r,!0,n);var c=", ";n.forEach(function(e,a){a===n.length-1&&(c=""),e(t.end,"",c)}),"ExpressionStatement"===this.unparenthesizedParent().type?e.prependRight(this.end,")"):e.appendRight(this.end,", "+r+")")},AssignmentExpression.prototype.transpileExponentiation=function transpileExponentiation(e){for(var t,a=this.findScope(!1),l=this.left.end;"*"!==e.original[l];)l+=1;e.remove(l,l+2);var r=this.left.unparenthesize();if("Identifier"===r.type)t=a.resolveName(r.name);else if("MemberExpression"===r.type){var n,c,s=!1,d=!1,f=this.findNearest(/(?:Statement|Declaration)$/),i=f.getIndentation();"Identifier"===r.property.type?c=r.computed?a.resolveName(r.property.name):r.property.name:(c=a.createDeclaration("property"),d=!0),"Identifier"===r.object.type?n=a.resolveName(r.object.name):(n=a.createDeclaration("object"),s=!0),r.start===f.start?s&&d?(e.prependRight(f.start,n+" = "),e.overwrite(r.object.end,r.property.start,";\n"+i+c+" = "),e.overwrite(r.property.end,r.end,";\n"+i+n+"["+c+"]")):s?(e.prependRight(f.start,n+" = "),e.appendLeft(r.object.end,";\n"+i),e.appendLeft(r.object.end,n)):d&&(e.prependRight(r.property.start,c+" = "),e.appendLeft(r.property.end,";\n"+i),e.move(r.property.start,r.property.end,this.start),e.appendLeft(r.object.end,"["+c+"]"),e.remove(r.object.end,r.property.start),e.remove(r.property.end,r.end)):(s&&d?(e.prependRight(r.start,"( "+n+" = "),e.overwrite(r.object.end,r.property.start,", "+c+" = "),e.overwrite(r.property.end,r.end,", "+n+"["+c+"]")):s?(e.prependRight(r.start,"( "+n+" = "),e.appendLeft(r.object.end,", "+n)):d&&(e.prependRight(r.property.start,"( "+c+" = "),e.appendLeft(r.property.end,", "),e.move(r.property.start,r.property.end,r.start),e.overwrite(r.object.end,r.property.start,"["+c+"]"),e.remove(r.property.end,r.end)),d&&e.appendLeft(this.end," )")),t=n+(r.computed||d?"["+c+"]":"."+c)}e.prependRight(this.right.start,"Math.pow( "+t+", "),e.appendLeft(this.right.end," )")},AssignmentExpression}(o),b=function(e){function BinaryExpression(){e.apply(this,arguments)}return e&&(BinaryExpression.__proto__=e),BinaryExpression.prototype=Object.create(e&&e.prototype),BinaryExpression.prototype.constructor=BinaryExpression,BinaryExpression.prototype.transpile=function transpile(t,a){"**"===this.operator&&a.exponentiation&&(t.prependRight(this.start,"Math.pow( "),t.overwrite(this.left.end,this.right.start,", "),t.appendLeft(this.end," )")),e.prototype.transpile.call(this,t,a)},BinaryExpression}(o),M=/(?:For(?:In|Of)?|While)Statement/,Z=function(e){function BreakStatement(){e.apply(this,arguments)}return e&&(BreakStatement.__proto__=e),BreakStatement.prototype=Object.create(e&&e.prototype),BreakStatement.prototype.constructor=BreakStatement,BreakStatement.prototype.initialise=function initialise(){var e=this.findNearest(M),t=this.findNearest("SwitchCase");e&&(!t||e.depth>t.depth)&&(e.canBreak=!0,this.loop=e)},BreakStatement.prototype.transpile=function transpile(e){if(this.loop&&this.loop.shouldRewriteAsFunction){if(this.label)throw new p("Labels are not currently supported in a loop with locally-scoped variables",this);e.overwrite(this.start,this.start+5,"return 'break'")}},BreakStatement}(o),C=function(e){function CallExpression(){e.apply(this,arguments)}return e&&(CallExpression.__proto__=e),CallExpression.prototype=Object.create(e&&e.prototype),CallExpression.prototype.constructor=CallExpression,CallExpression.prototype.initialise=function initialise(t){if(t.spreadRest&&this.arguments.length>1)for(var a=this.findLexicalBoundary(),l=this.arguments.length;l--;){var r=this.arguments[l];"SpreadElement"===r.type&&isArguments(r.argument)&&(this.argumentsArrayAlias=a.getArgumentsArrayAlias())}e.prototype.initialise.call(this,t)},CallExpression.prototype.transpile=function transpile(t,a){if(a.spreadRest&&this.arguments.length){var l,r=!1,n=this.arguments[0];if(1===this.arguments.length?"SpreadElement"===n.type&&(t.remove(n.start,n.argument.start),r=!0):r=spread(t,this.arguments,n.start,this.argumentsArrayAlias),r){var c=null;if("Super"===this.callee.type?c=this.callee:"MemberExpression"===this.callee.type&&"Super"===this.callee.object.type&&(c=this.callee.object),c||"MemberExpression"!==this.callee.type)l="void 0";else if("Identifier"===this.callee.object.type)l=this.callee.object.name;else{l=this.findScope(!0).createDeclaration("ref");var s=this.callee.object;t.prependRight(s.start,"("+l+" = "),t.appendLeft(s.end,")")}t.appendLeft(this.callee.end,".apply"),c?(c.noCall=!0,this.arguments.length>1&&("SpreadElement"!==n.type&&t.prependRight(n.start,"[ "),t.appendLeft(this.arguments[this.arguments.length-1].end," )"))):1===this.arguments.length?t.prependRight(n.start,l+", "):("SpreadElement"===n.type?t.appendLeft(n.start,l+", "):t.appendLeft(n.start,l+", [ "),t.appendLeft(this.arguments[this.arguments.length-1].end," )"))}}a.trailingFunctionCommas&&this.arguments.length&&removeTrailingComma(t,this.arguments[this.arguments.length-1].end),e.prototype.transpile.call(this,t,a)},CallExpression}(o),w=function(e){function ClassBody(){e.apply(this,arguments)}return e&&(ClassBody.__proto__=e),ClassBody.prototype=Object.create(e&&e.prototype),ClassBody.prototype.constructor=ClassBody,ClassBody.prototype.transpile=function transpile(t,a,l,r){var n=this;if(a.classes){var c=this.parent.name,s=t.getIndentString(),d=this.getIndentation()+(l?s:""),f=d+s,i=findIndex(this.body,function(e){return"constructor"===e.kind}),o=this.body[i],m="",p="";if(this.body.length?(t.remove(this.start,this.body[0].start),t.remove(this.body[this.body.length-1].end,this.end)):t.remove(this.start,this.end),o){o.value.body.isConstructorBody=!0;var h=this.body[i-1],y=this.body[i+1];i>0&&(t.remove(h.end,o.start),t.move(o.start,y?y.start:this.end-1,this.body[0].start)),l||t.appendLeft(o.end,";")}var E=!1!==this.program.options.namedFunctionExpressions,x=E||this.parent.superClass||"ClassDeclaration"!==this.parent.type;if(this.parent.superClass){var g="if ( "+r+" ) "+c+".__proto__ = "+r+";\n"+d+c+".prototype = Object.create( "+r+" && "+r+".prototype );\n"+d+c+".prototype.constructor = "+c+";";if(o)m+="\n\n"+d+g;else m+=(g="function "+c+" () {"+(r?"\n"+f+r+".apply(this, arguments);\n"+d+"}":"}")+(l?"":";")+(this.body.length?"\n\n"+d:"")+g)+"\n\n"+d}else if(!o){var b="function "+(x?c+" ":"")+"() {}";"ClassDeclaration"===this.parent.type&&(b+=";"),this.body.length&&(b+="\n\n"+d),m+=b}var M,Z,C=this.findScope(!1),w=[],v=[];if(this.body.forEach(function(e,a){if("constructor"!==e.kind){if(e.static){var l=" "==t.original[e.start+6]?7:6;t.remove(e.start,e.start+l)}var r,s="method"!==e.kind,f=e.key.name;(u[f]||e.value.body.scope.references[f])&&(f=C.createIdentifier(f));var o=!1;if(e.computed||"Literal"!==e.key.type||(o=!0,e.computed=!0),s){if(e.computed)throw new Error("Computed accessor properties are not currently supported");t.remove(e.start,e.key.start),e.static?(~v.indexOf(e.key.name)||v.push(e.key.name),Z||(Z=C.createIdentifier("staticAccessors")),r=""+Z):(~w.indexOf(e.key.name)||w.push(e.key.name),M||(M=C.createIdentifier("prototypeAccessors")),r=""+M)}else r=e.static?""+c:c+".prototype";e.computed||(r+="."),(i>0&&a===i+1||0===a&&i===n.body.length-1)&&(r="\n\n"+d+r);var m=e.key.end;if(e.computed)if(o)t.prependRight(e.key.start,"["),t.appendLeft(e.key.end,"]");else{for(;"]"!==t.original[m];)m+=1;m+=1}var p=e.computed||s||!E?"":f+" ",h=(s?"."+e.kind:"")+" = function"+(e.value.generator?"* ":" ")+p;t.remove(m,e.value.start),t.prependRight(e.value.start,h),t.appendLeft(e.end,";"),e.value.generator&&t.remove(e.start,e.key.start),t.prependRight(e.start,r)}else{var y=x?" "+c:"";t.overwrite(e.key.start,e.key.end,"function"+y)}}),w.length||v.length){var _=[],S=[];w.length&&(_.push("var "+M+" = { "+w.map(function(e){return e+": { configurable: true }"}).join(",")+" };"),S.push("Object.defineProperties( "+c+".prototype, "+M+" );")),v.length&&(_.push("var "+Z+" = { "+v.map(function(e){return e+": { configurable: true }"}).join(",")+" };"),S.push("Object.defineProperties( "+c+", "+Z+" );")),o&&(m+="\n\n"+d),m+=_.join("\n"+d),o||(m+="\n\n"+d),p+="\n\n"+d+S.join("\n"+d)}o?t.appendLeft(o.end,m):t.prependRight(this.start,m),t.appendLeft(this.end,p)}e.prototype.transpile.call(this,t,a)},ClassBody}(o);var v=function(e){function ClassDeclaration(){e.apply(this,arguments)}return e&&(ClassDeclaration.__proto__=e),ClassDeclaration.prototype=Object.create(e&&e.prototype),ClassDeclaration.prototype.constructor=ClassDeclaration,ClassDeclaration.prototype.initialise=function initialise(t){this.id?(this.name=this.id.name,this.findScope(!0).addDeclaration(this.id,"class")):this.name=this.findScope(!0).createIdentifier("defaultExport"),e.prototype.initialise.call(this,t)},ClassDeclaration.prototype.transpile=function transpile(e,t){if(t.classes){this.superClass||function deindent(e,t){var a=e.start,l=e.end,r=t.getIndentString(),n=r.length,c=a-n;e.program.indentExclusions[c]||t.original.slice(c,a)!==r||t.remove(c,a);for(var s,d=new RegExp(r+"\\S","g"),f=t.original.slice(a,l);s=d.exec(f);){var i=a+s.index;e.program.indentExclusions[i]||t.remove(i,i+n)}}(this.body,e);var a=this.superClass&&(this.superClass.name||"superclass"),l=this.getIndentation(),r=l+e.getIndentString(),n="ExportDefaultDeclaration"===this.parent.type;n&&e.remove(this.parent.start,this.start);var c=this.start;this.id?(e.overwrite(c,this.id.start,"var "),c=this.id.end):e.prependLeft(c,"var "+this.name),this.superClass?this.superClass.end===this.body.start?(e.remove(c,this.superClass.start),e.appendLeft(c," = (function ("+a+") {\n"+r)):(e.overwrite(c,this.superClass.start," = "),e.overwrite(this.superClass.end,this.body.start,"(function ("+a+") {\n"+r)):c===this.body.start?e.appendLeft(c," = "):e.overwrite(c,this.body.start," = "),this.body.transpile(e,t,!!this.superClass,a);var s=n?"\n\n"+l+"export default "+this.name+";":"";this.superClass?(e.appendLeft(this.end,"\n\n"+r+"return "+this.name+";\n"+l+"}("),e.move(this.superClass.start,this.superClass.end,this.end),e.prependRight(this.end,"));"+s)):s&&e.prependRight(this.end,s)}else this.body.transpile(e,t,!1,null)},ClassDeclaration}(o),_=function(e){function ClassExpression(){e.apply(this,arguments)}return e&&(ClassExpression.__proto__=e),ClassExpression.prototype=Object.create(e&&e.prototype),ClassExpression.prototype.constructor=ClassExpression,ClassExpression.prototype.initialise=function initialise(t){this.name=(this.id?this.id.name:"VariableDeclarator"===this.parent.type?this.parent.id.name:"AssignmentExpression"!==this.parent.type?null:"Identifier"===this.parent.left.type?this.parent.left.name:"MemberExpression"===this.parent.left.type?this.parent.left.property.name:null)||this.findScope(!0).createIdentifier("anonymous"),e.prototype.initialise.call(this,t)},ClassExpression.prototype.transpile=function transpile(e,t){if(t.classes){var a=this.superClass&&(this.superClass.name||"superclass"),l=this.getIndentation(),r=l+e.getIndentString();this.superClass?(e.remove(this.start,this.superClass.start),e.remove(this.superClass.end,this.body.start),e.appendLeft(this.start,"(function ("+a+") {\n"+r)):e.overwrite(this.start,this.body.start,"(function () {\n"+r),this.body.transpile(e,t,!0,a);var n="\n\n"+r+"return "+this.name+";\n"+l+"}(";this.superClass?(e.appendLeft(this.end,n),e.move(this.superClass.start,this.superClass.end,this.end),e.prependRight(this.end,"))")):e.appendLeft(this.end,"\n\n"+r+"return "+this.name+";\n"+l+"}())")}else this.body.transpile(e,t,!1)},ClassExpression}(o),S=function(e){function ContinueStatement(){e.apply(this,arguments)}return e&&(ContinueStatement.__proto__=e),ContinueStatement.prototype=Object.create(e&&e.prototype),ContinueStatement.prototype.constructor=ContinueStatement,ContinueStatement.prototype.transpile=function transpile(e){if(this.findNearest(M).shouldRewriteAsFunction){if(this.label)throw new p("Labels are not currently supported in a loop with locally-scoped variables",this);e.overwrite(this.start,this.start+8,"return")}},ContinueStatement}(o),k=function(e){function ExportDefaultDeclaration(){e.apply(this,arguments)}return e&&(ExportDefaultDeclaration.__proto__=e),ExportDefaultDeclaration.prototype=Object.create(e&&e.prototype),ExportDefaultDeclaration.prototype.constructor=ExportDefaultDeclaration,ExportDefaultDeclaration.prototype.initialise=function initialise(t){if(t.moduleExport)throw new p("export is not supported",this);e.prototype.initialise.call(this,t)},ExportDefaultDeclaration}(o),A=function(e){function ExportNamedDeclaration(){e.apply(this,arguments)}return e&&(ExportNamedDeclaration.__proto__=e),ExportNamedDeclaration.prototype=Object.create(e&&e.prototype),ExportNamedDeclaration.prototype.constructor=ExportNamedDeclaration,ExportNamedDeclaration.prototype.initialise=function initialise(t){if(t.moduleExport)throw new p("export is not supported",this);e.prototype.initialise.call(this,t)},ExportNamedDeclaration}(o),j=function(e){function LoopStatement(){e.apply(this,arguments)}return e&&(LoopStatement.__proto__=e),LoopStatement.prototype=Object.create(e&&e.prototype),LoopStatement.prototype.constructor=LoopStatement,LoopStatement.prototype.findScope=function findScope(e){return e||!this.createdScope?this.parent.findScope(e):this.body.scope},LoopStatement.prototype.initialise=function initialise(t){if(this.body.createScope(),this.createdScope=!0,this.reassigned=Object.create(null),this.aliases=Object.create(null),e.prototype.initialise.call(this,t),t.letConst)for(var a=Object.keys(this.body.scope.declarations),l=a.length;l--;){for(var r=a[l],n=this.body.scope.declarations[r],c=n.instances.length;c--;){var s=n.instances[c].findNearest(/Function/);if(s&&s.depth>this.depth){this.shouldRewriteAsFunction=!0;break}}if(this.shouldRewriteAsFunction)break}},LoopStatement.prototype.transpile=function transpile(t,a){var l="ForOfStatement"!=this.type&&("BlockStatement"!==this.body.type||"BlockStatement"===this.body.type&&this.body.synthetic);if(this.shouldRewriteAsFunction){var r=this.getIndentation(),n=r+t.getIndentString(),c=this.args?" "+this.args.join(", ")+" ":"",s=this.params?" "+this.params.join(", ")+" ":"",d=this.findScope(!0),f=d.createIdentifier("loop"),i="var "+f+" = function ("+s+") "+(this.body.synthetic?"{\n"+r+t.getIndentString():""),o=(this.body.synthetic?"\n"+r+"}":"")+";\n\n"+r;if(t.prependRight(this.body.start,i),t.appendLeft(this.body.end,o),t.move(this.start,this.body.start,this.body.end),this.canBreak||this.canReturn){var m=d.createIdentifier("returned"),u="{\n"+n+"var "+m+" = "+f+"("+c+");\n";this.canBreak&&(u+="\n"+n+"if ( "+m+" === 'break' ) break;"),this.canReturn&&(u+="\n"+n+"if ( "+m+" ) return "+m+".v;"),u+="\n"+r+"}",t.prependRight(this.body.end,u)}else{var p=f+"("+c+");";"DoWhileStatement"===this.type?t.overwrite(this.start,this.body.start,"do {\n"+n+p+"\n"+r+"}"):t.prependRight(this.body.end,p)}}else l&&(t.appendLeft(this.body.start,"{ "),t.prependRight(this.body.end," }"));e.prototype.transpile.call(this,t,a)},LoopStatement}(o),U=function(e){function ForStatement(){e.apply(this,arguments)}return e&&(ForStatement.__proto__=e),ForStatement.prototype=Object.create(e&&e.prototype),ForStatement.prototype.constructor=ForStatement,ForStatement.prototype.findScope=function findScope(e){return e||!this.createdScope?this.parent.findScope(e):this.body.scope},ForStatement.prototype.transpile=function transpile(t,a){var l=this,r=this.getIndentation()+t.getIndentString();if(this.shouldRewriteAsFunction){var n="VariableDeclaration"===this.init.type?this.init.declarations.map(function(e){return extractNames(e.id)}):[],c=this.aliases;this.args=n.map(function(e){return e in l.aliases?l.aliases[e].outer:e}),this.params=n.map(function(e){return e in l.aliases?l.aliases[e].inner:e});var s=Object.keys(this.reassigned).map(function(e){return c[e].outer+" = "+c[e].inner+";"});if(s.length)if(this.body.synthetic)t.appendLeft(this.body.body[0].end,"; "+s.join(" "));else{var d=this.body.body[this.body.body.length-1];t.appendLeft(d.end,"\n\n"+r+s.join("\n"+r))}}e.prototype.transpile.call(this,t,a)},ForStatement}(j),H=function(e){function ForInStatement(){e.apply(this,arguments)}return e&&(ForInStatement.__proto__=e),ForInStatement.prototype=Object.create(e&&e.prototype),ForInStatement.prototype.constructor=ForInStatement,ForInStatement.prototype.findScope=function findScope(e){return e||!this.createdScope?this.parent.findScope(e):this.body.scope},ForInStatement.prototype.transpile=function transpile(t,a){var l=this,r="VariableDeclaration"===this.left.type;if(this.shouldRewriteAsFunction){var n=r?this.left.declarations.map(function(e){return extractNames(e.id)}):[];this.args=n.map(function(e){return e in l.aliases?l.aliases[e].outer:e}),this.params=n.map(function(e){return e in l.aliases?l.aliases[e].inner:e})}e.prototype.transpile.call(this,t,a);var c=r?this.left.declarations[0].id:this.left;"Identifier"!==c.type&&this.destructurePattern(t,c,r)},ForInStatement.prototype.destructurePattern=function destructurePattern(e,t,a){var l=this.findScope(!0),r=this.getIndentation()+e.getIndentString(),n=l.createIdentifier("ref"),c=this.body.body.length?this.body.body[0].start:this.body.start+1;e.move(t.start,t.end,c),e.prependRight(t.end,a?n:"var "+n);var s=[];destructure(e,function(e){return l.createIdentifier(e)},function(e){var t=e.name;return l.resolveName(t)},t,n,!1,s);var d=";\n"+r;s.forEach(function(e,t){t===s.length-1&&(d=";\n\n"+r),e(c,"",d)})},ForInStatement}(j),L=function(e){function ForOfStatement(){e.apply(this,arguments)}return e&&(ForOfStatement.__proto__=e),ForOfStatement.prototype=Object.create(e&&e.prototype),ForOfStatement.prototype.constructor=ForOfStatement,ForOfStatement.prototype.initialise=function initialise(t){if(t.forOf&&!t.dangerousForOf)throw new p("for...of statements are not supported. Use `transforms: { forOf: false }` to skip transformation and disable this error, or `transforms: { dangerousForOf: true }` if you know what you're doing",this);e.prototype.initialise.call(this,t)},ForOfStatement.prototype.transpile=function transpile(t,a){if(e.prototype.transpile.call(this,t,a),a.dangerousForOf)if(this.body.body[0]){var l=this.findScope(!0),r=this.getIndentation(),n=r+t.getIndentString(),c=l.createIdentifier("i"),s=l.createIdentifier("list");this.body.synthetic&&(t.prependRight(this.left.start,"{\n"+n),t.appendLeft(this.body.body[0].end,"\n"+r+"}"));var d=this.body.body[0].start;t.remove(this.left.end,this.right.start),t.move(this.left.start,this.left.end,d),t.prependRight(this.right.start,"var "+c+" = 0, "+s+" = "),t.appendLeft(this.right.end,"; "+c+" < "+s+".length; "+c+" += 1");var f="VariableDeclaration"===this.left.type,i=f?this.left.declarations[0].id:this.left;if("Identifier"!==i.type){var o=[],m=l.createIdentifier("ref");destructure(t,function(e){return l.createIdentifier(e)},function(e){var t=e.name;return l.resolveName(t)},i,m,!f,o);var u=";\n"+n;o.forEach(function(e,t){t===o.length-1&&(u=";\n\n"+n),e(d,"",u)}),f?(t.appendLeft(this.left.start+this.left.kind.length+1,m),t.appendLeft(this.left.end," = "+s+"["+c+"];\n"+n)):t.appendLeft(this.left.end,"var "+m+" = "+s+"["+c+"];\n"+n)}else t.appendLeft(this.left.end," = "+s+"["+c+"];\n\n"+n)}else"VariableDeclaration"===this.left.type&&"var"===this.left.kind?(t.remove(this.start,this.left.start),t.appendLeft(this.left.end,";"),t.remove(this.left.end,this.end)):t.remove(this.start,this.end)},ForOfStatement}(j),q=function(e){function FunctionDeclaration(){e.apply(this,arguments)}return e&&(FunctionDeclaration.__proto__=e),FunctionDeclaration.prototype=Object.create(e&&e.prototype),FunctionDeclaration.prototype.constructor=FunctionDeclaration,FunctionDeclaration.prototype.initialise=function initialise(t){if(this.generator&&t.generator)throw new p("Generators are not supported",this);this.body.createScope(),this.id&&this.findScope(!0).addDeclaration(this.id,"function"),e.prototype.initialise.call(this,t)},FunctionDeclaration.prototype.transpile=function transpile(t,a){e.prototype.transpile.call(this,t,a),a.trailingFunctionCommas&&this.params.length&&removeTrailingComma(t,this.params[this.params.length-1].end)},FunctionDeclaration}(o),R=function(e){function FunctionExpression(){e.apply(this,arguments)}return e&&(FunctionExpression.__proto__=e),FunctionExpression.prototype=Object.create(e&&e.prototype),FunctionExpression.prototype.constructor=FunctionExpression,FunctionExpression.prototype.initialise=function initialise(t){if(this.generator&&t.generator)throw new p("Generators are not supported",this);this.body.createScope(),this.id&&this.body.scope.addDeclaration(this.id,"function"),e.prototype.initialise.call(this,t);var a,l=this.parent;if(t.conciseMethodProperty&&"Property"===l.type&&"init"===l.kind&&l.method&&"Identifier"===l.key.type?a=l.key.name:t.classes&&"MethodDefinition"===l.type&&"method"===l.kind&&"Identifier"===l.key.type?a=l.key.name:this.id&&"Identifier"===this.id.type&&(a=this.id.alias||this.id.name),a)for(var r=0,n=this.params;r<n.length;r+=1){var c=n[r];if("Identifier"===c.type&&a===c.name){var s=this.body.scope,d=s.declarations[a],f=s.createIdentifier(a);c.alias=f;for(var i=0,o=d.instances;i<o.length;i+=1){o[i].alias=f}break}}},FunctionExpression.prototype.transpile=function transpile(t,a){e.prototype.transpile.call(this,t,a),a.trailingFunctionCommas&&this.params.length&&removeTrailingComma(t,this.params[this.params.length-1].end)},FunctionExpression}(o);var V=function(e){function Identifier(){e.apply(this,arguments)}return e&&(Identifier.__proto__=e),Identifier.prototype=Object.create(e&&e.prototype),Identifier.prototype.constructor=Identifier,Identifier.prototype.findScope=function findScope(e){return this.parent.params&&~this.parent.params.indexOf(this)?this.parent.body.scope:"FunctionExpression"===this.parent.type&&this===this.parent.id?this.parent.body.scope:this.parent.findScope(e)},Identifier.prototype.initialise=function initialise(e){if(function isReference(e,t){return"MemberExpression"===e.type?!e.computed&&isReference(e.object,e):"Identifier"===e.type?!t||!/(Function|Class)Expression/.test(t.type)&&("VariableDeclarator"===t.type?e===t.init:"MemberExpression"===t.type||"MethodDefinition"===t.type?t.computed||e===t.object:"ArrayPattern"!==t.type&&("Property"===t.type?"ObjectPattern"!==t.parent.type&&(t.computed||e===t.value):"MethodDefinition"!==t.type&&("ExportSpecifier"!==t.type||e===t.local))):void 0}(this,this.parent)){if(e.arrow&&"arguments"===this.name&&!this.findScope(!1).contains(this.name)){var t=this.findLexicalBoundary(),a=this.findNearest("ArrowFunctionExpression"),l=this.findNearest(M);a&&a.depth>t