nkisi
Version:
Command line client for linking to Web Agent lanes over the WARP protocol
2 lines • 679 kB
JavaScript
#!/usr/bin/env node
!function(e){"function"==typeof define&&define.amd?define(e):e()}((function(){"use strict";var e=function(e,t){return e===t||null!=e&&"function"==typeof e.equals&&e.equals(t)};e.is=function(e){return null!=e&&"function"==typeof e.equals};var t=function(e){return void 0===e?0:null===e?1:e.hashCode()};t.is=function(e){return null!=e&&"function"==typeof e.hashCode};var r=function(e,t,r){return e===t||null!=e&&"function"==typeof e.equivalentTo&&e.equivalentTo(t,r)};r.is=function(e){return null!=e&&"function"==typeof e.equivalentTo},r.Epsilon=1e-8;var n=function(e,t){return void 0===e?void 0===t?0:1:null===e?void 0===t?-1:null===t?0:1:"function"==typeof e.compareTo?null==t?-1:e.compareTo(t):NaN};n.is=function(e){return null!=e&&"function"==typeof e.compareTo};var i=function(e,t,r){var n=r.writable,i=r.enumerable,o=r.configurable;if(void 0!==r.get){var u=r.get;r.get=function(){var r=u.call(this);return Object.defineProperty(e,t,{value:r,writable:n,enumerable:i,configurable:o}),r}}else{if(void 0===r.value)throw new Error("invalid lazy property descriptor");var s=r.value;r.value=function(){var r=s.call(this);return Object.defineProperty(e,t,{value:function(){return r},writable:n,enumerable:i,configurable:o}),r}}};void 0===String.prototype.codePointAt&&(String.prototype.codePointAt=function(e){var t=this.length;if((e=e?Number(e):0)!=e&&(e=0),e>=0&&e<t){var r=this.charCodeAt(e);if(r<=55295||r>=57344)return r;if(r<=56319&&e+1<t){var n=this.charCodeAt(e+1);if(n>=56320&&n<=57343)return 65536+((1023&r)<<10+n&1023)}}}),void 0===String.prototype.offsetByCodePoints&&(String.prototype.offsetByCodePoints=function(e,t){if(t>0)for(var r=this.length;t>0&&e<r;){if((i=this.charCodeAt(e))<=55295||i>=57344)e+=1;else if(i<=56319&&e+1<r){e+=(n=this.charCodeAt(e+1))>=56320&&n<=57343?2:1}else e+=1;t-=1}else if(t<0)for(;t<0&&e>0;){var n;if((n=this.charCodeAt(e-1))<=55295||n>=57344)e-=1;else if(n>=56320&&n<=57343&&e-1>0){var i;e-=(i=this.charCodeAt(e-2))>=55296&&i<=57343?2:1}else e-=1;t-=1}return e});var o={};"undefined"!=typeof window&&void 0!==window.crypto?o.fillBytes=function(e){window.crypto.getRandomValues(e)}:"undefined"!=typeof window&&void 0!==window.msCrypto?o.fillBytes=function(e){window.msCrypto.getRandomValues(e)}:o.fillBytes=function(e){if(e instanceof Int8Array)for(var t=0;t<e.length;t+=1)e[t]=128-Math.round(256*Math.random());else if(e instanceof Uint8Array)for(t=0;t<e.length;t+=1)e[t]=Math.round(256*Math.random());else if(e instanceof Int16Array)for(t=0;t<e.length;t+=1)e[t]=32768-Math.round(65536*Math.random());else if(e instanceof Uint16Array)for(t=0;t<e.length;t+=1)e[t]=Math.round(65536*Math.random());else if(e instanceof Int32Array)for(t=0;t<e.length;t+=1)e[t]=2147483648-Math.round(4294967296*Math.random());else{if(!(e instanceof Uint32Array))throw new TypeError(""+e);for(t=0;t<e.length;t+=1)e[t]=Math.round(4294967296*Math.random())}};var u={};Object.defineProperty(u,"BigEndian",{value:"BE",enumerable:!0}),Object.defineProperty(u,"LittleEndian",{value:"LE",enumerable:!0}),Object.defineProperty(u,"NativeOrder",{get:function(){var e,t=new ArrayBuffer(2);new Uint16Array(t)[0]=65279;var r=new Uint8Array(t);if(254===r[0]&&255===r[1])e=u.BigEndian;else{if(255!==r[0]||254!==r[1])throw new Error;e=u.LittleEndian}return Object.defineProperty(u,"NativeOrder",{value:e,enumerable:!0}),e},configurable:!0,enumerable:!0});var s,a,p,f={mix:function(e,t){return t=3432918353*(65535&t)+((3432918353*(t>>>16)&65535)<<16)&4294967295,e^=t=461845907*(65535&(t=f.rotl(t,15)))+((461845907*(t>>>16)&65535)<<16)&4294967295,e=27492+(65535&(e=5*(65535&(e=f.rotl(e,13)))+((5*(e>>>16)&65535)<<16)&4294967295))+((58964+(e>>>16)&65535)<<16)},mixUint8Array:function(e,t){if(u.NativeOrder===u.BigEndian)return f.mixUint8ArrayBE(e,t);if(u.NativeOrder===u.LittleEndian)return f.mixUInt8ArrayLE(e,t);throw new Error},mixUint8ArrayBE:function(e,t){for(var r=0,n=t.length;r+3<n;){var i=(255&t[r])<<24|(255&t[r+1])<<16|(255&t[r+2])<<8|255&t[r+3];e=f.mix(e,i),r+=4}if(r<n){i=(255&t[r])<<24;r+1<n&&(i|=(255&t[r+1])<<16,r+2<n&&(i|=(255&t[r+2])<<8)),i=3432918353*(65535&i)+((3432918353*(i>>>16)&65535)<<16)&4294967295,e^=i=461845907*(65535&(i=f.rotl(i,15)))+((461845907*(i>>>16)&65535)<<16)&4294967295}return e^n},mixUInt8ArrayLE:function(e,t){for(var r=0,n=t.length;r+3<n;){var i=255&t[r]|(255&t[r+1])<<8|(255&t[r+2])<<16|(255&t[r+3])<<24;e=f.mix(e,i),r+=4}if(r<n){i=255&t[r];r+1<n&&(i|=(255&t[r+1])<<8,r+2<n&&(i|=(255&t[r+2])<<16)),i=3432918353*(65535&i)+((3432918353*(i>>>16)&65535)<<16)&4294967295,e^=i=461845907*(65535&(i=f.rotl(i,15)))+((461845907*(i>>>16)&65535)<<16)&4294967295}return e^n},mixString:function(e,t){if(u.NativeOrder===u.BigEndian)return f.mixStringBE(e,t);if(u.NativeOrder===u.LittleEndian)return f.mixStringLE(e,t);throw new Error},mixStringBE:function(e,t){for(var r=0,n=32,i=0,o=t.length,u=0;i<o;){var s=t.codePointAt(i);void 0===s&&(s=t.charCodeAt(i)),s>=0&&s<=127?(r|=s<<(n-=8),0===n&&(e=f.mix(e,r),r=0,n=32),u+=1):s>=128&&s<=2047?(r|=(192|s>>>6)<<(n-=8),0===n&&(e=f.mix(e,r),r=0,n=32),r|=(128|63&s)<<(n-=8),0===n&&(e=f.mix(e,r),r=0,n=32),u+=2):s>=2048&&s<=65535||s>=57344&&s<=65535?(r|=(224|s>>>12)<<(n-=8),0===n&&(e=f.mix(e,r),r=0,n=32),r|=(128|s>>>6&63)<<(n-=8),0===n&&(e=f.mix(e,r),r=0,n=32),r|=(128|63&s)<<(n-=8),0===n&&(e=f.mix(e,r),r=0,n=32),u+=3):s>=65536&&s<=1114111?(r|=(240|s>>>18)<<(n-=8),0===n&&(e=f.mix(e,r),r=0,n=32),r|=(128|s>>>12&63)<<(n-=8),0===n&&(e=f.mix(e,r),r=0,n=32),r|=(128|s>>>6&63)<<(n-=8),0===n&&(e=f.mix(e,r),r=0,n=32),r|=(128|63&s)<<(n-=8),0===n&&(e=f.mix(e,r),r=0,n=32),u+=4):(r|=239<<(n-=8),0===n&&(e=f.mix(e,r),r=0,n=32),r|=191<<(n-=8),0===n&&(e=f.mix(e,r),r=0,n=32),r|=189<<(n-=8),0===n&&(e=f.mix(e,r),r=0,n=32),u+=3),i=t.offsetByCodePoints(i,1)}return 32!==n&&(r=3432918353*(65535&r)+((3432918353*(r>>>16)&65535)<<16)&4294967295,e^=r=461845907*(65535&(r=f.rotl(r,15)))+((461845907*(r>>>16)&65535)<<16)&4294967295),e^u},mixStringLE:function(e,t){for(var r=0,n=0,i=0,o=t.length,u=0;i<o;){var s=t.codePointAt(i);void 0===s&&(s=t.charCodeAt(i)),s>=0&&s<=127?(r|=s<<n,32===(n+=8)&&(e=f.mix(e,r),r=0,n=0),u+=1):s>=128&&s<=2047?(r|=(192|s>>>6)<<n,32===(n+=8)&&(e=f.mix(e,r),r=0,n=0),r|=(128|63&s)<<n,32===(n+=8)&&(e=f.mix(e,r),r=0,n=0),u+=2):s>=2048&&s<=65535||s>=57344&&s<=65535?(r|=(224|s>>>12)<<n,32===(n+=8)&&(e=f.mix(e,r),r=0,n=0),r|=(128|s>>>6&63)<<n,32===(n+=8)&&(e=f.mix(e,r),r=0,n=0),r|=(128|63&s)<<n,32===(n+=8)&&(e=f.mix(e,r),r=0,n=0),u+=3):s>=65536&&s<=1114111?(r|=(240|s>>>18)<<n,32===(n+=8)&&(e=f.mix(e,r),r=0,n=0),r|=(128|s>>>12&63)<<n,32===(n+=8)&&(e=f.mix(e,r),r=0,n=0),r|=(128|s>>>6&63)<<n,32===(n+=8)&&(e=f.mix(e,r),r=0,n=0),r|=(128|63&s)<<n,32===(n+=8)&&(e=f.mix(e,r),r=0,n=0),u+=4):(r|=239<<n,32===(n+=8)&&(e=f.mix(e,r),r=0,n=0),r|=191<<n,32===(n+=8)&&(e=f.mix(e,r),r=0,n=0),r|=189<<n,32===(n+=8)&&(e=f.mix(e,r),r=0,n=0),u+=3),i=t.offsetByCodePoints(i,1)}return 32!==n&&(r=3432918353*(65535&r)+((3432918353*(r>>>16)&65535)<<16)&4294967295,e^=r=461845907*(65535&(r=f.rotl(r,15)))+((461845907*(r>>>16)&65535)<<16)&4294967295),e^u},mash:function(e){return e=2246822507*(65535&(e^=e>>>16))+((2246822507*(e>>>16)&65535)<<16)&4294967295,e=3266489909*(65535&(e^=e>>>13))+((3266489909*(e>>>16)&65535)<<16)&4294967295,(e^=e>>>16)>>>0},rotl:function(e,t){return e<<t|e>>>32-t}},c={compare:function(e,t){return"boolean"==typeof e?"boolean"==typeof t?e&&!t?-1:!e&&t?1:0:-1:null===e?void 0===t?-1:null===t?0:1:void 0===e?void 0===t?0:1:NaN},hash:function(e){if(!0===e)return 3;if(!1===e)return 2;if(null===e)return 1;if(void 0===e)return 0;throw new TypeError(""+e)}},l={};l.equal=function(e,t){return e===t||"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)},l.equivalent=function(e,t,n){return e===t||"number"==typeof e&&"number"==typeof t&&(isNaN(e)&&isNaN(t)||Math.abs(t-e)<(void 0!==n?n:r.Epsilon))},l.compare=function(e,t){return"number"==typeof e?"number"==typeof t?e<t?-1:e>t?1:isNaN(t)?isNaN(e)?0:-1:isNaN(e)?1:0:-1:null===e?void 0===t?-1:null===t?0:1:void 0===e?void 0===t?0:1:NaN},l.hash=(s=new ArrayBuffer(8),a=new Float64Array(s),p=new Int32Array(s),function(e){if("number"==typeof e)return e===~~e?~~e:(a[0]=e,p[0]^p[1]);if(null===e)return 1;if(void 0===e)return 0;throw new TypeError(""+e)});var h,d={compare:function(e,t){return"string"==typeof e?"string"==typeof t?e<t?-1:e>t?1:0:-1:null===e?void 0===t?-1:null===t?0:1:void 0===e?void 0===t?0:1:NaN},hash:function(e){if("string"==typeof e)return f.mash(f.mixString(0,e));if(null===e)return 1;if(void 0===e)return 0;throw new TypeError(""+e)}},y={};y.compare=function(e,t){if("function"==typeof e){if("function"==typeof t){var r=y.hash(e),n=y.hash(t);return r<n?-1:r>n?1:0}return-1}return null===e?void 0===t?-1:null===t?0:1:void 0===e?void 0===t?0:1:NaN},y.hash=(h=-1,function(e){if("function"==typeof e){var t=e._hashCode;return void 0===t&&(t=~~h,h-=1,Object.defineProperty(e,"_hashCode",{value:t,configurable:!0})),t}if(null===e)return 1;if(void 0===e)return 0;throw new TypeError(""+e)});var v={compare:function(e,t){if("function"==typeof e){if("function"==typeof t){var r=v.hash(e),n=v.hash(t);return r<n?-1:r>n?1:0}return-1}return null===e?void 0===t?-1:null===t?0:1:void 0===e?void 0===t?0:1:NaN},hash:function(e){if("function"==typeof e){var t=e._hashCode;return void 0===t&&(t=f.mash(f.mixString(0,e.name)),Object.defineProperty(e,"_hashCode",{value:t,configurable:!0})),t}if(null===e)return 1;if(void 0===e)return 0;throw new TypeError(""+e)}},b={equal:function(e,t){if(e===t)return!0;if("object"==typeof e&&null!==e&&"object"==typeof t&&null!==t){var r=Object.keys(e),n=Object.keys(t),i=r.length;if(i!==n.length)return!1;for(var o=0;o<i;o+=1){var u=r[o];if(u!==n[o]||!m.equal(e[u],t[u]))return!1}return!0}return!1},equivalent:function(e,t,r){if(e===t)return!0;if("object"==typeof e&&null!==e&&"object"==typeof t&&null!==t){var n=Object.keys(e),i=Object.keys(t),o=n.length;if(o!==i.length)return!1;for(var u=0;u<o;u+=1){var s=n[u];if(s!==i[u]||!m.equivalent(e[s],t[s],r))return!1}return!0}return!1},compare:function(e,t){if("object"==typeof e&&null!==e){if("object"==typeof t&&null!==t){if(e!==t){for(var r=Object.keys(e),n=Object.keys(t),i=r.length,o=n.length,u=Math.min(i,o),s=0,a=0;a<u&&0===s;a+=1){var p=r[a],f=n[a];0===(s=d.compare(p,f))&&(s=m.compare(e[p],t[f]))}return 0!==s?s:i>o?1:i<o?-1:0}return 0}return-1}return null===e?void 0===t?-1:null===t?0:1:void 0===e?void 0===t?0:1:NaN},hash:function(e){if("object"==typeof e&&null!==e){for(var t=0,r=Object.keys(e),n=0,i=r.length;n<i;n+=1){var o=r[n];t=f.mix(f.mix(t,d.hash(o)),m.hash(e[o]))}return f.mash(t)}if(null===e)return 1;if(void 0===e)return 0;throw new TypeError(""+e)}},m={equal:function(t,r){if(t instanceof Date&&(t=t.getTime()),r instanceof Date&&(r=r.getTime()),t===r)return!0;if("number"==typeof t){if("number"==typeof r)return isNaN(t)&&isNaN(r)}else{if(e.is(t))return t.equals(r);if(Array.isArray(t)){if(Array.isArray(r))return g.equal(t,r)}else if("object"==typeof t&&null!==t&&"object"==typeof r&&null!==r)return b.equal(t,r)}return!1},hash:function(e){if(void 0===e)return 0;if(null===e)return 1;if(!1===e)return 2;if(!0===e)return 3;if("number"==typeof e)return l.hash(e);if("string"==typeof e)return d.hash(e);if(t.is(e))return e.hashCode();if("function"==typeof e)return y.hash(e);if(Array.isArray(e))return g.hash(e);if("object"==typeof e)return b.hash(e);throw new TypeError(""+e)},equivalent:function(e,t,n){if(void 0===n&&(n=r.Epsilon),e instanceof Date&&(e=e.getTime()),t instanceof Date&&(t=t.getTime()),e===t)return!0;if("number"==typeof e){if("number"==typeof t)return isNaN(e)&&isNaN(t)||Math.abs(t-e)<n}else{if(r.is(e))return e.equivalentTo(t,n);if(Array.isArray(e)){if(Array.isArray(t))return g.equivalent(e,t,n)}else if("object"==typeof e&&null!==e&&"object"==typeof t&&null!==t)return b.equivalent(e,t,n)}return!1},compare:function(e,t){return e instanceof Date&&(e=e.getTime()),t instanceof Date&&(t=t.getTime()),void 0===e?void 0===t?0:1:null===e?void 0===t?-1:null===t?0:1:"boolean"==typeof e?null==t?-1:"boolean"==typeof t?e&&!t?-1:!e&&t?1:0:1:"number"==typeof e?null==t||"boolean"==typeof t?-1:"number"==typeof t?e<t?-1:e>t?1:isNaN(t)?isNaN(e)?0:-1:isNaN(e)?1:0:1:"string"==typeof e?null==t||"boolean"==typeof t||"number"==typeof t?-1:"string"==typeof t?e<t?-1:e>t?1:0:1:n.is(e)?e.compareTo(t):"function"==typeof e?null==t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t?-1:"function"==typeof t?y.compare(e,t):1:Array.isArray(e)?null==t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"function"==typeof t?-1:Array.isArray(t)?g.compare(e,t):1:"object"==typeof e?null==t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"function"==typeof t||Array.isArray(t)?-1:"object"==typeof t?b.compare(e,t):1:NaN}},g={};Object.defineProperty(g,"empty",{value:Object.freeze([]),enumerable:!0,configurable:!0}),g.inserted=function(e,t){for(var r=null!=t?t.length:0,n=new Array(r+1),i=0;i<r;i+=1){var o=t[i];if(o===e)return t;n[i]=o}return n[r]=e,n},g.removed=function(e,t){var r=null!=t?t.length:0;if(0===r)return null!=t?t:g.empty;if(1===r)return t[0]!==e?t:g.empty;for(var n=new Array(r-1),i=0;i<r;){var o=t[i];if(o===e){for(i+=1;i<r;)n[i-1]=t[i],i+=1;return n}n[i]=o,i+=1}return t},g.equal=function(e,t){if(e===t)return!0;if("object"==typeof e&&null!==e&&"object"==typeof t&&null!==t){var r=e.length;if(r!==t.length)return!1;for(var n=0;n<r;n+=1)if(!m.equal(e[n],t[n]))return!1;return!0}return!1},g.equivalent=function(e,t,r){if(e===t)return!0;if("object"==typeof e&&null!==e&&"object"==typeof t&&null!==t){var n=e.length;if(n!==t.length)return!1;for(var i=0;i<n;i+=1)if(!m.equivalent(e[i],t[i],r))return!1;return!0}return!1},g.compare=function(e,t){if("object"==typeof e&&null!==e){if("object"==typeof t&&null!==t){if(e!==t){for(var r=e.length,n=t.length,i=0,o=0,u=Math.min(r,n);o<u&&0===i;o+=1)i=m.compare(e[o],t[o]);return 0!==i?i:r>n?1:r<n?-1:0}return 0}return-1}return null===e?void 0===t?-1:null===t?0:1:void 0===e?void 0===t?0:1:NaN},g.hash=function(e){if("object"==typeof e&&null!==e){for(var t=0,r=0,n=e.length;r<n;r+=1)t=f.mix(t,m.hash(e[r]));return f.mash(t)}if(null===e)return 1;if(void 0===e)return 0;throw new TypeError(""+e)};var w=function(e,t){return(w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function O(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}w(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function P(e,t,r,n){var i,o=arguments.length,u=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(u=(o<3?i(u):o>3?i(t,r,u):i(t,r))||u);return o>3&&u&&Object.defineProperty(t,r,u),u}function j(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||t)}var k=function(){function e(){}return e.prototype.set=function(e){throw new Error("immutable")},e.prototype.delete=function(){throw new Error("immutable")},e.empty=function(){return new E},e.unary=function(e){return new C(e)},e.array=function(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=e.length),new A(e,t,r)},P([i],e,"empty",null),e}(),E=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return O(t,e),t.prototype.isEmpty=function(){return!0},t.prototype.head=function(){throw new Error("empty")},t.prototype.step=function(){throw new Error("empty")},t.prototype.skip=function(e){},t.prototype.hasNext=function(){return!1},t.prototype.nextIndex=function(){return 0},t.prototype.next=function(){return{done:!0}},t.prototype.hasPrevious=function(){return!1},t.prototype.previousIndex=function(){return-1},t.prototype.previous=function(){return{done:!0}},t}(k),C=function(e){function t(t){var r=e.call(this)||this;return Object.defineProperty(r,"value",{value:t}),Object.defineProperty(r,"index",{value:0,configurable:!0}),r}return O(t,e),t.prototype.isEmpty=function(){return 0!==this.index},t.prototype.head=function(){if(0===this.index)return this.value;throw new Error("empty")},t.prototype.step=function(){if(0!==this.index)throw new Error("empty");Object.defineProperty(this,"index",{value:1,configurable:!0})},t.prototype.skip=function(e){this.index=Math.min(Math.max(0,this.index+e),1)},t.prototype.hasNext=function(){return 0===this.index},t.prototype.nextIndex=function(){return this.index},t.prototype.next=function(){return 0===this.index?(Object.defineProperty(this,"index",{value:1,configurable:!0}),{value:this.value,done:!0}):{done:!0}},t.prototype.hasPrevious=function(){return 1===this.index},t.prototype.previousIndex=function(){return this.index-1},t.prototype.previous=function(){return 1===this.index?(Object.defineProperty(this,"index",{value:0,configurable:!0}),{value:this.value,done:!0}):{done:!0}},t}(k),A=function(e){function t(t,r,n){var i=e.call(this)||this;return Object.defineProperty(i,"array",{value:t}),Object.defineProperty(i,"index",{value:r,configurable:!0}),Object.defineProperty(i,"limit",{value:n}),i}return O(t,e),t.prototype.isEmpty=function(){return this.index>=this.limit},t.prototype.head=function(){if(this.index<this.limit)return this.array[this.index];throw new Error("empty")},t.prototype.step=function(){var e=this.index;if(!(e<this.limit))throw new Error("empty");Object.defineProperty(this,"index",{value:e+1,configurable:!0})},t.prototype.skip=function(e){Object.defineProperty(this,"index",{value:Math.min(this.index+e,this.limit),configurable:!0})},t.prototype.hasNext=function(){return this.index<this.limit},t.prototype.nextIndex=function(){return this.index},t.prototype.next=function(){var e=this.index;return e<this.limit?(Object.defineProperty(this,"index",{value:e+1,configurable:!0}),{value:this.array[e],done:this.index===this.limit}):(Object.defineProperty(this,"index",{value:this.limit,configurable:!0}),{done:!0})},t.prototype.hasPrevious=function(){return this.index>0},t.prototype.previousIndex=function(){return this.index-1},t.prototype.previous=function(){var e=this.index-1;return e>=0?(Object.defineProperty(this,"index",{value:e,configurable:!0}),{value:this.array[e],done:0===e}):(Object.defineProperty(this,"index",{value:0,configurable:!0}),{done:!0})},t}(k);!function(e){function t(r){var n=e.call(this,r)||this;return Object.setPrototypeOf(n,t.prototype),n}O(t,e)}(Error);var D,I=function(){function e(e,t){Object.defineProperty(this,"level",{value:e,enumerable:!0,configurable:!0}),Object.defineProperty(this,"label",{value:t,enumerable:!0,configurable:!0})}return e.prototype.isTrace=function(){return this.level===e.TRACE_LEVEL},e.prototype.isDebug=function(){return this.level===e.DEBUG_LEVEL},e.prototype.isInfo=function(){return this.level===e.INFO_LEVEL},e.prototype.isNote=function(){return this.level===e.NOTE_LEVEL},e.prototype.isWarning=function(){return this.level===e.WARNING_LEVEL},e.prototype.isError=function(){return this.level===e.ERROR_LEVEL},e.prototype.isAlert=function(){return this.level===e.ALERT_LEVEL},e.prototype.isFatal=function(){return this.level===e.FATAL_LEVEL},e.prototype.compareTo=function(t){return this===t?0:t instanceof e?this.level<t.level?-1:this.level>t.level?1:this.label.localeCompare(t.label):NaN},e.prototype.equals=function(t){return this===t||t instanceof e&&(this.level===t.level&&this.label===t.label)},e.prototype.hashCode=function(){return f.mash(f.mix(f.mix(v.hash(e),l.hash(this.level)),d.hash(this.label)))},e.prototype.toString=function(){return this.label},e.create=function(t,r){switch(t){case e.TRACE_LEVEL:return e.trace(r);case e.DEBUG_LEVEL:return e.debug(r);case e.INFO_LEVEL:return e.info(r);case e.NOTE_LEVEL:return e.note(r);case e.WARNING_LEVEL:return e.warning(r);case e.ERROR_LEVEL:return e.error(r);case e.ALERT_LEVEL:return e.alert(r);case e.FATAL_LEVEL:return e.fatal(r);default:throw new Error(""+t)}},e.trace=function(t){return void 0===t&&(t="trace"),"trace"===t?(void 0===e._trace&&(e._trace=new e(e.TRACE_LEVEL,t)),e._trace):new e(e.TRACE_LEVEL,t)},e.debug=function(t){return void 0===t&&(t="debug"),"debug"===t?(void 0===e._debug&&(e._debug=new e(e.DEBUG_LEVEL,t)),e._debug):new e(e.DEBUG_LEVEL,t)},e.info=function(t){return void 0===t&&(t="info"),"info"===t?(void 0===e._info&&(e._info=new e(e.INFO_LEVEL,t)),e._info):new e(e.INFO_LEVEL,t)},e.note=function(t){return void 0===t&&(t="note"),"note"===t?(void 0===e._note&&(e._note=new e(e.NOTE_LEVEL,t)),e._note):new e(e.NOTE_LEVEL,t)},e.warning=function(t){return void 0===t&&(t="warning"),"warning"===t?(void 0===e._warning&&(e._warning=new e(e.WARNING_LEVEL,t)),e._warning):new e(e.WARNING_LEVEL,t)},e.error=function(t){return void 0===t&&(t="error"),"error"===t?(void 0===e._error&&(e._error=new e(e.ERROR_LEVEL,t)),e._error):new e(e.ERROR_LEVEL,t)},e.alert=function(t){return void 0===t&&(t="alert"),"alert"===t?(void 0===e._alert&&(e._alert=new e(e.ALERT_LEVEL,t)),e._alert):new e(e.ALERT_LEVEL,t)},e.fatal=function(t){return void 0===t&&(t="fatal"),"fatal"===t?(void 0===e._fatal&&(e._fatal=new e(e.FATAL_LEVEL,t)),e._fatal):new e(e.FATAL_LEVEL,t)},e.TRACE_LEVEL=0,e.DEBUG_LEVEL=1,e.INFO_LEVEL=2,e.NOTE_LEVEL=3,e.WARNING_LEVEL=4,e.ERROR_LEVEL=5,e.ALERT_LEVEL=6,e.FATAL_LEVEL=7,e}(),S=function(){function e(e){this.buckets=new Array(e),this.gen4Hits=0,this.gen3Hits=0,this.gen2Hits=0,this.gen1Hits=0,this.misses=0}return e.prototype.get=function(e){if(0!==this.buckets.length){var t=Math.abs(m.hash(e))%this.buckets.length,r=this.buckets[t];if(void 0!==r){var n=r.gen4Key;if(void 0!==n&&m.equal(e,n)){var i=r.gen4Val;if(void 0!==i)return this.gen4Hits+=1,r.gen4Weight++,i;r.gen4Key=void 0}var o=r.gen3Key;if(void 0!==o&&m.equal(e,o)){var u=r.gen3Val;if(void 0!==u)return this.gen3Hits+=1,r.gen3Weight++>r.gen4Weight&&(this.buckets[t]=new x(r.gen3Key,r.gen3Val,r.gen3Weight,r.gen4Key,r.gen4Val,r.gen4Weight,r.gen2Key,r.gen2Val,r.gen2Weight,r.gen1Key,r.gen1Val,r.gen1Weight)),u;r.gen3Key=void 0}var s=r.gen2Key;if(void 0!==s&&m.equal(e,s)){var a=r.gen2Val;if(void 0!==a)return this.gen2Hits+=1,r.gen2Weight++>r.gen3Weight&&(this.buckets[t]=new x(r.gen4Key,r.gen4Val,r.gen4Weight,r.gen2Key,r.gen2Val,r.gen2Weight,r.gen3Key,r.gen3Val,r.gen3Weight,r.gen1Key,r.gen1Val,r.gen1Weight)),a;r.gen2Key=void 0}var p=r.gen1Key;if(void 0!==p&&m.equal(e,p)){var f=r.gen1Val;if(void 0!==f)return this.gen1Hits+=1,r.gen1Weight++>r.gen2Weight&&(this.buckets[t]=new x(r.gen4Key,r.gen4Val,r.gen4Weight,r.gen3Key,r.gen3Val,r.gen3Weight,r.gen1Key,r.gen1Val,r.gen1Weight,r.gen2Key,r.gen2Val,r.gen2Weight)),f;r.gen1Key=void 0}this.misses+=1}}},e.prototype.put=function(e,t){if(0===this.buckets.length)return t;var r=Math.abs(m.hash(e))%this.buckets.length,n=this.buckets[r]||new x,i=n.gen4Key;if(void 0!==i&&m.equal(e,i)){var o=n.gen4Val;if(void 0!==o)return this.gen4Hits+=1,n.gen4Weight++,o;n.gen4Key=void 0,i=void 0}var u=n.gen3Key;if(void 0!==u&&m.equal(e,u)){var s=n.gen3Val;if(void 0!==s)return this.gen3Hits+=1,n.gen3Weight++>n.gen4Weight&&(this.buckets[r]=new x(n.gen3Key,n.gen3Val,n.gen3Weight,n.gen4Key,n.gen4Val,n.gen4Weight,n.gen2Key,n.gen2Val,n.gen2Weight,n.gen1Key,n.gen1Val,n.gen1Weight)),s;n.gen3Key=void 0,u=void 0}var a=n.gen2Key;if(void 0!==a&&m.equal(e,a)){var p=n.gen2Val;if(void 0!==p)return this.gen2Hits+=1,n.gen2Weight++>n.gen3Weight&&(this.buckets[r]=new x(n.gen4Key,n.gen4Val,n.gen4Weight,n.gen2Key,n.gen2Val,n.gen2Weight,n.gen3Key,n.gen3Val,n.gen3Weight,n.gen1Key,n.gen1Val,n.gen1Weight)),p;n.gen2Key=void 0,a=void 0}var f=n.gen1Key;if(void 0!==f&&m.equal(e,f)){var c=n.gen1Val;if(void 0!==c)return this.gen1Hits+=1,n.gen1Weight++>n.gen2Weight&&(this.buckets[r]=new x(n.gen4Key,n.gen4Val,n.gen4Weight,n.gen3Key,n.gen3Val,n.gen3Weight,n.gen1Key,n.gen1Val,n.gen1Weight,n.gen2Key,n.gen2Val,n.gen2Weight)),c;n.gen1Key=void 0,f=void 0}return this.misses+=1,this.buckets[r]=void 0===i?new x(n.gen3Key,n.gen3Val,n.gen3Weight,n.gen2Key,n.gen2Val,n.gen2Weight,n.gen1Key,n.gen1Val,n.gen1Weight,e,t,1):void 0===u?new x(n.gen4Key,n.gen4Val,n.gen4Weight,n.gen2Key,n.gen2Val,n.gen2Weight,n.gen1Key,n.gen1Val,n.gen1Weight,e,t,1):void 0===a?new x(n.gen4Key,n.gen4Val,n.gen4Weight,n.gen3Key,n.gen3Val,n.gen3Weight,n.gen1Key,n.gen1Val,n.gen1Weight,e,t,1):void 0===f?new x(n.gen4Key,n.gen4Val,n.gen4Weight,n.gen3Key,n.gen3Val,n.gen3Weight,n.gen2Key,n.gen2Val,n.gen2Weight,e,t,1):new x(n.gen4Key,n.gen4Val,n.gen4Weight-1,n.gen3Key,n.gen3Val,n.gen3Weight-1,n.gen1Key,n.gen1Val,n.gen1Weight,e,t,1),t},e.prototype.remove=function(e){if(0!==this.buckets.length){var t=Math.abs(m.hash(e))%this.buckets.length,r=this.buckets[t];if(void 0!==r){var n=r.gen4Key;if(void 0!==n&&m.equal(e,n)){var i=r.gen4Val;return this.buckets[t]=new x(r.gen3Key,r.gen3Val,r.gen3Weight,r.gen2Key,r.gen2Val,r.gen2Weight,r.gen1Key,r.gen1Val,r.gen1Weight,void 0,void 0,0),i}var o=r.gen3Key;if(void 0!==o&&m.equal(e,o)){var u=r.gen3Val;return this.buckets[t]=new x(r.gen4Key,r.gen4Val,r.gen4Weight,r.gen2Key,r.gen2Val,r.gen2Weight,r.gen1Key,r.gen1Val,r.gen1Weight,void 0,void 0,0),u}var s=r.gen2Key;if(void 0!==s&&m.equal(e,s)){var a=r.gen2Val;return this.buckets[t]=new x(r.gen4Key,r.gen4Val,r.gen4Weight,r.gen3Key,r.gen3Val,r.gen3Weight,r.gen1Key,r.gen1Val,r.gen1Weight,void 0,void 0,0),a}var p=r.gen1Key;if(void 0!==p&&m.equal(e,p)){var f=r.gen1Val;return this.buckets[t]=new x(r.gen4Key,r.gen4Val,r.gen4Weight,r.gen3Key,r.gen3Val,r.gen3Weight,r.gen2Key,r.gen2Val,r.gen2Weight,void 0,void 0,0),f}}}},e.prototype.clear=function(){for(var e=0;e<this.buckets.length;e+=1)this.buckets[e]=void 0},e.prototype.hits=function(){return this.gen4Hits+this.gen3Hits+this.gen2Hits+this.gen1Hits},e.prototype.hitRatio=function(){var e=this.hits();return e/(e+this.misses)},e}(),x=function(e,t,r,n,i,o,u,s,a,p,f,c){void 0===r&&(r=0),void 0===o&&(o=0),void 0===a&&(a=0),void 0===c&&(c=0),this.gen4Key=e,this.gen4Val=t,this.gen4Weight=r,this.gen3Key=n,this.gen3Val=i,this.gen3Weight=o,this.gen2Key=u,this.gen2Val=s,this.gen2Weight=a,this.gen1Key=p,this.gen1Val=f,this.gen1Weight=c},T=function(){function e(e){this.buckets=new Array(e),this.gen4Hits=0,this.gen3Hits=0,this.gen2Hits=0,this.gen1Hits=0,this.misses=0}return e.prototype.put=function(e){if(0===this.buckets.length)return e;var t=Math.abs(m.hash(e))%this.buckets.length,r=this.buckets[t]||new q,n=r.gen4Val;if(void 0!==n&&m.equal(e,n))return this.gen4Hits+=1,r.gen4Weight++,n;var i=r.gen3Val;if(void 0!==i&&m.equal(e,i))return this.gen3Hits+=1,r.gen3Weight++>r.gen4Weight&&(this.buckets[t]=new q(r.gen3Val,r.gen3Weight,r.gen4Val,r.gen4Weight,r.gen2Val,r.gen2Weight,r.gen1Val,r.gen1Weight)),i;var o=r.gen2Val;if(void 0!==o&&m.equal(e,o))return this.gen2Hits+=1,r.gen2Weight++>r.gen3Weight&&(this.buckets[t]=new q(r.gen4Val,r.gen4Weight,r.gen2Val,r.gen2Weight,r.gen3Val,r.gen3Weight,r.gen1Val,r.gen1Weight)),o;var u=r.gen1Val;return void 0!==u&&m.equal(e,u)?(this.gen1Hits+=1,r.gen1Weight++>r.gen2Weight&&(this.buckets[t]=new q(r.gen4Val,r.gen4Weight,r.gen3Val,r.gen3Weight,r.gen1Val,r.gen1Weight,r.gen2Val,r.gen2Weight)),u):(this.misses+=1,this.buckets[t]=void 0===n?new q(r.gen3Val,r.gen3Weight,r.gen2Val,r.gen2Weight,r.gen1Val,r.gen1Weight,e,1):void 0===i?new q(r.gen4Val,r.gen4Weight,r.gen2Val,r.gen2Weight,r.gen1Val,r.gen1Weight,e,1):void 0===o?new q(r.gen4Val,r.gen4Weight,r.gen3Val,r.gen3Weight,r.gen1Val,r.gen1Weight,e,1):void 0===u?new q(r.gen4Val,r.gen4Weight,r.gen3Val,r.gen3Weight,r.gen2Val,r.gen2Weight,e,1):new q(r.gen4Val,r.gen4Weight-1,r.gen3Val,r.gen3Weight-1,r.gen1Val,r.gen1Weight,e,1),e)},e.prototype.remove=function(e){if(0===this.buckets.length)return!1;var t=Math.abs(m.hash(e))%this.buckets.length,r=this.buckets[t];if(void 0===r)return!1;var n=r.gen4Val;if(void 0!==n&&m.equal(e,n))return this.buckets[t]=new q(r.gen3Val,r.gen3Weight,r.gen2Val,r.gen2Weight,r.gen1Val,r.gen1Weight,void 0,0),!0;var i=r.gen3Val;if(void 0!==i&&m.equal(e,i))return this.buckets[t]=new q(r.gen4Val,r.gen4Weight,r.gen2Val,r.gen2Weight,r.gen1Val,r.gen1Weight,void 0,0),!0;var o=r.gen2Val;if(void 0!==o&&m.equal(e,o))return this.buckets[t]=new q(r.gen4Val,r.gen4Weight,r.gen3Val,r.gen3Weight,r.gen1Val,r.gen1Weight,void 0,0),!0;var u=r.gen1Val;return!(void 0===u||!m.equal(e,u))&&(this.buckets[t]=new q(r.gen4Val,r.gen4Weight,r.gen3Val,r.gen3Weight,r.gen2Val,r.gen2Weight,void 0,0),!0)},e.prototype.clear=function(){for(var e=0;e<this.buckets.length;e+=1)this.buckets[e]=void 0},Object.defineProperty(e.prototype,"hits",{get:function(){return this.gen4Hits+this.gen3Hits+this.gen2Hits+this.gen1Hits},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hitRatio",{get:function(){var e=this.hits;return e/(e+this.misses)},enumerable:!1,configurable:!0}),e}(),q=function(e,t,r,n,i,o,u,s){void 0===t&&(t=0),void 0===n&&(n=0),void 0===o&&(o=0),void 0===s&&(s=0),this.gen4Val=e,this.gen4Weight=t,this.gen3Val=r,this.gen3Weight=n,this.gen2Val=i,this.gen2Weight=o,this.gen1Val=u,this.gen1Weight=s},V=function(){},R=function(e){function t(t,r,n,i){var o=e.call(this)||this;return Object.defineProperty(o,"offset",{value:t,enumerable:!0,configurable:!0}),Object.defineProperty(o,"line",{value:r,enumerable:!0,configurable:!0}),Object.defineProperty(o,"column",{value:n,enumerable:!0,configurable:!0}),Object.defineProperty(o,"note",{value:i,enumerable:!0,configurable:!0}),o}return O(t,e),t.prototype.withNote=function(e){return this.note!==e?t.at(this.offset,this.line,this.column,e):this},t.prototype.min=function(e){return this.offset<=e.offset?this:e},t.prototype.max=function(e){return this.offset>=e.offset?this:e},Object.defineProperty(t.prototype,"start",{get:function(){return this},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"end",{get:function(){return this},enumerable:!1,configurable:!0}),t.prototype.union=function(e){if(e instanceof t)return this.offset===e.offset&&this.line===e.line&&this.column===e.column?this:U.from(this,e);if(e instanceof U){var r=this.min(e.start),n=this.max(e.end);return r===e.start&&n===e.end?e:U.from(r,n)}throw new Error(e.toString())},t.prototype.shift=function(e){var r=this.offset+(this.offset-e.offset),n=this.line+(this.line-e.line),i=this.column;return 1===n&&(i+=this.column-e.column),r===this.offset&&n===this.line&&i===this.column?this:t.at(r,n,i,this.note)},t.prototype.equals=function(e){return this===e||e instanceof t&&(this.offset===e.offset&&this.line===e.line&&this.column===e.column&&this.note===e.note)},t.prototype.hashCode=function(){return f.mash(f.mix(f.mix(f.mix(f.mix(v.hash(t),l.hash(this.offset)),l.hash(this.line)),l.hash(this.column)),d.hash(this.note)))},t.prototype.display=function(e){$.displayNumber(this.line,e),e=e.write(58),$.displayNumber(this.column,e),void 0!==this.note&&(e=e.write(58).write(32).write(this.note))},t.prototype.debug=function(e){e=e.write("Mark").write(".").write("at").write("("),$.debugNumber(this.offset,e),e=e.write(", "),$.debugNumber(this.line,e),e=e.write(", "),$.debugNumber(this.column,e),void 0!==this.note&&(e=e.write(", "),$.debugString(this.note,e)),e=e.write(")")},t.prototype.toString=function(){return $.display(this)},Object.defineProperty(t,"zero",{get:function(){return new t(0,1,1,void 0)},enumerable:!1,configurable:!0}),t.at=function(e,r,n,i){return new t(e,r,n,i)},P([i],t,"zero",null),t}(V),U=function(e){function t(t,r){var n=e.call(this)||this;return Object.defineProperty(n,"start",{value:t,enumerable:!0,configurable:!0}),Object.defineProperty(n,"end",{value:r,enumerable:!0,configurable:!0}),n}return O(t,e),t.prototype.union=function(e){if(e instanceof R){var r=this.start.min(e),n=this.end.max(e);return r===this.start&&n===this.end?this:t.from(r,n)}if(e instanceof t){r=this.start.min(e.start),n=this.end.max(e.end);return r===this.start&&n===this.end?this:t.from(r,n)}throw new Error(e.toString())},t.prototype.shift=function(e){var r=this.start.shift(e),n=this.end.shift(e);return r===this.start&&n===this.end?this:t.from(r,n)},t.prototype.equals=function(e){return this===e||e instanceof t&&(this.start.equals(e.start)&&this.end.equals(e.end))},t.prototype.hashCode=function(){return f.mash(f.mix(f.mix(v.hash(t),this.start.hashCode()),this.end.hashCode()))},t.prototype.display=function(e){void 0!==this.start.note&&(e=e.write(this.start.note).write(58).write(32)),$.displayNumber(this.start.line,e),e=e.write(58),$.displayNumber(this.start.column,e),e=e.write(45),$.displayNumber(this.end.line,e),e=e.write(58),$.displayNumber(this.end.column,e),void 0!==this.end.note&&(e=e.write(58).write(32).write(this.end.note))},t.prototype.debug=function(e){e=e.write("Span").write(".").write("from").write("("),this.start.debug(e),e=e.write(", "),this.end.debug(e),e=e.write(")")},t.prototype.toString=function(){return $.display(this)},t.from=function(e,r){if(e.offset>r.offset){var n=e;e=r,r=n}return new t(e,r)},t}(V),F={reset:function(e){e.settings.isStyled()&&(e=e.write(27).write(91).write(48).write(109))},bold:function(e){e.settings.isStyled()&&(e=e.write(27).write(91).write(49).write(109))},faint:function(e){e.settings.isStyled()&&(e=e.write(27).write(91).write(50).write(109))},black:function(e){e.settings.isStyled()&&(e=e.write(27).write(91).write(48).write(59).write(51).write(48).write(109))},red:function(e){e.settings.isStyled()&&(e=e.write(27).write(91).write(48).write(59).write(51).write(49).write(109))},green:function(e){e.settings.isStyled()&&(e=e.write(27).write(91).write(48).write(59).write(51).write(50).write(109))},yellow:function(e){e.settings.isStyled()&&(e=e.write(27).write(91).write(48).write(59).write(51).write(51).write(109))},blue:function(e){e.settings.isStyled()&&(e=e.write(27).write(91).write(48).write(59).write(51).write(52).write(109))},magenta:function(e){e.settings.isStyled()&&(e=e.write(27).write(91).write(48).write(59).write(51).write(53).write(109))},cyan:function(e){e.settings.isStyled()&&(e=e.write(27).write(91).write(48).write(59).write(51).write(54).write(109))},gray:function(e){e.settings.isStyled()&&(e=e.write(27).write(91).write(48).write(59).write(51).write(55).write(109))},blackBold:function(e){e.settings.isStyled()&&(e=e.write(27).write(91).write(49).write(59).write(51).write(48).write(109))},redBold:function(e){e.settings.isStyled()&&(e=e.write(27).write(91).write(49).write(59).write(51).write(49).write(109))},greenBold:function(e){e.settings.isStyled()&&(e=e.write(27).write(91).write(49).write(59).write(51).write(50).write(109))},yellowBold:function(e){e.settings.isStyled()&&(e=e.write(27).write(91).write(49).write(59).write(51).write(51).write(109))},blueBold:function(e){e.settings.isStyled()&&(e=e.write(27).write(91).write(49).write(59).write(51).write(52).write(109))},magentaBold:function(e){e.settings.isStyled()&&(e=e.write(27).write(91).write(49).write(59).write(51).write(53).write(109))},cyanBold:function(e){e.settings.isStyled()&&(e=e.write(27).write(91).write(49).write(59).write(51).write(54).write(109))},grayBold:function(e){e.settings.isStyled()&&(e=e.write(27).write(91).write(49).write(59).write(51).write(55).write(109))}},z=function(e){function t(r){var n=e.call(this,r)||this;return Object.setPrototypeOf(n,t.prototype),n}return O(t,e),t}(Error),N=function(){function e(e,t,r,n){Object.defineProperty(this,"lineSeparator",{value:e,enumerable:!0}),Object.defineProperty(this,"pretty",{value:t,enumerable:!0}),Object.defineProperty(this,"styled",{value:r,enumerable:!0}),Object.defineProperty(this,"precision",{value:n,enumerable:!0})}return e.prototype.withLineSeparator=function(e){return this.copy(e,this.pretty,this.styled,this.precision)},e.prototype.isPretty=function(){return this.pretty},e.prototype.asPretty=function(e){return this.copy(this.lineSeparator,e,this.styled,this.precision)},e.prototype.isStyled=function(){return this.styled},e.prototype.asStyled=function(e){return this.copy(this.lineSeparator,this.pretty,e,this.precision)},e.prototype.withPrecision=function(e){return this.copy(this.lineSeparator,this.pretty,this.styled,e)},e.prototype.copy=function(t,r,n,i){return e.create(t,r,n,i)},e.prototype.canEqual=function(t){return t instanceof e},e.prototype.equals=function(t){return this===t||t instanceof e&&(t.canEqual(this)&&this.lineSeparator===t.lineSeparator&&this.pretty===t.pretty&&this.styled===t.styled&&this.precision===t.precision)},e.prototype.hashCode=function(){return f.mash(f.mix(f.mix(f.mix(f.mix(v.hash(e),d.hash(this.lineSeparator)),c.hash(this.pretty)),c.hash(this.styled)),l.hash(this.precision)))},e.prototype.debug=function(e){e=e.write("OutputSettings").write(46),e=(e=this.pretty||this.styled?this.pretty&&!this.styled?e.write("pretty"):!this.pretty&&this.styled?e.write("styled"):e.write("prettyStyled"):e.write("standard")).write(40).write(41),this.lineSeparator!==$.lineSeparator&&(e=e.write(46).write("lineSeparator").write(40).display(this.lineSeparator).write(41)),-1!==this.precision&&(e=e.write(46).write("precision").write(40).display(this.precision).write(41))},e.prototype.toString=function(){return $.debug(this)},e.standard=function(){return new e($.lineSeparator,!1,!1,-1)},e.pretty=function(){return new e($.lineSeparator,!0,!1,-1)},e.styled=function(){return new e($.lineSeparator,!1,!0,-1)},e.prettyStyled=function(){return new e($.lineSeparator,!0,!0,-1)},e.create=function(t,r,n,i){return"string"!=typeof t&&(t=$.lineSeparator),"boolean"!=typeof r&&(r=!1),"boolean"!=typeof n&&(n=!1),"number"!=typeof i&&(i=-1),t===$.lineSeparator&&-1===i?r||n?r&&!n?e.pretty():!r&&n?e.styled():e.prettyStyled():e.standard():new e(t,r,n,i)},e.fromInit=function(t){return e.create(t.lineSeparator,t.isPretty,t.isStyled,t.precision)},e.fromAny=function(t){return t instanceof e?t:"object"==typeof t&&null!==t?e.fromInit(t):e.standard()},P([i],e,"standard",null),P([i],e,"pretty",null),P([i],e,"styled",null),P([i],e,"prettyStyled",null),e}(),K=function(){function e(){}return e.prototype.writeln=function(e){return"string"==typeof e&&this.write(e),this.write(this.settings.lineSeparator)},e.prototype.display=function(e){return $.display(e,this),this},e.prototype.debug=function(e){return $.debug(e,this),this},e.prototype.flush=function(){return this},e.prototype.push=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=e.length,n=0;n<r;n+=1)this.write(e[n])},e.prototype.trap=function(){throw new z},e.prototype.clone=function(){throw new Error},e.full=function(){return new ue(N.standard())},e.done=function(){return new se(N.standard())},e.error=function(e){return new ae(e,N.standard())},P([i],e,"full",null),P([i],e,"done",null),e}(),M=function(e){function t(r){var n=e.call(this,r)||this;return Object.setPrototypeOf(n,t.prototype),n}return O(t,e),t}(Error),L=function(){function e(e){Object.defineProperty(this,"stripped",{value:e,enumerable:!0})}return e.prototype.isStripped=function(){return this.stripped},e.prototype.asStripped=function(e){return this.copy(e)},e.prototype.copy=function(t){return e.create(t)},e.prototype.canEqual=function(t){return t instanceof e},e.prototype.equals=function(t){return this===t||t instanceof e&&(t.canEqual(this)&&this.stripped===t.stripped)},e.prototype.hashCode=function(){return f.mash(f.mix(v.hash(e),c.hash(this.stripped)))},e.prototype.debug=function(e){e=e.write("InputSettings").write(46),e=(e=this.stripped?e.write("stripped"):e.write("standard")).write(40).write(41)},e.prototype.toString=function(){return $.debug(this)},e.standard=function(){return new e(!1)},e.stripped=function(){return new e(!0)},e.create=function(t){return t?e.stripped():e.standard()},e.fromAny=function(t){return t instanceof e?t:"object"==typeof t&&null!==t?e.create(t.isStripped):e.standard()},P([i],e,"standard",null),P([i],e,"stripped",null),e}(),B=function(){function e(){}return e.prototype.trap=function(){throw new M},e.empty=function(){return new ee(void 0,R.zero,L.standard())},e.done=function(){return new te(void 0,R.zero,L.standard())},e.error=function(e){return new W(e,void 0,R.zero,L.standard())},P([i],e,"empty",null),P([i],e,"done",null),e}(),W=function(e){function t(t,r,n,i){var o=e.call(this)||this;return Object.defineProperty(o,"error",{value:t,enumerable:!0}),Object.defineProperty(o,"id",{value:r,enumerable:!0}),Object.defineProperty(o,"mark",{value:n,enumerable:!0}),Object.defineProperty(o,"settings",{value:i,enumerable:!0}),o}return O(t,e),t.prototype.isCont=function(){return!1},t.prototype.isEmpty=function(){return!1},t.prototype.isDone=function(){return!1},t.prototype.isError=function(){return!0},t.prototype.isPart=function(){return!1},t.prototype.asPart=function(e){return this},t.prototype.head=function(){throw new M},t.prototype.step=function(){return new t(new M("error step"),this.id,this.mark,this.settings)},t.prototype.trap=function(){return this.error},t.prototype.seek=function(e){return new t(new M("error seek"),this.id,this.mark,this.settings)},t.prototype.withId=function(e){return new t(this.error,e,this.mark,this.settings)},t.prototype.withMark=function(e){return new t(this.error,this.id,e,this.settings)},Object.defineProperty(t.prototype,"offset",{get:function(){return this.mark.offset},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"line",{get:function(){return this.mark.line},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"column",{get:function(){return this.mark.column},enumerable:!1,configurable:!0}),t.prototype.withSettings=function(e){return e=L.fromAny(e),new t(this.error,this.id,this.mark,e)},t.prototype.clone=function(){return this},t}(B),H=function(e){function t(t,r,n,i,o,u,s,a){var p=e.call(this)||this;return Object.defineProperty(p,"string",{value:t,enumerable:!0}),Object.defineProperty(p,"index",{value:s,enumerable:!0,configurable:!0}),Object.defineProperty(p,"part",{value:a,enumerable:!0,configurable:!0}),Object.defineProperty(p,"id",{value:r,enumerable:!0,configurable:!0}),Object.defineProperty(p,"offset",{value:n,enumerable:!0,configurable:!0}),Object.defineProperty(p,"line",{value:i,enumerable:!0,configurable:!0}),Object.defineProperty(p,"column",{value:o,enumerable:!0,configurable:!0}),Object.defineProperty(p,"settings",{value:u,enumerable:!0,configurable:!0}),p}return O(t,e),t.prototype.isCont=function(){return this.index<this.string.length},t.prototype.isEmpty=function(){return this.part&&this.index>=this.string.length},t.prototype.isDone=function(){return!this.part&&this.index>=this.string.length},t.prototype.isError=function(){return!1},t.prototype.isPart=function(){return this.part},t.prototype.asPart=function(e){return Object.defineProperty(this,"part",{value:e,enumerable:!0,configurable:!0}),this},t.prototype.head=function(){var e=this.string,t=this.index;if(t<e.length){var r=e.codePointAt(t);return void 0!==r?r:e.charCodeAt(t)}throw new M},t.prototype.step=function(){var e=this.string,t=this.index;if(t<e.length){var r=e.codePointAt(t);return Object.defineProperty(this,"index",{value:e.offsetByCodePoints(t,1),enumerable:!0,configurable:!0}),Object.defineProperty(this,"offset",{value:this.offset+(this.index-t),enumerable:!0,configurable:!0}),10===r?(Object.defineProperty(this,"line",{value:this.line+1,enumerable:!0,configurable:!0}),Object.defineProperty(this,"column",{value:1,enumerable:!0,configurable:!0})):Object.defineProperty(this,"column",{value:this.column+1,enumerable:!0,configurable:!0}),this}var n=new M("invalid step");return new W(n,this.id,this.mark,this.settings)},t.prototype.seek=function(e){if(void 0!==e){var t=this.index+(e.offset-this.offset);if(0<=t&&t<=this.string.length)return Object.defineProperty(this,"index",{value:t,enumerable:!0,configurable:!0}),Object.defineProperty(this,"offset",{value:e.offset,enumerable:!0,configurable:!0}),Object.defineProperty(this,"line",{value:e.line,enumerable:!0,configurable:!0}),Object.defineProperty(this,"column",{value:e.column,enumerable:!0,configurable:!0}),this;var r=new M("invalid seek to "+e);return new W(r,this.id,this.mark,this.settings)}return Object.defineProperty(this,"index",{value:0,enumerable:!0,configurable:!0}),Object.defineProperty(this,"offset",{value:0,enumerable:!0,configurable:!0}),Object.defineProperty(this,"line",{value:1,enumerable:!0,configurable:!0}),Object.defineProperty(this,"column",{value:1,enumerable:!0,configurable:!0}),this},t.prototype.withId=function(e){return Object.defineProperty(this,"id",{value:e,enumerable:!0,configurable:!0}),this},Object.defineProperty(t.prototype,"mark",{get:function(){return R.at(this.offset,this.line,this.column)},enumerable:!1,configurable:!0}),t.prototype.withMark=function(e){return Object.defineProperty(this,"offset",{value:e.offset,enumerable:!0,configurable:!0}),Object.defineProperty(this,"line",{value:e.line,enumerable:!0,configurable:!0}),Object.defineProperty(this,"column",{value:e.column,enumerable:!0,configurable:!0}),this},t.prototype.withSettings=function(e){return e=L.fromAny(e),Object.defineProperty(this,"settings",{value:e,enumerable:!0,configurable:!0}),this},t.prototype.clone=function(){return new t(this.string,this.id,this.offset,this.line,this.column,this.settings,this.index,this.part)},t.create=function(e){return new t(e,void 0,0,1,1,L.standard(),0,!1)},t}(B),_=function(e){function t(t,r){var n=e.call(this)||this;return Object.defineProperty(n,"string",{value:t,enumerable:!0,configurable:!0}),Object.defineProperty(n,"settings",{value:r,enumerable:!0,configurable:!0}),n}return O(t,e),t.prototype.isCont=function(){return!0},t.prototype.isFull=function(){return!1},t.prototype.isDone=function(){return!1},t.prototype.isError=function(){return!1},t.prototype.isPart=function(){return!1},t.prototype.asPart=function(e){return this},t.prototype.write=function(e){if("number"==typeof e)if(e>=0&&e<=55295||e>=57344&&e<=65535)e=String.fromCharCode(e);else if(e>=65536&&e<=1114111){var t=e-65536;e=String.fromCharCode(55296|t>>>10,56320|1023&t)}else e="�";return Object.defineProperty(this,"string",{value:this.string+e,enumerable:!0,configurable:!0}),this},t.prototype.writeln=function(e){return void 0===e?(Object.defineProperty(this,"string",{value:this.string.concat(this.settings.lineSeparator),enumerable:!0,configurable:!0}),this):(Object.defineProperty(this,"string",{value:this.string.concat(e).concat(this.settings.lineSeparator),enumerable:!0,configurable:!0}),this)},t.prototype.withSettings=function(e){return e=N.fromAny(e),Object.defineProperty(this,"settings",{value:e,enumerable:!0,configurable:!0}),this},t.prototype.bind=function(){return this.string},t.prototype.clone=function(){return new t(this.string,this.settings)},t.prototype.toString=function(){return this.string},t}(K),G=function(e){function t(r){var n=e.call(this,r)||this;return Object.setPrototypeOf(n,t.prototype),n}return O(t,e),t}(Error),Q=function(){function e(){}return e.prototype.isCont=function(){return!0},e.prototype.isDone=function(){return!1},e.prototype.isError=function(){return!1},e.prototype.feed=function(e){throw new G},e.prototype.fork=function(e){return this},e.prototype.bind=function(){throw new G},e.prototype.trap=function(){throw new G},e.prototype.asDone=function(){throw new G},e.prototype.asError=function(){throw new G},e.prototype.andThen=function(e){return new we(this,e)},e.end=function(){return new be},e.done=function(e){return new me(e)},e.error=function(e){return new ge(e)},P([i],e,"end",null),e}(),Z=function(e){function t(t,r,n){void 0===n&&(n=0);var i=e.call(this)||this;return Object.defineProperty(i,"value",{value:t,enumerable:!0}),Object.defineProperty(i,"input",{value:r,enumerable:!0}),Object.defineProperty(i,"index",{value:n,enumerable:!0}),i}return O(t,e),t.prototype.feed=function(e){return new t(e,""+e)},t.prototype.pull=function(e){return t.write(e,this.value,this.input,this.index)},t.write=function(e,r,n,i){void 0===i&&(i=0);for(var o=n.length;i<o&&e.isCont();){var u=n.codePointAt(i);void 0===u&&(u=n.charCodeAt(i)),e=e.write(u),i=n.offsetByCodePoints(i,1)}return i===o?Q.done(r):e.isDone()?Q.error(new G("truncated")):e.isError()?Q.error(e.trap()):new t(r,n,i)},t}(Q),X={stringInput:function(e){return H.create(e)},stringOutput:function(e,t){return void 0===t&&"string"!=typeof e?(t=e,e=""):"string"!=typeof e&&(e=""),t=N.fromAny(t),new _(e,t)},stringWriter:function(e){return void 0===e?new Z(void 0,""):new Z(e,""+e)},writeString:function(e,t){return Z.write(t,void 0,""+e)},isAlpha:function(e){return e>=65&&e<=90||e>=97&&e<=122},isDigit:function(e){return e>=48&&e<=57},isSpace:function(e){return 32===e||9===e},isNewline:function(e){return 10===e||13===e},isWhitespace:function(e){return X.isSpace(e)||X.isNewline(e)}},$={};Object.defineProperty($,"lineSeparator",{get:function(){var e;if("undefined"!=typeof global&&"function"==typeof global.require){var t=global.require("os");"object"==typeof t&&null!==t&&(e=t.EOL)}return void 0===e&&(e="\n"),Object.defineProperty($,"lineSeparator",{value:e,enumerable:!0,configurable:!0}),e},enumerable:!0,configurable:!0}),$.display=function(e,t){var r=!(t instanceof K);if(void 0===e){if(void 0===t)return"undefined";t instanceof K||(t=X.stringOutput(t)),t=t.write("undefined")}else if(null===e){if(void 0===t)return"null";t instanceof K||(t=X.stringOutput(t)),t=t.write("null")}else if("number"==typeof e){if(void 0===t)return""+e;t instanceof K||(t=X.stringOutput(t)),$.displayNumber(e,t)}else if("string"==typeof e){if(void 0===t)return e;t instanceof K||(t=X.stringOutput(t)),t=t.write(e)}else if("function"==typeof e.display)t instanceof K||(t=X.stringOutput(t)),e.display(t);else{if(void 0===t)return""+e;t instanceof K||(t=X.stringOutput(t)),t=t.write(""+e)}if(r)return t.toString()},$.debug=function(e,t){var r=!(t instanceof K);if(void 0===e){if(void 0===t)return"undefined";t instanceof K||(t=X.stringOutput(t)),t=t.write("undefined")}else if(null===e){if(void 0===t)return"null";t instanceof K||(t=X.stringOutput(t)),t=t.write("null")}else if("number"==typeof e){if(void 0===t)return""+e;t instanceof K||(t=X.stringOutput(t)),$.debugNumber(e,t)}else if("string"==typeof e)t instanceof K||(t