From 48996cff84360de81f0b694b51f1abed284c68d1 Mon Sep 17 00:00:00 2001 From: Craig Burke <(none)> Date: Fri, 13 May 2016 12:18:58 -0400 Subject: [PATCH] Update ngAnnotate to 1.2.1. Bumping version to 2.4.1. Fixes #13 --- README.adoc | 4 ++-- core/build.gradle | 18 +++++++++++++++--- core/src/main/resources/ngannotate.js | 12 ++++++------ ...larAnnotateAssetPipelineGrailsPlugin.groovy | 2 +- .../grails-app/conf/BuildConfig.groovy | 2 +- 5 files changed, 25 insertions(+), 13 deletions(-) diff --git a/README.adoc b/README.adoc index d9c56fb..eaa52f2 100644 --- a/README.adoc +++ b/README.adoc @@ -1,6 +1,6 @@ -:version: 2.4.0 +:version: 2.4.1 :apVersion: 2.5.0 -:ngAnnotateVersion: 1.0.2 +:ngAnnotateVersion: 1.2.1 = AngularJs Annotate Asset-Pipeline The `angular-annotate-asset-pipeline` is an https://github.com/bertramdev/asset-pipeline-core[Asset Pipeline] module that provides annotations for dependecy injection to allow angular JavaScript or CofeeScript files to be minified in Gradle and Grails projects. diff --git a/core/build.gradle b/core/build.gradle index d57e9de..a8e775d 100644 --- a/core/build.gradle +++ b/core/build.gradle @@ -2,7 +2,7 @@ plugins { id 'groovy' id 'maven-publish' id 'com.moowork.node' version '0.10' - id 'com.jfrog.bintray' version '1.3.1' + id 'com.jfrog.bintray' version '1.6' id 'nebula.provided-base' version '2.2.2' } @@ -14,16 +14,17 @@ repositories { targetCompatibility = 1.7 group = 'com.craigburke.angular' -version = '2.4.0' +version = '2.4.1' node { download = true } -project.ext { +ext { sourceFile = file('node_modules/ng-annotate/build/es5/ng-annotate-main.js') destination = file('src/main/resources/ngannotate.js') npmDependencies = ['ng-annotate', 'webpack'] + githubRepo = 'https://github.com/craigburke/angular-annotate-asset-pipeline' } dependencies { @@ -60,11 +61,21 @@ bintray { user = project.hasProperty('bintrayUsername') ? project.bintrayUsername : '' key = project.hasProperty('bintrayApiKey') ? project.bintrayApiKey : '' publications = ['maven'] + publish = true + pkg { repo = 'asset-pipeline' userOrg = 'craigburke' name = 'angular-annotate-asset-pipeline' licenses = ['Apache-2.0'] + githubRepo = 'craigburke/angular-annotate-asset-pipeline' + githubReleaseNotesFile = 'README.adoc' + version { + mavenCentralSync { + user = project.hasProperty('mavenCentralUsername') ? project.mavenCentralUsername : '' + password = project.hasProperty('mavenCentralPassword') ? project.mavenCentralPassword : '' + } + } } } @@ -108,3 +119,4 @@ publishing { } bintrayUpload.dependsOn build, sourcesJar, javadocJar +task('release', dependsOn: ['bintrayUpload']) diff --git a/core/src/main/resources/ngannotate.js b/core/src/main/resources/ngannotate.js index ad8b0f7..e0de2b5 100644 --- a/core/src/main/resources/ngannotate.js +++ b/core/src/main/resources/ngannotate.js @@ -1,13 +1,13 @@ -var ngAnnotate=function(t){function e(n){if(r[n])return r[n].exports;var i=r[n]={exports:{},id:n,loaded:!1};return t[n].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var r={};return e.m=t,e.c=r,e.p="",e(0)}([function(t,e,r){"use strict";function n(t,e,r){var n="CallExpression"===t.type&&"MemberExpression"===t.callee.type&&t.callee.computed===!1,o=n&&(h(t)||l(t,e)||f(t,e)||u(t)||i(t)||p(t)||c(t));return o||r&&r(t)||s(t)||a(t)}function i(t){var e=t.callee,r=e.object,n=e.property,i=t.arguments;if("Identifier"===r.type&&("$modal"===r.name&&"open"===n.name||F.someof(r.name,["$mdDialog","$mdToast","$mdBottomSheet"])&&"show"===n.name)&&1===i.length&&"ObjectExpression"===i[0].type){var s=i[0].properties,o=[y("controller",s)];return o.push.apply(o,v(s)),o.filter(Boolean)}return!1}function s(t){return o("directive","ReturnStatement"===t.type&&t.argument&&"ObjectExpression"===t.argument.type&&y("controller",t.argument.properties))}function o(t,e){return e&&!e.$limitToMethodName&&(e.$limitToMethodName=t),e}function a(t){var e,r;return o("provider","AssignmentExpression"===t.type&&"MemberExpression"===(e=t.left).type&&"$get"===e.property.name&&("ThisExpression"===(r=e.object).type||"Identifier"===r.type&&F.someof(r.name,["self","that"]))&&t.right||"ObjectExpression"===t.type&&y("$get",t.properties))}function u(t){var e=t.callee,r=e.object;if(r.$chained!==Z&&("Identifier"!==r.type||"$routeProvider"!==r.name))return!1;t.$chained=Z;var n=e.property;if("when"!==n.name)return!1;var i=t.arguments;if(2!==i.length)return!1;var s=m(i);if("ObjectExpression"!==s.type)return!1;var o=s.properties,a=[y("controller",o)];a.push.apply(a,v(o));var u=a.filter(Boolean);return 0===u.length?!1:u}function p(t){function e(t){if(!t||"ObjectExpression"!==t.type)return!1;var n=t.properties;r(n,u);var i=y("children",n),s=i&&i.elements;s&&s.forEach(e)}function r(t,e){var r=[y("controller",t),y("controllerProvider",t),y("templateProvider",t),y("onEnter",t),y("onExit",t)];e.push.apply(e,r),e.push.apply(e,v(t));var n=y("views",t);n&&"ObjectExpression"===n.type&&n.properties.forEach(function(t){"ObjectExpression"===t.value.type&&(e.push(y("controller",t.value.properties)),e.push(y("controllerProvider",t.value.properties)),e.push(y("templateProvider",t.value.properties)),e.push.apply(e,v(t.value.properties)))})}var n=t.callee,i=n.object,s=n.property,o=t.arguments;if(i.$chained===K||"Identifier"===i.type&&"$urlRouterProvider"===i.name)return t.$chained=K,"when"===s.name&&o.length>=1?m(o):!1;if(!(i.$chained===tt||"Identifier"===i.type&&F.someof(i.name,["$stateProvider","stateHelperProvider"])))return!1;if(t.$chained=tt,F.noneof(s.name,["state","setNestedState"]))return!1;if(!(o.length>=1&&o.length<=2))return!1;var a="state"===s.name?m(o):o[0],u=[];e(a);var p=u.filter(Boolean);return 0===p.length?!1:p}function h(t){var e=t.callee,r=e.object,n=e.property;return"invoke"===n.name&&"Identifier"===r.type&&"$injector"===r.name&&t.arguments.length>=1&&t.arguments}function c(t){var e=t.callee,r=e.object,n=e.property;return"push"===n.name&&"MemberExpression"===r.type&&!r.computed&&"$httpProvider"===r.object.name&&F.someof(r.property.name,["interceptors","responseInterceptors"])&&t.arguments.length>=1&&t.arguments}function l(t,e){var r=t.callee,n=r.object,i=r.property,s=t.arguments,o="Identifier"===n.type&&"$provide"===n.name&&F.someof(i.name,["decorator","service","factory","provider"])&&2===s.length&&s[1];return o&&(o.$methodName=i.name,e.rename)?s:o}function f(t,e){var r=t.callee,n=r.object,i=r.property;if("angular"===n.name&&"module"===i.name){var s=t.arguments;if(s.length>=2)return t.$chained=et,m(s)}var o=(n.$chained===et||d(n,e)||g(n))&&F.someof(i.name,["provider","value","constant","bootstrap","config","factory","directive","filter","run","controller","service","animation","invoke","store"]);if(!o)return!1;if(t.$chained=et,F.someof(i.name,["value","constant","bootstrap"]))return!1;var a=t.arguments,u=F.someof(i.name,["config","run"])?1===a.length&&a[0]:2===a.length&&"Literal"===a[0].type&&F.string(a[0].value)&&a[1];if(u&&(u.$methodName=i.name),e.rename&&2===a.length&&u){var p=a[0];return[p,u]}return u}function d(t,e){return e.re.test(e.srcForRange(t.range))}function g(t){return t.callee&&t.callee.object&&"angular"===t.callee.object.name&&t.callee.property&&"module"===t.callee.property.name}function m(t){return t[t.length-1]}function y(t,e){for(var r=0;rc&&(e(h),n(h));c++);var l=s(h.map(function(t){var e=O(t),n=k(e)||e;return t.$limitToMethodName&&"*never*"!==t.$limitToMethodName&&r(t)!==t.$limitToMethodName?null:p.indexOf(n)>=0?null:n}).filter(Boolean),2);l.forEach(function(e){e.$chained===et&&("rebuild"===o&&I(e)?E(t,e,a,u):"remove"===o&&I(e)?_(e,a):F.someof(o,["add","rebuild"])&&R(e)?w(t,e,a,u):M(e)?S(t,e,a):L(e,t))})}function k(t){if(!z.isReference(t))return null;var e=t.$scope.lookup(t.name);if(!e)return null;var r=e.getNode(t.name).$parent,n=e.getKind(t.name);if(!r)return null;var i=r.type;return F.someof(n,["const","let","var"])?(V("VariableDeclarator"===i),r):"fun"===n?(V("FunctionDeclaration"===i||"FunctionExpression"===i),r):null}function C(t,e){if(t>=e.length&&(t=e.length-1),-1>=t)return-1;for(var r=1,n=0;t>n;n++)"\n"===e[n]&&++r;return r}function L(t,e){function r(t){for(var r=e.src,n=r.lastIndexOf("\n",t-1)+1,i=n;" "===r[i]||" "===r[i];i++);return r.slice(n,i)}function n(t,n,s){function o(t){var r,n;return t&&"ExpressionStatement"===t.type&&"AssignmentExpression"===(n=t.expression).type&&"="===n.operator&&"MemberExpression"===(r=n.left).type&&(r.computed===!1&&e.srcForRange(r.object.range)===s&&"$inject"===r.property.name||r.computed===!0&&e.srcForRange(r.object.range)===s&&"Literal"===r.property.type&&"$inject"===r.property.value)}function a(t,r){var n=e.src.lastIndexOf("\n",t);return-1===n?{pos:t,loc:r}:(n>=1&&"\r"===e.src[n-1]&&--n,/\S/g.test(e.src.slice(n,t-1))?{pos:t,loc:r}:{pos:n,loc:{line:r.line-1,column:n-e.src.lastIndexOf("\n",n)-1}})}var u=r(n.pos),p=!1,h=null,c=!1;if(i.$parent.body.forEach(function(t){if(t===i&&(p=!0),o(t)){if(h)throw j("conflicting inject arrays at line {0} and {1}",C(h.range[0],e.src),C(t.range[0],e.src));h=t}p||"ReturnStatement"!==t.type||(c=t)}),V(p),c&&!h&&(n=a(c.range[0],c.loc.start)),"rebuild"===e.mode&&h){var l=j("{2}.$inject = {3};",null,null,s,e.stringify(e,t,e.quot));e.fragments.push({start:h.range[0],end:h.range[1],str:l,loc:{start:h.loc.start,end:h.loc.end}})}else if("remove"===e.mode&&h){var f=a(h.range[0],h.loc.start);e.fragments.push({start:f.pos,end:h.range[1],str:"",loc:{start:f.loc,end:h.loc.end}})}else if(F.someof(e.mode,["add","rebuild"])&&!h){var d=j("{0}{1}{2}.$inject = {3};",$,u,s,e.stringify(e,t,e.quot));e.fragments.push({start:n.pos,end:n.pos,str:d,loc:{start:n.loc,end:n.loc}})}}if("VariableDeclaration"===t.type){if(1!==t.declarations.length)return;t=t.declarations[0]}var i=null,s=null;if("VariableDeclarator"===t.type?(i=t.$parent,s=t.id.name,t=t.init):i=t,t&&i.$parent&&!F.noneof(i.$parent.type,["Program","BlockStatement"])){var o={pos:i.range[1],loc:i.loc.end},a=";"===e.src[o.pos-1];if(t=O(t),e.isFunctionExpressionWithArgs(t))V(s),n(t.params,a?o:{pos:t.range[1],loc:t.loc.end},s);else if(e.isFunctionDeclarationWithArgs(t))n(t.params,o,t.id.name);else if("ExpressionStatement"===t.type&&"AssignmentExpression"===t.expression.type&&e.isFunctionExpressionWithArgs(t.expression.right)){var u=e.srcForRange(t.expression.left.range);n(t.expression.right.params,a?o:{pos:t.expression.right.range[1],loc:t.expression.right.loc.end},u)}else(t=k(t))&&L(t,e)}}function O(t){var e;if("CallExpression"!==t.type||"FunctionExpression"!==(e=t.callee).type)return t;for(var r=e.body.body,n=0;n=1}function T(t){return"FunctionDeclaration"===t.type&&t.params.length>=1}function M(t){return"Literal"===t.type&&F.string(t.value)}function B(t){for(var e=Object.create(null),r=0;r=1&&($="\r"===t[h-1]?"\r\n":"\n");var c=[];try{p.parser_require_t0=H,p.parser_require_t1=Q,p.parser_parse_t0=Date.now(),u=X(t,{ecmaVersion:6,locations:!0,ranges:!0,onComment:c}),p.parser_parse_t1=Date.now()}catch(l){return{errors:["error: couldn't process source due to parse error",l.message]}}u.body.push({type:"DebuggerStatement",range:[u.range[1],u.range[1]],loc:{start:u.loc.end,end:u.loc.end}});var f=[],d=[],g=[],x=[],w=new Y(u,t);z.setupScopeAndReferences(u);for(var E={mode:i,quot:s,src:t,srcForRange:function(e){return t.slice(e[0],e[1])},re:o,rename:a,comments:c,fragments:f,suspects:d,blocked:g,lut:w,isFunctionExpressionWithArgs:R,isFunctionDeclarationWithArgs:T,isAnnotatedArray:I,addModuleContextDependentSuspect:N,addModuleContextIndependentSuspect:P,stringify:b,nodePositions:x,matchResolve:v,matchProp:y,last:m},_=e.enable||[],S=0;S<_.length;S++){var k=String(_[S]);if(!rt.hasOwnProperty(k))return{errors:["error: found no optional named "+k]}}var C=_.map(function(t){return rt[t]}),L=[].concat(C,e.plugin||[]),O=0===L.length?null:r;q.inspectComments(E),L.forEach(function(t){t.init(E)}),U(u,{pre:function(t){q.inspectNode(t,E)},post:function(t){E.nodePositions.push(t.loc.start);var e=n(t,E,O);if(e){F.array(e)||(e=[e]);for(var r=0;r=0},noneof:function(t,e){return-1===e.indexOf(t)},own:function(e,r){return t.call(e,r)}}}();"undefined"!=typeof t&&"undefined"!=typeof t.exports&&(t.exports=r)},function(t,e,r){function n(t,e){"use strict";var r=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};i("string"==typeof t),i(r(e));for(var n=s(e,function(t,e){return t.start-e.start}),o=[],a=0,u=0;u=0;s--)if(o[s]!=a[s])return!1;for(s=o.length-1;s>=0;s--)if(i=o[s],!u(t[i],e[i]))return!1;return!0}function c(t,e){return t&&e?"[object RegExp]"==Object.prototype.toString.call(e)?e.test(t):t instanceof e?!0:e.call({},t)===!0?!0:!1:!1}function l(t,e,r,n){var i;f.isString(r)&&(n=r,r=null);try{e()}catch(s){i=s}if(n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),t&&!i&&o(i,r,"Missing expected exception"+n),!t&&c(i,r)&&o(i,r,"Got unwanted exception"+n),t&&i&&r&&!c(i,r)||!t&&i)throw i}var f=r(5),d=Array.prototype.slice,g=Object.prototype.hasOwnProperty,m=t.exports=a;m.AssertionError=function(t){this.name="AssertionError",this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=s(this),this.generatedMessage=!0);var e=t.stackStartFunction||o;if(Error.captureStackTrace)Error.captureStackTrace(this,e);else{var r=new Error;if(r.stack){var n=r.stack,i=e.name,a=n.indexOf("\n"+i);if(a>=0){var u=n.indexOf("\n",a+1);n=n.substring(u+1)}this.stack=n}}},f.inherits(m.AssertionError,Error),m.fail=o,m.ok=a,m.equal=function(t,e,r){t!=e&&o(t,e,r,"==",m.equal)},m.notEqual=function(t,e,r){t==e&&o(t,e,r,"!=",m.notEqual)},m.deepEqual=function(t,e,r){u(t,e)||o(t,e,r,"deepEqual",m.deepEqual)},m.notDeepEqual=function(t,e,r){u(t,e)&&o(t,e,r,"notDeepEqual",m.notDeepEqual)},m.strictEqual=function(t,e,r){t!==e&&o(t,e,r,"===",m.strictEqual)},m.notStrictEqual=function(t,e,r){t===e&&o(t,e,r,"!==",m.notStrictEqual)},m["throws"]=function(t,e,r){l.apply(this,[!0].concat(d.call(arguments)))},m.doesNotThrow=function(t,e){l.apply(this,[!1].concat(d.call(arguments)))},m.ifError=function(t){if(t)throw t};var y=Object.keys||function(t){var e=[];for(var r in t)g.call(t,r)&&e.push(r);return e}},function(t,e,r){(function(t,n){function i(t,r){var n={seen:[],stylize:o};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),g(r)?n.showHidden=r:r&&e._extend(n,r),w(n.showHidden)&&(n.showHidden=!1),w(n.depth)&&(n.depth=2),w(n.colors)&&(n.colors=!1),w(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=s),u(n,t,n.depth)}function s(t,e){var r=i.styles[e];return r?"["+i.colors[r][0]+"m"+t+"["+i.colors[r][1]+"m":t}function o(t,e){return t}function a(t){var e={};return t.forEach(function(t,r){e[t]=!0}),e}function u(t,r,n){if(t.customInspect&&r&&k(r.inspect)&&r.inspect!==e.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,t);return x(i)||(i=u(t,i,n)),i}var s=p(t,r);if(s)return s;var o=Object.keys(r),g=a(o);if(t.showHidden&&(o=Object.getOwnPropertyNames(r)),A(r)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return h(r);if(0===o.length){if(k(r)){var m=r.name?": "+r.name:"";return t.stylize("[Function"+m+"]","special")}if(E(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(S(r))return t.stylize(Date.prototype.toString.call(r),"date");if(A(r))return h(r)}var y="",v=!1,b=["{","}"];if(d(r)&&(v=!0,b=["[","]"]),k(r)){var w=r.name?": "+r.name:"";y=" [Function"+w+"]"}if(E(r)&&(y=" "+RegExp.prototype.toString.call(r)),S(r)&&(y=" "+Date.prototype.toUTCString.call(r)),A(r)&&(y=" "+h(r)),0===o.length&&(!v||0==r.length))return b[0]+y+b[1];if(0>n)return E(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special");t.seen.push(r);var _;return _=v?c(t,r,n,g,o):o.map(function(e){return l(t,r,n,g,e,v)}),t.seen.pop(),f(_,y,b)}function p(t,e){if(w(e))return t.stylize("undefined","undefined");if(x(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}return v(e)?t.stylize(""+e,"number"):g(e)?t.stylize(""+e,"boolean"):m(e)?t.stylize("null","null"):void 0}function h(t){return"["+Error.prototype.toString.call(t)+"]"}function c(t,e,r,n,i){for(var s=[],o=0,a=e.length;a>o;++o)P(e,String(o))?s.push(l(t,e,r,n,String(o),!0)):s.push("");return i.forEach(function(i){i.match(/^\d+$/)||s.push(l(t,e,r,n,i,!0))}),s}function l(t,e,r,n,i,s){var o,a,p;if(p=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]},p.get?a=p.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):p.set&&(a=t.stylize("[Setter]","special")),P(n,i)||(o="["+i+"]"),a||(t.seen.indexOf(p.value)<0?(a=m(r)?u(t,p.value,null):u(t,p.value,r-1),a.indexOf("\n")>-1&&(a=s?a.split("\n").map(function(t){return" "+t}).join("\n").substr(2):"\n"+a.split("\n").map(function(t){return" "+t}).join("\n"))):a=t.stylize("[Circular]","special")),w(o)){if(s&&i.match(/^\d+$/))return a;o=JSON.stringify(""+i),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=t.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=t.stylize(o,"string"))}return o+": "+a}function f(t,e,r){var n=0,i=t.reduce(function(t,e){return n++,e.indexOf("\n")>=0&&n++,t+e.replace(/\u001b\[\d\d?m/g,"").length+1},0);return i>60?r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+r[1]:r[0]+e+" "+t.join(", ")+" "+r[1]}function d(t){return Array.isArray(t)}function g(t){return"boolean"==typeof t}function m(t){return null===t}function y(t){return null==t}function v(t){return"number"==typeof t}function x(t){return"string"==typeof t}function b(t){return"symbol"==typeof t}function w(t){return void 0===t}function E(t){return _(t)&&"[object RegExp]"===L(t)}function _(t){return"object"==typeof t&&null!==t}function S(t){return _(t)&&"[object Date]"===L(t)}function A(t){return _(t)&&("[object Error]"===L(t)||t instanceof Error)}function k(t){return"function"==typeof t}function C(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||"undefined"==typeof t}function L(t){return Object.prototype.toString.call(t)}function O(t){return 10>t?"0"+t.toString(10):t.toString(10)}function N(){var t=new Date,e=[O(t.getHours()),O(t.getMinutes()),O(t.getSeconds())].join(":");return[t.getDate(),M[t.getMonth()],e].join(" ")}function P(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var I=/%[sdj%]/g;e.format=function(t){if(!x(t)){for(var e=[],r=0;r=s)return t;switch(t){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return t}}),a=n[r];s>r;a=n[++r])o+=m(a)||!_(a)?" "+a:" "+i(a);return o},e.deprecate=function(r,i){function s(){if(!o){if(n.throwDeprecation)throw new Error(i);n.traceDeprecation?console.trace(i):console.error(i),o=!0}return r.apply(this,arguments)}if(w(t.process))return function(){return e.deprecate(r,i).apply(this,arguments)};if(n.noDeprecation===!0)return r;var o=!1;return s};var R,T={};e.debuglog=function(t){if(w(R)&&(R=n.env.NODE_DEBUG||""),t=t.toUpperCase(),!T[t])if(new RegExp("\\b"+t+"\\b","i").test(R)){var r=n.pid;T[t]=function(){var n=e.format.apply(e,arguments);console.error("%s %d: %s",t,r,n)}}else T[t]=function(){};return T[t]},e.inspect=i,i.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},i.styles={special:"cyan",number:"yellow","boolean":"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=d,e.isBoolean=g,e.isNull=m,e.isNullOrUndefined=y,e.isNumber=v,e.isString=x,e.isSymbol=b,e.isUndefined=w,e.isRegExp=E,e.isObject=_,e.isDate=S,e.isError=A,e.isFunction=k,e.isPrimitive=C,e.isBuffer=r(7);var M=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];e.log=function(){console.log("%s - %s",N(),e.format.apply(e,arguments))},e.inherits=r(8),e._extend=function(t,e){if(!e||!_(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t}}).call(e,function(){return this}(),r(6))},function(t,e){function r(){p=!1,o.length?u=o.concat(u):h=-1,u.length&&n()}function n(){if(!p){var t=setTimeout(r);p=!0;for(var e=u.length;e;){for(o=u,u=[];++h1)for(var r=1;r=1?y(o):!1;if(!(i.$chained===rt||"Identifier"===i.type&&U.someof(i.name,["$stateProvider","stateHelperProvider"])))return!1;if(t.$chained=rt,U.noneof(s.name,["state","setNestedState"]))return!1;if(!(o.length>=1&&o.length<=2))return!1;var a="state"===s.name?y(o):o[0],u=[];e(a);var p=u.filter(Boolean);return 0===p.length?!1:p}function c(t){var e=t.callee,r=e.object,n=e.property;return"invoke"===n.name&&"Identifier"===r.type&&"$injector"===r.name&&t.arguments.length>=1&&t.arguments}function h(t){var e=t.callee,r=e.object,n=e.property;return"push"===n.name&&"MemberExpression"===r.type&&!r.computed&&"$httpProvider"===r.object.name&&U.someof(r.property.name,["interceptors","responseInterceptors"])&&t.arguments.length>=1&&t.arguments}function l(t){var e=t.callee,r=e.object,n=e.property,i=t.arguments,s="Identifier"===r.type&&"$controllerProvider"===r.name&&"register"===n.name&&2===i.length&&i[1];return s&&(s.$methodName=n.name),s}function f(t,e){var r=t.callee,n=r.object,i=r.property,s=t.arguments,o="Identifier"===n.type&&"$provide"===n.name&&U.someof(i.name,["decorator","service","factory","provider"])&&2===s.length&&s[1];return o&&(o.$methodName=i.name,e.rename)?s:o}function d(t,e){var r=t.callee,n=r.object,i=r.property;if("angular"===n.name&&"module"===i.name){var s=t.arguments;if(s.length>=2)return t.$chained=nt,y(s)}if("$stateProvider"===n.name&&"decorator"===i.name)return!1;var o=(n.$chained===nt||g(n,e)||m(n))&&U.someof(i.name,["provider","value","constant","bootstrap","config","factory","directive","filter","run","controller","service","animation","invoke","store","decorator","component"]);if(!o)return!1;if(t.$chained=nt,U.someof(i.name,["value","constant","bootstrap"]))return!1;var a=t.arguments,u=U.someof(i.name,["config","run"])?1===a.length&&a[0]:2===a.length&&"Literal"===a[0].type&&U.string(a[0].value)&&a[1];if("component"===i.name){var p=u&&"ObjectExpression"===u.type&&v("controller",u.properties);if(!p)return!1;u=p}if(u&&(u.$methodName=i.name),e.rename&&2===a.length&&u){var c=a[0];return[c,u]}return u}function g(t,e){return e.re.test(e.srcForRange(t.range))}function m(t){return t.callee&&t.callee.object&&"angular"===t.callee.object.name&&t.callee.property&&"module"===t.callee.property.name}function y(t){return t[t.length-1]}function v(t,e){for(var r=0;rh&&(e(c),n(c));h++);var l=s(c.map(function(t){var e=N(t),n=C(e)||e;return t.$limitToMethodName&&"*never*"!==t.$limitToMethodName&&r(t)!==t.$limitToMethodName?null:p.indexOf(n)>=0?null:n}).filter(Boolean),2);l.forEach(function(e){e.$chained===nt&&("rebuild"===o&&T(e)?_(t,e,a,u):"remove"===o&&T(e)?S(e,a):U.someof(o,["add","rebuild"])&&M(e)?w(t,e,a,u):B(e)?A(t,e,a):P(e,t))})}function C(t){if(!J.isReference(t))return null;var e=t.$scope.lookup(t.name);if(!e)return null;var r=e.getNode(t.name).$parent,n=e.getKind(t.name);if(!r)return null;var i=r.type;return U.someof(n,["const","let","var"])?(Y("VariableDeclarator"===i),r):"fun"===n?(Y("FunctionDeclaration"===i||"FunctionExpression"===i),r):null}function L(t,e){if(t>=e.length&&(t=e.length-1),-1>=t)return-1;for(var r=1,n=0;t>n;n++)"\n"===e[n]&&++r;return r}function O(t){for(var e=0;e=1&&"\r"===e.src[n-1]&&--n,/\S/g.test(e.src.slice(n,t-1))?{pos:t,loc:r}:{pos:n,loc:{line:r.line-1,column:n-e.src.lastIndexOf("\n",n)-1}})}var u=r(n.pos),p=!1,c=null,h=null;if(i.$parent.body.forEach(function(t,r){if(t===i&&(p=!0),o(t)){if(c)throw D("conflicting inject arrays at line {0} and {1}",L(c.range[0],e.src),L(t.range[0],e.src));c=t}var n;if(!h&&!p&&"ExpressionStatement"===t.type&&"CallExpression"===(n=t.expression).type&&"Identifier"===n.callee.type&&"__extends"===n.callee.name){var s=i.$parent.body[r+1];s&&(h=s)}}),Y(p),"FunctionDeclaration"===i.type&&(h||(h=O(i.$parent.body)),h&&!c&&(n=a(h.range[0],h.loc.start))),"rebuild"===e.mode&&c){var l=D("{2}.$inject = {3};",null,null,s,e.stringify(e,t,e.quot));e.fragments.push({start:c.range[0],end:c.range[1],str:l,loc:{start:c.loc.start,end:c.loc.end}})}else if("remove"===e.mode&&c){var f=a(c.range[0],c.loc.start);e.fragments.push({start:f.pos,end:c.range[1],str:"",loc:{start:f.loc,end:c.loc.end}})}else if(U.someof(e.mode,["add","rebuild"])&&!c){var d=D("{0}{1}{2}.$inject = {3};",q,u,s,e.stringify(e,t,e.quot));e.fragments.push({start:n.pos,end:n.pos,str:d,loc:{start:n.loc,end:n.loc}})}}if("VariableDeclaration"===t.type){if(1!==t.declarations.length)return;t=t.declarations[0]}var i=null,s=null;if("VariableDeclarator"===t.type?(i=t.$parent,s=t.id.name,t=t.init):i=t,t&&i.$parent&&!U.noneof(i.$parent.type,["Program","BlockStatement"])){var o={pos:i.range[1],loc:i.loc.end},a=";"===e.src[o.pos-1];if(t=N(t),e.isFunctionExpressionWithArgs(t))Y(s),n(t.params,a?o:{pos:t.range[1],loc:t.loc.end},s);else if(e.isFunctionDeclarationWithArgs(t))n(t.params,o,t.id.name);else if("ExpressionStatement"===t.type&&"AssignmentExpression"===t.expression.type&&e.isFunctionExpressionWithArgs(t.expression.right)){var u=e.srcForRange(t.expression.left.range);n(t.expression.right.params,a?o:{pos:t.expression.right.range[1],loc:t.expression.right.loc.end},u)}else(t=C(t))&&P(t,e)}}function N(t){var e;if("CallExpression"!==t.type||"FunctionExpression"!==(e=t.callee).type)return t;for(var r=e.body.body,n=0;n=1}function j(t){return"FunctionDeclaration"===t.type&&t.params.length>=1}function B(t){return"Literal"===t.type&&U.string(t.value)}function F(t){for(var e=Object.create(null),r=0;r=1&&(q="\r"===t[c-1]?"\r\n":"\n");var h=[];try{p.parser_require_t0=Q,p.parser_require_t1=K,p.parser_parse_t0=Date.now(),u=Z(t,{ecmaVersion:6,allowReserved:!0,locations:!0,ranges:!0,onComment:h}),p.parser_parse_t1=Date.now()}catch(l){return{errors:["error: couldn't process source due to parse error",l.message]}}u.body.push({type:"DebuggerStatement",range:[u.range[1],u.range[1]],loc:{start:u.loc.end,end:u.loc.end}});var f=[],d=[],g=[],m=[],b=new W(u,t);J.setupScopeAndReferences(u);for(var w={mode:i,quot:s,src:t,srcForRange:function(e){return t.slice(e[0],e[1])},re:o,rename:a,comments:h,fragments:f,suspects:d,blocked:g,lut:b,isFunctionExpressionWithArgs:M,isFunctionDeclarationWithArgs:j,isAnnotatedArray:T,addModuleContextDependentSuspect:I,addModuleContextIndependentSuspect:R,stringify:E,nodePositions:m,matchResolve:x,matchProp:v,last:y},_=e.enable||[],S=0;S<_.length;S++){var A=String(_[S]);if(!it.hasOwnProperty(A))return{errors:["error: found no optional named "+A]}}var C=_.map(function(t){return it[t]}),L=[].concat(C,e.plugin||[]),O=0===L.length?null:r;G.inspectComments(w),L.forEach(function(t){t.init(w)}),V(u,{pre:function(t){G.inspectNode(t,w)},post:function(t){w.nodePositions.push(t.loc.start);var e=n(t,w,O);if(e){U.array(e)||(e=[e]);for(var r=0;r=0},noneof:function(t,e){return-1===e.indexOf(t)},own:function(e,r){return t.call(e,r)}}}();"undefined"!=typeof t&&"undefined"!=typeof t.exports&&(t.exports=r)},function(t,e,r){function n(t,e){"use strict";var r=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};i("string"==typeof t),i(r(e));for(var n=s(e,function(t,e){return t.start-e.start}),o=[],a=0,u=0;u=0;s--)if(o[s]!=a[s])return!1;for(s=o.length-1;s>=0;s--)if(i=o[s],!u(t[i],e[i]))return!1;return!0}function h(t,e){return t&&e?"[object RegExp]"==Object.prototype.toString.call(e)?e.test(t):t instanceof e?!0:e.call({},t)===!0:!1}function l(t,e,r,n){var i;f.isString(r)&&(n=r,r=null);try{e()}catch(s){i=s}if(n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),t&&!i&&o(i,r,"Missing expected exception"+n),!t&&h(i,r)&&o(i,r,"Got unwanted exception"+n),t&&i&&r&&!h(i,r)||!t&&i)throw i}var f=r(5),d=Array.prototype.slice,g=Object.prototype.hasOwnProperty,m=t.exports=a;m.AssertionError=function(t){this.name="AssertionError",this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=s(this),this.generatedMessage=!0);var e=t.stackStartFunction||o;if(Error.captureStackTrace)Error.captureStackTrace(this,e);else{var r=new Error;if(r.stack){var n=r.stack,i=e.name,a=n.indexOf("\n"+i);if(a>=0){var u=n.indexOf("\n",a+1);n=n.substring(u+1)}this.stack=n}}},f.inherits(m.AssertionError,Error),m.fail=o,m.ok=a,m.equal=function(t,e,r){t!=e&&o(t,e,r,"==",m.equal)},m.notEqual=function(t,e,r){t==e&&o(t,e,r,"!=",m.notEqual)},m.deepEqual=function(t,e,r){u(t,e)||o(t,e,r,"deepEqual",m.deepEqual)},m.notDeepEqual=function(t,e,r){u(t,e)&&o(t,e,r,"notDeepEqual",m.notDeepEqual)},m.strictEqual=function(t,e,r){t!==e&&o(t,e,r,"===",m.strictEqual)},m.notStrictEqual=function(t,e,r){t===e&&o(t,e,r,"!==",m.notStrictEqual)},m["throws"]=function(t,e,r){l.apply(this,[!0].concat(d.call(arguments)))},m.doesNotThrow=function(t,e){l.apply(this,[!1].concat(d.call(arguments)))},m.ifError=function(t){if(t)throw t};var y=Object.keys||function(t){var e=[];for(var r in t)g.call(t,r)&&e.push(r);return e}},function(t,e,r){(function(t,n){function i(t,r){var n={seen:[],stylize:o};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),g(r)?n.showHidden=r:r&&e._extend(n,r),E(n.showHidden)&&(n.showHidden=!1),E(n.depth)&&(n.depth=2),E(n.colors)&&(n.colors=!1),E(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=s),u(n,t,n.depth)}function s(t,e){var r=i.styles[e];return r?"["+i.colors[r][0]+"m"+t+"["+i.colors[r][1]+"m":t}function o(t,e){return t}function a(t){var e={};return t.forEach(function(t,r){e[t]=!0}),e}function u(t,r,n){if(t.customInspect&&r&&k(r.inspect)&&r.inspect!==e.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,t);return x(i)||(i=u(t,i,n)),i}var s=p(t,r);if(s)return s;var o=Object.keys(r),g=a(o);if(t.showHidden&&(o=Object.getOwnPropertyNames(r)),A(r)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return c(r);if(0===o.length){if(k(r)){var m=r.name?": "+r.name:"";return t.stylize("[Function"+m+"]","special")}if(w(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(S(r))return t.stylize(Date.prototype.toString.call(r),"date");if(A(r))return c(r)}var y="",v=!1,b=["{","}"];if(d(r)&&(v=!0,b=["[","]"]),k(r)){var E=r.name?": "+r.name:"";y=" [Function"+E+"]"}if(w(r)&&(y=" "+RegExp.prototype.toString.call(r)),S(r)&&(y=" "+Date.prototype.toUTCString.call(r)),A(r)&&(y=" "+c(r)),0===o.length&&(!v||0==r.length))return b[0]+y+b[1];if(0>n)return w(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special");t.seen.push(r);var _;return _=v?h(t,r,n,g,o):o.map(function(e){return l(t,r,n,g,e,v)}),t.seen.pop(),f(_,y,b)}function p(t,e){if(E(e))return t.stylize("undefined","undefined");if(x(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}return v(e)?t.stylize(""+e,"number"):g(e)?t.stylize(""+e,"boolean"):m(e)?t.stylize("null","null"):void 0}function c(t){return"["+Error.prototype.toString.call(t)+"]"}function h(t,e,r,n,i){for(var s=[],o=0,a=e.length;a>o;++o)N(e,String(o))?s.push(l(t,e,r,n,String(o),!0)):s.push("");return i.forEach(function(i){i.match(/^\d+$/)||s.push(l(t,e,r,n,i,!0))}),s}function l(t,e,r,n,i,s){var o,a,p;if(p=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]},p.get?a=p.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):p.set&&(a=t.stylize("[Setter]","special")),N(n,i)||(o="["+i+"]"),a||(t.seen.indexOf(p.value)<0?(a=m(r)?u(t,p.value,null):u(t,p.value,r-1),a.indexOf("\n")>-1&&(a=s?a.split("\n").map(function(t){return" "+t}).join("\n").substr(2):"\n"+a.split("\n").map(function(t){return" "+t}).join("\n"))):a=t.stylize("[Circular]","special")),E(o)){if(s&&i.match(/^\d+$/))return a;o=JSON.stringify(""+i),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=t.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=t.stylize(o,"string"))}return o+": "+a}function f(t,e,r){var n=0,i=t.reduce(function(t,e){return n++,e.indexOf("\n")>=0&&n++,t+e.replace(/\u001b\[\d\d?m/g,"").length+1},0);return i>60?r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+r[1]:r[0]+e+" "+t.join(", ")+" "+r[1]}function d(t){return Array.isArray(t)}function g(t){return"boolean"==typeof t}function m(t){return null===t}function y(t){return null==t}function v(t){return"number"==typeof t}function x(t){return"string"==typeof t}function b(t){return"symbol"==typeof t}function E(t){return void 0===t}function w(t){return _(t)&&"[object RegExp]"===L(t)}function _(t){return"object"==typeof t&&null!==t}function S(t){return _(t)&&"[object Date]"===L(t)}function A(t){return _(t)&&("[object Error]"===L(t)||t instanceof Error)}function k(t){return"function"==typeof t}function C(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||"undefined"==typeof t}function L(t){return Object.prototype.toString.call(t)}function O(t){return 10>t?"0"+t.toString(10):t.toString(10)}function P(){var t=new Date,e=[O(t.getHours()),O(t.getMinutes()),O(t.getSeconds())].join(":");return[t.getDate(),M[t.getMonth()],e].join(" ")}function N(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var I=/%[sdj%]/g;e.format=function(t){if(!x(t)){for(var e=[],r=0;r=s)return t;switch(t){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return t}}),a=n[r];s>r;a=n[++r])o+=m(a)||!_(a)?" "+a:" "+i(a);return o},e.deprecate=function(r,i){function s(){if(!o){if(n.throwDeprecation)throw new Error(i);n.traceDeprecation?console.trace(i):console.error(i),o=!0}return r.apply(this,arguments)}if(E(t.process))return function(){return e.deprecate(r,i).apply(this,arguments)};if(n.noDeprecation===!0)return r;var o=!1;return s};var R,T={};e.debuglog=function(t){if(E(R)&&(R=n.env.NODE_DEBUG||""),t=t.toUpperCase(),!T[t])if(new RegExp("\\b"+t+"\\b","i").test(R)){var r=n.pid;T[t]=function(){var n=e.format.apply(e,arguments);console.error("%s %d: %s",t,r,n)}}else T[t]=function(){};return T[t]},e.inspect=i,i.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},i.styles={special:"cyan",number:"yellow","boolean":"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=d,e.isBoolean=g,e.isNull=m,e.isNullOrUndefined=y,e.isNumber=v,e.isString=x,e.isSymbol=b,e.isUndefined=E,e.isRegExp=w,e.isObject=_,e.isDate=S,e.isError=A,e.isFunction=k,e.isPrimitive=C,e.isBuffer=r(7);var M=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];e.log=function(){console.log("%s - %s",P(),e.format.apply(e,arguments))},e.inherits=r(8),e._extend=function(t,e){if(!e||!_(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t}}).call(e,function(){return this}(),r(6))},function(t,e){function r(){p&&o&&(p=!1,o.length?u=o.concat(u):c=-1,u.length&&n())}function n(){if(!p){var t=setTimeout(r);p=!0;for(var e=u.length;e;){for(o=u,u=[];++c1)for(var r=1;r=r)return t;for(var i=new Array(r),s=1;r>s;s*=2){n(t,e,s,i);var o=t;t=i,i=o}return t}var r=function(t,r){return e(t.slice(),r)};r.inplace=function(t,r){var i=e(t,r);return i!==t&&n(i,null,t.length,t),t};var n=function(t,e,r,n){var i,s,o,a,u,p=t.length,h=0,c=2*r;for(i=0;p>i;i+=c)for(s=i+r,o=s+r,s>p&&(s=p),o>p&&(o=p),a=i,u=s;;)if(s>a&&o>u)e(t[a],t[u])<=0?n[h++]=t[a++]:n[h++]=t[u++];else if(s>a)n[h++]=t[a++];else{if(!(o>u))break;n[h++]=t[u++]}};t.exports=r}()},function(t,e,r){"use strict";function n(t,e){function r(t,e,u,p){if(t&&"string"==typeof t.type){var h=void 0;if(n&&(h=n(t,e,u,p)),h!==!1)for(var c=i[t.type]||s,p=0;p=0){n=s.value;break}}return n}function a(t){for(var e=t.comments,r=0;r=0)}}}function u(t,e,r){function n(t,e){p(t).forEach(function(t){t.$limitToMethodName="*never*",i(t,e)})}function i(t,e){r?e.blocked.push(t):e.addModuleContextIndependentSuspect(t,e)}"ObjectExpression"===t.type?n(t,e):"AssignmentExpression"===t.type&&"ObjectExpression"===t.right.type?n(t.right,e):"ExpressionStatement"===t.type&&"AssignmentExpression"===t.expression.type&&"ObjectExpression"===t.expression.right.type?n(t.expression.right,e):"VariableDeclaration"===t.type&&1===t.declarations.length&&t.declarations[0].init&&"ObjectExpression"===t.declarations[0].init.type?n(t.declarations[0].init,e):"Property"===t.type?(t.value.$limitToMethodName="*never*",i(t.value,e)):(t.$limitToMethodName="*never*",i(t,e))}function p(t,e){return e=e||[],t.properties.forEach(function(t){var r=t.value;h.someof(r.type,["FunctionExpression","ArrayExpression"])?e.push(r):"ObjectExpression"===r.type&&p(r,e)}),e}var h=r(2);t.exports={inspectComments:a,inspectNode:n};var c=["ngInject","ngNoInject"]},function(t,e,r){"use strict";function n(t,e,r,n,s){this.generator=new u({sourceRoot:s}),this.src=t,this.nodePositions=p(e,i),this.fragments=p(r,function(t,e){return t.start-e.start}),this.inFile=n,this.generator.setSourceContent(this.inFile,t)}function i(t,e){return t.line-e.line||t.column-e.column}var s=r(12),o=r(15),a=r(22).SourceMapConsumer,u=r(22).SourceMapGenerator,p=r(9);n.prototype.calculateMappings=function(){for(var t=this,e=0,r=0,n=0,s=0,o=0;o1?a[a.length-1].length-t.fragments[s].loc.end.column:r+t.fragments[s].str.length-h,n=t.fragments[s].loc.end.line;o0;)++o;++s}o0;i--)if(r=n[i],~r.indexOf("sourceMappingURL=data:"))return e.fromComment(r)}var u=r(20),p=r(21),h=/^\s*\/(?:\/|\*)[@#]\s+sourceMappingURL=data:(?:application|text)\/json;(?:charset[:=]\S+;)?base64,(.*)$/gm,c=/(?:\/\/[@#][ \t]+sourceMappingURL=(.+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^\*]+?)[ \t]*(?:\*\/){1}[ \t]*$)/gm;o.prototype.toJSON=function(t){return JSON.stringify(this.sourcemap,null,t)},o.prototype.toBase64=function(){var e=this.toJSON();return new t(e).toString("base64")},o.prototype.toComment=function(t){var e=this.toBase64(),r="sourceMappingURL=data:application/json;base64,"+e;return t&&t.multiline?"/*# "+r+" */":"//# "+r},o.prototype.toObject=function(){return JSON.parse(this.toJSON())},o.prototype.addProperty=function(t,e){if(this.sourcemap.hasOwnProperty(t))throw new Error("property %s already exists on the sourcemap, use set property instead");return this.setProperty(t,e)},o.prototype.setProperty=function(t,e){return this.sourcemap[t]=e,this},o.prototype.getProperty=function(t){return this.sourcemap[t]},e.fromObject=function(t){return new o(t)},e.fromJSON=function(t){return new o(t,{isJSON:!0})},e.fromBase64=function(t){return new o(t,{isEncoded:!0})},e.fromComment=function(t){return t=t.replace(/^\/\*/g,"//").replace(/\*\/$/g,""),new o(t,{isEncoded:!0,hasComment:!0})},e.fromMapFileComment=function(t,e){return new o(t,{commentFileDir:e,isFileComment:!0,isJSON:!0})},e.fromSource=function(t,r){if(r)return a(t);var n=t.match(h);return h.lastIndex=0,n?e.fromComment(n.pop()):null},e.fromMapFileSource=function(t,r){var n=t.match(c);return c.lastIndex=0,n?e.fromMapFileComment(n.pop(),r):null},e.removeComments=function(t){return h.lastIndex=0,t.replace(h,"")},e.removeMapFileComments=function(t){return c.lastIndex=0,t.replace(c,"")},e.__defineGetter__("commentRegex",function(){return h.lastIndex=0,h}),e.__defineGetter__("mapFileCommentRegex",function(){return c.lastIndex=0,c})}).call(e,r(16).Buffer)},function(t,e,r){(function(t,n){function i(){function t(){}try{var e=new Uint8Array(1);return e.foo=function(){return 42},e.constructor=t,42===e.foo()&&e.constructor===t&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(r){return!1}}function s(){return t.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function t(e){return this instanceof t?(this.length=0,this.parent=void 0,"number"==typeof e?o(this,e):"string"==typeof e?a(this,e,arguments.length>1?arguments[1]:"utf8"):u(this,e)):arguments.length>1?new t(e,arguments[1]):new t(e)}function o(e,r){if(e=g(e,0>r?0:0|m(r)),!t.TYPED_ARRAY_SUPPORT)for(var n=0;r>n;n++)e[n]=0;return e}function a(t,e,r){("string"!=typeof r||""===r)&&(r="utf8");var n=0|v(e,r);return t=g(t,n),t.write(e,r),t}function u(e,r){if(t.isBuffer(r))return p(e,r);if(X(r))return h(e,r);if(null==r)throw new TypeError("must start with number, buffer, array or string");if("undefined"!=typeof ArrayBuffer){if(r.buffer instanceof ArrayBuffer)return c(e,r);if(r instanceof ArrayBuffer)return l(e,r)}return r.length?f(e,r):d(e,r)}function p(t,e){var r=0|m(e.length);return t=g(t,r),e.copy(t,0,0,r),t}function h(t,e){var r=0|m(e.length);t=g(t,r);for(var n=0;r>n;n+=1)t[n]=255&e[n];return t}function c(t,e){var r=0|m(e.length);t=g(t,r);for(var n=0;r>n;n+=1)t[n]=255&e[n];return t}function l(e,r){return t.TYPED_ARRAY_SUPPORT?(r.byteLength,e=t._augment(new Uint8Array(r))):e=c(e,new Uint8Array(r)),e}function f(t,e){var r=0|m(e.length);t=g(t,r);for(var n=0;r>n;n+=1)t[n]=255&e[n];return t}function d(t,e){var r,n=0;"Buffer"===e.type&&X(e.data)&&(r=e.data,n=0|m(r.length)),t=g(t,n);for(var i=0;n>i;i+=1)t[i]=255&r[i];return t}function g(e,r){t.TYPED_ARRAY_SUPPORT?(e=t._augment(new Uint8Array(r)),e.__proto__=t.prototype):(e.length=r,e._isBuffer=!0);var n=0!==r&&r<=t.poolSize>>>1;return n&&(e.parent=Q),e}function m(t){if(t>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|t}function y(e,r){if(!(this instanceof y))return new y(e,r);var n=new t(e,r);return delete n.parent,n}function v(t,e){"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"binary":case"raw":case"raws":return r;case"utf8":case"utf-8":return q(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return z(t).length;default:if(n)return q(t).length;e=(""+e).toLowerCase(),n=!0}}function x(t,e,r){var n=!1;if(e=0|e,r=void 0===r||r===1/0?this.length:0|r,t||(t="utf8"),0>e&&(e=0),r>this.length&&(r=this.length),e>=r)return"";for(;;)switch(t){case"hex":return P(this,e,r);case"utf8":case"utf-8":return C(this,e,r);case"ascii":return O(this,e,r);case"binary":return N(this,e,r);case"base64":return k(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function b(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var s=e.length;if(s%2!==0)throw new Error("Invalid hex string");n>s/2&&(n=s/2);for(var o=0;n>o;o++){var a=parseInt(e.substr(2*o,2),16);if(isNaN(a))throw new Error("Invalid hex string");t[r+o]=a}return o}function w(t,e,r,n){return W(q(e,t.length-r),t,r,n)}function E(t,e,r,n){return W(G(e),t,r,n)}function _(t,e,r,n){return E(t,e,r,n)}function S(t,e,r,n){return W(z(e),t,r,n)}function A(t,e,r,n){return W(Y(e,t.length-r),t,r,n)}function k(t,e,r){return 0===e&&r===t.length?J.fromByteArray(t):J.fromByteArray(t.slice(e,r))}function C(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;r>i;){var s=t[i],o=null,a=s>239?4:s>223?3:s>191?2:1;if(r>=i+a){var u,p,h,c;switch(a){case 1:128>s&&(o=s);break;case 2:u=t[i+1],128===(192&u)&&(c=(31&s)<<6|63&u,c>127&&(o=c));break;case 3:u=t[i+1],p=t[i+2],128===(192&u)&&128===(192&p)&&(c=(15&s)<<12|(63&u)<<6|63&p,c>2047&&(55296>c||c>57343)&&(o=c));break;case 4:u=t[i+1],p=t[i+2],h=t[i+3],128===(192&u)&&128===(192&p)&&128===(192&h)&&(c=(15&s)<<18|(63&u)<<12|(63&p)<<6|63&h,c>65535&&1114112>c&&(o=c))}}null===o?(o=65533,a=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),i+=a}return L(n)}function L(t){var e=t.length;if(Z>=e)return String.fromCharCode.apply(String,t);for(var r="",n=0;e>n;)r+=String.fromCharCode.apply(String,t.slice(n,n+=Z));return r}function O(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;r>i;i++)n+=String.fromCharCode(127&t[i]);return n}function N(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;r>i;i++)n+=String.fromCharCode(t[i]);return n}function P(t,e,r){var n=t.length;(!e||0>e)&&(e=0),(!r||0>r||r>n)&&(r=n);for(var i="",s=e;r>s;s++)i+=V(t[s]);return i}function I(t,e,r){for(var n=t.slice(e,r),i="",s=0;st)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function T(e,r,n,i,s,o){if(!t.isBuffer(e))throw new TypeError("buffer must be a Buffer instance");if(r>s||o>r)throw new RangeError("value is out of bounds");if(n+i>e.length)throw new RangeError("index out of range")}function M(t,e,r,n){0>e&&(e=65535+e+1);for(var i=0,s=Math.min(t.length-r,2);s>i;i++)t[r+i]=(e&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function B(t,e,r,n){0>e&&(e=4294967295+e+1);for(var i=0,s=Math.min(t.length-r,4);s>i;i++)t[r+i]=e>>>8*(n?i:3-i)&255}function j(t,e,r,n,i,s){if(e>i||s>e)throw new RangeError("value is out of bounds");if(r+n>t.length)throw new RangeError("index out of range");if(0>r)throw new RangeError("index out of range")}function F(t,e,r,n,i){return i||j(t,e,r,4,3.4028234663852886e38,-3.4028234663852886e38),H.write(t,e,r,n,23,4),r+4}function D(t,e,r,n,i){return i||j(t,e,r,8,1.7976931348623157e308,-1.7976931348623157e308),H.write(t,e,r,n,52,8),r+8}function U(t){if(t=$(t).replace(tt,""),t.length<2)return"";for(;t.length%4!==0;)t+="=";return t}function $(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function V(t){return 16>t?"0"+t.toString(16):t.toString(16)}function q(t,e){e=e||1/0;for(var r,n=t.length,i=null,s=[],o=0;n>o;o++){if(r=t.charCodeAt(o),r>55295&&57344>r){if(!i){if(r>56319){(e-=3)>-1&&s.push(239,191,189);continue}if(o+1===n){(e-=3)>-1&&s.push(239,191,189);continue}i=r;continue}if(56320>r){(e-=3)>-1&&s.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&s.push(239,191,189);if(i=null,128>r){if((e-=1)<0)break;s.push(r)}else if(2048>r){if((e-=2)<0)break;s.push(r>>6|192,63&r|128)}else if(65536>r){if((e-=3)<0)break;s.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(1114112>r))throw new Error("Invalid code point");if((e-=4)<0)break;s.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return s}function G(t){for(var e=[],r=0;r>8,i=r%256,s.push(i),s.push(n);return s}function z(t){return J.toByteArray(U(t))}function W(t,e,r,n){for(var i=0;n>i&&!(i+r>=e.length||i>=t.length);i++)e[i+r]=t[i];return i}/*! +!function(){function e(t,e){"function"!=typeof e&&(e=function(t,e){return String(t).localeCompare(e)});var r=t.length;if(1>=r)return t;for(var i=new Array(r),s=1;r>s;s*=2){n(t,e,s,i);var o=t;t=i,i=o}return t}var r=function(t,r){return e(t.slice(),r)};r.inplace=function(t,r){var i=e(t,r);return i!==t&&n(i,null,t.length,t),t};var n=function(t,e,r,n){var i,s,o,a,u,p=t.length,c=0,h=2*r;for(i=0;p>i;i+=h)for(s=i+r,o=s+r,s>p&&(s=p),o>p&&(o=p),a=i,u=s;;)if(s>a&&o>u)e(t[a],t[u])<=0?n[c++]=t[a++]:n[c++]=t[u++];else if(s>a)n[c++]=t[a++];else{if(!(o>u))break;n[c++]=t[u++]}};t.exports=r}()},function(t,e,r){"use strict";function n(t,e){function r(t,e,u,p){if(t&&"string"==typeof t.type){var c=void 0;if(n&&(c=n(t,e,u,p)),c!==!1)for(var h=i[t.type]||s,p=0;p=0){n=s.value;break}}return n}function a(t){for(var e=t.comments,r=0;r=0)}}}function u(t){return"ArrayExpression"!==t.type?!1:t.elements.length>=1&&t.elements.every(function(t){return"Literal"===t.type&&l.string(t.value)})}function p(t){for(var e=t.$parent.body,r=0;r1?a[a.length-1].length-t.fragments[s].loc.end.column:r+t.fragments[s].str.length-c,n=t.fragments[s].loc.end.line;o0;)++o;++s}o0;i--)if(r=n[i],~r.indexOf("sourceMappingURL=data:"))return e.fromComment(r)}var u=r(20),p=r(21),c=/^\s*\/(?:\/|\*)[@#]\s+sourceMappingURL=data:(?:application|text)\/json;(?:charset[:=]\S+;)?base64,(.*)$/gm,h=/(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^\*]+?)[ \t]*(?:\*\/){1}[ \t]*$)/gm;o.prototype.toJSON=function(t){return JSON.stringify(this.sourcemap,null,t)},o.prototype.toBase64=function(){var e=this.toJSON();return new t(e).toString("base64")},o.prototype.toComment=function(t){var e=this.toBase64(),r="sourceMappingURL=data:application/json;base64,"+e;return t&&t.multiline?"/*# "+r+" */":"//# "+r},o.prototype.toObject=function(){return JSON.parse(this.toJSON())},o.prototype.addProperty=function(t,e){if(this.sourcemap.hasOwnProperty(t))throw new Error("property %s already exists on the sourcemap, use set property instead");return this.setProperty(t,e)},o.prototype.setProperty=function(t,e){return this.sourcemap[t]=e,this},o.prototype.getProperty=function(t){return this.sourcemap[t]},e.fromObject=function(t){return new o(t)},e.fromJSON=function(t){return new o(t,{isJSON:!0})},e.fromBase64=function(t){return new o(t,{isEncoded:!0})},e.fromComment=function(t){return t=t.replace(/^\/\*/g,"//").replace(/\*\/$/g,""),new o(t,{isEncoded:!0,hasComment:!0})},e.fromMapFileComment=function(t,e){return new o(t,{commentFileDir:e,isFileComment:!0,isJSON:!0})},e.fromSource=function(t,r){if(r){var n=a(t);return n?n:null}var i=t.match(c);return c.lastIndex=0,i?e.fromComment(i.pop()):null},e.fromMapFileSource=function(t,r){var n=t.match(h);return h.lastIndex=0,n?e.fromMapFileComment(n.pop(),r):null},e.removeComments=function(t){return c.lastIndex=0,t.replace(c,"")},e.removeMapFileComments=function(t){return h.lastIndex=0,t.replace(h,"")},Object.defineProperty(e,"commentRegex",{get:function(){return c.lastIndex=0,c}}),Object.defineProperty(e,"mapFileCommentRegex",{get:function(){return h.lastIndex=0,h}})}).call(e,r(16).Buffer)},function(t,e,r){(function(t,n){/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ -var J=r(17),H=r(18),X=r(19);e.Buffer=t,e.SlowBuffer=y,e.INSPECT_MAX_BYTES=50,t.poolSize=8192;var Q={};t.TYPED_ARRAY_SUPPORT=void 0!==n.TYPED_ARRAY_SUPPORT?n.TYPED_ARRAY_SUPPORT:i(),t.TYPED_ARRAY_SUPPORT&&(t.prototype.__proto__=Uint8Array.prototype,t.__proto__=Uint8Array),t.isBuffer=function(t){return!(null==t||!t._isBuffer)},t.compare=function(e,r){if(!t.isBuffer(e)||!t.isBuffer(r))throw new TypeError("Arguments must be Buffers");if(e===r)return 0;for(var n=e.length,i=r.length,s=0,o=Math.min(n,i);o>s&&e[s]===r[s];)++s;return s!==o&&(n=e[s],i=r[s]),i>n?-1:n>i?1:0},t.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},t.concat=function(e,r){if(!X(e))throw new TypeError("list argument must be an Array of Buffers.");if(0===e.length)return new t(0);var n;if(void 0===r)for(r=0,n=0;n0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),""},t.prototype.compare=function(e){if(!t.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?0:t.compare(this,e)},t.prototype.indexOf=function(e,r){function n(t,e,r){for(var n=-1,i=0;r+i2147483647?r=2147483647:-2147483648>r&&(r=-2147483648),r>>=0,0===this.length)return-1;if(r>=this.length)return-1;if(0>r&&(r=Math.max(this.length+r,0)),"string"==typeof e)return 0===e.length?-1:String.prototype.indexOf.call(this,e,r);if(t.isBuffer(e))return n(this,e,r);if("number"==typeof e)return t.TYPED_ARRAY_SUPPORT&&"function"===Uint8Array.prototype.indexOf?Uint8Array.prototype.indexOf.call(this,e,r):n(this,[e],r);throw new TypeError("val must be string, number or Buffer")},t.prototype.get=function(t){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(t)},t.prototype.set=function(t,e){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(t,e)},t.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else if(isFinite(e))e=0|e,isFinite(r)?(r=0|r,void 0===n&&(n="utf8")):(n=r,r=void 0);else{var i=n;n=e,e=0|r,r=i}var s=this.length-e;if((void 0===r||r>s)&&(r=s),t.length>0&&(0>r||0>e)||e>this.length)throw new RangeError("attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return b(this,t,e,r);case"utf8":case"utf-8":return w(this,t,e,r);case"ascii":return E(this,t,e,r);case"binary":return _(this,t,e,r);case"base64":return S(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,t,e,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},t.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Z=4096;t.prototype.slice=function(e,r){var n=this.length;e=~~e,r=void 0===r?n:~~r,0>e?(e+=n,0>e&&(e=0)):e>n&&(e=n),0>r?(r+=n,0>r&&(r=0)):r>n&&(r=n),e>r&&(r=e);var i;if(t.TYPED_ARRAY_SUPPORT)i=t._augment(this.subarray(e,r));else{var s=r-e;i=new t(s,void 0);for(var o=0;s>o;o++)i[o]=this[o+e]}return i.length&&(i.parent=this.parent||this),i},t.prototype.readUIntLE=function(t,e,r){t=0|t,e=0|e,r||R(t,e,this.length);for(var n=this[t],i=1,s=0;++s0&&(i*=256);)n+=this[t+--e]*i;return n},t.prototype.readUInt8=function(t,e){return e||R(t,1,this.length),this[t]},t.prototype.readUInt16LE=function(t,e){return e||R(t,2,this.length),this[t]|this[t+1]<<8},t.prototype.readUInt16BE=function(t,e){return e||R(t,2,this.length),this[t]<<8|this[t+1]},t.prototype.readUInt32LE=function(t,e){return e||R(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},t.prototype.readUInt32BE=function(t,e){return e||R(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},t.prototype.readIntLE=function(t,e,r){t=0|t,e=0|e,r||R(t,e,this.length);for(var n=this[t],i=1,s=0;++s=i&&(n-=Math.pow(2,8*e)),n},t.prototype.readIntBE=function(t,e,r){t=0|t,e=0|e,r||R(t,e,this.length);for(var n=e,i=1,s=this[t+--n];n>0&&(i*=256);)s+=this[t+--n]*i;return i*=128,s>=i&&(s-=Math.pow(2,8*e)),s},t.prototype.readInt8=function(t,e){return e||R(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},t.prototype.readInt16LE=function(t,e){e||R(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},t.prototype.readInt16BE=function(t,e){e||R(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},t.prototype.readInt32LE=function(t,e){return e||R(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},t.prototype.readInt32BE=function(t,e){return e||R(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},t.prototype.readFloatLE=function(t,e){return e||R(t,4,this.length),H.read(this,t,!0,23,4)},t.prototype.readFloatBE=function(t,e){return e||R(t,4,this.length),H.read(this,t,!1,23,4)},t.prototype.readDoubleLE=function(t,e){return e||R(t,8,this.length),H.read(this,t,!0,52,8)},t.prototype.readDoubleBE=function(t,e){return e||R(t,8,this.length),H.read(this,t,!1,52,8)},t.prototype.writeUIntLE=function(t,e,r,n){t=+t,e=0|e,r=0|r,n||T(this,t,e,r,Math.pow(2,8*r),0);var i=1,s=0;for(this[e]=255&t;++s=0&&(s*=256);)this[e+i]=t/s&255;return e+r},t.prototype.writeUInt8=function(e,r,n){return e=+e,r=0|r,n||T(this,e,r,1,255,0),t.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[r]=255&e,r+1},t.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=0|r,n||T(this,e,r,2,65535,0),t.TYPED_ARRAY_SUPPORT?(this[r]=255&e,this[r+1]=e>>>8):M(this,e,r,!0),r+2},t.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=0|r,n||T(this,e,r,2,65535,0),t.TYPED_ARRAY_SUPPORT?(this[r]=e>>>8,this[r+1]=255&e):M(this,e,r,!1),r+2},t.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=0|r,n||T(this,e,r,4,4294967295,0),t.TYPED_ARRAY_SUPPORT?(this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=255&e):B(this,e,r,!0),r+4},t.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=0|r,n||T(this,e,r,4,4294967295,0),t.TYPED_ARRAY_SUPPORT?(this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=255&e):B(this,e,r,!1),r+4},t.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e=0|e,!n){var i=Math.pow(2,8*r-1);T(this,t,e,r,i-1,-i)}var s=0,o=1,a=0>t?1:0;for(this[e]=255&t;++s>0)-a&255;return e+r},t.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e=0|e,!n){var i=Math.pow(2,8*r-1);T(this,t,e,r,i-1,-i)}var s=r-1,o=1,a=0>t?1:0;for(this[e+s]=255&t;--s>=0&&(o*=256);)this[e+s]=(t/o>>0)-a&255;return e+r},t.prototype.writeInt8=function(e,r,n){return e=+e,r=0|r,n||T(this,e,r,1,127,-128),t.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),0>e&&(e=255+e+1),this[r]=255&e,r+1},t.prototype.writeInt16LE=function(e,r,n){return e=+e,r=0|r,n||T(this,e,r,2,32767,-32768),t.TYPED_ARRAY_SUPPORT?(this[r]=255&e,this[r+1]=e>>>8):M(this,e,r,!0),r+2},t.prototype.writeInt16BE=function(e,r,n){return e=+e,r=0|r,n||T(this,e,r,2,32767,-32768),t.TYPED_ARRAY_SUPPORT?(this[r]=e>>>8,this[r+1]=255&e):M(this,e,r,!1),r+2},t.prototype.writeInt32LE=function(e,r,n){return e=+e,r=0|r,n||T(this,e,r,4,2147483647,-2147483648),t.TYPED_ARRAY_SUPPORT?(this[r]=255&e,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24):B(this,e,r,!0),r+4},t.prototype.writeInt32BE=function(e,r,n){return e=+e,r=0|r,n||T(this,e,r,4,2147483647,-2147483648),0>e&&(e=4294967295+e+1),t.TYPED_ARRAY_SUPPORT?(this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=255&e):B(this,e,r,!1),r+4},t.prototype.writeFloatLE=function(t,e,r){return F(this,t,e,!0,r)},t.prototype.writeFloatBE=function(t,e,r){return F(this,t,e,!1,r)},t.prototype.writeDoubleLE=function(t,e,r){return D(this,t,e,!0,r)},t.prototype.writeDoubleBE=function(t,e,r){return D(this,t,e,!1,r)},t.prototype.copy=function(e,r,n,i){if(n||(n=0),i||0===i||(i=this.length),r>=e.length&&(r=e.length),r||(r=0),i>0&&n>i&&(i=n),i===n)return 0;if(0===e.length||0===this.length)return 0;if(0>r)throw new RangeError("targetStart out of bounds");if(0>n||n>=this.length)throw new RangeError("sourceStart out of bounds");if(0>i)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-rn&&i>r)for(s=o-1;s>=0;s--)e[s+r]=this[s+n];else if(1e3>o||!t.TYPED_ARRAY_SUPPORT)for(s=0;o>s;s++)e[s+r]=this[s+n];else e._set(this.subarray(n,n+o),r);return o},t.prototype.fill=function(t,e,r){if(t||(t=0),e||(e=0),r||(r=this.length),e>r)throw new RangeError("end < start");if(r!==e&&0!==this.length){if(0>e||e>=this.length)throw new RangeError("start out of bounds");if(0>r||r>this.length)throw new RangeError("end out of bounds");var n;if("number"==typeof t)for(n=e;r>n;n++)this[n]=t;else{var i=q(t.toString()),s=i.length;for(n=e;r>n;n++)this[n]=i[n%s]}return this}},t.prototype.toArrayBuffer=function(){if("undefined"!=typeof Uint8Array){if(t.TYPED_ARRAY_SUPPORT)return new t(this).buffer;for(var e=new Uint8Array(this.length),r=0,n=e.length;n>r;r+=1)e[r]=this[r];return e.buffer}throw new TypeError("Buffer.toArrayBuffer not supported in this browser")};var K=t.prototype;t._augment=function(e){return e.constructor=t,e._isBuffer=!0,e._set=e.set,e.get=K.get,e.set=K.set,e.write=K.write,e.toString=K.toString,e.toLocaleString=K.toString,e.toJSON=K.toJSON,e.equals=K.equals,e.compare=K.compare,e.indexOf=K.indexOf,e.copy=K.copy,e.slice=K.slice,e.readUIntLE=K.readUIntLE,e.readUIntBE=K.readUIntBE,e.readUInt8=K.readUInt8,e.readUInt16LE=K.readUInt16LE,e.readUInt16BE=K.readUInt16BE,e.readUInt32LE=K.readUInt32LE,e.readUInt32BE=K.readUInt32BE,e.readIntLE=K.readIntLE,e.readIntBE=K.readIntBE,e.readInt8=K.readInt8,e.readInt16LE=K.readInt16LE,e.readInt16BE=K.readInt16BE,e.readInt32LE=K.readInt32LE,e.readInt32BE=K.readInt32BE,e.readFloatLE=K.readFloatLE,e.readFloatBE=K.readFloatBE,e.readDoubleLE=K.readDoubleLE,e.readDoubleBE=K.readDoubleBE,e.writeUInt8=K.writeUInt8,e.writeUIntLE=K.writeUIntLE,e.writeUIntBE=K.writeUIntBE,e.writeUInt16LE=K.writeUInt16LE,e.writeUInt16BE=K.writeUInt16BE,e.writeUInt32LE=K.writeUInt32LE,e.writeUInt32BE=K.writeUInt32BE,e.writeIntLE=K.writeIntLE,e.writeIntBE=K.writeIntBE,e.writeInt8=K.writeInt8,e.writeInt16LE=K.writeInt16LE,e.writeInt16BE=K.writeInt16BE,e.writeInt32LE=K.writeInt32LE,e.writeInt32BE=K.writeInt32BE,e.writeFloatLE=K.writeFloatLE,e.writeFloatBE=K.writeFloatBE,e.writeDoubleLE=K.writeDoubleLE,e.writeDoubleBE=K.writeDoubleBE,e.fill=K.fill,e.inspect=K.inspect,e.toArrayBuffer=K.toArrayBuffer,e};var tt=/[^+\/0-9A-Za-z-_]/g}).call(e,r(16).Buffer,function(){return this}())},function(t,e,r){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";!function(t){"use strict";function e(t){var e=t.charCodeAt(0);return e===o||e===c?62:e===a||e===l?63:u>e?-1:u+10>e?e-u+26+26:h+26>e?e-h:p+26>e?e-p+26:void 0}function r(t){function r(t){p[c++]=t}var n,i,o,a,u,p;if(t.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var h=t.length;u="="===t.charAt(h-2)?2:"="===t.charAt(h-1)?1:0,p=new s(3*t.length/4-u),o=u>0?t.length-4:t.length;var c=0;for(n=0,i=0;o>n;n+=4,i+=3)a=e(t.charAt(n))<<18|e(t.charAt(n+1))<<12|e(t.charAt(n+2))<<6|e(t.charAt(n+3)),r((16711680&a)>>16),r((65280&a)>>8),r(255&a);return 2===u?(a=e(t.charAt(n))<<2|e(t.charAt(n+1))>>4,r(255&a)):1===u&&(a=e(t.charAt(n))<<10|e(t.charAt(n+1))<<4|e(t.charAt(n+2))>>2,r(a>>8&255),r(255&a)),p}function i(t){function e(t){return n.charAt(t)}function r(t){return e(t>>18&63)+e(t>>12&63)+e(t>>6&63)+e(63&t)}var i,s,o,a=t.length%3,u="";for(i=0,o=t.length-a;o>i;i+=3)s=(t[i]<<16)+(t[i+1]<<8)+t[i+2],u+=r(s);switch(a){case 1:s=t[t.length-1],u+=e(s>>2),u+=e(s<<4&63),u+="==";break;case 2:s=(t[t.length-2]<<8)+t[t.length-1],u+=e(s>>10),u+=e(s>>4&63),u+=e(s<<2&63),u+="="}return u}var s="undefined"!=typeof Uint8Array?Uint8Array:Array,o="+".charCodeAt(0),a="/".charCodeAt(0),u="0".charCodeAt(0),p="a".charCodeAt(0),h="A".charCodeAt(0),c="-".charCodeAt(0),l="_".charCodeAt(0);t.toByteArray=r,t.fromByteArray=i}(e)},function(t,e){e.read=function(t,e,r,n,i){var s,o,a=8*i-n-1,u=(1<>1,h=-7,c=r?i-1:0,l=r?-1:1,f=t[e+c];for(c+=l,s=f&(1<<-h)-1,f>>=-h,h+=a;h>0;s=256*s+t[e+c],c+=l,h-=8);for(o=s&(1<<-h)-1,s>>=-h,h+=n;h>0;o=256*o+t[e+c],c+=l,h-=8);if(0===s)s=1-p;else{if(s===u)return o?NaN:(f?-1:1)*(1/0);o+=Math.pow(2,n),s-=p}return(f?-1:1)*o*Math.pow(2,s-n)},e.write=function(t,e,r,n,i,s){var o,a,u,p=8*s-i-1,h=(1<>1,l=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:s-1,d=n?1:-1,g=0>e||0===e&&0>1/e?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,o=h):(o=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-o))<1&&(o--,u*=2),e+=o+c>=1?l/u:l*Math.pow(2,1-c),e*u>=2&&(o++,u/=2),o+c>=h?(a=0,o=h):o+c>=1?(a=(e*u-1)*Math.pow(2,i),o+=c):(a=e*Math.pow(2,c-1)*Math.pow(2,i),o=0));i>=8;t[r+f]=255&a,f+=d,a/=256,i-=8);for(o=o<0;t[r+f]=255&o,f+=d,o/=256,p-=8);t[r+f-d]|=128*g}},function(t,e){var r=Array.isArray,n=Object.prototype.toString;t.exports=r||function(t){return!!t&&"[object Array]"==n.call(t)}},function(t,e){},function(t,e,r){(function(t){function r(t,e){for(var r=0,n=t.length-1;n>=0;n--){var i=t[n];"."===i?t.splice(n,1):".."===i?(t.splice(n,1),r++):r&&(t.splice(n,1),r--)}if(e)for(;r--;r)t.unshift("..");return t}function n(t,e){if(t.filter)return t.filter(e);for(var r=[],n=0;n=-1&&!i;s--){var o=s>=0?arguments[s]:t.cwd();if("string"!=typeof o)throw new TypeError("Arguments to path.resolve must be strings");o&&(e=o+"/"+e,i="/"===o.charAt(0))}return e=r(n(e.split("/"),function(t){return!!t}),!i).join("/"),(i?"/":"")+e||"."},e.normalize=function(t){var i=e.isAbsolute(t),s="/"===o(t,-1);return t=r(n(t.split("/"),function(t){return!!t}),!i).join("/"),t||i||(t="."),t&&s&&(t+="/"),(i?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(n(t,function(t,e){if("string"!=typeof t)throw new TypeError("Arguments to path.join must be strings");return t}).join("/"))},e.relative=function(t,r){function n(t){for(var e=0;e=0&&""===t[r];r--);return e>r?[]:t.slice(e,r-e+1)}t=e.resolve(t).substr(1),r=e.resolve(r).substr(1);for(var i=n(t.split("/")),s=n(r.split("/")),o=Math.min(i.length,s.length),a=o,u=0;o>u;u++)if(i[u]!==s[u]){a=u;break}for(var p=[],u=a;ue&&(e=t.length+e),t.substr(e,r)}}).call(e,r(6))},function(t,e,r){e.SourceMapGenerator=r(23).SourceMapGenerator,e.SourceMapConsumer=r(29).SourceMapConsumer,e.SourceNode=r(32).SourceNode},function(t,e,r){var n;n=function(t,e,n){function i(t){t||(t={}),this._file=o.getArg(t,"file",null),this._sourceRoot=o.getArg(t,"sourceRoot",null),this._skipValidation=o.getArg(t,"skipValidation",!1),this._sources=new a,this._names=new a,this._mappings=new u,this._sourcesContents=null}var s=r(24),o=r(26),a=r(27).ArraySet,u=r(28).MappingList;i.prototype._version=3,i.fromSourceMap=function(t){var e=t.sourceRoot,r=new i({file:t.file,sourceRoot:e});return t.eachMapping(function(t){var n={generated:{line:t.generatedLine,column:t.generatedColumn}};null!=t.source&&(n.source=t.source,null!=e&&(n.source=o.relative(e,n.source)),n.original={line:t.originalLine,column:t.originalColumn},null!=t.name&&(n.name=t.name)),r.addMapping(n)}),t.sources.forEach(function(e){var n=t.sourceContentFor(e);null!=n&&r.setSourceContent(e,n)}),r},i.prototype.addMapping=function(t){var e=o.getArg(t,"generated"),r=o.getArg(t,"original",null),n=o.getArg(t,"source",null),i=o.getArg(t,"name",null);this._skipValidation||this._validateMapping(e,r,n,i),null==n||this._sources.has(n)||this._sources.add(n),null==i||this._names.has(i)||this._names.add(i),this._mappings.add({generatedLine:e.line,generatedColumn:e.column,originalLine:null!=r&&r.line,originalColumn:null!=r&&r.column,source:n,name:i})},i.prototype.setSourceContent=function(t,e){var r=t;null!=this._sourceRoot&&(r=o.relative(this._sourceRoot,r)),null!=e?(this._sourcesContents||(this._sourcesContents={}),this._sourcesContents[o.toSetString(r)]=e):this._sourcesContents&&(delete this._sourcesContents[o.toSetString(r)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},i.prototype.applySourceMap=function(t,e,r){var n=e;if(null==e){if(null==t.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');n=t.file}var i=this._sourceRoot;null!=i&&(n=o.relative(i,n));var s=new a,u=new a;this._mappings.unsortedForEach(function(e){if(e.source===n&&null!=e.originalLine){var a=t.originalPositionFor({line:e.originalLine,column:e.originalColumn});null!=a.source&&(e.source=a.source,null!=r&&(e.source=o.join(r,e.source)),null!=i&&(e.source=o.relative(i,e.source)),e.originalLine=a.line,e.originalColumn=a.column,null!=a.name&&(e.name=a.name))}var p=e.source;null==p||s.has(p)||s.add(p);var h=e.name;null==h||u.has(h)||u.add(h)},this),this._sources=s,this._names=u,t.sources.forEach(function(e){var n=t.sourceContentFor(e);null!=n&&(null!=r&&(e=o.join(r,e)),null!=i&&(e=o.relative(i,e)),this.setSourceContent(e,n))},this)},i.prototype._validateMapping=function(t,e,r,n){if((!(t&&"line"in t&&"column"in t&&t.line>0&&t.column>=0)||e||r||n)&&!(t&&"line"in t&&"column"in t&&e&&"line"in e&&"column"in e&&t.line>0&&t.column>=0&&e.line>0&&e.column>=0&&r))throw new Error("Invalid mapping: "+JSON.stringify({generated:t,source:r,original:e,name:n}))},i.prototype._serializeMappings=function(){for(var t,e=0,r=1,n=0,i=0,a=0,u=0,p="",h=this._mappings.toArray(),c=0,l=h.length;l>c;c++){if(t=h[c],t.generatedLine!==r)for(e=0;t.generatedLine!==r;)p+=";",r++;else if(c>0){if(!o.compareByGeneratedPositionsInflated(t,h[c-1]))continue;p+=","}p+=s.encode(t.generatedColumn-e),e=t.generatedColumn,null!=t.source&&(p+=s.encode(this._sources.indexOf(t.source)-u),u=this._sources.indexOf(t.source),p+=s.encode(t.originalLine-1-i),i=t.originalLine-1,p+=s.encode(t.originalColumn-n),n=t.originalColumn,null!=t.name&&(p+=s.encode(this._names.indexOf(t.name)-a),a=this._names.indexOf(t.name)))}return p},i.prototype._generateSourcesContent=function(t,e){return t.map(function(t){if(!this._sourcesContents)return null;null!=e&&(t=o.relative(e,t));var r=o.toSetString(t);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null},this)},i.prototype.toJSON=function(){var t={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(t.file=this._file),null!=this._sourceRoot&&(t.sourceRoot=this._sourceRoot),this._sourcesContents&&(t.sourcesContent=this._generateSourcesContent(t.sources,t.sourceRoot)),t},i.prototype.toString=function(){return JSON.stringify(this.toJSON())},e.SourceMapGenerator=i}.call(e,r,e,t),!(void 0!==n&&(t.exports=n))},function(t,e,r){var n;n=function(t,e,n){function i(t){return 0>t?(-t<<1)+1:(t<<1)+0}function s(t){var e=1===(1&t),r=t>>1;return e?-r:r}var o=r(25),a=5,u=1<>>=a,n>0&&(e|=h),r+=o.encode(e);while(n>0);return r},e.decode=function(t,e,r){var n,i,u=t.length,c=0,l=0;do{if(e>=u)throw new Error("Expected more digits in base 64 VLQ value.");if(i=o.decode(t.charCodeAt(e++)),-1===i)throw new Error("Invalid base64 digit: "+t.charAt(e-1));n=!!(i&h),i&=p,c+=i<=0&&t=e&&r>=t?t-e:t>=n&&i>=t?t-n+p:t>=s&&o>=t?t-s+h:t==a?62:t==u?63:-1}}.call(e,r,e,t),!(void 0!==n&&(t.exports=n))},function(t,e,r){var n;n=function(t,e,r){function n(t,e,r){if(e in t)return t[e];if(3===arguments.length)return r;throw new Error('"'+e+'" is a required argument.')}function i(t){var e=t.match(g);return e?{scheme:e[1],auth:e[2],host:e[3],port:e[4],path:e[5]}:null}function s(t){var e="";return t.scheme&&(e+=t.scheme+":"),e+="//",t.auth&&(e+=t.auth+"@"),t.host&&(e+=t.host),t.port&&(e+=":"+t.port),t.path&&(e+=t.path),e}function o(t){var e=t,r=i(t);if(r){if(!r.path)return t;e=r.path}for(var n,o="/"===e.charAt(0),a=e.split(/\/+/),u=0,p=a.length-1;p>=0;p--)n=a[p],"."===n?a.splice(p,1):".."===n?u++:u>0&&(""===n?(a.splice(p+1,u),u=0):(a.splice(p,2),u--));return e=a.join("/"),""===e&&(e=o?"/":"."),r?(r.path=e,s(r)):e}function a(t,e){""===t&&(t="."),""===e&&(e=".");var r=i(e),n=i(t);if(n&&(t=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),s(r);if(r||e.match(m))return e;if(n&&!n.host&&!n.path)return n.host=e,s(n);var a="/"===e.charAt(0)?e:o(t.replace(/\/+$/,"")+"/"+e);return n?(n.path=a,s(n)):a}function u(t,e){""===t&&(t="."),t=t.replace(/\/$/,"");for(var r=0;0!==e.indexOf(t+"/");){var n=t.lastIndexOf("/");if(0>n)return e;if(t=t.slice(0,n),t.match(/^([^\/]+:\/)?\/*$/))return e;++r}return Array(r+1).join("../")+e.substr(t.length+1)}function p(t){return"$"+t}function h(t){return t.substr(1)}function c(t,e,r){var n=t.source-e.source;return 0!==n?n:(n=t.originalLine-e.originalLine,0!==n?n:(n=t.originalColumn-e.originalColumn,0!==n||r?n:(n=t.generatedColumn-e.generatedColumn,0!==n?n:(n=t.generatedLine-e.generatedLine,0!==n?n:t.name-e.name))))}function l(t,e,r){var n=t.generatedLine-e.generatedLine;return 0!==n?n:(n=t.generatedColumn-e.generatedColumn,0!==n||r?n:(n=t.source-e.source,0!==n?n:(n=t.originalLine-e.originalLine,0!==n?n:(n=t.originalColumn-e.originalColumn,0!==n?n:t.name-e.name))))}function f(t,e){return t===e?0:t>e?1:-1}function d(t,e){var r=t.generatedLine-e.generatedLine;return 0!==r?r:(r=t.generatedColumn-e.generatedColumn,0!==r?r:(r=f(t.source,e.source),0!==r?r:(r=t.originalLine-e.originalLine,0!==r?r:(r=t.originalColumn-e.originalColumn,0!==r?r:f(t.name,e.name)))))}e.getArg=n;var g=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,m=/^data:.+\,.+$/;e.urlParse=i,e.urlGenerate=s,e.normalize=o,e.join=a,e.relative=u,e.toSetString=p,e.fromSetString=h,e.compareByOriginalPositions=c,e.compareByGeneratedPositionsDeflated=l,e.compareByGeneratedPositionsInflated=d}.call(e,r,e,t),!(void 0!==n&&(t.exports=n))},function(t,e,r){var n;n=function(t,e,n){function i(){this._array=[],this._set={}}var s=r(26);i.fromArray=function(t,e){for(var r=new i,n=0,s=t.length;s>n;n++)r.add(t[n],e);return r},i.prototype.size=function(){return Object.getOwnPropertyNames(this._set).length},i.prototype.add=function(t,e){var r=this.has(t),n=this._array.length;(!r||e)&&this._array.push(t),r||(this._set[s.toSetString(t)]=n)},i.prototype.has=function(t){return Object.prototype.hasOwnProperty.call(this._set,s.toSetString(t))},i.prototype.indexOf=function(t){if(this.has(t))return this._set[s.toSetString(t)];throw new Error('"'+t+'" is not in the set.')},i.prototype.at=function(t){if(t>=0&&tr||n==r&&s>=i||o.compareByGeneratedPositionsInflated(t,e)<=0}function s(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}var o=r(26);s.prototype.unsortedForEach=function(t,e){this._array.forEach(t,e)},s.prototype.add=function(t){i(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))},s.prototype.toArray=function(){return this._sorted||(this._array.sort(o.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},e.MappingList=s}.call(e,r,e,t),!(void 0!==n&&(t.exports=n))},function(t,e,r){var n;n=function(t,e,n){function i(t){var e=t;return"string"==typeof t&&(e=JSON.parse(t.replace(/^\)\]\}'/,""))),null!=e.sections?new a(e):new s(e)}function s(t){var e=t;"string"==typeof t&&(e=JSON.parse(t.replace(/^\)\]\}'/,"")));var r=u.getArg(e,"version"),n=u.getArg(e,"sources"),i=u.getArg(e,"names",[]),s=u.getArg(e,"sourceRoot",null),o=u.getArg(e,"sourcesContent",null),a=u.getArg(e,"mappings"),p=u.getArg(e,"file",null);if(r!=this._version)throw new Error("Unsupported version: "+r);n=n.map(u.normalize),this._names=h.fromArray(i,!0),this._sources=h.fromArray(n,!0),this.sourceRoot=s,this.sourcesContent=o,this._mappings=a,this.file=p}function o(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function a(t){var e=t;"string"==typeof t&&(e=JSON.parse(t.replace(/^\)\]\}'/,"")));var r=u.getArg(e,"version"),n=u.getArg(e,"sections");if(r!=this._version)throw new Error("Unsupported version: "+r);this._sources=new h,this._names=new h;var s={line:-1,column:0};this._sections=n.map(function(t){if(t.url)throw new Error("Support for url field in sections not implemented.");var e=u.getArg(t,"offset"),r=u.getArg(e,"line"),n=u.getArg(e,"column");if(r=0){var s=this._originalMappings[i];if(void 0===t.column)for(var o=s.originalLine;s&&s.originalLine===o;)n.push({line:u.getArg(s,"generatedLine",null),column:u.getArg(s,"generatedColumn",null),lastColumn:u.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++i];else for(var a=s.originalColumn;s&&s.originalLine===e&&s.originalColumn==a;)n.push({line:u.getArg(s,"generatedLine",null),column:u.getArg(s,"generatedColumn",null),lastColumn:u.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++i]}return n},e.SourceMapConsumer=i,s.prototype=Object.create(i.prototype),s.prototype.consumer=i,s.fromSourceMap=function(t){var e=Object.create(s.prototype),r=e._names=h.fromArray(t._names.toArray(),!0),n=e._sources=h.fromArray(t._sources.toArray(),!0);e.sourceRoot=t._sourceRoot,e.sourcesContent=t._generateSourcesContent(e._sources.toArray(),e.sourceRoot),e.file=t._file;for(var i=t._mappings.toArray().slice(),a=e.__generatedMappings=[],p=e.__originalMappings=[],c=0,f=i.length;f>c;c++){var d=i[c],g=new o;g.generatedLine=d.generatedLine,g.generatedColumn=d.generatedColumn,d.source&&(g.source=n.indexOf(d.source),g.originalLine=d.originalLine,g.originalColumn=d.originalColumn,d.name&&(g.name=r.indexOf(d.name)),p.push(g)),a.push(g)}return l(e.__originalMappings,u.compareByOriginalPositions),e},s.prototype._version=3,Object.defineProperty(s.prototype,"sources",{get:function(){return this._sources.toArray().map(function(t){return null!=this.sourceRoot?u.join(this.sourceRoot,t):t},this)}}),s.prototype._parseMappings=function(t,e){for(var r,n,i,s,a,p=1,h=0,f=0,d=0,g=0,m=0,y=t.length,v=0,x={},b={},w=[],E=[];y>v;)if(";"===t.charAt(v))p++,v++,h=0;else if(","===t.charAt(v))v++;else{for(r=new o,r.generatedLine=p,s=v;y>s&&!this._charIsMappingSeparator(t,s);s++);if(n=t.slice(v,s),i=x[n])v+=n.length;else{for(i=[];s>v;)c.decode(t,v,b),a=b.value,v=b.rest,i.push(a);if(2===i.length)throw new Error("Found a source, but no line and column");if(3===i.length)throw new Error("Found a source and line, but no column");x[n]=i}r.generatedColumn=h+i[0],h=r.generatedColumn,i.length>1&&(r.source=g+i[1],g+=i[1],r.originalLine=f+i[2],f=r.originalLine,r.originalLine+=1,r.originalColumn=d+i[3],d=r.originalColumn,i.length>4&&(r.name=m+i[4],m+=i[4])),E.push(r),"number"==typeof r.originalLine&&w.push(r)}l(E,u.compareByGeneratedPositionsDeflated),this.__generatedMappings=E,l(w,u.compareByOriginalPositions),this.__originalMappings=w},s.prototype._findMapping=function(t,e,r,n,i,s){if(t[r]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+t[r]);if(t[n]<0)throw new TypeError("Column must be greater than or equal to 0, got "+t[n]);return p.search(t,e,i,s)},s.prototype.computeColumnSpans=function(){for(var t=0;t=0){var n=this._generatedMappings[r];if(n.generatedLine===e.generatedLine){var s=u.getArg(n,"source",null);null!==s&&(s=this._sources.at(s),null!=this.sourceRoot&&(s=u.join(this.sourceRoot,s)));var o=u.getArg(n,"name",null);return null!==o&&(o=this._names.at(o)),{source:s,line:u.getArg(n,"originalLine",null),column:u.getArg(n,"originalColumn",null),name:o}}}return{source:null,line:null,column:null,name:null}},s.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return null==t}):!1},s.prototype.sourceContentFor=function(t,e){if(!this.sourcesContent)return null;if(null!=this.sourceRoot&&(t=u.relative(this.sourceRoot,t)),this._sources.has(t))return this.sourcesContent[this._sources.indexOf(t)];var r;if(null!=this.sourceRoot&&(r=u.urlParse(this.sourceRoot))){var n=t.replace(/^file:\/\//,"");if("file"==r.scheme&&this._sources.has(n))return this.sourcesContent[this._sources.indexOf(n)];if((!r.path||"/"==r.path)&&this._sources.has("/"+t))return this.sourcesContent[this._sources.indexOf("/"+t)]}if(e)return null;throw new Error('"'+t+'" is not in the SourceMap.')},s.prototype.generatedPositionFor=function(t){var e=u.getArg(t,"source");if(null!=this.sourceRoot&&(e=u.relative(this.sourceRoot,e)),!this._sources.has(e))return{line:null,column:null,lastColumn:null};e=this._sources.indexOf(e);var r={source:e,originalLine:u.getArg(t,"line"),originalColumn:u.getArg(t,"column")},n=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",u.compareByOriginalPositions,u.getArg(t,"bias",i.GREATEST_LOWER_BOUND));if(n>=0){var s=this._originalMappings[n];if(s.source===r.source)return{line:u.getArg(s,"generatedLine",null),column:u.getArg(s,"generatedColumn",null),lastColumn:u.getArg(s,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},e.BasicSourceMapConsumer=s,a.prototype=Object.create(i.prototype),a.prototype.constructor=i,a.prototype._version=3,Object.defineProperty(a.prototype,"sources",{get:function(){for(var t=[],e=0;e0?r-u>1?n(u,r,i,s,o,a):a==e.LEAST_UPPER_BOUND?r1?n(t,u,i,s,o,a):a==e.LEAST_UPPER_BOUND?u:0>t?-1:t}e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2,e.search=function(t,r,i,s){if(0===r.length)return-1;var o=n(-1,r.length,t,r,i,s||e.GREATEST_LOWER_BOUND);if(0>o)return-1;for(;o-1>=0&&0===i(r[o],r[o-1],!0);)--o;return o}}.call(e,r,e,t),!(void 0!==n&&(t.exports=n))},function(t,e,r){var n;n=function(t,e,r){function n(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function i(t,e){return Math.round(t+Math.random()*(e-t))}function s(t,e,r,o){if(o>r){var a=i(r,o),u=r-1;n(t,a,o);for(var p=t[o],h=r;o>h;h++)e(t[h],p)<=0&&(u+=1,n(t,u,h));n(t,u+1,h);var c=u+1;s(t,e,r,c-1),s(t,e,c+1,o)}}e.quickSort=function(t,e){s(t,e,0,t.length-1)}}.call(e,r,e,t),!(void 0!==n&&(t.exports=n))},function(t,e,r){var n;n=function(t,e,n){function i(t,e,r,n,i){this.children=[],this.sourceContents={},this.line=null==t?null:t,this.column=null==e?null:e,this.source=null==r?null:r,this.name=null==i?null:i,this[p]=!0,null!=n&&this.add(n)}var s=r(23).SourceMapGenerator,o=r(26),a=/(\r?\n)/,u=10,p="$$$isSourceNode$$$";i.fromStringWithSourceMap=function(t,e,r){function n(t,e){if(null===t||void 0===t.source)s.add(e);else{var n=r?o.join(r,t.source):t.source;s.add(new i(t.originalLine,t.originalColumn,n,e,t.name))}}var s=new i,u=t.split(a),p=function(){var t=u.shift(),e=u.shift()||"";return t+e},h=1,c=0,l=null;return e.eachMapping(function(t){if(null!==l){if(!(h0&&(l&&n(l,p()),s.add(u.join(""))),e.sources.forEach(function(t){var n=e.sourceContentFor(t);null!=n&&(null!=r&&(t=o.join(r,t)),s.setSourceContent(t,n))}),s},i.prototype.add=function(t){if(Array.isArray(t))t.forEach(function(t){this.add(t)},this);else{if(!t[p]&&"string"!=typeof t)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);t&&this.children.push(t)}return this},i.prototype.prepend=function(t){if(Array.isArray(t))for(var e=t.length-1;e>=0;e--)this.prepend(t[e]);else{if(!t[p]&&"string"!=typeof t)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);this.children.unshift(t)}return this},i.prototype.walk=function(t){for(var e,r=0,n=this.children.length;n>r;r++)e=this.children[r],e[p]?e.walk(t):""!==e&&t(e,{source:this.source,line:this.line,column:this.column,name:this.name})},i.prototype.join=function(t){var e,r,n=this.children.length;if(n>0){for(e=[],r=0;n-1>r;r++)e.push(this.children[r]),e.push(t);e.push(this.children[r]),this.children=e}return this},i.prototype.replaceRight=function(t,e){var r=this.children[this.children.length-1];return r[p]?r.replaceRight(t,e):"string"==typeof r?this.children[this.children.length-1]=r.replace(t,e):this.children.push("".replace(t,e)),this},i.prototype.setSourceContent=function(t,e){this.sourceContents[o.toSetString(t)]=e},i.prototype.walkSourceContents=function(t){for(var e=0,r=this.children.length;r>e;e++)this.children[e][p]&&this.children[e].walkSourceContents(t);for(var n=Object.keys(this.sourceContents),e=0,r=n.length;r>e;e++)t(o.fromSetString(n[e]),this.sourceContents[n[e]])},i.prototype.toString=function(){var t="";return this.walk(function(e){t+=e}),t},i.prototype.toStringWithSourceMap=function(t){var e={code:"",line:1,column:0},r=new s(t),n=!1,i=null,o=null,a=null,p=null;return this.walk(function(t,s){e.code+=t,null!==s.source&&null!==s.line&&null!==s.column?((i!==s.source||o!==s.line||a!==s.column||p!==s.name)&&r.addMapping({source:s.source,original:{line:s.line,column:s.column},generated:{line:e.line,column:e.column},name:s.name}),i=s.source,o=s.line,a=s.column,p=s.name,n=!0):n&&(r.addMapping({generated:{line:e.line,column:e.column}}),i=null,n=!1);for(var h=0,c=t.length;c>h;h++)t.charCodeAt(h)===u?(e.line++,e.column=0,h+1===c?(i=null,n=!1):n&&r.addMapping({source:s.source,original:{line:s.line,column:s.column},generated:{line:e.line,column:e.column},name:s.name})):e.column++}),this.walkSourceContents(function(t,e){r.setSourceContent(t,e)}),{code:e.code,map:r}},e.SourceNode=i}.call(e,r,e,t),!(void 0!==n&&(t.exports=n))},function(t,e,r){"use strict";function n(t,e){a(this instanceof n);var r=new Array(e.length),i=[],s=new Array(e.length),o=[],p=0;Date.now();u(t,{pre:function(t){"Program"!==t.type&&(p=t.range[0],r[p]||(r[p]=t),p=t.range[1],s[p]||(s[p]=t))}});for(var h in r)i.push(r[h]);for(var c in s)o.push(s[c]);Date.now();this.begins=i,this.ends=o}function i(t){var e=this.begins;a(p.finitenumber(t)&&t>=0);for(var r=0,n=e.length-1;n>r;){var i=Math.floor((r+n)/2);a(i>=0&&ie[i].range[0]?r=i+1:n=i}if(r>n)return a(o(e).range[0]=t),s>=1){var h=e[s-1].range[0];a(t>h)}return e[s]}function s(t){var e=this.ends;a(p.finitenumber(t)&&t>=0);for(var r=0,n=e.length-1;n>r;){var i=Math.ceil((r+n)/2);a(i>=0&&in)return a(e[0].range[1]>t),null;var s=r,o=e[s].range[1];if(o>t)return null;if(s<=e.length-2){var u=e[s+1].range[1];a(u>t)}return e[s]}function o(t){return t[t.length-1]}var a=r(4),u=r(10),p=r(2);t.exports=n,n.prototype.findNodeFromPos=i,n.prototype.findNodeBeforePos=s},function(t,e,r){"use strict";function n(t){d(t,{pre:i}),s(t.$scope)}function i(t,e){if(t.$parent=e,t.$scope=e?e.$scope:null,a(t,e))t.$scope=new g({kind:"block",node:t,parent:e.$scope});else if("VariableDeclaration"===t.type)t.declarations.forEach(function(e){var r=e.id.name;t.$scope.add(r,t.kind,e.id,e.range[1])});else if(c(t))t.$scope=new g({kind:"hoist",node:t,parent:e.$scope}),t.id&&("FunctionDeclaration"===t.type?e.$scope.add(t.id.name,"fun",t.id,null):"FunctionExpression"===t.type?t.$scope.add(t.id.name,"fun",t.id,null):f(!1)),t.params.forEach(function(e){t.$scope.add(e.name,"param",e,null)});else if(u(t)||p(t))t.$scope=new g({kind:"block",node:t,parent:e.$scope});else if("CatchClause"===t.type){var r=t.param;t.$scope=new g({kind:"catch-block",node:t,parent:e.$scope}),t.$scope.add(r.name,"caught",r,null),t.$scope.closestHoistScope().markPropagates(r.name)}else"Program"===t.type&&(t.$scope=new g({kind:"hoist",node:t,parent:null}))}function s(t){function e(t){for(var e in t){var n=t[e],i=n?"var":"const";r.hasOwn(e)&&r.remove(e),r.add(e,i,{loc:{start:{line:-1}}},-1)}}var r=new g({kind:"hoist",node:{},parent:null}),n={undefined:!1,Infinity:!1,console:!1};return e(n),t.parent=r,r.children.push(t),r}function o(t){return"const"===t||"let"===t}function a(t,e){return"BlockStatement"===t.type&&"FunctionDeclaration"!==e.type&&"FunctionExpression"!==e.type}function u(t){return"ForStatement"===t.type&&t.init&&"VariableDeclaration"===t.init.type&&o(t.init.kind)}function p(t){return h(t)&&"VariableDeclaration"===t.left.type&&o(t.left.kind)}function h(t){return"ForInStatement"===t.type||"ForOfStatement"===t.type}function c(t){return"FunctionDeclaration"===t.type||"FunctionExpression"===t.type}function l(t){var e=t.$parent;return t.$refToScope||"Identifier"===t.type&&!("VariableDeclarator"===e.type&&e.id===t)&&!("MemberExpression"===e.type&&e.computed===!1&&e.property===t)&&!("Property"===e.type&&e.key===t)&&!("LabeledStatement"===e.type&&e.label===t)&&!("CatchClause"===e.type&&e.param===t)&&!(c(e)&&e.id===t)&&!(c(e)&&m.someof(t,e.params))&&!0}var f=r(4),d=r(10),g=r(35),m=r(2);t.exports={setupScopeAndReferences:n,isReference:l}},function(t,e,r){"use strict";function n(t){i(a.someof(t.kind,["hoist","block","catch-block"])),i(a.object(t.node)),i(null===t.parent||a.object(t.parent)),this.kind=t.kind,this.node=t.node,this.parent=t.parent,this.children=[],this.decls=s(),this.propagates="hoist"===this.kind?o():null,this.parent&&this.parent.children.push(this)}var i=r(4),s=r(36),o=r(37),a=r(2),u=r(1);n.prototype.print=function(t){t=t||0;var e=this,r=this.decls.keys().map(function(t){return u("{0} [{1}]",t,e.decls.get(t).kind)}).join(", "),n=this.propagates?this.propagates.items().join(", "):"";console.log(u("{0}{1}: {2}. propagates: {3}",u.repeat(" ",t),this.node.type,r,n)),this.children.forEach(function(e){e.print(t+2)})},n.prototype.add=function(t,e,r,n){i(a.someof(e,["fun","param","var","caught","const","let"]));var s=this;if(a.someof(e,["fun","param","var"]))for(;"hoist"!==s.kind;)s=s.parent;var o={kind:e,node:r};n&&(i(a.someof(e,["var","const","let"])),o.from=n),s.decls.set(t,o)},n.prototype.getKind=function(t){i(a.string(t));var e=this.decls.get(t);return e?e.kind:null},n.prototype.getNode=function(t){i(a.string(t));var e=this.decls.get(t);return e?e.node:null},n.prototype.getFromPos=function(t){i(a.string(t));var e=this.decls.get(t);return e?e.from:null},n.prototype.hasOwn=function(t){return this.decls.has(t)},n.prototype.remove=function(t){return this.decls.remove(t)},n.prototype.doesPropagate=function(t){return this.propagates.has(t)},n.prototype.markPropagates=function(t){this.propagates.add(t)},n.prototype.closestHoistScope=function(){for(var t=this;"hoist"!==t.kind;)t=t.parent;return t},n.prototype.lookup=function(t){for(var e=this;e;e=e.parent){if(e.decls.has(t))return e;"hoist"===e.kind&&e.propagates.add(t)}return null},t.exports=n},function(t,e){var r=function(){"use strict";function t(e){return this instanceof t?(this.obj=r(),this.hasProto=!1,this.proto=void 0,void(e&&this.setMany(e))):new t(e)}var e=Object.prototype.hasOwnProperty,r=function(){function t(t){for(var r in t)if(e.call(t,r))return!0;return!1}function r(t){return e.call(t,"__count__")||e.call(t,"__parent__")}var n=!1;if("function"==typeof Object.create&&(t(Object.create(null))||(n=!0)),n===!1&&t({}))throw new Error("StringMap environment error 0, please file a bug at https://github.com/olov/stringmap/issues");var i=n?Object.create(null):{},s=!1;if(r(i)){if(i.__proto__=null,t(i)||r(i))throw new Error("StringMap environment error 1, please file a bug at https://github.com/olov/stringmap/issues");s=!0}return function(){var t=n?Object.create(null):{};return s&&(t.__proto__=null),t}}();return t.prototype.has=function(t){if("string"!=typeof t)throw new Error("StringMap expected string key");return"__proto__"===t?this.hasProto:e.call(this.obj,t)},t.prototype.get=function(t){if("string"!=typeof t)throw new Error("StringMap expected string key");return"__proto__"===t?this.proto:e.call(this.obj,t)?this.obj[t]:void 0},t.prototype.set=function(t,e){if("string"!=typeof t)throw new Error("StringMap expected string key");"__proto__"===t?(this.hasProto=!0,this.proto=e):this.obj[t]=e},t.prototype.remove=function(t){if("string"!=typeof t)throw new Error("StringMap expected string key");var e=this.has(t);return"__proto__"===t?(this.hasProto=!1,this.proto=void 0):delete this.obj[t],e},t.prototype["delete"]=t.prototype.remove,t.prototype.isEmpty=function(){for(var t in this.obj)if(e.call(this.obj,t))return!1;return!this.hasProto},t.prototype.size=function(){var t=0;for(var r in this.obj)e.call(this.obj,r)&&++t;return this.hasProto?t+1:t},t.prototype.keys=function(){var t=[];for(var r in this.obj)e.call(this.obj,r)&&t.push(r);return this.hasProto&&t.push("__proto__"),t},t.prototype.values=function(){var t=[];for(var r in this.obj)e.call(this.obj,r)&&t.push(this.obj[r]);return this.hasProto&&t.push(this.proto),t},t.prototype.items=function(){var t=[];for(var r in this.obj)e.call(this.obj,r)&&t.push([r,this.obj[r]]);return this.hasProto&&t.push(["__proto__",this.proto]),t},t.prototype.setMany=function(t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new Error("StringMap expected Object");for(var r in t)e.call(t,r)&&this.set(r,t[r]);return this},t.prototype.merge=function(t){for(var e=t.keys(),r=0;r=6&&(t.computed||t.method||t.shorthand))){var r=t.key,n=void 0;switch(r.type){case"Identifier":n=r.name;break;case"Literal":n=String(r.value);break;default:return}var i=t.kind;if(this.options.ecmaVersion>=6)return void("__proto__"===n&&"init"===i&&(e.proto&&this.raise(r.start,"Redefinition of __proto__ property"),e.proto=!0));var s=void 0;if(o.has(e,n)){s=e[n];var a="init"!==i;((this.strict||a)&&s[i]||!(a^s.init))&&this.raise(r.start,"Redefinition of property")}else s=e[n]={init:!1,get:!1,set:!1};s[i]=!0}},a.parseExpression=function(t,e){var r=this.start,i=this.startLoc,s=this.parseMaybeAssign(t,e);if(this.type===n.types.comma){var o=this.startNodeAt(r,i);for(o.expressions=[s];this.eat(n.types.comma);)o.expressions.push(this.parseMaybeAssign(t,e));return this.finishNode(o,"SequenceExpression")}return s},a.parseMaybeAssign=function(t,e,r){if(this.type==n.types._yield&&this.inGenerator)return this.parseYield();var i=void 0;e?i=!1:(e={start:0},i=!0);var s=this.start,o=this.startLoc;(this.type==n.types.parenL||this.type==n.types.name)&&(this.potentialArrowAt=this.start);var a=this.parseMaybeConditional(t,e);if(r&&(a=r.call(this,a,s,o)),this.type.isAssign){var u=this.startNodeAt(s,o);return u.operator=this.value,u.left=this.type===n.types.eq?this.toAssignable(a):a,e.start=0,this.checkLVal(a),this.next(),u.right=this.parseMaybeAssign(t),this.finishNode(u,"AssignmentExpression")}return i&&e.start&&this.unexpected(e.start),a},a.parseMaybeConditional=function(t,e){var r=this.start,i=this.startLoc,s=this.parseExprOps(t,e);if(e&&e.start)return s;if(this.eat(n.types.question)){var o=this.startNodeAt(r,i);return o.test=s,o.consequent=this.parseMaybeAssign(),this.expect(n.types.colon),o.alternate=this.parseMaybeAssign(t),this.finishNode(o,"ConditionalExpression")}return s},a.parseExprOps=function(t,e){var r=this.start,n=this.startLoc,i=this.parseMaybeUnary(e);return e&&e.start?i:this.parseExprOp(i,r,n,-1,t)},a.parseExprOp=function(t,e,r,i,s){var o=this.type.binop;if(null!=o&&(!s||this.type!==n.types._in)&&o>i){var a=this.startNodeAt(e,r);a.left=t,a.operator=this.value;var u=this.type;this.next();var p=this.start,h=this.startLoc;return a.right=this.parseExprOp(this.parseMaybeUnary(),p,h,o,s),this.finishNode(a,u===n.types.logicalOR||u===n.types.logicalAND?"LogicalExpression":"BinaryExpression"),this.parseExprOp(a,e,r,i,s)}return t},a.parseMaybeUnary=function(t){if(this.type.prefix){var e=this.startNode(),r=this.type===n.types.incDec;return e.operator=this.value,e.prefix=!0,this.next(),e.argument=this.parseMaybeUnary(),t&&t.start&&this.unexpected(t.start),r?this.checkLVal(e.argument):this.strict&&"delete"===e.operator&&"Identifier"===e.argument.type&&this.raise(e.start,"Deleting local variable in strict mode"),this.finishNode(e,r?"UpdateExpression":"UnaryExpression")}var i=this.start,s=this.startLoc,o=this.parseExprSubscripts(t);if(t&&t.start)return o;for(;this.type.postfix&&!this.canInsertSemicolon();){var e=this.startNodeAt(i,s);e.operator=this.value,e.prefix=!1,e.argument=o,this.checkLVal(o),this.next(),o=this.finishNode(e,"UpdateExpression")}return o},a.parseExprSubscripts=function(t){var e=this.start,r=this.startLoc,n=this.parseExprAtom(t);return t&&t.start?n:this.parseSubscripts(n,e,r)},a.parseSubscripts=function(t,e,r,i){for(;;)if(this.eat(n.types.dot)){var s=this.startNodeAt(e,r);s.object=t,s.property=this.parseIdent(!0),s.computed=!1,t=this.finishNode(s,"MemberExpression")}else if(this.eat(n.types.bracketL)){var s=this.startNodeAt(e,r);s.object=t,s.property=this.parseExpression(),s.computed=!0,this.expect(n.types.bracketR),t=this.finishNode(s,"MemberExpression")}else if(!i&&this.eat(n.types.parenL)){var s=this.startNodeAt(e,r);s.callee=t,s.arguments=this.parseExprList(n.types.parenR,!1),t=this.finishNode(s,"CallExpression")}else{if(this.type!==n.types.backQuote)return t;var s=this.startNodeAt(e,r);s.tag=t,s.quasi=this.parseTemplate(),t=this.finishNode(s,"TaggedTemplateExpression")}},a.parseExprAtom=function(t){var e=void 0,r=this.potentialArrowAt==this.start;switch(this.type){case n.types._super:this.inFunction||this.raise(this.start,"'super' outside of function or class");case n.types._this:var i=this.type===n.types._this?"ThisExpression":"Super";return e=this.startNode(),this.next(),this.finishNode(e,i);case n.types._yield:this.inGenerator&&this.unexpected();case n.types.name:var s=this.start,o=this.startLoc,a=this.parseIdent(this.type!==n.types.name);return r&&!this.canInsertSemicolon()&&this.eat(n.types.arrow)?this.parseArrowExpression(this.startNodeAt(s,o),[a]):a;case n.types.regexp:var u=this.value;return e=this.parseLiteral(u.value),e.regex={pattern:u.pattern,flags:u.flags},e;case n.types.num:case n.types.string:return this.parseLiteral(this.value);case n.types._null:case n.types._true:case n.types._false:return e=this.startNode(),e.value=this.type===n.types._null?null:this.type===n.types._true,e.raw=this.type.keyword,this.next(),this.finishNode(e,"Literal");case n.types.parenL:return this.parseParenAndDistinguishExpression(r);case n.types.bracketL:return e=this.startNode(),this.next(),this.options.ecmaVersion>=7&&this.type===n.types._for?this.parseComprehension(e,!1):(e.elements=this.parseExprList(n.types.bracketR,!0,!0,t),this.finishNode(e,"ArrayExpression"));case n.types.braceL:return this.parseObj(!1,t);case n.types._function:return e=this.startNode(),this.next(),this.parseFunction(e,!1);case n.types._class:return this.parseClass(this.startNode(),!1);case n.types._new:return this.parseNew();case n.types.backQuote:return this.parseTemplate();default:this.unexpected()}},a.parseLiteral=function(t){var e=this.startNode();return e.value=t,e.raw=this.input.slice(this.start,this.end),this.next(),this.finishNode(e,"Literal")},a.parseParenExpression=function(){this.expect(n.types.parenL);var t=this.parseExpression();return this.expect(n.types.parenR),t},a.parseParenAndDistinguishExpression=function(t){var e=this.start,r=this.startLoc,i=void 0;if(this.options.ecmaVersion>=6){if(this.next(),this.options.ecmaVersion>=7&&this.type===n.types._for)return this.parseComprehension(this.startNodeAt(e,r),!0);for(var s=this.start,o=this.startLoc,a=[],u=!0,p={start:0},h=void 0,c=void 0;this.type!==n.types.parenR;){if(u?u=!1:this.expect(n.types.comma),this.type===n.types.ellipsis){h=this.start,a.push(this.parseParenItem(this.parseRest()));break}this.type!==n.types.parenL||c||(c=this.start),a.push(this.parseMaybeAssign(!1,p,this.parseParenItem))}var l=this.start,f=this.startLoc;if(this.expect(n.types.parenR),t&&!this.canInsertSemicolon()&&this.eat(n.types.arrow))return c&&this.unexpected(c),this.parseParenArrowList(e,r,a);a.length||this.unexpected(this.lastTokStart),h&&this.unexpected(h),p.start&&this.unexpected(p.start),a.length>1?(i=this.startNodeAt(s,o),i.expressions=a,this.finishNodeAt(i,"SequenceExpression",l,f)):i=a[0]}else i=this.parseParenExpression();if(this.options.preserveParens){var d=this.startNodeAt(e,r);return d.expression=i,this.finishNode(d,"ParenthesizedExpression")}return i},a.parseParenItem=function(t){return t},a.parseParenArrowList=function(t,e,r){return this.parseArrowExpression(this.startNodeAt(t,e),r)};var u=[];a.parseNew=function(){var t=this.startNode(),e=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(n.types.dot))return t.meta=e,t.property=this.parseIdent(!0),"target"!==t.property.name&&this.raise(t.property.start,"The only valid meta property for new is new.target"),this.finishNode(t,"MetaProperty");var r=this.start,i=this.startLoc;return t.callee=this.parseSubscripts(this.parseExprAtom(),r,i,!0),this.eat(n.types.parenL)?t.arguments=this.parseExprList(n.types.parenR,!1):t.arguments=u,this.finishNode(t,"NewExpression")},a.parseTemplateElement=function(){var t=this.startNode();return t.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),t.tail=this.type===n.types.backQuote,this.finishNode(t,"TemplateElement")},a.parseTemplate=function(){var t=this.startNode();this.next(),t.expressions=[];var e=this.parseTemplateElement();for(t.quasis=[e];!e.tail;)this.expect(n.types.dollarBraceL),t.expressions.push(this.parseExpression()),this.expect(n.types.braceR),t.quasis.push(e=this.parseTemplateElement());return this.next(),this.finishNode(t,"TemplateLiteral")},a.parseObj=function(t,e){var r=this.startNode(),i=!0,s={};for(r.properties=[],this.next();!this.eat(n.types.braceR);){if(i)i=!1;else if(this.expect(n.types.comma),this.afterTrailingComma(n.types.braceR))break;var o=this.startNode(),a=void 0,u=void 0,p=void 0;this.options.ecmaVersion>=6&&(o.method=!1,o.shorthand=!1,(t||e)&&(u=this.start,p=this.startLoc),t||(a=this.eat(n.types.star))),this.parsePropertyName(o),this.parsePropertyValue(o,t,a,u,p,e),this.checkPropClash(o,s),r.properties.push(this.finishNode(o,"Property"))}return this.finishNode(r,t?"ObjectPattern":"ObjectExpression")},a.parsePropertyValue=function(t,e,r,i,o,a){if(this.eat(n.types.colon))t.value=e?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,a),t.kind="init";else if(this.options.ecmaVersion>=6&&this.type===n.types.parenL)e&&this.unexpected(),t.kind="init",t.method=!0,t.value=this.parseMethod(r);else if(this.options.ecmaVersion>=5&&!t.computed&&"Identifier"===t.key.type&&("get"===t.key.name||"set"===t.key.name)&&this.type!=n.types.comma&&this.type!=n.types.braceR){(r||e)&&this.unexpected(),t.kind=t.key.name,this.parsePropertyName(t),t.value=this.parseMethod(!1);var u="get"===t.kind?0:1;if(t.value.params.length!==u){var p=t.value.start;"get"===t.kind?this.raise(p,"getter should have no params"):this.raise(p,"setter should have exactly one param")}}else this.options.ecmaVersion>=6&&!t.computed&&"Identifier"===t.key.type?(t.kind="init",e?((this.isKeyword(t.key.name)||this.strict&&(s.reservedWords.strictBind(t.key.name)||s.reservedWords.strict(t.key.name))||!this.options.allowReserved&&this.isReservedWord(t.key.name))&&this.raise(t.key.start,"Binding "+t.key.name),t.value=this.parseMaybeDefault(i,o,t.key)):this.type===n.types.eq&&a?(a.start||(a.start=this.start),t.value=this.parseMaybeDefault(i,o,t.key)):t.value=t.key,t.shorthand=!0):this.unexpected()},a.parsePropertyName=function(t){if(this.options.ecmaVersion>=6){if(this.eat(n.types.bracketL))return t.computed=!0,t.key=this.parseMaybeAssign(),this.expect(n.types.bracketR),t.key;t.computed=!1}return t.key=this.type===n.types.num||this.type===n.types.string?this.parseExprAtom():this.parseIdent(!0)},a.initFunction=function(t){t.id=null,this.options.ecmaVersion>=6&&(t.generator=!1,t.expression=!1)},a.parseMethod=function(t){var e=this.startNode();this.initFunction(e),this.expect(n.types.parenL),e.params=this.parseBindingList(n.types.parenR,!1,!1);return this.options.ecmaVersion>=6&&(e.generator=t),this.parseFunctionBody(e,!1),this.finishNode(e,"FunctionExpression")},a.parseArrowExpression=function(t,e){return this.initFunction(t),t.params=this.toAssignableList(e,!0),this.parseFunctionBody(t,!0),this.finishNode(t,"ArrowFunctionExpression")},a.parseFunctionBody=function(t,e){var r=e&&this.type!==n.types.braceL;if(r)t.body=this.parseMaybeAssign(),t.expression=!0;else{var i=this.inFunction,s=this.inGenerator,o=this.labels;this.inFunction=!0,this.inGenerator=t.generator,this.labels=[],t.body=this.parseBlock(!0),t.expression=!1,this.inFunction=i,this.inGenerator=s,this.labels=o}if(this.strict||!r&&t.body.body.length&&this.isUseStrict(t.body.body[0])){ -var a={},u=this.strict;this.strict=!0,t.id&&this.checkLVal(t.id,!0);for(var p=0;p=6||-1==this.input.slice(this.start,this.end).indexOf("\\")))&&this.raise(this.start,"The keyword '"+this.value+"' is reserved"),e.name=this.value):t&&this.type.keyword?e.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(e,"Identifier")},a.parseYield=function(){var t=this.startNode();return this.next(),this.type==n.types.semi||this.canInsertSemicolon()||this.type!=n.types.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(n.types.star),t.argument=this.parseMaybeAssign()),this.finishNode(t,"YieldExpression")},a.parseComprehension=function(t,e){for(t.blocks=[];this.type===n.types._for;){var r=this.startNode();this.next(),this.expect(n.types.parenL),r.left=this.parseBindingAtom(),this.checkLVal(r.left,!0),this.expectContextual("of"),r.right=this.parseExpression(),this.expect(n.types.parenR),t.blocks.push(this.finishNode(r,"ComprehensionBlock"))}return t.filter=this.eat(n.types._if)?this.parseParenExpression():null,t.body=this.parseExpression(),this.expect(e?n.types.parenR:n.types.bracketR),t.generator=e,this.finishNode(t,"ComprehensionExpression")}},{"./identifier":2,"./state":10,"./tokentype":14,"./util":15}],2:[function(t,e,r){"use strict";function n(t){function e(t){if(1==t.length)return r+="return str === "+JSON.stringify(t[0])+";";r+="switch(str){";for(var e=0;e3){n.sort(function(t,e){return e.length-t.length}),r+="switch(str.length){";for(var i=0;it)return!1;if(r+=e[n+1],r>=t)return!0}}function s(t,e){return 65>t?36===t:91>t?!0:97>t?95===t:123>t?!0:65535>=t?t>=170&&l.test(String.fromCharCode(t)):e===!1?!1:i(t,d)}function o(t,e){return 48>t?36===t:58>t?!0:65>t?!1:91>t?!0:97>t?95===t:123>t?!0:65535>=t?t>=170&&f.test(String.fromCharCode(t)):e===!1?!1:i(t,d)||i(t,g)}r.__esModule=!0,r.isIdentifierStart=s,r.isIdentifierChar=o;var a={3:n("abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile"),5:n("class enum extends super const export import"),6:n("enum await"),strict:n("implements interface let package private protected public static yield"),strictBind:n("eval arguments")};r.reservedWords=a;var u="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",p={5:n(u),6:n(u+" let const class extends export import yield super")};r.keywords=p;var h="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠ-ࢲऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞭꞰꞱꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭟꭤꭥꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",c="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣤ-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఃా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഁ-ഃാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ංඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ູົຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏ᦰ-ᧀᧈᧉ᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭ᳲ-᳴᳸᳹᷀-᷵᷼-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-꣄꣐-꣙꣠-꣱꤀-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︭︳︴﹍-﹏0-9_",l=new RegExp("["+h+"]"),f=new RegExp("["+h+c+"]");h=c=null;var d=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,17,26,6,37,11,29,3,35,5,7,2,4,43,157,99,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,98,21,11,25,71,55,7,1,65,0,16,3,2,2,2,26,45,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,955,52,76,44,33,24,27,35,42,34,4,0,13,47,15,3,22,0,38,17,2,24,133,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,32,4,287,47,21,1,2,0,185,46,82,47,21,0,60,42,502,63,32,0,449,56,1288,920,104,110,2962,1070,13266,568,8,30,114,29,19,47,17,3,32,20,6,18,881,68,12,0,67,12,16481,1,3071,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,4149,196,1340,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42710,42,4148,12,221,16355,541],g=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,1306,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,52,0,13,2,49,13,16,9,83,11,168,11,6,9,8,2,57,0,2,6,3,1,3,2,10,0,11,1,3,6,4,4,316,19,13,9,214,6,3,8,112,16,16,9,82,12,9,9,535,9,20855,9,135,4,60,6,26,9,1016,45,17,3,19723,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,4305,6,792618,239]},{}],3:[function(t,e,r){"use strict";function n(t,e){return new o.Parser(e,t).parse()}function i(t,e,r){var n=new o.Parser(r,t,e);return n.nextToken(),n.parseExpression()}function s(t,e){return new o.Parser(e,t)}r.__esModule=!0,r.parse=n,r.parseExpressionAt=i,r.tokenizer=s;var o=t("./state"),a=t("./options");t("./parseutil"),t("./statement"),t("./lval"),t("./expression"),t("./location"),r.Parser=o.Parser,r.plugins=o.plugins,r.defaultOptions=a.defaultOptions;var u=t("./locutil");r.Position=u.Position,r.SourceLocation=u.SourceLocation,r.getLineInfo=u.getLineInfo;var p=t("./node");r.Node=p.Node;var h=t("./tokentype");r.TokenType=h.TokenType,r.tokTypes=h.types;var c=t("./tokencontext");r.TokContext=c.TokContext,r.tokContexts=c.types;var l=t("./identifier");r.isIdentifierChar=l.isIdentifierChar,r.isIdentifierStart=l.isIdentifierStart;var f=t("./tokenize");r.Token=f.Token;var d=t("./whitespace");r.isNewLine=d.isNewLine,r.lineBreak=d.lineBreak,r.lineBreakG=d.lineBreakG;var g="2.1.0";r.version=g},{"./expression":1,"./identifier":2,"./location":4,"./locutil":5,"./lval":6,"./node":7,"./options":8,"./parseutil":9,"./state":10,"./statement":11,"./tokencontext":12,"./tokenize":13,"./tokentype":14,"./whitespace":16}],4:[function(t,e,r){"use strict";var n=t("./state"),i=t("./locutil"),s=n.Parser.prototype;s.raise=function(t,e){var r=i.getLineInfo(this.input,t);e+=" ("+r.line+":"+r.column+")";var n=new SyntaxError(e);throw n.pos=t,n.loc=r,n.raisedAt=this.pos,n},s.curPosition=function(){return this.options.locations?new i.Position(this.curLine,this.pos-this.lineStart):void 0}},{"./locutil":5,"./state":10}],5:[function(t,e,r){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var r=1,n=0;;){s.lineBreakG.lastIndex=n;var i=s.lineBreakG.exec(t);if(!(i&&i.index=6&&t)switch(t.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":break;case"ObjectExpression":t.type="ObjectPattern";for(var r=0;r=6&&(t.sourceType=this.options.sourceType),this.finishNode(t,"Program")};var a={kind:"loop"},u={kind:"switch"};o.parseStatement=function(t,e){var r=this.type,i=this.startNode();switch(r){case n.types._break:case n.types._continue:return this.parseBreakContinueStatement(i,r.keyword);case n.types._debugger:return this.parseDebuggerStatement(i);case n.types._do:return this.parseDoStatement(i);case n.types._for:return this.parseForStatement(i);case n.types._function:return!t&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(i);case n.types._class:return t||this.unexpected(),this.parseClass(i,!0);case n.types._if:return this.parseIfStatement(i);case n.types._return:return this.parseReturnStatement(i);case n.types._switch:return this.parseSwitchStatement(i);case n.types._throw:return this.parseThrowStatement(i);case n.types._try:return this.parseTryStatement(i);case n.types._let:case n.types._const:t||this.unexpected();case n.types._var:return this.parseVarStatement(i,r);case n.types._while:return this.parseWhileStatement(i);case n.types._with:return this.parseWithStatement(i);case n.types.braceL:return this.parseBlock();case n.types.semi:return this.parseEmptyStatement(i);case n.types._export:case n.types._import:return this.options.allowImportExportEverywhere||(e||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),r===n.types._import?this.parseImport(i):this.parseExport(i);default:var s=this.value,o=this.parseExpression();return r===n.types.name&&"Identifier"===o.type&&this.eat(n.types.colon)?this.parseLabeledStatement(i,s,o):this.parseExpressionStatement(i,o)}},o.parseBreakContinueStatement=function(t,e){var r="break"==e;this.next(),this.eat(n.types.semi)||this.insertSemicolon()?t.label=null:this.type!==n.types.name?this.unexpected():(t.label=this.parseIdent(),this.semicolon());for(var i=0;i=6?this.eat(n.types.semi):this.semicolon(),this.finishNode(t,"DoWhileStatement")},o.parseForStatement=function(t){if(this.next(),this.labels.push(a),this.expect(n.types.parenL),this.type===n.types.semi)return this.parseFor(t,null);if(this.type===n.types._var||this.type===n.types._let||this.type===n.types._const){var e=this.startNode(),r=this.type;return this.next(),this.parseVar(e,!0,r),this.finishNode(e,"VariableDeclaration"),!(this.type===n.types._in||this.options.ecmaVersion>=6&&this.isContextual("of"))||1!==e.declarations.length||r!==n.types._var&&e.declarations[0].init?this.parseFor(t,e):this.parseForIn(t,e)}var i={start:0},s=this.parseExpression(!0,i);return this.type===n.types._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.toAssignable(s),this.checkLVal(s),this.parseForIn(t,s)):(i.start&&this.unexpected(i.start),this.parseFor(t,s))},o.parseFunctionStatement=function(t){return this.next(),this.parseFunction(t,!0)},o.parseIfStatement=function(t){return this.next(),t.test=this.parseParenExpression(),t.consequent=this.parseStatement(!1),t.alternate=this.eat(n.types._else)?this.parseStatement(!1):null,this.finishNode(t,"IfStatement")},o.parseReturnStatement=function(t){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(n.types.semi)||this.insertSemicolon()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")},o.parseSwitchStatement=function(t){this.next(),t.discriminant=this.parseParenExpression(),t.cases=[],this.expect(n.types.braceL),this.labels.push(u);for(var e,r=!1;this.type!=n.types.braceR;)if(this.type===n.types._case||this.type===n.types._default){var i=this.type===n.types._case;e&&this.finishNode(e,"SwitchCase"),t.cases.push(e=this.startNode()),e.consequent=[],this.next(),i?e.test=this.parseExpression():(r&&this.raise(this.lastTokStart,"Multiple default clauses"),r=!0,e.test=null),this.expect(n.types.colon)}else e||this.unexpected(),e.consequent.push(this.parseStatement(!0));return e&&this.finishNode(e,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(t,"SwitchStatement")},o.parseThrowStatement=function(t){return this.next(),s.lineBreak.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")};var p=[];o.parseTryStatement=function(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.type===n.types._catch){var e=this.startNode();this.next(),this.expect(n.types.parenL),e.param=this.parseBindingAtom(),this.checkLVal(e.param,!0),this.expect(n.types.parenR),e.guard=null,e.body=this.parseBlock(),t.handler=this.finishNode(e,"CatchClause")}return t.guardedHandlers=p,t.finalizer=this.eat(n.types._finally)?this.parseBlock():null,t.handler||t.finalizer||this.raise(t.start,"Missing catch or finally clause"),this.finishNode(t,"TryStatement")},o.parseVarStatement=function(t,e){return this.next(),this.parseVar(t,!1,e),this.semicolon(),this.finishNode(t,"VariableDeclaration")},o.parseWhileStatement=function(t){return this.next(),t.test=this.parseParenExpression(),this.labels.push(a),t.body=this.parseStatement(!1),this.labels.pop(),this.finishNode(t,"WhileStatement")},o.parseWithStatement=function(t){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),t.object=this.parseParenExpression(),t.body=this.parseStatement(!1),this.finishNode(t,"WithStatement")},o.parseEmptyStatement=function(t){return this.next(),this.finishNode(t,"EmptyStatement")},o.parseLabeledStatement=function(t,e,r){for(var i=0;i=0;i--){var o=this.labels[i];if(o.statementStart!=t.start)break;o.statementStart=this.start,o.kind=s}return this.labels.push({name:e,kind:s,statementStart:this.start}),t.body=this.parseStatement(!0),this.labels.pop(),t.label=r,this.finishNode(t,"LabeledStatement")},o.parseExpressionStatement=function(t,e){return t.expression=e,this.semicolon(),this.finishNode(t,"ExpressionStatement")},o.parseBlock=function(t){var e=this.startNode(),r=!0,i=void 0;for(e.body=[],this.expect(n.types.braceL);!this.eat(n.types.braceR);){var s=this.parseStatement(!0);e.body.push(s),r&&t&&this.isUseStrict(s)&&(i=this.strict,this.setStrict(this.strict=!0)),r=!1}return i===!1&&this.setStrict(!1),this.finishNode(e,"BlockStatement")},o.parseFor=function(t,e){return t.init=e,this.expect(n.types.semi),t.test=this.type===n.types.semi?null:this.parseExpression(),this.expect(n.types.semi),t.update=this.type===n.types.parenR?null:this.parseExpression(),this.expect(n.types.parenR),t.body=this.parseStatement(!1),this.labels.pop(),this.finishNode(t,"ForStatement")},o.parseForIn=function(t,e){var r=this.type===n.types._in?"ForInStatement":"ForOfStatement";return this.next(),t.left=e,t.right=this.parseExpression(),this.expect(n.types.parenR),t.body=this.parseStatement(!1),this.labels.pop(),this.finishNode(t,r)},o.parseVar=function(t,e,r){for(t.declarations=[],t.kind=r.keyword;;){var i=this.startNode();if(this.parseVarId(i),this.eat(n.types.eq)?i.init=this.parseMaybeAssign(e):r!==n.types._const||this.type===n.types._in||this.options.ecmaVersion>=6&&this.isContextual("of")?"Identifier"==i.id.type||e&&(this.type===n.types._in||this.isContextual("of"))?i.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),t.declarations.push(this.finishNode(i,"VariableDeclarator")),!this.eat(n.types.comma))break}return t},o.parseVarId=function(t){t.id=this.parseBindingAtom(),this.checkLVal(t.id,!0)},o.parseFunction=function(t,e,r){return this.initFunction(t),this.options.ecmaVersion>=6&&(t.generator=this.eat(n.types.star)),(e||this.type===n.types.name)&&(t.id=this.parseIdent()),this.parseFunctionParams(t),this.parseFunctionBody(t,r),this.finishNode(t,e?"FunctionDeclaration":"FunctionExpression")},o.parseFunctionParams=function(t){this.expect(n.types.parenL),t.params=this.parseBindingList(n.types.parenR,!1,!1)},o.parseClass=function(t,e){this.next(),this.parseClassId(t,e),this.parseClassSuper(t);var r=this.startNode(),i=!1;for(r.body=[],this.expect(n.types.braceL);!this.eat(n.types.braceR);)if(!this.eat(n.types.semi)){var s=this.startNode(),o=this.eat(n.types.star),a=this.type===n.types.name&&"static"===this.value;this.parsePropertyName(s),s["static"]=a&&this.type!==n.types.parenL,s["static"]&&(o&&this.unexpected(),o=this.eat(n.types.star),this.parsePropertyName(s)),s.kind="method";var u=!1;if(!s.computed){var p=s.key;o||"Identifier"!==p.type||this.type===n.types.parenL||"get"!==p.name&&"set"!==p.name||(u=!0,s.kind=p.name,p=this.parsePropertyName(s)),!s["static"]&&("Identifier"===p.type&&"constructor"===p.name||"Literal"===p.type&&"constructor"===p.value)&&(i&&this.raise(p.start,"Duplicate constructor in the same class"),u&&this.raise(p.start,"Constructor can't have get/set modifier"),o&&this.raise(p.start,"Constructor can't be a generator"),s.kind="constructor",i=!0)}if(this.parseClassMethod(r,s,o),u){var h="get"===s.kind?0:1;if(s.value.params.length!==h){var c=s.value.start;"get"===s.kind?this.raise(c,"getter should have no params"):this.raise(c,"setter should have exactly one param")}}}return t.body=this.finishNode(r,"ClassBody"),this.finishNode(t,e?"ClassDeclaration":"ClassExpression")},o.parseClassMethod=function(t,e,r){e.value=this.parseMethod(r),t.body.push(this.finishNode(e,"MethodDefinition"))},o.parseClassId=function(t,e){t.id=this.type===n.types.name?this.parseIdent():e?this.unexpected():null},o.parseClassSuper=function(t){t.superClass=this.eat(n.types._extends)?this.parseExprSubscripts():null},o.parseExport=function(t){if(this.next(),this.eat(n.types.star))return this.expectContextual("from"),t.source=this.type===n.types.string?this.parseExprAtom():this.unexpected(),this.semicolon(),this.finishNode(t,"ExportAllDeclaration");if(this.eat(n.types._default)){var e=this.parseMaybeAssign(),r=!0;return("FunctionExpression"==e.type||"ClassExpression"==e.type)&&(r=!1,e.id&&(e.type="FunctionExpression"==e.type?"FunctionDeclaration":"ClassDeclaration")),t.declaration=e,r&&this.semicolon(),this.finishNode(t,"ExportDefaultDeclaration")}return this.shouldParseExportStatement()?(t.declaration=this.parseStatement(!0),t.specifiers=[],t.source=null):(t.declaration=null,t.specifiers=this.parseExportSpecifiers(),this.eatContextual("from")?t.source=this.type===n.types.string?this.parseExprAtom():this.unexpected():t.source=null,this.semicolon()),this.finishNode(t,"ExportNamedDeclaration")},o.shouldParseExportStatement=function(){return this.type.keyword},o.parseExportSpecifiers=function(){var t=[],e=!0;for(this.expect(n.types.braceL);!this.eat(n.types.braceR);){if(e)e=!1;else if(this.expect(n.types.comma),this.afterTrailingComma(n.types.braceR))break;var r=this.startNode();r.local=this.parseIdent(this.type===n.types._default),r.exported=this.eatContextual("as")?this.parseIdent(!0):r.local,t.push(this.finishNode(r,"ExportSpecifier"))}return t},o.parseImport=function(t){return this.next(),this.type===n.types.string?(t.specifiers=p,t.source=this.parseExprAtom(),t.kind=""):(t.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),t.source=this.type===n.types.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(t,"ImportDeclaration")},o.parseImportSpecifiers=function(){var t=[],e=!0;if(this.type===n.types.name){var r=this.startNode();if(r.local=this.parseIdent(),this.checkLVal(r.local,!0),t.push(this.finishNode(r,"ImportDefaultSpecifier")),!this.eat(n.types.comma))return t}if(this.type===n.types.star){var r=this.startNode();return this.next(),this.expectContextual("as"),r.local=this.parseIdent(),this.checkLVal(r.local,!0),t.push(this.finishNode(r,"ImportNamespaceSpecifier")),t}for(this.expect(n.types.braceL);!this.eat(n.types.braceR);){if(e)e=!1;else if(this.expect(n.types.comma),this.afterTrailingComma(n.types.braceR))break;var r=this.startNode();r.imported=this.parseIdent(!0),r.local=this.eatContextual("as")?this.parseIdent():r.imported,this.checkLVal(r.local,!0),t.push(this.finishNode(r,"ImportSpecifier"))}return t}},{"./state":10,"./tokentype":14,"./whitespace":16}],12:[function(t,e,r){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}r.__esModule=!0;var i=t("./state"),s=t("./tokentype"),o=t("./whitespace"),a=function h(t,e,r,i){n(this,h),this.token=t,this.isExpr=!!e,this.preserveSpace=!!r,this.override=i};r.TokContext=a;var u={b_stat:new a("{",!1),b_expr:new a("{",!0),b_tmpl:new a("${",!0),p_stat:new a("(",!1),p_expr:new a("(",!0),q_tmpl:new a("`",!0,!0,function(t){return t.readTmplToken()}),f_expr:new a("function",!0)};r.types=u;var p=i.Parser.prototype;p.initialContext=function(){return[u.b_stat]},p.braceIsBlock=function(t){if(t===s.types.colon){var e=this.curContext();if(e===u.b_stat||e===u.b_expr)return!e.isExpr}return t===s.types._return?o.lineBreak.test(this.input.slice(this.lastTokEnd,this.start)):t===s.types._else||t===s.types.semi||t===s.types.eof||t===s.types.parenR?!0:t==s.types.braceL?this.curContext()===u.b_stat:!this.exprAllowed},p.updateContext=function(t){var e=void 0,r=this.type;r.keyword&&t==s.types.dot?this.exprAllowed=!1:(e=r.updateContext)?e.call(this,t):this.exprAllowed=r.beforeExpr},s.types.parenR.updateContext=s.types.braceR.updateContext=function(){if(1==this.context.length)return void(this.exprAllowed=!0);var t=this.context.pop();t===u.b_stat&&this.curContext()===u.f_expr?(this.context.pop(),this.exprAllowed=!1):t===u.b_tmpl?this.exprAllowed=!0:this.exprAllowed=!t.isExpr},s.types.braceL.updateContext=function(t){this.context.push(this.braceIsBlock(t)?u.b_stat:u.b_expr),this.exprAllowed=!0},s.types.dollarBraceL.updateContext=function(){this.context.push(u.b_tmpl),this.exprAllowed=!0},s.types.parenL.updateContext=function(t){ -var e=t===s.types._if||t===s.types._for||t===s.types._with||t===s.types._while;this.context.push(e?u.p_stat:u.p_expr),this.exprAllowed=!0},s.types.incDec.updateContext=function(){},s.types._function.updateContext=function(){this.curContext()!==u.b_stat&&this.context.push(u.f_expr),this.exprAllowed=!1},s.types.backQuote.updateContext=function(){this.curContext()===u.q_tmpl?this.context.pop():this.context.push(u.q_tmpl),this.exprAllowed=!1}},{"./state":10,"./tokentype":14,"./whitespace":16}],13:[function(t,e,r){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e,r){try{return new RegExp(t,e)}catch(n){void 0!==r&&(n instanceof SyntaxError&&this.raise(r,"Error parsing regular expression: "+n.message),this.raise(n))}}function s(t){return 65535>=t?String.fromCharCode(t):(t-=65536,String.fromCharCode((t>>10)+55296,(1023&t)+56320))}r.__esModule=!0;var o=t("./identifier"),a=t("./tokentype"),u=t("./state"),p=t("./locutil"),h=t("./whitespace"),c=function m(t){n(this,m),this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,t.options.locations&&(this.loc=new p.SourceLocation(t,t.startLoc,t.endLoc)),t.options.ranges&&(this.range=[t.start,t.end])};r.Token=c;var l=u.Parser.prototype,f="object"==typeof Packages&&"[object JavaPackage]"==Object.prototype.toString.call(Packages);l.next=function(){this.options.onToken&&this.options.onToken(new c(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},l.getToken=function(){return this.next(),new c(this)},"undefined"!=typeof Symbol&&(l[Symbol.iterator]=function(){var t=this;return{next:function(){var e=t.getToken();return{done:e.type===a.types.eof,value:e}}}}),l.setStrict=function(t){if(this.strict=t,this.type===a.types.num||this.type===a.types.string){if(this.pos=this.start,this.options.locations)for(;this.pos=this.input.length?this.finishToken(a.types.eof):t.override?t.override(this):void this.readToken(this.fullCharCodeAtPos())},l.readToken=function(t){return o.isIdentifierStart(t,this.options.ecmaVersion>=6)||92===t?this.readWord():this.getTokenFromCode(t)},l.fullCharCodeAtPos=function(){var t=this.input.charCodeAt(this.pos);if(55295>=t||t>=57344)return t;var e=this.input.charCodeAt(this.pos+1);return(t<<10)+e-56613888},l.skipBlockComment=function(){var t=this.options.onComment&&this.curPosition(),e=this.pos,r=this.input.indexOf("*/",this.pos+=2);if(-1===r&&this.raise(this.pos-2,"Unterminated comment"),this.pos=r+2,this.options.locations){h.lineBreakG.lastIndex=e;for(var n=void 0;(n=h.lineBreakG.exec(this.input))&&n.index8&&14>t||t>=5760&&h.nonASCIIwhitespace.test(String.fromCharCode(t))))break t;++this.pos}}},l.finishToken=function(t,e){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var r=this.type;this.type=t,this.value=e,this.updateContext(r)},l.readToken_dot=function(){var t=this.input.charCodeAt(this.pos+1);if(t>=48&&57>=t)return this.readNumber(!0);var e=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===t&&46===e?(this.pos+=3,this.finishToken(a.types.ellipsis)):(++this.pos,this.finishToken(a.types.dot))},l.readToken_slash=function(){var t=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===t?this.finishOp(a.types.assign,2):this.finishOp(a.types.slash,1)},l.readToken_mult_modulo=function(t){var e=this.input.charCodeAt(this.pos+1);return 61===e?this.finishOp(a.types.assign,2):this.finishOp(42===t?a.types.star:a.types.modulo,1)},l.readToken_pipe_amp=function(t){var e=this.input.charCodeAt(this.pos+1);return e===t?this.finishOp(124===t?a.types.logicalOR:a.types.logicalAND,2):61===e?this.finishOp(a.types.assign,2):this.finishOp(124===t?a.types.bitwiseOR:a.types.bitwiseAND,1)},l.readToken_caret=function(){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(a.types.assign,2):this.finishOp(a.types.bitwiseXOR,1)},l.readToken_plus_min=function(t){var e=this.input.charCodeAt(this.pos+1);return e===t?45==e&&62==this.input.charCodeAt(this.pos+2)&&h.lineBreak.test(this.input.slice(this.lastTokEnd,this.pos))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(a.types.incDec,2):61===e?this.finishOp(a.types.assign,2):this.finishOp(a.types.plusMin,1)},l.readToken_lt_gt=function(t){var e=this.input.charCodeAt(this.pos+1),r=1;return e===t?(r=62===t&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+r)?this.finishOp(a.types.assign,r+1):this.finishOp(a.types.bitShift,r)):33==e&&60==t&&45==this.input.charCodeAt(this.pos+2)&&45==this.input.charCodeAt(this.pos+3)?(this.inModule&&this.unexpected(),this.skipLineComment(4),this.skipSpace(),this.nextToken()):(61===e&&(r=61===this.input.charCodeAt(this.pos+2)?3:2),this.finishOp(a.types.relational,r))},l.readToken_eq_excl=function(t){var e=this.input.charCodeAt(this.pos+1);return 61===e?this.finishOp(a.types.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===t&&62===e&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(a.types.arrow)):this.finishOp(61===t?a.types.eq:a.types.prefix,1)},l.getTokenFromCode=function(t){switch(t){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(a.types.parenL);case 41:return++this.pos,this.finishToken(a.types.parenR);case 59:return++this.pos,this.finishToken(a.types.semi);case 44:return++this.pos,this.finishToken(a.types.comma);case 91:return++this.pos,this.finishToken(a.types.bracketL);case 93:return++this.pos,this.finishToken(a.types.bracketR);case 123:return++this.pos,this.finishToken(a.types.braceL);case 125:return++this.pos,this.finishToken(a.types.braceR);case 58:return++this.pos,this.finishToken(a.types.colon);case 63:return++this.pos,this.finishToken(a.types.question);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(a.types.backQuote);case 48:var e=this.input.charCodeAt(this.pos+1);if(120===e||88===e)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===e||79===e)return this.readRadixNumber(8);if(98===e||66===e)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(t);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo(t);case 124:case 38:return this.readToken_pipe_amp(t);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(t);case 60:case 62:return this.readToken_lt_gt(t);case 61:case 33:return this.readToken_eq_excl(t);case 126:return this.finishOp(a.types.prefix,1)}this.raise(this.pos,"Unexpected character '"+s(t)+"'")},l.finishOp=function(t,e){var r=this.input.slice(this.pos,this.pos+e);return this.pos+=e,this.finishToken(t,r)};var d=!!i("￿","u");l.readRegexp=function(){for(var t=this,e=void 0,r=void 0,n=this.pos;;){this.pos>=this.input.length&&this.raise(n,"Unterminated regular expression");var s=this.input.charAt(this.pos);if(h.lineBreak.test(s)&&this.raise(n,"Unterminated regular expression"),e)e=!1;else{if("["===s)r=!0;else if("]"===s&&r)r=!1;else if("/"===s&&!r)break;e="\\"===s}++this.pos}var o=this.input.slice(n,this.pos);++this.pos;var u=this.readWord1(),p=o;if(u){var c=/^[gmsiy]*$/;this.options.ecmaVersion>=6&&(c=/^[gmsiyu]*$/),c.test(u)||this.raise(n,"Invalid regular expression flag"),u.indexOf("u")>=0&&!d&&(p=p.replace(/\\u\{([0-9a-fA-F]+)\}/g,function(e,r,i){return r=Number("0x"+r),r>1114111&&t.raise(n+i+3,"Code point out of bounds"),"x"}),p=p.replace(/\\u([a-fA-F0-9]{4})|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"x"))}var l=null;return f||(i(p,void 0,n),l=i(o,u)),this.finishToken(a.types.regexp,{pattern:o,flags:u,value:l})},l.readInt=function(t,e){for(var r=this.pos,n=0,i=0,s=null==e?1/0:e;s>i;++i){var o=this.input.charCodeAt(this.pos),a=void 0;if(a=o>=97?o-97+10:o>=65?o-65+10:o>=48&&57>=o?o-48:1/0,a>=t)break;++this.pos,n=n*t+a}return this.pos===r||null!=e&&this.pos-r!==e?null:n},l.readRadixNumber=function(t){this.pos+=2;var e=this.readInt(t);return null==e&&this.raise(this.start+2,"Expected number in radix "+t),o.isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(a.types.num,e)},l.readNumber=function(t){var e=this.pos,r=!1,n=48===this.input.charCodeAt(this.pos);t||null!==this.readInt(10)||this.raise(e,"Invalid number");var i=this.input.charCodeAt(this.pos);46===i&&(++this.pos,this.readInt(10),r=!0,i=this.input.charCodeAt(this.pos)),(69===i||101===i)&&(i=this.input.charCodeAt(++this.pos),(43===i||45===i)&&++this.pos,null===this.readInt(10)&&this.raise(e,"Invalid number"),r=!0),o.isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var s=this.input.slice(e,this.pos),u=void 0;return r?u=parseFloat(s):n&&1!==s.length?/[89]/.test(s)||this.strict?this.raise(e,"Invalid number"):u=parseInt(s,8):u=parseInt(s,10),this.finishToken(a.types.num,u)},l.readCodePoint=function(){var t=this.input.charCodeAt(this.pos),e=void 0;if(123===t){this.options.ecmaVersion<6&&this.unexpected();var r=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.raise(r,"Code point out of bounds")}else e=this.readHexChar(4);return e},l.readString=function(t){for(var e="",r=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var n=this.input.charCodeAt(this.pos);if(n===t)break;92===n?(e+=this.input.slice(r,this.pos),e+=this.readEscapedChar(!1),r=this.pos):(h.isNewLine(n)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return e+=this.input.slice(r,this.pos++),this.finishToken(a.types.string,e)},l.readTmplToken=function(){for(var t="",e=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var r=this.input.charCodeAt(this.pos);if(96===r||36===r&&123===this.input.charCodeAt(this.pos+1))return this.pos===this.start&&this.type===a.types.template?36===r?(this.pos+=2,this.finishToken(a.types.dollarBraceL)):(++this.pos,this.finishToken(a.types.backQuote)):(t+=this.input.slice(e,this.pos),this.finishToken(a.types.template,t));if(92===r)t+=this.input.slice(e,this.pos),t+=this.readEscapedChar(!0),e=this.pos;else if(h.isNewLine(r)){switch(t+=this.input.slice(e,this.pos),++this.pos,r){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:t+="\n";break;default:t+=String.fromCharCode(r)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),e=this.pos}else++this.pos}},l.readEscapedChar=function(t){var e=this.input.charCodeAt(++this.pos);switch(++this.pos,e){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return s(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\x0B";case 102:return"\f";case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";default:if(e>=48&&55>=e){var r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],n=parseInt(r,8);return n>255&&(r=r.slice(0,-1),n=parseInt(r,8)),n>0&&(this.strict||t)&&this.raise(this.pos-2,"Octal literal in strict mode"),this.pos+=r.length-1,String.fromCharCode(n)}return String.fromCharCode(e)}},l.readHexChar=function(t){var e=this.pos,r=this.readInt(16,t);return null===r&&this.raise(e,"Bad character escape sequence"),r};var g;l.readWord1=function(){g=!1;for(var t="",e=!0,r=this.pos,n=this.options.ecmaVersion>=6;this.pos=i?1:2;else{if(92!==i)break;g=!0,t+=this.input.slice(r,this.pos);var a=this.pos;117!=this.input.charCodeAt(++this.pos)&&this.raise(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var u=this.readCodePoint();(e?o.isIdentifierStart:o.isIdentifierChar)(u,n)||this.raise(a,"Invalid Unicode escape"),t+=s(u),r=this.pos}e=!1}return t+this.input.slice(r,this.pos)},l.readWord=function(){var t=this.readWord1(),e=a.types.name;return(this.options.ecmaVersion>=6||!g)&&this.isKeyword(t)&&(e=a.keywords[t]),this.finishToken(e,t)}},{"./identifier":2,"./locutil":5,"./state":10,"./tokentype":14,"./whitespace":16}],14:[function(t,e,r){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){return new o(t,{beforeExpr:!0,binop:e})}function s(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];e.keyword=t,h[t]=p["_"+t]=new o(t,e)}r.__esModule=!0;var o=function c(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];n(this,c),this.label=t,this.keyword=e.keyword,this.beforeExpr=!!e.beforeExpr,this.startsExpr=!!e.startsExpr,this.isLoop=!!e.isLoop,this.isAssign=!!e.isAssign,this.prefix=!!e.prefix,this.postfix=!!e.postfix,this.binop=e.binop||null,this.updateContext=null};r.TokenType=o;var a={beforeExpr:!0},u={startsExpr:!0},p={num:new o("num",u),regexp:new o("regexp",u),string:new o("string",u),name:new o("name",u),eof:new o("eof"),bracketL:new o("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new o("]"),braceL:new o("{",{beforeExpr:!0,startsExpr:!0}),braceR:new o("}"),parenL:new o("(",{beforeExpr:!0,startsExpr:!0}),parenR:new o(")"),comma:new o(",",a),semi:new o(";",a),colon:new o(":",a),dot:new o("."),question:new o("?",a),arrow:new o("=>",a),template:new o("template"),ellipsis:new o("...",a),backQuote:new o("`",u),dollarBraceL:new o("${",{beforeExpr:!0,startsExpr:!0}),eq:new o("=",{beforeExpr:!0,isAssign:!0}),assign:new o("_=",{beforeExpr:!0,isAssign:!0}),incDec:new o("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new o("prefix",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:i("||",1),logicalAND:i("&&",2),bitwiseOR:i("|",3),bitwiseXOR:i("^",4),bitwiseAND:i("&",5),equality:i("==/!=",6),relational:i("",7),bitShift:i("<>",8),plusMin:new o("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:i("%",10),star:i("*",10),slash:i("/",10)};r.types=p;var h={};r.keywords=h,s("break"),s("case",a),s("catch"),s("continue"),s("debugger"),s("default",a),s("do",{isLoop:!0}),s("else",a),s("finally"),s("for",{isLoop:!0}),s("function",u),s("if"),s("return",a),s("switch"),s("throw",a),s("try"),s("var"),s("let"),s("const"),s("while",{isLoop:!0}),s("with"),s("new",{beforeExpr:!0,startsExpr:!0}),s("this",u),s("super",u),s("class"),s("extends",a),s("export"),s("import"),s("yield",{beforeExpr:!0,startsExpr:!0}),s("null",u),s("true",u),s("false",u),s("in",{beforeExpr:!0,binop:7}),s("instanceof",{beforeExpr:!0,binop:7}),s("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),s("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),s("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},{}],15:[function(t,e,r){"use strict";function n(t){return"[object Array]"===Object.prototype.toString.call(t)}function i(t,e){return Object.prototype.hasOwnProperty.call(t,e)}r.__esModule=!0,r.isArray=n,r.has=i},{}],16:[function(t,e,r){"use strict";function n(t){return 10===t||13===t||8232===t||8233==t}r.__esModule=!0,r.isNewLine=n;var i=/\r\n?|\n|\u2028|\u2029/;r.lineBreak=i;var s=new RegExp(i.source,"g");r.lineBreakG=s;var o=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;r.nonASCIIwhitespace=o},{}]},{},[3])(3)})}]); \ No newline at end of file +"use strict";function i(){function t(){}try{var e=new Uint8Array(1);return e.foo=function(){return 42},e.constructor=t,42===e.foo()&&e.constructor===t&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(r){return!1}}function s(){return t.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function t(e){return this instanceof t?(t.TYPED_ARRAY_SUPPORT||(this.length=0,this.parent=void 0),"number"==typeof e?o(this,e):"string"==typeof e?a(this,e,arguments.length>1?arguments[1]:"utf8"):u(this,e)):arguments.length>1?new t(e,arguments[1]):new t(e)}function o(e,r){if(e=g(e,0>r?0:0|m(r)),!t.TYPED_ARRAY_SUPPORT)for(var n=0;r>n;n++)e[n]=0;return e}function a(t,e,r){"string"==typeof r&&""!==r||(r="utf8");var n=0|v(e,r);return t=g(t,n),t.write(e,r),t}function u(e,r){if(t.isBuffer(r))return p(e,r);if(X(r))return c(e,r);if(null==r)throw new TypeError("must start with number, buffer, array or string");if("undefined"!=typeof ArrayBuffer){if(r.buffer instanceof ArrayBuffer)return h(e,r);if(r instanceof ArrayBuffer)return l(e,r)}return r.length?f(e,r):d(e,r)}function p(t,e){var r=0|m(e.length);return t=g(t,r),e.copy(t,0,0,r),t}function c(t,e){var r=0|m(e.length);t=g(t,r);for(var n=0;r>n;n+=1)t[n]=255&e[n];return t}function h(t,e){var r=0|m(e.length);t=g(t,r);for(var n=0;r>n;n+=1)t[n]=255&e[n];return t}function l(e,r){return t.TYPED_ARRAY_SUPPORT?(r.byteLength,e=t._augment(new Uint8Array(r))):e=h(e,new Uint8Array(r)),e}function f(t,e){var r=0|m(e.length);t=g(t,r);for(var n=0;r>n;n+=1)t[n]=255&e[n];return t}function d(t,e){var r,n=0;"Buffer"===e.type&&X(e.data)&&(r=e.data,n=0|m(r.length)),t=g(t,n);for(var i=0;n>i;i+=1)t[i]=255&r[i];return t}function g(e,r){t.TYPED_ARRAY_SUPPORT?(e=t._augment(new Uint8Array(r)),e.__proto__=t.prototype):(e.length=r,e._isBuffer=!0);var n=0!==r&&r<=t.poolSize>>>1;return n&&(e.parent=Q),e}function m(t){if(t>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|t}function y(e,r){if(!(this instanceof y))return new y(e,r);var n=new t(e,r);return delete n.parent,n}function v(t,e){"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"binary":case"raw":case"raws":return r;case"utf8":case"utf-8":return q(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return z(t).length;default:if(n)return q(t).length;e=(""+e).toLowerCase(),n=!0}}function x(t,e,r){var n=!1;if(e=0|e,r=void 0===r||r===1/0?this.length:0|r,t||(t="utf8"),0>e&&(e=0),r>this.length&&(r=this.length),e>=r)return"";for(;;)switch(t){case"hex":return N(this,e,r);case"utf8":case"utf-8":return C(this,e,r);case"ascii":return O(this,e,r);case"binary":return P(this,e,r);case"base64":return k(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function b(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var s=e.length;if(s%2!==0)throw new Error("Invalid hex string");n>s/2&&(n=s/2);for(var o=0;n>o;o++){var a=parseInt(e.substr(2*o,2),16);if(isNaN(a))throw new Error("Invalid hex string");t[r+o]=a}return o}function E(t,e,r,n){return W(q(e,t.length-r),t,r,n)}function w(t,e,r,n){return W(Y(e),t,r,n)}function _(t,e,r,n){return w(t,e,r,n)}function S(t,e,r,n){return W(z(e),t,r,n)}function A(t,e,r,n){return W(G(e,t.length-r),t,r,n)}function k(t,e,r){return 0===e&&r===t.length?J.fromByteArray(t):J.fromByteArray(t.slice(e,r))}function C(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;r>i;){var s=t[i],o=null,a=s>239?4:s>223?3:s>191?2:1;if(r>=i+a){var u,p,c,h;switch(a){case 1:128>s&&(o=s);break;case 2:u=t[i+1],128===(192&u)&&(h=(31&s)<<6|63&u,h>127&&(o=h));break;case 3:u=t[i+1],p=t[i+2],128===(192&u)&&128===(192&p)&&(h=(15&s)<<12|(63&u)<<6|63&p,h>2047&&(55296>h||h>57343)&&(o=h));break;case 4:u=t[i+1],p=t[i+2],c=t[i+3],128===(192&u)&&128===(192&p)&&128===(192&c)&&(h=(15&s)<<18|(63&u)<<12|(63&p)<<6|63&c,h>65535&&1114112>h&&(o=h))}}null===o?(o=65533,a=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),i+=a}return L(n)}function L(t){var e=t.length;if(Z>=e)return String.fromCharCode.apply(String,t);for(var r="",n=0;e>n;)r+=String.fromCharCode.apply(String,t.slice(n,n+=Z));return r}function O(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;r>i;i++)n+=String.fromCharCode(127&t[i]);return n}function P(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;r>i;i++)n+=String.fromCharCode(t[i]);return n}function N(t,e,r){var n=t.length;(!e||0>e)&&(e=0),(!r||0>r||r>n)&&(r=n);for(var i="",s=e;r>s;s++)i+=V(t[s]);return i}function I(t,e,r){for(var n=t.slice(e,r),i="",s=0;st)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function T(e,r,n,i,s,o){if(!t.isBuffer(e))throw new TypeError("buffer must be a Buffer instance");if(r>s||o>r)throw new RangeError("value is out of bounds");if(n+i>e.length)throw new RangeError("index out of range")}function M(t,e,r,n){0>e&&(e=65535+e+1);for(var i=0,s=Math.min(t.length-r,2);s>i;i++)t[r+i]=(e&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function j(t,e,r,n){0>e&&(e=4294967295+e+1);for(var i=0,s=Math.min(t.length-r,4);s>i;i++)t[r+i]=e>>>8*(n?i:3-i)&255}function B(t,e,r,n,i,s){if(e>i||s>e)throw new RangeError("value is out of bounds");if(r+n>t.length)throw new RangeError("index out of range");if(0>r)throw new RangeError("index out of range")}function F(t,e,r,n,i){return i||B(t,e,r,4,3.4028234663852886e38,-3.4028234663852886e38),H.write(t,e,r,n,23,4),r+4}function D(t,e,r,n,i){return i||B(t,e,r,8,1.7976931348623157e308,-1.7976931348623157e308),H.write(t,e,r,n,52,8),r+8}function U(t){if(t=$(t).replace(tt,""),t.length<2)return"";for(;t.length%4!==0;)t+="=";return t}function $(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function V(t){return 16>t?"0"+t.toString(16):t.toString(16)}function q(t,e){e=e||1/0;for(var r,n=t.length,i=null,s=[],o=0;n>o;o++){if(r=t.charCodeAt(o),r>55295&&57344>r){if(!i){if(r>56319){(e-=3)>-1&&s.push(239,191,189);continue}if(o+1===n){(e-=3)>-1&&s.push(239,191,189);continue}i=r;continue}if(56320>r){(e-=3)>-1&&s.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&s.push(239,191,189);if(i=null,128>r){if((e-=1)<0)break;s.push(r)}else if(2048>r){if((e-=2)<0)break;s.push(r>>6|192,63&r|128)}else if(65536>r){if((e-=3)<0)break;s.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(1114112>r))throw new Error("Invalid code point");if((e-=4)<0)break;s.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return s}function Y(t){for(var e=[],r=0;r>8,i=r%256,s.push(i),s.push(n);return s}function z(t){return J.toByteArray(U(t))}function W(t,e,r,n){for(var i=0;n>i&&!(i+r>=e.length||i>=t.length);i++)e[i+r]=t[i];return i}var J=r(17),H=r(18),X=r(19);e.Buffer=t,e.SlowBuffer=y,e.INSPECT_MAX_BYTES=50,t.poolSize=8192;var Q={};t.TYPED_ARRAY_SUPPORT=void 0!==n.TYPED_ARRAY_SUPPORT?n.TYPED_ARRAY_SUPPORT:i(),t.TYPED_ARRAY_SUPPORT?(t.prototype.__proto__=Uint8Array.prototype,t.__proto__=Uint8Array):(t.prototype.length=void 0,t.prototype.parent=void 0),t.isBuffer=function(t){return!(null==t||!t._isBuffer)},t.compare=function(e,r){if(!t.isBuffer(e)||!t.isBuffer(r))throw new TypeError("Arguments must be Buffers");if(e===r)return 0;for(var n=e.length,i=r.length,s=0,o=Math.min(n,i);o>s&&e[s]===r[s];)++s;return s!==o&&(n=e[s],i=r[s]),i>n?-1:n>i?1:0},t.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},t.concat=function(e,r){if(!X(e))throw new TypeError("list argument must be an Array of Buffers.");if(0===e.length)return new t(0);var n;if(void 0===r)for(r=0,n=0;n0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),""},t.prototype.compare=function(e){if(!t.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?0:t.compare(this,e)},t.prototype.indexOf=function(e,r){function n(t,e,r){for(var n=-1,i=0;r+i2147483647?r=2147483647:-2147483648>r&&(r=-2147483648),r>>=0,0===this.length)return-1;if(r>=this.length)return-1;if(0>r&&(r=Math.max(this.length+r,0)),"string"==typeof e)return 0===e.length?-1:String.prototype.indexOf.call(this,e,r);if(t.isBuffer(e))return n(this,e,r);if("number"==typeof e)return t.TYPED_ARRAY_SUPPORT&&"function"===Uint8Array.prototype.indexOf?Uint8Array.prototype.indexOf.call(this,e,r):n(this,[e],r);throw new TypeError("val must be string, number or Buffer")},t.prototype.get=function(t){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(t)},t.prototype.set=function(t,e){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(t,e)},t.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else if(isFinite(e))e=0|e,isFinite(r)?(r=0|r,void 0===n&&(n="utf8")):(n=r,r=void 0);else{var i=n;n=e,e=0|r,r=i}var s=this.length-e;if((void 0===r||r>s)&&(r=s),t.length>0&&(0>r||0>e)||e>this.length)throw new RangeError("attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return b(this,t,e,r);case"utf8":case"utf-8":return E(this,t,e,r);case"ascii":return w(this,t,e,r);case"binary":return _(this,t,e,r);case"base64":return S(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,t,e,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},t.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Z=4096;t.prototype.slice=function(e,r){var n=this.length;e=~~e,r=void 0===r?n:~~r,0>e?(e+=n,0>e&&(e=0)):e>n&&(e=n),0>r?(r+=n,0>r&&(r=0)):r>n&&(r=n),e>r&&(r=e);var i;if(t.TYPED_ARRAY_SUPPORT)i=t._augment(this.subarray(e,r));else{var s=r-e;i=new t(s,void 0);for(var o=0;s>o;o++)i[o]=this[o+e]}return i.length&&(i.parent=this.parent||this),i},t.prototype.readUIntLE=function(t,e,r){t=0|t,e=0|e,r||R(t,e,this.length);for(var n=this[t],i=1,s=0;++s0&&(i*=256);)n+=this[t+--e]*i;return n},t.prototype.readUInt8=function(t,e){return e||R(t,1,this.length),this[t]},t.prototype.readUInt16LE=function(t,e){return e||R(t,2,this.length),this[t]|this[t+1]<<8},t.prototype.readUInt16BE=function(t,e){return e||R(t,2,this.length),this[t]<<8|this[t+1]},t.prototype.readUInt32LE=function(t,e){return e||R(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},t.prototype.readUInt32BE=function(t,e){return e||R(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},t.prototype.readIntLE=function(t,e,r){t=0|t,e=0|e,r||R(t,e,this.length);for(var n=this[t],i=1,s=0;++s=i&&(n-=Math.pow(2,8*e)),n},t.prototype.readIntBE=function(t,e,r){t=0|t,e=0|e,r||R(t,e,this.length);for(var n=e,i=1,s=this[t+--n];n>0&&(i*=256);)s+=this[t+--n]*i;return i*=128,s>=i&&(s-=Math.pow(2,8*e)),s},t.prototype.readInt8=function(t,e){return e||R(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},t.prototype.readInt16LE=function(t,e){e||R(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},t.prototype.readInt16BE=function(t,e){e||R(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},t.prototype.readInt32LE=function(t,e){return e||R(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},t.prototype.readInt32BE=function(t,e){return e||R(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},t.prototype.readFloatLE=function(t,e){return e||R(t,4,this.length),H.read(this,t,!0,23,4)},t.prototype.readFloatBE=function(t,e){return e||R(t,4,this.length),H.read(this,t,!1,23,4)},t.prototype.readDoubleLE=function(t,e){return e||R(t,8,this.length),H.read(this,t,!0,52,8)},t.prototype.readDoubleBE=function(t,e){return e||R(t,8,this.length),H.read(this,t,!1,52,8)},t.prototype.writeUIntLE=function(t,e,r,n){t=+t,e=0|e,r=0|r,n||T(this,t,e,r,Math.pow(2,8*r),0);var i=1,s=0;for(this[e]=255&t;++s=0&&(s*=256);)this[e+i]=t/s&255;return e+r},t.prototype.writeUInt8=function(e,r,n){return e=+e,r=0|r,n||T(this,e,r,1,255,0),t.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[r]=255&e,r+1},t.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=0|r,n||T(this,e,r,2,65535,0),t.TYPED_ARRAY_SUPPORT?(this[r]=255&e,this[r+1]=e>>>8):M(this,e,r,!0),r+2},t.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=0|r,n||T(this,e,r,2,65535,0),t.TYPED_ARRAY_SUPPORT?(this[r]=e>>>8,this[r+1]=255&e):M(this,e,r,!1),r+2},t.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=0|r,n||T(this,e,r,4,4294967295,0),t.TYPED_ARRAY_SUPPORT?(this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=255&e):j(this,e,r,!0),r+4},t.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=0|r,n||T(this,e,r,4,4294967295,0),t.TYPED_ARRAY_SUPPORT?(this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=255&e):j(this,e,r,!1),r+4},t.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e=0|e,!n){var i=Math.pow(2,8*r-1);T(this,t,e,r,i-1,-i)}var s=0,o=1,a=0>t?1:0;for(this[e]=255&t;++s>0)-a&255;return e+r},t.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e=0|e,!n){var i=Math.pow(2,8*r-1);T(this,t,e,r,i-1,-i)}var s=r-1,o=1,a=0>t?1:0;for(this[e+s]=255&t;--s>=0&&(o*=256);)this[e+s]=(t/o>>0)-a&255;return e+r},t.prototype.writeInt8=function(e,r,n){return e=+e,r=0|r,n||T(this,e,r,1,127,-128),t.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),0>e&&(e=255+e+1),this[r]=255&e,r+1},t.prototype.writeInt16LE=function(e,r,n){return e=+e,r=0|r,n||T(this,e,r,2,32767,-32768),t.TYPED_ARRAY_SUPPORT?(this[r]=255&e,this[r+1]=e>>>8):M(this,e,r,!0),r+2},t.prototype.writeInt16BE=function(e,r,n){return e=+e,r=0|r,n||T(this,e,r,2,32767,-32768),t.TYPED_ARRAY_SUPPORT?(this[r]=e>>>8,this[r+1]=255&e):M(this,e,r,!1),r+2},t.prototype.writeInt32LE=function(e,r,n){return e=+e,r=0|r,n||T(this,e,r,4,2147483647,-2147483648),t.TYPED_ARRAY_SUPPORT?(this[r]=255&e,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24):j(this,e,r,!0),r+4},t.prototype.writeInt32BE=function(e,r,n){return e=+e,r=0|r,n||T(this,e,r,4,2147483647,-2147483648),0>e&&(e=4294967295+e+1),t.TYPED_ARRAY_SUPPORT?(this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=255&e):j(this,e,r,!1),r+4},t.prototype.writeFloatLE=function(t,e,r){return F(this,t,e,!0,r)},t.prototype.writeFloatBE=function(t,e,r){return F(this,t,e,!1,r)},t.prototype.writeDoubleLE=function(t,e,r){return D(this,t,e,!0,r)},t.prototype.writeDoubleBE=function(t,e,r){return D(this,t,e,!1,r)},t.prototype.copy=function(e,r,n,i){if(n||(n=0),i||0===i||(i=this.length),r>=e.length&&(r=e.length),r||(r=0),i>0&&n>i&&(i=n),i===n)return 0;if(0===e.length||0===this.length)return 0;if(0>r)throw new RangeError("targetStart out of bounds");if(0>n||n>=this.length)throw new RangeError("sourceStart out of bounds");if(0>i)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-rn&&i>r)for(s=o-1;s>=0;s--)e[s+r]=this[s+n];else if(1e3>o||!t.TYPED_ARRAY_SUPPORT)for(s=0;o>s;s++)e[s+r]=this[s+n];else e._set(this.subarray(n,n+o),r);return o},t.prototype.fill=function(t,e,r){if(t||(t=0),e||(e=0),r||(r=this.length),e>r)throw new RangeError("end < start");if(r!==e&&0!==this.length){if(0>e||e>=this.length)throw new RangeError("start out of bounds");if(0>r||r>this.length)throw new RangeError("end out of bounds");var n;if("number"==typeof t)for(n=e;r>n;n++)this[n]=t;else{var i=q(t.toString()),s=i.length;for(n=e;r>n;n++)this[n]=i[n%s]}return this}},t.prototype.toArrayBuffer=function(){if("undefined"!=typeof Uint8Array){if(t.TYPED_ARRAY_SUPPORT)return new t(this).buffer;for(var e=new Uint8Array(this.length),r=0,n=e.length;n>r;r+=1)e[r]=this[r];return e.buffer}throw new TypeError("Buffer.toArrayBuffer not supported in this browser")};var K=t.prototype;t._augment=function(e){return e.constructor=t,e._isBuffer=!0,e._set=e.set,e.get=K.get,e.set=K.set,e.write=K.write,e.toString=K.toString,e.toLocaleString=K.toString,e.toJSON=K.toJSON,e.equals=K.equals,e.compare=K.compare,e.indexOf=K.indexOf,e.copy=K.copy,e.slice=K.slice,e.readUIntLE=K.readUIntLE,e.readUIntBE=K.readUIntBE,e.readUInt8=K.readUInt8,e.readUInt16LE=K.readUInt16LE,e.readUInt16BE=K.readUInt16BE,e.readUInt32LE=K.readUInt32LE,e.readUInt32BE=K.readUInt32BE,e.readIntLE=K.readIntLE,e.readIntBE=K.readIntBE,e.readInt8=K.readInt8,e.readInt16LE=K.readInt16LE,e.readInt16BE=K.readInt16BE,e.readInt32LE=K.readInt32LE,e.readInt32BE=K.readInt32BE,e.readFloatLE=K.readFloatLE,e.readFloatBE=K.readFloatBE,e.readDoubleLE=K.readDoubleLE,e.readDoubleBE=K.readDoubleBE,e.writeUInt8=K.writeUInt8,e.writeUIntLE=K.writeUIntLE,e.writeUIntBE=K.writeUIntBE,e.writeUInt16LE=K.writeUInt16LE,e.writeUInt16BE=K.writeUInt16BE,e.writeUInt32LE=K.writeUInt32LE,e.writeUInt32BE=K.writeUInt32BE,e.writeIntLE=K.writeIntLE,e.writeIntBE=K.writeIntBE,e.writeInt8=K.writeInt8,e.writeInt16LE=K.writeInt16LE,e.writeInt16BE=K.writeInt16BE,e.writeInt32LE=K.writeInt32LE,e.writeInt32BE=K.writeInt32BE,e.writeFloatLE=K.writeFloatLE,e.writeFloatBE=K.writeFloatBE,e.writeDoubleLE=K.writeDoubleLE,e.writeDoubleBE=K.writeDoubleBE,e.fill=K.fill,e.inspect=K.inspect,e.toArrayBuffer=K.toArrayBuffer,e};var tt=/[^+\/0-9A-Za-z-_]/g}).call(e,r(16).Buffer,function(){return this}())},function(t,e,r){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";!function(t){"use strict";function e(t){var e=t.charCodeAt(0);return e===o||e===h?62:e===a||e===l?63:u>e?-1:u+10>e?e-u+26+26:c+26>e?e-c:p+26>e?e-p+26:void 0}function r(t){function r(t){p[h++]=t}var n,i,o,a,u,p;if(t.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var c=t.length;u="="===t.charAt(c-2)?2:"="===t.charAt(c-1)?1:0,p=new s(3*t.length/4-u),o=u>0?t.length-4:t.length;var h=0;for(n=0,i=0;o>n;n+=4,i+=3)a=e(t.charAt(n))<<18|e(t.charAt(n+1))<<12|e(t.charAt(n+2))<<6|e(t.charAt(n+3)),r((16711680&a)>>16),r((65280&a)>>8),r(255&a);return 2===u?(a=e(t.charAt(n))<<2|e(t.charAt(n+1))>>4,r(255&a)):1===u&&(a=e(t.charAt(n))<<10|e(t.charAt(n+1))<<4|e(t.charAt(n+2))>>2,r(a>>8&255),r(255&a)),p}function i(t){function e(t){return n.charAt(t)}function r(t){return e(t>>18&63)+e(t>>12&63)+e(t>>6&63)+e(63&t)}var i,s,o,a=t.length%3,u="";for(i=0,o=t.length-a;o>i;i+=3)s=(t[i]<<16)+(t[i+1]<<8)+t[i+2],u+=r(s);switch(a){case 1:s=t[t.length-1],u+=e(s>>2),u+=e(s<<4&63),u+="==";break;case 2:s=(t[t.length-2]<<8)+t[t.length-1],u+=e(s>>10),u+=e(s>>4&63),u+=e(s<<2&63),u+="="}return u}var s="undefined"!=typeof Uint8Array?Uint8Array:Array,o="+".charCodeAt(0),a="/".charCodeAt(0),u="0".charCodeAt(0),p="a".charCodeAt(0),c="A".charCodeAt(0),h="-".charCodeAt(0),l="_".charCodeAt(0);t.toByteArray=r,t.fromByteArray=i}(e)},function(t,e){e.read=function(t,e,r,n,i){var s,o,a=8*i-n-1,u=(1<>1,c=-7,h=r?i-1:0,l=r?-1:1,f=t[e+h];for(h+=l,s=f&(1<<-c)-1,f>>=-c,c+=a;c>0;s=256*s+t[e+h],h+=l,c-=8);for(o=s&(1<<-c)-1,s>>=-c,c+=n;c>0;o=256*o+t[e+h],h+=l,c-=8);if(0===s)s=1-p;else{if(s===u)return o?NaN:(f?-1:1)*(1/0);o+=Math.pow(2,n),s-=p}return(f?-1:1)*o*Math.pow(2,s-n)},e.write=function(t,e,r,n,i,s){var o,a,u,p=8*s-i-1,c=(1<>1,l=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:s-1,d=n?1:-1,g=0>e||0===e&&0>1/e?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,o=c):(o=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-o))<1&&(o--,u*=2),e+=o+h>=1?l/u:l*Math.pow(2,1-h),e*u>=2&&(o++,u/=2),o+h>=c?(a=0,o=c):o+h>=1?(a=(e*u-1)*Math.pow(2,i),o+=h):(a=e*Math.pow(2,h-1)*Math.pow(2,i),o=0));i>=8;t[r+f]=255&a,f+=d,a/=256,i-=8);for(o=o<0;t[r+f]=255&o,f+=d,o/=256,p-=8);t[r+f-d]|=128*g}},function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},function(t,e){},function(t,e,r){(function(t){function r(t,e){for(var r=0,n=t.length-1;n>=0;n--){var i=t[n];"."===i?t.splice(n,1):".."===i?(t.splice(n,1),r++):r&&(t.splice(n,1),r--)}if(e)for(;r--;r)t.unshift("..");return t}function n(t,e){if(t.filter)return t.filter(e);for(var r=[],n=0;n=-1&&!i;s--){var o=s>=0?arguments[s]:t.cwd();if("string"!=typeof o)throw new TypeError("Arguments to path.resolve must be strings");o&&(e=o+"/"+e,i="/"===o.charAt(0))}return e=r(n(e.split("/"),function(t){return!!t}),!i).join("/"),(i?"/":"")+e||"."},e.normalize=function(t){var i=e.isAbsolute(t),s="/"===o(t,-1);return t=r(n(t.split("/"),function(t){return!!t}),!i).join("/"),t||i||(t="."),t&&s&&(t+="/"),(i?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(n(t,function(t,e){if("string"!=typeof t)throw new TypeError("Arguments to path.join must be strings");return t}).join("/"))},e.relative=function(t,r){function n(t){for(var e=0;e=0&&""===t[r];r--);return e>r?[]:t.slice(e,r-e+1)}t=e.resolve(t).substr(1),r=e.resolve(r).substr(1);for(var i=n(t.split("/")),s=n(r.split("/")),o=Math.min(i.length,s.length),a=o,u=0;o>u;u++)if(i[u]!==s[u]){a=u;break}for(var p=[],u=a;ue&&(e=t.length+e),t.substr(e,r)}}).call(e,r(6))},function(t,e,r){e.SourceMapGenerator=r(23).SourceMapGenerator,e.SourceMapConsumer=r(29).SourceMapConsumer,e.SourceNode=r(32).SourceNode},function(t,e,r){function n(t){t||(t={}),this._file=s.getArg(t,"file",null),this._sourceRoot=s.getArg(t,"sourceRoot",null),this._skipValidation=s.getArg(t,"skipValidation",!1),this._sources=new o,this._names=new o,this._mappings=new a,this._sourcesContents=null}var i=r(24),s=r(26),o=r(27).ArraySet,a=r(28).MappingList;n.prototype._version=3,n.fromSourceMap=function(t){var e=t.sourceRoot,r=new n({file:t.file,sourceRoot:e});return t.eachMapping(function(t){var n={generated:{line:t.generatedLine,column:t.generatedColumn}};null!=t.source&&(n.source=t.source,null!=e&&(n.source=s.relative(e,n.source)),n.original={line:t.originalLine,column:t.originalColumn},null!=t.name&&(n.name=t.name)),r.addMapping(n)}),t.sources.forEach(function(e){var n=t.sourceContentFor(e);null!=n&&r.setSourceContent(e,n)}),r},n.prototype.addMapping=function(t){var e=s.getArg(t,"generated"),r=s.getArg(t,"original",null),n=s.getArg(t,"source",null),i=s.getArg(t,"name",null);this._skipValidation||this._validateMapping(e,r,n,i),null!=n&&(n=String(n),this._sources.has(n)||this._sources.add(n)),null!=i&&(i=String(i),this._names.has(i)||this._names.add(i)),this._mappings.add({generatedLine:e.line,generatedColumn:e.column,originalLine:null!=r&&r.line,originalColumn:null!=r&&r.column,source:n,name:i})},n.prototype.setSourceContent=function(t,e){var r=t;null!=this._sourceRoot&&(r=s.relative(this._sourceRoot,r)),null!=e?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[s.toSetString(r)]=e):this._sourcesContents&&(delete this._sourcesContents[s.toSetString(r)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},n.prototype.applySourceMap=function(t,e,r){var n=e;if(null==e){if(null==t.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');n=t.file}var i=this._sourceRoot;null!=i&&(n=s.relative(i,n));var a=new o,u=new o;this._mappings.unsortedForEach(function(e){if(e.source===n&&null!=e.originalLine){var o=t.originalPositionFor({line:e.originalLine,column:e.originalColumn});null!=o.source&&(e.source=o.source,null!=r&&(e.source=s.join(r,e.source)),null!=i&&(e.source=s.relative(i,e.source)),e.originalLine=o.line,e.originalColumn=o.column,null!=o.name&&(e.name=o.name))}var p=e.source;null==p||a.has(p)||a.add(p);var c=e.name;null==c||u.has(c)||u.add(c)},this),this._sources=a,this._names=u,t.sources.forEach(function(e){var n=t.sourceContentFor(e);null!=n&&(null!=r&&(e=s.join(r,e)),null!=i&&(e=s.relative(i,e)),this.setSourceContent(e,n))},this)},n.prototype._validateMapping=function(t,e,r,n){if((!(t&&"line"in t&&"column"in t&&t.line>0&&t.column>=0)||e||r||n)&&!(t&&"line"in t&&"column"in t&&e&&"line"in e&&"column"in e&&t.line>0&&t.column>=0&&e.line>0&&e.column>=0&&r))throw new Error("Invalid mapping: "+JSON.stringify({generated:t,source:r,original:e,name:n}))},n.prototype._serializeMappings=function(){for(var t,e,r,n,o=0,a=1,u=0,p=0,c=0,h=0,l="",f=this._mappings.toArray(),d=0,g=f.length;g>d;d++){if(e=f[d],t="",e.generatedLine!==a)for(o=0;e.generatedLine!==a;)t+=";",a++;else if(d>0){if(!s.compareByGeneratedPositionsInflated(e,f[d-1]))continue;t+=","}t+=i.encode(e.generatedColumn-o),o=e.generatedColumn,null!=e.source&&(n=this._sources.indexOf(e.source),t+=i.encode(n-h),h=n,t+=i.encode(e.originalLine-1-p),p=e.originalLine-1,t+=i.encode(e.originalColumn-u),u=e.originalColumn,null!=e.name&&(r=this._names.indexOf(e.name),t+=i.encode(r-c),c=r)),l+=t}return l},n.prototype._generateSourcesContent=function(t,e){return t.map(function(t){if(!this._sourcesContents)return null;null!=e&&(t=s.relative(e,t));var r=s.toSetString(t);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null},this)},n.prototype.toJSON=function(){var t={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(t.file=this._file),null!=this._sourceRoot&&(t.sourceRoot=this._sourceRoot),this._sourcesContents&&(t.sourcesContent=this._generateSourcesContent(t.sources,t.sourceRoot)),t},n.prototype.toString=function(){return JSON.stringify(this.toJSON())},e.SourceMapGenerator=n},function(t,e,r){function n(t){return 0>t?(-t<<1)+1:(t<<1)+0}function i(t){var e=1===(1&t),r=t>>1;return e?-r:r}var s=r(25),o=5,a=1<>>=o,i>0&&(e|=p),r+=s.encode(e);while(i>0);return r},e.decode=function(t,e,r){var n,a,c=t.length,h=0,l=0;do{if(e>=c)throw new Error("Expected more digits in base 64 VLQ value.");if(a=s.decode(t.charCodeAt(e++)),-1===a)throw new Error("Invalid base64 digit: "+t.charAt(e-1));n=!!(a&p),a&=u,h+=a<=0&&t=e&&r>=t?t-e:t>=n&&i>=t?t-n+p:t>=s&&o>=t?t-s+c:t==a?62:t==u?63:-1}},function(t,e){function r(t,e,r){if(e in t)return t[e];if(3===arguments.length)return r;throw new Error('"'+e+'" is a required argument.')}function n(t){var e=t.match(m);return e?{scheme:e[1],auth:e[2],host:e[3],port:e[4],path:e[5]}:null}function i(t){var e="";return t.scheme&&(e+=t.scheme+":"),e+="//",t.auth&&(e+=t.auth+"@"),t.host&&(e+=t.host),t.port&&(e+=":"+t.port),t.path&&(e+=t.path),e}function s(t){var r=t,s=n(t);if(s){if(!s.path)return t;r=s.path}for(var o,a=e.isAbsolute(r),u=r.split(/\/+/),p=0,c=u.length-1;c>=0;c--)o=u[c],"."===o?u.splice(c,1):".."===o?p++:p>0&&(""===o?(u.splice(c+1,p),p=0):(u.splice(c,2),p--));return r=u.join("/"),""===r&&(r=a?"/":"."),s?(s.path=r,i(s)):r}function o(t,e){""===t&&(t="."),""===e&&(e=".");var r=n(e),o=n(t);if(o&&(t=o.path||"/"),r&&!r.scheme)return o&&(r.scheme=o.scheme),i(r);if(r||e.match(y))return e;if(o&&!o.host&&!o.path)return o.host=e,i(o);var a="/"===e.charAt(0)?e:s(t.replace(/\/+$/,"")+"/"+e);return o?(o.path=a,i(o)):a}function a(t,e){""===t&&(t="."),t=t.replace(/\/$/,"");for(var r=0;0!==e.indexOf(t+"/");){var n=t.lastIndexOf("/");if(0>n)return e;if(t=t.slice(0,n),t.match(/^([^\/]+:\/)?\/*$/))return e;++r}return Array(r+1).join("../")+e.substr(t.length+1)}function u(t){return t}function p(t){return h(t)?"$"+t:t}function c(t){return h(t)?t.slice(1):t}function h(t){if(!t)return!1;var e=t.length;if(9>e)return!1;if(95!==t.charCodeAt(e-1)||95!==t.charCodeAt(e-2)||111!==t.charCodeAt(e-3)||116!==t.charCodeAt(e-4)||111!==t.charCodeAt(e-5)||114!==t.charCodeAt(e-6)||112!==t.charCodeAt(e-7)||95!==t.charCodeAt(e-8)||95!==t.charCodeAt(e-9))return!1;for(var r=e-10;r>=0;r--)if(36!==t.charCodeAt(r))return!1;return!0}function l(t,e,r){var n=t.source-e.source;return 0!==n?n:(n=t.originalLine-e.originalLine,0!==n?n:(n=t.originalColumn-e.originalColumn,0!==n||r?n:(n=t.generatedColumn-e.generatedColumn,0!==n?n:(n=t.generatedLine-e.generatedLine,0!==n?n:t.name-e.name))))}function f(t,e,r){var n=t.generatedLine-e.generatedLine;return 0!==n?n:(n=t.generatedColumn-e.generatedColumn,0!==n||r?n:(n=t.source-e.source,0!==n?n:(n=t.originalLine-e.originalLine,0!==n?n:(n=t.originalColumn-e.originalColumn,0!==n?n:t.name-e.name))))}function d(t,e){return t===e?0:t>e?1:-1}function g(t,e){var r=t.generatedLine-e.generatedLine;return 0!==r?r:(r=t.generatedColumn-e.generatedColumn,0!==r?r:(r=d(t.source,e.source),0!==r?r:(r=t.originalLine-e.originalLine,0!==r?r:(r=t.originalColumn-e.originalColumn,0!==r?r:d(t.name,e.name)))))}e.getArg=r;var m=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,y=/^data:.+\,.+$/;e.urlParse=n,e.urlGenerate=i,e.normalize=s,e.join=o,e.isAbsolute=function(t){return"/"===t.charAt(0)||!!t.match(m)},e.relative=a;var v=function(){var t=Object.create(null);return!("__proto__"in t)}();e.toSetString=v?u:p,e.fromSetString=v?u:c,e.compareByOriginalPositions=l,e.compareByGeneratedPositionsDeflated=f,e.compareByGeneratedPositionsInflated=g},function(t,e,r){function n(){this._array=[],this._set=Object.create(null)}var i=r(26),s=Object.prototype.hasOwnProperty;n.fromArray=function(t,e){for(var r=new n,i=0,s=t.length;s>i;i++)r.add(t[i],e);return r},n.prototype.size=function(){return Object.getOwnPropertyNames(this._set).length},n.prototype.add=function(t,e){var r=i.toSetString(t),n=s.call(this._set,r),o=this._array.length;n&&!e||this._array.push(t),n||(this._set[r]=o)},n.prototype.has=function(t){var e=i.toSetString(t);return s.call(this._set,e)},n.prototype.indexOf=function(t){var e=i.toSetString(t);if(s.call(this._set,e))return this._set[e];throw new Error('"'+t+'" is not in the set.')},n.prototype.at=function(t){if(t>=0&&tr||n==r&&o>=i||s.compareByGeneratedPositionsInflated(t,e)<=0}function i(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}var s=r(26);i.prototype.unsortedForEach=function(t,e){this._array.forEach(t,e)},i.prototype.add=function(t){n(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))},i.prototype.toArray=function(){return this._sorted||(this._array.sort(s.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},e.MappingList=i},function(t,e,r){function n(t){var e=t;return"string"==typeof t&&(e=JSON.parse(t.replace(/^\)\]\}'/,""))),null!=e.sections?new o(e):new i(e)}function i(t){var e=t;"string"==typeof t&&(e=JSON.parse(t.replace(/^\)\]\}'/,"")));var r=a.getArg(e,"version"),n=a.getArg(e,"sources"),i=a.getArg(e,"names",[]),s=a.getArg(e,"sourceRoot",null),o=a.getArg(e,"sourcesContent",null),u=a.getArg(e,"mappings"),c=a.getArg(e,"file",null);if(r!=this._version)throw new Error("Unsupported version: "+r);n=n.map(String).map(a.normalize).map(function(t){return s&&a.isAbsolute(s)&&a.isAbsolute(t)?a.relative(s,t):t}),this._names=p.fromArray(i.map(String),!0),this._sources=p.fromArray(n,!0),this.sourceRoot=s,this.sourcesContent=o,this._mappings=u,this.file=c}function s(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function o(t){var e=t;"string"==typeof t&&(e=JSON.parse(t.replace(/^\)\]\}'/,"")));var r=a.getArg(e,"version"),i=a.getArg(e,"sections");if(r!=this._version)throw new Error("Unsupported version: "+r);this._sources=new p,this._names=new p;var s={line:-1,column:0};this._sections=i.map(function(t){if(t.url)throw new Error("Support for url field in sections not implemented.");var e=a.getArg(t,"offset"),r=a.getArg(e,"line"),i=a.getArg(e,"column");if(r=0){var s=this._originalMappings[i];if(void 0===t.column)for(var o=s.originalLine;s&&s.originalLine===o;)n.push({line:a.getArg(s,"generatedLine",null),column:a.getArg(s,"generatedColumn",null),lastColumn:a.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++i];else for(var p=s.originalColumn;s&&s.originalLine===e&&s.originalColumn==p;)n.push({line:a.getArg(s,"generatedLine",null),column:a.getArg(s,"generatedColumn",null),lastColumn:a.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++i]}return n},e.SourceMapConsumer=n,i.prototype=Object.create(n.prototype),i.prototype.consumer=n,i.fromSourceMap=function(t){var e=Object.create(i.prototype),r=e._names=p.fromArray(t._names.toArray(),!0),n=e._sources=p.fromArray(t._sources.toArray(),!0);e.sourceRoot=t._sourceRoot,e.sourcesContent=t._generateSourcesContent(e._sources.toArray(),e.sourceRoot),e.file=t._file;for(var o=t._mappings.toArray().slice(),u=e.__generatedMappings=[],c=e.__originalMappings=[],l=0,f=o.length;f>l;l++){var d=o[l],g=new s;g.generatedLine=d.generatedLine,g.generatedColumn=d.generatedColumn,d.source&&(g.source=n.indexOf(d.source),g.originalLine=d.originalLine,g.originalColumn=d.originalColumn,d.name&&(g.name=r.indexOf(d.name)),c.push(g)),u.push(g)}return h(e.__originalMappings,a.compareByOriginalPositions),e},i.prototype._version=3,Object.defineProperty(i.prototype,"sources",{get:function(){return this._sources.toArray().map(function(t){return null!=this.sourceRoot?a.join(this.sourceRoot,t):t},this)}}),i.prototype._parseMappings=function(t,e){for(var r,n,i,o,u,p=1,l=0,f=0,d=0,g=0,m=0,y=t.length,v=0,x={},b={},E=[],w=[];y>v;)if(";"===t.charAt(v))p++,v++,l=0;else if(","===t.charAt(v))v++;else{for(r=new s,r.generatedLine=p,o=v;y>o&&!this._charIsMappingSeparator(t,o);o++);if(n=t.slice(v,o),i=x[n])v+=n.length;else{for(i=[];o>v;)c.decode(t,v,b),u=b.value,v=b.rest,i.push(u);if(2===i.length)throw new Error("Found a source, but no line and column");if(3===i.length)throw new Error("Found a source and line, but no column");x[n]=i}r.generatedColumn=l+i[0],l=r.generatedColumn,i.length>1&&(r.source=g+i[1],g+=i[1],r.originalLine=f+i[2],f=r.originalLine,r.originalLine+=1,r.originalColumn=d+i[3],d=r.originalColumn,i.length>4&&(r.name=m+i[4],m+=i[4])),w.push(r),"number"==typeof r.originalLine&&E.push(r)}h(w,a.compareByGeneratedPositionsDeflated),this.__generatedMappings=w,h(E,a.compareByOriginalPositions),this.__originalMappings=E},i.prototype._findMapping=function(t,e,r,n,i,s){if(t[r]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+t[r]);if(t[n]<0)throw new TypeError("Column must be greater than or equal to 0, got "+t[n]);return u.search(t,e,i,s)},i.prototype.computeColumnSpans=function(){for(var t=0;t=0){var i=this._generatedMappings[r];if(i.generatedLine===e.generatedLine){var s=a.getArg(i,"source",null);null!==s&&(s=this._sources.at(s),null!=this.sourceRoot&&(s=a.join(this.sourceRoot,s)));var o=a.getArg(i,"name",null);return null!==o&&(o=this._names.at(o)),{source:s,line:a.getArg(i,"originalLine",null),column:a.getArg(i,"originalColumn",null),name:o}}}return{source:null,line:null,column:null,name:null}},i.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return null==t}):!1},i.prototype.sourceContentFor=function(t,e){if(!this.sourcesContent)return null;if(null!=this.sourceRoot&&(t=a.relative(this.sourceRoot,t)),this._sources.has(t))return this.sourcesContent[this._sources.indexOf(t)];var r;if(null!=this.sourceRoot&&(r=a.urlParse(this.sourceRoot))){var n=t.replace(/^file:\/\//,"");if("file"==r.scheme&&this._sources.has(n))return this.sourcesContent[this._sources.indexOf(n)];if((!r.path||"/"==r.path)&&this._sources.has("/"+t))return this.sourcesContent[this._sources.indexOf("/"+t)]}if(e)return null;throw new Error('"'+t+'" is not in the SourceMap.')},i.prototype.generatedPositionFor=function(t){var e=a.getArg(t,"source");if(null!=this.sourceRoot&&(e=a.relative(this.sourceRoot,e)),!this._sources.has(e))return{line:null,column:null,lastColumn:null};e=this._sources.indexOf(e);var r={source:e,originalLine:a.getArg(t,"line"),originalColumn:a.getArg(t,"column")},i=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",a.compareByOriginalPositions,a.getArg(t,"bias",n.GREATEST_LOWER_BOUND));if(i>=0){var s=this._originalMappings[i];if(s.source===r.source)return{line:a.getArg(s,"generatedLine",null),column:a.getArg(s,"generatedColumn",null),lastColumn:a.getArg(s,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},e.BasicSourceMapConsumer=i,o.prototype=Object.create(n.prototype),o.prototype.constructor=n,o.prototype._version=3,Object.defineProperty(o.prototype,"sources",{get:function(){for(var t=[],e=0;e0?n-u>1?r(u,n,i,s,o,a):a==e.LEAST_UPPER_BOUND?n1?r(t,u,i,s,o,a):a==e.LEAST_UPPER_BOUND?u:0>t?-1:t}e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2,e.search=function(t,n,i,s){if(0===n.length)return-1;var o=r(-1,n.length,t,n,i,s||e.GREATEST_LOWER_BOUND);if(0>o)return-1;for(;o-1>=0&&0===i(n[o],n[o-1],!0);)--o;return o}},function(t,e){function r(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function n(t,e){return Math.round(t+Math.random()*(e-t))}function i(t,e,s,o){if(o>s){var a=n(s,o),u=s-1;r(t,a,o);for(var p=t[o],c=s;o>c;c++)e(t[c],p)<=0&&(u+=1,r(t,u,c));r(t,u+1,c);var h=u+1;i(t,e,s,h-1),i(t,e,h+1,o)}}e.quickSort=function(t,e){i(t,e,0,t.length-1)}},function(t,e,r){function n(t,e,r,n,i){this.children=[],this.sourceContents={},this.line=null==t?null:t,this.column=null==e?null:e,this.source=null==r?null:r,this.name=null==i?null:i,this[u]=!0,null!=n&&this.add(n)}var i=r(23).SourceMapGenerator,s=r(26),o=/(\r?\n)/,a=10,u="$$$isSourceNode$$$";n.fromStringWithSourceMap=function(t,e,r){function i(t,e){if(null===t||void 0===t.source)a.add(e);else{var i=r?s.join(r,t.source):t.source;a.add(new n(t.originalLine,t.originalColumn,i,e,t.name))}}var a=new n,u=t.split(o),p=function(){var t=u.shift(),e=u.shift()||"";return t+e},c=1,h=0,l=null;return e.eachMapping(function(t){if(null!==l){if(!(c0&&(l&&i(l,p()),a.add(u.join(""))),e.sources.forEach(function(t){var n=e.sourceContentFor(t);null!=n&&(null!=r&&(t=s.join(r,t)),a.setSourceContent(t,n))}),a},n.prototype.add=function(t){if(Array.isArray(t))t.forEach(function(t){this.add(t)},this);else{if(!t[u]&&"string"!=typeof t)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);t&&this.children.push(t)}return this},n.prototype.prepend=function(t){if(Array.isArray(t))for(var e=t.length-1;e>=0;e--)this.prepend(t[e]);else{if(!t[u]&&"string"!=typeof t)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);this.children.unshift(t)}return this},n.prototype.walk=function(t){for(var e,r=0,n=this.children.length;n>r;r++)e=this.children[r],e[u]?e.walk(t):""!==e&&t(e,{source:this.source,line:this.line,column:this.column,name:this.name})},n.prototype.join=function(t){var e,r,n=this.children.length;if(n>0){for(e=[],r=0;n-1>r;r++)e.push(this.children[r]),e.push(t);e.push(this.children[r]),this.children=e}return this},n.prototype.replaceRight=function(t,e){var r=this.children[this.children.length-1];return r[u]?r.replaceRight(t,e):"string"==typeof r?this.children[this.children.length-1]=r.replace(t,e):this.children.push("".replace(t,e)),this},n.prototype.setSourceContent=function(t,e){this.sourceContents[s.toSetString(t)]=e},n.prototype.walkSourceContents=function(t){for(var e=0,r=this.children.length;r>e;e++)this.children[e][u]&&this.children[e].walkSourceContents(t);for(var n=Object.keys(this.sourceContents),e=0,r=n.length;r>e;e++)t(s.fromSetString(n[e]),this.sourceContents[n[e]])},n.prototype.toString=function(){var t="";return this.walk(function(e){t+=e}),t},n.prototype.toStringWithSourceMap=function(t){var e={code:"",line:1,column:0},r=new i(t),n=!1,s=null,o=null,u=null,p=null;return this.walk(function(t,i){e.code+=t,null!==i.source&&null!==i.line&&null!==i.column?(s===i.source&&o===i.line&&u===i.column&&p===i.name||r.addMapping({source:i.source,original:{line:i.line,column:i.column},generated:{line:e.line,column:e.column},name:i.name}),s=i.source,o=i.line,u=i.column,p=i.name,n=!0):n&&(r.addMapping({generated:{line:e.line,column:e.column}}),s=null,n=!1);for(var c=0,h=t.length;h>c;c++)t.charCodeAt(c)===a?(e.line++,e.column=0,c+1===h?(s=null,n=!1):n&&r.addMapping({source:i.source,original:{line:i.line,column:i.column},generated:{line:e.line,column:e.column},name:i.name})):e.column++}),this.walkSourceContents(function(t,e){r.setSourceContent(t,e)}),{code:e.code,map:r}},e.SourceNode=n},function(t,e,r){"use strict";function n(t,e){a(this instanceof n);var r=new Array(e.length),i=[],s=new Array(e.length),o=[],p=0;Date.now();u(t,{pre:function(t){"Program"!==t.type&&(p=t.range[0],r[p]||(r[p]=t),p=t.range[1],s[p]||(s[p]=t))}});for(var c in r)i.push(r[c]);for(var h in s)o.push(s[h]);Date.now();this.begins=i,this.ends=o}function i(t){var e=this.begins;a(p.finitenumber(t)&&t>=0);for(var r=0,n=e.length-1;n>r;){var i=Math.floor((r+n)/2);a(i>=0&&ie[i].range[0]?r=i+1:n=i}if(r>n)return a(o(e).range[0]=t),s>=1){var c=e[s-1].range[0];a(t>c)}return e[s]}function s(t){var e=this.ends;a(p.finitenumber(t)&&t>=0);for(var r=0,n=e.length-1;n>r;){var i=Math.ceil((r+n)/2);a(i>=0&&in)return a(e[0].range[1]>t),null;var s=r,o=e[s].range[1];if(o>t)return null;if(s<=e.length-2){var u=e[s+1].range[1];a(u>t)}return e[s]}function o(t){return t[t.length-1]}var a=r(4),u=r(10),p=r(2);t.exports=n,n.prototype.findNodeFromPos=i,n.prototype.findNodeBeforePos=s},function(t,e,r){"use strict";function n(t){d(t,{pre:i}),s(t.$scope)}function i(t,e){if(t.$parent=e,t.$scope=e?e.$scope:null,a(t,e))t.$scope=new g({kind:"block",node:t,parent:e.$scope});else if("VariableDeclaration"===t.type)t.declarations.forEach(function(e){var r=e.id.name;t.$scope.add(r,t.kind,e.id,e.range[1])});else if(h(t))t.$scope=new g({kind:"hoist",node:t,parent:e.$scope}),t.id&&("FunctionDeclaration"===t.type?e.$scope.add(t.id.name,"fun",t.id,null):"FunctionExpression"===t.type?t.$scope.add(t.id.name,"fun",t.id,null):f(!1)),t.params.forEach(function(e){t.$scope.add(e.name,"param",e,null)});else if(u(t)||p(t))t.$scope=new g({kind:"block",node:t,parent:e.$scope});else if("CatchClause"===t.type){var r=t.param;t.$scope=new g({kind:"catch-block",node:t,parent:e.$scope}),t.$scope.add(r.name,"caught",r,null),t.$scope.closestHoistScope().markPropagates(r.name)}else"Program"===t.type&&(t.$scope=new g({kind:"hoist",node:t,parent:null}))}function s(t){function e(t){for(var e in t){var n=t[e],i=n?"var":"const";r.hasOwn(e)&&r.remove(e),r.add(e,i,{loc:{start:{line:-1}}},-1)}}var r=new g({kind:"hoist",node:{},parent:null}),n={undefined:!1,Infinity:!1,console:!1};return e(n),t.parent=r,r.children.push(t),r}function o(t){return"const"===t||"let"===t}function a(t,e){return"BlockStatement"===t.type&&"FunctionDeclaration"!==e.type&&"FunctionExpression"!==e.type}function u(t){return"ForStatement"===t.type&&t.init&&"VariableDeclaration"===t.init.type&&o(t.init.kind)}function p(t){return c(t)&&"VariableDeclaration"===t.left.type&&o(t.left.kind)}function c(t){return"ForInStatement"===t.type||"ForOfStatement"===t.type}function h(t){return"FunctionDeclaration"===t.type||"FunctionExpression"===t.type}function l(t){var e=t.$parent;return t.$refToScope||"Identifier"===t.type&&!("VariableDeclarator"===e.type&&e.id===t)&&!("MemberExpression"===e.type&&e.computed===!1&&e.property===t)&&!("Property"===e.type&&e.key===t)&&!("LabeledStatement"===e.type&&e.label===t)&&!("CatchClause"===e.type&&e.param===t)&&!(h(e)&&e.id===t)&&!(h(e)&&m.someof(t,e.params))&&!0}var f=r(4),d=r(10),g=r(35),m=r(2);t.exports={setupScopeAndReferences:n,isReference:l}},function(t,e,r){"use strict";function n(t){i(a.someof(t.kind,["hoist","block","catch-block"])),i(a.object(t.node)),i(null===t.parent||a.object(t.parent)),this.kind=t.kind,this.node=t.node,this.parent=t.parent,this.children=[],this.decls=s(),this.propagates="hoist"===this.kind?o():null,this.parent&&this.parent.children.push(this)}var i=r(4),s=r(36),o=r(37),a=r(2),u=r(1);n.prototype.print=function(t){t=t||0;var e=this,r=this.decls.keys().map(function(t){return u("{0} [{1}]",t,e.decls.get(t).kind)}).join(", "),n=this.propagates?this.propagates.items().join(", "):"";console.log(u("{0}{1}: {2}. propagates: {3}",u.repeat(" ",t),this.node.type,r,n)),this.children.forEach(function(e){e.print(t+2)})},n.prototype.add=function(t,e,r,n){i(a.someof(e,["fun","param","var","caught","const","let"]));var s=this;if(a.someof(e,["fun","param","var"]))for(;"hoist"!==s.kind;)s=s.parent;var o={kind:e,node:r};n&&(i(a.someof(e,["var","const","let"])),o.from=n),s.decls.set(t,o)},n.prototype.getKind=function(t){i(a.string(t));var e=this.decls.get(t);return e?e.kind:null},n.prototype.getNode=function(t){i(a.string(t));var e=this.decls.get(t);return e?e.node:null},n.prototype.getFromPos=function(t){i(a.string(t));var e=this.decls.get(t);return e?e.from:null},n.prototype.hasOwn=function(t){return this.decls.has(t)},n.prototype.remove=function(t){return this.decls.remove(t)},n.prototype.doesPropagate=function(t){return this.propagates.has(t)},n.prototype.markPropagates=function(t){this.propagates.add(t)},n.prototype.closestHoistScope=function(){for(var t=this;"hoist"!==t.kind;)t=t.parent;return t},n.prototype.lookup=function(t){for(var e=this;e;e=e.parent){if(e.decls.has(t))return e;"hoist"===e.kind&&e.propagates.add(t)}return null},t.exports=n},function(t,e){var r=function(){"use strict";function t(e){return this instanceof t?(this.obj=r(),this.hasProto=!1,this.proto=void 0,void(e&&this.setMany(e))):new t(e)}var e=Object.prototype.hasOwnProperty,r=function(){function t(t){for(var r in t)if(e.call(t,r))return!0;return!1}function r(t){return e.call(t,"__count__")||e.call(t,"__parent__")}var n=!1;if("function"==typeof Object.create&&(t(Object.create(null))||(n=!0)),n===!1&&t({}))throw new Error("StringMap environment error 0, please file a bug at https://github.com/olov/stringmap/issues");var i=n?Object.create(null):{},s=!1;if(r(i)){if(i.__proto__=null,t(i)||r(i))throw new Error("StringMap environment error 1, please file a bug at https://github.com/olov/stringmap/issues");s=!0}return function(){var t=n?Object.create(null):{};return s&&(t.__proto__=null),t}}();return t.prototype.has=function(t){if("string"!=typeof t)throw new Error("StringMap expected string key");return"__proto__"===t?this.hasProto:e.call(this.obj,t)},t.prototype.get=function(t){if("string"!=typeof t)throw new Error("StringMap expected string key");return"__proto__"===t?this.proto:e.call(this.obj,t)?this.obj[t]:void 0},t.prototype.set=function(t,e){if("string"!=typeof t)throw new Error("StringMap expected string key");"__proto__"===t?(this.hasProto=!0,this.proto=e):this.obj[t]=e},t.prototype.remove=function(t){if("string"!=typeof t)throw new Error("StringMap expected string key");var e=this.has(t);return"__proto__"===t?(this.hasProto=!1,this.proto=void 0):delete this.obj[t],e},t.prototype["delete"]=t.prototype.remove,t.prototype.isEmpty=function(){for(var t in this.obj)if(e.call(this.obj,t))return!1;return!this.hasProto},t.prototype.size=function(){var t=0;for(var r in this.obj)e.call(this.obj,r)&&++t;return this.hasProto?t+1:t},t.prototype.keys=function(){var t=[];for(var r in this.obj)e.call(this.obj,r)&&t.push(r);return this.hasProto&&t.push("__proto__"),t},t.prototype.values=function(){var t=[];for(var r in this.obj)e.call(this.obj,r)&&t.push(this.obj[r]);return this.hasProto&&t.push(this.proto),t},t.prototype.items=function(){var t=[];for(var r in this.obj)e.call(this.obj,r)&&t.push([r,this.obj[r]]);return this.hasProto&&t.push(["__proto__",this.proto]),t},t.prototype.setMany=function(t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new Error("StringMap expected Object");for(var r in t)e.call(t,r)&&this.set(r,t[r]);return this},t.prototype.merge=function(t){for(var e=t.keys(),r=0;r=6&&(t.computed||t.method||t.shorthand))){var r=t.key,n=void 0;switch(r.type){case"Identifier":n=r.name;break;case"Literal":n=String(r.value);break;default:return}var i=t.kind;if(this.options.ecmaVersion>=6)return void("__proto__"===n&&"init"===i&&(e.proto&&this.raise(r.start,"Redefinition of __proto__ property"),e.proto=!0));n="$"+n;var s=e[n];if(s){var o="init"!==i;(!this.strict&&!o||!s[i])&&o^s.init||this.raise(r.start,"Redefinition of property")}else s=e[n]={init:!1,get:!1,set:!1};s[i]=!0}},s.parseExpression=function(t,e){var r=this.start,i=this.startLoc,s=this.parseMaybeAssign(t,e);if(this.type===n.types.comma){var o=this.startNodeAt(r,i);for(o.expressions=[s];this.eat(n.types.comma);)o.expressions.push(this.parseMaybeAssign(t,e));return this.finishNode(o,"SequenceExpression")}return s},s.parseMaybeAssign=function(t,e,r){if(this.type==n.types._yield&&this.inGenerator)return this.parseYield();var i=!1;e||(e={shorthandAssign:0,trailingComma:0},i=!0);var s=this.start,o=this.startLoc;this.type!=n.types.parenL&&this.type!=n.types.name||(this.potentialArrowAt=this.start);var a=this.parseMaybeConditional(t,e);if(r&&(a=r.call(this,a,s,o)),this.type.isAssign){i&&this.checkPatternErrors(e,!0);var u=this.startNodeAt(s,o);return u.operator=this.value,u.left=this.type===n.types.eq?this.toAssignable(a):a,e.shorthandAssign=0,this.checkLVal(a),this.next(),u.right=this.parseMaybeAssign(t),this.finishNode(u,"AssignmentExpression")}return i&&this.checkExpressionErrors(e,!0),a},s.parseMaybeConditional=function(t,e){var r=this.start,i=this.startLoc,s=this.parseExprOps(t,e);if(this.checkExpressionErrors(e))return s;if(this.eat(n.types.question)){var o=this.startNodeAt(r,i);return o.test=s,o.consequent=this.parseMaybeAssign(),this.expect(n.types.colon),o.alternate=this.parseMaybeAssign(t),this.finishNode(o,"ConditionalExpression")}return s},s.parseExprOps=function(t,e){var r=this.start,n=this.startLoc,i=this.parseMaybeUnary(e);return this.checkExpressionErrors(e)?i:this.parseExprOp(i,r,n,-1,t)},s.parseExprOp=function(t,e,r,i,s){var o=this.type.binop;if(null!=o&&(!s||this.type!==n.types._in)&&o>i){var a=this.startNodeAt(e,r);a.left=t,a.operator=this.value;var u=this.type;this.next();var p=this.start,c=this.startLoc;return a.right=this.parseExprOp(this.parseMaybeUnary(),p,c,o,s),this.finishNode(a,u===n.types.logicalOR||u===n.types.logicalAND?"LogicalExpression":"BinaryExpression"),this.parseExprOp(a,e,r,i,s)}return t},s.parseMaybeUnary=function(t){if(this.type.prefix){var e=this.startNode(),r=this.type===n.types.incDec;return e.operator=this.value,e.prefix=!0,this.next(),e.argument=this.parseMaybeUnary(),this.checkExpressionErrors(t,!0),r?this.checkLVal(e.argument):this.strict&&"delete"===e.operator&&"Identifier"===e.argument.type&&this.raise(e.start,"Deleting local variable in strict mode"),this.finishNode(e,r?"UpdateExpression":"UnaryExpression")}var i=this.start,s=this.startLoc,o=this.parseExprSubscripts(t);if(this.checkExpressionErrors(t))return o;for(;this.type.postfix&&!this.canInsertSemicolon();){var e=this.startNodeAt(i,s);e.operator=this.value,e.prefix=!1,e.argument=o,this.checkLVal(o),this.next(),o=this.finishNode(e,"UpdateExpression")}return o},s.parseExprSubscripts=function(t){var e=this.start,r=this.startLoc,n=this.parseExprAtom(t),i="ArrowFunctionExpression"===n.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd);return this.checkExpressionErrors(t)||i?n:this.parseSubscripts(n,e,r)},s.parseSubscripts=function(t,e,r,i){for(;;)if(this.eat(n.types.dot)){var s=this.startNodeAt(e,r);s.object=t,s.property=this.parseIdent(!0),s.computed=!1,t=this.finishNode(s,"MemberExpression")}else if(this.eat(n.types.bracketL)){var s=this.startNodeAt(e,r);s.object=t,s.property=this.parseExpression(),s.computed=!0,this.expect(n.types.bracketR),t=this.finishNode(s,"MemberExpression")}else if(!i&&this.eat(n.types.parenL)){var s=this.startNodeAt(e,r);s.callee=t,s.arguments=this.parseExprList(n.types.parenR,!1),t=this.finishNode(s,"CallExpression")}else{if(this.type!==n.types.backQuote)return t;var s=this.startNodeAt(e,r);s.tag=t,s.quasi=this.parseTemplate(),t=this.finishNode(s,"TaggedTemplateExpression")}},s.parseExprAtom=function(t){var e=void 0,r=this.potentialArrowAt==this.start;switch(this.type){case n.types._super:this.inFunction||this.raise(this.start,"'super' outside of function or class"); +case n.types._this:var i=this.type===n.types._this?"ThisExpression":"Super";return e=this.startNode(),this.next(),this.finishNode(e,i);case n.types._yield:this.inGenerator&&this.unexpected();case n.types.name:var s=this.start,o=this.startLoc,a=this.parseIdent(this.type!==n.types.name);return r&&!this.canInsertSemicolon()&&this.eat(n.types.arrow)?this.parseArrowExpression(this.startNodeAt(s,o),[a]):a;case n.types.regexp:var u=this.value;return e=this.parseLiteral(u.value),e.regex={pattern:u.pattern,flags:u.flags},e;case n.types.num:case n.types.string:return this.parseLiteral(this.value);case n.types._null:case n.types._true:case n.types._false:return e=this.startNode(),e.value=this.type===n.types._null?null:this.type===n.types._true,e.raw=this.type.keyword,this.next(),this.finishNode(e,"Literal");case n.types.parenL:return this.parseParenAndDistinguishExpression(r);case n.types.bracketL:return e=this.startNode(),this.next(),this.options.ecmaVersion>=7&&this.type===n.types._for?this.parseComprehension(e,!1):(e.elements=this.parseExprList(n.types.bracketR,!0,!0,t),this.finishNode(e,"ArrayExpression"));case n.types.braceL:return this.parseObj(!1,t);case n.types._function:return e=this.startNode(),this.next(),this.parseFunction(e,!1);case n.types._class:return this.parseClass(this.startNode(),!1);case n.types._new:return this.parseNew();case n.types.backQuote:return this.parseTemplate();default:this.unexpected()}},s.parseLiteral=function(t){var e=this.startNode();return e.value=t,e.raw=this.input.slice(this.start,this.end),this.next(),this.finishNode(e,"Literal")},s.parseParenExpression=function(){this.expect(n.types.parenL);var t=this.parseExpression();return this.expect(n.types.parenR),t},s.parseParenAndDistinguishExpression=function(t){var e=this.start,r=this.startLoc,i=void 0;if(this.options.ecmaVersion>=6){if(this.next(),this.options.ecmaVersion>=7&&this.type===n.types._for)return this.parseComprehension(this.startNodeAt(e,r),!0);for(var s=this.start,o=this.startLoc,a=[],u=!0,p={shorthandAssign:0,trailingComma:0},c=void 0,h=void 0;this.type!==n.types.parenR;){if(u?u=!1:this.expect(n.types.comma),this.type===n.types.ellipsis){c=this.start,a.push(this.parseParenItem(this.parseRest()));break}this.type!==n.types.parenL||h||(h=this.start),a.push(this.parseMaybeAssign(!1,p,this.parseParenItem))}var l=this.start,f=this.startLoc;if(this.expect(n.types.parenR),t&&!this.canInsertSemicolon()&&this.eat(n.types.arrow))return this.checkPatternErrors(p,!0),h&&this.unexpected(h),this.parseParenArrowList(e,r,a);a.length||this.unexpected(this.lastTokStart),c&&this.unexpected(c),this.checkExpressionErrors(p,!0),a.length>1?(i=this.startNodeAt(s,o),i.expressions=a,this.finishNodeAt(i,"SequenceExpression",l,f)):i=a[0]}else i=this.parseParenExpression();if(this.options.preserveParens){var d=this.startNodeAt(e,r);return d.expression=i,this.finishNode(d,"ParenthesizedExpression")}return i},s.parseParenItem=function(t){return t},s.parseParenArrowList=function(t,e,r){return this.parseArrowExpression(this.startNodeAt(t,e),r)};var o=[];s.parseNew=function(){var t=this.startNode(),e=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(n.types.dot))return t.meta=e,t.property=this.parseIdent(!0),"target"!==t.property.name&&this.raise(t.property.start,"The only valid meta property for new is new.target"),this.inFunction||this.raise(t.start,"new.target can only be used in functions"),this.finishNode(t,"MetaProperty");var r=this.start,i=this.startLoc;return t.callee=this.parseSubscripts(this.parseExprAtom(),r,i,!0),this.eat(n.types.parenL)?t.arguments=this.parseExprList(n.types.parenR,!1):t.arguments=o,this.finishNode(t,"NewExpression")},s.parseTemplateElement=function(){var t=this.startNode();return t.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),t.tail=this.type===n.types.backQuote,this.finishNode(t,"TemplateElement")},s.parseTemplate=function(){var t=this.startNode();this.next(),t.expressions=[];var e=this.parseTemplateElement();for(t.quasis=[e];!e.tail;)this.expect(n.types.dollarBraceL),t.expressions.push(this.parseExpression()),this.expect(n.types.braceR),t.quasis.push(e=this.parseTemplateElement());return this.next(),this.finishNode(t,"TemplateLiteral")},s.parseObj=function(t,e){var r=this.startNode(),i=!0,s={};for(r.properties=[],this.next();!this.eat(n.types.braceR);){if(i)i=!1;else if(this.expect(n.types.comma),this.afterTrailingComma(n.types.braceR))break;var o=this.startNode(),a=void 0,u=void 0,p=void 0;this.options.ecmaVersion>=6&&(o.method=!1,o.shorthand=!1,(t||e)&&(u=this.start,p=this.startLoc),t||(a=this.eat(n.types.star))),this.parsePropertyName(o),this.parsePropertyValue(o,t,a,u,p,e),this.checkPropClash(o,s),r.properties.push(this.finishNode(o,"Property"))}return this.finishNode(r,t?"ObjectPattern":"ObjectExpression")},s.parsePropertyValue=function(t,e,r,i,s,o){if(this.eat(n.types.colon))t.value=e?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),t.kind="init";else if(this.options.ecmaVersion>=6&&this.type===n.types.parenL)e&&this.unexpected(),t.kind="init",t.method=!0,t.value=this.parseMethod(r);else if(this.options.ecmaVersion>=5&&!t.computed&&"Identifier"===t.key.type&&("get"===t.key.name||"set"===t.key.name)&&this.type!=n.types.comma&&this.type!=n.types.braceR){(r||e)&&this.unexpected(),t.kind=t.key.name,this.parsePropertyName(t),t.value=this.parseMethod(!1);var a="get"===t.kind?0:1;if(t.value.params.length!==a){var u=t.value.start;"get"===t.kind?this.raise(u,"getter should have no params"):this.raise(u,"setter should have exactly one param")}}else this.options.ecmaVersion>=6&&!t.computed&&"Identifier"===t.key.type?(t.kind="init",e?((this.keywords.test(t.key.name)||(this.strict?this.reservedWordsStrictBind:this.reservedWords).test(t.key.name))&&this.raise(t.key.start,"Binding "+t.key.name),t.value=this.parseMaybeDefault(i,s,t.key)):this.type===n.types.eq&&o?(o.shorthandAssign||(o.shorthandAssign=this.start),t.value=this.parseMaybeDefault(i,s,t.key)):t.value=t.key,t.shorthand=!0):this.unexpected()},s.parsePropertyName=function(t){if(this.options.ecmaVersion>=6){if(this.eat(n.types.bracketL))return t.computed=!0,t.key=this.parseMaybeAssign(),this.expect(n.types.bracketR),t.key;t.computed=!1}return t.key=this.type===n.types.num||this.type===n.types.string?this.parseExprAtom():this.parseIdent(!0)},s.initFunction=function(t){t.id=null,this.options.ecmaVersion>=6&&(t.generator=!1,t.expression=!1)},s.parseMethod=function(t){var e=this.startNode();return this.initFunction(e),this.expect(n.types.parenL),e.params=this.parseBindingList(n.types.parenR,!1,!1),this.options.ecmaVersion>=6&&(e.generator=t),this.parseFunctionBody(e,!1),this.finishNode(e,"FunctionExpression")},s.parseArrowExpression=function(t,e){return this.initFunction(t),t.params=this.toAssignableList(e,!0),this.parseFunctionBody(t,!0),this.finishNode(t,"ArrowFunctionExpression")},s.parseFunctionBody=function(t,e){var r=e&&this.type!==n.types.braceL;if(r)t.body=this.parseMaybeAssign(),t.expression=!0;else{var i=this.inFunction,s=this.inGenerator,o=this.labels;this.inFunction=!0,this.inGenerator=t.generator,this.labels=[],t.body=this.parseBlock(!0),t.expression=!1,this.inFunction=i,this.inGenerator=s,this.labels=o}if(this.strict||!r&&t.body.body.length&&this.isUseStrict(t.body.body[0])){var a=this.strict;this.strict=!0,t.id&&this.checkLVal(t.id,!0),this.checkParams(t),this.strict=a}else e&&this.checkParams(t)},s.checkParams=function(t){for(var e={},r=0;r=6||-1==this.input.slice(this.start,this.end).indexOf("\\"))&&this.raise(this.start,"The keyword '"+this.value+"' is reserved"),e.name=this.value):t&&this.type.keyword?e.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(e,"Identifier")},s.parseYield=function(){var t=this.startNode();return this.next(),this.type==n.types.semi||this.canInsertSemicolon()||this.type!=n.types.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(n.types.star),t.argument=this.parseMaybeAssign()),this.finishNode(t,"YieldExpression")},s.parseComprehension=function(t,e){for(t.blocks=[];this.type===n.types._for;){var r=this.startNode();this.next(),this.expect(n.types.parenL),r.left=this.parseBindingAtom(),this.checkLVal(r.left,!0),this.expectContextual("of"),r.right=this.parseExpression(),this.expect(n.types.parenR),t.blocks.push(this.finishNode(r,"ComprehensionBlock"))}return t.filter=this.eat(n.types._if)?this.parseParenExpression():null,t.body=this.parseExpression(),this.expect(e?n.types.parenR:n.types.bracketR),t.generator=e,this.finishNode(t,"ComprehensionExpression")}},{"./state":10,"./tokentype":14}],2:[function(t,e,r){"use strict";function n(t,e){for(var r=65536,n=0;nt)return!1;if(r+=e[n+1],r>=t)return!0}}function i(t,e){return 65>t?36===t:91>t?!0:97>t?95===t:123>t?!0:65535>=t?t>=170&&h.test(String.fromCharCode(t)):e===!1?!1:n(t,f)}function s(t,e){return 48>t?36===t:58>t?!0:65>t?!1:91>t?!0:97>t?95===t:123>t?!0:65535>=t?t>=170&&l.test(String.fromCharCode(t)):e===!1?!1:n(t,f)||n(t,d)}r.__esModule=!0,r.isIdentifierStart=i,r.isIdentifierChar=s;var o={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"};r.reservedWords=o;var a="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",u={5:a,6:a+" let const class extends export import yield super"};r.keywords=u;var p="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠ-ࢲऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞭꞰꞱꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭟꭤꭥꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",c="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣤ-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఃా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഁ-ഃാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ංඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ູົຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏ᦰ-ᧀᧈᧉ᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭ᳲ-᳴᳸᳹᷀-᷵᷼-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-꣄꣐-꣙꣠-꣱꤀-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︭︳︴﹍-﹏0-9_",h=new RegExp("["+p+"]"),l=new RegExp("["+p+c+"]");p=c=null;var f=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,17,26,6,37,11,29,3,35,5,7,2,4,43,157,99,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,98,21,11,25,71,55,7,1,65,0,16,3,2,2,2,26,45,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,955,52,76,44,33,24,27,35,42,34,4,0,13,47,15,3,22,0,38,17,2,24,133,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,32,4,287,47,21,1,2,0,185,46,82,47,21,0,60,42,502,63,32,0,449,56,1288,920,104,110,2962,1070,13266,568,8,30,114,29,19,47,17,3,32,20,6,18,881,68,12,0,67,12,16481,1,3071,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,4149,196,1340,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42710,42,4148,12,221,16355,541],d=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,1306,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,52,0,13,2,49,13,16,9,83,11,168,11,6,9,8,2,57,0,2,6,3,1,3,2,10,0,11,1,3,6,4,4,316,19,13,9,214,6,3,8,112,16,16,9,82,12,9,9,535,9,20855,9,135,4,60,6,26,9,1016,45,17,3,19723,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,4305,6,792618,239]},{}],3:[function(t,e,r){"use strict";function n(t,e){return new o.Parser(e,t).parse()}function i(t,e,r){var n=new o.Parser(r,t,e);return n.nextToken(),n.parseExpression()}function s(t,e){return new o.Parser(e,t)}r.__esModule=!0,r.parse=n,r.parseExpressionAt=i,r.tokenizer=s;var o=t("./state");t("./parseutil"),t("./statement"),t("./lval"),t("./expression"),t("./location"),r.Parser=o.Parser,r.plugins=o.plugins;var a=t("./options");r.defaultOptions=a.defaultOptions;var u=t("./locutil");r.Position=u.Position,r.SourceLocation=u.SourceLocation,r.getLineInfo=u.getLineInfo;var p=t("./node");r.Node=p.Node;var c=t("./tokentype");r.TokenType=c.TokenType,r.tokTypes=c.types;var h=t("./tokencontext");r.TokContext=h.TokContext,r.tokContexts=h.types;var l=t("./identifier");r.isIdentifierChar=l.isIdentifierChar,r.isIdentifierStart=l.isIdentifierStart;var f=t("./tokenize");r.Token=f.Token;var d=t("./whitespace");r.isNewLine=d.isNewLine,r.lineBreak=d.lineBreak,r.lineBreakG=d.lineBreakG;var g="2.6.4";r.version=g},{"./expression":1,"./identifier":2,"./location":4,"./locutil":5,"./lval":6,"./node":7,"./options":8,"./parseutil":9,"./state":10,"./statement":11,"./tokencontext":12,"./tokenize":13,"./tokentype":14,"./whitespace":16}],4:[function(t,e,r){"use strict";var n=t("./state"),i=t("./locutil"),s=n.Parser.prototype;s.raise=function(t,e){var r=i.getLineInfo(this.input,t);e+=" ("+r.line+":"+r.column+")";var n=new SyntaxError(e);throw n.pos=t,n.loc=r,n.raisedAt=this.pos,n},s.curPosition=function(){return this.options.locations?new i.Position(this.curLine,this.pos-this.lineStart):void 0}},{"./locutil":5,"./state":10}],5:[function(t,e,r){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var r=1,n=0;;){s.lineBreakG.lastIndex=n;var i=s.lineBreakG.exec(t);if(!(i&&i.index=6&&t)switch(t.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":break;case"ObjectExpression":t.type="ObjectPattern";for(var r=0;r=6&&(t.sourceType=this.options.sourceType),this.finishNode(t,"Program")};var a={kind:"loop"},u={kind:"switch"};o.parseStatement=function(t,e){var r=this.type,i=this.startNode();switch(r){case n.types._break:case n.types._continue:return this.parseBreakContinueStatement(i,r.keyword);case n.types._debugger:return this.parseDebuggerStatement(i);case n.types._do:return this.parseDoStatement(i);case n.types._for:return this.parseForStatement(i);case n.types._function:return!t&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(i);case n.types._class:return t||this.unexpected(),this.parseClass(i,!0);case n.types._if:return this.parseIfStatement(i);case n.types._return:return this.parseReturnStatement(i);case n.types._switch:return this.parseSwitchStatement(i);case n.types._throw:return this.parseThrowStatement(i);case n.types._try:return this.parseTryStatement(i);case n.types._let:case n.types._const:t||this.unexpected();case n.types._var:return this.parseVarStatement(i,r);case n.types._while:return this.parseWhileStatement(i);case n.types._with:return this.parseWithStatement(i);case n.types.braceL:return this.parseBlock();case n.types.semi:return this.parseEmptyStatement(i);case n.types._export:case n.types._import:return this.options.allowImportExportEverywhere||(e||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),r===n.types._import?this.parseImport(i):this.parseExport(i);default:var s=this.value,o=this.parseExpression();return r===n.types.name&&"Identifier"===o.type&&this.eat(n.types.colon)?this.parseLabeledStatement(i,s,o):this.parseExpressionStatement(i,o)}},o.parseBreakContinueStatement=function(t,e){var r="break"==e;this.next(),this.eat(n.types.semi)||this.insertSemicolon()?t.label=null:this.type!==n.types.name?this.unexpected():(t.label=this.parseIdent(),this.semicolon());for(var i=0;i=6?this.eat(n.types.semi):this.semicolon(),this.finishNode(t,"DoWhileStatement")},o.parseForStatement=function(t){if(this.next(),this.labels.push(a),this.expect(n.types.parenL),this.type===n.types.semi)return this.parseFor(t,null);if(this.type===n.types._var||this.type===n.types._let||this.type===n.types._const){var e=this.startNode(),r=this.type;return this.next(),this.parseVar(e,!0,r),this.finishNode(e,"VariableDeclaration"),!(this.type===n.types._in||this.options.ecmaVersion>=6&&this.isContextual("of"))||1!==e.declarations.length||r!==n.types._var&&e.declarations[0].init?this.parseFor(t,e):this.parseForIn(t,e)}var i={shorthandAssign:0,trailingComma:0},s=this.parseExpression(!0,i);return this.type===n.types._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.checkPatternErrors(i,!0),this.toAssignable(s),this.checkLVal(s),this.parseForIn(t,s)):(this.checkExpressionErrors(i,!0),this.parseFor(t,s))},o.parseFunctionStatement=function(t){return this.next(),this.parseFunction(t,!0)},o.parseIfStatement=function(t){return this.next(),t.test=this.parseParenExpression(),t.consequent=this.parseStatement(!1),t.alternate=this.eat(n.types._else)?this.parseStatement(!1):null,this.finishNode(t,"IfStatement")},o.parseReturnStatement=function(t){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(n.types.semi)||this.insertSemicolon()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")},o.parseSwitchStatement=function(t){this.next(),t.discriminant=this.parseParenExpression(),t.cases=[],this.expect(n.types.braceL),this.labels.push(u);for(var e,r=!1;this.type!=n.types.braceR;)if(this.type===n.types._case||this.type===n.types._default){var i=this.type===n.types._case;e&&this.finishNode(e,"SwitchCase"),t.cases.push(e=this.startNode()),e.consequent=[],this.next(),i?e.test=this.parseExpression():(r&&this.raise(this.lastTokStart,"Multiple default clauses"),r=!0,e.test=null),this.expect(n.types.colon)}else e||this.unexpected(),e.consequent.push(this.parseStatement(!0));return e&&this.finishNode(e,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(t,"SwitchStatement")},o.parseThrowStatement=function(t){return this.next(),s.lineBreak.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")};var p=[];o.parseTryStatement=function(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.type===n.types._catch){var e=this.startNode();this.next(),this.expect(n.types.parenL),e.param=this.parseBindingAtom(),this.checkLVal(e.param,!0),this.expect(n.types.parenR),e.body=this.parseBlock(),t.handler=this.finishNode(e,"CatchClause")}return t.finalizer=this.eat(n.types._finally)?this.parseBlock():null,t.handler||t.finalizer||this.raise(t.start,"Missing catch or finally clause"),this.finishNode(t,"TryStatement")},o.parseVarStatement=function(t,e){return this.next(),this.parseVar(t,!1,e),this.semicolon(),this.finishNode(t,"VariableDeclaration")},o.parseWhileStatement=function(t){return this.next(),t.test=this.parseParenExpression(),this.labels.push(a),t.body=this.parseStatement(!1),this.labels.pop(),this.finishNode(t,"WhileStatement")},o.parseWithStatement=function(t){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),t.object=this.parseParenExpression(),t.body=this.parseStatement(!1),this.finishNode(t,"WithStatement")},o.parseEmptyStatement=function(t){return this.next(),this.finishNode(t,"EmptyStatement")},o.parseLabeledStatement=function(t,e,r){for(var i=0;i=0;i--){var o=this.labels[i];if(o.statementStart!=t.start)break;o.statementStart=this.start,o.kind=s}return this.labels.push({name:e,kind:s,statementStart:this.start}),t.body=this.parseStatement(!0),this.labels.pop(),t.label=r,this.finishNode(t,"LabeledStatement")},o.parseExpressionStatement=function(t,e){return t.expression=e, +this.semicolon(),this.finishNode(t,"ExpressionStatement")},o.parseBlock=function(t){var e=this.startNode(),r=!0,i=void 0;for(e.body=[],this.expect(n.types.braceL);!this.eat(n.types.braceR);){var s=this.parseStatement(!0);e.body.push(s),r&&t&&this.isUseStrict(s)&&(i=this.strict,this.setStrict(this.strict=!0)),r=!1}return i===!1&&this.setStrict(!1),this.finishNode(e,"BlockStatement")},o.parseFor=function(t,e){return t.init=e,this.expect(n.types.semi),t.test=this.type===n.types.semi?null:this.parseExpression(),this.expect(n.types.semi),t.update=this.type===n.types.parenR?null:this.parseExpression(),this.expect(n.types.parenR),t.body=this.parseStatement(!1),this.labels.pop(),this.finishNode(t,"ForStatement")},o.parseForIn=function(t,e){var r=this.type===n.types._in?"ForInStatement":"ForOfStatement";return this.next(),t.left=e,t.right=this.parseExpression(),this.expect(n.types.parenR),t.body=this.parseStatement(!1),this.labels.pop(),this.finishNode(t,r)},o.parseVar=function(t,e,r){for(t.declarations=[],t.kind=r.keyword;;){var i=this.startNode();if(this.parseVarId(i),this.eat(n.types.eq)?i.init=this.parseMaybeAssign(e):r!==n.types._const||this.type===n.types._in||this.options.ecmaVersion>=6&&this.isContextual("of")?"Identifier"==i.id.type||e&&(this.type===n.types._in||this.isContextual("of"))?i.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),t.declarations.push(this.finishNode(i,"VariableDeclarator")),!this.eat(n.types.comma))break}return t},o.parseVarId=function(t){t.id=this.parseBindingAtom(),this.checkLVal(t.id,!0)},o.parseFunction=function(t,e,r){return this.initFunction(t),this.options.ecmaVersion>=6&&(t.generator=this.eat(n.types.star)),(e||this.type===n.types.name)&&(t.id=this.parseIdent()),this.parseFunctionParams(t),this.parseFunctionBody(t,r),this.finishNode(t,e?"FunctionDeclaration":"FunctionExpression")},o.parseFunctionParams=function(t){this.expect(n.types.parenL),t.params=this.parseBindingList(n.types.parenR,!1,!1,!0)},o.parseClass=function(t,e){this.next(),this.parseClassId(t,e),this.parseClassSuper(t);var r=this.startNode(),i=!1;for(r.body=[],this.expect(n.types.braceL);!this.eat(n.types.braceR);)if(!this.eat(n.types.semi)){var s=this.startNode(),o=this.eat(n.types.star),a=this.type===n.types.name&&"static"===this.value;this.parsePropertyName(s),s["static"]=a&&this.type!==n.types.parenL,s["static"]&&(o&&this.unexpected(),o=this.eat(n.types.star),this.parsePropertyName(s)),s.kind="method";var u=!1;if(!s.computed){var p=s.key;o||"Identifier"!==p.type||this.type===n.types.parenL||"get"!==p.name&&"set"!==p.name||(u=!0,s.kind=p.name,p=this.parsePropertyName(s)),!s["static"]&&("Identifier"===p.type&&"constructor"===p.name||"Literal"===p.type&&"constructor"===p.value)&&(i&&this.raise(p.start,"Duplicate constructor in the same class"),u&&this.raise(p.start,"Constructor can't have get/set modifier"),o&&this.raise(p.start,"Constructor can't be a generator"),s.kind="constructor",i=!0)}if(this.parseClassMethod(r,s,o),u){var c="get"===s.kind?0:1;if(s.value.params.length!==c){var h=s.value.start;"get"===s.kind?this.raise(h,"getter should have no params"):this.raise(h,"setter should have exactly one param")}}}return t.body=this.finishNode(r,"ClassBody"),this.finishNode(t,e?"ClassDeclaration":"ClassExpression")},o.parseClassMethod=function(t,e,r){e.value=this.parseMethod(r),t.body.push(this.finishNode(e,"MethodDefinition"))},o.parseClassId=function(t,e){t.id=this.type===n.types.name?this.parseIdent():e?this.unexpected():null},o.parseClassSuper=function(t){t.superClass=this.eat(n.types._extends)?this.parseExprSubscripts():null},o.parseExport=function(t){if(this.next(),this.eat(n.types.star))return this.expectContextual("from"),t.source=this.type===n.types.string?this.parseExprAtom():this.unexpected(),this.semicolon(),this.finishNode(t,"ExportAllDeclaration");if(this.eat(n.types._default)){var e=this.parseMaybeAssign(),r=!0;return"FunctionExpression"!=e.type&&"ClassExpression"!=e.type||(r=!1,e.id&&(e.type="FunctionExpression"==e.type?"FunctionDeclaration":"ClassDeclaration")),t.declaration=e,r&&this.semicolon(),this.finishNode(t,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())t.declaration=this.parseStatement(!0),t.specifiers=[],t.source=null;else{if(t.declaration=null,t.specifiers=this.parseExportSpecifiers(),this.eatContextual("from"))t.source=this.type===n.types.string?this.parseExprAtom():this.unexpected();else{for(var i=0;i=t?String.fromCharCode(t):(t-=65536,String.fromCharCode((t>>10)+55296,(1023&t)+56320))}r.__esModule=!0;var o=t("./identifier"),a=t("./tokentype"),u=t("./state"),p=t("./locutil"),c=t("./whitespace"),h=function g(t){n(this,g),this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,t.options.locations&&(this.loc=new p.SourceLocation(t,t.startLoc,t.endLoc)),t.options.ranges&&(this.range=[t.start,t.end])};r.Token=h;var l=u.Parser.prototype,f="object"==typeof Packages&&"[object JavaPackage]"==Object.prototype.toString.call(Packages);l.next=function(){this.options.onToken&&this.options.onToken(new h(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},l.getToken=function(){return this.next(),new h(this)},"undefined"!=typeof Symbol&&(l[Symbol.iterator]=function(){var t=this;return{next:function(){var e=t.getToken();return{done:e.type===a.types.eof,value:e}}}}),l.setStrict=function(t){if(this.strict=t,this.type===a.types.num||this.type===a.types.string){if(this.pos=this.start,this.options.locations)for(;this.pos=this.input.length?this.finishToken(a.types.eof):t.override?t.override(this):void this.readToken(this.fullCharCodeAtPos())},l.readToken=function(t){return o.isIdentifierStart(t,this.options.ecmaVersion>=6)||92===t?this.readWord():this.getTokenFromCode(t)},l.fullCharCodeAtPos=function(){var t=this.input.charCodeAt(this.pos);if(55295>=t||t>=57344)return t;var e=this.input.charCodeAt(this.pos+1);return(t<<10)+e-56613888},l.skipBlockComment=function(){var t=this.options.onComment&&this.curPosition(),e=this.pos,r=this.input.indexOf("*/",this.pos+=2);if(-1===r&&this.raise(this.pos-2,"Unterminated comment"),this.pos=r+2,this.options.locations){c.lineBreakG.lastIndex=e;for(var n=void 0;(n=c.lineBreakG.exec(this.input))&&n.index8&&14>t||t>=5760&&c.nonASCIIwhitespace.test(String.fromCharCode(t))))break t;++this.pos}}},l.finishToken=function(t,e){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var r=this.type;this.type=t,this.value=e,this.updateContext(r)},l.readToken_dot=function(){var t=this.input.charCodeAt(this.pos+1);if(t>=48&&57>=t)return this.readNumber(!0);var e=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===t&&46===e?(this.pos+=3,this.finishToken(a.types.ellipsis)):(++this.pos,this.finishToken(a.types.dot))},l.readToken_slash=function(){var t=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===t?this.finishOp(a.types.assign,2):this.finishOp(a.types.slash,1)},l.readToken_mult_modulo=function(t){var e=this.input.charCodeAt(this.pos+1);return 61===e?this.finishOp(a.types.assign,2):this.finishOp(42===t?a.types.star:a.types.modulo,1)},l.readToken_pipe_amp=function(t){var e=this.input.charCodeAt(this.pos+1);return e===t?this.finishOp(124===t?a.types.logicalOR:a.types.logicalAND,2):61===e?this.finishOp(a.types.assign,2):this.finishOp(124===t?a.types.bitwiseOR:a.types.bitwiseAND,1)},l.readToken_caret=function(){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(a.types.assign,2):this.finishOp(a.types.bitwiseXOR,1)},l.readToken_plus_min=function(t){var e=this.input.charCodeAt(this.pos+1);return e===t?45==e&&62==this.input.charCodeAt(this.pos+2)&&c.lineBreak.test(this.input.slice(this.lastTokEnd,this.pos))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(a.types.incDec,2):61===e?this.finishOp(a.types.assign,2):this.finishOp(a.types.plusMin,1)},l.readToken_lt_gt=function(t){var e=this.input.charCodeAt(this.pos+1),r=1;return e===t?(r=62===t&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+r)?this.finishOp(a.types.assign,r+1):this.finishOp(a.types.bitShift,r)):33==e&&60==t&&45==this.input.charCodeAt(this.pos+2)&&45==this.input.charCodeAt(this.pos+3)?(this.inModule&&this.unexpected(),this.skipLineComment(4),this.skipSpace(),this.nextToken()):(61===e&&(r=61===this.input.charCodeAt(this.pos+2)?3:2),this.finishOp(a.types.relational,r))},l.readToken_eq_excl=function(t){var e=this.input.charCodeAt(this.pos+1);return 61===e?this.finishOp(a.types.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===t&&62===e&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(a.types.arrow)):this.finishOp(61===t?a.types.eq:a.types.prefix,1)},l.getTokenFromCode=function(t){switch(t){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(a.types.parenL);case 41:return++this.pos,this.finishToken(a.types.parenR);case 59:return++this.pos,this.finishToken(a.types.semi);case 44:return++this.pos,this.finishToken(a.types.comma);case 91:return++this.pos,this.finishToken(a.types.bracketL);case 93:return++this.pos,this.finishToken(a.types.bracketR);case 123:return++this.pos,this.finishToken(a.types.braceL);case 125:return++this.pos,this.finishToken(a.types.braceR);case 58:return++this.pos,this.finishToken(a.types.colon);case 63:return++this.pos,this.finishToken(a.types.question);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(a.types.backQuote);case 48:var e=this.input.charCodeAt(this.pos+1);if(120===e||88===e)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===e||79===e)return this.readRadixNumber(8);if(98===e||66===e)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(t);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo(t);case 124:case 38:return this.readToken_pipe_amp(t);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(t);case 60:case 62:return this.readToken_lt_gt(t);case 61:case 33:return this.readToken_eq_excl(t);case 126:return this.finishOp(a.types.prefix,1)}this.raise(this.pos,"Unexpected character '"+s(t)+"'")},l.finishOp=function(t,e){var r=this.input.slice(this.pos,this.pos+e);return this.pos+=e,this.finishToken(t,r)};var d=!!i("￿","u");l.readRegexp=function(){for(var t=this,e=void 0,r=void 0,n=this.pos;;){this.pos>=this.input.length&&this.raise(n,"Unterminated regular expression");var s=this.input.charAt(this.pos);if(c.lineBreak.test(s)&&this.raise(n,"Unterminated regular expression"),e)e=!1;else{if("["===s)r=!0;else if("]"===s&&r)r=!1;else if("/"===s&&!r)break;e="\\"===s}++this.pos}var o=this.input.slice(n,this.pos);++this.pos;var u=this.readWord1(),p=o;if(u){var h=/^[gmsiy]*$/;this.options.ecmaVersion>=6&&(h=/^[gmsiyu]*$/),h.test(u)||this.raise(n,"Invalid regular expression flag"),u.indexOf("u")>=0&&!d&&(p=p.replace(/\\u\{([0-9a-fA-F]+)\}/g,function(e,r,i){return r=Number("0x"+r),r>1114111&&t.raise(n+i+3,"Code point out of bounds"),"x"}),p=p.replace(/\\u([a-fA-F0-9]{4})|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"x"))}var l=null;return f||(i(p,void 0,n,this),l=i(o,u)),this.finishToken(a.types.regexp,{pattern:o,flags:u,value:l})},l.readInt=function(t,e){for(var r=this.pos,n=0,i=0,s=null==e?1/0:e;s>i;++i){var o=this.input.charCodeAt(this.pos),a=void 0;if(a=o>=97?o-97+10:o>=65?o-65+10:o>=48&&57>=o?o-48:1/0,a>=t)break;++this.pos,n=n*t+a}return this.pos===r||null!=e&&this.pos-r!==e?null:n},l.readRadixNumber=function(t){this.pos+=2;var e=this.readInt(t);return null==e&&this.raise(this.start+2,"Expected number in radix "+t),o.isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(a.types.num,e)},l.readNumber=function(t){var e=this.pos,r=!1,n=48===this.input.charCodeAt(this.pos);t||null!==this.readInt(10)||this.raise(e,"Invalid number");var i=this.input.charCodeAt(this.pos);46===i&&(++this.pos,this.readInt(10),r=!0,i=this.input.charCodeAt(this.pos)),69!==i&&101!==i||(i=this.input.charCodeAt(++this.pos),43!==i&&45!==i||++this.pos,null===this.readInt(10)&&this.raise(e,"Invalid number"),r=!0),o.isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var s=this.input.slice(e,this.pos),u=void 0;return r?u=parseFloat(s):n&&1!==s.length?/[89]/.test(s)||this.strict?this.raise(e,"Invalid number"):u=parseInt(s,8):u=parseInt(s,10),this.finishToken(a.types.num,u)},l.readCodePoint=function(){var t=this.input.charCodeAt(this.pos),e=void 0;if(123===t){this.options.ecmaVersion<6&&this.unexpected();var r=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.raise(r,"Code point out of bounds")}else e=this.readHexChar(4);return e},l.readString=function(t){for(var e="",r=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var n=this.input.charCodeAt(this.pos);if(n===t)break;92===n?(e+=this.input.slice(r,this.pos),e+=this.readEscapedChar(!1),r=this.pos):(c.isNewLine(n)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return e+=this.input.slice(r,this.pos++),this.finishToken(a.types.string,e)},l.readTmplToken=function(){for(var t="",e=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var r=this.input.charCodeAt(this.pos);if(96===r||36===r&&123===this.input.charCodeAt(this.pos+1))return this.pos===this.start&&this.type===a.types.template?36===r?(this.pos+=2,this.finishToken(a.types.dollarBraceL)):(++this.pos,this.finishToken(a.types.backQuote)):(t+=this.input.slice(e,this.pos),this.finishToken(a.types.template,t));if(92===r)t+=this.input.slice(e,this.pos),t+=this.readEscapedChar(!0),e=this.pos;else if(c.isNewLine(r)){switch(t+=this.input.slice(e,this.pos),++this.pos,r){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:t+="\n";break;default:t+=String.fromCharCode(r)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),e=this.pos}else++this.pos}},l.readEscapedChar=function(t){var e=this.input.charCodeAt(++this.pos);switch(++this.pos,e){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return s(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\x0B";case 102:return"\f";case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";default:if(e>=48&&55>=e){var r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],n=parseInt(r,8);return n>255&&(r=r.slice(0,-1),n=parseInt(r,8)),n>0&&(this.strict||t)&&this.raise(this.pos-2,"Octal literal in strict mode"),this.pos+=r.length-1,String.fromCharCode(n)}return String.fromCharCode(e)}},l.readHexChar=function(t){var e=this.pos,r=this.readInt(16,t);return null===r&&this.raise(e,"Bad character escape sequence"),r},l.readWord1=function(){this.containsEsc=!1;for(var t="",e=!0,r=this.pos,n=this.options.ecmaVersion>=6;this.pos=i?1:2;else{if(92!==i)break;this.containsEsc=!0,t+=this.input.slice(r,this.pos);var a=this.pos;117!=this.input.charCodeAt(++this.pos)&&this.raise(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var u=this.readCodePoint();(e?o.isIdentifierStart:o.isIdentifierChar)(u,n)||this.raise(a,"Invalid Unicode escape"),t+=s(u),r=this.pos}e=!1}return t+this.input.slice(r,this.pos)},l.readWord=function(){var t=this.readWord1(),e=a.types.name;return(this.options.ecmaVersion>=6||!this.containsEsc)&&this.keywords.test(t)&&(e=a.keywords[t]),this.finishToken(e,t)}},{"./identifier":2,"./locutil":5,"./state":10,"./tokentype":14,"./whitespace":16}],14:[function(t,e,r){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){return new o(t,{beforeExpr:!0,binop:e})}function s(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];e.keyword=t,c[t]=p["_"+t]=new o(t,e)}r.__esModule=!0;var o=function h(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];n(this,h),this.label=t,this.keyword=e.keyword,this.beforeExpr=!!e.beforeExpr,this.startsExpr=!!e.startsExpr,this.isLoop=!!e.isLoop,this.isAssign=!!e.isAssign,this.prefix=!!e.prefix,this.postfix=!!e.postfix,this.binop=e.binop||null,this.updateContext=null};r.TokenType=o;var a={beforeExpr:!0},u={startsExpr:!0},p={num:new o("num",u),regexp:new o("regexp",u),string:new o("string",u),name:new o("name",u),eof:new o("eof"),bracketL:new o("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new o("]"),braceL:new o("{",{beforeExpr:!0,startsExpr:!0}),braceR:new o("}"),parenL:new o("(",{beforeExpr:!0,startsExpr:!0}),parenR:new o(")"),comma:new o(",",a),semi:new o(";",a),colon:new o(":",a),dot:new o("."),question:new o("?",a),arrow:new o("=>",a),template:new o("template"),ellipsis:new o("...",a),backQuote:new o("`",u),dollarBraceL:new o("${",{beforeExpr:!0,startsExpr:!0}),eq:new o("=",{beforeExpr:!0,isAssign:!0}),assign:new o("_=",{beforeExpr:!0,isAssign:!0}),incDec:new o("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new o("prefix",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:i("||",1),logicalAND:i("&&",2),bitwiseOR:i("|",3),bitwiseXOR:i("^",4),bitwiseAND:i("&",5),equality:i("==/!=",6),relational:i("",7),bitShift:i("<>",8),plusMin:new o("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:i("%",10),star:i("*",10),slash:i("/",10)};r.types=p;var c={};r.keywords=c,s("break"),s("case",a),s("catch"),s("continue"),s("debugger"),s("default",a),s("do",{isLoop:!0,beforeExpr:!0}),s("else",a),s("finally"),s("for",{isLoop:!0}),s("function",u),s("if"),s("return",a),s("switch"),s("throw",a),s("try"),s("var"),s("let"),s("const"),s("while",{isLoop:!0}),s("with"),s("new",{beforeExpr:!0,startsExpr:!0}),s("this",u),s("super",u),s("class"),s("extends",a),s("export"),s("import"),s("yield",{beforeExpr:!0,startsExpr:!0}),s("null",u),s("true",u),s("false",u),s("in",{beforeExpr:!0,binop:7}),s("instanceof",{beforeExpr:!0,binop:7}),s("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),s("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),s("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},{}],15:[function(t,e,r){"use strict";function n(t){return"[object Array]"===Object.prototype.toString.call(t)}function i(t,e){return Object.prototype.hasOwnProperty.call(t,e)}r.__esModule=!0,r.isArray=n,r.has=i},{}],16:[function(t,e,r){"use strict";function n(t){return 10===t||13===t||8232===t||8233==t}r.__esModule=!0,r.isNewLine=n;var i=/\r\n?|\n|\u2028|\u2029/;r.lineBreak=i;var s=new RegExp(i.source,"g");r.lineBreakG=s;var o=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;r.nonASCIIwhitespace=o},{}]},{},[3])(3)})}]); \ No newline at end of file diff --git a/grails-plugin/AngularAnnotateAssetPipelineGrailsPlugin.groovy b/grails-plugin/AngularAnnotateAssetPipelineGrailsPlugin.groovy index a58a596..2c1ffd3 100644 --- a/grails-plugin/AngularAnnotateAssetPipelineGrailsPlugin.groovy +++ b/grails-plugin/AngularAnnotateAssetPipelineGrailsPlugin.groovy @@ -1,5 +1,5 @@ class AngularAnnotateAssetPipelineGrailsPlugin { - def version = "2.4.0" + def version = "2.4.1" def grailsVersion = "2.0 > *" def title = "AngularJS Annotate Asset-Pipeline Plugin" diff --git a/grails-plugin/grails-app/conf/BuildConfig.groovy b/grails-plugin/grails-app/conf/BuildConfig.groovy index 5a90045..6c9ddf0 100644 --- a/grails-plugin/grails-app/conf/BuildConfig.groovy +++ b/grails-plugin/grails-app/conf/BuildConfig.groovy @@ -14,7 +14,7 @@ grails.project.dependency.resolution = { mavenCentral() } dependencies { - compile "com.craigburke.angular:angular-annotate-asset-pipeline:2.4.0" + compile "com.craigburke.angular:angular-annotate-asset-pipeline:2.4.1" } plugins {