@web/test-runner-mocha 1.0.0 → 1.1.0
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/autorun.js +1 -1
- package/dist/standalone.js +1 -1
- package/package.json +4 -4
package/dist/standalone.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{sendMessage as e}from"/__web-dev-server__web-socket.js";!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).mocha=t()}(void 0,(function(){var e="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t=void 0!==e?e:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function r(){throw new Error("setTimeout has not been defined")}function n(){throw new Error("clearTimeout has not been defined")}var i=r,o=n;function s(e){if(i===setTimeout)return setTimeout(e,0);if((i===r||!i)&&setTimeout)return i=setTimeout,setTimeout(e,0);try{return i(e,0)}catch(t){try{return i.call(null,e,0)}catch(t){return i.call(this,e,0)}}}"function"==typeof t.setTimeout&&(i=setTimeout),"function"==typeof t.clearTimeout&&(o=clearTimeout);var a,u=[],l=!1,c=-1;function f(){l&&a&&(l=!1,a.length?u=a.concat(u):c=-1,u.length&&p())}function p(){if(!l){var e=s(f);l=!0;for(var t=u.length;t;){for(a=u,u=[];++c<t;)a&&a[c].run();c=-1,t=u.length}a=null,l=!1,function(e){if(o===clearTimeout)return clearTimeout(e);if((o===n||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(e);try{return o(e)}catch(t){try{return o.call(null,e)}catch(t){return o.call(this,e)}}}(e)}}function h(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];u.push(new d(e,t)),1!==u.length||l||s(p)}function d(e,t){this.fun=e,this.array=t}d.prototype.run=function(){this.fun.apply(null,this.array)};function g(){}var m=g,b=g,y=g,v=g,w=g,E=g,_=g;var T=t.performance||{},A=T.now||T.mozNow||T.msNow||T.oNow||T.webkitNow||function(){return(new Date).getTime()};var x=new Date;var S={nextTick:h,title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:m,addListener:b,once:y,off:v,removeListener:w,removeAllListeners:E,emit:_,binding:function(e){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(e){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(e){var t=.001*A.call(T),r=Math.floor(t),n=Math.floor(t%1*1e9);return e&&(r-=e[0],(n-=e[1])<0&&(r--,n+=1e9)),[r,n]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-x)/1e3}},D="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function N(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})})),t}function R(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}function L(){}function k(){k.init.call(this)}function C(e){return void 0===e._maxListeners?k.defaultMaxListeners:e._maxListeners}function O(e,t,r,n){var i,o,s,a;if("function"!=typeof r)throw new TypeError('"listener" argument must be a function');if((o=e._events)?(o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),s=o[t]):(o=e._events=new L,e._eventsCount=0),s){if("function"==typeof s?s=o[t]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),!s.warned&&(i=C(e))&&i>0&&s.length>i){s.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+t+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=s.length,a=u,"function"==typeof console.warn?console.warn(a):console.log(a)}}else s=o[t]=r,++e._eventsCount;return e}function q(e,t,r){var n=!1;function i(){e.removeListener(t,i),n||(n=!0,r.apply(e,arguments))}return i.listener=r,i}function P(e){var t=this._events;if(t){var r=t[e];if("function"==typeof r)return 1;if(r)return r.length}return 0}function I(e,t){for(var r=new Array(t);t--;)r[t]=e[t];return r}L.prototype=Object.create(null),k.EventEmitter=k,k.usingDomains=!1,k.prototype.domain=void 0,k.prototype._events=void 0,k.prototype._maxListeners=void 0,k.defaultMaxListeners=10,k.init=function(){this.domain=null,k.usingDomains&&undefined.active,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new L,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},k.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},k.prototype.getMaxListeners=function(){return C(this)},k.prototype.emit=function(e){var t,r,n,i,o,s,a,u="error"===e;if(s=this._events)u=u&&null==s.error;else if(!u)return!1;if(a=this.domain,u){if(t=arguments[1],!a){if(t instanceof Error)throw t;var l=new Error('Uncaught, unspecified "error" event. ('+t+")");throw l.context=t,l}return t||(t=new Error('Uncaught, unspecified "error" event')),t.domainEmitter=this,t.domain=a,t.domainThrown=!1,a.emit("error",t),!1}if(!(r=s[e]))return!1;var c="function"==typeof r;switch(n=arguments.length){case 1:!function(e,t,r){if(t)e.call(r);else for(var n=e.length,i=I(e,n),o=0;o<n;++o)i[o].call(r)}(r,c,this);break;case 2:!function(e,t,r,n){if(t)e.call(r,n);else for(var i=e.length,o=I(e,i),s=0;s<i;++s)o[s].call(r,n)}(r,c,this,arguments[1]);break;case 3:!function(e,t,r,n,i){if(t)e.call(r,n,i);else for(var o=e.length,s=I(e,o),a=0;a<o;++a)s[a].call(r,n,i)}(r,c,this,arguments[1],arguments[2]);break;case 4:!function(e,t,r,n,i,o){if(t)e.call(r,n,i,o);else for(var s=e.length,a=I(e,s),u=0;u<s;++u)a[u].call(r,n,i,o)}(r,c,this,arguments[1],arguments[2],arguments[3]);break;default:for(i=new Array(n-1),o=1;o<n;o++)i[o-1]=arguments[o];!function(e,t,r,n){if(t)e.apply(r,n);else for(var i=e.length,o=I(e,i),s=0;s<i;++s)o[s].apply(r,n)}(r,c,this,i)}return!0},k.prototype.addListener=function(e,t){return O(this,e,t,!1)},k.prototype.on=k.prototype.addListener,k.prototype.prependListener=function(e,t){return O(this,e,t,!0)},k.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.on(e,q(this,e,t)),this},k.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.prependListener(e,q(this,e,t)),this},k.prototype.removeListener=function(e,t){var r,n,i,o,s;if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');if(!(n=this._events))return this;if(!(r=n[e]))return this;if(r===t||r.listener&&r.listener===t)0==--this._eventsCount?this._events=new L:(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(i=-1,o=r.length;o-- >0;)if(r[o]===t||r[o].listener&&r[o].listener===t){s=r[o].listener,i=o;break}if(i<0)return this;if(1===r.length){if(r[0]=void 0,0==--this._eventsCount)return this._events=new L,this;delete n[e]}else!function(e,t){for(var r=t,n=r+1,i=e.length;n<i;r+=1,n+=1)e[r]=e[n];e.pop()}(r,i);n.removeListener&&this.emit("removeListener",e,s||t)}return this},k.prototype.off=function(e,t){return this.removeListener(e,t)},k.prototype.removeAllListeners=function(e){var t,r;if(!(r=this._events))return this;if(!r.removeListener)return 0===arguments.length?(this._events=new L,this._eventsCount=0):r[e]&&(0==--this._eventsCount?this._events=new L:delete r[e]),this;if(0===arguments.length){for(var n,i=Object.keys(r),o=0;o<i.length;++o)"removeListener"!==(n=i[o])&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events=new L,this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(t)do{this.removeListener(e,t[t.length-1])}while(t[0]);return this},k.prototype.listeners=function(e){var t,r=this._events;return r&&(t=r[e])?"function"==typeof t?[t.listener||t]:function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(t):[]},k.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):P.call(e,t)},k.prototype.listenerCount=P,k.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};var U=Object.freeze({__proto__:null,default:k,EventEmitter:k}),F=[],B=[],V="undefined"!=typeof Uint8Array?Uint8Array:Array,j=!1;function M(){j=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0;t<64;++t)F[t]=e[t],B[e.charCodeAt(t)]=t;B["-".charCodeAt(0)]=62,B["_".charCodeAt(0)]=63}function H(e,t,r){for(var n,i,o=[],s=t;s<r;s+=3)n=(e[s]<<16)+(e[s+1]<<8)+e[s+2],o.push(F[(i=n)>>18&63]+F[i>>12&63]+F[i>>6&63]+F[63&i]);return o.join("")}function G(e){var t;j||M();for(var r=e.length,n=r%3,i="",o=[],s=16383,a=0,u=r-n;a<u;a+=s)o.push(H(e,a,a+s>u?u:a+s));return 1===n?(t=e[r-1],i+=F[t>>2],i+=F[t<<4&63],i+="=="):2===n&&(t=(e[r-2]<<8)+e[r-1],i+=F[t>>10],i+=F[t>>4&63],i+=F[t<<2&63],i+="="),o.push(i),o.join("")}function z(e,t,r,n,i){var o,s,a=8*i-n-1,u=(1<<a)-1,l=u>>1,c=-7,f=r?i-1:0,p=r?-1:1,h=e[t+f];for(f+=p,o=h&(1<<-c)-1,h>>=-c,c+=a;c>0;o=256*o+e[t+f],f+=p,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=n;c>0;s=256*s+e[t+f],f+=p,c-=8);if(0===o)o=1-l;else{if(o===u)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,n),o-=l}return(h?-1:1)*s*Math.pow(2,o-n)}function Y(e,t,r,n,i,o){var s,a,u,l=8*o-i-1,c=(1<<l)-1,f=c>>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:o-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,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),(t+=s+f>=1?p/u:p*Math.pow(2,1-f))*u>=2&&(s++,u/=2),s+f>=c?(a=0,s=c):s+f>=1?(a=(t*u-1)*Math.pow(2,i),s+=f):(a=t*Math.pow(2,f-1)*Math.pow(2,i),s=0));i>=8;e[r+h]=255&a,h+=d,a/=256,i-=8);for(s=s<<i|a,l+=i;l>0;e[r+h]=255&s,h+=d,s/=256,l-=8);e[r+h-d]|=128*g}var $={}.toString,W=Array.isArray||function(e){return"[object Array]"==$.call(e)};function J(){return Z.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function K(e,t){if(J()<t)throw new RangeError("Invalid typed array length");return Z.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=Z.prototype:(null===e&&(e=new Z(t)),e.length=t),e}function Z(e,t,r){if(!(Z.TYPED_ARRAY_SUPPORT||this instanceof Z))return new Z(e,t,r);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return ee(this,e)}return Q(this,e,t,r)}function Q(e,t,r,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n);Z.TYPED_ARRAY_SUPPORT?(e=t).__proto__=Z.prototype:e=te(e,t);return e}(e,t,r,n):"string"==typeof t?function(e,t,r){"string"==typeof r&&""!==r||(r="utf8");if(!Z.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|ie(t,r);e=K(e,n);var i=e.write(t,r);i!==n&&(e=e.slice(0,i));return e}(e,t,r):function(e,t){if(ne(t)){var r=0|re(t.length);return 0===(e=K(e,r)).length||t.copy(e,0,0,r),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(n=t.length)!=n?K(e,0):te(e,t);if("Buffer"===t.type&&W(t.data))return te(e,t.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function X(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function ee(e,t){if(X(t),e=K(e,t<0?0:0|re(t)),!Z.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function te(e,t){var r=t.length<0?0:0|re(t.length);e=K(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function re(e){if(e>=J())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+J().toString(16)+" bytes");return 0|e}function ne(e){return!(null==e||!e._isBuffer)}function ie(e,t){if(ne(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return ke(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Ce(e).length;default:if(n)return ke(e).length;t=(""+t).toLowerCase(),n=!0}}function oe(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 we(this,t,r);case"utf8":case"utf-8":return me(this,t,r);case"ascii":return ye(this,t,r);case"latin1":case"binary":return ve(this,t,r);case"base64":return ge(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ee(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function se(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function ae(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=Z.from(t,n)),ne(t))return 0===t.length?-1:ue(e,t,r,n,i);if("number"==typeof t)return t&=255,Z.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):ue(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function ue(e,t,r,n,i){var o,s=1,a=e.length,u=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;s=2,a/=2,u/=2,r/=2}function l(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var c=-1;for(o=r;o<a;o++)if(l(e,o)===l(t,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===u)return c*s}else-1!==c&&(o-=o-c),c=-1}else for(r+u>a&&(r=a-u),o=r;o>=0;o--){for(var f=!0,p=0;p<u;p++)if(l(e,o+p)!==l(t,p)){f=!1;break}if(f)return o}return-1}function le(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var s=0;s<n;++s){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))return s;e[r+s]=a}return s}function ce(e,t,r,n){return Oe(ke(t,e.length-r),e,r,n)}function fe(e,t,r,n){return Oe(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function pe(e,t,r,n){return fe(e,t,r,n)}function he(e,t,r,n){return Oe(Ce(t),e,r,n)}function de(e,t,r,n){return Oe(function(e,t){for(var r,n,i,o=[],s=0;s<e.length&&!((t-=2)<0);++s)n=(r=e.charCodeAt(s))>>8,i=r%256,o.push(i),o.push(n);return o}(t,e.length-r),e,r,n)}function ge(e,t,r){return 0===t&&r===e.length?G(e):G(e.slice(t,r))}function me(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var o,s,a,u,l=e[i],c=null,f=l>239?4:l>223?3:l>191?2:1;if(i+f<=r)switch(f){case 1:l<128&&(c=l);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&l)<<6|63&o)>127&&(c=u);break;case 3:o=e[i+1],s=e[i+2],128==(192&o)&&128==(192&s)&&(u=(15&l)<<12|(63&o)<<6|63&s)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:o=e[i+1],s=e[i+2],a=e[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(u=(15&l)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(c=u)}null===c?(c=65533,f=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=f}return function(e){var t=e.length;if(t<=be)return String.fromCharCode.apply(String,e);var r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=be));return r}(n)}Z.TYPED_ARRAY_SUPPORT=void 0===e.TYPED_ARRAY_SUPPORT||e.TYPED_ARRAY_SUPPORT,J(),Z.poolSize=8192,Z._augment=function(e){return e.__proto__=Z.prototype,e},Z.from=function(e,t,r){return Q(null,e,t,r)},Z.TYPED_ARRAY_SUPPORT&&(Z.prototype.__proto__=Uint8Array.prototype,Z.__proto__=Uint8Array),Z.alloc=function(e,t,r){return function(e,t,r,n){return X(t),t<=0?K(e,t):void 0!==r?"string"==typeof n?K(e,t).fill(r,n):K(e,t).fill(r):K(e,t)}(null,e,t,r)},Z.allocUnsafe=function(e){return ee(null,e)},Z.allocUnsafeSlow=function(e){return ee(null,e)},Z.isBuffer=function(e){return null!=e&&(!!e._isBuffer||qe(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&qe(e.slice(0,0))}(e))},Z.compare=function(e,t){if(!ne(e)||!ne(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},Z.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}},Z.concat=function(e,t){if(!W(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return Z.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=Z.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var o=e[r];if(!ne(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,i),i+=o.length}return n},Z.byteLength=ie,Z.prototype._isBuffer=!0,Z.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)se(this,t,t+1);return this},Z.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)se(this,t,t+3),se(this,t+1,t+2);return this},Z.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)se(this,t,t+7),se(this,t+1,t+6),se(this,t+2,t+5),se(this,t+3,t+4);return this},Z.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?me(this,0,e):oe.apply(this,arguments)},Z.prototype.equals=function(e){if(!ne(e))throw new TypeError("Argument must be a Buffer");return this===e||0===Z.compare(this,e)},Z.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),"<Buffer "+e+">"},Z.prototype.compare=function(e,t,r,n,i){if(!ne(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(n>>>=0),s=(r>>>=0)-(t>>>=0),a=Math.min(o,s),u=this.slice(n,i),l=e.slice(t,r),c=0;c<a;++c)if(u[c]!==l[c]){o=u[c],s=l[c];break}return o<s?-1:s<o?1:0},Z.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},Z.prototype.indexOf=function(e,t,r){return ae(this,e,t,r,!0)},Z.prototype.lastIndexOf=function(e,t,r){return ae(this,e,t,r,!1)},Z.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 i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return le(this,e,t,r);case"utf8":case"utf-8":return ce(this,e,t,r);case"ascii":return fe(this,e,t,r);case"latin1":case"binary":return pe(this,e,t,r);case"base64":return he(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return de(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},Z.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var be=4096;function ye(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function ve(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function we(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=t;o<r;++o)i+=Le(e[o]);return i}function Ee(e,t,r){for(var n=e.slice(t,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function _e(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 Te(e,t,r,n,i,o){if(!ne(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function Ae(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-r,2);i<o;++i)e[r+i]=(t&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function xe(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-r,4);i<o;++i)e[r+i]=t>>>8*(n?i:3-i)&255}function Se(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function De(e,t,r,n,i){return i||Se(e,0,r,4),Y(e,t,r,n,23,4),r+4}function Ne(e,t,r,n,i){return i||Se(e,0,r,8),Y(e,t,r,n,52,8),r+8}Z.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),Z.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=Z.prototype;else{var i=t-e;r=new Z(i,void 0);for(var o=0;o<i;++o)r[o]=this[o+e]}return r},Z.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||_e(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n},Z.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||_e(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},Z.prototype.readUInt8=function(e,t){return t||_e(e,1,this.length),this[e]},Z.prototype.readUInt16LE=function(e,t){return t||_e(e,2,this.length),this[e]|this[e+1]<<8},Z.prototype.readUInt16BE=function(e,t){return t||_e(e,2,this.length),this[e]<<8|this[e+1]},Z.prototype.readUInt32LE=function(e,t){return t||_e(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Z.prototype.readUInt32BE=function(e,t){return t||_e(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Z.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||_e(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},Z.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||_e(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},Z.prototype.readInt8=function(e,t){return t||_e(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},Z.prototype.readInt16LE=function(e,t){t||_e(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},Z.prototype.readInt16BE=function(e,t){t||_e(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},Z.prototype.readInt32LE=function(e,t){return t||_e(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Z.prototype.readInt32BE=function(e,t){return t||_e(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Z.prototype.readFloatLE=function(e,t){return t||_e(e,4,this.length),z(this,e,!0,23,4)},Z.prototype.readFloatBE=function(e,t){return t||_e(e,4,this.length),z(this,e,!1,23,4)},Z.prototype.readDoubleLE=function(e,t){return t||_e(e,8,this.length),z(this,e,!0,52,8)},Z.prototype.readDoubleBE=function(e,t){return t||_e(e,8,this.length),z(this,e,!1,52,8)},Z.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||Te(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[t]=255&e;++o<r&&(i*=256);)this[t+o]=e/i&255;return t+r},Z.prototype.writeUIntBE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||Te(this,e,t,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},Z.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||Te(this,e,t,1,255,0),Z.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},Z.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||Te(this,e,t,2,65535,0),Z.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Ae(this,e,t,!0),t+2},Z.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||Te(this,e,t,2,65535,0),Z.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Ae(this,e,t,!1),t+2},Z.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||Te(this,e,t,4,4294967295,0),Z.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):xe(this,e,t,!0),t+4},Z.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||Te(this,e,t,4,4294967295,0),Z.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):xe(this,e,t,!1),t+4},Z.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);Te(this,e,t,r,i-1,-i)}var o=0,s=1,a=0;for(this[t]=255&e;++o<r&&(s*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+r},Z.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);Te(this,e,t,r,i-1,-i)}var o=r-1,s=1,a=0;for(this[t+o]=255&e;--o>=0&&(s*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+r},Z.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||Te(this,e,t,1,127,-128),Z.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},Z.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||Te(this,e,t,2,32767,-32768),Z.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Ae(this,e,t,!0),t+2},Z.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||Te(this,e,t,2,32767,-32768),Z.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Ae(this,e,t,!1),t+2},Z.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||Te(this,e,t,4,2147483647,-2147483648),Z.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):xe(this,e,t,!0),t+4},Z.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||Te(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),Z.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):xe(this,e,t,!1),t+4},Z.prototype.writeFloatLE=function(e,t,r){return De(this,e,t,!0,r)},Z.prototype.writeFloatBE=function(e,t,r){return De(this,e,t,!1,r)},Z.prototype.writeDoubleLE=function(e,t,r){return Ne(this,e,t,!0,r)},Z.prototype.writeDoubleBE=function(e,t,r){return Ne(this,e,t,!1,r)},Z.prototype.copy=function(e,t,r,n){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("sourceStart out of bounds");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 i,o=n-r;if(this===e&&r<t&&t<n)for(i=o-1;i>=0;--i)e[i+t]=this[i+r];else if(o<1e3||!Z.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+o),t);return o},Z.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),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!Z.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}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 o;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o<r;++o)this[o]=e;else{var s=ne(e)?e:ke(new Z(e,n).toString()),a=s.length;for(o=0;o<r-t;++o)this[o+t]=s[o%a]}return this};var Re=/[^+\/0-9A-Za-z-_]/g;function Le(e){return e<16?"0"+e.toString(16):e.toString(16)}function ke(e,t){var r;t=t||1/0;for(var n=e.length,i=null,o=[],s=0;s<n;++s){if((r=e.charCodeAt(s))>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.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;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function Ce(e){return function(e){var t,r,n,i,o,s;j||M();var a=e.length;if(a%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===e[a-2]?2:"="===e[a-1]?1:0,s=new V(3*a/4-o),n=o>0?a-4:a;var u=0;for(t=0,r=0;t<n;t+=4,r+=3)i=B[e.charCodeAt(t)]<<18|B[e.charCodeAt(t+1)]<<12|B[e.charCodeAt(t+2)]<<6|B[e.charCodeAt(t+3)],s[u++]=i>>16&255,s[u++]=i>>8&255,s[u++]=255&i;return 2===o?(i=B[e.charCodeAt(t)]<<2|B[e.charCodeAt(t+1)]>>4,s[u++]=255&i):1===o&&(i=B[e.charCodeAt(t)]<<10|B[e.charCodeAt(t+1)]<<4|B[e.charCodeAt(t+2)]>>2,s[u++]=i>>8&255,s[u++]=255&i),s}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(Re,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Oe(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function qe(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function Pe(){throw new Error("setTimeout has not been defined")}function Ie(){throw new Error("clearTimeout has not been defined")}var Ue=Pe,Fe=Ie;function Be(e){if(Ue===setTimeout)return setTimeout(e,0);if((Ue===Pe||!Ue)&&setTimeout)return Ue=setTimeout,setTimeout(e,0);try{return Ue(e,0)}catch(t){try{return Ue.call(null,e,0)}catch(t){return Ue.call(this,e,0)}}}"function"==typeof e.setTimeout&&(Ue=setTimeout),"function"==typeof e.clearTimeout&&(Fe=clearTimeout);var Ve,je=[],Me=!1,He=-1;function Ge(){Me&&Ve&&(Me=!1,Ve.length?je=Ve.concat(je):He=-1,je.length&&ze())}function ze(){if(!Me){var e=Be(Ge);Me=!0;for(var t=je.length;t;){for(Ve=je,je=[];++He<t;)Ve&&Ve[He].run();He=-1,t=je.length}Ve=null,Me=!1,function(e){if(Fe===clearTimeout)return clearTimeout(e);if((Fe===Ie||!Fe)&&clearTimeout)return Fe=clearTimeout,clearTimeout(e);try{return Fe(e)}catch(t){try{return Fe.call(null,e)}catch(t){return Fe.call(this,e)}}}(e)}}function Ye(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];je.push(new $e(e,t)),1!==je.length||Me||Be(ze)}function $e(e,t){this.fun=e,this.array=t}$e.prototype.run=function(){this.fun.apply(null,this.array)};var We=e.performance||{};We.now||We.mozNow||We.msNow||We.oNow||We.webkitNow;var Je={env:{}},Ke="function"==typeof Object.create?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e},Ze=/%[sdj%]/g;function Qe(e){if(!dt(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(nt(arguments[r]));return t.join(" ")}r=1;for(var n=arguments,i=n.length,o=String(e).replace(Ze,(function(e){if("%%"===e)return"%";if(r>=i)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}})),s=n[r];r<i;s=n[++r])ft(s)||!yt(s)?o+=" "+s:o+=" "+nt(s);return o}function Xe(t,r){if(mt(e.process))return function(){return Xe(t,r).apply(this,arguments)};if(!0===Je.noDeprecation)return t;var n=!1;return function(){if(!n){if(Je.throwDeprecation)throw new Error(r);Je.traceDeprecation?console.trace(r):console.error(r),n=!0}return t.apply(this,arguments)}}var et,tt={};function rt(e){if(mt(et)&&(et=Je.env.NODE_DEBUG||""),e=e.toUpperCase(),!tt[e])if(new RegExp("\\b"+e+"\\b","i").test(et)){tt[e]=function(){var t=Qe.apply(null,arguments);console.error("%s %d: %s",e,0,t)}}else tt[e]=function(){};return tt[e]}function nt(e,t){var r={seen:[],stylize:ot};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),ct(t)?r.showHidden=t:t&&Nt(r,t),mt(r.showHidden)&&(r.showHidden=!1),mt(r.depth)&&(r.depth=2),mt(r.colors)&&(r.colors=!1),mt(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=it),st(r,e,r.depth)}function it(e,t){var r=nt.styles[t];return r?"["+nt.colors[r][0]+"m"+e+"["+nt.colors[r][1]+"m":e}function ot(e,t){return e}function st(e,t,r){if(e.customInspect&&t&&Et(t.inspect)&&t.inspect!==nt&&(!t.constructor||t.constructor.prototype!==t)){var n=t.inspect(r,e);return dt(n)||(n=st(e,n,r)),n}var i=function(e,t){if(mt(t))return e.stylize("undefined","undefined");if(dt(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(ht(t))return e.stylize(""+t,"number");if(ct(t))return e.stylize(""+t,"boolean");if(ft(t))return e.stylize("null","null")}(e,t);if(i)return i;var o=Object.keys(t),s=function(e){var t={};return e.forEach((function(e,r){t[e]=!0})),t}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(t)),wt(t)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return at(t);if(0===o.length){if(Et(t)){var a=t.name?": "+t.name:"";return e.stylize("[Function"+a+"]","special")}if(bt(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(vt(t))return e.stylize(Date.prototype.toString.call(t),"date");if(wt(t))return at(t)}var u,l="",c=!1,f=["{","}"];(lt(t)&&(c=!0,f=["[","]"]),Et(t))&&(l=" [Function"+(t.name?": "+t.name:"")+"]");return bt(t)&&(l=" "+RegExp.prototype.toString.call(t)),vt(t)&&(l=" "+Date.prototype.toUTCString.call(t)),wt(t)&&(l=" "+at(t)),0!==o.length||c&&0!=t.length?r<0?bt(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),u=c?function(e,t,r,n,i){for(var o=[],s=0,a=t.length;s<a;++s)Rt(t,String(s))?o.push(ut(e,t,r,n,String(s),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(ut(e,t,r,n,i,!0))})),o}(e,t,r,s,o):o.map((function(n){return ut(e,t,r,s,n,c)})),e.seen.pop(),function(e,t,r){var n=e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0);if(n>60)return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}(u,l,f)):f[0]+l+f[1]}function at(e){return"["+Error.prototype.toString.call(e)+"]"}function ut(e,t,r,n,i,o){var s,a,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?a=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(a=e.stylize("[Setter]","special")),Rt(n,i)||(s="["+i+"]"),a||(e.seen.indexOf(u.value)<0?(a=ft(r)?st(e,u.value,null):st(e,u.value,r-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+a.split("\n").map((function(e){return" "+e})).join("\n")):a=e.stylize("[Circular]","special")),mt(s)){if(o&&i.match(/^\d+$/))return a;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+a}function lt(e){return Array.isArray(e)}function ct(e){return"boolean"==typeof e}function ft(e){return null===e}function pt(e){return null==e}function ht(e){return"number"==typeof e}function dt(e){return"string"==typeof e}function gt(e){return"symbol"==typeof e}function mt(e){return void 0===e}function bt(e){return yt(e)&&"[object RegExp]"===At(e)}function yt(e){return"object"==typeof e&&null!==e}function vt(e){return yt(e)&&"[object Date]"===At(e)}function wt(e){return yt(e)&&("[object Error]"===At(e)||e instanceof Error)}function Et(e){return"function"==typeof e}function _t(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function Tt(e){return Z.isBuffer(e)}function At(e){return Object.prototype.toString.call(e)}function xt(e){return e<10?"0"+e.toString(10):e.toString(10)}nt.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},nt.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};var St=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Dt(){console.log("%s - %s",function(){var e=new Date,t=[xt(e.getHours()),xt(e.getMinutes()),xt(e.getSeconds())].join(":");return[e.getDate(),St[e.getMonth()],t].join(" ")}(),Qe.apply(null,arguments))}function Nt(e,t){if(!t||!yt(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}function Rt(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var Lt={inherits:Ke,_extend:Nt,log:Dt,isBuffer:Tt,isPrimitive:_t,isFunction:Et,isError:wt,isDate:vt,isObject:yt,isRegExp:bt,isUndefined:mt,isSymbol:gt,isString:dt,isNumber:ht,isNullOrUndefined:pt,isNull:ft,isBoolean:ct,isArray:lt,inspect:nt,deprecate:Xe,format:Qe,debuglog:rt},kt=Object.freeze({__proto__:null,format:Qe,deprecate:Xe,debuglog:rt,inspect:nt,isArray:lt,isBoolean:ct,isNull:ft,isNullOrUndefined:pt,isNumber:ht,isString:dt,isSymbol:gt,isUndefined:mt,isRegExp:bt,isObject:yt,isDate:vt,isError:wt,isFunction:Et,isPrimitive:_t,isBuffer:Tt,log:Dt,inherits:Ke,_extend:Nt,default:Lt});function Ct(){this.head=null,this.tail=null,this.length=0}Ct.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},Ct.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},Ct.prototype.shift=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}},Ct.prototype.clear=function(){this.head=this.tail=null,this.length=0},Ct.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},Ct.prototype.concat=function(e){if(0===this.length)return Z.alloc(0);if(1===this.length)return this.head.data;for(var t=Z.allocUnsafe(e>>>0),r=this.head,n=0;r;)r.data.copy(t,n),n+=r.data.length,r=r.next;return t};var Ot=Z.isEncoding||function(e){switch(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 qt(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),function(e){if(e&&!Ot(e))throw new Error("Unknown encoding: "+e)}(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=It;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=Ut;break;default:return void(this.write=Pt)}this.charBuffer=new Z(6),this.charReceived=0,this.charLength=0}function Pt(e){return e.toString(this.encoding)}function It(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function Ut(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}qt.prototype.write=function(e){for(var t="";this.charLength;){var r=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,r),this.charReceived+=r,this.charReceived<this.charLength)return"";if(e=e.slice(r,e.length),!((i=(t=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(t.length-1))>=55296&&i<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var n=e.length;this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,n),n-=this.charReceived);var i;n=(t+=e.toString(this.encoding,0,n)).length-1;if((i=t.charCodeAt(n))>=55296&&i<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),e.copy(this.charBuffer,0,0,o),t.substring(0,n)}return t},qt.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var r=e[e.length-t];if(1==t&&r>>5==6){this.charLength=2;break}if(t<=2&&r>>4==14){this.charLength=3;break}if(t<=3&&r>>3==30){this.charLength=4;break}}this.charReceived=t},qt.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var r=this.charReceived,n=this.charBuffer,i=this.encoding;t+=n.slice(0,r).toString(i)}return t},Vt.ReadableState=Bt;var Ft=rt("stream");function Bt(e,t){e=e||{},this.objectMode=!!e.objectMode,t instanceof dr&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var r=e.highWaterMark,n=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:n,this.highWaterMark=~~this.highWaterMark,this.buffer=new Ct,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.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(this.decoder=new qt(e.encoding),this.encoding=e.encoding)}function Vt(e){if(!(this instanceof Vt))return new Vt(e);this._readableState=new Bt(e,this),this.readable=!0,e&&"function"==typeof e.read&&(this._read=e.read),k.call(this)}function jt(e,t,r,n,i){var o=function(e,t){var r=null;Z.isBuffer(t)||"string"==typeof t||null==t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));return r}(t,r);if(o)e.emit("error",o);else if(null===r)t.reading=!1,function(e,t){if(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,Gt(e)}(e,t);else if(t.objectMode||r&&r.length>0)if(t.ended&&!i){var s=new Error("stream.push() after EOF");e.emit("error",s)}else if(t.endEmitted&&i){var a=new Error("stream.unshift() after end event");e.emit("error",a)}else{var u;!t.decoder||i||n||(r=t.decoder.write(r),u=!t.objectMode&&0===r.length),i||(t.reading=!1),u||(t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,i?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&Gt(e))),function(e,t){t.readingMore||(t.readingMore=!0,Ye(Yt,e,t))}(e,t)}else i||(t.reading=!1);return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(t)}Ke(Vt,k),Vt.prototype.push=function(e,t){var r=this._readableState;return r.objectMode||"string"!=typeof e||(t=t||r.defaultEncoding)!==r.encoding&&(e=Z.from(e,t),t=""),jt(this,r,e,t,!1)},Vt.prototype.unshift=function(e){return jt(this,this._readableState,e,"",!0)},Vt.prototype.isPaused=function(){return!1===this._readableState.flowing},Vt.prototype.setEncoding=function(e){return this._readableState.decoder=new qt(e),this._readableState.encoding=e,this};var Mt=8388608;function Ht(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>=Mt?e=Mt:(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 Gt(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(Ft("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?Ye(zt,e):zt(e))}function zt(e){Ft("emit readable"),e.emit("readable"),Jt(e)}function Yt(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(Ft("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}function $t(e){Ft("readable nexttick read 0"),e.read(0)}function Wt(e,t){t.reading||(Ft("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),Jt(e),t.flowing&&!t.reading&&e.read(0)}function Jt(e){var t=e._readableState;for(Ft("flow",t.flowing);t.flowing&&null!==e.read(););}function Kt(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.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var n;e<t.head.data.length?(n=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):n=e===t.head.data.length?t.shift():r?function(e,t){var r=t.head,n=1,i=r.data;e-=i.length;for(;r=r.next;){var o=r.data,s=e>o.length?o.length:e;if(s===o.length?i+=o:i+=o.slice(0,e),0===(e-=s)){s===o.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(s));break}++n}return t.length-=n,i}(e,t):function(e,t){var r=Z.allocUnsafe(e),n=t.head,i=1;n.data.copy(r),e-=n.data.length;for(;n=n.next;){var o=n.data,s=e>o.length?o.length:e;if(o.copy(r,r.length-e,0,s),0===(e-=s)){s===o.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(s));break}++i}return t.length-=i,r}(e,t);return n}(e,t.buffer,t.decoder),r);var r}function Zt(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,Ye(Qt,t,e))}function Qt(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function Xt(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function er(){}function tr(e,t,r){this.chunk=e,this.encoding=t,this.callback=r,this.next=null}function rr(e,t){Object.defineProperty(this,"buffer",{get:Xe((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")}),e=e||{},this.objectMode=!!e.objectMode,t instanceof dr&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var r=e.highWaterMark,n=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:n,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var i=!1===e.decodeStrings;this.decodeStrings=!i,this.defaultEncoding=e.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 r=e._writableState,n=r.sync,i=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,i){--t.pendingcb,r?Ye(i,n):i(n);e._writableState.errorEmitted=!0,e.emit("error",n)}(e,r,n,t,i);else{var o=ar(r);o||r.corked||r.bufferProcessing||!r.bufferedRequest||sr(e,r),n?Ye(or,e,r,o,i):or(e,r,o,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new cr(this)}function nr(e){if(!(this instanceof nr||this instanceof dr))return new nr(e);this._writableState=new rr(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev)),k.call(this)}function ir(e,t,r,n,i,o,s){t.writelen=n,t.writecb=s,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function or(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),lr(e,t)}function sr(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 s=0;r;)i[s]=r,r=r.next,s+=1;ir(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 cr(t)}else{for(;r;){var a=r.chunk,u=r.encoding,l=r.callback;if(ir(e,t,!1,t.objectMode?1:a.length,a,u,l),r=r.next,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequestCount=0,t.bufferedRequest=r,t.bufferProcessing=!1}function ar(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function ur(e,t){t.prefinished||(t.prefinished=!0,e.emit("prefinish"))}function lr(e,t){var r=ar(t);return r&&(0===t.pendingcb?(ur(e,t),t.finished=!0,e.emit("finish")):ur(e,t)),r}function cr(e){var t=this;this.next=null,this.entry=null,this.finish=function(r){var n=t.entry;for(t.entry=null;n;){var i=n.callback;e.pendingcb--,i(r),n=n.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}}Vt.prototype.read=function(e){Ft("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return Ft("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?Zt(this):Gt(this),null;if(0===(e=Ht(e,t))&&t.ended)return 0===t.length&&Zt(this),null;var n,i=t.needReadable;return Ft("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&Ft("length less than watermark",i=!0),t.ended||t.reading?Ft("reading or ended",i=!1):i&&(Ft("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=Ht(r,t))),null===(n=e>0?Kt(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&Zt(this)),null!==n&&this.emit("data",n),n},Vt.prototype._read=function(e){this.emit("error",new Error("not implemented"))},Vt.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,Ft("pipe count=%d opts=%j",n.pipesCount,t);var i=!t||!1!==t.end?s:l;function o(e){Ft("onunpipe"),e===r&&l()}function s(){Ft("onend"),e.end()}n.endEmitted?Ye(i):r.once("end",i),e.on("unpipe",o);var a=function(e){return function(){var t=e._readableState;Ft("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&e.listeners("data").length&&(t.flowing=!0,Jt(e))}}(r);e.on("drain",a);var u=!1;function l(){Ft("cleanup"),e.removeListener("close",h),e.removeListener("finish",d),e.removeListener("drain",a),e.removeListener("error",p),e.removeListener("unpipe",o),r.removeListener("end",s),r.removeListener("end",l),r.removeListener("data",f),u=!0,!n.awaitDrain||e._writableState&&!e._writableState.needDrain||a()}var c=!1;function f(t){Ft("ondata"),c=!1,!1!==e.write(t)||c||((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==Xt(n.pipes,e))&&!u&&(Ft("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,c=!0),r.pause())}function p(t){var r;Ft("onerror",t),g(),e.removeListener("error",p),0===(r="error",e.listeners(r).length)&&e.emit("error",t)}function h(){e.removeListener("finish",d),g()}function d(){Ft("onfinish"),e.removeListener("close",h),g()}function g(){Ft("unpipe"),r.unpipe(e)}return r.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",h),e.once("finish",d),e.emit("pipe",r),n.flowing||(Ft("pipe resume"),r.resume()),e},Vt.prototype.unpipe=function(e){var t=this._readableState;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)),this;if(!e){var r=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<n;i++)r[i].emit("unpipe",this);return this}var o=Xt(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)),this},Vt.prototype.on=function(e,t){var r=k.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var n=this._readableState;n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&Gt(this):Ye($t,this))}return r},Vt.prototype.addListener=Vt.prototype.on,Vt.prototype.resume=function(){var e=this._readableState;return e.flowing||(Ft("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,Ye(Wt,e,t))}(this,e)),this},Vt.prototype.pause=function(){return Ft("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(Ft("pause"),this._readableState.flowing=!1,this.emit("pause")),this},Vt.prototype.wrap=function(e){var t=this._readableState,r=!1,n=this;for(var i in e.on("end",(function(){if(Ft("wrapped end"),t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&n.push(e)}n.push(null)})),e.on("data",(function(i){(Ft("wrapped data"),t.decoder&&(i=t.decoder.write(i)),t.objectMode&&null==i)||(t.objectMode||i&&i.length)&&(n.push(i)||(r=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));return function(e,t){for(var r=0,n=e.length;r<n;r++)t(e[r],r)}(["error","close","destroy","pause","resume"],(function(t){e.on(t,n.emit.bind(n,t))})),n._read=function(t){Ft("wrapped _read",t),r&&(r=!1,e.resume())},n},Vt._fromList=Kt,nr.WritableState=rr,Ke(nr,k),rr.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},nr.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},nr.prototype.write=function(e,t,r){var n=this._writableState,i=!1;return"function"==typeof t&&(r=t,t=null),Z.isBuffer(e)?t="buffer":t||(t=n.defaultEncoding),"function"!=typeof r&&(r=er),n.ended?function(e,t){var r=new Error("write after end");e.emit("error",r),Ye(t,r)}(this,r):function(e,t,r,n){var i=!0,o=!1;return null===r?o=new TypeError("May not write null values to stream"):Z.isBuffer(r)||"string"==typeof r||void 0===r||t.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),Ye(n,o),i=!1),i}(this,n,e,r)&&(n.pendingcb++,i=function(e,t,r,n,i){r=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=Z.from(t,r));return t}(t,r,n),Z.isBuffer(r)&&(n="buffer");var o=t.objectMode?1:r.length;t.length+=o;var s=t.length<t.highWaterMark;s||(t.needDrain=!0);if(t.writing||t.corked){var a=t.lastBufferedRequest;t.lastBufferedRequest=new tr(r,n,i),a?a.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else ir(e,t,!1,o,r,n,i);return s}(this,n,e,t,r)),i},nr.prototype.cork=function(){this._writableState.corked++},nr.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||sr(this,e))},nr.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 TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},nr.prototype._write=function(e,t,r){r(new Error("not implemented"))},nr.prototype._writev=null,nr.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||function(e,t,r){t.ending=!0,lr(e,t),r&&(t.finished?Ye(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,n,r)},Ke(dr,Vt);for(var fr=Object.keys(nr.prototype),pr=0;pr<fr.length;pr++){var hr=fr[pr];dr.prototype[hr]||(dr.prototype[hr]=nr.prototype[hr])}function dr(e){if(!(this instanceof dr))return new dr(e);Vt.call(this,e),nr.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",gr)}function gr(){this.allowHalfOpen||this._writableState.ended||Ye(mr,this)}function mr(e){e.end()}function br(e){this.afterTransform=function(t,r){return function(e,t,r){var n=e._transformState;n.transforming=!1;var i=n.writecb;if(!i)return e.emit("error",new Error("no writecb in Transform class"));n.writechunk=null,n.writecb=null,null!=r&&e.push(r);i(t);var o=e._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&e._read(o.highWaterMark)}(e,t,r)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function yr(e){if(!(this instanceof yr))return new yr(e);dr.call(this,e),this._transformState=new br(this);var t=this;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.once("prefinish",(function(){"function"==typeof this._flush?this._flush((function(e){vr(t,e)})):vr(t)}))}function vr(e,t){if(t)return e.emit("error",t);var r=e._writableState,n=e._transformState;if(r.length)throw new Error("Calling transform done when ws.length != 0");if(n.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}function wr(e){if(!(this instanceof wr))return new wr(e);yr.call(this,e)}function Er(){k.call(this)}Ke(yr,dr),yr.prototype.push=function(e,t){return this._transformState.needTransform=!1,dr.prototype.push.call(this,e,t)},yr.prototype._transform=function(e,t,r){throw new Error("Not implemented")},yr.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},yr.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},Ke(wr,yr),wr.prototype._transform=function(e,t,r){r(null,e)},Ke(Er,k),Er.Readable=Vt,Er.Writable=nr,Er.Duplex=dr,Er.Transform=yr,Er.PassThrough=wr,Er.Stream=Er,Er.prototype.pipe=function(e,t){var r=this;function n(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function i(){r.readable&&r.resume&&r.resume()}r.on("data",n),e.on("drain",i),e._isStdio||t&&!1===t.end||(r.on("end",s),r.on("close",a));var o=!1;function s(){o||(o=!0,e.end())}function a(){o||(o=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){if(l(),0===k.listenerCount(this,"error"))throw e}function l(){r.removeListener("data",n),e.removeListener("drain",i),r.removeListener("end",s),r.removeListener("close",a),r.removeListener("error",u),e.removeListener("error",u),r.removeListener("end",l),r.removeListener("close",l),e.removeListener("close",l)}return r.on("error",u),e.on("error",u),r.on("end",l),r.on("close",l),e.on("close",l),e.emit("pipe",r),e};var _r=N(Object.freeze({__proto__:null,default:Er,Readable:Vt,Writable:nr,Duplex:dr,Transform:yr,PassThrough:wr,Stream:Er})),Tr=N(kt),Ar=_r.Writable,xr=Sr;function Sr(e){if(!(this instanceof Sr))return new Sr(e);e=e||{},Ar.call(this,e),this.label=void 0!==e.label?e.label:"stdout"}(0,Tr.inherits)(Sr,Ar),Sr.prototype._write=function(e,t,r){var n=e.toString?e.toString():e;!1===this.label?console.log(n):console.log(this.label+":",n),h(r)};var Dr={exports:{}},Nr=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")};function Rr(e,t){for(var r=0,n=e.length-1;n>=0;n--){var i=e[n];"."===i?e.splice(n,1):".."===i?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}var Lr=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,kr=function(e){return Lr.exec(e).slice(1)};function Cr(){for(var e="",t=!1,r=arguments.length-1;r>=-1&&!t;r--){var n=r>=0?arguments[r]:"/";if("string"!=typeof n)throw new TypeError("Arguments to path.resolve must be strings");n&&(e=n+"/"+e,t="/"===n.charAt(0))}return(t?"/":"")+(e=Rr(jr(e.split("/"),(function(e){return!!e})),!t).join("/"))||"."}function Or(e){var t=qr(e),r="/"===Mr(e,-1);return(e=Rr(jr(e.split("/"),(function(e){return!!e})),!t).join("/"))||t||(e="."),e&&r&&(e+="/"),(t?"/":"")+e}function qr(e){return"/"===e.charAt(0)}function Pr(){return Or(jr(Array.prototype.slice.call(arguments,0),(function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))}function Ir(e,t){function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var r=e.length-1;r>=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}e=Cr(e).substr(1),t=Cr(t).substr(1);for(var n=r(e.split("/")),i=r(t.split("/")),o=Math.min(n.length,i.length),s=o,a=0;a<o;a++)if(n[a]!==i[a]){s=a;break}var u=[];for(a=s;a<n.length;a++)u.push("..");return(u=u.concat(i.slice(s))).join("/")}function Ur(e){var t=kr(e),r=t[0],n=t[1];return r||n?(n&&(n=n.substr(0,n.length-1)),r+n):"."}function Fr(e,t){var r=kr(e)[2];return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r}function Br(e){return kr(e)[3]}var Vr={extname:Br,basename:Fr,dirname:Ur,sep:"/",delimiter:":",relative:Ir,join:Pr,isAbsolute:qr,normalize:Or,resolve:Cr};function jr(e,t){if(e.filter)return e.filter(t);for(var r=[],n=0;n<e.length;n++)t(e[n],n,e)&&r.push(e[n]);return r}var Mr="b"==="ab".substr(-1)?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)},Hr=N(Object.freeze({__proto__:null,resolve:Cr,normalize:Or,isAbsolute:qr,join:Pr,relative:Ir,sep:"/",delimiter:":",dirname:Ur,basename:Fr,extname:Br,default:Vr})),Gr={},zr={exports:{}},Yr={},$r={};!function(e){function t(){}function r(e,t,r,n,i){for(var o,s=[];t;)s.push(t),o=t.previousComponent,delete t.previousComponent,t=o;s.reverse();for(var a=0,u=s.length,l=0,c=0;a<u;a++){var f=s[a];if(f.removed){if(f.value=e.join(n.slice(c,c+f.count)),c+=f.count,a&&s[a-1].added){var p=s[a-1];s[a-1]=s[a],s[a]=p}}else{if(!f.added&&i){var h=r.slice(l,l+f.count);h=h.map((function(e,t){var r=n[c+t];return r.length>e.length?r:e})),f.value=e.join(h)}else f.value=e.join(r.slice(l,l+f.count));l+=f.count,f.added||(c+=f.count)}}var d=s[u-1];return u>1&&"string"==typeof d.value&&(d.added||d.removed)&&e.equals("",d.value)&&(s[u-2].value+=d.value,s.pop()),s}Object.defineProperty(e,"__esModule",{value:!0}),e.default=t,t.prototype={diff:function(e,t){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=i.callback;"function"==typeof i&&(o=i,i={}),this.options=i;var s=this;function a(e){return o?(setTimeout((function(){o(void 0,e)}),0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var u=(t=this.removeEmpty(this.tokenize(t))).length,l=e.length,c=1,f=u+l;i.maxEditLength&&(f=Math.min(f,i.maxEditLength));var p=null!==(n=i.timeout)&&void 0!==n?n:1/0,h=Date.now()+p,d=[{oldPos:-1,lastComponent:void 0}],g=this.extractCommon(d[0],t,e,0);if(d[0].oldPos+1>=l&&g+1>=u)return a([{value:this.join(t),count:t.length}]);var m=-1/0,b=1/0;function y(){for(var n=Math.max(m,-c);n<=Math.min(b,c);n+=2){var i=void 0,o=d[n-1],f=d[n+1];o&&(d[n-1]=void 0);var p=!1;if(f){var h=f.oldPos-n;p=f&&0<=h&&h<u}var y=o&&o.oldPos+1<l;if(p||y){if(i=!y||p&&o.oldPos+1<f.oldPos?s.addToPath(f,!0,void 0,0):s.addToPath(o,void 0,!0,1),g=s.extractCommon(i,t,e,n),i.oldPos+1>=l&&g+1>=u)return a(r(s,i.lastComponent,t,e,s.useLongestToken));d[n]=i,i.oldPos+1>=l&&(b=Math.min(b,n-1)),g+1>=u&&(m=Math.max(m,n+1))}else d[n]=void 0}c++}if(o)!function e(){setTimeout((function(){if(c>f||Date.now()>h)return o();y()||e()}),0)}();else for(;c<=f&&Date.now()<=h;){var v=y();if(v)return v}},addToPath:function(e,t,r,n){var i=e.lastComponent;return i&&i.added===t&&i.removed===r?{oldPos:e.oldPos+n,lastComponent:{count:i.count+1,added:t,removed:r,previousComponent:i.previousComponent}}:{oldPos:e.oldPos+n,lastComponent:{count:1,added:t,removed:r,previousComponent:i}}},extractCommon:function(e,t,r,n){for(var i=t.length,o=r.length,s=e.oldPos,a=s-n,u=0;a+1<i&&s+1<o&&this.equals(t[a+1],r[s+1]);)a++,s++,u++;return u&&(e.lastComponent={count:u,previousComponent:e.lastComponent}),e.oldPos=s,a},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],r=0;r<e.length;r++)e[r]&&t.push(e[r]);return t},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}}}($r);var Wr,Jr={};Object.defineProperty(Jr,"__esModule",{value:!0}),Jr.diffChars=function(e,t,r){return Kr.diff(e,t,r)},Jr.characterDiff=void 0;var Kr=new((Wr=$r)&&Wr.__esModule?Wr:{default:Wr}).default;Jr.characterDiff=Kr;var Zr={},Qr={};Object.defineProperty(Qr,"__esModule",{value:!0}),Qr.generateOptions=function(e,t){if("function"==typeof e)t.callback=e;else if(e)for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return t},Object.defineProperty(Zr,"__esModule",{value:!0}),Zr.diffWords=function(e,t,r){return r=(0,en.generateOptions)(r,{ignoreWhitespace:!0}),nn.diff(e,t,r)},Zr.diffWordsWithSpace=function(e,t,r){return nn.diff(e,t,r)},Zr.wordDiff=void 0;var Xr=function(e){return e&&e.__esModule?e:{default:e}}($r),en=Qr;var tn=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,rn=/\S/,nn=new Xr.default;Zr.wordDiff=nn,nn.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!rn.test(e)&&!rn.test(t)},nn.tokenize=function(e){for(var t=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),r=0;r<t.length-1;r++)!t[r+1]&&t[r+2]&&tn.test(t[r])&&tn.test(t[r+2])&&(t[r]+=t[r+2],t.splice(r+1,2),r--);return t};var on={};Object.defineProperty(on,"__esModule",{value:!0}),on.diffLines=function(e,t,r){return un.diff(e,t,r)},on.diffTrimmedLines=function(e,t,r){var n=(0,an.generateOptions)(r,{ignoreWhitespace:!0});return un.diff(e,t,n)},on.lineDiff=void 0;var sn=function(e){return e&&e.__esModule?e:{default:e}}($r),an=Qr;var un=new sn.default;on.lineDiff=un,un.tokenize=function(e){this.options.stripTrailingCr&&(e=e.replace(/\r\n/g,"\n"));var t=[],r=e.split(/(\n|\r\n)/);r[r.length-1]||r.pop();for(var n=0;n<r.length;n++){var i=r[n];n%2&&!this.options.newlineIsToken?t[t.length-1]+=i:(this.options.ignoreWhitespace&&(i=i.trim()),t.push(i))}return t};var ln={};Object.defineProperty(ln,"__esModule",{value:!0}),ln.diffSentences=function(e,t,r){return fn.diff(e,t,r)},ln.sentenceDiff=void 0;var cn=function(e){return e&&e.__esModule?e:{default:e}}($r);var fn=new cn.default;ln.sentenceDiff=fn,fn.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)};var pn={};Object.defineProperty(pn,"__esModule",{value:!0}),pn.diffCss=function(e,t,r){return dn.diff(e,t,r)},pn.cssDiff=void 0;var hn=function(e){return e&&e.__esModule?e:{default:e}}($r);var dn=new hn.default;pn.cssDiff=dn,dn.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};var gn={};Object.defineProperty(gn,"__esModule",{value:!0}),gn.diffJson=function(e,t,r){return wn.diff(e,t,r)},gn.canonicalize=En,gn.jsonDiff=void 0;var mn=function(e){return e&&e.__esModule?e:{default:e}}($r),bn=on;function yn(e){return yn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yn(e)}var vn=Object.prototype.toString,wn=new mn.default;function En(e,t,r,n,i){var o,s;for(t=t||[],r=r||[],n&&(e=n(i,e)),o=0;o<t.length;o+=1)if(t[o]===e)return r[o];if("[object Array]"===vn.call(e)){for(t.push(e),s=new Array(e.length),r.push(s),o=0;o<e.length;o+=1)s[o]=En(e[o],t,r,n,i);return t.pop(),r.pop(),s}if(e&&e.toJSON&&(e=e.toJSON()),"object"===yn(e)&&null!==e){t.push(e),s={},r.push(s);var a,u=[];for(a in e)e.hasOwnProperty(a)&&u.push(a);for(u.sort(),o=0;o<u.length;o+=1)s[a=u[o]]=En(e[a],t,r,n,a);t.pop(),r.pop()}else s=e;return s}gn.jsonDiff=wn,wn.useLongestToken=!0,wn.tokenize=bn.lineDiff.tokenize,wn.castInput=function(e){var t=this.options,r=t.undefinedReplacement,n=t.stringifyReplacer,i=void 0===n?function(e,t){return void 0===t?r:t}:n;return"string"==typeof e?e:JSON.stringify(En(e,null,null,i),i," ")},wn.equals=function(e,t){return mn.default.prototype.equals.call(wn,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"))};var _n={};Object.defineProperty(_n,"__esModule",{value:!0}),_n.diffArrays=function(e,t,r){return An.diff(e,t,r)},_n.arrayDiff=void 0;var Tn=function(e){return e&&e.__esModule?e:{default:e}}($r);var An=new Tn.default;_n.arrayDiff=An,An.tokenize=function(e){return e.slice()},An.join=An.removeEmpty=function(e){return e};var xn={},Sn={};Object.defineProperty(Sn,"__esModule",{value:!0}),Sn.parsePatch=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.split(/\r\n|[\n\v\f\r\x85]/),n=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],i=[],o=0;function s(){var e={};for(i.push(e);o<r.length;){var n=r[o];if(/^(\-\-\-|\+\+\+|@@)\s/.test(n))break;var s=/^(?:Index:|diff(?: -r \w+)+)\s+(.+?)\s*$/.exec(n);s&&(e.index=s[1]),o++}for(a(e),a(e),e.hunks=[];o<r.length;){var l=r[o];if(/^(Index:|diff|\-\-\-|\+\+\+)\s/.test(l))break;if(/^@@/.test(l))e.hunks.push(u());else{if(l&&t.strict)throw new Error("Unknown line "+(o+1)+" "+JSON.stringify(l));o++}}}function a(e){var t=/^(---|\+\+\+)\s+(.*)$/.exec(r[o]);if(t){var n="---"===t[1]?"old":"new",i=t[2].split("\t",2),s=i[0].replace(/\\\\/g,"\\");/^".*"$/.test(s)&&(s=s.substr(1,s.length-2)),e[n+"FileName"]=s,e[n+"Header"]=(i[1]||"").trim(),o++}}function u(){var e=o,i=r[o++].split(/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/),s={oldStart:+i[1],oldLines:void 0===i[2]?1:+i[2],newStart:+i[3],newLines:void 0===i[4]?1:+i[4],lines:[],linedelimiters:[]};0===s.oldLines&&(s.oldStart+=1),0===s.newLines&&(s.newStart+=1);for(var a=0,u=0;o<r.length&&!(0===r[o].indexOf("--- ")&&o+2<r.length&&0===r[o+1].indexOf("+++ ")&&0===r[o+2].indexOf("@@"));o++){var l=0==r[o].length&&o!=r.length-1?" ":r[o][0];if("+"!==l&&"-"!==l&&" "!==l&&"\\"!==l)break;s.lines.push(r[o]),s.linedelimiters.push(n[o]||"\n"),"+"===l?a++:"-"===l?u++:" "===l&&(a++,u++)}if(a||1!==s.newLines||(s.newLines=0),u||1!==s.oldLines||(s.oldLines=0),t.strict){if(a!==s.newLines)throw new Error("Added line count did not match for hunk at line "+(e+1));if(u!==s.oldLines)throw new Error("Removed line count did not match for hunk at line "+(e+1))}return s}for(;o<r.length;)s();return i};var Dn={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,t,r){var n=!0,i=!1,o=!1,s=1;return function a(){if(n&&!o){if(i?s++:n=!1,e+s<=r)return s;o=!0}if(!i)return o||(n=!0),t<=e-s?-s++:(i=!0,a())}}}(Dn),Object.defineProperty(xn,"__esModule",{value:!0}),xn.applyPatch=Ln,xn.applyPatches=function(e,t){"string"==typeof e&&(e=(0,Nn.parsePatch)(e));var r=0;!function n(){var i=e[r++];if(!i)return t.complete();t.loadFile(i,(function(e,r){if(e)return t.complete(e);var o=Ln(r,i,t);t.patched(i,o,(function(e){if(e)return t.complete(e);n()}))}))}()};var Nn=Sn,Rn=function(e){return e&&e.__esModule?e:{default:e}}(Dn);function Ln(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t&&(t=(0,Nn.parsePatch)(t)),Array.isArray(t)){if(t.length>1)throw new Error("applyPatch only works with a single input.");t=t[0]}var n,i,o=e.split(/\r\n|[\n\v\f\r\x85]/),s=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],a=t.hunks,u=r.compareLine||function(e,t,r,n){return t===n},l=0,c=r.fuzzFactor||0,f=0,p=0;function h(e,t){for(var r=0;r<e.lines.length;r++){var n=e.lines[r],i=n.length>0?n[0]:" ",s=n.length>0?n.substr(1):n;if(" "===i||"-"===i){if(!u(t+1,o[t],i,s)&&++l>c)return!1;t++}}return!0}for(var d=0;d<a.length;d++){for(var g=a[d],m=o.length-g.oldLines,b=0,y=p+g.oldStart-1,v=(0,Rn.default)(y,f,m);void 0!==b;b=v())if(h(g,y+b)){g.offset=p+=b;break}if(void 0===b)return!1;f=g.offset+g.oldStart+g.oldLines}for(var w=0,E=0;E<a.length;E++){var _=a[E],T=_.oldStart+_.offset+w-1;w+=_.newLines-_.oldLines;for(var A=0;A<_.lines.length;A++){var x=_.lines[A],S=x.length>0?x[0]:" ",D=x.length>0?x.substr(1):x,N=_.linedelimiters&&_.linedelimiters[A]||"\n";if(" "===S)T++;else if("-"===S)o.splice(T,1),s.splice(T,1);else if("+"===S)o.splice(T,0,D),s.splice(T,0,N),T++;else if("\\"===S){var R=_.lines[A-1]?_.lines[A-1][0]:null;"+"===R?n=!0:"-"===R&&(i=!0)}}}if(n)for(;!o[o.length-1];)o.pop(),s.pop();else i&&(o.push(""),s.push("\n"));for(var L=0;L<o.length-1;L++)o[L]=o[L]+s[L];return o.join("")}var kn={},Cn={};Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.structuredPatch=In,Cn.formatPatch=Un,Cn.createTwoFilesPatch=Fn,Cn.createPatch=function(e,t,r,n,i,o){return Fn(e,e,t,r,n,i,o)};var On=on;function qn(e){return function(e){if(Array.isArray(e))return Pn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Pn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Pn(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function In(e,t,r,n,i,o,s){s||(s={}),void 0===s.context&&(s.context=4);var a=(0,On.diffLines)(r,n,s);if(a){a.push({value:"",lines:[]});for(var u=[],l=0,c=0,f=[],p=1,h=1,d=function(e){var t=a[e],i=t.lines||t.value.replace(/\n$/,"").split("\n");if(t.lines=i,t.added||t.removed){var o;if(!l){var d=a[e-1];l=p,c=h,d&&(f=s.context>0?m(d.lines.slice(-s.context)):[],l-=f.length,c-=f.length)}(o=f).push.apply(o,qn(i.map((function(e){return(t.added?"+":"-")+e})))),t.added?h+=i.length:p+=i.length}else{if(l)if(i.length<=2*s.context&&e<a.length-2){var g;(g=f).push.apply(g,qn(m(i)))}else{var b,y=Math.min(i.length,s.context);(b=f).push.apply(b,qn(m(i.slice(0,y))));var v={oldStart:l,oldLines:p-l+y,newStart:c,newLines:h-c+y,lines:f};if(e>=a.length-2&&i.length<=s.context){var w=/\n$/.test(r),E=/\n$/.test(n),_=0==i.length&&f.length>v.oldLines;!w&&_&&r.length>0&&f.splice(v.oldLines,0,"\"),(w||_)&&E||f.push("\")}u.push(v),l=0,c=0,f=[]}p+=i.length,h+=i.length}},g=0;g<a.length;g++)d(g);return{oldFileName:e,newFileName:t,oldHeader:i,newHeader:o,hunks:u}}function m(e){return e.map((function(e){return" "+e}))}}function Un(e){if(Array.isArray(e))return e.map(Un).join("\n");var t=[];e.oldFileName==e.newFileName&&t.push("Index: "+e.oldFileName),t.push("==================================================================="),t.push("--- "+e.oldFileName+(void 0===e.oldHeader?"":"\t"+e.oldHeader)),t.push("+++ "+e.newFileName+(void 0===e.newHeader?"":"\t"+e.newHeader));for(var r=0;r<e.hunks.length;r++){var n=e.hunks[r];0===n.oldLines&&(n.oldStart-=1),0===n.newLines&&(n.newStart-=1),t.push("@@ -"+n.oldStart+","+n.oldLines+" +"+n.newStart+","+n.newLines+" @@"),t.push.apply(t,n.lines)}return t.join("\n")+"\n"}function Fn(e,t,r,n,i,o,s){return Un(In(e,t,r,n,i,o,s))}var Bn={};function Vn(e,t){if(t.length>e.length)return!1;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}Object.defineProperty(Bn,"__esModule",{value:!0}),Bn.arrayEqual=function(e,t){if(e.length!==t.length)return!1;return Vn(e,t)},Bn.arrayStartsWith=Vn,Object.defineProperty(kn,"__esModule",{value:!0}),kn.calcLineCount=Yn,kn.merge=function(e,t,r){e=$n(e,r),t=$n(t,r);var n={};(e.index||t.index)&&(n.index=e.index||t.index);(e.newFileName||t.newFileName)&&(Wn(e)?Wn(t)?(n.oldFileName=Jn(n,e.oldFileName,t.oldFileName),n.newFileName=Jn(n,e.newFileName,t.newFileName),n.oldHeader=Jn(n,e.oldHeader,t.oldHeader),n.newHeader=Jn(n,e.newHeader,t.newHeader)):(n.oldFileName=e.oldFileName,n.newFileName=e.newFileName,n.oldHeader=e.oldHeader,n.newHeader=e.newHeader):(n.oldFileName=t.oldFileName||e.oldFileName,n.newFileName=t.newFileName||e.newFileName,n.oldHeader=t.oldHeader||e.oldHeader,n.newHeader=t.newHeader||e.newHeader));n.hunks=[];var i=0,o=0,s=0,a=0;for(;i<e.hunks.length||o<t.hunks.length;){var u=e.hunks[i]||{oldStart:1/0},l=t.hunks[o]||{oldStart:1/0};if(Kn(u,l))n.hunks.push(Zn(u,s)),i++,a+=u.newLines-u.oldLines;else if(Kn(l,u))n.hunks.push(Zn(l,a)),o++,s+=l.newLines-l.oldLines;else{var c={oldStart:Math.min(u.oldStart,l.oldStart),oldLines:0,newStart:Math.min(u.newStart+s,l.oldStart+a),newLines:0,lines:[]};Qn(c,u.oldStart,u.lines,l.oldStart,l.lines),o++,i++,n.hunks.push(c)}}return n};var jn=Cn,Mn=Sn,Hn=Bn;function Gn(e){return function(e){if(Array.isArray(e))return zn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return zn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return zn(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Yn(e){var t=ai(e.lines),r=t.oldLines,n=t.newLines;void 0!==r?e.oldLines=r:delete e.oldLines,void 0!==n?e.newLines=n:delete e.newLines}function $n(e,t){if("string"==typeof e){if(/^@@/m.test(e)||/^Index:/m.test(e))return(0,Mn.parsePatch)(e)[0];if(!t)throw new Error("Must provide a base reference or pass in a patch");return(0,jn.structuredPatch)(void 0,void 0,t,e)}return e}function Wn(e){return e.newFileName&&e.newFileName!==e.oldFileName}function Jn(e,t,r){return t===r?t:(e.conflict=!0,{mine:t,theirs:r})}function Kn(e,t){return e.oldStart<t.oldStart&&e.oldStart+e.oldLines<t.oldStart}function Zn(e,t){return{oldStart:e.oldStart,oldLines:e.oldLines,newStart:e.newStart+t,newLines:e.newLines,lines:e.lines}}function Qn(e,t,r,n,i){var o={offset:t,lines:r,index:0},s={offset:n,lines:i,index:0};for(ri(e,o,s),ri(e,s,o);o.index<o.lines.length&&s.index<s.lines.length;){var a=o.lines[o.index],u=s.lines[s.index];if("-"!==a[0]&&"+"!==a[0]||"-"!==u[0]&&"+"!==u[0])if("+"===a[0]&&" "===u[0]){var l;(l=e.lines).push.apply(l,Gn(ii(o)))}else if("+"===u[0]&&" "===a[0]){var c;(c=e.lines).push.apply(c,Gn(ii(s)))}else"-"===a[0]&&" "===u[0]?ei(e,o,s):"-"===u[0]&&" "===a[0]?ei(e,s,o,!0):a===u?(e.lines.push(a),o.index++,s.index++):ti(e,ii(o),ii(s));else Xn(e,o,s)}ni(e,o),ni(e,s),Yn(e)}function Xn(e,t,r){var n=ii(t),i=ii(r);if(oi(n)&&oi(i)){var o,s;if((0,Hn.arrayStartsWith)(n,i)&&si(r,n,n.length-i.length))return void(o=e.lines).push.apply(o,Gn(n));if((0,Hn.arrayStartsWith)(i,n)&&si(t,i,i.length-n.length))return void(s=e.lines).push.apply(s,Gn(i))}else if((0,Hn.arrayEqual)(n,i)){var a;return void(a=e.lines).push.apply(a,Gn(n))}ti(e,n,i)}function ei(e,t,r,n){var i,o=ii(t),s=function(e,t){var r=[],n=[],i=0,o=!1,s=!1;for(;i<t.length&&e.index<e.lines.length;){var a=e.lines[e.index],u=t[i];if("+"===u[0])break;if(o=o||" "!==a[0],n.push(u),i++,"+"===a[0])for(s=!0;"+"===a[0];)r.push(a),a=e.lines[++e.index];u.substr(1)===a.substr(1)?(r.push(a),e.index++):s=!0}"+"===(t[i]||"")[0]&&o&&(s=!0);if(s)return r;for(;i<t.length;)n.push(t[i++]);return{merged:n,changes:r}}(r,o);s.merged?(i=e.lines).push.apply(i,Gn(s.merged)):ti(e,n?s:o,n?o:s)}function ti(e,t,r){e.conflict=!0,e.lines.push({conflict:!0,mine:t,theirs:r})}function ri(e,t,r){for(;t.offset<r.offset&&t.index<t.lines.length;){var n=t.lines[t.index++];e.lines.push(n),t.offset++}}function ni(e,t){for(;t.index<t.lines.length;){var r=t.lines[t.index++];e.lines.push(r)}}function ii(e){for(var t=[],r=e.lines[e.index][0];e.index<e.lines.length;){var n=e.lines[e.index];if("-"===r&&"+"===n[0]&&(r="+"),r!==n[0])break;t.push(n),e.index++}return t}function oi(e){return e.reduce((function(e,t){return e&&"-"===t[0]}),!0)}function si(e,t,r){for(var n=0;n<r;n++){var i=t[t.length-r+n].substr(1);if(e.lines[e.index+n]!==" "+i)return!1}return e.index+=r,!0}function ai(e){var t=0,r=0;return e.forEach((function(e){if("string"!=typeof e){var n=ai(e.mine),i=ai(e.theirs);void 0!==t&&(n.oldLines===i.oldLines?t+=n.oldLines:t=void 0),void 0!==r&&(n.newLines===i.newLines?r+=n.newLines:r=void 0)}else void 0===r||"+"!==e[0]&&" "!==e[0]||r++,void 0===t||"-"!==e[0]&&" "!==e[0]||t++})),{oldLines:t,newLines:r}}var ui={};function li(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 ci(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?li(Object(r),!0).forEach((function(t){fi(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):li(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function fi(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(ui,"__esModule",{value:!0}),ui.reversePatch=function e(t){if(Array.isArray(t))return t.map(e).reverse();return ci(ci({},t),{},{oldFileName:t.newFileName,oldHeader:t.newHeader,newFileName:t.oldFileName,newHeader:t.oldHeader,hunks:t.hunks.map((function(e){return{oldLines:e.newLines,oldStart:e.newStart,newLines:e.oldLines,newStart:e.oldStart,linedelimiters:e.linedelimiters,lines:e.lines.map((function(e){return e.startsWith("-")?"+".concat(e.slice(1)):e.startsWith("+")?"-".concat(e.slice(1)):e}))}}))})};var pi={};Object.defineProperty(pi,"__esModule",{value:!0}),pi.convertChangesToDMP=function(e){for(var t,r,n=[],i=0;i<e.length;i++)r=(t=e[i]).added?1:t.removed?-1:0,n.push([r,t.value]);return n};var hi={};function di(e){var t=e;return t=(t=(t=(t=t.replace(/&/g,"&")).replace(/</g,"<")).replace(/>/g,">")).replace(/"/g,""")}Object.defineProperty(hi,"__esModule",{value:!0}),hi.convertChangesToXML=function(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];n.added?t.push("<ins>"):n.removed&&t.push("<del>"),t.push(di(n.value)),n.added?t.push("</ins>"):n.removed&&t.push("</del>")}return t.join("")},function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Diff",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"diffChars",{enumerable:!0,get:function(){return r.diffChars}}),Object.defineProperty(e,"diffWords",{enumerable:!0,get:function(){return n.diffWords}}),Object.defineProperty(e,"diffWordsWithSpace",{enumerable:!0,get:function(){return n.diffWordsWithSpace}}),Object.defineProperty(e,"diffLines",{enumerable:!0,get:function(){return i.diffLines}}),Object.defineProperty(e,"diffTrimmedLines",{enumerable:!0,get:function(){return i.diffTrimmedLines}}),Object.defineProperty(e,"diffSentences",{enumerable:!0,get:function(){return o.diffSentences}}),Object.defineProperty(e,"diffCss",{enumerable:!0,get:function(){return s.diffCss}}),Object.defineProperty(e,"diffJson",{enumerable:!0,get:function(){return a.diffJson}}),Object.defineProperty(e,"canonicalize",{enumerable:!0,get:function(){return a.canonicalize}}),Object.defineProperty(e,"diffArrays",{enumerable:!0,get:function(){return u.diffArrays}}),Object.defineProperty(e,"applyPatch",{enumerable:!0,get:function(){return l.applyPatch}}),Object.defineProperty(e,"applyPatches",{enumerable:!0,get:function(){return l.applyPatches}}),Object.defineProperty(e,"parsePatch",{enumerable:!0,get:function(){return c.parsePatch}}),Object.defineProperty(e,"merge",{enumerable:!0,get:function(){return f.merge}}),Object.defineProperty(e,"reversePatch",{enumerable:!0,get:function(){return p.reversePatch}}),Object.defineProperty(e,"structuredPatch",{enumerable:!0,get:function(){return h.structuredPatch}}),Object.defineProperty(e,"createTwoFilesPatch",{enumerable:!0,get:function(){return h.createTwoFilesPatch}}),Object.defineProperty(e,"createPatch",{enumerable:!0,get:function(){return h.createPatch}}),Object.defineProperty(e,"formatPatch",{enumerable:!0,get:function(){return h.formatPatch}}),Object.defineProperty(e,"convertChangesToDMP",{enumerable:!0,get:function(){return d.convertChangesToDMP}}),Object.defineProperty(e,"convertChangesToXML",{enumerable:!0,get:function(){return g.convertChangesToXML}});var t=function(e){return e&&e.__esModule?e:{default:e}}($r),r=Jr,n=Zr,i=on,o=ln,s=pn,a=gn,u=_n,l=xn,c=Sn,f=kn,p=ui,h=Cn,d=pi,g=hi}(Yr);var gi=1e3,mi=6e4,bi=60*mi,yi=24*bi,vi=7*yi,wi=365.25*yi,Ei=function(e,t){t=t||{};var r=typeof e;if("string"===r&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t)return;var r=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return r*wi;case"weeks":case"week":case"w":return r*vi;case"days":case"day":case"d":return r*yi;case"hours":case"hour":case"hrs":case"hr":case"h":return r*bi;case"minutes":case"minute":case"mins":case"min":case"m":return r*mi;case"seconds":case"second":case"secs":case"sec":case"s":return r*gi;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}(e);if("number"===r&&isFinite(e))return t.long?function(e){var t=Math.abs(e);if(t>=yi)return _i(e,t,yi,"day");if(t>=bi)return _i(e,t,bi,"hour");if(t>=mi)return _i(e,t,mi,"minute");if(t>=gi)return _i(e,t,gi,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=yi)return Math.round(e/yi)+"d";if(t>=bi)return Math.round(e/bi)+"h";if(t>=mi)return Math.round(e/mi)+"m";if(t>=gi)return Math.round(e/gi)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function _i(e,t,r,n){var i=t>=1.5*r;return Math.round(e/r)+" "+n+(i?"s":"")}var Ti=[],Ai=[],xi="undefined"!=typeof Uint8Array?Uint8Array:Array,Si=!1;function Di(){Si=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0;t<64;++t)Ti[t]=e[t],Ai[e.charCodeAt(t)]=t;Ai["-".charCodeAt(0)]=62,Ai["_".charCodeAt(0)]=63}function Ni(e,t,r){for(var n,i,o=[],s=t;s<r;s+=3)n=(e[s]<<16)+(e[s+1]<<8)+e[s+2],o.push(Ti[(i=n)>>18&63]+Ti[i>>12&63]+Ti[i>>6&63]+Ti[63&i]);return o.join("")}function Ri(e){var t;Si||Di();for(var r=e.length,n=r%3,i="",o=[],s=16383,a=0,u=r-n;a<u;a+=s)o.push(Ni(e,a,a+s>u?u:a+s));return 1===n?(t=e[r-1],i+=Ti[t>>2],i+=Ti[t<<4&63],i+="=="):2===n&&(t=(e[r-2]<<8)+e[r-1],i+=Ti[t>>10],i+=Ti[t>>4&63],i+=Ti[t<<2&63],i+="="),o.push(i),o.join("")}function Li(e,t,r,n,i){var o,s,a=8*i-n-1,u=(1<<a)-1,l=u>>1,c=-7,f=r?i-1:0,p=r?-1:1,h=e[t+f];for(f+=p,o=h&(1<<-c)-1,h>>=-c,c+=a;c>0;o=256*o+e[t+f],f+=p,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=n;c>0;s=256*s+e[t+f],f+=p,c-=8);if(0===o)o=1-l;else{if(o===u)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,n),o-=l}return(h?-1:1)*s*Math.pow(2,o-n)}function ki(e,t,r,n,i,o){var s,a,u,l=8*o-i-1,c=(1<<l)-1,f=c>>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:o-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,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),(t+=s+f>=1?p/u:p*Math.pow(2,1-f))*u>=2&&(s++,u/=2),s+f>=c?(a=0,s=c):s+f>=1?(a=(t*u-1)*Math.pow(2,i),s+=f):(a=t*Math.pow(2,f-1)*Math.pow(2,i),s=0));i>=8;e[r+h]=255&a,h+=d,a/=256,i-=8);for(s=s<<i|a,l+=i;l>0;e[r+h]=255&s,h+=d,s/=256,l-=8);e[r+h-d]|=128*g}var Ci={}.toString,Oi=Array.isArray||function(e){return"[object Array]"==Ci.call(e)};function qi(){return Ii.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Pi(e,t){if(qi()<t)throw new RangeError("Invalid typed array length");return Ii.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=Ii.prototype:(null===e&&(e=new Ii(t)),e.length=t),e}function Ii(e,t,r){if(!(Ii.TYPED_ARRAY_SUPPORT||this instanceof Ii))return new Ii(e,t,r);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return Bi(this,e)}return Ui(this,e,t,r)}function Ui(e,t,r,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n);Ii.TYPED_ARRAY_SUPPORT?(e=t).__proto__=Ii.prototype:e=Vi(e,t);return e}(e,t,r,n):"string"==typeof t?function(e,t,r){"string"==typeof r&&""!==r||(r="utf8");if(!Ii.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|Hi(t,r);e=Pi(e,n);var i=e.write(t,r);i!==n&&(e=e.slice(0,i));return e}(e,t,r):function(e,t){if(Mi(t)){var r=0|ji(t.length);return 0===(e=Pi(e,r)).length||t.copy(e,0,0,r),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(n=t.length)!=n?Pi(e,0):Vi(e,t);if("Buffer"===t.type&&Oi(t.data))return Vi(e,t.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function Fi(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function Bi(e,t){if(Fi(t),e=Pi(e,t<0?0:0|ji(t)),!Ii.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function Vi(e,t){var r=t.length<0?0:0|ji(t.length);e=Pi(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function ji(e){if(e>=qi())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+qi().toString(16)+" bytes");return 0|e}function Mi(e){return!(null==e||!e._isBuffer)}function Hi(e,t){if(Mi(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return bo(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return yo(e).length;default:if(n)return bo(e).length;t=(""+t).toLowerCase(),n=!0}}function Gi(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 oo(this,t,r);case"utf8":case"utf-8":return to(this,t,r);case"ascii":return no(this,t,r);case"latin1":case"binary":return io(this,t,r);case"base64":return eo(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return so(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function zi(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function Yi(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=Ii.from(t,n)),Mi(t))return 0===t.length?-1:$i(e,t,r,n,i);if("number"==typeof t)return t&=255,Ii.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):$i(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function $i(e,t,r,n,i){var o,s=1,a=e.length,u=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;s=2,a/=2,u/=2,r/=2}function l(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var c=-1;for(o=r;o<a;o++)if(l(e,o)===l(t,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===u)return c*s}else-1!==c&&(o-=o-c),c=-1}else for(r+u>a&&(r=a-u),o=r;o>=0;o--){for(var f=!0,p=0;p<u;p++)if(l(e,o+p)!==l(t,p)){f=!1;break}if(f)return o}return-1}function Wi(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var s=0;s<n;++s){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))return s;e[r+s]=a}return s}function Ji(e,t,r,n){return vo(bo(t,e.length-r),e,r,n)}function Ki(e,t,r,n){return vo(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function Zi(e,t,r,n){return Ki(e,t,r,n)}function Qi(e,t,r,n){return vo(yo(t),e,r,n)}function Xi(e,t,r,n){return vo(function(e,t){for(var r,n,i,o=[],s=0;s<e.length&&!((t-=2)<0);++s)n=(r=e.charCodeAt(s))>>8,i=r%256,o.push(i),o.push(n);return o}(t,e.length-r),e,r,n)}function eo(e,t,r){return 0===t&&r===e.length?Ri(e):Ri(e.slice(t,r))}function to(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var o,s,a,u,l=e[i],c=null,f=l>239?4:l>223?3:l>191?2:1;if(i+f<=r)switch(f){case 1:l<128&&(c=l);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&l)<<6|63&o)>127&&(c=u);break;case 3:o=e[i+1],s=e[i+2],128==(192&o)&&128==(192&s)&&(u=(15&l)<<12|(63&o)<<6|63&s)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:o=e[i+1],s=e[i+2],a=e[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(u=(15&l)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(c=u)}null===c?(c=65533,f=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=f}return function(e){var t=e.length;if(t<=ro)return String.fromCharCode.apply(String,e);var r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=ro));return r}(n)}Ii.TYPED_ARRAY_SUPPORT=void 0===t.TYPED_ARRAY_SUPPORT||t.TYPED_ARRAY_SUPPORT,qi(),Ii.poolSize=8192,Ii._augment=function(e){return e.__proto__=Ii.prototype,e},Ii.from=function(e,t,r){return Ui(null,e,t,r)},Ii.TYPED_ARRAY_SUPPORT&&(Ii.prototype.__proto__=Uint8Array.prototype,Ii.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&Ii[Symbol.species]),Ii.alloc=function(e,t,r){return function(e,t,r,n){return Fi(t),t<=0?Pi(e,t):void 0!==r?"string"==typeof n?Pi(e,t).fill(r,n):Pi(e,t).fill(r):Pi(e,t)}(null,e,t,r)},Ii.allocUnsafe=function(e){return Bi(null,e)},Ii.allocUnsafeSlow=function(e){return Bi(null,e)},Ii.isBuffer=wo,Ii.compare=function(e,t){if(!Mi(e)||!Mi(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},Ii.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}},Ii.concat=function(e,t){if(!Oi(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return Ii.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=Ii.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var o=e[r];if(!Mi(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,i),i+=o.length}return n},Ii.byteLength=Hi,Ii.prototype._isBuffer=!0,Ii.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)zi(this,t,t+1);return this},Ii.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)zi(this,t,t+3),zi(this,t+1,t+2);return this},Ii.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)zi(this,t,t+7),zi(this,t+1,t+6),zi(this,t+2,t+5),zi(this,t+3,t+4);return this},Ii.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?to(this,0,e):Gi.apply(this,arguments)},Ii.prototype.equals=function(e){if(!Mi(e))throw new TypeError("Argument must be a Buffer");return this===e||0===Ii.compare(this,e)},Ii.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),"<Buffer "+e+">"},Ii.prototype.compare=function(e,t,r,n,i){if(!Mi(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(n>>>=0),s=(r>>>=0)-(t>>>=0),a=Math.min(o,s),u=this.slice(n,i),l=e.slice(t,r),c=0;c<a;++c)if(u[c]!==l[c]){o=u[c],s=l[c];break}return o<s?-1:s<o?1:0},Ii.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},Ii.prototype.indexOf=function(e,t,r){return Yi(this,e,t,r,!0)},Ii.prototype.lastIndexOf=function(e,t,r){return Yi(this,e,t,r,!1)},Ii.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 i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return Wi(this,e,t,r);case"utf8":case"utf-8":return Ji(this,e,t,r);case"ascii":return Ki(this,e,t,r);case"latin1":case"binary":return Zi(this,e,t,r);case"base64":return Qi(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Xi(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},Ii.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var ro=4096;function no(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function io(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function oo(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=t;o<r;++o)i+=mo(e[o]);return i}function so(e,t,r){for(var n=e.slice(t,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function ao(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 uo(e,t,r,n,i,o){if(!Mi(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function lo(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-r,2);i<o;++i)e[r+i]=(t&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function co(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-r,4);i<o;++i)e[r+i]=t>>>8*(n?i:3-i)&255}function fo(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function po(e,t,r,n,i){return i||fo(e,0,r,4),ki(e,t,r,n,23,4),r+4}function ho(e,t,r,n,i){return i||fo(e,0,r,8),ki(e,t,r,n,52,8),r+8}Ii.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),Ii.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=Ii.prototype;else{var i=t-e;r=new Ii(i,void 0);for(var o=0;o<i;++o)r[o]=this[o+e]}return r},Ii.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||ao(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n},Ii.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||ao(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},Ii.prototype.readUInt8=function(e,t){return t||ao(e,1,this.length),this[e]},Ii.prototype.readUInt16LE=function(e,t){return t||ao(e,2,this.length),this[e]|this[e+1]<<8},Ii.prototype.readUInt16BE=function(e,t){return t||ao(e,2,this.length),this[e]<<8|this[e+1]},Ii.prototype.readUInt32LE=function(e,t){return t||ao(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Ii.prototype.readUInt32BE=function(e,t){return t||ao(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Ii.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||ao(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},Ii.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||ao(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},Ii.prototype.readInt8=function(e,t){return t||ao(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},Ii.prototype.readInt16LE=function(e,t){t||ao(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},Ii.prototype.readInt16BE=function(e,t){t||ao(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},Ii.prototype.readInt32LE=function(e,t){return t||ao(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Ii.prototype.readInt32BE=function(e,t){return t||ao(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Ii.prototype.readFloatLE=function(e,t){return t||ao(e,4,this.length),Li(this,e,!0,23,4)},Ii.prototype.readFloatBE=function(e,t){return t||ao(e,4,this.length),Li(this,e,!1,23,4)},Ii.prototype.readDoubleLE=function(e,t){return t||ao(e,8,this.length),Li(this,e,!0,52,8)},Ii.prototype.readDoubleBE=function(e,t){return t||ao(e,8,this.length),Li(this,e,!1,52,8)},Ii.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||uo(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[t]=255&e;++o<r&&(i*=256);)this[t+o]=e/i&255;return t+r},Ii.prototype.writeUIntBE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||uo(this,e,t,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},Ii.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||uo(this,e,t,1,255,0),Ii.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},Ii.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||uo(this,e,t,2,65535,0),Ii.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):lo(this,e,t,!0),t+2},Ii.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||uo(this,e,t,2,65535,0),Ii.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):lo(this,e,t,!1),t+2},Ii.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||uo(this,e,t,4,4294967295,0),Ii.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):co(this,e,t,!0),t+4},Ii.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||uo(this,e,t,4,4294967295,0),Ii.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):co(this,e,t,!1),t+4},Ii.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);uo(this,e,t,r,i-1,-i)}var o=0,s=1,a=0;for(this[t]=255&e;++o<r&&(s*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+r},Ii.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);uo(this,e,t,r,i-1,-i)}var o=r-1,s=1,a=0;for(this[t+o]=255&e;--o>=0&&(s*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+r},Ii.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||uo(this,e,t,1,127,-128),Ii.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},Ii.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||uo(this,e,t,2,32767,-32768),Ii.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):lo(this,e,t,!0),t+2},Ii.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||uo(this,e,t,2,32767,-32768),Ii.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):lo(this,e,t,!1),t+2},Ii.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||uo(this,e,t,4,2147483647,-2147483648),Ii.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):co(this,e,t,!0),t+4},Ii.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||uo(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),Ii.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):co(this,e,t,!1),t+4},Ii.prototype.writeFloatLE=function(e,t,r){return po(this,e,t,!0,r)},Ii.prototype.writeFloatBE=function(e,t,r){return po(this,e,t,!1,r)},Ii.prototype.writeDoubleLE=function(e,t,r){return ho(this,e,t,!0,r)},Ii.prototype.writeDoubleBE=function(e,t,r){return ho(this,e,t,!1,r)},Ii.prototype.copy=function(e,t,r,n){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("sourceStart out of bounds");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 i,o=n-r;if(this===e&&r<t&&t<n)for(i=o-1;i>=0;--i)e[i+t]=this[i+r];else if(o<1e3||!Ii.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+o),t);return o},Ii.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),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!Ii.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}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 o;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o<r;++o)this[o]=e;else{var s=Mi(e)?e:bo(new Ii(e,n).toString()),a=s.length;for(o=0;o<r-t;++o)this[o+t]=s[o%a]}return this};var go=/[^+\/0-9A-Za-z-_]/g;function mo(e){return e<16?"0"+e.toString(16):e.toString(16)}function bo(e,t){var r;t=t||1/0;for(var n=e.length,i=null,o=[],s=0;s<n;++s){if((r=e.charCodeAt(s))>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.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;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function yo(e){return function(e){var t,r,n,i,o,s;Si||Di();var a=e.length;if(a%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===e[a-2]?2:"="===e[a-1]?1:0,s=new xi(3*a/4-o),n=o>0?a-4:a;var u=0;for(t=0,r=0;t<n;t+=4,r+=3)i=Ai[e.charCodeAt(t)]<<18|Ai[e.charCodeAt(t+1)]<<12|Ai[e.charCodeAt(t+2)]<<6|Ai[e.charCodeAt(t+3)],s[u++]=i>>16&255,s[u++]=i>>8&255,s[u++]=255&i;return 2===o?(i=Ai[e.charCodeAt(t)]<<2|Ai[e.charCodeAt(t+1)]>>4,s[u++]=255&i):1===o&&(i=Ai[e.charCodeAt(t)]<<10|Ai[e.charCodeAt(t+1)]<<4|Ai[e.charCodeAt(t+2)]>>2,s[u++]=i>>8&255,s[u++]=255&i),s}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(go,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function vo(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function wo(e){return null!=e&&(!!e._isBuffer||Eo(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&Eo(e.slice(0,0))}(e))}function Eo(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var _o={},To={exports:{}};!function(e,t){!function(r){var n=t,i=e&&e.exports==n&&e,o="object"==typeof D&&D;o.global!==o&&o.window!==o||(r=o);var s=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,a=/[\x01-\x7F]/g,u=/[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,l=/<\u20D2|=\u20E5|>\u20D2|\u205F\u200A|\u219D\u0338|\u2202\u0338|\u2220\u20D2|\u2229\uFE00|\u222A\uFE00|\u223C\u20D2|\u223D\u0331|\u223E\u0333|\u2242\u0338|\u224B\u0338|\u224D\u20D2|\u224E\u0338|\u224F\u0338|\u2250\u0338|\u2261\u20E5|\u2264\u20D2|\u2265\u20D2|\u2266\u0338|\u2267\u0338|\u2268\uFE00|\u2269\uFE00|\u226A\u0338|\u226A\u20D2|\u226B\u0338|\u226B\u20D2|\u227F\u0338|\u2282\u20D2|\u2283\u20D2|\u228A\uFE00|\u228B\uFE00|\u228F\u0338|\u2290\u0338|\u2293\uFE00|\u2294\uFE00|\u22B4\u20D2|\u22B5\u20D2|\u22D8\u0338|\u22D9\u0338|\u22DA\uFE00|\u22DB\uFE00|\u22F5\u0338|\u22F9\u0338|\u2933\u0338|\u29CF\u0338|\u29D0\u0338|\u2A6D\u0338|\u2A70\u0338|\u2A7D\u0338|\u2A7E\u0338|\u2AA1\u0338|\u2AA2\u0338|\u2AAC\uFE00|\u2AAD\uFE00|\u2AAF\u0338|\u2AB0\u0338|\u2AC5\u0338|\u2AC6\u0338|\u2ACB\uFE00|\u2ACC\uFE00|\u2AFD\u20E5|[\xA0-\u0113\u0116-\u0122\u0124-\u012B\u012E-\u014D\u0150-\u017E\u0192\u01B5\u01F5\u0237\u02C6\u02C7\u02D8-\u02DD\u0311\u0391-\u03A1\u03A3-\u03A9\u03B1-\u03C9\u03D1\u03D2\u03D5\u03D6\u03DC\u03DD\u03F0\u03F1\u03F5\u03F6\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E\u045F\u2002-\u2005\u2007-\u2010\u2013-\u2016\u2018-\u201A\u201C-\u201E\u2020-\u2022\u2025\u2026\u2030-\u2035\u2039\u203A\u203E\u2041\u2043\u2044\u204F\u2057\u205F-\u2063\u20AC\u20DB\u20DC\u2102\u2105\u210A-\u2113\u2115-\u211E\u2122\u2124\u2127-\u2129\u212C\u212D\u212F-\u2131\u2133-\u2138\u2145-\u2148\u2153-\u215E\u2190-\u219B\u219D-\u21A7\u21A9-\u21AE\u21B0-\u21B3\u21B5-\u21B7\u21BA-\u21DB\u21DD\u21E4\u21E5\u21F5\u21FD-\u2205\u2207-\u2209\u220B\u220C\u220F-\u2214\u2216-\u2218\u221A\u221D-\u2238\u223A-\u2257\u2259\u225A\u225C\u225F-\u2262\u2264-\u228B\u228D-\u229B\u229D-\u22A5\u22A7-\u22B0\u22B2-\u22BB\u22BD-\u22DB\u22DE-\u22E3\u22E6-\u22F7\u22F9-\u22FE\u2305\u2306\u2308-\u2310\u2312\u2313\u2315\u2316\u231C-\u231F\u2322\u2323\u232D\u232E\u2336\u233D\u233F\u237C\u23B0\u23B1\u23B4-\u23B6\u23DC-\u23DF\u23E2\u23E7\u2423\u24C8\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2550-\u256C\u2580\u2584\u2588\u2591-\u2593\u25A1\u25AA\u25AB\u25AD\u25AE\u25B1\u25B3-\u25B5\u25B8\u25B9\u25BD-\u25BF\u25C2\u25C3\u25CA\u25CB\u25EC\u25EF\u25F8-\u25FC\u2605\u2606\u260E\u2640\u2642\u2660\u2663\u2665\u2666\u266A\u266D-\u266F\u2713\u2717\u2720\u2736\u2758\u2772\u2773\u27C8\u27C9\u27E6-\u27ED\u27F5-\u27FA\u27FC\u27FF\u2902-\u2905\u290C-\u2913\u2916\u2919-\u2920\u2923-\u292A\u2933\u2935-\u2939\u293C\u293D\u2945\u2948-\u294B\u294E-\u2976\u2978\u2979\u297B-\u297F\u2985\u2986\u298B-\u2996\u299A\u299C\u299D\u29A4-\u29B7\u29B9\u29BB\u29BC\u29BE-\u29C5\u29C9\u29CD-\u29D0\u29DC-\u29DE\u29E3-\u29E5\u29EB\u29F4\u29F6\u2A00-\u2A02\u2A04\u2A06\u2A0C\u2A0D\u2A10-\u2A17\u2A22-\u2A27\u2A29\u2A2A\u2A2D-\u2A31\u2A33-\u2A3C\u2A3F\u2A40\u2A42-\u2A4D\u2A50\u2A53-\u2A58\u2A5A-\u2A5D\u2A5F\u2A66\u2A6A\u2A6D-\u2A75\u2A77-\u2A9A\u2A9D-\u2AA2\u2AA4-\u2AB0\u2AB3-\u2AC8\u2ACB\u2ACC\u2ACF-\u2ADB\u2AE4\u2AE6-\u2AE9\u2AEB-\u2AF3\u2AFD\uFB00-\uFB04]|\uD835[\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDCCF\uDD04\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDD6B]/g,c={"":"shy","":"zwnj","":"zwj","":"lrm","":"ic","":"it","":"af","":"rlm","":"ZeroWidthSpace","":"NoBreak","̑":"DownBreve","⃛":"tdot","⃜":"DotDot","\t":"Tab","\n":"NewLine"," ":"puncsp"," ":"MediumSpace"," ":"thinsp"," ":"hairsp"," ":"emsp13"," ":"ensp"," ":"emsp14"," ":"emsp"," ":"numsp"," ":"nbsp"," ":"ThickSpace","‾":"oline",_:"lowbar","‐":"dash","–":"ndash","—":"mdash","―":"horbar",",":"comma",";":"semi","⁏":"bsemi",":":"colon","⩴":"Colone","!":"excl","¡":"iexcl","?":"quest","¿":"iquest",".":"period","‥":"nldr","…":"mldr","·":"middot","'":"apos","‘":"lsquo","’":"rsquo","‚":"sbquo","‹":"lsaquo","›":"rsaquo",'"':"quot","“":"ldquo","”":"rdquo","„":"bdquo","«":"laquo","»":"raquo","(":"lpar",")":"rpar","[":"lsqb","]":"rsqb","{":"lcub","}":"rcub","⌈":"lceil","⌉":"rceil","⌊":"lfloor","⌋":"rfloor","⦅":"lopar","⦆":"ropar","⦋":"lbrke","⦌":"rbrke","⦍":"lbrkslu","⦎":"rbrksld","⦏":"lbrksld","⦐":"rbrkslu","⦑":"langd","⦒":"rangd","⦓":"lparlt","⦔":"rpargt","⦕":"gtlPar","⦖":"ltrPar","⟦":"lobrk","⟧":"robrk","⟨":"lang","⟩":"rang","⟪":"Lang","⟫":"Rang","⟬":"loang","⟭":"roang","❲":"lbbrk","❳":"rbbrk","‖":"Vert","§":"sect","¶":"para","@":"commat","*":"ast","/":"sol",undefined:null,"&":"amp","#":"num","%":"percnt","‰":"permil","‱":"pertenk","†":"dagger","‡":"Dagger","•":"bull","⁃":"hybull","′":"prime","″":"Prime","‴":"tprime","⁗":"qprime","‵":"bprime","⁁":"caret","`":"grave","´":"acute","˜":"tilde","^":"Hat","¯":"macr","˘":"breve","˙":"dot","¨":"die","˚":"ring","˝":"dblac","¸":"cedil","˛":"ogon","ˆ":"circ","ˇ":"caron","°":"deg","©":"copy","®":"reg","℗":"copysr","℘":"wp","℞":"rx","℧":"mho","℩":"iiota","←":"larr","↚":"nlarr","→":"rarr","↛":"nrarr","↑":"uarr","↓":"darr","↔":"harr","↮":"nharr","↕":"varr","↖":"nwarr","↗":"nearr","↘":"searr","↙":"swarr","↝":"rarrw","↝̸":"nrarrw","↞":"Larr","↟":"Uarr","↠":"Rarr","↡":"Darr","↢":"larrtl","↣":"rarrtl","↤":"mapstoleft","↥":"mapstoup","↦":"map","↧":"mapstodown","↩":"larrhk","↪":"rarrhk","↫":"larrlp","↬":"rarrlp","↭":"harrw","↰":"lsh","↱":"rsh","↲":"ldsh","↳":"rdsh","↵":"crarr","↶":"cularr","↷":"curarr","↺":"olarr","↻":"orarr","↼":"lharu","↽":"lhard","↾":"uharr","↿":"uharl","⇀":"rharu","⇁":"rhard","⇂":"dharr","⇃":"dharl","⇄":"rlarr","⇅":"udarr","⇆":"lrarr","⇇":"llarr","⇈":"uuarr","⇉":"rrarr","⇊":"ddarr","⇋":"lrhar","⇌":"rlhar","⇐":"lArr","⇍":"nlArr","⇑":"uArr","⇒":"rArr","⇏":"nrArr","⇓":"dArr","⇔":"iff","⇎":"nhArr","⇕":"vArr","⇖":"nwArr","⇗":"neArr","⇘":"seArr","⇙":"swArr","⇚":"lAarr","⇛":"rAarr","⇝":"zigrarr","⇤":"larrb","⇥":"rarrb","⇵":"duarr","⇽":"loarr","⇾":"roarr","⇿":"hoarr","∀":"forall","∁":"comp","∂":"part","∂̸":"npart","∃":"exist","∄":"nexist","∅":"empty","∇":"Del","∈":"in","∉":"notin","∋":"ni","∌":"notni","϶":"bepsi","∏":"prod","∐":"coprod","∑":"sum","+":"plus","±":"pm","÷":"div","×":"times","<":"lt","≮":"nlt","<⃒":"nvlt","=":"equals","≠":"ne","=⃥":"bne","⩵":"Equal",">":"gt","≯":"ngt",">⃒":"nvgt","¬":"not","|":"vert","¦":"brvbar","−":"minus","∓":"mp","∔":"plusdo","⁄":"frasl","∖":"setmn","∗":"lowast","∘":"compfn","√":"Sqrt","∝":"prop","∞":"infin","∟":"angrt","∠":"ang","∠⃒":"nang","∡":"angmsd","∢":"angsph","∣":"mid","∤":"nmid","∥":"par","∦":"npar","∧":"and","∨":"or","∩":"cap","∩︀":"caps","∪":"cup","∪︀":"cups","∫":"int","∬":"Int","∭":"tint","⨌":"qint","∮":"oint","∯":"Conint","∰":"Cconint","∱":"cwint","∲":"cwconint","∳":"awconint","∴":"there4","∵":"becaus","∶":"ratio","∷":"Colon","∸":"minusd","∺":"mDDot","∻":"homtht","∼":"sim","≁":"nsim","∼⃒":"nvsim","∽":"bsim","∽̱":"race","∾":"ac","∾̳":"acE","∿":"acd","≀":"wr","≂":"esim","≂̸":"nesim","≃":"sime","≄":"nsime","≅":"cong","≇":"ncong","≆":"simne","≈":"ap","≉":"nap","≊":"ape","≋":"apid","≋̸":"napid","≌":"bcong","≍":"CupCap","≭":"NotCupCap","≍⃒":"nvap","≎":"bump","≎̸":"nbump","≏":"bumpe","≏̸":"nbumpe","≐":"doteq","≐̸":"nedot","≑":"eDot","≒":"efDot","≓":"erDot","≔":"colone","≕":"ecolon","≖":"ecir","≗":"cire","≙":"wedgeq","≚":"veeeq","≜":"trie","≟":"equest","≡":"equiv","≢":"nequiv","≡⃥":"bnequiv","≤":"le","≰":"nle","≤⃒":"nvle","≥":"ge","≱":"nge","≥⃒":"nvge","≦":"lE","≦̸":"nlE","≧":"gE","≧̸":"ngE","≨︀":"lvnE","≨":"lnE","≩":"gnE","≩︀":"gvnE","≪":"ll","≪̸":"nLtv","≪⃒":"nLt","≫":"gg","≫̸":"nGtv","≫⃒":"nGt","≬":"twixt","≲":"lsim","≴":"nlsim","≳":"gsim","≵":"ngsim","≶":"lg","≸":"ntlg","≷":"gl","≹":"ntgl","≺":"pr","⊀":"npr","≻":"sc","⊁":"nsc","≼":"prcue","⋠":"nprcue","≽":"sccue","⋡":"nsccue","≾":"prsim","≿":"scsim","≿̸":"NotSucceedsTilde","⊂":"sub","⊄":"nsub","⊂⃒":"vnsub","⊃":"sup","⊅":"nsup","⊃⃒":"vnsup","⊆":"sube","⊈":"nsube","⊇":"supe","⊉":"nsupe","⊊︀":"vsubne","⊊":"subne","⊋︀":"vsupne","⊋":"supne","⊍":"cupdot","⊎":"uplus","⊏":"sqsub","⊏̸":"NotSquareSubset","⊐":"sqsup","⊐̸":"NotSquareSuperset","⊑":"sqsube","⋢":"nsqsube","⊒":"sqsupe","⋣":"nsqsupe","⊓":"sqcap","⊓︀":"sqcaps","⊔":"sqcup","⊔︀":"sqcups","⊕":"oplus","⊖":"ominus","⊗":"otimes","⊘":"osol","⊙":"odot","⊚":"ocir","⊛":"oast","⊝":"odash","⊞":"plusb","⊟":"minusb","⊠":"timesb","⊡":"sdotb","⊢":"vdash","⊬":"nvdash","⊣":"dashv","⊤":"top","⊥":"bot","⊧":"models","⊨":"vDash","⊭":"nvDash","⊩":"Vdash","⊮":"nVdash","⊪":"Vvdash","⊫":"VDash","⊯":"nVDash","⊰":"prurel","⊲":"vltri","⋪":"nltri","⊳":"vrtri","⋫":"nrtri","⊴":"ltrie","⋬":"nltrie","⊴⃒":"nvltrie","⊵":"rtrie","⋭":"nrtrie","⊵⃒":"nvrtrie","⊶":"origof","⊷":"imof","⊸":"mumap","⊹":"hercon","⊺":"intcal","⊻":"veebar","⊽":"barvee","⊾":"angrtvb","⊿":"lrtri","⋀":"Wedge","⋁":"Vee","⋂":"xcap","⋃":"xcup","⋄":"diam","⋅":"sdot","⋆":"Star","⋇":"divonx","⋈":"bowtie","⋉":"ltimes","⋊":"rtimes","⋋":"lthree","⋌":"rthree","⋍":"bsime","⋎":"cuvee","⋏":"cuwed","⋐":"Sub","⋑":"Sup","⋒":"Cap","⋓":"Cup","⋔":"fork","⋕":"epar","⋖":"ltdot","⋗":"gtdot","⋘":"Ll","⋘̸":"nLl","⋙":"Gg","⋙̸":"nGg","⋚︀":"lesg","⋚":"leg","⋛":"gel","⋛︀":"gesl","⋞":"cuepr","⋟":"cuesc","⋦":"lnsim","⋧":"gnsim","⋨":"prnsim","⋩":"scnsim","⋮":"vellip","⋯":"ctdot","⋰":"utdot","⋱":"dtdot","⋲":"disin","⋳":"isinsv","⋴":"isins","⋵":"isindot","⋵̸":"notindot","⋶":"notinvc","⋷":"notinvb","⋹":"isinE","⋹̸":"notinE","⋺":"nisd","⋻":"xnis","⋼":"nis","⋽":"notnivc","⋾":"notnivb","⌅":"barwed","⌆":"Barwed","⌌":"drcrop","⌍":"dlcrop","⌎":"urcrop","⌏":"ulcrop","⌐":"bnot","⌒":"profline","⌓":"profsurf","⌕":"telrec","⌖":"target","⌜":"ulcorn","⌝":"urcorn","⌞":"dlcorn","⌟":"drcorn","⌢":"frown","⌣":"smile","⌭":"cylcty","⌮":"profalar","⌶":"topbot","⌽":"ovbar","⌿":"solbar","⍼":"angzarr","⎰":"lmoust","⎱":"rmoust","⎴":"tbrk","⎵":"bbrk","⎶":"bbrktbrk","⏜":"OverParenthesis","⏝":"UnderParenthesis","⏞":"OverBrace","⏟":"UnderBrace","⏢":"trpezium","⏧":"elinters","␣":"blank","─":"boxh","│":"boxv","┌":"boxdr","┐":"boxdl","└":"boxur","┘":"boxul","├":"boxvr","┤":"boxvl","┬":"boxhd","┴":"boxhu","┼":"boxvh","═":"boxH","║":"boxV","╒":"boxdR","╓":"boxDr","╔":"boxDR","╕":"boxdL","╖":"boxDl","╗":"boxDL","╘":"boxuR","╙":"boxUr","╚":"boxUR","╛":"boxuL","╜":"boxUl","╝":"boxUL","╞":"boxvR","╟":"boxVr","╠":"boxVR","╡":"boxvL","╢":"boxVl","╣":"boxVL","╤":"boxHd","╥":"boxhD","╦":"boxHD","╧":"boxHu","╨":"boxhU","╩":"boxHU","╪":"boxvH","╫":"boxVh","╬":"boxVH","▀":"uhblk","▄":"lhblk","█":"block","░":"blk14","▒":"blk12","▓":"blk34","□":"squ","▪":"squf","▫":"EmptyVerySmallSquare","▭":"rect","▮":"marker","▱":"fltns","△":"xutri","▴":"utrif","▵":"utri","▸":"rtrif","▹":"rtri","▽":"xdtri","▾":"dtrif","▿":"dtri","◂":"ltrif","◃":"ltri","◊":"loz","○":"cir","◬":"tridot","◯":"xcirc","◸":"ultri","◹":"urtri","◺":"lltri","◻":"EmptySmallSquare","◼":"FilledSmallSquare","★":"starf","☆":"star","☎":"phone","♀":"female","♂":"male","♠":"spades","♣":"clubs","♥":"hearts","♦":"diams","♪":"sung","✓":"check","✗":"cross","✠":"malt","✶":"sext","❘":"VerticalSeparator","⟈":"bsolhsub","⟉":"suphsol","⟵":"xlarr","⟶":"xrarr","⟷":"xharr","⟸":"xlArr","⟹":"xrArr","⟺":"xhArr","⟼":"xmap","⟿":"dzigrarr","⤂":"nvlArr","⤃":"nvrArr","⤄":"nvHarr","⤅":"Map","⤌":"lbarr","⤍":"rbarr","⤎":"lBarr","⤏":"rBarr","⤐":"RBarr","⤑":"DDotrahd","⤒":"UpArrowBar","⤓":"DownArrowBar","⤖":"Rarrtl","⤙":"latail","⤚":"ratail","⤛":"lAtail","⤜":"rAtail","⤝":"larrfs","⤞":"rarrfs","⤟":"larrbfs","⤠":"rarrbfs","⤣":"nwarhk","⤤":"nearhk","⤥":"searhk","⤦":"swarhk","⤧":"nwnear","⤨":"toea","⤩":"tosa","⤪":"swnwar","⤳":"rarrc","⤳̸":"nrarrc","⤵":"cudarrr","⤶":"ldca","⤷":"rdca","⤸":"cudarrl","⤹":"larrpl","⤼":"curarrm","⤽":"cularrp","⥅":"rarrpl","⥈":"harrcir","⥉":"Uarrocir","⥊":"lurdshar","⥋":"ldrushar","⥎":"LeftRightVector","⥏":"RightUpDownVector","⥐":"DownLeftRightVector","⥑":"LeftUpDownVector","⥒":"LeftVectorBar","⥓":"RightVectorBar","⥔":"RightUpVectorBar","⥕":"RightDownVectorBar","⥖":"DownLeftVectorBar","⥗":"DownRightVectorBar","⥘":"LeftUpVectorBar","⥙":"LeftDownVectorBar","⥚":"LeftTeeVector","⥛":"RightTeeVector","⥜":"RightUpTeeVector","⥝":"RightDownTeeVector","⥞":"DownLeftTeeVector","⥟":"DownRightTeeVector","⥠":"LeftUpTeeVector","⥡":"LeftDownTeeVector","⥢":"lHar","⥣":"uHar","⥤":"rHar","⥥":"dHar","⥦":"luruhar","⥧":"ldrdhar","⥨":"ruluhar","⥩":"rdldhar","⥪":"lharul","⥫":"llhard","⥬":"rharul","⥭":"lrhard","⥮":"udhar","⥯":"duhar","⥰":"RoundImplies","⥱":"erarr","⥲":"simrarr","⥳":"larrsim","⥴":"rarrsim","⥵":"rarrap","⥶":"ltlarr","⥸":"gtrarr","⥹":"subrarr","⥻":"suplarr","⥼":"lfisht","⥽":"rfisht","⥾":"ufisht","⥿":"dfisht","⦚":"vzigzag","⦜":"vangrt","⦝":"angrtvbd","⦤":"ange","⦥":"range","⦦":"dwangle","⦧":"uwangle","⦨":"angmsdaa","⦩":"angmsdab","⦪":"angmsdac","⦫":"angmsdad","⦬":"angmsdae","⦭":"angmsdaf","⦮":"angmsdag","⦯":"angmsdah","⦰":"bemptyv","⦱":"demptyv","⦲":"cemptyv","⦳":"raemptyv","⦴":"laemptyv","⦵":"ohbar","⦶":"omid","⦷":"opar","⦹":"operp","⦻":"olcross","⦼":"odsold","⦾":"olcir","⦿":"ofcir","⧀":"olt","⧁":"ogt","⧂":"cirscir","⧃":"cirE","⧄":"solb","⧅":"bsolb","⧉":"boxbox","⧍":"trisb","⧎":"rtriltri","⧏":"LeftTriangleBar","⧏̸":"NotLeftTriangleBar","⧐":"RightTriangleBar","⧐̸":"NotRightTriangleBar","⧜":"iinfin","⧝":"infintie","⧞":"nvinfin","⧣":"eparsl","⧤":"smeparsl","⧥":"eqvparsl","⧫":"lozf","⧴":"RuleDelayed","⧶":"dsol","⨀":"xodot","⨁":"xoplus","⨂":"xotime","⨄":"xuplus","⨆":"xsqcup","⨍":"fpartint","⨐":"cirfnint","⨑":"awint","⨒":"rppolint","⨓":"scpolint","⨔":"npolint","⨕":"pointint","⨖":"quatint","⨗":"intlarhk","⨢":"pluscir","⨣":"plusacir","⨤":"simplus","⨥":"plusdu","⨦":"plussim","⨧":"plustwo","⨩":"mcomma","⨪":"minusdu","⨭":"loplus","⨮":"roplus","⨯":"Cross","⨰":"timesd","⨱":"timesbar","⨳":"smashp","⨴":"lotimes","⨵":"rotimes","⨶":"otimesas","⨷":"Otimes","⨸":"odiv","⨹":"triplus","⨺":"triminus","⨻":"tritime","⨼":"iprod","⨿":"amalg","⩀":"capdot","⩂":"ncup","⩃":"ncap","⩄":"capand","⩅":"cupor","⩆":"cupcap","⩇":"capcup","⩈":"cupbrcap","⩉":"capbrcup","⩊":"cupcup","⩋":"capcap","⩌":"ccups","⩍":"ccaps","⩐":"ccupssm","⩓":"And","⩔":"Or","⩕":"andand","⩖":"oror","⩗":"orslope","⩘":"andslope","⩚":"andv","⩛":"orv","⩜":"andd","⩝":"ord","⩟":"wedbar","⩦":"sdote","⩪":"simdot","⩭":"congdot","⩭̸":"ncongdot","⩮":"easter","⩯":"apacir","⩰":"apE","⩰̸":"napE","⩱":"eplus","⩲":"pluse","⩳":"Esim","⩷":"eDDot","⩸":"equivDD","⩹":"ltcir","⩺":"gtcir","⩻":"ltquest","⩼":"gtquest","⩽":"les","⩽̸":"nles","⩾":"ges","⩾̸":"nges","⩿":"lesdot","⪀":"gesdot","⪁":"lesdoto","⪂":"gesdoto","⪃":"lesdotor","⪄":"gesdotol","⪅":"lap","⪆":"gap","⪇":"lne","⪈":"gne","⪉":"lnap","⪊":"gnap","⪋":"lEg","⪌":"gEl","⪍":"lsime","⪎":"gsime","⪏":"lsimg","⪐":"gsiml","⪑":"lgE","⪒":"glE","⪓":"lesges","⪔":"gesles","⪕":"els","⪖":"egs","⪗":"elsdot","⪘":"egsdot","⪙":"el","⪚":"eg","⪝":"siml","⪞":"simg","⪟":"simlE","⪠":"simgE","⪡":"LessLess","⪡̸":"NotNestedLessLess","⪢":"GreaterGreater","⪢̸":"NotNestedGreaterGreater","⪤":"glj","⪥":"gla","⪦":"ltcc","⪧":"gtcc","⪨":"lescc","⪩":"gescc","⪪":"smt","⪫":"lat","⪬":"smte","⪬︀":"smtes","⪭":"late","⪭︀":"lates","⪮":"bumpE","⪯":"pre","⪯̸":"npre","⪰":"sce","⪰̸":"nsce","⪳":"prE","⪴":"scE","⪵":"prnE","⪶":"scnE","⪷":"prap","⪸":"scap","⪹":"prnap","⪺":"scnap","⪻":"Pr","⪼":"Sc","⪽":"subdot","⪾":"supdot","⪿":"subplus","⫀":"supplus","⫁":"submult","⫂":"supmult","⫃":"subedot","⫄":"supedot","⫅":"subE","⫅̸":"nsubE","⫆":"supE","⫆̸":"nsupE","⫇":"subsim","⫈":"supsim","⫋︀":"vsubnE","⫋":"subnE","⫌︀":"vsupnE","⫌":"supnE","⫏":"csub","⫐":"csup","⫑":"csube","⫒":"csupe","⫓":"subsup","⫔":"supsub","⫕":"subsub","⫖":"supsup","⫗":"suphsub","⫘":"supdsub","⫙":"forkv","⫚":"topfork","⫛":"mlcp","⫤":"Dashv","⫦":"Vdashl","⫧":"Barv","⫨":"vBar","⫩":"vBarv","⫫":"Vbar","⫬":"Not","⫭":"bNot","⫮":"rnmid","⫯":"cirmid","⫰":"midcir","⫱":"topcir","⫲":"nhpar","⫳":"parsim","⫽":"parsl","⫽⃥":"nparsl","♭":"flat","♮":"natur","♯":"sharp","¤":"curren","¢":"cent",$:"dollar","£":"pound","¥":"yen","€":"euro","¹":"sup1","½":"half","⅓":"frac13","¼":"frac14","⅕":"frac15","⅙":"frac16","⅛":"frac18","²":"sup2","⅔":"frac23","⅖":"frac25","³":"sup3","¾":"frac34","⅗":"frac35","⅜":"frac38","⅘":"frac45","⅚":"frac56","⅝":"frac58","⅞":"frac78","𝒶":"ascr","𝕒":"aopf","𝔞":"afr","𝔸":"Aopf","𝔄":"Afr","𝒜":"Ascr","ª":"ordf","á":"aacute","Á":"Aacute","à":"agrave","À":"Agrave","ă":"abreve","Ă":"Abreve","â":"acirc","Â":"Acirc","å":"aring","Å":"angst","ä":"auml","Ä":"Auml","ã":"atilde","Ã":"Atilde","ą":"aogon","Ą":"Aogon","ā":"amacr","Ā":"Amacr","æ":"aelig","Æ":"AElig","𝒷":"bscr","𝕓":"bopf","𝔟":"bfr","𝔹":"Bopf","ℬ":"Bscr","𝔅":"Bfr","𝔠":"cfr","𝒸":"cscr","𝕔":"copf","ℭ":"Cfr","𝒞":"Cscr","ℂ":"Copf","ć":"cacute","Ć":"Cacute","ĉ":"ccirc","Ĉ":"Ccirc","č":"ccaron","Č":"Ccaron","ċ":"cdot","Ċ":"Cdot","ç":"ccedil","Ç":"Ccedil","℅":"incare","𝔡":"dfr","ⅆ":"dd","𝕕":"dopf","𝒹":"dscr","𝒟":"Dscr","𝔇":"Dfr","ⅅ":"DD","𝔻":"Dopf","ď":"dcaron","Ď":"Dcaron","đ":"dstrok","Đ":"Dstrok","ð":"eth","Ð":"ETH","ⅇ":"ee","ℯ":"escr","𝔢":"efr","𝕖":"eopf","ℰ":"Escr","𝔈":"Efr","𝔼":"Eopf","é":"eacute","É":"Eacute","è":"egrave","È":"Egrave","ê":"ecirc","Ê":"Ecirc","ě":"ecaron","Ě":"Ecaron","ë":"euml","Ë":"Euml","ė":"edot","Ė":"Edot","ę":"eogon","Ę":"Eogon","ē":"emacr","Ē":"Emacr","𝔣":"ffr","𝕗":"fopf","𝒻":"fscr","𝔉":"Ffr","𝔽":"Fopf","ℱ":"Fscr","ff":"fflig","ffi":"ffilig","ffl":"ffllig","fi":"filig",fj:"fjlig","fl":"fllig","ƒ":"fnof","ℊ":"gscr","𝕘":"gopf","𝔤":"gfr","𝒢":"Gscr","𝔾":"Gopf","𝔊":"Gfr","ǵ":"gacute","ğ":"gbreve","Ğ":"Gbreve","ĝ":"gcirc","Ĝ":"Gcirc","ġ":"gdot","Ġ":"Gdot","Ģ":"Gcedil","𝔥":"hfr","ℎ":"planckh","𝒽":"hscr","𝕙":"hopf","ℋ":"Hscr","ℌ":"Hfr","ℍ":"Hopf","ĥ":"hcirc","Ĥ":"Hcirc","ℏ":"hbar","ħ":"hstrok","Ħ":"Hstrok","𝕚":"iopf","𝔦":"ifr","𝒾":"iscr","ⅈ":"ii","𝕀":"Iopf","ℐ":"Iscr","ℑ":"Im","í":"iacute","Í":"Iacute","ì":"igrave","Ì":"Igrave","î":"icirc","Î":"Icirc","ï":"iuml","Ï":"Iuml","ĩ":"itilde","Ĩ":"Itilde","İ":"Idot","į":"iogon","Į":"Iogon","ī":"imacr","Ī":"Imacr","ij":"ijlig","IJ":"IJlig","ı":"imath","𝒿":"jscr","𝕛":"jopf","𝔧":"jfr","𝒥":"Jscr","𝔍":"Jfr","𝕁":"Jopf","ĵ":"jcirc","Ĵ":"Jcirc","ȷ":"jmath","𝕜":"kopf","𝓀":"kscr","𝔨":"kfr","𝒦":"Kscr","𝕂":"Kopf","𝔎":"Kfr","ķ":"kcedil","Ķ":"Kcedil","𝔩":"lfr","𝓁":"lscr","ℓ":"ell","𝕝":"lopf","ℒ":"Lscr","𝔏":"Lfr","𝕃":"Lopf","ĺ":"lacute","Ĺ":"Lacute","ľ":"lcaron","Ľ":"Lcaron","ļ":"lcedil","Ļ":"Lcedil","ł":"lstrok","Ł":"Lstrok","ŀ":"lmidot","Ŀ":"Lmidot","𝔪":"mfr","𝕞":"mopf","𝓂":"mscr","𝔐":"Mfr","𝕄":"Mopf","ℳ":"Mscr","𝔫":"nfr","𝕟":"nopf","𝓃":"nscr","ℕ":"Nopf","𝒩":"Nscr","𝔑":"Nfr","ń":"nacute","Ń":"Nacute","ň":"ncaron","Ň":"Ncaron","ñ":"ntilde","Ñ":"Ntilde","ņ":"ncedil","Ņ":"Ncedil","№":"numero","ŋ":"eng","Ŋ":"ENG","𝕠":"oopf","𝔬":"ofr","ℴ":"oscr","𝒪":"Oscr","𝔒":"Ofr","𝕆":"Oopf","º":"ordm","ó":"oacute","Ó":"Oacute","ò":"ograve","Ò":"Ograve","ô":"ocirc","Ô":"Ocirc","ö":"ouml","Ö":"Ouml","ő":"odblac","Ő":"Odblac","õ":"otilde","Õ":"Otilde","ø":"oslash","Ø":"Oslash","ō":"omacr","Ō":"Omacr","œ":"oelig","Œ":"OElig","𝔭":"pfr","𝓅":"pscr","𝕡":"popf","ℙ":"Popf","𝔓":"Pfr","𝒫":"Pscr","𝕢":"qopf","𝔮":"qfr","𝓆":"qscr","𝒬":"Qscr","𝔔":"Qfr","ℚ":"Qopf","ĸ":"kgreen","𝔯":"rfr","𝕣":"ropf","𝓇":"rscr","ℛ":"Rscr","ℜ":"Re","ℝ":"Ropf","ŕ":"racute","Ŕ":"Racute","ř":"rcaron","Ř":"Rcaron","ŗ":"rcedil","Ŗ":"Rcedil","𝕤":"sopf","𝓈":"sscr","𝔰":"sfr","𝕊":"Sopf","𝔖":"Sfr","𝒮":"Sscr","Ⓢ":"oS","ś":"sacute","Ś":"Sacute","ŝ":"scirc","Ŝ":"Scirc","š":"scaron","Š":"Scaron","ş":"scedil","Ş":"Scedil","ß":"szlig","𝔱":"tfr","𝓉":"tscr","𝕥":"topf","𝒯":"Tscr","𝔗":"Tfr","𝕋":"Topf","ť":"tcaron","Ť":"Tcaron","ţ":"tcedil","Ţ":"Tcedil","™":"trade","ŧ":"tstrok","Ŧ":"Tstrok","𝓊":"uscr","𝕦":"uopf","𝔲":"ufr","𝕌":"Uopf","𝔘":"Ufr","𝒰":"Uscr","ú":"uacute","Ú":"Uacute","ù":"ugrave","Ù":"Ugrave","ŭ":"ubreve","Ŭ":"Ubreve","û":"ucirc","Û":"Ucirc","ů":"uring","Ů":"Uring","ü":"uuml","Ü":"Uuml","ű":"udblac","Ű":"Udblac","ũ":"utilde","Ũ":"Utilde","ų":"uogon","Ų":"Uogon","ū":"umacr","Ū":"Umacr","𝔳":"vfr","𝕧":"vopf","𝓋":"vscr","𝔙":"Vfr","𝕍":"Vopf","𝒱":"Vscr","𝕨":"wopf","𝓌":"wscr","𝔴":"wfr","𝒲":"Wscr","𝕎":"Wopf","𝔚":"Wfr","ŵ":"wcirc","Ŵ":"Wcirc","𝔵":"xfr","𝓍":"xscr","𝕩":"xopf","𝕏":"Xopf","𝔛":"Xfr","𝒳":"Xscr","𝔶":"yfr","𝓎":"yscr","𝕪":"yopf","𝒴":"Yscr","𝔜":"Yfr","𝕐":"Yopf","ý":"yacute","Ý":"Yacute","ŷ":"ycirc","Ŷ":"Ycirc","ÿ":"yuml","Ÿ":"Yuml","𝓏":"zscr","𝔷":"zfr","𝕫":"zopf","ℨ":"Zfr","ℤ":"Zopf","𝒵":"Zscr","ź":"zacute","Ź":"Zacute","ž":"zcaron","Ž":"Zcaron","ż":"zdot","Ż":"Zdot","Ƶ":"imped","þ":"thorn","Þ":"THORN","ʼn":"napos","α":"alpha","Α":"Alpha","β":"beta","Β":"Beta","γ":"gamma","Γ":"Gamma","δ":"delta","Δ":"Delta","ε":"epsi","ϵ":"epsiv","Ε":"Epsilon","ϝ":"gammad","Ϝ":"Gammad","ζ":"zeta","Ζ":"Zeta","η":"eta","Η":"Eta","θ":"theta","ϑ":"thetav","Θ":"Theta","ι":"iota","Ι":"Iota","κ":"kappa","ϰ":"kappav","Κ":"Kappa","λ":"lambda","Λ":"Lambda","μ":"mu","µ":"micro","Μ":"Mu","ν":"nu","Ν":"Nu","ξ":"xi","Ξ":"Xi","ο":"omicron","Ο":"Omicron","π":"pi","ϖ":"piv","Π":"Pi","ρ":"rho","ϱ":"rhov","Ρ":"Rho","σ":"sigma","Σ":"Sigma","ς":"sigmaf","τ":"tau","Τ":"Tau","υ":"upsi","Υ":"Upsilon","ϒ":"Upsi","φ":"phi","ϕ":"phiv","Φ":"Phi","χ":"chi","Χ":"Chi","ψ":"psi","Ψ":"Psi","ω":"omega","Ω":"ohm","а":"acy","А":"Acy","б":"bcy","Б":"Bcy","в":"vcy","В":"Vcy","г":"gcy","Г":"Gcy","ѓ":"gjcy","Ѓ":"GJcy","д":"dcy","Д":"Dcy","ђ":"djcy","Ђ":"DJcy","е":"iecy","Е":"IEcy","ё":"iocy","Ё":"IOcy","є":"jukcy","Є":"Jukcy","ж":"zhcy","Ж":"ZHcy","з":"zcy","З":"Zcy","ѕ":"dscy","Ѕ":"DScy","и":"icy","И":"Icy","і":"iukcy","І":"Iukcy","ї":"yicy","Ї":"YIcy","й":"jcy","Й":"Jcy","ј":"jsercy","Ј":"Jsercy","к":"kcy","К":"Kcy","ќ":"kjcy","Ќ":"KJcy","л":"lcy","Л":"Lcy","љ":"ljcy","Љ":"LJcy","м":"mcy","М":"Mcy","н":"ncy","Н":"Ncy","њ":"njcy","Њ":"NJcy","о":"ocy","О":"Ocy","п":"pcy","П":"Pcy","р":"rcy","Р":"Rcy","с":"scy","С":"Scy","т":"tcy","Т":"Tcy","ћ":"tshcy","Ћ":"TSHcy","у":"ucy","У":"Ucy","ў":"ubrcy","Ў":"Ubrcy","ф":"fcy","Ф":"Fcy","х":"khcy","Х":"KHcy","ц":"tscy","Ц":"TScy","ч":"chcy","Ч":"CHcy","џ":"dzcy","Џ":"DZcy","ш":"shcy","Ш":"SHcy","щ":"shchcy","Щ":"SHCHcy","ъ":"hardcy","Ъ":"HARDcy","ы":"ycy","Ы":"Ycy","ь":"softcy","Ь":"SOFTcy","э":"ecy","Э":"Ecy","ю":"yucy","Ю":"YUcy","я":"yacy","Я":"YAcy","ℵ":"aleph","ℶ":"beth","ℷ":"gimel","ℸ":"daleth"},f=/["&'<>`]/g,p={'"':""","&":"&","'":"'","<":"<",">":">","`":"`"},h=/&#(?:[xX][^a-fA-F0-9]|[^0-9xX])/,d=/[\0-\x08\x0B\x0E-\x1F\x7F-\x9F\uFDD0-\uFDEF\uFFFE\uFFFF]|[\uD83F\uD87F\uD8BF\uD8FF\uD93F\uD97F\uD9BF\uD9FF\uDA3F\uDA7F\uDABF\uDAFF\uDB3F\uDB7F\uDBBF\uDBFF][\uDFFE\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,g=/&(CounterClockwiseContourIntegral|DoubleLongLeftRightArrow|ClockwiseContourIntegral|NotNestedGreaterGreater|NotSquareSupersetEqual|DiacriticalDoubleAcute|NotRightTriangleEqual|NotSucceedsSlantEqual|NotPrecedesSlantEqual|CloseCurlyDoubleQuote|NegativeVeryThinSpace|DoubleContourIntegral|FilledVerySmallSquare|CapitalDifferentialD|OpenCurlyDoubleQuote|EmptyVerySmallSquare|NestedGreaterGreater|DoubleLongRightArrow|NotLeftTriangleEqual|NotGreaterSlantEqual|ReverseUpEquilibrium|DoubleLeftRightArrow|NotSquareSubsetEqual|NotDoubleVerticalBar|RightArrowLeftArrow|NotGreaterFullEqual|NotRightTriangleBar|SquareSupersetEqual|DownLeftRightVector|DoubleLongLeftArrow|leftrightsquigarrow|LeftArrowRightArrow|NegativeMediumSpace|blacktriangleright|RightDownVectorBar|PrecedesSlantEqual|RightDoubleBracket|SucceedsSlantEqual|NotLeftTriangleBar|RightTriangleEqual|SquareIntersection|RightDownTeeVector|ReverseEquilibrium|NegativeThickSpace|longleftrightarrow|Longleftrightarrow|LongLeftRightArrow|DownRightTeeVector|DownRightVectorBar|GreaterSlantEqual|SquareSubsetEqual|LeftDownVectorBar|LeftDoubleBracket|VerticalSeparator|rightleftharpoons|NotGreaterGreater|NotSquareSuperset|blacktriangleleft|blacktriangledown|NegativeThinSpace|LeftDownTeeVector|NotLessSlantEqual|leftrightharpoons|DoubleUpDownArrow|DoubleVerticalBar|LeftTriangleEqual|FilledSmallSquare|twoheadrightarrow|NotNestedLessLess|DownLeftTeeVector|DownLeftVectorBar|RightAngleBracket|NotTildeFullEqual|NotReverseElement|RightUpDownVector|DiacriticalTilde|NotSucceedsTilde|circlearrowright|NotPrecedesEqual|rightharpoondown|DoubleRightArrow|NotSucceedsEqual|NonBreakingSpace|NotRightTriangle|LessEqualGreater|RightUpTeeVector|LeftAngleBracket|GreaterFullEqual|DownArrowUpArrow|RightUpVectorBar|twoheadleftarrow|GreaterEqualLess|downharpoonright|RightTriangleBar|ntrianglerighteq|NotSupersetEqual|LeftUpDownVector|DiacriticalAcute|rightrightarrows|vartriangleright|UpArrowDownArrow|DiacriticalGrave|UnderParenthesis|EmptySmallSquare|LeftUpVectorBar|leftrightarrows|DownRightVector|downharpoonleft|trianglerighteq|ShortRightArrow|OverParenthesis|DoubleLeftArrow|DoubleDownArrow|NotSquareSubset|bigtriangledown|ntrianglelefteq|UpperRightArrow|curvearrowright|vartriangleleft|NotLeftTriangle|nleftrightarrow|LowerRightArrow|NotHumpDownHump|NotGreaterTilde|rightthreetimes|LeftUpTeeVector|NotGreaterEqual|straightepsilon|LeftTriangleBar|rightsquigarrow|ContourIntegral|rightleftarrows|CloseCurlyQuote|RightDownVector|LeftRightVector|nLeftrightarrow|leftharpoondown|circlearrowleft|SquareSuperset|OpenCurlyQuote|hookrightarrow|HorizontalLine|DiacriticalDot|NotLessGreater|ntriangleright|DoubleRightTee|InvisibleComma|InvisibleTimes|LowerLeftArrow|DownLeftVector|NotSubsetEqual|curvearrowleft|trianglelefteq|NotVerticalBar|TildeFullEqual|downdownarrows|NotGreaterLess|RightTeeVector|ZeroWidthSpace|looparrowright|LongRightArrow|doublebarwedge|ShortLeftArrow|ShortDownArrow|RightVectorBar|GreaterGreater|ReverseElement|rightharpoonup|LessSlantEqual|leftthreetimes|upharpoonright|rightarrowtail|LeftDownVector|Longrightarrow|NestedLessLess|UpperLeftArrow|nshortparallel|leftleftarrows|leftrightarrow|Leftrightarrow|LeftRightArrow|longrightarrow|upharpoonleft|RightArrowBar|ApplyFunction|LeftTeeVector|leftarrowtail|NotEqualTilde|varsubsetneqq|varsupsetneqq|RightTeeArrow|SucceedsEqual|SucceedsTilde|LeftVectorBar|SupersetEqual|hookleftarrow|DifferentialD|VerticalTilde|VeryThinSpace|blacktriangle|bigtriangleup|LessFullEqual|divideontimes|leftharpoonup|UpEquilibrium|ntriangleleft|RightTriangle|measuredangle|shortparallel|longleftarrow|Longleftarrow|LongLeftArrow|DoubleLeftTee|Poincareplane|PrecedesEqual|triangleright|DoubleUpArrow|RightUpVector|fallingdotseq|looparrowleft|PrecedesTilde|NotTildeEqual|NotTildeTilde|smallsetminus|Proportional|triangleleft|triangledown|UnderBracket|NotHumpEqual|exponentiale|ExponentialE|NotLessTilde|HilbertSpace|RightCeiling|blacklozenge|varsupsetneq|HumpDownHump|GreaterEqual|VerticalLine|LeftTeeArrow|NotLessEqual|DownTeeArrow|LeftTriangle|varsubsetneq|Intersection|NotCongruent|DownArrowBar|LeftUpVector|LeftArrowBar|risingdotseq|GreaterTilde|RoundImplies|SquareSubset|ShortUpArrow|NotSuperset|quaternions|precnapprox|backepsilon|preccurlyeq|OverBracket|blacksquare|MediumSpace|VerticalBar|circledcirc|circleddash|CircleMinus|CircleTimes|LessGreater|curlyeqprec|curlyeqsucc|diamondsuit|UpDownArrow|Updownarrow|RuleDelayed|Rrightarrow|updownarrow|RightVector|nRightarrow|nrightarrow|eqslantless|LeftCeiling|Equilibrium|SmallCircle|expectation|NotSucceeds|thickapprox|GreaterLess|SquareUnion|NotPrecedes|NotLessLess|straightphi|succnapprox|succcurlyeq|SubsetEqual|sqsupseteq|Proportion|Laplacetrf|ImaginaryI|supsetneqq|NotGreater|gtreqqless|NotElement|ThickSpace|TildeEqual|TildeTilde|Fouriertrf|rmoustache|EqualTilde|eqslantgtr|UnderBrace|LeftVector|UpArrowBar|nLeftarrow|nsubseteqq|subsetneqq|nsupseteqq|nleftarrow|succapprox|lessapprox|UpTeeArrow|upuparrows|curlywedge|lesseqqgtr|varepsilon|varnothing|RightFloor|complement|CirclePlus|sqsubseteq|Lleftarrow|circledast|RightArrow|Rightarrow|rightarrow|lmoustache|Bernoullis|precapprox|mapstoleft|mapstodown|longmapsto|dotsquare|downarrow|DoubleDot|nsubseteq|supsetneq|leftarrow|nsupseteq|subsetneq|ThinSpace|ngeqslant|subseteqq|HumpEqual|NotSubset|triangleq|NotCupCap|lesseqgtr|heartsuit|TripleDot|Leftarrow|Coproduct|Congruent|varpropto|complexes|gvertneqq|LeftArrow|LessTilde|supseteqq|MinusPlus|CircleDot|nleqslant|NotExists|gtreqless|nparallel|UnionPlus|LeftFloor|checkmark|CenterDot|centerdot|Mellintrf|gtrapprox|bigotimes|OverBrace|spadesuit|therefore|pitchfork|rationals|PlusMinus|Backslash|Therefore|DownBreve|backsimeq|backprime|DownArrow|nshortmid|Downarrow|lvertneqq|eqvparsl|imagline|imagpart|infintie|integers|Integral|intercal|LessLess|Uarrocir|intlarhk|sqsupset|angmsdaf|sqsubset|llcorner|vartheta|cupbrcap|lnapprox|Superset|SuchThat|succnsim|succneqq|angmsdag|biguplus|curlyvee|trpezium|Succeeds|NotTilde|bigwedge|angmsdah|angrtvbd|triminus|cwconint|fpartint|lrcorner|smeparsl|subseteq|urcorner|lurdshar|laemptyv|DDotrahd|approxeq|ldrushar|awconint|mapstoup|backcong|shortmid|triangle|geqslant|gesdotol|timesbar|circledR|circledS|setminus|multimap|naturals|scpolint|ncongdot|RightTee|boxminus|gnapprox|boxtimes|andslope|thicksim|angmsdaa|varsigma|cirfnint|rtriltri|angmsdab|rppolint|angmsdac|barwedge|drbkarow|clubsuit|thetasym|bsolhsub|capbrcup|dzigrarr|doteqdot|DotEqual|dotminus|UnderBar|NotEqual|realpart|otimesas|ulcorner|hksearow|hkswarow|parallel|PartialD|elinters|emptyset|plusacir|bbrktbrk|angmsdad|pointint|bigoplus|angmsdae|Precedes|bigsqcup|varkappa|notindot|supseteq|precneqq|precnsim|profalar|profline|profsurf|leqslant|lesdotor|raemptyv|subplus|notnivb|notnivc|subrarr|zigrarr|vzigzag|submult|subedot|Element|between|cirscir|larrbfs|larrsim|lotimes|lbrksld|lbrkslu|lozenge|ldrdhar|dbkarow|bigcirc|epsilon|simrarr|simplus|ltquest|Epsilon|luruhar|gtquest|maltese|npolint|eqcolon|npreceq|bigodot|ddagger|gtrless|bnequiv|harrcir|ddotseq|equivDD|backsim|demptyv|nsqsube|nsqsupe|Upsilon|nsubset|upsilon|minusdu|nsucceq|swarrow|nsupset|coloneq|searrow|boxplus|napprox|natural|asympeq|alefsym|congdot|nearrow|bigstar|diamond|supplus|tritime|LeftTee|nvinfin|triplus|NewLine|nvltrie|nvrtrie|nwarrow|nexists|Diamond|ruluhar|Implies|supmult|angzarr|suplarr|suphsub|questeq|because|digamma|Because|olcross|bemptyv|omicron|Omicron|rotimes|NoBreak|intprod|angrtvb|orderof|uwangle|suphsol|lesdoto|orslope|DownTee|realine|cudarrl|rdldhar|OverBar|supedot|lessdot|supdsub|topfork|succsim|rbrkslu|rbrksld|pertenk|cudarrr|isindot|planckh|lessgtr|pluscir|gesdoto|plussim|plustwo|lesssim|cularrp|rarrsim|Cayleys|notinva|notinvb|notinvc|UpArrow|Uparrow|uparrow|NotLess|dwangle|precsim|Product|curarrm|Cconint|dotplus|rarrbfs|ccupssm|Cedilla|cemptyv|notniva|quatint|frac35|frac38|frac45|frac56|frac58|frac78|tridot|xoplus|gacute|gammad|Gammad|lfisht|lfloor|bigcup|sqsupe|gbreve|Gbreve|lharul|sqsube|sqcups|Gcedil|apacir|llhard|lmidot|Lmidot|lmoust|andand|sqcaps|approx|Abreve|spades|circeq|tprime|divide|topcir|Assign|topbot|gesdot|divonx|xuplus|timesd|gesles|atilde|solbar|SOFTcy|loplus|timesb|lowast|lowbar|dlcorn|dlcrop|softcy|dollar|lparlt|thksim|lrhard|Atilde|lsaquo|smashp|bigvee|thinsp|wreath|bkarow|lsquor|lstrok|Lstrok|lthree|ltimes|ltlarr|DotDot|simdot|ltrPar|weierp|xsqcup|angmsd|sigmav|sigmaf|zeetrf|Zcaron|zcaron|mapsto|vsupne|thetav|cirmid|marker|mcomma|Zacute|vsubnE|there4|gtlPar|vsubne|bottom|gtrarr|SHCHcy|shchcy|midast|midcir|middot|minusb|minusd|gtrdot|bowtie|sfrown|mnplus|models|colone|seswar|Colone|mstpos|searhk|gtrsim|nacute|Nacute|boxbox|telrec|hairsp|Tcedil|nbumpe|scnsim|ncaron|Ncaron|ncedil|Ncedil|hamilt|Scedil|nearhk|hardcy|HARDcy|tcedil|Tcaron|commat|nequiv|nesear|tcaron|target|hearts|nexist|varrho|scedil|Scaron|scaron|hellip|Sacute|sacute|hercon|swnwar|compfn|rtimes|rthree|rsquor|rsaquo|zacute|wedgeq|homtht|barvee|barwed|Barwed|rpargt|horbar|conint|swarhk|roplus|nltrie|hslash|hstrok|Hstrok|rmoust|Conint|bprime|hybull|hyphen|iacute|Iacute|supsup|supsub|supsim|varphi|coprod|brvbar|agrave|Supset|supset|igrave|Igrave|notinE|Agrave|iiiint|iinfin|copysr|wedbar|Verbar|vangrt|becaus|incare|verbar|inodot|bullet|drcorn|intcal|drcrop|cularr|vellip|Utilde|bumpeq|cupcap|dstrok|Dstrok|CupCap|cupcup|cupdot|eacute|Eacute|supdot|iquest|easter|ecaron|Ecaron|ecolon|isinsv|utilde|itilde|Itilde|curarr|succeq|Bumpeq|cacute|ulcrop|nparsl|Cacute|nprcue|egrave|Egrave|nrarrc|nrarrw|subsup|subsub|nrtrie|jsercy|nsccue|Jsercy|kappav|kcedil|Kcedil|subsim|ulcorn|nsimeq|egsdot|veebar|kgreen|capand|elsdot|Subset|subset|curren|aacute|lacute|Lacute|emptyv|ntilde|Ntilde|lagran|lambda|Lambda|capcap|Ugrave|langle|subdot|emsp13|numero|emsp14|nvdash|nvDash|nVdash|nVDash|ugrave|ufisht|nvHarr|larrfs|nvlArr|larrhk|larrlp|larrpl|nvrArr|Udblac|nwarhk|larrtl|nwnear|oacute|Oacute|latail|lAtail|sstarf|lbrace|odblac|Odblac|lbrack|udblac|odsold|eparsl|lcaron|Lcaron|ograve|Ograve|lcedil|Lcedil|Aacute|ssmile|ssetmn|squarf|ldquor|capcup|ominus|cylcty|rharul|eqcirc|dagger|rfloor|rfisht|Dagger|daleth|equals|origof|capdot|equest|dcaron|Dcaron|rdquor|oslash|Oslash|otilde|Otilde|otimes|Otimes|urcrop|Ubreve|ubreve|Yacute|Uacute|uacute|Rcedil|rcedil|urcorn|parsim|Rcaron|Vdashl|rcaron|Tstrok|percnt|period|permil|Exists|yacute|rbrack|rbrace|phmmat|ccaron|Ccaron|planck|ccedil|plankv|tstrok|female|plusdo|plusdu|ffilig|plusmn|ffllig|Ccedil|rAtail|dfisht|bernou|ratail|Rarrtl|rarrtl|angsph|rarrpl|rarrlp|rarrhk|xwedge|xotime|forall|ForAll|Vvdash|vsupnE|preceq|bigcap|frac12|frac13|frac14|primes|rarrfs|prnsim|frac15|Square|frac16|square|lesdot|frac18|frac23|propto|prurel|rarrap|rangle|puncsp|frac25|Racute|qprime|racute|lesges|frac34|abreve|AElig|eqsim|utdot|setmn|urtri|Equal|Uring|seArr|uring|searr|dashv|Dashv|mumap|nabla|iogon|Iogon|sdote|sdotb|scsim|napid|napos|equiv|natur|Acirc|dblac|erarr|nbump|iprod|erDot|ucirc|awint|esdot|angrt|ncong|isinE|scnap|Scirc|scirc|ndash|isins|Ubrcy|nearr|neArr|isinv|nedot|ubrcy|acute|Ycirc|iukcy|Iukcy|xutri|nesim|caret|jcirc|Jcirc|caron|twixt|ddarr|sccue|exist|jmath|sbquo|ngeqq|angst|ccaps|lceil|ngsim|UpTee|delta|Delta|rtrif|nharr|nhArr|nhpar|rtrie|jukcy|Jukcy|kappa|rsquo|Kappa|nlarr|nlArr|TSHcy|rrarr|aogon|Aogon|fflig|xrarr|tshcy|ccirc|nleqq|filig|upsih|nless|dharl|nlsim|fjlig|ropar|nltri|dharr|robrk|roarr|fllig|fltns|roang|rnmid|subnE|subne|lAarr|trisb|Ccirc|acirc|ccups|blank|VDash|forkv|Vdash|langd|cedil|blk12|blk14|laquo|strns|diams|notin|vDash|larrb|blk34|block|disin|uplus|vdash|vBarv|aelig|starf|Wedge|check|xrArr|lates|lbarr|lBarr|notni|lbbrk|bcong|frasl|lbrke|frown|vrtri|vprop|vnsup|gamma|Gamma|wedge|xodot|bdquo|srarr|doteq|ldquo|boxdl|boxdL|gcirc|Gcirc|boxDl|boxDL|boxdr|boxdR|boxDr|TRADE|trade|rlhar|boxDR|vnsub|npart|vltri|rlarr|boxhd|boxhD|nprec|gescc|nrarr|nrArr|boxHd|boxHD|boxhu|boxhU|nrtri|boxHu|clubs|boxHU|times|colon|Colon|gimel|xlArr|Tilde|nsime|tilde|nsmid|nspar|THORN|thorn|xlarr|nsube|nsubE|thkap|xhArr|comma|nsucc|boxul|boxuL|nsupe|nsupE|gneqq|gnsim|boxUl|boxUL|grave|boxur|boxuR|boxUr|boxUR|lescc|angle|bepsi|boxvh|varpi|boxvH|numsp|Theta|gsime|gsiml|theta|boxVh|boxVH|boxvl|gtcir|gtdot|boxvL|boxVl|boxVL|crarr|cross|Cross|nvsim|boxvr|nwarr|nwArr|sqsup|dtdot|Uogon|lhard|lharu|dtrif|ocirc|Ocirc|lhblk|duarr|odash|sqsub|Hacek|sqcup|llarr|duhar|oelig|OElig|ofcir|boxvR|uogon|lltri|boxVr|csube|uuarr|ohbar|csupe|ctdot|olarr|olcir|harrw|oline|sqcap|omacr|Omacr|omega|Omega|boxVR|aleph|lneqq|lnsim|loang|loarr|rharu|lobrk|hcirc|operp|oplus|rhard|Hcirc|orarr|Union|order|ecirc|Ecirc|cuepr|szlig|cuesc|breve|reals|eDDot|Breve|hoarr|lopar|utrif|rdquo|Umacr|umacr|efDot|swArr|ultri|alpha|rceil|ovbar|swarr|Wcirc|wcirc|smtes|smile|bsemi|lrarr|aring|parsl|lrhar|bsime|uhblk|lrtri|cupor|Aring|uharr|uharl|slarr|rbrke|bsolb|lsime|rbbrk|RBarr|lsimg|phone|rBarr|rbarr|icirc|lsquo|Icirc|emacr|Emacr|ratio|simne|plusb|simlE|simgE|simeq|pluse|ltcir|ltdot|empty|xharr|xdtri|iexcl|Alpha|ltrie|rarrw|pound|ltrif|xcirc|bumpe|prcue|bumpE|asymp|amacr|cuvee|Sigma|sigma|iiint|udhar|iiota|ijlig|IJlig|supnE|imacr|Imacr|prime|Prime|image|prnap|eogon|Eogon|rarrc|mdash|mDDot|cuwed|imath|supne|imped|Amacr|udarr|prsim|micro|rarrb|cwint|raquo|infin|eplus|range|rangd|Ucirc|radic|minus|amalg|veeeq|rAarr|epsiv|ycirc|quest|sharp|quot|zwnj|Qscr|race|qscr|Qopf|qopf|qint|rang|Rang|Zscr|zscr|Zopf|zopf|rarr|rArr|Rarr|Pscr|pscr|prop|prod|prnE|prec|ZHcy|zhcy|prap|Zeta|zeta|Popf|popf|Zdot|plus|zdot|Yuml|yuml|phiv|YUcy|yucy|Yscr|yscr|perp|Yopf|yopf|part|para|YIcy|Ouml|rcub|yicy|YAcy|rdca|ouml|osol|Oscr|rdsh|yacy|real|oscr|xvee|andd|rect|andv|Xscr|oror|ordm|ordf|xscr|ange|aopf|Aopf|rHar|Xopf|opar|Oopf|xopf|xnis|rhov|oopf|omid|xmap|oint|apid|apos|ogon|ascr|Ascr|odot|odiv|xcup|xcap|ocir|oast|nvlt|nvle|nvgt|nvge|nvap|Wscr|wscr|auml|ntlg|ntgl|nsup|nsub|nsim|Nscr|nscr|nsce|Wopf|ring|npre|wopf|npar|Auml|Barv|bbrk|Nopf|nopf|nmid|nLtv|beta|ropf|Ropf|Beta|beth|nles|rpar|nleq|bnot|bNot|nldr|NJcy|rscr|Rscr|Vscr|vscr|rsqb|njcy|bopf|nisd|Bopf|rtri|Vopf|nGtv|ngtr|vopf|boxh|boxH|boxv|nges|ngeq|boxV|bscr|scap|Bscr|bsim|Vert|vert|bsol|bull|bump|caps|cdot|ncup|scnE|ncap|nbsp|napE|Cdot|cent|sdot|Vbar|nang|vBar|chcy|Mscr|mscr|sect|semi|CHcy|Mopf|mopf|sext|circ|cire|mldr|mlcp|cirE|comp|shcy|SHcy|vArr|varr|cong|copf|Copf|copy|COPY|malt|male|macr|lvnE|cscr|ltri|sime|ltcc|simg|Cscr|siml|csub|Uuml|lsqb|lsim|uuml|csup|Lscr|lscr|utri|smid|lpar|cups|smte|lozf|darr|Lopf|Uscr|solb|lopf|sopf|Sopf|lneq|uscr|spar|dArr|lnap|Darr|dash|Sqrt|LJcy|ljcy|lHar|dHar|Upsi|upsi|diam|lesg|djcy|DJcy|leqq|dopf|Dopf|dscr|Dscr|dscy|ldsh|ldca|squf|DScy|sscr|Sscr|dsol|lcub|late|star|Star|Uopf|Larr|lArr|larr|uopf|dtri|dzcy|sube|subE|Lang|lang|Kscr|kscr|Kopf|kopf|KJcy|kjcy|KHcy|khcy|DZcy|ecir|edot|eDot|Jscr|jscr|succ|Jopf|jopf|Edot|uHar|emsp|ensp|Iuml|iuml|eopf|isin|Iscr|iscr|Eopf|epar|sung|epsi|escr|sup1|sup2|sup3|Iota|iota|supe|supE|Iopf|iopf|IOcy|iocy|Escr|esim|Esim|imof|Uarr|QUOT|uArr|uarr|euml|IEcy|iecy|Idot|Euml|euro|excl|Hscr|hscr|Hopf|hopf|TScy|tscy|Tscr|hbar|tscr|flat|tbrk|fnof|hArr|harr|half|fopf|Fopf|tdot|gvnE|fork|trie|gtcc|fscr|Fscr|gdot|gsim|Gscr|gscr|Gopf|gopf|gneq|Gdot|tosa|gnap|Topf|topf|geqq|toea|GJcy|gjcy|tint|gesl|mid|Sfr|ggg|top|ges|gla|glE|glj|geq|gne|gEl|gel|gnE|Gcy|gcy|gap|Tfr|tfr|Tcy|tcy|Hat|Tau|Ffr|tau|Tab|hfr|Hfr|ffr|Fcy|fcy|icy|Icy|iff|ETH|eth|ifr|Ifr|Eta|eta|int|Int|Sup|sup|ucy|Ucy|Sum|sum|jcy|ENG|ufr|Ufr|eng|Jcy|jfr|els|ell|egs|Efr|efr|Jfr|uml|kcy|Kcy|Ecy|ecy|kfr|Kfr|lap|Sub|sub|lat|lcy|Lcy|leg|Dot|dot|lEg|leq|les|squ|div|die|lfr|Lfr|lgE|Dfr|dfr|Del|deg|Dcy|dcy|lne|lnE|sol|loz|smt|Cup|lrm|cup|lsh|Lsh|sim|shy|map|Map|mcy|Mcy|mfr|Mfr|mho|gfr|Gfr|sfr|cir|Chi|chi|nap|Cfr|vcy|Vcy|cfr|Scy|scy|ncy|Ncy|vee|Vee|Cap|cap|nfr|scE|sce|Nfr|nge|ngE|nGg|vfr|Vfr|ngt|bot|nGt|nis|niv|Rsh|rsh|nle|nlE|bne|Bfr|bfr|nLl|nlt|nLt|Bcy|bcy|not|Not|rlm|wfr|Wfr|npr|nsc|num|ocy|ast|Ocy|ofr|xfr|Xfr|Ofr|ogt|ohm|apE|olt|Rho|ape|rho|Rfr|rfr|ord|REG|ang|reg|orv|And|and|AMP|Rcy|amp|Afr|ycy|Ycy|yen|yfr|Yfr|rcy|par|pcy|Pcy|pfr|Pfr|phi|Phi|afr|Acy|acy|zcy|Zcy|piv|acE|acd|zfr|Zfr|pre|prE|psi|Psi|qfr|Qfr|zwj|Or|ge|Gg|gt|gg|el|oS|lt|Lt|LT|Re|lg|gl|eg|ne|Im|it|le|DD|wp|wr|nu|Nu|dd|lE|Sc|sc|pi|Pi|ee|af|ll|Ll|rx|gE|xi|pm|Xi|ic|pr|Pr|in|ni|mp|mu|ac|Mu|or|ap|Gt|GT|ii);|&(Aacute|Agrave|Atilde|Ccedil|Eacute|Egrave|Iacute|Igrave|Ntilde|Oacute|Ograve|Oslash|Otilde|Uacute|Ugrave|Yacute|aacute|agrave|atilde|brvbar|ccedil|curren|divide|eacute|egrave|frac12|frac14|frac34|iacute|igrave|iquest|middot|ntilde|oacute|ograve|oslash|otilde|plusmn|uacute|ugrave|yacute|AElig|Acirc|Aring|Ecirc|Icirc|Ocirc|THORN|Ucirc|acirc|acute|aelig|aring|cedil|ecirc|icirc|iexcl|laquo|micro|ocirc|pound|raquo|szlig|thorn|times|ucirc|Auml|COPY|Euml|Iuml|Ouml|QUOT|Uuml|auml|cent|copy|euml|iuml|macr|nbsp|ordf|ordm|ouml|para|quot|sect|sup1|sup2|sup3|uuml|yuml|AMP|ETH|REG|amp|deg|eth|not|reg|shy|uml|yen|GT|LT|gt|lt)(?!;)([=a-zA-Z0-9]?)|&#([0-9]+)(;?)|&#[xX]([a-fA-F0-9]+)(;?)|&([0-9a-zA-Z]+)/g,m={aacute:"á",Aacute:"Á",abreve:"ă",Abreve:"Ă",ac:"∾",acd:"∿",acE:"∾̳",acirc:"â",Acirc:"Â",acute:"´",acy:"а",Acy:"А",aelig:"æ",AElig:"Æ",af:"",afr:"𝔞",Afr:"𝔄",agrave:"à",Agrave:"À",alefsym:"ℵ",aleph:"ℵ",alpha:"α",Alpha:"Α",amacr:"ā",Amacr:"Ā",amalg:"⨿",amp:"&",AMP:"&",and:"∧",And:"⩓",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",Aogon:"Ą",aopf:"𝕒",Aopf:"𝔸",ap:"≈",apacir:"⩯",ape:"≊",apE:"⩰",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",aring:"å",Aring:"Å",ascr:"𝒶",Ascr:"𝒜",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",Atilde:"Ã",auml:"ä",Auml:"Ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",Bcy:"Б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",beta:"β",Beta:"Β",beth:"ℶ",between:"≬",bfr:"𝔟",Bfr:"𝔅",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bNot:"⫭",bopf:"𝕓",Bopf:"𝔹",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxhD:"╥",boxHd:"╤",boxHD:"╦",boxhu:"┴",boxhU:"╨",boxHu:"╧",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpe:"≏",bumpE:"⪮",bumpeq:"≏",Bumpeq:"≎",cacute:"ć",Cacute:"Ć",cap:"∩",Cap:"⋒",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",ccaron:"č",Ccaron:"Č",ccedil:"ç",Ccedil:"Ç",ccirc:"ĉ",Ccirc:"Ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",Cdot:"Ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",chcy:"ч",CHcy:"Ч",check:"✓",checkmark:"✓",chi:"χ",Chi:"Χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cire:"≗",cirE:"⧃",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",colone:"≔",Colone:"⩴",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",cscr:"𝒸",Cscr:"𝒞",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",Cup:"⋓",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",dArr:"⇓",Darr:"↡",dash:"‐",dashv:"⊣",Dashv:"⫤",dbkarow:"⤏",dblac:"˝",dcaron:"ď",Dcaron:"Ď",dcy:"д",Dcy:"Д",dd:"ⅆ",DD:"ⅅ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",delta:"δ",Delta:"Δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",Dfr:"𝔇",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",DJcy:"Ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",Dopf:"𝔻",dot:"˙",Dot:"¨",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",downarrow:"↓",Downarrow:"⇓",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",Dscr:"𝒟",dscy:"ѕ",DScy:"Ѕ",dsol:"⧶",dstrok:"đ",Dstrok:"Đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",DZcy:"Џ",dzigrarr:"⟿",eacute:"é",Eacute:"É",easter:"⩮",ecaron:"ě",Ecaron:"Ě",ecir:"≖",ecirc:"ê",Ecirc:"Ê",ecolon:"≕",ecy:"э",Ecy:"Э",eDDot:"⩷",edot:"ė",eDot:"≑",Edot:"Ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",Efr:"𝔈",eg:"⪚",egrave:"è",Egrave:"È",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",Emacr:"Ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",eng:"ŋ",ENG:"Ŋ",ensp:" ",eogon:"ę",Eogon:"Ę",eopf:"𝕖",Eopf:"𝔼",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",Epsilon:"Ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",esim:"≂",Esim:"⩳",eta:"η",Eta:"Η",eth:"ð",ETH:"Ð",euml:"ë",Euml:"Ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",fcy:"ф",Fcy:"Ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",Ffr:"𝔉",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",Fopf:"𝔽",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",gamma:"γ",Gamma:"Γ",gammad:"ϝ",Gammad:"Ϝ",gap:"⪆",gbreve:"ğ",Gbreve:"Ğ",Gcedil:"Ģ",gcirc:"ĝ",Gcirc:"Ĝ",gcy:"г",Gcy:"Г",gdot:"ġ",Gdot:"Ġ",ge:"≥",gE:"≧",gel:"⋛",gEl:"⪌",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",Gfr:"𝔊",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",GJcy:"Ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",Gopf:"𝔾",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",gscr:"ℊ",Gscr:"𝒢",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",Gt:"≫",GT:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",HARDcy:"Ъ",harr:"↔",hArr:"⇔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",hcirc:"ĥ",Hcirc:"Ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",hstrok:"ħ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",iacute:"í",Iacute:"Í",ic:"",icirc:"î",Icirc:"Î",icy:"и",Icy:"И",Idot:"İ",iecy:"е",IEcy:"Е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",igrave:"ì",Igrave:"Ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",IJlig:"IJ",Im:"ℑ",imacr:"ī",Imacr:"Ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",Int:"∬",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",iocy:"ё",IOcy:"Ё",iogon:"į",Iogon:"Į",iopf:"𝕚",Iopf:"𝕀",iota:"ι",Iota:"Ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",itilde:"ĩ",Itilde:"Ĩ",iukcy:"і",Iukcy:"І",iuml:"ï",Iuml:"Ï",jcirc:"ĵ",Jcirc:"Ĵ",jcy:"й",Jcy:"Й",jfr:"𝔧",Jfr:"𝔍",jmath:"ȷ",jopf:"𝕛",Jopf:"𝕁",jscr:"𝒿",Jscr:"𝒥",jsercy:"ј",Jsercy:"Ј",jukcy:"є",Jukcy:"Є",kappa:"κ",Kappa:"Κ",kappav:"ϰ",kcedil:"ķ",Kcedil:"Ķ",kcy:"к",Kcy:"К",kfr:"𝔨",Kfr:"𝔎",kgreen:"ĸ",khcy:"х",KHcy:"Х",kjcy:"ќ",KJcy:"Ќ",kopf:"𝕜",Kopf:"𝕂",kscr:"𝓀",Kscr:"𝒦",lAarr:"⇚",lacute:"ĺ",Lacute:"Ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",Lambda:"Λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larr:"←",lArr:"⇐",Larr:"↞",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",lAtail:"⤛",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",Lcaron:"Ľ",lcedil:"ļ",Lcedil:"Ļ",lceil:"⌈",lcub:"{",lcy:"л",Lcy:"Л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",leftarrow:"←",Leftarrow:"⇐",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",Leftrightarrow:"⇔",LeftRightArrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",leg:"⋚",lEg:"⪋",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",Lfr:"𝔏",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",LJcy:"Љ",ll:"≪",Ll:"⋘",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",lmidot:"ŀ",Lmidot:"Ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",Longleftarrow:"⟸",LongLeftArrow:"⟵",longleftrightarrow:"⟷",Longleftrightarrow:"⟺",LongLeftRightArrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",Longrightarrow:"⟹",LongRightArrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",Lopf:"𝕃",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",Lstrok:"Ł",lt:"<",Lt:"≪",LT:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",Map:"⤅",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",Mcy:"М",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",mfr:"𝔪",Mfr:"𝔐",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",Mopf:"𝕄",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",mu:"μ",Mu:"Μ",multimap:"⊸",mumap:"⊸",nabla:"∇",nacute:"ń",Nacute:"Ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",Ncaron:"Ň",ncedil:"ņ",Ncedil:"Ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",Ncy:"Н",ndash:"–",ne:"≠",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",nfr:"𝔫",Nfr:"𝔑",nge:"≱",ngE:"≧̸",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",ngt:"≯",nGt:"≫⃒",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",NJcy:"Њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nle:"≰",nlE:"≦̸",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nlt:"≮",nLt:"≪⃒",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",not:"¬",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrarr:"↛",nrArr:"⇏",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",Nscr:"𝒩",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsube:"⊈",nsubE:"⫅̸",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupe:"⊉",nsupE:"⫆̸",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",Ntilde:"Ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",Nu:"Ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",oacute:"ó",Oacute:"Ó",oast:"⊛",ocir:"⊚",ocirc:"ô",Ocirc:"Ô",ocy:"о",Ocy:"О",odash:"⊝",odblac:"ő",Odblac:"Ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",OElig:"Œ",ofcir:"⦿",ofr:"𝔬",Ofr:"𝔒",ogon:"˛",ograve:"ò",Ograve:"Ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",Omacr:"Ō",omega:"ω",Omega:"Ω",omicron:"ο",Omicron:"Ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",Oopf:"𝕆",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",or:"∨",Or:"⩔",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",oscr:"ℴ",Oscr:"𝒪",oslash:"ø",Oslash:"Ø",osol:"⊘",otilde:"õ",Otilde:"Õ",otimes:"⊗",Otimes:"⨷",otimesas:"⨶",ouml:"ö",Ouml:"Ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",pcy:"п",Pcy:"П",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",Pfr:"𝔓",phi:"φ",Phi:"Φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",Pi:"Π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",pr:"≺",Pr:"⪻",prap:"⪷",prcue:"≼",pre:"⪯",prE:"⪳",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",Pscr:"𝒫",psi:"ψ",Psi:"Ψ",puncsp:" ",qfr:"𝔮",Qfr:"𝔔",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",qscr:"𝓆",Qscr:"𝒬",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",racute:"ŕ",Racute:"Ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rArr:"⇒",Rarr:"↠",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",Rarrtl:"⤖",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",Rcaron:"Ř",rcedil:"ŗ",Rcedil:"Ŗ",rceil:"⌉",rcub:"}",rcy:"р",Rcy:"Р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",Rho:"Ρ",rhov:"ϱ",RightAngleBracket:"⟩",rightarrow:"→",Rightarrow:"⇒",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",sacute:"ś",Sacute:"Ś",sbquo:"‚",sc:"≻",Sc:"⪼",scap:"⪸",scaron:"š",Scaron:"Š",sccue:"≽",sce:"⪰",scE:"⪴",scedil:"ş",Scedil:"Ş",scirc:"ŝ",Scirc:"Ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",Scy:"С",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",Sfr:"𝔖",sfrown:"⌢",sharp:"♯",shchcy:"щ",SHCHcy:"Щ",shcy:"ш",SHcy:"Ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"",sigma:"σ",Sigma:"Σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",SOFTcy:"Ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",Sopf:"𝕊",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",Sscr:"𝒮",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",Star:"⋆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",sube:"⊆",subE:"⫅",subedot:"⫃",submult:"⫁",subne:"⊊",subnE:"⫋",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup:"⊃",Sup:"⋑",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supe:"⊇",supE:"⫆",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supne:"⊋",supnE:"⫌",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",tau:"τ",Tau:"Τ",tbrk:"⎴",tcaron:"ť",Tcaron:"Ť",tcedil:"ţ",Tcedil:"Ţ",tcy:"т",Tcy:"Т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",Tfr:"𝔗",there4:"∴",therefore:"∴",Therefore:"∴",theta:"θ",Theta:"Θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:" ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",thorn:"þ",THORN:"Þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",Topf:"𝕋",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",Tscr:"𝒯",tscy:"ц",TScy:"Ц",tshcy:"ћ",TSHcy:"Ћ",tstrok:"ŧ",Tstrok:"Ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uacute:"ú",Uacute:"Ú",uarr:"↑",uArr:"⇑",Uarr:"↟",Uarrocir:"⥉",ubrcy:"ў",Ubrcy:"Ў",ubreve:"ŭ",Ubreve:"Ŭ",ucirc:"û",Ucirc:"Û",ucy:"у",Ucy:"У",udarr:"⇅",udblac:"ű",Udblac:"Ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",Ufr:"𝔘",ugrave:"ù",Ugrave:"Ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",Umacr:"Ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",uogon:"ų",Uogon:"Ų",uopf:"𝕦",Uopf:"𝕌",uparrow:"↑",Uparrow:"⇑",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",updownarrow:"↕",Updownarrow:"⇕",UpDownArrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",upsilon:"υ",Upsilon:"Υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",Uring:"Ů",urtri:"◹",uscr:"𝓊",Uscr:"𝒰",utdot:"⋰",utilde:"ũ",Utilde:"Ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",Uuml:"Ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",vcy:"в",Vcy:"В",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",vee:"∨",Vee:"⋁",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",vfr:"𝔳",Vfr:"𝔙",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",Vopf:"𝕍",vprop:"∝",vrtri:"⊳",vscr:"𝓋",Vscr:"𝒱",vsubne:"⊊︀",vsubnE:"⫋︀",vsupne:"⊋︀",vsupnE:"⫌︀",Vvdash:"⊪",vzigzag:"⦚",wcirc:"ŵ",Wcirc:"Ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",wfr:"𝔴",Wfr:"𝔚",wopf:"𝕨",Wopf:"𝕎",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",Wscr:"𝒲",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",Xfr:"𝔛",xharr:"⟷",xhArr:"⟺",xi:"ξ",Xi:"Ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",Xopf:"𝕏",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",xscr:"𝓍",Xscr:"𝒳",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",Yacute:"Ý",yacy:"я",YAcy:"Я",ycirc:"ŷ",Ycirc:"Ŷ",ycy:"ы",Ycy:"Ы",yen:"¥",yfr:"𝔶",Yfr:"𝔜",yicy:"ї",YIcy:"Ї",yopf:"𝕪",Yopf:"𝕐",yscr:"𝓎",Yscr:"𝒴",yucy:"ю",YUcy:"Ю",yuml:"ÿ",Yuml:"Ÿ",zacute:"ź",Zacute:"Ź",zcaron:"ž",Zcaron:"Ž",zcy:"з",Zcy:"З",zdot:"ż",Zdot:"Ż",zeetrf:"ℨ",ZeroWidthSpace:"",zeta:"ζ",Zeta:"Ζ",zfr:"𝔷",Zfr:"ℨ",zhcy:"ж",ZHcy:"Ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",zscr:"𝓏",Zscr:"𝒵",zwj:"",zwnj:""},b={aacute:"á",Aacute:"Á",acirc:"â",Acirc:"Â",acute:"´",aelig:"æ",AElig:"Æ",agrave:"à",Agrave:"À",amp:"&",AMP:"&",aring:"å",Aring:"Å",atilde:"ã",Atilde:"Ã",auml:"ä",Auml:"Ä",brvbar:"¦",ccedil:"ç",Ccedil:"Ç",cedil:"¸",cent:"¢",copy:"©",COPY:"©",curren:"¤",deg:"°",divide:"÷",eacute:"é",Eacute:"É",ecirc:"ê",Ecirc:"Ê",egrave:"è",Egrave:"È",eth:"ð",ETH:"Ð",euml:"ë",Euml:"Ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",GT:">",iacute:"í",Iacute:"Í",icirc:"î",Icirc:"Î",iexcl:"¡",igrave:"ì",Igrave:"Ì",iquest:"¿",iuml:"ï",Iuml:"Ï",laquo:"«",lt:"<",LT:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",ntilde:"ñ",Ntilde:"Ñ",oacute:"ó",Oacute:"Ó",ocirc:"ô",Ocirc:"Ô",ograve:"ò",Ograve:"Ò",ordf:"ª",ordm:"º",oslash:"ø",Oslash:"Ø",otilde:"õ",Otilde:"Õ",ouml:"ö",Ouml:"Ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®",sect:"§",shy:"",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",thorn:"þ",THORN:"Þ",times:"×",uacute:"ú",Uacute:"Ú",ucirc:"û",Ucirc:"Û",ugrave:"ù",Ugrave:"Ù",uml:"¨",uuml:"ü",Uuml:"Ü",yacute:"ý",Yacute:"Ý",yen:"¥",yuml:"ÿ"},y={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},v=[1,2,3,4,5,6,7,8,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,64976,64977,64978,64979,64980,64981,64982,64983,64984,64985,64986,64987,64988,64989,64990,64991,64992,64993,64994,64995,64996,64997,64998,64999,65e3,65001,65002,65003,65004,65005,65006,65007,65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111],w=String.fromCharCode,E={}.hasOwnProperty,_=function(e,t){return E.call(e,t)},T=function(e,t){if(!e)return t;var r,n={};for(r in t)n[r]=_(e,r)?e[r]:t[r];return n},A=function(e,t){var r="";return e>=55296&&e<=57343||e>1114111?(t&&N("character reference outside the permissible Unicode range"),"�"):_(y,e)?(t&&N("disallowed character reference"),y[e]):(t&&function(e,t){for(var r=-1,n=e.length;++r<n;)if(e[r]==t)return!0;return!1}(v,e)&&N("disallowed character reference"),e>65535&&(r+=w((e-=65536)>>>10&1023|55296),e=56320|1023&e),r+=w(e))},x=function(e){return"&#x"+e.toString(16).toUpperCase()+";"},S=function(e){return"&#"+e+";"},N=function(e){throw Error("Parse error: "+e)},R=function(e,t){(t=T(t,R.options)).strict&&d.test(e)&&N("forbidden code point");var r=t.encodeEverything,n=t.useNamedReferences,i=t.allowUnsafeSymbols,o=t.decimal?S:x,p=function(e){return o(e.charCodeAt(0))};return r?(e=e.replace(a,(function(e){return n&&_(c,e)?"&"+c[e]+";":p(e)})),n&&(e=e.replace(/>\u20D2/g,">⃒").replace(/<\u20D2/g,"<⃒").replace(/fj/g,"fj")),n&&(e=e.replace(l,(function(e){return"&"+c[e]+";"})))):n?(i||(e=e.replace(f,(function(e){return"&"+c[e]+";"}))),e=(e=e.replace(/>\u20D2/g,">⃒").replace(/<\u20D2/g,"<⃒")).replace(l,(function(e){return"&"+c[e]+";"}))):i||(e=e.replace(f,p)),e.replace(s,(function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1);return o(1024*(t-55296)+r-56320+65536)})).replace(u,p)};R.options={allowUnsafeSymbols:!1,encodeEverything:!1,strict:!1,useNamedReferences:!1,decimal:!1};var L=function(e,t){var r=(t=T(t,L.options)).strict;return r&&h.test(e)&&N("malformed character reference"),e.replace(g,(function(e,n,i,o,s,a,u,l,c){var f,p,h,d,g,y;return n?m[g=n]:i?(g=i,(y=o)&&t.isAttributeValue?(r&&"="==y&&N("`&` did not start a character reference"),e):(r&&N("named character reference was not terminated by a semicolon"),b[g]+(y||""))):s?(h=s,p=a,r&&!p&&N("character reference was not terminated by a semicolon"),f=parseInt(h,10),A(f,r)):u?(d=u,p=l,r&&!p&&N("character reference was not terminated by a semicolon"),f=parseInt(d,16),A(f,r)):(r&&N("named character reference was not terminated by a semicolon"),e)}))};L.options={isAttributeValue:!1,strict:!1};var k={version:"1.2.0",encode:R,decode:L,escape:function(e){return e.replace(f,(function(e){return p[e]}))},unescape:L};if(n&&!n.nodeType)if(i)i.exports=k;else for(var C in k)_(k,C)&&(n[C]=k[C]);else r.he=k}(D)}(To,To.exports),function(e){var t=Hr,r=Tr,n=To.exports;const i="__mocha_id__";function o(e,t){switch(t){case"function":return"[Function]";case"object":return"{}";case"array":return"[]";default:return e.toString()}}e.inherits=r.inherits,e.escape=function(e){return n.encode(String(e),{useNamedReferences:!1})},e.isString=function(e){return"string"==typeof e},e.slug=function(e){return e.toLowerCase().replace(/\s+/g,"-").replace(/[^-\w]/g,"").replace(/-{2,}/g,"-")},e.clean=function(e){var t=(e=e.replace(/\r\n?|[\n\u2028\u2029]/g,"\n").replace(/^\uFEFF/,"").replace(/^function(?:\s*|\s[^(]*)\([^)]*\)\s*\{((?:.|\n)*?)\}$|^\([^)]*\)\s*=>\s*(?:\{((?:.|\n)*?)\}|((?:.|\n)*))$/,"$1$2$3")).match(/^\n?( *)/)[1].length,r=e.match(/^\n?(\t*)/)[1].length,n=new RegExp("^\n?"+(r?"\t":" ")+"{"+(r||t)+"}","gm");return(e=e.replace(n,"")).trim()};var s=e.canonicalType=function(e){return void 0===e?"undefined":null===e?"null":wo(e)?"buffer":null===Object.getPrototypeOf(e)?"null-prototype":Object.prototype.toString.call(e).replace(/^\[.+\s(.+?)]$/,"$1").toLowerCase()};function a(e,t,r){if(void 0===t)return c(e);var n=t*(r=r||1),i=Array.isArray(e)?"[":"{",o=Array.isArray(e)?"]":"}",u="number"==typeof e.length?e.length:Object.keys(e).length;function l(e,t){return new Array(t).join(e)}function c(e){switch(s(e)){case"null":case"undefined":e="["+e+"]";break;case"array":case"object":e=a(e,t,r+1);break;case"boolean":case"regexp":case"symbol":case"number":e=0===e&&1/e==-1/0?"-0":e.toString();break;case"bigint":e=e.toString()+"n";break;case"date":var n=isNaN(e.getTime())?e.toString():e.toISOString();e="[Date: "+n+"]";break;case"buffer":var i=e.toJSON();e="[Buffer: "+a(i=i.data&&i.type?i.data:i,2,r+1)+"]";break;default:e="[Function]"===e||"[Circular]"===e?e:JSON.stringify(e)}return e}for(var f in e)Object.prototype.hasOwnProperty.call(e,f)&&(--u,i+="\n "+l(" ",n)+(Array.isArray(e)?"":'"'+f+'": ')+c(e[f])+(u?",":""));return i+(1!==i.length?"\n"+l(" ",--n)+o:o)}e.type=function(e){if(null===e)return"null";const t=new Set(["undefined","boolean","number","string","bigint","symbol"]),r=typeof e;return"function"===r||t.has(r)?r:e instanceof String?"string":e instanceof Error?"error":Array.isArray(e)?"array":r},e.stringify=function(t){var r=s(t);if(!~["object","array","function","null-prototype"].indexOf(r)){if("buffer"===r){var n=Ii.prototype.toJSON.call(t);return a(n.data&&n.type?n.data:n,2).replace(/,(\n|$)/g,"$1")}if("string"!==r||"object"!=typeof t)return a(t);t=t.split("").reduce((function(e,t,r){return e[r]=t,e}),{}),r="object"}for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))return a(e.canonicalize(t,null,r),2).replace(/,(\n|$)/g,"$1");return o(t,r)},e.canonicalize=function(t,r,n){var i,a;function u(e,t){r.push(e),t(),r.pop()}if(n=n||s(t),-1!==(r=r||[]).indexOf(t))return"[Circular]";switch(n){case"undefined":case"buffer":case"null":i=t;break;case"array":u(t,(function(){i=t.map((function(t){return e.canonicalize(t,r)}))}));break;case"function":for(a in t){i={};break}if(!i){i=o(t,n);break}case"null-prototype":case"object":i=i||{},"null-prototype"===n&&Symbol.toStringTag in t&&(i["[Symbol.toStringTag]"]=t[Symbol.toStringTag]),u(t,(function(){Object.keys(t).sort().forEach((function(n){i[n]=e.canonicalize(t[n],r)}))}));break;case"date":case"number":case"regexp":case"boolean":case"symbol":i=t;break;default:i=t+""}return i},e.stackTraceFilter=function(){var r,n="undefined"==typeof document?{node:!0}:{},i=t.sep;return n.node?r=e.cwd()+i:(r=("undefined"==typeof location?window.location:location).href.replace(/\/[^/]*$/,"/"),i="/"),function(e){return e=(e=e.split("\n")).reduce((function(e,t){return function(e){return~e.indexOf("node_modules"+i+"mocha"+i)||~e.indexOf(i+"mocha.js")||~e.indexOf(i+"mocha.min.js")}(t)||n.node&&function(e){return~e.indexOf("(timers.js:")||~e.indexOf("(events.js:")||~e.indexOf("(node.js:")||~e.indexOf("(module.js:")||~e.indexOf("GeneratorFunctionPrototype.next (native)")||!1}(t)||(/:\d+:\d+\)?$/.test(t)&&(t=t.replace("("+r,"(")),e.push(t)),e}),[]),e.join("\n")}},e.isPromise=function(e){return"object"==typeof e&&null!==e&&"function"==typeof e.then},e.clamp=function(e,t){return Math.min(Math.max(e,t[0]),t[1])},e.noop=function(){},e.createMap=function(e){return Object.assign.apply(null,[Object.create(null)].concat(Array.prototype.slice.call(arguments)))},e.defineConstants=function(t){if("object"!==s(t)||!Object.keys(t).length)throw new TypeError("Invalid argument; expected a non-empty object");return Object.freeze(e.createMap(t))},e.cwd=function(){return S.cwd()},e.isBrowser=function(){return Boolean(true)},e.castArray=function(e){return void 0===e?[]:null===e?[null]:"object"!=typeof e||"function"!=typeof e[Symbol.iterator]&&void 0===e.length?[e]:Array.from(e)},e.constants=e.defineConstants({MOCHA_ID_PROP_NAME:i});e.uniqueID=()=>{let e="";for(let t=0;t<21;t++)e+="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_"[64*Math.random()|0];return e},e.assignNewMochaID=t=>{const r=e.uniqueID();return Object.defineProperty(t,i,{get:()=>r}),t},e.getMochaID=e=>e&&"object"==typeof e?e[i]:void 0,e.breakCircularDeps=e=>{const t=new Set;return function e(r){if(r&&"object"!=typeof r)return r;if(t.has(r))return"[Circular]";t.add(r);for(const t in r){const n=Object.getOwnPropertyDescriptor(r,t);n&&n.writable&&(r[t]=e(r[t]))}return t.delete(r),r}(e)}}(_o);var Ao=N(Object.freeze({__proto__:null,default:{}})),xo={success:"✅",error:"❌️"},So=N(U),Do=function(e){this.message=e};var No={exports:{}},Ro=1e3,Lo=60*Ro,ko=60*Lo,Co=24*ko,Oo=7*Co,qo=365.25*Co,Po=function(e,t){t=t||{};var r=typeof e;if("string"===r&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t)return;var r=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return r*qo;case"weeks":case"week":case"w":return r*Oo;case"days":case"day":case"d":return r*Co;case"hours":case"hour":case"hrs":case"hr":case"h":return r*ko;case"minutes":case"minute":case"mins":case"min":case"m":return r*Lo;case"seconds":case"second":case"secs":case"sec":case"s":return r*Ro;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}(e);if("number"===r&&isFinite(e))return t.long?function(e){var t=Math.abs(e);if(t>=Co)return Io(e,t,Co,"day");if(t>=ko)return Io(e,t,ko,"hour");if(t>=Lo)return Io(e,t,Lo,"minute");if(t>=Ro)return Io(e,t,Ro,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=Co)return Math.round(e/Co)+"d";if(t>=ko)return Math.round(e/ko)+"h";if(t>=Lo)return Math.round(e/Lo)+"m";if(t>=Ro)return Math.round(e/Ro)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Io(e,t,r,n){var i=t>=1.5*r;return Math.round(e/r)+" "+n+(i?"s":"")}var Uo=function(e){function t(e){let n,i,o,s=null;function a(...e){if(!a.enabled)return;const r=a,i=Number(new Date),o=i-(n||i);r.diff=o,r.prev=n,r.curr=i,n=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((n,i)=>{if("%%"===n)return"%";s++;const o=t.formatters[i];if("function"==typeof o){const t=e[s];n=o.call(r,t),e.splice(s,1),s--}return n})),t.formatArgs.call(r,e);(r.log||t.log).apply(r,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=r,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(i!==t.namespaces&&(i=t.namespaces,o=t.enabled(e)),o),set:e=>{s=e}}),"function"==typeof t.init&&t.init(a),a}function r(e,r){const n=t(this.namespace+(void 0===r?":":r)+e);return n.log=this.log,n}function n(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(n),...t.skips.map(n).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let r;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),i=n.length;for(r=0;r<i;r++)n[r]&&("-"===(e=n[r].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.slice(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let r,n;for(r=0,n=t.skips.length;r<n;r++)if(t.skips[r].test(e))return!1;for(r=0,n=t.names.length;r<n;r++)if(t.names[r].test(e))return!0;return!1},t.humanize=Po,t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((r=>{t[r]=e[r]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t<e.length;t++)r=(r<<5)-r+e.charCodeAt(t),r|=0;return t.colors[Math.abs(r)%t.colors.length]},t.enable(t.load()),t};!function(e,t){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(n++,"%c"===e&&(i=n))})),t.splice(i,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}!e&&void 0!==S&&"env"in S&&(e=S.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=Uo(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}(No,No.exports);const{format:Fo}=Tr,Bo=(e,t)=>{S.emitWarning?S.emitWarning(e,t):h((function(){console.warn(t+": "+e)}))},Vo=e=>{(e=String(e))&&!Vo.cache[e]&&(Vo.cache[e]=!0,Bo(e,"DeprecationWarning"))};Vo.cache={};var jo={FATAL:"ERR_MOCHA_FATAL",INVALID_ARG_TYPE:"ERR_MOCHA_INVALID_ARG_TYPE",INVALID_ARG_VALUE:"ERR_MOCHA_INVALID_ARG_VALUE",INVALID_EXCEPTION:"ERR_MOCHA_INVALID_EXCEPTION",INVALID_INTERFACE:"ERR_MOCHA_INVALID_INTERFACE",INVALID_REPORTER:"ERR_MOCHA_INVALID_REPORTER",MULTIPLE_DONE:"ERR_MOCHA_MULTIPLE_DONE",NO_FILES_MATCH_PATTERN:"ERR_MOCHA_NO_FILES_MATCH_PATTERN",UNSUPPORTED:"ERR_MOCHA_UNSUPPORTED",INSTANCE_ALREADY_RUNNING:"ERR_MOCHA_INSTANCE_ALREADY_RUNNING",INSTANCE_ALREADY_DISPOSED:"ERR_MOCHA_INSTANCE_ALREADY_DISPOSED",FORBIDDEN_EXCLUSIVITY:"ERR_MOCHA_FORBIDDEN_EXCLUSIVITY",INVALID_PLUGIN_IMPLEMENTATION:"ERR_MOCHA_INVALID_PLUGIN_IMPLEMENTATION",INVALID_PLUGIN_DEFINITION:"ERR_MOCHA_INVALID_PLUGIN_DEFINITION",TIMEOUT:"ERR_MOCHA_TIMEOUT",UNPARSABLE_FILE:"ERR_MOCHA_UNPARSABLE_FILE"};const Mo=new Set(Object.values(jo));function Ho(e,t){var r=new TypeError(e);return r.code=jo.INVALID_REPORTER,r.reporter=t,r}function Go(e,t){var r=new Error(e);return r.code=jo.INVALID_INTERFACE,r.interface=t,r}function zo(e,t,r){var n=new TypeError(e);return n.code=jo.INVALID_ARG_TYPE,n.argument=t,n.expected=r,n.actual=typeof t,n}function Yo(e,t,r){switch(t){case"reporter":return Ho(e,r);case"ui":return Go(e,r);default:throw new Error('unknown pluginType "'+t+'"')}}var $o={constants:jo,createFatalError:function(e,t){var r=new Error(e);return r.code=jo.FATAL,r.valueType=typeof t,r.value=t,r},createForbiddenExclusivityError:function(e){var t=new Error(e.isWorker?"`.only` is not supported in parallel mode":"`.only` forbidden by --forbid-only");return t.code=jo.FORBIDDEN_EXCLUSIVITY,t},createInvalidArgumentTypeError:zo,createInvalidArgumentValueError:function(e,t,r,n){var i=new TypeError(e);return i.code=jo.INVALID_ARG_VALUE,i.argument=t,i.value=r,i.reason=void 0!==n?n:"is invalid",i},createInvalidExceptionError:function(e,t){var r=new Error(e);return r.code=jo.INVALID_EXCEPTION,r.valueType=typeof t,r.value=t,r},createInvalidInterfaceError:Go,createInvalidLegacyPluginError:Yo,createInvalidPluginDefinitionError:function(e,t){const r=new Error(e);return r.code=jo.INVALID_PLUGIN_DEFINITION,r.pluginDef=t,r},createInvalidPluginError:function(...e){return Vo("Use createInvalidLegacyPluginError() instead"),Yo(...e)},createInvalidPluginImplementationError:function(e,{pluginDef:t,pluginImpl:r}={}){const n=new Error(e);return n.code=jo.INVALID_PLUGIN_IMPLEMENTATION,n.pluginDef=t,n.pluginImpl=r,n},createInvalidReporterError:Ho,createMissingArgumentError:function(e,t,r){return zo(e,t,r)},createMochaInstanceAlreadyDisposedError:function(e,t,r){var n=new Error(e);return n.code=jo.INSTANCE_ALREADY_DISPOSED,n.cleanReferencesAfterRun=t,n.instance=r,n},createMochaInstanceAlreadyRunningError:function(e,t){var r=new Error(e);return r.code=jo.INSTANCE_ALREADY_RUNNING,r.instance=t,r},createMultipleDoneError:function(e,t){var r;try{r=Fo("<%s>",e.fullTitle()),e.parent.root&&(r+=" (of root suite)")}catch(t){r=Fo("<%s> (of unknown suite)",e.title)}var n=Fo("done() called multiple times in %s %s",e.type?e.type:"unknown runnable",r);e.file&&(n+=Fo(" of file %s",e.file)),t&&(n+=Fo("; in addition, done() received error: %s",t));var i=new Error(n);return i.code=jo.MULTIPLE_DONE,i.valueType=typeof t,i.value=t,i},createNoFilesMatchPatternError:function(e,t){var r=new Error(e);return r.code=jo.NO_FILES_MATCH_PATTERN,r.pattern=t,r},createTimeoutError:function(e,t,r){const n=new Error(e);return n.code=jo.TIMEOUT,n.timeout=t,n.file=r,n},createUnparsableFileError:function(e,t){var r=new Error(e);return r.code=jo.UNPARSABLE_FILE,r},createUnsupportedError:function(e){var t=new Error(e);return t.code=jo.UNSUPPORTED,t},deprecate:Vo,isMochaError:e=>Boolean(e&&"object"==typeof e&&Mo.has(e.code)),warn:e=>{e&&Bo(e)}},Wo=So.EventEmitter,Jo=Do,Ko=No.exports("mocha:runnable"),Zo=Ei,Qo=_o;const{createInvalidExceptionError:Xo,createMultipleDoneError:es,createTimeoutError:ts}=$o;var rs=D.Date,ns=D.setTimeout,is=D.clearTimeout,os=Object.prototype.toString,ss=Math.pow(2,31)-1,as=us;function us(e,t){this.title=e,this.fn=t,this.body=(t||"").toString(),this.async=t&&t.length,this.sync=!this.async,this._timeout=2e3,this._slow=75,this._retries=-1,Qo.assignNewMochaID(this),Object.defineProperty(this,"id",{get(){return Qo.getMochaID(this)}}),this.reset()}Qo.inherits(us,Wo),us.prototype.reset=function(){this.timedOut=!1,this._currentRetry=0,this.pending=!1,delete this.state,delete this.err},us.prototype.timeout=function(e){if(!arguments.length)return this._timeout;"string"==typeof e&&(e=Zo(e));var t=[0,ss];return e=Qo.clamp(e,t),this._timeout=e===t[0]||e===t[1]?0:e,Ko("timeout %d",this._timeout),this.timer&&this.resetTimeout(),this},us.prototype.slow=function(e){return arguments.length&&void 0!==e?("string"==typeof e&&(e=Zo(e)),Ko("slow %d",e),this._slow=e,this):this._slow},us.prototype.skip=function(){throw this.pending=!0,new Jo("sync skip; aborting execution")},us.prototype.isPending=function(){return this.pending||this.parent&&this.parent.isPending()},us.prototype.isFailed=function(){return!this.isPending()&&this.state===ls.STATE_FAILED},us.prototype.isPassed=function(){return!this.isPending()&&this.state===ls.STATE_PASSED},us.prototype.retries=function(e){if(!arguments.length)return this._retries;this._retries=e},us.prototype.currentRetry=function(e){if(!arguments.length)return this._currentRetry;this._currentRetry=e},us.prototype.fullTitle=function(){return this.titlePath().join(" ")},us.prototype.titlePath=function(){return this.parent.titlePath().concat([this.title])},us.prototype.clearTimeout=function(){is(this.timer)},us.prototype.resetTimeout=function(){var e=this,t=this.timeout()||ss;this.clearTimeout(),this.timer=ns((function(){0!==e.timeout()&&(e.callback(e._timeoutError(t)),e.timedOut=!0)}),t)},us.prototype.globals=function(e){if(!arguments.length)return this._allowedGlobals;this._allowedGlobals=e},us.prototype.run=function(e){var t,r=this,n=new rs,i=this.ctx,o=!1;if(this.isPending())return e();function s(i){var s=r.timeout();if(!r.timedOut){if(t)return function(e){o||(o=!0,r.emit("error",es(r,e)))}(i);r.clearTimeout(),r.duration=new rs-n,t=!0,!i&&r.duration>s&&s>0&&(i=r._timeoutError(s)),e(i)}}if(i&&i.runnable&&i.runnable(this),this.callback=s,this.fn&&"function"!=typeof this.fn.call)s(new TypeError("A runnable must be passed a function as its second argument."));else if(this.async){this.resetTimeout(),this.skip=function(){throw this.pending=!0,s(),new Jo("async skip; aborting execution")};try{!function(e){var t=e.call(i,(function(e){return e instanceof Error||"[object Error]"===os.call(e)?s(e):e?"[object Object]"===Object.prototype.toString.call(e)?s(new Error("done() invoked with non-Error: "+JSON.stringify(e))):s(new Error("done() invoked with non-Error: "+e)):t&&Qo.isPromise(t)?s(new Error("Resolution method is overspecified. Specify a callback *or* return a Promise; not both.")):void s()}))}(this.fn)}catch(e){if(o=!0,e instanceof Jo)return;if(this.allowUncaught)throw e;s(us.toValueOrError(e))}}else try{!function(e){var t=e.call(i);if(t&&"function"==typeof t.then)r.resetTimeout(),t.then((function(){return s(),null}),(function(e){s(e||new Error("Promise rejected with no or falsy reason"))}));else{if(r.asyncOnly)return s(new Error("--async-only option in use without declaring `done()` or returning a promise"));s()}}(this.fn)}catch(e){if(o=!0,e instanceof Jo)return s();if(this.allowUncaught)throw e;s(us.toValueOrError(e))}},us.prototype._timeoutError=function(e){let t=`Timeout of ${e}ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.`;return this.file&&(t+=" ("+this.file+")"),ts(t,e,this.file)};var ls=Qo.defineConstants({STATE_FAILED:"failed",STATE_PASSED:"passed",STATE_PENDING:"pending"});us.toValueOrError=function(e){return e||Xo("Runnable failed with falsy or undefined exception. Please throw an Error instead.",e)},us.constants=ls;var cs={exports:{}},fs=as;const{inherits:ps,constants:hs}=_o,{MOCHA_ID_PROP_NAME:ds}=hs;var gs=ms;function ms(e,t){fs.call(this,e,t),this.type="hook"}ps(ms,fs),ms.prototype.reset=function(){fs.prototype.reset.call(this),delete this._error},ms.prototype.error=function(e){if(!arguments.length)return e=this._error,this._error=null,e;this._error=e},ms.prototype.serialize=function(){return{$$currentRetry:this.currentRetry(),$$fullTitle:this.fullTitle(),$$isPending:Boolean(this.isPending()),$$titlePath:this.titlePath(),ctx:this.ctx&&this.ctx.currentTest?{currentTest:{title:this.ctx.currentTest.title,[ds]:this.ctx.currentTest.id}}:{},duration:this.duration,file:this.file,parent:{$$fullTitle:this.parent.fullTitle(),[ds]:this.parent.id},state:this.state,title:this.title,type:this.type,[ds]:this.id}},function(e,t){const{EventEmitter:r}=So,n=gs;var{assignNewMochaID:i,clamp:o,constants:s,defineConstants:a,getMochaID:u,inherits:l,isString:c}=_o;const f=No.exports("mocha:suite"),p=Ei,h=$o,{MOCHA_ID_PROP_NAME:d}=s;function g(e,t,r){if(!c(e))throw h.createInvalidArgumentTypeError('Suite argument "title" must be a string. Received type "'+typeof e+'"',"title","string");function n(){}this.title=e,n.prototype=t,this.ctx=new n,this.suites=[],this.tests=[],this.root=!0===r,this.pending=!1,this._retries=-1,this._beforeEach=[],this._beforeAll=[],this._afterEach=[],this._afterAll=[],this._timeout=2e3,this._slow=75,this._bail=!1,this._onlyTests=[],this._onlySuites=[],i(this),Object.defineProperty(this,"id",{get(){return u(this)}}),this.reset()}e.exports=g,g.create=function(e,t){var r=new g(t,e.ctx);return r.parent=e,t=r.fullTitle(),e.addSuite(r),r},l(g,r),g.prototype.reset=function(){function e(e){e.reset()}this.delayed=!1,this.suites.forEach(e),this.tests.forEach(e),this._beforeEach.forEach(e),this._afterEach.forEach(e),this._beforeAll.forEach(e),this._afterAll.forEach(e)},g.prototype.clone=function(){var e=new g(this.title);return f("clone"),e.ctx=this.ctx,e.root=this.root,e.timeout(this.timeout()),e.retries(this.retries()),e.slow(this.slow()),e.bail(this.bail()),e},g.prototype.timeout=function(e){if(!arguments.length)return this._timeout;"string"==typeof e&&(e=p(e));var t=Math.pow(2,31)-1;return e=o(e,[0,t]),f("timeout %d",e),this._timeout=parseInt(e,10),this},g.prototype.retries=function(e){return arguments.length?(f("retries %d",e),this._retries=parseInt(e,10)||0,this):this._retries},g.prototype.slow=function(e){return arguments.length?("string"==typeof e&&(e=p(e)),f("slow %d",e),this._slow=e,this):this._slow},g.prototype.bail=function(e){return arguments.length?(f("bail %s",e),this._bail=e,this):this._bail},g.prototype.isPending=function(){return this.pending||this.parent&&this.parent.isPending()},g.prototype._createHook=function(e,t){var r=new n(e,t);return r.parent=this,r.timeout(this.timeout()),r.retries(this.retries()),r.slow(this.slow()),r.ctx=this.ctx,r.file=this.file,r},g.prototype.beforeAll=function(e,t){if(this.isPending())return this;"function"==typeof e&&(e=(t=e).name),e='"before all" hook'+(e?": "+e:"");var r=this._createHook(e,t);return this._beforeAll.push(r),this.emit(m.EVENT_SUITE_ADD_HOOK_BEFORE_ALL,r),this},g.prototype.afterAll=function(e,t){if(this.isPending())return this;"function"==typeof e&&(e=(t=e).name),e='"after all" hook'+(e?": "+e:"");var r=this._createHook(e,t);return this._afterAll.push(r),this.emit(m.EVENT_SUITE_ADD_HOOK_AFTER_ALL,r),this},g.prototype.beforeEach=function(e,t){if(this.isPending())return this;"function"==typeof e&&(e=(t=e).name),e='"before each" hook'+(e?": "+e:"");var r=this._createHook(e,t);return this._beforeEach.push(r),this.emit(m.EVENT_SUITE_ADD_HOOK_BEFORE_EACH,r),this},g.prototype.afterEach=function(e,t){if(this.isPending())return this;"function"==typeof e&&(e=(t=e).name),e='"after each" hook'+(e?": "+e:"");var r=this._createHook(e,t);return this._afterEach.push(r),this.emit(m.EVENT_SUITE_ADD_HOOK_AFTER_EACH,r),this},g.prototype.addSuite=function(e){return e.parent=this,e.root=!1,e.timeout(this.timeout()),e.retries(this.retries()),e.slow(this.slow()),e.bail(this.bail()),this.suites.push(e),this.emit(m.EVENT_SUITE_ADD_SUITE,e),this},g.prototype.addTest=function(e){return e.parent=this,e.timeout(this.timeout()),e.retries(this.retries()),e.slow(this.slow()),e.ctx=this.ctx,this.tests.push(e),this.emit(m.EVENT_SUITE_ADD_TEST,e),this},g.prototype.fullTitle=function(){return this.titlePath().join(" ")},g.prototype.titlePath=function(){var e=[];return this.parent&&(e=e.concat(this.parent.titlePath())),this.root||e.push(this.title),e},g.prototype.total=function(){return this.suites.reduce((function(e,t){return e+t.total()}),0)+this.tests.length},g.prototype.eachTest=function(e){return this.tests.forEach(e),this.suites.forEach((function(t){t.eachTest(e)})),this},g.prototype.run=function(){this.root&&this.emit(m.EVENT_ROOT_SUITE_RUN)},g.prototype.hasOnly=function(){return this._onlyTests.length>0||this._onlySuites.length>0||this.suites.some((function(e){return e.hasOnly()}))},g.prototype.filterOnly=function(){if(this._onlyTests.length)this.tests=this._onlyTests,this.suites=[];else{this.tests=[],this._onlySuites.forEach((function(e){e.hasOnly()&&e.filterOnly()}));var e=this._onlySuites;this.suites=this.suites.filter((function(t){return-1!==e.indexOf(t)||t.filterOnly()}))}return this.tests.length>0||this.suites.length>0},g.prototype.appendOnlySuite=function(e){this._onlySuites.push(e)},g.prototype.markOnly=function(){this.parent&&this.parent.appendOnlySuite(this)},g.prototype.appendOnlyTest=function(e){this._onlyTests.push(e)},g.prototype.getHooks=function(e){return this["_"+e]},g.prototype.dispose=function(){this.suites.forEach((function(e){e.dispose()})),this.cleanReferences()},g.prototype.cleanReferences=function(){function e(e){for(var t=0;t<e.length;t++)delete e[t].fn}Array.isArray(this._beforeAll)&&e(this._beforeAll),Array.isArray(this._beforeEach)&&e(this._beforeEach),Array.isArray(this._afterAll)&&e(this._afterAll),Array.isArray(this._afterEach)&&e(this._afterEach);for(var t=0;t<this.tests.length;t++)delete this.tests[t].fn},g.prototype.serialize=function(){return{_bail:this._bail,$$fullTitle:this.fullTitle(),$$isPending:Boolean(this.isPending()),root:this.root,title:this.title,[d]:this.id,parent:this.parent?{[d]:this.parent.id}:null}};var m=a({EVENT_FILE_POST_REQUIRE:"post-require",EVENT_FILE_PRE_REQUIRE:"pre-require",EVENT_FILE_REQUIRE:"require",EVENT_ROOT_SUITE_RUN:"run",HOOK_TYPE_AFTER_ALL:"afterAll",HOOK_TYPE_AFTER_EACH:"afterEach",HOOK_TYPE_BEFORE_ALL:"beforeAll",HOOK_TYPE_BEFORE_EACH:"beforeEach",EVENT_SUITE_ADD_SUITE:"suite",EVENT_SUITE_ADD_HOOK_AFTER_ALL:"afterAll",EVENT_SUITE_ADD_HOOK_AFTER_EACH:"afterEach",EVENT_SUITE_ADD_HOOK_BEFORE_ALL:"beforeAll",EVENT_SUITE_ADD_HOOK_BEFORE_EACH:"beforeEach",EVENT_SUITE_ADD_TEST:"test"});g.constants=m}(cs);var bs=So.EventEmitter,ys=Do,vs=_o,ws=No.exports("mocha:runner"),Es=as,_s=cs.exports,Ts=_s.constants.HOOK_TYPE_BEFORE_EACH,As=_s.constants.HOOK_TYPE_AFTER_EACH,xs=_s.constants.HOOK_TYPE_AFTER_ALL,Ss=_s.constants.HOOK_TYPE_BEFORE_ALL,Ds=_s.constants.EVENT_ROOT_SUITE_RUN,Ns=Es.constants.STATE_FAILED,Rs=Es.constants.STATE_PASSED,Ls=Es.constants.STATE_PENDING,ks=vs.stackTraceFilter(),Cs=vs.stringify;const{createInvalidExceptionError:Os,createUnsupportedError:qs,createFatalError:Ps,isMochaError:Is,constants:Us}=$o;var Fs=["setTimeout","clearTimeout","setInterval","clearInterval","XMLHttpRequest","Date","setImmediate","clearImmediate"],Bs=vs.defineConstants({EVENT_HOOK_BEGIN:"hook",EVENT_HOOK_END:"hook end",EVENT_RUN_BEGIN:"start",EVENT_DELAY_BEGIN:"waiting",EVENT_DELAY_END:"ready",EVENT_RUN_END:"end",EVENT_SUITE_BEGIN:"suite",EVENT_SUITE_END:"suite end",EVENT_TEST_BEGIN:"test",EVENT_TEST_END:"test end",EVENT_TEST_FAIL:"fail",EVENT_TEST_PASS:"pass",EVENT_TEST_PENDING:"pending",EVENT_TEST_RETRY:"retry",STATE_IDLE:"idle",STATE_RUNNING:"running",STATE_STOPPED:"stopped"});class Vs extends bs{constructor(e,t={}){super();var r=this;this._globals=[],this._abort=!1,this.suite=e,this._opts=t,this.state=Bs.STATE_IDLE,this.total=e.total(),this.failures=0,this._eventListeners=new Map,this.on(Bs.EVENT_TEST_END,(function(e){if("test"===e.type&&e.retriedTest()&&e.parent){var t=e.parent.tests&&e.parent.tests.indexOf(e.retriedTest());t>-1&&(e.parent.tests[t]=e)}r.checkGlobals(e)})),this.on(Bs.EVENT_HOOK_END,(function(e){r.checkGlobals(e)})),this._defaultGrep=/.*/,this.grep(this._defaultGrep),this.globals(this.globalProps()),this.uncaught=this._uncaught.bind(this),this.unhandled=(e,t)=>{if(Is(e))ws("trapped unhandled rejection coming out of Mocha; forwarding to uncaught handler:",e),this.uncaught(e);else{ws("trapped unhandled rejection from (probably) user code; re-emitting on process"),this._removeEventListener(S,"unhandledRejection",this.unhandled);try{S.emit("unhandledRejection",e,t)}finally{this._addEventListener(S,"unhandledRejection",this.unhandled)}}}}}function js(e){return e instanceof Error||e&&"string"==typeof e.message}function Ms(e){return new Error(`the ${vs.canonicalType(e)} ${Cs(e)} was thrown, throw an Error :)`)}Vs.immediately=D.setImmediate||h,Vs.prototype._addEventListener=function(e,t,r){if(ws("_addEventListener(): adding for event %s; %d current listeners",t,e.listenerCount(t)),this._eventListeners.has(e)&&this._eventListeners.get(e).has(t)&&this._eventListeners.get(e).get(t).has(r))return void ws("warning: tried to attach duplicate event listener for %s",t);e.on(t,r);const n=this._eventListeners.has(e)?this._eventListeners.get(e):new Map,i=n.has(t)?n.get(t):new Set;i.add(r),n.set(t,i),this._eventListeners.set(e,n)},Vs.prototype._removeEventListener=function(e,t,r){if(e.removeListener(t,r),this._eventListeners.has(e)){const n=this._eventListeners.get(e);if(n.has(t)){const e=n.get(t);e.delete(r),e.size||n.delete(t)}n.size||this._eventListeners.delete(e)}else ws("trying to remove listener for untracked object %s",e)},Vs.prototype.dispose=function(){this.removeAllListeners(),this._eventListeners.forEach(((e,t)=>{e.forEach(((e,r)=>{e.forEach((e=>{t.removeListener(r,e)}))}))})),this._eventListeners.clear()},Vs.prototype.grep=function(e,t){return ws("grep(): setting to %s",e),this._grep=e,this._invert=t,this.total=this.grepTotal(this.suite),this},Vs.prototype.grepTotal=function(e){var t=this,r=0;return e.eachTest((function(e){var n=t._grep.test(e.fullTitle());t._invert&&(n=!n),n&&r++})),r},Vs.prototype.globalProps=function(){for(var e=Object.keys(D),t=0;t<Fs.length;++t)~e.indexOf(Fs[t])||e.push(Fs[t]);return e},Vs.prototype.globals=function(e){return arguments.length?(ws("globals(): setting to %O",e),this._globals=this._globals.concat(e),this):this._globals},Vs.prototype.checkGlobals=function(e){if(this.checkLeaks){var t,r=this._globals,n=this.globalProps();if(e&&(r=r.concat(e._allowedGlobals||[])),this.prevGlobalsLength!==n.length&&(this.prevGlobalsLength=n.length,t=function(e,t){return t.filter((function(t){if(/^\d+/.test(t))return!1;if(D.navigator&&/^getInterface/.test(t))return!1;if(D.navigator&&/^\d+/.test(t))return!1;if(/^mocha-/.test(t))return!1;var r=e.filter((function(e){return~e.indexOf("*")?0===t.indexOf(e.split("*")[0]):t===e}));return!(r.length||D.navigator&&"onerror"===t)}))}(r,n),this._globals=this._globals.concat(t),t.length)){var i=`global leak(s) detected: ${t.map((e=>`'${e}'`)).join(", ")}`;this.fail(e,new Error(i))}}},Vs.prototype.fail=function(e,t,r){if(r=!0===r,!e.isPending()||r){if(this.state===Bs.STATE_STOPPED){if(t.code===Us.MULTIPLE_DONE)throw t;throw Ps("Test failed after root suite execution completed!",t)}if(++this.failures,ws("total number of failures: %d",this.failures),e.state=Ns,js(t)||(t=Ms(t)),!this.fullStackTrace){const e=new Set;let r=t;for(;r&&r.stack&&!e.has(r);){e.add(r);try{r.stack=ks(r.stack)}catch(e){}r=r.cause}}this.emit(Bs.EVENT_TEST_FAIL,e,t)}},Vs.prototype.hook=function(e,t){if(this._opts.dryRun)return t();var r=this.suite,n=r.getHooks(e),i=this;function o(s){var a=n[s];if(!a)return t();function u(e){var t;(e.originalTitle=e.originalTitle||e.title,e.ctx&&e.ctx.currentTest)?e.title=`${e.originalTitle} for "${e.ctx.currentTest.title}"`:(t=e.parent.title?e.parent.title:e.parent.root?"{root}":"",e.title=`${e.originalTitle} in "${t}"`)}i.currentRunnable=a,a.ctx.currentTest=e===Ss?a.parent.tests[0]:e===xs?a.parent.tests[a.parent.tests.length-1]:i.test,u(a),a.allowUncaught=i.allowUncaught,i.emit(Bs.EVENT_HOOK_BEGIN,a),a.listeners("error").length||i._addEventListener(a,"error",(function(e){i.fail(a,e)})),a.run((function(l){var c=a.error();if(c&&i.fail(i.test,c),a.pending)if(e===As)i.test&&(i.test.pending=!0);else{if(e===Ts)return i.test&&(i.test.pending=!0),i.emit(Bs.EVENT_HOOK_END,a),a.pending=!1,t(new Error("abort hookDown"));if(e!==Ss){a.pending=!1;var f=qs("`this.skip` forbidden");return i.fail(a,f),t(f)}r.tests.forEach((function(e){e.pending=!0})),r.suites.forEach((function(e){e.pending=!0})),n=[]}else if(l)return i.fail(a,l),t(l);i.emit(Bs.EVENT_HOOK_END,a),delete a.ctx.currentTest,u(a),o(++s)}))}Vs.immediately((function(){o(0)}))},Vs.prototype.hooks=function(e,t,r){var n=this,i=this.suite;!function o(s){if(n.suite=s,!s)return n.suite=i,r();n.hook(e,(function(e){if(e){var s=n.suite;return n.suite=i,r(e,s)}o(t.pop())}))}(t.pop())},Vs.prototype.hookUp=function(e,t){var r=[this.suite].concat(this.parents()).reverse();this.hooks(e,r,t)},Vs.prototype.hookDown=function(e,t){var r=[this.suite].concat(this.parents());this.hooks(e,r,t)},Vs.prototype.parents=function(){for(var e=this.suite,t=[];e.parent;)e=e.parent,t.push(e);return t},Vs.prototype.runTest=function(e){if(this._opts.dryRun)return Vs.immediately(e);var t=this,r=this.test;if(r){if(this.asyncOnly&&(r.asyncOnly=!0),this._addEventListener(r,"error",(function(e){t.fail(r,e)})),this.allowUncaught)return r.allowUncaught=!0,r.run(e);try{r.run(e)}catch(t){e(t)}}},Vs.prototype.runTests=function(e,t){var r,n=this,i=e.tests.slice();function o(e,r,i){var s=n.suite;n.suite=i?r.parent:r,n.suite?n.hookUp(As,(function(e,i){if(n.suite=s,e)return o(e,i,!0);t(r)})):(n.suite=s,t(r))}function s(a,u){if(n.failures&&e._bail&&(i=[]),n._abort)return t();if(a)return o(0,u,!0);if(!(r=i.shift()))return t();var l=n._grep.test(r.fullTitle());if(n._invert&&(l=!l),l){if(r.isPending())return n.forbidPending?n.fail(r,new Error("Pending test forbidden"),!0):(r.state=Ls,n.emit(Bs.EVENT_TEST_PENDING,r)),n.emit(Bs.EVENT_TEST_END,r),s();n.emit(Bs.EVENT_TEST_BEGIN,n.test=r),n.hookDown(Ts,(function(e,t){if(r.isPending()){n.forbidPending?n.fail(r,new Error("Pending test forbidden"),!0):(r.state=Ls,n.emit(Bs.EVENT_TEST_PENDING,r)),n.emit(Bs.EVENT_TEST_END,r);var a=n.suite;return n.suite=t||n.suite,n.hookUp(As,(function(e,t){n.suite=a,s(e,t)}))}if(e)return o(0,t,!1);n.currentRunnable=n.test,n.runTest((function(e){if((r=n.test).pending)return n.forbidPending?n.fail(r,new Error("Pending test forbidden"),!0):(r.state=Ls,n.emit(Bs.EVENT_TEST_PENDING,r)),n.emit(Bs.EVENT_TEST_END,r),n.hookUp(As,s);if(e){var t=r.currentRetry();if(t<r.retries()){var o=r.clone();return o.currentRetry(t+1),i.unshift(o),n.emit(Bs.EVENT_TEST_RETRY,r,e),n.hookUp(As,s)}return n.fail(r,e),n.emit(Bs.EVENT_TEST_END,r),n.hookUp(As,s)}r.state=Rs,n.emit(Bs.EVENT_TEST_PASS,r),n.emit(Bs.EVENT_TEST_END,r),n.hookUp(As,s)}))}))}else n._grep!==n._defaultGrep?Vs.immediately(s):s()}this.next=s,this.hookErr=o,s()},Vs.prototype.runSuite=function(e,t){var r=0,n=this,i=this.grepTotal(e);if(ws("runSuite(): running %s",e.fullTitle()),!i||n.failures&&e._bail)return ws("runSuite(): bailing"),t();function o(t){if(t)return t===e?s():s(t);if(n._abort)return s();var i=e.suites[r++];if(!i)return s();n._grep!==n._defaultGrep?Vs.immediately((function(){n.runSuite(i,o)})):n.runSuite(i,o)}function s(r){n.suite=e,n.nextSuite=o,delete n.test,n.hook(xs,(function(){n.emit(Bs.EVENT_SUITE_END,e),t(r)}))}this.emit(Bs.EVENT_SUITE_BEGIN,this.suite=e),this.nextSuite=o,this.hook(Ss,(function(t){if(t)return s();n.runTests(e,o)}))},Vs.prototype._uncaught=function(e){if(!(this instanceof Vs))throw Ps("Runner#uncaught() called with invalid context",this);if(e instanceof ys)ws("uncaught(): caught a Pending");else{if(this.allowUncaught&&!vs.isBrowser())throw ws("uncaught(): bubbling exception due to --allow-uncaught"),e;if(this.state===Bs.STATE_STOPPED)throw ws("uncaught(): throwing after run has completed!"),e;e?ws("uncaught(): got truthy exception %O",e):(ws("uncaught(): undefined/falsy exception"),e=Os("Caught falsy/undefined exception which would otherwise be uncaught. No stack trace found; try a debugger",e)),js(e)||(e=Ms(e),ws('uncaught(): converted "error" %o to Error',e)),e.uncaught=!0;var t=this.currentRunnable;if(!t)return t=new Es("Uncaught error outside test suite"),ws("uncaught(): no current Runnable; created a phony one"),t.parent=this.suite,void(this.state===Bs.STATE_RUNNING?(ws("uncaught(): failing gracefully"),this.fail(t,e)):(ws("uncaught(): test run has not yet started; unrecoverable"),this.emit(Bs.EVENT_RUN_BEGIN),this.fail(t,e),this.emit(Bs.EVENT_RUN_END)));if(t.clearTimeout(),!t.isFailed())return t.isPending()?(ws("uncaught(): pending Runnable wound up failing!"),void this.fail(t,e,!0)):t.isPassed()?(ws("uncaught(): Runnable has already passed; bailing gracefully"),this.fail(t,e),void this.abort()):(ws("uncaught(): forcing Runnable to complete with Error"),t.callback(e));ws("uncaught(): Runnable has already failed")}},Vs.prototype.run=function(e,t={}){var r=this.suite,n=t.options||{};ws("run(): got options: %O",n),e=e||function(){};const i=()=>{!this.total&&this._opts.failZero&&(this.failures=1),ws("run(): root suite completed; emitting %s",Bs.EVENT_RUN_END),this.emit(Bs.EVENT_RUN_END)},o=()=>{ws("run(): emitting %s",Bs.EVENT_RUN_BEGIN),this.emit(Bs.EVENT_RUN_BEGIN),ws("run(): emitted %s",Bs.EVENT_RUN_BEGIN),this.runSuite(r,i)},s=()=>(ws("run(): starting"),r.hasOnly()&&(r.filterOnly(),ws("run(): filtered exclusive Runnables")),this.state=Bs.STATE_RUNNING,this._opts.delay&&(this.emit(Bs.EVENT_DELAY_END),ws('run(): "delay" ended')),o());return this._opts.cleanReferencesAfterRun&&this.on(Bs.EVENT_SUITE_END,(e=>{e.cleanReferences()})),this.on(Bs.EVENT_RUN_END,(function(){this.state=Bs.STATE_STOPPED,ws("run(): emitted %s",Bs.EVENT_RUN_END),e(this.failures)})),this._removeEventListener(S,"uncaughtException",this.uncaught),this._removeEventListener(S,"unhandledRejection",this.unhandled),this._addEventListener(S,"uncaughtException",this.uncaught),this._addEventListener(S,"unhandledRejection",this.unhandled),this._opts.delay?(this.emit(Bs.EVENT_DELAY_BEGIN,r),r.once(Ds,s),ws("run(): waiting for green light due to --delay")):Vs.immediately(s),this},Vs.prototype.linkPartialObjects=function(e){return this},Vs.prototype.runAsync=async function(e={}){return new Promise((t=>{this.run(t,e)}))},Vs.prototype.abort=function(){return ws("abort(): aborting"),this._abort=!0,this},Vs.prototype.isParallelMode=function(){return!1},Vs.prototype.workerReporter=function(){throw qs("workerReporter() not supported in serial mode")},Vs.constants=Bs;var Hs=Vs;!function(e,t){var r=Yr,n=Ei,i=_o,o=Ao,s=xo,a=Hs.constants,u=a.EVENT_TEST_PASS,l=a.EVENT_TEST_FAIL;const c=i.isBrowser();t=e.exports=y;var f=c||S.stdout.isTTY&&S.stderr.isTTY,p=console.log;t.useColors=!c&&(o.stdout||void 0!==S.env.MOCHA_COLORS),t.inlineDiffs=!1,t.maxDiffSize=8192,t.colors={pass:90,fail:31,"bright pass":92,"bright fail":91,"bright yellow":93,pending:36,suite:0,"error title":0,"error message":31,"error stack":90,checkmark:32,fast:90,medium:33,slow:31,green:32,light:90,"diff gutter":90,"diff added":32,"diff removed":31,"diff added inline":"30;42","diff removed inline":"30;41"},t.symbols={ok:s.success,err:s.error,dot:".",comma:",",bang:"!"};var h=t.color=function(e,r){return t.useColors?"["+t.colors[e]+"m"+r+"[0m":String(r)};t.window={width:75},f&&(t.window.width=c?("innerHeight"in D?[D.innerHeight,D.innerWidth]:[640,480])[1]:S.stdout.getWindowSize(1)[0]),t.cursor={hide:function(){f&&S.stdout.write("[?25l")},show:function(){f&&S.stdout.write("[?25h")},deleteLine:function(){f&&S.stdout.write("[2K")},beginningOfLine:function(){f&&S.stdout.write("[0G")},CR:function(){f?(t.cursor.deleteLine(),t.cursor.beginningOfLine()):S.stdout.write("\r")}};var d=t.showDiff=function(e){return e&&!1!==e.showDiff&&(t=e.actual,r=e.expected,w.call(t)===w.call(r))&&void 0!==e.expected;var t,r};function g(e){i.isString(e.actual)&&i.isString(e.expected)||(e.actual=i.stringify(e.actual),e.expected=i.stringify(e.expected))}var m=t.generateDiff=function(e,n){try{var i=t.maxDiffSize,o=0;i>0&&(o=Math.max(e.length-i,n.length-i),e=e.slice(0,i),n=n.slice(0,i));let s=t.inlineDiffs?function(e,t){var n=function(e,t){return r.diffWordsWithSpace(e,t).map((function(e){return e.added?v("diff added inline",e.value):e.removed?v("diff removed inline",e.value):e.value})).join("")}(e,t),i=n.split("\n");if(i.length>4){var o=String(i.length).length;n=i.map((function(e,t){return function(e,t){return e=String(e),Array(t-e.length+1).join(" ")+e}(++t,o)+" | "+e})).join("\n")}return n="\n"+h("diff removed inline","actual")+" "+h("diff added inline","expected")+"\n\n"+n+"\n",n=n.replace(/^/gm," "),n}(e,n):function(e,t){var n=" ";function i(e){return"+"===e[0]?n+v("diff added",e):"-"===e[0]?n+v("diff removed",e):e.match(/@@/)?"--":e.match(/\\ No newline/)?null:n+e}function o(e){return null!=e}var s=r.createPatch("string",e,t),a=s.split("\n").splice(5);return"\n "+v("diff added","+ expected")+" "+v("diff removed","- actual")+"\n\n"+a.map(i).filter(o).join("\n")}(e,n);return o>0&&(s=`${s}\n [mocha] output truncated to ${i} characters, see "maxDiffSize" reporter-option\n`),s}catch(e){return"\n "+h("diff added","+ expected")+" "+h("diff removed","- actual: failed to generate Mocha diff")+"\n"}},b=function(e,t){if(t&&t.has(e))return{message:"",msg:"<circular>",stack:""};var r,n;r="function"==typeof e.inspect?e.inspect()+"":e.message&&"function"==typeof e.message.toString?e.message+"":"";var i=e.stack||r,o=r?i.indexOf(r):-1;if(-1===o)n=r;else if(o+=r.length,n=i.slice(0,o),i=i.slice(o+1),e.cause){(t=t||new Set).add(e);const r=b(e.cause,t);i+="\n Caused by: "+r.msg+(r.stack?"\n"+r.stack:"")}return{message:r,msg:n,stack:i}};function y(e,r){var n=this.failures=[];if(!e)throw new TypeError("Missing runner argument");this.options=r||{},this.runner=e,this.stats=e.stats;var i=this.options.reporterOption&&this.options.reporterOption.maxDiffSize;void 0===i||isNaN(Number(i))||(t.maxDiffSize=Number(i)),e.on(u,(function(e){e.duration>e.slow()?e.speed="slow":e.duration>e.slow()/2?e.speed="medium":e.speed="fast"})),e.on(l,(function(e,t){d(t)&&g(t),e.err&&t instanceof Error?e.err.multiple=(e.err.multiple||[]).concat(t):e.err=t,n.push(e)}))}function v(e,t){return t.split("\n").map((function(t){return h(e,t)})).join("\n")}t.list=function(e){var r,n;y.consoleLog(),e.forEach((function(e,i){var o,s=h("error title"," %s) %s:\n")+h("error message"," %s")+h("error stack","\n%s\n");e.err&&e.err.multiple?(n!==e&&(n=e,r=[e.err].concat(e.err.multiple)),o=r.shift()):o=e.err;var{message:a,msg:u,stack:l}=b(o);if(o.uncaught&&(u="Uncaught "+u),!t.hideDiff&&d(o)){g(o),s=h("error title"," %s) %s:\n%s")+h("error stack","\n%s\n");var c=a.match(/^([^:]+): expected/);u="\n "+h("error message",c?c[1]:u),u+=m(o.actual,o.expected)}l=l.replace(/^/gm," ");var f="";e.titlePath().forEach((function(e,t){0!==t&&(f+="\n ");for(var r=0;r<t;r++)f+=" ";f+=e})),y.consoleLog(s,i+1,f,u,l)}))},y.prototype.epilogue=function(){var e,t=this.stats;y.consoleLog(),e=h("bright pass"," ")+h("green"," %d passing")+h("light"," (%s)"),y.consoleLog(e,t.passes||0,n(t.duration)),t.pending&&(e=h("pending"," ")+h("pending"," %d pending"),y.consoleLog(e,t.pending)),t.failures&&(e=h("fail"," %d failing"),y.consoleLog(e,t.failures),y.list(this.failures),y.consoleLog()),y.consoleLog()};var w=Object.prototype.toString;y.consoleLog=p,y.abstract=!0}(zr,zr.exports);var Gs={exports:{}};!function(e,t){var r=zr.exports,n=_o.inherits,i=Hs.constants,o=i.EVENT_TEST_PASS,s=i.EVENT_TEST_FAIL,a=i.EVENT_RUN_BEGIN,u=i.EVENT_TEST_PENDING,l=i.EVENT_RUN_END;function c(e,t){r.call(this,e,t);var n=this,i=.75*r.window.width|0,c=-1;e.on(a,(function(){S.stdout.write("\n")})),e.on(u,(function(){++c%i==0&&S.stdout.write("\n "),S.stdout.write(r.color("pending",r.symbols.comma))})),e.on(o,(function(e){++c%i==0&&S.stdout.write("\n "),"slow"===e.speed?S.stdout.write(r.color("bright yellow",r.symbols.dot)):S.stdout.write(r.color(e.speed,r.symbols.dot))})),e.on(s,(function(){++c%i==0&&S.stdout.write("\n "),S.stdout.write(r.color("fail",r.symbols.bang))})),e.once(l,(function(){S.stdout.write("\n"),n.epilogue()}))}e.exports=c,n(c,r),c.description="dot matrix representation"}(Gs);var zs={exports:{}};!function(e,t){var r=zr.exports,n=_o,i=Hs.constants,o=i.EVENT_TEST_PASS,s=i.EVENT_TEST_FAIL,a=i.EVENT_SUITE_BEGIN,u=i.EVENT_SUITE_END;function l(e,t){r.call(this,e,t);var i=2;function l(){return Array(i).join(" ")}e.on(a,(function(e){e.root||(++i,r.consoleLog('%s<section class="suite">',l()),++i,r.consoleLog("%s<h1>%s</h1>",l(),n.escape(e.title)),r.consoleLog("%s<dl>",l()))})),e.on(u,(function(e){e.root||(r.consoleLog("%s</dl>",l()),--i,r.consoleLog("%s</section>",l()),--i)})),e.on(o,(function(e){r.consoleLog("%s <dt>%s</dt>",l(),n.escape(e.title)),r.consoleLog("%s <dt>%s</dt>",l(),n.escape(e.file));var t=n.escape(n.clean(e.body));r.consoleLog("%s <dd><pre><code>%s</code></pre></dd>",l(),t)})),e.on(s,(function(e,t){r.consoleLog('%s <dt class="error">%s</dt>',l(),n.escape(e.title)),r.consoleLog('%s <dt class="error">%s</dt>',l(),n.escape(e.file));var i=n.escape(n.clean(e.body));r.consoleLog('%s <dd class="error"><pre><code>%s</code></pre></dd>',l(),i),r.consoleLog('%s <dd class="error">%s</dd>',l(),n.escape(t))}))}e.exports=l,l.description="HTML documentation"}(zs);var Ys={exports:{}};!function(e,t){var r=Tr,n=zr.exports,i=Hs.constants,o=i.EVENT_TEST_PASS,s=i.EVENT_TEST_FAIL,a=i.EVENT_RUN_BEGIN,u=i.EVENT_RUN_END,l=i.EVENT_TEST_PENDING,c=i.EVENT_TEST_END,f=_o.inherits,p=r.format;function h(e,t){n.call(this,e,t);var r=this,i=1,f="12";t&&t.reporterOptions&&t.reporterOptions.tapVersion&&(f=t.reporterOptions.tapVersion.toString()),this._producer=function(e){var t={12:new b,13:new y}[e];if(!t)throw new Error("invalid or unsupported TAP version: "+JSON.stringify(e));return t}(f),e.once(a,(function(){r._producer.writeVersion()})),e.on(c,(function(){++i})),e.on(l,(function(e){r._producer.writePending(i,e)})),e.on(o,(function(e){r._producer.writePass(i,e)})),e.on(s,(function(e,t){r._producer.writeFail(i,e,t)})),e.once(u,(function(){r._producer.writeEpilogue(e.stats)}))}function d(e){return e.fullTitle().replace(/#/g,"")}function g(e,t){var r=Array.from(arguments);r[0]+="\n",S.stdout.write(p.apply(null,r))}function m(){}function b(){this.writeFail=function(e,t,r){m.prototype.writeFail.call(this,e,t,r),r.message&&g(r.message.replace(/^/gm," ")),r.stack&&g(r.stack.replace(/^/gm," "))}}function y(){function e(e){return Array(e+1).join(" ")}this.writeVersion=function(){g("TAP version 13")},this.writeFail=function(t,r,n){m.prototype.writeFail.call(this,t,r,n),(null!=n.message||null!=n.stack)&&(g(e(1)+"---"),n.message&&(g(e(2)+"message: |-"),g(n.message.replace(/^/gm,e(3)))),n.stack&&(g(e(2)+"stack: |-"),g(n.stack.replace(/^/gm,e(3)))),g(e(1)+"..."))}}e.exports=h,f(h,n),m.prototype.writeVersion=function(){},m.prototype.writePlan=function(e){g("%d..%d",1,e)},m.prototype.writePass=function(e,t){g("ok %d %s",e,d(t))},m.prototype.writePending=function(e,t){g("ok %d %s # SKIP -",e,d(t))},m.prototype.writeFail=function(e,t,r){g("not ok %d %s",e,d(t))},m.prototype.writeEpilogue=function(e){g("# tests "+(e.passes+e.failures)),g("# pass "+e.passes),g("# fail "+e.failures),this.writePlan(e.passes+e.failures+e.pending)},f(b,m),f(y,m),h.description="TAP-compatible output"}(Ys);var $s={exports:{}},Ws=N(Object.freeze({__proto__:null,default:{}}));!function(e,t){var r=zr.exports,n=Ws,i=Hr;const o=$o.createUnsupportedError,s=_o;var a=Hs.constants,u=a.EVENT_TEST_PASS,l=a.EVENT_TEST_PENDING,c=a.EVENT_TEST_FAIL,f=a.EVENT_TEST_END,p=a.EVENT_RUN_END;function h(e,t={}){r.call(this,e,t);var a,h=this,g=[],m=[],b=[],y=[];if(t.reporterOption&&t.reporterOption.output){if(s.isBrowser())throw o("file output not supported in browser");a=t.reporterOption.output}e.on(f,(function(e){g.push(e)})),e.on(u,(function(e){y.push(e)})),e.on(c,(function(e){b.push(e)})),e.on(l,(function(e){m.push(e)})),e.once(p,(function(){var t={stats:h.stats,tests:g.map(d),pending:m.map(d),failures:b.map(d),passes:y.map(d)};e.testResults=t;var o=JSON.stringify(t,null,2);if(a)try{n.mkdirSync(i.dirname(a),{recursive:!0}),n.writeFileSync(a,o)}catch(e){console.error(`${r.symbols.err} [mocha] writing output to "${a}" failed: ${e.message}\n`),S.stdout.write(o)}else S.stdout.write(o)}))}function d(e){var t=e.err||{};return t instanceof Error&&(t=function(e){var t={};return Object.getOwnPropertyNames(e).forEach((function(r){t[r]=e[r]}),e),t}(t)),{title:e.title,fullTitle:e.fullTitle(),file:e.file,duration:e.duration,currentRetry:e.currentRetry(),speed:e.speed,err:g(t)}}function g(e){var t=[];return JSON.parse(JSON.stringify(e,(function(e,r){if("object"==typeof r&&null!==r){if(-1!==t.indexOf(r))return""+r;t.push(r)}return r})))}e.exports=h,h.description="single JSON object"}($s);var Js={exports:{}};!function(e,t){var r=zr.exports,n=_o,i=Nr,o=Hs.constants,s=o.EVENT_TEST_PASS,a=o.EVENT_TEST_FAIL,u=o.EVENT_SUITE_BEGIN,l=o.EVENT_SUITE_END,c=o.EVENT_TEST_PENDING,f=n.escape,p=D.Date;e.exports=g;var h='<ul id="mocha-stats"><li class="result"></li><li class="progress-contain"><progress class="progress-element" max="100" value="0"></progress><svg class="progress-ring"><circle class="ring-flatlight" stroke-dasharray="100%,0%"/><circle class="ring-highlight" stroke-dasharray="0%,100%"/></svg><div class="progress-text">0%</div></li><li class="passes"><a href="javascript:void(0);">passes:</a> <em>0</em></li><li class="failures"><a href="javascript:void(0);">failures:</a> <em>0</em></li><li class="duration">duration: <em>0</em>s</li></ul>',d="‣";function g(e,t){r.call(this,e,t);var n=this,i=this.stats,o=b(h),g=o.getElementsByTagName("li");var m=g[0];const _=g[2],T=_.getElementsByTagName("em")[0],A=_.getElementsByTagName("a")[0],x=g[3],S=x.getElementsByTagName("em")[0],D=x.getElementsByTagName("a")[0];var N,R=g[4].getElementsByTagName("em")[0],L=b('<ul id="mocha-report"></ul>'),k=[L],C=g[1].getElementsByTagName("div")[0],O=g[1].getElementsByTagName("progress")[0],q=[g[1].getElementsByClassName("ring-flatlight")[0],g[1].getElementsByClassName("ring-highlight")[0]],P=document.getElementById("mocha");if(!P)return N="#mocha div missing, add it to your document",void document.body.appendChild(b('<div id="mocha-error">%s</div>',N));function I(e){k[0]&&k[0].appendChild(e)}function U(){var t=i.tests/e.total*100|0;if(O.value=t,C){var r=Math.ceil(Math.log10(e.total/100));w(C,t.toFixed(Math.min(Math.max(r,0),100))+"%")}if(q){var n=parseFloat(getComputedStyle(q[0]).getPropertyValue("r")),o=2*Math.PI*n,s=t*(o/100);q[0].style["stroke-dasharray"]=`0,${s}px,${o}px`,q[1].style["stroke-dasharray"]=`${s}px,${o}px`}var a=new p-i.start;w(T,i.passes),w(S,i.failures),w(R,(a/1e3).toFixed(2))}E(A,"click",(function(e){e.preventDefault(),v();var t=/pass/.test(L.className)?"":" pass";L.className=L.className.replace(/fail|pass/g,"")+t,L.className.trim()&&y("test pass")})),E(D,"click",(function(e){e.preventDefault(),v();var t=/fail/.test(L.className)?"":" fail";L.className=L.className.replace(/fail|pass/g,"")+t,L.className.trim()&&y("test fail")})),P.appendChild(o),P.appendChild(L),e.on(u,(function(e){if(!e.root){var t=b('<li class="suite"><h1><a href="%s">%s</a></h1></li>',n.suiteURL(e),f(e.title));k[0].appendChild(t),k.unshift(document.createElement("ul")),t.appendChild(k[0])}})),e.on(l,(function(e){if(e.root)return 0===i.failures&&(w(m,"✓"),o.className+=" pass"),void U();k.shift()})),e.on(s,(function(e){var t=n.testURL(e),r=b('<li class="test pass %e"><h2>%e<span class="duration">%ems</span> <a href="%s" class="replay">'+d+"</a></h2></li>",e.speed,e.title,e.duration,t);n.addCodeToggle(r,e.body),I(r),U()})),e.on(a,(function(e){w(m,"✖"),o.className+=" fail";var t,r=b('<li class="test fail"><h2>%e <a href="%e" class="replay">'+d+"</a></h2></li>",e.title,n.testURL(e)),i=e.err.toString();if("[object Error]"===i&&(i=e.err.message),e.err.stack){var s=e.err.stack.indexOf(e.err.message);t=-1===s?e.err.stack:e.err.stack.slice(e.err.message.length+s)}else e.err.sourceURL&&void 0!==e.err.line&&(t="\n("+e.err.sourceURL+":"+e.err.line+")");t=t||"",e.err.htmlMessage&&t?r.appendChild(b('<div class="html-error">%s\n<pre class="error">%e</pre></div>',e.err.htmlMessage,t)):e.err.htmlMessage?r.appendChild(b('<div class="html-error">%s</div>',e.err.htmlMessage)):r.appendChild(b('<pre class="error">%e%e</pre>',i,t)),n.addCodeToggle(r,e.body),I(r),U()})),e.on(c,(function(e){I(b('<li class="test pass pending"><h2>%e</h2></li>',e.title)),U()}))}function m(e){var t=window.location.search;return t&&(t=t.replace(/[?&](?:f?grep|invert)=[^&\s]*/g,"").replace(/^&/,"?")),window.location.pathname+(t?t+"&":"?")+"grep="+encodeURIComponent(e)}function b(e){var t=arguments,r=document.createElement("div"),n=1;return r.innerHTML=e.replace(/%([se])/g,(function(e,r){switch(r){case"s":return String(t[n++]);case"e":return f(t[n++])}})),r.firstChild}function y(e){for(var t=document.getElementsByClassName("suite"),r=0;r<t.length;r++){t[r].getElementsByClassName(e).length||(t[r].className+=" hidden")}}function v(){for(var e=document.getElementsByClassName("suite hidden");e.length>0;)e[0].className=e[0].className.replace("suite hidden","suite")}function w(e,t){e.textContent?e.textContent=t:e.innerText=t}function E(e,t,r){e.addEventListener?e.addEventListener(t,r,!1):e.attachEvent("on"+t,r)}g.prototype.suiteURL=function(e){return m("^"+i(e.fullTitle())+" ")},g.prototype.testURL=function(e){return m("^"+i(e.fullTitle())+"$")},g.prototype.addCodeToggle=function(e,t){E(e.getElementsByTagName("h2")[0],"click",(function(){r.style.display="none"===r.style.display?"block":"none"}));var r=b("<pre><code>%e</code></pre>",n.clean(t));e.appendChild(r),r.style.display="none"},g.browserOnly=!0}(Js);var Ks={exports:{}};!function(e,t){var r=zr.exports,n=_o.inherits,i=Hs.constants,o=i.EVENT_RUN_BEGIN,s=i.EVENT_RUN_END,a=i.EVENT_TEST_BEGIN,u=i.EVENT_TEST_FAIL,l=i.EVENT_TEST_PASS,c=i.EVENT_TEST_PENDING,f=r.color,p=r.cursor;function h(e,t){r.call(this,e,t);var n=0;e.on(o,(function(){r.consoleLog()})),e.on(a,(function(e){S.stdout.write(f("pass"," "+e.fullTitle()+": "))})),e.on(c,(function(e){var t=f("checkmark"," -")+f("pending"," %s");r.consoleLog(t,e.fullTitle())})),e.on(l,(function(e){var t=f("checkmark"," "+r.symbols.ok)+f("pass"," %s: ")+f(e.speed,"%dms");p.CR(),r.consoleLog(t,e.fullTitle(),e.duration)})),e.on(u,(function(e){p.CR(),r.consoleLog(f("fail"," %d) %s"),++n,e.fullTitle())})),e.once(s,this.epilogue.bind(this))}e.exports=h,n(h,r),h.description='like "spec" reporter but flat'}(Ks);var Zs={exports:{}};!function(e,t){var r=zr.exports,n=_o.inherits,i=Hs.constants,o=i.EVENT_RUN_END,s=i.EVENT_RUN_BEGIN;function a(e,t){r.call(this,e,t),e.on(s,(function(){S.stdout.write("[2J"),S.stdout.write("[1;3H")})),e.once(o,this.epilogue.bind(this))}e.exports=a,n(a,r),a.description="essentially just a summary"}(Zs);var Qs={exports:{}};!function(e,t){var r=zr.exports,n=Hs.constants,i=n.EVENT_RUN_BEGIN,o=n.EVENT_RUN_END,s=n.EVENT_SUITE_BEGIN,a=n.EVENT_SUITE_END,u=n.EVENT_TEST_FAIL,l=n.EVENT_TEST_PASS,c=n.EVENT_TEST_PENDING,f=_o.inherits,p=r.color;function h(e,t){r.call(this,e,t);var n=0,f=0;function h(){return Array(n).join(" ")}e.on(i,(function(){r.consoleLog()})),e.on(s,(function(e){++n,r.consoleLog(p("suite","%s%s"),h(),e.title)})),e.on(a,(function(){1===--n&&r.consoleLog()})),e.on(c,(function(e){var t=h()+p("pending"," - %s");r.consoleLog(t,e.title)})),e.on(l,(function(e){var t;"fast"===e.speed?(t=h()+p("checkmark"," "+r.symbols.ok)+p("pass"," %s"),r.consoleLog(t,e.title)):(t=h()+p("checkmark"," "+r.symbols.ok)+p("pass"," %s")+p(e.speed," (%dms)"),r.consoleLog(t,e.title,e.duration))})),e.on(u,(function(e){r.consoleLog(h()+p("fail"," %d) %s"),++f,e.title)})),e.once(o,this.epilogue.bind(this))}e.exports=h,f(h,r),h.description="hierarchical & verbose [default]"}(Qs);var Xs={exports:{}};!function(e,t){var r=zr.exports,n=Hs.constants,i=_o.inherits,o=n.EVENT_RUN_BEGIN,s=n.EVENT_TEST_PENDING,a=n.EVENT_TEST_PASS,u=n.EVENT_RUN_END,l=n.EVENT_TEST_FAIL;function c(e,t){r.call(this,e,t);var n=this,i=.75*r.window.width|0,c=this.nyanCatWidth=11;this.colorIndex=0,this.numberOfLines=4,this.rainbowColors=n.generateColors(),this.scoreboardWidth=5,this.tick=0,this.trajectories=[[],[],[],[]],this.trajectoryWidthMax=i-c,e.on(o,(function(){r.cursor.hide(),n.draw()})),e.on(s,(function(){n.draw()})),e.on(a,(function(){n.draw()})),e.on(l,(function(){n.draw()})),e.once(u,(function(){r.cursor.show();for(var e=0;e<n.numberOfLines;e++)S.stdout.write("\n");n.epilogue()}))}e.exports=c,i(c,r),c.prototype.draw=function(){this.appendRainbow(),this.drawScoreboard(),this.drawRainbow(),this.drawNyanCat(),this.tick=!this.tick},c.prototype.drawScoreboard=function(){var e=this.stats;function t(e,t){S.stdout.write(" "),S.stdout.write(r.color(e,t)),S.stdout.write("\n")}t("green",e.passes),t("fail",e.failures),t("pending",e.pending),S.stdout.write("\n"),this.cursorUp(this.numberOfLines)},c.prototype.appendRainbow=function(){for(var e=this.tick?"_":"-",t=this.rainbowify(e),r=0;r<this.numberOfLines;r++){var n=this.trajectories[r];n.length>=this.trajectoryWidthMax&&n.shift(),n.push(t)}},c.prototype.drawRainbow=function(){var e=this;this.trajectories.forEach((function(t){S.stdout.write("["+e.scoreboardWidth+"C"),S.stdout.write(t.join("")),S.stdout.write("\n")})),this.cursorUp(this.numberOfLines)},c.prototype.drawNyanCat=function(){var e=this,t="["+(this.scoreboardWidth+this.trajectories[0].length)+"C",r="";S.stdout.write(t),S.stdout.write("_,------,"),S.stdout.write("\n"),S.stdout.write(t),r=e.tick?" ":" ",S.stdout.write("_|"+r+"/\\_/\\ "),S.stdout.write("\n"),S.stdout.write(t),r=e.tick?"_":"__";var n=e.tick?"~":"^";S.stdout.write(n+"|"+r+this.face()+" "),S.stdout.write("\n"),S.stdout.write(t),r=e.tick?" ":" ",S.stdout.write(r+'"" "" '),S.stdout.write("\n"),this.cursorUp(this.numberOfLines)},c.prototype.face=function(){var e=this.stats;return e.failures?"( x .x)":e.pending?"( o .o)":e.passes?"( ^ .^)":"( - .-)"},c.prototype.cursorUp=function(e){S.stdout.write("["+e+"A")},c.prototype.cursorDown=function(e){S.stdout.write("["+e+"B")},c.prototype.generateColors=function(){for(var e=[],t=0;t<42;t++){var r=Math.floor(Math.PI/3),n=t*(1/6),i=Math.floor(3*Math.sin(n)+3),o=Math.floor(3*Math.sin(n+2*r)+3),s=Math.floor(3*Math.sin(n+4*r)+3);e.push(36*i+6*o+s+16)}return e},c.prototype.rainbowify=function(e){if(!r.useColors)return e;var t=this.rainbowColors[this.colorIndex%this.rainbowColors.length];return this.colorIndex+=1,"[38;5;"+t+"m"+e+"[0m"},c.description='"nyan cat"'}(Xs);var ea={exports:{}};!function(e,t){var r=zr.exports,n=_o,i=Ws,o=Hr,s=$o.createUnsupportedError,a=Hs.constants,u=a.EVENT_TEST_PASS,l=a.EVENT_TEST_FAIL,c=a.EVENT_RUN_END,f=a.EVENT_TEST_PENDING,p=as.constants.STATE_FAILED,h=n.inherits,d=n.escape,g=D.Date;function m(e,t){r.call(this,e,t);var n,a=this.stats,p=[],h=this;if(t&&t.reporterOptions){if(t.reporterOptions.output){if(!i.createWriteStream)throw s("file output not supported in browser");i.mkdirSync(o.dirname(t.reporterOptions.output),{recursive:!0}),h.fileStream=i.createWriteStream(t.reporterOptions.output)}n=t.reporterOptions.suiteName}n=n||"Mocha Tests",e.on(f,(function(e){p.push(e)})),e.on(u,(function(e){p.push(e)})),e.on(l,(function(e){p.push(e)})),e.once(c,(function(){h.write(b("testsuite",{name:n,tests:a.tests,failures:0,errors:a.failures,skipped:a.tests-a.failures-a.passes,timestamp:(new g).toUTCString(),time:a.duration/1e3||0},!1)),p.forEach((function(e){h.test(e)})),h.write("</testsuite>")}))}function b(e,t,r,n){var i,o=r?"/>":">",s=[];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&s.push(a+'="'+d(t[a])+'"');return i="<"+e+(s.length?" "+s.join(" "):"")+o,n&&(i+=n+"</"+e+o),i}e.exports=m,h(m,r),m.prototype.done=function(e,t){this.fileStream?this.fileStream.end((function(){t(e)})):t(e)},m.prototype.write=function(e){this.fileStream?this.fileStream.write(e+"\n"):"object"==typeof S&&S.stdout?S.stdout.write(e+"\n"):r.consoleLog(e)},m.prototype.test=function(e){r.useColors=!1;var t={classname:e.parent.fullTitle(),name:e.title,file:e.file,time:e.duration/1e3||0};if(e.state===p){var n=e.err,i=!r.hideDiff&&r.showDiff(n)?"\n"+r.generateDiff(n.actual,n.expected):"";this.write(b("testcase",t,!1,b("failure",{},!1,d(n.message)+d(i)+"\n"+d(n.stack))))}else e.isPending()?this.write(b("testcase",t,!1,b("skipped",{},!0))):this.write(b("testcase",t,!0))},m.description="XUnit-compatible XML output"}(ea);var ta={exports:{}};!function(e,t){var r=zr.exports,n=_o,i=Hs.constants,o=i.EVENT_RUN_END,s=i.EVENT_SUITE_BEGIN,a=i.EVENT_SUITE_END,u=i.EVENT_TEST_PASS;function l(e,t){r.call(this,e,t);var i=0,l="";function c(e,t){var r=t,n="$"+e.title;return t=t[n]=t[n]||{suite:e},e.suites.forEach((function(e){c(e,t)})),r}function f(e,t){++t;var r,i="";for(var o in e)"suite"!==o&&("$"!==o&&(r=" - ["+o.substring(1)+"]",r+="(#"+n.slug(e[o].suite.fullTitle())+")\n",i+=Array(t).join(" ")+r),i+=f(e[o],t));return i}function p(e){return f(c(e,{}),0)}p(e.suite),e.on(s,(function(e){++i;var t,r=n.slug(e.fullTitle());l+='<a name="'+r+'"></a>\n',l+=(t=e.title,Array(i).join("#")+" "+t+"\n")})),e.on(a,(function(){--i})),e.on(u,(function(e){var t=n.clean(e.body);l+=e.title+".\n",l+="\n```js\n",l+=t+"\n",l+="```\n\n"})),e.once(o,(function(){S.stdout.write("# TOC\n"),S.stdout.write(p(e.suite)),S.stdout.write(l)}))}e.exports=l,l.description="GitHub Flavored Markdown"}(ta);var ra={exports:{}};!function(e,t){var r=zr.exports,n=Hs.constants,i=n.EVENT_RUN_BEGIN,o=n.EVENT_TEST_END,s=n.EVENT_RUN_END,a=_o.inherits,u=r.color,l=r.cursor;function c(e,t){r.call(this,e,t);var n=this,a=.5*r.window.width|0,c=e.total,f=0,p=-1,h=(t=t||{}).reporterOptions||{};t.open=h.open||"[",t.complete=h.complete||"▬",t.incomplete=h.incomplete||r.symbols.dot,t.close=h.close||"]",t.verbose=h.verbose||!1,e.on(i,(function(){S.stdout.write("\n"),l.hide()})),e.on(o,(function(){f++;var e=a*(f/c)|0,r=a-e;(e!==p||t.verbose)&&(p=e,l.CR(),S.stdout.write("[J"),S.stdout.write(u("progress"," "+t.open)),S.stdout.write(Array(e).join(t.complete)),S.stdout.write(Array(r).join(t.incomplete)),S.stdout.write(u("progress",t.close)),t.verbose&&S.stdout.write(u("progress"," "+f+" of "+c)))})),e.once(s,(function(){l.show(),S.stdout.write("\n"),n.epilogue()}))}e.exports=c,r.colors.progress=90,a(c,r),c.description="a progress bar"}(ra);var na={exports:{}};!function(e,t){var r=zr.exports,n=_o.inherits,i=Hs.constants,o=i.EVENT_RUN_BEGIN,s=i.EVENT_RUN_END,a=i.EVENT_TEST_END,u=as.constants.STATE_FAILED,l=r.cursor,c=r.color;function f(e,t){r.call(this,e,t);var n=this,i=.75*r.window.width|0,f=S.stdout,p=c("plane","✈"),d=-1,g=0,m=0;function b(){var e=Array(i).join("-");return" "+c("runway",e)}e.on(o,(function(){f.write("\n\n\n "),l.hide()})),e.on(a,(function(e){var t=-1===d?i*++g/++m|0:d;e.state===u&&(p=c("plane crash","✈"),d=t),f.write("["+(i+1)+"D[2A"),f.write(b()),f.write("\n "),f.write(c("runway",Array(t).join("⋅"))),f.write(p),f.write(c("runway",Array(i-t).join("⋅")+"\n")),f.write(b()),f.write("[0m")})),e.once(s,(function(){l.show(),S.stdout.write("\n"),n.epilogue()})),S.once("SIGINT",(function(){l.show(),h((function(){S.kill(S.pid,"SIGINT")}))}))}e.exports=f,r.colors.plane=0,r.colors["plane crash"]=31,r.colors.runway=90,n(f,r),f.description="Unicode landing strip"}(na);var ia={exports:{}};!function(e,t){var r=zr.exports,n=Hs.constants,i=n.EVENT_TEST_PASS,o=n.EVENT_TEST_FAIL,s=n.EVENT_RUN_BEGIN,a=n.EVENT_RUN_END;function u(e,t){r.call(this,e,t);var n=this,u=e.total;e.once(s,(function(){l(["start",{total:u}])})),e.on(i,(function(e){l(["pass",c(e)])})),e.on(o,(function(e,t){(e=c(e)).err=t.message,e.stack=t.stack||null,l(["fail",e])})),e.once(a,(function(){l(["end",n.stats])}))}function l(e){S.stdout.write(JSON.stringify(e)+"\n")}function c(e){return{title:e.title,fullTitle:e.fullTitle(),file:e.file,duration:e.duration,currentRetry:e.currentRetry(),speed:e.speed}}e.exports=u,u.description="newline delimited JSON events"}(ia),function(e){e.Base=e.base=zr.exports,e.Dot=e.dot=Gs.exports,e.Doc=e.doc=zs.exports,e.TAP=e.tap=Ys.exports,e.JSON=e.json=$s.exports,e.HTML=e.html=Js.exports,e.List=e.list=Ks.exports,e.Min=e.min=Zs.exports,e.Spec=e.spec=Qs.exports,e.Nyan=e.nyan=Xs.exports,e.XUnit=e.xunit=ea.exports,e.Markdown=e.markdown=ta.exports,e.Progress=e.progress=ra.exports,e.Landing=e.landing=na.exports,e.JSONStream=e["json-stream"]=ia.exports}(Gr);var oa={diff:!0,extension:["js","cjs","mjs"],package:"./package.json",reporter:"spec",slow:75,timeout:2e3,ui:"bdd","watch-ignore":["node_modules",".git"]},sa=Hs.constants,aa=sa.EVENT_TEST_PASS,ua=sa.EVENT_TEST_FAIL,la=sa.EVENT_SUITE_BEGIN,ca=sa.EVENT_RUN_BEGIN,fa=sa.EVENT_TEST_PENDING,pa=sa.EVENT_RUN_END,ha=sa.EVENT_TEST_END,da=D.Date;var ga=function(e){var t={suites:0,tests:0,passes:0,pending:0,failures:0};if(!e)throw new TypeError("Missing runner argument");e.stats=t,e.once(ca,(function(){t.start=new da})),e.on(la,(function(e){e.root||t.suites++})),e.on(aa,(function(){t.passes++})),e.on(ua,(function(){t.failures++})),e.on(fa,(function(){t.pending++})),e.on(ha,(function(){t.tests++})),e.once(pa,(function(){t.end=new da,t.duration=t.end-t.start}))},ma={},ba={exports:{}},ya=as,va=_o,wa=$o.createInvalidArgumentTypeError,Ea=va.isString;const{MOCHA_ID_PROP_NAME:_a}=va.constants;var Ta=Aa;function Aa(e,t){if(!Ea(e))throw wa('Test argument "title" should be a string. Received type "'+typeof e+'"',"title","string");this.type="test",ya.call(this,e,t),this.reset()}va.inherits(Aa,ya),Aa.prototype.reset=function(){ya.prototype.reset.call(this),this.pending=!this.fn,delete this.state},Aa.prototype.retriedTest=function(e){if(!arguments.length)return this._retriedTest;this._retriedTest=e},Aa.prototype.markOnly=function(){this.parent.appendOnlyTest(this)},Aa.prototype.clone=function(){var e=new Aa(this.title,this.fn);return e.timeout(this.timeout()),e.slow(this.slow()),e.retries(this.retries()),e.currentRetry(this.currentRetry()),e.retriedTest(this.retriedTest()||this),e.globals(this.globals()),e.parent=this.parent,e.file=this.file,e.ctx=this.ctx,e},Aa.prototype.serialize=function(){return{$$currentRetry:this._currentRetry,$$fullTitle:this.fullTitle(),$$isPending:Boolean(this.pending),$$retriedTest:this._retriedTest||null,$$slow:this._slow,$$titlePath:this.titlePath(),body:this.body,duration:this.duration,err:this.err,parent:{$$fullTitle:this.parent.fullTitle(),[_a]:this.parent.id},speed:this.speed,state:this.state,title:this.title,type:this.type,file:this.file,[_a]:this.id}};var xa=cs.exports,Sa=$o.createMissingArgumentError,Da=$o.createUnsupportedError,Na=$o.createForbiddenExclusivityError,Ra=function(e,t,r){return{runWithSuite:function(e){return function(){e.run()}},before:function(t,r){e[0].beforeAll(t,r)},after:function(t,r){e[0].afterAll(t,r)},beforeEach:function(t,r){e[0].beforeEach(t,r)},afterEach:function(t,r){e[0].afterEach(t,r)},suite:{only:function(e){if(r.options.forbidOnly)throw Na(r);return e.isOnly=!0,this.create(e)},skip:function(e){return e.pending=!0,this.create(e)},create:function(t){var n=xa.create(e[0],t.title);if(n.pending=Boolean(t.pending),n.file=t.file,e.unshift(n),t.isOnly&&n.markOnly(),n.pending&&r.options.forbidPending&&function(e){return!r.options.grep||r.options.grep&&r.options.grep.test(e.fullTitle())&&!r.options.invert}(n))throw Da("Pending test forbidden");if("function"==typeof t.fn)t.fn.call(n),e.shift();else{if(void 0===t.fn&&!n.pending)throw Sa('Suite "'+n.fullTitle()+'" was defined but no callback was supplied. Supply a callback or explicitly skip the suite.',"callback","function");!t.fn&&n.pending&&e.shift()}return n}},test:{only:function(e,t){if(e.options.forbidOnly)throw Na(e);return t.markOnly(),t},skip:function(e){t.test(e)}}}},La=Ta,ka=cs.exports.constants.EVENT_FILE_PRE_REQUIRE;ba.exports=function(e){var t=[e];e.on(ka,(function(r,n,i){var o=Ra(t,r,i);r.before=o.before,r.after=o.after,r.beforeEach=o.beforeEach,r.afterEach=o.afterEach,r.run=i.options.delay&&o.runWithSuite(e),r.describe=r.context=function(e,t){return o.suite.create({title:e,file:n,fn:t})},r.xdescribe=r.xcontext=r.describe.skip=function(e,t){return o.suite.skip({title:e,file:n,fn:t})},r.describe.only=function(e,t){return o.suite.only({title:e,file:n,fn:t})},r.it=r.specify=function(e,r){var i=t[0];i.isPending()&&(r=null);var o=new La(e,r);return o.file=n,i.addTest(o),o},r.it.only=function(e,t){return o.test.only(i,r.it(e,t))},r.xit=r.xspecify=r.it.skip=function(e){return r.it(e)}}))},ba.exports.description="BDD or RSpec style [default]";var Ca={exports:{}},Oa=Ta,qa=cs.exports.constants.EVENT_FILE_PRE_REQUIRE;Ca.exports=function(e){var t=[e];e.on(qa,(function(r,n,i){var o=Ra(t,r,i);r.setup=o.beforeEach,r.teardown=o.afterEach,r.suiteSetup=o.before,r.suiteTeardown=o.after,r.run=i.options.delay&&o.runWithSuite(e),r.suite=function(e,t){return o.suite.create({title:e,file:n,fn:t})},r.suite.skip=function(e,t){return o.suite.skip({title:e,file:n,fn:t})},r.suite.only=function(e,t){return o.suite.only({title:e,file:n,fn:t})},r.test=function(e,r){var i=t[0];i.isPending()&&(r=null);var o=new Oa(e,r);return o.file=n,i.addTest(o),o},r.test.only=function(e,t){return o.test.only(i,r.test(e,t))},r.test.skip=o.test.skip}))},Ca.exports.description='traditional "suite"/"test" instead of BDD\'s "describe"/"it"';var Pa={exports:{}},Ia=Ta,Ua=cs.exports.constants.EVENT_FILE_PRE_REQUIRE;Pa.exports=function(e){var t=[e];e.on(Ua,(function(r,n,i){var o=Ra(t,r,i);r.before=o.before,r.after=o.after,r.beforeEach=o.beforeEach,r.afterEach=o.afterEach,r.run=i.options.delay&&o.runWithSuite(e),r.suite=function(e){return t.length>1&&t.shift(),o.suite.create({title:e,file:n,fn:!1})},r.suite.only=function(e){return t.length>1&&t.shift(),o.suite.only({title:e,file:n,fn:!1})},r.test=function(e,r){var i=new Ia(e,r);return i.file=n,t[0].addTest(i),i},r.test.only=function(e,t){return o.test.only(i,r.test(e,t))},r.test.skip=o.test.skip}))},Pa.exports.description="QUnit style";var Fa={exports:{}},Ba=cs.exports,Va=Ta;Fa.exports=function(e){var t=[e];e.on(Ba.constants.EVENT_FILE_REQUIRE,(function e(r,n){var i;for(var o in r)if("function"==typeof r[o]){var s=r[o];switch(o){case"before":t[0].beforeAll(s);break;case"after":t[0].afterAll(s);break;case"beforeEach":t[0].beforeEach(s);break;case"afterEach":t[0].afterEach(s);break;default:var a=new Va(o,s);a.file=n,t[0].addTest(a)}}else i=Ba.create(t[0],o),t.unshift(i),e(r[o],n),t.shift()}))},Fa.exports.description='Node.js module ("exports") style',ma.bdd=ba.exports,ma.tdd=Ca.exports,ma.qunit=Pa.exports,ma.exports=Fa.exports;var ja=Ma;function Ma(){}Ma.prototype.runnable=function(e){return arguments.length?(this.test=this._runnable=e,this):this._runnable},Ma.prototype.timeout=function(e){return arguments.length?(this.runnable().timeout(e),this):this.runnable().timeout()},Ma.prototype.slow=function(e){return arguments.length?(this.runnable().slow(e),this):this.runnable().slow()},Ma.prototype.skip=function(){this.runnable().skip()},Ma.prototype.retries=function(e){return arguments.length?(this.runnable().retries(e),this):this.runnable().retries()};var Ha="10.8.2";!function(e,t){var r=Nr,n=Hr,i=Gr,o=_o,s=oa,a=cs.exports,u=Ao,l=ga;const{createInvalidReporterError:c,createInvalidInterfaceError:f,createMochaInstanceAlreadyDisposedError:p,createMochaInstanceAlreadyRunningError:h,createUnsupportedError:d}=$o,{EVENT_FILE_PRE_REQUIRE:g,EVENT_FILE_POST_REQUIRE:m,EVENT_FILE_REQUIRE:b}=a.constants;var y=No.exports("mocha:mocha");t=e.exports=_;var v=o.defineConstants({INIT:"init",RUNNING:"running",REFERENCES_CLEANED:"referencesCleaned",DISPOSED:"disposed"});if(!o.isBrowser()&&void 0!==e.paths){var w=o.cwd();e.paths.push(w,n.join(w,"node_modules"))}let E;function _(e={}){e={...s,...e},this.files=[],this.options=e,this.suite=new t.Suite("",new t.Context,!0),this._cleanReferencesAfterRun=!0,this._state=v.INIT,this.grep(e.grep).fgrep(e.fgrep).ui(e.ui).reporter(e.reporter,e.reporterOption||e.reporterOptions).slow(e.slow).global(e.global),void 0!==e.timeout&&this.timeout(!1===e.timeout?0:e.timeout),"retries"in e&&this.retries(e.retries),["allowUncaught","asyncOnly","bail","checkLeaks","color","delay","diff","dryRun","passOnFailingTestSuite","failZero","forbidOnly","forbidPending","fullTrace","inlineDiffs","invert"].forEach((function(t){e[t]&&this[t]()}),this),e.rootHooks&&this.rootHooks(e.rootHooks),this._runnerClass=t.Runner,this._lazyLoadFiles=!1,this.isWorker=Boolean(e.isWorker),this.globalSetup(e.globalSetup).globalTeardown(e.globalTeardown).enableGlobalSetup(e.enableGlobalSetup).enableGlobalTeardown(e.enableGlobalTeardown),e.parallel&&(void 0===e.jobs||e.jobs>1)&&(y("attempting to enable parallel mode"),this.parallelMode(!0))}t.utils=o,t.interfaces=ma,t.reporters=i,t.Runnable=as,t.Context=ja,t.Runner=Hs,t.Suite=a,t.Hook=gs,t.Test=Ta,t.afterEach=function(...e){return(E.afterEach||E.teardown).apply(this,e)},t.after=function(...e){return(E.after||E.suiteTeardown).apply(this,e)},t.beforeEach=function(...e){return(E.beforeEach||E.setup).apply(this,e)},t.before=function(...e){return(E.before||E.suiteSetup).apply(this,e)},t.describe=function(...e){return(E.describe||E.suite).apply(this,e)},t.describe.only=function(...e){return(E.describe||E.suite).only.apply(this,e)},t.describe.skip=function(...e){return(E.describe||E.suite).skip.apply(this,e)},t.it=function(...e){return(E.it||E.test).apply(this,e)},t.it.only=function(...e){return(E.it||E.test).only.apply(this,e)},t.it.skip=function(...e){return(E.it||E.test).skip.apply(this,e)},t.xdescribe=t.describe.skip,t.xit=t.it.skip,t.setup=t.beforeEach,t.suiteSetup=t.before,t.suiteTeardown=t.after,t.suite=t.describe,t.teardown=t.afterEach,t.test=t.it,t.run=function(...e){return E.run.apply(this,e)},_.prototype.bail=function(e){return this.suite.bail(!1!==e),this},_.prototype.addFile=function(e){return this.files.push(e),this},_.prototype.reporter=function(e,t){if("function"==typeof e)this._reporter=e;else{var r;if(i[e=e||"spec"]&&(r=i[e]),!r){let t;try{t=require.resolve(e),r=R(t)}catch(i){if(t)throw c(i.message,t);try{r=R(n.resolve(e))}catch(t){throw c(t.message,e)}}}this._reporter=r}return this.options.reporterOption=t,this.options.reporterOptions=t,this},_.prototype.ui=function(e){var r;if("function"==typeof e)r=e;else if(e=e||"bdd",!(r=t.interfaces[e]))try{r=R(e)}catch(t){throw f(`invalid interface '${e}'`,e)}return r(this.suite),this.suite.on(g,(function(e){E=e})),this},_.prototype.loadFiles=function(e){var t=this,r=this.suite;this.files.forEach((function(e){e=n.resolve(e),r.emit(g,D,e,t),r.emit(b,R(e),e,t),r.emit(m,D,e,t)})),e&&e()},_.prototype.loadFilesAsync=function({esmDecorator:e}={}){var t=this,r=this.suite;return this.lazyLoadFiles(!0),u.loadFilesAsync(this.files,(function(e){r.emit(g,D,e,t)}),(function(e,n){r.emit(b,n,e,t),r.emit(m,D,e,t)}),e)},_.unloadFile=function(e){if(o.isBrowser())throw d("unloadFile() is only supported in a Node.js environment");return Ao.unloadFile(e)},_.prototype.unloadFiles=function(){if(this._state===v.DISPOSED)throw p("Mocha instance is already disposed, it cannot be used again.",this._cleanReferencesAfterRun,this);return this.files.forEach((function(e){_.unloadFile(e)})),this._state=v.INIT,this},_.prototype.fgrep=function(e){return e?this.grep(new RegExp(r(e))):this},_.prototype.grep=function(e){if(o.isString(e)){var t=e.match(/^\/(.*)\/([gimy]{0,4})$|.*/);this.options.grep=new RegExp(t[1]||t[0],t[2])}else this.options.grep=e;return this},_.prototype.invert=function(){return this.options.invert=!0,this},_.prototype.checkLeaks=function(e){return this.options.checkLeaks=!1!==e,this},_.prototype.cleanReferencesAfterRun=function(e){return this._cleanReferencesAfterRun=!1!==e,this},_.prototype.dispose=function(){if(this._state===v.RUNNING)throw h("Cannot dispose while the mocha instance is still running tests.");this.unloadFiles(),this._previousRunner&&this._previousRunner.dispose(),this.suite.dispose(),this._state=v.DISPOSED},_.prototype.fullTrace=function(e){return this.options.fullTrace=!1!==e,this},_.prototype.global=function(e){return this.options.global=(this.options.global||[]).concat(e).filter(Boolean).filter((function(e,t,r){return r.indexOf(e)===t})),this},_.prototype.globals=_.prototype.global,_.prototype.color=function(e){return this.options.color=!1!==e,this},_.prototype.inlineDiffs=function(e){return this.options.inlineDiffs=!1!==e,this},_.prototype.diff=function(e){return this.options.diff=!1!==e,this},_.prototype.timeout=function(e){return this.suite.timeout(e),this},_.prototype.retries=function(e){return this.suite.retries(e),this},_.prototype.slow=function(e){return this.suite.slow(e),this},_.prototype.asyncOnly=function(e){return this.options.asyncOnly=!1!==e,this},_.prototype.noHighlighting=function(){return this.options.noHighlighting=!0,this},_.prototype.allowUncaught=function(e){return this.options.allowUncaught=!1!==e,this},_.prototype.delay=function(){return this.options.delay=!0,this},_.prototype.dryRun=function(e){return this.options.dryRun=!1!==e,this},_.prototype.failZero=function(e){return this.options.failZero=!1!==e,this},_.prototype.passOnFailingTestSuite=function(e){return this.options.passOnFailingTestSuite=!0===e,this},_.prototype.forbidOnly=function(e){return this.options.forbidOnly=!1!==e,this},_.prototype.forbidPending=function(e){return this.options.forbidPending=!1!==e,this},_.prototype._guardRunningStateTransition=function(){if(this._state===v.RUNNING)throw h("Mocha instance is currently running tests, cannot start a next test run until this one is done",this);if(this._state===v.DISPOSED||this._state===v.REFERENCES_CLEANED)throw p("Mocha instance is already disposed, cannot start a new test run. Please create a new mocha instance. Be sure to set disable `cleanReferencesAfterRun` when you want to reuse the same mocha instance for multiple test runs.",this._cleanReferencesAfterRun,this)},Object.defineProperty(_.prototype,"version",{value:Ha,configurable:!1,enumerable:!0,writable:!1}),_.prototype.run=function(e){this._guardRunningStateTransition(),this._state=v.RUNNING,this._previousRunner&&(this._previousRunner.dispose(),this.suite.reset()),this.files.length&&!this._lazyLoadFiles&&this.loadFiles();var r=this.suite,n=this.options;n.files=this.files;const i=new this._runnerClass(r,{cleanReferencesAfterRun:this._cleanReferencesAfterRun,delay:n.delay,dryRun:n.dryRun,failZero:n.failZero});l(i);var s=new this._reporter(i,n);i.checkLeaks=!0===n.checkLeaks,i.fullStackTrace=n.fullTrace,i.asyncOnly=n.asyncOnly,i.allowUncaught=n.allowUncaught,i.forbidOnly=n.forbidOnly,i.forbidPending=n.forbidPending,n.grep&&i.grep(n.grep,n.invert),n.global&&i.globals(n.global),void 0!==n.color&&(t.reporters.Base.useColors=n.color),t.reporters.Base.inlineDiffs=n.inlineDiffs,t.reporters.Base.hideDiff=!n.diff;return(async e=>{const t=this.options.enableGlobalSetup&&this.hasGlobalSetupFixtures()?await this.runGlobalSetup(e):{},r=await e.runAsync({files:this.files,options:n});return this.options.enableGlobalTeardown&&this.hasGlobalTeardownFixtures()&&await this.runGlobalTeardown(e,{context:t}),r})(i).then((t=>{this._previousRunner=i,this._state=this._cleanReferencesAfterRun?v.REFERENCES_CLEANED:v.INIT,e=e||o.noop,"function"==typeof s.done?s.done(t,e):e(t)})),i},_.prototype.rootHooks=function({beforeAll:e=[],beforeEach:t=[],afterAll:r=[],afterEach:n=[]}={}){return e=o.castArray(e),t=o.castArray(t),r=o.castArray(r),n=o.castArray(n),e.forEach((e=>{this.suite.beforeAll(e)})),t.forEach((e=>{this.suite.beforeEach(e)})),r.forEach((e=>{this.suite.afterAll(e)})),n.forEach((e=>{this.suite.afterEach(e)})),this},_.prototype.parallelMode=function(e=!0){if(o.isBrowser())throw d("parallel mode is only supported in Node.js");const r=Boolean(e);if(r===this.options.parallel&&this._lazyLoadFiles&&this._runnerClass!==t.Runner)return this;if(this._state!==v.INIT)throw d("cannot change parallel mode after having called run()");return this.options.parallel=r,this._runnerClass=r?Ao:t.Runner,this.lazyLoadFiles(this._lazyLoadFiles||r)},_.prototype.lazyLoadFiles=function(e){return this._lazyLoadFiles=!0===e,y("set lazy load to %s",e),this},_.prototype.globalSetup=function(e=[]){return e=o.castArray(e),this.options.globalSetup=e,y("configured %d global setup functions",e.length),this},_.prototype.globalTeardown=function(e=[]){return e=o.castArray(e),this.options.globalTeardown=e,y("configured %d global teardown functions",e.length),this},_.prototype.runGlobalSetup=async function(e={}){const{globalSetup:t}=this.options;return t&&t.length&&(y("run(): global setup starting"),await this._runGlobalFixtures(t,e),y("run(): global setup complete")),e},_.prototype.runGlobalTeardown=async function(e={}){const{globalTeardown:t}=this.options;return t&&t.length&&(y("run(): global teardown starting"),await this._runGlobalFixtures(t,e)),y("run(): global teardown complete"),e},_.prototype._runGlobalFixtures=async function(e=[],t={}){for await(const r of e)await r.call(t);return t},_.prototype.enableGlobalSetup=function(e=!0){return this.options.enableGlobalSetup=Boolean(e),this},_.prototype.enableGlobalTeardown=function(e=!0){return this.options.enableGlobalTeardown=Boolean(e),this},_.prototype.hasGlobalSetupFixtures=function(){return Boolean(this.options.globalSetup.length)},_.prototype.hasGlobalTeardownFixtures=function(){return Boolean(this.options.globalTeardown.length)}}(Dr,Dr.exports),S.stdout=xr({label:!1});var Ga=function(e){return e.replace("?","").split("&").reduce((function(e,t){var r=t.indexOf("="),n=t.slice(0,r),i=t.slice(++r);return e[n]=decodeURIComponent(i.replace(/\+/g,"%20")),e}),{})},za=function(e){for(var t=document.getElementById("mocha").getElementsByTagName(e),r=0,n=t.length;r<n;++r)t[r].innerHTML=t[r].innerHTML.replace(/</g,"<").replace(/>/g,">").replace(/\/\/(.*)/gm,'<span class="comment">//$1</span>').replace(/('.*?')/gm,'<span class="string">$1</span>').replace(/(\d+\.\d+)/gm,'<span class="number">$1</span>').replace(/(\d+)/gm,'<span class="number">$1</span>').replace(/\bnew[ \t]+(\w+)/gm,'<span class="keyword">new</span> <span class="init">$1</span>').replace(/\b(function|new|throw|return|var|if|else)\b/gm,'<span class="keyword">$1</span>')},Ya=Dr.exports,$a=new Ya({reporter:"html"}),Wa=D.Date,Ja=D.setTimeout;D.setInterval,D.clearTimeout,D.clearInterval;var Ka=[],Za=D.onerror;S.removeListener=function(e,t){if("uncaughtException"===e){D.onerror=Za||function(){};var r=Ka.indexOf(t);-1!==r&&Ka.splice(r,1)}},S.listenerCount=function(e){return"uncaughtException"===e?Ka.length:0},S.on=function(e,t){"uncaughtException"===e&&(D.onerror=function(e,r,n,i,o){return t(o||new Error(e+" ("+r+":"+n+":"+i+")")),!$a.options.allowUncaught},Ka.push(t))},S.listeners=function(e){return"uncaughtException"===e?Ka:[]},$a.suite.removeAllListeners("pre-require");var Qa,Xa=[];function eu(){for(var e=(new Wa).getTime();Xa.length&&(new Wa).getTime()-e<100;)Xa.shift()();Qa=Xa.length?Ja(eu,0):null}return Ya.Runner.immediately=function(e){Xa.push(e),Qa||(Qa=Ja(eu,0))},$a.throwError=function(e){throw Ka.forEach((function(t){t(e)})),e},$a.ui=function(e){return Ya.prototype.ui.call(this,e),this.suite.emit("pre-require",D,null,this),this},$a.setup=function(e){"string"==typeof e&&(e={ui:e}),!0===e.delay&&this.delay();var t=this;return Object.keys(e).filter((function(e){return"delay"!==e})).forEach((function(r){Object.prototype.hasOwnProperty.call(e,r)&&t[r](e[r])})),this},$a.run=function(e){var t=$a.options;$a.globals("location");var r=Ga(D.location.search||"");return r.grep&&$a.grep(r.grep),r.fgrep&&$a.fgrep(r.fgrep),r.invert&&$a.invert(),Ya.prototype.run.call($a,(function(r){var n=D.document;n&&n.getElementById("mocha")&&!0!==t.noHighlighting&&za("code"),e&&e(r)}))},Ya.process=S,D.Mocha=Ya,D.mocha=$a,["describe","context","it","specify","xdescribe","xcontext","xit","xspecify","before","beforeEach","afterEach","after"].forEach((function(e){$a[e]=D[e]})),$a}));const t="wds-import-map";let r=!1;const n=new URL(window.location.href).searchParams.get("wtr-test-file"),i=new URL(window.location.href).searchParams.get("wtr-session-id");if("string"!=typeof i&&"string"!=typeof n)throw new Error("Could not find any session id or test filequery parameter.");if(!window.__WTR_CONFIG__){const e="Could not find any config defined by the test runner. Are your dependencies up to date?";throw o({message:e}),new Error(e)}function o(e){return s({userAgent:window.navigator.userAgent,passed:!1,errors:[{name:e.name,message:e.message,stack:e.stack,expected:e.expected,actual:e.actual}]})}async function s(t){if(!i)return;if(r)return;r=!0;const o={logs:window.__wtr_browser_logs__?window.__wtr_browser_logs__.logs:[],errors:[],...t};await e({type:"wtr-session-finished",userAgent:window.navigator.userAgent,sessionId:i,testFile:n,result:o})}function a(e){const t=[];let r=!0;function n(e){var r,n;for(const i of e){const e=i.err;if("failed"===i.state||e)if(e){const i=null!==(n=null===(r=e.stack)||void 0===r?void 0:r.split("\n"))&&void 0!==n?n:[];t.push({name:e.name,message:e.message,stack:i.join("\n")})}else t.push({message:"Unknown error in mocha hook"})}}const i=function e(t){n(t._beforeAll),n(t._afterAll),n(t._beforeEach),n(t._afterEach);const i=t.suites.map((t=>e(t))),o=function(e){const t=[];for(const n of e){n.isPassed()||n.isPending()||(r=!1);const e=n.err;t.push({name:n.title,passed:n.isPassed(),skipped:n.isPending(),...void 0!==n.duration&&{duration:n.duration},error:e?{name:e.name,message:e.message,stack:e.stack,expected:e.expected,actual:e.actual}:void 0})}return t}(t.tests);return{name:t.title,suites:i,tests:o}}(e.suite);return{testResults:i,hookErrors:t,passed:r}}const u="\n @charset \"utf-8\";\n\n body {\n margin:0;\n }\n\n #mocha {\n font: 20px/1.5 \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n margin: 60px 50px;\n }\n\n #mocha ul,\n #mocha li {\n margin: 0;\n padding: 0;\n }\n\n #mocha ul {\n list-style: none;\n }\n\n #mocha h1,\n #mocha h2 {\n margin: 0;\n }\n\n #mocha h1 {\n margin-top: 15px;\n font-size: 1em;\n font-weight: 200;\n }\n\n #mocha h1 a {\n text-decoration: none;\n color: inherit;\n }\n\n #mocha h1 a:hover {\n text-decoration: underline;\n }\n\n #mocha .suite .suite h1 {\n margin-top: 0;\n font-size: .8em;\n }\n\n #mocha .hidden {\n display: none;\n }\n\n #mocha h2 {\n font-size: 12px;\n font-weight: normal;\n cursor: pointer;\n }\n\n #mocha .suite {\n margin-left: 15px;\n }\n\n #mocha .test {\n margin-left: 15px;\n overflow: hidden;\n }\n\n #mocha .test.pending:hover h2::after {\n content: '(pending)';\n font-family: arial, sans-serif;\n }\n\n #mocha .test.pass.medium .duration {\n background: #c09853;\n }\n\n #mocha .test.pass.slow .duration {\n background: #b94a48;\n }\n\n #mocha .test.pass::before {\n content: '✓';\n font-size: 12px;\n display: block;\n float: left;\n margin-right: 5px;\n color: #00d6b2;\n }\n\n #mocha .test.pass .duration {\n font-size: 9px;\n margin-left: 5px;\n padding: 2px 5px;\n color: #fff;\n -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.2);\n -moz-box-shadow: inset 0 1px 1px rgba(0,0,0,.2);\n box-shadow: inset 0 1px 1px rgba(0,0,0,.2);\n -webkit-border-radius: 5px;\n -moz-border-radius: 5px;\n -ms-border-radius: 5px;\n -o-border-radius: 5px;\n border-radius: 5px;\n }\n\n #mocha .test.pass.fast .duration {\n display: none;\n }\n\n #mocha .test.pending {\n color: #0b97c4;\n }\n\n #mocha .test.pending::before {\n content: '◦';\n color: #0b97c4;\n }\n\n #mocha .test.fail {\n color: #c00;\n }\n\n #mocha .test.fail pre {\n color: black;\n }\n\n #mocha .test.fail::before {\n content: '✖';\n font-size: 12px;\n display: block;\n float: left;\n margin-right: 5px;\n color: #c00;\n }\n\n #mocha .test pre.error {\n color: #c00;\n max-height: 300px;\n overflow: auto;\n }\n\n #mocha .test .html-error {\n overflow: auto;\n color: black;\n display: block;\n float: left;\n clear: left;\n font: 12px/1.5 monaco, monospace;\n margin: 5px;\n padding: 15px;\n border: 1px solid #eee;\n max-width: 85%; /*(1)*/\n max-width: -webkit-calc(100% - 42px);\n max-width: -moz-calc(100% - 42px);\n max-width: calc(100% - 42px); /*(2)*/\n max-height: 300px;\n word-wrap: break-word;\n border-bottom-color: #ddd;\n -webkit-box-shadow: 0 1px 3px #eee;\n -moz-box-shadow: 0 1px 3px #eee;\n box-shadow: 0 1px 3px #eee;\n -webkit-border-radius: 3px;\n -moz-border-radius: 3px;\n border-radius: 3px;\n }\n\n #mocha .test .html-error pre.error {\n border: none;\n -webkit-border-radius: 0;\n -moz-border-radius: 0;\n border-radius: 0;\n -webkit-box-shadow: 0;\n -moz-box-shadow: 0;\n box-shadow: 0;\n padding: 0;\n margin: 0;\n margin-top: 18px;\n max-height: none;\n }\n\n /**\n * (1): approximate for browsers not supporting calc\n * (2): 42 = 2*15 + 2*10 + 2*1 (padding + margin + border)\n * ^^ seriously\n */\n #mocha .test pre {\n display: block;\n float: left;\n clear: left;\n font: 12px/1.5 monaco, monospace;\n margin: 5px;\n padding: 15px;\n border: 1px solid #eee;\n max-width: 85%; /*(1)*/\n max-width: -webkit-calc(100% - 42px);\n max-width: -moz-calc(100% - 42px);\n max-width: calc(100% - 42px); /*(2)*/\n word-wrap: break-word;\n border-bottom-color: #ddd;\n -webkit-box-shadow: 0 1px 3px #eee;\n -moz-box-shadow: 0 1px 3px #eee;\n box-shadow: 0 1px 3px #eee;\n -webkit-border-radius: 3px;\n -moz-border-radius: 3px;\n border-radius: 3px;\n }\n\n #mocha .test h2 {\n position: relative;\n }\n\n #mocha .test a.replay {\n position: absolute;\n top: 3px;\n right: 0;\n text-decoration: none;\n vertical-align: middle;\n display: block;\n width: 15px;\n height: 15px;\n line-height: 15px;\n text-align: center;\n background: #eee;\n font-size: 15px;\n -webkit-border-radius: 15px;\n -moz-border-radius: 15px;\n border-radius: 15px;\n -webkit-transition:opacity 200ms;\n -moz-transition:opacity 200ms;\n -o-transition:opacity 200ms;\n transition: opacity 200ms;\n opacity: 0.3;\n color: #888;\n }\n\n #mocha .test:hover a.replay {\n opacity: 1;\n }\n\n #mocha-report.pass .test.fail {\n display: none;\n }\n\n #mocha-report.fail .test.pass {\n display: none;\n }\n\n #mocha-report.pending .test.pass,\n #mocha-report.pending .test.fail {\n display: none;\n }\n #mocha-report.pending .test.pass.pending {\n display: block;\n }\n\n #mocha-error {\n color: #c00;\n font-size: 1.5em;\n font-weight: 100;\n letter-spacing: 1px;\n }\n\n #mocha-stats {\n position: fixed;\n top: 15px;\n right: 10px;\n font-size: 12px;\n margin: 0;\n color: #888;\n z-index: 1;\n }\n\n #mocha-stats .progress {\n float: right;\n padding-top: 0;\n\n /**\n * Set safe initial values, so mochas .progress does not inherit these\n * properties from Bootstrap .progress (which causes .progress height to\n * equal line height set in Bootstrap).\n */\n height: auto;\n -webkit-box-shadow: none;\n -moz-box-shadow: none;\n box-shadow: none;\n background-color: initial;\n }\n\n #mocha-stats em {\n color: black;\n }\n\n #mocha-stats a {\n text-decoration: none;\n color: inherit;\n }\n\n #mocha-stats a:hover {\n border-bottom: 1px solid #eee;\n }\n\n #mocha-stats li {\n display: inline-block;\n margin: 0 5px;\n list-style: none;\n padding-top: 11px;\n }\n\n #mocha-stats canvas {\n width: 40px;\n height: 40px;\n }\n\n #mocha code .comment { color: #ddd; }\n #mocha code .init { color: #2f6fad; }\n #mocha code .string { color: #5890ad; }\n #mocha code .keyword { color: #8a6343; }\n #mocha code .number { color: #2f6fad; }\n\n @media screen and (max-device-width: 480px) {\n #mocha {\n margin: 60px 0px;\n }\n\n #mocha #stats {\n position: absolute;\n }\n }\n",l=window.mocha,c=window.Mocha;class f extends c.reporters.Base{}const p=window.mocha;async function h(e){const{debug:r,testFrameworkConfig:n}=await async function(){try{const e=window.__WTR_CONFIG__,r=new URL(import.meta.url).searchParams.get(t);if(null==r)return e;const n=e.testFile.includes("?")?"&":"?";return{...e,testFile:`${e.testFile}${n}${t}=${r}`}}catch(e){throw await o({name:e?e.name:void 0,message:`Failed to fetch test config: ${e?e.message:"Unknown error"}`,stack:e?e.stack:void 0}),e}}();!function(e,t){const r={ui:"bdd",allowUncaught:!1,reporter:"spec",..."object"==typeof t?t:{}};if("html"===r.reporter){const e=document.createElement("div");e.id="mocha",document.body.appendChild(e);const t=document.createElement("style");t.appendChild(document.createTextNode(u)),document.head.appendChild(t)}else e||(r.reporter=f);l.setup(r)}(r,n);try{await e()}catch(e){return void o(e)}const i=p.run(d);window.__WTR_MOCHA_RUNNER__=i}function d(){setTimeout((()=>{const{testResults:e,hookErrors:t,passed:r}=a(p);s({passed:0===t.length&&r,errors:t,testResults:e})}))}!async function(){i&&await e({type:"wtr-session-started",sessionId:i,testFile:n})}();export{p as mocha,h as runTests,o as sessionFailed,d as sessionFinished};
|
|
1
|
+
import{sendMessage as e}from"/__web-dev-server__web-socket.js";!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).mocha=t()}(void 0,(function(){var e="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function t(){throw new Error("setTimeout has not been defined")}function n(){throw new Error("clearTimeout has not been defined")}var r=t,i=n;function o(e){if(r===setTimeout)return setTimeout(e,0);if((r===t||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}"function"==typeof e.setTimeout&&(r=setTimeout),"function"==typeof e.clearTimeout&&(i=clearTimeout);var s,a=[],u=!1,l=-1;function c(){u&&s&&(u=!1,s.length?a=s.concat(a):l=-1,a.length&&f())}function f(){if(!u){var e=o(c);u=!0;for(var t=a.length;t;){for(s=a,a=[];++l<t;)s&&s[l].run();l=-1,t=a.length}s=null,u=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===n||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{return i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(e)}}function h(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];a.push(new d(e,t)),1!==a.length||u||o(f)}function d(e,t){this.fun=e,this.array=t}d.prototype.run=function(){this.fun.apply(null,this.array)};function p(){}var g=p,m=p,E=p,y=p,w=p,_=p,b=p;var v=e.performance||{},T=v.now||v.mozNow||v.msNow||v.oNow||v.webkitNow||function(){return(new Date).getTime()};var N=new Date;var S,R={nextTick:h,title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:g,addListener:m,once:E,off:y,removeListener:w,removeAllListeners:_,emit:b,binding:function(e){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(e){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(e){var t=.001*T.call(v),n=Math.floor(t),r=Math.floor(t%1*1e9);return e&&(n-=e[0],(r-=e[1])<0&&(n--,r+=1e9)),[n,r]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-N)/1e3}},A="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function x(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function k(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){var n=!1;try{n=this instanceof e}catch{}return n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}function O(){}function C(){C.init.call(this)}function I(e){return void 0===e._maxListeners?C.defaultMaxListeners:e._maxListeners}function L(e,t,n,r){var i,o,s,a;if("function"!=typeof n)throw new TypeError('"listener" argument must be a function');if((o=e._events)?(o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),s=o[t]):(o=e._events=new O,e._eventsCount=0),s){if("function"==typeof s?s=o[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),!s.warned&&(i=I(e))&&i>0&&s.length>i){s.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+t+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=s.length,a=u,"function"==typeof console.warn?console.warn(a):console.log(a)}}else s=o[t]=n,++e._eventsCount;return e}function P(e,t,n){var r=!1;function i(){e.removeListener(t,i),r||(r=!0,n.apply(e,arguments))}return i.listener=n,i}function D(e){var t=this._events;if(t){var n=t[e];if("function"==typeof n)return 1;if(n)return n.length}return 0}function F(e,t){for(var n=new Array(t);t--;)n[t]=e[t];return n}O.prototype=Object.create(null),C.EventEmitter=C,C.usingDomains=!1,C.prototype.domain=void 0,C.prototype._events=void 0,C.prototype._maxListeners=void 0,C.defaultMaxListeners=10,C.init=function(){this.domain=null,C.usingDomains&&(!S.active||this instanceof S.Domain||(this.domain=S.active)),this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new O,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},C.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},C.prototype.getMaxListeners=function(){return I(this)},C.prototype.emit=function(e){var t,n,r,i,o,s,a,u="error"===e;if(s=this._events)u=u&&null==s.error;else if(!u)return!1;if(a=this.domain,u){if(t=arguments[1],!a){if(t instanceof Error)throw t;var l=new Error('Uncaught, unspecified "error" event. ('+t+")");throw l.context=t,l}return t||(t=new Error('Uncaught, unspecified "error" event')),t.domainEmitter=this,t.domain=a,t.domainThrown=!1,a.emit("error",t),!1}if(!(n=s[e]))return!1;var c="function"==typeof n;switch(r=arguments.length){case 1:!function(e,t,n){if(t)e.call(n);else for(var r=e.length,i=F(e,r),o=0;o<r;++o)i[o].call(n)}(n,c,this);break;case 2:!function(e,t,n,r){if(t)e.call(n,r);else for(var i=e.length,o=F(e,i),s=0;s<i;++s)o[s].call(n,r)}(n,c,this,arguments[1]);break;case 3:!function(e,t,n,r,i){if(t)e.call(n,r,i);else for(var o=e.length,s=F(e,o),a=0;a<o;++a)s[a].call(n,r,i)}(n,c,this,arguments[1],arguments[2]);break;case 4:!function(e,t,n,r,i,o){if(t)e.call(n,r,i,o);else for(var s=e.length,a=F(e,s),u=0;u<s;++u)a[u].call(n,r,i,o)}(n,c,this,arguments[1],arguments[2],arguments[3]);break;default:for(i=new Array(r-1),o=1;o<r;o++)i[o-1]=arguments[o];!function(e,t,n,r){if(t)e.apply(n,r);else for(var i=e.length,o=F(e,i),s=0;s<i;++s)o[s].apply(n,r)}(n,c,this,i)}return!0},C.prototype.addListener=function(e,t){return L(this,e,t,!1)},C.prototype.on=C.prototype.addListener,C.prototype.prependListener=function(e,t){return L(this,e,t,!0)},C.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.on(e,P(this,e,t)),this},C.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.prependListener(e,P(this,e,t)),this},C.prototype.removeListener=function(e,t){var n,r,i,o,s;if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');if(!(r=this._events))return this;if(!(n=r[e]))return this;if(n===t||n.listener&&n.listener===t)0==--this._eventsCount?this._events=new O:(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length;o-- >0;)if(n[o]===t||n[o].listener&&n[o].listener===t){s=n[o].listener,i=o;break}if(i<0)return this;if(1===n.length){if(n[0]=void 0,0==--this._eventsCount)return this._events=new O,this;delete r[e]}else!function(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}(n,i);r.removeListener&&this.emit("removeListener",e,s||t)}return this},C.prototype.off=function(e,t){return this.removeListener(e,t)},C.prototype.removeAllListeners=function(e){var t,n;if(!(n=this._events))return this;if(!n.removeListener)return 0===arguments.length?(this._events=new O,this._eventsCount=0):n[e]&&(0==--this._eventsCount?this._events=new O:delete n[e]),this;if(0===arguments.length){for(var r,i=Object.keys(n),o=0;o<i.length;++o)"removeListener"!==(r=i[o])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=new O,this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(t)do{this.removeListener(e,t[t.length-1])}while(t[0]);return this},C.prototype.listeners=function(e){var t,n=this._events;return n&&(t=n[e])?"function"==typeof t?[t.listener||t]:function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(t):[]},C.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):D.call(e,t)},C.prototype.listenerCount=D,C.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};var j=[],U=[],M="undefined"!=typeof Uint8Array?Uint8Array:Array,B=!1;function V(){B=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0;t<64;++t)j[t]=e[t],U[e.charCodeAt(t)]=t;U["-".charCodeAt(0)]=62,U["_".charCodeAt(0)]=63}function z(e,t,n){for(var r,i,o=[],s=t;s<n;s+=3)r=(e[s]<<16)+(e[s+1]<<8)+e[s+2],o.push(j[(i=r)>>18&63]+j[i>>12&63]+j[i>>6&63]+j[63&i]);return o.join("")}function G(e){var t;B||V();for(var n=e.length,r=n%3,i="",o=[],s=16383,a=0,u=n-r;a<u;a+=s)o.push(z(e,a,a+s>u?u:a+s));return 1===r?(t=e[n-1],i+=j[t>>2],i+=j[t<<4&63],i+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],i+=j[t>>10],i+=j[t>>4&63],i+=j[t<<2&63],i+="="),o.push(i),o.join("")}function H(e,t,n,r,i){var o,s,a=8*i-r-1,u=(1<<a)-1,l=u>>1,c=-7,f=n?i-1:0,h=n?-1:1,d=e[t+f];for(f+=h,o=d&(1<<-c)-1,d>>=-c,c+=a;c>0;o=256*o+e[t+f],f+=h,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=r;c>0;s=256*s+e[t+f],f+=h,c-=8);if(0===o)o=1-l;else{if(o===u)return s?NaN:1/0*(d?-1:1);s+=Math.pow(2,r),o-=l}return(d?-1:1)*s*Math.pow(2,o-r)}function $(e,t,n,r,i,o){var s,a,u,l=8*o-i-1,c=(1<<l)-1,f=c>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,p=r?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,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),(t+=s+f>=1?h/u:h*Math.pow(2,1-f))*u>=2&&(s++,u/=2),s+f>=c?(a=0,s=c):s+f>=1?(a=(t*u-1)*Math.pow(2,i),s+=f):(a=t*Math.pow(2,f-1)*Math.pow(2,i),s=0));i>=8;e[n+d]=255&a,d+=p,a/=256,i-=8);for(s=s<<i|a,l+=i;l>0;e[n+d]=255&s,d+=p,s/=256,l-=8);e[n+d-p]|=128*g}var Y={}.toString,W=Array.isArray||function(e){return"[object Array]"==Y.call(e)};function q(){return K.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function J(e,t){if(q()<t)throw new RangeError("Invalid typed array length");return K.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=K.prototype:(null===e&&(e=new K(t)),e.length=t),e}function K(e,t,n){if(!(K.TYPED_ARRAY_SUPPORT||this instanceof K))return new K(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return Q(this,e)}return X(this,e,t,n)}function X(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);K.TYPED_ARRAY_SUPPORT?(e=t).__proto__=K.prototype:e=ee(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!K.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|re(t,n);e=J(e,r);var i=e.write(t,n);i!==r&&(e=e.slice(0,i));return e}(e,t,n):function(e,t){if(ne(t)){var n=0|te(t.length);return 0===(e=J(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?J(e,0):ee(e,t);if("Buffer"===t.type&&W(t.data))return ee(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function Z(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function Q(e,t){if(Z(t),e=J(e,t<0?0:0|te(t)),!K.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function ee(e,t){var n=t.length<0?0:0|te(t.length);e=J(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function te(e){if(e>=q())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+q().toString(16)+" bytes");return 0|e}function ne(e){return!(null==e||!e._isBuffer)}function re(e,t){if(ne(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Ce(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Ie(e).length;default:if(r)return Ce(e).length;t=(""+t).toLowerCase(),r=!0}}function ie(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return we(this,t,n);case"utf8":case"utf-8":return ge(this,t,n);case"ascii":return Ee(this,t,n);case"latin1":case"binary":return ye(this,t,n);case"base64":return pe(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _e(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function oe(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function se(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=K.from(t,r)),ne(t))return 0===t.length?-1:ae(e,t,n,r,i);if("number"==typeof t)return t&=255,K.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):ae(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function ae(e,t,n,r,i){var o,s=1,a=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,a/=2,u/=2,n/=2}function l(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var c=-1;for(o=n;o<a;o++)if(l(e,o)===l(t,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===u)return c*s}else-1!==c&&(o-=o-c),c=-1}else for(n+u>a&&(n=a-u),o=n;o>=0;o--){for(var f=!0,h=0;h<u;h++)if(l(e,o+h)!==l(t,h)){f=!1;break}if(f)return o}return-1}function ue(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var s=0;s<r;++s){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))return s;e[n+s]=a}return s}function le(e,t,n,r){return Le(Ce(t,e.length-n),e,n,r)}function ce(e,t,n,r){return Le(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function fe(e,t,n,r){return ce(e,t,n,r)}function he(e,t,n,r){return Le(Ie(t),e,n,r)}function de(e,t,n,r){return Le(function(e,t){for(var n,r,i,o=[],s=0;s<e.length&&!((t-=2)<0);++s)r=(n=e.charCodeAt(s))>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function pe(e,t,n){return 0===t&&n===e.length?G(e):G(e.slice(t,n))}function ge(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,s,a,u,l=e[i],c=null,f=l>239?4:l>223?3:l>191?2:1;if(i+f<=n)switch(f){case 1:l<128&&(c=l);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&l)<<6|63&o)>127&&(c=u);break;case 3:o=e[i+1],s=e[i+2],128==(192&o)&&128==(192&s)&&(u=(15&l)<<12|(63&o)<<6|63&s)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:o=e[i+1],s=e[i+2],a=e[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(u=(15&l)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(c=u)}null===c?(c=65533,f=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=f}return function(e){var t=e.length;if(t<=me)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=me));return n}(r)}K.TYPED_ARRAY_SUPPORT=void 0===e.TYPED_ARRAY_SUPPORT||e.TYPED_ARRAY_SUPPORT,q(),K.poolSize=8192,K._augment=function(e){return e.__proto__=K.prototype,e},K.from=function(e,t,n){return X(null,e,t,n)},K.TYPED_ARRAY_SUPPORT&&(K.prototype.__proto__=Uint8Array.prototype,K.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&K[Symbol.species]),K.alloc=function(e,t,n){return function(e,t,n,r){return Z(t),t<=0?J(e,t):void 0!==n?"string"==typeof r?J(e,t).fill(n,r):J(e,t).fill(n):J(e,t)}(null,e,t,n)},K.allocUnsafe=function(e){return Q(null,e)},K.allocUnsafeSlow=function(e){return Q(null,e)},K.isBuffer=function(e){return null!=e&&(!!e._isBuffer||Pe(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&Pe(e.slice(0,0))}(e))},K.compare=function(e,t){if(!ne(e)||!ne(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},K.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}},K.concat=function(e,t){if(!W(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return K.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=K.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(!ne(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},K.byteLength=re,K.prototype._isBuffer=!0,K.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)oe(this,t,t+1);return this},K.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)oe(this,t,t+3),oe(this,t+1,t+2);return this},K.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)oe(this,t,t+7),oe(this,t+1,t+6),oe(this,t+2,t+5),oe(this,t+3,t+4);return this},K.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?ge(this,0,e):ie.apply(this,arguments)},K.prototype.equals=function(e){if(!ne(e))throw new TypeError("Argument must be a Buffer");return this===e||0===K.compare(this,e)},K.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),"<Buffer "+e+">"},K.prototype.compare=function(e,t,n,r,i){if(!ne(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0),a=Math.min(o,s),u=this.slice(r,i),l=e.slice(t,n),c=0;c<a;++c)if(u[c]!==l[c]){o=u[c],s=l[c];break}return o<s?-1:s<o?1:0},K.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},K.prototype.indexOf=function(e,t,n){return se(this,e,t,n,!0)},K.prototype.lastIndexOf=function(e,t,n){return se(this,e,t,n,!1)},K.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return ue(this,e,t,n);case"utf8":case"utf-8":return le(this,e,t,n);case"ascii":return ce(this,e,t,n);case"latin1":case"binary":return fe(this,e,t,n);case"base64":return he(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return de(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},K.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var me=4096;function Ee(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function ye(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function we(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=Oe(e[o]);return i}function _e(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function be(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function ve(e,t,n,r,i,o){if(!ne(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function Te(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function Ne(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function Se(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function Re(e,t,n,r,i){return i||Se(e,0,n,4),$(e,t,n,r,23,4),n+4}function Ae(e,t,n,r,i){return i||Se(e,0,n,8),$(e,t,n,r,52,8),n+8}K.prototype.slice=function(e,t){var n,r=this.length;if((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),K.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=K.prototype;else{var i=t-e;n=new K(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+e]}return n},K.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||be(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},K.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||be(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},K.prototype.readUInt8=function(e,t){return t||be(e,1,this.length),this[e]},K.prototype.readUInt16LE=function(e,t){return t||be(e,2,this.length),this[e]|this[e+1]<<8},K.prototype.readUInt16BE=function(e,t){return t||be(e,2,this.length),this[e]<<8|this[e+1]},K.prototype.readUInt32LE=function(e,t){return t||be(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},K.prototype.readUInt32BE=function(e,t){return t||be(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},K.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||be(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},K.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||be(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},K.prototype.readInt8=function(e,t){return t||be(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},K.prototype.readInt16LE=function(e,t){t||be(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},K.prototype.readInt16BE=function(e,t){t||be(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},K.prototype.readInt32LE=function(e,t){return t||be(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},K.prototype.readInt32BE=function(e,t){return t||be(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},K.prototype.readFloatLE=function(e,t){return t||be(e,4,this.length),H(this,e,!0,23,4)},K.prototype.readFloatBE=function(e,t){return t||be(e,4,this.length),H(this,e,!1,23,4)},K.prototype.readDoubleLE=function(e,t){return t||be(e,8,this.length),H(this,e,!0,52,8)},K.prototype.readDoubleBE=function(e,t){return t||be(e,8,this.length),H(this,e,!1,52,8)},K.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||ve(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},K.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||ve(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},K.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||ve(this,e,t,1,255,0),K.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},K.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||ve(this,e,t,2,65535,0),K.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Te(this,e,t,!0),t+2},K.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||ve(this,e,t,2,65535,0),K.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Te(this,e,t,!1),t+2},K.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||ve(this,e,t,4,4294967295,0),K.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):Ne(this,e,t,!0),t+4},K.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||ve(this,e,t,4,4294967295,0),K.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Ne(this,e,t,!1),t+4},K.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);ve(this,e,t,n,i-1,-i)}var o=0,s=1,a=0;for(this[t]=255&e;++o<n&&(s*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+n},K.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);ve(this,e,t,n,i-1,-i)}var o=n-1,s=1,a=0;for(this[t+o]=255&e;--o>=0&&(s*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+n},K.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||ve(this,e,t,1,127,-128),K.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},K.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||ve(this,e,t,2,32767,-32768),K.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Te(this,e,t,!0),t+2},K.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||ve(this,e,t,2,32767,-32768),K.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Te(this,e,t,!1),t+2},K.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||ve(this,e,t,4,2147483647,-2147483648),K.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):Ne(this,e,t,!0),t+4},K.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||ve(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),K.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Ne(this,e,t,!1),t+4},K.prototype.writeFloatLE=function(e,t,n){return Re(this,e,t,!0,n)},K.prototype.writeFloatBE=function(e,t,n){return Re(this,e,t,!1,n)},K.prototype.writeDoubleLE=function(e,t,n){return Ae(this,e,t,!0,n)},K.prototype.writeDoubleBE=function(e,t,n){return Ae(this,e,t,!1,n)},K.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!K.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},K.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!K.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var s=ne(e)?e:Ce(new K(e,r).toString()),a=s.length;for(o=0;o<n-t;++o)this[o+t]=s[o%a]}return this};var xe,ke=/[^+\/0-9A-Za-z-_]/g;function Oe(e){return e<16?"0"+e.toString(16):e.toString(16)}function Ce(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],s=0;s<r;++s){if((n=e.charCodeAt(s))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function Ie(e){return function(e){var t,n,r,i,o,s;B||V();var a=e.length;if(a%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===e[a-2]?2:"="===e[a-1]?1:0,s=new M(3*a/4-o),r=o>0?a-4:a;var u=0;for(t=0,n=0;t<r;t+=4,n+=3)i=U[e.charCodeAt(t)]<<18|U[e.charCodeAt(t+1)]<<12|U[e.charCodeAt(t+2)]<<6|U[e.charCodeAt(t+3)],s[u++]=i>>16&255,s[u++]=i>>8&255,s[u++]=255&i;return 2===o?(i=U[e.charCodeAt(t)]<<2|U[e.charCodeAt(t+1)]>>4,s[u++]=255&i):1===o&&(i=U[e.charCodeAt(t)]<<10|U[e.charCodeAt(t+1)]<<4|U[e.charCodeAt(t+2)]>>2,s[u++]=i>>8&255,s[u++]=255&i),s}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(ke,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Le(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function Pe(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}xe="function"==typeof Object.create?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e};var De=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++)n[t[r]]=Object.getOwnPropertyDescriptor(e,t[r]);return n},Fe=/%[sdj%]/g;function je(e){if(!Qe(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(ze(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,i=r.length,o=String(e).replace(Fe,(function(e){if("%%"===e)return"%";if(n>=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),s=r[n];n<i;s=r[++n])Ke(s)||!rt(s)?o+=" "+s:o+=" "+ze(s);return o}function Ue(t,n){if(tt(e.process))return function(){return Ue(t,n).apply(this,arguments)};if(!0===R.noDeprecation)return t;var r=!1;return function(){if(!r){if(R.throwDeprecation)throw new Error(n);R.traceDeprecation?console.trace(n):console.error(n),r=!0}return t.apply(this,arguments)}}var Me,Be={};function Ve(e){if(tt(Me)&&(Me=R.env.NODE_DEBUG||""),e=e.toUpperCase(),!Be[e])if(new RegExp("\\b"+e+"\\b","i").test(Me)){Be[e]=function(){var t=je.apply(null,arguments);console.error("%s %d: %s",e,0,t)}}else Be[e]=function(){};return Be[e]}function ze(e,t){var n={seen:[],stylize:He};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),Je(t)?n.showHidden=t:t&&dt(n,t),tt(n.showHidden)&&(n.showHidden=!1),tt(n.depth)&&(n.depth=2),tt(n.colors)&&(n.colors=!1),tt(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=Ge),$e(n,e,n.depth)}function Ge(e,t){var n=ze.styles[t];return n?"["+ze.colors[n][0]+"m"+e+"["+ze.colors[n][1]+"m":e}function He(e,t){return e}function $e(e,t,n){if(e.customInspect&&t&&st(t.inspect)&&t.inspect!==ze&&(!t.constructor||t.constructor.prototype!==t)){var r=t.inspect(n,e);return Qe(r)||(r=$e(e,r,n)),r}var i=function(e,t){if(tt(t))return e.stylize("undefined","undefined");if(Qe(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(Ze(t))return e.stylize(""+t,"number");if(Je(t))return e.stylize(""+t,"boolean");if(Ke(t))return e.stylize("null","null")}(e,t);if(i)return i;var o=Object.keys(t),s=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(t)),ot(t)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return Ye(t);if(0===o.length){if(st(t)){var a=t.name?": "+t.name:"";return e.stylize("[Function"+a+"]","special")}if(nt(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(it(t))return e.stylize(Date.prototype.toString.call(t),"date");if(ot(t))return Ye(t)}var u,l="",c=!1,f=["{","}"];(qe(t)&&(c=!0,f=["[","]"]),st(t))&&(l=" [Function"+(t.name?": "+t.name:"")+"]");return nt(t)&&(l=" "+RegExp.prototype.toString.call(t)),it(t)&&(l=" "+Date.prototype.toUTCString.call(t)),ot(t)&&(l=" "+Ye(t)),0!==o.length||c&&0!=t.length?n<0?nt(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),u=c?function(e,t,n,r,i){for(var o=[],s=0,a=t.length;s<a;++s)pt(t,String(s))?o.push(We(e,t,n,r,String(s),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(We(e,t,n,r,i,!0))})),o}(e,t,n,s,o):o.map((function(r){return We(e,t,n,s,r,c)})),e.seen.pop(),function(e,t,n){var r=e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0);if(r>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(u,l,f)):f[0]+l+f[1]}function Ye(e){return"["+Error.prototype.toString.call(e)+"]"}function We(e,t,n,r,i,o){var s,a,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?a=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(a=e.stylize("[Setter]","special")),pt(r,i)||(s="["+i+"]"),a||(e.seen.indexOf(u.value)<0?(a=Ke(n)?$e(e,u.value,null):$e(e,u.value,n-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+a.split("\n").map((function(e){return" "+e})).join("\n")):a=e.stylize("[Circular]","special")),tt(s)){if(o&&i.match(/^\d+$/))return a;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+a}function qe(e){return Array.isArray(e)}function Je(e){return"boolean"==typeof e}function Ke(e){return null===e}function Xe(e){return null==e}function Ze(e){return"number"==typeof e}function Qe(e){return"string"==typeof e}function et(e){return"symbol"==typeof e}function tt(e){return void 0===e}function nt(e){return rt(e)&&"[object RegExp]"===lt(e)}function rt(e){return"object"==typeof e&&null!==e}function it(e){return rt(e)&&"[object Date]"===lt(e)}function ot(e){return rt(e)&&("[object Error]"===lt(e)||e instanceof Error)}function st(e){return"function"==typeof e}function at(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function ut(e){return K.isBuffer(e)}function lt(e){return Object.prototype.toString.call(e)}function ct(e){return e<10?"0"+e.toString(10):e.toString(10)}ze.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},ze.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};var ft=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function ht(){var e,t;console.log("%s - %s",(e=new Date,t=[ct(e.getHours()),ct(e.getMinutes()),ct(e.getSeconds())].join(":"),[e.getDate(),ft[e.getMonth()],t].join(" ")),je.apply(null,arguments))}function dt(e,t){if(!t||!rt(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}function pt(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var gt="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function mt(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(gt&&e[gt]){var t;if("function"!=typeof(t=e[gt]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,gt,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise((function(e,r){t=e,n=r})),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push((function(e,r){e?n(e):t(r)}));try{e.apply(this,i)}catch(e){n(e)}return r}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),gt&&Object.defineProperty(t,gt,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,De(e))}function Et(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}function yt(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n]);var r=t.pop();if("function"!=typeof r)throw new TypeError("The last argument must be of type Function");var i=this,o=function(){return r.apply(i,arguments)};e.apply(this,t).then((function(e){R.nextTick(o.bind(null,null,e))}),(function(e){R.nextTick(Et.bind(null,e,o))}))}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,De(e)),t}mt.custom=gt;var wt={inherits:xe,_extend:dt,log:ht,isBuffer:ut,isPrimitive:at,isFunction:st,isError:ot,isDate:it,isObject:rt,isRegExp:nt,isUndefined:tt,isSymbol:et,isString:Qe,isNumber:Ze,isNullOrUndefined:Xe,isNull:Ke,isBoolean:Je,isArray:qe,inspect:ze,deprecate:Ue,format:je,debuglog:Ve,promisify:mt,callbackify:yt},_t=Object.freeze({__proto__:null,_extend:dt,callbackify:yt,debuglog:Ve,default:wt,deprecate:Ue,format:je,inherits:xe,inspect:ze,isArray:qe,isBoolean:Je,isBuffer:ut,isDate:it,isError:ot,isFunction:st,isNull:Ke,isNullOrUndefined:Xe,isNumber:Ze,isObject:rt,isPrimitive:at,isRegExp:nt,isString:Qe,isSymbol:et,isUndefined:tt,log:ht,promisify:mt});function bt(){this.head=null,this.tail=null,this.length=0}bt.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},bt.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},bt.prototype.shift=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}},bt.prototype.clear=function(){this.head=this.tail=null,this.length=0},bt.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},bt.prototype.concat=function(e){if(0===this.length)return K.alloc(0);if(1===this.length)return this.head.data;for(var t=K.allocUnsafe(e>>>0),n=this.head,r=0;n;)n.data.copy(t,r),r+=n.data.length,n=n.next;return t};var vt=K.isEncoding||function(e){switch(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 Tt(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),function(e){if(e&&!vt(e))throw new Error("Unknown encoding: "+e)}(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=St;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=Rt;break;default:return void(this.write=Nt)}this.charBuffer=new K(6),this.charReceived=0,this.charLength=0}function Nt(e){return e.toString(this.encoding)}function St(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function Rt(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}Tt.prototype.write=function(e){for(var t="";this.charLength;){var n=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,n),this.charReceived+=n,this.charReceived<this.charLength)return"";if(e=e.slice(n,e.length),!((i=(t=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(t.length-1))>=55296&&i<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var r=e.length;this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,r),r-=this.charReceived);var i;r=(t+=e.toString(this.encoding,0,r)).length-1;if((i=t.charCodeAt(r))>=55296&&i<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),e.copy(this.charBuffer,0,0,o),t.substring(0,r)}return t},Tt.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var n=e[e.length-t];if(1==t&&n>>5==6){this.charLength=2;break}if(t<=2&&n>>4==14){this.charLength=3;break}if(t<=3&&n>>3==30){this.charLength=4;break}}this.charReceived=t},Tt.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var n=this.charReceived,r=this.charBuffer,i=this.encoding;t+=r.slice(0,n).toString(i)}return t},kt.ReadableState=xt;var At=Ve("stream");function xt(e,t){e=e||{},this.objectMode=!!e.objectMode,t instanceof rn&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var n=e.highWaterMark,r=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:r,this.highWaterMark=~~this.highWaterMark,this.buffer=new bt,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.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(this.decoder=new Tt(e.encoding),this.encoding=e.encoding)}function kt(e){if(!(this instanceof kt))return new kt(e);this._readableState=new xt(e,this),this.readable=!0,e&&"function"==typeof e.read&&(this._read=e.read),C.call(this)}function Ot(e,t,n,r,i){var o=function(e,t){var n=null;K.isBuffer(t)||"string"==typeof t||null==t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));return n}(t,n);if(o)e.emit("error",o);else if(null===n)t.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,Lt(e)}(e,t);else if(t.objectMode||n&&n.length>0)if(t.ended&&!i){var s=new Error("stream.push() after EOF");e.emit("error",s)}else if(t.endEmitted&&i){var a=new Error("stream.unshift() after end event");e.emit("error",a)}else{var u;!t.decoder||i||r||(n=t.decoder.write(n),u=!t.objectMode&&0===n.length),i||(t.reading=!1),u||(t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,i?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&Lt(e))),function(e,t){t.readingMore||(t.readingMore=!0,h(Dt,e,t))}(e,t)}else i||(t.reading=!1);return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(t)}xe(kt,C),kt.prototype.push=function(e,t){var n=this._readableState;return n.objectMode||"string"!=typeof e||(t=t||n.defaultEncoding)!==n.encoding&&(e=K.from(e,t),t=""),Ot(this,n,e,t,!1)},kt.prototype.unshift=function(e){return Ot(this,this._readableState,e,"",!0)},kt.prototype.isPaused=function(){return!1===this._readableState.flowing},kt.prototype.setEncoding=function(e){return this._readableState.decoder=new Tt(e),this._readableState.encoding=e,this};var Ct=8388608;function It(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>=Ct?e=Ct:(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 Lt(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(At("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?h(Pt,e):Pt(e))}function Pt(e){At("emit readable"),e.emit("readable"),Ut(e)}function Dt(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(At("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function Ft(e){At("readable nexttick read 0"),e.read(0)}function jt(e,t){t.reading||(At("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),Ut(e),t.flowing&&!t.reading&&e.read(0)}function Ut(e){var t=e._readableState;for(At("flow",t.flowing);t.flowing&&null!==e.read(););}function Mt(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():n?function(e,t){var n=t.head,r=1,i=n.data;e-=i.length;for(;n=n.next;){var o=n.data,s=e>o.length?o.length:e;if(s===o.length?i+=o:i+=o.slice(0,e),0===(e-=s)){s===o.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(s));break}++r}return t.length-=r,i}(e,t):function(e,t){var n=K.allocUnsafe(e),r=t.head,i=1;r.data.copy(n),e-=r.data.length;for(;r=r.next;){var o=r.data,s=e>o.length?o.length:e;if(o.copy(n,n.length-e,0,s),0===(e-=s)){s===o.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(s));break}++i}return t.length-=i,n}(e,t);return r}(e,t.buffer,t.decoder),n);var n}function Bt(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,h(Vt,t,e))}function Vt(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function zt(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function Gt(){}function Ht(e,t,n){this.chunk=e,this.encoding=t,this.callback=n,this.next=null}function $t(e,t){Object.defineProperty(this,"buffer",{get:Ue((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")}),e=e||{},this.objectMode=!!e.objectMode,t instanceof rn&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var n=e.highWaterMark,r=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:r,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var i=!1===e.decodeStrings;this.decodeStrings=!i,this.defaultEncoding=e.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,r=n.sync,i=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,i){--t.pendingcb,n?h(i,r):i(r);e._writableState.errorEmitted=!0,e.emit("error",r)}(e,n,r,t,i);else{var o=Kt(n);o||n.corked||n.bufferProcessing||!n.bufferedRequest||Jt(e,n),r?h(qt,e,n,o,i):qt(e,n,o,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new Qt(this)}function Yt(e){if(!(this instanceof Yt||this instanceof rn))return new Yt(e);this._writableState=new $t(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev)),C.call(this)}function Wt(e,t,n,r,i,o,s){t.writelen=r,t.writecb=s,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function qt(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),Zt(e,t)}function Jt(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=new Array(r),o=t.corkedRequestsFree;o.entry=n;for(var s=0;n;)i[s]=n,n=n.next,s+=1;Wt(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 Qt(t)}else{for(;n;){var a=n.chunk,u=n.encoding,l=n.callback;if(Wt(e,t,!1,t.objectMode?1:a.length,a,u,l),n=n.next,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequestCount=0,t.bufferedRequest=n,t.bufferProcessing=!1}function Kt(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function Xt(e,t){t.prefinished||(t.prefinished=!0,e.emit("prefinish"))}function Zt(e,t){var n=Kt(t);return n&&(0===t.pendingcb?(Xt(e,t),t.finished=!0,e.emit("finish")):Xt(e,t)),n}function Qt(e){var t=this;this.next=null,this.entry=null,this.finish=function(n){var r=t.entry;for(t.entry=null;r;){var i=r.callback;e.pendingcb--,i(n),r=r.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}}kt.prototype.read=function(e){At("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return At("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?Bt(this):Lt(this),null;if(0===(e=It(e,t))&&t.ended)return 0===t.length&&Bt(this),null;var r,i=t.needReadable;return At("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&At("length less than watermark",i=!0),t.ended||t.reading?At("reading or ended",i=!1):i&&(At("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=It(n,t))),null===(r=e>0?Mt(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&Bt(this)),null!==r&&this.emit("data",r),r},kt.prototype._read=function(e){this.emit("error",new Error("not implemented"))},kt.prototype.pipe=function(e,t){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e)}r.pipesCount+=1,At("pipe count=%d opts=%j",r.pipesCount,t);var i=!t||!1!==t.end?s:l;function o(e){At("onunpipe"),e===n&&l()}function s(){At("onend"),e.end()}r.endEmitted?h(i):n.once("end",i),e.on("unpipe",o);var a=function(e){return function(){var t=e._readableState;At("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&e.listeners("data").length&&(t.flowing=!0,Ut(e))}}(n);e.on("drain",a);var u=!1;function l(){At("cleanup"),e.removeListener("close",p),e.removeListener("finish",g),e.removeListener("drain",a),e.removeListener("error",d),e.removeListener("unpipe",o),n.removeListener("end",s),n.removeListener("end",l),n.removeListener("data",f),u=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||a()}var c=!1;function f(t){At("ondata"),c=!1,!1!==e.write(t)||c||((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==zt(r.pipes,e))&&!u&&(At("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,c=!0),n.pause())}function d(t){var n;At("onerror",t),m(),e.removeListener("error",d),0===(n="error",e.listeners(n).length)&&e.emit("error",t)}function p(){e.removeListener("finish",g),m()}function g(){At("onfinish"),e.removeListener("close",p),m()}function m(){At("unpipe"),n.unpipe(e)}return n.on("data",f),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",d),e.once("close",p),e.once("finish",g),e.emit("pipe",n),r.flowing||(At("pipe resume"),n.resume()),e},kt.prototype.unpipe=function(e){var t=this._readableState;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)),this;if(!e){var n=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<r;i++)n[i].emit("unpipe",this);return this}var o=zt(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)),this},kt.prototype.on=function(e,t){var n=C.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&Lt(this):h(Ft,this))}return n},kt.prototype.addListener=kt.prototype.on,kt.prototype.resume=function(){var e=this._readableState;return e.flowing||(At("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,h(jt,e,t))}(this,e)),this},kt.prototype.pause=function(){return At("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(At("pause"),this._readableState.flowing=!1,this.emit("pause")),this},kt.prototype.wrap=function(e){var t=this._readableState,n=!1,r=this;for(var i in e.on("end",(function(){if(At("wrapped end"),t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&r.push(e)}r.push(null)})),e.on("data",(function(i){(At("wrapped data"),t.decoder&&(i=t.decoder.write(i)),t.objectMode&&null==i)||(t.objectMode||i&&i.length)&&(r.push(i)||(n=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));return function(e,t){for(var n=0,r=e.length;n<r;n++)t(e[n],n)}(["error","close","destroy","pause","resume"],(function(t){e.on(t,r.emit.bind(r,t))})),r._read=function(t){At("wrapped _read",t),n&&(n=!1,e.resume())},r},kt._fromList=Mt,Yt.WritableState=$t,xe(Yt,C),$t.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},Yt.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},Yt.prototype.write=function(e,t,n){var r=this._writableState,i=!1;return"function"==typeof t&&(n=t,t=null),K.isBuffer(e)?t="buffer":t||(t=r.defaultEncoding),"function"!=typeof n&&(n=Gt),r.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),h(t,n)}(this,n):function(e,t,n,r){var i=!0,o=!1;return null===n?o=new TypeError("May not write null values to stream"):K.isBuffer(n)||"string"==typeof n||void 0===n||t.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),h(r,o),i=!1),i}(this,r,e,n)&&(r.pendingcb++,i=function(e,t,n,r,i){n=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=K.from(t,n));return t}(t,n,r),K.isBuffer(n)&&(r="buffer");var o=t.objectMode?1:n.length;t.length+=o;var s=t.length<t.highWaterMark;s||(t.needDrain=!0);if(t.writing||t.corked){var a=t.lastBufferedRequest;t.lastBufferedRequest=new Ht(n,r,i),a?a.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else Wt(e,t,!1,o,n,r,i);return s}(this,r,e,t,n)),i},Yt.prototype.cork=function(){this._writableState.corked++},Yt.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||Jt(this,e))},Yt.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 TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Yt.prototype._write=function(e,t,n){n(new Error("not implemented"))},Yt.prototype._writev=null,Yt.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,n){t.ending=!0,Zt(e,t),n&&(t.finished?h(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,r,n)},xe(rn,kt);for(var en=Object.keys(Yt.prototype),tn=0;tn<en.length;tn++){var nn=en[tn];rn.prototype[nn]||(rn.prototype[nn]=Yt.prototype[nn])}function rn(e){if(!(this instanceof rn))return new rn(e);kt.call(this,e),Yt.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",on)}function on(){this.allowHalfOpen||this._writableState.ended||h(sn,this)}function sn(e){e.end()}function an(e){this.afterTransform=function(t,n){return function(e,t,n){var r=e._transformState;r.transforming=!1;var i=r.writecb;if(!i)return e.emit("error",new Error("no writecb in Transform class"));r.writechunk=null,r.writecb=null,null!=n&&e.push(n);i(t);var o=e._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&e._read(o.highWaterMark)}(e,t,n)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function un(e){if(!(this instanceof un))return new un(e);rn.call(this,e),this._transformState=new an(this);var t=this;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.once("prefinish",(function(){"function"==typeof this._flush?this._flush((function(e){ln(t,e)})):ln(t)}))}function ln(e,t){if(t)return e.emit("error",t);var n=e._writableState,r=e._transformState;if(n.length)throw new Error("Calling transform done when ws.length != 0");if(r.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}function cn(e){if(!(this instanceof cn))return new cn(e);un.call(this,e)}function fn(){C.call(this)}xe(un,rn),un.prototype.push=function(e,t){return this._transformState.needTransform=!1,rn.prototype.push.call(this,e,t)},un.prototype._transform=function(e,t,n){throw new Error("Not implemented")},un.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},un.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},xe(cn,un),cn.prototype._transform=function(e,t,n){n(null,e)},xe(fn,C),fn.Readable=kt,fn.Writable=Yt,fn.Duplex=rn,fn.Transform=un,fn.PassThrough=cn,fn.Stream=fn,fn.prototype.pipe=function(e,t){var n=this;function r(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function i(){n.readable&&n.resume&&n.resume()}n.on("data",r),e.on("drain",i),e._isStdio||t&&!1===t.end||(n.on("end",s),n.on("close",a));var o=!1;function s(){o||(o=!0,e.end())}function a(){o||(o=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){if(l(),0===C.listenerCount(this,"error"))throw e}function l(){n.removeListener("data",r),e.removeListener("drain",i),n.removeListener("end",s),n.removeListener("close",a),n.removeListener("error",u),e.removeListener("error",u),n.removeListener("end",l),n.removeListener("close",l),e.removeListener("close",l)}return n.on("error",u),e.on("error",u),n.on("end",l),n.on("close",l),e.on("close",l),e.emit("pipe",n),e};var hn,dn,pn=k(Object.freeze({__proto__:null,Duplex:rn,PassThrough:cn,Readable:kt,Stream:fn,Transform:un,Writable:Yt,default:fn})),gn=k(_t);var mn=function(){if(dn)return hn;dn=1;var e=pn.Writable,t=gn.inherits;function n(t){if(!(this instanceof n))return new n(t);t=t||{},e.call(this,t),this.label=void 0!==t.label?t.label:"stdout"}return hn=n,t(n,e),n.prototype._write=function(e,t,n){var r=e.toString?e.toString():e;!1===this.label?console.log(r):console.log(this.label+":",r),R.nextTick(n)},hn}(),En=x(mn);function yn(e){for(var t=document.getElementById("mocha").getElementsByTagName(e),n=0,r=t.length;n<r;++n)t[n].innerHTML=t[n].innerHTML.replace(/</g,"<").replace(/>/g,">").replace(/\/\/(.*)/gm,'<span class="comment">//$1</span>').replace(/('.*?')/gm,'<span class="string">$1</span>').replace(/(\d+\.\d+)/gm,'<span class="number">$1</span>').replace(/(\d+)/gm,'<span class="number">$1</span>').replace(/\bnew[ \t]+(\w+)/gm,'<span class="keyword">new</span> <span class="init">$1</span>').replace(/\b(function|new|throw|return|var|if|else)\b/gm,'<span class="keyword">$1</span>')}function wn(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var _n={exports:{}};function bn(e){return e.replaceAll(/[|\\{}()[\]^$+*?.]/g,"\\$&").replaceAll("-","\\x2d")}var vn=k(Object.freeze({__proto__:null,escapeRegExp:bn}));function Tn(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}var Nn=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,Sn=function(e){return Nn.exec(e).slice(1)};function Rn(){for(var e="",t=!1,n=arguments.length-1;n>=-1&&!t;n--){var r=n>=0?arguments[n]:"/";if("string"!=typeof r)throw new TypeError("Arguments to path.resolve must be strings");r&&(e=r+"/"+e,t="/"===r.charAt(0))}return(t?"/":"")+(e=Tn(Dn(e.split("/"),(function(e){return!!e})),!t).join("/"))||"."}function An(e){var t=xn(e),n="/"===Fn(e,-1);return(e=Tn(Dn(e.split("/"),(function(e){return!!e})),!t).join("/"))||t||(e="."),e&&n&&(e+="/"),(t?"/":"")+e}function xn(e){return"/"===e.charAt(0)}function kn(){return An(Dn(Array.prototype.slice.call(arguments,0),(function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))}function On(e,t){function n(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=Rn(e).substr(1),t=Rn(t).substr(1);for(var r=n(e.split("/")),i=n(t.split("/")),o=Math.min(r.length,i.length),s=o,a=0;a<o;a++)if(r[a]!==i[a]){s=a;break}var u=[];for(a=s;a<r.length;a++)u.push("..");return(u=u.concat(i.slice(s))).join("/")}function Cn(e){var t=Sn(e),n=t[0],r=t[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."}function In(e,t){var n=Sn(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n}function Ln(e){return Sn(e)[3]}var Pn={extname:Ln,basename:In,dirname:Cn,sep:"/",delimiter:":",relative:On,join:kn,isAbsolute:xn,normalize:An,resolve:Rn};function Dn(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}var Fn="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)},jn=k(Object.freeze({__proto__:null,basename:In,default:Pn,delimiter:":",dirname:Cn,extname:Ln,isAbsolute:xn,join:kn,normalize:An,relative:On,resolve:Rn,sep:"/"})),Un={};class Mn{diff(e,t,n={}){let r;"function"==typeof n?(r=n,n={}):"callback"in n&&(r=n.callback);const i=this.castInput(e,n),o=this.castInput(t,n),s=this.removeEmpty(this.tokenize(i,n)),a=this.removeEmpty(this.tokenize(o,n));return this.diffWithOptionsObj(s,a,n,r)}diffWithOptionsObj(e,t,n,r){var i;const o=e=>(e=this.postProcess(e,n),r?void setTimeout((function(){r(e)}),0):e),s=t.length,a=e.length;let u=1,l=s+a;null!=n.maxEditLength&&(l=Math.min(l,n.maxEditLength));const c=null!==(i=n.timeout)&&void 0!==i?i:1/0,f=Date.now()+c,h=[{oldPos:-1,lastComponent:void 0}];let d=this.extractCommon(h[0],t,e,0,n);if(h[0].oldPos+1>=a&&d+1>=s)return o(this.buildValues(h[0].lastComponent,t,e));let p=-1/0,g=1/0;const m=()=>{for(let r=Math.max(p,-u);r<=Math.min(g,u);r+=2){let i;const u=h[r-1],l=h[r+1];u&&(h[r-1]=void 0);let c=!1;if(l){const e=l.oldPos-r;c=l&&0<=e&&e<s}const f=u&&u.oldPos+1<a;if(c||f){if(i=!f||c&&u.oldPos<l.oldPos?this.addToPath(l,!0,!1,0,n):this.addToPath(u,!1,!0,1,n),d=this.extractCommon(i,t,e,r,n),i.oldPos+1>=a&&d+1>=s)return o(this.buildValues(i.lastComponent,t,e))||!0;h[r]=i,i.oldPos+1>=a&&(g=Math.min(g,r-1)),d+1>=s&&(p=Math.max(p,r+1))}else h[r]=void 0}u++};if(r)!function e(){setTimeout((function(){if(u>l||Date.now()>f)return r(void 0);m()||e()}),0)}();else for(;u<=l&&Date.now()<=f;){const e=m();if(e)return e}}addToPath(e,t,n,r,i){const o=e.lastComponent;return o&&!i.oneChangePerToken&&o.added===t&&o.removed===n?{oldPos:e.oldPos+r,lastComponent:{count:o.count+1,added:t,removed:n,previousComponent:o.previousComponent}}:{oldPos:e.oldPos+r,lastComponent:{count:1,added:t,removed:n,previousComponent:o}}}extractCommon(e,t,n,r,i){const o=t.length,s=n.length;let a=e.oldPos,u=a-r,l=0;for(;u+1<o&&a+1<s&&this.equals(n[a+1],t[u+1],i);)u++,a++,l++,i.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return l&&!i.oneChangePerToken&&(e.lastComponent={count:l,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=a,u}equals(e,t,n){return n.comparator?n.comparator(e,t):e===t||!!n.ignoreCase&&e.toLowerCase()===t.toLowerCase()}removeEmpty(e){const t=[];for(let n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t}castInput(e,t){return e}tokenize(e,t){return Array.from(e)}join(e){return e.join("")}postProcess(e,t){return e}get useLongestToken(){return!1}buildValues(e,t,n){const r=[];let i;for(;e;)r.push(e),i=e.previousComponent,delete e.previousComponent,e=i;r.reverse();const o=r.length;let s=0,a=0,u=0;for(;s<o;s++){const e=r[s];if(e.removed)e.value=this.join(n.slice(u,u+e.count)),u+=e.count;else{if(!e.added&&this.useLongestToken){let r=t.slice(a,a+e.count);r=r.map((function(e,t){const r=n[u+t];return r.length>e.length?r:e})),e.value=this.join(r)}else e.value=this.join(t.slice(a,a+e.count));a+=e.count,e.added||(u+=e.count)}}return r}}const Bn="a-zA-Z0-9_\\u{AD}\\u{C0}-\\u{D6}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}";const Vn=new class extends Mn{tokenize(e){const t=new RegExp(`(\\r?\\n)|[${Bn}]+|[^\\S\\n\\r]+|[^${Bn}]`,"ug");return e.match(t)||[]}};const zn=new class extends Mn{constructor(){super(...arguments),this.tokenize=Hn}equals(e,t,n){return n.ignoreWhitespace?(n.newlineIsToken&&e.includes("\n")||(e=e.trim()),n.newlineIsToken&&t.includes("\n")||(t=t.trim())):n.ignoreNewlineAtEof&&!n.newlineIsToken&&(e.endsWith("\n")&&(e=e.slice(0,-1)),t.endsWith("\n")&&(t=t.slice(0,-1))),super.equals(e,t,n)}};function Gn(e,t,n){return zn.diff(e,t,n)}function Hn(e,t){t.stripTrailingCr&&(e=e.replace(/\r\n/g,"\n"));const n=[],r=e.split(/(\n|\r\n)/);r[r.length-1]||r.pop();for(let e=0;e<r.length;e++){const i=r[e];e%2&&!t.newlineIsToken?n[n.length-1]+=i:n.push(i)}return n}function $n(e){if(!function(e){for(let t=0;t<e.length;t++)if(e[t]<" "||e[t]>"~"||'"'===e[t]||"\\"===e[t])return!0;return!1}(e))return e;let t='"';const n=(new TextEncoder).encode(e);let r=0;for(;r<n.length;){const e=n[r];t+=7===e?"\\a":8===e?"\\b":9===e?"\\t":10===e?"\\n":11===e?"\\v":12===e?"\\f":13===e?"\\r":34===e?'\\"':92===e?"\\\\":e>=32&&e<=126?String.fromCharCode(e):"\\"+e.toString(8).padStart(3,"0"),r++}return t+='"',t}const Yn={includeIndex:!0,includeUnderline:!0,includeFileHeaders:!0};function Wn(e,t){var n,r,i,o,s,a;if(t||(t=Yn),Array.isArray(e)){if(e.length>1&&!t.includeFileHeaders&&!e.every((e=>e.isGit)))throw new Error("Cannot omit file headers on a multi-file patch. (The result would be unparseable; how would a tool trying to apply the patch know which changes are to which file?)");return e.map((e=>Wn(e,t))).join("\n")}const u=[];if(e.isGit){if(t=Yn,!e.oldFileName)throw new Error("oldFileName must be specified for Git patches");if(!e.newFileName)throw new Error("newFileName must be specified for Git patches");let l=e.oldFileName,c=e.newFileName;e.isCreate&&"/dev/null"===l?l=c.replace(/^b\//,"a/"):e.isDelete&&"/dev/null"===c&&(c=l.replace(/^a\//,"b/")),u.push("diff --git "+$n(l)+" "+$n(c)),e.isDelete&&u.push("deleted file mode "+(null!==(n=e.oldMode)&&void 0!==n?n:"100644")),e.isCreate&&u.push("new file mode "+(null!==(r=e.newMode)&&void 0!==r?r:"100644")),e.oldMode&&e.newMode&&!e.isDelete&&!e.isCreate&&(u.push("old mode "+e.oldMode),u.push("new mode "+e.newMode)),e.isRename&&(u.push("rename from "+$n((null!==(i=e.oldFileName)&&void 0!==i?i:"").replace(/^a\//,""))),u.push("rename to "+$n((null!==(o=e.newFileName)&&void 0!==o?o:"").replace(/^b\//,"")))),e.isCopy&&(u.push("copy from "+$n((null!==(s=e.oldFileName)&&void 0!==s?s:"").replace(/^a\//,""))),u.push("copy to "+$n((null!==(a=e.newFileName)&&void 0!==a?a:"").replace(/^b\//,""))))}else t.includeIndex&&e.oldFileName==e.newFileName&&void 0!==e.oldFileName&&u.push("Index: "+e.oldFileName),t.includeUnderline&&u.push("===================================================================");const l=e.hunks.length>0;!t.includeFileHeaders||void 0===e.oldFileName||void 0===e.newFileName||e.isGit&&!l||(u.push("--- "+$n(e.oldFileName)+(e.oldHeader?"\t"+e.oldHeader:"")),u.push("+++ "+$n(e.newFileName)+(e.newHeader?"\t"+e.newHeader:"")));for(let t=0;t<e.hunks.length;t++){const n=e.hunks[t],r=0===n.oldLines?n.oldStart-1:n.oldStart,i=0===n.newLines?n.newStart-1:n.newStart;u.push("@@ -"+r+","+n.oldLines+" +"+i+","+n.newLines+" @@");for(const e of n.lines)u.push(e)}return u.join("\n")+"\n"}function qn(e,t,n,r,i,o,s){{const s=function(e,t,n,r,i,o,s){let a;a={},void 0===a.context&&(a.context=4);const u=a.context;if(a.newlineIsToken)throw new Error("newlineIsToken may not be used with patch-generation functions, only with diffing functions");if(!a.callback)return l(Gn(n,r,a));{const{callback:e}=a;Gn(n,r,Object.assign(Object.assign({},a),{callback:t=>{const n=l(t);e(n)}}))}function l(n){if(!n)return;function r(e){return e.map((function(e){return" "+e}))}n.push({value:"",lines:[]});const s=[];let a=0,l=0,c=[],f=1,h=1;for(let e=0;e<n.length;e++){const t=n[e],i=t.lines||Jn(t.value);if(t.lines=i,t.added||t.removed){if(!a){const t=n[e-1];a=f,l=h,t&&(c=u>0?r(t.lines.slice(-u)):[],a-=c.length,l-=c.length)}for(const e of i)c.push((t.added?"+":"-")+e);t.added?h+=i.length:f+=i.length}else{if(a)if(i.length<=2*u&&e<n.length-2)for(const e of r(i))c.push(e);else{const e=Math.min(i.length,u);for(const t of r(i.slice(0,e)))c.push(t);const t={oldStart:a,oldLines:f-a+e,newStart:l,newLines:h-l+e,lines:c};s.push(t),a=0,l=0,c=[]}f+=i.length,h+=i.length}}for(const e of s)for(let t=0;t<e.lines.length;t++)e.lines[t].endsWith("\n")?e.lines[t]=e.lines[t].slice(0,-1):(e.lines.splice(t+1,0,"\"),t++);return{oldFileName:e,newFileName:t,oldHeader:i,newHeader:o,hunks:s}}}(e,t,n,r,i,o);if(!s)return;return Wn(s,void 0)}}function Jn(e){const t=e.endsWith("\n"),n=e.split("\n").map((e=>e+"\n"));return t?n.pop():n.push(n.pop().slice(0,-1)),n}var Kn,Xn;function Zn(){if(Xn)return Kn;Xn=1;var e=1e3,t=60*e,n=60*t,r=24*n,i=7*r,o=365.25*r;function s(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}return Kn=function(a,u){u=u||{};var l=typeof a;if("string"===l&&a.length>0)return function(s){if((s=String(s)).length>100)return;var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(s);if(!a)return;var u=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return u*o;case"weeks":case"week":case"w":return u*i;case"days":case"day":case"d":return u*r;case"hours":case"hour":case"hrs":case"hr":case"h":return u*n;case"minutes":case"minute":case"mins":case"min":case"m":return u*t;case"seconds":case"second":case"secs":case"sec":case"s":return u*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return}}(a);if("number"===l&&isFinite(a))return u.long?function(i){var o=Math.abs(i);if(o>=r)return s(i,o,r,"day");if(o>=n)return s(i,o,n,"hour");if(o>=t)return s(i,o,t,"minute");if(o>=e)return s(i,o,e,"second");return i+" ms"}(a):function(i){var o=Math.abs(i);if(o>=r)return Math.round(i/r)+"d";if(o>=n)return Math.round(i/n)+"h";if(o>=t)return Math.round(i/t)+"m";if(o>=e)return Math.round(i/e)+"s";return i+"ms"}(a);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(a))},Kn}var Qn,er,tr,nr,rr=x(Zn()),ir={},or={exports:{}};function sr(){if(Qn)return or.exports;Qn=1;var e=String,t=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e,blackBright:e,redBright:e,greenBright:e,yellowBright:e,blueBright:e,magentaBright:e,cyanBright:e,whiteBright:e,bgBlackBright:e,bgRedBright:e,bgGreenBright:e,bgYellowBright:e,bgBlueBright:e,bgMagentaBright:e,bgCyanBright:e,bgWhiteBright:e}};return or.exports=t(),or.exports.createColors=t,or.exports}function ar(){return tr?er:(tr=1,er=()=>"win32"!==R.platform||(Boolean(R.env.CI)||Boolean(R.env.WT_SESSION)||"vscode"===R.env.TERM_PROGRAM||"xterm-256color"===R.env.TERM||"alacritty"===R.env.TERM))}function ur(){return nr||(nr=1,function(e){var t=jn,n=sr(),r=ar()();const i="__mocha_id__";function o(e){return"&#x"+e.toString(16).toUpperCase()+";"}function s(e){return e>=1&&e<=9||11===e||12===e||e>=14&&e<=31||34===e||38===e||39===e||60===e||62===e||96===e||127===e||129===e||141===e||143===e||144===e||157===e||e>=160}function a(e,t){switch(t){case"function":return"[Function]";case"null-prototype":case"object":return"{}";case"array":return"[]";default:return e.toString()}}e.escape=function(e){for(var t=String(e),n="",r=0;r<t.length;r++){var i=t.charCodeAt(r);if(i>=55296&&i<=56319&&r+1<t.length){var a=t.charCodeAt(r+1);if(a>=56320&&a<=57343){n+=o(i=1024*(i-55296)+a-56320+65536),r++;continue}}n+=s(i)?o(i):t.charAt(r)}return n},e.isString=function(e){return"string"==typeof e},e.slug=function(e){return e.toLowerCase().replace(/\s+/g,"-").replace(/[^-\w]/g,"").replace(/-{2,}/g,"-")},e.clean=function(e){var t=(e=e.replace(/\r\n?|[\n\u2028\u2029]/g,"\n").replace(/^\uFEFF/,"").replace(/^function(?:\s*|\s[^(]*)\([^)]*\)\s*\{((?:.|\n)*?)\}$|^\([^)]*\)\s*=>\s*(?:\{((?:.|\n)*?)\}|((?:.|\n)*))$/,"$1$2$3")).match(/^\n?( *)/)[1].length,n=e.match(/^\n?(\t*)/)[1].length,r=new RegExp("^\n?"+(n?"\t":" ")+"{"+(n||t)+"}","gm");return(e=e.replace(r,"")).trim()};var u=e.canonicalType=function(e){return void 0===e?"undefined":null===e?"null":K.isBuffer(e)?"buffer":null===Object.getPrototypeOf(e)?"null-prototype":Object.prototype.toString.call(e).replace(/^\[.+\s(.+?)]$/,"$1").toLowerCase()};function l(e,t,n){if(void 0===t)return a(e);var r=t*(n=n||1),i=Array.isArray(e)?"[":"{",o=Array.isArray(e)?"]":"}",s="number"==typeof e.length?e.length:Object.keys(e).length;function a(e){switch(u(e)){case"null":case"undefined":e="["+e+"]";break;case"array":case"object":e=l(e,t,n+1);break;case"boolean":case"regexp":case"symbol":case"number":e=0===e&&1/e==-1/0?"-0":e.toString();break;case"bigint":e=e.toString()+"n";break;case"date":var r=isNaN(e.getTime())?e.toString():e.toISOString();e="[Date: "+r+"]";break;case"buffer":var i=e.toJSON();e="[Buffer: "+l(i=i.data&&i.type?i.data:i,2,n+1)+"]";break;default:e="[Function]"===e||"[Circular]"===e?e:JSON.stringify(e)}return e}for(var c in e)Object.prototype.hasOwnProperty.call(e,c)&&(--s,i+="\n "+" ".repeat(r-1)+(Array.isArray(e)?"":'"'+c+'": ')+a(e[c])+(s?",":""));return i+(1!==i.length?"\n"+" ".repeat(Math.max(0,r-2))+o:o)}e.type=function(e){if(null===e)return"null";const t=new Set(["undefined","boolean","number","string","bigint","symbol"]),n=typeof e;return"function"===n||t.has(n)?n:e instanceof String?"string":e instanceof Error?"error":Array.isArray(e)?"array":n},e.stringify=function(t){var n=u(t);if(!~["object","array","function","null-prototype"].indexOf(n)){if("buffer"===n){var r=K.prototype.toJSON.call(t);return l(r.data&&r.type?r.data:r,2).replace(/,(\n|$)/g,"$1")}if("string"!==n||"object"!=typeof t)return l(t);t=t.split("").reduce((function(e,t,n){return e[n]=t,e}),{}),n="object"}for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))return l(e.canonicalize(t,null,n),2).replace(/,(\n|$)/g,"$1");return a(t,n)},e.canonicalize=function(t,n,r){var i,o;function s(e,t){n.push(e),t(),n.pop()}if(r=r||u(t),-1!==(n=n||[]).indexOf(t))return"[Circular]";switch(r){case"undefined":case"buffer":case"null":i=t;break;case"array":s(t,(function(){i=t.map((function(t){return e.canonicalize(t,n)}))}));break;case"function":for(o in t){i={};break}if(!i){i=a(t,r);break}case"null-prototype":case"object":i=i||{},"null-prototype"===r&&Symbol.toStringTag in t&&(i["[Symbol.toStringTag]"]=t[Symbol.toStringTag]),s(t,(function(){Object.keys(t).sort().forEach((function(r){i[r]=e.canonicalize(t[r],n)}))}));break;case"date":case"number":case"regexp":case"boolean":case"symbol":i=t;break;default:i=t+""}return i},e.stackTraceFilter=function(){var n,r="undefined"==typeof document?{node:!0}:{},i=t.sep;return r.node?n=e.cwd()+i:(n=("undefined"==typeof location?window.location:location).href.replace(/\/[^/]*$/,"/"),i="/"),function(e){return e=(e=e.split("\n")).reduce((function(e,t){return function(e){return~e.indexOf("node_modules"+i+"mocha"+i)||~e.indexOf(i+"mocha.js")||~e.indexOf(i+"mocha.min.js")}(t)||r.node&&function(e){return~e.indexOf("(timers.js:")||~e.indexOf("(events.js:")||~e.indexOf("(node.js:")||~e.indexOf("(module.js:")||~e.indexOf("GeneratorFunctionPrototype.next (native)")||!1}(t)||(/:\d+:\d+\)?$/.test(t)&&(t=t.replace("("+n,"(")),e.push(t)),e}),[]),e.join("\n")}},e.isPromise=function(e){return"object"==typeof e&&null!==e&&"function"==typeof e.then},e.clamp=function(e,t){return Math.min(Math.max(e,t[0]),t[1])},e.noop=function(){},e.createMap=function(){return Object.assign.apply(null,[Object.create(null)].concat(Array.prototype.slice.call(arguments)))},e.defineConstants=function(t){if("object"!==u(t)||!Object.keys(t).length)throw new TypeError("Invalid argument; expected a non-empty object");return Object.freeze(e.createMap(t))},e.cwd=function(){return R.cwd()},e.isBrowser=function(){return Boolean(R.browser)},e.castArray=function(e){return void 0===e?[]:null===e?[null]:"object"!=typeof e||"function"!=typeof e[Symbol.iterator]&&void 0===e.length?[e]:Array.from(e)},e.constants=e.defineConstants({MOCHA_ID_PROP_NAME:i});e.uniqueID=()=>{let e="";for(let t=0;t<21;t++)e+="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_"[64*Math.random()|0];return e},e.assignNewMochaID=t=>{const n=e.uniqueID();return Object.defineProperty(t,i,{get:()=>n}),t},e.getMochaID=e=>e&&"object"==typeof e?e[i]:void 0,e.breakCircularDeps=e=>{const t=new Set;return function e(n){if(n&&"object"!=typeof n)return n;if(t.has(n))return"[Circular]";t.add(n);for(const t in n){const r=Object.getOwnPropertyDescriptor(n,t);r&&r.writable&&(n[t]=e(n[t]))}return t.delete(n),n}(e)},e.isNumeric=e=>""!==String(e).trim()&&!isNaN(Number(e)),e.isCI=()=>!!R.env.CI,e.logSymbols={info:n.blue(r?"ℹ":"i"),success:n.green(r?"✔":"√"),warning:n.yellow(r?"⚠":"‼"),error:n.red(r?"✖":"×")}}(ir)),ir}var lr,cr,fr,hr=ur(),dr=x(hr),pr={},gr=Object.freeze({__proto__:null,default:pr}),mr={exports:{}};function Er(){return fr||(fr=1,function(e,t){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(r++,"%c"===e&&(i=r))})),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(e){}!e&&void 0!==R&&"env"in R&&(e=R.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=(cr||(cr=1,lr=function(e){function t(e){let r,i,o,s=null;function a(...e){if(!a.enabled)return;const n=a,i=Number(new Date),o=i-(r||i);n.diff=o,n.prev=r,n.curr=i,r=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((r,i)=>{if("%%"===r)return"%";s++;const o=t.formatters[i];if("function"==typeof o){const t=e[s];r=o.call(n,t),e.splice(s,1),s--}return r})),t.formatArgs.call(n,e),(n.log||t.log).apply(n,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=n,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(i!==t.namespaces&&(i=t.namespaces,o=t.enabled(e)),o),set:e=>{s=e}}),"function"==typeof t.init&&t.init(a),a}function n(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function r(e,t){let n=0,r=0,i=-1,o=0;for(;n<e.length;)if(r<t.length&&(t[r]===e[n]||"*"===t[r]))"*"===t[r]?(i=r,o=n,r++):(n++,r++);else{if(-1===i)return!1;r=i+1,o++,n=o}for(;r<t.length&&"*"===t[r];)r++;return r===t.length}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){const e=[...t.names,...t.skips.map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const e of n)"-"===e[0]?t.skips.push(e.slice(1)):t.names.push(e)},t.enabled=function(e){for(const n of t.skips)if(r(e,n))return!1;for(const n of t.names)if(r(e,n))return!0;return!1},t.humanize=Zn(),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((n=>{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}),lr)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}(mr,mr.exports)),mr.exports}var yr=x(Er());class wr extends Error{constructor(e){super(e),this.name="PendingError"}}const _r={FATAL:"ERR_MOCHA_FATAL",INVALID_ARG_TYPE:"ERR_MOCHA_INVALID_ARG_TYPE",INVALID_ARG_VALUE:"ERR_MOCHA_INVALID_ARG_VALUE",INVALID_EXCEPTION:"ERR_MOCHA_INVALID_EXCEPTION",INVALID_INTERFACE:"ERR_MOCHA_INVALID_INTERFACE",INVALID_REPORTER:"ERR_MOCHA_INVALID_REPORTER",MULTIPLE_DONE:"ERR_MOCHA_MULTIPLE_DONE",NO_FILES_MATCH_PATTERN:"ERR_MOCHA_NO_FILES_MATCH_PATTERN",UNSUPPORTED:"ERR_MOCHA_UNSUPPORTED",INSTANCE_ALREADY_RUNNING:"ERR_MOCHA_INSTANCE_ALREADY_RUNNING",INSTANCE_ALREADY_DISPOSED:"ERR_MOCHA_INSTANCE_ALREADY_DISPOSED",FORBIDDEN_EXCLUSIVITY:"ERR_MOCHA_FORBIDDEN_EXCLUSIVITY",INVALID_PLUGIN_IMPLEMENTATION:"ERR_MOCHA_INVALID_PLUGIN_IMPLEMENTATION",INVALID_PLUGIN_DEFINITION:"ERR_MOCHA_INVALID_PLUGIN_DEFINITION",TIMEOUT:"ERR_MOCHA_TIMEOUT",UNPARSABLE_FILE:"ERR_MOCHA_UNPARSABLE_FILE"},br=new Set(Object.values(_r));function vr(e,t){var n=new TypeError(e);return n.code=_r.INVALID_REPORTER,n.reporter=t,n}function Tr(e,t){var n=new Error(e);return n.code=_r.INVALID_INTERFACE,n.interface=t,n}function Nr(e){var t=new Error(e);return t.code=_r.UNSUPPORTED,t}function Sr(e,t,n){return Rr(e,t,n)}function Rr(e,t,n){var r=new TypeError(e);return r.code=_r.INVALID_ARG_TYPE,r.argument=t,r.expected=n,r.actual=typeof t,r}function Ar(e,t){var n=new Error(e);return n.code=_r.INVALID_EXCEPTION,n.valueType=typeof t,n.value=t,n}function xr(e,t){var n=new Error(e);return n.code=_r.FATAL,n.valueType=typeof t,n.value=t,n}function kr(e,t){var n;try{n=je("<%s>",e.fullTitle()),e.parent.root&&(n+=" (of root suite)")}catch{n=je("<%s> (of unknown suite)",e.title)}var r=je("done() called multiple times in %s %s",e.type?e.type:"unknown runnable",n);e.file&&(r+=je(" of file %s",e.file)),t&&(r+=je("; in addition, done() received error: %s",t));var i=new Error(r);return i.code=_r.MULTIPLE_DONE,i.valueType=typeof t,i.value=t,i}function Or(e){var t;e.isWorker?t="`.only` is not supported in parallel mode":(t="`.only` forbidden by --forbid-only",hr.isCI()&&(t+=" (default in CI, add `--no-forbid-only` to allow `.only`)"));var n=new Error(t);return n.code=_r.FORBIDDEN_EXCLUSIVITY,n}function Cr(e,t,n){const r=new Error(e);return r.code=_r.TIMEOUT,r.timeout=t,r.file=n,r}const Ir=e=>Boolean(e&&"object"==typeof e&&br.has(e.code));var Lr=Object.freeze({__proto__:null,createFatalError:xr,createForbiddenExclusivityError:Or,createInvalidArgumentTypeError:Rr,createInvalidArgumentValueError:function(e,t,n,r){var i=new TypeError(e);return i.code=_r.INVALID_ARG_VALUE,i.argument=t,i.value=n,i.reason=void 0!==r?r:"is invalid",i},createInvalidExceptionError:Ar,createInvalidInterfaceError:Tr,createInvalidLegacyPluginError:function(e,t,n){switch(t){case"reporter":return vr(e,n);case"ui":return Tr(e,n);default:throw new Error('unknown pluginType "'+t+'"')}},createInvalidPluginDefinitionError:function(e,t){const n=new Error(e);return n.code=_r.INVALID_PLUGIN_DEFINITION,n.pluginDef=t,n},createInvalidPluginImplementationError:function(e,{pluginDef:t,pluginImpl:n}={}){const r=new Error(e);return r.code=_r.INVALID_PLUGIN_IMPLEMENTATION,r.pluginDef=t,r.pluginImpl=n,r},createInvalidReporterError:vr,createMissingArgumentError:Sr,createMochaInstanceAlreadyDisposedError:function(e,t,n){var r=new Error(e);return r.code=_r.INSTANCE_ALREADY_DISPOSED,r.cleanReferencesAfterRun=t,r.instance=n,r},createMochaInstanceAlreadyRunningError:function(e,t){var n=new Error(e);return n.code=_r.INSTANCE_ALREADY_RUNNING,n.instance=t,n},createMultipleDoneError:kr,createNoFilesMatchPatternError:function(e,t){var n=new Error(e);return n.code=_r.NO_FILES_MATCH_PATTERN,n.pattern=t,n},createTimeoutError:Cr,createUnparsableFileError:function(e){var t=new Error(e);return t.code=_r.UNPARSABLE_FILE,t},createUnsupportedError:Nr,isMochaError:Ir});const Pr=yr("mocha:runnable");var Dr=e.Date,Fr=e.setTimeout,jr=e.clearTimeout,Ur=Object.prototype.toString,Mr=Math.pow(2,31)-1;class Br extends C{constructor(e,t){super(e,t),this.title=e,this.fn=t,this.body=(t||"").toString(),this.async=t&&t.length,this.sync=!this.async,this._timeout=2e3,this._slow=75,this._retries=-1,dr.assignNewMochaID(this),Object.defineProperty(this,"id",{get(){return dr.getMochaID(this)}}),this.reset()}reset(){this.timedOut=!1,this._currentRetry=0,this.pending=!1,delete this.state,delete this.err}timeout(e){if(!arguments.length)return this._timeout;"string"==typeof e&&(e=rr(e));var t=[0,Mr];return e=dr.clamp(e,t),this._timeout=e===t[0]||e===t[1]?0:e,Pr("timeout %d",this._timeout),this.timer&&this.resetTimeout(),this}slow(e){return arguments.length&&void 0!==e?("string"==typeof e&&(e=rr(e)),Pr("slow %d",e),this._slow=e,this):this._slow}skip(){throw this.pending=!0,new wr("sync skip; aborting execution")}isPending(){return this.pending||this.parent&&this.parent.isPending()}isFailed(){return!this.isPending()&&this.state===Br.constants.STATE_FAILED}isPassed(){return!this.isPending()&&this.state===Br.constants.STATE_PASSED}retries(e){if(!arguments.length)return this._retries;this._retries=e}currentRetry(e){if(!arguments.length)return this._currentRetry;this._currentRetry=e}fullTitle(){return this.titlePath().join(" ")}titlePath(){return this.parent.titlePath().concat([this.title])}clearTimeout(){jr(this.timer)}resetTimeout(){var e=this,t=this.timeout()||Mr;this.clearTimeout(),this.timer=Fr((function(){0!==e.timeout()&&(e.callback(e._timeoutError(t)),e.timedOut=!0)}),t)}globals(e){if(!arguments.length)return this._allowedGlobals;this._allowedGlobals=e}run(e){var t,n=this,r=new Dr,i=this.ctx,o=!1;if(this.isPending())return e();function s(i){var s=n.timeout();if(!n.timedOut){if(t)return function(e){o||(o=!0,n.emit("error",kr(n,e)))}(i);n.clearTimeout(),n.duration=new Dr-r,t=!0,!i&&n.duration>s&&s>0&&(i=n._timeoutError(s)),e(i)}}if(i&&i.runnable&&i.runnable(this),this.callback=s,this.fn&&"function"!=typeof this.fn.call)s(new TypeError("A runnable must be passed a function as its second argument."));else if(this.async){this.resetTimeout(),this.skip=function(){throw this.pending=!0,s(),new wr("async skip; aborting execution")};try{!function(e){var t=e.call(i,(function(e){return e instanceof Error||"[object Error]"===Ur.call(e)?s(e):e?"[object Object]"===Object.prototype.toString.call(e)?s(new Error("done() invoked with non-Error: "+JSON.stringify(e))):s(new Error("done() invoked with non-Error: "+e)):t&&dr.isPromise(t)?s(new Error("Resolution method is overspecified. Specify a callback *or* return a Promise; not both.")):void s()}))}(this.fn)}catch(e){if(o=!0,e instanceof wr)return;if(this.allowUncaught)throw e;s(Br.toValueOrError(e))}}else try{!function(e){var t=e.call(i);if(t&&"function"==typeof t.then)n.resetTimeout(),t.then((function(){return s(),null}),(function(e){s(e||new Error("Promise rejected with no or falsy reason"))}));else{if(n.asyncOnly)return s(new Error("--async-only option in use without declaring `done()` or returning a promise"));s()}}(this.fn)}catch(e){if(o=!0,e instanceof wr)return s();if(this.allowUncaught)throw e;s(Br.toValueOrError(e))}}_timeoutError(e){let t=`Timeout of ${e}ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.`;return this.file&&(t+=" ("+this.file+")"),Cr(t,e,this.file)}static constants=dr.defineConstants({STATE_FAILED:"failed",STATE_PASSED:"passed",STATE_PENDING:"pending"});static toValueOrError(e){return e||Ar("Runnable failed with falsy or undefined exception. Please throw an Error instead.",e)}}var Vr=Object.freeze({__proto__:null,Runnable:Br});const{MOCHA_ID_PROP_NAME:zr}=dr.constants;class Gr extends Br{constructor(e,t){super(e,t),this.type="hook"}reset(){super.reset(this),delete this._error}error(e){if(!arguments.length)return e=this._error,this._error=null,e;this._error=e}serialize(){return{$$currentRetry:this.currentRetry(),$$fullTitle:this.fullTitle(),$$isPending:Boolean(this.isPending()),$$titlePath:this.titlePath(),ctx:this.ctx&&this.ctx.currentTest?{currentTest:{title:this.ctx.currentTest.title,[zr]:this.ctx.currentTest.id}}:{},duration:this.duration,file:this.file,parent:{$$fullTitle:this.parent.fullTitle(),[zr]:this.parent.id},state:this.state,title:this.title,type:this.type,[zr]:this.id}}}var Hr=Object.freeze({__proto__:null,Hook:Gr});const{assignNewMochaID:$r,clamp:Yr,constants:Wr,defineConstants:qr,getMochaID:Jr,isString:Kr}=dr,Xr=yr("mocha:suite"),{MOCHA_ID_PROP_NAME:Zr}=Wr;class Qr extends C{static constants=qr({EVENT_FILE_POST_REQUIRE:"post-require",EVENT_FILE_PRE_REQUIRE:"pre-require",EVENT_FILE_REQUIRE:"require",EVENT_ROOT_SUITE_RUN:"run",HOOK_TYPE_AFTER_ALL:"afterAll",HOOK_TYPE_AFTER_EACH:"afterEach",HOOK_TYPE_BEFORE_ALL:"beforeAll",HOOK_TYPE_BEFORE_EACH:"beforeEach",EVENT_SUITE_ADD_SUITE:"suite",EVENT_SUITE_ADD_HOOK_AFTER_ALL:"afterAll",EVENT_SUITE_ADD_HOOK_AFTER_EACH:"afterEach",EVENT_SUITE_ADD_HOOK_BEFORE_ALL:"beforeAll",EVENT_SUITE_ADD_HOOK_BEFORE_EACH:"beforeEach",EVENT_SUITE_ADD_TEST:"test"});static create(e,t){var n=new Qr(t,e.ctx);return n.parent=e,e.addSuite(n),n}constructor(e,t,n){if(!Kr(e))throw Rr('Suite argument "title" must be a string. Received type "'+typeof e+'"',"title","string");function r(){}super(),this.title=e,r.prototype=t,this.ctx=new r,this.suites=[],this.tests=[],this.root=!0===n,this.pending=!1,this._retries=-1,this._beforeEach=[],this._beforeAll=[],this._afterEach=[],this._afterAll=[],this._timeout=2e3,this._slow=75,this._bail=!1,this._onlyTests=[],this._onlySuites=[],$r(this),Object.defineProperty(this,"id",{get(){return Jr(this)}}),this.reset()}reset(){function e(e){e.reset()}this.delayed=!1,this.suites.forEach(e),this.tests.forEach(e),this._beforeEach.forEach(e),this._afterEach.forEach(e),this._beforeAll.forEach(e),this._afterAll.forEach(e)}clone(){var e=new Qr(this.title);return Xr("clone"),e.ctx=this.ctx,e.root=this.root,e.timeout(this.timeout()),e.retries(this.retries()),e.slow(this.slow()),e.bail(this.bail()),e}timeout(e){if(!arguments.length)return this._timeout;"string"==typeof e&&(e=rr(e));var t=Math.pow(2,31)-1;e=Yr(e,[0,t]),Xr("timeout %d",e),this._timeout=parseInt(e,10);for(const e of this.tests)e.timeout(this._timeout);for(const e of this.suites)e.timeout(this._timeout);return this}retries(e){return arguments.length?(Xr("retries %d",e),this._retries=parseInt(e,10)||0,this):this._retries}slow(e){return arguments.length?("string"==typeof e&&(e=rr(e)),Xr("slow %d",e),this._slow=e,this):this._slow}bail(e){return arguments.length?(Xr("bail %s",e),this._bail=e,this):this._bail}isPending(){return this.pending||this.parent&&this.parent.isPending()}_createHook(e,t){var n=new Gr(e,t);return n.parent=this,n.timeout(this.timeout()),n.retries(this.retries()),n.slow(this.slow()),n.ctx=this.ctx,n.file=this.file,n}beforeAll(e,t){if(this.isPending())return this;"function"==typeof e&&(e=(t=e).name),e='"before all" hook'+(e?": "+e:"");var n=this._createHook(e,t);return this._beforeAll.push(n),this.emit(Qr.constants.EVENT_SUITE_ADD_HOOK_BEFORE_ALL,n),n}afterAll(e,t){if(this.isPending())return this;"function"==typeof e&&(e=(t=e).name),e='"after all" hook'+(e?": "+e:"");var n=this._createHook(e,t);return this._afterAll.push(n),this.emit(Qr.constants.EVENT_SUITE_ADD_HOOK_AFTER_ALL,n),n}beforeEach(e,t){if(this.isPending())return this;"function"==typeof e&&(e=(t=e).name),e='"before each" hook'+(e?": "+e:"");var n=this._createHook(e,t);return this._beforeEach.push(n),this.emit(Qr.constants.EVENT_SUITE_ADD_HOOK_BEFORE_EACH,n),n}afterEach(e,t){if(this.isPending())return this;"function"==typeof e&&(e=(t=e).name),e='"after each" hook'+(e?": "+e:"");var n=this._createHook(e,t);return this._afterEach.push(n),this.emit(Qr.constants.EVENT_SUITE_ADD_HOOK_AFTER_EACH,n),n}addSuite(e){return e.parent=this,e.root=!1,e.timeout(this.timeout()),e.retries(this.retries()),e.slow(this.slow()),e.bail(this.bail()),this.suites.push(e),this.emit(Qr.constants.EVENT_SUITE_ADD_SUITE,e),this}addTest(e){return e.parent=this,e.timeout(this.timeout()),e.retries(this.retries()),e.slow(this.slow()),e.ctx=this.ctx,this.tests.push(e),this.emit(Qr.constants.EVENT_SUITE_ADD_TEST,e),this}fullTitle(){return this.titlePath().join(" ")}titlePath(){var e=[];return this.parent&&(e=e.concat(this.parent.titlePath())),this.root||e.push(this.title),e}total(){return this.suites.reduce((function(e,t){return e+t.total()}),0)+this.tests.length}eachTest(e){return this.tests.forEach(e),this.suites.forEach((function(t){t.eachTest(e)})),this}run(){this.root&&this.emit(Qr.constants.EVENT_ROOT_SUITE_RUN)}hasOnly(){return this._onlyTests.length>0||this._onlySuites.length>0||this.suites.some((function(e){return e.hasOnly()}))}filterOnly(){if(this._onlyTests.length)this.tests=this._onlyTests,this.suites=[];else{this.tests=[],this._onlySuites.forEach((function(e){e.hasOnly()&&e.filterOnly()}));var e=this._onlySuites;this.suites=this.suites.filter((function(t){return-1!==e.indexOf(t)||t.filterOnly()}))}return this.tests.length>0||this.suites.length>0}appendOnlySuite(e){this._onlySuites.push(e)}markOnly(){this.parent&&this.parent.appendOnlySuite(this)}appendOnlyTest(e){this._onlyTests.push(e)}getHooks(e){return this["_"+e]}dispose(){this.suites.forEach((function(e){e.dispose()})),this.cleanReferences()}cleanReferences(){function e(e){for(var t=0;t<e.length;t++)delete e[t].fn}Array.isArray(this._beforeAll)&&e(this._beforeAll),Array.isArray(this._beforeEach)&&e(this._beforeEach),Array.isArray(this._afterAll)&&e(this._afterAll),Array.isArray(this._afterEach)&&e(this._afterEach);for(var t=0;t<this.tests.length;t++)delete this.tests[t].fn}serialize(){return{_bail:this._bail,$$fullTitle:this.fullTitle(),$$isPending:Boolean(this.isPending()),root:this.root,title:this.title,[Zr]:this.id,parent:this.parent?{[Zr]:this.parent.id}:null}}}var ei=Object.freeze({__proto__:null,Suite:Qr});const ti=yr("mocha:runner");var ni=Qr.constants.HOOK_TYPE_BEFORE_EACH,ri=Qr.constants.HOOK_TYPE_AFTER_EACH,ii=Qr.constants.HOOK_TYPE_AFTER_ALL,oi=Qr.constants.HOOK_TYPE_BEFORE_ALL,si=Qr.constants.EVENT_ROOT_SUITE_RUN,ai=Br.constants.STATE_FAILED,ui=Br.constants.STATE_PASSED,li=Br.constants.STATE_PENDING,ci=dr.stackTraceFilter(),fi=dr.stringify,hi=["setTimeout","clearTimeout","setInterval","clearInterval","XMLHttpRequest","Date","setImmediate","clearImmediate"],di=dr.defineConstants({EVENT_HOOK_BEGIN:"hook",EVENT_HOOK_END:"hook end",EVENT_RUN_BEGIN:"start",EVENT_DELAY_BEGIN:"waiting",EVENT_DELAY_END:"ready",EVENT_RUN_END:"end",EVENT_SUITE_BEGIN:"suite",EVENT_SUITE_END:"suite end",EVENT_TEST_BEGIN:"test",EVENT_TEST_END:"test end",EVENT_TEST_FAIL:"fail",EVENT_TEST_PASS:"pass",EVENT_TEST_PENDING:"pending",EVENT_TEST_RETRY:"retry",STATE_IDLE:"idle",STATE_RUNNING:"running",STATE_STOPPED:"stopped"});class pi extends C{constructor(e,t={}){super();var n=this;this._globals=[],this._abort=!1,this.suite=e,this._opts=t,this.state=di.STATE_IDLE,this.total=e.total(),this.failures=0,this._eventListeners=new Map,this.on(di.EVENT_TEST_END,(function(e){if("test"===e.type&&e.retriedTest()&&e.parent){var t=e.parent.tests&&e.parent.tests.indexOf(e.retriedTest());t>-1&&(e.parent.tests[t]=e)}n.checkGlobals(e)})),this.on(di.EVENT_HOOK_END,(function(e){n.checkGlobals(e)})),this._defaultGrep=/.*/,this.grep(this._defaultGrep),this.globals(this.globalProps()),this.uncaught=this._uncaught.bind(this),this.unhandled=(e,t)=>{if(Ir(e))ti("trapped unhandled rejection coming out of Mocha; forwarding to uncaught handler:",e),this.uncaught(e);else{ti("trapped unhandled rejection from (probably) user code; re-emitting on process"),this._removeEventListener(R,"unhandledRejection",this.unhandled);try{R.emit("unhandledRejection",e,t)}finally{this._addEventListener(R,"unhandledRejection",this.unhandled)}}}}}function gi(e,t){t?mi(t)||(t=Ei(t)):t=Ar('Hook "'+e+'" failed with exception: '+t,t);var n='Test skipped due to failure in hook "'+e+'": '+t.message,r=new Error(n);return r.stack=t.stack,r}function mi(e){return e instanceof Error||e&&"string"==typeof e.message}function Ei(e){return new Error(`the ${dr.canonicalType(e)} ${fi(e)} was thrown, throw an Error :)`)}pi.immediately=e.setImmediate,pi.prototype._addEventListener=function(e,t,n){if(ti("_addEventListener(): adding for event %s; %d current listeners",t,e.listenerCount(t)),this._eventListeners.has(e)&&this._eventListeners.get(e).has(t)&&this._eventListeners.get(e).get(t).has(n))return void ti("warning: tried to attach duplicate event listener for %s",t);e.on(t,n);const r=this._eventListeners.has(e)?this._eventListeners.get(e):new Map,i=r.has(t)?r.get(t):new Set;i.add(n),r.set(t,i),this._eventListeners.set(e,r)},pi.prototype._removeEventListener=function(e,t,n){if(e.removeListener(t,n),this._eventListeners.has(e)){const r=this._eventListeners.get(e);if(r.has(t)){const e=r.get(t);e.delete(n),e.size||r.delete(t)}r.size||this._eventListeners.delete(e)}else ti("trying to remove listener for untracked object %s",e)},pi.prototype.dispose=function(){this.removeAllListeners(),this._eventListeners.forEach(((e,t)=>{e.forEach(((e,n)=>{e.forEach((e=>{t.removeListener(n,e)}))}))})),this._eventListeners.clear()},pi.prototype.grep=function(e,t){return ti("grep(): setting to %s",e),this._grep=e,this._invert=t,this.total=this.grepTotal(this.suite),this},pi.prototype.grepTotal=function(e){var t=this,n=0;return e.eachTest((function(e){var r=t._grep.test(e.fullTitle());t._invert&&(r=!r),r&&n++})),n},pi.prototype.globalProps=function(){for(var t=Object.keys(e),n=0;n<hi.length;++n)~t.indexOf(hi[n])||t.push(hi[n]);return t},pi.prototype.globals=function(e){return arguments.length?(ti("globals(): setting to %O",e),this._globals=this._globals.concat(e),this):this._globals},pi.prototype.checkGlobals=function(t){if(this.checkLeaks){var n,r=this._globals,i=this.globalProps();if(t&&(r=r.concat(t._allowedGlobals||[])),this.prevGlobalsLength!==i.length&&(this.prevGlobalsLength=i.length,n=function(t,n){return n.filter((function(n){if(/^\d+/.test(n))return!1;if(e.navigator&&/^getInterface/.test(n))return!1;if(e.navigator&&/^\d+/.test(n))return!1;if(/^mocha-/.test(n))return!1;var r=t.filter((function(e){return~e.indexOf("*")?0===n.indexOf(e.split("*")[0]):n===e}));return!(r.length||e.navigator&&"onerror"===n)}))}(r,i),this._globals=this._globals.concat(n),n.length)){var o=`global leak(s) detected: ${n.map((e=>`'${e}'`)).join(", ")}`;this.fail(t,new Error(o))}}},pi.prototype.failAffectedTests=function(e,t,n){if(this._opts.failHookAffectedTests){var r=this,i=gi(n,t);!function e(t){t.tests.forEach((function(e){e.state||(e.state=ai,r.failures++,r.emit(di.EVENT_TEST_BEGIN,e),r.emit(di.EVENT_TEST_FAIL,e,i),r.emit(di.EVENT_TEST_END,e))})),t.suites.forEach(e)}(e)}},pi.prototype.fail=function(e,t,n){if(n=!0===n,!e.isPending()||n){if(this.state===di.STATE_STOPPED){if(t.code===_r.MULTIPLE_DONE)throw t;throw xr("Test failed after root suite execution completed!",t)}if(++this.failures,ti("total number of failures: %d",this.failures),e.state=ai,mi(t)||(t=Ei(t)),!this.fullStackTrace){const e=new Set;let n=t;for(;n&&n.stack&&!e.has(n);){e.add(n);try{n.stack=ci(n.stack)}catch{}n=n.cause}}this.emit(di.EVENT_TEST_FAIL,e,t)}},pi.prototype.hook=function(e,t){if(this._opts.dryRun)return t();var n=this.suite,r=n.getHooks(e),i=this;function o(s){var a=r[s];if(!a)return t();function u(e){var t;(e.originalTitle=e.originalTitle||e.title,e.ctx&&e.ctx.currentTest)?e.title=`${e.originalTitle} for "${e.ctx.currentTest.title}"`:(t=e.parent.title?e.parent.title:e.parent.root?"{root}":"",e.title=`${e.originalTitle} in "${t}"`)}i.currentRunnable=a,a.ctx.currentTest=e===oi?a.parent.tests[0]:e===ii?a.parent.tests[a.parent.tests.length-1]:i.test,u(a),a.allowUncaught=i.allowUncaught,i.emit(di.EVENT_HOOK_BEGIN,a),a.listeners("error").length||i._addEventListener(a,"error",(function(e){i.fail(a,e)})),a.run((function(l){if((f=a.error())&&i.fail(i.test,f),a.pending)if(e===ri)i.test&&(i.test.pending=!0);else{if(e===ni)return i.test&&(i.test.pending=!0),i.emit(di.EVENT_HOOK_END,a),a.pending=!1,t(new Error("abort hookDown"));if(e!==oi){a.pending=!1;var c=Nr("`this.skip` forbidden");return i.fail(a,c),t(c)}n.tests.forEach((function(e){e.pending=!0})),n.suites.forEach((function(e){e.pending=!0})),r=[]}else if(l){if(i.fail(a,l),i._opts.failHookAffectedTests)if(e===oi)i.failAffectedTests(i.suite,l,a.title);else if(e===ni){if(i.test&&!i.test.state){var f=gi(a.title,l);i.test.state=ai,i.failures++,i.emit(di.EVENT_TEST_BEGIN,i.test),i.emit(di.EVENT_TEST_FAIL,i.test,f),i.emit(di.EVENT_TEST_END,i.test)}i._failedBeforeEachHook={error:l,title:a.title}}return t(l)}i.emit(di.EVENT_HOOK_END,a),delete a.ctx.currentTest,u(a),o(++s)}))}pi.immediately((function(){o(0)}))},pi.prototype.hooks=function(e,t,n){var r=this,i=this.suite;!function o(s){if(r.suite=s,!s)return r.suite=i,n();r.hook(e,(function(e){if(e){var s=r.suite;return r.suite=i,n(e,s)}o(t.pop())}))}(t.pop())},pi.prototype.hookUp=function(e,t){var n=[this.suite].concat(this.parents()).reverse();this.hooks(e,n,t)},pi.prototype.hookDown=function(e,t){var n=[this.suite].concat(this.parents());this.hooks(e,n,t)},pi.prototype.parents=function(){for(var e=this.suite,t=[];e.parent;)e=e.parent,t.push(e);return t},pi.prototype.runTest=function(e){if(this._opts.dryRun)return pi.immediately(e);var t=this,n=this.test;if(n){if(this.asyncOnly&&(n.asyncOnly=!0),this._addEventListener(n,"error",(function(e){t.fail(n,e)})),this.allowUncaught)return n.allowUncaught=!0,n.run(e);try{n.run(e)}catch(t){e(t)}}},pi.prototype.runTests=function(e,t){var n,r=this,i=e.tests.slice();function o(n,i,s){var a=r.suite;r._opts.failHookAffectedTests&&!s&&r._failedBeforeEachHook&&(r.failAffectedTests(e,r._failedBeforeEachHook.error,r._failedBeforeEachHook.title),delete r._failedBeforeEachHook),r.suite=s?i.parent:i,r.suite?r.hookUp(ri,(function(e,n){if(r.suite=a,e)return o(e,n,!0);t(i)})):(r.suite=a,t(i))}function s(a,u){if(r.failures&&e._bail&&(i=[]),r._abort)return t();if(a)return o(0,u,!0);if(!(n=i.shift()))return t();var l=r._grep.test(n.fullTitle());if(r._invert&&(l=!l),l){if(n.isPending())return r.forbidPending?r.fail(n,new Error("Pending test forbidden"),!0):(n.state=li,r.emit(di.EVENT_TEST_PENDING,n)),r.emit(di.EVENT_TEST_END,n),s();r.emit(di.EVENT_TEST_BEGIN,r.test=n),r.hookDown(ni,(function(e,t){if(n.isPending()){r.forbidPending?r.fail(n,new Error("Pending test forbidden"),!0):(n.state=li,r.emit(di.EVENT_TEST_PENDING,n)),r.emit(di.EVENT_TEST_END,n);var a=r.suite;return r.suite=t||r.suite,r.hookUp(ri,(function(e,t){r.suite=a,s(e,t)}))}if(e)return o(0,t,!1);r.currentRunnable=r.test,r.runTest((function(e){if((n=r.test).pending)return r.forbidPending?r.fail(n,new Error("Pending test forbidden"),!0):(n.state=li,r.emit(di.EVENT_TEST_PENDING,n)),r.emit(di.EVENT_TEST_END,n),r.hookUp(ri,s);if(e){var t=n.currentRetry();if(t<n.retries()){var o=n.clone();return o.currentRetry(t+1),i.unshift(o),r.emit(di.EVENT_TEST_RETRY,n,e),r.hookUp(ri,s)}return r.fail(n,e),r.emit(di.EVENT_TEST_END,n),r.hookUp(ri,s)}n.state=ui,r.emit(di.EVENT_TEST_PASS,n),r.emit(di.EVENT_TEST_END,n),r.hookUp(ri,s)}))}))}else r._grep!==r._defaultGrep?pi.immediately(s):s()}this.next=s,this.hookErr=o,s()},pi.prototype.runSuite=function(e,t){var n=0,r=this,i=this.grepTotal(e);if(ti("runSuite(): running %s",e.fullTitle()),!i||r.failures&&e._bail)return ti("runSuite(): bailing"),t();function o(t){if(t)return t===e?s():s(t);if(r._abort)return s();var i=e.suites[n++];if(!i)return s();r._grep!==r._defaultGrep?pi.immediately((function(){r.runSuite(i,o)})):r.runSuite(i,o)}function s(n){r.suite=e,r.nextSuite=o,delete r.test,r.hook(ii,(function(){r.emit(di.EVENT_SUITE_END,e),t(n)}))}this.emit(di.EVENT_SUITE_BEGIN,this.suite=e),this.nextSuite=o,this.hook(oi,(function(t){if(t)return s();r.runTests(e,o)}))},pi.prototype._uncaught=function(e){if(!(this instanceof pi))throw xr("Runner#uncaught() called with invalid context",this);if(e instanceof wr)ti("uncaught(): caught a PendingError");else{if(this.allowUncaught&&!dr.isBrowser())throw ti("uncaught(): bubbling exception due to --allow-uncaught"),e;if(this.state===di.STATE_STOPPED)throw ti("uncaught(): throwing after run has completed!"),e;e?ti("uncaught(): got truthy exception %O",e):(ti("uncaught(): undefined/falsy exception"),e=Ar("Caught falsy/undefined exception which would otherwise be uncaught. No stack trace found; try a debugger",e)),mi(e)||(e=Ei(e),ti('uncaught(): converted "error" %o to Error',e)),e.uncaught=!0;var t=this.currentRunnable;if(!t)return t=new Br("Uncaught error outside test suite"),ti("uncaught(): no current Runnable; created a phony one"),t.parent=this.suite,e.file&&(t.file=e.file),void(this.state===di.STATE_RUNNING?(ti("uncaught(): failing gracefully"),this.fail(t,e)):(ti("uncaught(): test run has not yet started; unrecoverable"),this.emit(di.EVENT_RUN_BEGIN),this.fail(t,e),this.emit(di.EVENT_RUN_END)));if(t.clearTimeout(),!t.isFailed())return t.isPending()?(ti("uncaught(): pending Runnable wound up failing!"),void this.fail(t,e,!0)):t.isPassed()?(ti("uncaught(): Runnable has already passed; bailing gracefully"),this.fail(t,e),void this.abort()):(ti("uncaught(): forcing Runnable to complete with Error"),t.callback(e));ti("uncaught(): Runnable has already failed")}},pi.prototype.run=function(e,t={}){var n=this.suite,r=t.options||{};ti("run(): got options: %O",r),e=e||function(){};const i=()=>{!this.total&&this._opts.failZero&&(this.failures=1),ti("run(): root suite completed; emitting %s",di.EVENT_RUN_END),this.emit(di.EVENT_RUN_END)},o=()=>{ti("run(): emitting %s",di.EVENT_RUN_BEGIN),this.emit(di.EVENT_RUN_BEGIN),ti("run(): emitted %s",di.EVENT_RUN_BEGIN),this.runSuite(n,i)},s=()=>(ti("run(): starting"),n.hasOnly()&&(n.filterOnly(),ti("run(): filtered exclusive Runnables")),this.state=di.STATE_RUNNING,this._opts.delay&&(this.emit(di.EVENT_DELAY_END),ti('run(): "delay" ended')),o());return this._opts.cleanReferencesAfterRun&&this.on(di.EVENT_SUITE_END,(e=>{e.cleanReferences()})),this.on(di.EVENT_RUN_END,(function(){this.state=di.STATE_STOPPED,ti("run(): emitted %s",di.EVENT_RUN_END),e(this.failures)})),this._removeEventListener(R,"uncaughtException",this.uncaught),this._removeEventListener(R,"unhandledRejection",this.unhandled),this._addEventListener(R,"uncaughtException",this.uncaught),this._addEventListener(R,"unhandledRejection",this.unhandled),this._opts.delay?(this.emit(di.EVENT_DELAY_BEGIN,n),n.once(si,s),ti("run(): waiting for green light due to --delay")):pi.immediately(s),this},pi.prototype.linkPartialObjects=function(){return this},pi.prototype.runAsync=async function(e={}){return new Promise((t=>{this.run(t,e)}))},pi.prototype.abort=function(){return ti("abort(): aborting"),this._abort=!0,this},pi.prototype.isParallelMode=function(){return!1},pi.prototype.workerReporter=function(){throw Nr("workerReporter() not supported in serial mode")},pi.constants=di;var yi=Object.freeze({__proto__:null,Runner:pi});const{constants:wi}=pi;var _i=wi.EVENT_TEST_PASS,bi=wi.EVENT_TEST_FAIL;const vi=dr.isBrowser();var Ti=vi||R.stdout.isTTY&&R.stderr.isTTY,Ni=console.log;class Si{constructor(e,t){var n=this.failures=[];if(!e)throw new TypeError("Missing runner argument");this.options=t||{},this.runner=e,this.stats=e.stats;var r=this.options.reporterOption&&this.options.reporterOption.maxDiffSize;void 0===r||isNaN(Number(r))||(Si.maxDiffSize=Number(r)),e.on(_i,(function(e){e.duration>e.slow()?e.speed="slow":e.duration>e.slow()/2?e.speed="medium":e.speed="fast"})),e.on(bi,(function(e,t){Si.showDiff(t)&&Ai(t),e.err&&t instanceof Error?e.err.multiple=(e.err.multiple||[]).concat(t):e.err=t,n.push(e)}))}epilogue(){var e,t=this.stats;Si.consoleLog(),e=Si.color("bright pass"," ")+Si.color("green"," %d passing")+Si.color("light"," (%s)"),Si.consoleLog(e,t.passes||0,rr(t.duration)),t.pending&&(e=Si.color("pending"," ")+Si.color("pending"," %d pending"),Si.consoleLog(e,t.pending)),t.failures&&(e=Si.color("fail"," %d failing"),Si.consoleLog(e,t.failures),Si.list(this.failures),Si.consoleLog()),Si.consoleLog()}}function Ri(e,t,n){if(t<=0)return-1;n=n||new Set;const r=typeof e;if("string"===r)return e.length;if("number"===r||"boolean"===r)return 8;if(null==e)return 4;if("object"===r){if(n.has(e))return-1;if(n.add(e),void 0!==K&&K.isBuffer(e))return e.length>1e4?-1:2*e.length;let r=2;try{const i=Object.keys(e);if(i.length>1e3)return-1;for(const o of i){const i=Ri(e[o],t-1,n);if(-1===i)return-1;if(r+=o.length+i+4,r>1e5)return-1}}catch{return-1}return n.delete(e),r}return 50}function Ai(e){if(!dr.isString(e.actual)||!dr.isString(e.expected)){const t=Si.maxDiffSize||8192,n=Ri(e.actual,10),r=Ri(e.expected,10);if(-1===n||-1===r||n>t||r>t)return e.actual="[object too large to diff]",void(e.expected="[object too large to diff]");e.actual=dr.stringify(e.actual),e.expected=dr.stringify(e.expected)}}Si.consoleLog=Ni,Si.abstract=!0,Si.useColors=!vi&&(pr.stdout||void 0!==R.env.MOCHA_COLORS),Si.inlineDiffs=!1,Si.maxDiffSize=8192,Si.colors={pass:90,fail:31,"bright pass":92,"bright fail":91,"bright yellow":93,pending:36,suite:0,"error title":0,"error message":31,"error stack":90,checkmark:32,fast:90,medium:33,slow:31,green:32,light:90,"diff gutter":90,"diff added":32,"diff removed":31,"diff added inline":"30;42","diff removed inline":"30;41"},Si.symbols={ok:dr.logSymbols.success,err:dr.logSymbols.error,dot:".",comma:",",bang:"!"},Si.color=function(e,t){return Si.useColors?"["+Si.colors[e]+"m"+t+"[0m":String(t)},Si.window={width:75},Ti&&(Si.window.width=vi?("innerHeight"in e?[e.innerHeight,e.innerWidth]:[640,480])[1]:R.stdout.getWindowSize(1)[0]),Si.cursor={hide:function(){Ti&&R.stdout.write("[?25l")},show:function(){Ti&&R.stdout.write("[?25h")},deleteLine:function(){Ti&&R.stdout.write("[2K")},beginningOfLine:function(){Ti&&R.stdout.write("[0G")},CR:function(){Ti?(Si.cursor.deleteLine(),Si.cursor.beginningOfLine()):R.stdout.write("\r")}},Si.showDiff=function(e){return e&&!1!==e.showDiff&&(t=e.actual,n=e.expected,Oi.call(t)===Oi.call(n))&&void 0!==e.expected;var t,n},Si.generateDiff=function(e,t){try{var n=Si.maxDiffSize,r=0;n>0&&(r=Math.max(e.length-n,t.length-n),e=e.slice(0,n),t=t.slice(0,n));let i=Si.inlineDiffs?function(e,t){var n=function(e,t){return(n=e,r=t,Vn.diff(n,r,i)).map((function(e){return e.added?ki("diff added inline",e.value):e.removed?ki("diff removed inline",e.value):e.value})).join("");var n,r,i}(e,t),r=n.split("\n");if(r.length>4){var i=String(r.length).length;n=r.map((function(e,t){return function(e,t){return e=String(e),Array(t-e.length+1).join(" ")+e}(t+1,i)+" | "+e})).join("\n")}return n="\n"+Si.color("diff removed inline","actual")+" "+Si.color("diff added inline","expected")+"\n\n"+n+"\n",n=n.replace(/^/gm," "),n}(e,t):function(e,t){var n=" ";function r(e){return"+"===e[0]?n+ki("diff added",e):"-"===e[0]?n+ki("diff removed",e):e.match(/@@/)?"--":e.match(/\\ No newline/)?null:n+e}function i(e){return null!=e}var o=(a="string",u=e,l=t,qn(a,a,u,l,c,f)),s=o.split("\n").splice(5);var a,u,l,c,f;return"\n "+ki("diff added","+ expected")+" "+ki("diff removed","- actual")+"\n\n"+s.map(r).filter(i).join("\n")}(e,t);return r>0&&(i=`${i}\n [mocha] output truncated to ${n} characters, see "maxDiffSize" reporter-option\n`),i}catch{return"\n "+Si.color("diff added","+ expected")+" "+Si.color("diff removed","- actual: failed to generate Mocha diff")+"\n"}};var xi=function(e,t){if(t&&t.has(e))return{message:"",msg:"<circular>",stack:""};var n,r=!1;"function"==typeof e.inspect?(n=e.inspect()+"",r=!0):n=e.message&&"function"==typeof e.message.toString?e.message+"":"";for(var i=e.stack||n,o=i.split("\n"),s=o.length-1;s>=0&&""===o[s];)s--;for(var a,u,l=s+1,c=s;c>=0&&/^\s+at\s/.test(o[c]);c--)l=c;var f=!1;if(l<=s)u=o.slice(l,s+1).join("\n"),a=r||0===l?n:o.slice(0,l).join("\n"),f=!0;else{var h=n?i.indexOf(n):-1;-1===h?(a=n,u=i):(h+=n.length,a=i.slice(0,h),u=i.slice(h+1),f=!0)}if(f&&e.cause){(t=t||new Set).add(e);const n=xi(e.cause,t);u+="\n Caused by: "+n.msg+(n.stack?"\n"+n.stack:"")}return{message:n,msg:a,stack:u}};function ki(e,t){return t.split("\n").map((function(t){return Si.color(e,t)})).join("\n")}Si.list=function(e){var t,n;Si.consoleLog(),e.forEach((function(e,r){var i,o=Si.color("error title"," %s) %s:\n")+Si.color("error message"," %s")+Si.color("error stack","\n%s\n");e.err&&e.err.multiple?(n!==e&&(n=e,t=[e.err].concat(e.err.multiple)),i=t.shift()):i=e.err;var{message:s,msg:a,stack:u}=xi(i);if(i.uncaught&&(a="Uncaught "+a),!Si.hideDiff&&Si.showDiff(i)){Ai(i),o=Si.color("error title"," %s) %s:\n%s")+Si.color("error stack","\n%s\n");var l=s.match(/^([^:]+): expected/);a="\n "+Si.color("error message",l?l[1]:a),a+=Si.generateDiff(i.actual,i.expected)}u=u.replace(/^/gm," ");var c="";e.titlePath().forEach((function(e,t){0!==t&&(c+="\n ");for(var n=0;n<t;n++)c+=" ";c+=e})),Si.consoleLog(o,r+1,c,a,u)}))};var Oi=Object.prototype.toString;var Ci=k(Object.freeze({__proto__:null,Base:Si})),{constants:Ii}=pi,Li=Ii.EVENT_TEST_PASS,Pi=Ii.EVENT_TEST_FAIL,Di=Ii.EVENT_RUN_BEGIN,Fi=Ii.EVENT_TEST_PENDING,ji=Ii.EVENT_RUN_END;var Ui=Object.freeze({__proto__:null,Dot:class extends Si{static description="dot matrix representation";constructor(e,t){super(e,t);var n=this,r=.75*Si.window.width|0,i=-1;e.on(Di,(function(){R.stdout.write("\n")})),e.on(Fi,(function(){++i%r==0&&R.stdout.write("\n "),R.stdout.write(Si.color("pending",Si.symbols.comma))})),e.on(Li,(function(e){++i%r==0&&R.stdout.write("\n "),"slow"===e.speed?R.stdout.write(Si.color("bright yellow",Si.symbols.dot)):R.stdout.write(Si.color(e.speed,Si.symbols.dot))})),e.on(Pi,(function(){++i%r==0&&R.stdout.write("\n "),R.stdout.write(Si.color("fail",Si.symbols.bang))})),e.once(ji,(function(){R.stdout.write("\n"),n.epilogue()}))}}}),Mi=k(Ui),Bi=pi.constants,Vi=Bi.EVENT_TEST_PASS,zi=Bi.EVENT_TEST_FAIL,Gi=Bi.EVENT_SUITE_BEGIN,Hi=Bi.EVENT_SUITE_END;var $i=Object.freeze({__proto__:null,Doc:class extends Si{static description="HTML documentation";constructor(e,t){super(e,t);var n=2;function r(){return Array(n).join(" ")}e.on(Gi,(function(e){e.root||(++n,Si.consoleLog('%s<section class="suite">',r()),++n,Si.consoleLog("%s<h1>%s</h1>",r(),dr.escape(e.title)),Si.consoleLog("%s<dl>",r()))})),e.on(Hi,(function(e){e.root||(Si.consoleLog("%s</dl>",r()),--n,Si.consoleLog("%s</section>",r()),--n)})),e.on(Vi,(function(e){Si.consoleLog("%s <dt>%s</dt>",r(),dr.escape(e.title)),Si.consoleLog("%s <dt>%s</dt>",r(),dr.escape(e.file));var t=dr.escape(dr.clean(e.body));Si.consoleLog("%s <dd><pre><code>%s</code></pre></dd>",r(),t)})),e.on(zi,(function(e,t){Si.consoleLog('%s <dt class="error">%s</dt>',r(),dr.escape(e.title)),Si.consoleLog('%s <dt class="error">%s</dt>',r(),dr.escape(e.file));var n=dr.escape(dr.clean(e.body));Si.consoleLog('%s <dd class="error"><pre><code>%s</code></pre></dd>',r(),n),Si.consoleLog('%s <dd class="error">%s</dd>',r(),dr.escape(t))}))}}}),Yi=k($i),Wi=pi.constants,qi=Wi.EVENT_TEST_PASS,Ji=Wi.EVENT_TEST_FAIL,Ki=Wi.EVENT_RUN_BEGIN,Xi=Wi.EVENT_RUN_END,Zi=Wi.EVENT_TEST_PENDING,Qi=Wi.EVENT_TEST_END,eo=wt.format;function to(e){return e.fullTitle().replace(/#/g,"")}function no(){var e=Array.from(arguments);e[0]+="\n",R.stdout.write(eo.apply(null,e))}class ro{writeVersion(){}writePlan(e){no("%d..%d",1,e)}writePass(e,t){no("ok %d %s",e,to(t))}writePending(e,t){no("ok %d %s # SKIP -",e,to(t))}writeFail(e,t){no("not ok %d %s",e,to(t))}writeEpilogue(e){no("# tests "+(e.passes+e.failures)),no("# pass "+e.passes),no("# fail "+e.failures),this.writePlan(e.passes+e.failures+e.pending)}}class io extends ro{writeFail(e,t,n){super.writeFail(e,t,n),n.message&&no(n.message.replace(/^/gm," ")),n.stack&&no(n.stack.replace(/^/gm," "))}}class oo extends ro{writeVersion(){no("TAP version 13")}writeFail(e,t,n){super.writeFail(e,t,n),(null!=n.message||null!=n.stack)&&(no(so(1)+"---"),n.message&&(no(so(2)+"message: |-"),no(n.message.replace(/^/gm,so(3)))),n.stack&&(no(so(2)+"stack: |-"),no(n.stack.replace(/^/gm,so(3)))),no(so(1)+"..."))}}function so(e){return Array(e+1).join(" ")}var ao=Object.freeze({__proto__:null,TAP:class extends Si{static description="TAP-compatible output";constructor(e,t){super(e,t);var n=this,r=1,i="12";t&&t.reporterOptions&&t.reporterOptions.tapVersion&&(i=t.reporterOptions.tapVersion.toString()),this._producer=function(e){var t={12:new io,13:new oo}[e];if(!t)throw new Error("invalid or unsupported TAP version: "+JSON.stringify(e));return t}(i),e.once(Ki,(function(){n._producer.writeVersion()})),e.on(Qi,(function(){++r})),e.on(Zi,(function(e){n._producer.writePending(r,e)})),e.on(qi,(function(e){n._producer.writePass(r,e)})),e.on(Ji,(function(e,t){n._producer.writeFail(r,e,t)})),e.once(Xi,(function(){n._producer.writeEpilogue(e.stats)}))}}}),uo=k(ao),lo={};const co=Nr;var fo=pi.constants,ho=fo.EVENT_TEST_PASS,po=fo.EVENT_TEST_PENDING,go=fo.EVENT_TEST_FAIL,mo=fo.EVENT_TEST_END,Eo=fo.EVENT_RUN_END;function yo(e){var t,n,r=e.err||{};return r instanceof Error&&(r=function(e){var t={};return Object.getOwnPropertyNames(e).forEach((function(n){t[n]=e[n]}),e),t}(r)),{title:e.title,fullTitle:e.fullTitle(),file:e.file,duration:e.duration,currentRetry:e.currentRetry(),speed:e.speed,err:(t=r,n=[],JSON.parse(JSON.stringify(t,(function(e,t){if("object"==typeof t&&null!==t){if(-1!==n.indexOf(t))return""+t;n.push(t)}return t}))))}}var wo=Object.freeze({__proto__:null,JSONReporter:class extends Si{static description="single JSON object";constructor(e,t={}){super(e,t);var n,r=this,i=[],o=[],s=[],a=[];if(t.reporterOption&&t.reporterOption.output){if(dr.isBrowser())throw co("file output not supported in browser");n=t.reporterOption.output}e.on(mo,(function(e){i.push(e)})),e.on(ho,(function(e){a.push(e)})),e.on(go,(function(e){s.push(e)})),e.on(po,(function(e){o.push(e)})),e.once(Eo,(function(){var t={stats:r.stats,tests:i.map(yo),pending:o.map(yo),failures:s.map(yo),passes:a.map(yo)};e.testResults=t;var u=JSON.stringify(t,null,2);if(n)try{lo.mkdirSync(Pn.dirname(n),{recursive:!0}),lo.writeFileSync(n,u)}catch(e){console.error(`${Si.symbols.err} [mocha] writing output to "${n}" failed: ${e.message}\n`),R.stdout.write(u)}else R.stdout.write(u)}))}}}),_o=k(wo),bo=pi.constants,vo=bo.EVENT_TEST_PASS,To=bo.EVENT_TEST_FAIL,No=bo.EVENT_SUITE_BEGIN,So=bo.EVENT_SUITE_END,Ro=bo.EVENT_TEST_PENDING,Ao=dr.escape,xo=e.Date,ko="‣";function Oo(e){var t=window.location.search;return t&&(t=t.replace(/[?&](?:f?grep|invert)=[^&\s]*/g,"").replace(/^&/,"?")),window.location.pathname+(t?t+"&":"?")+"grep="+encodeURIComponent(e)}function Co(e){var t=arguments,n=document.createElement("div"),r=1;return n.innerHTML=e.replace(/%([se])/g,(function(e,n){switch(n){case"s":return String(t[r++]);case"e":return Ao(t[r++])}})),n.firstChild}function Io(e){for(var t=document.getElementsByClassName("suite"),n=0;n<t.length;n++){t[n].getElementsByClassName(e).length||(t[n].className+=" hidden")}}function Lo(){for(var e=document.getElementsByClassName("suite hidden");e.length>0;)e[0].className=e[0].className.replace("suite hidden","suite")}function Po(e,t){e.textContent?e.textContent=t:e.innerText=t}function Do(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}var Fo=Object.freeze({__proto__:null,HTML:class extends Si{static browserOnly=!0;constructor(e,t){super(e,t);var n=this,r=this.stats,i=Co('<ul id="mocha-stats"><li class="result"></li><li class="progress-contain"><progress class="progress-element" max="100" value="0"></progress><svg class="progress-ring"><circle class="ring-flatlight" stroke-dasharray="100%,0%"/><circle class="ring-highlight" stroke-dasharray="0%,100%"/></svg><div class="progress-text">0%</div></li><li class="passes"><a href="javascript:void(0);">passes:</a> <em>0</em></li><li class="failures"><a href="javascript:void(0);">failures:</a> <em>0</em></li><li class="duration">duration: <em>0</em>s</li></ul>'),o=i.getElementsByTagName("li");var s=o[0];const a=o[2],u=a.getElementsByTagName("em")[0],l=a.getElementsByTagName("a")[0],c=o[3],f=c.getElementsByTagName("em")[0],h=c.getElementsByTagName("a")[0];var d,p=o[4].getElementsByTagName("em")[0],g=Co('<ul id="mocha-report"></ul>'),m=[g],E=o[1].getElementsByTagName("div")[0],y=o[1].getElementsByTagName("progress")[0],w=[o[1].getElementsByClassName("ring-flatlight")[0],o[1].getElementsByClassName("ring-highlight")[0]],_=document.getElementById("mocha");if(!_)return d="#mocha div missing, add it to your document",void document.body.appendChild(Co('<div id="mocha-error">%s</div>',d));function b(e){m[0]&&m[0].appendChild(e)}function v(){var t=r.tests/e.total*100|0;if(y.value=t,E){var n=Math.ceil(Math.log10(e.total/100));Po(E,t.toFixed(Math.min(Math.max(n,0),100))+"%")}if(w){var i=parseFloat(getComputedStyle(w[0]).getPropertyValue("r")),o=2*Math.PI*i,s=t*(o/100);w[0].style["stroke-dasharray"]=`0,${s}px,${o}px`,w[1].style["stroke-dasharray"]=`${s}px,${o}px`}var a=new xo-r.start;Po(u,r.passes),Po(f,r.failures),Po(p,(a/1e3).toFixed(2))}Do(l,"click",(function(e){e.preventDefault(),Lo();var t=/pass/.test(g.className)?"":" pass";g.className=g.className.replace(/fail|pass/g,"")+t,g.className.trim()&&Io("test pass")})),Do(h,"click",(function(e){e.preventDefault(),Lo();var t=/fail/.test(g.className)?"":" fail";g.className=g.className.replace(/fail|pass/g,"")+t,g.className.trim()&&Io("test fail")})),_.appendChild(i),_.appendChild(g),e.on(No,(function(e){if(!e.root){var t=Co('<li class="suite"><h1><a href="%s">%s</a></h1></li>',n.suiteURL(e),Ao(e.title));m[0].appendChild(t),m.unshift(document.createElement("ul")),t.appendChild(m[0])}})),e.on(So,(function(e){if(e.root)return 0===r.failures&&(Po(s,"✓"),i.className+=" pass"),void v();m.shift()})),e.on(vo,(function(e){var t=n.testURL(e),r=Co('<li class="test pass %e"><h2>%e<span class="duration">%ems</span> <a href="%s" class="replay">'+ko+"</a></h2></li>",e.speed,e.title,e.duration,t);n.addCodeToggle(r,e.body),b(r),v()})),e.on(To,(function(e){Po(s,"✖"),i.className+=" fail";var t,r=Co('<li class="test fail"><h2>%e <a href="%e" class="replay">'+ko+"</a></h2></li>",e.title,n.testURL(e)),o=e.err.toString();if("[object Error]"===o&&(o=e.err.message),e.err.stack){var a=e.err.stack.indexOf(e.err.message);t=-1===a?e.err.stack:e.err.stack.slice(e.err.message.length+a)}else e.err.sourceURL&&void 0!==e.err.line&&(t="\n("+e.err.sourceURL+":"+e.err.line+")");t=t||"",e.err.htmlMessage&&t?r.appendChild(Co('<div class="html-error">%s\n<pre class="error">%e</pre></div>',e.err.htmlMessage,t)):e.err.htmlMessage?r.appendChild(Co('<div class="html-error">%s</div>',e.err.htmlMessage)):r.appendChild(Co('<pre class="error">%e%e</pre>',o,t)),n.addCodeToggle(r,e.body),b(r),v()})),e.on(Ro,(function(e){b(Co('<li class="test pass pending"><h2>%e</h2></li>',e.title)),v()}))}suiteURL(e){return Oo("^"+bn(e.fullTitle())+" ")}testURL(e){return Oo("^"+bn(e.fullTitle())+"$")}addCodeToggle(e,t){Do(e.getElementsByTagName("h2")[0],"click",(function(){n.style.display="none"===n.style.display?"block":"none"}));var n=Co("<pre><code>%e</code></pre>",dr.clean(t));e.appendChild(n),n.style.display="none"}}}),jo=k(Fo),{constants:Uo}=pi,Mo=Uo.EVENT_RUN_BEGIN,Bo=Uo.EVENT_RUN_END,Vo=Uo.EVENT_TEST_BEGIN,zo=Uo.EVENT_TEST_FAIL,Go=Uo.EVENT_TEST_PASS,Ho=Uo.EVENT_TEST_PENDING,$o=Si.color,Yo=Si.cursor;var Wo=Object.freeze({__proto__:null,List:class extends Si{static description='like "spec" reporter but flat';constructor(e,t){super(e,t);var n=0;e.on(Mo,(function(){Si.consoleLog()})),e.on(Vo,(function(e){R.stdout.write($o("pass"," "+e.fullTitle()+": "))})),e.on(Ho,(function(e){var t=$o("checkmark"," -")+$o("pending"," %s");Si.consoleLog(t,e.fullTitle())})),e.on(Go,(function(e){var t=$o("checkmark"," "+Si.symbols.ok)+$o("pass"," %s: ")+$o(e.speed,"%dms");Yo.CR(),Si.consoleLog(t,e.fullTitle(),e.duration)})),e.on(zo,(function(e){Yo.CR(),Si.consoleLog($o("fail"," %d) %s"),++n,e.fullTitle())})),e.once(Bo,((...e)=>this.epilogue(...e)))}}}),qo=k(Wo),{constants:Jo}=pi,Ko=Jo.EVENT_RUN_END,Xo=Jo.EVENT_RUN_BEGIN;var Zo=Object.freeze({__proto__:null,Min:class extends Si{static description="essentially just a summary";constructor(e,t){super(e,t),e.on(Xo,(function(){R.stdout.write("[2J"),R.stdout.write("[1;3H")})),e.once(Ko,((...e)=>this.epilogue(...e)))}}}),Qo=k(Zo),es=pi.constants,ts=es.EVENT_RUN_BEGIN,ns=es.EVENT_RUN_END,rs=es.EVENT_SUITE_BEGIN,is=es.EVENT_SUITE_END,os=es.EVENT_TEST_FAIL,ss=es.EVENT_TEST_PASS,as=es.EVENT_TEST_PENDING,us=Si.color;class ls extends Si{static description="hierarchical & verbose [default]";constructor(e,t){super(e,t);var n=0,r=0;function i(){return Array(n).join(" ")}e.on(ts,(function(){Si.consoleLog()})),e.on(rs,(function(e){++n,Si.consoleLog(us("suite","%s%s"),i(),e.title)})),e.on(is,(function(){1===--n&&Si.consoleLog()})),e.on(as,(function(e){var t=i()+us("pending"," - %s");Si.consoleLog(t,e.title)})),e.on(ss,(function(e){var t;"fast"===e.speed?(t=i()+us("checkmark"," "+Si.symbols.ok)+us("pass"," %s"),Si.consoleLog(t,e.title)):(t=i()+us("checkmark"," "+Si.symbols.ok)+us("pass"," %s")+us(e.speed," (%dms)"),Si.consoleLog(t,e.title,e.duration))})),e.on(os,(function(e){Si.consoleLog(i()+us("fail"," %d) %s"),++r,e.title)})),e.once(ns,((...e)=>this.epilogue(...e)))}}var cs=k(Object.freeze({__proto__:null,Spec:ls})),fs=pi.constants,hs=fs.EVENT_RUN_BEGIN,ds=fs.EVENT_TEST_PENDING,ps=fs.EVENT_TEST_PASS,gs=fs.EVENT_RUN_END,ms=fs.EVENT_TEST_FAIL;var Es=Object.freeze({__proto__:null,NyanCat:class extends Si{static description='"nyan cat"';constructor(e,t){super(e,t);var n=this,r=.75*Si.window.width|0,i=this.nyanCatWidth=11;this.colorIndex=0,this.numberOfLines=4,this.rainbowColors=n.generateColors(),this.scoreboardWidth=5,this.tick=0,this.trajectories=[[],[],[],[]],this.trajectoryWidthMax=r-i,e.on(hs,(function(){Si.cursor.hide(),n.draw()})),e.on(ds,(function(){n.draw()})),e.on(ps,(function(){n.draw()})),e.on(ms,(function(){n.draw()})),e.once(gs,(function(){Si.cursor.show();for(var e=0;e<n.numberOfLines;e++)R.stdout.write("\n");n.epilogue()}))}draw(){this.appendRainbow(),this.drawScoreboard(),this.drawRainbow(),this.drawNyanCat(),this.tick=!this.tick}drawScoreboard(){var e=this.stats;function t(e,t){R.stdout.write(" "),R.stdout.write(Si.color(e,t)),R.stdout.write("\n")}t("green",e.passes),t("fail",e.failures),t("pending",e.pending),R.stdout.write("\n"),this.cursorUp(this.numberOfLines)}appendRainbow(){for(var e=this.tick?"_":"-",t=this.rainbowify(e),n=0;n<this.numberOfLines;n++){var r=this.trajectories[n];r.length>=this.trajectoryWidthMax&&r.shift(),r.push(t)}}drawRainbow(){var e=this;this.trajectories.forEach((function(t){R.stdout.write("["+e.scoreboardWidth+"C"),R.stdout.write(t.join("")),R.stdout.write("\n")})),this.cursorUp(this.numberOfLines)}drawNyanCat(){var e,t=this,n="["+(this.scoreboardWidth+this.trajectories[0].length)+"C";R.stdout.write(n),R.stdout.write("_,------,"),R.stdout.write("\n"),R.stdout.write(n),e=t.tick?" ":" ",R.stdout.write("_|"+e+"/\\_/\\ "),R.stdout.write("\n"),R.stdout.write(n),e=t.tick?"_":"__";var r=t.tick?"~":"^";R.stdout.write(r+"|"+e+this.face()+" "),R.stdout.write("\n"),R.stdout.write(n),e=t.tick?" ":" ",R.stdout.write(e+'"" "" '),R.stdout.write("\n"),this.cursorUp(this.numberOfLines)}face(){var e=this.stats;return e.failures?"( x .x)":e.pending?"( o .o)":e.passes?"( ^ .^)":"( - .-)"}cursorUp(e){R.stdout.write("["+e+"A")}cursorDown(e){R.stdout.write("["+e+"B")}generateColors(){for(var e=[],t=0;t<42;t++){var n=Math.floor(Math.PI/3),r=t*(1/6),i=Math.floor(3*Math.sin(r)+3),o=Math.floor(3*Math.sin(r+2*n)+3),s=Math.floor(3*Math.sin(r+4*n)+3);e.push(36*i+6*o+s+16)}return e}rainbowify(e){if(!Si.useColors)return e;var t=this.rainbowColors[this.colorIndex%this.rainbowColors.length];return this.colorIndex+=1,"[38;5;"+t+"m"+e+"[0m"}}}),ys=k(Es),ws=Nr,_s=pi.constants,bs=_s.EVENT_TEST_PASS,vs=_s.EVENT_TEST_FAIL,Ts=_s.EVENT_RUN_END,Ns=_s.EVENT_TEST_PENDING,Ss=Br.constants.STATE_FAILED,Rs=dr.escape,As=new RegExp(String.fromCharCode(27)+"\\[[0-?]*[ -/]*[@-~]","g"),xs=e.Date;function ks(e,t,n,r){var i,o=n?"/>":">",s=[];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&s.push(a+'="'+Os(t[a])+'"');return i="<"+e+(s.length?" "+s.join(" "):"")+o,r&&(i+=r+"</"+e+o),i}function Os(e){return Rs(function(e){for(var t="",n=0;n<e.length;n+=1){var r=e.charCodeAt(n);(9===r||10===r||13===r||r>=32)&&(t+=e[n])}return t}(String(e).replace(As,"")))}function Cs(e,t){return t&&t.reporterOptions&&t.reporterOptions.showRelativePaths?Pn.relative(R.cwd(),e):e}var Is=Object.freeze({__proto__:null,XUnit:class extends Si{static description="XUnit-compatible XML output";constructor(e,t){super(e,t);var n,r=this.stats,i=[],o=this;if(t&&t.reporterOptions){if(t.reporterOptions.output){if(!lo.createWriteStream)throw ws("file output not supported in browser");lo.mkdirSync(Pn.dirname(t.reporterOptions.output),{recursive:!0}),o.fileStream=lo.createWriteStream(t.reporterOptions.output)}n=t.reporterOptions.suiteName}n=n||"Mocha Tests",e.on(Ns,(function(e){i.push(e)})),e.on(bs,(function(e){i.push(e)})),e.on(vs,(function(e){i.push(e)})),e.once(Ts,(function(){o.write(ks("testsuite",{name:n,tests:r.tests,failures:0,errors:r.failures,skipped:r.tests-r.failures-r.passes,timestamp:(new xs).toUTCString(),time:r.duration/1e3||0},!1)),i.forEach((function(e){o.test(e,t)})),o.write("</testsuite>")}))}done(e,t){this.fileStream?this.fileStream.end((function(){t(e)})):t(e)}write(e){this.fileStream?this.fileStream.write(e+"\n"):"object"==typeof R&&R.stdout?R.stdout.write(e+"\n"):Si.consoleLog(e)}test(e,t){Si.useColors=!1;var n={classname:e.parent.fullTitle(),name:e.title,file:Cs(e.file,t),time:e.duration/1e3||0};if(e.state===Ss){var r=e.err,i=!Si.hideDiff&&Si.showDiff(r)?"\n"+Si.generateDiff(r.actual,r.expected):"";this.write(ks("testcase",n,!1,ks("failure",{},!1,Os(r.message)+Os(i)+"\n"+Os(r.stack))))}else e.isPending()?this.write(ks("testcase",n,!1,ks("skipped",{},!0))):this.write(ks("testcase",n,!0))}}}),Ls=k(Is),Ps=pi.constants,Ds=Ps.EVENT_RUN_END,Fs=Ps.EVENT_SUITE_BEGIN,js=Ps.EVENT_SUITE_END,Us=Ps.EVENT_TEST_PASS;var Ms=Object.freeze({__proto__:null,Markdown:class extends Si{static description="GitHub Flavored Markdown";constructor(e,t){super(e,t);var n=0,r="";function i(e,t){var n=t,r="$"+e.title;return t=t[r]=t[r]||{suite:e},e.suites.forEach((function(e){i(e,t)})),n}function o(e,t){++t;var n,r="";for(var i in e)"suite"!==i&&("$"!==i&&(n=" - ["+i.substring(1)+"]",n+="(#"+dr.slug(e[i].suite.fullTitle())+")\n",r+=Array(t).join(" ")+n),r+=o(e[i],t));return r}function s(e){return o(i(e,{}),0)}s(e.suite),e.on(Fs,(function(e){++n;var t,i=dr.slug(e.fullTitle());r+='<a name="'+i+'"></a>\n',r+=(t=e.title,Array(n).join("#")+" "+t+"\n")})),e.on(js,(function(){--n})),e.on(Us,(function(e){var t=dr.clean(e.body);r+=e.title+".\n",r+="\n```js\n",r+=t+"\n",r+="```\n\n"})),e.once(Ds,(function(){R.stdout.write("# TOC\n"),R.stdout.write(s(e.suite)),R.stdout.write(r)}))}}}),Bs=k(Ms),Vs=pi.constants,zs=Vs.EVENT_RUN_BEGIN,Gs=Vs.EVENT_TEST_END,Hs=Vs.EVENT_RUN_END,$s=Si.color,Ys=Si.cursor;Si.colors.progress=90;var Ws=Object.freeze({__proto__:null,Progress:class extends Si{static description="a progress bar";constructor(e,t){super(e,t);var n=this,r=.5*Si.window.width|0,i=e.total,o=0,s=-1,a=(t=t||{}).reporterOptions||{};t.open=a.open||"[",t.complete=a.complete||"▬",t.incomplete=a.incomplete||Si.symbols.dot,t.close=a.close||"]",t.verbose=a.verbose||!1,e.on(zs,(function(){R.stdout.write("\n"),Ys.hide()})),e.on(Gs,(function(){o++;var e=r*(o/i)|0,n=r-e;(e!==s||t.verbose)&&(s=e,Ys.CR(),R.stdout.write("[J"),R.stdout.write($s("progress"," "+t.open)),R.stdout.write(Array(e).join(t.complete)),R.stdout.write(Array(n).join(t.incomplete)),R.stdout.write($s("progress",t.close)),t.verbose&&R.stdout.write($s("progress"," "+o+" of "+i)))})),e.once(Hs,(function(){Ys.show(),R.stdout.write("\n"),n.epilogue()}))}}}),qs=k(Ws),Js=pi.constants,Ks=Js.EVENT_RUN_BEGIN,Xs=Js.EVENT_RUN_END,Zs=Js.EVENT_TEST_END,Qs=Br.constants.STATE_FAILED,ea=Si.cursor,ta=Si.color;Si.colors.plane=0,Si.colors["plane crash"]=31,Si.colors.runway=90;var na=Object.freeze({__proto__:null,Landing:class extends Si{static description="Unicode landing strip";constructor(e,t){super(e,t);var n=this,r=.75*Si.window.width|0,i=R.stdout,o=ta("plane","✈"),s=-1,a=0,u=0;function l(){var e=Array(r).join("-");return" "+ta("runway",e)}e.on(Ks,(function(){i.write("\n\n\n "),ea.hide()})),e.on(Zs,(function(e){var t=-1===s?r*++a/++u|0:s;e.state===Qs&&(o=ta("plane crash","✈"),s=t),i.write("["+(r+1)+"D[2A"),i.write(l()),i.write("\n "),i.write(ta("runway",Array(t).join("⋅"))),i.write(o),i.write(ta("runway",Array(r-t).join("⋅")+"\n")),i.write(l()),i.write("[0m")})),e.once(Xs,(function(){ea.show(),R.stdout.write("\n"),n.epilogue()})),R.once("SIGINT",(function(){ea.show(),R.nextTick((function(){R.kill(R.pid,"SIGINT")}))}))}}}),ra=k(na),ia=pi.constants,oa=ia.EVENT_TEST_PASS,sa=ia.EVENT_TEST_FAIL,aa=ia.EVENT_RUN_BEGIN,ua=ia.EVENT_RUN_END;function la(e){R.stdout.write(JSON.stringify(e)+"\n")}function ca(e){return{title:e.title,fullTitle:e.fullTitle(),file:e.file,duration:e.duration,currentRetry:e.currentRetry(),speed:e.speed}}var fa=Object.freeze({__proto__:null,JSONStream:class extends Si{static description="newline delimited JSON events";constructor(e,t){super(e,t);var n=this,r=e.total;e.once(aa,(function(){la(["start",{total:r}])})),e.on(oa,(function(e){la(["pass",ca(e)])})),e.on(sa,(function(e,t){(e=ca(e)).err=t.message,e.stack=t.stack||null,la(["fail",e])})),e.once(ua,(function(){la(["end",n.stats])}))}}}),ha=k(fa);const{constants:da}=pi;var pa=da.EVENT_TEST_FAIL,ga=da.EVENT_RUN_END;function ma(e){if(!e)return{};var t=/^\s*at Context.*\(([^()]+):([0-9]+):([0-9]+)\)/gm.exec(e)||/^\s*at.*\(([^()]+):([0-9]+):([0-9]+)\)/gm.exec(e);return null===t?{}:{file:t[1],line:t[2],col:t[3]}}function Ea(e){return String(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}var ya,wa=Object.freeze({__proto__:null,GithubActions:class extends ls{static description="like spec, with GitHub Actions error annotations and job summary";constructor(e,t){super(e,t);var n=[];e.on(pa,(function(e){n.push(e)})),e.once(ga,(()=>{if(n.length>0){for(var e of(R.stdout.write("::group::Mocha Annotations\n"),n)){var t=ma(e.err&&e.err.stack),r=[];t.file&&r.push("file="+Ea(t.file)),t.line&&r.push("line="+Ea(t.line)),t.col&&r.push("col="+Ea(t.col));var i=e.err?(o=e.err.message,String(o).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")):"";R.stdout.write("::error "+r.join(",")+"::"+i+"\n")}R.stdout.write("::endgroup::\n")}var o,s=R.env.GITHUB_STEP_SUMMARY;if(s){var a=[];a.push(":white_check_mark: "+(this.stats.passes||0)+" passing ("+rr(this.stats.duration)+")"),this.stats.pending&&a.push(":pause_button: "+this.stats.pending+" pending"),this.stats.failures&&a.push(":x: "+this.stats.failures+" failing"),lo.appendFileSync(s,a.join("\n")+"\n")}}))}}}),_a=k(wa);var ba={diff:!0,extension:["js","cjs","mjs"],package:"./package.json",reporter:"spec",slow:75,timeout:2e3,ui:"bdd","watch-ignore":["node_modules",".git"]},va=k(ei),Ta=k(gr);const{EVENT_TEST_PASS:Na,EVENT_TEST_FAIL:Sa,EVENT_SUITE_BEGIN:Ra,EVENT_RUN_BEGIN:Aa,EVENT_TEST_PENDING:xa,EVENT_RUN_END:ka,EVENT_TEST_END:Oa}=pi.constants;var Ca=Object.freeze({__proto__:null,createStatsCollector:function(e){var t={suites:0,tests:0,passes:0,pending:0,failures:0};if(!e)throw new TypeError("Missing runner argument");e.stats=t,e.once(Aa,(function(){t.start=new Date})),e.on(Ra,(function(e){e.root||t.suites++})),e.on(Na,(function(){t.passes++})),e.on(Sa,(function(){t.failures++})),e.on(xa,(function(){t.pending++})),e.on(Oa,(function(){t.tests++})),e.once(ka,(function(){t.end=new Date,t.duration=t.end-t.start}))}}),Ia=k(Ca),La=k(Lr);const{isString:Pa}=dr,{MOCHA_ID_PROP_NAME:Da}=dr.constants;class Fa extends Br{constructor(e,t){if(!Pa(e))throw Rr('Test argument "title" should be a string. Received type "'+typeof e+'"',"title","string");super(e,t),this.type="test",this.reset()}reset(){super.reset(),this.pending=!this.fn,delete this.state}retriedTest(e){if(!arguments.length)return this._retriedTest;this._retriedTest=e}markOnly(){this.parent.appendOnlyTest(this)}clone(){var e=new Fa(this.title,this.fn);return e.timeout(this.timeout()),e.slow(this.slow()),e.retries(this.retries()),e.currentRetry(this.currentRetry()),e.retriedTest(this.retriedTest()||this),e.globals(this.globals()),e.parent=this.parent,e.file=this.file,e.ctx=this.ctx,e}serialize(){return{$$currentRetry:this._currentRetry,$$fullTitle:this.fullTitle(),$$isPending:Boolean(this.pending),$$retriedTest:this._retriedTest||null,$$slow:this._slow,$$titlePath:this.titlePath(),body:this.body,duration:this.duration,err:this.err,parent:{$$fullTitle:this.parent.fullTitle(),[Da]:this.parent.id},speed:this.speed,state:this.state,title:this.title,type:this.type,file:this.file,[Da]:this.id}}}var ja=Object.freeze({__proto__:null,Test:Fa});function Ua(e,t,n){return{runWithSuite:function(e){return function(){e.run()}},before:function(t,n){return e[0].beforeAll(t,n)},after:function(t,n){return e[0].afterAll(t,n)},beforeEach:function(t,n){return e[0].beforeEach(t,n)},afterEach:function(t,n){return e[0].afterEach(t,n)},suite:{only:function(e){if(n.options.forbidOnly)throw Or(n);return e.isOnly=!0,this.create(e)},skip:function(e){return e.pending=!0,this.create(e)},create:function(t){var r=Qr.create(e[0],t.title);if(r.pending=Boolean(t.pending),r.file=t.file,e.unshift(r),t.isOnly&&r.markOnly(),r.pending&&n.options.forbidPending&&function(e){return!n.options.grep||n.options.grep&&n.options.grep.test(e.fullTitle())&&!n.options.invert}(r))throw Nr("Pending test forbidden");if("function"==typeof t.fn)t.fn.call(r),e.shift();else{if(void 0===t.fn&&!r.pending)throw Sr('Suite "'+r.fullTitle()+'" was defined but no callback was supplied. Supply a callback or explicitly skip the suite.',"callback","function");!t.fn&&r.pending&&e.shift()}return r}},test:{only:function(e,t){if(e.options.forbidOnly)throw Or(e);return t.markOnly(),t},skip:function(e){t.test(e)}}}}const Ma=Qr.constants.EVENT_FILE_PRE_REQUIRE;function Ba(e){var t=[e];e.on(Ma,(function(n,r,i){var o=Ua(t,n,i);n.before=o.before,n.after=o.after,n.beforeEach=o.beforeEach,n.afterEach=o.afterEach,n.run=i.options.delay&&o.runWithSuite(e),n.describe=n.context=function(e,t){return o.suite.create({title:e,file:r,fn:t})},n.xdescribe=n.xcontext=n.describe.skip=function(e,t){return o.suite.skip({title:e,file:r,fn:t})},n.describe.only=function(e,t){return o.suite.only({title:e,file:r,fn:t})},n.it=n.specify=function(e,n){var i=t[0];i.isPending()&&(n=null);var o=new Fa(e,n);return o.file=r,i.addTest(o),o},n.it.only=function(e,t){return o.test.only(i,n.it(e,t))},n.xit=n.xspecify=n.it.skip=function(e){return n.it(e)}}))}Ba.description="BDD or RSpec style [default]";const Va=Qr.constants.EVENT_FILE_PRE_REQUIRE;function za(e){var t=[e];e.on(Va,(function(n,r,i){var o=Ua(t,n,i);n.setup=o.beforeEach,n.teardown=o.afterEach,n.suiteSetup=o.before,n.suiteTeardown=o.after,n.run=i.options.delay&&o.runWithSuite(e),n.suite=function(e,t){return o.suite.create({title:e,file:r,fn:t})},n.suite.skip=function(e,t){return o.suite.skip({title:e,file:r,fn:t})},n.suite.only=function(e,t){return o.suite.only({title:e,file:r,fn:t})},n.test=function(e,n){var i=t[0];i.isPending()&&(n=null);var o=new Fa(e,n);return o.file=r,i.addTest(o),o},n.test.only=function(e,t){return o.test.only(i,n.test(e,t))},n.test.skip=o.test.skip}))}za.description='traditional "suite"/"test" instead of BDD\'s "describe"/"it"';const Ga=Qr.constants.EVENT_FILE_PRE_REQUIRE;function Ha(e){var t=[e];e.on(Ga,(function(n,r,i){var o=Ua(t,n,i);n.before=o.before,n.after=o.after,n.beforeEach=o.beforeEach,n.afterEach=o.afterEach,n.run=i.options.delay&&o.runWithSuite(e),n.suite=function(e){return t.length>1&&t.shift(),o.suite.create({title:e,file:r,fn:!1})},n.suite.only=function(e){return t.length>1&&t.shift(),o.suite.only({title:e,file:r,fn:!1})},n.test=function(e,n){var i=new Fa(e,n);return i.file=r,t[0].addTest(i),i},n.test.only=function(e,t){return o.test.only(i,n.test(e,t))},n.test.skip=o.test.skip}))}function $a(e){var t=[e];e.on(Qr.constants.EVENT_FILE_REQUIRE,(function e(n,r){var i;for(var o in n)if("function"==typeof n[o]){var s=n[o];switch(o){case"before":t[0].beforeAll(s);break;case"after":t[0].afterAll(s);break;case"beforeEach":t[0].beforeEach(s);break;case"afterEach":t[0].afterEach(s);break;default:var a=new Fa(o,s);a.file=r,t[0].addTest(a)}}else i=Qr.create(t[0],o),t.unshift(i),e(n[o],r),t.shift()}))}Ha.description="QUnit style",$a.description='Node.js module ("exports") style';var Ya=k(Object.freeze({__proto__:null,bdd:Ba,exports:$a,qunit:Ha,tdd:za})),Wa=k(Vr);var qa,Ja=Object.freeze({__proto__:null,Context:class{constructor(){}runnable(e){return arguments.length?(this.test=this._runnable=e,this):this._runnable}timeout(e){return arguments.length?(this.runnable().timeout(e),this):this.runnable().timeout()}slow(e){return arguments.length?(this.runnable().slow(e),this):this.runnable().slow()}skip(){this.runnable().skip()}retries(e){return arguments.length?(this.runnable().retries(e),this):this.runnable().retries()}}}),Ka=k(Ja),Xa=k(yi),Za=k(Hr),Qa=k(ja),eu={};var tu=(qa||(qa=1,function(e,t){var{escapeRegExp:n}=vn,r=jn,i=(ya||(ya=1,function(e){const{Base:t}=Ci;e.Base=e.base=t;const{Dot:n}=Mi;e.Dot=e.dot=n;const{Doc:r}=Yi;e.Doc=e.doc=r;const{TAP:i}=uo;e.TAP=e.tap=i;const{JSONReporter:o}=_o;e.JSON=e.json=o;const{HTML:s}=jo;e.HTML=e.html=s;const{List:a}=qo;e.List=e.list=a;const{Min:u}=Qo;e.Min=e.min=u;const{Spec:l}=cs;e.Spec=e.spec=l;const{NyanCat:c}=ys;e.Nyan=e.nyan=c;const{XUnit:f}=Ls;e.XUnit=e.xunit=f;const{Markdown:h}=Bs;e.Markdown=e.markdown=h;const{Progress:d}=qs;e.Progress=e.progress=d;const{Landing:p}=ra;e.Landing=e.landing=p;const{JSONStream:g}=ha;e.JSONStream=e["json-stream"]=g;const{GithubActions:m}=_a;e.GithubActions=e["github-actions"]=m}(Un)),Un),o=ur(),s=ba,{Suite:a}=va,u=Ta,l=Ia.createStatsCollector;const{createInvalidReporterError:c,createInvalidInterfaceError:f,createMochaInstanceAlreadyDisposedError:h,createMochaInstanceAlreadyRunningError:d,createUnsupportedError:p}=La,{EVENT_FILE_PRE_REQUIRE:g,EVENT_FILE_POST_REQUIRE:m,EVENT_FILE_REQUIRE:E}=a.constants;var y=Er()("mocha:mocha");t=e.exports=v,e.exports.Mocha=v;var w=o.defineConstants({INIT:"init",RUNNING:"running",REFERENCES_CLEANED:"referencesCleaned",DISPOSED:"disposed"});if(!o.isBrowser()&&void 0!==e.paths){var _=o.cwd();e.paths.push(_,r.join(_,"node_modules"))}let b;function v(e={}){e={...s,...e},this.files=[],this.options=e,this.suite=new t.Suite("",new t.Context,!0),this._cleanReferencesAfterRun=!0,this._state=w.INIT,this.grep(e.grep).fgrep(e.fgrep).ui(e.ui).reporter(e.reporter,e["reporter-option"]||e.reporterOption||e.reporterOptions).slow(e.slow).global(e.global),void 0!==e.timeout&&this.timeout(!1===e.timeout?0:e.timeout),"retries"in e&&this.retries(e.retries),["allowUncaught","asyncOnly","bail","checkLeaks","color","delay","diff","dryRun","passOnFailingTestSuite","failZero","forbidOnly","forbidPending","fullTrace","inlineDiffs","invert"].forEach((function(t){e[t]&&this[t]()}),this),e.rootHooks&&this.rootHooks(e.rootHooks),this._runnerClass=t.Runner,this._lazyLoadFiles=!1,this.isWorker=Boolean(e.isWorker),this.globalSetup(e.globalSetup).globalTeardown(e.globalTeardown).enableGlobalSetup(e.enableGlobalSetup).enableGlobalTeardown(e.enableGlobalTeardown),e.parallel&&(void 0===e.jobs||e.jobs>1)&&(y("attempting to enable parallel mode"),this.parallelMode(!0))}t.utils=o,t.interfaces={...Ya},t.reporters=i,t.Runnable=Wa.Runnable,t.Context=Ka.Context,t.Runner=Xa.Runner,t.Suite=a,t.Hook=Za.Hook,t.Test=Qa.Test,t.afterEach=function(...e){return(b.afterEach||b.teardown).apply(this,e)},t.after=function(...e){return(b.after||b.suiteTeardown).apply(this,e)},t.beforeEach=function(...e){return(b.beforeEach||b.setup).apply(this,e)},t.before=function(...e){return(b.before||b.suiteSetup).apply(this,e)},t.describe=function(...e){return(b.describe||b.suite).apply(this,e)},t.describe.only=function(...e){return(b.describe||b.suite).only.apply(this,e)},t.describe.skip=function(...e){return(b.describe||b.suite).skip.apply(this,e)},t.it=function(...e){return(b.it||b.test).apply(this,e)},t.it.only=function(...e){return(b.it||b.test).only.apply(this,e)},t.it.skip=function(...e){return(b.it||b.test).skip.apply(this,e)},t.xdescribe=t.describe.skip,t.xit=t.it.skip,t.setup=t.beforeEach,t.suiteSetup=t.before,t.suiteTeardown=t.after,t.suite=t.describe,t.teardown=t.afterEach,t.test=t.it,t.run=function(...e){return b.run.apply(this,e)},v.prototype.bail=function(e){return this.suite.bail(!1!==e),this},v.prototype.addFile=function(e){return this.files.push(e),this},v.prototype.reporter=function(e,t){if("function"==typeof e)this._reporter=e;else{var n;if(i[e=e||"spec"]&&(n=i[e]),!n){let t;try{t=require.resolve(e),n=wn(t)}catch(i){if(t)throw c(i.message,t);try{n=wn(r.resolve(e))}catch(t){throw c(t.message,e)}}}n.default&&(n=n.default),this._reporter=n}return this.options.reporterOption=t,this.options.reporterOptions=t,this},v.prototype.ui=function(e){var n;if("function"==typeof e)n=e;else if(e=e||"bdd",!(n=t.interfaces[e]))try{n=wn(e)}catch{throw f(`invalid interface '${e}'`,e)}return n.default&&(n=n.default),n(this.suite),this.suite.on(g,(function(e){b=e})),this},v.prototype.loadFiles=function(e){var t=this,n=this.suite;this.files.forEach((function(e){e=r.resolve(e),n.emit(g,A,e,t),n.emit(E,wn(e),e,t),n.emit(m,A,e,t)})),e&&e()},v.prototype.loadFilesAsync=function({esmDecorator:e}={}){var t=this,n=this.suite;return this.lazyLoadFiles(!0),u.loadFilesAsync(this.files,(function(e){n.emit(g,A,e,t)}),(function(e,r){n.emit(E,r,e,t),n.emit(m,A,e,t)}),e)},v.unloadFile=function(e){if(o.isBrowser())throw p("unloadFile() is only supported in a Node.js environment");const{unloadFile:t}=Ta;return t(e)},v.prototype.unloadFiles=function(){if(this._state===w.DISPOSED)throw h("Mocha instance is already disposed, it cannot be used again.",this._cleanReferencesAfterRun,this);return this.files.forEach((function(e){v.unloadFile(e)})),this._state=w.INIT,this},v.prototype.fgrep=function(e){return e?this.grep(new RegExp(n(e))):this},v.prototype.grep=function(e){if(o.isString(e)){var t=e.match(/^\/(.*)\/([a-z]*)$|.*/);this.options.grep=new RegExp(t[1]||t[0],t[2])}else this.options.grep=e;return this},v.prototype.invert=function(){return this.options.invert=!0,this},v.prototype.checkLeaks=function(e){return this.options.checkLeaks=!1!==e,this},v.prototype.cleanReferencesAfterRun=function(e){return this._cleanReferencesAfterRun=!1!==e,this},v.prototype.dispose=function(){if(this._state===w.RUNNING)throw d("Cannot dispose while the mocha instance is still running tests.");this.unloadFiles(),this._previousRunner&&this._previousRunner.dispose(),this.suite.dispose(),this._state=w.DISPOSED},v.prototype.fullTrace=function(e){return this.options.fullTrace=!1!==e,this},v.prototype.global=function(e){return this.options.global=(this.options.global||[]).concat(e).filter(Boolean).filter((function(e,t,n){return n.indexOf(e)===t})),this},v.prototype.globals=v.prototype.global,v.prototype.color=function(e){return this.options.color=!1!==e,this},v.prototype.inlineDiffs=function(e){return this.options.inlineDiffs=!1!==e,this},v.prototype.diff=function(e){return this.options.diff=!1!==e,this},v.prototype.timeout=function(e){return this.suite.timeout(e),this},v.prototype.retries=function(e){return this.suite.retries(e),this},v.prototype.slow=function(e){return this.suite.slow(e),this},v.prototype.asyncOnly=function(e){return this.options.asyncOnly=!1!==e,this},v.prototype.noHighlighting=function(){return this.options.noHighlighting=!0,this},v.prototype.allowUncaught=function(e){return this.options.allowUncaught=!1!==e,this},v.prototype.delay=function(){return this.options.delay=!0,this},v.prototype.dryRun=function(e){return this.options.dryRun=!1!==e,this},v.prototype.failHookAffectedTests=function(e){return this.options.failHookAffectedTests=!1!==e,this},v.prototype.failZero=function(e){return this.options.failZero=!1!==e,this},v.prototype.passOnFailingTestSuite=function(e){return this.options.passOnFailingTestSuite=!0===e,this},v.prototype.forbidOnly=function(e){return this.options.forbidOnly=!1!==e,this},v.prototype.forbidPending=function(e){return this.options.forbidPending=!1!==e,this},v.prototype._guardRunningStateTransition=function(){if(this._state===w.RUNNING)throw d("Mocha instance is currently running tests, cannot start a next test run until this one is done",this);if(this._state===w.DISPOSED||this._state===w.REFERENCES_CLEANED)throw h("Mocha instance is already disposed, cannot start a new test run. Please create a new mocha instance. Be sure to set disable `cleanReferencesAfterRun` when you want to reuse the same mocha instance for multiple test runs.",this._cleanReferencesAfterRun,this)},Object.defineProperty(v.prototype,"version",{value:eu.version,configurable:!1,enumerable:!0,writable:!1}),v.prototype.run=function(e){this._guardRunningStateTransition(),this._state=w.RUNNING,this._previousRunner&&(this._previousRunner.dispose(),this.suite.reset()),this.files.length&&!this._lazyLoadFiles&&this.loadFiles();var n=this.suite,r=this.options;r.files=this.files;const i=new this._runnerClass(n,{cleanReferencesAfterRun:this._cleanReferencesAfterRun,delay:r.delay,dryRun:r.dryRun,failHookAffectedTests:r.failHookAffectedTests,failZero:r.failZero});l(i);var s=new this._reporter(i,r);i.checkLeaks=!0===r.checkLeaks,i.fullStackTrace=r.fullTrace,i.asyncOnly=r.asyncOnly,i.allowUncaught=r.allowUncaught,i.forbidOnly=r.forbidOnly,i.forbidPending=r.forbidPending,r.grep&&i.grep(r.grep,r.invert),r.global&&i.globals(r.global),void 0!==r.color&&(t.reporters.Base.useColors=r.color),t.reporters.Base.inlineDiffs=r.inlineDiffs,t.reporters.Base.hideDiff=!r.diff;const a=(e,t)=>{R.stderr.write(`\n[mocha] global ${e} failed:\n${t&&t.stack?t.stack:t}\n`)};return(async e=>{let t={};if(this.options.enableGlobalSetup&&this.hasGlobalSetupFixtures())try{t=await this.runGlobalSetup(e)}catch(e){return a("setup",e),1}const n=await e.runAsync({files:this.files,options:r});if(this.options.enableGlobalTeardown&&this.hasGlobalTeardownFixtures())try{await this.runGlobalTeardown(e,{context:t})}catch(e){return a("teardown",e),n+1}return n})(i).then((t=>{this._previousRunner=i,this._state=this._cleanReferencesAfterRun?w.REFERENCES_CLEANED:w.INIT,e=e||o.noop,"function"==typeof s.done?s.done(t,e):e(t)})),i},v.prototype.rootHooks=function({beforeAll:e=[],beforeEach:t=[],afterAll:n=[],afterEach:r=[]}={}){return e=o.castArray(e),t=o.castArray(t),n=o.castArray(n),r=o.castArray(r),e.forEach((e=>{this.suite.beforeAll(e)})),t.forEach((e=>{this.suite.beforeEach(e)})),n.forEach((e=>{this.suite.afterAll(e)})),r.forEach((e=>{this.suite.afterEach(e)})),this},v.prototype.parallelMode=function(e=!0){if(o.isBrowser())throw p("parallel mode is only supported in Node.js");const n=Boolean(e);if(n===this.options.parallel&&this._lazyLoadFiles&&this._runnerClass!==t.Runner)return this;if(this._state!==w.INIT)throw p("cannot change parallel mode after having called run()");return this.options.parallel=n,this._runnerClass=n?Ta:t.Runner,this.lazyLoadFiles(this._lazyLoadFiles||n)},v.prototype.lazyLoadFiles=function(e){return this._lazyLoadFiles=!0===e,y("set lazy load to %s",e),this},v.prototype.globalSetup=function(e=[]){return e=o.castArray(e),this.options.globalSetup=e,y("configured %d global setup functions",e.length),this},v.prototype.globalTeardown=function(e=[]){return e=o.castArray(e),this.options.globalTeardown=e,y("configured %d global teardown functions",e.length),this},v.prototype.runGlobalSetup=async function(e={}){const{globalSetup:t}=this.options;return t&&t.length&&(y("run(): global setup starting"),await this._runGlobalFixtures(t,e),y("run(): global setup complete")),e},v.prototype.runGlobalTeardown=async function(e={}){const{globalTeardown:t}=this.options;return t&&t.length&&(y("run(): global teardown starting"),await this._runGlobalFixtures(t,e)),y("run(): global teardown complete"),e},v.prototype._runGlobalFixtures=async function(e=[],t={}){for await(const n of e)await n.call(t);return t},v.prototype.enableGlobalSetup=function(e=!0){return this.options.enableGlobalSetup=Boolean(e),this},v.prototype.enableGlobalTeardown=function(e=!0){return this.options.enableGlobalTeardown=Boolean(e),this},v.prototype.hasGlobalSetupFixtures=function(){return Boolean(this.options.globalSetup.length)},v.prototype.hasGlobalTeardownFixtures=function(){return Boolean(this.options.globalTeardown.length)}}(_n,_n.exports)),_n.exports),nu=x(tu);R.stdout=En({label:!1});var ru=new nu({reporter:"html"}),iu=e.Date,ou=e.setTimeout,su=[],au=e.onerror;R.removeListener=function(t,n){if("uncaughtException"===t){e.onerror=au||function(){};var r=su.indexOf(n);-1!==r&&su.splice(r,1)}},R.listenerCount=function(e){return"uncaughtException"===e?su.length:0},R.on=function(t,n){"uncaughtException"===t&&(e.onerror=function(e,t,r,i,o){return n(o||new Error(e+" ("+t+":"+r+":"+i+")")),!ru.options.allowUncaught},su.push(n))},R.listeners=function(e){return"uncaughtException"===e?su:[]},ru.suite.removeAllListeners("pre-require");var uu,lu=[];function cu(){for(var e=(new iu).getTime();lu.length&&(new iu).getTime()-e<100;)lu.shift()();uu=lu.length?ou(cu,0):null}return nu.Runner.immediately=function(e){lu.push(e),uu||(uu=ou(cu,0))},ru.throwError=function(e){throw su.forEach((function(t){t(e)})),e},ru.ui=function(t){return nu.prototype.ui.call(this,t),this.suite.emit("pre-require",e,null,this),this},ru.setup=function(e){"string"==typeof e&&(e={ui:e}),!0===e.delay&&this.delay();var t=this;return Object.keys(e).filter((function(e){return"delay"!==e})).forEach((function(n){Object.prototype.hasOwnProperty.call(e,n)&&t[n](e[n])})),this},ru.run=function(t){var n=ru.options;ru.globals("location");var r=(e.location.search||"").replace("?","").split("&").reduce((function(e,t){var n=t.indexOf("="),r=t.slice(0,n),i=t.slice(n+1);return e[r]=decodeURIComponent(i.replace(/\+/g,"%20")),e}),{});return r.grep&&ru.grep(r.grep),r.fgrep&&ru.fgrep(r.fgrep),r.invert&&ru.invert(),nu.prototype.run.call(ru,(function(r){var i=e.document;i&&i.getElementById("mocha")&&!0!==n.noHighlighting&&yn("code"),t&&t(r)}))},nu.process=R,e.Mocha=nu,e.mocha=ru,["describe","context","it","specify","xdescribe","xcontext","xit","xspecify","before","beforeEach","afterEach","after"].forEach((function(t){ru[t]=e[t]})),ru}));const t="wds-import-map";let n=!1;const r=new URL(window.location.href).searchParams.get("wtr-test-file"),i=new URL(window.location.href).searchParams.get("wtr-session-id");if("string"!=typeof i&&"string"!=typeof r)throw new Error("Could not find any session id or test filequery parameter.");if(!window.__WTR_CONFIG__){const e="Could not find any config defined by the test runner. Are your dependencies up to date?";throw o({message:e}),new Error(e)}function o(e){return s({userAgent:window.navigator.userAgent,passed:!1,errors:[{name:e.name,message:e.message,stack:e.stack,expected:e.expected,actual:e.actual}]})}async function s(t){if(!i)return;if(n)return;n=!0;const o={logs:window.__wtr_browser_logs__?window.__wtr_browser_logs__.logs:[],errors:[],...t};await e({type:"wtr-session-finished",userAgent:window.navigator.userAgent,sessionId:i,testFile:r,result:o})}function a(e){const t=[];let n=!0;function r(e){var n,r;for(const i of e){const e=i.err;if("failed"===i.state||e)if(e){const i=null!==(r=null===(n=e.stack)||void 0===n?void 0:n.split("\n"))&&void 0!==r?r:[];t.push({name:e.name,message:e.message,stack:i.join("\n")})}else t.push({message:"Unknown error in mocha hook"})}}const i=function e(t){r(t._beforeAll),r(t._afterAll),r(t._beforeEach),r(t._afterEach);const i=t.suites.map((t=>e(t))),o=function(e){const t=[];for(const r of e){r.isPassed()||r.isPending()||(n=!1);const e=r.err;t.push({name:r.title,passed:r.isPassed(),skipped:r.isPending(),...void 0!==r.duration&&{duration:r.duration},error:e?{name:e.name,message:e.message,stack:e.stack,expected:e.expected,actual:e.actual}:void 0})}return t}(t.tests);return{name:t.title,suites:i,tests:o}}(e.suite);return{testResults:i,hookErrors:t,passed:n}}const u="\n @charset \"utf-8\";\n\n body {\n margin:0;\n }\n\n #mocha {\n font: 20px/1.5 \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n margin: 60px 50px;\n }\n\n #mocha ul,\n #mocha li {\n margin: 0;\n padding: 0;\n }\n\n #mocha ul {\n list-style: none;\n }\n\n #mocha h1,\n #mocha h2 {\n margin: 0;\n }\n\n #mocha h1 {\n margin-top: 15px;\n font-size: 1em;\n font-weight: 200;\n }\n\n #mocha h1 a {\n text-decoration: none;\n color: inherit;\n }\n\n #mocha h1 a:hover {\n text-decoration: underline;\n }\n\n #mocha .suite .suite h1 {\n margin-top: 0;\n font-size: .8em;\n }\n\n #mocha .hidden {\n display: none;\n }\n\n #mocha h2 {\n font-size: 12px;\n font-weight: normal;\n cursor: pointer;\n }\n\n #mocha .suite {\n margin-left: 15px;\n }\n\n #mocha .test {\n margin-left: 15px;\n overflow: hidden;\n }\n\n #mocha .test.pending:hover h2::after {\n content: '(pending)';\n font-family: arial, sans-serif;\n }\n\n #mocha .test.pass.medium .duration {\n background: #c09853;\n }\n\n #mocha .test.pass.slow .duration {\n background: #b94a48;\n }\n\n #mocha .test.pass::before {\n content: '✓';\n font-size: 12px;\n display: block;\n float: left;\n margin-right: 5px;\n color: #00d6b2;\n }\n\n #mocha .test.pass .duration {\n font-size: 9px;\n margin-left: 5px;\n padding: 2px 5px;\n color: #fff;\n -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.2);\n -moz-box-shadow: inset 0 1px 1px rgba(0,0,0,.2);\n box-shadow: inset 0 1px 1px rgba(0,0,0,.2);\n -webkit-border-radius: 5px;\n -moz-border-radius: 5px;\n -ms-border-radius: 5px;\n -o-border-radius: 5px;\n border-radius: 5px;\n }\n\n #mocha .test.pass.fast .duration {\n display: none;\n }\n\n #mocha .test.pending {\n color: #0b97c4;\n }\n\n #mocha .test.pending::before {\n content: '◦';\n color: #0b97c4;\n }\n\n #mocha .test.fail {\n color: #c00;\n }\n\n #mocha .test.fail pre {\n color: black;\n }\n\n #mocha .test.fail::before {\n content: '✖';\n font-size: 12px;\n display: block;\n float: left;\n margin-right: 5px;\n color: #c00;\n }\n\n #mocha .test pre.error {\n color: #c00;\n max-height: 300px;\n overflow: auto;\n }\n\n #mocha .test .html-error {\n overflow: auto;\n color: black;\n display: block;\n float: left;\n clear: left;\n font: 12px/1.5 monaco, monospace;\n margin: 5px;\n padding: 15px;\n border: 1px solid #eee;\n max-width: 85%; /*(1)*/\n max-width: -webkit-calc(100% - 42px);\n max-width: -moz-calc(100% - 42px);\n max-width: calc(100% - 42px); /*(2)*/\n max-height: 300px;\n word-wrap: break-word;\n border-bottom-color: #ddd;\n -webkit-box-shadow: 0 1px 3px #eee;\n -moz-box-shadow: 0 1px 3px #eee;\n box-shadow: 0 1px 3px #eee;\n -webkit-border-radius: 3px;\n -moz-border-radius: 3px;\n border-radius: 3px;\n }\n\n #mocha .test .html-error pre.error {\n border: none;\n -webkit-border-radius: 0;\n -moz-border-radius: 0;\n border-radius: 0;\n -webkit-box-shadow: 0;\n -moz-box-shadow: 0;\n box-shadow: 0;\n padding: 0;\n margin: 0;\n margin-top: 18px;\n max-height: none;\n }\n\n /**\n * (1): approximate for browsers not supporting calc\n * (2): 42 = 2*15 + 2*10 + 2*1 (padding + margin + border)\n * ^^ seriously\n */\n #mocha .test pre {\n display: block;\n float: left;\n clear: left;\n font: 12px/1.5 monaco, monospace;\n margin: 5px;\n padding: 15px;\n border: 1px solid #eee;\n max-width: 85%; /*(1)*/\n max-width: -webkit-calc(100% - 42px);\n max-width: -moz-calc(100% - 42px);\n max-width: calc(100% - 42px); /*(2)*/\n word-wrap: break-word;\n border-bottom-color: #ddd;\n -webkit-box-shadow: 0 1px 3px #eee;\n -moz-box-shadow: 0 1px 3px #eee;\n box-shadow: 0 1px 3px #eee;\n -webkit-border-radius: 3px;\n -moz-border-radius: 3px;\n border-radius: 3px;\n }\n\n #mocha .test h2 {\n position: relative;\n }\n\n #mocha .test a.replay {\n position: absolute;\n top: 3px;\n right: 0;\n text-decoration: none;\n vertical-align: middle;\n display: block;\n width: 15px;\n height: 15px;\n line-height: 15px;\n text-align: center;\n background: #eee;\n font-size: 15px;\n -webkit-border-radius: 15px;\n -moz-border-radius: 15px;\n border-radius: 15px;\n -webkit-transition:opacity 200ms;\n -moz-transition:opacity 200ms;\n -o-transition:opacity 200ms;\n transition: opacity 200ms;\n opacity: 0.3;\n color: #888;\n }\n\n #mocha .test:hover a.replay {\n opacity: 1;\n }\n\n #mocha-report.pass .test.fail {\n display: none;\n }\n\n #mocha-report.fail .test.pass {\n display: none;\n }\n\n #mocha-report.pending .test.pass,\n #mocha-report.pending .test.fail {\n display: none;\n }\n #mocha-report.pending .test.pass.pending {\n display: block;\n }\n\n #mocha-error {\n color: #c00;\n font-size: 1.5em;\n font-weight: 100;\n letter-spacing: 1px;\n }\n\n #mocha-stats {\n position: fixed;\n top: 15px;\n right: 10px;\n font-size: 12px;\n margin: 0;\n color: #888;\n z-index: 1;\n }\n\n #mocha-stats .progress {\n float: right;\n padding-top: 0;\n\n /**\n * Set safe initial values, so mochas .progress does not inherit these\n * properties from Bootstrap .progress (which causes .progress height to\n * equal line height set in Bootstrap).\n */\n height: auto;\n -webkit-box-shadow: none;\n -moz-box-shadow: none;\n box-shadow: none;\n background-color: initial;\n }\n\n #mocha-stats em {\n color: black;\n }\n\n #mocha-stats a {\n text-decoration: none;\n color: inherit;\n }\n\n #mocha-stats a:hover {\n border-bottom: 1px solid #eee;\n }\n\n #mocha-stats li {\n display: inline-block;\n margin: 0 5px;\n list-style: none;\n padding-top: 11px;\n }\n\n #mocha-stats canvas {\n width: 40px;\n height: 40px;\n }\n\n #mocha code .comment { color: #ddd; }\n #mocha code .init { color: #2f6fad; }\n #mocha code .string { color: #5890ad; }\n #mocha code .keyword { color: #8a6343; }\n #mocha code .number { color: #2f6fad; }\n\n @media screen and (max-device-width: 480px) {\n #mocha {\n margin: 60px 0px;\n }\n\n #mocha #stats {\n position: absolute;\n }\n }\n",l=window.mocha,c=window.Mocha;class f extends c.reporters.Base{}const h=window.mocha;async function d(e){const{debug:n,testFrameworkConfig:r}=await async function(){try{const e=window.__WTR_CONFIG__,n=new URL(import.meta.url).searchParams.get(t);if(null==n)return e;const r=e.testFile.includes("?")?"&":"?";return{...e,testFile:`${e.testFile}${r}${t}=${n}`}}catch(e){throw await o({name:e?e.name:void 0,message:`Failed to fetch test config: ${e?e.message:"Unknown error"}`,stack:e?e.stack:void 0}),e}}();!function(e,t){const n={ui:"bdd",allowUncaught:!1,reporter:"spec",..."object"==typeof t?t:{}};if("html"===n.reporter){const e=document.createElement("div");e.id="mocha",document.body.appendChild(e);const t=document.createElement("style");t.appendChild(document.createTextNode(u)),document.head.appendChild(t)}else e||(n.reporter=f);l.setup(n)}(n,r);try{await e()}catch(e){return void o(e)}const i=h.run(p);window.__WTR_MOCHA_RUNNER__=i}function p(){setTimeout((()=>{const{testResults:e,hookErrors:t,passed:n}=a(h);s({passed:0===t.length&&n,errors:t,testResults:e})}))}!async function(){i&&await e({type:"wtr-session-started",sessionId:i,testFile:r})}();export{h as mocha,d as runTests,o as sessionFailed,p as sessionFinished};
|