fable 3.1.21 → 3.1.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/fable.min.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";function _defineProperty2(e,t,r){return(t=_toPropertyKey2(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _toPropertyKey2(e){var t=_toPrimitive2(e,"string");return"symbol"==typeof t?t:String(t)}function _toPrimitive2(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Fable=e()}}((function(){return function e(t,r,n){function s(o,a){if(!r[o]){if(!t[o]){var l="function"==typeof require&&require;if(!a&&l)return l(o,!0);if(i)return i(o,!0);var u=new Error("Cannot find module '"+o+"'");throw u.code="MODULE_NOT_FOUND",u}var c=r[o]={exports:{}};t[o][0].call(c.exports,(function(e){return s(t[o][1][e]||e)}),c,c.exports,e,t,r,n)}return r[o].exports}for(var i="function"==typeof require&&require,o=0;o<n.length;o++)s(n[o]);return s}({1:[function(e,t,r){var n=e("async.util.eachoflimit"),s=e("async.util.withoutindex");t.exports=function(e,t,r,i){return n(t)(e,s(r),i)}},{"async.util.eachoflimit":3,"async.util.withoutindex":14}],2:[function(e,t,r){t.exports=function(e){return function t(r){function n(){return e.length&&e[r].apply(null,arguments),n.next()}return n.next=function(){return r<e.length-1?t(r+1):null},n}(0)}},{}],3:[function(e,t,r){var n=e("async.util.once"),s=e("async.util.noop"),i=e("async.util.onlyonce"),o=e("async.util.keyiterator");t.exports=function(e){return function(t,r,a){a=n(a||s);var l=o(t=t||[]);if(e<=0)return a(null);var u=!1,c=0,h=!1;!function n(){if(u&&c<=0)return a(null);for(;c<e&&!h;){var s=l();if(null===s)return u=!0,void(c<=0&&a(null));c+=1,r(t[s],s,i((function(e){c-=1,e?(a(e),h=!0):n()})))}}()}}},{"async.util.keyiterator":7,"async.util.noop":9,"async.util.once":10,"async.util.onlyonce":11}],4:[function(e,t,r){var n=e("async.util.setimmediate"),s=e("async.util.restparam");t.exports=function(e){return s((function(t){var r=t.pop();t.push((function(){var e=arguments;s?n((function(){r.apply(null,e)})):r.apply(null,e)}));var s=!0;e.apply(this,t),s=!1}))}},{"async.util.restparam":12,"async.util.setimmediate":13}],5:[function(e,t,r){t.exports=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},{}],6:[function(e,t,r){var n=e("async.util.isarray");t.exports=function(e){return n(e)||"number"==typeof e.length&&e.length>=0&&e.length%1==0}},{"async.util.isarray":5}],7:[function(e,t,r){var n=e("async.util.keys"),s=e("async.util.isarraylike");t.exports=function(e){var t,r,i=-1;return s(e)?(t=e.length,function(){return++i<t?i:null}):(r=n(e),t=r.length,function(){return++i<t?r[i]:null})}},{"async.util.isarraylike":6,"async.util.keys":8}],8:[function(e,t,r){t.exports=Object.keys||function(e){var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);return t}},{}],9:[function(e,t,r){t.exports=function(){}},{}],10:[function(e,t,r){t.exports=function(e){return function(){null!==e&&(e.apply(this,arguments),e=null)}}},{}],11:[function(e,t,r){t.exports=function(e){return function(){if(null===e)throw new Error("Callback was already called.");e.apply(this,arguments),e=null}}},{}],12:[function(e,t,r){t.exports=function(e,t){return t=null==t?e.length-1:+t,function(){for(var r=Math.max(arguments.length-t,0),n=new Array(r),s=0;s<r;s++)n[s]=arguments[s+t];switch(t){case 0:return e.call(this,n);case 1:return e.call(this,arguments[0],n)}}}},{}],13:[function(e,t,r){(function(e){(function(){var r="function"==typeof e&&e,n=function(e){setTimeout(e,0)};t.exports=function(e){return(r||n)(e)}}).call(this)}).call(this,e("timers").setImmediate)},{timers:126}],14:[function(e,t,r){t.exports=function(e){return function(t,r,n){return e(t,n)}}},{}],15:[function(e,t,r){var n=e("async.util.once"),s=e("async.util.noop"),i=e("async.util.isarray"),o=e("async.util.restparam"),a=e("async.util.ensureasync"),l=e("async.iterator");t.exports=function(e,t){if(t=n(t||s),!i(e))return t(new Error("First argument to waterfall must be an array of functions"));if(!e.length)return t();!function e(r){return o((function(n,s){if(n)t.apply(null,[n].concat(s));else{var i=r.next();i?s.push(e(i)):s.push(t),a(r).apply(null,s)}}))}(l(e))()}},{"async.iterator":2,"async.util.ensureasync":4,"async.util.isarray":5,"async.util.noop":9,"async.util.once":10,"async.util.restparam":12}],16:[function(e,t,r){r.byteLength=function(e){var t=l(e),r=t[0],n=t[1];return 3*(r+n)/4-n},r.toByteArray=function(e){var t,r,n=l(e),o=n[0],a=n[1],u=new i(function(e,t,r){return 3*(t+r)/4-r}(0,o,a)),c=0,h=a>0?o-4:o;for(r=0;r<h;r+=4)t=s[e.charCodeAt(r)]<<18|s[e.charCodeAt(r+1)]<<12|s[e.charCodeAt(r+2)]<<6|s[e.charCodeAt(r+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;2===a&&(t=s[e.charCodeAt(r)]<<2|s[e.charCodeAt(r+1)]>>4,u[c++]=255&t);1===a&&(t=s[e.charCodeAt(r)]<<10|s[e.charCodeAt(r+1)]<<4|s[e.charCodeAt(r+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t);return u},r.fromByteArray=function(e){for(var t,r=e.length,s=r%3,i=[],o=16383,a=0,l=r-s;a<l;a+=o)i.push(u(e,a,a+o>l?l:a+o));1===s?(t=e[r-1],i.push(n[t>>2]+n[t<<4&63]+"==")):2===s&&(t=(e[r-2]<<8)+e[r-1],i.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return i.join("")};for(var n=[],s=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)n[a]=o[a],s[o.charCodeAt(a)]=a;function l(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function u(e,t,r){for(var s,i,o=[],a=t;a<r;a+=3)s=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(n[(i=s)>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return o.join("")}s["-".charCodeAt(0)]=62,s["_".charCodeAt(0)]=63},{}],17:[function(e,t,r){!function(e){var r,n=1e6,s=1e6,i="[big.js] ",o=i+"Invalid ",a=o+"decimal places",l=o+"rounding mode",u=i+"Division by zero",c={},h=void 0,f=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function p(e,t,r,n){var s=e.c;if(r===h&&(r=e.constructor.RM),0!==r&&1!==r&&2!==r&&3!==r)throw Error(l);if(t<1)n=3===r&&(n||!!s[0])||0===t&&(1===r&&s[0]>=5||2===r&&(s[0]>5||5===s[0]&&(n||s[1]!==h))),s.length=1,n?(e.e=e.e-t+1,s[0]=1):s[0]=e.e=0;else if(t<s.length){if(n=1===r&&s[t]>=5||2===r&&(s[t]>5||5===s[t]&&(n||s[t+1]!==h||1&s[t-1]))||3===r&&(n||!!s[0]),s.length=t,n)for(;++s[--t]>9;)if(s[t]=0,0===t){++e.e,s.unshift(1);break}for(t=s.length;!s[--t];)s.pop()}return e}function d(e,t,r){var n=e.e,s=e.c.join(""),i=s.length;if(t)s=s.charAt(0)+(i>1?"."+s.slice(1):"")+(n<0?"e":"e+")+n;else if(n<0){for(;++n;)s="0"+s;s="0."+s}else if(n>0)if(++n>i)for(n-=i;n--;)s+="0";else n<i&&(s=s.slice(0,n)+"."+s.slice(n));else i>1&&(s=s.charAt(0)+"."+s.slice(1));return e.s<0&&r?"-"+s:s}c.abs=function(){var e=new this.constructor(this);return e.s=1,e},c.cmp=function(e){var t,r=this,n=r.c,s=(e=new r.constructor(e)).c,i=r.s,o=e.s,a=r.e,l=e.e;if(!n[0]||!s[0])return n[0]?i:s[0]?-o:0;if(i!=o)return i;if(t=i<0,a!=l)return a>l^t?1:-1;for(o=(a=n.length)<(l=s.length)?a:l,i=-1;++i<o;)if(n[i]!=s[i])return n[i]>s[i]^t?1:-1;return a==l?0:a>l^t?1:-1},c.div=function(e){var t=this,r=t.constructor,s=t.c,i=(e=new r(e)).c,o=t.s==e.s?1:-1,l=r.DP;if(l!==~~l||l<0||l>n)throw Error(a);if(!i[0])throw Error(u);if(!s[0])return e.s=o,e.c=[e.e=0],e;var c,f,d,g,y,m=i.slice(),b=c=i.length,v=s.length,S=s.slice(0,c),P=S.length,T=e,w=T.c=[],x=0,E=l+(T.e=t.e-e.e)+1;for(T.s=o,o=E<0?0:E,m.unshift(0);P++<c;)S.push(0);do{for(d=0;d<10;d++){if(c!=(P=S.length))g=c>P?1:-1;else for(y=-1,g=0;++y<c;)if(i[y]!=S[y]){g=i[y]>S[y]?1:-1;break}if(!(g<0))break;for(f=P==c?i:m;P;){if(S[--P]<f[P]){for(y=P;y&&!S[--y];)S[y]=9;--S[y],S[P]+=10}S[P]-=f[P]}for(;!S[0];)S.shift()}w[x++]=g?d:++d,S[0]&&g?S[P]=s[b]||0:S=[s[b]]}while((b++<v||S[0]!==h)&&o--);return w[0]||1==x||(w.shift(),T.e--,E--),x>E&&p(T,E,r.RM,S[0]!==h),T},c.eq=function(e){return 0===this.cmp(e)},c.gt=function(e){return this.cmp(e)>0},c.gte=function(e){return this.cmp(e)>-1},c.lt=function(e){return this.cmp(e)<0},c.lte=function(e){return this.cmp(e)<1},c.minus=c.sub=function(e){var t,r,n,s,i=this,o=i.constructor,a=i.s,l=(e=new o(e)).s;if(a!=l)return e.s=-l,i.plus(e);var u=i.c.slice(),c=i.e,h=e.c,f=e.e;if(!u[0]||!h[0])return h[0]?e.s=-l:u[0]?e=new o(i):e.s=1,e;if(a=c-f){for((s=a<0)?(a=-a,n=u):(f=c,n=h),n.reverse(),l=a;l--;)n.push(0);n.reverse()}else for(r=((s=u.length<h.length)?u:h).length,a=l=0;l<r;l++)if(u[l]!=h[l]){s=u[l]<h[l];break}if(s&&(n=u,u=h,h=n,e.s=-e.s),(l=(r=h.length)-(t=u.length))>0)for(;l--;)u[t++]=0;for(l=t;r>a;){if(u[--r]<h[r]){for(t=r;t&&!u[--t];)u[t]=9;--u[t],u[r]+=10}u[r]-=h[r]}for(;0===u[--l];)u.pop();for(;0===u[0];)u.shift(),--f;return u[0]||(e.s=1,u=[f=0]),e.c=u,e.e=f,e},c.mod=function(e){var t,r=this,n=r.constructor,s=r.s,i=(e=new n(e)).s;if(!e.c[0])throw Error(u);return r.s=e.s=1,t=1==e.cmp(r),r.s=s,e.s=i,t?new n(r):(s=n.DP,i=n.RM,n.DP=n.RM=0,r=r.div(e),n.DP=s,n.RM=i,this.minus(r.times(e)))},c.neg=function(){var e=new this.constructor(this);return e.s=-e.s,e},c.plus=c.add=function(e){var t,r,n,s=this,i=s.constructor;if(e=new i(e),s.s!=e.s)return e.s=-e.s,s.minus(e);var o=s.e,a=s.c,l=e.e,u=e.c;if(!a[0]||!u[0])return u[0]||(a[0]?e=new i(s):e.s=s.s),e;if(a=a.slice(),t=o-l){for(t>0?(l=o,n=u):(t=-t,n=a),n.reverse();t--;)n.push(0);n.reverse()}for(a.length-u.length<0&&(n=u,u=a,a=n),t=u.length,r=0;t;a[t]%=10)r=(a[--t]=a[t]+u[t]+r)/10|0;for(r&&(a.unshift(r),++l),t=a.length;0===a[--t];)a.pop();return e.c=a,e.e=l,e},c.pow=function(e){var t=this,r=new t.constructor("1"),n=r,i=e<0;if(e!==~~e||e<-1e6||e>s)throw Error(o+"exponent");for(i&&(e=-e);1&e&&(n=n.times(t)),e>>=1;)t=t.times(t);return i?r.div(n):n},c.prec=function(e,t){if(e!==~~e||e<1||e>n)throw Error(o+"precision");return p(new this.constructor(this),e,t)},c.round=function(e,t){if(e===h)e=0;else if(e!==~~e||e<-n||e>n)throw Error(a);return p(new this.constructor(this),e+this.e+1,t)},c.sqrt=function(){var e,t,r,n=this,s=n.constructor,o=n.s,a=n.e,l=new s("0.5");if(!n.c[0])return new s(n);if(o<0)throw Error(i+"No square root");0===(o=Math.sqrt(+d(n,!0,!0)))||o===1/0?((t=n.c.join("")).length+a&1||(t+="0"),a=((a+1)/2|0)-(a<0||1&a),e=new s(((o=Math.sqrt(t))==1/0?"5e":(o=o.toExponential()).slice(0,o.indexOf("e")+1))+a)):e=new s(o+""),a=e.e+(s.DP+=4);do{r=e,e=l.times(r.plus(n.div(r)))}while(r.c.slice(0,a).join("")!==e.c.slice(0,a).join(""));return p(e,(s.DP-=4)+e.e+1,s.RM)},c.times=c.mul=function(e){var t,r=this,n=r.constructor,s=r.c,i=(e=new n(e)).c,o=s.length,a=i.length,l=r.e,u=e.e;if(e.s=r.s==e.s?1:-1,!s[0]||!i[0])return e.c=[e.e=0],e;for(e.e=l+u,o<a&&(t=s,s=i,i=t,u=o,o=a,a=u),t=new Array(u=o+a);u--;)t[u]=0;for(l=a;l--;){for(a=0,u=o+l;u>l;)a=t[u]+i[l]*s[u-l-1]+a,t[u--]=a%10,a=a/10|0;t[u]=a}for(a?++e.e:t.shift(),l=t.length;!t[--l];)t.pop();return e.c=t,e},c.toExponential=function(e,t){var r=this,s=r.c[0];if(e!==h){if(e!==~~e||e<0||e>n)throw Error(a);for(r=p(new r.constructor(r),++e,t);r.c.length<e;)r.c.push(0)}return d(r,!0,!!s)},c.toFixed=function(e,t){var r=this,s=r.c[0];if(e!==h){if(e!==~~e||e<0||e>n)throw Error(a);for(e=e+(r=p(new r.constructor(r),e+r.e+1,t)).e+1;r.c.length<e;)r.c.push(0)}return d(r,!1,!!s)},c.toJSON=c.toString=function(){var e=this,t=e.constructor;return d(e,e.e<=t.NE||e.e>=t.PE,!!e.c[0])},c.toNumber=function(){var e=+d(this,!0,!0);if(!0===this.constructor.strict&&!this.eq(e.toString()))throw Error(i+"Imprecise conversion");return e},c.toPrecision=function(e,t){var r=this,s=r.constructor,i=r.c[0];if(e!==h){if(e!==~~e||e<1||e>n)throw Error(o+"precision");for(r=p(new s(r),e,t);r.c.length<e;)r.c.push(0)}return d(r,e<=r.e||r.e<=s.NE||r.e>=s.PE,!!i)},c.valueOf=function(){var e=this,t=e.constructor;if(!0===t.strict)throw Error(i+"valueOf disallowed");return d(e,e.e<=t.NE||e.e>=t.PE,!0)},r=function e(){function t(r){var n=this;if(!(n instanceof t))return r===h&&0===arguments.length?e():new t(r);if(r instanceof t)n.s=r.s,n.e=r.e,n.c=r.c.slice();else{if("string"!=typeof r){if(!0===t.strict&&"bigint"!=typeof r)throw TypeError(o+"value");r=0===r&&1/r<0?"-0":String(r)}!function(e,t){var r,n,s;if(!f.test(t))throw Error(o+"number");e.s="-"==t.charAt(0)?(t=t.slice(1),-1):1,(r=t.indexOf("."))>-1&&(t=t.replace(".",""));(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length);for(s=t.length,n=0;n<s&&"0"==t.charAt(n);)++n;if(n==s)e.c=[e.e=0];else{for(;s>0&&"0"==t.charAt(--s););for(e.e=r-n-1,e.c=[],r=0;n<=s;)e.c[r++]=+t.charAt(n++)}}(n,r)}n.constructor=t}return t.prototype=c,t.DP=20,t.RM=1,t.NE=-7,t.PE=21,t.strict=false,t.roundDown=0,t.roundHalfUp=1,t.roundHalfEven=2,t.roundUp=3,t}(),r.default=r.Big=r,void 0!==t&&t.exports?t.exports=r:e.Big=r}(this)},{}],18:[function(e,t,r){},{}],19:[function(e,t,r){arguments[4][18][0].apply(r,arguments)},{dup:18}],20:[function(e,t,r){(function(t){(function(){var t=e("base64-js"),n=e("ieee754");r.Buffer=o,r.SlowBuffer=function(e){+e!=e&&(e=0);return o.alloc(+e)},r.INSPECT_MAX_BYTES=50;var s=2147483647;function i(e){if(e>s)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return t.__proto__=o.prototype,t}function o(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return u(e)}return a(e,t,r)}function a(e,t,r){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!o.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=0|f(e,t),n=i(r),s=n.write(e,t);s!==r&&(n=n.slice(0,s));return n}(e,t);if(ArrayBuffer.isView(e))return c(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(V(e,ArrayBuffer)||e&&V(e.buffer,ArrayBuffer))return function(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r);return n.__proto__=o.prototype,n}(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return o.from(n,t,r);var s=function(e){if(o.isBuffer(e)){var t=0|h(e.length),r=i(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return"number"!=typeof e.length||B(e.length)?i(0):c(e);if("Buffer"===e.type&&Array.isArray(e.data))return c(e.data)}(e);if(s)return s;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return o.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function u(e){return l(e),i(e<0?0:0|h(e))}function c(e){for(var t=e.length<0?0:0|h(e.length),r=i(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}function h(e){if(e>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|e}function f(e,t){if(o.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||V(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var s=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return $(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return F(e).length;default:if(s)return n?-1:$(e).length;t=(""+t).toLowerCase(),s=!0}}function p(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return O(this,t,r);case"utf8":case"utf-8":return x(this,t,r);case"ascii":return k(this,t,r);case"latin1":case"binary":return A(this,t,r);case"base64":return w(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function d(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function g(e,t,r,n,s){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),B(r=+r)&&(r=s?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(s)return-1;r=e.length-1}else if(r<0){if(!s)return-1;r=0}if("string"==typeof t&&(t=o.from(t,n)),o.isBuffer(t))return 0===t.length?-1:y(e,t,r,n,s);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?s?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):y(e,[t],r,n,s);throw new TypeError("val must be string, number or Buffer")}function y(e,t,r,n,s){var i,o=1,a=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;o=2,a/=2,l/=2,r/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(s){var c=-1;for(i=r;i<a;i++)if(u(e,i)===u(t,-1===c?0:i-c)){if(-1===c&&(c=i),i-c+1===l)return c*o}else-1!==c&&(i-=i-c),c=-1}else for(r+l>a&&(r=a-l),i=r;i>=0;i--){for(var h=!0,f=0;f<l;f++)if(u(e,i+f)!==u(t,f)){h=!1;break}if(h)return i}return-1}function m(e,t,r,n){r=Number(r)||0;var s=e.length-r;n?(n=Number(n))>s&&(n=s):n=s;var i=t.length;n>i/2&&(n=i/2);for(var o=0;o<n;++o){var a=parseInt(t.substr(2*o,2),16);if(B(a))return o;e[r+o]=a}return o}function b(e,t,r,n){return I($(t,e.length-r),e,r,n)}function v(e,t,r,n){return I(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function S(e,t,r,n){return v(e,t,r,n)}function P(e,t,r,n){return I(F(t),e,r,n)}function T(e,t,r,n){return I(function(e,t){for(var r,n,s,i=[],o=0;o<e.length&&!((t-=2)<0);++o)n=(r=e.charCodeAt(o))>>8,s=r%256,i.push(s),i.push(n);return i}(t,e.length-r),e,r,n)}function w(e,r,n){return 0===r&&n===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(r,n))}function x(e,t,r){r=Math.min(e.length,r);for(var n=[],s=t;s<r;){var i,o,a,l,u=e[s],c=null,h=u>239?4:u>223?3:u>191?2:1;if(s+h<=r)switch(h){case 1:u<128&&(c=u);break;case 2:128==(192&(i=e[s+1]))&&(l=(31&u)<<6|63&i)>127&&(c=l);break;case 3:i=e[s+1],o=e[s+2],128==(192&i)&&128==(192&o)&&(l=(15&u)<<12|(63&i)<<6|63&o)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:i=e[s+1],o=e[s+2],a=e[s+3],128==(192&i)&&128==(192&o)&&128==(192&a)&&(l=(15&u)<<18|(63&i)<<12|(63&o)<<6|63&a)>65535&&l<1114112&&(c=l)}null===c?(c=65533,h=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),s+=h}return function(e){var t=e.length;if(t<=E)return String.fromCharCode.apply(String,e);var r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=E));return r}(n)}r.kMaxLength=s,o.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(e){return!1}}(),o.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),o.poolSize=8192,o.from=function(e,t,r){return a(e,t,r)},o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,o.alloc=function(e,t,r){return function(e,t,r){return l(e),e<=0?i(e):void 0!==t?"string"==typeof r?i(e).fill(t,r):i(e).fill(t):i(e)}(e,t,r)},o.allocUnsafe=function(e){return u(e)},o.allocUnsafeSlow=function(e){return u(e)},o.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==o.prototype},o.compare=function(e,t){if(V(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),V(t,Uint8Array)&&(t=o.from(t,t.offset,t.byteLength)),!o.isBuffer(e)||!o.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,s=0,i=Math.min(r,n);s<i;++s)if(e[s]!==t[s]){r=e[s],n=t[s];break}return r<n?-1:n<r?1:0},o.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return o.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=o.allocUnsafe(t),s=0;for(r=0;r<e.length;++r){var i=e[r];if(V(i,Uint8Array)&&(i=o.from(i)),!o.isBuffer(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(n,s),s+=i.length}return n},o.byteLength=f,o.prototype._isBuffer=!0,o.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)d(this,t,t+1);return this},o.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)d(this,t,t+3),d(this,t+1,t+2);return this},o.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)d(this,t,t+7),d(this,t+1,t+6),d(this,t+2,t+5),d(this,t+3,t+4);return this},o.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?x(this,0,e):p.apply(this,arguments)},o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(e){if(!o.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===o.compare(this,e)},o.prototype.inspect=function(){var e="",t=r.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},o.prototype.compare=function(e,t,r,n,s){if(V(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),!o.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===s&&(s=this.length),t<0||r>e.length||n<0||s>this.length)throw new RangeError("out of range index");if(n>=s&&t>=r)return 0;if(n>=s)return-1;if(t>=r)return 1;if(this===e)return 0;for(var i=(s>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0),l=Math.min(i,a),u=this.slice(n,s),c=e.slice(t,r),h=0;h<l;++h)if(u[h]!==c[h]){i=u[h],a=c[h];break}return i<a?-1:a<i?1:0},o.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},o.prototype.indexOf=function(e,t,r){return g(this,e,t,r,!0)},o.prototype.lastIndexOf=function(e,t,r){return g(this,e,t,r,!1)},o.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var s=this.length-t;if((void 0===r||r>s)&&(r=s),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return m(this,e,t,r);case"utf8":case"utf-8":return b(this,e,t,r);case"ascii":return v(this,e,t,r);case"latin1":case"binary":return S(this,e,t,r);case"base64":return P(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,t,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var E=4096;function k(e,t,r){var n="";r=Math.min(e.length,r);for(var s=t;s<r;++s)n+=String.fromCharCode(127&e[s]);return n}function A(e,t,r){var n="";r=Math.min(e.length,r);for(var s=t;s<r;++s)n+=String.fromCharCode(e[s]);return n}function O(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var s="",i=t;i<r;++i)s+=D(e[i]);return s}function _(e,t,r){for(var n=e.slice(t,r),s="",i=0;i<n.length;i+=2)s+=String.fromCharCode(n[i]+256*n[i+1]);return s}function j(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function N(e,t,r,n,s,i){if(!o.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>s||t<i)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function R(e,t,r,n,s,i){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function M(e,t,r,s,i){return t=+t,r>>>=0,i||R(e,0,r,4),n.write(e,t,r,s,23,4),r+4}function L(e,t,r,s,i){return t=+t,r>>>=0,i||R(e,0,r,8),n.write(e,t,r,s,52,8),r+8}o.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var n=this.subarray(e,t);return n.__proto__=o.prototype,n},o.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||j(e,t,this.length);for(var n=this[e],s=1,i=0;++i<t&&(s*=256);)n+=this[e+i]*s;return n},o.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||j(e,t,this.length);for(var n=this[e+--t],s=1;t>0&&(s*=256);)n+=this[e+--t]*s;return n},o.prototype.readUInt8=function(e,t){return e>>>=0,t||j(e,1,this.length),this[e]},o.prototype.readUInt16LE=function(e,t){return e>>>=0,t||j(e,2,this.length),this[e]|this[e+1]<<8},o.prototype.readUInt16BE=function(e,t){return e>>>=0,t||j(e,2,this.length),this[e]<<8|this[e+1]},o.prototype.readUInt32LE=function(e,t){return e>>>=0,t||j(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},o.prototype.readUInt32BE=function(e,t){return e>>>=0,t||j(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},o.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||j(e,t,this.length);for(var n=this[e],s=1,i=0;++i<t&&(s*=256);)n+=this[e+i]*s;return n>=(s*=128)&&(n-=Math.pow(2,8*t)),n},o.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||j(e,t,this.length);for(var n=t,s=1,i=this[e+--n];n>0&&(s*=256);)i+=this[e+--n]*s;return i>=(s*=128)&&(i-=Math.pow(2,8*t)),i},o.prototype.readInt8=function(e,t){return e>>>=0,t||j(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},o.prototype.readInt16LE=function(e,t){e>>>=0,t||j(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},o.prototype.readInt16BE=function(e,t){e>>>=0,t||j(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},o.prototype.readInt32LE=function(e,t){return e>>>=0,t||j(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},o.prototype.readInt32BE=function(e,t){return e>>>=0,t||j(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},o.prototype.readFloatLE=function(e,t){return e>>>=0,t||j(e,4,this.length),n.read(this,e,!0,23,4)},o.prototype.readFloatBE=function(e,t){return e>>>=0,t||j(e,4,this.length),n.read(this,e,!1,23,4)},o.prototype.readDoubleLE=function(e,t){return e>>>=0,t||j(e,8,this.length),n.read(this,e,!0,52,8)},o.prototype.readDoubleBE=function(e,t){return e>>>=0,t||j(e,8,this.length),n.read(this,e,!1,52,8)},o.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t>>>=0,r>>>=0,n)||N(this,e,t,r,Math.pow(2,8*r)-1,0);var s=1,i=0;for(this[t]=255&e;++i<r&&(s*=256);)this[t+i]=e/s&255;return t+r},o.prototype.writeUIntBE=function(e,t,r,n){(e=+e,t>>>=0,r>>>=0,n)||N(this,e,t,r,Math.pow(2,8*r)-1,0);var s=r-1,i=1;for(this[t+s]=255&e;--s>=0&&(i*=256);)this[t+s]=e/i&255;return t+r},o.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,1,255,0),this[t]=255&e,t+1},o.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},o.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},o.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},o.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},o.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var s=Math.pow(2,8*r-1);N(this,e,t,r,s-1,-s)}var i=0,o=1,a=0;for(this[t]=255&e;++i<r&&(o*=256);)e<0&&0===a&&0!==this[t+i-1]&&(a=1),this[t+i]=(e/o|0)-a&255;return t+r},o.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var s=Math.pow(2,8*r-1);N(this,e,t,r,s-1,-s)}var i=r-1,o=1,a=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/o|0)-a&255;return t+r},o.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},o.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},o.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},o.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},o.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},o.prototype.writeFloatLE=function(e,t,r){return M(this,e,t,!0,r)},o.prototype.writeFloatBE=function(e,t,r){return M(this,e,t,!1,r)},o.prototype.writeDoubleLE=function(e,t,r){return L(this,e,t,!0,r)},o.prototype.writeDoubleBE=function(e,t,r){return L(this,e,t,!1,r)},o.prototype.copy=function(e,t,r,n){if(!o.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var s=n-r;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,n);else if(this===e&&r<t&&t<n)for(var i=s-1;i>=0;--i)e[i+t]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,n),t);return s},o.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!o.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){var s=e.charCodeAt(0);("utf8"===n&&s<128||"latin1"===n)&&(e=s)}}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var i;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{var a=o.isBuffer(e)?e:o.from(e,n),l=a.length;if(0===l)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=a[i%l]}return this};var C=/[^+/0-9A-Za-z-_]/g;function D(e){return e<16?"0"+e.toString(16):e.toString(16)}function $(e,t){var r;t=t||1/0;for(var n=e.length,s=null,i=[],o=0;o<n;++o){if((r=e.charCodeAt(o))>55295&&r<57344){if(!s){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(o+1===n){(t-=3)>-1&&i.push(239,191,189);continue}s=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),s=r;continue}r=65536+(s-55296<<10|r-56320)}else s&&(t-=3)>-1&&i.push(239,191,189);if(s=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function F(e){return t.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(C,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function I(e,t,r,n){for(var s=0;s<n&&!(s+r>=t.length||s>=e.length);++s)t[s+r]=e[s];return s}function V(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function B(e){return e!=e}}).call(this)}).call(this,e("buffer").Buffer)},{"base64-js":16,buffer:20,ieee754:71}],21:[function(e,t,r){t.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},{}],22:[function(e,t,r){const n=e("fable-serviceproviderbase"),s=e("./LinkedList.js");t.exports=class extends n{constructor(e,t,r){void 0===e?super({}):super(e,t,r),this.serviceType="ObjectCache",this._HashMap={},this._RecordMap={},this._List=new s,this.maxLength=0,this.maxAge=0}get RecordMap(){return this._RecordMap}put(e,t){if(this._HashMap.hasOwnProperty(t))return this._HashMap[t].Datum=e,this._RecordMap[t]=e,this._HashMap[t].Datum;let r=this._List.push(e,t);return this._HashMap[r.Hash]=r,this._RecordMap[t]=e,this.maxLength>0&&this._List.length>this.maxLength&&(r=this._List.pop(),delete this._RecordMap[r.Hash],delete this._HashMap[r.Hash]),r.Metadata.Created=+new Date,r.Datum}read(e){return!!this._HashMap.hasOwnProperty(e)&&this._HashMap[e].Datum}touch(e){if(!this._HashMap.hasOwnProperty(e))return!1;let t=this._List.remove(this._HashMap[e]);return delete this._RecordMap[e],delete this._HashMap[e],this.put(t.Datum,t.Hash)}expire(e){if(!this._HashMap.hasOwnProperty(e))return!1;let t=this._HashMap[e];return t=this._List.remove(t),delete this._RecordMap[t.Hash],delete this._HashMap[t.Hash],t}pruneBasedOnExpiration(e,t){let r=void 0===t?[]:t;if(this.maxAge<1)return e(r);let n=+new Date,s=Object.keys(this._HashMap);for(let e=0;e<s.length;e++)n-this._HashMap[s[e]].Metadata.Created>=this.maxAge&&r.push(this.expire(s[e]));e(r)}pruneBasedOnLength(e,t){let r=void 0===t?[]:t;if(this.maxLength>0)for(;this._List.length>this.maxLength;)r.push(this._List.pop());return e(r)}pruneCustom(e,t,r){let n=void 0===r?[]:r,s=Object.keys(this._HashMap);for(let e=0;e<s.length;e++){let r=this._HashMap[s[e]];t(r.Datum,r.Hash,r)&&n.push(this.expire(s[e]))}e(n)}prune(e){let t=[];if(this._List.length<1)return e(t);this.pruneBasedOnExpiration((r=>{this.pruneBasedOnLength(e,t)}),t)}getNode(e){return!!this._HashMap.hasOwnProperty(e)&&this._HashMap[e]}}},{"./LinkedList.js":24,"fable-serviceproviderbase":53}],23:[function(e,t,r){t.exports=class{constructor(){this.Hash=!1,this.Datum=!1,this.Metadata={},this.LeftNode=!1,this.RightNode=!1,this.__ISNODE=!0}}},{}],24:[function(e,t,r){const n=e("./LinkedList-Node.js");t.exports=class{constructor(){this.totalNodes=0,this.length=0,this.head=!1,this.tail=!1}initializeNode(e,t){if(void 0===e)return!1;this.totalNodes++;let r=void 0!==t?t:`NODE[${this.totalNodes}]`,s=new n;return s.Hash=r,s.Datum=e,s}append(e,t){let r=this.initializeNode(e,t);return!!r&&(this.length++,1==this.length?(this.head=r,this.tail=r,r):(this.tail.RightNode=r,r.LeftNode=this.tail,this.tail=r,r))}push(e,t){return this.append(e,t)}prepend(e,t){let r=this.initializeNode(e,t);return!!r&&(this.length++,1==this.length?(this.head=r,this.tail=r,r):(this.head.LeftNode=r,r.RightNode=this.head,this.head=r,r))}remove(e){return void 0!==e&&(!!e.__ISNODE&&(this.length--,this.length<1?(this.head=!1,this.tail=!1,e):e.LeftNode&&e.RightNode?(e.LeftNode.RightNode=e.RightNode,e.RightNode.LeftNode=e.LeftNode,e.RightNode=!1,e.LeftNode=!1,e):e.LeftNode?(e.LeftNode.RightNode=!1,this.tail=e.LeftNode,e.LeftNode=!1,e):(e.RightNode.LeftNode=!1,this.head=e.RightNode,e.RightNode=!1,e)))}pop(){return this.remove(this.head)}each(e,t){if(this.length<1)return t();let r=!1,n=s=>{if(s)return t(s);if(r){if(!r.RightNode)return t();r=r.RightNode}else r=this.head;e(r.Datum,r.Hash,n)};return n()}seek(e){if(!e)return!1;if(this.length<1)return!1;if(e>=this.length)return!1;let t=this.head;for(let r=0;r<e;r++)t=t.RightNode;return t}}},{"./LinkedList-Node.js":23}],25:[function(e,t,r){var n=e("get-intrinsic"),s=e("./"),i=s(n("String.prototype.indexOf"));t.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&i(e,".prototype.")>-1?s(r):r}},{"./":26,"get-intrinsic":63}],26:[function(e,t,r){var n=e("function-bind"),s=e("get-intrinsic"),i=e("set-function-length"),o=e("es-errors/type"),a=s("%Function.prototype.apply%"),l=s("%Function.prototype.call%"),u=s("%Reflect.apply%",!0)||n.call(l,a),c=s("%Object.defineProperty%",!0),h=s("%Math.max%");if(c)try{c({},"a",{value:1})}catch(e){c=null}t.exports=function(e){if("function"!=typeof e)throw new o("a function is required");var t=u(n,l,arguments);return i(t,1+h(0,e.length-(arguments.length-1)),!0)};var f=function(){return u(n,a,arguments)};c?c(t.exports,"apply",{value:f}):t.exports.apply=f},{"es-errors/type":42,"function-bind":62,"get-intrinsic":63,"set-function-length":102}],27:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.parse=function(e,t){const r=new l,n=e.length;if(n<2)return r;const s=(null==t?void 0:t.decode)||h;let i=0;do{const t=e.indexOf("=",i);if(-1===t)break;const o=e.indexOf(";",i),a=-1===o?n:o;if(t>a){i=e.lastIndexOf(";",t-1)+1;continue}const l=u(e,i,t),h=c(e,t,l),f=e.slice(l,h);if(void 0===r[f]){let n=u(e,t+1,a),i=c(e,a,n);const o=s(e.slice(n,i));r[f]=o}i=a+1}while(i<n);return r},r.serialize=function(e,t,r){const l=(null==r?void 0:r.encode)||encodeURIComponent;if(!n.test(e))throw new TypeError(`argument name is invalid: ${e}`);const u=l(t);if(!s.test(u))throw new TypeError(`argument val is invalid: ${t}`);let c=e+"="+u;if(!r)return c;if(void 0!==r.maxAge){if(!Number.isInteger(r.maxAge))throw new TypeError(`option maxAge is invalid: ${r.maxAge}`);c+="; Max-Age="+r.maxAge}if(r.domain){if(!i.test(r.domain))throw new TypeError(`option domain is invalid: ${r.domain}`);c+="; Domain="+r.domain}if(r.path){if(!o.test(r.path))throw new TypeError(`option path is invalid: ${r.path}`);c+="; Path="+r.path}if(r.expires){if(!function(e){return"[object Date]"===a.call(e)}(r.expires)||!Number.isFinite(r.expires.valueOf()))throw new TypeError(`option expires is invalid: ${r.expires}`);c+="; Expires="+r.expires.toUTCString()}r.httpOnly&&(c+="; HttpOnly");r.secure&&(c+="; Secure");r.partitioned&&(c+="; Partitioned");if(r.priority){switch("string"==typeof r.priority?r.priority.toLowerCase():void 0){case"low":c+="; Priority=Low";break;case"medium":c+="; Priority=Medium";break;case"high":c+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${r.priority}`)}}if(r.sameSite){switch("string"==typeof r.sameSite?r.sameSite.toLowerCase():r.sameSite){case!0:case"strict":c+="; SameSite=Strict";break;case"lax":c+="; SameSite=Lax";break;case"none":c+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${r.sameSite}`)}}return c};const n=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,s=/^[\u0021-\u003A\u003C-\u007E]*$/,i=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,o=/^[\u0020-\u003A\u003D-\u007E]*$/,a=Object.prototype.toString,l=(()=>{const e=function(){};return e.prototype=Object.create(null),e})();function u(e,t,r){do{const r=e.charCodeAt(t);if(32!==r&&9!==r)return t}while(++t<r);return r}function c(e,t,r){for(;t>r;){const r=e.charCodeAt(--t);if(32!==r&&9!==r)return t+1}return r}function h(e){if(-1===e.indexOf("%"))return e;try{return decodeURIComponent(e)}catch(t){return e}}},{}],28:[function(e,t,r){var n,s;n=this,s=function(){var e=6e4,t=36e5,r="millisecond",n="second",s="minute",i="hour",o="day",a="week",l="month",u="quarter",c="year",h="date",f="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,d=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||t[0])+"]"}},y=function(e,t,r){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(r)+e},m={s:y,z:function(e){var t=-e.utcOffset(),r=Math.abs(t),n=Math.floor(r/60),s=r%60;return(t<=0?"+":"-")+y(n,2,"0")+":"+y(s,2,"0")},m:function e(t,r){if(t.date()<r.date())return-e(r,t);var n=12*(r.year()-t.year())+(r.month()-t.month()),s=t.clone().add(n,l),i=r-s<0,o=t.clone().add(n+(i?-1:1),l);return+(-(n+(r-s)/(i?s-o:o-s))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:c,w:a,d:o,D:h,h:i,m:s,s:n,ms:r,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",v={};v[b]=g;var S="$isDayjsObject",P=function(e){return e instanceof E||!(!e||!e[S])},T=function e(t,r,n){var s;if(!t)return b;if("string"==typeof t){var i=t.toLowerCase();v[i]&&(s=i),r&&(v[i]=r,s=i);var o=t.split("-");if(!s&&o.length>1)return e(o[0])}else{var a=t.name;v[a]=t,s=a}return!n&&s&&(b=s),s||!n&&b},w=function(e,t){if(P(e))return e.clone();var r="object"==typeof t?t:{};return r.date=e,r.args=arguments,new E(r)},x=m;x.l=T,x.i=P,x.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=T(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[S]=!0}var y=g.prototype;return y.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(x.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(p);if(n){var s=n[2]-1||0,i=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],s,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)):new Date(n[1],s,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)}}return new Date(t)}(e),this.init()},y.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},y.$utils=function(){return x},y.isValid=function(){return!(this.$d.toString()===f)},y.isSame=function(e,t){var r=w(e);return this.startOf(t)<=r&&r<=this.endOf(t)},y.isAfter=function(e,t){return w(e)<this.startOf(t)},y.isBefore=function(e,t){return this.endOf(t)<w(e)},y.$g=function(e,t,r){return x.u(e)?this[t]:this.set(r,e)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(e,t){var r=this,u=!!x.u(t)||t,f=x.p(e),p=function(e,t){var n=x.w(r.$u?Date.UTC(r.$y,t,e):new Date(r.$y,t,e),r);return u?n:n.endOf(o)},d=function(e,t){return x.w(r.toDate()[e].apply(r.toDate("s"),(u?[0,0,0,0]:[23,59,59,999]).slice(t)),r)},g=this.$W,y=this.$M,m=this.$D,b="set"+(this.$u?"UTC":"");switch(f){case c:return u?p(1,0):p(31,11);case l:return u?p(1,y):p(0,y+1);case a:var v=this.$locale().weekStart||0,S=(g<v?g+7:g)-v;return p(u?m-S:m+(6-S),y);case o:case h:return d(b+"Hours",0);case i:return d(b+"Minutes",1);case s:return d(b+"Seconds",2);case n:return d(b+"Milliseconds",3);default:return this.clone()}},y.endOf=function(e){return this.startOf(e,!1)},y.$set=function(e,t){var a,u=x.p(e),f="set"+(this.$u?"UTC":""),p=(a={},a[o]=f+"Date",a[h]=f+"Date",a[l]=f+"Month",a[c]=f+"FullYear",a[i]=f+"Hours",a[s]=f+"Minutes",a[n]=f+"Seconds",a[r]=f+"Milliseconds",a)[u],d=u===o?this.$D+(t-this.$W):t;if(u===l||u===c){var g=this.clone().set(h,1);g.$d[p](d),g.init(),this.$d=g.set(h,Math.min(this.$D,g.daysInMonth())).$d}else p&&this.$d[p](d);return this.init(),this},y.set=function(e,t){return this.clone().$set(e,t)},y.get=function(e){return this[x.p(e)]()},y.add=function(r,u){var h,f=this;r=Number(r);var p=x.p(u),d=function(e){var t=w(f);return x.w(t.date(t.date()+Math.round(e*r)),f)};if(p===l)return this.set(l,this.$M+r);if(p===c)return this.set(c,this.$y+r);if(p===o)return d(1);if(p===a)return d(7);var g=(h={},h[s]=e,h[i]=t,h[n]=1e3,h)[p]||1,y=this.$d.getTime()+r*g;return x.w(y,this)},y.subtract=function(e,t){return this.add(-1*e,t)},y.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return r.invalidDate||f;var n=e||"YYYY-MM-DDTHH:mm:ssZ",s=x.z(this),i=this.$H,o=this.$m,a=this.$M,l=r.weekdays,u=r.months,c=r.meridiem,h=function(e,r,s,i){return e&&(e[r]||e(t,n))||s[r].slice(0,i)},p=function(e){return x.s(i%12||12,e,"0")},g=c||function(e,t,r){var n=e<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(d,(function(e,n){return n||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return x.s(t.$y,4,"0");case"M":return a+1;case"MM":return x.s(a+1,2,"0");case"MMM":return h(r.monthsShort,a,u,3);case"MMMM":return h(u,a);case"D":return t.$D;case"DD":return x.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return h(r.weekdaysMin,t.$W,l,2);case"ddd":return h(r.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(i);case"HH":return x.s(i,2,"0");case"h":return p(1);case"hh":return p(2);case"a":return g(i,o,!0);case"A":return g(i,o,!1);case"m":return String(o);case"mm":return x.s(o,2,"0");case"s":return String(t.$s);case"ss":return x.s(t.$s,2,"0");case"SSS":return x.s(t.$ms,3,"0");case"Z":return s}return null}(e)||s.replace(":","")}))},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(r,h,f){var p,d=this,g=x.p(h),y=w(r),m=(y.utcOffset()-this.utcOffset())*e,b=this-y,v=function(){return x.m(d,y)};switch(g){case c:p=v()/12;break;case l:p=v();break;case u:p=v()/3;break;case a:p=(b-m)/6048e5;break;case o:p=(b-m)/864e5;break;case i:p=b/t;break;case s:p=b/e;break;case n:p=b/1e3;break;default:p=b}return f?p:x.a(p)},y.daysInMonth=function(){return this.endOf(l).$D},y.$locale=function(){return v[this.$L]},y.locale=function(e,t){if(!e)return this.$L;var r=this.clone(),n=T(e,t,!0);return n&&(r.$L=n),r},y.clone=function(){return x.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},g}(),k=E.prototype;return w.prototype=k,[["$ms",r],["$s",n],["$m",s],["$H",i],["$W",o],["$M",l],["$y",c],["$D",h]].forEach((function(e){k[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),w.extend=function(e,t){return e.$i||(e(t,E,w),e.$i=!0),w},w.locale=T,w.isDayjs=P,w.unix=function(e){return w(1e3*e)},w.en=v[b],w.Ls=v,w.p={},w},"object"==typeof r&&void 0!==t?t.exports=s():(n="undefined"!=typeof globalThis?globalThis:n||self).dayjs=s()},{}],29:[function(e,t,r){var n,s;n=this,s=function(){return function(e,t){var r=t.prototype,n=r.format;r.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return n.bind(this)(e);var s=this.$utils(),i=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case"Q":return Math.ceil((t.$M+1)/3);case"Do":return r.ordinal(t.$D);case"gggg":return t.weekYear();case"GGGG":return t.isoWeekYear();case"wo":return r.ordinal(t.week(),"W");case"w":case"ww":return s.s(t.week(),"w"===e?1:2,"0");case"W":case"WW":return s.s(t.isoWeek(),"W"===e?1:2,"0");case"k":case"kk":return s.s(String(0===t.$H?24:t.$H),"k"===e?1:2,"0");case"X":return Math.floor(t.$d.getTime()/1e3);case"x":return t.$d.getTime();case"z":return"["+t.offsetName()+"]";case"zzz":return"["+t.offsetName("long")+"]";default:return e}}));return n.bind(this)(i)}}},"object"==typeof r&&void 0!==t?t.exports=s():(n="undefined"!=typeof globalThis?globalThis:n||self).dayjs_plugin_advancedFormat=s()},{}],30:[function(e,t,r){var n,s;n=this,s=function(){var e="day";return function(t,r,n){var s=function(t){return t.add(4-t.isoWeekday(),e)},i=r.prototype;i.isoWeekYear=function(){return s(this).year()},i.isoWeek=function(t){if(!this.$utils().u(t))return this.add(7*(t-this.isoWeek()),e);var r,i,o,a=s(this),l=(r=this.isoWeekYear(),o=4-(i=(this.$u?n.utc:n)().year(r).startOf("year")).isoWeekday(),i.isoWeekday()>4&&(o+=7),i.add(o,e));return a.diff(l,"week")+1},i.isoWeekday=function(e){return this.$utils().u(e)?this.day()||7:this.day(this.day()%7?e:e-7)};var o=i.startOf;i.startOf=function(e,t){var r=this.$utils(),n=!!r.u(t)||t;return"isoweek"===r.p(e)?n?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):o.bind(this)(e,t)}}},"object"==typeof r&&void 0!==t?t.exports=s():(n="undefined"!=typeof globalThis?globalThis:n||self).dayjs_plugin_isoWeek=s()},{}],31:[function(e,t,r){var n,s;n=this,s=function(){return function(e,t,r){e=e||{};var n=t.prototype,s={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function i(e,t,r,s){return n.fromToBase(e,t,r,s)}r.en.relativeTime=s,n.fromToBase=function(t,n,i,o,a){for(var l,u,c,h=i.$locale().relativeTime||s,f=e.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],p=f.length,d=0;d<p;d+=1){var g=f[d];g.d&&(l=o?r(t).diff(i,g.d,!0):i.diff(t,g.d,!0));var y=(e.rounding||Math.round)(Math.abs(l));if(c=l>0,y<=g.r||!g.r){y<=1&&d>0&&(g=f[d-1]);var m=h[g.l];a&&(y=a(""+y)),u="string"==typeof m?m.replace("%d",y):m(y,n,g.l,c);break}}if(n)return u;var b=c?h.future:h.past;return"function"==typeof b?b(u):b.replace("%s",u)},n.to=function(e,t){return i(e,t,this,!0)},n.from=function(e,t){return i(e,t,this)};var o=function(e){return e.$u?r.utc():r()};n.toNow=function(e){return this.to(o(this),e)},n.fromNow=function(e){return this.from(o(this),e)}}},"object"==typeof r&&void 0!==t?t.exports=s():(n="undefined"!=typeof globalThis?globalThis:n||self).dayjs_plugin_relativeTime=s()},{}],32:[function(e,t,r){var n,s;n=this,s=function(){var e={year:0,month:1,day:2,hour:3,minute:4,second:5},t={};return function(r,n,s){var i,o=function(e,r,n){void 0===n&&(n={});var s=new Date(e),i=function(e,r){void 0===r&&(r={});var n=r.timeZoneName||"short",s=e+"|"+n,i=t[s];return i||(i=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:n}),t[s]=i),i}(r,n);return i.formatToParts(s)},a=function(t,r){for(var n=o(t,r),i=[],a=0;a<n.length;a+=1){var l=n[a],u=l.type,c=l.value,h=e[u];h>=0&&(i[h]=parseInt(c,10))}var f=i[3],p=24===f?0:f,d=i[0]+"-"+i[1]+"-"+i[2]+" "+p+":"+i[4]+":"+i[5]+":000",g=+t;return(s.utc(d).valueOf()-(g-=g%1e3))/6e4},l=n.prototype;l.tz=function(e,t){void 0===e&&(e=i);var r,n=this.utcOffset(),o=this.toDate(),a=o.toLocaleString("en-US",{timeZone:e}),l=Math.round((o-new Date(a))/1e3/60),u=15*-Math.round(o.getTimezoneOffset()/15)-l;if(Number(u)){if(r=s(a,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(u,!0),t){var c=r.utcOffset();r=r.add(n-c,"minute")}}else r=this.utcOffset(0,t);return r.$x.$timezone=e,r},l.offsetName=function(e){var t=this.$x.$timezone||s.tz.guess(),r=o(this.valueOf(),t,{timeZoneName:e}).find((function(e){return"timezonename"===e.type.toLowerCase()}));return r&&r.value};var u=l.startOf;l.startOf=function(e,t){if(!this.$x||!this.$x.$timezone)return u.call(this,e,t);var r=s(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return u.call(r,e,t).tz(this.$x.$timezone,!0)},s.tz=function(e,t,r){var n=r&&t,o=r||t||i,l=a(+s(),o);if("string"!=typeof e)return s(e).tz(o);var u=function(e,t,r){var n=e-60*t*1e3,s=a(n,r);if(t===s)return[n,t];var i=a(n-=60*(s-t)*1e3,r);return s===i?[n,s]:[e-60*Math.min(s,i)*1e3,Math.max(s,i)]}(s.utc(e,n).valueOf(),l,o),c=u[0],h=u[1],f=s(c).utcOffset(h);return f.$x.$timezone=o,f},s.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},s.tz.setDefault=function(e){i=e}}},"object"==typeof r&&void 0!==t?t.exports=s():(n="undefined"!=typeof globalThis?globalThis:n||self).dayjs_plugin_timezone=s()},{}],33:[function(e,t,r){var n,s;n=this,s=function(){var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,r=/([+-]|\d\d)/g;return function(n,s,i){var o=s.prototype;i.utc=function(e){return new s({date:e,utc:!0,args:arguments})},o.utc=function(t){var r=i(this.toDate(),{locale:this.$L,utc:!0});return t?r.add(this.utcOffset(),e):r},o.local=function(){return i(this.toDate(),{locale:this.$L,utc:!1})};var a=o.parse;o.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),a.call(this,e)};var l=o.init;o.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else l.call(this)};var u=o.utcOffset;o.utcOffset=function(n,s){var i=this.$utils().u;if(i(n))return this.$u?0:i(this.$offset)?u.call(this):this.$offset;if("string"==typeof n&&(n=function(e){void 0===e&&(e="");var n=e.match(t);if(!n)return null;var s=(""+n[0]).match(r)||["-",0,0],i=s[0],o=60*+s[1]+ +s[2];return 0===o?0:"+"===i?o:-o}(n),null===n))return this;var o=Math.abs(n)<=16?60*n:n;if(0===o)return this.utc(s);var a=this.clone();if(s)return a.$offset=o,a.$u=!1,a;var l=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(a=this.local().add(o+l,e)).$offset=o,a.$x.$localOffset=l,a};var c=o.format;o.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return c.call(this,t)},o.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},o.isUTC=function(){return!!this.$u},o.toISOString=function(){return this.toDate().toISOString()},o.toString=function(){return this.toDate().toUTCString()};var h=o.toDate;o.toDate=function(e){return"s"===e&&this.$offset?i(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():h.call(this)};var f=o.diff;o.diff=function(e,t,r){if(e&&this.$u===e.$u)return f.call(this,e,t,r);var n=this.local(),s=i(e).local();return f.call(n,s,t,r)}}},"object"==typeof r&&void 0!==t?t.exports=s():(n="undefined"!=typeof globalThis?globalThis:n||self).dayjs_plugin_utc=s()},{}],34:[function(e,t,r){var n,s;n=this,s=function(){var e="week",t="year";return function(r,n,s){var i=n.prototype;i.week=function(r){if(void 0===r&&(r=null),null!==r)return this.add(7*(r-this.week()),"day");var n=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var i=s(this).startOf(t).add(1,t).date(n),o=s(this).endOf(e);if(i.isBefore(o))return 1}var a=s(this).startOf(t).date(n).startOf(e).subtract(1,"millisecond"),l=this.diff(a,e,!0);return l<0?s(this).startOf("week").week():Math.ceil(l)},i.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}},"object"==typeof r&&void 0!==t?t.exports=s():(n="undefined"!=typeof globalThis?globalThis:n||self).dayjs_plugin_weekOfYear=s()},{}],35:[function(e,t,r){var n;n=this,"object"==typeof r&&void 0!==t?t.exports=function(e,t){t.prototype.weekday=function(e){var t=this.$locale().weekStart||0,r=this.$W,n=(r<t?r+7:r)-t;return this.$utils().u(e)?n:this.subtract(n,"day").add(e,"day")}}:(n="undefined"!=typeof globalThis?globalThis:n||self).dayjs_plugin_weekday=function(e,t){t.prototype.weekday=function(e){var t=this.$locale().weekStart||0,r=this.$W,n=(r<t?r+7:r)-t;return this.$utils().u(e)?n:this.subtract(n,"day").add(e,"day")}}},{}],36:[function(e,t,r){var n=e("has-property-descriptors")(),s=e("get-intrinsic"),i=n&&s("%Object.defineProperty%",!0);if(i)try{i({},"a",{value:1})}catch(e){i=!1}var o=e("es-errors/syntax"),a=e("es-errors/type"),l=e("gopd");t.exports=function(e,t,r){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new a("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new a("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new a("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new a("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new a("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new a("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,s=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],h=!!l&&l(e,t);if(i)i(e,t,{configurable:null===u&&h?h.configurable:!u,enumerable:null===n&&h?h.enumerable:!n,value:r,writable:null===s&&h?h.writable:!s});else{if(!c&&(n||s||u))throw new o("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=r}}},{"es-errors/syntax":41,"es-errors/type":42,"get-intrinsic":63,gopd:64,"has-property-descriptors":65}],37:[function(e,t,r){t.exports=EvalError},{}],38:[function(e,t,r){t.exports=Error},{}],39:[function(e,t,r){t.exports=RangeError},{}],40:[function(e,t,r){t.exports=ReferenceError},{}],41:[function(e,t,r){t.exports=SyntaxError},{}],42:[function(e,t,r){t.exports=TypeError},{}],43:[function(e,t,r){t.exports=URIError},{}],44:[function(e,t,r){var n,s="object"==typeof Reflect?Reflect:null,i=s&&"function"==typeof s.apply?s.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};n=s&&"function"==typeof s.ownKeys?s.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function a(){a.init.call(this)}t.exports=a,t.exports.once=function(e,t){return new Promise((function(r,n){function s(r){e.removeListener(t,i),n(r)}function i(){"function"==typeof e.removeListener&&e.removeListener("error",s),r([].slice.call(arguments))}m(e,t,i,{once:!0}),"error"!==t&&function(e,t,r){"function"==typeof e.on&&m(e,"error",t,r)}(e,s,{once:!0})}))},a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var l=10;function u(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?a.defaultMaxListeners:e._maxListeners}function h(e,t,r,n){var s,i,o,a;if(u(r),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),i=e._events),o=i[t]),void 0===o)o=i[t]=r,++e._eventsCount;else if("function"==typeof o?o=i[t]=n?[r,o]:[o,r]:n?o.unshift(r):o.push(r),(s=c(e))>0&&o.length>s&&!o.warned){o.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=o.length,a=l,console&&console.warn&&console.warn(a)}return e}function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},s=f.bind(n);return s.listener=r,n.wrapFn=s,s}function d(e,t,r){var n=e._events;if(void 0===n)return[];var s=n[t];return void 0===s?[]:"function"==typeof s?r?[s.listener||s]:[s]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(s):y(s,s.length)}function g(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function y(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function m(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function s(i){n.once&&e.removeEventListener(t,s),r(i)}))}}Object.defineProperty(a,"defaultMaxListeners",{enumerable:!0,get:function(){return l},set:function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");l=e}}),a.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},a.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},a.prototype.getMaxListeners=function(){return c(this)},a.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var n="error"===e,s=this._events;if(void 0!==s)n=n&&void 0===s.error;else if(!n)return!1;if(n){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var a=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw a.context=o,a}var l=s[e];if(void 0===l)return!1;if("function"==typeof l)i(l,this,t);else{var u=l.length,c=y(l,u);for(r=0;r<u;++r)i(c[r],this,t)}return!0},a.prototype.addListener=function(e,t){return h(this,e,t,!1)},a.prototype.on=a.prototype.addListener,a.prototype.prependListener=function(e,t){return h(this,e,t,!0)},a.prototype.once=function(e,t){return u(t),this.on(e,p(this,e,t)),this},a.prototype.prependOnceListener=function(e,t){return u(t),this.prependListener(e,p(this,e,t)),this},a.prototype.removeListener=function(e,t){var r,n,s,i,o;if(u(t),void 0===(n=this._events))return this;if(void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(s=-1,i=r.length-1;i>=0;i--)if(r[i]===t||r[i].listener===t){o=r[i].listener,s=i;break}if(s<0)return this;0===s?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,s),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,o||t)}return this},a.prototype.off=a.prototype.removeListener,a.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var s,i=Object.keys(r);for(n=0;n<i.length;++n)"removeListener"!==(s=i[n])&&this.removeAllListeners(s);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},a.prototype.listeners=function(e){return d(this,e,!0)},a.prototype.rawListeners=function(e){return d(this,e,!1)},a.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):g.call(e,t)},a.prototype.listenerCount=g,a.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},{}],45:[function(e,t,r){t.exports={name:"fable-log",version:"3.0.16",description:"A simple logging wrapper.",main:"source/Fable-Log.js",scripts:{start:"node source/Fable-Log.js",coverage:"./node_modules/.bin/nyc --reporter=lcov --reporter=text-lcov ./node_modules/mocha/bin/_mocha -- -u tdd -R spec",test:"./node_modules/.bin/mocha -u tdd -R spec",tests:"npx mocha -u tdd --exit -R spec --grep"},mocha:{diff:!0,extension:["js"],package:"./package.json",reporter:"spec",slow:"75",timeout:"5000",ui:"tdd","watch-files":["source/**/*.js","test/**/*.js"],"watch-ignore":["lib/vendor"]},browser:{"./source/Fable-Log-DefaultProviders-Node.js":"./source/Fable-Log-DefaultProviders-Web.js"},repository:{type:"git",url:"https://github.com/stevenvelozo/fable-log.git"},keywords:["logging"],author:"Steven Velozo <steven@velozo.com> (http://velozo.com/)",license:"MIT",bugs:{url:"https://github.com/stevenvelozo/fable-log/issues"},homepage:"https://github.com/stevenvelozo/fable-log",devDependencies:{quackage:"^1.0.33"},dependencies:{"fable-serviceproviderbase":"^3.0.15"}}},{}],46:[function(e,t,r){const n=e("fable-serviceproviderbase").CoreServiceProviderBase;t.exports=class extends n{constructor(e,t){super(e,t),this._Settings="object"==typeof e?e:{},this.serviceType="Logging-Provider",this.loggerUUID=this.generateInsecureUUID(),this.levels=["trace","debug","info","warn","error","fatal"]}generateInsecureUUID(){let e=(new Date).getTime();return"LOGSTREAM-xxxxxx-yxxxxx".replace(/[xy]/g,(t=>{let r=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"==t?r:3&r|8).toString(16)}))}initialize(){}trace(e,t){this.write("trace",e,t)}debug(e,t){this.write("debug",e,t)}info(e,t){this.write("info",e,t)}warn(e,t){this.write("warn",e,t)}error(e,t){this.write("error",e,t)}fatal(e,t){this.write("fatal",e,t)}write(e,t,r){return!0}}},{"fable-serviceproviderbase":53}],47:[function(e,t,r){t.exports=(()=>{let t={};return t.console=e("./Fable-Log-Logger-Console.js"),t.default=t.console,t})()},{"./Fable-Log-Logger-Console.js":49}],48:[function(e,t,r){t.exports=[{loggertype:"console",streamtype:"console",level:"trace"}]},{}],49:[function(e,t,r){let n=e("./Fable-Log-BaseLogger.js");t.exports=class extends n{constructor(e,t){super(e),this._ShowTimeStamps=!("showtimestamps"in this._Settings)||1==this._Settings.showtimestamps,this._FormattedTimeStamps=!("formattedtimestamps"in this._Settings)||1==this._Settings.formattedtimestamps,this._ContextMessage="Context"in this._Settings?`(${this._Settings.Context})`:"Product"in t._Settings?`(${t._Settings.Product})`:"Unnamed_Log_Context",this._OutputLogLinesToConsole=!("outputloglinestoconsole"in this._Settings)||this._Settings.outputloglinestoconsole,this._OutputObjectsToConsole=!("outputobjectstoconsole"in this._Settings)||this._Settings.outputobjectstoconsole,this.prefixCache={};for(let e=0;e<=this.levels.length;e++)this.prefixCache[this.levels[e]]=`[${this.levels[e]}] ${this._ContextMessage}: `,this._ShowTimeStamps&&(this.prefixCache[this.levels[e]]=" "+this.prefixCache[this.levels[e]])}write(e,t,r){let n="";this._ShowTimeStamps&&this._FormattedTimeStamps?n=(new Date).toISOString():this._ShowTimeStamps&&(n=+new Date);let s=`${n}${this.prefixCache[e]}${t}`;return this._OutputLogLinesToConsole&&console.log(s),this._OutputObjectsToConsole&&void 0!==r&&console.log(JSON.stringify(r,null,2)),s}}},{"./Fable-Log-BaseLogger.js":46}],50:[function(e,t,r){const n=e("./Fable-Log-Logger-Console.js"),s=e("fs"),i=e("path");t.exports=class extends n{constructor(e,t){super(e,t),this.logFileRawPath=this._Settings.hasOwnProperty("path")?this._Settings.path:`./${this._ContextMessage}.log`,this.logFilePath=i.normalize(this.logFileRawPath),this.logFileStreamOptions=this._Settings.hasOwnProperty("fileStreamoptions")?this._Settings.fileStreamOptions:{flags:"a",encoding:"utf8"},this.fileWriter=s.createWriteStream(this.logFilePath,this.logFileStreamOptions),this.activelyWriting=!1,this.logLineStrings=[],this.logObjectStrings=[],this.defaultWriteCompleteCallback=()=>{},this.defaultBufferFlushCallback=()=>{}}closeWriter(e){let t="function"==typeof e?e:()=>{};if(this.fileWriter)return this.fileWriter.end("\n"),this.fileWriter.once("finish",t.bind(this))}completeBufferFlushToLogFile(e){this.activelyWriting=!1;let t="function"==typeof e?e:this.defaultBufferFlushCallback;if(!(this.logLineStrings.length>0))return t();this.flushBufferToLogFile(t)}flushBufferToLogFile(e){if(!this.activelyWriting){this.activelyWriting=!0;let t="function"==typeof e?e:this.defaultBufferFlushCallback,r=this.logLineStrings,n=this.logObjectStrings;this.logLineStrings=[],this.logObjectStrings=[];let s="";for(let e=0;e<r.length;e++)s+=`${r[e]}\n`,!1!==n[e]&&(s+=`${n[e]}\n`);if(this.fileWriter.write(s,"utf8"))return this.completeBufferFlushToLogFile(t);this.fileWriter.once("drain",this.completeBufferFlushToLogFile.bind(this,t))}}write(e,t,r){let n=super.write(e,t,r);this.logLineStrings.push(n),void 0!==r?this.logObjectStrings.push(JSON.stringify(r,null,4)):this.logObjectStrings.push(!1),this.flushBufferToLogFile()}}},{"./Fable-Log-Logger-Console.js":49,fs:19,path:87}],51:[function(e,t,r){const n=e("fable-serviceproviderbase").CoreServiceProviderBase,s=e("../package.json");t.exports=class extends n{constructor(t,r){super(t,r),this.serviceType="Logging",this._Package=s;let n="object"==typeof t?t:{};this._Settings=n,this._Providers=e("./Fable-Log-DefaultProviders-Node.js"),this._StreamDefinitions="LogStreams"in n?n.LogStreams:e("./Fable-Log-DefaultStreams.json"),this.logStreams=[],this.logProviders={},this.activeLogStreams={},this.logStreamsTrace=[],this.logStreamsDebug=[],this.logStreamsInfo=[],this.logStreamsWarn=[],this.logStreamsError=[],this.logStreamsFatal=[],this.datumDecorator=e=>e,this.uuid="string"==typeof n.Product?n.Product:"Default"}addLogger(e,t){if(e.loggerUUID in this.activeLogStreams)return!1;switch(this.logStreams.push(e),this.activeLogStreams[e.loggerUUID]=!0,t){case"trace":this.logStreamsTrace.push(e);case"debug":this.logStreamsDebug.push(e);case"info":this.logStreamsInfo.push(e);case"warn":this.logStreamsWarn.push(e);case"error":this.logStreamsError.push(e);case"fatal":this.logStreamsFatal.push(e)}return!0}setDatumDecorator(e){this.datumDecorator="function"==typeof e?e:e=>e}trace(e,t){const r=this.datumDecorator(t);for(let t=0;t<this.logStreamsTrace.length;t++)this.logStreamsTrace[t].trace(e,r)}debug(e,t){const r=this.datumDecorator(t);for(let t=0;t<this.logStreamsDebug.length;t++)this.logStreamsDebug[t].debug(e,r)}info(e,t){const r=this.datumDecorator(t);for(let t=0;t<this.logStreamsInfo.length;t++)this.logStreamsInfo[t].info(e,r)}warn(e,t){const r=this.datumDecorator(t);for(let t=0;t<this.logStreamsWarn.length;t++)this.logStreamsWarn[t].warn(e,r)}error(e,t){const r=this.datumDecorator(t);for(let t=0;t<this.logStreamsError.length;t++)this.logStreamsError[t].error(e,r)}fatal(e,t){const r=this.datumDecorator(t);for(let t=0;t<this.logStreamsFatal.length;t++)this.logStreamsFatal[t].fatal(e,r)}initialize(){for(let e=0;e<this._StreamDefinitions.length;e++){let t=Object.assign({loggertype:"default",streamtype:"console",level:"info"},this._StreamDefinitions[e]);t.loggertype in this._Providers?this.addLogger(new this._Providers[t.loggertype](t,this),t.level):console.log(`Error initializing log stream: bad loggertype in stream definition ${JSON.stringify(t)}`)}for(let e=0;e<this.logStreams.length;e++)this.logStreams[e].initialize()}logTime(e,t){let r=void 0!==e?e:"Time",n=new Date;this.info(`${r} ${n} (epoch ${+n})`,t)}getTimeStamp(){return+new Date}getTimeDelta(e){return+new Date-e}logTimeDelta(e,t,r){let n=void 0!==t?t:"Time Measurement",s=+new Date;this.info(`${n} logged at (epoch ${+s}) took (${e}ms)`,r)}logTimeDeltaHuman(e,t,r){let n=void 0!==t?t:"Time Measurement",s=+new Date,i=parseInt(e%1e3),o=parseInt(e/1e3%60),a=parseInt(e/6e4%60),l=parseInt(e/36e5);i=i<10?"00"+i:i<100?"0"+i:i,o=o<10?"0"+o:o,a=a<10?"0"+a:a,l=l<10?"0"+l:l,this.info(`${n} logged at (epoch ${+s}) took (${e}ms) or (${l}:${a}:${o}.${i})`,r)}logTimeDeltaRelative(e,t,r){this.logTimeDelta(this.getTimeDelta(e),t,r)}logTimeDeltaRelativeHuman(e,t,r){this.logTimeDeltaHuman(this.getTimeDelta(e),t,r)}},t.exports.LogProviderBase=e("./Fable-Log-BaseLogger.js"),t.exports.LogProviderConsole=e("./Fable-Log-Logger-Console.js"),t.exports.LogProviderFlatfile=e("./Fable-Log-Logger-SimpleFlatFile.js")},{"../package.json":45,"./Fable-Log-BaseLogger.js":46,"./Fable-Log-DefaultProviders-Node.js":47,"./Fable-Log-DefaultStreams.json":48,"./Fable-Log-Logger-Console.js":49,"./Fable-Log-Logger-SimpleFlatFile.js":50,"fable-serviceproviderbase":53}],52:[function(e,t,r){t.exports={name:"fable-serviceproviderbase",version:"3.0.15",description:"Simple base classes for fable services.",main:"source/Fable-ServiceProviderBase.js",scripts:{start:"node source/Fable-ServiceProviderBase.js",test:"npx mocha -u tdd -R spec",tests:"npx mocha -u tdd --exit -R spec --grep",coverage:"npx nyc --reporter=lcov --reporter=text-lcov npx mocha -- -u tdd -R spec",build:"npx quack build"},mocha:{diff:!0,extension:["js"],package:"./package.json",reporter:"spec",slow:"75",timeout:"5000",ui:"tdd","watch-files":["source/**/*.js","test/**/*.js"],"watch-ignore":["lib/vendor"]},repository:{type:"git",url:"https://github.com/stevenvelozo/fable-serviceproviderbase.git"},keywords:["entity","behavior"],author:"Steven Velozo <steven@velozo.com> (http://velozo.com/)",license:"MIT",bugs:{url:"https://github.com/stevenvelozo/fable-serviceproviderbase/issues"},homepage:"https://github.com/stevenvelozo/fable-serviceproviderbase",devDependencies:{fable:"^3.0.143",quackage:"^1.0.33"}}},{}],53:[function(e,t,r){const n=e("../package.json");class s{constructor(e,t,r){"object"==typeof e&&e.isFable?this.connectFable(e):this.fable=!1,this._PackageFableServiceProvider=n,this.fable?(this.UUID=e.getUUID(),this.options="object"==typeof t?t:{}):(this.options="object"!=typeof e||e.isFable?"object"==typeof t?t:{}:e,this.UUID=`CORE-SVC-${Math.floor(89999*Math.random()+1e4)}`),this.serviceType=`Unknown-${this.UUID}`,this.Hash="string"==typeof r?r:this.fable||"string"!=typeof t?`${this.UUID}`:t}connectFable(e){if("object"!=typeof e||!e.isFable){let t=`Fable Service Provider Base: Cannot connect to Fable, invalid Fable object passed in. The pFable parameter was a [${typeof e}].}`;return console.log(t),new Error(t)}return this.fable||(this.fable=e),this.log||(this.log=this.fable.Logging),this.services||(this.services=this.fable.services),this.servicesMap||(this.servicesMap=this.fable.servicesMap),!0}}_defineProperty2(s,"isFableService",!0),t.exports=s,t.exports.CoreServiceProviderBase=s},{"../package.json":52}],54:[function(e,t,r){t.exports={name:"fable-settings",version:"3.0.12",description:"A simple, tolerant configuration chain.",main:"source/Fable-Settings.js",scripts:{start:"node source/Fable-Settings.js",coverage:"./node_modules/.bin/nyc --reporter=lcov --reporter=text-lcov ./node_modules/mocha/bin/_mocha -- -u tdd -R spec",test:"./node_modules/.bin/mocha -u tdd -R spec",build:"./node_modules/.bin/gulp build","docker-dev-build-image":"docker build ./ -f Dockerfile_LUXURYCode -t retold/fable-settings:local","docker-dev-run":'docker run -it -d --name retold-fable-settings-dev -p 30003:8080 -v "$PWD/.config:/home/coder/.config" -v "$PWD:/home/coder/fable-settings" -u "$(id -u):$(id -g)" -e "DOCKER_USER=$USER" retold/fable-settings:local'},mocha:{diff:!0,extension:["js"],package:"./package.json",reporter:"spec",slow:"75",timeout:"5000",ui:"tdd","watch-files":["source/**/*.js","test/**/*.js"],"watch-ignore":["lib/vendor"]},repository:{type:"git",url:"https://github.com/stevenvelozo/fable-settings.git"},keywords:["configuration"],author:"Steven Velozo <steven@velozo.com> (http://velozo.com/)",license:"MIT",bugs:{url:"https://github.com/stevenvelozo/fable-settings/issues"},homepage:"https://github.com/stevenvelozo/fable-settings",devDependencies:{quackage:"^1.0.33"},dependencies:{"fable-serviceproviderbase":"^3.0.15",precedent:"^1.0.15"}}},{}],55:[function(e,t,r){t.exports={Product:"ApplicationNameHere",ProductVersion:"0.0.0",ConfigFile:!1,LogStreams:[{level:"trace"}]}},{}],56:[function(e,t,r){(function(r){(function(){const n=e("precedent");t.exports=class{constructor(e){this.templateProcessor=new n,this.templateProcessor.addPattern("${","}",(e=>{let t=e.trim(),n=t.indexOf("|");const s=n>=0?t.substring(n+1):"";let i=n>-1?t.substring(0,n):t;return i in r.env?r.env[i]:s}))}parseSetting(e){return this.templateProcessor.parseString(e)}}}).call(this)}).call(this,e("_process"))},{_process:91,precedent:88}],57:[function(e,t,r){const n=e("fable-serviceproviderbase").CoreServiceProviderBase,s=e("./Fable-Settings-TemplateProcessor.js");class i extends n{constructor(t,r){super(t,r),this.serviceType="SettingsManager",this._Package=e("../package.json"),this.settingsTemplateProcessor=new s,this._configureEnvTemplating(t),this.default=this.buildDefaultSettings();let n=this.merge(t,this.buildDefaultSettings());if(this.base=JSON.parse(JSON.stringify(n)),n.DefaultConfigFile)try{n=this.merge(e(n.DefaultConfigFile),n)}catch(e){console.log("Fable-Settings Warning: Default configuration file specified but there was a problem loading it. Falling back to base."),console.log(" Loading Exception: "+e)}if(n.ConfigFile)try{n=this.merge(e(n.ConfigFile),n)}catch(e){console.log("Fable-Settings Warning: Configuration file specified but there was a problem loading it. Falling back to base."),console.log(" Loading Exception: "+e)}this.settings=n}buildDefaultSettings(){return JSON.parse(JSON.stringify(e("./Fable-Settings-Default")))}_configureEnvTemplating(e){this._PerformEnvTemplating=!e||!0!==e.NoEnvReplacement}_resolveEnv(e){for(const t in e)"object"==typeof e[t]?this._resolveEnv(e[t]):"string"==typeof e[t]&&(e[t]=this.settingsTemplateProcessor.parseSetting(e[t]))}_isObject(e){return"object"==typeof e&&!Array.isArray(e)}_deepMergeObjects(e,t){if(t&&this._isObject(t))return Object.keys(t).forEach((r=>{const n=t[r];if(this._isObject(n)){const t=e[r];if(t&&this._isObject(t))return void this._deepMergeObjects(t,n)}e[r]=n})),e}merge(e,t){let r="object"==typeof e?e:{},n="object"==typeof t?t:this.settings,s=JSON.parse(JSON.stringify(r));return n=this._deepMergeObjects(n,s),this._PerformEnvTemplating&&this._resolveEnv(n),this._configureEnvTemplating(n),n}fill(e){let t="object"==typeof e?e:{},r=JSON.parse(JSON.stringify(t));return this.settings=this._deepMergeObjects(r,this.settings),this.settings}}t.exports=i,t.exports.new=function(e){return new i(e)}},{"../package.json":54,"./Fable-Settings-Default":55,"./Fable-Settings-TemplateProcessor.js":56,"fable-serviceproviderbase":53}],58:[function(e,t,r){t.exports={name:"fable-uuid",version:"3.0.11",description:"A simple UUID Generator.",main:"source/Fable-UUID.js",scripts:{start:"node source/Fable-UUID.js",coverage:"./node_modules/.bin/nyc --reporter=lcov --reporter=text-lcov ./node_modules/mocha/bin/_mocha -- -u tdd -R spec",test:"./node_modules/.bin/mocha -u tdd -R spec",build:"./node_modules/.bin/gulp build","docker-dev-build-image":"docker build ./ -f Dockerfile_LUXURYCode -t retold/fable-uuid:local","docker-dev-run":'docker run -it -d --name retold-fable-uuid-dev -p 30002:8080 -v "$PWD/.config:/home/coder/.config" -v "$PWD:/home/coder/fable-uuid" -u "$(id -u):$(id -g)" -e "DOCKER_USER=$USER" retold/fable-uuid:local'},mocha:{diff:!0,extension:["js"],package:"./package.json",reporter:"spec",slow:"75",timeout:"5000",ui:"tdd","watch-files":["source/**/*.js","test/**/*.js"],"watch-ignore":["lib/vendor"]},repository:{type:"git",url:"https://github.com/stevenvelozo/fable-uuid.git"},keywords:["logging"],author:"Steven Velozo <steven@velozo.com> (http://velozo.com/)",license:"MIT",bugs:{url:"https://github.com/stevenvelozo/fable-uuid/issues"},browser:{"./source/Fable-UUID-Random.js":"./source/Fable-UUID-Random-Browser.js"},homepage:"https://github.com/stevenvelozo/fable-uuid",devDependencies:{quackage:"^1.0.33"},dependencies:{"fable-serviceproviderbase":"^3.0.15"}}},{}],59:[function(e,t,r){t.exports=class{constructor(){this.getRandomValues="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)}generateWhatWGBytes(){let e=new Uint8Array(16);return this.getRandomValues(e),e}generateRandomBytes(){let e=new Uint8Array(16);for(let t,r=0;r<16;r++)3&r||(t=4294967296*Math.random()),e[r]=t>>>((3&r)<<3)&255;return e}generate(){return this.getRandomValues?this.generateWhatWGBytes():this.generateRandomBytes()}}},{}],60:[function(e,t,r){const n=e("fable-serviceproviderbase").CoreServiceProviderBase,s=e("./Fable-UUID-Random.js"),i=e("../package.json");class o extends n{constructor(e,t){super(e,t),this.serviceType="UUID",this._Package=i,this._UUIDModeRandom="object"==typeof e&&"UUIDModeRandom"in e&&1==e.UUIDModeRandom,this._UUIDLength="object"==typeof e&&"UUIDLength"in e?e.UUIDLength+0:8,this._UUIDRandomDictionary="object"==typeof e&&"UUIDDictionary"in e?e.UUIDDictionary+0:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",this.randomByteGenerator=new s,this._HexLookup=[];for(let e=0;e<256;++e)this._HexLookup[e]=(e+256).toString(16).substr(1)}bytesToUUID(e){let t=0;return[this._HexLookup[e[t++]],this._HexLookup[e[t++]],this._HexLookup[e[t++]],this._HexLookup[e[t++]],"-",this._HexLookup[e[t++]],this._HexLookup[e[t++]],"-",this._HexLookup[e[t++]],this._HexLookup[e[t++]],"-",this._HexLookup[e[t++]],this._HexLookup[e[t++]],"-",this._HexLookup[e[t++]],this._HexLookup[e[t++]],this._HexLookup[e[t++]],this._HexLookup[e[t++]],this._HexLookup[e[t++]],this._HexLookup[e[t++]]].join("")}generateUUIDv4(){new Array(16);var e=this.randomByteGenerator.generate();return e[6]=15&e[6]|64,e[8]=63&e[8]|128,this.bytesToUUID(e)}generateRandom(){let e="";for(let t=0;t<this._UUIDLength;t++)e+=this._UUIDRandomDictionary.charAt(Math.floor(Math.random()*(this._UUIDRandomDictionary.length-1)));return e}getUUID(){return this._UUIDModeRandom?this.generateRandom():this.generateUUIDv4()}}t.exports=o,t.exports.new=function(e){return new o(e)}},{"../package.json":58,"./Fable-UUID-Random.js":59,"fable-serviceproviderbase":53}],61:[function(e,t,r){var n=Object.prototype.toString,s=Math.max,i=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var s=0;s<t.length;s+=1)r[s+e.length]=t[s];return r};t.exports=function(e){var t=this;if("function"!=typeof t||"[object Function]"!==n.apply(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);for(var r,o=function(e,t){for(var r=[],n=t||0,s=0;n<e.length;n+=1,s+=1)r[s]=e[n];return r}(arguments,1),a=s(0,t.length-o.length),l=[],u=0;u<a;u++)l[u]="$"+u;if(r=Function("binder","return function ("+function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r}(l,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof r){var n=t.apply(this,i(o,arguments));return Object(n)===n?n:this}return t.apply(e,i(o,arguments))})),t.prototype){var c=function(){};c.prototype=t.prototype,r.prototype=new c,c.prototype=null}return r}},{}],62:[function(e,t,r){var n=e("./implementation");t.exports=Function.prototype.bind||n},{"./implementation":61}],63:[function(e,t,r){var n,s=e("es-errors"),i=e("es-errors/eval"),o=e("es-errors/range"),a=e("es-errors/ref"),l=e("es-errors/syntax"),u=e("es-errors/type"),c=e("es-errors/uri"),h=Function,f=function(e){try{return h('"use strict"; return ('+e+").constructor;")()}catch(e){}},p=Object.getOwnPropertyDescriptor;if(p)try{p({},"")}catch(e){p=null}var d=function(){throw new u},g=p?function(){try{return d}catch(e){try{return p(arguments,"callee").get}catch(e){return d}}}():d,y=e("has-symbols")(),m=e("has-proto")(),b=Object.getPrototypeOf||(m?function(e){return e.__proto__}:null),v={},S="undefined"!=typeof Uint8Array&&b?b(Uint8Array):n,P={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":y&&b?b([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":v,"%AsyncGenerator%":v,"%AsyncGeneratorFunction%":v,"%AsyncIteratorPrototype%":v,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":s,"%eval%":eval,"%EvalError%":i,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":h,"%GeneratorFunction%":v,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":y&&b?b(b([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&y&&b?b((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":o,"%ReferenceError%":a,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&y&&b?b((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":y&&b?b(""[Symbol.iterator]()):n,"%Symbol%":y?Symbol:n,"%SyntaxError%":l,"%ThrowTypeError%":g,"%TypedArray%":S,"%TypeError%":u,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":c,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};if(b)try{null.error}catch(e){var T=b(b(e));P["%Error.prototype%"]=T}var w=function e(t){var r;if("%AsyncFunction%"===t)r=f("async function () {}");else if("%GeneratorFunction%"===t)r=f("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=f("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var s=e("%AsyncGenerator%");s&&b&&(r=b(s.prototype))}return P[t]=r,r},x={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},E=e("function-bind"),k=e("hasown"),A=E.call(Function.call,Array.prototype.concat),O=E.call(Function.apply,Array.prototype.splice),_=E.call(Function.call,String.prototype.replace),j=E.call(Function.call,String.prototype.slice),N=E.call(Function.call,RegExp.prototype.exec),R=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,M=/\\(\\)?/g,L=function(e,t){var r,n=e;if(k(x,n)&&(n="%"+(r=x[n])[0]+"%"),k(P,n)){var s=P[n];if(s===v&&(s=w(n)),void 0===s&&!t)throw new u("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:s}}throw new l("intrinsic "+e+" does not exist!")};t.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new u('"allowMissing" argument must be a boolean');if(null===N(/^%?[^%]*%?$/,e))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=j(e,0,1),r=j(e,-1);if("%"===t&&"%"!==r)throw new l("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new l("invalid intrinsic syntax, expected opening `%`");var n=[];return _(e,R,(function(e,t,r,s){n[n.length]=r?_(s,M,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",s=L("%"+n+"%",t),i=s.name,o=s.value,a=!1,c=s.alias;c&&(n=c[0],O(r,A([0,1],c)));for(var h=1,f=!0;h<r.length;h+=1){var d=r[h],g=j(d,0,1),y=j(d,-1);if(('"'===g||"'"===g||"`"===g||'"'===y||"'"===y||"`"===y)&&g!==y)throw new l("property names with quotes must have matching quotes");if("constructor"!==d&&f||(a=!0),k(P,i="%"+(n+="."+d)+"%"))o=P[i];else if(null!=o){if(!(d in o)){if(!t)throw new u("base intrinsic for "+e+" exists, but the property is not available.");return}if(p&&h+1>=r.length){var m=p(o,d);o=(f=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:o[d]}else f=k(o,d),o=o[d];f&&!a&&(P[i]=o)}}return o}},{"es-errors":38,"es-errors/eval":37,"es-errors/range":39,"es-errors/ref":40,"es-errors/syntax":41,"es-errors/type":42,"es-errors/uri":43,"function-bind":62,"has-proto":66,"has-symbols":67,hasown:69}],64:[function(e,t,r){var n=e("get-intrinsic")("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(e){n=null}t.exports=n},{"get-intrinsic":63}],65:[function(e,t,r){var n=e("get-intrinsic")("%Object.defineProperty%",!0),s=function(){if(n)try{return n({},"a",{value:1}),!0}catch(e){return!1}return!1};s.hasArrayLengthDefineBug=function(){if(!s())return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},t.exports=s},{"get-intrinsic":63}],66:[function(e,t,r){var n={foo:{}},s=Object;t.exports=function(){return{__proto__:n}.foo===n.foo&&!({__proto__:null}instanceof s)}},{}],67:[function(e,t,r){var n="undefined"!=typeof Symbol&&Symbol,s=e("./shams");t.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&s())))}},{"./shams":68}],68:[function(e,t,r){t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var s=Object.getOwnPropertyDescriptor(e,t);if(42!==s.value||!0!==s.enumerable)return!1}return!0}},{}],69:[function(e,t,r){var n=Function.prototype.call,s=Object.prototype.hasOwnProperty,i=e("function-bind");t.exports=i.call(n,s)},{"function-bind":62}],70:[function(e,t,r){var n=e("http"),s=e("url"),i=t.exports;for(var o in n)n.hasOwnProperty(o)&&(i[o]=n[o]);function a(e){if("string"==typeof e&&(e=s.parse(e)),e.protocol||(e.protocol="https:"),"https:"!==e.protocol)throw new Error('Protocol "'+e.protocol+'" not supported. Expected "https:"');return e}i.request=function(e,t){return e=a(e),n.request.call(this,e,t)},i.get=function(e,t){return e=a(e),n.get.call(this,e,t)}},{http:106,url:127}],71:[function(e,t,r){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */r.read=function(e,t,r,n,s){var i,o,a=8*s-n-1,l=(1<<a)-1,u=l>>1,c=-7,h=r?s-1:0,f=r?-1:1,p=e[t+h];for(h+=f,i=p&(1<<-c)-1,p>>=-c,c+=a;c>0;i=256*i+e[t+h],h+=f,c-=8);for(o=i&(1<<-c)-1,i>>=-c,c+=n;c>0;o=256*o+e[t+h],h+=f,c-=8);if(0===i)i=1-u;else{if(i===l)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),i-=u}return(p?-1:1)*o*Math.pow(2,i-n)},r.write=function(e,t,r,n,s,i){var o,a,l,u=8*i-s-1,c=(1<<u)-1,h=c>>1,f=23===s?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:i-1,d=n?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),(t+=o+h>=1?f/l:f*Math.pow(2,1-h))*l>=2&&(o++,l/=2),o+h>=c?(a=0,o=c):o+h>=1?(a=(t*l-1)*Math.pow(2,s),o+=h):(a=t*Math.pow(2,h-1)*Math.pow(2,s),o=0));s>=8;e[r+p]=255&a,p+=d,a/=256,s-=8);for(o=o<<s|a,u+=s;u>0;e[r+p]=255&o,p+=d,o/=256,u-=8);e[r+p-d]|=128*g}},{}],72:[function(e,t,r){"function"==typeof Object.create?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},{}],73:[function(e,t,r){t.exports=(e,t)=>t.startsWith(e)&&t.endsWith(e)?t.substring(1,t.length-1):t},{}],74:[function(e,t,r){let n=e("./Manyfest-LogToConsole.js");t.exports=class{constructor(e,t){this.logInfo="function"==typeof e?e:n,this.logError="function"==typeof t?t:n,this.translationTable={}}translationCount(){return Object.keys(this.translationTable).length}addTranslation(e){if("object"!=typeof e)return this.logError("Hash translation addTranslation expected a translation be type object but was passed in "+typeof e),!1;Object.keys(e).forEach((t=>{"string"!=typeof e[t]?this.logError(`Hash translation addTranslation expected a translation destination hash for [${t}] to be a string but the referrant was a ${typeof e[t]}`):this.translationTable[t]=e[t]}))}removeTranslationHash(e){e in this.translationTable&&delete this.translationTable[e]}removeTranslation(e){if("string"==typeof e)return this.removeTranslationHash(e),!0;if("object"==typeof e){return Object.keys(e).forEach((e=>{this.removeTranslation(e)})),!0}return this.logError("Hash translation removeTranslation expected either a string or an object but the passed-in translation was type "+typeof e),!1}clearTranslations(){this.translationTable={}}translate(e){return e in this.translationTable?this.translationTable[e]:e}}},{"./Manyfest-LogToConsole.js":75}],75:[function(e,t,r){t.exports=(e,t)=>{let r="string"==typeof e?e:"";console.log(`[Manyfest] ${r}`),t&&console.log(JSON.stringify(t))}},{}],76:[function(e,t,r){const n=e("./Manyfest-LogToConsole.js"),s=e("./Manyfest-ObjectAddress-GetValue.js");let i={DataFormat:e("./Manyfest-ObjectAddress-Parser.js")};t.exports=class{constructor(e,t){this.logInfo="function"==typeof e?e:n,this.logError="function"==typeof t?t:n,this.getObjectValueClass=new s(this.logInfo,this.logError)}checkAddressExists(e,t,r){if("object"!=typeof e)return!1;if("string"!=typeof t)return!1;let s=void 0===r?e:r,o=i.DataFormat.stringGetFirstSegment(t);if(o.length==t.length){let r=t.indexOf("["),n=t.indexOf("]"),s=t.indexOf("(");if(s>0&&i.DataFormat.stringCountEnclosures(t)>0){let r=t.substring(0,s).trim();return r in e&&"function"==typeof e[r]}if(r>0&&n>r&&n-r>1){let s=t.substring(0,r).trim();if("object"!=typeof e[s])return!1;let i=t.substring(r+1,n).trim(),o=parseInt(i,10);return Array.isArray(e[s])!=isNaN(o)&&(isNaN(o)?(i=this.cleanWrapCharacters('"',i),i=this.cleanWrapCharacters("`",i),i=this.cleanWrapCharacters("'",i),i in e[s]):o in e[s])}return t in e}{let a=o,l=t.substring(o.length+1),u=a.indexOf("["),c=a.indexOf("]"),h=a.indexOf("(");if(h>0&&i.DataFormat.stringCountEnclosures(a)>0){let o=a.substring(0,h).trim();if("function"==(e[o],!1))return!1;let u=i.DataFormat.stringGetSegments(i.DataFormat.stringGetEnclosureValueByIndex(a.substring(o.length),0),",");if(0==u.length||""==u[0]){if(!(o in e))return n.log(`Function ${o} does not exist (address [${t}])`),!1;try{return this.checkAddressExists(e[o].apply(e),l,s)}catch(e){return n.log(`Error calling function ${o} (address [${t}]): ${e.message}`),!1}}else{let s=[],i=void 0===r?e:r;for(let e=0;e<u.length;e++)s.push(this.getObjectValueClass.getValueAtAddress(i,u[e]));if(!(o in e))return n.log(`Function ${o} does not exist (address [${t}])`),!1;try{return this.checkAddressExists(e[o].apply(e,s),l,i)}catch(e){return n.log(`Error calling function ${o} (address [${t}]): ${e.message}`),!1}}}else if(u>0&&c>u&&c-u>1){let t=a.substring(0,u).trim(),r=a.substring(u+1,c).trim(),n=parseInt(r,10);return Array.isArray(e[t])!=isNaN(n)&&(isNaN(n)?(r=this.cleanWrapCharacters('"',r),r=this.cleanWrapCharacters("`",r),r=this.cleanWrapCharacters("'",r),this.checkAddressExists(e[t][r],l,s)):this.checkAddressExists(e[t][n],l,s))}return(!(a in e)||"object"==typeof e[a])&&(a in e||(e[a]={}),this.checkAddressExists(e[a],l,s))}}}},{"./Manyfest-LogToConsole.js":75,"./Manyfest-ObjectAddress-GetValue.js":78,"./Manyfest-ObjectAddress-Parser.js":79}],77:[function(e,t,r){let n=e("./Manyfest-LogToConsole.js"),s=e("./Manyfest-CleanWrapCharacters.js"),i=e("../source/Manyfest-ParseConditionals.js");t.exports=class{constructor(e,t){this.logInfo="function"==typeof e?e:n,this.logError="function"==typeof t?t:n,this.cleanWrapCharacters=s}checkRecordFilters(e,t){return i(this,e,t)}deleteValueAtAddress(e,t,r){if("object"!=typeof e)return;if("string"!=typeof t)return;let n="";"string"==typeof r&&(n=r);let s=t.indexOf(".");if(-1==s){let r=t.indexOf("["),n=t.indexOf("]"),s=t.indexOf("{}");if(r>0&&n>r&&n-r>1){let s=t.substring(0,r).trim();if("object"!=typeof e[s])return!1;let i=t.substring(r+1,n).trim(),o=parseInt(i,10);return Array.isArray(e[s])!=isNaN(o)&&(isNaN(o)?(i=this.cleanWrapCharacters('"',i),i=this.cleanWrapCharacters("`",i),i=this.cleanWrapCharacters("'",i),delete e[s][i],!0):(delete e[s][o],!0))}if(r>0&&n>r&&n-r==1){let n=t.substring(0,r).trim();if(!Array.isArray(e[n]))return!1;let s=e[n];for(let e=s.length-1;e>=0;e--){this.checkRecordFilters(t,s[e])&&s.splice(e,1)}return!0}if(s>0){let r=t.substring(0,s).trim();return"object"==typeof e[r]&&(delete e[r],!0)}return delete e[t],!0}{let r=t.substring(0,s),i=t.substring(s+1),o=r.indexOf("["),a=r.indexOf("]");if(o>0&&a>o&&a-o>1){let t=r.substring(0,o).trim(),s=r.substring(o+1,a).trim(),l=parseInt(s,10);return Array.isArray(e[t])!=isNaN(l)&&("object"==typeof e[t]&&(isNaN(l)?(s=this.cleanWrapCharacters('"',s),s=this.cleanWrapCharacters("`",s),s=this.cleanWrapCharacters("'",s),n=`${n}${n.length>0?".":""}${r}`,this.deleteValueAtAddress(e[t][s],i,n)):(n=`${n}${n.length>0?".":""}${r}`,this.deleteValueAtAddress(e[t][l],i,n))))}if(o>0&&a>o&&a-o==1){let r=t.substring(0,o).trim();if(!Array.isArray(e[r]))return!1;let s=e[r];n=`${n}${n.length>0?".":""}${r}`;let a={};for(let t=0;t<s.length;t++){let s=`${n}[${t}]`,o=this.deleteValueAtAddress(e[r][t],i,s);a[`${s}.${i}`]=o}return a}let l=t.indexOf("{}");if(l>0){let r=t.substring(0,l).trim();if("object"!=typeof e[r])return!1;let s=e[r],o=Object.keys(s);n=`${n}${n.length>0?".":""}${r}`;let a={};for(let s=0;s<o.length;s++){let l=`${n}.${o[s]}`,u=this.deleteValueAtAddress(e[r][o[s]],i,l);this.checkRecordFilters(t,u)&&(a[`${l}.${i}`]=u)}return a}return r in e&&"object"!=typeof e[r]?void 0:r in e?(n=`${n}${n.length>0?".":""}${r}`,this.deleteValueAtAddress(e[r],i,n)):(n=`${n}${n.length>0?".":""}${r}`,e[r]={},this.deleteValueAtAddress(e[r],i,n))}}}},{"../source/Manyfest-ParseConditionals.js":82,"./Manyfest-CleanWrapCharacters.js":73,"./Manyfest-LogToConsole.js":75}],78:[function(e,t,r){let n=e("./Manyfest-LogToConsole.js"),s=e("./Manyfest-CleanWrapCharacters.js"),i=e("../source/Manyfest-ParseConditionals.js"),o={DataFormat:e("./Manyfest-ObjectAddress-Parser.js")};t.exports=class{constructor(e,t){this.logInfo="function"==typeof e?e:n,this.logError="function"==typeof t?t:n,this.cleanWrapCharacters=s}checkRecordFilters(e,t){return i(this,e,t)}getValueAtAddress(e,t,r,n){if("object"!=typeof e)return;if(null===e)return;if("string"!=typeof t)return;let s="";"string"==typeof r&&(s=r);let i=void 0===n?e:n,a=o.DataFormat.stringGetFirstSegment(t);if(""==a){let e=o.DataFormat.stringGetSegments(s),r=0;for(let e=0;e<t.length&&"."==t.charAt(e);e++)r++;let n=e.length-r;if(n<0)return;{let s=t.slice(r);return n>0&&(s=`${e.slice(0,n).join(".")}.${s}`),this.logInfo(`Back-navigation detected. Recursing back to address [${s}]`),this.getValueAtAddress(i,s)}}if(a.length!=t.length){let r=a,l=t.substring(a.length+1),u=r.indexOf("["),c=r.indexOf("]"),h=r.indexOf("(");if(h>0&&o.DataFormat.stringCountEnclosures(r)>0){let a=r.substring(0,h).trim();if(s=`${s}${s.length>0?".":""}${r}`,"function"==(e[a],!1))return!1;let u=o.DataFormat.stringGetSegments(o.DataFormat.stringGetEnclosureValueByIndex(r.substring(a.length),0),",");if(0==u.length||""==u[0]){if(!(a in e))return console.log(`Function ${a} does not exist (address [${t}])`),!1;try{return this.getValueAtAddress(e[a].apply(e),l,s,i)}catch(e){return console.log(`Error in getValueAtAddress calling function ${a} (address [${t}]): ${e.message}`),!1}}else{let r=[],i=void 0===n?e:n;for(let e=0;e<u.length;e++)!(u[e].length>=2)||'"'!=u[e].charAt(0)&&"'"!=u[e].charAt(0)&&"`"!=u[e].charAt(0)||'"'!=u[e].charAt(u[e].length-1)&&"'"!=u[e].charAt(u[e].length-1)&&"`"!=u[e].charAt(u[e].length-1)?r.push(this.getValueAtAddress(i,u[e])):r.push(u[e].substring(1,u[e].length-1));if(!(a in e))return console.log(`Function ${a} does not exist (address [${t}])`),!1;try{return this.getValueAtAddress(e[a].apply(e,r),l,s,i)}catch(e){return console.log(`Error in getValueAtAddress calling function ${a} (address [${t}]): ${e.message}`),!1}}}else{if(u>0&&c>u&&c-u>1){let t=r.substring(0,u).trim(),n=r.substring(u+1,c).trim(),o=parseInt(n,10);if(Array.isArray(e[t])==isNaN(o))return;if("object"!=typeof e[t])return;return isNaN(o)?(n=this.cleanWrapCharacters('"',n),n=this.cleanWrapCharacters("`",n),n=this.cleanWrapCharacters("'",n),s=`${s}${s.length>0?".":""}${r}`,this.getValueAtAddress(e[t][n],l,s,i)):(s=`${s}${s.length>0?".":""}${r}`,this.getValueAtAddress(e[t][o],l,s,i))}if(u>0&&c>u&&c-u==1){let r=t.substring(0,u).trim();if(!Array.isArray(e[r]))return!1;let n=e[r];s=`${s}${s.length>0?".":""}${r}`;let o={};for(let t=0;t<n.length;t++){let n=`${s}[${t}]`,a=this.getValueAtAddress(e[r][t],l,n,i);o[`${n}.${l}`]=a}return o}}let f=t.indexOf("{}");if(f>0){let r=t.substring(0,f).trim();if("object"!=typeof e[r])return!1;let n=e[r],o=Object.keys(n);s=`${s}${s.length>0?".":""}${r}`;let a={};for(let n=0;n<o.length;n++){let u=`${s}.${o[n]}`,c=this.getValueAtAddress(e[r][o[n]],l,u,i);this.checkRecordFilters(t,c)&&(a[`${u}.${l}`]=c)}return a}return r in e&&"object"!=typeof e[r]?void 0:r in e?(s=`${s}${s.length>0?".":""}${r}`,this.getValueAtAddress(e[r],l,s,i)):(s=`${s}${s.length>0?".":""}${r}`,e[r]={},this.getValueAtAddress(e[r],l,s,i))}{let r=t.indexOf("["),s=t.indexOf("]"),i=t.indexOf("{}"),a=t.indexOf("(");if(!(a>0&&o.DataFormat.stringCountEnclosures(t)>0)){if(r>0&&s>r&&s-r>1){let n=t.substring(0,r).trim();if("object"!=typeof e[n])return;let i=t.substring(r+1,s).trim(),o=parseInt(i,10);if(Array.isArray(e[n])==isNaN(o))return;return isNaN(o)?(i=this.cleanWrapCharacters('"',i),i=this.cleanWrapCharacters("`",i),i=this.cleanWrapCharacters("'",i),e[n][i]):e[n][o]}if(r>0&&s>r&&s-r==1){let n=t.substring(0,r).trim();if(!Array.isArray(e[n]))return!1;let s=e[n],i=[];for(let e=0;e<s.length;e++){this.checkRecordFilters(t,s[e])&&i.push(s[e])}return i}if(i>0){let r=t.substring(0,i).trim();return"object"==typeof e[r]&&e[r]}return null!=typeof e[t]?e[t]:null}{let r=t.substring(0,a).trim();if("function"==(e[r],!1))return!1;let s=o.DataFormat.stringGetSegments(o.DataFormat.stringGetEnclosureValueByIndex(t.substring(r.length),0),",");if(0==s.length||""==s[0]){if(!(r in e))return console.log(`Function ${r} does not exist (address [${t}])`),!1;try{return e[r].apply(e)}catch(e){return console.log(`Error in getValueAtAddress calling function ${r} (address [${t}]): ${e.message}`),!1}}else{let i=[],o=void 0===n?e:n;for(let e=0;e<s.length;e++)!(s[e].length>=2)||'"'!=s[e].charAt(0)&&"'"!=s[e].charAt(0)&&"`"!=s[e].charAt(0)||'"'!=s[e].charAt(s[e].length-1)&&"'"!=s[e].charAt(s[e].length-1)&&"`"!=s[e].charAt(s[e].length-1)?i.push(this.getValueAtAddress(o,s[e])):i.push(s[e].substring(1,s[e].length-1));if(!(r in e))return console.log(`Function ${r} does not exist (address [${t}])`),!1;try{return e[r].apply(e,i)}catch(e){return console.log(`Error in getValueAtAddress calling function ${r} (address [${t}]): ${e.message}`),!1}}}}}}},{"../source/Manyfest-ParseConditionals.js":82,"./Manyfest-CleanWrapCharacters.js":73,"./Manyfest-LogToConsole.js":75,"./Manyfest-ObjectAddress-Parser.js":79}],79:[function(e,t,r){t.exports={stringCountSegments:(e,t,r,n)=>{let s="string"==typeof e?e:"",i="string"==typeof t?t:".",o="object"==typeof r?pEnclosureStart:{"{":0,"[":1,"(":2},a="object"==typeof n?pEnclosureEnd:{"}":0,"]":1,")":2};if(e.length<1)return 0;let l=1,u=[];for(let e=0;e<s.length;e++)s[e]==i&&0==u.length?l++:s[e]in o?u.push(o[s[e]]):s[e]in a&&a[s[e]]==u[u.length-1]&&u.pop();return l},stringGetFirstSegment:(e,t,r,n)=>{let s="string"==typeof e?e:"",i="string"==typeof t?t:".",o="object"==typeof r?pEnclosureStart:{"{":0,"[":1,"(":2},a="object"==typeof n?pEnclosureEnd:{"}":0,"]":1,")":2};if(e.length<1)return 0;let l=[];for(let e=0;e<s.length;e++){if(s[e]==i&&0==l.length)return s.substring(0,e);s[e]in o?l.push(o[s[e]]):s[e]in a&&a[s[e]]==l[l.length-1]&&l.pop()}return s},stringGetSegments:(e,t,r,n)=>{let s="string"==typeof e?e:"",i="string"==typeof t?t:".",o="object"==typeof r?pEnclosureStart:{"{":0,"[":1,"(":2},a="object"==typeof n?pEnclosureEnd:{"}":0,"]":1,")":2},l=0,u=[];if(e.length<1)return u;let c=[];for(let e=0;e<s.length;e++)s[e]==i&&0==c.length?(u.push(s.substring(l,e)),l=e+1):s[e]in o?c.push(o[s[e]]):s[e]in a&&a[s[e]]==c[c.length-1]&&c.pop();return l<s.length&&u.push(s.substring(l)),u},stringCountEnclosures:(e,t,r)=>{let n="string"==typeof e?e:"",s="string"==typeof t?t:"(",i="string"==typeof r?r:")",o=0,a=0;for(let e=0;e<n.length;e++)n[e]==s?(0==a&&o++,a++):n[e]==i&&a--;return o},stringGetEnclosureValueByIndex:(e,t,r,n)=>{let s="string"==typeof e?e:"",i="number"==typeof t?t:0,o="string"==typeof r?r:"(",a="string"==typeof n?n:")",l=0,u=0,c=!1,h=0,f=0;for(let e=0;e<s.length;e++)s[e]==o?(u++,1==u&&(l++,i==l-1&&(c=!0,h=e))):s[e]==a&&(u--,0==u&&c&&f<=h&&(f=e,c=!1));return l<=i?"":f>0&&f>h?s.substring(h+1,f):s.substring(h+1)}}},{}],80:[function(e,t,r){let n=e("./Manyfest-LogToConsole.js"),s=e("./Manyfest-CleanWrapCharacters.js");t.exports=class{constructor(e,t){this.logInfo="function"==typeof e?e:n,this.logError="function"==typeof t?t:n,this.cleanWrapCharacters=s}setValueAtAddress(e,t,r){if("object"!=typeof e)return!1;if("string"!=typeof t)return!1;let n=t.indexOf(".");if(-1==n){let n=t.indexOf("["),s=t.indexOf("]");if(n>0&&s>n&&s-n>1){let i=t.substring(0,n).trim(),o=t.substring(n+1,s).trim(),a=parseInt(o,10),l=!isNaN(a);if(null==e[i]&&(e[i]=l?[]:{}),"object"!=typeof e[i])return!1;if(Array.isArray(e[i])==isNaN(a))return!1;if(isNaN(a))return o=this.cleanWrapCharacters('"',o),o=this.cleanWrapCharacters("`",o),o=this.cleanWrapCharacters("'",o),o in e[i]||(e[i][o]={}),e[i][o]=r,!0;for(;e[i].length<a+1;)e[i].push({});return e[i][a]=r,!0}return e[t]=r,!0}{let s=t.substring(0,n),i=t.substring(n+1),o=s.indexOf("["),a=s.indexOf("]");if(o>0&&a>o&&a-o>1){let t=s.substring(0,o).trim(),n=s.substring(o+1,a).trim(),l=parseInt(n,10),u=!isNaN(l);if(null==e[t]&&(e[t]=u?[]:{}),Array.isArray(e[t])!=u)return!1;if(isNaN(l))return n=this.cleanWrapCharacters('"',n),n=this.cleanWrapCharacters("`",n),n=this.cleanWrapCharacters("'",n),n in e[t]||(e[t][n]={}),this.setValueAtAddress(e[t][n],i,r);for(;e[t].length<l+1;)e[t].push({});return this.setValueAtAddress(e[t][l],i,r)}return s in e&&"object"!=typeof e[s]?("__ERROR"in e||(e.__ERROR={}),e.__ERROR[t]=r,!1):(s in e||(e[s]={}),this.setValueAtAddress(e[s],i,r))}}}},{"./Manyfest-CleanWrapCharacters.js":73,"./Manyfest-LogToConsole.js":75}],81:[function(e,t,r){let n=e("./Manyfest-LogToConsole.js");t.exports=class{constructor(e,t){this.logInfo="function"==typeof e?e:n,this.logError="function"==typeof t?t:n}generateAddressses(e,t,r){let n="string"==typeof t?t:"",s="object"==typeof r?r:{},i=typeof e,o={Address:n,Hash:n,Name:n,InSchema:!1};switch("object"==i&&null==e&&(i="null"),i){case"string":o.DataType="String",o.Default=e,s[n]=o;break;case"number":case"bigint":o.DataType="Number",o.Default=e,s[n]=o;break;case"undefined":case"null":o.DataType="Any",o.Default=e,s[n]=o;break;case"object":if(Array.isArray(e)){o.DataType="Array",""!=n&&(s[n]=o);for(let t=0;t<e.length;t++)this.generateAddressses(e[t],`${n}[${t}]`,s)}else{o.DataType="Object",""!=n&&(s[n]=o,n+=".");let t=Object.keys(e);for(let r=0;r<t.length;r++)this.generateAddressses(e[t[r]],`${n}${t[r]}`,s)}}return s}}},{"./Manyfest-LogToConsole.js":75}],82:[function(e,t,r){const n="<<~?",s="?~>>",i=(e,t,r,n,s)=>{switch(n){case"TRUE":return!0===e.getValueAtAddress(t,r);case"FALSE":return!1===e.getValueAtAddress(t,r);case"LNGT":case"LENGTH_GREATER_THAN":switch(typeof e.getValueAtAddress(t,r)){case"string":case"object":return e.getValueAtAddress(t,r).length>s;default:return!1}break;case"LNLT":case"LENGTH_LESS_THAN":switch(typeof e.getValueAtAddress(t,r)){case"string":case"object":return e.getValueAtAddress(t,r).length<s;default:return!1}break;case"!=":return e.getValueAtAddress(t,r)!=s;case"<":return e.getValueAtAddress(t,r)<s;case">":return e.getValueAtAddress(t,r)>s;case"<=":return e.getValueAtAddress(t,r)<=s;case">=":return e.getValueAtAddress(t,r)>=s;case"===":return e.getValueAtAddress(t,r)===s;default:return e.getValueAtAddress(t,r)==s}};t.exports=(e,t,r)=>{let o=!0,a=t.indexOf(n);for(;-1!=a;){let l=t.indexOf(s,a+4);if(-1!=l){let s=t.substring(a+4,l).split(","),u=s[0],c="EXISTS";s.length>1&&(c=s[1]);let h=!1;s.length>2&&(h=s[2]),o=o&&i(e,r,u,c,h),a=t.indexOf(n,l+4)}else a=-1}return o}},{}],83:[function(e,t,r){let n=e("./Manyfest-LogToConsole.js");t.exports=class{constructor(e,t){this.logInfo="function"==typeof e?e:n,this.logError="function"==typeof t?t:n}resolveAddressMappings(e,t){if("object"!=typeof e)return this.logError("Attempted to resolve address mapping but the descriptor was not an object."),!1;if("object"!=typeof t)return!0;let r=Object.keys(e),n={};return r.forEach((t=>{"Hash"in e[t]&&(n[e[t].Hash]=t)})),Object.keys(t).forEach((r=>{let s=t[r],i=!1,o=!1;r in e?i=r:r in n&&(i=n[r]),i?(o=e[i],delete e[i]):o={Hash:r},e[s]=o})),!0}safeResolveAddressMappings(e,t){let r=JSON.parse(JSON.stringify(e));return this.resolveAddressMappings(r,t),r}mergeAddressMappings(e,t){if("object"!=typeof t||"object"!=typeof e)return this.logError("Attempted to merge two schema descriptors but both were not objects."),!1;let r=JSON.parse(JSON.stringify(t)),n=JSON.parse(JSON.stringify(e));return Object.keys(r).forEach((e=>{e in n||(n[e]=r[e])})),n}}},{"./Manyfest-LogToConsole.js":75}],84:[function(e,t,r){const n=e("fable-serviceproviderbase");let s=e("./Manyfest-LogToConsole.js"),i=e("./Manyfest-HashTranslation.js"),o=e("./Manyfest-ObjectAddress-CheckAddressExists.js"),a=e("./Manyfest-ObjectAddress-GetValue.js"),l=e("./Manyfest-ObjectAddress-SetValue.js"),u=e("./Manyfest-ObjectAddress-DeleteValue.js"),c=e("./Manyfest-ObjectAddressGeneration.js"),h=e("./Manyfest-SchemaManipulation.js");const f={Scope:"DEFAULT",Descriptors:{}};class p extends n{constructor(e,t,r){void 0===e?super({}):super(e,t,r),this.options,this.serviceType="Manifest",this.logInfo=s,this.logError=s,this.objectAddressCheckAddressExists=new o(this.logInfo,this.logError),this.objectAddressGetValue=new a(this.logInfo,this.logError),this.objectAddressSetValue=new l(this.logInfo,this.logError),this.objectAddressDeleteValue=new u(this.logInfo,this.logError),"defaultValues"in this.options||(this.options.defaultValues={String:"",Number:0,Float:0,Integer:0,PreciseNumber:"0.0",Boolean:!1,Binary:0,DateTime:0,Array:[],Object:{},Null:null}),"strict"in this.options||(this.options.strict=!1),this.scope=void 0,this.elementAddresses=void 0,this.elementHashes=void 0,this.elementDescriptors=void 0,this.reset(),"object"==typeof this.options&&this.loadManifest(this.options),this.schemaManipulations=new h(this.logInfo,this.logError),this.objectAddressGeneration=new c(this.logInfo,this.logError),this.hashTranslations=new i(this.logInfo,this.logError),this.numberRegex=/^[+-]?(\d+(\.\d*)?|\.\d+)([eE][+-]?\d+)?$/}reset(){this.scope="DEFAULT",this.elementAddresses=[],this.elementHashes={},this.elementDescriptors={}}clone(){let e=JSON.parse(JSON.stringify(this.options)),t=new p(this.getManifest(),this.logInfo,this.logError,e);return t.hashTranslations.addTranslation(this.hashTranslations.translationTable),t}deserialize(e){return this.loadManifest(JSON.parse(e))}loadManifest(e){"object"!=typeof e&&this.logError(`(${this.scope}) Error loading manifest; expecting an object but parameter was type ${typeof e}.`);let t="object"==typeof e?e:{},r=Object.keys(f);for(let e=0;e<r.length;e++)r[e]in t||(t[r[e]]=JSON.parse(JSON.stringify(f[r[e]])));if("Scope"in t?"string"==typeof t.Scope?this.scope=t.Scope:this.logError(`(${this.scope}) Error loading scope from manifest; expecting a string but property was type ${typeof t.Scope}.`,t):this.logError(`(${this.scope}) Error loading scope from manifest object. Property "Scope" does not exist in the root of the object.`,t),"Descriptors"in t)if("object"==typeof t.Descriptors){let e=Object.keys(t.Descriptors);for(let r=0;r<e.length;r++)this.addDescriptor(e[r],t.Descriptors[e[r]])}else this.logError(`(${this.scope}) Error loading description object from manifest object. Expecting an object in 'Manifest.Descriptors' but the property was type ${typeof t.Descriptors}.`,t);else this.logError(`(${this.scope}) Error loading object description from manifest object. Property "Descriptors" does not exist in the root of the Manifest object.`,t);if("HashTranslations"in t&&"object"==typeof t.HashTranslations)for(let e=0;e<t.HashTranslations.length;e++);}serialize(){return JSON.stringify(this.getManifest())}getManifest(){return{Scope:this.scope,Descriptors:JSON.parse(JSON.stringify(this.elementDescriptors)),HashTranslations:JSON.parse(JSON.stringify(this.hashTranslations.translationTable))}}addDescriptor(e,t){return"object"==typeof t?("Address"in t||(t.Address=e),e in this.elementDescriptors||this.elementAddresses.push(e),this.elementDescriptors[e]=t,this.elementHashes[e]=e,"Hash"in t?this.elementHashes[t.Hash]=e:t.Hash=e,!0):(this.logError(`(${this.scope}) Error loading object descriptor for address '${e}' from manifest object. Expecting an object but property was type ${typeof t}.`),!1)}getDescriptorByHash(e){return this.getDescriptor(this.resolveHashAddress(e))}getDescriptor(e){return this.elementDescriptors[e]}eachDescriptor(e){let t=Object.keys(this.elementDescriptors);for(let r=0;r<t.length;r++)e(this.elementDescriptors[t[r]])}checkAddressExistsByHash(e,t){return this.checkAddressExists(e,this.resolveHashAddress(t))}checkAddressExists(e,t){return this.objectAddressCheckAddressExists.checkAddressExists(e,t)}resolveHashAddress(e){let t,r=e in this.elementHashes,n=e in this.hashTranslations.translationTable;return t=r&&!n?this.elementHashes[e]:n&&this.hashTranslations.translate(e)in this.elementHashes?this.elementHashes[this.hashTranslations.translate(e)]:n?this.hashTranslations.translate(e):e,t}getValueByHash(e,t){let r=this.getValueAtAddress(e,this.resolveHashAddress(t));return void 0===r&&(r=this.getDefaultValue(this.getDescriptorByHash(t))),r}lintAddress(e){let t=e.trim();return(t.endsWith("..")||t.endsWith("."))&&(t=t.slice(0,-1)),t}getValueAtAddress(e,t){let r=this.lintAddress(t);if(""==r)return void this.logError(`(${this.scope}) Error getting value at address; address is an empty string.`,e);let n=this.objectAddressGetValue.getValueAtAddress(e,r);return void 0===n&&(n=this.getDefaultValue(this.getDescriptor(r))),n}setValueByHash(e,t,r){return this.setValueAtAddress(e,this.resolveHashAddress(t),r)}setValueAtAddress(e,t,r){let n=this.lintAddress(t);return this.objectAddressSetValue.setValueAtAddress(e,n,r)}deleteValueByHash(e,t,r){return this.deleteValueAtAddress(e,this.resolveHashAddress(t),r)}deleteValueAtAddress(e,t,r){let n=this.lintAddress(t);return this.objectAddressDeleteValue.deleteValueAtAddress(e,n,r)}validate(e){let t={Error:null,Errors:[],MissingElements:[]};"object"!=typeof e&&(t.Error=!0,t.Errors.push("Expected passed in object to be type object but was passed in "+typeof e));let r=(e,r)=>{t.Error=!0,t.Errors.push(`Element at address "${e}" ${r}.`)};for(let n=0;n<this.elementAddresses.length;n++){let s=this.getDescriptor(this.elementAddresses[n]),i=this.checkAddressExists(e,s.Address),o=this.getValueAtAddress(e,s.Address);if(void 0!==o&&i||(t.MissingElements.push(s.Address),(s.Required||this.options.strict)&&r(s.Address,"is flagged REQUIRED but is not set in the object")),s.DataType){let e=typeof o;switch(s.DataType.toString().trim().toLowerCase()){case"string":"string"!=e&&r(s.Address,`has a DataType ${s.DataType} but is of the type ${e}`);break;case"precisenumber":"string"!=e?r(s.Address,`has a DataType ${s.DataType} but is of the type ${e}`):this.numberRegex.test(o)||r(s.Address,`has a DataType ${s.DataType} but is not a valid number`);break;case"number":"number"!=e&&r(s.Address,`has a DataType ${s.DataType} but is of the type ${e}`);break;case"integer":if("number"!=e)r(s.Address,`has a DataType ${s.DataType} but is of the type ${e}`);else{o.toString().indexOf(".")>-1&&r(s.Address,`has a DataType ${s.DataType} but has a decimal point in the number.`)}break;case"float":"number"!=e&&r(s.Address,`has a DataType ${s.DataType} but is of the type ${e}`);break;case"datetime":"Invalid Date"==new Date(o).toString()&&r(s.Address,`has a DataType ${s.DataType} but is not parsable as a Date by Javascript`);default:"string"!=e&&r(s.Address,`has a DataType ${s.DataType} (which auto-converted to String because it was unrecognized) but is of the type ${e}`)}}}return t}getDefaultValue(e){if("object"==typeof e){if("Default"in e)return e.Default;{let t="DataType"in e?e.DataType:"String";return t in this.options.defaultValues?this.options.defaultValues[t]:null}}}populateDefaults(e,t){return this.populateObject(e,t,(e=>"Default"in e))}populateObject(e,t,r){let n="object"==typeof e?e:{},s=void 0!==t&&t,i="function"==typeof r?r:e=>!0;return this.elementAddresses.forEach((e=>{let t=this.getDescriptor(e);i(t)&&(!s&&this.checkAddressExists(n,e)||this.setValueAtAddress(n,e,this.getDefaultValue(t)))})),n}}t.exports=p},{"./Manyfest-HashTranslation.js":74,"./Manyfest-LogToConsole.js":75,"./Manyfest-ObjectAddress-CheckAddressExists.js":76,"./Manyfest-ObjectAddress-DeleteValue.js":77,"./Manyfest-ObjectAddress-GetValue.js":78,"./Manyfest-ObjectAddress-SetValue.js":80,"./Manyfest-ObjectAddressGeneration.js":81,"./Manyfest-SchemaManipulation.js":83,"fable-serviceproviderbase":53}],85:[function(e,t,r){(function(r){(function(){var n="function"==typeof Map&&Map.prototype,s=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=n&&s&&"function"==typeof s.get?s.get:null,o=n&&Map.prototype.forEach,a="function"==typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=a&&l&&"function"==typeof l.get?l.get:null,c=a&&Set.prototype.forEach,h="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,p="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,d=Boolean.prototype.valueOf,g=Object.prototype.toString,y=Function.prototype.toString,m=String.prototype.match,b=String.prototype.slice,v=String.prototype.replace,S=String.prototype.toUpperCase,P=String.prototype.toLowerCase,T=RegExp.prototype.test,w=Array.prototype.concat,x=Array.prototype.join,E=Array.prototype.slice,k=Math.floor,A="function"==typeof BigInt?BigInt.prototype.valueOf:null,O=Object.getOwnPropertySymbols,_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,j="function"==typeof Symbol&&"object"==typeof Symbol.iterator,N="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===j||"symbol")?Symbol.toStringTag:null,R=Object.prototype.propertyIsEnumerable,M=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function L(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||T.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-k(-e):k(e);if(n!==e){var s=String(n),i=b.call(t,s.length+1);return v.call(s,r,"$&_")+"."+v.call(v.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return v.call(t,r,"$&_")}var C=e("./util.inspect"),D=C.custom,$=U(D)?D:null;function F(e,t,r){var n="double"===(r.quoteStyle||t)?'"':"'";return n+e+n}function I(e){return v.call(String(e),/"/g,"&quot;")}function V(e){return!("[object Array]"!==z(e)||N&&"object"==typeof e&&N in e)}function B(e){return!("[object RegExp]"!==z(e)||N&&"object"==typeof e&&N in e)}function U(e){if(j)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!_)return!1;try{return _.call(e),!0}catch(e){}return!1}t.exports=function e(t,n,s,a){var l=n||{};if(W(l,"quoteStyle")&&"single"!==l.quoteStyle&&"double"!==l.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(W(l,"maxStringLength")&&("number"==typeof l.maxStringLength?l.maxStringLength<0&&l.maxStringLength!==1/0:null!==l.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var g=!W(l,"customInspect")||l.customInspect;if("boolean"!=typeof g&&"symbol"!==g)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(W(l,"indent")&&null!==l.indent&&"\t"!==l.indent&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(W(l,"numericSeparator")&&"boolean"!=typeof l.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var S=l.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return G(t,l);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var T=String(t);return S?L(t,T):T}if("bigint"==typeof t){var k=String(t)+"n";return S?L(t,k):k}var O=void 0===l.depth?5:l.depth;if(void 0===s&&(s=0),s>=O&&O>0&&"object"==typeof t)return V(t)?"[Array]":"[Object]";var D=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=x.call(Array(e.indent+1)," ")}return{base:r,prev:x.call(Array(t+1),r)}}(l,s);if(void 0===a)a=[];else if(q(a,t)>=0)return"[Circular]";function H(t,r,n){if(r&&(a=E.call(a)).push(r),n){var i={depth:l.depth};return W(l,"quoteStyle")&&(i.quoteStyle=l.quoteStyle),e(t,i,s+1,a)}return e(t,l,s+1,a)}if("function"==typeof t&&!B(t)){var J=function(e){if(e.name)return e.name;var t=m.call(y.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),ee=Z(t,H);return"[Function"+(J?": "+J:" (anonymous)")+"]"+(ee.length>0?" { "+x.call(ee,", ")+" }":"")}if(U(t)){var te=j?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):_.call(t);return"object"!=typeof t||j?te:Y(te)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var re="<"+P.call(String(t.nodeName)),ne=t.attributes||[],se=0;se<ne.length;se++)re+=" "+ne[se].name+"="+F(I(ne[se].value),"double",l);return re+=">",t.childNodes&&t.childNodes.length&&(re+="..."),re+="</"+P.call(String(t.nodeName))+">"}if(V(t)){if(0===t.length)return"[]";var ie=Z(t,H);return D&&!function(e){for(var t=0;t<e.length;t++)if(q(e[t],"\n")>=0)return!1;return!0}(ie)?"["+X(ie,D)+"]":"[ "+x.call(ie,", ")+" ]"}if(function(e){return!("[object Error]"!==z(e)||N&&"object"==typeof e&&N in e)}(t)){var oe=Z(t,H);return"cause"in Error.prototype||!("cause"in t)||R.call(t,"cause")?0===oe.length?"["+String(t)+"]":"{ ["+String(t)+"] "+x.call(oe,", ")+" }":"{ ["+String(t)+"] "+x.call(w.call("[cause]: "+H(t.cause),oe),", ")+" }"}if("object"==typeof t&&g){if($&&"function"==typeof t[$]&&C)return C(t,{depth:O-s});if("symbol"!==g&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{u.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var ae=[];return o&&o.call(t,(function(e,r){ae.push(H(r,t,!0)+" => "+H(e,t))})),Q("Map",i.call(t),ae,D)}if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{u.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var le=[];return c&&c.call(t,(function(e){le.push(H(e,t))})),Q("Set",u.call(t),le,D)}if(function(e){if(!h||!e||"object"!=typeof e)return!1;try{h.call(e,h);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return K("WeakMap");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{h.call(e,h)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return K("WeakSet");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{return p.call(e),!0}catch(e){}return!1}(t))return K("WeakRef");if(function(e){return!("[object Number]"!==z(e)||N&&"object"==typeof e&&N in e)}(t))return Y(H(Number(t)));if(function(e){if(!e||"object"!=typeof e||!A)return!1;try{return A.call(e),!0}catch(e){}return!1}(t))return Y(H(A.call(t)));if(function(e){return!("[object Boolean]"!==z(e)||N&&"object"==typeof e&&N in e)}(t))return Y(d.call(t));if(function(e){return!("[object String]"!==z(e)||N&&"object"==typeof e&&N in e)}(t))return Y(H(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if(t===r)return"{ [object globalThis] }";if(!function(e){return!("[object Date]"!==z(e)||N&&"object"==typeof e&&N in e)}(t)&&!B(t)){var ue=Z(t,H),ce=M?M(t)===Object.prototype:t instanceof Object||t.constructor===Object,he=t instanceof Object?"":"null prototype",fe=!ce&&N&&Object(t)===t&&N in t?b.call(z(t),8,-1):he?"Object":"",pe=(ce||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(fe||he?"["+x.call(w.call([],fe||[],he||[]),": ")+"] ":"");return 0===ue.length?pe+"{}":D?pe+"{"+X(ue,D)+"}":pe+"{ "+x.call(ue,", ")+" }"}return String(t)};var H=Object.prototype.hasOwnProperty||function(e){return e in this};function W(e,t){return H.call(e,t)}function z(e){return g.call(e)}function q(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function G(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return G(b.call(e,0,t.maxStringLength),t)+n}return F(v.call(v.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,J),"single",t)}function J(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+S.call(t.toString(16))}function Y(e){return"Object("+e+")"}function K(e){return e+" { ? }"}function Q(e,t,r,n){return e+" ("+t+") {"+(n?X(r,n):x.call(r,", "))+"}"}function X(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+x.call(e,","+r)+"\n"+t.prev}function Z(e,t){var r=V(e),n=[];if(r){n.length=e.length;for(var s=0;s<e.length;s++)n[s]=W(e,s)?t(e[s],e):""}var i,o="function"==typeof O?O(e):[];if(j){i={};for(var a=0;a<o.length;a++)i["$"+o[a]]=o[a]}for(var l in e)W(e,l)&&(r&&String(Number(l))===l&&l<e.length||j&&i["$"+l]instanceof Symbol||(T.call(/[^\w$]/,l)?n.push(t(l,e)+": "+t(e[l],e)):n.push(l+": "+t(e[l],e))));if("function"==typeof O)for(var u=0;u<o.length;u++)R.call(e,o[u])&&n.push("["+t(o[u])+"]: "+t(e[o[u]],e));return n}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./util.inspect":18}],86:[function(e,t,r){var n=e("wrappy");function s(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function i(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},r=e.name||"Function wrapped with `once`";return t.onceError=r+" shouldn't be called more than once",t.called=!1,t}t.exports=n(s),t.exports.strict=n(i),s.proto=s((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return s(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return i(this)},configurable:!0})}))},{wrappy:129}],87:[function(e,t,r){(function(e){(function(){function r(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var r,n="",s=0,i=-1,o=0,a=0;a<=e.length;++a){if(a<e.length)r=e.charCodeAt(a);else{if(47===r)break;r=47}if(47===r){if(i===a-1||1===o);else if(i!==a-1&&2===o){if(n.length<2||2!==s||46!==n.charCodeAt(n.length-1)||46!==n.charCodeAt(n.length-2))if(n.length>2){var l=n.lastIndexOf("/");if(l!==n.length-1){-1===l?(n="",s=0):s=(n=n.slice(0,l)).length-1-n.lastIndexOf("/"),i=a,o=0;continue}}else if(2===n.length||1===n.length){n="",s=0,i=a,o=0;continue}t&&(n.length>0?n+="/..":n="..",s=2)}else n.length>0?n+="/"+e.slice(i+1,a):n=e.slice(i+1,a),s=a-i-1;i=a,o=0}else 46===r&&-1!==o?++o:o=-1}return n}var s={resolve:function(){for(var t,s="",i=!1,o=arguments.length-1;o>=-1&&!i;o--){var a;o>=0?a=arguments[o]:(void 0===t&&(t=e.cwd()),a=t),r(a),0!==a.length&&(s=a+"/"+s,i=47===a.charCodeAt(0))}return s=n(s,!i),i?s.length>0?"/"+s:"/":s.length>0?s:"."},normalize:function(e){if(r(e),0===e.length)return".";var t=47===e.charCodeAt(0),s=47===e.charCodeAt(e.length-1);return 0!==(e=n(e,!t)).length||t||(e="."),e.length>0&&s&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return r(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,t=0;t<arguments.length;++t){var n=arguments[t];r(n),n.length>0&&(void 0===e?e=n:e+="/"+n)}return void 0===e?".":s.normalize(e)},relative:function(e,t){if(r(e),r(t),e===t)return"";if((e=s.resolve(e))===(t=s.resolve(t)))return"";for(var n=1;n<e.length&&47===e.charCodeAt(n);++n);for(var i=e.length,o=i-n,a=1;a<t.length&&47===t.charCodeAt(a);++a);for(var l=t.length-a,u=o<l?o:l,c=-1,h=0;h<=u;++h){if(h===u){if(l>u){if(47===t.charCodeAt(a+h))return t.slice(a+h+1);if(0===h)return t.slice(a+h)}else o>u&&(47===e.charCodeAt(n+h)?c=h:0===h&&(c=0));break}var f=e.charCodeAt(n+h);if(f!==t.charCodeAt(a+h))break;47===f&&(c=h)}var p="";for(h=n+c+1;h<=i;++h)h!==i&&47!==e.charCodeAt(h)||(0===p.length?p+="..":p+="/..");return p.length>0?p+t.slice(a+c):(a+=c,47===t.charCodeAt(a)&&++a,t.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(r(e),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,s=-1,i=!0,o=e.length-1;o>=1;--o)if(47===(t=e.charCodeAt(o))){if(!i){s=o;break}}else i=!1;return-1===s?n?"/":".":n&&1===s?"//":e.slice(0,s)},basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');r(e);var n,s=0,i=-1,o=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var a=t.length-1,l=-1;for(n=e.length-1;n>=0;--n){var u=e.charCodeAt(n);if(47===u){if(!o){s=n+1;break}}else-1===l&&(o=!1,l=n+1),a>=0&&(u===t.charCodeAt(a)?-1==--a&&(i=n):(a=-1,i=l))}return s===i?i=l:-1===i&&(i=e.length),e.slice(s,i)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!o){s=n+1;break}}else-1===i&&(o=!1,i=n+1);return-1===i?"":e.slice(s,i)},extname:function(e){r(e);for(var t=-1,n=0,s=-1,i=!0,o=0,a=e.length-1;a>=0;--a){var l=e.charCodeAt(a);if(47!==l)-1===s&&(i=!1,s=a+1),46===l?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1);else if(!i){n=a+1;break}}return-1===t||-1===s||0===o||1===o&&t===s-1&&t===n+1?"":e.slice(t,s)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var r=t.dir||t.root,n=t.base||(t.name||"")+(t.ext||"");return r?r===t.root?r+n:r+e+n:n}("/",e)},parse:function(e){r(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var n,s=e.charCodeAt(0),i=47===s;i?(t.root="/",n=1):n=0;for(var o=-1,a=0,l=-1,u=!0,c=e.length-1,h=0;c>=n;--c)if(47!==(s=e.charCodeAt(c)))-1===l&&(u=!1,l=c+1),46===s?-1===o?o=c:1!==h&&(h=1):-1!==o&&(h=-1);else if(!u){a=c+1;break}return-1===o||-1===l||0===h||1===h&&o===l-1&&o===a+1?-1!==l&&(t.base=t.name=0===a&&i?e.slice(1,l):e.slice(a,l)):(0===a&&i?(t.name=e.slice(1,o),t.base=e.slice(1,l)):(t.name=e.slice(a,o),t.base=e.slice(a,l)),t.ext=e.slice(o,l)),a>0?t.dir=e.slice(0,a-1):i&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};s.posix=s,t.exports=s}).call(this)}).call(this,e("_process"))},{_process:91}],88:[function(e,t,r){
1
+ "use strict";function _defineProperty2(e,t,r){return(t=_toPropertyKey2(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _toPropertyKey2(e){var t=_toPrimitive2(e,"string");return"symbol"==typeof t?t:String(t)}function _toPrimitive2(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Fable=e()}}((function(){return function e(t,r,n){function s(o,a){if(!r[o]){if(!t[o]){var l="function"==typeof require&&require;if(!a&&l)return l(o,!0);if(i)return i(o,!0);var u=new Error("Cannot find module '"+o+"'");throw u.code="MODULE_NOT_FOUND",u}var c=r[o]={exports:{}};t[o][0].call(c.exports,(function(e){return s(t[o][1][e]||e)}),c,c.exports,e,t,r,n)}return r[o].exports}for(var i="function"==typeof require&&require,o=0;o<n.length;o++)s(n[o]);return s}({1:[function(e,t,r){var n=e("async.util.eachoflimit"),s=e("async.util.withoutindex");t.exports=function(e,t,r,i){return n(t)(e,s(r),i)}},{"async.util.eachoflimit":3,"async.util.withoutindex":14}],2:[function(e,t,r){t.exports=function(e){return function t(r){function n(){return e.length&&e[r].apply(null,arguments),n.next()}return n.next=function(){return r<e.length-1?t(r+1):null},n}(0)}},{}],3:[function(e,t,r){var n=e("async.util.once"),s=e("async.util.noop"),i=e("async.util.onlyonce"),o=e("async.util.keyiterator");t.exports=function(e){return function(t,r,a){a=n(a||s);var l=o(t=t||[]);if(e<=0)return a(null);var u=!1,c=0,h=!1;!function n(){if(u&&c<=0)return a(null);for(;c<e&&!h;){var s=l();if(null===s)return u=!0,void(c<=0&&a(null));c+=1,r(t[s],s,i((function(e){c-=1,e?(a(e),h=!0):n()})))}}()}}},{"async.util.keyiterator":7,"async.util.noop":9,"async.util.once":10,"async.util.onlyonce":11}],4:[function(e,t,r){var n=e("async.util.setimmediate"),s=e("async.util.restparam");t.exports=function(e){return s((function(t){var r=t.pop();t.push((function(){var e=arguments;s?n((function(){r.apply(null,e)})):r.apply(null,e)}));var s=!0;e.apply(this,t),s=!1}))}},{"async.util.restparam":12,"async.util.setimmediate":13}],5:[function(e,t,r){t.exports=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},{}],6:[function(e,t,r){var n=e("async.util.isarray");t.exports=function(e){return n(e)||"number"==typeof e.length&&e.length>=0&&e.length%1==0}},{"async.util.isarray":5}],7:[function(e,t,r){var n=e("async.util.keys"),s=e("async.util.isarraylike");t.exports=function(e){var t,r,i=-1;return s(e)?(t=e.length,function(){return++i<t?i:null}):(r=n(e),t=r.length,function(){return++i<t?r[i]:null})}},{"async.util.isarraylike":6,"async.util.keys":8}],8:[function(e,t,r){t.exports=Object.keys||function(e){var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);return t}},{}],9:[function(e,t,r){t.exports=function(){}},{}],10:[function(e,t,r){t.exports=function(e){return function(){null!==e&&(e.apply(this,arguments),e=null)}}},{}],11:[function(e,t,r){t.exports=function(e){return function(){if(null===e)throw new Error("Callback was already called.");e.apply(this,arguments),e=null}}},{}],12:[function(e,t,r){t.exports=function(e,t){return t=null==t?e.length-1:+t,function(){for(var r=Math.max(arguments.length-t,0),n=new Array(r),s=0;s<r;s++)n[s]=arguments[s+t];switch(t){case 0:return e.call(this,n);case 1:return e.call(this,arguments[0],n)}}}},{}],13:[function(e,t,r){(function(e){(function(){var r="function"==typeof e&&e,n=function(e){setTimeout(e,0)};t.exports=function(e){return(r||n)(e)}}).call(this)}).call(this,e("timers").setImmediate)},{timers:126}],14:[function(e,t,r){t.exports=function(e){return function(t,r,n){return e(t,n)}}},{}],15:[function(e,t,r){var n=e("async.util.once"),s=e("async.util.noop"),i=e("async.util.isarray"),o=e("async.util.restparam"),a=e("async.util.ensureasync"),l=e("async.iterator");t.exports=function(e,t){if(t=n(t||s),!i(e))return t(new Error("First argument to waterfall must be an array of functions"));if(!e.length)return t();!function e(r){return o((function(n,s){if(n)t.apply(null,[n].concat(s));else{var i=r.next();i?s.push(e(i)):s.push(t),a(r).apply(null,s)}}))}(l(e))()}},{"async.iterator":2,"async.util.ensureasync":4,"async.util.isarray":5,"async.util.noop":9,"async.util.once":10,"async.util.restparam":12}],16:[function(e,t,r){r.byteLength=function(e){var t=l(e),r=t[0],n=t[1];return 3*(r+n)/4-n},r.toByteArray=function(e){var t,r,n=l(e),o=n[0],a=n[1],u=new i(function(e,t,r){return 3*(t+r)/4-r}(0,o,a)),c=0,h=a>0?o-4:o;for(r=0;r<h;r+=4)t=s[e.charCodeAt(r)]<<18|s[e.charCodeAt(r+1)]<<12|s[e.charCodeAt(r+2)]<<6|s[e.charCodeAt(r+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;2===a&&(t=s[e.charCodeAt(r)]<<2|s[e.charCodeAt(r+1)]>>4,u[c++]=255&t);1===a&&(t=s[e.charCodeAt(r)]<<10|s[e.charCodeAt(r+1)]<<4|s[e.charCodeAt(r+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t);return u},r.fromByteArray=function(e){for(var t,r=e.length,s=r%3,i=[],o=16383,a=0,l=r-s;a<l;a+=o)i.push(u(e,a,a+o>l?l:a+o));1===s?(t=e[r-1],i.push(n[t>>2]+n[t<<4&63]+"==")):2===s&&(t=(e[r-2]<<8)+e[r-1],i.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return i.join("")};for(var n=[],s=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)n[a]=o[a],s[o.charCodeAt(a)]=a;function l(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function u(e,t,r){for(var s,i,o=[],a=t;a<r;a+=3)s=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(n[(i=s)>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return o.join("")}s["-".charCodeAt(0)]=62,s["_".charCodeAt(0)]=63},{}],17:[function(e,t,r){!function(e){var r,n=1e6,s=1e6,i="[big.js] ",o=i+"Invalid ",a=o+"decimal places",l=o+"rounding mode",u=i+"Division by zero",c={},h=void 0,f=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function p(e,t,r,n){var s=e.c;if(r===h&&(r=e.constructor.RM),0!==r&&1!==r&&2!==r&&3!==r)throw Error(l);if(t<1)n=3===r&&(n||!!s[0])||0===t&&(1===r&&s[0]>=5||2===r&&(s[0]>5||5===s[0]&&(n||s[1]!==h))),s.length=1,n?(e.e=e.e-t+1,s[0]=1):s[0]=e.e=0;else if(t<s.length){if(n=1===r&&s[t]>=5||2===r&&(s[t]>5||5===s[t]&&(n||s[t+1]!==h||1&s[t-1]))||3===r&&(n||!!s[0]),s.length=t,n)for(;++s[--t]>9;)if(s[t]=0,0===t){++e.e,s.unshift(1);break}for(t=s.length;!s[--t];)s.pop()}return e}function d(e,t,r){var n=e.e,s=e.c.join(""),i=s.length;if(t)s=s.charAt(0)+(i>1?"."+s.slice(1):"")+(n<0?"e":"e+")+n;else if(n<0){for(;++n;)s="0"+s;s="0."+s}else if(n>0)if(++n>i)for(n-=i;n--;)s+="0";else n<i&&(s=s.slice(0,n)+"."+s.slice(n));else i>1&&(s=s.charAt(0)+"."+s.slice(1));return e.s<0&&r?"-"+s:s}c.abs=function(){var e=new this.constructor(this);return e.s=1,e},c.cmp=function(e){var t,r=this,n=r.c,s=(e=new r.constructor(e)).c,i=r.s,o=e.s,a=r.e,l=e.e;if(!n[0]||!s[0])return n[0]?i:s[0]?-o:0;if(i!=o)return i;if(t=i<0,a!=l)return a>l^t?1:-1;for(o=(a=n.length)<(l=s.length)?a:l,i=-1;++i<o;)if(n[i]!=s[i])return n[i]>s[i]^t?1:-1;return a==l?0:a>l^t?1:-1},c.div=function(e){var t=this,r=t.constructor,s=t.c,i=(e=new r(e)).c,o=t.s==e.s?1:-1,l=r.DP;if(l!==~~l||l<0||l>n)throw Error(a);if(!i[0])throw Error(u);if(!s[0])return e.s=o,e.c=[e.e=0],e;var c,f,d,g,y,m=i.slice(),b=c=i.length,v=s.length,S=s.slice(0,c),P=S.length,T=e,w=T.c=[],x=0,E=l+(T.e=t.e-e.e)+1;for(T.s=o,o=E<0?0:E,m.unshift(0);P++<c;)S.push(0);do{for(d=0;d<10;d++){if(c!=(P=S.length))g=c>P?1:-1;else for(y=-1,g=0;++y<c;)if(i[y]!=S[y]){g=i[y]>S[y]?1:-1;break}if(!(g<0))break;for(f=P==c?i:m;P;){if(S[--P]<f[P]){for(y=P;y&&!S[--y];)S[y]=9;--S[y],S[P]+=10}S[P]-=f[P]}for(;!S[0];)S.shift()}w[x++]=g?d:++d,S[0]&&g?S[P]=s[b]||0:S=[s[b]]}while((b++<v||S[0]!==h)&&o--);return w[0]||1==x||(w.shift(),T.e--,E--),x>E&&p(T,E,r.RM,S[0]!==h),T},c.eq=function(e){return 0===this.cmp(e)},c.gt=function(e){return this.cmp(e)>0},c.gte=function(e){return this.cmp(e)>-1},c.lt=function(e){return this.cmp(e)<0},c.lte=function(e){return this.cmp(e)<1},c.minus=c.sub=function(e){var t,r,n,s,i=this,o=i.constructor,a=i.s,l=(e=new o(e)).s;if(a!=l)return e.s=-l,i.plus(e);var u=i.c.slice(),c=i.e,h=e.c,f=e.e;if(!u[0]||!h[0])return h[0]?e.s=-l:u[0]?e=new o(i):e.s=1,e;if(a=c-f){for((s=a<0)?(a=-a,n=u):(f=c,n=h),n.reverse(),l=a;l--;)n.push(0);n.reverse()}else for(r=((s=u.length<h.length)?u:h).length,a=l=0;l<r;l++)if(u[l]!=h[l]){s=u[l]<h[l];break}if(s&&(n=u,u=h,h=n,e.s=-e.s),(l=(r=h.length)-(t=u.length))>0)for(;l--;)u[t++]=0;for(l=t;r>a;){if(u[--r]<h[r]){for(t=r;t&&!u[--t];)u[t]=9;--u[t],u[r]+=10}u[r]-=h[r]}for(;0===u[--l];)u.pop();for(;0===u[0];)u.shift(),--f;return u[0]||(e.s=1,u=[f=0]),e.c=u,e.e=f,e},c.mod=function(e){var t,r=this,n=r.constructor,s=r.s,i=(e=new n(e)).s;if(!e.c[0])throw Error(u);return r.s=e.s=1,t=1==e.cmp(r),r.s=s,e.s=i,t?new n(r):(s=n.DP,i=n.RM,n.DP=n.RM=0,r=r.div(e),n.DP=s,n.RM=i,this.minus(r.times(e)))},c.neg=function(){var e=new this.constructor(this);return e.s=-e.s,e},c.plus=c.add=function(e){var t,r,n,s=this,i=s.constructor;if(e=new i(e),s.s!=e.s)return e.s=-e.s,s.minus(e);var o=s.e,a=s.c,l=e.e,u=e.c;if(!a[0]||!u[0])return u[0]||(a[0]?e=new i(s):e.s=s.s),e;if(a=a.slice(),t=o-l){for(t>0?(l=o,n=u):(t=-t,n=a),n.reverse();t--;)n.push(0);n.reverse()}for(a.length-u.length<0&&(n=u,u=a,a=n),t=u.length,r=0;t;a[t]%=10)r=(a[--t]=a[t]+u[t]+r)/10|0;for(r&&(a.unshift(r),++l),t=a.length;0===a[--t];)a.pop();return e.c=a,e.e=l,e},c.pow=function(e){var t=this,r=new t.constructor("1"),n=r,i=e<0;if(e!==~~e||e<-1e6||e>s)throw Error(o+"exponent");for(i&&(e=-e);1&e&&(n=n.times(t)),e>>=1;)t=t.times(t);return i?r.div(n):n},c.prec=function(e,t){if(e!==~~e||e<1||e>n)throw Error(o+"precision");return p(new this.constructor(this),e,t)},c.round=function(e,t){if(e===h)e=0;else if(e!==~~e||e<-n||e>n)throw Error(a);return p(new this.constructor(this),e+this.e+1,t)},c.sqrt=function(){var e,t,r,n=this,s=n.constructor,o=n.s,a=n.e,l=new s("0.5");if(!n.c[0])return new s(n);if(o<0)throw Error(i+"No square root");0===(o=Math.sqrt(+d(n,!0,!0)))||o===1/0?((t=n.c.join("")).length+a&1||(t+="0"),a=((a+1)/2|0)-(a<0||1&a),e=new s(((o=Math.sqrt(t))==1/0?"5e":(o=o.toExponential()).slice(0,o.indexOf("e")+1))+a)):e=new s(o+""),a=e.e+(s.DP+=4);do{r=e,e=l.times(r.plus(n.div(r)))}while(r.c.slice(0,a).join("")!==e.c.slice(0,a).join(""));return p(e,(s.DP-=4)+e.e+1,s.RM)},c.times=c.mul=function(e){var t,r=this,n=r.constructor,s=r.c,i=(e=new n(e)).c,o=s.length,a=i.length,l=r.e,u=e.e;if(e.s=r.s==e.s?1:-1,!s[0]||!i[0])return e.c=[e.e=0],e;for(e.e=l+u,o<a&&(t=s,s=i,i=t,u=o,o=a,a=u),t=new Array(u=o+a);u--;)t[u]=0;for(l=a;l--;){for(a=0,u=o+l;u>l;)a=t[u]+i[l]*s[u-l-1]+a,t[u--]=a%10,a=a/10|0;t[u]=a}for(a?++e.e:t.shift(),l=t.length;!t[--l];)t.pop();return e.c=t,e},c.toExponential=function(e,t){var r=this,s=r.c[0];if(e!==h){if(e!==~~e||e<0||e>n)throw Error(a);for(r=p(new r.constructor(r),++e,t);r.c.length<e;)r.c.push(0)}return d(r,!0,!!s)},c.toFixed=function(e,t){var r=this,s=r.c[0];if(e!==h){if(e!==~~e||e<0||e>n)throw Error(a);for(e=e+(r=p(new r.constructor(r),e+r.e+1,t)).e+1;r.c.length<e;)r.c.push(0)}return d(r,!1,!!s)},c.toJSON=c.toString=function(){var e=this,t=e.constructor;return d(e,e.e<=t.NE||e.e>=t.PE,!!e.c[0])},c.toNumber=function(){var e=+d(this,!0,!0);if(!0===this.constructor.strict&&!this.eq(e.toString()))throw Error(i+"Imprecise conversion");return e},c.toPrecision=function(e,t){var r=this,s=r.constructor,i=r.c[0];if(e!==h){if(e!==~~e||e<1||e>n)throw Error(o+"precision");for(r=p(new s(r),e,t);r.c.length<e;)r.c.push(0)}return d(r,e<=r.e||r.e<=s.NE||r.e>=s.PE,!!i)},c.valueOf=function(){var e=this,t=e.constructor;if(!0===t.strict)throw Error(i+"valueOf disallowed");return d(e,e.e<=t.NE||e.e>=t.PE,!0)},r=function e(){function t(r){var n=this;if(!(n instanceof t))return r===h&&0===arguments.length?e():new t(r);if(r instanceof t)n.s=r.s,n.e=r.e,n.c=r.c.slice();else{if("string"!=typeof r){if(!0===t.strict&&"bigint"!=typeof r)throw TypeError(o+"value");r=0===r&&1/r<0?"-0":String(r)}!function(e,t){var r,n,s;if(!f.test(t))throw Error(o+"number");e.s="-"==t.charAt(0)?(t=t.slice(1),-1):1,(r=t.indexOf("."))>-1&&(t=t.replace(".",""));(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length);for(s=t.length,n=0;n<s&&"0"==t.charAt(n);)++n;if(n==s)e.c=[e.e=0];else{for(;s>0&&"0"==t.charAt(--s););for(e.e=r-n-1,e.c=[],r=0;n<=s;)e.c[r++]=+t.charAt(n++)}}(n,r)}n.constructor=t}return t.prototype=c,t.DP=20,t.RM=1,t.NE=-7,t.PE=21,t.strict=false,t.roundDown=0,t.roundHalfUp=1,t.roundHalfEven=2,t.roundUp=3,t}(),r.default=r.Big=r,void 0!==t&&t.exports?t.exports=r:e.Big=r}(this)},{}],18:[function(e,t,r){},{}],19:[function(e,t,r){arguments[4][18][0].apply(r,arguments)},{dup:18}],20:[function(e,t,r){(function(t){(function(){var t=e("base64-js"),n=e("ieee754");r.Buffer=o,r.SlowBuffer=function(e){+e!=e&&(e=0);return o.alloc(+e)},r.INSPECT_MAX_BYTES=50;var s=2147483647;function i(e){if(e>s)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return t.__proto__=o.prototype,t}function o(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return u(e)}return a(e,t,r)}function a(e,t,r){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!o.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=0|f(e,t),n=i(r),s=n.write(e,t);s!==r&&(n=n.slice(0,s));return n}(e,t);if(ArrayBuffer.isView(e))return c(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(V(e,ArrayBuffer)||e&&V(e.buffer,ArrayBuffer))return function(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r);return n.__proto__=o.prototype,n}(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return o.from(n,t,r);var s=function(e){if(o.isBuffer(e)){var t=0|h(e.length),r=i(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return"number"!=typeof e.length||B(e.length)?i(0):c(e);if("Buffer"===e.type&&Array.isArray(e.data))return c(e.data)}(e);if(s)return s;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return o.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function u(e){return l(e),i(e<0?0:0|h(e))}function c(e){for(var t=e.length<0?0:0|h(e.length),r=i(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}function h(e){if(e>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|e}function f(e,t){if(o.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||V(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var s=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return $(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return F(e).length;default:if(s)return n?-1:$(e).length;t=(""+t).toLowerCase(),s=!0}}function p(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return O(this,t,r);case"utf8":case"utf-8":return x(this,t,r);case"ascii":return k(this,t,r);case"latin1":case"binary":return A(this,t,r);case"base64":return w(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function d(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function g(e,t,r,n,s){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),B(r=+r)&&(r=s?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(s)return-1;r=e.length-1}else if(r<0){if(!s)return-1;r=0}if("string"==typeof t&&(t=o.from(t,n)),o.isBuffer(t))return 0===t.length?-1:y(e,t,r,n,s);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?s?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):y(e,[t],r,n,s);throw new TypeError("val must be string, number or Buffer")}function y(e,t,r,n,s){var i,o=1,a=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;o=2,a/=2,l/=2,r/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(s){var c=-1;for(i=r;i<a;i++)if(u(e,i)===u(t,-1===c?0:i-c)){if(-1===c&&(c=i),i-c+1===l)return c*o}else-1!==c&&(i-=i-c),c=-1}else for(r+l>a&&(r=a-l),i=r;i>=0;i--){for(var h=!0,f=0;f<l;f++)if(u(e,i+f)!==u(t,f)){h=!1;break}if(h)return i}return-1}function m(e,t,r,n){r=Number(r)||0;var s=e.length-r;n?(n=Number(n))>s&&(n=s):n=s;var i=t.length;n>i/2&&(n=i/2);for(var o=0;o<n;++o){var a=parseInt(t.substr(2*o,2),16);if(B(a))return o;e[r+o]=a}return o}function b(e,t,r,n){return I($(t,e.length-r),e,r,n)}function v(e,t,r,n){return I(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function S(e,t,r,n){return v(e,t,r,n)}function P(e,t,r,n){return I(F(t),e,r,n)}function T(e,t,r,n){return I(function(e,t){for(var r,n,s,i=[],o=0;o<e.length&&!((t-=2)<0);++o)n=(r=e.charCodeAt(o))>>8,s=r%256,i.push(s),i.push(n);return i}(t,e.length-r),e,r,n)}function w(e,r,n){return 0===r&&n===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(r,n))}function x(e,t,r){r=Math.min(e.length,r);for(var n=[],s=t;s<r;){var i,o,a,l,u=e[s],c=null,h=u>239?4:u>223?3:u>191?2:1;if(s+h<=r)switch(h){case 1:u<128&&(c=u);break;case 2:128==(192&(i=e[s+1]))&&(l=(31&u)<<6|63&i)>127&&(c=l);break;case 3:i=e[s+1],o=e[s+2],128==(192&i)&&128==(192&o)&&(l=(15&u)<<12|(63&i)<<6|63&o)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:i=e[s+1],o=e[s+2],a=e[s+3],128==(192&i)&&128==(192&o)&&128==(192&a)&&(l=(15&u)<<18|(63&i)<<12|(63&o)<<6|63&a)>65535&&l<1114112&&(c=l)}null===c?(c=65533,h=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),s+=h}return function(e){var t=e.length;if(t<=E)return String.fromCharCode.apply(String,e);var r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=E));return r}(n)}r.kMaxLength=s,o.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(e){return!1}}(),o.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),o.poolSize=8192,o.from=function(e,t,r){return a(e,t,r)},o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,o.alloc=function(e,t,r){return function(e,t,r){return l(e),e<=0?i(e):void 0!==t?"string"==typeof r?i(e).fill(t,r):i(e).fill(t):i(e)}(e,t,r)},o.allocUnsafe=function(e){return u(e)},o.allocUnsafeSlow=function(e){return u(e)},o.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==o.prototype},o.compare=function(e,t){if(V(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),V(t,Uint8Array)&&(t=o.from(t,t.offset,t.byteLength)),!o.isBuffer(e)||!o.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,s=0,i=Math.min(r,n);s<i;++s)if(e[s]!==t[s]){r=e[s],n=t[s];break}return r<n?-1:n<r?1:0},o.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return o.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=o.allocUnsafe(t),s=0;for(r=0;r<e.length;++r){var i=e[r];if(V(i,Uint8Array)&&(i=o.from(i)),!o.isBuffer(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(n,s),s+=i.length}return n},o.byteLength=f,o.prototype._isBuffer=!0,o.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)d(this,t,t+1);return this},o.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)d(this,t,t+3),d(this,t+1,t+2);return this},o.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)d(this,t,t+7),d(this,t+1,t+6),d(this,t+2,t+5),d(this,t+3,t+4);return this},o.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?x(this,0,e):p.apply(this,arguments)},o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(e){if(!o.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===o.compare(this,e)},o.prototype.inspect=function(){var e="",t=r.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},o.prototype.compare=function(e,t,r,n,s){if(V(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),!o.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===s&&(s=this.length),t<0||r>e.length||n<0||s>this.length)throw new RangeError("out of range index");if(n>=s&&t>=r)return 0;if(n>=s)return-1;if(t>=r)return 1;if(this===e)return 0;for(var i=(s>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0),l=Math.min(i,a),u=this.slice(n,s),c=e.slice(t,r),h=0;h<l;++h)if(u[h]!==c[h]){i=u[h],a=c[h];break}return i<a?-1:a<i?1:0},o.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},o.prototype.indexOf=function(e,t,r){return g(this,e,t,r,!0)},o.prototype.lastIndexOf=function(e,t,r){return g(this,e,t,r,!1)},o.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var s=this.length-t;if((void 0===r||r>s)&&(r=s),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return m(this,e,t,r);case"utf8":case"utf-8":return b(this,e,t,r);case"ascii":return v(this,e,t,r);case"latin1":case"binary":return S(this,e,t,r);case"base64":return P(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,t,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var E=4096;function k(e,t,r){var n="";r=Math.min(e.length,r);for(var s=t;s<r;++s)n+=String.fromCharCode(127&e[s]);return n}function A(e,t,r){var n="";r=Math.min(e.length,r);for(var s=t;s<r;++s)n+=String.fromCharCode(e[s]);return n}function O(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var s="",i=t;i<r;++i)s+=D(e[i]);return s}function _(e,t,r){for(var n=e.slice(t,r),s="",i=0;i<n.length;i+=2)s+=String.fromCharCode(n[i]+256*n[i+1]);return s}function N(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function j(e,t,r,n,s,i){if(!o.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>s||t<i)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function R(e,t,r,n,s,i){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function M(e,t,r,s,i){return t=+t,r>>>=0,i||R(e,0,r,4),n.write(e,t,r,s,23,4),r+4}function L(e,t,r,s,i){return t=+t,r>>>=0,i||R(e,0,r,8),n.write(e,t,r,s,52,8),r+8}o.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var n=this.subarray(e,t);return n.__proto__=o.prototype,n},o.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||N(e,t,this.length);for(var n=this[e],s=1,i=0;++i<t&&(s*=256);)n+=this[e+i]*s;return n},o.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||N(e,t,this.length);for(var n=this[e+--t],s=1;t>0&&(s*=256);)n+=this[e+--t]*s;return n},o.prototype.readUInt8=function(e,t){return e>>>=0,t||N(e,1,this.length),this[e]},o.prototype.readUInt16LE=function(e,t){return e>>>=0,t||N(e,2,this.length),this[e]|this[e+1]<<8},o.prototype.readUInt16BE=function(e,t){return e>>>=0,t||N(e,2,this.length),this[e]<<8|this[e+1]},o.prototype.readUInt32LE=function(e,t){return e>>>=0,t||N(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},o.prototype.readUInt32BE=function(e,t){return e>>>=0,t||N(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},o.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||N(e,t,this.length);for(var n=this[e],s=1,i=0;++i<t&&(s*=256);)n+=this[e+i]*s;return n>=(s*=128)&&(n-=Math.pow(2,8*t)),n},o.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||N(e,t,this.length);for(var n=t,s=1,i=this[e+--n];n>0&&(s*=256);)i+=this[e+--n]*s;return i>=(s*=128)&&(i-=Math.pow(2,8*t)),i},o.prototype.readInt8=function(e,t){return e>>>=0,t||N(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},o.prototype.readInt16LE=function(e,t){e>>>=0,t||N(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},o.prototype.readInt16BE=function(e,t){e>>>=0,t||N(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},o.prototype.readInt32LE=function(e,t){return e>>>=0,t||N(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},o.prototype.readInt32BE=function(e,t){return e>>>=0,t||N(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},o.prototype.readFloatLE=function(e,t){return e>>>=0,t||N(e,4,this.length),n.read(this,e,!0,23,4)},o.prototype.readFloatBE=function(e,t){return e>>>=0,t||N(e,4,this.length),n.read(this,e,!1,23,4)},o.prototype.readDoubleLE=function(e,t){return e>>>=0,t||N(e,8,this.length),n.read(this,e,!0,52,8)},o.prototype.readDoubleBE=function(e,t){return e>>>=0,t||N(e,8,this.length),n.read(this,e,!1,52,8)},o.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t>>>=0,r>>>=0,n)||j(this,e,t,r,Math.pow(2,8*r)-1,0);var s=1,i=0;for(this[t]=255&e;++i<r&&(s*=256);)this[t+i]=e/s&255;return t+r},o.prototype.writeUIntBE=function(e,t,r,n){(e=+e,t>>>=0,r>>>=0,n)||j(this,e,t,r,Math.pow(2,8*r)-1,0);var s=r-1,i=1;for(this[t+s]=255&e;--s>=0&&(i*=256);)this[t+s]=e/i&255;return t+r},o.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,1,255,0),this[t]=255&e,t+1},o.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},o.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},o.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},o.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},o.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var s=Math.pow(2,8*r-1);j(this,e,t,r,s-1,-s)}var i=0,o=1,a=0;for(this[t]=255&e;++i<r&&(o*=256);)e<0&&0===a&&0!==this[t+i-1]&&(a=1),this[t+i]=(e/o|0)-a&255;return t+r},o.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var s=Math.pow(2,8*r-1);j(this,e,t,r,s-1,-s)}var i=r-1,o=1,a=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/o|0)-a&255;return t+r},o.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},o.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},o.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},o.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},o.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},o.prototype.writeFloatLE=function(e,t,r){return M(this,e,t,!0,r)},o.prototype.writeFloatBE=function(e,t,r){return M(this,e,t,!1,r)},o.prototype.writeDoubleLE=function(e,t,r){return L(this,e,t,!0,r)},o.prototype.writeDoubleBE=function(e,t,r){return L(this,e,t,!1,r)},o.prototype.copy=function(e,t,r,n){if(!o.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var s=n-r;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,n);else if(this===e&&r<t&&t<n)for(var i=s-1;i>=0;--i)e[i+t]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,n),t);return s},o.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!o.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){var s=e.charCodeAt(0);("utf8"===n&&s<128||"latin1"===n)&&(e=s)}}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var i;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{var a=o.isBuffer(e)?e:o.from(e,n),l=a.length;if(0===l)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=a[i%l]}return this};var C=/[^+/0-9A-Za-z-_]/g;function D(e){return e<16?"0"+e.toString(16):e.toString(16)}function $(e,t){var r;t=t||1/0;for(var n=e.length,s=null,i=[],o=0;o<n;++o){if((r=e.charCodeAt(o))>55295&&r<57344){if(!s){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(o+1===n){(t-=3)>-1&&i.push(239,191,189);continue}s=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),s=r;continue}r=65536+(s-55296<<10|r-56320)}else s&&(t-=3)>-1&&i.push(239,191,189);if(s=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function F(e){return t.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(C,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function I(e,t,r,n){for(var s=0;s<n&&!(s+r>=t.length||s>=e.length);++s)t[s+r]=e[s];return s}function V(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function B(e){return e!=e}}).call(this)}).call(this,e("buffer").Buffer)},{"base64-js":16,buffer:20,ieee754:71}],21:[function(e,t,r){t.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},{}],22:[function(e,t,r){const n=e("fable-serviceproviderbase"),s=e("./LinkedList.js");t.exports=class extends n{constructor(e,t,r){void 0===e?super({}):super(e,t,r),this.serviceType="ObjectCache",this._HashMap={},this._RecordMap={},this._List=new s,this.maxLength=0,this.maxAge=0}get RecordMap(){return this._RecordMap}put(e,t){if(this._HashMap.hasOwnProperty(t))return this._HashMap[t].Datum=e,this._RecordMap[t]=e,this._HashMap[t].Datum;let r=this._List.push(e,t);return this._HashMap[r.Hash]=r,this._RecordMap[t]=e,this.maxLength>0&&this._List.length>this.maxLength&&(r=this._List.pop(),delete this._RecordMap[r.Hash],delete this._HashMap[r.Hash]),r.Metadata.Created=+new Date,r.Datum}read(e){return!!this._HashMap.hasOwnProperty(e)&&this._HashMap[e].Datum}touch(e){if(!this._HashMap.hasOwnProperty(e))return!1;let t=this._List.remove(this._HashMap[e]);return delete this._RecordMap[e],delete this._HashMap[e],this.put(t.Datum,t.Hash)}expire(e){if(!this._HashMap.hasOwnProperty(e))return!1;let t=this._HashMap[e];return t=this._List.remove(t),delete this._RecordMap[t.Hash],delete this._HashMap[t.Hash],t}pruneBasedOnExpiration(e,t){let r=void 0===t?[]:t;if(this.maxAge<1)return e(r);let n=+new Date,s=Object.keys(this._HashMap);for(let e=0;e<s.length;e++)n-this._HashMap[s[e]].Metadata.Created>=this.maxAge&&r.push(this.expire(s[e]));e(r)}pruneBasedOnLength(e,t){let r=void 0===t?[]:t;if(this.maxLength>0)for(;this._List.length>this.maxLength;)r.push(this._List.pop());return e(r)}pruneCustom(e,t,r){let n=void 0===r?[]:r,s=Object.keys(this._HashMap);for(let e=0;e<s.length;e++){let r=this._HashMap[s[e]];t(r.Datum,r.Hash,r)&&n.push(this.expire(s[e]))}e(n)}prune(e){let t=[];if(this._List.length<1)return e(t);this.pruneBasedOnExpiration((r=>{this.pruneBasedOnLength(e,t)}),t)}getNode(e){return!!this._HashMap.hasOwnProperty(e)&&this._HashMap[e]}}},{"./LinkedList.js":24,"fable-serviceproviderbase":53}],23:[function(e,t,r){t.exports=class{constructor(){this.Hash=!1,this.Datum=!1,this.Metadata={},this.LeftNode=!1,this.RightNode=!1,this.__ISNODE=!0}}},{}],24:[function(e,t,r){const n=e("./LinkedList-Node.js");t.exports=class{constructor(){this.totalNodes=0,this.length=0,this.head=!1,this.tail=!1}initializeNode(e,t){if(void 0===e)return!1;this.totalNodes++;let r=void 0!==t?t:`NODE[${this.totalNodes}]`,s=new n;return s.Hash=r,s.Datum=e,s}append(e,t){let r=this.initializeNode(e,t);return!!r&&(this.length++,1==this.length?(this.head=r,this.tail=r,r):(this.tail.RightNode=r,r.LeftNode=this.tail,this.tail=r,r))}push(e,t){return this.append(e,t)}prepend(e,t){let r=this.initializeNode(e,t);return!!r&&(this.length++,1==this.length?(this.head=r,this.tail=r,r):(this.head.LeftNode=r,r.RightNode=this.head,this.head=r,r))}remove(e){return void 0!==e&&(!!e.__ISNODE&&(this.length--,this.length<1?(this.head=!1,this.tail=!1,e):e.LeftNode&&e.RightNode?(e.LeftNode.RightNode=e.RightNode,e.RightNode.LeftNode=e.LeftNode,e.RightNode=!1,e.LeftNode=!1,e):e.LeftNode?(e.LeftNode.RightNode=!1,this.tail=e.LeftNode,e.LeftNode=!1,e):(e.RightNode.LeftNode=!1,this.head=e.RightNode,e.RightNode=!1,e)))}pop(){return this.remove(this.head)}each(e,t){if(this.length<1)return t();let r=!1,n=s=>{if(s)return t(s);if(r){if(!r.RightNode)return t();r=r.RightNode}else r=this.head;e(r.Datum,r.Hash,n)};return n()}seek(e){if(!e)return!1;if(this.length<1)return!1;if(e>=this.length)return!1;let t=this.head;for(let r=0;r<e;r++)t=t.RightNode;return t}}},{"./LinkedList-Node.js":23}],25:[function(e,t,r){var n=e("get-intrinsic"),s=e("./"),i=s(n("String.prototype.indexOf"));t.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&i(e,".prototype.")>-1?s(r):r}},{"./":26,"get-intrinsic":63}],26:[function(e,t,r){var n=e("function-bind"),s=e("get-intrinsic"),i=e("set-function-length"),o=e("es-errors/type"),a=s("%Function.prototype.apply%"),l=s("%Function.prototype.call%"),u=s("%Reflect.apply%",!0)||n.call(l,a),c=s("%Object.defineProperty%",!0),h=s("%Math.max%");if(c)try{c({},"a",{value:1})}catch(e){c=null}t.exports=function(e){if("function"!=typeof e)throw new o("a function is required");var t=u(n,l,arguments);return i(t,1+h(0,e.length-(arguments.length-1)),!0)};var f=function(){return u(n,a,arguments)};c?c(t.exports,"apply",{value:f}):t.exports.apply=f},{"es-errors/type":42,"function-bind":62,"get-intrinsic":63,"set-function-length":102}],27:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.parse=function(e,t){const r=new l,n=e.length;if(n<2)return r;const s=(null==t?void 0:t.decode)||h;let i=0;do{const t=e.indexOf("=",i);if(-1===t)break;const o=e.indexOf(";",i),a=-1===o?n:o;if(t>a){i=e.lastIndexOf(";",t-1)+1;continue}const l=u(e,i,t),h=c(e,t,l),f=e.slice(l,h);if(void 0===r[f]){let n=u(e,t+1,a),i=c(e,a,n);const o=s(e.slice(n,i));r[f]=o}i=a+1}while(i<n);return r},r.serialize=function(e,t,r){const l=(null==r?void 0:r.encode)||encodeURIComponent;if(!n.test(e))throw new TypeError(`argument name is invalid: ${e}`);const u=l(t);if(!s.test(u))throw new TypeError(`argument val is invalid: ${t}`);let c=e+"="+u;if(!r)return c;if(void 0!==r.maxAge){if(!Number.isInteger(r.maxAge))throw new TypeError(`option maxAge is invalid: ${r.maxAge}`);c+="; Max-Age="+r.maxAge}if(r.domain){if(!i.test(r.domain))throw new TypeError(`option domain is invalid: ${r.domain}`);c+="; Domain="+r.domain}if(r.path){if(!o.test(r.path))throw new TypeError(`option path is invalid: ${r.path}`);c+="; Path="+r.path}if(r.expires){if(!function(e){return"[object Date]"===a.call(e)}(r.expires)||!Number.isFinite(r.expires.valueOf()))throw new TypeError(`option expires is invalid: ${r.expires}`);c+="; Expires="+r.expires.toUTCString()}r.httpOnly&&(c+="; HttpOnly");r.secure&&(c+="; Secure");r.partitioned&&(c+="; Partitioned");if(r.priority){switch("string"==typeof r.priority?r.priority.toLowerCase():void 0){case"low":c+="; Priority=Low";break;case"medium":c+="; Priority=Medium";break;case"high":c+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${r.priority}`)}}if(r.sameSite){switch("string"==typeof r.sameSite?r.sameSite.toLowerCase():r.sameSite){case!0:case"strict":c+="; SameSite=Strict";break;case"lax":c+="; SameSite=Lax";break;case"none":c+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${r.sameSite}`)}}return c};const n=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,s=/^[\u0021-\u003A\u003C-\u007E]*$/,i=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,o=/^[\u0020-\u003A\u003D-\u007E]*$/,a=Object.prototype.toString,l=(()=>{const e=function(){};return e.prototype=Object.create(null),e})();function u(e,t,r){do{const r=e.charCodeAt(t);if(32!==r&&9!==r)return t}while(++t<r);return r}function c(e,t,r){for(;t>r;){const r=e.charCodeAt(--t);if(32!==r&&9!==r)return t+1}return r}function h(e){if(-1===e.indexOf("%"))return e;try{return decodeURIComponent(e)}catch(t){return e}}},{}],28:[function(e,t,r){var n,s;n=this,s=function(){var e=6e4,t=36e5,r="millisecond",n="second",s="minute",i="hour",o="day",a="week",l="month",u="quarter",c="year",h="date",f="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,d=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||t[0])+"]"}},y=function(e,t,r){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(r)+e},m={s:y,z:function(e){var t=-e.utcOffset(),r=Math.abs(t),n=Math.floor(r/60),s=r%60;return(t<=0?"+":"-")+y(n,2,"0")+":"+y(s,2,"0")},m:function e(t,r){if(t.date()<r.date())return-e(r,t);var n=12*(r.year()-t.year())+(r.month()-t.month()),s=t.clone().add(n,l),i=r-s<0,o=t.clone().add(n+(i?-1:1),l);return+(-(n+(r-s)/(i?s-o:o-s))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:c,w:a,d:o,D:h,h:i,m:s,s:n,ms:r,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",v={};v[b]=g;var S="$isDayjsObject",P=function(e){return e instanceof E||!(!e||!e[S])},T=function e(t,r,n){var s;if(!t)return b;if("string"==typeof t){var i=t.toLowerCase();v[i]&&(s=i),r&&(v[i]=r,s=i);var o=t.split("-");if(!s&&o.length>1)return e(o[0])}else{var a=t.name;v[a]=t,s=a}return!n&&s&&(b=s),s||!n&&b},w=function(e,t){if(P(e))return e.clone();var r="object"==typeof t?t:{};return r.date=e,r.args=arguments,new E(r)},x=m;x.l=T,x.i=P,x.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=T(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[S]=!0}var y=g.prototype;return y.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(x.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(p);if(n){var s=n[2]-1||0,i=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],s,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)):new Date(n[1],s,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)}}return new Date(t)}(e),this.init()},y.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},y.$utils=function(){return x},y.isValid=function(){return!(this.$d.toString()===f)},y.isSame=function(e,t){var r=w(e);return this.startOf(t)<=r&&r<=this.endOf(t)},y.isAfter=function(e,t){return w(e)<this.startOf(t)},y.isBefore=function(e,t){return this.endOf(t)<w(e)},y.$g=function(e,t,r){return x.u(e)?this[t]:this.set(r,e)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(e,t){var r=this,u=!!x.u(t)||t,f=x.p(e),p=function(e,t){var n=x.w(r.$u?Date.UTC(r.$y,t,e):new Date(r.$y,t,e),r);return u?n:n.endOf(o)},d=function(e,t){return x.w(r.toDate()[e].apply(r.toDate("s"),(u?[0,0,0,0]:[23,59,59,999]).slice(t)),r)},g=this.$W,y=this.$M,m=this.$D,b="set"+(this.$u?"UTC":"");switch(f){case c:return u?p(1,0):p(31,11);case l:return u?p(1,y):p(0,y+1);case a:var v=this.$locale().weekStart||0,S=(g<v?g+7:g)-v;return p(u?m-S:m+(6-S),y);case o:case h:return d(b+"Hours",0);case i:return d(b+"Minutes",1);case s:return d(b+"Seconds",2);case n:return d(b+"Milliseconds",3);default:return this.clone()}},y.endOf=function(e){return this.startOf(e,!1)},y.$set=function(e,t){var a,u=x.p(e),f="set"+(this.$u?"UTC":""),p=(a={},a[o]=f+"Date",a[h]=f+"Date",a[l]=f+"Month",a[c]=f+"FullYear",a[i]=f+"Hours",a[s]=f+"Minutes",a[n]=f+"Seconds",a[r]=f+"Milliseconds",a)[u],d=u===o?this.$D+(t-this.$W):t;if(u===l||u===c){var g=this.clone().set(h,1);g.$d[p](d),g.init(),this.$d=g.set(h,Math.min(this.$D,g.daysInMonth())).$d}else p&&this.$d[p](d);return this.init(),this},y.set=function(e,t){return this.clone().$set(e,t)},y.get=function(e){return this[x.p(e)]()},y.add=function(r,u){var h,f=this;r=Number(r);var p=x.p(u),d=function(e){var t=w(f);return x.w(t.date(t.date()+Math.round(e*r)),f)};if(p===l)return this.set(l,this.$M+r);if(p===c)return this.set(c,this.$y+r);if(p===o)return d(1);if(p===a)return d(7);var g=(h={},h[s]=e,h[i]=t,h[n]=1e3,h)[p]||1,y=this.$d.getTime()+r*g;return x.w(y,this)},y.subtract=function(e,t){return this.add(-1*e,t)},y.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return r.invalidDate||f;var n=e||"YYYY-MM-DDTHH:mm:ssZ",s=x.z(this),i=this.$H,o=this.$m,a=this.$M,l=r.weekdays,u=r.months,c=r.meridiem,h=function(e,r,s,i){return e&&(e[r]||e(t,n))||s[r].slice(0,i)},p=function(e){return x.s(i%12||12,e,"0")},g=c||function(e,t,r){var n=e<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(d,(function(e,n){return n||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return x.s(t.$y,4,"0");case"M":return a+1;case"MM":return x.s(a+1,2,"0");case"MMM":return h(r.monthsShort,a,u,3);case"MMMM":return h(u,a);case"D":return t.$D;case"DD":return x.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return h(r.weekdaysMin,t.$W,l,2);case"ddd":return h(r.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(i);case"HH":return x.s(i,2,"0");case"h":return p(1);case"hh":return p(2);case"a":return g(i,o,!0);case"A":return g(i,o,!1);case"m":return String(o);case"mm":return x.s(o,2,"0");case"s":return String(t.$s);case"ss":return x.s(t.$s,2,"0");case"SSS":return x.s(t.$ms,3,"0");case"Z":return s}return null}(e)||s.replace(":","")}))},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(r,h,f){var p,d=this,g=x.p(h),y=w(r),m=(y.utcOffset()-this.utcOffset())*e,b=this-y,v=function(){return x.m(d,y)};switch(g){case c:p=v()/12;break;case l:p=v();break;case u:p=v()/3;break;case a:p=(b-m)/6048e5;break;case o:p=(b-m)/864e5;break;case i:p=b/t;break;case s:p=b/e;break;case n:p=b/1e3;break;default:p=b}return f?p:x.a(p)},y.daysInMonth=function(){return this.endOf(l).$D},y.$locale=function(){return v[this.$L]},y.locale=function(e,t){if(!e)return this.$L;var r=this.clone(),n=T(e,t,!0);return n&&(r.$L=n),r},y.clone=function(){return x.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},g}(),k=E.prototype;return w.prototype=k,[["$ms",r],["$s",n],["$m",s],["$H",i],["$W",o],["$M",l],["$y",c],["$D",h]].forEach((function(e){k[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),w.extend=function(e,t){return e.$i||(e(t,E,w),e.$i=!0),w},w.locale=T,w.isDayjs=P,w.unix=function(e){return w(1e3*e)},w.en=v[b],w.Ls=v,w.p={},w},"object"==typeof r&&void 0!==t?t.exports=s():(n="undefined"!=typeof globalThis?globalThis:n||self).dayjs=s()},{}],29:[function(e,t,r){var n,s;n=this,s=function(){return function(e,t){var r=t.prototype,n=r.format;r.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return n.bind(this)(e);var s=this.$utils(),i=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case"Q":return Math.ceil((t.$M+1)/3);case"Do":return r.ordinal(t.$D);case"gggg":return t.weekYear();case"GGGG":return t.isoWeekYear();case"wo":return r.ordinal(t.week(),"W");case"w":case"ww":return s.s(t.week(),"w"===e?1:2,"0");case"W":case"WW":return s.s(t.isoWeek(),"W"===e?1:2,"0");case"k":case"kk":return s.s(String(0===t.$H?24:t.$H),"k"===e?1:2,"0");case"X":return Math.floor(t.$d.getTime()/1e3);case"x":return t.$d.getTime();case"z":return"["+t.offsetName()+"]";case"zzz":return"["+t.offsetName("long")+"]";default:return e}}));return n.bind(this)(i)}}},"object"==typeof r&&void 0!==t?t.exports=s():(n="undefined"!=typeof globalThis?globalThis:n||self).dayjs_plugin_advancedFormat=s()},{}],30:[function(e,t,r){var n,s;n=this,s=function(){var e="day";return function(t,r,n){var s=function(t){return t.add(4-t.isoWeekday(),e)},i=r.prototype;i.isoWeekYear=function(){return s(this).year()},i.isoWeek=function(t){if(!this.$utils().u(t))return this.add(7*(t-this.isoWeek()),e);var r,i,o,a=s(this),l=(r=this.isoWeekYear(),o=4-(i=(this.$u?n.utc:n)().year(r).startOf("year")).isoWeekday(),i.isoWeekday()>4&&(o+=7),i.add(o,e));return a.diff(l,"week")+1},i.isoWeekday=function(e){return this.$utils().u(e)?this.day()||7:this.day(this.day()%7?e:e-7)};var o=i.startOf;i.startOf=function(e,t){var r=this.$utils(),n=!!r.u(t)||t;return"isoweek"===r.p(e)?n?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):o.bind(this)(e,t)}}},"object"==typeof r&&void 0!==t?t.exports=s():(n="undefined"!=typeof globalThis?globalThis:n||self).dayjs_plugin_isoWeek=s()},{}],31:[function(e,t,r){var n,s;n=this,s=function(){return function(e,t,r){e=e||{};var n=t.prototype,s={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function i(e,t,r,s){return n.fromToBase(e,t,r,s)}r.en.relativeTime=s,n.fromToBase=function(t,n,i,o,a){for(var l,u,c,h=i.$locale().relativeTime||s,f=e.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],p=f.length,d=0;d<p;d+=1){var g=f[d];g.d&&(l=o?r(t).diff(i,g.d,!0):i.diff(t,g.d,!0));var y=(e.rounding||Math.round)(Math.abs(l));if(c=l>0,y<=g.r||!g.r){y<=1&&d>0&&(g=f[d-1]);var m=h[g.l];a&&(y=a(""+y)),u="string"==typeof m?m.replace("%d",y):m(y,n,g.l,c);break}}if(n)return u;var b=c?h.future:h.past;return"function"==typeof b?b(u):b.replace("%s",u)},n.to=function(e,t){return i(e,t,this,!0)},n.from=function(e,t){return i(e,t,this)};var o=function(e){return e.$u?r.utc():r()};n.toNow=function(e){return this.to(o(this),e)},n.fromNow=function(e){return this.from(o(this),e)}}},"object"==typeof r&&void 0!==t?t.exports=s():(n="undefined"!=typeof globalThis?globalThis:n||self).dayjs_plugin_relativeTime=s()},{}],32:[function(e,t,r){var n,s;n=this,s=function(){var e={year:0,month:1,day:2,hour:3,minute:4,second:5},t={};return function(r,n,s){var i,o=function(e,r,n){void 0===n&&(n={});var s=new Date(e),i=function(e,r){void 0===r&&(r={});var n=r.timeZoneName||"short",s=e+"|"+n,i=t[s];return i||(i=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:n}),t[s]=i),i}(r,n);return i.formatToParts(s)},a=function(t,r){for(var n=o(t,r),i=[],a=0;a<n.length;a+=1){var l=n[a],u=l.type,c=l.value,h=e[u];h>=0&&(i[h]=parseInt(c,10))}var f=i[3],p=24===f?0:f,d=i[0]+"-"+i[1]+"-"+i[2]+" "+p+":"+i[4]+":"+i[5]+":000",g=+t;return(s.utc(d).valueOf()-(g-=g%1e3))/6e4},l=n.prototype;l.tz=function(e,t){void 0===e&&(e=i);var r,n=this.utcOffset(),o=this.toDate(),a=o.toLocaleString("en-US",{timeZone:e}),l=Math.round((o-new Date(a))/1e3/60),u=15*-Math.round(o.getTimezoneOffset()/15)-l;if(Number(u)){if(r=s(a,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(u,!0),t){var c=r.utcOffset();r=r.add(n-c,"minute")}}else r=this.utcOffset(0,t);return r.$x.$timezone=e,r},l.offsetName=function(e){var t=this.$x.$timezone||s.tz.guess(),r=o(this.valueOf(),t,{timeZoneName:e}).find((function(e){return"timezonename"===e.type.toLowerCase()}));return r&&r.value};var u=l.startOf;l.startOf=function(e,t){if(!this.$x||!this.$x.$timezone)return u.call(this,e,t);var r=s(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return u.call(r,e,t).tz(this.$x.$timezone,!0)},s.tz=function(e,t,r){var n=r&&t,o=r||t||i,l=a(+s(),o);if("string"!=typeof e)return s(e).tz(o);var u=function(e,t,r){var n=e-60*t*1e3,s=a(n,r);if(t===s)return[n,t];var i=a(n-=60*(s-t)*1e3,r);return s===i?[n,s]:[e-60*Math.min(s,i)*1e3,Math.max(s,i)]}(s.utc(e,n).valueOf(),l,o),c=u[0],h=u[1],f=s(c).utcOffset(h);return f.$x.$timezone=o,f},s.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},s.tz.setDefault=function(e){i=e}}},"object"==typeof r&&void 0!==t?t.exports=s():(n="undefined"!=typeof globalThis?globalThis:n||self).dayjs_plugin_timezone=s()},{}],33:[function(e,t,r){var n,s;n=this,s=function(){var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,r=/([+-]|\d\d)/g;return function(n,s,i){var o=s.prototype;i.utc=function(e){return new s({date:e,utc:!0,args:arguments})},o.utc=function(t){var r=i(this.toDate(),{locale:this.$L,utc:!0});return t?r.add(this.utcOffset(),e):r},o.local=function(){return i(this.toDate(),{locale:this.$L,utc:!1})};var a=o.parse;o.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),a.call(this,e)};var l=o.init;o.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else l.call(this)};var u=o.utcOffset;o.utcOffset=function(n,s){var i=this.$utils().u;if(i(n))return this.$u?0:i(this.$offset)?u.call(this):this.$offset;if("string"==typeof n&&(n=function(e){void 0===e&&(e="");var n=e.match(t);if(!n)return null;var s=(""+n[0]).match(r)||["-",0,0],i=s[0],o=60*+s[1]+ +s[2];return 0===o?0:"+"===i?o:-o}(n),null===n))return this;var o=Math.abs(n)<=16?60*n:n;if(0===o)return this.utc(s);var a=this.clone();if(s)return a.$offset=o,a.$u=!1,a;var l=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(a=this.local().add(o+l,e)).$offset=o,a.$x.$localOffset=l,a};var c=o.format;o.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return c.call(this,t)},o.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},o.isUTC=function(){return!!this.$u},o.toISOString=function(){return this.toDate().toISOString()},o.toString=function(){return this.toDate().toUTCString()};var h=o.toDate;o.toDate=function(e){return"s"===e&&this.$offset?i(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():h.call(this)};var f=o.diff;o.diff=function(e,t,r){if(e&&this.$u===e.$u)return f.call(this,e,t,r);var n=this.local(),s=i(e).local();return f.call(n,s,t,r)}}},"object"==typeof r&&void 0!==t?t.exports=s():(n="undefined"!=typeof globalThis?globalThis:n||self).dayjs_plugin_utc=s()},{}],34:[function(e,t,r){var n,s;n=this,s=function(){var e="week",t="year";return function(r,n,s){var i=n.prototype;i.week=function(r){if(void 0===r&&(r=null),null!==r)return this.add(7*(r-this.week()),"day");var n=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var i=s(this).startOf(t).add(1,t).date(n),o=s(this).endOf(e);if(i.isBefore(o))return 1}var a=s(this).startOf(t).date(n).startOf(e).subtract(1,"millisecond"),l=this.diff(a,e,!0);return l<0?s(this).startOf("week").week():Math.ceil(l)},i.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}},"object"==typeof r&&void 0!==t?t.exports=s():(n="undefined"!=typeof globalThis?globalThis:n||self).dayjs_plugin_weekOfYear=s()},{}],35:[function(e,t,r){var n;n=this,"object"==typeof r&&void 0!==t?t.exports=function(e,t){t.prototype.weekday=function(e){var t=this.$locale().weekStart||0,r=this.$W,n=(r<t?r+7:r)-t;return this.$utils().u(e)?n:this.subtract(n,"day").add(e,"day")}}:(n="undefined"!=typeof globalThis?globalThis:n||self).dayjs_plugin_weekday=function(e,t){t.prototype.weekday=function(e){var t=this.$locale().weekStart||0,r=this.$W,n=(r<t?r+7:r)-t;return this.$utils().u(e)?n:this.subtract(n,"day").add(e,"day")}}},{}],36:[function(e,t,r){var n=e("has-property-descriptors")(),s=e("get-intrinsic"),i=n&&s("%Object.defineProperty%",!0);if(i)try{i({},"a",{value:1})}catch(e){i=!1}var o=e("es-errors/syntax"),a=e("es-errors/type"),l=e("gopd");t.exports=function(e,t,r){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new a("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new a("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new a("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new a("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new a("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new a("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,s=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],h=!!l&&l(e,t);if(i)i(e,t,{configurable:null===u&&h?h.configurable:!u,enumerable:null===n&&h?h.enumerable:!n,value:r,writable:null===s&&h?h.writable:!s});else{if(!c&&(n||s||u))throw new o("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=r}}},{"es-errors/syntax":41,"es-errors/type":42,"get-intrinsic":63,gopd:64,"has-property-descriptors":65}],37:[function(e,t,r){t.exports=EvalError},{}],38:[function(e,t,r){t.exports=Error},{}],39:[function(e,t,r){t.exports=RangeError},{}],40:[function(e,t,r){t.exports=ReferenceError},{}],41:[function(e,t,r){t.exports=SyntaxError},{}],42:[function(e,t,r){t.exports=TypeError},{}],43:[function(e,t,r){t.exports=URIError},{}],44:[function(e,t,r){var n,s="object"==typeof Reflect?Reflect:null,i=s&&"function"==typeof s.apply?s.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};n=s&&"function"==typeof s.ownKeys?s.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function a(){a.init.call(this)}t.exports=a,t.exports.once=function(e,t){return new Promise((function(r,n){function s(r){e.removeListener(t,i),n(r)}function i(){"function"==typeof e.removeListener&&e.removeListener("error",s),r([].slice.call(arguments))}m(e,t,i,{once:!0}),"error"!==t&&function(e,t,r){"function"==typeof e.on&&m(e,"error",t,r)}(e,s,{once:!0})}))},a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var l=10;function u(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?a.defaultMaxListeners:e._maxListeners}function h(e,t,r,n){var s,i,o,a;if(u(r),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),i=e._events),o=i[t]),void 0===o)o=i[t]=r,++e._eventsCount;else if("function"==typeof o?o=i[t]=n?[r,o]:[o,r]:n?o.unshift(r):o.push(r),(s=c(e))>0&&o.length>s&&!o.warned){o.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=o.length,a=l,console&&console.warn&&console.warn(a)}return e}function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},s=f.bind(n);return s.listener=r,n.wrapFn=s,s}function d(e,t,r){var n=e._events;if(void 0===n)return[];var s=n[t];return void 0===s?[]:"function"==typeof s?r?[s.listener||s]:[s]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(s):y(s,s.length)}function g(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function y(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function m(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function s(i){n.once&&e.removeEventListener(t,s),r(i)}))}}Object.defineProperty(a,"defaultMaxListeners",{enumerable:!0,get:function(){return l},set:function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");l=e}}),a.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},a.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},a.prototype.getMaxListeners=function(){return c(this)},a.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var n="error"===e,s=this._events;if(void 0!==s)n=n&&void 0===s.error;else if(!n)return!1;if(n){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var a=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw a.context=o,a}var l=s[e];if(void 0===l)return!1;if("function"==typeof l)i(l,this,t);else{var u=l.length,c=y(l,u);for(r=0;r<u;++r)i(c[r],this,t)}return!0},a.prototype.addListener=function(e,t){return h(this,e,t,!1)},a.prototype.on=a.prototype.addListener,a.prototype.prependListener=function(e,t){return h(this,e,t,!0)},a.prototype.once=function(e,t){return u(t),this.on(e,p(this,e,t)),this},a.prototype.prependOnceListener=function(e,t){return u(t),this.prependListener(e,p(this,e,t)),this},a.prototype.removeListener=function(e,t){var r,n,s,i,o;if(u(t),void 0===(n=this._events))return this;if(void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(s=-1,i=r.length-1;i>=0;i--)if(r[i]===t||r[i].listener===t){o=r[i].listener,s=i;break}if(s<0)return this;0===s?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,s),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,o||t)}return this},a.prototype.off=a.prototype.removeListener,a.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var s,i=Object.keys(r);for(n=0;n<i.length;++n)"removeListener"!==(s=i[n])&&this.removeAllListeners(s);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},a.prototype.listeners=function(e){return d(this,e,!0)},a.prototype.rawListeners=function(e){return d(this,e,!1)},a.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):g.call(e,t)},a.prototype.listenerCount=g,a.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},{}],45:[function(e,t,r){t.exports={name:"fable-log",version:"3.0.16",description:"A simple logging wrapper.",main:"source/Fable-Log.js",scripts:{start:"node source/Fable-Log.js",coverage:"./node_modules/.bin/nyc --reporter=lcov --reporter=text-lcov ./node_modules/mocha/bin/_mocha -- -u tdd -R spec",test:"./node_modules/.bin/mocha -u tdd -R spec",tests:"npx mocha -u tdd --exit -R spec --grep"},mocha:{diff:!0,extension:["js"],package:"./package.json",reporter:"spec",slow:"75",timeout:"5000",ui:"tdd","watch-files":["source/**/*.js","test/**/*.js"],"watch-ignore":["lib/vendor"]},browser:{"./source/Fable-Log-DefaultProviders-Node.js":"./source/Fable-Log-DefaultProviders-Web.js"},repository:{type:"git",url:"https://github.com/stevenvelozo/fable-log.git"},keywords:["logging"],author:"Steven Velozo <steven@velozo.com> (http://velozo.com/)",license:"MIT",bugs:{url:"https://github.com/stevenvelozo/fable-log/issues"},homepage:"https://github.com/stevenvelozo/fable-log",devDependencies:{quackage:"^1.0.33"},dependencies:{"fable-serviceproviderbase":"^3.0.15"}}},{}],46:[function(e,t,r){const n=e("fable-serviceproviderbase").CoreServiceProviderBase;t.exports=class extends n{constructor(e,t){super(e,t),this._Settings="object"==typeof e?e:{},this.serviceType="Logging-Provider",this.loggerUUID=this.generateInsecureUUID(),this.levels=["trace","debug","info","warn","error","fatal"]}generateInsecureUUID(){let e=(new Date).getTime();return"LOGSTREAM-xxxxxx-yxxxxx".replace(/[xy]/g,(t=>{let r=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"==t?r:3&r|8).toString(16)}))}initialize(){}trace(e,t){this.write("trace",e,t)}debug(e,t){this.write("debug",e,t)}info(e,t){this.write("info",e,t)}warn(e,t){this.write("warn",e,t)}error(e,t){this.write("error",e,t)}fatal(e,t){this.write("fatal",e,t)}write(e,t,r){return!0}}},{"fable-serviceproviderbase":53}],47:[function(e,t,r){t.exports=(()=>{let t={};return t.console=e("./Fable-Log-Logger-Console.js"),t.default=t.console,t})()},{"./Fable-Log-Logger-Console.js":49}],48:[function(e,t,r){t.exports=[{loggertype:"console",streamtype:"console",level:"trace"}]},{}],49:[function(e,t,r){let n=e("./Fable-Log-BaseLogger.js");t.exports=class extends n{constructor(e,t){super(e),this._ShowTimeStamps=!("showtimestamps"in this._Settings)||1==this._Settings.showtimestamps,this._FormattedTimeStamps=!("formattedtimestamps"in this._Settings)||1==this._Settings.formattedtimestamps,this._ContextMessage="Context"in this._Settings?`(${this._Settings.Context})`:"Product"in t._Settings?`(${t._Settings.Product})`:"Unnamed_Log_Context",this._OutputLogLinesToConsole=!("outputloglinestoconsole"in this._Settings)||this._Settings.outputloglinestoconsole,this._OutputObjectsToConsole=!("outputobjectstoconsole"in this._Settings)||this._Settings.outputobjectstoconsole,this.prefixCache={};for(let e=0;e<=this.levels.length;e++)this.prefixCache[this.levels[e]]=`[${this.levels[e]}] ${this._ContextMessage}: `,this._ShowTimeStamps&&(this.prefixCache[this.levels[e]]=" "+this.prefixCache[this.levels[e]])}write(e,t,r){let n="";this._ShowTimeStamps&&this._FormattedTimeStamps?n=(new Date).toISOString():this._ShowTimeStamps&&(n=+new Date);let s=`${n}${this.prefixCache[e]}${t}`;return this._OutputLogLinesToConsole&&console.log(s),this._OutputObjectsToConsole&&void 0!==r&&console.log(JSON.stringify(r,null,2)),s}}},{"./Fable-Log-BaseLogger.js":46}],50:[function(e,t,r){const n=e("./Fable-Log-Logger-Console.js"),s=e("fs"),i=e("path");t.exports=class extends n{constructor(e,t){super(e,t),this.logFileRawPath=this._Settings.hasOwnProperty("path")?this._Settings.path:`./${this._ContextMessage}.log`,this.logFilePath=i.normalize(this.logFileRawPath),this.logFileStreamOptions=this._Settings.hasOwnProperty("fileStreamoptions")?this._Settings.fileStreamOptions:{flags:"a",encoding:"utf8"},this.fileWriter=s.createWriteStream(this.logFilePath,this.logFileStreamOptions),this.activelyWriting=!1,this.logLineStrings=[],this.logObjectStrings=[],this.defaultWriteCompleteCallback=()=>{},this.defaultBufferFlushCallback=()=>{}}closeWriter(e){let t="function"==typeof e?e:()=>{};if(this.fileWriter)return this.fileWriter.end("\n"),this.fileWriter.once("finish",t.bind(this))}completeBufferFlushToLogFile(e){this.activelyWriting=!1;let t="function"==typeof e?e:this.defaultBufferFlushCallback;if(!(this.logLineStrings.length>0))return t();this.flushBufferToLogFile(t)}flushBufferToLogFile(e){if(!this.activelyWriting){this.activelyWriting=!0;let t="function"==typeof e?e:this.defaultBufferFlushCallback,r=this.logLineStrings,n=this.logObjectStrings;this.logLineStrings=[],this.logObjectStrings=[];let s="";for(let e=0;e<r.length;e++)s+=`${r[e]}\n`,!1!==n[e]&&(s+=`${n[e]}\n`);if(this.fileWriter.write(s,"utf8"))return this.completeBufferFlushToLogFile(t);this.fileWriter.once("drain",this.completeBufferFlushToLogFile.bind(this,t))}}write(e,t,r){let n=super.write(e,t,r);this.logLineStrings.push(n),void 0!==r?this.logObjectStrings.push(JSON.stringify(r,null,4)):this.logObjectStrings.push(!1),this.flushBufferToLogFile()}}},{"./Fable-Log-Logger-Console.js":49,fs:19,path:87}],51:[function(e,t,r){const n=e("fable-serviceproviderbase").CoreServiceProviderBase,s=e("../package.json");t.exports=class extends n{constructor(t,r){super(t,r),this.serviceType="Logging",this._Package=s;let n="object"==typeof t?t:{};this._Settings=n,this._Providers=e("./Fable-Log-DefaultProviders-Node.js"),this._StreamDefinitions="LogStreams"in n?n.LogStreams:e("./Fable-Log-DefaultStreams.json"),this.logStreams=[],this.logProviders={},this.activeLogStreams={},this.logStreamsTrace=[],this.logStreamsDebug=[],this.logStreamsInfo=[],this.logStreamsWarn=[],this.logStreamsError=[],this.logStreamsFatal=[],this.datumDecorator=e=>e,this.uuid="string"==typeof n.Product?n.Product:"Default"}addLogger(e,t){if(e.loggerUUID in this.activeLogStreams)return!1;switch(this.logStreams.push(e),this.activeLogStreams[e.loggerUUID]=!0,t){case"trace":this.logStreamsTrace.push(e);case"debug":this.logStreamsDebug.push(e);case"info":this.logStreamsInfo.push(e);case"warn":this.logStreamsWarn.push(e);case"error":this.logStreamsError.push(e);case"fatal":this.logStreamsFatal.push(e)}return!0}setDatumDecorator(e){this.datumDecorator="function"==typeof e?e:e=>e}trace(e,t){const r=this.datumDecorator(t);for(let t=0;t<this.logStreamsTrace.length;t++)this.logStreamsTrace[t].trace(e,r)}debug(e,t){const r=this.datumDecorator(t);for(let t=0;t<this.logStreamsDebug.length;t++)this.logStreamsDebug[t].debug(e,r)}info(e,t){const r=this.datumDecorator(t);for(let t=0;t<this.logStreamsInfo.length;t++)this.logStreamsInfo[t].info(e,r)}warn(e,t){const r=this.datumDecorator(t);for(let t=0;t<this.logStreamsWarn.length;t++)this.logStreamsWarn[t].warn(e,r)}error(e,t){const r=this.datumDecorator(t);for(let t=0;t<this.logStreamsError.length;t++)this.logStreamsError[t].error(e,r)}fatal(e,t){const r=this.datumDecorator(t);for(let t=0;t<this.logStreamsFatal.length;t++)this.logStreamsFatal[t].fatal(e,r)}initialize(){for(let e=0;e<this._StreamDefinitions.length;e++){let t=Object.assign({loggertype:"default",streamtype:"console",level:"info"},this._StreamDefinitions[e]);t.loggertype in this._Providers?this.addLogger(new this._Providers[t.loggertype](t,this),t.level):console.log(`Error initializing log stream: bad loggertype in stream definition ${JSON.stringify(t)}`)}for(let e=0;e<this.logStreams.length;e++)this.logStreams[e].initialize()}logTime(e,t){let r=void 0!==e?e:"Time",n=new Date;this.info(`${r} ${n} (epoch ${+n})`,t)}getTimeStamp(){return+new Date}getTimeDelta(e){return+new Date-e}logTimeDelta(e,t,r){let n=void 0!==t?t:"Time Measurement",s=+new Date;this.info(`${n} logged at (epoch ${+s}) took (${e}ms)`,r)}logTimeDeltaHuman(e,t,r){let n=void 0!==t?t:"Time Measurement",s=+new Date,i=parseInt(e%1e3),o=parseInt(e/1e3%60),a=parseInt(e/6e4%60),l=parseInt(e/36e5);i=i<10?"00"+i:i<100?"0"+i:i,o=o<10?"0"+o:o,a=a<10?"0"+a:a,l=l<10?"0"+l:l,this.info(`${n} logged at (epoch ${+s}) took (${e}ms) or (${l}:${a}:${o}.${i})`,r)}logTimeDeltaRelative(e,t,r){this.logTimeDelta(this.getTimeDelta(e),t,r)}logTimeDeltaRelativeHuman(e,t,r){this.logTimeDeltaHuman(this.getTimeDelta(e),t,r)}},t.exports.LogProviderBase=e("./Fable-Log-BaseLogger.js"),t.exports.LogProviderConsole=e("./Fable-Log-Logger-Console.js"),t.exports.LogProviderFlatfile=e("./Fable-Log-Logger-SimpleFlatFile.js")},{"../package.json":45,"./Fable-Log-BaseLogger.js":46,"./Fable-Log-DefaultProviders-Node.js":47,"./Fable-Log-DefaultStreams.json":48,"./Fable-Log-Logger-Console.js":49,"./Fable-Log-Logger-SimpleFlatFile.js":50,"fable-serviceproviderbase":53}],52:[function(e,t,r){t.exports={name:"fable-serviceproviderbase",version:"3.0.15",description:"Simple base classes for fable services.",main:"source/Fable-ServiceProviderBase.js",scripts:{start:"node source/Fable-ServiceProviderBase.js",test:"npx mocha -u tdd -R spec",tests:"npx mocha -u tdd --exit -R spec --grep",coverage:"npx nyc --reporter=lcov --reporter=text-lcov npx mocha -- -u tdd -R spec",build:"npx quack build"},mocha:{diff:!0,extension:["js"],package:"./package.json",reporter:"spec",slow:"75",timeout:"5000",ui:"tdd","watch-files":["source/**/*.js","test/**/*.js"],"watch-ignore":["lib/vendor"]},repository:{type:"git",url:"https://github.com/stevenvelozo/fable-serviceproviderbase.git"},keywords:["entity","behavior"],author:"Steven Velozo <steven@velozo.com> (http://velozo.com/)",license:"MIT",bugs:{url:"https://github.com/stevenvelozo/fable-serviceproviderbase/issues"},homepage:"https://github.com/stevenvelozo/fable-serviceproviderbase",devDependencies:{fable:"^3.0.143",quackage:"^1.0.33"}}},{}],53:[function(e,t,r){const n=e("../package.json");class s{constructor(e,t,r){"object"==typeof e&&e.isFable?this.connectFable(e):this.fable=!1,this._PackageFableServiceProvider=n,this.fable?(this.UUID=e.getUUID(),this.options="object"==typeof t?t:{}):(this.options="object"!=typeof e||e.isFable?"object"==typeof t?t:{}:e,this.UUID=`CORE-SVC-${Math.floor(89999*Math.random()+1e4)}`),this.serviceType=`Unknown-${this.UUID}`,this.Hash="string"==typeof r?r:this.fable||"string"!=typeof t?`${this.UUID}`:t}connectFable(e){if("object"!=typeof e||!e.isFable){let t=`Fable Service Provider Base: Cannot connect to Fable, invalid Fable object passed in. The pFable parameter was a [${typeof e}].}`;return console.log(t),new Error(t)}return this.fable||(this.fable=e),this.log||(this.log=this.fable.Logging),this.services||(this.services=this.fable.services),this.servicesMap||(this.servicesMap=this.fable.servicesMap),!0}}_defineProperty2(s,"isFableService",!0),t.exports=s,t.exports.CoreServiceProviderBase=s},{"../package.json":52}],54:[function(e,t,r){t.exports={name:"fable-settings",version:"3.0.12",description:"A simple, tolerant configuration chain.",main:"source/Fable-Settings.js",scripts:{start:"node source/Fable-Settings.js",coverage:"./node_modules/.bin/nyc --reporter=lcov --reporter=text-lcov ./node_modules/mocha/bin/_mocha -- -u tdd -R spec",test:"./node_modules/.bin/mocha -u tdd -R spec",build:"./node_modules/.bin/gulp build","docker-dev-build-image":"docker build ./ -f Dockerfile_LUXURYCode -t retold/fable-settings:local","docker-dev-run":'docker run -it -d --name retold-fable-settings-dev -p 30003:8080 -v "$PWD/.config:/home/coder/.config" -v "$PWD:/home/coder/fable-settings" -u "$(id -u):$(id -g)" -e "DOCKER_USER=$USER" retold/fable-settings:local'},mocha:{diff:!0,extension:["js"],package:"./package.json",reporter:"spec",slow:"75",timeout:"5000",ui:"tdd","watch-files":["source/**/*.js","test/**/*.js"],"watch-ignore":["lib/vendor"]},repository:{type:"git",url:"https://github.com/stevenvelozo/fable-settings.git"},keywords:["configuration"],author:"Steven Velozo <steven@velozo.com> (http://velozo.com/)",license:"MIT",bugs:{url:"https://github.com/stevenvelozo/fable-settings/issues"},homepage:"https://github.com/stevenvelozo/fable-settings",devDependencies:{quackage:"^1.0.33"},dependencies:{"fable-serviceproviderbase":"^3.0.15",precedent:"^1.0.15"}}},{}],55:[function(e,t,r){t.exports={Product:"ApplicationNameHere",ProductVersion:"0.0.0",ConfigFile:!1,LogStreams:[{level:"trace"}]}},{}],56:[function(e,t,r){(function(r){(function(){const n=e("precedent");t.exports=class{constructor(e){this.templateProcessor=new n,this.templateProcessor.addPattern("${","}",(e=>{let t=e.trim(),n=t.indexOf("|");const s=n>=0?t.substring(n+1):"";let i=n>-1?t.substring(0,n):t;return i in r.env?r.env[i]:s}))}parseSetting(e){return this.templateProcessor.parseString(e)}}}).call(this)}).call(this,e("_process"))},{_process:91,precedent:88}],57:[function(e,t,r){const n=e("fable-serviceproviderbase").CoreServiceProviderBase,s=e("./Fable-Settings-TemplateProcessor.js");class i extends n{constructor(t,r){super(t,r),this.serviceType="SettingsManager",this._Package=e("../package.json"),this.settingsTemplateProcessor=new s,this._configureEnvTemplating(t),this.default=this.buildDefaultSettings();let n=this.merge(t,this.buildDefaultSettings());if(this.base=JSON.parse(JSON.stringify(n)),n.DefaultConfigFile)try{n=this.merge(e(n.DefaultConfigFile),n)}catch(e){console.log("Fable-Settings Warning: Default configuration file specified but there was a problem loading it. Falling back to base."),console.log(" Loading Exception: "+e)}if(n.ConfigFile)try{n=this.merge(e(n.ConfigFile),n)}catch(e){console.log("Fable-Settings Warning: Configuration file specified but there was a problem loading it. Falling back to base."),console.log(" Loading Exception: "+e)}this.settings=n}buildDefaultSettings(){return JSON.parse(JSON.stringify(e("./Fable-Settings-Default")))}_configureEnvTemplating(e){this._PerformEnvTemplating=!e||!0!==e.NoEnvReplacement}_resolveEnv(e){for(const t in e)"object"==typeof e[t]?this._resolveEnv(e[t]):"string"==typeof e[t]&&(e[t]=this.settingsTemplateProcessor.parseSetting(e[t]))}_isObject(e){return"object"==typeof e&&!Array.isArray(e)}_deepMergeObjects(e,t){if(t&&this._isObject(t))return Object.keys(t).forEach((r=>{const n=t[r];if(this._isObject(n)){const t=e[r];if(t&&this._isObject(t))return void this._deepMergeObjects(t,n)}e[r]=n})),e}merge(e,t){let r="object"==typeof e?e:{},n="object"==typeof t?t:this.settings,s=JSON.parse(JSON.stringify(r));return n=this._deepMergeObjects(n,s),this._PerformEnvTemplating&&this._resolveEnv(n),this._configureEnvTemplating(n),n}fill(e){let t="object"==typeof e?e:{},r=JSON.parse(JSON.stringify(t));return this.settings=this._deepMergeObjects(r,this.settings),this.settings}}t.exports=i,t.exports.new=function(e){return new i(e)}},{"../package.json":54,"./Fable-Settings-Default":55,"./Fable-Settings-TemplateProcessor.js":56,"fable-serviceproviderbase":53}],58:[function(e,t,r){t.exports={name:"fable-uuid",version:"3.0.11",description:"A simple UUID Generator.",main:"source/Fable-UUID.js",scripts:{start:"node source/Fable-UUID.js",coverage:"./node_modules/.bin/nyc --reporter=lcov --reporter=text-lcov ./node_modules/mocha/bin/_mocha -- -u tdd -R spec",test:"./node_modules/.bin/mocha -u tdd -R spec",build:"./node_modules/.bin/gulp build","docker-dev-build-image":"docker build ./ -f Dockerfile_LUXURYCode -t retold/fable-uuid:local","docker-dev-run":'docker run -it -d --name retold-fable-uuid-dev -p 30002:8080 -v "$PWD/.config:/home/coder/.config" -v "$PWD:/home/coder/fable-uuid" -u "$(id -u):$(id -g)" -e "DOCKER_USER=$USER" retold/fable-uuid:local'},mocha:{diff:!0,extension:["js"],package:"./package.json",reporter:"spec",slow:"75",timeout:"5000",ui:"tdd","watch-files":["source/**/*.js","test/**/*.js"],"watch-ignore":["lib/vendor"]},repository:{type:"git",url:"https://github.com/stevenvelozo/fable-uuid.git"},keywords:["logging"],author:"Steven Velozo <steven@velozo.com> (http://velozo.com/)",license:"MIT",bugs:{url:"https://github.com/stevenvelozo/fable-uuid/issues"},browser:{"./source/Fable-UUID-Random.js":"./source/Fable-UUID-Random-Browser.js"},homepage:"https://github.com/stevenvelozo/fable-uuid",devDependencies:{quackage:"^1.0.33"},dependencies:{"fable-serviceproviderbase":"^3.0.15"}}},{}],59:[function(e,t,r){t.exports=class{constructor(){this.getRandomValues="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)}generateWhatWGBytes(){let e=new Uint8Array(16);return this.getRandomValues(e),e}generateRandomBytes(){let e=new Uint8Array(16);for(let t,r=0;r<16;r++)3&r||(t=4294967296*Math.random()),e[r]=t>>>((3&r)<<3)&255;return e}generate(){return this.getRandomValues?this.generateWhatWGBytes():this.generateRandomBytes()}}},{}],60:[function(e,t,r){const n=e("fable-serviceproviderbase").CoreServiceProviderBase,s=e("./Fable-UUID-Random.js"),i=e("../package.json");class o extends n{constructor(e,t){super(e,t),this.serviceType="UUID",this._Package=i,this._UUIDModeRandom="object"==typeof e&&"UUIDModeRandom"in e&&1==e.UUIDModeRandom,this._UUIDLength="object"==typeof e&&"UUIDLength"in e?e.UUIDLength+0:8,this._UUIDRandomDictionary="object"==typeof e&&"UUIDDictionary"in e?e.UUIDDictionary+0:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",this.randomByteGenerator=new s,this._HexLookup=[];for(let e=0;e<256;++e)this._HexLookup[e]=(e+256).toString(16).substr(1)}bytesToUUID(e){let t=0;return[this._HexLookup[e[t++]],this._HexLookup[e[t++]],this._HexLookup[e[t++]],this._HexLookup[e[t++]],"-",this._HexLookup[e[t++]],this._HexLookup[e[t++]],"-",this._HexLookup[e[t++]],this._HexLookup[e[t++]],"-",this._HexLookup[e[t++]],this._HexLookup[e[t++]],"-",this._HexLookup[e[t++]],this._HexLookup[e[t++]],this._HexLookup[e[t++]],this._HexLookup[e[t++]],this._HexLookup[e[t++]],this._HexLookup[e[t++]]].join("")}generateUUIDv4(){new Array(16);var e=this.randomByteGenerator.generate();return e[6]=15&e[6]|64,e[8]=63&e[8]|128,this.bytesToUUID(e)}generateRandom(){let e="";for(let t=0;t<this._UUIDLength;t++)e+=this._UUIDRandomDictionary.charAt(Math.floor(Math.random()*(this._UUIDRandomDictionary.length-1)));return e}getUUID(){return this._UUIDModeRandom?this.generateRandom():this.generateUUIDv4()}}t.exports=o,t.exports.new=function(e){return new o(e)}},{"../package.json":58,"./Fable-UUID-Random.js":59,"fable-serviceproviderbase":53}],61:[function(e,t,r){var n=Object.prototype.toString,s=Math.max,i=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var s=0;s<t.length;s+=1)r[s+e.length]=t[s];return r};t.exports=function(e){var t=this;if("function"!=typeof t||"[object Function]"!==n.apply(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);for(var r,o=function(e,t){for(var r=[],n=t||0,s=0;n<e.length;n+=1,s+=1)r[s]=e[n];return r}(arguments,1),a=s(0,t.length-o.length),l=[],u=0;u<a;u++)l[u]="$"+u;if(r=Function("binder","return function ("+function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r}(l,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof r){var n=t.apply(this,i(o,arguments));return Object(n)===n?n:this}return t.apply(e,i(o,arguments))})),t.prototype){var c=function(){};c.prototype=t.prototype,r.prototype=new c,c.prototype=null}return r}},{}],62:[function(e,t,r){var n=e("./implementation");t.exports=Function.prototype.bind||n},{"./implementation":61}],63:[function(e,t,r){var n,s=e("es-errors"),i=e("es-errors/eval"),o=e("es-errors/range"),a=e("es-errors/ref"),l=e("es-errors/syntax"),u=e("es-errors/type"),c=e("es-errors/uri"),h=Function,f=function(e){try{return h('"use strict"; return ('+e+").constructor;")()}catch(e){}},p=Object.getOwnPropertyDescriptor;if(p)try{p({},"")}catch(e){p=null}var d=function(){throw new u},g=p?function(){try{return d}catch(e){try{return p(arguments,"callee").get}catch(e){return d}}}():d,y=e("has-symbols")(),m=e("has-proto")(),b=Object.getPrototypeOf||(m?function(e){return e.__proto__}:null),v={},S="undefined"!=typeof Uint8Array&&b?b(Uint8Array):n,P={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":y&&b?b([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":v,"%AsyncGenerator%":v,"%AsyncGeneratorFunction%":v,"%AsyncIteratorPrototype%":v,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":s,"%eval%":eval,"%EvalError%":i,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":h,"%GeneratorFunction%":v,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":y&&b?b(b([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&y&&b?b((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":o,"%ReferenceError%":a,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&y&&b?b((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":y&&b?b(""[Symbol.iterator]()):n,"%Symbol%":y?Symbol:n,"%SyntaxError%":l,"%ThrowTypeError%":g,"%TypedArray%":S,"%TypeError%":u,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":c,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};if(b)try{null.error}catch(e){var T=b(b(e));P["%Error.prototype%"]=T}var w=function e(t){var r;if("%AsyncFunction%"===t)r=f("async function () {}");else if("%GeneratorFunction%"===t)r=f("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=f("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var s=e("%AsyncGenerator%");s&&b&&(r=b(s.prototype))}return P[t]=r,r},x={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},E=e("function-bind"),k=e("hasown"),A=E.call(Function.call,Array.prototype.concat),O=E.call(Function.apply,Array.prototype.splice),_=E.call(Function.call,String.prototype.replace),N=E.call(Function.call,String.prototype.slice),j=E.call(Function.call,RegExp.prototype.exec),R=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,M=/\\(\\)?/g,L=function(e,t){var r,n=e;if(k(x,n)&&(n="%"+(r=x[n])[0]+"%"),k(P,n)){var s=P[n];if(s===v&&(s=w(n)),void 0===s&&!t)throw new u("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:s}}throw new l("intrinsic "+e+" does not exist!")};t.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new u('"allowMissing" argument must be a boolean');if(null===j(/^%?[^%]*%?$/,e))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=N(e,0,1),r=N(e,-1);if("%"===t&&"%"!==r)throw new l("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new l("invalid intrinsic syntax, expected opening `%`");var n=[];return _(e,R,(function(e,t,r,s){n[n.length]=r?_(s,M,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",s=L("%"+n+"%",t),i=s.name,o=s.value,a=!1,c=s.alias;c&&(n=c[0],O(r,A([0,1],c)));for(var h=1,f=!0;h<r.length;h+=1){var d=r[h],g=N(d,0,1),y=N(d,-1);if(('"'===g||"'"===g||"`"===g||'"'===y||"'"===y||"`"===y)&&g!==y)throw new l("property names with quotes must have matching quotes");if("constructor"!==d&&f||(a=!0),k(P,i="%"+(n+="."+d)+"%"))o=P[i];else if(null!=o){if(!(d in o)){if(!t)throw new u("base intrinsic for "+e+" exists, but the property is not available.");return}if(p&&h+1>=r.length){var m=p(o,d);o=(f=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:o[d]}else f=k(o,d),o=o[d];f&&!a&&(P[i]=o)}}return o}},{"es-errors":38,"es-errors/eval":37,"es-errors/range":39,"es-errors/ref":40,"es-errors/syntax":41,"es-errors/type":42,"es-errors/uri":43,"function-bind":62,"has-proto":66,"has-symbols":67,hasown:69}],64:[function(e,t,r){var n=e("get-intrinsic")("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(e){n=null}t.exports=n},{"get-intrinsic":63}],65:[function(e,t,r){var n=e("get-intrinsic")("%Object.defineProperty%",!0),s=function(){if(n)try{return n({},"a",{value:1}),!0}catch(e){return!1}return!1};s.hasArrayLengthDefineBug=function(){if(!s())return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},t.exports=s},{"get-intrinsic":63}],66:[function(e,t,r){var n={foo:{}},s=Object;t.exports=function(){return{__proto__:n}.foo===n.foo&&!({__proto__:null}instanceof s)}},{}],67:[function(e,t,r){var n="undefined"!=typeof Symbol&&Symbol,s=e("./shams");t.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&s())))}},{"./shams":68}],68:[function(e,t,r){t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var s=Object.getOwnPropertyDescriptor(e,t);if(42!==s.value||!0!==s.enumerable)return!1}return!0}},{}],69:[function(e,t,r){var n=Function.prototype.call,s=Object.prototype.hasOwnProperty,i=e("function-bind");t.exports=i.call(n,s)},{"function-bind":62}],70:[function(e,t,r){var n=e("http"),s=e("url"),i=t.exports;for(var o in n)n.hasOwnProperty(o)&&(i[o]=n[o]);function a(e){if("string"==typeof e&&(e=s.parse(e)),e.protocol||(e.protocol="https:"),"https:"!==e.protocol)throw new Error('Protocol "'+e.protocol+'" not supported. Expected "https:"');return e}i.request=function(e,t){return e=a(e),n.request.call(this,e,t)},i.get=function(e,t){return e=a(e),n.get.call(this,e,t)}},{http:106,url:127}],71:[function(e,t,r){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */r.read=function(e,t,r,n,s){var i,o,a=8*s-n-1,l=(1<<a)-1,u=l>>1,c=-7,h=r?s-1:0,f=r?-1:1,p=e[t+h];for(h+=f,i=p&(1<<-c)-1,p>>=-c,c+=a;c>0;i=256*i+e[t+h],h+=f,c-=8);for(o=i&(1<<-c)-1,i>>=-c,c+=n;c>0;o=256*o+e[t+h],h+=f,c-=8);if(0===i)i=1-u;else{if(i===l)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),i-=u}return(p?-1:1)*o*Math.pow(2,i-n)},r.write=function(e,t,r,n,s,i){var o,a,l,u=8*i-s-1,c=(1<<u)-1,h=c>>1,f=23===s?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:i-1,d=n?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),(t+=o+h>=1?f/l:f*Math.pow(2,1-h))*l>=2&&(o++,l/=2),o+h>=c?(a=0,o=c):o+h>=1?(a=(t*l-1)*Math.pow(2,s),o+=h):(a=t*Math.pow(2,h-1)*Math.pow(2,s),o=0));s>=8;e[r+p]=255&a,p+=d,a/=256,s-=8);for(o=o<<s|a,u+=s;u>0;e[r+p]=255&o,p+=d,o/=256,u-=8);e[r+p-d]|=128*g}},{}],72:[function(e,t,r){"function"==typeof Object.create?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},{}],73:[function(e,t,r){t.exports=(e,t)=>t.startsWith(e)&&t.endsWith(e)?t.substring(1,t.length-1):t},{}],74:[function(e,t,r){let n=e("./Manyfest-LogToConsole.js");t.exports=class{constructor(e,t){this.logInfo="function"==typeof e?e:n,this.logError="function"==typeof t?t:n,this.translationTable={}}translationCount(){return Object.keys(this.translationTable).length}addTranslation(e){if("object"!=typeof e)return this.logError("Hash translation addTranslation expected a translation be type object but was passed in "+typeof e),!1;Object.keys(e).forEach((t=>{"string"!=typeof e[t]?this.logError(`Hash translation addTranslation expected a translation destination hash for [${t}] to be a string but the referrant was a ${typeof e[t]}`):this.translationTable[t]=e[t]}))}removeTranslationHash(e){e in this.translationTable&&delete this.translationTable[e]}removeTranslation(e){if("string"==typeof e)return this.removeTranslationHash(e),!0;if("object"==typeof e){return Object.keys(e).forEach((e=>{this.removeTranslation(e)})),!0}return this.logError("Hash translation removeTranslation expected either a string or an object but the passed-in translation was type "+typeof e),!1}clearTranslations(){this.translationTable={}}translate(e){return e in this.translationTable?this.translationTable[e]:e}}},{"./Manyfest-LogToConsole.js":75}],75:[function(e,t,r){t.exports=(e,t)=>{let r="string"==typeof e?e:"";console.log(`[Manyfest] ${r}`),t&&console.log(JSON.stringify(t))}},{}],76:[function(e,t,r){const n=e("./Manyfest-LogToConsole.js"),s=e("./Manyfest-ObjectAddress-GetValue.js");let i={DataFormat:e("./Manyfest-ObjectAddress-Parser.js")};t.exports=class{constructor(e,t){this.logInfo="function"==typeof e?e:n,this.logError="function"==typeof t?t:n,this.getObjectValueClass=new s(this.logInfo,this.logError)}checkAddressExists(e,t,r){if("object"!=typeof e)return!1;if("string"!=typeof t)return!1;let s=void 0===r?e:r,o=i.DataFormat.stringGetFirstSegment(t);if(o.length==t.length){let r=t.indexOf("["),n=t.indexOf("]"),s=t.indexOf("(");if(s>0&&i.DataFormat.stringCountEnclosures(t)>0){let r=t.substring(0,s).trim();return r in e&&"function"==typeof e[r]}if(r>0&&n>r&&n-r>1){let s=t.substring(0,r).trim();if("object"!=typeof e[s])return!1;let i=t.substring(r+1,n).trim(),o=parseInt(i,10);return Array.isArray(e[s])!=isNaN(o)&&(isNaN(o)?(i=this.cleanWrapCharacters('"',i),i=this.cleanWrapCharacters("`",i),i=this.cleanWrapCharacters("'",i),i in e[s]):o in e[s])}return t in e}{let a=o,l=t.substring(o.length+1),u=a.indexOf("["),c=a.indexOf("]"),h=a.indexOf("(");if(h>0&&i.DataFormat.stringCountEnclosures(a)>0){let o=a.substring(0,h).trim();if("function"==(e[o],!1))return!1;let u=i.DataFormat.stringGetSegments(i.DataFormat.stringGetEnclosureValueByIndex(a.substring(o.length),0),",");if(0==u.length||""==u[0]){if(!(o in e))return n.log(`Function ${o} does not exist (address [${t}])`),!1;try{return this.checkAddressExists(e[o].apply(e),l,s)}catch(e){return n.log(`Error calling function ${o} (address [${t}]): ${e.message}`),!1}}else{let s=[],i=void 0===r?e:r;for(let e=0;e<u.length;e++)s.push(this.getObjectValueClass.getValueAtAddress(i,u[e]));if(!(o in e))return n.log(`Function ${o} does not exist (address [${t}])`),!1;try{return this.checkAddressExists(e[o].apply(e,s),l,i)}catch(e){return n.log(`Error calling function ${o} (address [${t}]): ${e.message}`),!1}}}else if(u>0&&c>u&&c-u>1){let t=a.substring(0,u).trim(),r=a.substring(u+1,c).trim(),n=parseInt(r,10);return Array.isArray(e[t])!=isNaN(n)&&(isNaN(n)?(r=this.cleanWrapCharacters('"',r),r=this.cleanWrapCharacters("`",r),r=this.cleanWrapCharacters("'",r),this.checkAddressExists(e[t][r],l,s)):this.checkAddressExists(e[t][n],l,s))}return(!(a in e)||"object"==typeof e[a])&&(a in e||(e[a]={}),this.checkAddressExists(e[a],l,s))}}}},{"./Manyfest-LogToConsole.js":75,"./Manyfest-ObjectAddress-GetValue.js":78,"./Manyfest-ObjectAddress-Parser.js":79}],77:[function(e,t,r){let n=e("./Manyfest-LogToConsole.js"),s=e("./Manyfest-CleanWrapCharacters.js"),i=e("../source/Manyfest-ParseConditionals.js");t.exports=class{constructor(e,t){this.logInfo="function"==typeof e?e:n,this.logError="function"==typeof t?t:n,this.cleanWrapCharacters=s}checkRecordFilters(e,t){return i(this,e,t)}deleteValueAtAddress(e,t,r){if("object"!=typeof e)return;if("string"!=typeof t)return;let n="";"string"==typeof r&&(n=r);let s=t.indexOf(".");if(-1==s){let r=t.indexOf("["),n=t.indexOf("]"),s=t.indexOf("{}");if(r>0&&n>r&&n-r>1){let s=t.substring(0,r).trim();if("object"!=typeof e[s])return!1;let i=t.substring(r+1,n).trim(),o=parseInt(i,10);return Array.isArray(e[s])!=isNaN(o)&&(isNaN(o)?(i=this.cleanWrapCharacters('"',i),i=this.cleanWrapCharacters("`",i),i=this.cleanWrapCharacters("'",i),delete e[s][i],!0):(delete e[s][o],!0))}if(r>0&&n>r&&n-r==1){let n=t.substring(0,r).trim();if(!Array.isArray(e[n]))return!1;let s=e[n];for(let e=s.length-1;e>=0;e--){this.checkRecordFilters(t,s[e])&&s.splice(e,1)}return!0}if(s>0){let r=t.substring(0,s).trim();return"object"==typeof e[r]&&(delete e[r],!0)}return delete e[t],!0}{let r=t.substring(0,s),i=t.substring(s+1),o=r.indexOf("["),a=r.indexOf("]");if(o>0&&a>o&&a-o>1){let t=r.substring(0,o).trim(),s=r.substring(o+1,a).trim(),l=parseInt(s,10);return Array.isArray(e[t])!=isNaN(l)&&("object"==typeof e[t]&&(isNaN(l)?(s=this.cleanWrapCharacters('"',s),s=this.cleanWrapCharacters("`",s),s=this.cleanWrapCharacters("'",s),n=`${n}${n.length>0?".":""}${r}`,this.deleteValueAtAddress(e[t][s],i,n)):(n=`${n}${n.length>0?".":""}${r}`,this.deleteValueAtAddress(e[t][l],i,n))))}if(o>0&&a>o&&a-o==1){let r=t.substring(0,o).trim();if(!Array.isArray(e[r]))return!1;let s=e[r];n=`${n}${n.length>0?".":""}${r}`;let a={};for(let t=0;t<s.length;t++){let s=`${n}[${t}]`,o=this.deleteValueAtAddress(e[r][t],i,s);a[`${s}.${i}`]=o}return a}let l=t.indexOf("{}");if(l>0){let r=t.substring(0,l).trim();if("object"!=typeof e[r])return!1;let s=e[r],o=Object.keys(s);n=`${n}${n.length>0?".":""}${r}`;let a={};for(let s=0;s<o.length;s++){let l=`${n}.${o[s]}`,u=this.deleteValueAtAddress(e[r][o[s]],i,l);this.checkRecordFilters(t,u)&&(a[`${l}.${i}`]=u)}return a}return r in e&&"object"!=typeof e[r]?void 0:r in e?(n=`${n}${n.length>0?".":""}${r}`,this.deleteValueAtAddress(e[r],i,n)):(n=`${n}${n.length>0?".":""}${r}`,e[r]={},this.deleteValueAtAddress(e[r],i,n))}}}},{"../source/Manyfest-ParseConditionals.js":82,"./Manyfest-CleanWrapCharacters.js":73,"./Manyfest-LogToConsole.js":75}],78:[function(e,t,r){let n=e("./Manyfest-LogToConsole.js"),s=e("./Manyfest-CleanWrapCharacters.js"),i=e("../source/Manyfest-ParseConditionals.js"),o={DataFormat:e("./Manyfest-ObjectAddress-Parser.js")};t.exports=class{constructor(e,t){this.logInfo="function"==typeof e?e:n,this.logError="function"==typeof t?t:n,this.cleanWrapCharacters=s}checkRecordFilters(e,t){return i(this,e,t)}getValueAtAddress(e,t,r,n){if("object"!=typeof e)return;if(null===e)return;if("string"!=typeof t)return;let s="";"string"==typeof r&&(s=r);let i=void 0===n?e:n,a=o.DataFormat.stringGetFirstSegment(t);if(""==a){let e=o.DataFormat.stringGetSegments(s),r=0;for(let e=0;e<t.length&&"."==t.charAt(e);e++)r++;let n=e.length-r;if(n<0)return;{let s=t.slice(r);return n>0&&(s=`${e.slice(0,n).join(".")}.${s}`),this.logInfo(`Back-navigation detected. Recursing back to address [${s}]`),this.getValueAtAddress(i,s)}}if(a.length!=t.length){let r=a,l=t.substring(a.length+1),u=r.indexOf("["),c=r.indexOf("]"),h=r.indexOf("(");if(h>0&&o.DataFormat.stringCountEnclosures(r)>0){let a=r.substring(0,h).trim();if(s=`${s}${s.length>0?".":""}${r}`,"function"==(e[a],!1))return!1;let u=o.DataFormat.stringGetSegments(o.DataFormat.stringGetEnclosureValueByIndex(r.substring(a.length),0),",");if(0==u.length||""==u[0]){if(!(a in e))return console.log(`Function ${a} does not exist (address [${t}])`),!1;try{return this.getValueAtAddress(e[a].apply(e),l,s,i)}catch(e){return console.log(`Error in getValueAtAddress calling function ${a} (address [${t}]): ${e.message}`),!1}}else{let r=[],i=void 0===n?e:n;for(let e=0;e<u.length;e++)!(u[e].length>=2)||'"'!=u[e].charAt(0)&&"'"!=u[e].charAt(0)&&"`"!=u[e].charAt(0)||'"'!=u[e].charAt(u[e].length-1)&&"'"!=u[e].charAt(u[e].length-1)&&"`"!=u[e].charAt(u[e].length-1)?r.push(this.getValueAtAddress(i,u[e])):r.push(u[e].substring(1,u[e].length-1));if(!(a in e))return console.log(`Function ${a} does not exist (address [${t}])`),!1;try{return this.getValueAtAddress(e[a].apply(e,r),l,s,i)}catch(e){return console.log(`Error in getValueAtAddress calling function ${a} (address [${t}]): ${e.message}`),!1}}}else{if(u>0&&c>u&&c-u>1){let t=r.substring(0,u).trim(),n=r.substring(u+1,c).trim(),o=parseInt(n,10);if(Array.isArray(e[t])==isNaN(o))return;if("object"!=typeof e[t])return;return isNaN(o)?(n=this.cleanWrapCharacters('"',n),n=this.cleanWrapCharacters("`",n),n=this.cleanWrapCharacters("'",n),s=`${s}${s.length>0?".":""}${r}`,this.getValueAtAddress(e[t][n],l,s,i)):(s=`${s}${s.length>0?".":""}${r}`,this.getValueAtAddress(e[t][o],l,s,i))}if(u>0&&c>u&&c-u==1){let r=t.substring(0,u).trim();if(!Array.isArray(e[r]))return!1;let n=e[r];s=`${s}${s.length>0?".":""}${r}`;let o={};for(let t=0;t<n.length;t++){let n=`${s}[${t}]`,a=this.getValueAtAddress(e[r][t],l,n,i);o[`${n}.${l}`]=a}return o}}let f=t.indexOf("{}");if(f>0){let r=t.substring(0,f).trim();if("object"!=typeof e[r])return!1;let n=e[r],o=Object.keys(n);s=`${s}${s.length>0?".":""}${r}`;let a={};for(let n=0;n<o.length;n++){let u=`${s}.${o[n]}`,c=this.getValueAtAddress(e[r][o[n]],l,u,i);this.checkRecordFilters(t,c)&&(a[`${u}.${l}`]=c)}return a}return r in e&&"object"!=typeof e[r]?void 0:r in e?(s=`${s}${s.length>0?".":""}${r}`,this.getValueAtAddress(e[r],l,s,i)):(s=`${s}${s.length>0?".":""}${r}`,e[r]={},this.getValueAtAddress(e[r],l,s,i))}{let r=t.indexOf("["),s=t.indexOf("]"),i=t.indexOf("{}"),a=t.indexOf("(");if(!(a>0&&o.DataFormat.stringCountEnclosures(t)>0)){if(r>0&&s>r&&s-r>1){let n=t.substring(0,r).trim();if("object"!=typeof e[n])return;let i=t.substring(r+1,s).trim(),o=parseInt(i,10);if(Array.isArray(e[n])==isNaN(o))return;return isNaN(o)?(i=this.cleanWrapCharacters('"',i),i=this.cleanWrapCharacters("`",i),i=this.cleanWrapCharacters("'",i),e[n][i]):e[n][o]}if(r>0&&s>r&&s-r==1){let n=t.substring(0,r).trim();if(!Array.isArray(e[n]))return!1;let s=e[n],i=[];for(let e=0;e<s.length;e++){this.checkRecordFilters(t,s[e])&&i.push(s[e])}return i}if(i>0){let r=t.substring(0,i).trim();return"object"==typeof e[r]&&e[r]}return null!=typeof e[t]?e[t]:null}{let r=t.substring(0,a).trim();if("function"==(e[r],!1))return!1;let s=o.DataFormat.stringGetSegments(o.DataFormat.stringGetEnclosureValueByIndex(t.substring(r.length),0),",");if(0==s.length||""==s[0]){if(!(r in e))return console.log(`Function ${r} does not exist (address [${t}])`),!1;try{return e[r].apply(e)}catch(e){return console.log(`Error in getValueAtAddress calling function ${r} (address [${t}]): ${e.message}`),!1}}else{let i=[],o=void 0===n?e:n;for(let e=0;e<s.length;e++)!(s[e].length>=2)||'"'!=s[e].charAt(0)&&"'"!=s[e].charAt(0)&&"`"!=s[e].charAt(0)||'"'!=s[e].charAt(s[e].length-1)&&"'"!=s[e].charAt(s[e].length-1)&&"`"!=s[e].charAt(s[e].length-1)?i.push(this.getValueAtAddress(o,s[e])):i.push(s[e].substring(1,s[e].length-1));if(!(r in e))return console.log(`Function ${r} does not exist (address [${t}])`),!1;try{return e[r].apply(e,i)}catch(e){return console.log(`Error in getValueAtAddress calling function ${r} (address [${t}]): ${e.message}`),!1}}}}}}},{"../source/Manyfest-ParseConditionals.js":82,"./Manyfest-CleanWrapCharacters.js":73,"./Manyfest-LogToConsole.js":75,"./Manyfest-ObjectAddress-Parser.js":79}],79:[function(e,t,r){t.exports={stringCountSegments:(e,t,r,n)=>{let s="string"==typeof e?e:"",i="string"==typeof t?t:".",o="object"==typeof r?pEnclosureStart:{"{":0,"[":1,"(":2},a="object"==typeof n?pEnclosureEnd:{"}":0,"]":1,")":2};if(e.length<1)return 0;let l=1,u=[];for(let e=0;e<s.length;e++)s[e]==i&&0==u.length?l++:s[e]in o?u.push(o[s[e]]):s[e]in a&&a[s[e]]==u[u.length-1]&&u.pop();return l},stringGetFirstSegment:(e,t,r,n)=>{let s="string"==typeof e?e:"",i="string"==typeof t?t:".",o="object"==typeof r?pEnclosureStart:{"{":0,"[":1,"(":2},a="object"==typeof n?pEnclosureEnd:{"}":0,"]":1,")":2};if(e.length<1)return 0;let l=[];for(let e=0;e<s.length;e++){if(s[e]==i&&0==l.length)return s.substring(0,e);s[e]in o?l.push(o[s[e]]):s[e]in a&&a[s[e]]==l[l.length-1]&&l.pop()}return s},stringGetSegments:(e,t,r,n)=>{let s="string"==typeof e?e:"",i="string"==typeof t?t:".",o="object"==typeof r?pEnclosureStart:{"{":0,"[":1,"(":2},a="object"==typeof n?pEnclosureEnd:{"}":0,"]":1,")":2},l=0,u=[];if(e.length<1)return u;let c=[];for(let e=0;e<s.length;e++)s[e]==i&&0==c.length?(u.push(s.substring(l,e)),l=e+1):s[e]in o?c.push(o[s[e]]):s[e]in a&&a[s[e]]==c[c.length-1]&&c.pop();return l<s.length&&u.push(s.substring(l)),u},stringCountEnclosures:(e,t,r)=>{let n="string"==typeof e?e:"",s="string"==typeof t?t:"(",i="string"==typeof r?r:")",o=0,a=0;for(let e=0;e<n.length;e++)n[e]==s?(0==a&&o++,a++):n[e]==i&&a--;return o},stringGetEnclosureValueByIndex:(e,t,r,n)=>{let s="string"==typeof e?e:"",i="number"==typeof t?t:0,o="string"==typeof r?r:"(",a="string"==typeof n?n:")",l=0,u=0,c=!1,h=0,f=0;for(let e=0;e<s.length;e++)s[e]==o?(u++,1==u&&(l++,i==l-1&&(c=!0,h=e))):s[e]==a&&(u--,0==u&&c&&f<=h&&(f=e,c=!1));return l<=i?"":f>0&&f>h?s.substring(h+1,f):s.substring(h+1)}}},{}],80:[function(e,t,r){let n=e("./Manyfest-LogToConsole.js"),s=e("./Manyfest-CleanWrapCharacters.js");t.exports=class{constructor(e,t){this.logInfo="function"==typeof e?e:n,this.logError="function"==typeof t?t:n,this.cleanWrapCharacters=s}setValueAtAddress(e,t,r){if("object"!=typeof e)return!1;if("string"!=typeof t)return!1;let n=t.indexOf(".");if(-1==n){let n=t.indexOf("["),s=t.indexOf("]");if(n>0&&s>n&&s-n>1){let i=t.substring(0,n).trim(),o=t.substring(n+1,s).trim(),a=parseInt(o,10),l=!isNaN(a);if(null==e[i]&&(e[i]=l?[]:{}),"object"!=typeof e[i])return!1;if(Array.isArray(e[i])==isNaN(a))return!1;if(isNaN(a))return o=this.cleanWrapCharacters('"',o),o=this.cleanWrapCharacters("`",o),o=this.cleanWrapCharacters("'",o),o in e[i]||(e[i][o]={}),e[i][o]=r,!0;for(;e[i].length<a+1;)e[i].push({});return e[i][a]=r,!0}return e[t]=r,!0}{let s=t.substring(0,n),i=t.substring(n+1),o=s.indexOf("["),a=s.indexOf("]");if(o>0&&a>o&&a-o>1){let t=s.substring(0,o).trim(),n=s.substring(o+1,a).trim(),l=parseInt(n,10),u=!isNaN(l);if(null==e[t]&&(e[t]=u?[]:{}),Array.isArray(e[t])!=u)return!1;if(isNaN(l))return n=this.cleanWrapCharacters('"',n),n=this.cleanWrapCharacters("`",n),n=this.cleanWrapCharacters("'",n),n in e[t]||(e[t][n]={}),this.setValueAtAddress(e[t][n],i,r);for(;e[t].length<l+1;)e[t].push({});return this.setValueAtAddress(e[t][l],i,r)}return s in e&&"object"!=typeof e[s]?("__ERROR"in e||(e.__ERROR={}),e.__ERROR[t]=r,!1):(s in e||(e[s]={}),this.setValueAtAddress(e[s],i,r))}}}},{"./Manyfest-CleanWrapCharacters.js":73,"./Manyfest-LogToConsole.js":75}],81:[function(e,t,r){let n=e("./Manyfest-LogToConsole.js");t.exports=class{constructor(e,t){this.logInfo="function"==typeof e?e:n,this.logError="function"==typeof t?t:n}generateAddressses(e,t,r){let n="string"==typeof t?t:"",s="object"==typeof r?r:{},i=typeof e,o={Address:n,Hash:n,Name:n,InSchema:!1};switch("object"==i&&null==e&&(i="null"),i){case"string":o.DataType="String",o.Default=e,s[n]=o;break;case"number":case"bigint":o.DataType="Number",o.Default=e,s[n]=o;break;case"undefined":case"null":o.DataType="Any",o.Default=e,s[n]=o;break;case"object":if(Array.isArray(e)){o.DataType="Array",""!=n&&(s[n]=o);for(let t=0;t<e.length;t++)this.generateAddressses(e[t],`${n}[${t}]`,s)}else{o.DataType="Object",""!=n&&(s[n]=o,n+=".");let t=Object.keys(e);for(let r=0;r<t.length;r++)this.generateAddressses(e[t[r]],`${n}${t[r]}`,s)}}return s}}},{"./Manyfest-LogToConsole.js":75}],82:[function(e,t,r){const n="<<~?",s="?~>>",i=(e,t,r,n,s)=>{switch(n){case"TRUE":return!0===e.getValueAtAddress(t,r);case"FALSE":return!1===e.getValueAtAddress(t,r);case"LNGT":case"LENGTH_GREATER_THAN":switch(typeof e.getValueAtAddress(t,r)){case"string":case"object":return e.getValueAtAddress(t,r).length>s;default:return!1}break;case"LNLT":case"LENGTH_LESS_THAN":switch(typeof e.getValueAtAddress(t,r)){case"string":case"object":return e.getValueAtAddress(t,r).length<s;default:return!1}break;case"!=":return e.getValueAtAddress(t,r)!=s;case"<":return e.getValueAtAddress(t,r)<s;case">":return e.getValueAtAddress(t,r)>s;case"<=":return e.getValueAtAddress(t,r)<=s;case">=":return e.getValueAtAddress(t,r)>=s;case"===":return e.getValueAtAddress(t,r)===s;default:return e.getValueAtAddress(t,r)==s}};t.exports=(e,t,r)=>{let o=!0,a=t.indexOf(n);for(;-1!=a;){let l=t.indexOf(s,a+4);if(-1!=l){let s=t.substring(a+4,l).split(","),u=s[0],c="EXISTS";s.length>1&&(c=s[1]);let h=!1;s.length>2&&(h=s[2]),o=o&&i(e,r,u,c,h),a=t.indexOf(n,l+4)}else a=-1}return o}},{}],83:[function(e,t,r){let n=e("./Manyfest-LogToConsole.js");t.exports=class{constructor(e,t){this.logInfo="function"==typeof e?e:n,this.logError="function"==typeof t?t:n}resolveAddressMappings(e,t){if("object"!=typeof e)return this.logError("Attempted to resolve address mapping but the descriptor was not an object."),!1;if("object"!=typeof t)return!0;let r=Object.keys(e),n={};return r.forEach((t=>{"Hash"in e[t]&&(n[e[t].Hash]=t)})),Object.keys(t).forEach((r=>{let s=t[r],i=!1,o=!1;r in e?i=r:r in n&&(i=n[r]),i?(o=e[i],delete e[i]):o={Hash:r},e[s]=o})),!0}safeResolveAddressMappings(e,t){let r=JSON.parse(JSON.stringify(e));return this.resolveAddressMappings(r,t),r}mergeAddressMappings(e,t){if("object"!=typeof t||"object"!=typeof e)return this.logError("Attempted to merge two schema descriptors but both were not objects."),!1;let r=JSON.parse(JSON.stringify(t)),n=JSON.parse(JSON.stringify(e));return Object.keys(r).forEach((e=>{e in n||(n[e]=r[e])})),n}}},{"./Manyfest-LogToConsole.js":75}],84:[function(e,t,r){const n=e("fable-serviceproviderbase");let s=e("./Manyfest-LogToConsole.js"),i=e("./Manyfest-HashTranslation.js"),o=e("./Manyfest-ObjectAddress-CheckAddressExists.js"),a=e("./Manyfest-ObjectAddress-GetValue.js"),l=e("./Manyfest-ObjectAddress-SetValue.js"),u=e("./Manyfest-ObjectAddress-DeleteValue.js"),c=e("./Manyfest-ObjectAddressGeneration.js"),h=e("./Manyfest-SchemaManipulation.js");const f={Scope:"DEFAULT",Descriptors:{}};class p extends n{constructor(e,t,r){void 0===e?super({}):super(e,t,r),this.options,this.serviceType="Manifest",this.logInfo=s,this.logError=s,this.objectAddressCheckAddressExists=new o(this.logInfo,this.logError),this.objectAddressGetValue=new a(this.logInfo,this.logError),this.objectAddressSetValue=new l(this.logInfo,this.logError),this.objectAddressDeleteValue=new u(this.logInfo,this.logError),"defaultValues"in this.options||(this.options.defaultValues={String:"",Number:0,Float:0,Integer:0,PreciseNumber:"0.0",Boolean:!1,Binary:0,DateTime:0,Array:[],Object:{},Null:null}),"strict"in this.options||(this.options.strict=!1),this.scope=void 0,this.elementAddresses=void 0,this.elementHashes=void 0,this.elementDescriptors=void 0,this.reset(),"object"==typeof this.options&&this.loadManifest(this.options),this.schemaManipulations=new h(this.logInfo,this.logError),this.objectAddressGeneration=new c(this.logInfo,this.logError),this.hashTranslations=new i(this.logInfo,this.logError),this.numberRegex=/^[+-]?(\d+(\.\d*)?|\.\d+)([eE][+-]?\d+)?$/}reset(){this.scope="DEFAULT",this.elementAddresses=[],this.elementHashes={},this.elementDescriptors={}}clone(){let e=JSON.parse(JSON.stringify(this.options)),t=new p(this.getManifest(),this.logInfo,this.logError,e);return t.hashTranslations.addTranslation(this.hashTranslations.translationTable),t}deserialize(e){return this.loadManifest(JSON.parse(e))}loadManifest(e){"object"!=typeof e&&this.logError(`(${this.scope}) Error loading manifest; expecting an object but parameter was type ${typeof e}.`);let t="object"==typeof e?e:{},r=Object.keys(f);for(let e=0;e<r.length;e++)r[e]in t||(t[r[e]]=JSON.parse(JSON.stringify(f[r[e]])));if("Scope"in t?"string"==typeof t.Scope?this.scope=t.Scope:this.logError(`(${this.scope}) Error loading scope from manifest; expecting a string but property was type ${typeof t.Scope}.`,t):this.logError(`(${this.scope}) Error loading scope from manifest object. Property "Scope" does not exist in the root of the object.`,t),"Descriptors"in t)if("object"==typeof t.Descriptors){let e=Object.keys(t.Descriptors);for(let r=0;r<e.length;r++)this.addDescriptor(e[r],t.Descriptors[e[r]])}else this.logError(`(${this.scope}) Error loading description object from manifest object. Expecting an object in 'Manifest.Descriptors' but the property was type ${typeof t.Descriptors}.`,t);else this.logError(`(${this.scope}) Error loading object description from manifest object. Property "Descriptors" does not exist in the root of the Manifest object.`,t);if("HashTranslations"in t&&"object"==typeof t.HashTranslations)for(let e=0;e<t.HashTranslations.length;e++);}serialize(){return JSON.stringify(this.getManifest())}getManifest(){return{Scope:this.scope,Descriptors:JSON.parse(JSON.stringify(this.elementDescriptors)),HashTranslations:JSON.parse(JSON.stringify(this.hashTranslations.translationTable))}}addDescriptor(e,t){return"object"==typeof t?("Address"in t||(t.Address=e),e in this.elementDescriptors||this.elementAddresses.push(e),this.elementDescriptors[e]=t,this.elementHashes[e]=e,"Hash"in t?this.elementHashes[t.Hash]=e:t.Hash=e,!0):(this.logError(`(${this.scope}) Error loading object descriptor for address '${e}' from manifest object. Expecting an object but property was type ${typeof t}.`),!1)}getDescriptorByHash(e){return this.getDescriptor(this.resolveHashAddress(e))}getDescriptor(e){return this.elementDescriptors[e]}eachDescriptor(e){let t=Object.keys(this.elementDescriptors);for(let r=0;r<t.length;r++)e(this.elementDescriptors[t[r]])}checkAddressExistsByHash(e,t){return this.checkAddressExists(e,this.resolveHashAddress(t))}checkAddressExists(e,t){return this.objectAddressCheckAddressExists.checkAddressExists(e,t)}resolveHashAddress(e){let t,r=e in this.elementHashes,n=e in this.hashTranslations.translationTable;return t=r&&!n?this.elementHashes[e]:n&&this.hashTranslations.translate(e)in this.elementHashes?this.elementHashes[this.hashTranslations.translate(e)]:n?this.hashTranslations.translate(e):e,t}getValueByHash(e,t){let r=this.getValueAtAddress(e,this.resolveHashAddress(t));return void 0===r&&(r=this.getDefaultValue(this.getDescriptorByHash(t))),r}lintAddress(e){let t=e.trim();return(t.endsWith("..")||t.endsWith("."))&&(t=t.slice(0,-1)),t}getValueAtAddress(e,t){let r=this.lintAddress(t);if(""==r)return void this.logError(`(${this.scope}) Error getting value at address; address is an empty string.`,e);let n=this.objectAddressGetValue.getValueAtAddress(e,r);return void 0===n&&(n=this.getDefaultValue(this.getDescriptor(r))),n}setValueByHash(e,t,r){return this.setValueAtAddress(e,this.resolveHashAddress(t),r)}setValueAtAddress(e,t,r){let n=this.lintAddress(t);return this.objectAddressSetValue.setValueAtAddress(e,n,r)}deleteValueByHash(e,t,r){return this.deleteValueAtAddress(e,this.resolveHashAddress(t),r)}deleteValueAtAddress(e,t,r){let n=this.lintAddress(t);return this.objectAddressDeleteValue.deleteValueAtAddress(e,n,r)}validate(e){let t={Error:null,Errors:[],MissingElements:[]};"object"!=typeof e&&(t.Error=!0,t.Errors.push("Expected passed in object to be type object but was passed in "+typeof e));let r=(e,r)=>{t.Error=!0,t.Errors.push(`Element at address "${e}" ${r}.`)};for(let n=0;n<this.elementAddresses.length;n++){let s=this.getDescriptor(this.elementAddresses[n]),i=this.checkAddressExists(e,s.Address),o=this.getValueAtAddress(e,s.Address);if(void 0!==o&&i||(t.MissingElements.push(s.Address),(s.Required||this.options.strict)&&r(s.Address,"is flagged REQUIRED but is not set in the object")),s.DataType){let e=typeof o;switch(s.DataType.toString().trim().toLowerCase()){case"string":"string"!=e&&r(s.Address,`has a DataType ${s.DataType} but is of the type ${e}`);break;case"precisenumber":"string"!=e?r(s.Address,`has a DataType ${s.DataType} but is of the type ${e}`):this.numberRegex.test(o)||r(s.Address,`has a DataType ${s.DataType} but is not a valid number`);break;case"number":"number"!=e&&r(s.Address,`has a DataType ${s.DataType} but is of the type ${e}`);break;case"integer":if("number"!=e)r(s.Address,`has a DataType ${s.DataType} but is of the type ${e}`);else{o.toString().indexOf(".")>-1&&r(s.Address,`has a DataType ${s.DataType} but has a decimal point in the number.`)}break;case"float":"number"!=e&&r(s.Address,`has a DataType ${s.DataType} but is of the type ${e}`);break;case"datetime":"Invalid Date"==new Date(o).toString()&&r(s.Address,`has a DataType ${s.DataType} but is not parsable as a Date by Javascript`);default:"string"!=e&&r(s.Address,`has a DataType ${s.DataType} (which auto-converted to String because it was unrecognized) but is of the type ${e}`)}}}return t}getDefaultValue(e){if("object"==typeof e){if("Default"in e)return e.Default;{let t="DataType"in e?e.DataType:"String";return t in this.options.defaultValues?this.options.defaultValues[t]:null}}}populateDefaults(e,t){return this.populateObject(e,t,(e=>"Default"in e))}populateObject(e,t,r){let n="object"==typeof e?e:{},s=void 0!==t&&t,i="function"==typeof r?r:e=>!0;return this.elementAddresses.forEach((e=>{let t=this.getDescriptor(e);i(t)&&(!s&&this.checkAddressExists(n,e)||this.setValueAtAddress(n,e,this.getDefaultValue(t)))})),n}}t.exports=p},{"./Manyfest-HashTranslation.js":74,"./Manyfest-LogToConsole.js":75,"./Manyfest-ObjectAddress-CheckAddressExists.js":76,"./Manyfest-ObjectAddress-DeleteValue.js":77,"./Manyfest-ObjectAddress-GetValue.js":78,"./Manyfest-ObjectAddress-SetValue.js":80,"./Manyfest-ObjectAddressGeneration.js":81,"./Manyfest-SchemaManipulation.js":83,"fable-serviceproviderbase":53}],85:[function(e,t,r){(function(r){(function(){var n="function"==typeof Map&&Map.prototype,s=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=n&&s&&"function"==typeof s.get?s.get:null,o=n&&Map.prototype.forEach,a="function"==typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=a&&l&&"function"==typeof l.get?l.get:null,c=a&&Set.prototype.forEach,h="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,p="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,d=Boolean.prototype.valueOf,g=Object.prototype.toString,y=Function.prototype.toString,m=String.prototype.match,b=String.prototype.slice,v=String.prototype.replace,S=String.prototype.toUpperCase,P=String.prototype.toLowerCase,T=RegExp.prototype.test,w=Array.prototype.concat,x=Array.prototype.join,E=Array.prototype.slice,k=Math.floor,A="function"==typeof BigInt?BigInt.prototype.valueOf:null,O=Object.getOwnPropertySymbols,_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,N="function"==typeof Symbol&&"object"==typeof Symbol.iterator,j="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===N||"symbol")?Symbol.toStringTag:null,R=Object.prototype.propertyIsEnumerable,M=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function L(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||T.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-k(-e):k(e);if(n!==e){var s=String(n),i=b.call(t,s.length+1);return v.call(s,r,"$&_")+"."+v.call(v.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return v.call(t,r,"$&_")}var C=e("./util.inspect"),D=C.custom,$=U(D)?D:null;function F(e,t,r){var n="double"===(r.quoteStyle||t)?'"':"'";return n+e+n}function I(e){return v.call(String(e),/"/g,"&quot;")}function V(e){return!("[object Array]"!==z(e)||j&&"object"==typeof e&&j in e)}function B(e){return!("[object RegExp]"!==z(e)||j&&"object"==typeof e&&j in e)}function U(e){if(N)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!_)return!1;try{return _.call(e),!0}catch(e){}return!1}t.exports=function e(t,n,s,a){var l=n||{};if(W(l,"quoteStyle")&&"single"!==l.quoteStyle&&"double"!==l.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(W(l,"maxStringLength")&&("number"==typeof l.maxStringLength?l.maxStringLength<0&&l.maxStringLength!==1/0:null!==l.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var g=!W(l,"customInspect")||l.customInspect;if("boolean"!=typeof g&&"symbol"!==g)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(W(l,"indent")&&null!==l.indent&&"\t"!==l.indent&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(W(l,"numericSeparator")&&"boolean"!=typeof l.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var S=l.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return G(t,l);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var T=String(t);return S?L(t,T):T}if("bigint"==typeof t){var k=String(t)+"n";return S?L(t,k):k}var O=void 0===l.depth?5:l.depth;if(void 0===s&&(s=0),s>=O&&O>0&&"object"==typeof t)return V(t)?"[Array]":"[Object]";var D=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=x.call(Array(e.indent+1)," ")}return{base:r,prev:x.call(Array(t+1),r)}}(l,s);if(void 0===a)a=[];else if(q(a,t)>=0)return"[Circular]";function H(t,r,n){if(r&&(a=E.call(a)).push(r),n){var i={depth:l.depth};return W(l,"quoteStyle")&&(i.quoteStyle=l.quoteStyle),e(t,i,s+1,a)}return e(t,l,s+1,a)}if("function"==typeof t&&!B(t)){var J=function(e){if(e.name)return e.name;var t=m.call(y.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),ee=Z(t,H);return"[Function"+(J?": "+J:" (anonymous)")+"]"+(ee.length>0?" { "+x.call(ee,", ")+" }":"")}if(U(t)){var te=N?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):_.call(t);return"object"!=typeof t||N?te:Y(te)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var re="<"+P.call(String(t.nodeName)),ne=t.attributes||[],se=0;se<ne.length;se++)re+=" "+ne[se].name+"="+F(I(ne[se].value),"double",l);return re+=">",t.childNodes&&t.childNodes.length&&(re+="..."),re+="</"+P.call(String(t.nodeName))+">"}if(V(t)){if(0===t.length)return"[]";var ie=Z(t,H);return D&&!function(e){for(var t=0;t<e.length;t++)if(q(e[t],"\n")>=0)return!1;return!0}(ie)?"["+X(ie,D)+"]":"[ "+x.call(ie,", ")+" ]"}if(function(e){return!("[object Error]"!==z(e)||j&&"object"==typeof e&&j in e)}(t)){var oe=Z(t,H);return"cause"in Error.prototype||!("cause"in t)||R.call(t,"cause")?0===oe.length?"["+String(t)+"]":"{ ["+String(t)+"] "+x.call(oe,", ")+" }":"{ ["+String(t)+"] "+x.call(w.call("[cause]: "+H(t.cause),oe),", ")+" }"}if("object"==typeof t&&g){if($&&"function"==typeof t[$]&&C)return C(t,{depth:O-s});if("symbol"!==g&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{u.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var ae=[];return o&&o.call(t,(function(e,r){ae.push(H(r,t,!0)+" => "+H(e,t))})),Q("Map",i.call(t),ae,D)}if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{u.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var le=[];return c&&c.call(t,(function(e){le.push(H(e,t))})),Q("Set",u.call(t),le,D)}if(function(e){if(!h||!e||"object"!=typeof e)return!1;try{h.call(e,h);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return K("WeakMap");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{h.call(e,h)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return K("WeakSet");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{return p.call(e),!0}catch(e){}return!1}(t))return K("WeakRef");if(function(e){return!("[object Number]"!==z(e)||j&&"object"==typeof e&&j in e)}(t))return Y(H(Number(t)));if(function(e){if(!e||"object"!=typeof e||!A)return!1;try{return A.call(e),!0}catch(e){}return!1}(t))return Y(H(A.call(t)));if(function(e){return!("[object Boolean]"!==z(e)||j&&"object"==typeof e&&j in e)}(t))return Y(d.call(t));if(function(e){return!("[object String]"!==z(e)||j&&"object"==typeof e&&j in e)}(t))return Y(H(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if(t===r)return"{ [object globalThis] }";if(!function(e){return!("[object Date]"!==z(e)||j&&"object"==typeof e&&j in e)}(t)&&!B(t)){var ue=Z(t,H),ce=M?M(t)===Object.prototype:t instanceof Object||t.constructor===Object,he=t instanceof Object?"":"null prototype",fe=!ce&&j&&Object(t)===t&&j in t?b.call(z(t),8,-1):he?"Object":"",pe=(ce||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(fe||he?"["+x.call(w.call([],fe||[],he||[]),": ")+"] ":"");return 0===ue.length?pe+"{}":D?pe+"{"+X(ue,D)+"}":pe+"{ "+x.call(ue,", ")+" }"}return String(t)};var H=Object.prototype.hasOwnProperty||function(e){return e in this};function W(e,t){return H.call(e,t)}function z(e){return g.call(e)}function q(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function G(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return G(b.call(e,0,t.maxStringLength),t)+n}return F(v.call(v.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,J),"single",t)}function J(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+S.call(t.toString(16))}function Y(e){return"Object("+e+")"}function K(e){return e+" { ? }"}function Q(e,t,r,n){return e+" ("+t+") {"+(n?X(r,n):x.call(r,", "))+"}"}function X(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+x.call(e,","+r)+"\n"+t.prev}function Z(e,t){var r=V(e),n=[];if(r){n.length=e.length;for(var s=0;s<e.length;s++)n[s]=W(e,s)?t(e[s],e):""}var i,o="function"==typeof O?O(e):[];if(N){i={};for(var a=0;a<o.length;a++)i["$"+o[a]]=o[a]}for(var l in e)W(e,l)&&(r&&String(Number(l))===l&&l<e.length||N&&i["$"+l]instanceof Symbol||(T.call(/[^\w$]/,l)?n.push(t(l,e)+": "+t(e[l],e)):n.push(l+": "+t(e[l],e))));if("function"==typeof O)for(var u=0;u<o.length;u++)R.call(e,o[u])&&n.push("["+t(o[u])+"]: "+t(e[o[u]],e));return n}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./util.inspect":18}],86:[function(e,t,r){var n=e("wrappy");function s(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function i(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},r=e.name||"Function wrapped with `once`";return t.onceError=r+" shouldn't be called more than once",t.called=!1,t}t.exports=n(s),t.exports.strict=n(i),s.proto=s((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return s(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return i(this)},configurable:!0})}))},{wrappy:129}],87:[function(e,t,r){(function(e){(function(){function r(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var r,n="",s=0,i=-1,o=0,a=0;a<=e.length;++a){if(a<e.length)r=e.charCodeAt(a);else{if(47===r)break;r=47}if(47===r){if(i===a-1||1===o);else if(i!==a-1&&2===o){if(n.length<2||2!==s||46!==n.charCodeAt(n.length-1)||46!==n.charCodeAt(n.length-2))if(n.length>2){var l=n.lastIndexOf("/");if(l!==n.length-1){-1===l?(n="",s=0):s=(n=n.slice(0,l)).length-1-n.lastIndexOf("/"),i=a,o=0;continue}}else if(2===n.length||1===n.length){n="",s=0,i=a,o=0;continue}t&&(n.length>0?n+="/..":n="..",s=2)}else n.length>0?n+="/"+e.slice(i+1,a):n=e.slice(i+1,a),s=a-i-1;i=a,o=0}else 46===r&&-1!==o?++o:o=-1}return n}var s={resolve:function(){for(var t,s="",i=!1,o=arguments.length-1;o>=-1&&!i;o--){var a;o>=0?a=arguments[o]:(void 0===t&&(t=e.cwd()),a=t),r(a),0!==a.length&&(s=a+"/"+s,i=47===a.charCodeAt(0))}return s=n(s,!i),i?s.length>0?"/"+s:"/":s.length>0?s:"."},normalize:function(e){if(r(e),0===e.length)return".";var t=47===e.charCodeAt(0),s=47===e.charCodeAt(e.length-1);return 0!==(e=n(e,!t)).length||t||(e="."),e.length>0&&s&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return r(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,t=0;t<arguments.length;++t){var n=arguments[t];r(n),n.length>0&&(void 0===e?e=n:e+="/"+n)}return void 0===e?".":s.normalize(e)},relative:function(e,t){if(r(e),r(t),e===t)return"";if((e=s.resolve(e))===(t=s.resolve(t)))return"";for(var n=1;n<e.length&&47===e.charCodeAt(n);++n);for(var i=e.length,o=i-n,a=1;a<t.length&&47===t.charCodeAt(a);++a);for(var l=t.length-a,u=o<l?o:l,c=-1,h=0;h<=u;++h){if(h===u){if(l>u){if(47===t.charCodeAt(a+h))return t.slice(a+h+1);if(0===h)return t.slice(a+h)}else o>u&&(47===e.charCodeAt(n+h)?c=h:0===h&&(c=0));break}var f=e.charCodeAt(n+h);if(f!==t.charCodeAt(a+h))break;47===f&&(c=h)}var p="";for(h=n+c+1;h<=i;++h)h!==i&&47!==e.charCodeAt(h)||(0===p.length?p+="..":p+="/..");return p.length>0?p+t.slice(a+c):(a+=c,47===t.charCodeAt(a)&&++a,t.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(r(e),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,s=-1,i=!0,o=e.length-1;o>=1;--o)if(47===(t=e.charCodeAt(o))){if(!i){s=o;break}}else i=!1;return-1===s?n?"/":".":n&&1===s?"//":e.slice(0,s)},basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');r(e);var n,s=0,i=-1,o=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var a=t.length-1,l=-1;for(n=e.length-1;n>=0;--n){var u=e.charCodeAt(n);if(47===u){if(!o){s=n+1;break}}else-1===l&&(o=!1,l=n+1),a>=0&&(u===t.charCodeAt(a)?-1==--a&&(i=n):(a=-1,i=l))}return s===i?i=l:-1===i&&(i=e.length),e.slice(s,i)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!o){s=n+1;break}}else-1===i&&(o=!1,i=n+1);return-1===i?"":e.slice(s,i)},extname:function(e){r(e);for(var t=-1,n=0,s=-1,i=!0,o=0,a=e.length-1;a>=0;--a){var l=e.charCodeAt(a);if(47!==l)-1===s&&(i=!1,s=a+1),46===l?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1);else if(!i){n=a+1;break}}return-1===t||-1===s||0===o||1===o&&t===s-1&&t===n+1?"":e.slice(t,s)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var r=t.dir||t.root,n=t.base||(t.name||"")+(t.ext||"");return r?r===t.root?r+n:r+e+n:n}("/",e)},parse:function(e){r(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var n,s=e.charCodeAt(0),i=47===s;i?(t.root="/",n=1):n=0;for(var o=-1,a=0,l=-1,u=!0,c=e.length-1,h=0;c>=n;--c)if(47!==(s=e.charCodeAt(c)))-1===l&&(u=!1,l=c+1),46===s?-1===o?o=c:1!==h&&(h=1):-1!==o&&(h=-1);else if(!u){a=c+1;break}return-1===o||-1===l||0===h||1===h&&o===l-1&&o===a+1?-1!==l&&(t.base=t.name=0===a&&i?e.slice(1,l):e.slice(a,l)):(0===a&&i?(t.name=e.slice(1,o),t.base=e.slice(1,l)):(t.name=e.slice(a,o),t.base=e.slice(a,l)),t.ext=e.slice(o,l)),a>0?t.dir=e.slice(0,a-1):i&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};s.posix=s,t.exports=s}).call(this)}).call(this,e("_process"))},{_process:91}],88:[function(e,t,r){
2
2
  /**
3
3
  * Precedent Meta-Templating
4
4
  *
@@ -8,5 +8,5 @@
8
8
  *
9
9
  * @description Process text streams, parsing out meta-template expressions.
10
10
  */
11
- var n=e("./WordTree.js"),s=e("./StringParser.js");t.exports=class{constructor(){this.WordTree=new n,this.StringParser=new s,this.ParseTree=this.WordTree.ParseTree}addPattern(e,t,r){return this.WordTree.addPattern(e,t,r)}parseString(e,t){return this.StringParser.parseString(e,this.ParseTree,t)}}},{"./StringParser.js":89,"./WordTree.js":90}],89:[function(e,t,r){t.exports=class{constructor(){}newParserState(e){return{ParseTree:e,Asynchronous:!1,Output:"",OutputBuffer:"",Pattern:{},PatternMatch:!1,PatternMatchEnd:!1}}appendOutputBuffer(e,t){t.OutputBuffer+=e}flushOutputBuffer(e){e.Output+=e.OutputBuffer,e.OutputBuffer=""}resetOutputBuffer(e){return this.flushOutputBuffer(e),e.Pattern=!1,e.PatternStartNode=!1,e.StartPatternMatchComplete=!1,e.EndPatternMatchBegan=!1,e.PatternMatch=!1,!0}parseCharacter(e,t,r){if(t.PatternMatch)if(!t.StartPatternMatchComplete&&t.Pattern.hasOwnProperty(e))t.Pattern=t.Pattern[e],this.appendOutputBuffer(e,t);else if(t.EndPatternMatchBegan)if(t.Pattern.PatternEnd.hasOwnProperty(e)){if(t.Pattern=t.Pattern.PatternEnd[e],this.appendOutputBuffer(e,t),t.Pattern.hasOwnProperty("Parse"))return t.OutputBuffer=t.Pattern.Parse(t.OutputBuffer.substr(t.Pattern.PatternStartString.length,t.OutputBuffer.length-(t.Pattern.PatternStartString.length+t.Pattern.PatternEndString.length)),r),this.resetOutputBuffer(t)}else t.PatternStartNode.PatternEnd.hasOwnProperty(e)?(t.Pattern=t.PatternStartNode.PatternEnd[e],this.appendOutputBuffer(e,t)):(t.EndPatternMatchBegan=!1,this.appendOutputBuffer(e,t));else if(t.Pattern.hasOwnProperty("PatternEnd")){if(t.StartPatternMatchComplete||(t.StartPatternMatchComplete=!0,t.PatternStartNode=t.Pattern),this.appendOutputBuffer(e,t),t.Pattern.PatternEnd.hasOwnProperty(e)&&(t.EndPatternMatchBegan=!0,t.Pattern=t.Pattern.PatternEnd[e],t.Pattern.hasOwnProperty("Parse")))return t.OutputBuffer=t.Pattern.Parse(t.OutputBuffer.substr(t.Pattern.PatternStartString.length,t.OutputBuffer.length-(t.Pattern.PatternStartString.length+t.Pattern.PatternEndString.length)),r),this.resetOutputBuffer(t)}else this.resetOutputBuffer(t);if(!t.PatternMatch){if(t.ParseTree.hasOwnProperty(e))return this.resetOutputBuffer(t),this.appendOutputBuffer(e,t),t.Pattern=t.ParseTree[e],t.PatternMatch=!0,!0;this.appendOutputBuffer(e,t)}return!1}parseString(e,t,r){let n=this.newParserState(t);for(var s=0;s<e.length;s++)this.parseCharacter(e[s],n,r);return this.flushOutputBuffer(n),n.Output}}},{}],90:[function(e,t,r){t.exports=class{constructor(){this.ParseTree={}}addChild(e,t){return e.hasOwnProperty(t)||(e[t]={}),e[t]}addEndChild(e,t){return e.hasOwnProperty("PatternEnd")||(e.PatternEnd={}),e.PatternEnd[t]={},e.PatternEnd[t]}addPattern(e,t,r){if(e.length<1)return!1;if("string"==typeof t&&t.length<1)return!1;let n=this.ParseTree;for(var s=0;s<e.length;s++)n=this.addChild(n,e[s],s);n.hasOwnProperty("PatternEnd")||(n.PatternEnd={});let i="string"==typeof t?t:e;for(let e=0;e<i.length;e++)n=this.addEndChild(n,i[e],e);return n.PatternStartString=e,n.PatternEndString=i,n.Parse="function"==typeof r?r:"string"==typeof r?()=>r:e=>e,!0}}},{}],91:[function(e,t,r){var n,s,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function l(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{s="function"==typeof clearTimeout?clearTimeout:a}catch(e){s=a}}();var u,c=[],h=!1,f=-1;function p(){h&&u&&(h=!1,u.length?c=u.concat(c):f=-1,c.length&&d())}function d(){if(!h){var e=l(p);h=!0;for(var t=c.length;t;){for(u=c,c=[];++f<t;)u&&u[f].run();f=-1,t=c.length}u=null,h=!1,function(e){if(s===clearTimeout)return clearTimeout(e);if((s===a||!s)&&clearTimeout)return s=clearTimeout,clearTimeout(e);try{return s(e)}catch(t){try{return s.call(null,e)}catch(t){return s.call(this,e)}}}(e)}}function g(e,t){this.fun=e,this.array=t}function y(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];c.push(new g(e,t)),1!==c.length||h||l(d)},g.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=y,i.addListener=y,i.once=y,i.off=y,i.removeListener=y,i.removeAllListeners=y,i.emit=y,i.prependListener=y,i.prependOnceListener=y,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},{}],92:[function(e,t,r){(function(e){(function(){!function(n){var s="object"==typeof r&&r&&!r.nodeType&&r,i="object"==typeof t&&t&&!t.nodeType&&t,o="object"==typeof e&&e;o.global!==o&&o.window!==o&&o.self!==o||(n=o);var a,l,u=2147483647,c=36,h=1,f=26,p=38,d=700,g=72,y=128,m="-",b=/^xn--/,v=/[^\x20-\x7E]/,S=/[\x2E\u3002\uFF0E\uFF61]/g,P={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},T=c-h,w=Math.floor,x=String.fromCharCode;function E(e){throw new RangeError(P[e])}function k(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function A(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+k((e=e.replace(S,".")).split("."),t).join(".")}function O(e){for(var t,r,n=[],s=0,i=e.length;s<i;)(t=e.charCodeAt(s++))>=55296&&t<=56319&&s<i?56320==(64512&(r=e.charCodeAt(s++)))?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),s--):n.push(t);return n}function _(e){return k(e,(function(e){var t="";return e>65535&&(t+=x((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=x(e)})).join("")}function j(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function N(e,t,r){var n=0;for(e=r?w(e/d):e>>1,e+=w(e/t);e>T*f>>1;n+=c)e=w(e/T);return w(n+(T+1)*e/(e+p))}function R(e){var t,r,n,s,i,o,a,l,p,d,b,v=[],S=e.length,P=0,T=y,x=g;for((r=e.lastIndexOf(m))<0&&(r=0),n=0;n<r;++n)e.charCodeAt(n)>=128&&E("not-basic"),v.push(e.charCodeAt(n));for(s=r>0?r+1:0;s<S;){for(i=P,o=1,a=c;s>=S&&E("invalid-input"),((l=(b=e.charCodeAt(s++))-48<10?b-22:b-65<26?b-65:b-97<26?b-97:c)>=c||l>w((u-P)/o))&&E("overflow"),P+=l*o,!(l<(p=a<=x?h:a>=x+f?f:a-x));a+=c)o>w(u/(d=c-p))&&E("overflow"),o*=d;x=N(P-i,t=v.length+1,0==i),w(P/t)>u-T&&E("overflow"),T+=w(P/t),P%=t,v.splice(P++,0,T)}return _(v)}function M(e){var t,r,n,s,i,o,a,l,p,d,b,v,S,P,T,k=[];for(v=(e=O(e)).length,t=y,r=0,i=g,o=0;o<v;++o)(b=e[o])<128&&k.push(x(b));for(n=s=k.length,s&&k.push(m);n<v;){for(a=u,o=0;o<v;++o)(b=e[o])>=t&&b<a&&(a=b);for(a-t>w((u-r)/(S=n+1))&&E("overflow"),r+=(a-t)*S,t=a,o=0;o<v;++o)if((b=e[o])<t&&++r>u&&E("overflow"),b==t){for(l=r,p=c;!(l<(d=p<=i?h:p>=i+f?f:p-i));p+=c)T=l-d,P=c-d,k.push(x(j(d+T%P,0))),l=w(T/P);k.push(x(j(l,0))),i=N(r,S,n==s),r=0,++n}++r,++t}return k.join("")}if(a={version:"1.4.1",ucs2:{decode:O,encode:_},decode:R,encode:M,toASCII:function(e){return A(e,(function(e){return v.test(e)?"xn--"+M(e):e}))},toUnicode:function(e){return A(e,(function(e){return b.test(e)?R(e.slice(4).toLowerCase()):e}))}},s&&i)if(t.exports==s)i.exports=a;else for(l in a)a.hasOwnProperty(l)&&(s[l]=a[l]);else n.punycode=a}(this)}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],93:[function(e,t,r){var n=String.prototype.replace,s=/%20/g,i="RFC1738",o="RFC3986";t.exports={default:o,formatters:{RFC1738:function(e){return n.call(e,s,"+")},RFC3986:function(e){return String(e)}},RFC1738:i,RFC3986:o}},{}],94:[function(e,t,r){var n=e("./stringify"),s=e("./parse"),i=e("./formats");t.exports={formats:i,parse:s,stringify:n}},{"./formats":93,"./parse":95,"./stringify":96}],95:[function(e,t,r){var n=e("./utils"),s=Object.prototype.hasOwnProperty,i=Array.isArray,o={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},a=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},l=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},u=function(e,t,r,n){if(e){var i=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/g,a=r.depth>0&&/(\[[^[\]]*])/.exec(i),u=a?i.slice(0,a.index):i,c=[];if(u){if(!r.plainObjects&&s.call(Object.prototype,u)&&!r.allowPrototypes)return;c.push(u)}for(var h=0;r.depth>0&&null!==(a=o.exec(i))&&h<r.depth;){if(h+=1,!r.plainObjects&&s.call(Object.prototype,a[1].slice(1,-1))&&!r.allowPrototypes)return;c.push(a[1])}return a&&c.push("["+i.slice(a.index)+"]"),function(e,t,r,n){for(var s=n?t:l(t,r),i=e.length-1;i>=0;--i){var o,a=e[i];if("[]"===a&&r.parseArrays)o=[].concat(s);else{o=r.plainObjects?Object.create(null):{};var u="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,c=parseInt(u,10);r.parseArrays||""!==u?!isNaN(c)&&a!==u&&String(c)===u&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(o=[])[c]=s:"__proto__"!==u&&(o[u]=s):o={0:s}}s=o}return s}(c,t,r,n)}};t.exports=function(e,t){var r=function(e){if(!e)return o;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?o.charset:e.charset;return{allowDots:void 0===e.allowDots?o.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:o.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:o.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:o.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:o.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:o.comma,decoder:"function"==typeof e.decoder?e.decoder:o.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:o.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:o.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:o.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:o.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:o.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:o.strictNullHandling}}(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var c="string"==typeof e?function(e,t){var r,u={__proto__:null},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,h=t.parameterLimit===1/0?void 0:t.parameterLimit,f=c.split(t.delimiter,h),p=-1,d=t.charset;if(t.charsetSentinel)for(r=0;r<f.length;++r)0===f[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[r]?d="utf-8":"utf8=%26%2310003%3B"===f[r]&&(d="iso-8859-1"),p=r,r=f.length);for(r=0;r<f.length;++r)if(r!==p){var g,y,m=f[r],b=m.indexOf("]="),v=-1===b?m.indexOf("="):b+1;-1===v?(g=t.decoder(m,o.decoder,d,"key"),y=t.strictNullHandling?null:""):(g=t.decoder(m.slice(0,v),o.decoder,d,"key"),y=n.maybeMap(l(m.slice(v+1),t),(function(e){return t.decoder(e,o.decoder,d,"value")}))),y&&t.interpretNumericEntities&&"iso-8859-1"===d&&(y=a(y)),m.indexOf("[]=")>-1&&(y=i(y)?[y]:y),s.call(u,g)?u[g]=n.combine(u[g],y):u[g]=y}return u}(e,r):e,h=r.plainObjects?Object.create(null):{},f=Object.keys(c),p=0;p<f.length;++p){var d=f[p],g=u(d,c[d],r,"string"==typeof e);h=n.merge(h,g,r)}return!0===r.allowSparse?h:n.compact(h)}},{"./utils":97}],96:[function(e,t,r){var n=e("side-channel"),s=e("./utils"),i=e("./formats"),o=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,u=Array.prototype.push,c=function(e,t){u.apply(e,l(t)?t:[t])},h=Date.prototype.toISOString,f=i.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:s.encode,encodeValuesOnly:!1,format:f,formatter:i.formatters[f],indices:!1,serializeDate:function(e){return h.call(e)},skipNulls:!1,strictNullHandling:!1},d={},g=function e(t,r,i,o,a,u,h,f,g,y,m,b,v,S,P,T){for(var w,x=t,E=T,k=0,A=!1;void 0!==(E=E.get(d))&&!A;){var O=E.get(t);if(k+=1,void 0!==O){if(O===k)throw new RangeError("Cyclic object value");A=!0}void 0===E.get(d)&&(k=0)}if("function"==typeof f?x=f(r,x):x instanceof Date?x=m(x):"comma"===i&&l(x)&&(x=s.maybeMap(x,(function(e){return e instanceof Date?m(e):e}))),null===x){if(a)return h&&!S?h(r,p.encoder,P,"key",b):r;x=""}if("string"==typeof(w=x)||"number"==typeof w||"boolean"==typeof w||"symbol"==typeof w||"bigint"==typeof w||s.isBuffer(x))return h?[v(S?r:h(r,p.encoder,P,"key",b))+"="+v(h(x,p.encoder,P,"value",b))]:[v(r)+"="+v(String(x))];var _,j=[];if(void 0===x)return j;if("comma"===i&&l(x))S&&h&&(x=s.maybeMap(x,h)),_=[{value:x.length>0?x.join(",")||null:void 0}];else if(l(f))_=f;else{var N=Object.keys(x);_=g?N.sort(g):N}for(var R=o&&l(x)&&1===x.length?r+"[]":r,M=0;M<_.length;++M){var L=_[M],C="object"==typeof L&&void 0!==L.value?L.value:x[L];if(!u||null!==C){var D=l(x)?"function"==typeof i?i(R,L):R:R+(y?"."+L:"["+L+"]");T.set(t,k);var $=n();$.set(d,T),c(j,e(C,D,i,o,a,u,"comma"===i&&S&&l(x)?null:h,f,g,y,m,b,v,S,P,$))}}return j};t.exports=function(e,t){var r,s=e,u=function(e){if(!e)return p;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||p.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=i.default;if(void 0!==e.format){if(!o.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n=i.formatters[r],s=p.filter;return("function"==typeof e.filter||l(e.filter))&&(s=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:p.addQueryPrefix,allowDots:void 0===e.allowDots?p.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:p.charsetSentinel,delimiter:void 0===e.delimiter?p.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:p.encode,encoder:"function"==typeof e.encoder?e.encoder:p.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:p.encodeValuesOnly,filter:s,format:r,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:p.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:p.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:p.strictNullHandling}}(t);"function"==typeof u.filter?s=(0,u.filter)("",s):l(u.filter)&&(r=u.filter);var h,f=[];if("object"!=typeof s||null===s)return"";h=t&&t.arrayFormat in a?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var d=a[h];if(t&&"commaRoundTrip"in t&&"boolean"!=typeof t.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var y="comma"===d&&t&&t.commaRoundTrip;r||(r=Object.keys(s)),u.sort&&r.sort(u.sort);for(var m=n(),b=0;b<r.length;++b){var v=r[b];u.skipNulls&&null===s[v]||c(f,g(s[v],v,d,y,u.strictNullHandling,u.skipNulls,u.encode?u.encoder:null,u.filter,u.sort,u.allowDots,u.serializeDate,u.format,u.formatter,u.encodeValuesOnly,u.charset,m))}var S=f.join(u.delimiter),P=!0===u.addQueryPrefix?"?":"";return u.charsetSentinel&&("iso-8859-1"===u.charset?P+="utf8=%26%2310003%3B&":P+="utf8=%E2%9C%93&"),S.length>0?P+S:""}},{"./formats":93,"./utils":97,"side-channel":103}],97:[function(e,t,r){var n=e("./formats"),s=Object.prototype.hasOwnProperty,i=Array.isArray,o=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),a=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r};t.exports={arrayToObject:a,assign:function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var s=t[n],o=s.obj[s.prop],a=Object.keys(o),l=0;l<a.length;++l){var u=a[l],c=o[u];"object"==typeof c&&null!==c&&-1===r.indexOf(c)&&(t.push({obj:o,prop:u}),r.push(c))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(i(r)){for(var n=[],s=0;s<r.length;++s)void 0!==r[s]&&n.push(r[s]);t.obj[t.prop]=n}}}(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,r,s,i){if(0===e.length)return e;var a=e;if("symbol"==typeof e?a=Symbol.prototype.toString.call(e):"string"!=typeof e&&(a=String(e)),"iso-8859-1"===r)return escape(a).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var l="",u=0;u<a.length;++u){var c=a.charCodeAt(u);45===c||46===c||95===c||126===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||i===n.RFC1738&&(40===c||41===c)?l+=a.charAt(u):c<128?l+=o[c]:c<2048?l+=o[192|c>>6]+o[128|63&c]:c<55296||c>=57344?l+=o[224|c>>12]+o[128|c>>6&63]+o[128|63&c]:(u+=1,c=65536+((1023&c)<<10|1023&a.charCodeAt(u)),l+=o[240|c>>18]+o[128|c>>12&63]+o[128|c>>6&63]+o[128|63&c])}return l},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!=typeof r){if(i(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!s.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var o=t;return i(t)&&!i(r)&&(o=a(t,n)),i(t)&&i(r)?(r.forEach((function(r,i){if(s.call(t,i)){var o=t[i];o&&"object"==typeof o&&r&&"object"==typeof r?t[i]=e(o,r,n):t.push(r)}else t[i]=r})),t):Object.keys(r).reduce((function(t,i){var o=r[i];return s.call(t,i)?t[i]=e(t[i],o,n):t[i]=o,t}),o)}}},{"./formats":93}],98:[function(e,t,r){function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.exports=function(e,t,r,i){t=t||"&",r=r||"=";var o={};if("string"!=typeof e||0===e.length)return o;var a=/\+/g;e=e.split(t);var l=1e3;i&&"number"==typeof i.maxKeys&&(l=i.maxKeys);var u=e.length;l>0&&u>l&&(u=l);for(var c=0;c<u;++c){var h,f,p,d,g=e[c].replace(a,"%20"),y=g.indexOf(r);y>=0?(h=g.substr(0,y),f=g.substr(y+1)):(h=g,f=""),p=decodeURIComponent(h),d=decodeURIComponent(f),n(o,p)?s(o[p])?o[p].push(d):o[p]=[o[p],d]:o[p]=d}return o};var s=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},{}],99:[function(e,t,r){var n=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};t.exports=function(e,t,r,a){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?i(o(e),(function(o){var a=encodeURIComponent(n(o))+r;return s(e[o])?i(e[o],(function(e){return a+encodeURIComponent(n(e))})).join(t):a+encodeURIComponent(n(e[o]))})).join(t):a?encodeURIComponent(n(a))+r+encodeURIComponent(n(e)):""};var s=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function i(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n<e.length;n++)r.push(t(e[n],n));return r}var o=Object.keys||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t}},{}],100:[function(e,t,r){r.decode=r.parse=e("./decode"),r.encode=r.stringify=e("./encode")},{"./decode":98,"./encode":99}],101:[function(e,t,r){/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var n=e("buffer"),s=n.Buffer;function i(e,t){for(var r in e)t[r]=e[r]}function o(e,t,r){return s(e,t,r)}s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow?t.exports=n:(i(n,r),r.Buffer=o),o.prototype=Object.create(s.prototype),i(s,o),o.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return s(e,t,r)},o.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=s(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return s(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},{buffer:20}],102:[function(e,t,r){var n=e("get-intrinsic"),s=e("define-data-property"),i=e("has-property-descriptors")(),o=e("gopd"),a=e("es-errors/type"),l=n("%Math.floor%");t.exports=function(e,t){if("function"!=typeof e)throw new a("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||l(t)!==t)throw new a("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,u=!0;if("length"in e&&o){var c=o(e,"length");c&&!c.configurable&&(n=!1),c&&!c.writable&&(u=!1)}return(n||u||!r)&&(i?s(e,"length",t,!0,!0):s(e,"length",t)),e}},{"define-data-property":36,"es-errors/type":42,"get-intrinsic":63,gopd:64,"has-property-descriptors":65}],103:[function(e,t,r){var n=e("get-intrinsic"),s=e("call-bind/callBound"),i=e("object-inspect"),o=e("es-errors/type"),a=n("%WeakMap%",!0),l=n("%Map%",!0),u=s("WeakMap.prototype.get",!0),c=s("WeakMap.prototype.set",!0),h=s("WeakMap.prototype.has",!0),f=s("Map.prototype.get",!0),p=s("Map.prototype.set",!0),d=s("Map.prototype.has",!0),g=function(e,t){for(var r,n=e;null!==(r=n.next);n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r};t.exports=function(){var e,t,r,n={assert:function(e){if(!n.has(e))throw new o("Side channel does not contain "+i(e))},get:function(n){if(a&&n&&("object"==typeof n||"function"==typeof n)){if(e)return u(e,n)}else if(l){if(t)return f(t,n)}else if(r)return function(e,t){var r=g(e,t);return r&&r.value}(r,n)},has:function(n){if(a&&n&&("object"==typeof n||"function"==typeof n)){if(e)return h(e,n)}else if(l){if(t)return d(t,n)}else if(r)return function(e,t){return!!g(e,t)}(r,n);return!1},set:function(n,s){a&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new a),c(e,n,s)):l?(t||(t=new l),p(t,n,s)):(r||(r={key:{},next:null}),function(e,t,r){var n=g(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(r,n,s))}};return n}},{"call-bind/callBound":25,"es-errors/type":42,"get-intrinsic":63,"object-inspect":85}],104:[function(e,t,r){(function(e){(function(){/*! simple-concat. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */t.exports=function(t,r){var n=[];t.on("data",(function(e){n.push(e)})),t.once("end",(function(){r&&r(null,e.concat(n)),r=null})),t.once("error",(function(e){r&&r(e),r=null}))}}).call(this)}).call(this,e("buffer").Buffer)},{buffer:20}],105:[function(e,t,r){(function(r){(function(){/*! simple-get. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */t.exports=h;const n=e("simple-concat"),s=e("decompress-response"),i=e("http"),o=e("https"),a=e("once"),l=e("querystring"),u=e("url"),c=e=>null!==e&&"object"==typeof e&&"function"==typeof e.pipe;function h(e,t){if(e=Object.assign({maxRedirects:10},"string"==typeof e?{url:e}:e),t=a(t),e.url){const{hostname:t,port:r,protocol:n,auth:s,path:i}=u.parse(e.url);delete e.url,t||r||n||s?Object.assign(e,{hostname:t,port:r,protocol:n,auth:s,path:i}):e.path=i}const n={"accept-encoding":"gzip, deflate"};let f;e.headers&&Object.keys(e.headers).forEach((t=>n[t.toLowerCase()]=e.headers[t])),e.headers=n,e.body?f=e.json&&!c(e.body)?JSON.stringify(e.body):e.body:e.form&&(f="string"==typeof e.form?e.form:l.stringify(e.form),e.headers["content-type"]="application/x-www-form-urlencoded"),f&&(e.method||(e.method="POST"),c(f)||(e.headers["content-length"]=r.byteLength(f)),e.json&&!e.form&&(e.headers["content-type"]="application/json")),delete e.body,delete e.form,e.json&&(e.headers.accept="application/json"),e.method&&(e.method=e.method.toUpperCase());const p=e.hostname,d=("https:"===e.protocol?o:i).request(e,(r=>{if(!1!==e.followRedirects&&r.statusCode>=300&&r.statusCode<400&&r.headers.location){e.url=r.headers.location,delete e.headers.host,r.resume();const n=u.parse(e.url).hostname;return null!==n&&n!==p&&(delete e.headers.cookie,delete e.headers.authorization),"POST"===e.method&&[301,302].includes(r.statusCode)&&(e.method="GET",delete e.headers["content-length"],delete e.headers["content-type"]),0==e.maxRedirects--?t(new Error("too many redirects")):h(e,t)}const n="function"==typeof s&&"HEAD"!==e.method;t(null,n?s(r):r)}));return d.on("timeout",(()=>{d.abort(),t(new Error("Request timed out"))})),d.on("error",t),c(f)?f.on("error",t).pipe(d):d.end(f),d}h.concat=(e,t)=>h(e,((r,s)=>{if(r)return t(r);n(s,((r,n)=>{if(r)return t(r);if(e.json)try{n=JSON.parse(n.toString())}catch(r){return t(r,s,n)}t(null,s,n)}))})),["get","post","put","patch","head","delete"].forEach((e=>{h[e]=(t,r)=>("string"==typeof t&&(t={url:t}),h(Object.assign({method:e.toUpperCase()},t),r))}))}).call(this)}).call(this,e("buffer").Buffer)},{buffer:20,"decompress-response":18,http:106,https:70,once:86,querystring:100,"simple-concat":104,url:127}],106:[function(e,t,r){(function(t){(function(){var n=e("./lib/request"),s=e("./lib/response"),i=e("xtend"),o=e("builtin-status-codes"),a=e("url"),l=r;l.request=function(e,r){e="string"==typeof e?a.parse(e):i(e);var s=-1===t.location.protocol.search(/^https?:$/)?"http:":"",o=e.protocol||s,l=e.hostname||e.host,u=e.port,c=e.path||"/";l&&-1!==l.indexOf(":")&&(l="["+l+"]"),e.url=(l?o+"//"+l:"")+(u?":"+u:"")+c,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{};var h=new n(e);return r&&h.on("response",r),h},l.get=function(e,t){var r=l.request(e,t);return r.end(),r},l.ClientRequest=n,l.IncomingMessage=s.IncomingMessage,l.Agent=function(){},l.Agent.defaultMaxSockets=4,l.globalAgent=new l.Agent,l.STATUS_CODES=o,l.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./lib/request":108,"./lib/response":109,"builtin-status-codes":21,url:127,xtend:130}],107:[function(e,t,r){(function(e){(function(){var t;function n(){if(void 0!==t)return t;if(e.XMLHttpRequest){t=new e.XMLHttpRequest;try{t.open("GET",e.XDomainRequest?"/":"https://example.com")}catch(e){t=null}}else t=null;return t}function s(e){var t=n();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(e){}return!1}function i(e){return"function"==typeof e}r.fetch=i(e.fetch)&&i(e.ReadableStream),r.writableStream=i(e.WritableStream),r.abortController=i(e.AbortController),r.arraybuffer=r.fetch||s("arraybuffer"),r.msstream=!r.fetch&&s("ms-stream"),r.mozchunkedarraybuffer=!r.fetch&&s("moz-chunked-arraybuffer"),r.overrideMimeType=r.fetch||!!n()&&i(n().overrideMimeType),t=null}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],108:[function(e,t,r){(function(r,n,s){(function(){var i=e("./capability"),o=e("inherits"),a=e("./response"),l=e("readable-stream"),u=a.IncomingMessage,c=a.readyStates;var h=t.exports=function(e){var t,r=this;l.Writable.call(r),r._opts=e,r._body=[],r._headers={},e.auth&&r.setHeader("Authorization","Basic "+s.from(e.auth).toString("base64")),Object.keys(e.headers).forEach((function(t){r.setHeader(t,e.headers[t])}));var n=!0;if("disable-fetch"===e.mode||"requestTimeout"in e&&!i.abortController)n=!1,t=!0;else if("prefer-streaming"===e.mode)t=!1;else if("allow-wrong-content-type"===e.mode)t=!i.overrideMimeType;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");t=!0}r._mode=function(e,t){return i.fetch&&t?"fetch":i.mozchunkedarraybuffer?"moz-chunked-arraybuffer":i.msstream?"ms-stream":i.arraybuffer&&e?"arraybuffer":"text"}(t,n),r._fetchTimer=null,r._socketTimeout=null,r._socketTimer=null,r.on("finish",(function(){r._onFinish()}))};o(h,l.Writable),h.prototype.setHeader=function(e,t){var r=e.toLowerCase();-1===f.indexOf(r)&&(this._headers[r]={name:e,value:t})},h.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},h.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},h.prototype._onFinish=function(){var e=this;if(!e._destroyed){var t=e._opts;"timeout"in t&&0!==t.timeout&&e.setTimeout(t.timeout);var s=e._headers,o=null;"GET"!==t.method&&"HEAD"!==t.method&&(o=new Blob(e._body,{type:(s["content-type"]||{}).value||""}));var a=[];if(Object.keys(s).forEach((function(e){var t=s[e].name,r=s[e].value;Array.isArray(r)?r.forEach((function(e){a.push([t,e])})):a.push([t,r])})),"fetch"===e._mode){var l=null;if(i.abortController){var u=new AbortController;l=u.signal,e._fetchAbortController=u,"requestTimeout"in t&&0!==t.requestTimeout&&(e._fetchTimer=n.setTimeout((function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()}),t.requestTimeout))}n.fetch(e._opts.url,{method:e._opts.method,headers:a,body:o||void 0,mode:"cors",credentials:t.withCredentials?"include":"same-origin",signal:l}).then((function(t){e._fetchResponse=t,e._resetTimers(!1),e._connect()}),(function(t){e._resetTimers(!0),e._destroyed||e.emit("error",t)}))}else{var h=e._xhr=new n.XMLHttpRequest;try{h.open(e._opts.method,e._opts.url,!0)}catch(t){return void r.nextTick((function(){e.emit("error",t)}))}"responseType"in h&&(h.responseType=e._mode),"withCredentials"in h&&(h.withCredentials=!!t.withCredentials),"text"===e._mode&&"overrideMimeType"in h&&h.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in t&&(h.timeout=t.requestTimeout,h.ontimeout=function(){e.emit("requestTimeout")}),a.forEach((function(e){h.setRequestHeader(e[0],e[1])})),e._response=null,h.onreadystatechange=function(){switch(h.readyState){case c.LOADING:case c.DONE:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(h.onprogress=function(){e._onXHRProgress()}),h.onerror=function(){e._destroyed||(e._resetTimers(!0),e.emit("error",new Error("XHR error")))};try{h.send(o)}catch(t){return void r.nextTick((function(){e.emit("error",t)}))}}}},h.prototype._onXHRProgress=function(){var e=this;e._resetTimers(!1),function(e){try{var t=e.status;return null!==t&&0!==t}catch(e){return!1}}(e._xhr)&&!e._destroyed&&(e._response||e._connect(),e._response._onXHRProgress(e._resetTimers.bind(e)))},h.prototype._connect=function(){var e=this;e._destroyed||(e._response=new u(e._xhr,e._fetchResponse,e._mode,e._resetTimers.bind(e)),e._response.on("error",(function(t){e.emit("error",t)})),e.emit("response",e._response))},h.prototype._write=function(e,t,r){this._body.push(e),r()},h.prototype._resetTimers=function(e){var t=this;n.clearTimeout(t._socketTimer),t._socketTimer=null,e?(n.clearTimeout(t._fetchTimer),t._fetchTimer=null):t._socketTimeout&&(t._socketTimer=n.setTimeout((function(){t.emit("timeout")}),t._socketTimeout))},h.prototype.abort=h.prototype.destroy=function(e){var t=this;t._destroyed=!0,t._resetTimers(!0),t._response&&(t._response._destroyed=!0),t._xhr?t._xhr.abort():t._fetchAbortController&&t._fetchAbortController.abort(),e&&t.emit("error",e)},h.prototype.end=function(e,t,r){"function"==typeof e&&(r=e,e=void 0),l.Writable.prototype.end.call(this,e,t,r)},h.prototype.setTimeout=function(e,t){var r=this;t&&r.once("timeout",t),r._socketTimeout=e,r._resetTimers(!1)},h.prototype.flushHeaders=function(){},h.prototype.setNoDelay=function(){},h.prototype.setSocketKeepAlive=function(){};var f=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]}).call(this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer)},{"./capability":107,"./response":109,_process:91,buffer:20,inherits:72,"readable-stream":124}],109:[function(e,t,r){(function(t,n,s){(function(){var i=e("./capability"),o=e("inherits"),a=e("readable-stream"),l=r.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},u=r.IncomingMessage=function(e,r,n,o){var l=this;if(a.Readable.call(l),l._mode=n,l.headers={},l.rawHeaders=[],l.trailers={},l.rawTrailers=[],l.on("end",(function(){t.nextTick((function(){l.emit("close")}))})),"fetch"===n){if(l._fetchResponse=r,l.url=r.url,l.statusCode=r.status,l.statusMessage=r.statusText,r.headers.forEach((function(e,t){l.headers[t.toLowerCase()]=e,l.rawHeaders.push(t,e)})),i.writableStream){var u=new WritableStream({write:function(e){return o(!1),new Promise((function(t,r){l._destroyed?r():l.push(s.from(e))?t():l._resumeFetch=t}))},close:function(){o(!0),l._destroyed||l.push(null)},abort:function(e){o(!0),l._destroyed||l.emit("error",e)}});try{return void r.body.pipeTo(u).catch((function(e){o(!0),l._destroyed||l.emit("error",e)}))}catch(d){}}var c=r.body.getReader();function p(){c.read().then((function(e){l._destroyed||(o(e.done),e.done?l.push(null):(l.push(s.from(e.value)),p()))})).catch((function(e){o(!0),l._destroyed||l.emit("error",e)}))}p()}else{if(l._xhr=e,l._pos=0,l.url=e.responseURL,l.statusCode=e.status,l.statusMessage=e.statusText,e.getAllResponseHeaders().split(/\r?\n/).forEach((function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var r=t[1].toLowerCase();"set-cookie"===r?(void 0===l.headers[r]&&(l.headers[r]=[]),l.headers[r].push(t[2])):void 0!==l.headers[r]?l.headers[r]+=", "+t[2]:l.headers[r]=t[2],l.rawHeaders.push(t[1],t[2])}})),l._charset="x-user-defined",!i.overrideMimeType){var h=l.rawHeaders["mime-type"];if(h){var f=h.match(/;\s*charset=([^;])(;|$)/);f&&(l._charset=f[1].toLowerCase())}l._charset||(l._charset="utf-8")}}};o(u,a.Readable),u.prototype._read=function(){var e=this._resumeFetch;e&&(this._resumeFetch=null,e())},u.prototype._onXHRProgress=function(e){var t=this,r=t._xhr,i=null;switch(t._mode){case"text":if((i=r.responseText).length>t._pos){var o=i.substr(t._pos);if("x-user-defined"===t._charset){for(var a=s.alloc(o.length),u=0;u<o.length;u++)a[u]=255&o.charCodeAt(u);t.push(a)}else t.push(o,t._charset);t._pos=i.length}break;case"arraybuffer":if(r.readyState!==l.DONE||!r.response)break;i=r.response,t.push(s.from(new Uint8Array(i)));break;case"moz-chunked-arraybuffer":if(i=r.response,r.readyState!==l.LOADING||!i)break;t.push(s.from(new Uint8Array(i)));break;case"ms-stream":if(i=r.response,r.readyState!==l.LOADING)break;var c=new n.MSStreamReader;c.onprogress=function(){c.result.byteLength>t._pos&&(t.push(s.from(new Uint8Array(c.result.slice(t._pos)))),t._pos=c.result.byteLength)},c.onload=function(){e(!0),t.push(null)},c.readAsArrayBuffer(i)}t._xhr.readyState===l.DONE&&"ms-stream"!==t._mode&&(e(!0),t.push(null))}}).call(this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer)},{"./capability":107,_process:91,buffer:20,inherits:72,"readable-stream":124}],110:[function(e,t,r){var n={};function s(e,t,r){r||(r=Error);var s=function(e){var r,n;function s(r,n,s){return e.call(this,function(e,r,n){return"string"==typeof t?t:t(e,r,n)}(r,n,s))||this}return n=e,(r=s).prototype=Object.create(n.prototype),r.prototype.constructor=r,r.__proto__=n,s}(r);s.prototype.name=r.name,s.prototype.code=e,n[e]=s}function i(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map((function(e){return String(e)})),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}s("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),s("ERR_INVALID_ARG_TYPE",(function(e,t,r){var n,s,o,a;if("string"==typeof t&&(s="not ",t.substr(!o||o<0?0:+o,s.length)===s)?(n="must not be",t=t.replace(/^not /,"")):n="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}(e," argument"))a="The ".concat(e," ").concat(n," ").concat(i(t,"type"));else{var l=function(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}(e,".")?"property":"argument";a='The "'.concat(e,'" ').concat(l," ").concat(n," ").concat(i(t,"type"))}return a+=". Received type ".concat(typeof r)}),TypeError),s("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),s("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),s("ERR_STREAM_PREMATURE_CLOSE","Premature close"),s("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),s("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),s("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),s("ERR_STREAM_WRITE_AFTER_END","write after end"),s("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),s("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),s("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=n},{}],111:[function(e,t,r){(function(r){(function(){var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};t.exports=u;var s=e("./_stream_readable"),i=e("./_stream_writable");e("inherits")(u,s);for(var o=n(i.prototype),a=0;a<o.length;a++){var l=o[a];u.prototype[l]||(u.prototype[l]=i.prototype[l])}function u(e){if(!(this instanceof u))return new u(e);s.call(this,e),i.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",c)))}function c(){this._writableState.ended||r.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(u.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(u.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})}).call(this)}).call(this,e("_process"))},{"./_stream_readable":113,"./_stream_writable":115,_process:91,inherits:72}],112:[function(e,t,r){t.exports=s;var n=e("./_stream_transform");function s(e){if(!(this instanceof s))return new s(e);n.call(this,e)}e("inherits")(s,n),s.prototype._transform=function(e,t,r){r(null,e)}},{"./_stream_transform":114,inherits:72}],113:[function(e,t,r){(function(r,n){(function(){var s;t.exports=E,E.ReadableState=x;e("events").EventEmitter;var i=function(e,t){return e.listeners(t).length},o=e("./internal/streams/stream"),a=e("buffer").Buffer,l=(void 0!==n?n:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var u,c=e("util");u=c&&c.debuglog?c.debuglog("stream"):function(){};var h,f,p,d=e("./internal/streams/buffer_list"),g=e("./internal/streams/destroy"),y=e("./internal/streams/state").getHighWaterMark,m=e("../errors").codes,b=m.ERR_INVALID_ARG_TYPE,v=m.ERR_STREAM_PUSH_AFTER_EOF,S=m.ERR_METHOD_NOT_IMPLEMENTED,P=m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;e("inherits")(E,o);var T=g.errorOrDestroy,w=["error","close","destroy","pause","resume"];function x(t,r,n){s=s||e("./_stream_duplex"),t=t||{},"boolean"!=typeof n&&(n=r instanceof s),this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=y(this,t,"readableHighWaterMark",n),this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(h||(h=e("string_decoder/").StringDecoder),this.decoder=new h(t.encoding),this.encoding=t.encoding)}function E(t){if(s=s||e("./_stream_duplex"),!(this instanceof E))return new E(t);var r=this instanceof s;this._readableState=new x(t,this,r),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),o.call(this)}function k(e,t,r,n,s){u("readableAddChunk",t);var i,o=e._readableState;if(null===t)o.reading=!1,function(e,t){if(u("onEofChunk"),t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?j(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,N(e)))}(e,o);else if(s||(i=function(e,t){var r;n=t,a.isBuffer(n)||n instanceof l||"string"==typeof t||void 0===t||e.objectMode||(r=new b("chunk",["string","Buffer","Uint8Array"],t));var n;return r}(o,t)),i)T(e,i);else if(o.objectMode||t&&t.length>0)if("string"==typeof t||o.objectMode||Object.getPrototypeOf(t)===a.prototype||(t=function(e){return a.from(e)}(t)),n)o.endEmitted?T(e,new P):A(e,o,t,!0);else if(o.ended)T(e,new v);else{if(o.destroyed)return!1;o.reading=!1,o.decoder&&!r?(t=o.decoder.write(t),o.objectMode||0!==t.length?A(e,o,t,!1):R(e,o)):A(e,o,t,!1)}else n||(o.reading=!1,R(e,o));return!o.ended&&(o.length<o.highWaterMark||0===o.length)}function A(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&j(e)),R(e,t)}Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),E.prototype.destroy=g.destroy,E.prototype._undestroy=g.undestroy,E.prototype._destroy=function(e,t){t(e)},E.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=a.from(e,t),t=""),r=!0),k(this,e,t,!1,r)},E.prototype.unshift=function(e){return k(this,e,null,!0,!1)},E.prototype.isPaused=function(){return!1===this._readableState.flowing},E.prototype.setEncoding=function(t){h||(h=e("string_decoder/").StringDecoder);var r=new h(t);this._readableState.decoder=r,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,s="";null!==n;)s+=r.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==s&&this._readableState.buffer.push(s),this._readableState.length=s.length,this};var O=1073741824;function _(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=O?e=O:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function j(e){var t=e._readableState;u("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(u("emitReadable",t.flowing),t.emittedReadable=!0,r.nextTick(N,e))}function N(e){var t=e._readableState;u("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,$(e)}function R(e,t){t.readingMore||(t.readingMore=!0,r.nextTick(M,e,t))}function M(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(u("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function L(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function C(e){u("readable nexttick read 0"),e.read(0)}function D(e,t){u("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),$(e),t.flowing&&!t.reading&&e.read(0)}function $(e){var t=e._readableState;for(u("flow",t.flowing);t.flowing&&null!==e.read(););}function F(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function I(e){var t=e._readableState;u("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,r.nextTick(V,t,e))}function V(e,t){if(u("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function B(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}E.prototype.read=function(e){u("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return u("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?I(this):j(this),null;if(0===(e=_(e,t))&&t.ended)return 0===t.length&&I(this),null;var n,s=t.needReadable;return u("need readable",s),(0===t.length||t.length-e<t.highWaterMark)&&u("length less than watermark",s=!0),t.ended||t.reading?u("reading or ended",s=!1):s&&(u("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=_(r,t))),null===(n=e>0?F(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&I(this)),null!==n&&this.emit("data",n),n},E.prototype._read=function(e){T(this,new S("_read()"))},E.prototype.pipe=function(e,t){var n=this,s=this._readableState;switch(s.pipesCount){case 0:s.pipes=e;break;case 1:s.pipes=[s.pipes,e];break;default:s.pipes.push(e)}s.pipesCount+=1,u("pipe count=%d opts=%j",s.pipesCount,t);var o=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr?l:y;function a(t,r){u("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,u("cleanup"),e.removeListener("close",d),e.removeListener("finish",g),e.removeListener("drain",c),e.removeListener("error",p),e.removeListener("unpipe",a),n.removeListener("end",l),n.removeListener("end",y),n.removeListener("data",f),h=!0,!s.awaitDrain||e._writableState&&!e._writableState.needDrain||c())}function l(){u("onend"),e.end()}s.endEmitted?r.nextTick(o):n.once("end",o),e.on("unpipe",a);var c=function(e){return function(){var t=e._readableState;u("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&i(e,"data")&&(t.flowing=!0,$(e))}}(n);e.on("drain",c);var h=!1;function f(t){u("ondata");var r=e.write(t);u("dest.write",r),!1===r&&((1===s.pipesCount&&s.pipes===e||s.pipesCount>1&&-1!==B(s.pipes,e))&&!h&&(u("false write response, pause",s.awaitDrain),s.awaitDrain++),n.pause())}function p(t){u("onerror",t),y(),e.removeListener("error",p),0===i(e,"error")&&T(e,t)}function d(){e.removeListener("finish",g),y()}function g(){u("onfinish"),e.removeListener("close",d),y()}function y(){u("unpipe"),n.unpipe(e)}return n.on("data",f),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",p),e.once("close",d),e.once("finish",g),e.emit("pipe",n),s.flowing||(u("pipe resume"),n.resume()),e},E.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,s=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<s;i++)n[i].emit("unpipe",this,{hasUnpiped:!1});return this}var o=B(t.pipes,e);return-1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},E.prototype.on=function(e,t){var n=o.prototype.on.call(this,e,t),s=this._readableState;return"data"===e?(s.readableListening=this.listenerCount("readable")>0,!1!==s.flowing&&this.resume()):"readable"===e&&(s.endEmitted||s.readableListening||(s.readableListening=s.needReadable=!0,s.flowing=!1,s.emittedReadable=!1,u("on readable",s.length,s.reading),s.length?j(this):s.reading||r.nextTick(C,this))),n},E.prototype.addListener=E.prototype.on,E.prototype.removeListener=function(e,t){var n=o.prototype.removeListener.call(this,e,t);return"readable"===e&&r.nextTick(L,this),n},E.prototype.removeAllListeners=function(e){var t=o.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||r.nextTick(L,this),t},E.prototype.resume=function(){var e=this._readableState;return e.flowing||(u("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,r.nextTick(D,e,t))}(this,e)),e.paused=!1,this},E.prototype.pause=function(){return u("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(u("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},E.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var s in e.on("end",(function(){if(u("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(s){(u("wrapped data"),r.decoder&&(s=r.decoder.write(s)),r.objectMode&&null==s)||(r.objectMode||s&&s.length)&&(t.push(s)||(n=!0,e.pause()))})),e)void 0===this[s]&&"function"==typeof e[s]&&(this[s]=function(t){return function(){return e[t].apply(e,arguments)}}(s));for(var i=0;i<w.length;i++)e.on(w[i],this.emit.bind(this,w[i]));return this._read=function(t){u("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(E.prototype[Symbol.asyncIterator]=function(){return void 0===f&&(f=e("./internal/streams/async_iterator")),f(this)}),Object.defineProperty(E.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(E.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(E.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),E._fromList=F,Object.defineProperty(E.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(E.from=function(t,r){return void 0===p&&(p=e("./internal/streams/from")),p(E,t,r)})}).call(this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../errors":110,"./_stream_duplex":111,"./internal/streams/async_iterator":116,"./internal/streams/buffer_list":117,"./internal/streams/destroy":118,"./internal/streams/from":120,"./internal/streams/state":122,"./internal/streams/stream":123,_process:91,buffer:20,events:44,inherits:72,"string_decoder/":125,util:18}],114:[function(e,t,r){t.exports=c;var n=e("../errors").codes,s=n.ERR_METHOD_NOT_IMPLEMENTED,i=n.ERR_MULTIPLE_CALLBACK,o=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=n.ERR_TRANSFORM_WITH_LENGTH_0,l=e("./_stream_duplex");function u(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new i);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var s=this._readableState;s.reading=!1,(s.needReadable||s.length<s.highWaterMark)&&this._read(s.highWaterMark)}function c(e){if(!(this instanceof c))return new c(e);l.call(this,e),this._transformState={afterTransform:u.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",h)}function h(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?f(this,null,null):this._flush((function(t,r){f(e,t,r)}))}function f(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new a;if(e._transformState.transforming)throw new o;return e.push(null)}e("inherits")(c,l),c.prototype.push=function(e,t){return this._transformState.needTransform=!1,l.prototype.push.call(this,e,t)},c.prototype._transform=function(e,t,r){r(new s("_transform()"))},c.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var s=this._readableState;(n.needTransform||s.needReadable||s.length<s.highWaterMark)&&this._read(s.highWaterMark)}},c.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},c.prototype._destroy=function(e,t){l.prototype._destroy.call(this,e,(function(e){t(e)}))}},{"../errors":110,"./_stream_duplex":111,inherits:72}],115:[function(e,t,r){(function(r,n){(function(){function s(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var s=n.callback;t.pendingcb--,s(r),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}var i;t.exports=E,E.WritableState=x;var o={deprecate:e("util-deprecate")},a=e("./internal/streams/stream"),l=e("buffer").Buffer,u=(void 0!==n?n:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var c,h=e("./internal/streams/destroy"),f=e("./internal/streams/state").getHighWaterMark,p=e("../errors").codes,d=p.ERR_INVALID_ARG_TYPE,g=p.ERR_METHOD_NOT_IMPLEMENTED,y=p.ERR_MULTIPLE_CALLBACK,m=p.ERR_STREAM_CANNOT_PIPE,b=p.ERR_STREAM_DESTROYED,v=p.ERR_STREAM_NULL_VALUES,S=p.ERR_STREAM_WRITE_AFTER_END,P=p.ERR_UNKNOWN_ENCODING,T=h.errorOrDestroy;function w(){}function x(t,n,o){i=i||e("./_stream_duplex"),t=t||{},"boolean"!=typeof o&&(o=n instanceof i),this.objectMode=!!t.objectMode,o&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=f(this,t,"writableHighWaterMark",o),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===t.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,s=n.sync,i=n.writecb;if("function"!=typeof i)throw new y;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,s,i){--t.pendingcb,n?(r.nextTick(i,s),r.nextTick(N,e,t),e._writableState.errorEmitted=!0,T(e,s)):(i(s),e._writableState.errorEmitted=!0,T(e,s),N(e,t))}(e,n,s,t,i);else{var o=_(n)||e.destroyed;o||n.corked||n.bufferProcessing||!n.bufferedRequest||O(e,n),s?r.nextTick(A,e,n,o,i):A(e,n,o,i)}}(n,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new s(this)}function E(t){var r=this instanceof(i=i||e("./_stream_duplex"));if(!r&&!c.call(E,this))return new E(t);this._writableState=new x(t,this,r),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),a.call(this)}function k(e,t,r,n,s,i,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new b("write")):r?e._writev(s,t.onwrite):e._write(s,i,t.onwrite),t.sync=!1}function A(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),N(e,t)}function O(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),o=t.corkedRequestsFree;o.entry=r;for(var a=0,l=!0;r;)i[a]=r,r.isBuf||(l=!1),r=r.next,a+=1;i.allBuffers=l,k(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new s(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,c=r.encoding,h=r.callback;if(k(e,t,!1,t.objectMode?1:u.length,u,c,h),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function _(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function j(e,t){e._final((function(r){t.pendingcb--,r&&T(e,r),t.prefinished=!0,e.emit("prefinish"),N(e,t)}))}function N(e,t){var n=_(t);if(n&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,r.nextTick(j,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var s=e._readableState;(!s||s.autoDestroy&&s.endEmitted)&&e.destroy()}return n}e("inherits")(E,a),x.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(x.prototype,"buffer",{get:o.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(c=Function.prototype[Symbol.hasInstance],Object.defineProperty(E,Symbol.hasInstance,{value:function(e){return!!c.call(this,e)||this===E&&(e&&e._writableState instanceof x)}})):c=function(e){return e instanceof this},E.prototype.pipe=function(){T(this,new m)},E.prototype.write=function(e,t,n){var s,i=this._writableState,o=!1,a=!i.objectMode&&(s=e,l.isBuffer(s)||s instanceof u);return a&&!l.isBuffer(e)&&(e=function(e){return l.from(e)}(e)),"function"==typeof t&&(n=t,t=null),a?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof n&&(n=w),i.ending?function(e,t){var n=new S;T(e,n),r.nextTick(t,n)}(this,n):(a||function(e,t,n,s){var i;return null===n?i=new v:"string"==typeof n||t.objectMode||(i=new d("chunk",["string","Buffer"],n)),!i||(T(e,i),r.nextTick(s,i),!1)}(this,i,e,n))&&(i.pendingcb++,o=function(e,t,r,n,s,i){if(!r){var o=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=l.from(t,r));return t}(t,n,s);n!==o&&(r=!0,s="buffer",n=o)}var a=t.objectMode?1:n.length;t.length+=a;var u=t.length<t.highWaterMark;u||(t.needDrain=!0);if(t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:s,isBuf:r,callback:i,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else k(e,t,!1,a,n,s,i);return u}(this,i,a,e,t,n)),o},E.prototype.cork=function(){this._writableState.corked++},E.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||O(this,e))},E.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new P(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(E.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(E.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),E.prototype._write=function(e,t,r){r(new g("_write()"))},E.prototype._writev=null,E.prototype.end=function(e,t,n){var s=this._writableState;return"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),s.corked&&(s.corked=1,this.uncork()),s.ending||function(e,t,n){t.ending=!0,N(e,t),n&&(t.finished?r.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,s,n),this},Object.defineProperty(E.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),E.prototype.destroy=h.destroy,E.prototype._undestroy=h.undestroy,E.prototype._destroy=function(e,t){t(e)}}).call(this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../errors":110,"./_stream_duplex":111,"./internal/streams/destroy":118,"./internal/streams/state":122,"./internal/streams/stream":123,_process:91,buffer:20,inherits:72,"util-deprecate":128}],116:[function(e,t,r){(function(r){(function(){var n;function s(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var i=e("./end-of-stream"),o=Symbol("lastResolve"),a=Symbol("lastReject"),l=Symbol("error"),u=Symbol("ended"),c=Symbol("lastPromise"),h=Symbol("handlePromise"),f=Symbol("stream");function p(e,t){return{value:e,done:t}}function d(e){var t=e[o];if(null!==t){var r=e[f].read();null!==r&&(e[c]=null,e[o]=null,e[a]=null,t(p(r,!1)))}}function g(e){r.nextTick(d,e)}var y=Object.getPrototypeOf((function(){})),m=Object.setPrototypeOf((s(n={get stream(){return this[f]},next:function(){var e=this,t=this[l];if(null!==t)return Promise.reject(t);if(this[u])return Promise.resolve(p(void 0,!0));if(this[f].destroyed)return new Promise((function(t,n){r.nextTick((function(){e[l]?n(e[l]):t(p(void 0,!0))}))}));var n,s=this[c];if(s)n=new Promise(function(e,t){return function(r,n){e.then((function(){t[u]?r(p(void 0,!0)):t[h](r,n)}),n)}}(s,this));else{var i=this[f].read();if(null!==i)return Promise.resolve(p(i,!1));n=new Promise(this[h])}return this[c]=n,n}},Symbol.asyncIterator,(function(){return this})),s(n,"return",(function(){var e=this;return new Promise((function(t,r){e[f].destroy(null,(function(e){e?r(e):t(p(void 0,!0))}))}))})),n),y);t.exports=function(e){var t,r=Object.create(m,(s(t={},f,{value:e,writable:!0}),s(t,o,{value:null,writable:!0}),s(t,a,{value:null,writable:!0}),s(t,l,{value:null,writable:!0}),s(t,u,{value:e._readableState.endEmitted,writable:!0}),s(t,h,{value:function(e,t){var n=r[f].read();n?(r[c]=null,r[o]=null,r[a]=null,e(p(n,!1))):(r[o]=e,r[a]=t)},writable:!0}),t));return r[c]=null,i(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[a];return null!==t&&(r[c]=null,r[o]=null,r[a]=null,t(e)),void(r[l]=e)}var n=r[o];null!==n&&(r[c]=null,r[o]=null,r[a]=null,n(p(void 0,!0))),r[u]=!0})),e.on("readable",g.bind(null,r)),r}}).call(this)}).call(this,e("_process"))},{"./end-of-stream":119,_process:91}],117:[function(e,t,r){function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function i(e,t,r){return(t=a(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}function a(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var l=e("buffer").Buffer,u=e("util").inspect,c=u&&u.custom||"inspect";t.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}var t,r,n;return t=e,(r=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return l.alloc(0);for(var t,r,n,s=l.allocUnsafe(e>>>0),i=this.head,o=0;i;)t=i.data,r=s,n=o,l.prototype.copy.call(t,r,n),o+=i.data.length,i=i.next;return s}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var s=t.data,i=e>s.length?s.length:e;if(i===s.length?n+=s:n+=s.slice(0,e),0==(e-=i)){i===s.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=s.slice(i));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=l.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var s=r.data,i=e>s.length?s.length:e;if(s.copy(t,t.length-e,0,i),0==(e-=i)){i===s.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=s.slice(i));break}++n}return this.length-=n,t}},{key:c,value:function(e,t){return u(this,s(s({},t),{},{depth:0,customInspect:!1}))}}])&&o(t.prototype,r),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}()},{buffer:20,util:18}],118:[function(e,t,r){(function(e){(function(){function r(e,t){s(e,t),n(e)}function n(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function s(e,t){e.emit("error",t)}t.exports={destroy:function(t,i){var o=this,a=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return a||l?(i?i(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(s,this,t)):e.nextTick(s,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!i&&t?o._writableState?o._writableState.errorEmitted?e.nextTick(n,o):(o._writableState.errorEmitted=!0,e.nextTick(r,o,t)):e.nextTick(r,o,t):i?(e.nextTick(n,o),i(t)):e.nextTick(n,o)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}}).call(this)}).call(this,e("_process"))},{_process:91}],119:[function(e,t,r){var n=e("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function s(){}t.exports=function e(t,r,i){if("function"==typeof r)return e(t,null,r);r||(r={}),i=function(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),s=0;s<r;s++)n[s]=arguments[s];e.apply(this,n)}}}(i||s);var o=r.readable||!1!==r.readable&&t.readable,a=r.writable||!1!==r.writable&&t.writable,l=function(){t.writable||c()},u=t._writableState&&t._writableState.finished,c=function(){a=!1,u=!0,o||i.call(t)},h=t._readableState&&t._readableState.endEmitted,f=function(){o=!1,h=!0,a||i.call(t)},p=function(e){i.call(t,e)},d=function(){var e;return o&&!h?(t._readableState&&t._readableState.ended||(e=new n),i.call(t,e)):a&&!u?(t._writableState&&t._writableState.ended||(e=new n),i.call(t,e)):void 0},g=function(){t.req.on("finish",c)};return!function(e){return e.setHeader&&"function"==typeof e.abort}(t)?a&&!t._writableState&&(t.on("end",l),t.on("close",l)):(t.on("complete",c),t.on("abort",d),t.req?g():t.on("request",g)),t.on("end",f),t.on("finish",c),!1!==r.error&&t.on("error",p),t.on("close",d),function(){t.removeListener("complete",c),t.removeListener("abort",d),t.removeListener("request",g),t.req&&t.req.removeListener("finish",c),t.removeListener("end",l),t.removeListener("close",l),t.removeListener("finish",c),t.removeListener("end",f),t.removeListener("error",p),t.removeListener("close",d)}}},{"../../../errors":110}],120:[function(e,t,r){t.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],121:[function(e,t,r){var n;var s=e("../../../errors").codes,i=s.ERR_MISSING_ARGS,o=s.ERR_STREAM_DESTROYED;function a(e){if(e)throw e}function l(e){e()}function u(e,t){return e.pipe(t)}t.exports=function(){for(var t=arguments.length,r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];var c,h=function(e){return e.length?"function"!=typeof e[e.length-1]?a:e.pop():a}(r);if(Array.isArray(r[0])&&(r=r[0]),r.length<2)throw new i("streams");var f=r.map((function(t,s){var i=s<r.length-1;return function(t,r,s,i){i=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(i);var a=!1;t.on("close",(function(){a=!0})),void 0===n&&(n=e("./end-of-stream")),n(t,{readable:r,writable:s},(function(e){if(e)return i(e);a=!0,i()}));var l=!1;return function(e){if(!a&&!l)return l=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(t)?t.abort():"function"==typeof t.destroy?t.destroy():void i(e||new o("pipe"))}}(t,i,s>0,(function(e){c||(c=e),e&&f.forEach(l),i||(f.forEach(l),h(c))}))}));return r.reduce(u)}},{"../../../errors":110,"./end-of-stream":119}],122:[function(e,t,r){var n=e("../../../errors").codes.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(e,t,r,s){var i=function(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}(t,s,r);if(null!=i){if(!isFinite(i)||Math.floor(i)!==i||i<0)throw new n(s?r:"highWaterMark",i);return Math.floor(i)}return e.objectMode?16:16384}}},{"../../../errors":110}],123:[function(e,t,r){t.exports=e("events").EventEmitter},{events:44}],124:[function(e,t,r){(r=t.exports=e("./lib/_stream_readable.js")).Stream=r,r.Readable=r,r.Writable=e("./lib/_stream_writable.js"),r.Duplex=e("./lib/_stream_duplex.js"),r.Transform=e("./lib/_stream_transform.js"),r.PassThrough=e("./lib/_stream_passthrough.js"),r.finished=e("./lib/internal/streams/end-of-stream.js"),r.pipeline=e("./lib/internal/streams/pipeline.js")},{"./lib/_stream_duplex.js":111,"./lib/_stream_passthrough.js":112,"./lib/_stream_readable.js":113,"./lib/_stream_transform.js":114,"./lib/_stream_writable.js":115,"./lib/internal/streams/end-of-stream.js":119,"./lib/internal/streams/pipeline.js":121}],125:[function(e,t,r){var n=e("safe-buffer").Buffer,s=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function i(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===s||!s(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=l,this.end=u,t=4;break;case"utf8":this.fillLast=a,t=4;break;case"base64":this.text=c,this.end=h,t=3;break;default:return this.write=f,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function o(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function a(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function l(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function c(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function f(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}r.StringDecoder=i,i.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},i.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},i.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var s=o(t[n]);if(s>=0)return s>0&&(e.lastNeed=s-1),s;if(--n<r||-2===s)return 0;if(s=o(t[n]),s>=0)return s>0&&(e.lastNeed=s-2),s;if(--n<r||-2===s)return 0;if(s=o(t[n]),s>=0)return s>0&&(2===s?s=0:e.lastNeed=s-3),s;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},i.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},{"safe-buffer":101}],126:[function(e,t,r){(function(t,n){(function(){var s=e("process/browser.js").nextTick,i=Function.prototype.apply,o=Array.prototype.slice,a={},l=0;function u(e,t){this._id=e,this._clearFn=t}r.setTimeout=function(){return new u(i.call(setTimeout,window,arguments),clearTimeout)},r.setInterval=function(){return new u(i.call(setInterval,window,arguments),clearInterval)},r.clearTimeout=r.clearInterval=function(e){e.close()},u.prototype.unref=u.prototype.ref=function(){},u.prototype.close=function(){this._clearFn.call(window,this._id)},r.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},r.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},r._unrefActive=r.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},r.setImmediate="function"==typeof t?t:function(e){var t=l++,n=!(arguments.length<2)&&o.call(arguments,1);return a[t]=!0,s((function(){a[t]&&(n?e.apply(null,n):e.call(null),r.clearImmediate(t))})),t},r.clearImmediate="function"==typeof n?n:function(e){delete a[e]}}).call(this)}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":91,timers:126}],127:[function(e,t,r){var n=e("punycode");function s(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var i=/^([a-z0-9.+-]+:)/i,o=/:[0-9]*$/,a=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,l=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(l),c=["%","/","?",";","#"].concat(u),h=["/","?","#"],f=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,d={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},m=e("qs");function b(e,t,r){if(e&&"object"==typeof e&&e instanceof s)return e;var n=new s;return n.parse(e,t,r),n}s.prototype.parse=function(e,t,r){if("string"!=typeof e)throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var s=e.indexOf("?"),o=-1!==s&&s<e.indexOf("#")?"?":"#",l=e.split(o);l[0]=l[0].replace(/\\/g,"/");var b=e=l.join(o);if(b=b.trim(),!r&&1===e.split("#").length){var v=a.exec(b);if(v)return this.path=b,this.href=b,this.pathname=v[1],v[2]?(this.search=v[2],this.query=t?m.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var S=i.exec(b);if(S){var P=(S=S[0]).toLowerCase();this.protocol=P,b=b.substr(S.length)}if(r||S||b.match(/^\/\/[^@/]+@[^@/]+/)){var T="//"===b.substr(0,2);!T||S&&g[S]||(b=b.substr(2),this.slashes=!0)}if(!g[S]&&(T||S&&!y[S])){for(var w,x,E=-1,k=0;k<h.length;k++){-1!==(A=b.indexOf(h[k]))&&(-1===E||A<E)&&(E=A)}-1!==(x=-1===E?b.lastIndexOf("@"):b.lastIndexOf("@",E))&&(w=b.slice(0,x),b=b.slice(x+1),this.auth=decodeURIComponent(w)),E=-1;for(k=0;k<c.length;k++){var A;-1!==(A=b.indexOf(c[k]))&&(-1===E||A<E)&&(E=A)}-1===E&&(E=b.length),this.host=b.slice(0,E),b=b.slice(E),this.parseHost(),this.hostname=this.hostname||"";var O="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!O)for(var _=this.hostname.split(/\./),j=(k=0,_.length);k<j;k++){var N=_[k];if(N&&!N.match(f)){for(var R="",M=0,L=N.length;M<L;M++)N.charCodeAt(M)>127?R+="x":R+=N[M];if(!R.match(f)){var C=_.slice(0,k),D=_.slice(k+1),$=N.match(p);$&&(C.push($[1]),D.unshift($[2])),D.length&&(b="/"+D.join(".")+b),this.hostname=C.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),O||(this.hostname=n.toASCII(this.hostname));var F=this.port?":"+this.port:"",I=this.hostname||"";this.host=I+F,this.href+=this.host,O&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!d[P])for(k=0,j=u.length;k<j;k++){var V=u[k];if(-1!==b.indexOf(V)){var B=encodeURIComponent(V);B===V&&(B=escape(V)),b=b.split(V).join(B)}}var U=b.indexOf("#");-1!==U&&(this.hash=b.substr(U),b=b.slice(0,U));var H=b.indexOf("?");if(-1!==H?(this.search=b.substr(H),this.query=b.substr(H+1),t&&(this.query=m.parse(this.query)),b=b.slice(0,H)):t&&(this.search="",this.query={}),b&&(this.pathname=b),y[P]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){F=this.pathname||"";var W=this.search||"";this.path=F+W}return this.href=this.format(),this},s.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",s=!1,i="";this.host?s=e+this.host:this.hostname&&(s=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(s+=":"+this.port)),this.query&&"object"==typeof this.query&&Object.keys(this.query).length&&(i=m.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var o=this.search||i&&"?"+i||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||y[t])&&!1!==s?(s="//"+(s||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):s||(s=""),n&&"#"!==n.charAt(0)&&(n="#"+n),o&&"?"!==o.charAt(0)&&(o="?"+o),t+s+(r=r.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(o=o.replace("#","%23"))+n},s.prototype.resolve=function(e){return this.resolveObject(b(e,!1,!0)).format()},s.prototype.resolveObject=function(e){if("string"==typeof e){var t=new s;t.parse(e,!1,!0),e=t}for(var r=new s,n=Object.keys(this),i=0;i<n.length;i++){var o=n[i];r[o]=this[o]}if(r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var a=Object.keys(e),l=0;l<a.length;l++){var u=a[l];"protocol"!==u&&(r[u]=e[u])}return y[r.protocol]&&r.hostname&&!r.pathname&&(r.pathname="/",r.path=r.pathname),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!y[e.protocol]){for(var c=Object.keys(e),h=0;h<c.length;h++){var f=c[h];r[f]=e[f]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||g[e.protocol])r.pathname=e.pathname;else{for(var p=(e.pathname||"").split("/");p.length&&!(e.host=p.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==p[0]&&p.unshift(""),p.length<2&&p.unshift(""),r.pathname=p.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var d=r.pathname||"",m=r.search||"";r.path=d+m}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var b=r.pathname&&"/"===r.pathname.charAt(0),v=e.host||e.pathname&&"/"===e.pathname.charAt(0),S=v||b||r.host&&e.pathname,P=S,T=r.pathname&&r.pathname.split("/")||[],w=(p=e.pathname&&e.pathname.split("/")||[],r.protocol&&!y[r.protocol]);if(w&&(r.hostname="",r.port=null,r.host&&(""===T[0]?T[0]=r.host:T.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===p[0]?p[0]=e.host:p.unshift(e.host)),e.host=null),S=S&&(""===p[0]||""===T[0])),v)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,T=p;else if(p.length)T||(T=[]),T.pop(),T=T.concat(p),r.search=e.search,r.query=e.query;else if(null!=e.search){if(w)r.host=T.shift(),r.hostname=r.host,(O=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=O.shift(),r.hostname=O.shift(),r.host=r.hostname);return r.search=e.search,r.query=e.query,null===r.pathname&&null===r.search||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!T.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var x=T.slice(-1)[0],E=(r.host||e.host||T.length>1)&&("."===x||".."===x)||""===x,k=0,A=T.length;A>=0;A--)"."===(x=T[A])?T.splice(A,1):".."===x?(T.splice(A,1),k++):k&&(T.splice(A,1),k--);if(!S&&!P)for(;k--;k)T.unshift("..");!S||""===T[0]||T[0]&&"/"===T[0].charAt(0)||T.unshift(""),E&&"/"!==T.join("/").substr(-1)&&T.push("");var O,_=""===T[0]||T[0]&&"/"===T[0].charAt(0);w&&(r.hostname=_?"":T.length?T.shift():"",r.host=r.hostname,(O=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=O.shift(),r.hostname=O.shift(),r.host=r.hostname));return(S=S||r.host&&T.length)&&!_&&T.unshift(""),T.length>0?r.pathname=T.join("/"):(r.pathname=null,r.path=null),null===r.pathname&&null===r.search||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},s.prototype.parseHost=function(){var e=this.host,t=o.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},r.parse=b,r.resolve=function(e,t){return b(e,!1,!0).resolve(t)},r.resolveObject=function(e,t){return e?b(e,!1,!0).resolveObject(t):t},r.format=function(e){return"string"==typeof e&&(e=b(e)),e instanceof s?e.format():s.prototype.format.call(e)},r.Url=s},{punycode:92,qs:94}],128:[function(e,t,r){(function(e){(function(){function r(t){try{if(!e.localStorage)return!1}catch(e){return!1}var r=e.localStorage[t];return null!=r&&"true"===String(r).toLowerCase()}t.exports=function(e,t){if(r("noDeprecation"))return e;var n=!1;return function(){if(!n){if(r("throwDeprecation"))throw new Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],129:[function(e,t,r){t.exports=function e(t,r){if(t&&r)return e(t)(r);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach((function(e){n[e]=t[e]})),n;function n(){for(var e=new Array(arguments.length),r=0;r<e.length;r++)e[r]=arguments[r];var n=t.apply(this,e),s=e[e.length-1];return"function"==typeof n&&n!==s&&Object.keys(s).forEach((function(e){n[e]=s[e]})),n}}},{}],130:[function(e,t,r){t.exports=function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var s in r)n.call(r,s)&&(e[s]=r[s])}return e};var n=Object.prototype.hasOwnProperty},{}],131:[function(e,t,r){t.exports={name:"fable",version:"3.1.20",description:"A service dependency injection, configuration and logging library.",main:"source/Fable.js",scripts:{start:"node source/Fable.js",coverage:"./node_modules/.bin/nyc --reporter=lcov --reporter=text-lcov ./node_modules/mocha/bin/_mocha -- -u tdd -R spec",test:"./node_modules/.bin/mocha -u tdd -R spec",build:"npx quack build","docker-dev-build":"docker build ./ -f Dockerfile_LUXURYCode -t fable-image:local","docker-dev-run":'docker run -it -d --name fable-dev -p 30001:8080 -p 38086:8086 -v "$PWD/.config:/home/coder/.config" -v "$PWD:/home/coder/fable" -u "$(id -u):$(id -g)" -e "DOCKER_USER=$USER" fable-image:local',"docker-dev-shell":"docker exec -it fable-dev /bin/bash",tests:"./node_modules/mocha/bin/_mocha -u tdd --exit -R spec --grep"},mocha:{diff:!0,extension:["js"],package:"./package.json",reporter:"spec",slow:"75",timeout:"5000",ui:"tdd","watch-files":["source/**/*.js","test/**/*.js"],"watch-ignore":["lib/vendor"]},browser:{"./source/service/Fable-Service-EnvironmentData.js":"./source/service/Fable-Service-EnvironmentData-Web.js","./source/service/Fable-Service-FilePersistence.js":"./source/service/Fable-Service-FilePersistence-Web.js"},repository:{type:"git",url:"https://github.com/stevenvelozo/fable.git"},keywords:["entity","behavior"],author:"Steven Velozo <steven@velozo.com> (http://velozo.com/)",license:"MIT",bugs:{url:"https://github.com/stevenvelozo/fable/issues"},homepage:"https://github.com/stevenvelozo/fable",devDependencies:{quackage:"^1.0.42"},dependencies:{"async.eachlimit":"^0.5.2","async.waterfall":"^0.5.2","big.js":"^7.0.1",cachetrax:"^1.0.4",cookie:"^1.0.2","data-arithmatic":"^1.0.7",dayjs:"^1.11.18","fable-log":"^3.0.16","fable-serviceproviderbase":"^3.0.15","fable-settings":"^3.0.12","fable-uuid":"^3.0.11",manyfest:"^1.0.42","simple-get":"^4.0.1"}}},{}],132:[function(e,t,r){const n=e("fable-settings"),s=e("fable-uuid"),i=e("fable-log"),o=e("../package.json"),a=e("fable-serviceproviderbase");class l extends a.CoreServiceProviderBase{constructor(t){super(t),this.serviceType="ServiceManager",this._Package=o,this.serviceTypes=[],this.servicesMap={},this.services={},this.serviceClasses={},this.extraServiceInitialization=!1,this.LogNoisiness=0,this.SettingsManager=new n(t),this.SettingsManager=this.SettingsManager,this.UUID=new s(this.SettingsManager.settings),this.Logging=new i(this.SettingsManager.settings),this.Logging.initialize(),this.ServiceManager=this,this.serviceManager=this,this.connectFable(this),this.connectPreinitServiceProviderInstance(this.UUID),this.connectPreinitServiceProviderInstance(this.Logging),this.connectPreinitServiceProviderInstance(this.SettingsManager),this.addAndInstantiateServiceType("EnvironmentData",e("./services/Fable-Service-EnvironmentData.js")),this.addServiceType("Template",e("./services/Fable-Service-Template.js")),this.addServiceType("MetaTemplate",e("./services/Fable-Service-MetaTemplate.js")),this.addServiceType("Anticipate",e("./services/Fable-Service-Anticipate.js")),this.addAndInstantiateServiceType("Dates",e("./services/Fable-Service-DateManipulation.js")),this.addAndInstantiateServiceType("DataFormat",e("./services/Fable-Service-DataFormat.js")),this.addAndInstantiateServiceType("DataGeneration",e("./services/Fable-Service-DataGeneration.js")),this.addAndInstantiateServiceType("Utility",e("./services/Fable-Service-Utility.js")),this.addAndInstantiateServiceType("Logic",e("./services/Fable-Service-Logic.js")),this.addAndInstantiateServiceType("Math",e("./services/Fable-Service-Math.js")),this.addServiceType("ExpressionParser",e("./services/Fable-Service-ExpressionParser.js")),this.addServiceType("RestClient",e("./services/Fable-Service-RestClient.js")),this.addServiceType("Manifest",e("manyfest")),this.addServiceType("ObjectCache",e("cachetrax")),this.addAndInstantiateServiceType("ProgressTime",e("./services/Fable-Service-ProgressTime.js")),this.addServiceType("ProgressTrackerSet",e("./services/Fable-Service-ProgressTrackerSet.js")),this.addServiceType("Operation",e("./services/Fable-Service-Operation.js")),this.addServiceType("CSVParser",e("./services/Fable-Service-CSVParser.js")),this.addServiceType("FilePersistence",e("./services/Fable-Service-FilePersistence.js"))}get isFable(){return!0}get settings(){return this.SettingsManager.settings}get settingsManager(){return this.SettingsManager}getUUID(){return this.UUID.getUUID()}newAnticipate(){return this.instantiateServiceProviderWithoutRegistration("Anticipate")}newManyfest(e){return this.instantiateServiceProviderWithoutRegistration("Manifest",e)}addServiceType(e,t){return e in this.servicesMap?this.log.warn(`Adding a service type [${e}] that already exists. This will change the default class prototype for this service.`):(this.servicesMap[e]={},this.serviceTypes.push(e)),"function"==typeof t&&t.isFableService?this.serviceClasses[e]=t:(this.log.error(`Attempted to add service type [${e}] with an invalid class. Using base service class, which will not crash but won't provide meaningful services.`),this.serviceClasses[e]=a),this.serviceClasses[e]}addServiceTypeIfNotExists(e,t){return e in this.servicesMap?this.serviceClasses[e]:this.addServiceType(e,t)}addAndInstantiateServiceType(e,t){return this.addServiceType(e,t),this.instantiateServiceProvider(e,{},`${e}-Default`)}addAndInstantiateServiceTypeIfNotExists(e,t){return this.addServiceTypeIfNotExists(e,t),e in this.servicesMap&&e in this.fable?this[e]:this.instantiateServiceProvider(e,{},`${e}-Default`)}addAndInstantiateSingletonService(e,t,r){return this.addServiceTypeIfNotExists(e,r),e in this.servicesMap&&e in this.fable?this[e]:this.instantiateServiceProvider(e,{},`${e}-Default`)}instantiateServiceProviderFromPrototype(e,t,r,n){let s=new n(this,t,r);return this.extraServiceInitialization&&(s=this.extraServiceInitialization(s)),this.servicesMap[e][s.Hash]=s,e in this.services||this.setDefaultServiceInstantiation(e,s.Hash),s}instantiateServiceProvider(e,t,r){let n=this.instantiateServiceProviderWithoutRegistration(e,t,r);return this.servicesMap[e][n.Hash]=n,e in this.services||this.setDefaultServiceInstantiation(e,n.Hash),n}instantiateServiceProviderIfNotExists(e,t,r){return e in this.services?this.services[e]:this.instantiateServiceProvider(e,t,r)}instantiateServiceProviderWithoutRegistration(e,t,r){let n=new this.serviceClasses[e](this,t,r);return this.extraServiceInitialization&&(n=this.extraServiceInitialization(n)),n}connectPreinitServiceProviderInstance(e){let t=e.serviceType,r=e.Hash;return e.connectFable(this),t in this.servicesMap||(this.servicesMap[t]={}),this.servicesMap[t][r]=e,t in this.services||this.setDefaultServiceInstantiation(t,r,!1),e}setDefaultServiceInstantiation(e,t,r){let n=void 0===r||r;return t in this.servicesMap[e]&&(e in this&&!n||(this[e]=this.servicesMap[e][t]),e in this.services&&!n||(this.services[e]=this.servicesMap[e][t]),!0)}static generateFileNameDateStamp(e){const t=e||new Date;return`${t.getFullYear()}-${String(t.getMonth()+1).padStart(2,"0")}-${String(t.getDate()).padStart(2,"0")}-${String(t.getHours()).padStart(2,"0")}-${String(t.getMinutes()).padStart(2,"0")}-${String(t.getSeconds()).padStart(2,"0")}`}}t.exports=l,t.exports.new=function(e){return new l(e)},t.exports.LogProviderBase=i.LogProviderBase,t.exports.ServiceProviderBase=a,t.exports.CoreServiceProviderBase=a.CoreServiceProviderBase,t.exports.precedent=n.precedent},{"../package.json":131,"./services/Fable-Service-Anticipate.js":133,"./services/Fable-Service-CSVParser.js":134,"./services/Fable-Service-DataFormat.js":135,"./services/Fable-Service-DataGeneration.js":137,"./services/Fable-Service-DateManipulation.js":138,"./services/Fable-Service-EnvironmentData.js":139,"./services/Fable-Service-ExpressionParser.js":140,"./services/Fable-Service-FilePersistence.js":150,"./services/Fable-Service-Logic.js":151,"./services/Fable-Service-Math.js":152,"./services/Fable-Service-MetaTemplate.js":153,"./services/Fable-Service-Operation.js":157,"./services/Fable-Service-ProgressTime.js":158,"./services/Fable-Service-ProgressTrackerSet.js":160,"./services/Fable-Service-RestClient.js":161,"./services/Fable-Service-Template.js":162,"./services/Fable-Service-Utility.js":163,cachetrax:22,"fable-log":51,"fable-serviceproviderbase":53,"fable-settings":57,"fable-uuid":60,manyfest:84}],133:[function(e,t,r){const n=e("fable-serviceproviderbase");t.exports=class extends n{constructor(e,t,r){super(e,t,r),this.serviceType="AsyncAnticipate",this.operationQueue=[],this.erroredOperations=[],this.executingOperationCount=0,this.completedOperationCount=0,this.callDepth=0,this.maxOperations=1,this.lastError=void 0,this.waitingFunctions=[]}checkQueue(){if(this.lastError){for(let e=0;e<this.waitingFunctions.length;e++)this.waitingFunctions[e](this.lastError);this.lastError=void 0,this.waitingFunctions=[]}else if(this.operationQueue.length>0&&this.executingOperationCount<this.maxOperations){let e=this.operationQueue.shift();this.executingOperationCount+=1,e(this.buildAnticipatorCallback())}else if(this.waitingFunctions.length>0&&this.executingOperationCount<1){for(let e=0;e<this.waitingFunctions.length;e++)this.waitingFunctions[e](this.lastError);this.lastError=void 0,this.waitingFunctions=[]}}anticipate(e){this.operationQueue.push(e),this.checkQueue()}buildAnticipatorCallback(){let e={Called:!1,Error:void 0,OperationSet:this};return function(t){if(e.Called)throw new Error("Anticipation async callback called twice...");e.Called=!0,this.lastError=t,e.OperationSet.executingOperationCount-=1,e.OperationSet.completedOperationCount+=1,e.OperationSet.callDepth++,e.OperationSet.callDepth>400?(e.OperationSet.callDepth=0,setTimeout(e.OperationSet.checkQueue.bind(this),0)):e.OperationSet.checkQueue()}.bind(this)}wait(e){this.waitingFunctions.push(e),this.checkQueue()}}},{"fable-serviceproviderbase":53}],134:[function(e,t,r){const n=e("fable-serviceproviderbase");t.exports=class extends n{constructor(e,t,r){super(e,t,r),this.serviceType="CSVParser",this.Header=[],this.HeaderFieldNames=[],this.Delimiter=",",this.QuoteCharacter='"',this.CleanCharacters=["\r"],this.HeaderLineIndex=0,this.HasHeader=!0,this.HasSetHeader=!1,this.EmitHeader=!1,this.EmitJSON=!0,this.EscapedQuoteString="&quot;",this.CurrentLine="",this.CurrentRecord=[],this.InQuote=!1,this.InEscapedQuote=!1,this.LinesParsed=0,this.RowsEmitted=0}marshalRowToJSON(e){if(!Array.isArray(e))return!1;for(let t=this.HeaderFieldNames.length;t<e.length;t++)this.HeaderFieldNames[t]=`${t}`;let t={};for(let r=0;r<e.length;r++)t[this.HeaderFieldNames[r]]=e[r];return t}setHeader(e){this.Header=e;for(let e=0;e<this.Header.length;e++)void 0===this.Header[e]?this.HeaderFieldNames[e]=`${e}`:this.HeaderFieldNames[e]=this.Header[e].toString().trim()}resetRowState(){this.CurrentRecord=[]}pushLine(){for(let e=0;e<this.CleanCharacters.length;e++)this.CurrentLine=this.CurrentLine.replace(this.CleanCharacters[e],"");this.CurrentRecord.push(this.CurrentLine),this.CurrentLine=""}emitRow(e){let t=void 0===e?this.EmitJSON:e;this.RowsEmitted++;let r=this.CurrentRecord;return this.CurrentRecord=[],t?this.marshalRowToJSON(r):r}parseCSVLine(e){this.LinesParsed++;for(let t=0;t<e.length;t++)this.InQuote||e[t]!=this.Delimiter?e[t]==this.QuoteCharacter?this.InEscapedQuote?this.InEscapedQuote=!1:this.InQuote?t<e.length&&e[t+1]==this.QuoteCharacter?(this.CurrentLine+=this.EscapedQuoteString,this.InEscapedQuote=!0):this.InQuote=!1:this.InQuote=!0:this.CurrentLine+=e[t]:this.pushLine();return!this.InQuote&&(this.pushLine(),this.HasHeader&&!this.HasSetHeader&&this.RowsEmitted==this.HeaderLineIndex?(this.HasSetHeader=!0,this.setHeader(this.emitRow(!1)),!!this.EmitHeader&&this.Header):this.emitRow())}}},{"fable-serviceproviderbase":53}],135:[function(e,t,r){const n=e("fable-serviceproviderbase");t.exports=class extends n{constructor(e,t,r){super(e,t,r),_defineProperty2(this,"stringPadStart",(function(e,t,r){let n=e.toString();return this.stringGeneratePaddingString(n,t,r)+n})),_defineProperty2(this,"stringPadEnd",(function(e,t,r){let n=e.toString();return n+this.stringGeneratePaddingString(n,t,r)})),this.serviceType="DataArithmatic",this._Regex_formatterInsertCommas=/.{1,3}/g,this._Regex_formatterAddCommasToNumber=/^([-+]?)(0?)(\d+)(.?)(\d+)$/g,this._Regex_formatterDollarsRemoveCommas=/,/gi,this._Regex_formatterCleanNonAlphaChar=/[^a-zA-Z]/gi,this._Regex_formatterCapitalizeEachWord=/([a-zA-Z]+)/g,this._Regex_matcherHTMLEntities=/&(#?[a-zA-Z0-9]+);/g,this._Value_MoneySign_Currency="$",this._Value_NaN_Currency="--",this._Value_GroupSeparator_Number=",",this._Value_Prefix_StringHash="HSH",this._Value_Clean_formatterCleanNonAlpha="",this._UseEngineStringStartsWith="function"==typeof String.prototype.startsWith,this._UseEngineStringEndsWith="function"==typeof String.prototype.endsWith,this._SanitizeObjectKeyRegex=/[^a-zA-Z0-9_]/gi,this._SanitizeObjectKeyReplacement="_",this._SanitizeObjectKeyInvalid="INVALID"}stringReverse(e){return e.split("").reverse().join("")}stringStartsWith(e,t,r){return this._UseEngineStringStartsWith?e.startsWith(t,r):this.stringStartsWith_Polyfill.call(e,t,r)}stringStartsWith_Polyfill(e,t){return this.slice(t||0,e.length)===e}stringEndsWith(e,t,r){return this._UseEngineStringEndsWith?e.endsWith(t,r):this.stringEndsWith_Polyfill.call(e,t,r)}stringEndsWith_Polyfill(e,t){return t<this.length?t|=0:t=this.length,this.substr(t-e.length,e.length)===e}insecureStringHash(e){let t=0,r=e.length,n=0;for(;n<r;)t=(t<<5)-t+e.charCodeAt(n++)|0;return`${this._Value_Prefix_StringHash}${t}`}capitalizeEachWord(e){return e.replace(this._Regex_formatterCapitalizeEachWord,(e=>e.charAt(0).toUpperCase()+e.substr(1)))}resolveHtmlEntities(e){return"string"!=typeof e?e:e.replace(this._Regex_matcherHTMLEntities,((e,t)=>{switch(t){case"comma":return",";case"amp":return"&";case"lt":return"<";case"gt":return">";case"times":return"×";case"divide":return"÷";case"plus":return"+";case"minus":return"-";case"infin":return"∞";case"ang":return"∠";case"quot":return'"';case"apos":return"'";case"nbsp":return" ";case"copy":return"©";case"reg":return"®";case"trade":return"™";case"euro":return"€";default:if(!t.startsWith("#"))return e}const r=parseInt(t.substring(1),10);return String.fromCharCode(r)}))}concatenateStrings(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.joinStrings("",...t)}concatenateStringsInternal(){const e=[...arguments],t=this.fable.Utility.flattenArrayOfSolverInputs(e);return this.concatenateStrings(...t)}joinStrings(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return r.filter((e=>"string"==typeof e||"number"==typeof e)).join(e)}joinStringsInternal(){const[e,...t]=arguments,r=this.fable.Utility.flattenArrayOfSolverInputs(t);return this.joinStrings(e,...r)}concatenateStringsRaw(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.joinStringsRaw("",...t)}concatenateStringsRawInternal(e){const t=[...arguments],r=this.fable.Utility.flattenArrayOfSolverInputs(t);return this.concatenateStringsRaw(...r)}joinStringsRaw(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return r.map(String).join(e)}joinStringsRawInternal(){const[e,...t]=arguments,r=this.fable.Utility.flattenArrayOfSolverInputs(t);return this.joinStringsRaw(e,...r)}cleanEnclosureWrapCharacters(e,t){return t.startsWith(e)&&t.endsWith(e)?t.substring(1,t.length-1):t}cleanNonAlphaCharacters(e){return"string"==typeof e&&""!=e?e.replace(this._Regex_formatterCleanNonAlphaChar,this._Value_Clean_formatterCleanNonAlpha):""}sanitizeObjectKey(e){return"string"!=typeof e||e.length<1?this._SanitizeObjectKeyInvalid:e.replace(this._SanitizeObjectKeyRegex,this._SanitizeObjectKeyReplacement)}formatterInsertCommas(e){let t=this.stringReverse(e).match(this._Regex_formatterInsertCommas).join(",");return this.stringReverse(t)}processAddCommasToNumberRegex(e,t,r,n,s,i){return t+(s?this.formatterInsertCommas(n)+s+i:this.formatterInsertCommas(n+i))}formatterAddCommasToNumber(e){return e.toString().replace(this._Regex_formatterAddCommasToNumber,this.processAddCommasToNumberRegex.bind(this))}formatterDollars(e,t,r){if(isNaN(e))return this._Value_NaN_Currency;if(null==e)return this._Value_NaN_Currency;let n=this.fable.Math.parsePrecise(e),s=void 0===t?2:t,i=this.fable.Math.toFixedPrecise(n,s,r);return`$${this.formatterAddCommasToNumber(i)}`}formatterRoundNumber(e,t){let r=void 0===t?2:t;if(isNaN(e)){return(0).toFixed(r)}if(null==e)return"";let n=this.fable.Utility.bigNumber(e).toFixed(r);if(isNaN(n)){return(0).toFixed(r)}return n}stringGeneratePaddingString(e,t,r){let n=t|0,s=String(void 0!==r?r:" ");if(e.length>t)return"";{let r=t-e.length;return r>s.length&&(s+=s.repeat(n/s.length)),s.slice(0,r)}}formatTimeSpan(e){if("number"!=typeof e)return"";let t=parseInt(e%1e3),r=parseInt(e/1e3%60),n=parseInt(e/6e4%60),s=parseInt(e/36e5);return`${this.stringPadStart(s,2,"0")}:${this.stringPadStart(n,2,"0")}:${this.stringPadStart(r,2,"0")}.${this.stringPadStart(t,3,"0")}`}formatTimeDelta(e,t){return"number"!=typeof e||"number"!=typeof t?"":this.formatTimeSpan(t-e)}getMonthFromDate(e){return["January","February","March","April","May","June","July","August","September","October","November","December"][e.getMonth()]}getMonthAbbreviatedFromDate(e){return["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][e.getMonth()]}formatMonthDayYearFromDate(e,t){let r=void 0!==t&&t,n=e.getMonth()+1,s=e.getDate(),i=e.getFullYear();return r&&(n=this.stringPadStart(n,2,"0"),s=this.stringPadStart(s,2,"0"),i=this.stringPadStart(i,4,"0")),`${n}/${s}/${i}`}formatSortableStringFromDate(e){return e.getFullYear()+this.stringPadStart(e.getMonth(),2,"0")+this.stringPadStart(e.getDate(),2,"0")}stringBeforeMatch(e,t){return e.split(t)[0]}stringAfterMatch(e,t){let r=e.indexOf(t);return r<0||r+t.length>=e.length?"":e.substring(r+t.length)}stringCountSegments(e,t,r,n){let s="string"==typeof e?e:"",i="string"==typeof t?t:".",o="object"==typeof r?pEnclosureStart:{"{":0,"[":1,"(":2},a="object"==typeof n?pEnclosureEnd:{"}":0,"]":1,")":2};if(e.length<1)return 0;let l=1,u=[];for(let e=0;e<s.length;e++)s[e]==i&&0==u.length?l++:s[e]in o?u.push(o[s[e]]):s[e]in a&&a[s[e]]==u[u.length-1]&&u.pop();return l}stringGetSegments(e,t,r,n){let s="string"==typeof e?e:"",i="string"==typeof t?t:".",o="object"==typeof r?pEnclosureStart:{"{":0,"[":1,"(":2,'"':3,"'":4},a="object"==typeof n?pEnclosureEnd:{"}":0,"]":1,")":2,'"':3,"'":4},l=0,u=[];if(e.length<1)return u;let c=[];for(let e=0;e<s.length;e++)s[e]==i&&0==c.length?(u.push(s.substring(l,e)),l=e+1):s[e]in o?c.push(o[s[e]]):s[e]in a&&a[s[e]]==c[c.length-1]&&c.pop();return l<s.length&&u.push(s.substring(l)),u}stringGetFirstSegment(e,t,r,n){let s="string"==typeof e?e:"",i="string"==typeof t?t:".",o="object"==typeof r?pEnclosureStart:{"{":0,"[":1,"(":2},a="object"==typeof n?pEnclosureEnd:{"}":0,"]":1,")":2};if(e.length<1)return 0;let l=[];for(let e=0;e<s.length;e++){if(s[e]==i&&0==l.length)return s.substring(0,e);s[e]in o?l.push(o[s[e]]):s[e]in a&&a[s[e]]==l[l.length-1]&&l.pop()}return s}stringEncodeURIComponent(e){return"string"!=typeof e?e:encodeURIComponent(e)}stringDecodeURIComponent(e){if("string"!=typeof e)return e;try{return decodeURIComponent(e)}catch(t){return this.fable.Log.error(`Failed to decode URI component: ${e}`,t),e}}stringEncodeForJavascript(e){return"string"!=typeof e?e:e.replace(this._Regex_matcherJavascriptEncode,(e=>{switch(e){case'"':return'\\"';case"'":return"\\'";case"\\":return"\\\\";case"\n":return"\\n";case"\r":return"\\r";default:return e}}))}stringDecodeForJavascript(e){return"string"!=typeof e?e:e.replace(this._Regex_matcherJavascriptDecode,(e=>{switch(e){case'\\"':return'"';case"\\'":return"'";case"\\\\":return"\\";case"\\n":return"\n";case"\\r":return"\r";default:return e}}))}stringCountEnclosures(e,t,r){let n="string"==typeof e?e:"",s="string"==typeof t?t:"(",i="string"==typeof r?r:")",o=0,a=0;for(let e=0;e<n.length;e++)n[e]==s?(0==a&&o++,a++):n[e]==i&&a--;return o}stringGetEnclosureValueByIndex(e,t,r,n){let s="string"==typeof e?e:"",i="number"==typeof t?t:0,o="string"==typeof r?r:"(",a="string"==typeof n?n:")",l=0,u=0,c=!1,h=0,f=0;for(let e=0;e<s.length;e++)s[e]==o?(u++,1==u&&(l++,i==l-1&&(c=!0,h=e))):s[e]==a&&(u--,0==u&&c&&f<=h&&(f=e,c=!1));return l<=i?"":f>0&&f>h?s.substring(h+1,f):s.substring(h+1)}stringRemoveEnclosureByIndex(e,t,r,n){let s="string"==typeof e?e:"",i="number"==typeof t?t:0,o="string"==typeof r?r:"(",a="string"==typeof n?n:")",l=0,u=0,c=!1,h=0,f=0;for(let e=0;e<s.length;e++)s[e]==o?(u++,1==u&&(l++,i==l-1&&(c=!0,h=e))):s[e]==a&&(u--,0==u&&c&&f<=h&&(f=e,c=!1));if(l<=i)return s;let p="";return h>1&&(p=s.substring(0,h)),s.length>f+1&&f>h&&(p+=s.substring(f+1)),p}}},{"fable-serviceproviderbase":53}],136:[function(e,t,r){t.exports={DefaultIntegerMinimum:0,DefaultIntegerMaximum:9999999,DefaultNumericStringLength:10,MonthSet:["January","February","March","April","May","June","July","August","September","October","November","December"],WeekDaySet:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ColorSet:["Red","Orange","Yellow","Green","Blue","Indigo","Violet","Pink","Purple","Turquoise","Gold","Lime","Maroon","Navy","Coral","Teal","Brown","White","Black","Sky","Berry","Grey","Straw","Silver","Sapphire"],SurNameSet:["Smith","Johnson","Williams","Brown","Jones","Miller","Davis","Garcia","Rodriguez","Wilson","Martinez","Anderson","Taylor","Thomas","Hernandez","Moore","Martin","Jackson","Thompson","White","Lopez","Lee","Gonzalez","Harris","Clark","Lewis","Robinson","Walker","Perez","Hall","Young","Allen","Sanchez","Wright","King","Scott","Green","Baker","Adams","Nelson","Hill","Ramirez","Campbell","Mitchell","Roberts","Carter","Phillips","Evans","Turner","Torres","Parker","Collins","Edwards","Stewart","Flores","Morris","Nguyen","Murphy","Rivera","Cook","Rogers","Morgan","Peterson","Cooper","Reed","Bailey","Bell","Gomez","Kelly","Howard","Ward","Cox","Diaz","Richardson","Wood","Watson","Brooks","Bennett","Gray","James","Reyes","Cruz","Hughes","Price","Myers","Long","Foster","Sanders","Ross","Morales","Powell","Sullivan","Russell","Ortiz","Jenkins","Gutierrez","Perry","Butler","Barnes","Fisher"],NameSet:["Mary","Patricia","Jennifer","Linda","Elizabeth","Barbara","Susan","Jessica","Sarah","Karen","Lisa","Nancy","Betty","Sandra","Margaret","Ashley","Kimberly","Emily","Donna","Michelle","Carol","Amanda","Melissa","Deborah","Stephanie","Dorothy","Rebecca","Sharon","Laura","Cynthia","Amy","Kathleen","Angela","Shirley","Brenda","Emma","Anna","Pamela","Nicole","Samantha","Katherine","Christine","Helen","Debra","Rachel","Carolyn","Janet","Maria","Catherine","Heather","Diane","Olivia","Julie","Joyce","Victoria","Ruth","Virginia","Lauren","Kelly","Christina","Joan","Evelyn","Judith","Andrea","Hannah","Megan","Cheryl","Jacqueline","Martha","Madison","Teresa","Gloria","Sara","Janice","Ann","Kathryn","Abigail","Sophia","Frances","Jean","Alice","Judy","Isabella","Julia","Grace","Amber","Denise","Danielle","Marilyn","Beverly","Charlotte","Natalie","Theresa","Diana","Brittany","Doris","Kayla","Alexis","Lori","Marie","James","Robert","John","Michael","David","William","Richard","Joseph","Thomas","Christopher","Charles","Daniel","Matthew","Anthony","Mark","Donald","Steven","Andrew","Paul","Joshua","Kenneth","Kevin","Brian","George","Timothy","Ronald","Jason","Edward","Jeffrey","Ryan","Jacob","Gary","Nicholas","Eric","Jonathan","Stephen","Larry","Justin","Scott","Brandon","Benjamin","Samuel","Gregory","Alexander","Patrick","Frank","Raymond","Jack","Dennis","Jerry","Tyler","Aaron","Jose","Adam","Nathan","Henry","Zachary","Douglas","Peter","Kyle","Noah","Ethan","Jeremy","Walter","Christian","Keith","Roger","Terry","Austin","Sean","Gerald","Carl","Harold","Dylan","Arthur","Lawrence","Jordan","Jesse","Bryan","Billy","Bruce","Gabriel","Joe","Logan","Alan","Juan","Albert","Willie","Elijah","Wayne","Randy","Vincent","Mason","Roy","Ralph","Bobby","Russell","Bradley","Philip","Eugene"]}},{}],137:[function(e,t,r){const n=e("fable-serviceproviderbase");t.exports=class extends n{constructor(t,r,n){super(t,r,n),this.serviceType="DataGeneration",this.defaultData=e("./Fable-Service-DataGeneration-DefaultValues.json")}randomIntegerBetween(e,t){try{let r=parseInt(e,10),n=parseInt(t,10);return Math.floor(Math.random()*(n-r))+r}catch(r){return this.fable.log.error("Error in randomIntegerBetween",r,{Minimum:e,Maximum:t}),NaN}}randomIntegerUpTo(e){return this.randomIntegerBetween(0,e)}randomInteger(){return Math.floor(Math.random()*this.defaultData.DefaultIntegerMaximum)}randomFloatBetween(e,t){try{let r=parseFloat(e),n=parseFloat(t);return this.fable.Math.addPrecise(this.fable.Math.multiplyPrecise(Math.random(),this.fable.Math.subtractPrecise(n,r)),r)}catch(r){return this.fable.log.error("Error in randomFloatBetween",r,{Minimum:e,Maximum:t}),NaN}}randomFloatUpTo(e){return this.randomFloatBetween(0,e)}randomFloat(){return Math.random()}randomNumericString(e,t){let r=void 0===t?9999999999:t;return this.services.DataFormat.stringPadStart(this.randomIntegerUpTo(r),e,"0")}randomMonth(){return this.defaultData.MonthSet[this.randomIntegerUpTo(this.defaultData.MonthSet.length-1)]}randomDayOfWeek(){return this.defaultData.WeekDaySet[this.randomIntegerUpTo(this.defaultData.WeekDaySet.length-1)]}randomColor(){return this.defaultData.ColorSet[this.randomIntegerUpTo(this.defaultData.ColorSet.length-1)]}randomName(){return this.defaultData.NameSet[this.randomIntegerUpTo(this.defaultData.NameSet.length-1)]}randomSurname(){return this.defaultData.SurNameSet[this.randomIntegerUpTo(this.defaultData.SurNameSet.length-1)]}}},{"./Fable-Service-DataGeneration-DefaultValues.json":136,"fable-serviceproviderbase":53}],138:[function(e,t,r){const n=e("fable-serviceproviderbase");t.exports=class extends n{constructor(t,r,n){super(t,r,n),this.serviceType="Dates",this.dayJS=e("dayjs"),this.plugin_weekOfYear=e("dayjs/plugin/weekOfYear"),this.dayJS.extend(this.plugin_weekOfYear),this.plugin_weekday=e("dayjs/plugin/weekday"),this.dayJS.extend(this.plugin_weekday),this.plugin_isoWeek=e("dayjs/plugin/isoWeek"),this.dayJS.extend(this.plugin_isoWeek),this.plugin_timezone=e("dayjs/plugin/timezone"),this.dayJS.extend(this.plugin_timezone),this.plugin_relativetime=e("dayjs/plugin/relativeTime"),this.dayJS.extend(this.plugin_relativetime),this.plugin_utc=e("dayjs/plugin/utc"),this.dayJS.extend(this.plugin_utc),this.plugin_advancedFormat=e("dayjs/plugin/advancedFormat"),this.dayJS.extend(this.plugin_advancedFormat)}dateDayDifference(e,t){if(null==e||""===e)return NaN;let r=this.dayJS(e);return this.dayJS(t).diff(r,"day")}dateWeekDifference(e,t){if(null==e||""===e)return NaN;let r=this.dayJS(e);return this.dayJS(t).diff(r,"week")}dateMonthDifference(e,t){if(null==e||""===e)return NaN;let r=this.dayJS(e);return this.dayJS(t).diff(r,"month")}dateYearDifference(e,t){if(null==e||""===e)return NaN;let r=this.dayJS(e);return this.dayJS(t).diff(r,"year")}}},{dayjs:28,"dayjs/plugin/advancedFormat":29,"dayjs/plugin/isoWeek":30,"dayjs/plugin/relativeTime":31,"dayjs/plugin/timezone":32,"dayjs/plugin/utc":33,"dayjs/plugin/weekOfYear":34,"dayjs/plugin/weekday":35,"fable-serviceproviderbase":53}],139:[function(e,t,r){const n=e("fable-serviceproviderbase");t.exports=class extends n{constructor(e,t,r){super(e,t,r),this.serviceType="EnvironmentData",this.Environment="node.js"}}},{"fable-serviceproviderbase":53}],140:[function(e,t,r){const{PE:n}=e("big.js"),s=e("fable-serviceproviderbase");t.exports=class extends s{constructor(t,r,n){super(t,r,n),this.tokenMap=e("./Fable-Service-ExpressionParser/Fable-Service-ExpressionParser-TokenMap.json"),this.tokenMaxPrecedence=4,this.tokenRadix={};let s=Object.keys(this.tokenMap);for(let e=0;e<s.length;e++){let t=s[e],r=this.tokenMap[t];r.Token=t,r.Length=t.length;let n=r.Token[0];n in this.tokenRadix||(this.tokenRadix[n]={TokenCount:0,Literal:!1,TokenKeys:[],TokenMap:{}}),this.tokenRadix[n].TokenCount++,t==n&&(this.tokenRadix[n].Literal=!0),this.tokenRadix[n].TokenMap[r.Token]=r,this.tokenRadix[n].TokenKeys.push(t),this.tokenRadix[n].TokenKeys.sort(((e,t)=>t.length-e.length)),this.tokenMaxPrecedence<r.Precedence&&(this.tokenMaxPrecedence=r.Precedence)}this.functionMap=e("./Fable-Service-ExpressionParser/Fable-Service-ExpressionParser-FunctionMap.json"),this.serviceType="ExpressionParser",this.fable.addServiceTypeIfNotExists("ExpressionParser-Tokenizer",e("./Fable-Service-ExpressionParser/Fable-Service-ExpressionParser-ExpressionTokenizer.js")),this.fable.addServiceTypeIfNotExists("ExpressionParser-Linter",e("./Fable-Service-ExpressionParser/Fable-Service-ExpressionParser-Linter.js")),this.fable.addServiceTypeIfNotExists("ExpressionParser-Postfix",e("./Fable-Service-ExpressionParser/Fable-Service-ExpressionParser-Postfix.js")),this.fable.addServiceTypeIfNotExists("ExpressionParser-ValueMarshal",e("./Fable-Service-ExpressionParser/Fable-Service-ExpressionParser-ValueMarshal.js")),this.fable.addServiceTypeIfNotExists("ExpressionParser-Solver",e("./Fable-Service-ExpressionParser/Fable-Service-ExpressionParser-SolvePostfixedExpression.js")),this.fable.addServiceTypeIfNotExists("ExpressionParser-Messaging",e("./Fable-Service-ExpressionParser/Fable-Service-ExpressionParser-Messaging.js")),this.Tokenizer=this.fable.instantiateServiceProviderWithoutRegistration("ExpressionParser-Tokenizer"),this.Linter=this.fable.instantiateServiceProviderWithoutRegistration("ExpressionParser-Linter"),this.Postfix=this.fable.instantiateServiceProviderWithoutRegistration("ExpressionParser-Postfix"),this.ValueMarshal=this.fable.instantiateServiceProviderWithoutRegistration("ExpressionParser-ValueMarshal"),this.Solver=this.fable.instantiateServiceProviderWithoutRegistration("ExpressionParser-Solver"),this.Messaging=this.fable.instantiateServiceProviderWithoutRegistration("ExpressionParser-Messaging"),this.Tokenizer.connectExpressionParser(this),this.Linter.connectExpressionParser(this),this.Postfix.connectExpressionParser(this),this.ValueMarshal.connectExpressionParser(this),this.Solver.connectExpressionParser(this),this.Messaging.connectExpressionParser(this),this.GenericManifest=this.fable.newManyfest(),this.LogNoisiness="LogNoisiness"in this.fable?this.fable.LogNoisiness:0}tokenize(e,t){return this.Tokenizer.tokenize(e,t)}lintTokenizedExpression(e,t){return this.Linter.lintTokenizedExpression(e,t)}buildPostfixedSolveList(e,t){return this.Postfix.buildPostfixedSolveList(e,t)}substituteValuesInTokenizedObjects(e,t,r,n){return this.ValueMarshal.substituteValuesInTokenizedObjects(e,t,r,n)}solvePostfixedExpression(e,t,r,n){return this.Solver.solvePostfixedExpression(e,t,r,n)}solve(e,t,r,n,s){let i="object"==typeof r?r:{},o="object"==typeof t?t:{},a="object"==typeof s?s:{};return this.tokenize(e,i),this.lintTokenizedExpression(i.RawTokens,i),this.buildPostfixedSolveList(i.RawTokens,i),this.substituteValuesInTokenizedObjects(i.PostfixTokenObjects,o,i,n),this.solvePostfixedExpression(i.PostfixSolveList,a,i,n)}}},{"./Fable-Service-ExpressionParser/Fable-Service-ExpressionParser-ExpressionTokenizer.js":142,"./Fable-Service-ExpressionParser/Fable-Service-ExpressionParser-FunctionMap.json":143,"./Fable-Service-ExpressionParser/Fable-Service-ExpressionParser-Linter.js":144,"./Fable-Service-ExpressionParser/Fable-Service-ExpressionParser-Messaging.js":145,"./Fable-Service-ExpressionParser/Fable-Service-ExpressionParser-Postfix.js":146,"./Fable-Service-ExpressionParser/Fable-Service-ExpressionParser-SolvePostfixedExpression.js":147,"./Fable-Service-ExpressionParser/Fable-Service-ExpressionParser-TokenMap.json":148,"./Fable-Service-ExpressionParser/Fable-Service-ExpressionParser-ValueMarshal.js":149,"big.js":17,"fable-serviceproviderbase":53}],141:[function(e,t,r){const n=e("fable-serviceproviderbase");t.exports=class extends n{constructor(e,t,r){super(e,t,r),this.serviceType="ExpressionParserOperationBase",this.numberTest=/^-{0,1}\d*\.{0,1}\d+$/,this.ExpressionParser=!1}connectExpressionParser(e){this.ExpressionParser=e}getTokenType(e){return e in this.ExpressionParser.tokenMap?`Token.${this.ExpressionParser.tokenMap[e].Type}`:e.length>2&&"{"===e[0]&&"}"===e[e.length-1]?"Token.StateAddress":e.length>2&&'"'===e[0]&&'"'===e[e.length-1]?"Token.String":this.numberTest.test(e)?"Token.Constant":"Token.Symbol"}getTokenContainerObject(e,t){return{Token:e,Type:void 0===t?this.getTokenType(e):t,Descriptor:e in this.ExpressionParser.tokenMap&&this.ExpressionParser.tokenMap[e]}}}},{"fable-serviceproviderbase":53}],142:[function(e,t,r){const n=e("./Fable-Service-ExpressionParser-Base.js");t.exports=class extends n{constructor(e,t,r){super(e,t,r),this.serviceType="ExpressionParser-Tokenizer"}tokenize(e,t){let r="object"==typeof t?t:{ExpressionParserLog:[]};if(r.RawExpression=e,r.RawTokens=[],r.ExpressionParserLog=[],"string"!=typeof e)return this.log.warn("ExpressionParser.tokenize was passed a non-string expression."),r.RawTokens;let n=!1,s="";for(let t=0;t<e.length;t++){let i=e[t];if(" "!==i&&"\t"!==i||"StateAddress"===n||"String"===n)if("StateAddress"!==n||"}"===i)if("String"!==n||'"'===i)if("StateAddress"!==n||"}"!==i)if("String"!==n||'"'!==i)if("}"!=i)if("{"!=i)if("String"===n||'"'!=i)if(i in this.ExpressionParser.tokenRadix){let o=this.ExpressionParser.tokenRadix[i];if(1==o.TokenCount&&o.Literal){s.length>0&&r.RawTokens.push(s),s="",n=!1,r.RawTokens.push(i);continue}for(let i=0;i<o.TokenKeys.length;i++){let a=o.TokenKeys[i];if(e.substr(t,a.length)==a){s.length>0&&r.RawTokens.push(a),s="",n=!1,r.RawTokens.push(a),t+=a.length-1;break}}}else n="Value",s+=i;else s.length>0&&r.RawTokens.push(s),s="",n="String",s=i;else s.length>0&&r.RawTokens.push(s),s="",n="StateAddress",s=i;else s.length>0&&r.RawTokens.push(s),s="",n=!1,r.ExpressionParserLog.push(`ExpressionParser.tokenize found a closing brace without an opening brace in the expression: ${e} at character index ${t}`),this.log.warn(r.ExpressionParserLog[r.ExpressionParserLog.length-1]);else s+=i,r.RawTokens.push(s),s="",n=!1;else s+=i,r.RawTokens.push(s),s="",n=!1;else s+=i;else s+=i;else s.length>0&&r.RawTokens.push(s),s="",n=!1}return n&&s.length>0&&r.RawTokens.push(s),r.RawTokens}}},{"./Fable-Service-ExpressionParser-Base.js":141}],143:[function(e,t,r){t.exports={sqrt:{Name:"Square Root",Address:"fable.Math.sqrtPrecise"},percent:{Name:"Compute Percent (in IS over OF format)",Address:"fable.Math.percentagePrecise"},compare:{Name:"Compare",Address:"fable.Math.comparePrecise"},abs:{Name:"Absolute Value",Address:"fable.Math.absPrecise"},floor:{Name:"Floor Value",Address:"fable.Math.floorPrecise"},ceil:{Name:"Ceiling Value",Address:"fable.Math.ceilPrecise"},rad:{Name:"Degrees to Radians",Address:"fable.Math.radPrecise"},pi:{Name:"Pi",Address:"fable.Math.piPrecise"},euler:{Name:"Euler",Address:"fable.Math.eulerPrecise"},log:{Name:"Logarithm",Address:"fable.Math.logPrecise"},exp:{Name:"Eulers Number to the Power Of N",Address:"fable.Math.expPrecise"},sin:{Name:"Sine",Address:"fable.Math.sin"},cos:{Name:"Cosine",Address:"fable.Math.cos"},tan:{Name:"Tangent",Address:"fable.Math.tan"},count:{Name:"Count Set Elements",Address:"fable.Math.countSetElements"},countset:{Name:"Count Set Elements",Address:"fable.Math.countSetElements"},sortset:{Name:"Sort Set",Address:"fable.Math.sortSetPrecise"},bucketset:{Name:"Bucket Set",Address:"fable.Math.bucketSetPrecise"},sorthistogram:{Name:"Sort Histogram",Address:"fable.Math.sortHistogramPrecise"},max:{Name:"Maximum",Address:"fable.Math.maxPrecise"},min:{Name:"Minimum",Address:"fable.Math.minPrecise"},sum:{Name:"Sum",Address:"fable.Math.sumPrecise"},avg:{Name:"Average",Address:"fable.Math.averagePrecise"},mean:{Name:"Mean",Address:"fable.Math.meanPrecise"},median:{Name:"Median",Address:"fable.Math.medianPrecise"},mode:{Name:"Mode",Address:"fable.Math.modePrecise"},round:{Name:"Round",Address:"fable.Math.roundPrecise"},tofixed:{Name:"To Fixed",Address:"fable.Math.toFixedPrecise"},cumulativesummation:{Name:"Count Set Elements in a Histogram or Value Map",Address:"fable.Math.cumulativeSummation"},countsetelements:{Name:"Count Set Elements in a Histogram or Value Map",Address:"fable.Math.countSetElements"},getvalue:{Name:"Get Value from Application State or Services (AppData, etc.)",Address:"fable.Utility.getInternalValueByHash"},createarrayfromabsolutevalues:{Name:"Create Array from Absolute Values",Address:"fable.Utility.createArrayFromAbsoluteValues"},flatten:{Name:"flatten an array of values",Address:"fable.Utility.flattenArrayOfSolverInputs"},findfirstvaluebyexactmatch:{Name:"find + map on array of objects",Address:"fable.Utility.findFirstValueByExactMatchInternal"},findfirstvaluebystringincludes:{Name:"find + map on array of objects",Address:"fable.Utility.findFirstValueByStringIncludesInternal"},resolvehtmlentities:{Name:"resolve HTML entities",Address:"fable.DataFormat.resolveHtmlEntities"},concat:{Name:"concatenate an array of values and output a string",Address:"fable.DataFormat.concatenateStringsInternal"},concatraw:{Name:"concatenate an array of values and output a string",Address:"fable.DataFormat.concatenateStringsRawInternal"},join:{Name:"join an array of values and output a string",Address:"fable.DataFormat.joinStringsInternal"},joinraw:{Name:"join an array of values and output a string",Address:"fable.DataFormat.joinStringsRawInternal"},if:{Name:"perform a conditional operator on two values, and choose one of two outcomes based on the result",Address:"fable.Logic.checkIf"},when:{Name:"perform a 'truthy' check on one value, and return one of two outcomes based on the result",Address:"fable.Logic.when"},entryinset:{Name:"Entry in Set",Address:"fable.Math.entryInSet"},smallestinset:{Name:"Smallest in Set",Address:"fable.Math.smallestInSet"},largestinset:{Name:"Largest in Set",Address:"fable.Math.largestInSet"},aggregationhistogram:{Name:"Generate a Histogram by Exact Value Aggregation",Address:"fable.Math.histogramAggregationByExactValueFromInternalState"},distributionhistogram:{Name:"Generate a Histogram Based on Value Distribution",Address:"fable.Math.histogramDistributionByExactValueFromInternalState"},setconcatenate:{Name:"Set Concatenate",Address:"fable.Math.setConcatenate"},getvaluearray:{Name:"Get Value Array from Application State or Services (AppData, etc.)",Address:"fable.Utility.createValueArrayByHashParametersFromInternal"},getvalueobject:{Name:"Get Value Object from Application State or Services (AppData, etc.)",Address:"fable.Utility.createValueObjectByHashParametersFromInternal"},cleanvaluearray:{Name:"Clean Value Array",Address:"fable.Math.cleanValueArray"},cleanvalueobject:{Name:"Clean Value Object",Address:"fable.Math.cleanValueObject"},randominteger:{Name:"Random Integer",Address:"fable.DataGeneration.randomInteger"},randomintegerbetween:{Name:"Random Integer Between Two Numbers",Address:"fable.DataGeneration.randomIntegerBetween"},randomintegerupto:{Name:"Random Integer",Address:"fable.DataGeneration.randomIntegerUpTo"},randomfloat:{Name:"Random Float",Address:"fable.DataGeneration.randomFloat"},randomfloatbetween:{Name:"Random Float",Address:"fable.DataGeneration.randomFloatBetween"},randomfloatupto:{Name:"Random Float",Address:"fable.DataGeneration.randomFloatUpTo"},datedaydifference:{Name:"Date Difference in Days",Address:"fable.Dates.dateDayDifference"},dateweekdifference:{Name:"Date Difference in Weeks",Address:"fable.Dates.dateWeekDifference"},datemonthdifference:{Name:"Date Difference in Months",Address:"fable.Dates.dateMonthDifference"},dateyeardifference:{Name:"Date Difference in Years",Address:"fable.Dates.dateYearDifference"},createValueObjectByHashes:{Name:"Create Value Object by Hashes",Address:"fable.Utility.createValueObjectByHashes"}}},{}],144:[function(e,t,r){const n=e("./Fable-Service-ExpressionParser-Base.js");t.exports=class extends n{constructor(e,t,r){super(e,t,r),this.serviceType="ExpressionParser-Linter"}lintTokenizedExpression(e,t){let r="object"==typeof t?t:{ExpressionParserLog:[]};if(r.LinterResults=[],!Array.isArray(e))return r.ExpressionParserLog.push("ERROR: ExpressionParser.lintTokenizedExpression was passed a non-array tokenized expression."),r.LinterResults.push(r.ExpressionParserLog[r.ExpressionParserLog.length-1]),this.log.error(r.ExpressionParserLog[r.ExpressionParserLog.length-1]),e;if(e.length<1)return r.ExpressionParserLog.push("ERROR: ExpressionParser.lintTokenizedExpression was passed an empty tokenized expression."),r.LinterResults.push(r.ExpressionParserLog[r.ExpressionParserLog.length-1]),this.log.error(r.ExpressionParserLog[r.ExpressionParserLog.length-1]),e;let n=0,s=!1;for(let t=0;t<e.length;t++)"("!==e[t]||s||n++,")"!==e[t]||s||n--,"{"===e[t]&&(s=!0),"}"===e[t]&&(s=!1),n<0&&(r.ExpressionParserLog.push(`ERROR: ExpressionParser.lintTokenizedExpression found an unbalanced parenthesis in the tokenized expression at token index ${t}`),r.LinterResults.push(r.ExpressionParserLog[r.ExpressionParserLog.length-1]),this.log.error(r.ExpressionParserLog[r.ExpressionParserLog.length-1]));n>0&&(r.ExpressionParserLog.push("WARNING: ExpressionParser.lintTokenizedExpression found an unbalanced parenthesis in the tokenized expression (ended without closing last set of parenthesis) -- appropriate closing parenthesis will be added."),r.LinterResults.push(r.ExpressionParserLog[r.ExpressionParserLog.length-1]),this.log.warn(r.ExpressionParserLog[r.ExpressionParserLog.length-1])),s=!1;for(let t=0;t<e.length;t++)"{"===e[t]&&(s=!0),"}"===e[t]&&s&&(s=!1),"}"!==e[t]||s||(r.ExpressionParserLog.push(`ERROR: ExpressionParser.lintTokenizedExpression found an unbalanced closing squiggly brace "}" in the tokenized expression at token index ${t}`),r.LinterResults.push(r.ExpressionParserLog[r.ExpressionParserLog.length-1]),this.log.error(r.ExpressionParserLog[r.ExpressionParserLog.length-1])),s&&(r.ExpressionParserLog.push(`WARNING: ExpressionParser.lintTokenizedExpression found an open squiggly brace in the tokenized expression at index ${t}`),r.LinterResults.push(r.ExpressionParserLog[r.ExpressionParserLog.length-1]),this.log.warn(r.ExpressionParserLog[r.ExpressionParserLog.length-1]));let i=0,o=!1;for(let t=0;t<e.length;t++)this.ExpressionParser.tokenMap[e[t]]&&"Assignment"===this.ExpressionParser.tokenMap[e[t]].Type&&(i++,o=t,i>1&&(r.ExpressionParserLog.push(`ERROR: ExpressionParser.lintTokenizedExpression found multiple equality assignments in the tokenized expression; equality assignment #${i} operator '${e[t]}' at token index ${t}.`),r.LinterResults.push(r.ExpressionParserLog[r.ExpressionParserLog.length-1]),this.log.error(r.ExpressionParserLog[r.ExpressionParserLog.length-1])));i<1&&(r.ExpressionParserLog.push("WARNING: ExpressionParser.lintTokenizedExpression found no equality assignment in the tokenized expression. One called Result will be added automatically."),r.LinterResults.push(r.ExpressionParserLog[r.ExpressionParserLog.length-1]),this.log.warn(r.ExpressionParserLog[r.ExpressionParserLog.length-1])),1===i&&3===e.length&&("Token.StateAddress"!==this.getTokenType(e[0])&&"Token.Symbol"!==this.getTokenType(e[2])||(r.ExpressionParserLog.push("WARNING: ExpressionParser.lintTokenizedExpression found a single equality assignment in the tokenized expression with no assignable address on the left side of the assignment."),r.LinterResults.push(r.ExpressionParserLog[r.ExpressionParserLog.length-1]),this.log.warn(r.ExpressionParserLog[r.ExpressionParserLog.length-1])));let a=!1;for(let t=0;t<e.length-1;t++)e[t]in this.ExpressionParser.tokenMap&&"Parenthesis"!=this.ExpressionParser.tokenMap[e[t]].Type&&!a?a=!0:e[t]in this.ExpressionParser.tokenMap&&"Parenthesis"!=this.ExpressionParser.tokenMap[e[t]].Type?"+"!==e[t]&&"-"!==e[t]&&(r.ExpressionParserLog.push(`ERROR: ExpressionParser.lintTokenizedExpression found an ${e[t]} operator adjacent to another operator in the tokenized expression at token index ${t}`),r.LinterResults.push(r.ExpressionParserLog[r.ExpressionParserLog.length-1]),this.log.error(r.ExpressionParserLog[r.ExpressionParserLog.length-1])):a=!1;return r.LinterResults}}},{"./Fable-Service-ExpressionParser-Base.js":141}],145:[function(e,t,r){const{PE:n}=e("big.js"),s=e("./Fable-Service-ExpressionParser-Base.js");t.exports=class extends s{constructor(e,t,r){super(e,t,r),this.serviceType="ExpressionParser-Messaging"}getOperationVirtualSymbolName(e){return e&&"VirtualSymbolName"in e?e.VirtualSymbolName:"Token.VirtualSymbol"===e.Type?e.Token:"NO_VIRTUAL_SYMBOL_NAME_FOUND"}getVirtualTokenValue(e,t){let r=this.getOperationVirtualSymbolName(e);if(("Token.Symbol"==e.Type||"Token.Constant"==e.Type)&&e.Value)return e.Value.toString();let n="VirtualSymbols"in t?t.VirtualSymbols:{};if(this.ExpressionParser.GenericManifest.checkAddressExists(n,r)){let e=this.ExpressionParser.GenericManifest.getValueAtAddress(n,r);return"object"==typeof e?`{${Object.keys(e).length} values}`:Array.isArray(e)?`[${Object.keys(e).length} values]`:e}return"NO_VALUE_FOUND"}getTokenAddressString(e){return pExpression.Token}getTokenSymbolString(e){return e.Token}getOperationSymbolMessage(e){if(!e)return"INVALID_OPERATION";let t=this.getOperationVirtualSymbolName(e),r=this.getTokenSymbolString(e.LeftValue),n=this.getTokenSymbolString(e.Operation),s=this.getTokenSymbolString(e.RightValue),i=t.substring(0,3);return"="===n?`${t} = ${r}`:"VFE"===i?`${t} = ${n}(${r})`:`${t} = ${r} ${n} ${s}`}getOperationValueMessage(e,t){if(!e)return"INVALID_OPERATION";let r=this.getOperationVirtualSymbolName(e),n=this.getVirtualTokenValue(e.LeftValue,t),s=this.getTokenSymbolString(e.Operation),i=this.getVirtualTokenValue(e.RightValue,t),o=r.substring(0,3);return"="===s?`${r} = ${n}`:"VFE"===o?`${r} = ${s}(${n})`:`${r} = ${n} ${s} ${i}`}getOperationOutcomeMessage(e,t){if(!e)return"INVALID_TOKEN";return`${this.getOperationVirtualSymbolName(e)} = ${this.getVirtualTokenValue(e,t)}`}logFunctionOutcome(e){if("object"!=typeof e)return void this.log.error("Solver results object was not an object. Cannot log outcome.");let t="PostfixedAssignmentAddress"in e?e.PostfixedAssignmentAddress:"NO_ASSIGNMENT_ADDRESS_FOUND",r="RawExpression"in e?e.RawExpression:"NO_EXPRESSION_FOUND",n="RawResult"in e?e.RawResult:"NO_RESULT_FOUND";this.log.info(`Solved f(${t}) = {${r}}`);for(let t=0;t<e.PostfixSolveList.length;t++){let r=e.PostfixSolveList[t],n=this.getOperationSymbolMessage(r);this.log.info(`${t} Symbols: ${n}`);let s=this.getOperationValueMessage(r,e);this.log.info(`${t} Values: ${s}`);let i=this.getOperationOutcomeMessage(r,e);this.log.info(`${t} Outcome: ${i}`)}this.log.info(`{${r}} = ${n}`)}logFunctionSolve(e){if("object"==typeof e)if("PostfixSolveList"in e&&Array.isArray(e.PostfixSolveList)){for(let t=0;t<e.PostfixSolveList.length;t++){let r=e.PostfixSolveList[t];console.log(`${t}: ${r.VirtualSymbolName} = (${r.LeftValue.Token}::${r.LeftValue.Value}) ${r.Operation.Token} (${r.RightValue.Token}::${r.RightValue.Value}) `)}this.logFunctionOutcome(e)}else this.log.error("Solver results object did not contain a PostfixSolveList array. Cannot log the solve.");else this.log.error("Solver results object was not an object. Cannot log the solve.")}}},{"./Fable-Service-ExpressionParser-Base.js":141,"big.js":17}],146:[function(e,t,r){const n=e("./Fable-Service-ExpressionParser-Base.js");t.exports=class extends n{constructor(e,t,r){super(e,t,r),this.serviceType="ExpressionParser-Postfix"}getPosfixSolveListOperation(e,t,r,n,s){let i={VirtualSymbolName:e.VirtualSymbolName,Operation:e,LeftValue:t,RightValue:r};Array.isArray(n);return i.LeftValue.VirtualSymbolName?"LeftVirtualSymbolName"in i.Operation?i.LeftValue=this.getTokenContainerObject(i.Operation.LeftVirtualSymbolName,"Token.VirtualSymbol"):i.LeftValue=this.getTokenContainerObject(i.LeftValue.VirtualSymbolName,"Token.VirtualSymbol"):i.LeftValue.VirtualSymbolName=i.VirtualSymbolName,i.RightValue.VirtualSymbolName?"RightVirtualSymbolName"in i.Operation?i.RightValue=this.getTokenContainerObject(i.Operation.RightVirtualSymbolName,"Token.VirtualSymbol"):i.RightValue=this.getTokenContainerObject(i.RightValue.VirtualSymbolName,"Token.VirtualSymbol"):i.RightValue.VirtualSymbolName=i.VirtualSymbolName,i.Operation.Parsed=!0,i}buildPostfixedSolveList(e,t){let r="object"==typeof t?t:{ExpressionParserLog:[]};if(r.PostfixedAssignmentAddress="Result",r.PostfixedAssignmentOperator=this.ExpressionParser.tokenMap["="],r.PostfixTokenObjects=[],r.PostfixSolveList=[],e.length<3)return r.ExpressionParserLog.push("ERROR: ExpressionParser.buildPostfixedSolveList was passed a tokenized expression with less than three tokens."),this.log.error(r.ExpressionParserLog[r.ExpressionParserLog.length-1]),r.PostfixTokenObjects;let n=-1;for(let t=0;t<e.length;t++)if(this.ExpressionParser.tokenMap[e[t]]&&"Assignment"===this.ExpressionParser.tokenMap[e[t]].Type){if(!(n<0))return r.ExpressionParserLog.push(`ERROR: ExpressionParser.buildPostfixedSolveList found multiple assignment operators in the tokenized expression; assignment operator '${e[t]}' #${n} at token index ${t}.`),this.log.error(r.ExpressionParserLog[r.ExpressionParserLog.length-1]),r.PostfixTokenObjects;n=t,r.PostfixedAssignmentOperator=this.ExpressionParser.tokenMap[e[t]]}-1==n?(r.ExpressionParserLog.push("WARNING: ExpressionParser.buildPostfixedSolveList found no equality assignment in the tokenized expression; defaulting to Result"),this.log.warn(r.ExpressionParserLog[r.ExpressionParserLog.length-1])):n>1?(r.ExpressionParserLog.push(`WARNING: ExpressionParser.buildPostfixedSolveList found an equality assignment in the tokenized expression at an unexpected location (token index ${n}); the expression cannot be parsed.`),this.log.warn(r.ExpressionParserLog[r.ExpressionParserLog.length-1])):0===n||(r.PostfixedAssignmentAddress=e[0]);for(let t=n+1;t<e.length;t++)r.PostfixTokenObjects.push(this.getTokenContainerObject(e[t]));let s=0,i=0,o=[];o.push(`SolveSet_${i}_D_${s}`);for(let e=0;e<r.PostfixTokenObjects.length;e++)"("===r.PostfixTokenObjects[e].Token?(r.PostfixTokenObjects[e].Depth=s,r.PostfixTokenObjects[e].VirtualSymbolName=`Pr_${i}_D_${s}`,e>0&&"Token.Symbol"===r.PostfixTokenObjects[e-1].Type&&(r.PostfixTokenObjects[e-1].Type="Token.Function"),r.PostfixTokenObjects[e].SolveLayerStack=o[o.length-1],o.push(r.PostfixTokenObjects[e].VirtualSymbolName),i++,s++):")"===r.PostfixTokenObjects[e].Token?(s--,r.PostfixTokenObjects[e].Depth=s,s<0&&(r.ExpressionParserLog.push(`ERROR: ExpressionParser.buildPostfixedSolveList found a closing parenthesis at token index ${e} with no corresponding opening parenthesis.`),this.log.error(r.ExpressionParserLog[r.ExpressionParserLog.length-1])),r.PostfixTokenObjects[e].VirtualSymbolName=o.pop(),r.PostfixTokenObjects[e].SolveLayerStack=o[o.length-1]):(r.PostfixTokenObjects[e].Depth=s,r.PostfixTokenObjects[e].SolveLayerStack=o[o.length-1]);let a={},l=0;for(let e=0;e<r.PostfixTokenObjects.length;e++)r.PostfixTokenObjects[e].SolveLayerStack in a||(a[r.PostfixTokenObjects[e].SolveLayerStack]=[]),a[r.PostfixTokenObjects[e].SolveLayerStack].push(r.PostfixTokenObjects[e]),r.PostfixTokenObjects[e].Depth>l&&(l=r.PostfixTokenObjects[e].Depth);let u=Object.keys(a),c=0;u.sort(((e,t)=>a[e][0].Depth<a[t][0].Depth?1:a[e][0].Depth>a[t][0].Depth?-1:0)),r.PostfixLayerstackMap={};const h=["+","-"],f=["Token.Operator","Token.Assignment"];for(let e=0;e<u.length;e++){let t=a[u[e]];for(let e=0;e<=this.ExpressionParser.tokenMaxPrecedence;e++)for(let n=0;n<t.length;n++){const s=t[n];if(h.includes(s.Token)&&(0==n||f.includes(t[n-1].Type))&&(s.Descriptor=JSON.parse(JSON.stringify(s.Descriptor)),s.Descriptor.Precedence=1),"Token.Operator"===t[n].Type&&s.Descriptor.Precedence===e){if(1===t.length)return r.ExpressionParserLog.push(`ERROR: ExpressionParser.buildPostfixedSolveList found a single operator in a solve layer expression at token index ${n}`),this.log.error(r.ExpressionParserLog[r.ExpressionParserLog.length-1]),r.PostfixSolveList;if(0!=n||"-"!=s.Token&&"+"!=s.Token){if(0==n&&("+"!=s.Token||"-"!=s.Token))return r.ExpressionParserLog.push(`ERROR: ExpressionParser.buildPostfixedSolveList found an operator at the beginning of a solve layer expression at token index ${n}`),this.log.error(r.ExpressionParserLog[r.ExpressionParserLog.length-1]),r.PostfixSolveList;if(n==t.length-1)return r.ExpressionParserLog.push(`ERROR: ExpressionParser.buildPostfixedSolveList found an operator at the end of a solve layer expression at token index ${n}`),this.log.error(r.ExpressionParserLog[r.ExpressionParserLog.length-1]),r.PostfixSolveList;if(n>0&&"-"==s.Token&&("Token.Operator"===t[n-1].Type||"("===t[n-1].Token))s.VirtualSymbolName=`VNLO_${c}`,c++;else{if(0==n&&"+"==s.Token)continue;if(n>0&&"+"==s.Token&&("Token.Operator"===t[n-1].Type||"("===t[n-1].Token))continue;if(("Token.Operator"===t[n-1].Type||"Token.Operator"===t[n+1].Type)&&"-"!=t[n+1].Token&&"+"!=t[n+1].Token)return r.ExpressionParserLog.push(`ERROR: ExpressionParser.buildPostfixedSolveList found an operator at token index ${n} that is not surrounded by two values.`),this.log.error(r.ExpressionParserLog[r.ExpressionParserLog.length-1]),r.PostfixSolveList;s.VirtualSymbolName=`V_${c}`,r.PostfixLayerstackMap[s.SolveLayerStack]=s.VirtualSymbolName,c++}}else s.VirtualSymbolName=`VNLO_${c}`,r.PostfixLayerstackMap[s.SolveLayerStack]=s.VirtualSymbolName,c++}else if("Token.Function"===t[n].Type&&0===e){let e=t[n];e.VirtualSymbolName=`VFE_${c}`,c++,r.PostfixLayerstackMap[e.SolveLayerStack]=e.VirtualSymbolName}}}let p=[];for(let e=0;e<r.PostfixTokenObjects.length;e++){let t=r.PostfixTokenObjects[e];if("Token.Parenthesis"===t.Type)if(t.ParenthesisStack=t.VirtualSymbolName,0==e){t.IsFunction=!1;let e=r.PostfixLayerstackMap[t.VirtualSymbolName];e||(e=`VP_${c}`,c++),t.VirtualSymbolName=e,p.push(t)}else if("("===t.Token){if("Token.Function"===r.PostfixTokenObjects[e-1].Type){t.IsFunction=!0,t.Function=r.PostfixTokenObjects[e-1];let n=r.PostfixLayerstackMap[t.VirtualSymbolName];n||(n=`VFP_${c}`,c++),t.VirtualSymbolName=n}else{t.IsFunction=!1;let e=r.PostfixLayerstackMap[t.VirtualSymbolName];e||(e=`VP_${c}`,c++),t.VirtualSymbolName=e}p.push(t)}else if(")"===t.Token){let e=p.pop();e.IsFunction?(t.IsFunction=!0,t.VirtualSymbolName=e.Function.VirtualSymbolName):(t.IsFunction=!1,t.VirtualSymbolName=e.VirtualSymbolName)}}for(let e=0;e<u.length;e++){let t=[],r=!1,n=a[u[e]];for(let e=0;e<n.length;e++){let s=n[e];if("Token.Operator"===s.Type&&(r=s),"Token.Function"===s.Type)s.PreviousOperator=r;else if("Token.Parenthesis"===s.Type&&"("===s.Token&&s.IsFunction)t.push(s),s.Function.PreviousOperator&&(s.PreviousOperator=s.Function.PreviousOperator);else if("Token.Parenthesis"===s.Type&&"("===s.Token)s.PreviousOperator=r,t.push(s);else if("Token.Parenthesis"===s.Type&&")"===s.Token){let r=t.pop();if(e<n.length-1)for(let t=e+1;t<n.length;t++)if("Token.Operator"===n[t].Type){r.NextOperator=n[t];break}r.PreviousOperator&&r.NextOperator&&(r.PreviousOperator.Descriptor.Precedence<=r.NextOperator.Descriptor.Precedence?r.NextOperator.LeftVirtualSymbolName=r.PreviousOperator.VirtualSymbolName:r.PreviousOperator.RightVirtualSymbolName=r.NextOperator.VirtualSymbolName)}else"SolveLayerStack"in s||(t.length>0?s.SolveLayerStack=t[t.length-1].SolveLayerStack:s.SolveLayerStack="Expression_Root")}}for(let e=0;e<u.length;e++){let t=!1,r=!1,n=a[u[e]];for(let e=n.length-1;e>=0;e--){let s=n[e];"Token.Operator"===s.Type&&(r?s.Descriptor.Precedence>t?(s.RightVirtualSymbolName=r.VirtualSymbolName,r=s):s.Descriptor.Precedence<t&&(r=s):r=s,t=s.Descriptor.Precedence)}let s=[],i=!1;for(let e=n.length-1;e>=0;e--){let r=n[e];if("Token.Operator"===r.Type){if(i)if(r.Descriptor.Precedence>t){if(s.length>0)for(let e=s.length-1;e>=0;e--)if(s[e].Descriptor.Precedence>=r.Descriptor.Precedence){s[e].LeftVirtualSymbolName=r.VirtualSymbolName,s.slice(e,1);break}i=r}else r.Descriptor.Precedence<t&&(s.push(i),i=r);else i=r;t=r.Descriptor.Precedence}}}for(let e=0;e<u.length;e++){let t=a[u[e]];if(1!==t.length){for(let e=0;e<=this.ExpressionParser.tokenMaxPrecedence;e++)for(let n=0;n<t.length;n++)if("Token.Operator"===t[n].Type&&t[n].Descriptor.Precedence===e){let e=t[n];if(0==n&&"-"==e.Token){let s=this.getTokenContainerObject("*");s.VirtualSymbolName=e.VirtualSymbolName,r.PostfixSolveList.push(this.getPosfixSolveListOperation(s,this.getTokenContainerObject("-1.0"),t[n+1]))}else if(n>0&&"-"==e.Token&&("Token.Operator"===t[n-1].Type||"("===t[n-1].Token)){let s=this.getTokenContainerObject("*");s.VirtualSymbolName=e.VirtualSymbolName,r.PostfixSolveList.push(this.getPosfixSolveListOperation(s,this.getTokenContainerObject("-1.0"),t[n+1]))}else{if(0==n&&"+"==e.Token)continue;if(n>0&&"+"==e.Token&&("Token.Operator"===t[n-1].Type||"("===t[n-1].Token))continue;r.PostfixSolveList.push(this.getPosfixSolveListOperation(e,t[n-1],t[n+1],t,n))}}else if("Token.Function"===t[n].Type&&0===e){let e=t[n];r.PostfixSolveList.push(this.getPosfixSolveListOperation(e,t[n+1],this.getTokenContainerObject("0.0")))}}else{let e=this.getTokenContainerObject("=");if(e.VirtualSymbolName=r.PostfixLayerstackMap[t[0].SolveLayerStack],!e.VirtualSymbolName)for(let n=0;n<r.PostfixTokenObjects.length;n++)if(r.PostfixTokenObjects[n].ParenthesisStack===t[0].SolveLayerStack){e.VirtualSymbolName=r.PostfixTokenObjects[n].VirtualSymbolName;break}r.PostfixSolveList.push(this.getPosfixSolveListOperation(e,t[0],this.getTokenContainerObject("0.0")))}}let d="PostfixedAssignmentOperator"in r?this.getTokenContainerObject(r.PostfixedAssignmentOperator.Token):this.getTokenContainerObject("=");d.VirtualSymbolName=r.PostfixedAssignmentAddress;let g=this.getTokenContainerObject("Result","Token.LastResult"),y=this.getPosfixSolveListOperation(d,g,this.getTokenContainerObject("SolverMarshal","Token.SolverMarshal"));return r.PostfixSolveList.push(y),r.PostfixSolveList}}},{"./Fable-Service-ExpressionParser-Base.js":141}],147:[function(e,t,r){const n=e("./Fable-Service-ExpressionParser-Base.js"),s=e("../Fable-SetConcatArray.js");t.exports=class extends n{constructor(e,t,r){super(e,t,r),this.serviceType="ExpressionParser-Solver"}solvePostfixedExpression(e,t,r,n){let i="object"==typeof r?r:{ExpressionParserLog:[]},o="object"==typeof n?n:this.fable.newManyfest(),a="object"==typeof t?t:{},l="fable"in i;if(l||(i.fable=this.fable),!Array.isArray(e))return i.ExpressionParserLog.push("ERROR: ExpressionParser.solvePostfixedExpression was passed a non-array postfixed expression."),this.log.error(i.ExpressionParserLog[i.ExpressionParserLog.length-1]),!1;if(e.length<1)return i.ExpressionParserLog.push("ERROR: ExpressionParser.solvePostfixedExpression was passed an empty postfixed expression."),this.log.error(i.ExpressionParserLog[i.ExpressionParserLog.length-1]),!1;i.VirtualSymbols={};for(let t=0;t<e.length;t++){if("Token.SolverInstruction"===e[t].Operation.Type)continue;let r={ExpressionStep:e[t],ExpressionStepIndex:t,ResultsObject:i,Manifest:o};if("Token.LastResult"===r.ExpressionStep.LeftValue.Type&&(r.ExpressionStep.LeftValue.Value=i.LastResult),"Token.LastResult"===r.ExpressionStep.RightValue.Type&&(r.ExpressionStep.RightValue.Value=i.LastResult),"Token.VirtualSymbol"===r.ExpressionStep.LeftValue.Type&&(r.ExpressionStep.LeftValue.Value=o.getValueAtAddress(i.VirtualSymbols,r.ExpressionStep.LeftValue.Token)),"Token.VirtualSymbol"===r.ExpressionStep.RightValue.Type&&(r.ExpressionStep.RightValue.Value=o.getValueAtAddress(i.VirtualSymbols,r.ExpressionStep.RightValue.Token)),"Token.Parenthesis"===r.ExpressionStep.LeftValue.Type&&(r.ExpressionStep.LeftValue.Value=o.getValueAtAddress(i.VirtualSymbols,r.ExpressionStep.LeftValue.VirtualSymbolName)),"Token.Parenthesis"===r.ExpressionStep.RightValue.Type&&(r.ExpressionStep.RightValue.Value=o.getValueAtAddress(i.VirtualSymbols,r.ExpressionStep.RightValue.VirtualSymbolName)),"Token.Constant"!==r.ExpressionStep.LeftValue.Type||"Value"in r.ExpressionStep.LeftValue||(r.ExpressionStep.LeftValue.Value=r.ExpressionStep.LeftValue.Token),"Token.Constant"!==r.ExpressionStep.RightValue.Type||"Value"in r.ExpressionStep.RightValue||(r.ExpressionStep.RightValue.Value=r.ExpressionStep.RightValue.Token),r.ExpressionStep.Operation.Type="Operator"){let e,n=!1;if(r.ExpressionStep.Operation.Token in this.ExpressionParser.tokenMap?e=`ResultsObject.${r.ExpressionStep.Operation.Descriptor.Function}`:r.ExpressionStep.Operation.Token.toLowerCase()in this.ExpressionParser.functionMap&&(n=!0,e=`ResultsObject.${this.ExpressionParser.functionMap[r.ExpressionStep.Operation.Token.toLowerCase()].Address}`),n)try{let t;const n=o.getValueAtAddress(r,e);if("function"==typeof n){let i=null;e.includes(".")&&(i=o.getValueAtAddress(r,e.split(".").slice(0,-1).join(".")));let a=r.ExpressionStep.LeftValue.Value;a=a instanceof s?a.values:[a],t=n.apply(i,a)}o.setValueAtAddress(i.VirtualSymbols,r.ExpressionStep.VirtualSymbolName,t),i.LastResult=o.getValueAtAddress(i.VirtualSymbols,r.ExpressionStep.VirtualSymbolName)}catch(e){return i.ExpressionParserLog.push(`ERROR: ExpressionParser.solvePostfixedExpression failed to solve step ${t} with function ${r.ExpressionStep.Operation.Token}: ${e}`),this.log.error(i.ExpressionParserLog[i.ExpressionParserLog.length-1]),!1}else try{o.setValueAtAddress(i.VirtualSymbols,r.ExpressionStep.VirtualSymbolName,o.getValueAtAddress(r,`${e}(ExpressionStep.LeftValue.Value,ExpressionStep.RightValue.Value)`)),i.LastResult=o.getValueAtAddress(i.VirtualSymbols,r.ExpressionStep.VirtualSymbolName)}catch(e){return i.ExpressionParserLog.push(`ERROR: ExpressionParser.solvePostfixedExpression failed to solve step ${t} with function ${r.ExpressionStep.Operation.Token}: ${e}`),this.log.error(i.ExpressionParserLog[i.ExpressionParserLog.length-1]),!1}i.SolverFinalVirtualSymbol=r.ExpressionStep.VirtualSymbolName}}let u=o.getValueAtAddress(i,`VirtualSymbols.${i.SolverFinalVirtualSymbol}`);for(let t=0;t<e.length;t++)"Token.SolverMarshal"===e[t].RightValue.Type&&(o.setValueAtAddress(i.VirtualSymbols,e[t].VirtualSymbolName,u),e[t].Operation.Descriptor.OnlyEmpty?this.fable.Utility.addressIsNullOrEmpty(a,e[t].VirtualSymbolName)&&o.setValueByHash(a,e[t].VirtualSymbolName,u):o.setValueByHash(a,e[t].VirtualSymbolName,u));return i.RawResult=u,l||delete i.fable,"object"==typeof u?u:void 0!==u?u.toString():u}}},{"../Fable-SetConcatArray.js":164,"./Fable-Service-ExpressionParser-Base.js":141}],148:[function(e,t,r){t.exports={"=":{Name:"Assign Value",Token:"=",Function:"fable.Math.assignValue",Precedence:0,Type:"Assignment"},"?=":{Name:"Null or Empty Coalescing Assign Value",Token:"?=",Function:"fable.Math.assignValue",OnlyEmpty:!0,Precedence:0,Type:"Assignment"},"(":{Name:"Left Parenthesis",Token:"(",Precedence:0,Type:"Parenthesis"},")":{Name:"Right Parenthesis",Token:")",Precedence:0,Type:"Parenthesis"},",":{Name:"Set Concatenate",Token:",",Function:"fable.Math.setConcatenate",Precedence:4,Type:"Operator"},"*":{Name:"Multiply",Token:"*",Function:"fable.Math.multiplyPrecise",Precedence:3,Type:"Operator"},"/":{Name:"Divide",Token:"/",Function:"fable.Math.dividePrecise",Precedence:3,Type:"Operator"},"^":{Name:"Exponent",Token:"^",Function:"fable.Math.powerPrecise",Precedence:2,Type:"Operator"},"%":{Name:"Modulus",Token:"%",Function:"fable.Math.modPrecise",Precedence:3,Type:"Operator"},"+":{Name:"Add",Token:"+",Function:"fable.Math.addPrecise",Precedence:4,Type:"Operator"},"-":{Name:"Subtract",Token:"-",Function:"fable.Math.subtractPrecise",Precedence:4,Type:"Operator"}}},{}],149:[function(e,t,r){const n=e("./Fable-Service-ExpressionParser-Base.js");t.exports=class extends n{constructor(e,t,r){super(e,t,r),this.serviceType="ExpressionParser-ValueMarshal"}substituteValuesInTokenizedObjects(e,t,r,n){let s="object"==typeof r?r:{ExpressionParserLog:[]};if(!Array.isArray(e))return s.ExpressionParserLog.push("ERROR: ExpressionParser.substituteValuesInTokenizedObjects was passed a non-array tokenized object list."),this.log.error(s.ExpressionParserLog[s.ExpressionParserLog.length-1]),e;if("object"!=typeof t)return s.ExpressionParserLog.push("ERROR: ExpressionParser.substituteValuesInTokenizedObjects either was passed no data source, or was passed a non-object data source."),this.log.error(s.ExpressionParserLog[s.ExpressionParserLog.length-1]),e;let i=t,o="object"==typeof n?n:this.fable.newManyfest(n);for(let t=0;t<e.length;t++){if("object"!=typeof e[t]){s.ExpressionParserLog.push(`WARNING: ExpressionParser.substituteValuesInTokenizedObjects found a non-object tokenized object at index ${t}`),this.log.warn(s.ExpressionParserLog[s.ExpressionParserLog.length-1]);continue}let r=e[t];if("Token.Symbol"===e[t].Type&&!r.Resolved){let e=o.getValueByHash(i,r.Token);if(!e){r.Value=e,r.Resolve=!0,s.ExpressionParserLog.push(`WARNING: ExpressionParser.substituteValuesInTokenizedObjects found no value for the symbol hash or address ${r.Token} at index ${t}`),this.log.warn(s.ExpressionParserLog[s.ExpressionParserLog.length-1]);continue}s.ExpressionParserLog.push(`INFO: ExpressionParser.substituteValuesInTokenizedObjects found a value [${e}] for the state address ${r.Token} at index ${t}`),this.LogNoisiness>1&&this.log.info(s.ExpressionParserLog[s.ExpressionParserLog.length-1]);try{let t=new this.fable.Utility.bigNumber(e);r.Resolved=!0,r.Value=t.toString()}catch(n){Array.isArray(e)||"object"==typeof e?(r.Resolved=!0,r.Value=e):(r.Resolved=!0,r.Value=e,s.ExpressionParserLog.push(`INFO: ExpressionParser.substituteValuesInTokenizedObjects found a non-numeric value for the state address ${r.Token} at index ${t}; using raw value.`),this.log.warn(s.ExpressionParserLog[s.ExpressionParserLog.length-1]))}}if("Token.StateAddress"===e[t].Type&&!r.Resolved){let e=o.getValueAtAddress(i,r.Token);if(!e){s.ExpressionParserLog.push(`WARNING: ExpressionParser.substituteValuesInTokenizedObjects found no value for the state address ${r.Token} at index ${t}`),this.log.warn(s.ExpressionParserLog[s.ExpressionParserLog.length-1]);continue}this.log.info(s.ExpressionParserLog[s.ExpressionParserLog.length-1]);try{let t=new this.fable.Utility.bigNumber(e);r.Resolved=!0,r.Value=t.toString()}catch(e){s.ExpressionParserLog.push(`ERROR: ExpressionParser.substituteValuesInTokenizedObjects found a non-numeric value for the state address ${r.Token} at index ${t}`),this.log.error(s.ExpressionParserLog[s.ExpressionParserLog.length-1]),r.Resolved=!1}}if("Token.String"!==e[t].Type||r.Resolved||(s.ExpressionParserLog.push(`INFO: ExpressionParser.substituteValuesInTokenizedObjects found a value [${r.Token}] for the string ${r.Token} at index ${t}`),this.LogNoisiness>1&&this.log.info(s.ExpressionParserLog[s.ExpressionParserLog.length-1]),r.Resolved=!0,r.Value=r.Token.substring(1,r.Token.length-1)),"Token.Constant"===e[t].Type&&!r.Resolved){s.ExpressionParserLog.push(`INFO: ExpressionParser.substituteValuesInTokenizedObjects found a value [${r.Token}] for the constant ${r.Token} at index ${t}`),this.LogNoisiness>1&&this.log.info(s.ExpressionParserLog[s.ExpressionParserLog.length-1]);try{let e=new this.fable.Utility.bigNumber(r.Token);r.Resolved=!0,r.Value=e.toString()}catch(e){s.ExpressionParserLog.push(`ERROR: ExpressionParser.substituteValuesInTokenizedObjects found a non-numeric value for the state address ${r.Token} at index ${t}`),this.log.error(s.ExpressionParserLog[s.ExpressionParserLog.length-1]),r.Resolved=!1}}}return e}}},{"./Fable-Service-ExpressionParser-Base.js":141}],150:[function(e,t,r){(function(r){(function(){const n=e("fable-serviceproviderbase"),s=e("fs"),i=e("path"),o=e("readline");t.exports=class extends n{constructor(e,t,n){super(e,t,n),this.serviceType="FilePersistence","Mode"in this.options||(this.options.Mode=parseInt("0777",8)&~r.umask()),this.libFS=s,this.libPath=i,this.libReadline=o}joinPath(){return i.resolve(...arguments)}resolvePath(){return i.resolve(...arguments)}existsSync(e){return s.existsSync(e)}exists(e,t){return t(null,this.existsSync(e))}deleteFileSync(e){return s.unlinkSync(e)}deleteFolderSync(e){return s.rmdirSync(e)}readFileSync(e,t){let r=void 0===t?"utf8":t;return s.readFileSync(e,r)}readFile(e,t,r){let n=void 0===t?"utf8":t;return s.readFile(e,n,r)}readFileCSV(e,t,r,n,s){let i=this.fable.instantiateServiceProviderWithoutRegistration("CSVParser",t),o="function"==typeof r?r:e=>{this.fable.log.trace(`CSV Reader received line ${e}`)},a="function"==typeof n?n:()=>{this.fable.log.info(`CSV Read of ${e} complete.`)},l="function"==typeof s?s:t=>{this.fable.log.error(`CSV Read of ${e} Error: ${t}`,t)};return this.lineReaderFactory(e,(e=>{let t=i.parseCSVLine(e);t&&o(t,e)}),a,l)}appendFileSync(e,t,r){let n=void 0===r?"utf8":r;return s.appendFileSync(e,t,n)}writeFileSync(e,t,r){let n=void 0===r?"utf8":r;return s.writeFileSync(e,t,n)}writeFileSyncFromObject(e,t){return this.writeFileSync(e,JSON.stringify(t,null,4))}writeFileSyncFromArray(e,t){if(!Array.isArray(t))return this.log.error(`File Persistence Service attempted to write ${e} from array but the expected array was not an array (it was a ${typeof t}).`),Error("Attempted to write ${pFileName} from array but the expected array was not an array (it was a ${typeof(pFileArray)}).");for(let r=0;r<t.length;r++)return this.appendFileSync(e,`${t[r]}\n`)}writeFile(e,t,r,n){let i=void 0===r?"utf8":r;return s.writeFile(e,t,i,n)}lineReaderFactory(e,t,r,n){let i={};return"string"==typeof e&&(i.filePath=e,i.fileStream=s.createReadStream(i.filePath),i.reader=o.createInterface({input:i.fileStream,crlfDelay:1/0}),"function"==typeof n&&i.reader.on("error",n),i.reader.on("line","function"==typeof t?t:()=>{}),"function"==typeof r&&i.reader.on("close",r),i)}makeFolderRecursive(e,t){let r=e;if("string"==typeof e)r={Path:e};else if("object"!=typeof e)return t(new Error("Parameters object or string not properly passed to recursive folder create.")),!1;return"string"!=typeof r.Path?(t(new Error("Parameters object needs a path to run the folder create operation.")),!1):("Mode"in r||(r.Mode=this.options.Mode),void 0===r.CurrentPathIndex?(r.ActualPath=i.normalize(r.Path),r.ActualPathParts=r.ActualPath.split(i.sep),r.CurrentPathIndex=0,r.CurrentPath=""):(r.CurrentPath==i.sep?r.CurrentPath=r.CurrentPath+r.ActualPathParts[r.CurrentPathIndex]:r.CurrentPath=r.CurrentPath+i.sep+r.ActualPathParts[r.CurrentPathIndex],r.CurrentPathIndex++),r.CurrentPathIndex>=r.ActualPathParts.length?t(null):void s.open(r.CurrentPath+i.sep+r.ActualPathParts[r.CurrentPathIndex],"r",((e,n)=>{if(n&&s.closeSync(n),!e||"ENOENT"!=e.code)return this.makeFolderRecursive(r,t);s.mkdir(r.CurrentPath+i.sep+r.ActualPathParts[r.CurrentPathIndex],r.Mode,(e=>e?"EEXIST"==e.code?this.makeFolderRecursive(r,t):(console.log(e.code),t(e)):this.makeFolderRecursive(r,t)))})))}}}).call(this)}).call(this,e("_process"))},{_process:91,"fable-serviceproviderbase":53,fs:19,path:87,readline:19}],151:[function(e,t,r){const n=e("fable-serviceproviderbase");t.exports=class extends n{constructor(e,t,r){super(e,t,r)}checkIf(e,t,r,n,s){let i=this.fable.Math.parsePrecise(e,null),o=this.fable.Math.parsePrecise(r,null),a=!1;if(null===i||null===o)switch(void 0===s&&(s=""),t){case"<":case"LT":a=e<r;break;case"<=":case"LTE":a=e<=r;break;case">":case"GT":a=e>r;break;case">=":case"GTE":a=e>=r;break;case"==":a=e==r;break;case"===":a=e===r;break;default:this.fable.log.warn(`[FableServiceLogic.checkIf] Invalid comparison operator: ${t}`),a=e==r}else switch(void 0===s&&(s="0"),t){case"<":case"LT":a=this.fable.Math.ltPrecise(i,o);break;case"<=":case"LTE":a=this.fable.Math.ltePrecise(i,o);break;case">":case"GT":a=this.fable.Math.gtPrecise(i,o);break;case">=":case"GTE":a=this.fable.Math.gtePrecise(i,o);break;case"==":a=0==this.fable.Math.comparePreciseWithin(i,o,"0.000001");break;case"===":a=0==this.fable.Math.comparePrecise(i,o);break;default:this.fable.log.warn(`[FableServiceLogic.checkIf] Invalid comparison operator: ${t}`),a=e==r?n:s}return a?n:s}when(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return e?Array.isArray(e)&&e.length<1||"object"==typeof e&&Object.keys(e).length<1?r:t:r}}},{"fable-serviceproviderbase":53}],152:[function(e,t,r){const n=e("fable-serviceproviderbase"),s=e("./Fable-SetConcatArray.js");t.exports=class extends n{constructor(e,t,r){super(e,t,r),this.serviceType="Math",this.pi="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679",this.euler="2.7182818284590452353602874713526624977572470936999595749669676277240766303535475945713821785251664",this.bigNumber=this.fable.Utility.bigNumber,this.ln2Cache=new Map}get roundDown(){return this.bigNumber.roundDown}get roundHalfUp(){return this.bigNumber.roundHalfUp}get roundHalfEven(){return this.bigNumber.roundHalfEven}get roundUp(){return this.bigNumber.roundUp}parsePrecise(e,t){let r;try{r=new this.bigNumber(e)}catch(e){r=void 0===t?"0.0":t}return r?r.toString():r}assignValue(e){return e}percentagePrecise(e,t){let r=isNaN(e)?0:e,n=isNaN(t)?0:t;if(0==n)return"0";let s=new this.bigNumber(r).div(n);return s=s.times(100),s.toString()}setConcatenate(e,t){return new s(e,t)}roundPrecise(e,t,r){let n=isNaN(e)?0:e,s=isNaN(t)?0:parseInt(t,10),i=void 0===r?this.roundHalfUp:parseInt(r,10);return new this.bigNumber(n).round(s,i).toString()}toFixedPrecise(e,t,r){let n=isNaN(e)?0:e,s=isNaN(t)?0:t,i=void 0===r?this.roundHalfUp:r;return new this.bigNumber(n).toFixed(s,i).toString()}addPrecise(e,t){let r=isNaN(e)?0:e,n=isNaN(t)?0:t;return new this.bigNumber(r).plus(n).toString()}subtractPrecise(e,t){let r=isNaN(e)?0:e,n=isNaN(t)?0:t;return new this.bigNumber(r).minus(n).toString()}powerPrecise(e,t){let r,n=isNaN(e)?0:e,s=isNaN(t)?0:parseInt(t);if(s==Number(t)){r=new this.bigNumber(n).pow(s)}else r=Math.pow(n,Number(t));return r.toString()}multiplyPrecise(e,t){let r=isNaN(e)?0:e,n=isNaN(t)?0:t;return new this.bigNumber(r).times(n).toString()}dividePrecise(e,t){let r=isNaN(e)?0:e,n=isNaN(t)?0:t;return new this.bigNumber(r).div(n).toString()}modPrecise(e,t){let r=isNaN(e)?0:e,n=isNaN(t)?0:t;return new this.bigNumber(r).mod(n).toString()}sqrtPrecise(e){let t=isNaN(e)?0:e;return new this.bigNumber(t).sqrt().toString()}absPrecise(e){let t=isNaN(e)?0:e;return new this.bigNumber(t).abs().toString()}floorPrecise(e){let t=isNaN(e)?0:e;return Math.floor(t).toString()}ceilPrecise(e){let t=isNaN(e)?0:e;return Math.ceil(t).toString()}comparePrecise(e,t){let r=isNaN(e)?0:e,n=isNaN(t)?0:t;return new this.bigNumber(r).cmp(n)}comparePreciseWithin(e,t,r){let n=isNaN(e)?0:e,s=isNaN(t)?0:t,i=new this.bigNumber(n);return i.minus(s).abs().lte(r)?0:i.lt(s)?-1:1}gtPrecise(e,t){let r=isNaN(e)?0:e,n=isNaN(t)?0:t;return new this.bigNumber(r).gt(n)}gtePrecise(e,t){let r=isNaN(e)?0:e,n=isNaN(t)?0:t;return new this.bigNumber(r).gte(n)}ltPrecise(e,t){let r=isNaN(e)?0:e,n=isNaN(t)?0:t;return new this.bigNumber(r).lt(n)}ltePrecise(e,t){let r=isNaN(e)?0:e,n=isNaN(t)?0:t;return new this.bigNumber(r).lte(n)}radPrecise(e){let t=isNaN(e)?0:e;return new this.bigNumber(t).times(Math.PI).div(180).toString()}piPrecise(e){return void 0===e?this.pi:this.roundPrecise(this.pi,e)}eulerPrecise(e){return void 0===e?this.euler:this.roundPrecise(this.euler,e)}sin(e){let t=isNaN(e)?0:e;return Math.sin(t)}cos(e){let t=isNaN(e)?0:e;return Math.cos(t)}tan(e){let t=isNaN(e)?0:e;return Math.tan(t)}countSetElements(e){return Array.isArray(e)?e.length:"object"==typeof e?Object.keys(e).length:e?1:0}sortSetPrecise(e){let t=[];if(Array.isArray(e))for(let r=0;r<e.length;r++)t.push(this.parsePrecise(e[r],NaN));else if("object"==typeof e){let r=Object.keys(e);for(let n=0;n<r.length;n++)t.push(this.parsePrecise(e[r[n]],NaN))}return t.sort(((e,t)=>this.comparePrecise(e,t))),t}bucketSetPrecise(e,t){let r={},n=this.parsePrecise(t,NaN);if(Array.isArray(e))for(let t=0;t<e.length;t++){let s=this.parsePrecise(e[t],NaN).toString();isNaN(n)||(s=this.dividePrecise(e[t],n)),s in r||(r[s]=0),r[s]=r[s]+1}else if("object"==typeof e){let t=Object.keys(e);for(let s=0;s<t.length;s++){let i=this.parsePrecise(e[t[s]],NaN).toString();isNaN(n)||(i=this.dividePrecise(e[s],n)),i in r||(r[i]=0),r[i]=r[i]+1}}return r}histogramPrecise(e){return this.bucketSetPrecise(e)}sortHistogramPrecise(e){let t={},r=Object.keys(e);r.sort(((t,r)=>e[t]-e[r]));for(let n=0;n<r.length;n++)t[r[n]]=e[r[n]];return t}cleanValueArray(e,t){let r=void 0!==t&&t;if(!Array.isArray(e))return[];let n=[];for(let t=0;t<e.length;t++){let s=this.parsePrecise(e[t],NaN);isNaN(s)||r&&"0"==s||n.push(s)}return n}arbitraryNaturalLogOfTwo(e){const t=0|e,r=new this.bigNumber(t);if(this.ln2Cache.has(t))return this.ln2Cache.get(t);const n=new this.bigNumber(2),s=n.minus(1).div(n.plus(1)),i=s.mul(s);let o=new this.bigNumber(0),a=s,l=1;const u=this.powerPrecise(10,-r.add(8));for(let e=0;e<2e5&&(o=o.plus(a.div(l)),a=a.mul(i),l+=2,!a.abs().div(l).lt(u));e++);const c=o.mul(2);return this.ln2Cache.set(t,c),c}arbitraryNaturalLog(e,t){let r=new this.bigNumber(e),n=new this.bigNumber(t);if(r.lte(0))throw new Error("ln undefined for non-positive values.");if(r.eq(1))return new this.bigNumber(0);const s=new this.bigNumber(2);let i=0,o=r;const a=new this.bigNumber("1.5"),l=new this.bigNumber("0.75");for(;o.gt(a);)o=o.div(s),i+=1;for(;o.lt(l);)o=o.mul(s),i-=1;const u=o.minus(1).div(o.plus(1)),c=u.mul(u);let h=new this.bigNumber(0),f=u,p=1;const d=this.powerPrecise(10,-n.add(6));for(let e=0;e<2e5&&(h=h.plus(f.div(p)),f=f.mul(c),p+=2,!f.abs().div(p).lt(d));e++);const g=h.mul(2),y=this.arbitraryNaturalLogOfTwo(n);return g.plus(y.mul(i))}logPrecise(e,t,r){let n=void 0===t?this.bigNumber(10):this.bigNumber(t);const s=void 0===r?9:r,i=s+8,o=this.bigNumber.DP,a=this.bigNumber.RM;this.bigNumber.DP=i,this.bigNumber.RM=1;const l=this.bigNumber(e),u=this.bigNumber(n);if(l.lte(0))return this.log.error(`Fable logPrecise Error: Number must be greater than 0; number was ${e}.`),NaN;if(u.lte(0)||u.eq(1))return this.log.error(`Fable logPrecise Error: Base must be greater than 0 and not equal to 1 -- base ${Base} was passed in.`),NaN;const c=this.arbitraryNaturalLog(l,s),h=this.arbitraryNaturalLog(u,s);let f=c.div(h).toFixed(s);return this.bigNumber.DP=o,this.bigNumber.RM=a,f}expPrecise(e,t){let r=isNaN(e)?this.bigNumber(1):this.bigNumber(e);const n=void 0===t?9:parseInt(t,10),s=this.bigNumber.DP;this.bigNumber.DP=n+10;const i=new this.bigNumber("0.693147180559945309417232121458176568"),o=new this.bigNumber("709.782712893384"),a=new this.bigNumber("-744.4400719213812");if(r.gt(o))return this.bigNumber.DP=s,NaN;if(r.lt(a))return this.bigNumber.DP=s,new this.bigNumber(0);let l;try{l=r.div(i).round(0,0)}catch(t){return this.log.error(`Fable expPrecise Error: Rounding error during range reduction for value of ${e}. Error: ${t}`),this.bigNumber.DP=s,NaN}const u=r.minus(l.times(i)),c=new this.bigNumber(10).pow(-(n+2));let h=new this.bigNumber(1),f=new this.bigNumber(1),p=1;for(;h=h.times(u).div(p),!h.abs().lt(c);)if(f=f.plus(h),p++,p>2e3){this.log.warn(`Fable expPrecise warning: Taylor series failed to converge after 2000 iterations for value of ${e}.`);break}const d=new this.bigNumber(2),g=l.abs().toNumber();let y=0===g?new this.bigNumber(1):d.pow(g);const m=l.gte(0)?f.times(y):f.div(y);return this.bigNumber.DP=s,m.round(n).toString()}cleanValueObject(e){if("object"!=typeof e)return{};let t={},r=Object.keys(e);for(let n=0;n<r.length;n++){let s=this.parsePrecise(e[r[n]],NaN);isNaN(s)||(t[r[n]]=s)}return t}histogramDistributionByExactValue(e,t,r){if(!Array.isArray(e))return e;if(!t)return{};let n={};for(let s=0;s<e.length;s++){let i=this.fable.Utility.getValueByHash(e[s],t,r).toString();i in n||(n[i]=0),n[i]=n[i]+1}return n}histogramDistributionByExactValueFromInternalState(e,t){if(!e)return{};let r=this.fable.Utility.getInternalValueByHash(e);return this.histogramDistributionByExactValue(r,t)}histogramAggregationByExactValue(e,t,r,n){if(!Array.isArray(e))return e;if(!t||!r)return{};let s={};for(let i=0;i<e.length;i++){let o=this.fable.Utility.getValueByHash(e[i],t,n).toString(),a=this.parsePrecise(this.fable.Utility.getValueByHash(e[i],r,n),NaN);o in s||(s[o]=0),isNaN(a)||(s[o]=this.addPrecise(s[o],a))}return s}histogramAggregationByExactValueFromInternalState(e,t,r){if(!e)return{};let n=this.fable.Utility.getInternalValueByHash(e);return this.histogramAggregationByExactValue(n,t,r)}entryInSet(e,t,r){const n="number"==typeof r?r:parseInt(r);if(!Array.isArray(e))return e;if(!t)return!1;if(isNaN(n)||n>=e.length)return!1;let s=e.toSorted(((e,r)=>this.comparePrecise(e[t],r[t])));return s[n<0?s.length+n:n]}smallestInSet(e,t){return this.entryInSet(e,t,0)}largestInSet(e,t){return this.entryInSet(e,t,-1)}cumulativeSummation(e,t,r,n){if(!Array.isArray(e))return e;if(!t||!r)return e;let s="0.0";for(let i=0;i<e.length;i++){let o=this.parsePrecise(this.fable.Utility.getValueByHash(e[i],t,n));isNaN(o)?this.fable.Utility.setValueByHash(e[i],r,s,n):(s=this.addPrecise(o,s),this.fable.Utility.setValueByHash(e[i],r,s,n))}return e}maxPrecise(e){let t=NaN;if(Array.isArray(e))for(let r=0;r<e.length;r++)if(t){let n=this.parsePrecise(e[r],NaN);this.gtPrecise(n,t)&&(t=n)}else t=this.parsePrecise(e[r],NaN);else if("object"==typeof e){let r=Object.keys(e);for(let n=0;n<r.length;n++)if(t){let s=this.parsePrecise(e[r[n]],NaN);this.gtPrecise(s,t)&&(t=s)}else t=this.parsePrecise(e[r[n]],NaN)}return t}minPrecise(e){let t=NaN;if(Array.isArray(e))for(let r=0;r<e.length;r++)if(t){let n=this.parsePrecise(e[r],NaN);!isNaN(n)&&this.ltPrecise(n,t)&&(t=n)}else t=this.parsePrecise(e[r],NaN);else if("object"==typeof e){let r=Object.keys(e);for(let n=0;n<r.length;n++)if(t){let s=this.parsePrecise(e[r[n]],NaN);!isNaN(s)&&this.ltPrecise(s,t)&&(t=s)}else t=this.parsePrecise(e[r[n]],NaN)}return t}sumPrecise(e){let t="0.0";if(Array.isArray(e))for(let r=0;r<e.length;r++){let n=this.parsePrecise(e[r],NaN);isNaN(n)||(t=this.addPrecise(t,n))}else if("object"==typeof e){let r=Object.keys(e);for(let n=0;n<r.length;n++){let s=this.parsePrecise(e[r[n]],NaN);isNaN(s)||(t=this.addPrecise(t,s))}}return t}meanPrecise(e){let t=this.sumPrecise(e),r=this.countSetElements(e);return 0==r?"0.0":this.dividePrecise(t,r)}averagePrecise(e){return this.meanPrecise(e)}medianPrecise(e){let t=this.countSetElements(e);if(0==t)return"0.0";let r=this.sortSetPrecise(e),n=Math.floor(t/2);if(t%2==1)return r[n];{let e=r[n-1],t=r[n];return this.dividePrecise(this.addPrecise(e,t),2)}}modePrecise(e){let t=this.bucketSetPrecise(e),r=0,n=Object.keys(t),s=[];for(let e=0;e<n.length;e++)t[n[e]]>r?(r=t[n[e]],s=[n[e]]):t[n[e]]==r&&s.push(n[e]);return s}}},{"./Fable-SetConcatArray.js":164,"fable-serviceproviderbase":53}],153:[function(e,t,r){const n=e("fable-serviceproviderbase"),s=e("./Fable-Service-MetaTemplate/MetaTemplate-WordTree.js"),i=e("./Fable-Service-MetaTemplate/MetaTemplate-StringParser.js");t.exports=class extends n{constructor(e,t,r){super(e,t,r),this.serviceType="MetaTemplate",this.WordTree=new s,this.StringParser=new i(this.fable),this.ParseTree=this.WordTree.ParseTree}addPattern(e,t,r,n){return this.WordTree.addPattern(e,t,r,n)}addPatternBoth(e,t,r,n,s){return this.WordTree.addPatternBoth(e,t,r,n,s)}parseString(e,t,r,n,s,i){return this.LogNoisiness>4&&this.fable.log.trace(`Metatemplate parsing template string [${e}] where the callback is a ${typeof r}`,{TemplateData:t}),this.StringParser.parseString(e,this.ParseTree,t,r,n,s,i)}}},{"./Fable-Service-MetaTemplate/MetaTemplate-StringParser.js":154,"./Fable-Service-MetaTemplate/MetaTemplate-WordTree.js":155,"fable-serviceproviderbase":53}],154:[function(e,t,r){t.exports=class{constructor(e){this.fable=e}newParserState(e){return{ParseTree:e,Asynchronous:!1,Output:"",OutputBuffer:"",Pattern:{},PatternMatch:!1,PatternMatchEnd:!1}}appendOutputBuffer(e,t){t.OutputBuffer+=e}flushOutputBuffer(e){e.Output+=e.OutputBuffer,e.OutputBuffer=""}resetOutputBuffer(e){return this.flushOutputBuffer(e),e.Pattern=!1,e.PatternStartNode=!1,e.StartPatternMatchComplete=!1,e.EndPatternMatchBegan=!1,e.PatternMatch=!1,!0}parseCharacter(e,t,r,n,s,i){if(t.PatternMatch)if(!t.StartPatternMatchComplete&&e in t.Pattern)t.Pattern=t.Pattern[e],this.appendOutputBuffer(e,t);else if(t.EndPatternMatchBegan){if(e in t.Pattern.PatternEnd){t.Pattern=t.Pattern.PatternEnd[e],this.appendOutputBuffer(e,t);let o="ParserContext"in t.Pattern&&t.Pattern.ParserContext;return t.OutputBuffer=o?t.Pattern.Parse.call(o,t.OutputBuffer.substr(t.Pattern.PatternStartString.length,t.OutputBuffer.length-(t.Pattern.PatternStartString.length+t.Pattern.PatternEndString.length)),r,n,s,i):t.Pattern.Parse(t.OutputBuffer.substr(t.Pattern.PatternStartString.length,t.OutputBuffer.length-(t.Pattern.PatternStartString.length+t.Pattern.PatternEndString.length)),r,n,s,i),this.resetOutputBuffer(t)}e in t.PatternStartNode.PatternEnd?(t.Pattern=t.PatternStartNode.PatternEnd[e],this.appendOutputBuffer(e,t)):(t.EndPatternMatchBegan=!1,this.appendOutputBuffer(e,t))}else if("PatternEnd"in t.Pattern){if(t.StartPatternMatchComplete||(t.StartPatternMatchComplete=!0,t.PatternStartNode=t.Pattern),this.appendOutputBuffer(e,t),e in t.Pattern.PatternEnd&&(t.EndPatternMatchBegan=!0,t.Pattern=t.Pattern.PatternEnd[e],"Parse"in t.Pattern)){let e="ParserContext"in t.Pattern&&t.Pattern.ParserContext;return t.OutputBuffer=e?t.Pattern.Parse.call(e,t.OutputBuffer.substr(t.Pattern.PatternStartString.length,t.OutputBuffer.length-(t.Pattern.PatternStartString.length+t.Pattern.PatternEndString.length)),r,n,s,i):t.Pattern.Parse(t.OutputBuffer.substr(t.Pattern.PatternStartString.length,t.OutputBuffer.length-(t.Pattern.PatternStartString.length+t.Pattern.PatternEndString.length)),r,n,s,i),this.resetOutputBuffer(t)}}else this.resetOutputBuffer(t);if(!t.PatternMatch){if(e in t.ParseTree)return this.resetOutputBuffer(t),this.appendOutputBuffer(e,t),t.Pattern=t.ParseTree[e],t.PatternMatch=!0,!0;this.appendOutputBuffer(e,t)}return!1}executePatternAsync(e,t,r,n,s,i){if(e.Pattern.isAsync){let o="ParserContext"in e.Pattern&&e.Pattern.ParserContext;return o?e.Pattern.ParseAsync.call(o,e.OutputBuffer.substr(e.Pattern.PatternStartString.length,e.OutputBuffer.length-(e.Pattern.PatternStartString.length+e.Pattern.PatternEndString.length)),t,((t,n)=>(t&&this.fable.log.info(`Precedent ERROR: Async template error happened parsing ${e.Pattern.PatternStart} ... ${e.Pattern.PatternEnd}: ${t}`),e.OutputBuffer=n,this.resetOutputBuffer(e),r())),n,s,i):e.Pattern.ParseAsync(e.OutputBuffer.substr(e.Pattern.PatternStartString.length,e.OutputBuffer.length-(e.Pattern.PatternStartString.length+e.Pattern.PatternEndString.length)),t,((t,n)=>(t&&this.fable.log.info(`Precedent ERROR: Async template error happened parsing ${e.Pattern.PatternStart} ... ${e.Pattern.PatternEnd}: ${t}`),e.OutputBuffer=n,this.resetOutputBuffer(e),r())),n,s,i)}{let o="ParserContext"in e.Pattern&&e.Pattern.ParserContext;return e.OutputBuffer=o?e.Pattern.Parse.call(o,e.OutputBuffer.substr(e.Pattern.PatternStartString.length,e.OutputBuffer.length-(e.Pattern.PatternStartString.length+e.Pattern.PatternEndString.length)),t,n,s,i):e.Pattern.Parse(e.OutputBuffer.substr(e.Pattern.PatternStartString.length,e.OutputBuffer.length-(e.Pattern.PatternStartString.length+e.Pattern.PatternEndString.length)),t,n,s,i),this.resetOutputBuffer(e),r()}}parseCharacterAsync(e,t,r,n,s,i,o){if(t.PatternMatch)if(!t.StartPatternMatchComplete&&e in t.Pattern)t.Pattern=t.Pattern[e],this.appendOutputBuffer(e,t);else if(t.EndPatternMatchBegan)if(e in t.Pattern.PatternEnd){if(t.Pattern=t.Pattern.PatternEnd[e],this.appendOutputBuffer(e,t),"Parse"in t.Pattern)return this.executePatternAsync(t,r,n,s,i,o)}else e in t.PatternStartNode.PatternEnd?(t.Pattern=t.PatternStartNode.PatternEnd[e],this.appendOutputBuffer(e,t)):(t.EndPatternMatchBegan=!1,this.appendOutputBuffer(e,t));else if("PatternEnd"in t.Pattern){if(t.StartPatternMatchComplete||(t.StartPatternMatchComplete=!0,t.PatternStartNode=t.Pattern),this.appendOutputBuffer(e,t),e in t.Pattern.PatternEnd&&(t.EndPatternMatchBegan=!0,t.Pattern=t.Pattern.PatternEnd[e],"Parse"in t.Pattern))return this.executePatternAsync(t,r,n,s,i,o)}else this.resetOutputBuffer(t);else e in t.ParseTree?(this.resetOutputBuffer(t),this.appendOutputBuffer(e,t),t.Pattern=t.ParseTree[e],t.PatternMatch=!0):this.appendOutputBuffer(e,t);return n()}parseString(e,t,r,n,s,i,o){let a=Array.isArray(s)?s:[],l=Array.from(a);if(l.push(r),"function"!=typeof n){let n=this.newParserState(t);for(var u=0;u<e.length;u++)this.parseCharacter(e[u],n,r,l,i,o);return this.flushOutputBuffer(n),n.Output}{let s=this.newParserState(t);s.Asynchronous=!0;let a=this.fable.instantiateServiceProviderWithoutRegistration("Anticipate");for(let t=0;t<e.length;t++)a.anticipate((n=>{this.parseCharacterAsync(e[t],s,r,n,l,i,o)}));a.wait((e=>(this.flushOutputBuffer(s),n(e,s.Output))))}}}},{}],155:[function(e,t,r){t.exports=class{constructor(){this.ParseTree={}}addChild(e,t){return t in e||(e[t]={}),e[t]}addEndChild(e,t){return"PatternEnd"in e||(e.PatternEnd={}),e.PatternEnd[t]={},e.PatternEnd[t]}addPatternBoth(e,t,r,n,s){if(e.length<1)return!1;if("string"==typeof t&&t.length<1)return!1;let i=this.ParseTree;for(var o=0;o<e.length;o++)i=this.addChild(i,e[o],o);"PatternEnd"in i||(i.PatternEnd={});let a="string"==typeof t?t:e;for(let e=0;e<a.length;e++)i=this.addEndChild(i,a[e],e);return i.PatternStartString=e,i.PatternEndString=a,i.Parse="function"==typeof r?r:"string"==typeof r?(e,t)=>r:(e,t)=>e,i.ParseAsync="function"==typeof n?n:"string"==typeof n?(e,t,r)=>r(null,n):(e,t,r)=>r(null,i.Parse(e,t)),s&&(i.ParserContext=s),i.isAsync=!0,i}addPattern(e,t,r,n){return this.addPatternBoth(e,t,r,null,n)}}},{}],156:[function(e,t,r){t.exports={Metadata:{UUID:!1,Hash:!1,Name:"",Summary:"",Version:0},Status:{Completed:!1,StepCount:1},Steps:[],Errors:[],Log:[]}},{}],157:[function(e,t,r){const{PE:n}=e("big.js"),s=e("fable-serviceproviderbase"),i=JSON.stringify(e("./Fable-Service-Operation-DefaultSettings.js"));t.exports=class extends s{constructor(e,t,r){super(e,t,r),this.timeStamps={},this.serviceType="PhasedOperation",this.state=JSON.parse(i),this.stepMap={},this.stepFunctions={},this.state.Metadata.Hash=this.Hash,this.state.Metadata.UUID=this.UUID,this.state.Metadata.Name="string"==typeof this.options.Name?this.options.Name:`Unnamed Operation ${this.state.Metadata.UUID}`,this.name=this.state.Metadata.Name,this.progressTrackerSet=this.fable.instantiateServiceProviderWithoutRegistration("ProgressTrackerSet"),this.state.OverallProgressTracker=this.progressTrackerSet.createProgressTracker(`Overall-${this.state.Metadata.UUID}`),this.log=this}execute(e){if(this.state.OverallProgressTracker.StartTimeStamp>0)return e(new Error(`Operation [${this.state.Metadata.UUID}] ${this.state.Metadata.Name} has already been executed!`));let t=this.fable.instantiateServiceProviderWithoutRegistration("Anticipate");this.progressTrackerSet.setProgressTrackerTotalOperations(this.state.OverallProgressTracker.Hash,this.state.Status.StepCount),this.progressTrackerSet.startProgressTracker(this.state.OverallProgressTracker.Hash),this.info(`Operation [${this.state.Metadata.UUID}] ${this.state.Metadata.Name} starting...`);for(let e=0;e<this.state.Steps.length;e++)t.anticipate(function(t){return this.fable.log.info(`Step #${e} [${this.state.Steps[e].GUIDStep}] ${this.state.Steps[e].Name} starting...`),this.progressTrackerSet.startProgressTracker(this.state.Steps[e].ProgressTracker.Hash),t()}.bind(this)),t.anticipate(this.stepFunctions[this.state.Steps[e].GUIDStep].bind({log:this,fable:this.fable,options:this.state.Steps[e].Metadata,metadata:this.state.Steps[e].Metadata,ProgressTracker:this.progressTrackerSet.getProgressTracker(this.state.Steps[e].ProgressTracker.Hash),logProgressTrackerStatus:function(){return this.log.info(`Step #${e} [${this.state.Steps[e].GUIDStep}]: ${this.progressTrackerSet.getProgressTrackerStatusString(this.state.Steps[e].ProgressTracker.Hash)}`)}.bind(this),OperationState:this.state,StepState:this.state.Steps[e]})),t.anticipate(function(t){this.progressTrackerSet.endProgressTracker(this.state.Steps[e].ProgressTracker.Hash);let r=this.progressTrackerSet.getProgressTrackerStatusString(this.state.Steps[e].ProgressTracker.Hash);this.fable.log.info(`Step #${e} [${this.state.Steps[e].GUIDStep}] ${this.state.Steps[e].Name} complete.`),this.fable.log.info(`Step #${e} [${this.state.Steps[e].GUIDStep}] ${this.state.Steps[e].Name} ${r}.`),this.progressTrackerSet.incrementProgressTracker(this.state.OverallProgressTracker.Hash,1);let n=this.progressTrackerSet.getProgressTrackerStatusString(this.state.OverallProgressTracker.Hash);return this.fable.log.info(`Operation [${this.state.Metadata.UUID}] ${n}.`),t()}.bind(this));t.wait((t=>{if(t)return this.fable.log.error(`Operation [${this.state.Metadata.UUID}] ${this.state.Metadata.Name} had an error: ${t}`,t),e(t);this.info(`Operation [${this.state.Metadata.UUID}] ${this.state.Metadata.Name} complete.`);let r=this.progressTrackerSet.getProgressTrackerStatusString(this.state.OverallProgressTracker.Hash);return this.progressTrackerSet.endProgressTracker(this.state.OverallProgressTracker.Hash),this.fable.log.info(`Operation [${this.state.Metadata.UUID}] ${r}.`),e()}))}addStep(e,t,r,n,s){let i={};return i.GUIDStep=void 0!==s?s:`STEP-${this.state.Steps.length}-${this.fable.DataGeneration.randomNumericString()}`,i.Name=void 0!==r?r:`Step [${i.GUIDStep}]`,i.Description=void 0!==n?n:`Step execution of ${i.Name}.`,i.ProgressTracker=this.progressTrackerSet.createProgressTracker(i.GUIDStep),i.Metadata="object"==typeof t?t:{},this.state.Steps.push(i),this.stepMap[i.GUIDStep]=i,this.stepFunctions[i.GUIDStep]="function"==typeof e?e:function(e){return e()},this.state.Status.StepCount++,i}setStepTotalOperations(e,t){if(!(e in this.stepMap))return new Error(`Step [${e}] does not exist in operation [${this.state.Metadata.UUID}] ${this.state.Metadata.Name} when attempting to set total operations to ${t}.`);this.progressTrackerSet.setProgressTrackerTotalOperations(this.stepMap[e].ProgressTracker.Hash,t)}writeOperationLog(e,t,r){this.state.Log.push(`[${(new Date).toUTCString()}]-[${e}]: ${t}`),"object"==typeof r&&this.state.Log.push(JSON.stringify(r))}writeOperationErrors(e,t){this.state.Errors.push(`${e}`),"object"==typeof t&&this.state.Errors.push(JSON.stringify(t))}trace(e,t){this.writeOperationLog("TRACE",e,t),this.fable.log.trace(e,t)}debug(e,t){this.writeOperationLog("DEBUG",e,t),this.fable.log.debug(e,t)}info(e,t){this.writeOperationLog("INFO",e,t),this.fable.log.info(e,t)}warn(e,t){this.writeOperationLog("WARN",e,t),this.fable.log.warn(e,t)}error(e,t){this.writeOperationLog("ERROR",e,t),this.writeOperationErrors(e,t),this.fable.log.error(e,t)}fatal(e,t){this.writeOperationLog("FATAL",e,t),this.writeOperationErrors(e,t),this.fable.log.fatal(e,t)}}},{"./Fable-Service-Operation-DefaultSettings.js":156,"big.js":17,"fable-serviceproviderbase":53}],158:[function(e,t,r){const n=e("fable-serviceproviderbase");t.exports=class extends n{constructor(e,t,r){super(e,t,r),this.serviceType="ProgressTime",this.timeStamps={}}formatTimeDuration(e){let t="number"==typeof e?e:0;if(e<0)return"unknown";let r="";return t>36e5&&(r+=Math.floor(t/36e5)+"h ",t%=36e5),t>6e4&&(r+=Math.floor(t/6e4)+"m ",t%=6e4),t>1e3&&(r+=Math.floor(t/1e3)+"s ",t%=1e3),r+=Math.round(t)+"ms",r}createTimeStamp(e){let t="string"==typeof e?e:"Default";return this.timeStamps[t]=+new Date,this.timeStamps[t]}getTimeStampValue(e){let t="string"==typeof e?e:"Default";return t in this.timeStamps?this.timeStamps[t]:-1}updateTimeStampValue(e,t){let r="string"==typeof e?e:"Default",n=!1;return n="string"==typeof t?tmpReference in this.timeStamps&&this.timeStamps[tmpReference]:"number"==typeof t?t:+new Date,r in this.timeStamps&&n?(this.timeStamps[r]=n,this.timeStamps[r]):-1}removeTimeStamp(e){let t="string"==typeof e?e:"Default";return t in this.timeStamps&&(delete this.timeStamps[t],!0)}getTimeStampDelta(e,t){let r="string"==typeof e?e:"Default",n=!1;return n="string"==typeof t?tmpReference in this.timeStamps&&this.timeStamps[tmpReference]:"number"==typeof t?t:+new Date,r in this.timeStamps&&n?n-this.timeStamps[r]:-1}getDurationBetweenTimestamps(e,t){let r="string"==typeof e?e:"Default",n="string"==typeof t?t:"Default";return r in this.timeStamps&&n in this.timeStamps?this.timeStamps[n]-this.timeStamps[r]:-1}getTimeStampDeltaMessage(e,t,r){let n="string"==typeof e?e:"Default",s=void 0!==t?t:`Elapsed for ${n}: `,i=this.getTimeStampDelta(n,r);return`${s} ${this.formatTimeDuration(i)}`}logTimeStampDelta(e,t,r){this.fable.log.info(this.getTimeStampDeltaMessage(e,t,r))}}},{"fable-serviceproviderbase":53}],159:[function(e,t,r){t.exports=class{constructor(e,t){this.progressTrackerSet=e,this.progressTrackerHash=t,this.data=this.progressTrackerSet.getProgressTrackerData(this.progressTrackerHash)}updateProgressTracker(e){return this.progressTrackerSet.updateProgressTracker(this.progressTrackerHash,e)}incrementProgressTracker(e){return this.progressTrackerSet.incrementProgressTracker(this.progressTrackerHash,e)}setProgressTrackerTotalOperations(e){return this.progressTrackerSet.setProgressTrackerTotalOperations(this.progressTrackerHash,e)}getProgressTrackerStatusString(){return this.progressTrackerSet.getProgressTrackerStatusString(this.progressTrackerHash)}}},{}],160:[function(e,t,r){const n=e("fable-serviceproviderbase"),s=e("./Fable-Service-ProgressTracker/ProgressTracker.js");t.exports=class extends n{constructor(e,t,r){super(e,t,r),this.serviceType="ProgressTrackerSet",this.progressTrackers={},this.progressTimes=this.fable.instantiateServiceProviderWithoutRegistration("ProgressTime"),this.progressTimes.createTimeStamp("CurrentTime")}getProgressTracker(e){let t="string"==typeof e?e:"Default";return t in this.progressTrackers||(this.fable.log.warn(`ProgressTracker ${t} does not exist! Creating a new tracker...`),this.createProgressTracker(t,100)),new s(this,e)}getProgressTrackerData(e){let t="string"==typeof e?e:"Default";return t in this.progressTrackers||(this.fable.log.warn(`ProgressTracker ${t} does not exist! Creating a new tracker...`),this.createProgressTracker(t,100)),this.progressTrackers[t]}createProgressTracker(e,t){let r="string"==typeof e?e:"Default",n={Hash:r,StartTimeHash:`${r}-Start`,StartTimeStamp:-1,CurrentTimeStamp:-1,EndTimeHash:`${r}-End`,EndTimeStamp:-1,PercentComplete:-1,AllowTruePercentComplete:!1,ElapsedTime:-1,AverageOperationTime:-1,EstimatedCompletionTime:-1,TotalCount:"number"==typeof t?t:100,CurrentCount:-1};return r in this.progressTrackers&&(this.fable.log.warn(`ProgressTracker ${r} already exists! Overwriting with a new tracker...`),this.progressTimes.removeTimeStamp(n.StartTimeHash),this.progressTimes.removeTimeStamp(n.EndTimeHash)),this.progressTrackers[r]=n,n}setProgressTrackerTotalOperations(e,t){let r="string"==typeof e?e:"Default",n="number"==typeof t?t:100;return r in this.progressTrackers||(this.fable.log.warn(`Attempted to set the total operations of ProgressTracker ${r} but it does not exist! Creating a new tracker...`),this.createProgressTracker(r,n)),this.progressTrackers[r].TotalCount=n,this.progressTrackers[r]}startProgressTracker(e){let t="string"==typeof e?e:"Default";t in this.progressTrackers||this.createProgressTracker(t,100);let r=this.progressTrackers[t];return this.progressTimes.createTimeStamp(this.progressTrackers[t].StartTimeHash),r.StartTimeStamp=this.progressTimes.getTimeStampValue(this.progressTrackers[t].StartTimeHash),r.CurrentCount<0&&(r.CurrentCount=0),this.solveProgressTrackerStatus(t)}endProgressTracker(e){let t="string"==typeof e?e:"Default";if(!(t in this.progressTrackers))return this.fable.log.error(`Attempted to end ProgressTracker ${t} that does not exist!`),!1;let r=this.progressTrackers[t];return this.progressTimes.createTimeStamp(this.progressTrackers[t].EndTimeHash),r.EndTimeStamp=this.progressTimes.getTimeStampValue(this.progressTrackers[t].EndTimeHash),this.solveProgressTrackerStatus(t)}solveProgressTrackerStatus(e){let t="string"==typeof e?e:"Default";if(!(t in this.progressTrackers))return this.fable.log.error(`Attempted to solve ProgressTracker ${t} that does not exist!`),!1;let r=this.progressTrackers[t];return(r.TotalCount<1||isNaN(r.TotalCount))&&(this.fable.log.error(`ProgressTracker ${r.Hash} has an invalid total count of operations (${r.TotalCount}! Setting it to the default of 100...`),r.TotalCount=100),r.CurrentCount<1?r.PercentComplete=0:r.PercentComplete=r.CurrentCount/r.TotalCount*100,!r.AllowTruePercentComplete&&r.PercentComplete>100&&(r.PercentComplete=100),this.progressTimes.updateTimeStampValue("CurrentTime"),r.CurrentTimeStamp=this.progressTimes.getTimeStampValue("CurrentTime"),r.ElapsedTime=r.CurrentTimeStamp-r.StartTimeStamp,r.EndTimeStamp>0&&(r.ElapsedTime=r.EndTimeStamp-r.StartTimeStamp),r.CurrentCount>0?r.AverageOperationTime=(r.CurrentTimeStamp-r.StartTimeStamp)/r.CurrentCount:r.AverageOperationTime=-1,r.AverageOperationTime>0?r.EstimatedCompletionTime=Math.max(r.TotalCount-r.CurrentCount,0)*r.AverageOperationTime:r.EstimatedCompletionTime=-1,r}updateProgressTracker(e,t){let r="string"==typeof e?e:"Default",n=parseInt(t);return isNaN(n)?(this.fable.log.warn(`Attempted to update ProgressTracker ${r} with an invalid number of operations!`),!1):(r in this.progressTrackers||this.createProgressTracker(100,r),this.progressTrackers[r].CurrentCount=n,this.solveProgressTrackerStatus(r))}incrementProgressTracker(e,t){let r="string"==typeof e?e:"Default",n=parseInt(t);return isNaN(n)&&(n=1),r in this.progressTrackers?(this.progressTrackers[r].StartTimeStamp<1&&(this.fable.log.warn(`Attempted to increment ProgressTracker ${r} but it was not started.. starting now.`),this.startProgressTracker(r)),this.progressTrackers[r].CurrentCount=this.progressTrackers[r].CurrentCount+n,this.solveProgressTrackerStatus(r)):(this.fable.log.warn(`Attempted to increment ProgressTracker ${r} but it did not exist.`),!1)}getProgressTrackerCompletedOperationCountString(e){let t="string"==typeof e?e:"Default";const r=this.progressTrackers[t];return r.CurrentCount<0?"none":r.CurrentCount<1?"0":`${r.CurrentCount}`}getProgressTrackerPercentCompleteString(e){let t="string"==typeof e?e:"Default";if(this.solveProgressTrackerStatus(t),t in this.progressTrackers){const e=this.progressTrackers[t];return e.StartTimeStamp<1||e.CurrentCount<1?"0%":(e.EndTimeStamp,`${e.PercentComplete.toFixed(3)}%`)}return`ProgressTracker ${t} does not exist! No stats to display.`}getProgressTrackerStatusString(e){let t="string"==typeof e?e:"Default";if(this.solveProgressTrackerStatus(t),t in this.progressTrackers){const e=this.progressTrackers[t];return e.StartTimeStamp<1?`ProgressTracker ${e.Hash} has not been started yet.`:e.CurrentCount<1&&e.EndTimeStamp<1?`ProgressTracker ${e.Hash} has no completed operations. ${this.progressTimes.formatTimeDuration(e.ElapsedTime)} have elapsed since it was started.`:e.EndTimeStamp<1?`ProgressTracker ${e.Hash} is ${e.PercentComplete.toFixed(3)}% completed - ${e.CurrentCount} / ${e.TotalCount} operations over ${this.progressTimes.formatTimeDuration(e.ElapsedTime)} (median ${this.progressTimes.formatTimeDuration(e.AverageOperationTime)} per). Estimated completion: ${this.progressTimes.formatTimeDuration(e.EstimatedCompletionTime)}`:`ProgressTracker ${e.Hash} is done. ${e.CurrentCount} / ${e.TotalCount} operations were completed in ${this.progressTimes.formatTimeDuration(e.ElapsedTime)} (median ${this.progressTimes.formatTimeDuration(e.AverageOperationTime)} per).`}return`ProgressTracker ${t} does not exist! No stats to display.`}logProgressTrackerStatus(e){this.fable.log.info(this.getProgressTrackerStatusString(e))}}},{"./Fable-Service-ProgressTracker/ProgressTracker.js":159,"fable-serviceproviderbase":53}],161:[function(e,t,r){(function(r){(function(){const n=e("fable-serviceproviderbase"),s=e("simple-get"),i=e("cookie");t.exports=class extends n{constructor(e,t,r){super(e,t,r),this.TraceLog=!1,(this.options.TraceLog||this.fable.TraceLog)&&(this.TraceLog=!0),this.dataFormat=this.fable.services.DataFormat,this.serviceType="RestClient",this.cookie=!1,this.prepareRequestOptions=e=>e}get simpleGet(){return s}prepareCookies(e){if(this.cookie){let t=this.cookie;"headers"in e||(e.headers={});let r=Object.keys(t);r.length>0&&(e.headers.cookie=i.serialize(r[0],t[r[0]]))}return e}preRequest(e){let t=this.prepareCookies(e);return"RestClientURLPrefix"in this.fable.settings&&(t.url=this.fable.settings.RestClientURLPrefix+t.url),this.prepareRequestOptions(t)}executeChunkedRequest(e,t){let r=this.preRequest(e);return r.RequestStartTime=this.fable.log.getTimeStamp(),this.TraceLog&&this.fable.log.debug(`Beginning ${r.method} request to ${r.url} at ${r.RequestStartTime}`),s(r,((e,n)=>{if(e)return t(e,n);if(this.TraceLog){let e=this.fable.log.getTimeStamp();this.fable.log.debug(`--\x3e ${r.method} connected in ${this.dataFormat.formatTimeDelta(r.RequestStartTime,e)}ms code ${n.statusCode}`)}let s="";n.on("data",(e=>{if(this.TraceLog){let t=this.fable.log.getTimeStamp();this.fable.log.debug(`--\x3e ${r.method} data chunk size ${e.length}b received in ${this.dataFormat.formatTimeDelta(r.RequestStartTime,t)}ms`)}s+=e})),n.on("end",(()=>{if(this.TraceLog){let e=this.fable.log.getTimeStamp();this.fable.log.debug(`==> ${r.method} completed data size ${s.length}b received in ${this.dataFormat.formatTimeDelta(r.RequestStartTime,e)}ms`)}return t(e,n,s)}))}))}executeChunkedRequestBinary(e,t){let n=this.preRequest(e);return n.RequestStartTime=this.fable.log.getTimeStamp(),this.TraceLog&&this.fable.log.debug(`Beginning ${n.method} request to ${n.url} at ${n.RequestStartTime}`),n.json=!1,n.encoding=null,s(n,((e,s)=>{if(e)return t(e,s);if(this.TraceLog){let e=this.fable.log.getTimeStamp();this.fable.log.debug(`--\x3e ${n.method} connected in ${this.dataFormat.formatTimeDelta(n.RequestStartTime,e)}ms code ${s.statusCode}`)}let i=!1;s.on("data",(e=>{if(this.TraceLog){let t=this.fable.log.getTimeStamp();this.fable.log.debug(`--\x3e ${n.method} data chunk size ${e.length}b received in ${this.dataFormat.formatTimeDelta(n.RequestStartTime,t)}ms`)}i=i?r.concat([i,e]):r.from(e)})),s.on("end",(()=>{if(this.TraceLog){let e=this.fable.log.getTimeStamp();this.fable.log.debug(`==> ${n.method} completed data size ${i.length}b received in ${this.dataFormat.formatTimeDelta(n.RequestStartTime,e)}ms`)}return t(e,s,i)}))}))}executeJSONRequest(e,t){e.json=!0;let r=this.preRequest(e);return"headers"in r||(r.headers={}),r.RequestStartTime=this.fable.log.getTimeStamp(),this.TraceLog&&this.fable.log.debug(`Beginning ${r.method} JSON request to ${r.url} at ${r.RequestStartTime}`),s(r,((e,n)=>{if(e)return t(e,n);if(this.TraceLog){let e=this.fable.log.getTimeStamp();this.fable.log.debug(`--\x3e JSON ${r.method} connected in ${this.dataFormat.formatTimeDelta(r.RequestStartTime,e)}ms code ${n.statusCode}`)}let s="";n.on("data",(e=>{if(this.TraceLog){let t=this.fable.log.getTimeStamp();this.fable.log.debug(`--\x3e JSON ${r.method} data chunk size ${e.length}b received in ${this.dataFormat.formatTimeDelta(r.RequestStartTime,t)}ms`)}s+=e})),n.on("end",(()=>{if(this.TraceLog){let e=this.fable.log.getTimeStamp();this.fable.log.debug(`==> JSON ${r.method} completed - received in ${this.dataFormat.formatTimeDelta(r.RequestStartTime,e)}ms`)}return t(e,n,JSON.parse(s))}))}))}getJSON(e,t){let r="object"==typeof e?e:{};return"string"==typeof e&&(r.url=e),r.method="GET",this.executeJSONRequest(r,t)}putJSON(e,t){return"object"!=typeof e.body?t(new Error("PUT JSON Error Invalid options object")):(e.method="PUT",this.executeJSONRequest(e,t))}postJSON(e,t){return"object"!=typeof e.body?t(new Error("POST JSON Error Invalid options object")):(e.method="POST",this.executeJSONRequest(e,t))}patchJSON(e,t){return"object"!=typeof e.body?t(new Error("PATCH JSON Error Invalid options object")):(e.method="PATCH",this.executeJSONRequest(e,t))}headJSON(e,t){return"object"!=typeof e.body?t(new Error("HEAD JSON Error Invalid options object")):(e.method="HEAD",this.executeJSONRequest(e,t))}delJSON(e,t){return e.method="DELETE",this.executeJSONRequest(e,t)}getRawText(e,t){let r="object"==typeof e?e:{};return"string"==typeof e&&(r.url=e),r.method="GET",this.executeChunkedRequest(r,t)}}}).call(this)}).call(this,e("buffer").Buffer)},{buffer:20,cookie:27,"fable-serviceproviderbase":53,"simple-get":105}],162:[function(e,t,r){const n=e("fable-serviceproviderbase");t.exports=class extends n{constructor(e,t,r){super(e,t,r),this.serviceType="Template",this.Matchers={Evaluate:/<%([\s\S]+?)%>/g,Interpolate:/<%=([\s\S]+?)%>/g,Escaper:/\\|'|\r|\n|\t|\u2028|\u2029/g,Unescaper:/\\(\\|'|r|n|t|u2028|u2029)/g,GuaranteedNonMatch:/.^/},this.templateEscapes={"\\":"\\","'":"'",r:"\r","\r":"r",n:"\n","\n":"n",t:"\t","\t":"t",u2028:"\u2028","\u2028":"u2028",u2029:"\u2029","\u2029":"u2029"},this.renderFunction=!1,this.templateString=!1}renderTemplate(e){return this.renderFunction(e)}templateFunction(){return this.renderTemplate.bind(this)}buildTemplateFunction(e,t){return this.TemplateSource="__p+='"+e.replace(this.Matchers.Escaper,(e=>`\\${this.templateEscapes[e]}`)).replace(this.Matchers.Interpolate||this.Matchers.GuaranteedNonMatch,((e,t)=>`'+\n(${decodeURIComponent(t)})+\n'`)).replace(this.Matchers.Evaluate||this.Matchers.GuaranteedNonMatch,((e,t)=>`';\n${decodeURIComponent(t)}\n;__p+='`))+"';\n",this.TemplateSource=`with(pTemplateDataObject||{}){\n${this.TemplateSource}}\n`,this.TemplateSource=`var __p='';var print=function(){__p+=Array.prototype.join.call(arguments, '')};\n${this.TemplateSource}return __p;\n`,this.renderFunction=new Function("pTemplateDataObject",this.TemplateSource),void 0!==t?this.renderFunction(t):(this.TemplateSourceCompiled="function(obj){\n"+this.TemplateSource+"}",this.templateFunction())}}},{"fable-serviceproviderbase":53}],163:[function(e,t,r){const n=e("fable-serviceproviderbase"),s=e("async.waterfall"),i=e("async.eachlimit"),o=e("big.js");t.exports=class extends n{constructor(e,t,r){super(e,t,r),this.templates={},this.waterfall=s,this.eachLimit=i,this.bigNumber=o}extend(e){for(let t=0;t<(arguments.length<=1?0:arguments.length-1);t++){let r=t+1<1||arguments.length<=t+1?void 0:arguments[t+1];if("object"==typeof r){let t=Object.keys(r);for(let n=0;n<t.length;n++)e[t[n]]=r[t[n]]}}return e}template(e,t){return this.fable.instantiateServiceProviderWithoutRegistration("Template").buildTemplateFunction(e,t)}buildHashedTemplate(e,t,r){let n=this.fable.instantiateServiceProvider("Template",{},e);return this.templates[e]=n.buildTemplateFunction(t,r),this.templates[e]}chunk(e,t,r){let n=[...e],s="number"==typeof t?t:0,i=void 0!==r?r:[];if(s<=0)return i;for(;n.length;)i.push(n.splice(0,s));return i}getInternalValueByHash(e){return this.getValueByHash(this.fable,e)}getValueByHash(e,t,r){let n=r;return void 0===n&&(this.manifest||(this.manifest=this.fable.newManyfest()),n=this.manifest),n.getValueByHash(e,t)}setValueByHash(e,t,r,n){let s=n;return void 0===s&&(this.manifest||(this.manifest=this.fable.newManyfest()),s=this.manifest),s.setValueByHash(e,t,r)}createValueArrayByHashes(e,t,r){let n=r;if(void 0===n&&(this.manifest||(this.manifest=this.fable.newManyfest()),n=this.manifest),!Array.isArray(t))return[];let s=[];for(let r=0;r<t.length;r++)s.push(n.getValueByHash(e,t[r]));return s}createValueArrayByHashesFromInternal(e,t){return this.createValueArrayByHashes(this.fable,e,t)}createValueArrayByHashParametersFromInternal(){if(arguments.length<2)return[];let e=Array.prototype.slice.call(arguments);return this.createValueArrayByHashes(this.fable,e)}createValueObjectByHashes(e,t,r){let n=r;if(void 0===n&&(this.manifest||(this.manifest=this.fable.newManyfest()),n=this.manifest),!Array.isArray(t))return{};let s={};for(let r=0;r<t.length;r++)s[t[r]]=n.getValueByHash(e,t[r]);return s}createValueObjectByHashesFromInternal(e,t){return this.createValueObjectByHashes(this.fable,e,t)}createValueObjectByHashParametersFromInternal(){let e=Array.prototype.slice.call(arguments);return this.createValueObjectByHashes(this.fable,e)}addressIsNullOrEmpty(e,t){if(this.manifest||(this.manifest=this.fable.newManyfest()),!this.manifest.checkAddressExists(e,t))return!0;let r=this.manifest.getValueByHash(e,t);return null===r||""===r}isoStringToDate(e){"Dates"in this.fable||this.fable.instantiateServiceProvider("Dates");let t=!1;try{t=this.fable.Dates.dayJS.utc(e)}catch(t){return this.fable.log.error(`Could not parse date string ${e} with dayJS.`),!1}return!!t&&t.toDate()}findFirstValueByStringIncludes(e,t,r,n){if(this.manifest||(this.manifest=this.fable.newManyfest()),Array.isArray(e))for(let s=0;s<e.length;s++){let i=this.manifest.getValueByHash(e[s],t);if(i&&i.includes(r))return this.manifest.getValueByHash(e[s],n)}}findFirstValueByStringIncludesInternal(e,t,r,n){if(this.manifest||(this.manifest=this.fable.newManyfest()),"string"!=typeof e)return;let s=this.manifest.getValueByHash(this.fable,e);return this.findFirstValueByStringIncludes(s,t,r,n)}findFirstValueByExactMatch(e,t,r,n){if(this.manifest||(this.manifest=this.fable.newManyfest()),Array.isArray(e))for(let s=0;s<e.length;s++){let i=this.manifest.getValueByHash(e[s],t);if(i&&i==r)return this.manifest.getValueByHash(e[s],n)}}findFirstValueByExactMatchInternal(e,t,r,n){if(this.manifest||(this.manifest=this.fable.newManyfest()),"string"!=typeof e)return;let s=this.manifest.getValueByHash(this.fable,e);return this.findFirstValueByExactMatch(s,t,r,n)}flattenArrayOfSolverInputs(e){if(!Array.isArray(e)&&("object"==typeof e&&(e=Object.values(e)),!e))return[];return e.flatMap((e=>Array.isArray(e)?e:"object"==typeof e?Object.values(e):[e]))}createArrayFromAbsoluteValues(){let e=[];for(let t=0;t<arguments.length;t++)e.push(arguments[t]);return e}}},{"async.eachlimit":1,"async.waterfall":15,"big.js":17,"fable-serviceproviderbase":53}],164:[function(e,t,r){class n{constructor(e,t){this.values=e instanceof n?e.values.concat([t]):t instanceof n?[e].concat(t.values):[e,t]}}t.exports=n},{}]},{},[132])(132)}));
11
+ var n=e("./WordTree.js"),s=e("./StringParser.js");t.exports=class{constructor(){this.WordTree=new n,this.StringParser=new s,this.ParseTree=this.WordTree.ParseTree}addPattern(e,t,r){return this.WordTree.addPattern(e,t,r)}parseString(e,t){return this.StringParser.parseString(e,this.ParseTree,t)}}},{"./StringParser.js":89,"./WordTree.js":90}],89:[function(e,t,r){t.exports=class{constructor(){}newParserState(e){return{ParseTree:e,Asynchronous:!1,Output:"",OutputBuffer:"",Pattern:{},PatternMatch:!1,PatternMatchEnd:!1}}appendOutputBuffer(e,t){t.OutputBuffer+=e}flushOutputBuffer(e){e.Output+=e.OutputBuffer,e.OutputBuffer=""}resetOutputBuffer(e){return this.flushOutputBuffer(e),e.Pattern=!1,e.PatternStartNode=!1,e.StartPatternMatchComplete=!1,e.EndPatternMatchBegan=!1,e.PatternMatch=!1,!0}parseCharacter(e,t,r){if(t.PatternMatch)if(!t.StartPatternMatchComplete&&t.Pattern.hasOwnProperty(e))t.Pattern=t.Pattern[e],this.appendOutputBuffer(e,t);else if(t.EndPatternMatchBegan)if(t.Pattern.PatternEnd.hasOwnProperty(e)){if(t.Pattern=t.Pattern.PatternEnd[e],this.appendOutputBuffer(e,t),t.Pattern.hasOwnProperty("Parse"))return t.OutputBuffer=t.Pattern.Parse(t.OutputBuffer.substr(t.Pattern.PatternStartString.length,t.OutputBuffer.length-(t.Pattern.PatternStartString.length+t.Pattern.PatternEndString.length)),r),this.resetOutputBuffer(t)}else t.PatternStartNode.PatternEnd.hasOwnProperty(e)?(t.Pattern=t.PatternStartNode.PatternEnd[e],this.appendOutputBuffer(e,t)):(t.EndPatternMatchBegan=!1,this.appendOutputBuffer(e,t));else if(t.Pattern.hasOwnProperty("PatternEnd")){if(t.StartPatternMatchComplete||(t.StartPatternMatchComplete=!0,t.PatternStartNode=t.Pattern),this.appendOutputBuffer(e,t),t.Pattern.PatternEnd.hasOwnProperty(e)&&(t.EndPatternMatchBegan=!0,t.Pattern=t.Pattern.PatternEnd[e],t.Pattern.hasOwnProperty("Parse")))return t.OutputBuffer=t.Pattern.Parse(t.OutputBuffer.substr(t.Pattern.PatternStartString.length,t.OutputBuffer.length-(t.Pattern.PatternStartString.length+t.Pattern.PatternEndString.length)),r),this.resetOutputBuffer(t)}else this.resetOutputBuffer(t);if(!t.PatternMatch){if(t.ParseTree.hasOwnProperty(e))return this.resetOutputBuffer(t),this.appendOutputBuffer(e,t),t.Pattern=t.ParseTree[e],t.PatternMatch=!0,!0;this.appendOutputBuffer(e,t)}return!1}parseString(e,t,r){let n=this.newParserState(t);for(var s=0;s<e.length;s++)this.parseCharacter(e[s],n,r);return this.flushOutputBuffer(n),n.Output}}},{}],90:[function(e,t,r){t.exports=class{constructor(){this.ParseTree={}}addChild(e,t){return e.hasOwnProperty(t)||(e[t]={}),e[t]}addEndChild(e,t){return e.hasOwnProperty("PatternEnd")||(e.PatternEnd={}),e.PatternEnd[t]={},e.PatternEnd[t]}addPattern(e,t,r){if(e.length<1)return!1;if("string"==typeof t&&t.length<1)return!1;let n=this.ParseTree;for(var s=0;s<e.length;s++)n=this.addChild(n,e[s],s);n.hasOwnProperty("PatternEnd")||(n.PatternEnd={});let i="string"==typeof t?t:e;for(let e=0;e<i.length;e++)n=this.addEndChild(n,i[e],e);return n.PatternStartString=e,n.PatternEndString=i,n.Parse="function"==typeof r?r:"string"==typeof r?()=>r:e=>e,!0}}},{}],91:[function(e,t,r){var n,s,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function l(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{s="function"==typeof clearTimeout?clearTimeout:a}catch(e){s=a}}();var u,c=[],h=!1,f=-1;function p(){h&&u&&(h=!1,u.length?c=u.concat(c):f=-1,c.length&&d())}function d(){if(!h){var e=l(p);h=!0;for(var t=c.length;t;){for(u=c,c=[];++f<t;)u&&u[f].run();f=-1,t=c.length}u=null,h=!1,function(e){if(s===clearTimeout)return clearTimeout(e);if((s===a||!s)&&clearTimeout)return s=clearTimeout,clearTimeout(e);try{return s(e)}catch(t){try{return s.call(null,e)}catch(t){return s.call(this,e)}}}(e)}}function g(e,t){this.fun=e,this.array=t}function y(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];c.push(new g(e,t)),1!==c.length||h||l(d)},g.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=y,i.addListener=y,i.once=y,i.off=y,i.removeListener=y,i.removeAllListeners=y,i.emit=y,i.prependListener=y,i.prependOnceListener=y,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},{}],92:[function(e,t,r){(function(e){(function(){!function(n){var s="object"==typeof r&&r&&!r.nodeType&&r,i="object"==typeof t&&t&&!t.nodeType&&t,o="object"==typeof e&&e;o.global!==o&&o.window!==o&&o.self!==o||(n=o);var a,l,u=2147483647,c=36,h=1,f=26,p=38,d=700,g=72,y=128,m="-",b=/^xn--/,v=/[^\x20-\x7E]/,S=/[\x2E\u3002\uFF0E\uFF61]/g,P={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},T=c-h,w=Math.floor,x=String.fromCharCode;function E(e){throw new RangeError(P[e])}function k(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function A(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+k((e=e.replace(S,".")).split("."),t).join(".")}function O(e){for(var t,r,n=[],s=0,i=e.length;s<i;)(t=e.charCodeAt(s++))>=55296&&t<=56319&&s<i?56320==(64512&(r=e.charCodeAt(s++)))?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),s--):n.push(t);return n}function _(e){return k(e,(function(e){var t="";return e>65535&&(t+=x((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=x(e)})).join("")}function N(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function j(e,t,r){var n=0;for(e=r?w(e/d):e>>1,e+=w(e/t);e>T*f>>1;n+=c)e=w(e/T);return w(n+(T+1)*e/(e+p))}function R(e){var t,r,n,s,i,o,a,l,p,d,b,v=[],S=e.length,P=0,T=y,x=g;for((r=e.lastIndexOf(m))<0&&(r=0),n=0;n<r;++n)e.charCodeAt(n)>=128&&E("not-basic"),v.push(e.charCodeAt(n));for(s=r>0?r+1:0;s<S;){for(i=P,o=1,a=c;s>=S&&E("invalid-input"),((l=(b=e.charCodeAt(s++))-48<10?b-22:b-65<26?b-65:b-97<26?b-97:c)>=c||l>w((u-P)/o))&&E("overflow"),P+=l*o,!(l<(p=a<=x?h:a>=x+f?f:a-x));a+=c)o>w(u/(d=c-p))&&E("overflow"),o*=d;x=j(P-i,t=v.length+1,0==i),w(P/t)>u-T&&E("overflow"),T+=w(P/t),P%=t,v.splice(P++,0,T)}return _(v)}function M(e){var t,r,n,s,i,o,a,l,p,d,b,v,S,P,T,k=[];for(v=(e=O(e)).length,t=y,r=0,i=g,o=0;o<v;++o)(b=e[o])<128&&k.push(x(b));for(n=s=k.length,s&&k.push(m);n<v;){for(a=u,o=0;o<v;++o)(b=e[o])>=t&&b<a&&(a=b);for(a-t>w((u-r)/(S=n+1))&&E("overflow"),r+=(a-t)*S,t=a,o=0;o<v;++o)if((b=e[o])<t&&++r>u&&E("overflow"),b==t){for(l=r,p=c;!(l<(d=p<=i?h:p>=i+f?f:p-i));p+=c)T=l-d,P=c-d,k.push(x(N(d+T%P,0))),l=w(T/P);k.push(x(N(l,0))),i=j(r,S,n==s),r=0,++n}++r,++t}return k.join("")}if(a={version:"1.4.1",ucs2:{decode:O,encode:_},decode:R,encode:M,toASCII:function(e){return A(e,(function(e){return v.test(e)?"xn--"+M(e):e}))},toUnicode:function(e){return A(e,(function(e){return b.test(e)?R(e.slice(4).toLowerCase()):e}))}},s&&i)if(t.exports==s)i.exports=a;else for(l in a)a.hasOwnProperty(l)&&(s[l]=a[l]);else n.punycode=a}(this)}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],93:[function(e,t,r){var n=String.prototype.replace,s=/%20/g,i="RFC1738",o="RFC3986";t.exports={default:o,formatters:{RFC1738:function(e){return n.call(e,s,"+")},RFC3986:function(e){return String(e)}},RFC1738:i,RFC3986:o}},{}],94:[function(e,t,r){var n=e("./stringify"),s=e("./parse"),i=e("./formats");t.exports={formats:i,parse:s,stringify:n}},{"./formats":93,"./parse":95,"./stringify":96}],95:[function(e,t,r){var n=e("./utils"),s=Object.prototype.hasOwnProperty,i=Array.isArray,o={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},a=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},l=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},u=function(e,t,r,n){if(e){var i=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/g,a=r.depth>0&&/(\[[^[\]]*])/.exec(i),u=a?i.slice(0,a.index):i,c=[];if(u){if(!r.plainObjects&&s.call(Object.prototype,u)&&!r.allowPrototypes)return;c.push(u)}for(var h=0;r.depth>0&&null!==(a=o.exec(i))&&h<r.depth;){if(h+=1,!r.plainObjects&&s.call(Object.prototype,a[1].slice(1,-1))&&!r.allowPrototypes)return;c.push(a[1])}return a&&c.push("["+i.slice(a.index)+"]"),function(e,t,r,n){for(var s=n?t:l(t,r),i=e.length-1;i>=0;--i){var o,a=e[i];if("[]"===a&&r.parseArrays)o=[].concat(s);else{o=r.plainObjects?Object.create(null):{};var u="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,c=parseInt(u,10);r.parseArrays||""!==u?!isNaN(c)&&a!==u&&String(c)===u&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(o=[])[c]=s:"__proto__"!==u&&(o[u]=s):o={0:s}}s=o}return s}(c,t,r,n)}};t.exports=function(e,t){var r=function(e){if(!e)return o;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?o.charset:e.charset;return{allowDots:void 0===e.allowDots?o.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:o.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:o.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:o.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:o.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:o.comma,decoder:"function"==typeof e.decoder?e.decoder:o.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:o.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:o.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:o.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:o.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:o.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:o.strictNullHandling}}(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var c="string"==typeof e?function(e,t){var r,u={__proto__:null},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,h=t.parameterLimit===1/0?void 0:t.parameterLimit,f=c.split(t.delimiter,h),p=-1,d=t.charset;if(t.charsetSentinel)for(r=0;r<f.length;++r)0===f[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[r]?d="utf-8":"utf8=%26%2310003%3B"===f[r]&&(d="iso-8859-1"),p=r,r=f.length);for(r=0;r<f.length;++r)if(r!==p){var g,y,m=f[r],b=m.indexOf("]="),v=-1===b?m.indexOf("="):b+1;-1===v?(g=t.decoder(m,o.decoder,d,"key"),y=t.strictNullHandling?null:""):(g=t.decoder(m.slice(0,v),o.decoder,d,"key"),y=n.maybeMap(l(m.slice(v+1),t),(function(e){return t.decoder(e,o.decoder,d,"value")}))),y&&t.interpretNumericEntities&&"iso-8859-1"===d&&(y=a(y)),m.indexOf("[]=")>-1&&(y=i(y)?[y]:y),s.call(u,g)?u[g]=n.combine(u[g],y):u[g]=y}return u}(e,r):e,h=r.plainObjects?Object.create(null):{},f=Object.keys(c),p=0;p<f.length;++p){var d=f[p],g=u(d,c[d],r,"string"==typeof e);h=n.merge(h,g,r)}return!0===r.allowSparse?h:n.compact(h)}},{"./utils":97}],96:[function(e,t,r){var n=e("side-channel"),s=e("./utils"),i=e("./formats"),o=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,u=Array.prototype.push,c=function(e,t){u.apply(e,l(t)?t:[t])},h=Date.prototype.toISOString,f=i.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:s.encode,encodeValuesOnly:!1,format:f,formatter:i.formatters[f],indices:!1,serializeDate:function(e){return h.call(e)},skipNulls:!1,strictNullHandling:!1},d={},g=function e(t,r,i,o,a,u,h,f,g,y,m,b,v,S,P,T){for(var w,x=t,E=T,k=0,A=!1;void 0!==(E=E.get(d))&&!A;){var O=E.get(t);if(k+=1,void 0!==O){if(O===k)throw new RangeError("Cyclic object value");A=!0}void 0===E.get(d)&&(k=0)}if("function"==typeof f?x=f(r,x):x instanceof Date?x=m(x):"comma"===i&&l(x)&&(x=s.maybeMap(x,(function(e){return e instanceof Date?m(e):e}))),null===x){if(a)return h&&!S?h(r,p.encoder,P,"key",b):r;x=""}if("string"==typeof(w=x)||"number"==typeof w||"boolean"==typeof w||"symbol"==typeof w||"bigint"==typeof w||s.isBuffer(x))return h?[v(S?r:h(r,p.encoder,P,"key",b))+"="+v(h(x,p.encoder,P,"value",b))]:[v(r)+"="+v(String(x))];var _,N=[];if(void 0===x)return N;if("comma"===i&&l(x))S&&h&&(x=s.maybeMap(x,h)),_=[{value:x.length>0?x.join(",")||null:void 0}];else if(l(f))_=f;else{var j=Object.keys(x);_=g?j.sort(g):j}for(var R=o&&l(x)&&1===x.length?r+"[]":r,M=0;M<_.length;++M){var L=_[M],C="object"==typeof L&&void 0!==L.value?L.value:x[L];if(!u||null!==C){var D=l(x)?"function"==typeof i?i(R,L):R:R+(y?"."+L:"["+L+"]");T.set(t,k);var $=n();$.set(d,T),c(N,e(C,D,i,o,a,u,"comma"===i&&S&&l(x)?null:h,f,g,y,m,b,v,S,P,$))}}return N};t.exports=function(e,t){var r,s=e,u=function(e){if(!e)return p;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||p.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=i.default;if(void 0!==e.format){if(!o.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n=i.formatters[r],s=p.filter;return("function"==typeof e.filter||l(e.filter))&&(s=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:p.addQueryPrefix,allowDots:void 0===e.allowDots?p.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:p.charsetSentinel,delimiter:void 0===e.delimiter?p.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:p.encode,encoder:"function"==typeof e.encoder?e.encoder:p.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:p.encodeValuesOnly,filter:s,format:r,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:p.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:p.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:p.strictNullHandling}}(t);"function"==typeof u.filter?s=(0,u.filter)("",s):l(u.filter)&&(r=u.filter);var h,f=[];if("object"!=typeof s||null===s)return"";h=t&&t.arrayFormat in a?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var d=a[h];if(t&&"commaRoundTrip"in t&&"boolean"!=typeof t.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var y="comma"===d&&t&&t.commaRoundTrip;r||(r=Object.keys(s)),u.sort&&r.sort(u.sort);for(var m=n(),b=0;b<r.length;++b){var v=r[b];u.skipNulls&&null===s[v]||c(f,g(s[v],v,d,y,u.strictNullHandling,u.skipNulls,u.encode?u.encoder:null,u.filter,u.sort,u.allowDots,u.serializeDate,u.format,u.formatter,u.encodeValuesOnly,u.charset,m))}var S=f.join(u.delimiter),P=!0===u.addQueryPrefix?"?":"";return u.charsetSentinel&&("iso-8859-1"===u.charset?P+="utf8=%26%2310003%3B&":P+="utf8=%E2%9C%93&"),S.length>0?P+S:""}},{"./formats":93,"./utils":97,"side-channel":103}],97:[function(e,t,r){var n=e("./formats"),s=Object.prototype.hasOwnProperty,i=Array.isArray,o=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),a=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r};t.exports={arrayToObject:a,assign:function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var s=t[n],o=s.obj[s.prop],a=Object.keys(o),l=0;l<a.length;++l){var u=a[l],c=o[u];"object"==typeof c&&null!==c&&-1===r.indexOf(c)&&(t.push({obj:o,prop:u}),r.push(c))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(i(r)){for(var n=[],s=0;s<r.length;++s)void 0!==r[s]&&n.push(r[s]);t.obj[t.prop]=n}}}(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,r,s,i){if(0===e.length)return e;var a=e;if("symbol"==typeof e?a=Symbol.prototype.toString.call(e):"string"!=typeof e&&(a=String(e)),"iso-8859-1"===r)return escape(a).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var l="",u=0;u<a.length;++u){var c=a.charCodeAt(u);45===c||46===c||95===c||126===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||i===n.RFC1738&&(40===c||41===c)?l+=a.charAt(u):c<128?l+=o[c]:c<2048?l+=o[192|c>>6]+o[128|63&c]:c<55296||c>=57344?l+=o[224|c>>12]+o[128|c>>6&63]+o[128|63&c]:(u+=1,c=65536+((1023&c)<<10|1023&a.charCodeAt(u)),l+=o[240|c>>18]+o[128|c>>12&63]+o[128|c>>6&63]+o[128|63&c])}return l},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!=typeof r){if(i(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!s.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var o=t;return i(t)&&!i(r)&&(o=a(t,n)),i(t)&&i(r)?(r.forEach((function(r,i){if(s.call(t,i)){var o=t[i];o&&"object"==typeof o&&r&&"object"==typeof r?t[i]=e(o,r,n):t.push(r)}else t[i]=r})),t):Object.keys(r).reduce((function(t,i){var o=r[i];return s.call(t,i)?t[i]=e(t[i],o,n):t[i]=o,t}),o)}}},{"./formats":93}],98:[function(e,t,r){function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.exports=function(e,t,r,i){t=t||"&",r=r||"=";var o={};if("string"!=typeof e||0===e.length)return o;var a=/\+/g;e=e.split(t);var l=1e3;i&&"number"==typeof i.maxKeys&&(l=i.maxKeys);var u=e.length;l>0&&u>l&&(u=l);for(var c=0;c<u;++c){var h,f,p,d,g=e[c].replace(a,"%20"),y=g.indexOf(r);y>=0?(h=g.substr(0,y),f=g.substr(y+1)):(h=g,f=""),p=decodeURIComponent(h),d=decodeURIComponent(f),n(o,p)?s(o[p])?o[p].push(d):o[p]=[o[p],d]:o[p]=d}return o};var s=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},{}],99:[function(e,t,r){var n=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};t.exports=function(e,t,r,a){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?i(o(e),(function(o){var a=encodeURIComponent(n(o))+r;return s(e[o])?i(e[o],(function(e){return a+encodeURIComponent(n(e))})).join(t):a+encodeURIComponent(n(e[o]))})).join(t):a?encodeURIComponent(n(a))+r+encodeURIComponent(n(e)):""};var s=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function i(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n<e.length;n++)r.push(t(e[n],n));return r}var o=Object.keys||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t}},{}],100:[function(e,t,r){r.decode=r.parse=e("./decode"),r.encode=r.stringify=e("./encode")},{"./decode":98,"./encode":99}],101:[function(e,t,r){/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var n=e("buffer"),s=n.Buffer;function i(e,t){for(var r in e)t[r]=e[r]}function o(e,t,r){return s(e,t,r)}s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow?t.exports=n:(i(n,r),r.Buffer=o),o.prototype=Object.create(s.prototype),i(s,o),o.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return s(e,t,r)},o.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=s(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return s(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},{buffer:20}],102:[function(e,t,r){var n=e("get-intrinsic"),s=e("define-data-property"),i=e("has-property-descriptors")(),o=e("gopd"),a=e("es-errors/type"),l=n("%Math.floor%");t.exports=function(e,t){if("function"!=typeof e)throw new a("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||l(t)!==t)throw new a("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,u=!0;if("length"in e&&o){var c=o(e,"length");c&&!c.configurable&&(n=!1),c&&!c.writable&&(u=!1)}return(n||u||!r)&&(i?s(e,"length",t,!0,!0):s(e,"length",t)),e}},{"define-data-property":36,"es-errors/type":42,"get-intrinsic":63,gopd:64,"has-property-descriptors":65}],103:[function(e,t,r){var n=e("get-intrinsic"),s=e("call-bind/callBound"),i=e("object-inspect"),o=e("es-errors/type"),a=n("%WeakMap%",!0),l=n("%Map%",!0),u=s("WeakMap.prototype.get",!0),c=s("WeakMap.prototype.set",!0),h=s("WeakMap.prototype.has",!0),f=s("Map.prototype.get",!0),p=s("Map.prototype.set",!0),d=s("Map.prototype.has",!0),g=function(e,t){for(var r,n=e;null!==(r=n.next);n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r};t.exports=function(){var e,t,r,n={assert:function(e){if(!n.has(e))throw new o("Side channel does not contain "+i(e))},get:function(n){if(a&&n&&("object"==typeof n||"function"==typeof n)){if(e)return u(e,n)}else if(l){if(t)return f(t,n)}else if(r)return function(e,t){var r=g(e,t);return r&&r.value}(r,n)},has:function(n){if(a&&n&&("object"==typeof n||"function"==typeof n)){if(e)return h(e,n)}else if(l){if(t)return d(t,n)}else if(r)return function(e,t){return!!g(e,t)}(r,n);return!1},set:function(n,s){a&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new a),c(e,n,s)):l?(t||(t=new l),p(t,n,s)):(r||(r={key:{},next:null}),function(e,t,r){var n=g(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(r,n,s))}};return n}},{"call-bind/callBound":25,"es-errors/type":42,"get-intrinsic":63,"object-inspect":85}],104:[function(e,t,r){(function(e){(function(){/*! simple-concat. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */t.exports=function(t,r){var n=[];t.on("data",(function(e){n.push(e)})),t.once("end",(function(){r&&r(null,e.concat(n)),r=null})),t.once("error",(function(e){r&&r(e),r=null}))}}).call(this)}).call(this,e("buffer").Buffer)},{buffer:20}],105:[function(e,t,r){(function(r){(function(){/*! simple-get. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */t.exports=h;const n=e("simple-concat"),s=e("decompress-response"),i=e("http"),o=e("https"),a=e("once"),l=e("querystring"),u=e("url"),c=e=>null!==e&&"object"==typeof e&&"function"==typeof e.pipe;function h(e,t){if(e=Object.assign({maxRedirects:10},"string"==typeof e?{url:e}:e),t=a(t),e.url){const{hostname:t,port:r,protocol:n,auth:s,path:i}=u.parse(e.url);delete e.url,t||r||n||s?Object.assign(e,{hostname:t,port:r,protocol:n,auth:s,path:i}):e.path=i}const n={"accept-encoding":"gzip, deflate"};let f;e.headers&&Object.keys(e.headers).forEach((t=>n[t.toLowerCase()]=e.headers[t])),e.headers=n,e.body?f=e.json&&!c(e.body)?JSON.stringify(e.body):e.body:e.form&&(f="string"==typeof e.form?e.form:l.stringify(e.form),e.headers["content-type"]="application/x-www-form-urlencoded"),f&&(e.method||(e.method="POST"),c(f)||(e.headers["content-length"]=r.byteLength(f)),e.json&&!e.form&&(e.headers["content-type"]="application/json")),delete e.body,delete e.form,e.json&&(e.headers.accept="application/json"),e.method&&(e.method=e.method.toUpperCase());const p=e.hostname,d=("https:"===e.protocol?o:i).request(e,(r=>{if(!1!==e.followRedirects&&r.statusCode>=300&&r.statusCode<400&&r.headers.location){e.url=r.headers.location,delete e.headers.host,r.resume();const n=u.parse(e.url).hostname;return null!==n&&n!==p&&(delete e.headers.cookie,delete e.headers.authorization),"POST"===e.method&&[301,302].includes(r.statusCode)&&(e.method="GET",delete e.headers["content-length"],delete e.headers["content-type"]),0==e.maxRedirects--?t(new Error("too many redirects")):h(e,t)}const n="function"==typeof s&&"HEAD"!==e.method;t(null,n?s(r):r)}));return d.on("timeout",(()=>{d.abort(),t(new Error("Request timed out"))})),d.on("error",t),c(f)?f.on("error",t).pipe(d):d.end(f),d}h.concat=(e,t)=>h(e,((r,s)=>{if(r)return t(r);n(s,((r,n)=>{if(r)return t(r);if(e.json)try{n=JSON.parse(n.toString())}catch(r){return t(r,s,n)}t(null,s,n)}))})),["get","post","put","patch","head","delete"].forEach((e=>{h[e]=(t,r)=>("string"==typeof t&&(t={url:t}),h(Object.assign({method:e.toUpperCase()},t),r))}))}).call(this)}).call(this,e("buffer").Buffer)},{buffer:20,"decompress-response":18,http:106,https:70,once:86,querystring:100,"simple-concat":104,url:127}],106:[function(e,t,r){(function(t){(function(){var n=e("./lib/request"),s=e("./lib/response"),i=e("xtend"),o=e("builtin-status-codes"),a=e("url"),l=r;l.request=function(e,r){e="string"==typeof e?a.parse(e):i(e);var s=-1===t.location.protocol.search(/^https?:$/)?"http:":"",o=e.protocol||s,l=e.hostname||e.host,u=e.port,c=e.path||"/";l&&-1!==l.indexOf(":")&&(l="["+l+"]"),e.url=(l?o+"//"+l:"")+(u?":"+u:"")+c,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{};var h=new n(e);return r&&h.on("response",r),h},l.get=function(e,t){var r=l.request(e,t);return r.end(),r},l.ClientRequest=n,l.IncomingMessage=s.IncomingMessage,l.Agent=function(){},l.Agent.defaultMaxSockets=4,l.globalAgent=new l.Agent,l.STATUS_CODES=o,l.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./lib/request":108,"./lib/response":109,"builtin-status-codes":21,url:127,xtend:130}],107:[function(e,t,r){(function(e){(function(){var t;function n(){if(void 0!==t)return t;if(e.XMLHttpRequest){t=new e.XMLHttpRequest;try{t.open("GET",e.XDomainRequest?"/":"https://example.com")}catch(e){t=null}}else t=null;return t}function s(e){var t=n();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(e){}return!1}function i(e){return"function"==typeof e}r.fetch=i(e.fetch)&&i(e.ReadableStream),r.writableStream=i(e.WritableStream),r.abortController=i(e.AbortController),r.arraybuffer=r.fetch||s("arraybuffer"),r.msstream=!r.fetch&&s("ms-stream"),r.mozchunkedarraybuffer=!r.fetch&&s("moz-chunked-arraybuffer"),r.overrideMimeType=r.fetch||!!n()&&i(n().overrideMimeType),t=null}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],108:[function(e,t,r){(function(r,n,s){(function(){var i=e("./capability"),o=e("inherits"),a=e("./response"),l=e("readable-stream"),u=a.IncomingMessage,c=a.readyStates;var h=t.exports=function(e){var t,r=this;l.Writable.call(r),r._opts=e,r._body=[],r._headers={},e.auth&&r.setHeader("Authorization","Basic "+s.from(e.auth).toString("base64")),Object.keys(e.headers).forEach((function(t){r.setHeader(t,e.headers[t])}));var n=!0;if("disable-fetch"===e.mode||"requestTimeout"in e&&!i.abortController)n=!1,t=!0;else if("prefer-streaming"===e.mode)t=!1;else if("allow-wrong-content-type"===e.mode)t=!i.overrideMimeType;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");t=!0}r._mode=function(e,t){return i.fetch&&t?"fetch":i.mozchunkedarraybuffer?"moz-chunked-arraybuffer":i.msstream?"ms-stream":i.arraybuffer&&e?"arraybuffer":"text"}(t,n),r._fetchTimer=null,r._socketTimeout=null,r._socketTimer=null,r.on("finish",(function(){r._onFinish()}))};o(h,l.Writable),h.prototype.setHeader=function(e,t){var r=e.toLowerCase();-1===f.indexOf(r)&&(this._headers[r]={name:e,value:t})},h.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},h.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},h.prototype._onFinish=function(){var e=this;if(!e._destroyed){var t=e._opts;"timeout"in t&&0!==t.timeout&&e.setTimeout(t.timeout);var s=e._headers,o=null;"GET"!==t.method&&"HEAD"!==t.method&&(o=new Blob(e._body,{type:(s["content-type"]||{}).value||""}));var a=[];if(Object.keys(s).forEach((function(e){var t=s[e].name,r=s[e].value;Array.isArray(r)?r.forEach((function(e){a.push([t,e])})):a.push([t,r])})),"fetch"===e._mode){var l=null;if(i.abortController){var u=new AbortController;l=u.signal,e._fetchAbortController=u,"requestTimeout"in t&&0!==t.requestTimeout&&(e._fetchTimer=n.setTimeout((function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()}),t.requestTimeout))}n.fetch(e._opts.url,{method:e._opts.method,headers:a,body:o||void 0,mode:"cors",credentials:t.withCredentials?"include":"same-origin",signal:l}).then((function(t){e._fetchResponse=t,e._resetTimers(!1),e._connect()}),(function(t){e._resetTimers(!0),e._destroyed||e.emit("error",t)}))}else{var h=e._xhr=new n.XMLHttpRequest;try{h.open(e._opts.method,e._opts.url,!0)}catch(t){return void r.nextTick((function(){e.emit("error",t)}))}"responseType"in h&&(h.responseType=e._mode),"withCredentials"in h&&(h.withCredentials=!!t.withCredentials),"text"===e._mode&&"overrideMimeType"in h&&h.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in t&&(h.timeout=t.requestTimeout,h.ontimeout=function(){e.emit("requestTimeout")}),a.forEach((function(e){h.setRequestHeader(e[0],e[1])})),e._response=null,h.onreadystatechange=function(){switch(h.readyState){case c.LOADING:case c.DONE:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(h.onprogress=function(){e._onXHRProgress()}),h.onerror=function(){e._destroyed||(e._resetTimers(!0),e.emit("error",new Error("XHR error")))};try{h.send(o)}catch(t){return void r.nextTick((function(){e.emit("error",t)}))}}}},h.prototype._onXHRProgress=function(){var e=this;e._resetTimers(!1),function(e){try{var t=e.status;return null!==t&&0!==t}catch(e){return!1}}(e._xhr)&&!e._destroyed&&(e._response||e._connect(),e._response._onXHRProgress(e._resetTimers.bind(e)))},h.prototype._connect=function(){var e=this;e._destroyed||(e._response=new u(e._xhr,e._fetchResponse,e._mode,e._resetTimers.bind(e)),e._response.on("error",(function(t){e.emit("error",t)})),e.emit("response",e._response))},h.prototype._write=function(e,t,r){this._body.push(e),r()},h.prototype._resetTimers=function(e){var t=this;n.clearTimeout(t._socketTimer),t._socketTimer=null,e?(n.clearTimeout(t._fetchTimer),t._fetchTimer=null):t._socketTimeout&&(t._socketTimer=n.setTimeout((function(){t.emit("timeout")}),t._socketTimeout))},h.prototype.abort=h.prototype.destroy=function(e){var t=this;t._destroyed=!0,t._resetTimers(!0),t._response&&(t._response._destroyed=!0),t._xhr?t._xhr.abort():t._fetchAbortController&&t._fetchAbortController.abort(),e&&t.emit("error",e)},h.prototype.end=function(e,t,r){"function"==typeof e&&(r=e,e=void 0),l.Writable.prototype.end.call(this,e,t,r)},h.prototype.setTimeout=function(e,t){var r=this;t&&r.once("timeout",t),r._socketTimeout=e,r._resetTimers(!1)},h.prototype.flushHeaders=function(){},h.prototype.setNoDelay=function(){},h.prototype.setSocketKeepAlive=function(){};var f=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]}).call(this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer)},{"./capability":107,"./response":109,_process:91,buffer:20,inherits:72,"readable-stream":124}],109:[function(e,t,r){(function(t,n,s){(function(){var i=e("./capability"),o=e("inherits"),a=e("readable-stream"),l=r.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},u=r.IncomingMessage=function(e,r,n,o){var l=this;if(a.Readable.call(l),l._mode=n,l.headers={},l.rawHeaders=[],l.trailers={},l.rawTrailers=[],l.on("end",(function(){t.nextTick((function(){l.emit("close")}))})),"fetch"===n){if(l._fetchResponse=r,l.url=r.url,l.statusCode=r.status,l.statusMessage=r.statusText,r.headers.forEach((function(e,t){l.headers[t.toLowerCase()]=e,l.rawHeaders.push(t,e)})),i.writableStream){var u=new WritableStream({write:function(e){return o(!1),new Promise((function(t,r){l._destroyed?r():l.push(s.from(e))?t():l._resumeFetch=t}))},close:function(){o(!0),l._destroyed||l.push(null)},abort:function(e){o(!0),l._destroyed||l.emit("error",e)}});try{return void r.body.pipeTo(u).catch((function(e){o(!0),l._destroyed||l.emit("error",e)}))}catch(d){}}var c=r.body.getReader();function p(){c.read().then((function(e){l._destroyed||(o(e.done),e.done?l.push(null):(l.push(s.from(e.value)),p()))})).catch((function(e){o(!0),l._destroyed||l.emit("error",e)}))}p()}else{if(l._xhr=e,l._pos=0,l.url=e.responseURL,l.statusCode=e.status,l.statusMessage=e.statusText,e.getAllResponseHeaders().split(/\r?\n/).forEach((function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var r=t[1].toLowerCase();"set-cookie"===r?(void 0===l.headers[r]&&(l.headers[r]=[]),l.headers[r].push(t[2])):void 0!==l.headers[r]?l.headers[r]+=", "+t[2]:l.headers[r]=t[2],l.rawHeaders.push(t[1],t[2])}})),l._charset="x-user-defined",!i.overrideMimeType){var h=l.rawHeaders["mime-type"];if(h){var f=h.match(/;\s*charset=([^;])(;|$)/);f&&(l._charset=f[1].toLowerCase())}l._charset||(l._charset="utf-8")}}};o(u,a.Readable),u.prototype._read=function(){var e=this._resumeFetch;e&&(this._resumeFetch=null,e())},u.prototype._onXHRProgress=function(e){var t=this,r=t._xhr,i=null;switch(t._mode){case"text":if((i=r.responseText).length>t._pos){var o=i.substr(t._pos);if("x-user-defined"===t._charset){for(var a=s.alloc(o.length),u=0;u<o.length;u++)a[u]=255&o.charCodeAt(u);t.push(a)}else t.push(o,t._charset);t._pos=i.length}break;case"arraybuffer":if(r.readyState!==l.DONE||!r.response)break;i=r.response,t.push(s.from(new Uint8Array(i)));break;case"moz-chunked-arraybuffer":if(i=r.response,r.readyState!==l.LOADING||!i)break;t.push(s.from(new Uint8Array(i)));break;case"ms-stream":if(i=r.response,r.readyState!==l.LOADING)break;var c=new n.MSStreamReader;c.onprogress=function(){c.result.byteLength>t._pos&&(t.push(s.from(new Uint8Array(c.result.slice(t._pos)))),t._pos=c.result.byteLength)},c.onload=function(){e(!0),t.push(null)},c.readAsArrayBuffer(i)}t._xhr.readyState===l.DONE&&"ms-stream"!==t._mode&&(e(!0),t.push(null))}}).call(this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer)},{"./capability":107,_process:91,buffer:20,inherits:72,"readable-stream":124}],110:[function(e,t,r){var n={};function s(e,t,r){r||(r=Error);var s=function(e){var r,n;function s(r,n,s){return e.call(this,function(e,r,n){return"string"==typeof t?t:t(e,r,n)}(r,n,s))||this}return n=e,(r=s).prototype=Object.create(n.prototype),r.prototype.constructor=r,r.__proto__=n,s}(r);s.prototype.name=r.name,s.prototype.code=e,n[e]=s}function i(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map((function(e){return String(e)})),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}s("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),s("ERR_INVALID_ARG_TYPE",(function(e,t,r){var n,s,o,a;if("string"==typeof t&&(s="not ",t.substr(!o||o<0?0:+o,s.length)===s)?(n="must not be",t=t.replace(/^not /,"")):n="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}(e," argument"))a="The ".concat(e," ").concat(n," ").concat(i(t,"type"));else{var l=function(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}(e,".")?"property":"argument";a='The "'.concat(e,'" ').concat(l," ").concat(n," ").concat(i(t,"type"))}return a+=". Received type ".concat(typeof r)}),TypeError),s("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),s("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),s("ERR_STREAM_PREMATURE_CLOSE","Premature close"),s("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),s("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),s("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),s("ERR_STREAM_WRITE_AFTER_END","write after end"),s("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),s("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),s("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=n},{}],111:[function(e,t,r){(function(r){(function(){var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};t.exports=u;var s=e("./_stream_readable"),i=e("./_stream_writable");e("inherits")(u,s);for(var o=n(i.prototype),a=0;a<o.length;a++){var l=o[a];u.prototype[l]||(u.prototype[l]=i.prototype[l])}function u(e){if(!(this instanceof u))return new u(e);s.call(this,e),i.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",c)))}function c(){this._writableState.ended||r.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(u.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(u.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})}).call(this)}).call(this,e("_process"))},{"./_stream_readable":113,"./_stream_writable":115,_process:91,inherits:72}],112:[function(e,t,r){t.exports=s;var n=e("./_stream_transform");function s(e){if(!(this instanceof s))return new s(e);n.call(this,e)}e("inherits")(s,n),s.prototype._transform=function(e,t,r){r(null,e)}},{"./_stream_transform":114,inherits:72}],113:[function(e,t,r){(function(r,n){(function(){var s;t.exports=E,E.ReadableState=x;e("events").EventEmitter;var i=function(e,t){return e.listeners(t).length},o=e("./internal/streams/stream"),a=e("buffer").Buffer,l=(void 0!==n?n:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var u,c=e("util");u=c&&c.debuglog?c.debuglog("stream"):function(){};var h,f,p,d=e("./internal/streams/buffer_list"),g=e("./internal/streams/destroy"),y=e("./internal/streams/state").getHighWaterMark,m=e("../errors").codes,b=m.ERR_INVALID_ARG_TYPE,v=m.ERR_STREAM_PUSH_AFTER_EOF,S=m.ERR_METHOD_NOT_IMPLEMENTED,P=m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;e("inherits")(E,o);var T=g.errorOrDestroy,w=["error","close","destroy","pause","resume"];function x(t,r,n){s=s||e("./_stream_duplex"),t=t||{},"boolean"!=typeof n&&(n=r instanceof s),this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=y(this,t,"readableHighWaterMark",n),this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(h||(h=e("string_decoder/").StringDecoder),this.decoder=new h(t.encoding),this.encoding=t.encoding)}function E(t){if(s=s||e("./_stream_duplex"),!(this instanceof E))return new E(t);var r=this instanceof s;this._readableState=new x(t,this,r),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),o.call(this)}function k(e,t,r,n,s){u("readableAddChunk",t);var i,o=e._readableState;if(null===t)o.reading=!1,function(e,t){if(u("onEofChunk"),t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?N(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,j(e)))}(e,o);else if(s||(i=function(e,t){var r;n=t,a.isBuffer(n)||n instanceof l||"string"==typeof t||void 0===t||e.objectMode||(r=new b("chunk",["string","Buffer","Uint8Array"],t));var n;return r}(o,t)),i)T(e,i);else if(o.objectMode||t&&t.length>0)if("string"==typeof t||o.objectMode||Object.getPrototypeOf(t)===a.prototype||(t=function(e){return a.from(e)}(t)),n)o.endEmitted?T(e,new P):A(e,o,t,!0);else if(o.ended)T(e,new v);else{if(o.destroyed)return!1;o.reading=!1,o.decoder&&!r?(t=o.decoder.write(t),o.objectMode||0!==t.length?A(e,o,t,!1):R(e,o)):A(e,o,t,!1)}else n||(o.reading=!1,R(e,o));return!o.ended&&(o.length<o.highWaterMark||0===o.length)}function A(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&N(e)),R(e,t)}Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),E.prototype.destroy=g.destroy,E.prototype._undestroy=g.undestroy,E.prototype._destroy=function(e,t){t(e)},E.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=a.from(e,t),t=""),r=!0),k(this,e,t,!1,r)},E.prototype.unshift=function(e){return k(this,e,null,!0,!1)},E.prototype.isPaused=function(){return!1===this._readableState.flowing},E.prototype.setEncoding=function(t){h||(h=e("string_decoder/").StringDecoder);var r=new h(t);this._readableState.decoder=r,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,s="";null!==n;)s+=r.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==s&&this._readableState.buffer.push(s),this._readableState.length=s.length,this};var O=1073741824;function _(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=O?e=O:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function N(e){var t=e._readableState;u("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(u("emitReadable",t.flowing),t.emittedReadable=!0,r.nextTick(j,e))}function j(e){var t=e._readableState;u("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,$(e)}function R(e,t){t.readingMore||(t.readingMore=!0,r.nextTick(M,e,t))}function M(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(u("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function L(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function C(e){u("readable nexttick read 0"),e.read(0)}function D(e,t){u("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),$(e),t.flowing&&!t.reading&&e.read(0)}function $(e){var t=e._readableState;for(u("flow",t.flowing);t.flowing&&null!==e.read(););}function F(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function I(e){var t=e._readableState;u("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,r.nextTick(V,t,e))}function V(e,t){if(u("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function B(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}E.prototype.read=function(e){u("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return u("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?I(this):N(this),null;if(0===(e=_(e,t))&&t.ended)return 0===t.length&&I(this),null;var n,s=t.needReadable;return u("need readable",s),(0===t.length||t.length-e<t.highWaterMark)&&u("length less than watermark",s=!0),t.ended||t.reading?u("reading or ended",s=!1):s&&(u("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=_(r,t))),null===(n=e>0?F(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&I(this)),null!==n&&this.emit("data",n),n},E.prototype._read=function(e){T(this,new S("_read()"))},E.prototype.pipe=function(e,t){var n=this,s=this._readableState;switch(s.pipesCount){case 0:s.pipes=e;break;case 1:s.pipes=[s.pipes,e];break;default:s.pipes.push(e)}s.pipesCount+=1,u("pipe count=%d opts=%j",s.pipesCount,t);var o=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr?l:y;function a(t,r){u("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,u("cleanup"),e.removeListener("close",d),e.removeListener("finish",g),e.removeListener("drain",c),e.removeListener("error",p),e.removeListener("unpipe",a),n.removeListener("end",l),n.removeListener("end",y),n.removeListener("data",f),h=!0,!s.awaitDrain||e._writableState&&!e._writableState.needDrain||c())}function l(){u("onend"),e.end()}s.endEmitted?r.nextTick(o):n.once("end",o),e.on("unpipe",a);var c=function(e){return function(){var t=e._readableState;u("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&i(e,"data")&&(t.flowing=!0,$(e))}}(n);e.on("drain",c);var h=!1;function f(t){u("ondata");var r=e.write(t);u("dest.write",r),!1===r&&((1===s.pipesCount&&s.pipes===e||s.pipesCount>1&&-1!==B(s.pipes,e))&&!h&&(u("false write response, pause",s.awaitDrain),s.awaitDrain++),n.pause())}function p(t){u("onerror",t),y(),e.removeListener("error",p),0===i(e,"error")&&T(e,t)}function d(){e.removeListener("finish",g),y()}function g(){u("onfinish"),e.removeListener("close",d),y()}function y(){u("unpipe"),n.unpipe(e)}return n.on("data",f),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",p),e.once("close",d),e.once("finish",g),e.emit("pipe",n),s.flowing||(u("pipe resume"),n.resume()),e},E.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,s=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<s;i++)n[i].emit("unpipe",this,{hasUnpiped:!1});return this}var o=B(t.pipes,e);return-1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},E.prototype.on=function(e,t){var n=o.prototype.on.call(this,e,t),s=this._readableState;return"data"===e?(s.readableListening=this.listenerCount("readable")>0,!1!==s.flowing&&this.resume()):"readable"===e&&(s.endEmitted||s.readableListening||(s.readableListening=s.needReadable=!0,s.flowing=!1,s.emittedReadable=!1,u("on readable",s.length,s.reading),s.length?N(this):s.reading||r.nextTick(C,this))),n},E.prototype.addListener=E.prototype.on,E.prototype.removeListener=function(e,t){var n=o.prototype.removeListener.call(this,e,t);return"readable"===e&&r.nextTick(L,this),n},E.prototype.removeAllListeners=function(e){var t=o.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||r.nextTick(L,this),t},E.prototype.resume=function(){var e=this._readableState;return e.flowing||(u("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,r.nextTick(D,e,t))}(this,e)),e.paused=!1,this},E.prototype.pause=function(){return u("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(u("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},E.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var s in e.on("end",(function(){if(u("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(s){(u("wrapped data"),r.decoder&&(s=r.decoder.write(s)),r.objectMode&&null==s)||(r.objectMode||s&&s.length)&&(t.push(s)||(n=!0,e.pause()))})),e)void 0===this[s]&&"function"==typeof e[s]&&(this[s]=function(t){return function(){return e[t].apply(e,arguments)}}(s));for(var i=0;i<w.length;i++)e.on(w[i],this.emit.bind(this,w[i]));return this._read=function(t){u("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(E.prototype[Symbol.asyncIterator]=function(){return void 0===f&&(f=e("./internal/streams/async_iterator")),f(this)}),Object.defineProperty(E.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(E.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(E.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),E._fromList=F,Object.defineProperty(E.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(E.from=function(t,r){return void 0===p&&(p=e("./internal/streams/from")),p(E,t,r)})}).call(this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../errors":110,"./_stream_duplex":111,"./internal/streams/async_iterator":116,"./internal/streams/buffer_list":117,"./internal/streams/destroy":118,"./internal/streams/from":120,"./internal/streams/state":122,"./internal/streams/stream":123,_process:91,buffer:20,events:44,inherits:72,"string_decoder/":125,util:18}],114:[function(e,t,r){t.exports=c;var n=e("../errors").codes,s=n.ERR_METHOD_NOT_IMPLEMENTED,i=n.ERR_MULTIPLE_CALLBACK,o=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=n.ERR_TRANSFORM_WITH_LENGTH_0,l=e("./_stream_duplex");function u(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new i);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var s=this._readableState;s.reading=!1,(s.needReadable||s.length<s.highWaterMark)&&this._read(s.highWaterMark)}function c(e){if(!(this instanceof c))return new c(e);l.call(this,e),this._transformState={afterTransform:u.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",h)}function h(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?f(this,null,null):this._flush((function(t,r){f(e,t,r)}))}function f(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new a;if(e._transformState.transforming)throw new o;return e.push(null)}e("inherits")(c,l),c.prototype.push=function(e,t){return this._transformState.needTransform=!1,l.prototype.push.call(this,e,t)},c.prototype._transform=function(e,t,r){r(new s("_transform()"))},c.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var s=this._readableState;(n.needTransform||s.needReadable||s.length<s.highWaterMark)&&this._read(s.highWaterMark)}},c.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},c.prototype._destroy=function(e,t){l.prototype._destroy.call(this,e,(function(e){t(e)}))}},{"../errors":110,"./_stream_duplex":111,inherits:72}],115:[function(e,t,r){(function(r,n){(function(){function s(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var s=n.callback;t.pendingcb--,s(r),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}var i;t.exports=E,E.WritableState=x;var o={deprecate:e("util-deprecate")},a=e("./internal/streams/stream"),l=e("buffer").Buffer,u=(void 0!==n?n:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var c,h=e("./internal/streams/destroy"),f=e("./internal/streams/state").getHighWaterMark,p=e("../errors").codes,d=p.ERR_INVALID_ARG_TYPE,g=p.ERR_METHOD_NOT_IMPLEMENTED,y=p.ERR_MULTIPLE_CALLBACK,m=p.ERR_STREAM_CANNOT_PIPE,b=p.ERR_STREAM_DESTROYED,v=p.ERR_STREAM_NULL_VALUES,S=p.ERR_STREAM_WRITE_AFTER_END,P=p.ERR_UNKNOWN_ENCODING,T=h.errorOrDestroy;function w(){}function x(t,n,o){i=i||e("./_stream_duplex"),t=t||{},"boolean"!=typeof o&&(o=n instanceof i),this.objectMode=!!t.objectMode,o&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=f(this,t,"writableHighWaterMark",o),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===t.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,s=n.sync,i=n.writecb;if("function"!=typeof i)throw new y;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,s,i){--t.pendingcb,n?(r.nextTick(i,s),r.nextTick(j,e,t),e._writableState.errorEmitted=!0,T(e,s)):(i(s),e._writableState.errorEmitted=!0,T(e,s),j(e,t))}(e,n,s,t,i);else{var o=_(n)||e.destroyed;o||n.corked||n.bufferProcessing||!n.bufferedRequest||O(e,n),s?r.nextTick(A,e,n,o,i):A(e,n,o,i)}}(n,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new s(this)}function E(t){var r=this instanceof(i=i||e("./_stream_duplex"));if(!r&&!c.call(E,this))return new E(t);this._writableState=new x(t,this,r),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),a.call(this)}function k(e,t,r,n,s,i,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new b("write")):r?e._writev(s,t.onwrite):e._write(s,i,t.onwrite),t.sync=!1}function A(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),j(e,t)}function O(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),o=t.corkedRequestsFree;o.entry=r;for(var a=0,l=!0;r;)i[a]=r,r.isBuf||(l=!1),r=r.next,a+=1;i.allBuffers=l,k(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new s(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,c=r.encoding,h=r.callback;if(k(e,t,!1,t.objectMode?1:u.length,u,c,h),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function _(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function N(e,t){e._final((function(r){t.pendingcb--,r&&T(e,r),t.prefinished=!0,e.emit("prefinish"),j(e,t)}))}function j(e,t){var n=_(t);if(n&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,r.nextTick(N,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var s=e._readableState;(!s||s.autoDestroy&&s.endEmitted)&&e.destroy()}return n}e("inherits")(E,a),x.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(x.prototype,"buffer",{get:o.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(c=Function.prototype[Symbol.hasInstance],Object.defineProperty(E,Symbol.hasInstance,{value:function(e){return!!c.call(this,e)||this===E&&(e&&e._writableState instanceof x)}})):c=function(e){return e instanceof this},E.prototype.pipe=function(){T(this,new m)},E.prototype.write=function(e,t,n){var s,i=this._writableState,o=!1,a=!i.objectMode&&(s=e,l.isBuffer(s)||s instanceof u);return a&&!l.isBuffer(e)&&(e=function(e){return l.from(e)}(e)),"function"==typeof t&&(n=t,t=null),a?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof n&&(n=w),i.ending?function(e,t){var n=new S;T(e,n),r.nextTick(t,n)}(this,n):(a||function(e,t,n,s){var i;return null===n?i=new v:"string"==typeof n||t.objectMode||(i=new d("chunk",["string","Buffer"],n)),!i||(T(e,i),r.nextTick(s,i),!1)}(this,i,e,n))&&(i.pendingcb++,o=function(e,t,r,n,s,i){if(!r){var o=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=l.from(t,r));return t}(t,n,s);n!==o&&(r=!0,s="buffer",n=o)}var a=t.objectMode?1:n.length;t.length+=a;var u=t.length<t.highWaterMark;u||(t.needDrain=!0);if(t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:s,isBuf:r,callback:i,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else k(e,t,!1,a,n,s,i);return u}(this,i,a,e,t,n)),o},E.prototype.cork=function(){this._writableState.corked++},E.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||O(this,e))},E.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new P(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(E.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(E.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),E.prototype._write=function(e,t,r){r(new g("_write()"))},E.prototype._writev=null,E.prototype.end=function(e,t,n){var s=this._writableState;return"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),s.corked&&(s.corked=1,this.uncork()),s.ending||function(e,t,n){t.ending=!0,j(e,t),n&&(t.finished?r.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,s,n),this},Object.defineProperty(E.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),E.prototype.destroy=h.destroy,E.prototype._undestroy=h.undestroy,E.prototype._destroy=function(e,t){t(e)}}).call(this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../errors":110,"./_stream_duplex":111,"./internal/streams/destroy":118,"./internal/streams/state":122,"./internal/streams/stream":123,_process:91,buffer:20,inherits:72,"util-deprecate":128}],116:[function(e,t,r){(function(r){(function(){var n;function s(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var i=e("./end-of-stream"),o=Symbol("lastResolve"),a=Symbol("lastReject"),l=Symbol("error"),u=Symbol("ended"),c=Symbol("lastPromise"),h=Symbol("handlePromise"),f=Symbol("stream");function p(e,t){return{value:e,done:t}}function d(e){var t=e[o];if(null!==t){var r=e[f].read();null!==r&&(e[c]=null,e[o]=null,e[a]=null,t(p(r,!1)))}}function g(e){r.nextTick(d,e)}var y=Object.getPrototypeOf((function(){})),m=Object.setPrototypeOf((s(n={get stream(){return this[f]},next:function(){var e=this,t=this[l];if(null!==t)return Promise.reject(t);if(this[u])return Promise.resolve(p(void 0,!0));if(this[f].destroyed)return new Promise((function(t,n){r.nextTick((function(){e[l]?n(e[l]):t(p(void 0,!0))}))}));var n,s=this[c];if(s)n=new Promise(function(e,t){return function(r,n){e.then((function(){t[u]?r(p(void 0,!0)):t[h](r,n)}),n)}}(s,this));else{var i=this[f].read();if(null!==i)return Promise.resolve(p(i,!1));n=new Promise(this[h])}return this[c]=n,n}},Symbol.asyncIterator,(function(){return this})),s(n,"return",(function(){var e=this;return new Promise((function(t,r){e[f].destroy(null,(function(e){e?r(e):t(p(void 0,!0))}))}))})),n),y);t.exports=function(e){var t,r=Object.create(m,(s(t={},f,{value:e,writable:!0}),s(t,o,{value:null,writable:!0}),s(t,a,{value:null,writable:!0}),s(t,l,{value:null,writable:!0}),s(t,u,{value:e._readableState.endEmitted,writable:!0}),s(t,h,{value:function(e,t){var n=r[f].read();n?(r[c]=null,r[o]=null,r[a]=null,e(p(n,!1))):(r[o]=e,r[a]=t)},writable:!0}),t));return r[c]=null,i(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[a];return null!==t&&(r[c]=null,r[o]=null,r[a]=null,t(e)),void(r[l]=e)}var n=r[o];null!==n&&(r[c]=null,r[o]=null,r[a]=null,n(p(void 0,!0))),r[u]=!0})),e.on("readable",g.bind(null,r)),r}}).call(this)}).call(this,e("_process"))},{"./end-of-stream":119,_process:91}],117:[function(e,t,r){function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function i(e,t,r){return(t=a(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}function a(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var l=e("buffer").Buffer,u=e("util").inspect,c=u&&u.custom||"inspect";t.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}var t,r,n;return t=e,(r=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return l.alloc(0);for(var t,r,n,s=l.allocUnsafe(e>>>0),i=this.head,o=0;i;)t=i.data,r=s,n=o,l.prototype.copy.call(t,r,n),o+=i.data.length,i=i.next;return s}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var s=t.data,i=e>s.length?s.length:e;if(i===s.length?n+=s:n+=s.slice(0,e),0==(e-=i)){i===s.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=s.slice(i));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=l.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var s=r.data,i=e>s.length?s.length:e;if(s.copy(t,t.length-e,0,i),0==(e-=i)){i===s.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=s.slice(i));break}++n}return this.length-=n,t}},{key:c,value:function(e,t){return u(this,s(s({},t),{},{depth:0,customInspect:!1}))}}])&&o(t.prototype,r),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}()},{buffer:20,util:18}],118:[function(e,t,r){(function(e){(function(){function r(e,t){s(e,t),n(e)}function n(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function s(e,t){e.emit("error",t)}t.exports={destroy:function(t,i){var o=this,a=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return a||l?(i?i(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(s,this,t)):e.nextTick(s,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!i&&t?o._writableState?o._writableState.errorEmitted?e.nextTick(n,o):(o._writableState.errorEmitted=!0,e.nextTick(r,o,t)):e.nextTick(r,o,t):i?(e.nextTick(n,o),i(t)):e.nextTick(n,o)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}}).call(this)}).call(this,e("_process"))},{_process:91}],119:[function(e,t,r){var n=e("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function s(){}t.exports=function e(t,r,i){if("function"==typeof r)return e(t,null,r);r||(r={}),i=function(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),s=0;s<r;s++)n[s]=arguments[s];e.apply(this,n)}}}(i||s);var o=r.readable||!1!==r.readable&&t.readable,a=r.writable||!1!==r.writable&&t.writable,l=function(){t.writable||c()},u=t._writableState&&t._writableState.finished,c=function(){a=!1,u=!0,o||i.call(t)},h=t._readableState&&t._readableState.endEmitted,f=function(){o=!1,h=!0,a||i.call(t)},p=function(e){i.call(t,e)},d=function(){var e;return o&&!h?(t._readableState&&t._readableState.ended||(e=new n),i.call(t,e)):a&&!u?(t._writableState&&t._writableState.ended||(e=new n),i.call(t,e)):void 0},g=function(){t.req.on("finish",c)};return!function(e){return e.setHeader&&"function"==typeof e.abort}(t)?a&&!t._writableState&&(t.on("end",l),t.on("close",l)):(t.on("complete",c),t.on("abort",d),t.req?g():t.on("request",g)),t.on("end",f),t.on("finish",c),!1!==r.error&&t.on("error",p),t.on("close",d),function(){t.removeListener("complete",c),t.removeListener("abort",d),t.removeListener("request",g),t.req&&t.req.removeListener("finish",c),t.removeListener("end",l),t.removeListener("close",l),t.removeListener("finish",c),t.removeListener("end",f),t.removeListener("error",p),t.removeListener("close",d)}}},{"../../../errors":110}],120:[function(e,t,r){t.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],121:[function(e,t,r){var n;var s=e("../../../errors").codes,i=s.ERR_MISSING_ARGS,o=s.ERR_STREAM_DESTROYED;function a(e){if(e)throw e}function l(e){e()}function u(e,t){return e.pipe(t)}t.exports=function(){for(var t=arguments.length,r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];var c,h=function(e){return e.length?"function"!=typeof e[e.length-1]?a:e.pop():a}(r);if(Array.isArray(r[0])&&(r=r[0]),r.length<2)throw new i("streams");var f=r.map((function(t,s){var i=s<r.length-1;return function(t,r,s,i){i=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(i);var a=!1;t.on("close",(function(){a=!0})),void 0===n&&(n=e("./end-of-stream")),n(t,{readable:r,writable:s},(function(e){if(e)return i(e);a=!0,i()}));var l=!1;return function(e){if(!a&&!l)return l=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(t)?t.abort():"function"==typeof t.destroy?t.destroy():void i(e||new o("pipe"))}}(t,i,s>0,(function(e){c||(c=e),e&&f.forEach(l),i||(f.forEach(l),h(c))}))}));return r.reduce(u)}},{"../../../errors":110,"./end-of-stream":119}],122:[function(e,t,r){var n=e("../../../errors").codes.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(e,t,r,s){var i=function(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}(t,s,r);if(null!=i){if(!isFinite(i)||Math.floor(i)!==i||i<0)throw new n(s?r:"highWaterMark",i);return Math.floor(i)}return e.objectMode?16:16384}}},{"../../../errors":110}],123:[function(e,t,r){t.exports=e("events").EventEmitter},{events:44}],124:[function(e,t,r){(r=t.exports=e("./lib/_stream_readable.js")).Stream=r,r.Readable=r,r.Writable=e("./lib/_stream_writable.js"),r.Duplex=e("./lib/_stream_duplex.js"),r.Transform=e("./lib/_stream_transform.js"),r.PassThrough=e("./lib/_stream_passthrough.js"),r.finished=e("./lib/internal/streams/end-of-stream.js"),r.pipeline=e("./lib/internal/streams/pipeline.js")},{"./lib/_stream_duplex.js":111,"./lib/_stream_passthrough.js":112,"./lib/_stream_readable.js":113,"./lib/_stream_transform.js":114,"./lib/_stream_writable.js":115,"./lib/internal/streams/end-of-stream.js":119,"./lib/internal/streams/pipeline.js":121}],125:[function(e,t,r){var n=e("safe-buffer").Buffer,s=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function i(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===s||!s(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=l,this.end=u,t=4;break;case"utf8":this.fillLast=a,t=4;break;case"base64":this.text=c,this.end=h,t=3;break;default:return this.write=f,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function o(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function a(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function l(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function c(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function f(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}r.StringDecoder=i,i.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},i.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},i.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var s=o(t[n]);if(s>=0)return s>0&&(e.lastNeed=s-1),s;if(--n<r||-2===s)return 0;if(s=o(t[n]),s>=0)return s>0&&(e.lastNeed=s-2),s;if(--n<r||-2===s)return 0;if(s=o(t[n]),s>=0)return s>0&&(2===s?s=0:e.lastNeed=s-3),s;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},i.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},{"safe-buffer":101}],126:[function(e,t,r){(function(t,n){(function(){var s=e("process/browser.js").nextTick,i=Function.prototype.apply,o=Array.prototype.slice,a={},l=0;function u(e,t){this._id=e,this._clearFn=t}r.setTimeout=function(){return new u(i.call(setTimeout,window,arguments),clearTimeout)},r.setInterval=function(){return new u(i.call(setInterval,window,arguments),clearInterval)},r.clearTimeout=r.clearInterval=function(e){e.close()},u.prototype.unref=u.prototype.ref=function(){},u.prototype.close=function(){this._clearFn.call(window,this._id)},r.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},r.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},r._unrefActive=r.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},r.setImmediate="function"==typeof t?t:function(e){var t=l++,n=!(arguments.length<2)&&o.call(arguments,1);return a[t]=!0,s((function(){a[t]&&(n?e.apply(null,n):e.call(null),r.clearImmediate(t))})),t},r.clearImmediate="function"==typeof n?n:function(e){delete a[e]}}).call(this)}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":91,timers:126}],127:[function(e,t,r){var n=e("punycode");function s(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var i=/^([a-z0-9.+-]+:)/i,o=/:[0-9]*$/,a=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,l=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(l),c=["%","/","?",";","#"].concat(u),h=["/","?","#"],f=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,d={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},m=e("qs");function b(e,t,r){if(e&&"object"==typeof e&&e instanceof s)return e;var n=new s;return n.parse(e,t,r),n}s.prototype.parse=function(e,t,r){if("string"!=typeof e)throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var s=e.indexOf("?"),o=-1!==s&&s<e.indexOf("#")?"?":"#",l=e.split(o);l[0]=l[0].replace(/\\/g,"/");var b=e=l.join(o);if(b=b.trim(),!r&&1===e.split("#").length){var v=a.exec(b);if(v)return this.path=b,this.href=b,this.pathname=v[1],v[2]?(this.search=v[2],this.query=t?m.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var S=i.exec(b);if(S){var P=(S=S[0]).toLowerCase();this.protocol=P,b=b.substr(S.length)}if(r||S||b.match(/^\/\/[^@/]+@[^@/]+/)){var T="//"===b.substr(0,2);!T||S&&g[S]||(b=b.substr(2),this.slashes=!0)}if(!g[S]&&(T||S&&!y[S])){for(var w,x,E=-1,k=0;k<h.length;k++){-1!==(A=b.indexOf(h[k]))&&(-1===E||A<E)&&(E=A)}-1!==(x=-1===E?b.lastIndexOf("@"):b.lastIndexOf("@",E))&&(w=b.slice(0,x),b=b.slice(x+1),this.auth=decodeURIComponent(w)),E=-1;for(k=0;k<c.length;k++){var A;-1!==(A=b.indexOf(c[k]))&&(-1===E||A<E)&&(E=A)}-1===E&&(E=b.length),this.host=b.slice(0,E),b=b.slice(E),this.parseHost(),this.hostname=this.hostname||"";var O="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!O)for(var _=this.hostname.split(/\./),N=(k=0,_.length);k<N;k++){var j=_[k];if(j&&!j.match(f)){for(var R="",M=0,L=j.length;M<L;M++)j.charCodeAt(M)>127?R+="x":R+=j[M];if(!R.match(f)){var C=_.slice(0,k),D=_.slice(k+1),$=j.match(p);$&&(C.push($[1]),D.unshift($[2])),D.length&&(b="/"+D.join(".")+b),this.hostname=C.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),O||(this.hostname=n.toASCII(this.hostname));var F=this.port?":"+this.port:"",I=this.hostname||"";this.host=I+F,this.href+=this.host,O&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!d[P])for(k=0,N=u.length;k<N;k++){var V=u[k];if(-1!==b.indexOf(V)){var B=encodeURIComponent(V);B===V&&(B=escape(V)),b=b.split(V).join(B)}}var U=b.indexOf("#");-1!==U&&(this.hash=b.substr(U),b=b.slice(0,U));var H=b.indexOf("?");if(-1!==H?(this.search=b.substr(H),this.query=b.substr(H+1),t&&(this.query=m.parse(this.query)),b=b.slice(0,H)):t&&(this.search="",this.query={}),b&&(this.pathname=b),y[P]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){F=this.pathname||"";var W=this.search||"";this.path=F+W}return this.href=this.format(),this},s.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",s=!1,i="";this.host?s=e+this.host:this.hostname&&(s=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(s+=":"+this.port)),this.query&&"object"==typeof this.query&&Object.keys(this.query).length&&(i=m.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var o=this.search||i&&"?"+i||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||y[t])&&!1!==s?(s="//"+(s||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):s||(s=""),n&&"#"!==n.charAt(0)&&(n="#"+n),o&&"?"!==o.charAt(0)&&(o="?"+o),t+s+(r=r.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(o=o.replace("#","%23"))+n},s.prototype.resolve=function(e){return this.resolveObject(b(e,!1,!0)).format()},s.prototype.resolveObject=function(e){if("string"==typeof e){var t=new s;t.parse(e,!1,!0),e=t}for(var r=new s,n=Object.keys(this),i=0;i<n.length;i++){var o=n[i];r[o]=this[o]}if(r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var a=Object.keys(e),l=0;l<a.length;l++){var u=a[l];"protocol"!==u&&(r[u]=e[u])}return y[r.protocol]&&r.hostname&&!r.pathname&&(r.pathname="/",r.path=r.pathname),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!y[e.protocol]){for(var c=Object.keys(e),h=0;h<c.length;h++){var f=c[h];r[f]=e[f]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||g[e.protocol])r.pathname=e.pathname;else{for(var p=(e.pathname||"").split("/");p.length&&!(e.host=p.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==p[0]&&p.unshift(""),p.length<2&&p.unshift(""),r.pathname=p.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var d=r.pathname||"",m=r.search||"";r.path=d+m}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var b=r.pathname&&"/"===r.pathname.charAt(0),v=e.host||e.pathname&&"/"===e.pathname.charAt(0),S=v||b||r.host&&e.pathname,P=S,T=r.pathname&&r.pathname.split("/")||[],w=(p=e.pathname&&e.pathname.split("/")||[],r.protocol&&!y[r.protocol]);if(w&&(r.hostname="",r.port=null,r.host&&(""===T[0]?T[0]=r.host:T.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===p[0]?p[0]=e.host:p.unshift(e.host)),e.host=null),S=S&&(""===p[0]||""===T[0])),v)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,T=p;else if(p.length)T||(T=[]),T.pop(),T=T.concat(p),r.search=e.search,r.query=e.query;else if(null!=e.search){if(w)r.host=T.shift(),r.hostname=r.host,(O=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=O.shift(),r.hostname=O.shift(),r.host=r.hostname);return r.search=e.search,r.query=e.query,null===r.pathname&&null===r.search||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!T.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var x=T.slice(-1)[0],E=(r.host||e.host||T.length>1)&&("."===x||".."===x)||""===x,k=0,A=T.length;A>=0;A--)"."===(x=T[A])?T.splice(A,1):".."===x?(T.splice(A,1),k++):k&&(T.splice(A,1),k--);if(!S&&!P)for(;k--;k)T.unshift("..");!S||""===T[0]||T[0]&&"/"===T[0].charAt(0)||T.unshift(""),E&&"/"!==T.join("/").substr(-1)&&T.push("");var O,_=""===T[0]||T[0]&&"/"===T[0].charAt(0);w&&(r.hostname=_?"":T.length?T.shift():"",r.host=r.hostname,(O=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=O.shift(),r.hostname=O.shift(),r.host=r.hostname));return(S=S||r.host&&T.length)&&!_&&T.unshift(""),T.length>0?r.pathname=T.join("/"):(r.pathname=null,r.path=null),null===r.pathname&&null===r.search||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},s.prototype.parseHost=function(){var e=this.host,t=o.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},r.parse=b,r.resolve=function(e,t){return b(e,!1,!0).resolve(t)},r.resolveObject=function(e,t){return e?b(e,!1,!0).resolveObject(t):t},r.format=function(e){return"string"==typeof e&&(e=b(e)),e instanceof s?e.format():s.prototype.format.call(e)},r.Url=s},{punycode:92,qs:94}],128:[function(e,t,r){(function(e){(function(){function r(t){try{if(!e.localStorage)return!1}catch(e){return!1}var r=e.localStorage[t];return null!=r&&"true"===String(r).toLowerCase()}t.exports=function(e,t){if(r("noDeprecation"))return e;var n=!1;return function(){if(!n){if(r("throwDeprecation"))throw new Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],129:[function(e,t,r){t.exports=function e(t,r){if(t&&r)return e(t)(r);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach((function(e){n[e]=t[e]})),n;function n(){for(var e=new Array(arguments.length),r=0;r<e.length;r++)e[r]=arguments[r];var n=t.apply(this,e),s=e[e.length-1];return"function"==typeof n&&n!==s&&Object.keys(s).forEach((function(e){n[e]=s[e]})),n}}},{}],130:[function(e,t,r){t.exports=function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var s in r)n.call(r,s)&&(e[s]=r[s])}return e};var n=Object.prototype.hasOwnProperty},{}],131:[function(e,t,r){t.exports={name:"fable",version:"3.1.22",description:"A service dependency injection, configuration and logging library.",main:"source/Fable.js",scripts:{start:"node source/Fable.js",coverage:"./node_modules/.bin/nyc --reporter=lcov --reporter=text-lcov ./node_modules/mocha/bin/_mocha -- -u tdd -R spec",test:"./node_modules/.bin/mocha -u tdd -R spec",build:"npx quack build","docker-dev-build":"docker build ./ -f Dockerfile_LUXURYCode -t fable-image:local","docker-dev-run":'docker run -it -d --name fable-dev -p 30001:8080 -p 38086:8086 -v "$PWD/.config:/home/coder/.config" -v "$PWD:/home/coder/fable" -u "$(id -u):$(id -g)" -e "DOCKER_USER=$USER" fable-image:local',"docker-dev-shell":"docker exec -it fable-dev /bin/bash",tests:"./node_modules/mocha/bin/_mocha -u tdd --exit -R spec --grep"},mocha:{diff:!0,extension:["js"],package:"./package.json",reporter:"spec",slow:"75",timeout:"5000",ui:"tdd","watch-files":["source/**/*.js","test/**/*.js"],"watch-ignore":["lib/vendor"]},browser:{"./source/service/Fable-Service-EnvironmentData.js":"./source/service/Fable-Service-EnvironmentData-Web.js","./source/service/Fable-Service-FilePersistence.js":"./source/service/Fable-Service-FilePersistence-Web.js"},repository:{type:"git",url:"https://github.com/stevenvelozo/fable.git"},keywords:["entity","behavior"],author:"Steven Velozo <steven@velozo.com> (http://velozo.com/)",license:"MIT",bugs:{url:"https://github.com/stevenvelozo/fable/issues"},homepage:"https://github.com/stevenvelozo/fable",devDependencies:{quackage:"^1.0.42"},dependencies:{"async.eachlimit":"^0.5.2","async.waterfall":"^0.5.2","big.js":"^7.0.1",cachetrax:"^1.0.4",cookie:"^1.0.2","data-arithmatic":"^1.0.7",dayjs:"^1.11.18","fable-log":"^3.0.16","fable-serviceproviderbase":"^3.0.15","fable-settings":"^3.0.12","fable-uuid":"^3.0.11",manyfest:"^1.0.42","simple-get":"^4.0.1"}}},{}],132:[function(e,t,r){const n=e("fable-settings"),s=e("fable-uuid"),i=e("fable-log"),o=e("../package.json"),a=e("fable-serviceproviderbase");class l extends a.CoreServiceProviderBase{constructor(t){super(t),this.serviceType="ServiceManager",this._Package=o,this.serviceTypes=[],this.servicesMap={},this.services={},this.serviceClasses={},this.extraServiceInitialization=!1,this.LogNoisiness=0,this.SettingsManager=new n(t),this.SettingsManager=this.SettingsManager,this.UUID=new s(this.SettingsManager.settings),this.Logging=new i(this.SettingsManager.settings),this.Logging.initialize(),this.ServiceManager=this,this.serviceManager=this,this.connectFable(this),this.connectPreinitServiceProviderInstance(this.UUID),this.connectPreinitServiceProviderInstance(this.Logging),this.connectPreinitServiceProviderInstance(this.SettingsManager),this.addAndInstantiateServiceType("EnvironmentData",e("./services/Fable-Service-EnvironmentData.js")),this.addServiceType("Template",e("./services/Fable-Service-Template.js")),this.addServiceType("MetaTemplate",e("./services/Fable-Service-MetaTemplate.js")),this.addServiceType("Anticipate",e("./services/Fable-Service-Anticipate.js")),this.addAndInstantiateServiceType("Dates",e("./services/Fable-Service-DateManipulation.js")),this.addAndInstantiateServiceType("DataFormat",e("./services/Fable-Service-DataFormat.js")),this.addAndInstantiateServiceType("DataGeneration",e("./services/Fable-Service-DataGeneration.js")),this.addAndInstantiateServiceType("Utility",e("./services/Fable-Service-Utility.js")),this.addAndInstantiateServiceType("Logic",e("./services/Fable-Service-Logic.js")),this.addAndInstantiateServiceType("Math",e("./services/Fable-Service-Math.js")),this.addServiceType("ExpressionParser",e("./services/Fable-Service-ExpressionParser.js")),this.addServiceType("RestClient",e("./services/Fable-Service-RestClient.js")),this.addServiceType("Manifest",e("manyfest")),this.addServiceType("ObjectCache",e("cachetrax")),this.addAndInstantiateServiceType("ProgressTime",e("./services/Fable-Service-ProgressTime.js")),this.addServiceType("ProgressTrackerSet",e("./services/Fable-Service-ProgressTrackerSet.js")),this.addServiceType("Operation",e("./services/Fable-Service-Operation.js")),this.addServiceType("CSVParser",e("./services/Fable-Service-CSVParser.js")),this.addServiceType("FilePersistence",e("./services/Fable-Service-FilePersistence.js"))}get isFable(){return!0}get settings(){return this.SettingsManager.settings}get settingsManager(){return this.SettingsManager}getUUID(){return this.UUID.getUUID()}newAnticipate(){return this.instantiateServiceProviderWithoutRegistration("Anticipate")}newManyfest(e){return this.instantiateServiceProviderWithoutRegistration("Manifest",e)}addServiceType(e,t){return e in this.servicesMap?this.log.warn(`Adding a service type [${e}] that already exists. This will change the default class prototype for this service.`):(this.servicesMap[e]={},this.serviceTypes.push(e)),"function"==typeof t&&t.isFableService?this.serviceClasses[e]=t:(this.log.error(`Attempted to add service type [${e}] with an invalid class. Using base service class, which will not crash but won't provide meaningful services.`),this.serviceClasses[e]=a),this.serviceClasses[e]}addServiceTypeIfNotExists(e,t){return e in this.servicesMap?this.serviceClasses[e]:this.addServiceType(e,t)}addAndInstantiateServiceType(e,t){return this.addServiceType(e,t),this.instantiateServiceProvider(e,{},`${e}-Default`)}addAndInstantiateServiceTypeIfNotExists(e,t){return this.addServiceTypeIfNotExists(e,t),e in this.servicesMap&&e in this.fable?this[e]:this.instantiateServiceProvider(e,{},`${e}-Default`)}addAndInstantiateSingletonService(e,t,r){return this.addServiceTypeIfNotExists(e,r),e in this.servicesMap&&e in this.fable?this[e]:this.instantiateServiceProvider(e,{},`${e}-Default`)}instantiateServiceProviderFromPrototype(e,t,r,n){let s=new n(this,t,r);return this.extraServiceInitialization&&(s=this.extraServiceInitialization(s)),this.servicesMap[e][s.Hash]=s,e in this.services||this.setDefaultServiceInstantiation(e,s.Hash),s}instantiateServiceProvider(e,t,r){let n=this.instantiateServiceProviderWithoutRegistration(e,t,r);return this.servicesMap[e][n.Hash]=n,e in this.services||this.setDefaultServiceInstantiation(e,n.Hash),n}instantiateServiceProviderIfNotExists(e,t,r){return e in this.services?this.services[e]:this.instantiateServiceProvider(e,t,r)}instantiateServiceProviderWithoutRegistration(e,t,r){let n=new this.serviceClasses[e](this,t,r);return this.extraServiceInitialization&&(n=this.extraServiceInitialization(n)),n}connectPreinitServiceProviderInstance(e){let t=e.serviceType,r=e.Hash;return e.connectFable(this),t in this.servicesMap||(this.servicesMap[t]={}),this.servicesMap[t][r]=e,t in this.services||this.setDefaultServiceInstantiation(t,r,!1),e}setDefaultServiceInstantiation(e,t,r){let n=void 0===r||r;return t in this.servicesMap[e]&&(e in this&&!n||(this[e]=this.servicesMap[e][t]),e in this.services&&!n||(this.services[e]=this.servicesMap[e][t]),!0)}static generateFileNameDateStamp(e){const t=e||new Date;return`${t.getFullYear()}-${String(t.getMonth()+1).padStart(2,"0")}-${String(t.getDate()).padStart(2,"0")}-${String(t.getHours()).padStart(2,"0")}-${String(t.getMinutes()).padStart(2,"0")}-${String(t.getSeconds()).padStart(2,"0")}`}}t.exports=l,t.exports.new=function(e){return new l(e)},t.exports.LogProviderBase=i.LogProviderBase,t.exports.ServiceProviderBase=a,t.exports.CoreServiceProviderBase=a.CoreServiceProviderBase,t.exports.precedent=n.precedent},{"../package.json":131,"./services/Fable-Service-Anticipate.js":133,"./services/Fable-Service-CSVParser.js":134,"./services/Fable-Service-DataFormat.js":135,"./services/Fable-Service-DataGeneration.js":137,"./services/Fable-Service-DateManipulation.js":138,"./services/Fable-Service-EnvironmentData.js":139,"./services/Fable-Service-ExpressionParser.js":140,"./services/Fable-Service-FilePersistence.js":150,"./services/Fable-Service-Logic.js":151,"./services/Fable-Service-Math.js":152,"./services/Fable-Service-MetaTemplate.js":153,"./services/Fable-Service-Operation.js":157,"./services/Fable-Service-ProgressTime.js":158,"./services/Fable-Service-ProgressTrackerSet.js":160,"./services/Fable-Service-RestClient.js":161,"./services/Fable-Service-Template.js":162,"./services/Fable-Service-Utility.js":163,cachetrax:22,"fable-log":51,"fable-serviceproviderbase":53,"fable-settings":57,"fable-uuid":60,manyfest:84}],133:[function(e,t,r){const n=e("fable-serviceproviderbase");t.exports=class extends n{constructor(e,t,r){super(e,t,r),this.serviceType="AsyncAnticipate",this.operationQueue=[],this.erroredOperations=[],this.executingOperationCount=0,this.completedOperationCount=0,this.callDepth=0,this.maxOperations=1,this.lastError=void 0,this.waitingFunctions=[]}checkQueue(){if(this.lastError){for(let e=0;e<this.waitingFunctions.length;e++)this.waitingFunctions[e](this.lastError);this.lastError=void 0,this.waitingFunctions=[]}else if(this.operationQueue.length>0&&this.executingOperationCount<this.maxOperations){let e=this.operationQueue.shift();this.executingOperationCount+=1,e(this.buildAnticipatorCallback())}else if(this.waitingFunctions.length>0&&this.executingOperationCount<1){for(let e=0;e<this.waitingFunctions.length;e++)this.waitingFunctions[e](this.lastError);this.lastError=void 0,this.waitingFunctions=[]}}anticipate(e){this.operationQueue.push(e),this.checkQueue()}buildAnticipatorCallback(){let e={Called:!1,Error:void 0,OperationSet:this};return function(t){if(e.Called)throw new Error("Anticipation async callback called twice...");e.Called=!0,this.lastError=t,e.OperationSet.executingOperationCount-=1,e.OperationSet.completedOperationCount+=1,e.OperationSet.callDepth++,e.OperationSet.callDepth>400?(e.OperationSet.callDepth=0,setTimeout(e.OperationSet.checkQueue.bind(this),0)):e.OperationSet.checkQueue()}.bind(this)}wait(e){this.waitingFunctions.push(e),this.checkQueue()}}},{"fable-serviceproviderbase":53}],134:[function(e,t,r){const n=e("fable-serviceproviderbase");t.exports=class extends n{constructor(e,t,r){super(e,t,r),this.serviceType="CSVParser",this.Header=[],this.HeaderFieldNames=[],this.Delimiter=",",this.QuoteCharacter='"',this.CleanCharacters=["\r"],this.HeaderLineIndex=0,this.HasHeader=!0,this.HasSetHeader=!1,this.EmitHeader=!1,this.EmitJSON=!0,this.EscapedQuoteString="&quot;",this.CurrentLine="",this.CurrentRecord=[],this.InQuote=!1,this.InEscapedQuote=!1,this.LinesParsed=0,this.RowsEmitted=0}marshalRowToJSON(e){if(!Array.isArray(e))return!1;for(let t=this.HeaderFieldNames.length;t<e.length;t++)this.HeaderFieldNames[t]=`${t}`;let t={};for(let r=0;r<e.length;r++)t[this.HeaderFieldNames[r]]=e[r];return t}setHeader(e){this.Header=e;for(let e=0;e<this.Header.length;e++)void 0===this.Header[e]?this.HeaderFieldNames[e]=`${e}`:this.HeaderFieldNames[e]=this.Header[e].toString().trim()}resetRowState(){this.CurrentRecord=[]}pushLine(){for(let e=0;e<this.CleanCharacters.length;e++)this.CurrentLine=this.CurrentLine.replace(this.CleanCharacters[e],"");this.CurrentRecord.push(this.CurrentLine),this.CurrentLine=""}emitRow(e){let t=void 0===e?this.EmitJSON:e;this.RowsEmitted++;let r=this.CurrentRecord;return this.CurrentRecord=[],t?this.marshalRowToJSON(r):r}parseCSVLine(e){this.LinesParsed++;for(let t=0;t<e.length;t++)this.InQuote||e[t]!=this.Delimiter?e[t]==this.QuoteCharacter?this.InEscapedQuote?this.InEscapedQuote=!1:this.InQuote?t<e.length&&e[t+1]==this.QuoteCharacter?(this.CurrentLine+=this.EscapedQuoteString,this.InEscapedQuote=!0):this.InQuote=!1:this.InQuote=!0:this.CurrentLine+=e[t]:this.pushLine();return!this.InQuote&&(this.pushLine(),this.HasHeader&&!this.HasSetHeader&&this.RowsEmitted==this.HeaderLineIndex?(this.HasSetHeader=!0,this.setHeader(this.emitRow(!1)),!!this.EmitHeader&&this.Header):this.emitRow())}}},{"fable-serviceproviderbase":53}],135:[function(e,t,r){const n=e("fable-serviceproviderbase");t.exports=class extends n{constructor(e,t,r){super(e,t,r),_defineProperty2(this,"stringPadStart",(function(e,t,r){let n=e.toString();return this.stringGeneratePaddingString(n,t,r)+n})),_defineProperty2(this,"stringPadEnd",(function(e,t,r){let n=e.toString();return n+this.stringGeneratePaddingString(n,t,r)})),this.serviceType="DataArithmatic",this._Regex_formatterInsertCommas=/.{1,3}/g,this._Regex_formatterAddCommasToNumber=/^([-+]?)(0?)(\d+)(.?)(\d+)$/g,this._Regex_formatterDollarsRemoveCommas=/,/gi,this._Regex_formatterCleanNonAlphaChar=/[^a-zA-Z]/gi,this._Regex_formatterCapitalizeEachWord=/([a-zA-Z]+)/g,this._Regex_matcherHTMLEntities=/&(#?[a-zA-Z0-9]+);/g,this._Value_MoneySign_Currency="$",this._Value_NaN_Currency="--",this._Value_GroupSeparator_Number=",",this._Value_Prefix_StringHash="HSH",this._Value_Clean_formatterCleanNonAlpha="",this._UseEngineStringStartsWith="function"==typeof String.prototype.startsWith,this._UseEngineStringEndsWith="function"==typeof String.prototype.endsWith,this._SanitizeObjectKeyRegex=/[^a-zA-Z0-9_]/gi,this._SanitizeObjectKeyReplacement="_",this._SanitizeObjectKeyInvalid="INVALID"}stringReverse(e){return e.split("").reverse().join("")}stringStartsWith(e,t,r){return this._UseEngineStringStartsWith?e.startsWith(t,r):this.stringStartsWith_Polyfill.call(e,t,r)}stringStartsWith_Polyfill(e,t){return this.slice(t||0,e.length)===e}stringEndsWith(e,t,r){return this._UseEngineStringEndsWith?e.endsWith(t,r):this.stringEndsWith_Polyfill.call(e,t,r)}stringEndsWith_Polyfill(e,t){return t<this.length?t|=0:t=this.length,this.substr(t-e.length,e.length)===e}insecureStringHash(e){let t=0,r=e.length,n=0;for(;n<r;)t=(t<<5)-t+e.charCodeAt(n++)|0;return`${this._Value_Prefix_StringHash}${t}`}capitalizeEachWord(e){return e.replace(this._Regex_formatterCapitalizeEachWord,(e=>e.charAt(0).toUpperCase()+e.substr(1)))}resolveHtmlEntities(e){return"string"!=typeof e?e:e.replace(this._Regex_matcherHTMLEntities,((e,t)=>{switch(t){case"comma":return",";case"amp":return"&";case"lt":return"<";case"gt":return">";case"times":return"×";case"divide":return"÷";case"plus":return"+";case"minus":return"-";case"infin":return"∞";case"ang":return"∠";case"quot":return'"';case"apos":return"'";case"nbsp":return" ";case"copy":return"©";case"reg":return"®";case"trade":return"™";case"euro":return"€";default:if(!t.startsWith("#"))return e}const r=parseInt(t.substring(1),10);return String.fromCharCode(r)}))}concatenateStrings(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.joinStrings("",...t)}concatenateStringsInternal(){const e=[...arguments],t=this.fable.Utility.flattenArrayOfSolverInputs(e);return this.concatenateStrings(...t)}joinStrings(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return r.filter((e=>"string"==typeof e||"number"==typeof e)).join(e)}joinStringsInternal(){const[e,...t]=arguments,r=this.fable.Utility.flattenArrayOfSolverInputs(t);return this.joinStrings(e,...r)}concatenateStringsRaw(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.joinStringsRaw("",...t)}concatenateStringsRawInternal(e){const t=[...arguments],r=this.fable.Utility.flattenArrayOfSolverInputs(t);return this.concatenateStringsRaw(...r)}joinStringsRaw(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return r.map(String).join(e)}joinStringsRawInternal(){const[e,...t]=arguments,r=this.fable.Utility.flattenArrayOfSolverInputs(t);return this.joinStringsRaw(e,...r)}cleanEnclosureWrapCharacters(e,t){return t.startsWith(e)&&t.endsWith(e)?t.substring(1,t.length-1):t}cleanNonAlphaCharacters(e){return"string"==typeof e&&""!=e?e.replace(this._Regex_formatterCleanNonAlphaChar,this._Value_Clean_formatterCleanNonAlpha):""}sanitizeObjectKey(e){return"string"!=typeof e||e.length<1?this._SanitizeObjectKeyInvalid:e.replace(this._SanitizeObjectKeyRegex,this._SanitizeObjectKeyReplacement)}formatterInsertCommas(e){let t=this.stringReverse(e).match(this._Regex_formatterInsertCommas).join(",");return this.stringReverse(t)}processAddCommasToNumberRegex(e,t,r,n,s,i){return t+(s?this.formatterInsertCommas(n)+s+i:this.formatterInsertCommas(n+i))}formatterAddCommasToNumber(e){return e.toString().replace(this._Regex_formatterAddCommasToNumber,this.processAddCommasToNumberRegex.bind(this))}formatterDollars(e,t,r){if(isNaN(e))return this._Value_NaN_Currency;if(null==e)return this._Value_NaN_Currency;let n=this.fable.Math.parsePrecise(e),s=void 0===t?2:t,i=this.fable.Math.toFixedPrecise(n,s,r);return`$${this.formatterAddCommasToNumber(i)}`}formatterRoundNumber(e,t){let r=void 0===t?2:t;if(isNaN(e)){return(0).toFixed(r)}if(null==e)return"";let n=this.fable.Utility.bigNumber(e).toFixed(r);if(isNaN(n)){return(0).toFixed(r)}return n}stringGeneratePaddingString(e,t,r){let n=t|0,s=String(void 0!==r?r:" ");if(e.length>t)return"";{let r=t-e.length;return r>s.length&&(s+=s.repeat(n/s.length)),s.slice(0,r)}}formatTimeSpan(e){if("number"!=typeof e)return"";let t=parseInt(e%1e3),r=parseInt(e/1e3%60),n=parseInt(e/6e4%60),s=parseInt(e/36e5);return`${this.stringPadStart(s,2,"0")}:${this.stringPadStart(n,2,"0")}:${this.stringPadStart(r,2,"0")}.${this.stringPadStart(t,3,"0")}`}formatTimeDelta(e,t){return"number"!=typeof e||"number"!=typeof t?"":this.formatTimeSpan(t-e)}getMonthFromDate(e){return["January","February","March","April","May","June","July","August","September","October","November","December"][e.getMonth()]}getMonthAbbreviatedFromDate(e){return["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][e.getMonth()]}formatMonthDayYearFromDate(e,t){let r=void 0!==t&&t,n=e.getMonth()+1,s=e.getDate(),i=e.getFullYear();return r&&(n=this.stringPadStart(n,2,"0"),s=this.stringPadStart(s,2,"0"),i=this.stringPadStart(i,4,"0")),`${n}/${s}/${i}`}formatSortableStringFromDate(e){return e.getFullYear()+this.stringPadStart(e.getMonth(),2,"0")+this.stringPadStart(e.getDate(),2,"0")}stringBeforeMatch(e,t){return e.split(t)[0]}stringAfterMatch(e,t){let r=e.indexOf(t);return r<0||r+t.length>=e.length?"":e.substring(r+t.length)}stringCountSegments(e,t,r,n){let s="string"==typeof e?e:"",i="string"==typeof t?t:".",o="object"==typeof r?pEnclosureStart:{"{":0,"[":1,"(":2},a="object"==typeof n?pEnclosureEnd:{"}":0,"]":1,")":2};if(e.length<1)return 0;let l=1,u=[];for(let e=0;e<s.length;e++)s[e]==i&&0==u.length?l++:s[e]in o?u.push(o[s[e]]):s[e]in a&&a[s[e]]==u[u.length-1]&&u.pop();return l}stringGetSegments(e,t,r,n){let s="string"==typeof e?e:"",i="string"==typeof t?t:".",o="object"==typeof r?pEnclosureStart:{"{":0,"[":1,"(":2,'"':3,"'":4},a="object"==typeof n?pEnclosureEnd:{"}":0,"]":1,")":2,'"':3,"'":4},l=0,u=[];if(e.length<1)return u;let c=[];for(let e=0;e<s.length;e++)s[e]==i&&0==c.length?(u.push(s.substring(l,e)),l=e+1):s[e]in o?c.push(o[s[e]]):s[e]in a&&a[s[e]]==c[c.length-1]&&c.pop();return l<s.length&&u.push(s.substring(l)),u}stringGetFirstSegment(e,t,r,n){let s="string"==typeof e?e:"",i="string"==typeof t?t:".",o="object"==typeof r?pEnclosureStart:{"{":0,"[":1,"(":2},a="object"==typeof n?pEnclosureEnd:{"}":0,"]":1,")":2};if(e.length<1)return 0;let l=[];for(let e=0;e<s.length;e++){if(s[e]==i&&0==l.length)return s.substring(0,e);s[e]in o?l.push(o[s[e]]):s[e]in a&&a[s[e]]==l[l.length-1]&&l.pop()}return s}stringEncodeURIComponent(e){return"string"!=typeof e?e:encodeURIComponent(e)}stringDecodeURIComponent(e){if("string"!=typeof e)return e;try{return decodeURIComponent(e)}catch(t){return this.fable.Log.error(`Failed to decode URI component: ${e}`,t),e}}stringEncodeForJavascript(e){return"string"!=typeof e?e:e.replace(this._Regex_matcherJavascriptEncode,(e=>{switch(e){case'"':return'\\"';case"'":return"\\'";case"\\":return"\\\\";case"\n":return"\\n";case"\r":return"\\r";default:return e}}))}stringDecodeForJavascript(e){return"string"!=typeof e?e:e.replace(this._Regex_matcherJavascriptDecode,(e=>{switch(e){case'\\"':return'"';case"\\'":return"'";case"\\\\":return"\\";case"\\n":return"\n";case"\\r":return"\r";default:return e}}))}stringCountEnclosures(e,t,r){let n="string"==typeof e?e:"",s="string"==typeof t?t:"(",i="string"==typeof r?r:")",o=0,a=0;for(let e=0;e<n.length;e++)n[e]==s?(0==a&&o++,a++):n[e]==i&&a--;return o}stringGetEnclosureValueByIndex(e,t,r,n){let s="string"==typeof e?e:"",i="number"==typeof t?t:0,o="string"==typeof r?r:"(",a="string"==typeof n?n:")",l=0,u=0,c=!1,h=0,f=0;for(let e=0;e<s.length;e++)s[e]==o?(u++,1==u&&(l++,i==l-1&&(c=!0,h=e))):s[e]==a&&(u--,0==u&&c&&f<=h&&(f=e,c=!1));return l<=i?"":f>0&&f>h?s.substring(h+1,f):s.substring(h+1)}stringRemoveEnclosureByIndex(e,t,r,n){let s="string"==typeof e?e:"",i="number"==typeof t?t:0,o="string"==typeof r?r:"(",a="string"==typeof n?n:")",l=0,u=0,c=!1,h=0,f=0;for(let e=0;e<s.length;e++)s[e]==o?(u++,1==u&&(l++,i==l-1&&(c=!0,h=e))):s[e]==a&&(u--,0==u&&c&&f<=h&&(f=e,c=!1));if(l<=i)return s;let p="";return h>1&&(p=s.substring(0,h)),s.length>f+1&&f>h&&(p+=s.substring(f+1)),p}}},{"fable-serviceproviderbase":53}],136:[function(e,t,r){t.exports={DefaultIntegerMinimum:0,DefaultIntegerMaximum:9999999,DefaultNumericStringLength:10,MonthSet:["January","February","March","April","May","June","July","August","September","October","November","December"],WeekDaySet:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ColorSet:["Red","Orange","Yellow","Green","Blue","Indigo","Violet","Pink","Purple","Turquoise","Gold","Lime","Maroon","Navy","Coral","Teal","Brown","White","Black","Sky","Berry","Grey","Straw","Silver","Sapphire"],SurNameSet:["Smith","Johnson","Williams","Brown","Jones","Miller","Davis","Garcia","Rodriguez","Wilson","Martinez","Anderson","Taylor","Thomas","Hernandez","Moore","Martin","Jackson","Thompson","White","Lopez","Lee","Gonzalez","Harris","Clark","Lewis","Robinson","Walker","Perez","Hall","Young","Allen","Sanchez","Wright","King","Scott","Green","Baker","Adams","Nelson","Hill","Ramirez","Campbell","Mitchell","Roberts","Carter","Phillips","Evans","Turner","Torres","Parker","Collins","Edwards","Stewart","Flores","Morris","Nguyen","Murphy","Rivera","Cook","Rogers","Morgan","Peterson","Cooper","Reed","Bailey","Bell","Gomez","Kelly","Howard","Ward","Cox","Diaz","Richardson","Wood","Watson","Brooks","Bennett","Gray","James","Reyes","Cruz","Hughes","Price","Myers","Long","Foster","Sanders","Ross","Morales","Powell","Sullivan","Russell","Ortiz","Jenkins","Gutierrez","Perry","Butler","Barnes","Fisher"],NameSet:["Mary","Patricia","Jennifer","Linda","Elizabeth","Barbara","Susan","Jessica","Sarah","Karen","Lisa","Nancy","Betty","Sandra","Margaret","Ashley","Kimberly","Emily","Donna","Michelle","Carol","Amanda","Melissa","Deborah","Stephanie","Dorothy","Rebecca","Sharon","Laura","Cynthia","Amy","Kathleen","Angela","Shirley","Brenda","Emma","Anna","Pamela","Nicole","Samantha","Katherine","Christine","Helen","Debra","Rachel","Carolyn","Janet","Maria","Catherine","Heather","Diane","Olivia","Julie","Joyce","Victoria","Ruth","Virginia","Lauren","Kelly","Christina","Joan","Evelyn","Judith","Andrea","Hannah","Megan","Cheryl","Jacqueline","Martha","Madison","Teresa","Gloria","Sara","Janice","Ann","Kathryn","Abigail","Sophia","Frances","Jean","Alice","Judy","Isabella","Julia","Grace","Amber","Denise","Danielle","Marilyn","Beverly","Charlotte","Natalie","Theresa","Diana","Brittany","Doris","Kayla","Alexis","Lori","Marie","James","Robert","John","Michael","David","William","Richard","Joseph","Thomas","Christopher","Charles","Daniel","Matthew","Anthony","Mark","Donald","Steven","Andrew","Paul","Joshua","Kenneth","Kevin","Brian","George","Timothy","Ronald","Jason","Edward","Jeffrey","Ryan","Jacob","Gary","Nicholas","Eric","Jonathan","Stephen","Larry","Justin","Scott","Brandon","Benjamin","Samuel","Gregory","Alexander","Patrick","Frank","Raymond","Jack","Dennis","Jerry","Tyler","Aaron","Jose","Adam","Nathan","Henry","Zachary","Douglas","Peter","Kyle","Noah","Ethan","Jeremy","Walter","Christian","Keith","Roger","Terry","Austin","Sean","Gerald","Carl","Harold","Dylan","Arthur","Lawrence","Jordan","Jesse","Bryan","Billy","Bruce","Gabriel","Joe","Logan","Alan","Juan","Albert","Willie","Elijah","Wayne","Randy","Vincent","Mason","Roy","Ralph","Bobby","Russell","Bradley","Philip","Eugene"]}},{}],137:[function(e,t,r){const n=e("fable-serviceproviderbase");t.exports=class extends n{constructor(t,r,n){super(t,r,n),this.serviceType="DataGeneration",this.defaultData=e("./Fable-Service-DataGeneration-DefaultValues.json")}randomIntegerBetween(e,t){try{let r=parseInt(e,10),n=parseInt(t,10);return Math.floor(Math.random()*(n-r))+r}catch(r){return this.fable.log.error("Error in randomIntegerBetween",r,{Minimum:e,Maximum:t}),NaN}}randomIntegerUpTo(e){return this.randomIntegerBetween(0,e)}randomInteger(){return Math.floor(Math.random()*this.defaultData.DefaultIntegerMaximum)}randomFloatBetween(e,t){try{let r=parseFloat(e),n=parseFloat(t);return this.fable.Math.addPrecise(this.fable.Math.multiplyPrecise(Math.random(),this.fable.Math.subtractPrecise(n,r)),r)}catch(r){return this.fable.log.error("Error in randomFloatBetween",r,{Minimum:e,Maximum:t}),NaN}}randomFloatUpTo(e){return this.randomFloatBetween(0,e)}randomFloat(){return Math.random()}randomNumericString(e,t){let r=void 0===t?9999999999:t;return this.services.DataFormat.stringPadStart(this.randomIntegerUpTo(r),e,"0")}randomMonth(){return this.defaultData.MonthSet[this.randomIntegerUpTo(this.defaultData.MonthSet.length-1)]}randomDayOfWeek(){return this.defaultData.WeekDaySet[this.randomIntegerUpTo(this.defaultData.WeekDaySet.length-1)]}randomColor(){return this.defaultData.ColorSet[this.randomIntegerUpTo(this.defaultData.ColorSet.length-1)]}randomName(){return this.defaultData.NameSet[this.randomIntegerUpTo(this.defaultData.NameSet.length-1)]}randomSurname(){return this.defaultData.SurNameSet[this.randomIntegerUpTo(this.defaultData.SurNameSet.length-1)]}}},{"./Fable-Service-DataGeneration-DefaultValues.json":136,"fable-serviceproviderbase":53}],138:[function(e,t,r){const n=e("fable-serviceproviderbase");t.exports=class extends n{constructor(t,r,n){super(t,r,n),this.serviceType="Dates",this.dayJS=e("dayjs"),this.plugin_weekOfYear=e("dayjs/plugin/weekOfYear"),this.dayJS.extend(this.plugin_weekOfYear),this.plugin_weekday=e("dayjs/plugin/weekday"),this.dayJS.extend(this.plugin_weekday),this.plugin_isoWeek=e("dayjs/plugin/isoWeek"),this.dayJS.extend(this.plugin_isoWeek),this.plugin_timezone=e("dayjs/plugin/timezone"),this.dayJS.extend(this.plugin_timezone),this.plugin_relativetime=e("dayjs/plugin/relativeTime"),this.dayJS.extend(this.plugin_relativetime),this.plugin_utc=e("dayjs/plugin/utc"),this.dayJS.extend(this.plugin_utc),this.plugin_advancedFormat=e("dayjs/plugin/advancedFormat"),this.dayJS.extend(this.plugin_advancedFormat)}dateMillisecondDifference(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e||""===e)return NaN;if((r||1==r||"1"==r)&&(null==t||""===t))return NaN;let n=this.dayJS(e);return this.dayJS(t).diff(n,"millisecond")}dateSecondDifference(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e||""===e)return NaN;if((r||1==r||"1"==r)&&(null==t||""===t))return NaN;let n=this.dayJS(e);return this.dayJS(t).diff(n,"second")}dateMinuteDifference(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e||""===e)return NaN;if((r||1==r||"1"==r)&&(null==t||""===t))return NaN;let n=this.dayJS(e);return this.dayJS(t).diff(n,"minute")}dateHourDifference(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e||""===e)return NaN;if((r||1==r||"1"==r)&&(null==t||""===t))return NaN;let n=this.dayJS(e);return this.dayJS(t).diff(n,"hour")}dateDayDifference(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e||""===e)return NaN;if((r||1==r||"1"==r)&&(null==t||""===t))return NaN;let n=this.dayJS(e);return this.dayJS(t).diff(n,"day")}dateWeekDifference(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e||""===e)return NaN;if((r||1==r||"1"==r)&&(null==t||""===t))return NaN;let n=this.dayJS(e);return this.dayJS(t).diff(n,"week")}dateMonthDifference(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e||""===e)return NaN;if((r||1==r||"1"==r)&&(null==t||""===t))return NaN;let n=this.dayJS(e);return this.dayJS(t).diff(n,"month")}dateYearDifference(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e||""===e)return NaN;if((r||1==r||"1"==r)&&(null==t||""===t))return NaN;let n=this.dayJS(e);return this.dayJS(t).diff(n,"year")}}},{dayjs:28,"dayjs/plugin/advancedFormat":29,"dayjs/plugin/isoWeek":30,"dayjs/plugin/relativeTime":31,"dayjs/plugin/timezone":32,"dayjs/plugin/utc":33,"dayjs/plugin/weekOfYear":34,"dayjs/plugin/weekday":35,"fable-serviceproviderbase":53}],139:[function(e,t,r){const n=e("fable-serviceproviderbase");t.exports=class extends n{constructor(e,t,r){super(e,t,r),this.serviceType="EnvironmentData",this.Environment="node.js"}}},{"fable-serviceproviderbase":53}],140:[function(e,t,r){const{PE:n}=e("big.js"),s=e("fable-serviceproviderbase");t.exports=class extends s{constructor(t,r,n){super(t,r,n),this.tokenMap=e("./Fable-Service-ExpressionParser/Fable-Service-ExpressionParser-TokenMap.json"),this.tokenMaxPrecedence=4,this.tokenRadix={};let s=Object.keys(this.tokenMap);for(let e=0;e<s.length;e++){let t=s[e],r=this.tokenMap[t];r.Token=t,r.Length=t.length;let n=r.Token[0];n in this.tokenRadix||(this.tokenRadix[n]={TokenCount:0,Literal:!1,TokenKeys:[],TokenMap:{}}),this.tokenRadix[n].TokenCount++,t==n&&(this.tokenRadix[n].Literal=!0),this.tokenRadix[n].TokenMap[r.Token]=r,this.tokenRadix[n].TokenKeys.push(t),this.tokenRadix[n].TokenKeys.sort(((e,t)=>t.length-e.length)),this.tokenMaxPrecedence<r.Precedence&&(this.tokenMaxPrecedence=r.Precedence)}this.functionMap=e("./Fable-Service-ExpressionParser/Fable-Service-ExpressionParser-FunctionMap.json"),this.serviceType="ExpressionParser",this.fable.addServiceTypeIfNotExists("ExpressionParser-Tokenizer",e("./Fable-Service-ExpressionParser/Fable-Service-ExpressionParser-ExpressionTokenizer.js")),this.fable.addServiceTypeIfNotExists("ExpressionParser-Linter",e("./Fable-Service-ExpressionParser/Fable-Service-ExpressionParser-Linter.js")),this.fable.addServiceTypeIfNotExists("ExpressionParser-Postfix",e("./Fable-Service-ExpressionParser/Fable-Service-ExpressionParser-Postfix.js")),this.fable.addServiceTypeIfNotExists("ExpressionParser-ValueMarshal",e("./Fable-Service-ExpressionParser/Fable-Service-ExpressionParser-ValueMarshal.js")),this.fable.addServiceTypeIfNotExists("ExpressionParser-Solver",e("./Fable-Service-ExpressionParser/Fable-Service-ExpressionParser-SolvePostfixedExpression.js")),this.fable.addServiceTypeIfNotExists("ExpressionParser-Messaging",e("./Fable-Service-ExpressionParser/Fable-Service-ExpressionParser-Messaging.js")),this.Tokenizer=this.fable.instantiateServiceProviderWithoutRegistration("ExpressionParser-Tokenizer"),this.Linter=this.fable.instantiateServiceProviderWithoutRegistration("ExpressionParser-Linter"),this.Postfix=this.fable.instantiateServiceProviderWithoutRegistration("ExpressionParser-Postfix"),this.ValueMarshal=this.fable.instantiateServiceProviderWithoutRegistration("ExpressionParser-ValueMarshal"),this.Solver=this.fable.instantiateServiceProviderWithoutRegistration("ExpressionParser-Solver"),this.Messaging=this.fable.instantiateServiceProviderWithoutRegistration("ExpressionParser-Messaging"),this.Tokenizer.connectExpressionParser(this),this.Linter.connectExpressionParser(this),this.Postfix.connectExpressionParser(this),this.ValueMarshal.connectExpressionParser(this),this.Solver.connectExpressionParser(this),this.Messaging.connectExpressionParser(this),this.GenericManifest=this.fable.newManyfest(),this.LogNoisiness="LogNoisiness"in this.fable?this.fable.LogNoisiness:0}tokenize(e,t){return this.Tokenizer.tokenize(e,t)}lintTokenizedExpression(e,t){return this.Linter.lintTokenizedExpression(e,t)}buildPostfixedSolveList(e,t){return this.Postfix.buildPostfixedSolveList(e,t)}substituteValuesInTokenizedObjects(e,t,r,n){return this.ValueMarshal.substituteValuesInTokenizedObjects(e,t,r,n)}solvePostfixedExpression(e,t,r,n){return this.Solver.solvePostfixedExpression(e,t,r,n)}solve(e,t,r,n,s){let i="object"==typeof r?r:{},o="object"==typeof t?t:{},a="object"==typeof s?s:{};return this.tokenize(e,i),this.lintTokenizedExpression(i.RawTokens,i),this.buildPostfixedSolveList(i.RawTokens,i),this.substituteValuesInTokenizedObjects(i.PostfixTokenObjects,o,i,n),this.solvePostfixedExpression(i.PostfixSolveList,a,i,n)}}},{"./Fable-Service-ExpressionParser/Fable-Service-ExpressionParser-ExpressionTokenizer.js":142,"./Fable-Service-ExpressionParser/Fable-Service-ExpressionParser-FunctionMap.json":143,"./Fable-Service-ExpressionParser/Fable-Service-ExpressionParser-Linter.js":144,"./Fable-Service-ExpressionParser/Fable-Service-ExpressionParser-Messaging.js":145,"./Fable-Service-ExpressionParser/Fable-Service-ExpressionParser-Postfix.js":146,"./Fable-Service-ExpressionParser/Fable-Service-ExpressionParser-SolvePostfixedExpression.js":147,"./Fable-Service-ExpressionParser/Fable-Service-ExpressionParser-TokenMap.json":148,"./Fable-Service-ExpressionParser/Fable-Service-ExpressionParser-ValueMarshal.js":149,"big.js":17,"fable-serviceproviderbase":53}],141:[function(e,t,r){const n=e("fable-serviceproviderbase");t.exports=class extends n{constructor(e,t,r){super(e,t,r),this.serviceType="ExpressionParserOperationBase",this.numberTest=/^-{0,1}\d*\.{0,1}\d+$/,this.ExpressionParser=!1}connectExpressionParser(e){this.ExpressionParser=e}getTokenType(e){return e in this.ExpressionParser.tokenMap?`Token.${this.ExpressionParser.tokenMap[e].Type}`:e.length>2&&"{"===e[0]&&"}"===e[e.length-1]?"Token.StateAddress":e.length>2&&'"'===e[0]&&'"'===e[e.length-1]?"Token.String":this.numberTest.test(e)?"Token.Constant":"Token.Symbol"}getTokenContainerObject(e,t){return{Token:e,Type:void 0===t?this.getTokenType(e):t,Descriptor:e in this.ExpressionParser.tokenMap&&this.ExpressionParser.tokenMap[e]}}}},{"fable-serviceproviderbase":53}],142:[function(e,t,r){const n=e("./Fable-Service-ExpressionParser-Base.js");t.exports=class extends n{constructor(e,t,r){super(e,t,r),this.serviceType="ExpressionParser-Tokenizer"}tokenize(e,t){let r="object"==typeof t?t:{ExpressionParserLog:[]};if(r.RawExpression=e,r.RawTokens=[],r.ExpressionParserLog=[],"string"!=typeof e)return this.log.warn("ExpressionParser.tokenize was passed a non-string expression."),r.RawTokens;let n=!1,s="";for(let t=0;t<e.length;t++){let i=e[t];if(" "!==i&&"\t"!==i||"StateAddress"===n||"String"===n)if("StateAddress"!==n||"}"===i)if("String"!==n||'"'===i)if("StateAddress"!==n||"}"!==i)if("String"!==n||'"'!==i)if("}"!=i)if("{"!=i)if("String"===n||'"'!=i)if(i in this.ExpressionParser.tokenRadix){let o=this.ExpressionParser.tokenRadix[i];if(1==o.TokenCount&&o.Literal){s.length>0&&r.RawTokens.push(s),s="",n=!1,r.RawTokens.push(i);continue}for(let i=0;i<o.TokenKeys.length;i++){let a=o.TokenKeys[i];if(e.substr(t,a.length)==a){s.length>0&&r.RawTokens.push(a),s="",n=!1,r.RawTokens.push(a),t+=a.length-1;break}}}else n="Value",s+=i;else s.length>0&&r.RawTokens.push(s),s="",n="String",s=i;else s.length>0&&r.RawTokens.push(s),s="",n="StateAddress",s=i;else s.length>0&&r.RawTokens.push(s),s="",n=!1,r.ExpressionParserLog.push(`ExpressionParser.tokenize found a closing brace without an opening brace in the expression: ${e} at character index ${t}`),this.log.warn(r.ExpressionParserLog[r.ExpressionParserLog.length-1]);else s+=i,r.RawTokens.push(s),s="",n=!1;else s+=i,r.RawTokens.push(s),s="",n=!1;else s+=i;else s+=i;else s.length>0&&r.RawTokens.push(s),s="",n=!1}return n&&s.length>0&&r.RawTokens.push(s),r.RawTokens}}},{"./Fable-Service-ExpressionParser-Base.js":141}],143:[function(e,t,r){t.exports={sqrt:{Name:"Square Root",Address:"fable.Math.sqrtPrecise"},percent:{Name:"Compute Percent (in IS over OF format)",Address:"fable.Math.percentagePrecise"},compare:{Name:"Compare",Address:"fable.Math.comparePrecise"},abs:{Name:"Absolute Value",Address:"fable.Math.absPrecise"},floor:{Name:"Floor Value",Address:"fable.Math.floorPrecise"},ceil:{Name:"Ceiling Value",Address:"fable.Math.ceilPrecise"},rad:{Name:"Degrees to Radians",Address:"fable.Math.radPrecise"},pi:{Name:"Pi",Address:"fable.Math.piPrecise"},euler:{Name:"Euler",Address:"fable.Math.eulerPrecise"},log:{Name:"Logarithm",Address:"fable.Math.logPrecise"},exp:{Name:"Eulers Number to the Power Of N",Address:"fable.Math.expPrecise"},sin:{Name:"Sine",Address:"fable.Math.sin"},cos:{Name:"Cosine",Address:"fable.Math.cos"},tan:{Name:"Tangent",Address:"fable.Math.tan"},count:{Name:"Count Set Elements",Address:"fable.Math.countSetElements"},countset:{Name:"Count Set Elements",Address:"fable.Math.countSetElements"},sortset:{Name:"Sort Set",Address:"fable.Math.sortSetPrecise"},bucketset:{Name:"Bucket Set",Address:"fable.Math.bucketSetPrecise"},sorthistogram:{Name:"Sort Histogram",Address:"fable.Math.sortHistogramPrecise"},max:{Name:"Maximum",Address:"fable.Math.maxPrecise"},min:{Name:"Minimum",Address:"fable.Math.minPrecise"},sum:{Name:"Sum",Address:"fable.Math.sumPrecise"},avg:{Name:"Average",Address:"fable.Math.averagePrecise"},mean:{Name:"Mean",Address:"fable.Math.meanPrecise"},median:{Name:"Median",Address:"fable.Math.medianPrecise"},mode:{Name:"Mode",Address:"fable.Math.modePrecise"},round:{Name:"Round",Address:"fable.Math.roundPrecise"},tofixed:{Name:"To Fixed",Address:"fable.Math.toFixedPrecise"},cumulativesummation:{Name:"Count Set Elements in a Histogram or Value Map",Address:"fable.Math.cumulativeSummation"},countsetelements:{Name:"Count Set Elements in a Histogram or Value Map",Address:"fable.Math.countSetElements"},getvalue:{Name:"Get Value from Application State or Services (AppData, etc.)",Address:"fable.Utility.getInternalValueByHash"},createarrayfromabsolutevalues:{Name:"Create Array from Absolute Values",Address:"fable.Utility.createArrayFromAbsoluteValues"},flatten:{Name:"flatten an array of values",Address:"fable.Utility.flattenArrayOfSolverInputs"},findfirstvaluebyexactmatch:{Name:"find + map on array of objects",Address:"fable.Utility.findFirstValueByExactMatchInternal"},findfirstvaluebystringincludes:{Name:"find + map on array of objects",Address:"fable.Utility.findFirstValueByStringIncludesInternal"},resolvehtmlentities:{Name:"resolve HTML entities",Address:"fable.DataFormat.resolveHtmlEntities"},concat:{Name:"concatenate an array of values and output a string",Address:"fable.DataFormat.concatenateStringsInternal"},concatraw:{Name:"concatenate an array of values and output a string",Address:"fable.DataFormat.concatenateStringsRawInternal"},join:{Name:"join an array of values and output a string",Address:"fable.DataFormat.joinStringsInternal"},joinraw:{Name:"join an array of values and output a string",Address:"fable.DataFormat.joinStringsRawInternal"},if:{Name:"perform a conditional operator on two values, and choose one of two outcomes based on the result",Address:"fable.Logic.checkIf"},when:{Name:"perform a 'truthy' check on one value, and return one of two outcomes based on the result",Address:"fable.Logic.when"},entryinset:{Name:"Entry in Set",Address:"fable.Math.entryInSet"},smallestinset:{Name:"Smallest in Set",Address:"fable.Math.smallestInSet"},largestinset:{Name:"Largest in Set",Address:"fable.Math.largestInSet"},aggregationhistogram:{Name:"Generate a Histogram by Exact Value Aggregation",Address:"fable.Math.histogramAggregationByExactValueFromInternalState"},distributionhistogram:{Name:"Generate a Histogram Based on Value Distribution",Address:"fable.Math.histogramDistributionByExactValueFromInternalState"},setconcatenate:{Name:"Set Concatenate",Address:"fable.Math.setConcatenate"},getvaluearray:{Name:"Get Value Array from Application State or Services (AppData, etc.)",Address:"fable.Utility.createValueArrayByHashParametersFromInternal"},getvalueobject:{Name:"Get Value Object from Application State or Services (AppData, etc.)",Address:"fable.Utility.createValueObjectByHashParametersFromInternal"},cleanvaluearray:{Name:"Clean Value Array",Address:"fable.Math.cleanValueArray"},cleanvalueobject:{Name:"Clean Value Object",Address:"fable.Math.cleanValueObject"},randominteger:{Name:"Random Integer",Address:"fable.DataGeneration.randomInteger"},randomintegerbetween:{Name:"Random Integer Between Two Numbers",Address:"fable.DataGeneration.randomIntegerBetween"},randomintegerupto:{Name:"Random Integer",Address:"fable.DataGeneration.randomIntegerUpTo"},randomfloat:{Name:"Random Float",Address:"fable.DataGeneration.randomFloat"},randomfloatbetween:{Name:"Random Float",Address:"fable.DataGeneration.randomFloatBetween"},randomfloatupto:{Name:"Random Float",Address:"fable.DataGeneration.randomFloatUpTo"},datemilliseconddifference:{Name:"Date Difference in Milliseconds",Address:"fable.Dates.dateMillisecondDifference"},dateseconddifference:{Name:"Date Difference in Seconds",Address:"fable.Dates.dateSecondDifference"},dateminutedifference:{Name:"Date Difference in Minutes",Address:"fable.Dates.dateMinuteDifference"},datehourdifference:{Name:"Date Difference in Hours",Address:"fable.Dates.dateHourDifference"},datedaydifference:{Name:"Date Difference in Days",Address:"fable.Dates.dateDayDifference"},dateweekdifference:{Name:"Date Difference in Weeks",Address:"fable.Dates.dateWeekDifference"},datemonthdifference:{Name:"Date Difference in Months",Address:"fable.Dates.dateMonthDifference"},dateyeardifference:{Name:"Date Difference in Years",Address:"fable.Dates.dateYearDifference"},createValueObjectByHashes:{Name:"Create Value Object by Hashes",Address:"fable.Utility.createValueObjectByHashes"}}},{}],144:[function(e,t,r){const n=e("./Fable-Service-ExpressionParser-Base.js");t.exports=class extends n{constructor(e,t,r){super(e,t,r),this.serviceType="ExpressionParser-Linter"}lintTokenizedExpression(e,t){let r="object"==typeof t?t:{ExpressionParserLog:[]};if(r.LinterResults=[],!Array.isArray(e))return r.ExpressionParserLog.push("ERROR: ExpressionParser.lintTokenizedExpression was passed a non-array tokenized expression."),r.LinterResults.push(r.ExpressionParserLog[r.ExpressionParserLog.length-1]),this.log.error(r.ExpressionParserLog[r.ExpressionParserLog.length-1]),e;if(e.length<1)return r.ExpressionParserLog.push("ERROR: ExpressionParser.lintTokenizedExpression was passed an empty tokenized expression."),r.LinterResults.push(r.ExpressionParserLog[r.ExpressionParserLog.length-1]),this.log.error(r.ExpressionParserLog[r.ExpressionParserLog.length-1]),e;let n=0,s=!1;for(let t=0;t<e.length;t++)"("!==e[t]||s||n++,")"!==e[t]||s||n--,"{"===e[t]&&(s=!0),"}"===e[t]&&(s=!1),n<0&&(r.ExpressionParserLog.push(`ERROR: ExpressionParser.lintTokenizedExpression found an unbalanced parenthesis in the tokenized expression at token index ${t}`),r.LinterResults.push(r.ExpressionParserLog[r.ExpressionParserLog.length-1]),this.log.error(r.ExpressionParserLog[r.ExpressionParserLog.length-1]));n>0&&(r.ExpressionParserLog.push("WARNING: ExpressionParser.lintTokenizedExpression found an unbalanced parenthesis in the tokenized expression (ended without closing last set of parenthesis) -- appropriate closing parenthesis will be added."),r.LinterResults.push(r.ExpressionParserLog[r.ExpressionParserLog.length-1]),this.log.warn(r.ExpressionParserLog[r.ExpressionParserLog.length-1])),s=!1;for(let t=0;t<e.length;t++)"{"===e[t]&&(s=!0),"}"===e[t]&&s&&(s=!1),"}"!==e[t]||s||(r.ExpressionParserLog.push(`ERROR: ExpressionParser.lintTokenizedExpression found an unbalanced closing squiggly brace "}" in the tokenized expression at token index ${t}`),r.LinterResults.push(r.ExpressionParserLog[r.ExpressionParserLog.length-1]),this.log.error(r.ExpressionParserLog[r.ExpressionParserLog.length-1])),s&&(r.ExpressionParserLog.push(`WARNING: ExpressionParser.lintTokenizedExpression found an open squiggly brace in the tokenized expression at index ${t}`),r.LinterResults.push(r.ExpressionParserLog[r.ExpressionParserLog.length-1]),this.log.warn(r.ExpressionParserLog[r.ExpressionParserLog.length-1]));let i=0,o=!1;for(let t=0;t<e.length;t++)this.ExpressionParser.tokenMap[e[t]]&&"Assignment"===this.ExpressionParser.tokenMap[e[t]].Type&&(i++,o=t,i>1&&(r.ExpressionParserLog.push(`ERROR: ExpressionParser.lintTokenizedExpression found multiple equality assignments in the tokenized expression; equality assignment #${i} operator '${e[t]}' at token index ${t}.`),r.LinterResults.push(r.ExpressionParserLog[r.ExpressionParserLog.length-1]),this.log.error(r.ExpressionParserLog[r.ExpressionParserLog.length-1])));i<1&&(r.ExpressionParserLog.push("WARNING: ExpressionParser.lintTokenizedExpression found no equality assignment in the tokenized expression. One called Result will be added automatically."),r.LinterResults.push(r.ExpressionParserLog[r.ExpressionParserLog.length-1]),this.log.warn(r.ExpressionParserLog[r.ExpressionParserLog.length-1])),1===i&&3===e.length&&("Token.StateAddress"!==this.getTokenType(e[0])&&"Token.Symbol"!==this.getTokenType(e[2])||(r.ExpressionParserLog.push("WARNING: ExpressionParser.lintTokenizedExpression found a single equality assignment in the tokenized expression with no assignable address on the left side of the assignment."),r.LinterResults.push(r.ExpressionParserLog[r.ExpressionParserLog.length-1]),this.log.warn(r.ExpressionParserLog[r.ExpressionParserLog.length-1])));let a=!1;for(let t=0;t<e.length-1;t++)e[t]in this.ExpressionParser.tokenMap&&"Parenthesis"!=this.ExpressionParser.tokenMap[e[t]].Type&&!a?a=!0:e[t]in this.ExpressionParser.tokenMap&&"Parenthesis"!=this.ExpressionParser.tokenMap[e[t]].Type?"+"!==e[t]&&"-"!==e[t]&&(r.ExpressionParserLog.push(`ERROR: ExpressionParser.lintTokenizedExpression found an ${e[t]} operator adjacent to another operator in the tokenized expression at token index ${t}`),r.LinterResults.push(r.ExpressionParserLog[r.ExpressionParserLog.length-1]),this.log.error(r.ExpressionParserLog[r.ExpressionParserLog.length-1])):a=!1;return r.LinterResults}}},{"./Fable-Service-ExpressionParser-Base.js":141}],145:[function(e,t,r){const{PE:n}=e("big.js"),s=e("./Fable-Service-ExpressionParser-Base.js");t.exports=class extends s{constructor(e,t,r){super(e,t,r),this.serviceType="ExpressionParser-Messaging"}getOperationVirtualSymbolName(e){return e&&"VirtualSymbolName"in e?e.VirtualSymbolName:"Token.VirtualSymbol"===e.Type?e.Token:"NO_VIRTUAL_SYMBOL_NAME_FOUND"}getVirtualTokenValue(e,t){let r=this.getOperationVirtualSymbolName(e);if(("Token.Symbol"==e.Type||"Token.Constant"==e.Type)&&e.Value)return e.Value.toString();let n="VirtualSymbols"in t?t.VirtualSymbols:{};if(this.ExpressionParser.GenericManifest.checkAddressExists(n,r)){let e=this.ExpressionParser.GenericManifest.getValueAtAddress(n,r);return"object"==typeof e?`{${Object.keys(e).length} values}`:Array.isArray(e)?`[${Object.keys(e).length} values]`:e}return"NO_VALUE_FOUND"}getTokenAddressString(e){return pExpression.Token}getTokenSymbolString(e){return e.Token}getOperationSymbolMessage(e){if(!e)return"INVALID_OPERATION";let t=this.getOperationVirtualSymbolName(e),r=this.getTokenSymbolString(e.LeftValue),n=this.getTokenSymbolString(e.Operation),s=this.getTokenSymbolString(e.RightValue),i=t.substring(0,3);return"="===n?`${t} = ${r}`:"VFE"===i?`${t} = ${n}(${r})`:`${t} = ${r} ${n} ${s}`}getOperationValueMessage(e,t){if(!e)return"INVALID_OPERATION";let r=this.getOperationVirtualSymbolName(e),n=this.getVirtualTokenValue(e.LeftValue,t),s=this.getTokenSymbolString(e.Operation),i=this.getVirtualTokenValue(e.RightValue,t),o=r.substring(0,3);return"="===s?`${r} = ${n}`:"VFE"===o?`${r} = ${s}(${n})`:`${r} = ${n} ${s} ${i}`}getOperationOutcomeMessage(e,t){if(!e)return"INVALID_TOKEN";return`${this.getOperationVirtualSymbolName(e)} = ${this.getVirtualTokenValue(e,t)}`}logFunctionOutcome(e){if("object"!=typeof e)return void this.log.error("Solver results object was not an object. Cannot log outcome.");let t="PostfixedAssignmentAddress"in e?e.PostfixedAssignmentAddress:"NO_ASSIGNMENT_ADDRESS_FOUND",r="RawExpression"in e?e.RawExpression:"NO_EXPRESSION_FOUND",n="RawResult"in e?e.RawResult:"NO_RESULT_FOUND";this.log.info(`Solved f(${t}) = {${r}}`);for(let t=0;t<e.PostfixSolveList.length;t++){let r=e.PostfixSolveList[t],n=this.getOperationSymbolMessage(r);this.log.info(`${t} Symbols: ${n}`);let s=this.getOperationValueMessage(r,e);this.log.info(`${t} Values: ${s}`);let i=this.getOperationOutcomeMessage(r,e);this.log.info(`${t} Outcome: ${i}`)}this.log.info(`{${r}} = ${n}`)}logFunctionSolve(e){if("object"==typeof e)if("PostfixSolveList"in e&&Array.isArray(e.PostfixSolveList)){for(let t=0;t<e.PostfixSolveList.length;t++){let r=e.PostfixSolveList[t];console.log(`${t}: ${r.VirtualSymbolName} = (${r.LeftValue.Token}::${r.LeftValue.Value}) ${r.Operation.Token} (${r.RightValue.Token}::${r.RightValue.Value}) `)}this.logFunctionOutcome(e)}else this.log.error("Solver results object did not contain a PostfixSolveList array. Cannot log the solve.");else this.log.error("Solver results object was not an object. Cannot log the solve.")}}},{"./Fable-Service-ExpressionParser-Base.js":141,"big.js":17}],146:[function(e,t,r){const n=e("./Fable-Service-ExpressionParser-Base.js");t.exports=class extends n{constructor(e,t,r){super(e,t,r),this.serviceType="ExpressionParser-Postfix"}getPosfixSolveListOperation(e,t,r,n,s){let i={VirtualSymbolName:e.VirtualSymbolName,Operation:e,LeftValue:t,RightValue:r};Array.isArray(n);return i.LeftValue.VirtualSymbolName?"LeftVirtualSymbolName"in i.Operation?i.LeftValue=this.getTokenContainerObject(i.Operation.LeftVirtualSymbolName,"Token.VirtualSymbol"):i.LeftValue=this.getTokenContainerObject(i.LeftValue.VirtualSymbolName,"Token.VirtualSymbol"):i.LeftValue.VirtualSymbolName=i.VirtualSymbolName,i.RightValue.VirtualSymbolName?"RightVirtualSymbolName"in i.Operation?i.RightValue=this.getTokenContainerObject(i.Operation.RightVirtualSymbolName,"Token.VirtualSymbol"):i.RightValue=this.getTokenContainerObject(i.RightValue.VirtualSymbolName,"Token.VirtualSymbol"):i.RightValue.VirtualSymbolName=i.VirtualSymbolName,i.Operation.Parsed=!0,i}buildPostfixedSolveList(e,t){let r="object"==typeof t?t:{ExpressionParserLog:[]};if(r.PostfixedAssignmentAddress="Result",r.PostfixedAssignmentOperator=this.ExpressionParser.tokenMap["="],r.PostfixTokenObjects=[],r.PostfixSolveList=[],e.length<3)return r.ExpressionParserLog.push("ERROR: ExpressionParser.buildPostfixedSolveList was passed a tokenized expression with less than three tokens."),this.log.error(r.ExpressionParserLog[r.ExpressionParserLog.length-1]),r.PostfixTokenObjects;let n=-1;for(let t=0;t<e.length;t++)if(this.ExpressionParser.tokenMap[e[t]]&&"Assignment"===this.ExpressionParser.tokenMap[e[t]].Type){if(!(n<0))return r.ExpressionParserLog.push(`ERROR: ExpressionParser.buildPostfixedSolveList found multiple assignment operators in the tokenized expression; assignment operator '${e[t]}' #${n} at token index ${t}.`),this.log.error(r.ExpressionParserLog[r.ExpressionParserLog.length-1]),r.PostfixTokenObjects;n=t,r.PostfixedAssignmentOperator=this.ExpressionParser.tokenMap[e[t]]}-1==n?(r.ExpressionParserLog.push("WARNING: ExpressionParser.buildPostfixedSolveList found no equality assignment in the tokenized expression; defaulting to Result"),this.log.warn(r.ExpressionParserLog[r.ExpressionParserLog.length-1])):n>1?(r.ExpressionParserLog.push(`WARNING: ExpressionParser.buildPostfixedSolveList found an equality assignment in the tokenized expression at an unexpected location (token index ${n}); the expression cannot be parsed.`),this.log.warn(r.ExpressionParserLog[r.ExpressionParserLog.length-1])):0===n||(r.PostfixedAssignmentAddress=e[0]);for(let t=n+1;t<e.length;t++)r.PostfixTokenObjects.push(this.getTokenContainerObject(e[t]));let s=0,i=0,o=[];o.push(`SolveSet_${i}_D_${s}`);for(let e=0;e<r.PostfixTokenObjects.length;e++)"("===r.PostfixTokenObjects[e].Token?(r.PostfixTokenObjects[e].Depth=s,r.PostfixTokenObjects[e].VirtualSymbolName=`Pr_${i}_D_${s}`,e>0&&"Token.Symbol"===r.PostfixTokenObjects[e-1].Type&&(r.PostfixTokenObjects[e-1].Type="Token.Function"),r.PostfixTokenObjects[e].SolveLayerStack=o[o.length-1],o.push(r.PostfixTokenObjects[e].VirtualSymbolName),i++,s++):")"===r.PostfixTokenObjects[e].Token?(s--,r.PostfixTokenObjects[e].Depth=s,s<0&&(r.ExpressionParserLog.push(`ERROR: ExpressionParser.buildPostfixedSolveList found a closing parenthesis at token index ${e} with no corresponding opening parenthesis.`),this.log.error(r.ExpressionParserLog[r.ExpressionParserLog.length-1])),r.PostfixTokenObjects[e].VirtualSymbolName=o.pop(),r.PostfixTokenObjects[e].SolveLayerStack=o[o.length-1]):(r.PostfixTokenObjects[e].Depth=s,r.PostfixTokenObjects[e].SolveLayerStack=o[o.length-1]);let a={},l=0;for(let e=0;e<r.PostfixTokenObjects.length;e++)r.PostfixTokenObjects[e].SolveLayerStack in a||(a[r.PostfixTokenObjects[e].SolveLayerStack]=[]),a[r.PostfixTokenObjects[e].SolveLayerStack].push(r.PostfixTokenObjects[e]),r.PostfixTokenObjects[e].Depth>l&&(l=r.PostfixTokenObjects[e].Depth);let u=Object.keys(a),c=0;u.sort(((e,t)=>a[e][0].Depth<a[t][0].Depth?1:a[e][0].Depth>a[t][0].Depth?-1:0)),r.PostfixLayerstackMap={};const h=["+","-"],f=["Token.Operator","Token.Assignment"];for(let e=0;e<u.length;e++){let t=a[u[e]];for(let e=0;e<=this.ExpressionParser.tokenMaxPrecedence;e++)for(let n=0;n<t.length;n++){const s=t[n];if(h.includes(s.Token)&&(0==n||f.includes(t[n-1].Type))&&(s.Descriptor=JSON.parse(JSON.stringify(s.Descriptor)),s.Descriptor.Precedence=1),"Token.Operator"===t[n].Type&&s.Descriptor.Precedence===e){if(1===t.length)return r.ExpressionParserLog.push(`ERROR: ExpressionParser.buildPostfixedSolveList found a single operator in a solve layer expression at token index ${n}`),this.log.error(r.ExpressionParserLog[r.ExpressionParserLog.length-1]),r.PostfixSolveList;if(0!=n||"-"!=s.Token&&"+"!=s.Token){if(0==n&&("+"!=s.Token||"-"!=s.Token))return r.ExpressionParserLog.push(`ERROR: ExpressionParser.buildPostfixedSolveList found an operator at the beginning of a solve layer expression at token index ${n}`),this.log.error(r.ExpressionParserLog[r.ExpressionParserLog.length-1]),r.PostfixSolveList;if(n==t.length-1)return r.ExpressionParserLog.push(`ERROR: ExpressionParser.buildPostfixedSolveList found an operator at the end of a solve layer expression at token index ${n}`),this.log.error(r.ExpressionParserLog[r.ExpressionParserLog.length-1]),r.PostfixSolveList;if(n>0&&"-"==s.Token&&("Token.Operator"===t[n-1].Type||"("===t[n-1].Token))s.VirtualSymbolName=`VNLO_${c}`,c++;else{if(0==n&&"+"==s.Token)continue;if(n>0&&"+"==s.Token&&("Token.Operator"===t[n-1].Type||"("===t[n-1].Token))continue;if(("Token.Operator"===t[n-1].Type||"Token.Operator"===t[n+1].Type)&&"-"!=t[n+1].Token&&"+"!=t[n+1].Token)return r.ExpressionParserLog.push(`ERROR: ExpressionParser.buildPostfixedSolveList found an operator at token index ${n} that is not surrounded by two values.`),this.log.error(r.ExpressionParserLog[r.ExpressionParserLog.length-1]),r.PostfixSolveList;s.VirtualSymbolName=`V_${c}`,r.PostfixLayerstackMap[s.SolveLayerStack]=s.VirtualSymbolName,c++}}else s.VirtualSymbolName=`VNLO_${c}`,r.PostfixLayerstackMap[s.SolveLayerStack]=s.VirtualSymbolName,c++}else if("Token.Function"===t[n].Type&&0===e){let e=t[n];e.VirtualSymbolName=`VFE_${c}`,c++,r.PostfixLayerstackMap[e.SolveLayerStack]=e.VirtualSymbolName}}}let p=[];for(let e=0;e<r.PostfixTokenObjects.length;e++){let t=r.PostfixTokenObjects[e];if("Token.Parenthesis"===t.Type)if(t.ParenthesisStack=t.VirtualSymbolName,0==e){t.IsFunction=!1;let e=r.PostfixLayerstackMap[t.VirtualSymbolName];e||(e=`VP_${c}`,c++),t.VirtualSymbolName=e,p.push(t)}else if("("===t.Token){if("Token.Function"===r.PostfixTokenObjects[e-1].Type){t.IsFunction=!0,t.Function=r.PostfixTokenObjects[e-1];let n=r.PostfixLayerstackMap[t.VirtualSymbolName];n||(n=`VFP_${c}`,c++),t.VirtualSymbolName=n}else{t.IsFunction=!1;let e=r.PostfixLayerstackMap[t.VirtualSymbolName];e||(e=`VP_${c}`,c++),t.VirtualSymbolName=e}p.push(t)}else if(")"===t.Token){let e=p.pop();e.IsFunction?(t.IsFunction=!0,t.VirtualSymbolName=e.Function.VirtualSymbolName):(t.IsFunction=!1,t.VirtualSymbolName=e.VirtualSymbolName)}}for(let e=0;e<u.length;e++){let t=[],r=!1,n=a[u[e]];for(let e=0;e<n.length;e++){let s=n[e];if("Token.Operator"===s.Type&&(r=s),"Token.Function"===s.Type)s.PreviousOperator=r;else if("Token.Parenthesis"===s.Type&&"("===s.Token&&s.IsFunction)t.push(s),s.Function.PreviousOperator&&(s.PreviousOperator=s.Function.PreviousOperator);else if("Token.Parenthesis"===s.Type&&"("===s.Token)s.PreviousOperator=r,t.push(s);else if("Token.Parenthesis"===s.Type&&")"===s.Token){let r=t.pop();if(e<n.length-1)for(let t=e+1;t<n.length;t++)if("Token.Operator"===n[t].Type){r.NextOperator=n[t];break}r.PreviousOperator&&r.NextOperator&&(r.PreviousOperator.Descriptor.Precedence<=r.NextOperator.Descriptor.Precedence?r.NextOperator.LeftVirtualSymbolName=r.PreviousOperator.VirtualSymbolName:r.PreviousOperator.RightVirtualSymbolName=r.NextOperator.VirtualSymbolName)}else"SolveLayerStack"in s||(t.length>0?s.SolveLayerStack=t[t.length-1].SolveLayerStack:s.SolveLayerStack="Expression_Root")}}for(let e=0;e<u.length;e++){let t=!1,r=!1,n=a[u[e]];for(let e=n.length-1;e>=0;e--){let s=n[e];"Token.Operator"===s.Type&&(r?s.Descriptor.Precedence>t?(s.RightVirtualSymbolName=r.VirtualSymbolName,r=s):s.Descriptor.Precedence<t&&(r=s):r=s,t=s.Descriptor.Precedence)}let s=[],i=!1;for(let e=n.length-1;e>=0;e--){let r=n[e];if("Token.Operator"===r.Type){if(i)if(r.Descriptor.Precedence>t){if(s.length>0)for(let e=s.length-1;e>=0;e--)if(s[e].Descriptor.Precedence>=r.Descriptor.Precedence){s[e].LeftVirtualSymbolName=r.VirtualSymbolName,s.slice(e,1);break}i=r}else r.Descriptor.Precedence<t&&(s.push(i),i=r);else i=r;t=r.Descriptor.Precedence}}}for(let e=0;e<u.length;e++){let t=a[u[e]];if(1!==t.length){for(let e=0;e<=this.ExpressionParser.tokenMaxPrecedence;e++)for(let n=0;n<t.length;n++)if("Token.Operator"===t[n].Type&&t[n].Descriptor.Precedence===e){let e=t[n];if(0==n&&"-"==e.Token){let s=this.getTokenContainerObject("*");s.VirtualSymbolName=e.VirtualSymbolName,r.PostfixSolveList.push(this.getPosfixSolveListOperation(s,this.getTokenContainerObject("-1.0"),t[n+1]))}else if(n>0&&"-"==e.Token&&("Token.Operator"===t[n-1].Type||"("===t[n-1].Token)){let s=this.getTokenContainerObject("*");s.VirtualSymbolName=e.VirtualSymbolName,r.PostfixSolveList.push(this.getPosfixSolveListOperation(s,this.getTokenContainerObject("-1.0"),t[n+1]))}else{if(0==n&&"+"==e.Token)continue;if(n>0&&"+"==e.Token&&("Token.Operator"===t[n-1].Type||"("===t[n-1].Token))continue;r.PostfixSolveList.push(this.getPosfixSolveListOperation(e,t[n-1],t[n+1],t,n))}}else if("Token.Function"===t[n].Type&&0===e){let e=t[n];r.PostfixSolveList.push(this.getPosfixSolveListOperation(e,t[n+1],this.getTokenContainerObject("0.0")))}}else{let e=this.getTokenContainerObject("=");if(e.VirtualSymbolName=r.PostfixLayerstackMap[t[0].SolveLayerStack],!e.VirtualSymbolName)for(let n=0;n<r.PostfixTokenObjects.length;n++)if(r.PostfixTokenObjects[n].ParenthesisStack===t[0].SolveLayerStack){e.VirtualSymbolName=r.PostfixTokenObjects[n].VirtualSymbolName;break}r.PostfixSolveList.push(this.getPosfixSolveListOperation(e,t[0],this.getTokenContainerObject("0.0")))}}let d="PostfixedAssignmentOperator"in r?this.getTokenContainerObject(r.PostfixedAssignmentOperator.Token):this.getTokenContainerObject("=");d.VirtualSymbolName=r.PostfixedAssignmentAddress;let g=this.getTokenContainerObject("Result","Token.LastResult"),y=this.getPosfixSolveListOperation(d,g,this.getTokenContainerObject("SolverMarshal","Token.SolverMarshal"));return r.PostfixSolveList.push(y),r.PostfixSolveList}}},{"./Fable-Service-ExpressionParser-Base.js":141}],147:[function(e,t,r){const n=e("./Fable-Service-ExpressionParser-Base.js"),s=e("../Fable-SetConcatArray.js");t.exports=class extends n{constructor(e,t,r){super(e,t,r),this.serviceType="ExpressionParser-Solver"}solvePostfixedExpression(e,t,r,n){let i="object"==typeof r?r:{ExpressionParserLog:[]},o="object"==typeof n?n:this.fable.newManyfest(),a="object"==typeof t?t:{},l="fable"in i;if(l||(i.fable=this.fable),!Array.isArray(e))return i.ExpressionParserLog.push("ERROR: ExpressionParser.solvePostfixedExpression was passed a non-array postfixed expression."),this.log.error(i.ExpressionParserLog[i.ExpressionParserLog.length-1]),!1;if(e.length<1)return i.ExpressionParserLog.push("ERROR: ExpressionParser.solvePostfixedExpression was passed an empty postfixed expression."),this.log.error(i.ExpressionParserLog[i.ExpressionParserLog.length-1]),!1;i.VirtualSymbols={};for(let t=0;t<e.length;t++){if("Token.SolverInstruction"===e[t].Operation.Type)continue;let r={ExpressionStep:e[t],ExpressionStepIndex:t,ResultsObject:i,Manifest:o};if("Token.LastResult"===r.ExpressionStep.LeftValue.Type&&(r.ExpressionStep.LeftValue.Value=i.LastResult),"Token.LastResult"===r.ExpressionStep.RightValue.Type&&(r.ExpressionStep.RightValue.Value=i.LastResult),"Token.VirtualSymbol"===r.ExpressionStep.LeftValue.Type&&(r.ExpressionStep.LeftValue.Value=o.getValueAtAddress(i.VirtualSymbols,r.ExpressionStep.LeftValue.Token)),"Token.VirtualSymbol"===r.ExpressionStep.RightValue.Type&&(r.ExpressionStep.RightValue.Value=o.getValueAtAddress(i.VirtualSymbols,r.ExpressionStep.RightValue.Token)),"Token.Parenthesis"===r.ExpressionStep.LeftValue.Type&&(r.ExpressionStep.LeftValue.Value=o.getValueAtAddress(i.VirtualSymbols,r.ExpressionStep.LeftValue.VirtualSymbolName)),"Token.Parenthesis"===r.ExpressionStep.RightValue.Type&&(r.ExpressionStep.RightValue.Value=o.getValueAtAddress(i.VirtualSymbols,r.ExpressionStep.RightValue.VirtualSymbolName)),"Token.Constant"!==r.ExpressionStep.LeftValue.Type||"Value"in r.ExpressionStep.LeftValue||(r.ExpressionStep.LeftValue.Value=r.ExpressionStep.LeftValue.Token),"Token.Constant"!==r.ExpressionStep.RightValue.Type||"Value"in r.ExpressionStep.RightValue||(r.ExpressionStep.RightValue.Value=r.ExpressionStep.RightValue.Token),r.ExpressionStep.Operation.Type="Operator"){let e,n=!1;if(r.ExpressionStep.Operation.Token in this.ExpressionParser.tokenMap?e=`ResultsObject.${r.ExpressionStep.Operation.Descriptor.Function}`:r.ExpressionStep.Operation.Token.toLowerCase()in this.ExpressionParser.functionMap&&(n=!0,e=`ResultsObject.${this.ExpressionParser.functionMap[r.ExpressionStep.Operation.Token.toLowerCase()].Address}`),n)try{let t;const n=o.getValueAtAddress(r,e);if("function"==typeof n){let i=null;e.includes(".")&&(i=o.getValueAtAddress(r,e.split(".").slice(0,-1).join(".")));let a=r.ExpressionStep.LeftValue.Value;a=a instanceof s?a.values:[a],t=n.apply(i,a)}o.setValueAtAddress(i.VirtualSymbols,r.ExpressionStep.VirtualSymbolName,t),i.LastResult=o.getValueAtAddress(i.VirtualSymbols,r.ExpressionStep.VirtualSymbolName)}catch(e){return i.ExpressionParserLog.push(`ERROR: ExpressionParser.solvePostfixedExpression failed to solve step ${t} with function ${r.ExpressionStep.Operation.Token}: ${e}`),this.log.error(i.ExpressionParserLog[i.ExpressionParserLog.length-1]),!1}else try{o.setValueAtAddress(i.VirtualSymbols,r.ExpressionStep.VirtualSymbolName,o.getValueAtAddress(r,`${e}(ExpressionStep.LeftValue.Value,ExpressionStep.RightValue.Value)`)),i.LastResult=o.getValueAtAddress(i.VirtualSymbols,r.ExpressionStep.VirtualSymbolName)}catch(e){return i.ExpressionParserLog.push(`ERROR: ExpressionParser.solvePostfixedExpression failed to solve step ${t} with function ${r.ExpressionStep.Operation.Token}: ${e}`),this.log.error(i.ExpressionParserLog[i.ExpressionParserLog.length-1]),!1}i.SolverFinalVirtualSymbol=r.ExpressionStep.VirtualSymbolName}}let u=o.getValueAtAddress(i,`VirtualSymbols.${i.SolverFinalVirtualSymbol}`);for(let t=0;t<e.length;t++)"Token.SolverMarshal"===e[t].RightValue.Type&&(o.setValueAtAddress(i.VirtualSymbols,e[t].VirtualSymbolName,u),e[t].Operation.Descriptor.OnlyEmpty?this.fable.Utility.addressIsNullOrEmpty(a,e[t].VirtualSymbolName)&&o.setValueByHash(a,e[t].VirtualSymbolName,u):o.setValueByHash(a,e[t].VirtualSymbolName,u));return i.RawResult=u,l||delete i.fable,"object"==typeof u?u:void 0!==u?u.toString():u}}},{"../Fable-SetConcatArray.js":164,"./Fable-Service-ExpressionParser-Base.js":141}],148:[function(e,t,r){t.exports={"=":{Name:"Assign Value",Token:"=",Function:"fable.Math.assignValue",Precedence:0,Type:"Assignment"},"?=":{Name:"Null or Empty Coalescing Assign Value",Token:"?=",Function:"fable.Math.assignValue",OnlyEmpty:!0,Precedence:0,Type:"Assignment"},"(":{Name:"Left Parenthesis",Token:"(",Precedence:0,Type:"Parenthesis"},")":{Name:"Right Parenthesis",Token:")",Precedence:0,Type:"Parenthesis"},",":{Name:"Set Concatenate",Token:",",Function:"fable.Math.setConcatenate",Precedence:4,Type:"Operator"},"*":{Name:"Multiply",Token:"*",Function:"fable.Math.multiplyPrecise",Precedence:3,Type:"Operator"},"/":{Name:"Divide",Token:"/",Function:"fable.Math.dividePrecise",Precedence:3,Type:"Operator"},"^":{Name:"Exponent",Token:"^",Function:"fable.Math.powerPrecise",Precedence:2,Type:"Operator"},"%":{Name:"Modulus",Token:"%",Function:"fable.Math.modPrecise",Precedence:3,Type:"Operator"},"+":{Name:"Add",Token:"+",Function:"fable.Math.addPrecise",Precedence:4,Type:"Operator"},"-":{Name:"Subtract",Token:"-",Function:"fable.Math.subtractPrecise",Precedence:4,Type:"Operator"}}},{}],149:[function(e,t,r){const n=e("./Fable-Service-ExpressionParser-Base.js");t.exports=class extends n{constructor(e,t,r){super(e,t,r),this.serviceType="ExpressionParser-ValueMarshal"}substituteValuesInTokenizedObjects(e,t,r,n){let s="object"==typeof r?r:{ExpressionParserLog:[]};if(!Array.isArray(e))return s.ExpressionParserLog.push("ERROR: ExpressionParser.substituteValuesInTokenizedObjects was passed a non-array tokenized object list."),this.log.error(s.ExpressionParserLog[s.ExpressionParserLog.length-1]),e;if("object"!=typeof t)return s.ExpressionParserLog.push("ERROR: ExpressionParser.substituteValuesInTokenizedObjects either was passed no data source, or was passed a non-object data source."),this.log.error(s.ExpressionParserLog[s.ExpressionParserLog.length-1]),e;let i=t,o="object"==typeof n?n:this.fable.newManyfest(n);for(let t=0;t<e.length;t++){if("object"!=typeof e[t]){s.ExpressionParserLog.push(`WARNING: ExpressionParser.substituteValuesInTokenizedObjects found a non-object tokenized object at index ${t}`),this.log.warn(s.ExpressionParserLog[s.ExpressionParserLog.length-1]);continue}let r=e[t];if("Token.Symbol"===e[t].Type&&!r.Resolved){let e=o.getValueByHash(i,r.Token);if(!e){r.Value=e,r.Resolve=!0,s.ExpressionParserLog.push(`WARNING: ExpressionParser.substituteValuesInTokenizedObjects found no value for the symbol hash or address ${r.Token} at index ${t}`),this.log.warn(s.ExpressionParserLog[s.ExpressionParserLog.length-1]);continue}s.ExpressionParserLog.push(`INFO: ExpressionParser.substituteValuesInTokenizedObjects found a value [${e}] for the state address ${r.Token} at index ${t}`),this.LogNoisiness>1&&this.log.info(s.ExpressionParserLog[s.ExpressionParserLog.length-1]);try{let t=new this.fable.Utility.bigNumber(e);r.Resolved=!0,r.Value=t.toString()}catch(n){Array.isArray(e)||"object"==typeof e?(r.Resolved=!0,r.Value=e):(r.Resolved=!0,r.Value=e,s.ExpressionParserLog.push(`INFO: ExpressionParser.substituteValuesInTokenizedObjects found a non-numeric value for the state address ${r.Token} at index ${t}; using raw value.`),this.log.warn(s.ExpressionParserLog[s.ExpressionParserLog.length-1]))}}if("Token.StateAddress"===e[t].Type&&!r.Resolved){let e=o.getValueAtAddress(i,r.Token);if(!e){s.ExpressionParserLog.push(`WARNING: ExpressionParser.substituteValuesInTokenizedObjects found no value for the state address ${r.Token} at index ${t}`),this.log.warn(s.ExpressionParserLog[s.ExpressionParserLog.length-1]);continue}this.log.info(s.ExpressionParserLog[s.ExpressionParserLog.length-1]);try{let t=new this.fable.Utility.bigNumber(e);r.Resolved=!0,r.Value=t.toString()}catch(e){s.ExpressionParserLog.push(`ERROR: ExpressionParser.substituteValuesInTokenizedObjects found a non-numeric value for the state address ${r.Token} at index ${t}`),this.log.error(s.ExpressionParserLog[s.ExpressionParserLog.length-1]),r.Resolved=!1}}if("Token.String"!==e[t].Type||r.Resolved||(s.ExpressionParserLog.push(`INFO: ExpressionParser.substituteValuesInTokenizedObjects found a value [${r.Token}] for the string ${r.Token} at index ${t}`),this.LogNoisiness>1&&this.log.info(s.ExpressionParserLog[s.ExpressionParserLog.length-1]),r.Resolved=!0,r.Value=r.Token.substring(1,r.Token.length-1)),"Token.Constant"===e[t].Type&&!r.Resolved){s.ExpressionParserLog.push(`INFO: ExpressionParser.substituteValuesInTokenizedObjects found a value [${r.Token}] for the constant ${r.Token} at index ${t}`),this.LogNoisiness>1&&this.log.info(s.ExpressionParserLog[s.ExpressionParserLog.length-1]);try{let e=new this.fable.Utility.bigNumber(r.Token);r.Resolved=!0,r.Value=e.toString()}catch(e){s.ExpressionParserLog.push(`ERROR: ExpressionParser.substituteValuesInTokenizedObjects found a non-numeric value for the state address ${r.Token} at index ${t}`),this.log.error(s.ExpressionParserLog[s.ExpressionParserLog.length-1]),r.Resolved=!1}}}return e}}},{"./Fable-Service-ExpressionParser-Base.js":141}],150:[function(e,t,r){(function(r){(function(){const n=e("fable-serviceproviderbase"),s=e("fs"),i=e("path"),o=e("readline");t.exports=class extends n{constructor(e,t,n){super(e,t,n),this.serviceType="FilePersistence","Mode"in this.options||(this.options.Mode=parseInt("0777",8)&~r.umask()),this.libFS=s,this.libPath=i,this.libReadline=o}joinPath(){return i.resolve(...arguments)}resolvePath(){return i.resolve(...arguments)}existsSync(e){return s.existsSync(e)}exists(e,t){return t(null,this.existsSync(e))}deleteFileSync(e){return s.unlinkSync(e)}deleteFolderSync(e){return s.rmdirSync(e)}readFileSync(e,t){let r=void 0===t?"utf8":t;return s.readFileSync(e,r)}readFile(e,t,r){let n=void 0===t?"utf8":t;return s.readFile(e,n,r)}readFileCSV(e,t,r,n,s){let i=this.fable.instantiateServiceProviderWithoutRegistration("CSVParser",t),o="function"==typeof r?r:e=>{this.fable.log.trace(`CSV Reader received line ${e}`)},a="function"==typeof n?n:()=>{this.fable.log.info(`CSV Read of ${e} complete.`)},l="function"==typeof s?s:t=>{this.fable.log.error(`CSV Read of ${e} Error: ${t}`,t)};return this.lineReaderFactory(e,(e=>{let t=i.parseCSVLine(e);t&&o(t,e)}),a,l)}appendFileSync(e,t,r){let n=void 0===r?"utf8":r;return s.appendFileSync(e,t,n)}writeFileSync(e,t,r){let n=void 0===r?"utf8":r;return s.writeFileSync(e,t,n)}writeFileSyncFromObject(e,t){return this.writeFileSync(e,JSON.stringify(t,null,4))}writeFileSyncFromArray(e,t){if(!Array.isArray(t))return this.log.error(`File Persistence Service attempted to write ${e} from array but the expected array was not an array (it was a ${typeof t}).`),Error("Attempted to write ${pFileName} from array but the expected array was not an array (it was a ${typeof(pFileArray)}).");for(let r=0;r<t.length;r++)return this.appendFileSync(e,`${t[r]}\n`)}writeFile(e,t,r,n){let i=void 0===r?"utf8":r;return s.writeFile(e,t,i,n)}lineReaderFactory(e,t,r,n){let i={};return"string"==typeof e&&(i.filePath=e,i.fileStream=s.createReadStream(i.filePath),i.reader=o.createInterface({input:i.fileStream,crlfDelay:1/0}),"function"==typeof n&&i.reader.on("error",n),i.reader.on("line","function"==typeof t?t:()=>{}),"function"==typeof r&&i.reader.on("close",r),i)}makeFolderRecursive(e,t){let r=e;if("string"==typeof e)r={Path:e};else if("object"!=typeof e)return t(new Error("Parameters object or string not properly passed to recursive folder create.")),!1;return"string"!=typeof r.Path?(t(new Error("Parameters object needs a path to run the folder create operation.")),!1):("Mode"in r||(r.Mode=this.options.Mode),void 0===r.CurrentPathIndex?(r.ActualPath=i.normalize(r.Path),r.ActualPathParts=r.ActualPath.split(i.sep),r.CurrentPathIndex=0,r.CurrentPath=""):(r.CurrentPath==i.sep?r.CurrentPath=r.CurrentPath+r.ActualPathParts[r.CurrentPathIndex]:r.CurrentPath=r.CurrentPath+i.sep+r.ActualPathParts[r.CurrentPathIndex],r.CurrentPathIndex++),r.CurrentPathIndex>=r.ActualPathParts.length?t(null):void s.open(r.CurrentPath+i.sep+r.ActualPathParts[r.CurrentPathIndex],"r",((e,n)=>{if(n&&s.closeSync(n),!e||"ENOENT"!=e.code)return this.makeFolderRecursive(r,t);s.mkdir(r.CurrentPath+i.sep+r.ActualPathParts[r.CurrentPathIndex],r.Mode,(e=>e?"EEXIST"==e.code?this.makeFolderRecursive(r,t):(console.log(e.code),t(e)):this.makeFolderRecursive(r,t)))})))}}}).call(this)}).call(this,e("_process"))},{_process:91,"fable-serviceproviderbase":53,fs:19,path:87,readline:19}],151:[function(e,t,r){const n=e("fable-serviceproviderbase");t.exports=class extends n{constructor(e,t,r){super(e,t,r)}checkIf(e,t,r,n,s){let i=this.fable.Math.parsePrecise(e,null),o=this.fable.Math.parsePrecise(r,null),a=!1;if(null===i||null===o)switch(void 0===s&&(s=""),t){case"<":case"LT":a=e<r;break;case"<=":case"LTE":a=e<=r;break;case">":case"GT":a=e>r;break;case">=":case"GTE":a=e>=r;break;case"==":a=e==r;break;case"===":a=e===r;break;default:this.fable.log.warn(`[FableServiceLogic.checkIf] Invalid comparison operator: ${t}`),a=e==r}else switch(void 0===s&&(s="0"),t){case"<":case"LT":a=this.fable.Math.ltPrecise(i,o);break;case"<=":case"LTE":a=this.fable.Math.ltePrecise(i,o);break;case">":case"GT":a=this.fable.Math.gtPrecise(i,o);break;case">=":case"GTE":a=this.fable.Math.gtePrecise(i,o);break;case"==":a=0==this.fable.Math.comparePreciseWithin(i,o,"0.000001");break;case"===":a=0==this.fable.Math.comparePrecise(i,o);break;default:this.fable.log.warn(`[FableServiceLogic.checkIf] Invalid comparison operator: ${t}`),a=e==r?n:s}return a?n:s}when(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return e?Array.isArray(e)&&e.length<1||"object"==typeof e&&Object.keys(e).length<1?r:t:r}}},{"fable-serviceproviderbase":53}],152:[function(e,t,r){const n=e("fable-serviceproviderbase"),s=e("./Fable-SetConcatArray.js");t.exports=class extends n{constructor(e,t,r){super(e,t,r),this.serviceType="Math",this.pi="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679",this.euler="2.7182818284590452353602874713526624977572470936999595749669676277240766303535475945713821785251664",this.bigNumber=this.fable.Utility.bigNumber,this.ln2Cache=new Map}get roundDown(){return this.bigNumber.roundDown}get roundHalfUp(){return this.bigNumber.roundHalfUp}get roundHalfEven(){return this.bigNumber.roundHalfEven}get roundUp(){return this.bigNumber.roundUp}parsePrecise(e,t){let r;try{r=new this.bigNumber(e)}catch(e){r=void 0===t?"0.0":t}return r?r.toString():r}assignValue(e){return e}percentagePrecise(e,t){let r=isNaN(e)?0:e,n=isNaN(t)?0:t;if(0==n)return"0";let s=new this.bigNumber(r).div(n);return s=s.times(100),s.toString()}setConcatenate(e,t){return new s(e,t)}roundPrecise(e,t,r){let n=isNaN(e)?0:e,s=isNaN(t)?0:parseInt(t,10),i=void 0===r?this.roundHalfUp:parseInt(r,10);return new this.bigNumber(n).round(s,i).toString()}toFixedPrecise(e,t,r){let n=isNaN(e)?0:e,s=isNaN(t)?0:parseInt(t,10),i=void 0===r?this.roundHalfUp:r;return new this.bigNumber(n).toFixed(s,i).toString()}addPrecise(e,t){let r=isNaN(e)?0:e,n=isNaN(t)?0:t;return new this.bigNumber(r).plus(n).toString()}subtractPrecise(e,t){let r=isNaN(e)?0:e,n=isNaN(t)?0:t;return new this.bigNumber(r).minus(n).toString()}powerPrecise(e,t){let r,n=isNaN(e)?0:e,s=isNaN(t)?0:parseInt(t);if(s==Number(t)){r=new this.bigNumber(n).pow(s)}else r=Math.pow(n,Number(t));return r.toString()}multiplyPrecise(e,t){let r=isNaN(e)?0:e,n=isNaN(t)?0:t;return new this.bigNumber(r).times(n).toString()}dividePrecise(e,t){let r=isNaN(e)?0:e,n=isNaN(t)?0:t;return new this.bigNumber(r).div(n).toString()}modPrecise(e,t){let r=isNaN(e)?0:e,n=isNaN(t)?0:t;return new this.bigNumber(r).mod(n).toString()}sqrtPrecise(e){let t=isNaN(e)?0:e;return new this.bigNumber(t).sqrt().toString()}absPrecise(e){let t=isNaN(e)?0:e;return new this.bigNumber(t).abs().toString()}floorPrecise(e){let t=isNaN(e)?0:e;return Math.floor(t).toString()}ceilPrecise(e){let t=isNaN(e)?0:e;return Math.ceil(t).toString()}comparePrecise(e,t){let r=isNaN(e)?0:e,n=isNaN(t)?0:t;return new this.bigNumber(r).cmp(n)}comparePreciseWithin(e,t,r){let n=isNaN(e)?0:e,s=isNaN(t)?0:t,i=new this.bigNumber(n);return i.minus(s).abs().lte(r)?0:i.lt(s)?-1:1}gtPrecise(e,t){let r=isNaN(e)?0:e,n=isNaN(t)?0:t;return new this.bigNumber(r).gt(n)}gtePrecise(e,t){let r=isNaN(e)?0:e,n=isNaN(t)?0:t;return new this.bigNumber(r).gte(n)}ltPrecise(e,t){let r=isNaN(e)?0:e,n=isNaN(t)?0:t;return new this.bigNumber(r).lt(n)}ltePrecise(e,t){let r=isNaN(e)?0:e,n=isNaN(t)?0:t;return new this.bigNumber(r).lte(n)}radPrecise(e){let t=isNaN(e)?0:e;return new this.bigNumber(t).times(Math.PI).div(180).toString()}piPrecise(e){return void 0===e?this.pi:this.roundPrecise(this.pi,e)}eulerPrecise(e){return void 0===e?this.euler:this.roundPrecise(this.euler,e)}sin(e){let t=isNaN(e)?0:e;return Math.sin(t)}cos(e){let t=isNaN(e)?0:e;return Math.cos(t)}tan(e){let t=isNaN(e)?0:e;return Math.tan(t)}countSetElements(e){return Array.isArray(e)?e.length:"object"==typeof e?Object.keys(e).length:e?1:0}sortSetPrecise(e){let t=[];if(Array.isArray(e))for(let r=0;r<e.length;r++)t.push(this.parsePrecise(e[r],NaN));else if("object"==typeof e){let r=Object.keys(e);for(let n=0;n<r.length;n++)t.push(this.parsePrecise(e[r[n]],NaN))}return t.sort(((e,t)=>this.comparePrecise(e,t))),t}bucketSetPrecise(e,t){let r={},n=this.parsePrecise(t,NaN);if(Array.isArray(e))for(let t=0;t<e.length;t++){let s=this.parsePrecise(e[t],NaN).toString();isNaN(n)||(s=this.dividePrecise(e[t],n)),s in r||(r[s]=0),r[s]=r[s]+1}else if("object"==typeof e){let t=Object.keys(e);for(let s=0;s<t.length;s++){let i=this.parsePrecise(e[t[s]],NaN).toString();isNaN(n)||(i=this.dividePrecise(e[s],n)),i in r||(r[i]=0),r[i]=r[i]+1}}return r}histogramPrecise(e){return this.bucketSetPrecise(e)}sortHistogramPrecise(e){let t={},r=Object.keys(e);r.sort(((t,r)=>e[t]-e[r]));for(let n=0;n<r.length;n++)t[r[n]]=e[r[n]];return t}cleanValueArray(e,t){let r=void 0!==t&&t;if(!Array.isArray(e))return[];let n=[];for(let t=0;t<e.length;t++){let s=this.parsePrecise(e[t],NaN);isNaN(s)||r&&"0"==s||n.push(s)}return n}arbitraryNaturalLogOfTwo(e){const t=0|e,r=new this.bigNumber(t);if(this.ln2Cache.has(t))return this.ln2Cache.get(t);const n=new this.bigNumber(2),s=n.minus(1).div(n.plus(1)),i=s.mul(s);let o=new this.bigNumber(0),a=s,l=1;const u=this.powerPrecise(10,-r.add(8));for(let e=0;e<2e5&&(o=o.plus(a.div(l)),a=a.mul(i),l+=2,!a.abs().div(l).lt(u));e++);const c=o.mul(2);return this.ln2Cache.set(t,c),c}arbitraryNaturalLog(e,t){let r=new this.bigNumber(e),n=new this.bigNumber(t);if(r.lte(0))throw new Error("ln undefined for non-positive values.");if(r.eq(1))return new this.bigNumber(0);const s=new this.bigNumber(2);let i=0,o=r;const a=new this.bigNumber("1.5"),l=new this.bigNumber("0.75");for(;o.gt(a);)o=o.div(s),i+=1;for(;o.lt(l);)o=o.mul(s),i-=1;const u=o.minus(1).div(o.plus(1)),c=u.mul(u);let h=new this.bigNumber(0),f=u,p=1;const d=this.powerPrecise(10,-n.add(6));for(let e=0;e<2e5&&(h=h.plus(f.div(p)),f=f.mul(c),p+=2,!f.abs().div(p).lt(d));e++);const g=h.mul(2),y=this.arbitraryNaturalLogOfTwo(n);return g.plus(y.mul(i))}logPrecise(e,t,r){let n=void 0===t?this.bigNumber(10):this.bigNumber(t);const s=void 0===r?9:r,i=s+8,o=this.bigNumber.DP,a=this.bigNumber.RM;this.bigNumber.DP=i,this.bigNumber.RM=1;const l=this.bigNumber(e),u=this.bigNumber(n);if(l.lte(0))return this.log.error(`Fable logPrecise Error: Number must be greater than 0; number was ${e}.`),NaN;if(u.lte(0)||u.eq(1))return this.log.error(`Fable logPrecise Error: Base must be greater than 0 and not equal to 1 -- base ${Base} was passed in.`),NaN;const c=this.arbitraryNaturalLog(l,s),h=this.arbitraryNaturalLog(u,s);let f=c.div(h).toFixed(s);return this.bigNumber.DP=o,this.bigNumber.RM=a,f}expPrecise(e,t){let r=isNaN(e)?this.bigNumber(1):this.bigNumber(e);const n=void 0===t?9:parseInt(t,10),s=this.bigNumber.DP;this.bigNumber.DP=n+10;const i=new this.bigNumber("0.693147180559945309417232121458176568"),o=new this.bigNumber("709.782712893384"),a=new this.bigNumber("-744.4400719213812");if(r.gt(o))return this.bigNumber.DP=s,NaN;if(r.lt(a))return this.bigNumber.DP=s,new this.bigNumber(0);let l;try{l=r.div(i).round(0,0)}catch(t){return this.log.error(`Fable expPrecise Error: Rounding error during range reduction for value of ${e}. Error: ${t}`),this.bigNumber.DP=s,NaN}const u=r.minus(l.times(i)),c=new this.bigNumber(10).pow(-(n+2));let h=new this.bigNumber(1),f=new this.bigNumber(1),p=1;for(;h=h.times(u).div(p),!h.abs().lt(c);)if(f=f.plus(h),p++,p>2e3){this.log.warn(`Fable expPrecise warning: Taylor series failed to converge after 2000 iterations for value of ${e}.`);break}const d=new this.bigNumber(2),g=l.abs().toNumber();let y=0===g?new this.bigNumber(1):d.pow(g);const m=l.gte(0)?f.times(y):f.div(y);return this.bigNumber.DP=s,m.round(n).toString()}cleanValueObject(e){if("object"!=typeof e)return{};let t={},r=Object.keys(e);for(let n=0;n<r.length;n++){let s=this.parsePrecise(e[r[n]],NaN);isNaN(s)||(t[r[n]]=s)}return t}histogramDistributionByExactValue(e,t,r){if(!Array.isArray(e))return e;if(!t)return{};let n={};for(let s=0;s<e.length;s++){let i=this.fable.Utility.getValueByHash(e[s],t,r).toString();i in n||(n[i]=0),n[i]=n[i]+1}return n}histogramDistributionByExactValueFromInternalState(e,t){if(!e)return{};let r=this.fable.Utility.getInternalValueByHash(e);return this.histogramDistributionByExactValue(r,t)}histogramAggregationByExactValue(e,t,r,n){if(!Array.isArray(e))return e;if(!t||!r)return{};let s={};for(let i=0;i<e.length;i++){let o=this.fable.Utility.getValueByHash(e[i],t,n).toString(),a=this.parsePrecise(this.fable.Utility.getValueByHash(e[i],r,n),NaN);o in s||(s[o]=0),isNaN(a)||(s[o]=this.addPrecise(s[o],a))}return s}histogramAggregationByExactValueFromInternalState(e,t,r){if(!e)return{};let n=this.fable.Utility.getInternalValueByHash(e);return this.histogramAggregationByExactValue(n,t,r)}entryInSet(e,t,r){const n="number"==typeof r?r:parseInt(r);if(!Array.isArray(e))return e;if(!t)return!1;if(isNaN(n)||n>=e.length)return!1;let s=e.toSorted(((e,r)=>this.comparePrecise(e[t],r[t])));return s[n<0?s.length+n:n]}smallestInSet(e,t){return this.entryInSet(e,t,0)}largestInSet(e,t){return this.entryInSet(e,t,-1)}cumulativeSummation(e,t,r,n){if(!Array.isArray(e))return e;if(!t||!r)return e;let s="0.0";for(let i=0;i<e.length;i++){let o=this.parsePrecise(this.fable.Utility.getValueByHash(e[i],t,n));isNaN(o)?this.fable.Utility.setValueByHash(e[i],r,s,n):(s=this.addPrecise(o,s),this.fable.Utility.setValueByHash(e[i],r,s,n))}return e}maxPrecise(e){let t=NaN;if(Array.isArray(e))for(let r=0;r<e.length;r++)if(t){let n=this.parsePrecise(e[r],NaN);this.gtPrecise(n,t)&&(t=n)}else t=this.parsePrecise(e[r],NaN);else if("object"==typeof e){let r=Object.keys(e);for(let n=0;n<r.length;n++)if(t){let s=this.parsePrecise(e[r[n]],NaN);this.gtPrecise(s,t)&&(t=s)}else t=this.parsePrecise(e[r[n]],NaN)}return t}minPrecise(e){let t=NaN;if(Array.isArray(e))for(let r=0;r<e.length;r++)if(t){let n=this.parsePrecise(e[r],NaN);!isNaN(n)&&this.ltPrecise(n,t)&&(t=n)}else t=this.parsePrecise(e[r],NaN);else if("object"==typeof e){let r=Object.keys(e);for(let n=0;n<r.length;n++)if(t){let s=this.parsePrecise(e[r[n]],NaN);!isNaN(s)&&this.ltPrecise(s,t)&&(t=s)}else t=this.parsePrecise(e[r[n]],NaN)}return t}sumPrecise(e){let t="0.0";if(Array.isArray(e))for(let r=0;r<e.length;r++){let n=this.parsePrecise(e[r],NaN);isNaN(n)||(t=this.addPrecise(t,n))}else if("object"==typeof e){let r=Object.keys(e);for(let n=0;n<r.length;n++){let s=this.parsePrecise(e[r[n]],NaN);isNaN(s)||(t=this.addPrecise(t,s))}}return t}meanPrecise(e){let t=this.sumPrecise(e),r=this.countSetElements(e);return 0==r?"0.0":this.dividePrecise(t,r)}averagePrecise(e){return this.meanPrecise(e)}medianPrecise(e){let t=this.countSetElements(e);if(0==t)return"0.0";let r=this.sortSetPrecise(e),n=Math.floor(t/2);if(t%2==1)return r[n];{let e=r[n-1],t=r[n];return this.dividePrecise(this.addPrecise(e,t),2)}}modePrecise(e){let t=this.bucketSetPrecise(e),r=0,n=Object.keys(t),s=[];for(let e=0;e<n.length;e++)t[n[e]]>r?(r=t[n[e]],s=[n[e]]):t[n[e]]==r&&s.push(n[e]);return s}}},{"./Fable-SetConcatArray.js":164,"fable-serviceproviderbase":53}],153:[function(e,t,r){const n=e("fable-serviceproviderbase"),s=e("./Fable-Service-MetaTemplate/MetaTemplate-WordTree.js"),i=e("./Fable-Service-MetaTemplate/MetaTemplate-StringParser.js");t.exports=class extends n{constructor(e,t,r){super(e,t,r),this.serviceType="MetaTemplate",this.WordTree=new s,this.StringParser=new i(this.fable),this.ParseTree=this.WordTree.ParseTree}addPattern(e,t,r,n){return this.WordTree.addPattern(e,t,r,n)}addPatternBoth(e,t,r,n,s){return this.WordTree.addPatternBoth(e,t,r,n,s)}parseString(e,t,r,n,s,i){return this.LogNoisiness>4&&this.fable.log.trace(`Metatemplate parsing template string [${e}] where the callback is a ${typeof r}`,{TemplateData:t}),this.StringParser.parseString(e,this.ParseTree,t,r,n,s,i)}}},{"./Fable-Service-MetaTemplate/MetaTemplate-StringParser.js":154,"./Fable-Service-MetaTemplate/MetaTemplate-WordTree.js":155,"fable-serviceproviderbase":53}],154:[function(e,t,r){t.exports=class{constructor(e){this.fable=e}newParserState(e){return{ParseTree:e,Asynchronous:!1,Output:"",OutputBuffer:"",Pattern:{},PatternMatch:!1,PatternMatchEnd:!1}}appendOutputBuffer(e,t){t.OutputBuffer+=e}flushOutputBuffer(e){e.Output+=e.OutputBuffer,e.OutputBuffer=""}resetOutputBuffer(e){return this.flushOutputBuffer(e),e.Pattern=!1,e.PatternStartNode=!1,e.StartPatternMatchComplete=!1,e.EndPatternMatchBegan=!1,e.PatternMatch=!1,!0}parseCharacter(e,t,r,n,s,i){if(t.PatternMatch)if(!t.StartPatternMatchComplete&&e in t.Pattern)t.Pattern=t.Pattern[e],this.appendOutputBuffer(e,t);else if(t.EndPatternMatchBegan){if(e in t.Pattern.PatternEnd){t.Pattern=t.Pattern.PatternEnd[e],this.appendOutputBuffer(e,t);let o="ParserContext"in t.Pattern&&t.Pattern.ParserContext;return t.OutputBuffer=o?t.Pattern.Parse.call(o,t.OutputBuffer.substr(t.Pattern.PatternStartString.length,t.OutputBuffer.length-(t.Pattern.PatternStartString.length+t.Pattern.PatternEndString.length)),r,n,s,i):t.Pattern.Parse(t.OutputBuffer.substr(t.Pattern.PatternStartString.length,t.OutputBuffer.length-(t.Pattern.PatternStartString.length+t.Pattern.PatternEndString.length)),r,n,s,i),this.resetOutputBuffer(t)}e in t.PatternStartNode.PatternEnd?(t.Pattern=t.PatternStartNode.PatternEnd[e],this.appendOutputBuffer(e,t)):(t.EndPatternMatchBegan=!1,this.appendOutputBuffer(e,t))}else if("PatternEnd"in t.Pattern){if(t.StartPatternMatchComplete||(t.StartPatternMatchComplete=!0,t.PatternStartNode=t.Pattern),this.appendOutputBuffer(e,t),e in t.Pattern.PatternEnd&&(t.EndPatternMatchBegan=!0,t.Pattern=t.Pattern.PatternEnd[e],"Parse"in t.Pattern)){let e="ParserContext"in t.Pattern&&t.Pattern.ParserContext;return t.OutputBuffer=e?t.Pattern.Parse.call(e,t.OutputBuffer.substr(t.Pattern.PatternStartString.length,t.OutputBuffer.length-(t.Pattern.PatternStartString.length+t.Pattern.PatternEndString.length)),r,n,s,i):t.Pattern.Parse(t.OutputBuffer.substr(t.Pattern.PatternStartString.length,t.OutputBuffer.length-(t.Pattern.PatternStartString.length+t.Pattern.PatternEndString.length)),r,n,s,i),this.resetOutputBuffer(t)}}else this.resetOutputBuffer(t);if(!t.PatternMatch){if(e in t.ParseTree)return this.resetOutputBuffer(t),this.appendOutputBuffer(e,t),t.Pattern=t.ParseTree[e],t.PatternMatch=!0,!0;this.appendOutputBuffer(e,t)}return!1}executePatternAsync(e,t,r,n,s,i){if(e.Pattern.isAsync){let o="ParserContext"in e.Pattern&&e.Pattern.ParserContext;return o?e.Pattern.ParseAsync.call(o,e.OutputBuffer.substr(e.Pattern.PatternStartString.length,e.OutputBuffer.length-(e.Pattern.PatternStartString.length+e.Pattern.PatternEndString.length)),t,((t,n)=>(t&&this.fable.log.info(`Precedent ERROR: Async template error happened parsing ${e.Pattern.PatternStart} ... ${e.Pattern.PatternEnd}: ${t}`),e.OutputBuffer=n,this.resetOutputBuffer(e),r())),n,s,i):e.Pattern.ParseAsync(e.OutputBuffer.substr(e.Pattern.PatternStartString.length,e.OutputBuffer.length-(e.Pattern.PatternStartString.length+e.Pattern.PatternEndString.length)),t,((t,n)=>(t&&this.fable.log.info(`Precedent ERROR: Async template error happened parsing ${e.Pattern.PatternStart} ... ${e.Pattern.PatternEnd}: ${t}`),e.OutputBuffer=n,this.resetOutputBuffer(e),r())),n,s,i)}{let o="ParserContext"in e.Pattern&&e.Pattern.ParserContext;return e.OutputBuffer=o?e.Pattern.Parse.call(o,e.OutputBuffer.substr(e.Pattern.PatternStartString.length,e.OutputBuffer.length-(e.Pattern.PatternStartString.length+e.Pattern.PatternEndString.length)),t,n,s,i):e.Pattern.Parse(e.OutputBuffer.substr(e.Pattern.PatternStartString.length,e.OutputBuffer.length-(e.Pattern.PatternStartString.length+e.Pattern.PatternEndString.length)),t,n,s,i),this.resetOutputBuffer(e),r()}}parseCharacterAsync(e,t,r,n,s,i,o){if(t.PatternMatch)if(!t.StartPatternMatchComplete&&e in t.Pattern)t.Pattern=t.Pattern[e],this.appendOutputBuffer(e,t);else if(t.EndPatternMatchBegan)if(e in t.Pattern.PatternEnd){if(t.Pattern=t.Pattern.PatternEnd[e],this.appendOutputBuffer(e,t),"Parse"in t.Pattern)return this.executePatternAsync(t,r,n,s,i,o)}else e in t.PatternStartNode.PatternEnd?(t.Pattern=t.PatternStartNode.PatternEnd[e],this.appendOutputBuffer(e,t)):(t.EndPatternMatchBegan=!1,this.appendOutputBuffer(e,t));else if("PatternEnd"in t.Pattern){if(t.StartPatternMatchComplete||(t.StartPatternMatchComplete=!0,t.PatternStartNode=t.Pattern),this.appendOutputBuffer(e,t),e in t.Pattern.PatternEnd&&(t.EndPatternMatchBegan=!0,t.Pattern=t.Pattern.PatternEnd[e],"Parse"in t.Pattern))return this.executePatternAsync(t,r,n,s,i,o)}else this.resetOutputBuffer(t);else e in t.ParseTree?(this.resetOutputBuffer(t),this.appendOutputBuffer(e,t),t.Pattern=t.ParseTree[e],t.PatternMatch=!0):this.appendOutputBuffer(e,t);return n()}parseString(e,t,r,n,s,i,o){let a=Array.isArray(s)?s:[],l=Array.from(a);if(l.push(r),"function"!=typeof n){let n=this.newParserState(t);for(var u=0;u<e.length;u++)this.parseCharacter(e[u],n,r,l,i,o);return this.flushOutputBuffer(n),n.Output}{let s=this.newParserState(t);s.Asynchronous=!0;let a=this.fable.instantiateServiceProviderWithoutRegistration("Anticipate");for(let t=0;t<e.length;t++)a.anticipate((n=>{this.parseCharacterAsync(e[t],s,r,n,l,i,o)}));a.wait((e=>(this.flushOutputBuffer(s),n(e,s.Output))))}}}},{}],155:[function(e,t,r){t.exports=class{constructor(){this.ParseTree={}}addChild(e,t){return t in e||(e[t]={}),e[t]}addEndChild(e,t){return"PatternEnd"in e||(e.PatternEnd={}),e.PatternEnd[t]={},e.PatternEnd[t]}addPatternBoth(e,t,r,n,s){if(e.length<1)return!1;if("string"==typeof t&&t.length<1)return!1;let i=this.ParseTree;for(var o=0;o<e.length;o++)i=this.addChild(i,e[o],o);"PatternEnd"in i||(i.PatternEnd={});let a="string"==typeof t?t:e;for(let e=0;e<a.length;e++)i=this.addEndChild(i,a[e],e);return i.PatternStartString=e,i.PatternEndString=a,i.Parse="function"==typeof r?r:"string"==typeof r?(e,t)=>r:(e,t)=>e,i.ParseAsync="function"==typeof n?n:"string"==typeof n?(e,t,r)=>r(null,n):(e,t,r)=>r(null,i.Parse(e,t)),s&&(i.ParserContext=s),i.isAsync=!0,i}addPattern(e,t,r,n){return this.addPatternBoth(e,t,r,null,n)}}},{}],156:[function(e,t,r){t.exports={Metadata:{UUID:!1,Hash:!1,Name:"",Summary:"",Version:0},Status:{Completed:!1,StepCount:1},Steps:[],Errors:[],Log:[]}},{}],157:[function(e,t,r){const{PE:n}=e("big.js"),s=e("fable-serviceproviderbase"),i=JSON.stringify(e("./Fable-Service-Operation-DefaultSettings.js"));t.exports=class extends s{constructor(e,t,r){super(e,t,r),this.timeStamps={},this.serviceType="PhasedOperation",this.state=JSON.parse(i),this.stepMap={},this.stepFunctions={},this.state.Metadata.Hash=this.Hash,this.state.Metadata.UUID=this.UUID,this.state.Metadata.Name="string"==typeof this.options.Name?this.options.Name:`Unnamed Operation ${this.state.Metadata.UUID}`,this.name=this.state.Metadata.Name,this.progressTrackerSet=this.fable.instantiateServiceProviderWithoutRegistration("ProgressTrackerSet"),this.state.OverallProgressTracker=this.progressTrackerSet.createProgressTracker(`Overall-${this.state.Metadata.UUID}`),this.log=this}execute(e){if(this.state.OverallProgressTracker.StartTimeStamp>0)return e(new Error(`Operation [${this.state.Metadata.UUID}] ${this.state.Metadata.Name} has already been executed!`));let t=this.fable.instantiateServiceProviderWithoutRegistration("Anticipate");this.progressTrackerSet.setProgressTrackerTotalOperations(this.state.OverallProgressTracker.Hash,this.state.Status.StepCount),this.progressTrackerSet.startProgressTracker(this.state.OverallProgressTracker.Hash),this.info(`Operation [${this.state.Metadata.UUID}] ${this.state.Metadata.Name} starting...`);for(let e=0;e<this.state.Steps.length;e++)t.anticipate(function(t){return this.fable.log.info(`Step #${e} [${this.state.Steps[e].GUIDStep}] ${this.state.Steps[e].Name} starting...`),this.progressTrackerSet.startProgressTracker(this.state.Steps[e].ProgressTracker.Hash),t()}.bind(this)),t.anticipate(this.stepFunctions[this.state.Steps[e].GUIDStep].bind({log:this,fable:this.fable,options:this.state.Steps[e].Metadata,metadata:this.state.Steps[e].Metadata,ProgressTracker:this.progressTrackerSet.getProgressTracker(this.state.Steps[e].ProgressTracker.Hash),logProgressTrackerStatus:function(){return this.log.info(`Step #${e} [${this.state.Steps[e].GUIDStep}]: ${this.progressTrackerSet.getProgressTrackerStatusString(this.state.Steps[e].ProgressTracker.Hash)}`)}.bind(this),OperationState:this.state,StepState:this.state.Steps[e]})),t.anticipate(function(t){this.progressTrackerSet.endProgressTracker(this.state.Steps[e].ProgressTracker.Hash);let r=this.progressTrackerSet.getProgressTrackerStatusString(this.state.Steps[e].ProgressTracker.Hash);this.fable.log.info(`Step #${e} [${this.state.Steps[e].GUIDStep}] ${this.state.Steps[e].Name} complete.`),this.fable.log.info(`Step #${e} [${this.state.Steps[e].GUIDStep}] ${this.state.Steps[e].Name} ${r}.`),this.progressTrackerSet.incrementProgressTracker(this.state.OverallProgressTracker.Hash,1);let n=this.progressTrackerSet.getProgressTrackerStatusString(this.state.OverallProgressTracker.Hash);return this.fable.log.info(`Operation [${this.state.Metadata.UUID}] ${n}.`),t()}.bind(this));t.wait((t=>{if(t)return this.fable.log.error(`Operation [${this.state.Metadata.UUID}] ${this.state.Metadata.Name} had an error: ${t}`,t),e(t);this.info(`Operation [${this.state.Metadata.UUID}] ${this.state.Metadata.Name} complete.`);let r=this.progressTrackerSet.getProgressTrackerStatusString(this.state.OverallProgressTracker.Hash);return this.progressTrackerSet.endProgressTracker(this.state.OverallProgressTracker.Hash),this.fable.log.info(`Operation [${this.state.Metadata.UUID}] ${r}.`),e()}))}addStep(e,t,r,n,s){let i={};return i.GUIDStep=void 0!==s?s:`STEP-${this.state.Steps.length}-${this.fable.DataGeneration.randomNumericString()}`,i.Name=void 0!==r?r:`Step [${i.GUIDStep}]`,i.Description=void 0!==n?n:`Step execution of ${i.Name}.`,i.ProgressTracker=this.progressTrackerSet.createProgressTracker(i.GUIDStep),i.Metadata="object"==typeof t?t:{},this.state.Steps.push(i),this.stepMap[i.GUIDStep]=i,this.stepFunctions[i.GUIDStep]="function"==typeof e?e:function(e){return e()},this.state.Status.StepCount++,i}setStepTotalOperations(e,t){if(!(e in this.stepMap))return new Error(`Step [${e}] does not exist in operation [${this.state.Metadata.UUID}] ${this.state.Metadata.Name} when attempting to set total operations to ${t}.`);this.progressTrackerSet.setProgressTrackerTotalOperations(this.stepMap[e].ProgressTracker.Hash,t)}writeOperationLog(e,t,r){this.state.Log.push(`[${(new Date).toUTCString()}]-[${e}]: ${t}`),"object"==typeof r&&this.state.Log.push(JSON.stringify(r))}writeOperationErrors(e,t){this.state.Errors.push(`${e}`),"object"==typeof t&&this.state.Errors.push(JSON.stringify(t))}trace(e,t){this.writeOperationLog("TRACE",e,t),this.fable.log.trace(e,t)}debug(e,t){this.writeOperationLog("DEBUG",e,t),this.fable.log.debug(e,t)}info(e,t){this.writeOperationLog("INFO",e,t),this.fable.log.info(e,t)}warn(e,t){this.writeOperationLog("WARN",e,t),this.fable.log.warn(e,t)}error(e,t){this.writeOperationLog("ERROR",e,t),this.writeOperationErrors(e,t),this.fable.log.error(e,t)}fatal(e,t){this.writeOperationLog("FATAL",e,t),this.writeOperationErrors(e,t),this.fable.log.fatal(e,t)}}},{"./Fable-Service-Operation-DefaultSettings.js":156,"big.js":17,"fable-serviceproviderbase":53}],158:[function(e,t,r){const n=e("fable-serviceproviderbase");t.exports=class extends n{constructor(e,t,r){super(e,t,r),this.serviceType="ProgressTime",this.timeStamps={}}formatTimeDuration(e){let t="number"==typeof e?e:0;if(e<0)return"unknown";let r="";return t>36e5&&(r+=Math.floor(t/36e5)+"h ",t%=36e5),t>6e4&&(r+=Math.floor(t/6e4)+"m ",t%=6e4),t>1e3&&(r+=Math.floor(t/1e3)+"s ",t%=1e3),r+=Math.round(t)+"ms",r}createTimeStamp(e){let t="string"==typeof e?e:"Default";return this.timeStamps[t]=+new Date,this.timeStamps[t]}getTimeStampValue(e){let t="string"==typeof e?e:"Default";return t in this.timeStamps?this.timeStamps[t]:-1}updateTimeStampValue(e,t){let r="string"==typeof e?e:"Default",n=!1;return n="string"==typeof t?tmpReference in this.timeStamps&&this.timeStamps[tmpReference]:"number"==typeof t?t:+new Date,r in this.timeStamps&&n?(this.timeStamps[r]=n,this.timeStamps[r]):-1}removeTimeStamp(e){let t="string"==typeof e?e:"Default";return t in this.timeStamps&&(delete this.timeStamps[t],!0)}getTimeStampDelta(e,t){let r="string"==typeof e?e:"Default",n=!1;return n="string"==typeof t?tmpReference in this.timeStamps&&this.timeStamps[tmpReference]:"number"==typeof t?t:+new Date,r in this.timeStamps&&n?n-this.timeStamps[r]:-1}getDurationBetweenTimestamps(e,t){let r="string"==typeof e?e:"Default",n="string"==typeof t?t:"Default";return r in this.timeStamps&&n in this.timeStamps?this.timeStamps[n]-this.timeStamps[r]:-1}getTimeStampDeltaMessage(e,t,r){let n="string"==typeof e?e:"Default",s=void 0!==t?t:`Elapsed for ${n}: `,i=this.getTimeStampDelta(n,r);return`${s} ${this.formatTimeDuration(i)}`}logTimeStampDelta(e,t,r){this.fable.log.info(this.getTimeStampDeltaMessage(e,t,r))}}},{"fable-serviceproviderbase":53}],159:[function(e,t,r){t.exports=class{constructor(e,t){this.progressTrackerSet=e,this.progressTrackerHash=t,this.data=this.progressTrackerSet.getProgressTrackerData(this.progressTrackerHash)}updateProgressTracker(e){return this.progressTrackerSet.updateProgressTracker(this.progressTrackerHash,e)}incrementProgressTracker(e){return this.progressTrackerSet.incrementProgressTracker(this.progressTrackerHash,e)}setProgressTrackerTotalOperations(e){return this.progressTrackerSet.setProgressTrackerTotalOperations(this.progressTrackerHash,e)}getProgressTrackerStatusString(){return this.progressTrackerSet.getProgressTrackerStatusString(this.progressTrackerHash)}}},{}],160:[function(e,t,r){const n=e("fable-serviceproviderbase"),s=e("./Fable-Service-ProgressTracker/ProgressTracker.js");t.exports=class extends n{constructor(e,t,r){super(e,t,r),this.serviceType="ProgressTrackerSet",this.progressTrackers={},this.progressTimes=this.fable.instantiateServiceProviderWithoutRegistration("ProgressTime"),this.progressTimes.createTimeStamp("CurrentTime")}getProgressTracker(e){let t="string"==typeof e?e:"Default";return t in this.progressTrackers||(this.fable.log.warn(`ProgressTracker ${t} does not exist! Creating a new tracker...`),this.createProgressTracker(t,100)),new s(this,e)}getProgressTrackerData(e){let t="string"==typeof e?e:"Default";return t in this.progressTrackers||(this.fable.log.warn(`ProgressTracker ${t} does not exist! Creating a new tracker...`),this.createProgressTracker(t,100)),this.progressTrackers[t]}createProgressTracker(e,t){let r="string"==typeof e?e:"Default",n={Hash:r,StartTimeHash:`${r}-Start`,StartTimeStamp:-1,CurrentTimeStamp:-1,EndTimeHash:`${r}-End`,EndTimeStamp:-1,PercentComplete:-1,AllowTruePercentComplete:!1,ElapsedTime:-1,AverageOperationTime:-1,EstimatedCompletionTime:-1,TotalCount:"number"==typeof t?t:100,CurrentCount:-1};return r in this.progressTrackers&&(this.fable.log.warn(`ProgressTracker ${r} already exists! Overwriting with a new tracker...`),this.progressTimes.removeTimeStamp(n.StartTimeHash),this.progressTimes.removeTimeStamp(n.EndTimeHash)),this.progressTrackers[r]=n,n}setProgressTrackerTotalOperations(e,t){let r="string"==typeof e?e:"Default",n="number"==typeof t?t:100;return r in this.progressTrackers||(this.fable.log.warn(`Attempted to set the total operations of ProgressTracker ${r} but it does not exist! Creating a new tracker...`),this.createProgressTracker(r,n)),this.progressTrackers[r].TotalCount=n,this.progressTrackers[r]}startProgressTracker(e){let t="string"==typeof e?e:"Default";t in this.progressTrackers||this.createProgressTracker(t,100);let r=this.progressTrackers[t];return this.progressTimes.createTimeStamp(this.progressTrackers[t].StartTimeHash),r.StartTimeStamp=this.progressTimes.getTimeStampValue(this.progressTrackers[t].StartTimeHash),r.CurrentCount<0&&(r.CurrentCount=0),this.solveProgressTrackerStatus(t)}endProgressTracker(e){let t="string"==typeof e?e:"Default";if(!(t in this.progressTrackers))return this.fable.log.error(`Attempted to end ProgressTracker ${t} that does not exist!`),!1;let r=this.progressTrackers[t];return this.progressTimes.createTimeStamp(this.progressTrackers[t].EndTimeHash),r.EndTimeStamp=this.progressTimes.getTimeStampValue(this.progressTrackers[t].EndTimeHash),this.solveProgressTrackerStatus(t)}solveProgressTrackerStatus(e){let t="string"==typeof e?e:"Default";if(!(t in this.progressTrackers))return this.fable.log.error(`Attempted to solve ProgressTracker ${t} that does not exist!`),!1;let r=this.progressTrackers[t];return(r.TotalCount<1||isNaN(r.TotalCount))&&(this.fable.log.error(`ProgressTracker ${r.Hash} has an invalid total count of operations (${r.TotalCount}! Setting it to the default of 100...`),r.TotalCount=100),r.CurrentCount<1?r.PercentComplete=0:r.PercentComplete=r.CurrentCount/r.TotalCount*100,!r.AllowTruePercentComplete&&r.PercentComplete>100&&(r.PercentComplete=100),this.progressTimes.updateTimeStampValue("CurrentTime"),r.CurrentTimeStamp=this.progressTimes.getTimeStampValue("CurrentTime"),r.ElapsedTime=r.CurrentTimeStamp-r.StartTimeStamp,r.EndTimeStamp>0&&(r.ElapsedTime=r.EndTimeStamp-r.StartTimeStamp),r.CurrentCount>0?r.AverageOperationTime=(r.CurrentTimeStamp-r.StartTimeStamp)/r.CurrentCount:r.AverageOperationTime=-1,r.AverageOperationTime>0?r.EstimatedCompletionTime=Math.max(r.TotalCount-r.CurrentCount,0)*r.AverageOperationTime:r.EstimatedCompletionTime=-1,r}updateProgressTracker(e,t){let r="string"==typeof e?e:"Default",n=parseInt(t);return isNaN(n)?(this.fable.log.warn(`Attempted to update ProgressTracker ${r} with an invalid number of operations!`),!1):(r in this.progressTrackers||this.createProgressTracker(100,r),this.progressTrackers[r].CurrentCount=n,this.solveProgressTrackerStatus(r))}incrementProgressTracker(e,t){let r="string"==typeof e?e:"Default",n=parseInt(t);return isNaN(n)&&(n=1),r in this.progressTrackers?(this.progressTrackers[r].StartTimeStamp<1&&(this.fable.log.warn(`Attempted to increment ProgressTracker ${r} but it was not started.. starting now.`),this.startProgressTracker(r)),this.progressTrackers[r].CurrentCount=this.progressTrackers[r].CurrentCount+n,this.solveProgressTrackerStatus(r)):(this.fable.log.warn(`Attempted to increment ProgressTracker ${r} but it did not exist.`),!1)}getProgressTrackerCompletedOperationCountString(e){let t="string"==typeof e?e:"Default";const r=this.progressTrackers[t];return r.CurrentCount<0?"none":r.CurrentCount<1?"0":`${r.CurrentCount}`}getProgressTrackerPercentCompleteString(e){let t="string"==typeof e?e:"Default";if(this.solveProgressTrackerStatus(t),t in this.progressTrackers){const e=this.progressTrackers[t];return e.StartTimeStamp<1||e.CurrentCount<1?"0%":(e.EndTimeStamp,`${e.PercentComplete.toFixed(3)}%`)}return`ProgressTracker ${t} does not exist! No stats to display.`}getProgressTrackerStatusString(e){let t="string"==typeof e?e:"Default";if(this.solveProgressTrackerStatus(t),t in this.progressTrackers){const e=this.progressTrackers[t];return e.StartTimeStamp<1?`ProgressTracker ${e.Hash} has not been started yet.`:e.CurrentCount<1&&e.EndTimeStamp<1?`ProgressTracker ${e.Hash} has no completed operations. ${this.progressTimes.formatTimeDuration(e.ElapsedTime)} have elapsed since it was started.`:e.EndTimeStamp<1?`ProgressTracker ${e.Hash} is ${e.PercentComplete.toFixed(3)}% completed - ${e.CurrentCount} / ${e.TotalCount} operations over ${this.progressTimes.formatTimeDuration(e.ElapsedTime)} (median ${this.progressTimes.formatTimeDuration(e.AverageOperationTime)} per). Estimated completion: ${this.progressTimes.formatTimeDuration(e.EstimatedCompletionTime)}`:`ProgressTracker ${e.Hash} is done. ${e.CurrentCount} / ${e.TotalCount} operations were completed in ${this.progressTimes.formatTimeDuration(e.ElapsedTime)} (median ${this.progressTimes.formatTimeDuration(e.AverageOperationTime)} per).`}return`ProgressTracker ${t} does not exist! No stats to display.`}logProgressTrackerStatus(e){this.fable.log.info(this.getProgressTrackerStatusString(e))}}},{"./Fable-Service-ProgressTracker/ProgressTracker.js":159,"fable-serviceproviderbase":53}],161:[function(e,t,r){(function(r){(function(){const n=e("fable-serviceproviderbase"),s=e("simple-get"),i=e("cookie");t.exports=class extends n{constructor(e,t,r){super(e,t,r),this.TraceLog=!1,(this.options.TraceLog||this.fable.TraceLog)&&(this.TraceLog=!0),this.dataFormat=this.fable.services.DataFormat,this.serviceType="RestClient",this.cookie=!1,this.prepareRequestOptions=e=>e}get simpleGet(){return s}prepareCookies(e){if(this.cookie){let t=this.cookie;"headers"in e||(e.headers={});let r=Object.keys(t);r.length>0&&(e.headers.cookie=i.serialize(r[0],t[r[0]]))}return e}preRequest(e){let t=this.prepareCookies(e);return"RestClientURLPrefix"in this.fable.settings&&(t.url=this.fable.settings.RestClientURLPrefix+t.url),this.prepareRequestOptions(t)}executeChunkedRequest(e,t){let r=this.preRequest(e);return r.RequestStartTime=this.fable.log.getTimeStamp(),this.TraceLog&&this.fable.log.debug(`Beginning ${r.method} request to ${r.url} at ${r.RequestStartTime}`),s(r,((e,n)=>{if(e)return t(e,n);if(this.TraceLog){let e=this.fable.log.getTimeStamp();this.fable.log.debug(`--\x3e ${r.method} connected in ${this.dataFormat.formatTimeDelta(r.RequestStartTime,e)}ms code ${n.statusCode}`)}let s="";n.on("data",(e=>{if(this.TraceLog){let t=this.fable.log.getTimeStamp();this.fable.log.debug(`--\x3e ${r.method} data chunk size ${e.length}b received in ${this.dataFormat.formatTimeDelta(r.RequestStartTime,t)}ms`)}s+=e})),n.on("end",(()=>{if(this.TraceLog){let e=this.fable.log.getTimeStamp();this.fable.log.debug(`==> ${r.method} completed data size ${s.length}b received in ${this.dataFormat.formatTimeDelta(r.RequestStartTime,e)}ms`)}return t(e,n,s)}))}))}executeChunkedRequestBinary(e,t){let n=this.preRequest(e);return n.RequestStartTime=this.fable.log.getTimeStamp(),this.TraceLog&&this.fable.log.debug(`Beginning ${n.method} request to ${n.url} at ${n.RequestStartTime}`),n.json=!1,n.encoding=null,s(n,((e,s)=>{if(e)return t(e,s);if(this.TraceLog){let e=this.fable.log.getTimeStamp();this.fable.log.debug(`--\x3e ${n.method} connected in ${this.dataFormat.formatTimeDelta(n.RequestStartTime,e)}ms code ${s.statusCode}`)}let i=!1;s.on("data",(e=>{if(this.TraceLog){let t=this.fable.log.getTimeStamp();this.fable.log.debug(`--\x3e ${n.method} data chunk size ${e.length}b received in ${this.dataFormat.formatTimeDelta(n.RequestStartTime,t)}ms`)}i=i?r.concat([i,e]):r.from(e)})),s.on("end",(()=>{if(this.TraceLog){let e=this.fable.log.getTimeStamp();this.fable.log.debug(`==> ${n.method} completed data size ${i.length}b received in ${this.dataFormat.formatTimeDelta(n.RequestStartTime,e)}ms`)}return t(e,s,i)}))}))}executeJSONRequest(e,t){e.json=!0;let r=this.preRequest(e);return"headers"in r||(r.headers={}),r.RequestStartTime=this.fable.log.getTimeStamp(),this.TraceLog&&this.fable.log.debug(`Beginning ${r.method} JSON request to ${r.url} at ${r.RequestStartTime}`),s(r,((e,n)=>{if(e)return t(e,n);if(this.TraceLog){let e=this.fable.log.getTimeStamp();this.fable.log.debug(`--\x3e JSON ${r.method} connected in ${this.dataFormat.formatTimeDelta(r.RequestStartTime,e)}ms code ${n.statusCode}`)}let s="";n.on("data",(e=>{if(this.TraceLog){let t=this.fable.log.getTimeStamp();this.fable.log.debug(`--\x3e JSON ${r.method} data chunk size ${e.length}b received in ${this.dataFormat.formatTimeDelta(r.RequestStartTime,t)}ms`)}s+=e})),n.on("end",(()=>{if(this.TraceLog){let e=this.fable.log.getTimeStamp();this.fable.log.debug(`==> JSON ${r.method} completed - received in ${this.dataFormat.formatTimeDelta(r.RequestStartTime,e)}ms`)}return t(e,n,JSON.parse(s))}))}))}getJSON(e,t){let r="object"==typeof e?e:{};return"string"==typeof e&&(r.url=e),r.method="GET",this.executeJSONRequest(r,t)}putJSON(e,t){return"object"!=typeof e.body?t(new Error("PUT JSON Error Invalid options object")):(e.method="PUT",this.executeJSONRequest(e,t))}postJSON(e,t){return"object"!=typeof e.body?t(new Error("POST JSON Error Invalid options object")):(e.method="POST",this.executeJSONRequest(e,t))}patchJSON(e,t){return"object"!=typeof e.body?t(new Error("PATCH JSON Error Invalid options object")):(e.method="PATCH",this.executeJSONRequest(e,t))}headJSON(e,t){return"object"!=typeof e.body?t(new Error("HEAD JSON Error Invalid options object")):(e.method="HEAD",this.executeJSONRequest(e,t))}delJSON(e,t){return e.method="DELETE",this.executeJSONRequest(e,t)}getRawText(e,t){let r="object"==typeof e?e:{};return"string"==typeof e&&(r.url=e),r.method="GET",this.executeChunkedRequest(r,t)}}}).call(this)}).call(this,e("buffer").Buffer)},{buffer:20,cookie:27,"fable-serviceproviderbase":53,"simple-get":105}],162:[function(e,t,r){const n=e("fable-serviceproviderbase");t.exports=class extends n{constructor(e,t,r){super(e,t,r),this.serviceType="Template",this.Matchers={Evaluate:/<%([\s\S]+?)%>/g,Interpolate:/<%=([\s\S]+?)%>/g,Escaper:/\\|'|\r|\n|\t|\u2028|\u2029/g,Unescaper:/\\(\\|'|r|n|t|u2028|u2029)/g,GuaranteedNonMatch:/.^/},this.templateEscapes={"\\":"\\","'":"'",r:"\r","\r":"r",n:"\n","\n":"n",t:"\t","\t":"t",u2028:"\u2028","\u2028":"u2028",u2029:"\u2029","\u2029":"u2029"},this.renderFunction=!1,this.templateString=!1}renderTemplate(e){return this.renderFunction(e)}templateFunction(){return this.renderTemplate.bind(this)}buildTemplateFunction(e,t){return this.TemplateSource="__p+='"+e.replace(this.Matchers.Escaper,(e=>`\\${this.templateEscapes[e]}`)).replace(this.Matchers.Interpolate||this.Matchers.GuaranteedNonMatch,((e,t)=>`'+\n(${decodeURIComponent(t)})+\n'`)).replace(this.Matchers.Evaluate||this.Matchers.GuaranteedNonMatch,((e,t)=>`';\n${decodeURIComponent(t)}\n;__p+='`))+"';\n",this.TemplateSource=`with(pTemplateDataObject||{}){\n${this.TemplateSource}}\n`,this.TemplateSource=`var __p='';var print=function(){__p+=Array.prototype.join.call(arguments, '')};\n${this.TemplateSource}return __p;\n`,this.renderFunction=new Function("pTemplateDataObject",this.TemplateSource),void 0!==t?this.renderFunction(t):(this.TemplateSourceCompiled="function(obj){\n"+this.TemplateSource+"}",this.templateFunction())}}},{"fable-serviceproviderbase":53}],163:[function(e,t,r){const n=e("fable-serviceproviderbase"),s=e("async.waterfall"),i=e("async.eachlimit"),o=e("big.js");t.exports=class extends n{constructor(e,t,r){super(e,t,r),this.templates={},this.waterfall=s,this.eachLimit=i,this.bigNumber=o}extend(e){for(let t=0;t<(arguments.length<=1?0:arguments.length-1);t++){let r=t+1<1||arguments.length<=t+1?void 0:arguments[t+1];if("object"==typeof r){let t=Object.keys(r);for(let n=0;n<t.length;n++)e[t[n]]=r[t[n]]}}return e}template(e,t){return this.fable.instantiateServiceProviderWithoutRegistration("Template").buildTemplateFunction(e,t)}buildHashedTemplate(e,t,r){let n=this.fable.instantiateServiceProvider("Template",{},e);return this.templates[e]=n.buildTemplateFunction(t,r),this.templates[e]}chunk(e,t,r){let n=[...e],s="number"==typeof t?t:0,i=void 0!==r?r:[];if(s<=0)return i;for(;n.length;)i.push(n.splice(0,s));return i}getInternalValueByHash(e){return this.getValueByHash(this.fable,e)}getValueByHash(e,t,r){let n=r;return void 0===n&&(this.manifest||(this.manifest=this.fable.newManyfest()),n=this.manifest),n.getValueByHash(e,t)}setValueByHash(e,t,r,n){let s=n;return void 0===s&&(this.manifest||(this.manifest=this.fable.newManyfest()),s=this.manifest),s.setValueByHash(e,t,r)}createValueArrayByHashes(e,t,r){let n=r;if(void 0===n&&(this.manifest||(this.manifest=this.fable.newManyfest()),n=this.manifest),!Array.isArray(t))return[];let s=[];for(let r=0;r<t.length;r++)s.push(n.getValueByHash(e,t[r]));return s}createValueArrayByHashesFromInternal(e,t){return this.createValueArrayByHashes(this.fable,e,t)}createValueArrayByHashParametersFromInternal(){if(arguments.length<2)return[];let e=Array.prototype.slice.call(arguments);return this.createValueArrayByHashes(this.fable,e)}createValueObjectByHashes(e,t,r){let n=r;if(void 0===n&&(this.manifest||(this.manifest=this.fable.newManyfest()),n=this.manifest),!Array.isArray(t))return{};let s={};for(let r=0;r<t.length;r++)s[t[r]]=n.getValueByHash(e,t[r]);return s}createValueObjectByHashesFromInternal(e,t){return this.createValueObjectByHashes(this.fable,e,t)}createValueObjectByHashParametersFromInternal(){let e=Array.prototype.slice.call(arguments);return this.createValueObjectByHashes(this.fable,e)}addressIsNullOrEmpty(e,t){if(this.manifest||(this.manifest=this.fable.newManyfest()),!this.manifest.checkAddressExists(e,t))return!0;let r=this.manifest.getValueByHash(e,t);return null===r||""===r}isoStringToDate(e){"Dates"in this.fable||this.fable.instantiateServiceProvider("Dates");let t=!1;try{t=this.fable.Dates.dayJS.utc(e)}catch(t){return this.fable.log.error(`Could not parse date string ${e} with dayJS.`),!1}return!!t&&t.toDate()}findFirstValueByStringIncludes(e,t,r,n){if(this.manifest||(this.manifest=this.fable.newManyfest()),Array.isArray(e))for(let s=0;s<e.length;s++){let i=this.manifest.getValueByHash(e[s],t);if(i&&i.includes(r))return this.manifest.getValueByHash(e[s],n)}}findFirstValueByStringIncludesInternal(e,t,r,n){if(this.manifest||(this.manifest=this.fable.newManyfest()),"string"!=typeof e)return;let s=this.manifest.getValueByHash(this.fable,e);return this.findFirstValueByStringIncludes(s,t,r,n)}findFirstValueByExactMatch(e,t,r,n){if(this.manifest||(this.manifest=this.fable.newManyfest()),Array.isArray(e))for(let s=0;s<e.length;s++){let i=this.manifest.getValueByHash(e[s],t);if(i&&i==r)return this.manifest.getValueByHash(e[s],n)}}findFirstValueByExactMatchInternal(e,t,r,n){if(this.manifest||(this.manifest=this.fable.newManyfest()),"string"!=typeof e)return;let s=this.manifest.getValueByHash(this.fable,e);return this.findFirstValueByExactMatch(s,t,r,n)}flattenArrayOfSolverInputs(e){if(!Array.isArray(e)&&("object"==typeof e&&(e=Object.values(e)),!e))return[];return e.flatMap((e=>Array.isArray(e)?e:"object"==typeof e?Object.values(e):[e]))}createArrayFromAbsoluteValues(){let e=[];for(let t=0;t<arguments.length;t++)e.push(arguments[t]);return e}}},{"async.eachlimit":1,"async.waterfall":15,"big.js":17,"fable-serviceproviderbase":53}],164:[function(e,t,r){class n{constructor(e,t){this.values=e instanceof n?e.values.concat([t]):t instanceof n?[e].concat(t.values):[e,t]}}t.exports=n},{}]},{},[132])(132)}));
12
12
  //# sourceMappingURL=fable.min.js.map