2 lines
268 KiB
JavaScript
Executable File
2 lines
268 KiB
JavaScript
Executable File
/*! For license information please see Protobuf.js.LICENSE.txt */
|
||
(()=>{var e={67526(e,t){"use strict";t.toByteArray=function(e){var t,r,o=function(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}(e),s=o[0],a=o[1],u=new i(function(e,t,r){return 3*(t+r)/4-r}(0,s,a)),f=0,l=a>0?s-4:s;for(r=0;r<l;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],u[f++]=t>>16&255,u[f++]=t>>8&255,u[f++]=255&t;return 2===a&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,u[f++]=255&t),1===a&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,u[f++]=t>>8&255,u[f++]=255&t),u},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],s=16383,a=0,f=n-i;a<f;a+=s)o.push(u(e,a,a+s>f?f:a+s));return 1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),o.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0;s<64;++s)r[s]=o[s],n[o.charCodeAt(s)]=s;function a(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function u(e,t,r){for(var n,i=[],o=t;o<r;o+=3)n=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),i.push(a(n));return i.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},48287(e,t,r){"use strict";const n=r(67526),i=r(251),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=u,t.INSPECT_MAX_BYTES=50;const s=2147483647;function a(e){if(e>s)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,u.prototype),t}function u(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return c(e)}return f(e,t,r)}function f(e,t,r){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const r=0|y(e,t);let n=a(r);const i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(W(e,Uint8Array)){const t=new Uint8Array(e);return p(t.buffer,t.byteOffset,t.byteLength)}return h(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(W(e,ArrayBuffer)||e&&W(e.buffer,ArrayBuffer))return p(e,t,r);if("undefined"!=typeof SharedArrayBuffer&&(W(e,SharedArrayBuffer)||e&&W(e.buffer,SharedArrayBuffer)))return p(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return u.from(n,t,r);const i=function(e){if(u.isBuffer(e)){const t=0|d(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||Z(e.length)?a(0):h(e):"Buffer"===e.type&&Array.isArray(e.data)?h(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return u.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return l(e),a(e<0?0:0|d(e))}function h(e){const t=e.length<0?0:0|d(e.length),r=a(t);for(let n=0;n<t;n+=1)r[n]=255&e[n];return r}function p(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),Object.setPrototypeOf(n,u.prototype),n}function d(e){if(e>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|e}function y(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||W(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return G(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return H(e).length;default:if(i)return n?-1:G(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,r){let 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 I(this,t,r);case"utf8":case"utf-8":return O(this,t,r);case"ascii":return k(this,t,r);case"latin1":case"binary":return T(this,t,r);case"base64":return F(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function v(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function g(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),Z(r=+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=u.from(t,n)),u.isBuffer(t))return 0===t.length?-1:b(e,t,r,n,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):b(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function b(e,t,r,n,i){let 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 f(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){let n=-1;for(o=r;o<a;o++)if(f(e,o)===f(t,-1===n?0:o-n)){if(-1===n&&(n=o),o-n+1===u)return n*s}else-1!==n&&(o-=o-n),n=-1}else for(r+u>a&&(r=a-u),o=r;o>=0;o--){let r=!0;for(let n=0;n<u;n++)if(f(e,o+n)!==f(t,n)){r=!1;break}if(r)return o}return-1}function w(e,t,r,n){r=Number(r)||0;const i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;const o=t.length;let s;for(n>o/2&&(n=o/2),s=0;s<n;++s){const n=parseInt(t.substr(2*s,2),16);if(Z(n))return s;e[r+s]=n}return s}function x(e,t,r,n){return Y(G(t,e.length-r),e,r,n)}function A(e,t,r,n){return Y(function(e){const t=[];for(let r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function B(e,t,r,n){return Y(H(t),e,r,n)}function E(e,t,r,n){return Y(function(e,t){let r,n,i;const o=[];for(let s=0;s<e.length&&!((t-=2)<0);++s)r=e.charCodeAt(s),n=r>>8,i=r%256,o.push(i),o.push(n);return o}(t,e.length-r),e,r,n)}function F(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function O(e,t,r){r=Math.min(e.length,r);const n=[];let i=t;for(;i<r;){const t=e[i];let o=null,s=t>239?4:t>223?3:t>191?2:1;if(i+s<=r){let r,n,a,u;switch(s){case 1:t<128&&(o=t);break;case 2:r=e[i+1],128==(192&r)&&(u=(31&t)<<6|63&r,u>127&&(o=u));break;case 3:r=e[i+1],n=e[i+2],128==(192&r)&&128==(192&n)&&(u=(15&t)<<12|(63&r)<<6|63&n,u>2047&&(u<55296||u>57343)&&(o=u));break;case 4:r=e[i+1],n=e[i+2],a=e[i+3],128==(192&r)&&128==(192&n)&&128==(192&a)&&(u=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&a,u>65535&&u<1114112&&(o=u))}}null===o?(o=65533,s=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),i+=s}return function(e){const t=e.length;if(t<=_)return String.fromCharCode.apply(String,e);let r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=_));return r}(n)}u.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),u.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(e,t,r){return f(e,t,r)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(e,t,r){return function(e,t,r){return l(e),e<=0?a(e):void 0!==t?"string"==typeof r?a(e).fill(t,r):a(e).fill(t):a(e)}(e,t,r)},u.allocUnsafe=function(e){return c(e)},u.allocUnsafeSlow=function(e){return c(e)},u.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==u.prototype},u.compare=function(e,t){if(W(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),W(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let 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},u.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}},u.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);let r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;const n=u.allocUnsafe(t);let i=0;for(r=0;r<e.length;++r){let t=e[r];if(W(t,Uint8Array))i+t.length>n.length?(u.isBuffer(t)||(t=u.from(t)),t.copy(n,i)):Uint8Array.prototype.set.call(n,t,i);else{if(!u.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(n,i)}i+=t.length}return n},u.byteLength=y,u.prototype._isBuffer=!0,u.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)v(this,t,t+1);return this},u.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},u.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},u.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?O(this,0,e):m.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){let e="";const r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},o&&(u.prototype[o]=u.prototype.inspect),u.prototype.compare=function(e,t,r,n,i){if(W(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===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;let o=(i>>>=0)-(n>>>=0),s=(r>>>=0)-(t>>>=0);const a=Math.min(o,s),f=this.slice(n,i),l=e.slice(t,r);for(let e=0;e<a;++e)if(f[e]!==l[e]){o=f[e],s=l[e];break}return o<s?-1:s<o?1:0},u.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},u.prototype.indexOf=function(e,t,r){return g(this,e,t,r,!0)},u.prototype.lastIndexOf=function(e,t,r){return g(this,e,t,r,!1)},u.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)}const 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");let o=!1;for(;;)switch(n){case"hex":return w(this,e,t,r);case"utf8":case"utf-8":return x(this,e,t,r);case"ascii":case"latin1":case"binary":return A(this,e,t,r);case"base64":return B(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const _=4096;function k(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function T(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function I(e,t,r){const n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let i="";for(let n=t;n<r;++n)i+=X[e[n]];return i}function S(e,t,r){const n=e.slice(t,r);let i="";for(let e=0;e<n.length-1;e+=2)i+=String.fromCharCode(n[e]+256*n[e+1]);return i}function j(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function N(e,t,r,n,i,o){if(!u.isBuffer(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 R(e,t,r,n,i){q(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,r}function C(e,t,r,n,i){q(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r+7]=o,o>>=8,e[r+6]=o,o>>=8,e[r+5]=o,o>>=8,e[r+4]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=s,s>>=8,e[r+2]=s,s>>=8,e[r+1]=s,s>>=8,e[r]=s,r+8}function L(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 P(e,t,r,n,o){return t=+t,r>>>=0,o||L(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function D(e,t,r,n,o){return t=+t,r>>>=0,o||L(e,0,r,8),i.write(e,t,r,n,52,8),r+8}u.prototype.slice=function(e,t){const r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);const n=this.subarray(e,t);return Object.setPrototypeOf(n,u.prototype),n},u.prototype.readUintLE=u.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||j(e,t,this.length);let n=this[e],i=1,o=0;for(;++o<t&&(i*=256);)n+=this[e+o]*i;return n},u.prototype.readUintBE=u.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||j(e,t,this.length);let n=this[e+--t],i=1;for(;t>0&&(i*=256);)n+=this[e+--t]*i;return n},u.prototype.readUint8=u.prototype.readUInt8=function(e,t){return e>>>=0,t||j(e,1,this.length),this[e]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(e,t){return e>>>=0,t||j(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(e,t){return e>>>=0,t||j(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(e,t){return e>>>=0,t||j(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(e,t){return e>>>=0,t||j(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readBigUInt64LE=K(function(e){V(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||z(e,this.length-8);const n=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+r*2**24;return BigInt(n)+(BigInt(i)<<BigInt(32))}),u.prototype.readBigUInt64BE=K(function(e){V(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||z(e,this.length-8);const n=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<<BigInt(32))+BigInt(i)}),u.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||j(e,t,this.length);let n=this[e],i=1,o=0;for(;++o<t&&(i*=256);)n+=this[e+o]*i;return i*=128,n>=i&&(n-=Math.pow(2,8*t)),n},u.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||j(e,t,this.length);let n=t,i=1,o=this[e+--n];for(;n>0&&(i*=256);)o+=this[e+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return e>>>=0,t||j(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){e>>>=0,t||j(e,2,this.length);const r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(e,t){e>>>=0,t||j(e,2,this.length);const r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(e,t){return e>>>=0,t||j(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return e>>>=0,t||j(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readBigInt64LE=K(function(e){V(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||z(e,this.length-8);const n=this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24);return(BigInt(n)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)}),u.prototype.readBigInt64BE=K(function(e){V(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||z(e,this.length-8);const n=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(n)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+r)}),u.prototype.readFloatLE=function(e,t){return e>>>=0,t||j(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return e>>>=0,t||j(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return e>>>=0,t||j(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return e>>>=0,t||j(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||N(this,e,t,r,Math.pow(2,8*r)-1,0);let i=1,o=0;for(this[t]=255&e;++o<r&&(i*=256);)this[t+o]=e/i&255;return t+r},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||N(this,e,t,r,Math.pow(2,8*r)-1,0);let i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},u.prototype.writeUint8=u.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,1,255,0),this[t]=255&e,t+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeBigUInt64LE=K(function(e,t=0){return R(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeBigUInt64BE=K(function(e,t=0){return C(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);N(this,e,t,r,n-1,-n)}let i=0,o=1,s=0;for(this[t]=255&e;++i<r&&(o*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/o|0)-s&255;return t+r},u.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);N(this,e,t,r,n-1,-n)}let i=r-1,o=1,s=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/o|0)-s&255;return t+r},u.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},u.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeBigInt64LE=K(function(e,t=0){return R(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeBigInt64BE=K(function(e,t=0){return C(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeFloatLE=function(e,t,r){return P(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return P(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return D(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return D(this,e,t,!1,r)},u.prototype.copy=function(e,t,r,n){if(!u.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);const i=n-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),i},u.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!u.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){const t=e.charCodeAt(0);("utf8"===n&&t<128||"latin1"===n)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;let i;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{const o=u.isBuffer(e)?e:u.from(e,n),s=o.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=o[i%s]}return this};const U={};function M(e,t,r){U[e]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function $(e){let t="",r=e.length;const n="-"===e[0]?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function q(e,t,r,n,i,o){if(e>r||e<t){const n="bigint"==typeof t?"n":"";let i;throw i=o>3?0===t||t===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(o+1)}${n}`:`>= -(2${n} ** ${8*(o+1)-1}${n}) and < 2 ** ${8*(o+1)-1}${n}`:`>= ${t}${n} and <= ${r}${n}`,new U.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,r){V(t,"offset"),void 0!==e[t]&&void 0!==e[t+r]||z(t,e.length-(r+1))}(n,i,o)}function V(e,t){if("number"!=typeof e)throw new U.ERR_INVALID_ARG_TYPE(t,"number",e)}function z(e,t,r){if(Math.floor(e)!==e)throw V(e,r),new U.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new U.ERR_BUFFER_OUT_OF_BOUNDS;throw new U.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}M("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),M("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),M("ERR_OUT_OF_RANGE",function(e,t,r){let n=`The value of "${e}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>2**32?i=$(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=$(i)),i+="n"),n+=` It must be ${t}. Received ${i}`,n},RangeError);const J=/[^+/0-9A-Za-z-_]/g;function G(e,t){let r;t=t||1/0;const n=e.length;let i=null;const o=[];for(let s=0;s<n;++s){if(r=e.charCodeAt(s),r>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 H(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(J,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Y(e,t,r,n){let i;for(i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function W(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Z(e){return e!=e}const X=function(){const e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){const n=16*r;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function K(e){return"undefined"==typeof BigInt?Q:e}function Q(){throw new Error("BigInt not supported")}},251(e,t){t.read=function(e,t,r,n,i){var o,s,a=8*i-n-1,u=(1<<a)-1,f=u>>1,l=-7,c=r?i-1:0,h=r?-1:1,p=e[t+c];for(c+=h,o=p&(1<<-l)-1,p>>=-l,l+=a;l>0;o=256*o+e[t+c],c+=h,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=n;l>0;s=256*s+e[t+c],c+=h,l-=8);if(0===o)o=1-f;else{if(o===u)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,n),o-=f}return(p?-1:1)*s*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var s,a,u,f=8*o-i-1,l=(1<<f)-1,c=l>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:o-1,d=n?1:-1,y=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=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),(t+=s+c>=1?h/u:h*Math.pow(2,1-c))*u>=2&&(s++,u/=2),s+c>=l?(a=0,s=l):s+c>=1?(a=(t*u-1)*Math.pow(2,i),s+=c):(a=t*Math.pow(2,c-1)*Math.pow(2,i),s=0));i>=8;e[r+p]=255&a,p+=d,a/=256,i-=8);for(s=s<<i|a,f+=i;f>0;e[r+p]=255&s,p+=d,s/=256,f-=8);e[r+p-d]|=128*y}},73065(e,t,r){var n,i;!function(){"use strict";n=function(){var e=function(){},t="undefined",r=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),n=["trace","debug","info","warn","error"],i={},o=null;function s(e,t){var r=e[t];if("function"==typeof r.bind)return r.bind(e);try{return Function.prototype.bind.call(r,e)}catch(t){return function(){return Function.prototype.apply.apply(r,[e,arguments])}}}function a(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function u(){for(var r=this.getLevel(),i=0;i<n.length;i++){var o=n[i];this[o]=i<r?e:this.methodFactory(o,r,this.name)}if(this.log=this.debug,typeof console===t&&r<this.levels.SILENT)return"No console available for logging"}function f(e){return function(){typeof console!==t&&(u.call(this),this[e].apply(this,arguments))}}function l(n,i,o){return function(n){return"debug"===n&&(n="log"),typeof console!==t&&("trace"===n&&r?a:void 0!==console[n]?s(console,n):void 0!==console.log?s(console,"log"):e)}(n)||f.apply(this,arguments)}function c(e,r){var s,a,f,c=this,h="loglevel";function p(){var e;if(typeof window!==t&&h){try{e=window.localStorage[h]}catch(e){}if(typeof e===t)try{var r=window.document.cookie,n=encodeURIComponent(h),i=r.indexOf(n+"=");-1!==i&&(e=/^([^;]+)/.exec(r.slice(i+n.length+1))[1])}catch(e){}return void 0===c.levels[e]&&(e=void 0),e}}function d(e){var t=e;if("string"==typeof t&&void 0!==c.levels[t.toUpperCase()]&&(t=c.levels[t.toUpperCase()]),"number"==typeof t&&t>=0&&t<=c.levels.SILENT)return t;throw new TypeError("log.setLevel() called with invalid level: "+e)}"string"==typeof e?h+=":"+e:"symbol"==typeof e&&(h=void 0),c.name=e,c.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},c.methodFactory=r||l,c.getLevel=function(){return null!=f?f:null!=a?a:s},c.setLevel=function(e,r){return f=d(e),!1!==r&&function(e){var r=(n[e]||"silent").toUpperCase();if(typeof window!==t&&h){try{return void(window.localStorage[h]=r)}catch(e){}try{window.document.cookie=encodeURIComponent(h)+"="+r+";"}catch(e){}}}(f),u.call(c)},c.setDefaultLevel=function(e){a=d(e),p()||c.setLevel(e,!1)},c.resetLevel=function(){f=null,function(){if(typeof window!==t&&h){try{window.localStorage.removeItem(h)}catch(e){}try{window.document.cookie=encodeURIComponent(h)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}}(),u.call(c)},c.enableAll=function(e){c.setLevel(c.levels.TRACE,e)},c.disableAll=function(e){c.setLevel(c.levels.SILENT,e)},c.rebuild=function(){if(o!==c&&(s=d(o.getLevel())),u.call(c),o===c)for(var e in i)i[e].rebuild()},s=d(o?o.getLevel():"WARN");var y=p();null!=y&&(f=d(y)),u.call(c)}(o=new c).getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=i[e];return t||(t=i[e]=new c(e,o.methodFactory)),t};var h=typeof window!==t?window.log:void 0;return o.noConflict=function(){return typeof window!==t&&window.log===o&&(window.log=h),o},o.getLoggers=function(){return i},o.default=o,o},void 0===(i=n.call(t,r,t,e))||(e.exports=i)}()},65606(e){var t,r,n=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(e){r=o}}();var a,u=[],f=!1,l=-1;function c(){f&&a&&(f=!1,a.length?u=a.concat(u):l=-1,u.length&&h())}function h(){if(!f){var e=s(c);f=!0;for(var t=u.length;t;){for(a=u,u=[];++l<t;)a&&a[l].run();l=-1,t=u.length}a=null,f=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function d(){}n.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];u.push(new p(e,t)),1!==u.length||f||s(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=d,n.addListener=d,n.once=d,n.off=d,n.removeListener=d,n.removeAllListeners=d,n.emit=d,n.prependListener=d,n.prependOnceListener=d,n.listeners=function(e){return[]},n.binding=function(e){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},90031(e,t){!function(e){var t,r,n,i=String.fromCharCode;function o(e){for(var t,r,n=[],i=0,o=e.length;i<o;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<o?56320==(64512&(r=e.charCodeAt(i++)))?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),i--):n.push(t);return n}function s(e){if(e>=55296&&e<=57343)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value")}function a(e,t){return i(e>>t&63|128)}function u(e){if(!(4294967168&e))return i(e);var t="";return 4294965248&e?4294901760&e?4292870144&e||(t=i(e>>18&7|240),t+=a(e,12),t+=a(e,6)):(s(e),t=i(e>>12&15|224),t+=a(e,6)):t=i(e>>6&31|192),t+i(63&e|128)}function f(){if(n>=r)throw Error("Invalid byte index");var e=255&t[n];if(n++,128==(192&e))return 63&e;throw Error("Invalid continuation byte")}function l(){var e,i;if(n>r)throw Error("Invalid byte index");if(n==r)return!1;if(e=255&t[n],n++,!(128&e))return e;if(192==(224&e)){if((i=(31&e)<<6|f())>=128)return i;throw Error("Invalid continuation byte")}if(224==(240&e)){if((i=(15&e)<<12|f()<<6|f())>=2048)return s(i),i;throw Error("Invalid continuation byte")}if(240==(248&e)&&(i=(7&e)<<18|f()<<12|f()<<6|f())>=65536&&i<=1114111)return i;throw Error("Invalid UTF-8 detected")}e.version="3.0.0",e.encode=function(e){for(var t=o(e),r=t.length,n=-1,i="";++n<r;)i+=u(t[n]);return i},e.decode=function(e){t=o(e),r=t.length,n=0;for(var s,a=[];!1!==(s=l());)a.push(s);return function(e){for(var t,r=e.length,n=-1,o="";++n<r;)(t=e[n])>65535&&(o+=i((t-=65536)>>>10&1023|55296),t=56320|1023&t),o+=i(t);return o}(a)}}(t)},73454(){},25172(e){e.exports=function(e,t){this.v=e,this.k=t},e.exports.__esModule=!0,e.exports.default=e.exports},16993(e,t,r){var n=r(75546);function i(){var t,r,o="function"==typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",a=o.toStringTag||"@@toStringTag";function u(e,i,o,s){var a=i&&i.prototype instanceof l?i:l,u=Object.create(a.prototype);return n(u,"_invoke",function(e,n,i){var o,s,a,u=0,l=i||[],c=!1,h={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,r){return o=e,s=0,a=t,h.n=r,f}};function p(e,n){for(s=e,a=n,r=0;!c&&u&&!i&&r<l.length;r++){var i,o=l[r],p=h.p,d=o[2];e>3?(i=d===n)&&(a=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=t):o[0]<=p&&((i=e<2&&p<o[1])?(s=0,h.v=n,h.n=o[1]):p<d&&(i=e<3||o[0]>n||n>d)&&(o[4]=e,o[5]=n,h.n=d,s=0))}if(i||e>1)return f;throw c=!0,n}return function(i,l,d){if(u>1)throw TypeError("Generator is already running");for(c&&1===l&&p(l,d),s=l,a=d;(r=s<2?t:a)||!c;){o||(s?s<3?(s>1&&(h.n=-1),p(s,a)):h.n=a:h.v=a);try{if(u=2,o){if(s||(i="next"),r=o[i]){if(!(r=r.call(o,a)))throw TypeError("iterator result is not an object");if(!r.done)return r;a=r.value,s<2&&(s=0)}else 1===s&&(r=o.return)&&r.call(o),s<2&&(a=TypeError("The iterator does not provide a '"+i+"' method"),s=1);o=t}else if((r=(c=h.n<0)?a:e.call(n,h))!==f)break}catch(e){o=t,s=1,a=e}finally{u=1}}return{value:r,done:c}}}(e,o,s),!0),u}var f={};function l(){}function c(){}function h(){}r=Object.getPrototypeOf;var p=[][s]?r(r([][s]())):(n(r={},s,function(){return this}),r),d=h.prototype=l.prototype=Object.create(p);function y(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,n(e,a,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=h,n(d,"constructor",h),n(h,"constructor",c),c.displayName="GeneratorFunction",n(h,a,"GeneratorFunction"),n(d),n(d,a,"Generator"),n(d,s,function(){return this}),n(d,"toString",function(){return"[object Generator]"}),(e.exports=i=function(){return{w:u,m:y}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},55869(e,t,r){var n=r(887);e.exports=function(e,t,r,i,o){var s=n(e,t,r,i,o);return s.next().then(function(e){return e.done?e.value:s.next()})},e.exports.__esModule=!0,e.exports.default=e.exports},887(e,t,r){var n=r(16993),i=r(11791);e.exports=function(e,t,r,o,s){return new i(n().w(e,t,r,o),s||Promise)},e.exports.__esModule=!0,e.exports.default=e.exports},11791(e,t,r){var n=r(25172),i=r(75546);e.exports=function e(t,r){function o(e,i,s,a){try{var u=t[e](i),f=u.value;return f instanceof n?r.resolve(f.v).then(function(e){o("next",e,s,a)},function(e){o("throw",e,s,a)}):r.resolve(f).then(function(e){u.value=e,s(u)},function(e){return o("throw",e,s,a)})}catch(e){a(e)}}var s;this.next||(i(e.prototype),i(e.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),i(this,"_invoke",function(e,t,n){function i(){return new r(function(t,r){o(e,n,t,r)})}return s=s?s.then(i,i):i()},!0)},e.exports.__esModule=!0,e.exports.default=e.exports},75546(e){function t(r,n,i,o){var s=Object.defineProperty;try{s({},"",{})}catch(r){s=0}e.exports=t=function(e,r,n,i){function o(r,n){t(e,r,function(e){return this._invoke(r,n,e)})}r?s?s(e,r,{value:n,enumerable:!i,configurable:!i,writable:!i}):e[r]=n:(o("next",0),o("throw",1),o("return",2))},e.exports.__esModule=!0,e.exports.default=e.exports,t(r,n,i,o)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},4373(e){e.exports=function(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function e(){for(;r.length;)if((n=r.pop())in t)return e.value=n,e.done=!1,e;return e.done=!0,e}},e.exports.__esModule=!0,e.exports.default=e.exports},4633(e,t,r){var n=r(25172),i=r(16993),o=r(55869),s=r(887),a=r(11791),u=r(4373),f=r(30579);function l(){"use strict";var t=i(),r=t.m(l),c=(Object.getPrototypeOf?Object.getPrototypeOf(r):r.__proto__).constructor;function h(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===c||"GeneratorFunction"===(t.displayName||t.name))}var p={throw:1,return:2,break:3,continue:3};function d(e){var t,r;return function(n){t||(t={stop:function(){return r(n.a,2)},catch:function(){return n.v},abrupt:function(e,t){return r(n.a,p[e],t)},delegateYield:function(e,i,o){return t.resultName=i,r(n.d,f(e),o)},finish:function(e){return r(n.f,e)}},r=function(e,r,i){n.p=t.prev,n.n=t.next;try{return e(r,i)}finally{t.next=n.n}}),t.resultName&&(t[t.resultName]=n.v,t.resultName=void 0),t.sent=n.v,t.next=n.n;try{return e.call(this,t)}finally{n.p=t.prev,n.n=t.next}}}return(e.exports=l=function(){return{wrap:function(e,r,n,i){return t.w(d(e),r,n,i&&i.reverse())},isGeneratorFunction:h,mark:t.m,awrap:function(e,t){return new n(e,t)},AsyncIterator:a,async:function(e,t,r,n,i){return(h(t)?s:o)(d(e),t,r,n,i)},keys:u,values:f}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=l,e.exports.__esModule=!0,e.exports.default=e.exports},30579(e,t,r){var n=r(73738).default;e.exports=function(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw new TypeError(n(e)+" is not iterable")},e.exports.__esModule=!0,e.exports.default=e.exports},73738(e){function t(r){return e.exports=t="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},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},54756(e,t,r){var n=r(4633)();e.exports=n;try{regeneratorRuntime=n}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},35017(e,t){var r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,r=function(){var e={};return function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=null;try{t=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch{}function r(e,t,r){this.low=0|e,this.high=0|t,this.unsigned=!!r}function n(e){return!0===(e&&e.__isLong__)}function i(e){var t=Math.clz32(e&-e);return e?31-t:t}r.prototype.__isLong__,Object.defineProperty(r.prototype,"__isLong__",{value:!0}),r.isLong=n;var o={},s={};function a(e,t){var r,n,i;return t?(i=0<=(e>>>=0)&&e<256)&&(n=s[e])?n:(r=f(e,0,!0),i&&(s[e]=r),r):(i=-128<=(e|=0)&&e<128)&&(n=o[e])?n:(r=f(e,e<0?-1:0,!1),i&&(o[e]=r),r)}function u(e,t){if(isNaN(e))return t?g:v;if(t){if(e<0)return g;if(e>=d)return B}else{if(e<=-y)return E;if(e+1>=y)return A}return e<0?u(-e,t).neg():f(e%p|0,e/p|0,t)}function f(e,t,n){return new r(e,t,n)}r.fromInt=a,r.fromNumber=u,r.fromBits=f;var l=Math.pow;function c(e,t,r){if(0===e.length)throw Error("empty string");if("number"==typeof t?(r=t,t=!1):t=!!t,"NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return t?g:v;if((r=r||10)<2||36<r)throw RangeError("radix");var n;if((n=e.indexOf("-"))>0)throw Error("interior hyphen");if(0===n)return c(e.substring(1),t,r).neg();for(var i=u(l(r,8)),o=v,s=0;s<e.length;s+=8){var a=Math.min(8,e.length-s),f=parseInt(e.substring(s,s+a),r);if(a<8){var h=u(l(r,a));o=o.mul(h).add(u(f))}else o=(o=o.mul(i)).add(u(f))}return o.unsigned=t,o}function h(e,t){return"number"==typeof e?u(e,t):"string"==typeof e?c(e,t):f(e.low,e.high,"boolean"==typeof t?t:e.unsigned)}r.fromString=c,r.fromValue=h;var p=4294967296,d=p*p,y=d/2,m=a(1<<24),v=a(0);r.ZERO=v;var g=a(0,!0);r.UZERO=g;var b=a(1);r.ONE=b;var w=a(1,!0);r.UONE=w;var x=a(-1);r.NEG_ONE=x;var A=f(-1,2147483647,!1);r.MAX_VALUE=A;var B=f(-1,-1,!0);r.MAX_UNSIGNED_VALUE=B;var E=f(0,-2147483648,!1);r.MIN_VALUE=E;var F=r.prototype;F.toInt=function(){return this.unsigned?this.low>>>0:this.low},F.toNumber=function(){return this.unsigned?(this.high>>>0)*p+(this.low>>>0):this.high*p+(this.low>>>0)},F.toString=function(e){if((e=e||10)<2||36<e)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(E)){var t=u(e),r=this.div(t),n=r.mul(t).sub(this);return r.toString(e)+n.toInt().toString(e)}return"-"+this.neg().toString(e)}for(var i=u(l(e,6),this.unsigned),o=this,s="";;){var a=o.div(i),f=(o.sub(a.mul(i)).toInt()>>>0).toString(e);if((o=a).isZero())return f+s;for(;f.length<6;)f="0"+f;s=""+f+s}},F.getHighBits=function(){return this.high},F.getHighBitsUnsigned=function(){return this.high>>>0},F.getLowBits=function(){return this.low},F.getLowBitsUnsigned=function(){return this.low>>>0},F.getNumBitsAbs=function(){if(this.isNegative())return this.eq(E)?64:this.neg().getNumBitsAbs();for(var e=0!=this.high?this.high:this.low,t=31;t>0&&!(e&1<<t);t--);return 0!=this.high?t+33:t+1},F.isSafeInteger=function(){var e=this.high>>21;return!e||!this.unsigned&&-1===e&&!(0===this.low&&-2097152===this.high)},F.isZero=function(){return 0===this.high&&0===this.low},F.eqz=F.isZero,F.isNegative=function(){return!this.unsigned&&this.high<0},F.isPositive=function(){return this.unsigned||this.high>=0},F.isOdd=function(){return!(1&~this.low)},F.isEven=function(){return!(1&this.low)},F.equals=function(e){return n(e)||(e=h(e)),(this.unsigned===e.unsigned||this.high>>>31!=1||e.high>>>31!=1)&&this.high===e.high&&this.low===e.low},F.eq=F.equals,F.notEquals=function(e){return!this.eq(e)},F.neq=F.notEquals,F.ne=F.notEquals,F.lessThan=function(e){return this.comp(e)<0},F.lt=F.lessThan,F.lessThanOrEqual=function(e){return this.comp(e)<=0},F.lte=F.lessThanOrEqual,F.le=F.lessThanOrEqual,F.greaterThan=function(e){return this.comp(e)>0},F.gt=F.greaterThan,F.greaterThanOrEqual=function(e){return this.comp(e)>=0},F.gte=F.greaterThanOrEqual,F.ge=F.greaterThanOrEqual,F.compare=function(e){if(n(e)||(e=h(e)),this.eq(e))return 0;var t=this.isNegative(),r=e.isNegative();return t&&!r?-1:!t&&r?1:this.unsigned?e.high>>>0>this.high>>>0||e.high===this.high&&e.low>>>0>this.low>>>0?-1:1:this.sub(e).isNegative()?-1:1},F.comp=F.compare,F.negate=function(){return!this.unsigned&&this.eq(E)?E:this.not().add(b)},F.neg=F.negate,F.add=function(e){n(e)||(e=h(e));var t=this.high>>>16,r=65535&this.high,i=this.low>>>16,o=65535&this.low,s=e.high>>>16,a=65535&e.high,u=e.low>>>16,l=0,c=0,p=0,d=0;return p+=(d+=o+(65535&e.low))>>>16,c+=(p+=i+u)>>>16,l+=(c+=r+a)>>>16,l+=t+s,f((p&=65535)<<16|(d&=65535),(l&=65535)<<16|(c&=65535),this.unsigned)},F.subtract=function(e){return n(e)||(e=h(e)),this.add(e.neg())},F.sub=F.subtract,F.multiply=function(e){if(this.isZero())return this;if(n(e)||(e=h(e)),t)return f(t.mul(this.low,this.high,e.low,e.high),t.get_high(),this.unsigned);if(e.isZero())return this.unsigned?g:v;if(this.eq(E))return e.isOdd()?E:v;if(e.eq(E))return this.isOdd()?E:v;if(this.isNegative())return e.isNegative()?this.neg().mul(e.neg()):this.neg().mul(e).neg();if(e.isNegative())return this.mul(e.neg()).neg();if(this.lt(m)&&e.lt(m))return u(this.toNumber()*e.toNumber(),this.unsigned);var r=this.high>>>16,i=65535&this.high,o=this.low>>>16,s=65535&this.low,a=e.high>>>16,l=65535&e.high,c=e.low>>>16,p=65535&e.low,d=0,y=0,b=0,w=0;return b+=(w+=s*p)>>>16,y+=(b+=o*p)>>>16,b&=65535,y+=(b+=s*c)>>>16,d+=(y+=i*p)>>>16,y&=65535,d+=(y+=o*c)>>>16,y&=65535,d+=(y+=s*l)>>>16,d+=r*p+i*c+o*l+s*a,f((b&=65535)<<16|(w&=65535),(d&=65535)<<16|(y&=65535),this.unsigned)},F.mul=F.multiply,F.divide=function(e){if(n(e)||(e=h(e)),e.isZero())throw Error("division by zero");var r,i,o;if(t)return this.unsigned||-2147483648!==this.high||-1!==e.low||-1!==e.high?f((this.unsigned?t.div_u:t.div_s)(this.low,this.high,e.low,e.high),t.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?g:v;if(this.unsigned){if(e.unsigned||(e=e.toUnsigned()),e.gt(this))return g;if(e.gt(this.shru(1)))return w;o=g}else{if(this.eq(E))return e.eq(b)||e.eq(x)?E:e.eq(E)?b:(r=this.shr(1).div(e).shl(1)).eq(v)?e.isNegative()?b:x:(i=this.sub(e.mul(r)),o=r.add(i.div(e)));if(e.eq(E))return this.unsigned?g:v;if(this.isNegative())return e.isNegative()?this.neg().div(e.neg()):this.neg().div(e).neg();if(e.isNegative())return this.div(e.neg()).neg();o=v}for(i=this;i.gte(e);){r=Math.max(1,Math.floor(i.toNumber()/e.toNumber()));for(var s=Math.ceil(Math.log(r)/Math.LN2),a=s<=48?1:l(2,s-48),c=u(r),p=c.mul(e);p.isNegative()||p.gt(i);)p=(c=u(r-=a,this.unsigned)).mul(e);c.isZero()&&(c=b),o=o.add(c),i=i.sub(p)}return o},F.div=F.divide,F.modulo=function(e){return n(e)||(e=h(e)),t?f((this.unsigned?t.rem_u:t.rem_s)(this.low,this.high,e.low,e.high),t.get_high(),this.unsigned):this.sub(this.div(e).mul(e))},F.mod=F.modulo,F.rem=F.modulo,F.not=function(){return f(~this.low,~this.high,this.unsigned)},F.countLeadingZeros=function(){return this.high?Math.clz32(this.high):Math.clz32(this.low)+32},F.clz=F.countLeadingZeros,F.countTrailingZeros=function(){return this.low?i(this.low):i(this.high)+32},F.ctz=F.countTrailingZeros,F.and=function(e){return n(e)||(e=h(e)),f(this.low&e.low,this.high&e.high,this.unsigned)},F.or=function(e){return n(e)||(e=h(e)),f(this.low|e.low,this.high|e.high,this.unsigned)},F.xor=function(e){return n(e)||(e=h(e)),f(this.low^e.low,this.high^e.high,this.unsigned)},F.shiftLeft=function(e){return n(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?f(this.low<<e,this.high<<e|this.low>>>32-e,this.unsigned):f(0,this.low<<e-32,this.unsigned)},F.shl=F.shiftLeft,F.shiftRight=function(e){return n(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?f(this.low>>>e|this.high<<32-e,this.high>>e,this.unsigned):f(this.high>>e-32,this.high>=0?0:-1,this.unsigned)},F.shr=F.shiftRight,F.shiftRightUnsigned=function(e){return n(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?f(this.low>>>e|this.high<<32-e,this.high>>>e,this.unsigned):f(32===e?this.high:this.high>>>e-32,0,this.unsigned)},F.shru=F.shiftRightUnsigned,F.shr_u=F.shiftRightUnsigned,F.rotateLeft=function(e){var t;return n(e)&&(e=e.toInt()),0==(e&=63)?this:32===e?f(this.high,this.low,this.unsigned):e<32?(t=32-e,f(this.low<<e|this.high>>>t,this.high<<e|this.low>>>t,this.unsigned)):(t=32-(e-=32),f(this.high<<e|this.low>>>t,this.low<<e|this.high>>>t,this.unsigned))},F.rotl=F.rotateLeft,F.rotateRight=function(e){var t;return n(e)&&(e=e.toInt()),0==(e&=63)?this:32===e?f(this.high,this.low,this.unsigned):e<32?(t=32-e,f(this.high<<t|this.low>>>e,this.low<<t|this.high>>>e,this.unsigned)):(t=32-(e-=32),f(this.low<<t|this.high>>>e,this.high<<t|this.low>>>e,this.unsigned))},F.rotr=F.rotateRight,F.toSigned=function(){return this.unsigned?f(this.low,this.high,!1):this},F.toUnsigned=function(){return this.unsigned?this:f(this.low,this.high,!0)},F.toBytes=function(e){return e?this.toBytesLE():this.toBytesBE()},F.toBytesLE=function(){var e=this.high,t=this.low;return[255&t,t>>>8&255,t>>>16&255,t>>>24,255&e,e>>>8&255,e>>>16&255,e>>>24]},F.toBytesBE=function(){var e=this.high,t=this.low;return[e>>>24,e>>>16&255,e>>>8&255,255&e,t>>>24,t>>>16&255,t>>>8&255,255&t]},r.fromBytes=function(e,t,n){return n?r.fromBytesLE(e,t):r.fromBytesBE(e,t)},r.fromBytesLE=function(e,t){return new r(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,t)},r.fromBytesBE=function(e,t){return new r(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],t)},"function"==typeof BigInt&&(r.fromBigInt=function(e,t){return f(Number(BigInt.asIntN(32,e)),Number(BigInt.asIntN(32,e>>BigInt(32))),t)},r.fromValue=function(e,t){return"bigint"==typeof e?r.fromBigInt(e,t):h(e,t)},F.toBigInt=function(){var e=BigInt(this.low>>>0);return BigInt(this.unsigned?this.high>>>0:this.high)<<BigInt(32)|e}),e.default=r}(e),function(e){return e.default||e}(e)}.apply(t,[]),void 0===r||(e.exports=r)},2370(e,t,r){"use strict";e.exports=r(62779)},56994(e){"use strict";e.exports=n;var t,r=/\/|\./;function n(e,t){r.test(e)||(e="google/protobuf/"+e+".proto",t={nested:{google:{nested:{protobuf:{nested:t}}}}}),n[e]=t}n("any",{Any:{fields:{type_url:{type:"string",id:1},value:{type:"bytes",id:2}}}}),n("duration",{Duration:t={fields:{seconds:{type:"int64",id:1},nanos:{type:"int32",id:2}}}}),n("timestamp",{Timestamp:t}),n("empty",{Empty:{fields:{}}}),n("struct",{Struct:{fields:{fields:{keyType:"string",type:"Value",id:1}}},Value:{oneofs:{kind:{oneof:["nullValue","numberValue","stringValue","boolValue","structValue","listValue"]}},fields:{nullValue:{type:"NullValue",id:1,protoName:"null_value"},numberValue:{type:"double",id:2,protoName:"number_value"},stringValue:{type:"string",id:3,protoName:"string_value"},boolValue:{type:"bool",id:4,protoName:"bool_value"},structValue:{type:"Struct",id:5,protoName:"struct_value"},listValue:{type:"ListValue",id:6,protoName:"list_value"}}},NullValue:{values:{NULL_VALUE:0}},ListValue:{fields:{values:{rule:"repeated",type:"Value",id:1}}}}),n("wrappers",{DoubleValue:{fields:{value:{type:"double",id:1}}},FloatValue:{fields:{value:{type:"float",id:1}}},Int64Value:{fields:{value:{type:"int64",id:1}}},UInt64Value:{fields:{value:{type:"uint64",id:1}}},Int32Value:{fields:{value:{type:"int32",id:1}}},UInt32Value:{fields:{value:{type:"uint32",id:1}}},BoolValue:{fields:{value:{type:"bool",id:1}}},StringValue:{fields:{value:{type:"string",id:1}}},BytesValue:{fields:{value:{type:"bytes",id:1}}}}),n("field_mask",{FieldMask:{fields:{paths:{rule:"repeated",type:"string",id:1}}}}),n.get=function(e){return n[e]||null}},62235(e,t,r){"use strict";var n=t,i=r(33990),o=r(69082),s=r(34595);function a(e,t,r,n,o){if(t.resolvedType)if(t.resolvedType instanceof i){var s=o?"m"+o+"[m"+o+".length]":"m"+n;e("switch(d%s){",n);for(var a=t.resolvedType.values,u=Object.keys(a),f=0;f<u.length;++f)e("case%j:",u[f])("case %i:",a[u[f]])("%s=%j",s,a[u[f]])("break");e("default:"),"CLOSED"!==t.resolvedType._features.enum_type&&e('if(typeof d%s==="number"&&(d%s|0)===d%s)',n,n,n)("%s=d%s",s,n),e("}")}else e("if(!util.isObject(d%s))",n)("throw TypeError(%j)",t.fullName+": object expected")("m%s=types[%i].fromObject(d%s,q+1)",n,r,n);else{var l=!1;switch(t.type){case"double":case"float":e("m%s=Number(d%s)",n,n);break;case"uint32":case"fixed32":e("m%s=d%s>>>0",n,n);break;case"int32":case"sint32":case"sfixed32":e("m%s=d%s|0",n,n);break;case"uint64":case"fixed64":l=!0;case"int64":case"sint64":case"sfixed64":e("if(util.Long)")("m%s=util.Long.fromValue(d%s,%j)",n,n,l)('else if(typeof d%s==="string")',n)("m%s=parseInt(d%s,10)",n,n)('else if(typeof d%s==="number")',n)("m%s=d%s",n,n)('else if(typeof d%s==="object")',n)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",n,n,n,l?"true":"");break;case"bytes":e('if(typeof d%s==="string")',n)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",n,n,n)("else if(d%s.length>=0)",n)("m%s=d%s",n,n);break;case"string":e("m%s=String(d%s)",n,n);break;case"bool":e("m%s=Boolean(d%s)",n,n)}}return e}function u(e,t,r,n,o){if(o||(o=n),t.resolvedType)t.resolvedType instanceof i?e("d%s=o.enums===String?(types[%i].values[m%s]===undefined?m%s:types[%i].values[m%s]):m%s",n,r,o,o,r,o,o):e("d%s=types[%i].toObject(m%s,o,q+1)",n,r,o);else{var s=!1;switch(t.type){case"double":case"float":e("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",n,o,o,o);break;case"uint64":case"fixed64":s=!0;case"int64":case"sint64":case"sfixed64":e('if(typeof BigInt!=="undefined"&&o.longs===BigInt)')('d%s=typeof m%s==="number"?BigInt(m%s):util.Long.fromBits(m%s.low>>>0,m%s.high>>>0,%j).toBigInt()',n,o,o,o,o,s)('else if(typeof m%s==="number")',o)("d%s=o.longs===String?String(m%s):m%s",n,o,o)("else")("d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s",n,o,o,o,s?"true":"",o);break;case"bytes":e("d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s",n,o,o,o,o);break;default:e("d%s=m%s",n,o)}}return e}n.fromObject=function(e){var t=e.fieldsArray,r=s.codegen(["d","q"])("if(d instanceof C)")("return d")("if(!util.isObject(d))")("throw TypeError(%j)",e.fullName+": object expected")("if(q===undefined)q=0")("if(q>util.recursionLimit)")('throw Error("max depth exceeded")');if(!t.length)return r("return new C");r("var m=new C");for(var n=0;n<t.length;++n){var u=t[n].resolve(),f=s.safeProp(u.name),l=!u.hasPresence&&!u.repeated&&!u.map&&(u.resolvedType instanceof i||void 0!==o.basic[u.type]);u.map?(r("if(d%s){",f)("if(!util.isObject(d%s))",f)("throw TypeError(%j)",u.fullName+": object expected")("m%s={}",f)("for(var ks=Object.keys(d%s),i=0;i<ks.length;++i){",f),r('if(ks[i]==="__proto__")')("util.makeProp(m%s,ks[i])",f),a(r,u,n,f+"[ks[i]]")("}")("}")):u.repeated?(r("if(d%s){",f)("if(!Array.isArray(d%s))",f)("throw TypeError(%j)",u.fullName+": array expected"),u.resolvedType instanceof i?r("m%s=[]",f):r("m%s=Array(d%s.length)",f,f),r("for(var i=0;i<d%s.length;++i){",f),a(r,u,n,f+"[i]",u.resolvedType instanceof i?f:void 0)("}")("}")):(u.resolvedType instanceof i||r("if(d%s!=null){",f),l&&(u.resolvedType instanceof i?r('if(d%s!==%j&&(typeof d%s!=="string"||types[%i].values[d%s]!==%j)){',f,u.typeDefault,f,n,f,u.typeDefault):"string"===u.type?r('if(typeof d%s!=="string"||d%s.length){',f,f):"bytes"===u.type?r("if(d%s.length){",f):"bool"===u.type?r("if(d%s){",f):"double"===u.type||"float"===u.type?r("if(!Object.is(Number(d%s),0)){",f):void 0!==o.long[u.type]?r('if(typeof d%s==="object"?d%s.low||d%s.high:Number(d%s)!==0){',f,f,f,f):r("if(Number(d%s)!==0){",f)),a(r,u,n,f),l&&r("}"),u.resolvedType instanceof i||r("}"))}return r("return m")},n.toObject=function(e){var t=e.fieldsArray.slice().sort(s.compareFieldsById);if(!t.length)return s.codegen()("return {}");for(var r=s.codegen(["m","o","q"])("if(!o)")("o={}")("if(q===undefined)q=0")("if(q>util.recursionLimit)")('throw Error("max depth exceeded")')("var d={}"),n=[],a=[],f=[],l=0;l<t.length;++l)t[l].partOf||(t[l].resolve().repeated?n:t[l].map?a:f).push(t[l]);if(n.length){for(r("if(o.arrays||o.defaults){"),l=0;l<n.length;++l)r("d%s=[]",s.safeProp(n[l].name));r("}")}if(a.length){for(r("if(o.objects||o.defaults){"),l=0;l<a.length;++l)r("d%s={}",s.safeProp(a[l].name));r("}")}if(f.length){for(r("if(o.defaults){"),l=0;l<f.length;++l){var c=f[l],h=s.safeProp(c.name);if(c.resolvedType instanceof i)r("d%s=o.enums===String?%j:%j",h,c.resolvedType.valuesById[c.typeDefault],c.typeDefault);else if(c.long)r("if(util.Long){")("var n=new util.Long(%i,%i,%j)",c.typeDefault.low,c.typeDefault.high,c.typeDefault.unsigned)('d%s=o.longs===String?n.toString():o.longs===Number?n.toNumber():typeof BigInt!=="undefined"&&o.longs===BigInt?n.toBigInt():n',h)("}else")('d%s=o.longs===String?%j:typeof BigInt!=="undefined"&&o.longs===BigInt?BigInt(%j):%i',h,c.typeDefault.toString(),c.typeDefault.toString(),c.typeDefault.toNumber());else if(c.bytes){var p=Array.prototype.slice.call(c.typeDefault);r("if(o.bytes===String)d%s=%j",h,s.base64.encode(c.typeDefault,0,c.typeDefault.length))("else{")("d%s=%j",h,p)("if(o.bytes!==Array)d%s=util.newBuffer(d%s)",h,h)("}")}else r("d%s=%j",h,c.typeDefault)}r("}")}var d=!1;for(l=0;l<t.length;++l){c=t[l];var y=e._fieldsArray.indexOf(c);if(h=s.safeProp(c.name),c.map){d||(d=!0,r("var ks2")),r("if(m%s&&(ks2=Object.keys(m%s)).length){",h,h)("d%s={}",h);var m=void 0!==o.long[c.keyType],v=h+"[ks2[j]]";r("for(var j=0;j<ks2.length;++j){"),m&&r("var k2=util.longFromKey(ks2[j],%j).toString()","uint64"===c.keyType||"fixed64"===c.keyType),r('if(ks2[j]==="__proto__")')("util.makeProp(d%s,ks2[j])",h),u(r,c,y,m?h+"[k2]":v,v)("}")}else c.repeated?(r("if(m%s&&m%s.length){",h,h)("d%s=Array(m%s.length)",h,h)("for(var j=0;j<m%s.length;++j){",h),u(r,c,y,h+"[j]")("}")):(r("if(m%s!=null&&Object.hasOwnProperty.call(m,%j)){",h,c.name),u(r,c,y,h),c.partOf&&!c.partOf.isProto3Optional&&r("if(o.oneofs)")("d%s=%j",s.safeProp(c.partOf.name),c.name));r("}")}return r("return d")}},22759(e,t,r){"use strict";e.exports=function(e){for(var t=!1,r=!1,f=0;f<e.fieldsArray.length;++f){var l=e._fieldsArray[f];l.map&&(t=!0),(l.resolvedType instanceof n||!l.repeated&&!l.map&&!l.hasPresence)&&(r=!0)}var c=o.codegen(["r","l","z","q","g"])("if(!(r instanceof Reader))")("r=Reader.create(r)")("if(q===undefined)q=0")("if(q>Reader.recursionLimit)")('throw Error("max depth exceeded")')("var c=l===undefined?r.len:r.pos+l,m=g||new C"+(t?",k,v":r?",v":""))("while(r.pos<c){")("var s=r.pos")("var t=r.tag()")("if(t===z){")("z=undefined")("break")("}");for(e.fieldsArray.length&&c("var u=t&7")("switch(t>>>=3){"),f=0;f<e.fieldsArray.length;++f){var h=e._fieldsArray[f].resolve(),p=h.resolvedType instanceof n?"int32":h.type,d="m"+o.safeProp(h.name),y=h.resolvedType instanceof n&&"CLOSED"===h.resolvedType._features.enum_type;if(h.map){c("case %i:{",h.id)("if(u!==2)")("break"),y||c("if(%s===util.emptyObject)",d)("%s={}",d),c("var c2=r.uint32()+r.pos"),void 0!==i.defaults[h.keyType]?c("k=%j",i.defaults[h.keyType]):c("k=null"),void 0!==i.long[p]?c("v=util.Long?util.Long.fromNumber(0,%j):0","uint64"===p||"fixed64"===p):void 0!==i.defaults[p]?c("v=%j",i.defaults[p]):c("v=null"),c("while(r.pos<c2){")("var t2=r.tag()")("u=t2&7")("switch(t2>>>=3){")("case 1:")("if(u!==%i)",i.mapKey[h.keyType])("break")("k=r.%s()","string"===h.keyType?a(h):h.keyType)("continue")("case 2:")("if(u!==%i)",void 0===i.basic[p]?2:i.basic[p])("break"),void 0===i.basic[p]?c("v=types[%i].decode(r,r.uint32(),undefined,q+1,v)",f):c("v=r.%s()","string"===p?a(h):p),c("continue")("}")("r.skipType(u,q,t2)")("}"),y&&(c("if(types[%i].valuesById[v]===undefined){",f),u(c,"r.raw(s,r.pos)")("continue")("}")("if(%s===util.emptyObject)",d)("%s={}",d));var m=void 0===i.basic[p]?"v||new types["+f+"].ctor":"v";void 0!==i.long[h.keyType]?c('%s[typeof k==="object"?util.longToHash(k):k]=%s',d,m):("string"===h.keyType&&c('if(k==="__proto__")')("util.makeProp(%s,k)",d),c("%s[k]=%s",d,m))}else h.repeated?(c("case %i:",h.id)("{"),void 0!==i.packed[p]&&(c("if(u===2){"),y?(c("var c2=r.uint32()+r.pos")("while(r.pos<c2){")("s=r.pos")("v=r.%s()",p)("if(types[%i].valuesById[v]!==undefined){",f)("if(!(%s&&%s.length))",d,d)("%s=[]",d)("%s.push(v)",d)("}else"),u(c,"util.rawField("+h.id+",0,r.raw(s,r.pos))")("}")):c("if(!(%s&&%s.length))",d,d)("%s=[]",d)("r.%ss(%s)",p,d),c("continue")("}")),c("if(u!==%i)",void 0===i.basic[p]?h.delimited?3:2:i.basic[p])("break"),y||c("if(!(%s&&%s.length))",d,d)("%s=[]",d),void 0===i.basic[p]?h.delimited?c("%s.push(types[%i].decode(r,undefined,%i,q+1))",d,f,8*h.id+4):c("%s.push(types[%i].decode(r,r.uint32(),undefined,q+1))",d,f):y?(c("v=r.%s()",p)("if(types[%i].valuesById[v]!==undefined){",f)("if(!(%s&&%s.length))",d,d)("%s=[]",d)("%s.push(v)",d)("}else"),u(c,"r.raw(s,r.pos)")):c("%s.push(r.%s())",d,"string"===p?a(h):p)):void 0===i.basic[p]?(c("case %i:{",h.id)("if(u!==%i)",h.delimited?3:2)("break"),h.delimited?c("%s=types[%i].decode(r,undefined,%i,q+1,%s)",d,f,8*h.id+4,d):c("%s=types[%i].decode(r,r.uint32(),undefined,q+1,%s)",d,f,d)):h.hasPresence?(c("case %i:{",h.id)("if(u!==%i)",i.basic[p])("break"),y?(c("v=r.%s()",p)("if(types[%i].valuesById[v]!==undefined){",f)("%s=v",d),h.partOf&&c("m%s=%j",o.safeProp(h.partOf.name),h.name),c("}else"),u(c,"r.raw(s,r.pos)")):c("%s=r.%s()",d,"string"===p?a(h):p)):(c("case %i:{",h.id)("if(u!==%i)",i.basic[p])("break"),y?(c("v=r.%s()",p)("if(types[%i].valuesById[v]!==undefined){",f)("if(v!==%j)",h.typeDefault)("%s=v",d)("else")("delete %s",d)("}else{"),u(c,"r.raw(s,r.pos)")("}")):(h.resolvedType instanceof n&&0!==h.typeDefault?c("if((v=r.%s())!==%j)",p,h.typeDefault):"string"===p?c("if((v=r.%s()).length)",a(h)):"bytes"===p?c("if((v=r.%s()).length)",p):void 0!==i.long[p]?c('if(typeof(v=r.%s())==="object"?v.low||v.high:v!==0)',p):c("double"===p||"float"===p?"if(!Object.is(v=r.%s(),0))":"if(v=r.%s())",p),c("%s=v",d)("else")("delete %s",d)));h.partOf&&!y&&c("m%s=%j",o.safeProp(h.partOf.name),h.name),c("continue")("}")}for(f&&c("}"),c("r.skipType(%s,q,t)",f?"u":"t&7"),u(c,"r.raw(s,r.pos)")("}")("if(z!==undefined)")('throw Error("missing end group")'),f=0;f<e._fieldsArray.length;++f){var v=e._fieldsArray[f];v.required&&c("if(!Object.hasOwnProperty.call(m,%j))",v.name)("throw util.ProtocolError(%j,{instance:m})",s(v))}return c("return m")};var n=r(33990),i=r(69082),o=r(34595);function s(e){return"missing required '"+e.name+"'"}function a(e){return"VERIFY"===e._features.utf8_validation?"stringVerify":"string"}function u(e,t){return e("if(!r.discardUnknown){")('util.makeProp(m,"$unknowns",false);')("(m.$unknowns||(m.$unknowns=[])).push(%s)",t)("}")}},65775(e,t,r){"use strict";e.exports=function(e){for(var t,r=o.codegen(["m","w","q"])("if(!w)")("w=Writer.create()")("if(q===undefined)q=0")("if(q>util.recursionLimit)")('throw Error("max depth exceeded")'),a=e.fieldsArray.slice().sort(o.compareFieldsById),u=0;u<a.length;++u){var f=a[u].resolve(),l=e._fieldsArray.indexOf(f),c=f.resolvedType instanceof n?"int32":f.type,h=i.basic[c];t="m"+o.safeProp(f.name),f.map?(r("if(%s!=null&&Object.hasOwnProperty.call(m,%j)){",t,f.name)("for(var ks=Object.keys(%s),i=0;i<ks.length;++i){",t),"bool"===f.keyType?r("w.uint32(%i).fork().uint32(%i).bool(util.boolFromKey(ks[i]))",(f.id<<3|2)>>>0,8|i.mapKey[f.keyType]):void 0!==i.long[f.keyType]?r("w.uint32(%i).fork().uint32(%i).%s(util.longFromKey(ks[i],%j))",(f.id<<3|2)>>>0,8|i.mapKey[f.keyType],f.keyType,"uint64"===f.keyType||"fixed64"===f.keyType):r("w.uint32(%i).fork().uint32(%i).%s(ks[i])",(f.id<<3|2)>>>0,8|i.mapKey[f.keyType],f.keyType),void 0===h?r("types[%i].encode(%s[ks[i]],w.uint32(18).fork(),q+1).ldelim().ldelim()",l,t):r(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|h,c,t),r("}")("}")):f.repeated?(r("if(%s!=null&&%s.length){",t,t),f.packed&&void 0!==i.packed[c]?r("w.uint32(%i).%ss(%s)",(f.id<<3|2)>>>0,c,t):(r("for(var i=0;i<%s.length;++i)",t),void 0===h?s(r,f,l,t+"[i]"):r("w.uint32(%i).%s(%s[i])",(f.id<<3|h)>>>0,c,t)),r("}")):(f.required||(f.hasPresence||!(f.resolvedType instanceof n||void 0!==i.basic[c])?r("if(%s!=null&&Object.hasOwnProperty.call(m,%j))",t,f.name):f.resolvedType instanceof n?r("if(%s!=null&&Object.hasOwnProperty.call(m,%j)&&%s!==%j)",t,f.name,t,f.typeDefault):"bool"===c?r("if(%s!=null&&Object.hasOwnProperty.call(m,%j)&&%s!==false)",t,f.name,t):"string"===c?r('if(%s!=null&&Object.hasOwnProperty.call(m,%j)&&%s!=="")',t,f.name,t):"bytes"===c?r("if(%s!=null&&Object.hasOwnProperty.call(m,%j)&&%s.length)",t,f.name,t):"double"===c||"float"===c?r("if(%s!=null&&Object.hasOwnProperty.call(m,%j)&&!Object.is(%s,0))",t,f.name,t):void 0!==i.long[c]?r('if(%s!=null&&Object.hasOwnProperty.call(m,%j)&&(typeof %s==="object"?%s.low||%s.high:%s!==0))',t,f.name,t,t,t,t):r("if(%s!=null&&Object.hasOwnProperty.call(m,%j)&&%s!==0)",t,f.name,t)),void 0===h?s(r,f,l,t):r("w.uint32(%i).%s(%s)",(f.id<<3|h)>>>0,c,t))}return r('if(m.$unknowns!=null&&Object.hasOwnProperty.call(m,"$unknowns"))')("for(var i=0;i<m.$unknowns.length;++i)")("w.raw(m.$unknowns[i])")("return w")};var n=r(33990),i=r(69082),o=r(34595);function s(e,t,r,n){return t.delimited?e("types[%i].encode(%s,w.uint32(%i),q+1).uint32(%i)",r,n,(t.id<<3|3)>>>0,(t.id<<3|4)>>>0):e("types[%i].encode(%s,w.uint32(%i).fork(),q+1).ldelim()",r,n,(t.id<<3|2)>>>0)}},33990(e,t,r){"use strict";e.exports=s;var n=r(15156);s.prototype=Object.create(n.prototype,{constructor:{value:s,writable:!0,enumerable:!1,configurable:!0}}),s.className="Enum";var i=r(20364),o=r(34595);function s(e,t,r,i,o,s){if(n.call(this,e,r),t&&"object"!=typeof t)throw TypeError("values must be an object");if(this.valuesById=Object.create(null),this.values=Object.create(this.valuesById),this.comment=i,this.comments=o||{},this.valuesOptions=s,this._valuesFeatures={},this.reserved=void 0,t)for(var a=Object.keys(t),u=0;u<a.length;++u)"__proto__"!==a[u]&&"number"==typeof t[a[u]]&&(this.valuesById[this.values[a[u]]=t[a[u]]]=a[u])}s.prototype._resolveFeatures=function(e){return e=this._edition||e,n.prototype._resolveFeatures.call(this,e),Object.keys(this.values).forEach(e=>{var t=o.merge({},this._features);this._valuesFeatures[e]=o.merge(t,this.valuesOptions&&this.valuesOptions[e]&&this.valuesOptions[e].features||{})}),this},s.fromJSON=function(e,t){var r=new s(e,t.values,t.options,t.comment,t.comments,t.valuesOptions);return r.reserved=t.reserved,t.edition&&(r._edition=t.edition),r._defaultEdition="proto3",r},s.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return o.toObject(["edition",this._editionToJSON(),"options",this.options,"valuesOptions",this.valuesOptions,"values",this.values,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"comment",t?this.comment:void 0,"comments",t?this.comments:void 0])},s.prototype.add=function(e,t,r,n){if(!o.isString(e))throw TypeError("name must be a string");if(!o.isInteger(t))throw TypeError("id must be an integer");if("__proto__"===e)return this;if(void 0!==this.values[e])throw Error("duplicate name '"+e+"' in "+this);if(this.isReservedId(t))throw Error("id "+t+" is reserved in "+this);if(this.isReservedName(e))throw Error("name '"+e+"' is reserved in "+this);if(void 0!==this.valuesById[t]){if(!this.options||!this.options.allow_alias)throw Error("duplicate id "+t+" in "+this);this.values[e]=t}else this.valuesById[this.values[e]=t]=e;return n&&(void 0===this.valuesOptions&&(this.valuesOptions={}),this.valuesOptions[e]=n||null),this.comments[e]=r||null,this},s.prototype.remove=function(e){if(!o.isString(e))throw TypeError("name must be a string");var t=this.values[e];if(null==t)throw Error("name '"+e+"' does not exist in "+this);return delete this.valuesById[t],delete this.values[e],delete this.comments[e],this.valuesOptions&&delete this.valuesOptions[e],this},s.prototype.isReservedId=function(e){return i.isReservedId(this.reserved,e)},s.prototype.isReservedName=function(e){return i.isReservedName(this.reserved,e)}},4083(e,t,r){"use strict";e.exports=f;var n=r(15156);f.prototype=Object.create(n.prototype,{constructor:{value:f,writable:!0,enumerable:!1,configurable:!0}}),f.className="Field";var i,o=r(33990),s=r(69082),a=r(34595),u=/^(?:required|optional|repeated)$/;function f(e,t,r,i,o,f,l){if(a.isObject(i)?(l=o,f=i,i=o=void 0):a.isObject(o)&&(l=f,f=o,o=void 0),n.call(this,e,f),!a.isInteger(t)||t<0)throw TypeError("id must be a non-negative integer");if(!a.isString(r))throw TypeError("type must be a string");if(void 0!==i&&!u.test(i=i.toString().toLowerCase()))throw TypeError("rule must be a string rule");if(void 0!==o&&!a.isString(o))throw TypeError("extend must be a string");this.rule=i&&"optional"!==i?i:void 0,this.type=r,this.id=t,this.extend=o||void 0,this.repeated="repeated"===i,this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=!!a.Long&&void 0!==s.long[r],this.bytes="bytes"===r,this.resolvedType=null,this.extensionField=null,this.declaringField=null,this.comment=l,this.protoName=void 0,this.jsonName=void 0}f.fromJSON=function(e,t){var r=new f(e,t.id,t.type,t.rule,t.extend,t.options,t.comment);return t.edition&&(r._edition=t.edition),t.protoName&&(r.protoName=t.protoName),void 0!==t.jsonName?r.jsonName=t.jsonName:t.options&&void 0!==t.options.json_name&&(r.jsonName=t.options.json_name),r._defaultEdition="proto3",r},Object.defineProperty(f.prototype,"required",{get:function(){return"LEGACY_REQUIRED"===this._features.field_presence}}),Object.defineProperty(f.prototype,"optional",{get:function(){return!this.required}}),Object.defineProperty(f.prototype,"delimited",{get:function(){return this.resolvedType instanceof i&&"DELIMITED"===this._features.message_encoding}}),Object.defineProperty(f.prototype,"packed",{get:function(){return"PACKED"===this._features.repeated_field_encoding}}),Object.defineProperty(f.prototype,"hasPresence",{get:function(){return!this.repeated&&!this.map&&(this.partOf||this.declaringField||this.extensionField||"IMPLICIT"!==this._features.field_presence)}}),f.prototype.setOption=function(e,t,r){return n.prototype.setOption.call(this,e,t,r)},f.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return a.toObject(["edition",this._editionToJSON(),"rule","optional"!==this.rule&&this.rule||void 0,"type",this.type,"id",this.id,"extend",this.extend,"protoName",this.protoName!==this.name?this.protoName:void 0,"jsonName",this.jsonName!==a.jsonName(this.protoName||this.name)?this.jsonName:void 0,"options",this.options,"comment",t?this.comment:void 0])},f.prototype.resolve=function(){if(this.resolved)return this;if(void 0===(this.typeDefault=s.defaults[this.type])?(this.resolvedType=(this.declaringField?this.declaringField.parent:this.parent).lookupTypeOrEnum(this.type),this.resolvedType instanceof i?this.typeDefault=null:this.typeDefault=this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]):this.options&&this.options.proto3_optional&&(this.typeDefault=null),this.options&&null!=this.options.default&&(this.typeDefault=this.options.default,this.resolvedType instanceof o&&"string"==typeof this.typeDefault&&(this.typeDefault=this.resolvedType.values[this.typeDefault])),this.options&&(void 0===this.options.packed||!this.resolvedType||this.resolvedType instanceof o||delete this.options.packed,Object.keys(this.options).length||(this.options=void 0)),this.long)this.typeDefault=a.Long.fromNumber(this.typeDefault,"uint64"===this.type||"fixed64"===this.type),Object.freeze&&Object.freeze(this.typeDefault);else if(this.bytes&&"string"==typeof this.typeDefault){var e;a.base64.test(this.typeDefault)?a.base64.decode(this.typeDefault,e=a.newBuffer(a.base64.length(this.typeDefault)),0):a.utf8.write(this.typeDefault,e=a.newBuffer(a.utf8.length(this.typeDefault)),0),this.typeDefault=e}return this.map?this.defaultValue=a.emptyObject:this.repeated?this.defaultValue=a.emptyArray:this.defaultValue=this.typeDefault,this.parent instanceof i&&this.parent._ctor&&(this.parent._ctor.prototype[this.name]=this.defaultValue),void 0===this.protoName&&(this.protoName=this.name),void 0===this.jsonName&&(this.jsonName=a.jsonName(this.protoName)),n.prototype.resolve.call(this)},f.prototype._inferLegacyProtoFeatures=function(e){if("proto2"!==e&&"proto3"!==e)return{};var t={};if("required"===this.rule&&(t.field_presence="LEGACY_REQUIRED"),this.parent&&void 0===s.defaults[this.type]){var r=this.parent.get(this.type.split(".").pop());r&&r instanceof i&&r.group&&(t.message_encoding="DELIMITED")}return!0===this.getOption("packed")?t.repeated_field_encoding="PACKED":!1===this.getOption("packed")&&(t.repeated_field_encoding="EXPANDED"),t},f.prototype._resolveFeatures=function(e){return n.prototype._resolveFeatures.call(this,this._edition||e)},f.d=function(e,t,r,n){return"function"==typeof t?t=a.decorateType(t).name:t&&"object"==typeof t&&(t=a.decorateEnum(t).name),function(i,o){a.decorateType(i.constructor).add(new f(o,e,t,r,{default:n}))}},f._configure=function(e){i=e}},85558(e,t,r){"use strict";(t=e.exports=r(65873)).build="light",t.load=function(e,r,n){return"function"==typeof r?(n=r,r=new t.Root):r||(r=new t.Root),r.load(e,n)},t.loadSync=function(e,r){return r||(r=new t.Root),r.loadSync(e)},t.encoder=r(65775),t.decoder=r(22759),t.verifier=r(8273),t.converter=r(62235),t.ReflectionObject=r(15156),t.Namespace=r(20364),t.Root=r(23079),t.Enum=r(33990),t.Type=r(57183),t.Field=r(4083),t.OneOf=r(80654),t.MapField=r(62485),t.Service=r(18368),t.Method=r(34426),t.Message=r(7652),t.wrappers=r(25855),t.types=r(69082),t.util=r(34595),t.ReflectionObject._configure(t.Root),t.Namespace._configure(t.Type,t.Service,t.Enum),t.Root._configure(t.Type,void 0,{}),t.Field._configure(t.Type)},65873(e,t,r){"use strict";function n(){t.util.LongBits._configure(t.util.Long),t.Writer._configure(t.BufferWriter),t.Reader._configure(t.BufferReader)}t.build="minimal",t.Writer=r(86804),t.BufferWriter=r(2453),t.Reader=r(93688),t.BufferReader=r(89049),t.util=r(83499),t.rpc=r(18296),t.roots=r(38226),t.configure=n,n()},62779(e,t,r){"use strict";(t=e.exports=r(85558)).build="full",t.tokenize=r(14846),t.parse=r(17828),t.common=r(56994),t.Root._configure(t.Type,t.parse,t.common)},62485(e,t,r){"use strict";e.exports=s;var n=r(4083);s.prototype=Object.create(n.prototype,{constructor:{value:s,writable:!0,enumerable:!1,configurable:!0}}),s.className="MapField";var i=r(69082),o=r(34595);function s(e,t,r,i,s,a){if(n.call(this,e,t,i,void 0,void 0,s,a),!o.isString(r))throw TypeError("keyType must be a string");this.keyType=r,this.resolvedKeyType=null,this.map=!0}s.fromJSON=function(e,t){var r=new s(e,t.id,t.keyType,t.type,t.options,t.comment);return t.protoName&&(r.protoName=t.protoName),void 0!==t.jsonName?r.jsonName=t.jsonName:t.options&&void 0!==t.options.json_name&&(r.jsonName=t.options.json_name),r},s.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return o.toObject(["keyType",this.keyType,"type",this.type,"id",this.id,"extend",this.extend,"protoName",this.protoName!==this.name?this.protoName:void 0,"jsonName",this.jsonName!==o.jsonName(this.protoName||this.name)?this.jsonName:void 0,"options",this.options,"comment",t?this.comment:void 0])},s.prototype.resolve=function(){if(this.resolved)return this;if(void 0===i.mapKey[this.keyType])throw Error("invalid key type: "+this.keyType);return n.prototype.resolve.call(this)},s.d=function(e,t,r){return"function"==typeof r?r=o.decorateType(r).name:r&&"object"==typeof r&&(r=o.decorateEnum(r).name),function(n,i){o.decorateType(n.constructor).add(new s(i,e,t,r))}}},7652(e,t,r){"use strict";e.exports=i;var n=r(83499);function i(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&"__proto__"!==t[r]&&(this[t[r]]=e[t[r]])}i.create=function(e){return this.$type.create(e)},i.encode=function(e,t){return this.$type.encode(e,t)},i.encodeDelimited=function(e,t){return this.$type.encodeDelimited(e,t)},i.decode=function(e){return this.$type.decode(e)},i.decodeDelimited=function(e){return this.$type.decodeDelimited(e)},i.verify=function(e){return this.$type.verify(e)},i.fromObject=function(e){return this.$type.fromObject(e)},i.toObject=function(e,t){return this.$type.toObject(e,t)},i.prototype.toJSON=function(){return this.$type.toObject(this,n.toJSONOptions)}},34426(e,t,r){"use strict";e.exports=o;var n=r(15156);o.prototype=Object.create(n.prototype,{constructor:{value:o,writable:!0,enumerable:!1,configurable:!0}}),o.className="Method";var i=r(34595);function o(e,t,r,o,s,a,u,f,l){if(i.isObject(s)?(u=s,s=a=void 0):i.isObject(a)&&(u=a,a=void 0),void 0!==t&&!i.isString(t))throw TypeError("type must be a string");if(!i.isString(r))throw TypeError("requestType must be a string");if(!i.isString(o))throw TypeError("responseType must be a string");n.call(this,e,u),this.type=t||"rpc",this.requestType=r,this.requestStream=!!s||void 0,this.responseType=o,this.responseStream=!!a||void 0,this.path="/"+this.name,this.resolvedRequestType=null,this.resolvedResponseType=null,this.comment=f,this.parsedOptions=l}o.fromJSON=function(e,t){return new o(e,t.type,t.requestType,t.responseType,t.requestStream,t.responseStream,t.options,t.comment,t.parsedOptions)},o.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return i.toObject(["type","rpc"!==this.type&&this.type||void 0,"requestType",this.requestType,"requestStream",this.requestStream,"responseType",this.responseType,"responseStream",this.responseStream,"options",this.options,"comment",t?this.comment:void 0,"parsedOptions",this.parsedOptions])},o.prototype.resolve=function(){if(this.resolved)return this;if(this.parent){var e=this.parent.fullName;"."===e.charAt(0)&&(e=e.substring(1)),this.path="/"+e+"/"+this.name}else this.path="/"+this.name;return this.resolvedRequestType=this.parent.lookupType(this.requestType),this.resolvedResponseType=this.parent.lookupType(this.responseType),n.prototype.resolve.call(this)}},20364(e,t,r){"use strict";e.exports=c;var n=r(15156);c.prototype=Object.create(n.prototype,{constructor:{value:c,writable:!0,enumerable:!1,configurable:!0}}),c.className="Namespace";var i,o,s,a=r(4083),u=r(34595),f=r(80654);function l(e,t){if(e&&e.length){for(var r={},n=0;n<e.length;++n)r[e[n].name]=e[n].toJSON(t);return r}}function c(e,t){n.call(this,e,t),this.nested=void 0,this._nestedArray=null,this._lookupCache=Object.create(null),this._needsRecursiveFeatureResolution=!0,this._needsRecursiveResolve=!0}function h(e){e._nestedArray=null,e._lookupCache=Object.create(null);for(var t=e;t=t.parent;)t._lookupCache=Object.create(null);return e}c.fromJSON=function(e,t,r){if(void 0===r&&(r=0),r>u.recursionLimit)throw Error("max depth exceeded");return new c(e,t.options).addJSON(t.nested,r)},c.arrayToJSON=l,c.isReservedId=function(e,t){if(e)for(var r=0;r<e.length;++r)if("string"!=typeof e[r]&&e[r][0]<=t&&e[r][1]>=t)return!0;return!1},c.isReservedName=function(e,t){if(e)for(var r=0;r<e.length;++r)if(e[r]===t)return!0;return!1},Object.defineProperty(c.prototype,"nestedArray",{get:function(){return this._nestedArray||(this._nestedArray=u.toArray(this.nested))}}),c.prototype.toJSON=function(e){return u.toObject(["options",this.options,"nested",l(this.nestedArray,e)])},c.prototype.addJSON=function(e,t){if(void 0===t&&(t=0),t>u.recursionLimit)throw Error("max depth exceeded");if(e)for(var r,n=Object.keys(e),f=0;f<n.length;++f)r=e[n[f]],this.add((void 0!==r.fields?i.fromJSON:void 0!==r.values?s.fromJSON:void 0!==r.methods?o.fromJSON:void 0!==r.id?a.fromJSON:c.fromJSON)(n[f],r,t+1));return this},c.prototype.get=function(e){return this.nested&&Object.prototype.hasOwnProperty.call(this.nested,e)?this.nested[e]:null},c.prototype.getEnum=function(e){if(this.nested&&Object.prototype.hasOwnProperty.call(this.nested,e)&&this.nested[e]instanceof s)return this.nested[e].values;throw Error("no such enum: "+e)},c.prototype.add=function(e){if(!(e instanceof a&&void 0!==e.extend||e instanceof i||e instanceof f||e instanceof s||e instanceof o||e instanceof c))throw TypeError("object must be a valid nested object");if("__proto__"===e.name)return this;if(this.nested){var t=this.get(e.name);if(t){if(!(t instanceof c&&e instanceof c)||t instanceof i||t instanceof o)throw Error("duplicate name '"+e.name+"' in "+this);for(var r=t.nestedArray,n=0;n<r.length;++n)e.add(r[n]);this.remove(t),this.nested||(this.nested={}),e.setOptions(t.options,!0)}}else this.nested={};this.nested[e.name]=e,this instanceof i||this instanceof o||this instanceof s||this instanceof a||e._edition||(e._edition=e._defaultEdition),this._needsRecursiveFeatureResolution=!0,this._needsRecursiveResolve=!0;for(var u=this;u=u.parent;)u._needsRecursiveFeatureResolution=!0,u._needsRecursiveResolve=!0;return e.onAdd(this),h(this)},c.prototype.remove=function(e){if(!(e instanceof n))throw TypeError("object must be a ReflectionObject");if(e.parent!==this)throw Error(e+" is not a member of "+this);if(!u.remove(this.nested,e,e.name))throw Error(e+" is not a member of "+this);return Object.keys(this.nested).length||(this.nested=void 0),e.onRemove(this),h(this)},c.prototype.define=function(e,t){if(u.isString(e))e=e.split(".");else if(!Array.isArray(e))throw TypeError("illegal path");if(e&&e.length&&""===e[0])throw Error("path must be relative");if(e.length>u.recursionLimit)throw Error("max depth exceeded");for(var r=this;e.length>0;){var n=e.shift();if(r.nested&&r.nested[n]){if(!((r=r.nested[n])instanceof c))throw Error("path conflicts with non-namespace objects")}else r.add(r=new c(n))}return t&&r.addJSON(t),r},c.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;this._needsRecursiveFeatureResolution&&this._resolveFeaturesRecursive(this._edition);var e=this.nestedArray,t=0;for(this.resolve();t<e.length;)e[t]instanceof c?e[t++].resolveAll():e[t++].resolve();return this._needsRecursiveResolve=!1,this},c.prototype._resolveFeaturesRecursive=function(e){return this._needsRecursiveFeatureResolution?(this._needsRecursiveFeatureResolution=!1,e=this._edition||e,n.prototype._resolveFeaturesRecursive.call(this,e),this.nestedArray.forEach(t=>{t._resolveFeaturesRecursive(e)}),this):this},c.prototype.lookup=function(e,t,r){if("boolean"==typeof t?(r=t,t=void 0):t&&!Array.isArray(t)&&(t=[t]),u.isString(e)&&e.length){if("."===e)return this.root;e=e.split(".")}else if(!e.length)return this;var n=e.join(".");if(""===e[0])return this.root.lookup(e.slice(1),t);var i=this._lookupImpl(e,n);if(i&&(!t||t.indexOf(i.constructor)>-1))return i;if((i=this.root._fullyQualifiedObjects&&this.root._fullyQualifiedObjects["."+n])&&(!t||t.indexOf(i.constructor)>-1))return i;if(r)return null;for(var o=this;o.parent;){if((i=o.parent._lookupImpl(e,n))&&(!t||t.indexOf(i.constructor)>-1))return i;o=o.parent}return null},c.prototype._lookupImpl=function(e,t){if(Object.prototype.hasOwnProperty.call(this._lookupCache,t))return this._lookupCache[t];var r=this.get(e[0]),n=null;if(r)1===e.length?n=r:r instanceof c&&(e=e.slice(1),n=r._lookupImpl(e,e.join(".")));else for(var i=0;i<this.nestedArray.length;++i)if(this._nestedArray[i]instanceof c&&(r=this._nestedArray[i]._lookupImpl(e,t))){n=r;break}return this._lookupCache[t]=n,n},c.prototype.lookupType=function(e){var t=this.lookup(e,[i]);if(!t)throw Error("no such type: "+e);return t},c.prototype.lookupEnum=function(e){var t=this.lookup(e,[s]);if(!t)throw Error("no such Enum '"+e+"' in "+this);return t},c.prototype.lookupTypeOrEnum=function(e){var t=this.lookup(e,[i,s]);if(!t)throw Error("no such Type or Enum '"+e+"' in "+this);return t},c.prototype.lookupService=function(e){var t=this.lookup(e,[o]);if(!t)throw Error("no such Service '"+e+"' in "+this);return t},c._configure=function(e,t,r){i=e,o=t,s=r}},15156(e,t,r){"use strict";e.exports=l,l.className="ReflectionObject";const n=r(80654);var i,o=r(34595),s={enum_type:"OPEN",field_presence:"EXPLICIT",json_format:"ALLOW",message_encoding:"LENGTH_PREFIXED",repeated_field_encoding:"PACKED",utf8_validation:"VERIFY",enforce_naming_style:"STYLE2024",default_symbol_visibility:"EXPORT_TOP_LEVEL"},a={enum_type:"OPEN",field_presence:"EXPLICIT",json_format:"ALLOW",message_encoding:"LENGTH_PREFIXED",repeated_field_encoding:"PACKED",utf8_validation:"VERIFY",enforce_naming_style:"STYLE_LEGACY",default_symbol_visibility:"EXPORT_ALL"},u={enum_type:"CLOSED",field_presence:"EXPLICIT",json_format:"LEGACY_BEST_EFFORT",message_encoding:"LENGTH_PREFIXED",repeated_field_encoding:"EXPANDED",utf8_validation:"NONE",enforce_naming_style:"STYLE_LEGACY",default_symbol_visibility:"EXPORT_ALL"},f={enum_type:"OPEN",field_presence:"IMPLICIT",json_format:"ALLOW",message_encoding:"LENGTH_PREFIXED",repeated_field_encoding:"PACKED",utf8_validation:"VERIFY",enforce_naming_style:"STYLE_LEGACY",default_symbol_visibility:"EXPORT_ALL"};function l(e,t){if(!o.isString(e))throw TypeError("name must be a string");if(t&&!o.isObject(t))throw TypeError("options must be an object");this.options=t,this.parsedOptions=null,this.name=e,this._edition=null,this._defaultEdition="proto2",this._features={},this._featuresResolved=!1,this.parent=null,this.resolved=!1,this.comment=null,this.filename=null}Object.defineProperties(l.prototype,{root:{get:function(){for(var e=this;null!==e.parent;)e=e.parent;return e}},fullName:{get:function(){for(var e=[this.name],t=this.parent;t;)e.unshift(t.name),t=t.parent;return e.join(".")}}}),l.prototype.toJSON=function(){throw Error()},l.prototype.onAdd=function(e){this.parent&&this.parent!==e&&this.parent.remove(this),this.parent=e,this.resolved=!1;var t=e.root;t instanceof i&&t._handleAdd(this)},l.prototype.onRemove=function(e){var t=e.root;t instanceof i&&t._handleRemove(this),this.parent=null,this.resolved=!1},l.prototype.resolve=function(){return this.resolved||this.root instanceof i&&(this.resolved=!0),this},l.prototype._resolveFeaturesRecursive=function(e){return this._resolveFeatures(this._edition||e)},l.prototype._resolveFeatures=function(e){if(!this._featuresResolved){var t={};if(!e)throw new Error("Unknown edition for "+this.fullName);var r=o.merge({},this.options&&this.options.features,this._inferLegacyProtoFeatures(e));if(this._edition){if("proto2"===e)t=Object.assign({},u);else if("proto3"===e)t=Object.assign({},f);else if("2023"===e)t=Object.assign({},a);else{if("2024"!==e)throw new Error("Unknown edition: "+e);t=Object.assign({},s)}this._features=o.merge(t,r)}else if(this.partOf instanceof n){var i=o.merge({},this.partOf._features);this._features=o.merge(i,r)}else if(this.declaringField);else{if(!this.parent)throw new Error("Unable to find a parent for "+this.fullName);var l=o.merge({},this.parent._features);this._features=o.merge(l,r)}this.extensionField&&(this.extensionField._features=this._features),this._featuresResolved=!0}},l.prototype._inferLegacyProtoFeatures=function(){return{}},l.prototype.getOption=function(e){if(this.options&&Object.prototype.hasOwnProperty.call(this.options,e))return this.options[e]},l.prototype.setOption=function(e,t,r){if("__proto__"===e)return this;if(this.options||(this.options={}),/^features\./.test(e))o.setProperty(this.options,e,t,r);else{var n=this.getOption(e);r&&void 0!==n||(n!==t&&(this.resolved=!1),this.options[e]=t)}return this},l.prototype.setParsedOption=function(e,t,r){if("__proto__"===e)return this;this.parsedOptions||(this.parsedOptions=[]);var n=this.parsedOptions;if(r){var i=n.find(function(t){return Object.prototype.hasOwnProperty.call(t,e)});if(i){var s=i[e];o.setProperty(s,r,t)}else(i={})[e]=o.setProperty({},r,t),n.push(i)}else{var a={};a[e]=t,n.push(a)}return this},l.prototype.setOptions=function(e,t){if(e)for(var r=Object.keys(e),n=0;n<r.length;++n)this.setOption(r[n],e[r[n]],t);return this},Object.defineProperty(l.prototype,"toString",{value:function(){var e=this.constructor.className,t=this.fullName;return t.length?e+" "+t:e},writable:!0,enumerable:!1,configurable:!0}),l.prototype._editionToJSON=function(){if(this._edition&&"proto3"!==this._edition)return this._edition},l._configure=function(e){i=e}},80654(e,t,r){"use strict";e.exports=s;var n=r(15156);s.prototype=Object.create(n.prototype,{constructor:{value:s,writable:!0,enumerable:!1,configurable:!0}}),s.className="OneOf";var i=r(4083),o=r(34595);function s(e,t,r,i){if(Array.isArray(t)||(r=t,t=void 0),n.call(this,e,r),void 0!==t&&!Array.isArray(t))throw TypeError("fieldNames must be an Array");this.oneof=t||[],this.fieldsArray=[],this.comment=i}function a(e){if(e.parent)for(var t=0;t<e.fieldsArray.length;++t)e.fieldsArray[t].parent||e.parent.add(e.fieldsArray[t])}s.fromJSON=function(e,t){return new s(e,t.oneof,t.options,t.comment)},s.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return o.toObject(["options",this.options,"oneof",this.oneof,"comment",t?this.comment:void 0])},s.prototype.add=function(e){if(!(e instanceof i))throw TypeError("field must be a Field");return e.parent&&e.parent!==this.parent&&e.parent.remove(e),this.oneof.push(e.name),this.fieldsArray.push(e),e.partOf=this,a(this),this},s.prototype.remove=function(e){if(!(e instanceof i))throw TypeError("field must be a Field");var t=this.fieldsArray.indexOf(e);if(t<0)throw Error(e+" is not a member of "+this);return this.fieldsArray.splice(t,1),(t=this.oneof.indexOf(e.name))>-1&&this.oneof.splice(t,1),e.partOf=null,this},s.prototype.onAdd=function(e){n.prototype.onAdd.call(this,e);for(var t=0;t<this.oneof.length;++t){var r=e.get(this.oneof[t]);r&&!r.partOf&&(r.partOf=this,this.fieldsArray.push(r))}a(this)},s.prototype.onRemove=function(e){for(var t,r=0;r<this.fieldsArray.length;++r)(t=this.fieldsArray[r]).parent&&t.parent.remove(t);n.prototype.onRemove.call(this,e)},Object.defineProperty(s.prototype,"isProto3Optional",{get:function(){if(null==this.fieldsArray||1!==this.fieldsArray.length)return!1;var e=this.fieldsArray[0];return null!=e.options&&!0===e.options.proto3_optional}}),s.d=function(){for(var e=new Array(arguments.length),t=0;t<arguments.length;)e[t]=arguments[t++];return function(t,r){o.decorateType(t.constructor).add(new s(r,e)),Object.defineProperty(t,r,{get:o.oneOfGetter(e),set:o.oneOfSetter(e)})}}},17828(e,t,r){"use strict";e.exports=E,E.filename=null,E.defaults={keepCase:!1};var n=r(14846),i=r(23079),o=r(57183),s=r(4083),a=r(62485),u=r(80654),f=r(33990),l=r(18368),c=r(34426),h=r(15156),p=r(69082),d=r(34595),y=/^[1-9][0-9]*$/,m=/^-?[1-9][0-9]*$/,v=/^0[x][0-9a-fA-F]+$/,g=/^-?0[x][0-9a-fA-F]+$/,b=/^0[0-7]+$/,w=/^-?0[0-7]+$/,x=d.patterns.numberRe,A=/^[a-zA-Z_][a-zA-Z_0-9]*$/,B=d.patterns.typeRefRe;function E(e,t,r){t instanceof i||(r=t,t=new i),r||(r=E.defaults);var F,O,_,k,T=r.preferTrailingComment||!1,I=n(e,r.alternateCommentMode||!1),S=I.next,j=I.push,N=I.peek,R=I.skip,C=I.cmnt,L=!0,P="proto2",D=t,U=[],M={},$=r.keepCase?function(e){return e}:d.camelCase;function q(e,t,r){var n=E.filename;return r||(E.filename=null),Error("illegal "+(t||"token")+" '"+e+"' ("+(n?n+", ":"")+"line "+I.line+")")}function V(){var e,t=[];do{if('"'!==(e=S())&&"'"!==e)throw q(e);t.push(S()),R(e),e=N()}while('"'===e||"'"===e);return t.join("")}function z(e){var t=S();switch(t){case"'":case'"':return j(t),V();case"true":case"TRUE":return!0;case"false":case"FALSE":return!1}try{return function(e){var t=1;switch("-"===e.charAt(0)&&(t=-1,e=e.substring(1)),e){case"inf":case"INF":case"Inf":return t*(1/0);case"nan":case"NAN":case"Nan":case"NaN":return NaN;case"0":return 0}if(y.test(e))return t*parseInt(e,10);if(v.test(e))return t*parseInt(e,16);if(b.test(e))return t*parseInt(e,8);if(x.test(e))return t*parseFloat(e);throw q(e,"number",!0)}(t)}catch(r){if(e&&B.test(t))return t;throw q(t,"value")}}function J(e,t,r,n){var i,o;do{if(!t||'"'!==(i=N())&&"'"!==i)try{e.push([o=G(S(),n,r),R("to",!0)?G(S(),n,r):o])}catch(r){if(!(t&&B.test(i)&&P>=2023))throw r;e.push(i)}else{var s=V();if(e.push(s),P>=2023)throw q(s,"id")}}while(R(",",!0));var a={options:void 0,setOption:function(e,t){void 0===this.options&&(this.options={}),this.options[e]=t}};K(a,function(e){if("option"!==e)throw q(e);ne(a,e),R(";")},function(){se(a)})}function G(e,t,r){if(null===e)throw q(e,"end of input");switch(e){case"max":case"MAX":case"Max":return r||536870911;case"0":return 0}if(!t&&"-"===e.charAt(0))throw q(e,"id");if(m.test(e))return parseInt(e,10);if(g.test(e))return parseInt(e,16);if(w.test(e))return parseInt(e,8);throw q(e,"id")}function H(){if(void 0!==F)throw q("package");if(null===(F=S())||!B.test(F))throw q(F,"name");D=D.define(F),R(";")}function Y(){var e,t=N();switch(t){case"option":if(P<"2024")throw q("option");return S(),V(),void R(";");case"weak":e=_||(_=[]),S();break;case"public":S();default:e=O||(O=[])}t=V(),R(";"),e.push(t)}function W(){if(R("="),(P=V())<2023)throw q(P,"syntax");R(";")}function Z(){if(R("="),P=V(),!["2023","2024"].includes(P))throw q(P,"edition");R(";")}function X(e,t,r){switch(void 0===r&&(r=0),t){case"option":return ne(e,t),R(";"),!0;case"message":return Q(e,t,r+1),!0;case"enum":return re(e,t),!0;case"export":case"local":return!(P<"2024")&&"export"!==(t=S())&&"local"!==t&&("message"===t||"enum"===t)&&X(e,t,r);case"service":return function(e,t,r){if(void 0===r&&(r=0),r>d.recursionLimit)throw Error("max depth exceeded");if(null===(t=S())||!A.test(t))throw q(t,"service name");var n=new l(t);K(n,function(e){if(!X(n,e,r)&&";"!==e){if("rpc"!==e)throw q(e);!function(e,t){var r=C(),n=t;if(!A.test(t=S()))throw q(t,"name");var i,o,s,a,u=t;if(R("("),R("stream",!0)&&(o=!0),!B.test(t=S()))throw q(t);if(i=t,R(")"),R("returns"),R("("),R("stream",!0)&&(a=!0),!B.test(t=S()))throw q(t);s=t,R(")");var f=new c(u,n,i,s,o,a);f.comment=r,K(f,function(e){if(";"!==e){if("option"!==e)throw q(e);ne(f,e),R(";")}}),e.add(f)}(n,e)}}),e.add(n),e===D&&U.push(n)}(e,t,r+1),!0;case"extend":return function(e,t,r){if(null===(t=S())||!B.test(t))throw q(t,"reference");var n=t;K(null,function(t){switch(t){case"required":case"repeated":ee(e,t,n,r+1);break;case"optional":ee(e,"proto3"===P?"proto3_optional":"optional",n,r+1);break;default:if("proto2"===P||!B.test(t))throw q(t);j(t),ee(e,"optional",n,r+1)}})}(e,t,r),!0}return!1}function K(e,t,r){var n=I.line;if(e&&("string"!=typeof e.comment&&(e.comment=C()),e.filename=E.filename),R("{",!0)){for(var i;"}"!==(i=S());)t(i);R(";",!0)}else r&&r(),R(";"),e&&("string"!=typeof e.comment||T)&&(e.comment=C(n)||e.comment)}function Q(e,t,r){if(void 0===r&&(r=0),r>d.nestingLimit)throw Error("max depth exceeded");if(null===(t=S())||!A.test(t))throw q(t,"type name");var n=new o(t);K(n,function(e){if(!X(n,e,r))switch(e){case";":break;case"map":te(n);break;case"required":if("proto2"!==P)throw q(e);case"repeated":ee(n,e,void 0,r+1);break;case"optional":if("proto3"===P)ee(n,"proto3_optional",void 0,r+1);else{if("proto2"!==P)throw q(e);ee(n,"optional",void 0,r+1)}break;case"oneof":!function(e,t,r){if(null===(t=S())||!A.test(t))throw q(t,"name");var n=new u($(t));K(n,function(e){"option"===e?(ne(n,e),R(";")):(j(e),ee(n,"optional",void 0,r))}),e.add(n)}(n,e,r+1);break;case"extensions":J(n.extensions||(n.extensions=[]));break;case"reserved":J(n.reserved||(n.reserved=[]),!0);break;default:if("proto2"===P||!B.test(e))throw q(e);j(e),ee(n,"optional",void 0,r+1)}}),e.add(n),e===D&&U.push(n)}function ee(e,t,r,n){var i=S();if(null===i)throw q(i,"end of input");if("group"!==i){for(;i.endsWith(".")||(N()||"").startsWith(".");){var a=S();if(null===a)throw q(a,"end of input");i+=a}if(!B.test(i))throw q(i,"type");var f=S();if(null===f)throw q(f,"end of input");if(!A.test(f))throw q(f,"name");var l=f;f=$(f),R("=");var c=new s(f,G(S()),i,"proto3_optional"===t?"optional":t,r);if(l!==f&&(c.protoName=l),K(c,function(e){if("option"!==e)throw q(e);ne(c,e),R(";")},function(){se(c)}),"proto3_optional"===t){var h=new u("_"+f);c.setOption("proto3_optional",!0),h.add(c),e.add(h)}else e.add(c);e===D&&U.push(c)}else!function(e,t,r,n){if(void 0===n&&(n=0),n>d.nestingLimit)throw Error("max depth exceeded");if(P>=2023)throw q("group");var i=S();if(null===i||!A.test(i))throw q(i,"name");var a=d.lcFirst(i);i===a&&(i=d.ucFirst(i)),R("=");var u=G(S()),f=new o(i);f.group=!0;var l=new s(a,u,i,t,r);l.filename=E.filename,K(f,function(e){switch(e){case";":break;case"map":te(f);break;case"option":ne(f,e),R(";");break;case"required":case"repeated":ee(f,e,void 0,n+1);break;case"optional":ee(f,"proto3"===P?"proto3_optional":"optional",void 0,n+1);break;case"message":Q(f,e,n+1);break;case"enum":re(f,e);break;case"reserved":J(f.reserved||(f.reserved=[]),!0);break;case"export":case"local":if(P<"2024")throw q(e);switch(e=S()){case"message":case"enum":Q(f,e,n+1);break;default:throw q(e)}break;default:throw q(e)}}),e.add(f).add(l),e===D&&(U.push(f),U.push(l))}(e,t,r,n)}function te(e){R("<");var t=S();if(void 0===p.mapKey[t])throw q(t,"type");R(",");var r=S();if(!B.test(r))throw q(r,"type");R(">");var n=S();if(null===n||!A.test(n))throw q(n,"name");R("=");var i=n;n=$(n);var o=new a(n,G(S()),t,r);i!==n&&(o.protoName=i),K(o,function(e){if("option"!==e)throw q(e);ne(o,e),R(";")},function(){se(o)}),e.add(o)}function re(e,t){if(null===(t=S())||!A.test(t))throw q(t,"name");var r=new f(t),n=[];K(r,function(e){switch(e){case";":break;case"option":ne(r,e),R(";");break;case"reserved":J(r.reserved||(r.reserved=[]),!0,2147483647,!0),void 0===r.reserved&&(r.reserved=[]);break;default:n.push(function(e){if(!A.test(e))throw q(e,"name");R("=");var t=G(S(),!0),r={options:void 0,getOption:function(e){return this.options[e]},setOption:function(e,t){h.prototype.setOption.call(r,e,t)},setParsedOption:function(){}};return K(r,function(e){if("option"!==e)throw q(e);ne(r,e),R(";")},function(){se(r)}),{name:e,id:t,comment:r.comment,options:r.parsedOptions||r.options}}(e))}});for(var i=0;i<n.length;++i)r.add(n[i].name,n[i].id,n[i].comment,n[i].options);e.add(r),e===D&&U.push(r)}function ne(e,t){var r,n,i=!0;for("option"===t&&(t=S());"="!==t;){if(null===t)throw q(t,"end of input");if("("===t){var o=S();R(")"),t="("+o+")"}if(i){if(i=!1,t.includes(".")&&!t.includes("(")){var s=t.split(".");r=s[0]+".",t=s[1];continue}r=t}else n=n?n+=t:t;t=S()}var a=ie(e,n?r.concat(n):r);n=n&&"."===n[0]?n.slice(1):n,function(e,t,r,n){e.setParsedOption&&e.setParsedOption(t,r,n)}(e,r=r&&"."===r[r.length-1]?r.slice(0,-1):r,a,n)}function ie(e,t,r){if(void 0===r&&(r=0),r>d.recursionLimit)throw Error("max depth exceeded");if(R("{",!0)){for(var n={};!R("}",!0);){var i,o;if(null===(k=S()))throw q(k,"end of input");if("["===k){var s=null===(k=S())?-1:k.lastIndexOf("/");if(null===k||!B.test(s<0?k:k.slice(s+1)))throw q(k,"name");i="["+k+"]",R("]")}else{if(!A.test(k))throw q(k,"name");i=k}if(R(":",!0),"{"===N())o=ie(e,t+"."+i,r+1);else if("["===N()){var a,u;if(o=[],R("[",!0)&&!R("]",!0)){do{a=(u="{"===N())?ie(e,t+"."+i,r+1):z(!0),o.push(a)}while(R(",",!0));R("]"),void 0!==a&&(u||oe(e,t+"."+i,a))}}else oe(e,t+"."+i,o=z(!0));var f=Object.prototype.hasOwnProperty.call(n,i)?n[i]:void 0;f&&(o=[].concat(f).concat(o)),"__proto__"!==i&&(n[i]=o),R(",",!0),R(";",!0)}return n}var l=z(!0);return oe(e,t,l),l}function oe(e,t,r){D===e&&/^features\./.test(t)?M[t]=r:("json_name"===t&&e instanceof s&&(e.jsonName=r),e.setOption&&e.setOption(t,r))}function se(e){if(R("[",!0)){do{ne(e,"option")}while(R(",",!0));R("]")}return e}for(;null!==(k=S());)switch(k){case";":break;case"package":if(!L)throw q(k);H();break;case"import":Y();break;case"syntax":if(!L)throw q(k);W();break;case"edition":if(!L)throw q(k);Z();break;case"option":ne(D,k),R(";",!0);break;default:if(X(D,k,0)){L=!1;continue}throw q(k)}return U.forEach(e=>{e._edition=P,Object.keys(M).forEach(t=>{void 0===e.getOption(t)&&e.setOption(t,M[t],!0)})}),E.filename=null,{package:F,imports:O,weakImports:_,root:t}}},93688(e,t,r){"use strict";e.exports=u;var n,i=r(83499),o=i.LongBits,s=i.utf8;function a(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function u(e){this.buf=e,this.pos=0,this.len=e.length,this.view=null,this.discardUnknown=u.discardUnknown}function f(e){if(Array.isArray(e)&&(e=new Uint8Array(e)),e instanceof Uint8Array)return new u(e);throw Error("illegal buffer")}var l=function(){return i.Buffer?function(e){return(u.create=function(e){return i.Buffer.isBuffer(e)?new n(e):f(e)})(e)}:f};function c(){var e=new o(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<4;++t){if(this.pos>=this.len)throw a(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}throw a(this)}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw a(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function h(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function p(){if(this.pos+8>this.len)throw a(this,8);return new o(h(this.buf,this.pos+=4),h(this.buf,this.pos+=4))}function d(e,t,r){var n=e.view;if(n||t<r)return n;var i=e.buf;return e.view=new DataView(i.buffer,i.byteOffset,i.byteLength)}u.create=l(),u.prototype.raw=function(e,t){return this.buf.subarray(e,t)},u.prototype.uint32=function(){var e=this.buf,t=this.pos,r=(127&e[t])>>>0;if(e[t++]<128)return this.pos=t,r;if(r=(r|(127&e[t])<<7)>>>0,e[t++]<128)return this.pos=t,r;if(r=(r|(127&e[t])<<14)>>>0,e[t++]<128)return this.pos=t,r;if(r=(r|(127&e[t])<<21)>>>0,e[t++]<128)return this.pos=t,r;if(r=(r|(15&e[t])<<28)>>>0,e[t++]<128)return this.pos=t,r;for(var n=0;n<5;++n){if(t>=this.len)throw this.pos=t,a(this);if(e[t++]<128)return this.pos=t,r}throw this.pos=t,Error("invalid varint encoding")},u.prototype.tag=function(){var e=this.buf,t=this.pos,r=(127&e[t])>>>0;if(e[t++]<128)return this.pos=t,r;if(r=(r|(127&e[t])<<7)>>>0,e[t++]<128)return this.pos=t,r;if(r=(r|(127&e[t])<<14)>>>0,e[t++]<128)return this.pos=t,r;if(r=(r|(127&e[t])<<21)>>>0,e[t++]<128)return this.pos=t,r;if(r=(r|(15&e[t])<<28)>>>0,e[t]<128&&!(112&e[t]))return this.pos=t+1,r;throw this.pos=t+1,Error("invalid tag encoding")},u.prototype.int32=function(){return 0|this.uint32()},u.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)},u.prototype.bool=function(){for(var e,t=!1,r=0;r<10;++r){if(this.pos>=this.len)throw a(this);if(127&(e=this.buf[this.pos++])&&(t=!0),e<128)return t}throw Error("invalid varint encoding")},u.prototype.fixed32=function(){if(this.pos+4>this.len)throw a(this,4);return h(this.buf,this.pos+=4)},u.prototype.sfixed32=function(){if(this.pos+4>this.len)throw a(this,4);return 0|h(this.buf,this.pos+=4)},u.prototype.float=function(){if(this.pos+4>this.len)throw a(this,4);var e=i.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},u.prototype.double=function(){if(this.pos+8>this.len)throw a(this,4);var e=i.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},u.prototype.uint32s=function(e){void 0===e&&(e=[]);for(var t=this.uint32()+this.pos;this.pos<t;)e.push(this.uint32());return e},u.prototype.int32s=function(e){void 0===e&&(e=[]);for(var t=this.uint32()+this.pos;this.pos<t;)e.push(this.int32());return e},u.prototype.sint32s=function(e){void 0===e&&(e=[]);for(var t=this.uint32()+this.pos;this.pos<t;)e.push(this.sint32());return e},u.prototype.bools=function(e){void 0===e&&(e=[]);for(var t=this.uint32()+this.pos;this.pos<t;)e.push(this.bool());return e},u.prototype.fixed32s=function(e){void 0===e&&(e=[]);var t=this.uint32(),r=this.pos+t;if(r>this.len)throw a(this,t);var n=t>>>2,i=e.length,o=this.pos;e.length=i+n;var s=d(this,n,128);if(s)for(var u=0;u<n;++u,o+=4)e[i++]=s.getUint32(o,!0);else for(var f=this.buf,l=0;l<n;++l,o+=4)e[i++]=h(f,o+4);if(this.pos=o,o!==r)throw a(this,4);return e},u.prototype.sfixed32s=function(e){void 0===e&&(e=[]);var t=this.uint32(),r=this.pos+t;if(r>this.len)throw a(this,t);var n=t>>>2,i=e.length,o=this.pos;e.length=i+n;var s=d(this,n,128);if(s)for(var u=0;u<n;++u,o+=4)e[i++]=s.getInt32(o,!0);else for(var f=this.buf,l=0;l<n;++l,o+=4)e[i++]=0|h(f,o+4);if(this.pos=o,o!==r)throw a(this,4);return e},u.prototype.floats=function(e){void 0===e&&(e=[]);var t=this.uint32(),r=this.pos+t;if(r>this.len)throw a(this,t);var n=t>>>2,o=e.length,s=this.pos;e.length=o+n;var u=d(this,n,8);if(u)for(var f=0;f<n;++f,s+=4)e[o++]=u.getFloat32(s,!0);else for(var l=this.buf,c=0;c<n;++c,s+=4)e[o++]=i.float.readFloatLE(l,s);if(this.pos=s,s!==r)throw a(this,4);return e},u.prototype.doubles=function(e){void 0===e&&(e=[]);var t=this.uint32(),r=this.pos+t;if(r>this.len)throw a(this,t);var n=t>>>3,o=e.length,s=this.pos;e.length=o+n;var u=d(this,n,8);if(u)for(var f=0;f<n;++f,s+=8)e[o++]=u.getFloat64(s,!0);else for(var l=this.buf,c=0;c<n;++c,s+=8)e[o++]=i.float.readDoubleLE(l,s);if(this.pos=s,s!==r)throw a(this,8);return e},u.prototype.uint64s=function(e){void 0===e&&(e=[]);for(var t=this.uint32()+this.pos;this.pos<t;)e.push(this.uint64());return e},u.prototype.int64s=function(e){void 0===e&&(e=[]);for(var t=this.uint32()+this.pos;this.pos<t;)e.push(this.int64());return e},u.prototype.sint64s=function(e){void 0===e&&(e=[]);for(var t=this.uint32()+this.pos;this.pos<t;)e.push(this.sint64());return e},u.prototype.fixed64s=function(e){void 0===e&&(e=[]);var t=this.uint32(),r=this.pos+t,n=e.length;if(r>this.len)throw a(this,t);var i=t>>>3;e.length=n+i;for(var o=0;o<i;++o)e[n++]=this.fixed64();if(this.pos!==r)throw a(this,8);return e},u.prototype.sfixed64s=function(e){void 0===e&&(e=[]);var t=this.uint32(),r=this.pos+t,n=e.length;if(r>this.len)throw a(this,t);var i=t>>>3;e.length=n+i;for(var o=0;o<i;++o)e[n++]=this.sfixed64();if(this.pos!==r)throw a(this,8);return e},u.prototype.bytes=function(){var e=this.uint32(),t=this.pos,r=this.pos+e;if(r>this.len)throw a(this,e);return this.pos=r,this.raw(t,r)},u.prototype.string=function(){var e=this.uint32(),t=this.pos,r=this.pos+e;if(r>this.len)throw a(this,e);return this.pos=r,s.read(this.buf,t,r)},u.prototype.stringVerify=function(){var e=this.uint32(),t=this.pos,r=this.pos+e;if(r>this.len)throw a(this,e);return this.pos=r,s.readStrict(this.buf,t,r)},u.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw a(this,e);this.pos+=e}else do{if(this.pos>=this.len)throw a(this)}while(128&this.buf[this.pos++]);return this},u.recursionLimit=i.recursionLimit,u.discardUnknown=!0,u.prototype.skipType=function(e,t,r){if(void 0===t&&(t=0),t>u.recursionLimit)throw Error("max depth exceeded");if(0===r)throw Error("illegal tag: field number 0");switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;;){var n=this.tag(),i=n>>>3;if(e=7&n,!i)throw Error("illegal tag: field number 0");if(4===e){if(void 0!==r&&i!==r)throw Error("invalid end group tag");break}this.skipType(e,t+1,i)}break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},u._configure=function(e){n=e,u.create=l(),n._configure();var t=i.Long?"toLong":"toNumber";i.merge(u.prototype,{int64:function(){return c.call(this)[t](!1)},uint64:function(){return c.call(this)[t](!0)},sint64:function(){return c.call(this).zzDecode()[t](!1)},fixed64:function(){return p.call(this)[t](!0)},sfixed64:function(){return p.call(this)[t](!1)}})}},89049(e,t,r){"use strict";e.exports=o;var n=r(93688);o.prototype=Object.create(n.prototype,{constructor:{value:o,writable:!0,enumerable:!1,configurable:!0}});var i=r(83499);function o(e){n.call(this,e)}o._configure=function(){i.Buffer&&(o.prototype._slice=i.Buffer.prototype.slice)},o.prototype.raw=function(e,t){return this._slice.call(this.buf,e,t)},o.prototype.string=function(){var e=this.uint32(),t=this.pos,r=this.pos+e;if(r>this.len)throw RangeError("index out of range: "+this.pos+" + "+e+" > "+this.len);return this.pos=r,this.buf.utf8Slice?this.buf.utf8Slice(t,r):this.buf.toString("utf-8",t,r)},o._configure()},23079(e,t,r){"use strict";e.exports=c;var n=r(20364);c.prototype=Object.create(n.prototype,{constructor:{value:c,writable:!0,enumerable:!1,configurable:!0}}),c.className="Root";var i,o,s,a=r(4083),u=r(33990),f=r(80654),l=r(34595);function c(e){n.call(this,"",e),this.deferred=[],this.files=[],this._edition="proto2",this._fullyQualifiedObjects={}}function h(){}c.fromJSON=function(e,t,r){if(void 0===r&&(r=0),r>l.recursionLimit)throw Error("max depth exceeded");return t||(t=new c),e.options&&t.setOptions(e.options),t.addJSON(e.nested,r).resolveAll()},c.prototype.resolvePath=l.path.resolve,c.prototype.fetch=l.fetch,c.prototype.load=function e(t,r,n){"function"==typeof r&&(n=r,r=void 0);var i=this;if(!n)return l.asPromise(e,i,t,r);var a=n===h;function u(e,t){if(n){if(a)throw e;t&&t.resolveAll();var r=n;n=null,r(e,t)}}function f(e){var t=e.lastIndexOf("google/protobuf/");if(t>-1){var r=e.substring(t);if(Object.prototype.hasOwnProperty.call(s,r))return r}return Object.prototype.hasOwnProperty.call(s,e)?e:null}function c(e,t,n){void 0===n&&(n=0);try{if(n>l.recursionLimit)throw Error("max depth exceeded");if(l.isString(t)&&"{"===t.charAt(0)&&(t=JSON.parse(t)),l.isString(t)){o.filename=e;var s,c=o(t,i,r),h=0;if(c.imports)for(;h<c.imports.length;++h)(s=f(c.imports[h])||i.resolvePath(e,c.imports[h]))&&p(s,!1,n+1);if(c.weakImports)for(h=0;h<c.weakImports.length;++h)(s=f(c.weakImports[h])||i.resolvePath(e,c.weakImports[h]))&&p(s,!0,n+1)}else i.setOptions(t.options).addJSON(t.nested)}catch(e){u(e)}a||d||u(null,i)}function p(e,t,r){if(void 0===r&&(r=0),e=f(e)||e,!(i.files.indexOf(e)>-1))if(i.files.push(e),Object.prototype.hasOwnProperty.call(s,e))a?c(e,s[e],r):(++d,setTimeout(function(){--d,c(e,s[e],r)}));else if(a){var o;try{o=l.fs.readFileSync(e).toString("utf8")}catch(e){return void(t||u(e))}c(e,o,r)}else++d,i.fetch(e,function(o,s){--d,n&&(o?t?d||u(null,i):u(o):c(e,s,r))})}var d=0;l.isString(t)&&(t=[t]);for(var y,m=0;m<t.length;++m)(y=i.resolvePath("",t[m]))&&p(y);return a?(i.resolveAll(),i):(d||u(null,i),i)},c.prototype.loadSync=function(e,t){if(!l.isNode)throw Error("not supported");return this.load(e,t,h)},c.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;if(this.deferred.length)throw Error("unresolvable extensions: "+this.deferred.map(function(e){return"'extend "+e.extend+"' in "+e.parent.fullName}).join(", "));return n.prototype.resolveAll.call(this)};var p=/^[A-Z]/;function d(e,t){var r=t.parent.lookup(t.extend);if(r){var n=new a(t.fullName,t.id,t.type,t.rule,void 0,t.options);return r.get(n.name)||(n.declaringField=t,t.extensionField=n,r.add(n)),!0}return!1}c.prototype._handleAdd=function(e){if(e instanceof a)void 0===e.extend||e.extensionField||d(0,e)||this.deferred.push(e);else if(e instanceof u)p.test(e.name)&&(e.parent[e.name]=e.values);else if(!(e instanceof f)){if(e instanceof i)for(var t=0;t<this.deferred.length;)d(0,this.deferred[t])?this.deferred.splice(t,1):++t;for(var r=0;r<e.nestedArray.length;++r)this._handleAdd(e._nestedArray[r]);p.test(e.name)&&(e.parent[e.name]=e)}(e instanceof i||e instanceof u||e instanceof a)&&(this._fullyQualifiedObjects[e.fullName]=e)},c.prototype._handleRemove=function(e){if(e instanceof a){if(void 0!==e.extend)if(e.extensionField)e.extensionField.parent.remove(e.extensionField),e.extensionField=null;else{var t=this.deferred.indexOf(e);t>-1&&this.deferred.splice(t,1)}}else if(e instanceof u)p.test(e.name)&&delete e.parent[e.name];else if(e instanceof n){for(var r=0;r<e.nestedArray.length;++r)this._handleRemove(e._nestedArray[r]);p.test(e.name)&&delete e.parent[e.name]}delete this._fullyQualifiedObjects[e.fullName]},c._configure=function(e,t,r){i=e,o=t,s=r}},38226(e){"use strict";e.exports=Object.create(null)},18296(e,t,r){"use strict";t.Service=r(92756)},92756(e,t,r){"use strict";e.exports=i;var n=r(83499);function i(e,t,r){if("function"!=typeof e)throw TypeError("rpcImpl must be a function");n.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=Boolean(t),this.responseDelimited=Boolean(r)}i.prototype=Object.create(n.EventEmitter.prototype,{constructor:{value:i,writable:!0,enumerable:!1,configurable:!0}}),i.prototype.rpcCall=function e(t,r,i,o,s){if(!o)throw TypeError("request must be specified");var a=this;if(!s)return n.asPromise(e,a,t,r,i,o);if(a.rpcImpl)try{return a.rpcImpl(t,r[a.requestDelimited?"encodeDelimited":"encode"](o).finish(),function(e,r){if(e)return a.emit("error",e,t),s(e);if(null!==r){if(!(r instanceof i))try{r=i[a.responseDelimited?"decodeDelimited":"decode"](r)}catch(e){return a.emit("error",e,t),s(e)}return a.emit("data",r,t),s(null,r)}a.end(!0)})}catch(e){return a.emit("error",e,t),void setTimeout(function(){s(e)},0)}else setTimeout(function(){s(Error("already ended"))},0)},i.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},18368(e,t,r){"use strict";e.exports=a;var n=r(20364);a.prototype=Object.create(n.prototype,{constructor:{value:a,writable:!0,enumerable:!1,configurable:!0}}),a.className="Service";var i=r(34426),o=r(34595),s=r(18296);function a(e,t){n.call(this,e,t),this.methods={},this._methodsArray=null}function u(e){return e._methodsArray=null,e}a.fromJSON=function(e,t,r){if(void 0===r&&(r=0),r>o.recursionLimit)throw Error("max depth exceeded");var n=new a(e,t.options);if(t.methods)for(var s=Object.keys(t.methods),u=0;u<s.length;++u)n.add(i.fromJSON(s[u],t.methods[s[u]]));return t.nested&&n.addJSON(t.nested,r),t.edition&&(n._edition=t.edition),n.comment=t.comment,n._defaultEdition="proto3",n},a.prototype.toJSON=function(e){var t=n.prototype.toJSON.call(this,e),r=!!e&&Boolean(e.keepComments);return o.toObject(["edition",this._editionToJSON(),"options",t&&t.options||void 0,"methods",n.arrayToJSON(this.methodsArray,e)||{},"nested",t&&t.nested||void 0,"comment",r?this.comment:void 0])},Object.defineProperty(a.prototype,"methodsArray",{get:function(){return this._methodsArray||(this._methodsArray=o.toArray(this.methods))}}),a.prototype.get=function(e){return Object.prototype.hasOwnProperty.call(this.methods,e)?this.methods[e]:n.prototype.get.call(this,e)},a.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;n.prototype.resolve.call(this);for(var e=this.methodsArray,t=0;t<e.length;++t)e[t].resolve();return this},a.prototype._resolveFeaturesRecursive=function(e){return this._needsRecursiveFeatureResolution?(e=this._edition||e,n.prototype._resolveFeaturesRecursive.call(this,e),this.methodsArray.forEach(t=>{t._resolveFeaturesRecursive(e)}),this):this},a.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);return e instanceof i?"__proto__"===e.name?this:(this.methods[e.name]=e,e.parent=this,u(this)):n.prototype.add.call(this,e)},a.prototype.remove=function(e){if(e instanceof i){if(this.methods[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.methods[e.name],e.parent=null,u(this)}return n.prototype.remove.call(this,e)},a.prototype.create=function(e,t,r){for(var n,i=new s.Service(e,t,r),a=0;a<this.methodsArray.length;++a)i[o.lcFirst((n=this._methodsArray[a]).resolve().name).replace(/[^$\w_]/g,"")]=function(e,t,r){return function(n,i){return s.Service.prototype.rpcCall.call(this,e,t,r,n,i)}}(n,n.resolvedRequestType.ctor,n.resolvedResponseType.ctor);return i}},14846(e){"use strict";e.exports=c;var t=/[\s{}=;:[\],'"()<>]/g,r=/(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g,n=/(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g,i=/^ *[*/]+ */,o=/^\s*\*?\/*/,s=/\n/g,a=/\s/,u=/\\(.?)/g,f={0:"\0",r:"\r",n:"\n",t:"\t"};function l(e){return e.replace(u,function(e,t){switch(t){case"\\":case"":return t;default:return f[t]||""}})}function c(e,u){e=e.toString();var f=0,c=e.length,h=1,p=0,d={},y=[],m=null;function v(e){return Error("illegal "+e+" (line "+h+")")}function g(t){return e.charAt(t)}function b(t,r,n){var a,f={type:e.charAt(t++),lineEmpty:!1,leading:n},l=t-(u?2:3);do{if(--l<0||"\n"===(a=e.charAt(l))){f.lineEmpty=!0;break}}while(" "===a||"\t"===a);for(var c=e.substring(t,r).split(s),y=0;y<c.length;++y)c[y]=c[y].replace(u?o:i,"").trim();f.text=c.join("\n").trim(),d[h]=f,p=h}function w(t){var r=x(t),n=e.substring(t,r);return/^\s*\/\//.test(n)}function x(e){for(var t=e;t<c&&"\n"!==g(t);)t++;return t}function A(){if(y.length>0)return y.shift();if(m)return function(){var t="'"===m?n:r;t.lastIndex=f-1;var i=t.exec(e);if(!i)throw v("string");return f=t.lastIndex,B(m),m=null,l(i[1])}();var i,o,s,p,d,A,E=0===f;do{if(f===c)return null;for(i=!1;a.test(s=g(f));)if("\n"===s&&(E=!0,++h),++f===c)return null;if("/"===g(f)){if(++f===c)throw v("comment");if("/"===g(f))if(u){if(p=f,d=!1,w(f-1)){d=!0;do{if((f=x(f))===c)break;if(f++,!E)break;(A=w(f))&&h++}while(A)}else f=Math.min(c,x(f)+1);d&&(b(p,f,E),E=!0),h++,i=!0}else{for(d="/"===g(p=f+1);"\n"!==g(++f);)if(f===c)return null;++f,d&&(b(p,f-1,E),E=!0),++h,i=!0}else{if("*"!==(s=g(f)))return"/";p=f+1,d=u||"*"===g(p);do{if("\n"===s&&++h,++f===c)throw v("comment");o=s,s=g(f)}while("*"!==o||"/"!==s);++f,d&&(b(p,f-2,E),E=!0),i=!0}}}while(i);var F=f;if(t.lastIndex=0,!t.test(g(F++)))for(;F<c&&!t.test(g(F));)++F;var O=e.substring(f,f=F);return'"'!==O&&"'"!==O||(m=O),O}function B(e){y.push(e)}function E(){if(!y.length){var e=A();if(null===e)return null;B(e)}return y[0]}return Object.defineProperty({next:A,peek:E,push:B,skip:function(e,t){var r=E();if(r===e)return A(),!0;if(!t)throw v("token '"+r+"', '"+e+"' expected");return!1},cmnt:function(e){var t,r=null;return void 0===e?(t=d[h-1],delete d[h-1],t&&(u||"*"===t.type||t.lineEmpty)&&(r=t.leading?t.text:null)):(p<e&&E(),t=d[e],delete d[e],!t||t.lineEmpty||!u&&"/"!==t.type||(r=t.leading?null:t.text)),r}},"line",{get:function(){return h}})}c.unescape=l},57183(e,t,r){"use strict";e.exports=g;var n=r(20364);g.prototype=Object.create(n.prototype,{constructor:{value:g,writable:!0,enumerable:!1,configurable:!0}}),g.className="Type";var i=r(33990),o=r(80654),s=r(4083),a=r(62485),u=r(18368),f=r(7652),l=r(93688),c=r(86804),h=r(34595),p=r(65775),d=r(22759),y=r(8273),m=r(62235),v=r(25855);function g(e,t){e=e.replace(/\W/g,""),n.call(this,e,t),this.fields={},this.oneofs=void 0,this.extensions=void 0,this.reserved=void 0,this.group=void 0,this._fieldsById=null,this._fieldsArray=null,this._oneofsArray=null,this._ctor=null,this._fieldsByJsonName=null}function b(e){return e._fieldsById=e._fieldsArray=e._oneofsArray=e._fieldsByJsonName=null,delete e.encode,delete e.decode,delete e.verify,e}Object.defineProperties(g.prototype,{fieldsById:{get:function(){if(this._fieldsById)return this._fieldsById;this._fieldsById={};for(var e=Object.keys(this.fields),t=0;t<e.length;++t){var r=this.fields[e[t]],n=r.id;if(this._fieldsById[n])throw Error("duplicate id "+n+" in "+this);this._fieldsById[n]=r}return this._fieldsById}},fieldsArray:{get:function(){return this._fieldsArray||(this._fieldsArray=h.toArray(this.fields))}},oneofsArray:{get:function(){return this._oneofsArray||(this._oneofsArray=h.toArray(this.oneofs))}},ctor:{get:function(){return this._ctor||(this.ctor=g.generateConstructor(this)())},set:function(e){var t=e.prototype;t instanceof f||(e.prototype=new f,Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),h.merge(e.prototype,t)),e.$type=e.prototype.$type=this,h.merge(e,f,!0),this._ctor=e,delete this.decode,delete this.fromObject;for(var r,n=0;n<this.fieldsArray.length;++n)r=this._fieldsArray[n].resolve(),e.prototype[r.name]=r.defaultValue;var i={};for(n=0;n<this.oneofsArray.length;++n)i[this._oneofsArray[n].resolve().name]={get:h.oneOfGetter(this._oneofsArray[n].oneof),set:h.oneOfSetter(this._oneofsArray[n].oneof)};n&&Object.defineProperties(e.prototype,i)}}}),g.generateConstructor=function(e){for(var t,r=h.codegen(["p"]),n=0;n<e.fieldsArray.length;++n)(t=e._fieldsArray[n]).map?r("this%s={}",h.safeProp(t.name)):t.repeated&&r("this%s=[]",h.safeProp(t.name));return r('if(p)for(var ks=Object.keys(p),i=0;i<ks.length;++i)if(p[ks[i]]!=null&&ks[i]!=="__proto__")')("this[ks[i]]=p[ks[i]]")},g.fromJSON=function(e,t,r){if(void 0===r&&(r=0),r>h.nestingLimit)throw Error("max depth exceeded");var f=new g(e,t.options);f.extensions=t.extensions,f.reserved=t.reserved;for(var l=Object.keys(t.fields),c=0;c<l.length;++c)f.add((void 0!==t.fields[l[c]].keyType?a.fromJSON:s.fromJSON)(l[c],t.fields[l[c]]));if(t.oneofs)for(l=Object.keys(t.oneofs),c=0;c<l.length;++c)f.add(o.fromJSON(l[c],t.oneofs[l[c]]));if(t.nested)for(l=Object.keys(t.nested),c=0;c<l.length;++c){var p=t.nested[l[c]];f.add((void 0!==p.id?s.fromJSON:void 0!==p.fields?g.fromJSON:void 0!==p.values?i.fromJSON:void 0!==p.methods?u.fromJSON:n.fromJSON)(l[c],p,r+1))}return t.extensions&&t.extensions.length&&(f.extensions=t.extensions),t.reserved&&t.reserved.length&&(f.reserved=t.reserved),t.group&&(f.group=!0),t.comment&&(f.comment=t.comment),t.edition&&(f._edition=t.edition),f._defaultEdition="proto3",f},g.prototype.toJSON=function(e){var t=n.prototype.toJSON.call(this,e),r=!!e&&Boolean(e.keepComments);return h.toObject(["edition",this._editionToJSON(),"options",t&&t.options||void 0,"oneofs",n.arrayToJSON(this.oneofsArray,e),"fields",n.arrayToJSON(this.fieldsArray.filter(function(e){return!e.declaringField}),e)||{},"extensions",this.extensions&&this.extensions.length?this.extensions:void 0,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"group",this.group||void 0,"nested",t&&t.nested||void 0,"comment",r?this.comment:void 0])},g.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;n.prototype.resolveAll.call(this);var e=this.oneofsArray;for(r=0;r<e.length;)e[r++].resolve();for(var t=this.fieldsArray,r=0;r<t.length;)t[r++].resolve();return this},g.prototype._resolveFeaturesRecursive=function(e){return this._needsRecursiveFeatureResolution?(e=this._edition||e,n.prototype._resolveFeaturesRecursive.call(this,e),this.oneofsArray.forEach(t=>{t._resolveFeatures(e)}),this.fieldsArray.forEach(t=>{t._resolveFeatures(e)}),this):this},g.prototype.get=function(e){return Object.prototype.hasOwnProperty.call(this.fields,e)?this.fields[e]:this.oneofs&&Object.prototype.hasOwnProperty.call(this.oneofs,e)?this.oneofs[e]:this.nested&&Object.prototype.hasOwnProperty.call(this.nested,e)?this.nested[e]:null},g.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);if(e instanceof s&&void 0===e.extend){if(this._fieldsById?this._fieldsById[e.id]:this.fieldsById[e.id])throw Error("duplicate id "+e.id+" in "+this);if(this.isReservedId(e.id))throw Error("id "+e.id+" is reserved in "+this);if(this.isReservedName(e.name)||"$"===e.name.charAt(0))throw Error("name '"+e.name+"' is reserved in "+this);return"__proto__"===e.name?this:(e.parent&&e.parent.remove(e),this.fields[e.name]=e,e.message=this,e.onAdd(this),b(this))}if(e instanceof o){if("$"===e.name.charAt(0))throw Error("name '"+e.name+"' is reserved in "+this);return"__proto__"===e.name?this:(this.oneofs||(this.oneofs={}),this.oneofs[e.name]=e,e.onAdd(this),b(this))}return n.prototype.add.call(this,e)},g.prototype.remove=function(e){if(e instanceof s&&void 0===e.extend){if(!h.remove(this.fields,e,e.name))throw Error(e+" is not a member of "+this);return e.parent=null,e.onRemove(this),b(this)}if(e instanceof o){if(!h.remove(this.oneofs,e,e.name))throw Error(e+" is not a member of "+this);return e.parent=null,e.onRemove(this),b(this)}return n.prototype.remove.call(this,e)},g.prototype.isReservedId=function(e){return n.isReservedId(this.reserved,e)},g.prototype.isReservedName=function(e){return n.isReservedName(this.reserved,e)},g.prototype.create=function(e){return new this.ctor(e)},g.prototype.setup=function(){var e=this.root;if(e&&e._needsRecursiveFeatureResolution){var t=e._edition||this._edition;t&&e._resolveFeaturesRecursive(t)}for(var r=this.fullName,n=[],i=0;i<this.fieldsArray.length;++i)n.push(this._fieldsArray[i].resolve().resolvedType);this.encode=p(this)({Writer:c,types:n,util:h}),this.decode=d(this)({Reader:l,types:n,util:h,C:this.ctor}),this.verify=y(this)({types:n,util:h}),this.fromObject=m.fromObject(this)({types:n,util:h,C:this.ctor}),this.toObject=m.toObject(this)({types:n,util:h});var o=v[r];if(o){var s=Object.create(this);s._ctor=this.ctor,s.fromObject=this.fromObject,this.fromObject=o.fromObject.bind(s),s.toObject=this.toObject,this.toObject=o.toObject.bind(s)}return this},g.prototype.encode=function(e,t){return this.setup().encode.apply(this,arguments)},g.prototype.encodeDelimited=function(e,t){return this.encode(e,(t||c.create()).fork()).ldelim()},g.prototype.decode=function(e,t){return this.setup().decode.apply(this,arguments)},g.prototype.decodeDelimited=function(e){return e instanceof l||(e=l.create(e)),this.decode(e,e.uint32())},g.prototype.verify=function(e){return this.setup().verify.apply(this,arguments)},g.prototype.fromObject=function(e){return this.setup().fromObject.apply(this,arguments)},g.prototype.toObject=function(e,t){return this.setup().toObject.apply(this,arguments)},g.prototype.getTypeUrl=function(e){void 0===e&&(e="type.googleapis.com");var t=this.fullName;return e+"/"+("."===t.charAt(0)?t.substring(1):t)},g.d=function(e){return function(t){h.decorateType(t,e)}}},69082(e,t,r){"use strict";var n=t,i=r(34595),o=["double","float","int32","uint32","sint32","fixed32","sfixed32","int64","uint64","sint64","fixed64","sfixed64","bool","string","bytes"];function s(e,t){var r=0,n=Object.create(null);for(t|=0;r<e.length;)n[o[r+t]]=e[r++];return n}n.basic=s([1,5,0,0,0,5,5,0,0,0,1,1,0,2,2]),n.defaults=s([0,0,0,0,0,0,0,0,0,0,0,0,!1,"",i.emptyArray,null]),n.long=s([0,0,0,1,1],7),n.mapKey=s([0,0,0,5,5,0,0,0,1,1,0,2],2),n.packed=s([1,5,0,0,0,5,5,0,0,0,1,1,0])},34595(e,t,r){"use strict";var n,i,o=e.exports=r(83499),s=r(38226);o.codegen=r(3829),o.fetch=r(83460),o.path=r(44013),o.patterns=r(51717);var a=o.patterns.reservedRe;o.fs=r(87765),o.toArray=function(e){if(e){for(var t=Object.keys(e),r=new Array(t.length),n=0;n<t.length;)r[n]=e[t[n++]];return r}return[]},o.toObject=function(e){for(var t={},r=0;r<e.length;){var n=e[r++],i=e[r++];void 0!==i&&(t[n]=i)}return t},o.remove=function(e,t,r){if(!e)return!1;if(void 0!==r&&Object.prototype.hasOwnProperty.call(e,r)&&e[r]===t)return delete e[r],!0;for(var n=Object.keys(e),i=0;i<n.length;++i)if(e[n[i]]===t)return delete e[n[i]],!0;return!1},o.isReserved=function(e){return a.test(e)},o.safeProp=function(e){return!/^[$\w_]+$/.test(e)||a.test(e)?"["+JSON.stringify(e)+"]":"."+e},o.ucFirst=function(e){return e.charAt(0).toUpperCase()+e.substring(1)};var u=/_([a-z])/g;o.camelCase=function(e){return e.substring(0,1)+e.substring(1).replace(u,function(e,t){return t.toUpperCase()})},o.jsonName=function(e){for(var t="",r=!1,n=0;n<e.length;++n){var i=e.charAt(n);"_"===i?r=!0:r?(t+=i.toUpperCase(),r=!1):t+=i}return t},o.compareFieldsById=function(e,t){return e.id-t.id},o.decorateType=function(e,t){if(e.$type)return t&&e.$type.name!==t&&(o.decorateRoot.remove(e.$type),e.$type.name=t,o.decorateRoot.add(e.$type)),e.$type;n||(n=r(57183));var i=new n(t||e.name);return o.decorateRoot.add(i),i.ctor=e,Object.defineProperty(e,"$type",{value:i,enumerable:!1}),Object.defineProperty(e.prototype,"$type",{value:i,enumerable:!1}),i};var f=0;o.decorateEnum=function(e){if(e.$type)return e.$type;i||(i=r(33990));var t=new i("Enum"+f++,e);return o.decorateRoot.add(t),Object.defineProperty(e,"$type",{value:t,enumerable:!1}),t},o.setProperty=function(e,t,r,n){if("object"!=typeof e)throw TypeError("dst must be an object");if(!t)throw TypeError("path must be specified");if((t=t.split(".")).length>o.recursionLimit)throw Error("max depth exceeded");return function e(t,r,i){var s=r.shift();if(o.isUnsafeProperty(s))return t;if(r.length>0)t[s]=e(t[s]||{},r,i);else{var a=t[s];if(a&&n)return t;a&&(i=[].concat(a).concat(i)),t[s]=i}return t}(e,t,r)},Object.defineProperty(o,"decorateRoot",{get:function(){return s.decorated||(s.decorated=new(r(23079)))}})},42233(e){"use strict";e.exports=function(e,t){for(var r=new Array(arguments.length-1),n=0,i=2,o=!0;i<arguments.length;)r[n++]=arguments[i++];return new Promise(function(i,s){r[n]=function(e){if(o)if(o=!1,e)s(e);else{for(var t=new Array(arguments.length-1),r=0;r<t.length;)t[r++]=arguments[r];i.apply(null,t)}};try{e.apply(t||null,r)}catch(e){o&&(o=!1,s(e))}})}},31209(e,t){"use strict";var r=t;r.length=function(e){var t=e.length;if(!t)return 0;for(;t>0&&"="===e.charAt(t-1);)--t;return Math.floor(3*t/4)};for(var n=new Array(64),i=new Array(123),o=0;o<64;)i[n[o]=o<26?o+65:o<52?o+71:o<62?o-4:o-59|43]=o++;i[45]=62,i[95]=63,r.encode=function(e,t,r){for(var i,o=null,s=[],a=0,u=0;t<r;){var f=e[t++];switch(u){case 0:s[a++]=n[f>>2],i=(3&f)<<4,u=1;break;case 1:s[a++]=n[i|f>>4],i=(15&f)<<2,u=2;break;case 2:s[a++]=n[i|f>>6],s[a++]=n[63&f],u=0}a>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,s)),a=0)}return u&&(s[a++]=n[i],s[a++]=61,1===u&&(s[a++]=61)),o?(a&&o.push(String.fromCharCode.apply(String,s.slice(0,a))),o.join("")):String.fromCharCode.apply(String,s.slice(0,a))};var s="invalid encoding";r.decode=function(e,t,r){for(var n,o=r,a=0,u=0;u<e.length;){var f=e.charCodeAt(u++);if(61===f&&a>1)break;if(void 0===(f=i[f]))throw Error(s);switch(a){case 0:n=f,a=1;break;case 1:t[r++]=n<<2|(48&f)>>4,n=f,a=2;break;case 2:t[r++]=(15&n)<<4|(60&f)>>2,n=f,a=3;break;case 3:t[r++]=(3&n)<<6|f,a=0}}if(1===a)throw Error(s);return r-o};var a=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/,u=/[-_]/,f=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2}(?:==)?|[A-Za-z0-9_-]{3}=?)?$/;r.test=function(e){return a.test(e)||u.test(e)&&f.test(e)}},3829(e,t,r){"use strict";e.exports=i;var n=r(51717).reservedRe;function i(e,t){"string"==typeof e&&(t=e,e=void 0);var r=[];function o(e){if("string"!=typeof e){var t=s();if(i.verbose&&console.log("codegen: "+t),t="return "+t,e){for(var n=Object.keys(e),a=new Array(n.length+1),u=new Array(n.length),f=0;f<n.length;)a[f]=n[f],u[f]=e[n[f++]];return a[f]=t,Function.apply(null,a).apply(null,u)}return Function(t)()}for(var l=new Array(arguments.length-1),c=0;c<l.length;)l[c]=arguments[++c];if(c=0,e=e.replace(/%([%dfijs])/g,function(e,t){var r=l[c++];switch(t){case"d":case"f":return String(Number(r));case"i":return String(Math.floor(r));case"j":return JSON.stringify(r);case"s":return String(r)}return"%"}),c!==l.length)throw Error("parameter count mismatch");return r.push(e),o}function s(i){return"function "+(((o=i||t)&&(o=String(o).replace(/[^\w$]/g,""))?(/^\d/.test(o)&&(o="_"+o),n.test(o)?o+"_":o):"")+"(")+(e&&e.join(",")||"")+"){\n "+r.join("\n ")+"\n}";var o}return Object.defineProperty(o,"toString",{value:s,writable:!0,enumerable:!0,configurable:!0}),o}i.verbose=!1},5096(e){"use strict";function t(){this._listeners=Object.create(null)}e.exports=t,t.prototype.on=function(e,t,r){return(this._listeners[e]||(this._listeners[e]=[])).push({fn:t,ctx:r||this}),this},t.prototype.off=function(e,t){if(void 0===e)this._listeners=Object.create(null);else if(void 0===t)this._listeners[e]=[];else{var r=this._listeners[e];if(!r)return this;for(var n=0;n<r.length;)r[n].fn===t?r.splice(n,1):++n}return this},t.prototype.emit=function(e){var t=this._listeners[e];if(t){for(var r=[],n=1;n<arguments.length;)r.push(arguments[n++]);for(n=0;n<t.length;)t[n].fn.apply(t[n++].ctx,r)}return this}},83460(e,t,r){"use strict";e.exports=o;var n=r(42233),i=r(87765);function o(e,t,r){return"function"==typeof t?(r=t,t={}):t||(t={}),r?!t.xhr&&i&&i.readFile?i.readFile(e,function(n,i){return n&&"undefined"!=typeof XMLHttpRequest?o.xhr(e,t,r):n?r(n):r(null,t.binary?i:i.toString("utf8"))}):o.xhr(e,t,r):n(o,this,e,t)}o.xhr=function(e,t,r){var n=new XMLHttpRequest;n.onreadystatechange=function(){if(4===n.readyState){if(0!==n.status&&200!==n.status)return r(Error("status "+n.status));if(t.binary){var e=n.response;if(!e){e=[];for(var i=0;i<n.responseText.length;++i)e.push(255&n.responseText.charCodeAt(i))}return r(null,"undefined"!=typeof Uint8Array?new Uint8Array(e):e)}return r(null,n.responseText)}},t.binary&&("overrideMimeType"in n&&n.overrideMimeType("text/plain; charset=x-user-defined"),n.responseType="arraybuffer"),n.open("GET",e),n.send()}},47378(e){"use strict";function t(e){return"undefined"!=typeof Float32Array?function(){var t=new Float32Array([-0]),r=new Uint8Array(t.buffer),n=128===r[3];function i(e,n,i){t[0]=e,n[i]=r[0],n[i+1]=r[1],n[i+2]=r[2],n[i+3]=r[3]}function o(e,n,i){t[0]=e,n[i]=r[3],n[i+1]=r[2],n[i+2]=r[1],n[i+3]=r[0]}function s(e,n){return r[0]=e[n],r[1]=e[n+1],r[2]=e[n+2],r[3]=e[n+3],t[0]}function a(e,n){return r[3]=e[n],r[2]=e[n+1],r[1]=e[n+2],r[0]=e[n+3],t[0]}e.writeFloatLE=n?i:o,e.writeFloatBE=n?o:i,e.readFloatLE=n?s:a,e.readFloatBE=n?a:s}():function(){function t(e,t,r,n){var i=t<0?1:0;if(i&&(t=-t),0===t)e(1/t>0?0:2147483648,r,n);else if(isNaN(t))e(2143289344,r,n);else if(t>34028234663852886e22)e((i<<31|2139095040)>>>0,r,n);else if(t<11754943508222875e-54)e((i<<31|Math.round(t/1401298464324817e-60))>>>0,r,n);else{var o=Math.floor(Math.log(t)/Math.LN2);e((i<<31|o+127<<23|8388607&Math.round(t*Math.pow(2,-o)*8388608))>>>0,r,n)}}function s(e,t,r){var n=e(t,r),i=2*(n>>31)+1,o=n>>>23&255,s=8388607&n;return 255===o?s?NaN:i*(1/0):0===o?1401298464324817e-60*i*s:i*Math.pow(2,o-150)*(s+8388608)}e.writeFloatLE=t.bind(null,r),e.writeFloatBE=t.bind(null,n),e.readFloatLE=s.bind(null,i),e.readFloatBE=s.bind(null,o)}(),"undefined"!=typeof Float64Array?function(){var t=new Float64Array([-0]),r=new Uint8Array(t.buffer),n=128===r[7];function i(e,n,i){t[0]=e,n[i]=r[0],n[i+1]=r[1],n[i+2]=r[2],n[i+3]=r[3],n[i+4]=r[4],n[i+5]=r[5],n[i+6]=r[6],n[i+7]=r[7]}function o(e,n,i){t[0]=e,n[i]=r[7],n[i+1]=r[6],n[i+2]=r[5],n[i+3]=r[4],n[i+4]=r[3],n[i+5]=r[2],n[i+6]=r[1],n[i+7]=r[0]}function s(e,n){return r[0]=e[n],r[1]=e[n+1],r[2]=e[n+2],r[3]=e[n+3],r[4]=e[n+4],r[5]=e[n+5],r[6]=e[n+6],r[7]=e[n+7],t[0]}function a(e,n){return r[7]=e[n],r[6]=e[n+1],r[5]=e[n+2],r[4]=e[n+3],r[3]=e[n+4],r[2]=e[n+5],r[1]=e[n+6],r[0]=e[n+7],t[0]}e.writeDoubleLE=n?i:o,e.writeDoubleBE=n?o:i,e.readDoubleLE=n?s:a,e.readDoubleBE=n?a:s}():function(){function t(e,t,r,n,i,o){var s=n<0?1:0;if(s&&(n=-n),0===n)e(0,i,o+t),e(1/n>0?0:2147483648,i,o+r);else if(isNaN(n))e(0,i,o+t),e(2146959360,i,o+r);else if(n>17976931348623157e292)e(0,i,o+t),e((s<<31|2146435072)>>>0,i,o+r);else{var a;if(n<22250738585072014e-324)e((a=n/5e-324)>>>0,i,o+t),e((s<<31|a/4294967296)>>>0,i,o+r);else{var u=Math.floor(Math.log(n)/Math.LN2);1024===u&&(u=1023),e(4503599627370496*(a=n*Math.pow(2,-u))>>>0,i,o+t),e((s<<31|u+1023<<20|1048576*a&1048575)>>>0,i,o+r)}}}function s(e,t,r,n,i){var o=e(n,i+t),s=e(n,i+r),a=2*(s>>31)+1,u=s>>>20&2047,f=4294967296*(1048575&s)+o;return 2047===u?f?NaN:a*(1/0):0===u?5e-324*a*f:a*Math.pow(2,u-1075)*(f+4503599627370496)}e.writeDoubleLE=t.bind(null,r,0,4),e.writeDoubleBE=t.bind(null,n,4,0),e.readDoubleLE=s.bind(null,i,0,4),e.readDoubleBE=s.bind(null,o,4,0)}(),e}function r(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}function n(e,t,r){t[r]=e>>>24,t[r+1]=e>>>16&255,t[r+2]=e>>>8&255,t[r+3]=255&e}function i(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function o(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}e.exports=t(t)},87765(e,t,r){"use strict";var n=null;try{(n=r(73454))&&n.readFile&&n.readFileSync||(n=null)}catch(e){}e.exports=n},2176(e){"use strict";var t;function r(e,t){this.lo=e>>>0,this.hi=t>>>0}e.exports=r;var n=r.zero=new r(0,0);n.toNumber=function(){return 0},n.zzEncode=n.zzDecode=function(){return this},n.length=function(){return 1};var i=r.zeroHash="\0\0\0\0\0\0\0\0";r.fromNumber=function(e){if(0===e)return n;var t=e<0;t&&(e=-e);var i=e>>>0,o=(e-i)/4294967296>>>0;return t&&(o=~o>>>0,i=~i>>>0,++i>4294967295&&(i=0,++o>4294967295&&(o=0))),new r(i,o)},r.from=function(e){if("number"==typeof e)return r.fromNumber(e);if("string"==typeof e||e instanceof String){if(!t)return r.fromNumber(parseInt(e,10));e=t.fromString(e)}return e.low||e.high?new r(e.low>>>0,e.high>>>0):n},r.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=1+~this.lo>>>0,r=~this.hi>>>0;return t||(r=r+1>>>0),-(t+4294967296*r)}return this.lo+4294967296*this.hi},r.prototype.toLong=function(e){return t?new t(0|this.lo,0|this.hi,Boolean(e)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(e)}};var o=String.prototype.charCodeAt;r.fromHash=function(e){return e===i?n:new r((o.call(e,0)|o.call(e,1)<<8|o.call(e,2)<<16|o.call(e,3)<<24)>>>0,(o.call(e,4)|o.call(e,5)<<8|o.call(e,6)<<16|o.call(e,7)<<24)>>>0)},r.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},r.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},r.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},r.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,r=this.hi>>>24;return 0===r?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:r<128?9:10},r._configure=function(e){t=e}},83499(e,t,r){"use strict";var n=t;function i(e){return"__proto__"===e||"prototype"===e||"constructor"===e}function o(e){var t="boolean"==typeof arguments[arguments.length-1],r=t?arguments.length-1:arguments.length;t=t&&arguments[arguments.length-1];for(var n=1;n<r;++n){var o=arguments[n];if(o)for(var s=Object.keys(o),a=0;a<s.length;++a)i(s[a])||t&&Object.prototype.hasOwnProperty.call(e,s[a])&&void 0!==e[s[a]]||(e[s[a]]=o[s[a]])}return e}function s(e){function t(e,r){if(!(this instanceof t))return new t(e,r);Object.defineProperty(this,"message",{get:function(){return e}}),Error.captureStackTrace?Error.captureStackTrace(this,t):Object.defineProperty(this,"stack",{value:(new Error).stack||""}),r&&o(this,r)}return t.prototype=Object.create(Error.prototype,{constructor:{value:t,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return e},set:void 0,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+": "+this.message},writable:!0,enumerable:!1,configurable:!0}}),t}n.asPromise=r(42233),n.base64=r(31209),n.EventEmitter=r(5096),n.float=r(47378),n.utf8=r(73025),n.pool=r(36612),n.LongBits=r(2176),n.isUnsafeProperty=i,n.isNode=Boolean(void 0!==r.g&&r.g&&r.g.process&&r.g.process.versions&&r.g.process.versions.node),n.global=n.isNode&&r.g||"undefined"!=typeof window&&window||"undefined"!=typeof self&&self||"undefined"!=typeof globalThis&&globalThis||this,n.emptyArray=Object.freeze?Object.freeze([]):[],n.emptyObject=Object.freeze?Object.freeze({}):{},n.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},n.isString=function(e){return"string"==typeof e||e instanceof String},n.isObject=function(e){return e&&"object"==typeof e},n.isset=n.isSet=function(e,t){var r=e[t];return!(null==r||!Object.hasOwnProperty.call(e,t))&&("object"!=typeof r||(Array.isArray(r)?r.length:Object.keys(r).length)>0)},n.Buffer=function(){try{var e=n.global.Buffer;return e.prototype.utf8Write||n.isNode?e:null}catch(e){return null}}(),n.newBuffer=function(e){var t=n.Buffer;return"number"==typeof e?t?t.allocUnsafe(e):new Uint8Array(e):t?t.from(e):new Uint8Array(e)},n.rawField=function(e,t,r){var i=[],o=e<<3|t;for(o>>>=0;o>127;)i.push(127&o|128),o>>>=7;i.push(o);for(var s=0;s<r.length;++s)i.push(r[s]);return n.newBuffer(i)},n.Array=Uint8Array,n.Long=n.global.dcodeIO&&n.global.dcodeIO.Long||n.global.Long||function(){try{var e=r(35017);return e&&e.isLong?e:null}catch(e){return null}}(),n.key2Re=/^(?:true|false|0|1)$/,n.key32Re=/^-?(?:0|[1-9][0-9]*)$/,n.key64Re=/^(?:[\x00-\xff]{8}|-?(?:0|[1-9][0-9]*))$/,n.longToHash=function(e){return e?n.LongBits.from(e).toHash():n.LongBits.zeroHash},n.longFromHash=function(e,t){var r=n.LongBits.fromHash(e);return n.Long?n.Long.fromBits(r.lo,r.hi,t):r.toNumber(Boolean(t))},n.longFromKey=function(e,t){return n.key64Re.test(e)&&!n.key32Re.test(e)?n.longFromHash(e,t):e},n.boolFromKey=function(e){return"true"===e||"1"===e},n.merge=o,n.nestingLimit=32,n.recursionLimit=100,n.makeProp=function(e,t,r){Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:void 0===r||r,configurable:!0,writable:!0})},n.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},n.newError=s,n.ProtocolError=s("ProtocolError"),n.oneOfGetter=function(e){for(var t={},r=0;r<e.length;++r)t[e[r]]=1;return function(){for(var e=Object.keys(this),r=e.length-1;r>-1;--r)if(1===t[e[r]]&&void 0!==this[e[r]]&&null!==this[e[r]])return e[r]}},n.oneOfSetter=function(e){return function(t){for(var r=0;r<e.length;++r)e[r]!==t&&delete this[e[r]]}},n.toJSONOptions={longs:String,enums:String,bytes:String,json:!0}},44013(e,t){"use strict";var r=t,n=/^[a-zA-Z][a-zA-Z0-9+.-]+:\/\//,i=r.isAbsolute=function(e){return/^(?:\/|\w+:|\\\\\w+)/.test(e)},o=r.normalize=function(e){var t=function(e){if("undefined"==typeof URL||!n.test(e))return null;try{return new URL(e).href}catch(e){return null}}(e);if(t)return t;var r=e.substring(0,2),o="";"\\\\"===r&&(o=r,e=e.substring(2));var s=(e=e.replace(/\\/g,"/").replace(/\/{2,}/g,"/")).split("/"),a=i(e),u="";a&&(u=s.shift()+"/");for(var f=0;f<s.length;)".."===s[f]?f>0&&".."!==s[f-1]?s.splice(--f,2):a?s.splice(f,1):++f:"."===s[f]?s.splice(f,1):++f;return o+u+s.join("/")};r.resolve=function(e,t,r){var s=function(e,t){if("undefined"==typeof URL||!n.test(e)||n.test(t))return null;try{return new URL(t,e).href}catch(e){return null}}(e,t);return s||(r||(t=o(t)),i(t)?t:(r||(e=o(e)),(e=e.replace(/(?:\/|^)[^/]+$/,"")).length?o(e+"/"+t):t))}},51717(e,t){"use strict";var r=t;r.numberRe=/^(?![eE])[0-9]*(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?$/,r.typeRefRe=/^(?:\.?[a-zA-Z_][a-zA-Z_0-9]*)(?:\.[a-zA-Z_][a-zA-Z_0-9]*)*$/,r.reservedRe=/^(?:do|if|in|for|let|new|try|var|case|else|enum|eval|false|null|this|true|void|with|break|catch|class|const|super|throw|while|yield|delete|export|import|public|return|static|switch|typeof|default|extends|finally|package|private|continue|debugger|function|arguments|interface|protected|implements|instanceof)$/},36612(e){"use strict";e.exports=function(e,t,r){var n=r||8192,i=n>>>1,o=null,s=n;return function(r){if(r<1||r>i)return e(r);s+r>n&&(o=e(n),s=0);var a=t.call(o,s,s+=r);return 7&s&&(s=1+(7|s)),a}}},73025(e,t){"use strict";var r,n=t,i=new TextDecoder("utf-8",{ignoreBOM:!0});try{r=new TextDecoder("utf-8",{fatal:!0,ignoreBOM:!0})}catch(e){r=i}function o(e,t,r,n){for(var i=t;i<r;){var o=e[i++];if(o<=127)n+=String.fromCharCode(o);else if(o>=192&&o<224){var s=(31&o)<<6|63&e[i++];n+=s>=128?String.fromCharCode(s):"<22>"}else if(o>=224&&o<240){var a=(15&o)<<12|(63&e[i++])<<6|63&e[i++];n+=a>=2048?String.fromCharCode(a):"<22>"}else if(o>=240){var u=(7&o)<<18|(63&e[i++])<<12|(63&e[i++])<<6|63&e[i++];u<65536||u>1114111?n+="<22>":(u-=65536,n+=String.fromCharCode(55296+(u>>10)),n+=String.fromCharCode(56320+(1023&u)))}}return n}function s(e,t,r,n){var i=0===r&&n===t.length?t:t.subarray(r,n);return e.decode(i)}n.length=function(e){for(var t=0,r=0,n=0;n<e.length;++n)(r=e.charCodeAt(n))<128?t+=1:r<2048?t+=2:55296==(64512&r)&&56320==(64512&e.charCodeAt(n+1))?(++n,t+=4):t+=3;return t},n.read=function(e,t,r){if(r-t<1)return"";if(r-t>=64)return s(i,e,t,r);for(var n,a,u,f,l,c,h,p,d="",y=t;y+7<r;y+=8){if(128&((n=e[y])|(a=e[y+1])|(u=e[y+2])|(f=e[y+3])|(l=e[y+4])|(c=e[y+5])|(h=e[y+6])|(p=e[y+7])))return o(e,y,r,d);d+=String.fromCharCode(n,a,u,f,l,c,h,p)}for(;y<r;++y){if(128&(n=e[y]))return o(e,y,r,d);d+=String.fromCharCode(n)}return d},n.readStrict=function(e,t,n){if(n-t<1)return"";if(n-t>=64)return s(r,e,t,n);for(var i,o,a,u,f,l,c,h,p="",d=t;d+7<n;d+=8){if(128&((i=e[d])|(o=e[d+1])|(a=e[d+2])|(u=e[d+3])|(f=e[d+4])|(l=e[d+5])|(c=e[d+6])|(h=e[d+7])))return p+s(r,e,d,n);p+=String.fromCharCode(i,o,a,u,f,l,c,h)}for(;d<n;++d){if(128&(i=e[d]))return p+s(r,e,d,n);p+=String.fromCharCode(i)}return p},n.write=function(e,t,r){for(var n,i,o=r,s=0;s<e.length;++s)(n=e.charCodeAt(s))<128?t[r++]=n:n<2048?(t[r++]=n>>6|192,t[r++]=63&n|128):55296==(64512&n)&&56320==(64512&(i=e.charCodeAt(s+1)))?(n=65536+((1023&n)<<10)+(1023&i),++s,t[r++]=n>>18|240,t[r++]=n>>12&63|128,t[r++]=n>>6&63|128,t[r++]=63&n|128):(t[r++]=n>>12|224,t[r++]=n>>6&63|128,t[r++]=63&n|128);return r-o}},8273(e,t,r){"use strict";e.exports=function(e){var t=i.codegen(["m","q"])('if(typeof m!=="object"||m===null)')("return%j","object expected")("if(q===undefined)q=0")("if(q>util.recursionLimit)")("return%j","max depth exceeded"),r={};e.oneofsArray.length&&t("var p={}");for(var n=0;n<e.fieldsArray.length;++n){var u=e._fieldsArray[n].resolve(),f="m"+i.safeProp(u.name);if(u.optional&&t("if(%s!=null&&Object.hasOwnProperty.call(m,%j)){",f,u.name),u.map)t("if(!util.isObject(%s))",f)("return%j",o(u,"object"))("var k=Object.keys(%s)",f)("for(var i=0;i<k.length;++i){"),a(t,u,"k[i]"),s(t,u,n,f+"[k[i]]")("}");else if(u.repeated)t("if(!Array.isArray(%s))",f)("return%j",o(u,"array"))("for(var i=0;i<%s.length;++i){",f),s(t,u,n,f+"[i]")("}");else{if(u.partOf){var l=i.safeProp(u.partOf.name);1===r[u.partOf.name]&&t("if(p%s===1)",l)("return%j",u.partOf.name+": multiple values"),r[u.partOf.name]=1,t("p%s=1",l)}s(t,u,n,f)}u.optional&&t("}")}return t("return null")};var n=r(33990),i=r(34595);function o(e,t){return e.name+": "+t+(e.repeated&&"array"!==t?"[]":e.map&&"object"!==t?"{k:"+e.keyType+"}":"")+" expected"}function s(e,t,r,i){var s=t.resolvedType;if(s)if(s instanceof n)if("CLOSED"===s._features.enum_type){e("switch(%s){",i)("default:")("return%j",o(t,"enum value"));for(var a=Object.keys(s.values),u=0;u<a.length;++u)e("case %i:",s.values[a[u]]);e("break")("}")}else e('if(typeof %s!=="number"||(%s|0)!==%s)',i,i,i)("return%j",o(t,"enum value"));else e("{")("var e=types[%i].verify(%s,q+1);",r,i)("if(e)")("return%j+e",t.name+".")("}");else switch(t.type){case"int32":case"uint32":case"sint32":case"fixed32":case"sfixed32":e("if(!util.isInteger(%s))",i)("return%j",o(t,"integer"));break;case"int64":case"uint64":case"sint64":case"fixed64":case"sfixed64":e("if(!util.isInteger(%s)&&!(%s&&util.isInteger(%s.low)&&util.isInteger(%s.high)))",i,i,i,i)("return%j",o(t,"integer|Long"));break;case"float":case"double":e('if(typeof %s!=="number")',i)("return%j",o(t,"number"));break;case"bool":e('if(typeof %s!=="boolean")',i)("return%j",o(t,"boolean"));break;case"string":e("if(!util.isString(%s))",i)("return%j",o(t,"string"));break;case"bytes":e('if(!(%s&&typeof %s.length==="number"||util.isString(%s)))',i,i,i)("return%j",o(t,"buffer"))}return e}function a(e,t,r){switch(t.keyType){case"int32":case"uint32":case"sint32":case"fixed32":case"sfixed32":e("if(!util.key32Re.test(%s))",r)("return%j",o(t,"integer key"));break;case"int64":case"uint64":case"sint64":case"fixed64":case"sfixed64":e("if(!util.key64Re.test(%s))",r)("return%j",o(t,"integer|Long key"));break;case"bool":e("if(!util.key2Re.test(%s))",r)("return%j",o(t,"boolean key"))}return e}},25855(e,t,r){"use strict";var n=t,i=r(7652),o=r(83499);n[".google.protobuf.Any"]={fromObject:function(e,t){if(e&&e["@type"]){var r=e["@type"].substring(e["@type"].lastIndexOf("/")+1),n=this.lookup(r,[this.constructor]);if(n){var i="."===e["@type"].charAt(0)?e["@type"].slice(1):e["@type"];return-1===i.indexOf("/")&&(i="/"+i),this.create({type_url:i,value:n.encode(n.fromObject(e,void 0===t?1:t+1)).finish()})}}return this.fromObject(e,t)},toObject:function(e,t,r){if(void 0===r&&(r=0),r>o.recursionLimit)throw Error("max depth exceeded");var n="",s="";if(t&&t.json&&e.type_url&&e.value){s=e.type_url.substring(e.type_url.lastIndexOf("/")+1),n=e.type_url.substring(0,e.type_url.lastIndexOf("/")+1);var a=this.lookup(s,[this.constructor]);a&&(e=a.decode(e.value,void 0,void 0,r+1))}if(!(e instanceof this.ctor)&&e instanceof i){var u=e.$type.toObject(e,t,r+1);return""===n&&(n="type.googleapis.com/"),s=n+("."===e.$type.fullName[0]?e.$type.fullName.slice(1):e.$type.fullName),u["@type"]=s,u}return this.toObject(e,t,r)}}},86804(e,t,r){"use strict";e.exports=u;var n,i=r(83499),o=i.LongBits,s=i.base64,a=i.utf8;function u(){this.pos=0,this.buf=this.constructor.alloc(64),this.view=null,this.states=null}Object.defineProperty(u.prototype,"len",{configurable:!0,enumerable:!0,get:function(){return this.pos}});var f=function(){return i.Buffer?function(){return(u.create=function(){return new n})()}:function(){return new u}};function l(e){return e<128?1:e<16384?2:e<2097152?3:e<268435456?4:5}function c(e,t,r){for(;e>127;)t[r++]=127&e|128,e>>>=7;return t[r]=e,r+1}function h(e,t,r){for(var n=e.lo,i=e.hi;i;)t[r++]=127&n|128,n=(n>>>7|i<<25)>>>0,i>>>=7;for(;n>127;)t[r++]=127&n|128,n>>>=7;return t[r]=n,r+1}function p(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}function d(e,t,r){var n=e.view;if(n||t<r)return n;var i=e.buf;return e.view=new DataView(i.buffer,i.byteOffset,i.byteLength)}u.create=f(),u.alloc=function(e){return new Uint8Array(e)},u.alloc=i.pool(u.alloc,Uint8Array.prototype.subarray),u.prototype._reserve=function(e){var t=this.pos+e;if(t>this.buf.length){var r=this.buf.length<<1;r<t&&(r=t);var n=this.constructor.alloc(r);n.set(this.buf.subarray(0,this.pos),0),this.buf=n,this.view=null}},u.prototype.uint32=function(e){e>>>=0,this._reserve(5);var t=this.pos;return this.pos=c(e,this.buf,t),this},u.prototype.int32=function(e){return(e|=0)<0?(this._reserve(10),h(o.fromNumber(e),this.buf,this.pos),this.pos+=10,this):this.uint32(e)},u.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},u.prototype.uint64=function(e){var t=o.from(e);this._reserve(10);var r=this.pos;return this.pos=h(t,this.buf,r),this},u.prototype.int64=u.prototype.uint64,u.prototype.sint64=function(e){var t=o.from(e).zzEncode();this._reserve(10);var r=this.pos;return this.pos=h(t,this.buf,r),this},u.prototype.bool=function(e){return this._reserve(1),this.buf[this.pos++]=e?1:0,this},u.prototype.fixed32=function(e){return this._reserve(4),p(e>>>0,this.buf,this.pos),this.pos+=4,this},u.prototype.sfixed32=u.prototype.fixed32,u.prototype.fixed64=function(e){var t=o.from(e);return this._reserve(8),p(t.lo,this.buf,this.pos),p(t.hi,this.buf,this.pos+4),this.pos+=8,this},u.prototype.sfixed64=u.prototype.fixed64,u.prototype.float=function(e){return this._reserve(4),i.float.writeFloatLE(e,this.buf,this.pos),this.pos+=4,this},u.prototype.double=function(e){return this._reserve(8),i.float.writeDoubleLE(e,this.buf,this.pos),this.pos+=8,this},u.prototype.bytes=function(e){var t=e.length>>>0;if(!t)return this._reserve(1),this.buf[this.pos++]=0,this;if(i.isString(e)){var r=u.alloc(t=s.length(e));s.decode(e,r,0),e=r}return this.uint32(t),this._reserve(t),this.buf.set(e,this.pos),this.pos+=t,this},u.prototype.raw=function(e){var t=e.length>>>0;return t?(this._reserve(t),this.buf.set(e,this.pos),this.pos+=t,this):this},u.prototype._delim=function(e,t){var r=l(t);return r>1&&this.buf.copyWithin(e+r,e+1,e+1+t),c(t,this.buf,e),this.pos=e+r+t,this},u.prototype.string=function(e){var t=e.length;if(!t)return this._reserve(1),this.buf[this.pos++]=0,this;if(t<128){this._reserve(3*t+5);var r=this.pos;return this._delim(r,a.write(e,this.buf,r+1))}var n=a.length(e);return this.uint32(n),this._reserve(n),n===e.length?function(e,t,r){for(var n=0;n<e.length;)t[r++]=e.charCodeAt(n++)}(e,this.buf,this.pos):a.write(e,this.buf,this.pos),this.pos+=n,this},u.prototype.uint32s=function(e){var t=e.length;this._reserve(5*t+5);for(var r=this.buf,n=this.pos,i=n+1,o=0;o<t;++o)i=c(e[o]>>>0,r,i);return this._delim(n,i-n-1)},u.prototype.int32s=function(e){var t=e.length;this._reserve(10*t+5);for(var r,n=this.buf,i=this.pos,s=i+1,a=0;a<t;++a)s=(r=0|e[a])<0?h(o.fromNumber(r),n,s):c(r,n,s);return this._delim(i,s-i-1)},u.prototype.sint32s=function(e){var t=e.length;this._reserve(5*t+5);for(var r=this.buf,n=this.pos,i=n+1,o=0;o<t;++o)i=c((e[o]<<1^e[o]>>31)>>>0,r,i);return this._delim(n,i-n-1)},u.prototype.uint64s=function(e){var t=e.length;this._reserve(10*t+5);for(var r=this.buf,n=this.pos,i=n+1,s=0;s<t;++s)i=h(o.from(e[s]),r,i);return this._delim(n,i-n-1)},u.prototype.int64s=u.prototype.uint64s,u.prototype.sint64s=function(e){var t=e.length;this._reserve(10*t+5);for(var r=this.buf,n=this.pos,i=n+1,s=0;s<t;++s)i=h(o.from(e[s]).zzEncode(),r,i);return this._delim(n,i-n-1)},u.prototype.bools=function(e){var t=e.length;this.uint32(t),this._reserve(t);for(var r=this.buf,n=this.pos,i=0;i<t;++i)r[n++]=e[i]?1:0;return this.pos+=t,this},u.prototype.fixed32s=function(e){var t=e.length,r=4*t;this.uint32(r),this._reserve(r);var n,i=this.pos,o=d(this,t,128);if(o)for(n=0;n<t;++n)o.setUint32(i,e[n]>>>0,!0),i+=4;else{var s=this.buf;for(n=0;n<t;++n)p(e[n]>>>0,s,i),i+=4}return this.pos+=r,this},u.prototype.sfixed32s=u.prototype.fixed32s,u.prototype.fixed64s=function(e){var t=e.length,r=8*t;this.uint32(r),this._reserve(r);var n,i,s=this.pos,a=d(this,t,128);if(a)for(n=0;n<t;++n)i=o.from(e[n]),a.setUint32(s,i.lo,!0),a.setUint32(s+4,i.hi,!0),s+=8;else{var u=this.buf;for(n=0;n<t;++n)p((i=o.from(e[n])).lo,u,s),p(i.hi,u,s+4),s+=8}return this.pos+=r,this},u.prototype.sfixed64s=u.prototype.fixed64s,u.prototype.floats=function(e){var t=e.length,r=4*t;this.uint32(r),this._reserve(r);var n,o=this.pos,s=d(this,t,16);if(s)for(n=0;n<t;++n)s.setFloat32(o,e[n],!0),o+=4;else{var a=this.buf;for(n=0;n<t;++n)i.float.writeFloatLE(e[n],a,o),o+=4}return this.pos+=r,this},u.prototype.doubles=function(e){var t=e.length,r=8*t;this.uint32(r),this._reserve(r);var n,o=this.pos,s=d(this,t,16);if(s)for(n=0;n<t;++n)s.setFloat64(o,e[n],!0),o+=8;else{var a=this.buf;for(n=0;n<t;++n)i.float.writeDoubleLE(e[n],a,o),o+=8}return this.pos+=r,this},u.prototype.fork=function(){return this._reserve(1),(this.states||(this.states=[])).push(this.pos),this.pos+=1,this},u.prototype.reset=function(){var e=this.states;return e&&e.length?this.pos=e.pop():this.pos=0,this},u.prototype.ldelim=function(){var e,t,r=this.states;if(r&&r.length){var n=r.pop();(t=l(e=this.pos-n-1))>1?(this._reserve(t-1),this.buf.copyWithin(n+t,n+1,n+1+e),this.pos+=t-1,c(e,this.buf,n)):this.buf[n]=e}else t=l(e=this.pos),this._reserve(t),this.buf.copyWithin(t,0,e),c(e,this.buf,0),this.pos+=t;return this},u.prototype.finish=function(e){if(e)return this.buf.subarray(0,this.pos);var t=this.constructor.alloc(this.pos);return t.set(this.buf.subarray(0,this.pos),0),t},u.prototype.finishInto=function(e,t){return void 0===t&&(t=0),e.set(this.buf.subarray(0,this.pos),t),e},u._configure=function(e){n=e,u.create=f(),n._configure()}},2453(e,t,r){"use strict";e.exports=s;var n=r(86804);s.prototype=Object.create(n.prototype,{constructor:{value:s,writable:!0,enumerable:!1,configurable:!0}});var i,o=r(83499);function s(){n.call(this)}s._configure=function(){s.alloc=o.Buffer&&o.Buffer.allocUnsafe,i=o.Buffer&&o.Buffer.prototype.utf8Write?function(e,t,r){return t.utf8Write(e,r)}:function(e,t,r){return t.write(e,r)}},s.prototype.bytes=function(e){o.isString(e)&&(e=o.Buffer.from(e,"base64"));var t=e.length>>>0;return this.uint32(t),t&&(this._reserve(t),this.buf.set(e,this.pos),this.pos+=t),this},s.prototype.string=function(e){var t=e.length;if(!t)return this._reserve(1),this.buf[this.pos++]=0,this;if(t<128){this._reserve(3*t+5);var r=this.pos,n=this.buf;return this._delim(r,t<40?o.utf8.write(e,n,r+1):i(e,n,r+1))}var s=o.Buffer.byteLength(e);return this.uint32(s),this._reserve(s),i(e,this.buf,this.pos),this.pos+=s,this},s._configure()}};const t={};function r(n){const i=t[n];if(void 0!==i)return i.exports;const o=t[n]={exports:{}};return e[n].call(o.exports,o,o.exports,r),o.exports}r.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{if(Array.isArray(t))for(var n=0;n<t.length;){var i=t[n++],o=t[n++];r.o(e,i)?0===o&&n++:0===o?Object.defineProperty(e,i,{enumerable:!0,value:t[n++]}):Object.defineProperty(e,i,{enumerable:!0,get:o})}else for(var i in t)r.o(t,i)&&!r.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t(e){return t="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},t(e)}function n(e){var r=function(e){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=t(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==t(r)?r:r+""}function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,n(i.key),i)}}function o(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e,r){if(r&&("object"==t(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function a(e){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},a(e)}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}function l(e,t,r,n,i,o,s){try{var a=e[o](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,i)}function c(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function s(e){l(o,n,i,s,a,"next",e)}function a(e){l(o,n,i,s,a,"throw",e)}s(void 0)})}}var h=r(54756),p=r.n(h);function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function y(e,t){if(e){if("string"==typeof e)return d(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(e,t):void 0}}function m(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||y(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.")}()}var v=r(73065),g=r.n(v),b=r(90031),w=r.n(b);function x(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(x=function(){return!!e})()}function A(e){var t="function"==typeof Map?new Map:void 0;return A=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return function(e,t,r){if(x())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var i=new(e.bind.apply(e,n));return r&&u(i,r.prototype),i}(e,arguments,a(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),u(r,e)},A(e)}function B(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(B=function(){return!!e})()}const E=function(t){function r(){var t,n,i,o;e(this,r);for(var u=arguments.length,f=new Array(u),l=0;l<u;l++)f[l]=arguments[l];return n=this,i=r,o=[].concat(f),i=a(i),(t=s(n,B()?Reflect.construct(i,o||[],a(n).constructor):i.apply(n,o))).type="OperationError",Error.captureStackTrace&&Error.captureStackTrace(t,r),t}return f(r,t),o(r)}(A(Error));function F(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"A-Za-z0-9+/=";if(!e)return"";if("string"==typeof e&&(e=L.strToArrayBuffer(e)),e instanceof ArrayBuffer&&(e=new Uint8Array(e)),64!==(t=L.expandAlphRange(t).join("")).length&&65!==t.length)throw new E(`Invalid Base64 alphabet length (${t.length}): ${t}`);for(var r,n,i,o,s,a,u,f="",l=0;l<e.length;)o=(r=e[l++])>>2,s=(3&r)<<4|(n=e[l++])>>4,a=(15&n)<<2|(i=e[l++])>>6,u=63&i,isNaN(n)?a=u=64:isNaN(i)&&(u=64),f+=t.charAt(o)+t.charAt(s)+t.charAt(a)+t.charAt(u);return f}function O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"A-Za-z0-9+/=",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"string",n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(!e)return"string"===r?"":[];if(t=t||"A-Za-z0-9+/=",64!==(t=L.expandAlphRange(t).join("")).length&&65!==t.length)throw new E(`Error: Base64 alphabet should be 64 characters long, or 65 with a padding character. Found ${t.length}: ${t}`);if(n){var o=new RegExp("[^"+t.replace(/[[\]\\\-^$]/g,"\\$&")+"]","g");e=e.replace(o,"")}if(i){if(e.length%4==1)throw new E(`Error: Invalid Base64 input length (${e.length}). Cannot be 4n+1, even without padding chars.`);if(65===t.length){var s=t.charAt(64),a=e.indexOf(s);if(a>=0){if(a<e.length-2||e.charAt(e.length-1)!==s)throw new E(`Error: Base64 padding character (${s}) not used in the correct place.`);if(e.length%4!=0)throw new E("Error: Base64 not padded to a multiple of 4.")}}}for(var u,f,l,c,h,p,d,y=[],m=0;m<e.length;){if(c=t.indexOf(e.charAt(m++)||null),h=t.indexOf(e.charAt(m++)||null),p=t.indexOf(e.charAt(m++)||null),d=t.indexOf(e.charAt(m++)||null),i&&(c<0||h<0||p<0||d<0))throw new E("Error: Base64 input contains non-alphabet char(s)");f=(15&h)<<4|p>>2,l=(3&p)<<6|d,(u=c<<2|h>>4)>=0&&u<256&&y.push(u),f>=0&&f<256&&64!==p&&y.push(f),l>=0&&l<256&&64!==d&&y.push(l)}return"string"===r?L.byteArrayToUtf8(y):y}function _(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Auto",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;if(r<1||Math.round(r)!==r)throw new E("Byte length must be a positive integer");if("None"!==t){var n="Auto"===t?/[^a-f\d]|0x/gi:L.regexRep(t);e=e.split(n)}else e=[e];for(var i=[],o=0;o<e.length;o++)for(var s=0;s<e[o].length;s+=r)i.push(parseInt(e[o].substr(s,r),16));return i}function k(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Auto",r="Auto"===t?/[^\d-]+/:L.regexRep(t),n=e.split(r);n=n.filter(function(e){return""!==e});for(var i=[],o=0;o<n.length;o++)i[o]=parseInt(n[o],10);return i}function T(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Space",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:8;if(r<1||Math.round(r)!==r)throw new E("Byte length must be a positive integer");var n=L.regexRep(t);e=e.replace(n,"");for(var i=[],o=0;o<e.length;o+=r)i.push(parseInt(e.substr(o,r),2));return i}["Auto"].concat(["Space","Percent","Comma","Semi-colon","Colon","Line feed","CRLF","0x","0x with comma","\\x","None"]);var I=r(48287).Buffer,S=r(65606),j=function(){function t(){e(this,t)}return o(t,null,[{key:"chr",value:function(e){if(e>65535){e-=65536;var t=String.fromCharCode(e>>>10&1023|55296);return e=56320|1023&e,t+String.fromCharCode(e)}return String.fromCharCode(e)}},{key:"ord",value:function(e){if(2===e.length){var t=e.charCodeAt(0),r=e.charCodeAt(1);if(t>=55296&&t<56320&&r>=56320&&r<57344)return 1024*(t-55296)+r-56320+65536}return e.charCodeAt(0)}},{key:"padBytesRight",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=new Array(t);return n.fill(r),m(e).forEach(function(e,t){n[t]=e}),n}},{key:"truncate",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"...";return e.length>t&&(e=e.slice(0,t-r.length)+r),e}},{key:"hex",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return(e="string"==typeof e?t.ord(e):e).toString(16).padStart(r,"0")}},{key:"bin",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8;return(e="string"==typeof e?t.ord(e):e).toString(2).padStart(r,"0")}},{key:"printable",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return arguments.length>2&&void 0!==arguments[2]&&arguments[2]?e.replace(/[^\x20-\x7e]/g,"."):(e=e.replace(/[\0-\x08\x0B-\x0C\x0E-\x1F\x7F-\x9F\xAD\u0378\u0379\u037F-\u0383\u038B\u038D\u03A2\u0528-\u0530\u0557\u0558\u0560\u0588\u058B-\u058E\u0590\u05C8-\u05CF\u05EB-\u05EF\u05F5-\u0605\u061C\u061D\u06DD\u070E\u070F\u074B\u074C\u07B2-\u07BF\u07FB-\u07FF\u082E\u082F\u083F\u085C\u085D\u085F-\u089F\u08A1\u08AD-\u08E3\u08FF\u0978\u0980\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09FC-\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF2-\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B55\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B78-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BFB-\u0C00\u0C04\u0C0D\u0C11\u0C29\u0C34\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5A-\u0C5F\u0C64\u0C65\u0C70-\u0C77\u0C80\u0C81\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0D01\u0D04\u0D0D\u0D11\u0D3B\u0D3C\u0D45\u0D49\u0D4F-\u0D56\u0D58-\u0D5F\u0D64\u0D65\u0D76-\u0D78\u0D80\u0D81\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DF1\u0DF5-\u0E00\u0E3B-\u0E3E\u0E5C-\u0E80\u0E83\u0E85\u0E86\u0E89\u0E8B\u0E8C\u0E8E-\u0E93\u0E98\u0EA0\u0EA4\u0EA6\u0EA8\u0EA9\u0EAC\u0EBA\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F48\u0F6D-\u0F70\u0F98\u0FBD\u0FCD\u0FDB-\u0FFF\u10C6\u10C8-\u10CC\u10CE\u10CF\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u137D-\u137F\u139A-\u139F\u13F5-\u13FF\u169D-\u169F\u16F1-\u16FF\u170D\u1715-\u171F\u1737-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17DE\u17DF\u17EA-\u17EF\u17FA-\u17FF\u180F\u181A-\u181F\u1878-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191D-\u191F\u192C-\u192F\u193C-\u193F\u1941-\u1943\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DB-\u19DD\u1A1C\u1A1D\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1A9F\u1AAE-\u1AFF\u1B4C-\u1B4F\u1B7D-\u1B7F\u1BF4-\u1BFB\u1C38-\u1C3A\u1C4A-\u1C4C\u1C80-\u1CBF\u1CC8-\u1CCF\u1CF7-\u1CFF\u1DE7-\u1DFB\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FC5\u1FD4\u1FD5\u1FDC\u1FF0\u1FF1\u1FF5\u1FFF\u200B-\u200F\u202A-\u202E\u2060-\u206F\u2072\u2073\u208F\u209D-\u209F\u20BB-\u20CF\u20F1-\u20FF\u218A-\u218F\u23F4-\u23FF\u2427-\u243F\u244B-\u245F\u2700\u2B4D-\u2B4F\u2B5A-\u2BFF\u2C2F\u2C5F\u2CF4-\u2CF8\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D71-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E3C-\u2E7F\u2E9A\u2EF4-\u2EFF\u2FD6-\u2FEF\u2FFC-\u2FFF\u3040\u3097\u3098\u3100-\u3104\u312E-\u3130\u318F\u31BB-\u31BF\u31E4-\u31EF\u321F\u32FF\u4DB6-\u4DBF\u9FCD-\u9FFF\uA48D-\uA48F\uA4C7-\uA4CF\uA62C-\uA63F\uA698-\uA69E\uA6F8-\uA6FF\uA78F\uA794-\uA79F\uA7AB-\uA7F7\uA82C-\uA82F\uA83A-\uA83F\uA878-\uA87F\uA8C5-\uA8CD\uA8DA-\uA8DF\uA8FC-\uA8FF\uA954-\uA95E\uA97D-\uA97F\uA9CE\uA9DA-\uA9DD\uA9E0-\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A\uAA5B\uAA7C-\uAA7F\uAAC3-\uAADA\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F-\uABBF\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBC2-\uFBD2\uFD40-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFE\uFDFF\uFE1A-\uFE1F\uFE27-\uFE2F\uFE53\uFE67\uFE6C-\uFE6F\uFE75\uFEFD-\uFF00\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFDF\uFFE7\uFFEF-\uFFFB\uFFFE\uFFFF]/g,"."),t||(e=e.replace(/[\x09-\x10\u2028\u2029]/g,".")),e)}},{key:"escapeWhitespace",value:function(e){return e.replace(/[\x09-\x10]/g,function(e){return String.fromCharCode(57344+e.charCodeAt(0))})}},{key:"parseEscapedChars",value:function(e){return e.replace(/\\([abfnrtv'"]|[0-3][0-7]{2}|[0-7]{1,2}|x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]{1,6}\}|\\)/g,function(e,t){switch(t[0]){case"\\":return"\\";case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":return String.fromCharCode(parseInt(t,8));case"a":return String.fromCharCode(7);case"b":return"\b";case"t":return"\t";case"n":return"\n";case"v":return"\v";case"f":return"\f";case"r":return"\r";case'"':return'"';case"'":return"'";case"x":return String.fromCharCode(parseInt(t.substr(1),16));case"u":return"{"===t[1]?String.fromCodePoint(parseInt(t.slice(2,-1),16)):String.fromCharCode(parseInt(t.substr(1),16))}})}},{key:"escapeRegex",value:function(e){return e.replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")}},{key:"expandAlphRange",value:function(e){for(var r=[],n=0;n<e.length;n++)if(n<e.length-2&&"-"===e[n+1]&&"\\"!==e[n]){for(var i=t.ord(e[n]),o=t.ord(e[n+2]),s=i;s<=o;s++)r.push(t.chr(s));n+=2}else n<e.length-2&&"\\"===e[n]&&"-"===e[n+1]?(r.push("-"),n++):r.push(e[n]);return r}},{key:"convertToByteArray",value:function(e,r){switch(r.toLowerCase()){case"binary":return T(e);case"hex":return _(e);case"decimal":return k(e);case"base64":return O(e,null,"byteArray");case"utf8":return t.strToUtf8ByteArray(e);default:return t.strToByteArray(e)}}},{key:"convertToByteString",value:function(e,r){switch(r.toLowerCase()){case"binary":return t.byteArrayToChars(T(e));case"hex":return t.byteArrayToChars(_(e));case"decimal":return t.byteArrayToChars(k(e));case"base64":return t.byteArrayToChars(O(e,null,"byteArray"));case"utf8":return w().encode(e);default:return e}}},{key:"byteArrayToInt",value:function(e,t){var r=0;if("big"===t)for(var n=0;n<e.length;n++)r=256*r+e[n];else for(var i=e.length-1;i>=0;i--)r=256*r+e[i];return r}},{key:"intToByteArray",value:function(e,t,r){var n=new Array(t);if("little"===r)for(var i=0;i<t;i++)n[i]=255&e,e>>>=8;else for(var o=t-1;o>=0;o--)n[o]=255&e,e>>>=8;return n}},{key:"strToArrayBuffer",value:function(e){if(g().debug(`Converting string[${null==e?void 0:e.length}] to array buffer`),!e)return new ArrayBuffer;for(var r,n=new Uint8Array(e.length),i=e.length;i--;)if(r=e.charCodeAt(i),n[i]=r,r>255)return t.strToUtf8ArrayBuffer(e);return n.buffer}},{key:"strToUtf8ArrayBuffer",value:function(e){if(g().debug(`Converting string[${null==e?void 0:e.length}] to UTF8 array buffer`),!e)return new ArrayBuffer;var t=new TextEncoder("utf-8").encode(e);return e.length!==t.length&&(C()&&self&&"function"==typeof self.setOption?self.setOption("attemptHighlight",!1):R()&&(window.app.options.attemptHighlight=!1)),t.buffer}},{key:"strToByteArray",value:function(e){if(g().debug(`Converting string[${null==e?void 0:e.length}] to byte array`),!e)return[];for(var r,n=new Array(e.length),i=e.length;i--;)if(r=e.charCodeAt(i),n[i]=r,r>255)return t.strToUtf8ByteArray(e);return n}},{key:"strToUtf8ByteArray",value:function(e){if(g().debug(`Converting string[${null==e?void 0:e.length}] to UTF8 byte array`),!e)return[];var r=w().encode(e);return e.length!==r.length&&(C()?self.setOption("attemptHighlight",!1):R()&&(window.app.options.attemptHighlight=!1)),t.strToByteArray(r)}},{key:"strToCharcode",value:function(e){if(g().debug(`Converting string[${null==e?void 0:e.length}] to charcode`),!e)return[];for(var r=[],n=0;n<e.length;n++){var i=e.charCodeAt(n);if(n<e.length-1&&i>=55296&&i<56320){var o=e[n+1].charCodeAt(0);o>=56320&&o<57344&&(i=t.ord(e[n]+e[++n]))}r.push(i)}return r}},{key:"byteArrayToUtf8",value:function(e){var r;if(g().debug(`Converting byte array[${null===(r=e)||void 0===r?void 0:r.length}] to UTF8`),!e||!e.length)return"";e instanceof Uint8Array||(e=new Uint8Array(e));try{var n=new TextDecoder("utf-8",{fatal:!0}).decode(e);return n.length!==e.length&&(C()?self.setOption("attemptHighlight",!1):R()&&(window.app.options.attemptHighlight=!1)),n}catch(r){return t.byteArrayToChars(e)}}},{key:"byteArrayToChars",value:function(e){if(g().debug(`Converting byte array[${null==e?void 0:e.length}] to chars`),!e||!e.length)return"";for(var t="",r=0;r<e.length;r+=2e4)t+=String.fromCharCode.apply(String,m(e.slice(r,r+2e4)));return t}},{key:"arrayBufferToStr",value:function(e){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(g().debug(`Converting array buffer[${null==e?void 0:e.byteLength}] to str`),!e||!e.byteLength)return"";var n=new Uint8Array(e);return r?t.byteArrayToUtf8(n):t.byteArrayToChars(n)}},{key:"calculateShannonEntropy",value:function(e){e instanceof ArrayBuffer&&(e=new Uint8Array(e));var t,r=[],n=new Array(256).fill(0);for(t=0;t<e.length;t++)n[e[t]]++;for(t=0;t<n.length;t++)n[t]>0&&r.push(n[t]/e.length);var i,o=0;for(t=0;t<r.length;t++)o+=(i=r[t])*Math.log(i)/Math.log(2);return-o}},{key:"parseCSV",value:function(e){var t,r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[","],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:["\n","\r"],o=!1,s=!1,a="",u=[],f=[];e.length&&"\ufeff"===e[0]&&(e=e.substr(1));for(var l=0;l<e.length;l++)t=e[l],r=e[l+1]||"",o?(a+=t,o=!1):'"'!==t||s?'"'===t&&s?'"'===r?o=!0:s=!1:!s&&n.indexOf(t)>=0?(u.push(a),a=""):!s&&i.indexOf(t)>=0?(u.push(a),a="",f.push(u),u=[],i.indexOf(r)>=0&&r!==t&&l++):a+=t:s=!0;return u.length&&(u.push(a),f.push(u)),f}},{key:"stripHtmlTags",value:function(e){function t(e,r){var n=r.replace(e,"");return n.length===r.length?n:t(e,n)}return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&(e=t(/<script[^>]*>(\s|\S)*?<\/script[^>]*>/gi,e),e=t(/<style[^>]*>(\s|\S)*?<\/style[^>]*>/gi,e)),t(/<[^>]+>/g,e)}},{key:"escapeHtml",value:function(e){var t={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","\0":""};return e?e.replace(/[&<>"'`\u0000]/g,function(e){return t[e]}):e}},{key:"unescapeHtml",value:function(e){var t={"&":"&","<":"<",">":">",""":'"',"'":"'","/":"/","`":"`","":"\0"};return e.replace(/(&#?x?[a-z0-9]{2,4};|\ue000)/gi,function(e){return t[e]||e})}},{key:"toTitleCase",value:function(e){return e.replace(/\w\S*/g,function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()})}},{key:"encodeURIFragment",value:function(e){var t={"%2D":"-","%2E":".","%5F":"_","%7E":"~","%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2C":",","%3B":";","%3A":":","%40":"@","%2F":"/","%3F":"?"};return(e=encodeURIComponent(e)).replace(/%[0-9A-F]{2}/g,function(e){return t[e]||e})}},{key:"generatePrettyRecipe",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r="",n="",i="",o="",s="";return e.forEach(function(e){n=e.op.replace(/ /g,"_"),i=JSON.stringify(e.args).slice(1,-1).replace(/'/g,"\\'").replace(/"((?:[^"\\]|\\.)*)"/g,"'$1'").replace(/\\"/g,'"'),o=e.disabled?"/disabled":"",s=e.breakpoint?"/breakpoint":"",r+=`${n}(${i}${o}${s})`,t&&(r+="\n")}),r}},{key:"parseRecipeConfig",value:function(e){if(0===(e=e.trim()).length)return[];if("["===e[0])return JSON.parse(e);var r,n;e=e.replace(/\n/g,""),t._validatePrettyRecipe(e);for(var i=/([^(]+)\(((?:'[^'\\]*(?:\\.[^'\\]*)*'|[^)/'])*)(\/[^)]+)?\)/g,o=[];r=i.exec(e);){n="["+(n=r[2].replace(/"/g,'\\"').replace(/(^|,|{|:)'/g,'$1"').replace(/([^\\]|(?:\\\\)+)'(,|:|}|$)/g,'$1"$2').replace(/\\'/g,"'"))+"]";var s={op:r[1].replace(/_/g," "),args:JSON.parse(n)};r[3]&&r[3].indexOf("disabled")>0&&(s.disabled=!0),r[3]&&r[3].indexOf("breakpoint")>0&&(s.breakpoint=!0),o.push(s)}return o}},{key:"_validatePrettyRecipe",value:function(e){for(var t=0;t<e.length;){var r=e.indexOf("(",t);if(-1===r||r===t)throw new Error("Invalid recipe");t=r+1;for(var n=!1,i=!1,o=!1;t<e.length;t++){var s=e[t];if(n)i?i=!1:"\\"===s?i=!0:"'"===s&&(n=!1);else if("'"===s)n=!0;else if(")"===s){o=!0,t++;break}}if(!o||n||i)throw new Error("Invalid recipe")}}},{key:"displayFilesAsHTML",value:(r=c(p().mark(function e(r){var n,i,o,s,a,u;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n=function(e){return`<div class='card' style='white-space: normal;'>\n <div class='card-header'>\n <h6 class="mb-0">\n ${t.escapeHtml(e.name)}\n </h6>\n </div>\n </div>`},i=function(e,r){if(r.startsWith("image")){var n="data:";return n+=r+";","<img style='max-width: 100%;' src='"+(n+="base64,"+F(e))+"'>"}return`<pre>${t.escapeHtml(t.arrayBufferToStr(e.buffer))}</pre>`},o=function(){var e=c(p().mark(function e(r,n){var o,s,a,u;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,t.readFile(r);case 1:return o=e.sent,s=new Blob([o],{type:r.type||"octet/stream"}),a=URL.createObjectURL(s),u=`<div class='card' style='white-space: normal;'>\n <div class='card-header' id='heading${n}'>\n <h6 class='mb-0'>\n <a class='collapsed'\n data-toggle='collapse'\n href='#collapse${n}'\n aria-expanded='false'\n aria-controls='collapse${n}'\n title="Show/hide contents of '${t.escapeHtml(r.name)}'">\n ${t.escapeHtml(r.name)}</a>\n <span class='float-right' style="margin-top: -3px">\n ${r.size.toLocaleString()} bytes\n <a title="Download ${t.escapeHtml(r.name)}"\n href="${a}"\n download="${t.escapeHtml(r.name)}"\n data-toggle="tooltip">\n <i class="material-icons" style="vertical-align: bottom">save</i>\n </a>\n <a title="Move to input"\n href="#"\n blob-url="${a}"\n file-name="${t.escapeHtml(r.name)}"\n class="extract-file"\n data-toggle="tooltip">\n <i class="material-icons" style="vertical-align: bottom">open_in_browser</i>\n </a>\n </span>\n </h6>\n </div>\n <div id='collapse${n}' class='collapse' aria-labelledby='heading${n}' data-parent="#files">\n <div class='card-body'>\n ${i(o,r.type)}\n </div>\n </div>\n </div>`,e.abrupt("return",u);case 2:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}(),s=`<div style='padding: 5px; white-space: normal;'>\n ${r.length} file(s) found\n </div><div id="files" style="padding: 20px">`,a=0;case 1:if(!(a<r.length)){e.next=5;break}if(!r[a].name.endsWith("/")){e.next=2;break}s+=n(r[a]),e.next=4;break;case 2:return u=s,e.next=3,o(r[a],a);case 3:s=u+=e.sent;case 4:a++,e.next=1;break;case 5:return e.abrupt("return",s+="</div>");case 6:case"end":return e.stop()}},e)})),function(e){return r.apply(this,arguments)})},{key:"parseURIParams",value:function(e){if(""===e)return{};"?"!==e[0]&&"#"!==e[0]||(e=e.substr(1));for(var t=e.split("&"),r={},n=0;n<t.length;n++){var i=t[n].split("=");2!==i.length?r[t[n]]=!0:r[i[0]]=decodeURIComponent(i[1].replace(/\+/g," "))}return r}},{key:"readFile",value:function(e){return N()?I.from(e).buffer:new Promise(function(t,r){var n=new FileReader,i=new Uint8Array(e.size),o=0,s=10485760,a=function(){if(o>=e.size)t(i);else{var r=e.slice(o,o+s);n.readAsArrayBuffer(r)}};n.onload=function(e){i.set(new Uint8Array(n.result),o),o+=s,a()},n.onerror=function(e){r(n.error.message)},a()})}},{key:"readFileSync",value:function(e){if(!N())throw new TypeError("Browser environment cannot support readFileSync");return Uint8Array.from(e.data).buffer}},{key:"mod",value:function(e,t){return(e%t+t)%t}},{key:"gcd",value:function(e,r){return r?t.gcd(r,e%r):e}},{key:"modInv",value:function(e,t){e%=t;for(var r=1;r<t;r++)if(e*r%26==1)return r}},{key:"charRep",value:function(e){return{Space:" ",Percent:"%",Comma:",","Semi-colon":";",Colon:":",Tab:"\t","Line feed":"\n",CRLF:"\r\n","Forward slash":"/",Backslash:"\\","0x":"0x","\\x":"\\x","Nothing (separate chars)":"",None:""}[e]}},{key:"regexRep",value:function(e){return{Space:/\s+/g,Percent:/%/g,Comma:/,/g,"Semi-colon":/;/g,Colon:/:/g,"Line feed":/\n/g,CRLF:/\r\n/g,"Forward slash":/\//g,Backslash:/\\/g,"0x with comma":/,?0x/g,"0x":/0x/g,"\\x":/\\x/g,None:/\s+/g}[e]}},{key:"chunked",value:p().mark(function e(t,r){var n,i,o,s;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n=t[Symbol.iterator]();case 1:i=[],o=0;case 2:if(!(o<r)){e.next=5;break}if(!(s=n.next()).done){e.next=3;break}return e.abrupt("continue",5);case 3:i.push(s.value);case 4:o++,e.next=2;break;case 5:if(!i.length){e.next=7;break}return e.next=6,i;case 6:e.next=8;break;case 7:return e.abrupt("return");case 8:e.next=1;break;case 9:case"end":return e.stop()}},e)})}]);var r}();function N(){return void 0!==S&&null!=S.versions&&null!=S.versions.node}function R(){return"object"==typeof window}function C(){return"function"==typeof importScripts}const L=j;function P(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(P=function(){return!!e})()}Array.prototype.unique=function(){for(var e={},t=[],r=0,n=this.length;r<n;r++)Object.prototype.hasOwnProperty.call(e,this[r])||(t.push(this[r]),e[this[r]]=1);return t},Array.prototype.max=function(){return Math.max.apply(null,this)},Array.prototype.min=function(){return Math.min.apply(null,this)},Array.prototype.sum=function(){return this.reduce(function(e,t){return e+t},0)},Array.prototype.equals=function(e){if(!e)return!1;var t=this.length;if(t!==e.length)return!1;for(;t--;)if(this[t]!==e[t])return!1;return!0},String.prototype.count=function(e){return this.split(e).length-1},String.prototype.padStart||(String.prototype.padStart=function(e,t){return e|=0,t=String(void 0!==t?t:" "),this.length>e?String(this):((e-=this.length)>t.length&&(t+=t.repeat(e/t.length)),t.slice(0,e)+String(this))}),String.prototype.padEnd||(String.prototype.padEnd=function(e,t){return e|=0,t=String(void 0!==t?t:" "),this.length>e?String(this):((e-=this.length)>t.length&&(t+=t.repeat(e/t.length)),String(this)+t.slice(0,e))});const D=function(t){function r(){var t,n,i,o;e(this,r);for(var u=arguments.length,f=new Array(u),l=0;l<u;l++)f[l]=arguments[l];return n=this,i=r,o=[].concat(f),i=a(i),(t=s(n,P()?Reflect.construct(i,o||[],a(n).constructor):i.apply(n,o))).type="DishError",Error.captureStackTrace&&Error.captureStackTrace(t,r),t}return f(r,t),o(r)}(A(Error));var U=function e(t){var r,n,i,o,s=/^(-?)0([xbo])(?=[^.])/i,a=/^-?(Infinity|NaN)$/,u=/^\s*\+(?!-)|^\s+|\s+$/g,f=B.prototype={constructor:B,toString:null,valueOf:null},l=new B(1),c=20,h=4,p=-7,d=21,y=-1e7,m=1e7,v=!1,g=!0,b=1,w=0,x={prefix:"",negativeSign:"-",positiveSign:"",groupSeparator:",",groupSize:3,secondaryGroupSize:0,decimalSeparator:".",fractionGroupSeparator:"",fractionGroupSize:0,suffix:""},A="0123456789abcdefghijklmnopqrstuvwxyz";function B(e,t){var r,n,i,o,f=this;if(!(f instanceof B))return new B(e,t);if(o=typeof e,null==t){if(_(e))return f.s=e.s,void(!e.c||e.e>m?f.c=f.e=null:e.e<y?f.c=[f.e=0]:(f.e=e.e,f.c=e.c.slice()));if("number"==o){if(0*e!=0)return f.s=isNaN(e)?null:e<0?-1:1,void(f.c=f.e=null);if(f.s=1/e<0?(e=-e,-1):1,e===~~e){for(r=0,n=e;n>=10;n/=10,r++);return void(r>m?f.c=f.e=null:(f.e=r,f.c=[e]))}return E(f,String(e))}if("bigint"==o)return f.s=e<0?(e=-e,-1):1,E(f,String(e));if("string"==o)i=e;else{if(g)throw Error(V+"BigNumber, string, number, or BigInt expected: "+e);i=String(e)}if(M.test(i))return f.s=45==i.charCodeAt(0)?(i=i.slice(1),-1):1,E(f,i);if(i=i.replace(u,""),a.test(i))return f.s=isNaN(i)?null:i<0?-1:1,void(f.c=f.e=null);if(i=i.replace(s,function(e,r,n){return t="x"==(n=n.toLowerCase())?16:"b"==n?2:8,r}),t)return F(f,i,t,e);if(i=i.replace(/(\d)_(?=\d)/g,"$1"),M.test(i))return f.s=45==i.charCodeAt(0)?(i=i.slice(1),-1):1,E(f,i);if(g)throw Error(V+"Not a number: "+e);f.s=f.c=f.e=null}else{if("string"!=o){if(g)throw Error(V+"String expected: "+e);e=String(e)}Q(t,2,A.length,"Base"),F(f,e.replace(u,""),t,e)}}function E(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;48===t.charCodeAt(n);n++);for(i=t.length;48===t.charCodeAt(--i););if(t=t.slice(n,++i))if(i-=n,(r=r-n-1)>m)e.c=e.e=null;else if(r<y)e.c=[e.e=0];else{if(e.e=r,e.c=[],n=(r+1)%J,r<0&&(n+=J),n<i){for(n&&e.c.push(+t.slice(0,n)),i-=J;n<i;)e.c.push(+t.slice(n,n+=J));n=J-(t=t.slice(n)).length}else n-=i;for(;n--;t+="0");e.c.push(+t)}else e.c=[e.e=0]}function F(e,t,r,i){var o,s,a=A.slice(0,r),u=0,f="",l=!1,c=!1,h=!1;for(e.s=45===t.charCodeAt(0)?(t=t.slice(1),-1):1,s=t.length;u<s;u++){if(o=t.charAt(u),!(a.indexOf(o)>=0)){if("_"==o){if(c&&u+1<s){c=!1;continue}}else if("."==o){if(0==u||!l&&c){if(u+1==s)break;0==u&&(f="0"),f+=o,l=!0,c=!1;continue}}else if(!h&&(t==t.toUpperCase()&&a==a.toLowerCase()&&(t=t.toLowerCase())||t==t.toLowerCase()&&a==a.toUpperCase()&&(t=t.toUpperCase()))){u=-1,f="",h=!0,l=c=!1;continue}if(g)throw Error(V+"Not a base "+r+" number: "+i);return void(e.s=e.c=e.e=null)}f+=o,c=!0}E(e,n(f,r,10,e.s))}function O(e,t,r,n){var i,o,s,a,u;if(r=null==r?h:Q(r,0,8),!e.c)return e.toString();if(i=e.c[0],s=e.e,null==t)u=X(e.c),u=1==n||2==n&&(s<=p||s>=d)?re(u,s):ne(u,s,"0");else if(o=(e=S(new B(e),t,r)).e,a=(u=X(e.c)).length,1==n||2==n&&(t<=o||o<=p)){for(;a<t;u+="0",a++);u=re(u,o)}else if(t-=s+(2===n&&o>s),u=ne(u,o,"0"),o+1>a){if(--t>0)for(u+=".";t--;u+="0");}else if((t+=o-a)>0)for(o+1==a&&(u+=".");t--;u+="0");return e.s<0&&i?"-"+u:u}function _(e){return e instanceof B||!!e&&!0===e._isBigNumber}function k(e,t){for(var r,n,i=1,o=new B(e[0]);i<e.length;i++)(!(n=new B(e[i])).s||(r=K(o,n))===t||0===r&&o.s===t)&&(o=n);return o}function T(e,t,r){for(var n=1,i=t.length;!t[--i];t.pop());for(i=t[0];i>=10;i/=10,n++);return(r=n+r*J-1)>m?e.c=e.e=null:r<y?e.c=[e.e=0]:(e.e=r,e.c=t),e}function I(e){var t,r={};for(t in x)x.hasOwnProperty(t)&&(r[t]=e.hasOwnProperty(t)?e[t]:x[t]);return r}function S(e,t,r,n){var i,o,s,a,u,f,l,c=e.c,h=H;if(c){e:{for(i=1,a=c[0];a>=10;a/=10,i++);if((o=t-i)<0)o+=J,s=t,u=c[f=0],l=q(u/h[i-s-1]%10);else if((f=$((o+1)/J))>=c.length){if(!n)break e;for(;c.length<=f;c.push(0));u=l=0,i=1,s=(o%=J)-J+1}else{for(u=a=c[f],i=1;a>=10;a/=10,i++);l=(s=(o%=J)-J+i)<0?0:q(u/h[i-s-1]%10)}if(n=n||t<0||null!=c[f+1]||(s<0?u:u%h[i-s-1]),n=r<4?(l||n)&&(0==r||r==(e.s<0?3:2)):l>5||5==l&&(4==r||n||6==r&&(o>0?s>0?u/h[i-s]:0:c[f-1])%10&1||r==(e.s<0?8:7)),t<1||!c[0])return c.length=0,n?(t-=e.e+1,c[0]=h[(J-t%J)%J],e.e=-t||0):c[0]=e.e=0,e;if(0==o?(c.length=f,a=1,f--):(c.length=f+1,a=h[J-o],c[f]=s>0?q(u/h[i-s]%h[s])*a:0),n)for(;;){if(0==f){for(o=1,s=c[0];s>=10;s/=10,o++);for(s=c[0]+=a,a=1;s>=10;s/=10,a++);o!=a&&(e.e++,c[0]==z&&(c[0]=1));break}if(c[f]+=a,c[f]!=z)break;c[f--]=0,a=1}for(o=c.length;0===c[--o];c.pop());}e.e>m?e.c=e.e=null:e.e<y&&(e.c=[e.e=0])}return e}function j(e){var t,r=e.e;return null===r?e.toString():(t=X(e.c),t=r<=p||r>=d?re(t,r):ne(t,r,"0"),e.s<0?"-"+t:t)}return B.clone=e,B.ROUND_UP=0,B.ROUND_DOWN=1,B.ROUND_CEIL=2,B.ROUND_FLOOR=3,B.ROUND_HALF_UP=4,B.ROUND_HALF_DOWN=5,B.ROUND_HALF_EVEN=6,B.ROUND_HALF_CEIL=7,B.ROUND_HALF_FLOOR=8,B.EUCLID=9,B.config=B.set=function(e){var t,r;if(null!=e){if("object"!=typeof e)throw Error(V+"Object expected: "+e);if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(c=Q(e[t],0,W,t)),e.hasOwnProperty(t="ROUNDING_MODE")&&(h=Q(e[t],0,8,t)),e.hasOwnProperty(t="EXPONENTIAL_AT")&&(ee(r=e[t])?(Q(r[0],-W,0,t),Q(r[1],0,W,t),p=r[0],d=r[1]):p=-(d=Q(r,-W,W,t)<0?-r:r)),e.hasOwnProperty(t="RANGE")){if(!(r=e[t]))throw Error(V+t+" cannot be zero: "+r);ee(r)?(Q(r[0],-W,-1,t),Q(r[1],1,W,t),y=r[0],m=r[1]):y=-(m=Q(r,-W,W,t)<0?-r:r)}if(e.hasOwnProperty(t="CRYPTO")){if((r=e[t])!==!!r)throw Error(V+t+" not true or false: "+r);if(r){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw v=!r,Error(V+"crypto unavailable");v=r}else v=r}if(e.hasOwnProperty(t="STRICT")){if((r=e[t])!==!!r)throw Error(V+t+" not true or false: "+r);g=r}if(e.hasOwnProperty(t="MODULO_MODE")&&(b=Q(e[t],0,9,t)),e.hasOwnProperty(t="POW_PRECISION")&&(w=Q(e[t],0,W,t)),e.hasOwnProperty(t="FORMAT")){if("object"!=typeof(r=e[t]))throw Error(V+t+" not an object: "+r);for(t in r)r.hasOwnProperty(t)&&x.hasOwnProperty(t)&&(x[t]=r[t])}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(r=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(r))throw Error(V+t+" invalid: "+r);A=r}}return{DECIMAL_PLACES:c,ROUNDING_MODE:h,EXPONENTIAL_AT:[p,d],RANGE:[y,m],CRYPTO:v,STRICT:g,MODULO_MODE:b,POW_PRECISION:w,FORMAT:x,ALPHABET:A}},B.fromFormat=function(e,t){if("string"!=typeof e)throw Error(V+"Not a string: "+e);if(null==t)t=x;else{if("object"!=typeof t)throw Error(V+"Argument not an object: "+t);t=I(t)}var r,n,i,o,s=t.negativeSign||"-",a=t.positiveSign||"",u=t.prefix||"",f=t.suffix||"",l=t.groupSeparator||"",c=t.decimalSeparator||".",h=t.fractionGroupSeparator||"";if(u&&0===e.indexOf(u)&&(e=e.slice(u.length)),f&&e.lastIndexOf(f)===e.length-f.length&&(e=e.slice(0,-f.length)),s&&0===e.indexOf(s)?(e=e.slice(s.length),n=!0):a&&0===e.indexOf(a)&&(e=e.slice(a.length)),(r=e.indexOf(c))<0){if(l)for(;e.indexOf(l)>-1;)e=e.replace(l,"")}else{if(i=e.slice(0,r),o=e.slice(r+c.length),l)for(;i.indexOf(l)>-1;)i=i.replace(l,"");if(h)for(;o.indexOf(h)>-1;)o=o.replace(h,"");e=i+"."+o}return new B(n?"-"+e:e)},B.isBigNumber=function(e){if(!_(e))return!1;var t,r,n=e.c,i=e.e,o=e.s;if(!ee(n))return null===n&&null===i&&(null===o||1===o||-1===o);if(1!==o&&-1!==o||i<-W||i>W||i!==q(i))return!1;if(0===n[0])return 0===i&&1===n.length;if((t=(i+1)%J)<1&&(t+=J),String(n[0]).length!==t)return!1;for(t=0;t<n.length;t++)if((r=n[t])<0||r>=z||r!==q(r))return!1;return 0!==r},B.maximum=B.max=function(){return k(arguments,-1)},B.minimum=B.min=function(){return k(arguments,1)},B.random=(i=9007199254740992,o=Math.random()*i&2097151?function(){return q(Math.random()*i)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var t,r,n,i,s,a=0,u=[],f=new B(l);if(e=null==e?c:Q(e,0,W),i=$(e/J),v)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(i*=2));a<i;)(s=131072*t[a]+(t[a+1]>>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),t[a]=r[0],t[a+1]=r[1]):(u.push(s%1e14),a+=2);a=i/2}else{if(!crypto.randomBytes)throw v=!1,Error(V+"crypto unavailable");for(t=crypto.randomBytes(i*=7);a<i;)(s=281474976710656*(31&t[a])+1099511627776*t[a+1]+4294967296*t[a+2]+16777216*t[a+3]+(t[a+4]<<16)+(t[a+5]<<8)+t[a+6])>=9e15?crypto.randomBytes(7).copy(t,a):(u.push(s%1e14),a+=7);a=i/7}if(!v)for(;a<i;)(s=o())<9e15&&(u[a++]=s%1e14);for(i=u[--a],e%=J,i&&e&&(s=H[J-e],u[a]=q(i/s)*s);0===u[a];u.pop(),a--);if(a<0)u=[n=0];else{for(n=-1;0===u[0];u.splice(0,1),n-=J);for(a=1,s=u[0];s>=10;s/=10,a++);a<J&&(n-=J-a)}return f.e=n,f.c=u,f}),B.sum=function(){for(var e=0,t=new B(0);e<arguments.length;)t=t.plus(arguments[e++]);return t},n=function(){var e="0123456789";function t(e,t,r,n){for(var i,o,s=[0],a=0,u=e.length;a<u;){for(o=s.length;o--;s[o]*=t);for(s[0]+=n.indexOf(e.charAt(a++)),i=0;i<s.length;i++)s[i]>r-1&&(null==s[i+1]&&(s[i+1]=0),s[i+1]+=s[i]/r|0,s[i]%=r)}return s.reverse()}return function(n,i,o,s,a){var u,f,l,p,d,y,m,v,g=n.indexOf("."),b=c,x=h;for(g>=0&&(p=w,w=0,n=n.replace(".",""),y=(v=new B(i)).pow(n.length-g),w=p,v.c=t(ne(X(y.c),y.e,"0"),10,o,e),v.e=v.c.length),l=p=(m=t(n,i,o,a?(u=A,e):(u=e,A))).length;0==m[--p];m.pop());if(!m[0])return u.charAt(0);if(g<0?--l:(y.c=m,y.e=l,y.s=s,m=(y=r(y,v,b,x,o)).c,d=y.r,l=y.e),g=m[f=l+b+1],p=o/2,d=d||f<0||null!=m[f+1],d=x<4?(null!=g||d)&&(0==x||x==(y.s<0?3:2)):g>p||g==p&&(4==x||d||6==x&&1&m[f-1]||x==(y.s<0?8:7)),f<1||!m[0])n=d?ne(u.charAt(1),-b,u.charAt(0)):u.charAt(0);else{if(f<m.length&&(m.length=f),d)for(--o;++m[--f]>o;)m[f]=0,f||(++l,m=[1].concat(m));for(p=m.length;!m[--p];);for(g=0,n="";g<=p;n+=u.charAt(m[g++]));n=ne(n,l,u.charAt(0))}return n}}(),r=function(){function e(e,t,r){var n,i,o,s,a=0,u=e.length,f=t%Y,l=t/Y|0;for(e=e.slice();u--;)a=((i=f*(o=e[u]%Y)+(n=l*o+(s=e[u]/Y|0)*f)%Y*Y+a)/r|0)+(n/Y|0)+l*s,e[u]=i%r;return a&&(e=[a].concat(e)),e}function t(e,t,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;i<r;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}function r(e,t,r,n){for(var i=0;r--;)e[r]-=i,i=e[r]<t[r]?1:0,e[r]=i*n+e[r]-t[r];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(n,i,o,s,a){var u,f,l,c,h,p,d,y,m,v,g,b,w,x,A,E,F,O=n.s==i.s?1:-1,_=n.c,k=i.c;if(!(_&&_[0]&&k&&k[0]))return new B(n.s&&i.s&&(_?!k||_[0]!=k[0]:k)?_&&0==_[0]||!k?0*O:O/0:NaN);for(m=(y=new B(O)).c=[],O=o+(f=n.e-i.e)+1,a||(a=z,f=Z(n.e/J)-Z(i.e/J),O=O/J|0),l=0;k[l]==(_[l]||0);l++);if(k[l]>(_[l]||0)&&f--,O<0)m.push(1),c=!0;else{for(x=_.length,E=k.length,l=0,O+=2,(h=q(a/(k[0]+1)))>1&&(k=e(k,h,a),_=e(_,h,a),E=k.length,x=_.length),w=E,g=(v=_.slice(0,E)).length;g<E;v[g++]=0);F=k.slice(),F=[0].concat(F),A=k[0],k[1]>=a/2&&A++;do{if(h=0,(u=t(k,v,E,g))<0){if(b=v[0],E!=g&&(b=b*a+(v[1]||0)),(h=q(b/A))>1)for(h>=a&&(h=a-1),d=(p=e(k,h,a)).length,g=v.length;1==t(p,v,d,g);)h--,r(p,E<d?F:k,d,a),d=p.length,u=1;else 0==h&&(u=h=1),d=(p=k.slice()).length;if(d<g&&(p=[0].concat(p)),r(v,p,g,a),g=v.length,-1==u)for(;t(k,v,E,g)<1;)h++,r(v,E<g?F:k,g,a),g=v.length}else 0===u&&(h++,v=[0]);m[l++]=h,v[0]?v[g++]=_[w]||0:(v=[_[w]],g=1)}while((w++<x||null!=v[0])&&O--);c=null!=v[0],m[0]||m.splice(0,1)}if(a==z){for(l=1,O=m[0];O>=10;O/=10,l++);S(y,o+(y.e=l+f*J-1)+1,s,c)}else y.e=f,y.r=+c;return y}}(),f.absoluteValue=f.abs=function(){var e=new B(this);return e.s<0&&(e.s=1),e},f.comparedTo=function(e,t){return K(this,new B(e,t))},f.decimalPlaces=f.dp=function(e,t){var r,n,i,o=this;if(null!=e)return S(new B(o),Q(e,-W,W)+o.e+1,null==t?h:Q(t,0,8));if(!(r=o.c))return null;if(n=((i=r.length-1)-Z(this.e/J))*J,i=r[i])for(;i%10==0;i/=10,n--);return n<0&&(n=0),n},f.dividedBy=f.div=function(e,t){return r(this,new B(e,t),c,h)},f.dividedToIntegerBy=f.idiv=function(e,t){return r(this,new B(e,t),0,1)},f.exponentiatedBy=f.pow=function(e,t){var r,n,i,o,s,a,u,f,c=this;if((e=new B(e)).c&&!e.isInteger())throw Error(V+"Exponent not an integer: "+j(e));if(null!=t&&(t=new B(t)),s=e.e>14,!c.c||!c.c[0]||1==c.c[0]&&!c.e&&1==c.c.length||!e.c||!e.c[0])return f=new B(Math.pow(+j(c),s?e.s*(2-te(e)):+j(e))),t?f.mod(t):f;if(a=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new B(NaN);(n=!a&&c.isInteger()&&t.isInteger())&&(c=c.mod(t))}else{if(e.e>9&&(c.e>0||c.e<-1||(0==c.e?c.c[0]>1||s&&c.c[1]>=24e7:c.c[0]<8e13||s&&c.c[0]<=9999975e7)))return o=c.s<0&&te(e)?-0:0,c.e>-1&&(o=1/o),new B(a?1/o:o);w&&(o=$(w/J+2))}for(s?(r=new B(.5),a&&(e.s=1),u=te(e)):u=(i=Math.abs(+j(e)))%2,f=new B(l);;){if(u){if(!(f=f.times(c)).c)break;o?f.c.length>o&&(f.c.length=o):n&&(f=f.mod(t))}if(i){if(0===(i=q(i/2)))break;u=i%2}else if(S(e=e.times(r),e.e+1,1),e.e>14)u=te(e);else{if(0===(i=+j(e)))break;u=i%2}c=c.times(c),o?c.c&&c.c.length>o&&(c.c.length=o):n&&(c=c.mod(t))}return n?f:(a&&(f=l.div(f)),t?f.mod(t):o?S(f,w,h,void 0):f)},f.integerValue=function(e){var t=new B(this);return S(t,t.e+1,null==e?h:Q(e,0,8))},f.isEqualTo=f.eq=function(e,t){return 0===K(this,new B(e,t))},f.isFinite=function(){return!!this.c},f.isGreaterThan=f.gt=function(e,t){return K(this,new B(e,t))>0},f.isGreaterThanOrEqualTo=f.gte=function(e,t){return 1===(t=K(this,new B(e,t)))||0===t},f.isInteger=function(){return!!this.c&&Z(this.e/J)>this.c.length-2},f.isLessThan=f.lt=function(e,t){return K(this,new B(e,t))<0},f.isLessThanOrEqualTo=f.lte=function(e,t){return-1===(t=K(this,new B(e,t)))||0===t},f.isNaN=function(){return!this.s},f.isNegative=function(){return this.s<0},f.isPositive=function(){return this.s>0},f.isZero=function(){return!!this.c&&0==this.c[0]},f.minus=function(e,t){var r,n,i,o,s=this,a=s.s;if(t=(e=new B(e,t)).s,!a||!t)return new B(NaN);if(a!=t)return e.s=-t,s.plus(e);var u=s.e/J,f=e.e/J,l=s.c,c=e.c;if(!u||!f){if(!l||!c)return l?(e.s=-t,e):new B(c?s:NaN);if(!l[0]||!c[0])return c[0]?(e.s=-t,e):new B(l[0]?s:3==h?-0:0)}if(u=Z(u),f=Z(f),l=l.slice(),a=u-f){for((o=a<0)?(a=-a,i=l):(f=u,i=c),i.reverse(),t=a;t--;i.push(0));i.reverse()}else for(n=(o=(a=l.length)<(t=c.length))?a:t,a=t=0;t<n;t++)if(l[t]!=c[t]){o=l[t]<c[t];break}if(o&&(i=l,l=c,c=i,e.s=-e.s),(t=(n=c.length)-(r=l.length))>0)for(;t--;l[r++]=0);for(t=z-1;n>a;){if(l[--n]<c[n]){for(r=n;r&&!l[--r];l[r]=t);--l[r],l[n]+=z}l[n]-=c[n]}for(;0==l[0];l.splice(0,1),--f);return l[0]?T(e,l,f):(e.s=3==h?-1:1,e.c=[e.e=0],e)},f.modulo=f.mod=function(e,t){var n,i,o=this;return e=new B(e,t),!o.c||!e.s||e.c&&!e.c[0]?new B(NaN):!e.c||o.c&&!o.c[0]?new B(o):(9==b?(i=e.s,e.s=1,n=r(o,e,0,3),e.s=i,n.s*=i):n=r(o,e,0,b),(e=o.minus(n.times(e))).c[0]||1!=b||(e.s=o.s),e)},f.multipliedBy=f.times=function(e,t){var r,n,i,o,s,a,u,f,l,c,h,p,d,y,m,v=this,g=v.c,b=(e=new B(e,t)).c;if(!(g&&b&&g[0]&&b[0]))return!v.s||!e.s||g&&!g[0]&&!b||b&&!b[0]&&!g?e.c=e.e=e.s=null:(e.s*=v.s,g&&b?(e.c=[0],e.e=0):e.c=e.e=null),e;for(n=Z(v.e/J)+Z(e.e/J),e.s*=v.s,(u=g.length)<(c=b.length)&&(d=g,g=b,b=d,i=u,u=c,c=i),i=u+c,d=[];i--;d.push(0));for(y=z,m=Y,i=c;--i>=0;){for(r=0,h=b[i]%m,p=b[i]/m|0,o=i+(s=u);o>i;)r=((f=h*(f=g[--s]%m)+(a=p*f+(l=g[s]/m|0)*h)%m*m+d[o]+r)/y|0)+(a/m|0)+p*l,d[o--]=f%y;d[o]=r}return r?++n:d.splice(0,1),T(e,d,n)},f.negated=function(){var e=new B(this);return e.s=-e.s||null,e},f.plus=function(e,t){var r,n=this,i=n.s;if(t=(e=new B(e,t)).s,!i||!t)return new B(NaN);if(i!=t)return e.s=-t,n.minus(e);var o=n.e/J,s=e.e/J,a=n.c,u=e.c;if(!o||!s){if(!a||!u)return new B(i/0);if(!a[0]||!u[0])return u[0]?e:new B(a[0]?n:0*i)}if(o=Z(o),s=Z(s),a=a.slice(),i=o-s){for(i>0?(s=o,r=u):(i=-i,r=a),r.reverse();i--;r.push(0));r.reverse()}for((i=a.length)-(t=u.length)<0&&(r=u,u=a,a=r,t=i),i=0;t;)i=(a[--t]=a[t]+u[t]+i)/z|0,a[t]=z===a[t]?0:a[t]%z;return i&&(a=[i].concat(a),++s),T(e,a,s)},f.precision=f.sd=function(e,t){var r,n,i,o=this;if(null!=e&&e!==!!e)return S(new B(o),Q(e,1,W),null==t?h:Q(t,0,8));if(!(r=o.c))return null;if(n=(i=r.length-1)*J+1,i=r[i]){for(;i%10==0;i/=10,n--);for(i=r[0];i>=10;i/=10,n++);}return e&&o.e+1>n&&(n=o.e+1),n},f.shiftedBy=function(e){return this.times("1e"+Q(e,-G,G))},f.squareRoot=f.sqrt=function(){var e,t,n,i,o,s=this,a=s.c,u=s.s,f=s.e,l=c+4,p=new B("0.5");if(1!==u||!a||!a[0])return new B(!u||u<0&&(!a||a[0])?NaN:a?s:1/0);if(0==(u=Math.sqrt(+j(s)))||u==1/0?(((t=X(a)).length+f)%2==0&&(t+="0"),u=Math.sqrt(+t),f=Z((f+1)/2)-(f<0||f%2),n=new B(t=u==1/0?"5e"+f:(t=u.toExponential()).slice(0,t.indexOf("e")+1)+f)):n=new B(u+""),n.c[0])for((u=(f=n.e)+l)<3&&(u=0);;)if(o=n,n=p.times(o.plus(r(s,o,l,1))),X(o.c).slice(0,u)===(t=X(n.c)).slice(0,u)){if(n.e<f&&--u,"9999"!=(t=t.slice(u-3,u+1))&&(i||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(S(n,n.e+c+2,1),e=!n.times(n).eq(s));break}if(!i&&(S(o,o.e+c+2,0),o.times(o).eq(s))){n=o;break}l+=4,u+=4,i=1}return S(n,n.e+c+1,h,e)},"function"==typeof BigInt&&(f.toBigInt=function(e){var t=this;return t.c?BigInt(O(t,t.e+1,e)):null}),f.toExponential=function(e,t){return O(this,null==e?e:Q(e,0,W)+1,t,1)},f.toFixed=function(e,t){return O(this,null==e?e:Q(e,-W,W)+this.e+1,t)},f.toFormat=function(e,t,r){var n,i,o,s,a=this;if(null==r)r=x,null!=e&&(null!=t?"object"==typeof t&&(r=I(t),t=null):"object"!=typeof e||ee(e)||(r=I(e),e=t=null));else{if("object"!=typeof r)throw Error(V+"Argument not an object: "+r);r=I(r)}if(null!=e)if(ee(e)&&e.length<=2){if(i=e[0],o=e[1],e=a.dp(),null!=o&&e>Q(o,0,W)&&(e=o),null!=i&&0!==Q(i,0,W)){if(null!=o&&i>o)throw Error(V+"Minimum must not exceed maximum");e<i&&(e=i)}}else Q(e,-W,W);if((n=45===(s=a.toFixed(e,t)).charCodeAt(0))&&(s=s.slice(1)),a.c){var u,f=s.split("."),l=+r.groupSize,c=+r.secondaryGroupSize,h=r.groupSeparator||"",p=f[0],d=f[1],y=p.length;if(c&&(u=l,l=c,c=u,y-=u),l>0&&y>0){for(u=y%l||l,s=p.substr(0,u);u<y;u+=l)s+=h+p.substr(u,l);c>0&&(s+=h+p.slice(u))}else s=p;d&&((u=+r.fractionGroupSize)&&(d=d.replace(new RegExp("\\d{"+u+"}\\B","g"),"$&"+(r.fractionGroupSeparator||""))),s+=(r.decimalSeparator||"")+d)}return(r.prefix||"")+(n?r.negativeSign||"":a.s>0&&r.positiveSign||"")+s+(r.suffix||"")},f.toFraction=function(e){var t,n,i,o,s,a,u,f,c,h,p,d,y,v,g=this,b=g.c;if(null!=e&&(!(u=new B(e)).isInteger()&&(u.c||1!==u.s)||u.lt(l)))throw Error(V+"Argument "+(u.isInteger()?"out of range: ":"not an integer: ")+j(u));if(!b)return[new B(g.s||0),new B(0)];for(t=new B(l),c=n=new B(l),i=f=new B(l),d=X(b),s=t.e=d.length-g.e-1,t.c[0]=H[(a=s%J)<0?J+a:a],e=!e||u.comparedTo(t)>0?s>0?t:c:u,a=m,m=1/0,v=u=new B(d),y=t,f.c[0]=0;h=r(u,t,0,1),1!=(o=n.plus(h.times(i))).comparedTo(e);)n=i,i=o,c=f.plus(h.times(o=c)),f=o,t=u.minus(h.times(o=t)),u=o;return o=r(e.minus(n),i,0,1),f=f.plus(o.times(c)),n=n.plus(o.times(i)),(p=c.times(y).minus(v.times(i)).abs().times(n).comparedTo(f.times(y).minus(v.times(n)).abs().times(i))<1?[c,i]:[f,n])[0].s=g.s,m=a,p},f.toNumber=function(){return+j(this)},f.toObject=function(){var e=this;return{c:e.c?e.c.slice():null,e:e.e,s:e.s}},f.toPrecision=function(e,t){return O(this,null==e?e:Q(e,1,W),t,2)},f.toString=function(e){var t,r=this,i=r.s,o=r.e;return null===o?i?(t="Infinity",i<0&&(t="-"+t)):t="NaN":(null==e?t=o<=p||o>=d?re(X(r.c),o):ne(X(r.c),o,"0"):(Q(e,2,A.length,"Base"),t=n(ne(X(r.c),o,"0"),10,e,i,!0)),i<0&&r.c[0]&&(t="-"+t)),t},f.valueOf=f.toJSON=function(){return j(this)},f._isBigNumber=!0,null!=t&&B.set(t),B}(),M=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,$=Math.ceil,q=Math.floor,V="[BigNumber Error] ",z=1e14,J=14,G=9007199254740991,H=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],Y=1e7,W=1e9;function Z(e){var t=0|e;return e>0||e===t?t:t-1}function X(e){for(var t,r,n=1,i=e.length,o=e[0]+"";n<i;){for(t=e[n++]+"",r=J-t.length;r--;t="0"+t);o+=t}for(i=o.length;48===o.charCodeAt(--i););return o.slice(0,i+1||1)}function K(e,t){var r,n,i=e.c,o=t.c,s=e.s,a=t.s,u=e.e,f=t.e;if(!s||!a)return null;if(r=i&&!i[0],n=o&&!o[0],r||n)return r?n?0:-a:s;if(s!=a)return s;if(r=s<0,n=u==f,!i||!o)return n?0:!i^r?1:-1;if(!n)return u>f^r?1:-1;for(a=(u=i.length)<(f=o.length)?u:f,s=0;s<a;s++)if(i[s]!=o[s])return i[s]>o[s]^r?1:-1;return u==f?0:u>f^r?1:-1}function Q(e,t,r,n){if(e<t||e>r||e!==q(e))throw Error(V+(n||"Argument")+("number"==typeof e?e<t||e>r?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e));return e}function ee(e){return"[object Array]"=={}.toString.call(e)}function te(e){var t=e.c.length-1;return Z(e.e/J)==t&&e.c[t]%2!=0}function re(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function ne(e,t,r){var n,i;if(t<0){for(i=r+".";++t;i+=r);e=i+e}else if(++t>(n=e.length)){for(i=r,t-=n;--t;i+=r);e+=i}else t<n&&(e=e.slice(0,t)+"."+e.slice(t));return e}const ie=U;function oe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,s,a=[],u=!0,f=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(a.push(n.value),a.length!==t);u=!0);}catch(e){f=!0,i=e}finally{try{if(!u&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(f)throw i}}return a}}(e,t)||y(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var se=function(){function t(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;e(this,t),this.bytes=r,this.length=this.bytes.length,this.position=n,this.bitPos=i}return o(t,[{key:"clone",value:function(){return new t(this.bytes,this.position,this.bitPos)}},{key:"getBytes",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!(this.position>this.length)){var t=null!==e?this.position+e:this.length,r=this.bytes.slice(this.position,t);return this.position=t,this.bitPos=0,r}}},{key:"readString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;if(!(this.position>this.length)){-1===e&&(e=this.length-this.position);for(var t="",r=this.position;r<this.position+e;r++){var n=this.bytes[r];if(0===n)break;t+=String.fromCharCode(n)}return this.position+=e,this.bitPos=0,t}}},{key:"readInt",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"be";if(!(this.position>this.length)){var r=0;if("be"===t)for(var n=this.position;n<this.position+e;n++)r<<=8,r|=this.bytes[n];else for(var i=this.position+e-1;i>=this.position;i--)r<<=8,r|=this.bytes[i];return this.position+=e,this.bitPos=0,r}}},{key:"readBits",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"be";if(!(this.position>this.length)){var r,n=0,i=0;for(n=this.bytes[this.position++]&(r=this.bitPos,"be"===t?(1<<8-r)-1:256-(1<<r)),"be"!==t&&(n>>>=this.bitPos),i=8-this.bitPos,this.bitPos=0;i<e;)"be"===t?n=n<<i|this.bytes[this.position++]:n|=this.bytes[this.position++]<<i,i+=8;if(i>e){var o=i-e;"be"===t?n>>>=o:n&=(1<<e)-1,i-=o,this.position--,this.bitPos=8-o}return n}}},{key:"continueUntil",value:function(e){if(!(this.position>this.length))if(this.bitPos=0,"number"!=typeof e){var t=e.length,r=e[t-1];this.position=t;for(var n,i=function(e,t){var r=new Array;return e.forEach(function(e,n){r[e]=t-n}),r}(e,t);this.position<this.length;){for(;this.position<this.length&&this.bytes[this.position++]!==r;);n=!0;for(var o=t-1;o>=0;o--)if(this.bytes[this.position-t+o]!==e[o]){n=!1,this.position+=i[e[o]];break}if(n){this.position-=t;break}}}else for(;++this.position<this.length&&this.bytes[this.position]!==e;);}},{key:"consumeWhile",value:function(e){for(;this.position<this.length&&this.bytes[this.position]===e;)this.position++;this.bitPos=0}},{key:"consumeIf",value:function(e){this.bytes[this.position]===e&&(this.position++,this.bitPos=0)}},{key:"moveForwardsBy",value:function(e){var t=this.position+e;if(t<0||t>this.length)throw new Error("Cannot move to position "+t+" in stream. Out of bounds.");this.position=t,this.bitPos=0}},{key:"moveBackwardsBy",value:function(e){var t=this.position-e;if(t<0||t>this.length)throw new Error("Cannot move to position "+t+" in stream. Out of bounds.");this.position=t,this.bitPos=0}},{key:"moveBackwardsByBits",value:function(e){if(e<=this.bitPos)this.bitPos-=e;else for(this.bitPos>0&&(e-=this.bitPos,this.bitPos=0);e>0;)this.moveBackwardsBy(1),this.bitPos=8,this.moveBackwardsByBits(e),e-=8}},{key:"moveTo",value:function(e){if(e<0||e>this.length)throw new Error("Cannot move to position "+e+" in stream. Out of bounds.");this.position=e,this.bitPos=0}},{key:"hasMore",value:function(){return this.position<this.length}},{key:"carve",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.position;return this.bitPos>0&&t++,this.bytes.slice(e,t)}}])}();function ae(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return ue(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ue(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){a=!0,o=e},f:function(){try{s||null==r.return||r.return()}finally{if(a)throw o}}}}function ue(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var fe={Images:[{name:"Joint Photographic Experts Group image",extension:"jpg,jpeg,jpe,thm,mpo",mime:"image/jpeg",description:"",signature:{0:255,1:216,2:255,3:[192,196,219,221,224,225,226,227,228,229,231,232,234,235,236,237,238,254]},extractor:function(e,t){for(var r=new se(e.slice(t));r.hasMore();){var n=r.getBytes(2);if(255!==n[0])throw new Error(`Invalid marker while parsing JPEG at pos ${r.position}: ${n}`);var i=0;switch(n[1]){case 216:case 1:break;case 217:return r.carve();case 192:case 193:case 194:case 195:case 196:case 197:case 198:case 199:case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 207:case 219:case 222:case 224:case 225:case 226:case 227:case 228:case 229:case 230:case 231:case 232:case 233:case 234:case 235:case 236:case 237:case 238:case 239:case 254:i=r.readInt(2,"be"),r.position+=i-2;break;case 223:r.position++;break;case 220:case 221:r.position+=2;break;case 218:i=r.readInt(2,"be"),r.position+=i-2,r.continueUntil(255);break;default:r.continueUntil(255)}}throw new Error("Unable to parse JPEG successfully")}},{name:"Graphics Interchange Format image",extension:"gif",mime:"image/gif",description:"",signature:{0:71,1:73,2:70,3:56,4:[55,57],5:97},extractor:function(e,t){var r=new se(e.slice(t));for(r.continueUntil([33,255]),r.continueUntil([33,249]),r.moveForwardsBy(2);r.hasMore();){for(r.moveForwardsBy(r.readInt(1)+1),r.moveForwardsBy(11);!Array.from(r.getBytes(2)).equals([33,249])&&(r.moveBackwardsBy(2),r.moveForwardsBy(r.readInt(1)),r.readInt(1));)r.moveBackwardsBy(1);if(59===r.readInt(1))break;r.moveForwardsBy(1)}return r.carve()}},{name:"Portable Network Graphics image",extension:"png",mime:"image/png",description:"",signature:{0:137,1:80,2:78,3:71,4:13,5:10,6:26,7:10},extractor:function(e,t){var r=new se(e.slice(t));r.moveForwardsBy(8);for(var n=0,i="";"IEND"!==i;)n=r.readInt(4,"be"),i=r.readString(4),r.moveForwardsBy(n+4);return r.carve()}},{name:"WEBP Image",extension:"webp",mime:"image/webp",description:"",signature:{8:87,9:69,10:66,11:80},extractor:function(e,t){var r=new se(e.slice(t));r.moveForwardsBy(4);var n=r.readInt(4,"le");return r.moveForwardsBy(n),r.carve()}},{name:"High Efficiency Image File Format",extension:"heic,heif",mime:"image/heif",description:"",signature:{0:0,1:0,2:0,3:[36,24],4:102,5:116,6:121,7:112,8:104,9:101,10:105,11:99},extractor:null},{name:"Camera Image File Format",extension:"crw",mime:"image/x-canon-crw",description:"",signature:{6:72,7:69,8:65,9:80,10:67,11:67,12:68,13:82},extractor:null},{name:"Canon CR2 raw image",extension:"cr2",mime:"image/x-canon-cr2",description:"",signature:[{0:73,1:73,2:42,3:0,8:67,9:82},{0:77,1:77,2:0,3:42,8:67,9:82}],extractor:null},{name:"Tagged Image File Format image",extension:"tif",mime:"image/tiff",description:"",signature:[{0:73,1:73,2:42,3:0},{0:77,1:77,2:0,3:42}],extractor:null},{name:"Bitmap image",extension:"bmp",mime:"image/bmp",description:"",signature:{0:66,1:77,7:0,9:0,14:[12,40,56,64,108,124],15:0,16:0,17:0},extractor:function(e,t){var r=new se(e.slice(t));r.moveForwardsBy(2);var n=r.readInt(4,"le");return r.moveForwardsBy(n-6),r.carve()}},{name:"JPEG Extended Range image",extension:"jxr",mime:"image/vnd.ms-photo",description:"",signature:{0:73,1:73,2:188},extractor:null},{name:"Photoshop image",extension:"psd",mime:"image/vnd.adobe.photoshop",description:"",signature:{0:56,1:66,2:80,3:83,4:0,5:1,6:0,7:0,8:0,9:0,10:0,11:0},extractor:null},{name:"Photoshop Large Document",extension:"psb",mime:"application/x-photoshop",description:"",signature:{0:56,1:66,2:80,3:83,4:0,5:2,6:0,7:0,8:0,9:0,10:0,11:0,12:0},extractor:null},{name:"Paint Shop Pro image",extension:"psp",mime:"image/psp",description:"",signature:[{0:80,1:97,2:105,3:110,4:116,5:32,6:83,7:104,8:111,9:112,10:32,11:80,12:114,13:111,14:32,15:73,16:109},{0:126,1:66,2:75,3:0}],extractor:null},{name:"The GIMP image",extension:"xcf",mime:"image/x-xcf",description:"",signature:{0:103,1:105,2:109,3:112,4:32,5:120,6:99,7:102,8:32,9:[102,118],10:[105,48],11:[108,48],12:[101,49,50,51]},extractor:null},{name:"Icon image",extension:"ico",mime:"image/x-icon",description:"",signature:{0:0,1:0,2:1,3:0,4:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21],5:0,6:[16,32,48,64,128],7:[16,32,48,64,128],9:0,10:[0,1]},extractor:function(e,t){var r=new se(e.slice(t));r.moveTo(4);var n=r.readInt(2,"le");r.moveForwardsBy(8+16*(n-1));var i=r.readInt(4,"le"),o=r.readInt(4,"le");return r.moveTo(o+i),r.carve()}},{name:"Radiance High Dynamic Range image",extension:"hdr",mime:"image/vnd.radiance",description:"",signature:{0:35,1:63,2:82,3:65,4:68,5:73,6:65,7:78,8:67,9:69,10:10},extractor:null},{name:"Sony ARW image",extension:"arw",mime:"image/x-raw",description:"",signature:{0:5,1:0,2:0,3:0,4:65,5:87,6:49,7:46},extractor:null},{name:"Fujifilm Raw Image",extension:"raf",mime:"image/x-raw",description:"",signature:{0:70,1:85,2:74,3:73,4:70,5:73,6:76,7:77,8:67,9:67,10:68,11:45,12:82,13:65,14:87},extractor:null},{name:"Minolta RAW image",extension:"mrw",mime:"image/x-raw",description:"",signature:{0:0,1:77,2:82,3:77},extractor:null},{name:"Adobe Bridge Thumbnail Cache",extension:"bct",mime:"application/octet-stream",description:"",signature:{0:108,1:110,2:98,3:116,4:2,5:0,6:0,7:0},extractor:null},{name:"Microsoft Document Imaging",extension:"mdi",mime:"image/vnd.ms-modi",description:"",signature:{0:69,1:80,2:42,3:0},extractor:null},{name:"Joint Photographic Experts Group image (under Base64)",extension:"B64",mime:"application/octet-stream",description:"",signature:{0:47,1:57,2:106,3:47,4:52},extractor:null},{name:"Portable Network Graphics image (under Base64)",extension:"B64",mime:"application/octet-stream",description:"",signature:{0:105,1:86,2:66,3:79,4:82,5:119,6:48},extractor:null},{name:"AutoCAD Drawing",extension:"dwg,123d",mime:"application/acad",description:"",signature:{0:65,1:67,2:49,3:48,4:[48,49],5:[48,49,50,51,52,53],6:0},extractor:null},{name:"AutoCAD Drawing",extension:"dwg,dwt",mime:"application/acad",description:"",signature:[{0:65,1:67,2:49,3:48,4:49,5:56,6:0},{0:65,1:67,2:49,3:48,4:50,5:52,6:0},{0:65,1:67,2:49,3:48,4:50,5:55,6:0}],extractor:null},{name:"Targa Image",extension:"tga",mime:"image/x-targa",description:"",signature:[{0:84,1:82,2:85,3:69,4:86,5:73,6:83,7:73,8:79,9:78,10:45,11:88,12:70,13:73,14:76,15:69,16:46}],extractor:function(e,t){var r=new se(e);r.moveTo(t-8);var n=r.readInt(4,"le"),i=r.readInt(4,"le");function o(e,t){for(var n=0;n<e;n++){r.moveBackwardsBy(1);var i=r.readInt(t,"le")-1;if(r.moveBackwardsBy(t),i===n)break}}return r.moveBackwardsBy(8),n||i?n?(o(65535,2),r.moveBackwardsBy(n)):i&&(o(4294967295,4),r.moveBackwardsBy(6),r.moveBackwardsBy(i)):(function(){r.moveBackwardsBy(5);for(var e=0;e<1048576&&r.readInt(2,"le")*r.readInt(2,"le")*r.readInt(1)/8!=e-1;e++)r.moveBackwardsBy(6)}(),r.moveBackwardsBy(17)),r.carve(r.position,t+18)}}],Video:[{name:"Matroska Multimedia Container",extension:"mkv",mime:"video/x-matroska",description:"",signature:{31:109,32:97,33:116,34:114,35:111,36:115,37:107,38:97},extractor:null},{name:"WEBM video",extension:"webm",mime:"video/webm",description:"",signature:{0:26,1:69,2:223,3:163},extractor:null},{name:"Flash MP4 video",extension:"f4v",mime:"video/mp4",description:"",signature:{4:102,5:116,6:121,7:112,8:[102,70],9:52,10:[118,86],11:32},extractor:null},{name:"MPEG-4 video",extension:"mp4",mime:"video/mp4",description:"",signature:[{0:0,1:0,2:0,3:[24,32],4:102,5:116,6:121,7:112},{0:51,1:103,2:112,3:53},{0:0,1:0,2:0,3:28,4:102,5:116,6:121,7:112,8:109,9:112,10:52,11:50,16:109,17:112,18:52,19:49,20:109,21:112,22:52,23:50,24:105,25:115,26:111,27:109}],extractor:null},{name:"M4V video",extension:"m4v",mime:"video/x-m4v",description:"",signature:{0:0,1:0,2:0,3:28,4:102,5:116,6:121,7:112,8:77,9:52,10:86},extractor:null},{name:"Quicktime video",extension:"mov",mime:"video/quicktime",description:"",signature:{0:0,1:0,2:0,3:20,4:102,5:116,6:121,7:112},extractor:null},{name:"Audio Video Interleave",extension:"avi",mime:"video/x-msvideo",description:"",signature:{0:82,1:73,2:70,3:70,8:65,9:86,10:73},extractor:null},{name:"Windows Media Video",extension:"wmv",mime:"video/x-ms-wmv",description:"",signature:{0:48,1:38,2:178,3:117,4:142,5:102,6:207,7:17,8:166,9:217},extractor:null},{name:"MPEG video",extension:"mpg",mime:"video/mpeg",description:"",signature:{0:0,1:0,2:1,3:186},extractor:null},{name:"Flash Video",extension:"flv",mime:"video/x-flv",description:"",signature:{0:70,1:76,2:86,3:1},extractor:function(e,t){var r=new se(e.slice(t));r.moveForwardsBy(5);var n=r.readInt(4,"be");r.moveForwardsBy(n-9);for(var i=-11;r.hasMore();){var o=r.readInt(4,"be"),s=r.readInt(1);if([8,9,18].indexOf(s)<0){r.moveBackwardsBy(1);break}if(o!==i+11){r.moveBackwardsBy(i+11+5);break}i=r.readInt(3,"be"),r.moveForwardsBy(7+i)}return r.carve()}},{name:"OGG Video",extension:"ogv,ogm,opus,ogx",mime:"video/ogg",description:"",signature:[{0:79,1:103,2:103,3:83,4:0,5:2,28:1,29:118,30:105,31:100,32:101,33:111},{0:79,1:103,2:103,3:83,4:0,5:2,28:128,29:116,30:104,31:101,32:111,33:114,34:97},{0:79,1:103,2:103,3:83,4:0,5:2,28:102,29:105,30:115,31:104,32:101,33:97,34:100}],extractor:null}],Audio:[{name:"Waveform Audio",extension:"wav",mime:"audio/x-wav",description:"",signature:{0:82,1:73,2:70,3:70,8:87,9:65,10:86,11:69},extractor:function(e,t){var r=new se(e.slice(t));return r.moveTo(4),r.moveTo(r.readInt(4,"le")+8),r.carve()}},{name:"OGG audio",extension:"ogg",mime:"audio/ogg",description:"",signature:{0:79,1:103,2:103,3:83},extractor:null},{name:"Musical Instrument Digital Interface audio",extension:"midi",mime:"audio/midi",description:"",signature:{0:77,1:84,2:104,3:100},extractor:null},{name:"MPEG-3 audio",extension:"mp3",mime:"audio/mpeg",description:"",signature:[{0:73,1:68,2:51},{0:255,1:251}],extractor:function(e,t){var r=new se(e.slice(t)),n=["free",32e3,4e4,48e3,56e3,64e3,8e4,96e3,112e3,128e3,16e4,192e3,224e3,256e3,32e4,"bad"],i=[44100,48e3,32e3,"reserved"];if(r.getBytes(3).toString()===[73,68,51].toString()){r.moveTo(6);var o=r.readInt(1)<<21|r.readInt(1)<<14|r.readInt(1)<<7|r.readInt(1);r.moveForwardsBy(o)}else r.moveTo(0);for(;r.hasMore();){if(r.getBytes(3)===[84,65,71].toString()){r.moveForwardsBy(125);break}if(r.getBytes(2).toString()!==[255,251].toString()){r.moveBackwardsBy(2);break}var s=r.readInt(1),a=n[s>>4],u=i[(15&s)>>2],f=(2&s)>>1;if("free"===a||"bad"===a||"reserved"===u){r.moveBackwardsBy(1);break}var l=Math.floor(144*a/u+f);if(r.position+l>r.length){r.moveTo(r.length);break}r.moveForwardsBy(l-3)}return r.carve()}},{name:"MPEG-4 Part 14 audio",extension:"m4a",mime:"audio/m4a",description:"",signature:[{4:102,5:116,6:121,7:112,8:77,9:52,10:65},{0:77,1:52,2:65,3:32}],extractor:null},{name:"Free Lossless Audio Codec",extension:"flac",mime:"audio/x-flac",description:"",signature:{0:102,1:76,2:97,3:67},extractor:null},{name:"Adaptive Multi-Rate audio codec",extension:"amr",mime:"audio/amr",description:"",signature:{0:35,1:33,2:65,3:77,4:82,5:10},extractor:null},{name:"Audacity",extension:"au",mime:"audio/x-au",description:"",signature:{0:100,1:110,2:115,3:46,24:65,25:117,26:100,27:97,28:99,29:105,30:116,31:121,32:66,33:108,34:111,35:99,36:107,37:70,38:105,39:108,40:101},extractor:null},{name:"Audacity Block",extension:"auf",mime:"application/octet-stream",description:"",signature:{0:65,1:117,2:100,3:97,4:99,5:105,6:116,7:121,8:66,9:108,10:111,11:99,12:107,13:70,14:105,15:108,16:101},extractor:null},{name:"Audio Interchange File",extension:"aif",mime:"audio/x-aiff",description:"",signature:{0:70,1:79,2:82,3:77,8:65,9:73,10:70,11:70},extractor:null},{name:"Audio Interchange File (compressed)",extension:"aifc",mime:"audio/x-aifc",description:"",signature:{0:70,1:79,2:82,3:77,8:65,9:73,10:70,11:67},extractor:null}],Documents:[{name:"Portable Document Format",extension:"pdf",mime:"application/pdf",description:"",signature:{0:37,1:80,2:68,3:70},extractor:function(e,t){var r=new se(e.slice(t));return r.continueUntil([37,37,69,79,70]),r.moveForwardsBy(5),r.consumeIf(13),r.consumeIf(10),r.carve()}},{name:"Portable Document Format (under Base64)",extension:"B64",mime:"application/octet-stream",description:"",signature:{0:65,1:74,2:86,3:66,4:69,5:82,6:105},extractor:null},{name:"Adobe PostScript",extension:"ps,eps,ai,pfa",mime:"application/postscript",description:"",signature:{0:37,1:33,2:80,3:83,4:45,5:65,6:100,7:111,8:98,9:101},extractor:null},{name:"PostScript",extension:"ps",mime:"application/postscript",description:"",signature:{0:37,1:33},extractor:null},{name:"Encapsulated PostScript",extension:"eps,ai",mime:"application/eps",description:"",signature:{0:197,1:208,2:211,3:198},extractor:null},{name:"Rich Text Format",extension:"rtf",mime:"application/rtf",description:"",signature:{0:123,1:92,2:114,3:116},extractor:function(e,t){var r=new se(e.slice(t)),n=0;if(123!==r.readInt(1))throw new Error("Not a valid RTF file");for(n++;n>0&&r.hasMore();)switch(r.readInt(1)){case 123:n++;break;case 125:n--;break;case 92:r.consumeIf(92),r.position++}return r.carve()}},{name:"Microsoft Office document/OLE2",extension:"ole2,doc,xls,dot,ppt,xla,ppa,pps,pot,msi,sdw,db,vsd,msg",mime:"application/msword,application/vnd.ms-excel,application/vnd.ms-powerpoint",description:"Microsoft Office documents",signature:{0:208,1:207,2:17,3:224,4:161,5:177,6:26,7:225},extractor:null},{name:"Microsoft Office document/OLE2 (under Base64)",extension:"B64",mime:"application/octet-stream",description:"",signature:{0:48,1:77,2:56,3:82,4:52,5:75,6:71,7:120},extractor:null},{name:"Microsoft Office 2007+ document",extension:"docx,xlsx,pptx",mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.openxmlformats-officedocument.presentationml.presentation",description:"",signature:{38:95,39:84,40:121,41:112,42:101,43:115,44:93,45:46,46:120,47:109,48:108},extractor:le},{name:"Microsoft Access database",extension:"mdb,mda,mde,mdt,fdb,psa",mime:"application/msaccess",description:"",signature:{0:0,1:1,2:0,3:0,4:83,5:116,6:97,7:110,8:100,9:97,10:114,11:100,12:32,13:74,14:101,15:116},extractor:null},{name:"Microsoft Access 2007+ database",extension:"accdb,accde,accda,accdu",mime:"application/msaccess",description:"",signature:{0:0,1:1,2:0,3:0,4:83,5:116,6:97,7:110,8:100,9:97,10:114,11:100,12:32,13:65,14:67,15:69,16:32},extractor:null},{name:"Microsoft OneNote document",extension:"one",mime:"application/onenote",description:"",signature:{0:228,1:82,2:92,3:123,4:140,5:216,6:167,7:77,8:174,9:177,10:83,11:120,12:208,13:41,14:150,15:211},extractor:null},{name:"Outlook Express database",extension:"dbx",mime:"application/octet-stream",description:"",signature:{0:207,1:173,2:18,3:254,4:[48,197,198,199],11:17},extractor:null},{name:"Personal Storage Table (Outlook)",extension:"pst,ost,fdb,pab",mime:"application/octet-stream",description:"",signature:{0:33,1:66,2:68,3:78},extractor:null},{name:"Microsoft Exchange Database",extension:"edb",mime:"application/octet-stream",description:"",signature:{4:239,5:205,6:171,7:137,8:[32,35],9:6,10:0,11:0,12:[0,1],13:0,14:0,15:0},extractor:null},{name:"WordPerfect document",extension:"wpd,wp,wp5,wp6,wpp,bk!,wcm",mime:"application/wordperfect",description:"",signature:{0:255,1:87,2:80,3:67,7:[0,1,2],8:1,9:10},extractor:null},{name:"EPUB e-book",extension:"epub",mime:"application/epub+zip",description:"",signature:{0:80,1:75,2:3,3:4,30:109,31:105,32:109,33:101,34:116,35:121,36:112,37:101,38:97,39:112,40:112,41:108,42:105,43:99,44:97,45:116,46:105,47:111,48:110,49:47,50:101,51:112,52:117,53:98,54:43,55:122,56:105,57:112},extractor:le}],Applications:[{name:"Windows Portable Executable",extension:"exe,dll,drv,vxd,sys,ocx,vbx,com,fon,scr",mime:"application/vnd.microsoft.portable-executable",description:"",signature:{0:77,1:90,3:[0,1,2],5:[0,1,2]},extractor:function(e,t){var r=new se(e.slice(t));r.moveTo(60);var n=r.readInt(4,"le");r.moveTo(n),r.moveForwardsBy(6);var i=r.readInt(2,"le");r.moveForwardsBy(16);var o=523===r.readInt(2,"le")?112:96;r.moveForwardsBy(o-2),r.moveForwardsBy(32);var s=r.readInt(4,"le"),a=r.readInt(4,"le");if(s>0)return r.moveTo(s+a),r.carve();r.moveForwardsBy(88),r.moveForwardsBy(40*(i-1)),r.moveForwardsBy(16);var u=r.readInt(4,"le"),f=r.readInt(4,"le");return r.moveTo(f+u),r.carve()}},{name:"Executable and Linkable Format",extension:"elf,bin,axf,o,prx,so",mime:"application/x-executable",description:"Executable and Linkable Format file. No standard file extension.",signature:{0:127,1:69,2:76,3:70},extractor:function(e,t){var r=new se(e.slice(t));r.moveForwardsBy(4);var n=1===r.readInt(1),i=1===r.readInt(1)?"le":"be";r.moveForwardsBy(n?26:34);var o=n?r.readInt(4,i):r.readInt(8,i);r.moveForwardsBy(10);var s=r.readInt(2,i),a=r.readInt(2,i);return r.moveTo(o),r.moveForwardsBy(s*a),r.carve()}},{name:"MacOS Mach-O object",extension:"dylib",mime:"application/octet-stream",description:"",signature:[{0:202,1:254,2:186,3:190,4:0,5:0,6:0,7:[1,2,3]},{0:206,1:250,2:237,3:254,4:7,5:0,6:0,7:0,8:[1,2,3]}],extractor:ce},{name:"MacOS Mach-O 64-bit object",extension:"dylib",mime:"application/octet-stream",description:"",signature:{0:207,1:250,2:237,3:254},extractor:ce},{name:"Adobe Flash",extension:"swf",mime:"application/x-shockwave-flash",description:"",signature:{0:[67,70],1:87,2:83},extractor:null},{name:"Java Class",extension:"class",mime:"application/java-vm",description:"",signature:{0:202,1:254,2:186,3:190},extractor:null},{name:"Dalvik Executable",extension:"dex",mime:"application/octet-stream",description:"Dalvik Executable as used by Android",signature:{0:100,1:101,2:120,3:10,4:48,5:51,6:53,7:0},extractor:null},{name:"Google Chrome Extension",extension:"crx",mime:"application/crx",description:"Google Chrome extension or packaged app",signature:{0:67,1:114,2:50,3:52},extractor:null}],Archives:[{name:"PKZIP archive",extension:"zip",mime:"application/zip",description:"",signature:{0:80,1:75,2:[3,5,7],3:[4,6,8]},extractor:le},{name:"PKZIP archive (under Base64)",extension:"B64",mime:"application/octet-stream",description:"",signature:{0:85,1:69,2:115,3:68,4:66,5:66},extractor:null},{name:"TAR archive",extension:"tar",mime:"application/x-tar",description:"",signature:{257:117,258:115,259:116,260:97,261:114},extractor:function(e,t){for(var r=new se(e.slice(t)),n=function(){if(r.moveForwardsBy(257),r.getBytes(5).join("")!==[117,115,116,97,114].join(""))return r.moveBackwardsBy(262),1;r.moveBackwardsBy(138);var e=0;r.getBytes(11).forEach(function(t,r){e+=(t-48).toString()}),e=512*Math.ceil(parseInt(e,8)/512),r.moveForwardsBy(e+377)};r.hasMore()&&!n(););return r.consumeWhile(0),r.carve()}},{name:"Roshal Archive",extension:"rar",mime:"application/x-rar-compressed",description:"",signature:{0:82,1:97,2:114,3:33,4:26,5:7,6:[0,1]},extractor:null},{name:"Gzip",extension:"gz",mime:"application/gzip",description:"",signature:{0:31,1:139,2:8},extractor:function(e,t){var r=new se(e.slice(t));r.moveForwardsBy(3);var n=r.readInt(1);if(r.moveForwardsBy(4),r.readInt(1),r.moveForwardsBy(1),4&n){var i=r.readInt(2,"le");r.moveForwardsby(i)}return 8&n&&(r.continueUntil(0),r.moveForwardsBy(1)),16&n&&(r.continueUntil(0),r.moveForwardsBy(1)),2&n&&r.moveForwardsBy(2),ve(r),r.moveForwardsBy(8),r.carve()}},{name:"Bzip2",extension:"bz2",mime:"application/x-bzip2",description:"",signature:{0:66,1:90,2:104},extractor:function(e,t){for(var r=new se(e.slice(t)),n=[[119,36,83,133,9],[238,72,167,10,18],[220,145,78,20,36],[185,34,156,40,72],[114,69,56,80,144],[187,146,41,194,132],[93,201,20,225,66],[46,228,138,112,161],[23,114,69,56,80]],i=0;i<n.length&&(r.continueUntil(n[i]),r.getBytes(5).join("")!==n[i].join(""));i++)r.moveTo(0);return r.moveForwardsBy(4),r.carve()}},{name:"7zip",extension:"7z",mime:"application/x-7z-compressed",description:"",signature:{0:55,1:122,2:188,3:175,4:39,5:28},extractor:null},{name:"Zlib Deflate",extension:"zlib",mime:"application/x-deflate",description:"",signature:{0:120,1:[1,156,218,94]},extractor:function(e,t){var r=new se(e.slice(t));return r.moveForwardsBy(1),32&r.readInt(1)&&r.moveForwardsBy(4),ve(r),r.moveForwardsBy(4),r.carve()}},{name:"xz compression",extension:"xz",mime:"application/x-xz",description:"",signature:{0:253,1:55,2:122,3:88,4:90,5:0},extractor:function(e,t){var r=new se(e.slice(t));return r.continueUntil([0,0,0,0,4,89,90]),r.moveForwardsBy(7),r.carve()}},{name:"Tarball",extension:"tar.z",mime:"application/x-gtar",description:"",signature:{0:31,1:[157,160]},extractor:null},{name:"ISO disk image",extension:"iso",mime:"application/octet-stream",description:"ISO 9660 CD/DVD image file",signature:[{32769:67,32770:68,32771:48,32772:48,32773:49},{34817:67,34818:68,34819:48,34820:48,34821:49},{36865:67,36866:68,36867:48,36868:48,36869:49}],extractor:null},{name:"Virtual Machine Disk",extension:"vmdk",mime:"application/vmdk,application/x-virtualbox-vmdk",description:"",signature:{0:75,1:68,2:77,3:86,5:0,6:0,7:0},extractor:null},{name:"Virtual Hard Drive",extension:"vhd",mime:"application/x-vhd",description:"",signature:{0:99,1:111,2:110,3:101,4:99,5:116,6:105,7:120},extractor:null},{name:"Macintosh disk image",extension:"dmf,dmg",mime:"application/octet-stream",description:"",signature:{0:120,1:1,2:115,3:13,4:98,5:98,6:96,7:96},extractor:null},{name:"ARJ Archive",extension:"arj",mime:"application/x-arj-compressed",description:"",signature:{0:96,1:234,8:[0,16,20],9:0,10:2},extractor:null},{name:"WinAce Archive",extension:"ace",mime:"application/x-ace-compressed",description:"",signature:{7:42,8:42,9:65,10:67,11:69,12:42,13:42},extractor:null},{name:"Macintosh BinHex Encoded File",extension:"hqx",mime:"application/mac-binhex",description:"",signature:{11:109,12:117,13:115,14:116,15:32,16:98,17:101,18:32,19:99,20:111,21:110,22:118,23:101,24:114,25:116,26:101,27:100,28:32,29:119,30:105,31:116,32:104,33:32,34:66,35:105,36:110,37:72,38:101,39:120},extractor:null},{name:"ALZip Archive",extension:"alz",mime:"application/octet-stream",description:"",signature:{0:65,1:76,2:90,3:1,4:10,5:0,6:0,7:0},extractor:null},{name:"KGB Compressed Archive",extension:"kgb",mime:"application/x-kgb-compressed",description:"",signature:{0:75,1:71,2:66,3:95,4:97,5:114,6:99,7:104,8:32,9:45},extractor:null},{name:"Microsoft Cabinet",extension:"cab",mime:"vnd.ms-cab-compressed",description:"",signature:{0:77,1:83,2:67,3:70,4:0,5:0,6:0,7:0},extractor:null},{name:"Jar Archive",extension:"jar",mime:"application/java-archive",description:"",signature:{0:95,1:39,2:168,3:137},extractor:null},{name:"Jar Archive",extension:"jar",mime:"application/java-archive",description:"",signature:{0:80,1:75,2:3,3:4,4:20,5:0,6:8,7:0,8:8,9:0},extractor:le},{name:"lzop compressed",extension:"lzop,lzo",mime:"application/x-lzop",description:"",signature:{0:137,1:76,2:90,3:79,4:0,5:13,6:10,7:26},extractor:function(e,t){var r=new se(e.slice(t)),n=0,i=0;r.moveForwardsBy(9);var o=r.readInt(2,"be");r.moveForwardsBy(6);var s=r.readInt(4,"be");2048&o&&r.moveForwardsBy(4),2&s&&n++,512&s&&n++,1&s&&i++,256&s&&i++,r.moveForwardsBy(8),o>=2368&&r.moveForwardsBy(4);var a=r.readInt(1,"be");if(r.moveForwardsBy(a),64&s){var u=r.readInt(4,"be");r.moveForwardsBy(u)}for(r.moveForwardsBy(4);r.hasMore();){var f=r.readInt(4,"be");if(0===f)break;var l=r.readInt(4,"be"),c=f===l?i:i+n;r.moveForwardsBy(l+4*c)}return r.carve()}},{name:"Linux deb package",extension:"deb",mime:"application/vnd.debian.binary-package",description:"",signature:{0:33,1:60,2:97,3:114,4:99,5:104,6:62},extractor:function(e,t){var r=new se(e.slice(t));for(r.moveForwardsBy(8);r.hasMore();){r.moveForwardsBy(48);var n,i="",o=ae(r.getBytes(10));try{for(o.s();!(n=o.n()).done;){var s=n.value;i+=String.fromCharCode(s)}}catch(e){o.e(e)}finally{o.f()}i=parseInt(i.trim(),10),r.moveForwardsBy(2),r.moveForwardsBy(i)}return r.carve()}},{name:"Apple Disk Image",extension:"dmg",mime:"application/x-apple-diskimage",description:"",signature:{0:120,1:1,2:115,3:13,4:98,5:98,6:96},extractor:null}],Miscellaneous:[{name:"UTF-8 text",extension:"txt",mime:"text/plain",description:"UTF-8 encoded Unicode byte order mark, commonly but not exclusively seen in text files.",signature:{0:239,1:187,2:191},extractor:null},{name:"UTF-32 LE text",extension:"utf32le",mime:"charset/utf32le",description:"Little-endian UTF-32 encoded Unicode byte order mark.",signature:{0:255,1:254,2:0,3:0},extractor:null},{name:"UTF-16 LE text",extension:"utf16le",mime:"charset/utf16le",description:"Little-endian UTF-16 encoded Unicode byte order mark.",signature:{0:255,1:254},extractor:null},{name:"Web Open Font Format",extension:"woff",mime:"application/font-woff",description:"",signature:{0:119,1:79,2:70,3:70,4:0,5:1,6:0,7:0},extractor:null},{name:"Web Open Font Format 2",extension:"woff2",mime:"application/font-woff",description:"",signature:{0:119,1:79,2:70,3:50,4:0,5:1,6:0,7:0},extractor:null},{name:"Embedded OpenType font",extension:"eot",mime:"application/octet-stream",description:"",signature:[{8:2,9:0,10:1,34:76,35:80},{8:1,9:0,10:0,34:76,35:80},{8:2,9:0,10:2,34:76,35:80}],extractor:null},{name:"TrueType Font",extension:"ttf",mime:"application/font-sfnt",description:"",signature:{0:0,1:1,2:0,3:0,4:0},extractor:null},{name:"OpenType Font",extension:"otf",mime:"application/font-sfnt",description:"",signature:{0:79,1:84,2:84,3:79,4:0},extractor:null},{name:"SQLite",extension:"sqlite",mime:"application/x-sqlite3",description:"",signature:{0:83,1:81,2:76,3:105},extractor:function(e,t){var r=new se(e.slice(t));r.moveTo(16);var n=r.readInt(2);r.moveTo(28);var i=r.readInt(4);return r.moveTo(n*i),r.carve()}},{name:"BitTorrent link",extension:"torrent",mime:"application/x-bittorrent",description:"",signature:[{0:100,1:56,2:58,3:97,4:110,5:110,6:111,7:117,8:110,9:99,10:101,11:35,12:35,13:58},{0:100,1:52,2:58,3:105,4:110,5:102,6:111,7:100,8:[52,53,54],9:58}],extractor:null},{name:"Cryptocurrency wallet",extension:"wallet",mime:"application/octet-stream",description:"",signature:{0:0,1:0,2:0,3:0,4:1,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:98,13:49,14:5,15:0},extractor:null},{name:"Registry fragment",extension:"hbin",mime:"application/octet-stream",description:"",signature:{0:104,1:98,2:105,3:110,4:0},extractor:null},{name:"Registry script",extension:"rgs",mime:"application/octet-stream",description:"",signature:{0:72,1:75,2:67,3:82,4:13,5:10,6:92,7:123},extractor:null},{name:"WinNT Registry Hive",extension:"registry",mime:"application/octet-stream",description:"",signature:{0:114,1:101,2:103,3:102},extractor:null},{name:"Windows Event Log",extension:"evt",mime:"application/octet-stream",description:"",signature:{0:48,1:0,2:0,3:0,4:76,5:102,6:76,7:101},extractor:function(e,t){var r=new se(e.slice(t));r.moveTo(20);var n=r.readInt(4,"le");r.moveTo(n);var i=r.readInt(4,"le");return r.moveForwardsBy(i-4),r.carve()}},{name:"Windows Event Log",extension:"evtx",mime:"application/octet-stream",description:"",signature:{0:69,1:108,2:102,3:70,4:105,5:108,6:101},extractor:function(e,t){var r=new se(e.slice(t));r.moveTo(40);var n=r.readInt(4,"le")-44;for(r.moveForwardsBy(n);r.hasMore()&&r.getBytes(7).join("")===[69,108,102,67,104,110,107].join("");)r.moveForwardsBy(65529);return r.consumeWhile(0),r.carve()}},{name:"Windows Pagedump",extension:"dmp",mime:"application/octet-stream",description:"",signature:{0:80,1:65,2:71,3:69,4:68,5:85,6:[77,54],7:[80,52]},extractor:function(e,t){var r=new se(e.slice(t));return r.moveTo(112),r.moveTo(4096*(r.readInt(4,"le")+1)),r.carve()}},{name:"Windows Prefetch",extension:"pf",mime:"application/x-pf",description:"",signature:{0:[17,23,26],1:0,2:0,3:0,4:83,5:67,6:67,7:65},extractor:function(e,t){var r=new se(e.slice(t));return r.moveTo(12),r.moveTo(r.readInt(4,"be")),r.carve()}},{name:"Windows Prefetch (Win 10)",extension:"pf",mime:"application/x-pf",description:"",signature:{0:77,1:65,2:77,3:4,7:0},extractor:function(e,t){var r=new se(e.slice(t));return r.moveTo(r.readInt(4,"be")),r.carve()}},{name:"PList (XML)",extension:"plist",mime:"application/xml",description:"",signature:{39:60,40:33,41:68,42:79,43:67,44:84,45:89,46:80,47:69,48:32,49:112,50:108,51:105,52:115,53:116},extractor:function(e,t){var r=new se(e.slice(t)),n=0;for(r.continueUntil([60,112,108,105,115,116]),r.moveForwardsBy(6),n++;n>0&&r.hasMore();)60===r.readInt(1)&&(r.getBytes(5).join("")===[112,108,105,115,116].join("")?n++:r.moveBackwardsBy(5),r.getBytes(7).join("")===[47,112,108,105,115,116,62].join("")?n--:r.moveBackwardsBy(7));return r.consumeIf(10),r.carve()}},{name:"PList (binary)",extension:"bplist,plist,ipmeta,abcdp,mdbackup,mdinfo,strings,nib,ichat,qtz,webbookmark,webhistory",mime:"application/x-plist",description:"",signature:{0:98,1:112,2:108,3:105,4:115,5:116,6:48,7:48},extractor:null},{name:"MacOS X Keychain",extension:"keychain",mime:"application/octet-stream",description:"",signature:{0:107,1:121,2:99,3:104,4:0,5:1},extractor:function(e,t){var r=new se(e.slice(t));return r.moveTo(20),r.moveForwardsBy(r.readInt(4)),r.carve()}},{name:"TCP Packet",extension:"tcp",mime:"application/tcp",description:"",signature:{12:8,13:0,14:69,15:0,21:0,22:function(e){return e>=1&&e<=128},23:6},extractor:null},{name:"UDP Packet",extension:"udp",mime:"application/udp",description:"",signature:{12:8,13:0,14:69,15:0,16:[0,1,2,3,4,5],22:function(e){return e>=1&&e<=128},23:17},extractor:null},{name:"Compiled HTML",extension:"chm,chw,chi",mime:"application/vnd.ms-htmlhelp",description:"",signature:{0:73,1:84,2:83,3:70,4:3,5:0,6:0,7:0},extractor:null},{name:"Windows Password",extension:"pwl",mime:"application/octet-stream",description:"",signature:{0:227,1:130,2:133,3:150},extractor:null},{name:"Bitlocker recovery key",extension:"bitlocker",mime:"application/octet-stream",description:"",signature:{0:255,1:254,2:66,3:0,4:105,5:0,6:116,7:0,8:76,9:0,10:111,11:0,12:99,13:0,14:107,15:0,16:101,17:0,18:114,19:0,20:32,21:0},extractor:null},{name:"Certificate",extension:"cer,cat,p7b,p7c,p7m,p7s,swz,rsa,crl,crt,der",mime:"application/pkix-cert",description:"",signature:{0:48,1:130,4:[6,10,48]},extractor:null},{name:"Certificate",extension:"cat,swz,p7m",mime:"application/vnd.ms-pki.seccat",description:"",signature:{0:48,1:131,2:function(e){return 0!==e},5:6,6:9},extractor:null},{name:"PGP pubring",extension:"pkr,gpg",mime:"application/pgp-keys",description:"",signature:{0:153,1:1,2:[13,162],3:4},extractor:null},{name:"PGP secring",extension:"skr",mime:"application/pgp-keys",description:"",signature:[{0:149,1:1,2:207,3:4},{0:149,1:3,2:198,3:4},{0:149,1:5,2:134,3:4}],extractor:null},{name:"PGP Safe",extension:"pgd",mime:"application/pgp-keys",description:"",signature:{0:80,1:71,2:80,3:100,4:77,5:65,6:73,7:78,8:96,9:1,10:0},extractor:null},{name:"Task Scheduler",extension:"job",mime:"application/octet-stream",description:"",signature:{0:[0,1,2,3],1:[5,6],2:1,3:0,20:70,21:0},extractor:null},{name:"Windows Shortcut",extension:"lnk",mime:"application/x-ms-shortcut",description:"",signature:{0:76,1:0,2:0,3:0,4:1,5:20,6:2,7:0,8:0,9:0,10:0,11:0,12:192,13:0,14:0,15:0,16:0,17:0,18:0,19:70},extractor:function(e,t){var r=new se(e.slice(t));return r.moveTo(52),r.moveTo(r.readInt(4,"le")),r.carve()}},{name:"Bash",extension:"bash",mime:"application/bash",description:"",signature:{0:35,1:33,2:47,3:98,4:105,5:110,6:47,7:98,8:97,9:115,10:104},extractor:null},{name:"Shell",extension:"sh",mime:"application/sh",description:"",signature:{0:35,1:33,2:47,3:98,4:105,5:110,6:47,7:115,8:104},extractor:null},{name:"Python",extension:"py,pyc,pyd,pyo,pyw,pyz",mime:"application/python",description:"",signature:{0:35,1:33,2:47,3:117,4:115,5:114,6:47,7:98,8:105,9:110,10:47,11:112,12:121,13:116,14:104,15:111,16:110,17:[50,51,10,13]},extractor:null},{name:"Ruby",extension:"rb",mime:"application/ruby",description:"",signature:{0:35,1:33,2:47,3:117,4:115,5:114,6:47,7:98,8:105,9:110,10:47,11:114,12:117,13:98,14:121},extractor:null},{name:"perl",extension:"pl,pm,t,pod",mime:"application/perl",description:"",signature:{0:35,1:33,2:47,3:117,4:115,5:114,6:47,7:98,8:105,9:110,10:47,11:112,12:101,13:114,14:108},extractor:null},{name:"php",extension:"php,phtml,php3,php4,php5,php7,phps,php-s,pht,phar",mime:"application/php",description:"",signature:{0:60,1:63,2:112,3:104,4:112},extractor:null},{name:"Smile",extension:"sml",mime:"\tapplication/x-jackson-smile",description:"",signature:{0:58,1:41,2:10},extractor:null},{name:"Lua Bytecode",extension:"luac",mime:"application/x-lua",description:"",signature:{0:27,1:76,2:117,3:97},extractor:null},{name:"WebAssembly binary",extension:"wasm",mime:"application/octet-stream",description:"",signature:{0:0,1:97,2:115,3:109},extractor:null}]};function le(e,t){var r=new se(e.slice(t));r.continueUntil([80,75,5,6]),r.moveForwardsBy(20);var n=r.readInt(2,"le");return r.moveForwardsBy(n),r.carve()}function ce(e,t){var r="207250237254",n=new se(e.slice(t)),i=n.getBytes(4).join("");return n.moveTo(function(e,t,r){var n=28;t&&(n+=4),e.moveTo(16);var i=e.readInt(4,r);return function(e,t,r,n){for(var i=0,o=0;o<n;o++){e.moveTo(t);var s=e.readInt(4,r);25===s?(e.moveTo(t+48),i+=e.readInt(8,r),e.moveTo(t+4),t+=e.readInt(4,r)):1===s&&(e.moveTo(t+36),i+=e.readInt(4,r),e.moveTo(t+4),t+=e.readInt(4,r))}return i}(e,n,r,i)}(n,function(e){return e===r||"254237250207"===e}(i),function(e){return"206250237254"===e||e===r}(i)?"le":"be")),n.carve()}for(var he=new Array(288),pe=0;pe<he.length;pe++)he[pe]=pe<=143?8:pe<=255?9:pe<=279?7:8;var de=xe(he),ye=xe(new Array(30).fill(5)),me=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function ve(e){for(var t=0;!t;){t=e.readBits(1,"le");var r=e.readBits(2,"le");if(0===r){e.moveForwardsBy(1);var n=e.readInt(2,"le");e.moveForwardsBy(2+n)}else if(1===r)we(e,de,ye);else{if(2!==r)throw new Error(`Invalid block type while parsing DEFLATE stream at pos ${e.position}`);for(var i=e.readBits(5,"le")+257,o=e.readBits(5,"le")+1,s=e.readBits(4,"le")+4,a=new Uint8Array(me.length),u=0;u<s;u++)a[me[u]]=e.readBits(3,"le");for(var f=xe(a),l=new Uint8Array(i+o),c=void 0,h=void 0,p=void 0,d=0;d<i+o;)switch(c=Ae(e,f)){case 16:for(h=3+e.readBits(2,"le");h--;)l[d++]=p;break;case 17:for(h=3+e.readBits(3,"le");h--;)l[d++]=0;p=0;break;case 18:for(h=11+e.readBits(7,"le");h--;)l[d++]=0;p=0;break;default:l[d++]=c,p=c}we(e,xe(l.subarray(0,i)),xe(l.subarray(i)))}}e.bitPos>0&&e.moveForwardsBy(1)}var ge=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0],be=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13];function we(e,t,r){for(var n,i=0;(n=Ae(e,t))&&256!==n;){if(++i>1e4)throw new Error("Caught in probable infinite loop while parsing Huffman Block");n<256||(e.readBits(ge[n-257],"le"),n=Ae(e,r),e.readBits(be[n],"le"))}}function xe(e){for(var t=Math.max.apply(Math,e),r=Math.min.apply(Math,e),n=1<<t,i=new Uint32Array(n),o=1,s=0,a=2;o<=t;){for(var u=0;u<e.length;u++)if(e[u]===o){var f=void 0,l=void 0,c=void 0;for(f=0,l=s,c=0;c<o;c++)f=f<<1|1&l,l>>=1;for(var h=o<<16|u,p=f;p<n;p+=a)i[p]=h;s++}o++,s<<=1,a<<=1}return[i,t,r]}function Ae(e,t){var r=oe(t,2),n=r[0],i=r[1],o=n[e.readBits(i,"le")&(1<<i)-1],s=o>>>16;if(s>i)throw new Error(`Invalid Huffman Code length while parsing DEFLATE block at pos ${e.position}: ${s}`);return e.moveBackwardsByBits(i-s),65535&o}function Be(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(e.length){for(var n=0;n<e.length;n++)if(Ee(e[n],t,r))return!0;return!1}return Ee(e,t,r)}function Ee(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;for(var n in e){var i=parseInt(n,10)+r;switch(typeof e[n]){case"number":if(t[i]!==e[n])return!1;break;case"object":if(e[n].indexOf(t[i])<0)return!1;break;case"function":if(!e[n](t[i]))return!1;break;default:throw new Error(`Unrecognised signature type at offset ${n}`)}}return!0}const Fe=function(){return o(function t(){e(this,t)},null,[{key:"checkForValue",value:function(e){if(void 0===e)throw new Error("only use translation methods with .bind")}},{key:"toArrayBuffer",value:function(){throw new Error("toArrayBuffer has not been implemented")}},{key:"fromArrayBuffer",value:function(){throw new Error("fromArrayBuffer has not been implemented")}}])}();function Oe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Oe=function(){return!!e})()}const _e=function(t){function r(){return e(this,r),t=this,i=arguments,n=a(n=r),s(t,Oe()?Reflect.construct(n,i||[],a(t).constructor):n.apply(t,i));var t,n,i}return f(r,t),o(r,null,[{key:"toArrayBuffer",value:function(){r.checkForValue(this.value),this.value=new Uint8Array(this.value).buffer}},{key:"fromArrayBuffer",value:function(){r.checkForValue(this.value),this.value=Array.prototype.slice.call(new Uint8Array(this.value))}}])}(Fe);function ke(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ke=function(){return!!e})()}const Te=function(t){function r(){return e(this,r),t=this,i=arguments,n=a(n=r),s(t,ke()?Reflect.construct(n,i||[],a(t).constructor):n.apply(t,i));var t,n,i}return f(r,t),o(r,null,[{key:"toArrayBuffer",value:function(){r.checkForValue(this.value),this.value=ie.isBigNumber(this.value)?L.strToArrayBuffer(this.value.toFixed()):new ArrayBuffer}},{key:"fromArrayBuffer",value:function(){r.checkForValue(this.value);try{this.value=new ie(L.arrayBufferToStr(this.value))}catch(e){this.value=new ie(NaN)}}}])}(Fe);function Ie(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ie=function(){return!!e})()}const Se=function(t){function r(){return e(this,r),t=this,i=arguments,n=a(n=r),s(t,Ie()?Reflect.construct(n,i||[],a(t).constructor):n.apply(t,i));var t,n,i}return f(r,t),o(r,null,[{key:"toArrayBuffer",value:function(){var e=this;if(r.checkForValue(this.value),!N())return new Promise(function(t,r){L.readFile(e.value).then(function(t){return e.value=t.buffer}).then(t).catch(r)});this.value=L.readFileSync(this.value)}},{key:"fromArrayBuffer",value:function(){r.checkForValue(this.value),this.value=new File(this.value,"unknown")}}])}(Fe);function je(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(je=function(){return!!e})()}const Ne=function(t){function r(){return e(this,r),t=this,i=arguments,n=a(n=r),s(t,je()?Reflect.construct(n,i||[],a(t).constructor):n.apply(t,i));var t,n,i}return f(r,t),o(r,null,[{key:"toArrayBuffer",value:function(){r.checkForValue(this.value),this.value=this.value?L.strToArrayBuffer(this.value):new ArrayBuffer}},{key:"fromArrayBuffer",value:function(){r.checkForValue(this.value),this.value=this.value?L.arrayBufferToStr(this.value):""}}])}(Fe);function Re(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Re=function(){return!!e})()}const Ce=function(t){function r(){return e(this,r),t=this,i=arguments,n=a(n=r),s(t,Re()?Reflect.construct(n,i||[],a(t).constructor):n.apply(t,i));var t,n,i}return f(r,t),o(r,null,[{key:"toArrayBuffer",value:function(){r.checkForValue(this.value),this.value=this.value?L.strToArrayBuffer(L.unescapeHtml(L.stripHtmlTags(this.value,!0))):new ArrayBuffer}}])}(Ne);function Le(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Le=function(){return!!e})()}const Pe=function(t){function r(){return e(this,r),t=this,i=arguments,n=a(n=r),s(t,Le()?Reflect.construct(n,i||[],a(t).constructor):n.apply(t,i));var t,n,i}return f(r,t),o(r,null,[{key:"toArrayBuffer",value:function(){r.checkForValue(this.value),this.value=void 0!==this.value?L.strToArrayBuffer(JSON.stringify(this.value,null,4)):new ArrayBuffer}},{key:"fromArrayBuffer",value:function(){r.checkForValue(this.value),this.value=JSON.parse(L.arrayBufferToStr(this.value))}}])}(Fe);function De(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(De=function(){return!!e})()}const Ue=function(t){function r(){return e(this,r),t=this,i=arguments,n=a(n=r),s(t,De()?Reflect.construct(n,i||[],a(t).constructor):n.apply(t,i));var t,n,i}return f(r,t),o(r,null,[{key:"toArrayBuffer",value:(i=c(p().mark(function e(){return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r.checkForValue(this.value),!N()){e.next=1;break}this.value=this.value.map(function(e){return Uint8Array.from(e.data)}),e.next=3;break;case 1:return e.next=2,r.concatenateTypedArraysWithTypedElements.apply(r,m(this.value));case 2:this.value=e.sent;case 3:case"end":return e.stop()}},e,this)})),function(){return i.apply(this,arguments)})},{key:"fromArrayBuffer",value:function(){r.checkForValue(this.value),this.value=[new File(this.value,"unknown")]}},{key:"concatenateTypedArraysWithTypedElements",value:(n=c(p().mark(function e(){var t,r,n,i,o,s,a,u,f,l,c,h,d,y=arguments;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=0,r=y.length,n=new Array(r),i=0;i<r;i++)n[i]=y[i];for(o=0,s=n;o<s.length;o++)a=s[o],t+=a.size;u=new Uint8Array(t),f=0,l=0,c=n;case 1:if(!(l<c.length)){e.next=4;break}return h=c[l],e.next=2,L.readFile(h);case 2:d=e.sent,u.set(d,f),f+=d.length;case 3:l++,e.next=1;break;case 4:return e.abrupt("return",u);case 5:case"end":return e.stop()}},e)})),function(){return n.apply(this,arguments)})},{key:"concatenateTypedArrays",value:function(){for(var e=0,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];for(var i=0,o=r;i<o.length;i++)e+=o[i].length;for(var s=new Uint8Array(e),a=0,u=0,f=r;u<f.length;u++){var l=f[u];s.set(l,a),a+=l.length}return s}}]);var n,i}(Fe);function Me(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Me=function(){return!!e})()}const $e=function(t){function r(){return e(this,r),t=this,i=arguments,n=a(n=r),s(t,Me()?Reflect.construct(n,i||[],a(t).constructor):n.apply(t,i));var t,n,i}return f(r,t),o(r,null,[{key:"toArrayBuffer",value:function(){r.checkForValue(this.value),this.value="number"==typeof this.value?L.strToArrayBuffer(this.value.toString()):new ArrayBuffer}},{key:"fromArrayBuffer",value:function(){r.checkForValue(this.value),this.value=this.value?parseFloat(L.arrayBufferToStr(this.value)):0}}])}(Fe);var qe=function(){function t(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(e(this,t),this.value=new ArrayBuffer(0),this.type=t.ARRAY_BUFFER,r&&Object.prototype.hasOwnProperty.call(r,"value")&&Object.prototype.hasOwnProperty.call(r,"type"))this.set(r.value,r.type);else if(r&&null!==n)this.set(r,n);else if(r){var i=t.typeEnum(r.constructor.name);this.set(r,i)}}return o(t,[{key:"get",value:function(e){var r=this;return"string"==typeof e&&(e=t.typeEnum(e)),this.type!==e?N()?(this._translate(e),this.value):new Promise(function(t,n){r._translate(e).then(function(){t(r.value)}).catch(n)}):this.value}},{key:"set",value:function(e,r){if("string"==typeof r&&(r=t.typeEnum(r)),g().debug("Dish type: "+t.enumLookup(r)),this.value=e,this.type=r,!this.valid()){var n=L.truncate(JSON.stringify(this.value),25);throw new D(`Data is not a valid ${t.enumLookup(r)}: ${n}`)}}},{key:"presentAs",value:function(e){return this.clone().get(e)}},{key:"detectDishType",value:function(){var e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object.keys(fe);if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),!(e&&e.length>1))return[];var r=[],n={};for(var i in fe)t.includes(i)&&(n[i]=fe[i]);for(var o in n)n[o].forEach(function(t){Be(t.signature,e)&&r.push(t)});return r}(new Uint8Array(this.value.slice(0,2048)));return e.length&&e[0].mime&&"text/plain"===e[0].mime?e[0].mime:null}},{key:"getTitle",value:(r=c(p().mark(function e(r){var n,i,o,s;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n="",o=this.type,e.next=o===t.FILE?1:o===t.LIST_FILE?2:o===t.JSON?3:o===t.NUMBER||o===t.BIG_NUMBER?4:o===t.ARRAY_BUFFER||o===t.BYTE_ARRAY?5:6;break;case 1:return n=this.value.name,e.abrupt("continue",9);case 2:return n=`${this.value.length} file(s)`,e.abrupt("continue",9);case 3:return n="application/json",e.abrupt("continue",9);case 4:return n=this.value.toString(),e.abrupt("continue",9);case 5:if(null===(n=this.detectDishType())){e.next=6;break}return e.abrupt("continue",9);case 6:return e.prev=6,(i=this.clone()).value=i.value.slice(0,256),e.next=7,i.get(t.STRING);case 7:n=e.sent,e.next=9;break;case 8:e.prev=8,s=e.catch(6),g().error(`${t.enumLookup(this.type)} cannot be sliced. ${s}`);case 9:return e.abrupt("return",n.slice(0,r));case 10:case"end":return e.stop()}},e,this,[[6,8]])})),function(e){return r.apply(this,arguments)})},{key:"valid",value:function(){switch(this.type){case t.BYTE_ARRAY:if(!(this.value instanceof Uint8Array||this.value instanceof Array))return!1;for(var e=0;e<this.value.length;e++)if("number"!=typeof this.value[e]||this.value[e]<0||this.value[e]>255)return!1;return!0;case t.STRING:case t.HTML:return"string"==typeof this.value;case t.NUMBER:return"number"==typeof this.value;case t.ARRAY_BUFFER:return this.value instanceof ArrayBuffer;case t.BIG_NUMBER:return!!ie.isBigNumber(this.value)||!!Object.keys(this.value).sort().equals(["c","e","s"])&&(this.value=new ie({s:this.value.s,e:this.value.e,c:this.value.c,_isBigNumber:!0}),!0);case t.JSON:return!0;case t.FILE:return this.value instanceof File;case t.LIST_FILE:return this.value instanceof Array&&this.value.reduce(function(e,t){return e&&t instanceof File},!0);default:return!1}}},{key:"size",get:function(){switch(this.type){case t.BYTE_ARRAY:case t.STRING:case t.HTML:return this.value.length;case t.NUMBER:case t.BIG_NUMBER:return this.value.toString().length;case t.ARRAY_BUFFER:return this.value.byteLength;case t.JSON:return JSON.stringify(this.value).length;case t.FILE:return this.value.size;case t.LIST_FILE:return this.value.reduce(function(e,t){return e+t.size},0);default:return-1}}},{key:"clone",value:function(){var e=new t;switch(this.type){case t.STRING:case t.HTML:case t.NUMBER:case t.BIG_NUMBER:e.set(this.value,this.type);break;case t.BYTE_ARRAY:case t.JSON:e.set(JSON.parse(JSON.stringify(this.value)),this.type);break;case t.ARRAY_BUFFER:e.set(this.value.slice(0),this.type);break;case t.FILE:e.set(new File([this.value],this.value.name,{type:this.value.type,lastModified:this.value.lastModified}),this.type);break;case t.LIST_FILE:e.set(this.value.map(function(e){return new File([e],e.name,{type:e.type,lastModified:e.lastModified})}),this.type);break;default:throw new D("Cannot clone Dish, unknown type")}return e}},{key:"_translate",value:function(e){var r=this;if(g().debug(`Translating Dish from ${t.enumLookup(this.type)} to ${t.enumLookup(e)}`),!N())return new Promise(function(n,i){r._toArrayBuffer().then(function(){return r.type=t.ARRAY_BUFFER}).then(function(){r._fromArrayBuffer(e),n()}).catch(i)});this._toArrayBuffer(),this.type=t.ARRAY_BUFFER,this._fromArrayBuffer(e)}},{key:"_toArrayBuffer",value:function(){var e=this,r={browser:{[t.STRING]:function(){return Promise.resolve(Ne.toArrayBuffer.bind(e)())},[t.NUMBER]:function(){return Promise.resolve($e.toArrayBuffer.bind(e)())},[t.HTML]:function(){return Promise.resolve(Ce.toArrayBuffer.bind(e)())},[t.ARRAY_BUFFER]:function(){return Promise.resolve()},[t.BIG_NUMBER]:function(){return Promise.resolve(Te.toArrayBuffer.bind(e)())},[t.JSON]:function(){return Promise.resolve(Pe.toArrayBuffer.bind(e)())},[t.FILE]:function(){return Se.toArrayBuffer.bind(e)()},[t.LIST_FILE]:function(){return Promise.resolve(Ue.toArrayBuffer.bind(e)())},[t.BYTE_ARRAY]:function(){return Promise.resolve(_e.toArrayBuffer.bind(e)())}},node:{[t.STRING]:function(){return Ne.toArrayBuffer.bind(e)()},[t.NUMBER]:function(){return $e.toArrayBuffer.bind(e)()},[t.HTML]:function(){return Ce.toArrayBuffer.bind(e)()},[t.ARRAY_BUFFER]:function(){},[t.BIG_NUMBER]:function(){return Te.toArrayBuffer.bind(e)()},[t.JSON]:function(){return Pe.toArrayBuffer.bind(e)()},[t.FILE]:function(){return Se.toArrayBuffer.bind(e)()},[t.LIST_FILE]:function(){return Ue.toArrayBuffer.bind(e)()},[t.BYTE_ARRAY]:function(){return _e.toArrayBuffer.bind(e)()}}};try{return r[N()?"node":"browser"][this.type]()}catch(e){throw new D(`Error translating from ${t.enumLookup(this.type)} to ArrayBuffer: ${e}`)}}},{key:"_fromArrayBuffer",value:function(e){var r=this,n={[t.STRING]:function(){return Ne.fromArrayBuffer.bind(r)()},[t.NUMBER]:function(){return $e.fromArrayBuffer.bind(r)()},[t.HTML]:function(){return Ce.fromArrayBuffer.bind(r)()},[t.ARRAY_BUFFER]:function(){},[t.BIG_NUMBER]:function(){return Te.fromArrayBuffer.bind(r)()},[t.JSON]:function(){return Pe.fromArrayBuffer.bind(r)()},[t.FILE]:function(){return Se.fromArrayBuffer.bind(r)()},[t.LIST_FILE]:function(){return Ue.fromArrayBuffer.bind(r)()},[t.BYTE_ARRAY]:function(){return _e.fromArrayBuffer.bind(r)()}};try{n[e](),this.type=e}catch(r){throw new D(`Error translating from ArrayBuffer to ${t.enumLookup(e)}: ${r}`)}}}],[{key:"typeEnum",value:function(e){switch(e.toLowerCase()){case"bytearray":case"byte array":return t.BYTE_ARRAY;case"string":return t.STRING;case"number":return t.NUMBER;case"html":return t.HTML;case"arraybuffer":case"array buffer":return t.ARRAY_BUFFER;case"bignumber":case"big number":return t.BIG_NUMBER;case"json":case"object":return t.JSON;case"file":return t.FILE;case"list<file>":return t.LIST_FILE;default:throw new D("Invalid data type string. No matching enum.")}}},{key:"enumLookup",value:function(e){switch(e){case t.BYTE_ARRAY:return"byteArray";case t.STRING:return"string";case t.NUMBER:return"number";case t.HTML:return"html";case t.ARRAY_BUFFER:return"ArrayBuffer";case t.BIG_NUMBER:return"BigNumber";case t.JSON:return"JSON";case t.FILE:return"File";case t.LIST_FILE:return"List<File>";default:throw new D("Invalid data type enum. No matching type.")}}}]);var r}();qe.BYTE_ARRAY=0,qe.STRING=1,qe.NUMBER=2,qe.HTML=3,qe.ARRAY_BUFFER=4,qe.BIG_NUMBER=5,qe.JSON=6,qe.FILE=7,qe.LIST_FILE=8;const Ve=qe,ze=function(){function t(r){e(this,t),this.name="",this.type="",this._value=null,this.disabled=!1,this.hint="",this.rows=0,this.toggleValues=[],this.target=null,this.defaultIndex=0,this.maxLength=null,this.min=null,this.max=null,this.step=1,this.integer=!1,this.allowEmpty=!0,r&&this._parseConfig(r)}return o(t,[{key:"_parseConfig",value:function(e){this.name=e.name,this.type=e.type,this.defaultValue=e.value,this.disabled=!!e.disabled,this.hint=e.hint||!1,this.rows=e.rows||!1,this.toggleValues=e.toggleValues,this.target=void 0!==e.target?e.target:null,this.defaultIndex=void 0!==e.defaultIndex?e.defaultIndex:0,this.maxLength=e.maxLength||null,this.min=e.min,this.max=e.max,this.step=e.step,this.integer=void 0!==e.integer&&!!e.integer,this.allowEmpty=void 0===e.allowEmpty||!!e.allowEmpty}},{key:"validate",value:function(e){if(this.disabled)return!0;var t,r,n,i=e;null==i&&(i=this.defaultValue),"toggleString"===this.type&&i&&"object"==typeof i&&"string"in i&&(i=i.string),"option"===this.type&&Array.isArray(i)&&(i=i[null!==(t=this.defaultIndex)&&void 0!==t?t:0]),"argSelector"===this.type&&Array.isArray(i)&&(i=(null===(r=i[null!==(n=this.defaultIndex)&&void 0!==n?n:0])||void 0===r?void 0:r.name)||"");var o=!1;if((null==i||""===i||"number"==typeof i.length&&0===i.length)&&(o=!0),o){var s=!1;if("option"===this.type&&Array.isArray(this.defaultValue)?s=this.defaultValue.includes(""):"argSelector"===this.type&&Array.isArray(this.defaultValue)&&(s=this.defaultValue.some(function(e){return""===e.name})),!1===this.allowEmpty||("option"===this.type||"argSelector"===this.type)&&!s)throw new E(`${this.name} cannot be empty.`);return!0}if("number"==typeof this.maxLength&&null!=i){if("string"==typeof i&&i.length>this.maxLength)throw new E(`${this.name} length cannot exceed ${this.maxLength}.`);if(Array.isArray(i)&&i.length>this.maxLength)throw new E(`${this.name} length cannot exceed ${this.maxLength}.`);if(i instanceof Uint8Array&&i.length>this.maxLength)throw new E(`${this.name} length cannot exceed ${this.maxLength}.`)}if("number"===this.type){if(null==i||isNaN(i))throw new E(`${this.name} must be a number.`);if(this.integer&&!Number.isInteger(i))throw new E(`${this.name} must be an integer.`);if("number"==typeof this.min&&i<this.min)throw new E(`${this.name} must be greater than or equal to ${this.min}.`);if("number"==typeof this.max&&i>this.max)throw new E(`${this.name} must be less than or equal to ${this.max}.`)}if("option"===this.type&&Array.isArray(this.defaultValue)){var a=this.defaultValue.filter(function(e){return"string"==typeof e&&!e.match(/^\[\/?[a-z0-9 -()^]+\]$/i)}),u=null!=i?String(i).toLowerCase():"";if(!a.find(function(e){return e.toLowerCase()===u}))throw new E(`${this.name} must be one of the following: ${a.join(", ")}.`)}if("argSelector"===this.type&&Array.isArray(this.defaultValue)){var f=this.defaultValue.map(function(e){return e.name}).filter(function(e){return"string"==typeof e&&!e.match(/^\[\/?[a-z0-9 -()^]+\]$/i)}),l=null!=i?String(i).toLowerCase():"";if(!f.find(function(e){return e.toLowerCase()===l}))throw new E(`${this.name} must be one of the following: ${f.join(", ")}.`)}return!0}},{key:"config",get:function(){return this._value}},{key:"value",get:function(){return this._value},set:function(e){this._value=t.prepare(e,this.type)}}],[{key:"prepare",value:function(e,t){var r;switch(t){case"binaryString":case"binaryShortString":case"editableOption":case"editableOptionShort":return L.parseEscapedChars(e);case"byteArray":return"string"==typeof e?_(e=e.replace(/\s+/g,"")):e;case"number":if(null===e)return e;if(r=parseFloat(e),isNaN(r)){var n=L.truncate(e.toString(),10);throw new E("Invalid ingredient value. Not a number: "+n)}return r;default:return e}}}])}();var Je=function(){return o(function t(){e(this,t),this._inputType=-1,this._outputType=-1,this._presentType=-1,this._breakpoint=!1,this._disabled=!1,this._flowControl=!1,this._manualBake=!1,this._ingList=[],this.name="",this.module="",this.description="",this.infoURL=null},[{key:"run",value:function(e,t){return e}},{key:"highlight",value:function(e,t){return!1}},{key:"highlightReverse",value:function(e,t){return!1}},{key:"present",value:function(e,t){return e}},{key:"inputType",get:function(){return Ve.enumLookup(this._inputType)},set:function(e){this._inputType=Ve.typeEnum(e)}},{key:"outputType",get:function(){return Ve.enumLookup(this._outputType)},set:function(e){this._outputType=Ve.typeEnum(e),this._presentType<0&&(this._presentType=this._outputType)}},{key:"presentType",get:function(){return Ve.enumLookup(this._presentType)},set:function(e){this._presentType=Ve.typeEnum(e)}},{key:"args",get:function(){return this._ingList.map(function(e){var t={name:e.name,type:e.type,value:e.defaultValue};return e.toggleValues&&(t.toggleValues=e.toggleValues),e.hint&&(t.hint=e.hint),e.rows&&(t.rows=e.rows),e.disabled&&(t.disabled=e.disabled),e.target&&(t.target=e.target),e.defaultIndex&&(t.defaultIndex=e.defaultIndex),e.maxLength&&(t.maxLength=e.maxLength),"number"==typeof e.min&&(t.min=e.min),"number"==typeof e.max&&(t.max=e.max),e.step&&(t.step=e.step),void 0!==e.integer&&(t.integer=e.integer),void 0!==e.allowEmpty&&(t.allowEmpty=e.allowEmpty),t})},set:function(e){var t=this;e.forEach(function(e){var r=new ze(e);t.addIngredient(r)})}},{key:"validateIngredients",value:function(e){var t=e||this.ingValues;return this._ingList.forEach(function(e,r){r<t.length&&e.validate(t[r])}),!0}},{key:"config",get:function(){return{op:this.name,args:this._ingList.map(function(e){return e.config})}}},{key:"addIngredient",value:function(e){this._ingList.push(e)}},{key:"ingValues",get:function(){return this._ingList.map(function(e){return e.value})},set:function(e){var t=this;e.forEach(function(e,r){try{t._ingList[r].value=e}catch(e){throw new E(`Failed to set value of ingredient '${t._ingList[r].name}': ${e}`)}})}},{key:"breakpoint",get:function(){return this._breakpoint},set:function(e){this._breakpoint=!!e}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=!!e}},{key:"flowControl",get:function(){return this._flowControl},set:function(e){this._flowControl=!!e}},{key:"manualBake",get:function(){return this._manualBake},set:function(e){this._manualBake=!!e}}])}();const Ge=Je;function He(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ye=r(2370),We=r.n(Ye);function Ze(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Xe(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 Ke(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Xe(Object(r),!0).forEach(function(t){He(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xe(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}const Qe=function(){function t(r){if(e(this,t),!(r instanceof Array||r instanceof Uint8Array))throw new Error("Protobuf input must be a byteArray or Uint8Array");this.data=r,this.TYPE=7,this.NUMBER=120,this.MSB=128,this.VALUE=127,this.offset=0,this.LENGTH=r.length,this.fieldTypes={}}return o(t,[{key:"_parse",value:function(){for(var e={};this.offset<this.LENGTH;){var t=this._parseField();e=this._addField(t,e)}if(this.offset>this.LENGTH)throw new Error("Exhausted Buffer");return e}},{key:"_addField",value:function(e,t){var r=e.key,n=e.value;return t[r]=Object.prototype.hasOwnProperty.call(t,r)?t[r]instanceof Array?t[r].concat([n]):[t[r],n]:n,t}},{key:"_parseField",value:function(){var e=this._fieldHeader(),t=e.type,r=e.key;switch("object"!=typeof this.fieldTypes[r]&&(this.fieldTypes[r]=t),t){case 0:return{key:r,value:this._varInt()};case 1:return{key:r,value:this._uint64()};case 2:return{key:r,value:this._lenDelim(r)};case 5:return{key:r,value:this._uint32()};default:throw new Error("Unknown type 0x"+t.toString(16))}}},{key:"_fieldHeader",value:function(){return{type:this._fieldType(),key:this._fieldNumber()}}},{key:"_fieldType",value:function(){return this.data[this.offset]&this.TYPE}},{key:"_fieldNumber",value:function(){var e=-3,t=0;do{t+=e<28?-3===e?(this.data[this.offset]&this.NUMBER)>>-e:(this.data[this.offset]&this.VALUE)<<e:(this.data[this.offset]&this.VALUE)*Math.pow(2,e),e+=7}while((this.data[this.offset++]&this.MSB)===this.MSB);return t}},{key:"_varInt",value:function(){var e=0,t=0;do{e+=t<28?(this.data[this.offset]&this.VALUE)<<t:(this.data[this.offset]&this.VALUE)*Math.pow(2,t),t+=7}while((this.data[this.offset++]&this.MSB)===this.MSB);return e}},{key:"_uint64",value:function(){var e=this.data[this.offset++]+256*this.data[this.offset++]+65536*this.data[this.offset++]+16777216*this.data[this.offset++];return 4294967296*(this.data[this.offset++]+256*this.data[this.offset++]+65536*this.data[this.offset++]+16777216*this.data[this.offset++])+e}},{key:"_lenDelim",value:function(e){var r,n=this._varInt(),i=this.data.slice(this.offset,this.offset+n);try{var o=new t(i);r=o._parse(),this.fieldTypes[e]=Ke(Ke({},this.fieldTypes[e]),o.fieldTypes)}catch(e){r=L.byteArrayToChars(i)}return this.offset+=n,r}},{key:"_uint32",value:function(){var e=new DataView(new Uint8Array(this.data.slice(this.offset,this.offset+4)).buffer).getUint32(0,!0);return this.offset+=4,e}}],[{key:"varIntEncode",value:function(e){for(var t=Math.pow(2,31),r=[],n=0;e>=t;)r[n++]=255&e|128,e/=128;for(;-128&e;)r[n++]=255&e|128,e>>>=7;return r[n]=0|e,r}},{key:"varIntDecode",value:function(e){return new t(e)._varInt()}},{key:"encode",value:function(e,t){if(this.updateProtoRoot(t[0]),!this.mainMessageName)throw new Error("Schema Error: Schema not defined");var r=this.parsedProto.root.nested[this.mainMessageName];e=r.fromObject(e);var n=r.verify(e);if(n)throw new Error("Input Error: "+n);var i=r.encode(e).finish();return new Uint8Array(i).buffer}},{key:"decode",value:function(e,t){return this.updateProtoRoot(t[0]),this.showUnknownFields=t[1],this.showTypes=t[2],this.mergeDecodes(e)}},{key:"updateProtoRoot",value:function(e){try{this.parsedProto=We().parse(e),this.parsedProto.package&&(this.parsedProto.root=this.parsedProto.root.nested[this.parsedProto.package]),this.updateMainMessageName()}catch(e){throw new Error("Schema "+e)}}},{key:"updateMainMessageName",value:function(){var e=this,t=[],r=[];this.parsedProto.root.nestedArray.forEach(function(n){n instanceof We().Type&&(t.push(n.name),e.parsedProto.root.nested[n.name].fieldsArray.forEach(function(e){r.push(e.type)}))}),0===t.length?this.mainMessageName=null:this.mainMessageName=t[0]}},{key:"mergeDecodes",value:function(e){var r,n=new t(e),i=n._parse();this.showTypes&&(i=this.showRawTypes(i,n.fieldTypes),this.parsedProto.root=this.appendTypesToFieldNames(this.parsedProto.root));try{var o=(r=this.parsedProto.root.nested[this.mainMessageName]).toObject(r.decode(e),{bytes:String,longs:Number,enums:String,defaults:!0}),s={};return this.showUnknownFields?(s[r.name]=o,s["Unknown Fields"]=this.compareFields(i,r),s):o}catch(e){if(r)throw new Error("Input "+e);return i}}},{key:"appendTypesToFieldNames",value:function(e){var t,r=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Ze(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ze(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){a=!0,o=e},f:function(){try{s||null==r.return||r.return()}finally{if(a)throw o}}}}(e.nestedArray);try{for(r.s();!(t=r.n()).done;){var n=t.value;if(n instanceof We().Type)for(var i=0,o=Object.entries(n.fields);i<o.length;i++){var s=oe(o[i],2),a=s[0],u=s[1];e.nested[n.name].remove(n.fields[a]),e.nested[n.name].add(new(We().Field)(`${a} (${u.type})`,u.id,u.type,u.rule))}}}catch(e){r.e(e)}finally{r.f()}return e}},{key:"showRawTypes",value:function(e,t){for(var r=0,n=Object.entries(e);r<n.length;r++){var i=oe(n[r],2),o=i[0],s=i[1],a=t[o],u=void 0,f=void 0;if(isNaN(a))if(f=2,Array.isArray(s)){for(var l=[],c=0,h=Object.keys(s);c<h.length;c++){var p=h[c];"string"!=typeof s[p]?l.push(this.showRawTypes(s[p],a)):l.push(s[p])}u=l}else u=this.showRawTypes(s,a);else f=a,u=s;e[`field #${o}: ${this.getTypeInfo(f)}`]=u,delete e[o]}return e}},{key:"compareFields",value:function(e,r){var n=this,i={};Object.keys(r.fields).forEach(function(e){return i[r.fields[e].id]=e});var o=function(){var o;if((o=isNaN(s)?s.match(/^field #(\d+)/)[1]:s)in i){var a=i[o],u=e[s],f=r.fields[a];if(Array.isArray(u)&&!f.repeated&&(e[`(${r.name}) ${a} is a repeated field`]=u),f.resolvedType instanceof We().Type){var l=r.fields[a].type,c=n.parsedProto.root.nested[l],h=e[s],p={};Array.isArray(h)?h.forEach(function(e){Object.entries(e).forEach(function(e){p[e[0]]=e[1]})}):p=h,p=t.compareFields(p,c),0!==Object.entries(p).length&&(e[`${a} (${l}) has missing fields`]=p)}delete e[s]}};for(var s in e)o();return e}},{key:"getTypeInfo",value:function(e){switch(e){case 0:return"VarInt (e.g. int32, bool)";case 1:return"64-Bit (e.g. fixed64, double)";case 2:return"L-delim (e.g. string, message)";case 5:return"32-Bit (e.g. fixed32, float)"}}}])}();function et(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(et=function(){return!!e})()}const tt=function(t){function r(){var t,n,i,o;return e(this,r),n=this,i=a(i=r),(t=s(n,et()?Reflect.construct(i,[],a(n).constructor):i.apply(n,o))).name="Protobuf Decode",t.module="Protobuf",t.description="Decodes any Protobuf encoded data to a JSON representation of the data using the field number as the field key.<br><br>If a .proto schema is defined, the encoded data will be decoded with reference to the schema. Only one message instance will be decoded. <br><br><u>Show Unknown Fields</u><br>When a schema is used, this option shows fields that are present in the input data but not defined in the schema.<br><br><u>Show Types</u><br>Show the type of a field next to its name. For undefined fields, the wiretype and example types are shown instead.",t.infoURL="https://wikipedia.org/wiki/Protocol_Buffers",t.inputType="ArrayBuffer",t.outputType="JSON",t.args=[{name:"Schema (.proto text)",type:"text",value:"",rows:8,hint:"Drag and drop is enabled on this ingredient"},{name:"Show Unknown Fields",type:"boolean",value:!1},{name:"Show Types",type:"boolean",value:!1}],t}return f(r,t),o(r,[{key:"run",value:function(e,t){e=new Uint8Array(e);try{return Qe.decode(e,t)}catch(e){throw new E(e)}}}])}(Ge);function rt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(rt=function(){return!!e})()}const nt=function(t){function r(){var t,n,i,o;return e(this,r),n=this,i=a(i=r),(t=s(n,rt()?Reflect.construct(i,[],a(n).constructor):i.apply(n,o))).name="Protobuf Encode",t.module="Protobuf",t.description="Encodes a valid JSON object into a protobuf byte array using the input .proto schema.",t.infoURL="https://developers.google.com/protocol-buffers/docs/encoding",t.inputType="JSON",t.outputType="ArrayBuffer",t.args=[{name:"Schema (.proto text)",type:"text",value:"",rows:8,hint:"Drag and drop is enabled on this ingredient"}],t}return f(r,t),o(r,[{key:"run",value:function(e,t){try{return Qe.encode(e,t)}catch(e){throw new E(e)}}}])}(Ge);("undefined"==typeof self?{}:self.OpModules||{}).Protobuf={"Protobuf Decode":tt,"Protobuf Encode":nt}})()})(); |