Files
nexe/source-map-support.js
T
2017-09-04 14:46:06 -05:00

2 lines
30 KiB
JavaScript

!function(){global.require=require;var e=global.$fsx={};e.r||(e.f={},e.m={},e.s=function(n){if(void 0===e.r(n))return require(n)},e.r=function(n){var r=e.m[n];if(r)return r.m.exports;var t=e.f[n];if(t)return r=e.m[n]={},r.exports={},r.m={exports:r.exports},t(r.m,r.exports),r.m.exports})}(),$fsx.f[0]=function(){$fsx.r(1).install()},$fsx.f[1]=function(e,n){function r(){return"browser"===A}function t(){return"object"==typeof process&&null!==process&&"function"==typeof process.on}function o(e){return function(n){for(var r=0;r<e.length;r++){var t=e[r](n);if(t)return t}return null}}function i(e,n){if(!e)return n;var r=v.dirname(e),t=/^\w+:\/\/[^\/]*/.exec(r),o=t?t[0]:"";return o+v.resolve(r.slice(o.length),n)}function s(e){var n;if(r())try{var t=new XMLHttpRequest;t.open("GET",e,!1),t.send(null),n=4===t.readyState?t.responseText:null;var o=t.getResponseHeader("SourceMap")||t.getResponseHeader("X-SourceMap");if(o)return o}catch(e){}n=x(e);for(var i,s,a=/(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^\*]+?)[ \t]*(?:\*\/)[ \t]*$)/gm;s=a.exec(n);)i=s;return i?i[1]:null}function a(e){var n=w[e.source];if(!n){var r=R(e.source);r?(n=w[e.source]={url:r.url,map:new _(r.map)}).map.sourcesContent&&n.map.sources.forEach(function(e,r){var t=n.map.sourcesContent[r];if(t){var o=i(n.url,e);L[o]=t}}):n=w[e.source]={url:null,map:null}}if(n&&n.map){var t=n.map.originalPositionFor(e);if(null!==t.source)return t.source=i(n.url,t.source),t}return e}function u(e){var n=/^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(e);if(n){var r=a({source:n[2],line:+n[3],column:n[4]-1});return"eval at "+n[1]+" ("+r.source+":"+r.line+":"+(r.column+1)+")"}return(n=/^eval at ([^(]+) \((.+)\)$/.exec(e))?"eval at "+n[1]+" ("+u(n[2])+")":e}function l(){var e,n="";if(this.isNative())n="native";else{!(e=this.getScriptNameOrSourceURL())&&this.isEval()&&(n=this.getEvalOrigin(),n+=", "),n+=e||"<anonymous>";var r=this.getLineNumber();if(null!=r){n+=":"+r;var t=this.getColumnNumber();t&&(n+=":"+t)}}var o="",i=this.getFunctionName(),s=!0,a=this.isConstructor();if(!(this.isToplevel()||a)){var u=this.getTypeName();"[object Object]"===u&&(u="null");var l=this.getMethodName();i?(u&&0!=i.indexOf(u)&&(o+=u+"."),o+=i,l&&i.indexOf("."+l)!=i.length-l.length-1&&(o+=" [as "+l+"]")):o+=u+"."+(l||"<anonymous>")}else a?o+="new "+(i||"<anonymous>"):i?o+=i:(o+=n,s=!1);return s&&(o+=" ("+n+")"),o}function c(e){var n={};return Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(function(r){n[r]=/^(?:is|get)/.test(r)?function(){return e[r].call(e)}:e[r]}),n.toString=l,n}function g(e){if(e.isNative())return e;var n=e.getFileName()||e.getScriptNameOrSourceURL();if(n){var t=e.getLineNumber(),o=e.getColumnNumber()-1;1===t&&o>62&&!r()&&!e.isEval()&&(o-=62);var i=a({source:n,line:t,column:o});return e=c(e),e.getFileName=function(){return i.source},e.getLineNumber=function(){return i.line},e.getColumnNumber=function(){return i.column+1},e.getScriptNameOrSourceURL=function(){return i.source},e}var s=e.isEval()&&e.getEvalOrigin();return s?(s=u(s),e=c(e),e.getEvalOrigin=function(){return s},e):e}function p(e,n){return S&&(L={},w={}),e+n.map(function(e){return"\n at "+g(e)}).join("")}function f(e){var n=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(e.stack);if(n){var r=n[1],t=+n[2],o=+n[3],i=L[r];if(!i&&d&&d.existsSync(r)&&(i=d.readFileSync(r,"utf8")),i){var s=i.split(/(?:\r\n|\r|\n)/)[t-1];if(s)return r+":"+t+"\n"+s+"\n"+new Array(o).join(" ")+"^"}}return null}function h(e){var n=f(e);n&&(console.error(),console.error(n)),console.error(e.stack),process.exit(1)}function m(){var e=process.emit;process.emit=function(n){if("uncaughtException"===n){var r=arguments[1]&&arguments[1].stack,t=this.listeners(n).length>0;if(r&&!t)return h(arguments[1])}return e.apply(this,arguments)}}var d,_=$fsx.r(2).SourceMapConsumer,v=$fsx.s("path");try{(d=$fsx.s("fs")).existsSync&&d.readFileSync||(d=null)}catch(e){}var y=!1,C=!1,S=!1,A="auto",L={},w={},M=/^data:application\/json[^,]+base64,/,O=[],E=[],x=o(O);O.push(function(e){if((e=e.trim())in L)return L[e];r=null;if(d)d.existsSync(e)&&(r=d.readFileSync(e,"utf8"));else{var n=new XMLHttpRequest;n.open("GET",e,!1),n.send(null);var r=null;4===n.readyState&&200===n.status&&(r=n.responseText)}return L[e]=r});var R=o(E);E.push(function(e){var n=s(e);if(!n)return null;var r;if(M.test(n)){var t=n.slice(n.indexOf(",")+1);r=new Buffer(t,"base64").toString(),n=e}else n=i(e,n),r=x(n);return r?{url:n,map:r}:null}),n.wrapCallSite=g,n.getErrorSource=f,n.mapSourcePosition=a,n.retrieveSourceMap=R,n.install=function(e){if((e=e||{}).environment&&(A=e.environment,-1===["node","browser","auto"].indexOf(A)))throw new Error("environment "+A+" was unknown. Available options are {auto, browser, node}");if(e.retrieveFile&&(e.overrideRetrieveFile&&(O.length=0),O.unshift(e.retrieveFile)),e.retrieveSourceMap&&(e.overrideRetrieveSourceMap&&(E.length=0),E.unshift(e.retrieveSourceMap)),e.hookRequire&&!r()){var n;try{n=$fsx.s("module")}catch(e){}var o=n.prototype._compile;o.__sourceMapSupport||(n.prototype._compile=function(e,n){return L[n]=e,w[n]=void 0,o.call(this,e,n)},n.prototype._compile.__sourceMapSupport=!0)}S||(S="emptyCacheBetweenOperations"in e&&e.emptyCacheBetweenOperations),y||(y=!0,Error.prepareStackTrace=p),C||(!("handleUncaughtExceptions"in e)||e.handleUncaughtExceptions)&&t()&&(C=!0,m())}},$fsx.f[2]=function(e,n){n.SourceMapGenerator=$fsx.r(3).SourceMapGenerator,n.SourceMapConsumer=$fsx.r(9).SourceMapConsumer,n.SourceNode=$fsx.r(12).SourceNode},$fsx.f[3]=function(e,n){function r(e){e||(e={}),this._file=o.getArg(e,"file",null),this._sourceRoot=o.getArg(e,"sourceRoot",null),this._skipValidation=o.getArg(e,"skipValidation",!1),this._sources=new i,this._names=new i,this._mappings=new s,this._sourcesContents=null}var t=$fsx.r(4),o=$fsx.r(6),i=$fsx.r(7).ArraySet,s=$fsx.r(8).MappingList;r.prototype._version=3,r.fromSourceMap=function(e){var n=e.sourceRoot,t=new r({file:e.file,sourceRoot:n});return e.eachMapping(function(e){var r={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(r.source=e.source,null!=n&&(r.source=o.relative(n,r.source)),r.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(r.name=e.name)),t.addMapping(r)}),e.sources.forEach(function(n){var r=e.sourceContentFor(n);null!=r&&t.setSourceContent(n,r)}),t},r.prototype.addMapping=function(e){var n=o.getArg(e,"generated"),r=o.getArg(e,"original",null),t=o.getArg(e,"source",null),i=o.getArg(e,"name",null);this._skipValidation||this._validateMapping(n,r,t,i),null!=t&&(t=String(t),this._sources.has(t)||this._sources.add(t)),null!=i&&(i=String(i),this._names.has(i)||this._names.add(i)),this._mappings.add({generatedLine:n.line,generatedColumn:n.column,originalLine:null!=r&&r.line,originalColumn:null!=r&&r.column,source:t,name:i})},r.prototype.setSourceContent=function(e,n){var r=e;null!=this._sourceRoot&&(r=o.relative(this._sourceRoot,r)),null!=n?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[o.toSetString(r)]=n):this._sourcesContents&&(delete this._sourcesContents[o.toSetString(r)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},r.prototype.applySourceMap=function(e,n,r){var t=n;if(null==n){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');t=e.file}var s=this._sourceRoot;null!=s&&(t=o.relative(s,t));var a=new i,u=new i;this._mappings.unsortedForEach(function(n){if(n.source===t&&null!=n.originalLine){var i=e.originalPositionFor({line:n.originalLine,column:n.originalColumn});null!=i.source&&(n.source=i.source,null!=r&&(n.source=o.join(r,n.source)),null!=s&&(n.source=o.relative(s,n.source)),n.originalLine=i.line,n.originalColumn=i.column,null!=i.name&&(n.name=i.name))}var l=n.source;null==l||a.has(l)||a.add(l);var c=n.name;null==c||u.has(c)||u.add(c)},this),this._sources=a,this._names=u,e.sources.forEach(function(n){var t=e.sourceContentFor(n);null!=t&&(null!=r&&(n=o.join(r,n)),null!=s&&(n=o.relative(s,n)),this.setSourceContent(n,t))},this)},r.prototype._validateMapping=function(e,n,r,t){if(n&&"number"!=typeof n.line&&"number"!=typeof n.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if((!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||n||r||t)&&!(e&&"line"in e&&"column"in e&&n&&"line"in n&&"column"in n&&e.line>0&&e.column>=0&&n.line>0&&n.column>=0&&r))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:r,original:n,name:t}))},r.prototype._serializeMappings=function(){for(var e,n,r,i,s=0,a=1,u=0,l=0,c=0,g=0,p="",f=this._mappings.toArray(),h=0,m=f.length;h<m;h++){if(n=f[h],e="",n.generatedLine!==a)for(s=0;n.generatedLine!==a;)e+=";",a++;else if(h>0){if(!o.compareByGeneratedPositionsInflated(n,f[h-1]))continue;e+=","}e+=t.encode(n.generatedColumn-s),s=n.generatedColumn,null!=n.source&&(i=this._sources.indexOf(n.source),e+=t.encode(i-g),g=i,e+=t.encode(n.originalLine-1-l),l=n.originalLine-1,e+=t.encode(n.originalColumn-u),u=n.originalColumn,null!=n.name&&(r=this._names.indexOf(n.name),e+=t.encode(r-c),c=r)),p+=e}return p},r.prototype._generateSourcesContent=function(e,n){return e.map(function(e){if(!this._sourcesContents)return null;null!=n&&(e=o.relative(n,e));var r=o.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null},this)},r.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},r.prototype.toString=function(){return JSON.stringify(this.toJSON())},n.SourceMapGenerator=r},$fsx.f[4]=function(e,n){function r(e){return e<0?1+(-e<<1):0+(e<<1)}function t(e){var n=e>>1;return 1==(1&e)?-n:n}var o=$fsx.r(5);n.encode=function(e){var n,t="",i=r(e);do{n=31&i,(i>>>=5)>0&&(n|=32),t+=o.encode(n)}while(i>0);return t},n.decode=function(e,n,r){var i,s,a=e.length,u=0,l=0;do{if(n>=a)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(s=o.decode(e.charCodeAt(n++))))throw new Error("Invalid base64 digit: "+e.charAt(n-1));i=!!(32&s),u+=(s&=31)<<l,l+=5}while(i);r.value=t(u),r.rest=n}},$fsx.f[5]=function(e,n){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");n.encode=function(e){if(0<=e&&e<r.length)return r[e];throw new TypeError("Must be between 0 and 63: "+e)},n.decode=function(e){return 65<=e&&e<=90?e-65:97<=e&&e<=122?e-97+26:48<=e&&e<=57?e-48+52:43==e?62:47==e?63:-1}},$fsx.f[6]=function(e,n){function r(e){var n=e.match(u);return n?{scheme:n[1],auth:n[2],host:n[3],port:n[4],path:n[5]}:null}function t(e){var n="";return e.scheme&&(n+=e.scheme+":"),n+="//",e.auth&&(n+=e.auth+"@"),e.host&&(n+=e.host),e.port&&(n+=":"+e.port),e.path&&(n+=e.path),n}function o(e){var o=e,i=r(e);if(i){if(!i.path)return e;o=i.path}for(var s,a=n.isAbsolute(o),u=o.split(/\/+/),l=0,c=u.length-1;c>=0;c--)"."===(s=u[c])?u.splice(c,1):".."===s?l++:l>0&&(""===s?(u.splice(c+1,l),l=0):(u.splice(c,2),l--));return""===(o=u.join("/"))&&(o=a?"/":"."),i?(i.path=o,t(i)):o}function i(e){return e}function s(e){if(!e)return!1;var n=e.length;if(n<9)return!1;if(95!==e.charCodeAt(n-1)||95!==e.charCodeAt(n-2)||111!==e.charCodeAt(n-3)||116!==e.charCodeAt(n-4)||111!==e.charCodeAt(n-5)||114!==e.charCodeAt(n-6)||112!==e.charCodeAt(n-7)||95!==e.charCodeAt(n-8)||95!==e.charCodeAt(n-9))return!1;for(var r=n-10;r>=0;r--)if(36!==e.charCodeAt(r))return!1;return!0}function a(e,n){return e===n?0:e>n?1:-1}n.getArg=function(e,n,r){if(n in e)return e[n];if(3===arguments.length)return r;throw new Error('"'+n+'" is a required argument.')};var u=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,l=/^data:.+\,.+$/;n.urlParse=r,n.normalize=o,n.join=function(e,n){""===e&&(e="."),""===n&&(n=".");var i=r(n),s=r(e);if(s&&(e=s.path||"/"),i&&!i.scheme)return s&&(i.scheme=s.scheme),t(i);if(i||n.match(l))return n;if(s&&!s.host&&!s.path)return s.host=n,t(s);var a="/"===n.charAt(0)?n:o(e.replace(/\/+$/,"")+"/"+n);return s?(s.path=a,t(s)):a},n.isAbsolute=function(e){return"/"===e.charAt(0)||!!e.match(u)},n.relative=function(e,n){""===e&&(e="."),e=e.replace(/\/$/,"");for(var r=0;0!==n.indexOf(e+"/");){var t=e.lastIndexOf("/");if(t<0)return n;if((e=e.slice(0,t)).match(/^([^\/]+:\/)?\/*$/))return n;++r}return Array(r+1).join("../")+n.substr(e.length+1)};var c=!("__proto__"in Object.create(null));n.toSetString=c?i:function(e){return s(e)?"$"+e:e},n.fromSetString=c?i:function(e){return s(e)?e.slice(1):e},n.compareByOriginalPositions=function(e,n,r){var t=e.source-n.source;return 0!==t?t:0!=(t=e.originalLine-n.originalLine)?t:0!=(t=e.originalColumn-n.originalColumn)||r?t:0!=(t=e.generatedColumn-n.generatedColumn)?t:0!=(t=e.generatedLine-n.generatedLine)?t:e.name-n.name},n.compareByGeneratedPositionsDeflated=function(e,n,r){var t=e.generatedLine-n.generatedLine;return 0!==t?t:0!=(t=e.generatedColumn-n.generatedColumn)||r?t:0!=(t=e.source-n.source)?t:0!=(t=e.originalLine-n.originalLine)?t:0!=(t=e.originalColumn-n.originalColumn)?t:e.name-n.name},n.compareByGeneratedPositionsInflated=function(e,n){var r=e.generatedLine-n.generatedLine;return 0!==r?r:0!=(r=e.generatedColumn-n.generatedColumn)?r:0!==(r=a(e.source,n.source))?r:0!=(r=e.originalLine-n.originalLine)?r:0!=(r=e.originalColumn-n.originalColumn)?r:a(e.name,n.name)}},$fsx.f[7]=function(e,n){function r(){this._array=[],this._set=i?new Map:Object.create(null)}var t=$fsx.r(6),o=Object.prototype.hasOwnProperty,i="undefined"!=typeof Map;r.fromArray=function(e,n){for(var t=new r,o=0,i=e.length;o<i;o++)t.add(e[o],n);return t},r.prototype.size=function(){return i?this._set.size:Object.getOwnPropertyNames(this._set).length},r.prototype.add=function(e,n){var r=i?e:t.toSetString(e),s=i?this.has(e):o.call(this._set,r),a=this._array.length;s&&!n||this._array.push(e),s||(i?this._set.set(e,a):this._set[r]=a)},r.prototype.has=function(e){if(i)return this._set.has(e);var n=t.toSetString(e);return o.call(this._set,n)},r.prototype.indexOf=function(e){if(i){var n=this._set.get(e);if(n>=0)return n}else{var r=t.toSetString(e);if(o.call(this._set,r))return this._set[r]}throw new Error('"'+e+'" is not in the set.')},r.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)},r.prototype.toArray=function(){return this._array.slice()},n.ArraySet=r},$fsx.f[8]=function(e,n){function r(e,n){var r=e.generatedLine,t=n.generatedLine,i=e.generatedColumn,s=n.generatedColumn;return t>r||t==r&&s>=i||o.compareByGeneratedPositionsInflated(e,n)<=0}function t(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}var o=$fsx.r(6);t.prototype.unsortedForEach=function(e,n){this._array.forEach(e,n)},t.prototype.add=function(e){r(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},t.prototype.toArray=function(){return this._sorted||(this._array.sort(o.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},n.MappingList=t},$fsx.f[9]=function(e,n){function r(e){var n=e;return"string"==typeof e&&(n=JSON.parse(e.replace(/^\)\]\}'/,""))),null!=n.sections?new i(n):new t(n)}function t(e){var n=e;"string"==typeof e&&(n=JSON.parse(e.replace(/^\)\]\}'/,"")));var r=s.getArg(n,"version"),t=s.getArg(n,"sources"),o=s.getArg(n,"names",[]),i=s.getArg(n,"sourceRoot",null),a=s.getArg(n,"sourcesContent",null),l=s.getArg(n,"mappings"),c=s.getArg(n,"file",null);if(r!=this._version)throw new Error("Unsupported version: "+r);t=t.map(String).map(s.normalize).map(function(e){return i&&s.isAbsolute(i)&&s.isAbsolute(e)?s.relative(i,e):e}),this._names=u.fromArray(o.map(String),!0),this._sources=u.fromArray(t,!0),this.sourceRoot=i,this.sourcesContent=a,this._mappings=l,this.file=c}function o(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function i(e){var n=e;"string"==typeof e&&(n=JSON.parse(e.replace(/^\)\]\}'/,"")));var t=s.getArg(n,"version"),o=s.getArg(n,"sections");if(t!=this._version)throw new Error("Unsupported version: "+t);this._sources=new u,this._names=new u;var i={line:-1,column:0};this._sections=o.map(function(e){if(e.url)throw new Error("Support for url field in sections not implemented.");var n=s.getArg(e,"offset"),t=s.getArg(n,"line"),o=s.getArg(n,"column");if(t<i.line||t===i.line&&o<i.column)throw new Error("Section offsets must be ordered and non-overlapping.");return i=n,{generatedOffset:{generatedLine:t+1,generatedColumn:o+1},consumer:new r(s.getArg(e,"map"))}})}var s=$fsx.r(6),a=$fsx.r(10),u=$fsx.r(7).ArraySet,l=$fsx.r(4),c=$fsx.r(11).quickSort;r.fromSourceMap=function(e){return t.fromSourceMap(e)},r.prototype._version=3,r.prototype.__generatedMappings=null,Object.defineProperty(r.prototype,"_generatedMappings",{get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),r.prototype.__originalMappings=null,Object.defineProperty(r.prototype,"_originalMappings",{get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),r.prototype._charIsMappingSeparator=function(e,n){var r=e.charAt(n);return";"===r||","===r},r.prototype._parseMappings=function(e,n){throw new Error("Subclasses must implement _parseMappings")},r.GENERATED_ORDER=1,r.ORIGINAL_ORDER=2,r.GREATEST_LOWER_BOUND=1,r.LEAST_UPPER_BOUND=2,r.prototype.eachMapping=function(e,n,t){var o,i=n||null;switch(t||r.GENERATED_ORDER){case r.GENERATED_ORDER:o=this._generatedMappings;break;case r.ORIGINAL_ORDER:o=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var a=this.sourceRoot;o.map(function(e){var n=null===e.source?null:this._sources.at(e.source);return null!=n&&null!=a&&(n=s.join(a,n)),{source:n,generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:null===e.name?null:this._names.at(e.name)}},this).forEach(e,i)},r.prototype.allGeneratedPositionsFor=function(e){var n=s.getArg(e,"line"),r={source:s.getArg(e,"source"),originalLine:n,originalColumn:s.getArg(e,"column",0)};if(null!=this.sourceRoot&&(r.source=s.relative(this.sourceRoot,r.source)),!this._sources.has(r.source))return[];r.source=this._sources.indexOf(r.source);var t=[],o=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",s.compareByOriginalPositions,a.LEAST_UPPER_BOUND);if(o>=0){var i=this._originalMappings[o];if(void 0===e.column)for(var u=i.originalLine;i&&i.originalLine===u;)t.push({line:s.getArg(i,"generatedLine",null),column:s.getArg(i,"generatedColumn",null),lastColumn:s.getArg(i,"lastGeneratedColumn",null)}),i=this._originalMappings[++o];else for(var l=i.originalColumn;i&&i.originalLine===n&&i.originalColumn==l;)t.push({line:s.getArg(i,"generatedLine",null),column:s.getArg(i,"generatedColumn",null),lastColumn:s.getArg(i,"lastGeneratedColumn",null)}),i=this._originalMappings[++o]}return t},n.SourceMapConsumer=r,(t.prototype=Object.create(r.prototype)).consumer=r,t.fromSourceMap=function(e){var n=Object.create(t.prototype),r=n._names=u.fromArray(e._names.toArray(),!0),i=n._sources=u.fromArray(e._sources.toArray(),!0);n.sourceRoot=e._sourceRoot,n.sourcesContent=e._generateSourcesContent(n._sources.toArray(),n.sourceRoot),n.file=e._file;for(var a=e._mappings.toArray().slice(),l=n.__generatedMappings=[],g=n.__originalMappings=[],p=0,f=a.length;p<f;p++){var h=a[p],m=new o;m.generatedLine=h.generatedLine,m.generatedColumn=h.generatedColumn,h.source&&(m.source=i.indexOf(h.source),m.originalLine=h.originalLine,m.originalColumn=h.originalColumn,h.name&&(m.name=r.indexOf(h.name)),g.push(m)),l.push(m)}return c(n.__originalMappings,s.compareByOriginalPositions),n},t.prototype._version=3,Object.defineProperty(t.prototype,"sources",{get:function(){return this._sources.toArray().map(function(e){return null!=this.sourceRoot?s.join(this.sourceRoot,e):e},this)}}),t.prototype._parseMappings=function(e,n){for(var r,t,i,a,u,g=1,p=0,f=0,h=0,m=0,d=0,_=e.length,v=0,y={},C={},S=[],A=[];v<_;)if(";"===e.charAt(v))g++,v++,p=0;else if(","===e.charAt(v))v++;else{for((r=new o).generatedLine=g,a=v;a<_&&!this._charIsMappingSeparator(e,a);a++);if(t=e.slice(v,a),i=y[t])v+=t.length;else{for(i=[];v<a;)l.decode(e,v,C),u=C.value,v=C.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");y[t]=i}r.generatedColumn=p+i[0],p=r.generatedColumn,i.length>1&&(r.source=m+i[1],m+=i[1],r.originalLine=f+i[2],f=r.originalLine,r.originalLine+=1,r.originalColumn=h+i[3],h=r.originalColumn,i.length>4&&(r.name=d+i[4],d+=i[4])),A.push(r),"number"==typeof r.originalLine&&S.push(r)}c(A,s.compareByGeneratedPositionsDeflated),this.__generatedMappings=A,c(S,s.compareByOriginalPositions),this.__originalMappings=S},t.prototype._findMapping=function(e,n,r,t,o,i){if(e[r]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[r]);if(e[t]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[t]);return a.search(e,n,o,i)},t.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var n=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var r=this._generatedMappings[e+1];if(n.generatedLine===r.generatedLine){n.lastGeneratedColumn=r.generatedColumn-1;continue}}n.lastGeneratedColumn=1/0}},t.prototype.originalPositionFor=function(e){var n={generatedLine:s.getArg(e,"line"),generatedColumn:s.getArg(e,"column")},t=this._findMapping(n,this._generatedMappings,"generatedLine","generatedColumn",s.compareByGeneratedPositionsDeflated,s.getArg(e,"bias",r.GREATEST_LOWER_BOUND));if(t>=0){var o=this._generatedMappings[t];if(o.generatedLine===n.generatedLine){var i=s.getArg(o,"source",null);null!==i&&(i=this._sources.at(i),null!=this.sourceRoot&&(i=s.join(this.sourceRoot,i)));var a=s.getArg(o,"name",null);return null!==a&&(a=this._names.at(a)),{source:i,line:s.getArg(o,"originalLine",null),column:s.getArg(o,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},t.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&(this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return null==e}))},t.prototype.sourceContentFor=function(e,n){if(!this.sourcesContent)return null;if(null!=this.sourceRoot&&(e=s.relative(this.sourceRoot,e)),this._sources.has(e))return this.sourcesContent[this._sources.indexOf(e)];var r;if(null!=this.sourceRoot&&(r=s.urlParse(this.sourceRoot))){var t=e.replace(/^file:\/\//,"");if("file"==r.scheme&&this._sources.has(t))return this.sourcesContent[this._sources.indexOf(t)];if((!r.path||"/"==r.path)&&this._sources.has("/"+e))return this.sourcesContent[this._sources.indexOf("/"+e)]}if(n)return null;throw new Error('"'+e+'" is not in the SourceMap.')},t.prototype.generatedPositionFor=function(e){var n=s.getArg(e,"source");if(null!=this.sourceRoot&&(n=s.relative(this.sourceRoot,n)),!this._sources.has(n))return{line:null,column:null,lastColumn:null};var t={source:n=this._sources.indexOf(n),originalLine:s.getArg(e,"line"),originalColumn:s.getArg(e,"column")},o=this._findMapping(t,this._originalMappings,"originalLine","originalColumn",s.compareByOriginalPositions,s.getArg(e,"bias",r.GREATEST_LOWER_BOUND));if(o>=0){var i=this._originalMappings[o];if(i.source===t.source)return{line:s.getArg(i,"generatedLine",null),column:s.getArg(i,"generatedColumn",null),lastColumn:s.getArg(i,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},n.BasicSourceMapConsumer=t,(i.prototype=Object.create(r.prototype)).constructor=r,i.prototype._version=3,Object.defineProperty(i.prototype,"sources",{get:function(){for(var e=[],n=0;n<this._sections.length;n++)for(var r=0;r<this._sections[n].consumer.sources.length;r++)e.push(this._sections[n].consumer.sources[r]);return e}}),i.prototype.originalPositionFor=function(e){var n={generatedLine:s.getArg(e,"line"),generatedColumn:s.getArg(e,"column")},r=a.search(n,this._sections,function(e,n){var r=e.generatedLine-n.generatedOffset.generatedLine;return r||e.generatedColumn-n.generatedOffset.generatedColumn}),t=this._sections[r];return t?t.consumer.originalPositionFor({line:n.generatedLine-(t.generatedOffset.generatedLine-1),column:n.generatedColumn-(t.generatedOffset.generatedLine===n.generatedLine?t.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},i.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})},i.prototype.sourceContentFor=function(e,n){for(var r=0;r<this._sections.length;r++){var t=this._sections[r].consumer.sourceContentFor(e,!0);if(t)return t}if(n)return null;throw new Error('"'+e+'" is not in the SourceMap.')},i.prototype.generatedPositionFor=function(e){for(var n=0;n<this._sections.length;n++){var r=this._sections[n];if(-1!==r.consumer.sources.indexOf(s.getArg(e,"source"))){var t=r.consumer.generatedPositionFor(e);if(t)return{line:t.line+(r.generatedOffset.generatedLine-1),column:t.column+(r.generatedOffset.generatedLine===t.line?r.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},i.prototype._parseMappings=function(e,n){this.__generatedMappings=[],this.__originalMappings=[];for(var r=0;r<this._sections.length;r++)for(var t=this._sections[r],o=t.consumer._generatedMappings,i=0;i<o.length;i++){var a=o[i],u=t.consumer._sources.at(a.source);null!==t.consumer.sourceRoot&&(u=s.join(t.consumer.sourceRoot,u)),this._sources.add(u),u=this._sources.indexOf(u);var l=t.consumer._names.at(a.name);this._names.add(l),l=this._names.indexOf(l);var g={source:u,generatedLine:a.generatedLine+(t.generatedOffset.generatedLine-1),generatedColumn:a.generatedColumn+(t.generatedOffset.generatedLine===a.generatedLine?t.generatedOffset.generatedColumn-1:0),originalLine:a.originalLine,originalColumn:a.originalColumn,name:l};this.__generatedMappings.push(g),"number"==typeof g.originalLine&&this.__originalMappings.push(g)}c(this.__generatedMappings,s.compareByGeneratedPositionsDeflated),c(this.__originalMappings,s.compareByOriginalPositions)},n.IndexedSourceMapConsumer=i},$fsx.f[10]=function(e,n){function r(e,t,o,i,s,a){var u=Math.floor((t-e)/2)+e,l=s(o,i[u],!0);return 0===l?u:l>0?t-u>1?r(u,t,o,i,s,a):a==n.LEAST_UPPER_BOUND?t<i.length?t:-1:u:u-e>1?r(e,u,o,i,s,a):a==n.LEAST_UPPER_BOUND?u:e<0?-1:e}n.GREATEST_LOWER_BOUND=1,n.LEAST_UPPER_BOUND=2,n.search=function(e,t,o,i){if(0===t.length)return-1;var s=r(-1,t.length,e,t,o,i||n.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&0===o(t[s],t[s-1],!0);)--s;return s}},$fsx.f[11]=function(e,n){function r(e,n,r){var t=e[n];e[n]=e[r],e[r]=t}function t(e,n){return Math.round(e+Math.random()*(n-e))}function o(e,n,i,s){if(i<s){var a=i-1;r(e,t(i,s),s);for(var u=e[s],l=i;l<s;l++)n(e[l],u)<=0&&r(e,a+=1,l);r(e,a+1,l);var c=a+1;o(e,n,i,c-1),o(e,n,c+1,s)}}n.quickSort=function(e,n){o(e,n,0,e.length-1)}},$fsx.f[12]=function(e,n){function r(e,n,r,t,o){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==n?null:n,this.source=null==r?null:r,this.name=null==o?null:o,this[s]=!0,null!=t&&this.add(t)}var t=$fsx.r(3).SourceMapGenerator,o=$fsx.r(6),i=/(\r?\n)/,s="$$$isSourceNode$$$";r.fromStringWithSourceMap=function(e,n,t){function s(e,n){if(null===e||void 0===e.source)a.add(n);else{var i=t?o.join(t,e.source):e.source;a.add(new r(e.originalLine,e.originalColumn,i,n,e.name))}}var a=new r,u=e.split(i),l=0,c=function(){function e(){return l<u.length?u[l++]:void 0}return e()+(e()||"")},g=1,p=0,f=null;return n.eachMapping(function(e){if(null!==f){if(!(g<e.generatedLine)){var n=(r=u[l]).substr(0,e.generatedColumn-p);return u[l]=r.substr(e.generatedColumn-p),p=e.generatedColumn,s(f,n),void(f=e)}s(f,c()),g++,p=0}for(;g<e.generatedLine;)a.add(c()),g++;if(p<e.generatedColumn){var r=u[l];a.add(r.substr(0,e.generatedColumn)),u[l]=r.substr(e.generatedColumn),p=e.generatedColumn}f=e},this),l<u.length&&(f&&s(f,c()),a.add(u.splice(l).join(""))),n.sources.forEach(function(e){var r=n.sourceContentFor(e);null!=r&&(null!=t&&(e=o.join(t,e)),a.setSourceContent(e,r))}),a},r.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(e){this.add(e)},this);else{if(!e[s]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);e&&this.children.push(e)}return this},r.prototype.prepend=function(e){if(Array.isArray(e))for(var n=e.length-1;n>=0;n--)this.prepend(e[n]);else{if(!e[s]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this},r.prototype.walk=function(e){for(var n,r=0,t=this.children.length;r<t;r++)(n=this.children[r])[s]?n.walk(e):""!==n&&e(n,{source:this.source,line:this.line,column:this.column,name:this.name})},r.prototype.join=function(e){var n,r,t=this.children.length;if(t>0){for(n=[],r=0;r<t-1;r++)n.push(this.children[r]),n.push(e);n.push(this.children[r]),this.children=n}return this},r.prototype.replaceRight=function(e,n){var r=this.children[this.children.length-1];return r[s]?r.replaceRight(e,n):"string"==typeof r?this.children[this.children.length-1]=r.replace(e,n):this.children.push("".replace(e,n)),this},r.prototype.setSourceContent=function(e,n){this.sourceContents[o.toSetString(e)]=n},r.prototype.walkSourceContents=function(e){for(var n=0,r=this.children.length;n<r;n++)this.children[n][s]&&this.children[n].walkSourceContents(e);for(var t=Object.keys(this.sourceContents),n=0,r=t.length;n<r;n++)e(o.fromSetString(t[n]),this.sourceContents[t[n]])},r.prototype.toString=function(){var e="";return this.walk(function(n){e+=n}),e},r.prototype.toStringWithSourceMap=function(e){var n={code:"",line:1,column:0},r=new t(e),o=!1,i=null,s=null,a=null,u=null;return this.walk(function(e,t){n.code+=e,null!==t.source&&null!==t.line&&null!==t.column?(i===t.source&&s===t.line&&a===t.column&&u===t.name||r.addMapping({source:t.source,original:{line:t.line,column:t.column},generated:{line:n.line,column:n.column},name:t.name}),i=t.source,s=t.line,a=t.column,u=t.name,o=!0):o&&(r.addMapping({generated:{line:n.line,column:n.column}}),i=null,o=!1);for(var l=0,c=e.length;l<c;l++)10===e.charCodeAt(l)?(n.line++,n.column=0,l+1===c?(i=null,o=!1):o&&r.addMapping({source:t.source,original:{line:t.line,column:t.column},generated:{line:n.line,column:n.column},name:t.name})):n.column++}),this.walkSourceContents(function(e,n){r.setSourceContent(e,n)}),{code:n.code,map:r}},n.SourceNode=r},$fsx.r(0);