@hashgraphonline/standards-sdk 0.0.30 → 0.0.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/hcs-10/base-client.d.ts +15 -1
- package/dist/es/standards-sdk.es.js +317 -189
- package/dist/es/standards-sdk.es.js.map +1 -1
- package/dist/umd/hcs-10/base-client.d.ts +15 -1
- package/dist/umd/standards-sdk.umd.js +2 -2
- package/dist/umd/standards-sdk.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -99,7 +99,7 @@ read:function(e,t,r,o,n){var i,a,s=8*n-o-1,c=(1<<s)-1,u=c>>1,l=-7,d=r?n-1:0,p=r?
|
|
|
99
99
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
100
100
|
* @license MIT
|
|
101
101
|
*/
|
|
102
|
-
!function(e){const t=base64Js,r=ieee754,o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=u,e.SlowBuffer=function(e){+e!=e&&(e=0);return u.alloc(+e)},e.INSPECT_MAX_BYTES=50;const n=2147483647;e.kMaxLength=n;const{Uint8Array:i,ArrayBuffer:a,SharedArrayBuffer:s}=globalThis;function c(e){if(e>n)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new i(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 p(e)}return l(e,t,r)}function l(e,t,r){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const r=0|y(e,t);let o=c(r);const n=o.write(e,t);n!==r&&(o=o.slice(0,n));return o}(e,t);if(a.isView(e))return function(e){if(Q(e,i)){const t=new i(e);return f(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(Q(e,a)||e&&Q(e.buffer,a))return f(e,t,r);if(void 0!==s&&(Q(e,s)||e&&Q(e.buffer,s)))return f(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const o=e.valueOf&&e.valueOf();if(null!=o&&o!==e)return u.from(o,t,r);const n=function(e){if(u.isBuffer(e)){const t=0|m(e.length),r=c(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return"number"!=typeof e.length||Y(e.length)?c(0):h(e);if("Buffer"===e.type&&Array.isArray(e.data))return h(e.data)}(e);if(n)return n;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 d(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 p(e){return d(e),c(e<0?0:0|m(e))}function h(e){const t=e.length<0?0:0|m(e.length),r=c(t);for(let o=0;o<t;o+=1)r[o]=255&e[o];return r}function f(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 o;return o=void 0===t&&void 0===r?new i(e):void 0===r?new i(e,t):new i(e,t,r),Object.setPrototypeOf(o,u.prototype),o}function m(e){if(e>=n)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n.toString(16)+" bytes");return 0|e}function y(e,t){if(u.isBuffer(e))return e.length;if(a.isView(e)||Q(e,a))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,o=arguments.length>2&&!0===arguments[2];if(!o&&0===r)return 0;let n=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return W(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return z(e).length;default:if(n)return o?-1:W(e).length;t=(""+t).toLowerCase(),n=!0}}function g(e,t,r){let o=!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 x(this,t,r);case"utf8":case"utf-8":return O(this,t,r);case"ascii":return S(this,t,r);case"latin1":case"binary":return R(this,t,r);case"base64":return A(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,r);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}function b(e,t,r){const o=e[t];e[t]=e[r],e[r]=o}function v(e,t,r,o,n){if(0===e.length)return-1;if("string"==typeof r?(o=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),Y(r=+r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0){if(!n)return-1;r=0}if("string"==typeof t&&(t=u.from(t,o)),u.isBuffer(t))return 0===t.length?-1:w(e,t,r,o,n);if("number"==typeof t)return t&=255,"function"==typeof i.prototype.indexOf?n?i.prototype.indexOf.call(e,t,r):i.prototype.lastIndexOf.call(e,t,r):w(e,[t],r,o,n);throw new TypeError("val must be string, number or Buffer")}function w(e,t,r,o,n){let i,a=1,s=e.length,c=t.length;if(void 0!==o&&("ucs2"===(o=String(o).toLowerCase())||"ucs-2"===o||"utf16le"===o||"utf-16le"===o)){if(e.length<2||t.length<2)return-1;a=2,s/=2,c/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(n){let o=-1;for(i=r;i<s;i++)if(u(e,i)===u(t,-1===o?0:i-o)){if(-1===o&&(o=i),i-o+1===c)return o*a}else-1!==o&&(i-=i-o),o=-1}else for(r+c>s&&(r=s-c),i=r;i>=0;i--){let r=!0;for(let o=0;o<c;o++)if(u(e,i+o)!==u(t,o)){r=!1;break}if(r)return i}return-1}function $(e,t,r,o){r=Number(r)||0;const n=e.length-r;o?(o=Number(o))>n&&(o=n):o=n;const i=t.length;let a;for(o>i/2&&(o=i/2),a=0;a<o;++a){const o=parseInt(t.substr(2*a,2),16);if(Y(o))return a;e[r+a]=o}return a}function k(e,t,r,o){return Z(W(t,e.length-r),e,r,o)}function _(e,t,r,o){return Z(function(e){const t=[];for(let r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,o)}function T(e,t,r,o){return Z(z(t),e,r,o)}function I(e,t,r,o){return Z(function(e,t){let r,o,n;const i=[];for(let a=0;a<e.length&&!((t-=2)<0);++a)r=e.charCodeAt(a),o=r>>8,n=r%256,i.push(n),i.push(o);return i}(t,e.length-r),e,r,o)}function A(e,r,o){return 0===r&&o===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(r,o))}function O(e,t,r){r=Math.min(e.length,r);const o=[];let n=t;for(;n<r;){const t=e[n];let i=null,a=t>239?4:t>223?3:t>191?2:1;if(n+a<=r){let r,o,s,c;switch(a){case 1:t<128&&(i=t);break;case 2:r=e[n+1],128==(192&r)&&(c=(31&t)<<6|63&r,c>127&&(i=c));break;case 3:r=e[n+1],o=e[n+2],128==(192&r)&&128==(192&o)&&(c=(15&t)<<12|(63&r)<<6|63&o,c>2047&&(c<55296||c>57343)&&(i=c));break;case 4:r=e[n+1],o=e[n+2],s=e[n+3],128==(192&r)&&128==(192&o)&&128==(192&s)&&(c=(15&t)<<18|(63&r)<<12|(63&o)<<6|63&s,c>65535&&c<1114112&&(i=c))}}null===i?(i=65533,a=1):i>65535&&(i-=65536,o.push(i>>>10&1023|55296),i=56320|1023&i),o.push(i),n+=a}return function(e){const t=e.length;if(t<=E)return String.fromCharCode.apply(String,e);let r="",o=0;for(;o<t;)r+=String.fromCharCode.apply(String,e.slice(o,o+=E));return r}(o)}u.TYPED_ARRAY_SUPPORT=function(){try{const e=new i(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,i.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 l(e,t,r)},Object.setPrototypeOf(u.prototype,i.prototype),Object.setPrototypeOf(u,i),u.alloc=function(e,t,r){return function(e,t,r){return d(e),e<=0?c(e):void 0!==t?"string"==typeof r?c(e).fill(t,r):c(e).fill(t):c(e)}(e,t,r)},u.allocUnsafe=function(e){return p(e)},u.allocUnsafeSlow=function(e){return p(e)},u.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==u.prototype},u.compare=function(e,t){if(Q(e,i)&&(e=u.from(e,e.offset,e.byteLength)),Q(t,i)&&(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,o=t.length;for(let n=0,i=Math.min(r,o);n<i;++n)if(e[n]!==t[n]){r=e[n],o=t[n];break}return r<o?-1:o<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 o=u.allocUnsafe(t);let n=0;for(r=0;r<e.length;++r){let t=e[r];if(Q(t,i))n+t.length>o.length?(u.isBuffer(t)||(t=u.from(t)),t.copy(o,n)):i.prototype.set.call(o,t,n);else{if(!u.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(o,n)}n+=t.length}return o},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)b(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)b(this,t,t+3),b(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)b(this,t,t+7),b(this,t+1,t+6),b(this,t+2,t+5),b(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):g.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 t="";const r=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"},o&&(u.prototype[o]=u.prototype.inspect),u.prototype.compare=function(e,t,r,o,n){if(Q(e,i)&&(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===o&&(o=0),void 0===n&&(n=this.length),t<0||r>e.length||o<0||n>this.length)throw new RangeError("out of range index");if(o>=n&&t>=r)return 0;if(o>=n)return-1;if(t>=r)return 1;if(this===e)return 0;let a=(n>>>=0)-(o>>>=0),s=(r>>>=0)-(t>>>=0);const c=Math.min(a,s),l=this.slice(o,n),d=e.slice(t,r);for(let i=0;i<c;++i)if(l[i]!==d[i]){a=l[i],s=d[i];break}return a<s?-1:s<a?1:0},u.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},u.prototype.indexOf=function(e,t,r){return v(this,e,t,r,!0)},u.prototype.lastIndexOf=function(e,t,r){return v(this,e,t,r,!1)},u.prototype.write=function(e,t,r,o){if(void 0===t)o="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)o=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===o&&(o="utf8")):(o=r,r=void 0)}const n=this.length-t;if((void 0===r||r>n)&&(r=n),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");let i=!1;for(;;)switch(o){case"hex":return $(this,e,t,r);case"utf8":case"utf-8":return k(this,e,t,r);case"ascii":case"latin1":case"binary":return _(this,e,t,r);case"base64":return T(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,e,t,r);default:if(i)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),i=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const E=4096;function S(e,t,r){let o="";r=Math.min(e.length,r);for(let n=t;n<r;++n)o+=String.fromCharCode(127&e[n]);return o}function R(e,t,r){let o="";r=Math.min(e.length,r);for(let n=t;n<r;++n)o+=String.fromCharCode(e[n]);return o}function x(e,t,r){const o=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>o)&&(r=o);let n="";for(let i=t;i<r;++i)n+=X[e[i]];return n}function C(e,t,r){const o=e.slice(t,r);let n="";for(let i=0;i<o.length-1;i+=2)n+=String.fromCharCode(o[i]+256*o[i+1]);return n}function P(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,o,n,i){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>n||t<i)throw new RangeError('"value" argument is out of bounds');if(r+o>e.length)throw new RangeError("Index out of range")}function B(e,t,r,o,n){q(t,o,n,e,r,7);let i=Number(t&BigInt(4294967295));e[r++]=i,i>>=8,e[r++]=i,i>>=8,e[r++]=i,i>>=8,e[r++]=i;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,r}function D(e,t,r,o,n){q(t,o,n,e,r,7);let i=Number(t&BigInt(4294967295));e[r+7]=i,i>>=8,e[r+6]=i,i>>=8,e[r+5]=i,i>>=8,e[r+4]=i;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=a,a>>=8,e[r+2]=a,a>>=8,e[r+1]=a,a>>=8,e[r]=a,r+8}function M(e,t,r,o,n,i){if(r+o>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function L(e,t,o,n,i){return t=+t,o>>>=0,i||M(e,0,o,4),r.write(e,t,o,n,23,4),o+4}function j(e,t,o,n,i){return t=+t,o>>>=0,i||M(e,0,o,8),r.write(e,t,o,n,52,8),o+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 o=this.subarray(e,t);return Object.setPrototypeOf(o,u.prototype),o},u.prototype.readUintLE=u.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||P(e,t,this.length);let o=this[e],n=1,i=0;for(;++i<t&&(n*=256);)o+=this[e+i]*n;return o},u.prototype.readUintBE=u.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||P(e,t,this.length);let o=this[e+--t],n=1;for(;t>0&&(n*=256);)o+=this[e+--t]*n;return o},u.prototype.readUint8=u.prototype.readUInt8=function(e,t){return e>>>=0,t||P(e,1,this.length),this[e]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(e,t){return e>>>=0,t||P(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(e,t){return e>>>=0,t||P(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(e,t){return e>>>=0,t||P(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||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readBigUInt64LE=J((function(e){G(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||H(e,this.length-8);const o=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,n=this[++e]+256*this[++e]+65536*this[++e]+r*2**24;return BigInt(o)+(BigInt(n)<<BigInt(32))})),u.prototype.readBigUInt64BE=J((function(e){G(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||H(e,this.length-8);const o=t*2**24+65536*this[++e]+256*this[++e]+this[++e],n=this[++e]*2**24+65536*this[++e]+256*this[++e]+r;return(BigInt(o)<<BigInt(32))+BigInt(n)})),u.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||P(e,t,this.length);let o=this[e],n=1,i=0;for(;++i<t&&(n*=256);)o+=this[e+i]*n;return n*=128,o>=n&&(o-=Math.pow(2,8*t)),o},u.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||P(e,t,this.length);let o=t,n=1,i=this[e+--o];for(;o>0&&(n*=256);)i+=this[e+--o]*n;return n*=128,i>=n&&(i-=Math.pow(2,8*t)),i},u.prototype.readInt8=function(e,t){return e>>>=0,t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){e>>>=0,t||P(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||P(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||P(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||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readBigInt64LE=J((function(e){G(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||H(e,this.length-8);const o=this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24);return(BigInt(o)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),u.prototype.readBigInt64BE=J((function(e){G(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||H(e,this.length-8);const o=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(o)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+r)})),u.prototype.readFloatLE=function(e,t){return e>>>=0,t||P(e,4,this.length),r.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return e>>>=0,t||P(e,4,this.length),r.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return e>>>=0,t||P(e,8,this.length),r.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return e>>>=0,t||P(e,8,this.length),r.read(this,e,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(e,t,r,o){if(e=+e,t>>>=0,r>>>=0,!o){N(this,e,t,r,Math.pow(2,8*r)-1,0)}let n=1,i=0;for(this[t]=255&e;++i<r&&(n*=256);)this[t+i]=e/n&255;return t+r},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(e,t,r,o){if(e=+e,t>>>=0,r>>>=0,!o){N(this,e,t,r,Math.pow(2,8*r)-1,0)}let n=r-1,i=1;for(this[t+n]=255&e;--n>=0&&(i*=256);)this[t+n]=e/i&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=J((function(e,t=0){return B(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),u.prototype.writeBigUInt64BE=J((function(e,t=0){return D(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),u.prototype.writeIntLE=function(e,t,r,o){if(e=+e,t>>>=0,!o){const o=Math.pow(2,8*r-1);N(this,e,t,r,o-1,-o)}let n=0,i=1,a=0;for(this[t]=255&e;++n<r&&(i*=256);)e<0&&0===a&&0!==this[t+n-1]&&(a=1),this[t+n]=(e/i|0)-a&255;return t+r},u.prototype.writeIntBE=function(e,t,r,o){if(e=+e,t>>>=0,!o){const o=Math.pow(2,8*r-1);N(this,e,t,r,o-1,-o)}let n=r-1,i=1,a=0;for(this[t+n]=255&e;--n>=0&&(i*=256);)e<0&&0===a&&0!==this[t+n+1]&&(a=1),this[t+n]=(e/i|0)-a&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=J((function(e,t=0){return B(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),u.prototype.writeBigInt64BE=J((function(e,t=0){return D(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),u.prototype.writeFloatLE=function(e,t,r){return L(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return L(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return j(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return j(this,e,t,!1,r)},u.prototype.copy=function(e,t,r,o){if(!u.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),o||0===o||(o=this.length),t>=e.length&&(t=e.length),t||(t=0),o>0&&o<r&&(o=r),o===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(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-t<o-r&&(o=e.length-t+r);const n=o-r;return this===e&&"function"==typeof i.prototype.copyWithin?this.copyWithin(t,r,o):i.prototype.set.call(e,this.subarray(r,o),t),n},u.prototype.fill=function(e,t,r,o){if("string"==typeof e){if("string"==typeof t?(o=t,t=0,r=this.length):"string"==typeof r&&(o=r,r=this.length),void 0!==o&&"string"!=typeof o)throw new TypeError("encoding must be a string");if("string"==typeof o&&!u.isEncoding(o))throw new TypeError("Unknown encoding: "+o);if(1===e.length){const t=e.charCodeAt(0);("utf8"===o&&t<128||"latin1"===o)&&(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 n;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(n=t;n<r;++n)this[n]=e;else{const i=u.isBuffer(e)?e:u.from(e,o),a=i.length;if(0===a)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(n=0;n<r-t;++n)this[n+t]=i[n%a]}return this};const F={};function U(e,t,r){F[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 K(e){let t="",r=e.length;const o="-"===e[0]?1:0;for(;r>=o+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function q(e,t,r,o,n,i){if(e>r||e<t){const r="bigint"==typeof t?"n":"";let o;throw o=0===t||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(i+1)}${r}`:`>= -(2${r} ** ${8*(i+1)-1}${r}) and < 2 ** ${8*(i+1)-1}${r}`,new F.ERR_OUT_OF_RANGE("value",o,e)}!function(e,t,r){G(t,"offset"),void 0!==e[t]&&void 0!==e[t+r]||H(t,e.length-(r+1))}(o,n,i)}function G(e,t){if("number"!=typeof e)throw new F.ERR_INVALID_ARG_TYPE(t,"number",e)}function H(e,t,r){if(Math.floor(e)!==e)throw G(e,r),new F.ERR_OUT_OF_RANGE("offset","an integer",e);if(t<0)throw new F.ERR_BUFFER_OUT_OF_BOUNDS;throw new F.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${t}`,e)}U("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),U("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),U("ERR_OUT_OF_RANGE",(function(e,t,r){let o=`The value of "${e}" is out of range.`,n=r;return Number.isInteger(r)&&Math.abs(r)>2**32?n=K(String(r)):"bigint"==typeof r&&(n=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(n=K(n)),n+="n"),o+=` It must be ${t}. Received ${n}`,o}),RangeError);const V=/[^+/0-9A-Za-z-_]/g;function W(e,t){let r;t=t||1/0;const o=e.length;let n=null;const i=[];for(let a=0;a<o;++a){if(r=e.charCodeAt(a),r>55295&&r<57344){if(!n){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===o){(t-=3)>-1&&i.push(239,191,189);continue}n=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&(t-=3)>-1&&i.push(239,191,189);if(n=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function z(e){return t.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(V,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Z(e,t,r,o){let n;for(n=0;n<o&&!(n+r>=t.length||n>=e.length);++n)t[n+r]=e[n];return n}function Q(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Y(e){return e!=e}const X=function(){const e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){const o=16*r;for(let n=0;n<16;++n)t[o+n]=e[r]+e[n]}return t}();function J(e){return"undefined"==typeof BigInt?ee:e}function ee(){throw new Error("BigInt not supported")}}(buffer);const Buffer2=buffer.Buffer,global$1=globalThis||self;function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var browser={exports:{}},process=browser.exports={},cachedSetTimeout,cachedClearTimeout;function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}function runTimeout(e){if(cachedSetTimeout===setTimeout)return setTimeout(e,0);if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout)return cachedSetTimeout=setTimeout,setTimeout(e,0);try{return cachedSetTimeout(e,0)}catch(t){try{return cachedSetTimeout.call(null,e,0)}catch(r){return cachedSetTimeout.call(this,e,0)}}}function runClearTimeout(e){if(cachedClearTimeout===clearTimeout)return clearTimeout(e);if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout)return cachedClearTimeout=clearTimeout,clearTimeout(e);try{return cachedClearTimeout(e)}catch(t){try{return cachedClearTimeout.call(null,e)}catch(r){return cachedClearTimeout.call(this,e)}}}!function(){try{cachedSetTimeout="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(e){cachedSetTimeout=defaultSetTimout}try{cachedClearTimeout="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(e){cachedClearTimeout=defaultClearTimeout}}();var queue=[],draining=!1,currentQueue,queueIndex=-1;function cleanUpNextTick(){draining&¤tQueue&&(draining=!1,currentQueue.length?queue=currentQueue.concat(queue):queueIndex=-1,queue.length&&drainQueue())}function drainQueue(){if(!draining){var e=runTimeout(cleanUpNextTick);draining=!0;for(var t=queue.length;t;){for(currentQueue=queue,queue=[];++queueIndex<t;)currentQueue&¤tQueue[queueIndex].run();queueIndex=-1,t=queue.length}currentQueue=null,draining=!1,runClearTimeout(e)}}function Item(e,t){this.fun=e,this.array=t}function noop$1(){}process.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];queue.push(new Item(e,t)),1!==queue.length||draining||runTimeout(drainQueue)},Item.prototype.run=function(){this.fun.apply(null,this.array)},process.title="browser",process.browser=!0,process.env={},process.argv=[],process.version="",process.versions={},process.on=noop$1,process.addListener=noop$1,process.once=noop$1,process.off=noop$1,process.removeListener=noop$1,process.removeAllListeners=noop$1,process.emit=noop$1,process.prependListener=noop$1,process.prependOnceListener=noop$1,process.listeners=function(e){return[]},process.binding=function(e){throw new Error("process.binding is not supported")},process.cwd=function(){return"/"},process.chdir=function(e){throw new Error("process.chdir is not supported")},process.umask=function(){return 0};var browserExports=browser.exports;const process$1=getDefaultExportFromCjs(browserExports);function bind$1(e,t){return function(){return e.apply(t,arguments)}}const{toString:toString$1}=Object.prototype,{getPrototypeOf:getPrototypeOf$1}=Object,kindOf$1=(e=>t=>{const r=toString$1.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest$1=e=>(e=e.toLowerCase(),t=>kindOf$1(t)===e),typeOfTest$1=e=>t=>typeof t===e,{isArray:isArray$1}=Array,isUndefined$1=typeOfTest$1("undefined");function isBuffer$1(e){return null!==e&&!isUndefined$1(e)&&null!==e.constructor&&!isUndefined$1(e.constructor)&&isFunction$1(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const isArrayBuffer$1=kindOfTest$1("ArrayBuffer");function isArrayBufferView$1(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&isArrayBuffer$1(e.buffer),t}const isString$1=typeOfTest$1("string"),isFunction$1=typeOfTest$1("function"),isNumber$1=typeOfTest$1("number"),isObject$1=e=>null!==e&&"object"==typeof e,isBoolean$1=e=>!0===e||!1===e,isPlainObject$1=e=>{if("object"!==kindOf$1(e))return!1;const t=getPrototypeOf$1(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},isDate$1=kindOfTest$1("Date"),isFile$1=kindOfTest$1("File"),isBlob$1=kindOfTest$1("Blob"),isFileList$1=kindOfTest$1("FileList"),isStream$1=e=>isObject$1(e)&&isFunction$1(e.pipe),isFormData$1=e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||isFunction$1(e.append)&&("formdata"===(t=kindOf$1(e))||"object"===t&&isFunction$1(e.toString)&&"[object FormData]"===e.toString()))},isURLSearchParams$1=kindOfTest$1("URLSearchParams"),[isReadableStream$1,isRequest$1,isResponse$1,isHeaders$1]=["ReadableStream","Request","Response","Headers"].map(kindOfTest$1),trim$1=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach$1(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let o,n;if("object"!=typeof e&&(e=[e]),isArray$1(e))for(o=0,n=e.length;o<n;o++)t.call(null,e[o],o,e);else{const n=r?Object.getOwnPropertyNames(e):Object.keys(e),i=n.length;let a;for(o=0;o<i;o++)a=n[o],t.call(null,e[a],a,e)}}function findKey$1(e,t){t=t.toLowerCase();const r=Object.keys(e);let o,n=r.length;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const _global$1="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global$1,isContextDefined$1=e=>!isUndefined$1(e)&&e!==_global$1;function merge$1(){const{caseless:e}=isContextDefined$1(this)&&this||{},t={},r=(r,o)=>{const n=e&&findKey$1(t,o)||o;isPlainObject$1(t[n])&&isPlainObject$1(r)?t[n]=merge$1(t[n],r):isPlainObject$1(r)?t[n]=merge$1({},r):isArray$1(r)?t[n]=r.slice():t[n]=r};for(let o=0,n=arguments.length;o<n;o++)arguments[o]&&forEach$1(arguments[o],r);return t}const extend$1=(e,t,r,{allOwnKeys:o}={})=>(forEach$1(t,((t,o)=>{r&&isFunction$1(t)?e[o]=bind$1(t,r):e[o]=t}),{allOwnKeys:o}),e),stripBOM$1=e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits$1=(e,t,r,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject$1=(e,t,r,o)=>{let n,i,a;const s={};if(t=t||{},null==e)return t;do{for(n=Object.getOwnPropertyNames(e),i=n.length;i-- >0;)a=n[i],o&&!o(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==r&&getPrototypeOf$1(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},endsWith$1=(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const o=e.indexOf(t,r);return-1!==o&&o===r},toArray$1=e=>{if(!e)return null;if(isArray$1(e))return e;let t=e.length;if(!isNumber$1(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},isTypedArray$1=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&getPrototypeOf$1(Uint8Array)),forEachEntry$1=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const r=o.value;t.call(e,r[0],r[1])}},matchAll$1=(e,t)=>{let r;const o=[];for(;null!==(r=e.exec(t));)o.push(r);return o},isHTMLForm$1=kindOfTest$1("HTMLFormElement"),toCamelCase$1=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r})),hasOwnProperty$1=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),isRegExp$1=kindOfTest$1("RegExp"),reduceDescriptors$1=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),o={};forEach$1(r,((r,n)=>{let i;!1!==(i=t(r,n,e))&&(o[n]=i||r)})),Object.defineProperties(e,o)},freezeMethods$1=e=>{reduceDescriptors$1(e,((t,r)=>{if(isFunction$1(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const o=e[r];isFunction$1(o)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet$1=(e,t)=>{const r={},o=e=>{e.forEach((e=>{r[e]=!0}))};return isArray$1(e)?o(e):o(String(e).split(t)),r},noop$2=()=>{},toFiniteNumber$1=(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,ALPHA="abcdefghijklmnopqrstuvwxyz",DIGIT="0123456789",ALPHABET={DIGIT:DIGIT,ALPHA:ALPHA,ALPHA_DIGIT:ALPHA+ALPHA.toUpperCase()+DIGIT},generateString=(e=16,t=ALPHABET.ALPHA_DIGIT)=>{let r="";const{length:o}=t;for(;e--;)r+=t[Math.random()*o|0];return r};function isSpecCompliantForm$1(e){return!!(e&&isFunction$1(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])}const toJSONObject$1=e=>{const t=new Array(10),r=(e,o)=>{if(isObject$1(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[o]=e;const n=isArray$1(e)?[]:{};return forEach$1(e,((e,t)=>{const i=r(e,o+1);!isUndefined$1(i)&&(n[t]=i)})),t[o]=void 0,n}}return e};return r(e,0)},isAsyncFn$1=kindOfTest$1("AsyncFunction"),isThenable$1=e=>e&&(isObject$1(e)||isFunction$1(e))&&isFunction$1(e.then)&&isFunction$1(e.catch),_setImmediate$1=(setImmediateSupported="function"==typeof setImmediate,postMessageSupported=isFunction$1(_global$1.postMessage),setImmediateSupported?setImmediate:postMessageSupported?(token=`axios@${Math.random()}`,callbacks=[],_global$1.addEventListener("message",(({source:e,data:t})=>{e===_global$1&&t===token&&callbacks.length&&callbacks.shift()()}),!1),e=>{callbacks.push(e),_global$1.postMessage(token,"*")}):e=>setTimeout(e));var setImmediateSupported,postMessageSupported,token,callbacks;const asap$1="undefined"!=typeof queueMicrotask?queueMicrotask.bind(_global$1):void 0!==process$1&&process$1.nextTick||_setImmediate$1,utils$1$1={isArray:isArray$1,isArrayBuffer:isArrayBuffer$1,isBuffer:isBuffer$1,isFormData:isFormData$1,isArrayBufferView:isArrayBufferView$1,isString:isString$1,isNumber:isNumber$1,isBoolean:isBoolean$1,isObject:isObject$1,isPlainObject:isPlainObject$1,isReadableStream:isReadableStream$1,isRequest:isRequest$1,isResponse:isResponse$1,isHeaders:isHeaders$1,isUndefined:isUndefined$1,isDate:isDate$1,isFile:isFile$1,isBlob:isBlob$1,isRegExp:isRegExp$1,isFunction:isFunction$1,isStream:isStream$1,isURLSearchParams:isURLSearchParams$1,isTypedArray:isTypedArray$1,isFileList:isFileList$1,forEach:forEach$1,merge:merge$1,extend:extend$1,trim:trim$1,stripBOM:stripBOM$1,inherits:inherits$1,toFlatObject:toFlatObject$1,kindOf:kindOf$1,kindOfTest:kindOfTest$1,endsWith:endsWith$1,toArray:toArray$1,forEachEntry:forEachEntry$1,matchAll:matchAll$1,isHTMLForm:isHTMLForm$1,hasOwnProperty:hasOwnProperty$1,hasOwnProp:hasOwnProperty$1,reduceDescriptors:reduceDescriptors$1,freezeMethods:freezeMethods$1,toObjectSet:toObjectSet$1,toCamelCase:toCamelCase$1,noop:noop$2,toFiniteNumber:toFiniteNumber$1,findKey:findKey$1,global:_global$1,isContextDefined:isContextDefined$1,ALPHABET:ALPHABET,generateString:generateString,isSpecCompliantForm:isSpecCompliantForm$1,toJSONObject:toJSONObject$1,isAsyncFn:isAsyncFn$1,isThenable:isThenable$1,setImmediate:_setImmediate$1,asap:asap$1};function AxiosError$2(e,t,r,o,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),o&&(this.request=o),n&&(this.response=n,this.status=n.status?n.status:null)}utils$1$1.inherits(AxiosError$2,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:utils$1$1.toJSONObject(this.config),code:this.code,status:this.status}}});const prototype$1$1=AxiosError$2.prototype,descriptors$1={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{descriptors$1[e]={value:e}})),Object.defineProperties(AxiosError$2,descriptors$1),Object.defineProperty(prototype$1$1,"isAxiosError",{value:!0}),AxiosError$2.from=(e,t,r,o,n,i)=>{const a=Object.create(prototype$1$1);return utils$1$1.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),AxiosError$2.call(a,e.message,t,r,o,n),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const httpAdapter$1=null;function isVisitable$1(e){return utils$1$1.isPlainObject(e)||utils$1$1.isArray(e)}function removeBrackets$1(e){return utils$1$1.endsWith(e,"[]")?e.slice(0,-2):e}function renderKey$1(e,t,r){return e?e.concat(t).map((function(e,t){return e=removeBrackets$1(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}function isFlatArray$1(e){return utils$1$1.isArray(e)&&!e.some(isVisitable$1)}const predicates$1=utils$1$1.toFlatObject(utils$1$1,{},null,(function(e){return/^is[A-Z]/.test(e)}));function toFormData$2(e,t,r){if(!utils$1$1.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const o=(r=utils$1$1.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!utils$1$1.isUndefined(t[e])}))).metaTokens,n=r.visitor||u,i=r.dots,a=r.indexes,s=(r.Blob||"undefined"!=typeof Blob&&Blob)&&utils$1$1.isSpecCompliantForm(t);if(!utils$1$1.isFunction(n))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(utils$1$1.isDate(e))return e.toISOString();if(!s&&utils$1$1.isBlob(e))throw new AxiosError$2("Blob is not supported. Use a Buffer instead.");return utils$1$1.isArrayBuffer(e)||utils$1$1.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer2.from(e):e}function u(e,r,n){let s=e;if(e&&!n&&"object"==typeof e)if(utils$1$1.endsWith(r,"{}"))r=o?r:r.slice(0,-2),e=JSON.stringify(e);else if(utils$1$1.isArray(e)&&isFlatArray$1(e)||(utils$1$1.isFileList(e)||utils$1$1.endsWith(r,"[]"))&&(s=utils$1$1.toArray(e)))return r=removeBrackets$1(r),s.forEach((function(e,o){!utils$1$1.isUndefined(e)&&null!==e&&t.append(!0===a?renderKey$1([r],o,i):null===a?r:r+"[]",c(e))})),!1;return!!isVisitable$1(e)||(t.append(renderKey$1(n,r,i),c(e)),!1)}const l=[],d=Object.assign(predicates$1,{defaultVisitor:u,convertValue:c,isVisitable:isVisitable$1});if(!utils$1$1.isObject(e))throw new TypeError("data must be an object");return function e(r,o){if(!utils$1$1.isUndefined(r)){if(-1!==l.indexOf(r))throw Error("Circular reference detected in "+o.join("."));l.push(r),utils$1$1.forEach(r,(function(r,i){!0===(!(utils$1$1.isUndefined(r)||null===r)&&n.call(t,r,utils$1$1.isString(i)?i.trim():i,o,d))&&e(r,o?o.concat(i):[i])})),l.pop()}}(e),t}function encode$1$1(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function AxiosURLSearchParams$1(e,t){this._pairs=[],e&&toFormData$2(e,this,t)}const prototype$2=AxiosURLSearchParams$1.prototype;function encode$2(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL$1(e,t,r){if(!t)return e;const o=r&&r.encode||encode$2;utils$1$1.isFunction(r)&&(r={serialize:r});const n=r&&r.serialize;let i;if(i=n?n(t,r):utils$1$1.isURLSearchParams(t)?t.toString():new AxiosURLSearchParams$1(t,r).toString(o),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}prototype$2.append=function(e,t){this._pairs.push([e,t])},prototype$2.toString=function(e){const t=e?function(t){return e.call(this,t,encode$1$1)}:encode$1$1;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};let InterceptorManager$1=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){utils$1$1.forEach(this.handlers,(function(t){null!==t&&e(t)}))}};const transitionalDefaults$1={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},URLSearchParams$1$1="undefined"!=typeof URLSearchParams?URLSearchParams:AxiosURLSearchParams$1,FormData$1$1="undefined"!=typeof FormData?FormData:null,Blob$1$1="undefined"!=typeof Blob?Blob:null,platform$1$1={isBrowser:!0,classes:{URLSearchParams:URLSearchParams$1$1,FormData:FormData$1$1,Blob:Blob$1$1},protocols:["http","https","file","blob","url","data"]},hasBrowserEnv$1="undefined"!=typeof window&&"undefined"!=typeof document,_navigator$1="object"==typeof navigator&&navigator||void 0,hasStandardBrowserEnv$1=hasBrowserEnv$1&&(!_navigator$1||["ReactNative","NativeScript","NS"].indexOf(_navigator$1.product)<0),hasStandardBrowserWebWorkerEnv$1="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,origin$1=hasBrowserEnv$1&&window.location.href||"http://localhost",utils$2=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:hasBrowserEnv$1,hasStandardBrowserEnv:hasStandardBrowserEnv$1,hasStandardBrowserWebWorkerEnv:hasStandardBrowserWebWorkerEnv$1,navigator:_navigator$1,origin:origin$1},Symbol.toStringTag,{value:"Module"})),platform$2={...utils$2,...platform$1$1};function toURLEncodedForm$1(e,t){return toFormData$2(e,new platform$2.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,o){return platform$2.isNode&&utils$1$1.isBuffer(e)?(this.append(t,e.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function parsePropPath$1(e){return utils$1$1.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}function arrayToObject$1(e){const t={},r=Object.keys(e);let o;const n=r.length;let i;for(o=0;o<n;o++)i=r[o],t[i]=e[i];return t}function formDataToJSON$1(e){function t(e,r,o,n){let i=e[n++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=n>=e.length;if(i=!i&&utils$1$1.isArray(o)?o.length:i,s)return utils$1$1.hasOwnProp(o,i)?o[i]=[o[i],r]:o[i]=r,!a;o[i]&&utils$1$1.isObject(o[i])||(o[i]=[]);return t(e,r,o[i],n)&&utils$1$1.isArray(o[i])&&(o[i]=arrayToObject$1(o[i])),!a}if(utils$1$1.isFormData(e)&&utils$1$1.isFunction(e.entries)){const r={};return utils$1$1.forEachEntry(e,((e,o)=>{t(parsePropPath$1(e),o,r,0)})),r}return null}function stringifySafely$1(e,t,r){if(utils$1$1.isString(e))try{return(t||JSON.parse)(e),utils$1$1.trim(e)}catch(o){if("SyntaxError"!==o.name)throw o}return(0,JSON.stringify)(e)}const defaults$1={transitional:transitionalDefaults$1,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",o=r.indexOf("application/json")>-1,n=utils$1$1.isObject(e);n&&utils$1$1.isHTMLForm(e)&&(e=new FormData(e));if(utils$1$1.isFormData(e))return o?JSON.stringify(formDataToJSON$1(e)):e;if(utils$1$1.isArrayBuffer(e)||utils$1$1.isBuffer(e)||utils$1$1.isStream(e)||utils$1$1.isFile(e)||utils$1$1.isBlob(e)||utils$1$1.isReadableStream(e))return e;if(utils$1$1.isArrayBufferView(e))return e.buffer;if(utils$1$1.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(n){if(r.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm$1(e,this.formSerializer).toString();if((i=utils$1$1.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return toFormData$2(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return n||o?(t.setContentType("application/json",!1),stringifySafely$1(e)):e}],transformResponse:[function(e){const t=this.transitional||defaults$1.transitional,r=t&&t.forcedJSONParsing,o="json"===this.responseType;if(utils$1$1.isResponse(e)||utils$1$1.isReadableStream(e))return e;if(e&&utils$1$1.isString(e)&&(r&&!this.responseType||o)){const r=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e)}catch(n){if(r){if("SyntaxError"===n.name)throw AxiosError$2.from(n,AxiosError$2.ERR_BAD_RESPONSE,this,null,this.response);throw n}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform$2.classes.FormData,Blob:platform$2.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};utils$1$1.forEach(["delete","get","head","post","put","patch"],(e=>{defaults$1.headers[e]={}}));const ignoreDuplicateOf$1=utils$1$1.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),parseHeaders$1=e=>{const t={};let r,o,n;return e&&e.split("\n").forEach((function(e){n=e.indexOf(":"),r=e.substring(0,n).trim().toLowerCase(),o=e.substring(n+1).trim(),!r||t[r]&&ignoreDuplicateOf$1[r]||("set-cookie"===r?t[r]?t[r].push(o):t[r]=[o]:t[r]=t[r]?t[r]+", "+o:o)})),t},$internals$1=Symbol("internals");function normalizeHeader$1(e){return e&&String(e).trim().toLowerCase()}function normalizeValue$1(e){return!1===e||null==e?e:utils$1$1.isArray(e)?e.map(normalizeValue$1):String(e)}function parseTokens$1(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=r.exec(e);)t[o[1]]=o[2];return t}const isValidHeaderName$1=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function matchHeaderValue$1(e,t,r,o,n){return utils$1$1.isFunction(o)?o.call(this,t,r):(n&&(t=r),utils$1$1.isString(t)?utils$1$1.isString(o)?-1!==t.indexOf(o):utils$1$1.isRegExp(o)?o.test(t):void 0:void 0)}function formatHeader$1(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,r)=>t.toUpperCase()+r))}function buildAccessors$1(e,t){const r=utils$1$1.toCamelCase(" "+t);["get","set","has"].forEach((o=>{Object.defineProperty(e,o+r,{value:function(e,r,n){return this[o].call(this,t,e,r,n)},configurable:!0})}))}let AxiosHeaders$2=class{constructor(e){e&&this.set(e)}set(e,t,r){const o=this;function n(e,t,r){const n=normalizeHeader$1(t);if(!n)throw new Error("header name must be a non-empty string");const i=utils$1$1.findKey(o,n);(!i||void 0===o[i]||!0===r||void 0===r&&!1!==o[i])&&(o[i||t]=normalizeValue$1(e))}const i=(e,t)=>utils$1$1.forEach(e,((e,r)=>n(e,r,t)));if(utils$1$1.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(utils$1$1.isString(e)&&(e=e.trim())&&!isValidHeaderName$1(e))i(parseHeaders$1(e),t);else if(utils$1$1.isHeaders(e))for(const[a,s]of e.entries())n(s,a,r);else null!=e&&n(t,e,r);return this}get(e,t){if(e=normalizeHeader$1(e)){const r=utils$1$1.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return parseTokens$1(e);if(utils$1$1.isFunction(t))return t.call(this,e,r);if(utils$1$1.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=normalizeHeader$1(e)){const r=utils$1$1.findKey(this,e);return!(!r||void 0===this[r]||t&&!matchHeaderValue$1(this,this[r],r,t))}return!1}delete(e,t){const r=this;let o=!1;function n(e){if(e=normalizeHeader$1(e)){const n=utils$1$1.findKey(r,e);!n||t&&!matchHeaderValue$1(r,r[n],n,t)||(delete r[n],o=!0)}}return utils$1$1.isArray(e)?e.forEach(n):n(e),o}clear(e){const t=Object.keys(this);let r=t.length,o=!1;for(;r--;){const n=t[r];e&&!matchHeaderValue$1(this,this[n],n,e,!0)||(delete this[n],o=!0)}return o}normalize(e){const t=this,r={};return utils$1$1.forEach(this,((o,n)=>{const i=utils$1$1.findKey(r,n);if(i)return t[i]=normalizeValue$1(o),void delete t[n];const a=e?formatHeader$1(n):String(n).trim();a!==n&&delete t[n],t[a]=normalizeValue$1(o),r[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return utils$1$1.forEach(this,((r,o)=>{null!=r&&!1!==r&&(t[o]=e&&utils$1$1.isArray(r)?r.join(", "):r)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach((e=>r.set(e))),r}static accessor(e){const t=(this[$internals$1]=this[$internals$1]={accessors:{}}).accessors,r=this.prototype;function o(e){const o=normalizeHeader$1(e);t[o]||(buildAccessors$1(r,e),t[o]=!0)}return utils$1$1.isArray(e)?e.forEach(o):o(e),this}};function transformData$1(e,t){const r=this||defaults$1,o=t||r,n=AxiosHeaders$2.from(o.headers);let i=o.data;return utils$1$1.forEach(e,(function(e){i=e.call(r,i,n.normalize(),t?t.status:void 0)})),n.normalize(),i}function isCancel$2(e){return!(!e||!e.__CANCEL__)}function CanceledError$2(e,t,r){AxiosError$2.call(this,null==e?"canceled":e,AxiosError$2.ERR_CANCELED,t,r),this.name="CanceledError"}function settle$1(e,t,r){const o=r.config.validateStatus;r.status&&o&&!o(r.status)?t(new AxiosError$2("Request failed with status code "+r.status,[AxiosError$2.ERR_BAD_REQUEST,AxiosError$2.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}function parseProtocol$1(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function speedometer$1(e,t){e=e||10;const r=new Array(e),o=new Array(e);let n,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const c=Date.now(),u=o[a];n||(n=c),r[i]=s,o[i]=c;let l=a,d=0;for(;l!==i;)d+=r[l++],l%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-n<t)return;const p=u&&c-u;return p?Math.round(1e3*d/p):void 0}}function throttle$1(e,t){let r,o,n=0,i=1e3/t;const a=(t,i=Date.now())=>{n=i,r=null,o&&(clearTimeout(o),o=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),s=t-n;s>=i?a(e,t):(r=e,o||(o=setTimeout((()=>{o=null,a(r)}),i-s)))},()=>r&&a(r)]}AxiosHeaders$2.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),utils$1$1.reduceDescriptors(AxiosHeaders$2.prototype,(({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}})),utils$1$1.freezeMethods(AxiosHeaders$2),utils$1$1.inherits(CanceledError$2,AxiosError$2,{__CANCEL__:!0});const progressEventReducer$1=(e,t,r=3)=>{let o=0;const n=speedometer$1(50,250);return throttle$1((r=>{const i=r.loaded,a=r.lengthComputable?r.total:void 0,s=i-o,c=n(s);o=i;e({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:c||void 0,estimated:c&&a&&i<=a?(a-i)/c:void 0,event:r,lengthComputable:null!=a,[t?"download":"upload"]:!0})}),r)},progressEventDecorator$1=(e,t)=>{const r=null!=e;return[o=>t[0]({lengthComputable:r,total:e,loaded:o}),t[1]]},asyncDecorator$1=e=>(...t)=>utils$1$1.asap((()=>e(...t))),isURLSameOrigin$1=platform$2.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,platform$2.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(platform$2.origin),platform$2.navigator&&/(msie|trident)/i.test(platform$2.navigator.userAgent)):()=>!0,cookies$1=platform$2.hasStandardBrowserEnv?{write(e,t,r,o,n,i){const a=[e+"="+encodeURIComponent(t)];utils$1$1.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),utils$1$1.isString(o)&&a.push("path="+o),utils$1$1.isString(n)&&a.push("domain="+n),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function isAbsoluteURL$1(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function combineURLs$1(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function buildFullPath$1(e,t){return e&&!isAbsoluteURL$1(t)?combineURLs$1(e,t):t}const headersToObject$1=e=>e instanceof AxiosHeaders$2?{...e}:e;function mergeConfig$2(e,t){t=t||{};const r={};function o(e,t,r,o){return utils$1$1.isPlainObject(e)&&utils$1$1.isPlainObject(t)?utils$1$1.merge.call({caseless:o},e,t):utils$1$1.isPlainObject(t)?utils$1$1.merge({},t):utils$1$1.isArray(t)?t.slice():t}function n(e,t,r,n){return utils$1$1.isUndefined(t)?utils$1$1.isUndefined(e)?void 0:o(void 0,e,0,n):o(e,t,0,n)}function i(e,t){if(!utils$1$1.isUndefined(t))return o(void 0,t)}function a(e,t){return utils$1$1.isUndefined(t)?utils$1$1.isUndefined(e)?void 0:o(void 0,e):o(void 0,t)}function s(r,n,i){return i in t?o(r,n):i in e?o(void 0,r):void 0}const c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t,r)=>n(headersToObject$1(e),headersToObject$1(t),0,!0)};return utils$1$1.forEach(Object.keys(Object.assign({},e,t)),(function(o){const i=c[o]||n,a=i(e[o],t[o],o);utils$1$1.isUndefined(a)&&i!==s||(r[o]=a)})),r}const resolveConfig$1=e=>{const t=mergeConfig$2({},e);let r,{data:o,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:c}=t;if(t.headers=s=AxiosHeaders$2.from(s),t.url=buildURL$1(buildFullPath$1(t.baseURL,t.url),e.params,e.paramsSerializer),c&&s.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),utils$1$1.isFormData(o))if(platform$2.hasStandardBrowserEnv||platform$2.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(r=s.getContentType())){const[e,...t]=r?r.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(platform$2.hasStandardBrowserEnv&&(n&&utils$1$1.isFunction(n)&&(n=n(t)),n||!1!==n&&isURLSameOrigin$1(t.url))){const e=i&&a&&cookies$1.read(a);e&&s.set(i,e)}return t},isXHRAdapterSupported$1="undefined"!=typeof XMLHttpRequest,xhrAdapter$1=isXHRAdapterSupported$1&&function(e){return new Promise((function(t,r){const o=resolveConfig$1(e);let n=o.data;const i=AxiosHeaders$2.from(o.headers).normalize();let a,s,c,u,l,{responseType:d,onUploadProgress:p,onDownloadProgress:h}=o;function f(){u&&u(),l&&l(),o.cancelToken&&o.cancelToken.unsubscribe(a),o.signal&&o.signal.removeEventListener("abort",a)}let m=new XMLHttpRequest;function y(){if(!m)return;const o=AxiosHeaders$2.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());settle$1((function(e){t(e),f()}),(function(e){r(e),f()}),{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:o,config:e,request:m}),m=null}m.open(o.method.toUpperCase(),o.url,!0),m.timeout=o.timeout,"onloadend"in m?m.onloadend=y:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(y)},m.onabort=function(){m&&(r(new AxiosError$2("Request aborted",AxiosError$2.ECONNABORTED,e,m)),m=null)},m.onerror=function(){r(new AxiosError$2("Network Error",AxiosError$2.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const n=o.transitional||transitionalDefaults$1;o.timeoutErrorMessage&&(t=o.timeoutErrorMessage),r(new AxiosError$2(t,n.clarifyTimeoutError?AxiosError$2.ETIMEDOUT:AxiosError$2.ECONNABORTED,e,m)),m=null},void 0===n&&i.setContentType(null),"setRequestHeader"in m&&utils$1$1.forEach(i.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),utils$1$1.isUndefined(o.withCredentials)||(m.withCredentials=!!o.withCredentials),d&&"json"!==d&&(m.responseType=o.responseType),h&&([c,l]=progressEventReducer$1(h,!0),m.addEventListener("progress",c)),p&&m.upload&&([s,u]=progressEventReducer$1(p),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",u)),(o.cancelToken||o.signal)&&(a=t=>{m&&(r(!t||t.type?new CanceledError$2(null,e,m):t),m.abort(),m=null)},o.cancelToken&&o.cancelToken.subscribe(a),o.signal&&(o.signal.aborted?a():o.signal.addEventListener("abort",a)));const g=parseProtocol$1(o.url);g&&-1===platform$2.protocols.indexOf(g)?r(new AxiosError$2("Unsupported protocol "+g+":",AxiosError$2.ERR_BAD_REQUEST,e)):m.send(n||null)}))},composeSignals$1=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,o=new AbortController;const n=function(e){if(!r){r=!0,a();const t=e instanceof Error?e:this.reason;o.abort(t instanceof AxiosError$2?t:new CanceledError$2(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{i=null,n(new AxiosError$2(`timeout ${t} of ms exceeded`,AxiosError$2.ETIMEDOUT))}),t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(n):e.removeEventListener("abort",n)})),e=null)};e.forEach((e=>e.addEventListener("abort",n)));const{signal:s}=o;return s.unsubscribe=()=>utils$1$1.asap(a),s}},streamChunk$1=function*(e,t){let r=e.byteLength;if(r<t)return void(yield e);let o,n=0;for(;n<r;)o=n+t,yield e.slice(n,o),n=o},readBytes$1=async function*(e,t){for await(const r of readStream$1(e))yield*streamChunk$1(r,t)},readStream$1=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}},trackStream$1=(e,t,r,o)=>{const n=readBytes$1(e,t);let i,a=0,s=e=>{i||(i=!0,o&&o(e))};return new ReadableStream({async pull(e){try{const{done:t,value:o}=await n.next();if(t)return s(),void e.close();let i=o.byteLength;if(r){let e=a+=i;r(e)}e.enqueue(new Uint8Array(o))}catch(t){throw s(t),t}},cancel:e=>(s(e),n.return())},{highWaterMark:2})},isFetchSupported$1="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,isReadableStreamSupported$1=isFetchSupported$1&&"function"==typeof ReadableStream,encodeText$1=isFetchSupported$1&&("function"==typeof TextEncoder?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),test$1=(e,...t)=>{try{return!!e(...t)}catch(r){return!1}},supportsRequestStream$1=isReadableStreamSupported$1&&test$1((()=>{let e=!1;const t=new Request(platform$2.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),DEFAULT_CHUNK_SIZE$1=65536,supportsResponseStream$1=isReadableStreamSupported$1&&test$1((()=>utils$1$1.isReadableStream(new Response("").body))),resolvers$1={stream:supportsResponseStream$1&&(e=>e.body)};var res;isFetchSupported$1&&(res=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!resolvers$1[e]&&(resolvers$1[e]=utils$1$1.isFunction(res[e])?t=>t[e]():(t,r)=>{throw new AxiosError$2(`Response type '${e}' is not supported`,AxiosError$2.ERR_NOT_SUPPORT,r)})})));const getBodyLength$1=async e=>{if(null==e)return 0;if(utils$1$1.isBlob(e))return e.size;if(utils$1$1.isSpecCompliantForm(e)){const t=new Request(platform$2.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return utils$1$1.isArrayBufferView(e)||utils$1$1.isArrayBuffer(e)?e.byteLength:(utils$1$1.isURLSearchParams(e)&&(e+=""),utils$1$1.isString(e)?(await encodeText$1(e)).byteLength:void 0)},resolveBodyLength$1=async(e,t)=>{const r=utils$1$1.toFiniteNumber(e.getContentLength());return null==r?getBodyLength$1(t):r},fetchAdapter$1=isFetchSupported$1&&(async e=>{let{url:t,method:r,data:o,signal:n,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:c,responseType:u,headers:l,withCredentials:d="same-origin",fetchOptions:p}=resolveConfig$1(e);u=u?(u+"").toLowerCase():"text";let h,f=composeSignals$1([n,i&&i.toAbortSignal()],a);const m=f&&f.unsubscribe&&(()=>{f.unsubscribe()});let y;try{if(c&&supportsRequestStream$1&&"get"!==r&&"head"!==r&&0!==(y=await resolveBodyLength$1(l,o))){let e,r=new Request(t,{method:"POST",body:o,duplex:"half"});if(utils$1$1.isFormData(o)&&(e=r.headers.get("content-type"))&&l.setContentType(e),r.body){const[e,t]=progressEventDecorator$1(y,progressEventReducer$1(asyncDecorator$1(c)));o=trackStream$1(r.body,DEFAULT_CHUNK_SIZE$1,e,t)}}utils$1$1.isString(d)||(d=d?"include":"omit");const n="credentials"in Request.prototype;h=new Request(t,{...p,signal:f,method:r.toUpperCase(),headers:l.normalize().toJSON(),body:o,duplex:"half",credentials:n?d:void 0});let i=await fetch(h);const a=supportsResponseStream$1&&("stream"===u||"response"===u);if(supportsResponseStream$1&&(s||a&&m)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=i[t]}));const t=utils$1$1.toFiniteNumber(i.headers.get("content-length")),[r,o]=s&&progressEventDecorator$1(t,progressEventReducer$1(asyncDecorator$1(s),!0))||[];i=new Response(trackStream$1(i.body,DEFAULT_CHUNK_SIZE$1,r,(()=>{o&&o(),m&&m()})),e)}u=u||"text";let g=await resolvers$1[utils$1$1.findKey(resolvers$1,u)||"text"](i,e);return!a&&m&&m(),await new Promise(((t,r)=>{settle$1(t,r,{data:g,headers:AxiosHeaders$2.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:h})}))}catch(g){if(m&&m(),g&&"TypeError"===g.name&&/fetch/i.test(g.message))throw Object.assign(new AxiosError$2("Network Error",AxiosError$2.ERR_NETWORK,e,h),{cause:g.cause||g});throw AxiosError$2.from(g,g&&g.code,e,h)}}),knownAdapters$1={http:httpAdapter$1,xhr:xhrAdapter$1,fetch:fetchAdapter$1};utils$1$1.forEach(knownAdapters$1,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(r){}Object.defineProperty(e,"adapterName",{value:t})}}));const renderReason$1=e=>`- ${e}`,isResolvedHandle$1=e=>utils$1$1.isFunction(e)||null===e||!1===e,adapters$1={getAdapter:e=>{e=utils$1$1.isArray(e)?e:[e];const{length:t}=e;let r,o;const n={};for(let i=0;i<t;i++){let t;if(r=e[i],o=r,!isResolvedHandle$1(r)&&(o=knownAdapters$1[(t=String(r)).toLowerCase()],void 0===o))throw new AxiosError$2(`Unknown adapter '${t}'`);if(o)break;n[t||"#"+i]=o}if(!o){const e=Object.entries(n).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new AxiosError$2("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(renderReason$1).join("\n"):" "+renderReason$1(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return o},adapters:knownAdapters$1};function throwIfCancellationRequested$1(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new CanceledError$2(null,e)}function dispatchRequest$1(e){throwIfCancellationRequested$1(e),e.headers=AxiosHeaders$2.from(e.headers),e.data=transformData$1.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return adapters$1.getAdapter(e.adapter||defaults$1.adapter)(e).then((function(t){return throwIfCancellationRequested$1(e),t.data=transformData$1.call(e,e.transformResponse,t),t.headers=AxiosHeaders$2.from(t.headers),t}),(function(t){return isCancel$2(t)||(throwIfCancellationRequested$1(e),t&&t.response&&(t.response.data=transformData$1.call(e,e.transformResponse,t.response),t.response.headers=AxiosHeaders$2.from(t.response.headers))),Promise.reject(t)}))}const VERSION$2="1.7.9",validators$1$1={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{validators$1$1[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));const deprecatedWarnings$1={};function assertOptions$1(e,t,r){if("object"!=typeof e)throw new AxiosError$2("options must be an object",AxiosError$2.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let n=o.length;for(;n-- >0;){const i=o[n],a=t[i];if(a){const t=e[i],r=void 0===t||a(t,i,e);if(!0!==r)throw new AxiosError$2("option "+i+" must be "+r,AxiosError$2.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new AxiosError$2("Unknown option "+i,AxiosError$2.ERR_BAD_OPTION)}}validators$1$1.transitional=function(e,t,r){function o(e,t){return"[Axios v"+VERSION$2+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,n,i)=>{if(!1===e)throw new AxiosError$2(o(n," has been removed"+(t?" in "+t:"")),AxiosError$2.ERR_DEPRECATED);return t&&!deprecatedWarnings$1[n]&&(deprecatedWarnings$1[n]=!0,console.warn(o(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,n,i)}},validators$1$1.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};const validator$1={assertOptions:assertOptions$1,validators:validators$1$1},validators$2=validator$1.validators;let Axios$2=class{constructor(e){this.defaults=e,this.interceptors={request:new InterceptorManager$1,response:new InterceptorManager$1}}async request(e,t){try{return await this._request(e,t)}catch(r){if(r instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{r.stack?t&&!String(r.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(r.stack+="\n"+t):r.stack=t}catch(o){}}throw r}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=mergeConfig$2(this.defaults,t);const{transitional:r,paramsSerializer:o,headers:n}=t;void 0!==r&&validator$1.assertOptions(r,{silentJSONParsing:validators$2.transitional(validators$2.boolean),forcedJSONParsing:validators$2.transitional(validators$2.boolean),clarifyTimeoutError:validators$2.transitional(validators$2.boolean)},!1),null!=o&&(utils$1$1.isFunction(o)?t.paramsSerializer={serialize:o}:validator$1.assertOptions(o,{encode:validators$2.function,serialize:validators$2.function},!0)),validator$1.assertOptions(t,{baseUrl:validators$2.spelling("baseURL"),withXsrfToken:validators$2.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=n&&utils$1$1.merge(n.common,n[t.method]);n&&utils$1$1.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete n[e]})),t.headers=AxiosHeaders$2.concat(i,n);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const c=[];let u;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let l,d=0;if(!s){const e=[dispatchRequest$1.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,c),l=e.length,u=Promise.resolve(t);d<l;)u=u.then(e[d++],e[d++]);return u}l=a.length;let p=t;for(d=0;d<l;){const e=a[d++],t=a[d++];try{p=e(p)}catch(h){t.call(this,h);break}}try{u=dispatchRequest$1.call(this,p)}catch(h){return Promise.reject(h)}for(d=0,l=c.length;d<l;)u=u.then(c[d++],c[d++]);return u}getUri(e){return buildURL$1(buildFullPath$1((e=mergeConfig$2(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}};utils$1$1.forEach(["delete","get","head","options"],(function(e){Axios$2.prototype[e]=function(t,r){return this.request(mergeConfig$2(r||{},{method:e,url:t,data:(r||{}).data}))}})),utils$1$1.forEach(["post","put","patch"],(function(e){function t(t){return function(r,o,n){return this.request(mergeConfig$2(n||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:o}))}}Axios$2.prototype[e]=t(),Axios$2.prototype[e+"Form"]=t(!0)}));let CancelToken$2=class e{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const r=this;this.promise.then((e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null})),this.promise.then=e=>{let t;const o=new Promise((e=>{r.subscribe(e),t=e})).then(e);return o.cancel=function(){r.unsubscribe(t)},o},e((function(e,o,n){r.reason||(r.reason=new CanceledError$2(e,o,n),t(r.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e((function(e){t=e})),cancel:t}}};function spread$2(e){return function(t){return e.apply(null,t)}}function isAxiosError$2(e){return utils$1$1.isObject(e)&&!0===e.isAxiosError}const HttpStatusCode$2={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};function createInstance$1(e){const t=new Axios$2(e),r=bind$1(Axios$2.prototype.request,t);return utils$1$1.extend(r,Axios$2.prototype,t,{allOwnKeys:!0}),utils$1$1.extend(r,t,null,{allOwnKeys:!0}),r.create=function(t){return createInstance$1(mergeConfig$2(e,t))},r}Object.entries(HttpStatusCode$2).forEach((([e,t])=>{HttpStatusCode$2[t]=e}));const axios$1=createInstance$1(defaults$1);axios$1.Axios=Axios$2,axios$1.CanceledError=CanceledError$2,axios$1.CancelToken=CancelToken$2,axios$1.isCancel=isCancel$2,axios$1.VERSION=VERSION$2,axios$1.toFormData=toFormData$2,axios$1.AxiosError=AxiosError$2,axios$1.Cancel=axios$1.CanceledError,axios$1.all=function(e){return Promise.all(e)},axios$1.spread=spread$2,axios$1.isAxiosError=isAxiosError$2,axios$1.mergeConfig=mergeConfig$2,axios$1.AxiosHeaders=AxiosHeaders$2,axios$1.formToJSON=e=>formDataToJSON$1(utils$1$1.isHTMLForm(e)?new FormData(e):e),axios$1.getAdapter=adapters$1.getAdapter,axios$1.HttpStatusCode=HttpStatusCode$2,axios$1.default=axios$1;const _Logger=class e{constructor(){__publicField(this,"isProduction"),this.isProduction="production"===process$1.env.NODE_ENV}static getInstance(){return e.instance||(e.instance=new e),e.instance}debug(e,...t){this.isProduction||console.debug(e,...t)}info(e,...t){this.isProduction||console.info(e,...t)}warn(e,...t){console.warn(e,...t)}error(e,...t){console.error(e,...t)}};__publicField(_Logger,"instance");let Logger=_Logger;class ValidationError extends Error{constructor(e){super(e),this.name="ValidationError"}}class Auth{constructor(e){__publicField(this,"accountId"),__publicField(this,"privateKey"),__publicField(this,"baseUrl"),__publicField(this,"network"),this.accountId=e.accountId,this.privateKey=y$2.fromStringED25519(e.privateKey),this.network=e.network||"mainnet",this.baseUrl=e.baseUrl||"https://kiloscribe.com"}async authenticate(){var e,t,r;const o=await axios$1.get(`${this.baseUrl}/api/auth/request-signature`,{headers:{"x-session":this.accountId}});if(!(null==(e=o.data)?void 0:e.message))throw new Error("Failed to get signature message");const n=o.data.message,i=await this.signMessage(n),a=await axios$1.post(`${this.baseUrl}/api/auth/authenticate`,{authData:{id:this.accountId,signature:i,data:n,network:this.network},include:"apiKey"});if(!(null==(r=null==(t=a.data)?void 0:t.user)?void 0:r.sessionToken))throw new Error("Authentication failed");return{apiKey:a.data.apiKey}}async signMessage(e){const t=(new TextEncoder).encode(e),r=await this.privateKey.sign(t);return Buffer2.from(r).toString("hex")}}class ClientAuth{constructor(e){__publicField(this,"accountId"),__publicField(this,"signer"),__publicField(this,"baseUrl"),__publicField(this,"network"),__publicField(this,"logger"),this.accountId=e.accountId,this.signer=e.signer,this.network=e.network||"mainnet",this.baseUrl=e.baseUrl||"https://kiloscribe.com",this.logger=e.logger}async authenticate(){var e,t,r;const o=await axios$1.get(`${this.baseUrl}/api/auth/request-signature`,{headers:{"x-session":this.accountId}});if(!(null==(e=o.data)?void 0:e.message))throw new Error("Failed to get signature message");const n=o.data.message,i=await this.signMessage(JSON.stringify(n)),a=await axios$1.post(`${this.baseUrl}/api/auth/authenticate`,{authData:{id:this.accountId,signature:i,data:n,network:this.network},include:"apiKey"});if(!(null==(r=null==(t=a.data)?void 0:t.user)?void 0:r.sessionToken))throw new Error("Authentication failed");return{apiKey:a.data.apiKey}}async signMessage(e){try{const t=(new TextEncoder).encode(e);this.logger.debug("signing message");const r=await this.signer.sign([t],{encoding:"utf-8"});return Buffer2.from(null==r?void 0:r[0].signature).toString("hex")}catch(t){throw this.logger.error("Failed to sign message",t),new Error("Failed to sign message")}}}const _InscriptionSDK=class e{constructor(e){if(__publicField(this,"client"),__publicField(this,"config"),__publicField(this,"logger",Logger.getInstance()),this.config=e,!e.apiKey)throw new ValidationError("API key is required");if(!e.network)throw new ValidationError("Network is required");const t={"x-api-key":e.apiKey,"Content-Type":"application/json"};this.client=axios$1.create({baseURL:"https://v2-api.tier.bot/api",headers:t}),this.logger=Logger.getInstance()}async getFileMetadata(e){try{const t=await axios$1.get(e),r=t.headers["content-type"]||"";return{size:parseInt(t.headers["content-length"]||"0",10),mimeType:r}}catch(t){throw this.logger.error("Error fetching file metadata:",t),new ValidationError("Unable to fetch file metadata")}}getMimeType(t){const r=t.toLowerCase().split(".").pop();if(!r)throw new ValidationError("File must have an extension");const o=e.VALID_MIME_TYPES[r];if(!o)throw new ValidationError(`Unsupported file type: ${r}`);return o}validateRequest(t){if(this.logger.debug("Validating request:",t),!t.holderId||""===t.holderId.trim())throw this.logger.warn("holderId is missing or empty"),new ValidationError("holderId is required");if(!e.VALID_MODES.includes(t.mode))throw new ValidationError(`Invalid mode: ${t.mode}. Must be one of: ${e.VALID_MODES.join(", ")}`);if("hashinal"===t.mode&&!t.jsonFileURL&&!t.metadataObject)throw new ValidationError("Hashinal mode requires either jsonFileURL or metadataObject");if(t.onlyJSONCollection&&"hashinal-collection"!==t.mode)throw new ValidationError("onlyJSONCollection can only be used with hashinal-collection mode");this.validateFileInput(t.file)}normalizeMimeType(e){return"image/vnd.microsoft.icon"===e?(this.logger.debug("Normalizing MIME type from image/vnd.microsoft.icon to image/x-icon"),"image/x-icon"):e}validateMimeType(t){return!!Object.values(e.VALID_MIME_TYPES).includes(t)||"image/vnd.microsoft.icon"===t&&(this.logger.debug("Accepting alternative MIME type for ICO: image/vnd.microsoft.icon"),!0)}validateFileInput(t){if("base64"===t.type){if(!t.base64)throw new ValidationError("Base64 data is required");const r=t.base64.replace(/^data:.*?;base64,/,"");if(Math.ceil(.75*r.length)>e.MAX_BASE64_SIZE)throw new ValidationError(`File size exceeds maximum limit of ${e.MAX_BASE64_SIZE/1024/1024}MB`);const o=t.mimeType||this.getMimeType(t.fileName);if(!this.validateMimeType(o))throw new ValidationError("File must have one of the supported MIME types");"image/vnd.microsoft.icon"===t.mimeType&&(t.mimeType=this.normalizeMimeType(t.mimeType))}else if("url"===t.type&&!t.url)throw new ValidationError("URL is required")}async startInscription(t){var r,o;try{if(this.validateRequest(t),"url"===t.file.type){const r=await this.getFileMetadata(t.file.url);if(r.size>e.MAX_URL_FILE_SIZE)throw new ValidationError(`File size exceeds maximum URL file limit of ${e.MAX_URL_FILE_SIZE/1024/1024}MB`);"image/vnd.microsoft.icon"===r.mimeType&&(r.mimeType=this.normalizeMimeType(r.mimeType))}if(t.jsonFileURL){if("application/json"!==(await this.getFileMetadata(t.jsonFileURL)).mimeType)throw new ValidationError("JSON file must be of type application/json")}const r={holderId:t.holderId,mode:t.mode,network:this.config.network,onlyJSONCollection:t.onlyJSONCollection?1:0,creator:t.creator,description:t.description,fileStandard:t.fileStandard,metadataObject:t.metadataObject,jsonFileURL:t.jsonFileURL};let o;return o="url"===t.file.type?await this.client.post("/inscriptions/start-inscription",{...r,fileURL:t.file.url}):await this.client.post("/inscriptions/start-inscription",{...r,fileBase64:t.file.base64,fileName:t.file.fileName,fileMimeType:t.file.mimeType||this.getMimeType(t.file.fileName)}),o.data}catch(n){if(n instanceof ValidationError)throw n;if(axios$1.isAxiosError(n))throw new Error((null==(o=null==(r=n.response)?void 0:r.data)?void 0:o.message)||"Failed to start inscription");throw n}}async executeTransaction(e,t){try{const r="mainnet"===t.network?i$1.forMainnet():i$1.forTestnet(),o=y$2.fromString(t.privateKey);r.setOperator(t.accountId,o);const n=S.fromBytes(Buffer2.from(e,"base64")),i=await n.sign(o),a=await i.execute(r),s=(await a.getReceipt(r)).status.toString();if("SUCCESS"!==s)throw new Error(`Transaction failed with status: ${s}`);return a.transactionId.toString()}catch(r){throw new Error(`Failed to execute transaction: ${r instanceof Error?r.message:"Unknown error"}`)}}async executeTransactionWithSigner(e,t){try{const r=S.fromBytes(Buffer2.from(e,"base64")),o=await r.executeWithSigner(t),n=(await o.getReceiptWithSigner(t)).status.toString();if("SUCCESS"!==n)throw new Error(`Transaction failed with status: ${n}`);return o.transactionId.toString()}catch(r){throw new Error(`Failed to execute transaction: ${r instanceof Error?r.message:"Unknown error"}`)}}async inscribeAndExecute(e,t){const r=await this.startInscription(e);if(!r.transactionBytes)throw this.logger.error("No transaction bytes returned from inscription request",r),new Error("No transaction bytes returned from inscription request");this.logger.info("executing transaction");const o=await this.executeTransaction(r.transactionBytes,t);return{jobId:r.tx_id,transactionId:o}}async inscribe(e,t){const r=await this.startInscription(e);if(!r.transactionBytes)throw this.logger.error("No transaction bytes returned from inscription request",r),new Error("No transaction bytes returned from inscription request");this.logger.info("executing transaction");const o=await this.executeTransactionWithSigner(r.transactionBytes,t);return{jobId:r.tx_id,transactionId:o}}async retryWithBackoff(e,t=3,r=1e3){for(let n=0;n<t;n++)try{return await e()}catch(o){if(n===t-1)throw o;const e=r*Math.pow(2,n);await new Promise((t=>setTimeout(t,e))),this.logger.debug(`Retry attempt ${n+1}/${t} after ${e}ms delay`)}throw new Error("Retry operation failed")}async retrieveInscription(e){if(!e)throw new ValidationError("Transaction ID is required");try{return await this.retryWithBackoff((async()=>{const t=(await this.client.get(`/inscriptions/retrieve-inscription?id=${e}`)).data;return{...t,jobId:t.id}}))}catch(t){throw this.logger.error("Failed to retrieve inscription:",t),t}}async getInscriptionNumbers(e={}){try{return(await this.client.get("/inscriptions/numbers",{params:e})).data}catch(t){throw this.logger.error("Failed to fetch inscription numbers:",t),t}}static async authenticate(e){return new Auth(e).authenticate()}static async createWithAuth(t){const r="client"===t.type?new ClientAuth({...t,logger:Logger.getInstance()}):new Auth(t),{apiKey:o}=await r.authenticate();return new e({apiKey:o,network:t.network||"mainnet"})}async waitForInscription(e,t=30,r=4e3,o=!1){var n;let i=0;for(;i<t;){const t=await this.retrieveInscription(e);if(t.error)throw new Error(t.error);const a="hashinal"===t.mode,s="6"===(null==(n=t.fileStandard)?void 0:n.toString());if(a&&t.topic_id&&t.jsonTopicId&&(!o||"completed"===t.status))return t;if(!a&&!s&&t.topic_id&&(!o||"completed"===t.status))return t;if(s&&t.topic_id&&t.jsonTopicId&&t.registryTopicId&&(!o||"completed"===t.status))return t;await new Promise((e=>setTimeout(e,r))),i++}throw new Error(`Inscription ${e} did not complete within ${t} attempts`)}};__publicField(_InscriptionSDK,"VALID_MODES",["file","upload","hashinal","hashinal-collection"]),__publicField(_InscriptionSDK,"MAX_BASE64_SIZE",2097152),__publicField(_InscriptionSDK,"MAX_URL_FILE_SIZE",104857600),__publicField(_InscriptionSDK,"VALID_MIME_TYPES",{jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",gif:"image/gif",ico:"image/x-icon",heic:"image/heic",heif:"image/heif",bmp:"image/bmp",webp:"image/webp",tiff:"image/tiff",tif:"image/tiff",svg:"image/svg+xml",mp4:"video/mp4",webm:"video/webm",mp3:"audio/mpeg",pdf:"application/pdf",doc:"application/msword",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",xls:"application/vnd.ms-excel",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",ppt:"application/vnd.ms-powerpoint",pptx:"application/vnd.openxmlformats-officedocument.presentationml.presentation",html:"text/html",htm:"text/html",css:"text/css",php:"application/x-httpd-php",java:"text/x-java-source",js:"application/javascript",mjs:"application/javascript",csv:"text/csv",json:"application/json",txt:"text/plain",glb:"model/gltf-binary",wav:"audio/wav",ogg:"audio/ogg",oga:"audio/ogg",flac:"audio/flac",aac:"audio/aac",m4a:"audio/mp4",avi:"video/x-msvideo",mov:"video/quicktime",mkv:"video/x-matroska",m4v:"video/mp4",mpg:"video/mpeg",mpeg:"video/mpeg",ts:"application/typescript",zip:"application/zip",rar:"application/vnd.rar",tar:"application/x-tar",gz:"application/gzip","7z":"application/x-7z-compressed",xml:"application/xml",yaml:"application/yaml",yml:"application/yaml",md:"text/markdown",markdown:"text/markdown",rtf:"application/rtf",gltf:"model/gltf+json",usdz:"model/vnd.usdz+zip",obj:"model/obj",stl:"model/stl",fbx:"application/octet-stream",ttf:"font/ttf",otf:"font/otf",woff:"font/woff",woff2:"font/woff2",eot:"application/vnd.ms-fontobject",psd:"application/vnd.adobe.photoshop",ai:"application/postscript",eps:"application/postscript",ps:"application/postscript",sqlite:"application/x-sqlite3",db:"application/x-sqlite3",apk:"application/vnd.android.package-archive",ics:"text/calendar",vcf:"text/vcard",py:"text/x-python",rb:"text/x-ruby",go:"text/x-go",rs:"text/x-rust",typescript:"application/typescript",jsx:"text/jsx",tsx:"text/tsx",sql:"application/sql",toml:"application/toml",avif:"image/avif",jxl:"image/jxl",weba:"audio/webm"});let InscriptionSDK=_InscriptionSDK;function bind(e,t){return function(){return e.apply(t,arguments)}}const{toString:toString}=Object.prototype,{getPrototypeOf:getPrototypeOf}=Object,kindOf=(e=>t=>{const r=toString.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest=e=>(e=e.toLowerCase(),t=>kindOf(t)===e),typeOfTest=e=>t=>typeof t===e,{isArray:isArray}=Array,isUndefined=typeOfTest("undefined");function isBuffer(e){return null!==e&&!isUndefined(e)&&null!==e.constructor&&!isUndefined(e.constructor)&&isFunction(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&isArrayBuffer(e.buffer),t}const isString=typeOfTest("string"),isFunction=typeOfTest("function"),isNumber=typeOfTest("number"),isObject=e=>null!==e&&"object"==typeof e,isBoolean=e=>!0===e||!1===e,isPlainObject=e=>{if("object"!==kindOf(e))return!1;const t=getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},isDate=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=e=>isObject(e)&&isFunction(e.pipe),isFormData=e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||isFunction(e.append)&&("formdata"===(t=kindOf(e))||"object"===t&&isFunction(e.toString)&&"[object FormData]"===e.toString()))},isURLSearchParams=kindOfTest("URLSearchParams"),[isReadableStream,isRequest,isResponse,isHeaders]=["ReadableStream","Request","Response","Headers"].map(kindOfTest),trim=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let o,n;if("object"!=typeof e&&(e=[e]),isArray(e))for(o=0,n=e.length;o<n;o++)t.call(null,e[o],o,e);else{const n=r?Object.getOwnPropertyNames(e):Object.keys(e),i=n.length;let a;for(o=0;o<i;o++)a=n[o],t.call(null,e[a],a,e)}}function findKey(e,t){t=t.toLowerCase();const r=Object.keys(e);let o,n=r.length;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const _global="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global$2,isContextDefined=e=>!isUndefined(e)&&e!==_global;function merge(){const{caseless:e}=isContextDefined(this)&&this||{},t={},r=(r,o)=>{const n=e&&findKey(t,o)||o;isPlainObject(t[n])&&isPlainObject(r)?t[n]=merge(t[n],r):isPlainObject(r)?t[n]=merge({},r):isArray(r)?t[n]=r.slice():t[n]=r};for(let o=0,n=arguments.length;o<n;o++)arguments[o]&&forEach(arguments[o],r);return t}const extend=(e,t,r,{allOwnKeys:o}={})=>(forEach(t,((t,o)=>{r&&isFunction(t)?e[o]=bind(t,r):e[o]=t}),{allOwnKeys:o}),e),stripBOM=e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits=(e,t,r,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject=(e,t,r,o)=>{let n,i,a;const s={};if(t=t||{},null==e)return t;do{for(n=Object.getOwnPropertyNames(e),i=n.length;i-- >0;)a=n[i],o&&!o(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==r&&getPrototypeOf(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},endsWith=(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const o=e.indexOf(t,r);return-1!==o&&o===r},toArray=e=>{if(!e)return null;if(isArray(e))return e;let t=e.length;if(!isNumber(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},isTypedArray=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&getPrototypeOf(Uint8Array)),forEachEntry=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const r=o.value;t.call(e,r[0],r[1])}},matchAll=(e,t)=>{let r;const o=[];for(;null!==(r=e.exec(t));)o.push(r);return o},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r})),hasOwnProperty=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),isRegExp=kindOfTest("RegExp"),reduceDescriptors=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),o={};forEach(r,((r,n)=>{let i;!1!==(i=t(r,n,e))&&(o[n]=i||r)})),Object.defineProperties(e,o)},freezeMethods=e=>{reduceDescriptors(e,((t,r)=>{if(isFunction(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const o=e[r];isFunction(o)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet=(e,t)=>{const r={},o=e=>{e.forEach((e=>{r[e]=!0}))};return isArray(e)?o(e):o(String(e).split(t)),r},noop=()=>{},toFiniteNumber=(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t;function isSpecCompliantForm(e){return!!(e&&isFunction(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])}const toJSONObject=e=>{const t=new Array(10),r=(e,o)=>{if(isObject(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[o]=e;const n=isArray(e)?[]:{};return forEach(e,((e,t)=>{const i=r(e,o+1);!isUndefined(i)&&(n[t]=i)})),t[o]=void 0,n}}return e};return r(e,0)},isAsyncFn=kindOfTest("AsyncFunction"),isThenable=e=>e&&(isObject(e)||isFunction(e))&&isFunction(e.then)&&isFunction(e.catch),_setImmediate=((e,t)=>e?setImmediate:t?((e,t)=>(_global.addEventListener("message",(({source:r,data:o})=>{r===_global&&o===e&&t.length&&t.shift()()}),!1),r=>{t.push(r),_global.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))("function"==typeof setImmediate,isFunction(_global.postMessage)),asap="undefined"!=typeof queueMicrotask?queueMicrotask.bind(_global):void 0!==process$1$1&&process$1$1.nextTick||_setImmediate,utils$1={isArray:isArray,isArrayBuffer:isArrayBuffer,isBuffer:isBuffer,isFormData:isFormData,isArrayBufferView:isArrayBufferView,isString:isString,isNumber:isNumber,isBoolean:isBoolean,isObject:isObject,isPlainObject:isPlainObject,isReadableStream:isReadableStream,isRequest:isRequest,isResponse:isResponse,isHeaders:isHeaders,isUndefined:isUndefined,isDate:isDate,isFile:isFile,isBlob:isBlob,isRegExp:isRegExp,isFunction:isFunction,isStream:isStream,isURLSearchParams:isURLSearchParams,isTypedArray:isTypedArray,isFileList:isFileList,forEach:forEach,merge:merge,extend:extend,trim:trim,stripBOM:stripBOM,inherits:inherits,toFlatObject:toFlatObject,kindOf:kindOf,kindOfTest:kindOfTest,endsWith:endsWith,toArray:toArray,forEachEntry:forEachEntry,matchAll:matchAll,isHTMLForm:isHTMLForm,hasOwnProperty:hasOwnProperty,hasOwnProp:hasOwnProperty,reduceDescriptors:reduceDescriptors,freezeMethods:freezeMethods,toObjectSet:toObjectSet,toCamelCase:toCamelCase,noop:noop,toFiniteNumber:toFiniteNumber,findKey:findKey,global:_global,isContextDefined:isContextDefined,isSpecCompliantForm:isSpecCompliantForm,toJSONObject:toJSONObject,isAsyncFn:isAsyncFn,isThenable:isThenable,setImmediate:_setImmediate,asap:asap};function AxiosError$1(e,t,r,o,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),o&&(this.request=o),n&&(this.response=n,this.status=n.status?n.status:null)}utils$1.inherits(AxiosError$1,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:utils$1.toJSONObject(this.config),code:this.code,status:this.status}}});const prototype$1=AxiosError$1.prototype,descriptors={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{descriptors[e]={value:e}})),Object.defineProperties(AxiosError$1,descriptors),Object.defineProperty(prototype$1,"isAxiosError",{value:!0}),AxiosError$1.from=(e,t,r,o,n,i)=>{const a=Object.create(prototype$1);return utils$1.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),AxiosError$1.call(a,e.message,t,r,o,n),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const httpAdapter=null;function isVisitable(e){return utils$1.isPlainObject(e)||utils$1.isArray(e)}function removeBrackets(e){return utils$1.endsWith(e,"[]")?e.slice(0,-2):e}function renderKey(e,t,r){return e?e.concat(t).map((function(e,t){return e=removeBrackets(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}function isFlatArray(e){return utils$1.isArray(e)&&!e.some(isVisitable)}const predicates=utils$1.toFlatObject(utils$1,{},null,(function(e){return/^is[A-Z]/.test(e)}));function toFormData$1(e,t,r){if(!utils$1.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const o=(r=utils$1.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!utils$1.isUndefined(t[e])}))).metaTokens,n=r.visitor||u,i=r.dots,a=r.indexes,s=(r.Blob||"undefined"!=typeof Blob&&Blob)&&utils$1.isSpecCompliantForm(t);if(!utils$1.isFunction(n))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(utils$1.isDate(e))return e.toISOString();if(!s&&utils$1.isBlob(e))throw new AxiosError$1("Blob is not supported. Use a Buffer instead.");return utils$1.isArrayBuffer(e)||utils$1.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,r,n){let s=e;if(e&&!n&&"object"==typeof e)if(utils$1.endsWith(r,"{}"))r=o?r:r.slice(0,-2),e=JSON.stringify(e);else if(utils$1.isArray(e)&&isFlatArray(e)||(utils$1.isFileList(e)||utils$1.endsWith(r,"[]"))&&(s=utils$1.toArray(e)))return r=removeBrackets(r),s.forEach((function(e,o){!utils$1.isUndefined(e)&&null!==e&&t.append(!0===a?renderKey([r],o,i):null===a?r:r+"[]",c(e))})),!1;return!!isVisitable(e)||(t.append(renderKey(n,r,i),c(e)),!1)}const l=[],d=Object.assign(predicates,{defaultVisitor:u,convertValue:c,isVisitable:isVisitable});if(!utils$1.isObject(e))throw new TypeError("data must be an object");return function e(r,o){if(!utils$1.isUndefined(r)){if(-1!==l.indexOf(r))throw Error("Circular reference detected in "+o.join("."));l.push(r),utils$1.forEach(r,(function(r,i){!0===(!(utils$1.isUndefined(r)||null===r)&&n.call(t,r,utils$1.isString(i)?i.trim():i,o,d))&&e(r,o?o.concat(i):[i])})),l.pop()}}(e),t}function encode$1(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function AxiosURLSearchParams(e,t){this._pairs=[],e&&toFormData$1(e,this,t)}const prototype=AxiosURLSearchParams.prototype;function encode(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL(e,t,r){if(!t)return e;const o=r&&r.encode||encode;utils$1.isFunction(r)&&(r={serialize:r});const n=r&&r.serialize;let i;if(i=n?n(t,r):utils$1.isURLSearchParams(t)?t.toString():new AxiosURLSearchParams(t,r).toString(o),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}prototype.append=function(e,t){this._pairs.push([e,t])},prototype.toString=function(e){const t=e?function(t){return e.call(this,t,encode$1)}:encode$1;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class InterceptorManager{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){utils$1.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}const transitionalDefaults={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},URLSearchParams$1="undefined"!=typeof URLSearchParams?URLSearchParams:AxiosURLSearchParams,FormData$1="undefined"!=typeof FormData?FormData:null,Blob$1="undefined"!=typeof Blob?Blob:null,platform$1={isBrowser:!0,classes:{URLSearchParams:URLSearchParams$1,FormData:FormData$1,Blob:Blob$1},protocols:["http","https","file","blob","url","data"]},hasBrowserEnv="undefined"!=typeof window&&"undefined"!=typeof document,_navigator="object"==typeof navigator&&navigator||void 0,hasStandardBrowserEnv=hasBrowserEnv&&(!_navigator||["ReactNative","NativeScript","NS"].indexOf(_navigator.product)<0),hasStandardBrowserWebWorkerEnv="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,origin=hasBrowserEnv&&window.location.href||"http://localhost",utils=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:hasBrowserEnv,hasStandardBrowserEnv:hasStandardBrowserEnv,hasStandardBrowserWebWorkerEnv:hasStandardBrowserWebWorkerEnv,navigator:_navigator,origin:origin},Symbol.toStringTag,{value:"Module"})),platform={...utils,...platform$1};function toURLEncodedForm(e,t){return toFormData$1(e,new platform.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,o){return platform.isNode&&utils$1.isBuffer(e)?(this.append(t,e.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function parsePropPath(e){return utils$1.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}function arrayToObject(e){const t={},r=Object.keys(e);let o;const n=r.length;let i;for(o=0;o<n;o++)i=r[o],t[i]=e[i];return t}function formDataToJSON(e){function t(e,r,o,n){let i=e[n++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=n>=e.length;if(i=!i&&utils$1.isArray(o)?o.length:i,s)return utils$1.hasOwnProp(o,i)?o[i]=[o[i],r]:o[i]=r,!a;o[i]&&utils$1.isObject(o[i])||(o[i]=[]);return t(e,r,o[i],n)&&utils$1.isArray(o[i])&&(o[i]=arrayToObject(o[i])),!a}if(utils$1.isFormData(e)&&utils$1.isFunction(e.entries)){const r={};return utils$1.forEachEntry(e,((e,o)=>{t(parsePropPath(e),o,r,0)})),r}return null}function stringifySafely(e,t,r){if(utils$1.isString(e))try{return(t||JSON.parse)(e),utils$1.trim(e)}catch(o){if("SyntaxError"!==o.name)throw o}return(r||JSON.stringify)(e)}const defaults={transitional:transitionalDefaults,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",o=r.indexOf("application/json")>-1,n=utils$1.isObject(e);n&&utils$1.isHTMLForm(e)&&(e=new FormData(e));if(utils$1.isFormData(e))return o?JSON.stringify(formDataToJSON(e)):e;if(utils$1.isArrayBuffer(e)||utils$1.isBuffer(e)||utils$1.isStream(e)||utils$1.isFile(e)||utils$1.isBlob(e)||utils$1.isReadableStream(e))return e;if(utils$1.isArrayBufferView(e))return e.buffer;if(utils$1.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(n){if(r.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(e,this.formSerializer).toString();if((i=utils$1.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return toFormData$1(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return n||o?(t.setContentType("application/json",!1),stringifySafely(e)):e}],transformResponse:[function(e){const t=this.transitional||defaults.transitional,r=t&&t.forcedJSONParsing,o="json"===this.responseType;if(utils$1.isResponse(e)||utils$1.isReadableStream(e))return e;if(e&&utils$1.isString(e)&&(r&&!this.responseType||o)){const r=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e)}catch(n){if(r){if("SyntaxError"===n.name)throw AxiosError$1.from(n,AxiosError$1.ERR_BAD_RESPONSE,this,null,this.response);throw n}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform.classes.FormData,Blob:platform.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};utils$1.forEach(["delete","get","head","post","put","patch"],(e=>{defaults.headers[e]={}}));const ignoreDuplicateOf=utils$1.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),parseHeaders=e=>{const t={};let r,o,n;return e&&e.split("\n").forEach((function(e){n=e.indexOf(":"),r=e.substring(0,n).trim().toLowerCase(),o=e.substring(n+1).trim(),!r||t[r]&&ignoreDuplicateOf[r]||("set-cookie"===r?t[r]?t[r].push(o):t[r]=[o]:t[r]=t[r]?t[r]+", "+o:o)})),t},$internals=Symbol("internals");function normalizeHeader(e){return e&&String(e).trim().toLowerCase()}function normalizeValue(e){return!1===e||null==e?e:utils$1.isArray(e)?e.map(normalizeValue):String(e)}function parseTokens(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=r.exec(e);)t[o[1]]=o[2];return t}const isValidHeaderName=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function matchHeaderValue(e,t,r,o,n){return utils$1.isFunction(o)?o.call(this,t,r):(n&&(t=r),utils$1.isString(t)?utils$1.isString(o)?-1!==t.indexOf(o):utils$1.isRegExp(o)?o.test(t):void 0:void 0)}function formatHeader(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,r)=>t.toUpperCase()+r))}function buildAccessors(e,t){const r=utils$1.toCamelCase(" "+t);["get","set","has"].forEach((o=>{Object.defineProperty(e,o+r,{value:function(e,r,n){return this[o].call(this,t,e,r,n)},configurable:!0})}))}let AxiosHeaders$1=class{constructor(e){e&&this.set(e)}set(e,t,r){const o=this;function n(e,t,r){const n=normalizeHeader(t);if(!n)throw new Error("header name must be a non-empty string");const i=utils$1.findKey(o,n);(!i||void 0===o[i]||!0===r||void 0===r&&!1!==o[i])&&(o[i||t]=normalizeValue(e))}const i=(e,t)=>utils$1.forEach(e,((e,r)=>n(e,r,t)));if(utils$1.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(utils$1.isString(e)&&(e=e.trim())&&!isValidHeaderName(e))i(parseHeaders(e),t);else if(utils$1.isHeaders(e))for(const[a,s]of e.entries())n(s,a,r);else null!=e&&n(t,e,r);return this}get(e,t){if(e=normalizeHeader(e)){const r=utils$1.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return parseTokens(e);if(utils$1.isFunction(t))return t.call(this,e,r);if(utils$1.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=normalizeHeader(e)){const r=utils$1.findKey(this,e);return!(!r||void 0===this[r]||t&&!matchHeaderValue(this,this[r],r,t))}return!1}delete(e,t){const r=this;let o=!1;function n(e){if(e=normalizeHeader(e)){const n=utils$1.findKey(r,e);!n||t&&!matchHeaderValue(r,r[n],n,t)||(delete r[n],o=!0)}}return utils$1.isArray(e)?e.forEach(n):n(e),o}clear(e){const t=Object.keys(this);let r=t.length,o=!1;for(;r--;){const n=t[r];e&&!matchHeaderValue(this,this[n],n,e,!0)||(delete this[n],o=!0)}return o}normalize(e){const t=this,r={};return utils$1.forEach(this,((o,n)=>{const i=utils$1.findKey(r,n);if(i)return t[i]=normalizeValue(o),void delete t[n];const a=e?formatHeader(n):String(n).trim();a!==n&&delete t[n],t[a]=normalizeValue(o),r[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return utils$1.forEach(this,((r,o)=>{null!=r&&!1!==r&&(t[o]=e&&utils$1.isArray(r)?r.join(", "):r)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach((e=>r.set(e))),r}static accessor(e){const t=(this[$internals]=this[$internals]={accessors:{}}).accessors,r=this.prototype;function o(e){const o=normalizeHeader(e);t[o]||(buildAccessors(r,e),t[o]=!0)}return utils$1.isArray(e)?e.forEach(o):o(e),this}};function transformData(e,t){const r=this||defaults,o=t||r,n=AxiosHeaders$1.from(o.headers);let i=o.data;return utils$1.forEach(e,(function(e){i=e.call(r,i,n.normalize(),t?t.status:void 0)})),n.normalize(),i}function isCancel$1(e){return!(!e||!e.__CANCEL__)}function CanceledError$1(e,t,r){AxiosError$1.call(this,null==e?"canceled":e,AxiosError$1.ERR_CANCELED,t,r),this.name="CanceledError"}function settle(e,t,r){const o=r.config.validateStatus;r.status&&o&&!o(r.status)?t(new AxiosError$1("Request failed with status code "+r.status,[AxiosError$1.ERR_BAD_REQUEST,AxiosError$1.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}function parseProtocol(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function speedometer(e,t){e=e||10;const r=new Array(e),o=new Array(e);let n,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const c=Date.now(),u=o[a];n||(n=c),r[i]=s,o[i]=c;let l=a,d=0;for(;l!==i;)d+=r[l++],l%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-n<t)return;const p=u&&c-u;return p?Math.round(1e3*d/p):void 0}}function throttle(e,t){let r,o,n=0,i=1e3/t;const a=(t,i=Date.now())=>{n=i,r=null,o&&(clearTimeout(o),o=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),s=t-n;s>=i?a(e,t):(r=e,o||(o=setTimeout((()=>{o=null,a(r)}),i-s)))},()=>r&&a(r)]}AxiosHeaders$1.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),utils$1.reduceDescriptors(AxiosHeaders$1.prototype,(({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}})),utils$1.freezeMethods(AxiosHeaders$1),utils$1.inherits(CanceledError$1,AxiosError$1,{__CANCEL__:!0});const progressEventReducer=(e,t,r=3)=>{let o=0;const n=speedometer(50,250);return throttle((r=>{const i=r.loaded,a=r.lengthComputable?r.total:void 0,s=i-o,c=n(s);o=i;e({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:c||void 0,estimated:c&&a&&i<=a?(a-i)/c:void 0,event:r,lengthComputable:null!=a,[t?"download":"upload"]:!0})}),r)},progressEventDecorator=(e,t)=>{const r=null!=e;return[o=>t[0]({lengthComputable:r,total:e,loaded:o}),t[1]]},asyncDecorator=e=>(...t)=>utils$1.asap((()=>e(...t))),isURLSameOrigin=platform.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,platform.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(platform.origin),platform.navigator&&/(msie|trident)/i.test(platform.navigator.userAgent)):()=>!0,cookies=platform.hasStandardBrowserEnv?{write(e,t,r,o,n,i){const a=[e+"="+encodeURIComponent(t)];utils$1.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),utils$1.isString(o)&&a.push("path="+o),utils$1.isString(n)&&a.push("domain="+n),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function isAbsoluteURL(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function combineURLs(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function buildFullPath(e,t,r){let o=!isAbsoluteURL(t);return e&&o||0==r?combineURLs(e,t):t}const headersToObject=e=>e instanceof AxiosHeaders$1?{...e}:e;function mergeConfig$1(e,t){t=t||{};const r={};function o(e,t,r,o){return utils$1.isPlainObject(e)&&utils$1.isPlainObject(t)?utils$1.merge.call({caseless:o},e,t):utils$1.isPlainObject(t)?utils$1.merge({},t):utils$1.isArray(t)?t.slice():t}function n(e,t,r,n){return utils$1.isUndefined(t)?utils$1.isUndefined(e)?void 0:o(void 0,e,0,n):o(e,t,0,n)}function i(e,t){if(!utils$1.isUndefined(t))return o(void 0,t)}function a(e,t){return utils$1.isUndefined(t)?utils$1.isUndefined(e)?void 0:o(void 0,e):o(void 0,t)}function s(r,n,i){return i in t?o(r,n):i in e?o(void 0,r):void 0}const c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t,r)=>n(headersToObject(e),headersToObject(t),0,!0)};return utils$1.forEach(Object.keys(Object.assign({},e,t)),(function(o){const i=c[o]||n,a=i(e[o],t[o],o);utils$1.isUndefined(a)&&i!==s||(r[o]=a)})),r}const resolveConfig=e=>{const t=mergeConfig$1({},e);let r,{data:o,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:c}=t;if(t.headers=s=AxiosHeaders$1.from(s),t.url=buildURL(buildFullPath(t.baseURL,t.url),e.params,e.paramsSerializer),c&&s.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),utils$1.isFormData(o))if(platform.hasStandardBrowserEnv||platform.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(r=s.getContentType())){const[e,...t]=r?r.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(platform.hasStandardBrowserEnv&&(n&&utils$1.isFunction(n)&&(n=n(t)),n||!1!==n&&isURLSameOrigin(t.url))){const e=i&&a&&cookies.read(a);e&&s.set(i,e)}return t},isXHRAdapterSupported="undefined"!=typeof XMLHttpRequest,xhrAdapter=isXHRAdapterSupported&&function(e){return new Promise((function(t,r){const o=resolveConfig(e);let n=o.data;const i=AxiosHeaders$1.from(o.headers).normalize();let a,s,c,u,l,{responseType:d,onUploadProgress:p,onDownloadProgress:h}=o;function f(){u&&u(),l&&l(),o.cancelToken&&o.cancelToken.unsubscribe(a),o.signal&&o.signal.removeEventListener("abort",a)}let m=new XMLHttpRequest;function y(){if(!m)return;const o=AxiosHeaders$1.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());settle((function(e){t(e),f()}),(function(e){r(e),f()}),{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:o,config:e,request:m}),m=null}m.open(o.method.toUpperCase(),o.url,!0),m.timeout=o.timeout,"onloadend"in m?m.onloadend=y:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(y)},m.onabort=function(){m&&(r(new AxiosError$1("Request aborted",AxiosError$1.ECONNABORTED,e,m)),m=null)},m.onerror=function(){r(new AxiosError$1("Network Error",AxiosError$1.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const n=o.transitional||transitionalDefaults;o.timeoutErrorMessage&&(t=o.timeoutErrorMessage),r(new AxiosError$1(t,n.clarifyTimeoutError?AxiosError$1.ETIMEDOUT:AxiosError$1.ECONNABORTED,e,m)),m=null},void 0===n&&i.setContentType(null),"setRequestHeader"in m&&utils$1.forEach(i.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),utils$1.isUndefined(o.withCredentials)||(m.withCredentials=!!o.withCredentials),d&&"json"!==d&&(m.responseType=o.responseType),h&&([c,l]=progressEventReducer(h,!0),m.addEventListener("progress",c)),p&&m.upload&&([s,u]=progressEventReducer(p),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",u)),(o.cancelToken||o.signal)&&(a=t=>{m&&(r(!t||t.type?new CanceledError$1(null,e,m):t),m.abort(),m=null)},o.cancelToken&&o.cancelToken.subscribe(a),o.signal&&(o.signal.aborted?a():o.signal.addEventListener("abort",a)));const g=parseProtocol(o.url);g&&-1===platform.protocols.indexOf(g)?r(new AxiosError$1("Unsupported protocol "+g+":",AxiosError$1.ERR_BAD_REQUEST,e)):m.send(n||null)}))},composeSignals=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,o=new AbortController;const n=function(e){if(!r){r=!0,a();const t=e instanceof Error?e:this.reason;o.abort(t instanceof AxiosError$1?t:new CanceledError$1(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{i=null,n(new AxiosError$1(`timeout ${t} of ms exceeded`,AxiosError$1.ETIMEDOUT))}),t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(n):e.removeEventListener("abort",n)})),e=null)};e.forEach((e=>e.addEventListener("abort",n)));const{signal:s}=o;return s.unsubscribe=()=>utils$1.asap(a),s}},streamChunk=function*(e,t){let r=e.byteLength;if(r<t)return void(yield e);let o,n=0;for(;n<r;)o=n+t,yield e.slice(n,o),n=o},readBytes=async function*(e,t){for await(const r of readStream(e))yield*streamChunk(r,t)},readStream=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}},trackStream=(e,t,r,o)=>{const n=readBytes(e,t);let i,a=0,s=e=>{i||(i=!0,o&&o(e))};return new ReadableStream({async pull(e){try{const{done:t,value:o}=await n.next();if(t)return s(),void e.close();let i=o.byteLength;if(r){let e=a+=i;r(e)}e.enqueue(new Uint8Array(o))}catch(t){throw s(t),t}},cancel:e=>(s(e),n.return())},{highWaterMark:2})},isFetchSupported="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,isReadableStreamSupported=isFetchSupported&&"function"==typeof ReadableStream,encodeText=isFetchSupported&&("function"==typeof TextEncoder?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),test=(e,...t)=>{try{return!!e(...t)}catch(r){return!1}},supportsRequestStream=isReadableStreamSupported&&test((()=>{let e=!1;const t=new Request(platform.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),DEFAULT_CHUNK_SIZE=65536,supportsResponseStream=isReadableStreamSupported&&test((()=>utils$1.isReadableStream(new Response("").body))),resolvers={stream:supportsResponseStream&&(e=>e.body)};isFetchSupported&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach((t=>{!resolvers[t]&&(resolvers[t]=utils$1.isFunction(e[t])?e=>e[t]():(e,r)=>{throw new AxiosError$1(`Response type '${t}' is not supported`,AxiosError$1.ERR_NOT_SUPPORT,r)})}))})(new Response);const getBodyLength=async e=>{if(null==e)return 0;if(utils$1.isBlob(e))return e.size;if(utils$1.isSpecCompliantForm(e)){const t=new Request(platform.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return utils$1.isArrayBufferView(e)||utils$1.isArrayBuffer(e)?e.byteLength:(utils$1.isURLSearchParams(e)&&(e+=""),utils$1.isString(e)?(await encodeText(e)).byteLength:void 0)},resolveBodyLength=async(e,t)=>{const r=utils$1.toFiniteNumber(e.getContentLength());return null==r?getBodyLength(t):r},fetchAdapter=isFetchSupported&&(async e=>{let{url:t,method:r,data:o,signal:n,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:c,responseType:u,headers:l,withCredentials:d="same-origin",fetchOptions:p}=resolveConfig(e);u=u?(u+"").toLowerCase():"text";let h,f=composeSignals([n,i&&i.toAbortSignal()],a);const m=f&&f.unsubscribe&&(()=>{f.unsubscribe()});let y;try{if(c&&supportsRequestStream&&"get"!==r&&"head"!==r&&0!==(y=await resolveBodyLength(l,o))){let e,r=new Request(t,{method:"POST",body:o,duplex:"half"});if(utils$1.isFormData(o)&&(e=r.headers.get("content-type"))&&l.setContentType(e),r.body){const[e,t]=progressEventDecorator(y,progressEventReducer(asyncDecorator(c)));o=trackStream(r.body,DEFAULT_CHUNK_SIZE,e,t)}}utils$1.isString(d)||(d=d?"include":"omit");const n="credentials"in Request.prototype;h=new Request(t,{...p,signal:f,method:r.toUpperCase(),headers:l.normalize().toJSON(),body:o,duplex:"half",credentials:n?d:void 0});let i=await fetch(h);const a=supportsResponseStream&&("stream"===u||"response"===u);if(supportsResponseStream&&(s||a&&m)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=i[t]}));const t=utils$1.toFiniteNumber(i.headers.get("content-length")),[r,o]=s&&progressEventDecorator(t,progressEventReducer(asyncDecorator(s),!0))||[];i=new Response(trackStream(i.body,DEFAULT_CHUNK_SIZE,r,(()=>{o&&o(),m&&m()})),e)}u=u||"text";let g=await resolvers[utils$1.findKey(resolvers,u)||"text"](i,e);return!a&&m&&m(),await new Promise(((t,r)=>{settle(t,r,{data:g,headers:AxiosHeaders$1.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:h})}))}catch(g){if(m&&m(),g&&"TypeError"===g.name&&/fetch/i.test(g.message))throw Object.assign(new AxiosError$1("Network Error",AxiosError$1.ERR_NETWORK,e,h),{cause:g.cause||g});throw AxiosError$1.from(g,g&&g.code,e,h)}}),knownAdapters={http:httpAdapter,xhr:xhrAdapter,fetch:fetchAdapter};utils$1.forEach(knownAdapters,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(r){}Object.defineProperty(e,"adapterName",{value:t})}}));const renderReason=e=>`- ${e}`,isResolvedHandle=e=>utils$1.isFunction(e)||null===e||!1===e,adapters={getAdapter:e=>{e=utils$1.isArray(e)?e:[e];const{length:t}=e;let r,o;const n={};for(let i=0;i<t;i++){let t;if(r=e[i],o=r,!isResolvedHandle(r)&&(o=knownAdapters[(t=String(r)).toLowerCase()],void 0===o))throw new AxiosError$1(`Unknown adapter '${t}'`);if(o)break;n[t||"#"+i]=o}if(!o){const e=Object.entries(n).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new AxiosError$1("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(renderReason).join("\n"):" "+renderReason(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return o},adapters:knownAdapters};function throwIfCancellationRequested(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new CanceledError$1(null,e)}function dispatchRequest(e){throwIfCancellationRequested(e),e.headers=AxiosHeaders$1.from(e.headers),e.data=transformData.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return adapters.getAdapter(e.adapter||defaults.adapter)(e).then((function(t){return throwIfCancellationRequested(e),t.data=transformData.call(e,e.transformResponse,t),t.headers=AxiosHeaders$1.from(t.headers),t}),(function(t){return isCancel$1(t)||(throwIfCancellationRequested(e),t&&t.response&&(t.response.data=transformData.call(e,e.transformResponse,t.response),t.response.headers=AxiosHeaders$1.from(t.response.headers))),Promise.reject(t)}))}const VERSION$1="1.8.1",validators$1={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{validators$1[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));const deprecatedWarnings={};function assertOptions(e,t,r){if("object"!=typeof e)throw new AxiosError$1("options must be an object",AxiosError$1.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let n=o.length;for(;n-- >0;){const i=o[n],a=t[i];if(a){const t=e[i],r=void 0===t||a(t,i,e);if(!0!==r)throw new AxiosError$1("option "+i+" must be "+r,AxiosError$1.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new AxiosError$1("Unknown option "+i,AxiosError$1.ERR_BAD_OPTION)}}validators$1.transitional=function(e,t,r){function o(e,t){return"[Axios v"+VERSION$1+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,n,i)=>{if(!1===e)throw new AxiosError$1(o(n," has been removed"+(t?" in "+t:"")),AxiosError$1.ERR_DEPRECATED);return t&&!deprecatedWarnings[n]&&(deprecatedWarnings[n]=!0,console.warn(o(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,n,i)}},validators$1.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};const validator={assertOptions:assertOptions,validators:validators$1},validators=validator.validators;let Axios$1=class{constructor(e){this.defaults=e,this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}async request(e,t){try{return await this._request(e,t)}catch(r){if(r instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{r.stack?t&&!String(r.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(r.stack+="\n"+t):r.stack=t}catch(o){}}throw r}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=mergeConfig$1(this.defaults,t);const{transitional:r,paramsSerializer:o,headers:n}=t;void 0!==r&&validator.assertOptions(r,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),null!=o&&(utils$1.isFunction(o)?t.paramsSerializer={serialize:o}:validator.assertOptions(o,{encode:validators.function,serialize:validators.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),validator.assertOptions(t,{baseUrl:validators.spelling("baseURL"),withXsrfToken:validators.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=n&&utils$1.merge(n.common,n[t.method]);n&&utils$1.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete n[e]})),t.headers=AxiosHeaders$1.concat(i,n);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const c=[];let u;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let l,d=0;if(!s){const e=[dispatchRequest.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,c),l=e.length,u=Promise.resolve(t);d<l;)u=u.then(e[d++],e[d++]);return u}l=a.length;let p=t;for(d=0;d<l;){const e=a[d++],t=a[d++];try{p=e(p)}catch(h){t.call(this,h);break}}try{u=dispatchRequest.call(this,p)}catch(h){return Promise.reject(h)}for(d=0,l=c.length;d<l;)u=u.then(c[d++],c[d++]);return u}getUri(e){return buildURL(buildFullPath((e=mergeConfig$1(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};utils$1.forEach(["delete","get","head","options"],(function(e){Axios$1.prototype[e]=function(t,r){return this.request(mergeConfig$1(r||{},{method:e,url:t,data:(r||{}).data}))}})),utils$1.forEach(["post","put","patch"],(function(e){function t(t){return function(r,o,n){return this.request(mergeConfig$1(n||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:o}))}}Axios$1.prototype[e]=t(),Axios$1.prototype[e+"Form"]=t(!0)}));let CancelToken$1=class e{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const r=this;this.promise.then((e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null})),this.promise.then=e=>{let t;const o=new Promise((e=>{r.subscribe(e),t=e})).then(e);return o.cancel=function(){r.unsubscribe(t)},o},e((function(e,o,n){r.reason||(r.reason=new CanceledError$1(e,o,n),t(r.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e((function(e){t=e})),cancel:t}}};function spread$1(e){return function(t){return e.apply(null,t)}}function isAxiosError$1(e){return utils$1.isObject(e)&&!0===e.isAxiosError}const HttpStatusCode$1={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};function createInstance(e){const t=new Axios$1(e),r=bind(Axios$1.prototype.request,t);return utils$1.extend(r,Axios$1.prototype,t,{allOwnKeys:!0}),utils$1.extend(r,t,null,{allOwnKeys:!0}),r.create=function(t){return createInstance(mergeConfig$1(e,t))},r}Object.entries(HttpStatusCode$1).forEach((([e,t])=>{HttpStatusCode$1[t]=e}));const axios=createInstance(defaults);axios.Axios=Axios$1,axios.CanceledError=CanceledError$1,axios.CancelToken=CancelToken$1,axios.isCancel=isCancel$1,axios.VERSION=VERSION$1,axios.toFormData=toFormData$1,axios.AxiosError=AxiosError$1,axios.Cancel=axios.CanceledError,axios.all=function(e){return Promise.all(e)},axios.spread=spread$1,axios.isAxiosError=isAxiosError$1,axios.mergeConfig=mergeConfig$1,axios.AxiosHeaders=AxiosHeaders$1,axios.formToJSON=e=>formDataToJSON(utils$1.isHTMLForm(e)?new FormData(e):e),axios.getAdapter=adapters.getAdapter,axios.HttpStatusCode=HttpStatusCode$1,axios.default=axios;const{Axios:Axios,AxiosError:AxiosError,CanceledError:CanceledError,isCancel:isCancel,CancelToken:CancelToken,VERSION:VERSION,all:all,Cancel:Cancel,isAxiosError:isAxiosError,spread:spread,toFormData:toFormData,AxiosHeaders:AxiosHeaders,HttpStatusCode:HttpStatusCode,formToJSON:formToJSON,getAdapter:getAdapter,mergeConfig:mergeConfig}=axios;class Registration{async checkRegistrationStatus(e,t,r,o){try{const n=await fetch(`${r}/api/request-confirm`,{method:"POST",headers:{"Content-Type":"application/json","X-Network":t},body:JSON.stringify({transaction_id:e})});if(!n.ok){const e=`Failed to confirm registration: ${n.statusText}`;throw o&&o.error(e),new Error(e)}return await n.json()}catch(n){throw o&&o.error(`Error checking registration status: ${n.message}`),n}}async waitForRegistrationConfirmation(e,t,r,o=60,n=2e3,i){let a=0;for(;a<o;){i&&i.info(`Checking registration status. Attempt ${a+1}/${o}`);const s=await this.checkRegistrationStatus(e,t,r,i);if("success"===s.status)return i&&i.info("Registration confirmed successfully"),!0;if("failed"===s.status)throw i&&i.error("Registration confirmation failed"),new Error("Registration confirmation failed");i&&i.info(`Registration still pending. Waiting ${n}ms before next attempt`),await new Promise((e=>setTimeout(e,n))),a++}return i&&i.warn(`Registration not confirmed after ${o} attempts`),!1}async executeRegistration(e,t,r,o,n,i={tags:[]}){var a;try{n&&n.info("Registering agent with guarded registry");const s=await fetch(`${o}/api/request-register`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"*/*","Accept-Language":"en;q=0.5",Origin:o,Referer:`${o}/`,"X-Network":r},body:JSON.stringify({accountId:e,inboundTopicId:t,metadata:i})}),c=await s.json();return s.ok?(n&&n.info(`Created new registration request. Transaction ID: ${c.transaction_id}`),{transactionId:c.transaction_id,transaction:c.transaction,success:!0}):(null==(a=c.details)?void 0:a.length)>0?{validationErrors:c.details,error:c.error||"Validation failed",success:!1}:{error:c.error||"Failed to register agent",success:!1}}catch(s){return{error:`Error during registration request: ${s.message}`,success:!1}}}async findRegistrations(e={},t="https://hcs-10.hashgraphonline.com"){var r;try{const o=new URLSearchParams;null==(r=e.tags)||r.forEach((e=>o.append("tags",e))),e.accountId&&o.append("accountId",e.accountId),e.network&&o.append("network",e.network);const n=await fetch(`${t}/api/registrations?${o}`,{headers:{Accept:"*/*","Accept-Language":"en;q=0.5",Origin:t,Referer:`${t}/`}});if(!n.ok){return{registrations:[],error:await n.text()||"Failed to fetch registrations",success:!1}}const i=await n.json();return i.error?{registrations:[],error:i.error,success:!1}:{registrations:i.registrations||[],success:!0}}catch(o){return{registrations:[],error:`Error fetching registrations: ${o.message}`,success:!1}}}}var lib={},proto={};Object.defineProperty(proto,"__esModule",{value:!0}),proto.proto=proto.google=proto.default=proto.com=void 0;var $protobuf$1=_interopRequireWildcard$1(minimal);function _getRequireWildcardCache$1(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(_getRequireWildcardCache$1=function(e){return e?r:t})(e)}function _interopRequireWildcard$1(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=_getRequireWildcardCache$1(t);if(r&&r.has(e))return r.get(e);var o={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var a=n?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(o,i,a):o[i]=e[i]}return o.default=e,r&&r.set(e,o),o}const $Reader=$protobuf$1.Reader,$Writer=$protobuf$1.Writer,$util=$protobuf$1.util,$root=proto.default=$protobuf$1.roots.hashgraph||($protobuf$1.roots.hashgraph={});proto.com=$root.com=(()=>{const e={};return e.hedera=function(){const e={};return e.mirror=function(){const e={};return e.api=function(){const e={};return e.proto=function(){const e={};return e.ConsensusTopicQuery=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.topicID=null,e.prototype.consensusStartTime=null,e.prototype.consensusEndTime=null,e.prototype.limit=$util.Long?$util.Long.fromBits(0,0,!0):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.topicID&&Object.hasOwnProperty.call(e,"topicID")&&$root.proto.TopicID.encode(e.topicID,t.uint32(10).fork()).ldelim(),null!=e.consensusStartTime&&Object.hasOwnProperty.call(e,"consensusStartTime")&&$root.proto.Timestamp.encode(e.consensusStartTime,t.uint32(18).fork()).ldelim(),null!=e.consensusEndTime&&Object.hasOwnProperty.call(e,"consensusEndTime")&&$root.proto.Timestamp.encode(e.consensusEndTime,t.uint32(26).fork()).ldelim(),null!=e.limit&&Object.hasOwnProperty.call(e,"limit")&&t.uint32(32).uint64(e.limit),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.com.hedera.mirror.api.proto.ConsensusTopicQuery;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.topicID=$root.proto.TopicID.decode(e,e.uint32());break;case 2:o.consensusStartTime=$root.proto.Timestamp.decode(e,e.uint32());break;case 3:o.consensusEndTime=$root.proto.Timestamp.decode(e,e.uint32());break;case 4:o.limit=e.uint64();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.hedera.mirror.api.proto.ConsensusTopicQuery"},e}(),e.ConsensusTopicResponse=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.consensusTimestamp=null,e.prototype.message=$util.newBuffer([]),e.prototype.runningHash=$util.newBuffer([]),e.prototype.sequenceNumber=$util.Long?$util.Long.fromBits(0,0,!0):0,e.prototype.runningHashVersion=$util.Long?$util.Long.fromBits(0,0,!0):0,e.prototype.chunkInfo=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.consensusTimestamp&&Object.hasOwnProperty.call(e,"consensusTimestamp")&&$root.proto.Timestamp.encode(e.consensusTimestamp,t.uint32(10).fork()).ldelim(),null!=e.message&&Object.hasOwnProperty.call(e,"message")&&t.uint32(18).bytes(e.message),null!=e.runningHash&&Object.hasOwnProperty.call(e,"runningHash")&&t.uint32(26).bytes(e.runningHash),null!=e.sequenceNumber&&Object.hasOwnProperty.call(e,"sequenceNumber")&&t.uint32(32).uint64(e.sequenceNumber),null!=e.runningHashVersion&&Object.hasOwnProperty.call(e,"runningHashVersion")&&t.uint32(40).uint64(e.runningHashVersion),null!=e.chunkInfo&&Object.hasOwnProperty.call(e,"chunkInfo")&&$root.proto.ConsensusMessageChunkInfo.encode(e.chunkInfo,t.uint32(50).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.com.hedera.mirror.api.proto.ConsensusTopicResponse;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.consensusTimestamp=$root.proto.Timestamp.decode(e,e.uint32());break;case 2:o.message=e.bytes();break;case 3:o.runningHash=e.bytes();break;case 4:o.sequenceNumber=e.uint64();break;case 5:o.runningHashVersion=e.uint64();break;case 6:o.chunkInfo=$root.proto.ConsensusMessageChunkInfo.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.hedera.mirror.api.proto.ConsensusTopicResponse"},e}(),e.ConsensusService=function(){function e(e,t,r){$protobuf$1.rpc.Service.call(this,e,t,r)}return(e.prototype=Object.create($protobuf$1.rpc.Service.prototype)).constructor=e,e.create=function(e,t,r){return new this(e,t,r)},Object.defineProperty(e.prototype.subscribeTopic=function e(t,r){return this.rpcCall(e,$root.com.hedera.mirror.api.proto.ConsensusTopicQuery,$root.com.hedera.mirror.api.proto.ConsensusTopicResponse,t,r)},"name",{value:"subscribeTopic"}),e}(),e.AddressBookQuery=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.fileId=null,e.prototype.limit=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.fileId&&Object.hasOwnProperty.call(e,"fileId")&&$root.proto.FileID.encode(e.fileId,t.uint32(10).fork()).ldelim(),null!=e.limit&&Object.hasOwnProperty.call(e,"limit")&&t.uint32(16).int32(e.limit),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.com.hedera.mirror.api.proto.AddressBookQuery;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.fileId=$root.proto.FileID.decode(e,e.uint32());break;case 2:o.limit=e.int32();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.hedera.mirror.api.proto.AddressBookQuery"},e}(),e.NetworkService=function(){function e(e,t,r){$protobuf$1.rpc.Service.call(this,e,t,r)}return(e.prototype=Object.create($protobuf$1.rpc.Service.prototype)).constructor=e,e.create=function(e,t,r){return new this(e,t,r)},Object.defineProperty(e.prototype.getNodes=function e(t,r){return this.rpcCall(e,$root.com.hedera.mirror.api.proto.AddressBookQuery,$root.proto.NodeAddress,t,r)},"name",{value:"getNodes"}),e}(),e}(),e}(),e}(),e.hapi=function(){const e={};return e.node=function(){const e={};return e.addressbook=function(){const e={};return e.NodeCreateTransactionBody=function(){function e(e){if(this.gossipEndpoint=[],this.serviceEndpoint=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.accountId=null,e.prototype.description="",e.prototype.gossipEndpoint=$util.emptyArray,e.prototype.serviceEndpoint=$util.emptyArray,e.prototype.gossipCaCertificate=$util.newBuffer([]),e.prototype.grpcCertificateHash=$util.newBuffer([]),e.prototype.adminKey=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.accountId&&Object.hasOwnProperty.call(e,"accountId")&&$root.proto.AccountID.encode(e.accountId,t.uint32(10).fork()).ldelim(),null!=e.description&&Object.hasOwnProperty.call(e,"description")&&t.uint32(18).string(e.description),null!=e.gossipEndpoint&&e.gossipEndpoint.length)for(var r=0;r<e.gossipEndpoint.length;++r)$root.proto.ServiceEndpoint.encode(e.gossipEndpoint[r],t.uint32(26).fork()).ldelim();if(null!=e.serviceEndpoint&&e.serviceEndpoint.length)for(r=0;r<e.serviceEndpoint.length;++r)$root.proto.ServiceEndpoint.encode(e.serviceEndpoint[r],t.uint32(34).fork()).ldelim();return null!=e.gossipCaCertificate&&Object.hasOwnProperty.call(e,"gossipCaCertificate")&&t.uint32(42).bytes(e.gossipCaCertificate),null!=e.grpcCertificateHash&&Object.hasOwnProperty.call(e,"grpcCertificateHash")&&t.uint32(50).bytes(e.grpcCertificateHash),null!=e.adminKey&&Object.hasOwnProperty.call(e,"adminKey")&&$root.proto.Key.encode(e.adminKey,t.uint32(58).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.com.hedera.hapi.node.addressbook.NodeCreateTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.accountId=$root.proto.AccountID.decode(e,e.uint32());break;case 2:o.description=e.string();break;case 3:o.gossipEndpoint&&o.gossipEndpoint.length||(o.gossipEndpoint=[]),o.gossipEndpoint.push($root.proto.ServiceEndpoint.decode(e,e.uint32()));break;case 4:o.serviceEndpoint&&o.serviceEndpoint.length||(o.serviceEndpoint=[]),o.serviceEndpoint.push($root.proto.ServiceEndpoint.decode(e,e.uint32()));break;case 5:o.gossipCaCertificate=e.bytes();break;case 6:o.grpcCertificateHash=e.bytes();break;case 7:o.adminKey=$root.proto.Key.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.hedera.hapi.node.addressbook.NodeCreateTransactionBody"},e}(),e.NodeUpdateTransactionBody=function(){function e(e){if(this.gossipEndpoint=[],this.serviceEndpoint=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.nodeId=$util.Long?$util.Long.fromBits(0,0,!0):0,e.prototype.accountId=null,e.prototype.description=null,e.prototype.gossipEndpoint=$util.emptyArray,e.prototype.serviceEndpoint=$util.emptyArray,e.prototype.gossipCaCertificate=null,e.prototype.grpcCertificateHash=null,e.prototype.adminKey=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.nodeId&&Object.hasOwnProperty.call(e,"nodeId")&&t.uint32(8).uint64(e.nodeId),null!=e.accountId&&Object.hasOwnProperty.call(e,"accountId")&&$root.proto.AccountID.encode(e.accountId,t.uint32(18).fork()).ldelim(),null!=e.description&&Object.hasOwnProperty.call(e,"description")&&$root.google.protobuf.StringValue.encode(e.description,t.uint32(26).fork()).ldelim(),null!=e.gossipEndpoint&&e.gossipEndpoint.length)for(var r=0;r<e.gossipEndpoint.length;++r)$root.proto.ServiceEndpoint.encode(e.gossipEndpoint[r],t.uint32(34).fork()).ldelim();if(null!=e.serviceEndpoint&&e.serviceEndpoint.length)for(r=0;r<e.serviceEndpoint.length;++r)$root.proto.ServiceEndpoint.encode(e.serviceEndpoint[r],t.uint32(42).fork()).ldelim();return null!=e.gossipCaCertificate&&Object.hasOwnProperty.call(e,"gossipCaCertificate")&&$root.google.protobuf.BytesValue.encode(e.gossipCaCertificate,t.uint32(50).fork()).ldelim(),null!=e.grpcCertificateHash&&Object.hasOwnProperty.call(e,"grpcCertificateHash")&&$root.google.protobuf.BytesValue.encode(e.grpcCertificateHash,t.uint32(58).fork()).ldelim(),null!=e.adminKey&&Object.hasOwnProperty.call(e,"adminKey")&&$root.proto.Key.encode(e.adminKey,t.uint32(66).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.com.hedera.hapi.node.addressbook.NodeUpdateTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.nodeId=e.uint64();break;case 2:o.accountId=$root.proto.AccountID.decode(e,e.uint32());break;case 3:o.description=$root.google.protobuf.StringValue.decode(e,e.uint32());break;case 4:o.gossipEndpoint&&o.gossipEndpoint.length||(o.gossipEndpoint=[]),o.gossipEndpoint.push($root.proto.ServiceEndpoint.decode(e,e.uint32()));break;case 5:o.serviceEndpoint&&o.serviceEndpoint.length||(o.serviceEndpoint=[]),o.serviceEndpoint.push($root.proto.ServiceEndpoint.decode(e,e.uint32()));break;case 6:o.gossipCaCertificate=$root.google.protobuf.BytesValue.decode(e,e.uint32());break;case 7:o.grpcCertificateHash=$root.google.protobuf.BytesValue.decode(e,e.uint32());break;case 8:o.adminKey=$root.proto.Key.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.hedera.hapi.node.addressbook.NodeUpdateTransactionBody"},e}(),e.NodeDeleteTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.nodeId=$util.Long?$util.Long.fromBits(0,0,!0):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.nodeId&&Object.hasOwnProperty.call(e,"nodeId")&&t.uint32(8).uint64(e.nodeId),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.com.hedera.hapi.node.addressbook.NodeDeleteTransactionBody;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.nodeId=e.uint64();else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.hedera.hapi.node.addressbook.NodeDeleteTransactionBody"},e}(),e}(),e.state=function(){const e={};return e.history=function(){const e={};return e.ProofKeySet=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.adoptionTime=null,e.prototype.key=$util.newBuffer([]),e.prototype.nextKey=$util.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.adoptionTime&&Object.hasOwnProperty.call(e,"adoptionTime")&&$root.proto.Timestamp.encode(e.adoptionTime,t.uint32(18).fork()).ldelim(),null!=e.key&&Object.hasOwnProperty.call(e,"key")&&t.uint32(26).bytes(e.key),null!=e.nextKey&&Object.hasOwnProperty.call(e,"nextKey")&&t.uint32(34).bytes(e.nextKey),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.com.hedera.hapi.node.state.history.ProofKeySet;e.pos<r;){var n=e.uint32();switch(n>>>3){case 2:o.adoptionTime=$root.proto.Timestamp.decode(e,e.uint32());break;case 3:o.key=e.bytes();break;case 4:o.nextKey=e.bytes();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.hedera.hapi.node.state.history.ProofKeySet"},e}(),e.ProofKey=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.nodeId=$util.Long?$util.Long.fromBits(0,0,!0):0,e.prototype.key=$util.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.nodeId&&Object.hasOwnProperty.call(e,"nodeId")&&t.uint32(8).uint64(e.nodeId),null!=e.key&&Object.hasOwnProperty.call(e,"key")&&t.uint32(18).bytes(e.key),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.com.hedera.hapi.node.state.history.ProofKey;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.nodeId=e.uint64();break;case 2:o.key=e.bytes();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.hedera.hapi.node.state.history.ProofKey"},e}(),e.History=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.addressBookHash=$util.newBuffer([]),e.prototype.metadata=$util.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.addressBookHash&&Object.hasOwnProperty.call(e,"addressBookHash")&&t.uint32(10).bytes(e.addressBookHash),null!=e.metadata&&Object.hasOwnProperty.call(e,"metadata")&&t.uint32(18).bytes(e.metadata),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.com.hedera.hapi.node.state.history.History;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.addressBookHash=e.bytes();break;case 2:o.metadata=e.bytes();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.hedera.hapi.node.state.history.History"},e}(),e.HistoryProof=function(){function e(e){if(this.targetProofKeys=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.sourceAddressBookHash=$util.newBuffer([]),e.prototype.targetProofKeys=$util.emptyArray,e.prototype.targetHistory=null,e.prototype.proof=$util.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.sourceAddressBookHash&&Object.hasOwnProperty.call(e,"sourceAddressBookHash")&&t.uint32(10).bytes(e.sourceAddressBookHash),null!=e.targetProofKeys&&e.targetProofKeys.length)for(var r=0;r<e.targetProofKeys.length;++r)$root.com.hedera.hapi.node.state.history.ProofKey.encode(e.targetProofKeys[r],t.uint32(18).fork()).ldelim();return null!=e.targetHistory&&Object.hasOwnProperty.call(e,"targetHistory")&&$root.com.hedera.hapi.node.state.history.History.encode(e.targetHistory,t.uint32(26).fork()).ldelim(),null!=e.proof&&Object.hasOwnProperty.call(e,"proof")&&t.uint32(34).bytes(e.proof),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.com.hedera.hapi.node.state.history.HistoryProof;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.sourceAddressBookHash=e.bytes();break;case 2:o.targetProofKeys&&o.targetProofKeys.length||(o.targetProofKeys=[]),o.targetProofKeys.push($root.com.hedera.hapi.node.state.history.ProofKey.decode(e,e.uint32()));break;case 3:o.targetHistory=$root.com.hedera.hapi.node.state.history.History.decode(e,e.uint32());break;case 4:o.proof=e.bytes();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.hedera.hapi.node.state.history.HistoryProof"},e}(),e.HistoryProofConstruction=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.constructionId=$util.Long?$util.Long.fromBits(0,0,!0):0,e.prototype.sourceRosterHash=$util.newBuffer([]),e.prototype.sourceProof=null,e.prototype.targetRosterHash=$util.newBuffer([]),e.prototype.gracePeriodEndTime=null,e.prototype.assemblyStartTime=null,e.prototype.targetProof=null,Object.defineProperty(e.prototype,"proofState",{get:$util.oneOfGetter(t=["gracePeriodEndTime","assemblyStartTime","targetProof"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.constructionId&&Object.hasOwnProperty.call(e,"constructionId")&&t.uint32(8).uint64(e.constructionId),null!=e.sourceRosterHash&&Object.hasOwnProperty.call(e,"sourceRosterHash")&&t.uint32(18).bytes(e.sourceRosterHash),null!=e.sourceProof&&Object.hasOwnProperty.call(e,"sourceProof")&&$root.com.hedera.hapi.node.state.history.HistoryProof.encode(e.sourceProof,t.uint32(26).fork()).ldelim(),null!=e.targetRosterHash&&Object.hasOwnProperty.call(e,"targetRosterHash")&&t.uint32(34).bytes(e.targetRosterHash),null!=e.gracePeriodEndTime&&Object.hasOwnProperty.call(e,"gracePeriodEndTime")&&$root.proto.Timestamp.encode(e.gracePeriodEndTime,t.uint32(42).fork()).ldelim(),null!=e.assemblyStartTime&&Object.hasOwnProperty.call(e,"assemblyStartTime")&&$root.proto.Timestamp.encode(e.assemblyStartTime,t.uint32(50).fork()).ldelim(),null!=e.targetProof&&Object.hasOwnProperty.call(e,"targetProof")&&$root.com.hedera.hapi.node.state.history.HistoryProof.encode(e.targetProof,t.uint32(58).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.com.hedera.hapi.node.state.history.HistoryProofConstruction;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.constructionId=e.uint64();break;case 2:o.sourceRosterHash=e.bytes();break;case 3:o.sourceProof=$root.com.hedera.hapi.node.state.history.HistoryProof.decode(e,e.uint32());break;case 4:o.targetRosterHash=e.bytes();break;case 5:o.gracePeriodEndTime=$root.proto.Timestamp.decode(e,e.uint32());break;case 6:o.assemblyStartTime=$root.proto.Timestamp.decode(e,e.uint32());break;case 7:o.targetProof=$root.com.hedera.hapi.node.state.history.HistoryProof.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.hedera.hapi.node.state.history.HistoryProofConstruction"},e}(),e.ConstructionNodeId=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.constructionId=$util.Long?$util.Long.fromBits(0,0,!0):0,e.prototype.nodeId=$util.Long?$util.Long.fromBits(0,0,!0):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.constructionId&&Object.hasOwnProperty.call(e,"constructionId")&&t.uint32(8).uint64(e.constructionId),null!=e.nodeId&&Object.hasOwnProperty.call(e,"nodeId")&&t.uint32(16).uint64(e.nodeId),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.com.hedera.hapi.node.state.history.ConstructionNodeId;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.constructionId=e.uint64();break;case 2:o.nodeId=e.uint64();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.hedera.hapi.node.state.history.ConstructionNodeId"},e}(),e.HistoryProofVote=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.proof=null,e.prototype.congruentNodeId=null,Object.defineProperty(e.prototype,"vote",{get:$util.oneOfGetter(t=["proof","congruentNodeId"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.proof&&Object.hasOwnProperty.call(e,"proof")&&$root.com.hedera.hapi.node.state.history.HistoryProof.encode(e.proof,t.uint32(10).fork()).ldelim(),null!=e.congruentNodeId&&Object.hasOwnProperty.call(e,"congruentNodeId")&&t.uint32(16).uint64(e.congruentNodeId),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.com.hedera.hapi.node.state.history.HistoryProofVote;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.proof=$root.com.hedera.hapi.node.state.history.HistoryProof.decode(e,e.uint32());break;case 2:o.congruentNodeId=e.uint64();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.hedera.hapi.node.state.history.HistoryProofVote"},e}(),e.HistorySignature=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.history=null,e.prototype.signature=$util.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.history&&Object.hasOwnProperty.call(e,"history")&&$root.com.hedera.hapi.node.state.history.History.encode(e.history,t.uint32(10).fork()).ldelim(),null!=e.signature&&Object.hasOwnProperty.call(e,"signature")&&t.uint32(18).bytes(e.signature),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.com.hedera.hapi.node.state.history.HistorySignature;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.history=$root.com.hedera.hapi.node.state.history.History.decode(e,e.uint32());break;case 2:o.signature=e.bytes();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.hedera.hapi.node.state.history.HistorySignature"},e}(),e.RecordedHistorySignature=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.signingTime=null,e.prototype.historySignature=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.signingTime&&Object.hasOwnProperty.call(e,"signingTime")&&$root.proto.Timestamp.encode(e.signingTime,t.uint32(10).fork()).ldelim(),null!=e.historySignature&&Object.hasOwnProperty.call(e,"historySignature")&&$root.com.hedera.hapi.node.state.history.HistorySignature.encode(e.historySignature,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.com.hedera.hapi.node.state.history.RecordedHistorySignature;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.signingTime=$root.proto.Timestamp.decode(e,e.uint32());break;case 2:o.historySignature=$root.com.hedera.hapi.node.state.history.HistorySignature.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.hedera.hapi.node.state.history.RecordedHistorySignature"},e}(),e}(),e}(),e}(),e.platform=function(){const e={};return e.event=function(){const e={};return e.EventConsensusData=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.consensusTimestamp=null,e.prototype.consensusOrder=$util.Long?$util.Long.fromBits(0,0,!0):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.consensusTimestamp&&Object.hasOwnProperty.call(e,"consensusTimestamp")&&$root.proto.Timestamp.encode(e.consensusTimestamp,t.uint32(10).fork()).ldelim(),null!=e.consensusOrder&&Object.hasOwnProperty.call(e,"consensusOrder")&&t.uint32(16).uint64(e.consensusOrder),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.com.hedera.hapi.platform.event.EventConsensusData;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.consensusTimestamp=$root.proto.Timestamp.decode(e,e.uint32());break;case 2:o.consensusOrder=e.uint64();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.hedera.hapi.platform.event.EventConsensusData"},e}(),e.EventCore=function(){function e(e){if(this.parents=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.creatorNodeId=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.birthRound=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.timeCreated=null,e.prototype.parents=$util.emptyArray,e.prototype.version=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.creatorNodeId&&Object.hasOwnProperty.call(e,"creatorNodeId")&&t.uint32(8).int64(e.creatorNodeId),null!=e.birthRound&&Object.hasOwnProperty.call(e,"birthRound")&&t.uint32(16).int64(e.birthRound),null!=e.timeCreated&&Object.hasOwnProperty.call(e,"timeCreated")&&$root.proto.Timestamp.encode(e.timeCreated,t.uint32(26).fork()).ldelim(),null!=e.parents&&e.parents.length)for(var r=0;r<e.parents.length;++r)$root.com.hedera.hapi.platform.event.EventDescriptor.encode(e.parents[r],t.uint32(34).fork()).ldelim();return null!=e.version&&Object.hasOwnProperty.call(e,"version")&&$root.proto.SemanticVersion.encode(e.version,t.uint32(138).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.com.hedera.hapi.platform.event.EventCore;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.creatorNodeId=e.int64();break;case 2:o.birthRound=e.int64();break;case 3:o.timeCreated=$root.proto.Timestamp.decode(e,e.uint32());break;case 4:o.parents&&o.parents.length||(o.parents=[]),o.parents.push($root.com.hedera.hapi.platform.event.EventDescriptor.decode(e,e.uint32()));break;case 17:o.version=$root.proto.SemanticVersion.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.hedera.hapi.platform.event.EventCore"},e}(),e.EventDescriptor=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.hash=$util.newBuffer([]),e.prototype.creatorNodeId=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.birthRound=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.generation=$util.Long?$util.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.hash&&Object.hasOwnProperty.call(e,"hash")&&t.uint32(10).bytes(e.hash),null!=e.creatorNodeId&&Object.hasOwnProperty.call(e,"creatorNodeId")&&t.uint32(16).int64(e.creatorNodeId),null!=e.birthRound&&Object.hasOwnProperty.call(e,"birthRound")&&t.uint32(24).int64(e.birthRound),null!=e.generation&&Object.hasOwnProperty.call(e,"generation")&&t.uint32(136).int64(e.generation),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.com.hedera.hapi.platform.event.EventDescriptor;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.hash=e.bytes();break;case 2:o.creatorNodeId=e.int64();break;case 3:o.birthRound=e.int64();break;case 17:o.generation=e.int64();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.hedera.hapi.platform.event.EventDescriptor"},e}(),e.EventTransaction=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.applicationTransaction=null,e.prototype.stateSignatureTransaction=null,Object.defineProperty(e.prototype,"transaction",{get:$util.oneOfGetter(t=["applicationTransaction","stateSignatureTransaction"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.applicationTransaction&&Object.hasOwnProperty.call(e,"applicationTransaction")&&t.uint32(10).bytes(e.applicationTransaction),null!=e.stateSignatureTransaction&&Object.hasOwnProperty.call(e,"stateSignatureTransaction")&&$root.com.hedera.hapi.platform.event.StateSignatureTransaction.encode(e.stateSignatureTransaction,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.com.hedera.hapi.platform.event.EventTransaction;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.applicationTransaction=e.bytes();break;case 2:o.stateSignatureTransaction=$root.com.hedera.hapi.platform.event.StateSignatureTransaction.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.hedera.hapi.platform.event.EventTransaction"},e}(),e.GossipEvent=function(){function e(e){if(this.eventTransaction=[],this.transactions=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.eventCore=null,e.prototype.signature=$util.newBuffer([]),e.prototype.eventTransaction=$util.emptyArray,e.prototype.transactions=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.eventCore&&Object.hasOwnProperty.call(e,"eventCore")&&$root.com.hedera.hapi.platform.event.EventCore.encode(e.eventCore,t.uint32(10).fork()).ldelim(),null!=e.signature&&Object.hasOwnProperty.call(e,"signature")&&t.uint32(18).bytes(e.signature),null!=e.eventTransaction&&e.eventTransaction.length)for(var r=0;r<e.eventTransaction.length;++r)$root.com.hedera.hapi.platform.event.EventTransaction.encode(e.eventTransaction[r],t.uint32(26).fork()).ldelim();if(null!=e.transactions&&e.transactions.length)for(r=0;r<e.transactions.length;++r)t.uint32(34).bytes(e.transactions[r]);return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.com.hedera.hapi.platform.event.GossipEvent;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.eventCore=$root.com.hedera.hapi.platform.event.EventCore.decode(e,e.uint32());break;case 2:o.signature=e.bytes();break;case 3:o.eventTransaction&&o.eventTransaction.length||(o.eventTransaction=[]),o.eventTransaction.push($root.com.hedera.hapi.platform.event.EventTransaction.decode(e,e.uint32()));break;case 4:o.transactions&&o.transactions.length||(o.transactions=[]),o.transactions.push(e.bytes());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.hedera.hapi.platform.event.GossipEvent"},e}(),e.StateSignatureTransaction=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.round=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.signature=$util.newBuffer([]),e.prototype.hash=$util.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.round&&Object.hasOwnProperty.call(e,"round")&&t.uint32(8).int64(e.round),null!=e.signature&&Object.hasOwnProperty.call(e,"signature")&&t.uint32(18).bytes(e.signature),null!=e.hash&&Object.hasOwnProperty.call(e,"hash")&&t.uint32(26).bytes(e.hash),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.com.hedera.hapi.platform.event.StateSignatureTransaction;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.round=e.int64();break;case 2:o.signature=e.bytes();break;case 3:o.hash=e.bytes();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.hedera.hapi.platform.event.StateSignatureTransaction"},e}(),e}(),e}(),e.services=function(){const e={};return e.auxiliary=function(){const e={};return e.history=function(){const e={};return e.HistoryProofKeyPublicationTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.proofKey=$util.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.proofKey&&Object.hasOwnProperty.call(e,"proofKey")&&t.uint32(10).bytes(e.proofKey),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.com.hedera.hapi.services.auxiliary.history.HistoryProofKeyPublicationTransactionBody;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.proofKey=e.bytes();else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.hedera.hapi.services.auxiliary.history.HistoryProofKeyPublicationTransactionBody"},e}(),e.HistoryProofSignatureTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.constructionId=$util.Long?$util.Long.fromBits(0,0,!0):0,e.prototype.signature=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.constructionId&&Object.hasOwnProperty.call(e,"constructionId")&&t.uint32(8).uint64(e.constructionId),null!=e.signature&&Object.hasOwnProperty.call(e,"signature")&&$root.com.hedera.hapi.node.state.history.HistorySignature.encode(e.signature,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.com.hedera.hapi.services.auxiliary.history.HistoryProofSignatureTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.constructionId=e.uint64();break;case 2:o.signature=$root.com.hedera.hapi.node.state.history.HistorySignature.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.hedera.hapi.services.auxiliary.history.HistoryProofSignatureTransactionBody"},e}(),e.HistoryProofVoteTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.constructionId=$util.Long?$util.Long.fromBits(0,0,!0):0,e.prototype.vote=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.constructionId&&Object.hasOwnProperty.call(e,"constructionId")&&t.uint32(8).uint64(e.constructionId),null!=e.vote&&Object.hasOwnProperty.call(e,"vote")&&$root.com.hedera.hapi.node.state.history.HistoryProofVote.encode(e.vote,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.com.hedera.hapi.services.auxiliary.history.HistoryProofVoteTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.constructionId=e.uint64();break;case 2:o.vote=$root.com.hedera.hapi.node.state.history.HistoryProofVote.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.hedera.hapi.services.auxiliary.history.HistoryProofVoteTransactionBody"},e}(),e}(),e}(),e}(),e}(),e}(),e})(),proto.proto=$root.proto=(()=>{const e={};return e.TransactionList=function(){function e(e){if(this.transactionList=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.transactionList=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.transactionList&&e.transactionList.length)for(var r=0;r<e.transactionList.length;++r)$root.proto.Transaction.encode(e.transactionList[r],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TransactionList;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.transactionList&&o.transactionList.length||(o.transactionList=[]),o.transactionList.push($root.proto.Transaction.decode(e,e.uint32()));else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TransactionList"},e}(),e.AddressBookService=function(){function e(e,t,r){$protobuf$1.rpc.Service.call(this,e,t,r)}return(e.prototype=Object.create($protobuf$1.rpc.Service.prototype)).constructor=e,e.create=function(e,t,r){return new this(e,t,r)},Object.defineProperty(e.prototype.createNode=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"createNode"}),Object.defineProperty(e.prototype.deleteNode=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"deleteNode"}),Object.defineProperty(e.prototype.updateNode=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"updateNode"}),e}(),e.TransactionResponse=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.nodeTransactionPrecheckCode=0,e.prototype.cost=$util.Long?$util.Long.fromBits(0,0,!0):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.nodeTransactionPrecheckCode&&Object.hasOwnProperty.call(e,"nodeTransactionPrecheckCode")&&t.uint32(8).int32(e.nodeTransactionPrecheckCode),null!=e.cost&&Object.hasOwnProperty.call(e,"cost")&&t.uint32(16).uint64(e.cost),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TransactionResponse;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.nodeTransactionPrecheckCode=e.int32();break;case 2:o.cost=e.uint64();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TransactionResponse"},e}(),e.ResponseCodeEnum=function(){const e={},t=Object.create(e);return t[e[0]="OK"]=0,t[e[1]="INVALID_TRANSACTION"]=1,t[e[2]="PAYER_ACCOUNT_NOT_FOUND"]=2,t[e[3]="INVALID_NODE_ACCOUNT"]=3,t[e[4]="TRANSACTION_EXPIRED"]=4,t[e[5]="INVALID_TRANSACTION_START"]=5,t[e[6]="INVALID_TRANSACTION_DURATION"]=6,t[e[7]="INVALID_SIGNATURE"]=7,t[e[8]="MEMO_TOO_LONG"]=8,t[e[9]="INSUFFICIENT_TX_FEE"]=9,t[e[10]="INSUFFICIENT_PAYER_BALANCE"]=10,t[e[11]="DUPLICATE_TRANSACTION"]=11,t[e[12]="BUSY"]=12,t[e[13]="NOT_SUPPORTED"]=13,t[e[14]="INVALID_FILE_ID"]=14,t[e[15]="INVALID_ACCOUNT_ID"]=15,t[e[16]="INVALID_CONTRACT_ID"]=16,t[e[17]="INVALID_TRANSACTION_ID"]=17,t[e[18]="RECEIPT_NOT_FOUND"]=18,t[e[19]="RECORD_NOT_FOUND"]=19,t[e[20]="INVALID_SOLIDITY_ID"]=20,t[e[21]="UNKNOWN"]=21,t[e[22]="SUCCESS"]=22,t[e[23]="FAIL_INVALID"]=23,t[e[24]="FAIL_FEE"]=24,t[e[25]="FAIL_BALANCE"]=25,t[e[26]="KEY_REQUIRED"]=26,t[e[27]="BAD_ENCODING"]=27,t[e[28]="INSUFFICIENT_ACCOUNT_BALANCE"]=28,t[e[29]="INVALID_SOLIDITY_ADDRESS"]=29,t[e[30]="INSUFFICIENT_GAS"]=30,t[e[31]="CONTRACT_SIZE_LIMIT_EXCEEDED"]=31,t[e[32]="LOCAL_CALL_MODIFICATION_EXCEPTION"]=32,t[e[33]="CONTRACT_REVERT_EXECUTED"]=33,t[e[34]="CONTRACT_EXECUTION_EXCEPTION"]=34,t[e[35]="INVALID_RECEIVING_NODE_ACCOUNT"]=35,t[e[36]="MISSING_QUERY_HEADER"]=36,t[e[37]="ACCOUNT_UPDATE_FAILED"]=37,t[e[38]="INVALID_KEY_ENCODING"]=38,t[e[39]="NULL_SOLIDITY_ADDRESS"]=39,t[e[40]="CONTRACT_UPDATE_FAILED"]=40,t[e[41]="INVALID_QUERY_HEADER"]=41,t[e[42]="INVALID_FEE_SUBMITTED"]=42,t[e[43]="INVALID_PAYER_SIGNATURE"]=43,t[e[44]="KEY_NOT_PROVIDED"]=44,t[e[45]="INVALID_EXPIRATION_TIME"]=45,t[e[46]="NO_WACL_KEY"]=46,t[e[47]="FILE_CONTENT_EMPTY"]=47,t[e[48]="INVALID_ACCOUNT_AMOUNTS"]=48,t[e[49]="EMPTY_TRANSACTION_BODY"]=49,t[e[50]="INVALID_TRANSACTION_BODY"]=50,t[e[51]="INVALID_SIGNATURE_TYPE_MISMATCHING_KEY"]=51,t[e[52]="INVALID_SIGNATURE_COUNT_MISMATCHING_KEY"]=52,t[e[53]="EMPTY_LIVE_HASH_BODY"]=53,t[e[54]="EMPTY_LIVE_HASH"]=54,t[e[55]="EMPTY_LIVE_HASH_KEYS"]=55,t[e[56]="INVALID_LIVE_HASH_SIZE"]=56,t[e[57]="EMPTY_QUERY_BODY"]=57,t[e[58]="EMPTY_LIVE_HASH_QUERY"]=58,t[e[59]="LIVE_HASH_NOT_FOUND"]=59,t[e[60]="ACCOUNT_ID_DOES_NOT_EXIST"]=60,t[e[61]="LIVE_HASH_ALREADY_EXISTS"]=61,t[e[62]="INVALID_FILE_WACL"]=62,t[e[63]="SERIALIZATION_FAILED"]=63,t[e[64]="TRANSACTION_OVERSIZE"]=64,t[e[65]="TRANSACTION_TOO_MANY_LAYERS"]=65,t[e[66]="CONTRACT_DELETED"]=66,t[e[67]="PLATFORM_NOT_ACTIVE"]=67,t[e[68]="KEY_PREFIX_MISMATCH"]=68,t[e[69]="PLATFORM_TRANSACTION_NOT_CREATED"]=69,t[e[70]="INVALID_RENEWAL_PERIOD"]=70,t[e[71]="INVALID_PAYER_ACCOUNT_ID"]=71,t[e[72]="ACCOUNT_DELETED"]=72,t[e[73]="FILE_DELETED"]=73,t[e[74]="ACCOUNT_REPEATED_IN_ACCOUNT_AMOUNTS"]=74,t[e[75]="SETTING_NEGATIVE_ACCOUNT_BALANCE"]=75,t[e[76]="OBTAINER_REQUIRED"]=76,t[e[77]="OBTAINER_SAME_CONTRACT_ID"]=77,t[e[78]="OBTAINER_DOES_NOT_EXIST"]=78,t[e[79]="MODIFYING_IMMUTABLE_CONTRACT"]=79,t[e[80]="FILE_SYSTEM_EXCEPTION"]=80,t[e[81]="AUTORENEW_DURATION_NOT_IN_RANGE"]=81,t[e[82]="ERROR_DECODING_BYTESTRING"]=82,t[e[83]="CONTRACT_FILE_EMPTY"]=83,t[e[84]="CONTRACT_BYTECODE_EMPTY"]=84,t[e[85]="INVALID_INITIAL_BALANCE"]=85,t[e[86]="INVALID_RECEIVE_RECORD_THRESHOLD"]=86,t[e[87]="INVALID_SEND_RECORD_THRESHOLD"]=87,t[e[88]="ACCOUNT_IS_NOT_GENESIS_ACCOUNT"]=88,t[e[89]="PAYER_ACCOUNT_UNAUTHORIZED"]=89,t[e[90]="INVALID_FREEZE_TRANSACTION_BODY"]=90,t[e[91]="FREEZE_TRANSACTION_BODY_NOT_FOUND"]=91,t[e[92]="TRANSFER_LIST_SIZE_LIMIT_EXCEEDED"]=92,t[e[93]="RESULT_SIZE_LIMIT_EXCEEDED"]=93,t[e[94]="NOT_SPECIAL_ACCOUNT"]=94,t[e[95]="CONTRACT_NEGATIVE_GAS"]=95,t[e[96]="CONTRACT_NEGATIVE_VALUE"]=96,t[e[97]="INVALID_FEE_FILE"]=97,t[e[98]="INVALID_EXCHANGE_RATE_FILE"]=98,t[e[99]="INSUFFICIENT_LOCAL_CALL_GAS"]=99,t[e[100]="ENTITY_NOT_ALLOWED_TO_DELETE"]=100,t[e[101]="AUTHORIZATION_FAILED"]=101,t[e[102]="FILE_UPLOADED_PROTO_INVALID"]=102,t[e[103]="FILE_UPLOADED_PROTO_NOT_SAVED_TO_DISK"]=103,t[e[104]="FEE_SCHEDULE_FILE_PART_UPLOADED"]=104,t[e[105]="EXCHANGE_RATE_CHANGE_LIMIT_EXCEEDED"]=105,t[e[106]="MAX_CONTRACT_STORAGE_EXCEEDED"]=106,t[e[107]="TRANSFER_ACCOUNT_SAME_AS_DELETE_ACCOUNT"]=107,t[e[108]="TOTAL_LEDGER_BALANCE_INVALID"]=108,t[e[110]="EXPIRATION_REDUCTION_NOT_ALLOWED"]=110,t[e[111]="MAX_GAS_LIMIT_EXCEEDED"]=111,t[e[112]="MAX_FILE_SIZE_EXCEEDED"]=112,t[e[113]="RECEIVER_SIG_REQUIRED"]=113,t[e[150]="INVALID_TOPIC_ID"]=150,t[e[155]="INVALID_ADMIN_KEY"]=155,t[e[156]="INVALID_SUBMIT_KEY"]=156,t[e[157]="UNAUTHORIZED"]=157,t[e[158]="INVALID_TOPIC_MESSAGE"]=158,t[e[159]="INVALID_AUTORENEW_ACCOUNT"]=159,t[e[160]="AUTORENEW_ACCOUNT_NOT_ALLOWED"]=160,t[e[162]="TOPIC_EXPIRED"]=162,t[e[163]="INVALID_CHUNK_NUMBER"]=163,t[e[164]="INVALID_CHUNK_TRANSACTION_ID"]=164,t[e[165]="ACCOUNT_FROZEN_FOR_TOKEN"]=165,t[e[166]="TOKENS_PER_ACCOUNT_LIMIT_EXCEEDED"]=166,t[e[167]="INVALID_TOKEN_ID"]=167,t[e[168]="INVALID_TOKEN_DECIMALS"]=168,t[e[169]="INVALID_TOKEN_INITIAL_SUPPLY"]=169,t[e[170]="INVALID_TREASURY_ACCOUNT_FOR_TOKEN"]=170,t[e[171]="INVALID_TOKEN_SYMBOL"]=171,t[e[172]="TOKEN_HAS_NO_FREEZE_KEY"]=172,t[e[173]="TRANSFERS_NOT_ZERO_SUM_FOR_TOKEN"]=173,t[e[174]="MISSING_TOKEN_SYMBOL"]=174,t[e[175]="TOKEN_SYMBOL_TOO_LONG"]=175,t[e[176]="ACCOUNT_KYC_NOT_GRANTED_FOR_TOKEN"]=176,t[e[177]="TOKEN_HAS_NO_KYC_KEY"]=177,t[e[178]="INSUFFICIENT_TOKEN_BALANCE"]=178,t[e[179]="TOKEN_WAS_DELETED"]=179,t[e[180]="TOKEN_HAS_NO_SUPPLY_KEY"]=180,t[e[181]="TOKEN_HAS_NO_WIPE_KEY"]=181,t[e[182]="INVALID_TOKEN_MINT_AMOUNT"]=182,t[e[183]="INVALID_TOKEN_BURN_AMOUNT"]=183,t[e[184]="TOKEN_NOT_ASSOCIATED_TO_ACCOUNT"]=184,t[e[185]="CANNOT_WIPE_TOKEN_TREASURY_ACCOUNT"]=185,t[e[186]="INVALID_KYC_KEY"]=186,t[e[187]="INVALID_WIPE_KEY"]=187,t[e[188]="INVALID_FREEZE_KEY"]=188,t[e[189]="INVALID_SUPPLY_KEY"]=189,t[e[190]="MISSING_TOKEN_NAME"]=190,t[e[191]="TOKEN_NAME_TOO_LONG"]=191,t[e[192]="INVALID_WIPING_AMOUNT"]=192,t[e[193]="TOKEN_IS_IMMUTABLE"]=193,t[e[194]="TOKEN_ALREADY_ASSOCIATED_TO_ACCOUNT"]=194,t[e[195]="TRANSACTION_REQUIRES_ZERO_TOKEN_BALANCES"]=195,t[e[196]="ACCOUNT_IS_TREASURY"]=196,t[e[197]="TOKEN_ID_REPEATED_IN_TOKEN_LIST"]=197,t[e[198]="TOKEN_TRANSFER_LIST_SIZE_LIMIT_EXCEEDED"]=198,t[e[199]="EMPTY_TOKEN_TRANSFER_BODY"]=199,t[e[200]="EMPTY_TOKEN_TRANSFER_ACCOUNT_AMOUNTS"]=200,t[e[201]="INVALID_SCHEDULE_ID"]=201,t[e[202]="SCHEDULE_IS_IMMUTABLE"]=202,t[e[203]="INVALID_SCHEDULE_PAYER_ID"]=203,t[e[204]="INVALID_SCHEDULE_ACCOUNT_ID"]=204,t[e[205]="NO_NEW_VALID_SIGNATURES"]=205,t[e[206]="UNRESOLVABLE_REQUIRED_SIGNERS"]=206,t[e[207]="SCHEDULED_TRANSACTION_NOT_IN_WHITELIST"]=207,t[e[208]="SOME_SIGNATURES_WERE_INVALID"]=208,t[e[209]="TRANSACTION_ID_FIELD_NOT_ALLOWED"]=209,t[e[210]="IDENTICAL_SCHEDULE_ALREADY_CREATED"]=210,t[e[211]="INVALID_ZERO_BYTE_IN_STRING"]=211,t[e[212]="SCHEDULE_ALREADY_DELETED"]=212,t[e[213]="SCHEDULE_ALREADY_EXECUTED"]=213,t[e[214]="MESSAGE_SIZE_TOO_LARGE"]=214,t[e[215]="OPERATION_REPEATED_IN_BUCKET_GROUPS"]=215,t[e[216]="BUCKET_CAPACITY_OVERFLOW"]=216,t[e[217]="NODE_CAPACITY_NOT_SUFFICIENT_FOR_OPERATION"]=217,t[e[218]="BUCKET_HAS_NO_THROTTLE_GROUPS"]=218,t[e[219]="THROTTLE_GROUP_HAS_ZERO_OPS_PER_SEC"]=219,t[e[220]="SUCCESS_BUT_MISSING_EXPECTED_OPERATION"]=220,t[e[221]="UNPARSEABLE_THROTTLE_DEFINITIONS"]=221,t[e[222]="INVALID_THROTTLE_DEFINITIONS"]=222,t[e[223]="ACCOUNT_EXPIRED_AND_PENDING_REMOVAL"]=223,t[e[224]="INVALID_TOKEN_MAX_SUPPLY"]=224,t[e[225]="INVALID_TOKEN_NFT_SERIAL_NUMBER"]=225,t[e[226]="INVALID_NFT_ID"]=226,t[e[227]="METADATA_TOO_LONG"]=227,t[e[228]="BATCH_SIZE_LIMIT_EXCEEDED"]=228,t[e[229]="INVALID_QUERY_RANGE"]=229,t[e[230]="FRACTION_DIVIDES_BY_ZERO"]=230,t[e[231]="INSUFFICIENT_PAYER_BALANCE_FOR_CUSTOM_FEE"]=231,t[e[232]="CUSTOM_FEES_LIST_TOO_LONG"]=232,t[e[233]="INVALID_CUSTOM_FEE_COLLECTOR"]=233,t[e[234]="INVALID_TOKEN_ID_IN_CUSTOM_FEES"]=234,t[e[235]="TOKEN_NOT_ASSOCIATED_TO_FEE_COLLECTOR"]=235,t[e[236]="TOKEN_MAX_SUPPLY_REACHED"]=236,t[e[237]="SENDER_DOES_NOT_OWN_NFT_SERIAL_NO"]=237,t[e[238]="CUSTOM_FEE_NOT_FULLY_SPECIFIED"]=238,t[e[239]="CUSTOM_FEE_MUST_BE_POSITIVE"]=239,t[e[240]="TOKEN_HAS_NO_FEE_SCHEDULE_KEY"]=240,t[e[241]="CUSTOM_FEE_OUTSIDE_NUMERIC_RANGE"]=241,t[e[242]="ROYALTY_FRACTION_CANNOT_EXCEED_ONE"]=242,t[e[243]="FRACTIONAL_FEE_MAX_AMOUNT_LESS_THAN_MIN_AMOUNT"]=243,t[e[244]="CUSTOM_SCHEDULE_ALREADY_HAS_NO_FEES"]=244,t[e[245]="CUSTOM_FEE_DENOMINATION_MUST_BE_FUNGIBLE_COMMON"]=245,t[e[246]="CUSTOM_FRACTIONAL_FEE_ONLY_ALLOWED_FOR_FUNGIBLE_COMMON"]=246,t[e[247]="INVALID_CUSTOM_FEE_SCHEDULE_KEY"]=247,t[e[248]="INVALID_TOKEN_MINT_METADATA"]=248,t[e[249]="INVALID_TOKEN_BURN_METADATA"]=249,t[e[250]="CURRENT_TREASURY_STILL_OWNS_NFTS"]=250,t[e[251]="ACCOUNT_STILL_OWNS_NFTS"]=251,t[e[252]="TREASURY_MUST_OWN_BURNED_NFT"]=252,t[e[253]="ACCOUNT_DOES_NOT_OWN_WIPED_NFT"]=253,t[e[254]="ACCOUNT_AMOUNT_TRANSFERS_ONLY_ALLOWED_FOR_FUNGIBLE_COMMON"]=254,t[e[255]="MAX_NFTS_IN_PRICE_REGIME_HAVE_BEEN_MINTED"]=255,t[e[256]="PAYER_ACCOUNT_DELETED"]=256,t[e[257]="CUSTOM_FEE_CHARGING_EXCEEDED_MAX_RECURSION_DEPTH"]=257,t[e[258]="CUSTOM_FEE_CHARGING_EXCEEDED_MAX_ACCOUNT_AMOUNTS"]=258,t[e[259]="INSUFFICIENT_SENDER_ACCOUNT_BALANCE_FOR_CUSTOM_FEE"]=259,t[e[260]="SERIAL_NUMBER_LIMIT_REACHED"]=260,t[e[261]="CUSTOM_ROYALTY_FEE_ONLY_ALLOWED_FOR_NON_FUNGIBLE_UNIQUE"]=261,t[e[262]="NO_REMAINING_AUTOMATIC_ASSOCIATIONS"]=262,t[e[263]="EXISTING_AUTOMATIC_ASSOCIATIONS_EXCEED_GIVEN_LIMIT"]=263,t[e[264]="REQUESTED_NUM_AUTOMATIC_ASSOCIATIONS_EXCEEDS_ASSOCIATION_LIMIT"]=264,t[e[265]="TOKEN_IS_PAUSED"]=265,t[e[266]="TOKEN_HAS_NO_PAUSE_KEY"]=266,t[e[267]="INVALID_PAUSE_KEY"]=267,t[e[268]="FREEZE_UPDATE_FILE_DOES_NOT_EXIST"]=268,t[e[269]="FREEZE_UPDATE_FILE_HASH_DOES_NOT_MATCH"]=269,t[e[270]="NO_UPGRADE_HAS_BEEN_PREPARED"]=270,t[e[271]="NO_FREEZE_IS_SCHEDULED"]=271,t[e[272]="UPDATE_FILE_HASH_CHANGED_SINCE_PREPARE_UPGRADE"]=272,t[e[273]="FREEZE_START_TIME_MUST_BE_FUTURE"]=273,t[e[274]="PREPARED_UPDATE_FILE_IS_IMMUTABLE"]=274,t[e[275]="FREEZE_ALREADY_SCHEDULED"]=275,t[e[276]="FREEZE_UPGRADE_IN_PROGRESS"]=276,t[e[277]="UPDATE_FILE_ID_DOES_NOT_MATCH_PREPARED"]=277,t[e[278]="UPDATE_FILE_HASH_DOES_NOT_MATCH_PREPARED"]=278,t[e[279]="CONSENSUS_GAS_EXHAUSTED"]=279,t[e[280]="REVERTED_SUCCESS"]=280,t[e[281]="MAX_STORAGE_IN_PRICE_REGIME_HAS_BEEN_USED"]=281,t[e[282]="INVALID_ALIAS_KEY"]=282,t[e[283]="UNEXPECTED_TOKEN_DECIMALS"]=283,t[e[284]="INVALID_PROXY_ACCOUNT_ID"]=284,t[e[285]="INVALID_TRANSFER_ACCOUNT_ID"]=285,t[e[286]="INVALID_FEE_COLLECTOR_ACCOUNT_ID"]=286,t[e[287]="ALIAS_IS_IMMUTABLE"]=287,t[e[288]="SPENDER_ACCOUNT_SAME_AS_OWNER"]=288,t[e[289]="AMOUNT_EXCEEDS_TOKEN_MAX_SUPPLY"]=289,t[e[290]="NEGATIVE_ALLOWANCE_AMOUNT"]=290,t[e[291]="CANNOT_APPROVE_FOR_ALL_FUNGIBLE_COMMON"]=291,t[e[292]="SPENDER_DOES_NOT_HAVE_ALLOWANCE"]=292,t[e[293]="AMOUNT_EXCEEDS_ALLOWANCE"]=293,t[e[294]="MAX_ALLOWANCES_EXCEEDED"]=294,t[e[295]="EMPTY_ALLOWANCES"]=295,t[e[296]="SPENDER_ACCOUNT_REPEATED_IN_ALLOWANCES"]=296,t[e[297]="REPEATED_SERIAL_NUMS_IN_NFT_ALLOWANCES"]=297,t[e[298]="FUNGIBLE_TOKEN_IN_NFT_ALLOWANCES"]=298,t[e[299]="NFT_IN_FUNGIBLE_TOKEN_ALLOWANCES"]=299,t[e[300]="INVALID_ALLOWANCE_OWNER_ID"]=300,t[e[301]="INVALID_ALLOWANCE_SPENDER_ID"]=301,t[e[302]="REPEATED_ALLOWANCES_TO_DELETE"]=302,t[e[303]="INVALID_DELEGATING_SPENDER"]=303,t[e[304]="DELEGATING_SPENDER_CANNOT_GRANT_APPROVE_FOR_ALL"]=304,t[e[305]="DELEGATING_SPENDER_DOES_NOT_HAVE_APPROVE_FOR_ALL"]=305,t[e[306]="SCHEDULE_EXPIRATION_TIME_TOO_FAR_IN_FUTURE"]=306,t[e[307]="SCHEDULE_EXPIRATION_TIME_MUST_BE_HIGHER_THAN_CONSENSUS_TIME"]=307,t[e[308]="SCHEDULE_FUTURE_THROTTLE_EXCEEDED"]=308,t[e[309]="SCHEDULE_FUTURE_GAS_LIMIT_EXCEEDED"]=309,t[e[310]="INVALID_ETHEREUM_TRANSACTION"]=310,t[e[311]="WRONG_CHAIN_ID"]=311,t[e[312]="WRONG_NONCE"]=312,t[e[313]="ACCESS_LIST_UNSUPPORTED"]=313,t[e[314]="SCHEDULE_PENDING_EXPIRATION"]=314,t[e[315]="CONTRACT_IS_TOKEN_TREASURY"]=315,t[e[316]="CONTRACT_HAS_NON_ZERO_TOKEN_BALANCES"]=316,t[e[317]="CONTRACT_EXPIRED_AND_PENDING_REMOVAL"]=317,t[e[318]="CONTRACT_HAS_NO_AUTO_RENEW_ACCOUNT"]=318,t[e[319]="PERMANENT_REMOVAL_REQUIRES_SYSTEM_INITIATION"]=319,t[e[320]="PROXY_ACCOUNT_ID_FIELD_IS_DEPRECATED"]=320,t[e[321]="SELF_STAKING_IS_NOT_ALLOWED"]=321,t[e[322]="INVALID_STAKING_ID"]=322,t[e[323]="STAKING_NOT_ENABLED"]=323,t[e[324]="INVALID_PRNG_RANGE"]=324,t[e[325]="MAX_ENTITIES_IN_PRICE_REGIME_HAVE_BEEN_CREATED"]=325,t[e[326]="INVALID_FULL_PREFIX_SIGNATURE_FOR_PRECOMPILE"]=326,t[e[327]="INSUFFICIENT_BALANCES_FOR_STORAGE_RENT"]=327,t[e[328]="MAX_CHILD_RECORDS_EXCEEDED"]=328,t[e[329]="INSUFFICIENT_BALANCES_FOR_RENEWAL_FEES"]=329,t[e[330]="TRANSACTION_HAS_UNKNOWN_FIELDS"]=330,t[e[331]="ACCOUNT_IS_IMMUTABLE"]=331,t[e[332]="ALIAS_ALREADY_ASSIGNED"]=332,t[e[333]="INVALID_METADATA_KEY"]=333,t[e[334]="TOKEN_HAS_NO_METADATA_KEY"]=334,t[e[335]="MISSING_TOKEN_METADATA"]=335,t[e[336]="MISSING_SERIAL_NUMBERS"]=336,t[e[337]="TOKEN_HAS_NO_ADMIN_KEY"]=337,t[e[338]="NODE_DELETED"]=338,t[e[339]="INVALID_NODE_ID"]=339,t[e[340]="INVALID_GOSSIP_ENDPOINT"]=340,t[e[341]="INVALID_NODE_ACCOUNT_ID"]=341,t[e[342]="INVALID_NODE_DESCRIPTION"]=342,t[e[343]="INVALID_SERVICE_ENDPOINT"]=343,t[e[344]="INVALID_GOSSIP_CA_CERTIFICATE"]=344,t[e[345]="INVALID_GRPC_CERTIFICATE"]=345,t[e[346]="INVALID_MAX_AUTO_ASSOCIATIONS"]=346,t[e[347]="MAX_NODES_CREATED"]=347,t[e[348]="IP_FQDN_CANNOT_BE_SET_FOR_SAME_ENDPOINT"]=348,t[e[349]="GOSSIP_ENDPOINT_CANNOT_HAVE_FQDN"]=349,t[e[350]="FQDN_SIZE_TOO_LARGE"]=350,t[e[351]="INVALID_ENDPOINT"]=351,t[e[352]="GOSSIP_ENDPOINTS_EXCEEDED_LIMIT"]=352,t[e[353]="TOKEN_REFERENCE_REPEATED"]=353,t[e[354]="INVALID_OWNER_ID"]=354,t[e[355]="TOKEN_REFERENCE_LIST_SIZE_LIMIT_EXCEEDED"]=355,t[e[356]="SERVICE_ENDPOINTS_EXCEEDED_LIMIT"]=356,t[e[357]="INVALID_IPV4_ADDRESS"]=357,t[e[358]="EMPTY_TOKEN_REFERENCE_LIST"]=358,t[e[359]="UPDATE_NODE_ACCOUNT_NOT_ALLOWED"]=359,t[e[360]="TOKEN_HAS_NO_METADATA_OR_SUPPLY_KEY"]=360,t[e[361]="EMPTY_PENDING_AIRDROP_ID_LIST"]=361,t[e[362]="PENDING_AIRDROP_ID_REPEATED"]=362,t[e[363]="PENDING_AIRDROP_ID_LIST_TOO_LONG"]=363,t[e[364]="PENDING_NFT_AIRDROP_ALREADY_EXISTS"]=364,t[e[365]="ACCOUNT_HAS_PENDING_AIRDROPS"]=365,t[e[366]="THROTTLED_AT_CONSENSUS"]=366,t[e[367]="INVALID_PENDING_AIRDROP_ID"]=367,t[e[368]="TOKEN_AIRDROP_WITH_FALLBACK_ROYALTY"]=368,t[e[369]="INVALID_TOKEN_IN_PENDING_AIRDROP"]=369,t[e[370]="SCHEDULE_EXPIRY_IS_BUSY"]=370,t[e[371]="INVALID_GRPC_CERTIFICATE_HASH"]=371,t[e[372]="MISSING_EXPIRY_TIME"]=372,t[e[373]="NO_SCHEDULING_ALLOWED_AFTER_SCHEDULED_RECURSION"]=373,t[e[374]="RECURSIVE_SCHEDULING_LIMIT_REACHED"]=374,t[e[375]="WAITING_FOR_LEDGER_ID"]=375,t[e[376]="MAX_ENTRIES_FOR_FEE_EXEMPT_KEY_LIST_EXCEEDED"]=376,t[e[377]="FEE_EXEMPT_KEY_LIST_CONTAINS_DUPLICATED_KEYS"]=377,t[e[378]="INVALID_KEY_IN_FEE_EXEMPT_KEY_LIST"]=378,t[e[379]="INVALID_FEE_SCHEDULE_KEY"]=379,t[e[380]="FEE_SCHEDULE_KEY_CANNOT_BE_UPDATED"]=380,t[e[381]="FEE_SCHEDULE_KEY_NOT_SET"]=381,t[e[382]="MAX_CUSTOM_FEE_LIMIT_EXCEEDED"]=382,t[e[383]="NO_VALID_MAX_CUSTOM_FEE"]=383,t[e[384]="INVALID_MAX_CUSTOM_FEES"]=384,t[e[385]="DUPLICATE_DENOMINATION_IN_MAX_CUSTOM_FEE_LIST"]=385,t[e[386]="DUPLICATE_ACCOUNT_ID_IN_MAX_CUSTOM_FEE_LIST"]=386,t[e[387]="MAX_CUSTOM_FEES_IS_NOT_SUPPORTED"]=387,t}(),e.Transaction=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.body=null,e.prototype.sigs=null,e.prototype.sigMap=null,e.prototype.bodyBytes=$util.newBuffer([]),e.prototype.signedTransactionBytes=$util.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.body&&Object.hasOwnProperty.call(e,"body")&&$root.proto.TransactionBody.encode(e.body,t.uint32(10).fork()).ldelim(),null!=e.sigs&&Object.hasOwnProperty.call(e,"sigs")&&$root.proto.SignatureList.encode(e.sigs,t.uint32(18).fork()).ldelim(),null!=e.sigMap&&Object.hasOwnProperty.call(e,"sigMap")&&$root.proto.SignatureMap.encode(e.sigMap,t.uint32(26).fork()).ldelim(),null!=e.bodyBytes&&Object.hasOwnProperty.call(e,"bodyBytes")&&t.uint32(34).bytes(e.bodyBytes),null!=e.signedTransactionBytes&&Object.hasOwnProperty.call(e,"signedTransactionBytes")&&t.uint32(42).bytes(e.signedTransactionBytes),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.Transaction;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.body=$root.proto.TransactionBody.decode(e,e.uint32());break;case 2:o.sigs=$root.proto.SignatureList.decode(e,e.uint32());break;case 3:o.sigMap=$root.proto.SignatureMap.decode(e,e.uint32());break;case 4:o.bodyBytes=e.bytes();break;case 5:o.signedTransactionBytes=e.bytes();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.Transaction"},e}(),e.TransactionBody=function(){function e(e){if(this.maxCustomFees=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.transactionID=null,e.prototype.nodeAccountID=null,e.prototype.transactionFee=$util.Long?$util.Long.fromBits(0,0,!0):0,e.prototype.transactionValidDuration=null,e.prototype.generateRecord=!1,e.prototype.memo="",e.prototype.contractCall=null,e.prototype.contractCreateInstance=null,e.prototype.contractUpdateInstance=null,e.prototype.cryptoAddLiveHash=null,e.prototype.cryptoCreateAccount=null,e.prototype.cryptoDelete=null,e.prototype.cryptoDeleteLiveHash=null,e.prototype.cryptoTransfer=null,e.prototype.cryptoUpdateAccount=null,e.prototype.fileAppend=null,e.prototype.fileCreate=null,e.prototype.fileDelete=null,e.prototype.fileUpdate=null,e.prototype.systemDelete=null,e.prototype.systemUndelete=null,e.prototype.contractDeleteInstance=null,e.prototype.freeze=null,e.prototype.consensusCreateTopic=null,e.prototype.consensusUpdateTopic=null,e.prototype.consensusDeleteTopic=null,e.prototype.consensusSubmitMessage=null,e.prototype.uncheckedSubmit=null,e.prototype.tokenCreation=null,e.prototype.tokenFreeze=null,e.prototype.tokenUnfreeze=null,e.prototype.tokenGrantKyc=null,e.prototype.tokenRevokeKyc=null,e.prototype.tokenDeletion=null,e.prototype.tokenUpdate=null,e.prototype.tokenMint=null,e.prototype.tokenBurn=null,e.prototype.tokenWipe=null,e.prototype.tokenAssociate=null,e.prototype.tokenDissociate=null,e.prototype.scheduleCreate=null,e.prototype.scheduleDelete=null,e.prototype.scheduleSign=null,e.prototype.tokenFeeScheduleUpdate=null,e.prototype.tokenPause=null,e.prototype.tokenUnpause=null,e.prototype.cryptoApproveAllowance=null,e.prototype.cryptoDeleteAllowance=null,e.prototype.ethereumTransaction=null,e.prototype.nodeStakeUpdate=null,e.prototype.utilPrng=null,e.prototype.tokenUpdateNfts=null,e.prototype.nodeCreate=null,e.prototype.nodeUpdate=null,e.prototype.nodeDelete=null,e.prototype.tokenReject=null,e.prototype.tokenAirdrop=null,e.prototype.tokenCancelAirdrop=null,e.prototype.tokenClaimAirdrop=null,e.prototype.stateSignatureTransaction=null,e.prototype.historyProofSignature=null,e.prototype.historyProofKeyPublication=null,e.prototype.historyProofVote=null,e.prototype.maxCustomFees=$util.emptyArray,Object.defineProperty(e.prototype,"data",{get:$util.oneOfGetter(t=["contractCall","contractCreateInstance","contractUpdateInstance","cryptoAddLiveHash","cryptoCreateAccount","cryptoDelete","cryptoDeleteLiveHash","cryptoTransfer","cryptoUpdateAccount","fileAppend","fileCreate","fileDelete","fileUpdate","systemDelete","systemUndelete","contractDeleteInstance","freeze","consensusCreateTopic","consensusUpdateTopic","consensusDeleteTopic","consensusSubmitMessage","uncheckedSubmit","tokenCreation","tokenFreeze","tokenUnfreeze","tokenGrantKyc","tokenRevokeKyc","tokenDeletion","tokenUpdate","tokenMint","tokenBurn","tokenWipe","tokenAssociate","tokenDissociate","scheduleCreate","scheduleDelete","scheduleSign","tokenFeeScheduleUpdate","tokenPause","tokenUnpause","cryptoApproveAllowance","cryptoDeleteAllowance","ethereumTransaction","nodeStakeUpdate","utilPrng","tokenUpdateNfts","nodeCreate","nodeUpdate","nodeDelete","tokenReject","tokenAirdrop","tokenCancelAirdrop","tokenClaimAirdrop","stateSignatureTransaction","historyProofSignature","historyProofKeyPublication","historyProofVote"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.transactionID&&Object.hasOwnProperty.call(e,"transactionID")&&$root.proto.TransactionID.encode(e.transactionID,t.uint32(10).fork()).ldelim(),null!=e.nodeAccountID&&Object.hasOwnProperty.call(e,"nodeAccountID")&&$root.proto.AccountID.encode(e.nodeAccountID,t.uint32(18).fork()).ldelim(),null!=e.transactionFee&&Object.hasOwnProperty.call(e,"transactionFee")&&t.uint32(24).uint64(e.transactionFee),null!=e.transactionValidDuration&&Object.hasOwnProperty.call(e,"transactionValidDuration")&&$root.proto.Duration.encode(e.transactionValidDuration,t.uint32(34).fork()).ldelim(),null!=e.generateRecord&&Object.hasOwnProperty.call(e,"generateRecord")&&t.uint32(40).bool(e.generateRecord),null!=e.memo&&Object.hasOwnProperty.call(e,"memo")&&t.uint32(50).string(e.memo),null!=e.contractCall&&Object.hasOwnProperty.call(e,"contractCall")&&$root.proto.ContractCallTransactionBody.encode(e.contractCall,t.uint32(58).fork()).ldelim(),null!=e.contractCreateInstance&&Object.hasOwnProperty.call(e,"contractCreateInstance")&&$root.proto.ContractCreateTransactionBody.encode(e.contractCreateInstance,t.uint32(66).fork()).ldelim(),null!=e.contractUpdateInstance&&Object.hasOwnProperty.call(e,"contractUpdateInstance")&&$root.proto.ContractUpdateTransactionBody.encode(e.contractUpdateInstance,t.uint32(74).fork()).ldelim(),null!=e.cryptoAddLiveHash&&Object.hasOwnProperty.call(e,"cryptoAddLiveHash")&&$root.proto.CryptoAddLiveHashTransactionBody.encode(e.cryptoAddLiveHash,t.uint32(82).fork()).ldelim(),null!=e.cryptoCreateAccount&&Object.hasOwnProperty.call(e,"cryptoCreateAccount")&&$root.proto.CryptoCreateTransactionBody.encode(e.cryptoCreateAccount,t.uint32(90).fork()).ldelim(),null!=e.cryptoDelete&&Object.hasOwnProperty.call(e,"cryptoDelete")&&$root.proto.CryptoDeleteTransactionBody.encode(e.cryptoDelete,t.uint32(98).fork()).ldelim(),null!=e.cryptoDeleteLiveHash&&Object.hasOwnProperty.call(e,"cryptoDeleteLiveHash")&&$root.proto.CryptoDeleteLiveHashTransactionBody.encode(e.cryptoDeleteLiveHash,t.uint32(106).fork()).ldelim(),null!=e.cryptoTransfer&&Object.hasOwnProperty.call(e,"cryptoTransfer")&&$root.proto.CryptoTransferTransactionBody.encode(e.cryptoTransfer,t.uint32(114).fork()).ldelim(),null!=e.cryptoUpdateAccount&&Object.hasOwnProperty.call(e,"cryptoUpdateAccount")&&$root.proto.CryptoUpdateTransactionBody.encode(e.cryptoUpdateAccount,t.uint32(122).fork()).ldelim(),null!=e.fileAppend&&Object.hasOwnProperty.call(e,"fileAppend")&&$root.proto.FileAppendTransactionBody.encode(e.fileAppend,t.uint32(130).fork()).ldelim(),null!=e.fileCreate&&Object.hasOwnProperty.call(e,"fileCreate")&&$root.proto.FileCreateTransactionBody.encode(e.fileCreate,t.uint32(138).fork()).ldelim(),null!=e.fileDelete&&Object.hasOwnProperty.call(e,"fileDelete")&&$root.proto.FileDeleteTransactionBody.encode(e.fileDelete,t.uint32(146).fork()).ldelim(),null!=e.fileUpdate&&Object.hasOwnProperty.call(e,"fileUpdate")&&$root.proto.FileUpdateTransactionBody.encode(e.fileUpdate,t.uint32(154).fork()).ldelim(),null!=e.systemDelete&&Object.hasOwnProperty.call(e,"systemDelete")&&$root.proto.SystemDeleteTransactionBody.encode(e.systemDelete,t.uint32(162).fork()).ldelim(),null!=e.systemUndelete&&Object.hasOwnProperty.call(e,"systemUndelete")&&$root.proto.SystemUndeleteTransactionBody.encode(e.systemUndelete,t.uint32(170).fork()).ldelim(),null!=e.contractDeleteInstance&&Object.hasOwnProperty.call(e,"contractDeleteInstance")&&$root.proto.ContractDeleteTransactionBody.encode(e.contractDeleteInstance,t.uint32(178).fork()).ldelim(),null!=e.freeze&&Object.hasOwnProperty.call(e,"freeze")&&$root.proto.FreezeTransactionBody.encode(e.freeze,t.uint32(186).fork()).ldelim(),null!=e.consensusCreateTopic&&Object.hasOwnProperty.call(e,"consensusCreateTopic")&&$root.proto.ConsensusCreateTopicTransactionBody.encode(e.consensusCreateTopic,t.uint32(194).fork()).ldelim(),null!=e.consensusUpdateTopic&&Object.hasOwnProperty.call(e,"consensusUpdateTopic")&&$root.proto.ConsensusUpdateTopicTransactionBody.encode(e.consensusUpdateTopic,t.uint32(202).fork()).ldelim(),null!=e.consensusDeleteTopic&&Object.hasOwnProperty.call(e,"consensusDeleteTopic")&&$root.proto.ConsensusDeleteTopicTransactionBody.encode(e.consensusDeleteTopic,t.uint32(210).fork()).ldelim(),null!=e.consensusSubmitMessage&&Object.hasOwnProperty.call(e,"consensusSubmitMessage")&&$root.proto.ConsensusSubmitMessageTransactionBody.encode(e.consensusSubmitMessage,t.uint32(218).fork()).ldelim(),null!=e.uncheckedSubmit&&Object.hasOwnProperty.call(e,"uncheckedSubmit")&&$root.proto.UncheckedSubmitBody.encode(e.uncheckedSubmit,t.uint32(226).fork()).ldelim(),null!=e.tokenCreation&&Object.hasOwnProperty.call(e,"tokenCreation")&&$root.proto.TokenCreateTransactionBody.encode(e.tokenCreation,t.uint32(234).fork()).ldelim(),null!=e.tokenFreeze&&Object.hasOwnProperty.call(e,"tokenFreeze")&&$root.proto.TokenFreezeAccountTransactionBody.encode(e.tokenFreeze,t.uint32(250).fork()).ldelim(),null!=e.tokenUnfreeze&&Object.hasOwnProperty.call(e,"tokenUnfreeze")&&$root.proto.TokenUnfreezeAccountTransactionBody.encode(e.tokenUnfreeze,t.uint32(258).fork()).ldelim(),null!=e.tokenGrantKyc&&Object.hasOwnProperty.call(e,"tokenGrantKyc")&&$root.proto.TokenGrantKycTransactionBody.encode(e.tokenGrantKyc,t.uint32(266).fork()).ldelim(),null!=e.tokenRevokeKyc&&Object.hasOwnProperty.call(e,"tokenRevokeKyc")&&$root.proto.TokenRevokeKycTransactionBody.encode(e.tokenRevokeKyc,t.uint32(274).fork()).ldelim(),null!=e.tokenDeletion&&Object.hasOwnProperty.call(e,"tokenDeletion")&&$root.proto.TokenDeleteTransactionBody.encode(e.tokenDeletion,t.uint32(282).fork()).ldelim(),null!=e.tokenUpdate&&Object.hasOwnProperty.call(e,"tokenUpdate")&&$root.proto.TokenUpdateTransactionBody.encode(e.tokenUpdate,t.uint32(290).fork()).ldelim(),null!=e.tokenMint&&Object.hasOwnProperty.call(e,"tokenMint")&&$root.proto.TokenMintTransactionBody.encode(e.tokenMint,t.uint32(298).fork()).ldelim(),null!=e.tokenBurn&&Object.hasOwnProperty.call(e,"tokenBurn")&&$root.proto.TokenBurnTransactionBody.encode(e.tokenBurn,t.uint32(306).fork()).ldelim(),null!=e.tokenWipe&&Object.hasOwnProperty.call(e,"tokenWipe")&&$root.proto.TokenWipeAccountTransactionBody.encode(e.tokenWipe,t.uint32(314).fork()).ldelim(),null!=e.tokenAssociate&&Object.hasOwnProperty.call(e,"tokenAssociate")&&$root.proto.TokenAssociateTransactionBody.encode(e.tokenAssociate,t.uint32(322).fork()).ldelim(),null!=e.tokenDissociate&&Object.hasOwnProperty.call(e,"tokenDissociate")&&$root.proto.TokenDissociateTransactionBody.encode(e.tokenDissociate,t.uint32(330).fork()).ldelim(),null!=e.scheduleCreate&&Object.hasOwnProperty.call(e,"scheduleCreate")&&$root.proto.ScheduleCreateTransactionBody.encode(e.scheduleCreate,t.uint32(338).fork()).ldelim(),null!=e.scheduleDelete&&Object.hasOwnProperty.call(e,"scheduleDelete")&&$root.proto.ScheduleDeleteTransactionBody.encode(e.scheduleDelete,t.uint32(346).fork()).ldelim(),null!=e.scheduleSign&&Object.hasOwnProperty.call(e,"scheduleSign")&&$root.proto.ScheduleSignTransactionBody.encode(e.scheduleSign,t.uint32(354).fork()).ldelim(),null!=e.tokenFeeScheduleUpdate&&Object.hasOwnProperty.call(e,"tokenFeeScheduleUpdate")&&$root.proto.TokenFeeScheduleUpdateTransactionBody.encode(e.tokenFeeScheduleUpdate,t.uint32(362).fork()).ldelim(),null!=e.tokenPause&&Object.hasOwnProperty.call(e,"tokenPause")&&$root.proto.TokenPauseTransactionBody.encode(e.tokenPause,t.uint32(370).fork()).ldelim(),null!=e.tokenUnpause&&Object.hasOwnProperty.call(e,"tokenUnpause")&&$root.proto.TokenUnpauseTransactionBody.encode(e.tokenUnpause,t.uint32(378).fork()).ldelim(),null!=e.cryptoApproveAllowance&&Object.hasOwnProperty.call(e,"cryptoApproveAllowance")&&$root.proto.CryptoApproveAllowanceTransactionBody.encode(e.cryptoApproveAllowance,t.uint32(386).fork()).ldelim(),null!=e.cryptoDeleteAllowance&&Object.hasOwnProperty.call(e,"cryptoDeleteAllowance")&&$root.proto.CryptoDeleteAllowanceTransactionBody.encode(e.cryptoDeleteAllowance,t.uint32(394).fork()).ldelim(),null!=e.ethereumTransaction&&Object.hasOwnProperty.call(e,"ethereumTransaction")&&$root.proto.EthereumTransactionBody.encode(e.ethereumTransaction,t.uint32(402).fork()).ldelim(),null!=e.nodeStakeUpdate&&Object.hasOwnProperty.call(e,"nodeStakeUpdate")&&$root.proto.NodeStakeUpdateTransactionBody.encode(e.nodeStakeUpdate,t.uint32(410).fork()).ldelim(),null!=e.utilPrng&&Object.hasOwnProperty.call(e,"utilPrng")&&$root.proto.UtilPrngTransactionBody.encode(e.utilPrng,t.uint32(418).fork()).ldelim(),null!=e.tokenUpdateNfts&&Object.hasOwnProperty.call(e,"tokenUpdateNfts")&&$root.proto.TokenUpdateNftsTransactionBody.encode(e.tokenUpdateNfts,t.uint32(426).fork()).ldelim(),null!=e.nodeCreate&&Object.hasOwnProperty.call(e,"nodeCreate")&&$root.com.hedera.hapi.node.addressbook.NodeCreateTransactionBody.encode(e.nodeCreate,t.uint32(434).fork()).ldelim(),null!=e.nodeUpdate&&Object.hasOwnProperty.call(e,"nodeUpdate")&&$root.com.hedera.hapi.node.addressbook.NodeUpdateTransactionBody.encode(e.nodeUpdate,t.uint32(442).fork()).ldelim(),null!=e.nodeDelete&&Object.hasOwnProperty.call(e,"nodeDelete")&&$root.com.hedera.hapi.node.addressbook.NodeDeleteTransactionBody.encode(e.nodeDelete,t.uint32(450).fork()).ldelim(),null!=e.tokenReject&&Object.hasOwnProperty.call(e,"tokenReject")&&$root.proto.TokenRejectTransactionBody.encode(e.tokenReject,t.uint32(458).fork()).ldelim(),null!=e.tokenAirdrop&&Object.hasOwnProperty.call(e,"tokenAirdrop")&&$root.proto.TokenAirdropTransactionBody.encode(e.tokenAirdrop,t.uint32(466).fork()).ldelim(),null!=e.tokenCancelAirdrop&&Object.hasOwnProperty.call(e,"tokenCancelAirdrop")&&$root.proto.TokenCancelAirdropTransactionBody.encode(e.tokenCancelAirdrop,t.uint32(474).fork()).ldelim(),null!=e.tokenClaimAirdrop&&Object.hasOwnProperty.call(e,"tokenClaimAirdrop")&&$root.proto.TokenClaimAirdropTransactionBody.encode(e.tokenClaimAirdrop,t.uint32(482).fork()).ldelim(),null!=e.stateSignatureTransaction&&Object.hasOwnProperty.call(e,"stateSignatureTransaction")&&$root.com.hedera.hapi.platform.event.StateSignatureTransaction.encode(e.stateSignatureTransaction,t.uint32(522).fork()).ldelim(),null!=e.historyProofSignature&&Object.hasOwnProperty.call(e,"historyProofSignature")&&$root.com.hedera.hapi.services.auxiliary.history.HistoryProofSignatureTransactionBody.encode(e.historyProofSignature,t.uint32(554).fork()).ldelim(),null!=e.historyProofKeyPublication&&Object.hasOwnProperty.call(e,"historyProofKeyPublication")&&$root.com.hedera.hapi.services.auxiliary.history.HistoryProofKeyPublicationTransactionBody.encode(e.historyProofKeyPublication,t.uint32(562).fork()).ldelim(),null!=e.historyProofVote&&Object.hasOwnProperty.call(e,"historyProofVote")&&$root.com.hedera.hapi.services.auxiliary.history.HistoryProofVoteTransactionBody.encode(e.historyProofVote,t.uint32(570).fork()).ldelim(),null!=e.maxCustomFees&&e.maxCustomFees.length)for(var r=0;r<e.maxCustomFees.length;++r)$root.proto.CustomFeeLimit.encode(e.maxCustomFees[r],t.uint32(8010).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.transactionID=$root.proto.TransactionID.decode(e,e.uint32());break;case 2:o.nodeAccountID=$root.proto.AccountID.decode(e,e.uint32());break;case 3:o.transactionFee=e.uint64();break;case 4:o.transactionValidDuration=$root.proto.Duration.decode(e,e.uint32());break;case 5:o.generateRecord=e.bool();break;case 6:o.memo=e.string();break;case 7:o.contractCall=$root.proto.ContractCallTransactionBody.decode(e,e.uint32());break;case 8:o.contractCreateInstance=$root.proto.ContractCreateTransactionBody.decode(e,e.uint32());break;case 9:o.contractUpdateInstance=$root.proto.ContractUpdateTransactionBody.decode(e,e.uint32());break;case 10:o.cryptoAddLiveHash=$root.proto.CryptoAddLiveHashTransactionBody.decode(e,e.uint32());break;case 11:o.cryptoCreateAccount=$root.proto.CryptoCreateTransactionBody.decode(e,e.uint32());break;case 12:o.cryptoDelete=$root.proto.CryptoDeleteTransactionBody.decode(e,e.uint32());break;case 13:o.cryptoDeleteLiveHash=$root.proto.CryptoDeleteLiveHashTransactionBody.decode(e,e.uint32());break;case 14:o.cryptoTransfer=$root.proto.CryptoTransferTransactionBody.decode(e,e.uint32());break;case 15:o.cryptoUpdateAccount=$root.proto.CryptoUpdateTransactionBody.decode(e,e.uint32());break;case 16:o.fileAppend=$root.proto.FileAppendTransactionBody.decode(e,e.uint32());break;case 17:o.fileCreate=$root.proto.FileCreateTransactionBody.decode(e,e.uint32());break;case 18:o.fileDelete=$root.proto.FileDeleteTransactionBody.decode(e,e.uint32());break;case 19:o.fileUpdate=$root.proto.FileUpdateTransactionBody.decode(e,e.uint32());break;case 20:o.systemDelete=$root.proto.SystemDeleteTransactionBody.decode(e,e.uint32());break;case 21:o.systemUndelete=$root.proto.SystemUndeleteTransactionBody.decode(e,e.uint32());break;case 22:o.contractDeleteInstance=$root.proto.ContractDeleteTransactionBody.decode(e,e.uint32());break;case 23:o.freeze=$root.proto.FreezeTransactionBody.decode(e,e.uint32());break;case 24:o.consensusCreateTopic=$root.proto.ConsensusCreateTopicTransactionBody.decode(e,e.uint32());break;case 25:o.consensusUpdateTopic=$root.proto.ConsensusUpdateTopicTransactionBody.decode(e,e.uint32());break;case 26:o.consensusDeleteTopic=$root.proto.ConsensusDeleteTopicTransactionBody.decode(e,e.uint32());break;case 27:o.consensusSubmitMessage=$root.proto.ConsensusSubmitMessageTransactionBody.decode(e,e.uint32());break;case 28:o.uncheckedSubmit=$root.proto.UncheckedSubmitBody.decode(e,e.uint32());break;case 29:o.tokenCreation=$root.proto.TokenCreateTransactionBody.decode(e,e.uint32());break;case 31:o.tokenFreeze=$root.proto.TokenFreezeAccountTransactionBody.decode(e,e.uint32());break;case 32:o.tokenUnfreeze=$root.proto.TokenUnfreezeAccountTransactionBody.decode(e,e.uint32());break;case 33:o.tokenGrantKyc=$root.proto.TokenGrantKycTransactionBody.decode(e,e.uint32());break;case 34:o.tokenRevokeKyc=$root.proto.TokenRevokeKycTransactionBody.decode(e,e.uint32());break;case 35:o.tokenDeletion=$root.proto.TokenDeleteTransactionBody.decode(e,e.uint32());break;case 36:o.tokenUpdate=$root.proto.TokenUpdateTransactionBody.decode(e,e.uint32());break;case 37:o.tokenMint=$root.proto.TokenMintTransactionBody.decode(e,e.uint32());break;case 38:o.tokenBurn=$root.proto.TokenBurnTransactionBody.decode(e,e.uint32());break;case 39:o.tokenWipe=$root.proto.TokenWipeAccountTransactionBody.decode(e,e.uint32());break;case 40:o.tokenAssociate=$root.proto.TokenAssociateTransactionBody.decode(e,e.uint32());break;case 41:o.tokenDissociate=$root.proto.TokenDissociateTransactionBody.decode(e,e.uint32());break;case 42:o.scheduleCreate=$root.proto.ScheduleCreateTransactionBody.decode(e,e.uint32());break;case 43:o.scheduleDelete=$root.proto.ScheduleDeleteTransactionBody.decode(e,e.uint32());break;case 44:o.scheduleSign=$root.proto.ScheduleSignTransactionBody.decode(e,e.uint32());break;case 45:o.tokenFeeScheduleUpdate=$root.proto.TokenFeeScheduleUpdateTransactionBody.decode(e,e.uint32());break;case 46:o.tokenPause=$root.proto.TokenPauseTransactionBody.decode(e,e.uint32());break;case 47:o.tokenUnpause=$root.proto.TokenUnpauseTransactionBody.decode(e,e.uint32());break;case 48:o.cryptoApproveAllowance=$root.proto.CryptoApproveAllowanceTransactionBody.decode(e,e.uint32());break;case 49:o.cryptoDeleteAllowance=$root.proto.CryptoDeleteAllowanceTransactionBody.decode(e,e.uint32());break;case 50:o.ethereumTransaction=$root.proto.EthereumTransactionBody.decode(e,e.uint32());break;case 51:o.nodeStakeUpdate=$root.proto.NodeStakeUpdateTransactionBody.decode(e,e.uint32());break;case 52:o.utilPrng=$root.proto.UtilPrngTransactionBody.decode(e,e.uint32());break;case 53:o.tokenUpdateNfts=$root.proto.TokenUpdateNftsTransactionBody.decode(e,e.uint32());break;case 54:o.nodeCreate=$root.com.hedera.hapi.node.addressbook.NodeCreateTransactionBody.decode(e,e.uint32());break;case 55:o.nodeUpdate=$root.com.hedera.hapi.node.addressbook.NodeUpdateTransactionBody.decode(e,e.uint32());break;case 56:o.nodeDelete=$root.com.hedera.hapi.node.addressbook.NodeDeleteTransactionBody.decode(e,e.uint32());break;case 57:o.tokenReject=$root.proto.TokenRejectTransactionBody.decode(e,e.uint32());break;case 58:o.tokenAirdrop=$root.proto.TokenAirdropTransactionBody.decode(e,e.uint32());break;case 59:o.tokenCancelAirdrop=$root.proto.TokenCancelAirdropTransactionBody.decode(e,e.uint32());break;case 60:o.tokenClaimAirdrop=$root.proto.TokenClaimAirdropTransactionBody.decode(e,e.uint32());break;case 65:o.stateSignatureTransaction=$root.com.hedera.hapi.platform.event.StateSignatureTransaction.decode(e,e.uint32());break;case 69:o.historyProofSignature=$root.com.hedera.hapi.services.auxiliary.history.HistoryProofSignatureTransactionBody.decode(e,e.uint32());break;case 70:o.historyProofKeyPublication=$root.com.hedera.hapi.services.auxiliary.history.HistoryProofKeyPublicationTransactionBody.decode(e,e.uint32());break;case 71:o.historyProofVote=$root.com.hedera.hapi.services.auxiliary.history.HistoryProofVoteTransactionBody.decode(e,e.uint32());break;case 1001:o.maxCustomFees&&o.maxCustomFees.length||(o.maxCustomFees=[]),o.maxCustomFees.push($root.proto.CustomFeeLimit.decode(e,e.uint32()));break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TransactionBody"},e}(),e.ShardID=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.shardNum=$util.Long?$util.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.shardNum&&Object.hasOwnProperty.call(e,"shardNum")&&t.uint32(8).int64(e.shardNum),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ShardID;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.shardNum=e.int64();else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ShardID"},e}(),e.RealmID=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.shardNum=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.realmNum=$util.Long?$util.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.shardNum&&Object.hasOwnProperty.call(e,"shardNum")&&t.uint32(8).int64(e.shardNum),null!=e.realmNum&&Object.hasOwnProperty.call(e,"realmNum")&&t.uint32(16).int64(e.realmNum),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.RealmID;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.shardNum=e.int64();break;case 2:o.realmNum=e.int64();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.RealmID"},e}(),e.TokenID=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.shardNum=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.realmNum=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.tokenNum=$util.Long?$util.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.shardNum&&Object.hasOwnProperty.call(e,"shardNum")&&t.uint32(8).int64(e.shardNum),null!=e.realmNum&&Object.hasOwnProperty.call(e,"realmNum")&&t.uint32(16).int64(e.realmNum),null!=e.tokenNum&&Object.hasOwnProperty.call(e,"tokenNum")&&t.uint32(24).int64(e.tokenNum),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenID;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.shardNum=e.int64();break;case 2:o.realmNum=e.int64();break;case 3:o.tokenNum=e.int64();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenID"},e}(),e.BlockHashAlgorithm=function(){const e={},t=Object.create(e);return t[e[0]="SHA2_384"]=0,t}(),e.AccountID=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.shardNum=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.realmNum=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.accountNum=null,e.prototype.alias=null,Object.defineProperty(e.prototype,"account",{get:$util.oneOfGetter(t=["accountNum","alias"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.shardNum&&Object.hasOwnProperty.call(e,"shardNum")&&t.uint32(8).int64(e.shardNum),null!=e.realmNum&&Object.hasOwnProperty.call(e,"realmNum")&&t.uint32(16).int64(e.realmNum),null!=e.accountNum&&Object.hasOwnProperty.call(e,"accountNum")&&t.uint32(24).int64(e.accountNum),null!=e.alias&&Object.hasOwnProperty.call(e,"alias")&&t.uint32(34).bytes(e.alias),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.AccountID;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.shardNum=e.int64();break;case 2:o.realmNum=e.int64();break;case 3:o.accountNum=e.int64();break;case 4:o.alias=e.bytes();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.AccountID"},e}(),e.NftID=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.token_ID=null,e.prototype.serialNumber=$util.Long?$util.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.token_ID&&Object.hasOwnProperty.call(e,"token_ID")&&$root.proto.TokenID.encode(e.token_ID,t.uint32(10).fork()).ldelim(),null!=e.serialNumber&&Object.hasOwnProperty.call(e,"serialNumber")&&t.uint32(16).int64(e.serialNumber),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.NftID;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.token_ID=$root.proto.TokenID.decode(e,e.uint32());break;case 2:o.serialNumber=e.int64();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.NftID"},e}(),e.FileID=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.shardNum=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.realmNum=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.fileNum=$util.Long?$util.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.shardNum&&Object.hasOwnProperty.call(e,"shardNum")&&t.uint32(8).int64(e.shardNum),null!=e.realmNum&&Object.hasOwnProperty.call(e,"realmNum")&&t.uint32(16).int64(e.realmNum),null!=e.fileNum&&Object.hasOwnProperty.call(e,"fileNum")&&t.uint32(24).int64(e.fileNum),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.FileID;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.shardNum=e.int64();break;case 2:o.realmNum=e.int64();break;case 3:o.fileNum=e.int64();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.FileID"},e}(),e.ContractID=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.shardNum=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.realmNum=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.contractNum=null,e.prototype.evmAddress=null,Object.defineProperty(e.prototype,"contract",{get:$util.oneOfGetter(t=["contractNum","evmAddress"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.shardNum&&Object.hasOwnProperty.call(e,"shardNum")&&t.uint32(8).int64(e.shardNum),null!=e.realmNum&&Object.hasOwnProperty.call(e,"realmNum")&&t.uint32(16).int64(e.realmNum),null!=e.contractNum&&Object.hasOwnProperty.call(e,"contractNum")&&t.uint32(24).int64(e.contractNum),null!=e.evmAddress&&Object.hasOwnProperty.call(e,"evmAddress")&&t.uint32(34).bytes(e.evmAddress),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ContractID;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.shardNum=e.int64();break;case 2:o.realmNum=e.int64();break;case 3:o.contractNum=e.int64();break;case 4:o.evmAddress=e.bytes();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ContractID"},e}(),e.TopicID=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.shardNum=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.realmNum=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.topicNum=$util.Long?$util.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.shardNum&&Object.hasOwnProperty.call(e,"shardNum")&&t.uint32(8).int64(e.shardNum),null!=e.realmNum&&Object.hasOwnProperty.call(e,"realmNum")&&t.uint32(16).int64(e.realmNum),null!=e.topicNum&&Object.hasOwnProperty.call(e,"topicNum")&&t.uint32(24).int64(e.topicNum),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TopicID;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.shardNum=e.int64();break;case 2:o.realmNum=e.int64();break;case 3:o.topicNum=e.int64();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TopicID"},e}(),e.ScheduleID=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.shardNum=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.realmNum=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.scheduleNum=$util.Long?$util.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.shardNum&&Object.hasOwnProperty.call(e,"shardNum")&&t.uint32(8).int64(e.shardNum),null!=e.realmNum&&Object.hasOwnProperty.call(e,"realmNum")&&t.uint32(16).int64(e.realmNum),null!=e.scheduleNum&&Object.hasOwnProperty.call(e,"scheduleNum")&&t.uint32(24).int64(e.scheduleNum),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ScheduleID;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.shardNum=e.int64();break;case 2:o.realmNum=e.int64();break;case 3:o.scheduleNum=e.int64();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ScheduleID"},e}(),e.TransactionID=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.transactionValidStart=null,e.prototype.accountID=null,e.prototype.scheduled=!1,e.prototype.nonce=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.transactionValidStart&&Object.hasOwnProperty.call(e,"transactionValidStart")&&$root.proto.Timestamp.encode(e.transactionValidStart,t.uint32(10).fork()).ldelim(),null!=e.accountID&&Object.hasOwnProperty.call(e,"accountID")&&$root.proto.AccountID.encode(e.accountID,t.uint32(18).fork()).ldelim(),null!=e.scheduled&&Object.hasOwnProperty.call(e,"scheduled")&&t.uint32(24).bool(e.scheduled),null!=e.nonce&&Object.hasOwnProperty.call(e,"nonce")&&t.uint32(32).int32(e.nonce),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TransactionID;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.transactionValidStart=$root.proto.Timestamp.decode(e,e.uint32());break;case 2:o.accountID=$root.proto.AccountID.decode(e,e.uint32());break;case 3:o.scheduled=e.bool();break;case 4:o.nonce=e.int32();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TransactionID"},e}(),e.AccountAmount=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.accountID=null,e.prototype.amount=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.isApproval=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.accountID&&Object.hasOwnProperty.call(e,"accountID")&&$root.proto.AccountID.encode(e.accountID,t.uint32(10).fork()).ldelim(),null!=e.amount&&Object.hasOwnProperty.call(e,"amount")&&t.uint32(16).sint64(e.amount),null!=e.isApproval&&Object.hasOwnProperty.call(e,"isApproval")&&t.uint32(24).bool(e.isApproval),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.AccountAmount;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.accountID=$root.proto.AccountID.decode(e,e.uint32());break;case 2:o.amount=e.sint64();break;case 3:o.isApproval=e.bool();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.AccountAmount"},e}(),e.TransferList=function(){function e(e){if(this.accountAmounts=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.accountAmounts=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.accountAmounts&&e.accountAmounts.length)for(var r=0;r<e.accountAmounts.length;++r)$root.proto.AccountAmount.encode(e.accountAmounts[r],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TransferList;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.accountAmounts&&o.accountAmounts.length||(o.accountAmounts=[]),o.accountAmounts.push($root.proto.AccountAmount.decode(e,e.uint32()));else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TransferList"},e}(),e.NftTransfer=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.senderAccountID=null,e.prototype.receiverAccountID=null,e.prototype.serialNumber=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.isApproval=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.senderAccountID&&Object.hasOwnProperty.call(e,"senderAccountID")&&$root.proto.AccountID.encode(e.senderAccountID,t.uint32(10).fork()).ldelim(),null!=e.receiverAccountID&&Object.hasOwnProperty.call(e,"receiverAccountID")&&$root.proto.AccountID.encode(e.receiverAccountID,t.uint32(18).fork()).ldelim(),null!=e.serialNumber&&Object.hasOwnProperty.call(e,"serialNumber")&&t.uint32(24).int64(e.serialNumber),null!=e.isApproval&&Object.hasOwnProperty.call(e,"isApproval")&&t.uint32(32).bool(e.isApproval),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.NftTransfer;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.senderAccountID=$root.proto.AccountID.decode(e,e.uint32());break;case 2:o.receiverAccountID=$root.proto.AccountID.decode(e,e.uint32());break;case 3:o.serialNumber=e.int64();break;case 4:o.isApproval=e.bool();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.NftTransfer"},e}(),e.TokenTransferList=function(){function e(e){if(this.transfers=[],this.nftTransfers=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.token=null,e.prototype.transfers=$util.emptyArray,e.prototype.nftTransfers=$util.emptyArray,e.prototype.expectedDecimals=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.token&&Object.hasOwnProperty.call(e,"token")&&$root.proto.TokenID.encode(e.token,t.uint32(10).fork()).ldelim(),null!=e.transfers&&e.transfers.length)for(var r=0;r<e.transfers.length;++r)$root.proto.AccountAmount.encode(e.transfers[r],t.uint32(18).fork()).ldelim();if(null!=e.nftTransfers&&e.nftTransfers.length)for(r=0;r<e.nftTransfers.length;++r)$root.proto.NftTransfer.encode(e.nftTransfers[r],t.uint32(26).fork()).ldelim();return null!=e.expectedDecimals&&Object.hasOwnProperty.call(e,"expectedDecimals")&&$root.google.protobuf.UInt32Value.encode(e.expectedDecimals,t.uint32(34).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenTransferList;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.token=$root.proto.TokenID.decode(e,e.uint32());break;case 2:o.transfers&&o.transfers.length||(o.transfers=[]),o.transfers.push($root.proto.AccountAmount.decode(e,e.uint32()));break;case 3:o.nftTransfers&&o.nftTransfers.length||(o.nftTransfers=[]),o.nftTransfers.push($root.proto.NftTransfer.decode(e,e.uint32()));break;case 4:o.expectedDecimals=$root.google.protobuf.UInt32Value.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenTransferList"},e}(),e.Fraction=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.numerator=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.denominator=$util.Long?$util.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.numerator&&Object.hasOwnProperty.call(e,"numerator")&&t.uint32(8).int64(e.numerator),null!=e.denominator&&Object.hasOwnProperty.call(e,"denominator")&&t.uint32(16).int64(e.denominator),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.Fraction;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.numerator=e.int64();break;case 2:o.denominator=e.int64();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.Fraction"},e}(),e.TokenType=function(){const e={},t=Object.create(e);return t[e[0]="FUNGIBLE_COMMON"]=0,t[e[1]="NON_FUNGIBLE_UNIQUE"]=1,t}(),e.SubType=function(){const e={},t=Object.create(e);return t[e[0]="DEFAULT"]=0,t[e[1]="TOKEN_FUNGIBLE_COMMON"]=1,t[e[2]="TOKEN_NON_FUNGIBLE_UNIQUE"]=2,t[e[3]="TOKEN_FUNGIBLE_COMMON_WITH_CUSTOM_FEES"]=3,t[e[4]="TOKEN_NON_FUNGIBLE_UNIQUE_WITH_CUSTOM_FEES"]=4,t[e[5]="SCHEDULE_CREATE_CONTRACT_CALL"]=5,t[e[6]="TOPIC_CREATE_WITH_CUSTOM_FEES"]=6,t}(),e.TokenSupplyType=function(){const e={},t=Object.create(e);return t[e[0]="INFINITE"]=0,t[e[1]="FINITE"]=1,t}(),e.TokenKeyValidation=function(){const e={},t=Object.create(e);return t[e[0]="FULL_VALIDATION"]=0,t[e[1]="NO_VALIDATION"]=1,t}(),e.TokenFreezeStatus=function(){const e={},t=Object.create(e);return t[e[0]="FreezeNotApplicable"]=0,t[e[1]="Frozen"]=1,t[e[2]="Unfrozen"]=2,t}(),e.TokenKycStatus=function(){const e={},t=Object.create(e);return t[e[0]="KycNotApplicable"]=0,t[e[1]="Granted"]=1,t[e[2]="Revoked"]=2,t}(),e.TokenPauseStatus=function(){const e={},t=Object.create(e);return t[e[0]="PauseNotApplicable"]=0,t[e[1]="Paused"]=1,t[e[2]="Unpaused"]=2,t}(),e.Key=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.contractID=null,e.prototype.ed25519=null,e.prototype.RSA_3072=null,e.prototype.ECDSA_384=null,e.prototype.thresholdKey=null,e.prototype.keyList=null,e.prototype.ECDSASecp256k1=null,e.prototype.delegatableContractId=null,Object.defineProperty(e.prototype,"key",{get:$util.oneOfGetter(t=["contractID","ed25519","RSA_3072","ECDSA_384","thresholdKey","keyList","ECDSASecp256k1","delegatableContractId"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.contractID&&Object.hasOwnProperty.call(e,"contractID")&&$root.proto.ContractID.encode(e.contractID,t.uint32(10).fork()).ldelim(),null!=e.ed25519&&Object.hasOwnProperty.call(e,"ed25519")&&t.uint32(18).bytes(e.ed25519),null!=e.RSA_3072&&Object.hasOwnProperty.call(e,"RSA_3072")&&t.uint32(26).bytes(e.RSA_3072),null!=e.ECDSA_384&&Object.hasOwnProperty.call(e,"ECDSA_384")&&t.uint32(34).bytes(e.ECDSA_384),null!=e.thresholdKey&&Object.hasOwnProperty.call(e,"thresholdKey")&&$root.proto.ThresholdKey.encode(e.thresholdKey,t.uint32(42).fork()).ldelim(),null!=e.keyList&&Object.hasOwnProperty.call(e,"keyList")&&$root.proto.KeyList.encode(e.keyList,t.uint32(50).fork()).ldelim(),null!=e.ECDSASecp256k1&&Object.hasOwnProperty.call(e,"ECDSASecp256k1")&&t.uint32(58).bytes(e.ECDSASecp256k1),null!=e.delegatableContractId&&Object.hasOwnProperty.call(e,"delegatableContractId")&&$root.proto.ContractID.encode(e.delegatableContractId,t.uint32(66).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.Key;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.contractID=$root.proto.ContractID.decode(e,e.uint32());break;case 2:o.ed25519=e.bytes();break;case 3:o.RSA_3072=e.bytes();break;case 4:o.ECDSA_384=e.bytes();break;case 5:o.thresholdKey=$root.proto.ThresholdKey.decode(e,e.uint32());break;case 6:o.keyList=$root.proto.KeyList.decode(e,e.uint32());break;case 7:o.ECDSASecp256k1=e.bytes();break;case 8:o.delegatableContractId=$root.proto.ContractID.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.Key"},e}(),e.ThresholdKey=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.threshold=0,e.prototype.keys=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.threshold&&Object.hasOwnProperty.call(e,"threshold")&&t.uint32(8).uint32(e.threshold),null!=e.keys&&Object.hasOwnProperty.call(e,"keys")&&$root.proto.KeyList.encode(e.keys,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ThresholdKey;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.threshold=e.uint32();break;case 2:o.keys=$root.proto.KeyList.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ThresholdKey"},e}(),e.KeyList=function(){function e(e){if(this.keys=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.keys=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.keys&&e.keys.length)for(var r=0;r<e.keys.length;++r)$root.proto.Key.encode(e.keys[r],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.KeyList;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.keys&&o.keys.length||(o.keys=[]),o.keys.push($root.proto.Key.decode(e,e.uint32()));else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.KeyList"},e}(),e.Signature=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.contract=null,e.prototype.ed25519=null,e.prototype.RSA_3072=null,e.prototype.ECDSA_384=null,e.prototype.thresholdSignature=null,e.prototype.signatureList=null,Object.defineProperty(e.prototype,"signature",{get:$util.oneOfGetter(t=["contract","ed25519","RSA_3072","ECDSA_384","thresholdSignature","signatureList"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.contract&&Object.hasOwnProperty.call(e,"contract")&&t.uint32(10).bytes(e.contract),null!=e.ed25519&&Object.hasOwnProperty.call(e,"ed25519")&&t.uint32(18).bytes(e.ed25519),null!=e.RSA_3072&&Object.hasOwnProperty.call(e,"RSA_3072")&&t.uint32(26).bytes(e.RSA_3072),null!=e.ECDSA_384&&Object.hasOwnProperty.call(e,"ECDSA_384")&&t.uint32(34).bytes(e.ECDSA_384),null!=e.thresholdSignature&&Object.hasOwnProperty.call(e,"thresholdSignature")&&$root.proto.ThresholdSignature.encode(e.thresholdSignature,t.uint32(42).fork()).ldelim(),null!=e.signatureList&&Object.hasOwnProperty.call(e,"signatureList")&&$root.proto.SignatureList.encode(e.signatureList,t.uint32(50).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.Signature;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.contract=e.bytes();break;case 2:o.ed25519=e.bytes();break;case 3:o.RSA_3072=e.bytes();break;case 4:o.ECDSA_384=e.bytes();break;case 5:o.thresholdSignature=$root.proto.ThresholdSignature.decode(e,e.uint32());break;case 6:o.signatureList=$root.proto.SignatureList.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.Signature"},e}(),e.ThresholdSignature=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.sigs=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.sigs&&Object.hasOwnProperty.call(e,"sigs")&&$root.proto.SignatureList.encode(e.sigs,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ThresholdSignature;e.pos<r;){var n=e.uint32();if(n>>>3==2)o.sigs=$root.proto.SignatureList.decode(e,e.uint32());else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ThresholdSignature"},e}(),e.SignatureList=function(){function e(e){if(this.sigs=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.sigs=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.sigs&&e.sigs.length)for(var r=0;r<e.sigs.length;++r)$root.proto.Signature.encode(e.sigs[r],t.uint32(18).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.SignatureList;e.pos<r;){var n=e.uint32();if(n>>>3==2)o.sigs&&o.sigs.length||(o.sigs=[]),o.sigs.push($root.proto.Signature.decode(e,e.uint32()));else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.SignatureList"},e}(),e.SignaturePair=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.pubKeyPrefix=$util.newBuffer([]),e.prototype.contract=null,e.prototype.ed25519=null,e.prototype.RSA_3072=null,e.prototype.ECDSA_384=null,e.prototype.ECDSASecp256k1=null,Object.defineProperty(e.prototype,"signature",{get:$util.oneOfGetter(t=["contract","ed25519","RSA_3072","ECDSA_384","ECDSASecp256k1"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.pubKeyPrefix&&Object.hasOwnProperty.call(e,"pubKeyPrefix")&&t.uint32(10).bytes(e.pubKeyPrefix),null!=e.contract&&Object.hasOwnProperty.call(e,"contract")&&t.uint32(18).bytes(e.contract),null!=e.ed25519&&Object.hasOwnProperty.call(e,"ed25519")&&t.uint32(26).bytes(e.ed25519),null!=e.RSA_3072&&Object.hasOwnProperty.call(e,"RSA_3072")&&t.uint32(34).bytes(e.RSA_3072),null!=e.ECDSA_384&&Object.hasOwnProperty.call(e,"ECDSA_384")&&t.uint32(42).bytes(e.ECDSA_384),null!=e.ECDSASecp256k1&&Object.hasOwnProperty.call(e,"ECDSASecp256k1")&&t.uint32(50).bytes(e.ECDSASecp256k1),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.SignaturePair;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.pubKeyPrefix=e.bytes();break;case 2:o.contract=e.bytes();break;case 3:o.ed25519=e.bytes();break;case 4:o.RSA_3072=e.bytes();break;case 5:o.ECDSA_384=e.bytes();break;case 6:o.ECDSASecp256k1=e.bytes();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.SignaturePair"},e}(),e.SignatureMap=function(){function e(e){if(this.sigPair=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.sigPair=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.sigPair&&e.sigPair.length)for(var r=0;r<e.sigPair.length;++r)$root.proto.SignaturePair.encode(e.sigPair[r],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.SignatureMap;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.sigPair&&o.sigPair.length||(o.sigPair=[]),o.sigPair.push($root.proto.SignaturePair.decode(e,e.uint32()));else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.SignatureMap"},e}(),e.HederaFunctionality=function(){const e={},t=Object.create(e);return t[e[0]="NONE"]=0,t[e[1]="CryptoTransfer"]=1,t[e[2]="CryptoUpdate"]=2,t[e[3]="CryptoDelete"]=3,t[e[4]="CryptoAddLiveHash"]=4,t[e[5]="CryptoDeleteLiveHash"]=5,t[e[6]="ContractCall"]=6,t[e[7]="ContractCreate"]=7,t[e[8]="ContractUpdate"]=8,t[e[9]="FileCreate"]=9,t[e[10]="FileAppend"]=10,t[e[11]="FileUpdate"]=11,t[e[12]="FileDelete"]=12,t[e[13]="CryptoGetAccountBalance"]=13,t[e[14]="CryptoGetAccountRecords"]=14,t[e[15]="CryptoGetInfo"]=15,t[e[16]="ContractCallLocal"]=16,t[e[17]="ContractGetInfo"]=17,t[e[18]="ContractGetBytecode"]=18,t[e[19]="GetBySolidityID"]=19,t[e[20]="GetByKey"]=20,t[e[21]="CryptoGetLiveHash"]=21,t[e[22]="CryptoGetStakers"]=22,t[e[23]="FileGetContents"]=23,t[e[24]="FileGetInfo"]=24,t[e[25]="TransactionGetRecord"]=25,t[e[26]="ContractGetRecords"]=26,t[e[27]="CryptoCreate"]=27,t[e[28]="SystemDelete"]=28,t[e[29]="SystemUndelete"]=29,t[e[30]="ContractDelete"]=30,t[e[31]="Freeze"]=31,t[e[32]="CreateTransactionRecord"]=32,t[e[33]="CryptoAccountAutoRenew"]=33,t[e[34]="ContractAutoRenew"]=34,t[e[35]="GetVersionInfo"]=35,t[e[36]="TransactionGetReceipt"]=36,t[e[50]="ConsensusCreateTopic"]=50,t[e[51]="ConsensusUpdateTopic"]=51,t[e[52]="ConsensusDeleteTopic"]=52,t[e[53]="ConsensusGetTopicInfo"]=53,t[e[54]="ConsensusSubmitMessage"]=54,t[e[55]="UncheckedSubmit"]=55,t[e[56]="TokenCreate"]=56,t[e[58]="TokenGetInfo"]=58,t[e[59]="TokenFreezeAccount"]=59,t[e[60]="TokenUnfreezeAccount"]=60,t[e[61]="TokenGrantKycToAccount"]=61,t[e[62]="TokenRevokeKycFromAccount"]=62,t[e[63]="TokenDelete"]=63,t[e[64]="TokenUpdate"]=64,t[e[65]="TokenMint"]=65,t[e[66]="TokenBurn"]=66,t[e[67]="TokenAccountWipe"]=67,t[e[68]="TokenAssociateToAccount"]=68,t[e[69]="TokenDissociateFromAccount"]=69,t[e[70]="ScheduleCreate"]=70,t[e[71]="ScheduleDelete"]=71,t[e[72]="ScheduleSign"]=72,t[e[73]="ScheduleGetInfo"]=73,t[e[74]="TokenGetAccountNftInfos"]=74,t[e[75]="TokenGetNftInfo"]=75,t[e[76]="TokenGetNftInfos"]=76,t[e[77]="TokenFeeScheduleUpdate"]=77,t[e[78]="NetworkGetExecutionTime"]=78,t[e[79]="TokenPause"]=79,t[e[80]="TokenUnpause"]=80,t[e[81]="CryptoApproveAllowance"]=81,t[e[82]="CryptoDeleteAllowance"]=82,t[e[83]="GetAccountDetails"]=83,t[e[84]="EthereumTransaction"]=84,t[e[85]="NodeStakeUpdate"]=85,t[e[86]="UtilPrng"]=86,t[e[87]="TransactionGetFastRecord"]=87,t[e[88]="TokenUpdateNfts"]=88,t[e[89]="NodeCreate"]=89,t[e[90]="NodeUpdate"]=90,t[e[91]="NodeDelete"]=91,t[e[92]="TokenReject"]=92,t[e[93]="TokenAirdrop"]=93,t[e[94]="TokenCancelAirdrop"]=94,t[e[95]="TokenClaimAirdrop"]=95,t[e[100]="StateSignatureTransaction"]=100,t[e[104]="HistoryAssemblySignature"]=104,t[e[105]="HistoryProofKeyPublication"]=105,t[e[106]="HistoryProofVote"]=106,t}(),e.FeeComponents=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.min=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.max=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.constant=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.bpt=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.vpt=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.rbh=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.sbh=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.gas=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.tv=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.bpr=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.sbpr=$util.Long?$util.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.min&&Object.hasOwnProperty.call(e,"min")&&t.uint32(8).int64(e.min),null!=e.max&&Object.hasOwnProperty.call(e,"max")&&t.uint32(16).int64(e.max),null!=e.constant&&Object.hasOwnProperty.call(e,"constant")&&t.uint32(24).int64(e.constant),null!=e.bpt&&Object.hasOwnProperty.call(e,"bpt")&&t.uint32(32).int64(e.bpt),null!=e.vpt&&Object.hasOwnProperty.call(e,"vpt")&&t.uint32(40).int64(e.vpt),null!=e.rbh&&Object.hasOwnProperty.call(e,"rbh")&&t.uint32(48).int64(e.rbh),null!=e.sbh&&Object.hasOwnProperty.call(e,"sbh")&&t.uint32(56).int64(e.sbh),null!=e.gas&&Object.hasOwnProperty.call(e,"gas")&&t.uint32(64).int64(e.gas),null!=e.tv&&Object.hasOwnProperty.call(e,"tv")&&t.uint32(72).int64(e.tv),null!=e.bpr&&Object.hasOwnProperty.call(e,"bpr")&&t.uint32(80).int64(e.bpr),null!=e.sbpr&&Object.hasOwnProperty.call(e,"sbpr")&&t.uint32(88).int64(e.sbpr),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.FeeComponents;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.min=e.int64();break;case 2:o.max=e.int64();break;case 3:o.constant=e.int64();break;case 4:o.bpt=e.int64();break;case 5:o.vpt=e.int64();break;case 6:o.rbh=e.int64();break;case 7:o.sbh=e.int64();break;case 8:o.gas=e.int64();break;case 9:o.tv=e.int64();break;case 10:o.bpr=e.int64();break;case 11:o.sbpr=e.int64();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.FeeComponents"},e}(),e.TransactionFeeSchedule=function(){function e(e){if(this.fees=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.hederaFunctionality=0,e.prototype.feeData=null,e.prototype.fees=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.hederaFunctionality&&Object.hasOwnProperty.call(e,"hederaFunctionality")&&t.uint32(8).int32(e.hederaFunctionality),null!=e.feeData&&Object.hasOwnProperty.call(e,"feeData")&&$root.proto.FeeData.encode(e.feeData,t.uint32(18).fork()).ldelim(),null!=e.fees&&e.fees.length)for(var r=0;r<e.fees.length;++r)$root.proto.FeeData.encode(e.fees[r],t.uint32(26).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TransactionFeeSchedule;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.hederaFunctionality=e.int32();break;case 2:o.feeData=$root.proto.FeeData.decode(e,e.uint32());break;case 3:o.fees&&o.fees.length||(o.fees=[]),o.fees.push($root.proto.FeeData.decode(e,e.uint32()));break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TransactionFeeSchedule"},e}(),e.FeeData=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.nodedata=null,e.prototype.networkdata=null,e.prototype.servicedata=null,e.prototype.subType=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.nodedata&&Object.hasOwnProperty.call(e,"nodedata")&&$root.proto.FeeComponents.encode(e.nodedata,t.uint32(10).fork()).ldelim(),null!=e.networkdata&&Object.hasOwnProperty.call(e,"networkdata")&&$root.proto.FeeComponents.encode(e.networkdata,t.uint32(18).fork()).ldelim(),null!=e.servicedata&&Object.hasOwnProperty.call(e,"servicedata")&&$root.proto.FeeComponents.encode(e.servicedata,t.uint32(26).fork()).ldelim(),null!=e.subType&&Object.hasOwnProperty.call(e,"subType")&&t.uint32(32).int32(e.subType),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.FeeData;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.nodedata=$root.proto.FeeComponents.decode(e,e.uint32());break;case 2:o.networkdata=$root.proto.FeeComponents.decode(e,e.uint32());break;case 3:o.servicedata=$root.proto.FeeComponents.decode(e,e.uint32());break;case 4:o.subType=e.int32();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.FeeData"},e}(),e.FeeSchedule=function(){function e(e){if(this.transactionFeeSchedule=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.transactionFeeSchedule=$util.emptyArray,e.prototype.expiryTime=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.transactionFeeSchedule&&e.transactionFeeSchedule.length)for(var r=0;r<e.transactionFeeSchedule.length;++r)$root.proto.TransactionFeeSchedule.encode(e.transactionFeeSchedule[r],t.uint32(10).fork()).ldelim();return null!=e.expiryTime&&Object.hasOwnProperty.call(e,"expiryTime")&&$root.proto.TimestampSeconds.encode(e.expiryTime,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.FeeSchedule;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.transactionFeeSchedule&&o.transactionFeeSchedule.length||(o.transactionFeeSchedule=[]),o.transactionFeeSchedule.push($root.proto.TransactionFeeSchedule.decode(e,e.uint32()));break;case 2:o.expiryTime=$root.proto.TimestampSeconds.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.FeeSchedule"},e}(),e.CurrentAndNextFeeSchedule=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.currentFeeSchedule=null,e.prototype.nextFeeSchedule=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.currentFeeSchedule&&Object.hasOwnProperty.call(e,"currentFeeSchedule")&&$root.proto.FeeSchedule.encode(e.currentFeeSchedule,t.uint32(10).fork()).ldelim(),null!=e.nextFeeSchedule&&Object.hasOwnProperty.call(e,"nextFeeSchedule")&&$root.proto.FeeSchedule.encode(e.nextFeeSchedule,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.CurrentAndNextFeeSchedule;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.currentFeeSchedule=$root.proto.FeeSchedule.decode(e,e.uint32());break;case 2:o.nextFeeSchedule=$root.proto.FeeSchedule.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.CurrentAndNextFeeSchedule"},e}(),e.ServiceEndpoint=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.ipAddressV4=$util.newBuffer([]),e.prototype.port=0,e.prototype.domainName="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.ipAddressV4&&Object.hasOwnProperty.call(e,"ipAddressV4")&&t.uint32(10).bytes(e.ipAddressV4),null!=e.port&&Object.hasOwnProperty.call(e,"port")&&t.uint32(16).int32(e.port),null!=e.domainName&&Object.hasOwnProperty.call(e,"domainName")&&t.uint32(26).string(e.domainName),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ServiceEndpoint;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.ipAddressV4=e.bytes();break;case 2:o.port=e.int32();break;case 3:o.domainName=e.string();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ServiceEndpoint"},e}(),e.NodeAddress=function(){function e(e){if(this.serviceEndpoint=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.ipAddress=$util.newBuffer([]),e.prototype.portno=0,e.prototype.memo=$util.newBuffer([]),e.prototype.RSA_PubKey="",e.prototype.nodeId=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.nodeAccountId=null,e.prototype.nodeCertHash=$util.newBuffer([]),e.prototype.serviceEndpoint=$util.emptyArray,e.prototype.description="",e.prototype.stake=$util.Long?$util.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.ipAddress&&Object.hasOwnProperty.call(e,"ipAddress")&&t.uint32(10).bytes(e.ipAddress),null!=e.portno&&Object.hasOwnProperty.call(e,"portno")&&t.uint32(16).int32(e.portno),null!=e.memo&&Object.hasOwnProperty.call(e,"memo")&&t.uint32(26).bytes(e.memo),null!=e.RSA_PubKey&&Object.hasOwnProperty.call(e,"RSA_PubKey")&&t.uint32(34).string(e.RSA_PubKey),null!=e.nodeId&&Object.hasOwnProperty.call(e,"nodeId")&&t.uint32(40).int64(e.nodeId),null!=e.nodeAccountId&&Object.hasOwnProperty.call(e,"nodeAccountId")&&$root.proto.AccountID.encode(e.nodeAccountId,t.uint32(50).fork()).ldelim(),null!=e.nodeCertHash&&Object.hasOwnProperty.call(e,"nodeCertHash")&&t.uint32(58).bytes(e.nodeCertHash),null!=e.serviceEndpoint&&e.serviceEndpoint.length)for(var r=0;r<e.serviceEndpoint.length;++r)$root.proto.ServiceEndpoint.encode(e.serviceEndpoint[r],t.uint32(66).fork()).ldelim();return null!=e.description&&Object.hasOwnProperty.call(e,"description")&&t.uint32(74).string(e.description),null!=e.stake&&Object.hasOwnProperty.call(e,"stake")&&t.uint32(80).int64(e.stake),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.NodeAddress;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.ipAddress=e.bytes();break;case 2:o.portno=e.int32();break;case 3:o.memo=e.bytes();break;case 4:o.RSA_PubKey=e.string();break;case 5:o.nodeId=e.int64();break;case 6:o.nodeAccountId=$root.proto.AccountID.decode(e,e.uint32());break;case 7:o.nodeCertHash=e.bytes();break;case 8:o.serviceEndpoint&&o.serviceEndpoint.length||(o.serviceEndpoint=[]),o.serviceEndpoint.push($root.proto.ServiceEndpoint.decode(e,e.uint32()));break;case 9:o.description=e.string();break;case 10:o.stake=e.int64();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.NodeAddress"},e}(),e.NodeAddressBook=function(){function e(e){if(this.nodeAddress=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.nodeAddress=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.nodeAddress&&e.nodeAddress.length)for(var r=0;r<e.nodeAddress.length;++r)$root.proto.NodeAddress.encode(e.nodeAddress[r],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.NodeAddressBook;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.nodeAddress&&o.nodeAddress.length||(o.nodeAddress=[]),o.nodeAddress.push($root.proto.NodeAddress.decode(e,e.uint32()));else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.NodeAddressBook"},e}(),e.SemanticVersion=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.major=0,e.prototype.minor=0,e.prototype.patch=0,e.prototype.pre="",e.prototype.build="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.major&&Object.hasOwnProperty.call(e,"major")&&t.uint32(8).int32(e.major),null!=e.minor&&Object.hasOwnProperty.call(e,"minor")&&t.uint32(16).int32(e.minor),null!=e.patch&&Object.hasOwnProperty.call(e,"patch")&&t.uint32(24).int32(e.patch),null!=e.pre&&Object.hasOwnProperty.call(e,"pre")&&t.uint32(34).string(e.pre),null!=e.build&&Object.hasOwnProperty.call(e,"build")&&t.uint32(42).string(e.build),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.SemanticVersion;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.major=e.int32();break;case 2:o.minor=e.int32();break;case 3:o.patch=e.int32();break;case 4:o.pre=e.string();break;case 5:o.build=e.string();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.SemanticVersion"},e}(),e.Setting=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.name="",e.prototype.value="",e.prototype.data=$util.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(18).string(e.value),null!=e.data&&Object.hasOwnProperty.call(e,"data")&&t.uint32(26).bytes(e.data),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.Setting;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.name=e.string();break;case 2:o.value=e.string();break;case 3:o.data=e.bytes();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.Setting"},e}(),e.ServicesConfigurationList=function(){function e(e){if(this.nameValue=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.nameValue=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.nameValue&&e.nameValue.length)for(var r=0;r<e.nameValue.length;++r)$root.proto.Setting.encode(e.nameValue[r],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ServicesConfigurationList;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.nameValue&&o.nameValue.length||(o.nameValue=[]),o.nameValue.push($root.proto.Setting.decode(e,e.uint32()));else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ServicesConfigurationList"},e}(),e.TokenRelationship=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.tokenId=null,e.prototype.symbol="",e.prototype.balance=$util.Long?$util.Long.fromBits(0,0,!0):0,e.prototype.kycStatus=0,e.prototype.freezeStatus=0,e.prototype.decimals=0,e.prototype.automaticAssociation=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.tokenId&&Object.hasOwnProperty.call(e,"tokenId")&&$root.proto.TokenID.encode(e.tokenId,t.uint32(10).fork()).ldelim(),null!=e.symbol&&Object.hasOwnProperty.call(e,"symbol")&&t.uint32(18).string(e.symbol),null!=e.balance&&Object.hasOwnProperty.call(e,"balance")&&t.uint32(24).uint64(e.balance),null!=e.kycStatus&&Object.hasOwnProperty.call(e,"kycStatus")&&t.uint32(32).int32(e.kycStatus),null!=e.freezeStatus&&Object.hasOwnProperty.call(e,"freezeStatus")&&t.uint32(40).int32(e.freezeStatus),null!=e.decimals&&Object.hasOwnProperty.call(e,"decimals")&&t.uint32(48).uint32(e.decimals),null!=e.automaticAssociation&&Object.hasOwnProperty.call(e,"automaticAssociation")&&t.uint32(56).bool(e.automaticAssociation),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenRelationship;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.tokenId=$root.proto.TokenID.decode(e,e.uint32());break;case 2:o.symbol=e.string();break;case 3:o.balance=e.uint64();break;case 4:o.kycStatus=e.int32();break;case 5:o.freezeStatus=e.int32();break;case 6:o.decimals=e.uint32();break;case 7:o.automaticAssociation=e.bool();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenRelationship"},e}(),e.TokenBalance=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.tokenId=null,e.prototype.balance=$util.Long?$util.Long.fromBits(0,0,!0):0,e.prototype.decimals=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.tokenId&&Object.hasOwnProperty.call(e,"tokenId")&&$root.proto.TokenID.encode(e.tokenId,t.uint32(10).fork()).ldelim(),null!=e.balance&&Object.hasOwnProperty.call(e,"balance")&&t.uint32(16).uint64(e.balance),null!=e.decimals&&Object.hasOwnProperty.call(e,"decimals")&&t.uint32(24).uint32(e.decimals),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenBalance;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.tokenId=$root.proto.TokenID.decode(e,e.uint32());break;case 2:o.balance=e.uint64();break;case 3:o.decimals=e.uint32();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenBalance"},e}(),e.TokenBalances=function(){function e(e){if(this.tokenBalances=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.tokenBalances=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.tokenBalances&&e.tokenBalances.length)for(var r=0;r<e.tokenBalances.length;++r)$root.proto.TokenBalance.encode(e.tokenBalances[r],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenBalances;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.tokenBalances&&o.tokenBalances.length||(o.tokenBalances=[]),o.tokenBalances.push($root.proto.TokenBalance.decode(e,e.uint32()));else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenBalances"},e}(),e.TokenAssociation=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.tokenId=null,e.prototype.accountId=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.tokenId&&Object.hasOwnProperty.call(e,"tokenId")&&$root.proto.TokenID.encode(e.tokenId,t.uint32(10).fork()).ldelim(),null!=e.accountId&&Object.hasOwnProperty.call(e,"accountId")&&$root.proto.AccountID.encode(e.accountId,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenAssociation;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.tokenId=$root.proto.TokenID.decode(e,e.uint32());break;case 2:o.accountId=$root.proto.AccountID.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenAssociation"},e}(),e.StakingInfo=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.declineReward=!1,e.prototype.stakePeriodStart=null,e.prototype.pendingReward=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.stakedToMe=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.stakedAccountId=null,e.prototype.stakedNodeId=null,Object.defineProperty(e.prototype,"stakedId",{get:$util.oneOfGetter(t=["stakedAccountId","stakedNodeId"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.declineReward&&Object.hasOwnProperty.call(e,"declineReward")&&t.uint32(8).bool(e.declineReward),null!=e.stakePeriodStart&&Object.hasOwnProperty.call(e,"stakePeriodStart")&&$root.proto.Timestamp.encode(e.stakePeriodStart,t.uint32(18).fork()).ldelim(),null!=e.pendingReward&&Object.hasOwnProperty.call(e,"pendingReward")&&t.uint32(24).int64(e.pendingReward),null!=e.stakedToMe&&Object.hasOwnProperty.call(e,"stakedToMe")&&t.uint32(32).int64(e.stakedToMe),null!=e.stakedAccountId&&Object.hasOwnProperty.call(e,"stakedAccountId")&&$root.proto.AccountID.encode(e.stakedAccountId,t.uint32(42).fork()).ldelim(),null!=e.stakedNodeId&&Object.hasOwnProperty.call(e,"stakedNodeId")&&t.uint32(48).int64(e.stakedNodeId),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.StakingInfo;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.declineReward=e.bool();break;case 2:o.stakePeriodStart=$root.proto.Timestamp.decode(e,e.uint32());break;case 3:o.pendingReward=e.int64();break;case 4:o.stakedToMe=e.int64();break;case 5:o.stakedAccountId=$root.proto.AccountID.decode(e,e.uint32());break;case 6:o.stakedNodeId=e.int64();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.StakingInfo"},e}(),e.PendingAirdropId=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.senderId=null,e.prototype.receiverId=null,e.prototype.fungibleTokenType=null,e.prototype.nonFungibleToken=null,Object.defineProperty(e.prototype,"tokenReference",{get:$util.oneOfGetter(t=["fungibleTokenType","nonFungibleToken"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.senderId&&Object.hasOwnProperty.call(e,"senderId")&&$root.proto.AccountID.encode(e.senderId,t.uint32(10).fork()).ldelim(),null!=e.receiverId&&Object.hasOwnProperty.call(e,"receiverId")&&$root.proto.AccountID.encode(e.receiverId,t.uint32(18).fork()).ldelim(),null!=e.fungibleTokenType&&Object.hasOwnProperty.call(e,"fungibleTokenType")&&$root.proto.TokenID.encode(e.fungibleTokenType,t.uint32(26).fork()).ldelim(),null!=e.nonFungibleToken&&Object.hasOwnProperty.call(e,"nonFungibleToken")&&$root.proto.NftID.encode(e.nonFungibleToken,t.uint32(34).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.PendingAirdropId;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.senderId=$root.proto.AccountID.decode(e,e.uint32());break;case 2:o.receiverId=$root.proto.AccountID.decode(e,e.uint32());break;case 3:o.fungibleTokenType=$root.proto.TokenID.decode(e,e.uint32());break;case 4:o.nonFungibleToken=$root.proto.NftID.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.PendingAirdropId"},e}(),e.PendingAirdropValue=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.amount=$util.Long?$util.Long.fromBits(0,0,!0):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.amount&&Object.hasOwnProperty.call(e,"amount")&&t.uint32(8).uint64(e.amount),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.PendingAirdropValue;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.amount=e.uint64();else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.PendingAirdropValue"},e}(),e.Timestamp=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.seconds=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.nanos=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.seconds&&Object.hasOwnProperty.call(e,"seconds")&&t.uint32(8).int64(e.seconds),null!=e.nanos&&Object.hasOwnProperty.call(e,"nanos")&&t.uint32(16).int32(e.nanos),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.Timestamp;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.seconds=e.int64();break;case 2:o.nanos=e.int32();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.Timestamp"},e}(),e.TimestampSeconds=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.seconds=$util.Long?$util.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.seconds&&Object.hasOwnProperty.call(e,"seconds")&&t.uint32(8).int64(e.seconds),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TimestampSeconds;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.seconds=e.int64();else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TimestampSeconds"},e}(),e.SystemDeleteTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.fileID=null,e.prototype.contractID=null,e.prototype.expirationTime=null,Object.defineProperty(e.prototype,"id",{get:$util.oneOfGetter(t=["fileID","contractID"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.fileID&&Object.hasOwnProperty.call(e,"fileID")&&$root.proto.FileID.encode(e.fileID,t.uint32(10).fork()).ldelim(),null!=e.contractID&&Object.hasOwnProperty.call(e,"contractID")&&$root.proto.ContractID.encode(e.contractID,t.uint32(18).fork()).ldelim(),null!=e.expirationTime&&Object.hasOwnProperty.call(e,"expirationTime")&&$root.proto.TimestampSeconds.encode(e.expirationTime,t.uint32(26).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.SystemDeleteTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.fileID=$root.proto.FileID.decode(e,e.uint32());break;case 2:o.contractID=$root.proto.ContractID.decode(e,e.uint32());break;case 3:o.expirationTime=$root.proto.TimestampSeconds.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.SystemDeleteTransactionBody"},e}(),e.SystemUndeleteTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.fileID=null,e.prototype.contractID=null,Object.defineProperty(e.prototype,"id",{get:$util.oneOfGetter(t=["fileID","contractID"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.fileID&&Object.hasOwnProperty.call(e,"fileID")&&$root.proto.FileID.encode(e.fileID,t.uint32(10).fork()).ldelim(),null!=e.contractID&&Object.hasOwnProperty.call(e,"contractID")&&$root.proto.ContractID.encode(e.contractID,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.SystemUndeleteTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.fileID=$root.proto.FileID.decode(e,e.uint32());break;case 2:o.contractID=$root.proto.ContractID.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.SystemUndeleteTransactionBody"},e}(),e.FreezeTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.startHour=0,e.prototype.startMin=0,e.prototype.endHour=0,e.prototype.endMin=0,e.prototype.updateFile=null,e.prototype.fileHash=$util.newBuffer([]),e.prototype.startTime=null,e.prototype.freezeType=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.startHour&&Object.hasOwnProperty.call(e,"startHour")&&t.uint32(8).int32(e.startHour),null!=e.startMin&&Object.hasOwnProperty.call(e,"startMin")&&t.uint32(16).int32(e.startMin),null!=e.endHour&&Object.hasOwnProperty.call(e,"endHour")&&t.uint32(24).int32(e.endHour),null!=e.endMin&&Object.hasOwnProperty.call(e,"endMin")&&t.uint32(32).int32(e.endMin),null!=e.updateFile&&Object.hasOwnProperty.call(e,"updateFile")&&$root.proto.FileID.encode(e.updateFile,t.uint32(42).fork()).ldelim(),null!=e.fileHash&&Object.hasOwnProperty.call(e,"fileHash")&&t.uint32(50).bytes(e.fileHash),null!=e.startTime&&Object.hasOwnProperty.call(e,"startTime")&&$root.proto.Timestamp.encode(e.startTime,t.uint32(58).fork()).ldelim(),null!=e.freezeType&&Object.hasOwnProperty.call(e,"freezeType")&&t.uint32(64).int32(e.freezeType),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.FreezeTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.startHour=e.int32();break;case 2:o.startMin=e.int32();break;case 3:o.endHour=e.int32();break;case 4:o.endMin=e.int32();break;case 5:o.updateFile=$root.proto.FileID.decode(e,e.uint32());break;case 6:o.fileHash=e.bytes();break;case 7:o.startTime=$root.proto.Timestamp.decode(e,e.uint32());break;case 8:o.freezeType=e.int32();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.FreezeTransactionBody"},e}(),e.FreezeType=function(){const e={},t=Object.create(e);return t[e[0]="UNKNOWN_FREEZE_TYPE"]=0,t[e[1]="FREEZE_ONLY"]=1,t[e[2]="PREPARE_UPGRADE"]=2,t[e[3]="FREEZE_UPGRADE"]=3,t[e[4]="FREEZE_ABORT"]=4,t[e[5]="TELEMETRY_UPGRADE"]=5,t}(),e.ContractCallTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.contractID=null,e.prototype.gas=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.amount=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.functionParameters=$util.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.contractID&&Object.hasOwnProperty.call(e,"contractID")&&$root.proto.ContractID.encode(e.contractID,t.uint32(10).fork()).ldelim(),null!=e.gas&&Object.hasOwnProperty.call(e,"gas")&&t.uint32(16).int64(e.gas),null!=e.amount&&Object.hasOwnProperty.call(e,"amount")&&t.uint32(24).int64(e.amount),null!=e.functionParameters&&Object.hasOwnProperty.call(e,"functionParameters")&&t.uint32(34).bytes(e.functionParameters),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ContractCallTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.contractID=$root.proto.ContractID.decode(e,e.uint32());break;case 2:o.gas=e.int64();break;case 3:o.amount=e.int64();break;case 4:o.functionParameters=e.bytes();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ContractCallTransactionBody"},e}(),e.ContractCreateTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.fileID=null,e.prototype.initcode=null,e.prototype.adminKey=null,e.prototype.gas=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.initialBalance=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.proxyAccountID=null,e.prototype.autoRenewPeriod=null,e.prototype.constructorParameters=$util.newBuffer([]),e.prototype.shardID=null,e.prototype.realmID=null,e.prototype.newRealmAdminKey=null,e.prototype.memo="",e.prototype.maxAutomaticTokenAssociations=0,e.prototype.autoRenewAccountId=null,e.prototype.stakedAccountId=null,e.prototype.stakedNodeId=null,e.prototype.declineReward=!1,Object.defineProperty(e.prototype,"initcodeSource",{get:$util.oneOfGetter(t=["fileID","initcode"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"stakedId",{get:$util.oneOfGetter(t=["stakedAccountId","stakedNodeId"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.fileID&&Object.hasOwnProperty.call(e,"fileID")&&$root.proto.FileID.encode(e.fileID,t.uint32(10).fork()).ldelim(),null!=e.adminKey&&Object.hasOwnProperty.call(e,"adminKey")&&$root.proto.Key.encode(e.adminKey,t.uint32(26).fork()).ldelim(),null!=e.gas&&Object.hasOwnProperty.call(e,"gas")&&t.uint32(32).int64(e.gas),null!=e.initialBalance&&Object.hasOwnProperty.call(e,"initialBalance")&&t.uint32(40).int64(e.initialBalance),null!=e.proxyAccountID&&Object.hasOwnProperty.call(e,"proxyAccountID")&&$root.proto.AccountID.encode(e.proxyAccountID,t.uint32(50).fork()).ldelim(),null!=e.autoRenewPeriod&&Object.hasOwnProperty.call(e,"autoRenewPeriod")&&$root.proto.Duration.encode(e.autoRenewPeriod,t.uint32(66).fork()).ldelim(),null!=e.constructorParameters&&Object.hasOwnProperty.call(e,"constructorParameters")&&t.uint32(74).bytes(e.constructorParameters),null!=e.shardID&&Object.hasOwnProperty.call(e,"shardID")&&$root.proto.ShardID.encode(e.shardID,t.uint32(82).fork()).ldelim(),null!=e.realmID&&Object.hasOwnProperty.call(e,"realmID")&&$root.proto.RealmID.encode(e.realmID,t.uint32(90).fork()).ldelim(),null!=e.newRealmAdminKey&&Object.hasOwnProperty.call(e,"newRealmAdminKey")&&$root.proto.Key.encode(e.newRealmAdminKey,t.uint32(98).fork()).ldelim(),null!=e.memo&&Object.hasOwnProperty.call(e,"memo")&&t.uint32(106).string(e.memo),null!=e.maxAutomaticTokenAssociations&&Object.hasOwnProperty.call(e,"maxAutomaticTokenAssociations")&&t.uint32(112).int32(e.maxAutomaticTokenAssociations),null!=e.autoRenewAccountId&&Object.hasOwnProperty.call(e,"autoRenewAccountId")&&$root.proto.AccountID.encode(e.autoRenewAccountId,t.uint32(122).fork()).ldelim(),null!=e.initcode&&Object.hasOwnProperty.call(e,"initcode")&&t.uint32(130).bytes(e.initcode),null!=e.stakedAccountId&&Object.hasOwnProperty.call(e,"stakedAccountId")&&$root.proto.AccountID.encode(e.stakedAccountId,t.uint32(138).fork()).ldelim(),null!=e.stakedNodeId&&Object.hasOwnProperty.call(e,"stakedNodeId")&&t.uint32(144).int64(e.stakedNodeId),null!=e.declineReward&&Object.hasOwnProperty.call(e,"declineReward")&&t.uint32(152).bool(e.declineReward),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ContractCreateTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.fileID=$root.proto.FileID.decode(e,e.uint32());break;case 16:o.initcode=e.bytes();break;case 3:o.adminKey=$root.proto.Key.decode(e,e.uint32());break;case 4:o.gas=e.int64();break;case 5:o.initialBalance=e.int64();break;case 6:o.proxyAccountID=$root.proto.AccountID.decode(e,e.uint32());break;case 8:o.autoRenewPeriod=$root.proto.Duration.decode(e,e.uint32());break;case 9:o.constructorParameters=e.bytes();break;case 10:o.shardID=$root.proto.ShardID.decode(e,e.uint32());break;case 11:o.realmID=$root.proto.RealmID.decode(e,e.uint32());break;case 12:o.newRealmAdminKey=$root.proto.Key.decode(e,e.uint32());break;case 13:o.memo=e.string();break;case 14:o.maxAutomaticTokenAssociations=e.int32();break;case 15:o.autoRenewAccountId=$root.proto.AccountID.decode(e,e.uint32());break;case 17:o.stakedAccountId=$root.proto.AccountID.decode(e,e.uint32());break;case 18:o.stakedNodeId=e.int64();break;case 19:o.declineReward=e.bool();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ContractCreateTransactionBody"},e}(),e.Duration=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.seconds=$util.Long?$util.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.seconds&&Object.hasOwnProperty.call(e,"seconds")&&t.uint32(8).int64(e.seconds),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.Duration;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.seconds=e.int64();else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.Duration"},e}(),e.ContractUpdateTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.contractID=null,e.prototype.expirationTime=null,e.prototype.adminKey=null,e.prototype.proxyAccountID=null,e.prototype.autoRenewPeriod=null,e.prototype.fileID=null,e.prototype.memo=null,e.prototype.memoWrapper=null,e.prototype.maxAutomaticTokenAssociations=null,e.prototype.autoRenewAccountId=null,e.prototype.stakedAccountId=null,e.prototype.stakedNodeId=null,e.prototype.declineReward=null,Object.defineProperty(e.prototype,"memoField",{get:$util.oneOfGetter(t=["memo","memoWrapper"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"stakedId",{get:$util.oneOfGetter(t=["stakedAccountId","stakedNodeId"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.contractID&&Object.hasOwnProperty.call(e,"contractID")&&$root.proto.ContractID.encode(e.contractID,t.uint32(10).fork()).ldelim(),null!=e.expirationTime&&Object.hasOwnProperty.call(e,"expirationTime")&&$root.proto.Timestamp.encode(e.expirationTime,t.uint32(18).fork()).ldelim(),null!=e.adminKey&&Object.hasOwnProperty.call(e,"adminKey")&&$root.proto.Key.encode(e.adminKey,t.uint32(26).fork()).ldelim(),null!=e.proxyAccountID&&Object.hasOwnProperty.call(e,"proxyAccountID")&&$root.proto.AccountID.encode(e.proxyAccountID,t.uint32(50).fork()).ldelim(),null!=e.autoRenewPeriod&&Object.hasOwnProperty.call(e,"autoRenewPeriod")&&$root.proto.Duration.encode(e.autoRenewPeriod,t.uint32(58).fork()).ldelim(),null!=e.fileID&&Object.hasOwnProperty.call(e,"fileID")&&$root.proto.FileID.encode(e.fileID,t.uint32(66).fork()).ldelim(),null!=e.memo&&Object.hasOwnProperty.call(e,"memo")&&t.uint32(74).string(e.memo),null!=e.memoWrapper&&Object.hasOwnProperty.call(e,"memoWrapper")&&$root.google.protobuf.StringValue.encode(e.memoWrapper,t.uint32(82).fork()).ldelim(),null!=e.maxAutomaticTokenAssociations&&Object.hasOwnProperty.call(e,"maxAutomaticTokenAssociations")&&$root.google.protobuf.Int32Value.encode(e.maxAutomaticTokenAssociations,t.uint32(90).fork()).ldelim(),null!=e.autoRenewAccountId&&Object.hasOwnProperty.call(e,"autoRenewAccountId")&&$root.proto.AccountID.encode(e.autoRenewAccountId,t.uint32(98).fork()).ldelim(),null!=e.stakedAccountId&&Object.hasOwnProperty.call(e,"stakedAccountId")&&$root.proto.AccountID.encode(e.stakedAccountId,t.uint32(106).fork()).ldelim(),null!=e.stakedNodeId&&Object.hasOwnProperty.call(e,"stakedNodeId")&&t.uint32(112).int64(e.stakedNodeId),null!=e.declineReward&&Object.hasOwnProperty.call(e,"declineReward")&&$root.google.protobuf.BoolValue.encode(e.declineReward,t.uint32(122).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ContractUpdateTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.contractID=$root.proto.ContractID.decode(e,e.uint32());break;case 2:o.expirationTime=$root.proto.Timestamp.decode(e,e.uint32());break;case 3:o.adminKey=$root.proto.Key.decode(e,e.uint32());break;case 6:o.proxyAccountID=$root.proto.AccountID.decode(e,e.uint32());break;case 7:o.autoRenewPeriod=$root.proto.Duration.decode(e,e.uint32());break;case 8:o.fileID=$root.proto.FileID.decode(e,e.uint32());break;case 9:o.memo=e.string();break;case 10:o.memoWrapper=$root.google.protobuf.StringValue.decode(e,e.uint32());break;case 11:o.maxAutomaticTokenAssociations=$root.google.protobuf.Int32Value.decode(e,e.uint32());break;case 12:o.autoRenewAccountId=$root.proto.AccountID.decode(e,e.uint32());break;case 13:o.stakedAccountId=$root.proto.AccountID.decode(e,e.uint32());break;case 14:o.stakedNodeId=e.int64();break;case 15:o.declineReward=$root.google.protobuf.BoolValue.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ContractUpdateTransactionBody"},e}(),e.LiveHash=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.accountId=null,e.prototype.hash=$util.newBuffer([]),e.prototype.keys=null,e.prototype.duration=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.accountId&&Object.hasOwnProperty.call(e,"accountId")&&$root.proto.AccountID.encode(e.accountId,t.uint32(10).fork()).ldelim(),null!=e.hash&&Object.hasOwnProperty.call(e,"hash")&&t.uint32(18).bytes(e.hash),null!=e.keys&&Object.hasOwnProperty.call(e,"keys")&&$root.proto.KeyList.encode(e.keys,t.uint32(26).fork()).ldelim(),null!=e.duration&&Object.hasOwnProperty.call(e,"duration")&&$root.proto.Duration.encode(e.duration,t.uint32(42).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.LiveHash;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.accountId=$root.proto.AccountID.decode(e,e.uint32());break;case 2:o.hash=e.bytes();break;case 3:o.keys=$root.proto.KeyList.decode(e,e.uint32());break;case 5:o.duration=$root.proto.Duration.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.LiveHash"},e}(),e.CryptoAddLiveHashTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.liveHash=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.liveHash&&Object.hasOwnProperty.call(e,"liveHash")&&$root.proto.LiveHash.encode(e.liveHash,t.uint32(26).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.CryptoAddLiveHashTransactionBody;e.pos<r;){var n=e.uint32();if(n>>>3==3)o.liveHash=$root.proto.LiveHash.decode(e,e.uint32());else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.CryptoAddLiveHashTransactionBody"},e}(),e.CryptoCreateTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.key=null,e.prototype.initialBalance=$util.Long?$util.Long.fromBits(0,0,!0):0,e.prototype.proxyAccountID=null,e.prototype.sendRecordThreshold=$util.Long?$util.Long.fromBits(0,0,!0):0,e.prototype.receiveRecordThreshold=$util.Long?$util.Long.fromBits(0,0,!0):0,e.prototype.receiverSigRequired=!1,e.prototype.autoRenewPeriod=null,e.prototype.shardID=null,e.prototype.realmID=null,e.prototype.newRealmAdminKey=null,e.prototype.memo="",e.prototype.maxAutomaticTokenAssociations=0,e.prototype.stakedAccountId=null,e.prototype.stakedNodeId=null,e.prototype.declineReward=!1,e.prototype.alias=$util.newBuffer([]),Object.defineProperty(e.prototype,"stakedId",{get:$util.oneOfGetter(t=["stakedAccountId","stakedNodeId"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.key&&Object.hasOwnProperty.call(e,"key")&&$root.proto.Key.encode(e.key,t.uint32(10).fork()).ldelim(),null!=e.initialBalance&&Object.hasOwnProperty.call(e,"initialBalance")&&t.uint32(16).uint64(e.initialBalance),null!=e.proxyAccountID&&Object.hasOwnProperty.call(e,"proxyAccountID")&&$root.proto.AccountID.encode(e.proxyAccountID,t.uint32(26).fork()).ldelim(),null!=e.sendRecordThreshold&&Object.hasOwnProperty.call(e,"sendRecordThreshold")&&t.uint32(48).uint64(e.sendRecordThreshold),null!=e.receiveRecordThreshold&&Object.hasOwnProperty.call(e,"receiveRecordThreshold")&&t.uint32(56).uint64(e.receiveRecordThreshold),null!=e.receiverSigRequired&&Object.hasOwnProperty.call(e,"receiverSigRequired")&&t.uint32(64).bool(e.receiverSigRequired),null!=e.autoRenewPeriod&&Object.hasOwnProperty.call(e,"autoRenewPeriod")&&$root.proto.Duration.encode(e.autoRenewPeriod,t.uint32(74).fork()).ldelim(),null!=e.shardID&&Object.hasOwnProperty.call(e,"shardID")&&$root.proto.ShardID.encode(e.shardID,t.uint32(82).fork()).ldelim(),null!=e.realmID&&Object.hasOwnProperty.call(e,"realmID")&&$root.proto.RealmID.encode(e.realmID,t.uint32(90).fork()).ldelim(),null!=e.newRealmAdminKey&&Object.hasOwnProperty.call(e,"newRealmAdminKey")&&$root.proto.Key.encode(e.newRealmAdminKey,t.uint32(98).fork()).ldelim(),null!=e.memo&&Object.hasOwnProperty.call(e,"memo")&&t.uint32(106).string(e.memo),null!=e.maxAutomaticTokenAssociations&&Object.hasOwnProperty.call(e,"maxAutomaticTokenAssociations")&&t.uint32(112).int32(e.maxAutomaticTokenAssociations),null!=e.stakedAccountId&&Object.hasOwnProperty.call(e,"stakedAccountId")&&$root.proto.AccountID.encode(e.stakedAccountId,t.uint32(122).fork()).ldelim(),null!=e.stakedNodeId&&Object.hasOwnProperty.call(e,"stakedNodeId")&&t.uint32(128).int64(e.stakedNodeId),null!=e.declineReward&&Object.hasOwnProperty.call(e,"declineReward")&&t.uint32(136).bool(e.declineReward),null!=e.alias&&Object.hasOwnProperty.call(e,"alias")&&t.uint32(146).bytes(e.alias),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.CryptoCreateTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.key=$root.proto.Key.decode(e,e.uint32());break;case 2:o.initialBalance=e.uint64();break;case 3:o.proxyAccountID=$root.proto.AccountID.decode(e,e.uint32());break;case 6:o.sendRecordThreshold=e.uint64();break;case 7:o.receiveRecordThreshold=e.uint64();break;case 8:o.receiverSigRequired=e.bool();break;case 9:o.autoRenewPeriod=$root.proto.Duration.decode(e,e.uint32());break;case 10:o.shardID=$root.proto.ShardID.decode(e,e.uint32());break;case 11:o.realmID=$root.proto.RealmID.decode(e,e.uint32());break;case 12:o.newRealmAdminKey=$root.proto.Key.decode(e,e.uint32());break;case 13:o.memo=e.string();break;case 14:o.maxAutomaticTokenAssociations=e.int32();break;case 15:o.stakedAccountId=$root.proto.AccountID.decode(e,e.uint32());break;case 16:o.stakedNodeId=e.int64();break;case 17:o.declineReward=e.bool();break;case 18:o.alias=e.bytes();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.CryptoCreateTransactionBody"},e}(),e.CryptoDeleteTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.transferAccountID=null,e.prototype.deleteAccountID=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.transferAccountID&&Object.hasOwnProperty.call(e,"transferAccountID")&&$root.proto.AccountID.encode(e.transferAccountID,t.uint32(10).fork()).ldelim(),null!=e.deleteAccountID&&Object.hasOwnProperty.call(e,"deleteAccountID")&&$root.proto.AccountID.encode(e.deleteAccountID,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.CryptoDeleteTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.transferAccountID=$root.proto.AccountID.decode(e,e.uint32());break;case 2:o.deleteAccountID=$root.proto.AccountID.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.CryptoDeleteTransactionBody"},e}(),e.CryptoDeleteLiveHashTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.accountOfLiveHash=null,e.prototype.liveHashToDelete=$util.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.accountOfLiveHash&&Object.hasOwnProperty.call(e,"accountOfLiveHash")&&$root.proto.AccountID.encode(e.accountOfLiveHash,t.uint32(10).fork()).ldelim(),null!=e.liveHashToDelete&&Object.hasOwnProperty.call(e,"liveHashToDelete")&&t.uint32(18).bytes(e.liveHashToDelete),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.CryptoDeleteLiveHashTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.accountOfLiveHash=$root.proto.AccountID.decode(e,e.uint32());break;case 2:o.liveHashToDelete=e.bytes();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.CryptoDeleteLiveHashTransactionBody"},e}(),e.CryptoTransferTransactionBody=function(){function e(e){if(this.tokenTransfers=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.transfers=null,e.prototype.tokenTransfers=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.transfers&&Object.hasOwnProperty.call(e,"transfers")&&$root.proto.TransferList.encode(e.transfers,t.uint32(10).fork()).ldelim(),null!=e.tokenTransfers&&e.tokenTransfers.length)for(var r=0;r<e.tokenTransfers.length;++r)$root.proto.TokenTransferList.encode(e.tokenTransfers[r],t.uint32(18).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.CryptoTransferTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.transfers=$root.proto.TransferList.decode(e,e.uint32());break;case 2:o.tokenTransfers&&o.tokenTransfers.length||(o.tokenTransfers=[]),o.tokenTransfers.push($root.proto.TokenTransferList.decode(e,e.uint32()));break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.CryptoTransferTransactionBody"},e}(),e.CryptoUpdateTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.accountIDToUpdate=null,e.prototype.key=null,e.prototype.proxyAccountID=null,e.prototype.proxyFraction=0,e.prototype.sendRecordThreshold=null,e.prototype.sendRecordThresholdWrapper=null,e.prototype.receiveRecordThreshold=null,e.prototype.receiveRecordThresholdWrapper=null,e.prototype.autoRenewPeriod=null,e.prototype.expirationTime=null,e.prototype.receiverSigRequired=null,e.prototype.receiverSigRequiredWrapper=null,e.prototype.memo=null,e.prototype.maxAutomaticTokenAssociations=null,e.prototype.stakedAccountId=null,e.prototype.stakedNodeId=null,e.prototype.declineReward=null,Object.defineProperty(e.prototype,"sendRecordThresholdField",{get:$util.oneOfGetter(t=["sendRecordThreshold","sendRecordThresholdWrapper"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"receiveRecordThresholdField",{get:$util.oneOfGetter(t=["receiveRecordThreshold","receiveRecordThresholdWrapper"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"receiverSigRequiredField",{get:$util.oneOfGetter(t=["receiverSigRequired","receiverSigRequiredWrapper"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"stakedId",{get:$util.oneOfGetter(t=["stakedAccountId","stakedNodeId"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.accountIDToUpdate&&Object.hasOwnProperty.call(e,"accountIDToUpdate")&&$root.proto.AccountID.encode(e.accountIDToUpdate,t.uint32(18).fork()).ldelim(),null!=e.key&&Object.hasOwnProperty.call(e,"key")&&$root.proto.Key.encode(e.key,t.uint32(26).fork()).ldelim(),null!=e.proxyAccountID&&Object.hasOwnProperty.call(e,"proxyAccountID")&&$root.proto.AccountID.encode(e.proxyAccountID,t.uint32(34).fork()).ldelim(),null!=e.proxyFraction&&Object.hasOwnProperty.call(e,"proxyFraction")&&t.uint32(40).int32(e.proxyFraction),null!=e.sendRecordThreshold&&Object.hasOwnProperty.call(e,"sendRecordThreshold")&&t.uint32(48).uint64(e.sendRecordThreshold),null!=e.receiveRecordThreshold&&Object.hasOwnProperty.call(e,"receiveRecordThreshold")&&t.uint32(56).uint64(e.receiveRecordThreshold),null!=e.autoRenewPeriod&&Object.hasOwnProperty.call(e,"autoRenewPeriod")&&$root.proto.Duration.encode(e.autoRenewPeriod,t.uint32(66).fork()).ldelim(),null!=e.expirationTime&&Object.hasOwnProperty.call(e,"expirationTime")&&$root.proto.Timestamp.encode(e.expirationTime,t.uint32(74).fork()).ldelim(),null!=e.receiverSigRequired&&Object.hasOwnProperty.call(e,"receiverSigRequired")&&t.uint32(80).bool(e.receiverSigRequired),null!=e.sendRecordThresholdWrapper&&Object.hasOwnProperty.call(e,"sendRecordThresholdWrapper")&&$root.google.protobuf.UInt64Value.encode(e.sendRecordThresholdWrapper,t.uint32(90).fork()).ldelim(),null!=e.receiveRecordThresholdWrapper&&Object.hasOwnProperty.call(e,"receiveRecordThresholdWrapper")&&$root.google.protobuf.UInt64Value.encode(e.receiveRecordThresholdWrapper,t.uint32(98).fork()).ldelim(),null!=e.receiverSigRequiredWrapper&&Object.hasOwnProperty.call(e,"receiverSigRequiredWrapper")&&$root.google.protobuf.BoolValue.encode(e.receiverSigRequiredWrapper,t.uint32(106).fork()).ldelim(),null!=e.memo&&Object.hasOwnProperty.call(e,"memo")&&$root.google.protobuf.StringValue.encode(e.memo,t.uint32(114).fork()).ldelim(),null!=e.maxAutomaticTokenAssociations&&Object.hasOwnProperty.call(e,"maxAutomaticTokenAssociations")&&$root.google.protobuf.Int32Value.encode(e.maxAutomaticTokenAssociations,t.uint32(122).fork()).ldelim(),null!=e.stakedAccountId&&Object.hasOwnProperty.call(e,"stakedAccountId")&&$root.proto.AccountID.encode(e.stakedAccountId,t.uint32(130).fork()).ldelim(),null!=e.stakedNodeId&&Object.hasOwnProperty.call(e,"stakedNodeId")&&t.uint32(136).int64(e.stakedNodeId),null!=e.declineReward&&Object.hasOwnProperty.call(e,"declineReward")&&$root.google.protobuf.BoolValue.encode(e.declineReward,t.uint32(146).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.CryptoUpdateTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 2:o.accountIDToUpdate=$root.proto.AccountID.decode(e,e.uint32());break;case 3:o.key=$root.proto.Key.decode(e,e.uint32());break;case 4:o.proxyAccountID=$root.proto.AccountID.decode(e,e.uint32());break;case 5:o.proxyFraction=e.int32();break;case 6:o.sendRecordThreshold=e.uint64();break;case 11:o.sendRecordThresholdWrapper=$root.google.protobuf.UInt64Value.decode(e,e.uint32());break;case 7:o.receiveRecordThreshold=e.uint64();break;case 12:o.receiveRecordThresholdWrapper=$root.google.protobuf.UInt64Value.decode(e,e.uint32());break;case 8:o.autoRenewPeriod=$root.proto.Duration.decode(e,e.uint32());break;case 9:o.expirationTime=$root.proto.Timestamp.decode(e,e.uint32());break;case 10:o.receiverSigRequired=e.bool();break;case 13:o.receiverSigRequiredWrapper=$root.google.protobuf.BoolValue.decode(e,e.uint32());break;case 14:o.memo=$root.google.protobuf.StringValue.decode(e,e.uint32());break;case 15:o.maxAutomaticTokenAssociations=$root.google.protobuf.Int32Value.decode(e,e.uint32());break;case 16:o.stakedAccountId=$root.proto.AccountID.decode(e,e.uint32());break;case 17:o.stakedNodeId=e.int64();break;case 18:o.declineReward=$root.google.protobuf.BoolValue.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.CryptoUpdateTransactionBody"},e}(),e.CryptoApproveAllowanceTransactionBody=function(){function e(e){if(this.cryptoAllowances=[],this.nftAllowances=[],this.tokenAllowances=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.cryptoAllowances=$util.emptyArray,e.prototype.nftAllowances=$util.emptyArray,e.prototype.tokenAllowances=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.cryptoAllowances&&e.cryptoAllowances.length)for(var r=0;r<e.cryptoAllowances.length;++r)$root.proto.CryptoAllowance.encode(e.cryptoAllowances[r],t.uint32(10).fork()).ldelim();if(null!=e.nftAllowances&&e.nftAllowances.length)for(r=0;r<e.nftAllowances.length;++r)$root.proto.NftAllowance.encode(e.nftAllowances[r],t.uint32(18).fork()).ldelim();if(null!=e.tokenAllowances&&e.tokenAllowances.length)for(r=0;r<e.tokenAllowances.length;++r)$root.proto.TokenAllowance.encode(e.tokenAllowances[r],t.uint32(26).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.CryptoApproveAllowanceTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.cryptoAllowances&&o.cryptoAllowances.length||(o.cryptoAllowances=[]),o.cryptoAllowances.push($root.proto.CryptoAllowance.decode(e,e.uint32()));break;case 2:o.nftAllowances&&o.nftAllowances.length||(o.nftAllowances=[]),o.nftAllowances.push($root.proto.NftAllowance.decode(e,e.uint32()));break;case 3:o.tokenAllowances&&o.tokenAllowances.length||(o.tokenAllowances=[]),o.tokenAllowances.push($root.proto.TokenAllowance.decode(e,e.uint32()));break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.CryptoApproveAllowanceTransactionBody"},e}(),e.CryptoAllowance=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.owner=null,e.prototype.spender=null,e.prototype.amount=$util.Long?$util.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.owner&&Object.hasOwnProperty.call(e,"owner")&&$root.proto.AccountID.encode(e.owner,t.uint32(10).fork()).ldelim(),null!=e.spender&&Object.hasOwnProperty.call(e,"spender")&&$root.proto.AccountID.encode(e.spender,t.uint32(18).fork()).ldelim(),null!=e.amount&&Object.hasOwnProperty.call(e,"amount")&&t.uint32(24).int64(e.amount),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.CryptoAllowance;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.owner=$root.proto.AccountID.decode(e,e.uint32());break;case 2:o.spender=$root.proto.AccountID.decode(e,e.uint32());break;case 3:o.amount=e.int64();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.CryptoAllowance"},e}(),e.NftAllowance=function(){function e(e){if(this.serialNumbers=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.tokenId=null,e.prototype.owner=null,e.prototype.spender=null,e.prototype.serialNumbers=$util.emptyArray,e.prototype.approvedForAll=null,e.prototype.delegatingSpender=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.tokenId&&Object.hasOwnProperty.call(e,"tokenId")&&$root.proto.TokenID.encode(e.tokenId,t.uint32(10).fork()).ldelim(),null!=e.owner&&Object.hasOwnProperty.call(e,"owner")&&$root.proto.AccountID.encode(e.owner,t.uint32(18).fork()).ldelim(),null!=e.spender&&Object.hasOwnProperty.call(e,"spender")&&$root.proto.AccountID.encode(e.spender,t.uint32(26).fork()).ldelim(),null!=e.serialNumbers&&e.serialNumbers.length){t.uint32(34).fork();for(var r=0;r<e.serialNumbers.length;++r)t.int64(e.serialNumbers[r]);t.ldelim()}return null!=e.approvedForAll&&Object.hasOwnProperty.call(e,"approvedForAll")&&$root.google.protobuf.BoolValue.encode(e.approvedForAll,t.uint32(42).fork()).ldelim(),null!=e.delegatingSpender&&Object.hasOwnProperty.call(e,"delegatingSpender")&&$root.proto.AccountID.encode(e.delegatingSpender,t.uint32(50).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.NftAllowance;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.tokenId=$root.proto.TokenID.decode(e,e.uint32());break;case 2:o.owner=$root.proto.AccountID.decode(e,e.uint32());break;case 3:o.spender=$root.proto.AccountID.decode(e,e.uint32());break;case 4:if(o.serialNumbers&&o.serialNumbers.length||(o.serialNumbers=[]),2==(7&n))for(var i=e.uint32()+e.pos;e.pos<i;)o.serialNumbers.push(e.int64());else o.serialNumbers.push(e.int64());break;case 5:o.approvedForAll=$root.google.protobuf.BoolValue.decode(e,e.uint32());break;case 6:o.delegatingSpender=$root.proto.AccountID.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.NftAllowance"},e}(),e.TokenAllowance=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.tokenId=null,e.prototype.owner=null,e.prototype.spender=null,e.prototype.amount=$util.Long?$util.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.tokenId&&Object.hasOwnProperty.call(e,"tokenId")&&$root.proto.TokenID.encode(e.tokenId,t.uint32(10).fork()).ldelim(),null!=e.owner&&Object.hasOwnProperty.call(e,"owner")&&$root.proto.AccountID.encode(e.owner,t.uint32(18).fork()).ldelim(),null!=e.spender&&Object.hasOwnProperty.call(e,"spender")&&$root.proto.AccountID.encode(e.spender,t.uint32(26).fork()).ldelim(),null!=e.amount&&Object.hasOwnProperty.call(e,"amount")&&t.uint32(32).int64(e.amount),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenAllowance;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.tokenId=$root.proto.TokenID.decode(e,e.uint32());break;case 2:o.owner=$root.proto.AccountID.decode(e,e.uint32());break;case 3:o.spender=$root.proto.AccountID.decode(e,e.uint32());break;case 4:o.amount=e.int64();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenAllowance"},e}(),e.CryptoDeleteAllowanceTransactionBody=function(){function e(e){if(this.nftAllowances=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.nftAllowances=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.nftAllowances&&e.nftAllowances.length)for(var r=0;r<e.nftAllowances.length;++r)$root.proto.NftRemoveAllowance.encode(e.nftAllowances[r],t.uint32(18).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.CryptoDeleteAllowanceTransactionBody;e.pos<r;){var n=e.uint32();if(n>>>3==2)o.nftAllowances&&o.nftAllowances.length||(o.nftAllowances=[]),o.nftAllowances.push($root.proto.NftRemoveAllowance.decode(e,e.uint32()));else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.CryptoDeleteAllowanceTransactionBody"},e}(),e.NftRemoveAllowance=function(){function e(e){if(this.serialNumbers=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.tokenId=null,e.prototype.owner=null,e.prototype.serialNumbers=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.tokenId&&Object.hasOwnProperty.call(e,"tokenId")&&$root.proto.TokenID.encode(e.tokenId,t.uint32(10).fork()).ldelim(),null!=e.owner&&Object.hasOwnProperty.call(e,"owner")&&$root.proto.AccountID.encode(e.owner,t.uint32(18).fork()).ldelim(),null!=e.serialNumbers&&e.serialNumbers.length){t.uint32(26).fork();for(var r=0;r<e.serialNumbers.length;++r)t.int64(e.serialNumbers[r]);t.ldelim()}return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.NftRemoveAllowance;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.tokenId=$root.proto.TokenID.decode(e,e.uint32());break;case 2:o.owner=$root.proto.AccountID.decode(e,e.uint32());break;case 3:if(o.serialNumbers&&o.serialNumbers.length||(o.serialNumbers=[]),2==(7&n))for(var i=e.uint32()+e.pos;e.pos<i;)o.serialNumbers.push(e.int64());else o.serialNumbers.push(e.int64());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.NftRemoveAllowance"},e}(),e.EthereumTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.ethereumData=$util.newBuffer([]),e.prototype.callData=null,e.prototype.maxGasAllowance=$util.Long?$util.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.ethereumData&&Object.hasOwnProperty.call(e,"ethereumData")&&t.uint32(10).bytes(e.ethereumData),null!=e.callData&&Object.hasOwnProperty.call(e,"callData")&&$root.proto.FileID.encode(e.callData,t.uint32(18).fork()).ldelim(),null!=e.maxGasAllowance&&Object.hasOwnProperty.call(e,"maxGasAllowance")&&t.uint32(24).int64(e.maxGasAllowance),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.EthereumTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.ethereumData=e.bytes();break;case 2:o.callData=$root.proto.FileID.decode(e,e.uint32());break;case 3:o.maxGasAllowance=e.int64();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.EthereumTransactionBody"},e}(),e.FileAppendTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.fileID=null,e.prototype.contents=$util.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.fileID&&Object.hasOwnProperty.call(e,"fileID")&&$root.proto.FileID.encode(e.fileID,t.uint32(18).fork()).ldelim(),null!=e.contents&&Object.hasOwnProperty.call(e,"contents")&&t.uint32(34).bytes(e.contents),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.FileAppendTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 2:o.fileID=$root.proto.FileID.decode(e,e.uint32());break;case 4:o.contents=e.bytes();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.FileAppendTransactionBody"},e}(),e.FileCreateTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.expirationTime=null,e.prototype.keys=null,e.prototype.contents=$util.newBuffer([]),e.prototype.shardID=null,e.prototype.realmID=null,e.prototype.newRealmAdminKey=null,e.prototype.memo="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.expirationTime&&Object.hasOwnProperty.call(e,"expirationTime")&&$root.proto.Timestamp.encode(e.expirationTime,t.uint32(18).fork()).ldelim(),null!=e.keys&&Object.hasOwnProperty.call(e,"keys")&&$root.proto.KeyList.encode(e.keys,t.uint32(26).fork()).ldelim(),null!=e.contents&&Object.hasOwnProperty.call(e,"contents")&&t.uint32(34).bytes(e.contents),null!=e.shardID&&Object.hasOwnProperty.call(e,"shardID")&&$root.proto.ShardID.encode(e.shardID,t.uint32(42).fork()).ldelim(),null!=e.realmID&&Object.hasOwnProperty.call(e,"realmID")&&$root.proto.RealmID.encode(e.realmID,t.uint32(50).fork()).ldelim(),null!=e.newRealmAdminKey&&Object.hasOwnProperty.call(e,"newRealmAdminKey")&&$root.proto.Key.encode(e.newRealmAdminKey,t.uint32(58).fork()).ldelim(),null!=e.memo&&Object.hasOwnProperty.call(e,"memo")&&t.uint32(66).string(e.memo),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.FileCreateTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 2:o.expirationTime=$root.proto.Timestamp.decode(e,e.uint32());break;case 3:o.keys=$root.proto.KeyList.decode(e,e.uint32());break;case 4:o.contents=e.bytes();break;case 5:o.shardID=$root.proto.ShardID.decode(e,e.uint32());break;case 6:o.realmID=$root.proto.RealmID.decode(e,e.uint32());break;case 7:o.newRealmAdminKey=$root.proto.Key.decode(e,e.uint32());break;case 8:o.memo=e.string();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.FileCreateTransactionBody"},e}(),e.FileDeleteTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.fileID=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.fileID&&Object.hasOwnProperty.call(e,"fileID")&&$root.proto.FileID.encode(e.fileID,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.FileDeleteTransactionBody;e.pos<r;){var n=e.uint32();if(n>>>3==2)o.fileID=$root.proto.FileID.decode(e,e.uint32());else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.FileDeleteTransactionBody"},e}(),e.FileUpdateTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.fileID=null,e.prototype.expirationTime=null,e.prototype.keys=null,e.prototype.contents=$util.newBuffer([]),e.prototype.memo=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.fileID&&Object.hasOwnProperty.call(e,"fileID")&&$root.proto.FileID.encode(e.fileID,t.uint32(10).fork()).ldelim(),null!=e.expirationTime&&Object.hasOwnProperty.call(e,"expirationTime")&&$root.proto.Timestamp.encode(e.expirationTime,t.uint32(18).fork()).ldelim(),null!=e.keys&&Object.hasOwnProperty.call(e,"keys")&&$root.proto.KeyList.encode(e.keys,t.uint32(26).fork()).ldelim(),null!=e.contents&&Object.hasOwnProperty.call(e,"contents")&&t.uint32(34).bytes(e.contents),null!=e.memo&&Object.hasOwnProperty.call(e,"memo")&&$root.google.protobuf.StringValue.encode(e.memo,t.uint32(42).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.FileUpdateTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.fileID=$root.proto.FileID.decode(e,e.uint32());break;case 2:o.expirationTime=$root.proto.Timestamp.decode(e,e.uint32());break;case 3:o.keys=$root.proto.KeyList.decode(e,e.uint32());break;case 4:o.contents=e.bytes();break;case 5:o.memo=$root.google.protobuf.StringValue.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.FileUpdateTransactionBody"},e}(),e.ContractDeleteTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.contractID=null,e.prototype.transferAccountID=null,e.prototype.transferContractID=null,e.prototype.permanentRemoval=!1,Object.defineProperty(e.prototype,"obtainers",{get:$util.oneOfGetter(t=["transferAccountID","transferContractID"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.contractID&&Object.hasOwnProperty.call(e,"contractID")&&$root.proto.ContractID.encode(e.contractID,t.uint32(10).fork()).ldelim(),null!=e.transferAccountID&&Object.hasOwnProperty.call(e,"transferAccountID")&&$root.proto.AccountID.encode(e.transferAccountID,t.uint32(18).fork()).ldelim(),null!=e.transferContractID&&Object.hasOwnProperty.call(e,"transferContractID")&&$root.proto.ContractID.encode(e.transferContractID,t.uint32(26).fork()).ldelim(),null!=e.permanentRemoval&&Object.hasOwnProperty.call(e,"permanentRemoval")&&t.uint32(32).bool(e.permanentRemoval),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ContractDeleteTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.contractID=$root.proto.ContractID.decode(e,e.uint32());break;case 2:o.transferAccountID=$root.proto.AccountID.decode(e,e.uint32());break;case 3:o.transferContractID=$root.proto.ContractID.decode(e,e.uint32());break;case 4:o.permanentRemoval=e.bool();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ContractDeleteTransactionBody"},e}(),e.ConsensusCreateTopicTransactionBody=function(){function e(e){if(this.feeExemptKeyList=[],this.customFees=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.memo="",e.prototype.adminKey=null,e.prototype.submitKey=null,e.prototype.autoRenewPeriod=null,e.prototype.autoRenewAccount=null,e.prototype.feeScheduleKey=null,e.prototype.feeExemptKeyList=$util.emptyArray,e.prototype.customFees=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.memo&&Object.hasOwnProperty.call(e,"memo")&&t.uint32(10).string(e.memo),null!=e.adminKey&&Object.hasOwnProperty.call(e,"adminKey")&&$root.proto.Key.encode(e.adminKey,t.uint32(18).fork()).ldelim(),null!=e.submitKey&&Object.hasOwnProperty.call(e,"submitKey")&&$root.proto.Key.encode(e.submitKey,t.uint32(26).fork()).ldelim(),null!=e.autoRenewPeriod&&Object.hasOwnProperty.call(e,"autoRenewPeriod")&&$root.proto.Duration.encode(e.autoRenewPeriod,t.uint32(50).fork()).ldelim(),null!=e.autoRenewAccount&&Object.hasOwnProperty.call(e,"autoRenewAccount")&&$root.proto.AccountID.encode(e.autoRenewAccount,t.uint32(58).fork()).ldelim(),null!=e.feeScheduleKey&&Object.hasOwnProperty.call(e,"feeScheduleKey")&&$root.proto.Key.encode(e.feeScheduleKey,t.uint32(66).fork()).ldelim(),null!=e.feeExemptKeyList&&e.feeExemptKeyList.length)for(var r=0;r<e.feeExemptKeyList.length;++r)$root.proto.Key.encode(e.feeExemptKeyList[r],t.uint32(74).fork()).ldelim();if(null!=e.customFees&&e.customFees.length)for(r=0;r<e.customFees.length;++r)$root.proto.FixedCustomFee.encode(e.customFees[r],t.uint32(82).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ConsensusCreateTopicTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.memo=e.string();break;case 2:o.adminKey=$root.proto.Key.decode(e,e.uint32());break;case 3:o.submitKey=$root.proto.Key.decode(e,e.uint32());break;case 6:o.autoRenewPeriod=$root.proto.Duration.decode(e,e.uint32());break;case 7:o.autoRenewAccount=$root.proto.AccountID.decode(e,e.uint32());break;case 8:o.feeScheduleKey=$root.proto.Key.decode(e,e.uint32());break;case 9:o.feeExemptKeyList&&o.feeExemptKeyList.length||(o.feeExemptKeyList=[]),o.feeExemptKeyList.push($root.proto.Key.decode(e,e.uint32()));break;case 10:o.customFees&&o.customFees.length||(o.customFees=[]),o.customFees.push($root.proto.FixedCustomFee.decode(e,e.uint32()));break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ConsensusCreateTopicTransactionBody"},e}(),e.FractionalFee=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.fractionalAmount=null,e.prototype.minimumAmount=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.maximumAmount=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.netOfTransfers=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.fractionalAmount&&Object.hasOwnProperty.call(e,"fractionalAmount")&&$root.proto.Fraction.encode(e.fractionalAmount,t.uint32(10).fork()).ldelim(),null!=e.minimumAmount&&Object.hasOwnProperty.call(e,"minimumAmount")&&t.uint32(16).int64(e.minimumAmount),null!=e.maximumAmount&&Object.hasOwnProperty.call(e,"maximumAmount")&&t.uint32(24).int64(e.maximumAmount),null!=e.netOfTransfers&&Object.hasOwnProperty.call(e,"netOfTransfers")&&t.uint32(32).bool(e.netOfTransfers),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.FractionalFee;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.fractionalAmount=$root.proto.Fraction.decode(e,e.uint32());break;case 2:o.minimumAmount=e.int64();break;case 3:o.maximumAmount=e.int64();break;case 4:o.netOfTransfers=e.bool();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.FractionalFee"},e}(),e.FixedFee=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.amount=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.denominatingTokenId=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.amount&&Object.hasOwnProperty.call(e,"amount")&&t.uint32(8).int64(e.amount),null!=e.denominatingTokenId&&Object.hasOwnProperty.call(e,"denominatingTokenId")&&$root.proto.TokenID.encode(e.denominatingTokenId,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.FixedFee;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.amount=e.int64();break;case 2:o.denominatingTokenId=$root.proto.TokenID.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.FixedFee"},e}(),e.RoyaltyFee=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.exchangeValueFraction=null,e.prototype.fallbackFee=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.exchangeValueFraction&&Object.hasOwnProperty.call(e,"exchangeValueFraction")&&$root.proto.Fraction.encode(e.exchangeValueFraction,t.uint32(10).fork()).ldelim(),null!=e.fallbackFee&&Object.hasOwnProperty.call(e,"fallbackFee")&&$root.proto.FixedFee.encode(e.fallbackFee,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.RoyaltyFee;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.exchangeValueFraction=$root.proto.Fraction.decode(e,e.uint32());break;case 2:o.fallbackFee=$root.proto.FixedFee.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.RoyaltyFee"},e}(),e.CustomFee=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.fixedFee=null,e.prototype.fractionalFee=null,e.prototype.royaltyFee=null,e.prototype.feeCollectorAccountId=null,e.prototype.allCollectorsAreExempt=!1,Object.defineProperty(e.prototype,"fee",{get:$util.oneOfGetter(t=["fixedFee","fractionalFee","royaltyFee"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.fixedFee&&Object.hasOwnProperty.call(e,"fixedFee")&&$root.proto.FixedFee.encode(e.fixedFee,t.uint32(10).fork()).ldelim(),null!=e.fractionalFee&&Object.hasOwnProperty.call(e,"fractionalFee")&&$root.proto.FractionalFee.encode(e.fractionalFee,t.uint32(18).fork()).ldelim(),null!=e.feeCollectorAccountId&&Object.hasOwnProperty.call(e,"feeCollectorAccountId")&&$root.proto.AccountID.encode(e.feeCollectorAccountId,t.uint32(26).fork()).ldelim(),null!=e.royaltyFee&&Object.hasOwnProperty.call(e,"royaltyFee")&&$root.proto.RoyaltyFee.encode(e.royaltyFee,t.uint32(34).fork()).ldelim(),null!=e.allCollectorsAreExempt&&Object.hasOwnProperty.call(e,"allCollectorsAreExempt")&&t.uint32(40).bool(e.allCollectorsAreExempt),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.CustomFee;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.fixedFee=$root.proto.FixedFee.decode(e,e.uint32());break;case 2:o.fractionalFee=$root.proto.FractionalFee.decode(e,e.uint32());break;case 4:o.royaltyFee=$root.proto.RoyaltyFee.decode(e,e.uint32());break;case 3:o.feeCollectorAccountId=$root.proto.AccountID.decode(e,e.uint32());break;case 5:o.allCollectorsAreExempt=e.bool();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.CustomFee"},e}(),e.AssessedCustomFee=function(){function e(e){if(this.effectivePayerAccountId=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.amount=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.tokenId=null,e.prototype.feeCollectorAccountId=null,e.prototype.effectivePayerAccountId=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.amount&&Object.hasOwnProperty.call(e,"amount")&&t.uint32(8).int64(e.amount),null!=e.tokenId&&Object.hasOwnProperty.call(e,"tokenId")&&$root.proto.TokenID.encode(e.tokenId,t.uint32(18).fork()).ldelim(),null!=e.feeCollectorAccountId&&Object.hasOwnProperty.call(e,"feeCollectorAccountId")&&$root.proto.AccountID.encode(e.feeCollectorAccountId,t.uint32(26).fork()).ldelim(),null!=e.effectivePayerAccountId&&e.effectivePayerAccountId.length)for(var r=0;r<e.effectivePayerAccountId.length;++r)$root.proto.AccountID.encode(e.effectivePayerAccountId[r],t.uint32(34).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.AssessedCustomFee;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.amount=e.int64();break;case 2:o.tokenId=$root.proto.TokenID.decode(e,e.uint32());break;case 3:o.feeCollectorAccountId=$root.proto.AccountID.decode(e,e.uint32());break;case 4:o.effectivePayerAccountId&&o.effectivePayerAccountId.length||(o.effectivePayerAccountId=[]),o.effectivePayerAccountId.push($root.proto.AccountID.decode(e,e.uint32()));break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.AssessedCustomFee"},e}(),e.FixedCustomFee=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.fixedFee=null,e.prototype.feeCollectorAccountId=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.fixedFee&&Object.hasOwnProperty.call(e,"fixedFee")&&$root.proto.FixedFee.encode(e.fixedFee,t.uint32(10).fork()).ldelim(),null!=e.feeCollectorAccountId&&Object.hasOwnProperty.call(e,"feeCollectorAccountId")&&$root.proto.AccountID.encode(e.feeCollectorAccountId,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.FixedCustomFee;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.fixedFee=$root.proto.FixedFee.decode(e,e.uint32());break;case 2:o.feeCollectorAccountId=$root.proto.AccountID.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.FixedCustomFee"},e}(),e.FixedCustomFeeList=function(){function e(e){if(this.fees=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.fees=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.fees&&e.fees.length)for(var r=0;r<e.fees.length;++r)$root.proto.FixedCustomFee.encode(e.fees[r],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.FixedCustomFeeList;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.fees&&o.fees.length||(o.fees=[]),o.fees.push($root.proto.FixedCustomFee.decode(e,e.uint32()));else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.FixedCustomFeeList"},e}(),e.FeeExemptKeyList=function(){function e(e){if(this.keys=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.keys=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.keys&&e.keys.length)for(var r=0;r<e.keys.length;++r)$root.proto.Key.encode(e.keys[r],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.FeeExemptKeyList;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.keys&&o.keys.length||(o.keys=[]),o.keys.push($root.proto.Key.decode(e,e.uint32()));else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.FeeExemptKeyList"},e}(),e.CustomFeeLimit=function(){function e(e){if(this.fees=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.accountId=null,e.prototype.fees=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.accountId&&Object.hasOwnProperty.call(e,"accountId")&&$root.proto.AccountID.encode(e.accountId,t.uint32(10).fork()).ldelim(),null!=e.fees&&e.fees.length)for(var r=0;r<e.fees.length;++r)$root.proto.FixedFee.encode(e.fees[r],t.uint32(18).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.CustomFeeLimit;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.accountId=$root.proto.AccountID.decode(e,e.uint32());break;case 2:o.fees&&o.fees.length||(o.fees=[]),o.fees.push($root.proto.FixedFee.decode(e,e.uint32()));break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.CustomFeeLimit"},e}(),e.ConsensusUpdateTopicTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.topicID=null,e.prototype.memo=null,e.prototype.expirationTime=null,e.prototype.adminKey=null,e.prototype.submitKey=null,e.prototype.autoRenewPeriod=null,e.prototype.autoRenewAccount=null,e.prototype.feeScheduleKey=null,e.prototype.feeExemptKeyList=null,e.prototype.customFees=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.topicID&&Object.hasOwnProperty.call(e,"topicID")&&$root.proto.TopicID.encode(e.topicID,t.uint32(10).fork()).ldelim(),null!=e.memo&&Object.hasOwnProperty.call(e,"memo")&&$root.google.protobuf.StringValue.encode(e.memo,t.uint32(18).fork()).ldelim(),null!=e.expirationTime&&Object.hasOwnProperty.call(e,"expirationTime")&&$root.proto.Timestamp.encode(e.expirationTime,t.uint32(34).fork()).ldelim(),null!=e.adminKey&&Object.hasOwnProperty.call(e,"adminKey")&&$root.proto.Key.encode(e.adminKey,t.uint32(50).fork()).ldelim(),null!=e.submitKey&&Object.hasOwnProperty.call(e,"submitKey")&&$root.proto.Key.encode(e.submitKey,t.uint32(58).fork()).ldelim(),null!=e.autoRenewPeriod&&Object.hasOwnProperty.call(e,"autoRenewPeriod")&&$root.proto.Duration.encode(e.autoRenewPeriod,t.uint32(66).fork()).ldelim(),null!=e.autoRenewAccount&&Object.hasOwnProperty.call(e,"autoRenewAccount")&&$root.proto.AccountID.encode(e.autoRenewAccount,t.uint32(74).fork()).ldelim(),null!=e.feeScheduleKey&&Object.hasOwnProperty.call(e,"feeScheduleKey")&&$root.proto.Key.encode(e.feeScheduleKey,t.uint32(82).fork()).ldelim(),null!=e.feeExemptKeyList&&Object.hasOwnProperty.call(e,"feeExemptKeyList")&&$root.proto.FeeExemptKeyList.encode(e.feeExemptKeyList,t.uint32(90).fork()).ldelim(),null!=e.customFees&&Object.hasOwnProperty.call(e,"customFees")&&$root.proto.FixedCustomFeeList.encode(e.customFees,t.uint32(98).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ConsensusUpdateTopicTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.topicID=$root.proto.TopicID.decode(e,e.uint32());break;case 2:o.memo=$root.google.protobuf.StringValue.decode(e,e.uint32());break;case 4:o.expirationTime=$root.proto.Timestamp.decode(e,e.uint32());break;case 6:o.adminKey=$root.proto.Key.decode(e,e.uint32());break;case 7:o.submitKey=$root.proto.Key.decode(e,e.uint32());break;case 8:o.autoRenewPeriod=$root.proto.Duration.decode(e,e.uint32());break;case 9:o.autoRenewAccount=$root.proto.AccountID.decode(e,e.uint32());break;case 10:o.feeScheduleKey=$root.proto.Key.decode(e,e.uint32());break;case 11:o.feeExemptKeyList=$root.proto.FeeExemptKeyList.decode(e,e.uint32());break;case 12:o.customFees=$root.proto.FixedCustomFeeList.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ConsensusUpdateTopicTransactionBody"},e}(),e.ConsensusDeleteTopicTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.topicID=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.topicID&&Object.hasOwnProperty.call(e,"topicID")&&$root.proto.TopicID.encode(e.topicID,t.uint32(10).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ConsensusDeleteTopicTransactionBody;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.topicID=$root.proto.TopicID.decode(e,e.uint32());else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ConsensusDeleteTopicTransactionBody"},e}(),e.ConsensusMessageChunkInfo=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.initialTransactionID=null,e.prototype.total=0,e.prototype.number=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.initialTransactionID&&Object.hasOwnProperty.call(e,"initialTransactionID")&&$root.proto.TransactionID.encode(e.initialTransactionID,t.uint32(10).fork()).ldelim(),null!=e.total&&Object.hasOwnProperty.call(e,"total")&&t.uint32(16).int32(e.total),null!=e.number&&Object.hasOwnProperty.call(e,"number")&&t.uint32(24).int32(e.number),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ConsensusMessageChunkInfo;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.initialTransactionID=$root.proto.TransactionID.decode(e,e.uint32());break;case 2:o.total=e.int32();break;case 3:o.number=e.int32();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ConsensusMessageChunkInfo"},e}(),e.ConsensusSubmitMessageTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.topicID=null,e.prototype.message=$util.newBuffer([]),e.prototype.chunkInfo=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.topicID&&Object.hasOwnProperty.call(e,"topicID")&&$root.proto.TopicID.encode(e.topicID,t.uint32(10).fork()).ldelim(),null!=e.message&&Object.hasOwnProperty.call(e,"message")&&t.uint32(18).bytes(e.message),null!=e.chunkInfo&&Object.hasOwnProperty.call(e,"chunkInfo")&&$root.proto.ConsensusMessageChunkInfo.encode(e.chunkInfo,t.uint32(26).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ConsensusSubmitMessageTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.topicID=$root.proto.TopicID.decode(e,e.uint32());break;case 2:o.message=e.bytes();break;case 3:o.chunkInfo=$root.proto.ConsensusMessageChunkInfo.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ConsensusSubmitMessageTransactionBody"},e}(),e.UncheckedSubmitBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.transactionBytes=$util.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.transactionBytes&&Object.hasOwnProperty.call(e,"transactionBytes")&&t.uint32(10).bytes(e.transactionBytes),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.UncheckedSubmitBody;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.transactionBytes=e.bytes();else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.UncheckedSubmitBody"},e}(),e.TokenCreateTransactionBody=function(){function e(e){if(this.customFees=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.name="",e.prototype.symbol="",e.prototype.decimals=0,e.prototype.initialSupply=$util.Long?$util.Long.fromBits(0,0,!0):0,e.prototype.treasury=null,e.prototype.adminKey=null,e.prototype.kycKey=null,e.prototype.freezeKey=null,e.prototype.wipeKey=null,e.prototype.supplyKey=null,e.prototype.freezeDefault=!1,e.prototype.expiry=null,e.prototype.autoRenewAccount=null,e.prototype.autoRenewPeriod=null,e.prototype.memo="",e.prototype.tokenType=0,e.prototype.supplyType=0,e.prototype.maxSupply=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.feeScheduleKey=null,e.prototype.customFees=$util.emptyArray,e.prototype.pauseKey=null,e.prototype.metadata=$util.newBuffer([]),e.prototype.metadataKey=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.symbol&&Object.hasOwnProperty.call(e,"symbol")&&t.uint32(18).string(e.symbol),null!=e.decimals&&Object.hasOwnProperty.call(e,"decimals")&&t.uint32(24).uint32(e.decimals),null!=e.initialSupply&&Object.hasOwnProperty.call(e,"initialSupply")&&t.uint32(32).uint64(e.initialSupply),null!=e.treasury&&Object.hasOwnProperty.call(e,"treasury")&&$root.proto.AccountID.encode(e.treasury,t.uint32(42).fork()).ldelim(),null!=e.adminKey&&Object.hasOwnProperty.call(e,"adminKey")&&$root.proto.Key.encode(e.adminKey,t.uint32(50).fork()).ldelim(),null!=e.kycKey&&Object.hasOwnProperty.call(e,"kycKey")&&$root.proto.Key.encode(e.kycKey,t.uint32(58).fork()).ldelim(),null!=e.freezeKey&&Object.hasOwnProperty.call(e,"freezeKey")&&$root.proto.Key.encode(e.freezeKey,t.uint32(66).fork()).ldelim(),null!=e.wipeKey&&Object.hasOwnProperty.call(e,"wipeKey")&&$root.proto.Key.encode(e.wipeKey,t.uint32(74).fork()).ldelim(),null!=e.supplyKey&&Object.hasOwnProperty.call(e,"supplyKey")&&$root.proto.Key.encode(e.supplyKey,t.uint32(82).fork()).ldelim(),null!=e.freezeDefault&&Object.hasOwnProperty.call(e,"freezeDefault")&&t.uint32(88).bool(e.freezeDefault),null!=e.expiry&&Object.hasOwnProperty.call(e,"expiry")&&$root.proto.Timestamp.encode(e.expiry,t.uint32(106).fork()).ldelim(),null!=e.autoRenewAccount&&Object.hasOwnProperty.call(e,"autoRenewAccount")&&$root.proto.AccountID.encode(e.autoRenewAccount,t.uint32(114).fork()).ldelim(),null!=e.autoRenewPeriod&&Object.hasOwnProperty.call(e,"autoRenewPeriod")&&$root.proto.Duration.encode(e.autoRenewPeriod,t.uint32(122).fork()).ldelim(),null!=e.memo&&Object.hasOwnProperty.call(e,"memo")&&t.uint32(130).string(e.memo),null!=e.tokenType&&Object.hasOwnProperty.call(e,"tokenType")&&t.uint32(136).int32(e.tokenType),null!=e.supplyType&&Object.hasOwnProperty.call(e,"supplyType")&&t.uint32(144).int32(e.supplyType),null!=e.maxSupply&&Object.hasOwnProperty.call(e,"maxSupply")&&t.uint32(152).int64(e.maxSupply),null!=e.feeScheduleKey&&Object.hasOwnProperty.call(e,"feeScheduleKey")&&$root.proto.Key.encode(e.feeScheduleKey,t.uint32(162).fork()).ldelim(),null!=e.customFees&&e.customFees.length)for(var r=0;r<e.customFees.length;++r)$root.proto.CustomFee.encode(e.customFees[r],t.uint32(170).fork()).ldelim();return null!=e.pauseKey&&Object.hasOwnProperty.call(e,"pauseKey")&&$root.proto.Key.encode(e.pauseKey,t.uint32(178).fork()).ldelim(),null!=e.metadata&&Object.hasOwnProperty.call(e,"metadata")&&t.uint32(186).bytes(e.metadata),null!=e.metadataKey&&Object.hasOwnProperty.call(e,"metadataKey")&&$root.proto.Key.encode(e.metadataKey,t.uint32(194).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenCreateTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.name=e.string();break;case 2:o.symbol=e.string();break;case 3:o.decimals=e.uint32();break;case 4:o.initialSupply=e.uint64();break;case 5:o.treasury=$root.proto.AccountID.decode(e,e.uint32());break;case 6:o.adminKey=$root.proto.Key.decode(e,e.uint32());break;case 7:o.kycKey=$root.proto.Key.decode(e,e.uint32());break;case 8:o.freezeKey=$root.proto.Key.decode(e,e.uint32());break;case 9:o.wipeKey=$root.proto.Key.decode(e,e.uint32());break;case 10:o.supplyKey=$root.proto.Key.decode(e,e.uint32());break;case 11:o.freezeDefault=e.bool();break;case 13:o.expiry=$root.proto.Timestamp.decode(e,e.uint32());break;case 14:o.autoRenewAccount=$root.proto.AccountID.decode(e,e.uint32());break;case 15:o.autoRenewPeriod=$root.proto.Duration.decode(e,e.uint32());break;case 16:o.memo=e.string();break;case 17:o.tokenType=e.int32();break;case 18:o.supplyType=e.int32();break;case 19:o.maxSupply=e.int64();break;case 20:o.feeScheduleKey=$root.proto.Key.decode(e,e.uint32());break;case 21:o.customFees&&o.customFees.length||(o.customFees=[]),o.customFees.push($root.proto.CustomFee.decode(e,e.uint32()));break;case 22:o.pauseKey=$root.proto.Key.decode(e,e.uint32());break;case 23:o.metadata=e.bytes();break;case 24:o.metadataKey=$root.proto.Key.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenCreateTransactionBody"},e}(),e.TokenFreezeAccountTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.token=null,e.prototype.account=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.token&&Object.hasOwnProperty.call(e,"token")&&$root.proto.TokenID.encode(e.token,t.uint32(10).fork()).ldelim(),null!=e.account&&Object.hasOwnProperty.call(e,"account")&&$root.proto.AccountID.encode(e.account,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenFreezeAccountTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.token=$root.proto.TokenID.decode(e,e.uint32());break;case 2:o.account=$root.proto.AccountID.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenFreezeAccountTransactionBody"},e}(),e.TokenUnfreezeAccountTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.token=null,e.prototype.account=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.token&&Object.hasOwnProperty.call(e,"token")&&$root.proto.TokenID.encode(e.token,t.uint32(10).fork()).ldelim(),null!=e.account&&Object.hasOwnProperty.call(e,"account")&&$root.proto.AccountID.encode(e.account,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenUnfreezeAccountTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.token=$root.proto.TokenID.decode(e,e.uint32());break;case 2:o.account=$root.proto.AccountID.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenUnfreezeAccountTransactionBody"},e}(),e.TokenGrantKycTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.token=null,e.prototype.account=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.token&&Object.hasOwnProperty.call(e,"token")&&$root.proto.TokenID.encode(e.token,t.uint32(10).fork()).ldelim(),null!=e.account&&Object.hasOwnProperty.call(e,"account")&&$root.proto.AccountID.encode(e.account,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenGrantKycTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.token=$root.proto.TokenID.decode(e,e.uint32());break;case 2:o.account=$root.proto.AccountID.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenGrantKycTransactionBody"},e}(),e.TokenRevokeKycTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.token=null,e.prototype.account=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.token&&Object.hasOwnProperty.call(e,"token")&&$root.proto.TokenID.encode(e.token,t.uint32(10).fork()).ldelim(),null!=e.account&&Object.hasOwnProperty.call(e,"account")&&$root.proto.AccountID.encode(e.account,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenRevokeKycTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.token=$root.proto.TokenID.decode(e,e.uint32());break;case 2:o.account=$root.proto.AccountID.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenRevokeKycTransactionBody"},e}(),e.TokenDeleteTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.token=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.token&&Object.hasOwnProperty.call(e,"token")&&$root.proto.TokenID.encode(e.token,t.uint32(10).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenDeleteTransactionBody;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.token=$root.proto.TokenID.decode(e,e.uint32());else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenDeleteTransactionBody"},e}(),e.TokenUpdateTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.token=null,e.prototype.symbol="",e.prototype.name="",e.prototype.treasury=null,e.prototype.adminKey=null,e.prototype.kycKey=null,e.prototype.freezeKey=null,e.prototype.wipeKey=null,e.prototype.supplyKey=null,e.prototype.autoRenewAccount=null,e.prototype.autoRenewPeriod=null,e.prototype.expiry=null,e.prototype.memo=null,e.prototype.feeScheduleKey=null,e.prototype.pauseKey=null,e.prototype.metadata=null,e.prototype.metadataKey=null,e.prototype.keyVerificationMode=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.token&&Object.hasOwnProperty.call(e,"token")&&$root.proto.TokenID.encode(e.token,t.uint32(10).fork()).ldelim(),null!=e.symbol&&Object.hasOwnProperty.call(e,"symbol")&&t.uint32(18).string(e.symbol),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(26).string(e.name),null!=e.treasury&&Object.hasOwnProperty.call(e,"treasury")&&$root.proto.AccountID.encode(e.treasury,t.uint32(34).fork()).ldelim(),null!=e.adminKey&&Object.hasOwnProperty.call(e,"adminKey")&&$root.proto.Key.encode(e.adminKey,t.uint32(42).fork()).ldelim(),null!=e.kycKey&&Object.hasOwnProperty.call(e,"kycKey")&&$root.proto.Key.encode(e.kycKey,t.uint32(50).fork()).ldelim(),null!=e.freezeKey&&Object.hasOwnProperty.call(e,"freezeKey")&&$root.proto.Key.encode(e.freezeKey,t.uint32(58).fork()).ldelim(),null!=e.wipeKey&&Object.hasOwnProperty.call(e,"wipeKey")&&$root.proto.Key.encode(e.wipeKey,t.uint32(66).fork()).ldelim(),null!=e.supplyKey&&Object.hasOwnProperty.call(e,"supplyKey")&&$root.proto.Key.encode(e.supplyKey,t.uint32(74).fork()).ldelim(),null!=e.autoRenewAccount&&Object.hasOwnProperty.call(e,"autoRenewAccount")&&$root.proto.AccountID.encode(e.autoRenewAccount,t.uint32(82).fork()).ldelim(),null!=e.autoRenewPeriod&&Object.hasOwnProperty.call(e,"autoRenewPeriod")&&$root.proto.Duration.encode(e.autoRenewPeriod,t.uint32(90).fork()).ldelim(),null!=e.expiry&&Object.hasOwnProperty.call(e,"expiry")&&$root.proto.Timestamp.encode(e.expiry,t.uint32(98).fork()).ldelim(),null!=e.memo&&Object.hasOwnProperty.call(e,"memo")&&$root.google.protobuf.StringValue.encode(e.memo,t.uint32(106).fork()).ldelim(),null!=e.feeScheduleKey&&Object.hasOwnProperty.call(e,"feeScheduleKey")&&$root.proto.Key.encode(e.feeScheduleKey,t.uint32(114).fork()).ldelim(),null!=e.pauseKey&&Object.hasOwnProperty.call(e,"pauseKey")&&$root.proto.Key.encode(e.pauseKey,t.uint32(122).fork()).ldelim(),null!=e.metadata&&Object.hasOwnProperty.call(e,"metadata")&&$root.google.protobuf.BytesValue.encode(e.metadata,t.uint32(130).fork()).ldelim(),null!=e.metadataKey&&Object.hasOwnProperty.call(e,"metadataKey")&&$root.proto.Key.encode(e.metadataKey,t.uint32(138).fork()).ldelim(),null!=e.keyVerificationMode&&Object.hasOwnProperty.call(e,"keyVerificationMode")&&t.uint32(144).int32(e.keyVerificationMode),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenUpdateTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.token=$root.proto.TokenID.decode(e,e.uint32());break;case 2:o.symbol=e.string();break;case 3:o.name=e.string();break;case 4:o.treasury=$root.proto.AccountID.decode(e,e.uint32());break;case 5:o.adminKey=$root.proto.Key.decode(e,e.uint32());break;case 6:o.kycKey=$root.proto.Key.decode(e,e.uint32());break;case 7:o.freezeKey=$root.proto.Key.decode(e,e.uint32());break;case 8:o.wipeKey=$root.proto.Key.decode(e,e.uint32());break;case 9:o.supplyKey=$root.proto.Key.decode(e,e.uint32());break;case 10:o.autoRenewAccount=$root.proto.AccountID.decode(e,e.uint32());break;case 11:o.autoRenewPeriod=$root.proto.Duration.decode(e,e.uint32());break;case 12:o.expiry=$root.proto.Timestamp.decode(e,e.uint32());break;case 13:o.memo=$root.google.protobuf.StringValue.decode(e,e.uint32());break;case 14:o.feeScheduleKey=$root.proto.Key.decode(e,e.uint32());break;case 15:o.pauseKey=$root.proto.Key.decode(e,e.uint32());break;case 16:o.metadata=$root.google.protobuf.BytesValue.decode(e,e.uint32());break;case 17:o.metadataKey=$root.proto.Key.decode(e,e.uint32());break;case 18:o.keyVerificationMode=e.int32();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenUpdateTransactionBody"},e}(),e.TokenMintTransactionBody=function(){function e(e){if(this.metadata=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.token=null,e.prototype.amount=$util.Long?$util.Long.fromBits(0,0,!0):0,e.prototype.metadata=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.token&&Object.hasOwnProperty.call(e,"token")&&$root.proto.TokenID.encode(e.token,t.uint32(10).fork()).ldelim(),null!=e.amount&&Object.hasOwnProperty.call(e,"amount")&&t.uint32(16).uint64(e.amount),null!=e.metadata&&e.metadata.length)for(var r=0;r<e.metadata.length;++r)t.uint32(26).bytes(e.metadata[r]);return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenMintTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.token=$root.proto.TokenID.decode(e,e.uint32());break;case 2:o.amount=e.uint64();break;case 3:o.metadata&&o.metadata.length||(o.metadata=[]),o.metadata.push(e.bytes());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenMintTransactionBody"},e}(),e.TokenBurnTransactionBody=function(){function e(e){if(this.serialNumbers=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.token=null,e.prototype.amount=$util.Long?$util.Long.fromBits(0,0,!0):0,e.prototype.serialNumbers=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.token&&Object.hasOwnProperty.call(e,"token")&&$root.proto.TokenID.encode(e.token,t.uint32(10).fork()).ldelim(),null!=e.amount&&Object.hasOwnProperty.call(e,"amount")&&t.uint32(16).uint64(e.amount),null!=e.serialNumbers&&e.serialNumbers.length){t.uint32(26).fork();for(var r=0;r<e.serialNumbers.length;++r)t.int64(e.serialNumbers[r]);t.ldelim()}return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenBurnTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.token=$root.proto.TokenID.decode(e,e.uint32());break;case 2:o.amount=e.uint64();break;case 3:if(o.serialNumbers&&o.serialNumbers.length||(o.serialNumbers=[]),2==(7&n))for(var i=e.uint32()+e.pos;e.pos<i;)o.serialNumbers.push(e.int64());else o.serialNumbers.push(e.int64());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenBurnTransactionBody"},e}(),e.TokenWipeAccountTransactionBody=function(){function e(e){if(this.serialNumbers=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.token=null,e.prototype.account=null,e.prototype.amount=$util.Long?$util.Long.fromBits(0,0,!0):0,e.prototype.serialNumbers=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.token&&Object.hasOwnProperty.call(e,"token")&&$root.proto.TokenID.encode(e.token,t.uint32(10).fork()).ldelim(),null!=e.account&&Object.hasOwnProperty.call(e,"account")&&$root.proto.AccountID.encode(e.account,t.uint32(18).fork()).ldelim(),null!=e.amount&&Object.hasOwnProperty.call(e,"amount")&&t.uint32(24).uint64(e.amount),null!=e.serialNumbers&&e.serialNumbers.length){t.uint32(34).fork();for(var r=0;r<e.serialNumbers.length;++r)t.int64(e.serialNumbers[r]);t.ldelim()}return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenWipeAccountTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.token=$root.proto.TokenID.decode(e,e.uint32());break;case 2:o.account=$root.proto.AccountID.decode(e,e.uint32());break;case 3:o.amount=e.uint64();break;case 4:if(o.serialNumbers&&o.serialNumbers.length||(o.serialNumbers=[]),2==(7&n))for(var i=e.uint32()+e.pos;e.pos<i;)o.serialNumbers.push(e.int64());else o.serialNumbers.push(e.int64());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenWipeAccountTransactionBody"},e}(),e.TokenAssociateTransactionBody=function(){function e(e){if(this.tokens=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.account=null,e.prototype.tokens=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.account&&Object.hasOwnProperty.call(e,"account")&&$root.proto.AccountID.encode(e.account,t.uint32(10).fork()).ldelim(),null!=e.tokens&&e.tokens.length)for(var r=0;r<e.tokens.length;++r)$root.proto.TokenID.encode(e.tokens[r],t.uint32(18).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenAssociateTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.account=$root.proto.AccountID.decode(e,e.uint32());break;case 2:o.tokens&&o.tokens.length||(o.tokens=[]),o.tokens.push($root.proto.TokenID.decode(e,e.uint32()));break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenAssociateTransactionBody"},e}(),e.TokenDissociateTransactionBody=function(){function e(e){if(this.tokens=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.account=null,e.prototype.tokens=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.account&&Object.hasOwnProperty.call(e,"account")&&$root.proto.AccountID.encode(e.account,t.uint32(10).fork()).ldelim(),null!=e.tokens&&e.tokens.length)for(var r=0;r<e.tokens.length;++r)$root.proto.TokenID.encode(e.tokens[r],t.uint32(18).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenDissociateTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.account=$root.proto.AccountID.decode(e,e.uint32());break;case 2:o.tokens&&o.tokens.length||(o.tokens=[]),o.tokens.push($root.proto.TokenID.decode(e,e.uint32()));break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenDissociateTransactionBody"},e}(),e.TokenFeeScheduleUpdateTransactionBody=function(){function e(e){if(this.customFees=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.tokenId=null,e.prototype.customFees=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.tokenId&&Object.hasOwnProperty.call(e,"tokenId")&&$root.proto.TokenID.encode(e.tokenId,t.uint32(10).fork()).ldelim(),null!=e.customFees&&e.customFees.length)for(var r=0;r<e.customFees.length;++r)$root.proto.CustomFee.encode(e.customFees[r],t.uint32(18).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenFeeScheduleUpdateTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.tokenId=$root.proto.TokenID.decode(e,e.uint32());break;case 2:o.customFees&&o.customFees.length||(o.customFees=[]),o.customFees.push($root.proto.CustomFee.decode(e,e.uint32()));break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenFeeScheduleUpdateTransactionBody"},e}(),e.TokenPauseTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.token=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.token&&Object.hasOwnProperty.call(e,"token")&&$root.proto.TokenID.encode(e.token,t.uint32(10).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenPauseTransactionBody;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.token=$root.proto.TokenID.decode(e,e.uint32());else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenPauseTransactionBody"},e}(),e.TokenUnpauseTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.token=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.token&&Object.hasOwnProperty.call(e,"token")&&$root.proto.TokenID.encode(e.token,t.uint32(10).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenUnpauseTransactionBody;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.token=$root.proto.TokenID.decode(e,e.uint32());else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenUnpauseTransactionBody"},e}(),e.TokenUpdateNftsTransactionBody=function(){function e(e){if(this.serialNumbers=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.token=null,e.prototype.serialNumbers=$util.emptyArray,e.prototype.metadata=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.token&&Object.hasOwnProperty.call(e,"token")&&$root.proto.TokenID.encode(e.token,t.uint32(10).fork()).ldelim(),null!=e.serialNumbers&&e.serialNumbers.length){t.uint32(18).fork();for(var r=0;r<e.serialNumbers.length;++r)t.int64(e.serialNumbers[r]);t.ldelim()}return null!=e.metadata&&Object.hasOwnProperty.call(e,"metadata")&&$root.google.protobuf.BytesValue.encode(e.metadata,t.uint32(26).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenUpdateNftsTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.token=$root.proto.TokenID.decode(e,e.uint32());break;case 2:if(o.serialNumbers&&o.serialNumbers.length||(o.serialNumbers=[]),2==(7&n))for(var i=e.uint32()+e.pos;e.pos<i;)o.serialNumbers.push(e.int64());else o.serialNumbers.push(e.int64());break;case 3:o.metadata=$root.google.protobuf.BytesValue.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenUpdateNftsTransactionBody"},e}(),e.TokenRejectTransactionBody=function(){function e(e){if(this.rejections=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.owner=null,e.prototype.rejections=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.owner&&Object.hasOwnProperty.call(e,"owner")&&$root.proto.AccountID.encode(e.owner,t.uint32(10).fork()).ldelim(),null!=e.rejections&&e.rejections.length)for(var r=0;r<e.rejections.length;++r)$root.proto.TokenReference.encode(e.rejections[r],t.uint32(18).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenRejectTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.owner=$root.proto.AccountID.decode(e,e.uint32());break;case 2:o.rejections&&o.rejections.length||(o.rejections=[]),o.rejections.push($root.proto.TokenReference.decode(e,e.uint32()));break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenRejectTransactionBody"},e}(),e.TokenReference=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.fungibleToken=null,e.prototype.nft=null,Object.defineProperty(e.prototype,"tokenIdentifier",{get:$util.oneOfGetter(t=["fungibleToken","nft"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.fungibleToken&&Object.hasOwnProperty.call(e,"fungibleToken")&&$root.proto.TokenID.encode(e.fungibleToken,t.uint32(10).fork()).ldelim(),null!=e.nft&&Object.hasOwnProperty.call(e,"nft")&&$root.proto.NftID.encode(e.nft,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenReference;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.fungibleToken=$root.proto.TokenID.decode(e,e.uint32());break;case 2:o.nft=$root.proto.NftID.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenReference"},e}(),e.TokenAirdropTransactionBody=function(){function e(e){if(this.tokenTransfers=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.tokenTransfers=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.tokenTransfers&&e.tokenTransfers.length)for(var r=0;r<e.tokenTransfers.length;++r)$root.proto.TokenTransferList.encode(e.tokenTransfers[r],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenAirdropTransactionBody;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.tokenTransfers&&o.tokenTransfers.length||(o.tokenTransfers=[]),o.tokenTransfers.push($root.proto.TokenTransferList.decode(e,e.uint32()));else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenAirdropTransactionBody"},e}(),e.TokenCancelAirdropTransactionBody=function(){function e(e){if(this.pendingAirdrops=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.pendingAirdrops=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.pendingAirdrops&&e.pendingAirdrops.length)for(var r=0;r<e.pendingAirdrops.length;++r)$root.proto.PendingAirdropId.encode(e.pendingAirdrops[r],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenCancelAirdropTransactionBody;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.pendingAirdrops&&o.pendingAirdrops.length||(o.pendingAirdrops=[]),o.pendingAirdrops.push($root.proto.PendingAirdropId.decode(e,e.uint32()));else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenCancelAirdropTransactionBody"},e}(),e.TokenClaimAirdropTransactionBody=function(){function e(e){if(this.pendingAirdrops=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.pendingAirdrops=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.pendingAirdrops&&e.pendingAirdrops.length)for(var r=0;r<e.pendingAirdrops.length;++r)$root.proto.PendingAirdropId.encode(e.pendingAirdrops[r],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenClaimAirdropTransactionBody;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.pendingAirdrops&&o.pendingAirdrops.length||(o.pendingAirdrops=[]),o.pendingAirdrops.push($root.proto.PendingAirdropId.decode(e,e.uint32()));else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenClaimAirdropTransactionBody"},e}(),e.ScheduleCreateTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.scheduledTransactionBody=null,e.prototype.memo="",e.prototype.adminKey=null,e.prototype.payerAccountID=null,e.prototype.expirationTime=null,e.prototype.waitForExpiry=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.scheduledTransactionBody&&Object.hasOwnProperty.call(e,"scheduledTransactionBody")&&$root.proto.SchedulableTransactionBody.encode(e.scheduledTransactionBody,t.uint32(10).fork()).ldelim(),null!=e.memo&&Object.hasOwnProperty.call(e,"memo")&&t.uint32(18).string(e.memo),null!=e.adminKey&&Object.hasOwnProperty.call(e,"adminKey")&&$root.proto.Key.encode(e.adminKey,t.uint32(26).fork()).ldelim(),null!=e.payerAccountID&&Object.hasOwnProperty.call(e,"payerAccountID")&&$root.proto.AccountID.encode(e.payerAccountID,t.uint32(34).fork()).ldelim(),null!=e.expirationTime&&Object.hasOwnProperty.call(e,"expirationTime")&&$root.proto.Timestamp.encode(e.expirationTime,t.uint32(42).fork()).ldelim(),null!=e.waitForExpiry&&Object.hasOwnProperty.call(e,"waitForExpiry")&&t.uint32(104).bool(e.waitForExpiry),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ScheduleCreateTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.scheduledTransactionBody=$root.proto.SchedulableTransactionBody.decode(e,e.uint32());break;case 2:o.memo=e.string();break;case 3:o.adminKey=$root.proto.Key.decode(e,e.uint32());break;case 4:o.payerAccountID=$root.proto.AccountID.decode(e,e.uint32());break;case 5:o.expirationTime=$root.proto.Timestamp.decode(e,e.uint32());break;case 13:o.waitForExpiry=e.bool();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ScheduleCreateTransactionBody"},e}(),e.SchedulableTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.transactionFee=$util.Long?$util.Long.fromBits(0,0,!0):0,e.prototype.memo="",e.prototype.contractCall=null,e.prototype.contractCreateInstance=null,e.prototype.contractUpdateInstance=null,e.prototype.contractDeleteInstance=null,e.prototype.cryptoCreateAccount=null,e.prototype.cryptoDelete=null,e.prototype.cryptoTransfer=null,e.prototype.cryptoUpdateAccount=null,e.prototype.fileAppend=null,e.prototype.fileCreate=null,e.prototype.fileDelete=null,e.prototype.fileUpdate=null,e.prototype.systemDelete=null,e.prototype.systemUndelete=null,e.prototype.freeze=null,e.prototype.consensusCreateTopic=null,e.prototype.consensusUpdateTopic=null,e.prototype.consensusDeleteTopic=null,e.prototype.consensusSubmitMessage=null,e.prototype.tokenCreation=null,e.prototype.tokenFreeze=null,e.prototype.tokenUnfreeze=null,e.prototype.tokenGrantKyc=null,e.prototype.tokenRevokeKyc=null,e.prototype.tokenDeletion=null,e.prototype.tokenUpdate=null,e.prototype.tokenMint=null,e.prototype.tokenBurn=null,e.prototype.tokenWipe=null,e.prototype.tokenAssociate=null,e.prototype.tokenDissociate=null,e.prototype.scheduleDelete=null,e.prototype.tokenPause=null,e.prototype.tokenUnpause=null,e.prototype.cryptoApproveAllowance=null,e.prototype.cryptoDeleteAllowance=null,e.prototype.tokenFeeScheduleUpdate=null,e.prototype.utilPrng=null,e.prototype.tokenUpdateNfts=null,e.prototype.nodeCreate=null,e.prototype.nodeUpdate=null,e.prototype.nodeDelete=null,e.prototype.tokenReject=null,e.prototype.tokenCancelAirdrop=null,e.prototype.tokenClaimAirdrop=null,e.prototype.tokenAirdrop=null,Object.defineProperty(e.prototype,"data",{get:$util.oneOfGetter(t=["contractCall","contractCreateInstance","contractUpdateInstance","contractDeleteInstance","cryptoCreateAccount","cryptoDelete","cryptoTransfer","cryptoUpdateAccount","fileAppend","fileCreate","fileDelete","fileUpdate","systemDelete","systemUndelete","freeze","consensusCreateTopic","consensusUpdateTopic","consensusDeleteTopic","consensusSubmitMessage","tokenCreation","tokenFreeze","tokenUnfreeze","tokenGrantKyc","tokenRevokeKyc","tokenDeletion","tokenUpdate","tokenMint","tokenBurn","tokenWipe","tokenAssociate","tokenDissociate","scheduleDelete","tokenPause","tokenUnpause","cryptoApproveAllowance","cryptoDeleteAllowance","tokenFeeScheduleUpdate","utilPrng","tokenUpdateNfts","nodeCreate","nodeUpdate","nodeDelete","tokenReject","tokenCancelAirdrop","tokenClaimAirdrop","tokenAirdrop"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.transactionFee&&Object.hasOwnProperty.call(e,"transactionFee")&&t.uint32(8).uint64(e.transactionFee),null!=e.memo&&Object.hasOwnProperty.call(e,"memo")&&t.uint32(18).string(e.memo),null!=e.contractCall&&Object.hasOwnProperty.call(e,"contractCall")&&$root.proto.ContractCallTransactionBody.encode(e.contractCall,t.uint32(26).fork()).ldelim(),null!=e.contractCreateInstance&&Object.hasOwnProperty.call(e,"contractCreateInstance")&&$root.proto.ContractCreateTransactionBody.encode(e.contractCreateInstance,t.uint32(34).fork()).ldelim(),null!=e.contractUpdateInstance&&Object.hasOwnProperty.call(e,"contractUpdateInstance")&&$root.proto.ContractUpdateTransactionBody.encode(e.contractUpdateInstance,t.uint32(42).fork()).ldelim(),null!=e.contractDeleteInstance&&Object.hasOwnProperty.call(e,"contractDeleteInstance")&&$root.proto.ContractDeleteTransactionBody.encode(e.contractDeleteInstance,t.uint32(50).fork()).ldelim(),null!=e.cryptoCreateAccount&&Object.hasOwnProperty.call(e,"cryptoCreateAccount")&&$root.proto.CryptoCreateTransactionBody.encode(e.cryptoCreateAccount,t.uint32(58).fork()).ldelim(),null!=e.cryptoDelete&&Object.hasOwnProperty.call(e,"cryptoDelete")&&$root.proto.CryptoDeleteTransactionBody.encode(e.cryptoDelete,t.uint32(66).fork()).ldelim(),null!=e.cryptoTransfer&&Object.hasOwnProperty.call(e,"cryptoTransfer")&&$root.proto.CryptoTransferTransactionBody.encode(e.cryptoTransfer,t.uint32(74).fork()).ldelim(),null!=e.cryptoUpdateAccount&&Object.hasOwnProperty.call(e,"cryptoUpdateAccount")&&$root.proto.CryptoUpdateTransactionBody.encode(e.cryptoUpdateAccount,t.uint32(82).fork()).ldelim(),null!=e.fileAppend&&Object.hasOwnProperty.call(e,"fileAppend")&&$root.proto.FileAppendTransactionBody.encode(e.fileAppend,t.uint32(90).fork()).ldelim(),null!=e.fileCreate&&Object.hasOwnProperty.call(e,"fileCreate")&&$root.proto.FileCreateTransactionBody.encode(e.fileCreate,t.uint32(98).fork()).ldelim(),null!=e.fileDelete&&Object.hasOwnProperty.call(e,"fileDelete")&&$root.proto.FileDeleteTransactionBody.encode(e.fileDelete,t.uint32(106).fork()).ldelim(),null!=e.fileUpdate&&Object.hasOwnProperty.call(e,"fileUpdate")&&$root.proto.FileUpdateTransactionBody.encode(e.fileUpdate,t.uint32(114).fork()).ldelim(),null!=e.systemDelete&&Object.hasOwnProperty.call(e,"systemDelete")&&$root.proto.SystemDeleteTransactionBody.encode(e.systemDelete,t.uint32(122).fork()).ldelim(),null!=e.systemUndelete&&Object.hasOwnProperty.call(e,"systemUndelete")&&$root.proto.SystemUndeleteTransactionBody.encode(e.systemUndelete,t.uint32(130).fork()).ldelim(),null!=e.freeze&&Object.hasOwnProperty.call(e,"freeze")&&$root.proto.FreezeTransactionBody.encode(e.freeze,t.uint32(138).fork()).ldelim(),null!=e.consensusCreateTopic&&Object.hasOwnProperty.call(e,"consensusCreateTopic")&&$root.proto.ConsensusCreateTopicTransactionBody.encode(e.consensusCreateTopic,t.uint32(146).fork()).ldelim(),null!=e.consensusUpdateTopic&&Object.hasOwnProperty.call(e,"consensusUpdateTopic")&&$root.proto.ConsensusUpdateTopicTransactionBody.encode(e.consensusUpdateTopic,t.uint32(154).fork()).ldelim(),null!=e.consensusDeleteTopic&&Object.hasOwnProperty.call(e,"consensusDeleteTopic")&&$root.proto.ConsensusDeleteTopicTransactionBody.encode(e.consensusDeleteTopic,t.uint32(162).fork()).ldelim(),null!=e.consensusSubmitMessage&&Object.hasOwnProperty.call(e,"consensusSubmitMessage")&&$root.proto.ConsensusSubmitMessageTransactionBody.encode(e.consensusSubmitMessage,t.uint32(170).fork()).ldelim(),null!=e.tokenCreation&&Object.hasOwnProperty.call(e,"tokenCreation")&&$root.proto.TokenCreateTransactionBody.encode(e.tokenCreation,t.uint32(178).fork()).ldelim(),null!=e.tokenFreeze&&Object.hasOwnProperty.call(e,"tokenFreeze")&&$root.proto.TokenFreezeAccountTransactionBody.encode(e.tokenFreeze,t.uint32(186).fork()).ldelim(),null!=e.tokenUnfreeze&&Object.hasOwnProperty.call(e,"tokenUnfreeze")&&$root.proto.TokenUnfreezeAccountTransactionBody.encode(e.tokenUnfreeze,t.uint32(194).fork()).ldelim(),null!=e.tokenGrantKyc&&Object.hasOwnProperty.call(e,"tokenGrantKyc")&&$root.proto.TokenGrantKycTransactionBody.encode(e.tokenGrantKyc,t.uint32(202).fork()).ldelim(),null!=e.tokenRevokeKyc&&Object.hasOwnProperty.call(e,"tokenRevokeKyc")&&$root.proto.TokenRevokeKycTransactionBody.encode(e.tokenRevokeKyc,t.uint32(210).fork()).ldelim(),null!=e.tokenDeletion&&Object.hasOwnProperty.call(e,"tokenDeletion")&&$root.proto.TokenDeleteTransactionBody.encode(e.tokenDeletion,t.uint32(218).fork()).ldelim(),null!=e.tokenUpdate&&Object.hasOwnProperty.call(e,"tokenUpdate")&&$root.proto.TokenUpdateTransactionBody.encode(e.tokenUpdate,t.uint32(226).fork()).ldelim(),null!=e.tokenMint&&Object.hasOwnProperty.call(e,"tokenMint")&&$root.proto.TokenMintTransactionBody.encode(e.tokenMint,t.uint32(234).fork()).ldelim(),null!=e.tokenBurn&&Object.hasOwnProperty.call(e,"tokenBurn")&&$root.proto.TokenBurnTransactionBody.encode(e.tokenBurn,t.uint32(242).fork()).ldelim(),null!=e.tokenWipe&&Object.hasOwnProperty.call(e,"tokenWipe")&&$root.proto.TokenWipeAccountTransactionBody.encode(e.tokenWipe,t.uint32(250).fork()).ldelim(),null!=e.tokenAssociate&&Object.hasOwnProperty.call(e,"tokenAssociate")&&$root.proto.TokenAssociateTransactionBody.encode(e.tokenAssociate,t.uint32(258).fork()).ldelim(),null!=e.tokenDissociate&&Object.hasOwnProperty.call(e,"tokenDissociate")&&$root.proto.TokenDissociateTransactionBody.encode(e.tokenDissociate,t.uint32(266).fork()).ldelim(),null!=e.scheduleDelete&&Object.hasOwnProperty.call(e,"scheduleDelete")&&$root.proto.ScheduleDeleteTransactionBody.encode(e.scheduleDelete,t.uint32(274).fork()).ldelim(),null!=e.tokenPause&&Object.hasOwnProperty.call(e,"tokenPause")&&$root.proto.TokenPauseTransactionBody.encode(e.tokenPause,t.uint32(282).fork()).ldelim(),null!=e.tokenUnpause&&Object.hasOwnProperty.call(e,"tokenUnpause")&&$root.proto.TokenUnpauseTransactionBody.encode(e.tokenUnpause,t.uint32(290).fork()).ldelim(),null!=e.cryptoApproveAllowance&&Object.hasOwnProperty.call(e,"cryptoApproveAllowance")&&$root.proto.CryptoApproveAllowanceTransactionBody.encode(e.cryptoApproveAllowance,t.uint32(298).fork()).ldelim(),null!=e.cryptoDeleteAllowance&&Object.hasOwnProperty.call(e,"cryptoDeleteAllowance")&&$root.proto.CryptoDeleteAllowanceTransactionBody.encode(e.cryptoDeleteAllowance,t.uint32(306).fork()).ldelim(),null!=e.tokenFeeScheduleUpdate&&Object.hasOwnProperty.call(e,"tokenFeeScheduleUpdate")&&$root.proto.TokenFeeScheduleUpdateTransactionBody.encode(e.tokenFeeScheduleUpdate,t.uint32(314).fork()).ldelim(),null!=e.utilPrng&&Object.hasOwnProperty.call(e,"utilPrng")&&$root.proto.UtilPrngTransactionBody.encode(e.utilPrng,t.uint32(322).fork()).ldelim(),null!=e.tokenUpdateNfts&&Object.hasOwnProperty.call(e,"tokenUpdateNfts")&&$root.proto.TokenUpdateNftsTransactionBody.encode(e.tokenUpdateNfts,t.uint32(330).fork()).ldelim(),null!=e.nodeCreate&&Object.hasOwnProperty.call(e,"nodeCreate")&&$root.com.hedera.hapi.node.addressbook.NodeCreateTransactionBody.encode(e.nodeCreate,t.uint32(338).fork()).ldelim(),null!=e.nodeUpdate&&Object.hasOwnProperty.call(e,"nodeUpdate")&&$root.com.hedera.hapi.node.addressbook.NodeUpdateTransactionBody.encode(e.nodeUpdate,t.uint32(346).fork()).ldelim(),null!=e.nodeDelete&&Object.hasOwnProperty.call(e,"nodeDelete")&&$root.com.hedera.hapi.node.addressbook.NodeDeleteTransactionBody.encode(e.nodeDelete,t.uint32(354).fork()).ldelim(),null!=e.tokenReject&&Object.hasOwnProperty.call(e,"tokenReject")&&$root.proto.TokenRejectTransactionBody.encode(e.tokenReject,t.uint32(362).fork()).ldelim(),null!=e.tokenCancelAirdrop&&Object.hasOwnProperty.call(e,"tokenCancelAirdrop")&&$root.proto.TokenCancelAirdropTransactionBody.encode(e.tokenCancelAirdrop,t.uint32(370).fork()).ldelim(),null!=e.tokenClaimAirdrop&&Object.hasOwnProperty.call(e,"tokenClaimAirdrop")&&$root.proto.TokenClaimAirdropTransactionBody.encode(e.tokenClaimAirdrop,t.uint32(378).fork()).ldelim(),null!=e.tokenAirdrop&&Object.hasOwnProperty.call(e,"tokenAirdrop")&&$root.proto.TokenAirdropTransactionBody.encode(e.tokenAirdrop,t.uint32(386).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.SchedulableTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.transactionFee=e.uint64();break;case 2:o.memo=e.string();break;case 3:o.contractCall=$root.proto.ContractCallTransactionBody.decode(e,e.uint32());break;case 4:o.contractCreateInstance=$root.proto.ContractCreateTransactionBody.decode(e,e.uint32());break;case 5:o.contractUpdateInstance=$root.proto.ContractUpdateTransactionBody.decode(e,e.uint32());break;case 6:o.contractDeleteInstance=$root.proto.ContractDeleteTransactionBody.decode(e,e.uint32());break;case 7:o.cryptoCreateAccount=$root.proto.CryptoCreateTransactionBody.decode(e,e.uint32());break;case 8:o.cryptoDelete=$root.proto.CryptoDeleteTransactionBody.decode(e,e.uint32());break;case 9:o.cryptoTransfer=$root.proto.CryptoTransferTransactionBody.decode(e,e.uint32());break;case 10:o.cryptoUpdateAccount=$root.proto.CryptoUpdateTransactionBody.decode(e,e.uint32());break;case 11:o.fileAppend=$root.proto.FileAppendTransactionBody.decode(e,e.uint32());break;case 12:o.fileCreate=$root.proto.FileCreateTransactionBody.decode(e,e.uint32());break;case 13:o.fileDelete=$root.proto.FileDeleteTransactionBody.decode(e,e.uint32());break;case 14:o.fileUpdate=$root.proto.FileUpdateTransactionBody.decode(e,e.uint32());break;case 15:o.systemDelete=$root.proto.SystemDeleteTransactionBody.decode(e,e.uint32());break;case 16:o.systemUndelete=$root.proto.SystemUndeleteTransactionBody.decode(e,e.uint32());break;case 17:o.freeze=$root.proto.FreezeTransactionBody.decode(e,e.uint32());break;case 18:o.consensusCreateTopic=$root.proto.ConsensusCreateTopicTransactionBody.decode(e,e.uint32());break;case 19:o.consensusUpdateTopic=$root.proto.ConsensusUpdateTopicTransactionBody.decode(e,e.uint32());break;case 20:o.consensusDeleteTopic=$root.proto.ConsensusDeleteTopicTransactionBody.decode(e,e.uint32());break;case 21:o.consensusSubmitMessage=$root.proto.ConsensusSubmitMessageTransactionBody.decode(e,e.uint32());break;case 22:o.tokenCreation=$root.proto.TokenCreateTransactionBody.decode(e,e.uint32());break;case 23:o.tokenFreeze=$root.proto.TokenFreezeAccountTransactionBody.decode(e,e.uint32());break;case 24:o.tokenUnfreeze=$root.proto.TokenUnfreezeAccountTransactionBody.decode(e,e.uint32());break;case 25:o.tokenGrantKyc=$root.proto.TokenGrantKycTransactionBody.decode(e,e.uint32());break;case 26:o.tokenRevokeKyc=$root.proto.TokenRevokeKycTransactionBody.decode(e,e.uint32());break;case 27:o.tokenDeletion=$root.proto.TokenDeleteTransactionBody.decode(e,e.uint32());break;case 28:o.tokenUpdate=$root.proto.TokenUpdateTransactionBody.decode(e,e.uint32());break;case 29:o.tokenMint=$root.proto.TokenMintTransactionBody.decode(e,e.uint32());break;case 30:o.tokenBurn=$root.proto.TokenBurnTransactionBody.decode(e,e.uint32());break;case 31:o.tokenWipe=$root.proto.TokenWipeAccountTransactionBody.decode(e,e.uint32());break;case 32:o.tokenAssociate=$root.proto.TokenAssociateTransactionBody.decode(e,e.uint32());break;case 33:o.tokenDissociate=$root.proto.TokenDissociateTransactionBody.decode(e,e.uint32());break;case 34:o.scheduleDelete=$root.proto.ScheduleDeleteTransactionBody.decode(e,e.uint32());break;case 35:o.tokenPause=$root.proto.TokenPauseTransactionBody.decode(e,e.uint32());break;case 36:o.tokenUnpause=$root.proto.TokenUnpauseTransactionBody.decode(e,e.uint32());break;case 37:o.cryptoApproveAllowance=$root.proto.CryptoApproveAllowanceTransactionBody.decode(e,e.uint32());break;case 38:o.cryptoDeleteAllowance=$root.proto.CryptoDeleteAllowanceTransactionBody.decode(e,e.uint32());break;case 39:o.tokenFeeScheduleUpdate=$root.proto.TokenFeeScheduleUpdateTransactionBody.decode(e,e.uint32());break;case 40:o.utilPrng=$root.proto.UtilPrngTransactionBody.decode(e,e.uint32());break;case 41:o.tokenUpdateNfts=$root.proto.TokenUpdateNftsTransactionBody.decode(e,e.uint32());break;case 42:o.nodeCreate=$root.com.hedera.hapi.node.addressbook.NodeCreateTransactionBody.decode(e,e.uint32());break;case 43:o.nodeUpdate=$root.com.hedera.hapi.node.addressbook.NodeUpdateTransactionBody.decode(e,e.uint32());break;case 44:o.nodeDelete=$root.com.hedera.hapi.node.addressbook.NodeDeleteTransactionBody.decode(e,e.uint32());break;case 45:o.tokenReject=$root.proto.TokenRejectTransactionBody.decode(e,e.uint32());break;case 46:o.tokenCancelAirdrop=$root.proto.TokenCancelAirdropTransactionBody.decode(e,e.uint32());break;case 47:o.tokenClaimAirdrop=$root.proto.TokenClaimAirdropTransactionBody.decode(e,e.uint32());break;case 48:o.tokenAirdrop=$root.proto.TokenAirdropTransactionBody.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.SchedulableTransactionBody"},e}(),e.ScheduleDeleteTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.scheduleID=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.scheduleID&&Object.hasOwnProperty.call(e,"scheduleID")&&$root.proto.ScheduleID.encode(e.scheduleID,t.uint32(10).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ScheduleDeleteTransactionBody;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.scheduleID=$root.proto.ScheduleID.decode(e,e.uint32());else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ScheduleDeleteTransactionBody"},e}(),e.UtilPrngTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.range=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.range&&Object.hasOwnProperty.call(e,"range")&&t.uint32(8).int32(e.range),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.UtilPrngTransactionBody;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.range=e.int32();else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.UtilPrngTransactionBody"},e}(),e.ScheduleSignTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.scheduleID=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.scheduleID&&Object.hasOwnProperty.call(e,"scheduleID")&&$root.proto.ScheduleID.encode(e.scheduleID,t.uint32(10).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ScheduleSignTransactionBody;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.scheduleID=$root.proto.ScheduleID.decode(e,e.uint32());else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ScheduleSignTransactionBody"},e}(),e.NodeStakeUpdateTransactionBody=function(){function e(e){if(this.nodeStake=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.endOfStakingPeriod=null,e.prototype.nodeStake=$util.emptyArray,e.prototype.maxStakingRewardRatePerHbar=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.nodeRewardFeeFraction=null,e.prototype.stakingPeriodsStored=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.stakingPeriod=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.stakingRewardFeeFraction=null,e.prototype.stakingStartThreshold=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.stakingRewardRate=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.reservedStakingRewards=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.unreservedStakingRewardBalance=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.rewardBalanceThreshold=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.maxStakeRewarded=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.maxTotalReward=$util.Long?$util.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.endOfStakingPeriod&&Object.hasOwnProperty.call(e,"endOfStakingPeriod")&&$root.proto.Timestamp.encode(e.endOfStakingPeriod,t.uint32(10).fork()).ldelim(),null!=e.nodeStake&&e.nodeStake.length)for(var r=0;r<e.nodeStake.length;++r)$root.proto.NodeStake.encode(e.nodeStake[r],t.uint32(18).fork()).ldelim();return null!=e.maxStakingRewardRatePerHbar&&Object.hasOwnProperty.call(e,"maxStakingRewardRatePerHbar")&&t.uint32(24).int64(e.maxStakingRewardRatePerHbar),null!=e.nodeRewardFeeFraction&&Object.hasOwnProperty.call(e,"nodeRewardFeeFraction")&&$root.proto.Fraction.encode(e.nodeRewardFeeFraction,t.uint32(34).fork()).ldelim(),null!=e.stakingPeriodsStored&&Object.hasOwnProperty.call(e,"stakingPeriodsStored")&&t.uint32(40).int64(e.stakingPeriodsStored),null!=e.stakingPeriod&&Object.hasOwnProperty.call(e,"stakingPeriod")&&t.uint32(48).int64(e.stakingPeriod),null!=e.stakingRewardFeeFraction&&Object.hasOwnProperty.call(e,"stakingRewardFeeFraction")&&$root.proto.Fraction.encode(e.stakingRewardFeeFraction,t.uint32(58).fork()).ldelim(),null!=e.stakingStartThreshold&&Object.hasOwnProperty.call(e,"stakingStartThreshold")&&t.uint32(64).int64(e.stakingStartThreshold),null!=e.stakingRewardRate&&Object.hasOwnProperty.call(e,"stakingRewardRate")&&t.uint32(72).int64(e.stakingRewardRate),null!=e.reservedStakingRewards&&Object.hasOwnProperty.call(e,"reservedStakingRewards")&&t.uint32(80).int64(e.reservedStakingRewards),null!=e.unreservedStakingRewardBalance&&Object.hasOwnProperty.call(e,"unreservedStakingRewardBalance")&&t.uint32(88).int64(e.unreservedStakingRewardBalance),null!=e.rewardBalanceThreshold&&Object.hasOwnProperty.call(e,"rewardBalanceThreshold")&&t.uint32(96).int64(e.rewardBalanceThreshold),null!=e.maxStakeRewarded&&Object.hasOwnProperty.call(e,"maxStakeRewarded")&&t.uint32(104).int64(e.maxStakeRewarded),null!=e.maxTotalReward&&Object.hasOwnProperty.call(e,"maxTotalReward")&&t.uint32(112).int64(e.maxTotalReward),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.NodeStakeUpdateTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.endOfStakingPeriod=$root.proto.Timestamp.decode(e,e.uint32());break;case 2:o.nodeStake&&o.nodeStake.length||(o.nodeStake=[]),o.nodeStake.push($root.proto.NodeStake.decode(e,e.uint32()));break;case 3:o.maxStakingRewardRatePerHbar=e.int64();break;case 4:o.nodeRewardFeeFraction=$root.proto.Fraction.decode(e,e.uint32());break;case 5:o.stakingPeriodsStored=e.int64();break;case 6:o.stakingPeriod=e.int64();break;case 7:o.stakingRewardFeeFraction=$root.proto.Fraction.decode(e,e.uint32());break;case 8:o.stakingStartThreshold=e.int64();break;case 9:o.stakingRewardRate=e.int64();break;case 10:o.reservedStakingRewards=e.int64();break;case 11:o.unreservedStakingRewardBalance=e.int64();break;case 12:o.rewardBalanceThreshold=e.int64();break;case 13:o.maxStakeRewarded=e.int64();break;case 14:o.maxTotalReward=e.int64();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.NodeStakeUpdateTransactionBody"},e}(),e.NodeStake=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.maxStake=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.minStake=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.nodeId=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.rewardRate=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.stake=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.stakeNotRewarded=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.stakeRewarded=$util.Long?$util.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.maxStake&&Object.hasOwnProperty.call(e,"maxStake")&&t.uint32(8).int64(e.maxStake),null!=e.minStake&&Object.hasOwnProperty.call(e,"minStake")&&t.uint32(16).int64(e.minStake),null!=e.nodeId&&Object.hasOwnProperty.call(e,"nodeId")&&t.uint32(24).int64(e.nodeId),null!=e.rewardRate&&Object.hasOwnProperty.call(e,"rewardRate")&&t.uint32(32).int64(e.rewardRate),null!=e.stake&&Object.hasOwnProperty.call(e,"stake")&&t.uint32(40).int64(e.stake),null!=e.stakeNotRewarded&&Object.hasOwnProperty.call(e,"stakeNotRewarded")&&t.uint32(48).int64(e.stakeNotRewarded),null!=e.stakeRewarded&&Object.hasOwnProperty.call(e,"stakeRewarded")&&t.uint32(56).int64(e.stakeRewarded),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.NodeStake;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.maxStake=e.int64();break;case 2:o.minStake=e.int64();break;case 3:o.nodeId=e.int64();break;case 4:o.rewardRate=e.int64();break;case 5:o.stake=e.int64();break;case 6:o.stakeNotRewarded=e.int64();break;case 7:o.stakeRewarded=e.int64();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.NodeStake"},e}(),e.ConsensusGetTopicInfoQuery=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.topicID=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.QueryHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.topicID&&Object.hasOwnProperty.call(e,"topicID")&&$root.proto.TopicID.encode(e.topicID,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ConsensusGetTopicInfoQuery;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.QueryHeader.decode(e,e.uint32());break;case 2:o.topicID=$root.proto.TopicID.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ConsensusGetTopicInfoQuery"},e}(),e.ConsensusGetTopicInfoResponse=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.topicID=null,e.prototype.topicInfo=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.ResponseHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.topicID&&Object.hasOwnProperty.call(e,"topicID")&&$root.proto.TopicID.encode(e.topicID,t.uint32(18).fork()).ldelim(),null!=e.topicInfo&&Object.hasOwnProperty.call(e,"topicInfo")&&$root.proto.ConsensusTopicInfo.encode(e.topicInfo,t.uint32(42).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ConsensusGetTopicInfoResponse;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.ResponseHeader.decode(e,e.uint32());break;case 2:o.topicID=$root.proto.TopicID.decode(e,e.uint32());break;case 5:o.topicInfo=$root.proto.ConsensusTopicInfo.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ConsensusGetTopicInfoResponse"},e}(),e.ResponseType=function(){const e={},t=Object.create(e);return t[e[0]="ANSWER_ONLY"]=0,t[e[1]="ANSWER_STATE_PROOF"]=1,t[e[2]="COST_ANSWER"]=2,t[e[3]="COST_ANSWER_STATE_PROOF"]=3,t}(),e.QueryHeader=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.payment=null,e.prototype.responseType=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.payment&&Object.hasOwnProperty.call(e,"payment")&&$root.proto.Transaction.encode(e.payment,t.uint32(10).fork()).ldelim(),null!=e.responseType&&Object.hasOwnProperty.call(e,"responseType")&&t.uint32(16).int32(e.responseType),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.QueryHeader;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.payment=$root.proto.Transaction.decode(e,e.uint32());break;case 2:o.responseType=e.int32();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.QueryHeader"},e}(),e.ResponseHeader=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.nodeTransactionPrecheckCode=0,e.prototype.responseType=0,e.prototype.cost=$util.Long?$util.Long.fromBits(0,0,!0):0,e.prototype.stateProof=$util.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.nodeTransactionPrecheckCode&&Object.hasOwnProperty.call(e,"nodeTransactionPrecheckCode")&&t.uint32(8).int32(e.nodeTransactionPrecheckCode),null!=e.responseType&&Object.hasOwnProperty.call(e,"responseType")&&t.uint32(16).int32(e.responseType),null!=e.cost&&Object.hasOwnProperty.call(e,"cost")&&t.uint32(24).uint64(e.cost),null!=e.stateProof&&Object.hasOwnProperty.call(e,"stateProof")&&t.uint32(34).bytes(e.stateProof),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ResponseHeader;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.nodeTransactionPrecheckCode=e.int32();break;case 2:o.responseType=e.int32();break;case 3:o.cost=e.uint64();break;case 4:o.stateProof=e.bytes();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ResponseHeader"},e}(),e.ConsensusTopicInfo=function(){function e(e){if(this.feeExemptKeyList=[],this.customFees=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.memo="",e.prototype.runningHash=$util.newBuffer([]),e.prototype.sequenceNumber=$util.Long?$util.Long.fromBits(0,0,!0):0,e.prototype.expirationTime=null,e.prototype.adminKey=null,e.prototype.submitKey=null,e.prototype.autoRenewPeriod=null,e.prototype.autoRenewAccount=null,e.prototype.ledgerId=$util.newBuffer([]),e.prototype.feeScheduleKey=null,e.prototype.feeExemptKeyList=$util.emptyArray,e.prototype.customFees=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.memo&&Object.hasOwnProperty.call(e,"memo")&&t.uint32(10).string(e.memo),null!=e.runningHash&&Object.hasOwnProperty.call(e,"runningHash")&&t.uint32(18).bytes(e.runningHash),null!=e.sequenceNumber&&Object.hasOwnProperty.call(e,"sequenceNumber")&&t.uint32(24).uint64(e.sequenceNumber),null!=e.expirationTime&&Object.hasOwnProperty.call(e,"expirationTime")&&$root.proto.Timestamp.encode(e.expirationTime,t.uint32(34).fork()).ldelim(),null!=e.adminKey&&Object.hasOwnProperty.call(e,"adminKey")&&$root.proto.Key.encode(e.adminKey,t.uint32(42).fork()).ldelim(),null!=e.submitKey&&Object.hasOwnProperty.call(e,"submitKey")&&$root.proto.Key.encode(e.submitKey,t.uint32(50).fork()).ldelim(),null!=e.autoRenewPeriod&&Object.hasOwnProperty.call(e,"autoRenewPeriod")&&$root.proto.Duration.encode(e.autoRenewPeriod,t.uint32(58).fork()).ldelim(),null!=e.autoRenewAccount&&Object.hasOwnProperty.call(e,"autoRenewAccount")&&$root.proto.AccountID.encode(e.autoRenewAccount,t.uint32(66).fork()).ldelim(),null!=e.ledgerId&&Object.hasOwnProperty.call(e,"ledgerId")&&t.uint32(74).bytes(e.ledgerId),null!=e.feeScheduleKey&&Object.hasOwnProperty.call(e,"feeScheduleKey")&&$root.proto.Key.encode(e.feeScheduleKey,t.uint32(82).fork()).ldelim(),null!=e.feeExemptKeyList&&e.feeExemptKeyList.length)for(var r=0;r<e.feeExemptKeyList.length;++r)$root.proto.Key.encode(e.feeExemptKeyList[r],t.uint32(90).fork()).ldelim();if(null!=e.customFees&&e.customFees.length)for(r=0;r<e.customFees.length;++r)$root.proto.FixedCustomFee.encode(e.customFees[r],t.uint32(98).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ConsensusTopicInfo;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.memo=e.string();break;case 2:o.runningHash=e.bytes();break;case 3:o.sequenceNumber=e.uint64();break;case 4:o.expirationTime=$root.proto.Timestamp.decode(e,e.uint32());break;case 5:o.adminKey=$root.proto.Key.decode(e,e.uint32());break;case 6:o.submitKey=$root.proto.Key.decode(e,e.uint32());break;case 7:o.autoRenewPeriod=$root.proto.Duration.decode(e,e.uint32());break;case 8:o.autoRenewAccount=$root.proto.AccountID.decode(e,e.uint32());break;case 9:o.ledgerId=e.bytes();break;case 10:o.feeScheduleKey=$root.proto.Key.decode(e,e.uint32());break;case 11:o.feeExemptKeyList&&o.feeExemptKeyList.length||(o.feeExemptKeyList=[]),o.feeExemptKeyList.push($root.proto.Key.decode(e,e.uint32()));break;case 12:o.customFees&&o.customFees.length||(o.customFees=[]),o.customFees.push($root.proto.FixedCustomFee.decode(e,e.uint32()));break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ConsensusTopicInfo"},e}(),e.ConsensusService=function(){function e(e,t,r){$protobuf$1.rpc.Service.call(this,e,t,r)}return(e.prototype=Object.create($protobuf$1.rpc.Service.prototype)).constructor=e,e.create=function(e,t,r){return new this(e,t,r)},Object.defineProperty(e.prototype.createTopic=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"createTopic"}),Object.defineProperty(e.prototype.updateTopic=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"updateTopic"}),Object.defineProperty(e.prototype.deleteTopic=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"deleteTopic"}),Object.defineProperty(e.prototype.submitMessage=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"submitMessage"}),Object.defineProperty(e.prototype.getTopicInfo=function e(t,r){return this.rpcCall(e,$root.proto.Query,$root.proto.Response,t,r)},"name",{value:"getTopicInfo"}),e}(),e.Query=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.getByKey=null,e.prototype.getBySolidityID=null,e.prototype.contractCallLocal=null,e.prototype.contractGetInfo=null,e.prototype.contractGetBytecode=null,e.prototype.ContractGetRecords=null,e.prototype.cryptogetAccountBalance=null,e.prototype.cryptoGetAccountRecords=null,e.prototype.cryptoGetInfo=null,e.prototype.cryptoGetLiveHash=null,e.prototype.cryptoGetProxyStakers=null,e.prototype.fileGetContents=null,e.prototype.fileGetInfo=null,e.prototype.transactionGetReceipt=null,e.prototype.transactionGetRecord=null,e.prototype.transactionGetFastRecord=null,e.prototype.consensusGetTopicInfo=null,e.prototype.networkGetVersionInfo=null,e.prototype.tokenGetInfo=null,e.prototype.scheduleGetInfo=null,e.prototype.tokenGetAccountNftInfos=null,e.prototype.tokenGetNftInfo=null,e.prototype.tokenGetNftInfos=null,e.prototype.networkGetExecutionTime=null,e.prototype.accountDetails=null,Object.defineProperty(e.prototype,"query",{get:$util.oneOfGetter(t=["getByKey","getBySolidityID","contractCallLocal","contractGetInfo","contractGetBytecode","ContractGetRecords","cryptogetAccountBalance","cryptoGetAccountRecords","cryptoGetInfo","cryptoGetLiveHash","cryptoGetProxyStakers","fileGetContents","fileGetInfo","transactionGetReceipt","transactionGetRecord","transactionGetFastRecord","consensusGetTopicInfo","networkGetVersionInfo","tokenGetInfo","scheduleGetInfo","tokenGetAccountNftInfos","tokenGetNftInfo","tokenGetNftInfos","networkGetExecutionTime","accountDetails"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.getByKey&&Object.hasOwnProperty.call(e,"getByKey")&&$root.proto.GetByKeyQuery.encode(e.getByKey,t.uint32(10).fork()).ldelim(),null!=e.getBySolidityID&&Object.hasOwnProperty.call(e,"getBySolidityID")&&$root.proto.GetBySolidityIDQuery.encode(e.getBySolidityID,t.uint32(18).fork()).ldelim(),null!=e.contractCallLocal&&Object.hasOwnProperty.call(e,"contractCallLocal")&&$root.proto.ContractCallLocalQuery.encode(e.contractCallLocal,t.uint32(26).fork()).ldelim(),null!=e.contractGetInfo&&Object.hasOwnProperty.call(e,"contractGetInfo")&&$root.proto.ContractGetInfoQuery.encode(e.contractGetInfo,t.uint32(34).fork()).ldelim(),null!=e.contractGetBytecode&&Object.hasOwnProperty.call(e,"contractGetBytecode")&&$root.proto.ContractGetBytecodeQuery.encode(e.contractGetBytecode,t.uint32(42).fork()).ldelim(),null!=e.ContractGetRecords&&Object.hasOwnProperty.call(e,"ContractGetRecords")&&$root.proto.ContractGetRecordsQuery.encode(e.ContractGetRecords,t.uint32(50).fork()).ldelim(),null!=e.cryptogetAccountBalance&&Object.hasOwnProperty.call(e,"cryptogetAccountBalance")&&$root.proto.CryptoGetAccountBalanceQuery.encode(e.cryptogetAccountBalance,t.uint32(58).fork()).ldelim(),null!=e.cryptoGetAccountRecords&&Object.hasOwnProperty.call(e,"cryptoGetAccountRecords")&&$root.proto.CryptoGetAccountRecordsQuery.encode(e.cryptoGetAccountRecords,t.uint32(66).fork()).ldelim(),null!=e.cryptoGetInfo&&Object.hasOwnProperty.call(e,"cryptoGetInfo")&&$root.proto.CryptoGetInfoQuery.encode(e.cryptoGetInfo,t.uint32(74).fork()).ldelim(),null!=e.cryptoGetLiveHash&&Object.hasOwnProperty.call(e,"cryptoGetLiveHash")&&$root.proto.CryptoGetLiveHashQuery.encode(e.cryptoGetLiveHash,t.uint32(82).fork()).ldelim(),null!=e.cryptoGetProxyStakers&&Object.hasOwnProperty.call(e,"cryptoGetProxyStakers")&&$root.proto.CryptoGetStakersQuery.encode(e.cryptoGetProxyStakers,t.uint32(90).fork()).ldelim(),null!=e.fileGetContents&&Object.hasOwnProperty.call(e,"fileGetContents")&&$root.proto.FileGetContentsQuery.encode(e.fileGetContents,t.uint32(98).fork()).ldelim(),null!=e.fileGetInfo&&Object.hasOwnProperty.call(e,"fileGetInfo")&&$root.proto.FileGetInfoQuery.encode(e.fileGetInfo,t.uint32(106).fork()).ldelim(),null!=e.transactionGetReceipt&&Object.hasOwnProperty.call(e,"transactionGetReceipt")&&$root.proto.TransactionGetReceiptQuery.encode(e.transactionGetReceipt,t.uint32(114).fork()).ldelim(),null!=e.transactionGetRecord&&Object.hasOwnProperty.call(e,"transactionGetRecord")&&$root.proto.TransactionGetRecordQuery.encode(e.transactionGetRecord,t.uint32(122).fork()).ldelim(),null!=e.transactionGetFastRecord&&Object.hasOwnProperty.call(e,"transactionGetFastRecord")&&$root.proto.TransactionGetFastRecordQuery.encode(e.transactionGetFastRecord,t.uint32(130).fork()).ldelim(),null!=e.consensusGetTopicInfo&&Object.hasOwnProperty.call(e,"consensusGetTopicInfo")&&$root.proto.ConsensusGetTopicInfoQuery.encode(e.consensusGetTopicInfo,t.uint32(402).fork()).ldelim(),null!=e.networkGetVersionInfo&&Object.hasOwnProperty.call(e,"networkGetVersionInfo")&&$root.proto.NetworkGetVersionInfoQuery.encode(e.networkGetVersionInfo,t.uint32(410).fork()).ldelim(),null!=e.tokenGetInfo&&Object.hasOwnProperty.call(e,"tokenGetInfo")&&$root.proto.TokenGetInfoQuery.encode(e.tokenGetInfo,t.uint32(418).fork()).ldelim(),null!=e.scheduleGetInfo&&Object.hasOwnProperty.call(e,"scheduleGetInfo")&&$root.proto.ScheduleGetInfoQuery.encode(e.scheduleGetInfo,t.uint32(426).fork()).ldelim(),null!=e.tokenGetAccountNftInfos&&Object.hasOwnProperty.call(e,"tokenGetAccountNftInfos")&&$root.proto.TokenGetAccountNftInfosQuery.encode(e.tokenGetAccountNftInfos,t.uint32(434).fork()).ldelim(),null!=e.tokenGetNftInfo&&Object.hasOwnProperty.call(e,"tokenGetNftInfo")&&$root.proto.TokenGetNftInfoQuery.encode(e.tokenGetNftInfo,t.uint32(442).fork()).ldelim(),null!=e.tokenGetNftInfos&&Object.hasOwnProperty.call(e,"tokenGetNftInfos")&&$root.proto.TokenGetNftInfosQuery.encode(e.tokenGetNftInfos,t.uint32(450).fork()).ldelim(),null!=e.networkGetExecutionTime&&Object.hasOwnProperty.call(e,"networkGetExecutionTime")&&$root.proto.NetworkGetExecutionTimeQuery.encode(e.networkGetExecutionTime,t.uint32(458).fork()).ldelim(),null!=e.accountDetails&&Object.hasOwnProperty.call(e,"accountDetails")&&$root.proto.GetAccountDetailsQuery.encode(e.accountDetails,t.uint32(466).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.Query;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.getByKey=$root.proto.GetByKeyQuery.decode(e,e.uint32());break;case 2:o.getBySolidityID=$root.proto.GetBySolidityIDQuery.decode(e,e.uint32());break;case 3:o.contractCallLocal=$root.proto.ContractCallLocalQuery.decode(e,e.uint32());break;case 4:o.contractGetInfo=$root.proto.ContractGetInfoQuery.decode(e,e.uint32());break;case 5:o.contractGetBytecode=$root.proto.ContractGetBytecodeQuery.decode(e,e.uint32());break;case 6:o.ContractGetRecords=$root.proto.ContractGetRecordsQuery.decode(e,e.uint32());break;case 7:o.cryptogetAccountBalance=$root.proto.CryptoGetAccountBalanceQuery.decode(e,e.uint32());break;case 8:o.cryptoGetAccountRecords=$root.proto.CryptoGetAccountRecordsQuery.decode(e,e.uint32());break;case 9:o.cryptoGetInfo=$root.proto.CryptoGetInfoQuery.decode(e,e.uint32());break;case 10:o.cryptoGetLiveHash=$root.proto.CryptoGetLiveHashQuery.decode(e,e.uint32());break;case 11:o.cryptoGetProxyStakers=$root.proto.CryptoGetStakersQuery.decode(e,e.uint32());break;case 12:o.fileGetContents=$root.proto.FileGetContentsQuery.decode(e,e.uint32());break;case 13:o.fileGetInfo=$root.proto.FileGetInfoQuery.decode(e,e.uint32());break;case 14:o.transactionGetReceipt=$root.proto.TransactionGetReceiptQuery.decode(e,e.uint32());break;case 15:o.transactionGetRecord=$root.proto.TransactionGetRecordQuery.decode(e,e.uint32());break;case 16:o.transactionGetFastRecord=$root.proto.TransactionGetFastRecordQuery.decode(e,e.uint32());break;case 50:o.consensusGetTopicInfo=$root.proto.ConsensusGetTopicInfoQuery.decode(e,e.uint32());break;case 51:o.networkGetVersionInfo=$root.proto.NetworkGetVersionInfoQuery.decode(e,e.uint32());break;case 52:o.tokenGetInfo=$root.proto.TokenGetInfoQuery.decode(e,e.uint32());break;case 53:o.scheduleGetInfo=$root.proto.ScheduleGetInfoQuery.decode(e,e.uint32());break;case 54:o.tokenGetAccountNftInfos=$root.proto.TokenGetAccountNftInfosQuery.decode(e,e.uint32());break;case 55:o.tokenGetNftInfo=$root.proto.TokenGetNftInfoQuery.decode(e,e.uint32());break;case 56:o.tokenGetNftInfos=$root.proto.TokenGetNftInfosQuery.decode(e,e.uint32());break;case 57:o.networkGetExecutionTime=$root.proto.NetworkGetExecutionTimeQuery.decode(e,e.uint32());break;case 58:o.accountDetails=$root.proto.GetAccountDetailsQuery.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.Query"},e}(),e.GetByKeyQuery=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.key=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.QueryHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.key&&Object.hasOwnProperty.call(e,"key")&&$root.proto.Key.encode(e.key,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.GetByKeyQuery;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.QueryHeader.decode(e,e.uint32());break;case 2:o.key=$root.proto.Key.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.GetByKeyQuery"},e}(),e.EntityID=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.accountID=null,e.prototype.liveHash=null,e.prototype.fileID=null,e.prototype.contractID=null,Object.defineProperty(e.prototype,"entity",{get:$util.oneOfGetter(t=["accountID","liveHash","fileID","contractID"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.accountID&&Object.hasOwnProperty.call(e,"accountID")&&$root.proto.AccountID.encode(e.accountID,t.uint32(10).fork()).ldelim(),null!=e.liveHash&&Object.hasOwnProperty.call(e,"liveHash")&&$root.proto.LiveHash.encode(e.liveHash,t.uint32(18).fork()).ldelim(),null!=e.fileID&&Object.hasOwnProperty.call(e,"fileID")&&$root.proto.FileID.encode(e.fileID,t.uint32(26).fork()).ldelim(),null!=e.contractID&&Object.hasOwnProperty.call(e,"contractID")&&$root.proto.ContractID.encode(e.contractID,t.uint32(34).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.EntityID;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.accountID=$root.proto.AccountID.decode(e,e.uint32());break;case 2:o.liveHash=$root.proto.LiveHash.decode(e,e.uint32());break;case 3:o.fileID=$root.proto.FileID.decode(e,e.uint32());break;case 4:o.contractID=$root.proto.ContractID.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.EntityID"},e}(),e.GetByKeyResponse=function(){function e(e){if(this.entities=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.entities=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.ResponseHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.entities&&e.entities.length)for(var r=0;r<e.entities.length;++r)$root.proto.EntityID.encode(e.entities[r],t.uint32(18).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.GetByKeyResponse;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.ResponseHeader.decode(e,e.uint32());break;case 2:o.entities&&o.entities.length||(o.entities=[]),o.entities.push($root.proto.EntityID.decode(e,e.uint32()));break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.GetByKeyResponse"},e}(),e.GetBySolidityIDQuery=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.solidityID="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.QueryHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.solidityID&&Object.hasOwnProperty.call(e,"solidityID")&&t.uint32(18).string(e.solidityID),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.GetBySolidityIDQuery;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.QueryHeader.decode(e,e.uint32());break;case 2:o.solidityID=e.string();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.GetBySolidityIDQuery"},e}(),e.GetBySolidityIDResponse=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.accountID=null,e.prototype.fileID=null,e.prototype.contractID=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.ResponseHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.accountID&&Object.hasOwnProperty.call(e,"accountID")&&$root.proto.AccountID.encode(e.accountID,t.uint32(18).fork()).ldelim(),null!=e.fileID&&Object.hasOwnProperty.call(e,"fileID")&&$root.proto.FileID.encode(e.fileID,t.uint32(26).fork()).ldelim(),null!=e.contractID&&Object.hasOwnProperty.call(e,"contractID")&&$root.proto.ContractID.encode(e.contractID,t.uint32(34).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.GetBySolidityIDResponse;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.ResponseHeader.decode(e,e.uint32());break;case 2:o.accountID=$root.proto.AccountID.decode(e,e.uint32());break;case 3:o.fileID=$root.proto.FileID.decode(e,e.uint32());break;case 4:o.contractID=$root.proto.ContractID.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.GetBySolidityIDResponse"},e}(),e.ContractCallLocalQuery=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.contractID=null,e.prototype.gas=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.functionParameters=$util.newBuffer([]),e.prototype.maxResultSize=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.senderId=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.QueryHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.contractID&&Object.hasOwnProperty.call(e,"contractID")&&$root.proto.ContractID.encode(e.contractID,t.uint32(18).fork()).ldelim(),null!=e.gas&&Object.hasOwnProperty.call(e,"gas")&&t.uint32(24).int64(e.gas),null!=e.functionParameters&&Object.hasOwnProperty.call(e,"functionParameters")&&t.uint32(34).bytes(e.functionParameters),null!=e.maxResultSize&&Object.hasOwnProperty.call(e,"maxResultSize")&&t.uint32(40).int64(e.maxResultSize),null!=e.senderId&&Object.hasOwnProperty.call(e,"senderId")&&$root.proto.AccountID.encode(e.senderId,t.uint32(50).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ContractCallLocalQuery;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.QueryHeader.decode(e,e.uint32());break;case 2:o.contractID=$root.proto.ContractID.decode(e,e.uint32());break;case 3:o.gas=e.int64();break;case 4:o.functionParameters=e.bytes();break;case 5:o.maxResultSize=e.int64();break;case 6:o.senderId=$root.proto.AccountID.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ContractCallLocalQuery"},e}(),e.ContractCallLocalResponse=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.functionResult=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.ResponseHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.functionResult&&Object.hasOwnProperty.call(e,"functionResult")&&$root.proto.ContractFunctionResult.encode(e.functionResult,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ContractCallLocalResponse;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.ResponseHeader.decode(e,e.uint32());break;case 2:o.functionResult=$root.proto.ContractFunctionResult.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ContractCallLocalResponse"},e}(),e.ContractNonceInfo=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.contractId=null,e.prototype.nonce=$util.Long?$util.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.contractId&&Object.hasOwnProperty.call(e,"contractId")&&$root.proto.ContractID.encode(e.contractId,t.uint32(10).fork()).ldelim(),null!=e.nonce&&Object.hasOwnProperty.call(e,"nonce")&&t.uint32(16).int64(e.nonce),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ContractNonceInfo;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.contractId=$root.proto.ContractID.decode(e,e.uint32());break;case 2:o.nonce=e.int64();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ContractNonceInfo"},e}(),e.ContractLoginfo=function(){function e(e){if(this.topic=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.contractID=null,e.prototype.bloom=$util.newBuffer([]),e.prototype.topic=$util.emptyArray,e.prototype.data=$util.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.contractID&&Object.hasOwnProperty.call(e,"contractID")&&$root.proto.ContractID.encode(e.contractID,t.uint32(10).fork()).ldelim(),null!=e.bloom&&Object.hasOwnProperty.call(e,"bloom")&&t.uint32(18).bytes(e.bloom),null!=e.topic&&e.topic.length)for(var r=0;r<e.topic.length;++r)t.uint32(26).bytes(e.topic[r]);return null!=e.data&&Object.hasOwnProperty.call(e,"data")&&t.uint32(34).bytes(e.data),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ContractLoginfo;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.contractID=$root.proto.ContractID.decode(e,e.uint32());break;case 2:o.bloom=e.bytes();break;case 3:o.topic&&o.topic.length||(o.topic=[]),o.topic.push(e.bytes());break;case 4:o.data=e.bytes();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ContractLoginfo"},e}(),e.ContractFunctionResult=function(){function e(e){if(this.logInfo=[],this.createdContractIDs=[],this.contractNonces=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.contractID=null,e.prototype.contractCallResult=$util.newBuffer([]),e.prototype.errorMessage="",e.prototype.bloom=$util.newBuffer([]),e.prototype.gasUsed=$util.Long?$util.Long.fromBits(0,0,!0):0,e.prototype.logInfo=$util.emptyArray,e.prototype.createdContractIDs=$util.emptyArray,e.prototype.evmAddress=null,e.prototype.gas=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.amount=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.functionParameters=$util.newBuffer([]),e.prototype.senderId=null,e.prototype.contractNonces=$util.emptyArray,e.prototype.signerNonce=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.contractID&&Object.hasOwnProperty.call(e,"contractID")&&$root.proto.ContractID.encode(e.contractID,t.uint32(10).fork()).ldelim(),null!=e.contractCallResult&&Object.hasOwnProperty.call(e,"contractCallResult")&&t.uint32(18).bytes(e.contractCallResult),null!=e.errorMessage&&Object.hasOwnProperty.call(e,"errorMessage")&&t.uint32(26).string(e.errorMessage),null!=e.bloom&&Object.hasOwnProperty.call(e,"bloom")&&t.uint32(34).bytes(e.bloom),null!=e.gasUsed&&Object.hasOwnProperty.call(e,"gasUsed")&&t.uint32(40).uint64(e.gasUsed),null!=e.logInfo&&e.logInfo.length)for(var r=0;r<e.logInfo.length;++r)$root.proto.ContractLoginfo.encode(e.logInfo[r],t.uint32(50).fork()).ldelim();if(null!=e.createdContractIDs&&e.createdContractIDs.length)for(r=0;r<e.createdContractIDs.length;++r)$root.proto.ContractID.encode(e.createdContractIDs[r],t.uint32(58).fork()).ldelim();if(null!=e.evmAddress&&Object.hasOwnProperty.call(e,"evmAddress")&&$root.google.protobuf.BytesValue.encode(e.evmAddress,t.uint32(74).fork()).ldelim(),null!=e.gas&&Object.hasOwnProperty.call(e,"gas")&&t.uint32(80).int64(e.gas),null!=e.amount&&Object.hasOwnProperty.call(e,"amount")&&t.uint32(88).int64(e.amount),null!=e.functionParameters&&Object.hasOwnProperty.call(e,"functionParameters")&&t.uint32(98).bytes(e.functionParameters),null!=e.senderId&&Object.hasOwnProperty.call(e,"senderId")&&$root.proto.AccountID.encode(e.senderId,t.uint32(106).fork()).ldelim(),null!=e.contractNonces&&e.contractNonces.length)for(r=0;r<e.contractNonces.length;++r)$root.proto.ContractNonceInfo.encode(e.contractNonces[r],t.uint32(114).fork()).ldelim();return null!=e.signerNonce&&Object.hasOwnProperty.call(e,"signerNonce")&&$root.google.protobuf.Int64Value.encode(e.signerNonce,t.uint32(122).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ContractFunctionResult;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.contractID=$root.proto.ContractID.decode(e,e.uint32());break;case 2:o.contractCallResult=e.bytes();break;case 3:o.errorMessage=e.string();break;case 4:o.bloom=e.bytes();break;case 5:o.gasUsed=e.uint64();break;case 6:o.logInfo&&o.logInfo.length||(o.logInfo=[]),o.logInfo.push($root.proto.ContractLoginfo.decode(e,e.uint32()));break;case 7:o.createdContractIDs&&o.createdContractIDs.length||(o.createdContractIDs=[]),o.createdContractIDs.push($root.proto.ContractID.decode(e,e.uint32()));break;case 9:o.evmAddress=$root.google.protobuf.BytesValue.decode(e,e.uint32());break;case 10:o.gas=e.int64();break;case 11:o.amount=e.int64();break;case 12:o.functionParameters=e.bytes();break;case 13:o.senderId=$root.proto.AccountID.decode(e,e.uint32());break;case 14:o.contractNonces&&o.contractNonces.length||(o.contractNonces=[]),o.contractNonces.push($root.proto.ContractNonceInfo.decode(e,e.uint32()));break;case 15:o.signerNonce=$root.google.protobuf.Int64Value.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ContractFunctionResult"},e}(),e.ContractGetInfoQuery=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.contractID=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.QueryHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.contractID&&Object.hasOwnProperty.call(e,"contractID")&&$root.proto.ContractID.encode(e.contractID,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ContractGetInfoQuery;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.QueryHeader.decode(e,e.uint32());break;case 2:o.contractID=$root.proto.ContractID.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ContractGetInfoQuery"},e}(),e.ContractGetInfoResponse=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.contractInfo=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.ResponseHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.contractInfo&&Object.hasOwnProperty.call(e,"contractInfo")&&$root.proto.ContractGetInfoResponse.ContractInfo.encode(e.contractInfo,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ContractGetInfoResponse;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.ResponseHeader.decode(e,e.uint32());break;case 2:o.contractInfo=$root.proto.ContractGetInfoResponse.ContractInfo.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ContractGetInfoResponse"},e.ContractInfo=function(){function e(e){if(this.tokenRelationships=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.contractID=null,e.prototype.accountID=null,e.prototype.contractAccountID="",e.prototype.adminKey=null,e.prototype.expirationTime=null,e.prototype.autoRenewPeriod=null,e.prototype.storage=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.memo="",e.prototype.balance=$util.Long?$util.Long.fromBits(0,0,!0):0,e.prototype.deleted=!1,e.prototype.tokenRelationships=$util.emptyArray,e.prototype.ledgerId=$util.newBuffer([]),e.prototype.autoRenewAccountId=null,e.prototype.maxAutomaticTokenAssociations=0,e.prototype.stakingInfo=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.contractID&&Object.hasOwnProperty.call(e,"contractID")&&$root.proto.ContractID.encode(e.contractID,t.uint32(10).fork()).ldelim(),null!=e.accountID&&Object.hasOwnProperty.call(e,"accountID")&&$root.proto.AccountID.encode(e.accountID,t.uint32(18).fork()).ldelim(),null!=e.contractAccountID&&Object.hasOwnProperty.call(e,"contractAccountID")&&t.uint32(26).string(e.contractAccountID),null!=e.adminKey&&Object.hasOwnProperty.call(e,"adminKey")&&$root.proto.Key.encode(e.adminKey,t.uint32(34).fork()).ldelim(),null!=e.expirationTime&&Object.hasOwnProperty.call(e,"expirationTime")&&$root.proto.Timestamp.encode(e.expirationTime,t.uint32(42).fork()).ldelim(),null!=e.autoRenewPeriod&&Object.hasOwnProperty.call(e,"autoRenewPeriod")&&$root.proto.Duration.encode(e.autoRenewPeriod,t.uint32(50).fork()).ldelim(),null!=e.storage&&Object.hasOwnProperty.call(e,"storage")&&t.uint32(56).int64(e.storage),null!=e.memo&&Object.hasOwnProperty.call(e,"memo")&&t.uint32(66).string(e.memo),null!=e.balance&&Object.hasOwnProperty.call(e,"balance")&&t.uint32(72).uint64(e.balance),null!=e.deleted&&Object.hasOwnProperty.call(e,"deleted")&&t.uint32(80).bool(e.deleted),null!=e.tokenRelationships&&e.tokenRelationships.length)for(var r=0;r<e.tokenRelationships.length;++r)$root.proto.TokenRelationship.encode(e.tokenRelationships[r],t.uint32(90).fork()).ldelim();return null!=e.ledgerId&&Object.hasOwnProperty.call(e,"ledgerId")&&t.uint32(98).bytes(e.ledgerId),null!=e.autoRenewAccountId&&Object.hasOwnProperty.call(e,"autoRenewAccountId")&&$root.proto.AccountID.encode(e.autoRenewAccountId,t.uint32(106).fork()).ldelim(),null!=e.maxAutomaticTokenAssociations&&Object.hasOwnProperty.call(e,"maxAutomaticTokenAssociations")&&t.uint32(112).int32(e.maxAutomaticTokenAssociations),null!=e.stakingInfo&&Object.hasOwnProperty.call(e,"stakingInfo")&&$root.proto.StakingInfo.encode(e.stakingInfo,t.uint32(122).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ContractGetInfoResponse.ContractInfo;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.contractID=$root.proto.ContractID.decode(e,e.uint32());break;case 2:o.accountID=$root.proto.AccountID.decode(e,e.uint32());break;case 3:o.contractAccountID=e.string();break;case 4:o.adminKey=$root.proto.Key.decode(e,e.uint32());break;case 5:o.expirationTime=$root.proto.Timestamp.decode(e,e.uint32());break;case 6:o.autoRenewPeriod=$root.proto.Duration.decode(e,e.uint32());break;case 7:o.storage=e.int64();break;case 8:o.memo=e.string();break;case 9:o.balance=e.uint64();break;case 10:o.deleted=e.bool();break;case 11:o.tokenRelationships&&o.tokenRelationships.length||(o.tokenRelationships=[]),o.tokenRelationships.push($root.proto.TokenRelationship.decode(e,e.uint32()));break;case 12:o.ledgerId=e.bytes();break;case 13:o.autoRenewAccountId=$root.proto.AccountID.decode(e,e.uint32());break;case 14:o.maxAutomaticTokenAssociations=e.int32();break;case 15:o.stakingInfo=$root.proto.StakingInfo.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ContractGetInfoResponse.ContractInfo"},e}(),e}(),e.ContractGetBytecodeQuery=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.contractID=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.QueryHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.contractID&&Object.hasOwnProperty.call(e,"contractID")&&$root.proto.ContractID.encode(e.contractID,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ContractGetBytecodeQuery;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.QueryHeader.decode(e,e.uint32());break;case 2:o.contractID=$root.proto.ContractID.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ContractGetBytecodeQuery"},e}(),e.ContractGetBytecodeResponse=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.bytecode=$util.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.ResponseHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.bytecode&&Object.hasOwnProperty.call(e,"bytecode")&&t.uint32(50).bytes(e.bytecode),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ContractGetBytecodeResponse;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.ResponseHeader.decode(e,e.uint32());break;case 6:o.bytecode=e.bytes();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ContractGetBytecodeResponse"},e}(),e.ContractGetRecordsQuery=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.contractID=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.QueryHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.contractID&&Object.hasOwnProperty.call(e,"contractID")&&$root.proto.ContractID.encode(e.contractID,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ContractGetRecordsQuery;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.QueryHeader.decode(e,e.uint32());break;case 2:o.contractID=$root.proto.ContractID.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ContractGetRecordsQuery"},e}(),e.ContractGetRecordsResponse=function(){function e(e){if(this.records=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.contractID=null,e.prototype.records=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.ResponseHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.contractID&&Object.hasOwnProperty.call(e,"contractID")&&$root.proto.ContractID.encode(e.contractID,t.uint32(18).fork()).ldelim(),null!=e.records&&e.records.length)for(var r=0;r<e.records.length;++r)$root.proto.TransactionRecord.encode(e.records[r],t.uint32(26).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ContractGetRecordsResponse;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.ResponseHeader.decode(e,e.uint32());break;case 2:o.contractID=$root.proto.ContractID.decode(e,e.uint32());break;case 3:o.records&&o.records.length||(o.records=[]),o.records.push($root.proto.TransactionRecord.decode(e,e.uint32()));break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ContractGetRecordsResponse"},e}(),e.TransactionRecord=function(){function e(e){if(this.tokenTransferLists=[],this.assessedCustomFees=[],this.automaticTokenAssociations=[],this.paidStakingRewards=[],this.newPendingAirdrops=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.receipt=null,e.prototype.transactionHash=$util.newBuffer([]),e.prototype.consensusTimestamp=null,e.prototype.transactionID=null,e.prototype.memo="",e.prototype.transactionFee=$util.Long?$util.Long.fromBits(0,0,!0):0,e.prototype.contractCallResult=null,e.prototype.contractCreateResult=null,e.prototype.transferList=null,e.prototype.tokenTransferLists=$util.emptyArray,e.prototype.scheduleRef=null,e.prototype.assessedCustomFees=$util.emptyArray,e.prototype.automaticTokenAssociations=$util.emptyArray,e.prototype.parentConsensusTimestamp=null,e.prototype.alias=$util.newBuffer([]),e.prototype.ethereumHash=$util.newBuffer([]),e.prototype.paidStakingRewards=$util.emptyArray,e.prototype.prngBytes=null,e.prototype.prngNumber=null,e.prototype.evmAddress=$util.newBuffer([]),e.prototype.newPendingAirdrops=$util.emptyArray,Object.defineProperty(e.prototype,"body",{get:$util.oneOfGetter(t=["contractCallResult","contractCreateResult"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"entropy",{get:$util.oneOfGetter(t=["prngBytes","prngNumber"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.receipt&&Object.hasOwnProperty.call(e,"receipt")&&$root.proto.TransactionReceipt.encode(e.receipt,t.uint32(10).fork()).ldelim(),null!=e.transactionHash&&Object.hasOwnProperty.call(e,"transactionHash")&&t.uint32(18).bytes(e.transactionHash),null!=e.consensusTimestamp&&Object.hasOwnProperty.call(e,"consensusTimestamp")&&$root.proto.Timestamp.encode(e.consensusTimestamp,t.uint32(26).fork()).ldelim(),null!=e.transactionID&&Object.hasOwnProperty.call(e,"transactionID")&&$root.proto.TransactionID.encode(e.transactionID,t.uint32(34).fork()).ldelim(),null!=e.memo&&Object.hasOwnProperty.call(e,"memo")&&t.uint32(42).string(e.memo),null!=e.transactionFee&&Object.hasOwnProperty.call(e,"transactionFee")&&t.uint32(48).uint64(e.transactionFee),null!=e.contractCallResult&&Object.hasOwnProperty.call(e,"contractCallResult")&&$root.proto.ContractFunctionResult.encode(e.contractCallResult,t.uint32(58).fork()).ldelim(),null!=e.contractCreateResult&&Object.hasOwnProperty.call(e,"contractCreateResult")&&$root.proto.ContractFunctionResult.encode(e.contractCreateResult,t.uint32(66).fork()).ldelim(),null!=e.transferList&&Object.hasOwnProperty.call(e,"transferList")&&$root.proto.TransferList.encode(e.transferList,t.uint32(82).fork()).ldelim(),null!=e.tokenTransferLists&&e.tokenTransferLists.length)for(var r=0;r<e.tokenTransferLists.length;++r)$root.proto.TokenTransferList.encode(e.tokenTransferLists[r],t.uint32(90).fork()).ldelim();if(null!=e.scheduleRef&&Object.hasOwnProperty.call(e,"scheduleRef")&&$root.proto.ScheduleID.encode(e.scheduleRef,t.uint32(98).fork()).ldelim(),null!=e.assessedCustomFees&&e.assessedCustomFees.length)for(r=0;r<e.assessedCustomFees.length;++r)$root.proto.AssessedCustomFee.encode(e.assessedCustomFees[r],t.uint32(106).fork()).ldelim();if(null!=e.automaticTokenAssociations&&e.automaticTokenAssociations.length)for(r=0;r<e.automaticTokenAssociations.length;++r)$root.proto.TokenAssociation.encode(e.automaticTokenAssociations[r],t.uint32(114).fork()).ldelim();if(null!=e.parentConsensusTimestamp&&Object.hasOwnProperty.call(e,"parentConsensusTimestamp")&&$root.proto.Timestamp.encode(e.parentConsensusTimestamp,t.uint32(122).fork()).ldelim(),null!=e.alias&&Object.hasOwnProperty.call(e,"alias")&&t.uint32(130).bytes(e.alias),null!=e.ethereumHash&&Object.hasOwnProperty.call(e,"ethereumHash")&&t.uint32(138).bytes(e.ethereumHash),null!=e.paidStakingRewards&&e.paidStakingRewards.length)for(r=0;r<e.paidStakingRewards.length;++r)$root.proto.AccountAmount.encode(e.paidStakingRewards[r],t.uint32(146).fork()).ldelim();if(null!=e.prngBytes&&Object.hasOwnProperty.call(e,"prngBytes")&&t.uint32(154).bytes(e.prngBytes),null!=e.prngNumber&&Object.hasOwnProperty.call(e,"prngNumber")&&t.uint32(160).int32(e.prngNumber),null!=e.evmAddress&&Object.hasOwnProperty.call(e,"evmAddress")&&t.uint32(170).bytes(e.evmAddress),null!=e.newPendingAirdrops&&e.newPendingAirdrops.length)for(r=0;r<e.newPendingAirdrops.length;++r)$root.proto.PendingAirdropRecord.encode(e.newPendingAirdrops[r],t.uint32(178).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TransactionRecord;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.receipt=$root.proto.TransactionReceipt.decode(e,e.uint32());break;case 2:o.transactionHash=e.bytes();break;case 3:o.consensusTimestamp=$root.proto.Timestamp.decode(e,e.uint32());break;case 4:o.transactionID=$root.proto.TransactionID.decode(e,e.uint32());break;case 5:o.memo=e.string();break;case 6:o.transactionFee=e.uint64();break;case 7:o.contractCallResult=$root.proto.ContractFunctionResult.decode(e,e.uint32());break;case 8:o.contractCreateResult=$root.proto.ContractFunctionResult.decode(e,e.uint32());break;case 10:o.transferList=$root.proto.TransferList.decode(e,e.uint32());break;case 11:o.tokenTransferLists&&o.tokenTransferLists.length||(o.tokenTransferLists=[]),o.tokenTransferLists.push($root.proto.TokenTransferList.decode(e,e.uint32()));break;case 12:o.scheduleRef=$root.proto.ScheduleID.decode(e,e.uint32());break;case 13:o.assessedCustomFees&&o.assessedCustomFees.length||(o.assessedCustomFees=[]),o.assessedCustomFees.push($root.proto.AssessedCustomFee.decode(e,e.uint32()));break;case 14:o.automaticTokenAssociations&&o.automaticTokenAssociations.length||(o.automaticTokenAssociations=[]),o.automaticTokenAssociations.push($root.proto.TokenAssociation.decode(e,e.uint32()));break;case 15:o.parentConsensusTimestamp=$root.proto.Timestamp.decode(e,e.uint32());break;case 16:o.alias=e.bytes();break;case 17:o.ethereumHash=e.bytes();break;case 18:o.paidStakingRewards&&o.paidStakingRewards.length||(o.paidStakingRewards=[]),o.paidStakingRewards.push($root.proto.AccountAmount.decode(e,e.uint32()));break;case 19:o.prngBytes=e.bytes();break;case 20:o.prngNumber=e.int32();break;case 21:o.evmAddress=e.bytes();break;case 22:o.newPendingAirdrops&&o.newPendingAirdrops.length||(o.newPendingAirdrops=[]),o.newPendingAirdrops.push($root.proto.PendingAirdropRecord.decode(e,e.uint32()));break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TransactionRecord"},e}(),e.PendingAirdropRecord=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.pendingAirdropId=null,e.prototype.pendingAirdropValue=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.pendingAirdropId&&Object.hasOwnProperty.call(e,"pendingAirdropId")&&$root.proto.PendingAirdropId.encode(e.pendingAirdropId,t.uint32(10).fork()).ldelim(),null!=e.pendingAirdropValue&&Object.hasOwnProperty.call(e,"pendingAirdropValue")&&$root.proto.PendingAirdropValue.encode(e.pendingAirdropValue,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.PendingAirdropRecord;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.pendingAirdropId=$root.proto.PendingAirdropId.decode(e,e.uint32());break;case 2:o.pendingAirdropValue=$root.proto.PendingAirdropValue.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.PendingAirdropRecord"},e}(),e.TransactionReceipt=function(){function e(e){if(this.serialNumbers=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.status=0,e.prototype.accountID=null,e.prototype.fileID=null,e.prototype.contractID=null,e.prototype.exchangeRate=null,e.prototype.topicID=null,e.prototype.topicSequenceNumber=$util.Long?$util.Long.fromBits(0,0,!0):0,e.prototype.topicRunningHash=$util.newBuffer([]),e.prototype.topicRunningHashVersion=$util.Long?$util.Long.fromBits(0,0,!0):0,e.prototype.tokenID=null,e.prototype.newTotalSupply=$util.Long?$util.Long.fromBits(0,0,!0):0,e.prototype.scheduleID=null,e.prototype.scheduledTransactionID=null,e.prototype.serialNumbers=$util.emptyArray,e.prototype.nodeId=$util.Long?$util.Long.fromBits(0,0,!0):0,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.status&&Object.hasOwnProperty.call(e,"status")&&t.uint32(8).int32(e.status),null!=e.accountID&&Object.hasOwnProperty.call(e,"accountID")&&$root.proto.AccountID.encode(e.accountID,t.uint32(18).fork()).ldelim(),null!=e.fileID&&Object.hasOwnProperty.call(e,"fileID")&&$root.proto.FileID.encode(e.fileID,t.uint32(26).fork()).ldelim(),null!=e.contractID&&Object.hasOwnProperty.call(e,"contractID")&&$root.proto.ContractID.encode(e.contractID,t.uint32(34).fork()).ldelim(),null!=e.exchangeRate&&Object.hasOwnProperty.call(e,"exchangeRate")&&$root.proto.ExchangeRateSet.encode(e.exchangeRate,t.uint32(42).fork()).ldelim(),null!=e.topicID&&Object.hasOwnProperty.call(e,"topicID")&&$root.proto.TopicID.encode(e.topicID,t.uint32(50).fork()).ldelim(),null!=e.topicSequenceNumber&&Object.hasOwnProperty.call(e,"topicSequenceNumber")&&t.uint32(56).uint64(e.topicSequenceNumber),null!=e.topicRunningHash&&Object.hasOwnProperty.call(e,"topicRunningHash")&&t.uint32(66).bytes(e.topicRunningHash),null!=e.topicRunningHashVersion&&Object.hasOwnProperty.call(e,"topicRunningHashVersion")&&t.uint32(72).uint64(e.topicRunningHashVersion),null!=e.tokenID&&Object.hasOwnProperty.call(e,"tokenID")&&$root.proto.TokenID.encode(e.tokenID,t.uint32(82).fork()).ldelim(),null!=e.newTotalSupply&&Object.hasOwnProperty.call(e,"newTotalSupply")&&t.uint32(88).uint64(e.newTotalSupply),null!=e.scheduleID&&Object.hasOwnProperty.call(e,"scheduleID")&&$root.proto.ScheduleID.encode(e.scheduleID,t.uint32(98).fork()).ldelim(),null!=e.scheduledTransactionID&&Object.hasOwnProperty.call(e,"scheduledTransactionID")&&$root.proto.TransactionID.encode(e.scheduledTransactionID,t.uint32(106).fork()).ldelim(),null!=e.serialNumbers&&e.serialNumbers.length){t.uint32(114).fork();for(var r=0;r<e.serialNumbers.length;++r)t.int64(e.serialNumbers[r]);t.ldelim()}return null!=e.nodeId&&Object.hasOwnProperty.call(e,"nodeId")&&t.uint32(120).uint64(e.nodeId),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TransactionReceipt;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.status=e.int32();break;case 2:o.accountID=$root.proto.AccountID.decode(e,e.uint32());break;case 3:o.fileID=$root.proto.FileID.decode(e,e.uint32());break;case 4:o.contractID=$root.proto.ContractID.decode(e,e.uint32());break;case 5:o.exchangeRate=$root.proto.ExchangeRateSet.decode(e,e.uint32());break;case 6:o.topicID=$root.proto.TopicID.decode(e,e.uint32());break;case 7:o.topicSequenceNumber=e.uint64();break;case 8:o.topicRunningHash=e.bytes();break;case 9:o.topicRunningHashVersion=e.uint64();break;case 10:o.tokenID=$root.proto.TokenID.decode(e,e.uint32());break;case 11:o.newTotalSupply=e.uint64();break;case 12:o.scheduleID=$root.proto.ScheduleID.decode(e,e.uint32());break;case 13:o.scheduledTransactionID=$root.proto.TransactionID.decode(e,e.uint32());break;case 14:if(o.serialNumbers&&o.serialNumbers.length||(o.serialNumbers=[]),2==(7&n))for(var i=e.uint32()+e.pos;e.pos<i;)o.serialNumbers.push(e.int64());else o.serialNumbers.push(e.int64());break;case 15:o.nodeId=e.uint64();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TransactionReceipt"},e}(),e.ExchangeRate=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.hbarEquiv=0,e.prototype.centEquiv=0,e.prototype.expirationTime=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.hbarEquiv&&Object.hasOwnProperty.call(e,"hbarEquiv")&&t.uint32(8).int32(e.hbarEquiv),null!=e.centEquiv&&Object.hasOwnProperty.call(e,"centEquiv")&&t.uint32(16).int32(e.centEquiv),null!=e.expirationTime&&Object.hasOwnProperty.call(e,"expirationTime")&&$root.proto.TimestampSeconds.encode(e.expirationTime,t.uint32(26).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ExchangeRate;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.hbarEquiv=e.int32();break;case 2:o.centEquiv=e.int32();break;case 3:o.expirationTime=$root.proto.TimestampSeconds.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ExchangeRate"},e}(),e.ExchangeRateSet=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.currentRate=null,e.prototype.nextRate=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.currentRate&&Object.hasOwnProperty.call(e,"currentRate")&&$root.proto.ExchangeRate.encode(e.currentRate,t.uint32(10).fork()).ldelim(),null!=e.nextRate&&Object.hasOwnProperty.call(e,"nextRate")&&$root.proto.ExchangeRate.encode(e.nextRate,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ExchangeRateSet;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.currentRate=$root.proto.ExchangeRate.decode(e,e.uint32());break;case 2:o.nextRate=$root.proto.ExchangeRate.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ExchangeRateSet"},e}(),e.CryptoGetAccountBalanceQuery=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.header=null,e.prototype.accountID=null,e.prototype.contractID=null,Object.defineProperty(e.prototype,"balanceSource",{get:$util.oneOfGetter(t=["accountID","contractID"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.QueryHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.accountID&&Object.hasOwnProperty.call(e,"accountID")&&$root.proto.AccountID.encode(e.accountID,t.uint32(18).fork()).ldelim(),null!=e.contractID&&Object.hasOwnProperty.call(e,"contractID")&&$root.proto.ContractID.encode(e.contractID,t.uint32(26).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.CryptoGetAccountBalanceQuery;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.QueryHeader.decode(e,e.uint32());break;case 2:o.accountID=$root.proto.AccountID.decode(e,e.uint32());break;case 3:o.contractID=$root.proto.ContractID.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.CryptoGetAccountBalanceQuery"},e}(),e.CryptoGetAccountBalanceResponse=function(){function e(e){if(this.tokenBalances=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.accountID=null,e.prototype.balance=$util.Long?$util.Long.fromBits(0,0,!0):0,e.prototype.tokenBalances=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.ResponseHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.accountID&&Object.hasOwnProperty.call(e,"accountID")&&$root.proto.AccountID.encode(e.accountID,t.uint32(18).fork()).ldelim(),null!=e.balance&&Object.hasOwnProperty.call(e,"balance")&&t.uint32(24).uint64(e.balance),null!=e.tokenBalances&&e.tokenBalances.length)for(var r=0;r<e.tokenBalances.length;++r)$root.proto.TokenBalance.encode(e.tokenBalances[r],t.uint32(34).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.CryptoGetAccountBalanceResponse;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.ResponseHeader.decode(e,e.uint32());break;case 2:o.accountID=$root.proto.AccountID.decode(e,e.uint32());break;case 3:o.balance=e.uint64();break;case 4:o.tokenBalances&&o.tokenBalances.length||(o.tokenBalances=[]),o.tokenBalances.push($root.proto.TokenBalance.decode(e,e.uint32()));break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.CryptoGetAccountBalanceResponse"},e}(),e.CryptoGetAccountRecordsQuery=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.accountID=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.QueryHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.accountID&&Object.hasOwnProperty.call(e,"accountID")&&$root.proto.AccountID.encode(e.accountID,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.CryptoGetAccountRecordsQuery;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.QueryHeader.decode(e,e.uint32());break;case 2:o.accountID=$root.proto.AccountID.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.CryptoGetAccountRecordsQuery"},e}(),e.CryptoGetAccountRecordsResponse=function(){function e(e){if(this.records=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.accountID=null,e.prototype.records=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.ResponseHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.accountID&&Object.hasOwnProperty.call(e,"accountID")&&$root.proto.AccountID.encode(e.accountID,t.uint32(18).fork()).ldelim(),null!=e.records&&e.records.length)for(var r=0;r<e.records.length;++r)$root.proto.TransactionRecord.encode(e.records[r],t.uint32(26).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.CryptoGetAccountRecordsResponse;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.ResponseHeader.decode(e,e.uint32());break;case 2:o.accountID=$root.proto.AccountID.decode(e,e.uint32());break;case 3:o.records&&o.records.length||(o.records=[]),o.records.push($root.proto.TransactionRecord.decode(e,e.uint32()));break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.CryptoGetAccountRecordsResponse"},e}(),e.CryptoGetInfoQuery=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.accountID=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.QueryHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.accountID&&Object.hasOwnProperty.call(e,"accountID")&&$root.proto.AccountID.encode(e.accountID,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.CryptoGetInfoQuery;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.QueryHeader.decode(e,e.uint32());break;case 2:o.accountID=$root.proto.AccountID.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.CryptoGetInfoQuery"},e}(),e.CryptoGetInfoResponse=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.accountInfo=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.ResponseHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.accountInfo&&Object.hasOwnProperty.call(e,"accountInfo")&&$root.proto.CryptoGetInfoResponse.AccountInfo.encode(e.accountInfo,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.CryptoGetInfoResponse;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.ResponseHeader.decode(e,e.uint32());break;case 2:o.accountInfo=$root.proto.CryptoGetInfoResponse.AccountInfo.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.CryptoGetInfoResponse"},e.AccountInfo=function(){function e(e){if(this.liveHashes=[],this.tokenRelationships=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.accountID=null,e.prototype.contractAccountID="",e.prototype.deleted=!1,e.prototype.proxyAccountID=null,e.prototype.proxyReceived=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.key=null,e.prototype.balance=$util.Long?$util.Long.fromBits(0,0,!0):0,e.prototype.generateSendRecordThreshold=$util.Long?$util.Long.fromBits(0,0,!0):0,e.prototype.generateReceiveRecordThreshold=$util.Long?$util.Long.fromBits(0,0,!0):0,e.prototype.receiverSigRequired=!1,e.prototype.expirationTime=null,e.prototype.autoRenewPeriod=null,e.prototype.liveHashes=$util.emptyArray,e.prototype.tokenRelationships=$util.emptyArray,e.prototype.memo="",e.prototype.ownedNfts=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.maxAutomaticTokenAssociations=0,e.prototype.alias=$util.newBuffer([]),e.prototype.ledgerId=$util.newBuffer([]),e.prototype.ethereumNonce=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.stakingInfo=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.accountID&&Object.hasOwnProperty.call(e,"accountID")&&$root.proto.AccountID.encode(e.accountID,t.uint32(10).fork()).ldelim(),null!=e.contractAccountID&&Object.hasOwnProperty.call(e,"contractAccountID")&&t.uint32(18).string(e.contractAccountID),null!=e.deleted&&Object.hasOwnProperty.call(e,"deleted")&&t.uint32(24).bool(e.deleted),null!=e.proxyAccountID&&Object.hasOwnProperty.call(e,"proxyAccountID")&&$root.proto.AccountID.encode(e.proxyAccountID,t.uint32(34).fork()).ldelim(),null!=e.proxyReceived&&Object.hasOwnProperty.call(e,"proxyReceived")&&t.uint32(48).int64(e.proxyReceived),null!=e.key&&Object.hasOwnProperty.call(e,"key")&&$root.proto.Key.encode(e.key,t.uint32(58).fork()).ldelim(),null!=e.balance&&Object.hasOwnProperty.call(e,"balance")&&t.uint32(64).uint64(e.balance),null!=e.generateSendRecordThreshold&&Object.hasOwnProperty.call(e,"generateSendRecordThreshold")&&t.uint32(72).uint64(e.generateSendRecordThreshold),null!=e.generateReceiveRecordThreshold&&Object.hasOwnProperty.call(e,"generateReceiveRecordThreshold")&&t.uint32(80).uint64(e.generateReceiveRecordThreshold),null!=e.receiverSigRequired&&Object.hasOwnProperty.call(e,"receiverSigRequired")&&t.uint32(88).bool(e.receiverSigRequired),null!=e.expirationTime&&Object.hasOwnProperty.call(e,"expirationTime")&&$root.proto.Timestamp.encode(e.expirationTime,t.uint32(98).fork()).ldelim(),null!=e.autoRenewPeriod&&Object.hasOwnProperty.call(e,"autoRenewPeriod")&&$root.proto.Duration.encode(e.autoRenewPeriod,t.uint32(106).fork()).ldelim(),null!=e.liveHashes&&e.liveHashes.length)for(var r=0;r<e.liveHashes.length;++r)$root.proto.LiveHash.encode(e.liveHashes[r],t.uint32(114).fork()).ldelim();if(null!=e.tokenRelationships&&e.tokenRelationships.length)for(r=0;r<e.tokenRelationships.length;++r)$root.proto.TokenRelationship.encode(e.tokenRelationships[r],t.uint32(122).fork()).ldelim();return null!=e.memo&&Object.hasOwnProperty.call(e,"memo")&&t.uint32(130).string(e.memo),null!=e.ownedNfts&&Object.hasOwnProperty.call(e,"ownedNfts")&&t.uint32(136).int64(e.ownedNfts),null!=e.maxAutomaticTokenAssociations&&Object.hasOwnProperty.call(e,"maxAutomaticTokenAssociations")&&t.uint32(144).int32(e.maxAutomaticTokenAssociations),null!=e.alias&&Object.hasOwnProperty.call(e,"alias")&&t.uint32(154).bytes(e.alias),null!=e.ledgerId&&Object.hasOwnProperty.call(e,"ledgerId")&&t.uint32(162).bytes(e.ledgerId),null!=e.ethereumNonce&&Object.hasOwnProperty.call(e,"ethereumNonce")&&t.uint32(168).int64(e.ethereumNonce),null!=e.stakingInfo&&Object.hasOwnProperty.call(e,"stakingInfo")&&$root.proto.StakingInfo.encode(e.stakingInfo,t.uint32(178).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.CryptoGetInfoResponse.AccountInfo;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.accountID=$root.proto.AccountID.decode(e,e.uint32());break;case 2:o.contractAccountID=e.string();break;case 3:o.deleted=e.bool();break;case 4:o.proxyAccountID=$root.proto.AccountID.decode(e,e.uint32());break;case 6:o.proxyReceived=e.int64();break;case 7:o.key=$root.proto.Key.decode(e,e.uint32());break;case 8:o.balance=e.uint64();break;case 9:o.generateSendRecordThreshold=e.uint64();break;case 10:o.generateReceiveRecordThreshold=e.uint64();break;case 11:o.receiverSigRequired=e.bool();break;case 12:o.expirationTime=$root.proto.Timestamp.decode(e,e.uint32());break;case 13:o.autoRenewPeriod=$root.proto.Duration.decode(e,e.uint32());break;case 14:o.liveHashes&&o.liveHashes.length||(o.liveHashes=[]),o.liveHashes.push($root.proto.LiveHash.decode(e,e.uint32()));break;case 15:o.tokenRelationships&&o.tokenRelationships.length||(o.tokenRelationships=[]),o.tokenRelationships.push($root.proto.TokenRelationship.decode(e,e.uint32()));break;case 16:o.memo=e.string();break;case 17:o.ownedNfts=e.int64();break;case 18:o.maxAutomaticTokenAssociations=e.int32();break;case 19:o.alias=e.bytes();break;case 20:o.ledgerId=e.bytes();break;case 21:o.ethereumNonce=e.int64();break;case 22:o.stakingInfo=$root.proto.StakingInfo.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.CryptoGetInfoResponse.AccountInfo"},e}(),e}(),e.CryptoGetLiveHashQuery=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.accountID=null,e.prototype.hash=$util.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.QueryHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.accountID&&Object.hasOwnProperty.call(e,"accountID")&&$root.proto.AccountID.encode(e.accountID,t.uint32(18).fork()).ldelim(),null!=e.hash&&Object.hasOwnProperty.call(e,"hash")&&t.uint32(26).bytes(e.hash),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.CryptoGetLiveHashQuery;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.QueryHeader.decode(e,e.uint32());break;case 2:o.accountID=$root.proto.AccountID.decode(e,e.uint32());break;case 3:o.hash=e.bytes();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.CryptoGetLiveHashQuery"},e}(),e.CryptoGetLiveHashResponse=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.liveHash=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.ResponseHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.liveHash&&Object.hasOwnProperty.call(e,"liveHash")&&$root.proto.LiveHash.encode(e.liveHash,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.CryptoGetLiveHashResponse;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.ResponseHeader.decode(e,e.uint32());break;case 2:o.liveHash=$root.proto.LiveHash.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.CryptoGetLiveHashResponse"},e}(),e.CryptoGetStakersQuery=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.accountID=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.QueryHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.accountID&&Object.hasOwnProperty.call(e,"accountID")&&$root.proto.AccountID.encode(e.accountID,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.CryptoGetStakersQuery;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.QueryHeader.decode(e,e.uint32());break;case 2:o.accountID=$root.proto.AccountID.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.CryptoGetStakersQuery"},e}(),e.ProxyStaker=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.accountID=null,e.prototype.amount=$util.Long?$util.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.accountID&&Object.hasOwnProperty.call(e,"accountID")&&$root.proto.AccountID.encode(e.accountID,t.uint32(10).fork()).ldelim(),null!=e.amount&&Object.hasOwnProperty.call(e,"amount")&&t.uint32(16).int64(e.amount),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ProxyStaker;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.accountID=$root.proto.AccountID.decode(e,e.uint32());break;case 2:o.amount=e.int64();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ProxyStaker"},e}(),e.AllProxyStakers=function(){function e(e){if(this.proxyStaker=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.accountID=null,e.prototype.proxyStaker=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.accountID&&Object.hasOwnProperty.call(e,"accountID")&&$root.proto.AccountID.encode(e.accountID,t.uint32(10).fork()).ldelim(),null!=e.proxyStaker&&e.proxyStaker.length)for(var r=0;r<e.proxyStaker.length;++r)$root.proto.ProxyStaker.encode(e.proxyStaker[r],t.uint32(18).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.AllProxyStakers;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.accountID=$root.proto.AccountID.decode(e,e.uint32());break;case 2:o.proxyStaker&&o.proxyStaker.length||(o.proxyStaker=[]),o.proxyStaker.push($root.proto.ProxyStaker.decode(e,e.uint32()));break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.AllProxyStakers"},e}(),e.CryptoGetStakersResponse=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.stakers=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.ResponseHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.stakers&&Object.hasOwnProperty.call(e,"stakers")&&$root.proto.AllProxyStakers.encode(e.stakers,t.uint32(26).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.CryptoGetStakersResponse;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.ResponseHeader.decode(e,e.uint32());break;case 3:o.stakers=$root.proto.AllProxyStakers.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.CryptoGetStakersResponse"},e}(),e.FileGetContentsQuery=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.fileID=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.QueryHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.fileID&&Object.hasOwnProperty.call(e,"fileID")&&$root.proto.FileID.encode(e.fileID,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.FileGetContentsQuery;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.QueryHeader.decode(e,e.uint32());break;case 2:o.fileID=$root.proto.FileID.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.FileGetContentsQuery"},e}(),e.FileGetContentsResponse=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.fileContents=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.ResponseHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.fileContents&&Object.hasOwnProperty.call(e,"fileContents")&&$root.proto.FileGetContentsResponse.FileContents.encode(e.fileContents,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.FileGetContentsResponse;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.ResponseHeader.decode(e,e.uint32());break;case 2:o.fileContents=$root.proto.FileGetContentsResponse.FileContents.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.FileGetContentsResponse"},e.FileContents=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.fileID=null,e.prototype.contents=$util.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.fileID&&Object.hasOwnProperty.call(e,"fileID")&&$root.proto.FileID.encode(e.fileID,t.uint32(10).fork()).ldelim(),null!=e.contents&&Object.hasOwnProperty.call(e,"contents")&&t.uint32(18).bytes(e.contents),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.FileGetContentsResponse.FileContents;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.fileID=$root.proto.FileID.decode(e,e.uint32());break;case 2:o.contents=e.bytes();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.FileGetContentsResponse.FileContents"},e}(),e}(),e.FileGetInfoQuery=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.fileID=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.QueryHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.fileID&&Object.hasOwnProperty.call(e,"fileID")&&$root.proto.FileID.encode(e.fileID,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.FileGetInfoQuery;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.QueryHeader.decode(e,e.uint32());break;case 2:o.fileID=$root.proto.FileID.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.FileGetInfoQuery"},e}(),e.FileGetInfoResponse=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.fileInfo=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.ResponseHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.fileInfo&&Object.hasOwnProperty.call(e,"fileInfo")&&$root.proto.FileGetInfoResponse.FileInfo.encode(e.fileInfo,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.FileGetInfoResponse;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.ResponseHeader.decode(e,e.uint32());break;case 2:o.fileInfo=$root.proto.FileGetInfoResponse.FileInfo.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.FileGetInfoResponse"},e.FileInfo=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.fileID=null,e.prototype.size=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.expirationTime=null,e.prototype.deleted=!1,e.prototype.keys=null,e.prototype.memo="",e.prototype.ledgerId=$util.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.fileID&&Object.hasOwnProperty.call(e,"fileID")&&$root.proto.FileID.encode(e.fileID,t.uint32(10).fork()).ldelim(),null!=e.size&&Object.hasOwnProperty.call(e,"size")&&t.uint32(16).int64(e.size),null!=e.expirationTime&&Object.hasOwnProperty.call(e,"expirationTime")&&$root.proto.Timestamp.encode(e.expirationTime,t.uint32(26).fork()).ldelim(),null!=e.deleted&&Object.hasOwnProperty.call(e,"deleted")&&t.uint32(32).bool(e.deleted),null!=e.keys&&Object.hasOwnProperty.call(e,"keys")&&$root.proto.KeyList.encode(e.keys,t.uint32(42).fork()).ldelim(),null!=e.memo&&Object.hasOwnProperty.call(e,"memo")&&t.uint32(50).string(e.memo),null!=e.ledgerId&&Object.hasOwnProperty.call(e,"ledgerId")&&t.uint32(58).bytes(e.ledgerId),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.FileGetInfoResponse.FileInfo;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.fileID=$root.proto.FileID.decode(e,e.uint32());break;case 2:o.size=e.int64();break;case 3:o.expirationTime=$root.proto.Timestamp.decode(e,e.uint32());break;case 4:o.deleted=e.bool();break;case 5:o.keys=$root.proto.KeyList.decode(e,e.uint32());break;case 6:o.memo=e.string();break;case 7:o.ledgerId=e.bytes();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.FileGetInfoResponse.FileInfo"},e}(),e}(),e.TransactionGetReceiptQuery=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.transactionID=null,e.prototype.includeDuplicates=!1,e.prototype.includeChildReceipts=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.QueryHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.transactionID&&Object.hasOwnProperty.call(e,"transactionID")&&$root.proto.TransactionID.encode(e.transactionID,t.uint32(18).fork()).ldelim(),null!=e.includeDuplicates&&Object.hasOwnProperty.call(e,"includeDuplicates")&&t.uint32(24).bool(e.includeDuplicates),null!=e.includeChildReceipts&&Object.hasOwnProperty.call(e,"includeChildReceipts")&&t.uint32(32).bool(e.includeChildReceipts),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TransactionGetReceiptQuery;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.QueryHeader.decode(e,e.uint32());break;case 2:o.transactionID=$root.proto.TransactionID.decode(e,e.uint32());break;case 3:o.includeDuplicates=e.bool();break;case 4:o.includeChildReceipts=e.bool();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TransactionGetReceiptQuery"},e}(),e.TransactionGetReceiptResponse=function(){function e(e){if(this.duplicateTransactionReceipts=[],this.childTransactionReceipts=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.receipt=null,e.prototype.duplicateTransactionReceipts=$util.emptyArray,e.prototype.childTransactionReceipts=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.ResponseHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.receipt&&Object.hasOwnProperty.call(e,"receipt")&&$root.proto.TransactionReceipt.encode(e.receipt,t.uint32(18).fork()).ldelim(),null!=e.duplicateTransactionReceipts&&e.duplicateTransactionReceipts.length)for(var r=0;r<e.duplicateTransactionReceipts.length;++r)$root.proto.TransactionReceipt.encode(e.duplicateTransactionReceipts[r],t.uint32(34).fork()).ldelim();if(null!=e.childTransactionReceipts&&e.childTransactionReceipts.length)for(r=0;r<e.childTransactionReceipts.length;++r)$root.proto.TransactionReceipt.encode(e.childTransactionReceipts[r],t.uint32(42).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TransactionGetReceiptResponse;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.ResponseHeader.decode(e,e.uint32());break;case 2:o.receipt=$root.proto.TransactionReceipt.decode(e,e.uint32());break;case 4:o.duplicateTransactionReceipts&&o.duplicateTransactionReceipts.length||(o.duplicateTransactionReceipts=[]),o.duplicateTransactionReceipts.push($root.proto.TransactionReceipt.decode(e,e.uint32()));break;case 5:o.childTransactionReceipts&&o.childTransactionReceipts.length||(o.childTransactionReceipts=[]),o.childTransactionReceipts.push($root.proto.TransactionReceipt.decode(e,e.uint32()));break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TransactionGetReceiptResponse"},e}(),e.TransactionGetRecordQuery=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.transactionID=null,e.prototype.includeDuplicates=!1,e.prototype.includeChildRecords=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.QueryHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.transactionID&&Object.hasOwnProperty.call(e,"transactionID")&&$root.proto.TransactionID.encode(e.transactionID,t.uint32(18).fork()).ldelim(),null!=e.includeDuplicates&&Object.hasOwnProperty.call(e,"includeDuplicates")&&t.uint32(24).bool(e.includeDuplicates),null!=e.includeChildRecords&&Object.hasOwnProperty.call(e,"includeChildRecords")&&t.uint32(32).bool(e.includeChildRecords),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TransactionGetRecordQuery;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.QueryHeader.decode(e,e.uint32());break;case 2:o.transactionID=$root.proto.TransactionID.decode(e,e.uint32());break;case 3:o.includeDuplicates=e.bool();break;case 4:o.includeChildRecords=e.bool();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TransactionGetRecordQuery"},e}(),e.TransactionGetRecordResponse=function(){function e(e){if(this.duplicateTransactionRecords=[],this.childTransactionRecords=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.transactionRecord=null,e.prototype.duplicateTransactionRecords=$util.emptyArray,e.prototype.childTransactionRecords=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.ResponseHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.transactionRecord&&Object.hasOwnProperty.call(e,"transactionRecord")&&$root.proto.TransactionRecord.encode(e.transactionRecord,t.uint32(26).fork()).ldelim(),null!=e.duplicateTransactionRecords&&e.duplicateTransactionRecords.length)for(var r=0;r<e.duplicateTransactionRecords.length;++r)$root.proto.TransactionRecord.encode(e.duplicateTransactionRecords[r],t.uint32(34).fork()).ldelim();if(null!=e.childTransactionRecords&&e.childTransactionRecords.length)for(r=0;r<e.childTransactionRecords.length;++r)$root.proto.TransactionRecord.encode(e.childTransactionRecords[r],t.uint32(42).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TransactionGetRecordResponse;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.ResponseHeader.decode(e,e.uint32());break;case 3:o.transactionRecord=$root.proto.TransactionRecord.decode(e,e.uint32());break;case 4:o.duplicateTransactionRecords&&o.duplicateTransactionRecords.length||(o.duplicateTransactionRecords=[]),o.duplicateTransactionRecords.push($root.proto.TransactionRecord.decode(e,e.uint32()));break;case 5:o.childTransactionRecords&&o.childTransactionRecords.length||(o.childTransactionRecords=[]),o.childTransactionRecords.push($root.proto.TransactionRecord.decode(e,e.uint32()));break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TransactionGetRecordResponse"},e}(),e.TransactionGetFastRecordQuery=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.transactionID=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.QueryHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.transactionID&&Object.hasOwnProperty.call(e,"transactionID")&&$root.proto.TransactionID.encode(e.transactionID,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TransactionGetFastRecordQuery;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.QueryHeader.decode(e,e.uint32());break;case 2:o.transactionID=$root.proto.TransactionID.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TransactionGetFastRecordQuery"},e}(),e.TransactionGetFastRecordResponse=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.transactionRecord=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.ResponseHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.transactionRecord&&Object.hasOwnProperty.call(e,"transactionRecord")&&$root.proto.TransactionRecord.encode(e.transactionRecord,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TransactionGetFastRecordResponse;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.ResponseHeader.decode(e,e.uint32());break;case 2:o.transactionRecord=$root.proto.TransactionRecord.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TransactionGetFastRecordResponse"},e}(),e.NetworkGetVersionInfoQuery=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.QueryHeader.encode(e.header,t.uint32(10).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.NetworkGetVersionInfoQuery;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.header=$root.proto.QueryHeader.decode(e,e.uint32());else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.NetworkGetVersionInfoQuery"},e}(),e.NetworkGetVersionInfoResponse=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.hapiProtoVersion=null,e.prototype.hederaServicesVersion=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.ResponseHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.hapiProtoVersion&&Object.hasOwnProperty.call(e,"hapiProtoVersion")&&$root.proto.SemanticVersion.encode(e.hapiProtoVersion,t.uint32(18).fork()).ldelim(),null!=e.hederaServicesVersion&&Object.hasOwnProperty.call(e,"hederaServicesVersion")&&$root.proto.SemanticVersion.encode(e.hederaServicesVersion,t.uint32(26).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.NetworkGetVersionInfoResponse;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.ResponseHeader.decode(e,e.uint32());break;case 2:o.hapiProtoVersion=$root.proto.SemanticVersion.decode(e,e.uint32());break;case 3:o.hederaServicesVersion=$root.proto.SemanticVersion.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.NetworkGetVersionInfoResponse"},e}(),e.NetworkGetExecutionTimeQuery=function(){function e(e){if(this.transactionIds=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.transactionIds=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.QueryHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.transactionIds&&e.transactionIds.length)for(var r=0;r<e.transactionIds.length;++r)$root.proto.TransactionID.encode(e.transactionIds[r],t.uint32(18).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.NetworkGetExecutionTimeQuery;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.QueryHeader.decode(e,e.uint32());break;case 2:o.transactionIds&&o.transactionIds.length||(o.transactionIds=[]),o.transactionIds.push($root.proto.TransactionID.decode(e,e.uint32()));break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.NetworkGetExecutionTimeQuery"},e}(),e.NetworkGetExecutionTimeResponse=function(){function e(e){if(this.executionTimes=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.executionTimes=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.ResponseHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.executionTimes&&e.executionTimes.length){t.uint32(18).fork();for(var r=0;r<e.executionTimes.length;++r)t.uint64(e.executionTimes[r]);t.ldelim()}return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.NetworkGetExecutionTimeResponse;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.ResponseHeader.decode(e,e.uint32());break;case 2:if(o.executionTimes&&o.executionTimes.length||(o.executionTimes=[]),2==(7&n))for(var i=e.uint32()+e.pos;e.pos<i;)o.executionTimes.push(e.uint64());else o.executionTimes.push(e.uint64());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.NetworkGetExecutionTimeResponse"},e}(),e.TokenGetInfoQuery=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.token=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.QueryHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.token&&Object.hasOwnProperty.call(e,"token")&&$root.proto.TokenID.encode(e.token,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenGetInfoQuery;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.QueryHeader.decode(e,e.uint32());break;case 2:o.token=$root.proto.TokenID.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenGetInfoQuery"},e}(),e.TokenInfo=function(){function e(e){if(this.customFees=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.tokenId=null,e.prototype.name="",e.prototype.symbol="",e.prototype.decimals=0,e.prototype.totalSupply=$util.Long?$util.Long.fromBits(0,0,!0):0,e.prototype.treasury=null,e.prototype.adminKey=null,e.prototype.kycKey=null,e.prototype.freezeKey=null,e.prototype.wipeKey=null,e.prototype.supplyKey=null,e.prototype.defaultFreezeStatus=0,e.prototype.defaultKycStatus=0,e.prototype.deleted=!1,e.prototype.autoRenewAccount=null,e.prototype.autoRenewPeriod=null,e.prototype.expiry=null,e.prototype.memo="",e.prototype.tokenType=0,e.prototype.supplyType=0,e.prototype.maxSupply=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.feeScheduleKey=null,e.prototype.customFees=$util.emptyArray,e.prototype.pauseKey=null,e.prototype.pauseStatus=0,e.prototype.ledgerId=$util.newBuffer([]),e.prototype.metadata=$util.newBuffer([]),e.prototype.metadataKey=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.tokenId&&Object.hasOwnProperty.call(e,"tokenId")&&$root.proto.TokenID.encode(e.tokenId,t.uint32(10).fork()).ldelim(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(18).string(e.name),null!=e.symbol&&Object.hasOwnProperty.call(e,"symbol")&&t.uint32(26).string(e.symbol),null!=e.decimals&&Object.hasOwnProperty.call(e,"decimals")&&t.uint32(32).uint32(e.decimals),null!=e.totalSupply&&Object.hasOwnProperty.call(e,"totalSupply")&&t.uint32(40).uint64(e.totalSupply),null!=e.treasury&&Object.hasOwnProperty.call(e,"treasury")&&$root.proto.AccountID.encode(e.treasury,t.uint32(50).fork()).ldelim(),null!=e.adminKey&&Object.hasOwnProperty.call(e,"adminKey")&&$root.proto.Key.encode(e.adminKey,t.uint32(58).fork()).ldelim(),null!=e.kycKey&&Object.hasOwnProperty.call(e,"kycKey")&&$root.proto.Key.encode(e.kycKey,t.uint32(66).fork()).ldelim(),null!=e.freezeKey&&Object.hasOwnProperty.call(e,"freezeKey")&&$root.proto.Key.encode(e.freezeKey,t.uint32(74).fork()).ldelim(),null!=e.wipeKey&&Object.hasOwnProperty.call(e,"wipeKey")&&$root.proto.Key.encode(e.wipeKey,t.uint32(82).fork()).ldelim(),null!=e.supplyKey&&Object.hasOwnProperty.call(e,"supplyKey")&&$root.proto.Key.encode(e.supplyKey,t.uint32(90).fork()).ldelim(),null!=e.defaultFreezeStatus&&Object.hasOwnProperty.call(e,"defaultFreezeStatus")&&t.uint32(96).int32(e.defaultFreezeStatus),null!=e.defaultKycStatus&&Object.hasOwnProperty.call(e,"defaultKycStatus")&&t.uint32(104).int32(e.defaultKycStatus),null!=e.deleted&&Object.hasOwnProperty.call(e,"deleted")&&t.uint32(112).bool(e.deleted),null!=e.autoRenewAccount&&Object.hasOwnProperty.call(e,"autoRenewAccount")&&$root.proto.AccountID.encode(e.autoRenewAccount,t.uint32(122).fork()).ldelim(),null!=e.autoRenewPeriod&&Object.hasOwnProperty.call(e,"autoRenewPeriod")&&$root.proto.Duration.encode(e.autoRenewPeriod,t.uint32(130).fork()).ldelim(),null!=e.expiry&&Object.hasOwnProperty.call(e,"expiry")&&$root.proto.Timestamp.encode(e.expiry,t.uint32(138).fork()).ldelim(),null!=e.memo&&Object.hasOwnProperty.call(e,"memo")&&t.uint32(146).string(e.memo),null!=e.tokenType&&Object.hasOwnProperty.call(e,"tokenType")&&t.uint32(152).int32(e.tokenType),null!=e.supplyType&&Object.hasOwnProperty.call(e,"supplyType")&&t.uint32(160).int32(e.supplyType),null!=e.maxSupply&&Object.hasOwnProperty.call(e,"maxSupply")&&t.uint32(168).int64(e.maxSupply),null!=e.feeScheduleKey&&Object.hasOwnProperty.call(e,"feeScheduleKey")&&$root.proto.Key.encode(e.feeScheduleKey,t.uint32(178).fork()).ldelim(),null!=e.customFees&&e.customFees.length)for(var r=0;r<e.customFees.length;++r)$root.proto.CustomFee.encode(e.customFees[r],t.uint32(186).fork()).ldelim();return null!=e.pauseKey&&Object.hasOwnProperty.call(e,"pauseKey")&&$root.proto.Key.encode(e.pauseKey,t.uint32(194).fork()).ldelim(),null!=e.pauseStatus&&Object.hasOwnProperty.call(e,"pauseStatus")&&t.uint32(200).int32(e.pauseStatus),null!=e.ledgerId&&Object.hasOwnProperty.call(e,"ledgerId")&&t.uint32(210).bytes(e.ledgerId),null!=e.metadata&&Object.hasOwnProperty.call(e,"metadata")&&t.uint32(218).bytes(e.metadata),null!=e.metadataKey&&Object.hasOwnProperty.call(e,"metadataKey")&&$root.proto.Key.encode(e.metadataKey,t.uint32(226).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenInfo;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.tokenId=$root.proto.TokenID.decode(e,e.uint32());break;case 2:o.name=e.string();break;case 3:o.symbol=e.string();break;case 4:o.decimals=e.uint32();break;case 5:o.totalSupply=e.uint64();break;case 6:o.treasury=$root.proto.AccountID.decode(e,e.uint32());break;case 7:o.adminKey=$root.proto.Key.decode(e,e.uint32());break;case 8:o.kycKey=$root.proto.Key.decode(e,e.uint32());break;case 9:o.freezeKey=$root.proto.Key.decode(e,e.uint32());break;case 10:o.wipeKey=$root.proto.Key.decode(e,e.uint32());break;case 11:o.supplyKey=$root.proto.Key.decode(e,e.uint32());break;case 12:o.defaultFreezeStatus=e.int32();break;case 13:o.defaultKycStatus=e.int32();break;case 14:o.deleted=e.bool();break;case 15:o.autoRenewAccount=$root.proto.AccountID.decode(e,e.uint32());break;case 16:o.autoRenewPeriod=$root.proto.Duration.decode(e,e.uint32());break;case 17:o.expiry=$root.proto.Timestamp.decode(e,e.uint32());break;case 18:o.memo=e.string();break;case 19:o.tokenType=e.int32();break;case 20:o.supplyType=e.int32();break;case 21:o.maxSupply=e.int64();break;case 22:o.feeScheduleKey=$root.proto.Key.decode(e,e.uint32());break;case 23:o.customFees&&o.customFees.length||(o.customFees=[]),o.customFees.push($root.proto.CustomFee.decode(e,e.uint32()));break;case 24:o.pauseKey=$root.proto.Key.decode(e,e.uint32());break;case 25:o.pauseStatus=e.int32();break;case 26:o.ledgerId=e.bytes();break;case 27:o.metadata=e.bytes();break;case 28:o.metadataKey=$root.proto.Key.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenInfo"},e}(),e.TokenGetInfoResponse=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.tokenInfo=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.ResponseHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.tokenInfo&&Object.hasOwnProperty.call(e,"tokenInfo")&&$root.proto.TokenInfo.encode(e.tokenInfo,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenGetInfoResponse;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.ResponseHeader.decode(e,e.uint32());break;case 2:o.tokenInfo=$root.proto.TokenInfo.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenGetInfoResponse"},e}(),e.ScheduleGetInfoQuery=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.scheduleID=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.QueryHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.scheduleID&&Object.hasOwnProperty.call(e,"scheduleID")&&$root.proto.ScheduleID.encode(e.scheduleID,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ScheduleGetInfoQuery;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.QueryHeader.decode(e,e.uint32());break;case 2:o.scheduleID=$root.proto.ScheduleID.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ScheduleGetInfoQuery"},e}(),e.ScheduleInfo=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.scheduleID=null,e.prototype.deletionTime=null,e.prototype.executionTime=null,e.prototype.expirationTime=null,e.prototype.scheduledTransactionBody=null,e.prototype.memo="",e.prototype.adminKey=null,e.prototype.signers=null,e.prototype.creatorAccountID=null,e.prototype.payerAccountID=null,e.prototype.scheduledTransactionID=null,e.prototype.ledgerId=$util.newBuffer([]),e.prototype.waitForExpiry=!1,Object.defineProperty(e.prototype,"data",{get:$util.oneOfGetter(t=["deletionTime","executionTime"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.scheduleID&&Object.hasOwnProperty.call(e,"scheduleID")&&$root.proto.ScheduleID.encode(e.scheduleID,t.uint32(10).fork()).ldelim(),null!=e.deletionTime&&Object.hasOwnProperty.call(e,"deletionTime")&&$root.proto.Timestamp.encode(e.deletionTime,t.uint32(18).fork()).ldelim(),null!=e.executionTime&&Object.hasOwnProperty.call(e,"executionTime")&&$root.proto.Timestamp.encode(e.executionTime,t.uint32(26).fork()).ldelim(),null!=e.expirationTime&&Object.hasOwnProperty.call(e,"expirationTime")&&$root.proto.Timestamp.encode(e.expirationTime,t.uint32(34).fork()).ldelim(),null!=e.scheduledTransactionBody&&Object.hasOwnProperty.call(e,"scheduledTransactionBody")&&$root.proto.SchedulableTransactionBody.encode(e.scheduledTransactionBody,t.uint32(42).fork()).ldelim(),null!=e.memo&&Object.hasOwnProperty.call(e,"memo")&&t.uint32(50).string(e.memo),null!=e.adminKey&&Object.hasOwnProperty.call(e,"adminKey")&&$root.proto.Key.encode(e.adminKey,t.uint32(58).fork()).ldelim(),null!=e.signers&&Object.hasOwnProperty.call(e,"signers")&&$root.proto.KeyList.encode(e.signers,t.uint32(66).fork()).ldelim(),null!=e.creatorAccountID&&Object.hasOwnProperty.call(e,"creatorAccountID")&&$root.proto.AccountID.encode(e.creatorAccountID,t.uint32(74).fork()).ldelim(),null!=e.payerAccountID&&Object.hasOwnProperty.call(e,"payerAccountID")&&$root.proto.AccountID.encode(e.payerAccountID,t.uint32(82).fork()).ldelim(),null!=e.scheduledTransactionID&&Object.hasOwnProperty.call(e,"scheduledTransactionID")&&$root.proto.TransactionID.encode(e.scheduledTransactionID,t.uint32(90).fork()).ldelim(),null!=e.ledgerId&&Object.hasOwnProperty.call(e,"ledgerId")&&t.uint32(98).bytes(e.ledgerId),null!=e.waitForExpiry&&Object.hasOwnProperty.call(e,"waitForExpiry")&&t.uint32(104).bool(e.waitForExpiry),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ScheduleInfo;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.scheduleID=$root.proto.ScheduleID.decode(e,e.uint32());break;case 2:o.deletionTime=$root.proto.Timestamp.decode(e,e.uint32());break;case 3:o.executionTime=$root.proto.Timestamp.decode(e,e.uint32());break;case 4:o.expirationTime=$root.proto.Timestamp.decode(e,e.uint32());break;case 5:o.scheduledTransactionBody=$root.proto.SchedulableTransactionBody.decode(e,e.uint32());break;case 6:o.memo=e.string();break;case 7:o.adminKey=$root.proto.Key.decode(e,e.uint32());break;case 8:o.signers=$root.proto.KeyList.decode(e,e.uint32());break;case 9:o.creatorAccountID=$root.proto.AccountID.decode(e,e.uint32());break;case 10:o.payerAccountID=$root.proto.AccountID.decode(e,e.uint32());break;case 11:o.scheduledTransactionID=$root.proto.TransactionID.decode(e,e.uint32());break;case 12:o.ledgerId=e.bytes();break;case 13:o.waitForExpiry=e.bool();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ScheduleInfo"},e}(),e.ScheduleGetInfoResponse=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.scheduleInfo=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.ResponseHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.scheduleInfo&&Object.hasOwnProperty.call(e,"scheduleInfo")&&$root.proto.ScheduleInfo.encode(e.scheduleInfo,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ScheduleGetInfoResponse;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.ResponseHeader.decode(e,e.uint32());break;case 2:o.scheduleInfo=$root.proto.ScheduleInfo.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ScheduleGetInfoResponse"},e}(),e.TokenGetAccountNftInfosQuery=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.accountID=null,e.prototype.start=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.end=$util.Long?$util.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.QueryHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.accountID&&Object.hasOwnProperty.call(e,"accountID")&&$root.proto.AccountID.encode(e.accountID,t.uint32(18).fork()).ldelim(),null!=e.start&&Object.hasOwnProperty.call(e,"start")&&t.uint32(24).int64(e.start),null!=e.end&&Object.hasOwnProperty.call(e,"end")&&t.uint32(32).int64(e.end),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenGetAccountNftInfosQuery;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.QueryHeader.decode(e,e.uint32());break;case 2:o.accountID=$root.proto.AccountID.decode(e,e.uint32());break;case 3:o.start=e.int64();break;case 4:o.end=e.int64();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenGetAccountNftInfosQuery"},e}(),e.TokenGetAccountNftInfosResponse=function(){function e(e){if(this.nfts=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.nfts=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.ResponseHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.nfts&&e.nfts.length)for(var r=0;r<e.nfts.length;++r)$root.proto.TokenNftInfo.encode(e.nfts[r],t.uint32(18).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenGetAccountNftInfosResponse;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.ResponseHeader.decode(e,e.uint32());break;case 2:o.nfts&&o.nfts.length||(o.nfts=[]),o.nfts.push($root.proto.TokenNftInfo.decode(e,e.uint32()));break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenGetAccountNftInfosResponse"},e}(),e.TokenGetNftInfoQuery=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.nftID=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.QueryHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.nftID&&Object.hasOwnProperty.call(e,"nftID")&&$root.proto.NftID.encode(e.nftID,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenGetNftInfoQuery;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.QueryHeader.decode(e,e.uint32());break;case 2:o.nftID=$root.proto.NftID.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenGetNftInfoQuery"},e}(),e.TokenNftInfo=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.nftID=null,e.prototype.accountID=null,e.prototype.creationTime=null,e.prototype.metadata=$util.newBuffer([]),e.prototype.ledgerId=$util.newBuffer([]),e.prototype.spenderId=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.nftID&&Object.hasOwnProperty.call(e,"nftID")&&$root.proto.NftID.encode(e.nftID,t.uint32(10).fork()).ldelim(),null!=e.accountID&&Object.hasOwnProperty.call(e,"accountID")&&$root.proto.AccountID.encode(e.accountID,t.uint32(18).fork()).ldelim(),null!=e.creationTime&&Object.hasOwnProperty.call(e,"creationTime")&&$root.proto.Timestamp.encode(e.creationTime,t.uint32(26).fork()).ldelim(),null!=e.metadata&&Object.hasOwnProperty.call(e,"metadata")&&t.uint32(34).bytes(e.metadata),null!=e.ledgerId&&Object.hasOwnProperty.call(e,"ledgerId")&&t.uint32(42).bytes(e.ledgerId),null!=e.spenderId&&Object.hasOwnProperty.call(e,"spenderId")&&$root.proto.AccountID.encode(e.spenderId,t.uint32(50).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenNftInfo;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.nftID=$root.proto.NftID.decode(e,e.uint32());break;case 2:o.accountID=$root.proto.AccountID.decode(e,e.uint32());break;case 3:o.creationTime=$root.proto.Timestamp.decode(e,e.uint32());break;case 4:o.metadata=e.bytes();break;case 5:o.ledgerId=e.bytes();break;case 6:o.spenderId=$root.proto.AccountID.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenNftInfo"},e}(),e.TokenGetNftInfoResponse=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.nft=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.ResponseHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.nft&&Object.hasOwnProperty.call(e,"nft")&&$root.proto.TokenNftInfo.encode(e.nft,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenGetNftInfoResponse;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.ResponseHeader.decode(e,e.uint32());break;case 2:o.nft=$root.proto.TokenNftInfo.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenGetNftInfoResponse"},e}(),e.TokenGetNftInfosQuery=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.tokenID=null,e.prototype.start=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.end=$util.Long?$util.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.QueryHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.tokenID&&Object.hasOwnProperty.call(e,"tokenID")&&$root.proto.TokenID.encode(e.tokenID,t.uint32(18).fork()).ldelim(),null!=e.start&&Object.hasOwnProperty.call(e,"start")&&t.uint32(24).int64(e.start),null!=e.end&&Object.hasOwnProperty.call(e,"end")&&t.uint32(32).int64(e.end),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenGetNftInfosQuery;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.QueryHeader.decode(e,e.uint32());break;case 2:o.tokenID=$root.proto.TokenID.decode(e,e.uint32());break;case 3:o.start=e.int64();break;case 4:o.end=e.int64();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenGetNftInfosQuery"},e}(),e.TokenGetNftInfosResponse=function(){function e(e){if(this.nfts=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.tokenID=null,e.prototype.nfts=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.ResponseHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.tokenID&&Object.hasOwnProperty.call(e,"tokenID")&&$root.proto.TokenID.encode(e.tokenID,t.uint32(18).fork()).ldelim(),null!=e.nfts&&e.nfts.length)for(var r=0;r<e.nfts.length;++r)$root.proto.TokenNftInfo.encode(e.nfts[r],t.uint32(26).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenGetNftInfosResponse;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.ResponseHeader.decode(e,e.uint32());break;case 2:o.tokenID=$root.proto.TokenID.decode(e,e.uint32());break;case 3:o.nfts&&o.nfts.length||(o.nfts=[]),o.nfts.push($root.proto.TokenNftInfo.decode(e,e.uint32()));break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenGetNftInfosResponse"},e}(),e.GetAccountDetailsQuery=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.accountId=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.QueryHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.accountId&&Object.hasOwnProperty.call(e,"accountId")&&$root.proto.AccountID.encode(e.accountId,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.GetAccountDetailsQuery;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.QueryHeader.decode(e,e.uint32());break;case 2:o.accountId=$root.proto.AccountID.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.GetAccountDetailsQuery"},e}(),e.GetAccountDetailsResponse=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.accountDetails=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.ResponseHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.accountDetails&&Object.hasOwnProperty.call(e,"accountDetails")&&$root.proto.GetAccountDetailsResponse.AccountDetails.encode(e.accountDetails,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.GetAccountDetailsResponse;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.ResponseHeader.decode(e,e.uint32());break;case 2:o.accountDetails=$root.proto.GetAccountDetailsResponse.AccountDetails.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.GetAccountDetailsResponse"},e.AccountDetails=function(){function e(e){if(this.tokenRelationships=[],this.grantedCryptoAllowances=[],this.grantedNftAllowances=[],this.grantedTokenAllowances=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.accountId=null,e.prototype.contractAccountId="",e.prototype.deleted=!1,e.prototype.proxyAccountId=null,e.prototype.proxyReceived=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.key=null,e.prototype.balance=$util.Long?$util.Long.fromBits(0,0,!0):0,e.prototype.receiverSigRequired=!1,e.prototype.expirationTime=null,e.prototype.autoRenewPeriod=null,e.prototype.tokenRelationships=$util.emptyArray,e.prototype.memo="",e.prototype.ownedNfts=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.maxAutomaticTokenAssociations=0,e.prototype.alias=$util.newBuffer([]),e.prototype.ledgerId=$util.newBuffer([]),e.prototype.grantedCryptoAllowances=$util.emptyArray,e.prototype.grantedNftAllowances=$util.emptyArray,e.prototype.grantedTokenAllowances=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.accountId&&Object.hasOwnProperty.call(e,"accountId")&&$root.proto.AccountID.encode(e.accountId,t.uint32(10).fork()).ldelim(),null!=e.contractAccountId&&Object.hasOwnProperty.call(e,"contractAccountId")&&t.uint32(18).string(e.contractAccountId),null!=e.deleted&&Object.hasOwnProperty.call(e,"deleted")&&t.uint32(24).bool(e.deleted),null!=e.proxyAccountId&&Object.hasOwnProperty.call(e,"proxyAccountId")&&$root.proto.AccountID.encode(e.proxyAccountId,t.uint32(34).fork()).ldelim(),null!=e.proxyReceived&&Object.hasOwnProperty.call(e,"proxyReceived")&&t.uint32(40).int64(e.proxyReceived),null!=e.key&&Object.hasOwnProperty.call(e,"key")&&$root.proto.Key.encode(e.key,t.uint32(50).fork()).ldelim(),null!=e.balance&&Object.hasOwnProperty.call(e,"balance")&&t.uint32(56).uint64(e.balance),null!=e.receiverSigRequired&&Object.hasOwnProperty.call(e,"receiverSigRequired")&&t.uint32(64).bool(e.receiverSigRequired),null!=e.expirationTime&&Object.hasOwnProperty.call(e,"expirationTime")&&$root.proto.Timestamp.encode(e.expirationTime,t.uint32(74).fork()).ldelim(),null!=e.autoRenewPeriod&&Object.hasOwnProperty.call(e,"autoRenewPeriod")&&$root.proto.Duration.encode(e.autoRenewPeriod,t.uint32(82).fork()).ldelim(),null!=e.tokenRelationships&&e.tokenRelationships.length)for(var r=0;r<e.tokenRelationships.length;++r)$root.proto.TokenRelationship.encode(e.tokenRelationships[r],t.uint32(90).fork()).ldelim();if(null!=e.memo&&Object.hasOwnProperty.call(e,"memo")&&t.uint32(98).string(e.memo),null!=e.ownedNfts&&Object.hasOwnProperty.call(e,"ownedNfts")&&t.uint32(104).int64(e.ownedNfts),null!=e.maxAutomaticTokenAssociations&&Object.hasOwnProperty.call(e,"maxAutomaticTokenAssociations")&&t.uint32(112).int32(e.maxAutomaticTokenAssociations),null!=e.alias&&Object.hasOwnProperty.call(e,"alias")&&t.uint32(122).bytes(e.alias),null!=e.ledgerId&&Object.hasOwnProperty.call(e,"ledgerId")&&t.uint32(130).bytes(e.ledgerId),null!=e.grantedCryptoAllowances&&e.grantedCryptoAllowances.length)for(r=0;r<e.grantedCryptoAllowances.length;++r)$root.proto.GrantedCryptoAllowance.encode(e.grantedCryptoAllowances[r],t.uint32(138).fork()).ldelim();if(null!=e.grantedNftAllowances&&e.grantedNftAllowances.length)for(r=0;r<e.grantedNftAllowances.length;++r)$root.proto.GrantedNftAllowance.encode(e.grantedNftAllowances[r],t.uint32(146).fork()).ldelim();if(null!=e.grantedTokenAllowances&&e.grantedTokenAllowances.length)for(r=0;r<e.grantedTokenAllowances.length;++r)$root.proto.GrantedTokenAllowance.encode(e.grantedTokenAllowances[r],t.uint32(154).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.GetAccountDetailsResponse.AccountDetails;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.accountId=$root.proto.AccountID.decode(e,e.uint32());break;case 2:o.contractAccountId=e.string();break;case 3:o.deleted=e.bool();break;case 4:o.proxyAccountId=$root.proto.AccountID.decode(e,e.uint32());break;case 5:o.proxyReceived=e.int64();break;case 6:o.key=$root.proto.Key.decode(e,e.uint32());break;case 7:o.balance=e.uint64();break;case 8:o.receiverSigRequired=e.bool();break;case 9:o.expirationTime=$root.proto.Timestamp.decode(e,e.uint32());break;case 10:o.autoRenewPeriod=$root.proto.Duration.decode(e,e.uint32());break;case 11:o.tokenRelationships&&o.tokenRelationships.length||(o.tokenRelationships=[]),o.tokenRelationships.push($root.proto.TokenRelationship.decode(e,e.uint32()));break;case 12:o.memo=e.string();break;case 13:o.ownedNfts=e.int64();break;case 14:o.maxAutomaticTokenAssociations=e.int32();break;case 15:o.alias=e.bytes();break;case 16:o.ledgerId=e.bytes();break;case 17:o.grantedCryptoAllowances&&o.grantedCryptoAllowances.length||(o.grantedCryptoAllowances=[]),o.grantedCryptoAllowances.push($root.proto.GrantedCryptoAllowance.decode(e,e.uint32()));break;case 18:o.grantedNftAllowances&&o.grantedNftAllowances.length||(o.grantedNftAllowances=[]),o.grantedNftAllowances.push($root.proto.GrantedNftAllowance.decode(e,e.uint32()));break;case 19:o.grantedTokenAllowances&&o.grantedTokenAllowances.length||(o.grantedTokenAllowances=[]),o.grantedTokenAllowances.push($root.proto.GrantedTokenAllowance.decode(e,e.uint32()));break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.GetAccountDetailsResponse.AccountDetails"},e}(),e}(),e.GrantedCryptoAllowance=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.spender=null,e.prototype.amount=$util.Long?$util.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.spender&&Object.hasOwnProperty.call(e,"spender")&&$root.proto.AccountID.encode(e.spender,t.uint32(10).fork()).ldelim(),null!=e.amount&&Object.hasOwnProperty.call(e,"amount")&&t.uint32(16).int64(e.amount),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.GrantedCryptoAllowance;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.spender=$root.proto.AccountID.decode(e,e.uint32());break;case 2:o.amount=e.int64();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.GrantedCryptoAllowance"},e}(),e.GrantedNftAllowance=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.tokenId=null,e.prototype.spender=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.tokenId&&Object.hasOwnProperty.call(e,"tokenId")&&$root.proto.TokenID.encode(e.tokenId,t.uint32(10).fork()).ldelim(),null!=e.spender&&Object.hasOwnProperty.call(e,"spender")&&$root.proto.AccountID.encode(e.spender,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.GrantedNftAllowance;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.tokenId=$root.proto.TokenID.decode(e,e.uint32());break;case 2:o.spender=$root.proto.AccountID.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.GrantedNftAllowance"},e}(),e.GrantedTokenAllowance=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.tokenId=null,e.prototype.spender=null,e.prototype.amount=$util.Long?$util.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.tokenId&&Object.hasOwnProperty.call(e,"tokenId")&&$root.proto.TokenID.encode(e.tokenId,t.uint32(10).fork()).ldelim(),null!=e.spender&&Object.hasOwnProperty.call(e,"spender")&&$root.proto.AccountID.encode(e.spender,t.uint32(18).fork()).ldelim(),null!=e.amount&&Object.hasOwnProperty.call(e,"amount")&&t.uint32(24).int64(e.amount),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.GrantedTokenAllowance;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.tokenId=$root.proto.TokenID.decode(e,e.uint32());break;case 2:o.spender=$root.proto.AccountID.decode(e,e.uint32());break;case 3:o.amount=e.int64();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.GrantedTokenAllowance"},e}(),e.Response=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.getByKey=null,e.prototype.getBySolidityID=null,e.prototype.contractCallLocal=null,e.prototype.contractGetBytecodeResponse=null,e.prototype.contractGetInfo=null,e.prototype.contractGetRecordsResponse=null,e.prototype.cryptogetAccountBalance=null,e.prototype.cryptoGetAccountRecords=null,e.prototype.cryptoGetInfo=null,e.prototype.cryptoGetLiveHash=null,e.prototype.cryptoGetProxyStakers=null,e.prototype.fileGetContents=null,e.prototype.fileGetInfo=null,e.prototype.transactionGetReceipt=null,e.prototype.transactionGetRecord=null,e.prototype.transactionGetFastRecord=null,e.prototype.consensusGetTopicInfo=null,e.prototype.networkGetVersionInfo=null,e.prototype.tokenGetInfo=null,e.prototype.scheduleGetInfo=null,e.prototype.tokenGetAccountNftInfos=null,e.prototype.tokenGetNftInfo=null,e.prototype.tokenGetNftInfos=null,e.prototype.networkGetExecutionTime=null,e.prototype.accountDetails=null,Object.defineProperty(e.prototype,"response",{get:$util.oneOfGetter(t=["getByKey","getBySolidityID","contractCallLocal","contractGetBytecodeResponse","contractGetInfo","contractGetRecordsResponse","cryptogetAccountBalance","cryptoGetAccountRecords","cryptoGetInfo","cryptoGetLiveHash","cryptoGetProxyStakers","fileGetContents","fileGetInfo","transactionGetReceipt","transactionGetRecord","transactionGetFastRecord","consensusGetTopicInfo","networkGetVersionInfo","tokenGetInfo","scheduleGetInfo","tokenGetAccountNftInfos","tokenGetNftInfo","tokenGetNftInfos","networkGetExecutionTime","accountDetails"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.getByKey&&Object.hasOwnProperty.call(e,"getByKey")&&$root.proto.GetByKeyResponse.encode(e.getByKey,t.uint32(10).fork()).ldelim(),null!=e.getBySolidityID&&Object.hasOwnProperty.call(e,"getBySolidityID")&&$root.proto.GetBySolidityIDResponse.encode(e.getBySolidityID,t.uint32(18).fork()).ldelim(),null!=e.contractCallLocal&&Object.hasOwnProperty.call(e,"contractCallLocal")&&$root.proto.ContractCallLocalResponse.encode(e.contractCallLocal,t.uint32(26).fork()).ldelim(),null!=e.contractGetInfo&&Object.hasOwnProperty.call(e,"contractGetInfo")&&$root.proto.ContractGetInfoResponse.encode(e.contractGetInfo,t.uint32(34).fork()).ldelim(),null!=e.contractGetBytecodeResponse&&Object.hasOwnProperty.call(e,"contractGetBytecodeResponse")&&$root.proto.ContractGetBytecodeResponse.encode(e.contractGetBytecodeResponse,t.uint32(42).fork()).ldelim(),null!=e.contractGetRecordsResponse&&Object.hasOwnProperty.call(e,"contractGetRecordsResponse")&&$root.proto.ContractGetRecordsResponse.encode(e.contractGetRecordsResponse,t.uint32(50).fork()).ldelim(),null!=e.cryptogetAccountBalance&&Object.hasOwnProperty.call(e,"cryptogetAccountBalance")&&$root.proto.CryptoGetAccountBalanceResponse.encode(e.cryptogetAccountBalance,t.uint32(58).fork()).ldelim(),null!=e.cryptoGetAccountRecords&&Object.hasOwnProperty.call(e,"cryptoGetAccountRecords")&&$root.proto.CryptoGetAccountRecordsResponse.encode(e.cryptoGetAccountRecords,t.uint32(66).fork()).ldelim(),null!=e.cryptoGetInfo&&Object.hasOwnProperty.call(e,"cryptoGetInfo")&&$root.proto.CryptoGetInfoResponse.encode(e.cryptoGetInfo,t.uint32(74).fork()).ldelim(),null!=e.cryptoGetLiveHash&&Object.hasOwnProperty.call(e,"cryptoGetLiveHash")&&$root.proto.CryptoGetLiveHashResponse.encode(e.cryptoGetLiveHash,t.uint32(82).fork()).ldelim(),null!=e.cryptoGetProxyStakers&&Object.hasOwnProperty.call(e,"cryptoGetProxyStakers")&&$root.proto.CryptoGetStakersResponse.encode(e.cryptoGetProxyStakers,t.uint32(90).fork()).ldelim(),null!=e.fileGetContents&&Object.hasOwnProperty.call(e,"fileGetContents")&&$root.proto.FileGetContentsResponse.encode(e.fileGetContents,t.uint32(98).fork()).ldelim(),null!=e.fileGetInfo&&Object.hasOwnProperty.call(e,"fileGetInfo")&&$root.proto.FileGetInfoResponse.encode(e.fileGetInfo,t.uint32(106).fork()).ldelim(),null!=e.transactionGetReceipt&&Object.hasOwnProperty.call(e,"transactionGetReceipt")&&$root.proto.TransactionGetReceiptResponse.encode(e.transactionGetReceipt,t.uint32(114).fork()).ldelim(),null!=e.transactionGetRecord&&Object.hasOwnProperty.call(e,"transactionGetRecord")&&$root.proto.TransactionGetRecordResponse.encode(e.transactionGetRecord,t.uint32(122).fork()).ldelim(),null!=e.transactionGetFastRecord&&Object.hasOwnProperty.call(e,"transactionGetFastRecord")&&$root.proto.TransactionGetFastRecordResponse.encode(e.transactionGetFastRecord,t.uint32(130).fork()).ldelim(),null!=e.consensusGetTopicInfo&&Object.hasOwnProperty.call(e,"consensusGetTopicInfo")&&$root.proto.ConsensusGetTopicInfoResponse.encode(e.consensusGetTopicInfo,t.uint32(1202).fork()).ldelim(),null!=e.networkGetVersionInfo&&Object.hasOwnProperty.call(e,"networkGetVersionInfo")&&$root.proto.NetworkGetVersionInfoResponse.encode(e.networkGetVersionInfo,t.uint32(1210).fork()).ldelim(),null!=e.tokenGetInfo&&Object.hasOwnProperty.call(e,"tokenGetInfo")&&$root.proto.TokenGetInfoResponse.encode(e.tokenGetInfo,t.uint32(1218).fork()).ldelim(),null!=e.scheduleGetInfo&&Object.hasOwnProperty.call(e,"scheduleGetInfo")&&$root.proto.ScheduleGetInfoResponse.encode(e.scheduleGetInfo,t.uint32(1226).fork()).ldelim(),null!=e.tokenGetAccountNftInfos&&Object.hasOwnProperty.call(e,"tokenGetAccountNftInfos")&&$root.proto.TokenGetAccountNftInfosResponse.encode(e.tokenGetAccountNftInfos,t.uint32(1234).fork()).ldelim(),null!=e.tokenGetNftInfo&&Object.hasOwnProperty.call(e,"tokenGetNftInfo")&&$root.proto.TokenGetNftInfoResponse.encode(e.tokenGetNftInfo,t.uint32(1242).fork()).ldelim(),null!=e.tokenGetNftInfos&&Object.hasOwnProperty.call(e,"tokenGetNftInfos")&&$root.proto.TokenGetNftInfosResponse.encode(e.tokenGetNftInfos,t.uint32(1250).fork()).ldelim(),null!=e.networkGetExecutionTime&&Object.hasOwnProperty.call(e,"networkGetExecutionTime")&&$root.proto.NetworkGetExecutionTimeResponse.encode(e.networkGetExecutionTime,t.uint32(1258).fork()).ldelim(),null!=e.accountDetails&&Object.hasOwnProperty.call(e,"accountDetails")&&$root.proto.GetAccountDetailsResponse.encode(e.accountDetails,t.uint32(1266).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.Response;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.getByKey=$root.proto.GetByKeyResponse.decode(e,e.uint32());break;case 2:o.getBySolidityID=$root.proto.GetBySolidityIDResponse.decode(e,e.uint32());break;case 3:o.contractCallLocal=$root.proto.ContractCallLocalResponse.decode(e,e.uint32());break;case 5:o.contractGetBytecodeResponse=$root.proto.ContractGetBytecodeResponse.decode(e,e.uint32());break;case 4:o.contractGetInfo=$root.proto.ContractGetInfoResponse.decode(e,e.uint32());break;case 6:o.contractGetRecordsResponse=$root.proto.ContractGetRecordsResponse.decode(e,e.uint32());break;case 7:o.cryptogetAccountBalance=$root.proto.CryptoGetAccountBalanceResponse.decode(e,e.uint32());break;case 8:o.cryptoGetAccountRecords=$root.proto.CryptoGetAccountRecordsResponse.decode(e,e.uint32());break;case 9:o.cryptoGetInfo=$root.proto.CryptoGetInfoResponse.decode(e,e.uint32());break;case 10:o.cryptoGetLiveHash=$root.proto.CryptoGetLiveHashResponse.decode(e,e.uint32());break;case 11:o.cryptoGetProxyStakers=$root.proto.CryptoGetStakersResponse.decode(e,e.uint32());break;case 12:o.fileGetContents=$root.proto.FileGetContentsResponse.decode(e,e.uint32());break;case 13:o.fileGetInfo=$root.proto.FileGetInfoResponse.decode(e,e.uint32());break;case 14:o.transactionGetReceipt=$root.proto.TransactionGetReceiptResponse.decode(e,e.uint32());break;case 15:o.transactionGetRecord=$root.proto.TransactionGetRecordResponse.decode(e,e.uint32());break;case 16:o.transactionGetFastRecord=$root.proto.TransactionGetFastRecordResponse.decode(e,e.uint32());break;case 150:o.consensusGetTopicInfo=$root.proto.ConsensusGetTopicInfoResponse.decode(e,e.uint32());break;case 151:o.networkGetVersionInfo=$root.proto.NetworkGetVersionInfoResponse.decode(e,e.uint32());break;case 152:o.tokenGetInfo=$root.proto.TokenGetInfoResponse.decode(e,e.uint32());break;case 153:o.scheduleGetInfo=$root.proto.ScheduleGetInfoResponse.decode(e,e.uint32());break;case 154:o.tokenGetAccountNftInfos=$root.proto.TokenGetAccountNftInfosResponse.decode(e,e.uint32());break;case 155:o.tokenGetNftInfo=$root.proto.TokenGetNftInfoResponse.decode(e,e.uint32());break;case 156:o.tokenGetNftInfos=$root.proto.TokenGetNftInfosResponse.decode(e,e.uint32());break;case 157:o.networkGetExecutionTime=$root.proto.NetworkGetExecutionTimeResponse.decode(e,e.uint32());break;case 158:o.accountDetails=$root.proto.GetAccountDetailsResponse.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.Response"},e}(),e.CryptoService=function(){function e(e,t,r){$protobuf$1.rpc.Service.call(this,e,t,r)}return(e.prototype=Object.create($protobuf$1.rpc.Service.prototype)).constructor=e,e.create=function(e,t,r){return new this(e,t,r)},Object.defineProperty(e.prototype.createAccount=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"createAccount"}),Object.defineProperty(e.prototype.updateAccount=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"updateAccount"}),Object.defineProperty(e.prototype.cryptoTransfer=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"cryptoTransfer"}),Object.defineProperty(e.prototype.cryptoDelete=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"cryptoDelete"}),Object.defineProperty(e.prototype.approveAllowances=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"approveAllowances"}),Object.defineProperty(e.prototype.deleteAllowances=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"deleteAllowances"}),Object.defineProperty(e.prototype.addLiveHash=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"addLiveHash"}),Object.defineProperty(e.prototype.deleteLiveHash=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"deleteLiveHash"}),Object.defineProperty(e.prototype.getLiveHash=function e(t,r){return this.rpcCall(e,$root.proto.Query,$root.proto.Response,t,r)},"name",{value:"getLiveHash"}),Object.defineProperty(e.prototype.getAccountRecords=function e(t,r){return this.rpcCall(e,$root.proto.Query,$root.proto.Response,t,r)},"name",{value:"getAccountRecords"}),Object.defineProperty(e.prototype.cryptoGetBalance=function e(t,r){return this.rpcCall(e,$root.proto.Query,$root.proto.Response,t,r)},"name",{value:"cryptoGetBalance"}),Object.defineProperty(e.prototype.getAccountInfo=function e(t,r){return this.rpcCall(e,$root.proto.Query,$root.proto.Response,t,r)},"name",{value:"getAccountInfo"}),Object.defineProperty(e.prototype.getTransactionReceipts=function e(t,r){return this.rpcCall(e,$root.proto.Query,$root.proto.Response,t,r)},"name",{value:"getTransactionReceipts"}),Object.defineProperty(e.prototype.getTxRecordByTxID=function e(t,r){return this.rpcCall(e,$root.proto.Query,$root.proto.Response,t,r)},"name",{value:"getTxRecordByTxID"}),e}(),e.FileService=function(){function e(e,t,r){$protobuf$1.rpc.Service.call(this,e,t,r)}return(e.prototype=Object.create($protobuf$1.rpc.Service.prototype)).constructor=e,e.create=function(e,t,r){return new this(e,t,r)},Object.defineProperty(e.prototype.createFile=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"createFile"}),Object.defineProperty(e.prototype.updateFile=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"updateFile"}),Object.defineProperty(e.prototype.deleteFile=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"deleteFile"}),Object.defineProperty(e.prototype.appendContent=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"appendContent"}),Object.defineProperty(e.prototype.getFileContent=function e(t,r){return this.rpcCall(e,$root.proto.Query,$root.proto.Response,t,r)},"name",{value:"getFileContent"}),Object.defineProperty(e.prototype.getFileInfo=function e(t,r){return this.rpcCall(e,$root.proto.Query,$root.proto.Response,t,r)},"name",{value:"getFileInfo"}),Object.defineProperty(e.prototype.systemDelete=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"systemDelete"}),Object.defineProperty(e.prototype.systemUndelete=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"systemUndelete"}),e}(),e.FreezeService=function(){function e(e,t,r){$protobuf$1.rpc.Service.call(this,e,t,r)}return(e.prototype=Object.create($protobuf$1.rpc.Service.prototype)).constructor=e,e.create=function(e,t,r){return new this(e,t,r)},Object.defineProperty(e.prototype.freeze=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"freeze"}),e}(),e.NetworkService=function(){function e(e,t,r){$protobuf$1.rpc.Service.call(this,e,t,r)}return(e.prototype=Object.create($protobuf$1.rpc.Service.prototype)).constructor=e,e.create=function(e,t,r){return new this(e,t,r)},Object.defineProperty(e.prototype.getVersionInfo=function e(t,r){return this.rpcCall(e,$root.proto.Query,$root.proto.Response,t,r)},"name",{value:"getVersionInfo"}),Object.defineProperty(e.prototype.getAccountDetails=function e(t,r){return this.rpcCall(e,$root.proto.Query,$root.proto.Response,t,r)},"name",{value:"getAccountDetails"}),Object.defineProperty(e.prototype.getExecutionTime=function e(t,r){return this.rpcCall(e,$root.proto.Query,$root.proto.Response,t,r)},"name",{value:"getExecutionTime"}),Object.defineProperty(e.prototype.uncheckedSubmit=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"uncheckedSubmit"}),e}(),e.ScheduleService=function(){function e(e,t,r){$protobuf$1.rpc.Service.call(this,e,t,r)}return(e.prototype=Object.create($protobuf$1.rpc.Service.prototype)).constructor=e,e.create=function(e,t,r){return new this(e,t,r)},Object.defineProperty(e.prototype.createSchedule=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"createSchedule"}),Object.defineProperty(e.prototype.signSchedule=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"signSchedule"}),Object.defineProperty(e.prototype.deleteSchedule=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"deleteSchedule"}),Object.defineProperty(e.prototype.getScheduleInfo=function e(t,r){return this.rpcCall(e,$root.proto.Query,$root.proto.Response,t,r)},"name",{value:"getScheduleInfo"}),e}(),e.SmartContractService=function(){function e(e,t,r){$protobuf$1.rpc.Service.call(this,e,t,r)}return(e.prototype=Object.create($protobuf$1.rpc.Service.prototype)).constructor=e,e.create=function(e,t,r){return new this(e,t,r)},Object.defineProperty(e.prototype.createContract=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"createContract"}),Object.defineProperty(e.prototype.updateContract=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"updateContract"}),Object.defineProperty(e.prototype.contractCallMethod=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"contractCallMethod"}),Object.defineProperty(e.prototype.contractCallLocalMethod=function e(t,r){return this.rpcCall(e,$root.proto.Query,$root.proto.Response,t,r)},"name",{value:"contractCallLocalMethod"}),Object.defineProperty(e.prototype.getContractInfo=function e(t,r){return this.rpcCall(e,$root.proto.Query,$root.proto.Response,t,r)},"name",{value:"getContractInfo"}),Object.defineProperty(e.prototype.contractGetBytecode=function e(t,r){return this.rpcCall(e,$root.proto.Query,$root.proto.Response,t,r)},"name",{value:"ContractGetBytecode"}),Object.defineProperty(e.prototype.getBySolidityID=function e(t,r){return this.rpcCall(e,$root.proto.Query,$root.proto.Response,t,r)},"name",{value:"getBySolidityID"}),Object.defineProperty(e.prototype.getTxRecordByContractID=function e(t,r){return this.rpcCall(e,$root.proto.Query,$root.proto.Response,t,r)},"name",{value:"getTxRecordByContractID"}),Object.defineProperty(e.prototype.deleteContract=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"deleteContract"}),Object.defineProperty(e.prototype.systemDelete=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"systemDelete"}),Object.defineProperty(e.prototype.systemUndelete=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"systemUndelete"}),Object.defineProperty(e.prototype.callEthereum=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"callEthereum"}),e}(),e.ThrottleGroup=function(){function e(e){if(this.operations=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.operations=$util.emptyArray,e.prototype.milliOpsPerSec=$util.Long?$util.Long.fromBits(0,0,!0):0,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.operations&&e.operations.length){t.uint32(10).fork();for(var r=0;r<e.operations.length;++r)t.int32(e.operations[r]);t.ldelim()}return null!=e.milliOpsPerSec&&Object.hasOwnProperty.call(e,"milliOpsPerSec")&&t.uint32(16).uint64(e.milliOpsPerSec),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ThrottleGroup;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:if(o.operations&&o.operations.length||(o.operations=[]),2==(7&n))for(var i=e.uint32()+e.pos;e.pos<i;)o.operations.push(e.int32());else o.operations.push(e.int32());break;case 2:o.milliOpsPerSec=e.uint64();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ThrottleGroup"},e}(),e.ThrottleBucket=function(){function e(e){if(this.throttleGroups=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.name="",e.prototype.burstPeriodMs=$util.Long?$util.Long.fromBits(0,0,!0):0,e.prototype.throttleGroups=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.burstPeriodMs&&Object.hasOwnProperty.call(e,"burstPeriodMs")&&t.uint32(16).uint64(e.burstPeriodMs),null!=e.throttleGroups&&e.throttleGroups.length)for(var r=0;r<e.throttleGroups.length;++r)$root.proto.ThrottleGroup.encode(e.throttleGroups[r],t.uint32(26).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ThrottleBucket;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.name=e.string();break;case 2:o.burstPeriodMs=e.uint64();break;case 3:o.throttleGroups&&o.throttleGroups.length||(o.throttleGroups=[]),o.throttleGroups.push($root.proto.ThrottleGroup.decode(e,e.uint32()));break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ThrottleBucket"},e}(),e.ThrottleDefinitions=function(){function e(e){if(this.throttleBuckets=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.throttleBuckets=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.throttleBuckets&&e.throttleBuckets.length)for(var r=0;r<e.throttleBuckets.length;++r)$root.proto.ThrottleBucket.encode(e.throttleBuckets[r],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ThrottleDefinitions;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.throttleBuckets&&o.throttleBuckets.length||(o.throttleBuckets=[]),o.throttleBuckets.push($root.proto.ThrottleBucket.decode(e,e.uint32()));else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ThrottleDefinitions"},e}(),e.TokenService=function(){function e(e,t,r){$protobuf$1.rpc.Service.call(this,e,t,r)}return(e.prototype=Object.create($protobuf$1.rpc.Service.prototype)).constructor=e,e.create=function(e,t,r){return new this(e,t,r)},Object.defineProperty(e.prototype.createToken=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"createToken"}),Object.defineProperty(e.prototype.updateToken=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"updateToken"}),Object.defineProperty(e.prototype.mintToken=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"mintToken"}),Object.defineProperty(e.prototype.burnToken=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"burnToken"}),Object.defineProperty(e.prototype.deleteToken=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"deleteToken"}),Object.defineProperty(e.prototype.wipeTokenAccount=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"wipeTokenAccount"}),Object.defineProperty(e.prototype.freezeTokenAccount=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"freezeTokenAccount"}),Object.defineProperty(e.prototype.unfreezeTokenAccount=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"unfreezeTokenAccount"}),Object.defineProperty(e.prototype.grantKycToTokenAccount=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"grantKycToTokenAccount"}),Object.defineProperty(e.prototype.revokeKycFromTokenAccount=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"revokeKycFromTokenAccount"}),Object.defineProperty(e.prototype.associateTokens=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"associateTokens"}),Object.defineProperty(e.prototype.dissociateTokens=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"dissociateTokens"}),Object.defineProperty(e.prototype.updateTokenFeeSchedule=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"updateTokenFeeSchedule"}),Object.defineProperty(e.prototype.getTokenInfo=function e(t,r){return this.rpcCall(e,$root.proto.Query,$root.proto.Response,t,r)},"name",{value:"getTokenInfo"}),Object.defineProperty(e.prototype.getTokenNftInfo=function e(t,r){return this.rpcCall(e,$root.proto.Query,$root.proto.Response,t,r)},"name",{value:"getTokenNftInfo"}),Object.defineProperty(e.prototype.pauseToken=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"pauseToken"}),Object.defineProperty(e.prototype.unpauseToken=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"unpauseToken"}),Object.defineProperty(e.prototype.updateNfts=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"updateNfts"}),Object.defineProperty(e.prototype.rejectToken=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"rejectToken"}),Object.defineProperty(e.prototype.airdropTokens=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"airdropTokens"}),Object.defineProperty(e.prototype.cancelAirdrop=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"cancelAirdrop"}),Object.defineProperty(e.prototype.claimAirdrop=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"claimAirdrop"}),e}(),e.SignedTransaction=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.bodyBytes=$util.newBuffer([]),e.prototype.sigMap=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.bodyBytes&&Object.hasOwnProperty.call(e,"bodyBytes")&&t.uint32(10).bytes(e.bodyBytes),null!=e.sigMap&&Object.hasOwnProperty.call(e,"sigMap")&&$root.proto.SignatureMap.encode(e.sigMap,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.SignedTransaction;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.bodyBytes=e.bytes();break;case 2:o.sigMap=$root.proto.SignatureMap.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.SignedTransaction"},e}(),e.UtilService=function(){function e(e,t,r){$protobuf$1.rpc.Service.call(this,e,t,r)}return(e.prototype=Object.create($protobuf$1.rpc.Service.prototype)).constructor=e,e.create=function(e,t,r){return new this(e,t,r)},Object.defineProperty(e.prototype.prng=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"prng"}),e}(),e.TokenUnitBalance=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.tokenId=null,e.prototype.balance=$util.Long?$util.Long.fromBits(0,0,!0):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.tokenId&&Object.hasOwnProperty.call(e,"tokenId")&&$root.proto.TokenID.encode(e.tokenId,t.uint32(10).fork()).ldelim(),null!=e.balance&&Object.hasOwnProperty.call(e,"balance")&&t.uint32(16).uint64(e.balance),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenUnitBalance;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.tokenId=$root.proto.TokenID.decode(e,e.uint32());break;case 2:o.balance=e.uint64();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenUnitBalance"},e}(),e.SingleAccountBalances=function(){function e(e){if(this.tokenUnitBalances=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.accountID=null,e.prototype.hbarBalance=$util.Long?$util.Long.fromBits(0,0,!0):0,e.prototype.tokenUnitBalances=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.accountID&&Object.hasOwnProperty.call(e,"accountID")&&$root.proto.AccountID.encode(e.accountID,t.uint32(10).fork()).ldelim(),null!=e.hbarBalance&&Object.hasOwnProperty.call(e,"hbarBalance")&&t.uint32(16).uint64(e.hbarBalance),null!=e.tokenUnitBalances&&e.tokenUnitBalances.length)for(var r=0;r<e.tokenUnitBalances.length;++r)$root.proto.TokenUnitBalance.encode(e.tokenUnitBalances[r],t.uint32(26).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.SingleAccountBalances;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.accountID=$root.proto.AccountID.decode(e,e.uint32());break;case 2:o.hbarBalance=e.uint64();break;case 3:o.tokenUnitBalances&&o.tokenUnitBalances.length||(o.tokenUnitBalances=[]),o.tokenUnitBalances.push($root.proto.TokenUnitBalance.decode(e,e.uint32()));break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.SingleAccountBalances"},e}(),e.AllAccountBalances=function(){function e(e){if(this.allAccounts=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.consensusTimestamp=null,e.prototype.allAccounts=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.consensusTimestamp&&Object.hasOwnProperty.call(e,"consensusTimestamp")&&$root.proto.Timestamp.encode(e.consensusTimestamp,t.uint32(10).fork()).ldelim(),null!=e.allAccounts&&e.allAccounts.length)for(var r=0;r<e.allAccounts.length;++r)$root.proto.SingleAccountBalances.encode(e.allAccounts[r],t.uint32(18).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.AllAccountBalances;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.consensusTimestamp=$root.proto.Timestamp.decode(e,e.uint32());break;case 2:o.allAccounts&&o.allAccounts.length||(o.allAccounts=[]),o.allAccounts.push($root.proto.SingleAccountBalances.decode(e,e.uint32()));break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.AllAccountBalances"},e}(),e.ContractActions=function(){function e(e){if(this.contractActions=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.contractActions=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.contractActions&&e.contractActions.length)for(var r=0;r<e.contractActions.length;++r)$root.proto.ContractAction.encode(e.contractActions[r],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ContractActions;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.contractActions&&o.contractActions.length||(o.contractActions=[]),o.contractActions.push($root.proto.ContractAction.decode(e,e.uint32()));else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ContractActions"},e}(),e.ContractActionType=function(){const e={},t=Object.create(e);return t[e[0]="NO_ACTION"]=0,t[e[1]="CALL"]=1,t[e[2]="CREATE"]=2,t[e[3]="PRECOMPILE"]=3,t[e[4]="SYSTEM"]=4,t}(),e.CallOperationType=function(){const e={},t=Object.create(e);return t[e[0]="OP_UNKNOWN"]=0,t[e[1]="OP_CALL"]=1,t[e[2]="OP_CALLCODE"]=2,t[e[3]="OP_DELEGATECALL"]=3,t[e[4]="OP_STATICCALL"]=4,t[e[5]="OP_CREATE"]=5,t[e[6]="OP_CREATE2"]=6,t}(),e.ContractAction=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.callType=0,e.prototype.callingAccount=null,e.prototype.callingContract=null,e.prototype.gas=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.input=$util.newBuffer([]),e.prototype.recipientAccount=null,e.prototype.recipientContract=null,e.prototype.targetedAddress=null,e.prototype.value=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.gasUsed=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.output=null,e.prototype.revertReason=null,e.prototype.error=null,e.prototype.callDepth=0,e.prototype.callOperationType=0,Object.defineProperty(e.prototype,"caller",{get:$util.oneOfGetter(t=["callingAccount","callingContract"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"recipient",{get:$util.oneOfGetter(t=["recipientAccount","recipientContract","targetedAddress"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"resultData",{get:$util.oneOfGetter(t=["output","revertReason","error"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.callType&&Object.hasOwnProperty.call(e,"callType")&&t.uint32(8).int32(e.callType),null!=e.callingAccount&&Object.hasOwnProperty.call(e,"callingAccount")&&$root.proto.AccountID.encode(e.callingAccount,t.uint32(18).fork()).ldelim(),null!=e.callingContract&&Object.hasOwnProperty.call(e,"callingContract")&&$root.proto.ContractID.encode(e.callingContract,t.uint32(26).fork()).ldelim(),null!=e.gas&&Object.hasOwnProperty.call(e,"gas")&&t.uint32(32).int64(e.gas),null!=e.input&&Object.hasOwnProperty.call(e,"input")&&t.uint32(42).bytes(e.input),null!=e.recipientAccount&&Object.hasOwnProperty.call(e,"recipientAccount")&&$root.proto.AccountID.encode(e.recipientAccount,t.uint32(50).fork()).ldelim(),null!=e.recipientContract&&Object.hasOwnProperty.call(e,"recipientContract")&&$root.proto.ContractID.encode(e.recipientContract,t.uint32(58).fork()).ldelim(),null!=e.targetedAddress&&Object.hasOwnProperty.call(e,"targetedAddress")&&t.uint32(66).bytes(e.targetedAddress),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(72).int64(e.value),null!=e.gasUsed&&Object.hasOwnProperty.call(e,"gasUsed")&&t.uint32(80).int64(e.gasUsed),null!=e.output&&Object.hasOwnProperty.call(e,"output")&&t.uint32(90).bytes(e.output),null!=e.revertReason&&Object.hasOwnProperty.call(e,"revertReason")&&t.uint32(98).bytes(e.revertReason),null!=e.error&&Object.hasOwnProperty.call(e,"error")&&t.uint32(106).bytes(e.error),null!=e.callDepth&&Object.hasOwnProperty.call(e,"callDepth")&&t.uint32(112).int32(e.callDepth),null!=e.callOperationType&&Object.hasOwnProperty.call(e,"callOperationType")&&t.uint32(120).int32(e.callOperationType),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ContractAction;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.callType=e.int32();break;case 2:o.callingAccount=$root.proto.AccountID.decode(e,e.uint32());break;case 3:o.callingContract=$root.proto.ContractID.decode(e,e.uint32());break;case 4:o.gas=e.int64();break;case 5:o.input=e.bytes();break;case 6:o.recipientAccount=$root.proto.AccountID.decode(e,e.uint32());break;case 7:o.recipientContract=$root.proto.ContractID.decode(e,e.uint32());break;case 8:o.targetedAddress=e.bytes();break;case 9:o.value=e.int64();break;case 10:o.gasUsed=e.int64();break;case 11:o.output=e.bytes();break;case 12:o.revertReason=e.bytes();break;case 13:o.error=e.bytes();break;case 14:o.callDepth=e.int32();break;case 15:o.callOperationType=e.int32();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ContractAction"},e}(),e.ContractBytecode=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.contractId=null,e.prototype.initcode=$util.newBuffer([]),e.prototype.runtimeBytecode=$util.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.contractId&&Object.hasOwnProperty.call(e,"contractId")&&$root.proto.ContractID.encode(e.contractId,t.uint32(10).fork()).ldelim(),null!=e.initcode&&Object.hasOwnProperty.call(e,"initcode")&&t.uint32(18).bytes(e.initcode),null!=e.runtimeBytecode&&Object.hasOwnProperty.call(e,"runtimeBytecode")&&t.uint32(26).bytes(e.runtimeBytecode),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ContractBytecode;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.contractId=$root.proto.ContractID.decode(e,e.uint32());break;case 2:o.initcode=e.bytes();break;case 3:o.runtimeBytecode=e.bytes();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ContractBytecode"},e}(),e.ContractStateChanges=function(){function e(e){if(this.contractStateChanges=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.contractStateChanges=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.contractStateChanges&&e.contractStateChanges.length)for(var r=0;r<e.contractStateChanges.length;++r)$root.proto.ContractStateChange.encode(e.contractStateChanges[r],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ContractStateChanges;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.contractStateChanges&&o.contractStateChanges.length||(o.contractStateChanges=[]),o.contractStateChanges.push($root.proto.ContractStateChange.decode(e,e.uint32()));else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ContractStateChanges"},e}(),e.ContractStateChange=function(){function e(e){if(this.storageChanges=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.contractId=null,e.prototype.storageChanges=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.contractId&&Object.hasOwnProperty.call(e,"contractId")&&$root.proto.ContractID.encode(e.contractId,t.uint32(10).fork()).ldelim(),null!=e.storageChanges&&e.storageChanges.length)for(var r=0;r<e.storageChanges.length;++r)$root.proto.StorageChange.encode(e.storageChanges[r],t.uint32(18).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ContractStateChange;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.contractId=$root.proto.ContractID.decode(e,e.uint32());break;case 2:o.storageChanges&&o.storageChanges.length||(o.storageChanges=[]),o.storageChanges.push($root.proto.StorageChange.decode(e,e.uint32()));break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ContractStateChange"},e}(),e.StorageChange=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.slot=$util.newBuffer([]),e.prototype.valueRead=$util.newBuffer([]),e.prototype.valueWritten=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.slot&&Object.hasOwnProperty.call(e,"slot")&&t.uint32(10).bytes(e.slot),null!=e.valueRead&&Object.hasOwnProperty.call(e,"valueRead")&&t.uint32(18).bytes(e.valueRead),null!=e.valueWritten&&Object.hasOwnProperty.call(e,"valueWritten")&&$root.google.protobuf.BytesValue.encode(e.valueWritten,t.uint32(26).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.StorageChange;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.slot=e.bytes();break;case 2:o.valueRead=e.bytes();break;case 3:o.valueWritten=$root.google.protobuf.BytesValue.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.StorageChange"},e}(),e.HashAlgorithm=function(){const e={},t=Object.create(e);return t[e[0]="HASH_ALGORITHM_UNKNOWN"]=0,t[e[1]="SHA_384"]=1,t}(),e.HashObject=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.algorithm=0,e.prototype.length=0,e.prototype.hash=$util.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.algorithm&&Object.hasOwnProperty.call(e,"algorithm")&&t.uint32(8).int32(e.algorithm),null!=e.length&&Object.hasOwnProperty.call(e,"length")&&t.uint32(16).int32(e.length),null!=e.hash&&Object.hasOwnProperty.call(e,"hash")&&t.uint32(26).bytes(e.hash),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.HashObject;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.algorithm=e.int32();break;case 2:o.length=e.int32();break;case 3:o.hash=e.bytes();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.HashObject"},e}(),e.RecordStreamFile=function(){function e(e){if(this.recordStreamItems=[],this.sidecars=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.hapiProtoVersion=null,e.prototype.startObjectRunningHash=null,e.prototype.recordStreamItems=$util.emptyArray,e.prototype.endObjectRunningHash=null,e.prototype.blockNumber=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.sidecars=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.hapiProtoVersion&&Object.hasOwnProperty.call(e,"hapiProtoVersion")&&$root.proto.SemanticVersion.encode(e.hapiProtoVersion,t.uint32(10).fork()).ldelim(),null!=e.startObjectRunningHash&&Object.hasOwnProperty.call(e,"startObjectRunningHash")&&$root.proto.HashObject.encode(e.startObjectRunningHash,t.uint32(18).fork()).ldelim(),null!=e.recordStreamItems&&e.recordStreamItems.length)for(var r=0;r<e.recordStreamItems.length;++r)$root.proto.RecordStreamItem.encode(e.recordStreamItems[r],t.uint32(26).fork()).ldelim();if(null!=e.endObjectRunningHash&&Object.hasOwnProperty.call(e,"endObjectRunningHash")&&$root.proto.HashObject.encode(e.endObjectRunningHash,t.uint32(34).fork()).ldelim(),null!=e.blockNumber&&Object.hasOwnProperty.call(e,"blockNumber")&&t.uint32(40).int64(e.blockNumber),null!=e.sidecars&&e.sidecars.length)for(r=0;r<e.sidecars.length;++r)$root.proto.SidecarMetadata.encode(e.sidecars[r],t.uint32(50).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.RecordStreamFile;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.hapiProtoVersion=$root.proto.SemanticVersion.decode(e,e.uint32());break;case 2:o.startObjectRunningHash=$root.proto.HashObject.decode(e,e.uint32());break;case 3:o.recordStreamItems&&o.recordStreamItems.length||(o.recordStreamItems=[]),o.recordStreamItems.push($root.proto.RecordStreamItem.decode(e,e.uint32()));break;case 4:o.endObjectRunningHash=$root.proto.HashObject.decode(e,e.uint32());break;case 5:o.blockNumber=e.int64();break;case 6:o.sidecars&&o.sidecars.length||(o.sidecars=[]),o.sidecars.push($root.proto.SidecarMetadata.decode(e,e.uint32()));break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.RecordStreamFile"},e}(),e.RecordStreamItem=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.transaction=null,e.prototype.record=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.transaction&&Object.hasOwnProperty.call(e,"transaction")&&$root.proto.Transaction.encode(e.transaction,t.uint32(10).fork()).ldelim(),null!=e.record&&Object.hasOwnProperty.call(e,"record")&&$root.proto.TransactionRecord.encode(e.record,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.RecordStreamItem;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.transaction=$root.proto.Transaction.decode(e,e.uint32());break;case 2:o.record=$root.proto.TransactionRecord.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.RecordStreamItem"},e}(),e.SidecarMetadata=function(){function e(e){if(this.types=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.hash=null,e.prototype.id=0,e.prototype.types=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.hash&&Object.hasOwnProperty.call(e,"hash")&&$root.proto.HashObject.encode(e.hash,t.uint32(10).fork()).ldelim(),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(16).int32(e.id),null!=e.types&&e.types.length){t.uint32(26).fork();for(var r=0;r<e.types.length;++r)t.int32(e.types[r]);t.ldelim()}return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.SidecarMetadata;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.hash=$root.proto.HashObject.decode(e,e.uint32());break;case 2:o.id=e.int32();break;case 3:if(o.types&&o.types.length||(o.types=[]),2==(7&n))for(var i=e.uint32()+e.pos;e.pos<i;)o.types.push(e.int32());else o.types.push(e.int32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.SidecarMetadata"},e}(),e.SidecarType=function(){const e={},t=Object.create(e);return t[e[0]="SIDECAR_TYPE_UNKNOWN"]=0,t[e[1]="CONTRACT_STATE_CHANGE"]=1,t[e[2]="CONTRACT_ACTION"]=2,t[e[3]="CONTRACT_BYTECODE"]=3,t}(),e.SidecarFile=function(){function e(e){if(this.sidecarRecords=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.sidecarRecords=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.sidecarRecords&&e.sidecarRecords.length)for(var r=0;r<e.sidecarRecords.length;++r)$root.proto.TransactionSidecarRecord.encode(e.sidecarRecords[r],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.SidecarFile;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.sidecarRecords&&o.sidecarRecords.length||(o.sidecarRecords=[]),o.sidecarRecords.push($root.proto.TransactionSidecarRecord.decode(e,e.uint32()));else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.SidecarFile"},e}(),e.TransactionSidecarRecord=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.consensusTimestamp=null,e.prototype.migration=!1,e.prototype.stateChanges=null,e.prototype.actions=null,e.prototype.bytecode=null,Object.defineProperty(e.prototype,"sidecarRecords",{get:$util.oneOfGetter(t=["stateChanges","actions","bytecode"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.consensusTimestamp&&Object.hasOwnProperty.call(e,"consensusTimestamp")&&$root.proto.Timestamp.encode(e.consensusTimestamp,t.uint32(10).fork()).ldelim(),null!=e.migration&&Object.hasOwnProperty.call(e,"migration")&&t.uint32(16).bool(e.migration),null!=e.stateChanges&&Object.hasOwnProperty.call(e,"stateChanges")&&$root.proto.ContractStateChanges.encode(e.stateChanges,t.uint32(26).fork()).ldelim(),null!=e.actions&&Object.hasOwnProperty.call(e,"actions")&&$root.proto.ContractActions.encode(e.actions,t.uint32(34).fork()).ldelim(),null!=e.bytecode&&Object.hasOwnProperty.call(e,"bytecode")&&$root.proto.ContractBytecode.encode(e.bytecode,t.uint32(42).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TransactionSidecarRecord;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.consensusTimestamp=$root.proto.Timestamp.decode(e,e.uint32());break;case 2:o.migration=e.bool();break;case 3:o.stateChanges=$root.proto.ContractStateChanges.decode(e,e.uint32());break;case 4:o.actions=$root.proto.ContractActions.decode(e,e.uint32());break;case 5:o.bytecode=$root.proto.ContractBytecode.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TransactionSidecarRecord"},e}(),e.SignatureFile=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.fileSignature=null,e.prototype.metadataSignature=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.fileSignature&&Object.hasOwnProperty.call(e,"fileSignature")&&$root.proto.SignatureObject.encode(e.fileSignature,t.uint32(10).fork()).ldelim(),null!=e.metadataSignature&&Object.hasOwnProperty.call(e,"metadataSignature")&&$root.proto.SignatureObject.encode(e.metadataSignature,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.SignatureFile;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.fileSignature=$root.proto.SignatureObject.decode(e,e.uint32());break;case 2:o.metadataSignature=$root.proto.SignatureObject.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.SignatureFile"},e}(),e.SignatureObject=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.type=0,e.prototype.length=0,e.prototype.checksum=0,e.prototype.signature=$util.newBuffer([]),e.prototype.hashObject=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(8).int32(e.type),null!=e.length&&Object.hasOwnProperty.call(e,"length")&&t.uint32(16).int32(e.length),null!=e.checksum&&Object.hasOwnProperty.call(e,"checksum")&&t.uint32(24).int32(e.checksum),null!=e.signature&&Object.hasOwnProperty.call(e,"signature")&&t.uint32(34).bytes(e.signature),null!=e.hashObject&&Object.hasOwnProperty.call(e,"hashObject")&&$root.proto.HashObject.encode(e.hashObject,t.uint32(42).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.SignatureObject;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.type=e.int32();break;case 2:o.length=e.int32();break;case 3:o.checksum=e.int32();break;case 4:o.signature=e.bytes();break;case 5:o.hashObject=$root.proto.HashObject.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.SignatureObject"},e}(),e.SignatureType=function(){const e={},t=Object.create(e);return t[e[0]="SIGNATURE_TYPE_UNKNOWN"]=0,t[e[1]="SHA_384_WITH_RSA"]=1,t}(),e})(),proto.google=$root.google=(()=>{const e={};return e.protobuf=function(){const e={};return e.DoubleValue=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.value=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(9).double(e.value),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.google.protobuf.DoubleValue;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.value=e.double();else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/google.protobuf.DoubleValue"},e}(),e.FloatValue=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.value=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(13).float(e.value),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.google.protobuf.FloatValue;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.value=e.float();else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/google.protobuf.FloatValue"},e}(),e.Int64Value=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.value=$util.Long?$util.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(8).int64(e.value),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.google.protobuf.Int64Value;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.value=e.int64();else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/google.protobuf.Int64Value"},e}(),e.UInt64Value=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.value=$util.Long?$util.Long.fromBits(0,0,!0):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(8).uint64(e.value),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.google.protobuf.UInt64Value;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.value=e.uint64();else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/google.protobuf.UInt64Value"},e}(),e.Int32Value=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.value=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(8).int32(e.value),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.google.protobuf.Int32Value;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.value=e.int32();else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/google.protobuf.Int32Value"},e}(),e.UInt32Value=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.value=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(8).uint32(e.value),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.google.protobuf.UInt32Value;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.value=e.uint32();else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/google.protobuf.UInt32Value"},e}(),e.BoolValue=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.value=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(8).bool(e.value),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.google.protobuf.BoolValue;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.value=e.bool();else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/google.protobuf.BoolValue"},e}(),e.StringValue=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.value="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(10).string(e.value),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.google.protobuf.StringValue;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.value=e.string();else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/google.protobuf.StringValue"},e}(),e.BytesValue=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.value=$util.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(10).bytes(e.value),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.google.protobuf.BytesValue;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.value=e.bytes();else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/google.protobuf.BytesValue"},e}(),e}(),e})(),Object.defineProperty(lib,"__esModule",{value:!0});var proto_1=lib.proto=lib.google=lib.com=lib.Writer=lib.Reader=void 0,$protobuf=_interopRequireWildcard(minimal),_long=_interopRequireDefault(require$$1$2),$proto=_interopRequireWildcard(proto);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(_getRequireWildcardCache=function(e){return e?r:t})(e)}function _interopRequireWildcard(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=_getRequireWildcardCache(t);if(r&&r.has(e))return r.get(e);var o={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var a=n?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(o,i,a):o[i]=e[i]}return o.default=e,r&&r.set(e,o),o}(()=>{var e=$protobuf.util;null==e.Long&&(console.log("Patching Protobuf Long.js instance..."),e.Long=_long.default,null!=$protobuf.Reader._configure&&$protobuf.Reader._configure($protobuf.BufferReader))})(),lib.Reader=$protobuf.Reader,lib.Writer=$protobuf.Writer,proto_1=lib.proto=$proto.proto,lib.com=$proto.com,lib.google=$proto.google;class HederaMirrorNode{constructor(e,t){this.network=e,this.baseUrl=this.getMirrorNodeUrl(),this.logger=t}getMirrorNodeUrl(){return"mainnet"===this.network?"https://mainnet-public.mirrornode.hedera.com":"https://testnet.mirrornode.hedera.com"}getBaseUrl(){return this.baseUrl}async getPublicKey(e){this.logger&&this.logger.info(`Getting public key for account ${e}`);const t=await this.requestAccount(e);try{if(!t||!t.key)throw new Error(`Failed to retrieve public key for account ID: ${e}`);return i$7.fromString(t.key.key)}catch(r){throw new Error(`Error fetching public key from Mirror Node: ${r.message}`)}}async getAccountMemo(e){try{const t=await this.requestAccount(e);return t&&t.memo?t.memo:null}catch(t){return this.logger&&this.logger.error(`Error getting account memo: ${t.message}`),null}}async getTopicInfo(e){try{const t=`${this.baseUrl}/api/v1/topics/${e}`;return(await axios.get(t)).data}catch(t){throw this.logger&&this.logger.error(`Error retrieving topic information: ${t.message}`),new Error(`Failed to retrieve topic information: ${t.message}`)}}async getTopicFees(e){try{return(await this.getTopicInfo(e)).custom_fees}catch(t){return this.logger&&this.logger.error(`Error retrieving topic fees: ${t.message}`),null}}async getTopicMessages(e){var t;this.logger&&this.logger.info(`Querying messages for topic ${e}`);let r=`${this.baseUrl}/api/v1/topics/${e}/messages`;const o=[];for(;r;)try{const e=(await axios.get(r)).data;e.messages&&e.messages.length>0&&e.messages.forEach((e=>{const t=Buffer.from(e.message,"base64").toString("utf8");let r;try{r=JSON.parse(t)}catch(n){return void(this.logger&&this.logger.error(`Invalid JSON message content: ${t}`))}r.sequence_number=e.sequence_number,o.push(r)})),r=(null==(t=e.links)?void 0:t.next)?`${this.baseUrl}${e.links.next}`:""}catch(n){throw this.logger&&this.logger.error(`Error querying topic messages: ${n.message}`),new Error(`Failed to query topic messages: ${n.message}`)}return o}async requestAccount(e){try{const t=`${this.baseUrl}/api/v1/accounts/${e}`,r=await axios.get(t);if(!r.data)throw new Error(`Failed to make request to mirror node for account: ${e}`);return r.data}catch(t){throw this.logger&&this.logger.error(`Failed to fetch account: ${t.message}`),new Error(`Failed to fetch account: ${t.message}`)}}async checkKeyListAccess(e,t){try{const r=proto_1.Key.decode(e);return this.evaluateKeyAccess(r,t)}catch(r){return this.logger&&this.logger.error(`Error decoding protobuf key: ${r instanceof Error?r.message:String(r)}`),!1}}async evaluateKeyAccess(e,t){return e.ed25519?this.compareEd25519Key(e.ed25519,t):e.keyList?this.evaluateKeyList(e.keyList,t):!(!e.thresholdKey||!e.thresholdKey.keys)&&this.evaluateKeyList(e.thresholdKey.keys,t)}async evaluateKeyList(e,t){const r=e.keys||[];for(const n of r)if(n)if(n.ed25519){if(this.compareEd25519Key(n.ed25519,t))return!0}else if(n.keyList||n.thresholdKey)try{const e=proto_1.Key.encode({...n.keyList?{keyList:n.keyList}:{},...n.thresholdKey?{thresholdKey:n.thresholdKey}:{}}).finish();if(await this.checkKeyListAccess(Buffer.from(e),t))return!0}catch(o){this.logger&&this.logger.debug(`Error in nested key: ${o instanceof Error?o.message:String(o)}`)}return!1}compareEd25519Key(e,t){try{return i$7.fromBytes(Buffer.from(e)).toString()===t.toString()}catch(r){return!1}}}class HCS10BaseClient extends Registration{constructor(e){super(),this.network=e.network,this.logger=Logger$2.getInstance({level:e.logLevel||"info",module:"HCS10-BaseClient"}),this.mirrorNode=new HederaMirrorNode(e.network,this.logger)}async getMessages(e){try{return{messages:await this.mirrorNode.getTopicMessages(e)}}catch(t){return this.logger&&this.logger.error(`Error fetching messages: ${t.message}`),{messages:[]}}}async checkRegistrationStatus(e,t,r){try{const o=await fetch(`${r}/api/request-confirm`,{method:"POST",headers:{"Content-Type":"application/json","X-Network":t},body:JSON.stringify({transaction_id:e})});if(!o.ok)throw new Error(`Failed to confirm registration: ${o.statusText}`);return await o.json()}catch(o){throw this.logger.error(`Error checking registration status: ${o}`),o}}async requestAccount(e){try{return await this.mirrorNode.requestAccount(e)}catch(t){throw this.logger.error("Failed to fetch account",t),t}}async getAccountMemo(e){return await this.mirrorNode.getAccountMemo(e)}async getTopicInfoFromMemo(e){const t=e.match(/^hcs-10:(\d+\.\d+\.\d+):(\d+\.\d+\.\d+)$/);if(!t)return null;const[,r,o]=t;return{inboundTopic:r,outboundTopic:o}}async getTopicInfo(e){const t=`${e}-${this.network}`,r=HCS10Cache.getInstance().get(t);if(r)return r;const o=await this.getAccountMemo(e);if(!o)return null;const n=await this.getTopicInfoFromMemo(o);return n&&HCS10Cache.getInstance().set(t,n),n}async retrieveOutboundConnectTopic(e){this.logger.info(`Retrieving topics for account: ${e}`);const t=await this.getTopicInfo(e);if(t)return t;try{const t=await this.getAccountMemo(e);if(!t)throw new Error(`Failed to retrieve memo for account ID: ${e}`);if(!t.startsWith("hcs-11:"))throw new Error(`Invalid memo format: ${t}. Memo must start with 'hcs-11:'`);const r=t.match(/^hcs-11:hcs:\/\/(\d+)\/(.+)$/);if(!r)throw new Error(`Invalid HCS-11 memo format: ${t}. Expected format: hcs-11:hcs://{standard}/{topicId}`);const[,o,n]=r;this.logger.info(`Found HCS-11 profile: ${n} using standard HCS-${o}`);const i=`https://kiloscribe.com/api/inscription-cdn/${n}?network=${this.network}`,a=await axios.get(i);if(!a.data)throw new Error(`Failed to fetch profile from topic: ${n}`);const s=a.data;if(!s.inboundTopicId||!s.outboundTopicId)throw new Error("Invalid HCS-11 profile for HCS-10 agent: missing inboundTopicId or outboundTopicId");const c={inboundTopic:s.inboundTopicId,outboundTopic:s.outboundTopicId},u=`${e}-${this.network}`;return HCS10Cache.getInstance().set(u,c),c}catch(r){throw this.logger.error("Failed to retrieve topic info:",r),r}}async retrieveOutboundMessages(e){try{const t=await this.retrieveOutboundConnectTopic(e);if(!t)return this.logger.warn(`No outbound connect topic found for agentAccountId: ${e}`),[];return(await this.getMessages(t.outboundTopic)).messages.filter((e=>"hcs-10"===e.p&&("connection_request"===e.op||"connection_created"===e.op||"message"===e.op)))}catch(t){return this.logger.error("Failed to retrieve outbound messages:",t),[]}}async hasConnectionCreated(e,t){try{const r=await this.retrieveOutboundConnectTopic(e);return(await this.retrieveOutboundMessages(r.outboundTopic)).some((e=>"connection_created"===e.op&&e.connection_id===t))}catch(r){return this.logger.error("Failed to check connection created:",r),!1}}clearCache(){HCS10Cache.getInstance().clear()}}class HCS10Cache{constructor(){this.CACHE_TTL=36e5,this.cache=new Map,this.cacheExpiry=new Map}static getInstance(){return HCS10Cache.instance||(HCS10Cache.instance=new HCS10Cache),HCS10Cache.instance}set(e,t){this.cache.set(e,t),this.cacheExpiry.set(e,Date.now()+this.CACHE_TTL)}get(e){const t=this.cacheExpiry.get(e);if(t&&t>Date.now())return this.cache.get(e);t&&(this.cache.delete(e),this.cacheExpiry.delete(e))}clear(){this.cache.clear(),this.cacheExpiry.clear()}}var mimeTypes={};const require$$0={"application/1d-interleaved-parityfec":{source:"iana"},"application/3gpdash-qoe-report+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/3gpp-ims+xml":{source:"iana",compressible:!0},"application/3gpphal+json":{source:"iana",compressible:!0},"application/3gpphalforms+json":{source:"iana",compressible:!0},"application/a2l":{source:"iana"},"application/ace+cbor":{source:"iana"},"application/activemessage":{source:"iana"},"application/activity+json":{source:"iana",compressible:!0},"application/alto-costmap+json":{source:"iana",compressible:!0},"application/alto-costmapfilter+json":{source:"iana",compressible:!0},"application/alto-directory+json":{source:"iana",compressible:!0},"application/alto-endpointcost+json":{source:"iana",compressible:!0},"application/alto-endpointcostparams+json":{source:"iana",compressible:!0},"application/alto-endpointprop+json":{source:"iana",compressible:!0},"application/alto-endpointpropparams+json":{source:"iana",compressible:!0},"application/alto-error+json":{source:"iana",compressible:!0},"application/alto-networkmap+json":{source:"iana",compressible:!0},"application/alto-networkmapfilter+json":{source:"iana",compressible:!0},"application/alto-updatestreamcontrol+json":{source:"iana",compressible:!0},"application/alto-updatestreamparams+json":{source:"iana",compressible:!0},"application/aml":{source:"iana"},"application/andrew-inset":{source:"iana",extensions:["ez"]},"application/applefile":{source:"iana"},"application/applixware":{source:"apache",extensions:["aw"]},"application/at+jwt":{source:"iana"},"application/atf":{source:"iana"},"application/atfx":{source:"iana"},"application/atom+xml":{source:"iana",compressible:!0,extensions:["atom"]},"application/atomcat+xml":{source:"iana",compressible:!0,extensions:["atomcat"]},"application/atomdeleted+xml":{source:"iana",compressible:!0,extensions:["atomdeleted"]},"application/atomicmail":{source:"iana"},"application/atomsvc+xml":{source:"iana",compressible:!0,extensions:["atomsvc"]},"application/atsc-dwd+xml":{source:"iana",compressible:!0,extensions:["dwd"]},"application/atsc-dynamic-event-message":{source:"iana"},"application/atsc-held+xml":{source:"iana",compressible:!0,extensions:["held"]},"application/atsc-rdt+json":{source:"iana",compressible:!0},"application/atsc-rsat+xml":{source:"iana",compressible:!0,extensions:["rsat"]},"application/atxml":{source:"iana"},"application/auth-policy+xml":{source:"iana",compressible:!0},"application/bacnet-xdd+zip":{source:"iana",compressible:!1},"application/batch-smtp":{source:"iana"},"application/bdoc":{compressible:!1,extensions:["bdoc"]},"application/beep+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/calendar+json":{source:"iana",compressible:!0},"application/calendar+xml":{source:"iana",compressible:!0,extensions:["xcs"]},"application/call-completion":{source:"iana"},"application/cals-1840":{source:"iana"},"application/captive+json":{source:"iana",compressible:!0},"application/cbor":{source:"iana"},"application/cbor-seq":{source:"iana"},"application/cccex":{source:"iana"},"application/ccmp+xml":{source:"iana",compressible:!0},"application/ccxml+xml":{source:"iana",compressible:!0,extensions:["ccxml"]},"application/cdfx+xml":{source:"iana",compressible:!0,extensions:["cdfx"]},"application/cdmi-capability":{source:"iana",extensions:["cdmia"]},"application/cdmi-container":{source:"iana",extensions:["cdmic"]},"application/cdmi-domain":{source:"iana",extensions:["cdmid"]},"application/cdmi-object":{source:"iana",extensions:["cdmio"]},"application/cdmi-queue":{source:"iana",extensions:["cdmiq"]},"application/cdni":{source:"iana"},"application/cea":{source:"iana"},"application/cea-2018+xml":{source:"iana",compressible:!0},"application/cellml+xml":{source:"iana",compressible:!0},"application/cfw":{source:"iana"},"application/city+json":{source:"iana",compressible:!0},"application/clr":{source:"iana"},"application/clue+xml":{source:"iana",compressible:!0},"application/clue_info+xml":{source:"iana",compressible:!0},"application/cms":{source:"iana"},"application/cnrp+xml":{source:"iana",compressible:!0},"application/coap-group+json":{source:"iana",compressible:!0},"application/coap-payload":{source:"iana"},"application/commonground":{source:"iana"},"application/conference-info+xml":{source:"iana",compressible:!0},"application/cose":{source:"iana"},"application/cose-key":{source:"iana"},"application/cose-key-set":{source:"iana"},"application/cpl+xml":{source:"iana",compressible:!0,extensions:["cpl"]},"application/csrattrs":{source:"iana"},"application/csta+xml":{source:"iana",compressible:!0},"application/cstadata+xml":{source:"iana",compressible:!0},"application/csvm+json":{source:"iana",compressible:!0},"application/cu-seeme":{source:"apache",extensions:["cu"]},"application/cwt":{source:"iana"},"application/cybercash":{source:"iana"},"application/dart":{compressible:!0},"application/dash+xml":{source:"iana",compressible:!0,extensions:["mpd"]},"application/dash-patch+xml":{source:"iana",compressible:!0,extensions:["mpp"]},"application/dashdelta":{source:"iana"},"application/davmount+xml":{source:"iana",compressible:!0,extensions:["davmount"]},"application/dca-rft":{source:"iana"},"application/dcd":{source:"iana"},"application/dec-dx":{source:"iana"},"application/dialog-info+xml":{source:"iana",compressible:!0},"application/dicom":{source:"iana"},"application/dicom+json":{source:"iana",compressible:!0},"application/dicom+xml":{source:"iana",compressible:!0},"application/dii":{source:"iana"},"application/dit":{source:"iana"},"application/dns":{source:"iana"},"application/dns+json":{source:"iana",compressible:!0},"application/dns-message":{source:"iana"},"application/docbook+xml":{source:"apache",compressible:!0,extensions:["dbk"]},"application/dots+cbor":{source:"iana"},"application/dskpp+xml":{source:"iana",compressible:!0},"application/dssc+der":{source:"iana",extensions:["dssc"]},"application/dssc+xml":{source:"iana",compressible:!0,extensions:["xdssc"]},"application/dvcs":{source:"iana"},"application/ecmascript":{source:"iana",compressible:!0,extensions:["es","ecma"]},"application/edi-consent":{source:"iana"},"application/edi-x12":{source:"iana",compressible:!1},"application/edifact":{source:"iana",compressible:!1},"application/efi":{source:"iana"},"application/elm+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/elm+xml":{source:"iana",compressible:!0},"application/emergencycalldata.cap+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/emergencycalldata.comment+xml":{source:"iana",compressible:!0},"application/emergencycalldata.control+xml":{source:"iana",compressible:!0},"application/emergencycalldata.deviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.ecall.msd":{source:"iana"},"application/emergencycalldata.providerinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.serviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.subscriberinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.veds+xml":{source:"iana",compressible:!0},"application/emma+xml":{source:"iana",compressible:!0,extensions:["emma"]},"application/emotionml+xml":{source:"iana",compressible:!0,extensions:["emotionml"]},"application/encaprtp":{source:"iana"},"application/epp+xml":{source:"iana",compressible:!0},"application/epub+zip":{source:"iana",compressible:!1,extensions:["epub"]},"application/eshop":{source:"iana"},"application/exi":{source:"iana",extensions:["exi"]},"application/expect-ct-report+json":{source:"iana",compressible:!0},"application/express":{source:"iana",extensions:["exp"]},"application/fastinfoset":{source:"iana"},"application/fastsoap":{source:"iana"},"application/fdt+xml":{source:"iana",compressible:!0,extensions:["fdt"]},"application/fhir+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/fhir+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/fido.trusted-apps+json":{compressible:!0},"application/fits":{source:"iana"},"application/flexfec":{source:"iana"},"application/font-sfnt":{source:"iana"},"application/font-tdpfr":{source:"iana",extensions:["pfr"]},"application/font-woff":{source:"iana",compressible:!1},"application/framework-attributes+xml":{source:"iana",compressible:!0},"application/geo+json":{source:"iana",compressible:!0,extensions:["geojson"]},"application/geo+json-seq":{source:"iana"},"application/geopackage+sqlite3":{source:"iana"},"application/geoxacml+xml":{source:"iana",compressible:!0},"application/gltf-buffer":{source:"iana"},"application/gml+xml":{source:"iana",compressible:!0,extensions:["gml"]},"application/gpx+xml":{source:"apache",compressible:!0,extensions:["gpx"]},"application/gxf":{source:"apache",extensions:["gxf"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/h224":{source:"iana"},"application/held+xml":{source:"iana",compressible:!0},"application/hjson":{extensions:["hjson"]},"application/http":{source:"iana"},"application/hyperstudio":{source:"iana",extensions:["stk"]},"application/ibe-key-request+xml":{source:"iana",compressible:!0},"application/ibe-pkg-reply+xml":{source:"iana",compressible:!0},"application/ibe-pp-data":{source:"iana"},"application/iges":{source:"iana"},"application/im-iscomposing+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/index":{source:"iana"},"application/index.cmd":{source:"iana"},"application/index.obj":{source:"iana"},"application/index.response":{source:"iana"},"application/index.vnd":{source:"iana"},"application/inkml+xml":{source:"iana",compressible:!0,extensions:["ink","inkml"]},"application/iotp":{source:"iana"},"application/ipfix":{source:"iana",extensions:["ipfix"]},"application/ipp":{source:"iana"},"application/isup":{source:"iana"},"application/its+xml":{source:"iana",compressible:!0,extensions:["its"]},"application/java-archive":{source:"apache",compressible:!1,extensions:["jar","war","ear"]},"application/java-serialized-object":{source:"apache",compressible:!1,extensions:["ser"]},"application/java-vm":{source:"apache",compressible:!1,extensions:["class"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"application/jf2feed+json":{source:"iana",compressible:!0},"application/jose":{source:"iana"},"application/jose+json":{source:"iana",compressible:!0},"application/jrd+json":{source:"iana",compressible:!0},"application/jscalendar+json":{source:"iana",compressible:!0},"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/json-patch+json":{source:"iana",compressible:!0},"application/json-seq":{source:"iana"},"application/json5":{extensions:["json5"]},"application/jsonml+json":{source:"apache",compressible:!0,extensions:["jsonml"]},"application/jwk+json":{source:"iana",compressible:!0},"application/jwk-set+json":{source:"iana",compressible:!0},"application/jwt":{source:"iana"},"application/kpml-request+xml":{source:"iana",compressible:!0},"application/kpml-response+xml":{source:"iana",compressible:!0},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/lgr+xml":{source:"iana",compressible:!0,extensions:["lgr"]},"application/link-format":{source:"iana"},"application/load-control+xml":{source:"iana",compressible:!0},"application/lost+xml":{source:"iana",compressible:!0,extensions:["lostxml"]},"application/lostsync+xml":{source:"iana",compressible:!0},"application/lpf+zip":{source:"iana",compressible:!1},"application/lxf":{source:"iana"},"application/mac-binhex40":{source:"iana",extensions:["hqx"]},"application/mac-compactpro":{source:"apache",extensions:["cpt"]},"application/macwriteii":{source:"iana"},"application/mads+xml":{source:"iana",compressible:!0,extensions:["mads"]},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/marc":{source:"iana",extensions:["mrc"]},"application/marcxml+xml":{source:"iana",compressible:!0,extensions:["mrcx"]},"application/mathematica":{source:"iana",extensions:["ma","nb","mb"]},"application/mathml+xml":{source:"iana",compressible:!0,extensions:["mathml"]},"application/mathml-content+xml":{source:"iana",compressible:!0},"application/mathml-presentation+xml":{source:"iana",compressible:!0},"application/mbms-associated-procedure-description+xml":{source:"iana",compressible:!0},"application/mbms-deregister+xml":{source:"iana",compressible:!0},"application/mbms-envelope+xml":{source:"iana",compressible:!0},"application/mbms-msk+xml":{source:"iana",compressible:!0},"application/mbms-msk-response+xml":{source:"iana",compressible:!0},"application/mbms-protection-description+xml":{source:"iana",compressible:!0},"application/mbms-reception-report+xml":{source:"iana",compressible:!0},"application/mbms-register+xml":{source:"iana",compressible:!0},"application/mbms-register-response+xml":{source:"iana",compressible:!0},"application/mbms-schedule+xml":{source:"iana",compressible:!0},"application/mbms-user-service-description+xml":{source:"iana",compressible:!0},"application/mbox":{source:"iana",extensions:["mbox"]},"application/media-policy-dataset+xml":{source:"iana",compressible:!0,extensions:["mpf"]},"application/media_control+xml":{source:"iana",compressible:!0},"application/mediaservercontrol+xml":{source:"iana",compressible:!0,extensions:["mscml"]},"application/merge-patch+json":{source:"iana",compressible:!0},"application/metalink+xml":{source:"apache",compressible:!0,extensions:["metalink"]},"application/metalink4+xml":{source:"iana",compressible:!0,extensions:["meta4"]},"application/mets+xml":{source:"iana",compressible:!0,extensions:["mets"]},"application/mf4":{source:"iana"},"application/mikey":{source:"iana"},"application/mipc":{source:"iana"},"application/missing-blocks+cbor-seq":{source:"iana"},"application/mmt-aei+xml":{source:"iana",compressible:!0,extensions:["maei"]},"application/mmt-usd+xml":{source:"iana",compressible:!0,extensions:["musd"]},"application/mods+xml":{source:"iana",compressible:!0,extensions:["mods"]},"application/moss-keys":{source:"iana"},"application/moss-signature":{source:"iana"},"application/mosskey-data":{source:"iana"},"application/mosskey-request":{source:"iana"},"application/mp21":{source:"iana",extensions:["m21","mp21"]},"application/mp4":{source:"iana",extensions:["mp4s","m4p"]},"application/mpeg4-generic":{source:"iana"},"application/mpeg4-iod":{source:"iana"},"application/mpeg4-iod-xmt":{source:"iana"},"application/mrb-consumer+xml":{source:"iana",compressible:!0},"application/mrb-publish+xml":{source:"iana",compressible:!0},"application/msc-ivr+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msc-mixer+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msword":{source:"iana",compressible:!1,extensions:["doc","dot"]},"application/mud+json":{source:"iana",compressible:!0},"application/multipart-core":{source:"iana"},"application/mxf":{source:"iana",extensions:["mxf"]},"application/n-quads":{source:"iana",extensions:["nq"]},"application/n-triples":{source:"iana",extensions:["nt"]},"application/nasdata":{source:"iana"},"application/news-checkgroups":{source:"iana",charset:"US-ASCII"},"application/news-groupinfo":{source:"iana",charset:"US-ASCII"},"application/news-transmission":{source:"iana"},"application/nlsml+xml":{source:"iana",compressible:!0},"application/node":{source:"iana",extensions:["cjs"]},"application/nss":{source:"iana"},"application/oauth-authz-req+jwt":{source:"iana"},"application/oblivious-dns-message":{source:"iana"},"application/ocsp-request":{source:"iana"},"application/ocsp-response":{source:"iana"},"application/octet-stream":{source:"iana",compressible:!1,extensions:["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{source:"iana",extensions:["oda"]},"application/odm+xml":{source:"iana",compressible:!0},"application/odx":{source:"iana"},"application/oebps-package+xml":{source:"iana",compressible:!0,extensions:["opf"]},"application/ogg":{source:"iana",compressible:!1,extensions:["ogx"]},"application/omdoc+xml":{source:"apache",compressible:!0,extensions:["omdoc"]},"application/onenote":{source:"apache",extensions:["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{source:"iana",compressible:!0},"application/oscore":{source:"iana"},"application/oxps":{source:"iana",extensions:["oxps"]},"application/p21":{source:"iana"},"application/p21+zip":{source:"iana",compressible:!1},"application/p2p-overlay+xml":{source:"iana",compressible:!0,extensions:["relo"]},"application/parityfec":{source:"iana"},"application/passport":{source:"iana"},"application/patch-ops-error+xml":{source:"iana",compressible:!0,extensions:["xer"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/pdx":{source:"iana"},"application/pem-certificate-chain":{source:"iana"},"application/pgp-encrypted":{source:"iana",compressible:!1,extensions:["pgp"]},"application/pgp-keys":{source:"iana",extensions:["asc"]},"application/pgp-signature":{source:"iana",extensions:["asc","sig"]},"application/pics-rules":{source:"apache",extensions:["prf"]},"application/pidf+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pidf-diff+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pkcs10":{source:"iana",extensions:["p10"]},"application/pkcs12":{source:"iana"},"application/pkcs7-mime":{source:"iana",extensions:["p7m","p7c"]},"application/pkcs7-signature":{source:"iana",extensions:["p7s"]},"application/pkcs8":{source:"iana",extensions:["p8"]},"application/pkcs8-encrypted":{source:"iana"},"application/pkix-attr-cert":{source:"iana",extensions:["ac"]},"application/pkix-cert":{source:"iana",extensions:["cer"]},"application/pkix-crl":{source:"iana",extensions:["crl"]},"application/pkix-pkipath":{source:"iana",extensions:["pkipath"]},"application/pkixcmp":{source:"iana",extensions:["pki"]},"application/pls+xml":{source:"iana",compressible:!0,extensions:["pls"]},"application/poc-settings+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/postscript":{source:"iana",compressible:!0,extensions:["ai","eps","ps"]},"application/ppsp-tracker+json":{source:"iana",compressible:!0},"application/problem+json":{source:"iana",compressible:!0},"application/problem+xml":{source:"iana",compressible:!0},"application/provenance+xml":{source:"iana",compressible:!0,extensions:["provx"]},"application/prs.alvestrand.titrax-sheet":{source:"iana"},"application/prs.cww":{source:"iana",extensions:["cww"]},"application/prs.cyn":{source:"iana",charset:"7-BIT"},"application/prs.hpub+zip":{source:"iana",compressible:!1},"application/prs.nprend":{source:"iana"},"application/prs.plucker":{source:"iana"},"application/prs.rdf-xml-crypt":{source:"iana"},"application/prs.xsf+xml":{source:"iana",compressible:!0},"application/pskc+xml":{source:"iana",compressible:!0,extensions:["pskcxml"]},"application/pvd+json":{source:"iana",compressible:!0},"application/qsig":{source:"iana"},"application/raml+yaml":{compressible:!0,extensions:["raml"]},"application/raptorfec":{source:"iana"},"application/rdap+json":{source:"iana",compressible:!0},"application/rdf+xml":{source:"iana",compressible:!0,extensions:["rdf","owl"]},"application/reginfo+xml":{source:"iana",compressible:!0,extensions:["rif"]},"application/relax-ng-compact-syntax":{source:"iana",extensions:["rnc"]},"application/remote-printing":{source:"iana"},"application/reputon+json":{source:"iana",compressible:!0},"application/resource-lists+xml":{source:"iana",compressible:!0,extensions:["rl"]},"application/resource-lists-diff+xml":{source:"iana",compressible:!0,extensions:["rld"]},"application/rfc+xml":{source:"iana",compressible:!0},"application/riscos":{source:"iana"},"application/rlmi+xml":{source:"iana",compressible:!0},"application/rls-services+xml":{source:"iana",compressible:!0,extensions:["rs"]},"application/route-apd+xml":{source:"iana",compressible:!0,extensions:["rapd"]},"application/route-s-tsid+xml":{source:"iana",compressible:!0,extensions:["sls"]},"application/route-usd+xml":{source:"iana",compressible:!0,extensions:["rusd"]},"application/rpki-ghostbusters":{source:"iana",extensions:["gbr"]},"application/rpki-manifest":{source:"iana",extensions:["mft"]},"application/rpki-publication":{source:"iana"},"application/rpki-roa":{source:"iana",extensions:["roa"]},"application/rpki-updown":{source:"iana"},"application/rsd+xml":{source:"apache",compressible:!0,extensions:["rsd"]},"application/rss+xml":{source:"apache",compressible:!0,extensions:["rss"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/rtploopback":{source:"iana"},"application/rtx":{source:"iana"},"application/samlassertion+xml":{source:"iana",compressible:!0},"application/samlmetadata+xml":{source:"iana",compressible:!0},"application/sarif+json":{source:"iana",compressible:!0},"application/sarif-external-properties+json":{source:"iana",compressible:!0},"application/sbe":{source:"iana"},"application/sbml+xml":{source:"iana",compressible:!0,extensions:["sbml"]},"application/scaip+xml":{source:"iana",compressible:!0},"application/scim+json":{source:"iana",compressible:!0},"application/scvp-cv-request":{source:"iana",extensions:["scq"]},"application/scvp-cv-response":{source:"iana",extensions:["scs"]},"application/scvp-vp-request":{source:"iana",extensions:["spq"]},"application/scvp-vp-response":{source:"iana",extensions:["spp"]},"application/sdp":{source:"iana",extensions:["sdp"]},"application/secevent+jwt":{source:"iana"},"application/senml+cbor":{source:"iana"},"application/senml+json":{source:"iana",compressible:!0},"application/senml+xml":{source:"iana",compressible:!0,extensions:["senmlx"]},"application/senml-etch+cbor":{source:"iana"},"application/senml-etch+json":{source:"iana",compressible:!0},"application/senml-exi":{source:"iana"},"application/sensml+cbor":{source:"iana"},"application/sensml+json":{source:"iana",compressible:!0},"application/sensml+xml":{source:"iana",compressible:!0,extensions:["sensmlx"]},"application/sensml-exi":{source:"iana"},"application/sep+xml":{source:"iana",compressible:!0},"application/sep-exi":{source:"iana"},"application/session-info":{source:"iana"},"application/set-payment":{source:"iana"},"application/set-payment-initiation":{source:"iana",extensions:["setpay"]},"application/set-registration":{source:"iana"},"application/set-registration-initiation":{source:"iana",extensions:["setreg"]},"application/sgml":{source:"iana"},"application/sgml-open-catalog":{source:"iana"},"application/shf+xml":{source:"iana",compressible:!0,extensions:["shf"]},"application/sieve":{source:"iana",extensions:["siv","sieve"]},"application/simple-filter+xml":{source:"iana",compressible:!0},"application/simple-message-summary":{source:"iana"},"application/simplesymbolcontainer":{source:"iana"},"application/sipc":{source:"iana"},"application/slate":{source:"iana"},"application/smil":{source:"iana"},"application/smil+xml":{source:"iana",compressible:!0,extensions:["smi","smil"]},"application/smpte336m":{source:"iana"},"application/soap+fastinfoset":{source:"iana"},"application/soap+xml":{source:"iana",compressible:!0},"application/sparql-query":{source:"iana",extensions:["rq"]},"application/sparql-results+xml":{source:"iana",compressible:!0,extensions:["srx"]},"application/spdx+json":{source:"iana",compressible:!0},"application/spirits-event+xml":{source:"iana",compressible:!0},"application/sql":{source:"iana"},"application/srgs":{source:"iana",extensions:["gram"]},"application/srgs+xml":{source:"iana",compressible:!0,extensions:["grxml"]},"application/sru+xml":{source:"iana",compressible:!0,extensions:["sru"]},"application/ssdl+xml":{source:"apache",compressible:!0,extensions:["ssdl"]},"application/ssml+xml":{source:"iana",compressible:!0,extensions:["ssml"]},"application/stix+json":{source:"iana",compressible:!0},"application/swid+xml":{source:"iana",compressible:!0,extensions:["swidtag"]},"application/tamp-apex-update":{source:"iana"},"application/tamp-apex-update-confirm":{source:"iana"},"application/tamp-community-update":{source:"iana"},"application/tamp-community-update-confirm":{source:"iana"},"application/tamp-error":{source:"iana"},"application/tamp-sequence-adjust":{source:"iana"},"application/tamp-sequence-adjust-confirm":{source:"iana"},"application/tamp-status-query":{source:"iana"},"application/tamp-status-response":{source:"iana"},"application/tamp-update":{source:"iana"},"application/tamp-update-confirm":{source:"iana"},"application/tar":{compressible:!0},"application/taxii+json":{source:"iana",compressible:!0},"application/td+json":{source:"iana",compressible:!0},"application/tei+xml":{source:"iana",compressible:!0,extensions:["tei","teicorpus"]},"application/tetra_isi":{source:"iana"},"application/thraud+xml":{source:"iana",compressible:!0,extensions:["tfi"]},"application/timestamp-query":{source:"iana"},"application/timestamp-reply":{source:"iana"},"application/timestamped-data":{source:"iana",extensions:["tsd"]},"application/tlsrpt+gzip":{source:"iana"},"application/tlsrpt+json":{source:"iana",compressible:!0},"application/tnauthlist":{source:"iana"},"application/token-introspection+jwt":{source:"iana"},"application/toml":{compressible:!0,extensions:["toml"]},"application/trickle-ice-sdpfrag":{source:"iana"},"application/trig":{source:"iana",extensions:["trig"]},"application/ttml+xml":{source:"iana",compressible:!0,extensions:["ttml"]},"application/tve-trigger":{source:"iana"},"application/tzif":{source:"iana"},"application/tzif-leap":{source:"iana"},"application/ubjson":{compressible:!1,extensions:["ubj"]},"application/ulpfec":{source:"iana"},"application/urc-grpsheet+xml":{source:"iana",compressible:!0},"application/urc-ressheet+xml":{source:"iana",compressible:!0,extensions:["rsheet"]},"application/urc-targetdesc+xml":{source:"iana",compressible:!0,extensions:["td"]},"application/urc-uisocketdesc+xml":{source:"iana",compressible:!0},"application/vcard+json":{source:"iana",compressible:!0},"application/vcard+xml":{source:"iana",compressible:!0},"application/vemmi":{source:"iana"},"application/vividence.scriptfile":{source:"apache"},"application/vnd.1000minds.decision-model+xml":{source:"iana",compressible:!0,extensions:["1km"]},"application/vnd.3gpp-prose+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc3ch+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-v2x-local-service-information":{source:"iana"},"application/vnd.3gpp.5gnas":{source:"iana"},"application/vnd.3gpp.access-transfer-events+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.bsf+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gmop+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gtpc":{source:"iana"},"application/vnd.3gpp.interworking-data":{source:"iana"},"application/vnd.3gpp.lpp":{source:"iana"},"application/vnd.3gpp.mc-signalling-ear":{source:"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-payload":{source:"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-signalling":{source:"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-floor-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-signed+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mid-call+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ngap":{source:"iana"},"application/vnd.3gpp.pfcp":{source:"iana"},"application/vnd.3gpp.pic-bw-large":{source:"iana",extensions:["plb"]},"application/vnd.3gpp.pic-bw-small":{source:"iana",extensions:["psb"]},"application/vnd.3gpp.pic-bw-var":{source:"iana",extensions:["pvb"]},"application/vnd.3gpp.s1ap":{source:"iana"},"application/vnd.3gpp.sms":{source:"iana"},"application/vnd.3gpp.sms+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-ext+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.state-and-event-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ussd+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.bcmcsinfo+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.sms":{source:"iana"},"application/vnd.3gpp2.tcap":{source:"iana",extensions:["tcap"]},"application/vnd.3lightssoftware.imagescal":{source:"iana"},"application/vnd.3m.post-it-notes":{source:"iana",extensions:["pwn"]},"application/vnd.accpac.simply.aso":{source:"iana",extensions:["aso"]},"application/vnd.accpac.simply.imp":{source:"iana",extensions:["imp"]},"application/vnd.acucobol":{source:"iana",extensions:["acu"]},"application/vnd.acucorp":{source:"iana",extensions:["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{source:"apache",compressible:!1,extensions:["air"]},"application/vnd.adobe.flash.movie":{source:"iana"},"application/vnd.adobe.formscentral.fcdt":{source:"iana",extensions:["fcdt"]},"application/vnd.adobe.fxp":{source:"iana",extensions:["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{source:"iana"},"application/vnd.adobe.xdp+xml":{source:"iana",compressible:!0,extensions:["xdp"]},"application/vnd.adobe.xfdf":{source:"iana",extensions:["xfdf"]},"application/vnd.aether.imp":{source:"iana"},"application/vnd.afpc.afplinedata":{source:"iana"},"application/vnd.afpc.afplinedata-pagedef":{source:"iana"},"application/vnd.afpc.cmoca-cmresource":{source:"iana"},"application/vnd.afpc.foca-charset":{source:"iana"},"application/vnd.afpc.foca-codedfont":{source:"iana"},"application/vnd.afpc.foca-codepage":{source:"iana"},"application/vnd.afpc.modca":{source:"iana"},"application/vnd.afpc.modca-cmtable":{source:"iana"},"application/vnd.afpc.modca-formdef":{source:"iana"},"application/vnd.afpc.modca-mediummap":{source:"iana"},"application/vnd.afpc.modca-objectcontainer":{source:"iana"},"application/vnd.afpc.modca-overlay":{source:"iana"},"application/vnd.afpc.modca-pagesegment":{source:"iana"},"application/vnd.age":{source:"iana",extensions:["age"]},"application/vnd.ah-barcode":{source:"iana"},"application/vnd.ahead.space":{source:"iana",extensions:["ahead"]},"application/vnd.airzip.filesecure.azf":{source:"iana",extensions:["azf"]},"application/vnd.airzip.filesecure.azs":{source:"iana",extensions:["azs"]},"application/vnd.amadeus+json":{source:"iana",compressible:!0},"application/vnd.amazon.ebook":{source:"apache",extensions:["azw"]},"application/vnd.amazon.mobi8-ebook":{source:"iana"},"application/vnd.americandynamics.acc":{source:"iana",extensions:["acc"]},"application/vnd.amiga.ami":{source:"iana",extensions:["ami"]},"application/vnd.amundsen.maze+xml":{source:"iana",compressible:!0},"application/vnd.android.ota":{source:"iana"},"application/vnd.android.package-archive":{source:"apache",compressible:!1,extensions:["apk"]},"application/vnd.anki":{source:"iana"},"application/vnd.anser-web-certificate-issue-initiation":{source:"iana",extensions:["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{source:"apache",extensions:["fti"]},"application/vnd.antix.game-component":{source:"iana",extensions:["atx"]},"application/vnd.apache.arrow.file":{source:"iana"},"application/vnd.apache.arrow.stream":{source:"iana"},"application/vnd.apache.thrift.binary":{source:"iana"},"application/vnd.apache.thrift.compact":{source:"iana"},"application/vnd.apache.thrift.json":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/vnd.aplextor.warrp+json":{source:"iana",compressible:!0},"application/vnd.apothekende.reservation+json":{source:"iana",compressible:!0},"application/vnd.apple.installer+xml":{source:"iana",compressible:!0,extensions:["mpkg"]},"application/vnd.apple.keynote":{source:"iana",extensions:["key"]},"application/vnd.apple.mpegurl":{source:"iana",extensions:["m3u8"]},"application/vnd.apple.numbers":{source:"iana",extensions:["numbers"]},"application/vnd.apple.pages":{source:"iana",extensions:["pages"]},"application/vnd.apple.pkpass":{compressible:!1,extensions:["pkpass"]},"application/vnd.arastra.swi":{source:"iana"},"application/vnd.aristanetworks.swi":{source:"iana",extensions:["swi"]},"application/vnd.artisan+json":{source:"iana",compressible:!0},"application/vnd.artsquare":{source:"iana"},"application/vnd.astraea-software.iota":{source:"iana",extensions:["iota"]},"application/vnd.audiograph":{source:"iana",extensions:["aep"]},"application/vnd.autopackage":{source:"iana"},"application/vnd.avalon+json":{source:"iana",compressible:!0},"application/vnd.avistar+xml":{source:"iana",compressible:!0},"application/vnd.balsamiq.bmml+xml":{source:"iana",compressible:!0,extensions:["bmml"]},"application/vnd.balsamiq.bmpr":{source:"iana"},"application/vnd.banana-accounting":{source:"iana"},"application/vnd.bbf.usp.error":{source:"iana"},"application/vnd.bbf.usp.msg":{source:"iana"},"application/vnd.bbf.usp.msg+json":{source:"iana",compressible:!0},"application/vnd.bekitzur-stech+json":{source:"iana",compressible:!0},"application/vnd.bint.med-content":{source:"iana"},"application/vnd.biopax.rdf+xml":{source:"iana",compressible:!0},"application/vnd.blink-idb-value-wrapper":{source:"iana"},"application/vnd.blueice.multipass":{source:"iana",extensions:["mpm"]},"application/vnd.bluetooth.ep.oob":{source:"iana"},"application/vnd.bluetooth.le.oob":{source:"iana"},"application/vnd.bmi":{source:"iana",extensions:["bmi"]},"application/vnd.bpf":{source:"iana"},"application/vnd.bpf3":{source:"iana"},"application/vnd.businessobjects":{source:"iana",extensions:["rep"]},"application/vnd.byu.uapi+json":{source:"iana",compressible:!0},"application/vnd.cab-jscript":{source:"iana"},"application/vnd.canon-cpdl":{source:"iana"},"application/vnd.canon-lips":{source:"iana"},"application/vnd.capasystems-pg+json":{source:"iana",compressible:!0},"application/vnd.cendio.thinlinc.clientconf":{source:"iana"},"application/vnd.century-systems.tcp_stream":{source:"iana"},"application/vnd.chemdraw+xml":{source:"iana",compressible:!0,extensions:["cdxml"]},"application/vnd.chess-pgn":{source:"iana"},"application/vnd.chipnuts.karaoke-mmd":{source:"iana",extensions:["mmd"]},"application/vnd.ciedi":{source:"iana"},"application/vnd.cinderella":{source:"iana",extensions:["cdy"]},"application/vnd.cirpack.isdn-ext":{source:"iana"},"application/vnd.citationstyles.style+xml":{source:"iana",compressible:!0,extensions:["csl"]},"application/vnd.claymore":{source:"iana",extensions:["cla"]},"application/vnd.cloanto.rp9":{source:"iana",extensions:["rp9"]},"application/vnd.clonk.c4group":{source:"iana",extensions:["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{source:"iana",extensions:["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{source:"iana",extensions:["c11amz"]},"application/vnd.coffeescript":{source:"iana"},"application/vnd.collabio.xodocuments.document":{source:"iana"},"application/vnd.collabio.xodocuments.document-template":{source:"iana"},"application/vnd.collabio.xodocuments.presentation":{source:"iana"},"application/vnd.collabio.xodocuments.presentation-template":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{source:"iana"},"application/vnd.collection+json":{source:"iana",compressible:!0},"application/vnd.collection.doc+json":{source:"iana",compressible:!0},"application/vnd.collection.next+json":{source:"iana",compressible:!0},"application/vnd.comicbook+zip":{source:"iana",compressible:!1},"application/vnd.comicbook-rar":{source:"iana"},"application/vnd.commerce-battelle":{source:"iana"},"application/vnd.commonspace":{source:"iana",extensions:["csp"]},"application/vnd.contact.cmsg":{source:"iana",extensions:["cdbcmsg"]},"application/vnd.coreos.ignition+json":{source:"iana",compressible:!0},"application/vnd.cosmocaller":{source:"iana",extensions:["cmc"]},"application/vnd.crick.clicker":{source:"iana",extensions:["clkx"]},"application/vnd.crick.clicker.keyboard":{source:"iana",extensions:["clkk"]},"application/vnd.crick.clicker.palette":{source:"iana",extensions:["clkp"]},"application/vnd.crick.clicker.template":{source:"iana",extensions:["clkt"]},"application/vnd.crick.clicker.wordbank":{source:"iana",extensions:["clkw"]},"application/vnd.criticaltools.wbs+xml":{source:"iana",compressible:!0,extensions:["wbs"]},"application/vnd.cryptii.pipe+json":{source:"iana",compressible:!0},"application/vnd.crypto-shade-file":{source:"iana"},"application/vnd.cryptomator.encrypted":{source:"iana"},"application/vnd.cryptomator.vault":{source:"iana"},"application/vnd.ctc-posml":{source:"iana",extensions:["pml"]},"application/vnd.ctct.ws+xml":{source:"iana",compressible:!0},"application/vnd.cups-pdf":{source:"iana"},"application/vnd.cups-postscript":{source:"iana"},"application/vnd.cups-ppd":{source:"iana",extensions:["ppd"]},"application/vnd.cups-raster":{source:"iana"},"application/vnd.cups-raw":{source:"iana"},"application/vnd.curl":{source:"iana"},"application/vnd.curl.car":{source:"apache",extensions:["car"]},"application/vnd.curl.pcurl":{source:"apache",extensions:["pcurl"]},"application/vnd.cyan.dean.root+xml":{source:"iana",compressible:!0},"application/vnd.cybank":{source:"iana"},"application/vnd.cyclonedx+json":{source:"iana",compressible:!0},"application/vnd.cyclonedx+xml":{source:"iana",compressible:!0},"application/vnd.d2l.coursepackage1p0+zip":{source:"iana",compressible:!1},"application/vnd.d3m-dataset":{source:"iana"},"application/vnd.d3m-problem":{source:"iana"},"application/vnd.dart":{source:"iana",compressible:!0,extensions:["dart"]},"application/vnd.data-vision.rdz":{source:"iana",extensions:["rdz"]},"application/vnd.datapackage+json":{source:"iana",compressible:!0},"application/vnd.dataresource+json":{source:"iana",compressible:!0},"application/vnd.dbf":{source:"iana",extensions:["dbf"]},"application/vnd.debian.binary-package":{source:"iana"},"application/vnd.dece.data":{source:"iana",extensions:["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{source:"iana",compressible:!0,extensions:["uvt","uvvt"]},"application/vnd.dece.unspecified":{source:"iana",extensions:["uvx","uvvx"]},"application/vnd.dece.zip":{source:"iana",extensions:["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{source:"iana",extensions:["fe_launch"]},"application/vnd.desmume.movie":{source:"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{source:"iana"},"application/vnd.dm.delegation+xml":{source:"iana",compressible:!0},"application/vnd.dna":{source:"iana",extensions:["dna"]},"application/vnd.document+json":{source:"iana",compressible:!0},"application/vnd.dolby.mlp":{source:"apache",extensions:["mlp"]},"application/vnd.dolby.mobile.1":{source:"iana"},"application/vnd.dolby.mobile.2":{source:"iana"},"application/vnd.doremir.scorecloud-binary-document":{source:"iana"},"application/vnd.dpgraph":{source:"iana",extensions:["dpg"]},"application/vnd.dreamfactory":{source:"iana",extensions:["dfac"]},"application/vnd.drive+json":{source:"iana",compressible:!0},"application/vnd.ds-keypoint":{source:"apache",extensions:["kpxx"]},"application/vnd.dtg.local":{source:"iana"},"application/vnd.dtg.local.flash":{source:"iana"},"application/vnd.dtg.local.html":{source:"iana"},"application/vnd.dvb.ait":{source:"iana",extensions:["ait"]},"application/vnd.dvb.dvbisl+xml":{source:"iana",compressible:!0},"application/vnd.dvb.dvbj":{source:"iana"},"application/vnd.dvb.esgcontainer":{source:"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess2":{source:"iana"},"application/vnd.dvb.ipdcesgpdd":{source:"iana"},"application/vnd.dvb.ipdcroaming":{source:"iana"},"application/vnd.dvb.iptv.alfec-base":{source:"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{source:"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-container+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-generic+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-msglist+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-request+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-response+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-init+xml":{source:"iana",compressible:!0},"application/vnd.dvb.pfr":{source:"iana"},"application/vnd.dvb.service":{source:"iana",extensions:["svc"]},"application/vnd.dxr":{source:"iana"},"application/vnd.dynageo":{source:"iana",extensions:["geo"]},"application/vnd.dzr":{source:"iana"},"application/vnd.easykaraoke.cdgdownload":{source:"iana"},"application/vnd.ecdis-update":{source:"iana"},"application/vnd.ecip.rlp":{source:"iana"},"application/vnd.eclipse.ditto+json":{source:"iana",compressible:!0},"application/vnd.ecowin.chart":{source:"iana",extensions:["mag"]},"application/vnd.ecowin.filerequest":{source:"iana"},"application/vnd.ecowin.fileupdate":{source:"iana"},"application/vnd.ecowin.series":{source:"iana"},"application/vnd.ecowin.seriesrequest":{source:"iana"},"application/vnd.ecowin.seriesupdate":{source:"iana"},"application/vnd.efi.img":{source:"iana"},"application/vnd.efi.iso":{source:"iana"},"application/vnd.emclient.accessrequest+xml":{source:"iana",compressible:!0},"application/vnd.enliven":{source:"iana",extensions:["nml"]},"application/vnd.enphase.envoy":{source:"iana"},"application/vnd.eprints.data+xml":{source:"iana",compressible:!0},"application/vnd.epson.esf":{source:"iana",extensions:["esf"]},"application/vnd.epson.msf":{source:"iana",extensions:["msf"]},"application/vnd.epson.quickanime":{source:"iana",extensions:["qam"]},"application/vnd.epson.salt":{source:"iana",extensions:["slt"]},"application/vnd.epson.ssf":{source:"iana",extensions:["ssf"]},"application/vnd.ericsson.quickcall":{source:"iana"},"application/vnd.espass-espass+zip":{source:"iana",compressible:!1},"application/vnd.eszigno3+xml":{source:"iana",compressible:!0,extensions:["es3","et3"]},"application/vnd.etsi.aoc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.asic-e+zip":{source:"iana",compressible:!1},"application/vnd.etsi.asic-s+zip":{source:"iana",compressible:!1},"application/vnd.etsi.cug+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvcommand+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-bc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-cod+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-npvr+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvservice+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsync+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvueprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mcid+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mheg5":{source:"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:"iana",compressible:!0},"application/vnd.etsi.pstn+xml":{source:"iana",compressible:!0},"application/vnd.etsi.sci+xml":{source:"iana",compressible:!0},"application/vnd.etsi.simservs+xml":{source:"iana",compressible:!0},"application/vnd.etsi.timestamp-token":{source:"iana"},"application/vnd.etsi.tsl+xml":{source:"iana",compressible:!0},"application/vnd.etsi.tsl.der":{source:"iana"},"application/vnd.eu.kasparian.car+json":{source:"iana",compressible:!0},"application/vnd.eudora.data":{source:"iana"},"application/vnd.evolv.ecig.profile":{source:"iana"},"application/vnd.evolv.ecig.settings":{source:"iana"},"application/vnd.evolv.ecig.theme":{source:"iana"},"application/vnd.exstream-empower+zip":{source:"iana",compressible:!1},"application/vnd.exstream-package":{source:"iana"},"application/vnd.ezpix-album":{source:"iana",extensions:["ez2"]},"application/vnd.ezpix-package":{source:"iana",extensions:["ez3"]},"application/vnd.f-secure.mobile":{source:"iana"},"application/vnd.familysearch.gedcom+zip":{source:"iana",compressible:!1},"application/vnd.fastcopy-disk-image":{source:"iana"},"application/vnd.fdf":{source:"iana",extensions:["fdf"]},"application/vnd.fdsn.mseed":{source:"iana",extensions:["mseed"]},"application/vnd.fdsn.seed":{source:"iana",extensions:["seed","dataless"]},"application/vnd.ffsns":{source:"iana"},"application/vnd.ficlab.flb+zip":{source:"iana",compressible:!1},"application/vnd.filmit.zfc":{source:"iana"},"application/vnd.fints":{source:"iana"},"application/vnd.firemonkeys.cloudcell":{source:"iana"},"application/vnd.flographit":{source:"iana",extensions:["gph"]},"application/vnd.fluxtime.clip":{source:"iana",extensions:["ftc"]},"application/vnd.font-fontforge-sfd":{source:"iana"},"application/vnd.framemaker":{source:"iana",extensions:["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{source:"iana",extensions:["fnc"]},"application/vnd.frogans.ltf":{source:"iana",extensions:["ltf"]},"application/vnd.fsc.weblaunch":{source:"iana",extensions:["fsc"]},"application/vnd.fujifilm.fb.docuworks":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.container":{source:"iana"},"application/vnd.fujifilm.fb.jfi+xml":{source:"iana",compressible:!0},"application/vnd.fujitsu.oasys":{source:"iana",extensions:["oas"]},"application/vnd.fujitsu.oasys2":{source:"iana",extensions:["oa2"]},"application/vnd.fujitsu.oasys3":{source:"iana",extensions:["oa3"]},"application/vnd.fujitsu.oasysgp":{source:"iana",extensions:["fg5"]},"application/vnd.fujitsu.oasysprs":{source:"iana",extensions:["bh2"]},"application/vnd.fujixerox.art-ex":{source:"iana"},"application/vnd.fujixerox.art4":{source:"iana"},"application/vnd.fujixerox.ddd":{source:"iana",extensions:["ddd"]},"application/vnd.fujixerox.docuworks":{source:"iana",extensions:["xdw"]},"application/vnd.fujixerox.docuworks.binder":{source:"iana",extensions:["xbd"]},"application/vnd.fujixerox.docuworks.container":{source:"iana"},"application/vnd.fujixerox.hbpl":{source:"iana"},"application/vnd.fut-misnet":{source:"iana"},"application/vnd.futoin+cbor":{source:"iana"},"application/vnd.futoin+json":{source:"iana",compressible:!0},"application/vnd.fuzzysheet":{source:"iana",extensions:["fzs"]},"application/vnd.genomatix.tuxedo":{source:"iana",extensions:["txd"]},"application/vnd.gentics.grd+json":{source:"iana",compressible:!0},"application/vnd.geo+json":{source:"iana",compressible:!0},"application/vnd.geocube+xml":{source:"iana",compressible:!0},"application/vnd.geogebra.file":{source:"iana",extensions:["ggb"]},"application/vnd.geogebra.slides":{source:"iana"},"application/vnd.geogebra.tool":{source:"iana",extensions:["ggt"]},"application/vnd.geometry-explorer":{source:"iana",extensions:["gex","gre"]},"application/vnd.geonext":{source:"iana",extensions:["gxt"]},"application/vnd.geoplan":{source:"iana",extensions:["g2w"]},"application/vnd.geospace":{source:"iana",extensions:["g3w"]},"application/vnd.gerber":{source:"iana"},"application/vnd.globalplatform.card-content-mgt":{source:"iana"},"application/vnd.globalplatform.card-content-mgt-response":{source:"iana"},"application/vnd.gmx":{source:"iana",extensions:["gmx"]},"application/vnd.google-apps.document":{compressible:!1,extensions:["gdoc"]},"application/vnd.google-apps.presentation":{compressible:!1,extensions:["gslides"]},"application/vnd.google-apps.spreadsheet":{compressible:!1,extensions:["gsheet"]},"application/vnd.google-earth.kml+xml":{source:"iana",compressible:!0,extensions:["kml"]},"application/vnd.google-earth.kmz":{source:"iana",compressible:!1,extensions:["kmz"]},"application/vnd.gov.sk.e-form+xml":{source:"iana",compressible:!0},"application/vnd.gov.sk.e-form+zip":{source:"iana",compressible:!1},"application/vnd.gov.sk.xmldatacontainer+xml":{source:"iana",compressible:!0},"application/vnd.grafeq":{source:"iana",extensions:["gqf","gqs"]},"application/vnd.gridmp":{source:"iana"},"application/vnd.groove-account":{source:"iana",extensions:["gac"]},"application/vnd.groove-help":{source:"iana",extensions:["ghf"]},"application/vnd.groove-identity-message":{source:"iana",extensions:["gim"]},"application/vnd.groove-injector":{source:"iana",extensions:["grv"]},"application/vnd.groove-tool-message":{source:"iana",extensions:["gtm"]},"application/vnd.groove-tool-template":{source:"iana",extensions:["tpl"]},"application/vnd.groove-vcard":{source:"iana",extensions:["vcg"]},"application/vnd.hal+json":{source:"iana",compressible:!0},"application/vnd.hal+xml":{source:"iana",compressible:!0,extensions:["hal"]},"application/vnd.handheld-entertainment+xml":{source:"iana",compressible:!0,extensions:["zmm"]},"application/vnd.hbci":{source:"iana",extensions:["hbci"]},"application/vnd.hc+json":{source:"iana",compressible:!0},"application/vnd.hcl-bireports":{source:"iana"},"application/vnd.hdt":{source:"iana"},"application/vnd.heroku+json":{source:"iana",compressible:!0},"application/vnd.hhe.lesson-player":{source:"iana",extensions:["les"]},"application/vnd.hl7cda+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hl7v2+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hp-hpgl":{source:"iana",extensions:["hpgl"]},"application/vnd.hp-hpid":{source:"iana",extensions:["hpid"]},"application/vnd.hp-hps":{source:"iana",extensions:["hps"]},"application/vnd.hp-jlyt":{source:"iana",extensions:["jlt"]},"application/vnd.hp-pcl":{source:"iana",extensions:["pcl"]},"application/vnd.hp-pclxl":{source:"iana",extensions:["pclxl"]},"application/vnd.httphone":{source:"iana"},"application/vnd.hydrostatix.sof-data":{source:"iana",extensions:["sfd-hdstx"]},"application/vnd.hyper+json":{source:"iana",compressible:!0},"application/vnd.hyper-item+json":{source:"iana",compressible:!0},"application/vnd.hyperdrive+json":{source:"iana",compressible:!0},"application/vnd.hzn-3d-crossword":{source:"iana"},"application/vnd.ibm.afplinedata":{source:"iana"},"application/vnd.ibm.electronic-media":{source:"iana"},"application/vnd.ibm.minipay":{source:"iana",extensions:["mpy"]},"application/vnd.ibm.modcap":{source:"iana",extensions:["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{source:"iana",extensions:["irm"]},"application/vnd.ibm.secure-container":{source:"iana",extensions:["sc"]},"application/vnd.iccprofile":{source:"iana",extensions:["icc","icm"]},"application/vnd.ieee.1905":{source:"iana"},"application/vnd.igloader":{source:"iana",extensions:["igl"]},"application/vnd.imagemeter.folder+zip":{source:"iana",compressible:!1},"application/vnd.imagemeter.image+zip":{source:"iana",compressible:!1},"application/vnd.immervision-ivp":{source:"iana",extensions:["ivp"]},"application/vnd.immervision-ivu":{source:"iana",extensions:["ivu"]},"application/vnd.ims.imsccv1p1":{source:"iana"},"application/vnd.ims.imsccv1p2":{source:"iana"},"application/vnd.ims.imsccv1p3":{source:"iana"},"application/vnd.ims.lis.v2.result+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:"iana",compressible:!0},"application/vnd.informedcontrol.rms+xml":{source:"iana",compressible:!0},"application/vnd.informix-visionary":{source:"iana"},"application/vnd.infotech.project":{source:"iana"},"application/vnd.infotech.project+xml":{source:"iana",compressible:!0},"application/vnd.innopath.wamp.notification":{source:"iana"},"application/vnd.insors.igm":{source:"iana",extensions:["igm"]},"application/vnd.intercon.formnet":{source:"iana",extensions:["xpw","xpx"]},"application/vnd.intergeo":{source:"iana",extensions:["i2g"]},"application/vnd.intertrust.digibox":{source:"iana"},"application/vnd.intertrust.nncp":{source:"iana"},"application/vnd.intu.qbo":{source:"iana",extensions:["qbo"]},"application/vnd.intu.qfx":{source:"iana",extensions:["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.conceptitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.knowledgeitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsmessage+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.packageitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.planningitem+xml":{source:"iana",compressible:!0},"application/vnd.ipunplugged.rcprofile":{source:"iana",extensions:["rcprofile"]},"application/vnd.irepository.package+xml":{source:"iana",compressible:!0,extensions:["irp"]},"application/vnd.is-xpr":{source:"iana",extensions:["xpr"]},"application/vnd.isac.fcs":{source:"iana",extensions:["fcs"]},"application/vnd.iso11783-10+zip":{source:"iana",compressible:!1},"application/vnd.jam":{source:"iana",extensions:["jam"]},"application/vnd.japannet-directory-service":{source:"iana"},"application/vnd.japannet-jpnstore-wakeup":{source:"iana"},"application/vnd.japannet-payment-wakeup":{source:"iana"},"application/vnd.japannet-registration":{source:"iana"},"application/vnd.japannet-registration-wakeup":{source:"iana"},"application/vnd.japannet-setstore-wakeup":{source:"iana"},"application/vnd.japannet-verification":{source:"iana"},"application/vnd.japannet-verification-wakeup":{source:"iana"},"application/vnd.jcp.javame.midlet-rms":{source:"iana",extensions:["rms"]},"application/vnd.jisp":{source:"iana",extensions:["jisp"]},"application/vnd.joost.joda-archive":{source:"iana",extensions:["joda"]},"application/vnd.jsk.isdn-ngn":{source:"iana"},"application/vnd.kahootz":{source:"iana",extensions:["ktz","ktr"]},"application/vnd.kde.karbon":{source:"iana",extensions:["karbon"]},"application/vnd.kde.kchart":{source:"iana",extensions:["chrt"]},"application/vnd.kde.kformula":{source:"iana",extensions:["kfo"]},"application/vnd.kde.kivio":{source:"iana",extensions:["flw"]},"application/vnd.kde.kontour":{source:"iana",extensions:["kon"]},"application/vnd.kde.kpresenter":{source:"iana",extensions:["kpr","kpt"]},"application/vnd.kde.kspread":{source:"iana",extensions:["ksp"]},"application/vnd.kde.kword":{source:"iana",extensions:["kwd","kwt"]},"application/vnd.kenameaapp":{source:"iana",extensions:["htke"]},"application/vnd.kidspiration":{source:"iana",extensions:["kia"]},"application/vnd.kinar":{source:"iana",extensions:["kne","knp"]},"application/vnd.koan":{source:"iana",extensions:["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{source:"iana",extensions:["sse"]},"application/vnd.las":{source:"iana"},"application/vnd.las.las+json":{source:"iana",compressible:!0},"application/vnd.las.las+xml":{source:"iana",compressible:!0,extensions:["lasxml"]},"application/vnd.laszip":{source:"iana"},"application/vnd.leap+json":{source:"iana",compressible:!0},"application/vnd.liberty-request+xml":{source:"iana",compressible:!0},"application/vnd.llamagraphics.life-balance.desktop":{source:"iana",extensions:["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:"iana",compressible:!0,extensions:["lbe"]},"application/vnd.logipipe.circuit+zip":{source:"iana",compressible:!1},"application/vnd.loom":{source:"iana"},"application/vnd.lotus-1-2-3":{source:"iana",extensions:["123"]},"application/vnd.lotus-approach":{source:"iana",extensions:["apr"]},"application/vnd.lotus-freelance":{source:"iana",extensions:["pre"]},"application/vnd.lotus-notes":{source:"iana",extensions:["nsf"]},"application/vnd.lotus-organizer":{source:"iana",extensions:["org"]},"application/vnd.lotus-screencam":{source:"iana",extensions:["scm"]},"application/vnd.lotus-wordpro":{source:"iana",extensions:["lwp"]},"application/vnd.macports.portpkg":{source:"iana",extensions:["portpkg"]},"application/vnd.mapbox-vector-tile":{source:"iana",extensions:["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.conftoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.license+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.mdcf":{source:"iana"},"application/vnd.mason+json":{source:"iana",compressible:!0},"application/vnd.maxar.archive.3tz+zip":{source:"iana",compressible:!1},"application/vnd.maxmind.maxmind-db":{source:"iana"},"application/vnd.mcd":{source:"iana",extensions:["mcd"]},"application/vnd.medcalcdata":{source:"iana",extensions:["mc1"]},"application/vnd.mediastation.cdkey":{source:"iana",extensions:["cdkey"]},"application/vnd.meridian-slingshot":{source:"iana"},"application/vnd.mfer":{source:"iana",extensions:["mwf"]},"application/vnd.mfmp":{source:"iana",extensions:["mfm"]},"application/vnd.micro+json":{source:"iana",compressible:!0},"application/vnd.micrografx.flo":{source:"iana",extensions:["flo"]},"application/vnd.micrografx.igx":{source:"iana",extensions:["igx"]},"application/vnd.microsoft.portable-executable":{source:"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{source:"iana"},"application/vnd.miele+json":{source:"iana",compressible:!0},"application/vnd.mif":{source:"iana",extensions:["mif"]},"application/vnd.minisoft-hp3000-save":{source:"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{source:"iana"},"application/vnd.mobius.daf":{source:"iana",extensions:["daf"]},"application/vnd.mobius.dis":{source:"iana",extensions:["dis"]},"application/vnd.mobius.mbk":{source:"iana",extensions:["mbk"]},"application/vnd.mobius.mqy":{source:"iana",extensions:["mqy"]},"application/vnd.mobius.msl":{source:"iana",extensions:["msl"]},"application/vnd.mobius.plc":{source:"iana",extensions:["plc"]},"application/vnd.mobius.txf":{source:"iana",extensions:["txf"]},"application/vnd.mophun.application":{source:"iana",extensions:["mpn"]},"application/vnd.mophun.certificate":{source:"iana",extensions:["mpc"]},"application/vnd.motorola.flexsuite":{source:"iana"},"application/vnd.motorola.flexsuite.adsi":{source:"iana"},"application/vnd.motorola.flexsuite.fis":{source:"iana"},"application/vnd.motorola.flexsuite.gotap":{source:"iana"},"application/vnd.motorola.flexsuite.kmr":{source:"iana"},"application/vnd.motorola.flexsuite.ttc":{source:"iana"},"application/vnd.motorola.flexsuite.wem":{source:"iana"},"application/vnd.motorola.iprm":{source:"iana"},"application/vnd.mozilla.xul+xml":{source:"iana",compressible:!0,extensions:["xul"]},"application/vnd.ms-3mfdocument":{source:"iana"},"application/vnd.ms-artgalry":{source:"iana",extensions:["cil"]},"application/vnd.ms-asf":{source:"iana"},"application/vnd.ms-cab-compressed":{source:"iana",extensions:["cab"]},"application/vnd.ms-color.iccprofile":{source:"apache"},"application/vnd.ms-excel":{source:"iana",compressible:!1,extensions:["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{source:"iana",extensions:["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{source:"iana",extensions:["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{source:"iana",extensions:["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{source:"iana",extensions:["xltm"]},"application/vnd.ms-fontobject":{source:"iana",compressible:!0,extensions:["eot"]},"application/vnd.ms-htmlhelp":{source:"iana",extensions:["chm"]},"application/vnd.ms-ims":{source:"iana",extensions:["ims"]},"application/vnd.ms-lrm":{source:"iana",extensions:["lrm"]},"application/vnd.ms-office.activex+xml":{source:"iana",compressible:!0},"application/vnd.ms-officetheme":{source:"iana",extensions:["thmx"]},"application/vnd.ms-opentype":{source:"apache",compressible:!0},"application/vnd.ms-outlook":{compressible:!1,extensions:["msg"]},"application/vnd.ms-package.obfuscated-opentype":{source:"apache"},"application/vnd.ms-pki.seccat":{source:"apache",extensions:["cat"]},"application/vnd.ms-pki.stl":{source:"apache",extensions:["stl"]},"application/vnd.ms-playready.initiator+xml":{source:"iana",compressible:!0},"application/vnd.ms-powerpoint":{source:"iana",compressible:!1,extensions:["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{source:"iana",extensions:["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{source:"iana",extensions:["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{source:"iana",extensions:["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{source:"iana",extensions:["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{source:"iana",extensions:["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{source:"iana",compressible:!0},"application/vnd.ms-printing.printticket+xml":{source:"apache",compressible:!0},"application/vnd.ms-printschematicket+xml":{source:"iana",compressible:!0},"application/vnd.ms-project":{source:"iana",extensions:["mpp","mpt"]},"application/vnd.ms-tnef":{source:"iana"},"application/vnd.ms-windows.devicepairing":{source:"iana"},"application/vnd.ms-windows.nwprinting.oob":{source:"iana"},"application/vnd.ms-windows.printerpairing":{source:"iana"},"application/vnd.ms-windows.wsd.oob":{source:"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.lic-resp":{source:"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.meter-resp":{source:"iana"},"application/vnd.ms-word.document.macroenabled.12":{source:"iana",extensions:["docm"]},"application/vnd.ms-word.template.macroenabled.12":{source:"iana",extensions:["dotm"]},"application/vnd.ms-works":{source:"iana",extensions:["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{source:"iana",extensions:["wpl"]},"application/vnd.ms-xpsdocument":{source:"iana",compressible:!1,extensions:["xps"]},"application/vnd.msa-disk-image":{source:"iana"},"application/vnd.mseq":{source:"iana",extensions:["mseq"]},"application/vnd.msign":{source:"iana"},"application/vnd.multiad.creator":{source:"iana"},"application/vnd.multiad.creator.cif":{source:"iana"},"application/vnd.music-niff":{source:"iana"},"application/vnd.musician":{source:"iana",extensions:["mus"]},"application/vnd.muvee.style":{source:"iana",extensions:["msty"]},"application/vnd.mynfc":{source:"iana",extensions:["taglet"]},"application/vnd.nacamar.ybrid+json":{source:"iana",compressible:!0},"application/vnd.ncd.control":{source:"iana"},"application/vnd.ncd.reference":{source:"iana"},"application/vnd.nearst.inv+json":{source:"iana",compressible:!0},"application/vnd.nebumind.line":{source:"iana"},"application/vnd.nervana":{source:"iana"},"application/vnd.netfpx":{source:"iana"},"application/vnd.neurolanguage.nlu":{source:"iana",extensions:["nlu"]},"application/vnd.nimn":{source:"iana"},"application/vnd.nintendo.nitro.rom":{source:"iana"},"application/vnd.nintendo.snes.rom":{source:"iana"},"application/vnd.nitf":{source:"iana",extensions:["ntf","nitf"]},"application/vnd.noblenet-directory":{source:"iana",extensions:["nnd"]},"application/vnd.noblenet-sealer":{source:"iana",extensions:["nns"]},"application/vnd.noblenet-web":{source:"iana",extensions:["nnw"]},"application/vnd.nokia.catalogs":{source:"iana"},"application/vnd.nokia.conml+wbxml":{source:"iana"},"application/vnd.nokia.conml+xml":{source:"iana",compressible:!0},"application/vnd.nokia.iptv.config+xml":{source:"iana",compressible:!0},"application/vnd.nokia.isds-radio-presets":{source:"iana"},"application/vnd.nokia.landmark+wbxml":{source:"iana"},"application/vnd.nokia.landmark+xml":{source:"iana",compressible:!0},"application/vnd.nokia.landmarkcollection+xml":{source:"iana",compressible:!0},"application/vnd.nokia.n-gage.ac+xml":{source:"iana",compressible:!0,extensions:["ac"]},"application/vnd.nokia.n-gage.data":{source:"iana",extensions:["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{source:"iana",extensions:["n-gage"]},"application/vnd.nokia.ncd":{source:"iana"},"application/vnd.nokia.pcd+wbxml":{source:"iana"},"application/vnd.nokia.pcd+xml":{source:"iana",compressible:!0},"application/vnd.nokia.radio-preset":{source:"iana",extensions:["rpst"]},"application/vnd.nokia.radio-presets":{source:"iana",extensions:["rpss"]},"application/vnd.novadigm.edm":{source:"iana",extensions:["edm"]},"application/vnd.novadigm.edx":{source:"iana",extensions:["edx"]},"application/vnd.novadigm.ext":{source:"iana",extensions:["ext"]},"application/vnd.ntt-local.content-share":{source:"iana"},"application/vnd.ntt-local.file-transfer":{source:"iana"},"application/vnd.ntt-local.ogw_remote-access":{source:"iana"},"application/vnd.ntt-local.sip-ta_remote":{source:"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{source:"iana"},"application/vnd.oasis.opendocument.chart":{source:"iana",extensions:["odc"]},"application/vnd.oasis.opendocument.chart-template":{source:"iana",extensions:["otc"]},"application/vnd.oasis.opendocument.database":{source:"iana",extensions:["odb"]},"application/vnd.oasis.opendocument.formula":{source:"iana",extensions:["odf"]},"application/vnd.oasis.opendocument.formula-template":{source:"iana",extensions:["odft"]},"application/vnd.oasis.opendocument.graphics":{source:"iana",compressible:!1,extensions:["odg"]},"application/vnd.oasis.opendocument.graphics-template":{source:"iana",extensions:["otg"]},"application/vnd.oasis.opendocument.image":{source:"iana",extensions:["odi"]},"application/vnd.oasis.opendocument.image-template":{source:"iana",extensions:["oti"]},"application/vnd.oasis.opendocument.presentation":{source:"iana",compressible:!1,extensions:["odp"]},"application/vnd.oasis.opendocument.presentation-template":{source:"iana",extensions:["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{source:"iana",compressible:!1,extensions:["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:"iana",extensions:["ots"]},"application/vnd.oasis.opendocument.text":{source:"iana",compressible:!1,extensions:["odt"]},"application/vnd.oasis.opendocument.text-master":{source:"iana",extensions:["odm"]},"application/vnd.oasis.opendocument.text-template":{source:"iana",extensions:["ott"]},"application/vnd.oasis.opendocument.text-web":{source:"iana",extensions:["oth"]},"application/vnd.obn":{source:"iana"},"application/vnd.ocf+cbor":{source:"iana"},"application/vnd.oci.image.manifest.v1+json":{source:"iana",compressible:!0},"application/vnd.oftn.l10n+json":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessdownload+xml":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessstreaming+xml":{source:"iana",compressible:!0},"application/vnd.oipf.cspg-hexbinary":{source:"iana"},"application/vnd.oipf.dae.svg+xml":{source:"iana",compressible:!0},"application/vnd.oipf.dae.xhtml+xml":{source:"iana",compressible:!0},"application/vnd.oipf.mippvcontrolmessage+xml":{source:"iana",compressible:!0},"application/vnd.oipf.pae.gem":{source:"iana"},"application/vnd.oipf.spdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.oipf.spdlist+xml":{source:"iana",compressible:!0},"application/vnd.oipf.ueprofile+xml":{source:"iana",compressible:!0},"application/vnd.oipf.userprofile+xml":{source:"iana",compressible:!0},"application/vnd.olpc-sugar":{source:"iana",extensions:["xo"]},"application/vnd.oma-scws-config":{source:"iana"},"application/vnd.oma-scws-http-request":{source:"iana"},"application/vnd.oma-scws-http-response":{source:"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.drm-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.imd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.ltkm":{source:"iana"},"application/vnd.oma.bcast.notification+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.provisioningtrigger":{source:"iana"},"application/vnd.oma.bcast.sgboot":{source:"iana"},"application/vnd.oma.bcast.sgdd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sgdu":{source:"iana"},"application/vnd.oma.bcast.simple-symbol-container":{source:"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sprov+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.stkm":{source:"iana"},"application/vnd.oma.cab-address-book+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-feature-handler+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-pcc+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-subs-invite+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-user-prefs+xml":{source:"iana",compressible:!0},"application/vnd.oma.dcd":{source:"iana"},"application/vnd.oma.dcdc":{source:"iana"},"application/vnd.oma.dd2+xml":{source:"iana",compressible:!0,extensions:["dd2"]},"application/vnd.oma.drm.risd+xml":{source:"iana",compressible:!0},"application/vnd.oma.group-usage-list+xml":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+cbor":{source:"iana"},"application/vnd.oma.lwm2m+json":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+tlv":{source:"iana"},"application/vnd.oma.pal+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.detailed-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.final-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.groups+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.invocation-descriptor+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.optimized-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.push":{source:"iana"},"application/vnd.oma.scidm.messages+xml":{source:"iana",compressible:!0},"application/vnd.oma.xcap-directory+xml":{source:"iana",compressible:!0},"application/vnd.omads-email+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-file+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-folder+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omaloc-supl-init":{source:"iana"},"application/vnd.onepager":{source:"iana"},"application/vnd.onepagertamp":{source:"iana"},"application/vnd.onepagertamx":{source:"iana"},"application/vnd.onepagertat":{source:"iana"},"application/vnd.onepagertatp":{source:"iana"},"application/vnd.onepagertatx":{source:"iana"},"application/vnd.openblox.game+xml":{source:"iana",compressible:!0,extensions:["obgx"]},"application/vnd.openblox.game-binary":{source:"iana"},"application/vnd.openeye.oeb":{source:"iana"},"application/vnd.openofficeorg.extension":{source:"apache",extensions:["oxt"]},"application/vnd.openstreetmap.data+xml":{source:"iana",compressible:!0,extensions:["osm"]},"application/vnd.opentimestamps.ots":{source:"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",compressible:!1,extensions:["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:"iana",extensions:["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:"iana",extensions:["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:"iana",extensions:["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",compressible:!1,extensions:["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:"iana",extensions:["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.theme+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",compressible:!1,extensions:["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:"iana",extensions:["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.core-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.relationships+xml":{source:"iana",compressible:!0},"application/vnd.oracle.resource+json":{source:"iana",compressible:!0},"application/vnd.orange.indata":{source:"iana"},"application/vnd.osa.netdeploy":{source:"iana"},"application/vnd.osgeo.mapguide.package":{source:"iana",extensions:["mgp"]},"application/vnd.osgi.bundle":{source:"iana"},"application/vnd.osgi.dp":{source:"iana",extensions:["dp"]},"application/vnd.osgi.subsystem":{source:"iana",extensions:["esa"]},"application/vnd.otps.ct-kip+xml":{source:"iana",compressible:!0},"application/vnd.oxli.countgraph":{source:"iana"},"application/vnd.pagerduty+json":{source:"iana",compressible:!0},"application/vnd.palm":{source:"iana",extensions:["pdb","pqa","oprc"]},"application/vnd.panoply":{source:"iana"},"application/vnd.paos.xml":{source:"iana"},"application/vnd.patentdive":{source:"iana"},"application/vnd.patientecommsdoc":{source:"iana"},"application/vnd.pawaafile":{source:"iana",extensions:["paw"]},"application/vnd.pcos":{source:"iana"},"application/vnd.pg.format":{source:"iana",extensions:["str"]},"application/vnd.pg.osasli":{source:"iana",extensions:["ei6"]},"application/vnd.piaccess.application-licence":{source:"iana"},"application/vnd.picsel":{source:"iana",extensions:["efif"]},"application/vnd.pmi.widget":{source:"iana",extensions:["wg"]},"application/vnd.poc.group-advertisement+xml":{source:"iana",compressible:!0},"application/vnd.pocketlearn":{source:"iana",extensions:["plf"]},"application/vnd.powerbuilder6":{source:"iana",extensions:["pbd"]},"application/vnd.powerbuilder6-s":{source:"iana"},"application/vnd.powerbuilder7":{source:"iana"},"application/vnd.powerbuilder7-s":{source:"iana"},"application/vnd.powerbuilder75":{source:"iana"},"application/vnd.powerbuilder75-s":{source:"iana"},"application/vnd.preminet":{source:"iana"},"application/vnd.previewsystems.box":{source:"iana",extensions:["box"]},"application/vnd.proteus.magazine":{source:"iana",extensions:["mgz"]},"application/vnd.psfs":{source:"iana"},"application/vnd.publishare-delta-tree":{source:"iana",extensions:["qps"]},"application/vnd.pvi.ptid1":{source:"iana",extensions:["ptid"]},"application/vnd.pwg-multiplexed":{source:"iana"},"application/vnd.pwg-xhtml-print+xml":{source:"iana",compressible:!0},"application/vnd.qualcomm.brew-app-res":{source:"iana"},"application/vnd.quarantainenet":{source:"iana"},"application/vnd.quark.quarkxpress":{source:"iana",extensions:["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{source:"iana"},"application/vnd.radisys.moml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conn+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-stream+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-base+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-group+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-speech+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-transform+xml":{source:"iana",compressible:!0},"application/vnd.rainstor.data":{source:"iana"},"application/vnd.rapid":{source:"iana"},"application/vnd.rar":{source:"iana",extensions:["rar"]},"application/vnd.realvnc.bed":{source:"iana",extensions:["bed"]},"application/vnd.recordare.musicxml":{source:"iana",extensions:["mxl"]},"application/vnd.recordare.musicxml+xml":{source:"iana",compressible:!0,extensions:["musicxml"]},"application/vnd.renlearn.rlprint":{source:"iana"},"application/vnd.resilient.logic":{source:"iana"},"application/vnd.restful+json":{source:"iana",compressible:!0},"application/vnd.rig.cryptonote":{source:"iana",extensions:["cryptonote"]},"application/vnd.rim.cod":{source:"apache",extensions:["cod"]},"application/vnd.rn-realmedia":{source:"apache",extensions:["rm"]},"application/vnd.rn-realmedia-vbr":{source:"apache",extensions:["rmvb"]},"application/vnd.route66.link66+xml":{source:"iana",compressible:!0,extensions:["link66"]},"application/vnd.rs-274x":{source:"iana"},"application/vnd.ruckus.download":{source:"iana"},"application/vnd.s3sms":{source:"iana"},"application/vnd.sailingtracker.track":{source:"iana",extensions:["st"]},"application/vnd.sar":{source:"iana"},"application/vnd.sbm.cid":{source:"iana"},"application/vnd.sbm.mid2":{source:"iana"},"application/vnd.scribus":{source:"iana"},"application/vnd.sealed.3df":{source:"iana"},"application/vnd.sealed.csf":{source:"iana"},"application/vnd.sealed.doc":{source:"iana"},"application/vnd.sealed.eml":{source:"iana"},"application/vnd.sealed.mht":{source:"iana"},"application/vnd.sealed.net":{source:"iana"},"application/vnd.sealed.ppt":{source:"iana"},"application/vnd.sealed.tiff":{source:"iana"},"application/vnd.sealed.xls":{source:"iana"},"application/vnd.sealedmedia.softseal.html":{source:"iana"},"application/vnd.sealedmedia.softseal.pdf":{source:"iana"},"application/vnd.seemail":{source:"iana",extensions:["see"]},"application/vnd.seis+json":{source:"iana",compressible:!0},"application/vnd.sema":{source:"iana",extensions:["sema"]},"application/vnd.semd":{source:"iana",extensions:["semd"]},"application/vnd.semf":{source:"iana",extensions:["semf"]},"application/vnd.shade-save-file":{source:"iana"},"application/vnd.shana.informed.formdata":{source:"iana",extensions:["ifm"]},"application/vnd.shana.informed.formtemplate":{source:"iana",extensions:["itp"]},"application/vnd.shana.informed.interchange":{source:"iana",extensions:["iif"]},"application/vnd.shana.informed.package":{source:"iana",extensions:["ipk"]},"application/vnd.shootproof+json":{source:"iana",compressible:!0},"application/vnd.shopkick+json":{source:"iana",compressible:!0},"application/vnd.shp":{source:"iana"},"application/vnd.shx":{source:"iana"},"application/vnd.sigrok.session":{source:"iana"},"application/vnd.simtech-mindmapper":{source:"iana",extensions:["twd","twds"]},"application/vnd.siren+json":{source:"iana",compressible:!0},"application/vnd.smaf":{source:"iana",extensions:["mmf"]},"application/vnd.smart.notebook":{source:"iana"},"application/vnd.smart.teacher":{source:"iana",extensions:["teacher"]},"application/vnd.snesdev-page-table":{source:"iana"},"application/vnd.software602.filler.form+xml":{source:"iana",compressible:!0,extensions:["fo"]},"application/vnd.software602.filler.form-xml-zip":{source:"iana"},"application/vnd.solent.sdkm+xml":{source:"iana",compressible:!0,extensions:["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{source:"iana",extensions:["dxp"]},"application/vnd.spotfire.sfs":{source:"iana",extensions:["sfs"]},"application/vnd.sqlite3":{source:"iana"},"application/vnd.sss-cod":{source:"iana"},"application/vnd.sss-dtf":{source:"iana"},"application/vnd.sss-ntf":{source:"iana"},"application/vnd.stardivision.calc":{source:"apache",extensions:["sdc"]},"application/vnd.stardivision.draw":{source:"apache",extensions:["sda"]},"application/vnd.stardivision.impress":{source:"apache",extensions:["sdd"]},"application/vnd.stardivision.math":{source:"apache",extensions:["smf"]},"application/vnd.stardivision.writer":{source:"apache",extensions:["sdw","vor"]},"application/vnd.stardivision.writer-global":{source:"apache",extensions:["sgl"]},"application/vnd.stepmania.package":{source:"iana",extensions:["smzip"]},"application/vnd.stepmania.stepchart":{source:"iana",extensions:["sm"]},"application/vnd.street-stream":{source:"iana"},"application/vnd.sun.wadl+xml":{source:"iana",compressible:!0,extensions:["wadl"]},"application/vnd.sun.xml.calc":{source:"apache",extensions:["sxc"]},"application/vnd.sun.xml.calc.template":{source:"apache",extensions:["stc"]},"application/vnd.sun.xml.draw":{source:"apache",extensions:["sxd"]},"application/vnd.sun.xml.draw.template":{source:"apache",extensions:["std"]},"application/vnd.sun.xml.impress":{source:"apache",extensions:["sxi"]},"application/vnd.sun.xml.impress.template":{source:"apache",extensions:["sti"]},"application/vnd.sun.xml.math":{source:"apache",extensions:["sxm"]},"application/vnd.sun.xml.writer":{source:"apache",extensions:["sxw"]},"application/vnd.sun.xml.writer.global":{source:"apache",extensions:["sxg"]},"application/vnd.sun.xml.writer.template":{source:"apache",extensions:["stw"]},"application/vnd.sus-calendar":{source:"iana",extensions:["sus","susp"]},"application/vnd.svd":{source:"iana",extensions:["svd"]},"application/vnd.swiftview-ics":{source:"iana"},"application/vnd.sycle+xml":{source:"iana",compressible:!0},"application/vnd.syft+json":{source:"iana",compressible:!0},"application/vnd.symbian.install":{source:"apache",extensions:["sis","sisx"]},"application/vnd.syncml+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xsm"]},"application/vnd.syncml.dm+wbxml":{source:"iana",charset:"UTF-8",extensions:["bdm"]},"application/vnd.syncml.dm+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xdm"]},"application/vnd.syncml.dm.notification":{source:"iana"},"application/vnd.syncml.dmddf+wbxml":{source:"iana"},"application/vnd.syncml.dmddf+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{source:"iana"},"application/vnd.syncml.dmtnds+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.syncml.ds.notification":{source:"iana"},"application/vnd.tableschema+json":{source:"iana",compressible:!0},"application/vnd.tao.intent-module-archive":{source:"iana",extensions:["tao"]},"application/vnd.tcpdump.pcap":{source:"iana",extensions:["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{source:"iana",compressible:!0},"application/vnd.tmd.mediaflex.api+xml":{source:"iana",compressible:!0},"application/vnd.tml":{source:"iana"},"application/vnd.tmobile-livetv":{source:"iana",extensions:["tmo"]},"application/vnd.tri.onesource":{source:"iana"},"application/vnd.trid.tpt":{source:"iana",extensions:["tpt"]},"application/vnd.triscape.mxs":{source:"iana",extensions:["mxs"]},"application/vnd.trueapp":{source:"iana",extensions:["tra"]},"application/vnd.truedoc":{source:"iana"},"application/vnd.ubisoft.webplayer":{source:"iana"},"application/vnd.ufdl":{source:"iana",extensions:["ufd","ufdl"]},"application/vnd.uiq.theme":{source:"iana",extensions:["utz"]},"application/vnd.umajin":{source:"iana",extensions:["umj"]},"application/vnd.unity":{source:"iana",extensions:["unityweb"]},"application/vnd.uoml+xml":{source:"iana",compressible:!0,extensions:["uoml"]},"application/vnd.uplanet.alert":{source:"iana"},"application/vnd.uplanet.alert-wbxml":{source:"iana"},"application/vnd.uplanet.bearer-choice":{source:"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{source:"iana"},"application/vnd.uplanet.cacheop":{source:"iana"},"application/vnd.uplanet.cacheop-wbxml":{source:"iana"},"application/vnd.uplanet.channel":{source:"iana"},"application/vnd.uplanet.channel-wbxml":{source:"iana"},"application/vnd.uplanet.list":{source:"iana"},"application/vnd.uplanet.list-wbxml":{source:"iana"},"application/vnd.uplanet.listcmd":{source:"iana"},"application/vnd.uplanet.listcmd-wbxml":{source:"iana"},"application/vnd.uplanet.signal":{source:"iana"},"application/vnd.uri-map":{source:"iana"},"application/vnd.valve.source.material":{source:"iana"},"application/vnd.vcx":{source:"iana",extensions:["vcx"]},"application/vnd.vd-study":{source:"iana"},"application/vnd.vectorworks":{source:"iana"},"application/vnd.vel+json":{source:"iana",compressible:!0},"application/vnd.verimatrix.vcas":{source:"iana"},"application/vnd.veritone.aion+json":{source:"iana",compressible:!0},"application/vnd.veryant.thin":{source:"iana"},"application/vnd.ves.encrypted":{source:"iana"},"application/vnd.vidsoft.vidconference":{source:"iana"},"application/vnd.visio":{source:"iana",extensions:["vsd","vst","vss","vsw"]},"application/vnd.visionary":{source:"iana",extensions:["vis"]},"application/vnd.vividence.scriptfile":{source:"iana"},"application/vnd.vsf":{source:"iana",extensions:["vsf"]},"application/vnd.wap.sic":{source:"iana"},"application/vnd.wap.slc":{source:"iana"},"application/vnd.wap.wbxml":{source:"iana",charset:"UTF-8",extensions:["wbxml"]},"application/vnd.wap.wmlc":{source:"iana",extensions:["wmlc"]},"application/vnd.wap.wmlscriptc":{source:"iana",extensions:["wmlsc"]},"application/vnd.webturbo":{source:"iana",extensions:["wtb"]},"application/vnd.wfa.dpp":{source:"iana"},"application/vnd.wfa.p2p":{source:"iana"},"application/vnd.wfa.wsc":{source:"iana"},"application/vnd.windows.devicepairing":{source:"iana"},"application/vnd.wmc":{source:"iana"},"application/vnd.wmf.bootstrap":{source:"iana"},"application/vnd.wolfram.mathematica":{source:"iana"},"application/vnd.wolfram.mathematica.package":{source:"iana"},"application/vnd.wolfram.player":{source:"iana",extensions:["nbp"]},"application/vnd.wordperfect":{source:"iana",extensions:["wpd"]},"application/vnd.wqd":{source:"iana",extensions:["wqd"]},"application/vnd.wrq-hp3000-labelled":{source:"iana"},"application/vnd.wt.stf":{source:"iana",extensions:["stf"]},"application/vnd.wv.csp+wbxml":{source:"iana"},"application/vnd.wv.csp+xml":{source:"iana",compressible:!0},"application/vnd.wv.ssp+xml":{source:"iana",compressible:!0},"application/vnd.xacml+json":{source:"iana",compressible:!0},"application/vnd.xara":{source:"iana",extensions:["xar"]},"application/vnd.xfdl":{source:"iana",extensions:["xfdl"]},"application/vnd.xfdl.webform":{source:"iana"},"application/vnd.xmi+xml":{source:"iana",compressible:!0},"application/vnd.xmpie.cpkg":{source:"iana"},"application/vnd.xmpie.dpkg":{source:"iana"},"application/vnd.xmpie.plan":{source:"iana"},"application/vnd.xmpie.ppkg":{source:"iana"},"application/vnd.xmpie.xlim":{source:"iana"},"application/vnd.yamaha.hv-dic":{source:"iana",extensions:["hvd"]},"application/vnd.yamaha.hv-script":{source:"iana",extensions:["hvs"]},"application/vnd.yamaha.hv-voice":{source:"iana",extensions:["hvp"]},"application/vnd.yamaha.openscoreformat":{source:"iana",extensions:["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{source:"iana",compressible:!0,extensions:["osfpvg"]},"application/vnd.yamaha.remote-setup":{source:"iana"},"application/vnd.yamaha.smaf-audio":{source:"iana",extensions:["saf"]},"application/vnd.yamaha.smaf-phrase":{source:"iana",extensions:["spf"]},"application/vnd.yamaha.through-ngn":{source:"iana"},"application/vnd.yamaha.tunnel-udpencap":{source:"iana"},"application/vnd.yaoweme":{source:"iana"},"application/vnd.yellowriver-custom-menu":{source:"iana",extensions:["cmp"]},"application/vnd.youtube.yt":{source:"iana"},"application/vnd.zul":{source:"iana",extensions:["zir","zirz"]},"application/vnd.zzazz.deck+xml":{source:"iana",compressible:!0,extensions:["zaz"]},"application/voicexml+xml":{source:"iana",compressible:!0,extensions:["vxml"]},"application/voucher-cms+json":{source:"iana",compressible:!0},"application/vq-rtcpxr":{source:"iana"},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"application/watcherinfo+xml":{source:"iana",compressible:!0,extensions:["wif"]},"application/webpush-options+json":{source:"iana",compressible:!0},"application/whoispp-query":{source:"iana"},"application/whoispp-response":{source:"iana"},"application/widget":{source:"iana",extensions:["wgt"]},"application/winhlp":{source:"apache",extensions:["hlp"]},"application/wita":{source:"iana"},"application/wordperfect5.1":{source:"iana"},"application/wsdl+xml":{source:"iana",compressible:!0,extensions:["wsdl"]},"application/wspolicy+xml":{source:"iana",compressible:!0,extensions:["wspolicy"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/x-abiword":{source:"apache",extensions:["abw"]},"application/x-ace-compressed":{source:"apache",extensions:["ace"]},"application/x-amf":{source:"apache"},"application/x-apple-diskimage":{source:"apache",extensions:["dmg"]},"application/x-arj":{compressible:!1,extensions:["arj"]},"application/x-authorware-bin":{source:"apache",extensions:["aab","x32","u32","vox"]},"application/x-authorware-map":{source:"apache",extensions:["aam"]},"application/x-authorware-seg":{source:"apache",extensions:["aas"]},"application/x-bcpio":{source:"apache",extensions:["bcpio"]},"application/x-bdoc":{compressible:!1,extensions:["bdoc"]},"application/x-bittorrent":{source:"apache",extensions:["torrent"]},"application/x-blorb":{source:"apache",extensions:["blb","blorb"]},"application/x-bzip":{source:"apache",compressible:!1,extensions:["bz"]},"application/x-bzip2":{source:"apache",compressible:!1,extensions:["bz2","boz"]},"application/x-cbr":{source:"apache",extensions:["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{source:"apache",extensions:["vcd"]},"application/x-cfs-compressed":{source:"apache",extensions:["cfs"]},"application/x-chat":{source:"apache",extensions:["chat"]},"application/x-chess-pgn":{source:"apache",extensions:["pgn"]},"application/x-chrome-extension":{extensions:["crx"]},"application/x-cocoa":{source:"nginx",extensions:["cco"]},"application/x-compress":{source:"apache"},"application/x-conference":{source:"apache",extensions:["nsc"]},"application/x-cpio":{source:"apache",extensions:["cpio"]},"application/x-csh":{source:"apache",extensions:["csh"]},"application/x-deb":{compressible:!1},"application/x-debian-package":{source:"apache",extensions:["deb","udeb"]},"application/x-dgc-compressed":{source:"apache",extensions:["dgc"]},"application/x-director":{source:"apache",extensions:["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{source:"apache",extensions:["wad"]},"application/x-dtbncx+xml":{source:"apache",compressible:!0,extensions:["ncx"]},"application/x-dtbook+xml":{source:"apache",compressible:!0,extensions:["dtb"]},"application/x-dtbresource+xml":{source:"apache",compressible:!0,extensions:["res"]},"application/x-dvi":{source:"apache",compressible:!1,extensions:["dvi"]},"application/x-envoy":{source:"apache",extensions:["evy"]},"application/x-eva":{source:"apache",extensions:["eva"]},"application/x-font-bdf":{source:"apache",extensions:["bdf"]},"application/x-font-dos":{source:"apache"},"application/x-font-framemaker":{source:"apache"},"application/x-font-ghostscript":{source:"apache",extensions:["gsf"]},"application/x-font-libgrx":{source:"apache"},"application/x-font-linux-psf":{source:"apache",extensions:["psf"]},"application/x-font-pcf":{source:"apache",extensions:["pcf"]},"application/x-font-snf":{source:"apache",extensions:["snf"]},"application/x-font-speedo":{source:"apache"},"application/x-font-sunos-news":{source:"apache"},"application/x-font-type1":{source:"apache",extensions:["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{source:"apache"},"application/x-freearc":{source:"apache",extensions:["arc"]},"application/x-futuresplash":{source:"apache",extensions:["spl"]},"application/x-gca-compressed":{source:"apache",extensions:["gca"]},"application/x-glulx":{source:"apache",extensions:["ulx"]},"application/x-gnumeric":{source:"apache",extensions:["gnumeric"]},"application/x-gramps-xml":{source:"apache",extensions:["gramps"]},"application/x-gtar":{source:"apache",extensions:["gtar"]},"application/x-gzip":{source:"apache"},"application/x-hdf":{source:"apache",extensions:["hdf"]},"application/x-httpd-php":{compressible:!0,extensions:["php"]},"application/x-install-instructions":{source:"apache",extensions:["install"]},"application/x-iso9660-image":{source:"apache",extensions:["iso"]},"application/x-iwork-keynote-sffkey":{extensions:["key"]},"application/x-iwork-numbers-sffnumbers":{extensions:["numbers"]},"application/x-iwork-pages-sffpages":{extensions:["pages"]},"application/x-java-archive-diff":{source:"nginx",extensions:["jardiff"]},"application/x-java-jnlp-file":{source:"apache",compressible:!1,extensions:["jnlp"]},"application/x-javascript":{compressible:!0},"application/x-keepass2":{extensions:["kdbx"]},"application/x-latex":{source:"apache",compressible:!1,extensions:["latex"]},"application/x-lua-bytecode":{extensions:["luac"]},"application/x-lzh-compressed":{source:"apache",extensions:["lzh","lha"]},"application/x-makeself":{source:"nginx",extensions:["run"]},"application/x-mie":{source:"apache",extensions:["mie"]},"application/x-mobipocket-ebook":{source:"apache",extensions:["prc","mobi"]},"application/x-mpegurl":{compressible:!1},"application/x-ms-application":{source:"apache",extensions:["application"]},"application/x-ms-shortcut":{source:"apache",extensions:["lnk"]},"application/x-ms-wmd":{source:"apache",extensions:["wmd"]},"application/x-ms-wmz":{source:"apache",extensions:["wmz"]},"application/x-ms-xbap":{source:"apache",extensions:["xbap"]},"application/x-msaccess":{source:"apache",extensions:["mdb"]},"application/x-msbinder":{source:"apache",extensions:["obd"]},"application/x-mscardfile":{source:"apache",extensions:["crd"]},"application/x-msclip":{source:"apache",extensions:["clp"]},"application/x-msdos-program":{extensions:["exe"]},"application/x-msdownload":{source:"apache",extensions:["exe","dll","com","bat","msi"]},"application/x-msmediaview":{source:"apache",extensions:["mvb","m13","m14"]},"application/x-msmetafile":{source:"apache",extensions:["wmf","wmz","emf","emz"]},"application/x-msmoney":{source:"apache",extensions:["mny"]},"application/x-mspublisher":{source:"apache",extensions:["pub"]},"application/x-msschedule":{source:"apache",extensions:["scd"]},"application/x-msterminal":{source:"apache",extensions:["trm"]},"application/x-mswrite":{source:"apache",extensions:["wri"]},"application/x-netcdf":{source:"apache",extensions:["nc","cdf"]},"application/x-ns-proxy-autoconfig":{compressible:!0,extensions:["pac"]},"application/x-nzb":{source:"apache",extensions:["nzb"]},"application/x-perl":{source:"nginx",extensions:["pl","pm"]},"application/x-pilot":{source:"nginx",extensions:["prc","pdb"]},"application/x-pkcs12":{source:"apache",compressible:!1,extensions:["p12","pfx"]},"application/x-pkcs7-certificates":{source:"apache",extensions:["p7b","spc"]},"application/x-pkcs7-certreqresp":{source:"apache",extensions:["p7r"]},"application/x-pki-message":{source:"iana"},"application/x-rar-compressed":{source:"apache",compressible:!1,extensions:["rar"]},"application/x-redhat-package-manager":{source:"nginx",extensions:["rpm"]},"application/x-research-info-systems":{source:"apache",extensions:["ris"]},"application/x-sea":{source:"nginx",extensions:["sea"]},"application/x-sh":{source:"apache",compressible:!0,extensions:["sh"]},"application/x-shar":{source:"apache",extensions:["shar"]},"application/x-shockwave-flash":{source:"apache",compressible:!1,extensions:["swf"]},"application/x-silverlight-app":{source:"apache",extensions:["xap"]},"application/x-sql":{source:"apache",extensions:["sql"]},"application/x-stuffit":{source:"apache",compressible:!1,extensions:["sit"]},"application/x-stuffitx":{source:"apache",extensions:["sitx"]},"application/x-subrip":{source:"apache",extensions:["srt"]},"application/x-sv4cpio":{source:"apache",extensions:["sv4cpio"]},"application/x-sv4crc":{source:"apache",extensions:["sv4crc"]},"application/x-t3vm-image":{source:"apache",extensions:["t3"]},"application/x-tads":{source:"apache",extensions:["gam"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-tcl":{source:"apache",extensions:["tcl","tk"]},"application/x-tex":{source:"apache",extensions:["tex"]},"application/x-tex-tfm":{source:"apache",extensions:["tfm"]},"application/x-texinfo":{source:"apache",extensions:["texinfo","texi"]},"application/x-tgif":{source:"apache",extensions:["obj"]},"application/x-ustar":{source:"apache",extensions:["ustar"]},"application/x-virtualbox-hdd":{compressible:!0,extensions:["hdd"]},"application/x-virtualbox-ova":{compressible:!0,extensions:["ova"]},"application/x-virtualbox-ovf":{compressible:!0,extensions:["ovf"]},"application/x-virtualbox-vbox":{compressible:!0,extensions:["vbox"]},"application/x-virtualbox-vbox-extpack":{compressible:!1,extensions:["vbox-extpack"]},"application/x-virtualbox-vdi":{compressible:!0,extensions:["vdi"]},"application/x-virtualbox-vhd":{compressible:!0,extensions:["vhd"]},"application/x-virtualbox-vmdk":{compressible:!0,extensions:["vmdk"]},"application/x-wais-source":{source:"apache",extensions:["src"]},"application/x-web-app-manifest+json":{compressible:!0,extensions:["webapp"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"application/x-x509-ca-cert":{source:"iana",extensions:["der","crt","pem"]},"application/x-x509-ca-ra-cert":{source:"iana"},"application/x-x509-next-ca-cert":{source:"iana"},"application/x-xfig":{source:"apache",extensions:["fig"]},"application/x-xliff+xml":{source:"apache",compressible:!0,extensions:["xlf"]},"application/x-xpinstall":{source:"apache",compressible:!1,extensions:["xpi"]},"application/x-xz":{source:"apache",extensions:["xz"]},"application/x-zmachine":{source:"apache",extensions:["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{source:"iana"},"application/xacml+xml":{source:"iana",compressible:!0},"application/xaml+xml":{source:"apache",compressible:!0,extensions:["xaml"]},"application/xcap-att+xml":{source:"iana",compressible:!0,extensions:["xav"]},"application/xcap-caps+xml":{source:"iana",compressible:!0,extensions:["xca"]},"application/xcap-diff+xml":{source:"iana",compressible:!0,extensions:["xdf"]},"application/xcap-el+xml":{source:"iana",compressible:!0,extensions:["xel"]},"application/xcap-error+xml":{source:"iana",compressible:!0},"application/xcap-ns+xml":{source:"iana",compressible:!0,extensions:["xns"]},"application/xcon-conference-info+xml":{source:"iana",compressible:!0},"application/xcon-conference-info-diff+xml":{source:"iana",compressible:!0},"application/xenc+xml":{source:"iana",compressible:!0,extensions:["xenc"]},"application/xhtml+xml":{source:"iana",compressible:!0,extensions:["xhtml","xht"]},"application/xhtml-voice+xml":{source:"apache",compressible:!0},"application/xliff+xml":{source:"iana",compressible:!0,extensions:["xlf"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml","xsl","xsd","rng"]},"application/xml-dtd":{source:"iana",compressible:!0,extensions:["dtd"]},"application/xml-external-parsed-entity":{source:"iana"},"application/xml-patch+xml":{source:"iana",compressible:!0},"application/xmpp+xml":{source:"iana",compressible:!0},"application/xop+xml":{source:"iana",compressible:!0,extensions:["xop"]},"application/xproc+xml":{source:"apache",compressible:!0,extensions:["xpl"]},"application/xslt+xml":{source:"iana",compressible:!0,extensions:["xsl","xslt"]},"application/xspf+xml":{source:"apache",compressible:!0,extensions:["xspf"]},"application/xv+xml":{source:"iana",compressible:!0,extensions:["mxml","xhvml","xvml","xvm"]},"application/yang":{source:"iana",extensions:["yang"]},"application/yang-data+json":{source:"iana",compressible:!0},"application/yang-data+xml":{source:"iana",compressible:!0},"application/yang-patch+json":{source:"iana",compressible:!0},"application/yang-patch+xml":{source:"iana",compressible:!0},"application/yin+xml":{source:"iana",compressible:!0,extensions:["yin"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/zlib":{source:"iana"},"application/zstd":{source:"iana"},"audio/1d-interleaved-parityfec":{source:"iana"},"audio/32kadpcm":{source:"iana"},"audio/3gpp":{source:"iana",compressible:!1,extensions:["3gpp"]},"audio/3gpp2":{source:"iana"},"audio/aac":{source:"iana"},"audio/ac3":{source:"iana"},"audio/adpcm":{source:"apache",extensions:["adp"]},"audio/amr":{source:"iana",extensions:["amr"]},"audio/amr-wb":{source:"iana"},"audio/amr-wb+":{source:"iana"},"audio/aptx":{source:"iana"},"audio/asc":{source:"iana"},"audio/atrac-advanced-lossless":{source:"iana"},"audio/atrac-x":{source:"iana"},"audio/atrac3":{source:"iana"},"audio/basic":{source:"iana",compressible:!1,extensions:["au","snd"]},"audio/bv16":{source:"iana"},"audio/bv32":{source:"iana"},"audio/clearmode":{source:"iana"},"audio/cn":{source:"iana"},"audio/dat12":{source:"iana"},"audio/dls":{source:"iana"},"audio/dsr-es201108":{source:"iana"},"audio/dsr-es202050":{source:"iana"},"audio/dsr-es202211":{source:"iana"},"audio/dsr-es202212":{source:"iana"},"audio/dv":{source:"iana"},"audio/dvi4":{source:"iana"},"audio/eac3":{source:"iana"},"audio/encaprtp":{source:"iana"},"audio/evrc":{source:"iana"},"audio/evrc-qcp":{source:"iana"},"audio/evrc0":{source:"iana"},"audio/evrc1":{source:"iana"},"audio/evrcb":{source:"iana"},"audio/evrcb0":{source:"iana"},"audio/evrcb1":{source:"iana"},"audio/evrcnw":{source:"iana"},"audio/evrcnw0":{source:"iana"},"audio/evrcnw1":{source:"iana"},"audio/evrcwb":{source:"iana"},"audio/evrcwb0":{source:"iana"},"audio/evrcwb1":{source:"iana"},"audio/evs":{source:"iana"},"audio/flexfec":{source:"iana"},"audio/fwdred":{source:"iana"},"audio/g711-0":{source:"iana"},"audio/g719":{source:"iana"},"audio/g722":{source:"iana"},"audio/g7221":{source:"iana"},"audio/g723":{source:"iana"},"audio/g726-16":{source:"iana"},"audio/g726-24":{source:"iana"},"audio/g726-32":{source:"iana"},"audio/g726-40":{source:"iana"},"audio/g728":{source:"iana"},"audio/g729":{source:"iana"},"audio/g7291":{source:"iana"},"audio/g729d":{source:"iana"},"audio/g729e":{source:"iana"},"audio/gsm":{source:"iana"},"audio/gsm-efr":{source:"iana"},"audio/gsm-hr-08":{source:"iana"},"audio/ilbc":{source:"iana"},"audio/ip-mr_v2.5":{source:"iana"},"audio/isac":{source:"apache"},"audio/l16":{source:"iana"},"audio/l20":{source:"iana"},"audio/l24":{source:"iana",compressible:!1},"audio/l8":{source:"iana"},"audio/lpc":{source:"iana"},"audio/melp":{source:"iana"},"audio/melp1200":{source:"iana"},"audio/melp2400":{source:"iana"},"audio/melp600":{source:"iana"},"audio/mhas":{source:"iana"},"audio/midi":{source:"apache",extensions:["mid","midi","kar","rmi"]},"audio/mobile-xmf":{source:"iana",extensions:["mxmf"]},"audio/mp3":{compressible:!1,extensions:["mp3"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a","mp4a"]},"audio/mp4a-latm":{source:"iana"},"audio/mpa":{source:"iana"},"audio/mpa-robust":{source:"iana"},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{source:"iana"},"audio/musepack":{source:"apache"},"audio/ogg":{source:"iana",compressible:!1,extensions:["oga","ogg","spx","opus"]},"audio/opus":{source:"iana"},"audio/parityfec":{source:"iana"},"audio/pcma":{source:"iana"},"audio/pcma-wb":{source:"iana"},"audio/pcmu":{source:"iana"},"audio/pcmu-wb":{source:"iana"},"audio/prs.sid":{source:"iana"},"audio/qcelp":{source:"iana"},"audio/raptorfec":{source:"iana"},"audio/red":{source:"iana"},"audio/rtp-enc-aescm128":{source:"iana"},"audio/rtp-midi":{source:"iana"},"audio/rtploopback":{source:"iana"},"audio/rtx":{source:"iana"},"audio/s3m":{source:"apache",extensions:["s3m"]},"audio/scip":{source:"iana"},"audio/silk":{source:"apache",extensions:["sil"]},"audio/smv":{source:"iana"},"audio/smv-qcp":{source:"iana"},"audio/smv0":{source:"iana"},"audio/sofa":{source:"iana"},"audio/sp-midi":{source:"iana"},"audio/speex":{source:"iana"},"audio/t140c":{source:"iana"},"audio/t38":{source:"iana"},"audio/telephone-event":{source:"iana"},"audio/tetra_acelp":{source:"iana"},"audio/tetra_acelp_bb":{source:"iana"},"audio/tone":{source:"iana"},"audio/tsvcis":{source:"iana"},"audio/uemclip":{source:"iana"},"audio/ulpfec":{source:"iana"},"audio/usac":{source:"iana"},"audio/vdvi":{source:"iana"},"audio/vmr-wb":{source:"iana"},"audio/vnd.3gpp.iufp":{source:"iana"},"audio/vnd.4sb":{source:"iana"},"audio/vnd.audiokoz":{source:"iana"},"audio/vnd.celp":{source:"iana"},"audio/vnd.cisco.nse":{source:"iana"},"audio/vnd.cmles.radio-events":{source:"iana"},"audio/vnd.cns.anp1":{source:"iana"},"audio/vnd.cns.inf1":{source:"iana"},"audio/vnd.dece.audio":{source:"iana",extensions:["uva","uvva"]},"audio/vnd.digital-winds":{source:"iana",extensions:["eol"]},"audio/vnd.dlna.adts":{source:"iana"},"audio/vnd.dolby.heaac.1":{source:"iana"},"audio/vnd.dolby.heaac.2":{source:"iana"},"audio/vnd.dolby.mlp":{source:"iana"},"audio/vnd.dolby.mps":{source:"iana"},"audio/vnd.dolby.pl2":{source:"iana"},"audio/vnd.dolby.pl2x":{source:"iana"},"audio/vnd.dolby.pl2z":{source:"iana"},"audio/vnd.dolby.pulse.1":{source:"iana"},"audio/vnd.dra":{source:"iana",extensions:["dra"]},"audio/vnd.dts":{source:"iana",extensions:["dts"]},"audio/vnd.dts.hd":{source:"iana",extensions:["dtshd"]},"audio/vnd.dts.uhd":{source:"iana"},"audio/vnd.dvb.file":{source:"iana"},"audio/vnd.everad.plj":{source:"iana"},"audio/vnd.hns.audio":{source:"iana"},"audio/vnd.lucent.voice":{source:"iana",extensions:["lvp"]},"audio/vnd.ms-playready.media.pya":{source:"iana",extensions:["pya"]},"audio/vnd.nokia.mobile-xmf":{source:"iana"},"audio/vnd.nortel.vbk":{source:"iana"},"audio/vnd.nuera.ecelp4800":{source:"iana",extensions:["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{source:"iana",extensions:["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{source:"iana",extensions:["ecelp9600"]},"audio/vnd.octel.sbc":{source:"iana"},"audio/vnd.presonus.multitrack":{source:"iana"},"audio/vnd.qcelp":{source:"iana"},"audio/vnd.rhetorex.32kadpcm":{source:"iana"},"audio/vnd.rip":{source:"iana",extensions:["rip"]},"audio/vnd.rn-realaudio":{compressible:!1},"audio/vnd.sealedmedia.softseal.mpeg":{source:"iana"},"audio/vnd.vmx.cvsd":{source:"iana"},"audio/vnd.wave":{compressible:!1},"audio/vorbis":{source:"iana",compressible:!1},"audio/vorbis-config":{source:"iana"},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/wave":{compressible:!1,extensions:["wav"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/x-aac":{source:"apache",compressible:!1,extensions:["aac"]},"audio/x-aiff":{source:"apache",extensions:["aif","aiff","aifc"]},"audio/x-caf":{source:"apache",compressible:!1,extensions:["caf"]},"audio/x-flac":{source:"apache",extensions:["flac"]},"audio/x-m4a":{source:"nginx",extensions:["m4a"]},"audio/x-matroska":{source:"apache",extensions:["mka"]},"audio/x-mpegurl":{source:"apache",extensions:["m3u"]},"audio/x-ms-wax":{source:"apache",extensions:["wax"]},"audio/x-ms-wma":{source:"apache",extensions:["wma"]},"audio/x-pn-realaudio":{source:"apache",extensions:["ram","ra"]},"audio/x-pn-realaudio-plugin":{source:"apache",extensions:["rmp"]},"audio/x-realaudio":{source:"nginx",extensions:["ra"]},"audio/x-tta":{source:"apache"},"audio/x-wav":{source:"apache",extensions:["wav"]},"audio/xm":{source:"apache",extensions:["xm"]},"chemical/x-cdx":{source:"apache",extensions:["cdx"]},"chemical/x-cif":{source:"apache",extensions:["cif"]},"chemical/x-cmdf":{source:"apache",extensions:["cmdf"]},"chemical/x-cml":{source:"apache",extensions:["cml"]},"chemical/x-csml":{source:"apache",extensions:["csml"]},"chemical/x-pdb":{source:"apache"},"chemical/x-xyz":{source:"apache",extensions:["xyz"]},"font/collection":{source:"iana",extensions:["ttc"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"font/sfnt":{source:"iana"},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/woff":{source:"iana",extensions:["woff"]},"font/woff2":{source:"iana",extensions:["woff2"]},"image/aces":{source:"iana",extensions:["exr"]},"image/apng":{compressible:!1,extensions:["apng"]},"image/avci":{source:"iana",extensions:["avci"]},"image/avcs":{source:"iana",extensions:["avcs"]},"image/avif":{source:"iana",compressible:!1,extensions:["avif"]},"image/bmp":{source:"iana",compressible:!0,extensions:["bmp"]},"image/cgm":{source:"iana",extensions:["cgm"]},"image/dicom-rle":{source:"iana",extensions:["drle"]},"image/emf":{source:"iana",extensions:["emf"]},"image/fits":{source:"iana",extensions:["fits"]},"image/g3fax":{source:"iana",extensions:["g3"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/heic":{source:"iana",extensions:["heic"]},"image/heic-sequence":{source:"iana",extensions:["heics"]},"image/heif":{source:"iana",extensions:["heif"]},"image/heif-sequence":{source:"iana",extensions:["heifs"]},"image/hej2k":{source:"iana",extensions:["hej2"]},"image/hsj2":{source:"iana",extensions:["hsj2"]},"image/ief":{source:"iana",extensions:["ief"]},"image/jls":{source:"iana",extensions:["jls"]},"image/jp2":{source:"iana",compressible:!1,extensions:["jp2","jpg2"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/jph":{source:"iana",extensions:["jph"]},"image/jphc":{source:"iana",extensions:["jhc"]},"image/jpm":{source:"iana",compressible:!1,extensions:["jpm"]},"image/jpx":{source:"iana",compressible:!1,extensions:["jpx","jpf"]},"image/jxr":{source:"iana",extensions:["jxr"]},"image/jxra":{source:"iana",extensions:["jxra"]},"image/jxrs":{source:"iana",extensions:["jxrs"]},"image/jxs":{source:"iana",extensions:["jxs"]},"image/jxsc":{source:"iana",extensions:["jxsc"]},"image/jxsi":{source:"iana",extensions:["jxsi"]},"image/jxss":{source:"iana",extensions:["jxss"]},"image/ktx":{source:"iana",extensions:["ktx"]},"image/ktx2":{source:"iana",extensions:["ktx2"]},"image/naplps":{source:"iana"},"image/pjpeg":{compressible:!1},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/prs.btif":{source:"iana",extensions:["btif"]},"image/prs.pti":{source:"iana",extensions:["pti"]},"image/pwg-raster":{source:"iana"},"image/sgi":{source:"apache",extensions:["sgi"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/t38":{source:"iana",extensions:["t38"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tif","tiff"]},"image/tiff-fx":{source:"iana",extensions:["tfx"]},"image/vnd.adobe.photoshop":{source:"iana",compressible:!0,extensions:["psd"]},"image/vnd.airzip.accelerator.azv":{source:"iana",extensions:["azv"]},"image/vnd.cns.inf2":{source:"iana"},"image/vnd.dece.graphic":{source:"iana",extensions:["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{source:"iana",extensions:["djvu","djv"]},"image/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"image/vnd.dwg":{source:"iana",extensions:["dwg"]},"image/vnd.dxf":{source:"iana",extensions:["dxf"]},"image/vnd.fastbidsheet":{source:"iana",extensions:["fbs"]},"image/vnd.fpx":{source:"iana",extensions:["fpx"]},"image/vnd.fst":{source:"iana",extensions:["fst"]},"image/vnd.fujixerox.edmics-mmr":{source:"iana",extensions:["mmr"]},"image/vnd.fujixerox.edmics-rlc":{source:"iana",extensions:["rlc"]},"image/vnd.globalgraphics.pgb":{source:"iana"},"image/vnd.microsoft.icon":{source:"iana",compressible:!0,extensions:["ico"]},"image/vnd.mix":{source:"iana"},"image/vnd.mozilla.apng":{source:"iana"},"image/vnd.ms-dds":{compressible:!0,extensions:["dds"]},"image/vnd.ms-modi":{source:"iana",extensions:["mdi"]},"image/vnd.ms-photo":{source:"apache",extensions:["wdp"]},"image/vnd.net-fpx":{source:"iana",extensions:["npx"]},"image/vnd.pco.b16":{source:"iana",extensions:["b16"]},"image/vnd.radiance":{source:"iana"},"image/vnd.sealed.png":{source:"iana"},"image/vnd.sealedmedia.softseal.gif":{source:"iana"},"image/vnd.sealedmedia.softseal.jpg":{source:"iana"},"image/vnd.svf":{source:"iana"},"image/vnd.tencent.tap":{source:"iana",extensions:["tap"]},"image/vnd.valve.source.texture":{source:"iana",extensions:["vtf"]},"image/vnd.wap.wbmp":{source:"iana",extensions:["wbmp"]},"image/vnd.xiff":{source:"iana",extensions:["xif"]},"image/vnd.zbrush.pcx":{source:"iana",extensions:["pcx"]},"image/webp":{source:"apache",extensions:["webp"]},"image/wmf":{source:"iana",extensions:["wmf"]},"image/x-3ds":{source:"apache",extensions:["3ds"]},"image/x-cmu-raster":{source:"apache",extensions:["ras"]},"image/x-cmx":{source:"apache",extensions:["cmx"]},"image/x-freehand":{source:"apache",extensions:["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/x-jng":{source:"nginx",extensions:["jng"]},"image/x-mrsid-image":{source:"apache",extensions:["sid"]},"image/x-ms-bmp":{source:"nginx",compressible:!0,extensions:["bmp"]},"image/x-pcx":{source:"apache",extensions:["pcx"]},"image/x-pict":{source:"apache",extensions:["pic","pct"]},"image/x-portable-anymap":{source:"apache",extensions:["pnm"]},"image/x-portable-bitmap":{source:"apache",extensions:["pbm"]},"image/x-portable-graymap":{source:"apache",extensions:["pgm"]},"image/x-portable-pixmap":{source:"apache",extensions:["ppm"]},"image/x-rgb":{source:"apache",extensions:["rgb"]},"image/x-tga":{source:"apache",extensions:["tga"]},"image/x-xbitmap":{source:"apache",extensions:["xbm"]},"image/x-xcf":{compressible:!1},"image/x-xpixmap":{source:"apache",extensions:["xpm"]},"image/x-xwindowdump":{source:"apache",extensions:["xwd"]},"message/cpim":{source:"iana"},"message/delivery-status":{source:"iana"},"message/disposition-notification":{source:"iana",extensions:["disposition-notification"]},"message/external-body":{source:"iana"},"message/feedback-report":{source:"iana"},"message/global":{source:"iana",extensions:["u8msg"]},"message/global-delivery-status":{source:"iana",extensions:["u8dsn"]},"message/global-disposition-notification":{source:"iana",extensions:["u8mdn"]},"message/global-headers":{source:"iana",extensions:["u8hdr"]},"message/http":{source:"iana",compressible:!1},"message/imdn+xml":{source:"iana",compressible:!0},"message/news":{source:"iana"},"message/partial":{source:"iana",compressible:!1},"message/rfc822":{source:"iana",compressible:!0,extensions:["eml","mime"]},"message/s-http":{source:"iana"},"message/sip":{source:"iana"},"message/sipfrag":{source:"iana"},"message/tracking-status":{source:"iana"},"message/vnd.si.simp":{source:"iana"},"message/vnd.wfa.wsc":{source:"iana",extensions:["wsc"]},"model/3mf":{source:"iana",extensions:["3mf"]},"model/e57":{source:"iana"},"model/gltf+json":{source:"iana",compressible:!0,extensions:["gltf"]},"model/gltf-binary":{source:"iana",compressible:!0,extensions:["glb"]},"model/iges":{source:"iana",compressible:!1,extensions:["igs","iges"]},"model/mesh":{source:"iana",compressible:!1,extensions:["msh","mesh","silo"]},"model/mtl":{source:"iana",extensions:["mtl"]},"model/obj":{source:"iana",extensions:["obj"]},"model/step":{source:"iana"},"model/step+xml":{source:"iana",compressible:!0,extensions:["stpx"]},"model/step+zip":{source:"iana",compressible:!1,extensions:["stpz"]},"model/step-xml+zip":{source:"iana",compressible:!1,extensions:["stpxz"]},"model/stl":{source:"iana",extensions:["stl"]},"model/vnd.collada+xml":{source:"iana",compressible:!0,extensions:["dae"]},"model/vnd.dwf":{source:"iana",extensions:["dwf"]},"model/vnd.flatland.3dml":{source:"iana"},"model/vnd.gdl":{source:"iana",extensions:["gdl"]},"model/vnd.gs-gdl":{source:"apache"},"model/vnd.gs.gdl":{source:"iana"},"model/vnd.gtw":{source:"iana",extensions:["gtw"]},"model/vnd.moml+xml":{source:"iana",compressible:!0},"model/vnd.mts":{source:"iana",extensions:["mts"]},"model/vnd.opengex":{source:"iana",extensions:["ogex"]},"model/vnd.parasolid.transmit.binary":{source:"iana",extensions:["x_b"]},"model/vnd.parasolid.transmit.text":{source:"iana",extensions:["x_t"]},"model/vnd.pytha.pyox":{source:"iana"},"model/vnd.rosette.annotated-data-model":{source:"iana"},"model/vnd.sap.vds":{source:"iana",extensions:["vds"]},"model/vnd.usdz+zip":{source:"iana",compressible:!1,extensions:["usdz"]},"model/vnd.valve.source.compiled-map":{source:"iana",extensions:["bsp"]},"model/vnd.vtu":{source:"iana",extensions:["vtu"]},"model/vrml":{source:"iana",compressible:!1,extensions:["wrl","vrml"]},"model/x3d+binary":{source:"apache",compressible:!1,extensions:["x3db","x3dbz"]},"model/x3d+fastinfoset":{source:"iana",extensions:["x3db"]},"model/x3d+vrml":{source:"apache",compressible:!1,extensions:["x3dv","x3dvz"]},"model/x3d+xml":{source:"iana",compressible:!0,extensions:["x3d","x3dz"]},"model/x3d-vrml":{source:"iana",extensions:["x3dv"]},"multipart/alternative":{source:"iana",compressible:!1},"multipart/appledouble":{source:"iana"},"multipart/byteranges":{source:"iana"},"multipart/digest":{source:"iana"},"multipart/encrypted":{source:"iana",compressible:!1},"multipart/form-data":{source:"iana",compressible:!1},"multipart/header-set":{source:"iana"},"multipart/mixed":{source:"iana"},"multipart/multilingual":{source:"iana"},"multipart/parallel":{source:"iana"},"multipart/related":{source:"iana",compressible:!1},"multipart/report":{source:"iana"},"multipart/signed":{source:"iana",compressible:!1},"multipart/vnd.bint.med-plus":{source:"iana"},"multipart/voice-message":{source:"iana"},"multipart/x-mixed-replace":{source:"iana"},"text/1d-interleaved-parityfec":{source:"iana"},"text/cache-manifest":{source:"iana",compressible:!0,extensions:["appcache","manifest"]},"text/calendar":{source:"iana",extensions:["ics","ifb"]},"text/calender":{compressible:!0},"text/cmd":{compressible:!0},"text/coffeescript":{extensions:["coffee","litcoffee"]},"text/cql":{source:"iana"},"text/cql-expression":{source:"iana"},"text/cql-identifier":{source:"iana"},"text/css":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["css"]},"text/csv":{source:"iana",compressible:!0,extensions:["csv"]},"text/csv-schema":{source:"iana"},"text/directory":{source:"iana"},"text/dns":{source:"iana"},"text/ecmascript":{source:"iana"},"text/encaprtp":{source:"iana"},"text/enriched":{source:"iana"},"text/fhirpath":{source:"iana"},"text/flexfec":{source:"iana"},"text/fwdred":{source:"iana"},"text/gff3":{source:"iana"},"text/grammar-ref-list":{source:"iana"},"text/html":{source:"iana",compressible:!0,extensions:["html","htm","shtml"]},"text/jade":{extensions:["jade"]},"text/javascript":{source:"iana",compressible:!0},"text/jcr-cnd":{source:"iana"},"text/jsx":{compressible:!0,extensions:["jsx"]},"text/less":{compressible:!0,extensions:["less"]},"text/markdown":{source:"iana",compressible:!0,extensions:["markdown","md"]},"text/mathml":{source:"nginx",extensions:["mml"]},"text/mdx":{compressible:!0,extensions:["mdx"]},"text/mizar":{source:"iana"},"text/n3":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["n3"]},"text/parameters":{source:"iana",charset:"UTF-8"},"text/parityfec":{source:"iana"},"text/plain":{source:"iana",compressible:!0,extensions:["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{source:"iana",charset:"UTF-8"},"text/prs.fallenstein.rst":{source:"iana"},"text/prs.lines.tag":{source:"iana",extensions:["dsc"]},"text/prs.prop.logic":{source:"iana"},"text/raptorfec":{source:"iana"},"text/red":{source:"iana"},"text/rfc822-headers":{source:"iana"},"text/richtext":{source:"iana",compressible:!0,extensions:["rtx"]},"text/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"text/rtp-enc-aescm128":{source:"iana"},"text/rtploopback":{source:"iana"},"text/rtx":{source:"iana"},"text/sgml":{source:"iana",extensions:["sgml","sgm"]},"text/shaclc":{source:"iana"},"text/shex":{source:"iana",extensions:["shex"]},"text/slim":{extensions:["slim","slm"]},"text/spdx":{source:"iana",extensions:["spdx"]},"text/strings":{source:"iana"},"text/stylus":{extensions:["stylus","styl"]},"text/t140":{source:"iana"},"text/tab-separated-values":{source:"iana",compressible:!0,extensions:["tsv"]},"text/troff":{source:"iana",extensions:["t","tr","roff","man","me","ms"]},"text/turtle":{source:"iana",charset:"UTF-8",extensions:["ttl"]},"text/ulpfec":{source:"iana"},"text/uri-list":{source:"iana",compressible:!0,extensions:["uri","uris","urls"]},"text/vcard":{source:"iana",compressible:!0,extensions:["vcard"]},"text/vnd.a":{source:"iana"},"text/vnd.abc":{source:"iana"},"text/vnd.ascii-art":{source:"iana"},"text/vnd.curl":{source:"iana",extensions:["curl"]},"text/vnd.curl.dcurl":{source:"apache",extensions:["dcurl"]},"text/vnd.curl.mcurl":{source:"apache",extensions:["mcurl"]},"text/vnd.curl.scurl":{source:"apache",extensions:["scurl"]},"text/vnd.debian.copyright":{source:"iana",charset:"UTF-8"},"text/vnd.dmclientscript":{source:"iana"},"text/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"text/vnd.esmertec.theme-descriptor":{source:"iana",charset:"UTF-8"},"text/vnd.familysearch.gedcom":{source:"iana",extensions:["ged"]},"text/vnd.ficlab.flt":{source:"iana"},"text/vnd.fly":{source:"iana",extensions:["fly"]},"text/vnd.fmi.flexstor":{source:"iana",extensions:["flx"]},"text/vnd.gml":{source:"iana"},"text/vnd.graphviz":{source:"iana",extensions:["gv"]},"text/vnd.hans":{source:"iana"},"text/vnd.hgl":{source:"iana"},"text/vnd.in3d.3dml":{source:"iana",extensions:["3dml"]},"text/vnd.in3d.spot":{source:"iana",extensions:["spot"]},"text/vnd.iptc.newsml":{source:"iana"},"text/vnd.iptc.nitf":{source:"iana"},"text/vnd.latex-z":{source:"iana"},"text/vnd.motorola.reflex":{source:"iana"},"text/vnd.ms-mediapackage":{source:"iana"},"text/vnd.net2phone.commcenter.command":{source:"iana"},"text/vnd.radisys.msml-basic-layout":{source:"iana"},"text/vnd.senx.warpscript":{source:"iana"},"text/vnd.si.uricatalogue":{source:"iana"},"text/vnd.sosi":{source:"iana"},"text/vnd.sun.j2me.app-descriptor":{source:"iana",charset:"UTF-8",extensions:["jad"]},"text/vnd.trolltech.linguist":{source:"iana",charset:"UTF-8"},"text/vnd.wap.si":{source:"iana"},"text/vnd.wap.sl":{source:"iana"},"text/vnd.wap.wml":{source:"iana",extensions:["wml"]},"text/vnd.wap.wmlscript":{source:"iana",extensions:["wmls"]},"text/vtt":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["vtt"]},"text/x-asm":{source:"apache",extensions:["s","asm"]},"text/x-c":{source:"apache",extensions:["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{source:"nginx",extensions:["htc"]},"text/x-fortran":{source:"apache",extensions:["f","for","f77","f90"]},"text/x-gwt-rpc":{compressible:!0},"text/x-handlebars-template":{extensions:["hbs"]},"text/x-java-source":{source:"apache",extensions:["java"]},"text/x-jquery-tmpl":{compressible:!0},"text/x-lua":{extensions:["lua"]},"text/x-markdown":{compressible:!0,extensions:["mkd"]},"text/x-nfo":{source:"apache",extensions:["nfo"]},"text/x-opml":{source:"apache",extensions:["opml"]},"text/x-org":{compressible:!0,extensions:["org"]},"text/x-pascal":{source:"apache",extensions:["p","pas"]},"text/x-processing":{compressible:!0,extensions:["pde"]},"text/x-sass":{extensions:["sass"]},"text/x-scss":{extensions:["scss"]},"text/x-setext":{source:"apache",extensions:["etx"]},"text/x-sfv":{source:"apache",extensions:["sfv"]},"text/x-suse-ymp":{compressible:!0,extensions:["ymp"]},"text/x-uuencode":{source:"apache",extensions:["uu"]},"text/x-vcalendar":{source:"apache",extensions:["vcs"]},"text/x-vcard":{source:"apache",extensions:["vcf"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/xml-external-parsed-entity":{source:"iana"},"text/yaml":{compressible:!0,extensions:["yaml","yml"]},"video/1d-interleaved-parityfec":{source:"iana"},"video/3gpp":{source:"iana",extensions:["3gp","3gpp"]},"video/3gpp-tt":{source:"iana"},"video/3gpp2":{source:"iana",extensions:["3g2"]},"video/av1":{source:"iana"},"video/bmpeg":{source:"iana"},"video/bt656":{source:"iana"},"video/celb":{source:"iana"},"video/dv":{source:"iana"},"video/encaprtp":{source:"iana"},"video/ffv1":{source:"iana"},"video/flexfec":{source:"iana"},"video/h261":{source:"iana",extensions:["h261"]},"video/h263":{source:"iana",extensions:["h263"]},"video/h263-1998":{source:"iana"},"video/h263-2000":{source:"iana"},"video/h264":{source:"iana",extensions:["h264"]},"video/h264-rcdo":{source:"iana"},"video/h264-svc":{source:"iana"},"video/h265":{source:"iana"},"video/iso.segment":{source:"iana",extensions:["m4s"]},"video/jpeg":{source:"iana",extensions:["jpgv"]},"video/jpeg2000":{source:"iana"},"video/jpm":{source:"apache",extensions:["jpm","jpgm"]},"video/jxsv":{source:"iana"},"video/mj2":{source:"iana",extensions:["mj2","mjp2"]},"video/mp1s":{source:"iana"},"video/mp2p":{source:"iana"},"video/mp2t":{source:"iana",extensions:["ts"]},"video/mp4":{source:"iana",compressible:!1,extensions:["mp4","mp4v","mpg4"]},"video/mp4v-es":{source:"iana"},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{source:"iana"},"video/mpv":{source:"iana"},"video/nv":{source:"iana"},"video/ogg":{source:"iana",compressible:!1,extensions:["ogv"]},"video/parityfec":{source:"iana"},"video/pointer":{source:"iana"},"video/quicktime":{source:"iana",compressible:!1,extensions:["qt","mov"]},"video/raptorfec":{source:"iana"},"video/raw":{source:"iana"},"video/rtp-enc-aescm128":{source:"iana"},"video/rtploopback":{source:"iana"},"video/rtx":{source:"iana"},"video/scip":{source:"iana"},"video/smpte291":{source:"iana"},"video/smpte292m":{source:"iana"},"video/ulpfec":{source:"iana"},"video/vc1":{source:"iana"},"video/vc2":{source:"iana"},"video/vnd.cctv":{source:"iana"},"video/vnd.dece.hd":{source:"iana",extensions:["uvh","uvvh"]},"video/vnd.dece.mobile":{source:"iana",extensions:["uvm","uvvm"]},"video/vnd.dece.mp4":{source:"iana"},"video/vnd.dece.pd":{source:"iana",extensions:["uvp","uvvp"]},"video/vnd.dece.sd":{source:"iana",extensions:["uvs","uvvs"]},"video/vnd.dece.video":{source:"iana",extensions:["uvv","uvvv"]},"video/vnd.directv.mpeg":{source:"iana"},"video/vnd.directv.mpeg-tts":{source:"iana"},"video/vnd.dlna.mpeg-tts":{source:"iana"},"video/vnd.dvb.file":{source:"iana",extensions:["dvb"]},"video/vnd.fvt":{source:"iana",extensions:["fvt"]},"video/vnd.hns.video":{source:"iana"},"video/vnd.iptvforum.1dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.1dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.2dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.2dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.ttsavc":{source:"iana"},"video/vnd.iptvforum.ttsmpeg2":{source:"iana"},"video/vnd.motorola.video":{source:"iana"},"video/vnd.motorola.videop":{source:"iana"},"video/vnd.mpegurl":{source:"iana",extensions:["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{source:"iana",extensions:["pyv"]},"video/vnd.nokia.interleaved-multimedia":{source:"iana"},"video/vnd.nokia.mp4vr":{source:"iana"},"video/vnd.nokia.videovoip":{source:"iana"},"video/vnd.objectvideo":{source:"iana"},"video/vnd.radgamettools.bink":{source:"iana"},"video/vnd.radgamettools.smacker":{source:"iana"},"video/vnd.sealed.mpeg1":{source:"iana"},"video/vnd.sealed.mpeg4":{source:"iana"},"video/vnd.sealed.swf":{source:"iana"},"video/vnd.sealedmedia.softseal.mov":{source:"iana"},"video/vnd.uvvu.mp4":{source:"iana",extensions:["uvu","uvvu"]},"video/vnd.vivo":{source:"iana",extensions:["viv"]},"video/vnd.youtube.yt":{source:"iana"},"video/vp8":{source:"iana"},"video/vp9":{source:"iana"},"video/webm":{source:"apache",compressible:!1,extensions:["webm"]},"video/x-f4v":{source:"apache",extensions:["f4v"]},"video/x-fli":{source:"apache",extensions:["fli"]},"video/x-flv":{source:"apache",compressible:!1,extensions:["flv"]},"video/x-m4v":{source:"apache",extensions:["m4v"]},"video/x-matroska":{source:"apache",compressible:!1,extensions:["mkv","mk3d","mks"]},"video/x-mng":{source:"apache",extensions:["mng"]},"video/x-ms-asf":{source:"apache",extensions:["asf","asx"]},"video/x-ms-vob":{source:"apache",extensions:["vob"]},"video/x-ms-wm":{source:"apache",extensions:["wm"]},"video/x-ms-wmv":{source:"apache",compressible:!1,extensions:["wmv"]},"video/x-ms-wmx":{source:"apache",extensions:["wmx"]},"video/x-ms-wvx":{source:"apache",extensions:["wvx"]},"video/x-msvideo":{source:"apache",extensions:["avi"]},"video/x-sgi-movie":{source:"apache",extensions:["movie"]},"video/x-smv":{source:"apache",extensions:["smv"]},"x-conference/x-cooltalk":{source:"apache",extensions:["ice"]},"x-shader/x-fragment":{compressible:!0},"x-shader/x-vertex":{compressible:!0}};
|
|
102
|
+
!function(e){const t=base64Js,r=ieee754,o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=u,e.SlowBuffer=function(e){+e!=e&&(e=0);return u.alloc(+e)},e.INSPECT_MAX_BYTES=50;const n=2147483647;e.kMaxLength=n;const{Uint8Array:i,ArrayBuffer:a,SharedArrayBuffer:s}=globalThis;function c(e){if(e>n)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new i(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 p(e)}return l(e,t,r)}function l(e,t,r){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const r=0|y(e,t);let o=c(r);const n=o.write(e,t);n!==r&&(o=o.slice(0,n));return o}(e,t);if(a.isView(e))return function(e){if(Q(e,i)){const t=new i(e);return f(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(Q(e,a)||e&&Q(e.buffer,a))return f(e,t,r);if(void 0!==s&&(Q(e,s)||e&&Q(e.buffer,s)))return f(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const o=e.valueOf&&e.valueOf();if(null!=o&&o!==e)return u.from(o,t,r);const n=function(e){if(u.isBuffer(e)){const t=0|m(e.length),r=c(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return"number"!=typeof e.length||Y(e.length)?c(0):h(e);if("Buffer"===e.type&&Array.isArray(e.data))return h(e.data)}(e);if(n)return n;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 d(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 p(e){return d(e),c(e<0?0:0|m(e))}function h(e){const t=e.length<0?0:0|m(e.length),r=c(t);for(let o=0;o<t;o+=1)r[o]=255&e[o];return r}function f(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 o;return o=void 0===t&&void 0===r?new i(e):void 0===r?new i(e,t):new i(e,t,r),Object.setPrototypeOf(o,u.prototype),o}function m(e){if(e>=n)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n.toString(16)+" bytes");return 0|e}function y(e,t){if(u.isBuffer(e))return e.length;if(a.isView(e)||Q(e,a))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,o=arguments.length>2&&!0===arguments[2];if(!o&&0===r)return 0;let n=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return W(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return z(e).length;default:if(n)return o?-1:W(e).length;t=(""+t).toLowerCase(),n=!0}}function g(e,t,r){let o=!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 x(this,t,r);case"utf8":case"utf-8":return O(this,t,r);case"ascii":return S(this,t,r);case"latin1":case"binary":return R(this,t,r);case"base64":return A(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,r);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}function b(e,t,r){const o=e[t];e[t]=e[r],e[r]=o}function v(e,t,r,o,n){if(0===e.length)return-1;if("string"==typeof r?(o=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),Y(r=+r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0){if(!n)return-1;r=0}if("string"==typeof t&&(t=u.from(t,o)),u.isBuffer(t))return 0===t.length?-1:w(e,t,r,o,n);if("number"==typeof t)return t&=255,"function"==typeof i.prototype.indexOf?n?i.prototype.indexOf.call(e,t,r):i.prototype.lastIndexOf.call(e,t,r):w(e,[t],r,o,n);throw new TypeError("val must be string, number or Buffer")}function w(e,t,r,o,n){let i,a=1,s=e.length,c=t.length;if(void 0!==o&&("ucs2"===(o=String(o).toLowerCase())||"ucs-2"===o||"utf16le"===o||"utf-16le"===o)){if(e.length<2||t.length<2)return-1;a=2,s/=2,c/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(n){let o=-1;for(i=r;i<s;i++)if(u(e,i)===u(t,-1===o?0:i-o)){if(-1===o&&(o=i),i-o+1===c)return o*a}else-1!==o&&(i-=i-o),o=-1}else for(r+c>s&&(r=s-c),i=r;i>=0;i--){let r=!0;for(let o=0;o<c;o++)if(u(e,i+o)!==u(t,o)){r=!1;break}if(r)return i}return-1}function $(e,t,r,o){r=Number(r)||0;const n=e.length-r;o?(o=Number(o))>n&&(o=n):o=n;const i=t.length;let a;for(o>i/2&&(o=i/2),a=0;a<o;++a){const o=parseInt(t.substr(2*a,2),16);if(Y(o))return a;e[r+a]=o}return a}function k(e,t,r,o){return Z(W(t,e.length-r),e,r,o)}function _(e,t,r,o){return Z(function(e){const t=[];for(let r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,o)}function T(e,t,r,o){return Z(z(t),e,r,o)}function I(e,t,r,o){return Z(function(e,t){let r,o,n;const i=[];for(let a=0;a<e.length&&!((t-=2)<0);++a)r=e.charCodeAt(a),o=r>>8,n=r%256,i.push(n),i.push(o);return i}(t,e.length-r),e,r,o)}function A(e,r,o){return 0===r&&o===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(r,o))}function O(e,t,r){r=Math.min(e.length,r);const o=[];let n=t;for(;n<r;){const t=e[n];let i=null,a=t>239?4:t>223?3:t>191?2:1;if(n+a<=r){let r,o,s,c;switch(a){case 1:t<128&&(i=t);break;case 2:r=e[n+1],128==(192&r)&&(c=(31&t)<<6|63&r,c>127&&(i=c));break;case 3:r=e[n+1],o=e[n+2],128==(192&r)&&128==(192&o)&&(c=(15&t)<<12|(63&r)<<6|63&o,c>2047&&(c<55296||c>57343)&&(i=c));break;case 4:r=e[n+1],o=e[n+2],s=e[n+3],128==(192&r)&&128==(192&o)&&128==(192&s)&&(c=(15&t)<<18|(63&r)<<12|(63&o)<<6|63&s,c>65535&&c<1114112&&(i=c))}}null===i?(i=65533,a=1):i>65535&&(i-=65536,o.push(i>>>10&1023|55296),i=56320|1023&i),o.push(i),n+=a}return function(e){const t=e.length;if(t<=E)return String.fromCharCode.apply(String,e);let r="",o=0;for(;o<t;)r+=String.fromCharCode.apply(String,e.slice(o,o+=E));return r}(o)}u.TYPED_ARRAY_SUPPORT=function(){try{const e=new i(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,i.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 l(e,t,r)},Object.setPrototypeOf(u.prototype,i.prototype),Object.setPrototypeOf(u,i),u.alloc=function(e,t,r){return function(e,t,r){return d(e),e<=0?c(e):void 0!==t?"string"==typeof r?c(e).fill(t,r):c(e).fill(t):c(e)}(e,t,r)},u.allocUnsafe=function(e){return p(e)},u.allocUnsafeSlow=function(e){return p(e)},u.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==u.prototype},u.compare=function(e,t){if(Q(e,i)&&(e=u.from(e,e.offset,e.byteLength)),Q(t,i)&&(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,o=t.length;for(let n=0,i=Math.min(r,o);n<i;++n)if(e[n]!==t[n]){r=e[n],o=t[n];break}return r<o?-1:o<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 o=u.allocUnsafe(t);let n=0;for(r=0;r<e.length;++r){let t=e[r];if(Q(t,i))n+t.length>o.length?(u.isBuffer(t)||(t=u.from(t)),t.copy(o,n)):i.prototype.set.call(o,t,n);else{if(!u.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(o,n)}n+=t.length}return o},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)b(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)b(this,t,t+3),b(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)b(this,t,t+7),b(this,t+1,t+6),b(this,t+2,t+5),b(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):g.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 t="";const r=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"},o&&(u.prototype[o]=u.prototype.inspect),u.prototype.compare=function(e,t,r,o,n){if(Q(e,i)&&(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===o&&(o=0),void 0===n&&(n=this.length),t<0||r>e.length||o<0||n>this.length)throw new RangeError("out of range index");if(o>=n&&t>=r)return 0;if(o>=n)return-1;if(t>=r)return 1;if(this===e)return 0;let a=(n>>>=0)-(o>>>=0),s=(r>>>=0)-(t>>>=0);const c=Math.min(a,s),l=this.slice(o,n),d=e.slice(t,r);for(let i=0;i<c;++i)if(l[i]!==d[i]){a=l[i],s=d[i];break}return a<s?-1:s<a?1:0},u.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},u.prototype.indexOf=function(e,t,r){return v(this,e,t,r,!0)},u.prototype.lastIndexOf=function(e,t,r){return v(this,e,t,r,!1)},u.prototype.write=function(e,t,r,o){if(void 0===t)o="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)o=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===o&&(o="utf8")):(o=r,r=void 0)}const n=this.length-t;if((void 0===r||r>n)&&(r=n),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");let i=!1;for(;;)switch(o){case"hex":return $(this,e,t,r);case"utf8":case"utf-8":return k(this,e,t,r);case"ascii":case"latin1":case"binary":return _(this,e,t,r);case"base64":return T(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,e,t,r);default:if(i)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),i=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const E=4096;function S(e,t,r){let o="";r=Math.min(e.length,r);for(let n=t;n<r;++n)o+=String.fromCharCode(127&e[n]);return o}function R(e,t,r){let o="";r=Math.min(e.length,r);for(let n=t;n<r;++n)o+=String.fromCharCode(e[n]);return o}function x(e,t,r){const o=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>o)&&(r=o);let n="";for(let i=t;i<r;++i)n+=X[e[i]];return n}function C(e,t,r){const o=e.slice(t,r);let n="";for(let i=0;i<o.length-1;i+=2)n+=String.fromCharCode(o[i]+256*o[i+1]);return n}function P(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,o,n,i){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>n||t<i)throw new RangeError('"value" argument is out of bounds');if(r+o>e.length)throw new RangeError("Index out of range")}function B(e,t,r,o,n){q(t,o,n,e,r,7);let i=Number(t&BigInt(4294967295));e[r++]=i,i>>=8,e[r++]=i,i>>=8,e[r++]=i,i>>=8,e[r++]=i;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,r}function D(e,t,r,o,n){q(t,o,n,e,r,7);let i=Number(t&BigInt(4294967295));e[r+7]=i,i>>=8,e[r+6]=i,i>>=8,e[r+5]=i,i>>=8,e[r+4]=i;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=a,a>>=8,e[r+2]=a,a>>=8,e[r+1]=a,a>>=8,e[r]=a,r+8}function M(e,t,r,o,n,i){if(r+o>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function L(e,t,o,n,i){return t=+t,o>>>=0,i||M(e,0,o,4),r.write(e,t,o,n,23,4),o+4}function j(e,t,o,n,i){return t=+t,o>>>=0,i||M(e,0,o,8),r.write(e,t,o,n,52,8),o+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 o=this.subarray(e,t);return Object.setPrototypeOf(o,u.prototype),o},u.prototype.readUintLE=u.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||P(e,t,this.length);let o=this[e],n=1,i=0;for(;++i<t&&(n*=256);)o+=this[e+i]*n;return o},u.prototype.readUintBE=u.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||P(e,t,this.length);let o=this[e+--t],n=1;for(;t>0&&(n*=256);)o+=this[e+--t]*n;return o},u.prototype.readUint8=u.prototype.readUInt8=function(e,t){return e>>>=0,t||P(e,1,this.length),this[e]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(e,t){return e>>>=0,t||P(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(e,t){return e>>>=0,t||P(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(e,t){return e>>>=0,t||P(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||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readBigUInt64LE=J((function(e){G(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||H(e,this.length-8);const o=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,n=this[++e]+256*this[++e]+65536*this[++e]+r*2**24;return BigInt(o)+(BigInt(n)<<BigInt(32))})),u.prototype.readBigUInt64BE=J((function(e){G(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||H(e,this.length-8);const o=t*2**24+65536*this[++e]+256*this[++e]+this[++e],n=this[++e]*2**24+65536*this[++e]+256*this[++e]+r;return(BigInt(o)<<BigInt(32))+BigInt(n)})),u.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||P(e,t,this.length);let o=this[e],n=1,i=0;for(;++i<t&&(n*=256);)o+=this[e+i]*n;return n*=128,o>=n&&(o-=Math.pow(2,8*t)),o},u.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||P(e,t,this.length);let o=t,n=1,i=this[e+--o];for(;o>0&&(n*=256);)i+=this[e+--o]*n;return n*=128,i>=n&&(i-=Math.pow(2,8*t)),i},u.prototype.readInt8=function(e,t){return e>>>=0,t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){e>>>=0,t||P(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||P(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||P(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||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readBigInt64LE=J((function(e){G(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||H(e,this.length-8);const o=this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24);return(BigInt(o)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),u.prototype.readBigInt64BE=J((function(e){G(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||H(e,this.length-8);const o=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(o)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+r)})),u.prototype.readFloatLE=function(e,t){return e>>>=0,t||P(e,4,this.length),r.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return e>>>=0,t||P(e,4,this.length),r.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return e>>>=0,t||P(e,8,this.length),r.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return e>>>=0,t||P(e,8,this.length),r.read(this,e,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(e,t,r,o){if(e=+e,t>>>=0,r>>>=0,!o){N(this,e,t,r,Math.pow(2,8*r)-1,0)}let n=1,i=0;for(this[t]=255&e;++i<r&&(n*=256);)this[t+i]=e/n&255;return t+r},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(e,t,r,o){if(e=+e,t>>>=0,r>>>=0,!o){N(this,e,t,r,Math.pow(2,8*r)-1,0)}let n=r-1,i=1;for(this[t+n]=255&e;--n>=0&&(i*=256);)this[t+n]=e/i&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=J((function(e,t=0){return B(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),u.prototype.writeBigUInt64BE=J((function(e,t=0){return D(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),u.prototype.writeIntLE=function(e,t,r,o){if(e=+e,t>>>=0,!o){const o=Math.pow(2,8*r-1);N(this,e,t,r,o-1,-o)}let n=0,i=1,a=0;for(this[t]=255&e;++n<r&&(i*=256);)e<0&&0===a&&0!==this[t+n-1]&&(a=1),this[t+n]=(e/i|0)-a&255;return t+r},u.prototype.writeIntBE=function(e,t,r,o){if(e=+e,t>>>=0,!o){const o=Math.pow(2,8*r-1);N(this,e,t,r,o-1,-o)}let n=r-1,i=1,a=0;for(this[t+n]=255&e;--n>=0&&(i*=256);)e<0&&0===a&&0!==this[t+n+1]&&(a=1),this[t+n]=(e/i|0)-a&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=J((function(e,t=0){return B(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),u.prototype.writeBigInt64BE=J((function(e,t=0){return D(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),u.prototype.writeFloatLE=function(e,t,r){return L(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return L(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return j(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return j(this,e,t,!1,r)},u.prototype.copy=function(e,t,r,o){if(!u.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),o||0===o||(o=this.length),t>=e.length&&(t=e.length),t||(t=0),o>0&&o<r&&(o=r),o===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(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-t<o-r&&(o=e.length-t+r);const n=o-r;return this===e&&"function"==typeof i.prototype.copyWithin?this.copyWithin(t,r,o):i.prototype.set.call(e,this.subarray(r,o),t),n},u.prototype.fill=function(e,t,r,o){if("string"==typeof e){if("string"==typeof t?(o=t,t=0,r=this.length):"string"==typeof r&&(o=r,r=this.length),void 0!==o&&"string"!=typeof o)throw new TypeError("encoding must be a string");if("string"==typeof o&&!u.isEncoding(o))throw new TypeError("Unknown encoding: "+o);if(1===e.length){const t=e.charCodeAt(0);("utf8"===o&&t<128||"latin1"===o)&&(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 n;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(n=t;n<r;++n)this[n]=e;else{const i=u.isBuffer(e)?e:u.from(e,o),a=i.length;if(0===a)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(n=0;n<r-t;++n)this[n+t]=i[n%a]}return this};const F={};function U(e,t,r){F[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 K(e){let t="",r=e.length;const o="-"===e[0]?1:0;for(;r>=o+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function q(e,t,r,o,n,i){if(e>r||e<t){const r="bigint"==typeof t?"n":"";let o;throw o=0===t||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(i+1)}${r}`:`>= -(2${r} ** ${8*(i+1)-1}${r}) and < 2 ** ${8*(i+1)-1}${r}`,new F.ERR_OUT_OF_RANGE("value",o,e)}!function(e,t,r){G(t,"offset"),void 0!==e[t]&&void 0!==e[t+r]||H(t,e.length-(r+1))}(o,n,i)}function G(e,t){if("number"!=typeof e)throw new F.ERR_INVALID_ARG_TYPE(t,"number",e)}function H(e,t,r){if(Math.floor(e)!==e)throw G(e,r),new F.ERR_OUT_OF_RANGE("offset","an integer",e);if(t<0)throw new F.ERR_BUFFER_OUT_OF_BOUNDS;throw new F.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${t}`,e)}U("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),U("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),U("ERR_OUT_OF_RANGE",(function(e,t,r){let o=`The value of "${e}" is out of range.`,n=r;return Number.isInteger(r)&&Math.abs(r)>2**32?n=K(String(r)):"bigint"==typeof r&&(n=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(n=K(n)),n+="n"),o+=` It must be ${t}. Received ${n}`,o}),RangeError);const V=/[^+/0-9A-Za-z-_]/g;function W(e,t){let r;t=t||1/0;const o=e.length;let n=null;const i=[];for(let a=0;a<o;++a){if(r=e.charCodeAt(a),r>55295&&r<57344){if(!n){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===o){(t-=3)>-1&&i.push(239,191,189);continue}n=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&(t-=3)>-1&&i.push(239,191,189);if(n=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function z(e){return t.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(V,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Z(e,t,r,o){let n;for(n=0;n<o&&!(n+r>=t.length||n>=e.length);++n)t[n+r]=e[n];return n}function Q(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Y(e){return e!=e}const X=function(){const e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){const o=16*r;for(let n=0;n<16;++n)t[o+n]=e[r]+e[n]}return t}();function J(e){return"undefined"==typeof BigInt?ee:e}function ee(){throw new Error("BigInt not supported")}}(buffer);const Buffer2=buffer.Buffer,global$1=globalThis||self;function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var browser={exports:{}},process=browser.exports={},cachedSetTimeout,cachedClearTimeout;function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}function runTimeout(e){if(cachedSetTimeout===setTimeout)return setTimeout(e,0);if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout)return cachedSetTimeout=setTimeout,setTimeout(e,0);try{return cachedSetTimeout(e,0)}catch(t){try{return cachedSetTimeout.call(null,e,0)}catch(r){return cachedSetTimeout.call(this,e,0)}}}function runClearTimeout(e){if(cachedClearTimeout===clearTimeout)return clearTimeout(e);if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout)return cachedClearTimeout=clearTimeout,clearTimeout(e);try{return cachedClearTimeout(e)}catch(t){try{return cachedClearTimeout.call(null,e)}catch(r){return cachedClearTimeout.call(this,e)}}}!function(){try{cachedSetTimeout="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(e){cachedSetTimeout=defaultSetTimout}try{cachedClearTimeout="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(e){cachedClearTimeout=defaultClearTimeout}}();var queue=[],draining=!1,currentQueue,queueIndex=-1;function cleanUpNextTick(){draining&¤tQueue&&(draining=!1,currentQueue.length?queue=currentQueue.concat(queue):queueIndex=-1,queue.length&&drainQueue())}function drainQueue(){if(!draining){var e=runTimeout(cleanUpNextTick);draining=!0;for(var t=queue.length;t;){for(currentQueue=queue,queue=[];++queueIndex<t;)currentQueue&¤tQueue[queueIndex].run();queueIndex=-1,t=queue.length}currentQueue=null,draining=!1,runClearTimeout(e)}}function Item(e,t){this.fun=e,this.array=t}function noop$1(){}process.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];queue.push(new Item(e,t)),1!==queue.length||draining||runTimeout(drainQueue)},Item.prototype.run=function(){this.fun.apply(null,this.array)},process.title="browser",process.browser=!0,process.env={},process.argv=[],process.version="",process.versions={},process.on=noop$1,process.addListener=noop$1,process.once=noop$1,process.off=noop$1,process.removeListener=noop$1,process.removeAllListeners=noop$1,process.emit=noop$1,process.prependListener=noop$1,process.prependOnceListener=noop$1,process.listeners=function(e){return[]},process.binding=function(e){throw new Error("process.binding is not supported")},process.cwd=function(){return"/"},process.chdir=function(e){throw new Error("process.chdir is not supported")},process.umask=function(){return 0};var browserExports=browser.exports;const process$1=getDefaultExportFromCjs(browserExports);function bind$1(e,t){return function(){return e.apply(t,arguments)}}const{toString:toString$1}=Object.prototype,{getPrototypeOf:getPrototypeOf$1}=Object,kindOf$1=(e=>t=>{const r=toString$1.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest$1=e=>(e=e.toLowerCase(),t=>kindOf$1(t)===e),typeOfTest$1=e=>t=>typeof t===e,{isArray:isArray$1}=Array,isUndefined$1=typeOfTest$1("undefined");function isBuffer$1(e){return null!==e&&!isUndefined$1(e)&&null!==e.constructor&&!isUndefined$1(e.constructor)&&isFunction$1(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const isArrayBuffer$1=kindOfTest$1("ArrayBuffer");function isArrayBufferView$1(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&isArrayBuffer$1(e.buffer),t}const isString$1=typeOfTest$1("string"),isFunction$1=typeOfTest$1("function"),isNumber$1=typeOfTest$1("number"),isObject$1=e=>null!==e&&"object"==typeof e,isBoolean$1=e=>!0===e||!1===e,isPlainObject$1=e=>{if("object"!==kindOf$1(e))return!1;const t=getPrototypeOf$1(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},isDate$1=kindOfTest$1("Date"),isFile$1=kindOfTest$1("File"),isBlob$1=kindOfTest$1("Blob"),isFileList$1=kindOfTest$1("FileList"),isStream$1=e=>isObject$1(e)&&isFunction$1(e.pipe),isFormData$1=e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||isFunction$1(e.append)&&("formdata"===(t=kindOf$1(e))||"object"===t&&isFunction$1(e.toString)&&"[object FormData]"===e.toString()))},isURLSearchParams$1=kindOfTest$1("URLSearchParams"),[isReadableStream$1,isRequest$1,isResponse$1,isHeaders$1]=["ReadableStream","Request","Response","Headers"].map(kindOfTest$1),trim$1=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach$1(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let o,n;if("object"!=typeof e&&(e=[e]),isArray$1(e))for(o=0,n=e.length;o<n;o++)t.call(null,e[o],o,e);else{const n=r?Object.getOwnPropertyNames(e):Object.keys(e),i=n.length;let a;for(o=0;o<i;o++)a=n[o],t.call(null,e[a],a,e)}}function findKey$1(e,t){t=t.toLowerCase();const r=Object.keys(e);let o,n=r.length;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const _global$1="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global$1,isContextDefined$1=e=>!isUndefined$1(e)&&e!==_global$1;function merge$1(){const{caseless:e}=isContextDefined$1(this)&&this||{},t={},r=(r,o)=>{const n=e&&findKey$1(t,o)||o;isPlainObject$1(t[n])&&isPlainObject$1(r)?t[n]=merge$1(t[n],r):isPlainObject$1(r)?t[n]=merge$1({},r):isArray$1(r)?t[n]=r.slice():t[n]=r};for(let o=0,n=arguments.length;o<n;o++)arguments[o]&&forEach$1(arguments[o],r);return t}const extend$1=(e,t,r,{allOwnKeys:o}={})=>(forEach$1(t,((t,o)=>{r&&isFunction$1(t)?e[o]=bind$1(t,r):e[o]=t}),{allOwnKeys:o}),e),stripBOM$1=e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits$1=(e,t,r,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject$1=(e,t,r,o)=>{let n,i,a;const s={};if(t=t||{},null==e)return t;do{for(n=Object.getOwnPropertyNames(e),i=n.length;i-- >0;)a=n[i],o&&!o(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==r&&getPrototypeOf$1(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},endsWith$1=(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const o=e.indexOf(t,r);return-1!==o&&o===r},toArray$1=e=>{if(!e)return null;if(isArray$1(e))return e;let t=e.length;if(!isNumber$1(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},isTypedArray$1=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&getPrototypeOf$1(Uint8Array)),forEachEntry$1=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const r=o.value;t.call(e,r[0],r[1])}},matchAll$1=(e,t)=>{let r;const o=[];for(;null!==(r=e.exec(t));)o.push(r);return o},isHTMLForm$1=kindOfTest$1("HTMLFormElement"),toCamelCase$1=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r})),hasOwnProperty$1=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),isRegExp$1=kindOfTest$1("RegExp"),reduceDescriptors$1=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),o={};forEach$1(r,((r,n)=>{let i;!1!==(i=t(r,n,e))&&(o[n]=i||r)})),Object.defineProperties(e,o)},freezeMethods$1=e=>{reduceDescriptors$1(e,((t,r)=>{if(isFunction$1(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const o=e[r];isFunction$1(o)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet$1=(e,t)=>{const r={},o=e=>{e.forEach((e=>{r[e]=!0}))};return isArray$1(e)?o(e):o(String(e).split(t)),r},noop$2=()=>{},toFiniteNumber$1=(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,ALPHA="abcdefghijklmnopqrstuvwxyz",DIGIT="0123456789",ALPHABET={DIGIT:DIGIT,ALPHA:ALPHA,ALPHA_DIGIT:ALPHA+ALPHA.toUpperCase()+DIGIT},generateString=(e=16,t=ALPHABET.ALPHA_DIGIT)=>{let r="";const{length:o}=t;for(;e--;)r+=t[Math.random()*o|0];return r};function isSpecCompliantForm$1(e){return!!(e&&isFunction$1(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])}const toJSONObject$1=e=>{const t=new Array(10),r=(e,o)=>{if(isObject$1(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[o]=e;const n=isArray$1(e)?[]:{};return forEach$1(e,((e,t)=>{const i=r(e,o+1);!isUndefined$1(i)&&(n[t]=i)})),t[o]=void 0,n}}return e};return r(e,0)},isAsyncFn$1=kindOfTest$1("AsyncFunction"),isThenable$1=e=>e&&(isObject$1(e)||isFunction$1(e))&&isFunction$1(e.then)&&isFunction$1(e.catch),_setImmediate$1=(setImmediateSupported="function"==typeof setImmediate,postMessageSupported=isFunction$1(_global$1.postMessage),setImmediateSupported?setImmediate:postMessageSupported?(token=`axios@${Math.random()}`,callbacks=[],_global$1.addEventListener("message",(({source:e,data:t})=>{e===_global$1&&t===token&&callbacks.length&&callbacks.shift()()}),!1),e=>{callbacks.push(e),_global$1.postMessage(token,"*")}):e=>setTimeout(e));var setImmediateSupported,postMessageSupported,token,callbacks;const asap$1="undefined"!=typeof queueMicrotask?queueMicrotask.bind(_global$1):void 0!==process$1&&process$1.nextTick||_setImmediate$1,utils$1$1={isArray:isArray$1,isArrayBuffer:isArrayBuffer$1,isBuffer:isBuffer$1,isFormData:isFormData$1,isArrayBufferView:isArrayBufferView$1,isString:isString$1,isNumber:isNumber$1,isBoolean:isBoolean$1,isObject:isObject$1,isPlainObject:isPlainObject$1,isReadableStream:isReadableStream$1,isRequest:isRequest$1,isResponse:isResponse$1,isHeaders:isHeaders$1,isUndefined:isUndefined$1,isDate:isDate$1,isFile:isFile$1,isBlob:isBlob$1,isRegExp:isRegExp$1,isFunction:isFunction$1,isStream:isStream$1,isURLSearchParams:isURLSearchParams$1,isTypedArray:isTypedArray$1,isFileList:isFileList$1,forEach:forEach$1,merge:merge$1,extend:extend$1,trim:trim$1,stripBOM:stripBOM$1,inherits:inherits$1,toFlatObject:toFlatObject$1,kindOf:kindOf$1,kindOfTest:kindOfTest$1,endsWith:endsWith$1,toArray:toArray$1,forEachEntry:forEachEntry$1,matchAll:matchAll$1,isHTMLForm:isHTMLForm$1,hasOwnProperty:hasOwnProperty$1,hasOwnProp:hasOwnProperty$1,reduceDescriptors:reduceDescriptors$1,freezeMethods:freezeMethods$1,toObjectSet:toObjectSet$1,toCamelCase:toCamelCase$1,noop:noop$2,toFiniteNumber:toFiniteNumber$1,findKey:findKey$1,global:_global$1,isContextDefined:isContextDefined$1,ALPHABET:ALPHABET,generateString:generateString,isSpecCompliantForm:isSpecCompliantForm$1,toJSONObject:toJSONObject$1,isAsyncFn:isAsyncFn$1,isThenable:isThenable$1,setImmediate:_setImmediate$1,asap:asap$1};function AxiosError$2(e,t,r,o,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),o&&(this.request=o),n&&(this.response=n,this.status=n.status?n.status:null)}utils$1$1.inherits(AxiosError$2,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:utils$1$1.toJSONObject(this.config),code:this.code,status:this.status}}});const prototype$1$1=AxiosError$2.prototype,descriptors$1={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{descriptors$1[e]={value:e}})),Object.defineProperties(AxiosError$2,descriptors$1),Object.defineProperty(prototype$1$1,"isAxiosError",{value:!0}),AxiosError$2.from=(e,t,r,o,n,i)=>{const a=Object.create(prototype$1$1);return utils$1$1.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),AxiosError$2.call(a,e.message,t,r,o,n),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const httpAdapter$1=null;function isVisitable$1(e){return utils$1$1.isPlainObject(e)||utils$1$1.isArray(e)}function removeBrackets$1(e){return utils$1$1.endsWith(e,"[]")?e.slice(0,-2):e}function renderKey$1(e,t,r){return e?e.concat(t).map((function(e,t){return e=removeBrackets$1(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}function isFlatArray$1(e){return utils$1$1.isArray(e)&&!e.some(isVisitable$1)}const predicates$1=utils$1$1.toFlatObject(utils$1$1,{},null,(function(e){return/^is[A-Z]/.test(e)}));function toFormData$2(e,t,r){if(!utils$1$1.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const o=(r=utils$1$1.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!utils$1$1.isUndefined(t[e])}))).metaTokens,n=r.visitor||u,i=r.dots,a=r.indexes,s=(r.Blob||"undefined"!=typeof Blob&&Blob)&&utils$1$1.isSpecCompliantForm(t);if(!utils$1$1.isFunction(n))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(utils$1$1.isDate(e))return e.toISOString();if(!s&&utils$1$1.isBlob(e))throw new AxiosError$2("Blob is not supported. Use a Buffer instead.");return utils$1$1.isArrayBuffer(e)||utils$1$1.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer2.from(e):e}function u(e,r,n){let s=e;if(e&&!n&&"object"==typeof e)if(utils$1$1.endsWith(r,"{}"))r=o?r:r.slice(0,-2),e=JSON.stringify(e);else if(utils$1$1.isArray(e)&&isFlatArray$1(e)||(utils$1$1.isFileList(e)||utils$1$1.endsWith(r,"[]"))&&(s=utils$1$1.toArray(e)))return r=removeBrackets$1(r),s.forEach((function(e,o){!utils$1$1.isUndefined(e)&&null!==e&&t.append(!0===a?renderKey$1([r],o,i):null===a?r:r+"[]",c(e))})),!1;return!!isVisitable$1(e)||(t.append(renderKey$1(n,r,i),c(e)),!1)}const l=[],d=Object.assign(predicates$1,{defaultVisitor:u,convertValue:c,isVisitable:isVisitable$1});if(!utils$1$1.isObject(e))throw new TypeError("data must be an object");return function e(r,o){if(!utils$1$1.isUndefined(r)){if(-1!==l.indexOf(r))throw Error("Circular reference detected in "+o.join("."));l.push(r),utils$1$1.forEach(r,(function(r,i){!0===(!(utils$1$1.isUndefined(r)||null===r)&&n.call(t,r,utils$1$1.isString(i)?i.trim():i,o,d))&&e(r,o?o.concat(i):[i])})),l.pop()}}(e),t}function encode$1$1(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function AxiosURLSearchParams$1(e,t){this._pairs=[],e&&toFormData$2(e,this,t)}const prototype$2=AxiosURLSearchParams$1.prototype;function encode$2(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL$1(e,t,r){if(!t)return e;const o=r&&r.encode||encode$2;utils$1$1.isFunction(r)&&(r={serialize:r});const n=r&&r.serialize;let i;if(i=n?n(t,r):utils$1$1.isURLSearchParams(t)?t.toString():new AxiosURLSearchParams$1(t,r).toString(o),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}prototype$2.append=function(e,t){this._pairs.push([e,t])},prototype$2.toString=function(e){const t=e?function(t){return e.call(this,t,encode$1$1)}:encode$1$1;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};let InterceptorManager$1=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){utils$1$1.forEach(this.handlers,(function(t){null!==t&&e(t)}))}};const transitionalDefaults$1={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},URLSearchParams$1$1="undefined"!=typeof URLSearchParams?URLSearchParams:AxiosURLSearchParams$1,FormData$1$1="undefined"!=typeof FormData?FormData:null,Blob$1$1="undefined"!=typeof Blob?Blob:null,platform$1$1={isBrowser:!0,classes:{URLSearchParams:URLSearchParams$1$1,FormData:FormData$1$1,Blob:Blob$1$1},protocols:["http","https","file","blob","url","data"]},hasBrowserEnv$1="undefined"!=typeof window&&"undefined"!=typeof document,_navigator$1="object"==typeof navigator&&navigator||void 0,hasStandardBrowserEnv$1=hasBrowserEnv$1&&(!_navigator$1||["ReactNative","NativeScript","NS"].indexOf(_navigator$1.product)<0),hasStandardBrowserWebWorkerEnv$1="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,origin$1=hasBrowserEnv$1&&window.location.href||"http://localhost",utils$2=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:hasBrowserEnv$1,hasStandardBrowserEnv:hasStandardBrowserEnv$1,hasStandardBrowserWebWorkerEnv:hasStandardBrowserWebWorkerEnv$1,navigator:_navigator$1,origin:origin$1},Symbol.toStringTag,{value:"Module"})),platform$2={...utils$2,...platform$1$1};function toURLEncodedForm$1(e,t){return toFormData$2(e,new platform$2.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,o){return platform$2.isNode&&utils$1$1.isBuffer(e)?(this.append(t,e.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function parsePropPath$1(e){return utils$1$1.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}function arrayToObject$1(e){const t={},r=Object.keys(e);let o;const n=r.length;let i;for(o=0;o<n;o++)i=r[o],t[i]=e[i];return t}function formDataToJSON$1(e){function t(e,r,o,n){let i=e[n++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=n>=e.length;if(i=!i&&utils$1$1.isArray(o)?o.length:i,s)return utils$1$1.hasOwnProp(o,i)?o[i]=[o[i],r]:o[i]=r,!a;o[i]&&utils$1$1.isObject(o[i])||(o[i]=[]);return t(e,r,o[i],n)&&utils$1$1.isArray(o[i])&&(o[i]=arrayToObject$1(o[i])),!a}if(utils$1$1.isFormData(e)&&utils$1$1.isFunction(e.entries)){const r={};return utils$1$1.forEachEntry(e,((e,o)=>{t(parsePropPath$1(e),o,r,0)})),r}return null}function stringifySafely$1(e,t,r){if(utils$1$1.isString(e))try{return(t||JSON.parse)(e),utils$1$1.trim(e)}catch(o){if("SyntaxError"!==o.name)throw o}return(0,JSON.stringify)(e)}const defaults$1={transitional:transitionalDefaults$1,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",o=r.indexOf("application/json")>-1,n=utils$1$1.isObject(e);n&&utils$1$1.isHTMLForm(e)&&(e=new FormData(e));if(utils$1$1.isFormData(e))return o?JSON.stringify(formDataToJSON$1(e)):e;if(utils$1$1.isArrayBuffer(e)||utils$1$1.isBuffer(e)||utils$1$1.isStream(e)||utils$1$1.isFile(e)||utils$1$1.isBlob(e)||utils$1$1.isReadableStream(e))return e;if(utils$1$1.isArrayBufferView(e))return e.buffer;if(utils$1$1.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(n){if(r.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm$1(e,this.formSerializer).toString();if((i=utils$1$1.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return toFormData$2(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return n||o?(t.setContentType("application/json",!1),stringifySafely$1(e)):e}],transformResponse:[function(e){const t=this.transitional||defaults$1.transitional,r=t&&t.forcedJSONParsing,o="json"===this.responseType;if(utils$1$1.isResponse(e)||utils$1$1.isReadableStream(e))return e;if(e&&utils$1$1.isString(e)&&(r&&!this.responseType||o)){const r=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e)}catch(n){if(r){if("SyntaxError"===n.name)throw AxiosError$2.from(n,AxiosError$2.ERR_BAD_RESPONSE,this,null,this.response);throw n}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform$2.classes.FormData,Blob:platform$2.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};utils$1$1.forEach(["delete","get","head","post","put","patch"],(e=>{defaults$1.headers[e]={}}));const ignoreDuplicateOf$1=utils$1$1.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),parseHeaders$1=e=>{const t={};let r,o,n;return e&&e.split("\n").forEach((function(e){n=e.indexOf(":"),r=e.substring(0,n).trim().toLowerCase(),o=e.substring(n+1).trim(),!r||t[r]&&ignoreDuplicateOf$1[r]||("set-cookie"===r?t[r]?t[r].push(o):t[r]=[o]:t[r]=t[r]?t[r]+", "+o:o)})),t},$internals$1=Symbol("internals");function normalizeHeader$1(e){return e&&String(e).trim().toLowerCase()}function normalizeValue$1(e){return!1===e||null==e?e:utils$1$1.isArray(e)?e.map(normalizeValue$1):String(e)}function parseTokens$1(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=r.exec(e);)t[o[1]]=o[2];return t}const isValidHeaderName$1=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function matchHeaderValue$1(e,t,r,o,n){return utils$1$1.isFunction(o)?o.call(this,t,r):(n&&(t=r),utils$1$1.isString(t)?utils$1$1.isString(o)?-1!==t.indexOf(o):utils$1$1.isRegExp(o)?o.test(t):void 0:void 0)}function formatHeader$1(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,r)=>t.toUpperCase()+r))}function buildAccessors$1(e,t){const r=utils$1$1.toCamelCase(" "+t);["get","set","has"].forEach((o=>{Object.defineProperty(e,o+r,{value:function(e,r,n){return this[o].call(this,t,e,r,n)},configurable:!0})}))}let AxiosHeaders$2=class{constructor(e){e&&this.set(e)}set(e,t,r){const o=this;function n(e,t,r){const n=normalizeHeader$1(t);if(!n)throw new Error("header name must be a non-empty string");const i=utils$1$1.findKey(o,n);(!i||void 0===o[i]||!0===r||void 0===r&&!1!==o[i])&&(o[i||t]=normalizeValue$1(e))}const i=(e,t)=>utils$1$1.forEach(e,((e,r)=>n(e,r,t)));if(utils$1$1.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(utils$1$1.isString(e)&&(e=e.trim())&&!isValidHeaderName$1(e))i(parseHeaders$1(e),t);else if(utils$1$1.isHeaders(e))for(const[a,s]of e.entries())n(s,a,r);else null!=e&&n(t,e,r);return this}get(e,t){if(e=normalizeHeader$1(e)){const r=utils$1$1.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return parseTokens$1(e);if(utils$1$1.isFunction(t))return t.call(this,e,r);if(utils$1$1.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=normalizeHeader$1(e)){const r=utils$1$1.findKey(this,e);return!(!r||void 0===this[r]||t&&!matchHeaderValue$1(this,this[r],r,t))}return!1}delete(e,t){const r=this;let o=!1;function n(e){if(e=normalizeHeader$1(e)){const n=utils$1$1.findKey(r,e);!n||t&&!matchHeaderValue$1(r,r[n],n,t)||(delete r[n],o=!0)}}return utils$1$1.isArray(e)?e.forEach(n):n(e),o}clear(e){const t=Object.keys(this);let r=t.length,o=!1;for(;r--;){const n=t[r];e&&!matchHeaderValue$1(this,this[n],n,e,!0)||(delete this[n],o=!0)}return o}normalize(e){const t=this,r={};return utils$1$1.forEach(this,((o,n)=>{const i=utils$1$1.findKey(r,n);if(i)return t[i]=normalizeValue$1(o),void delete t[n];const a=e?formatHeader$1(n):String(n).trim();a!==n&&delete t[n],t[a]=normalizeValue$1(o),r[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return utils$1$1.forEach(this,((r,o)=>{null!=r&&!1!==r&&(t[o]=e&&utils$1$1.isArray(r)?r.join(", "):r)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach((e=>r.set(e))),r}static accessor(e){const t=(this[$internals$1]=this[$internals$1]={accessors:{}}).accessors,r=this.prototype;function o(e){const o=normalizeHeader$1(e);t[o]||(buildAccessors$1(r,e),t[o]=!0)}return utils$1$1.isArray(e)?e.forEach(o):o(e),this}};function transformData$1(e,t){const r=this||defaults$1,o=t||r,n=AxiosHeaders$2.from(o.headers);let i=o.data;return utils$1$1.forEach(e,(function(e){i=e.call(r,i,n.normalize(),t?t.status:void 0)})),n.normalize(),i}function isCancel$2(e){return!(!e||!e.__CANCEL__)}function CanceledError$2(e,t,r){AxiosError$2.call(this,null==e?"canceled":e,AxiosError$2.ERR_CANCELED,t,r),this.name="CanceledError"}function settle$1(e,t,r){const o=r.config.validateStatus;r.status&&o&&!o(r.status)?t(new AxiosError$2("Request failed with status code "+r.status,[AxiosError$2.ERR_BAD_REQUEST,AxiosError$2.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}function parseProtocol$1(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function speedometer$1(e,t){e=e||10;const r=new Array(e),o=new Array(e);let n,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const c=Date.now(),u=o[a];n||(n=c),r[i]=s,o[i]=c;let l=a,d=0;for(;l!==i;)d+=r[l++],l%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-n<t)return;const p=u&&c-u;return p?Math.round(1e3*d/p):void 0}}function throttle$1(e,t){let r,o,n=0,i=1e3/t;const a=(t,i=Date.now())=>{n=i,r=null,o&&(clearTimeout(o),o=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),s=t-n;s>=i?a(e,t):(r=e,o||(o=setTimeout((()=>{o=null,a(r)}),i-s)))},()=>r&&a(r)]}AxiosHeaders$2.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),utils$1$1.reduceDescriptors(AxiosHeaders$2.prototype,(({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}})),utils$1$1.freezeMethods(AxiosHeaders$2),utils$1$1.inherits(CanceledError$2,AxiosError$2,{__CANCEL__:!0});const progressEventReducer$1=(e,t,r=3)=>{let o=0;const n=speedometer$1(50,250);return throttle$1((r=>{const i=r.loaded,a=r.lengthComputable?r.total:void 0,s=i-o,c=n(s);o=i;e({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:c||void 0,estimated:c&&a&&i<=a?(a-i)/c:void 0,event:r,lengthComputable:null!=a,[t?"download":"upload"]:!0})}),r)},progressEventDecorator$1=(e,t)=>{const r=null!=e;return[o=>t[0]({lengthComputable:r,total:e,loaded:o}),t[1]]},asyncDecorator$1=e=>(...t)=>utils$1$1.asap((()=>e(...t))),isURLSameOrigin$1=platform$2.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,platform$2.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(platform$2.origin),platform$2.navigator&&/(msie|trident)/i.test(platform$2.navigator.userAgent)):()=>!0,cookies$1=platform$2.hasStandardBrowserEnv?{write(e,t,r,o,n,i){const a=[e+"="+encodeURIComponent(t)];utils$1$1.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),utils$1$1.isString(o)&&a.push("path="+o),utils$1$1.isString(n)&&a.push("domain="+n),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function isAbsoluteURL$1(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function combineURLs$1(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function buildFullPath$1(e,t){return e&&!isAbsoluteURL$1(t)?combineURLs$1(e,t):t}const headersToObject$1=e=>e instanceof AxiosHeaders$2?{...e}:e;function mergeConfig$2(e,t){t=t||{};const r={};function o(e,t,r,o){return utils$1$1.isPlainObject(e)&&utils$1$1.isPlainObject(t)?utils$1$1.merge.call({caseless:o},e,t):utils$1$1.isPlainObject(t)?utils$1$1.merge({},t):utils$1$1.isArray(t)?t.slice():t}function n(e,t,r,n){return utils$1$1.isUndefined(t)?utils$1$1.isUndefined(e)?void 0:o(void 0,e,0,n):o(e,t,0,n)}function i(e,t){if(!utils$1$1.isUndefined(t))return o(void 0,t)}function a(e,t){return utils$1$1.isUndefined(t)?utils$1$1.isUndefined(e)?void 0:o(void 0,e):o(void 0,t)}function s(r,n,i){return i in t?o(r,n):i in e?o(void 0,r):void 0}const c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t,r)=>n(headersToObject$1(e),headersToObject$1(t),0,!0)};return utils$1$1.forEach(Object.keys(Object.assign({},e,t)),(function(o){const i=c[o]||n,a=i(e[o],t[o],o);utils$1$1.isUndefined(a)&&i!==s||(r[o]=a)})),r}const resolveConfig$1=e=>{const t=mergeConfig$2({},e);let r,{data:o,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:c}=t;if(t.headers=s=AxiosHeaders$2.from(s),t.url=buildURL$1(buildFullPath$1(t.baseURL,t.url),e.params,e.paramsSerializer),c&&s.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),utils$1$1.isFormData(o))if(platform$2.hasStandardBrowserEnv||platform$2.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(r=s.getContentType())){const[e,...t]=r?r.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(platform$2.hasStandardBrowserEnv&&(n&&utils$1$1.isFunction(n)&&(n=n(t)),n||!1!==n&&isURLSameOrigin$1(t.url))){const e=i&&a&&cookies$1.read(a);e&&s.set(i,e)}return t},isXHRAdapterSupported$1="undefined"!=typeof XMLHttpRequest,xhrAdapter$1=isXHRAdapterSupported$1&&function(e){return new Promise((function(t,r){const o=resolveConfig$1(e);let n=o.data;const i=AxiosHeaders$2.from(o.headers).normalize();let a,s,c,u,l,{responseType:d,onUploadProgress:p,onDownloadProgress:h}=o;function f(){u&&u(),l&&l(),o.cancelToken&&o.cancelToken.unsubscribe(a),o.signal&&o.signal.removeEventListener("abort",a)}let m=new XMLHttpRequest;function y(){if(!m)return;const o=AxiosHeaders$2.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());settle$1((function(e){t(e),f()}),(function(e){r(e),f()}),{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:o,config:e,request:m}),m=null}m.open(o.method.toUpperCase(),o.url,!0),m.timeout=o.timeout,"onloadend"in m?m.onloadend=y:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(y)},m.onabort=function(){m&&(r(new AxiosError$2("Request aborted",AxiosError$2.ECONNABORTED,e,m)),m=null)},m.onerror=function(){r(new AxiosError$2("Network Error",AxiosError$2.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const n=o.transitional||transitionalDefaults$1;o.timeoutErrorMessage&&(t=o.timeoutErrorMessage),r(new AxiosError$2(t,n.clarifyTimeoutError?AxiosError$2.ETIMEDOUT:AxiosError$2.ECONNABORTED,e,m)),m=null},void 0===n&&i.setContentType(null),"setRequestHeader"in m&&utils$1$1.forEach(i.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),utils$1$1.isUndefined(o.withCredentials)||(m.withCredentials=!!o.withCredentials),d&&"json"!==d&&(m.responseType=o.responseType),h&&([c,l]=progressEventReducer$1(h,!0),m.addEventListener("progress",c)),p&&m.upload&&([s,u]=progressEventReducer$1(p),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",u)),(o.cancelToken||o.signal)&&(a=t=>{m&&(r(!t||t.type?new CanceledError$2(null,e,m):t),m.abort(),m=null)},o.cancelToken&&o.cancelToken.subscribe(a),o.signal&&(o.signal.aborted?a():o.signal.addEventListener("abort",a)));const g=parseProtocol$1(o.url);g&&-1===platform$2.protocols.indexOf(g)?r(new AxiosError$2("Unsupported protocol "+g+":",AxiosError$2.ERR_BAD_REQUEST,e)):m.send(n||null)}))},composeSignals$1=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,o=new AbortController;const n=function(e){if(!r){r=!0,a();const t=e instanceof Error?e:this.reason;o.abort(t instanceof AxiosError$2?t:new CanceledError$2(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{i=null,n(new AxiosError$2(`timeout ${t} of ms exceeded`,AxiosError$2.ETIMEDOUT))}),t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(n):e.removeEventListener("abort",n)})),e=null)};e.forEach((e=>e.addEventListener("abort",n)));const{signal:s}=o;return s.unsubscribe=()=>utils$1$1.asap(a),s}},streamChunk$1=function*(e,t){let r=e.byteLength;if(r<t)return void(yield e);let o,n=0;for(;n<r;)o=n+t,yield e.slice(n,o),n=o},readBytes$1=async function*(e,t){for await(const r of readStream$1(e))yield*streamChunk$1(r,t)},readStream$1=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}},trackStream$1=(e,t,r,o)=>{const n=readBytes$1(e,t);let i,a=0,s=e=>{i||(i=!0,o&&o(e))};return new ReadableStream({async pull(e){try{const{done:t,value:o}=await n.next();if(t)return s(),void e.close();let i=o.byteLength;if(r){let e=a+=i;r(e)}e.enqueue(new Uint8Array(o))}catch(t){throw s(t),t}},cancel:e=>(s(e),n.return())},{highWaterMark:2})},isFetchSupported$1="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,isReadableStreamSupported$1=isFetchSupported$1&&"function"==typeof ReadableStream,encodeText$1=isFetchSupported$1&&("function"==typeof TextEncoder?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),test$1=(e,...t)=>{try{return!!e(...t)}catch(r){return!1}},supportsRequestStream$1=isReadableStreamSupported$1&&test$1((()=>{let e=!1;const t=new Request(platform$2.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),DEFAULT_CHUNK_SIZE$1=65536,supportsResponseStream$1=isReadableStreamSupported$1&&test$1((()=>utils$1$1.isReadableStream(new Response("").body))),resolvers$1={stream:supportsResponseStream$1&&(e=>e.body)};var res;isFetchSupported$1&&(res=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!resolvers$1[e]&&(resolvers$1[e]=utils$1$1.isFunction(res[e])?t=>t[e]():(t,r)=>{throw new AxiosError$2(`Response type '${e}' is not supported`,AxiosError$2.ERR_NOT_SUPPORT,r)})})));const getBodyLength$1=async e=>{if(null==e)return 0;if(utils$1$1.isBlob(e))return e.size;if(utils$1$1.isSpecCompliantForm(e)){const t=new Request(platform$2.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return utils$1$1.isArrayBufferView(e)||utils$1$1.isArrayBuffer(e)?e.byteLength:(utils$1$1.isURLSearchParams(e)&&(e+=""),utils$1$1.isString(e)?(await encodeText$1(e)).byteLength:void 0)},resolveBodyLength$1=async(e,t)=>{const r=utils$1$1.toFiniteNumber(e.getContentLength());return null==r?getBodyLength$1(t):r},fetchAdapter$1=isFetchSupported$1&&(async e=>{let{url:t,method:r,data:o,signal:n,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:c,responseType:u,headers:l,withCredentials:d="same-origin",fetchOptions:p}=resolveConfig$1(e);u=u?(u+"").toLowerCase():"text";let h,f=composeSignals$1([n,i&&i.toAbortSignal()],a);const m=f&&f.unsubscribe&&(()=>{f.unsubscribe()});let y;try{if(c&&supportsRequestStream$1&&"get"!==r&&"head"!==r&&0!==(y=await resolveBodyLength$1(l,o))){let e,r=new Request(t,{method:"POST",body:o,duplex:"half"});if(utils$1$1.isFormData(o)&&(e=r.headers.get("content-type"))&&l.setContentType(e),r.body){const[e,t]=progressEventDecorator$1(y,progressEventReducer$1(asyncDecorator$1(c)));o=trackStream$1(r.body,DEFAULT_CHUNK_SIZE$1,e,t)}}utils$1$1.isString(d)||(d=d?"include":"omit");const n="credentials"in Request.prototype;h=new Request(t,{...p,signal:f,method:r.toUpperCase(),headers:l.normalize().toJSON(),body:o,duplex:"half",credentials:n?d:void 0});let i=await fetch(h);const a=supportsResponseStream$1&&("stream"===u||"response"===u);if(supportsResponseStream$1&&(s||a&&m)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=i[t]}));const t=utils$1$1.toFiniteNumber(i.headers.get("content-length")),[r,o]=s&&progressEventDecorator$1(t,progressEventReducer$1(asyncDecorator$1(s),!0))||[];i=new Response(trackStream$1(i.body,DEFAULT_CHUNK_SIZE$1,r,(()=>{o&&o(),m&&m()})),e)}u=u||"text";let g=await resolvers$1[utils$1$1.findKey(resolvers$1,u)||"text"](i,e);return!a&&m&&m(),await new Promise(((t,r)=>{settle$1(t,r,{data:g,headers:AxiosHeaders$2.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:h})}))}catch(g){if(m&&m(),g&&"TypeError"===g.name&&/fetch/i.test(g.message))throw Object.assign(new AxiosError$2("Network Error",AxiosError$2.ERR_NETWORK,e,h),{cause:g.cause||g});throw AxiosError$2.from(g,g&&g.code,e,h)}}),knownAdapters$1={http:httpAdapter$1,xhr:xhrAdapter$1,fetch:fetchAdapter$1};utils$1$1.forEach(knownAdapters$1,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(r){}Object.defineProperty(e,"adapterName",{value:t})}}));const renderReason$1=e=>`- ${e}`,isResolvedHandle$1=e=>utils$1$1.isFunction(e)||null===e||!1===e,adapters$1={getAdapter:e=>{e=utils$1$1.isArray(e)?e:[e];const{length:t}=e;let r,o;const n={};for(let i=0;i<t;i++){let t;if(r=e[i],o=r,!isResolvedHandle$1(r)&&(o=knownAdapters$1[(t=String(r)).toLowerCase()],void 0===o))throw new AxiosError$2(`Unknown adapter '${t}'`);if(o)break;n[t||"#"+i]=o}if(!o){const e=Object.entries(n).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new AxiosError$2("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(renderReason$1).join("\n"):" "+renderReason$1(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return o},adapters:knownAdapters$1};function throwIfCancellationRequested$1(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new CanceledError$2(null,e)}function dispatchRequest$1(e){throwIfCancellationRequested$1(e),e.headers=AxiosHeaders$2.from(e.headers),e.data=transformData$1.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return adapters$1.getAdapter(e.adapter||defaults$1.adapter)(e).then((function(t){return throwIfCancellationRequested$1(e),t.data=transformData$1.call(e,e.transformResponse,t),t.headers=AxiosHeaders$2.from(t.headers),t}),(function(t){return isCancel$2(t)||(throwIfCancellationRequested$1(e),t&&t.response&&(t.response.data=transformData$1.call(e,e.transformResponse,t.response),t.response.headers=AxiosHeaders$2.from(t.response.headers))),Promise.reject(t)}))}const VERSION$2="1.7.9",validators$1$1={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{validators$1$1[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));const deprecatedWarnings$1={};function assertOptions$1(e,t,r){if("object"!=typeof e)throw new AxiosError$2("options must be an object",AxiosError$2.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let n=o.length;for(;n-- >0;){const i=o[n],a=t[i];if(a){const t=e[i],r=void 0===t||a(t,i,e);if(!0!==r)throw new AxiosError$2("option "+i+" must be "+r,AxiosError$2.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new AxiosError$2("Unknown option "+i,AxiosError$2.ERR_BAD_OPTION)}}validators$1$1.transitional=function(e,t,r){function o(e,t){return"[Axios v"+VERSION$2+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,n,i)=>{if(!1===e)throw new AxiosError$2(o(n," has been removed"+(t?" in "+t:"")),AxiosError$2.ERR_DEPRECATED);return t&&!deprecatedWarnings$1[n]&&(deprecatedWarnings$1[n]=!0,console.warn(o(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,n,i)}},validators$1$1.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};const validator$1={assertOptions:assertOptions$1,validators:validators$1$1},validators$2=validator$1.validators;let Axios$2=class{constructor(e){this.defaults=e,this.interceptors={request:new InterceptorManager$1,response:new InterceptorManager$1}}async request(e,t){try{return await this._request(e,t)}catch(r){if(r instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{r.stack?t&&!String(r.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(r.stack+="\n"+t):r.stack=t}catch(o){}}throw r}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=mergeConfig$2(this.defaults,t);const{transitional:r,paramsSerializer:o,headers:n}=t;void 0!==r&&validator$1.assertOptions(r,{silentJSONParsing:validators$2.transitional(validators$2.boolean),forcedJSONParsing:validators$2.transitional(validators$2.boolean),clarifyTimeoutError:validators$2.transitional(validators$2.boolean)},!1),null!=o&&(utils$1$1.isFunction(o)?t.paramsSerializer={serialize:o}:validator$1.assertOptions(o,{encode:validators$2.function,serialize:validators$2.function},!0)),validator$1.assertOptions(t,{baseUrl:validators$2.spelling("baseURL"),withXsrfToken:validators$2.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=n&&utils$1$1.merge(n.common,n[t.method]);n&&utils$1$1.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete n[e]})),t.headers=AxiosHeaders$2.concat(i,n);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const c=[];let u;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let l,d=0;if(!s){const e=[dispatchRequest$1.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,c),l=e.length,u=Promise.resolve(t);d<l;)u=u.then(e[d++],e[d++]);return u}l=a.length;let p=t;for(d=0;d<l;){const e=a[d++],t=a[d++];try{p=e(p)}catch(h){t.call(this,h);break}}try{u=dispatchRequest$1.call(this,p)}catch(h){return Promise.reject(h)}for(d=0,l=c.length;d<l;)u=u.then(c[d++],c[d++]);return u}getUri(e){return buildURL$1(buildFullPath$1((e=mergeConfig$2(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}};utils$1$1.forEach(["delete","get","head","options"],(function(e){Axios$2.prototype[e]=function(t,r){return this.request(mergeConfig$2(r||{},{method:e,url:t,data:(r||{}).data}))}})),utils$1$1.forEach(["post","put","patch"],(function(e){function t(t){return function(r,o,n){return this.request(mergeConfig$2(n||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:o}))}}Axios$2.prototype[e]=t(),Axios$2.prototype[e+"Form"]=t(!0)}));let CancelToken$2=class e{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const r=this;this.promise.then((e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null})),this.promise.then=e=>{let t;const o=new Promise((e=>{r.subscribe(e),t=e})).then(e);return o.cancel=function(){r.unsubscribe(t)},o},e((function(e,o,n){r.reason||(r.reason=new CanceledError$2(e,o,n),t(r.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e((function(e){t=e})),cancel:t}}};function spread$2(e){return function(t){return e.apply(null,t)}}function isAxiosError$2(e){return utils$1$1.isObject(e)&&!0===e.isAxiosError}const HttpStatusCode$2={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};function createInstance$1(e){const t=new Axios$2(e),r=bind$1(Axios$2.prototype.request,t);return utils$1$1.extend(r,Axios$2.prototype,t,{allOwnKeys:!0}),utils$1$1.extend(r,t,null,{allOwnKeys:!0}),r.create=function(t){return createInstance$1(mergeConfig$2(e,t))},r}Object.entries(HttpStatusCode$2).forEach((([e,t])=>{HttpStatusCode$2[t]=e}));const axios$1=createInstance$1(defaults$1);axios$1.Axios=Axios$2,axios$1.CanceledError=CanceledError$2,axios$1.CancelToken=CancelToken$2,axios$1.isCancel=isCancel$2,axios$1.VERSION=VERSION$2,axios$1.toFormData=toFormData$2,axios$1.AxiosError=AxiosError$2,axios$1.Cancel=axios$1.CanceledError,axios$1.all=function(e){return Promise.all(e)},axios$1.spread=spread$2,axios$1.isAxiosError=isAxiosError$2,axios$1.mergeConfig=mergeConfig$2,axios$1.AxiosHeaders=AxiosHeaders$2,axios$1.formToJSON=e=>formDataToJSON$1(utils$1$1.isHTMLForm(e)?new FormData(e):e),axios$1.getAdapter=adapters$1.getAdapter,axios$1.HttpStatusCode=HttpStatusCode$2,axios$1.default=axios$1;const _Logger=class e{constructor(){__publicField(this,"isProduction"),this.isProduction="production"===process$1.env.NODE_ENV}static getInstance(){return e.instance||(e.instance=new e),e.instance}debug(e,...t){this.isProduction||console.debug(e,...t)}info(e,...t){this.isProduction||console.info(e,...t)}warn(e,...t){console.warn(e,...t)}error(e,...t){console.error(e,...t)}};__publicField(_Logger,"instance");let Logger=_Logger;class ValidationError extends Error{constructor(e){super(e),this.name="ValidationError"}}class Auth{constructor(e){__publicField(this,"accountId"),__publicField(this,"privateKey"),__publicField(this,"baseUrl"),__publicField(this,"network"),this.accountId=e.accountId,this.privateKey=y$2.fromStringED25519(e.privateKey),this.network=e.network||"mainnet",this.baseUrl=e.baseUrl||"https://kiloscribe.com"}async authenticate(){var e,t,r;const o=await axios$1.get(`${this.baseUrl}/api/auth/request-signature`,{headers:{"x-session":this.accountId}});if(!(null==(e=o.data)?void 0:e.message))throw new Error("Failed to get signature message");const n=o.data.message,i=await this.signMessage(n),a=await axios$1.post(`${this.baseUrl}/api/auth/authenticate`,{authData:{id:this.accountId,signature:i,data:n,network:this.network},include:"apiKey"});if(!(null==(r=null==(t=a.data)?void 0:t.user)?void 0:r.sessionToken))throw new Error("Authentication failed");return{apiKey:a.data.apiKey}}async signMessage(e){const t=(new TextEncoder).encode(e),r=await this.privateKey.sign(t);return Buffer2.from(r).toString("hex")}}class ClientAuth{constructor(e){__publicField(this,"accountId"),__publicField(this,"signer"),__publicField(this,"baseUrl"),__publicField(this,"network"),__publicField(this,"logger"),this.accountId=e.accountId,this.signer=e.signer,this.network=e.network||"mainnet",this.baseUrl=e.baseUrl||"https://kiloscribe.com",this.logger=e.logger}async authenticate(){var e,t,r;const o=await axios$1.get(`${this.baseUrl}/api/auth/request-signature`,{headers:{"x-session":this.accountId}});if(!(null==(e=o.data)?void 0:e.message))throw new Error("Failed to get signature message");const n=o.data.message,i=await this.signMessage(JSON.stringify(n)),a=await axios$1.post(`${this.baseUrl}/api/auth/authenticate`,{authData:{id:this.accountId,signature:i,data:n,network:this.network},include:"apiKey"});if(!(null==(r=null==(t=a.data)?void 0:t.user)?void 0:r.sessionToken))throw new Error("Authentication failed");return{apiKey:a.data.apiKey}}async signMessage(e){try{const t=(new TextEncoder).encode(e);this.logger.debug("signing message");const r=await this.signer.sign([t],{encoding:"utf-8"});return Buffer2.from(null==r?void 0:r[0].signature).toString("hex")}catch(t){throw this.logger.error("Failed to sign message",t),new Error("Failed to sign message")}}}const _InscriptionSDK=class e{constructor(e){if(__publicField(this,"client"),__publicField(this,"config"),__publicField(this,"logger",Logger.getInstance()),this.config=e,!e.apiKey)throw new ValidationError("API key is required");if(!e.network)throw new ValidationError("Network is required");const t={"x-api-key":e.apiKey,"Content-Type":"application/json"};this.client=axios$1.create({baseURL:"https://v2-api.tier.bot/api",headers:t}),this.logger=Logger.getInstance()}async getFileMetadata(e){try{const t=await axios$1.get(e),r=t.headers["content-type"]||"";return{size:parseInt(t.headers["content-length"]||"0",10),mimeType:r}}catch(t){throw this.logger.error("Error fetching file metadata:",t),new ValidationError("Unable to fetch file metadata")}}getMimeType(t){const r=t.toLowerCase().split(".").pop();if(!r)throw new ValidationError("File must have an extension");const o=e.VALID_MIME_TYPES[r];if(!o)throw new ValidationError(`Unsupported file type: ${r}`);return o}validateRequest(t){if(this.logger.debug("Validating request:",t),!t.holderId||""===t.holderId.trim())throw this.logger.warn("holderId is missing or empty"),new ValidationError("holderId is required");if(!e.VALID_MODES.includes(t.mode))throw new ValidationError(`Invalid mode: ${t.mode}. Must be one of: ${e.VALID_MODES.join(", ")}`);if("hashinal"===t.mode&&!t.jsonFileURL&&!t.metadataObject)throw new ValidationError("Hashinal mode requires either jsonFileURL or metadataObject");if(t.onlyJSONCollection&&"hashinal-collection"!==t.mode)throw new ValidationError("onlyJSONCollection can only be used with hashinal-collection mode");this.validateFileInput(t.file)}normalizeMimeType(e){return"image/vnd.microsoft.icon"===e?(this.logger.debug("Normalizing MIME type from image/vnd.microsoft.icon to image/x-icon"),"image/x-icon"):e}validateMimeType(t){return!!Object.values(e.VALID_MIME_TYPES).includes(t)||"image/vnd.microsoft.icon"===t&&(this.logger.debug("Accepting alternative MIME type for ICO: image/vnd.microsoft.icon"),!0)}validateFileInput(t){if("base64"===t.type){if(!t.base64)throw new ValidationError("Base64 data is required");const r=t.base64.replace(/^data:.*?;base64,/,"");if(Math.ceil(.75*r.length)>e.MAX_BASE64_SIZE)throw new ValidationError(`File size exceeds maximum limit of ${e.MAX_BASE64_SIZE/1024/1024}MB`);const o=t.mimeType||this.getMimeType(t.fileName);if(!this.validateMimeType(o))throw new ValidationError("File must have one of the supported MIME types");"image/vnd.microsoft.icon"===t.mimeType&&(t.mimeType=this.normalizeMimeType(t.mimeType))}else if("url"===t.type&&!t.url)throw new ValidationError("URL is required")}async startInscription(t){var r,o;try{if(this.validateRequest(t),"url"===t.file.type){const r=await this.getFileMetadata(t.file.url);if(r.size>e.MAX_URL_FILE_SIZE)throw new ValidationError(`File size exceeds maximum URL file limit of ${e.MAX_URL_FILE_SIZE/1024/1024}MB`);"image/vnd.microsoft.icon"===r.mimeType&&(r.mimeType=this.normalizeMimeType(r.mimeType))}if(t.jsonFileURL){if("application/json"!==(await this.getFileMetadata(t.jsonFileURL)).mimeType)throw new ValidationError("JSON file must be of type application/json")}const r={holderId:t.holderId,mode:t.mode,network:this.config.network,onlyJSONCollection:t.onlyJSONCollection?1:0,creator:t.creator,description:t.description,fileStandard:t.fileStandard,metadataObject:t.metadataObject,jsonFileURL:t.jsonFileURL};let o;return o="url"===t.file.type?await this.client.post("/inscriptions/start-inscription",{...r,fileURL:t.file.url}):await this.client.post("/inscriptions/start-inscription",{...r,fileBase64:t.file.base64,fileName:t.file.fileName,fileMimeType:t.file.mimeType||this.getMimeType(t.file.fileName)}),o.data}catch(n){if(n instanceof ValidationError)throw n;if(axios$1.isAxiosError(n))throw new Error((null==(o=null==(r=n.response)?void 0:r.data)?void 0:o.message)||"Failed to start inscription");throw n}}async executeTransaction(e,t){try{const r="mainnet"===t.network?i$1.forMainnet():i$1.forTestnet(),o=y$2.fromString(t.privateKey);r.setOperator(t.accountId,o);const n=S.fromBytes(Buffer2.from(e,"base64")),i=await n.sign(o),a=await i.execute(r),s=(await a.getReceipt(r)).status.toString();if("SUCCESS"!==s)throw new Error(`Transaction failed with status: ${s}`);return a.transactionId.toString()}catch(r){throw new Error(`Failed to execute transaction: ${r instanceof Error?r.message:"Unknown error"}`)}}async executeTransactionWithSigner(e,t){try{const r=S.fromBytes(Buffer2.from(e,"base64")),o=await r.executeWithSigner(t),n=(await o.getReceiptWithSigner(t)).status.toString();if("SUCCESS"!==n)throw new Error(`Transaction failed with status: ${n}`);return o.transactionId.toString()}catch(r){throw new Error(`Failed to execute transaction: ${r instanceof Error?r.message:"Unknown error"}`)}}async inscribeAndExecute(e,t){const r=await this.startInscription(e);if(!r.transactionBytes)throw this.logger.error("No transaction bytes returned from inscription request",r),new Error("No transaction bytes returned from inscription request");this.logger.info("executing transaction");const o=await this.executeTransaction(r.transactionBytes,t);return{jobId:r.tx_id,transactionId:o}}async inscribe(e,t){const r=await this.startInscription(e);if(!r.transactionBytes)throw this.logger.error("No transaction bytes returned from inscription request",r),new Error("No transaction bytes returned from inscription request");this.logger.info("executing transaction");const o=await this.executeTransactionWithSigner(r.transactionBytes,t);return{jobId:r.tx_id,transactionId:o}}async retryWithBackoff(e,t=3,r=1e3){for(let n=0;n<t;n++)try{return await e()}catch(o){if(n===t-1)throw o;const e=r*Math.pow(2,n);await new Promise((t=>setTimeout(t,e))),this.logger.debug(`Retry attempt ${n+1}/${t} after ${e}ms delay`)}throw new Error("Retry operation failed")}async retrieveInscription(e){if(!e)throw new ValidationError("Transaction ID is required");try{return await this.retryWithBackoff((async()=>{const t=(await this.client.get(`/inscriptions/retrieve-inscription?id=${e}`)).data;return{...t,jobId:t.id}}))}catch(t){throw this.logger.error("Failed to retrieve inscription:",t),t}}async getInscriptionNumbers(e={}){try{return(await this.client.get("/inscriptions/numbers",{params:e})).data}catch(t){throw this.logger.error("Failed to fetch inscription numbers:",t),t}}static async authenticate(e){return new Auth(e).authenticate()}static async createWithAuth(t){const r="client"===t.type?new ClientAuth({...t,logger:Logger.getInstance()}):new Auth(t),{apiKey:o}=await r.authenticate();return new e({apiKey:o,network:t.network||"mainnet"})}async waitForInscription(e,t=30,r=4e3,o=!1){var n;let i=0;for(;i<t;){const t=await this.retrieveInscription(e);if(t.error)throw new Error(t.error);const a="hashinal"===t.mode,s="6"===(null==(n=t.fileStandard)?void 0:n.toString());if(a&&t.topic_id&&t.jsonTopicId&&(!o||"completed"===t.status))return t;if(!a&&!s&&t.topic_id&&(!o||"completed"===t.status))return t;if(s&&t.topic_id&&t.jsonTopicId&&t.registryTopicId&&(!o||"completed"===t.status))return t;await new Promise((e=>setTimeout(e,r))),i++}throw new Error(`Inscription ${e} did not complete within ${t} attempts`)}};__publicField(_InscriptionSDK,"VALID_MODES",["file","upload","hashinal","hashinal-collection"]),__publicField(_InscriptionSDK,"MAX_BASE64_SIZE",2097152),__publicField(_InscriptionSDK,"MAX_URL_FILE_SIZE",104857600),__publicField(_InscriptionSDK,"VALID_MIME_TYPES",{jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",gif:"image/gif",ico:"image/x-icon",heic:"image/heic",heif:"image/heif",bmp:"image/bmp",webp:"image/webp",tiff:"image/tiff",tif:"image/tiff",svg:"image/svg+xml",mp4:"video/mp4",webm:"video/webm",mp3:"audio/mpeg",pdf:"application/pdf",doc:"application/msword",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",xls:"application/vnd.ms-excel",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",ppt:"application/vnd.ms-powerpoint",pptx:"application/vnd.openxmlformats-officedocument.presentationml.presentation",html:"text/html",htm:"text/html",css:"text/css",php:"application/x-httpd-php",java:"text/x-java-source",js:"application/javascript",mjs:"application/javascript",csv:"text/csv",json:"application/json",txt:"text/plain",glb:"model/gltf-binary",wav:"audio/wav",ogg:"audio/ogg",oga:"audio/ogg",flac:"audio/flac",aac:"audio/aac",m4a:"audio/mp4",avi:"video/x-msvideo",mov:"video/quicktime",mkv:"video/x-matroska",m4v:"video/mp4",mpg:"video/mpeg",mpeg:"video/mpeg",ts:"application/typescript",zip:"application/zip",rar:"application/vnd.rar",tar:"application/x-tar",gz:"application/gzip","7z":"application/x-7z-compressed",xml:"application/xml",yaml:"application/yaml",yml:"application/yaml",md:"text/markdown",markdown:"text/markdown",rtf:"application/rtf",gltf:"model/gltf+json",usdz:"model/vnd.usdz+zip",obj:"model/obj",stl:"model/stl",fbx:"application/octet-stream",ttf:"font/ttf",otf:"font/otf",woff:"font/woff",woff2:"font/woff2",eot:"application/vnd.ms-fontobject",psd:"application/vnd.adobe.photoshop",ai:"application/postscript",eps:"application/postscript",ps:"application/postscript",sqlite:"application/x-sqlite3",db:"application/x-sqlite3",apk:"application/vnd.android.package-archive",ics:"text/calendar",vcf:"text/vcard",py:"text/x-python",rb:"text/x-ruby",go:"text/x-go",rs:"text/x-rust",typescript:"application/typescript",jsx:"text/jsx",tsx:"text/tsx",sql:"application/sql",toml:"application/toml",avif:"image/avif",jxl:"image/jxl",weba:"audio/webm"});let InscriptionSDK=_InscriptionSDK;function bind(e,t){return function(){return e.apply(t,arguments)}}const{toString:toString}=Object.prototype,{getPrototypeOf:getPrototypeOf}=Object,kindOf=(e=>t=>{const r=toString.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest=e=>(e=e.toLowerCase(),t=>kindOf(t)===e),typeOfTest=e=>t=>typeof t===e,{isArray:isArray}=Array,isUndefined=typeOfTest("undefined");function isBuffer(e){return null!==e&&!isUndefined(e)&&null!==e.constructor&&!isUndefined(e.constructor)&&isFunction(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&isArrayBuffer(e.buffer),t}const isString=typeOfTest("string"),isFunction=typeOfTest("function"),isNumber=typeOfTest("number"),isObject=e=>null!==e&&"object"==typeof e,isBoolean=e=>!0===e||!1===e,isPlainObject=e=>{if("object"!==kindOf(e))return!1;const t=getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},isDate=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=e=>isObject(e)&&isFunction(e.pipe),isFormData=e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||isFunction(e.append)&&("formdata"===(t=kindOf(e))||"object"===t&&isFunction(e.toString)&&"[object FormData]"===e.toString()))},isURLSearchParams=kindOfTest("URLSearchParams"),[isReadableStream,isRequest,isResponse,isHeaders]=["ReadableStream","Request","Response","Headers"].map(kindOfTest),trim=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let o,n;if("object"!=typeof e&&(e=[e]),isArray(e))for(o=0,n=e.length;o<n;o++)t.call(null,e[o],o,e);else{const n=r?Object.getOwnPropertyNames(e):Object.keys(e),i=n.length;let a;for(o=0;o<i;o++)a=n[o],t.call(null,e[a],a,e)}}function findKey(e,t){t=t.toLowerCase();const r=Object.keys(e);let o,n=r.length;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const _global="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global$2,isContextDefined=e=>!isUndefined(e)&&e!==_global;function merge(){const{caseless:e}=isContextDefined(this)&&this||{},t={},r=(r,o)=>{const n=e&&findKey(t,o)||o;isPlainObject(t[n])&&isPlainObject(r)?t[n]=merge(t[n],r):isPlainObject(r)?t[n]=merge({},r):isArray(r)?t[n]=r.slice():t[n]=r};for(let o=0,n=arguments.length;o<n;o++)arguments[o]&&forEach(arguments[o],r);return t}const extend=(e,t,r,{allOwnKeys:o}={})=>(forEach(t,((t,o)=>{r&&isFunction(t)?e[o]=bind(t,r):e[o]=t}),{allOwnKeys:o}),e),stripBOM=e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits=(e,t,r,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject=(e,t,r,o)=>{let n,i,a;const s={};if(t=t||{},null==e)return t;do{for(n=Object.getOwnPropertyNames(e),i=n.length;i-- >0;)a=n[i],o&&!o(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==r&&getPrototypeOf(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},endsWith=(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const o=e.indexOf(t,r);return-1!==o&&o===r},toArray=e=>{if(!e)return null;if(isArray(e))return e;let t=e.length;if(!isNumber(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},isTypedArray=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&getPrototypeOf(Uint8Array)),forEachEntry=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const r=o.value;t.call(e,r[0],r[1])}},matchAll=(e,t)=>{let r;const o=[];for(;null!==(r=e.exec(t));)o.push(r);return o},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r})),hasOwnProperty=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),isRegExp=kindOfTest("RegExp"),reduceDescriptors=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),o={};forEach(r,((r,n)=>{let i;!1!==(i=t(r,n,e))&&(o[n]=i||r)})),Object.defineProperties(e,o)},freezeMethods=e=>{reduceDescriptors(e,((t,r)=>{if(isFunction(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const o=e[r];isFunction(o)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet=(e,t)=>{const r={},o=e=>{e.forEach((e=>{r[e]=!0}))};return isArray(e)?o(e):o(String(e).split(t)),r},noop=()=>{},toFiniteNumber=(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t;function isSpecCompliantForm(e){return!!(e&&isFunction(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])}const toJSONObject=e=>{const t=new Array(10),r=(e,o)=>{if(isObject(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[o]=e;const n=isArray(e)?[]:{};return forEach(e,((e,t)=>{const i=r(e,o+1);!isUndefined(i)&&(n[t]=i)})),t[o]=void 0,n}}return e};return r(e,0)},isAsyncFn=kindOfTest("AsyncFunction"),isThenable=e=>e&&(isObject(e)||isFunction(e))&&isFunction(e.then)&&isFunction(e.catch),_setImmediate=((e,t)=>e?setImmediate:t?((e,t)=>(_global.addEventListener("message",(({source:r,data:o})=>{r===_global&&o===e&&t.length&&t.shift()()}),!1),r=>{t.push(r),_global.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))("function"==typeof setImmediate,isFunction(_global.postMessage)),asap="undefined"!=typeof queueMicrotask?queueMicrotask.bind(_global):void 0!==process$1$1&&process$1$1.nextTick||_setImmediate,utils$1={isArray:isArray,isArrayBuffer:isArrayBuffer,isBuffer:isBuffer,isFormData:isFormData,isArrayBufferView:isArrayBufferView,isString:isString,isNumber:isNumber,isBoolean:isBoolean,isObject:isObject,isPlainObject:isPlainObject,isReadableStream:isReadableStream,isRequest:isRequest,isResponse:isResponse,isHeaders:isHeaders,isUndefined:isUndefined,isDate:isDate,isFile:isFile,isBlob:isBlob,isRegExp:isRegExp,isFunction:isFunction,isStream:isStream,isURLSearchParams:isURLSearchParams,isTypedArray:isTypedArray,isFileList:isFileList,forEach:forEach,merge:merge,extend:extend,trim:trim,stripBOM:stripBOM,inherits:inherits,toFlatObject:toFlatObject,kindOf:kindOf,kindOfTest:kindOfTest,endsWith:endsWith,toArray:toArray,forEachEntry:forEachEntry,matchAll:matchAll,isHTMLForm:isHTMLForm,hasOwnProperty:hasOwnProperty,hasOwnProp:hasOwnProperty,reduceDescriptors:reduceDescriptors,freezeMethods:freezeMethods,toObjectSet:toObjectSet,toCamelCase:toCamelCase,noop:noop,toFiniteNumber:toFiniteNumber,findKey:findKey,global:_global,isContextDefined:isContextDefined,isSpecCompliantForm:isSpecCompliantForm,toJSONObject:toJSONObject,isAsyncFn:isAsyncFn,isThenable:isThenable,setImmediate:_setImmediate,asap:asap};function AxiosError$1(e,t,r,o,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),o&&(this.request=o),n&&(this.response=n,this.status=n.status?n.status:null)}utils$1.inherits(AxiosError$1,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:utils$1.toJSONObject(this.config),code:this.code,status:this.status}}});const prototype$1=AxiosError$1.prototype,descriptors={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{descriptors[e]={value:e}})),Object.defineProperties(AxiosError$1,descriptors),Object.defineProperty(prototype$1,"isAxiosError",{value:!0}),AxiosError$1.from=(e,t,r,o,n,i)=>{const a=Object.create(prototype$1);return utils$1.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),AxiosError$1.call(a,e.message,t,r,o,n),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const httpAdapter=null;function isVisitable(e){return utils$1.isPlainObject(e)||utils$1.isArray(e)}function removeBrackets(e){return utils$1.endsWith(e,"[]")?e.slice(0,-2):e}function renderKey(e,t,r){return e?e.concat(t).map((function(e,t){return e=removeBrackets(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}function isFlatArray(e){return utils$1.isArray(e)&&!e.some(isVisitable)}const predicates=utils$1.toFlatObject(utils$1,{},null,(function(e){return/^is[A-Z]/.test(e)}));function toFormData$1(e,t,r){if(!utils$1.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const o=(r=utils$1.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!utils$1.isUndefined(t[e])}))).metaTokens,n=r.visitor||u,i=r.dots,a=r.indexes,s=(r.Blob||"undefined"!=typeof Blob&&Blob)&&utils$1.isSpecCompliantForm(t);if(!utils$1.isFunction(n))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(utils$1.isDate(e))return e.toISOString();if(!s&&utils$1.isBlob(e))throw new AxiosError$1("Blob is not supported. Use a Buffer instead.");return utils$1.isArrayBuffer(e)||utils$1.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,r,n){let s=e;if(e&&!n&&"object"==typeof e)if(utils$1.endsWith(r,"{}"))r=o?r:r.slice(0,-2),e=JSON.stringify(e);else if(utils$1.isArray(e)&&isFlatArray(e)||(utils$1.isFileList(e)||utils$1.endsWith(r,"[]"))&&(s=utils$1.toArray(e)))return r=removeBrackets(r),s.forEach((function(e,o){!utils$1.isUndefined(e)&&null!==e&&t.append(!0===a?renderKey([r],o,i):null===a?r:r+"[]",c(e))})),!1;return!!isVisitable(e)||(t.append(renderKey(n,r,i),c(e)),!1)}const l=[],d=Object.assign(predicates,{defaultVisitor:u,convertValue:c,isVisitable:isVisitable});if(!utils$1.isObject(e))throw new TypeError("data must be an object");return function e(r,o){if(!utils$1.isUndefined(r)){if(-1!==l.indexOf(r))throw Error("Circular reference detected in "+o.join("."));l.push(r),utils$1.forEach(r,(function(r,i){!0===(!(utils$1.isUndefined(r)||null===r)&&n.call(t,r,utils$1.isString(i)?i.trim():i,o,d))&&e(r,o?o.concat(i):[i])})),l.pop()}}(e),t}function encode$1(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function AxiosURLSearchParams(e,t){this._pairs=[],e&&toFormData$1(e,this,t)}const prototype=AxiosURLSearchParams.prototype;function encode(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL(e,t,r){if(!t)return e;const o=r&&r.encode||encode;utils$1.isFunction(r)&&(r={serialize:r});const n=r&&r.serialize;let i;if(i=n?n(t,r):utils$1.isURLSearchParams(t)?t.toString():new AxiosURLSearchParams(t,r).toString(o),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}prototype.append=function(e,t){this._pairs.push([e,t])},prototype.toString=function(e){const t=e?function(t){return e.call(this,t,encode$1)}:encode$1;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class InterceptorManager{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){utils$1.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}const transitionalDefaults={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},URLSearchParams$1="undefined"!=typeof URLSearchParams?URLSearchParams:AxiosURLSearchParams,FormData$1="undefined"!=typeof FormData?FormData:null,Blob$1="undefined"!=typeof Blob?Blob:null,platform$1={isBrowser:!0,classes:{URLSearchParams:URLSearchParams$1,FormData:FormData$1,Blob:Blob$1},protocols:["http","https","file","blob","url","data"]},hasBrowserEnv="undefined"!=typeof window&&"undefined"!=typeof document,_navigator="object"==typeof navigator&&navigator||void 0,hasStandardBrowserEnv=hasBrowserEnv&&(!_navigator||["ReactNative","NativeScript","NS"].indexOf(_navigator.product)<0),hasStandardBrowserWebWorkerEnv="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,origin=hasBrowserEnv&&window.location.href||"http://localhost",utils=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:hasBrowserEnv,hasStandardBrowserEnv:hasStandardBrowserEnv,hasStandardBrowserWebWorkerEnv:hasStandardBrowserWebWorkerEnv,navigator:_navigator,origin:origin},Symbol.toStringTag,{value:"Module"})),platform={...utils,...platform$1};function toURLEncodedForm(e,t){return toFormData$1(e,new platform.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,o){return platform.isNode&&utils$1.isBuffer(e)?(this.append(t,e.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function parsePropPath(e){return utils$1.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}function arrayToObject(e){const t={},r=Object.keys(e);let o;const n=r.length;let i;for(o=0;o<n;o++)i=r[o],t[i]=e[i];return t}function formDataToJSON(e){function t(e,r,o,n){let i=e[n++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=n>=e.length;if(i=!i&&utils$1.isArray(o)?o.length:i,s)return utils$1.hasOwnProp(o,i)?o[i]=[o[i],r]:o[i]=r,!a;o[i]&&utils$1.isObject(o[i])||(o[i]=[]);return t(e,r,o[i],n)&&utils$1.isArray(o[i])&&(o[i]=arrayToObject(o[i])),!a}if(utils$1.isFormData(e)&&utils$1.isFunction(e.entries)){const r={};return utils$1.forEachEntry(e,((e,o)=>{t(parsePropPath(e),o,r,0)})),r}return null}function stringifySafely(e,t,r){if(utils$1.isString(e))try{return(t||JSON.parse)(e),utils$1.trim(e)}catch(o){if("SyntaxError"!==o.name)throw o}return(r||JSON.stringify)(e)}const defaults={transitional:transitionalDefaults,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",o=r.indexOf("application/json")>-1,n=utils$1.isObject(e);n&&utils$1.isHTMLForm(e)&&(e=new FormData(e));if(utils$1.isFormData(e))return o?JSON.stringify(formDataToJSON(e)):e;if(utils$1.isArrayBuffer(e)||utils$1.isBuffer(e)||utils$1.isStream(e)||utils$1.isFile(e)||utils$1.isBlob(e)||utils$1.isReadableStream(e))return e;if(utils$1.isArrayBufferView(e))return e.buffer;if(utils$1.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(n){if(r.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(e,this.formSerializer).toString();if((i=utils$1.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return toFormData$1(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return n||o?(t.setContentType("application/json",!1),stringifySafely(e)):e}],transformResponse:[function(e){const t=this.transitional||defaults.transitional,r=t&&t.forcedJSONParsing,o="json"===this.responseType;if(utils$1.isResponse(e)||utils$1.isReadableStream(e))return e;if(e&&utils$1.isString(e)&&(r&&!this.responseType||o)){const r=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e)}catch(n){if(r){if("SyntaxError"===n.name)throw AxiosError$1.from(n,AxiosError$1.ERR_BAD_RESPONSE,this,null,this.response);throw n}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform.classes.FormData,Blob:platform.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};utils$1.forEach(["delete","get","head","post","put","patch"],(e=>{defaults.headers[e]={}}));const ignoreDuplicateOf=utils$1.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),parseHeaders=e=>{const t={};let r,o,n;return e&&e.split("\n").forEach((function(e){n=e.indexOf(":"),r=e.substring(0,n).trim().toLowerCase(),o=e.substring(n+1).trim(),!r||t[r]&&ignoreDuplicateOf[r]||("set-cookie"===r?t[r]?t[r].push(o):t[r]=[o]:t[r]=t[r]?t[r]+", "+o:o)})),t},$internals=Symbol("internals");function normalizeHeader(e){return e&&String(e).trim().toLowerCase()}function normalizeValue(e){return!1===e||null==e?e:utils$1.isArray(e)?e.map(normalizeValue):String(e)}function parseTokens(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=r.exec(e);)t[o[1]]=o[2];return t}const isValidHeaderName=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function matchHeaderValue(e,t,r,o,n){return utils$1.isFunction(o)?o.call(this,t,r):(n&&(t=r),utils$1.isString(t)?utils$1.isString(o)?-1!==t.indexOf(o):utils$1.isRegExp(o)?o.test(t):void 0:void 0)}function formatHeader(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,r)=>t.toUpperCase()+r))}function buildAccessors(e,t){const r=utils$1.toCamelCase(" "+t);["get","set","has"].forEach((o=>{Object.defineProperty(e,o+r,{value:function(e,r,n){return this[o].call(this,t,e,r,n)},configurable:!0})}))}let AxiosHeaders$1=class{constructor(e){e&&this.set(e)}set(e,t,r){const o=this;function n(e,t,r){const n=normalizeHeader(t);if(!n)throw new Error("header name must be a non-empty string");const i=utils$1.findKey(o,n);(!i||void 0===o[i]||!0===r||void 0===r&&!1!==o[i])&&(o[i||t]=normalizeValue(e))}const i=(e,t)=>utils$1.forEach(e,((e,r)=>n(e,r,t)));if(utils$1.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(utils$1.isString(e)&&(e=e.trim())&&!isValidHeaderName(e))i(parseHeaders(e),t);else if(utils$1.isHeaders(e))for(const[a,s]of e.entries())n(s,a,r);else null!=e&&n(t,e,r);return this}get(e,t){if(e=normalizeHeader(e)){const r=utils$1.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return parseTokens(e);if(utils$1.isFunction(t))return t.call(this,e,r);if(utils$1.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=normalizeHeader(e)){const r=utils$1.findKey(this,e);return!(!r||void 0===this[r]||t&&!matchHeaderValue(this,this[r],r,t))}return!1}delete(e,t){const r=this;let o=!1;function n(e){if(e=normalizeHeader(e)){const n=utils$1.findKey(r,e);!n||t&&!matchHeaderValue(r,r[n],n,t)||(delete r[n],o=!0)}}return utils$1.isArray(e)?e.forEach(n):n(e),o}clear(e){const t=Object.keys(this);let r=t.length,o=!1;for(;r--;){const n=t[r];e&&!matchHeaderValue(this,this[n],n,e,!0)||(delete this[n],o=!0)}return o}normalize(e){const t=this,r={};return utils$1.forEach(this,((o,n)=>{const i=utils$1.findKey(r,n);if(i)return t[i]=normalizeValue(o),void delete t[n];const a=e?formatHeader(n):String(n).trim();a!==n&&delete t[n],t[a]=normalizeValue(o),r[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return utils$1.forEach(this,((r,o)=>{null!=r&&!1!==r&&(t[o]=e&&utils$1.isArray(r)?r.join(", "):r)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach((e=>r.set(e))),r}static accessor(e){const t=(this[$internals]=this[$internals]={accessors:{}}).accessors,r=this.prototype;function o(e){const o=normalizeHeader(e);t[o]||(buildAccessors(r,e),t[o]=!0)}return utils$1.isArray(e)?e.forEach(o):o(e),this}};function transformData(e,t){const r=this||defaults,o=t||r,n=AxiosHeaders$1.from(o.headers);let i=o.data;return utils$1.forEach(e,(function(e){i=e.call(r,i,n.normalize(),t?t.status:void 0)})),n.normalize(),i}function isCancel$1(e){return!(!e||!e.__CANCEL__)}function CanceledError$1(e,t,r){AxiosError$1.call(this,null==e?"canceled":e,AxiosError$1.ERR_CANCELED,t,r),this.name="CanceledError"}function settle(e,t,r){const o=r.config.validateStatus;r.status&&o&&!o(r.status)?t(new AxiosError$1("Request failed with status code "+r.status,[AxiosError$1.ERR_BAD_REQUEST,AxiosError$1.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}function parseProtocol(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function speedometer(e,t){e=e||10;const r=new Array(e),o=new Array(e);let n,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const c=Date.now(),u=o[a];n||(n=c),r[i]=s,o[i]=c;let l=a,d=0;for(;l!==i;)d+=r[l++],l%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-n<t)return;const p=u&&c-u;return p?Math.round(1e3*d/p):void 0}}function throttle(e,t){let r,o,n=0,i=1e3/t;const a=(t,i=Date.now())=>{n=i,r=null,o&&(clearTimeout(o),o=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),s=t-n;s>=i?a(e,t):(r=e,o||(o=setTimeout((()=>{o=null,a(r)}),i-s)))},()=>r&&a(r)]}AxiosHeaders$1.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),utils$1.reduceDescriptors(AxiosHeaders$1.prototype,(({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}})),utils$1.freezeMethods(AxiosHeaders$1),utils$1.inherits(CanceledError$1,AxiosError$1,{__CANCEL__:!0});const progressEventReducer=(e,t,r=3)=>{let o=0;const n=speedometer(50,250);return throttle((r=>{const i=r.loaded,a=r.lengthComputable?r.total:void 0,s=i-o,c=n(s);o=i;e({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:c||void 0,estimated:c&&a&&i<=a?(a-i)/c:void 0,event:r,lengthComputable:null!=a,[t?"download":"upload"]:!0})}),r)},progressEventDecorator=(e,t)=>{const r=null!=e;return[o=>t[0]({lengthComputable:r,total:e,loaded:o}),t[1]]},asyncDecorator=e=>(...t)=>utils$1.asap((()=>e(...t))),isURLSameOrigin=platform.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,platform.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(platform.origin),platform.navigator&&/(msie|trident)/i.test(platform.navigator.userAgent)):()=>!0,cookies=platform.hasStandardBrowserEnv?{write(e,t,r,o,n,i){const a=[e+"="+encodeURIComponent(t)];utils$1.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),utils$1.isString(o)&&a.push("path="+o),utils$1.isString(n)&&a.push("domain="+n),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function isAbsoluteURL(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function combineURLs(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function buildFullPath(e,t,r){let o=!isAbsoluteURL(t);return e&&o||0==r?combineURLs(e,t):t}const headersToObject=e=>e instanceof AxiosHeaders$1?{...e}:e;function mergeConfig$1(e,t){t=t||{};const r={};function o(e,t,r,o){return utils$1.isPlainObject(e)&&utils$1.isPlainObject(t)?utils$1.merge.call({caseless:o},e,t):utils$1.isPlainObject(t)?utils$1.merge({},t):utils$1.isArray(t)?t.slice():t}function n(e,t,r,n){return utils$1.isUndefined(t)?utils$1.isUndefined(e)?void 0:o(void 0,e,0,n):o(e,t,0,n)}function i(e,t){if(!utils$1.isUndefined(t))return o(void 0,t)}function a(e,t){return utils$1.isUndefined(t)?utils$1.isUndefined(e)?void 0:o(void 0,e):o(void 0,t)}function s(r,n,i){return i in t?o(r,n):i in e?o(void 0,r):void 0}const c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t,r)=>n(headersToObject(e),headersToObject(t),0,!0)};return utils$1.forEach(Object.keys(Object.assign({},e,t)),(function(o){const i=c[o]||n,a=i(e[o],t[o],o);utils$1.isUndefined(a)&&i!==s||(r[o]=a)})),r}const resolveConfig=e=>{const t=mergeConfig$1({},e);let r,{data:o,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:c}=t;if(t.headers=s=AxiosHeaders$1.from(s),t.url=buildURL(buildFullPath(t.baseURL,t.url),e.params,e.paramsSerializer),c&&s.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),utils$1.isFormData(o))if(platform.hasStandardBrowserEnv||platform.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(r=s.getContentType())){const[e,...t]=r?r.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(platform.hasStandardBrowserEnv&&(n&&utils$1.isFunction(n)&&(n=n(t)),n||!1!==n&&isURLSameOrigin(t.url))){const e=i&&a&&cookies.read(a);e&&s.set(i,e)}return t},isXHRAdapterSupported="undefined"!=typeof XMLHttpRequest,xhrAdapter=isXHRAdapterSupported&&function(e){return new Promise((function(t,r){const o=resolveConfig(e);let n=o.data;const i=AxiosHeaders$1.from(o.headers).normalize();let a,s,c,u,l,{responseType:d,onUploadProgress:p,onDownloadProgress:h}=o;function f(){u&&u(),l&&l(),o.cancelToken&&o.cancelToken.unsubscribe(a),o.signal&&o.signal.removeEventListener("abort",a)}let m=new XMLHttpRequest;function y(){if(!m)return;const o=AxiosHeaders$1.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());settle((function(e){t(e),f()}),(function(e){r(e),f()}),{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:o,config:e,request:m}),m=null}m.open(o.method.toUpperCase(),o.url,!0),m.timeout=o.timeout,"onloadend"in m?m.onloadend=y:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(y)},m.onabort=function(){m&&(r(new AxiosError$1("Request aborted",AxiosError$1.ECONNABORTED,e,m)),m=null)},m.onerror=function(){r(new AxiosError$1("Network Error",AxiosError$1.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const n=o.transitional||transitionalDefaults;o.timeoutErrorMessage&&(t=o.timeoutErrorMessage),r(new AxiosError$1(t,n.clarifyTimeoutError?AxiosError$1.ETIMEDOUT:AxiosError$1.ECONNABORTED,e,m)),m=null},void 0===n&&i.setContentType(null),"setRequestHeader"in m&&utils$1.forEach(i.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),utils$1.isUndefined(o.withCredentials)||(m.withCredentials=!!o.withCredentials),d&&"json"!==d&&(m.responseType=o.responseType),h&&([c,l]=progressEventReducer(h,!0),m.addEventListener("progress",c)),p&&m.upload&&([s,u]=progressEventReducer(p),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",u)),(o.cancelToken||o.signal)&&(a=t=>{m&&(r(!t||t.type?new CanceledError$1(null,e,m):t),m.abort(),m=null)},o.cancelToken&&o.cancelToken.subscribe(a),o.signal&&(o.signal.aborted?a():o.signal.addEventListener("abort",a)));const g=parseProtocol(o.url);g&&-1===platform.protocols.indexOf(g)?r(new AxiosError$1("Unsupported protocol "+g+":",AxiosError$1.ERR_BAD_REQUEST,e)):m.send(n||null)}))},composeSignals=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,o=new AbortController;const n=function(e){if(!r){r=!0,a();const t=e instanceof Error?e:this.reason;o.abort(t instanceof AxiosError$1?t:new CanceledError$1(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{i=null,n(new AxiosError$1(`timeout ${t} of ms exceeded`,AxiosError$1.ETIMEDOUT))}),t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(n):e.removeEventListener("abort",n)})),e=null)};e.forEach((e=>e.addEventListener("abort",n)));const{signal:s}=o;return s.unsubscribe=()=>utils$1.asap(a),s}},streamChunk=function*(e,t){let r=e.byteLength;if(r<t)return void(yield e);let o,n=0;for(;n<r;)o=n+t,yield e.slice(n,o),n=o},readBytes=async function*(e,t){for await(const r of readStream(e))yield*streamChunk(r,t)},readStream=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}},trackStream=(e,t,r,o)=>{const n=readBytes(e,t);let i,a=0,s=e=>{i||(i=!0,o&&o(e))};return new ReadableStream({async pull(e){try{const{done:t,value:o}=await n.next();if(t)return s(),void e.close();let i=o.byteLength;if(r){let e=a+=i;r(e)}e.enqueue(new Uint8Array(o))}catch(t){throw s(t),t}},cancel:e=>(s(e),n.return())},{highWaterMark:2})},isFetchSupported="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,isReadableStreamSupported=isFetchSupported&&"function"==typeof ReadableStream,encodeText=isFetchSupported&&("function"==typeof TextEncoder?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),test=(e,...t)=>{try{return!!e(...t)}catch(r){return!1}},supportsRequestStream=isReadableStreamSupported&&test((()=>{let e=!1;const t=new Request(platform.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),DEFAULT_CHUNK_SIZE=65536,supportsResponseStream=isReadableStreamSupported&&test((()=>utils$1.isReadableStream(new Response("").body))),resolvers={stream:supportsResponseStream&&(e=>e.body)};isFetchSupported&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach((t=>{!resolvers[t]&&(resolvers[t]=utils$1.isFunction(e[t])?e=>e[t]():(e,r)=>{throw new AxiosError$1(`Response type '${t}' is not supported`,AxiosError$1.ERR_NOT_SUPPORT,r)})}))})(new Response);const getBodyLength=async e=>{if(null==e)return 0;if(utils$1.isBlob(e))return e.size;if(utils$1.isSpecCompliantForm(e)){const t=new Request(platform.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return utils$1.isArrayBufferView(e)||utils$1.isArrayBuffer(e)?e.byteLength:(utils$1.isURLSearchParams(e)&&(e+=""),utils$1.isString(e)?(await encodeText(e)).byteLength:void 0)},resolveBodyLength=async(e,t)=>{const r=utils$1.toFiniteNumber(e.getContentLength());return null==r?getBodyLength(t):r},fetchAdapter=isFetchSupported&&(async e=>{let{url:t,method:r,data:o,signal:n,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:c,responseType:u,headers:l,withCredentials:d="same-origin",fetchOptions:p}=resolveConfig(e);u=u?(u+"").toLowerCase():"text";let h,f=composeSignals([n,i&&i.toAbortSignal()],a);const m=f&&f.unsubscribe&&(()=>{f.unsubscribe()});let y;try{if(c&&supportsRequestStream&&"get"!==r&&"head"!==r&&0!==(y=await resolveBodyLength(l,o))){let e,r=new Request(t,{method:"POST",body:o,duplex:"half"});if(utils$1.isFormData(o)&&(e=r.headers.get("content-type"))&&l.setContentType(e),r.body){const[e,t]=progressEventDecorator(y,progressEventReducer(asyncDecorator(c)));o=trackStream(r.body,DEFAULT_CHUNK_SIZE,e,t)}}utils$1.isString(d)||(d=d?"include":"omit");const n="credentials"in Request.prototype;h=new Request(t,{...p,signal:f,method:r.toUpperCase(),headers:l.normalize().toJSON(),body:o,duplex:"half",credentials:n?d:void 0});let i=await fetch(h);const a=supportsResponseStream&&("stream"===u||"response"===u);if(supportsResponseStream&&(s||a&&m)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=i[t]}));const t=utils$1.toFiniteNumber(i.headers.get("content-length")),[r,o]=s&&progressEventDecorator(t,progressEventReducer(asyncDecorator(s),!0))||[];i=new Response(trackStream(i.body,DEFAULT_CHUNK_SIZE,r,(()=>{o&&o(),m&&m()})),e)}u=u||"text";let g=await resolvers[utils$1.findKey(resolvers,u)||"text"](i,e);return!a&&m&&m(),await new Promise(((t,r)=>{settle(t,r,{data:g,headers:AxiosHeaders$1.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:h})}))}catch(g){if(m&&m(),g&&"TypeError"===g.name&&/fetch/i.test(g.message))throw Object.assign(new AxiosError$1("Network Error",AxiosError$1.ERR_NETWORK,e,h),{cause:g.cause||g});throw AxiosError$1.from(g,g&&g.code,e,h)}}),knownAdapters={http:httpAdapter,xhr:xhrAdapter,fetch:fetchAdapter};utils$1.forEach(knownAdapters,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(r){}Object.defineProperty(e,"adapterName",{value:t})}}));const renderReason=e=>`- ${e}`,isResolvedHandle=e=>utils$1.isFunction(e)||null===e||!1===e,adapters={getAdapter:e=>{e=utils$1.isArray(e)?e:[e];const{length:t}=e;let r,o;const n={};for(let i=0;i<t;i++){let t;if(r=e[i],o=r,!isResolvedHandle(r)&&(o=knownAdapters[(t=String(r)).toLowerCase()],void 0===o))throw new AxiosError$1(`Unknown adapter '${t}'`);if(o)break;n[t||"#"+i]=o}if(!o){const e=Object.entries(n).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new AxiosError$1("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(renderReason).join("\n"):" "+renderReason(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return o},adapters:knownAdapters};function throwIfCancellationRequested(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new CanceledError$1(null,e)}function dispatchRequest(e){throwIfCancellationRequested(e),e.headers=AxiosHeaders$1.from(e.headers),e.data=transformData.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return adapters.getAdapter(e.adapter||defaults.adapter)(e).then((function(t){return throwIfCancellationRequested(e),t.data=transformData.call(e,e.transformResponse,t),t.headers=AxiosHeaders$1.from(t.headers),t}),(function(t){return isCancel$1(t)||(throwIfCancellationRequested(e),t&&t.response&&(t.response.data=transformData.call(e,e.transformResponse,t.response),t.response.headers=AxiosHeaders$1.from(t.response.headers))),Promise.reject(t)}))}const VERSION$1="1.8.1",validators$1={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{validators$1[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));const deprecatedWarnings={};function assertOptions(e,t,r){if("object"!=typeof e)throw new AxiosError$1("options must be an object",AxiosError$1.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let n=o.length;for(;n-- >0;){const i=o[n],a=t[i];if(a){const t=e[i],r=void 0===t||a(t,i,e);if(!0!==r)throw new AxiosError$1("option "+i+" must be "+r,AxiosError$1.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new AxiosError$1("Unknown option "+i,AxiosError$1.ERR_BAD_OPTION)}}validators$1.transitional=function(e,t,r){function o(e,t){return"[Axios v"+VERSION$1+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,n,i)=>{if(!1===e)throw new AxiosError$1(o(n," has been removed"+(t?" in "+t:"")),AxiosError$1.ERR_DEPRECATED);return t&&!deprecatedWarnings[n]&&(deprecatedWarnings[n]=!0,console.warn(o(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,n,i)}},validators$1.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};const validator={assertOptions:assertOptions,validators:validators$1},validators=validator.validators;let Axios$1=class{constructor(e){this.defaults=e,this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}async request(e,t){try{return await this._request(e,t)}catch(r){if(r instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{r.stack?t&&!String(r.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(r.stack+="\n"+t):r.stack=t}catch(o){}}throw r}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=mergeConfig$1(this.defaults,t);const{transitional:r,paramsSerializer:o,headers:n}=t;void 0!==r&&validator.assertOptions(r,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),null!=o&&(utils$1.isFunction(o)?t.paramsSerializer={serialize:o}:validator.assertOptions(o,{encode:validators.function,serialize:validators.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),validator.assertOptions(t,{baseUrl:validators.spelling("baseURL"),withXsrfToken:validators.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=n&&utils$1.merge(n.common,n[t.method]);n&&utils$1.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete n[e]})),t.headers=AxiosHeaders$1.concat(i,n);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const c=[];let u;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let l,d=0;if(!s){const e=[dispatchRequest.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,c),l=e.length,u=Promise.resolve(t);d<l;)u=u.then(e[d++],e[d++]);return u}l=a.length;let p=t;for(d=0;d<l;){const e=a[d++],t=a[d++];try{p=e(p)}catch(h){t.call(this,h);break}}try{u=dispatchRequest.call(this,p)}catch(h){return Promise.reject(h)}for(d=0,l=c.length;d<l;)u=u.then(c[d++],c[d++]);return u}getUri(e){return buildURL(buildFullPath((e=mergeConfig$1(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};utils$1.forEach(["delete","get","head","options"],(function(e){Axios$1.prototype[e]=function(t,r){return this.request(mergeConfig$1(r||{},{method:e,url:t,data:(r||{}).data}))}})),utils$1.forEach(["post","put","patch"],(function(e){function t(t){return function(r,o,n){return this.request(mergeConfig$1(n||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:o}))}}Axios$1.prototype[e]=t(),Axios$1.prototype[e+"Form"]=t(!0)}));let CancelToken$1=class e{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const r=this;this.promise.then((e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null})),this.promise.then=e=>{let t;const o=new Promise((e=>{r.subscribe(e),t=e})).then(e);return o.cancel=function(){r.unsubscribe(t)},o},e((function(e,o,n){r.reason||(r.reason=new CanceledError$1(e,o,n),t(r.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e((function(e){t=e})),cancel:t}}};function spread$1(e){return function(t){return e.apply(null,t)}}function isAxiosError$1(e){return utils$1.isObject(e)&&!0===e.isAxiosError}const HttpStatusCode$1={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};function createInstance(e){const t=new Axios$1(e),r=bind(Axios$1.prototype.request,t);return utils$1.extend(r,Axios$1.prototype,t,{allOwnKeys:!0}),utils$1.extend(r,t,null,{allOwnKeys:!0}),r.create=function(t){return createInstance(mergeConfig$1(e,t))},r}Object.entries(HttpStatusCode$1).forEach((([e,t])=>{HttpStatusCode$1[t]=e}));const axios=createInstance(defaults);axios.Axios=Axios$1,axios.CanceledError=CanceledError$1,axios.CancelToken=CancelToken$1,axios.isCancel=isCancel$1,axios.VERSION=VERSION$1,axios.toFormData=toFormData$1,axios.AxiosError=AxiosError$1,axios.Cancel=axios.CanceledError,axios.all=function(e){return Promise.all(e)},axios.spread=spread$1,axios.isAxiosError=isAxiosError$1,axios.mergeConfig=mergeConfig$1,axios.AxiosHeaders=AxiosHeaders$1,axios.formToJSON=e=>formDataToJSON(utils$1.isHTMLForm(e)?new FormData(e):e),axios.getAdapter=adapters.getAdapter,axios.HttpStatusCode=HttpStatusCode$1,axios.default=axios;const{Axios:Axios,AxiosError:AxiosError,CanceledError:CanceledError,isCancel:isCancel,CancelToken:CancelToken,VERSION:VERSION,all:all,Cancel:Cancel,isAxiosError:isAxiosError,spread:spread,toFormData:toFormData,AxiosHeaders:AxiosHeaders,HttpStatusCode:HttpStatusCode,formToJSON:formToJSON,getAdapter:getAdapter,mergeConfig:mergeConfig}=axios;var lib={},proto={};Object.defineProperty(proto,"__esModule",{value:!0}),proto.proto=proto.google=proto.default=proto.com=void 0;var $protobuf$1=_interopRequireWildcard$1(minimal);function _getRequireWildcardCache$1(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(_getRequireWildcardCache$1=function(e){return e?r:t})(e)}function _interopRequireWildcard$1(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=_getRequireWildcardCache$1(t);if(r&&r.has(e))return r.get(e);var o={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var a=n?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(o,i,a):o[i]=e[i]}return o.default=e,r&&r.set(e,o),o}const $Reader=$protobuf$1.Reader,$Writer=$protobuf$1.Writer,$util=$protobuf$1.util,$root=proto.default=$protobuf$1.roots.hashgraph||($protobuf$1.roots.hashgraph={});proto.com=$root.com=(()=>{const e={};return e.hedera=function(){const e={};return e.mirror=function(){const e={};return e.api=function(){const e={};return e.proto=function(){const e={};return e.ConsensusTopicQuery=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.topicID=null,e.prototype.consensusStartTime=null,e.prototype.consensusEndTime=null,e.prototype.limit=$util.Long?$util.Long.fromBits(0,0,!0):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.topicID&&Object.hasOwnProperty.call(e,"topicID")&&$root.proto.TopicID.encode(e.topicID,t.uint32(10).fork()).ldelim(),null!=e.consensusStartTime&&Object.hasOwnProperty.call(e,"consensusStartTime")&&$root.proto.Timestamp.encode(e.consensusStartTime,t.uint32(18).fork()).ldelim(),null!=e.consensusEndTime&&Object.hasOwnProperty.call(e,"consensusEndTime")&&$root.proto.Timestamp.encode(e.consensusEndTime,t.uint32(26).fork()).ldelim(),null!=e.limit&&Object.hasOwnProperty.call(e,"limit")&&t.uint32(32).uint64(e.limit),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.com.hedera.mirror.api.proto.ConsensusTopicQuery;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.topicID=$root.proto.TopicID.decode(e,e.uint32());break;case 2:o.consensusStartTime=$root.proto.Timestamp.decode(e,e.uint32());break;case 3:o.consensusEndTime=$root.proto.Timestamp.decode(e,e.uint32());break;case 4:o.limit=e.uint64();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.hedera.mirror.api.proto.ConsensusTopicQuery"},e}(),e.ConsensusTopicResponse=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.consensusTimestamp=null,e.prototype.message=$util.newBuffer([]),e.prototype.runningHash=$util.newBuffer([]),e.prototype.sequenceNumber=$util.Long?$util.Long.fromBits(0,0,!0):0,e.prototype.runningHashVersion=$util.Long?$util.Long.fromBits(0,0,!0):0,e.prototype.chunkInfo=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.consensusTimestamp&&Object.hasOwnProperty.call(e,"consensusTimestamp")&&$root.proto.Timestamp.encode(e.consensusTimestamp,t.uint32(10).fork()).ldelim(),null!=e.message&&Object.hasOwnProperty.call(e,"message")&&t.uint32(18).bytes(e.message),null!=e.runningHash&&Object.hasOwnProperty.call(e,"runningHash")&&t.uint32(26).bytes(e.runningHash),null!=e.sequenceNumber&&Object.hasOwnProperty.call(e,"sequenceNumber")&&t.uint32(32).uint64(e.sequenceNumber),null!=e.runningHashVersion&&Object.hasOwnProperty.call(e,"runningHashVersion")&&t.uint32(40).uint64(e.runningHashVersion),null!=e.chunkInfo&&Object.hasOwnProperty.call(e,"chunkInfo")&&$root.proto.ConsensusMessageChunkInfo.encode(e.chunkInfo,t.uint32(50).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.com.hedera.mirror.api.proto.ConsensusTopicResponse;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.consensusTimestamp=$root.proto.Timestamp.decode(e,e.uint32());break;case 2:o.message=e.bytes();break;case 3:o.runningHash=e.bytes();break;case 4:o.sequenceNumber=e.uint64();break;case 5:o.runningHashVersion=e.uint64();break;case 6:o.chunkInfo=$root.proto.ConsensusMessageChunkInfo.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.hedera.mirror.api.proto.ConsensusTopicResponse"},e}(),e.ConsensusService=function(){function e(e,t,r){$protobuf$1.rpc.Service.call(this,e,t,r)}return(e.prototype=Object.create($protobuf$1.rpc.Service.prototype)).constructor=e,e.create=function(e,t,r){return new this(e,t,r)},Object.defineProperty(e.prototype.subscribeTopic=function e(t,r){return this.rpcCall(e,$root.com.hedera.mirror.api.proto.ConsensusTopicQuery,$root.com.hedera.mirror.api.proto.ConsensusTopicResponse,t,r)},"name",{value:"subscribeTopic"}),e}(),e.AddressBookQuery=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.fileId=null,e.prototype.limit=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.fileId&&Object.hasOwnProperty.call(e,"fileId")&&$root.proto.FileID.encode(e.fileId,t.uint32(10).fork()).ldelim(),null!=e.limit&&Object.hasOwnProperty.call(e,"limit")&&t.uint32(16).int32(e.limit),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.com.hedera.mirror.api.proto.AddressBookQuery;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.fileId=$root.proto.FileID.decode(e,e.uint32());break;case 2:o.limit=e.int32();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.hedera.mirror.api.proto.AddressBookQuery"},e}(),e.NetworkService=function(){function e(e,t,r){$protobuf$1.rpc.Service.call(this,e,t,r)}return(e.prototype=Object.create($protobuf$1.rpc.Service.prototype)).constructor=e,e.create=function(e,t,r){return new this(e,t,r)},Object.defineProperty(e.prototype.getNodes=function e(t,r){return this.rpcCall(e,$root.com.hedera.mirror.api.proto.AddressBookQuery,$root.proto.NodeAddress,t,r)},"name",{value:"getNodes"}),e}(),e}(),e}(),e}(),e.hapi=function(){const e={};return e.node=function(){const e={};return e.addressbook=function(){const e={};return e.NodeCreateTransactionBody=function(){function e(e){if(this.gossipEndpoint=[],this.serviceEndpoint=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.accountId=null,e.prototype.description="",e.prototype.gossipEndpoint=$util.emptyArray,e.prototype.serviceEndpoint=$util.emptyArray,e.prototype.gossipCaCertificate=$util.newBuffer([]),e.prototype.grpcCertificateHash=$util.newBuffer([]),e.prototype.adminKey=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.accountId&&Object.hasOwnProperty.call(e,"accountId")&&$root.proto.AccountID.encode(e.accountId,t.uint32(10).fork()).ldelim(),null!=e.description&&Object.hasOwnProperty.call(e,"description")&&t.uint32(18).string(e.description),null!=e.gossipEndpoint&&e.gossipEndpoint.length)for(var r=0;r<e.gossipEndpoint.length;++r)$root.proto.ServiceEndpoint.encode(e.gossipEndpoint[r],t.uint32(26).fork()).ldelim();if(null!=e.serviceEndpoint&&e.serviceEndpoint.length)for(r=0;r<e.serviceEndpoint.length;++r)$root.proto.ServiceEndpoint.encode(e.serviceEndpoint[r],t.uint32(34).fork()).ldelim();return null!=e.gossipCaCertificate&&Object.hasOwnProperty.call(e,"gossipCaCertificate")&&t.uint32(42).bytes(e.gossipCaCertificate),null!=e.grpcCertificateHash&&Object.hasOwnProperty.call(e,"grpcCertificateHash")&&t.uint32(50).bytes(e.grpcCertificateHash),null!=e.adminKey&&Object.hasOwnProperty.call(e,"adminKey")&&$root.proto.Key.encode(e.adminKey,t.uint32(58).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.com.hedera.hapi.node.addressbook.NodeCreateTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.accountId=$root.proto.AccountID.decode(e,e.uint32());break;case 2:o.description=e.string();break;case 3:o.gossipEndpoint&&o.gossipEndpoint.length||(o.gossipEndpoint=[]),o.gossipEndpoint.push($root.proto.ServiceEndpoint.decode(e,e.uint32()));break;case 4:o.serviceEndpoint&&o.serviceEndpoint.length||(o.serviceEndpoint=[]),o.serviceEndpoint.push($root.proto.ServiceEndpoint.decode(e,e.uint32()));break;case 5:o.gossipCaCertificate=e.bytes();break;case 6:o.grpcCertificateHash=e.bytes();break;case 7:o.adminKey=$root.proto.Key.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.hedera.hapi.node.addressbook.NodeCreateTransactionBody"},e}(),e.NodeUpdateTransactionBody=function(){function e(e){if(this.gossipEndpoint=[],this.serviceEndpoint=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.nodeId=$util.Long?$util.Long.fromBits(0,0,!0):0,e.prototype.accountId=null,e.prototype.description=null,e.prototype.gossipEndpoint=$util.emptyArray,e.prototype.serviceEndpoint=$util.emptyArray,e.prototype.gossipCaCertificate=null,e.prototype.grpcCertificateHash=null,e.prototype.adminKey=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.nodeId&&Object.hasOwnProperty.call(e,"nodeId")&&t.uint32(8).uint64(e.nodeId),null!=e.accountId&&Object.hasOwnProperty.call(e,"accountId")&&$root.proto.AccountID.encode(e.accountId,t.uint32(18).fork()).ldelim(),null!=e.description&&Object.hasOwnProperty.call(e,"description")&&$root.google.protobuf.StringValue.encode(e.description,t.uint32(26).fork()).ldelim(),null!=e.gossipEndpoint&&e.gossipEndpoint.length)for(var r=0;r<e.gossipEndpoint.length;++r)$root.proto.ServiceEndpoint.encode(e.gossipEndpoint[r],t.uint32(34).fork()).ldelim();if(null!=e.serviceEndpoint&&e.serviceEndpoint.length)for(r=0;r<e.serviceEndpoint.length;++r)$root.proto.ServiceEndpoint.encode(e.serviceEndpoint[r],t.uint32(42).fork()).ldelim();return null!=e.gossipCaCertificate&&Object.hasOwnProperty.call(e,"gossipCaCertificate")&&$root.google.protobuf.BytesValue.encode(e.gossipCaCertificate,t.uint32(50).fork()).ldelim(),null!=e.grpcCertificateHash&&Object.hasOwnProperty.call(e,"grpcCertificateHash")&&$root.google.protobuf.BytesValue.encode(e.grpcCertificateHash,t.uint32(58).fork()).ldelim(),null!=e.adminKey&&Object.hasOwnProperty.call(e,"adminKey")&&$root.proto.Key.encode(e.adminKey,t.uint32(66).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.com.hedera.hapi.node.addressbook.NodeUpdateTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.nodeId=e.uint64();break;case 2:o.accountId=$root.proto.AccountID.decode(e,e.uint32());break;case 3:o.description=$root.google.protobuf.StringValue.decode(e,e.uint32());break;case 4:o.gossipEndpoint&&o.gossipEndpoint.length||(o.gossipEndpoint=[]),o.gossipEndpoint.push($root.proto.ServiceEndpoint.decode(e,e.uint32()));break;case 5:o.serviceEndpoint&&o.serviceEndpoint.length||(o.serviceEndpoint=[]),o.serviceEndpoint.push($root.proto.ServiceEndpoint.decode(e,e.uint32()));break;case 6:o.gossipCaCertificate=$root.google.protobuf.BytesValue.decode(e,e.uint32());break;case 7:o.grpcCertificateHash=$root.google.protobuf.BytesValue.decode(e,e.uint32());break;case 8:o.adminKey=$root.proto.Key.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.hedera.hapi.node.addressbook.NodeUpdateTransactionBody"},e}(),e.NodeDeleteTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.nodeId=$util.Long?$util.Long.fromBits(0,0,!0):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.nodeId&&Object.hasOwnProperty.call(e,"nodeId")&&t.uint32(8).uint64(e.nodeId),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.com.hedera.hapi.node.addressbook.NodeDeleteTransactionBody;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.nodeId=e.uint64();else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.hedera.hapi.node.addressbook.NodeDeleteTransactionBody"},e}(),e}(),e.state=function(){const e={};return e.history=function(){const e={};return e.ProofKeySet=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.adoptionTime=null,e.prototype.key=$util.newBuffer([]),e.prototype.nextKey=$util.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.adoptionTime&&Object.hasOwnProperty.call(e,"adoptionTime")&&$root.proto.Timestamp.encode(e.adoptionTime,t.uint32(18).fork()).ldelim(),null!=e.key&&Object.hasOwnProperty.call(e,"key")&&t.uint32(26).bytes(e.key),null!=e.nextKey&&Object.hasOwnProperty.call(e,"nextKey")&&t.uint32(34).bytes(e.nextKey),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.com.hedera.hapi.node.state.history.ProofKeySet;e.pos<r;){var n=e.uint32();switch(n>>>3){case 2:o.adoptionTime=$root.proto.Timestamp.decode(e,e.uint32());break;case 3:o.key=e.bytes();break;case 4:o.nextKey=e.bytes();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.hedera.hapi.node.state.history.ProofKeySet"},e}(),e.ProofKey=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.nodeId=$util.Long?$util.Long.fromBits(0,0,!0):0,e.prototype.key=$util.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.nodeId&&Object.hasOwnProperty.call(e,"nodeId")&&t.uint32(8).uint64(e.nodeId),null!=e.key&&Object.hasOwnProperty.call(e,"key")&&t.uint32(18).bytes(e.key),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.com.hedera.hapi.node.state.history.ProofKey;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.nodeId=e.uint64();break;case 2:o.key=e.bytes();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.hedera.hapi.node.state.history.ProofKey"},e}(),e.History=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.addressBookHash=$util.newBuffer([]),e.prototype.metadata=$util.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.addressBookHash&&Object.hasOwnProperty.call(e,"addressBookHash")&&t.uint32(10).bytes(e.addressBookHash),null!=e.metadata&&Object.hasOwnProperty.call(e,"metadata")&&t.uint32(18).bytes(e.metadata),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.com.hedera.hapi.node.state.history.History;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.addressBookHash=e.bytes();break;case 2:o.metadata=e.bytes();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.hedera.hapi.node.state.history.History"},e}(),e.HistoryProof=function(){function e(e){if(this.targetProofKeys=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.sourceAddressBookHash=$util.newBuffer([]),e.prototype.targetProofKeys=$util.emptyArray,e.prototype.targetHistory=null,e.prototype.proof=$util.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.sourceAddressBookHash&&Object.hasOwnProperty.call(e,"sourceAddressBookHash")&&t.uint32(10).bytes(e.sourceAddressBookHash),null!=e.targetProofKeys&&e.targetProofKeys.length)for(var r=0;r<e.targetProofKeys.length;++r)$root.com.hedera.hapi.node.state.history.ProofKey.encode(e.targetProofKeys[r],t.uint32(18).fork()).ldelim();return null!=e.targetHistory&&Object.hasOwnProperty.call(e,"targetHistory")&&$root.com.hedera.hapi.node.state.history.History.encode(e.targetHistory,t.uint32(26).fork()).ldelim(),null!=e.proof&&Object.hasOwnProperty.call(e,"proof")&&t.uint32(34).bytes(e.proof),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.com.hedera.hapi.node.state.history.HistoryProof;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.sourceAddressBookHash=e.bytes();break;case 2:o.targetProofKeys&&o.targetProofKeys.length||(o.targetProofKeys=[]),o.targetProofKeys.push($root.com.hedera.hapi.node.state.history.ProofKey.decode(e,e.uint32()));break;case 3:o.targetHistory=$root.com.hedera.hapi.node.state.history.History.decode(e,e.uint32());break;case 4:o.proof=e.bytes();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.hedera.hapi.node.state.history.HistoryProof"},e}(),e.HistoryProofConstruction=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.constructionId=$util.Long?$util.Long.fromBits(0,0,!0):0,e.prototype.sourceRosterHash=$util.newBuffer([]),e.prototype.sourceProof=null,e.prototype.targetRosterHash=$util.newBuffer([]),e.prototype.gracePeriodEndTime=null,e.prototype.assemblyStartTime=null,e.prototype.targetProof=null,Object.defineProperty(e.prototype,"proofState",{get:$util.oneOfGetter(t=["gracePeriodEndTime","assemblyStartTime","targetProof"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.constructionId&&Object.hasOwnProperty.call(e,"constructionId")&&t.uint32(8).uint64(e.constructionId),null!=e.sourceRosterHash&&Object.hasOwnProperty.call(e,"sourceRosterHash")&&t.uint32(18).bytes(e.sourceRosterHash),null!=e.sourceProof&&Object.hasOwnProperty.call(e,"sourceProof")&&$root.com.hedera.hapi.node.state.history.HistoryProof.encode(e.sourceProof,t.uint32(26).fork()).ldelim(),null!=e.targetRosterHash&&Object.hasOwnProperty.call(e,"targetRosterHash")&&t.uint32(34).bytes(e.targetRosterHash),null!=e.gracePeriodEndTime&&Object.hasOwnProperty.call(e,"gracePeriodEndTime")&&$root.proto.Timestamp.encode(e.gracePeriodEndTime,t.uint32(42).fork()).ldelim(),null!=e.assemblyStartTime&&Object.hasOwnProperty.call(e,"assemblyStartTime")&&$root.proto.Timestamp.encode(e.assemblyStartTime,t.uint32(50).fork()).ldelim(),null!=e.targetProof&&Object.hasOwnProperty.call(e,"targetProof")&&$root.com.hedera.hapi.node.state.history.HistoryProof.encode(e.targetProof,t.uint32(58).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.com.hedera.hapi.node.state.history.HistoryProofConstruction;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.constructionId=e.uint64();break;case 2:o.sourceRosterHash=e.bytes();break;case 3:o.sourceProof=$root.com.hedera.hapi.node.state.history.HistoryProof.decode(e,e.uint32());break;case 4:o.targetRosterHash=e.bytes();break;case 5:o.gracePeriodEndTime=$root.proto.Timestamp.decode(e,e.uint32());break;case 6:o.assemblyStartTime=$root.proto.Timestamp.decode(e,e.uint32());break;case 7:o.targetProof=$root.com.hedera.hapi.node.state.history.HistoryProof.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.hedera.hapi.node.state.history.HistoryProofConstruction"},e}(),e.ConstructionNodeId=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.constructionId=$util.Long?$util.Long.fromBits(0,0,!0):0,e.prototype.nodeId=$util.Long?$util.Long.fromBits(0,0,!0):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.constructionId&&Object.hasOwnProperty.call(e,"constructionId")&&t.uint32(8).uint64(e.constructionId),null!=e.nodeId&&Object.hasOwnProperty.call(e,"nodeId")&&t.uint32(16).uint64(e.nodeId),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.com.hedera.hapi.node.state.history.ConstructionNodeId;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.constructionId=e.uint64();break;case 2:o.nodeId=e.uint64();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.hedera.hapi.node.state.history.ConstructionNodeId"},e}(),e.HistoryProofVote=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.proof=null,e.prototype.congruentNodeId=null,Object.defineProperty(e.prototype,"vote",{get:$util.oneOfGetter(t=["proof","congruentNodeId"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.proof&&Object.hasOwnProperty.call(e,"proof")&&$root.com.hedera.hapi.node.state.history.HistoryProof.encode(e.proof,t.uint32(10).fork()).ldelim(),null!=e.congruentNodeId&&Object.hasOwnProperty.call(e,"congruentNodeId")&&t.uint32(16).uint64(e.congruentNodeId),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.com.hedera.hapi.node.state.history.HistoryProofVote;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.proof=$root.com.hedera.hapi.node.state.history.HistoryProof.decode(e,e.uint32());break;case 2:o.congruentNodeId=e.uint64();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.hedera.hapi.node.state.history.HistoryProofVote"},e}(),e.HistorySignature=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.history=null,e.prototype.signature=$util.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.history&&Object.hasOwnProperty.call(e,"history")&&$root.com.hedera.hapi.node.state.history.History.encode(e.history,t.uint32(10).fork()).ldelim(),null!=e.signature&&Object.hasOwnProperty.call(e,"signature")&&t.uint32(18).bytes(e.signature),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.com.hedera.hapi.node.state.history.HistorySignature;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.history=$root.com.hedera.hapi.node.state.history.History.decode(e,e.uint32());break;case 2:o.signature=e.bytes();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.hedera.hapi.node.state.history.HistorySignature"},e}(),e.RecordedHistorySignature=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.signingTime=null,e.prototype.historySignature=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.signingTime&&Object.hasOwnProperty.call(e,"signingTime")&&$root.proto.Timestamp.encode(e.signingTime,t.uint32(10).fork()).ldelim(),null!=e.historySignature&&Object.hasOwnProperty.call(e,"historySignature")&&$root.com.hedera.hapi.node.state.history.HistorySignature.encode(e.historySignature,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.com.hedera.hapi.node.state.history.RecordedHistorySignature;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.signingTime=$root.proto.Timestamp.decode(e,e.uint32());break;case 2:o.historySignature=$root.com.hedera.hapi.node.state.history.HistorySignature.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.hedera.hapi.node.state.history.RecordedHistorySignature"},e}(),e}(),e}(),e}(),e.platform=function(){const e={};return e.event=function(){const e={};return e.EventConsensusData=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.consensusTimestamp=null,e.prototype.consensusOrder=$util.Long?$util.Long.fromBits(0,0,!0):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.consensusTimestamp&&Object.hasOwnProperty.call(e,"consensusTimestamp")&&$root.proto.Timestamp.encode(e.consensusTimestamp,t.uint32(10).fork()).ldelim(),null!=e.consensusOrder&&Object.hasOwnProperty.call(e,"consensusOrder")&&t.uint32(16).uint64(e.consensusOrder),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.com.hedera.hapi.platform.event.EventConsensusData;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.consensusTimestamp=$root.proto.Timestamp.decode(e,e.uint32());break;case 2:o.consensusOrder=e.uint64();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.hedera.hapi.platform.event.EventConsensusData"},e}(),e.EventCore=function(){function e(e){if(this.parents=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.creatorNodeId=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.birthRound=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.timeCreated=null,e.prototype.parents=$util.emptyArray,e.prototype.version=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.creatorNodeId&&Object.hasOwnProperty.call(e,"creatorNodeId")&&t.uint32(8).int64(e.creatorNodeId),null!=e.birthRound&&Object.hasOwnProperty.call(e,"birthRound")&&t.uint32(16).int64(e.birthRound),null!=e.timeCreated&&Object.hasOwnProperty.call(e,"timeCreated")&&$root.proto.Timestamp.encode(e.timeCreated,t.uint32(26).fork()).ldelim(),null!=e.parents&&e.parents.length)for(var r=0;r<e.parents.length;++r)$root.com.hedera.hapi.platform.event.EventDescriptor.encode(e.parents[r],t.uint32(34).fork()).ldelim();return null!=e.version&&Object.hasOwnProperty.call(e,"version")&&$root.proto.SemanticVersion.encode(e.version,t.uint32(138).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.com.hedera.hapi.platform.event.EventCore;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.creatorNodeId=e.int64();break;case 2:o.birthRound=e.int64();break;case 3:o.timeCreated=$root.proto.Timestamp.decode(e,e.uint32());break;case 4:o.parents&&o.parents.length||(o.parents=[]),o.parents.push($root.com.hedera.hapi.platform.event.EventDescriptor.decode(e,e.uint32()));break;case 17:o.version=$root.proto.SemanticVersion.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.hedera.hapi.platform.event.EventCore"},e}(),e.EventDescriptor=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.hash=$util.newBuffer([]),e.prototype.creatorNodeId=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.birthRound=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.generation=$util.Long?$util.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.hash&&Object.hasOwnProperty.call(e,"hash")&&t.uint32(10).bytes(e.hash),null!=e.creatorNodeId&&Object.hasOwnProperty.call(e,"creatorNodeId")&&t.uint32(16).int64(e.creatorNodeId),null!=e.birthRound&&Object.hasOwnProperty.call(e,"birthRound")&&t.uint32(24).int64(e.birthRound),null!=e.generation&&Object.hasOwnProperty.call(e,"generation")&&t.uint32(136).int64(e.generation),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.com.hedera.hapi.platform.event.EventDescriptor;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.hash=e.bytes();break;case 2:o.creatorNodeId=e.int64();break;case 3:o.birthRound=e.int64();break;case 17:o.generation=e.int64();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.hedera.hapi.platform.event.EventDescriptor"},e}(),e.EventTransaction=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.applicationTransaction=null,e.prototype.stateSignatureTransaction=null,Object.defineProperty(e.prototype,"transaction",{get:$util.oneOfGetter(t=["applicationTransaction","stateSignatureTransaction"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.applicationTransaction&&Object.hasOwnProperty.call(e,"applicationTransaction")&&t.uint32(10).bytes(e.applicationTransaction),null!=e.stateSignatureTransaction&&Object.hasOwnProperty.call(e,"stateSignatureTransaction")&&$root.com.hedera.hapi.platform.event.StateSignatureTransaction.encode(e.stateSignatureTransaction,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.com.hedera.hapi.platform.event.EventTransaction;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.applicationTransaction=e.bytes();break;case 2:o.stateSignatureTransaction=$root.com.hedera.hapi.platform.event.StateSignatureTransaction.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.hedera.hapi.platform.event.EventTransaction"},e}(),e.GossipEvent=function(){function e(e){if(this.eventTransaction=[],this.transactions=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.eventCore=null,e.prototype.signature=$util.newBuffer([]),e.prototype.eventTransaction=$util.emptyArray,e.prototype.transactions=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.eventCore&&Object.hasOwnProperty.call(e,"eventCore")&&$root.com.hedera.hapi.platform.event.EventCore.encode(e.eventCore,t.uint32(10).fork()).ldelim(),null!=e.signature&&Object.hasOwnProperty.call(e,"signature")&&t.uint32(18).bytes(e.signature),null!=e.eventTransaction&&e.eventTransaction.length)for(var r=0;r<e.eventTransaction.length;++r)$root.com.hedera.hapi.platform.event.EventTransaction.encode(e.eventTransaction[r],t.uint32(26).fork()).ldelim();if(null!=e.transactions&&e.transactions.length)for(r=0;r<e.transactions.length;++r)t.uint32(34).bytes(e.transactions[r]);return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.com.hedera.hapi.platform.event.GossipEvent;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.eventCore=$root.com.hedera.hapi.platform.event.EventCore.decode(e,e.uint32());break;case 2:o.signature=e.bytes();break;case 3:o.eventTransaction&&o.eventTransaction.length||(o.eventTransaction=[]),o.eventTransaction.push($root.com.hedera.hapi.platform.event.EventTransaction.decode(e,e.uint32()));break;case 4:o.transactions&&o.transactions.length||(o.transactions=[]),o.transactions.push(e.bytes());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.hedera.hapi.platform.event.GossipEvent"},e}(),e.StateSignatureTransaction=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.round=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.signature=$util.newBuffer([]),e.prototype.hash=$util.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.round&&Object.hasOwnProperty.call(e,"round")&&t.uint32(8).int64(e.round),null!=e.signature&&Object.hasOwnProperty.call(e,"signature")&&t.uint32(18).bytes(e.signature),null!=e.hash&&Object.hasOwnProperty.call(e,"hash")&&t.uint32(26).bytes(e.hash),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.com.hedera.hapi.platform.event.StateSignatureTransaction;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.round=e.int64();break;case 2:o.signature=e.bytes();break;case 3:o.hash=e.bytes();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.hedera.hapi.platform.event.StateSignatureTransaction"},e}(),e}(),e}(),e.services=function(){const e={};return e.auxiliary=function(){const e={};return e.history=function(){const e={};return e.HistoryProofKeyPublicationTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.proofKey=$util.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.proofKey&&Object.hasOwnProperty.call(e,"proofKey")&&t.uint32(10).bytes(e.proofKey),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.com.hedera.hapi.services.auxiliary.history.HistoryProofKeyPublicationTransactionBody;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.proofKey=e.bytes();else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.hedera.hapi.services.auxiliary.history.HistoryProofKeyPublicationTransactionBody"},e}(),e.HistoryProofSignatureTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.constructionId=$util.Long?$util.Long.fromBits(0,0,!0):0,e.prototype.signature=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.constructionId&&Object.hasOwnProperty.call(e,"constructionId")&&t.uint32(8).uint64(e.constructionId),null!=e.signature&&Object.hasOwnProperty.call(e,"signature")&&$root.com.hedera.hapi.node.state.history.HistorySignature.encode(e.signature,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.com.hedera.hapi.services.auxiliary.history.HistoryProofSignatureTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.constructionId=e.uint64();break;case 2:o.signature=$root.com.hedera.hapi.node.state.history.HistorySignature.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.hedera.hapi.services.auxiliary.history.HistoryProofSignatureTransactionBody"},e}(),e.HistoryProofVoteTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.constructionId=$util.Long?$util.Long.fromBits(0,0,!0):0,e.prototype.vote=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.constructionId&&Object.hasOwnProperty.call(e,"constructionId")&&t.uint32(8).uint64(e.constructionId),null!=e.vote&&Object.hasOwnProperty.call(e,"vote")&&$root.com.hedera.hapi.node.state.history.HistoryProofVote.encode(e.vote,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.com.hedera.hapi.services.auxiliary.history.HistoryProofVoteTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.constructionId=e.uint64();break;case 2:o.vote=$root.com.hedera.hapi.node.state.history.HistoryProofVote.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.hedera.hapi.services.auxiliary.history.HistoryProofVoteTransactionBody"},e}(),e}(),e}(),e}(),e}(),e}(),e})(),proto.proto=$root.proto=(()=>{const e={};return e.TransactionList=function(){function e(e){if(this.transactionList=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.transactionList=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.transactionList&&e.transactionList.length)for(var r=0;r<e.transactionList.length;++r)$root.proto.Transaction.encode(e.transactionList[r],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TransactionList;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.transactionList&&o.transactionList.length||(o.transactionList=[]),o.transactionList.push($root.proto.Transaction.decode(e,e.uint32()));else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TransactionList"},e}(),e.AddressBookService=function(){function e(e,t,r){$protobuf$1.rpc.Service.call(this,e,t,r)}return(e.prototype=Object.create($protobuf$1.rpc.Service.prototype)).constructor=e,e.create=function(e,t,r){return new this(e,t,r)},Object.defineProperty(e.prototype.createNode=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"createNode"}),Object.defineProperty(e.prototype.deleteNode=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"deleteNode"}),Object.defineProperty(e.prototype.updateNode=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"updateNode"}),e}(),e.TransactionResponse=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.nodeTransactionPrecheckCode=0,e.prototype.cost=$util.Long?$util.Long.fromBits(0,0,!0):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.nodeTransactionPrecheckCode&&Object.hasOwnProperty.call(e,"nodeTransactionPrecheckCode")&&t.uint32(8).int32(e.nodeTransactionPrecheckCode),null!=e.cost&&Object.hasOwnProperty.call(e,"cost")&&t.uint32(16).uint64(e.cost),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TransactionResponse;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.nodeTransactionPrecheckCode=e.int32();break;case 2:o.cost=e.uint64();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TransactionResponse"},e}(),e.ResponseCodeEnum=function(){const e={},t=Object.create(e);return t[e[0]="OK"]=0,t[e[1]="INVALID_TRANSACTION"]=1,t[e[2]="PAYER_ACCOUNT_NOT_FOUND"]=2,t[e[3]="INVALID_NODE_ACCOUNT"]=3,t[e[4]="TRANSACTION_EXPIRED"]=4,t[e[5]="INVALID_TRANSACTION_START"]=5,t[e[6]="INVALID_TRANSACTION_DURATION"]=6,t[e[7]="INVALID_SIGNATURE"]=7,t[e[8]="MEMO_TOO_LONG"]=8,t[e[9]="INSUFFICIENT_TX_FEE"]=9,t[e[10]="INSUFFICIENT_PAYER_BALANCE"]=10,t[e[11]="DUPLICATE_TRANSACTION"]=11,t[e[12]="BUSY"]=12,t[e[13]="NOT_SUPPORTED"]=13,t[e[14]="INVALID_FILE_ID"]=14,t[e[15]="INVALID_ACCOUNT_ID"]=15,t[e[16]="INVALID_CONTRACT_ID"]=16,t[e[17]="INVALID_TRANSACTION_ID"]=17,t[e[18]="RECEIPT_NOT_FOUND"]=18,t[e[19]="RECORD_NOT_FOUND"]=19,t[e[20]="INVALID_SOLIDITY_ID"]=20,t[e[21]="UNKNOWN"]=21,t[e[22]="SUCCESS"]=22,t[e[23]="FAIL_INVALID"]=23,t[e[24]="FAIL_FEE"]=24,t[e[25]="FAIL_BALANCE"]=25,t[e[26]="KEY_REQUIRED"]=26,t[e[27]="BAD_ENCODING"]=27,t[e[28]="INSUFFICIENT_ACCOUNT_BALANCE"]=28,t[e[29]="INVALID_SOLIDITY_ADDRESS"]=29,t[e[30]="INSUFFICIENT_GAS"]=30,t[e[31]="CONTRACT_SIZE_LIMIT_EXCEEDED"]=31,t[e[32]="LOCAL_CALL_MODIFICATION_EXCEPTION"]=32,t[e[33]="CONTRACT_REVERT_EXECUTED"]=33,t[e[34]="CONTRACT_EXECUTION_EXCEPTION"]=34,t[e[35]="INVALID_RECEIVING_NODE_ACCOUNT"]=35,t[e[36]="MISSING_QUERY_HEADER"]=36,t[e[37]="ACCOUNT_UPDATE_FAILED"]=37,t[e[38]="INVALID_KEY_ENCODING"]=38,t[e[39]="NULL_SOLIDITY_ADDRESS"]=39,t[e[40]="CONTRACT_UPDATE_FAILED"]=40,t[e[41]="INVALID_QUERY_HEADER"]=41,t[e[42]="INVALID_FEE_SUBMITTED"]=42,t[e[43]="INVALID_PAYER_SIGNATURE"]=43,t[e[44]="KEY_NOT_PROVIDED"]=44,t[e[45]="INVALID_EXPIRATION_TIME"]=45,t[e[46]="NO_WACL_KEY"]=46,t[e[47]="FILE_CONTENT_EMPTY"]=47,t[e[48]="INVALID_ACCOUNT_AMOUNTS"]=48,t[e[49]="EMPTY_TRANSACTION_BODY"]=49,t[e[50]="INVALID_TRANSACTION_BODY"]=50,t[e[51]="INVALID_SIGNATURE_TYPE_MISMATCHING_KEY"]=51,t[e[52]="INVALID_SIGNATURE_COUNT_MISMATCHING_KEY"]=52,t[e[53]="EMPTY_LIVE_HASH_BODY"]=53,t[e[54]="EMPTY_LIVE_HASH"]=54,t[e[55]="EMPTY_LIVE_HASH_KEYS"]=55,t[e[56]="INVALID_LIVE_HASH_SIZE"]=56,t[e[57]="EMPTY_QUERY_BODY"]=57,t[e[58]="EMPTY_LIVE_HASH_QUERY"]=58,t[e[59]="LIVE_HASH_NOT_FOUND"]=59,t[e[60]="ACCOUNT_ID_DOES_NOT_EXIST"]=60,t[e[61]="LIVE_HASH_ALREADY_EXISTS"]=61,t[e[62]="INVALID_FILE_WACL"]=62,t[e[63]="SERIALIZATION_FAILED"]=63,t[e[64]="TRANSACTION_OVERSIZE"]=64,t[e[65]="TRANSACTION_TOO_MANY_LAYERS"]=65,t[e[66]="CONTRACT_DELETED"]=66,t[e[67]="PLATFORM_NOT_ACTIVE"]=67,t[e[68]="KEY_PREFIX_MISMATCH"]=68,t[e[69]="PLATFORM_TRANSACTION_NOT_CREATED"]=69,t[e[70]="INVALID_RENEWAL_PERIOD"]=70,t[e[71]="INVALID_PAYER_ACCOUNT_ID"]=71,t[e[72]="ACCOUNT_DELETED"]=72,t[e[73]="FILE_DELETED"]=73,t[e[74]="ACCOUNT_REPEATED_IN_ACCOUNT_AMOUNTS"]=74,t[e[75]="SETTING_NEGATIVE_ACCOUNT_BALANCE"]=75,t[e[76]="OBTAINER_REQUIRED"]=76,t[e[77]="OBTAINER_SAME_CONTRACT_ID"]=77,t[e[78]="OBTAINER_DOES_NOT_EXIST"]=78,t[e[79]="MODIFYING_IMMUTABLE_CONTRACT"]=79,t[e[80]="FILE_SYSTEM_EXCEPTION"]=80,t[e[81]="AUTORENEW_DURATION_NOT_IN_RANGE"]=81,t[e[82]="ERROR_DECODING_BYTESTRING"]=82,t[e[83]="CONTRACT_FILE_EMPTY"]=83,t[e[84]="CONTRACT_BYTECODE_EMPTY"]=84,t[e[85]="INVALID_INITIAL_BALANCE"]=85,t[e[86]="INVALID_RECEIVE_RECORD_THRESHOLD"]=86,t[e[87]="INVALID_SEND_RECORD_THRESHOLD"]=87,t[e[88]="ACCOUNT_IS_NOT_GENESIS_ACCOUNT"]=88,t[e[89]="PAYER_ACCOUNT_UNAUTHORIZED"]=89,t[e[90]="INVALID_FREEZE_TRANSACTION_BODY"]=90,t[e[91]="FREEZE_TRANSACTION_BODY_NOT_FOUND"]=91,t[e[92]="TRANSFER_LIST_SIZE_LIMIT_EXCEEDED"]=92,t[e[93]="RESULT_SIZE_LIMIT_EXCEEDED"]=93,t[e[94]="NOT_SPECIAL_ACCOUNT"]=94,t[e[95]="CONTRACT_NEGATIVE_GAS"]=95,t[e[96]="CONTRACT_NEGATIVE_VALUE"]=96,t[e[97]="INVALID_FEE_FILE"]=97,t[e[98]="INVALID_EXCHANGE_RATE_FILE"]=98,t[e[99]="INSUFFICIENT_LOCAL_CALL_GAS"]=99,t[e[100]="ENTITY_NOT_ALLOWED_TO_DELETE"]=100,t[e[101]="AUTHORIZATION_FAILED"]=101,t[e[102]="FILE_UPLOADED_PROTO_INVALID"]=102,t[e[103]="FILE_UPLOADED_PROTO_NOT_SAVED_TO_DISK"]=103,t[e[104]="FEE_SCHEDULE_FILE_PART_UPLOADED"]=104,t[e[105]="EXCHANGE_RATE_CHANGE_LIMIT_EXCEEDED"]=105,t[e[106]="MAX_CONTRACT_STORAGE_EXCEEDED"]=106,t[e[107]="TRANSFER_ACCOUNT_SAME_AS_DELETE_ACCOUNT"]=107,t[e[108]="TOTAL_LEDGER_BALANCE_INVALID"]=108,t[e[110]="EXPIRATION_REDUCTION_NOT_ALLOWED"]=110,t[e[111]="MAX_GAS_LIMIT_EXCEEDED"]=111,t[e[112]="MAX_FILE_SIZE_EXCEEDED"]=112,t[e[113]="RECEIVER_SIG_REQUIRED"]=113,t[e[150]="INVALID_TOPIC_ID"]=150,t[e[155]="INVALID_ADMIN_KEY"]=155,t[e[156]="INVALID_SUBMIT_KEY"]=156,t[e[157]="UNAUTHORIZED"]=157,t[e[158]="INVALID_TOPIC_MESSAGE"]=158,t[e[159]="INVALID_AUTORENEW_ACCOUNT"]=159,t[e[160]="AUTORENEW_ACCOUNT_NOT_ALLOWED"]=160,t[e[162]="TOPIC_EXPIRED"]=162,t[e[163]="INVALID_CHUNK_NUMBER"]=163,t[e[164]="INVALID_CHUNK_TRANSACTION_ID"]=164,t[e[165]="ACCOUNT_FROZEN_FOR_TOKEN"]=165,t[e[166]="TOKENS_PER_ACCOUNT_LIMIT_EXCEEDED"]=166,t[e[167]="INVALID_TOKEN_ID"]=167,t[e[168]="INVALID_TOKEN_DECIMALS"]=168,t[e[169]="INVALID_TOKEN_INITIAL_SUPPLY"]=169,t[e[170]="INVALID_TREASURY_ACCOUNT_FOR_TOKEN"]=170,t[e[171]="INVALID_TOKEN_SYMBOL"]=171,t[e[172]="TOKEN_HAS_NO_FREEZE_KEY"]=172,t[e[173]="TRANSFERS_NOT_ZERO_SUM_FOR_TOKEN"]=173,t[e[174]="MISSING_TOKEN_SYMBOL"]=174,t[e[175]="TOKEN_SYMBOL_TOO_LONG"]=175,t[e[176]="ACCOUNT_KYC_NOT_GRANTED_FOR_TOKEN"]=176,t[e[177]="TOKEN_HAS_NO_KYC_KEY"]=177,t[e[178]="INSUFFICIENT_TOKEN_BALANCE"]=178,t[e[179]="TOKEN_WAS_DELETED"]=179,t[e[180]="TOKEN_HAS_NO_SUPPLY_KEY"]=180,t[e[181]="TOKEN_HAS_NO_WIPE_KEY"]=181,t[e[182]="INVALID_TOKEN_MINT_AMOUNT"]=182,t[e[183]="INVALID_TOKEN_BURN_AMOUNT"]=183,t[e[184]="TOKEN_NOT_ASSOCIATED_TO_ACCOUNT"]=184,t[e[185]="CANNOT_WIPE_TOKEN_TREASURY_ACCOUNT"]=185,t[e[186]="INVALID_KYC_KEY"]=186,t[e[187]="INVALID_WIPE_KEY"]=187,t[e[188]="INVALID_FREEZE_KEY"]=188,t[e[189]="INVALID_SUPPLY_KEY"]=189,t[e[190]="MISSING_TOKEN_NAME"]=190,t[e[191]="TOKEN_NAME_TOO_LONG"]=191,t[e[192]="INVALID_WIPING_AMOUNT"]=192,t[e[193]="TOKEN_IS_IMMUTABLE"]=193,t[e[194]="TOKEN_ALREADY_ASSOCIATED_TO_ACCOUNT"]=194,t[e[195]="TRANSACTION_REQUIRES_ZERO_TOKEN_BALANCES"]=195,t[e[196]="ACCOUNT_IS_TREASURY"]=196,t[e[197]="TOKEN_ID_REPEATED_IN_TOKEN_LIST"]=197,t[e[198]="TOKEN_TRANSFER_LIST_SIZE_LIMIT_EXCEEDED"]=198,t[e[199]="EMPTY_TOKEN_TRANSFER_BODY"]=199,t[e[200]="EMPTY_TOKEN_TRANSFER_ACCOUNT_AMOUNTS"]=200,t[e[201]="INVALID_SCHEDULE_ID"]=201,t[e[202]="SCHEDULE_IS_IMMUTABLE"]=202,t[e[203]="INVALID_SCHEDULE_PAYER_ID"]=203,t[e[204]="INVALID_SCHEDULE_ACCOUNT_ID"]=204,t[e[205]="NO_NEW_VALID_SIGNATURES"]=205,t[e[206]="UNRESOLVABLE_REQUIRED_SIGNERS"]=206,t[e[207]="SCHEDULED_TRANSACTION_NOT_IN_WHITELIST"]=207,t[e[208]="SOME_SIGNATURES_WERE_INVALID"]=208,t[e[209]="TRANSACTION_ID_FIELD_NOT_ALLOWED"]=209,t[e[210]="IDENTICAL_SCHEDULE_ALREADY_CREATED"]=210,t[e[211]="INVALID_ZERO_BYTE_IN_STRING"]=211,t[e[212]="SCHEDULE_ALREADY_DELETED"]=212,t[e[213]="SCHEDULE_ALREADY_EXECUTED"]=213,t[e[214]="MESSAGE_SIZE_TOO_LARGE"]=214,t[e[215]="OPERATION_REPEATED_IN_BUCKET_GROUPS"]=215,t[e[216]="BUCKET_CAPACITY_OVERFLOW"]=216,t[e[217]="NODE_CAPACITY_NOT_SUFFICIENT_FOR_OPERATION"]=217,t[e[218]="BUCKET_HAS_NO_THROTTLE_GROUPS"]=218,t[e[219]="THROTTLE_GROUP_HAS_ZERO_OPS_PER_SEC"]=219,t[e[220]="SUCCESS_BUT_MISSING_EXPECTED_OPERATION"]=220,t[e[221]="UNPARSEABLE_THROTTLE_DEFINITIONS"]=221,t[e[222]="INVALID_THROTTLE_DEFINITIONS"]=222,t[e[223]="ACCOUNT_EXPIRED_AND_PENDING_REMOVAL"]=223,t[e[224]="INVALID_TOKEN_MAX_SUPPLY"]=224,t[e[225]="INVALID_TOKEN_NFT_SERIAL_NUMBER"]=225,t[e[226]="INVALID_NFT_ID"]=226,t[e[227]="METADATA_TOO_LONG"]=227,t[e[228]="BATCH_SIZE_LIMIT_EXCEEDED"]=228,t[e[229]="INVALID_QUERY_RANGE"]=229,t[e[230]="FRACTION_DIVIDES_BY_ZERO"]=230,t[e[231]="INSUFFICIENT_PAYER_BALANCE_FOR_CUSTOM_FEE"]=231,t[e[232]="CUSTOM_FEES_LIST_TOO_LONG"]=232,t[e[233]="INVALID_CUSTOM_FEE_COLLECTOR"]=233,t[e[234]="INVALID_TOKEN_ID_IN_CUSTOM_FEES"]=234,t[e[235]="TOKEN_NOT_ASSOCIATED_TO_FEE_COLLECTOR"]=235,t[e[236]="TOKEN_MAX_SUPPLY_REACHED"]=236,t[e[237]="SENDER_DOES_NOT_OWN_NFT_SERIAL_NO"]=237,t[e[238]="CUSTOM_FEE_NOT_FULLY_SPECIFIED"]=238,t[e[239]="CUSTOM_FEE_MUST_BE_POSITIVE"]=239,t[e[240]="TOKEN_HAS_NO_FEE_SCHEDULE_KEY"]=240,t[e[241]="CUSTOM_FEE_OUTSIDE_NUMERIC_RANGE"]=241,t[e[242]="ROYALTY_FRACTION_CANNOT_EXCEED_ONE"]=242,t[e[243]="FRACTIONAL_FEE_MAX_AMOUNT_LESS_THAN_MIN_AMOUNT"]=243,t[e[244]="CUSTOM_SCHEDULE_ALREADY_HAS_NO_FEES"]=244,t[e[245]="CUSTOM_FEE_DENOMINATION_MUST_BE_FUNGIBLE_COMMON"]=245,t[e[246]="CUSTOM_FRACTIONAL_FEE_ONLY_ALLOWED_FOR_FUNGIBLE_COMMON"]=246,t[e[247]="INVALID_CUSTOM_FEE_SCHEDULE_KEY"]=247,t[e[248]="INVALID_TOKEN_MINT_METADATA"]=248,t[e[249]="INVALID_TOKEN_BURN_METADATA"]=249,t[e[250]="CURRENT_TREASURY_STILL_OWNS_NFTS"]=250,t[e[251]="ACCOUNT_STILL_OWNS_NFTS"]=251,t[e[252]="TREASURY_MUST_OWN_BURNED_NFT"]=252,t[e[253]="ACCOUNT_DOES_NOT_OWN_WIPED_NFT"]=253,t[e[254]="ACCOUNT_AMOUNT_TRANSFERS_ONLY_ALLOWED_FOR_FUNGIBLE_COMMON"]=254,t[e[255]="MAX_NFTS_IN_PRICE_REGIME_HAVE_BEEN_MINTED"]=255,t[e[256]="PAYER_ACCOUNT_DELETED"]=256,t[e[257]="CUSTOM_FEE_CHARGING_EXCEEDED_MAX_RECURSION_DEPTH"]=257,t[e[258]="CUSTOM_FEE_CHARGING_EXCEEDED_MAX_ACCOUNT_AMOUNTS"]=258,t[e[259]="INSUFFICIENT_SENDER_ACCOUNT_BALANCE_FOR_CUSTOM_FEE"]=259,t[e[260]="SERIAL_NUMBER_LIMIT_REACHED"]=260,t[e[261]="CUSTOM_ROYALTY_FEE_ONLY_ALLOWED_FOR_NON_FUNGIBLE_UNIQUE"]=261,t[e[262]="NO_REMAINING_AUTOMATIC_ASSOCIATIONS"]=262,t[e[263]="EXISTING_AUTOMATIC_ASSOCIATIONS_EXCEED_GIVEN_LIMIT"]=263,t[e[264]="REQUESTED_NUM_AUTOMATIC_ASSOCIATIONS_EXCEEDS_ASSOCIATION_LIMIT"]=264,t[e[265]="TOKEN_IS_PAUSED"]=265,t[e[266]="TOKEN_HAS_NO_PAUSE_KEY"]=266,t[e[267]="INVALID_PAUSE_KEY"]=267,t[e[268]="FREEZE_UPDATE_FILE_DOES_NOT_EXIST"]=268,t[e[269]="FREEZE_UPDATE_FILE_HASH_DOES_NOT_MATCH"]=269,t[e[270]="NO_UPGRADE_HAS_BEEN_PREPARED"]=270,t[e[271]="NO_FREEZE_IS_SCHEDULED"]=271,t[e[272]="UPDATE_FILE_HASH_CHANGED_SINCE_PREPARE_UPGRADE"]=272,t[e[273]="FREEZE_START_TIME_MUST_BE_FUTURE"]=273,t[e[274]="PREPARED_UPDATE_FILE_IS_IMMUTABLE"]=274,t[e[275]="FREEZE_ALREADY_SCHEDULED"]=275,t[e[276]="FREEZE_UPGRADE_IN_PROGRESS"]=276,t[e[277]="UPDATE_FILE_ID_DOES_NOT_MATCH_PREPARED"]=277,t[e[278]="UPDATE_FILE_HASH_DOES_NOT_MATCH_PREPARED"]=278,t[e[279]="CONSENSUS_GAS_EXHAUSTED"]=279,t[e[280]="REVERTED_SUCCESS"]=280,t[e[281]="MAX_STORAGE_IN_PRICE_REGIME_HAS_BEEN_USED"]=281,t[e[282]="INVALID_ALIAS_KEY"]=282,t[e[283]="UNEXPECTED_TOKEN_DECIMALS"]=283,t[e[284]="INVALID_PROXY_ACCOUNT_ID"]=284,t[e[285]="INVALID_TRANSFER_ACCOUNT_ID"]=285,t[e[286]="INVALID_FEE_COLLECTOR_ACCOUNT_ID"]=286,t[e[287]="ALIAS_IS_IMMUTABLE"]=287,t[e[288]="SPENDER_ACCOUNT_SAME_AS_OWNER"]=288,t[e[289]="AMOUNT_EXCEEDS_TOKEN_MAX_SUPPLY"]=289,t[e[290]="NEGATIVE_ALLOWANCE_AMOUNT"]=290,t[e[291]="CANNOT_APPROVE_FOR_ALL_FUNGIBLE_COMMON"]=291,t[e[292]="SPENDER_DOES_NOT_HAVE_ALLOWANCE"]=292,t[e[293]="AMOUNT_EXCEEDS_ALLOWANCE"]=293,t[e[294]="MAX_ALLOWANCES_EXCEEDED"]=294,t[e[295]="EMPTY_ALLOWANCES"]=295,t[e[296]="SPENDER_ACCOUNT_REPEATED_IN_ALLOWANCES"]=296,t[e[297]="REPEATED_SERIAL_NUMS_IN_NFT_ALLOWANCES"]=297,t[e[298]="FUNGIBLE_TOKEN_IN_NFT_ALLOWANCES"]=298,t[e[299]="NFT_IN_FUNGIBLE_TOKEN_ALLOWANCES"]=299,t[e[300]="INVALID_ALLOWANCE_OWNER_ID"]=300,t[e[301]="INVALID_ALLOWANCE_SPENDER_ID"]=301,t[e[302]="REPEATED_ALLOWANCES_TO_DELETE"]=302,t[e[303]="INVALID_DELEGATING_SPENDER"]=303,t[e[304]="DELEGATING_SPENDER_CANNOT_GRANT_APPROVE_FOR_ALL"]=304,t[e[305]="DELEGATING_SPENDER_DOES_NOT_HAVE_APPROVE_FOR_ALL"]=305,t[e[306]="SCHEDULE_EXPIRATION_TIME_TOO_FAR_IN_FUTURE"]=306,t[e[307]="SCHEDULE_EXPIRATION_TIME_MUST_BE_HIGHER_THAN_CONSENSUS_TIME"]=307,t[e[308]="SCHEDULE_FUTURE_THROTTLE_EXCEEDED"]=308,t[e[309]="SCHEDULE_FUTURE_GAS_LIMIT_EXCEEDED"]=309,t[e[310]="INVALID_ETHEREUM_TRANSACTION"]=310,t[e[311]="WRONG_CHAIN_ID"]=311,t[e[312]="WRONG_NONCE"]=312,t[e[313]="ACCESS_LIST_UNSUPPORTED"]=313,t[e[314]="SCHEDULE_PENDING_EXPIRATION"]=314,t[e[315]="CONTRACT_IS_TOKEN_TREASURY"]=315,t[e[316]="CONTRACT_HAS_NON_ZERO_TOKEN_BALANCES"]=316,t[e[317]="CONTRACT_EXPIRED_AND_PENDING_REMOVAL"]=317,t[e[318]="CONTRACT_HAS_NO_AUTO_RENEW_ACCOUNT"]=318,t[e[319]="PERMANENT_REMOVAL_REQUIRES_SYSTEM_INITIATION"]=319,t[e[320]="PROXY_ACCOUNT_ID_FIELD_IS_DEPRECATED"]=320,t[e[321]="SELF_STAKING_IS_NOT_ALLOWED"]=321,t[e[322]="INVALID_STAKING_ID"]=322,t[e[323]="STAKING_NOT_ENABLED"]=323,t[e[324]="INVALID_PRNG_RANGE"]=324,t[e[325]="MAX_ENTITIES_IN_PRICE_REGIME_HAVE_BEEN_CREATED"]=325,t[e[326]="INVALID_FULL_PREFIX_SIGNATURE_FOR_PRECOMPILE"]=326,t[e[327]="INSUFFICIENT_BALANCES_FOR_STORAGE_RENT"]=327,t[e[328]="MAX_CHILD_RECORDS_EXCEEDED"]=328,t[e[329]="INSUFFICIENT_BALANCES_FOR_RENEWAL_FEES"]=329,t[e[330]="TRANSACTION_HAS_UNKNOWN_FIELDS"]=330,t[e[331]="ACCOUNT_IS_IMMUTABLE"]=331,t[e[332]="ALIAS_ALREADY_ASSIGNED"]=332,t[e[333]="INVALID_METADATA_KEY"]=333,t[e[334]="TOKEN_HAS_NO_METADATA_KEY"]=334,t[e[335]="MISSING_TOKEN_METADATA"]=335,t[e[336]="MISSING_SERIAL_NUMBERS"]=336,t[e[337]="TOKEN_HAS_NO_ADMIN_KEY"]=337,t[e[338]="NODE_DELETED"]=338,t[e[339]="INVALID_NODE_ID"]=339,t[e[340]="INVALID_GOSSIP_ENDPOINT"]=340,t[e[341]="INVALID_NODE_ACCOUNT_ID"]=341,t[e[342]="INVALID_NODE_DESCRIPTION"]=342,t[e[343]="INVALID_SERVICE_ENDPOINT"]=343,t[e[344]="INVALID_GOSSIP_CA_CERTIFICATE"]=344,t[e[345]="INVALID_GRPC_CERTIFICATE"]=345,t[e[346]="INVALID_MAX_AUTO_ASSOCIATIONS"]=346,t[e[347]="MAX_NODES_CREATED"]=347,t[e[348]="IP_FQDN_CANNOT_BE_SET_FOR_SAME_ENDPOINT"]=348,t[e[349]="GOSSIP_ENDPOINT_CANNOT_HAVE_FQDN"]=349,t[e[350]="FQDN_SIZE_TOO_LARGE"]=350,t[e[351]="INVALID_ENDPOINT"]=351,t[e[352]="GOSSIP_ENDPOINTS_EXCEEDED_LIMIT"]=352,t[e[353]="TOKEN_REFERENCE_REPEATED"]=353,t[e[354]="INVALID_OWNER_ID"]=354,t[e[355]="TOKEN_REFERENCE_LIST_SIZE_LIMIT_EXCEEDED"]=355,t[e[356]="SERVICE_ENDPOINTS_EXCEEDED_LIMIT"]=356,t[e[357]="INVALID_IPV4_ADDRESS"]=357,t[e[358]="EMPTY_TOKEN_REFERENCE_LIST"]=358,t[e[359]="UPDATE_NODE_ACCOUNT_NOT_ALLOWED"]=359,t[e[360]="TOKEN_HAS_NO_METADATA_OR_SUPPLY_KEY"]=360,t[e[361]="EMPTY_PENDING_AIRDROP_ID_LIST"]=361,t[e[362]="PENDING_AIRDROP_ID_REPEATED"]=362,t[e[363]="PENDING_AIRDROP_ID_LIST_TOO_LONG"]=363,t[e[364]="PENDING_NFT_AIRDROP_ALREADY_EXISTS"]=364,t[e[365]="ACCOUNT_HAS_PENDING_AIRDROPS"]=365,t[e[366]="THROTTLED_AT_CONSENSUS"]=366,t[e[367]="INVALID_PENDING_AIRDROP_ID"]=367,t[e[368]="TOKEN_AIRDROP_WITH_FALLBACK_ROYALTY"]=368,t[e[369]="INVALID_TOKEN_IN_PENDING_AIRDROP"]=369,t[e[370]="SCHEDULE_EXPIRY_IS_BUSY"]=370,t[e[371]="INVALID_GRPC_CERTIFICATE_HASH"]=371,t[e[372]="MISSING_EXPIRY_TIME"]=372,t[e[373]="NO_SCHEDULING_ALLOWED_AFTER_SCHEDULED_RECURSION"]=373,t[e[374]="RECURSIVE_SCHEDULING_LIMIT_REACHED"]=374,t[e[375]="WAITING_FOR_LEDGER_ID"]=375,t[e[376]="MAX_ENTRIES_FOR_FEE_EXEMPT_KEY_LIST_EXCEEDED"]=376,t[e[377]="FEE_EXEMPT_KEY_LIST_CONTAINS_DUPLICATED_KEYS"]=377,t[e[378]="INVALID_KEY_IN_FEE_EXEMPT_KEY_LIST"]=378,t[e[379]="INVALID_FEE_SCHEDULE_KEY"]=379,t[e[380]="FEE_SCHEDULE_KEY_CANNOT_BE_UPDATED"]=380,t[e[381]="FEE_SCHEDULE_KEY_NOT_SET"]=381,t[e[382]="MAX_CUSTOM_FEE_LIMIT_EXCEEDED"]=382,t[e[383]="NO_VALID_MAX_CUSTOM_FEE"]=383,t[e[384]="INVALID_MAX_CUSTOM_FEES"]=384,t[e[385]="DUPLICATE_DENOMINATION_IN_MAX_CUSTOM_FEE_LIST"]=385,t[e[386]="DUPLICATE_ACCOUNT_ID_IN_MAX_CUSTOM_FEE_LIST"]=386,t[e[387]="MAX_CUSTOM_FEES_IS_NOT_SUPPORTED"]=387,t}(),e.Transaction=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.body=null,e.prototype.sigs=null,e.prototype.sigMap=null,e.prototype.bodyBytes=$util.newBuffer([]),e.prototype.signedTransactionBytes=$util.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.body&&Object.hasOwnProperty.call(e,"body")&&$root.proto.TransactionBody.encode(e.body,t.uint32(10).fork()).ldelim(),null!=e.sigs&&Object.hasOwnProperty.call(e,"sigs")&&$root.proto.SignatureList.encode(e.sigs,t.uint32(18).fork()).ldelim(),null!=e.sigMap&&Object.hasOwnProperty.call(e,"sigMap")&&$root.proto.SignatureMap.encode(e.sigMap,t.uint32(26).fork()).ldelim(),null!=e.bodyBytes&&Object.hasOwnProperty.call(e,"bodyBytes")&&t.uint32(34).bytes(e.bodyBytes),null!=e.signedTransactionBytes&&Object.hasOwnProperty.call(e,"signedTransactionBytes")&&t.uint32(42).bytes(e.signedTransactionBytes),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.Transaction;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.body=$root.proto.TransactionBody.decode(e,e.uint32());break;case 2:o.sigs=$root.proto.SignatureList.decode(e,e.uint32());break;case 3:o.sigMap=$root.proto.SignatureMap.decode(e,e.uint32());break;case 4:o.bodyBytes=e.bytes();break;case 5:o.signedTransactionBytes=e.bytes();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.Transaction"},e}(),e.TransactionBody=function(){function e(e){if(this.maxCustomFees=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.transactionID=null,e.prototype.nodeAccountID=null,e.prototype.transactionFee=$util.Long?$util.Long.fromBits(0,0,!0):0,e.prototype.transactionValidDuration=null,e.prototype.generateRecord=!1,e.prototype.memo="",e.prototype.contractCall=null,e.prototype.contractCreateInstance=null,e.prototype.contractUpdateInstance=null,e.prototype.cryptoAddLiveHash=null,e.prototype.cryptoCreateAccount=null,e.prototype.cryptoDelete=null,e.prototype.cryptoDeleteLiveHash=null,e.prototype.cryptoTransfer=null,e.prototype.cryptoUpdateAccount=null,e.prototype.fileAppend=null,e.prototype.fileCreate=null,e.prototype.fileDelete=null,e.prototype.fileUpdate=null,e.prototype.systemDelete=null,e.prototype.systemUndelete=null,e.prototype.contractDeleteInstance=null,e.prototype.freeze=null,e.prototype.consensusCreateTopic=null,e.prototype.consensusUpdateTopic=null,e.prototype.consensusDeleteTopic=null,e.prototype.consensusSubmitMessage=null,e.prototype.uncheckedSubmit=null,e.prototype.tokenCreation=null,e.prototype.tokenFreeze=null,e.prototype.tokenUnfreeze=null,e.prototype.tokenGrantKyc=null,e.prototype.tokenRevokeKyc=null,e.prototype.tokenDeletion=null,e.prototype.tokenUpdate=null,e.prototype.tokenMint=null,e.prototype.tokenBurn=null,e.prototype.tokenWipe=null,e.prototype.tokenAssociate=null,e.prototype.tokenDissociate=null,e.prototype.scheduleCreate=null,e.prototype.scheduleDelete=null,e.prototype.scheduleSign=null,e.prototype.tokenFeeScheduleUpdate=null,e.prototype.tokenPause=null,e.prototype.tokenUnpause=null,e.prototype.cryptoApproveAllowance=null,e.prototype.cryptoDeleteAllowance=null,e.prototype.ethereumTransaction=null,e.prototype.nodeStakeUpdate=null,e.prototype.utilPrng=null,e.prototype.tokenUpdateNfts=null,e.prototype.nodeCreate=null,e.prototype.nodeUpdate=null,e.prototype.nodeDelete=null,e.prototype.tokenReject=null,e.prototype.tokenAirdrop=null,e.prototype.tokenCancelAirdrop=null,e.prototype.tokenClaimAirdrop=null,e.prototype.stateSignatureTransaction=null,e.prototype.historyProofSignature=null,e.prototype.historyProofKeyPublication=null,e.prototype.historyProofVote=null,e.prototype.maxCustomFees=$util.emptyArray,Object.defineProperty(e.prototype,"data",{get:$util.oneOfGetter(t=["contractCall","contractCreateInstance","contractUpdateInstance","cryptoAddLiveHash","cryptoCreateAccount","cryptoDelete","cryptoDeleteLiveHash","cryptoTransfer","cryptoUpdateAccount","fileAppend","fileCreate","fileDelete","fileUpdate","systemDelete","systemUndelete","contractDeleteInstance","freeze","consensusCreateTopic","consensusUpdateTopic","consensusDeleteTopic","consensusSubmitMessage","uncheckedSubmit","tokenCreation","tokenFreeze","tokenUnfreeze","tokenGrantKyc","tokenRevokeKyc","tokenDeletion","tokenUpdate","tokenMint","tokenBurn","tokenWipe","tokenAssociate","tokenDissociate","scheduleCreate","scheduleDelete","scheduleSign","tokenFeeScheduleUpdate","tokenPause","tokenUnpause","cryptoApproveAllowance","cryptoDeleteAllowance","ethereumTransaction","nodeStakeUpdate","utilPrng","tokenUpdateNfts","nodeCreate","nodeUpdate","nodeDelete","tokenReject","tokenAirdrop","tokenCancelAirdrop","tokenClaimAirdrop","stateSignatureTransaction","historyProofSignature","historyProofKeyPublication","historyProofVote"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.transactionID&&Object.hasOwnProperty.call(e,"transactionID")&&$root.proto.TransactionID.encode(e.transactionID,t.uint32(10).fork()).ldelim(),null!=e.nodeAccountID&&Object.hasOwnProperty.call(e,"nodeAccountID")&&$root.proto.AccountID.encode(e.nodeAccountID,t.uint32(18).fork()).ldelim(),null!=e.transactionFee&&Object.hasOwnProperty.call(e,"transactionFee")&&t.uint32(24).uint64(e.transactionFee),null!=e.transactionValidDuration&&Object.hasOwnProperty.call(e,"transactionValidDuration")&&$root.proto.Duration.encode(e.transactionValidDuration,t.uint32(34).fork()).ldelim(),null!=e.generateRecord&&Object.hasOwnProperty.call(e,"generateRecord")&&t.uint32(40).bool(e.generateRecord),null!=e.memo&&Object.hasOwnProperty.call(e,"memo")&&t.uint32(50).string(e.memo),null!=e.contractCall&&Object.hasOwnProperty.call(e,"contractCall")&&$root.proto.ContractCallTransactionBody.encode(e.contractCall,t.uint32(58).fork()).ldelim(),null!=e.contractCreateInstance&&Object.hasOwnProperty.call(e,"contractCreateInstance")&&$root.proto.ContractCreateTransactionBody.encode(e.contractCreateInstance,t.uint32(66).fork()).ldelim(),null!=e.contractUpdateInstance&&Object.hasOwnProperty.call(e,"contractUpdateInstance")&&$root.proto.ContractUpdateTransactionBody.encode(e.contractUpdateInstance,t.uint32(74).fork()).ldelim(),null!=e.cryptoAddLiveHash&&Object.hasOwnProperty.call(e,"cryptoAddLiveHash")&&$root.proto.CryptoAddLiveHashTransactionBody.encode(e.cryptoAddLiveHash,t.uint32(82).fork()).ldelim(),null!=e.cryptoCreateAccount&&Object.hasOwnProperty.call(e,"cryptoCreateAccount")&&$root.proto.CryptoCreateTransactionBody.encode(e.cryptoCreateAccount,t.uint32(90).fork()).ldelim(),null!=e.cryptoDelete&&Object.hasOwnProperty.call(e,"cryptoDelete")&&$root.proto.CryptoDeleteTransactionBody.encode(e.cryptoDelete,t.uint32(98).fork()).ldelim(),null!=e.cryptoDeleteLiveHash&&Object.hasOwnProperty.call(e,"cryptoDeleteLiveHash")&&$root.proto.CryptoDeleteLiveHashTransactionBody.encode(e.cryptoDeleteLiveHash,t.uint32(106).fork()).ldelim(),null!=e.cryptoTransfer&&Object.hasOwnProperty.call(e,"cryptoTransfer")&&$root.proto.CryptoTransferTransactionBody.encode(e.cryptoTransfer,t.uint32(114).fork()).ldelim(),null!=e.cryptoUpdateAccount&&Object.hasOwnProperty.call(e,"cryptoUpdateAccount")&&$root.proto.CryptoUpdateTransactionBody.encode(e.cryptoUpdateAccount,t.uint32(122).fork()).ldelim(),null!=e.fileAppend&&Object.hasOwnProperty.call(e,"fileAppend")&&$root.proto.FileAppendTransactionBody.encode(e.fileAppend,t.uint32(130).fork()).ldelim(),null!=e.fileCreate&&Object.hasOwnProperty.call(e,"fileCreate")&&$root.proto.FileCreateTransactionBody.encode(e.fileCreate,t.uint32(138).fork()).ldelim(),null!=e.fileDelete&&Object.hasOwnProperty.call(e,"fileDelete")&&$root.proto.FileDeleteTransactionBody.encode(e.fileDelete,t.uint32(146).fork()).ldelim(),null!=e.fileUpdate&&Object.hasOwnProperty.call(e,"fileUpdate")&&$root.proto.FileUpdateTransactionBody.encode(e.fileUpdate,t.uint32(154).fork()).ldelim(),null!=e.systemDelete&&Object.hasOwnProperty.call(e,"systemDelete")&&$root.proto.SystemDeleteTransactionBody.encode(e.systemDelete,t.uint32(162).fork()).ldelim(),null!=e.systemUndelete&&Object.hasOwnProperty.call(e,"systemUndelete")&&$root.proto.SystemUndeleteTransactionBody.encode(e.systemUndelete,t.uint32(170).fork()).ldelim(),null!=e.contractDeleteInstance&&Object.hasOwnProperty.call(e,"contractDeleteInstance")&&$root.proto.ContractDeleteTransactionBody.encode(e.contractDeleteInstance,t.uint32(178).fork()).ldelim(),null!=e.freeze&&Object.hasOwnProperty.call(e,"freeze")&&$root.proto.FreezeTransactionBody.encode(e.freeze,t.uint32(186).fork()).ldelim(),null!=e.consensusCreateTopic&&Object.hasOwnProperty.call(e,"consensusCreateTopic")&&$root.proto.ConsensusCreateTopicTransactionBody.encode(e.consensusCreateTopic,t.uint32(194).fork()).ldelim(),null!=e.consensusUpdateTopic&&Object.hasOwnProperty.call(e,"consensusUpdateTopic")&&$root.proto.ConsensusUpdateTopicTransactionBody.encode(e.consensusUpdateTopic,t.uint32(202).fork()).ldelim(),null!=e.consensusDeleteTopic&&Object.hasOwnProperty.call(e,"consensusDeleteTopic")&&$root.proto.ConsensusDeleteTopicTransactionBody.encode(e.consensusDeleteTopic,t.uint32(210).fork()).ldelim(),null!=e.consensusSubmitMessage&&Object.hasOwnProperty.call(e,"consensusSubmitMessage")&&$root.proto.ConsensusSubmitMessageTransactionBody.encode(e.consensusSubmitMessage,t.uint32(218).fork()).ldelim(),null!=e.uncheckedSubmit&&Object.hasOwnProperty.call(e,"uncheckedSubmit")&&$root.proto.UncheckedSubmitBody.encode(e.uncheckedSubmit,t.uint32(226).fork()).ldelim(),null!=e.tokenCreation&&Object.hasOwnProperty.call(e,"tokenCreation")&&$root.proto.TokenCreateTransactionBody.encode(e.tokenCreation,t.uint32(234).fork()).ldelim(),null!=e.tokenFreeze&&Object.hasOwnProperty.call(e,"tokenFreeze")&&$root.proto.TokenFreezeAccountTransactionBody.encode(e.tokenFreeze,t.uint32(250).fork()).ldelim(),null!=e.tokenUnfreeze&&Object.hasOwnProperty.call(e,"tokenUnfreeze")&&$root.proto.TokenUnfreezeAccountTransactionBody.encode(e.tokenUnfreeze,t.uint32(258).fork()).ldelim(),null!=e.tokenGrantKyc&&Object.hasOwnProperty.call(e,"tokenGrantKyc")&&$root.proto.TokenGrantKycTransactionBody.encode(e.tokenGrantKyc,t.uint32(266).fork()).ldelim(),null!=e.tokenRevokeKyc&&Object.hasOwnProperty.call(e,"tokenRevokeKyc")&&$root.proto.TokenRevokeKycTransactionBody.encode(e.tokenRevokeKyc,t.uint32(274).fork()).ldelim(),null!=e.tokenDeletion&&Object.hasOwnProperty.call(e,"tokenDeletion")&&$root.proto.TokenDeleteTransactionBody.encode(e.tokenDeletion,t.uint32(282).fork()).ldelim(),null!=e.tokenUpdate&&Object.hasOwnProperty.call(e,"tokenUpdate")&&$root.proto.TokenUpdateTransactionBody.encode(e.tokenUpdate,t.uint32(290).fork()).ldelim(),null!=e.tokenMint&&Object.hasOwnProperty.call(e,"tokenMint")&&$root.proto.TokenMintTransactionBody.encode(e.tokenMint,t.uint32(298).fork()).ldelim(),null!=e.tokenBurn&&Object.hasOwnProperty.call(e,"tokenBurn")&&$root.proto.TokenBurnTransactionBody.encode(e.tokenBurn,t.uint32(306).fork()).ldelim(),null!=e.tokenWipe&&Object.hasOwnProperty.call(e,"tokenWipe")&&$root.proto.TokenWipeAccountTransactionBody.encode(e.tokenWipe,t.uint32(314).fork()).ldelim(),null!=e.tokenAssociate&&Object.hasOwnProperty.call(e,"tokenAssociate")&&$root.proto.TokenAssociateTransactionBody.encode(e.tokenAssociate,t.uint32(322).fork()).ldelim(),null!=e.tokenDissociate&&Object.hasOwnProperty.call(e,"tokenDissociate")&&$root.proto.TokenDissociateTransactionBody.encode(e.tokenDissociate,t.uint32(330).fork()).ldelim(),null!=e.scheduleCreate&&Object.hasOwnProperty.call(e,"scheduleCreate")&&$root.proto.ScheduleCreateTransactionBody.encode(e.scheduleCreate,t.uint32(338).fork()).ldelim(),null!=e.scheduleDelete&&Object.hasOwnProperty.call(e,"scheduleDelete")&&$root.proto.ScheduleDeleteTransactionBody.encode(e.scheduleDelete,t.uint32(346).fork()).ldelim(),null!=e.scheduleSign&&Object.hasOwnProperty.call(e,"scheduleSign")&&$root.proto.ScheduleSignTransactionBody.encode(e.scheduleSign,t.uint32(354).fork()).ldelim(),null!=e.tokenFeeScheduleUpdate&&Object.hasOwnProperty.call(e,"tokenFeeScheduleUpdate")&&$root.proto.TokenFeeScheduleUpdateTransactionBody.encode(e.tokenFeeScheduleUpdate,t.uint32(362).fork()).ldelim(),null!=e.tokenPause&&Object.hasOwnProperty.call(e,"tokenPause")&&$root.proto.TokenPauseTransactionBody.encode(e.tokenPause,t.uint32(370).fork()).ldelim(),null!=e.tokenUnpause&&Object.hasOwnProperty.call(e,"tokenUnpause")&&$root.proto.TokenUnpauseTransactionBody.encode(e.tokenUnpause,t.uint32(378).fork()).ldelim(),null!=e.cryptoApproveAllowance&&Object.hasOwnProperty.call(e,"cryptoApproveAllowance")&&$root.proto.CryptoApproveAllowanceTransactionBody.encode(e.cryptoApproveAllowance,t.uint32(386).fork()).ldelim(),null!=e.cryptoDeleteAllowance&&Object.hasOwnProperty.call(e,"cryptoDeleteAllowance")&&$root.proto.CryptoDeleteAllowanceTransactionBody.encode(e.cryptoDeleteAllowance,t.uint32(394).fork()).ldelim(),null!=e.ethereumTransaction&&Object.hasOwnProperty.call(e,"ethereumTransaction")&&$root.proto.EthereumTransactionBody.encode(e.ethereumTransaction,t.uint32(402).fork()).ldelim(),null!=e.nodeStakeUpdate&&Object.hasOwnProperty.call(e,"nodeStakeUpdate")&&$root.proto.NodeStakeUpdateTransactionBody.encode(e.nodeStakeUpdate,t.uint32(410).fork()).ldelim(),null!=e.utilPrng&&Object.hasOwnProperty.call(e,"utilPrng")&&$root.proto.UtilPrngTransactionBody.encode(e.utilPrng,t.uint32(418).fork()).ldelim(),null!=e.tokenUpdateNfts&&Object.hasOwnProperty.call(e,"tokenUpdateNfts")&&$root.proto.TokenUpdateNftsTransactionBody.encode(e.tokenUpdateNfts,t.uint32(426).fork()).ldelim(),null!=e.nodeCreate&&Object.hasOwnProperty.call(e,"nodeCreate")&&$root.com.hedera.hapi.node.addressbook.NodeCreateTransactionBody.encode(e.nodeCreate,t.uint32(434).fork()).ldelim(),null!=e.nodeUpdate&&Object.hasOwnProperty.call(e,"nodeUpdate")&&$root.com.hedera.hapi.node.addressbook.NodeUpdateTransactionBody.encode(e.nodeUpdate,t.uint32(442).fork()).ldelim(),null!=e.nodeDelete&&Object.hasOwnProperty.call(e,"nodeDelete")&&$root.com.hedera.hapi.node.addressbook.NodeDeleteTransactionBody.encode(e.nodeDelete,t.uint32(450).fork()).ldelim(),null!=e.tokenReject&&Object.hasOwnProperty.call(e,"tokenReject")&&$root.proto.TokenRejectTransactionBody.encode(e.tokenReject,t.uint32(458).fork()).ldelim(),null!=e.tokenAirdrop&&Object.hasOwnProperty.call(e,"tokenAirdrop")&&$root.proto.TokenAirdropTransactionBody.encode(e.tokenAirdrop,t.uint32(466).fork()).ldelim(),null!=e.tokenCancelAirdrop&&Object.hasOwnProperty.call(e,"tokenCancelAirdrop")&&$root.proto.TokenCancelAirdropTransactionBody.encode(e.tokenCancelAirdrop,t.uint32(474).fork()).ldelim(),null!=e.tokenClaimAirdrop&&Object.hasOwnProperty.call(e,"tokenClaimAirdrop")&&$root.proto.TokenClaimAirdropTransactionBody.encode(e.tokenClaimAirdrop,t.uint32(482).fork()).ldelim(),null!=e.stateSignatureTransaction&&Object.hasOwnProperty.call(e,"stateSignatureTransaction")&&$root.com.hedera.hapi.platform.event.StateSignatureTransaction.encode(e.stateSignatureTransaction,t.uint32(522).fork()).ldelim(),null!=e.historyProofSignature&&Object.hasOwnProperty.call(e,"historyProofSignature")&&$root.com.hedera.hapi.services.auxiliary.history.HistoryProofSignatureTransactionBody.encode(e.historyProofSignature,t.uint32(554).fork()).ldelim(),null!=e.historyProofKeyPublication&&Object.hasOwnProperty.call(e,"historyProofKeyPublication")&&$root.com.hedera.hapi.services.auxiliary.history.HistoryProofKeyPublicationTransactionBody.encode(e.historyProofKeyPublication,t.uint32(562).fork()).ldelim(),null!=e.historyProofVote&&Object.hasOwnProperty.call(e,"historyProofVote")&&$root.com.hedera.hapi.services.auxiliary.history.HistoryProofVoteTransactionBody.encode(e.historyProofVote,t.uint32(570).fork()).ldelim(),null!=e.maxCustomFees&&e.maxCustomFees.length)for(var r=0;r<e.maxCustomFees.length;++r)$root.proto.CustomFeeLimit.encode(e.maxCustomFees[r],t.uint32(8010).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.transactionID=$root.proto.TransactionID.decode(e,e.uint32());break;case 2:o.nodeAccountID=$root.proto.AccountID.decode(e,e.uint32());break;case 3:o.transactionFee=e.uint64();break;case 4:o.transactionValidDuration=$root.proto.Duration.decode(e,e.uint32());break;case 5:o.generateRecord=e.bool();break;case 6:o.memo=e.string();break;case 7:o.contractCall=$root.proto.ContractCallTransactionBody.decode(e,e.uint32());break;case 8:o.contractCreateInstance=$root.proto.ContractCreateTransactionBody.decode(e,e.uint32());break;case 9:o.contractUpdateInstance=$root.proto.ContractUpdateTransactionBody.decode(e,e.uint32());break;case 10:o.cryptoAddLiveHash=$root.proto.CryptoAddLiveHashTransactionBody.decode(e,e.uint32());break;case 11:o.cryptoCreateAccount=$root.proto.CryptoCreateTransactionBody.decode(e,e.uint32());break;case 12:o.cryptoDelete=$root.proto.CryptoDeleteTransactionBody.decode(e,e.uint32());break;case 13:o.cryptoDeleteLiveHash=$root.proto.CryptoDeleteLiveHashTransactionBody.decode(e,e.uint32());break;case 14:o.cryptoTransfer=$root.proto.CryptoTransferTransactionBody.decode(e,e.uint32());break;case 15:o.cryptoUpdateAccount=$root.proto.CryptoUpdateTransactionBody.decode(e,e.uint32());break;case 16:o.fileAppend=$root.proto.FileAppendTransactionBody.decode(e,e.uint32());break;case 17:o.fileCreate=$root.proto.FileCreateTransactionBody.decode(e,e.uint32());break;case 18:o.fileDelete=$root.proto.FileDeleteTransactionBody.decode(e,e.uint32());break;case 19:o.fileUpdate=$root.proto.FileUpdateTransactionBody.decode(e,e.uint32());break;case 20:o.systemDelete=$root.proto.SystemDeleteTransactionBody.decode(e,e.uint32());break;case 21:o.systemUndelete=$root.proto.SystemUndeleteTransactionBody.decode(e,e.uint32());break;case 22:o.contractDeleteInstance=$root.proto.ContractDeleteTransactionBody.decode(e,e.uint32());break;case 23:o.freeze=$root.proto.FreezeTransactionBody.decode(e,e.uint32());break;case 24:o.consensusCreateTopic=$root.proto.ConsensusCreateTopicTransactionBody.decode(e,e.uint32());break;case 25:o.consensusUpdateTopic=$root.proto.ConsensusUpdateTopicTransactionBody.decode(e,e.uint32());break;case 26:o.consensusDeleteTopic=$root.proto.ConsensusDeleteTopicTransactionBody.decode(e,e.uint32());break;case 27:o.consensusSubmitMessage=$root.proto.ConsensusSubmitMessageTransactionBody.decode(e,e.uint32());break;case 28:o.uncheckedSubmit=$root.proto.UncheckedSubmitBody.decode(e,e.uint32());break;case 29:o.tokenCreation=$root.proto.TokenCreateTransactionBody.decode(e,e.uint32());break;case 31:o.tokenFreeze=$root.proto.TokenFreezeAccountTransactionBody.decode(e,e.uint32());break;case 32:o.tokenUnfreeze=$root.proto.TokenUnfreezeAccountTransactionBody.decode(e,e.uint32());break;case 33:o.tokenGrantKyc=$root.proto.TokenGrantKycTransactionBody.decode(e,e.uint32());break;case 34:o.tokenRevokeKyc=$root.proto.TokenRevokeKycTransactionBody.decode(e,e.uint32());break;case 35:o.tokenDeletion=$root.proto.TokenDeleteTransactionBody.decode(e,e.uint32());break;case 36:o.tokenUpdate=$root.proto.TokenUpdateTransactionBody.decode(e,e.uint32());break;case 37:o.tokenMint=$root.proto.TokenMintTransactionBody.decode(e,e.uint32());break;case 38:o.tokenBurn=$root.proto.TokenBurnTransactionBody.decode(e,e.uint32());break;case 39:o.tokenWipe=$root.proto.TokenWipeAccountTransactionBody.decode(e,e.uint32());break;case 40:o.tokenAssociate=$root.proto.TokenAssociateTransactionBody.decode(e,e.uint32());break;case 41:o.tokenDissociate=$root.proto.TokenDissociateTransactionBody.decode(e,e.uint32());break;case 42:o.scheduleCreate=$root.proto.ScheduleCreateTransactionBody.decode(e,e.uint32());break;case 43:o.scheduleDelete=$root.proto.ScheduleDeleteTransactionBody.decode(e,e.uint32());break;case 44:o.scheduleSign=$root.proto.ScheduleSignTransactionBody.decode(e,e.uint32());break;case 45:o.tokenFeeScheduleUpdate=$root.proto.TokenFeeScheduleUpdateTransactionBody.decode(e,e.uint32());break;case 46:o.tokenPause=$root.proto.TokenPauseTransactionBody.decode(e,e.uint32());break;case 47:o.tokenUnpause=$root.proto.TokenUnpauseTransactionBody.decode(e,e.uint32());break;case 48:o.cryptoApproveAllowance=$root.proto.CryptoApproveAllowanceTransactionBody.decode(e,e.uint32());break;case 49:o.cryptoDeleteAllowance=$root.proto.CryptoDeleteAllowanceTransactionBody.decode(e,e.uint32());break;case 50:o.ethereumTransaction=$root.proto.EthereumTransactionBody.decode(e,e.uint32());break;case 51:o.nodeStakeUpdate=$root.proto.NodeStakeUpdateTransactionBody.decode(e,e.uint32());break;case 52:o.utilPrng=$root.proto.UtilPrngTransactionBody.decode(e,e.uint32());break;case 53:o.tokenUpdateNfts=$root.proto.TokenUpdateNftsTransactionBody.decode(e,e.uint32());break;case 54:o.nodeCreate=$root.com.hedera.hapi.node.addressbook.NodeCreateTransactionBody.decode(e,e.uint32());break;case 55:o.nodeUpdate=$root.com.hedera.hapi.node.addressbook.NodeUpdateTransactionBody.decode(e,e.uint32());break;case 56:o.nodeDelete=$root.com.hedera.hapi.node.addressbook.NodeDeleteTransactionBody.decode(e,e.uint32());break;case 57:o.tokenReject=$root.proto.TokenRejectTransactionBody.decode(e,e.uint32());break;case 58:o.tokenAirdrop=$root.proto.TokenAirdropTransactionBody.decode(e,e.uint32());break;case 59:o.tokenCancelAirdrop=$root.proto.TokenCancelAirdropTransactionBody.decode(e,e.uint32());break;case 60:o.tokenClaimAirdrop=$root.proto.TokenClaimAirdropTransactionBody.decode(e,e.uint32());break;case 65:o.stateSignatureTransaction=$root.com.hedera.hapi.platform.event.StateSignatureTransaction.decode(e,e.uint32());break;case 69:o.historyProofSignature=$root.com.hedera.hapi.services.auxiliary.history.HistoryProofSignatureTransactionBody.decode(e,e.uint32());break;case 70:o.historyProofKeyPublication=$root.com.hedera.hapi.services.auxiliary.history.HistoryProofKeyPublicationTransactionBody.decode(e,e.uint32());break;case 71:o.historyProofVote=$root.com.hedera.hapi.services.auxiliary.history.HistoryProofVoteTransactionBody.decode(e,e.uint32());break;case 1001:o.maxCustomFees&&o.maxCustomFees.length||(o.maxCustomFees=[]),o.maxCustomFees.push($root.proto.CustomFeeLimit.decode(e,e.uint32()));break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TransactionBody"},e}(),e.ShardID=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.shardNum=$util.Long?$util.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.shardNum&&Object.hasOwnProperty.call(e,"shardNum")&&t.uint32(8).int64(e.shardNum),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ShardID;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.shardNum=e.int64();else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ShardID"},e}(),e.RealmID=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.shardNum=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.realmNum=$util.Long?$util.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.shardNum&&Object.hasOwnProperty.call(e,"shardNum")&&t.uint32(8).int64(e.shardNum),null!=e.realmNum&&Object.hasOwnProperty.call(e,"realmNum")&&t.uint32(16).int64(e.realmNum),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.RealmID;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.shardNum=e.int64();break;case 2:o.realmNum=e.int64();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.RealmID"},e}(),e.TokenID=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.shardNum=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.realmNum=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.tokenNum=$util.Long?$util.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.shardNum&&Object.hasOwnProperty.call(e,"shardNum")&&t.uint32(8).int64(e.shardNum),null!=e.realmNum&&Object.hasOwnProperty.call(e,"realmNum")&&t.uint32(16).int64(e.realmNum),null!=e.tokenNum&&Object.hasOwnProperty.call(e,"tokenNum")&&t.uint32(24).int64(e.tokenNum),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenID;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.shardNum=e.int64();break;case 2:o.realmNum=e.int64();break;case 3:o.tokenNum=e.int64();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenID"},e}(),e.BlockHashAlgorithm=function(){const e={},t=Object.create(e);return t[e[0]="SHA2_384"]=0,t}(),e.AccountID=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.shardNum=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.realmNum=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.accountNum=null,e.prototype.alias=null,Object.defineProperty(e.prototype,"account",{get:$util.oneOfGetter(t=["accountNum","alias"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.shardNum&&Object.hasOwnProperty.call(e,"shardNum")&&t.uint32(8).int64(e.shardNum),null!=e.realmNum&&Object.hasOwnProperty.call(e,"realmNum")&&t.uint32(16).int64(e.realmNum),null!=e.accountNum&&Object.hasOwnProperty.call(e,"accountNum")&&t.uint32(24).int64(e.accountNum),null!=e.alias&&Object.hasOwnProperty.call(e,"alias")&&t.uint32(34).bytes(e.alias),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.AccountID;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.shardNum=e.int64();break;case 2:o.realmNum=e.int64();break;case 3:o.accountNum=e.int64();break;case 4:o.alias=e.bytes();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.AccountID"},e}(),e.NftID=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.token_ID=null,e.prototype.serialNumber=$util.Long?$util.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.token_ID&&Object.hasOwnProperty.call(e,"token_ID")&&$root.proto.TokenID.encode(e.token_ID,t.uint32(10).fork()).ldelim(),null!=e.serialNumber&&Object.hasOwnProperty.call(e,"serialNumber")&&t.uint32(16).int64(e.serialNumber),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.NftID;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.token_ID=$root.proto.TokenID.decode(e,e.uint32());break;case 2:o.serialNumber=e.int64();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.NftID"},e}(),e.FileID=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.shardNum=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.realmNum=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.fileNum=$util.Long?$util.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.shardNum&&Object.hasOwnProperty.call(e,"shardNum")&&t.uint32(8).int64(e.shardNum),null!=e.realmNum&&Object.hasOwnProperty.call(e,"realmNum")&&t.uint32(16).int64(e.realmNum),null!=e.fileNum&&Object.hasOwnProperty.call(e,"fileNum")&&t.uint32(24).int64(e.fileNum),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.FileID;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.shardNum=e.int64();break;case 2:o.realmNum=e.int64();break;case 3:o.fileNum=e.int64();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.FileID"},e}(),e.ContractID=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.shardNum=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.realmNum=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.contractNum=null,e.prototype.evmAddress=null,Object.defineProperty(e.prototype,"contract",{get:$util.oneOfGetter(t=["contractNum","evmAddress"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.shardNum&&Object.hasOwnProperty.call(e,"shardNum")&&t.uint32(8).int64(e.shardNum),null!=e.realmNum&&Object.hasOwnProperty.call(e,"realmNum")&&t.uint32(16).int64(e.realmNum),null!=e.contractNum&&Object.hasOwnProperty.call(e,"contractNum")&&t.uint32(24).int64(e.contractNum),null!=e.evmAddress&&Object.hasOwnProperty.call(e,"evmAddress")&&t.uint32(34).bytes(e.evmAddress),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ContractID;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.shardNum=e.int64();break;case 2:o.realmNum=e.int64();break;case 3:o.contractNum=e.int64();break;case 4:o.evmAddress=e.bytes();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ContractID"},e}(),e.TopicID=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.shardNum=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.realmNum=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.topicNum=$util.Long?$util.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.shardNum&&Object.hasOwnProperty.call(e,"shardNum")&&t.uint32(8).int64(e.shardNum),null!=e.realmNum&&Object.hasOwnProperty.call(e,"realmNum")&&t.uint32(16).int64(e.realmNum),null!=e.topicNum&&Object.hasOwnProperty.call(e,"topicNum")&&t.uint32(24).int64(e.topicNum),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TopicID;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.shardNum=e.int64();break;case 2:o.realmNum=e.int64();break;case 3:o.topicNum=e.int64();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TopicID"},e}(),e.ScheduleID=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.shardNum=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.realmNum=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.scheduleNum=$util.Long?$util.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.shardNum&&Object.hasOwnProperty.call(e,"shardNum")&&t.uint32(8).int64(e.shardNum),null!=e.realmNum&&Object.hasOwnProperty.call(e,"realmNum")&&t.uint32(16).int64(e.realmNum),null!=e.scheduleNum&&Object.hasOwnProperty.call(e,"scheduleNum")&&t.uint32(24).int64(e.scheduleNum),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ScheduleID;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.shardNum=e.int64();break;case 2:o.realmNum=e.int64();break;case 3:o.scheduleNum=e.int64();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ScheduleID"},e}(),e.TransactionID=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.transactionValidStart=null,e.prototype.accountID=null,e.prototype.scheduled=!1,e.prototype.nonce=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.transactionValidStart&&Object.hasOwnProperty.call(e,"transactionValidStart")&&$root.proto.Timestamp.encode(e.transactionValidStart,t.uint32(10).fork()).ldelim(),null!=e.accountID&&Object.hasOwnProperty.call(e,"accountID")&&$root.proto.AccountID.encode(e.accountID,t.uint32(18).fork()).ldelim(),null!=e.scheduled&&Object.hasOwnProperty.call(e,"scheduled")&&t.uint32(24).bool(e.scheduled),null!=e.nonce&&Object.hasOwnProperty.call(e,"nonce")&&t.uint32(32).int32(e.nonce),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TransactionID;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.transactionValidStart=$root.proto.Timestamp.decode(e,e.uint32());break;case 2:o.accountID=$root.proto.AccountID.decode(e,e.uint32());break;case 3:o.scheduled=e.bool();break;case 4:o.nonce=e.int32();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TransactionID"},e}(),e.AccountAmount=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.accountID=null,e.prototype.amount=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.isApproval=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.accountID&&Object.hasOwnProperty.call(e,"accountID")&&$root.proto.AccountID.encode(e.accountID,t.uint32(10).fork()).ldelim(),null!=e.amount&&Object.hasOwnProperty.call(e,"amount")&&t.uint32(16).sint64(e.amount),null!=e.isApproval&&Object.hasOwnProperty.call(e,"isApproval")&&t.uint32(24).bool(e.isApproval),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.AccountAmount;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.accountID=$root.proto.AccountID.decode(e,e.uint32());break;case 2:o.amount=e.sint64();break;case 3:o.isApproval=e.bool();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.AccountAmount"},e}(),e.TransferList=function(){function e(e){if(this.accountAmounts=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.accountAmounts=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.accountAmounts&&e.accountAmounts.length)for(var r=0;r<e.accountAmounts.length;++r)$root.proto.AccountAmount.encode(e.accountAmounts[r],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TransferList;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.accountAmounts&&o.accountAmounts.length||(o.accountAmounts=[]),o.accountAmounts.push($root.proto.AccountAmount.decode(e,e.uint32()));else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TransferList"},e}(),e.NftTransfer=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.senderAccountID=null,e.prototype.receiverAccountID=null,e.prototype.serialNumber=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.isApproval=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.senderAccountID&&Object.hasOwnProperty.call(e,"senderAccountID")&&$root.proto.AccountID.encode(e.senderAccountID,t.uint32(10).fork()).ldelim(),null!=e.receiverAccountID&&Object.hasOwnProperty.call(e,"receiverAccountID")&&$root.proto.AccountID.encode(e.receiverAccountID,t.uint32(18).fork()).ldelim(),null!=e.serialNumber&&Object.hasOwnProperty.call(e,"serialNumber")&&t.uint32(24).int64(e.serialNumber),null!=e.isApproval&&Object.hasOwnProperty.call(e,"isApproval")&&t.uint32(32).bool(e.isApproval),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.NftTransfer;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.senderAccountID=$root.proto.AccountID.decode(e,e.uint32());break;case 2:o.receiverAccountID=$root.proto.AccountID.decode(e,e.uint32());break;case 3:o.serialNumber=e.int64();break;case 4:o.isApproval=e.bool();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.NftTransfer"},e}(),e.TokenTransferList=function(){function e(e){if(this.transfers=[],this.nftTransfers=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.token=null,e.prototype.transfers=$util.emptyArray,e.prototype.nftTransfers=$util.emptyArray,e.prototype.expectedDecimals=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.token&&Object.hasOwnProperty.call(e,"token")&&$root.proto.TokenID.encode(e.token,t.uint32(10).fork()).ldelim(),null!=e.transfers&&e.transfers.length)for(var r=0;r<e.transfers.length;++r)$root.proto.AccountAmount.encode(e.transfers[r],t.uint32(18).fork()).ldelim();if(null!=e.nftTransfers&&e.nftTransfers.length)for(r=0;r<e.nftTransfers.length;++r)$root.proto.NftTransfer.encode(e.nftTransfers[r],t.uint32(26).fork()).ldelim();return null!=e.expectedDecimals&&Object.hasOwnProperty.call(e,"expectedDecimals")&&$root.google.protobuf.UInt32Value.encode(e.expectedDecimals,t.uint32(34).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenTransferList;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.token=$root.proto.TokenID.decode(e,e.uint32());break;case 2:o.transfers&&o.transfers.length||(o.transfers=[]),o.transfers.push($root.proto.AccountAmount.decode(e,e.uint32()));break;case 3:o.nftTransfers&&o.nftTransfers.length||(o.nftTransfers=[]),o.nftTransfers.push($root.proto.NftTransfer.decode(e,e.uint32()));break;case 4:o.expectedDecimals=$root.google.protobuf.UInt32Value.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenTransferList"},e}(),e.Fraction=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.numerator=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.denominator=$util.Long?$util.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.numerator&&Object.hasOwnProperty.call(e,"numerator")&&t.uint32(8).int64(e.numerator),null!=e.denominator&&Object.hasOwnProperty.call(e,"denominator")&&t.uint32(16).int64(e.denominator),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.Fraction;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.numerator=e.int64();break;case 2:o.denominator=e.int64();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.Fraction"},e}(),e.TokenType=function(){const e={},t=Object.create(e);return t[e[0]="FUNGIBLE_COMMON"]=0,t[e[1]="NON_FUNGIBLE_UNIQUE"]=1,t}(),e.SubType=function(){const e={},t=Object.create(e);return t[e[0]="DEFAULT"]=0,t[e[1]="TOKEN_FUNGIBLE_COMMON"]=1,t[e[2]="TOKEN_NON_FUNGIBLE_UNIQUE"]=2,t[e[3]="TOKEN_FUNGIBLE_COMMON_WITH_CUSTOM_FEES"]=3,t[e[4]="TOKEN_NON_FUNGIBLE_UNIQUE_WITH_CUSTOM_FEES"]=4,t[e[5]="SCHEDULE_CREATE_CONTRACT_CALL"]=5,t[e[6]="TOPIC_CREATE_WITH_CUSTOM_FEES"]=6,t}(),e.TokenSupplyType=function(){const e={},t=Object.create(e);return t[e[0]="INFINITE"]=0,t[e[1]="FINITE"]=1,t}(),e.TokenKeyValidation=function(){const e={},t=Object.create(e);return t[e[0]="FULL_VALIDATION"]=0,t[e[1]="NO_VALIDATION"]=1,t}(),e.TokenFreezeStatus=function(){const e={},t=Object.create(e);return t[e[0]="FreezeNotApplicable"]=0,t[e[1]="Frozen"]=1,t[e[2]="Unfrozen"]=2,t}(),e.TokenKycStatus=function(){const e={},t=Object.create(e);return t[e[0]="KycNotApplicable"]=0,t[e[1]="Granted"]=1,t[e[2]="Revoked"]=2,t}(),e.TokenPauseStatus=function(){const e={},t=Object.create(e);return t[e[0]="PauseNotApplicable"]=0,t[e[1]="Paused"]=1,t[e[2]="Unpaused"]=2,t}(),e.Key=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.contractID=null,e.prototype.ed25519=null,e.prototype.RSA_3072=null,e.prototype.ECDSA_384=null,e.prototype.thresholdKey=null,e.prototype.keyList=null,e.prototype.ECDSASecp256k1=null,e.prototype.delegatableContractId=null,Object.defineProperty(e.prototype,"key",{get:$util.oneOfGetter(t=["contractID","ed25519","RSA_3072","ECDSA_384","thresholdKey","keyList","ECDSASecp256k1","delegatableContractId"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.contractID&&Object.hasOwnProperty.call(e,"contractID")&&$root.proto.ContractID.encode(e.contractID,t.uint32(10).fork()).ldelim(),null!=e.ed25519&&Object.hasOwnProperty.call(e,"ed25519")&&t.uint32(18).bytes(e.ed25519),null!=e.RSA_3072&&Object.hasOwnProperty.call(e,"RSA_3072")&&t.uint32(26).bytes(e.RSA_3072),null!=e.ECDSA_384&&Object.hasOwnProperty.call(e,"ECDSA_384")&&t.uint32(34).bytes(e.ECDSA_384),null!=e.thresholdKey&&Object.hasOwnProperty.call(e,"thresholdKey")&&$root.proto.ThresholdKey.encode(e.thresholdKey,t.uint32(42).fork()).ldelim(),null!=e.keyList&&Object.hasOwnProperty.call(e,"keyList")&&$root.proto.KeyList.encode(e.keyList,t.uint32(50).fork()).ldelim(),null!=e.ECDSASecp256k1&&Object.hasOwnProperty.call(e,"ECDSASecp256k1")&&t.uint32(58).bytes(e.ECDSASecp256k1),null!=e.delegatableContractId&&Object.hasOwnProperty.call(e,"delegatableContractId")&&$root.proto.ContractID.encode(e.delegatableContractId,t.uint32(66).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.Key;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.contractID=$root.proto.ContractID.decode(e,e.uint32());break;case 2:o.ed25519=e.bytes();break;case 3:o.RSA_3072=e.bytes();break;case 4:o.ECDSA_384=e.bytes();break;case 5:o.thresholdKey=$root.proto.ThresholdKey.decode(e,e.uint32());break;case 6:o.keyList=$root.proto.KeyList.decode(e,e.uint32());break;case 7:o.ECDSASecp256k1=e.bytes();break;case 8:o.delegatableContractId=$root.proto.ContractID.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.Key"},e}(),e.ThresholdKey=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.threshold=0,e.prototype.keys=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.threshold&&Object.hasOwnProperty.call(e,"threshold")&&t.uint32(8).uint32(e.threshold),null!=e.keys&&Object.hasOwnProperty.call(e,"keys")&&$root.proto.KeyList.encode(e.keys,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ThresholdKey;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.threshold=e.uint32();break;case 2:o.keys=$root.proto.KeyList.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ThresholdKey"},e}(),e.KeyList=function(){function e(e){if(this.keys=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.keys=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.keys&&e.keys.length)for(var r=0;r<e.keys.length;++r)$root.proto.Key.encode(e.keys[r],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.KeyList;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.keys&&o.keys.length||(o.keys=[]),o.keys.push($root.proto.Key.decode(e,e.uint32()));else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.KeyList"},e}(),e.Signature=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.contract=null,e.prototype.ed25519=null,e.prototype.RSA_3072=null,e.prototype.ECDSA_384=null,e.prototype.thresholdSignature=null,e.prototype.signatureList=null,Object.defineProperty(e.prototype,"signature",{get:$util.oneOfGetter(t=["contract","ed25519","RSA_3072","ECDSA_384","thresholdSignature","signatureList"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.contract&&Object.hasOwnProperty.call(e,"contract")&&t.uint32(10).bytes(e.contract),null!=e.ed25519&&Object.hasOwnProperty.call(e,"ed25519")&&t.uint32(18).bytes(e.ed25519),null!=e.RSA_3072&&Object.hasOwnProperty.call(e,"RSA_3072")&&t.uint32(26).bytes(e.RSA_3072),null!=e.ECDSA_384&&Object.hasOwnProperty.call(e,"ECDSA_384")&&t.uint32(34).bytes(e.ECDSA_384),null!=e.thresholdSignature&&Object.hasOwnProperty.call(e,"thresholdSignature")&&$root.proto.ThresholdSignature.encode(e.thresholdSignature,t.uint32(42).fork()).ldelim(),null!=e.signatureList&&Object.hasOwnProperty.call(e,"signatureList")&&$root.proto.SignatureList.encode(e.signatureList,t.uint32(50).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.Signature;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.contract=e.bytes();break;case 2:o.ed25519=e.bytes();break;case 3:o.RSA_3072=e.bytes();break;case 4:o.ECDSA_384=e.bytes();break;case 5:o.thresholdSignature=$root.proto.ThresholdSignature.decode(e,e.uint32());break;case 6:o.signatureList=$root.proto.SignatureList.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.Signature"},e}(),e.ThresholdSignature=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.sigs=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.sigs&&Object.hasOwnProperty.call(e,"sigs")&&$root.proto.SignatureList.encode(e.sigs,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ThresholdSignature;e.pos<r;){var n=e.uint32();if(n>>>3==2)o.sigs=$root.proto.SignatureList.decode(e,e.uint32());else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ThresholdSignature"},e}(),e.SignatureList=function(){function e(e){if(this.sigs=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.sigs=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.sigs&&e.sigs.length)for(var r=0;r<e.sigs.length;++r)$root.proto.Signature.encode(e.sigs[r],t.uint32(18).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.SignatureList;e.pos<r;){var n=e.uint32();if(n>>>3==2)o.sigs&&o.sigs.length||(o.sigs=[]),o.sigs.push($root.proto.Signature.decode(e,e.uint32()));else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.SignatureList"},e}(),e.SignaturePair=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.pubKeyPrefix=$util.newBuffer([]),e.prototype.contract=null,e.prototype.ed25519=null,e.prototype.RSA_3072=null,e.prototype.ECDSA_384=null,e.prototype.ECDSASecp256k1=null,Object.defineProperty(e.prototype,"signature",{get:$util.oneOfGetter(t=["contract","ed25519","RSA_3072","ECDSA_384","ECDSASecp256k1"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.pubKeyPrefix&&Object.hasOwnProperty.call(e,"pubKeyPrefix")&&t.uint32(10).bytes(e.pubKeyPrefix),null!=e.contract&&Object.hasOwnProperty.call(e,"contract")&&t.uint32(18).bytes(e.contract),null!=e.ed25519&&Object.hasOwnProperty.call(e,"ed25519")&&t.uint32(26).bytes(e.ed25519),null!=e.RSA_3072&&Object.hasOwnProperty.call(e,"RSA_3072")&&t.uint32(34).bytes(e.RSA_3072),null!=e.ECDSA_384&&Object.hasOwnProperty.call(e,"ECDSA_384")&&t.uint32(42).bytes(e.ECDSA_384),null!=e.ECDSASecp256k1&&Object.hasOwnProperty.call(e,"ECDSASecp256k1")&&t.uint32(50).bytes(e.ECDSASecp256k1),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.SignaturePair;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.pubKeyPrefix=e.bytes();break;case 2:o.contract=e.bytes();break;case 3:o.ed25519=e.bytes();break;case 4:o.RSA_3072=e.bytes();break;case 5:o.ECDSA_384=e.bytes();break;case 6:o.ECDSASecp256k1=e.bytes();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.SignaturePair"},e}(),e.SignatureMap=function(){function e(e){if(this.sigPair=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.sigPair=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.sigPair&&e.sigPair.length)for(var r=0;r<e.sigPair.length;++r)$root.proto.SignaturePair.encode(e.sigPair[r],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.SignatureMap;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.sigPair&&o.sigPair.length||(o.sigPair=[]),o.sigPair.push($root.proto.SignaturePair.decode(e,e.uint32()));else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.SignatureMap"},e}(),e.HederaFunctionality=function(){const e={},t=Object.create(e);return t[e[0]="NONE"]=0,t[e[1]="CryptoTransfer"]=1,t[e[2]="CryptoUpdate"]=2,t[e[3]="CryptoDelete"]=3,t[e[4]="CryptoAddLiveHash"]=4,t[e[5]="CryptoDeleteLiveHash"]=5,t[e[6]="ContractCall"]=6,t[e[7]="ContractCreate"]=7,t[e[8]="ContractUpdate"]=8,t[e[9]="FileCreate"]=9,t[e[10]="FileAppend"]=10,t[e[11]="FileUpdate"]=11,t[e[12]="FileDelete"]=12,t[e[13]="CryptoGetAccountBalance"]=13,t[e[14]="CryptoGetAccountRecords"]=14,t[e[15]="CryptoGetInfo"]=15,t[e[16]="ContractCallLocal"]=16,t[e[17]="ContractGetInfo"]=17,t[e[18]="ContractGetBytecode"]=18,t[e[19]="GetBySolidityID"]=19,t[e[20]="GetByKey"]=20,t[e[21]="CryptoGetLiveHash"]=21,t[e[22]="CryptoGetStakers"]=22,t[e[23]="FileGetContents"]=23,t[e[24]="FileGetInfo"]=24,t[e[25]="TransactionGetRecord"]=25,t[e[26]="ContractGetRecords"]=26,t[e[27]="CryptoCreate"]=27,t[e[28]="SystemDelete"]=28,t[e[29]="SystemUndelete"]=29,t[e[30]="ContractDelete"]=30,t[e[31]="Freeze"]=31,t[e[32]="CreateTransactionRecord"]=32,t[e[33]="CryptoAccountAutoRenew"]=33,t[e[34]="ContractAutoRenew"]=34,t[e[35]="GetVersionInfo"]=35,t[e[36]="TransactionGetReceipt"]=36,t[e[50]="ConsensusCreateTopic"]=50,t[e[51]="ConsensusUpdateTopic"]=51,t[e[52]="ConsensusDeleteTopic"]=52,t[e[53]="ConsensusGetTopicInfo"]=53,t[e[54]="ConsensusSubmitMessage"]=54,t[e[55]="UncheckedSubmit"]=55,t[e[56]="TokenCreate"]=56,t[e[58]="TokenGetInfo"]=58,t[e[59]="TokenFreezeAccount"]=59,t[e[60]="TokenUnfreezeAccount"]=60,t[e[61]="TokenGrantKycToAccount"]=61,t[e[62]="TokenRevokeKycFromAccount"]=62,t[e[63]="TokenDelete"]=63,t[e[64]="TokenUpdate"]=64,t[e[65]="TokenMint"]=65,t[e[66]="TokenBurn"]=66,t[e[67]="TokenAccountWipe"]=67,t[e[68]="TokenAssociateToAccount"]=68,t[e[69]="TokenDissociateFromAccount"]=69,t[e[70]="ScheduleCreate"]=70,t[e[71]="ScheduleDelete"]=71,t[e[72]="ScheduleSign"]=72,t[e[73]="ScheduleGetInfo"]=73,t[e[74]="TokenGetAccountNftInfos"]=74,t[e[75]="TokenGetNftInfo"]=75,t[e[76]="TokenGetNftInfos"]=76,t[e[77]="TokenFeeScheduleUpdate"]=77,t[e[78]="NetworkGetExecutionTime"]=78,t[e[79]="TokenPause"]=79,t[e[80]="TokenUnpause"]=80,t[e[81]="CryptoApproveAllowance"]=81,t[e[82]="CryptoDeleteAllowance"]=82,t[e[83]="GetAccountDetails"]=83,t[e[84]="EthereumTransaction"]=84,t[e[85]="NodeStakeUpdate"]=85,t[e[86]="UtilPrng"]=86,t[e[87]="TransactionGetFastRecord"]=87,t[e[88]="TokenUpdateNfts"]=88,t[e[89]="NodeCreate"]=89,t[e[90]="NodeUpdate"]=90,t[e[91]="NodeDelete"]=91,t[e[92]="TokenReject"]=92,t[e[93]="TokenAirdrop"]=93,t[e[94]="TokenCancelAirdrop"]=94,t[e[95]="TokenClaimAirdrop"]=95,t[e[100]="StateSignatureTransaction"]=100,t[e[104]="HistoryAssemblySignature"]=104,t[e[105]="HistoryProofKeyPublication"]=105,t[e[106]="HistoryProofVote"]=106,t}(),e.FeeComponents=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.min=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.max=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.constant=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.bpt=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.vpt=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.rbh=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.sbh=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.gas=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.tv=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.bpr=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.sbpr=$util.Long?$util.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.min&&Object.hasOwnProperty.call(e,"min")&&t.uint32(8).int64(e.min),null!=e.max&&Object.hasOwnProperty.call(e,"max")&&t.uint32(16).int64(e.max),null!=e.constant&&Object.hasOwnProperty.call(e,"constant")&&t.uint32(24).int64(e.constant),null!=e.bpt&&Object.hasOwnProperty.call(e,"bpt")&&t.uint32(32).int64(e.bpt),null!=e.vpt&&Object.hasOwnProperty.call(e,"vpt")&&t.uint32(40).int64(e.vpt),null!=e.rbh&&Object.hasOwnProperty.call(e,"rbh")&&t.uint32(48).int64(e.rbh),null!=e.sbh&&Object.hasOwnProperty.call(e,"sbh")&&t.uint32(56).int64(e.sbh),null!=e.gas&&Object.hasOwnProperty.call(e,"gas")&&t.uint32(64).int64(e.gas),null!=e.tv&&Object.hasOwnProperty.call(e,"tv")&&t.uint32(72).int64(e.tv),null!=e.bpr&&Object.hasOwnProperty.call(e,"bpr")&&t.uint32(80).int64(e.bpr),null!=e.sbpr&&Object.hasOwnProperty.call(e,"sbpr")&&t.uint32(88).int64(e.sbpr),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.FeeComponents;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.min=e.int64();break;case 2:o.max=e.int64();break;case 3:o.constant=e.int64();break;case 4:o.bpt=e.int64();break;case 5:o.vpt=e.int64();break;case 6:o.rbh=e.int64();break;case 7:o.sbh=e.int64();break;case 8:o.gas=e.int64();break;case 9:o.tv=e.int64();break;case 10:o.bpr=e.int64();break;case 11:o.sbpr=e.int64();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.FeeComponents"},e}(),e.TransactionFeeSchedule=function(){function e(e){if(this.fees=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.hederaFunctionality=0,e.prototype.feeData=null,e.prototype.fees=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.hederaFunctionality&&Object.hasOwnProperty.call(e,"hederaFunctionality")&&t.uint32(8).int32(e.hederaFunctionality),null!=e.feeData&&Object.hasOwnProperty.call(e,"feeData")&&$root.proto.FeeData.encode(e.feeData,t.uint32(18).fork()).ldelim(),null!=e.fees&&e.fees.length)for(var r=0;r<e.fees.length;++r)$root.proto.FeeData.encode(e.fees[r],t.uint32(26).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TransactionFeeSchedule;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.hederaFunctionality=e.int32();break;case 2:o.feeData=$root.proto.FeeData.decode(e,e.uint32());break;case 3:o.fees&&o.fees.length||(o.fees=[]),o.fees.push($root.proto.FeeData.decode(e,e.uint32()));break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TransactionFeeSchedule"},e}(),e.FeeData=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.nodedata=null,e.prototype.networkdata=null,e.prototype.servicedata=null,e.prototype.subType=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.nodedata&&Object.hasOwnProperty.call(e,"nodedata")&&$root.proto.FeeComponents.encode(e.nodedata,t.uint32(10).fork()).ldelim(),null!=e.networkdata&&Object.hasOwnProperty.call(e,"networkdata")&&$root.proto.FeeComponents.encode(e.networkdata,t.uint32(18).fork()).ldelim(),null!=e.servicedata&&Object.hasOwnProperty.call(e,"servicedata")&&$root.proto.FeeComponents.encode(e.servicedata,t.uint32(26).fork()).ldelim(),null!=e.subType&&Object.hasOwnProperty.call(e,"subType")&&t.uint32(32).int32(e.subType),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.FeeData;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.nodedata=$root.proto.FeeComponents.decode(e,e.uint32());break;case 2:o.networkdata=$root.proto.FeeComponents.decode(e,e.uint32());break;case 3:o.servicedata=$root.proto.FeeComponents.decode(e,e.uint32());break;case 4:o.subType=e.int32();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.FeeData"},e}(),e.FeeSchedule=function(){function e(e){if(this.transactionFeeSchedule=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.transactionFeeSchedule=$util.emptyArray,e.prototype.expiryTime=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.transactionFeeSchedule&&e.transactionFeeSchedule.length)for(var r=0;r<e.transactionFeeSchedule.length;++r)$root.proto.TransactionFeeSchedule.encode(e.transactionFeeSchedule[r],t.uint32(10).fork()).ldelim();return null!=e.expiryTime&&Object.hasOwnProperty.call(e,"expiryTime")&&$root.proto.TimestampSeconds.encode(e.expiryTime,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.FeeSchedule;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.transactionFeeSchedule&&o.transactionFeeSchedule.length||(o.transactionFeeSchedule=[]),o.transactionFeeSchedule.push($root.proto.TransactionFeeSchedule.decode(e,e.uint32()));break;case 2:o.expiryTime=$root.proto.TimestampSeconds.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.FeeSchedule"},e}(),e.CurrentAndNextFeeSchedule=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.currentFeeSchedule=null,e.prototype.nextFeeSchedule=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.currentFeeSchedule&&Object.hasOwnProperty.call(e,"currentFeeSchedule")&&$root.proto.FeeSchedule.encode(e.currentFeeSchedule,t.uint32(10).fork()).ldelim(),null!=e.nextFeeSchedule&&Object.hasOwnProperty.call(e,"nextFeeSchedule")&&$root.proto.FeeSchedule.encode(e.nextFeeSchedule,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.CurrentAndNextFeeSchedule;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.currentFeeSchedule=$root.proto.FeeSchedule.decode(e,e.uint32());break;case 2:o.nextFeeSchedule=$root.proto.FeeSchedule.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.CurrentAndNextFeeSchedule"},e}(),e.ServiceEndpoint=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.ipAddressV4=$util.newBuffer([]),e.prototype.port=0,e.prototype.domainName="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.ipAddressV4&&Object.hasOwnProperty.call(e,"ipAddressV4")&&t.uint32(10).bytes(e.ipAddressV4),null!=e.port&&Object.hasOwnProperty.call(e,"port")&&t.uint32(16).int32(e.port),null!=e.domainName&&Object.hasOwnProperty.call(e,"domainName")&&t.uint32(26).string(e.domainName),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ServiceEndpoint;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.ipAddressV4=e.bytes();break;case 2:o.port=e.int32();break;case 3:o.domainName=e.string();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ServiceEndpoint"},e}(),e.NodeAddress=function(){function e(e){if(this.serviceEndpoint=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.ipAddress=$util.newBuffer([]),e.prototype.portno=0,e.prototype.memo=$util.newBuffer([]),e.prototype.RSA_PubKey="",e.prototype.nodeId=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.nodeAccountId=null,e.prototype.nodeCertHash=$util.newBuffer([]),e.prototype.serviceEndpoint=$util.emptyArray,e.prototype.description="",e.prototype.stake=$util.Long?$util.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.ipAddress&&Object.hasOwnProperty.call(e,"ipAddress")&&t.uint32(10).bytes(e.ipAddress),null!=e.portno&&Object.hasOwnProperty.call(e,"portno")&&t.uint32(16).int32(e.portno),null!=e.memo&&Object.hasOwnProperty.call(e,"memo")&&t.uint32(26).bytes(e.memo),null!=e.RSA_PubKey&&Object.hasOwnProperty.call(e,"RSA_PubKey")&&t.uint32(34).string(e.RSA_PubKey),null!=e.nodeId&&Object.hasOwnProperty.call(e,"nodeId")&&t.uint32(40).int64(e.nodeId),null!=e.nodeAccountId&&Object.hasOwnProperty.call(e,"nodeAccountId")&&$root.proto.AccountID.encode(e.nodeAccountId,t.uint32(50).fork()).ldelim(),null!=e.nodeCertHash&&Object.hasOwnProperty.call(e,"nodeCertHash")&&t.uint32(58).bytes(e.nodeCertHash),null!=e.serviceEndpoint&&e.serviceEndpoint.length)for(var r=0;r<e.serviceEndpoint.length;++r)$root.proto.ServiceEndpoint.encode(e.serviceEndpoint[r],t.uint32(66).fork()).ldelim();return null!=e.description&&Object.hasOwnProperty.call(e,"description")&&t.uint32(74).string(e.description),null!=e.stake&&Object.hasOwnProperty.call(e,"stake")&&t.uint32(80).int64(e.stake),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.NodeAddress;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.ipAddress=e.bytes();break;case 2:o.portno=e.int32();break;case 3:o.memo=e.bytes();break;case 4:o.RSA_PubKey=e.string();break;case 5:o.nodeId=e.int64();break;case 6:o.nodeAccountId=$root.proto.AccountID.decode(e,e.uint32());break;case 7:o.nodeCertHash=e.bytes();break;case 8:o.serviceEndpoint&&o.serviceEndpoint.length||(o.serviceEndpoint=[]),o.serviceEndpoint.push($root.proto.ServiceEndpoint.decode(e,e.uint32()));break;case 9:o.description=e.string();break;case 10:o.stake=e.int64();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.NodeAddress"},e}(),e.NodeAddressBook=function(){function e(e){if(this.nodeAddress=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.nodeAddress=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.nodeAddress&&e.nodeAddress.length)for(var r=0;r<e.nodeAddress.length;++r)$root.proto.NodeAddress.encode(e.nodeAddress[r],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.NodeAddressBook;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.nodeAddress&&o.nodeAddress.length||(o.nodeAddress=[]),o.nodeAddress.push($root.proto.NodeAddress.decode(e,e.uint32()));else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.NodeAddressBook"},e}(),e.SemanticVersion=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.major=0,e.prototype.minor=0,e.prototype.patch=0,e.prototype.pre="",e.prototype.build="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.major&&Object.hasOwnProperty.call(e,"major")&&t.uint32(8).int32(e.major),null!=e.minor&&Object.hasOwnProperty.call(e,"minor")&&t.uint32(16).int32(e.minor),null!=e.patch&&Object.hasOwnProperty.call(e,"patch")&&t.uint32(24).int32(e.patch),null!=e.pre&&Object.hasOwnProperty.call(e,"pre")&&t.uint32(34).string(e.pre),null!=e.build&&Object.hasOwnProperty.call(e,"build")&&t.uint32(42).string(e.build),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.SemanticVersion;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.major=e.int32();break;case 2:o.minor=e.int32();break;case 3:o.patch=e.int32();break;case 4:o.pre=e.string();break;case 5:o.build=e.string();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.SemanticVersion"},e}(),e.Setting=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.name="",e.prototype.value="",e.prototype.data=$util.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(18).string(e.value),null!=e.data&&Object.hasOwnProperty.call(e,"data")&&t.uint32(26).bytes(e.data),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.Setting;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.name=e.string();break;case 2:o.value=e.string();break;case 3:o.data=e.bytes();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.Setting"},e}(),e.ServicesConfigurationList=function(){function e(e){if(this.nameValue=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.nameValue=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.nameValue&&e.nameValue.length)for(var r=0;r<e.nameValue.length;++r)$root.proto.Setting.encode(e.nameValue[r],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ServicesConfigurationList;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.nameValue&&o.nameValue.length||(o.nameValue=[]),o.nameValue.push($root.proto.Setting.decode(e,e.uint32()));else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ServicesConfigurationList"},e}(),e.TokenRelationship=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.tokenId=null,e.prototype.symbol="",e.prototype.balance=$util.Long?$util.Long.fromBits(0,0,!0):0,e.prototype.kycStatus=0,e.prototype.freezeStatus=0,e.prototype.decimals=0,e.prototype.automaticAssociation=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.tokenId&&Object.hasOwnProperty.call(e,"tokenId")&&$root.proto.TokenID.encode(e.tokenId,t.uint32(10).fork()).ldelim(),null!=e.symbol&&Object.hasOwnProperty.call(e,"symbol")&&t.uint32(18).string(e.symbol),null!=e.balance&&Object.hasOwnProperty.call(e,"balance")&&t.uint32(24).uint64(e.balance),null!=e.kycStatus&&Object.hasOwnProperty.call(e,"kycStatus")&&t.uint32(32).int32(e.kycStatus),null!=e.freezeStatus&&Object.hasOwnProperty.call(e,"freezeStatus")&&t.uint32(40).int32(e.freezeStatus),null!=e.decimals&&Object.hasOwnProperty.call(e,"decimals")&&t.uint32(48).uint32(e.decimals),null!=e.automaticAssociation&&Object.hasOwnProperty.call(e,"automaticAssociation")&&t.uint32(56).bool(e.automaticAssociation),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenRelationship;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.tokenId=$root.proto.TokenID.decode(e,e.uint32());break;case 2:o.symbol=e.string();break;case 3:o.balance=e.uint64();break;case 4:o.kycStatus=e.int32();break;case 5:o.freezeStatus=e.int32();break;case 6:o.decimals=e.uint32();break;case 7:o.automaticAssociation=e.bool();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenRelationship"},e}(),e.TokenBalance=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.tokenId=null,e.prototype.balance=$util.Long?$util.Long.fromBits(0,0,!0):0,e.prototype.decimals=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.tokenId&&Object.hasOwnProperty.call(e,"tokenId")&&$root.proto.TokenID.encode(e.tokenId,t.uint32(10).fork()).ldelim(),null!=e.balance&&Object.hasOwnProperty.call(e,"balance")&&t.uint32(16).uint64(e.balance),null!=e.decimals&&Object.hasOwnProperty.call(e,"decimals")&&t.uint32(24).uint32(e.decimals),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenBalance;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.tokenId=$root.proto.TokenID.decode(e,e.uint32());break;case 2:o.balance=e.uint64();break;case 3:o.decimals=e.uint32();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenBalance"},e}(),e.TokenBalances=function(){function e(e){if(this.tokenBalances=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.tokenBalances=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.tokenBalances&&e.tokenBalances.length)for(var r=0;r<e.tokenBalances.length;++r)$root.proto.TokenBalance.encode(e.tokenBalances[r],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenBalances;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.tokenBalances&&o.tokenBalances.length||(o.tokenBalances=[]),o.tokenBalances.push($root.proto.TokenBalance.decode(e,e.uint32()));else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenBalances"},e}(),e.TokenAssociation=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.tokenId=null,e.prototype.accountId=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.tokenId&&Object.hasOwnProperty.call(e,"tokenId")&&$root.proto.TokenID.encode(e.tokenId,t.uint32(10).fork()).ldelim(),null!=e.accountId&&Object.hasOwnProperty.call(e,"accountId")&&$root.proto.AccountID.encode(e.accountId,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenAssociation;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.tokenId=$root.proto.TokenID.decode(e,e.uint32());break;case 2:o.accountId=$root.proto.AccountID.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenAssociation"},e}(),e.StakingInfo=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.declineReward=!1,e.prototype.stakePeriodStart=null,e.prototype.pendingReward=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.stakedToMe=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.stakedAccountId=null,e.prototype.stakedNodeId=null,Object.defineProperty(e.prototype,"stakedId",{get:$util.oneOfGetter(t=["stakedAccountId","stakedNodeId"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.declineReward&&Object.hasOwnProperty.call(e,"declineReward")&&t.uint32(8).bool(e.declineReward),null!=e.stakePeriodStart&&Object.hasOwnProperty.call(e,"stakePeriodStart")&&$root.proto.Timestamp.encode(e.stakePeriodStart,t.uint32(18).fork()).ldelim(),null!=e.pendingReward&&Object.hasOwnProperty.call(e,"pendingReward")&&t.uint32(24).int64(e.pendingReward),null!=e.stakedToMe&&Object.hasOwnProperty.call(e,"stakedToMe")&&t.uint32(32).int64(e.stakedToMe),null!=e.stakedAccountId&&Object.hasOwnProperty.call(e,"stakedAccountId")&&$root.proto.AccountID.encode(e.stakedAccountId,t.uint32(42).fork()).ldelim(),null!=e.stakedNodeId&&Object.hasOwnProperty.call(e,"stakedNodeId")&&t.uint32(48).int64(e.stakedNodeId),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.StakingInfo;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.declineReward=e.bool();break;case 2:o.stakePeriodStart=$root.proto.Timestamp.decode(e,e.uint32());break;case 3:o.pendingReward=e.int64();break;case 4:o.stakedToMe=e.int64();break;case 5:o.stakedAccountId=$root.proto.AccountID.decode(e,e.uint32());break;case 6:o.stakedNodeId=e.int64();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.StakingInfo"},e}(),e.PendingAirdropId=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.senderId=null,e.prototype.receiverId=null,e.prototype.fungibleTokenType=null,e.prototype.nonFungibleToken=null,Object.defineProperty(e.prototype,"tokenReference",{get:$util.oneOfGetter(t=["fungibleTokenType","nonFungibleToken"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.senderId&&Object.hasOwnProperty.call(e,"senderId")&&$root.proto.AccountID.encode(e.senderId,t.uint32(10).fork()).ldelim(),null!=e.receiverId&&Object.hasOwnProperty.call(e,"receiverId")&&$root.proto.AccountID.encode(e.receiverId,t.uint32(18).fork()).ldelim(),null!=e.fungibleTokenType&&Object.hasOwnProperty.call(e,"fungibleTokenType")&&$root.proto.TokenID.encode(e.fungibleTokenType,t.uint32(26).fork()).ldelim(),null!=e.nonFungibleToken&&Object.hasOwnProperty.call(e,"nonFungibleToken")&&$root.proto.NftID.encode(e.nonFungibleToken,t.uint32(34).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.PendingAirdropId;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.senderId=$root.proto.AccountID.decode(e,e.uint32());break;case 2:o.receiverId=$root.proto.AccountID.decode(e,e.uint32());break;case 3:o.fungibleTokenType=$root.proto.TokenID.decode(e,e.uint32());break;case 4:o.nonFungibleToken=$root.proto.NftID.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.PendingAirdropId"},e}(),e.PendingAirdropValue=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.amount=$util.Long?$util.Long.fromBits(0,0,!0):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.amount&&Object.hasOwnProperty.call(e,"amount")&&t.uint32(8).uint64(e.amount),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.PendingAirdropValue;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.amount=e.uint64();else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.PendingAirdropValue"},e}(),e.Timestamp=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.seconds=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.nanos=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.seconds&&Object.hasOwnProperty.call(e,"seconds")&&t.uint32(8).int64(e.seconds),null!=e.nanos&&Object.hasOwnProperty.call(e,"nanos")&&t.uint32(16).int32(e.nanos),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.Timestamp;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.seconds=e.int64();break;case 2:o.nanos=e.int32();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.Timestamp"},e}(),e.TimestampSeconds=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.seconds=$util.Long?$util.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.seconds&&Object.hasOwnProperty.call(e,"seconds")&&t.uint32(8).int64(e.seconds),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TimestampSeconds;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.seconds=e.int64();else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TimestampSeconds"},e}(),e.SystemDeleteTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.fileID=null,e.prototype.contractID=null,e.prototype.expirationTime=null,Object.defineProperty(e.prototype,"id",{get:$util.oneOfGetter(t=["fileID","contractID"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.fileID&&Object.hasOwnProperty.call(e,"fileID")&&$root.proto.FileID.encode(e.fileID,t.uint32(10).fork()).ldelim(),null!=e.contractID&&Object.hasOwnProperty.call(e,"contractID")&&$root.proto.ContractID.encode(e.contractID,t.uint32(18).fork()).ldelim(),null!=e.expirationTime&&Object.hasOwnProperty.call(e,"expirationTime")&&$root.proto.TimestampSeconds.encode(e.expirationTime,t.uint32(26).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.SystemDeleteTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.fileID=$root.proto.FileID.decode(e,e.uint32());break;case 2:o.contractID=$root.proto.ContractID.decode(e,e.uint32());break;case 3:o.expirationTime=$root.proto.TimestampSeconds.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.SystemDeleteTransactionBody"},e}(),e.SystemUndeleteTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.fileID=null,e.prototype.contractID=null,Object.defineProperty(e.prototype,"id",{get:$util.oneOfGetter(t=["fileID","contractID"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.fileID&&Object.hasOwnProperty.call(e,"fileID")&&$root.proto.FileID.encode(e.fileID,t.uint32(10).fork()).ldelim(),null!=e.contractID&&Object.hasOwnProperty.call(e,"contractID")&&$root.proto.ContractID.encode(e.contractID,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.SystemUndeleteTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.fileID=$root.proto.FileID.decode(e,e.uint32());break;case 2:o.contractID=$root.proto.ContractID.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.SystemUndeleteTransactionBody"},e}(),e.FreezeTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.startHour=0,e.prototype.startMin=0,e.prototype.endHour=0,e.prototype.endMin=0,e.prototype.updateFile=null,e.prototype.fileHash=$util.newBuffer([]),e.prototype.startTime=null,e.prototype.freezeType=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.startHour&&Object.hasOwnProperty.call(e,"startHour")&&t.uint32(8).int32(e.startHour),null!=e.startMin&&Object.hasOwnProperty.call(e,"startMin")&&t.uint32(16).int32(e.startMin),null!=e.endHour&&Object.hasOwnProperty.call(e,"endHour")&&t.uint32(24).int32(e.endHour),null!=e.endMin&&Object.hasOwnProperty.call(e,"endMin")&&t.uint32(32).int32(e.endMin),null!=e.updateFile&&Object.hasOwnProperty.call(e,"updateFile")&&$root.proto.FileID.encode(e.updateFile,t.uint32(42).fork()).ldelim(),null!=e.fileHash&&Object.hasOwnProperty.call(e,"fileHash")&&t.uint32(50).bytes(e.fileHash),null!=e.startTime&&Object.hasOwnProperty.call(e,"startTime")&&$root.proto.Timestamp.encode(e.startTime,t.uint32(58).fork()).ldelim(),null!=e.freezeType&&Object.hasOwnProperty.call(e,"freezeType")&&t.uint32(64).int32(e.freezeType),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.FreezeTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.startHour=e.int32();break;case 2:o.startMin=e.int32();break;case 3:o.endHour=e.int32();break;case 4:o.endMin=e.int32();break;case 5:o.updateFile=$root.proto.FileID.decode(e,e.uint32());break;case 6:o.fileHash=e.bytes();break;case 7:o.startTime=$root.proto.Timestamp.decode(e,e.uint32());break;case 8:o.freezeType=e.int32();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.FreezeTransactionBody"},e}(),e.FreezeType=function(){const e={},t=Object.create(e);return t[e[0]="UNKNOWN_FREEZE_TYPE"]=0,t[e[1]="FREEZE_ONLY"]=1,t[e[2]="PREPARE_UPGRADE"]=2,t[e[3]="FREEZE_UPGRADE"]=3,t[e[4]="FREEZE_ABORT"]=4,t[e[5]="TELEMETRY_UPGRADE"]=5,t}(),e.ContractCallTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.contractID=null,e.prototype.gas=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.amount=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.functionParameters=$util.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.contractID&&Object.hasOwnProperty.call(e,"contractID")&&$root.proto.ContractID.encode(e.contractID,t.uint32(10).fork()).ldelim(),null!=e.gas&&Object.hasOwnProperty.call(e,"gas")&&t.uint32(16).int64(e.gas),null!=e.amount&&Object.hasOwnProperty.call(e,"amount")&&t.uint32(24).int64(e.amount),null!=e.functionParameters&&Object.hasOwnProperty.call(e,"functionParameters")&&t.uint32(34).bytes(e.functionParameters),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ContractCallTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.contractID=$root.proto.ContractID.decode(e,e.uint32());break;case 2:o.gas=e.int64();break;case 3:o.amount=e.int64();break;case 4:o.functionParameters=e.bytes();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ContractCallTransactionBody"},e}(),e.ContractCreateTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.fileID=null,e.prototype.initcode=null,e.prototype.adminKey=null,e.prototype.gas=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.initialBalance=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.proxyAccountID=null,e.prototype.autoRenewPeriod=null,e.prototype.constructorParameters=$util.newBuffer([]),e.prototype.shardID=null,e.prototype.realmID=null,e.prototype.newRealmAdminKey=null,e.prototype.memo="",e.prototype.maxAutomaticTokenAssociations=0,e.prototype.autoRenewAccountId=null,e.prototype.stakedAccountId=null,e.prototype.stakedNodeId=null,e.prototype.declineReward=!1,Object.defineProperty(e.prototype,"initcodeSource",{get:$util.oneOfGetter(t=["fileID","initcode"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"stakedId",{get:$util.oneOfGetter(t=["stakedAccountId","stakedNodeId"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.fileID&&Object.hasOwnProperty.call(e,"fileID")&&$root.proto.FileID.encode(e.fileID,t.uint32(10).fork()).ldelim(),null!=e.adminKey&&Object.hasOwnProperty.call(e,"adminKey")&&$root.proto.Key.encode(e.adminKey,t.uint32(26).fork()).ldelim(),null!=e.gas&&Object.hasOwnProperty.call(e,"gas")&&t.uint32(32).int64(e.gas),null!=e.initialBalance&&Object.hasOwnProperty.call(e,"initialBalance")&&t.uint32(40).int64(e.initialBalance),null!=e.proxyAccountID&&Object.hasOwnProperty.call(e,"proxyAccountID")&&$root.proto.AccountID.encode(e.proxyAccountID,t.uint32(50).fork()).ldelim(),null!=e.autoRenewPeriod&&Object.hasOwnProperty.call(e,"autoRenewPeriod")&&$root.proto.Duration.encode(e.autoRenewPeriod,t.uint32(66).fork()).ldelim(),null!=e.constructorParameters&&Object.hasOwnProperty.call(e,"constructorParameters")&&t.uint32(74).bytes(e.constructorParameters),null!=e.shardID&&Object.hasOwnProperty.call(e,"shardID")&&$root.proto.ShardID.encode(e.shardID,t.uint32(82).fork()).ldelim(),null!=e.realmID&&Object.hasOwnProperty.call(e,"realmID")&&$root.proto.RealmID.encode(e.realmID,t.uint32(90).fork()).ldelim(),null!=e.newRealmAdminKey&&Object.hasOwnProperty.call(e,"newRealmAdminKey")&&$root.proto.Key.encode(e.newRealmAdminKey,t.uint32(98).fork()).ldelim(),null!=e.memo&&Object.hasOwnProperty.call(e,"memo")&&t.uint32(106).string(e.memo),null!=e.maxAutomaticTokenAssociations&&Object.hasOwnProperty.call(e,"maxAutomaticTokenAssociations")&&t.uint32(112).int32(e.maxAutomaticTokenAssociations),null!=e.autoRenewAccountId&&Object.hasOwnProperty.call(e,"autoRenewAccountId")&&$root.proto.AccountID.encode(e.autoRenewAccountId,t.uint32(122).fork()).ldelim(),null!=e.initcode&&Object.hasOwnProperty.call(e,"initcode")&&t.uint32(130).bytes(e.initcode),null!=e.stakedAccountId&&Object.hasOwnProperty.call(e,"stakedAccountId")&&$root.proto.AccountID.encode(e.stakedAccountId,t.uint32(138).fork()).ldelim(),null!=e.stakedNodeId&&Object.hasOwnProperty.call(e,"stakedNodeId")&&t.uint32(144).int64(e.stakedNodeId),null!=e.declineReward&&Object.hasOwnProperty.call(e,"declineReward")&&t.uint32(152).bool(e.declineReward),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ContractCreateTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.fileID=$root.proto.FileID.decode(e,e.uint32());break;case 16:o.initcode=e.bytes();break;case 3:o.adminKey=$root.proto.Key.decode(e,e.uint32());break;case 4:o.gas=e.int64();break;case 5:o.initialBalance=e.int64();break;case 6:o.proxyAccountID=$root.proto.AccountID.decode(e,e.uint32());break;case 8:o.autoRenewPeriod=$root.proto.Duration.decode(e,e.uint32());break;case 9:o.constructorParameters=e.bytes();break;case 10:o.shardID=$root.proto.ShardID.decode(e,e.uint32());break;case 11:o.realmID=$root.proto.RealmID.decode(e,e.uint32());break;case 12:o.newRealmAdminKey=$root.proto.Key.decode(e,e.uint32());break;case 13:o.memo=e.string();break;case 14:o.maxAutomaticTokenAssociations=e.int32();break;case 15:o.autoRenewAccountId=$root.proto.AccountID.decode(e,e.uint32());break;case 17:o.stakedAccountId=$root.proto.AccountID.decode(e,e.uint32());break;case 18:o.stakedNodeId=e.int64();break;case 19:o.declineReward=e.bool();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ContractCreateTransactionBody"},e}(),e.Duration=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.seconds=$util.Long?$util.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.seconds&&Object.hasOwnProperty.call(e,"seconds")&&t.uint32(8).int64(e.seconds),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.Duration;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.seconds=e.int64();else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.Duration"},e}(),e.ContractUpdateTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.contractID=null,e.prototype.expirationTime=null,e.prototype.adminKey=null,e.prototype.proxyAccountID=null,e.prototype.autoRenewPeriod=null,e.prototype.fileID=null,e.prototype.memo=null,e.prototype.memoWrapper=null,e.prototype.maxAutomaticTokenAssociations=null,e.prototype.autoRenewAccountId=null,e.prototype.stakedAccountId=null,e.prototype.stakedNodeId=null,e.prototype.declineReward=null,Object.defineProperty(e.prototype,"memoField",{get:$util.oneOfGetter(t=["memo","memoWrapper"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"stakedId",{get:$util.oneOfGetter(t=["stakedAccountId","stakedNodeId"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.contractID&&Object.hasOwnProperty.call(e,"contractID")&&$root.proto.ContractID.encode(e.contractID,t.uint32(10).fork()).ldelim(),null!=e.expirationTime&&Object.hasOwnProperty.call(e,"expirationTime")&&$root.proto.Timestamp.encode(e.expirationTime,t.uint32(18).fork()).ldelim(),null!=e.adminKey&&Object.hasOwnProperty.call(e,"adminKey")&&$root.proto.Key.encode(e.adminKey,t.uint32(26).fork()).ldelim(),null!=e.proxyAccountID&&Object.hasOwnProperty.call(e,"proxyAccountID")&&$root.proto.AccountID.encode(e.proxyAccountID,t.uint32(50).fork()).ldelim(),null!=e.autoRenewPeriod&&Object.hasOwnProperty.call(e,"autoRenewPeriod")&&$root.proto.Duration.encode(e.autoRenewPeriod,t.uint32(58).fork()).ldelim(),null!=e.fileID&&Object.hasOwnProperty.call(e,"fileID")&&$root.proto.FileID.encode(e.fileID,t.uint32(66).fork()).ldelim(),null!=e.memo&&Object.hasOwnProperty.call(e,"memo")&&t.uint32(74).string(e.memo),null!=e.memoWrapper&&Object.hasOwnProperty.call(e,"memoWrapper")&&$root.google.protobuf.StringValue.encode(e.memoWrapper,t.uint32(82).fork()).ldelim(),null!=e.maxAutomaticTokenAssociations&&Object.hasOwnProperty.call(e,"maxAutomaticTokenAssociations")&&$root.google.protobuf.Int32Value.encode(e.maxAutomaticTokenAssociations,t.uint32(90).fork()).ldelim(),null!=e.autoRenewAccountId&&Object.hasOwnProperty.call(e,"autoRenewAccountId")&&$root.proto.AccountID.encode(e.autoRenewAccountId,t.uint32(98).fork()).ldelim(),null!=e.stakedAccountId&&Object.hasOwnProperty.call(e,"stakedAccountId")&&$root.proto.AccountID.encode(e.stakedAccountId,t.uint32(106).fork()).ldelim(),null!=e.stakedNodeId&&Object.hasOwnProperty.call(e,"stakedNodeId")&&t.uint32(112).int64(e.stakedNodeId),null!=e.declineReward&&Object.hasOwnProperty.call(e,"declineReward")&&$root.google.protobuf.BoolValue.encode(e.declineReward,t.uint32(122).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ContractUpdateTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.contractID=$root.proto.ContractID.decode(e,e.uint32());break;case 2:o.expirationTime=$root.proto.Timestamp.decode(e,e.uint32());break;case 3:o.adminKey=$root.proto.Key.decode(e,e.uint32());break;case 6:o.proxyAccountID=$root.proto.AccountID.decode(e,e.uint32());break;case 7:o.autoRenewPeriod=$root.proto.Duration.decode(e,e.uint32());break;case 8:o.fileID=$root.proto.FileID.decode(e,e.uint32());break;case 9:o.memo=e.string();break;case 10:o.memoWrapper=$root.google.protobuf.StringValue.decode(e,e.uint32());break;case 11:o.maxAutomaticTokenAssociations=$root.google.protobuf.Int32Value.decode(e,e.uint32());break;case 12:o.autoRenewAccountId=$root.proto.AccountID.decode(e,e.uint32());break;case 13:o.stakedAccountId=$root.proto.AccountID.decode(e,e.uint32());break;case 14:o.stakedNodeId=e.int64();break;case 15:o.declineReward=$root.google.protobuf.BoolValue.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ContractUpdateTransactionBody"},e}(),e.LiveHash=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.accountId=null,e.prototype.hash=$util.newBuffer([]),e.prototype.keys=null,e.prototype.duration=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.accountId&&Object.hasOwnProperty.call(e,"accountId")&&$root.proto.AccountID.encode(e.accountId,t.uint32(10).fork()).ldelim(),null!=e.hash&&Object.hasOwnProperty.call(e,"hash")&&t.uint32(18).bytes(e.hash),null!=e.keys&&Object.hasOwnProperty.call(e,"keys")&&$root.proto.KeyList.encode(e.keys,t.uint32(26).fork()).ldelim(),null!=e.duration&&Object.hasOwnProperty.call(e,"duration")&&$root.proto.Duration.encode(e.duration,t.uint32(42).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.LiveHash;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.accountId=$root.proto.AccountID.decode(e,e.uint32());break;case 2:o.hash=e.bytes();break;case 3:o.keys=$root.proto.KeyList.decode(e,e.uint32());break;case 5:o.duration=$root.proto.Duration.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.LiveHash"},e}(),e.CryptoAddLiveHashTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.liveHash=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.liveHash&&Object.hasOwnProperty.call(e,"liveHash")&&$root.proto.LiveHash.encode(e.liveHash,t.uint32(26).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.CryptoAddLiveHashTransactionBody;e.pos<r;){var n=e.uint32();if(n>>>3==3)o.liveHash=$root.proto.LiveHash.decode(e,e.uint32());else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.CryptoAddLiveHashTransactionBody"},e}(),e.CryptoCreateTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.key=null,e.prototype.initialBalance=$util.Long?$util.Long.fromBits(0,0,!0):0,e.prototype.proxyAccountID=null,e.prototype.sendRecordThreshold=$util.Long?$util.Long.fromBits(0,0,!0):0,e.prototype.receiveRecordThreshold=$util.Long?$util.Long.fromBits(0,0,!0):0,e.prototype.receiverSigRequired=!1,e.prototype.autoRenewPeriod=null,e.prototype.shardID=null,e.prototype.realmID=null,e.prototype.newRealmAdminKey=null,e.prototype.memo="",e.prototype.maxAutomaticTokenAssociations=0,e.prototype.stakedAccountId=null,e.prototype.stakedNodeId=null,e.prototype.declineReward=!1,e.prototype.alias=$util.newBuffer([]),Object.defineProperty(e.prototype,"stakedId",{get:$util.oneOfGetter(t=["stakedAccountId","stakedNodeId"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.key&&Object.hasOwnProperty.call(e,"key")&&$root.proto.Key.encode(e.key,t.uint32(10).fork()).ldelim(),null!=e.initialBalance&&Object.hasOwnProperty.call(e,"initialBalance")&&t.uint32(16).uint64(e.initialBalance),null!=e.proxyAccountID&&Object.hasOwnProperty.call(e,"proxyAccountID")&&$root.proto.AccountID.encode(e.proxyAccountID,t.uint32(26).fork()).ldelim(),null!=e.sendRecordThreshold&&Object.hasOwnProperty.call(e,"sendRecordThreshold")&&t.uint32(48).uint64(e.sendRecordThreshold),null!=e.receiveRecordThreshold&&Object.hasOwnProperty.call(e,"receiveRecordThreshold")&&t.uint32(56).uint64(e.receiveRecordThreshold),null!=e.receiverSigRequired&&Object.hasOwnProperty.call(e,"receiverSigRequired")&&t.uint32(64).bool(e.receiverSigRequired),null!=e.autoRenewPeriod&&Object.hasOwnProperty.call(e,"autoRenewPeriod")&&$root.proto.Duration.encode(e.autoRenewPeriod,t.uint32(74).fork()).ldelim(),null!=e.shardID&&Object.hasOwnProperty.call(e,"shardID")&&$root.proto.ShardID.encode(e.shardID,t.uint32(82).fork()).ldelim(),null!=e.realmID&&Object.hasOwnProperty.call(e,"realmID")&&$root.proto.RealmID.encode(e.realmID,t.uint32(90).fork()).ldelim(),null!=e.newRealmAdminKey&&Object.hasOwnProperty.call(e,"newRealmAdminKey")&&$root.proto.Key.encode(e.newRealmAdminKey,t.uint32(98).fork()).ldelim(),null!=e.memo&&Object.hasOwnProperty.call(e,"memo")&&t.uint32(106).string(e.memo),null!=e.maxAutomaticTokenAssociations&&Object.hasOwnProperty.call(e,"maxAutomaticTokenAssociations")&&t.uint32(112).int32(e.maxAutomaticTokenAssociations),null!=e.stakedAccountId&&Object.hasOwnProperty.call(e,"stakedAccountId")&&$root.proto.AccountID.encode(e.stakedAccountId,t.uint32(122).fork()).ldelim(),null!=e.stakedNodeId&&Object.hasOwnProperty.call(e,"stakedNodeId")&&t.uint32(128).int64(e.stakedNodeId),null!=e.declineReward&&Object.hasOwnProperty.call(e,"declineReward")&&t.uint32(136).bool(e.declineReward),null!=e.alias&&Object.hasOwnProperty.call(e,"alias")&&t.uint32(146).bytes(e.alias),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.CryptoCreateTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.key=$root.proto.Key.decode(e,e.uint32());break;case 2:o.initialBalance=e.uint64();break;case 3:o.proxyAccountID=$root.proto.AccountID.decode(e,e.uint32());break;case 6:o.sendRecordThreshold=e.uint64();break;case 7:o.receiveRecordThreshold=e.uint64();break;case 8:o.receiverSigRequired=e.bool();break;case 9:o.autoRenewPeriod=$root.proto.Duration.decode(e,e.uint32());break;case 10:o.shardID=$root.proto.ShardID.decode(e,e.uint32());break;case 11:o.realmID=$root.proto.RealmID.decode(e,e.uint32());break;case 12:o.newRealmAdminKey=$root.proto.Key.decode(e,e.uint32());break;case 13:o.memo=e.string();break;case 14:o.maxAutomaticTokenAssociations=e.int32();break;case 15:o.stakedAccountId=$root.proto.AccountID.decode(e,e.uint32());break;case 16:o.stakedNodeId=e.int64();break;case 17:o.declineReward=e.bool();break;case 18:o.alias=e.bytes();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.CryptoCreateTransactionBody"},e}(),e.CryptoDeleteTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.transferAccountID=null,e.prototype.deleteAccountID=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.transferAccountID&&Object.hasOwnProperty.call(e,"transferAccountID")&&$root.proto.AccountID.encode(e.transferAccountID,t.uint32(10).fork()).ldelim(),null!=e.deleteAccountID&&Object.hasOwnProperty.call(e,"deleteAccountID")&&$root.proto.AccountID.encode(e.deleteAccountID,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.CryptoDeleteTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.transferAccountID=$root.proto.AccountID.decode(e,e.uint32());break;case 2:o.deleteAccountID=$root.proto.AccountID.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.CryptoDeleteTransactionBody"},e}(),e.CryptoDeleteLiveHashTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.accountOfLiveHash=null,e.prototype.liveHashToDelete=$util.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.accountOfLiveHash&&Object.hasOwnProperty.call(e,"accountOfLiveHash")&&$root.proto.AccountID.encode(e.accountOfLiveHash,t.uint32(10).fork()).ldelim(),null!=e.liveHashToDelete&&Object.hasOwnProperty.call(e,"liveHashToDelete")&&t.uint32(18).bytes(e.liveHashToDelete),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.CryptoDeleteLiveHashTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.accountOfLiveHash=$root.proto.AccountID.decode(e,e.uint32());break;case 2:o.liveHashToDelete=e.bytes();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.CryptoDeleteLiveHashTransactionBody"},e}(),e.CryptoTransferTransactionBody=function(){function e(e){if(this.tokenTransfers=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.transfers=null,e.prototype.tokenTransfers=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.transfers&&Object.hasOwnProperty.call(e,"transfers")&&$root.proto.TransferList.encode(e.transfers,t.uint32(10).fork()).ldelim(),null!=e.tokenTransfers&&e.tokenTransfers.length)for(var r=0;r<e.tokenTransfers.length;++r)$root.proto.TokenTransferList.encode(e.tokenTransfers[r],t.uint32(18).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.CryptoTransferTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.transfers=$root.proto.TransferList.decode(e,e.uint32());break;case 2:o.tokenTransfers&&o.tokenTransfers.length||(o.tokenTransfers=[]),o.tokenTransfers.push($root.proto.TokenTransferList.decode(e,e.uint32()));break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.CryptoTransferTransactionBody"},e}(),e.CryptoUpdateTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.accountIDToUpdate=null,e.prototype.key=null,e.prototype.proxyAccountID=null,e.prototype.proxyFraction=0,e.prototype.sendRecordThreshold=null,e.prototype.sendRecordThresholdWrapper=null,e.prototype.receiveRecordThreshold=null,e.prototype.receiveRecordThresholdWrapper=null,e.prototype.autoRenewPeriod=null,e.prototype.expirationTime=null,e.prototype.receiverSigRequired=null,e.prototype.receiverSigRequiredWrapper=null,e.prototype.memo=null,e.prototype.maxAutomaticTokenAssociations=null,e.prototype.stakedAccountId=null,e.prototype.stakedNodeId=null,e.prototype.declineReward=null,Object.defineProperty(e.prototype,"sendRecordThresholdField",{get:$util.oneOfGetter(t=["sendRecordThreshold","sendRecordThresholdWrapper"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"receiveRecordThresholdField",{get:$util.oneOfGetter(t=["receiveRecordThreshold","receiveRecordThresholdWrapper"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"receiverSigRequiredField",{get:$util.oneOfGetter(t=["receiverSigRequired","receiverSigRequiredWrapper"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"stakedId",{get:$util.oneOfGetter(t=["stakedAccountId","stakedNodeId"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.accountIDToUpdate&&Object.hasOwnProperty.call(e,"accountIDToUpdate")&&$root.proto.AccountID.encode(e.accountIDToUpdate,t.uint32(18).fork()).ldelim(),null!=e.key&&Object.hasOwnProperty.call(e,"key")&&$root.proto.Key.encode(e.key,t.uint32(26).fork()).ldelim(),null!=e.proxyAccountID&&Object.hasOwnProperty.call(e,"proxyAccountID")&&$root.proto.AccountID.encode(e.proxyAccountID,t.uint32(34).fork()).ldelim(),null!=e.proxyFraction&&Object.hasOwnProperty.call(e,"proxyFraction")&&t.uint32(40).int32(e.proxyFraction),null!=e.sendRecordThreshold&&Object.hasOwnProperty.call(e,"sendRecordThreshold")&&t.uint32(48).uint64(e.sendRecordThreshold),null!=e.receiveRecordThreshold&&Object.hasOwnProperty.call(e,"receiveRecordThreshold")&&t.uint32(56).uint64(e.receiveRecordThreshold),null!=e.autoRenewPeriod&&Object.hasOwnProperty.call(e,"autoRenewPeriod")&&$root.proto.Duration.encode(e.autoRenewPeriod,t.uint32(66).fork()).ldelim(),null!=e.expirationTime&&Object.hasOwnProperty.call(e,"expirationTime")&&$root.proto.Timestamp.encode(e.expirationTime,t.uint32(74).fork()).ldelim(),null!=e.receiverSigRequired&&Object.hasOwnProperty.call(e,"receiverSigRequired")&&t.uint32(80).bool(e.receiverSigRequired),null!=e.sendRecordThresholdWrapper&&Object.hasOwnProperty.call(e,"sendRecordThresholdWrapper")&&$root.google.protobuf.UInt64Value.encode(e.sendRecordThresholdWrapper,t.uint32(90).fork()).ldelim(),null!=e.receiveRecordThresholdWrapper&&Object.hasOwnProperty.call(e,"receiveRecordThresholdWrapper")&&$root.google.protobuf.UInt64Value.encode(e.receiveRecordThresholdWrapper,t.uint32(98).fork()).ldelim(),null!=e.receiverSigRequiredWrapper&&Object.hasOwnProperty.call(e,"receiverSigRequiredWrapper")&&$root.google.protobuf.BoolValue.encode(e.receiverSigRequiredWrapper,t.uint32(106).fork()).ldelim(),null!=e.memo&&Object.hasOwnProperty.call(e,"memo")&&$root.google.protobuf.StringValue.encode(e.memo,t.uint32(114).fork()).ldelim(),null!=e.maxAutomaticTokenAssociations&&Object.hasOwnProperty.call(e,"maxAutomaticTokenAssociations")&&$root.google.protobuf.Int32Value.encode(e.maxAutomaticTokenAssociations,t.uint32(122).fork()).ldelim(),null!=e.stakedAccountId&&Object.hasOwnProperty.call(e,"stakedAccountId")&&$root.proto.AccountID.encode(e.stakedAccountId,t.uint32(130).fork()).ldelim(),null!=e.stakedNodeId&&Object.hasOwnProperty.call(e,"stakedNodeId")&&t.uint32(136).int64(e.stakedNodeId),null!=e.declineReward&&Object.hasOwnProperty.call(e,"declineReward")&&$root.google.protobuf.BoolValue.encode(e.declineReward,t.uint32(146).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.CryptoUpdateTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 2:o.accountIDToUpdate=$root.proto.AccountID.decode(e,e.uint32());break;case 3:o.key=$root.proto.Key.decode(e,e.uint32());break;case 4:o.proxyAccountID=$root.proto.AccountID.decode(e,e.uint32());break;case 5:o.proxyFraction=e.int32();break;case 6:o.sendRecordThreshold=e.uint64();break;case 11:o.sendRecordThresholdWrapper=$root.google.protobuf.UInt64Value.decode(e,e.uint32());break;case 7:o.receiveRecordThreshold=e.uint64();break;case 12:o.receiveRecordThresholdWrapper=$root.google.protobuf.UInt64Value.decode(e,e.uint32());break;case 8:o.autoRenewPeriod=$root.proto.Duration.decode(e,e.uint32());break;case 9:o.expirationTime=$root.proto.Timestamp.decode(e,e.uint32());break;case 10:o.receiverSigRequired=e.bool();break;case 13:o.receiverSigRequiredWrapper=$root.google.protobuf.BoolValue.decode(e,e.uint32());break;case 14:o.memo=$root.google.protobuf.StringValue.decode(e,e.uint32());break;case 15:o.maxAutomaticTokenAssociations=$root.google.protobuf.Int32Value.decode(e,e.uint32());break;case 16:o.stakedAccountId=$root.proto.AccountID.decode(e,e.uint32());break;case 17:o.stakedNodeId=e.int64();break;case 18:o.declineReward=$root.google.protobuf.BoolValue.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.CryptoUpdateTransactionBody"},e}(),e.CryptoApproveAllowanceTransactionBody=function(){function e(e){if(this.cryptoAllowances=[],this.nftAllowances=[],this.tokenAllowances=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.cryptoAllowances=$util.emptyArray,e.prototype.nftAllowances=$util.emptyArray,e.prototype.tokenAllowances=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.cryptoAllowances&&e.cryptoAllowances.length)for(var r=0;r<e.cryptoAllowances.length;++r)$root.proto.CryptoAllowance.encode(e.cryptoAllowances[r],t.uint32(10).fork()).ldelim();if(null!=e.nftAllowances&&e.nftAllowances.length)for(r=0;r<e.nftAllowances.length;++r)$root.proto.NftAllowance.encode(e.nftAllowances[r],t.uint32(18).fork()).ldelim();if(null!=e.tokenAllowances&&e.tokenAllowances.length)for(r=0;r<e.tokenAllowances.length;++r)$root.proto.TokenAllowance.encode(e.tokenAllowances[r],t.uint32(26).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.CryptoApproveAllowanceTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.cryptoAllowances&&o.cryptoAllowances.length||(o.cryptoAllowances=[]),o.cryptoAllowances.push($root.proto.CryptoAllowance.decode(e,e.uint32()));break;case 2:o.nftAllowances&&o.nftAllowances.length||(o.nftAllowances=[]),o.nftAllowances.push($root.proto.NftAllowance.decode(e,e.uint32()));break;case 3:o.tokenAllowances&&o.tokenAllowances.length||(o.tokenAllowances=[]),o.tokenAllowances.push($root.proto.TokenAllowance.decode(e,e.uint32()));break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.CryptoApproveAllowanceTransactionBody"},e}(),e.CryptoAllowance=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.owner=null,e.prototype.spender=null,e.prototype.amount=$util.Long?$util.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.owner&&Object.hasOwnProperty.call(e,"owner")&&$root.proto.AccountID.encode(e.owner,t.uint32(10).fork()).ldelim(),null!=e.spender&&Object.hasOwnProperty.call(e,"spender")&&$root.proto.AccountID.encode(e.spender,t.uint32(18).fork()).ldelim(),null!=e.amount&&Object.hasOwnProperty.call(e,"amount")&&t.uint32(24).int64(e.amount),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.CryptoAllowance;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.owner=$root.proto.AccountID.decode(e,e.uint32());break;case 2:o.spender=$root.proto.AccountID.decode(e,e.uint32());break;case 3:o.amount=e.int64();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.CryptoAllowance"},e}(),e.NftAllowance=function(){function e(e){if(this.serialNumbers=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.tokenId=null,e.prototype.owner=null,e.prototype.spender=null,e.prototype.serialNumbers=$util.emptyArray,e.prototype.approvedForAll=null,e.prototype.delegatingSpender=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.tokenId&&Object.hasOwnProperty.call(e,"tokenId")&&$root.proto.TokenID.encode(e.tokenId,t.uint32(10).fork()).ldelim(),null!=e.owner&&Object.hasOwnProperty.call(e,"owner")&&$root.proto.AccountID.encode(e.owner,t.uint32(18).fork()).ldelim(),null!=e.spender&&Object.hasOwnProperty.call(e,"spender")&&$root.proto.AccountID.encode(e.spender,t.uint32(26).fork()).ldelim(),null!=e.serialNumbers&&e.serialNumbers.length){t.uint32(34).fork();for(var r=0;r<e.serialNumbers.length;++r)t.int64(e.serialNumbers[r]);t.ldelim()}return null!=e.approvedForAll&&Object.hasOwnProperty.call(e,"approvedForAll")&&$root.google.protobuf.BoolValue.encode(e.approvedForAll,t.uint32(42).fork()).ldelim(),null!=e.delegatingSpender&&Object.hasOwnProperty.call(e,"delegatingSpender")&&$root.proto.AccountID.encode(e.delegatingSpender,t.uint32(50).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.NftAllowance;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.tokenId=$root.proto.TokenID.decode(e,e.uint32());break;case 2:o.owner=$root.proto.AccountID.decode(e,e.uint32());break;case 3:o.spender=$root.proto.AccountID.decode(e,e.uint32());break;case 4:if(o.serialNumbers&&o.serialNumbers.length||(o.serialNumbers=[]),2==(7&n))for(var i=e.uint32()+e.pos;e.pos<i;)o.serialNumbers.push(e.int64());else o.serialNumbers.push(e.int64());break;case 5:o.approvedForAll=$root.google.protobuf.BoolValue.decode(e,e.uint32());break;case 6:o.delegatingSpender=$root.proto.AccountID.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.NftAllowance"},e}(),e.TokenAllowance=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.tokenId=null,e.prototype.owner=null,e.prototype.spender=null,e.prototype.amount=$util.Long?$util.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.tokenId&&Object.hasOwnProperty.call(e,"tokenId")&&$root.proto.TokenID.encode(e.tokenId,t.uint32(10).fork()).ldelim(),null!=e.owner&&Object.hasOwnProperty.call(e,"owner")&&$root.proto.AccountID.encode(e.owner,t.uint32(18).fork()).ldelim(),null!=e.spender&&Object.hasOwnProperty.call(e,"spender")&&$root.proto.AccountID.encode(e.spender,t.uint32(26).fork()).ldelim(),null!=e.amount&&Object.hasOwnProperty.call(e,"amount")&&t.uint32(32).int64(e.amount),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenAllowance;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.tokenId=$root.proto.TokenID.decode(e,e.uint32());break;case 2:o.owner=$root.proto.AccountID.decode(e,e.uint32());break;case 3:o.spender=$root.proto.AccountID.decode(e,e.uint32());break;case 4:o.amount=e.int64();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenAllowance"},e}(),e.CryptoDeleteAllowanceTransactionBody=function(){function e(e){if(this.nftAllowances=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.nftAllowances=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.nftAllowances&&e.nftAllowances.length)for(var r=0;r<e.nftAllowances.length;++r)$root.proto.NftRemoveAllowance.encode(e.nftAllowances[r],t.uint32(18).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.CryptoDeleteAllowanceTransactionBody;e.pos<r;){var n=e.uint32();if(n>>>3==2)o.nftAllowances&&o.nftAllowances.length||(o.nftAllowances=[]),o.nftAllowances.push($root.proto.NftRemoveAllowance.decode(e,e.uint32()));else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.CryptoDeleteAllowanceTransactionBody"},e}(),e.NftRemoveAllowance=function(){function e(e){if(this.serialNumbers=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.tokenId=null,e.prototype.owner=null,e.prototype.serialNumbers=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.tokenId&&Object.hasOwnProperty.call(e,"tokenId")&&$root.proto.TokenID.encode(e.tokenId,t.uint32(10).fork()).ldelim(),null!=e.owner&&Object.hasOwnProperty.call(e,"owner")&&$root.proto.AccountID.encode(e.owner,t.uint32(18).fork()).ldelim(),null!=e.serialNumbers&&e.serialNumbers.length){t.uint32(26).fork();for(var r=0;r<e.serialNumbers.length;++r)t.int64(e.serialNumbers[r]);t.ldelim()}return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.NftRemoveAllowance;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.tokenId=$root.proto.TokenID.decode(e,e.uint32());break;case 2:o.owner=$root.proto.AccountID.decode(e,e.uint32());break;case 3:if(o.serialNumbers&&o.serialNumbers.length||(o.serialNumbers=[]),2==(7&n))for(var i=e.uint32()+e.pos;e.pos<i;)o.serialNumbers.push(e.int64());else o.serialNumbers.push(e.int64());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.NftRemoveAllowance"},e}(),e.EthereumTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.ethereumData=$util.newBuffer([]),e.prototype.callData=null,e.prototype.maxGasAllowance=$util.Long?$util.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.ethereumData&&Object.hasOwnProperty.call(e,"ethereumData")&&t.uint32(10).bytes(e.ethereumData),null!=e.callData&&Object.hasOwnProperty.call(e,"callData")&&$root.proto.FileID.encode(e.callData,t.uint32(18).fork()).ldelim(),null!=e.maxGasAllowance&&Object.hasOwnProperty.call(e,"maxGasAllowance")&&t.uint32(24).int64(e.maxGasAllowance),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.EthereumTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.ethereumData=e.bytes();break;case 2:o.callData=$root.proto.FileID.decode(e,e.uint32());break;case 3:o.maxGasAllowance=e.int64();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.EthereumTransactionBody"},e}(),e.FileAppendTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.fileID=null,e.prototype.contents=$util.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.fileID&&Object.hasOwnProperty.call(e,"fileID")&&$root.proto.FileID.encode(e.fileID,t.uint32(18).fork()).ldelim(),null!=e.contents&&Object.hasOwnProperty.call(e,"contents")&&t.uint32(34).bytes(e.contents),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.FileAppendTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 2:o.fileID=$root.proto.FileID.decode(e,e.uint32());break;case 4:o.contents=e.bytes();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.FileAppendTransactionBody"},e}(),e.FileCreateTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.expirationTime=null,e.prototype.keys=null,e.prototype.contents=$util.newBuffer([]),e.prototype.shardID=null,e.prototype.realmID=null,e.prototype.newRealmAdminKey=null,e.prototype.memo="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.expirationTime&&Object.hasOwnProperty.call(e,"expirationTime")&&$root.proto.Timestamp.encode(e.expirationTime,t.uint32(18).fork()).ldelim(),null!=e.keys&&Object.hasOwnProperty.call(e,"keys")&&$root.proto.KeyList.encode(e.keys,t.uint32(26).fork()).ldelim(),null!=e.contents&&Object.hasOwnProperty.call(e,"contents")&&t.uint32(34).bytes(e.contents),null!=e.shardID&&Object.hasOwnProperty.call(e,"shardID")&&$root.proto.ShardID.encode(e.shardID,t.uint32(42).fork()).ldelim(),null!=e.realmID&&Object.hasOwnProperty.call(e,"realmID")&&$root.proto.RealmID.encode(e.realmID,t.uint32(50).fork()).ldelim(),null!=e.newRealmAdminKey&&Object.hasOwnProperty.call(e,"newRealmAdminKey")&&$root.proto.Key.encode(e.newRealmAdminKey,t.uint32(58).fork()).ldelim(),null!=e.memo&&Object.hasOwnProperty.call(e,"memo")&&t.uint32(66).string(e.memo),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.FileCreateTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 2:o.expirationTime=$root.proto.Timestamp.decode(e,e.uint32());break;case 3:o.keys=$root.proto.KeyList.decode(e,e.uint32());break;case 4:o.contents=e.bytes();break;case 5:o.shardID=$root.proto.ShardID.decode(e,e.uint32());break;case 6:o.realmID=$root.proto.RealmID.decode(e,e.uint32());break;case 7:o.newRealmAdminKey=$root.proto.Key.decode(e,e.uint32());break;case 8:o.memo=e.string();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.FileCreateTransactionBody"},e}(),e.FileDeleteTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.fileID=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.fileID&&Object.hasOwnProperty.call(e,"fileID")&&$root.proto.FileID.encode(e.fileID,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.FileDeleteTransactionBody;e.pos<r;){var n=e.uint32();if(n>>>3==2)o.fileID=$root.proto.FileID.decode(e,e.uint32());else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.FileDeleteTransactionBody"},e}(),e.FileUpdateTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.fileID=null,e.prototype.expirationTime=null,e.prototype.keys=null,e.prototype.contents=$util.newBuffer([]),e.prototype.memo=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.fileID&&Object.hasOwnProperty.call(e,"fileID")&&$root.proto.FileID.encode(e.fileID,t.uint32(10).fork()).ldelim(),null!=e.expirationTime&&Object.hasOwnProperty.call(e,"expirationTime")&&$root.proto.Timestamp.encode(e.expirationTime,t.uint32(18).fork()).ldelim(),null!=e.keys&&Object.hasOwnProperty.call(e,"keys")&&$root.proto.KeyList.encode(e.keys,t.uint32(26).fork()).ldelim(),null!=e.contents&&Object.hasOwnProperty.call(e,"contents")&&t.uint32(34).bytes(e.contents),null!=e.memo&&Object.hasOwnProperty.call(e,"memo")&&$root.google.protobuf.StringValue.encode(e.memo,t.uint32(42).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.FileUpdateTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.fileID=$root.proto.FileID.decode(e,e.uint32());break;case 2:o.expirationTime=$root.proto.Timestamp.decode(e,e.uint32());break;case 3:o.keys=$root.proto.KeyList.decode(e,e.uint32());break;case 4:o.contents=e.bytes();break;case 5:o.memo=$root.google.protobuf.StringValue.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.FileUpdateTransactionBody"},e}(),e.ContractDeleteTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.contractID=null,e.prototype.transferAccountID=null,e.prototype.transferContractID=null,e.prototype.permanentRemoval=!1,Object.defineProperty(e.prototype,"obtainers",{get:$util.oneOfGetter(t=["transferAccountID","transferContractID"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.contractID&&Object.hasOwnProperty.call(e,"contractID")&&$root.proto.ContractID.encode(e.contractID,t.uint32(10).fork()).ldelim(),null!=e.transferAccountID&&Object.hasOwnProperty.call(e,"transferAccountID")&&$root.proto.AccountID.encode(e.transferAccountID,t.uint32(18).fork()).ldelim(),null!=e.transferContractID&&Object.hasOwnProperty.call(e,"transferContractID")&&$root.proto.ContractID.encode(e.transferContractID,t.uint32(26).fork()).ldelim(),null!=e.permanentRemoval&&Object.hasOwnProperty.call(e,"permanentRemoval")&&t.uint32(32).bool(e.permanentRemoval),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ContractDeleteTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.contractID=$root.proto.ContractID.decode(e,e.uint32());break;case 2:o.transferAccountID=$root.proto.AccountID.decode(e,e.uint32());break;case 3:o.transferContractID=$root.proto.ContractID.decode(e,e.uint32());break;case 4:o.permanentRemoval=e.bool();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ContractDeleteTransactionBody"},e}(),e.ConsensusCreateTopicTransactionBody=function(){function e(e){if(this.feeExemptKeyList=[],this.customFees=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.memo="",e.prototype.adminKey=null,e.prototype.submitKey=null,e.prototype.autoRenewPeriod=null,e.prototype.autoRenewAccount=null,e.prototype.feeScheduleKey=null,e.prototype.feeExemptKeyList=$util.emptyArray,e.prototype.customFees=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.memo&&Object.hasOwnProperty.call(e,"memo")&&t.uint32(10).string(e.memo),null!=e.adminKey&&Object.hasOwnProperty.call(e,"adminKey")&&$root.proto.Key.encode(e.adminKey,t.uint32(18).fork()).ldelim(),null!=e.submitKey&&Object.hasOwnProperty.call(e,"submitKey")&&$root.proto.Key.encode(e.submitKey,t.uint32(26).fork()).ldelim(),null!=e.autoRenewPeriod&&Object.hasOwnProperty.call(e,"autoRenewPeriod")&&$root.proto.Duration.encode(e.autoRenewPeriod,t.uint32(50).fork()).ldelim(),null!=e.autoRenewAccount&&Object.hasOwnProperty.call(e,"autoRenewAccount")&&$root.proto.AccountID.encode(e.autoRenewAccount,t.uint32(58).fork()).ldelim(),null!=e.feeScheduleKey&&Object.hasOwnProperty.call(e,"feeScheduleKey")&&$root.proto.Key.encode(e.feeScheduleKey,t.uint32(66).fork()).ldelim(),null!=e.feeExemptKeyList&&e.feeExemptKeyList.length)for(var r=0;r<e.feeExemptKeyList.length;++r)$root.proto.Key.encode(e.feeExemptKeyList[r],t.uint32(74).fork()).ldelim();if(null!=e.customFees&&e.customFees.length)for(r=0;r<e.customFees.length;++r)$root.proto.FixedCustomFee.encode(e.customFees[r],t.uint32(82).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ConsensusCreateTopicTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.memo=e.string();break;case 2:o.adminKey=$root.proto.Key.decode(e,e.uint32());break;case 3:o.submitKey=$root.proto.Key.decode(e,e.uint32());break;case 6:o.autoRenewPeriod=$root.proto.Duration.decode(e,e.uint32());break;case 7:o.autoRenewAccount=$root.proto.AccountID.decode(e,e.uint32());break;case 8:o.feeScheduleKey=$root.proto.Key.decode(e,e.uint32());break;case 9:o.feeExemptKeyList&&o.feeExemptKeyList.length||(o.feeExemptKeyList=[]),o.feeExemptKeyList.push($root.proto.Key.decode(e,e.uint32()));break;case 10:o.customFees&&o.customFees.length||(o.customFees=[]),o.customFees.push($root.proto.FixedCustomFee.decode(e,e.uint32()));break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ConsensusCreateTopicTransactionBody"},e}(),e.FractionalFee=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.fractionalAmount=null,e.prototype.minimumAmount=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.maximumAmount=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.netOfTransfers=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.fractionalAmount&&Object.hasOwnProperty.call(e,"fractionalAmount")&&$root.proto.Fraction.encode(e.fractionalAmount,t.uint32(10).fork()).ldelim(),null!=e.minimumAmount&&Object.hasOwnProperty.call(e,"minimumAmount")&&t.uint32(16).int64(e.minimumAmount),null!=e.maximumAmount&&Object.hasOwnProperty.call(e,"maximumAmount")&&t.uint32(24).int64(e.maximumAmount),null!=e.netOfTransfers&&Object.hasOwnProperty.call(e,"netOfTransfers")&&t.uint32(32).bool(e.netOfTransfers),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.FractionalFee;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.fractionalAmount=$root.proto.Fraction.decode(e,e.uint32());break;case 2:o.minimumAmount=e.int64();break;case 3:o.maximumAmount=e.int64();break;case 4:o.netOfTransfers=e.bool();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.FractionalFee"},e}(),e.FixedFee=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.amount=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.denominatingTokenId=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.amount&&Object.hasOwnProperty.call(e,"amount")&&t.uint32(8).int64(e.amount),null!=e.denominatingTokenId&&Object.hasOwnProperty.call(e,"denominatingTokenId")&&$root.proto.TokenID.encode(e.denominatingTokenId,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.FixedFee;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.amount=e.int64();break;case 2:o.denominatingTokenId=$root.proto.TokenID.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.FixedFee"},e}(),e.RoyaltyFee=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.exchangeValueFraction=null,e.prototype.fallbackFee=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.exchangeValueFraction&&Object.hasOwnProperty.call(e,"exchangeValueFraction")&&$root.proto.Fraction.encode(e.exchangeValueFraction,t.uint32(10).fork()).ldelim(),null!=e.fallbackFee&&Object.hasOwnProperty.call(e,"fallbackFee")&&$root.proto.FixedFee.encode(e.fallbackFee,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.RoyaltyFee;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.exchangeValueFraction=$root.proto.Fraction.decode(e,e.uint32());break;case 2:o.fallbackFee=$root.proto.FixedFee.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.RoyaltyFee"},e}(),e.CustomFee=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.fixedFee=null,e.prototype.fractionalFee=null,e.prototype.royaltyFee=null,e.prototype.feeCollectorAccountId=null,e.prototype.allCollectorsAreExempt=!1,Object.defineProperty(e.prototype,"fee",{get:$util.oneOfGetter(t=["fixedFee","fractionalFee","royaltyFee"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.fixedFee&&Object.hasOwnProperty.call(e,"fixedFee")&&$root.proto.FixedFee.encode(e.fixedFee,t.uint32(10).fork()).ldelim(),null!=e.fractionalFee&&Object.hasOwnProperty.call(e,"fractionalFee")&&$root.proto.FractionalFee.encode(e.fractionalFee,t.uint32(18).fork()).ldelim(),null!=e.feeCollectorAccountId&&Object.hasOwnProperty.call(e,"feeCollectorAccountId")&&$root.proto.AccountID.encode(e.feeCollectorAccountId,t.uint32(26).fork()).ldelim(),null!=e.royaltyFee&&Object.hasOwnProperty.call(e,"royaltyFee")&&$root.proto.RoyaltyFee.encode(e.royaltyFee,t.uint32(34).fork()).ldelim(),null!=e.allCollectorsAreExempt&&Object.hasOwnProperty.call(e,"allCollectorsAreExempt")&&t.uint32(40).bool(e.allCollectorsAreExempt),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.CustomFee;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.fixedFee=$root.proto.FixedFee.decode(e,e.uint32());break;case 2:o.fractionalFee=$root.proto.FractionalFee.decode(e,e.uint32());break;case 4:o.royaltyFee=$root.proto.RoyaltyFee.decode(e,e.uint32());break;case 3:o.feeCollectorAccountId=$root.proto.AccountID.decode(e,e.uint32());break;case 5:o.allCollectorsAreExempt=e.bool();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.CustomFee"},e}(),e.AssessedCustomFee=function(){function e(e){if(this.effectivePayerAccountId=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.amount=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.tokenId=null,e.prototype.feeCollectorAccountId=null,e.prototype.effectivePayerAccountId=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.amount&&Object.hasOwnProperty.call(e,"amount")&&t.uint32(8).int64(e.amount),null!=e.tokenId&&Object.hasOwnProperty.call(e,"tokenId")&&$root.proto.TokenID.encode(e.tokenId,t.uint32(18).fork()).ldelim(),null!=e.feeCollectorAccountId&&Object.hasOwnProperty.call(e,"feeCollectorAccountId")&&$root.proto.AccountID.encode(e.feeCollectorAccountId,t.uint32(26).fork()).ldelim(),null!=e.effectivePayerAccountId&&e.effectivePayerAccountId.length)for(var r=0;r<e.effectivePayerAccountId.length;++r)$root.proto.AccountID.encode(e.effectivePayerAccountId[r],t.uint32(34).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.AssessedCustomFee;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.amount=e.int64();break;case 2:o.tokenId=$root.proto.TokenID.decode(e,e.uint32());break;case 3:o.feeCollectorAccountId=$root.proto.AccountID.decode(e,e.uint32());break;case 4:o.effectivePayerAccountId&&o.effectivePayerAccountId.length||(o.effectivePayerAccountId=[]),o.effectivePayerAccountId.push($root.proto.AccountID.decode(e,e.uint32()));break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.AssessedCustomFee"},e}(),e.FixedCustomFee=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.fixedFee=null,e.prototype.feeCollectorAccountId=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.fixedFee&&Object.hasOwnProperty.call(e,"fixedFee")&&$root.proto.FixedFee.encode(e.fixedFee,t.uint32(10).fork()).ldelim(),null!=e.feeCollectorAccountId&&Object.hasOwnProperty.call(e,"feeCollectorAccountId")&&$root.proto.AccountID.encode(e.feeCollectorAccountId,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.FixedCustomFee;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.fixedFee=$root.proto.FixedFee.decode(e,e.uint32());break;case 2:o.feeCollectorAccountId=$root.proto.AccountID.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.FixedCustomFee"},e}(),e.FixedCustomFeeList=function(){function e(e){if(this.fees=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.fees=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.fees&&e.fees.length)for(var r=0;r<e.fees.length;++r)$root.proto.FixedCustomFee.encode(e.fees[r],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.FixedCustomFeeList;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.fees&&o.fees.length||(o.fees=[]),o.fees.push($root.proto.FixedCustomFee.decode(e,e.uint32()));else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.FixedCustomFeeList"},e}(),e.FeeExemptKeyList=function(){function e(e){if(this.keys=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.keys=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.keys&&e.keys.length)for(var r=0;r<e.keys.length;++r)$root.proto.Key.encode(e.keys[r],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.FeeExemptKeyList;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.keys&&o.keys.length||(o.keys=[]),o.keys.push($root.proto.Key.decode(e,e.uint32()));else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.FeeExemptKeyList"},e}(),e.CustomFeeLimit=function(){function e(e){if(this.fees=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.accountId=null,e.prototype.fees=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.accountId&&Object.hasOwnProperty.call(e,"accountId")&&$root.proto.AccountID.encode(e.accountId,t.uint32(10).fork()).ldelim(),null!=e.fees&&e.fees.length)for(var r=0;r<e.fees.length;++r)$root.proto.FixedFee.encode(e.fees[r],t.uint32(18).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.CustomFeeLimit;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.accountId=$root.proto.AccountID.decode(e,e.uint32());break;case 2:o.fees&&o.fees.length||(o.fees=[]),o.fees.push($root.proto.FixedFee.decode(e,e.uint32()));break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.CustomFeeLimit"},e}(),e.ConsensusUpdateTopicTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.topicID=null,e.prototype.memo=null,e.prototype.expirationTime=null,e.prototype.adminKey=null,e.prototype.submitKey=null,e.prototype.autoRenewPeriod=null,e.prototype.autoRenewAccount=null,e.prototype.feeScheduleKey=null,e.prototype.feeExemptKeyList=null,e.prototype.customFees=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.topicID&&Object.hasOwnProperty.call(e,"topicID")&&$root.proto.TopicID.encode(e.topicID,t.uint32(10).fork()).ldelim(),null!=e.memo&&Object.hasOwnProperty.call(e,"memo")&&$root.google.protobuf.StringValue.encode(e.memo,t.uint32(18).fork()).ldelim(),null!=e.expirationTime&&Object.hasOwnProperty.call(e,"expirationTime")&&$root.proto.Timestamp.encode(e.expirationTime,t.uint32(34).fork()).ldelim(),null!=e.adminKey&&Object.hasOwnProperty.call(e,"adminKey")&&$root.proto.Key.encode(e.adminKey,t.uint32(50).fork()).ldelim(),null!=e.submitKey&&Object.hasOwnProperty.call(e,"submitKey")&&$root.proto.Key.encode(e.submitKey,t.uint32(58).fork()).ldelim(),null!=e.autoRenewPeriod&&Object.hasOwnProperty.call(e,"autoRenewPeriod")&&$root.proto.Duration.encode(e.autoRenewPeriod,t.uint32(66).fork()).ldelim(),null!=e.autoRenewAccount&&Object.hasOwnProperty.call(e,"autoRenewAccount")&&$root.proto.AccountID.encode(e.autoRenewAccount,t.uint32(74).fork()).ldelim(),null!=e.feeScheduleKey&&Object.hasOwnProperty.call(e,"feeScheduleKey")&&$root.proto.Key.encode(e.feeScheduleKey,t.uint32(82).fork()).ldelim(),null!=e.feeExemptKeyList&&Object.hasOwnProperty.call(e,"feeExemptKeyList")&&$root.proto.FeeExemptKeyList.encode(e.feeExemptKeyList,t.uint32(90).fork()).ldelim(),null!=e.customFees&&Object.hasOwnProperty.call(e,"customFees")&&$root.proto.FixedCustomFeeList.encode(e.customFees,t.uint32(98).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ConsensusUpdateTopicTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.topicID=$root.proto.TopicID.decode(e,e.uint32());break;case 2:o.memo=$root.google.protobuf.StringValue.decode(e,e.uint32());break;case 4:o.expirationTime=$root.proto.Timestamp.decode(e,e.uint32());break;case 6:o.adminKey=$root.proto.Key.decode(e,e.uint32());break;case 7:o.submitKey=$root.proto.Key.decode(e,e.uint32());break;case 8:o.autoRenewPeriod=$root.proto.Duration.decode(e,e.uint32());break;case 9:o.autoRenewAccount=$root.proto.AccountID.decode(e,e.uint32());break;case 10:o.feeScheduleKey=$root.proto.Key.decode(e,e.uint32());break;case 11:o.feeExemptKeyList=$root.proto.FeeExemptKeyList.decode(e,e.uint32());break;case 12:o.customFees=$root.proto.FixedCustomFeeList.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ConsensusUpdateTopicTransactionBody"},e}(),e.ConsensusDeleteTopicTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.topicID=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.topicID&&Object.hasOwnProperty.call(e,"topicID")&&$root.proto.TopicID.encode(e.topicID,t.uint32(10).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ConsensusDeleteTopicTransactionBody;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.topicID=$root.proto.TopicID.decode(e,e.uint32());else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ConsensusDeleteTopicTransactionBody"},e}(),e.ConsensusMessageChunkInfo=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.initialTransactionID=null,e.prototype.total=0,e.prototype.number=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.initialTransactionID&&Object.hasOwnProperty.call(e,"initialTransactionID")&&$root.proto.TransactionID.encode(e.initialTransactionID,t.uint32(10).fork()).ldelim(),null!=e.total&&Object.hasOwnProperty.call(e,"total")&&t.uint32(16).int32(e.total),null!=e.number&&Object.hasOwnProperty.call(e,"number")&&t.uint32(24).int32(e.number),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ConsensusMessageChunkInfo;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.initialTransactionID=$root.proto.TransactionID.decode(e,e.uint32());break;case 2:o.total=e.int32();break;case 3:o.number=e.int32();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ConsensusMessageChunkInfo"},e}(),e.ConsensusSubmitMessageTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.topicID=null,e.prototype.message=$util.newBuffer([]),e.prototype.chunkInfo=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.topicID&&Object.hasOwnProperty.call(e,"topicID")&&$root.proto.TopicID.encode(e.topicID,t.uint32(10).fork()).ldelim(),null!=e.message&&Object.hasOwnProperty.call(e,"message")&&t.uint32(18).bytes(e.message),null!=e.chunkInfo&&Object.hasOwnProperty.call(e,"chunkInfo")&&$root.proto.ConsensusMessageChunkInfo.encode(e.chunkInfo,t.uint32(26).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ConsensusSubmitMessageTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.topicID=$root.proto.TopicID.decode(e,e.uint32());break;case 2:o.message=e.bytes();break;case 3:o.chunkInfo=$root.proto.ConsensusMessageChunkInfo.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ConsensusSubmitMessageTransactionBody"},e}(),e.UncheckedSubmitBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.transactionBytes=$util.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.transactionBytes&&Object.hasOwnProperty.call(e,"transactionBytes")&&t.uint32(10).bytes(e.transactionBytes),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.UncheckedSubmitBody;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.transactionBytes=e.bytes();else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.UncheckedSubmitBody"},e}(),e.TokenCreateTransactionBody=function(){function e(e){if(this.customFees=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.name="",e.prototype.symbol="",e.prototype.decimals=0,e.prototype.initialSupply=$util.Long?$util.Long.fromBits(0,0,!0):0,e.prototype.treasury=null,e.prototype.adminKey=null,e.prototype.kycKey=null,e.prototype.freezeKey=null,e.prototype.wipeKey=null,e.prototype.supplyKey=null,e.prototype.freezeDefault=!1,e.prototype.expiry=null,e.prototype.autoRenewAccount=null,e.prototype.autoRenewPeriod=null,e.prototype.memo="",e.prototype.tokenType=0,e.prototype.supplyType=0,e.prototype.maxSupply=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.feeScheduleKey=null,e.prototype.customFees=$util.emptyArray,e.prototype.pauseKey=null,e.prototype.metadata=$util.newBuffer([]),e.prototype.metadataKey=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.symbol&&Object.hasOwnProperty.call(e,"symbol")&&t.uint32(18).string(e.symbol),null!=e.decimals&&Object.hasOwnProperty.call(e,"decimals")&&t.uint32(24).uint32(e.decimals),null!=e.initialSupply&&Object.hasOwnProperty.call(e,"initialSupply")&&t.uint32(32).uint64(e.initialSupply),null!=e.treasury&&Object.hasOwnProperty.call(e,"treasury")&&$root.proto.AccountID.encode(e.treasury,t.uint32(42).fork()).ldelim(),null!=e.adminKey&&Object.hasOwnProperty.call(e,"adminKey")&&$root.proto.Key.encode(e.adminKey,t.uint32(50).fork()).ldelim(),null!=e.kycKey&&Object.hasOwnProperty.call(e,"kycKey")&&$root.proto.Key.encode(e.kycKey,t.uint32(58).fork()).ldelim(),null!=e.freezeKey&&Object.hasOwnProperty.call(e,"freezeKey")&&$root.proto.Key.encode(e.freezeKey,t.uint32(66).fork()).ldelim(),null!=e.wipeKey&&Object.hasOwnProperty.call(e,"wipeKey")&&$root.proto.Key.encode(e.wipeKey,t.uint32(74).fork()).ldelim(),null!=e.supplyKey&&Object.hasOwnProperty.call(e,"supplyKey")&&$root.proto.Key.encode(e.supplyKey,t.uint32(82).fork()).ldelim(),null!=e.freezeDefault&&Object.hasOwnProperty.call(e,"freezeDefault")&&t.uint32(88).bool(e.freezeDefault),null!=e.expiry&&Object.hasOwnProperty.call(e,"expiry")&&$root.proto.Timestamp.encode(e.expiry,t.uint32(106).fork()).ldelim(),null!=e.autoRenewAccount&&Object.hasOwnProperty.call(e,"autoRenewAccount")&&$root.proto.AccountID.encode(e.autoRenewAccount,t.uint32(114).fork()).ldelim(),null!=e.autoRenewPeriod&&Object.hasOwnProperty.call(e,"autoRenewPeriod")&&$root.proto.Duration.encode(e.autoRenewPeriod,t.uint32(122).fork()).ldelim(),null!=e.memo&&Object.hasOwnProperty.call(e,"memo")&&t.uint32(130).string(e.memo),null!=e.tokenType&&Object.hasOwnProperty.call(e,"tokenType")&&t.uint32(136).int32(e.tokenType),null!=e.supplyType&&Object.hasOwnProperty.call(e,"supplyType")&&t.uint32(144).int32(e.supplyType),null!=e.maxSupply&&Object.hasOwnProperty.call(e,"maxSupply")&&t.uint32(152).int64(e.maxSupply),null!=e.feeScheduleKey&&Object.hasOwnProperty.call(e,"feeScheduleKey")&&$root.proto.Key.encode(e.feeScheduleKey,t.uint32(162).fork()).ldelim(),null!=e.customFees&&e.customFees.length)for(var r=0;r<e.customFees.length;++r)$root.proto.CustomFee.encode(e.customFees[r],t.uint32(170).fork()).ldelim();return null!=e.pauseKey&&Object.hasOwnProperty.call(e,"pauseKey")&&$root.proto.Key.encode(e.pauseKey,t.uint32(178).fork()).ldelim(),null!=e.metadata&&Object.hasOwnProperty.call(e,"metadata")&&t.uint32(186).bytes(e.metadata),null!=e.metadataKey&&Object.hasOwnProperty.call(e,"metadataKey")&&$root.proto.Key.encode(e.metadataKey,t.uint32(194).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenCreateTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.name=e.string();break;case 2:o.symbol=e.string();break;case 3:o.decimals=e.uint32();break;case 4:o.initialSupply=e.uint64();break;case 5:o.treasury=$root.proto.AccountID.decode(e,e.uint32());break;case 6:o.adminKey=$root.proto.Key.decode(e,e.uint32());break;case 7:o.kycKey=$root.proto.Key.decode(e,e.uint32());break;case 8:o.freezeKey=$root.proto.Key.decode(e,e.uint32());break;case 9:o.wipeKey=$root.proto.Key.decode(e,e.uint32());break;case 10:o.supplyKey=$root.proto.Key.decode(e,e.uint32());break;case 11:o.freezeDefault=e.bool();break;case 13:o.expiry=$root.proto.Timestamp.decode(e,e.uint32());break;case 14:o.autoRenewAccount=$root.proto.AccountID.decode(e,e.uint32());break;case 15:o.autoRenewPeriod=$root.proto.Duration.decode(e,e.uint32());break;case 16:o.memo=e.string();break;case 17:o.tokenType=e.int32();break;case 18:o.supplyType=e.int32();break;case 19:o.maxSupply=e.int64();break;case 20:o.feeScheduleKey=$root.proto.Key.decode(e,e.uint32());break;case 21:o.customFees&&o.customFees.length||(o.customFees=[]),o.customFees.push($root.proto.CustomFee.decode(e,e.uint32()));break;case 22:o.pauseKey=$root.proto.Key.decode(e,e.uint32());break;case 23:o.metadata=e.bytes();break;case 24:o.metadataKey=$root.proto.Key.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenCreateTransactionBody"},e}(),e.TokenFreezeAccountTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.token=null,e.prototype.account=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.token&&Object.hasOwnProperty.call(e,"token")&&$root.proto.TokenID.encode(e.token,t.uint32(10).fork()).ldelim(),null!=e.account&&Object.hasOwnProperty.call(e,"account")&&$root.proto.AccountID.encode(e.account,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenFreezeAccountTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.token=$root.proto.TokenID.decode(e,e.uint32());break;case 2:o.account=$root.proto.AccountID.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenFreezeAccountTransactionBody"},e}(),e.TokenUnfreezeAccountTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.token=null,e.prototype.account=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.token&&Object.hasOwnProperty.call(e,"token")&&$root.proto.TokenID.encode(e.token,t.uint32(10).fork()).ldelim(),null!=e.account&&Object.hasOwnProperty.call(e,"account")&&$root.proto.AccountID.encode(e.account,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenUnfreezeAccountTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.token=$root.proto.TokenID.decode(e,e.uint32());break;case 2:o.account=$root.proto.AccountID.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenUnfreezeAccountTransactionBody"},e}(),e.TokenGrantKycTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.token=null,e.prototype.account=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.token&&Object.hasOwnProperty.call(e,"token")&&$root.proto.TokenID.encode(e.token,t.uint32(10).fork()).ldelim(),null!=e.account&&Object.hasOwnProperty.call(e,"account")&&$root.proto.AccountID.encode(e.account,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenGrantKycTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.token=$root.proto.TokenID.decode(e,e.uint32());break;case 2:o.account=$root.proto.AccountID.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenGrantKycTransactionBody"},e}(),e.TokenRevokeKycTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.token=null,e.prototype.account=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.token&&Object.hasOwnProperty.call(e,"token")&&$root.proto.TokenID.encode(e.token,t.uint32(10).fork()).ldelim(),null!=e.account&&Object.hasOwnProperty.call(e,"account")&&$root.proto.AccountID.encode(e.account,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenRevokeKycTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.token=$root.proto.TokenID.decode(e,e.uint32());break;case 2:o.account=$root.proto.AccountID.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenRevokeKycTransactionBody"},e}(),e.TokenDeleteTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.token=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.token&&Object.hasOwnProperty.call(e,"token")&&$root.proto.TokenID.encode(e.token,t.uint32(10).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenDeleteTransactionBody;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.token=$root.proto.TokenID.decode(e,e.uint32());else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenDeleteTransactionBody"},e}(),e.TokenUpdateTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.token=null,e.prototype.symbol="",e.prototype.name="",e.prototype.treasury=null,e.prototype.adminKey=null,e.prototype.kycKey=null,e.prototype.freezeKey=null,e.prototype.wipeKey=null,e.prototype.supplyKey=null,e.prototype.autoRenewAccount=null,e.prototype.autoRenewPeriod=null,e.prototype.expiry=null,e.prototype.memo=null,e.prototype.feeScheduleKey=null,e.prototype.pauseKey=null,e.prototype.metadata=null,e.prototype.metadataKey=null,e.prototype.keyVerificationMode=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.token&&Object.hasOwnProperty.call(e,"token")&&$root.proto.TokenID.encode(e.token,t.uint32(10).fork()).ldelim(),null!=e.symbol&&Object.hasOwnProperty.call(e,"symbol")&&t.uint32(18).string(e.symbol),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(26).string(e.name),null!=e.treasury&&Object.hasOwnProperty.call(e,"treasury")&&$root.proto.AccountID.encode(e.treasury,t.uint32(34).fork()).ldelim(),null!=e.adminKey&&Object.hasOwnProperty.call(e,"adminKey")&&$root.proto.Key.encode(e.adminKey,t.uint32(42).fork()).ldelim(),null!=e.kycKey&&Object.hasOwnProperty.call(e,"kycKey")&&$root.proto.Key.encode(e.kycKey,t.uint32(50).fork()).ldelim(),null!=e.freezeKey&&Object.hasOwnProperty.call(e,"freezeKey")&&$root.proto.Key.encode(e.freezeKey,t.uint32(58).fork()).ldelim(),null!=e.wipeKey&&Object.hasOwnProperty.call(e,"wipeKey")&&$root.proto.Key.encode(e.wipeKey,t.uint32(66).fork()).ldelim(),null!=e.supplyKey&&Object.hasOwnProperty.call(e,"supplyKey")&&$root.proto.Key.encode(e.supplyKey,t.uint32(74).fork()).ldelim(),null!=e.autoRenewAccount&&Object.hasOwnProperty.call(e,"autoRenewAccount")&&$root.proto.AccountID.encode(e.autoRenewAccount,t.uint32(82).fork()).ldelim(),null!=e.autoRenewPeriod&&Object.hasOwnProperty.call(e,"autoRenewPeriod")&&$root.proto.Duration.encode(e.autoRenewPeriod,t.uint32(90).fork()).ldelim(),null!=e.expiry&&Object.hasOwnProperty.call(e,"expiry")&&$root.proto.Timestamp.encode(e.expiry,t.uint32(98).fork()).ldelim(),null!=e.memo&&Object.hasOwnProperty.call(e,"memo")&&$root.google.protobuf.StringValue.encode(e.memo,t.uint32(106).fork()).ldelim(),null!=e.feeScheduleKey&&Object.hasOwnProperty.call(e,"feeScheduleKey")&&$root.proto.Key.encode(e.feeScheduleKey,t.uint32(114).fork()).ldelim(),null!=e.pauseKey&&Object.hasOwnProperty.call(e,"pauseKey")&&$root.proto.Key.encode(e.pauseKey,t.uint32(122).fork()).ldelim(),null!=e.metadata&&Object.hasOwnProperty.call(e,"metadata")&&$root.google.protobuf.BytesValue.encode(e.metadata,t.uint32(130).fork()).ldelim(),null!=e.metadataKey&&Object.hasOwnProperty.call(e,"metadataKey")&&$root.proto.Key.encode(e.metadataKey,t.uint32(138).fork()).ldelim(),null!=e.keyVerificationMode&&Object.hasOwnProperty.call(e,"keyVerificationMode")&&t.uint32(144).int32(e.keyVerificationMode),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenUpdateTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.token=$root.proto.TokenID.decode(e,e.uint32());break;case 2:o.symbol=e.string();break;case 3:o.name=e.string();break;case 4:o.treasury=$root.proto.AccountID.decode(e,e.uint32());break;case 5:o.adminKey=$root.proto.Key.decode(e,e.uint32());break;case 6:o.kycKey=$root.proto.Key.decode(e,e.uint32());break;case 7:o.freezeKey=$root.proto.Key.decode(e,e.uint32());break;case 8:o.wipeKey=$root.proto.Key.decode(e,e.uint32());break;case 9:o.supplyKey=$root.proto.Key.decode(e,e.uint32());break;case 10:o.autoRenewAccount=$root.proto.AccountID.decode(e,e.uint32());break;case 11:o.autoRenewPeriod=$root.proto.Duration.decode(e,e.uint32());break;case 12:o.expiry=$root.proto.Timestamp.decode(e,e.uint32());break;case 13:o.memo=$root.google.protobuf.StringValue.decode(e,e.uint32());break;case 14:o.feeScheduleKey=$root.proto.Key.decode(e,e.uint32());break;case 15:o.pauseKey=$root.proto.Key.decode(e,e.uint32());break;case 16:o.metadata=$root.google.protobuf.BytesValue.decode(e,e.uint32());break;case 17:o.metadataKey=$root.proto.Key.decode(e,e.uint32());break;case 18:o.keyVerificationMode=e.int32();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenUpdateTransactionBody"},e}(),e.TokenMintTransactionBody=function(){function e(e){if(this.metadata=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.token=null,e.prototype.amount=$util.Long?$util.Long.fromBits(0,0,!0):0,e.prototype.metadata=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.token&&Object.hasOwnProperty.call(e,"token")&&$root.proto.TokenID.encode(e.token,t.uint32(10).fork()).ldelim(),null!=e.amount&&Object.hasOwnProperty.call(e,"amount")&&t.uint32(16).uint64(e.amount),null!=e.metadata&&e.metadata.length)for(var r=0;r<e.metadata.length;++r)t.uint32(26).bytes(e.metadata[r]);return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenMintTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.token=$root.proto.TokenID.decode(e,e.uint32());break;case 2:o.amount=e.uint64();break;case 3:o.metadata&&o.metadata.length||(o.metadata=[]),o.metadata.push(e.bytes());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenMintTransactionBody"},e}(),e.TokenBurnTransactionBody=function(){function e(e){if(this.serialNumbers=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.token=null,e.prototype.amount=$util.Long?$util.Long.fromBits(0,0,!0):0,e.prototype.serialNumbers=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.token&&Object.hasOwnProperty.call(e,"token")&&$root.proto.TokenID.encode(e.token,t.uint32(10).fork()).ldelim(),null!=e.amount&&Object.hasOwnProperty.call(e,"amount")&&t.uint32(16).uint64(e.amount),null!=e.serialNumbers&&e.serialNumbers.length){t.uint32(26).fork();for(var r=0;r<e.serialNumbers.length;++r)t.int64(e.serialNumbers[r]);t.ldelim()}return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenBurnTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.token=$root.proto.TokenID.decode(e,e.uint32());break;case 2:o.amount=e.uint64();break;case 3:if(o.serialNumbers&&o.serialNumbers.length||(o.serialNumbers=[]),2==(7&n))for(var i=e.uint32()+e.pos;e.pos<i;)o.serialNumbers.push(e.int64());else o.serialNumbers.push(e.int64());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenBurnTransactionBody"},e}(),e.TokenWipeAccountTransactionBody=function(){function e(e){if(this.serialNumbers=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.token=null,e.prototype.account=null,e.prototype.amount=$util.Long?$util.Long.fromBits(0,0,!0):0,e.prototype.serialNumbers=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.token&&Object.hasOwnProperty.call(e,"token")&&$root.proto.TokenID.encode(e.token,t.uint32(10).fork()).ldelim(),null!=e.account&&Object.hasOwnProperty.call(e,"account")&&$root.proto.AccountID.encode(e.account,t.uint32(18).fork()).ldelim(),null!=e.amount&&Object.hasOwnProperty.call(e,"amount")&&t.uint32(24).uint64(e.amount),null!=e.serialNumbers&&e.serialNumbers.length){t.uint32(34).fork();for(var r=0;r<e.serialNumbers.length;++r)t.int64(e.serialNumbers[r]);t.ldelim()}return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenWipeAccountTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.token=$root.proto.TokenID.decode(e,e.uint32());break;case 2:o.account=$root.proto.AccountID.decode(e,e.uint32());break;case 3:o.amount=e.uint64();break;case 4:if(o.serialNumbers&&o.serialNumbers.length||(o.serialNumbers=[]),2==(7&n))for(var i=e.uint32()+e.pos;e.pos<i;)o.serialNumbers.push(e.int64());else o.serialNumbers.push(e.int64());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenWipeAccountTransactionBody"},e}(),e.TokenAssociateTransactionBody=function(){function e(e){if(this.tokens=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.account=null,e.prototype.tokens=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.account&&Object.hasOwnProperty.call(e,"account")&&$root.proto.AccountID.encode(e.account,t.uint32(10).fork()).ldelim(),null!=e.tokens&&e.tokens.length)for(var r=0;r<e.tokens.length;++r)$root.proto.TokenID.encode(e.tokens[r],t.uint32(18).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenAssociateTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.account=$root.proto.AccountID.decode(e,e.uint32());break;case 2:o.tokens&&o.tokens.length||(o.tokens=[]),o.tokens.push($root.proto.TokenID.decode(e,e.uint32()));break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenAssociateTransactionBody"},e}(),e.TokenDissociateTransactionBody=function(){function e(e){if(this.tokens=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.account=null,e.prototype.tokens=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.account&&Object.hasOwnProperty.call(e,"account")&&$root.proto.AccountID.encode(e.account,t.uint32(10).fork()).ldelim(),null!=e.tokens&&e.tokens.length)for(var r=0;r<e.tokens.length;++r)$root.proto.TokenID.encode(e.tokens[r],t.uint32(18).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenDissociateTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.account=$root.proto.AccountID.decode(e,e.uint32());break;case 2:o.tokens&&o.tokens.length||(o.tokens=[]),o.tokens.push($root.proto.TokenID.decode(e,e.uint32()));break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenDissociateTransactionBody"},e}(),e.TokenFeeScheduleUpdateTransactionBody=function(){function e(e){if(this.customFees=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.tokenId=null,e.prototype.customFees=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.tokenId&&Object.hasOwnProperty.call(e,"tokenId")&&$root.proto.TokenID.encode(e.tokenId,t.uint32(10).fork()).ldelim(),null!=e.customFees&&e.customFees.length)for(var r=0;r<e.customFees.length;++r)$root.proto.CustomFee.encode(e.customFees[r],t.uint32(18).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenFeeScheduleUpdateTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.tokenId=$root.proto.TokenID.decode(e,e.uint32());break;case 2:o.customFees&&o.customFees.length||(o.customFees=[]),o.customFees.push($root.proto.CustomFee.decode(e,e.uint32()));break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenFeeScheduleUpdateTransactionBody"},e}(),e.TokenPauseTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.token=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.token&&Object.hasOwnProperty.call(e,"token")&&$root.proto.TokenID.encode(e.token,t.uint32(10).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenPauseTransactionBody;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.token=$root.proto.TokenID.decode(e,e.uint32());else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenPauseTransactionBody"},e}(),e.TokenUnpauseTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.token=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.token&&Object.hasOwnProperty.call(e,"token")&&$root.proto.TokenID.encode(e.token,t.uint32(10).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenUnpauseTransactionBody;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.token=$root.proto.TokenID.decode(e,e.uint32());else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenUnpauseTransactionBody"},e}(),e.TokenUpdateNftsTransactionBody=function(){function e(e){if(this.serialNumbers=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.token=null,e.prototype.serialNumbers=$util.emptyArray,e.prototype.metadata=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.token&&Object.hasOwnProperty.call(e,"token")&&$root.proto.TokenID.encode(e.token,t.uint32(10).fork()).ldelim(),null!=e.serialNumbers&&e.serialNumbers.length){t.uint32(18).fork();for(var r=0;r<e.serialNumbers.length;++r)t.int64(e.serialNumbers[r]);t.ldelim()}return null!=e.metadata&&Object.hasOwnProperty.call(e,"metadata")&&$root.google.protobuf.BytesValue.encode(e.metadata,t.uint32(26).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenUpdateNftsTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.token=$root.proto.TokenID.decode(e,e.uint32());break;case 2:if(o.serialNumbers&&o.serialNumbers.length||(o.serialNumbers=[]),2==(7&n))for(var i=e.uint32()+e.pos;e.pos<i;)o.serialNumbers.push(e.int64());else o.serialNumbers.push(e.int64());break;case 3:o.metadata=$root.google.protobuf.BytesValue.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenUpdateNftsTransactionBody"},e}(),e.TokenRejectTransactionBody=function(){function e(e){if(this.rejections=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.owner=null,e.prototype.rejections=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.owner&&Object.hasOwnProperty.call(e,"owner")&&$root.proto.AccountID.encode(e.owner,t.uint32(10).fork()).ldelim(),null!=e.rejections&&e.rejections.length)for(var r=0;r<e.rejections.length;++r)$root.proto.TokenReference.encode(e.rejections[r],t.uint32(18).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenRejectTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.owner=$root.proto.AccountID.decode(e,e.uint32());break;case 2:o.rejections&&o.rejections.length||(o.rejections=[]),o.rejections.push($root.proto.TokenReference.decode(e,e.uint32()));break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenRejectTransactionBody"},e}(),e.TokenReference=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.fungibleToken=null,e.prototype.nft=null,Object.defineProperty(e.prototype,"tokenIdentifier",{get:$util.oneOfGetter(t=["fungibleToken","nft"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.fungibleToken&&Object.hasOwnProperty.call(e,"fungibleToken")&&$root.proto.TokenID.encode(e.fungibleToken,t.uint32(10).fork()).ldelim(),null!=e.nft&&Object.hasOwnProperty.call(e,"nft")&&$root.proto.NftID.encode(e.nft,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenReference;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.fungibleToken=$root.proto.TokenID.decode(e,e.uint32());break;case 2:o.nft=$root.proto.NftID.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenReference"},e}(),e.TokenAirdropTransactionBody=function(){function e(e){if(this.tokenTransfers=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.tokenTransfers=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.tokenTransfers&&e.tokenTransfers.length)for(var r=0;r<e.tokenTransfers.length;++r)$root.proto.TokenTransferList.encode(e.tokenTransfers[r],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenAirdropTransactionBody;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.tokenTransfers&&o.tokenTransfers.length||(o.tokenTransfers=[]),o.tokenTransfers.push($root.proto.TokenTransferList.decode(e,e.uint32()));else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenAirdropTransactionBody"},e}(),e.TokenCancelAirdropTransactionBody=function(){function e(e){if(this.pendingAirdrops=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.pendingAirdrops=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.pendingAirdrops&&e.pendingAirdrops.length)for(var r=0;r<e.pendingAirdrops.length;++r)$root.proto.PendingAirdropId.encode(e.pendingAirdrops[r],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenCancelAirdropTransactionBody;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.pendingAirdrops&&o.pendingAirdrops.length||(o.pendingAirdrops=[]),o.pendingAirdrops.push($root.proto.PendingAirdropId.decode(e,e.uint32()));else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenCancelAirdropTransactionBody"},e}(),e.TokenClaimAirdropTransactionBody=function(){function e(e){if(this.pendingAirdrops=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.pendingAirdrops=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.pendingAirdrops&&e.pendingAirdrops.length)for(var r=0;r<e.pendingAirdrops.length;++r)$root.proto.PendingAirdropId.encode(e.pendingAirdrops[r],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenClaimAirdropTransactionBody;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.pendingAirdrops&&o.pendingAirdrops.length||(o.pendingAirdrops=[]),o.pendingAirdrops.push($root.proto.PendingAirdropId.decode(e,e.uint32()));else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenClaimAirdropTransactionBody"},e}(),e.ScheduleCreateTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.scheduledTransactionBody=null,e.prototype.memo="",e.prototype.adminKey=null,e.prototype.payerAccountID=null,e.prototype.expirationTime=null,e.prototype.waitForExpiry=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.scheduledTransactionBody&&Object.hasOwnProperty.call(e,"scheduledTransactionBody")&&$root.proto.SchedulableTransactionBody.encode(e.scheduledTransactionBody,t.uint32(10).fork()).ldelim(),null!=e.memo&&Object.hasOwnProperty.call(e,"memo")&&t.uint32(18).string(e.memo),null!=e.adminKey&&Object.hasOwnProperty.call(e,"adminKey")&&$root.proto.Key.encode(e.adminKey,t.uint32(26).fork()).ldelim(),null!=e.payerAccountID&&Object.hasOwnProperty.call(e,"payerAccountID")&&$root.proto.AccountID.encode(e.payerAccountID,t.uint32(34).fork()).ldelim(),null!=e.expirationTime&&Object.hasOwnProperty.call(e,"expirationTime")&&$root.proto.Timestamp.encode(e.expirationTime,t.uint32(42).fork()).ldelim(),null!=e.waitForExpiry&&Object.hasOwnProperty.call(e,"waitForExpiry")&&t.uint32(104).bool(e.waitForExpiry),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ScheduleCreateTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.scheduledTransactionBody=$root.proto.SchedulableTransactionBody.decode(e,e.uint32());break;case 2:o.memo=e.string();break;case 3:o.adminKey=$root.proto.Key.decode(e,e.uint32());break;case 4:o.payerAccountID=$root.proto.AccountID.decode(e,e.uint32());break;case 5:o.expirationTime=$root.proto.Timestamp.decode(e,e.uint32());break;case 13:o.waitForExpiry=e.bool();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ScheduleCreateTransactionBody"},e}(),e.SchedulableTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.transactionFee=$util.Long?$util.Long.fromBits(0,0,!0):0,e.prototype.memo="",e.prototype.contractCall=null,e.prototype.contractCreateInstance=null,e.prototype.contractUpdateInstance=null,e.prototype.contractDeleteInstance=null,e.prototype.cryptoCreateAccount=null,e.prototype.cryptoDelete=null,e.prototype.cryptoTransfer=null,e.prototype.cryptoUpdateAccount=null,e.prototype.fileAppend=null,e.prototype.fileCreate=null,e.prototype.fileDelete=null,e.prototype.fileUpdate=null,e.prototype.systemDelete=null,e.prototype.systemUndelete=null,e.prototype.freeze=null,e.prototype.consensusCreateTopic=null,e.prototype.consensusUpdateTopic=null,e.prototype.consensusDeleteTopic=null,e.prototype.consensusSubmitMessage=null,e.prototype.tokenCreation=null,e.prototype.tokenFreeze=null,e.prototype.tokenUnfreeze=null,e.prototype.tokenGrantKyc=null,e.prototype.tokenRevokeKyc=null,e.prototype.tokenDeletion=null,e.prototype.tokenUpdate=null,e.prototype.tokenMint=null,e.prototype.tokenBurn=null,e.prototype.tokenWipe=null,e.prototype.tokenAssociate=null,e.prototype.tokenDissociate=null,e.prototype.scheduleDelete=null,e.prototype.tokenPause=null,e.prototype.tokenUnpause=null,e.prototype.cryptoApproveAllowance=null,e.prototype.cryptoDeleteAllowance=null,e.prototype.tokenFeeScheduleUpdate=null,e.prototype.utilPrng=null,e.prototype.tokenUpdateNfts=null,e.prototype.nodeCreate=null,e.prototype.nodeUpdate=null,e.prototype.nodeDelete=null,e.prototype.tokenReject=null,e.prototype.tokenCancelAirdrop=null,e.prototype.tokenClaimAirdrop=null,e.prototype.tokenAirdrop=null,Object.defineProperty(e.prototype,"data",{get:$util.oneOfGetter(t=["contractCall","contractCreateInstance","contractUpdateInstance","contractDeleteInstance","cryptoCreateAccount","cryptoDelete","cryptoTransfer","cryptoUpdateAccount","fileAppend","fileCreate","fileDelete","fileUpdate","systemDelete","systemUndelete","freeze","consensusCreateTopic","consensusUpdateTopic","consensusDeleteTopic","consensusSubmitMessage","tokenCreation","tokenFreeze","tokenUnfreeze","tokenGrantKyc","tokenRevokeKyc","tokenDeletion","tokenUpdate","tokenMint","tokenBurn","tokenWipe","tokenAssociate","tokenDissociate","scheduleDelete","tokenPause","tokenUnpause","cryptoApproveAllowance","cryptoDeleteAllowance","tokenFeeScheduleUpdate","utilPrng","tokenUpdateNfts","nodeCreate","nodeUpdate","nodeDelete","tokenReject","tokenCancelAirdrop","tokenClaimAirdrop","tokenAirdrop"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.transactionFee&&Object.hasOwnProperty.call(e,"transactionFee")&&t.uint32(8).uint64(e.transactionFee),null!=e.memo&&Object.hasOwnProperty.call(e,"memo")&&t.uint32(18).string(e.memo),null!=e.contractCall&&Object.hasOwnProperty.call(e,"contractCall")&&$root.proto.ContractCallTransactionBody.encode(e.contractCall,t.uint32(26).fork()).ldelim(),null!=e.contractCreateInstance&&Object.hasOwnProperty.call(e,"contractCreateInstance")&&$root.proto.ContractCreateTransactionBody.encode(e.contractCreateInstance,t.uint32(34).fork()).ldelim(),null!=e.contractUpdateInstance&&Object.hasOwnProperty.call(e,"contractUpdateInstance")&&$root.proto.ContractUpdateTransactionBody.encode(e.contractUpdateInstance,t.uint32(42).fork()).ldelim(),null!=e.contractDeleteInstance&&Object.hasOwnProperty.call(e,"contractDeleteInstance")&&$root.proto.ContractDeleteTransactionBody.encode(e.contractDeleteInstance,t.uint32(50).fork()).ldelim(),null!=e.cryptoCreateAccount&&Object.hasOwnProperty.call(e,"cryptoCreateAccount")&&$root.proto.CryptoCreateTransactionBody.encode(e.cryptoCreateAccount,t.uint32(58).fork()).ldelim(),null!=e.cryptoDelete&&Object.hasOwnProperty.call(e,"cryptoDelete")&&$root.proto.CryptoDeleteTransactionBody.encode(e.cryptoDelete,t.uint32(66).fork()).ldelim(),null!=e.cryptoTransfer&&Object.hasOwnProperty.call(e,"cryptoTransfer")&&$root.proto.CryptoTransferTransactionBody.encode(e.cryptoTransfer,t.uint32(74).fork()).ldelim(),null!=e.cryptoUpdateAccount&&Object.hasOwnProperty.call(e,"cryptoUpdateAccount")&&$root.proto.CryptoUpdateTransactionBody.encode(e.cryptoUpdateAccount,t.uint32(82).fork()).ldelim(),null!=e.fileAppend&&Object.hasOwnProperty.call(e,"fileAppend")&&$root.proto.FileAppendTransactionBody.encode(e.fileAppend,t.uint32(90).fork()).ldelim(),null!=e.fileCreate&&Object.hasOwnProperty.call(e,"fileCreate")&&$root.proto.FileCreateTransactionBody.encode(e.fileCreate,t.uint32(98).fork()).ldelim(),null!=e.fileDelete&&Object.hasOwnProperty.call(e,"fileDelete")&&$root.proto.FileDeleteTransactionBody.encode(e.fileDelete,t.uint32(106).fork()).ldelim(),null!=e.fileUpdate&&Object.hasOwnProperty.call(e,"fileUpdate")&&$root.proto.FileUpdateTransactionBody.encode(e.fileUpdate,t.uint32(114).fork()).ldelim(),null!=e.systemDelete&&Object.hasOwnProperty.call(e,"systemDelete")&&$root.proto.SystemDeleteTransactionBody.encode(e.systemDelete,t.uint32(122).fork()).ldelim(),null!=e.systemUndelete&&Object.hasOwnProperty.call(e,"systemUndelete")&&$root.proto.SystemUndeleteTransactionBody.encode(e.systemUndelete,t.uint32(130).fork()).ldelim(),null!=e.freeze&&Object.hasOwnProperty.call(e,"freeze")&&$root.proto.FreezeTransactionBody.encode(e.freeze,t.uint32(138).fork()).ldelim(),null!=e.consensusCreateTopic&&Object.hasOwnProperty.call(e,"consensusCreateTopic")&&$root.proto.ConsensusCreateTopicTransactionBody.encode(e.consensusCreateTopic,t.uint32(146).fork()).ldelim(),null!=e.consensusUpdateTopic&&Object.hasOwnProperty.call(e,"consensusUpdateTopic")&&$root.proto.ConsensusUpdateTopicTransactionBody.encode(e.consensusUpdateTopic,t.uint32(154).fork()).ldelim(),null!=e.consensusDeleteTopic&&Object.hasOwnProperty.call(e,"consensusDeleteTopic")&&$root.proto.ConsensusDeleteTopicTransactionBody.encode(e.consensusDeleteTopic,t.uint32(162).fork()).ldelim(),null!=e.consensusSubmitMessage&&Object.hasOwnProperty.call(e,"consensusSubmitMessage")&&$root.proto.ConsensusSubmitMessageTransactionBody.encode(e.consensusSubmitMessage,t.uint32(170).fork()).ldelim(),null!=e.tokenCreation&&Object.hasOwnProperty.call(e,"tokenCreation")&&$root.proto.TokenCreateTransactionBody.encode(e.tokenCreation,t.uint32(178).fork()).ldelim(),null!=e.tokenFreeze&&Object.hasOwnProperty.call(e,"tokenFreeze")&&$root.proto.TokenFreezeAccountTransactionBody.encode(e.tokenFreeze,t.uint32(186).fork()).ldelim(),null!=e.tokenUnfreeze&&Object.hasOwnProperty.call(e,"tokenUnfreeze")&&$root.proto.TokenUnfreezeAccountTransactionBody.encode(e.tokenUnfreeze,t.uint32(194).fork()).ldelim(),null!=e.tokenGrantKyc&&Object.hasOwnProperty.call(e,"tokenGrantKyc")&&$root.proto.TokenGrantKycTransactionBody.encode(e.tokenGrantKyc,t.uint32(202).fork()).ldelim(),null!=e.tokenRevokeKyc&&Object.hasOwnProperty.call(e,"tokenRevokeKyc")&&$root.proto.TokenRevokeKycTransactionBody.encode(e.tokenRevokeKyc,t.uint32(210).fork()).ldelim(),null!=e.tokenDeletion&&Object.hasOwnProperty.call(e,"tokenDeletion")&&$root.proto.TokenDeleteTransactionBody.encode(e.tokenDeletion,t.uint32(218).fork()).ldelim(),null!=e.tokenUpdate&&Object.hasOwnProperty.call(e,"tokenUpdate")&&$root.proto.TokenUpdateTransactionBody.encode(e.tokenUpdate,t.uint32(226).fork()).ldelim(),null!=e.tokenMint&&Object.hasOwnProperty.call(e,"tokenMint")&&$root.proto.TokenMintTransactionBody.encode(e.tokenMint,t.uint32(234).fork()).ldelim(),null!=e.tokenBurn&&Object.hasOwnProperty.call(e,"tokenBurn")&&$root.proto.TokenBurnTransactionBody.encode(e.tokenBurn,t.uint32(242).fork()).ldelim(),null!=e.tokenWipe&&Object.hasOwnProperty.call(e,"tokenWipe")&&$root.proto.TokenWipeAccountTransactionBody.encode(e.tokenWipe,t.uint32(250).fork()).ldelim(),null!=e.tokenAssociate&&Object.hasOwnProperty.call(e,"tokenAssociate")&&$root.proto.TokenAssociateTransactionBody.encode(e.tokenAssociate,t.uint32(258).fork()).ldelim(),null!=e.tokenDissociate&&Object.hasOwnProperty.call(e,"tokenDissociate")&&$root.proto.TokenDissociateTransactionBody.encode(e.tokenDissociate,t.uint32(266).fork()).ldelim(),null!=e.scheduleDelete&&Object.hasOwnProperty.call(e,"scheduleDelete")&&$root.proto.ScheduleDeleteTransactionBody.encode(e.scheduleDelete,t.uint32(274).fork()).ldelim(),null!=e.tokenPause&&Object.hasOwnProperty.call(e,"tokenPause")&&$root.proto.TokenPauseTransactionBody.encode(e.tokenPause,t.uint32(282).fork()).ldelim(),null!=e.tokenUnpause&&Object.hasOwnProperty.call(e,"tokenUnpause")&&$root.proto.TokenUnpauseTransactionBody.encode(e.tokenUnpause,t.uint32(290).fork()).ldelim(),null!=e.cryptoApproveAllowance&&Object.hasOwnProperty.call(e,"cryptoApproveAllowance")&&$root.proto.CryptoApproveAllowanceTransactionBody.encode(e.cryptoApproveAllowance,t.uint32(298).fork()).ldelim(),null!=e.cryptoDeleteAllowance&&Object.hasOwnProperty.call(e,"cryptoDeleteAllowance")&&$root.proto.CryptoDeleteAllowanceTransactionBody.encode(e.cryptoDeleteAllowance,t.uint32(306).fork()).ldelim(),null!=e.tokenFeeScheduleUpdate&&Object.hasOwnProperty.call(e,"tokenFeeScheduleUpdate")&&$root.proto.TokenFeeScheduleUpdateTransactionBody.encode(e.tokenFeeScheduleUpdate,t.uint32(314).fork()).ldelim(),null!=e.utilPrng&&Object.hasOwnProperty.call(e,"utilPrng")&&$root.proto.UtilPrngTransactionBody.encode(e.utilPrng,t.uint32(322).fork()).ldelim(),null!=e.tokenUpdateNfts&&Object.hasOwnProperty.call(e,"tokenUpdateNfts")&&$root.proto.TokenUpdateNftsTransactionBody.encode(e.tokenUpdateNfts,t.uint32(330).fork()).ldelim(),null!=e.nodeCreate&&Object.hasOwnProperty.call(e,"nodeCreate")&&$root.com.hedera.hapi.node.addressbook.NodeCreateTransactionBody.encode(e.nodeCreate,t.uint32(338).fork()).ldelim(),null!=e.nodeUpdate&&Object.hasOwnProperty.call(e,"nodeUpdate")&&$root.com.hedera.hapi.node.addressbook.NodeUpdateTransactionBody.encode(e.nodeUpdate,t.uint32(346).fork()).ldelim(),null!=e.nodeDelete&&Object.hasOwnProperty.call(e,"nodeDelete")&&$root.com.hedera.hapi.node.addressbook.NodeDeleteTransactionBody.encode(e.nodeDelete,t.uint32(354).fork()).ldelim(),null!=e.tokenReject&&Object.hasOwnProperty.call(e,"tokenReject")&&$root.proto.TokenRejectTransactionBody.encode(e.tokenReject,t.uint32(362).fork()).ldelim(),null!=e.tokenCancelAirdrop&&Object.hasOwnProperty.call(e,"tokenCancelAirdrop")&&$root.proto.TokenCancelAirdropTransactionBody.encode(e.tokenCancelAirdrop,t.uint32(370).fork()).ldelim(),null!=e.tokenClaimAirdrop&&Object.hasOwnProperty.call(e,"tokenClaimAirdrop")&&$root.proto.TokenClaimAirdropTransactionBody.encode(e.tokenClaimAirdrop,t.uint32(378).fork()).ldelim(),null!=e.tokenAirdrop&&Object.hasOwnProperty.call(e,"tokenAirdrop")&&$root.proto.TokenAirdropTransactionBody.encode(e.tokenAirdrop,t.uint32(386).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.SchedulableTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.transactionFee=e.uint64();break;case 2:o.memo=e.string();break;case 3:o.contractCall=$root.proto.ContractCallTransactionBody.decode(e,e.uint32());break;case 4:o.contractCreateInstance=$root.proto.ContractCreateTransactionBody.decode(e,e.uint32());break;case 5:o.contractUpdateInstance=$root.proto.ContractUpdateTransactionBody.decode(e,e.uint32());break;case 6:o.contractDeleteInstance=$root.proto.ContractDeleteTransactionBody.decode(e,e.uint32());break;case 7:o.cryptoCreateAccount=$root.proto.CryptoCreateTransactionBody.decode(e,e.uint32());break;case 8:o.cryptoDelete=$root.proto.CryptoDeleteTransactionBody.decode(e,e.uint32());break;case 9:o.cryptoTransfer=$root.proto.CryptoTransferTransactionBody.decode(e,e.uint32());break;case 10:o.cryptoUpdateAccount=$root.proto.CryptoUpdateTransactionBody.decode(e,e.uint32());break;case 11:o.fileAppend=$root.proto.FileAppendTransactionBody.decode(e,e.uint32());break;case 12:o.fileCreate=$root.proto.FileCreateTransactionBody.decode(e,e.uint32());break;case 13:o.fileDelete=$root.proto.FileDeleteTransactionBody.decode(e,e.uint32());break;case 14:o.fileUpdate=$root.proto.FileUpdateTransactionBody.decode(e,e.uint32());break;case 15:o.systemDelete=$root.proto.SystemDeleteTransactionBody.decode(e,e.uint32());break;case 16:o.systemUndelete=$root.proto.SystemUndeleteTransactionBody.decode(e,e.uint32());break;case 17:o.freeze=$root.proto.FreezeTransactionBody.decode(e,e.uint32());break;case 18:o.consensusCreateTopic=$root.proto.ConsensusCreateTopicTransactionBody.decode(e,e.uint32());break;case 19:o.consensusUpdateTopic=$root.proto.ConsensusUpdateTopicTransactionBody.decode(e,e.uint32());break;case 20:o.consensusDeleteTopic=$root.proto.ConsensusDeleteTopicTransactionBody.decode(e,e.uint32());break;case 21:o.consensusSubmitMessage=$root.proto.ConsensusSubmitMessageTransactionBody.decode(e,e.uint32());break;case 22:o.tokenCreation=$root.proto.TokenCreateTransactionBody.decode(e,e.uint32());break;case 23:o.tokenFreeze=$root.proto.TokenFreezeAccountTransactionBody.decode(e,e.uint32());break;case 24:o.tokenUnfreeze=$root.proto.TokenUnfreezeAccountTransactionBody.decode(e,e.uint32());break;case 25:o.tokenGrantKyc=$root.proto.TokenGrantKycTransactionBody.decode(e,e.uint32());break;case 26:o.tokenRevokeKyc=$root.proto.TokenRevokeKycTransactionBody.decode(e,e.uint32());break;case 27:o.tokenDeletion=$root.proto.TokenDeleteTransactionBody.decode(e,e.uint32());break;case 28:o.tokenUpdate=$root.proto.TokenUpdateTransactionBody.decode(e,e.uint32());break;case 29:o.tokenMint=$root.proto.TokenMintTransactionBody.decode(e,e.uint32());break;case 30:o.tokenBurn=$root.proto.TokenBurnTransactionBody.decode(e,e.uint32());break;case 31:o.tokenWipe=$root.proto.TokenWipeAccountTransactionBody.decode(e,e.uint32());break;case 32:o.tokenAssociate=$root.proto.TokenAssociateTransactionBody.decode(e,e.uint32());break;case 33:o.tokenDissociate=$root.proto.TokenDissociateTransactionBody.decode(e,e.uint32());break;case 34:o.scheduleDelete=$root.proto.ScheduleDeleteTransactionBody.decode(e,e.uint32());break;case 35:o.tokenPause=$root.proto.TokenPauseTransactionBody.decode(e,e.uint32());break;case 36:o.tokenUnpause=$root.proto.TokenUnpauseTransactionBody.decode(e,e.uint32());break;case 37:o.cryptoApproveAllowance=$root.proto.CryptoApproveAllowanceTransactionBody.decode(e,e.uint32());break;case 38:o.cryptoDeleteAllowance=$root.proto.CryptoDeleteAllowanceTransactionBody.decode(e,e.uint32());break;case 39:o.tokenFeeScheduleUpdate=$root.proto.TokenFeeScheduleUpdateTransactionBody.decode(e,e.uint32());break;case 40:o.utilPrng=$root.proto.UtilPrngTransactionBody.decode(e,e.uint32());break;case 41:o.tokenUpdateNfts=$root.proto.TokenUpdateNftsTransactionBody.decode(e,e.uint32());break;case 42:o.nodeCreate=$root.com.hedera.hapi.node.addressbook.NodeCreateTransactionBody.decode(e,e.uint32());break;case 43:o.nodeUpdate=$root.com.hedera.hapi.node.addressbook.NodeUpdateTransactionBody.decode(e,e.uint32());break;case 44:o.nodeDelete=$root.com.hedera.hapi.node.addressbook.NodeDeleteTransactionBody.decode(e,e.uint32());break;case 45:o.tokenReject=$root.proto.TokenRejectTransactionBody.decode(e,e.uint32());break;case 46:o.tokenCancelAirdrop=$root.proto.TokenCancelAirdropTransactionBody.decode(e,e.uint32());break;case 47:o.tokenClaimAirdrop=$root.proto.TokenClaimAirdropTransactionBody.decode(e,e.uint32());break;case 48:o.tokenAirdrop=$root.proto.TokenAirdropTransactionBody.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.SchedulableTransactionBody"},e}(),e.ScheduleDeleteTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.scheduleID=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.scheduleID&&Object.hasOwnProperty.call(e,"scheduleID")&&$root.proto.ScheduleID.encode(e.scheduleID,t.uint32(10).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ScheduleDeleteTransactionBody;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.scheduleID=$root.proto.ScheduleID.decode(e,e.uint32());else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ScheduleDeleteTransactionBody"},e}(),e.UtilPrngTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.range=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.range&&Object.hasOwnProperty.call(e,"range")&&t.uint32(8).int32(e.range),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.UtilPrngTransactionBody;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.range=e.int32();else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.UtilPrngTransactionBody"},e}(),e.ScheduleSignTransactionBody=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.scheduleID=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.scheduleID&&Object.hasOwnProperty.call(e,"scheduleID")&&$root.proto.ScheduleID.encode(e.scheduleID,t.uint32(10).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ScheduleSignTransactionBody;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.scheduleID=$root.proto.ScheduleID.decode(e,e.uint32());else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ScheduleSignTransactionBody"},e}(),e.NodeStakeUpdateTransactionBody=function(){function e(e){if(this.nodeStake=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.endOfStakingPeriod=null,e.prototype.nodeStake=$util.emptyArray,e.prototype.maxStakingRewardRatePerHbar=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.nodeRewardFeeFraction=null,e.prototype.stakingPeriodsStored=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.stakingPeriod=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.stakingRewardFeeFraction=null,e.prototype.stakingStartThreshold=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.stakingRewardRate=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.reservedStakingRewards=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.unreservedStakingRewardBalance=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.rewardBalanceThreshold=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.maxStakeRewarded=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.maxTotalReward=$util.Long?$util.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.endOfStakingPeriod&&Object.hasOwnProperty.call(e,"endOfStakingPeriod")&&$root.proto.Timestamp.encode(e.endOfStakingPeriod,t.uint32(10).fork()).ldelim(),null!=e.nodeStake&&e.nodeStake.length)for(var r=0;r<e.nodeStake.length;++r)$root.proto.NodeStake.encode(e.nodeStake[r],t.uint32(18).fork()).ldelim();return null!=e.maxStakingRewardRatePerHbar&&Object.hasOwnProperty.call(e,"maxStakingRewardRatePerHbar")&&t.uint32(24).int64(e.maxStakingRewardRatePerHbar),null!=e.nodeRewardFeeFraction&&Object.hasOwnProperty.call(e,"nodeRewardFeeFraction")&&$root.proto.Fraction.encode(e.nodeRewardFeeFraction,t.uint32(34).fork()).ldelim(),null!=e.stakingPeriodsStored&&Object.hasOwnProperty.call(e,"stakingPeriodsStored")&&t.uint32(40).int64(e.stakingPeriodsStored),null!=e.stakingPeriod&&Object.hasOwnProperty.call(e,"stakingPeriod")&&t.uint32(48).int64(e.stakingPeriod),null!=e.stakingRewardFeeFraction&&Object.hasOwnProperty.call(e,"stakingRewardFeeFraction")&&$root.proto.Fraction.encode(e.stakingRewardFeeFraction,t.uint32(58).fork()).ldelim(),null!=e.stakingStartThreshold&&Object.hasOwnProperty.call(e,"stakingStartThreshold")&&t.uint32(64).int64(e.stakingStartThreshold),null!=e.stakingRewardRate&&Object.hasOwnProperty.call(e,"stakingRewardRate")&&t.uint32(72).int64(e.stakingRewardRate),null!=e.reservedStakingRewards&&Object.hasOwnProperty.call(e,"reservedStakingRewards")&&t.uint32(80).int64(e.reservedStakingRewards),null!=e.unreservedStakingRewardBalance&&Object.hasOwnProperty.call(e,"unreservedStakingRewardBalance")&&t.uint32(88).int64(e.unreservedStakingRewardBalance),null!=e.rewardBalanceThreshold&&Object.hasOwnProperty.call(e,"rewardBalanceThreshold")&&t.uint32(96).int64(e.rewardBalanceThreshold),null!=e.maxStakeRewarded&&Object.hasOwnProperty.call(e,"maxStakeRewarded")&&t.uint32(104).int64(e.maxStakeRewarded),null!=e.maxTotalReward&&Object.hasOwnProperty.call(e,"maxTotalReward")&&t.uint32(112).int64(e.maxTotalReward),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.NodeStakeUpdateTransactionBody;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.endOfStakingPeriod=$root.proto.Timestamp.decode(e,e.uint32());break;case 2:o.nodeStake&&o.nodeStake.length||(o.nodeStake=[]),o.nodeStake.push($root.proto.NodeStake.decode(e,e.uint32()));break;case 3:o.maxStakingRewardRatePerHbar=e.int64();break;case 4:o.nodeRewardFeeFraction=$root.proto.Fraction.decode(e,e.uint32());break;case 5:o.stakingPeriodsStored=e.int64();break;case 6:o.stakingPeriod=e.int64();break;case 7:o.stakingRewardFeeFraction=$root.proto.Fraction.decode(e,e.uint32());break;case 8:o.stakingStartThreshold=e.int64();break;case 9:o.stakingRewardRate=e.int64();break;case 10:o.reservedStakingRewards=e.int64();break;case 11:o.unreservedStakingRewardBalance=e.int64();break;case 12:o.rewardBalanceThreshold=e.int64();break;case 13:o.maxStakeRewarded=e.int64();break;case 14:o.maxTotalReward=e.int64();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.NodeStakeUpdateTransactionBody"},e}(),e.NodeStake=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.maxStake=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.minStake=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.nodeId=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.rewardRate=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.stake=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.stakeNotRewarded=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.stakeRewarded=$util.Long?$util.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.maxStake&&Object.hasOwnProperty.call(e,"maxStake")&&t.uint32(8).int64(e.maxStake),null!=e.minStake&&Object.hasOwnProperty.call(e,"minStake")&&t.uint32(16).int64(e.minStake),null!=e.nodeId&&Object.hasOwnProperty.call(e,"nodeId")&&t.uint32(24).int64(e.nodeId),null!=e.rewardRate&&Object.hasOwnProperty.call(e,"rewardRate")&&t.uint32(32).int64(e.rewardRate),null!=e.stake&&Object.hasOwnProperty.call(e,"stake")&&t.uint32(40).int64(e.stake),null!=e.stakeNotRewarded&&Object.hasOwnProperty.call(e,"stakeNotRewarded")&&t.uint32(48).int64(e.stakeNotRewarded),null!=e.stakeRewarded&&Object.hasOwnProperty.call(e,"stakeRewarded")&&t.uint32(56).int64(e.stakeRewarded),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.NodeStake;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.maxStake=e.int64();break;case 2:o.minStake=e.int64();break;case 3:o.nodeId=e.int64();break;case 4:o.rewardRate=e.int64();break;case 5:o.stake=e.int64();break;case 6:o.stakeNotRewarded=e.int64();break;case 7:o.stakeRewarded=e.int64();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.NodeStake"},e}(),e.ConsensusGetTopicInfoQuery=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.topicID=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.QueryHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.topicID&&Object.hasOwnProperty.call(e,"topicID")&&$root.proto.TopicID.encode(e.topicID,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ConsensusGetTopicInfoQuery;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.QueryHeader.decode(e,e.uint32());break;case 2:o.topicID=$root.proto.TopicID.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ConsensusGetTopicInfoQuery"},e}(),e.ConsensusGetTopicInfoResponse=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.topicID=null,e.prototype.topicInfo=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.ResponseHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.topicID&&Object.hasOwnProperty.call(e,"topicID")&&$root.proto.TopicID.encode(e.topicID,t.uint32(18).fork()).ldelim(),null!=e.topicInfo&&Object.hasOwnProperty.call(e,"topicInfo")&&$root.proto.ConsensusTopicInfo.encode(e.topicInfo,t.uint32(42).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ConsensusGetTopicInfoResponse;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.ResponseHeader.decode(e,e.uint32());break;case 2:o.topicID=$root.proto.TopicID.decode(e,e.uint32());break;case 5:o.topicInfo=$root.proto.ConsensusTopicInfo.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ConsensusGetTopicInfoResponse"},e}(),e.ResponseType=function(){const e={},t=Object.create(e);return t[e[0]="ANSWER_ONLY"]=0,t[e[1]="ANSWER_STATE_PROOF"]=1,t[e[2]="COST_ANSWER"]=2,t[e[3]="COST_ANSWER_STATE_PROOF"]=3,t}(),e.QueryHeader=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.payment=null,e.prototype.responseType=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.payment&&Object.hasOwnProperty.call(e,"payment")&&$root.proto.Transaction.encode(e.payment,t.uint32(10).fork()).ldelim(),null!=e.responseType&&Object.hasOwnProperty.call(e,"responseType")&&t.uint32(16).int32(e.responseType),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.QueryHeader;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.payment=$root.proto.Transaction.decode(e,e.uint32());break;case 2:o.responseType=e.int32();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.QueryHeader"},e}(),e.ResponseHeader=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.nodeTransactionPrecheckCode=0,e.prototype.responseType=0,e.prototype.cost=$util.Long?$util.Long.fromBits(0,0,!0):0,e.prototype.stateProof=$util.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.nodeTransactionPrecheckCode&&Object.hasOwnProperty.call(e,"nodeTransactionPrecheckCode")&&t.uint32(8).int32(e.nodeTransactionPrecheckCode),null!=e.responseType&&Object.hasOwnProperty.call(e,"responseType")&&t.uint32(16).int32(e.responseType),null!=e.cost&&Object.hasOwnProperty.call(e,"cost")&&t.uint32(24).uint64(e.cost),null!=e.stateProof&&Object.hasOwnProperty.call(e,"stateProof")&&t.uint32(34).bytes(e.stateProof),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ResponseHeader;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.nodeTransactionPrecheckCode=e.int32();break;case 2:o.responseType=e.int32();break;case 3:o.cost=e.uint64();break;case 4:o.stateProof=e.bytes();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ResponseHeader"},e}(),e.ConsensusTopicInfo=function(){function e(e){if(this.feeExemptKeyList=[],this.customFees=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.memo="",e.prototype.runningHash=$util.newBuffer([]),e.prototype.sequenceNumber=$util.Long?$util.Long.fromBits(0,0,!0):0,e.prototype.expirationTime=null,e.prototype.adminKey=null,e.prototype.submitKey=null,e.prototype.autoRenewPeriod=null,e.prototype.autoRenewAccount=null,e.prototype.ledgerId=$util.newBuffer([]),e.prototype.feeScheduleKey=null,e.prototype.feeExemptKeyList=$util.emptyArray,e.prototype.customFees=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.memo&&Object.hasOwnProperty.call(e,"memo")&&t.uint32(10).string(e.memo),null!=e.runningHash&&Object.hasOwnProperty.call(e,"runningHash")&&t.uint32(18).bytes(e.runningHash),null!=e.sequenceNumber&&Object.hasOwnProperty.call(e,"sequenceNumber")&&t.uint32(24).uint64(e.sequenceNumber),null!=e.expirationTime&&Object.hasOwnProperty.call(e,"expirationTime")&&$root.proto.Timestamp.encode(e.expirationTime,t.uint32(34).fork()).ldelim(),null!=e.adminKey&&Object.hasOwnProperty.call(e,"adminKey")&&$root.proto.Key.encode(e.adminKey,t.uint32(42).fork()).ldelim(),null!=e.submitKey&&Object.hasOwnProperty.call(e,"submitKey")&&$root.proto.Key.encode(e.submitKey,t.uint32(50).fork()).ldelim(),null!=e.autoRenewPeriod&&Object.hasOwnProperty.call(e,"autoRenewPeriod")&&$root.proto.Duration.encode(e.autoRenewPeriod,t.uint32(58).fork()).ldelim(),null!=e.autoRenewAccount&&Object.hasOwnProperty.call(e,"autoRenewAccount")&&$root.proto.AccountID.encode(e.autoRenewAccount,t.uint32(66).fork()).ldelim(),null!=e.ledgerId&&Object.hasOwnProperty.call(e,"ledgerId")&&t.uint32(74).bytes(e.ledgerId),null!=e.feeScheduleKey&&Object.hasOwnProperty.call(e,"feeScheduleKey")&&$root.proto.Key.encode(e.feeScheduleKey,t.uint32(82).fork()).ldelim(),null!=e.feeExemptKeyList&&e.feeExemptKeyList.length)for(var r=0;r<e.feeExemptKeyList.length;++r)$root.proto.Key.encode(e.feeExemptKeyList[r],t.uint32(90).fork()).ldelim();if(null!=e.customFees&&e.customFees.length)for(r=0;r<e.customFees.length;++r)$root.proto.FixedCustomFee.encode(e.customFees[r],t.uint32(98).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ConsensusTopicInfo;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.memo=e.string();break;case 2:o.runningHash=e.bytes();break;case 3:o.sequenceNumber=e.uint64();break;case 4:o.expirationTime=$root.proto.Timestamp.decode(e,e.uint32());break;case 5:o.adminKey=$root.proto.Key.decode(e,e.uint32());break;case 6:o.submitKey=$root.proto.Key.decode(e,e.uint32());break;case 7:o.autoRenewPeriod=$root.proto.Duration.decode(e,e.uint32());break;case 8:o.autoRenewAccount=$root.proto.AccountID.decode(e,e.uint32());break;case 9:o.ledgerId=e.bytes();break;case 10:o.feeScheduleKey=$root.proto.Key.decode(e,e.uint32());break;case 11:o.feeExemptKeyList&&o.feeExemptKeyList.length||(o.feeExemptKeyList=[]),o.feeExemptKeyList.push($root.proto.Key.decode(e,e.uint32()));break;case 12:o.customFees&&o.customFees.length||(o.customFees=[]),o.customFees.push($root.proto.FixedCustomFee.decode(e,e.uint32()));break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ConsensusTopicInfo"},e}(),e.ConsensusService=function(){function e(e,t,r){$protobuf$1.rpc.Service.call(this,e,t,r)}return(e.prototype=Object.create($protobuf$1.rpc.Service.prototype)).constructor=e,e.create=function(e,t,r){return new this(e,t,r)},Object.defineProperty(e.prototype.createTopic=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"createTopic"}),Object.defineProperty(e.prototype.updateTopic=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"updateTopic"}),Object.defineProperty(e.prototype.deleteTopic=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"deleteTopic"}),Object.defineProperty(e.prototype.submitMessage=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"submitMessage"}),Object.defineProperty(e.prototype.getTopicInfo=function e(t,r){return this.rpcCall(e,$root.proto.Query,$root.proto.Response,t,r)},"name",{value:"getTopicInfo"}),e}(),e.Query=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.getByKey=null,e.prototype.getBySolidityID=null,e.prototype.contractCallLocal=null,e.prototype.contractGetInfo=null,e.prototype.contractGetBytecode=null,e.prototype.ContractGetRecords=null,e.prototype.cryptogetAccountBalance=null,e.prototype.cryptoGetAccountRecords=null,e.prototype.cryptoGetInfo=null,e.prototype.cryptoGetLiveHash=null,e.prototype.cryptoGetProxyStakers=null,e.prototype.fileGetContents=null,e.prototype.fileGetInfo=null,e.prototype.transactionGetReceipt=null,e.prototype.transactionGetRecord=null,e.prototype.transactionGetFastRecord=null,e.prototype.consensusGetTopicInfo=null,e.prototype.networkGetVersionInfo=null,e.prototype.tokenGetInfo=null,e.prototype.scheduleGetInfo=null,e.prototype.tokenGetAccountNftInfos=null,e.prototype.tokenGetNftInfo=null,e.prototype.tokenGetNftInfos=null,e.prototype.networkGetExecutionTime=null,e.prototype.accountDetails=null,Object.defineProperty(e.prototype,"query",{get:$util.oneOfGetter(t=["getByKey","getBySolidityID","contractCallLocal","contractGetInfo","contractGetBytecode","ContractGetRecords","cryptogetAccountBalance","cryptoGetAccountRecords","cryptoGetInfo","cryptoGetLiveHash","cryptoGetProxyStakers","fileGetContents","fileGetInfo","transactionGetReceipt","transactionGetRecord","transactionGetFastRecord","consensusGetTopicInfo","networkGetVersionInfo","tokenGetInfo","scheduleGetInfo","tokenGetAccountNftInfos","tokenGetNftInfo","tokenGetNftInfos","networkGetExecutionTime","accountDetails"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.getByKey&&Object.hasOwnProperty.call(e,"getByKey")&&$root.proto.GetByKeyQuery.encode(e.getByKey,t.uint32(10).fork()).ldelim(),null!=e.getBySolidityID&&Object.hasOwnProperty.call(e,"getBySolidityID")&&$root.proto.GetBySolidityIDQuery.encode(e.getBySolidityID,t.uint32(18).fork()).ldelim(),null!=e.contractCallLocal&&Object.hasOwnProperty.call(e,"contractCallLocal")&&$root.proto.ContractCallLocalQuery.encode(e.contractCallLocal,t.uint32(26).fork()).ldelim(),null!=e.contractGetInfo&&Object.hasOwnProperty.call(e,"contractGetInfo")&&$root.proto.ContractGetInfoQuery.encode(e.contractGetInfo,t.uint32(34).fork()).ldelim(),null!=e.contractGetBytecode&&Object.hasOwnProperty.call(e,"contractGetBytecode")&&$root.proto.ContractGetBytecodeQuery.encode(e.contractGetBytecode,t.uint32(42).fork()).ldelim(),null!=e.ContractGetRecords&&Object.hasOwnProperty.call(e,"ContractGetRecords")&&$root.proto.ContractGetRecordsQuery.encode(e.ContractGetRecords,t.uint32(50).fork()).ldelim(),null!=e.cryptogetAccountBalance&&Object.hasOwnProperty.call(e,"cryptogetAccountBalance")&&$root.proto.CryptoGetAccountBalanceQuery.encode(e.cryptogetAccountBalance,t.uint32(58).fork()).ldelim(),null!=e.cryptoGetAccountRecords&&Object.hasOwnProperty.call(e,"cryptoGetAccountRecords")&&$root.proto.CryptoGetAccountRecordsQuery.encode(e.cryptoGetAccountRecords,t.uint32(66).fork()).ldelim(),null!=e.cryptoGetInfo&&Object.hasOwnProperty.call(e,"cryptoGetInfo")&&$root.proto.CryptoGetInfoQuery.encode(e.cryptoGetInfo,t.uint32(74).fork()).ldelim(),null!=e.cryptoGetLiveHash&&Object.hasOwnProperty.call(e,"cryptoGetLiveHash")&&$root.proto.CryptoGetLiveHashQuery.encode(e.cryptoGetLiveHash,t.uint32(82).fork()).ldelim(),null!=e.cryptoGetProxyStakers&&Object.hasOwnProperty.call(e,"cryptoGetProxyStakers")&&$root.proto.CryptoGetStakersQuery.encode(e.cryptoGetProxyStakers,t.uint32(90).fork()).ldelim(),null!=e.fileGetContents&&Object.hasOwnProperty.call(e,"fileGetContents")&&$root.proto.FileGetContentsQuery.encode(e.fileGetContents,t.uint32(98).fork()).ldelim(),null!=e.fileGetInfo&&Object.hasOwnProperty.call(e,"fileGetInfo")&&$root.proto.FileGetInfoQuery.encode(e.fileGetInfo,t.uint32(106).fork()).ldelim(),null!=e.transactionGetReceipt&&Object.hasOwnProperty.call(e,"transactionGetReceipt")&&$root.proto.TransactionGetReceiptQuery.encode(e.transactionGetReceipt,t.uint32(114).fork()).ldelim(),null!=e.transactionGetRecord&&Object.hasOwnProperty.call(e,"transactionGetRecord")&&$root.proto.TransactionGetRecordQuery.encode(e.transactionGetRecord,t.uint32(122).fork()).ldelim(),null!=e.transactionGetFastRecord&&Object.hasOwnProperty.call(e,"transactionGetFastRecord")&&$root.proto.TransactionGetFastRecordQuery.encode(e.transactionGetFastRecord,t.uint32(130).fork()).ldelim(),null!=e.consensusGetTopicInfo&&Object.hasOwnProperty.call(e,"consensusGetTopicInfo")&&$root.proto.ConsensusGetTopicInfoQuery.encode(e.consensusGetTopicInfo,t.uint32(402).fork()).ldelim(),null!=e.networkGetVersionInfo&&Object.hasOwnProperty.call(e,"networkGetVersionInfo")&&$root.proto.NetworkGetVersionInfoQuery.encode(e.networkGetVersionInfo,t.uint32(410).fork()).ldelim(),null!=e.tokenGetInfo&&Object.hasOwnProperty.call(e,"tokenGetInfo")&&$root.proto.TokenGetInfoQuery.encode(e.tokenGetInfo,t.uint32(418).fork()).ldelim(),null!=e.scheduleGetInfo&&Object.hasOwnProperty.call(e,"scheduleGetInfo")&&$root.proto.ScheduleGetInfoQuery.encode(e.scheduleGetInfo,t.uint32(426).fork()).ldelim(),null!=e.tokenGetAccountNftInfos&&Object.hasOwnProperty.call(e,"tokenGetAccountNftInfos")&&$root.proto.TokenGetAccountNftInfosQuery.encode(e.tokenGetAccountNftInfos,t.uint32(434).fork()).ldelim(),null!=e.tokenGetNftInfo&&Object.hasOwnProperty.call(e,"tokenGetNftInfo")&&$root.proto.TokenGetNftInfoQuery.encode(e.tokenGetNftInfo,t.uint32(442).fork()).ldelim(),null!=e.tokenGetNftInfos&&Object.hasOwnProperty.call(e,"tokenGetNftInfos")&&$root.proto.TokenGetNftInfosQuery.encode(e.tokenGetNftInfos,t.uint32(450).fork()).ldelim(),null!=e.networkGetExecutionTime&&Object.hasOwnProperty.call(e,"networkGetExecutionTime")&&$root.proto.NetworkGetExecutionTimeQuery.encode(e.networkGetExecutionTime,t.uint32(458).fork()).ldelim(),null!=e.accountDetails&&Object.hasOwnProperty.call(e,"accountDetails")&&$root.proto.GetAccountDetailsQuery.encode(e.accountDetails,t.uint32(466).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.Query;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.getByKey=$root.proto.GetByKeyQuery.decode(e,e.uint32());break;case 2:o.getBySolidityID=$root.proto.GetBySolidityIDQuery.decode(e,e.uint32());break;case 3:o.contractCallLocal=$root.proto.ContractCallLocalQuery.decode(e,e.uint32());break;case 4:o.contractGetInfo=$root.proto.ContractGetInfoQuery.decode(e,e.uint32());break;case 5:o.contractGetBytecode=$root.proto.ContractGetBytecodeQuery.decode(e,e.uint32());break;case 6:o.ContractGetRecords=$root.proto.ContractGetRecordsQuery.decode(e,e.uint32());break;case 7:o.cryptogetAccountBalance=$root.proto.CryptoGetAccountBalanceQuery.decode(e,e.uint32());break;case 8:o.cryptoGetAccountRecords=$root.proto.CryptoGetAccountRecordsQuery.decode(e,e.uint32());break;case 9:o.cryptoGetInfo=$root.proto.CryptoGetInfoQuery.decode(e,e.uint32());break;case 10:o.cryptoGetLiveHash=$root.proto.CryptoGetLiveHashQuery.decode(e,e.uint32());break;case 11:o.cryptoGetProxyStakers=$root.proto.CryptoGetStakersQuery.decode(e,e.uint32());break;case 12:o.fileGetContents=$root.proto.FileGetContentsQuery.decode(e,e.uint32());break;case 13:o.fileGetInfo=$root.proto.FileGetInfoQuery.decode(e,e.uint32());break;case 14:o.transactionGetReceipt=$root.proto.TransactionGetReceiptQuery.decode(e,e.uint32());break;case 15:o.transactionGetRecord=$root.proto.TransactionGetRecordQuery.decode(e,e.uint32());break;case 16:o.transactionGetFastRecord=$root.proto.TransactionGetFastRecordQuery.decode(e,e.uint32());break;case 50:o.consensusGetTopicInfo=$root.proto.ConsensusGetTopicInfoQuery.decode(e,e.uint32());break;case 51:o.networkGetVersionInfo=$root.proto.NetworkGetVersionInfoQuery.decode(e,e.uint32());break;case 52:o.tokenGetInfo=$root.proto.TokenGetInfoQuery.decode(e,e.uint32());break;case 53:o.scheduleGetInfo=$root.proto.ScheduleGetInfoQuery.decode(e,e.uint32());break;case 54:o.tokenGetAccountNftInfos=$root.proto.TokenGetAccountNftInfosQuery.decode(e,e.uint32());break;case 55:o.tokenGetNftInfo=$root.proto.TokenGetNftInfoQuery.decode(e,e.uint32());break;case 56:o.tokenGetNftInfos=$root.proto.TokenGetNftInfosQuery.decode(e,e.uint32());break;case 57:o.networkGetExecutionTime=$root.proto.NetworkGetExecutionTimeQuery.decode(e,e.uint32());break;case 58:o.accountDetails=$root.proto.GetAccountDetailsQuery.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.Query"},e}(),e.GetByKeyQuery=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.key=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.QueryHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.key&&Object.hasOwnProperty.call(e,"key")&&$root.proto.Key.encode(e.key,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.GetByKeyQuery;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.QueryHeader.decode(e,e.uint32());break;case 2:o.key=$root.proto.Key.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.GetByKeyQuery"},e}(),e.EntityID=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.accountID=null,e.prototype.liveHash=null,e.prototype.fileID=null,e.prototype.contractID=null,Object.defineProperty(e.prototype,"entity",{get:$util.oneOfGetter(t=["accountID","liveHash","fileID","contractID"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.accountID&&Object.hasOwnProperty.call(e,"accountID")&&$root.proto.AccountID.encode(e.accountID,t.uint32(10).fork()).ldelim(),null!=e.liveHash&&Object.hasOwnProperty.call(e,"liveHash")&&$root.proto.LiveHash.encode(e.liveHash,t.uint32(18).fork()).ldelim(),null!=e.fileID&&Object.hasOwnProperty.call(e,"fileID")&&$root.proto.FileID.encode(e.fileID,t.uint32(26).fork()).ldelim(),null!=e.contractID&&Object.hasOwnProperty.call(e,"contractID")&&$root.proto.ContractID.encode(e.contractID,t.uint32(34).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.EntityID;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.accountID=$root.proto.AccountID.decode(e,e.uint32());break;case 2:o.liveHash=$root.proto.LiveHash.decode(e,e.uint32());break;case 3:o.fileID=$root.proto.FileID.decode(e,e.uint32());break;case 4:o.contractID=$root.proto.ContractID.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.EntityID"},e}(),e.GetByKeyResponse=function(){function e(e){if(this.entities=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.entities=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.ResponseHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.entities&&e.entities.length)for(var r=0;r<e.entities.length;++r)$root.proto.EntityID.encode(e.entities[r],t.uint32(18).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.GetByKeyResponse;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.ResponseHeader.decode(e,e.uint32());break;case 2:o.entities&&o.entities.length||(o.entities=[]),o.entities.push($root.proto.EntityID.decode(e,e.uint32()));break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.GetByKeyResponse"},e}(),e.GetBySolidityIDQuery=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.solidityID="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.QueryHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.solidityID&&Object.hasOwnProperty.call(e,"solidityID")&&t.uint32(18).string(e.solidityID),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.GetBySolidityIDQuery;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.QueryHeader.decode(e,e.uint32());break;case 2:o.solidityID=e.string();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.GetBySolidityIDQuery"},e}(),e.GetBySolidityIDResponse=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.accountID=null,e.prototype.fileID=null,e.prototype.contractID=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.ResponseHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.accountID&&Object.hasOwnProperty.call(e,"accountID")&&$root.proto.AccountID.encode(e.accountID,t.uint32(18).fork()).ldelim(),null!=e.fileID&&Object.hasOwnProperty.call(e,"fileID")&&$root.proto.FileID.encode(e.fileID,t.uint32(26).fork()).ldelim(),null!=e.contractID&&Object.hasOwnProperty.call(e,"contractID")&&$root.proto.ContractID.encode(e.contractID,t.uint32(34).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.GetBySolidityIDResponse;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.ResponseHeader.decode(e,e.uint32());break;case 2:o.accountID=$root.proto.AccountID.decode(e,e.uint32());break;case 3:o.fileID=$root.proto.FileID.decode(e,e.uint32());break;case 4:o.contractID=$root.proto.ContractID.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.GetBySolidityIDResponse"},e}(),e.ContractCallLocalQuery=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.contractID=null,e.prototype.gas=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.functionParameters=$util.newBuffer([]),e.prototype.maxResultSize=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.senderId=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.QueryHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.contractID&&Object.hasOwnProperty.call(e,"contractID")&&$root.proto.ContractID.encode(e.contractID,t.uint32(18).fork()).ldelim(),null!=e.gas&&Object.hasOwnProperty.call(e,"gas")&&t.uint32(24).int64(e.gas),null!=e.functionParameters&&Object.hasOwnProperty.call(e,"functionParameters")&&t.uint32(34).bytes(e.functionParameters),null!=e.maxResultSize&&Object.hasOwnProperty.call(e,"maxResultSize")&&t.uint32(40).int64(e.maxResultSize),null!=e.senderId&&Object.hasOwnProperty.call(e,"senderId")&&$root.proto.AccountID.encode(e.senderId,t.uint32(50).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ContractCallLocalQuery;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.QueryHeader.decode(e,e.uint32());break;case 2:o.contractID=$root.proto.ContractID.decode(e,e.uint32());break;case 3:o.gas=e.int64();break;case 4:o.functionParameters=e.bytes();break;case 5:o.maxResultSize=e.int64();break;case 6:o.senderId=$root.proto.AccountID.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ContractCallLocalQuery"},e}(),e.ContractCallLocalResponse=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.functionResult=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.ResponseHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.functionResult&&Object.hasOwnProperty.call(e,"functionResult")&&$root.proto.ContractFunctionResult.encode(e.functionResult,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ContractCallLocalResponse;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.ResponseHeader.decode(e,e.uint32());break;case 2:o.functionResult=$root.proto.ContractFunctionResult.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ContractCallLocalResponse"},e}(),e.ContractNonceInfo=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.contractId=null,e.prototype.nonce=$util.Long?$util.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.contractId&&Object.hasOwnProperty.call(e,"contractId")&&$root.proto.ContractID.encode(e.contractId,t.uint32(10).fork()).ldelim(),null!=e.nonce&&Object.hasOwnProperty.call(e,"nonce")&&t.uint32(16).int64(e.nonce),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ContractNonceInfo;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.contractId=$root.proto.ContractID.decode(e,e.uint32());break;case 2:o.nonce=e.int64();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ContractNonceInfo"},e}(),e.ContractLoginfo=function(){function e(e){if(this.topic=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.contractID=null,e.prototype.bloom=$util.newBuffer([]),e.prototype.topic=$util.emptyArray,e.prototype.data=$util.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.contractID&&Object.hasOwnProperty.call(e,"contractID")&&$root.proto.ContractID.encode(e.contractID,t.uint32(10).fork()).ldelim(),null!=e.bloom&&Object.hasOwnProperty.call(e,"bloom")&&t.uint32(18).bytes(e.bloom),null!=e.topic&&e.topic.length)for(var r=0;r<e.topic.length;++r)t.uint32(26).bytes(e.topic[r]);return null!=e.data&&Object.hasOwnProperty.call(e,"data")&&t.uint32(34).bytes(e.data),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ContractLoginfo;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.contractID=$root.proto.ContractID.decode(e,e.uint32());break;case 2:o.bloom=e.bytes();break;case 3:o.topic&&o.topic.length||(o.topic=[]),o.topic.push(e.bytes());break;case 4:o.data=e.bytes();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ContractLoginfo"},e}(),e.ContractFunctionResult=function(){function e(e){if(this.logInfo=[],this.createdContractIDs=[],this.contractNonces=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.contractID=null,e.prototype.contractCallResult=$util.newBuffer([]),e.prototype.errorMessage="",e.prototype.bloom=$util.newBuffer([]),e.prototype.gasUsed=$util.Long?$util.Long.fromBits(0,0,!0):0,e.prototype.logInfo=$util.emptyArray,e.prototype.createdContractIDs=$util.emptyArray,e.prototype.evmAddress=null,e.prototype.gas=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.amount=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.functionParameters=$util.newBuffer([]),e.prototype.senderId=null,e.prototype.contractNonces=$util.emptyArray,e.prototype.signerNonce=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.contractID&&Object.hasOwnProperty.call(e,"contractID")&&$root.proto.ContractID.encode(e.contractID,t.uint32(10).fork()).ldelim(),null!=e.contractCallResult&&Object.hasOwnProperty.call(e,"contractCallResult")&&t.uint32(18).bytes(e.contractCallResult),null!=e.errorMessage&&Object.hasOwnProperty.call(e,"errorMessage")&&t.uint32(26).string(e.errorMessage),null!=e.bloom&&Object.hasOwnProperty.call(e,"bloom")&&t.uint32(34).bytes(e.bloom),null!=e.gasUsed&&Object.hasOwnProperty.call(e,"gasUsed")&&t.uint32(40).uint64(e.gasUsed),null!=e.logInfo&&e.logInfo.length)for(var r=0;r<e.logInfo.length;++r)$root.proto.ContractLoginfo.encode(e.logInfo[r],t.uint32(50).fork()).ldelim();if(null!=e.createdContractIDs&&e.createdContractIDs.length)for(r=0;r<e.createdContractIDs.length;++r)$root.proto.ContractID.encode(e.createdContractIDs[r],t.uint32(58).fork()).ldelim();if(null!=e.evmAddress&&Object.hasOwnProperty.call(e,"evmAddress")&&$root.google.protobuf.BytesValue.encode(e.evmAddress,t.uint32(74).fork()).ldelim(),null!=e.gas&&Object.hasOwnProperty.call(e,"gas")&&t.uint32(80).int64(e.gas),null!=e.amount&&Object.hasOwnProperty.call(e,"amount")&&t.uint32(88).int64(e.amount),null!=e.functionParameters&&Object.hasOwnProperty.call(e,"functionParameters")&&t.uint32(98).bytes(e.functionParameters),null!=e.senderId&&Object.hasOwnProperty.call(e,"senderId")&&$root.proto.AccountID.encode(e.senderId,t.uint32(106).fork()).ldelim(),null!=e.contractNonces&&e.contractNonces.length)for(r=0;r<e.contractNonces.length;++r)$root.proto.ContractNonceInfo.encode(e.contractNonces[r],t.uint32(114).fork()).ldelim();return null!=e.signerNonce&&Object.hasOwnProperty.call(e,"signerNonce")&&$root.google.protobuf.Int64Value.encode(e.signerNonce,t.uint32(122).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ContractFunctionResult;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.contractID=$root.proto.ContractID.decode(e,e.uint32());break;case 2:o.contractCallResult=e.bytes();break;case 3:o.errorMessage=e.string();break;case 4:o.bloom=e.bytes();break;case 5:o.gasUsed=e.uint64();break;case 6:o.logInfo&&o.logInfo.length||(o.logInfo=[]),o.logInfo.push($root.proto.ContractLoginfo.decode(e,e.uint32()));break;case 7:o.createdContractIDs&&o.createdContractIDs.length||(o.createdContractIDs=[]),o.createdContractIDs.push($root.proto.ContractID.decode(e,e.uint32()));break;case 9:o.evmAddress=$root.google.protobuf.BytesValue.decode(e,e.uint32());break;case 10:o.gas=e.int64();break;case 11:o.amount=e.int64();break;case 12:o.functionParameters=e.bytes();break;case 13:o.senderId=$root.proto.AccountID.decode(e,e.uint32());break;case 14:o.contractNonces&&o.contractNonces.length||(o.contractNonces=[]),o.contractNonces.push($root.proto.ContractNonceInfo.decode(e,e.uint32()));break;case 15:o.signerNonce=$root.google.protobuf.Int64Value.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ContractFunctionResult"},e}(),e.ContractGetInfoQuery=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.contractID=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.QueryHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.contractID&&Object.hasOwnProperty.call(e,"contractID")&&$root.proto.ContractID.encode(e.contractID,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ContractGetInfoQuery;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.QueryHeader.decode(e,e.uint32());break;case 2:o.contractID=$root.proto.ContractID.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ContractGetInfoQuery"},e}(),e.ContractGetInfoResponse=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.contractInfo=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.ResponseHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.contractInfo&&Object.hasOwnProperty.call(e,"contractInfo")&&$root.proto.ContractGetInfoResponse.ContractInfo.encode(e.contractInfo,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ContractGetInfoResponse;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.ResponseHeader.decode(e,e.uint32());break;case 2:o.contractInfo=$root.proto.ContractGetInfoResponse.ContractInfo.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ContractGetInfoResponse"},e.ContractInfo=function(){function e(e){if(this.tokenRelationships=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.contractID=null,e.prototype.accountID=null,e.prototype.contractAccountID="",e.prototype.adminKey=null,e.prototype.expirationTime=null,e.prototype.autoRenewPeriod=null,e.prototype.storage=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.memo="",e.prototype.balance=$util.Long?$util.Long.fromBits(0,0,!0):0,e.prototype.deleted=!1,e.prototype.tokenRelationships=$util.emptyArray,e.prototype.ledgerId=$util.newBuffer([]),e.prototype.autoRenewAccountId=null,e.prototype.maxAutomaticTokenAssociations=0,e.prototype.stakingInfo=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.contractID&&Object.hasOwnProperty.call(e,"contractID")&&$root.proto.ContractID.encode(e.contractID,t.uint32(10).fork()).ldelim(),null!=e.accountID&&Object.hasOwnProperty.call(e,"accountID")&&$root.proto.AccountID.encode(e.accountID,t.uint32(18).fork()).ldelim(),null!=e.contractAccountID&&Object.hasOwnProperty.call(e,"contractAccountID")&&t.uint32(26).string(e.contractAccountID),null!=e.adminKey&&Object.hasOwnProperty.call(e,"adminKey")&&$root.proto.Key.encode(e.adminKey,t.uint32(34).fork()).ldelim(),null!=e.expirationTime&&Object.hasOwnProperty.call(e,"expirationTime")&&$root.proto.Timestamp.encode(e.expirationTime,t.uint32(42).fork()).ldelim(),null!=e.autoRenewPeriod&&Object.hasOwnProperty.call(e,"autoRenewPeriod")&&$root.proto.Duration.encode(e.autoRenewPeriod,t.uint32(50).fork()).ldelim(),null!=e.storage&&Object.hasOwnProperty.call(e,"storage")&&t.uint32(56).int64(e.storage),null!=e.memo&&Object.hasOwnProperty.call(e,"memo")&&t.uint32(66).string(e.memo),null!=e.balance&&Object.hasOwnProperty.call(e,"balance")&&t.uint32(72).uint64(e.balance),null!=e.deleted&&Object.hasOwnProperty.call(e,"deleted")&&t.uint32(80).bool(e.deleted),null!=e.tokenRelationships&&e.tokenRelationships.length)for(var r=0;r<e.tokenRelationships.length;++r)$root.proto.TokenRelationship.encode(e.tokenRelationships[r],t.uint32(90).fork()).ldelim();return null!=e.ledgerId&&Object.hasOwnProperty.call(e,"ledgerId")&&t.uint32(98).bytes(e.ledgerId),null!=e.autoRenewAccountId&&Object.hasOwnProperty.call(e,"autoRenewAccountId")&&$root.proto.AccountID.encode(e.autoRenewAccountId,t.uint32(106).fork()).ldelim(),null!=e.maxAutomaticTokenAssociations&&Object.hasOwnProperty.call(e,"maxAutomaticTokenAssociations")&&t.uint32(112).int32(e.maxAutomaticTokenAssociations),null!=e.stakingInfo&&Object.hasOwnProperty.call(e,"stakingInfo")&&$root.proto.StakingInfo.encode(e.stakingInfo,t.uint32(122).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ContractGetInfoResponse.ContractInfo;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.contractID=$root.proto.ContractID.decode(e,e.uint32());break;case 2:o.accountID=$root.proto.AccountID.decode(e,e.uint32());break;case 3:o.contractAccountID=e.string();break;case 4:o.adminKey=$root.proto.Key.decode(e,e.uint32());break;case 5:o.expirationTime=$root.proto.Timestamp.decode(e,e.uint32());break;case 6:o.autoRenewPeriod=$root.proto.Duration.decode(e,e.uint32());break;case 7:o.storage=e.int64();break;case 8:o.memo=e.string();break;case 9:o.balance=e.uint64();break;case 10:o.deleted=e.bool();break;case 11:o.tokenRelationships&&o.tokenRelationships.length||(o.tokenRelationships=[]),o.tokenRelationships.push($root.proto.TokenRelationship.decode(e,e.uint32()));break;case 12:o.ledgerId=e.bytes();break;case 13:o.autoRenewAccountId=$root.proto.AccountID.decode(e,e.uint32());break;case 14:o.maxAutomaticTokenAssociations=e.int32();break;case 15:o.stakingInfo=$root.proto.StakingInfo.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ContractGetInfoResponse.ContractInfo"},e}(),e}(),e.ContractGetBytecodeQuery=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.contractID=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.QueryHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.contractID&&Object.hasOwnProperty.call(e,"contractID")&&$root.proto.ContractID.encode(e.contractID,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ContractGetBytecodeQuery;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.QueryHeader.decode(e,e.uint32());break;case 2:o.contractID=$root.proto.ContractID.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ContractGetBytecodeQuery"},e}(),e.ContractGetBytecodeResponse=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.bytecode=$util.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.ResponseHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.bytecode&&Object.hasOwnProperty.call(e,"bytecode")&&t.uint32(50).bytes(e.bytecode),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ContractGetBytecodeResponse;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.ResponseHeader.decode(e,e.uint32());break;case 6:o.bytecode=e.bytes();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ContractGetBytecodeResponse"},e}(),e.ContractGetRecordsQuery=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.contractID=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.QueryHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.contractID&&Object.hasOwnProperty.call(e,"contractID")&&$root.proto.ContractID.encode(e.contractID,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ContractGetRecordsQuery;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.QueryHeader.decode(e,e.uint32());break;case 2:o.contractID=$root.proto.ContractID.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ContractGetRecordsQuery"},e}(),e.ContractGetRecordsResponse=function(){function e(e){if(this.records=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.contractID=null,e.prototype.records=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.ResponseHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.contractID&&Object.hasOwnProperty.call(e,"contractID")&&$root.proto.ContractID.encode(e.contractID,t.uint32(18).fork()).ldelim(),null!=e.records&&e.records.length)for(var r=0;r<e.records.length;++r)$root.proto.TransactionRecord.encode(e.records[r],t.uint32(26).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ContractGetRecordsResponse;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.ResponseHeader.decode(e,e.uint32());break;case 2:o.contractID=$root.proto.ContractID.decode(e,e.uint32());break;case 3:o.records&&o.records.length||(o.records=[]),o.records.push($root.proto.TransactionRecord.decode(e,e.uint32()));break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ContractGetRecordsResponse"},e}(),e.TransactionRecord=function(){function e(e){if(this.tokenTransferLists=[],this.assessedCustomFees=[],this.automaticTokenAssociations=[],this.paidStakingRewards=[],this.newPendingAirdrops=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.receipt=null,e.prototype.transactionHash=$util.newBuffer([]),e.prototype.consensusTimestamp=null,e.prototype.transactionID=null,e.prototype.memo="",e.prototype.transactionFee=$util.Long?$util.Long.fromBits(0,0,!0):0,e.prototype.contractCallResult=null,e.prototype.contractCreateResult=null,e.prototype.transferList=null,e.prototype.tokenTransferLists=$util.emptyArray,e.prototype.scheduleRef=null,e.prototype.assessedCustomFees=$util.emptyArray,e.prototype.automaticTokenAssociations=$util.emptyArray,e.prototype.parentConsensusTimestamp=null,e.prototype.alias=$util.newBuffer([]),e.prototype.ethereumHash=$util.newBuffer([]),e.prototype.paidStakingRewards=$util.emptyArray,e.prototype.prngBytes=null,e.prototype.prngNumber=null,e.prototype.evmAddress=$util.newBuffer([]),e.prototype.newPendingAirdrops=$util.emptyArray,Object.defineProperty(e.prototype,"body",{get:$util.oneOfGetter(t=["contractCallResult","contractCreateResult"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"entropy",{get:$util.oneOfGetter(t=["prngBytes","prngNumber"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.receipt&&Object.hasOwnProperty.call(e,"receipt")&&$root.proto.TransactionReceipt.encode(e.receipt,t.uint32(10).fork()).ldelim(),null!=e.transactionHash&&Object.hasOwnProperty.call(e,"transactionHash")&&t.uint32(18).bytes(e.transactionHash),null!=e.consensusTimestamp&&Object.hasOwnProperty.call(e,"consensusTimestamp")&&$root.proto.Timestamp.encode(e.consensusTimestamp,t.uint32(26).fork()).ldelim(),null!=e.transactionID&&Object.hasOwnProperty.call(e,"transactionID")&&$root.proto.TransactionID.encode(e.transactionID,t.uint32(34).fork()).ldelim(),null!=e.memo&&Object.hasOwnProperty.call(e,"memo")&&t.uint32(42).string(e.memo),null!=e.transactionFee&&Object.hasOwnProperty.call(e,"transactionFee")&&t.uint32(48).uint64(e.transactionFee),null!=e.contractCallResult&&Object.hasOwnProperty.call(e,"contractCallResult")&&$root.proto.ContractFunctionResult.encode(e.contractCallResult,t.uint32(58).fork()).ldelim(),null!=e.contractCreateResult&&Object.hasOwnProperty.call(e,"contractCreateResult")&&$root.proto.ContractFunctionResult.encode(e.contractCreateResult,t.uint32(66).fork()).ldelim(),null!=e.transferList&&Object.hasOwnProperty.call(e,"transferList")&&$root.proto.TransferList.encode(e.transferList,t.uint32(82).fork()).ldelim(),null!=e.tokenTransferLists&&e.tokenTransferLists.length)for(var r=0;r<e.tokenTransferLists.length;++r)$root.proto.TokenTransferList.encode(e.tokenTransferLists[r],t.uint32(90).fork()).ldelim();if(null!=e.scheduleRef&&Object.hasOwnProperty.call(e,"scheduleRef")&&$root.proto.ScheduleID.encode(e.scheduleRef,t.uint32(98).fork()).ldelim(),null!=e.assessedCustomFees&&e.assessedCustomFees.length)for(r=0;r<e.assessedCustomFees.length;++r)$root.proto.AssessedCustomFee.encode(e.assessedCustomFees[r],t.uint32(106).fork()).ldelim();if(null!=e.automaticTokenAssociations&&e.automaticTokenAssociations.length)for(r=0;r<e.automaticTokenAssociations.length;++r)$root.proto.TokenAssociation.encode(e.automaticTokenAssociations[r],t.uint32(114).fork()).ldelim();if(null!=e.parentConsensusTimestamp&&Object.hasOwnProperty.call(e,"parentConsensusTimestamp")&&$root.proto.Timestamp.encode(e.parentConsensusTimestamp,t.uint32(122).fork()).ldelim(),null!=e.alias&&Object.hasOwnProperty.call(e,"alias")&&t.uint32(130).bytes(e.alias),null!=e.ethereumHash&&Object.hasOwnProperty.call(e,"ethereumHash")&&t.uint32(138).bytes(e.ethereumHash),null!=e.paidStakingRewards&&e.paidStakingRewards.length)for(r=0;r<e.paidStakingRewards.length;++r)$root.proto.AccountAmount.encode(e.paidStakingRewards[r],t.uint32(146).fork()).ldelim();if(null!=e.prngBytes&&Object.hasOwnProperty.call(e,"prngBytes")&&t.uint32(154).bytes(e.prngBytes),null!=e.prngNumber&&Object.hasOwnProperty.call(e,"prngNumber")&&t.uint32(160).int32(e.prngNumber),null!=e.evmAddress&&Object.hasOwnProperty.call(e,"evmAddress")&&t.uint32(170).bytes(e.evmAddress),null!=e.newPendingAirdrops&&e.newPendingAirdrops.length)for(r=0;r<e.newPendingAirdrops.length;++r)$root.proto.PendingAirdropRecord.encode(e.newPendingAirdrops[r],t.uint32(178).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TransactionRecord;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.receipt=$root.proto.TransactionReceipt.decode(e,e.uint32());break;case 2:o.transactionHash=e.bytes();break;case 3:o.consensusTimestamp=$root.proto.Timestamp.decode(e,e.uint32());break;case 4:o.transactionID=$root.proto.TransactionID.decode(e,e.uint32());break;case 5:o.memo=e.string();break;case 6:o.transactionFee=e.uint64();break;case 7:o.contractCallResult=$root.proto.ContractFunctionResult.decode(e,e.uint32());break;case 8:o.contractCreateResult=$root.proto.ContractFunctionResult.decode(e,e.uint32());break;case 10:o.transferList=$root.proto.TransferList.decode(e,e.uint32());break;case 11:o.tokenTransferLists&&o.tokenTransferLists.length||(o.tokenTransferLists=[]),o.tokenTransferLists.push($root.proto.TokenTransferList.decode(e,e.uint32()));break;case 12:o.scheduleRef=$root.proto.ScheduleID.decode(e,e.uint32());break;case 13:o.assessedCustomFees&&o.assessedCustomFees.length||(o.assessedCustomFees=[]),o.assessedCustomFees.push($root.proto.AssessedCustomFee.decode(e,e.uint32()));break;case 14:o.automaticTokenAssociations&&o.automaticTokenAssociations.length||(o.automaticTokenAssociations=[]),o.automaticTokenAssociations.push($root.proto.TokenAssociation.decode(e,e.uint32()));break;case 15:o.parentConsensusTimestamp=$root.proto.Timestamp.decode(e,e.uint32());break;case 16:o.alias=e.bytes();break;case 17:o.ethereumHash=e.bytes();break;case 18:o.paidStakingRewards&&o.paidStakingRewards.length||(o.paidStakingRewards=[]),o.paidStakingRewards.push($root.proto.AccountAmount.decode(e,e.uint32()));break;case 19:o.prngBytes=e.bytes();break;case 20:o.prngNumber=e.int32();break;case 21:o.evmAddress=e.bytes();break;case 22:o.newPendingAirdrops&&o.newPendingAirdrops.length||(o.newPendingAirdrops=[]),o.newPendingAirdrops.push($root.proto.PendingAirdropRecord.decode(e,e.uint32()));break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TransactionRecord"},e}(),e.PendingAirdropRecord=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.pendingAirdropId=null,e.prototype.pendingAirdropValue=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.pendingAirdropId&&Object.hasOwnProperty.call(e,"pendingAirdropId")&&$root.proto.PendingAirdropId.encode(e.pendingAirdropId,t.uint32(10).fork()).ldelim(),null!=e.pendingAirdropValue&&Object.hasOwnProperty.call(e,"pendingAirdropValue")&&$root.proto.PendingAirdropValue.encode(e.pendingAirdropValue,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.PendingAirdropRecord;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.pendingAirdropId=$root.proto.PendingAirdropId.decode(e,e.uint32());break;case 2:o.pendingAirdropValue=$root.proto.PendingAirdropValue.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.PendingAirdropRecord"},e}(),e.TransactionReceipt=function(){function e(e){if(this.serialNumbers=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.status=0,e.prototype.accountID=null,e.prototype.fileID=null,e.prototype.contractID=null,e.prototype.exchangeRate=null,e.prototype.topicID=null,e.prototype.topicSequenceNumber=$util.Long?$util.Long.fromBits(0,0,!0):0,e.prototype.topicRunningHash=$util.newBuffer([]),e.prototype.topicRunningHashVersion=$util.Long?$util.Long.fromBits(0,0,!0):0,e.prototype.tokenID=null,e.prototype.newTotalSupply=$util.Long?$util.Long.fromBits(0,0,!0):0,e.prototype.scheduleID=null,e.prototype.scheduledTransactionID=null,e.prototype.serialNumbers=$util.emptyArray,e.prototype.nodeId=$util.Long?$util.Long.fromBits(0,0,!0):0,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.status&&Object.hasOwnProperty.call(e,"status")&&t.uint32(8).int32(e.status),null!=e.accountID&&Object.hasOwnProperty.call(e,"accountID")&&$root.proto.AccountID.encode(e.accountID,t.uint32(18).fork()).ldelim(),null!=e.fileID&&Object.hasOwnProperty.call(e,"fileID")&&$root.proto.FileID.encode(e.fileID,t.uint32(26).fork()).ldelim(),null!=e.contractID&&Object.hasOwnProperty.call(e,"contractID")&&$root.proto.ContractID.encode(e.contractID,t.uint32(34).fork()).ldelim(),null!=e.exchangeRate&&Object.hasOwnProperty.call(e,"exchangeRate")&&$root.proto.ExchangeRateSet.encode(e.exchangeRate,t.uint32(42).fork()).ldelim(),null!=e.topicID&&Object.hasOwnProperty.call(e,"topicID")&&$root.proto.TopicID.encode(e.topicID,t.uint32(50).fork()).ldelim(),null!=e.topicSequenceNumber&&Object.hasOwnProperty.call(e,"topicSequenceNumber")&&t.uint32(56).uint64(e.topicSequenceNumber),null!=e.topicRunningHash&&Object.hasOwnProperty.call(e,"topicRunningHash")&&t.uint32(66).bytes(e.topicRunningHash),null!=e.topicRunningHashVersion&&Object.hasOwnProperty.call(e,"topicRunningHashVersion")&&t.uint32(72).uint64(e.topicRunningHashVersion),null!=e.tokenID&&Object.hasOwnProperty.call(e,"tokenID")&&$root.proto.TokenID.encode(e.tokenID,t.uint32(82).fork()).ldelim(),null!=e.newTotalSupply&&Object.hasOwnProperty.call(e,"newTotalSupply")&&t.uint32(88).uint64(e.newTotalSupply),null!=e.scheduleID&&Object.hasOwnProperty.call(e,"scheduleID")&&$root.proto.ScheduleID.encode(e.scheduleID,t.uint32(98).fork()).ldelim(),null!=e.scheduledTransactionID&&Object.hasOwnProperty.call(e,"scheduledTransactionID")&&$root.proto.TransactionID.encode(e.scheduledTransactionID,t.uint32(106).fork()).ldelim(),null!=e.serialNumbers&&e.serialNumbers.length){t.uint32(114).fork();for(var r=0;r<e.serialNumbers.length;++r)t.int64(e.serialNumbers[r]);t.ldelim()}return null!=e.nodeId&&Object.hasOwnProperty.call(e,"nodeId")&&t.uint32(120).uint64(e.nodeId),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TransactionReceipt;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.status=e.int32();break;case 2:o.accountID=$root.proto.AccountID.decode(e,e.uint32());break;case 3:o.fileID=$root.proto.FileID.decode(e,e.uint32());break;case 4:o.contractID=$root.proto.ContractID.decode(e,e.uint32());break;case 5:o.exchangeRate=$root.proto.ExchangeRateSet.decode(e,e.uint32());break;case 6:o.topicID=$root.proto.TopicID.decode(e,e.uint32());break;case 7:o.topicSequenceNumber=e.uint64();break;case 8:o.topicRunningHash=e.bytes();break;case 9:o.topicRunningHashVersion=e.uint64();break;case 10:o.tokenID=$root.proto.TokenID.decode(e,e.uint32());break;case 11:o.newTotalSupply=e.uint64();break;case 12:o.scheduleID=$root.proto.ScheduleID.decode(e,e.uint32());break;case 13:o.scheduledTransactionID=$root.proto.TransactionID.decode(e,e.uint32());break;case 14:if(o.serialNumbers&&o.serialNumbers.length||(o.serialNumbers=[]),2==(7&n))for(var i=e.uint32()+e.pos;e.pos<i;)o.serialNumbers.push(e.int64());else o.serialNumbers.push(e.int64());break;case 15:o.nodeId=e.uint64();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TransactionReceipt"},e}(),e.ExchangeRate=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.hbarEquiv=0,e.prototype.centEquiv=0,e.prototype.expirationTime=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.hbarEquiv&&Object.hasOwnProperty.call(e,"hbarEquiv")&&t.uint32(8).int32(e.hbarEquiv),null!=e.centEquiv&&Object.hasOwnProperty.call(e,"centEquiv")&&t.uint32(16).int32(e.centEquiv),null!=e.expirationTime&&Object.hasOwnProperty.call(e,"expirationTime")&&$root.proto.TimestampSeconds.encode(e.expirationTime,t.uint32(26).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ExchangeRate;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.hbarEquiv=e.int32();break;case 2:o.centEquiv=e.int32();break;case 3:o.expirationTime=$root.proto.TimestampSeconds.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ExchangeRate"},e}(),e.ExchangeRateSet=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.currentRate=null,e.prototype.nextRate=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.currentRate&&Object.hasOwnProperty.call(e,"currentRate")&&$root.proto.ExchangeRate.encode(e.currentRate,t.uint32(10).fork()).ldelim(),null!=e.nextRate&&Object.hasOwnProperty.call(e,"nextRate")&&$root.proto.ExchangeRate.encode(e.nextRate,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ExchangeRateSet;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.currentRate=$root.proto.ExchangeRate.decode(e,e.uint32());break;case 2:o.nextRate=$root.proto.ExchangeRate.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ExchangeRateSet"},e}(),e.CryptoGetAccountBalanceQuery=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.header=null,e.prototype.accountID=null,e.prototype.contractID=null,Object.defineProperty(e.prototype,"balanceSource",{get:$util.oneOfGetter(t=["accountID","contractID"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.QueryHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.accountID&&Object.hasOwnProperty.call(e,"accountID")&&$root.proto.AccountID.encode(e.accountID,t.uint32(18).fork()).ldelim(),null!=e.contractID&&Object.hasOwnProperty.call(e,"contractID")&&$root.proto.ContractID.encode(e.contractID,t.uint32(26).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.CryptoGetAccountBalanceQuery;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.QueryHeader.decode(e,e.uint32());break;case 2:o.accountID=$root.proto.AccountID.decode(e,e.uint32());break;case 3:o.contractID=$root.proto.ContractID.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.CryptoGetAccountBalanceQuery"},e}(),e.CryptoGetAccountBalanceResponse=function(){function e(e){if(this.tokenBalances=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.accountID=null,e.prototype.balance=$util.Long?$util.Long.fromBits(0,0,!0):0,e.prototype.tokenBalances=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.ResponseHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.accountID&&Object.hasOwnProperty.call(e,"accountID")&&$root.proto.AccountID.encode(e.accountID,t.uint32(18).fork()).ldelim(),null!=e.balance&&Object.hasOwnProperty.call(e,"balance")&&t.uint32(24).uint64(e.balance),null!=e.tokenBalances&&e.tokenBalances.length)for(var r=0;r<e.tokenBalances.length;++r)$root.proto.TokenBalance.encode(e.tokenBalances[r],t.uint32(34).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.CryptoGetAccountBalanceResponse;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.ResponseHeader.decode(e,e.uint32());break;case 2:o.accountID=$root.proto.AccountID.decode(e,e.uint32());break;case 3:o.balance=e.uint64();break;case 4:o.tokenBalances&&o.tokenBalances.length||(o.tokenBalances=[]),o.tokenBalances.push($root.proto.TokenBalance.decode(e,e.uint32()));break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.CryptoGetAccountBalanceResponse"},e}(),e.CryptoGetAccountRecordsQuery=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.accountID=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.QueryHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.accountID&&Object.hasOwnProperty.call(e,"accountID")&&$root.proto.AccountID.encode(e.accountID,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.CryptoGetAccountRecordsQuery;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.QueryHeader.decode(e,e.uint32());break;case 2:o.accountID=$root.proto.AccountID.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.CryptoGetAccountRecordsQuery"},e}(),e.CryptoGetAccountRecordsResponse=function(){function e(e){if(this.records=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.accountID=null,e.prototype.records=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.ResponseHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.accountID&&Object.hasOwnProperty.call(e,"accountID")&&$root.proto.AccountID.encode(e.accountID,t.uint32(18).fork()).ldelim(),null!=e.records&&e.records.length)for(var r=0;r<e.records.length;++r)$root.proto.TransactionRecord.encode(e.records[r],t.uint32(26).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.CryptoGetAccountRecordsResponse;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.ResponseHeader.decode(e,e.uint32());break;case 2:o.accountID=$root.proto.AccountID.decode(e,e.uint32());break;case 3:o.records&&o.records.length||(o.records=[]),o.records.push($root.proto.TransactionRecord.decode(e,e.uint32()));break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.CryptoGetAccountRecordsResponse"},e}(),e.CryptoGetInfoQuery=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.accountID=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.QueryHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.accountID&&Object.hasOwnProperty.call(e,"accountID")&&$root.proto.AccountID.encode(e.accountID,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.CryptoGetInfoQuery;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.QueryHeader.decode(e,e.uint32());break;case 2:o.accountID=$root.proto.AccountID.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.CryptoGetInfoQuery"},e}(),e.CryptoGetInfoResponse=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.accountInfo=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.ResponseHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.accountInfo&&Object.hasOwnProperty.call(e,"accountInfo")&&$root.proto.CryptoGetInfoResponse.AccountInfo.encode(e.accountInfo,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.CryptoGetInfoResponse;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.ResponseHeader.decode(e,e.uint32());break;case 2:o.accountInfo=$root.proto.CryptoGetInfoResponse.AccountInfo.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.CryptoGetInfoResponse"},e.AccountInfo=function(){function e(e){if(this.liveHashes=[],this.tokenRelationships=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.accountID=null,e.prototype.contractAccountID="",e.prototype.deleted=!1,e.prototype.proxyAccountID=null,e.prototype.proxyReceived=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.key=null,e.prototype.balance=$util.Long?$util.Long.fromBits(0,0,!0):0,e.prototype.generateSendRecordThreshold=$util.Long?$util.Long.fromBits(0,0,!0):0,e.prototype.generateReceiveRecordThreshold=$util.Long?$util.Long.fromBits(0,0,!0):0,e.prototype.receiverSigRequired=!1,e.prototype.expirationTime=null,e.prototype.autoRenewPeriod=null,e.prototype.liveHashes=$util.emptyArray,e.prototype.tokenRelationships=$util.emptyArray,e.prototype.memo="",e.prototype.ownedNfts=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.maxAutomaticTokenAssociations=0,e.prototype.alias=$util.newBuffer([]),e.prototype.ledgerId=$util.newBuffer([]),e.prototype.ethereumNonce=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.stakingInfo=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.accountID&&Object.hasOwnProperty.call(e,"accountID")&&$root.proto.AccountID.encode(e.accountID,t.uint32(10).fork()).ldelim(),null!=e.contractAccountID&&Object.hasOwnProperty.call(e,"contractAccountID")&&t.uint32(18).string(e.contractAccountID),null!=e.deleted&&Object.hasOwnProperty.call(e,"deleted")&&t.uint32(24).bool(e.deleted),null!=e.proxyAccountID&&Object.hasOwnProperty.call(e,"proxyAccountID")&&$root.proto.AccountID.encode(e.proxyAccountID,t.uint32(34).fork()).ldelim(),null!=e.proxyReceived&&Object.hasOwnProperty.call(e,"proxyReceived")&&t.uint32(48).int64(e.proxyReceived),null!=e.key&&Object.hasOwnProperty.call(e,"key")&&$root.proto.Key.encode(e.key,t.uint32(58).fork()).ldelim(),null!=e.balance&&Object.hasOwnProperty.call(e,"balance")&&t.uint32(64).uint64(e.balance),null!=e.generateSendRecordThreshold&&Object.hasOwnProperty.call(e,"generateSendRecordThreshold")&&t.uint32(72).uint64(e.generateSendRecordThreshold),null!=e.generateReceiveRecordThreshold&&Object.hasOwnProperty.call(e,"generateReceiveRecordThreshold")&&t.uint32(80).uint64(e.generateReceiveRecordThreshold),null!=e.receiverSigRequired&&Object.hasOwnProperty.call(e,"receiverSigRequired")&&t.uint32(88).bool(e.receiverSigRequired),null!=e.expirationTime&&Object.hasOwnProperty.call(e,"expirationTime")&&$root.proto.Timestamp.encode(e.expirationTime,t.uint32(98).fork()).ldelim(),null!=e.autoRenewPeriod&&Object.hasOwnProperty.call(e,"autoRenewPeriod")&&$root.proto.Duration.encode(e.autoRenewPeriod,t.uint32(106).fork()).ldelim(),null!=e.liveHashes&&e.liveHashes.length)for(var r=0;r<e.liveHashes.length;++r)$root.proto.LiveHash.encode(e.liveHashes[r],t.uint32(114).fork()).ldelim();if(null!=e.tokenRelationships&&e.tokenRelationships.length)for(r=0;r<e.tokenRelationships.length;++r)$root.proto.TokenRelationship.encode(e.tokenRelationships[r],t.uint32(122).fork()).ldelim();return null!=e.memo&&Object.hasOwnProperty.call(e,"memo")&&t.uint32(130).string(e.memo),null!=e.ownedNfts&&Object.hasOwnProperty.call(e,"ownedNfts")&&t.uint32(136).int64(e.ownedNfts),null!=e.maxAutomaticTokenAssociations&&Object.hasOwnProperty.call(e,"maxAutomaticTokenAssociations")&&t.uint32(144).int32(e.maxAutomaticTokenAssociations),null!=e.alias&&Object.hasOwnProperty.call(e,"alias")&&t.uint32(154).bytes(e.alias),null!=e.ledgerId&&Object.hasOwnProperty.call(e,"ledgerId")&&t.uint32(162).bytes(e.ledgerId),null!=e.ethereumNonce&&Object.hasOwnProperty.call(e,"ethereumNonce")&&t.uint32(168).int64(e.ethereumNonce),null!=e.stakingInfo&&Object.hasOwnProperty.call(e,"stakingInfo")&&$root.proto.StakingInfo.encode(e.stakingInfo,t.uint32(178).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.CryptoGetInfoResponse.AccountInfo;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.accountID=$root.proto.AccountID.decode(e,e.uint32());break;case 2:o.contractAccountID=e.string();break;case 3:o.deleted=e.bool();break;case 4:o.proxyAccountID=$root.proto.AccountID.decode(e,e.uint32());break;case 6:o.proxyReceived=e.int64();break;case 7:o.key=$root.proto.Key.decode(e,e.uint32());break;case 8:o.balance=e.uint64();break;case 9:o.generateSendRecordThreshold=e.uint64();break;case 10:o.generateReceiveRecordThreshold=e.uint64();break;case 11:o.receiverSigRequired=e.bool();break;case 12:o.expirationTime=$root.proto.Timestamp.decode(e,e.uint32());break;case 13:o.autoRenewPeriod=$root.proto.Duration.decode(e,e.uint32());break;case 14:o.liveHashes&&o.liveHashes.length||(o.liveHashes=[]),o.liveHashes.push($root.proto.LiveHash.decode(e,e.uint32()));break;case 15:o.tokenRelationships&&o.tokenRelationships.length||(o.tokenRelationships=[]),o.tokenRelationships.push($root.proto.TokenRelationship.decode(e,e.uint32()));break;case 16:o.memo=e.string();break;case 17:o.ownedNfts=e.int64();break;case 18:o.maxAutomaticTokenAssociations=e.int32();break;case 19:o.alias=e.bytes();break;case 20:o.ledgerId=e.bytes();break;case 21:o.ethereumNonce=e.int64();break;case 22:o.stakingInfo=$root.proto.StakingInfo.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.CryptoGetInfoResponse.AccountInfo"},e}(),e}(),e.CryptoGetLiveHashQuery=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.accountID=null,e.prototype.hash=$util.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.QueryHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.accountID&&Object.hasOwnProperty.call(e,"accountID")&&$root.proto.AccountID.encode(e.accountID,t.uint32(18).fork()).ldelim(),null!=e.hash&&Object.hasOwnProperty.call(e,"hash")&&t.uint32(26).bytes(e.hash),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.CryptoGetLiveHashQuery;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.QueryHeader.decode(e,e.uint32());break;case 2:o.accountID=$root.proto.AccountID.decode(e,e.uint32());break;case 3:o.hash=e.bytes();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.CryptoGetLiveHashQuery"},e}(),e.CryptoGetLiveHashResponse=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.liveHash=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.ResponseHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.liveHash&&Object.hasOwnProperty.call(e,"liveHash")&&$root.proto.LiveHash.encode(e.liveHash,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.CryptoGetLiveHashResponse;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.ResponseHeader.decode(e,e.uint32());break;case 2:o.liveHash=$root.proto.LiveHash.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.CryptoGetLiveHashResponse"},e}(),e.CryptoGetStakersQuery=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.accountID=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.QueryHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.accountID&&Object.hasOwnProperty.call(e,"accountID")&&$root.proto.AccountID.encode(e.accountID,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.CryptoGetStakersQuery;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.QueryHeader.decode(e,e.uint32());break;case 2:o.accountID=$root.proto.AccountID.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.CryptoGetStakersQuery"},e}(),e.ProxyStaker=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.accountID=null,e.prototype.amount=$util.Long?$util.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.accountID&&Object.hasOwnProperty.call(e,"accountID")&&$root.proto.AccountID.encode(e.accountID,t.uint32(10).fork()).ldelim(),null!=e.amount&&Object.hasOwnProperty.call(e,"amount")&&t.uint32(16).int64(e.amount),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ProxyStaker;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.accountID=$root.proto.AccountID.decode(e,e.uint32());break;case 2:o.amount=e.int64();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ProxyStaker"},e}(),e.AllProxyStakers=function(){function e(e){if(this.proxyStaker=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.accountID=null,e.prototype.proxyStaker=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.accountID&&Object.hasOwnProperty.call(e,"accountID")&&$root.proto.AccountID.encode(e.accountID,t.uint32(10).fork()).ldelim(),null!=e.proxyStaker&&e.proxyStaker.length)for(var r=0;r<e.proxyStaker.length;++r)$root.proto.ProxyStaker.encode(e.proxyStaker[r],t.uint32(18).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.AllProxyStakers;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.accountID=$root.proto.AccountID.decode(e,e.uint32());break;case 2:o.proxyStaker&&o.proxyStaker.length||(o.proxyStaker=[]),o.proxyStaker.push($root.proto.ProxyStaker.decode(e,e.uint32()));break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.AllProxyStakers"},e}(),e.CryptoGetStakersResponse=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.stakers=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.ResponseHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.stakers&&Object.hasOwnProperty.call(e,"stakers")&&$root.proto.AllProxyStakers.encode(e.stakers,t.uint32(26).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.CryptoGetStakersResponse;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.ResponseHeader.decode(e,e.uint32());break;case 3:o.stakers=$root.proto.AllProxyStakers.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.CryptoGetStakersResponse"},e}(),e.FileGetContentsQuery=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.fileID=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.QueryHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.fileID&&Object.hasOwnProperty.call(e,"fileID")&&$root.proto.FileID.encode(e.fileID,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.FileGetContentsQuery;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.QueryHeader.decode(e,e.uint32());break;case 2:o.fileID=$root.proto.FileID.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.FileGetContentsQuery"},e}(),e.FileGetContentsResponse=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.fileContents=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.ResponseHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.fileContents&&Object.hasOwnProperty.call(e,"fileContents")&&$root.proto.FileGetContentsResponse.FileContents.encode(e.fileContents,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.FileGetContentsResponse;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.ResponseHeader.decode(e,e.uint32());break;case 2:o.fileContents=$root.proto.FileGetContentsResponse.FileContents.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.FileGetContentsResponse"},e.FileContents=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.fileID=null,e.prototype.contents=$util.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.fileID&&Object.hasOwnProperty.call(e,"fileID")&&$root.proto.FileID.encode(e.fileID,t.uint32(10).fork()).ldelim(),null!=e.contents&&Object.hasOwnProperty.call(e,"contents")&&t.uint32(18).bytes(e.contents),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.FileGetContentsResponse.FileContents;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.fileID=$root.proto.FileID.decode(e,e.uint32());break;case 2:o.contents=e.bytes();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.FileGetContentsResponse.FileContents"},e}(),e}(),e.FileGetInfoQuery=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.fileID=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.QueryHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.fileID&&Object.hasOwnProperty.call(e,"fileID")&&$root.proto.FileID.encode(e.fileID,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.FileGetInfoQuery;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.QueryHeader.decode(e,e.uint32());break;case 2:o.fileID=$root.proto.FileID.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.FileGetInfoQuery"},e}(),e.FileGetInfoResponse=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.fileInfo=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.ResponseHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.fileInfo&&Object.hasOwnProperty.call(e,"fileInfo")&&$root.proto.FileGetInfoResponse.FileInfo.encode(e.fileInfo,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.FileGetInfoResponse;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.ResponseHeader.decode(e,e.uint32());break;case 2:o.fileInfo=$root.proto.FileGetInfoResponse.FileInfo.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.FileGetInfoResponse"},e.FileInfo=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.fileID=null,e.prototype.size=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.expirationTime=null,e.prototype.deleted=!1,e.prototype.keys=null,e.prototype.memo="",e.prototype.ledgerId=$util.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.fileID&&Object.hasOwnProperty.call(e,"fileID")&&$root.proto.FileID.encode(e.fileID,t.uint32(10).fork()).ldelim(),null!=e.size&&Object.hasOwnProperty.call(e,"size")&&t.uint32(16).int64(e.size),null!=e.expirationTime&&Object.hasOwnProperty.call(e,"expirationTime")&&$root.proto.Timestamp.encode(e.expirationTime,t.uint32(26).fork()).ldelim(),null!=e.deleted&&Object.hasOwnProperty.call(e,"deleted")&&t.uint32(32).bool(e.deleted),null!=e.keys&&Object.hasOwnProperty.call(e,"keys")&&$root.proto.KeyList.encode(e.keys,t.uint32(42).fork()).ldelim(),null!=e.memo&&Object.hasOwnProperty.call(e,"memo")&&t.uint32(50).string(e.memo),null!=e.ledgerId&&Object.hasOwnProperty.call(e,"ledgerId")&&t.uint32(58).bytes(e.ledgerId),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.FileGetInfoResponse.FileInfo;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.fileID=$root.proto.FileID.decode(e,e.uint32());break;case 2:o.size=e.int64();break;case 3:o.expirationTime=$root.proto.Timestamp.decode(e,e.uint32());break;case 4:o.deleted=e.bool();break;case 5:o.keys=$root.proto.KeyList.decode(e,e.uint32());break;case 6:o.memo=e.string();break;case 7:o.ledgerId=e.bytes();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.FileGetInfoResponse.FileInfo"},e}(),e}(),e.TransactionGetReceiptQuery=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.transactionID=null,e.prototype.includeDuplicates=!1,e.prototype.includeChildReceipts=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.QueryHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.transactionID&&Object.hasOwnProperty.call(e,"transactionID")&&$root.proto.TransactionID.encode(e.transactionID,t.uint32(18).fork()).ldelim(),null!=e.includeDuplicates&&Object.hasOwnProperty.call(e,"includeDuplicates")&&t.uint32(24).bool(e.includeDuplicates),null!=e.includeChildReceipts&&Object.hasOwnProperty.call(e,"includeChildReceipts")&&t.uint32(32).bool(e.includeChildReceipts),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TransactionGetReceiptQuery;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.QueryHeader.decode(e,e.uint32());break;case 2:o.transactionID=$root.proto.TransactionID.decode(e,e.uint32());break;case 3:o.includeDuplicates=e.bool();break;case 4:o.includeChildReceipts=e.bool();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TransactionGetReceiptQuery"},e}(),e.TransactionGetReceiptResponse=function(){function e(e){if(this.duplicateTransactionReceipts=[],this.childTransactionReceipts=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.receipt=null,e.prototype.duplicateTransactionReceipts=$util.emptyArray,e.prototype.childTransactionReceipts=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.ResponseHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.receipt&&Object.hasOwnProperty.call(e,"receipt")&&$root.proto.TransactionReceipt.encode(e.receipt,t.uint32(18).fork()).ldelim(),null!=e.duplicateTransactionReceipts&&e.duplicateTransactionReceipts.length)for(var r=0;r<e.duplicateTransactionReceipts.length;++r)$root.proto.TransactionReceipt.encode(e.duplicateTransactionReceipts[r],t.uint32(34).fork()).ldelim();if(null!=e.childTransactionReceipts&&e.childTransactionReceipts.length)for(r=0;r<e.childTransactionReceipts.length;++r)$root.proto.TransactionReceipt.encode(e.childTransactionReceipts[r],t.uint32(42).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TransactionGetReceiptResponse;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.ResponseHeader.decode(e,e.uint32());break;case 2:o.receipt=$root.proto.TransactionReceipt.decode(e,e.uint32());break;case 4:o.duplicateTransactionReceipts&&o.duplicateTransactionReceipts.length||(o.duplicateTransactionReceipts=[]),o.duplicateTransactionReceipts.push($root.proto.TransactionReceipt.decode(e,e.uint32()));break;case 5:o.childTransactionReceipts&&o.childTransactionReceipts.length||(o.childTransactionReceipts=[]),o.childTransactionReceipts.push($root.proto.TransactionReceipt.decode(e,e.uint32()));break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TransactionGetReceiptResponse"},e}(),e.TransactionGetRecordQuery=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.transactionID=null,e.prototype.includeDuplicates=!1,e.prototype.includeChildRecords=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.QueryHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.transactionID&&Object.hasOwnProperty.call(e,"transactionID")&&$root.proto.TransactionID.encode(e.transactionID,t.uint32(18).fork()).ldelim(),null!=e.includeDuplicates&&Object.hasOwnProperty.call(e,"includeDuplicates")&&t.uint32(24).bool(e.includeDuplicates),null!=e.includeChildRecords&&Object.hasOwnProperty.call(e,"includeChildRecords")&&t.uint32(32).bool(e.includeChildRecords),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TransactionGetRecordQuery;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.QueryHeader.decode(e,e.uint32());break;case 2:o.transactionID=$root.proto.TransactionID.decode(e,e.uint32());break;case 3:o.includeDuplicates=e.bool();break;case 4:o.includeChildRecords=e.bool();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TransactionGetRecordQuery"},e}(),e.TransactionGetRecordResponse=function(){function e(e){if(this.duplicateTransactionRecords=[],this.childTransactionRecords=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.transactionRecord=null,e.prototype.duplicateTransactionRecords=$util.emptyArray,e.prototype.childTransactionRecords=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.ResponseHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.transactionRecord&&Object.hasOwnProperty.call(e,"transactionRecord")&&$root.proto.TransactionRecord.encode(e.transactionRecord,t.uint32(26).fork()).ldelim(),null!=e.duplicateTransactionRecords&&e.duplicateTransactionRecords.length)for(var r=0;r<e.duplicateTransactionRecords.length;++r)$root.proto.TransactionRecord.encode(e.duplicateTransactionRecords[r],t.uint32(34).fork()).ldelim();if(null!=e.childTransactionRecords&&e.childTransactionRecords.length)for(r=0;r<e.childTransactionRecords.length;++r)$root.proto.TransactionRecord.encode(e.childTransactionRecords[r],t.uint32(42).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TransactionGetRecordResponse;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.ResponseHeader.decode(e,e.uint32());break;case 3:o.transactionRecord=$root.proto.TransactionRecord.decode(e,e.uint32());break;case 4:o.duplicateTransactionRecords&&o.duplicateTransactionRecords.length||(o.duplicateTransactionRecords=[]),o.duplicateTransactionRecords.push($root.proto.TransactionRecord.decode(e,e.uint32()));break;case 5:o.childTransactionRecords&&o.childTransactionRecords.length||(o.childTransactionRecords=[]),o.childTransactionRecords.push($root.proto.TransactionRecord.decode(e,e.uint32()));break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TransactionGetRecordResponse"},e}(),e.TransactionGetFastRecordQuery=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.transactionID=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.QueryHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.transactionID&&Object.hasOwnProperty.call(e,"transactionID")&&$root.proto.TransactionID.encode(e.transactionID,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TransactionGetFastRecordQuery;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.QueryHeader.decode(e,e.uint32());break;case 2:o.transactionID=$root.proto.TransactionID.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TransactionGetFastRecordQuery"},e}(),e.TransactionGetFastRecordResponse=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.transactionRecord=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.ResponseHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.transactionRecord&&Object.hasOwnProperty.call(e,"transactionRecord")&&$root.proto.TransactionRecord.encode(e.transactionRecord,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TransactionGetFastRecordResponse;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.ResponseHeader.decode(e,e.uint32());break;case 2:o.transactionRecord=$root.proto.TransactionRecord.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TransactionGetFastRecordResponse"},e}(),e.NetworkGetVersionInfoQuery=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.QueryHeader.encode(e.header,t.uint32(10).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.NetworkGetVersionInfoQuery;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.header=$root.proto.QueryHeader.decode(e,e.uint32());else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.NetworkGetVersionInfoQuery"},e}(),e.NetworkGetVersionInfoResponse=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.hapiProtoVersion=null,e.prototype.hederaServicesVersion=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.ResponseHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.hapiProtoVersion&&Object.hasOwnProperty.call(e,"hapiProtoVersion")&&$root.proto.SemanticVersion.encode(e.hapiProtoVersion,t.uint32(18).fork()).ldelim(),null!=e.hederaServicesVersion&&Object.hasOwnProperty.call(e,"hederaServicesVersion")&&$root.proto.SemanticVersion.encode(e.hederaServicesVersion,t.uint32(26).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.NetworkGetVersionInfoResponse;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.ResponseHeader.decode(e,e.uint32());break;case 2:o.hapiProtoVersion=$root.proto.SemanticVersion.decode(e,e.uint32());break;case 3:o.hederaServicesVersion=$root.proto.SemanticVersion.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.NetworkGetVersionInfoResponse"},e}(),e.NetworkGetExecutionTimeQuery=function(){function e(e){if(this.transactionIds=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.transactionIds=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.QueryHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.transactionIds&&e.transactionIds.length)for(var r=0;r<e.transactionIds.length;++r)$root.proto.TransactionID.encode(e.transactionIds[r],t.uint32(18).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.NetworkGetExecutionTimeQuery;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.QueryHeader.decode(e,e.uint32());break;case 2:o.transactionIds&&o.transactionIds.length||(o.transactionIds=[]),o.transactionIds.push($root.proto.TransactionID.decode(e,e.uint32()));break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.NetworkGetExecutionTimeQuery"},e}(),e.NetworkGetExecutionTimeResponse=function(){function e(e){if(this.executionTimes=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.executionTimes=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.ResponseHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.executionTimes&&e.executionTimes.length){t.uint32(18).fork();for(var r=0;r<e.executionTimes.length;++r)t.uint64(e.executionTimes[r]);t.ldelim()}return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.NetworkGetExecutionTimeResponse;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.ResponseHeader.decode(e,e.uint32());break;case 2:if(o.executionTimes&&o.executionTimes.length||(o.executionTimes=[]),2==(7&n))for(var i=e.uint32()+e.pos;e.pos<i;)o.executionTimes.push(e.uint64());else o.executionTimes.push(e.uint64());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.NetworkGetExecutionTimeResponse"},e}(),e.TokenGetInfoQuery=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.token=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.QueryHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.token&&Object.hasOwnProperty.call(e,"token")&&$root.proto.TokenID.encode(e.token,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenGetInfoQuery;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.QueryHeader.decode(e,e.uint32());break;case 2:o.token=$root.proto.TokenID.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenGetInfoQuery"},e}(),e.TokenInfo=function(){function e(e){if(this.customFees=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.tokenId=null,e.prototype.name="",e.prototype.symbol="",e.prototype.decimals=0,e.prototype.totalSupply=$util.Long?$util.Long.fromBits(0,0,!0):0,e.prototype.treasury=null,e.prototype.adminKey=null,e.prototype.kycKey=null,e.prototype.freezeKey=null,e.prototype.wipeKey=null,e.prototype.supplyKey=null,e.prototype.defaultFreezeStatus=0,e.prototype.defaultKycStatus=0,e.prototype.deleted=!1,e.prototype.autoRenewAccount=null,e.prototype.autoRenewPeriod=null,e.prototype.expiry=null,e.prototype.memo="",e.prototype.tokenType=0,e.prototype.supplyType=0,e.prototype.maxSupply=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.feeScheduleKey=null,e.prototype.customFees=$util.emptyArray,e.prototype.pauseKey=null,e.prototype.pauseStatus=0,e.prototype.ledgerId=$util.newBuffer([]),e.prototype.metadata=$util.newBuffer([]),e.prototype.metadataKey=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.tokenId&&Object.hasOwnProperty.call(e,"tokenId")&&$root.proto.TokenID.encode(e.tokenId,t.uint32(10).fork()).ldelim(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(18).string(e.name),null!=e.symbol&&Object.hasOwnProperty.call(e,"symbol")&&t.uint32(26).string(e.symbol),null!=e.decimals&&Object.hasOwnProperty.call(e,"decimals")&&t.uint32(32).uint32(e.decimals),null!=e.totalSupply&&Object.hasOwnProperty.call(e,"totalSupply")&&t.uint32(40).uint64(e.totalSupply),null!=e.treasury&&Object.hasOwnProperty.call(e,"treasury")&&$root.proto.AccountID.encode(e.treasury,t.uint32(50).fork()).ldelim(),null!=e.adminKey&&Object.hasOwnProperty.call(e,"adminKey")&&$root.proto.Key.encode(e.adminKey,t.uint32(58).fork()).ldelim(),null!=e.kycKey&&Object.hasOwnProperty.call(e,"kycKey")&&$root.proto.Key.encode(e.kycKey,t.uint32(66).fork()).ldelim(),null!=e.freezeKey&&Object.hasOwnProperty.call(e,"freezeKey")&&$root.proto.Key.encode(e.freezeKey,t.uint32(74).fork()).ldelim(),null!=e.wipeKey&&Object.hasOwnProperty.call(e,"wipeKey")&&$root.proto.Key.encode(e.wipeKey,t.uint32(82).fork()).ldelim(),null!=e.supplyKey&&Object.hasOwnProperty.call(e,"supplyKey")&&$root.proto.Key.encode(e.supplyKey,t.uint32(90).fork()).ldelim(),null!=e.defaultFreezeStatus&&Object.hasOwnProperty.call(e,"defaultFreezeStatus")&&t.uint32(96).int32(e.defaultFreezeStatus),null!=e.defaultKycStatus&&Object.hasOwnProperty.call(e,"defaultKycStatus")&&t.uint32(104).int32(e.defaultKycStatus),null!=e.deleted&&Object.hasOwnProperty.call(e,"deleted")&&t.uint32(112).bool(e.deleted),null!=e.autoRenewAccount&&Object.hasOwnProperty.call(e,"autoRenewAccount")&&$root.proto.AccountID.encode(e.autoRenewAccount,t.uint32(122).fork()).ldelim(),null!=e.autoRenewPeriod&&Object.hasOwnProperty.call(e,"autoRenewPeriod")&&$root.proto.Duration.encode(e.autoRenewPeriod,t.uint32(130).fork()).ldelim(),null!=e.expiry&&Object.hasOwnProperty.call(e,"expiry")&&$root.proto.Timestamp.encode(e.expiry,t.uint32(138).fork()).ldelim(),null!=e.memo&&Object.hasOwnProperty.call(e,"memo")&&t.uint32(146).string(e.memo),null!=e.tokenType&&Object.hasOwnProperty.call(e,"tokenType")&&t.uint32(152).int32(e.tokenType),null!=e.supplyType&&Object.hasOwnProperty.call(e,"supplyType")&&t.uint32(160).int32(e.supplyType),null!=e.maxSupply&&Object.hasOwnProperty.call(e,"maxSupply")&&t.uint32(168).int64(e.maxSupply),null!=e.feeScheduleKey&&Object.hasOwnProperty.call(e,"feeScheduleKey")&&$root.proto.Key.encode(e.feeScheduleKey,t.uint32(178).fork()).ldelim(),null!=e.customFees&&e.customFees.length)for(var r=0;r<e.customFees.length;++r)$root.proto.CustomFee.encode(e.customFees[r],t.uint32(186).fork()).ldelim();return null!=e.pauseKey&&Object.hasOwnProperty.call(e,"pauseKey")&&$root.proto.Key.encode(e.pauseKey,t.uint32(194).fork()).ldelim(),null!=e.pauseStatus&&Object.hasOwnProperty.call(e,"pauseStatus")&&t.uint32(200).int32(e.pauseStatus),null!=e.ledgerId&&Object.hasOwnProperty.call(e,"ledgerId")&&t.uint32(210).bytes(e.ledgerId),null!=e.metadata&&Object.hasOwnProperty.call(e,"metadata")&&t.uint32(218).bytes(e.metadata),null!=e.metadataKey&&Object.hasOwnProperty.call(e,"metadataKey")&&$root.proto.Key.encode(e.metadataKey,t.uint32(226).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenInfo;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.tokenId=$root.proto.TokenID.decode(e,e.uint32());break;case 2:o.name=e.string();break;case 3:o.symbol=e.string();break;case 4:o.decimals=e.uint32();break;case 5:o.totalSupply=e.uint64();break;case 6:o.treasury=$root.proto.AccountID.decode(e,e.uint32());break;case 7:o.adminKey=$root.proto.Key.decode(e,e.uint32());break;case 8:o.kycKey=$root.proto.Key.decode(e,e.uint32());break;case 9:o.freezeKey=$root.proto.Key.decode(e,e.uint32());break;case 10:o.wipeKey=$root.proto.Key.decode(e,e.uint32());break;case 11:o.supplyKey=$root.proto.Key.decode(e,e.uint32());break;case 12:o.defaultFreezeStatus=e.int32();break;case 13:o.defaultKycStatus=e.int32();break;case 14:o.deleted=e.bool();break;case 15:o.autoRenewAccount=$root.proto.AccountID.decode(e,e.uint32());break;case 16:o.autoRenewPeriod=$root.proto.Duration.decode(e,e.uint32());break;case 17:o.expiry=$root.proto.Timestamp.decode(e,e.uint32());break;case 18:o.memo=e.string();break;case 19:o.tokenType=e.int32();break;case 20:o.supplyType=e.int32();break;case 21:o.maxSupply=e.int64();break;case 22:o.feeScheduleKey=$root.proto.Key.decode(e,e.uint32());break;case 23:o.customFees&&o.customFees.length||(o.customFees=[]),o.customFees.push($root.proto.CustomFee.decode(e,e.uint32()));break;case 24:o.pauseKey=$root.proto.Key.decode(e,e.uint32());break;case 25:o.pauseStatus=e.int32();break;case 26:o.ledgerId=e.bytes();break;case 27:o.metadata=e.bytes();break;case 28:o.metadataKey=$root.proto.Key.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenInfo"},e}(),e.TokenGetInfoResponse=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.tokenInfo=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.ResponseHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.tokenInfo&&Object.hasOwnProperty.call(e,"tokenInfo")&&$root.proto.TokenInfo.encode(e.tokenInfo,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenGetInfoResponse;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.ResponseHeader.decode(e,e.uint32());break;case 2:o.tokenInfo=$root.proto.TokenInfo.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenGetInfoResponse"},e}(),e.ScheduleGetInfoQuery=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.scheduleID=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.QueryHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.scheduleID&&Object.hasOwnProperty.call(e,"scheduleID")&&$root.proto.ScheduleID.encode(e.scheduleID,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ScheduleGetInfoQuery;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.QueryHeader.decode(e,e.uint32());break;case 2:o.scheduleID=$root.proto.ScheduleID.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ScheduleGetInfoQuery"},e}(),e.ScheduleInfo=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.scheduleID=null,e.prototype.deletionTime=null,e.prototype.executionTime=null,e.prototype.expirationTime=null,e.prototype.scheduledTransactionBody=null,e.prototype.memo="",e.prototype.adminKey=null,e.prototype.signers=null,e.prototype.creatorAccountID=null,e.prototype.payerAccountID=null,e.prototype.scheduledTransactionID=null,e.prototype.ledgerId=$util.newBuffer([]),e.prototype.waitForExpiry=!1,Object.defineProperty(e.prototype,"data",{get:$util.oneOfGetter(t=["deletionTime","executionTime"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.scheduleID&&Object.hasOwnProperty.call(e,"scheduleID")&&$root.proto.ScheduleID.encode(e.scheduleID,t.uint32(10).fork()).ldelim(),null!=e.deletionTime&&Object.hasOwnProperty.call(e,"deletionTime")&&$root.proto.Timestamp.encode(e.deletionTime,t.uint32(18).fork()).ldelim(),null!=e.executionTime&&Object.hasOwnProperty.call(e,"executionTime")&&$root.proto.Timestamp.encode(e.executionTime,t.uint32(26).fork()).ldelim(),null!=e.expirationTime&&Object.hasOwnProperty.call(e,"expirationTime")&&$root.proto.Timestamp.encode(e.expirationTime,t.uint32(34).fork()).ldelim(),null!=e.scheduledTransactionBody&&Object.hasOwnProperty.call(e,"scheduledTransactionBody")&&$root.proto.SchedulableTransactionBody.encode(e.scheduledTransactionBody,t.uint32(42).fork()).ldelim(),null!=e.memo&&Object.hasOwnProperty.call(e,"memo")&&t.uint32(50).string(e.memo),null!=e.adminKey&&Object.hasOwnProperty.call(e,"adminKey")&&$root.proto.Key.encode(e.adminKey,t.uint32(58).fork()).ldelim(),null!=e.signers&&Object.hasOwnProperty.call(e,"signers")&&$root.proto.KeyList.encode(e.signers,t.uint32(66).fork()).ldelim(),null!=e.creatorAccountID&&Object.hasOwnProperty.call(e,"creatorAccountID")&&$root.proto.AccountID.encode(e.creatorAccountID,t.uint32(74).fork()).ldelim(),null!=e.payerAccountID&&Object.hasOwnProperty.call(e,"payerAccountID")&&$root.proto.AccountID.encode(e.payerAccountID,t.uint32(82).fork()).ldelim(),null!=e.scheduledTransactionID&&Object.hasOwnProperty.call(e,"scheduledTransactionID")&&$root.proto.TransactionID.encode(e.scheduledTransactionID,t.uint32(90).fork()).ldelim(),null!=e.ledgerId&&Object.hasOwnProperty.call(e,"ledgerId")&&t.uint32(98).bytes(e.ledgerId),null!=e.waitForExpiry&&Object.hasOwnProperty.call(e,"waitForExpiry")&&t.uint32(104).bool(e.waitForExpiry),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ScheduleInfo;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.scheduleID=$root.proto.ScheduleID.decode(e,e.uint32());break;case 2:o.deletionTime=$root.proto.Timestamp.decode(e,e.uint32());break;case 3:o.executionTime=$root.proto.Timestamp.decode(e,e.uint32());break;case 4:o.expirationTime=$root.proto.Timestamp.decode(e,e.uint32());break;case 5:o.scheduledTransactionBody=$root.proto.SchedulableTransactionBody.decode(e,e.uint32());break;case 6:o.memo=e.string();break;case 7:o.adminKey=$root.proto.Key.decode(e,e.uint32());break;case 8:o.signers=$root.proto.KeyList.decode(e,e.uint32());break;case 9:o.creatorAccountID=$root.proto.AccountID.decode(e,e.uint32());break;case 10:o.payerAccountID=$root.proto.AccountID.decode(e,e.uint32());break;case 11:o.scheduledTransactionID=$root.proto.TransactionID.decode(e,e.uint32());break;case 12:o.ledgerId=e.bytes();break;case 13:o.waitForExpiry=e.bool();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ScheduleInfo"},e}(),e.ScheduleGetInfoResponse=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.scheduleInfo=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.ResponseHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.scheduleInfo&&Object.hasOwnProperty.call(e,"scheduleInfo")&&$root.proto.ScheduleInfo.encode(e.scheduleInfo,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ScheduleGetInfoResponse;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.ResponseHeader.decode(e,e.uint32());break;case 2:o.scheduleInfo=$root.proto.ScheduleInfo.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ScheduleGetInfoResponse"},e}(),e.TokenGetAccountNftInfosQuery=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.accountID=null,e.prototype.start=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.end=$util.Long?$util.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.QueryHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.accountID&&Object.hasOwnProperty.call(e,"accountID")&&$root.proto.AccountID.encode(e.accountID,t.uint32(18).fork()).ldelim(),null!=e.start&&Object.hasOwnProperty.call(e,"start")&&t.uint32(24).int64(e.start),null!=e.end&&Object.hasOwnProperty.call(e,"end")&&t.uint32(32).int64(e.end),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenGetAccountNftInfosQuery;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.QueryHeader.decode(e,e.uint32());break;case 2:o.accountID=$root.proto.AccountID.decode(e,e.uint32());break;case 3:o.start=e.int64();break;case 4:o.end=e.int64();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenGetAccountNftInfosQuery"},e}(),e.TokenGetAccountNftInfosResponse=function(){function e(e){if(this.nfts=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.nfts=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.ResponseHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.nfts&&e.nfts.length)for(var r=0;r<e.nfts.length;++r)$root.proto.TokenNftInfo.encode(e.nfts[r],t.uint32(18).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenGetAccountNftInfosResponse;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.ResponseHeader.decode(e,e.uint32());break;case 2:o.nfts&&o.nfts.length||(o.nfts=[]),o.nfts.push($root.proto.TokenNftInfo.decode(e,e.uint32()));break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenGetAccountNftInfosResponse"},e}(),e.TokenGetNftInfoQuery=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.nftID=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.QueryHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.nftID&&Object.hasOwnProperty.call(e,"nftID")&&$root.proto.NftID.encode(e.nftID,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenGetNftInfoQuery;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.QueryHeader.decode(e,e.uint32());break;case 2:o.nftID=$root.proto.NftID.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenGetNftInfoQuery"},e}(),e.TokenNftInfo=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.nftID=null,e.prototype.accountID=null,e.prototype.creationTime=null,e.prototype.metadata=$util.newBuffer([]),e.prototype.ledgerId=$util.newBuffer([]),e.prototype.spenderId=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.nftID&&Object.hasOwnProperty.call(e,"nftID")&&$root.proto.NftID.encode(e.nftID,t.uint32(10).fork()).ldelim(),null!=e.accountID&&Object.hasOwnProperty.call(e,"accountID")&&$root.proto.AccountID.encode(e.accountID,t.uint32(18).fork()).ldelim(),null!=e.creationTime&&Object.hasOwnProperty.call(e,"creationTime")&&$root.proto.Timestamp.encode(e.creationTime,t.uint32(26).fork()).ldelim(),null!=e.metadata&&Object.hasOwnProperty.call(e,"metadata")&&t.uint32(34).bytes(e.metadata),null!=e.ledgerId&&Object.hasOwnProperty.call(e,"ledgerId")&&t.uint32(42).bytes(e.ledgerId),null!=e.spenderId&&Object.hasOwnProperty.call(e,"spenderId")&&$root.proto.AccountID.encode(e.spenderId,t.uint32(50).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenNftInfo;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.nftID=$root.proto.NftID.decode(e,e.uint32());break;case 2:o.accountID=$root.proto.AccountID.decode(e,e.uint32());break;case 3:o.creationTime=$root.proto.Timestamp.decode(e,e.uint32());break;case 4:o.metadata=e.bytes();break;case 5:o.ledgerId=e.bytes();break;case 6:o.spenderId=$root.proto.AccountID.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenNftInfo"},e}(),e.TokenGetNftInfoResponse=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.nft=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.ResponseHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.nft&&Object.hasOwnProperty.call(e,"nft")&&$root.proto.TokenNftInfo.encode(e.nft,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenGetNftInfoResponse;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.ResponseHeader.decode(e,e.uint32());break;case 2:o.nft=$root.proto.TokenNftInfo.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenGetNftInfoResponse"},e}(),e.TokenGetNftInfosQuery=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.tokenID=null,e.prototype.start=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.end=$util.Long?$util.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.QueryHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.tokenID&&Object.hasOwnProperty.call(e,"tokenID")&&$root.proto.TokenID.encode(e.tokenID,t.uint32(18).fork()).ldelim(),null!=e.start&&Object.hasOwnProperty.call(e,"start")&&t.uint32(24).int64(e.start),null!=e.end&&Object.hasOwnProperty.call(e,"end")&&t.uint32(32).int64(e.end),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenGetNftInfosQuery;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.QueryHeader.decode(e,e.uint32());break;case 2:o.tokenID=$root.proto.TokenID.decode(e,e.uint32());break;case 3:o.start=e.int64();break;case 4:o.end=e.int64();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenGetNftInfosQuery"},e}(),e.TokenGetNftInfosResponse=function(){function e(e){if(this.nfts=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.tokenID=null,e.prototype.nfts=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.ResponseHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.tokenID&&Object.hasOwnProperty.call(e,"tokenID")&&$root.proto.TokenID.encode(e.tokenID,t.uint32(18).fork()).ldelim(),null!=e.nfts&&e.nfts.length)for(var r=0;r<e.nfts.length;++r)$root.proto.TokenNftInfo.encode(e.nfts[r],t.uint32(26).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenGetNftInfosResponse;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.ResponseHeader.decode(e,e.uint32());break;case 2:o.tokenID=$root.proto.TokenID.decode(e,e.uint32());break;case 3:o.nfts&&o.nfts.length||(o.nfts=[]),o.nfts.push($root.proto.TokenNftInfo.decode(e,e.uint32()));break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenGetNftInfosResponse"},e}(),e.GetAccountDetailsQuery=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.accountId=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.QueryHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.accountId&&Object.hasOwnProperty.call(e,"accountId")&&$root.proto.AccountID.encode(e.accountId,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.GetAccountDetailsQuery;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.QueryHeader.decode(e,e.uint32());break;case 2:o.accountId=$root.proto.AccountID.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.GetAccountDetailsQuery"},e}(),e.GetAccountDetailsResponse=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.accountDetails=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&$root.proto.ResponseHeader.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.accountDetails&&Object.hasOwnProperty.call(e,"accountDetails")&&$root.proto.GetAccountDetailsResponse.AccountDetails.encode(e.accountDetails,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.GetAccountDetailsResponse;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.header=$root.proto.ResponseHeader.decode(e,e.uint32());break;case 2:o.accountDetails=$root.proto.GetAccountDetailsResponse.AccountDetails.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.GetAccountDetailsResponse"},e.AccountDetails=function(){function e(e){if(this.tokenRelationships=[],this.grantedCryptoAllowances=[],this.grantedNftAllowances=[],this.grantedTokenAllowances=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.accountId=null,e.prototype.contractAccountId="",e.prototype.deleted=!1,e.prototype.proxyAccountId=null,e.prototype.proxyReceived=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.key=null,e.prototype.balance=$util.Long?$util.Long.fromBits(0,0,!0):0,e.prototype.receiverSigRequired=!1,e.prototype.expirationTime=null,e.prototype.autoRenewPeriod=null,e.prototype.tokenRelationships=$util.emptyArray,e.prototype.memo="",e.prototype.ownedNfts=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.maxAutomaticTokenAssociations=0,e.prototype.alias=$util.newBuffer([]),e.prototype.ledgerId=$util.newBuffer([]),e.prototype.grantedCryptoAllowances=$util.emptyArray,e.prototype.grantedNftAllowances=$util.emptyArray,e.prototype.grantedTokenAllowances=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.accountId&&Object.hasOwnProperty.call(e,"accountId")&&$root.proto.AccountID.encode(e.accountId,t.uint32(10).fork()).ldelim(),null!=e.contractAccountId&&Object.hasOwnProperty.call(e,"contractAccountId")&&t.uint32(18).string(e.contractAccountId),null!=e.deleted&&Object.hasOwnProperty.call(e,"deleted")&&t.uint32(24).bool(e.deleted),null!=e.proxyAccountId&&Object.hasOwnProperty.call(e,"proxyAccountId")&&$root.proto.AccountID.encode(e.proxyAccountId,t.uint32(34).fork()).ldelim(),null!=e.proxyReceived&&Object.hasOwnProperty.call(e,"proxyReceived")&&t.uint32(40).int64(e.proxyReceived),null!=e.key&&Object.hasOwnProperty.call(e,"key")&&$root.proto.Key.encode(e.key,t.uint32(50).fork()).ldelim(),null!=e.balance&&Object.hasOwnProperty.call(e,"balance")&&t.uint32(56).uint64(e.balance),null!=e.receiverSigRequired&&Object.hasOwnProperty.call(e,"receiverSigRequired")&&t.uint32(64).bool(e.receiverSigRequired),null!=e.expirationTime&&Object.hasOwnProperty.call(e,"expirationTime")&&$root.proto.Timestamp.encode(e.expirationTime,t.uint32(74).fork()).ldelim(),null!=e.autoRenewPeriod&&Object.hasOwnProperty.call(e,"autoRenewPeriod")&&$root.proto.Duration.encode(e.autoRenewPeriod,t.uint32(82).fork()).ldelim(),null!=e.tokenRelationships&&e.tokenRelationships.length)for(var r=0;r<e.tokenRelationships.length;++r)$root.proto.TokenRelationship.encode(e.tokenRelationships[r],t.uint32(90).fork()).ldelim();if(null!=e.memo&&Object.hasOwnProperty.call(e,"memo")&&t.uint32(98).string(e.memo),null!=e.ownedNfts&&Object.hasOwnProperty.call(e,"ownedNfts")&&t.uint32(104).int64(e.ownedNfts),null!=e.maxAutomaticTokenAssociations&&Object.hasOwnProperty.call(e,"maxAutomaticTokenAssociations")&&t.uint32(112).int32(e.maxAutomaticTokenAssociations),null!=e.alias&&Object.hasOwnProperty.call(e,"alias")&&t.uint32(122).bytes(e.alias),null!=e.ledgerId&&Object.hasOwnProperty.call(e,"ledgerId")&&t.uint32(130).bytes(e.ledgerId),null!=e.grantedCryptoAllowances&&e.grantedCryptoAllowances.length)for(r=0;r<e.grantedCryptoAllowances.length;++r)$root.proto.GrantedCryptoAllowance.encode(e.grantedCryptoAllowances[r],t.uint32(138).fork()).ldelim();if(null!=e.grantedNftAllowances&&e.grantedNftAllowances.length)for(r=0;r<e.grantedNftAllowances.length;++r)$root.proto.GrantedNftAllowance.encode(e.grantedNftAllowances[r],t.uint32(146).fork()).ldelim();if(null!=e.grantedTokenAllowances&&e.grantedTokenAllowances.length)for(r=0;r<e.grantedTokenAllowances.length;++r)$root.proto.GrantedTokenAllowance.encode(e.grantedTokenAllowances[r],t.uint32(154).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.GetAccountDetailsResponse.AccountDetails;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.accountId=$root.proto.AccountID.decode(e,e.uint32());break;case 2:o.contractAccountId=e.string();break;case 3:o.deleted=e.bool();break;case 4:o.proxyAccountId=$root.proto.AccountID.decode(e,e.uint32());break;case 5:o.proxyReceived=e.int64();break;case 6:o.key=$root.proto.Key.decode(e,e.uint32());break;case 7:o.balance=e.uint64();break;case 8:o.receiverSigRequired=e.bool();break;case 9:o.expirationTime=$root.proto.Timestamp.decode(e,e.uint32());break;case 10:o.autoRenewPeriod=$root.proto.Duration.decode(e,e.uint32());break;case 11:o.tokenRelationships&&o.tokenRelationships.length||(o.tokenRelationships=[]),o.tokenRelationships.push($root.proto.TokenRelationship.decode(e,e.uint32()));break;case 12:o.memo=e.string();break;case 13:o.ownedNfts=e.int64();break;case 14:o.maxAutomaticTokenAssociations=e.int32();break;case 15:o.alias=e.bytes();break;case 16:o.ledgerId=e.bytes();break;case 17:o.grantedCryptoAllowances&&o.grantedCryptoAllowances.length||(o.grantedCryptoAllowances=[]),o.grantedCryptoAllowances.push($root.proto.GrantedCryptoAllowance.decode(e,e.uint32()));break;case 18:o.grantedNftAllowances&&o.grantedNftAllowances.length||(o.grantedNftAllowances=[]),o.grantedNftAllowances.push($root.proto.GrantedNftAllowance.decode(e,e.uint32()));break;case 19:o.grantedTokenAllowances&&o.grantedTokenAllowances.length||(o.grantedTokenAllowances=[]),o.grantedTokenAllowances.push($root.proto.GrantedTokenAllowance.decode(e,e.uint32()));break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.GetAccountDetailsResponse.AccountDetails"},e}(),e}(),e.GrantedCryptoAllowance=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.spender=null,e.prototype.amount=$util.Long?$util.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.spender&&Object.hasOwnProperty.call(e,"spender")&&$root.proto.AccountID.encode(e.spender,t.uint32(10).fork()).ldelim(),null!=e.amount&&Object.hasOwnProperty.call(e,"amount")&&t.uint32(16).int64(e.amount),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.GrantedCryptoAllowance;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.spender=$root.proto.AccountID.decode(e,e.uint32());break;case 2:o.amount=e.int64();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.GrantedCryptoAllowance"},e}(),e.GrantedNftAllowance=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.tokenId=null,e.prototype.spender=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.tokenId&&Object.hasOwnProperty.call(e,"tokenId")&&$root.proto.TokenID.encode(e.tokenId,t.uint32(10).fork()).ldelim(),null!=e.spender&&Object.hasOwnProperty.call(e,"spender")&&$root.proto.AccountID.encode(e.spender,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.GrantedNftAllowance;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.tokenId=$root.proto.TokenID.decode(e,e.uint32());break;case 2:o.spender=$root.proto.AccountID.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.GrantedNftAllowance"},e}(),e.GrantedTokenAllowance=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.tokenId=null,e.prototype.spender=null,e.prototype.amount=$util.Long?$util.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.tokenId&&Object.hasOwnProperty.call(e,"tokenId")&&$root.proto.TokenID.encode(e.tokenId,t.uint32(10).fork()).ldelim(),null!=e.spender&&Object.hasOwnProperty.call(e,"spender")&&$root.proto.AccountID.encode(e.spender,t.uint32(18).fork()).ldelim(),null!=e.amount&&Object.hasOwnProperty.call(e,"amount")&&t.uint32(24).int64(e.amount),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.GrantedTokenAllowance;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.tokenId=$root.proto.TokenID.decode(e,e.uint32());break;case 2:o.spender=$root.proto.AccountID.decode(e,e.uint32());break;case 3:o.amount=e.int64();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.GrantedTokenAllowance"},e}(),e.Response=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.getByKey=null,e.prototype.getBySolidityID=null,e.prototype.contractCallLocal=null,e.prototype.contractGetBytecodeResponse=null,e.prototype.contractGetInfo=null,e.prototype.contractGetRecordsResponse=null,e.prototype.cryptogetAccountBalance=null,e.prototype.cryptoGetAccountRecords=null,e.prototype.cryptoGetInfo=null,e.prototype.cryptoGetLiveHash=null,e.prototype.cryptoGetProxyStakers=null,e.prototype.fileGetContents=null,e.prototype.fileGetInfo=null,e.prototype.transactionGetReceipt=null,e.prototype.transactionGetRecord=null,e.prototype.transactionGetFastRecord=null,e.prototype.consensusGetTopicInfo=null,e.prototype.networkGetVersionInfo=null,e.prototype.tokenGetInfo=null,e.prototype.scheduleGetInfo=null,e.prototype.tokenGetAccountNftInfos=null,e.prototype.tokenGetNftInfo=null,e.prototype.tokenGetNftInfos=null,e.prototype.networkGetExecutionTime=null,e.prototype.accountDetails=null,Object.defineProperty(e.prototype,"response",{get:$util.oneOfGetter(t=["getByKey","getBySolidityID","contractCallLocal","contractGetBytecodeResponse","contractGetInfo","contractGetRecordsResponse","cryptogetAccountBalance","cryptoGetAccountRecords","cryptoGetInfo","cryptoGetLiveHash","cryptoGetProxyStakers","fileGetContents","fileGetInfo","transactionGetReceipt","transactionGetRecord","transactionGetFastRecord","consensusGetTopicInfo","networkGetVersionInfo","tokenGetInfo","scheduleGetInfo","tokenGetAccountNftInfos","tokenGetNftInfo","tokenGetNftInfos","networkGetExecutionTime","accountDetails"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.getByKey&&Object.hasOwnProperty.call(e,"getByKey")&&$root.proto.GetByKeyResponse.encode(e.getByKey,t.uint32(10).fork()).ldelim(),null!=e.getBySolidityID&&Object.hasOwnProperty.call(e,"getBySolidityID")&&$root.proto.GetBySolidityIDResponse.encode(e.getBySolidityID,t.uint32(18).fork()).ldelim(),null!=e.contractCallLocal&&Object.hasOwnProperty.call(e,"contractCallLocal")&&$root.proto.ContractCallLocalResponse.encode(e.contractCallLocal,t.uint32(26).fork()).ldelim(),null!=e.contractGetInfo&&Object.hasOwnProperty.call(e,"contractGetInfo")&&$root.proto.ContractGetInfoResponse.encode(e.contractGetInfo,t.uint32(34).fork()).ldelim(),null!=e.contractGetBytecodeResponse&&Object.hasOwnProperty.call(e,"contractGetBytecodeResponse")&&$root.proto.ContractGetBytecodeResponse.encode(e.contractGetBytecodeResponse,t.uint32(42).fork()).ldelim(),null!=e.contractGetRecordsResponse&&Object.hasOwnProperty.call(e,"contractGetRecordsResponse")&&$root.proto.ContractGetRecordsResponse.encode(e.contractGetRecordsResponse,t.uint32(50).fork()).ldelim(),null!=e.cryptogetAccountBalance&&Object.hasOwnProperty.call(e,"cryptogetAccountBalance")&&$root.proto.CryptoGetAccountBalanceResponse.encode(e.cryptogetAccountBalance,t.uint32(58).fork()).ldelim(),null!=e.cryptoGetAccountRecords&&Object.hasOwnProperty.call(e,"cryptoGetAccountRecords")&&$root.proto.CryptoGetAccountRecordsResponse.encode(e.cryptoGetAccountRecords,t.uint32(66).fork()).ldelim(),null!=e.cryptoGetInfo&&Object.hasOwnProperty.call(e,"cryptoGetInfo")&&$root.proto.CryptoGetInfoResponse.encode(e.cryptoGetInfo,t.uint32(74).fork()).ldelim(),null!=e.cryptoGetLiveHash&&Object.hasOwnProperty.call(e,"cryptoGetLiveHash")&&$root.proto.CryptoGetLiveHashResponse.encode(e.cryptoGetLiveHash,t.uint32(82).fork()).ldelim(),null!=e.cryptoGetProxyStakers&&Object.hasOwnProperty.call(e,"cryptoGetProxyStakers")&&$root.proto.CryptoGetStakersResponse.encode(e.cryptoGetProxyStakers,t.uint32(90).fork()).ldelim(),null!=e.fileGetContents&&Object.hasOwnProperty.call(e,"fileGetContents")&&$root.proto.FileGetContentsResponse.encode(e.fileGetContents,t.uint32(98).fork()).ldelim(),null!=e.fileGetInfo&&Object.hasOwnProperty.call(e,"fileGetInfo")&&$root.proto.FileGetInfoResponse.encode(e.fileGetInfo,t.uint32(106).fork()).ldelim(),null!=e.transactionGetReceipt&&Object.hasOwnProperty.call(e,"transactionGetReceipt")&&$root.proto.TransactionGetReceiptResponse.encode(e.transactionGetReceipt,t.uint32(114).fork()).ldelim(),null!=e.transactionGetRecord&&Object.hasOwnProperty.call(e,"transactionGetRecord")&&$root.proto.TransactionGetRecordResponse.encode(e.transactionGetRecord,t.uint32(122).fork()).ldelim(),null!=e.transactionGetFastRecord&&Object.hasOwnProperty.call(e,"transactionGetFastRecord")&&$root.proto.TransactionGetFastRecordResponse.encode(e.transactionGetFastRecord,t.uint32(130).fork()).ldelim(),null!=e.consensusGetTopicInfo&&Object.hasOwnProperty.call(e,"consensusGetTopicInfo")&&$root.proto.ConsensusGetTopicInfoResponse.encode(e.consensusGetTopicInfo,t.uint32(1202).fork()).ldelim(),null!=e.networkGetVersionInfo&&Object.hasOwnProperty.call(e,"networkGetVersionInfo")&&$root.proto.NetworkGetVersionInfoResponse.encode(e.networkGetVersionInfo,t.uint32(1210).fork()).ldelim(),null!=e.tokenGetInfo&&Object.hasOwnProperty.call(e,"tokenGetInfo")&&$root.proto.TokenGetInfoResponse.encode(e.tokenGetInfo,t.uint32(1218).fork()).ldelim(),null!=e.scheduleGetInfo&&Object.hasOwnProperty.call(e,"scheduleGetInfo")&&$root.proto.ScheduleGetInfoResponse.encode(e.scheduleGetInfo,t.uint32(1226).fork()).ldelim(),null!=e.tokenGetAccountNftInfos&&Object.hasOwnProperty.call(e,"tokenGetAccountNftInfos")&&$root.proto.TokenGetAccountNftInfosResponse.encode(e.tokenGetAccountNftInfos,t.uint32(1234).fork()).ldelim(),null!=e.tokenGetNftInfo&&Object.hasOwnProperty.call(e,"tokenGetNftInfo")&&$root.proto.TokenGetNftInfoResponse.encode(e.tokenGetNftInfo,t.uint32(1242).fork()).ldelim(),null!=e.tokenGetNftInfos&&Object.hasOwnProperty.call(e,"tokenGetNftInfos")&&$root.proto.TokenGetNftInfosResponse.encode(e.tokenGetNftInfos,t.uint32(1250).fork()).ldelim(),null!=e.networkGetExecutionTime&&Object.hasOwnProperty.call(e,"networkGetExecutionTime")&&$root.proto.NetworkGetExecutionTimeResponse.encode(e.networkGetExecutionTime,t.uint32(1258).fork()).ldelim(),null!=e.accountDetails&&Object.hasOwnProperty.call(e,"accountDetails")&&$root.proto.GetAccountDetailsResponse.encode(e.accountDetails,t.uint32(1266).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.Response;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.getByKey=$root.proto.GetByKeyResponse.decode(e,e.uint32());break;case 2:o.getBySolidityID=$root.proto.GetBySolidityIDResponse.decode(e,e.uint32());break;case 3:o.contractCallLocal=$root.proto.ContractCallLocalResponse.decode(e,e.uint32());break;case 5:o.contractGetBytecodeResponse=$root.proto.ContractGetBytecodeResponse.decode(e,e.uint32());break;case 4:o.contractGetInfo=$root.proto.ContractGetInfoResponse.decode(e,e.uint32());break;case 6:o.contractGetRecordsResponse=$root.proto.ContractGetRecordsResponse.decode(e,e.uint32());break;case 7:o.cryptogetAccountBalance=$root.proto.CryptoGetAccountBalanceResponse.decode(e,e.uint32());break;case 8:o.cryptoGetAccountRecords=$root.proto.CryptoGetAccountRecordsResponse.decode(e,e.uint32());break;case 9:o.cryptoGetInfo=$root.proto.CryptoGetInfoResponse.decode(e,e.uint32());break;case 10:o.cryptoGetLiveHash=$root.proto.CryptoGetLiveHashResponse.decode(e,e.uint32());break;case 11:o.cryptoGetProxyStakers=$root.proto.CryptoGetStakersResponse.decode(e,e.uint32());break;case 12:o.fileGetContents=$root.proto.FileGetContentsResponse.decode(e,e.uint32());break;case 13:o.fileGetInfo=$root.proto.FileGetInfoResponse.decode(e,e.uint32());break;case 14:o.transactionGetReceipt=$root.proto.TransactionGetReceiptResponse.decode(e,e.uint32());break;case 15:o.transactionGetRecord=$root.proto.TransactionGetRecordResponse.decode(e,e.uint32());break;case 16:o.transactionGetFastRecord=$root.proto.TransactionGetFastRecordResponse.decode(e,e.uint32());break;case 150:o.consensusGetTopicInfo=$root.proto.ConsensusGetTopicInfoResponse.decode(e,e.uint32());break;case 151:o.networkGetVersionInfo=$root.proto.NetworkGetVersionInfoResponse.decode(e,e.uint32());break;case 152:o.tokenGetInfo=$root.proto.TokenGetInfoResponse.decode(e,e.uint32());break;case 153:o.scheduleGetInfo=$root.proto.ScheduleGetInfoResponse.decode(e,e.uint32());break;case 154:o.tokenGetAccountNftInfos=$root.proto.TokenGetAccountNftInfosResponse.decode(e,e.uint32());break;case 155:o.tokenGetNftInfo=$root.proto.TokenGetNftInfoResponse.decode(e,e.uint32());break;case 156:o.tokenGetNftInfos=$root.proto.TokenGetNftInfosResponse.decode(e,e.uint32());break;case 157:o.networkGetExecutionTime=$root.proto.NetworkGetExecutionTimeResponse.decode(e,e.uint32());break;case 158:o.accountDetails=$root.proto.GetAccountDetailsResponse.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.Response"},e}(),e.CryptoService=function(){function e(e,t,r){$protobuf$1.rpc.Service.call(this,e,t,r)}return(e.prototype=Object.create($protobuf$1.rpc.Service.prototype)).constructor=e,e.create=function(e,t,r){return new this(e,t,r)},Object.defineProperty(e.prototype.createAccount=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"createAccount"}),Object.defineProperty(e.prototype.updateAccount=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"updateAccount"}),Object.defineProperty(e.prototype.cryptoTransfer=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"cryptoTransfer"}),Object.defineProperty(e.prototype.cryptoDelete=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"cryptoDelete"}),Object.defineProperty(e.prototype.approveAllowances=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"approveAllowances"}),Object.defineProperty(e.prototype.deleteAllowances=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"deleteAllowances"}),Object.defineProperty(e.prototype.addLiveHash=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"addLiveHash"}),Object.defineProperty(e.prototype.deleteLiveHash=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"deleteLiveHash"}),Object.defineProperty(e.prototype.getLiveHash=function e(t,r){return this.rpcCall(e,$root.proto.Query,$root.proto.Response,t,r)},"name",{value:"getLiveHash"}),Object.defineProperty(e.prototype.getAccountRecords=function e(t,r){return this.rpcCall(e,$root.proto.Query,$root.proto.Response,t,r)},"name",{value:"getAccountRecords"}),Object.defineProperty(e.prototype.cryptoGetBalance=function e(t,r){return this.rpcCall(e,$root.proto.Query,$root.proto.Response,t,r)},"name",{value:"cryptoGetBalance"}),Object.defineProperty(e.prototype.getAccountInfo=function e(t,r){return this.rpcCall(e,$root.proto.Query,$root.proto.Response,t,r)},"name",{value:"getAccountInfo"}),Object.defineProperty(e.prototype.getTransactionReceipts=function e(t,r){return this.rpcCall(e,$root.proto.Query,$root.proto.Response,t,r)},"name",{value:"getTransactionReceipts"}),Object.defineProperty(e.prototype.getTxRecordByTxID=function e(t,r){return this.rpcCall(e,$root.proto.Query,$root.proto.Response,t,r)},"name",{value:"getTxRecordByTxID"}),e}(),e.FileService=function(){function e(e,t,r){$protobuf$1.rpc.Service.call(this,e,t,r)}return(e.prototype=Object.create($protobuf$1.rpc.Service.prototype)).constructor=e,e.create=function(e,t,r){return new this(e,t,r)},Object.defineProperty(e.prototype.createFile=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"createFile"}),Object.defineProperty(e.prototype.updateFile=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"updateFile"}),Object.defineProperty(e.prototype.deleteFile=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"deleteFile"}),Object.defineProperty(e.prototype.appendContent=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"appendContent"}),Object.defineProperty(e.prototype.getFileContent=function e(t,r){return this.rpcCall(e,$root.proto.Query,$root.proto.Response,t,r)},"name",{value:"getFileContent"}),Object.defineProperty(e.prototype.getFileInfo=function e(t,r){return this.rpcCall(e,$root.proto.Query,$root.proto.Response,t,r)},"name",{value:"getFileInfo"}),Object.defineProperty(e.prototype.systemDelete=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"systemDelete"}),Object.defineProperty(e.prototype.systemUndelete=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"systemUndelete"}),e}(),e.FreezeService=function(){function e(e,t,r){$protobuf$1.rpc.Service.call(this,e,t,r)}return(e.prototype=Object.create($protobuf$1.rpc.Service.prototype)).constructor=e,e.create=function(e,t,r){return new this(e,t,r)},Object.defineProperty(e.prototype.freeze=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"freeze"}),e}(),e.NetworkService=function(){function e(e,t,r){$protobuf$1.rpc.Service.call(this,e,t,r)}return(e.prototype=Object.create($protobuf$1.rpc.Service.prototype)).constructor=e,e.create=function(e,t,r){return new this(e,t,r)},Object.defineProperty(e.prototype.getVersionInfo=function e(t,r){return this.rpcCall(e,$root.proto.Query,$root.proto.Response,t,r)},"name",{value:"getVersionInfo"}),Object.defineProperty(e.prototype.getAccountDetails=function e(t,r){return this.rpcCall(e,$root.proto.Query,$root.proto.Response,t,r)},"name",{value:"getAccountDetails"}),Object.defineProperty(e.prototype.getExecutionTime=function e(t,r){return this.rpcCall(e,$root.proto.Query,$root.proto.Response,t,r)},"name",{value:"getExecutionTime"}),Object.defineProperty(e.prototype.uncheckedSubmit=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"uncheckedSubmit"}),e}(),e.ScheduleService=function(){function e(e,t,r){$protobuf$1.rpc.Service.call(this,e,t,r)}return(e.prototype=Object.create($protobuf$1.rpc.Service.prototype)).constructor=e,e.create=function(e,t,r){return new this(e,t,r)},Object.defineProperty(e.prototype.createSchedule=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"createSchedule"}),Object.defineProperty(e.prototype.signSchedule=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"signSchedule"}),Object.defineProperty(e.prototype.deleteSchedule=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"deleteSchedule"}),Object.defineProperty(e.prototype.getScheduleInfo=function e(t,r){return this.rpcCall(e,$root.proto.Query,$root.proto.Response,t,r)},"name",{value:"getScheduleInfo"}),e}(),e.SmartContractService=function(){function e(e,t,r){$protobuf$1.rpc.Service.call(this,e,t,r)}return(e.prototype=Object.create($protobuf$1.rpc.Service.prototype)).constructor=e,e.create=function(e,t,r){return new this(e,t,r)},Object.defineProperty(e.prototype.createContract=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"createContract"}),Object.defineProperty(e.prototype.updateContract=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"updateContract"}),Object.defineProperty(e.prototype.contractCallMethod=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"contractCallMethod"}),Object.defineProperty(e.prototype.contractCallLocalMethod=function e(t,r){return this.rpcCall(e,$root.proto.Query,$root.proto.Response,t,r)},"name",{value:"contractCallLocalMethod"}),Object.defineProperty(e.prototype.getContractInfo=function e(t,r){return this.rpcCall(e,$root.proto.Query,$root.proto.Response,t,r)},"name",{value:"getContractInfo"}),Object.defineProperty(e.prototype.contractGetBytecode=function e(t,r){return this.rpcCall(e,$root.proto.Query,$root.proto.Response,t,r)},"name",{value:"ContractGetBytecode"}),Object.defineProperty(e.prototype.getBySolidityID=function e(t,r){return this.rpcCall(e,$root.proto.Query,$root.proto.Response,t,r)},"name",{value:"getBySolidityID"}),Object.defineProperty(e.prototype.getTxRecordByContractID=function e(t,r){return this.rpcCall(e,$root.proto.Query,$root.proto.Response,t,r)},"name",{value:"getTxRecordByContractID"}),Object.defineProperty(e.prototype.deleteContract=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"deleteContract"}),Object.defineProperty(e.prototype.systemDelete=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"systemDelete"}),Object.defineProperty(e.prototype.systemUndelete=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"systemUndelete"}),Object.defineProperty(e.prototype.callEthereum=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"callEthereum"}),e}(),e.ThrottleGroup=function(){function e(e){if(this.operations=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.operations=$util.emptyArray,e.prototype.milliOpsPerSec=$util.Long?$util.Long.fromBits(0,0,!0):0,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.operations&&e.operations.length){t.uint32(10).fork();for(var r=0;r<e.operations.length;++r)t.int32(e.operations[r]);t.ldelim()}return null!=e.milliOpsPerSec&&Object.hasOwnProperty.call(e,"milliOpsPerSec")&&t.uint32(16).uint64(e.milliOpsPerSec),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ThrottleGroup;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:if(o.operations&&o.operations.length||(o.operations=[]),2==(7&n))for(var i=e.uint32()+e.pos;e.pos<i;)o.operations.push(e.int32());else o.operations.push(e.int32());break;case 2:o.milliOpsPerSec=e.uint64();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ThrottleGroup"},e}(),e.ThrottleBucket=function(){function e(e){if(this.throttleGroups=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.name="",e.prototype.burstPeriodMs=$util.Long?$util.Long.fromBits(0,0,!0):0,e.prototype.throttleGroups=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.burstPeriodMs&&Object.hasOwnProperty.call(e,"burstPeriodMs")&&t.uint32(16).uint64(e.burstPeriodMs),null!=e.throttleGroups&&e.throttleGroups.length)for(var r=0;r<e.throttleGroups.length;++r)$root.proto.ThrottleGroup.encode(e.throttleGroups[r],t.uint32(26).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ThrottleBucket;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.name=e.string();break;case 2:o.burstPeriodMs=e.uint64();break;case 3:o.throttleGroups&&o.throttleGroups.length||(o.throttleGroups=[]),o.throttleGroups.push($root.proto.ThrottleGroup.decode(e,e.uint32()));break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ThrottleBucket"},e}(),e.ThrottleDefinitions=function(){function e(e){if(this.throttleBuckets=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.throttleBuckets=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.throttleBuckets&&e.throttleBuckets.length)for(var r=0;r<e.throttleBuckets.length;++r)$root.proto.ThrottleBucket.encode(e.throttleBuckets[r],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ThrottleDefinitions;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.throttleBuckets&&o.throttleBuckets.length||(o.throttleBuckets=[]),o.throttleBuckets.push($root.proto.ThrottleBucket.decode(e,e.uint32()));else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ThrottleDefinitions"},e}(),e.TokenService=function(){function e(e,t,r){$protobuf$1.rpc.Service.call(this,e,t,r)}return(e.prototype=Object.create($protobuf$1.rpc.Service.prototype)).constructor=e,e.create=function(e,t,r){return new this(e,t,r)},Object.defineProperty(e.prototype.createToken=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"createToken"}),Object.defineProperty(e.prototype.updateToken=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"updateToken"}),Object.defineProperty(e.prototype.mintToken=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"mintToken"}),Object.defineProperty(e.prototype.burnToken=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"burnToken"}),Object.defineProperty(e.prototype.deleteToken=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"deleteToken"}),Object.defineProperty(e.prototype.wipeTokenAccount=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"wipeTokenAccount"}),Object.defineProperty(e.prototype.freezeTokenAccount=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"freezeTokenAccount"}),Object.defineProperty(e.prototype.unfreezeTokenAccount=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"unfreezeTokenAccount"}),Object.defineProperty(e.prototype.grantKycToTokenAccount=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"grantKycToTokenAccount"}),Object.defineProperty(e.prototype.revokeKycFromTokenAccount=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"revokeKycFromTokenAccount"}),Object.defineProperty(e.prototype.associateTokens=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"associateTokens"}),Object.defineProperty(e.prototype.dissociateTokens=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"dissociateTokens"}),Object.defineProperty(e.prototype.updateTokenFeeSchedule=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"updateTokenFeeSchedule"}),Object.defineProperty(e.prototype.getTokenInfo=function e(t,r){return this.rpcCall(e,$root.proto.Query,$root.proto.Response,t,r)},"name",{value:"getTokenInfo"}),Object.defineProperty(e.prototype.getTokenNftInfo=function e(t,r){return this.rpcCall(e,$root.proto.Query,$root.proto.Response,t,r)},"name",{value:"getTokenNftInfo"}),Object.defineProperty(e.prototype.pauseToken=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"pauseToken"}),Object.defineProperty(e.prototype.unpauseToken=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"unpauseToken"}),Object.defineProperty(e.prototype.updateNfts=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"updateNfts"}),Object.defineProperty(e.prototype.rejectToken=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"rejectToken"}),Object.defineProperty(e.prototype.airdropTokens=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"airdropTokens"}),Object.defineProperty(e.prototype.cancelAirdrop=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"cancelAirdrop"}),Object.defineProperty(e.prototype.claimAirdrop=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"claimAirdrop"}),e}(),e.SignedTransaction=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.bodyBytes=$util.newBuffer([]),e.prototype.sigMap=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.bodyBytes&&Object.hasOwnProperty.call(e,"bodyBytes")&&t.uint32(10).bytes(e.bodyBytes),null!=e.sigMap&&Object.hasOwnProperty.call(e,"sigMap")&&$root.proto.SignatureMap.encode(e.sigMap,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.SignedTransaction;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.bodyBytes=e.bytes();break;case 2:o.sigMap=$root.proto.SignatureMap.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.SignedTransaction"},e}(),e.UtilService=function(){function e(e,t,r){$protobuf$1.rpc.Service.call(this,e,t,r)}return(e.prototype=Object.create($protobuf$1.rpc.Service.prototype)).constructor=e,e.create=function(e,t,r){return new this(e,t,r)},Object.defineProperty(e.prototype.prng=function e(t,r){return this.rpcCall(e,$root.proto.Transaction,$root.proto.TransactionResponse,t,r)},"name",{value:"prng"}),e}(),e.TokenUnitBalance=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.tokenId=null,e.prototype.balance=$util.Long?$util.Long.fromBits(0,0,!0):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.tokenId&&Object.hasOwnProperty.call(e,"tokenId")&&$root.proto.TokenID.encode(e.tokenId,t.uint32(10).fork()).ldelim(),null!=e.balance&&Object.hasOwnProperty.call(e,"balance")&&t.uint32(16).uint64(e.balance),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TokenUnitBalance;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.tokenId=$root.proto.TokenID.decode(e,e.uint32());break;case 2:o.balance=e.uint64();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TokenUnitBalance"},e}(),e.SingleAccountBalances=function(){function e(e){if(this.tokenUnitBalances=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.accountID=null,e.prototype.hbarBalance=$util.Long?$util.Long.fromBits(0,0,!0):0,e.prototype.tokenUnitBalances=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.accountID&&Object.hasOwnProperty.call(e,"accountID")&&$root.proto.AccountID.encode(e.accountID,t.uint32(10).fork()).ldelim(),null!=e.hbarBalance&&Object.hasOwnProperty.call(e,"hbarBalance")&&t.uint32(16).uint64(e.hbarBalance),null!=e.tokenUnitBalances&&e.tokenUnitBalances.length)for(var r=0;r<e.tokenUnitBalances.length;++r)$root.proto.TokenUnitBalance.encode(e.tokenUnitBalances[r],t.uint32(26).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.SingleAccountBalances;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.accountID=$root.proto.AccountID.decode(e,e.uint32());break;case 2:o.hbarBalance=e.uint64();break;case 3:o.tokenUnitBalances&&o.tokenUnitBalances.length||(o.tokenUnitBalances=[]),o.tokenUnitBalances.push($root.proto.TokenUnitBalance.decode(e,e.uint32()));break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.SingleAccountBalances"},e}(),e.AllAccountBalances=function(){function e(e){if(this.allAccounts=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.consensusTimestamp=null,e.prototype.allAccounts=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.consensusTimestamp&&Object.hasOwnProperty.call(e,"consensusTimestamp")&&$root.proto.Timestamp.encode(e.consensusTimestamp,t.uint32(10).fork()).ldelim(),null!=e.allAccounts&&e.allAccounts.length)for(var r=0;r<e.allAccounts.length;++r)$root.proto.SingleAccountBalances.encode(e.allAccounts[r],t.uint32(18).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.AllAccountBalances;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.consensusTimestamp=$root.proto.Timestamp.decode(e,e.uint32());break;case 2:o.allAccounts&&o.allAccounts.length||(o.allAccounts=[]),o.allAccounts.push($root.proto.SingleAccountBalances.decode(e,e.uint32()));break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.AllAccountBalances"},e}(),e.ContractActions=function(){function e(e){if(this.contractActions=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.contractActions=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.contractActions&&e.contractActions.length)for(var r=0;r<e.contractActions.length;++r)$root.proto.ContractAction.encode(e.contractActions[r],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ContractActions;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.contractActions&&o.contractActions.length||(o.contractActions=[]),o.contractActions.push($root.proto.ContractAction.decode(e,e.uint32()));else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ContractActions"},e}(),e.ContractActionType=function(){const e={},t=Object.create(e);return t[e[0]="NO_ACTION"]=0,t[e[1]="CALL"]=1,t[e[2]="CREATE"]=2,t[e[3]="PRECOMPILE"]=3,t[e[4]="SYSTEM"]=4,t}(),e.CallOperationType=function(){const e={},t=Object.create(e);return t[e[0]="OP_UNKNOWN"]=0,t[e[1]="OP_CALL"]=1,t[e[2]="OP_CALLCODE"]=2,t[e[3]="OP_DELEGATECALL"]=3,t[e[4]="OP_STATICCALL"]=4,t[e[5]="OP_CREATE"]=5,t[e[6]="OP_CREATE2"]=6,t}(),e.ContractAction=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.callType=0,e.prototype.callingAccount=null,e.prototype.callingContract=null,e.prototype.gas=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.input=$util.newBuffer([]),e.prototype.recipientAccount=null,e.prototype.recipientContract=null,e.prototype.targetedAddress=null,e.prototype.value=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.gasUsed=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.output=null,e.prototype.revertReason=null,e.prototype.error=null,e.prototype.callDepth=0,e.prototype.callOperationType=0,Object.defineProperty(e.prototype,"caller",{get:$util.oneOfGetter(t=["callingAccount","callingContract"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"recipient",{get:$util.oneOfGetter(t=["recipientAccount","recipientContract","targetedAddress"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"resultData",{get:$util.oneOfGetter(t=["output","revertReason","error"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.callType&&Object.hasOwnProperty.call(e,"callType")&&t.uint32(8).int32(e.callType),null!=e.callingAccount&&Object.hasOwnProperty.call(e,"callingAccount")&&$root.proto.AccountID.encode(e.callingAccount,t.uint32(18).fork()).ldelim(),null!=e.callingContract&&Object.hasOwnProperty.call(e,"callingContract")&&$root.proto.ContractID.encode(e.callingContract,t.uint32(26).fork()).ldelim(),null!=e.gas&&Object.hasOwnProperty.call(e,"gas")&&t.uint32(32).int64(e.gas),null!=e.input&&Object.hasOwnProperty.call(e,"input")&&t.uint32(42).bytes(e.input),null!=e.recipientAccount&&Object.hasOwnProperty.call(e,"recipientAccount")&&$root.proto.AccountID.encode(e.recipientAccount,t.uint32(50).fork()).ldelim(),null!=e.recipientContract&&Object.hasOwnProperty.call(e,"recipientContract")&&$root.proto.ContractID.encode(e.recipientContract,t.uint32(58).fork()).ldelim(),null!=e.targetedAddress&&Object.hasOwnProperty.call(e,"targetedAddress")&&t.uint32(66).bytes(e.targetedAddress),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(72).int64(e.value),null!=e.gasUsed&&Object.hasOwnProperty.call(e,"gasUsed")&&t.uint32(80).int64(e.gasUsed),null!=e.output&&Object.hasOwnProperty.call(e,"output")&&t.uint32(90).bytes(e.output),null!=e.revertReason&&Object.hasOwnProperty.call(e,"revertReason")&&t.uint32(98).bytes(e.revertReason),null!=e.error&&Object.hasOwnProperty.call(e,"error")&&t.uint32(106).bytes(e.error),null!=e.callDepth&&Object.hasOwnProperty.call(e,"callDepth")&&t.uint32(112).int32(e.callDepth),null!=e.callOperationType&&Object.hasOwnProperty.call(e,"callOperationType")&&t.uint32(120).int32(e.callOperationType),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ContractAction;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.callType=e.int32();break;case 2:o.callingAccount=$root.proto.AccountID.decode(e,e.uint32());break;case 3:o.callingContract=$root.proto.ContractID.decode(e,e.uint32());break;case 4:o.gas=e.int64();break;case 5:o.input=e.bytes();break;case 6:o.recipientAccount=$root.proto.AccountID.decode(e,e.uint32());break;case 7:o.recipientContract=$root.proto.ContractID.decode(e,e.uint32());break;case 8:o.targetedAddress=e.bytes();break;case 9:o.value=e.int64();break;case 10:o.gasUsed=e.int64();break;case 11:o.output=e.bytes();break;case 12:o.revertReason=e.bytes();break;case 13:o.error=e.bytes();break;case 14:o.callDepth=e.int32();break;case 15:o.callOperationType=e.int32();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ContractAction"},e}(),e.ContractBytecode=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.contractId=null,e.prototype.initcode=$util.newBuffer([]),e.prototype.runtimeBytecode=$util.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.contractId&&Object.hasOwnProperty.call(e,"contractId")&&$root.proto.ContractID.encode(e.contractId,t.uint32(10).fork()).ldelim(),null!=e.initcode&&Object.hasOwnProperty.call(e,"initcode")&&t.uint32(18).bytes(e.initcode),null!=e.runtimeBytecode&&Object.hasOwnProperty.call(e,"runtimeBytecode")&&t.uint32(26).bytes(e.runtimeBytecode),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ContractBytecode;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.contractId=$root.proto.ContractID.decode(e,e.uint32());break;case 2:o.initcode=e.bytes();break;case 3:o.runtimeBytecode=e.bytes();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ContractBytecode"},e}(),e.ContractStateChanges=function(){function e(e){if(this.contractStateChanges=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.contractStateChanges=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.contractStateChanges&&e.contractStateChanges.length)for(var r=0;r<e.contractStateChanges.length;++r)$root.proto.ContractStateChange.encode(e.contractStateChanges[r],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ContractStateChanges;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.contractStateChanges&&o.contractStateChanges.length||(o.contractStateChanges=[]),o.contractStateChanges.push($root.proto.ContractStateChange.decode(e,e.uint32()));else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ContractStateChanges"},e}(),e.ContractStateChange=function(){function e(e){if(this.storageChanges=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.contractId=null,e.prototype.storageChanges=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.contractId&&Object.hasOwnProperty.call(e,"contractId")&&$root.proto.ContractID.encode(e.contractId,t.uint32(10).fork()).ldelim(),null!=e.storageChanges&&e.storageChanges.length)for(var r=0;r<e.storageChanges.length;++r)$root.proto.StorageChange.encode(e.storageChanges[r],t.uint32(18).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.ContractStateChange;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.contractId=$root.proto.ContractID.decode(e,e.uint32());break;case 2:o.storageChanges&&o.storageChanges.length||(o.storageChanges=[]),o.storageChanges.push($root.proto.StorageChange.decode(e,e.uint32()));break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.ContractStateChange"},e}(),e.StorageChange=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.slot=$util.newBuffer([]),e.prototype.valueRead=$util.newBuffer([]),e.prototype.valueWritten=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.slot&&Object.hasOwnProperty.call(e,"slot")&&t.uint32(10).bytes(e.slot),null!=e.valueRead&&Object.hasOwnProperty.call(e,"valueRead")&&t.uint32(18).bytes(e.valueRead),null!=e.valueWritten&&Object.hasOwnProperty.call(e,"valueWritten")&&$root.google.protobuf.BytesValue.encode(e.valueWritten,t.uint32(26).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.StorageChange;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.slot=e.bytes();break;case 2:o.valueRead=e.bytes();break;case 3:o.valueWritten=$root.google.protobuf.BytesValue.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.StorageChange"},e}(),e.HashAlgorithm=function(){const e={},t=Object.create(e);return t[e[0]="HASH_ALGORITHM_UNKNOWN"]=0,t[e[1]="SHA_384"]=1,t}(),e.HashObject=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.algorithm=0,e.prototype.length=0,e.prototype.hash=$util.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.algorithm&&Object.hasOwnProperty.call(e,"algorithm")&&t.uint32(8).int32(e.algorithm),null!=e.length&&Object.hasOwnProperty.call(e,"length")&&t.uint32(16).int32(e.length),null!=e.hash&&Object.hasOwnProperty.call(e,"hash")&&t.uint32(26).bytes(e.hash),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.HashObject;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.algorithm=e.int32();break;case 2:o.length=e.int32();break;case 3:o.hash=e.bytes();break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.HashObject"},e}(),e.RecordStreamFile=function(){function e(e){if(this.recordStreamItems=[],this.sidecars=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.hapiProtoVersion=null,e.prototype.startObjectRunningHash=null,e.prototype.recordStreamItems=$util.emptyArray,e.prototype.endObjectRunningHash=null,e.prototype.blockNumber=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.sidecars=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.hapiProtoVersion&&Object.hasOwnProperty.call(e,"hapiProtoVersion")&&$root.proto.SemanticVersion.encode(e.hapiProtoVersion,t.uint32(10).fork()).ldelim(),null!=e.startObjectRunningHash&&Object.hasOwnProperty.call(e,"startObjectRunningHash")&&$root.proto.HashObject.encode(e.startObjectRunningHash,t.uint32(18).fork()).ldelim(),null!=e.recordStreamItems&&e.recordStreamItems.length)for(var r=0;r<e.recordStreamItems.length;++r)$root.proto.RecordStreamItem.encode(e.recordStreamItems[r],t.uint32(26).fork()).ldelim();if(null!=e.endObjectRunningHash&&Object.hasOwnProperty.call(e,"endObjectRunningHash")&&$root.proto.HashObject.encode(e.endObjectRunningHash,t.uint32(34).fork()).ldelim(),null!=e.blockNumber&&Object.hasOwnProperty.call(e,"blockNumber")&&t.uint32(40).int64(e.blockNumber),null!=e.sidecars&&e.sidecars.length)for(r=0;r<e.sidecars.length;++r)$root.proto.SidecarMetadata.encode(e.sidecars[r],t.uint32(50).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.RecordStreamFile;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.hapiProtoVersion=$root.proto.SemanticVersion.decode(e,e.uint32());break;case 2:o.startObjectRunningHash=$root.proto.HashObject.decode(e,e.uint32());break;case 3:o.recordStreamItems&&o.recordStreamItems.length||(o.recordStreamItems=[]),o.recordStreamItems.push($root.proto.RecordStreamItem.decode(e,e.uint32()));break;case 4:o.endObjectRunningHash=$root.proto.HashObject.decode(e,e.uint32());break;case 5:o.blockNumber=e.int64();break;case 6:o.sidecars&&o.sidecars.length||(o.sidecars=[]),o.sidecars.push($root.proto.SidecarMetadata.decode(e,e.uint32()));break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.RecordStreamFile"},e}(),e.RecordStreamItem=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.transaction=null,e.prototype.record=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.transaction&&Object.hasOwnProperty.call(e,"transaction")&&$root.proto.Transaction.encode(e.transaction,t.uint32(10).fork()).ldelim(),null!=e.record&&Object.hasOwnProperty.call(e,"record")&&$root.proto.TransactionRecord.encode(e.record,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.RecordStreamItem;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.transaction=$root.proto.Transaction.decode(e,e.uint32());break;case 2:o.record=$root.proto.TransactionRecord.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.RecordStreamItem"},e}(),e.SidecarMetadata=function(){function e(e){if(this.types=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.hash=null,e.prototype.id=0,e.prototype.types=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.hash&&Object.hasOwnProperty.call(e,"hash")&&$root.proto.HashObject.encode(e.hash,t.uint32(10).fork()).ldelim(),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(16).int32(e.id),null!=e.types&&e.types.length){t.uint32(26).fork();for(var r=0;r<e.types.length;++r)t.int32(e.types[r]);t.ldelim()}return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.SidecarMetadata;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.hash=$root.proto.HashObject.decode(e,e.uint32());break;case 2:o.id=e.int32();break;case 3:if(o.types&&o.types.length||(o.types=[]),2==(7&n))for(var i=e.uint32()+e.pos;e.pos<i;)o.types.push(e.int32());else o.types.push(e.int32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.SidecarMetadata"},e}(),e.SidecarType=function(){const e={},t=Object.create(e);return t[e[0]="SIDECAR_TYPE_UNKNOWN"]=0,t[e[1]="CONTRACT_STATE_CHANGE"]=1,t[e[2]="CONTRACT_ACTION"]=2,t[e[3]="CONTRACT_BYTECODE"]=3,t}(),e.SidecarFile=function(){function e(e){if(this.sidecarRecords=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.sidecarRecords=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.sidecarRecords&&e.sidecarRecords.length)for(var r=0;r<e.sidecarRecords.length;++r)$root.proto.TransactionSidecarRecord.encode(e.sidecarRecords[r],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.SidecarFile;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.sidecarRecords&&o.sidecarRecords.length||(o.sidecarRecords=[]),o.sidecarRecords.push($root.proto.TransactionSidecarRecord.decode(e,e.uint32()));else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.SidecarFile"},e}(),e.TransactionSidecarRecord=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.consensusTimestamp=null,e.prototype.migration=!1,e.prototype.stateChanges=null,e.prototype.actions=null,e.prototype.bytecode=null,Object.defineProperty(e.prototype,"sidecarRecords",{get:$util.oneOfGetter(t=["stateChanges","actions","bytecode"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.consensusTimestamp&&Object.hasOwnProperty.call(e,"consensusTimestamp")&&$root.proto.Timestamp.encode(e.consensusTimestamp,t.uint32(10).fork()).ldelim(),null!=e.migration&&Object.hasOwnProperty.call(e,"migration")&&t.uint32(16).bool(e.migration),null!=e.stateChanges&&Object.hasOwnProperty.call(e,"stateChanges")&&$root.proto.ContractStateChanges.encode(e.stateChanges,t.uint32(26).fork()).ldelim(),null!=e.actions&&Object.hasOwnProperty.call(e,"actions")&&$root.proto.ContractActions.encode(e.actions,t.uint32(34).fork()).ldelim(),null!=e.bytecode&&Object.hasOwnProperty.call(e,"bytecode")&&$root.proto.ContractBytecode.encode(e.bytecode,t.uint32(42).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.TransactionSidecarRecord;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.consensusTimestamp=$root.proto.Timestamp.decode(e,e.uint32());break;case 2:o.migration=e.bool();break;case 3:o.stateChanges=$root.proto.ContractStateChanges.decode(e,e.uint32());break;case 4:o.actions=$root.proto.ContractActions.decode(e,e.uint32());break;case 5:o.bytecode=$root.proto.ContractBytecode.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.TransactionSidecarRecord"},e}(),e.SignatureFile=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.fileSignature=null,e.prototype.metadataSignature=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.fileSignature&&Object.hasOwnProperty.call(e,"fileSignature")&&$root.proto.SignatureObject.encode(e.fileSignature,t.uint32(10).fork()).ldelim(),null!=e.metadataSignature&&Object.hasOwnProperty.call(e,"metadataSignature")&&$root.proto.SignatureObject.encode(e.metadataSignature,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.SignatureFile;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.fileSignature=$root.proto.SignatureObject.decode(e,e.uint32());break;case 2:o.metadataSignature=$root.proto.SignatureObject.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.SignatureFile"},e}(),e.SignatureObject=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.type=0,e.prototype.length=0,e.prototype.checksum=0,e.prototype.signature=$util.newBuffer([]),e.prototype.hashObject=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(8).int32(e.type),null!=e.length&&Object.hasOwnProperty.call(e,"length")&&t.uint32(16).int32(e.length),null!=e.checksum&&Object.hasOwnProperty.call(e,"checksum")&&t.uint32(24).int32(e.checksum),null!=e.signature&&Object.hasOwnProperty.call(e,"signature")&&t.uint32(34).bytes(e.signature),null!=e.hashObject&&Object.hasOwnProperty.call(e,"hashObject")&&$root.proto.HashObject.encode(e.hashObject,t.uint32(42).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.proto.SignatureObject;e.pos<r;){var n=e.uint32();switch(n>>>3){case 1:o.type=e.int32();break;case 2:o.length=e.int32();break;case 3:o.checksum=e.int32();break;case 4:o.signature=e.bytes();break;case 5:o.hashObject=$root.proto.HashObject.decode(e,e.uint32());break;default:e.skipType(7&n)}}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/proto.SignatureObject"},e}(),e.SignatureType=function(){const e={},t=Object.create(e);return t[e[0]="SIGNATURE_TYPE_UNKNOWN"]=0,t[e[1]="SHA_384_WITH_RSA"]=1,t}(),e})(),proto.google=$root.google=(()=>{const e={};return e.protobuf=function(){const e={};return e.DoubleValue=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.value=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(9).double(e.value),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.google.protobuf.DoubleValue;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.value=e.double();else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/google.protobuf.DoubleValue"},e}(),e.FloatValue=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.value=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(13).float(e.value),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.google.protobuf.FloatValue;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.value=e.float();else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/google.protobuf.FloatValue"},e}(),e.Int64Value=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.value=$util.Long?$util.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(8).int64(e.value),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.google.protobuf.Int64Value;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.value=e.int64();else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/google.protobuf.Int64Value"},e}(),e.UInt64Value=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.value=$util.Long?$util.Long.fromBits(0,0,!0):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(8).uint64(e.value),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.google.protobuf.UInt64Value;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.value=e.uint64();else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/google.protobuf.UInt64Value"},e}(),e.Int32Value=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.value=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(8).int32(e.value),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.google.protobuf.Int32Value;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.value=e.int32();else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/google.protobuf.Int32Value"},e}(),e.UInt32Value=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.value=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(8).uint32(e.value),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.google.protobuf.UInt32Value;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.value=e.uint32();else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/google.protobuf.UInt32Value"},e}(),e.BoolValue=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.value=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(8).bool(e.value),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.google.protobuf.BoolValue;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.value=e.bool();else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/google.protobuf.BoolValue"},e}(),e.StringValue=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.value="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(10).string(e.value),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.google.protobuf.StringValue;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.value=e.string();else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/google.protobuf.StringValue"},e}(),e.BytesValue=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.value=$util.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(10).bytes(e.value),t},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));for(var r=void 0===t?e.len:e.pos+t,o=new $root.google.protobuf.BytesValue;e.pos<r;){var n=e.uint32();if(n>>>3==1)o.value=e.bytes();else e.skipType(7&n)}return o},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/google.protobuf.BytesValue"},e}(),e}(),e})(),Object.defineProperty(lib,"__esModule",{value:!0});var proto_1=lib.proto=lib.google=lib.com=lib.Writer=lib.Reader=void 0,$protobuf=_interopRequireWildcard(minimal),_long=_interopRequireDefault(require$$1$2),$proto=_interopRequireWildcard(proto);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(_getRequireWildcardCache=function(e){return e?r:t})(e)}function _interopRequireWildcard(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=_getRequireWildcardCache(t);if(r&&r.has(e))return r.get(e);var o={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var a=n?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(o,i,a):o[i]=e[i]}return o.default=e,r&&r.set(e,o),o}(()=>{var e=$protobuf.util;null==e.Long&&(console.log("Patching Protobuf Long.js instance..."),e.Long=_long.default,null!=$protobuf.Reader._configure&&$protobuf.Reader._configure($protobuf.BufferReader))})(),lib.Reader=$protobuf.Reader,lib.Writer=$protobuf.Writer,proto_1=lib.proto=$proto.proto,lib.com=$proto.com,lib.google=$proto.google;class HederaMirrorNode{constructor(e,t){this.network=e,this.baseUrl=this.getMirrorNodeUrl(),this.logger=t}getMirrorNodeUrl(){return"mainnet"===this.network?"https://mainnet-public.mirrornode.hedera.com":"https://testnet.mirrornode.hedera.com"}getBaseUrl(){return this.baseUrl}async getPublicKey(e){this.logger&&this.logger.info(`Getting public key for account ${e}`);const t=await this.requestAccount(e);try{if(!t||!t.key)throw new Error(`Failed to retrieve public key for account ID: ${e}`);return i$7.fromString(t.key.key)}catch(r){throw new Error(`Error fetching public key from Mirror Node: ${r.message}`)}}async getAccountMemo(e){try{const t=await this.requestAccount(e);return t&&t.memo?t.memo:null}catch(t){return this.logger&&this.logger.error(`Error getting account memo: ${t.message}`),null}}async getTopicInfo(e){try{const t=`${this.baseUrl}/api/v1/topics/${e}`;return(await axios.get(t)).data}catch(t){throw this.logger&&this.logger.error(`Error retrieving topic information: ${t.message}`),new Error(`Failed to retrieve topic information: ${t.message}`)}}async getTopicFees(e){try{return(await this.getTopicInfo(e)).custom_fees}catch(t){return this.logger&&this.logger.error(`Error retrieving topic fees: ${t.message}`),null}}async getTopicMessages(e){var t;this.logger&&this.logger.info(`Querying messages for topic ${e}`);let r=`${this.baseUrl}/api/v1/topics/${e}/messages`;const o=[];for(;r;)try{const e=(await axios.get(r)).data;e.messages&&e.messages.length>0&&e.messages.forEach((e=>{const t=Buffer.from(e.message,"base64").toString("utf8");let r;try{r=JSON.parse(t)}catch(n){return void(this.logger&&this.logger.error(`Invalid JSON message content: ${t}`))}r.sequence_number=e.sequence_number,o.push(r)})),r=(null==(t=e.links)?void 0:t.next)?`${this.baseUrl}${e.links.next}`:""}catch(n){throw this.logger&&this.logger.error(`Error querying topic messages: ${n.message}`),new Error(`Failed to query topic messages: ${n.message}`)}return o}async requestAccount(e){try{const t=`${this.baseUrl}/api/v1/accounts/${e}`,r=await axios.get(t);if(!r.data)throw new Error(`Failed to make request to mirror node for account: ${e}`);return r.data}catch(t){throw this.logger&&this.logger.error(`Failed to fetch account: ${t.message}`),new Error(`Failed to fetch account: ${t.message}`)}}async checkKeyListAccess(e,t){try{const r=proto_1.Key.decode(e);return this.evaluateKeyAccess(r,t)}catch(r){return this.logger&&this.logger.error(`Error decoding protobuf key: ${r instanceof Error?r.message:String(r)}`),!1}}async evaluateKeyAccess(e,t){return e.ed25519?this.compareEd25519Key(e.ed25519,t):e.keyList?this.evaluateKeyList(e.keyList,t):!(!e.thresholdKey||!e.thresholdKey.keys)&&this.evaluateKeyList(e.thresholdKey.keys,t)}async evaluateKeyList(e,t){const r=e.keys||[];for(const n of r)if(n)if(n.ed25519){if(this.compareEd25519Key(n.ed25519,t))return!0}else if(n.keyList||n.thresholdKey)try{const e=proto_1.Key.encode({...n.keyList?{keyList:n.keyList}:{},...n.thresholdKey?{thresholdKey:n.thresholdKey}:{}}).finish();if(await this.checkKeyListAccess(Buffer.from(e),t))return!0}catch(o){this.logger&&this.logger.debug(`Error in nested key: ${o instanceof Error?o.message:String(o)}`)}return!1}compareEd25519Key(e,t){try{return i$7.fromBytes(Buffer.from(e)).toString()===t.toString()}catch(r){return!1}}}class Registration{async checkRegistrationStatus(e,t,r,o){try{const n=await fetch(`${r}/api/request-confirm`,{method:"POST",headers:{"Content-Type":"application/json","X-Network":t},body:JSON.stringify({transaction_id:e})});if(!n.ok){const e=`Failed to confirm registration: ${n.statusText}`;throw o&&o.error(e),new Error(e)}return await n.json()}catch(n){throw o&&o.error(`Error checking registration status: ${n.message}`),n}}async waitForRegistrationConfirmation(e,t,r,o=60,n=2e3,i){let a=0;for(;a<o;){i&&i.info(`Checking registration status. Attempt ${a+1}/${o}`);const s=await this.checkRegistrationStatus(e,t,r,i);if("success"===s.status)return i&&i.info("Registration confirmed successfully"),!0;if("failed"===s.status)throw i&&i.error("Registration confirmation failed"),new Error("Registration confirmation failed");i&&i.info(`Registration still pending. Waiting ${n}ms before next attempt`),await new Promise((e=>setTimeout(e,n))),a++}return i&&i.warn(`Registration not confirmed after ${o} attempts`),!1}async executeRegistration(e,t,r,o,n,i={tags:[]}){var a;try{n&&n.info("Registering agent with guarded registry");const s=await fetch(`${o}/api/request-register`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"*/*","Accept-Language":"en;q=0.5",Origin:o,Referer:`${o}/`,"X-Network":r},body:JSON.stringify({accountId:e,inboundTopicId:t,metadata:i})}),c=await s.json();return s.ok?(n&&n.info(`Created new registration request. Transaction ID: ${c.transaction_id}`),{transactionId:c.transaction_id,transaction:c.transaction,success:!0}):(null==(a=c.details)?void 0:a.length)>0?{validationErrors:c.details,error:c.error||"Validation failed",success:!1}:{error:c.error||"Failed to register agent",success:!1}}catch(s){return{error:`Error during registration request: ${s.message}`,success:!1}}}async findRegistrations(e={},t="https://hcs-10.hashgraphonline.com"){var r;try{const o=new URLSearchParams;null==(r=e.tags)||r.forEach((e=>o.append("tags",e))),e.accountId&&o.append("accountId",e.accountId),e.network&&o.append("network",e.network);const n=await fetch(`${t}/api/registrations?${o}`,{headers:{Accept:"*/*","Accept-Language":"en;q=0.5",Origin:t,Referer:`${t}/`}});if(!n.ok){return{registrations:[],error:await n.text()||"Failed to fetch registrations",success:!1}}const i=await n.json();return i.error?{registrations:[],error:i.error,success:!1}:{registrations:i.registrations||[],success:!0}}catch(o){return{registrations:[],error:`Error fetching registrations: ${o.message}`,success:!1}}}}class HCS10BaseClient extends Registration{constructor(e){super(),this.network=e.network,this.logger=Logger$2.getInstance({level:e.logLevel||"info",module:"HCS10-BaseClient"}),this.mirrorNode=new HederaMirrorNode(e.network,this.logger)}async getMessages(e){try{return{messages:await this.mirrorNode.getTopicMessages(e)}}catch(t){return this.logger&&this.logger.error(`Error fetching messages: ${t.message}`),{messages:[]}}}async checkRegistrationStatus(e,t,r){try{const o=await fetch(`${r}/api/request-confirm`,{method:"POST",headers:{"Content-Type":"application/json","X-Network":t},body:JSON.stringify({transaction_id:e})});if(!o.ok)throw new Error(`Failed to confirm registration: ${o.statusText}`);return await o.json()}catch(o){throw this.logger.error(`Error checking registration status: ${o}`),o}}async requestAccount(e){try{return await this.mirrorNode.requestAccount(e)}catch(t){throw this.logger.error("Failed to fetch account",t),t}}async getAccountMemo(e){return await this.mirrorNode.getAccountMemo(e)}async getTopicInfoFromMemo(e){const t=e.match(/^hcs-10:(\d+\.\d+\.\d+):(\d+\.\d+\.\d+)$/);if(!t)return null;const[,r,o]=t;return{inboundTopic:r,outboundTopic:o}}async getTopicInfo(e){const t=`${e}-${this.network}`,r=HCS10Cache.getInstance().get(t);if(r)return r;const o=await this.getAccountMemo(e);if(!o)return null;const n=await this.getTopicInfoFromMemo(o);return n&&HCS10Cache.getInstance().set(t,n),n}async retrieveProfile(e){this.logger.info(`Retrieving profile for account: ${e}`);try{const t=await this.getAccountMemo(e);if(!t)return{profile:null,success:!1,error:`Failed to retrieve memo for account ID: ${e}`};if(!t.startsWith("hcs-11:"))return{profile:null,success:!1,error:`Invalid memo format: ${t}. Memo must start with 'hcs-11:'`};const r=t.match(/^hcs-11:hcs:\/\/(\d+)\/(.+)$/);if(!r)return{profile:null,success:!1,error:`Invalid HCS-11 memo format: ${t}. Expected format: hcs-11:hcs://{standard}/{topicId}`};const[,o,n]=r;this.logger.info(`Found HCS-11 profile: ${n} using standard HCS-${o}`);const i=`https://kiloscribe.com/api/inscription-cdn/${n}?network=${this.network}`,a=await axios.get(i);if(!a.data)return{profile:null,success:!1,error:`Failed to fetch profile from topic: ${n}`};const s=a.data;let c=null;if(s.inboundTopicId&&s.outboundTopicId){c={inboundTopic:s.inboundTopicId,outboundTopic:s.outboundTopicId};const t=`${e}-${this.network}`;HCS10Cache.getInstance().set(t,c)}return{profile:s,topicInfo:c,profileTopicId:n,success:!0}}catch(t){return this.logger.error("Failed to retrieve profile:",t),{profile:null,success:!1,error:t instanceof Error?t.message:String(t)}}}async retrieveOutboundConnectTopic(e){this.logger.info(`Retrieving topics for account: ${e}`);const t=await this.getTopicInfo(e);if(t)return t;try{const t=await this.retrieveProfile(e);if(!t.success)throw new Error(t.error);const r=t.profile;if(!r.inboundTopicId||!r.outboundTopicId)throw new Error("Invalid HCS-11 profile for HCS-10 agent: missing inboundTopicId or outboundTopicId");const o={inboundTopic:r.inboundTopicId,outboundTopic:r.outboundTopicId},n=`${e}-${this.network}`;return HCS10Cache.getInstance().set(n,o),o}catch(r){throw this.logger.error("Failed to retrieve topic info:",r),r}}async retrieveOutboundMessages(e){try{const t=await this.retrieveOutboundConnectTopic(e);if(!t)return this.logger.warn(`No outbound connect topic found for agentAccountId: ${e}`),[];return(await this.getMessages(t.outboundTopic)).messages.filter((e=>"hcs-10"===e.p&&("connection_request"===e.op||"connection_created"===e.op||"message"===e.op)))}catch(t){return this.logger.error("Failed to retrieve outbound messages:",t),[]}}async hasConnectionCreated(e,t){try{const r=await this.retrieveOutboundConnectTopic(e);return(await this.retrieveOutboundMessages(r.outboundTopic)).some((e=>"connection_created"===e.op&&e.connection_id===t))}catch(r){return this.logger.error("Failed to check connection created:",r),!1}}clearCache(){HCS10Cache.getInstance().clear()}async getMessageContent(e){const t=e.match(/^hcs:\/\/(\d+)\/([0-9.]+)$/);if(!t)return e;const[r,o,n]=t;this.logger.info(`Resolving HRL reference: standard=${o}, topicId=${n}`);try{const e=`https://kiloscribe.com/api/inscription-cdn/${n}?network=${this.network}`,t=await axios.get(e);if(!t.data)throw new Error(`Failed to fetch content from topic: ${n}`);return t.data.content||t.data.text||JSON.stringify(t.data)}catch(i){throw this.logger.error(`Error resolving HRL reference: ${i instanceof Error?i.message:"Unknown error"}`),new Error(`Failed to resolve HRL reference: ${i instanceof Error?i.message:"Unknown error"}`)}}}class HCS10Cache{constructor(){this.CACHE_TTL=36e5,this.cache=new Map,this.cacheExpiry=new Map}static getInstance(){return HCS10Cache.instance||(HCS10Cache.instance=new HCS10Cache),HCS10Cache.instance}set(e,t){this.cache.set(e,t),this.cacheExpiry.set(e,Date.now()+this.CACHE_TTL)}get(e){const t=this.cacheExpiry.get(e);if(t&&t>Date.now())return this.cache.get(e);t&&(this.cache.delete(e),this.cacheExpiry.delete(e))}clear(){this.cache.clear(),this.cacheExpiry.clear()}}var mimeTypes={};const require$$0={"application/1d-interleaved-parityfec":{source:"iana"},"application/3gpdash-qoe-report+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/3gpp-ims+xml":{source:"iana",compressible:!0},"application/3gpphal+json":{source:"iana",compressible:!0},"application/3gpphalforms+json":{source:"iana",compressible:!0},"application/a2l":{source:"iana"},"application/ace+cbor":{source:"iana"},"application/activemessage":{source:"iana"},"application/activity+json":{source:"iana",compressible:!0},"application/alto-costmap+json":{source:"iana",compressible:!0},"application/alto-costmapfilter+json":{source:"iana",compressible:!0},"application/alto-directory+json":{source:"iana",compressible:!0},"application/alto-endpointcost+json":{source:"iana",compressible:!0},"application/alto-endpointcostparams+json":{source:"iana",compressible:!0},"application/alto-endpointprop+json":{source:"iana",compressible:!0},"application/alto-endpointpropparams+json":{source:"iana",compressible:!0},"application/alto-error+json":{source:"iana",compressible:!0},"application/alto-networkmap+json":{source:"iana",compressible:!0},"application/alto-networkmapfilter+json":{source:"iana",compressible:!0},"application/alto-updatestreamcontrol+json":{source:"iana",compressible:!0},"application/alto-updatestreamparams+json":{source:"iana",compressible:!0},"application/aml":{source:"iana"},"application/andrew-inset":{source:"iana",extensions:["ez"]},"application/applefile":{source:"iana"},"application/applixware":{source:"apache",extensions:["aw"]},"application/at+jwt":{source:"iana"},"application/atf":{source:"iana"},"application/atfx":{source:"iana"},"application/atom+xml":{source:"iana",compressible:!0,extensions:["atom"]},"application/atomcat+xml":{source:"iana",compressible:!0,extensions:["atomcat"]},"application/atomdeleted+xml":{source:"iana",compressible:!0,extensions:["atomdeleted"]},"application/atomicmail":{source:"iana"},"application/atomsvc+xml":{source:"iana",compressible:!0,extensions:["atomsvc"]},"application/atsc-dwd+xml":{source:"iana",compressible:!0,extensions:["dwd"]},"application/atsc-dynamic-event-message":{source:"iana"},"application/atsc-held+xml":{source:"iana",compressible:!0,extensions:["held"]},"application/atsc-rdt+json":{source:"iana",compressible:!0},"application/atsc-rsat+xml":{source:"iana",compressible:!0,extensions:["rsat"]},"application/atxml":{source:"iana"},"application/auth-policy+xml":{source:"iana",compressible:!0},"application/bacnet-xdd+zip":{source:"iana",compressible:!1},"application/batch-smtp":{source:"iana"},"application/bdoc":{compressible:!1,extensions:["bdoc"]},"application/beep+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/calendar+json":{source:"iana",compressible:!0},"application/calendar+xml":{source:"iana",compressible:!0,extensions:["xcs"]},"application/call-completion":{source:"iana"},"application/cals-1840":{source:"iana"},"application/captive+json":{source:"iana",compressible:!0},"application/cbor":{source:"iana"},"application/cbor-seq":{source:"iana"},"application/cccex":{source:"iana"},"application/ccmp+xml":{source:"iana",compressible:!0},"application/ccxml+xml":{source:"iana",compressible:!0,extensions:["ccxml"]},"application/cdfx+xml":{source:"iana",compressible:!0,extensions:["cdfx"]},"application/cdmi-capability":{source:"iana",extensions:["cdmia"]},"application/cdmi-container":{source:"iana",extensions:["cdmic"]},"application/cdmi-domain":{source:"iana",extensions:["cdmid"]},"application/cdmi-object":{source:"iana",extensions:["cdmio"]},"application/cdmi-queue":{source:"iana",extensions:["cdmiq"]},"application/cdni":{source:"iana"},"application/cea":{source:"iana"},"application/cea-2018+xml":{source:"iana",compressible:!0},"application/cellml+xml":{source:"iana",compressible:!0},"application/cfw":{source:"iana"},"application/city+json":{source:"iana",compressible:!0},"application/clr":{source:"iana"},"application/clue+xml":{source:"iana",compressible:!0},"application/clue_info+xml":{source:"iana",compressible:!0},"application/cms":{source:"iana"},"application/cnrp+xml":{source:"iana",compressible:!0},"application/coap-group+json":{source:"iana",compressible:!0},"application/coap-payload":{source:"iana"},"application/commonground":{source:"iana"},"application/conference-info+xml":{source:"iana",compressible:!0},"application/cose":{source:"iana"},"application/cose-key":{source:"iana"},"application/cose-key-set":{source:"iana"},"application/cpl+xml":{source:"iana",compressible:!0,extensions:["cpl"]},"application/csrattrs":{source:"iana"},"application/csta+xml":{source:"iana",compressible:!0},"application/cstadata+xml":{source:"iana",compressible:!0},"application/csvm+json":{source:"iana",compressible:!0},"application/cu-seeme":{source:"apache",extensions:["cu"]},"application/cwt":{source:"iana"},"application/cybercash":{source:"iana"},"application/dart":{compressible:!0},"application/dash+xml":{source:"iana",compressible:!0,extensions:["mpd"]},"application/dash-patch+xml":{source:"iana",compressible:!0,extensions:["mpp"]},"application/dashdelta":{source:"iana"},"application/davmount+xml":{source:"iana",compressible:!0,extensions:["davmount"]},"application/dca-rft":{source:"iana"},"application/dcd":{source:"iana"},"application/dec-dx":{source:"iana"},"application/dialog-info+xml":{source:"iana",compressible:!0},"application/dicom":{source:"iana"},"application/dicom+json":{source:"iana",compressible:!0},"application/dicom+xml":{source:"iana",compressible:!0},"application/dii":{source:"iana"},"application/dit":{source:"iana"},"application/dns":{source:"iana"},"application/dns+json":{source:"iana",compressible:!0},"application/dns-message":{source:"iana"},"application/docbook+xml":{source:"apache",compressible:!0,extensions:["dbk"]},"application/dots+cbor":{source:"iana"},"application/dskpp+xml":{source:"iana",compressible:!0},"application/dssc+der":{source:"iana",extensions:["dssc"]},"application/dssc+xml":{source:"iana",compressible:!0,extensions:["xdssc"]},"application/dvcs":{source:"iana"},"application/ecmascript":{source:"iana",compressible:!0,extensions:["es","ecma"]},"application/edi-consent":{source:"iana"},"application/edi-x12":{source:"iana",compressible:!1},"application/edifact":{source:"iana",compressible:!1},"application/efi":{source:"iana"},"application/elm+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/elm+xml":{source:"iana",compressible:!0},"application/emergencycalldata.cap+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/emergencycalldata.comment+xml":{source:"iana",compressible:!0},"application/emergencycalldata.control+xml":{source:"iana",compressible:!0},"application/emergencycalldata.deviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.ecall.msd":{source:"iana"},"application/emergencycalldata.providerinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.serviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.subscriberinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.veds+xml":{source:"iana",compressible:!0},"application/emma+xml":{source:"iana",compressible:!0,extensions:["emma"]},"application/emotionml+xml":{source:"iana",compressible:!0,extensions:["emotionml"]},"application/encaprtp":{source:"iana"},"application/epp+xml":{source:"iana",compressible:!0},"application/epub+zip":{source:"iana",compressible:!1,extensions:["epub"]},"application/eshop":{source:"iana"},"application/exi":{source:"iana",extensions:["exi"]},"application/expect-ct-report+json":{source:"iana",compressible:!0},"application/express":{source:"iana",extensions:["exp"]},"application/fastinfoset":{source:"iana"},"application/fastsoap":{source:"iana"},"application/fdt+xml":{source:"iana",compressible:!0,extensions:["fdt"]},"application/fhir+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/fhir+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/fido.trusted-apps+json":{compressible:!0},"application/fits":{source:"iana"},"application/flexfec":{source:"iana"},"application/font-sfnt":{source:"iana"},"application/font-tdpfr":{source:"iana",extensions:["pfr"]},"application/font-woff":{source:"iana",compressible:!1},"application/framework-attributes+xml":{source:"iana",compressible:!0},"application/geo+json":{source:"iana",compressible:!0,extensions:["geojson"]},"application/geo+json-seq":{source:"iana"},"application/geopackage+sqlite3":{source:"iana"},"application/geoxacml+xml":{source:"iana",compressible:!0},"application/gltf-buffer":{source:"iana"},"application/gml+xml":{source:"iana",compressible:!0,extensions:["gml"]},"application/gpx+xml":{source:"apache",compressible:!0,extensions:["gpx"]},"application/gxf":{source:"apache",extensions:["gxf"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/h224":{source:"iana"},"application/held+xml":{source:"iana",compressible:!0},"application/hjson":{extensions:["hjson"]},"application/http":{source:"iana"},"application/hyperstudio":{source:"iana",extensions:["stk"]},"application/ibe-key-request+xml":{source:"iana",compressible:!0},"application/ibe-pkg-reply+xml":{source:"iana",compressible:!0},"application/ibe-pp-data":{source:"iana"},"application/iges":{source:"iana"},"application/im-iscomposing+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/index":{source:"iana"},"application/index.cmd":{source:"iana"},"application/index.obj":{source:"iana"},"application/index.response":{source:"iana"},"application/index.vnd":{source:"iana"},"application/inkml+xml":{source:"iana",compressible:!0,extensions:["ink","inkml"]},"application/iotp":{source:"iana"},"application/ipfix":{source:"iana",extensions:["ipfix"]},"application/ipp":{source:"iana"},"application/isup":{source:"iana"},"application/its+xml":{source:"iana",compressible:!0,extensions:["its"]},"application/java-archive":{source:"apache",compressible:!1,extensions:["jar","war","ear"]},"application/java-serialized-object":{source:"apache",compressible:!1,extensions:["ser"]},"application/java-vm":{source:"apache",compressible:!1,extensions:["class"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"application/jf2feed+json":{source:"iana",compressible:!0},"application/jose":{source:"iana"},"application/jose+json":{source:"iana",compressible:!0},"application/jrd+json":{source:"iana",compressible:!0},"application/jscalendar+json":{source:"iana",compressible:!0},"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/json-patch+json":{source:"iana",compressible:!0},"application/json-seq":{source:"iana"},"application/json5":{extensions:["json5"]},"application/jsonml+json":{source:"apache",compressible:!0,extensions:["jsonml"]},"application/jwk+json":{source:"iana",compressible:!0},"application/jwk-set+json":{source:"iana",compressible:!0},"application/jwt":{source:"iana"},"application/kpml-request+xml":{source:"iana",compressible:!0},"application/kpml-response+xml":{source:"iana",compressible:!0},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/lgr+xml":{source:"iana",compressible:!0,extensions:["lgr"]},"application/link-format":{source:"iana"},"application/load-control+xml":{source:"iana",compressible:!0},"application/lost+xml":{source:"iana",compressible:!0,extensions:["lostxml"]},"application/lostsync+xml":{source:"iana",compressible:!0},"application/lpf+zip":{source:"iana",compressible:!1},"application/lxf":{source:"iana"},"application/mac-binhex40":{source:"iana",extensions:["hqx"]},"application/mac-compactpro":{source:"apache",extensions:["cpt"]},"application/macwriteii":{source:"iana"},"application/mads+xml":{source:"iana",compressible:!0,extensions:["mads"]},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/marc":{source:"iana",extensions:["mrc"]},"application/marcxml+xml":{source:"iana",compressible:!0,extensions:["mrcx"]},"application/mathematica":{source:"iana",extensions:["ma","nb","mb"]},"application/mathml+xml":{source:"iana",compressible:!0,extensions:["mathml"]},"application/mathml-content+xml":{source:"iana",compressible:!0},"application/mathml-presentation+xml":{source:"iana",compressible:!0},"application/mbms-associated-procedure-description+xml":{source:"iana",compressible:!0},"application/mbms-deregister+xml":{source:"iana",compressible:!0},"application/mbms-envelope+xml":{source:"iana",compressible:!0},"application/mbms-msk+xml":{source:"iana",compressible:!0},"application/mbms-msk-response+xml":{source:"iana",compressible:!0},"application/mbms-protection-description+xml":{source:"iana",compressible:!0},"application/mbms-reception-report+xml":{source:"iana",compressible:!0},"application/mbms-register+xml":{source:"iana",compressible:!0},"application/mbms-register-response+xml":{source:"iana",compressible:!0},"application/mbms-schedule+xml":{source:"iana",compressible:!0},"application/mbms-user-service-description+xml":{source:"iana",compressible:!0},"application/mbox":{source:"iana",extensions:["mbox"]},"application/media-policy-dataset+xml":{source:"iana",compressible:!0,extensions:["mpf"]},"application/media_control+xml":{source:"iana",compressible:!0},"application/mediaservercontrol+xml":{source:"iana",compressible:!0,extensions:["mscml"]},"application/merge-patch+json":{source:"iana",compressible:!0},"application/metalink+xml":{source:"apache",compressible:!0,extensions:["metalink"]},"application/metalink4+xml":{source:"iana",compressible:!0,extensions:["meta4"]},"application/mets+xml":{source:"iana",compressible:!0,extensions:["mets"]},"application/mf4":{source:"iana"},"application/mikey":{source:"iana"},"application/mipc":{source:"iana"},"application/missing-blocks+cbor-seq":{source:"iana"},"application/mmt-aei+xml":{source:"iana",compressible:!0,extensions:["maei"]},"application/mmt-usd+xml":{source:"iana",compressible:!0,extensions:["musd"]},"application/mods+xml":{source:"iana",compressible:!0,extensions:["mods"]},"application/moss-keys":{source:"iana"},"application/moss-signature":{source:"iana"},"application/mosskey-data":{source:"iana"},"application/mosskey-request":{source:"iana"},"application/mp21":{source:"iana",extensions:["m21","mp21"]},"application/mp4":{source:"iana",extensions:["mp4s","m4p"]},"application/mpeg4-generic":{source:"iana"},"application/mpeg4-iod":{source:"iana"},"application/mpeg4-iod-xmt":{source:"iana"},"application/mrb-consumer+xml":{source:"iana",compressible:!0},"application/mrb-publish+xml":{source:"iana",compressible:!0},"application/msc-ivr+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msc-mixer+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msword":{source:"iana",compressible:!1,extensions:["doc","dot"]},"application/mud+json":{source:"iana",compressible:!0},"application/multipart-core":{source:"iana"},"application/mxf":{source:"iana",extensions:["mxf"]},"application/n-quads":{source:"iana",extensions:["nq"]},"application/n-triples":{source:"iana",extensions:["nt"]},"application/nasdata":{source:"iana"},"application/news-checkgroups":{source:"iana",charset:"US-ASCII"},"application/news-groupinfo":{source:"iana",charset:"US-ASCII"},"application/news-transmission":{source:"iana"},"application/nlsml+xml":{source:"iana",compressible:!0},"application/node":{source:"iana",extensions:["cjs"]},"application/nss":{source:"iana"},"application/oauth-authz-req+jwt":{source:"iana"},"application/oblivious-dns-message":{source:"iana"},"application/ocsp-request":{source:"iana"},"application/ocsp-response":{source:"iana"},"application/octet-stream":{source:"iana",compressible:!1,extensions:["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{source:"iana",extensions:["oda"]},"application/odm+xml":{source:"iana",compressible:!0},"application/odx":{source:"iana"},"application/oebps-package+xml":{source:"iana",compressible:!0,extensions:["opf"]},"application/ogg":{source:"iana",compressible:!1,extensions:["ogx"]},"application/omdoc+xml":{source:"apache",compressible:!0,extensions:["omdoc"]},"application/onenote":{source:"apache",extensions:["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{source:"iana",compressible:!0},"application/oscore":{source:"iana"},"application/oxps":{source:"iana",extensions:["oxps"]},"application/p21":{source:"iana"},"application/p21+zip":{source:"iana",compressible:!1},"application/p2p-overlay+xml":{source:"iana",compressible:!0,extensions:["relo"]},"application/parityfec":{source:"iana"},"application/passport":{source:"iana"},"application/patch-ops-error+xml":{source:"iana",compressible:!0,extensions:["xer"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/pdx":{source:"iana"},"application/pem-certificate-chain":{source:"iana"},"application/pgp-encrypted":{source:"iana",compressible:!1,extensions:["pgp"]},"application/pgp-keys":{source:"iana",extensions:["asc"]},"application/pgp-signature":{source:"iana",extensions:["asc","sig"]},"application/pics-rules":{source:"apache",extensions:["prf"]},"application/pidf+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pidf-diff+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pkcs10":{source:"iana",extensions:["p10"]},"application/pkcs12":{source:"iana"},"application/pkcs7-mime":{source:"iana",extensions:["p7m","p7c"]},"application/pkcs7-signature":{source:"iana",extensions:["p7s"]},"application/pkcs8":{source:"iana",extensions:["p8"]},"application/pkcs8-encrypted":{source:"iana"},"application/pkix-attr-cert":{source:"iana",extensions:["ac"]},"application/pkix-cert":{source:"iana",extensions:["cer"]},"application/pkix-crl":{source:"iana",extensions:["crl"]},"application/pkix-pkipath":{source:"iana",extensions:["pkipath"]},"application/pkixcmp":{source:"iana",extensions:["pki"]},"application/pls+xml":{source:"iana",compressible:!0,extensions:["pls"]},"application/poc-settings+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/postscript":{source:"iana",compressible:!0,extensions:["ai","eps","ps"]},"application/ppsp-tracker+json":{source:"iana",compressible:!0},"application/problem+json":{source:"iana",compressible:!0},"application/problem+xml":{source:"iana",compressible:!0},"application/provenance+xml":{source:"iana",compressible:!0,extensions:["provx"]},"application/prs.alvestrand.titrax-sheet":{source:"iana"},"application/prs.cww":{source:"iana",extensions:["cww"]},"application/prs.cyn":{source:"iana",charset:"7-BIT"},"application/prs.hpub+zip":{source:"iana",compressible:!1},"application/prs.nprend":{source:"iana"},"application/prs.plucker":{source:"iana"},"application/prs.rdf-xml-crypt":{source:"iana"},"application/prs.xsf+xml":{source:"iana",compressible:!0},"application/pskc+xml":{source:"iana",compressible:!0,extensions:["pskcxml"]},"application/pvd+json":{source:"iana",compressible:!0},"application/qsig":{source:"iana"},"application/raml+yaml":{compressible:!0,extensions:["raml"]},"application/raptorfec":{source:"iana"},"application/rdap+json":{source:"iana",compressible:!0},"application/rdf+xml":{source:"iana",compressible:!0,extensions:["rdf","owl"]},"application/reginfo+xml":{source:"iana",compressible:!0,extensions:["rif"]},"application/relax-ng-compact-syntax":{source:"iana",extensions:["rnc"]},"application/remote-printing":{source:"iana"},"application/reputon+json":{source:"iana",compressible:!0},"application/resource-lists+xml":{source:"iana",compressible:!0,extensions:["rl"]},"application/resource-lists-diff+xml":{source:"iana",compressible:!0,extensions:["rld"]},"application/rfc+xml":{source:"iana",compressible:!0},"application/riscos":{source:"iana"},"application/rlmi+xml":{source:"iana",compressible:!0},"application/rls-services+xml":{source:"iana",compressible:!0,extensions:["rs"]},"application/route-apd+xml":{source:"iana",compressible:!0,extensions:["rapd"]},"application/route-s-tsid+xml":{source:"iana",compressible:!0,extensions:["sls"]},"application/route-usd+xml":{source:"iana",compressible:!0,extensions:["rusd"]},"application/rpki-ghostbusters":{source:"iana",extensions:["gbr"]},"application/rpki-manifest":{source:"iana",extensions:["mft"]},"application/rpki-publication":{source:"iana"},"application/rpki-roa":{source:"iana",extensions:["roa"]},"application/rpki-updown":{source:"iana"},"application/rsd+xml":{source:"apache",compressible:!0,extensions:["rsd"]},"application/rss+xml":{source:"apache",compressible:!0,extensions:["rss"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/rtploopback":{source:"iana"},"application/rtx":{source:"iana"},"application/samlassertion+xml":{source:"iana",compressible:!0},"application/samlmetadata+xml":{source:"iana",compressible:!0},"application/sarif+json":{source:"iana",compressible:!0},"application/sarif-external-properties+json":{source:"iana",compressible:!0},"application/sbe":{source:"iana"},"application/sbml+xml":{source:"iana",compressible:!0,extensions:["sbml"]},"application/scaip+xml":{source:"iana",compressible:!0},"application/scim+json":{source:"iana",compressible:!0},"application/scvp-cv-request":{source:"iana",extensions:["scq"]},"application/scvp-cv-response":{source:"iana",extensions:["scs"]},"application/scvp-vp-request":{source:"iana",extensions:["spq"]},"application/scvp-vp-response":{source:"iana",extensions:["spp"]},"application/sdp":{source:"iana",extensions:["sdp"]},"application/secevent+jwt":{source:"iana"},"application/senml+cbor":{source:"iana"},"application/senml+json":{source:"iana",compressible:!0},"application/senml+xml":{source:"iana",compressible:!0,extensions:["senmlx"]},"application/senml-etch+cbor":{source:"iana"},"application/senml-etch+json":{source:"iana",compressible:!0},"application/senml-exi":{source:"iana"},"application/sensml+cbor":{source:"iana"},"application/sensml+json":{source:"iana",compressible:!0},"application/sensml+xml":{source:"iana",compressible:!0,extensions:["sensmlx"]},"application/sensml-exi":{source:"iana"},"application/sep+xml":{source:"iana",compressible:!0},"application/sep-exi":{source:"iana"},"application/session-info":{source:"iana"},"application/set-payment":{source:"iana"},"application/set-payment-initiation":{source:"iana",extensions:["setpay"]},"application/set-registration":{source:"iana"},"application/set-registration-initiation":{source:"iana",extensions:["setreg"]},"application/sgml":{source:"iana"},"application/sgml-open-catalog":{source:"iana"},"application/shf+xml":{source:"iana",compressible:!0,extensions:["shf"]},"application/sieve":{source:"iana",extensions:["siv","sieve"]},"application/simple-filter+xml":{source:"iana",compressible:!0},"application/simple-message-summary":{source:"iana"},"application/simplesymbolcontainer":{source:"iana"},"application/sipc":{source:"iana"},"application/slate":{source:"iana"},"application/smil":{source:"iana"},"application/smil+xml":{source:"iana",compressible:!0,extensions:["smi","smil"]},"application/smpte336m":{source:"iana"},"application/soap+fastinfoset":{source:"iana"},"application/soap+xml":{source:"iana",compressible:!0},"application/sparql-query":{source:"iana",extensions:["rq"]},"application/sparql-results+xml":{source:"iana",compressible:!0,extensions:["srx"]},"application/spdx+json":{source:"iana",compressible:!0},"application/spirits-event+xml":{source:"iana",compressible:!0},"application/sql":{source:"iana"},"application/srgs":{source:"iana",extensions:["gram"]},"application/srgs+xml":{source:"iana",compressible:!0,extensions:["grxml"]},"application/sru+xml":{source:"iana",compressible:!0,extensions:["sru"]},"application/ssdl+xml":{source:"apache",compressible:!0,extensions:["ssdl"]},"application/ssml+xml":{source:"iana",compressible:!0,extensions:["ssml"]},"application/stix+json":{source:"iana",compressible:!0},"application/swid+xml":{source:"iana",compressible:!0,extensions:["swidtag"]},"application/tamp-apex-update":{source:"iana"},"application/tamp-apex-update-confirm":{source:"iana"},"application/tamp-community-update":{source:"iana"},"application/tamp-community-update-confirm":{source:"iana"},"application/tamp-error":{source:"iana"},"application/tamp-sequence-adjust":{source:"iana"},"application/tamp-sequence-adjust-confirm":{source:"iana"},"application/tamp-status-query":{source:"iana"},"application/tamp-status-response":{source:"iana"},"application/tamp-update":{source:"iana"},"application/tamp-update-confirm":{source:"iana"},"application/tar":{compressible:!0},"application/taxii+json":{source:"iana",compressible:!0},"application/td+json":{source:"iana",compressible:!0},"application/tei+xml":{source:"iana",compressible:!0,extensions:["tei","teicorpus"]},"application/tetra_isi":{source:"iana"},"application/thraud+xml":{source:"iana",compressible:!0,extensions:["tfi"]},"application/timestamp-query":{source:"iana"},"application/timestamp-reply":{source:"iana"},"application/timestamped-data":{source:"iana",extensions:["tsd"]},"application/tlsrpt+gzip":{source:"iana"},"application/tlsrpt+json":{source:"iana",compressible:!0},"application/tnauthlist":{source:"iana"},"application/token-introspection+jwt":{source:"iana"},"application/toml":{compressible:!0,extensions:["toml"]},"application/trickle-ice-sdpfrag":{source:"iana"},"application/trig":{source:"iana",extensions:["trig"]},"application/ttml+xml":{source:"iana",compressible:!0,extensions:["ttml"]},"application/tve-trigger":{source:"iana"},"application/tzif":{source:"iana"},"application/tzif-leap":{source:"iana"},"application/ubjson":{compressible:!1,extensions:["ubj"]},"application/ulpfec":{source:"iana"},"application/urc-grpsheet+xml":{source:"iana",compressible:!0},"application/urc-ressheet+xml":{source:"iana",compressible:!0,extensions:["rsheet"]},"application/urc-targetdesc+xml":{source:"iana",compressible:!0,extensions:["td"]},"application/urc-uisocketdesc+xml":{source:"iana",compressible:!0},"application/vcard+json":{source:"iana",compressible:!0},"application/vcard+xml":{source:"iana",compressible:!0},"application/vemmi":{source:"iana"},"application/vividence.scriptfile":{source:"apache"},"application/vnd.1000minds.decision-model+xml":{source:"iana",compressible:!0,extensions:["1km"]},"application/vnd.3gpp-prose+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc3ch+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-v2x-local-service-information":{source:"iana"},"application/vnd.3gpp.5gnas":{source:"iana"},"application/vnd.3gpp.access-transfer-events+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.bsf+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gmop+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gtpc":{source:"iana"},"application/vnd.3gpp.interworking-data":{source:"iana"},"application/vnd.3gpp.lpp":{source:"iana"},"application/vnd.3gpp.mc-signalling-ear":{source:"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-payload":{source:"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-signalling":{source:"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-floor-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-signed+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mid-call+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ngap":{source:"iana"},"application/vnd.3gpp.pfcp":{source:"iana"},"application/vnd.3gpp.pic-bw-large":{source:"iana",extensions:["plb"]},"application/vnd.3gpp.pic-bw-small":{source:"iana",extensions:["psb"]},"application/vnd.3gpp.pic-bw-var":{source:"iana",extensions:["pvb"]},"application/vnd.3gpp.s1ap":{source:"iana"},"application/vnd.3gpp.sms":{source:"iana"},"application/vnd.3gpp.sms+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-ext+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.state-and-event-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ussd+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.bcmcsinfo+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.sms":{source:"iana"},"application/vnd.3gpp2.tcap":{source:"iana",extensions:["tcap"]},"application/vnd.3lightssoftware.imagescal":{source:"iana"},"application/vnd.3m.post-it-notes":{source:"iana",extensions:["pwn"]},"application/vnd.accpac.simply.aso":{source:"iana",extensions:["aso"]},"application/vnd.accpac.simply.imp":{source:"iana",extensions:["imp"]},"application/vnd.acucobol":{source:"iana",extensions:["acu"]},"application/vnd.acucorp":{source:"iana",extensions:["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{source:"apache",compressible:!1,extensions:["air"]},"application/vnd.adobe.flash.movie":{source:"iana"},"application/vnd.adobe.formscentral.fcdt":{source:"iana",extensions:["fcdt"]},"application/vnd.adobe.fxp":{source:"iana",extensions:["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{source:"iana"},"application/vnd.adobe.xdp+xml":{source:"iana",compressible:!0,extensions:["xdp"]},"application/vnd.adobe.xfdf":{source:"iana",extensions:["xfdf"]},"application/vnd.aether.imp":{source:"iana"},"application/vnd.afpc.afplinedata":{source:"iana"},"application/vnd.afpc.afplinedata-pagedef":{source:"iana"},"application/vnd.afpc.cmoca-cmresource":{source:"iana"},"application/vnd.afpc.foca-charset":{source:"iana"},"application/vnd.afpc.foca-codedfont":{source:"iana"},"application/vnd.afpc.foca-codepage":{source:"iana"},"application/vnd.afpc.modca":{source:"iana"},"application/vnd.afpc.modca-cmtable":{source:"iana"},"application/vnd.afpc.modca-formdef":{source:"iana"},"application/vnd.afpc.modca-mediummap":{source:"iana"},"application/vnd.afpc.modca-objectcontainer":{source:"iana"},"application/vnd.afpc.modca-overlay":{source:"iana"},"application/vnd.afpc.modca-pagesegment":{source:"iana"},"application/vnd.age":{source:"iana",extensions:["age"]},"application/vnd.ah-barcode":{source:"iana"},"application/vnd.ahead.space":{source:"iana",extensions:["ahead"]},"application/vnd.airzip.filesecure.azf":{source:"iana",extensions:["azf"]},"application/vnd.airzip.filesecure.azs":{source:"iana",extensions:["azs"]},"application/vnd.amadeus+json":{source:"iana",compressible:!0},"application/vnd.amazon.ebook":{source:"apache",extensions:["azw"]},"application/vnd.amazon.mobi8-ebook":{source:"iana"},"application/vnd.americandynamics.acc":{source:"iana",extensions:["acc"]},"application/vnd.amiga.ami":{source:"iana",extensions:["ami"]},"application/vnd.amundsen.maze+xml":{source:"iana",compressible:!0},"application/vnd.android.ota":{source:"iana"},"application/vnd.android.package-archive":{source:"apache",compressible:!1,extensions:["apk"]},"application/vnd.anki":{source:"iana"},"application/vnd.anser-web-certificate-issue-initiation":{source:"iana",extensions:["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{source:"apache",extensions:["fti"]},"application/vnd.antix.game-component":{source:"iana",extensions:["atx"]},"application/vnd.apache.arrow.file":{source:"iana"},"application/vnd.apache.arrow.stream":{source:"iana"},"application/vnd.apache.thrift.binary":{source:"iana"},"application/vnd.apache.thrift.compact":{source:"iana"},"application/vnd.apache.thrift.json":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/vnd.aplextor.warrp+json":{source:"iana",compressible:!0},"application/vnd.apothekende.reservation+json":{source:"iana",compressible:!0},"application/vnd.apple.installer+xml":{source:"iana",compressible:!0,extensions:["mpkg"]},"application/vnd.apple.keynote":{source:"iana",extensions:["key"]},"application/vnd.apple.mpegurl":{source:"iana",extensions:["m3u8"]},"application/vnd.apple.numbers":{source:"iana",extensions:["numbers"]},"application/vnd.apple.pages":{source:"iana",extensions:["pages"]},"application/vnd.apple.pkpass":{compressible:!1,extensions:["pkpass"]},"application/vnd.arastra.swi":{source:"iana"},"application/vnd.aristanetworks.swi":{source:"iana",extensions:["swi"]},"application/vnd.artisan+json":{source:"iana",compressible:!0},"application/vnd.artsquare":{source:"iana"},"application/vnd.astraea-software.iota":{source:"iana",extensions:["iota"]},"application/vnd.audiograph":{source:"iana",extensions:["aep"]},"application/vnd.autopackage":{source:"iana"},"application/vnd.avalon+json":{source:"iana",compressible:!0},"application/vnd.avistar+xml":{source:"iana",compressible:!0},"application/vnd.balsamiq.bmml+xml":{source:"iana",compressible:!0,extensions:["bmml"]},"application/vnd.balsamiq.bmpr":{source:"iana"},"application/vnd.banana-accounting":{source:"iana"},"application/vnd.bbf.usp.error":{source:"iana"},"application/vnd.bbf.usp.msg":{source:"iana"},"application/vnd.bbf.usp.msg+json":{source:"iana",compressible:!0},"application/vnd.bekitzur-stech+json":{source:"iana",compressible:!0},"application/vnd.bint.med-content":{source:"iana"},"application/vnd.biopax.rdf+xml":{source:"iana",compressible:!0},"application/vnd.blink-idb-value-wrapper":{source:"iana"},"application/vnd.blueice.multipass":{source:"iana",extensions:["mpm"]},"application/vnd.bluetooth.ep.oob":{source:"iana"},"application/vnd.bluetooth.le.oob":{source:"iana"},"application/vnd.bmi":{source:"iana",extensions:["bmi"]},"application/vnd.bpf":{source:"iana"},"application/vnd.bpf3":{source:"iana"},"application/vnd.businessobjects":{source:"iana",extensions:["rep"]},"application/vnd.byu.uapi+json":{source:"iana",compressible:!0},"application/vnd.cab-jscript":{source:"iana"},"application/vnd.canon-cpdl":{source:"iana"},"application/vnd.canon-lips":{source:"iana"},"application/vnd.capasystems-pg+json":{source:"iana",compressible:!0},"application/vnd.cendio.thinlinc.clientconf":{source:"iana"},"application/vnd.century-systems.tcp_stream":{source:"iana"},"application/vnd.chemdraw+xml":{source:"iana",compressible:!0,extensions:["cdxml"]},"application/vnd.chess-pgn":{source:"iana"},"application/vnd.chipnuts.karaoke-mmd":{source:"iana",extensions:["mmd"]},"application/vnd.ciedi":{source:"iana"},"application/vnd.cinderella":{source:"iana",extensions:["cdy"]},"application/vnd.cirpack.isdn-ext":{source:"iana"},"application/vnd.citationstyles.style+xml":{source:"iana",compressible:!0,extensions:["csl"]},"application/vnd.claymore":{source:"iana",extensions:["cla"]},"application/vnd.cloanto.rp9":{source:"iana",extensions:["rp9"]},"application/vnd.clonk.c4group":{source:"iana",extensions:["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{source:"iana",extensions:["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{source:"iana",extensions:["c11amz"]},"application/vnd.coffeescript":{source:"iana"},"application/vnd.collabio.xodocuments.document":{source:"iana"},"application/vnd.collabio.xodocuments.document-template":{source:"iana"},"application/vnd.collabio.xodocuments.presentation":{source:"iana"},"application/vnd.collabio.xodocuments.presentation-template":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{source:"iana"},"application/vnd.collection+json":{source:"iana",compressible:!0},"application/vnd.collection.doc+json":{source:"iana",compressible:!0},"application/vnd.collection.next+json":{source:"iana",compressible:!0},"application/vnd.comicbook+zip":{source:"iana",compressible:!1},"application/vnd.comicbook-rar":{source:"iana"},"application/vnd.commerce-battelle":{source:"iana"},"application/vnd.commonspace":{source:"iana",extensions:["csp"]},"application/vnd.contact.cmsg":{source:"iana",extensions:["cdbcmsg"]},"application/vnd.coreos.ignition+json":{source:"iana",compressible:!0},"application/vnd.cosmocaller":{source:"iana",extensions:["cmc"]},"application/vnd.crick.clicker":{source:"iana",extensions:["clkx"]},"application/vnd.crick.clicker.keyboard":{source:"iana",extensions:["clkk"]},"application/vnd.crick.clicker.palette":{source:"iana",extensions:["clkp"]},"application/vnd.crick.clicker.template":{source:"iana",extensions:["clkt"]},"application/vnd.crick.clicker.wordbank":{source:"iana",extensions:["clkw"]},"application/vnd.criticaltools.wbs+xml":{source:"iana",compressible:!0,extensions:["wbs"]},"application/vnd.cryptii.pipe+json":{source:"iana",compressible:!0},"application/vnd.crypto-shade-file":{source:"iana"},"application/vnd.cryptomator.encrypted":{source:"iana"},"application/vnd.cryptomator.vault":{source:"iana"},"application/vnd.ctc-posml":{source:"iana",extensions:["pml"]},"application/vnd.ctct.ws+xml":{source:"iana",compressible:!0},"application/vnd.cups-pdf":{source:"iana"},"application/vnd.cups-postscript":{source:"iana"},"application/vnd.cups-ppd":{source:"iana",extensions:["ppd"]},"application/vnd.cups-raster":{source:"iana"},"application/vnd.cups-raw":{source:"iana"},"application/vnd.curl":{source:"iana"},"application/vnd.curl.car":{source:"apache",extensions:["car"]},"application/vnd.curl.pcurl":{source:"apache",extensions:["pcurl"]},"application/vnd.cyan.dean.root+xml":{source:"iana",compressible:!0},"application/vnd.cybank":{source:"iana"},"application/vnd.cyclonedx+json":{source:"iana",compressible:!0},"application/vnd.cyclonedx+xml":{source:"iana",compressible:!0},"application/vnd.d2l.coursepackage1p0+zip":{source:"iana",compressible:!1},"application/vnd.d3m-dataset":{source:"iana"},"application/vnd.d3m-problem":{source:"iana"},"application/vnd.dart":{source:"iana",compressible:!0,extensions:["dart"]},"application/vnd.data-vision.rdz":{source:"iana",extensions:["rdz"]},"application/vnd.datapackage+json":{source:"iana",compressible:!0},"application/vnd.dataresource+json":{source:"iana",compressible:!0},"application/vnd.dbf":{source:"iana",extensions:["dbf"]},"application/vnd.debian.binary-package":{source:"iana"},"application/vnd.dece.data":{source:"iana",extensions:["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{source:"iana",compressible:!0,extensions:["uvt","uvvt"]},"application/vnd.dece.unspecified":{source:"iana",extensions:["uvx","uvvx"]},"application/vnd.dece.zip":{source:"iana",extensions:["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{source:"iana",extensions:["fe_launch"]},"application/vnd.desmume.movie":{source:"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{source:"iana"},"application/vnd.dm.delegation+xml":{source:"iana",compressible:!0},"application/vnd.dna":{source:"iana",extensions:["dna"]},"application/vnd.document+json":{source:"iana",compressible:!0},"application/vnd.dolby.mlp":{source:"apache",extensions:["mlp"]},"application/vnd.dolby.mobile.1":{source:"iana"},"application/vnd.dolby.mobile.2":{source:"iana"},"application/vnd.doremir.scorecloud-binary-document":{source:"iana"},"application/vnd.dpgraph":{source:"iana",extensions:["dpg"]},"application/vnd.dreamfactory":{source:"iana",extensions:["dfac"]},"application/vnd.drive+json":{source:"iana",compressible:!0},"application/vnd.ds-keypoint":{source:"apache",extensions:["kpxx"]},"application/vnd.dtg.local":{source:"iana"},"application/vnd.dtg.local.flash":{source:"iana"},"application/vnd.dtg.local.html":{source:"iana"},"application/vnd.dvb.ait":{source:"iana",extensions:["ait"]},"application/vnd.dvb.dvbisl+xml":{source:"iana",compressible:!0},"application/vnd.dvb.dvbj":{source:"iana"},"application/vnd.dvb.esgcontainer":{source:"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess2":{source:"iana"},"application/vnd.dvb.ipdcesgpdd":{source:"iana"},"application/vnd.dvb.ipdcroaming":{source:"iana"},"application/vnd.dvb.iptv.alfec-base":{source:"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{source:"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-container+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-generic+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-msglist+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-request+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-response+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-init+xml":{source:"iana",compressible:!0},"application/vnd.dvb.pfr":{source:"iana"},"application/vnd.dvb.service":{source:"iana",extensions:["svc"]},"application/vnd.dxr":{source:"iana"},"application/vnd.dynageo":{source:"iana",extensions:["geo"]},"application/vnd.dzr":{source:"iana"},"application/vnd.easykaraoke.cdgdownload":{source:"iana"},"application/vnd.ecdis-update":{source:"iana"},"application/vnd.ecip.rlp":{source:"iana"},"application/vnd.eclipse.ditto+json":{source:"iana",compressible:!0},"application/vnd.ecowin.chart":{source:"iana",extensions:["mag"]},"application/vnd.ecowin.filerequest":{source:"iana"},"application/vnd.ecowin.fileupdate":{source:"iana"},"application/vnd.ecowin.series":{source:"iana"},"application/vnd.ecowin.seriesrequest":{source:"iana"},"application/vnd.ecowin.seriesupdate":{source:"iana"},"application/vnd.efi.img":{source:"iana"},"application/vnd.efi.iso":{source:"iana"},"application/vnd.emclient.accessrequest+xml":{source:"iana",compressible:!0},"application/vnd.enliven":{source:"iana",extensions:["nml"]},"application/vnd.enphase.envoy":{source:"iana"},"application/vnd.eprints.data+xml":{source:"iana",compressible:!0},"application/vnd.epson.esf":{source:"iana",extensions:["esf"]},"application/vnd.epson.msf":{source:"iana",extensions:["msf"]},"application/vnd.epson.quickanime":{source:"iana",extensions:["qam"]},"application/vnd.epson.salt":{source:"iana",extensions:["slt"]},"application/vnd.epson.ssf":{source:"iana",extensions:["ssf"]},"application/vnd.ericsson.quickcall":{source:"iana"},"application/vnd.espass-espass+zip":{source:"iana",compressible:!1},"application/vnd.eszigno3+xml":{source:"iana",compressible:!0,extensions:["es3","et3"]},"application/vnd.etsi.aoc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.asic-e+zip":{source:"iana",compressible:!1},"application/vnd.etsi.asic-s+zip":{source:"iana",compressible:!1},"application/vnd.etsi.cug+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvcommand+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-bc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-cod+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-npvr+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvservice+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsync+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvueprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mcid+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mheg5":{source:"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:"iana",compressible:!0},"application/vnd.etsi.pstn+xml":{source:"iana",compressible:!0},"application/vnd.etsi.sci+xml":{source:"iana",compressible:!0},"application/vnd.etsi.simservs+xml":{source:"iana",compressible:!0},"application/vnd.etsi.timestamp-token":{source:"iana"},"application/vnd.etsi.tsl+xml":{source:"iana",compressible:!0},"application/vnd.etsi.tsl.der":{source:"iana"},"application/vnd.eu.kasparian.car+json":{source:"iana",compressible:!0},"application/vnd.eudora.data":{source:"iana"},"application/vnd.evolv.ecig.profile":{source:"iana"},"application/vnd.evolv.ecig.settings":{source:"iana"},"application/vnd.evolv.ecig.theme":{source:"iana"},"application/vnd.exstream-empower+zip":{source:"iana",compressible:!1},"application/vnd.exstream-package":{source:"iana"},"application/vnd.ezpix-album":{source:"iana",extensions:["ez2"]},"application/vnd.ezpix-package":{source:"iana",extensions:["ez3"]},"application/vnd.f-secure.mobile":{source:"iana"},"application/vnd.familysearch.gedcom+zip":{source:"iana",compressible:!1},"application/vnd.fastcopy-disk-image":{source:"iana"},"application/vnd.fdf":{source:"iana",extensions:["fdf"]},"application/vnd.fdsn.mseed":{source:"iana",extensions:["mseed"]},"application/vnd.fdsn.seed":{source:"iana",extensions:["seed","dataless"]},"application/vnd.ffsns":{source:"iana"},"application/vnd.ficlab.flb+zip":{source:"iana",compressible:!1},"application/vnd.filmit.zfc":{source:"iana"},"application/vnd.fints":{source:"iana"},"application/vnd.firemonkeys.cloudcell":{source:"iana"},"application/vnd.flographit":{source:"iana",extensions:["gph"]},"application/vnd.fluxtime.clip":{source:"iana",extensions:["ftc"]},"application/vnd.font-fontforge-sfd":{source:"iana"},"application/vnd.framemaker":{source:"iana",extensions:["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{source:"iana",extensions:["fnc"]},"application/vnd.frogans.ltf":{source:"iana",extensions:["ltf"]},"application/vnd.fsc.weblaunch":{source:"iana",extensions:["fsc"]},"application/vnd.fujifilm.fb.docuworks":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.container":{source:"iana"},"application/vnd.fujifilm.fb.jfi+xml":{source:"iana",compressible:!0},"application/vnd.fujitsu.oasys":{source:"iana",extensions:["oas"]},"application/vnd.fujitsu.oasys2":{source:"iana",extensions:["oa2"]},"application/vnd.fujitsu.oasys3":{source:"iana",extensions:["oa3"]},"application/vnd.fujitsu.oasysgp":{source:"iana",extensions:["fg5"]},"application/vnd.fujitsu.oasysprs":{source:"iana",extensions:["bh2"]},"application/vnd.fujixerox.art-ex":{source:"iana"},"application/vnd.fujixerox.art4":{source:"iana"},"application/vnd.fujixerox.ddd":{source:"iana",extensions:["ddd"]},"application/vnd.fujixerox.docuworks":{source:"iana",extensions:["xdw"]},"application/vnd.fujixerox.docuworks.binder":{source:"iana",extensions:["xbd"]},"application/vnd.fujixerox.docuworks.container":{source:"iana"},"application/vnd.fujixerox.hbpl":{source:"iana"},"application/vnd.fut-misnet":{source:"iana"},"application/vnd.futoin+cbor":{source:"iana"},"application/vnd.futoin+json":{source:"iana",compressible:!0},"application/vnd.fuzzysheet":{source:"iana",extensions:["fzs"]},"application/vnd.genomatix.tuxedo":{source:"iana",extensions:["txd"]},"application/vnd.gentics.grd+json":{source:"iana",compressible:!0},"application/vnd.geo+json":{source:"iana",compressible:!0},"application/vnd.geocube+xml":{source:"iana",compressible:!0},"application/vnd.geogebra.file":{source:"iana",extensions:["ggb"]},"application/vnd.geogebra.slides":{source:"iana"},"application/vnd.geogebra.tool":{source:"iana",extensions:["ggt"]},"application/vnd.geometry-explorer":{source:"iana",extensions:["gex","gre"]},"application/vnd.geonext":{source:"iana",extensions:["gxt"]},"application/vnd.geoplan":{source:"iana",extensions:["g2w"]},"application/vnd.geospace":{source:"iana",extensions:["g3w"]},"application/vnd.gerber":{source:"iana"},"application/vnd.globalplatform.card-content-mgt":{source:"iana"},"application/vnd.globalplatform.card-content-mgt-response":{source:"iana"},"application/vnd.gmx":{source:"iana",extensions:["gmx"]},"application/vnd.google-apps.document":{compressible:!1,extensions:["gdoc"]},"application/vnd.google-apps.presentation":{compressible:!1,extensions:["gslides"]},"application/vnd.google-apps.spreadsheet":{compressible:!1,extensions:["gsheet"]},"application/vnd.google-earth.kml+xml":{source:"iana",compressible:!0,extensions:["kml"]},"application/vnd.google-earth.kmz":{source:"iana",compressible:!1,extensions:["kmz"]},"application/vnd.gov.sk.e-form+xml":{source:"iana",compressible:!0},"application/vnd.gov.sk.e-form+zip":{source:"iana",compressible:!1},"application/vnd.gov.sk.xmldatacontainer+xml":{source:"iana",compressible:!0},"application/vnd.grafeq":{source:"iana",extensions:["gqf","gqs"]},"application/vnd.gridmp":{source:"iana"},"application/vnd.groove-account":{source:"iana",extensions:["gac"]},"application/vnd.groove-help":{source:"iana",extensions:["ghf"]},"application/vnd.groove-identity-message":{source:"iana",extensions:["gim"]},"application/vnd.groove-injector":{source:"iana",extensions:["grv"]},"application/vnd.groove-tool-message":{source:"iana",extensions:["gtm"]},"application/vnd.groove-tool-template":{source:"iana",extensions:["tpl"]},"application/vnd.groove-vcard":{source:"iana",extensions:["vcg"]},"application/vnd.hal+json":{source:"iana",compressible:!0},"application/vnd.hal+xml":{source:"iana",compressible:!0,extensions:["hal"]},"application/vnd.handheld-entertainment+xml":{source:"iana",compressible:!0,extensions:["zmm"]},"application/vnd.hbci":{source:"iana",extensions:["hbci"]},"application/vnd.hc+json":{source:"iana",compressible:!0},"application/vnd.hcl-bireports":{source:"iana"},"application/vnd.hdt":{source:"iana"},"application/vnd.heroku+json":{source:"iana",compressible:!0},"application/vnd.hhe.lesson-player":{source:"iana",extensions:["les"]},"application/vnd.hl7cda+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hl7v2+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hp-hpgl":{source:"iana",extensions:["hpgl"]},"application/vnd.hp-hpid":{source:"iana",extensions:["hpid"]},"application/vnd.hp-hps":{source:"iana",extensions:["hps"]},"application/vnd.hp-jlyt":{source:"iana",extensions:["jlt"]},"application/vnd.hp-pcl":{source:"iana",extensions:["pcl"]},"application/vnd.hp-pclxl":{source:"iana",extensions:["pclxl"]},"application/vnd.httphone":{source:"iana"},"application/vnd.hydrostatix.sof-data":{source:"iana",extensions:["sfd-hdstx"]},"application/vnd.hyper+json":{source:"iana",compressible:!0},"application/vnd.hyper-item+json":{source:"iana",compressible:!0},"application/vnd.hyperdrive+json":{source:"iana",compressible:!0},"application/vnd.hzn-3d-crossword":{source:"iana"},"application/vnd.ibm.afplinedata":{source:"iana"},"application/vnd.ibm.electronic-media":{source:"iana"},"application/vnd.ibm.minipay":{source:"iana",extensions:["mpy"]},"application/vnd.ibm.modcap":{source:"iana",extensions:["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{source:"iana",extensions:["irm"]},"application/vnd.ibm.secure-container":{source:"iana",extensions:["sc"]},"application/vnd.iccprofile":{source:"iana",extensions:["icc","icm"]},"application/vnd.ieee.1905":{source:"iana"},"application/vnd.igloader":{source:"iana",extensions:["igl"]},"application/vnd.imagemeter.folder+zip":{source:"iana",compressible:!1},"application/vnd.imagemeter.image+zip":{source:"iana",compressible:!1},"application/vnd.immervision-ivp":{source:"iana",extensions:["ivp"]},"application/vnd.immervision-ivu":{source:"iana",extensions:["ivu"]},"application/vnd.ims.imsccv1p1":{source:"iana"},"application/vnd.ims.imsccv1p2":{source:"iana"},"application/vnd.ims.imsccv1p3":{source:"iana"},"application/vnd.ims.lis.v2.result+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:"iana",compressible:!0},"application/vnd.informedcontrol.rms+xml":{source:"iana",compressible:!0},"application/vnd.informix-visionary":{source:"iana"},"application/vnd.infotech.project":{source:"iana"},"application/vnd.infotech.project+xml":{source:"iana",compressible:!0},"application/vnd.innopath.wamp.notification":{source:"iana"},"application/vnd.insors.igm":{source:"iana",extensions:["igm"]},"application/vnd.intercon.formnet":{source:"iana",extensions:["xpw","xpx"]},"application/vnd.intergeo":{source:"iana",extensions:["i2g"]},"application/vnd.intertrust.digibox":{source:"iana"},"application/vnd.intertrust.nncp":{source:"iana"},"application/vnd.intu.qbo":{source:"iana",extensions:["qbo"]},"application/vnd.intu.qfx":{source:"iana",extensions:["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.conceptitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.knowledgeitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsmessage+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.packageitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.planningitem+xml":{source:"iana",compressible:!0},"application/vnd.ipunplugged.rcprofile":{source:"iana",extensions:["rcprofile"]},"application/vnd.irepository.package+xml":{source:"iana",compressible:!0,extensions:["irp"]},"application/vnd.is-xpr":{source:"iana",extensions:["xpr"]},"application/vnd.isac.fcs":{source:"iana",extensions:["fcs"]},"application/vnd.iso11783-10+zip":{source:"iana",compressible:!1},"application/vnd.jam":{source:"iana",extensions:["jam"]},"application/vnd.japannet-directory-service":{source:"iana"},"application/vnd.japannet-jpnstore-wakeup":{source:"iana"},"application/vnd.japannet-payment-wakeup":{source:"iana"},"application/vnd.japannet-registration":{source:"iana"},"application/vnd.japannet-registration-wakeup":{source:"iana"},"application/vnd.japannet-setstore-wakeup":{source:"iana"},"application/vnd.japannet-verification":{source:"iana"},"application/vnd.japannet-verification-wakeup":{source:"iana"},"application/vnd.jcp.javame.midlet-rms":{source:"iana",extensions:["rms"]},"application/vnd.jisp":{source:"iana",extensions:["jisp"]},"application/vnd.joost.joda-archive":{source:"iana",extensions:["joda"]},"application/vnd.jsk.isdn-ngn":{source:"iana"},"application/vnd.kahootz":{source:"iana",extensions:["ktz","ktr"]},"application/vnd.kde.karbon":{source:"iana",extensions:["karbon"]},"application/vnd.kde.kchart":{source:"iana",extensions:["chrt"]},"application/vnd.kde.kformula":{source:"iana",extensions:["kfo"]},"application/vnd.kde.kivio":{source:"iana",extensions:["flw"]},"application/vnd.kde.kontour":{source:"iana",extensions:["kon"]},"application/vnd.kde.kpresenter":{source:"iana",extensions:["kpr","kpt"]},"application/vnd.kde.kspread":{source:"iana",extensions:["ksp"]},"application/vnd.kde.kword":{source:"iana",extensions:["kwd","kwt"]},"application/vnd.kenameaapp":{source:"iana",extensions:["htke"]},"application/vnd.kidspiration":{source:"iana",extensions:["kia"]},"application/vnd.kinar":{source:"iana",extensions:["kne","knp"]},"application/vnd.koan":{source:"iana",extensions:["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{source:"iana",extensions:["sse"]},"application/vnd.las":{source:"iana"},"application/vnd.las.las+json":{source:"iana",compressible:!0},"application/vnd.las.las+xml":{source:"iana",compressible:!0,extensions:["lasxml"]},"application/vnd.laszip":{source:"iana"},"application/vnd.leap+json":{source:"iana",compressible:!0},"application/vnd.liberty-request+xml":{source:"iana",compressible:!0},"application/vnd.llamagraphics.life-balance.desktop":{source:"iana",extensions:["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:"iana",compressible:!0,extensions:["lbe"]},"application/vnd.logipipe.circuit+zip":{source:"iana",compressible:!1},"application/vnd.loom":{source:"iana"},"application/vnd.lotus-1-2-3":{source:"iana",extensions:["123"]},"application/vnd.lotus-approach":{source:"iana",extensions:["apr"]},"application/vnd.lotus-freelance":{source:"iana",extensions:["pre"]},"application/vnd.lotus-notes":{source:"iana",extensions:["nsf"]},"application/vnd.lotus-organizer":{source:"iana",extensions:["org"]},"application/vnd.lotus-screencam":{source:"iana",extensions:["scm"]},"application/vnd.lotus-wordpro":{source:"iana",extensions:["lwp"]},"application/vnd.macports.portpkg":{source:"iana",extensions:["portpkg"]},"application/vnd.mapbox-vector-tile":{source:"iana",extensions:["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.conftoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.license+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.mdcf":{source:"iana"},"application/vnd.mason+json":{source:"iana",compressible:!0},"application/vnd.maxar.archive.3tz+zip":{source:"iana",compressible:!1},"application/vnd.maxmind.maxmind-db":{source:"iana"},"application/vnd.mcd":{source:"iana",extensions:["mcd"]},"application/vnd.medcalcdata":{source:"iana",extensions:["mc1"]},"application/vnd.mediastation.cdkey":{source:"iana",extensions:["cdkey"]},"application/vnd.meridian-slingshot":{source:"iana"},"application/vnd.mfer":{source:"iana",extensions:["mwf"]},"application/vnd.mfmp":{source:"iana",extensions:["mfm"]},"application/vnd.micro+json":{source:"iana",compressible:!0},"application/vnd.micrografx.flo":{source:"iana",extensions:["flo"]},"application/vnd.micrografx.igx":{source:"iana",extensions:["igx"]},"application/vnd.microsoft.portable-executable":{source:"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{source:"iana"},"application/vnd.miele+json":{source:"iana",compressible:!0},"application/vnd.mif":{source:"iana",extensions:["mif"]},"application/vnd.minisoft-hp3000-save":{source:"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{source:"iana"},"application/vnd.mobius.daf":{source:"iana",extensions:["daf"]},"application/vnd.mobius.dis":{source:"iana",extensions:["dis"]},"application/vnd.mobius.mbk":{source:"iana",extensions:["mbk"]},"application/vnd.mobius.mqy":{source:"iana",extensions:["mqy"]},"application/vnd.mobius.msl":{source:"iana",extensions:["msl"]},"application/vnd.mobius.plc":{source:"iana",extensions:["plc"]},"application/vnd.mobius.txf":{source:"iana",extensions:["txf"]},"application/vnd.mophun.application":{source:"iana",extensions:["mpn"]},"application/vnd.mophun.certificate":{source:"iana",extensions:["mpc"]},"application/vnd.motorola.flexsuite":{source:"iana"},"application/vnd.motorola.flexsuite.adsi":{source:"iana"},"application/vnd.motorola.flexsuite.fis":{source:"iana"},"application/vnd.motorola.flexsuite.gotap":{source:"iana"},"application/vnd.motorola.flexsuite.kmr":{source:"iana"},"application/vnd.motorola.flexsuite.ttc":{source:"iana"},"application/vnd.motorola.flexsuite.wem":{source:"iana"},"application/vnd.motorola.iprm":{source:"iana"},"application/vnd.mozilla.xul+xml":{source:"iana",compressible:!0,extensions:["xul"]},"application/vnd.ms-3mfdocument":{source:"iana"},"application/vnd.ms-artgalry":{source:"iana",extensions:["cil"]},"application/vnd.ms-asf":{source:"iana"},"application/vnd.ms-cab-compressed":{source:"iana",extensions:["cab"]},"application/vnd.ms-color.iccprofile":{source:"apache"},"application/vnd.ms-excel":{source:"iana",compressible:!1,extensions:["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{source:"iana",extensions:["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{source:"iana",extensions:["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{source:"iana",extensions:["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{source:"iana",extensions:["xltm"]},"application/vnd.ms-fontobject":{source:"iana",compressible:!0,extensions:["eot"]},"application/vnd.ms-htmlhelp":{source:"iana",extensions:["chm"]},"application/vnd.ms-ims":{source:"iana",extensions:["ims"]},"application/vnd.ms-lrm":{source:"iana",extensions:["lrm"]},"application/vnd.ms-office.activex+xml":{source:"iana",compressible:!0},"application/vnd.ms-officetheme":{source:"iana",extensions:["thmx"]},"application/vnd.ms-opentype":{source:"apache",compressible:!0},"application/vnd.ms-outlook":{compressible:!1,extensions:["msg"]},"application/vnd.ms-package.obfuscated-opentype":{source:"apache"},"application/vnd.ms-pki.seccat":{source:"apache",extensions:["cat"]},"application/vnd.ms-pki.stl":{source:"apache",extensions:["stl"]},"application/vnd.ms-playready.initiator+xml":{source:"iana",compressible:!0},"application/vnd.ms-powerpoint":{source:"iana",compressible:!1,extensions:["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{source:"iana",extensions:["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{source:"iana",extensions:["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{source:"iana",extensions:["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{source:"iana",extensions:["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{source:"iana",extensions:["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{source:"iana",compressible:!0},"application/vnd.ms-printing.printticket+xml":{source:"apache",compressible:!0},"application/vnd.ms-printschematicket+xml":{source:"iana",compressible:!0},"application/vnd.ms-project":{source:"iana",extensions:["mpp","mpt"]},"application/vnd.ms-tnef":{source:"iana"},"application/vnd.ms-windows.devicepairing":{source:"iana"},"application/vnd.ms-windows.nwprinting.oob":{source:"iana"},"application/vnd.ms-windows.printerpairing":{source:"iana"},"application/vnd.ms-windows.wsd.oob":{source:"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.lic-resp":{source:"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.meter-resp":{source:"iana"},"application/vnd.ms-word.document.macroenabled.12":{source:"iana",extensions:["docm"]},"application/vnd.ms-word.template.macroenabled.12":{source:"iana",extensions:["dotm"]},"application/vnd.ms-works":{source:"iana",extensions:["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{source:"iana",extensions:["wpl"]},"application/vnd.ms-xpsdocument":{source:"iana",compressible:!1,extensions:["xps"]},"application/vnd.msa-disk-image":{source:"iana"},"application/vnd.mseq":{source:"iana",extensions:["mseq"]},"application/vnd.msign":{source:"iana"},"application/vnd.multiad.creator":{source:"iana"},"application/vnd.multiad.creator.cif":{source:"iana"},"application/vnd.music-niff":{source:"iana"},"application/vnd.musician":{source:"iana",extensions:["mus"]},"application/vnd.muvee.style":{source:"iana",extensions:["msty"]},"application/vnd.mynfc":{source:"iana",extensions:["taglet"]},"application/vnd.nacamar.ybrid+json":{source:"iana",compressible:!0},"application/vnd.ncd.control":{source:"iana"},"application/vnd.ncd.reference":{source:"iana"},"application/vnd.nearst.inv+json":{source:"iana",compressible:!0},"application/vnd.nebumind.line":{source:"iana"},"application/vnd.nervana":{source:"iana"},"application/vnd.netfpx":{source:"iana"},"application/vnd.neurolanguage.nlu":{source:"iana",extensions:["nlu"]},"application/vnd.nimn":{source:"iana"},"application/vnd.nintendo.nitro.rom":{source:"iana"},"application/vnd.nintendo.snes.rom":{source:"iana"},"application/vnd.nitf":{source:"iana",extensions:["ntf","nitf"]},"application/vnd.noblenet-directory":{source:"iana",extensions:["nnd"]},"application/vnd.noblenet-sealer":{source:"iana",extensions:["nns"]},"application/vnd.noblenet-web":{source:"iana",extensions:["nnw"]},"application/vnd.nokia.catalogs":{source:"iana"},"application/vnd.nokia.conml+wbxml":{source:"iana"},"application/vnd.nokia.conml+xml":{source:"iana",compressible:!0},"application/vnd.nokia.iptv.config+xml":{source:"iana",compressible:!0},"application/vnd.nokia.isds-radio-presets":{source:"iana"},"application/vnd.nokia.landmark+wbxml":{source:"iana"},"application/vnd.nokia.landmark+xml":{source:"iana",compressible:!0},"application/vnd.nokia.landmarkcollection+xml":{source:"iana",compressible:!0},"application/vnd.nokia.n-gage.ac+xml":{source:"iana",compressible:!0,extensions:["ac"]},"application/vnd.nokia.n-gage.data":{source:"iana",extensions:["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{source:"iana",extensions:["n-gage"]},"application/vnd.nokia.ncd":{source:"iana"},"application/vnd.nokia.pcd+wbxml":{source:"iana"},"application/vnd.nokia.pcd+xml":{source:"iana",compressible:!0},"application/vnd.nokia.radio-preset":{source:"iana",extensions:["rpst"]},"application/vnd.nokia.radio-presets":{source:"iana",extensions:["rpss"]},"application/vnd.novadigm.edm":{source:"iana",extensions:["edm"]},"application/vnd.novadigm.edx":{source:"iana",extensions:["edx"]},"application/vnd.novadigm.ext":{source:"iana",extensions:["ext"]},"application/vnd.ntt-local.content-share":{source:"iana"},"application/vnd.ntt-local.file-transfer":{source:"iana"},"application/vnd.ntt-local.ogw_remote-access":{source:"iana"},"application/vnd.ntt-local.sip-ta_remote":{source:"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{source:"iana"},"application/vnd.oasis.opendocument.chart":{source:"iana",extensions:["odc"]},"application/vnd.oasis.opendocument.chart-template":{source:"iana",extensions:["otc"]},"application/vnd.oasis.opendocument.database":{source:"iana",extensions:["odb"]},"application/vnd.oasis.opendocument.formula":{source:"iana",extensions:["odf"]},"application/vnd.oasis.opendocument.formula-template":{source:"iana",extensions:["odft"]},"application/vnd.oasis.opendocument.graphics":{source:"iana",compressible:!1,extensions:["odg"]},"application/vnd.oasis.opendocument.graphics-template":{source:"iana",extensions:["otg"]},"application/vnd.oasis.opendocument.image":{source:"iana",extensions:["odi"]},"application/vnd.oasis.opendocument.image-template":{source:"iana",extensions:["oti"]},"application/vnd.oasis.opendocument.presentation":{source:"iana",compressible:!1,extensions:["odp"]},"application/vnd.oasis.opendocument.presentation-template":{source:"iana",extensions:["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{source:"iana",compressible:!1,extensions:["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:"iana",extensions:["ots"]},"application/vnd.oasis.opendocument.text":{source:"iana",compressible:!1,extensions:["odt"]},"application/vnd.oasis.opendocument.text-master":{source:"iana",extensions:["odm"]},"application/vnd.oasis.opendocument.text-template":{source:"iana",extensions:["ott"]},"application/vnd.oasis.opendocument.text-web":{source:"iana",extensions:["oth"]},"application/vnd.obn":{source:"iana"},"application/vnd.ocf+cbor":{source:"iana"},"application/vnd.oci.image.manifest.v1+json":{source:"iana",compressible:!0},"application/vnd.oftn.l10n+json":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessdownload+xml":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessstreaming+xml":{source:"iana",compressible:!0},"application/vnd.oipf.cspg-hexbinary":{source:"iana"},"application/vnd.oipf.dae.svg+xml":{source:"iana",compressible:!0},"application/vnd.oipf.dae.xhtml+xml":{source:"iana",compressible:!0},"application/vnd.oipf.mippvcontrolmessage+xml":{source:"iana",compressible:!0},"application/vnd.oipf.pae.gem":{source:"iana"},"application/vnd.oipf.spdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.oipf.spdlist+xml":{source:"iana",compressible:!0},"application/vnd.oipf.ueprofile+xml":{source:"iana",compressible:!0},"application/vnd.oipf.userprofile+xml":{source:"iana",compressible:!0},"application/vnd.olpc-sugar":{source:"iana",extensions:["xo"]},"application/vnd.oma-scws-config":{source:"iana"},"application/vnd.oma-scws-http-request":{source:"iana"},"application/vnd.oma-scws-http-response":{source:"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.drm-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.imd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.ltkm":{source:"iana"},"application/vnd.oma.bcast.notification+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.provisioningtrigger":{source:"iana"},"application/vnd.oma.bcast.sgboot":{source:"iana"},"application/vnd.oma.bcast.sgdd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sgdu":{source:"iana"},"application/vnd.oma.bcast.simple-symbol-container":{source:"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sprov+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.stkm":{source:"iana"},"application/vnd.oma.cab-address-book+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-feature-handler+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-pcc+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-subs-invite+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-user-prefs+xml":{source:"iana",compressible:!0},"application/vnd.oma.dcd":{source:"iana"},"application/vnd.oma.dcdc":{source:"iana"},"application/vnd.oma.dd2+xml":{source:"iana",compressible:!0,extensions:["dd2"]},"application/vnd.oma.drm.risd+xml":{source:"iana",compressible:!0},"application/vnd.oma.group-usage-list+xml":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+cbor":{source:"iana"},"application/vnd.oma.lwm2m+json":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+tlv":{source:"iana"},"application/vnd.oma.pal+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.detailed-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.final-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.groups+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.invocation-descriptor+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.optimized-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.push":{source:"iana"},"application/vnd.oma.scidm.messages+xml":{source:"iana",compressible:!0},"application/vnd.oma.xcap-directory+xml":{source:"iana",compressible:!0},"application/vnd.omads-email+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-file+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-folder+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omaloc-supl-init":{source:"iana"},"application/vnd.onepager":{source:"iana"},"application/vnd.onepagertamp":{source:"iana"},"application/vnd.onepagertamx":{source:"iana"},"application/vnd.onepagertat":{source:"iana"},"application/vnd.onepagertatp":{source:"iana"},"application/vnd.onepagertatx":{source:"iana"},"application/vnd.openblox.game+xml":{source:"iana",compressible:!0,extensions:["obgx"]},"application/vnd.openblox.game-binary":{source:"iana"},"application/vnd.openeye.oeb":{source:"iana"},"application/vnd.openofficeorg.extension":{source:"apache",extensions:["oxt"]},"application/vnd.openstreetmap.data+xml":{source:"iana",compressible:!0,extensions:["osm"]},"application/vnd.opentimestamps.ots":{source:"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",compressible:!1,extensions:["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:"iana",extensions:["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:"iana",extensions:["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:"iana",extensions:["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",compressible:!1,extensions:["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:"iana",extensions:["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.theme+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",compressible:!1,extensions:["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:"iana",extensions:["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.core-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.relationships+xml":{source:"iana",compressible:!0},"application/vnd.oracle.resource+json":{source:"iana",compressible:!0},"application/vnd.orange.indata":{source:"iana"},"application/vnd.osa.netdeploy":{source:"iana"},"application/vnd.osgeo.mapguide.package":{source:"iana",extensions:["mgp"]},"application/vnd.osgi.bundle":{source:"iana"},"application/vnd.osgi.dp":{source:"iana",extensions:["dp"]},"application/vnd.osgi.subsystem":{source:"iana",extensions:["esa"]},"application/vnd.otps.ct-kip+xml":{source:"iana",compressible:!0},"application/vnd.oxli.countgraph":{source:"iana"},"application/vnd.pagerduty+json":{source:"iana",compressible:!0},"application/vnd.palm":{source:"iana",extensions:["pdb","pqa","oprc"]},"application/vnd.panoply":{source:"iana"},"application/vnd.paos.xml":{source:"iana"},"application/vnd.patentdive":{source:"iana"},"application/vnd.patientecommsdoc":{source:"iana"},"application/vnd.pawaafile":{source:"iana",extensions:["paw"]},"application/vnd.pcos":{source:"iana"},"application/vnd.pg.format":{source:"iana",extensions:["str"]},"application/vnd.pg.osasli":{source:"iana",extensions:["ei6"]},"application/vnd.piaccess.application-licence":{source:"iana"},"application/vnd.picsel":{source:"iana",extensions:["efif"]},"application/vnd.pmi.widget":{source:"iana",extensions:["wg"]},"application/vnd.poc.group-advertisement+xml":{source:"iana",compressible:!0},"application/vnd.pocketlearn":{source:"iana",extensions:["plf"]},"application/vnd.powerbuilder6":{source:"iana",extensions:["pbd"]},"application/vnd.powerbuilder6-s":{source:"iana"},"application/vnd.powerbuilder7":{source:"iana"},"application/vnd.powerbuilder7-s":{source:"iana"},"application/vnd.powerbuilder75":{source:"iana"},"application/vnd.powerbuilder75-s":{source:"iana"},"application/vnd.preminet":{source:"iana"},"application/vnd.previewsystems.box":{source:"iana",extensions:["box"]},"application/vnd.proteus.magazine":{source:"iana",extensions:["mgz"]},"application/vnd.psfs":{source:"iana"},"application/vnd.publishare-delta-tree":{source:"iana",extensions:["qps"]},"application/vnd.pvi.ptid1":{source:"iana",extensions:["ptid"]},"application/vnd.pwg-multiplexed":{source:"iana"},"application/vnd.pwg-xhtml-print+xml":{source:"iana",compressible:!0},"application/vnd.qualcomm.brew-app-res":{source:"iana"},"application/vnd.quarantainenet":{source:"iana"},"application/vnd.quark.quarkxpress":{source:"iana",extensions:["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{source:"iana"},"application/vnd.radisys.moml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conn+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-stream+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-base+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-group+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-speech+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-transform+xml":{source:"iana",compressible:!0},"application/vnd.rainstor.data":{source:"iana"},"application/vnd.rapid":{source:"iana"},"application/vnd.rar":{source:"iana",extensions:["rar"]},"application/vnd.realvnc.bed":{source:"iana",extensions:["bed"]},"application/vnd.recordare.musicxml":{source:"iana",extensions:["mxl"]},"application/vnd.recordare.musicxml+xml":{source:"iana",compressible:!0,extensions:["musicxml"]},"application/vnd.renlearn.rlprint":{source:"iana"},"application/vnd.resilient.logic":{source:"iana"},"application/vnd.restful+json":{source:"iana",compressible:!0},"application/vnd.rig.cryptonote":{source:"iana",extensions:["cryptonote"]},"application/vnd.rim.cod":{source:"apache",extensions:["cod"]},"application/vnd.rn-realmedia":{source:"apache",extensions:["rm"]},"application/vnd.rn-realmedia-vbr":{source:"apache",extensions:["rmvb"]},"application/vnd.route66.link66+xml":{source:"iana",compressible:!0,extensions:["link66"]},"application/vnd.rs-274x":{source:"iana"},"application/vnd.ruckus.download":{source:"iana"},"application/vnd.s3sms":{source:"iana"},"application/vnd.sailingtracker.track":{source:"iana",extensions:["st"]},"application/vnd.sar":{source:"iana"},"application/vnd.sbm.cid":{source:"iana"},"application/vnd.sbm.mid2":{source:"iana"},"application/vnd.scribus":{source:"iana"},"application/vnd.sealed.3df":{source:"iana"},"application/vnd.sealed.csf":{source:"iana"},"application/vnd.sealed.doc":{source:"iana"},"application/vnd.sealed.eml":{source:"iana"},"application/vnd.sealed.mht":{source:"iana"},"application/vnd.sealed.net":{source:"iana"},"application/vnd.sealed.ppt":{source:"iana"},"application/vnd.sealed.tiff":{source:"iana"},"application/vnd.sealed.xls":{source:"iana"},"application/vnd.sealedmedia.softseal.html":{source:"iana"},"application/vnd.sealedmedia.softseal.pdf":{source:"iana"},"application/vnd.seemail":{source:"iana",extensions:["see"]},"application/vnd.seis+json":{source:"iana",compressible:!0},"application/vnd.sema":{source:"iana",extensions:["sema"]},"application/vnd.semd":{source:"iana",extensions:["semd"]},"application/vnd.semf":{source:"iana",extensions:["semf"]},"application/vnd.shade-save-file":{source:"iana"},"application/vnd.shana.informed.formdata":{source:"iana",extensions:["ifm"]},"application/vnd.shana.informed.formtemplate":{source:"iana",extensions:["itp"]},"application/vnd.shana.informed.interchange":{source:"iana",extensions:["iif"]},"application/vnd.shana.informed.package":{source:"iana",extensions:["ipk"]},"application/vnd.shootproof+json":{source:"iana",compressible:!0},"application/vnd.shopkick+json":{source:"iana",compressible:!0},"application/vnd.shp":{source:"iana"},"application/vnd.shx":{source:"iana"},"application/vnd.sigrok.session":{source:"iana"},"application/vnd.simtech-mindmapper":{source:"iana",extensions:["twd","twds"]},"application/vnd.siren+json":{source:"iana",compressible:!0},"application/vnd.smaf":{source:"iana",extensions:["mmf"]},"application/vnd.smart.notebook":{source:"iana"},"application/vnd.smart.teacher":{source:"iana",extensions:["teacher"]},"application/vnd.snesdev-page-table":{source:"iana"},"application/vnd.software602.filler.form+xml":{source:"iana",compressible:!0,extensions:["fo"]},"application/vnd.software602.filler.form-xml-zip":{source:"iana"},"application/vnd.solent.sdkm+xml":{source:"iana",compressible:!0,extensions:["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{source:"iana",extensions:["dxp"]},"application/vnd.spotfire.sfs":{source:"iana",extensions:["sfs"]},"application/vnd.sqlite3":{source:"iana"},"application/vnd.sss-cod":{source:"iana"},"application/vnd.sss-dtf":{source:"iana"},"application/vnd.sss-ntf":{source:"iana"},"application/vnd.stardivision.calc":{source:"apache",extensions:["sdc"]},"application/vnd.stardivision.draw":{source:"apache",extensions:["sda"]},"application/vnd.stardivision.impress":{source:"apache",extensions:["sdd"]},"application/vnd.stardivision.math":{source:"apache",extensions:["smf"]},"application/vnd.stardivision.writer":{source:"apache",extensions:["sdw","vor"]},"application/vnd.stardivision.writer-global":{source:"apache",extensions:["sgl"]},"application/vnd.stepmania.package":{source:"iana",extensions:["smzip"]},"application/vnd.stepmania.stepchart":{source:"iana",extensions:["sm"]},"application/vnd.street-stream":{source:"iana"},"application/vnd.sun.wadl+xml":{source:"iana",compressible:!0,extensions:["wadl"]},"application/vnd.sun.xml.calc":{source:"apache",extensions:["sxc"]},"application/vnd.sun.xml.calc.template":{source:"apache",extensions:["stc"]},"application/vnd.sun.xml.draw":{source:"apache",extensions:["sxd"]},"application/vnd.sun.xml.draw.template":{source:"apache",extensions:["std"]},"application/vnd.sun.xml.impress":{source:"apache",extensions:["sxi"]},"application/vnd.sun.xml.impress.template":{source:"apache",extensions:["sti"]},"application/vnd.sun.xml.math":{source:"apache",extensions:["sxm"]},"application/vnd.sun.xml.writer":{source:"apache",extensions:["sxw"]},"application/vnd.sun.xml.writer.global":{source:"apache",extensions:["sxg"]},"application/vnd.sun.xml.writer.template":{source:"apache",extensions:["stw"]},"application/vnd.sus-calendar":{source:"iana",extensions:["sus","susp"]},"application/vnd.svd":{source:"iana",extensions:["svd"]},"application/vnd.swiftview-ics":{source:"iana"},"application/vnd.sycle+xml":{source:"iana",compressible:!0},"application/vnd.syft+json":{source:"iana",compressible:!0},"application/vnd.symbian.install":{source:"apache",extensions:["sis","sisx"]},"application/vnd.syncml+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xsm"]},"application/vnd.syncml.dm+wbxml":{source:"iana",charset:"UTF-8",extensions:["bdm"]},"application/vnd.syncml.dm+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xdm"]},"application/vnd.syncml.dm.notification":{source:"iana"},"application/vnd.syncml.dmddf+wbxml":{source:"iana"},"application/vnd.syncml.dmddf+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{source:"iana"},"application/vnd.syncml.dmtnds+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.syncml.ds.notification":{source:"iana"},"application/vnd.tableschema+json":{source:"iana",compressible:!0},"application/vnd.tao.intent-module-archive":{source:"iana",extensions:["tao"]},"application/vnd.tcpdump.pcap":{source:"iana",extensions:["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{source:"iana",compressible:!0},"application/vnd.tmd.mediaflex.api+xml":{source:"iana",compressible:!0},"application/vnd.tml":{source:"iana"},"application/vnd.tmobile-livetv":{source:"iana",extensions:["tmo"]},"application/vnd.tri.onesource":{source:"iana"},"application/vnd.trid.tpt":{source:"iana",extensions:["tpt"]},"application/vnd.triscape.mxs":{source:"iana",extensions:["mxs"]},"application/vnd.trueapp":{source:"iana",extensions:["tra"]},"application/vnd.truedoc":{source:"iana"},"application/vnd.ubisoft.webplayer":{source:"iana"},"application/vnd.ufdl":{source:"iana",extensions:["ufd","ufdl"]},"application/vnd.uiq.theme":{source:"iana",extensions:["utz"]},"application/vnd.umajin":{source:"iana",extensions:["umj"]},"application/vnd.unity":{source:"iana",extensions:["unityweb"]},"application/vnd.uoml+xml":{source:"iana",compressible:!0,extensions:["uoml"]},"application/vnd.uplanet.alert":{source:"iana"},"application/vnd.uplanet.alert-wbxml":{source:"iana"},"application/vnd.uplanet.bearer-choice":{source:"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{source:"iana"},"application/vnd.uplanet.cacheop":{source:"iana"},"application/vnd.uplanet.cacheop-wbxml":{source:"iana"},"application/vnd.uplanet.channel":{source:"iana"},"application/vnd.uplanet.channel-wbxml":{source:"iana"},"application/vnd.uplanet.list":{source:"iana"},"application/vnd.uplanet.list-wbxml":{source:"iana"},"application/vnd.uplanet.listcmd":{source:"iana"},"application/vnd.uplanet.listcmd-wbxml":{source:"iana"},"application/vnd.uplanet.signal":{source:"iana"},"application/vnd.uri-map":{source:"iana"},"application/vnd.valve.source.material":{source:"iana"},"application/vnd.vcx":{source:"iana",extensions:["vcx"]},"application/vnd.vd-study":{source:"iana"},"application/vnd.vectorworks":{source:"iana"},"application/vnd.vel+json":{source:"iana",compressible:!0},"application/vnd.verimatrix.vcas":{source:"iana"},"application/vnd.veritone.aion+json":{source:"iana",compressible:!0},"application/vnd.veryant.thin":{source:"iana"},"application/vnd.ves.encrypted":{source:"iana"},"application/vnd.vidsoft.vidconference":{source:"iana"},"application/vnd.visio":{source:"iana",extensions:["vsd","vst","vss","vsw"]},"application/vnd.visionary":{source:"iana",extensions:["vis"]},"application/vnd.vividence.scriptfile":{source:"iana"},"application/vnd.vsf":{source:"iana",extensions:["vsf"]},"application/vnd.wap.sic":{source:"iana"},"application/vnd.wap.slc":{source:"iana"},"application/vnd.wap.wbxml":{source:"iana",charset:"UTF-8",extensions:["wbxml"]},"application/vnd.wap.wmlc":{source:"iana",extensions:["wmlc"]},"application/vnd.wap.wmlscriptc":{source:"iana",extensions:["wmlsc"]},"application/vnd.webturbo":{source:"iana",extensions:["wtb"]},"application/vnd.wfa.dpp":{source:"iana"},"application/vnd.wfa.p2p":{source:"iana"},"application/vnd.wfa.wsc":{source:"iana"},"application/vnd.windows.devicepairing":{source:"iana"},"application/vnd.wmc":{source:"iana"},"application/vnd.wmf.bootstrap":{source:"iana"},"application/vnd.wolfram.mathematica":{source:"iana"},"application/vnd.wolfram.mathematica.package":{source:"iana"},"application/vnd.wolfram.player":{source:"iana",extensions:["nbp"]},"application/vnd.wordperfect":{source:"iana",extensions:["wpd"]},"application/vnd.wqd":{source:"iana",extensions:["wqd"]},"application/vnd.wrq-hp3000-labelled":{source:"iana"},"application/vnd.wt.stf":{source:"iana",extensions:["stf"]},"application/vnd.wv.csp+wbxml":{source:"iana"},"application/vnd.wv.csp+xml":{source:"iana",compressible:!0},"application/vnd.wv.ssp+xml":{source:"iana",compressible:!0},"application/vnd.xacml+json":{source:"iana",compressible:!0},"application/vnd.xara":{source:"iana",extensions:["xar"]},"application/vnd.xfdl":{source:"iana",extensions:["xfdl"]},"application/vnd.xfdl.webform":{source:"iana"},"application/vnd.xmi+xml":{source:"iana",compressible:!0},"application/vnd.xmpie.cpkg":{source:"iana"},"application/vnd.xmpie.dpkg":{source:"iana"},"application/vnd.xmpie.plan":{source:"iana"},"application/vnd.xmpie.ppkg":{source:"iana"},"application/vnd.xmpie.xlim":{source:"iana"},"application/vnd.yamaha.hv-dic":{source:"iana",extensions:["hvd"]},"application/vnd.yamaha.hv-script":{source:"iana",extensions:["hvs"]},"application/vnd.yamaha.hv-voice":{source:"iana",extensions:["hvp"]},"application/vnd.yamaha.openscoreformat":{source:"iana",extensions:["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{source:"iana",compressible:!0,extensions:["osfpvg"]},"application/vnd.yamaha.remote-setup":{source:"iana"},"application/vnd.yamaha.smaf-audio":{source:"iana",extensions:["saf"]},"application/vnd.yamaha.smaf-phrase":{source:"iana",extensions:["spf"]},"application/vnd.yamaha.through-ngn":{source:"iana"},"application/vnd.yamaha.tunnel-udpencap":{source:"iana"},"application/vnd.yaoweme":{source:"iana"},"application/vnd.yellowriver-custom-menu":{source:"iana",extensions:["cmp"]},"application/vnd.youtube.yt":{source:"iana"},"application/vnd.zul":{source:"iana",extensions:["zir","zirz"]},"application/vnd.zzazz.deck+xml":{source:"iana",compressible:!0,extensions:["zaz"]},"application/voicexml+xml":{source:"iana",compressible:!0,extensions:["vxml"]},"application/voucher-cms+json":{source:"iana",compressible:!0},"application/vq-rtcpxr":{source:"iana"},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"application/watcherinfo+xml":{source:"iana",compressible:!0,extensions:["wif"]},"application/webpush-options+json":{source:"iana",compressible:!0},"application/whoispp-query":{source:"iana"},"application/whoispp-response":{source:"iana"},"application/widget":{source:"iana",extensions:["wgt"]},"application/winhlp":{source:"apache",extensions:["hlp"]},"application/wita":{source:"iana"},"application/wordperfect5.1":{source:"iana"},"application/wsdl+xml":{source:"iana",compressible:!0,extensions:["wsdl"]},"application/wspolicy+xml":{source:"iana",compressible:!0,extensions:["wspolicy"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/x-abiword":{source:"apache",extensions:["abw"]},"application/x-ace-compressed":{source:"apache",extensions:["ace"]},"application/x-amf":{source:"apache"},"application/x-apple-diskimage":{source:"apache",extensions:["dmg"]},"application/x-arj":{compressible:!1,extensions:["arj"]},"application/x-authorware-bin":{source:"apache",extensions:["aab","x32","u32","vox"]},"application/x-authorware-map":{source:"apache",extensions:["aam"]},"application/x-authorware-seg":{source:"apache",extensions:["aas"]},"application/x-bcpio":{source:"apache",extensions:["bcpio"]},"application/x-bdoc":{compressible:!1,extensions:["bdoc"]},"application/x-bittorrent":{source:"apache",extensions:["torrent"]},"application/x-blorb":{source:"apache",extensions:["blb","blorb"]},"application/x-bzip":{source:"apache",compressible:!1,extensions:["bz"]},"application/x-bzip2":{source:"apache",compressible:!1,extensions:["bz2","boz"]},"application/x-cbr":{source:"apache",extensions:["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{source:"apache",extensions:["vcd"]},"application/x-cfs-compressed":{source:"apache",extensions:["cfs"]},"application/x-chat":{source:"apache",extensions:["chat"]},"application/x-chess-pgn":{source:"apache",extensions:["pgn"]},"application/x-chrome-extension":{extensions:["crx"]},"application/x-cocoa":{source:"nginx",extensions:["cco"]},"application/x-compress":{source:"apache"},"application/x-conference":{source:"apache",extensions:["nsc"]},"application/x-cpio":{source:"apache",extensions:["cpio"]},"application/x-csh":{source:"apache",extensions:["csh"]},"application/x-deb":{compressible:!1},"application/x-debian-package":{source:"apache",extensions:["deb","udeb"]},"application/x-dgc-compressed":{source:"apache",extensions:["dgc"]},"application/x-director":{source:"apache",extensions:["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{source:"apache",extensions:["wad"]},"application/x-dtbncx+xml":{source:"apache",compressible:!0,extensions:["ncx"]},"application/x-dtbook+xml":{source:"apache",compressible:!0,extensions:["dtb"]},"application/x-dtbresource+xml":{source:"apache",compressible:!0,extensions:["res"]},"application/x-dvi":{source:"apache",compressible:!1,extensions:["dvi"]},"application/x-envoy":{source:"apache",extensions:["evy"]},"application/x-eva":{source:"apache",extensions:["eva"]},"application/x-font-bdf":{source:"apache",extensions:["bdf"]},"application/x-font-dos":{source:"apache"},"application/x-font-framemaker":{source:"apache"},"application/x-font-ghostscript":{source:"apache",extensions:["gsf"]},"application/x-font-libgrx":{source:"apache"},"application/x-font-linux-psf":{source:"apache",extensions:["psf"]},"application/x-font-pcf":{source:"apache",extensions:["pcf"]},"application/x-font-snf":{source:"apache",extensions:["snf"]},"application/x-font-speedo":{source:"apache"},"application/x-font-sunos-news":{source:"apache"},"application/x-font-type1":{source:"apache",extensions:["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{source:"apache"},"application/x-freearc":{source:"apache",extensions:["arc"]},"application/x-futuresplash":{source:"apache",extensions:["spl"]},"application/x-gca-compressed":{source:"apache",extensions:["gca"]},"application/x-glulx":{source:"apache",extensions:["ulx"]},"application/x-gnumeric":{source:"apache",extensions:["gnumeric"]},"application/x-gramps-xml":{source:"apache",extensions:["gramps"]},"application/x-gtar":{source:"apache",extensions:["gtar"]},"application/x-gzip":{source:"apache"},"application/x-hdf":{source:"apache",extensions:["hdf"]},"application/x-httpd-php":{compressible:!0,extensions:["php"]},"application/x-install-instructions":{source:"apache",extensions:["install"]},"application/x-iso9660-image":{source:"apache",extensions:["iso"]},"application/x-iwork-keynote-sffkey":{extensions:["key"]},"application/x-iwork-numbers-sffnumbers":{extensions:["numbers"]},"application/x-iwork-pages-sffpages":{extensions:["pages"]},"application/x-java-archive-diff":{source:"nginx",extensions:["jardiff"]},"application/x-java-jnlp-file":{source:"apache",compressible:!1,extensions:["jnlp"]},"application/x-javascript":{compressible:!0},"application/x-keepass2":{extensions:["kdbx"]},"application/x-latex":{source:"apache",compressible:!1,extensions:["latex"]},"application/x-lua-bytecode":{extensions:["luac"]},"application/x-lzh-compressed":{source:"apache",extensions:["lzh","lha"]},"application/x-makeself":{source:"nginx",extensions:["run"]},"application/x-mie":{source:"apache",extensions:["mie"]},"application/x-mobipocket-ebook":{source:"apache",extensions:["prc","mobi"]},"application/x-mpegurl":{compressible:!1},"application/x-ms-application":{source:"apache",extensions:["application"]},"application/x-ms-shortcut":{source:"apache",extensions:["lnk"]},"application/x-ms-wmd":{source:"apache",extensions:["wmd"]},"application/x-ms-wmz":{source:"apache",extensions:["wmz"]},"application/x-ms-xbap":{source:"apache",extensions:["xbap"]},"application/x-msaccess":{source:"apache",extensions:["mdb"]},"application/x-msbinder":{source:"apache",extensions:["obd"]},"application/x-mscardfile":{source:"apache",extensions:["crd"]},"application/x-msclip":{source:"apache",extensions:["clp"]},"application/x-msdos-program":{extensions:["exe"]},"application/x-msdownload":{source:"apache",extensions:["exe","dll","com","bat","msi"]},"application/x-msmediaview":{source:"apache",extensions:["mvb","m13","m14"]},"application/x-msmetafile":{source:"apache",extensions:["wmf","wmz","emf","emz"]},"application/x-msmoney":{source:"apache",extensions:["mny"]},"application/x-mspublisher":{source:"apache",extensions:["pub"]},"application/x-msschedule":{source:"apache",extensions:["scd"]},"application/x-msterminal":{source:"apache",extensions:["trm"]},"application/x-mswrite":{source:"apache",extensions:["wri"]},"application/x-netcdf":{source:"apache",extensions:["nc","cdf"]},"application/x-ns-proxy-autoconfig":{compressible:!0,extensions:["pac"]},"application/x-nzb":{source:"apache",extensions:["nzb"]},"application/x-perl":{source:"nginx",extensions:["pl","pm"]},"application/x-pilot":{source:"nginx",extensions:["prc","pdb"]},"application/x-pkcs12":{source:"apache",compressible:!1,extensions:["p12","pfx"]},"application/x-pkcs7-certificates":{source:"apache",extensions:["p7b","spc"]},"application/x-pkcs7-certreqresp":{source:"apache",extensions:["p7r"]},"application/x-pki-message":{source:"iana"},"application/x-rar-compressed":{source:"apache",compressible:!1,extensions:["rar"]},"application/x-redhat-package-manager":{source:"nginx",extensions:["rpm"]},"application/x-research-info-systems":{source:"apache",extensions:["ris"]},"application/x-sea":{source:"nginx",extensions:["sea"]},"application/x-sh":{source:"apache",compressible:!0,extensions:["sh"]},"application/x-shar":{source:"apache",extensions:["shar"]},"application/x-shockwave-flash":{source:"apache",compressible:!1,extensions:["swf"]},"application/x-silverlight-app":{source:"apache",extensions:["xap"]},"application/x-sql":{source:"apache",extensions:["sql"]},"application/x-stuffit":{source:"apache",compressible:!1,extensions:["sit"]},"application/x-stuffitx":{source:"apache",extensions:["sitx"]},"application/x-subrip":{source:"apache",extensions:["srt"]},"application/x-sv4cpio":{source:"apache",extensions:["sv4cpio"]},"application/x-sv4crc":{source:"apache",extensions:["sv4crc"]},"application/x-t3vm-image":{source:"apache",extensions:["t3"]},"application/x-tads":{source:"apache",extensions:["gam"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-tcl":{source:"apache",extensions:["tcl","tk"]},"application/x-tex":{source:"apache",extensions:["tex"]},"application/x-tex-tfm":{source:"apache",extensions:["tfm"]},"application/x-texinfo":{source:"apache",extensions:["texinfo","texi"]},"application/x-tgif":{source:"apache",extensions:["obj"]},"application/x-ustar":{source:"apache",extensions:["ustar"]},"application/x-virtualbox-hdd":{compressible:!0,extensions:["hdd"]},"application/x-virtualbox-ova":{compressible:!0,extensions:["ova"]},"application/x-virtualbox-ovf":{compressible:!0,extensions:["ovf"]},"application/x-virtualbox-vbox":{compressible:!0,extensions:["vbox"]},"application/x-virtualbox-vbox-extpack":{compressible:!1,extensions:["vbox-extpack"]},"application/x-virtualbox-vdi":{compressible:!0,extensions:["vdi"]},"application/x-virtualbox-vhd":{compressible:!0,extensions:["vhd"]},"application/x-virtualbox-vmdk":{compressible:!0,extensions:["vmdk"]},"application/x-wais-source":{source:"apache",extensions:["src"]},"application/x-web-app-manifest+json":{compressible:!0,extensions:["webapp"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"application/x-x509-ca-cert":{source:"iana",extensions:["der","crt","pem"]},"application/x-x509-ca-ra-cert":{source:"iana"},"application/x-x509-next-ca-cert":{source:"iana"},"application/x-xfig":{source:"apache",extensions:["fig"]},"application/x-xliff+xml":{source:"apache",compressible:!0,extensions:["xlf"]},"application/x-xpinstall":{source:"apache",compressible:!1,extensions:["xpi"]},"application/x-xz":{source:"apache",extensions:["xz"]},"application/x-zmachine":{source:"apache",extensions:["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{source:"iana"},"application/xacml+xml":{source:"iana",compressible:!0},"application/xaml+xml":{source:"apache",compressible:!0,extensions:["xaml"]},"application/xcap-att+xml":{source:"iana",compressible:!0,extensions:["xav"]},"application/xcap-caps+xml":{source:"iana",compressible:!0,extensions:["xca"]},"application/xcap-diff+xml":{source:"iana",compressible:!0,extensions:["xdf"]},"application/xcap-el+xml":{source:"iana",compressible:!0,extensions:["xel"]},"application/xcap-error+xml":{source:"iana",compressible:!0},"application/xcap-ns+xml":{source:"iana",compressible:!0,extensions:["xns"]},"application/xcon-conference-info+xml":{source:"iana",compressible:!0},"application/xcon-conference-info-diff+xml":{source:"iana",compressible:!0},"application/xenc+xml":{source:"iana",compressible:!0,extensions:["xenc"]},"application/xhtml+xml":{source:"iana",compressible:!0,extensions:["xhtml","xht"]},"application/xhtml-voice+xml":{source:"apache",compressible:!0},"application/xliff+xml":{source:"iana",compressible:!0,extensions:["xlf"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml","xsl","xsd","rng"]},"application/xml-dtd":{source:"iana",compressible:!0,extensions:["dtd"]},"application/xml-external-parsed-entity":{source:"iana"},"application/xml-patch+xml":{source:"iana",compressible:!0},"application/xmpp+xml":{source:"iana",compressible:!0},"application/xop+xml":{source:"iana",compressible:!0,extensions:["xop"]},"application/xproc+xml":{source:"apache",compressible:!0,extensions:["xpl"]},"application/xslt+xml":{source:"iana",compressible:!0,extensions:["xsl","xslt"]},"application/xspf+xml":{source:"apache",compressible:!0,extensions:["xspf"]},"application/xv+xml":{source:"iana",compressible:!0,extensions:["mxml","xhvml","xvml","xvm"]},"application/yang":{source:"iana",extensions:["yang"]},"application/yang-data+json":{source:"iana",compressible:!0},"application/yang-data+xml":{source:"iana",compressible:!0},"application/yang-patch+json":{source:"iana",compressible:!0},"application/yang-patch+xml":{source:"iana",compressible:!0},"application/yin+xml":{source:"iana",compressible:!0,extensions:["yin"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/zlib":{source:"iana"},"application/zstd":{source:"iana"},"audio/1d-interleaved-parityfec":{source:"iana"},"audio/32kadpcm":{source:"iana"},"audio/3gpp":{source:"iana",compressible:!1,extensions:["3gpp"]},"audio/3gpp2":{source:"iana"},"audio/aac":{source:"iana"},"audio/ac3":{source:"iana"},"audio/adpcm":{source:"apache",extensions:["adp"]},"audio/amr":{source:"iana",extensions:["amr"]},"audio/amr-wb":{source:"iana"},"audio/amr-wb+":{source:"iana"},"audio/aptx":{source:"iana"},"audio/asc":{source:"iana"},"audio/atrac-advanced-lossless":{source:"iana"},"audio/atrac-x":{source:"iana"},"audio/atrac3":{source:"iana"},"audio/basic":{source:"iana",compressible:!1,extensions:["au","snd"]},"audio/bv16":{source:"iana"},"audio/bv32":{source:"iana"},"audio/clearmode":{source:"iana"},"audio/cn":{source:"iana"},"audio/dat12":{source:"iana"},"audio/dls":{source:"iana"},"audio/dsr-es201108":{source:"iana"},"audio/dsr-es202050":{source:"iana"},"audio/dsr-es202211":{source:"iana"},"audio/dsr-es202212":{source:"iana"},"audio/dv":{source:"iana"},"audio/dvi4":{source:"iana"},"audio/eac3":{source:"iana"},"audio/encaprtp":{source:"iana"},"audio/evrc":{source:"iana"},"audio/evrc-qcp":{source:"iana"},"audio/evrc0":{source:"iana"},"audio/evrc1":{source:"iana"},"audio/evrcb":{source:"iana"},"audio/evrcb0":{source:"iana"},"audio/evrcb1":{source:"iana"},"audio/evrcnw":{source:"iana"},"audio/evrcnw0":{source:"iana"},"audio/evrcnw1":{source:"iana"},"audio/evrcwb":{source:"iana"},"audio/evrcwb0":{source:"iana"},"audio/evrcwb1":{source:"iana"},"audio/evs":{source:"iana"},"audio/flexfec":{source:"iana"},"audio/fwdred":{source:"iana"},"audio/g711-0":{source:"iana"},"audio/g719":{source:"iana"},"audio/g722":{source:"iana"},"audio/g7221":{source:"iana"},"audio/g723":{source:"iana"},"audio/g726-16":{source:"iana"},"audio/g726-24":{source:"iana"},"audio/g726-32":{source:"iana"},"audio/g726-40":{source:"iana"},"audio/g728":{source:"iana"},"audio/g729":{source:"iana"},"audio/g7291":{source:"iana"},"audio/g729d":{source:"iana"},"audio/g729e":{source:"iana"},"audio/gsm":{source:"iana"},"audio/gsm-efr":{source:"iana"},"audio/gsm-hr-08":{source:"iana"},"audio/ilbc":{source:"iana"},"audio/ip-mr_v2.5":{source:"iana"},"audio/isac":{source:"apache"},"audio/l16":{source:"iana"},"audio/l20":{source:"iana"},"audio/l24":{source:"iana",compressible:!1},"audio/l8":{source:"iana"},"audio/lpc":{source:"iana"},"audio/melp":{source:"iana"},"audio/melp1200":{source:"iana"},"audio/melp2400":{source:"iana"},"audio/melp600":{source:"iana"},"audio/mhas":{source:"iana"},"audio/midi":{source:"apache",extensions:["mid","midi","kar","rmi"]},"audio/mobile-xmf":{source:"iana",extensions:["mxmf"]},"audio/mp3":{compressible:!1,extensions:["mp3"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a","mp4a"]},"audio/mp4a-latm":{source:"iana"},"audio/mpa":{source:"iana"},"audio/mpa-robust":{source:"iana"},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{source:"iana"},"audio/musepack":{source:"apache"},"audio/ogg":{source:"iana",compressible:!1,extensions:["oga","ogg","spx","opus"]},"audio/opus":{source:"iana"},"audio/parityfec":{source:"iana"},"audio/pcma":{source:"iana"},"audio/pcma-wb":{source:"iana"},"audio/pcmu":{source:"iana"},"audio/pcmu-wb":{source:"iana"},"audio/prs.sid":{source:"iana"},"audio/qcelp":{source:"iana"},"audio/raptorfec":{source:"iana"},"audio/red":{source:"iana"},"audio/rtp-enc-aescm128":{source:"iana"},"audio/rtp-midi":{source:"iana"},"audio/rtploopback":{source:"iana"},"audio/rtx":{source:"iana"},"audio/s3m":{source:"apache",extensions:["s3m"]},"audio/scip":{source:"iana"},"audio/silk":{source:"apache",extensions:["sil"]},"audio/smv":{source:"iana"},"audio/smv-qcp":{source:"iana"},"audio/smv0":{source:"iana"},"audio/sofa":{source:"iana"},"audio/sp-midi":{source:"iana"},"audio/speex":{source:"iana"},"audio/t140c":{source:"iana"},"audio/t38":{source:"iana"},"audio/telephone-event":{source:"iana"},"audio/tetra_acelp":{source:"iana"},"audio/tetra_acelp_bb":{source:"iana"},"audio/tone":{source:"iana"},"audio/tsvcis":{source:"iana"},"audio/uemclip":{source:"iana"},"audio/ulpfec":{source:"iana"},"audio/usac":{source:"iana"},"audio/vdvi":{source:"iana"},"audio/vmr-wb":{source:"iana"},"audio/vnd.3gpp.iufp":{source:"iana"},"audio/vnd.4sb":{source:"iana"},"audio/vnd.audiokoz":{source:"iana"},"audio/vnd.celp":{source:"iana"},"audio/vnd.cisco.nse":{source:"iana"},"audio/vnd.cmles.radio-events":{source:"iana"},"audio/vnd.cns.anp1":{source:"iana"},"audio/vnd.cns.inf1":{source:"iana"},"audio/vnd.dece.audio":{source:"iana",extensions:["uva","uvva"]},"audio/vnd.digital-winds":{source:"iana",extensions:["eol"]},"audio/vnd.dlna.adts":{source:"iana"},"audio/vnd.dolby.heaac.1":{source:"iana"},"audio/vnd.dolby.heaac.2":{source:"iana"},"audio/vnd.dolby.mlp":{source:"iana"},"audio/vnd.dolby.mps":{source:"iana"},"audio/vnd.dolby.pl2":{source:"iana"},"audio/vnd.dolby.pl2x":{source:"iana"},"audio/vnd.dolby.pl2z":{source:"iana"},"audio/vnd.dolby.pulse.1":{source:"iana"},"audio/vnd.dra":{source:"iana",extensions:["dra"]},"audio/vnd.dts":{source:"iana",extensions:["dts"]},"audio/vnd.dts.hd":{source:"iana",extensions:["dtshd"]},"audio/vnd.dts.uhd":{source:"iana"},"audio/vnd.dvb.file":{source:"iana"},"audio/vnd.everad.plj":{source:"iana"},"audio/vnd.hns.audio":{source:"iana"},"audio/vnd.lucent.voice":{source:"iana",extensions:["lvp"]},"audio/vnd.ms-playready.media.pya":{source:"iana",extensions:["pya"]},"audio/vnd.nokia.mobile-xmf":{source:"iana"},"audio/vnd.nortel.vbk":{source:"iana"},"audio/vnd.nuera.ecelp4800":{source:"iana",extensions:["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{source:"iana",extensions:["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{source:"iana",extensions:["ecelp9600"]},"audio/vnd.octel.sbc":{source:"iana"},"audio/vnd.presonus.multitrack":{source:"iana"},"audio/vnd.qcelp":{source:"iana"},"audio/vnd.rhetorex.32kadpcm":{source:"iana"},"audio/vnd.rip":{source:"iana",extensions:["rip"]},"audio/vnd.rn-realaudio":{compressible:!1},"audio/vnd.sealedmedia.softseal.mpeg":{source:"iana"},"audio/vnd.vmx.cvsd":{source:"iana"},"audio/vnd.wave":{compressible:!1},"audio/vorbis":{source:"iana",compressible:!1},"audio/vorbis-config":{source:"iana"},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/wave":{compressible:!1,extensions:["wav"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/x-aac":{source:"apache",compressible:!1,extensions:["aac"]},"audio/x-aiff":{source:"apache",extensions:["aif","aiff","aifc"]},"audio/x-caf":{source:"apache",compressible:!1,extensions:["caf"]},"audio/x-flac":{source:"apache",extensions:["flac"]},"audio/x-m4a":{source:"nginx",extensions:["m4a"]},"audio/x-matroska":{source:"apache",extensions:["mka"]},"audio/x-mpegurl":{source:"apache",extensions:["m3u"]},"audio/x-ms-wax":{source:"apache",extensions:["wax"]},"audio/x-ms-wma":{source:"apache",extensions:["wma"]},"audio/x-pn-realaudio":{source:"apache",extensions:["ram","ra"]},"audio/x-pn-realaudio-plugin":{source:"apache",extensions:["rmp"]},"audio/x-realaudio":{source:"nginx",extensions:["ra"]},"audio/x-tta":{source:"apache"},"audio/x-wav":{source:"apache",extensions:["wav"]},"audio/xm":{source:"apache",extensions:["xm"]},"chemical/x-cdx":{source:"apache",extensions:["cdx"]},"chemical/x-cif":{source:"apache",extensions:["cif"]},"chemical/x-cmdf":{source:"apache",extensions:["cmdf"]},"chemical/x-cml":{source:"apache",extensions:["cml"]},"chemical/x-csml":{source:"apache",extensions:["csml"]},"chemical/x-pdb":{source:"apache"},"chemical/x-xyz":{source:"apache",extensions:["xyz"]},"font/collection":{source:"iana",extensions:["ttc"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"font/sfnt":{source:"iana"},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/woff":{source:"iana",extensions:["woff"]},"font/woff2":{source:"iana",extensions:["woff2"]},"image/aces":{source:"iana",extensions:["exr"]},"image/apng":{compressible:!1,extensions:["apng"]},"image/avci":{source:"iana",extensions:["avci"]},"image/avcs":{source:"iana",extensions:["avcs"]},"image/avif":{source:"iana",compressible:!1,extensions:["avif"]},"image/bmp":{source:"iana",compressible:!0,extensions:["bmp"]},"image/cgm":{source:"iana",extensions:["cgm"]},"image/dicom-rle":{source:"iana",extensions:["drle"]},"image/emf":{source:"iana",extensions:["emf"]},"image/fits":{source:"iana",extensions:["fits"]},"image/g3fax":{source:"iana",extensions:["g3"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/heic":{source:"iana",extensions:["heic"]},"image/heic-sequence":{source:"iana",extensions:["heics"]},"image/heif":{source:"iana",extensions:["heif"]},"image/heif-sequence":{source:"iana",extensions:["heifs"]},"image/hej2k":{source:"iana",extensions:["hej2"]},"image/hsj2":{source:"iana",extensions:["hsj2"]},"image/ief":{source:"iana",extensions:["ief"]},"image/jls":{source:"iana",extensions:["jls"]},"image/jp2":{source:"iana",compressible:!1,extensions:["jp2","jpg2"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/jph":{source:"iana",extensions:["jph"]},"image/jphc":{source:"iana",extensions:["jhc"]},"image/jpm":{source:"iana",compressible:!1,extensions:["jpm"]},"image/jpx":{source:"iana",compressible:!1,extensions:["jpx","jpf"]},"image/jxr":{source:"iana",extensions:["jxr"]},"image/jxra":{source:"iana",extensions:["jxra"]},"image/jxrs":{source:"iana",extensions:["jxrs"]},"image/jxs":{source:"iana",extensions:["jxs"]},"image/jxsc":{source:"iana",extensions:["jxsc"]},"image/jxsi":{source:"iana",extensions:["jxsi"]},"image/jxss":{source:"iana",extensions:["jxss"]},"image/ktx":{source:"iana",extensions:["ktx"]},"image/ktx2":{source:"iana",extensions:["ktx2"]},"image/naplps":{source:"iana"},"image/pjpeg":{compressible:!1},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/prs.btif":{source:"iana",extensions:["btif"]},"image/prs.pti":{source:"iana",extensions:["pti"]},"image/pwg-raster":{source:"iana"},"image/sgi":{source:"apache",extensions:["sgi"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/t38":{source:"iana",extensions:["t38"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tif","tiff"]},"image/tiff-fx":{source:"iana",extensions:["tfx"]},"image/vnd.adobe.photoshop":{source:"iana",compressible:!0,extensions:["psd"]},"image/vnd.airzip.accelerator.azv":{source:"iana",extensions:["azv"]},"image/vnd.cns.inf2":{source:"iana"},"image/vnd.dece.graphic":{source:"iana",extensions:["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{source:"iana",extensions:["djvu","djv"]},"image/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"image/vnd.dwg":{source:"iana",extensions:["dwg"]},"image/vnd.dxf":{source:"iana",extensions:["dxf"]},"image/vnd.fastbidsheet":{source:"iana",extensions:["fbs"]},"image/vnd.fpx":{source:"iana",extensions:["fpx"]},"image/vnd.fst":{source:"iana",extensions:["fst"]},"image/vnd.fujixerox.edmics-mmr":{source:"iana",extensions:["mmr"]},"image/vnd.fujixerox.edmics-rlc":{source:"iana",extensions:["rlc"]},"image/vnd.globalgraphics.pgb":{source:"iana"},"image/vnd.microsoft.icon":{source:"iana",compressible:!0,extensions:["ico"]},"image/vnd.mix":{source:"iana"},"image/vnd.mozilla.apng":{source:"iana"},"image/vnd.ms-dds":{compressible:!0,extensions:["dds"]},"image/vnd.ms-modi":{source:"iana",extensions:["mdi"]},"image/vnd.ms-photo":{source:"apache",extensions:["wdp"]},"image/vnd.net-fpx":{source:"iana",extensions:["npx"]},"image/vnd.pco.b16":{source:"iana",extensions:["b16"]},"image/vnd.radiance":{source:"iana"},"image/vnd.sealed.png":{source:"iana"},"image/vnd.sealedmedia.softseal.gif":{source:"iana"},"image/vnd.sealedmedia.softseal.jpg":{source:"iana"},"image/vnd.svf":{source:"iana"},"image/vnd.tencent.tap":{source:"iana",extensions:["tap"]},"image/vnd.valve.source.texture":{source:"iana",extensions:["vtf"]},"image/vnd.wap.wbmp":{source:"iana",extensions:["wbmp"]},"image/vnd.xiff":{source:"iana",extensions:["xif"]},"image/vnd.zbrush.pcx":{source:"iana",extensions:["pcx"]},"image/webp":{source:"apache",extensions:["webp"]},"image/wmf":{source:"iana",extensions:["wmf"]},"image/x-3ds":{source:"apache",extensions:["3ds"]},"image/x-cmu-raster":{source:"apache",extensions:["ras"]},"image/x-cmx":{source:"apache",extensions:["cmx"]},"image/x-freehand":{source:"apache",extensions:["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/x-jng":{source:"nginx",extensions:["jng"]},"image/x-mrsid-image":{source:"apache",extensions:["sid"]},"image/x-ms-bmp":{source:"nginx",compressible:!0,extensions:["bmp"]},"image/x-pcx":{source:"apache",extensions:["pcx"]},"image/x-pict":{source:"apache",extensions:["pic","pct"]},"image/x-portable-anymap":{source:"apache",extensions:["pnm"]},"image/x-portable-bitmap":{source:"apache",extensions:["pbm"]},"image/x-portable-graymap":{source:"apache",extensions:["pgm"]},"image/x-portable-pixmap":{source:"apache",extensions:["ppm"]},"image/x-rgb":{source:"apache",extensions:["rgb"]},"image/x-tga":{source:"apache",extensions:["tga"]},"image/x-xbitmap":{source:"apache",extensions:["xbm"]},"image/x-xcf":{compressible:!1},"image/x-xpixmap":{source:"apache",extensions:["xpm"]},"image/x-xwindowdump":{source:"apache",extensions:["xwd"]},"message/cpim":{source:"iana"},"message/delivery-status":{source:"iana"},"message/disposition-notification":{source:"iana",extensions:["disposition-notification"]},"message/external-body":{source:"iana"},"message/feedback-report":{source:"iana"},"message/global":{source:"iana",extensions:["u8msg"]},"message/global-delivery-status":{source:"iana",extensions:["u8dsn"]},"message/global-disposition-notification":{source:"iana",extensions:["u8mdn"]},"message/global-headers":{source:"iana",extensions:["u8hdr"]},"message/http":{source:"iana",compressible:!1},"message/imdn+xml":{source:"iana",compressible:!0},"message/news":{source:"iana"},"message/partial":{source:"iana",compressible:!1},"message/rfc822":{source:"iana",compressible:!0,extensions:["eml","mime"]},"message/s-http":{source:"iana"},"message/sip":{source:"iana"},"message/sipfrag":{source:"iana"},"message/tracking-status":{source:"iana"},"message/vnd.si.simp":{source:"iana"},"message/vnd.wfa.wsc":{source:"iana",extensions:["wsc"]},"model/3mf":{source:"iana",extensions:["3mf"]},"model/e57":{source:"iana"},"model/gltf+json":{source:"iana",compressible:!0,extensions:["gltf"]},"model/gltf-binary":{source:"iana",compressible:!0,extensions:["glb"]},"model/iges":{source:"iana",compressible:!1,extensions:["igs","iges"]},"model/mesh":{source:"iana",compressible:!1,extensions:["msh","mesh","silo"]},"model/mtl":{source:"iana",extensions:["mtl"]},"model/obj":{source:"iana",extensions:["obj"]},"model/step":{source:"iana"},"model/step+xml":{source:"iana",compressible:!0,extensions:["stpx"]},"model/step+zip":{source:"iana",compressible:!1,extensions:["stpz"]},"model/step-xml+zip":{source:"iana",compressible:!1,extensions:["stpxz"]},"model/stl":{source:"iana",extensions:["stl"]},"model/vnd.collada+xml":{source:"iana",compressible:!0,extensions:["dae"]},"model/vnd.dwf":{source:"iana",extensions:["dwf"]},"model/vnd.flatland.3dml":{source:"iana"},"model/vnd.gdl":{source:"iana",extensions:["gdl"]},"model/vnd.gs-gdl":{source:"apache"},"model/vnd.gs.gdl":{source:"iana"},"model/vnd.gtw":{source:"iana",extensions:["gtw"]},"model/vnd.moml+xml":{source:"iana",compressible:!0},"model/vnd.mts":{source:"iana",extensions:["mts"]},"model/vnd.opengex":{source:"iana",extensions:["ogex"]},"model/vnd.parasolid.transmit.binary":{source:"iana",extensions:["x_b"]},"model/vnd.parasolid.transmit.text":{source:"iana",extensions:["x_t"]},"model/vnd.pytha.pyox":{source:"iana"},"model/vnd.rosette.annotated-data-model":{source:"iana"},"model/vnd.sap.vds":{source:"iana",extensions:["vds"]},"model/vnd.usdz+zip":{source:"iana",compressible:!1,extensions:["usdz"]},"model/vnd.valve.source.compiled-map":{source:"iana",extensions:["bsp"]},"model/vnd.vtu":{source:"iana",extensions:["vtu"]},"model/vrml":{source:"iana",compressible:!1,extensions:["wrl","vrml"]},"model/x3d+binary":{source:"apache",compressible:!1,extensions:["x3db","x3dbz"]},"model/x3d+fastinfoset":{source:"iana",extensions:["x3db"]},"model/x3d+vrml":{source:"apache",compressible:!1,extensions:["x3dv","x3dvz"]},"model/x3d+xml":{source:"iana",compressible:!0,extensions:["x3d","x3dz"]},"model/x3d-vrml":{source:"iana",extensions:["x3dv"]},"multipart/alternative":{source:"iana",compressible:!1},"multipart/appledouble":{source:"iana"},"multipart/byteranges":{source:"iana"},"multipart/digest":{source:"iana"},"multipart/encrypted":{source:"iana",compressible:!1},"multipart/form-data":{source:"iana",compressible:!1},"multipart/header-set":{source:"iana"},"multipart/mixed":{source:"iana"},"multipart/multilingual":{source:"iana"},"multipart/parallel":{source:"iana"},"multipart/related":{source:"iana",compressible:!1},"multipart/report":{source:"iana"},"multipart/signed":{source:"iana",compressible:!1},"multipart/vnd.bint.med-plus":{source:"iana"},"multipart/voice-message":{source:"iana"},"multipart/x-mixed-replace":{source:"iana"},"text/1d-interleaved-parityfec":{source:"iana"},"text/cache-manifest":{source:"iana",compressible:!0,extensions:["appcache","manifest"]},"text/calendar":{source:"iana",extensions:["ics","ifb"]},"text/calender":{compressible:!0},"text/cmd":{compressible:!0},"text/coffeescript":{extensions:["coffee","litcoffee"]},"text/cql":{source:"iana"},"text/cql-expression":{source:"iana"},"text/cql-identifier":{source:"iana"},"text/css":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["css"]},"text/csv":{source:"iana",compressible:!0,extensions:["csv"]},"text/csv-schema":{source:"iana"},"text/directory":{source:"iana"},"text/dns":{source:"iana"},"text/ecmascript":{source:"iana"},"text/encaprtp":{source:"iana"},"text/enriched":{source:"iana"},"text/fhirpath":{source:"iana"},"text/flexfec":{source:"iana"},"text/fwdred":{source:"iana"},"text/gff3":{source:"iana"},"text/grammar-ref-list":{source:"iana"},"text/html":{source:"iana",compressible:!0,extensions:["html","htm","shtml"]},"text/jade":{extensions:["jade"]},"text/javascript":{source:"iana",compressible:!0},"text/jcr-cnd":{source:"iana"},"text/jsx":{compressible:!0,extensions:["jsx"]},"text/less":{compressible:!0,extensions:["less"]},"text/markdown":{source:"iana",compressible:!0,extensions:["markdown","md"]},"text/mathml":{source:"nginx",extensions:["mml"]},"text/mdx":{compressible:!0,extensions:["mdx"]},"text/mizar":{source:"iana"},"text/n3":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["n3"]},"text/parameters":{source:"iana",charset:"UTF-8"},"text/parityfec":{source:"iana"},"text/plain":{source:"iana",compressible:!0,extensions:["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{source:"iana",charset:"UTF-8"},"text/prs.fallenstein.rst":{source:"iana"},"text/prs.lines.tag":{source:"iana",extensions:["dsc"]},"text/prs.prop.logic":{source:"iana"},"text/raptorfec":{source:"iana"},"text/red":{source:"iana"},"text/rfc822-headers":{source:"iana"},"text/richtext":{source:"iana",compressible:!0,extensions:["rtx"]},"text/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"text/rtp-enc-aescm128":{source:"iana"},"text/rtploopback":{source:"iana"},"text/rtx":{source:"iana"},"text/sgml":{source:"iana",extensions:["sgml","sgm"]},"text/shaclc":{source:"iana"},"text/shex":{source:"iana",extensions:["shex"]},"text/slim":{extensions:["slim","slm"]},"text/spdx":{source:"iana",extensions:["spdx"]},"text/strings":{source:"iana"},"text/stylus":{extensions:["stylus","styl"]},"text/t140":{source:"iana"},"text/tab-separated-values":{source:"iana",compressible:!0,extensions:["tsv"]},"text/troff":{source:"iana",extensions:["t","tr","roff","man","me","ms"]},"text/turtle":{source:"iana",charset:"UTF-8",extensions:["ttl"]},"text/ulpfec":{source:"iana"},"text/uri-list":{source:"iana",compressible:!0,extensions:["uri","uris","urls"]},"text/vcard":{source:"iana",compressible:!0,extensions:["vcard"]},"text/vnd.a":{source:"iana"},"text/vnd.abc":{source:"iana"},"text/vnd.ascii-art":{source:"iana"},"text/vnd.curl":{source:"iana",extensions:["curl"]},"text/vnd.curl.dcurl":{source:"apache",extensions:["dcurl"]},"text/vnd.curl.mcurl":{source:"apache",extensions:["mcurl"]},"text/vnd.curl.scurl":{source:"apache",extensions:["scurl"]},"text/vnd.debian.copyright":{source:"iana",charset:"UTF-8"},"text/vnd.dmclientscript":{source:"iana"},"text/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"text/vnd.esmertec.theme-descriptor":{source:"iana",charset:"UTF-8"},"text/vnd.familysearch.gedcom":{source:"iana",extensions:["ged"]},"text/vnd.ficlab.flt":{source:"iana"},"text/vnd.fly":{source:"iana",extensions:["fly"]},"text/vnd.fmi.flexstor":{source:"iana",extensions:["flx"]},"text/vnd.gml":{source:"iana"},"text/vnd.graphviz":{source:"iana",extensions:["gv"]},"text/vnd.hans":{source:"iana"},"text/vnd.hgl":{source:"iana"},"text/vnd.in3d.3dml":{source:"iana",extensions:["3dml"]},"text/vnd.in3d.spot":{source:"iana",extensions:["spot"]},"text/vnd.iptc.newsml":{source:"iana"},"text/vnd.iptc.nitf":{source:"iana"},"text/vnd.latex-z":{source:"iana"},"text/vnd.motorola.reflex":{source:"iana"},"text/vnd.ms-mediapackage":{source:"iana"},"text/vnd.net2phone.commcenter.command":{source:"iana"},"text/vnd.radisys.msml-basic-layout":{source:"iana"},"text/vnd.senx.warpscript":{source:"iana"},"text/vnd.si.uricatalogue":{source:"iana"},"text/vnd.sosi":{source:"iana"},"text/vnd.sun.j2me.app-descriptor":{source:"iana",charset:"UTF-8",extensions:["jad"]},"text/vnd.trolltech.linguist":{source:"iana",charset:"UTF-8"},"text/vnd.wap.si":{source:"iana"},"text/vnd.wap.sl":{source:"iana"},"text/vnd.wap.wml":{source:"iana",extensions:["wml"]},"text/vnd.wap.wmlscript":{source:"iana",extensions:["wmls"]},"text/vtt":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["vtt"]},"text/x-asm":{source:"apache",extensions:["s","asm"]},"text/x-c":{source:"apache",extensions:["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{source:"nginx",extensions:["htc"]},"text/x-fortran":{source:"apache",extensions:["f","for","f77","f90"]},"text/x-gwt-rpc":{compressible:!0},"text/x-handlebars-template":{extensions:["hbs"]},"text/x-java-source":{source:"apache",extensions:["java"]},"text/x-jquery-tmpl":{compressible:!0},"text/x-lua":{extensions:["lua"]},"text/x-markdown":{compressible:!0,extensions:["mkd"]},"text/x-nfo":{source:"apache",extensions:["nfo"]},"text/x-opml":{source:"apache",extensions:["opml"]},"text/x-org":{compressible:!0,extensions:["org"]},"text/x-pascal":{source:"apache",extensions:["p","pas"]},"text/x-processing":{compressible:!0,extensions:["pde"]},"text/x-sass":{extensions:["sass"]},"text/x-scss":{extensions:["scss"]},"text/x-setext":{source:"apache",extensions:["etx"]},"text/x-sfv":{source:"apache",extensions:["sfv"]},"text/x-suse-ymp":{compressible:!0,extensions:["ymp"]},"text/x-uuencode":{source:"apache",extensions:["uu"]},"text/x-vcalendar":{source:"apache",extensions:["vcs"]},"text/x-vcard":{source:"apache",extensions:["vcf"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/xml-external-parsed-entity":{source:"iana"},"text/yaml":{compressible:!0,extensions:["yaml","yml"]},"video/1d-interleaved-parityfec":{source:"iana"},"video/3gpp":{source:"iana",extensions:["3gp","3gpp"]},"video/3gpp-tt":{source:"iana"},"video/3gpp2":{source:"iana",extensions:["3g2"]},"video/av1":{source:"iana"},"video/bmpeg":{source:"iana"},"video/bt656":{source:"iana"},"video/celb":{source:"iana"},"video/dv":{source:"iana"},"video/encaprtp":{source:"iana"},"video/ffv1":{source:"iana"},"video/flexfec":{source:"iana"},"video/h261":{source:"iana",extensions:["h261"]},"video/h263":{source:"iana",extensions:["h263"]},"video/h263-1998":{source:"iana"},"video/h263-2000":{source:"iana"},"video/h264":{source:"iana",extensions:["h264"]},"video/h264-rcdo":{source:"iana"},"video/h264-svc":{source:"iana"},"video/h265":{source:"iana"},"video/iso.segment":{source:"iana",extensions:["m4s"]},"video/jpeg":{source:"iana",extensions:["jpgv"]},"video/jpeg2000":{source:"iana"},"video/jpm":{source:"apache",extensions:["jpm","jpgm"]},"video/jxsv":{source:"iana"},"video/mj2":{source:"iana",extensions:["mj2","mjp2"]},"video/mp1s":{source:"iana"},"video/mp2p":{source:"iana"},"video/mp2t":{source:"iana",extensions:["ts"]},"video/mp4":{source:"iana",compressible:!1,extensions:["mp4","mp4v","mpg4"]},"video/mp4v-es":{source:"iana"},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{source:"iana"},"video/mpv":{source:"iana"},"video/nv":{source:"iana"},"video/ogg":{source:"iana",compressible:!1,extensions:["ogv"]},"video/parityfec":{source:"iana"},"video/pointer":{source:"iana"},"video/quicktime":{source:"iana",compressible:!1,extensions:["qt","mov"]},"video/raptorfec":{source:"iana"},"video/raw":{source:"iana"},"video/rtp-enc-aescm128":{source:"iana"},"video/rtploopback":{source:"iana"},"video/rtx":{source:"iana"},"video/scip":{source:"iana"},"video/smpte291":{source:"iana"},"video/smpte292m":{source:"iana"},"video/ulpfec":{source:"iana"},"video/vc1":{source:"iana"},"video/vc2":{source:"iana"},"video/vnd.cctv":{source:"iana"},"video/vnd.dece.hd":{source:"iana",extensions:["uvh","uvvh"]},"video/vnd.dece.mobile":{source:"iana",extensions:["uvm","uvvm"]},"video/vnd.dece.mp4":{source:"iana"},"video/vnd.dece.pd":{source:"iana",extensions:["uvp","uvvp"]},"video/vnd.dece.sd":{source:"iana",extensions:["uvs","uvvs"]},"video/vnd.dece.video":{source:"iana",extensions:["uvv","uvvv"]},"video/vnd.directv.mpeg":{source:"iana"},"video/vnd.directv.mpeg-tts":{source:"iana"},"video/vnd.dlna.mpeg-tts":{source:"iana"},"video/vnd.dvb.file":{source:"iana",extensions:["dvb"]},"video/vnd.fvt":{source:"iana",extensions:["fvt"]},"video/vnd.hns.video":{source:"iana"},"video/vnd.iptvforum.1dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.1dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.2dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.2dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.ttsavc":{source:"iana"},"video/vnd.iptvforum.ttsmpeg2":{source:"iana"},"video/vnd.motorola.video":{source:"iana"},"video/vnd.motorola.videop":{source:"iana"},"video/vnd.mpegurl":{source:"iana",extensions:["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{source:"iana",extensions:["pyv"]},"video/vnd.nokia.interleaved-multimedia":{source:"iana"},"video/vnd.nokia.mp4vr":{source:"iana"},"video/vnd.nokia.videovoip":{source:"iana"},"video/vnd.objectvideo":{source:"iana"},"video/vnd.radgamettools.bink":{source:"iana"},"video/vnd.radgamettools.smacker":{source:"iana"},"video/vnd.sealed.mpeg1":{source:"iana"},"video/vnd.sealed.mpeg4":{source:"iana"},"video/vnd.sealed.swf":{source:"iana"},"video/vnd.sealedmedia.softseal.mov":{source:"iana"},"video/vnd.uvvu.mp4":{source:"iana",extensions:["uvu","uvvu"]},"video/vnd.vivo":{source:"iana",extensions:["viv"]},"video/vnd.youtube.yt":{source:"iana"},"video/vp8":{source:"iana"},"video/vp9":{source:"iana"},"video/webm":{source:"apache",compressible:!1,extensions:["webm"]},"video/x-f4v":{source:"apache",extensions:["f4v"]},"video/x-fli":{source:"apache",extensions:["fli"]},"video/x-flv":{source:"apache",compressible:!1,extensions:["flv"]},"video/x-m4v":{source:"apache",extensions:["m4v"]},"video/x-matroska":{source:"apache",compressible:!1,extensions:["mkv","mk3d","mks"]},"video/x-mng":{source:"apache",extensions:["mng"]},"video/x-ms-asf":{source:"apache",extensions:["asf","asx"]},"video/x-ms-vob":{source:"apache",extensions:["vob"]},"video/x-ms-wm":{source:"apache",extensions:["wm"]},"video/x-ms-wmv":{source:"apache",compressible:!1,extensions:["wmv"]},"video/x-ms-wmx":{source:"apache",extensions:["wmx"]},"video/x-ms-wvx":{source:"apache",extensions:["wvx"]},"video/x-msvideo":{source:"apache",extensions:["avi"]},"video/x-sgi-movie":{source:"apache",extensions:["movie"]},"video/x-smv":{source:"apache",extensions:["smv"]},"x-conference/x-cooltalk":{source:"apache",extensions:["ice"]},"x-shader/x-fragment":{compressible:!0},"x-shader/x-vertex":{compressible:!0}};
|
|
103
103
|
/*!
|
|
104
104
|
* mime-db
|
|
105
105
|
* Copyright(c) 2014 Jonathan Ong
|
|
@@ -111,5 +111,5 @@ read:function(e,t,r,o,n){var i,a,s=8*n-o-1,c=(1<<s)-1,u=c>>1,l=-7,d=r?n-1:0,p=r?
|
|
|
111
111
|
* Copyright(c) 2014 Jonathan Ong
|
|
112
112
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
113
113
|
* MIT Licensed
|
|
114
|
-
*/!function(e){var t,r,o,n=mimeDb,i=pathBrowserify.extname,a=/^\s*([^;\s]*)(?:;|\s|$)/,s=/^text\//i;function c(e){if(!e||"string"!=typeof e)return!1;var t=a.exec(e),r=t&&n[t[1].toLowerCase()];return r&&r.charset?r.charset:!(!t||!s.test(t[1]))&&"UTF-8"}e.charset=c,e.charsets={lookup:c},e.contentType=function(t){if(!t||"string"!=typeof t)return!1;var r=-1===t.indexOf("/")?e.lookup(t):t;if(!r)return!1;if(-1===r.indexOf("charset")){var o=e.charset(r);o&&(r+="; charset="+o.toLowerCase())}return r},e.extension=function(t){if(!t||"string"!=typeof t)return!1;var r=a.exec(t),o=r&&e.extensions[r[1].toLowerCase()];if(!o||!o.length)return!1;return o[0]},e.extensions=Object.create(null),e.lookup=function(t){if(!t||"string"!=typeof t)return!1;var r=i("x."+t).toLowerCase().substr(1);if(!r)return!1;return e.types[r]||!1},e.types=Object.create(null),t=e.extensions,r=e.types,o=["nginx","apache",void 0,"iana"],Object.keys(n).forEach((function(e){var i=n[e],a=i.extensions;if(a&&a.length){t[e]=a;for(var s=0;s<a.length;s++){var c=a[s];if(r[c]){var u=o.indexOf(n[r[c]].source),l=o.indexOf(i.source);if("application/octet-stream"!==r[c]&&(u>l||u===l&&"application/"===r[c].substr(0,12)))continue}r[c]=e}}}))}(mimeTypes);var InboundTopicType=(e=>(e.PUBLIC="PUBLIC",e.CONTROLLED="CONTROLLED",e.FEE_BASED="FEE_BASED",e))(InboundTopicType||{}),util,util2,objectUtil,objectUtil2;async function inscribe(e,t,r,o){var n,i;const a=Logger$2.getInstance({module:"Inscriber",...r.logging});a.info("Starting inscription process",{type:e.type,mode:r.mode||"file",..."url"===e.type?{url:e.url}:{},..."file"===e.type?{path:e.path}:{},..."buffer"===e.type?{fileName:e.fileName,bufferSize:e.buffer.byteLength}:{}});try{let s;"hashinal"===r.mode&&r.metadata&&validateHashinalMetadata(r.metadata,a),o?(a.debug("Using existing InscriptionSDK instance"),s=o):r.apiKey?(a.debug("Initializing InscriptionSDK with API key"),s=new InscriptionSDK({apiKey:r.apiKey,network:t.network||"mainnet"})):(a.debug("Initializing InscriptionSDK with server auth"),s=await InscriptionSDK.createWithAuth({type:"server",accountId:t.accountId,privateKey:t.privateKey,network:t.network||"mainnet"}));const c={holderId:t.accountId,metadata:r.metadata||{},tags:r.tags||[],mode:r.mode||"file",chunkSize:r.chunkSize};let u;switch(e.type){case"url":u={...c,file:{type:"url",url:e.url}};break;case"file":u={...c,file:{type:"path",path:e.path}};break;case"buffer":u={...c,file:{type:"base64",base64:Buffer.from(e.buffer).toString("base64"),fileName:e.fileName,mimeType:e.mimeType}}}"hashinal"===r.mode&&(u.metadataObject=r.metadata,u.creator=(null==(n=r.metadata)?void 0:n.creator)||t.accountId,u.description=null==(i=r.metadata)?void 0:i.description,r.jsonFileURL&&(u.jsonFileURL=r.jsonFileURL)),a.debug("Preparing to inscribe content",{type:e.type,mode:r.mode||"file",holderId:t.accountId});const l=await s.inscribeAndExecute(u,t);if(a.info("Starting to inscribe.",{type:e.type,mode:r.mode||"file",transactionId:l.jobId}),r.waitForConfirmation){a.debug("Waiting for inscription confirmation",{transactionId:l.jobId,maxAttempts:r.waitMaxAttempts,intervalMs:r.waitIntervalMs});const e=await waitForInscriptionConfirmation(s,l.jobId,r.waitMaxAttempts,r.waitIntervalMs);return a.info("Inscription confirmation received",{transactionId:l.jobId}),{confirmed:!0,result:l,inscription:e,sdk:s}}return{confirmed:!1,result:l,sdk:s}}catch(s){throw a.error("Error during inscription process",s),s}}async function inscribeWithSigner(e,t,r,o){var n,i;const a=Logger$2.getInstance({module:"Inscriber",...r.logging});a.info("Starting inscription process with signer",{type:e.type,mode:r.mode||"file",..."url"===e.type?{url:e.url}:{},..."file"===e.type?{path:e.path}:{},..."buffer"===e.type?{fileName:e.fileName,bufferSize:e.buffer.byteLength}:{}});try{"hashinal"===r.mode&&r.metadata&&validateHashinalMetadata(r.metadata,a);const s=t.getAccountId().toString();let c;a.debug("Using account ID from signer",{accountId:s}),o?(a.debug("Using existing InscriptionSDK instance"),c=o):r.apiKey?(a.debug("Initializing InscriptionSDK with API key"),c=new InscriptionSDK({apiKey:r.apiKey,network:r.network||"mainnet"})):(a.debug("Initializing InscriptionSDK with client auth"),c=await InscriptionSDK.createWithAuth({type:"client",accountId:s,signer:t,network:r.network||"mainnet"}));const u={holderId:s,metadata:r.metadata||{},tags:r.tags||[],mode:r.mode||"file",chunkSize:r.chunkSize};let l;switch(e.type){case"url":l={...u,file:{type:"url",url:e.url}};break;case"file":l={...u,file:{type:"path",path:e.path}};break;case"buffer":l={...u,file:{type:"base64",base64:Buffer.from(e.buffer).toString("base64"),fileName:e.fileName,mimeType:e.mimeType}}}"hashinal"===r.mode&&(l.metadataObject=r.metadata,l.creator=(null==(n=r.metadata)?void 0:n.creator)||s,l.description=null==(i=r.metadata)?void 0:i.description,r.jsonFileURL&&(l.jsonFileURL=r.jsonFileURL)),a.debug("Preparing to inscribe content with signer",{type:e.type,mode:r.mode||"file",holderId:s});const d=await c.inscribe({...l,holderId:s},t);if(a.info("Inscription started",{type:e.type,mode:r.mode||"file",transactionId:d.jobId}),r.waitForConfirmation){a.debug("Waiting for inscription confirmation",{transactionId:d.jobId,maxAttempts:r.waitMaxAttempts,intervalMs:r.waitIntervalMs});const e=await waitForInscriptionConfirmation(c,d.jobId,r.waitMaxAttempts,r.waitIntervalMs);return a.info("Inscription confirmation received",{transactionId:d.jobId}),{confirmed:!0,result:d,inscription:e,sdk:c}}return{confirmed:!1,result:d,sdk:c}}catch(s){throw a.error("Error during inscription process",s),s}}async function retrieveInscription(e,t){const r=Logger$2.getInstance({module:"Inscriber",...t.logging}),o=e.includes("@")?`${e.split("@")[0]}-${e.split("@")[1].replace(/\./g,"-")}`:e;r.info("Retrieving inscription",{originalTransactionId:e,formattedTransactionId:o});try{let e;if(t.apiKey)r.debug("Initializing InscriptionSDK with API key"),e=new InscriptionSDK({apiKey:t.apiKey,network:t.network||"mainnet"});else{if(!t.accountId||!t.privateKey){const e=new Error("Either API key or account ID and private key are required for retrieving inscriptions");throw r.error("Missing authentication credentials",{hasApiKey:!!t.apiKey,hasAccountId:!!t.accountId,hasPrivateKey:!!t.privateKey}),e}r.debug("Initializing InscriptionSDK with server auth"),e=await InscriptionSDK.createWithAuth({type:"server",accountId:t.accountId,privateKey:t.privateKey,network:t.network||"mainnet"})}r.debug("Initialized SDK for inscription retrieval",{formattedTransactionId:o,network:t.network||"mainnet"});const n=await e.retrieveInscription(o);return r.info("Successfully retrieved inscription",{formattedTransactionId:o}),n}catch(n){throw r.error("Error retrieving inscription",{formattedTransactionId:o,error:n}),n}}function validateHashinalMetadata(e,t){const r=["name","creator","description","type"].filter((t=>!e[t]));if(r.length>0){const e=new Error(`Missing required Hashinal metadata fields: ${r.join(", ")}`);throw t.error("Hashinal metadata validation failed",{missingFields:r}),e}t.debug("Hashinal metadata validation passed",{name:e.name,creator:e.creator,description:e.description,type:e.type,hasAttributes:!!e.attributes,hasProperties:!!e.properties})}async function waitForInscriptionConfirmation(e,t,r=30,o=4e3){const n=Logger$2.getInstance({module:"Inscriber"});try{n.debug("Waiting for inscription confirmation",{transactionId:t,maxAttempts:r,intervalMs:o});const i=await e.waitForInscription(t,r,o,!0);return n.debug("Inscription confirmation received",{transactionId:t}),i}catch(i){throw n.error("Error waiting for inscription confirmation",{transactionId:t,maxAttempts:r,intervalMs:o,error:i}),i}}util2=util||(util={}),util2.assertEqual=e=>e,util2.assertIs=function(e){},util2.assertNever=function(e){throw new Error},util2.arrayToEnum=e=>{const t={};for(const r of e)t[r]=r;return t},util2.getValidEnumValues=e=>{const t=util2.objectKeys(e).filter((t=>"number"!=typeof e[e[t]])),r={};for(const o of t)r[o]=e[o];return util2.objectValues(r)},util2.objectValues=e=>util2.objectKeys(e).map((function(t){return e[t]})),util2.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{const t=[];for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t},util2.find=(e,t)=>{for(const r of e)if(t(r))return r},util2.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,util2.joinValues=function(e,t=" | "){return e.map((e=>"string"==typeof e?`'${e}'`:e)).join(t)},util2.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t,objectUtil2=objectUtil||(objectUtil={}),objectUtil2.mergeShapes=(e,t)=>({...e,...t});const ZodParsedType=util.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),getParsedType=e=>{switch(typeof e){case"undefined":return ZodParsedType.undefined;case"string":return ZodParsedType.string;case"number":return isNaN(e)?ZodParsedType.nan:ZodParsedType.number;case"boolean":return ZodParsedType.boolean;case"function":return ZodParsedType.function;case"bigint":return ZodParsedType.bigint;case"symbol":return ZodParsedType.symbol;case"object":return Array.isArray(e)?ZodParsedType.array:null===e?ZodParsedType.null:e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch?ZodParsedType.promise:"undefined"!=typeof Map&&e instanceof Map?ZodParsedType.map:"undefined"!=typeof Set&&e instanceof Set?ZodParsedType.set:"undefined"!=typeof Date&&e instanceof Date?ZodParsedType.date:ZodParsedType.object;default:return ZodParsedType.unknown}},ZodIssueCode=util.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),quotelessJson=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class ZodError extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){const t=e||function(e){return e.message},r={_errors:[]},o=e=>{for(const n of e.issues)if("invalid_union"===n.code)n.unionErrors.map(o);else if("invalid_return_type"===n.code)o(n.returnTypeError);else if("invalid_arguments"===n.code)o(n.argumentsError);else if(0===n.path.length)r._errors.push(t(n));else{let e=r,o=0;for(;o<n.path.length;){const r=n.path[o];o===n.path.length-1?(e[r]=e[r]||{_errors:[]},e[r]._errors.push(t(n))):e[r]=e[r]||{_errors:[]},e=e[r],o++}}};return o(this),r}static assert(e){if(!(e instanceof ZodError))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,util.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){const t={},r=[];for(const o of this.issues)o.path.length>0?(t[o.path[0]]=t[o.path[0]]||[],t[o.path[0]].push(e(o))):r.push(e(o));return{formErrors:r,fieldErrors:t}}get formErrors(){return this.flatten()}}ZodError.create=e=>new ZodError(e);const errorMap=(e,t)=>{let r;switch(e.code){case ZodIssueCode.invalid_type:r=e.received===ZodParsedType.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case ZodIssueCode.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,util.jsonStringifyReplacer)}`;break;case ZodIssueCode.unrecognized_keys:r=`Unrecognized key(s) in object: ${util.joinValues(e.keys,", ")}`;break;case ZodIssueCode.invalid_union:r="Invalid input";break;case ZodIssueCode.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${util.joinValues(e.options)}`;break;case ZodIssueCode.invalid_enum_value:r=`Invalid enum value. Expected ${util.joinValues(e.options)}, received '${e.received}'`;break;case ZodIssueCode.invalid_arguments:r="Invalid function arguments";break;case ZodIssueCode.invalid_return_type:r="Invalid function return type";break;case ZodIssueCode.invalid_date:r="Invalid date";break;case ZodIssueCode.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:util.assertNever(e.validation):r="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case ZodIssueCode.too_small:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case ZodIssueCode.too_big:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case ZodIssueCode.custom:r="Invalid input";break;case ZodIssueCode.invalid_intersection_types:r="Intersection results could not be merged";break;case ZodIssueCode.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case ZodIssueCode.not_finite:r="Number must be finite";break;default:r=t.defaultError,util.assertNever(e)}return{message:r}};let overrideErrorMap=errorMap;function setErrorMap(e){overrideErrorMap=e}function getErrorMap(){return overrideErrorMap}const makeIssue=e=>{const{data:t,path:r,errorMaps:o,issueData:n}=e,i=[...r,...n.path||[]],a={...n,path:i};if(void 0!==n.message)return{...n,path:i,message:n.message};let s="";const c=o.filter((e=>!!e)).slice().reverse();for(const u of c)s=u(a,{data:t,defaultError:s}).message;return{...n,path:i,message:s}},EMPTY_PATH=[];function addIssueToContext(e,t){const r=getErrorMap(),o=makeIssue({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===errorMap?void 0:errorMap].filter((e=>!!e))});e.common.issues.push(o)}class ParseStatus{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){const r=[];for(const o of t){if("aborted"===o.status)return INVALID;"dirty"===o.status&&e.dirty(),r.push(o.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,t){const r=[];for(const o of t){const e=await o.key,t=await o.value;r.push({key:e,value:t})}return ParseStatus.mergeObjectSync(e,r)}static mergeObjectSync(e,t){const r={};for(const o of t){const{key:t,value:n}=o;if("aborted"===t.status)return INVALID;if("aborted"===n.status)return INVALID;"dirty"===t.status&&e.dirty(),"dirty"===n.status&&e.dirty(),"__proto__"===t.value||void 0===n.value&&!o.alwaysSet||(r[t.value]=n.value)}return{status:e.value,value:r}}}const INVALID=Object.freeze({status:"aborted"}),DIRTY=e=>({status:"dirty",value:e}),OK=e=>({status:"valid",value:e}),isAborted=e=>"aborted"===e.status,isDirty=e=>"dirty"===e.status,isValid=e=>"valid"===e.status,isAsync=e=>"undefined"!=typeof Promise&&e instanceof Promise;function __classPrivateFieldGet(e,t,r,o){if("function"==typeof t||!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function __classPrivateFieldSet(e,t,r,o,n){if("function"==typeof t||!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,r),r}var errorUtil,errorUtil2,_ZodEnum_cache,_ZodNativeEnum_cache;"function"==typeof SuppressedError&&SuppressedError,errorUtil2=errorUtil||(errorUtil={}),errorUtil2.errToObj=e=>"string"==typeof e?{message:e}:e||{},errorUtil2.toString=e=>"string"==typeof e?e:null==e?void 0:e.message;class ParseInputLazyPath{constructor(e,t,r,o){this._cachedPath=[],this.parent=e,this.data=t,this._path=r,this._key=o}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const handleResult=(e,t)=>{if(isValid(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new ZodError(e.common.issues);return this._error=t,this._error}}};function processCreateParams(e){if(!e)return{};const{errorMap:t,invalid_type_error:r,required_error:o,description:n}=e;if(t&&(r||o))throw new Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');if(t)return{errorMap:t,description:n};return{errorMap:(t,n)=>{var i,a;const{message:s}=e;return"invalid_enum_value"===t.code?{message:null!=s?s:n.defaultError}:void 0===n.data?{message:null!==(i=null!=s?s:o)&&void 0!==i?i:n.defaultError}:"invalid_type"!==t.code?{message:n.defaultError}:{message:null!==(a=null!=s?s:r)&&void 0!==a?a:n.defaultError}},description:n}}class ZodType{get description(){return this._def.description}_getType(e){return getParsedType(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:getParsedType(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new ParseStatus,ctx:{common:e.parent.common,data:e.data,parsedType:getParsedType(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(isAsync(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const r=this.safeParse(e,t);if(r.success)return r.data;throw r.error}safeParse(e,t){var r;const o={common:{issues:[],async:null!==(r=null==t?void 0:t.async)&&void 0!==r&&r,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:getParsedType(e)},n=this._parseSync({data:e,path:o.path,parent:o});return handleResult(o,n)}"~validate"(e){var t,r;const o={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:getParsedType(e)};if(!this["~standard"].async)try{const t=this._parseSync({data:e,path:[],parent:o});return isValid(t)?{value:t.value}:{issues:o.common.issues}}catch(n){(null===(r=null===(t=null==n?void 0:n.message)||void 0===t?void 0:t.toLowerCase())||void 0===r?void 0:r.includes("encountered"))&&(this["~standard"].async=!0),o.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:o}).then((e=>isValid(e)?{value:e.value}:{issues:o.common.issues}))}async parseAsync(e,t){const r=await this.safeParseAsync(e,t);if(r.success)return r.data;throw r.error}async safeParseAsync(e,t){const r={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:getParsedType(e)},o=this._parse({data:e,path:r.path,parent:r}),n=await(isAsync(o)?o:Promise.resolve(o));return handleResult(r,n)}refine(e,t){const r=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement(((t,o)=>{const n=e(t),i=()=>o.addIssue({code:ZodIssueCode.custom,...r(t)});return"undefined"!=typeof Promise&&n instanceof Promise?n.then((e=>!!e||(i(),!1))):!!n||(i(),!1)}))}refinement(e,t){return this._refinement(((r,o)=>!!e(r)||(o.addIssue("function"==typeof t?t(r,o):t),!1)))}_refinement(e){return new ZodEffects({schema:this,typeName:ZodFirstPartyTypeKind.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return ZodOptional.create(this,this._def)}nullable(){return ZodNullable.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ZodArray.create(this)}promise(){return ZodPromise.create(this,this._def)}or(e){return ZodUnion.create([this,e],this._def)}and(e){return ZodIntersection.create(this,e,this._def)}transform(e){return new ZodEffects({...processCreateParams(this._def),schema:this,typeName:ZodFirstPartyTypeKind.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t="function"==typeof e?e:()=>e;return new ZodDefault({...processCreateParams(this._def),innerType:this,defaultValue:t,typeName:ZodFirstPartyTypeKind.ZodDefault})}brand(){return new ZodBranded({typeName:ZodFirstPartyTypeKind.ZodBranded,type:this,...processCreateParams(this._def)})}catch(e){const t="function"==typeof e?e:()=>e;return new ZodCatch({...processCreateParams(this._def),innerType:this,catchValue:t,typeName:ZodFirstPartyTypeKind.ZodCatch})}describe(e){return new(0,this.constructor)({...this._def,description:e})}pipe(e){return ZodPipeline.create(this,e)}readonly(){return ZodReadonly.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const cuidRegex=/^c[^\s-]{8,}$/i,cuid2Regex=/^[0-9a-z]+$/,ulidRegex=/^[0-9A-HJKMNP-TV-Z]{26}$/i,uuidRegex=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,nanoidRegex=/^[a-z0-9_-]{21}$/i,jwtRegex=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,durationRegex=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,emailRegex=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,_emojiRegex="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let emojiRegex;const ipv4Regex=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ipv4CidrRegex=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ipv6Regex=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,ipv6CidrRegex=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64Regex=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64urlRegex=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,dateRegexSource="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",dateRegex=new RegExp(`^${dateRegexSource}$`);function timeRegexSource(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`),t}function timeRegex(e){return new RegExp(`^${timeRegexSource(e)}$`)}function datetimeRegex(e){let t=`${dateRegexSource}T${timeRegexSource(e)}`;const r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}function isValidIP(e,t){return!("v4"!==t&&t||!ipv4Regex.test(e))||!("v6"!==t&&t||!ipv6Regex.test(e))}function isValidJWT(e,t){if(!jwtRegex.test(e))return!1;try{const[r]=e.split("."),o=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),n=JSON.parse(atob(o));return"object"==typeof n&&null!==n&&(!(!n.typ||!n.alg)&&(!t||n.alg===t))}catch(r){return!1}}function isValidCidr(e,t){return!("v4"!==t&&t||!ipv4CidrRegex.test(e))||!("v6"!==t&&t||!ipv6CidrRegex.test(e))}class ZodString extends ZodType{_parse(e){this._def.coerce&&(e.data=String(e.data));if(this._getType(e)!==ZodParsedType.string){const t=this._getOrReturnCtx(e);return addIssueToContext(t,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.string,received:t.parsedType}),INVALID}const t=new ParseStatus;let r;for(const n of this._def.checks)if("min"===n.kind)e.data.length<n.value&&(r=this._getOrReturnCtx(e,r),addIssueToContext(r,{code:ZodIssueCode.too_small,minimum:n.value,type:"string",inclusive:!0,exact:!1,message:n.message}),t.dirty());else if("max"===n.kind)e.data.length>n.value&&(r=this._getOrReturnCtx(e,r),addIssueToContext(r,{code:ZodIssueCode.too_big,maximum:n.value,type:"string",inclusive:!0,exact:!1,message:n.message}),t.dirty());else if("length"===n.kind){const o=e.data.length>n.value,i=e.data.length<n.value;(o||i)&&(r=this._getOrReturnCtx(e,r),o?addIssueToContext(r,{code:ZodIssueCode.too_big,maximum:n.value,type:"string",inclusive:!0,exact:!0,message:n.message}):i&&addIssueToContext(r,{code:ZodIssueCode.too_small,minimum:n.value,type:"string",inclusive:!0,exact:!0,message:n.message}),t.dirty())}else if("email"===n.kind)emailRegex.test(e.data)||(r=this._getOrReturnCtx(e,r),addIssueToContext(r,{validation:"email",code:ZodIssueCode.invalid_string,message:n.message}),t.dirty());else if("emoji"===n.kind)emojiRegex||(emojiRegex=new RegExp(_emojiRegex,"u")),emojiRegex.test(e.data)||(r=this._getOrReturnCtx(e,r),addIssueToContext(r,{validation:"emoji",code:ZodIssueCode.invalid_string,message:n.message}),t.dirty());else if("uuid"===n.kind)uuidRegex.test(e.data)||(r=this._getOrReturnCtx(e,r),addIssueToContext(r,{validation:"uuid",code:ZodIssueCode.invalid_string,message:n.message}),t.dirty());else if("nanoid"===n.kind)nanoidRegex.test(e.data)||(r=this._getOrReturnCtx(e,r),addIssueToContext(r,{validation:"nanoid",code:ZodIssueCode.invalid_string,message:n.message}),t.dirty());else if("cuid"===n.kind)cuidRegex.test(e.data)||(r=this._getOrReturnCtx(e,r),addIssueToContext(r,{validation:"cuid",code:ZodIssueCode.invalid_string,message:n.message}),t.dirty());else if("cuid2"===n.kind)cuid2Regex.test(e.data)||(r=this._getOrReturnCtx(e,r),addIssueToContext(r,{validation:"cuid2",code:ZodIssueCode.invalid_string,message:n.message}),t.dirty());else if("ulid"===n.kind)ulidRegex.test(e.data)||(r=this._getOrReturnCtx(e,r),addIssueToContext(r,{validation:"ulid",code:ZodIssueCode.invalid_string,message:n.message}),t.dirty());else if("url"===n.kind)try{new URL(e.data)}catch(o){r=this._getOrReturnCtx(e,r),addIssueToContext(r,{validation:"url",code:ZodIssueCode.invalid_string,message:n.message}),t.dirty()}else if("regex"===n.kind){n.regex.lastIndex=0;n.regex.test(e.data)||(r=this._getOrReturnCtx(e,r),addIssueToContext(r,{validation:"regex",code:ZodIssueCode.invalid_string,message:n.message}),t.dirty())}else if("trim"===n.kind)e.data=e.data.trim();else if("includes"===n.kind)e.data.includes(n.value,n.position)||(r=this._getOrReturnCtx(e,r),addIssueToContext(r,{code:ZodIssueCode.invalid_string,validation:{includes:n.value,position:n.position},message:n.message}),t.dirty());else if("toLowerCase"===n.kind)e.data=e.data.toLowerCase();else if("toUpperCase"===n.kind)e.data=e.data.toUpperCase();else if("startsWith"===n.kind)e.data.startsWith(n.value)||(r=this._getOrReturnCtx(e,r),addIssueToContext(r,{code:ZodIssueCode.invalid_string,validation:{startsWith:n.value},message:n.message}),t.dirty());else if("endsWith"===n.kind)e.data.endsWith(n.value)||(r=this._getOrReturnCtx(e,r),addIssueToContext(r,{code:ZodIssueCode.invalid_string,validation:{endsWith:n.value},message:n.message}),t.dirty());else if("datetime"===n.kind){datetimeRegex(n).test(e.data)||(r=this._getOrReturnCtx(e,r),addIssueToContext(r,{code:ZodIssueCode.invalid_string,validation:"datetime",message:n.message}),t.dirty())}else if("date"===n.kind){dateRegex.test(e.data)||(r=this._getOrReturnCtx(e,r),addIssueToContext(r,{code:ZodIssueCode.invalid_string,validation:"date",message:n.message}),t.dirty())}else if("time"===n.kind){timeRegex(n).test(e.data)||(r=this._getOrReturnCtx(e,r),addIssueToContext(r,{code:ZodIssueCode.invalid_string,validation:"time",message:n.message}),t.dirty())}else"duration"===n.kind?durationRegex.test(e.data)||(r=this._getOrReturnCtx(e,r),addIssueToContext(r,{validation:"duration",code:ZodIssueCode.invalid_string,message:n.message}),t.dirty()):"ip"===n.kind?isValidIP(e.data,n.version)||(r=this._getOrReturnCtx(e,r),addIssueToContext(r,{validation:"ip",code:ZodIssueCode.invalid_string,message:n.message}),t.dirty()):"jwt"===n.kind?isValidJWT(e.data,n.alg)||(r=this._getOrReturnCtx(e,r),addIssueToContext(r,{validation:"jwt",code:ZodIssueCode.invalid_string,message:n.message}),t.dirty()):"cidr"===n.kind?isValidCidr(e.data,n.version)||(r=this._getOrReturnCtx(e,r),addIssueToContext(r,{validation:"cidr",code:ZodIssueCode.invalid_string,message:n.message}),t.dirty()):"base64"===n.kind?base64Regex.test(e.data)||(r=this._getOrReturnCtx(e,r),addIssueToContext(r,{validation:"base64",code:ZodIssueCode.invalid_string,message:n.message}),t.dirty()):"base64url"===n.kind?base64urlRegex.test(e.data)||(r=this._getOrReturnCtx(e,r),addIssueToContext(r,{validation:"base64url",code:ZodIssueCode.invalid_string,message:n.message}),t.dirty()):util.assertNever(n);return{status:t.value,value:e.data}}_regex(e,t,r){return this.refinement((t=>e.test(t)),{validation:t,code:ZodIssueCode.invalid_string,...errorUtil.errToObj(r)})}_addCheck(e){return new ZodString({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...errorUtil.errToObj(e)})}url(e){return this._addCheck({kind:"url",...errorUtil.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...errorUtil.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...errorUtil.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...errorUtil.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...errorUtil.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...errorUtil.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...errorUtil.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...errorUtil.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...errorUtil.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...errorUtil.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...errorUtil.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...errorUtil.errToObj(e)})}datetime(e){var t,r;return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,offset:null!==(t=null==e?void 0:e.offset)&&void 0!==t&&t,local:null!==(r=null==e?void 0:e.local)&&void 0!==r&&r,...errorUtil.errToObj(null==e?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,...errorUtil.errToObj(null==e?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...errorUtil.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...errorUtil.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null==t?void 0:t.position,...errorUtil.errToObj(null==t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...errorUtil.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...errorUtil.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...errorUtil.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...errorUtil.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...errorUtil.errToObj(t)})}nonempty(e){return this.min(1,errorUtil.errToObj(e))}trim(){return new ZodString({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new ZodString({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new ZodString({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find((e=>"datetime"===e.kind))}get isDate(){return!!this._def.checks.find((e=>"date"===e.kind))}get isTime(){return!!this._def.checks.find((e=>"time"===e.kind))}get isDuration(){return!!this._def.checks.find((e=>"duration"===e.kind))}get isEmail(){return!!this._def.checks.find((e=>"email"===e.kind))}get isURL(){return!!this._def.checks.find((e=>"url"===e.kind))}get isEmoji(){return!!this._def.checks.find((e=>"emoji"===e.kind))}get isUUID(){return!!this._def.checks.find((e=>"uuid"===e.kind))}get isNANOID(){return!!this._def.checks.find((e=>"nanoid"===e.kind))}get isCUID(){return!!this._def.checks.find((e=>"cuid"===e.kind))}get isCUID2(){return!!this._def.checks.find((e=>"cuid2"===e.kind))}get isULID(){return!!this._def.checks.find((e=>"ulid"===e.kind))}get isIP(){return!!this._def.checks.find((e=>"ip"===e.kind))}get isCIDR(){return!!this._def.checks.find((e=>"cidr"===e.kind))}get isBase64(){return!!this._def.checks.find((e=>"base64"===e.kind))}get isBase64url(){return!!this._def.checks.find((e=>"base64url"===e.kind))}get minLength(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}function floatSafeRemainder(e,t){const r=(e.toString().split(".")[1]||"").length,o=(t.toString().split(".")[1]||"").length,n=r>o?r:o;return parseInt(e.toFixed(n).replace(".",""))%parseInt(t.toFixed(n).replace(".",""))/Math.pow(10,n)}ZodString.create=e=>{var t;return new ZodString({checks:[],typeName:ZodFirstPartyTypeKind.ZodString,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...processCreateParams(e)})};class ZodNumber extends ZodType{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){this._def.coerce&&(e.data=Number(e.data));if(this._getType(e)!==ZodParsedType.number){const t=this._getOrReturnCtx(e);return addIssueToContext(t,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.number,received:t.parsedType}),INVALID}let t;const r=new ParseStatus;for(const o of this._def.checks)if("int"===o.kind)util.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),addIssueToContext(t,{code:ZodIssueCode.invalid_type,expected:"integer",received:"float",message:o.message}),r.dirty());else if("min"===o.kind){(o.inclusive?e.data<o.value:e.data<=o.value)&&(t=this._getOrReturnCtx(e,t),addIssueToContext(t,{code:ZodIssueCode.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),r.dirty())}else if("max"===o.kind){(o.inclusive?e.data>o.value:e.data>=o.value)&&(t=this._getOrReturnCtx(e,t),addIssueToContext(t,{code:ZodIssueCode.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),r.dirty())}else"multipleOf"===o.kind?0!==floatSafeRemainder(e.data,o.value)&&(t=this._getOrReturnCtx(e,t),addIssueToContext(t,{code:ZodIssueCode.not_multiple_of,multipleOf:o.value,message:o.message}),r.dirty()):"finite"===o.kind?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),addIssueToContext(t,{code:ZodIssueCode.not_finite,message:o.message}),r.dirty()):util.assertNever(o);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,errorUtil.toString(t))}gt(e,t){return this.setLimit("min",e,!1,errorUtil.toString(t))}lte(e,t){return this.setLimit("max",e,!0,errorUtil.toString(t))}lt(e,t){return this.setLimit("max",e,!1,errorUtil.toString(t))}setLimit(e,t,r,o){return new ZodNumber({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:errorUtil.toString(o)}]})}_addCheck(e){return new ZodNumber({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:errorUtil.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:errorUtil.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:errorUtil.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:errorUtil.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:errorUtil.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:errorUtil.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:errorUtil.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:errorUtil.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:errorUtil.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find((e=>"int"===e.kind||"multipleOf"===e.kind&&util.isInteger(e.value)))}get isFinite(){let e=null,t=null;for(const r of this._def.checks){if("finite"===r.kind||"int"===r.kind||"multipleOf"===r.kind)return!0;"min"===r.kind?(null===t||r.value>t)&&(t=r.value):"max"===r.kind&&(null===e||r.value<e)&&(e=r.value)}return Number.isFinite(t)&&Number.isFinite(e)}}ZodNumber.create=e=>new ZodNumber({checks:[],typeName:ZodFirstPartyTypeKind.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...processCreateParams(e)});class ZodBigInt extends ZodType{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch(o){return this._getInvalidInput(e)}if(this._getType(e)!==ZodParsedType.bigint)return this._getInvalidInput(e);let t;const r=new ParseStatus;for(const n of this._def.checks)if("min"===n.kind){(n.inclusive?e.data<n.value:e.data<=n.value)&&(t=this._getOrReturnCtx(e,t),addIssueToContext(t,{code:ZodIssueCode.too_small,type:"bigint",minimum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty())}else if("max"===n.kind){(n.inclusive?e.data>n.value:e.data>=n.value)&&(t=this._getOrReturnCtx(e,t),addIssueToContext(t,{code:ZodIssueCode.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty())}else"multipleOf"===n.kind?e.data%n.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),addIssueToContext(t,{code:ZodIssueCode.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):util.assertNever(n);return{status:r.value,value:e.data}}_getInvalidInput(e){const t=this._getOrReturnCtx(e);return addIssueToContext(t,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.bigint,received:t.parsedType}),INVALID}gte(e,t){return this.setLimit("min",e,!0,errorUtil.toString(t))}gt(e,t){return this.setLimit("min",e,!1,errorUtil.toString(t))}lte(e,t){return this.setLimit("max",e,!0,errorUtil.toString(t))}lt(e,t){return this.setLimit("max",e,!1,errorUtil.toString(t))}setLimit(e,t,r,o){return new ZodBigInt({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:errorUtil.toString(o)}]})}_addCheck(e){return new ZodBigInt({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:errorUtil.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:errorUtil.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:errorUtil.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:errorUtil.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:errorUtil.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}ZodBigInt.create=e=>{var t;return new ZodBigInt({checks:[],typeName:ZodFirstPartyTypeKind.ZodBigInt,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...processCreateParams(e)})};class ZodBoolean extends ZodType{_parse(e){this._def.coerce&&(e.data=Boolean(e.data));if(this._getType(e)!==ZodParsedType.boolean){const t=this._getOrReturnCtx(e);return addIssueToContext(t,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.boolean,received:t.parsedType}),INVALID}return OK(e.data)}}ZodBoolean.create=e=>new ZodBoolean({typeName:ZodFirstPartyTypeKind.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...processCreateParams(e)});class ZodDate extends ZodType{_parse(e){this._def.coerce&&(e.data=new Date(e.data));if(this._getType(e)!==ZodParsedType.date){const t=this._getOrReturnCtx(e);return addIssueToContext(t,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.date,received:t.parsedType}),INVALID}if(isNaN(e.data.getTime())){return addIssueToContext(this._getOrReturnCtx(e),{code:ZodIssueCode.invalid_date}),INVALID}const t=new ParseStatus;let r;for(const o of this._def.checks)"min"===o.kind?e.data.getTime()<o.value&&(r=this._getOrReturnCtx(e,r),addIssueToContext(r,{code:ZodIssueCode.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),t.dirty()):"max"===o.kind?e.data.getTime()>o.value&&(r=this._getOrReturnCtx(e,r),addIssueToContext(r,{code:ZodIssueCode.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),t.dirty()):util.assertNever(o);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(e){return new ZodDate({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:errorUtil.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:errorUtil.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}ZodDate.create=e=>new ZodDate({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:ZodFirstPartyTypeKind.ZodDate,...processCreateParams(e)});class ZodSymbol extends ZodType{_parse(e){if(this._getType(e)!==ZodParsedType.symbol){const t=this._getOrReturnCtx(e);return addIssueToContext(t,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.symbol,received:t.parsedType}),INVALID}return OK(e.data)}}ZodSymbol.create=e=>new ZodSymbol({typeName:ZodFirstPartyTypeKind.ZodSymbol,...processCreateParams(e)});class ZodUndefined extends ZodType{_parse(e){if(this._getType(e)!==ZodParsedType.undefined){const t=this._getOrReturnCtx(e);return addIssueToContext(t,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.undefined,received:t.parsedType}),INVALID}return OK(e.data)}}ZodUndefined.create=e=>new ZodUndefined({typeName:ZodFirstPartyTypeKind.ZodUndefined,...processCreateParams(e)});class ZodNull extends ZodType{_parse(e){if(this._getType(e)!==ZodParsedType.null){const t=this._getOrReturnCtx(e);return addIssueToContext(t,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.null,received:t.parsedType}),INVALID}return OK(e.data)}}ZodNull.create=e=>new ZodNull({typeName:ZodFirstPartyTypeKind.ZodNull,...processCreateParams(e)});class ZodAny extends ZodType{constructor(){super(...arguments),this._any=!0}_parse(e){return OK(e.data)}}ZodAny.create=e=>new ZodAny({typeName:ZodFirstPartyTypeKind.ZodAny,...processCreateParams(e)});class ZodUnknown extends ZodType{constructor(){super(...arguments),this._unknown=!0}_parse(e){return OK(e.data)}}ZodUnknown.create=e=>new ZodUnknown({typeName:ZodFirstPartyTypeKind.ZodUnknown,...processCreateParams(e)});class ZodNever extends ZodType{_parse(e){const t=this._getOrReturnCtx(e);return addIssueToContext(t,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.never,received:t.parsedType}),INVALID}}ZodNever.create=e=>new ZodNever({typeName:ZodFirstPartyTypeKind.ZodNever,...processCreateParams(e)});class ZodVoid extends ZodType{_parse(e){if(this._getType(e)!==ZodParsedType.undefined){const t=this._getOrReturnCtx(e);return addIssueToContext(t,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.void,received:t.parsedType}),INVALID}return OK(e.data)}}ZodVoid.create=e=>new ZodVoid({typeName:ZodFirstPartyTypeKind.ZodVoid,...processCreateParams(e)});class ZodArray extends ZodType{_parse(e){const{ctx:t,status:r}=this._processInputParams(e),o=this._def;if(t.parsedType!==ZodParsedType.array)return addIssueToContext(t,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.array,received:t.parsedType}),INVALID;if(null!==o.exactLength){const e=t.data.length>o.exactLength.value,n=t.data.length<o.exactLength.value;(e||n)&&(addIssueToContext(t,{code:e?ZodIssueCode.too_big:ZodIssueCode.too_small,minimum:n?o.exactLength.value:void 0,maximum:e?o.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:o.exactLength.message}),r.dirty())}if(null!==o.minLength&&t.data.length<o.minLength.value&&(addIssueToContext(t,{code:ZodIssueCode.too_small,minimum:o.minLength.value,type:"array",inclusive:!0,exact:!1,message:o.minLength.message}),r.dirty()),null!==o.maxLength&&t.data.length>o.maxLength.value&&(addIssueToContext(t,{code:ZodIssueCode.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),r.dirty()),t.common.async)return Promise.all([...t.data].map(((e,r)=>o.type._parseAsync(new ParseInputLazyPath(t,e,t.path,r))))).then((e=>ParseStatus.mergeArray(r,e)));const n=[...t.data].map(((e,r)=>o.type._parseSync(new ParseInputLazyPath(t,e,t.path,r))));return ParseStatus.mergeArray(r,n)}get element(){return this._def.type}min(e,t){return new ZodArray({...this._def,minLength:{value:e,message:errorUtil.toString(t)}})}max(e,t){return new ZodArray({...this._def,maxLength:{value:e,message:errorUtil.toString(t)}})}length(e,t){return new ZodArray({...this._def,exactLength:{value:e,message:errorUtil.toString(t)}})}nonempty(e){return this.min(1,e)}}function deepPartialify(e){if(e instanceof ZodObject){const t={};for(const r in e.shape){const o=e.shape[r];t[r]=ZodOptional.create(deepPartialify(o))}return new ZodObject({...e._def,shape:()=>t})}return e instanceof ZodArray?new ZodArray({...e._def,type:deepPartialify(e.element)}):e instanceof ZodOptional?ZodOptional.create(deepPartialify(e.unwrap())):e instanceof ZodNullable?ZodNullable.create(deepPartialify(e.unwrap())):e instanceof ZodTuple?ZodTuple.create(e.items.map((e=>deepPartialify(e)))):e}ZodArray.create=(e,t)=>new ZodArray({type:e,minLength:null,maxLength:null,exactLength:null,typeName:ZodFirstPartyTypeKind.ZodArray,...processCreateParams(t)});class ZodObject extends ZodType{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;const e=this._def.shape(),t=util.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==ZodParsedType.object){const t=this._getOrReturnCtx(e);return addIssueToContext(t,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.object,received:t.parsedType}),INVALID}const{status:t,ctx:r}=this._processInputParams(e),{shape:o,keys:n}=this._getCached(),i=[];if(!(this._def.catchall instanceof ZodNever&&"strip"===this._def.unknownKeys))for(const s in r.data)n.includes(s)||i.push(s);const a=[];for(const s of n){const e=o[s],t=r.data[s];a.push({key:{status:"valid",value:s},value:e._parse(new ParseInputLazyPath(r,t,r.path,s)),alwaysSet:s in r.data})}if(this._def.catchall instanceof ZodNever){const e=this._def.unknownKeys;if("passthrough"===e)for(const t of i)a.push({key:{status:"valid",value:t},value:{status:"valid",value:r.data[t]}});else if("strict"===e)i.length>0&&(addIssueToContext(r,{code:ZodIssueCode.unrecognized_keys,keys:i}),t.dirty());else if("strip"!==e)throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const e=this._def.catchall;for(const t of i){const o=r.data[t];a.push({key:{status:"valid",value:t},value:e._parse(new ParseInputLazyPath(r,o,r.path,t)),alwaysSet:t in r.data})}}return r.common.async?Promise.resolve().then((async()=>{const e=[];for(const t of a){const r=await t.key,o=await t.value;e.push({key:r,value:o,alwaysSet:t.alwaysSet})}return e})).then((e=>ParseStatus.mergeObjectSync(t,e))):ParseStatus.mergeObjectSync(t,a)}get shape(){return this._def.shape()}strict(e){return errorUtil.errToObj,new ZodObject({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,r)=>{var o,n,i,a;const s=null!==(i=null===(n=(o=this._def).errorMap)||void 0===n?void 0:n.call(o,t,r).message)&&void 0!==i?i:r.defaultError;return"unrecognized_keys"===t.code?{message:null!==(a=errorUtil.errToObj(e).message)&&void 0!==a?a:s}:{message:s}}}:{}})}strip(){return new ZodObject({...this._def,unknownKeys:"strip"})}passthrough(){return new ZodObject({...this._def,unknownKeys:"passthrough"})}extend(e){return new ZodObject({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new ZodObject({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:ZodFirstPartyTypeKind.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new ZodObject({...this._def,catchall:e})}pick(e){const t={};return util.objectKeys(e).forEach((r=>{e[r]&&this.shape[r]&&(t[r]=this.shape[r])})),new ZodObject({...this._def,shape:()=>t})}omit(e){const t={};return util.objectKeys(this.shape).forEach((r=>{e[r]||(t[r]=this.shape[r])})),new ZodObject({...this._def,shape:()=>t})}deepPartial(){return deepPartialify(this)}partial(e){const t={};return util.objectKeys(this.shape).forEach((r=>{const o=this.shape[r];e&&!e[r]?t[r]=o:t[r]=o.optional()})),new ZodObject({...this._def,shape:()=>t})}required(e){const t={};return util.objectKeys(this.shape).forEach((r=>{if(e&&!e[r])t[r]=this.shape[r];else{let e=this.shape[r];for(;e instanceof ZodOptional;)e=e._def.innerType;t[r]=e}})),new ZodObject({...this._def,shape:()=>t})}keyof(){return createZodEnum(util.objectKeys(this.shape))}}ZodObject.create=(e,t)=>new ZodObject({shape:()=>e,unknownKeys:"strip",catchall:ZodNever.create(),typeName:ZodFirstPartyTypeKind.ZodObject,...processCreateParams(t)}),ZodObject.strictCreate=(e,t)=>new ZodObject({shape:()=>e,unknownKeys:"strict",catchall:ZodNever.create(),typeName:ZodFirstPartyTypeKind.ZodObject,...processCreateParams(t)}),ZodObject.lazycreate=(e,t)=>new ZodObject({shape:e,unknownKeys:"strip",catchall:ZodNever.create(),typeName:ZodFirstPartyTypeKind.ZodObject,...processCreateParams(t)});class ZodUnion extends ZodType{_parse(e){const{ctx:t}=this._processInputParams(e),r=this._def.options;if(t.common.async)return Promise.all(r.map((async e=>{const r={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:r}),ctx:r}}))).then((function(e){for(const t of e)if("valid"===t.result.status)return t.result;for(const o of e)if("dirty"===o.result.status)return t.common.issues.push(...o.ctx.common.issues),o.result;const r=e.map((e=>new ZodError(e.ctx.common.issues)));return addIssueToContext(t,{code:ZodIssueCode.invalid_union,unionErrors:r}),INVALID}));{let e;const o=[];for(const i of r){const r={...t,common:{...t.common,issues:[]},parent:null},n=i._parseSync({data:t.data,path:t.path,parent:r});if("valid"===n.status)return n;"dirty"!==n.status||e||(e={result:n,ctx:r}),r.common.issues.length&&o.push(r.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;const n=o.map((e=>new ZodError(e)));return addIssueToContext(t,{code:ZodIssueCode.invalid_union,unionErrors:n}),INVALID}}get options(){return this._def.options}}ZodUnion.create=(e,t)=>new ZodUnion({options:e,typeName:ZodFirstPartyTypeKind.ZodUnion,...processCreateParams(t)});const getDiscriminator=e=>e instanceof ZodLazy?getDiscriminator(e.schema):e instanceof ZodEffects?getDiscriminator(e.innerType()):e instanceof ZodLiteral?[e.value]:e instanceof ZodEnum?e.options:e instanceof ZodNativeEnum?util.objectValues(e.enum):e instanceof ZodDefault?getDiscriminator(e._def.innerType):e instanceof ZodUndefined?[void 0]:e instanceof ZodNull?[null]:e instanceof ZodOptional?[void 0,...getDiscriminator(e.unwrap())]:e instanceof ZodNullable?[null,...getDiscriminator(e.unwrap())]:e instanceof ZodBranded||e instanceof ZodReadonly?getDiscriminator(e.unwrap()):e instanceof ZodCatch?getDiscriminator(e._def.innerType):[];class ZodDiscriminatedUnion extends ZodType{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==ZodParsedType.object)return addIssueToContext(t,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.object,received:t.parsedType}),INVALID;const r=this.discriminator,o=t.data[r],n=this.optionsMap.get(o);return n?t.common.async?n._parseAsync({data:t.data,path:t.path,parent:t}):n._parseSync({data:t.data,path:t.path,parent:t}):(addIssueToContext(t,{code:ZodIssueCode.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),INVALID)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,r){const o=new Map;for(const n of t){const t=getDiscriminator(n.shape[e]);if(!t.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const r of t){if(o.has(r))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(r)}`);o.set(r,n)}}return new ZodDiscriminatedUnion({typeName:ZodFirstPartyTypeKind.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:o,...processCreateParams(r)})}}function mergeValues(e,t){const r=getParsedType(e),o=getParsedType(t);if(e===t)return{valid:!0,data:e};if(r===ZodParsedType.object&&o===ZodParsedType.object){const r=util.objectKeys(t),o=util.objectKeys(e).filter((e=>-1!==r.indexOf(e))),n={...e,...t};for(const i of o){const r=mergeValues(e[i],t[i]);if(!r.valid)return{valid:!1};n[i]=r.data}return{valid:!0,data:n}}if(r===ZodParsedType.array&&o===ZodParsedType.array){if(e.length!==t.length)return{valid:!1};const r=[];for(let o=0;o<e.length;o++){const n=mergeValues(e[o],t[o]);if(!n.valid)return{valid:!1};r.push(n.data)}return{valid:!0,data:r}}return r===ZodParsedType.date&&o===ZodParsedType.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class ZodIntersection extends ZodType{_parse(e){const{status:t,ctx:r}=this._processInputParams(e),o=(e,o)=>{if(isAborted(e)||isAborted(o))return INVALID;const n=mergeValues(e.value,o.value);return n.valid?((isDirty(e)||isDirty(o))&&t.dirty(),{status:t.value,value:n.data}):(addIssueToContext(r,{code:ZodIssueCode.invalid_intersection_types}),INVALID)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then((([e,t])=>o(e,t))):o(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}ZodIntersection.create=(e,t,r)=>new ZodIntersection({left:e,right:t,typeName:ZodFirstPartyTypeKind.ZodIntersection,...processCreateParams(r)});class ZodTuple extends ZodType{_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==ZodParsedType.array)return addIssueToContext(r,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.array,received:r.parsedType}),INVALID;if(r.data.length<this._def.items.length)return addIssueToContext(r,{code:ZodIssueCode.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),INVALID;!this._def.rest&&r.data.length>this._def.items.length&&(addIssueToContext(r,{code:ZodIssueCode.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const o=[...r.data].map(((e,t)=>{const o=this._def.items[t]||this._def.rest;return o?o._parse(new ParseInputLazyPath(r,e,r.path,t)):null})).filter((e=>!!e));return r.common.async?Promise.all(o).then((e=>ParseStatus.mergeArray(t,e))):ParseStatus.mergeArray(t,o)}get items(){return this._def.items}rest(e){return new ZodTuple({...this._def,rest:e})}}ZodTuple.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ZodTuple({items:e,typeName:ZodFirstPartyTypeKind.ZodTuple,rest:null,...processCreateParams(t)})};class ZodRecord extends ZodType{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==ZodParsedType.object)return addIssueToContext(r,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.object,received:r.parsedType}),INVALID;const o=[],n=this._def.keyType,i=this._def.valueType;for(const a in r.data)o.push({key:n._parse(new ParseInputLazyPath(r,a,r.path,a)),value:i._parse(new ParseInputLazyPath(r,r.data[a],r.path,a)),alwaysSet:a in r.data});return r.common.async?ParseStatus.mergeObjectAsync(t,o):ParseStatus.mergeObjectSync(t,o)}get element(){return this._def.valueType}static create(e,t,r){return new ZodRecord(t instanceof ZodType?{keyType:e,valueType:t,typeName:ZodFirstPartyTypeKind.ZodRecord,...processCreateParams(r)}:{keyType:ZodString.create(),valueType:e,typeName:ZodFirstPartyTypeKind.ZodRecord,...processCreateParams(t)})}}class ZodMap extends ZodType{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==ZodParsedType.map)return addIssueToContext(r,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.map,received:r.parsedType}),INVALID;const o=this._def.keyType,n=this._def.valueType,i=[...r.data.entries()].map((([e,t],i)=>({key:o._parse(new ParseInputLazyPath(r,e,r.path,[i,"key"])),value:n._parse(new ParseInputLazyPath(r,t,r.path,[i,"value"]))})));if(r.common.async){const e=new Map;return Promise.resolve().then((async()=>{for(const r of i){const o=await r.key,n=await r.value;if("aborted"===o.status||"aborted"===n.status)return INVALID;"dirty"!==o.status&&"dirty"!==n.status||t.dirty(),e.set(o.value,n.value)}return{status:t.value,value:e}}))}{const e=new Map;for(const r of i){const o=r.key,n=r.value;if("aborted"===o.status||"aborted"===n.status)return INVALID;"dirty"!==o.status&&"dirty"!==n.status||t.dirty(),e.set(o.value,n.value)}return{status:t.value,value:e}}}}ZodMap.create=(e,t,r)=>new ZodMap({valueType:t,keyType:e,typeName:ZodFirstPartyTypeKind.ZodMap,...processCreateParams(r)});class ZodSet extends ZodType{_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==ZodParsedType.set)return addIssueToContext(r,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.set,received:r.parsedType}),INVALID;const o=this._def;null!==o.minSize&&r.data.size<o.minSize.value&&(addIssueToContext(r,{code:ZodIssueCode.too_small,minimum:o.minSize.value,type:"set",inclusive:!0,exact:!1,message:o.minSize.message}),t.dirty()),null!==o.maxSize&&r.data.size>o.maxSize.value&&(addIssueToContext(r,{code:ZodIssueCode.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),t.dirty());const n=this._def.valueType;function i(e){const r=new Set;for(const o of e){if("aborted"===o.status)return INVALID;"dirty"===o.status&&t.dirty(),r.add(o.value)}return{status:t.value,value:r}}const a=[...r.data.values()].map(((e,t)=>n._parse(new ParseInputLazyPath(r,e,r.path,t))));return r.common.async?Promise.all(a).then((e=>i(e))):i(a)}min(e,t){return new ZodSet({...this._def,minSize:{value:e,message:errorUtil.toString(t)}})}max(e,t){return new ZodSet({...this._def,maxSize:{value:e,message:errorUtil.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}ZodSet.create=(e,t)=>new ZodSet({valueType:e,minSize:null,maxSize:null,typeName:ZodFirstPartyTypeKind.ZodSet,...processCreateParams(t)});class ZodFunction extends ZodType{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==ZodParsedType.function)return addIssueToContext(t,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.function,received:t.parsedType}),INVALID;function r(e,r){return makeIssue({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,getErrorMap(),errorMap].filter((e=>!!e)),issueData:{code:ZodIssueCode.invalid_arguments,argumentsError:r}})}function o(e,r){return makeIssue({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,getErrorMap(),errorMap].filter((e=>!!e)),issueData:{code:ZodIssueCode.invalid_return_type,returnTypeError:r}})}const n={errorMap:t.common.contextualErrorMap},i=t.data;if(this._def.returns instanceof ZodPromise){const e=this;return OK((async function(...t){const a=new ZodError([]),s=await e._def.args.parseAsync(t,n).catch((e=>{throw a.addIssue(r(t,e)),a})),c=await Reflect.apply(i,this,s);return await e._def.returns._def.type.parseAsync(c,n).catch((e=>{throw a.addIssue(o(c,e)),a}))}))}{const e=this;return OK((function(...t){const a=e._def.args.safeParse(t,n);if(!a.success)throw new ZodError([r(t,a.error)]);const s=Reflect.apply(i,this,a.data),c=e._def.returns.safeParse(s,n);if(!c.success)throw new ZodError([o(s,c.error)]);return c.data}))}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new ZodFunction({...this._def,args:ZodTuple.create(e).rest(ZodUnknown.create())})}returns(e){return new ZodFunction({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,r){return new ZodFunction({args:e||ZodTuple.create([]).rest(ZodUnknown.create()),returns:t||ZodUnknown.create(),typeName:ZodFirstPartyTypeKind.ZodFunction,...processCreateParams(r)})}}class ZodLazy extends ZodType{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}ZodLazy.create=(e,t)=>new ZodLazy({getter:e,typeName:ZodFirstPartyTypeKind.ZodLazy,...processCreateParams(t)});class ZodLiteral extends ZodType{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return addIssueToContext(t,{received:t.data,code:ZodIssueCode.invalid_literal,expected:this._def.value}),INVALID}return{status:"valid",value:e.data}}get value(){return this._def.value}}function createZodEnum(e,t){return new ZodEnum({values:e,typeName:ZodFirstPartyTypeKind.ZodEnum,...processCreateParams(t)})}ZodLiteral.create=(e,t)=>new ZodLiteral({value:e,typeName:ZodFirstPartyTypeKind.ZodLiteral,...processCreateParams(t)});class ZodEnum extends ZodType{constructor(){super(...arguments),_ZodEnum_cache.set(this,void 0)}_parse(e){if("string"!=typeof e.data){const t=this._getOrReturnCtx(e),r=this._def.values;return addIssueToContext(t,{expected:util.joinValues(r),received:t.parsedType,code:ZodIssueCode.invalid_type}),INVALID}if(__classPrivateFieldGet(this,_ZodEnum_cache)||__classPrivateFieldSet(this,_ZodEnum_cache,new Set(this._def.values)),!__classPrivateFieldGet(this,_ZodEnum_cache).has(e.data)){const t=this._getOrReturnCtx(e),r=this._def.values;return addIssueToContext(t,{received:t.data,code:ZodIssueCode.invalid_enum_value,options:r}),INVALID}return OK(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return ZodEnum.create(e,{...this._def,...t})}exclude(e,t=this._def){return ZodEnum.create(this.options.filter((t=>!e.includes(t))),{...this._def,...t})}}_ZodEnum_cache=new WeakMap,ZodEnum.create=createZodEnum;class ZodNativeEnum extends ZodType{constructor(){super(...arguments),_ZodNativeEnum_cache.set(this,void 0)}_parse(e){const t=util.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==ZodParsedType.string&&r.parsedType!==ZodParsedType.number){const e=util.objectValues(t);return addIssueToContext(r,{expected:util.joinValues(e),received:r.parsedType,code:ZodIssueCode.invalid_type}),INVALID}if(__classPrivateFieldGet(this,_ZodNativeEnum_cache)||__classPrivateFieldSet(this,_ZodNativeEnum_cache,new Set(util.getValidEnumValues(this._def.values))),!__classPrivateFieldGet(this,_ZodNativeEnum_cache).has(e.data)){const e=util.objectValues(t);return addIssueToContext(r,{received:r.data,code:ZodIssueCode.invalid_enum_value,options:e}),INVALID}return OK(e.data)}get enum(){return this._def.values}}_ZodNativeEnum_cache=new WeakMap,ZodNativeEnum.create=(e,t)=>new ZodNativeEnum({values:e,typeName:ZodFirstPartyTypeKind.ZodNativeEnum,...processCreateParams(t)});class ZodPromise extends ZodType{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==ZodParsedType.promise&&!1===t.common.async)return addIssueToContext(t,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.promise,received:t.parsedType}),INVALID;const r=t.parsedType===ZodParsedType.promise?t.data:Promise.resolve(t.data);return OK(r.then((e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap}))))}}ZodPromise.create=(e,t)=>new ZodPromise({type:e,typeName:ZodFirstPartyTypeKind.ZodPromise,...processCreateParams(t)});class ZodEffects extends ZodType{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ZodFirstPartyTypeKind.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:r}=this._processInputParams(e),o=this._def.effect||null,n={addIssue:e=>{addIssueToContext(r,e),e.fatal?t.abort():t.dirty()},get path(){return r.path}};if(n.addIssue=n.addIssue.bind(n),"preprocess"===o.type){const e=o.transform(r.data,n);if(r.common.async)return Promise.resolve(e).then((async e=>{if("aborted"===t.value)return INVALID;const o=await this._def.schema._parseAsync({data:e,path:r.path,parent:r});return"aborted"===o.status?INVALID:"dirty"===o.status||"dirty"===t.value?DIRTY(o.value):o}));{if("aborted"===t.value)return INVALID;const o=this._def.schema._parseSync({data:e,path:r.path,parent:r});return"aborted"===o.status?INVALID:"dirty"===o.status||"dirty"===t.value?DIRTY(o.value):o}}if("refinement"===o.type){const e=e=>{const t=o.refinement(e,n);if(r.common.async)return Promise.resolve(t);if(t instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1===r.common.async){const o=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===o.status?INVALID:("dirty"===o.status&&t.dirty(),e(o.value),{status:t.value,value:o.value})}return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then((r=>"aborted"===r.status?INVALID:("dirty"===r.status&&t.dirty(),e(r.value).then((()=>({status:t.value,value:r.value}))))))}if("transform"===o.type){if(!1===r.common.async){const e=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!isValid(e))return e;const i=o.transform(e.value,n);if(i instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:i}}return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then((e=>isValid(e)?Promise.resolve(o.transform(e.value,n)).then((e=>({status:t.value,value:e}))):e))}util.assertNever(o)}}ZodEffects.create=(e,t,r)=>new ZodEffects({schema:e,typeName:ZodFirstPartyTypeKind.ZodEffects,effect:t,...processCreateParams(r)}),ZodEffects.createWithPreprocess=(e,t,r)=>new ZodEffects({schema:t,effect:{type:"preprocess",transform:e},typeName:ZodFirstPartyTypeKind.ZodEffects,...processCreateParams(r)});class ZodOptional extends ZodType{_parse(e){return this._getType(e)===ZodParsedType.undefined?OK(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ZodOptional.create=(e,t)=>new ZodOptional({innerType:e,typeName:ZodFirstPartyTypeKind.ZodOptional,...processCreateParams(t)});class ZodNullable extends ZodType{_parse(e){return this._getType(e)===ZodParsedType.null?OK(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ZodNullable.create=(e,t)=>new ZodNullable({innerType:e,typeName:ZodFirstPartyTypeKind.ZodNullable,...processCreateParams(t)});class ZodDefault extends ZodType{_parse(e){const{ctx:t}=this._processInputParams(e);let r=t.data;return t.parsedType===ZodParsedType.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}ZodDefault.create=(e,t)=>new ZodDefault({innerType:e,typeName:ZodFirstPartyTypeKind.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...processCreateParams(t)});class ZodCatch extends ZodType{_parse(e){const{ctx:t}=this._processInputParams(e),r={...t,common:{...t.common,issues:[]}},o=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return isAsync(o)?o.then((e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new ZodError(r.common.issues)},input:r.data})}))):{status:"valid",value:"valid"===o.status?o.value:this._def.catchValue({get error(){return new ZodError(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}ZodCatch.create=(e,t)=>new ZodCatch({innerType:e,typeName:ZodFirstPartyTypeKind.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...processCreateParams(t)});class ZodNaN extends ZodType{_parse(e){if(this._getType(e)!==ZodParsedType.nan){const t=this._getOrReturnCtx(e);return addIssueToContext(t,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.nan,received:t.parsedType}),INVALID}return{status:"valid",value:e.data}}}ZodNaN.create=e=>new ZodNaN({typeName:ZodFirstPartyTypeKind.ZodNaN,...processCreateParams(e)});const BRAND=Symbol("zod_brand");class ZodBranded extends ZodType{_parse(e){const{ctx:t}=this._processInputParams(e),r=t.data;return this._def.type._parse({data:r,path:t.path,parent:t})}unwrap(){return this._def.type}}class ZodPipeline extends ZodType{_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.common.async){return(async()=>{const e=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?INVALID:"dirty"===e.status?(t.dirty(),DIRTY(e.value)):this._def.out._parseAsync({data:e.value,path:r.path,parent:r})})()}{const e=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?INVALID:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:r.path,parent:r})}}static create(e,t){return new ZodPipeline({in:e,out:t,typeName:ZodFirstPartyTypeKind.ZodPipeline})}}class ZodReadonly extends ZodType{_parse(e){const t=this._def.innerType._parse(e),r=e=>(isValid(e)&&(e.value=Object.freeze(e.value)),e);return isAsync(t)?t.then((e=>r(e))):r(t)}unwrap(){return this._def.innerType}}function cleanParams(e,t){const r="function"==typeof e?e(t):"string"==typeof e?{message:e}:e;return"string"==typeof r?{message:r}:r}function custom(e,t={},r){return e?ZodAny.create().superRefine(((o,n)=>{var i,a;const s=e(o);if(s instanceof Promise)return s.then((e=>{var i,a;if(!e){const e=cleanParams(t,o),s=null===(a=null!==(i=e.fatal)&&void 0!==i?i:r)||void 0===a||a;n.addIssue({code:"custom",...e,fatal:s})}}));if(!s){const e=cleanParams(t,o),s=null===(a=null!==(i=e.fatal)&&void 0!==i?i:r)||void 0===a||a;n.addIssue({code:"custom",...e,fatal:s})}})):ZodAny.create()}ZodReadonly.create=(e,t)=>new ZodReadonly({innerType:e,typeName:ZodFirstPartyTypeKind.ZodReadonly,...processCreateParams(t)});const late={object:ZodObject.lazycreate};var ZodFirstPartyTypeKind,ZodFirstPartyTypeKind2;ZodFirstPartyTypeKind2=ZodFirstPartyTypeKind||(ZodFirstPartyTypeKind={}),ZodFirstPartyTypeKind2.ZodString="ZodString",ZodFirstPartyTypeKind2.ZodNumber="ZodNumber",ZodFirstPartyTypeKind2.ZodNaN="ZodNaN",ZodFirstPartyTypeKind2.ZodBigInt="ZodBigInt",ZodFirstPartyTypeKind2.ZodBoolean="ZodBoolean",ZodFirstPartyTypeKind2.ZodDate="ZodDate",ZodFirstPartyTypeKind2.ZodSymbol="ZodSymbol",ZodFirstPartyTypeKind2.ZodUndefined="ZodUndefined",ZodFirstPartyTypeKind2.ZodNull="ZodNull",ZodFirstPartyTypeKind2.ZodAny="ZodAny",ZodFirstPartyTypeKind2.ZodUnknown="ZodUnknown",ZodFirstPartyTypeKind2.ZodNever="ZodNever",ZodFirstPartyTypeKind2.ZodVoid="ZodVoid",ZodFirstPartyTypeKind2.ZodArray="ZodArray",ZodFirstPartyTypeKind2.ZodObject="ZodObject",ZodFirstPartyTypeKind2.ZodUnion="ZodUnion",ZodFirstPartyTypeKind2.ZodDiscriminatedUnion="ZodDiscriminatedUnion",ZodFirstPartyTypeKind2.ZodIntersection="ZodIntersection",ZodFirstPartyTypeKind2.ZodTuple="ZodTuple",ZodFirstPartyTypeKind2.ZodRecord="ZodRecord",ZodFirstPartyTypeKind2.ZodMap="ZodMap",ZodFirstPartyTypeKind2.ZodSet="ZodSet",ZodFirstPartyTypeKind2.ZodFunction="ZodFunction",ZodFirstPartyTypeKind2.ZodLazy="ZodLazy",ZodFirstPartyTypeKind2.ZodLiteral="ZodLiteral",ZodFirstPartyTypeKind2.ZodEnum="ZodEnum",ZodFirstPartyTypeKind2.ZodEffects="ZodEffects",ZodFirstPartyTypeKind2.ZodNativeEnum="ZodNativeEnum",ZodFirstPartyTypeKind2.ZodOptional="ZodOptional",ZodFirstPartyTypeKind2.ZodNullable="ZodNullable",ZodFirstPartyTypeKind2.ZodDefault="ZodDefault",ZodFirstPartyTypeKind2.ZodCatch="ZodCatch",ZodFirstPartyTypeKind2.ZodPromise="ZodPromise",ZodFirstPartyTypeKind2.ZodBranded="ZodBranded",ZodFirstPartyTypeKind2.ZodPipeline="ZodPipeline",ZodFirstPartyTypeKind2.ZodReadonly="ZodReadonly";const instanceOfType=(e,t={message:`Input not instance of ${e.name}`})=>custom((t=>t instanceof e),t),stringType=ZodString.create,numberType=ZodNumber.create,nanType=ZodNaN.create,bigIntType=ZodBigInt.create,booleanType=ZodBoolean.create,dateType=ZodDate.create,symbolType=ZodSymbol.create,undefinedType=ZodUndefined.create,nullType=ZodNull.create,anyType=ZodAny.create,unknownType=ZodUnknown.create,neverType=ZodNever.create,voidType=ZodVoid.create,arrayType=ZodArray.create,objectType=ZodObject.create,strictObjectType=ZodObject.strictCreate,unionType=ZodUnion.create,discriminatedUnionType=ZodDiscriminatedUnion.create,intersectionType=ZodIntersection.create,tupleType=ZodTuple.create,recordType=ZodRecord.create,mapType=ZodMap.create,setType=ZodSet.create,functionType=ZodFunction.create,lazyType=ZodLazy.create,literalType=ZodLiteral.create,enumType=ZodEnum.create,nativeEnumType=ZodNativeEnum.create,promiseType=ZodPromise.create,effectsType=ZodEffects.create,optionalType=ZodOptional.create,nullableType=ZodNullable.create,preprocessType=ZodEffects.createWithPreprocess,pipelineType=ZodPipeline.create,ostring=()=>stringType().optional(),onumber=()=>numberType().optional(),oboolean=()=>booleanType().optional(),coerce={string:e=>ZodString.create({...e,coerce:!0}),number:e=>ZodNumber.create({...e,coerce:!0}),boolean:e=>ZodBoolean.create({...e,coerce:!0}),bigint:e=>ZodBigInt.create({...e,coerce:!0}),date:e=>ZodDate.create({...e,coerce:!0})},NEVER=INVALID;var z=Object.freeze({__proto__:null,defaultErrorMap:errorMap,setErrorMap:setErrorMap,getErrorMap:getErrorMap,makeIssue:makeIssue,EMPTY_PATH:EMPTY_PATH,addIssueToContext:addIssueToContext,ParseStatus:ParseStatus,INVALID:INVALID,DIRTY:DIRTY,OK:OK,isAborted:isAborted,isDirty:isDirty,isValid:isValid,isAsync:isAsync,get util(){return util},get objectUtil(){return objectUtil},ZodParsedType:ZodParsedType,getParsedType:getParsedType,ZodType:ZodType,datetimeRegex:datetimeRegex,ZodString:ZodString,ZodNumber:ZodNumber,ZodBigInt:ZodBigInt,ZodBoolean:ZodBoolean,ZodDate:ZodDate,ZodSymbol:ZodSymbol,ZodUndefined:ZodUndefined,ZodNull:ZodNull,ZodAny:ZodAny,ZodUnknown:ZodUnknown,ZodNever:ZodNever,ZodVoid:ZodVoid,ZodArray:ZodArray,ZodObject:ZodObject,ZodUnion:ZodUnion,ZodDiscriminatedUnion:ZodDiscriminatedUnion,ZodIntersection:ZodIntersection,ZodTuple:ZodTuple,ZodRecord:ZodRecord,ZodMap:ZodMap,ZodSet:ZodSet,ZodFunction:ZodFunction,ZodLazy:ZodLazy,ZodLiteral:ZodLiteral,ZodEnum:ZodEnum,ZodNativeEnum:ZodNativeEnum,ZodPromise:ZodPromise,ZodEffects:ZodEffects,ZodTransformer:ZodEffects,ZodOptional:ZodOptional,ZodNullable:ZodNullable,ZodDefault:ZodDefault,ZodCatch:ZodCatch,ZodNaN:ZodNaN,BRAND:BRAND,ZodBranded:ZodBranded,ZodPipeline:ZodPipeline,ZodReadonly:ZodReadonly,custom:custom,Schema:ZodType,ZodSchema:ZodType,late:late,get ZodFirstPartyTypeKind(){return ZodFirstPartyTypeKind},coerce:coerce,any:anyType,array:arrayType,bigint:bigIntType,boolean:booleanType,date:dateType,discriminatedUnion:discriminatedUnionType,effect:effectsType,enum:enumType,function:functionType,instanceof:instanceOfType,intersection:intersectionType,lazy:lazyType,literal:literalType,map:mapType,nan:nanType,nativeEnum:nativeEnumType,never:neverType,null:nullType,nullable:nullableType,number:numberType,object:objectType,oboolean:oboolean,onumber:onumber,optional:optionalType,ostring:ostring,pipeline:pipelineType,preprocess:preprocessType,promise:promiseType,record:recordType,set:setType,strictObject:strictObjectType,string:stringType,symbol:symbolType,transformer:effectsType,tuple:tupleType,undefined:undefinedType,union:unionType,unknown:unknownType,void:voidType,NEVER:NEVER,ZodIssueCode:ZodIssueCode,quotelessJson:quotelessJson,ZodError:ZodError}),ProfileType=(e=>(e[e.PERSONAL=0]="PERSONAL",e[e.AI_AGENT=1]="AI_AGENT",e))(ProfileType||{}),AIAgentType=(e=>(e[e.MANUAL=0]="MANUAL",e[e.AUTONOMOUS=1]="AUTONOMOUS",e))(AIAgentType||{}),EndpointType=(e=>(e[e.REST=0]="REST",e[e.WEBSOCKET=1]="WEBSOCKET",e[e.GRPC=2]="GRPC",e))(EndpointType||{}),AIAgentCapability=(e=>(e[e.TEXT_GENERATION=0]="TEXT_GENERATION",e[e.IMAGE_GENERATION=1]="IMAGE_GENERATION",e[e.AUDIO_GENERATION=2]="AUDIO_GENERATION",e[e.VIDEO_GENERATION=3]="VIDEO_GENERATION",e[e.CODE_GENERATION=4]="CODE_GENERATION",e[e.LANGUAGE_TRANSLATION=5]="LANGUAGE_TRANSLATION",e[e.SUMMARIZATION_EXTRACTION=6]="SUMMARIZATION_EXTRACTION",e[e.KNOWLEDGE_RETRIEVAL=7]="KNOWLEDGE_RETRIEVAL",e[e.DATA_INTEGRATION=8]="DATA_INTEGRATION",e[e.MARKET_INTELLIGENCE=9]="MARKET_INTELLIGENCE",e[e.TRANSACTION_ANALYTICS=10]="TRANSACTION_ANALYTICS",e[e.SMART_CONTRACT_AUDIT=11]="SMART_CONTRACT_AUDIT",e[e.GOVERNANCE_FACILITATION=12]="GOVERNANCE_FACILITATION",e[e.SECURITY_MONITORING=13]="SECURITY_MONITORING",e[e.COMPLIANCE_ANALYSIS=14]="COMPLIANCE_ANALYSIS",e[e.FRAUD_DETECTION=15]="FRAUD_DETECTION",e[e.MULTI_AGENT_COORDINATION=16]="MULTI_AGENT_COORDINATION",e[e.API_INTEGRATION=17]="API_INTEGRATION",e[e.WORKFLOW_AUTOMATION=18]="WORKFLOW_AUTOMATION",e))(AIAgentCapability||{});const SUPPORTED_SOCIAL_PLATFORMS=["twitter","github","discord","telegram","linkedin","youtube"],SocialLinkSchema=z.object({platform:z.string().min(1),handle:z.string().min(1)}),AIAgentDetailsSchema=z.object({type:z.nativeEnum(AIAgentType),capabilities:z.array(z.nativeEnum(AIAgentCapability)).min(1),model:z.string().min(1),creator:z.string().optional()}),BaseProfileSchema=z.object({version:z.string().min(1),type:z.nativeEnum(ProfileType),display_name:z.string().min(1),alias:z.string().optional(),bio:z.string().optional(),socials:z.array(SocialLinkSchema).optional(),profileImage:z.string().optional(),properties:z.record(z.any()).optional(),inboundTopicId:z.string().optional(),outboundTopicId:z.string().optional()}),PersonalProfileSchema=BaseProfileSchema.extend({type:z.literal(0),language:z.string().optional(),timezone:z.string().optional()}),AIAgentProfileSchema=BaseProfileSchema.extend({type:z.literal(1),aiAgent:AIAgentDetailsSchema}),HCS11ProfileSchema=z.union([PersonalProfileSchema,AIAgentProfileSchema]),capabilityNameToCapabilityMap={text_generation:0,image_generation:1,audio_generation:2,video_generation:3,code_generation:4,language_translation:5,summarization:6,extraction:6,knowledge_retrieval:7,data_integration:8,data_visualization:8,market_intelligence:9,transaction_analytics:10,smart_contract_audit:11,governance:12,security_monitoring:13,compliance_analysis:14,fraud_detection:15,multi_agent:16,api_integration:17,workflow_automation:18};class HCS11Client{constructor(e){if(this.client="mainnet"===e.network?i$1.forMainnet():i$1.forTestnet(),this.auth=e.auth,this.network=e.network,this.auth.privateKey){const e=y$2.fromString(this.auth.privateKey);this.client.setOperator(this.auth.operatorId,e)}this.logger=Logger$2.getInstance({level:e.logLevel||"info",module:"HCS-11"})}getClient(){return this.client}getOperatorId(){return this.auth.operatorId}createPersonalProfile(e,t){return{version:"1.0",type:0,display_name:e,alias:null==t?void 0:t.alias,bio:null==t?void 0:t.bio,socials:null==t?void 0:t.socials,profileImage:null==t?void 0:t.profileImage,language:null==t?void 0:t.language,timezone:null==t?void 0:t.timezone,properties:null==t?void 0:t.properties,inboundTopicId:null==t?void 0:t.inboundTopicId,outboundTopicId:null==t?void 0:t.outboundTopicId}}createAIAgentProfile(e,t,r,o,n){const i=this.validateProfile({version:"1.0",type:1,display_name:e,alias:null==n?void 0:n.alias,bio:null==n?void 0:n.bio,socials:null==n?void 0:n.socials,profileImage:null==n?void 0:n.profileImage,properties:null==n?void 0:n.properties,inboundTopicId:null==n?void 0:n.inboundTopicId,outboundTopicId:null==n?void 0:n.outboundTopicId,aiAgent:{type:t,capabilities:r,model:o,creator:null==n?void 0:n.creator}});if(!i.valid)throw new Error(`Invalid AI Agent Profile: ${i.errors.join(", ")}`);return{version:"1.0",type:1,display_name:e,alias:null==n?void 0:n.alias,bio:null==n?void 0:n.bio,socials:null==n?void 0:n.socials,profileImage:null==n?void 0:n.profileImage,properties:null==n?void 0:n.properties,inboundTopicId:null==n?void 0:n.inboundTopicId,outboundTopicId:null==n?void 0:n.outboundTopicId,aiAgent:{type:t,capabilities:r,model:o,creator:null==n?void 0:n.creator}}}validateProfile(e){const t=HCS11ProfileSchema.safeParse(e);if(t.success)return{valid:!0,errors:[]};return{valid:!1,errors:t.error.errors.map((e=>{var t;const r=e.path.join(".");let o=e.message;if("invalid_type"===e.code)o=`Expected ${e.expected}, got ${e.received}`;else if("invalid_enum_value"===e.code){o=`Invalid value. Valid options are: ${null==(t=e.options)?void 0:t.join(", ")}`}else"too_small"===e.code&&"string"===e.type&&(o="Cannot be empty");return`${r}: ${o}`}))}}profileToJSONString(e){return JSON.stringify(e)}parseProfileFromString(e){try{const t=JSON.parse(e),r=this.validateProfile(t);return r.valid?t:(this.logger.error("Invalid profile format:",r.errors),null)}catch(t){return this.logger.error("Error parsing profile:",t),null}}setProfileForAccountMemo(e,t=1){return`hcs-11:hcs://${t}/${e}`}async executeTransaction(e){try{if(this.auth.privateKey){const t=await e.signWithOperator(this.client),r=await t.execute(this.client),o=await r.getReceipt(this.client);return o.status!==e$6.Success?{success:!1,error:`Transaction failed: ${o.status.toString()}`}:{success:!0,result:o}}if(!this.auth.signer)throw new Error("No valid authentication method provided");const t=this.auth.signer,r=await e.freezeWithSigner(t),o=await r.executeWithSigner(t),n=await o.getReceiptWithSigner(t);return n.status!==e$6.Success?{success:!1,error:`Transaction failed: ${n.status.toString()}`}:{success:!0,result:n}}catch(t){return{success:!1,error:t instanceof Error?t.message:"Unknown error during transaction execution"}}}async inscribeContent(e,t,r,o=!1){try{const n="string"==typeof e?Buffer.from(e,"utf-8"):e,i={type:"buffer",buffer:n,fileName:t,mimeType:r||mimeTypes.lookup(t)||"application/octet-stream"},a={waitForConfirmation:!0,mode:"file",network:this.network,maxRetries:100,waitMaxAttempts:100},s=this.auth.privateKey?await inscribe(i,{accountId:this.auth.operatorId,privateKey:this.auth.privateKey,network:this.network},a):await inscribeWithSigner(i,this.auth.signer,a);if(!s.confirmed||!s.inscription.topic_id)return{profileTopicId:"",transactionId:"",success:!1,error:"Failed to inscribe content",...o?{imageTopicId:""}:{}};const c=s.inscription.topic_id;return{...o?{imageTopicId:c}:{profileTopicId:c},transactionId:s.result.transactionId,success:!0}}catch(n){return{profileTopicId:"",transactionId:"",success:!1,error:n instanceof Error?n.message:"Unknown error during inscription",...o?{imageTopicId:""}:{}}}}async inscribeImage(e,t){return this.logger.info("Inscribing image"),this.inscribeContent(e,t,void 0,!0)}async inscribeProfile(e){this.logger.info("Inscribing HCS-11 profile");const t=this.validateProfile(e);if(!t.valid)return{profileTopicId:"",transactionId:"",success:!1,error:`Invalid profile: ${t.errors.join(", ")}`};const r=this.profileToJSONString(e),o=`profile-${e.display_name.toLowerCase().replace(/\s+/g,"-")}.json`;return this.inscribeContent(r,o,"application/json",!1)}async updateAccountMemoWithProfile(e,t){try{this.logger.info(`Updating account memo for ${e} with profile ${t}`);const r=this.setProfileForAccountMemo(t),o=(new s$4).setAccountMemo(r).setAccountId(e);return this.executeTransaction(o)}catch(r){return this.logger.error(`Error updating account memo: ${r instanceof Error?r.message:"Unknown error"}`),{success:!1,error:r instanceof Error?r.message:"Unknown error updating account memo"}}}async createAndInscribeProfile(e,t=!0){const r=await this.inscribeProfile(e);if(!r.success)return r;if(t){const e=await this.updateAccountMemoWithProfile(this.auth.operatorId,r.profileTopicId);if(!e.success)return{...r,success:!1,error:e.error}}return r}async getCapabilitiesFromTags(e){const t=[];if(0===e.length)return[0];for(const r of e){const e=capabilityNameToCapabilityMap[r.toLowerCase()];void 0===e||t.includes(e)||t.push(e)}return 0===t.length&&t.push(0),t}getAgentTypeFromMetadata(e){return"autonomous"===e.type?1:0}}async function accountIdsToExemptKeys(e,t,r){const o=new HederaMirrorNode(t,r),n=[];for(const a of e)try{const e=await o.getPublicKey(a);n.push(e)}catch(i){r&&r.warn(`Could not get public key for account ${a}: ${i}`)}return n}class FeeConfigBuilder{constructor(){this.feeAmount=0,this.decimals=0,this.feeCollectorAccountId="",this.exemptAccountIds=[]}static forHbar(e,t,r=[]){return(new FeeConfigBuilder).setHbarAmount(e).setFeeCollector(t).addExemptAccounts(r)}setHbarAmount(e){if(e<=0)throw new Error("HBAR amount must be greater than zero");return this.feeAmount=1e8*e,this.decimals=0,this}setFeeAmount(e,t=0){return this.feeAmount=e,this.decimals=t,this}setFeeCollector(e){return this.feeCollectorAccountId=e,this}addExemptAccount(e){return this.exemptAccountIds.includes(e)||this.exemptAccountIds.push(e),this}addExemptAccounts(e){for(const t of e)this.addExemptAccount(t);return this}build(){if(!this.feeCollectorAccountId)throw new Error("Fee collector account ID is required");if(this.feeAmount<=0)throw new Error("Fee amount must be greater than zero");return{feeAmount:{amount:this.feeAmount,decimals:this.decimals},feeCollectorAccountId:this.feeCollectorAccountId,exemptAccounts:this.exemptAccountIds}}}class HCS10Client extends HCS10BaseClient{constructor(e){super({network:e.network,logLevel:e.logLevel}),this.client="mainnet"===e.network?i$1.forMainnet():i$1.forTestnet(),this.operatorPrivateKey=y$2.fromString(e.operatorPrivateKey),this.network=e.network,this.client.setOperator(e.operatorId,this.operatorPrivateKey.toString()),this.logger=Logger$2.getInstance({level:e.logLevel||"info",module:"HCS-SDK"}),this.guardedRegistryBaseUrl=e.guardedRegistryBaseUrl||"https://hcs-10.hashgraphonline.com",this.feeAmount=e.feeAmount||5,this.hcs11Client=new HCS11Client({network:e.network,auth:{operatorId:e.operatorId,privateKey:e.operatorPrivateKey},logLevel:e.logLevel})}getClient(){return this.client}async createAccount(){this.logger.info("Creating new account");const e=y$2.generate(),t=(new l).setKey(e.publicKey).setInitialBalance(new e$7(10));this.logger.debug("Executing account creation transaction");const r=await t.execute(this.client),o=(await r.getReceipt(this.client)).accountId;if(!o)throw this.logger.error("Account creation failed: accountId is null"),new AccountCreationError("Failed to create account: accountId is null");return this.logger.info(`Account created successfully: ${o.toString()}`),{accountId:o.toString(),privateKey:e.toString()}}async createInboundTopic(e,t,r){this.logger.info(`Creating ${t} inbound topic`);const o=`hcs-10:0:60:0:${e}`;switch(t){case InboundTopicType.PUBLIC:return this.createTopic(o,!0,!1);case InboundTopicType.CONTROLLED:return this.createTopic(o,!0,!0);case InboundTopicType.FEE_BASED:if(!r)throw new Error("Fee configuration is required for fee-based topics");return this.createTopic(o,!0,!0,r.build());default:throw new Error(`Unsupported inbound topic type: ${t}`)}}async createAgent(e){var t;const r=e.build(),o=await this.createTopic("hcs-10:0:60:1",!0,!0);this.logger.info(`Created new outbound topic ID: ${o}`);const n=null==(t=this.client.operatorAccountId)?void 0:t.toString();if(!n)throw new Error("Failed to retrieve operator account ID");const i=await this.createInboundTopic(n,r.inboundTopicType,r.inboundTopicType===InboundTopicType.FEE_BASED?r.feeConfig:void 0);this.logger.info(`Created new inbound topic ID: ${i}`);const a=(await this.inscribePfp(r.pfpBuffer,r.pfpFileName)).pfpTopicId;this.logger.info(`Profile picture inscribed with topic ID: ${a}`);const s=(await this.storeHCS11Profile(r.name,r.description,i,o,r.capabilities,r.metadata,r.pfpBuffer,r.pfpFileName)).profileTopicId;return this.logger.info(`Profile stored with topic ID: ${s}`),{outboundTopicId:o,inboundTopicId:i,pfpTopicId:a,profileTopicId:s}}async inscribePfp(e,t){try{this.logger.info("Inscribing profile picture using HCS-11 client");const r=await this.hcs11Client.inscribeImage(e,t);if(!r.success)throw this.logger.error(`Failed to inscribe profile picture: ${r.error}`),new Error(r.error||"Failed to inscribe profile picture");return this.logger.info(`Successfully inscribed profile picture with topic ID: ${r.imageTopicId}`),{pfpTopicId:r.imageTopicId,transactionId:r.transactionId,success:!0}}catch(r){return this.logger.error(`Error inscribing profile picture: ${r.message}`),{pfpTopicId:"",transactionId:"",success:!1,error:r.message}}}async storeHCS11Profile(e,t,r,o,n=[],i,a,s){try{let c;if(a&&s){const e=await this.inscribePfp(a,s);e.success?c=e.pfpTopicId:this.logger.error("Failed to inscribe profile picture, continuing without PFP")}const u=this.hcs11Client.getAgentTypeFromMetadata({type:i.type}),l=i.socials?Object.entries(i.socials).filter((([e,t])=>t)).map((([e,t])=>({platform:"x"===e?"twitter":e,handle:t}))):void 0,d=this.hcs11Client.createAIAgentProfile(e,u,n,i.model||"unknown",{alias:e.toLowerCase().replace(/\s+/g,"_"),bio:t,profileImage:c?`hcs://1/${c}`:void 0,socials:l,properties:i.properties,inboundTopicId:r,outboundTopicId:o,creator:i.creator}),p=await this.hcs11Client.createAndInscribeProfile(d,!0);if(!p.success)throw this.logger.error(`Failed to inscribe profile: ${p.error}`),new Error(p.error||"Failed to inscribe profile");return this.logger.info(`Profile inscribed with topic ID: ${p.profileTopicId}, transaction ID: ${p.transactionId}`),{profileTopicId:p.profileTopicId,pfpTopicId:c,transactionId:p.transactionId,success:!0}}catch(c){return this.logger.error(`Error storing HCS-11 profile: ${c.message}`),{profileTopicId:"",pfpTopicId:"",transactionId:"",success:!1,error:c.message}}}async setupFees(e,t,r=[]){if(!this.client.operatorPublicKey)return;this.logger.info("Setting up topic with custom fees");const o=(new l$1).setAmount(Number(t.feeAmount.amount)).setFeeCollectorAccountId(f.fromString(t.feeCollectorAccountId));let n=[...t.exemptAccounts||[],...r];if(console.log("exemptAccountIds",n),n.length>0){const t=Array.from(new Set(n)).filter((e=>{var t;return e!==(null==(t=this.client.operatorAccountId)?void 0:t.toString())}));let r=[];if(t.length>0)try{r=await accountIdsToExemptKeys(t,this.network,this.logger)}catch(i){this.logger.warn(`Error getting exempt keys: ${i}, continuing without exempt keys`)}r.length>0&&e.setFeeExemptKeys(r)}e.setFeeScheduleKey(this.client.operatorPublicKey).setCustomFees([o])}async handleConnectionRequest(e,t,r,o){var n;const i=`hcs-10:${e}:${r}`;this.logger.info(`Handling connection request ${r} from ${t}`);const a=null==(n=this.getClient().operatorAccountId)?void 0:n.toString();if(!a)throw new Error("Failed to retrieve operator account ID");let s=await this.mirrorNode.getPublicKey(t);const c=await this.mirrorNode.getPublicKey(a);if(!c)throw new Error("Failed to retrieve public key");const u=new s$7([c,s],1);let l;try{if(o){const e=o.build(),t={...e,exemptAccounts:[...e.exemptAccounts||[]]};l=await this.createTopic(i,u,u,t)}else l=await this.createTopic(i,u,u);this.logger.info(`Created new connection topic ID: ${l}`)}catch(p){throw this.logger.error(`Failed to create connection topic: ${p}`),new TopicCreationError(`Failed to create connection topic: ${p}`)}const d=`${e}@${a}`;return{connectionTopicId:l,confirmedConnectionSequenceNumber:await this.confirmConnection(e,l,t,r,d,"Connection accepted. Looking forward to collaborating!"),operatorId:d}}async confirmConnection(e,t,r,o,n,i,a){var s;this.logger.info(`Confirming connection with ID ${o}`);const c={p:"hcs-10",op:"connection_created",connection_topic_id:t,connected_account_id:r,operator_id:n,connection_id:o,m:i},u=null==(s=(await this.submitPayload(e,c,a)).topicSequenceNumber)?void 0:s.toNumber();if(!u)throw new ConnectionConfirmationError("Failed to confirm connection: sequence number is null");return u}async sendMessage(e,t,r,o,n){var i;const a=await this.canSubmitToInboundTopic(e,(null==(i=this.client.operatorAccountId)?void 0:i.toString())||""),s={p:"hcs-10",op:"message",operator_id:t,data:r,m:o};await this.submitPayload(e,s,n,a.requiresFee)}async createTopic(e,t,r,o){this.logger.info("Creating topic");const n=(new m$1).setTopicMemo(e);t&&("boolean"==typeof t&&t&&this.client.operatorPublicKey?(n.setAdminKey(this.client.operatorPublicKey),n.setAutoRenewAccountId(this.client.operatorAccountId)):(t instanceof i$7||t instanceof s$7)&&(n.setAdminKey(t),this.client.operatorAccountId&&n.setAutoRenewAccountId(this.client.operatorAccountId))),r&&("boolean"==typeof r&&r&&this.client.operatorPublicKey?n.setSubmitKey(this.client.operatorPublicKey):(r instanceof i$7||r instanceof s$7)&&n.setSubmitKey(r)),o&&await this.setupFees(n,o),this.logger.debug("Executing topic creation transaction");const i=await n.execute(this.client),a=await i.getReceipt(this.client);if(!a.topicId)throw this.logger.error("Failed to create topic: topicId is null"),new Error("Failed to create topic: topicId is null");return a.topicId.toString()}async submitMessage(e,t,r){var o;const n=await this.canSubmitToInboundTopic(e,(null==(o=this.client.operatorAccountId)?void 0:o.toString())||"");return this.submitPayload(e,t,r,n.requiresFee)}async submitPayload(e,t,r,o=!1){const n="string"==typeof t?t:JSON.stringify(t),i=Buffer.byteLength(n,"utf8");if(i>1024)throw new PayloadSizeError("Payload size exceeds 1 KB limit",i);const a=(new u).setTopicId(m$2.fromString(e)).setMessage(n);let s;if(o&&(this.logger.info("Topic requires fee payment, setting max transaction fee"),a.setMaxTransactionFee(new e$7(this.feeAmount)),a.setTransactionMemo("HIP-991 Fee Payment")),r){a.freezeWith(this.client);const e=await a.sign(r);s=await e.execute(this.client)}else s=await a.execute(this.client);const c=await s.getReceipt(this.client);if(!c)throw this.logger.error("Failed to submit message: receipt is null"),new Error("Failed to submit message: receipt is null");return this.logger.info("Message submitted successfully"),c}async submitConnectionRequest(e,t,r,o){var n;const i=await this.canSubmitToInboundTopic(e,t);if(!i.canSubmit)throw new Error(`Cannot submit to topic: ${i.reason}`);const a={p:"hcs-10",op:"connection_request",operator_id:r,memo:o},s=i.requiresFee,c=await this.submitPayload(e,a,void 0,s);this.logger.info(`Submitted connection request to topic ID: ${e}`);const u=await this.retrieveOutboundConnectTopic(t),l=null==(n=c.topicSequenceNumber)?void 0:n.toNumber();if(!l)throw new Error("Failed to get response sequence number");return await this.submitPayload(u.outboundTopic,{...a,outbound_topic_id:u.outboundTopic,connection_request_id:l},this.operatorPrivateKey),c}async recordOutboundConnectionConfirmation({outboundTopicId:e,connectionRequestId:t,confirmedRequestId:r,connectionTopicId:o,operatorId:n,memo:i}){const a={p:"hcs-10",op:"connection_created",connection_topic_id:o,outbound_topic_id:e,confirmed_request_id:r,connection_request_id:t,operator_id:n,m:i};return await this.submitPayload(e,a)}async inscribeFile(e,t){if(this.logger.info("Inscribing file"),!this.client.operatorAccountId)throw this.logger.error("Operator account ID is not set"),new Error("Operator account ID is not set");if(!this.operatorPrivateKey)throw this.logger.error("Operator private key is not set"),new Error("Operator private key is not set");const r=mimeTypes.lookup(t)||"application/octet-stream",o=await InscriptionSDK.createWithAuth({type:"server",accountId:this.client.operatorAccountId.toString(),privateKey:this.operatorPrivateKey.toString(),network:this.network}),n=await o.inscribeAndExecute({file:{type:"base64",base64:e.toString("base64"),fileName:t,mimeType:r},holderId:this.client.operatorAccountId.toString(),mode:"file",network:this.network},{accountId:this.client.operatorAccountId.toString(),privateKey:this.operatorPrivateKey.toString(),network:this.network});if(!n.transactionId||!n.jobId)throw this.logger.error("Failed to inscribe, no transaction ID or job ID."),new Error("Failed to inscribe, no transaction ID or job ID.");n.transactionId&&n.jobId&&this.logger.info(`Transaction ID: ${n.transactionId}, Job ID: ${n.jobId}`);return await o.waitForInscription(n.jobId,30,4e3,!0)}async waitForConnectionConfirmation(e,t,r=60,o=2e3){this.logger.info(`Waiting for connection confirmation on inbound topic ${e} for request ID ${t}`);for(let n=0;n<r;n++){this.logger.info(`Attempt ${n+1}/${r} to find connection confirmation`);const i=(await this.mirrorNode.getTopicMessages(e)).filter((e=>"connection_created"===e.op));if(this.logger.info(`Found ${i.length} connection_created messages`),i.length>0)for(const e of i)if(Number(e.connection_id)===Number(t))return this.logger.info("Connection confirmation found"),{connectionTopicId:e.connection_topic_id,sequence_number:Number(e.sequence_number),confirmedBy:e.operator_id,memo:e.m};n<r-1&&(this.logger.info(`No matching confirmation found, waiting ${o}ms before retrying...`),await new Promise((e=>setTimeout(e,o))))}throw new Error(`Connection confirmation not found after ${r} attempts for request ID ${t}`)}getAccountAndSigner(){return{accountId:this.client.operatorAccountId.toString(),signer:this.operatorPrivateKey}}async canSubmitToInboundTopic(e,t){var r,o,n,i;try{const s=await this.mirrorNode.getTopicInfo(e);if(!s)return{canSubmit:!1,requiresFee:!1,reason:"Topic does not exist"};if(!(null==(r=s.submit_key)?void 0:r.key))return{canSubmit:!0,requiresFee:!1};try{const e=await this.mirrorNode.getPublicKey(t);if("ProtobufEncoded"===s.submit_key._type){const t=Buffer.from(s.submit_key.key,"hex");if(await this.mirrorNode.checkKeyListAccess(t,e))return{canSubmit:!0,requiresFee:!1}}else{const t=i$7.fromString(s.submit_key.key);if(e.toString()===t.toString())return{canSubmit:!0,requiresFee:!1}}}catch(a){this.logger.error(`Key validation error: ${a instanceof Error?a.message:String(a)}`)}return(null==(o=s.fee_schedule_key)?void 0:o.key)&&(null==(i=null==(n=s.custom_fees)?void 0:n.fixed_fees)?void 0:i.length)>0?{canSubmit:!0,requiresFee:!0,reason:"Requires fee payment via HIP-991"}:{canSubmit:!1,requiresFee:!1,reason:"User does not have submit permission for this topic"}}catch(a){const e=a instanceof Error?a.message:String(a);return this.logger.error(`Topic submission validation error: ${e}`),{canSubmit:!1,requiresFee:!1,reason:`Error: ${e}`}}}async createAndRegisterAgent(e){const t=e.build(),r=t.existingAccount||await this.createAccount(),o=new HCS10Client({network:t.network,operatorId:r.accountId,operatorPrivateKey:r.privateKey,operatorPublicKey:y$2.fromString(r.privateKey).publicKey.toString(),logLevel:"info"}),{outboundTopicId:n,inboundTopicId:i,pfpTopicId:a,profileTopicId:s}=await o.createAgent(e),c=`${i}@${r.accountId}`;return await o.registerAgentWithGuardedRegistry(r.accountId,i,t.network),{accountId:r.accountId,privateKey:r.privateKey,operatorId:c,inboundTopicId:i,outboundTopicId:n,profileTopicId:s,pfpTopicId:a,client:o}}async registerAgentWithGuardedRegistry(e,t,r=this.network,o){try{this.logger.info("Registering agent with guarded registry");const n=(null==o?void 0:o.maxAttempts)??60,i=(null==o?void 0:o.delayMs)??2e3,a=null==o?void 0:o.progressCallback;a&&a({stage:"preparing",message:"Preparing agent registration",progressPercent:10});const s=await this.executeRegistration(e,t,r,this.guardedRegistryBaseUrl,this.logger);if(!s.success)return s;if(a&&a({stage:"submitting",message:"Submitting registration to registry",progressPercent:30,details:{transactionId:s.transactionId}}),s.transaction){const e=S.fromBytes(Buffer.from(s.transaction,"base64"));this.logger.info("Processing registration transaction"),await e.execute(this.client),this.logger.info("Successfully processed registration transaction")}a&&a({stage:"confirming",message:"Confirming registration transaction",progressPercent:60,details:{accountId:e,inboundTopicId:t,transactionId:s.transactionId}});const c=await this.waitForRegistrationConfirmation(s.transactionId,r,this.guardedRegistryBaseUrl,n,i,this.logger);return a&&a({stage:"completed",message:"Agent registration complete",progressPercent:100,details:{confirmed:c,transactionId:s.transactionId}}),{...s,confirmed:c}}catch(n){return this.logger.error(`Failed to register agent: ${n.message}`),{error:n.message,success:!1}}}async registerAgent(e,t,r,o,n){this.logger.info("Registering agent");const i={p:"hcs-10",op:"register",account_id:t,inbound_topic_id:r,m:o};await this.submitPayload(e,i,n)}async getInboundTopicType(e){try{const t=await this.mirrorNode.getTopicInfo(e);if(!t)throw new Error("Topic does not exist");if(!(t.submit_key&&t.submit_key.key))return InboundTopicType.PUBLIC;if(t.fee_schedule_key&&t.fee_schedule_key.key&&t.custom_fees){const r=t.custom_fees;if(r&&r.fixed_fees&&r.fixed_fees.length>0)return this.logger.info(`Topic ${e} is fee-based with ${r.fixed_fees.length} custom fees`),InboundTopicType.FEE_BASED}return InboundTopicType.CONTROLLED}catch(t){throw this.logger.error(`Error determining topic type: ${t.message}`),new Error(`Failed to determine topic type: ${t.message}`)}}getNetwork(){return this.network}getLogger(){return this.logger}}class AgentBuilder{constructor(){this.config={}}setName(e){return this.config.name=e,this}setDescription(e){return this.config.description=e,this}setCapabilities(e){return this.config.capabilities=e,this}setAgentType(e){return this.config.metadata?this.config.metadata.type=e:this.config.metadata={type:e},this}setModel(e){return this.config.metadata?this.config.metadata.model=e:this.config.metadata={type:"autonomous",model:e},this}setCreator(e){return this.config.metadata?this.config.metadata.creator=e:this.config.metadata={type:"autonomous",creator:e},this}addSocial(e,t){return this.config.metadata?this.config.metadata.socials||(this.config.metadata.socials={}):this.config.metadata={type:"autonomous",socials:{}},this.config.metadata.socials[e]=t,this}addProperty(e,t){return this.config.metadata?this.config.metadata.properties||(this.config.metadata.properties={}):this.config.metadata={type:"autonomous",properties:{}},this.config.metadata.properties[e]=t,this}setMetadata(e){return this.config.metadata=e,this}setProfilePicture(e,t){return this.config.pfpBuffer=e,this.config.pfpFileName=t,this}setNetwork(e){return this.config.network=e,this}setInboundTopicType(e){return this.config.inboundTopicType=e,this}setFeeConfig(e){return this.config.feeConfig=e,this}setConnectionFeeConfig(e){return this.config.connectionFeeConfig=e,this}setExistingAccount(e,t){return this.config.existingAccount={accountId:e,privateKey:t},this}build(){if(!this.config.name)throw new Error("Agent name is required");if(!this.config.description)throw new Error("Agent description is required");if(!this.config.pfpBuffer||!this.config.pfpFileName)throw new Error("Profile picture is required");if(!this.config.network)throw new Error("Network is required");if(this.config.inboundTopicType||(this.config.inboundTopicType=InboundTopicType.PUBLIC),this.config.capabilities||(this.config.capabilities=[]),this.config.metadata||(this.config.metadata={type:"autonomous"}),this.config.inboundTopicType===InboundTopicType.FEE_BASED&&!this.config.feeConfig)throw new Error("Fee configuration is required for fee-based topics");return this.config}}class BrowserHCSClient extends HCS10BaseClient{constructor(e){super({network:e.network,logLevel:e.logLevel}),this.guardedRegistryBaseUrl=e.guardedRegistryBaseUrl||"https://moonscape.tech",this.hwc=e.hwc,this.logger=Logger$2.getInstance({level:e.logLevel||"info",module:"HCS-Browser"});const{accountId:t,signer:r}=this.getAccountAndSigner();this.hcs11Client=new HCS11Client({network:e.network,auth:{operatorId:t,signer:r},logLevel:e.logLevel})}async sendMessage(e,t,r,o){this.logger.info("Sending message");const n={p:"hcs-10",op:"message",operator_id:t,data:r,m:o};await this.submitPayload(e,n)}async submitConnectionRequest(e,t,r,o){var n,i;this.logger.info("Submitting connection request");const a={p:"hcs-10",op:"connection_request",requesting_account_id:t,operator_id:r,m:o},s=await this.submitPayload(e,a);this.logger.info(`Submitted connection request to topic ID: ${e}`);const c=await this.retrieveOutboundConnectTopic(t);if(!(null==c?void 0:c.outboundTopic))throw this.logger.error(`Failed to retrieve outbound topic for account ID: ${t}`),new Error(`Failed to retrieve outbound topic for account ID: ${t}`);this.logger.info(`Retrieved outbound topic ID: ${c.outboundTopic} for account ID: ${t}`);const u=null==(i=null==(n=null==s?void 0:s.result)?void 0:n.topicSequenceNumber)?void 0:i.toNumber();if(!u)throw new Error("Failed to get response sequence number");return await this.submitPayload(c.outboundTopic,{...a,outbound_topic_id:e,connection_request_id:u}),s.result}async recordOutboundConnectionConfirmation({outboundTopicId:e,connectionRequestId:t,confirmedRequestId:r,connectionTopicId:o,operatorId:n,memo:i}){const a={p:"hcs-10",op:"connection_created",connection_topic_id:o,outbound_topic_id:e,confirmed_request_id:r,connection_request_id:t,operator_id:n,m:i};return await this.submitPayload(e,a)}async getPublicKey(e){return await this.mirrorNode.getPublicKey(e)}async handleConnectionRequest(e,t,r,o="Connection accepted. Looking forward to collaborating!"){this.logger.info("Handling connection request");const n=this.hwc.getAccountInfo().accountId;if(!n)throw new Error("Failed to retrieve user account ID");const i=await this.mirrorNode.getPublicKey(t),a=await this.mirrorNode.getPublicKey(n);if(!a)throw new Error("Failed to retrieve public key");const s=new s$7([a,i],1),c=`hcs-10:${e}:${r}`,u=(new m$1).setTopicMemo(c).setAdminKey(s).setSubmitKey(s);this.logger.debug("Executing topic creation transaction");const l=await this.hwc.executeTransactionWithErrorHandling(u,!1);if(l.error)throw this.logger.error(l.error),new Error(l.error);const d=l.result;if(!(null==d?void 0:d.topicId))throw this.logger.error("Failed to create topic: topicId is null"),new Error("Failed to create topic: topicId is null");const p=d.topicId.toString(),h=`${e}@${n}`;return{connectionTopicId:p,confirmedConnectionSequenceNumber:await this.confirmConnection(e,p,t,r,h,o),operatorId:h}}async confirmConnection(e,t,r,o,n,i){var a;this.logger.info("Confirming connection");const s={p:"hcs-10",op:"connection_created",connection_topic_id:t,connected_account_id:r,operator_id:n,connection_id:o,m:i},c=await this.submitPayload(e,s);if(!(null==(a=null==c?void 0:c.result)?void 0:a.topicSequenceNumber))throw this.logger.error("Failed to confirm connection: sequence number is null"),new Error("Failed to confirm connection: sequence number is null");return c.result.topicSequenceNumber.toNumber()}async submitMessage(e,t,r={},o=""){this.logger.info("Submitting message");const n={p:"hcs-10",op:"message",data:{content:t,metadata:r},m:o};return await this.submitPayload(e,n)}async createAgent(e,t,r,o,n,i,a){try{const s=await this.createTopic("hcs-10:0:60:1",!0,!0);if(!s.success||!s.topicId)return{outboundTopicId:"",inboundTopicId:"",pfpTopicId:"",profileTopicId:"",error:s.error||"Failed to create outbound topic",success:!1};const c=await this.createTopic(`hcs-10:0:60:0:${s.topicId}`);if(!c.success||!c.topicId)return{outboundTopicId:s.topicId,inboundTopicId:"",pfpTopicId:"",profileTopicId:"",error:c.error||"Failed to create inbound topic",success:!1};let u=a;if(!u){const r=await this.inscribePfp(e,t);if(!r.success)return{outboundTopicId:s.topicId,inboundTopicId:c.topicId,pfpTopicId:"",profileTopicId:"",error:r.error||"Failed to inscribe profile picture",success:!1};u=r.pfpTopicId}const l=await this.storeHCS11Profile(r,o,c.topicId,s.topicId,n,i,e,t,u);return l.success?{outboundTopicId:s.topicId,inboundTopicId:c.topicId,pfpTopicId:u||"",profileTopicId:l.profileTopicId,success:!0}:{outboundTopicId:s.topicId,inboundTopicId:c.topicId,pfpTopicId:u||"",profileTopicId:"",error:l.error||"Failed to store profile",success:!1}}catch(s){return{outboundTopicId:"",inboundTopicId:"",pfpTopicId:"",profileTopicId:"",error:s.message,success:!1}}}async createAndRegisterAgent(e,t,r,o,n,i,a,s,c){try{const u=null==c?void 0:c.progressCallback,l=(e,t,r,o)=>{if(u)try{u({stage:e,message:t,progressPercent:r,details:o})}catch(n){this.logger.warn(`Error in progress callback: ${n}`)}};l("preparing","Creating agent topics and profile",10);const d=await this.createAgent(n,i,e,t,r,o,s);if(!d.success)throw new Error(d.error||"Failed to create agent");l("preparing","Agent topics created, preparing registration",30);const{accountId:p}=this.getAccountAndSigner();l("submitting","Registering with Hedera registry",40);const h=await this.registerAgentWithGuardedRegistry(p,d.inboundTopicId,a,{progressCallback:e=>{const t=40+.6*(e.progressPercent||0);l(e.stage,e.message,t,e.details)},maxAttempts:null==c?void 0:c.maxAttempts,delayMs:null==c?void 0:c.delayMs});if(!h.success)throw new Error(h.error||"Failed to register agent with registry");return l("completed","Agent creation and registration complete",100),{accountId:p,operatorId:`${d.outboundTopicId}@${p}`,inboundTopicId:d.inboundTopicId,outboundTopicId:d.outboundTopicId,profileTopicId:d.profileTopicId,pfpTopicId:d.pfpTopicId,client:this}}catch(u){throw new Error(`Failed to create and register agent: ${u.message}`)}}async registerAgentWithGuardedRegistry(e,t,r=this.network,o){try{this.logger.info("Registering agent with guarded registry");const n=(null==o?void 0:o.maxAttempts)??60,i=(null==o?void 0:o.delayMs)??2e3,a=null==o?void 0:o.progressCallback,s=(e,t,r,o)=>{if(a)try{a({stage:e,message:t,progressPercent:r,details:o})}catch(n){this.logger.warn(`Error in progress callback: ${n}`)}};s("preparing","Preparing agent registration",10);const c=await this.executeRegistration(e,t,r,this.guardedRegistryBaseUrl,this.logger);if(!c.success)return c;if(s("submitting","Submitting registration to registry",30,{transactionId:c.transactionId}),c.transaction){const e=S.fromBytes(Buffer.from(c.transaction,"base64"));this.logger.info("Processing registration transaction");const t=await this.hwc.executeTransactionWithErrorHandling(e,!1);if(t.error)return{...c,error:t.error,success:!1};this.logger.info("Successfully processed registration transaction")}s("confirming","Confirming registration transaction",60,{accountId:e,inboundTopicId:t,transactionId:c.transactionId});const u=await this.waitForRegistrationConfirmation(c.transactionId,r,this.guardedRegistryBaseUrl,n,i);return s("completed","Agent registration complete",100,{confirmed:u,transactionId:c.transactionId}),{...c,confirmed:u}}catch(n){return this.logger.error(`Registration error: ${n.message}`),{error:`Error during registration: ${n.message}`,success:!1}}}async storeHCS11Profile(e,t,r,o,n=[],i={},a,s,c){try{let u=c;if(!u&&a&&s){const e=await this.inscribePfp(a,s);e.success?u=e.pfpTopicId:this.logger.error("Failed to inscribe profile picture, continuing without PFP")}const l=this.hcs11Client.getAgentTypeFromMetadata({type:i.type||"autonomous"}),d=[];i.socials&&(i.socials.twitter&&d.push({platform:"twitter",handle:i.socials.twitter}),i.socials.discord&&d.push({platform:"discord",handle:i.socials.discord}),i.socials.github&&d.push({platform:"github",handle:i.socials.github}),i.socials.website&&d.push({platform:"website",handle:i.socials.website}),i.socials.x&&d.push({platform:"twitter",handle:i.socials.x}),i.socials.linkedin&&d.push({platform:"linkedin",handle:i.socials.linkedin}),i.socials.youtube&&d.push({platform:"youtube",handle:i.socials.youtube}),i.socials.telegram&&d.push({platform:"telegram",handle:i.socials.telegram}));const p=this.hcs11Client.createAIAgentProfile(e,l,n,i.model||"unknown",{alias:e.toLowerCase().replace(/\s+/g,"_"),bio:t,profileImage:u?`hcs://1/${u}`:void 0,socials:d.length>0?d:void 0,properties:{description:t,version:i.version||"1.0.0",creator:i.creator||"Unknown",supported_languages:i.supported_languages||["en"],permissions:i.permissions||[],model_details:i.model_details,training:i.training,capabilities_description:i.capabilities_description,...i},inboundTopicId:r,outboundTopicId:o,creator:i.creator}),h=await this.hcs11Client.createAndInscribeProfile(p,!0);return h.success?{profileTopicId:h.profileTopicId,pfpTopicId:u,success:!0}:{profileTopicId:"",success:!1,error:h.error||"Failed to inscribe profile"}}catch(u){return{profileTopicId:"",success:!1,error:u.message}}}async createTopic(e,t,r){this.logger.info("Creating topic");const{accountId:o,signer:n}=this.getAccountAndSigner(),i=(new m$1).setTopicMemo(e),a=await this.mirrorNode.getPublicKey(o);t&&a&&(i.setAdminKey(a),i.setAutoRenewAccountId(o)),r&&a&&i.setSubmitKey(a);const s=await this.hwc.executeTransactionWithErrorHandling(i,!1),c=s.error;if(c)return this.logger.error(c),{success:!1,error:c};const u=s.result;return(null==u?void 0:u.topicId)?{success:!0,topicId:u.topicId.toString()}:(this.logger.error("Failed to create topic: topicId is null"),{success:!1,error:"Failed to create topic: topicId is null"})}async submitPayload(e,t){this.logger.debug("Submitting payload");const r=(new u).setTopicId(e).setMessage(JSON.stringify(t));return await this.hwc.executeTransactionWithErrorHandling(r,!1)}async inscribeFile(e,t){const{accountId:r,signer:o}=this.getAccountAndSigner(),n=mimeTypes.lookup(t)||"application/octet-stream",i=await InscriptionSDK.createWithAuth({type:"client",accountId:r,signer:o,network:this.network}),a=await i.inscribe({file:{type:"base64",base64:e.toString("base64"),fileName:t,mimeType:n},holderId:r.toString(),mode:"file",network:this.network},o);if(!a.transactionId||!a.jobId)throw this.logger.error("Failed to inscribe, no transaction ID or job ID."),new Error("Failed to inscribe, no transaction ID or job ID.");a.transactionId&&a.jobId&&this.logger.info(`Transaction ID: ${a.transactionId}, Job ID: ${a.jobId}`);return await i.waitForInscription(a.jobId,30,4e3,!0)}getAccountAndSigner(){const e=this.hwc.getAccountInfo().accountId.toString(),t=this.hwc.dAppConnector.signers.find((t=>t.getAccountId().toString()===e));if(!t)throw this.logger.error("Failed to find signer"),new Error("Failed to find signer");return{accountId:e,signer:t}}async inscribePfp(e,t){try{this.logger.info("Inscribing profile picture using HCS-11 client");const r=await this.hcs11Client.inscribeImage(e,t);return r.success?(this.logger.info(`Successfully inscribed profile picture with topic ID: ${r.imageTopicId}`),{pfpTopicId:r.imageTopicId,success:!0}):(this.logger.error(`Failed to inscribe profile picture: ${r.error}`),{pfpTopicId:"",success:!1,error:r.error||"Failed to inscribe profile picture"})}catch(r){return this.logger.error(`Error inscribing profile picture: ${r.message}`),{pfpTopicId:"",success:!1,error:r.message}}}}exports.AIAgentCapability=AIAgentCapability,exports.AIAgentType=AIAgentType,exports.AccountCreationError=AccountCreationError,exports.AgentBuilder=AgentBuilder,exports.BrowserHCSClient=BrowserHCSClient,exports.ConnectionConfirmationError=ConnectionConfirmationError,exports.EVMBridge=EVMBridge,exports.EndpointType=EndpointType,exports.FeeConfigBuilder=FeeConfigBuilder,exports.HCS=HCS,exports.HCS10BaseClient=HCS10BaseClient,exports.HCS10Cache=HCS10Cache,exports.HCS10Client=HCS10Client,exports.HCS11Client=HCS11Client,exports.HederaMirrorNode=HederaMirrorNode,exports.InboundTopicType=InboundTopicType,exports.Logger=Logger$2,exports.PayloadSizeError=PayloadSizeError,exports.ProfileType=ProfileType,exports.Registration=Registration,exports.SUPPORTED_SOCIAL_PLATFORMS=SUPPORTED_SOCIAL_PLATFORMS,exports.TopicCreationError=TopicCreationError,exports.WasmBridge=WasmBridge,exports.accountIdsToExemptKeys=accountIdsToExemptKeys,exports.capabilityNameToCapabilityMap=capabilityNameToCapabilityMap,exports.inscribe=inscribe,exports.inscribeWithSigner=inscribeWithSigner,exports.retrieveInscription=retrieveInscription,exports.sleep=sleep,Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"})}));
|
|
114
|
+
*/!function(e){var t,r,o,n=mimeDb,i=pathBrowserify.extname,a=/^\s*([^;\s]*)(?:;|\s|$)/,s=/^text\//i;function c(e){if(!e||"string"!=typeof e)return!1;var t=a.exec(e),r=t&&n[t[1].toLowerCase()];return r&&r.charset?r.charset:!(!t||!s.test(t[1]))&&"UTF-8"}e.charset=c,e.charsets={lookup:c},e.contentType=function(t){if(!t||"string"!=typeof t)return!1;var r=-1===t.indexOf("/")?e.lookup(t):t;if(!r)return!1;if(-1===r.indexOf("charset")){var o=e.charset(r);o&&(r+="; charset="+o.toLowerCase())}return r},e.extension=function(t){if(!t||"string"!=typeof t)return!1;var r=a.exec(t),o=r&&e.extensions[r[1].toLowerCase()];if(!o||!o.length)return!1;return o[0]},e.extensions=Object.create(null),e.lookup=function(t){if(!t||"string"!=typeof t)return!1;var r=i("x."+t).toLowerCase().substr(1);if(!r)return!1;return e.types[r]||!1},e.types=Object.create(null),t=e.extensions,r=e.types,o=["nginx","apache",void 0,"iana"],Object.keys(n).forEach((function(e){var i=n[e],a=i.extensions;if(a&&a.length){t[e]=a;for(var s=0;s<a.length;s++){var c=a[s];if(r[c]){var u=o.indexOf(n[r[c]].source),l=o.indexOf(i.source);if("application/octet-stream"!==r[c]&&(u>l||u===l&&"application/"===r[c].substr(0,12)))continue}r[c]=e}}}))}(mimeTypes);var InboundTopicType=(e=>(e.PUBLIC="PUBLIC",e.CONTROLLED="CONTROLLED",e.FEE_BASED="FEE_BASED",e))(InboundTopicType||{}),util,util2,objectUtil,objectUtil2;async function inscribe(e,t,r,o){var n,i;const a=Logger$2.getInstance({module:"Inscriber",...r.logging});a.info("Starting inscription process",{type:e.type,mode:r.mode||"file",..."url"===e.type?{url:e.url}:{},..."file"===e.type?{path:e.path}:{},..."buffer"===e.type?{fileName:e.fileName,bufferSize:e.buffer.byteLength}:{}});try{let s;"hashinal"===r.mode&&r.metadata&&validateHashinalMetadata(r.metadata,a),o?(a.debug("Using existing InscriptionSDK instance"),s=o):r.apiKey?(a.debug("Initializing InscriptionSDK with API key"),s=new InscriptionSDK({apiKey:r.apiKey,network:t.network||"mainnet"})):(a.debug("Initializing InscriptionSDK with server auth"),s=await InscriptionSDK.createWithAuth({type:"server",accountId:t.accountId,privateKey:t.privateKey,network:t.network||"mainnet"}));const c={holderId:t.accountId,metadata:r.metadata||{},tags:r.tags||[],mode:r.mode||"file",chunkSize:r.chunkSize};let u;switch(e.type){case"url":u={...c,file:{type:"url",url:e.url}};break;case"file":u={...c,file:{type:"path",path:e.path}};break;case"buffer":u={...c,file:{type:"base64",base64:Buffer.from(e.buffer).toString("base64"),fileName:e.fileName,mimeType:e.mimeType}}}"hashinal"===r.mode&&(u.metadataObject=r.metadata,u.creator=(null==(n=r.metadata)?void 0:n.creator)||t.accountId,u.description=null==(i=r.metadata)?void 0:i.description,r.jsonFileURL&&(u.jsonFileURL=r.jsonFileURL)),a.debug("Preparing to inscribe content",{type:e.type,mode:r.mode||"file",holderId:t.accountId});const l=await s.inscribeAndExecute(u,t);if(a.info("Starting to inscribe.",{type:e.type,mode:r.mode||"file",transactionId:l.jobId}),r.waitForConfirmation){a.debug("Waiting for inscription confirmation",{transactionId:l.jobId,maxAttempts:r.waitMaxAttempts,intervalMs:r.waitIntervalMs});const e=await waitForInscriptionConfirmation(s,l.jobId,r.waitMaxAttempts,r.waitIntervalMs);return a.info("Inscription confirmation received",{transactionId:l.jobId}),{confirmed:!0,result:l,inscription:e,sdk:s}}return{confirmed:!1,result:l,sdk:s}}catch(s){throw a.error("Error during inscription process",s),s}}async function inscribeWithSigner(e,t,r,o){var n,i;const a=Logger$2.getInstance({module:"Inscriber",...r.logging});a.info("Starting inscription process with signer",{type:e.type,mode:r.mode||"file",..."url"===e.type?{url:e.url}:{},..."file"===e.type?{path:e.path}:{},..."buffer"===e.type?{fileName:e.fileName,bufferSize:e.buffer.byteLength}:{}});try{"hashinal"===r.mode&&r.metadata&&validateHashinalMetadata(r.metadata,a);const s=t.getAccountId().toString();let c;a.debug("Using account ID from signer",{accountId:s}),o?(a.debug("Using existing InscriptionSDK instance"),c=o):r.apiKey?(a.debug("Initializing InscriptionSDK with API key"),c=new InscriptionSDK({apiKey:r.apiKey,network:r.network||"mainnet"})):(a.debug("Initializing InscriptionSDK with client auth"),c=await InscriptionSDK.createWithAuth({type:"client",accountId:s,signer:t,network:r.network||"mainnet"}));const u={holderId:s,metadata:r.metadata||{},tags:r.tags||[],mode:r.mode||"file",chunkSize:r.chunkSize};let l;switch(e.type){case"url":l={...u,file:{type:"url",url:e.url}};break;case"file":l={...u,file:{type:"path",path:e.path}};break;case"buffer":l={...u,file:{type:"base64",base64:Buffer.from(e.buffer).toString("base64"),fileName:e.fileName,mimeType:e.mimeType}}}"hashinal"===r.mode&&(l.metadataObject=r.metadata,l.creator=(null==(n=r.metadata)?void 0:n.creator)||s,l.description=null==(i=r.metadata)?void 0:i.description,r.jsonFileURL&&(l.jsonFileURL=r.jsonFileURL)),a.debug("Preparing to inscribe content with signer",{type:e.type,mode:r.mode||"file",holderId:s});const d=await c.inscribe({...l,holderId:s},t);if(a.info("Inscription started",{type:e.type,mode:r.mode||"file",transactionId:d.jobId}),r.waitForConfirmation){a.debug("Waiting for inscription confirmation",{transactionId:d.jobId,maxAttempts:r.waitMaxAttempts,intervalMs:r.waitIntervalMs});const e=await waitForInscriptionConfirmation(c,d.jobId,r.waitMaxAttempts,r.waitIntervalMs);return a.info("Inscription confirmation received",{transactionId:d.jobId}),{confirmed:!0,result:d,inscription:e,sdk:c}}return{confirmed:!1,result:d,sdk:c}}catch(s){throw a.error("Error during inscription process",s),s}}async function retrieveInscription(e,t){const r=Logger$2.getInstance({module:"Inscriber",...t.logging}),o=e.includes("@")?`${e.split("@")[0]}-${e.split("@")[1].replace(/\./g,"-")}`:e;r.info("Retrieving inscription",{originalTransactionId:e,formattedTransactionId:o});try{let e;if(t.apiKey)r.debug("Initializing InscriptionSDK with API key"),e=new InscriptionSDK({apiKey:t.apiKey,network:t.network||"mainnet"});else{if(!t.accountId||!t.privateKey){const e=new Error("Either API key or account ID and private key are required for retrieving inscriptions");throw r.error("Missing authentication credentials",{hasApiKey:!!t.apiKey,hasAccountId:!!t.accountId,hasPrivateKey:!!t.privateKey}),e}r.debug("Initializing InscriptionSDK with server auth"),e=await InscriptionSDK.createWithAuth({type:"server",accountId:t.accountId,privateKey:t.privateKey,network:t.network||"mainnet"})}r.debug("Initialized SDK for inscription retrieval",{formattedTransactionId:o,network:t.network||"mainnet"});const n=await e.retrieveInscription(o);return r.info("Successfully retrieved inscription",{formattedTransactionId:o}),n}catch(n){throw r.error("Error retrieving inscription",{formattedTransactionId:o,error:n}),n}}function validateHashinalMetadata(e,t){const r=["name","creator","description","type"].filter((t=>!e[t]));if(r.length>0){const e=new Error(`Missing required Hashinal metadata fields: ${r.join(", ")}`);throw t.error("Hashinal metadata validation failed",{missingFields:r}),e}t.debug("Hashinal metadata validation passed",{name:e.name,creator:e.creator,description:e.description,type:e.type,hasAttributes:!!e.attributes,hasProperties:!!e.properties})}async function waitForInscriptionConfirmation(e,t,r=30,o=4e3){const n=Logger$2.getInstance({module:"Inscriber"});try{n.debug("Waiting for inscription confirmation",{transactionId:t,maxAttempts:r,intervalMs:o});const i=await e.waitForInscription(t,r,o,!0);return n.debug("Inscription confirmation received",{transactionId:t}),i}catch(i){throw n.error("Error waiting for inscription confirmation",{transactionId:t,maxAttempts:r,intervalMs:o,error:i}),i}}util2=util||(util={}),util2.assertEqual=e=>e,util2.assertIs=function(e){},util2.assertNever=function(e){throw new Error},util2.arrayToEnum=e=>{const t={};for(const r of e)t[r]=r;return t},util2.getValidEnumValues=e=>{const t=util2.objectKeys(e).filter((t=>"number"!=typeof e[e[t]])),r={};for(const o of t)r[o]=e[o];return util2.objectValues(r)},util2.objectValues=e=>util2.objectKeys(e).map((function(t){return e[t]})),util2.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{const t=[];for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t},util2.find=(e,t)=>{for(const r of e)if(t(r))return r},util2.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,util2.joinValues=function(e,t=" | "){return e.map((e=>"string"==typeof e?`'${e}'`:e)).join(t)},util2.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t,objectUtil2=objectUtil||(objectUtil={}),objectUtil2.mergeShapes=(e,t)=>({...e,...t});const ZodParsedType=util.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),getParsedType=e=>{switch(typeof e){case"undefined":return ZodParsedType.undefined;case"string":return ZodParsedType.string;case"number":return isNaN(e)?ZodParsedType.nan:ZodParsedType.number;case"boolean":return ZodParsedType.boolean;case"function":return ZodParsedType.function;case"bigint":return ZodParsedType.bigint;case"symbol":return ZodParsedType.symbol;case"object":return Array.isArray(e)?ZodParsedType.array:null===e?ZodParsedType.null:e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch?ZodParsedType.promise:"undefined"!=typeof Map&&e instanceof Map?ZodParsedType.map:"undefined"!=typeof Set&&e instanceof Set?ZodParsedType.set:"undefined"!=typeof Date&&e instanceof Date?ZodParsedType.date:ZodParsedType.object;default:return ZodParsedType.unknown}},ZodIssueCode=util.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),quotelessJson=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class ZodError extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){const t=e||function(e){return e.message},r={_errors:[]},o=e=>{for(const n of e.issues)if("invalid_union"===n.code)n.unionErrors.map(o);else if("invalid_return_type"===n.code)o(n.returnTypeError);else if("invalid_arguments"===n.code)o(n.argumentsError);else if(0===n.path.length)r._errors.push(t(n));else{let e=r,o=0;for(;o<n.path.length;){const r=n.path[o];o===n.path.length-1?(e[r]=e[r]||{_errors:[]},e[r]._errors.push(t(n))):e[r]=e[r]||{_errors:[]},e=e[r],o++}}};return o(this),r}static assert(e){if(!(e instanceof ZodError))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,util.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){const t={},r=[];for(const o of this.issues)o.path.length>0?(t[o.path[0]]=t[o.path[0]]||[],t[o.path[0]].push(e(o))):r.push(e(o));return{formErrors:r,fieldErrors:t}}get formErrors(){return this.flatten()}}ZodError.create=e=>new ZodError(e);const errorMap=(e,t)=>{let r;switch(e.code){case ZodIssueCode.invalid_type:r=e.received===ZodParsedType.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case ZodIssueCode.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,util.jsonStringifyReplacer)}`;break;case ZodIssueCode.unrecognized_keys:r=`Unrecognized key(s) in object: ${util.joinValues(e.keys,", ")}`;break;case ZodIssueCode.invalid_union:r="Invalid input";break;case ZodIssueCode.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${util.joinValues(e.options)}`;break;case ZodIssueCode.invalid_enum_value:r=`Invalid enum value. Expected ${util.joinValues(e.options)}, received '${e.received}'`;break;case ZodIssueCode.invalid_arguments:r="Invalid function arguments";break;case ZodIssueCode.invalid_return_type:r="Invalid function return type";break;case ZodIssueCode.invalid_date:r="Invalid date";break;case ZodIssueCode.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:util.assertNever(e.validation):r="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case ZodIssueCode.too_small:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case ZodIssueCode.too_big:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case ZodIssueCode.custom:r="Invalid input";break;case ZodIssueCode.invalid_intersection_types:r="Intersection results could not be merged";break;case ZodIssueCode.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case ZodIssueCode.not_finite:r="Number must be finite";break;default:r=t.defaultError,util.assertNever(e)}return{message:r}};let overrideErrorMap=errorMap;function setErrorMap(e){overrideErrorMap=e}function getErrorMap(){return overrideErrorMap}const makeIssue=e=>{const{data:t,path:r,errorMaps:o,issueData:n}=e,i=[...r,...n.path||[]],a={...n,path:i};if(void 0!==n.message)return{...n,path:i,message:n.message};let s="";const c=o.filter((e=>!!e)).slice().reverse();for(const u of c)s=u(a,{data:t,defaultError:s}).message;return{...n,path:i,message:s}},EMPTY_PATH=[];function addIssueToContext(e,t){const r=getErrorMap(),o=makeIssue({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===errorMap?void 0:errorMap].filter((e=>!!e))});e.common.issues.push(o)}class ParseStatus{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){const r=[];for(const o of t){if("aborted"===o.status)return INVALID;"dirty"===o.status&&e.dirty(),r.push(o.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,t){const r=[];for(const o of t){const e=await o.key,t=await o.value;r.push({key:e,value:t})}return ParseStatus.mergeObjectSync(e,r)}static mergeObjectSync(e,t){const r={};for(const o of t){const{key:t,value:n}=o;if("aborted"===t.status)return INVALID;if("aborted"===n.status)return INVALID;"dirty"===t.status&&e.dirty(),"dirty"===n.status&&e.dirty(),"__proto__"===t.value||void 0===n.value&&!o.alwaysSet||(r[t.value]=n.value)}return{status:e.value,value:r}}}const INVALID=Object.freeze({status:"aborted"}),DIRTY=e=>({status:"dirty",value:e}),OK=e=>({status:"valid",value:e}),isAborted=e=>"aborted"===e.status,isDirty=e=>"dirty"===e.status,isValid=e=>"valid"===e.status,isAsync=e=>"undefined"!=typeof Promise&&e instanceof Promise;function __classPrivateFieldGet(e,t,r,o){if("function"==typeof t||!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function __classPrivateFieldSet(e,t,r,o,n){if("function"==typeof t||!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,r),r}var errorUtil,errorUtil2,_ZodEnum_cache,_ZodNativeEnum_cache;"function"==typeof SuppressedError&&SuppressedError,errorUtil2=errorUtil||(errorUtil={}),errorUtil2.errToObj=e=>"string"==typeof e?{message:e}:e||{},errorUtil2.toString=e=>"string"==typeof e?e:null==e?void 0:e.message;class ParseInputLazyPath{constructor(e,t,r,o){this._cachedPath=[],this.parent=e,this.data=t,this._path=r,this._key=o}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const handleResult=(e,t)=>{if(isValid(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new ZodError(e.common.issues);return this._error=t,this._error}}};function processCreateParams(e){if(!e)return{};const{errorMap:t,invalid_type_error:r,required_error:o,description:n}=e;if(t&&(r||o))throw new Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');if(t)return{errorMap:t,description:n};return{errorMap:(t,n)=>{var i,a;const{message:s}=e;return"invalid_enum_value"===t.code?{message:null!=s?s:n.defaultError}:void 0===n.data?{message:null!==(i=null!=s?s:o)&&void 0!==i?i:n.defaultError}:"invalid_type"!==t.code?{message:n.defaultError}:{message:null!==(a=null!=s?s:r)&&void 0!==a?a:n.defaultError}},description:n}}class ZodType{get description(){return this._def.description}_getType(e){return getParsedType(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:getParsedType(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new ParseStatus,ctx:{common:e.parent.common,data:e.data,parsedType:getParsedType(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(isAsync(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const r=this.safeParse(e,t);if(r.success)return r.data;throw r.error}safeParse(e,t){var r;const o={common:{issues:[],async:null!==(r=null==t?void 0:t.async)&&void 0!==r&&r,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:getParsedType(e)},n=this._parseSync({data:e,path:o.path,parent:o});return handleResult(o,n)}"~validate"(e){var t,r;const o={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:getParsedType(e)};if(!this["~standard"].async)try{const t=this._parseSync({data:e,path:[],parent:o});return isValid(t)?{value:t.value}:{issues:o.common.issues}}catch(n){(null===(r=null===(t=null==n?void 0:n.message)||void 0===t?void 0:t.toLowerCase())||void 0===r?void 0:r.includes("encountered"))&&(this["~standard"].async=!0),o.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:o}).then((e=>isValid(e)?{value:e.value}:{issues:o.common.issues}))}async parseAsync(e,t){const r=await this.safeParseAsync(e,t);if(r.success)return r.data;throw r.error}async safeParseAsync(e,t){const r={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:getParsedType(e)},o=this._parse({data:e,path:r.path,parent:r}),n=await(isAsync(o)?o:Promise.resolve(o));return handleResult(r,n)}refine(e,t){const r=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement(((t,o)=>{const n=e(t),i=()=>o.addIssue({code:ZodIssueCode.custom,...r(t)});return"undefined"!=typeof Promise&&n instanceof Promise?n.then((e=>!!e||(i(),!1))):!!n||(i(),!1)}))}refinement(e,t){return this._refinement(((r,o)=>!!e(r)||(o.addIssue("function"==typeof t?t(r,o):t),!1)))}_refinement(e){return new ZodEffects({schema:this,typeName:ZodFirstPartyTypeKind.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return ZodOptional.create(this,this._def)}nullable(){return ZodNullable.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ZodArray.create(this)}promise(){return ZodPromise.create(this,this._def)}or(e){return ZodUnion.create([this,e],this._def)}and(e){return ZodIntersection.create(this,e,this._def)}transform(e){return new ZodEffects({...processCreateParams(this._def),schema:this,typeName:ZodFirstPartyTypeKind.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t="function"==typeof e?e:()=>e;return new ZodDefault({...processCreateParams(this._def),innerType:this,defaultValue:t,typeName:ZodFirstPartyTypeKind.ZodDefault})}brand(){return new ZodBranded({typeName:ZodFirstPartyTypeKind.ZodBranded,type:this,...processCreateParams(this._def)})}catch(e){const t="function"==typeof e?e:()=>e;return new ZodCatch({...processCreateParams(this._def),innerType:this,catchValue:t,typeName:ZodFirstPartyTypeKind.ZodCatch})}describe(e){return new(0,this.constructor)({...this._def,description:e})}pipe(e){return ZodPipeline.create(this,e)}readonly(){return ZodReadonly.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const cuidRegex=/^c[^\s-]{8,}$/i,cuid2Regex=/^[0-9a-z]+$/,ulidRegex=/^[0-9A-HJKMNP-TV-Z]{26}$/i,uuidRegex=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,nanoidRegex=/^[a-z0-9_-]{21}$/i,jwtRegex=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,durationRegex=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,emailRegex=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,_emojiRegex="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let emojiRegex;const ipv4Regex=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ipv4CidrRegex=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ipv6Regex=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,ipv6CidrRegex=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64Regex=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64urlRegex=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,dateRegexSource="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",dateRegex=new RegExp(`^${dateRegexSource}$`);function timeRegexSource(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`),t}function timeRegex(e){return new RegExp(`^${timeRegexSource(e)}$`)}function datetimeRegex(e){let t=`${dateRegexSource}T${timeRegexSource(e)}`;const r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}function isValidIP(e,t){return!("v4"!==t&&t||!ipv4Regex.test(e))||!("v6"!==t&&t||!ipv6Regex.test(e))}function isValidJWT(e,t){if(!jwtRegex.test(e))return!1;try{const[r]=e.split("."),o=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),n=JSON.parse(atob(o));return"object"==typeof n&&null!==n&&(!(!n.typ||!n.alg)&&(!t||n.alg===t))}catch(r){return!1}}function isValidCidr(e,t){return!("v4"!==t&&t||!ipv4CidrRegex.test(e))||!("v6"!==t&&t||!ipv6CidrRegex.test(e))}class ZodString extends ZodType{_parse(e){this._def.coerce&&(e.data=String(e.data));if(this._getType(e)!==ZodParsedType.string){const t=this._getOrReturnCtx(e);return addIssueToContext(t,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.string,received:t.parsedType}),INVALID}const t=new ParseStatus;let r;for(const n of this._def.checks)if("min"===n.kind)e.data.length<n.value&&(r=this._getOrReturnCtx(e,r),addIssueToContext(r,{code:ZodIssueCode.too_small,minimum:n.value,type:"string",inclusive:!0,exact:!1,message:n.message}),t.dirty());else if("max"===n.kind)e.data.length>n.value&&(r=this._getOrReturnCtx(e,r),addIssueToContext(r,{code:ZodIssueCode.too_big,maximum:n.value,type:"string",inclusive:!0,exact:!1,message:n.message}),t.dirty());else if("length"===n.kind){const o=e.data.length>n.value,i=e.data.length<n.value;(o||i)&&(r=this._getOrReturnCtx(e,r),o?addIssueToContext(r,{code:ZodIssueCode.too_big,maximum:n.value,type:"string",inclusive:!0,exact:!0,message:n.message}):i&&addIssueToContext(r,{code:ZodIssueCode.too_small,minimum:n.value,type:"string",inclusive:!0,exact:!0,message:n.message}),t.dirty())}else if("email"===n.kind)emailRegex.test(e.data)||(r=this._getOrReturnCtx(e,r),addIssueToContext(r,{validation:"email",code:ZodIssueCode.invalid_string,message:n.message}),t.dirty());else if("emoji"===n.kind)emojiRegex||(emojiRegex=new RegExp(_emojiRegex,"u")),emojiRegex.test(e.data)||(r=this._getOrReturnCtx(e,r),addIssueToContext(r,{validation:"emoji",code:ZodIssueCode.invalid_string,message:n.message}),t.dirty());else if("uuid"===n.kind)uuidRegex.test(e.data)||(r=this._getOrReturnCtx(e,r),addIssueToContext(r,{validation:"uuid",code:ZodIssueCode.invalid_string,message:n.message}),t.dirty());else if("nanoid"===n.kind)nanoidRegex.test(e.data)||(r=this._getOrReturnCtx(e,r),addIssueToContext(r,{validation:"nanoid",code:ZodIssueCode.invalid_string,message:n.message}),t.dirty());else if("cuid"===n.kind)cuidRegex.test(e.data)||(r=this._getOrReturnCtx(e,r),addIssueToContext(r,{validation:"cuid",code:ZodIssueCode.invalid_string,message:n.message}),t.dirty());else if("cuid2"===n.kind)cuid2Regex.test(e.data)||(r=this._getOrReturnCtx(e,r),addIssueToContext(r,{validation:"cuid2",code:ZodIssueCode.invalid_string,message:n.message}),t.dirty());else if("ulid"===n.kind)ulidRegex.test(e.data)||(r=this._getOrReturnCtx(e,r),addIssueToContext(r,{validation:"ulid",code:ZodIssueCode.invalid_string,message:n.message}),t.dirty());else if("url"===n.kind)try{new URL(e.data)}catch(o){r=this._getOrReturnCtx(e,r),addIssueToContext(r,{validation:"url",code:ZodIssueCode.invalid_string,message:n.message}),t.dirty()}else if("regex"===n.kind){n.regex.lastIndex=0;n.regex.test(e.data)||(r=this._getOrReturnCtx(e,r),addIssueToContext(r,{validation:"regex",code:ZodIssueCode.invalid_string,message:n.message}),t.dirty())}else if("trim"===n.kind)e.data=e.data.trim();else if("includes"===n.kind)e.data.includes(n.value,n.position)||(r=this._getOrReturnCtx(e,r),addIssueToContext(r,{code:ZodIssueCode.invalid_string,validation:{includes:n.value,position:n.position},message:n.message}),t.dirty());else if("toLowerCase"===n.kind)e.data=e.data.toLowerCase();else if("toUpperCase"===n.kind)e.data=e.data.toUpperCase();else if("startsWith"===n.kind)e.data.startsWith(n.value)||(r=this._getOrReturnCtx(e,r),addIssueToContext(r,{code:ZodIssueCode.invalid_string,validation:{startsWith:n.value},message:n.message}),t.dirty());else if("endsWith"===n.kind)e.data.endsWith(n.value)||(r=this._getOrReturnCtx(e,r),addIssueToContext(r,{code:ZodIssueCode.invalid_string,validation:{endsWith:n.value},message:n.message}),t.dirty());else if("datetime"===n.kind){datetimeRegex(n).test(e.data)||(r=this._getOrReturnCtx(e,r),addIssueToContext(r,{code:ZodIssueCode.invalid_string,validation:"datetime",message:n.message}),t.dirty())}else if("date"===n.kind){dateRegex.test(e.data)||(r=this._getOrReturnCtx(e,r),addIssueToContext(r,{code:ZodIssueCode.invalid_string,validation:"date",message:n.message}),t.dirty())}else if("time"===n.kind){timeRegex(n).test(e.data)||(r=this._getOrReturnCtx(e,r),addIssueToContext(r,{code:ZodIssueCode.invalid_string,validation:"time",message:n.message}),t.dirty())}else"duration"===n.kind?durationRegex.test(e.data)||(r=this._getOrReturnCtx(e,r),addIssueToContext(r,{validation:"duration",code:ZodIssueCode.invalid_string,message:n.message}),t.dirty()):"ip"===n.kind?isValidIP(e.data,n.version)||(r=this._getOrReturnCtx(e,r),addIssueToContext(r,{validation:"ip",code:ZodIssueCode.invalid_string,message:n.message}),t.dirty()):"jwt"===n.kind?isValidJWT(e.data,n.alg)||(r=this._getOrReturnCtx(e,r),addIssueToContext(r,{validation:"jwt",code:ZodIssueCode.invalid_string,message:n.message}),t.dirty()):"cidr"===n.kind?isValidCidr(e.data,n.version)||(r=this._getOrReturnCtx(e,r),addIssueToContext(r,{validation:"cidr",code:ZodIssueCode.invalid_string,message:n.message}),t.dirty()):"base64"===n.kind?base64Regex.test(e.data)||(r=this._getOrReturnCtx(e,r),addIssueToContext(r,{validation:"base64",code:ZodIssueCode.invalid_string,message:n.message}),t.dirty()):"base64url"===n.kind?base64urlRegex.test(e.data)||(r=this._getOrReturnCtx(e,r),addIssueToContext(r,{validation:"base64url",code:ZodIssueCode.invalid_string,message:n.message}),t.dirty()):util.assertNever(n);return{status:t.value,value:e.data}}_regex(e,t,r){return this.refinement((t=>e.test(t)),{validation:t,code:ZodIssueCode.invalid_string,...errorUtil.errToObj(r)})}_addCheck(e){return new ZodString({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...errorUtil.errToObj(e)})}url(e){return this._addCheck({kind:"url",...errorUtil.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...errorUtil.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...errorUtil.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...errorUtil.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...errorUtil.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...errorUtil.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...errorUtil.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...errorUtil.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...errorUtil.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...errorUtil.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...errorUtil.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...errorUtil.errToObj(e)})}datetime(e){var t,r;return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,offset:null!==(t=null==e?void 0:e.offset)&&void 0!==t&&t,local:null!==(r=null==e?void 0:e.local)&&void 0!==r&&r,...errorUtil.errToObj(null==e?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,...errorUtil.errToObj(null==e?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...errorUtil.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...errorUtil.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null==t?void 0:t.position,...errorUtil.errToObj(null==t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...errorUtil.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...errorUtil.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...errorUtil.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...errorUtil.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...errorUtil.errToObj(t)})}nonempty(e){return this.min(1,errorUtil.errToObj(e))}trim(){return new ZodString({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new ZodString({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new ZodString({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find((e=>"datetime"===e.kind))}get isDate(){return!!this._def.checks.find((e=>"date"===e.kind))}get isTime(){return!!this._def.checks.find((e=>"time"===e.kind))}get isDuration(){return!!this._def.checks.find((e=>"duration"===e.kind))}get isEmail(){return!!this._def.checks.find((e=>"email"===e.kind))}get isURL(){return!!this._def.checks.find((e=>"url"===e.kind))}get isEmoji(){return!!this._def.checks.find((e=>"emoji"===e.kind))}get isUUID(){return!!this._def.checks.find((e=>"uuid"===e.kind))}get isNANOID(){return!!this._def.checks.find((e=>"nanoid"===e.kind))}get isCUID(){return!!this._def.checks.find((e=>"cuid"===e.kind))}get isCUID2(){return!!this._def.checks.find((e=>"cuid2"===e.kind))}get isULID(){return!!this._def.checks.find((e=>"ulid"===e.kind))}get isIP(){return!!this._def.checks.find((e=>"ip"===e.kind))}get isCIDR(){return!!this._def.checks.find((e=>"cidr"===e.kind))}get isBase64(){return!!this._def.checks.find((e=>"base64"===e.kind))}get isBase64url(){return!!this._def.checks.find((e=>"base64url"===e.kind))}get minLength(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}function floatSafeRemainder(e,t){const r=(e.toString().split(".")[1]||"").length,o=(t.toString().split(".")[1]||"").length,n=r>o?r:o;return parseInt(e.toFixed(n).replace(".",""))%parseInt(t.toFixed(n).replace(".",""))/Math.pow(10,n)}ZodString.create=e=>{var t;return new ZodString({checks:[],typeName:ZodFirstPartyTypeKind.ZodString,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...processCreateParams(e)})};class ZodNumber extends ZodType{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){this._def.coerce&&(e.data=Number(e.data));if(this._getType(e)!==ZodParsedType.number){const t=this._getOrReturnCtx(e);return addIssueToContext(t,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.number,received:t.parsedType}),INVALID}let t;const r=new ParseStatus;for(const o of this._def.checks)if("int"===o.kind)util.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),addIssueToContext(t,{code:ZodIssueCode.invalid_type,expected:"integer",received:"float",message:o.message}),r.dirty());else if("min"===o.kind){(o.inclusive?e.data<o.value:e.data<=o.value)&&(t=this._getOrReturnCtx(e,t),addIssueToContext(t,{code:ZodIssueCode.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),r.dirty())}else if("max"===o.kind){(o.inclusive?e.data>o.value:e.data>=o.value)&&(t=this._getOrReturnCtx(e,t),addIssueToContext(t,{code:ZodIssueCode.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),r.dirty())}else"multipleOf"===o.kind?0!==floatSafeRemainder(e.data,o.value)&&(t=this._getOrReturnCtx(e,t),addIssueToContext(t,{code:ZodIssueCode.not_multiple_of,multipleOf:o.value,message:o.message}),r.dirty()):"finite"===o.kind?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),addIssueToContext(t,{code:ZodIssueCode.not_finite,message:o.message}),r.dirty()):util.assertNever(o);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,errorUtil.toString(t))}gt(e,t){return this.setLimit("min",e,!1,errorUtil.toString(t))}lte(e,t){return this.setLimit("max",e,!0,errorUtil.toString(t))}lt(e,t){return this.setLimit("max",e,!1,errorUtil.toString(t))}setLimit(e,t,r,o){return new ZodNumber({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:errorUtil.toString(o)}]})}_addCheck(e){return new ZodNumber({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:errorUtil.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:errorUtil.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:errorUtil.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:errorUtil.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:errorUtil.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:errorUtil.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:errorUtil.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:errorUtil.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:errorUtil.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find((e=>"int"===e.kind||"multipleOf"===e.kind&&util.isInteger(e.value)))}get isFinite(){let e=null,t=null;for(const r of this._def.checks){if("finite"===r.kind||"int"===r.kind||"multipleOf"===r.kind)return!0;"min"===r.kind?(null===t||r.value>t)&&(t=r.value):"max"===r.kind&&(null===e||r.value<e)&&(e=r.value)}return Number.isFinite(t)&&Number.isFinite(e)}}ZodNumber.create=e=>new ZodNumber({checks:[],typeName:ZodFirstPartyTypeKind.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...processCreateParams(e)});class ZodBigInt extends ZodType{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch(o){return this._getInvalidInput(e)}if(this._getType(e)!==ZodParsedType.bigint)return this._getInvalidInput(e);let t;const r=new ParseStatus;for(const n of this._def.checks)if("min"===n.kind){(n.inclusive?e.data<n.value:e.data<=n.value)&&(t=this._getOrReturnCtx(e,t),addIssueToContext(t,{code:ZodIssueCode.too_small,type:"bigint",minimum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty())}else if("max"===n.kind){(n.inclusive?e.data>n.value:e.data>=n.value)&&(t=this._getOrReturnCtx(e,t),addIssueToContext(t,{code:ZodIssueCode.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty())}else"multipleOf"===n.kind?e.data%n.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),addIssueToContext(t,{code:ZodIssueCode.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):util.assertNever(n);return{status:r.value,value:e.data}}_getInvalidInput(e){const t=this._getOrReturnCtx(e);return addIssueToContext(t,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.bigint,received:t.parsedType}),INVALID}gte(e,t){return this.setLimit("min",e,!0,errorUtil.toString(t))}gt(e,t){return this.setLimit("min",e,!1,errorUtil.toString(t))}lte(e,t){return this.setLimit("max",e,!0,errorUtil.toString(t))}lt(e,t){return this.setLimit("max",e,!1,errorUtil.toString(t))}setLimit(e,t,r,o){return new ZodBigInt({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:errorUtil.toString(o)}]})}_addCheck(e){return new ZodBigInt({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:errorUtil.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:errorUtil.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:errorUtil.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:errorUtil.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:errorUtil.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}ZodBigInt.create=e=>{var t;return new ZodBigInt({checks:[],typeName:ZodFirstPartyTypeKind.ZodBigInt,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...processCreateParams(e)})};class ZodBoolean extends ZodType{_parse(e){this._def.coerce&&(e.data=Boolean(e.data));if(this._getType(e)!==ZodParsedType.boolean){const t=this._getOrReturnCtx(e);return addIssueToContext(t,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.boolean,received:t.parsedType}),INVALID}return OK(e.data)}}ZodBoolean.create=e=>new ZodBoolean({typeName:ZodFirstPartyTypeKind.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...processCreateParams(e)});class ZodDate extends ZodType{_parse(e){this._def.coerce&&(e.data=new Date(e.data));if(this._getType(e)!==ZodParsedType.date){const t=this._getOrReturnCtx(e);return addIssueToContext(t,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.date,received:t.parsedType}),INVALID}if(isNaN(e.data.getTime())){return addIssueToContext(this._getOrReturnCtx(e),{code:ZodIssueCode.invalid_date}),INVALID}const t=new ParseStatus;let r;for(const o of this._def.checks)"min"===o.kind?e.data.getTime()<o.value&&(r=this._getOrReturnCtx(e,r),addIssueToContext(r,{code:ZodIssueCode.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),t.dirty()):"max"===o.kind?e.data.getTime()>o.value&&(r=this._getOrReturnCtx(e,r),addIssueToContext(r,{code:ZodIssueCode.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),t.dirty()):util.assertNever(o);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(e){return new ZodDate({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:errorUtil.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:errorUtil.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}ZodDate.create=e=>new ZodDate({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:ZodFirstPartyTypeKind.ZodDate,...processCreateParams(e)});class ZodSymbol extends ZodType{_parse(e){if(this._getType(e)!==ZodParsedType.symbol){const t=this._getOrReturnCtx(e);return addIssueToContext(t,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.symbol,received:t.parsedType}),INVALID}return OK(e.data)}}ZodSymbol.create=e=>new ZodSymbol({typeName:ZodFirstPartyTypeKind.ZodSymbol,...processCreateParams(e)});class ZodUndefined extends ZodType{_parse(e){if(this._getType(e)!==ZodParsedType.undefined){const t=this._getOrReturnCtx(e);return addIssueToContext(t,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.undefined,received:t.parsedType}),INVALID}return OK(e.data)}}ZodUndefined.create=e=>new ZodUndefined({typeName:ZodFirstPartyTypeKind.ZodUndefined,...processCreateParams(e)});class ZodNull extends ZodType{_parse(e){if(this._getType(e)!==ZodParsedType.null){const t=this._getOrReturnCtx(e);return addIssueToContext(t,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.null,received:t.parsedType}),INVALID}return OK(e.data)}}ZodNull.create=e=>new ZodNull({typeName:ZodFirstPartyTypeKind.ZodNull,...processCreateParams(e)});class ZodAny extends ZodType{constructor(){super(...arguments),this._any=!0}_parse(e){return OK(e.data)}}ZodAny.create=e=>new ZodAny({typeName:ZodFirstPartyTypeKind.ZodAny,...processCreateParams(e)});class ZodUnknown extends ZodType{constructor(){super(...arguments),this._unknown=!0}_parse(e){return OK(e.data)}}ZodUnknown.create=e=>new ZodUnknown({typeName:ZodFirstPartyTypeKind.ZodUnknown,...processCreateParams(e)});class ZodNever extends ZodType{_parse(e){const t=this._getOrReturnCtx(e);return addIssueToContext(t,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.never,received:t.parsedType}),INVALID}}ZodNever.create=e=>new ZodNever({typeName:ZodFirstPartyTypeKind.ZodNever,...processCreateParams(e)});class ZodVoid extends ZodType{_parse(e){if(this._getType(e)!==ZodParsedType.undefined){const t=this._getOrReturnCtx(e);return addIssueToContext(t,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.void,received:t.parsedType}),INVALID}return OK(e.data)}}ZodVoid.create=e=>new ZodVoid({typeName:ZodFirstPartyTypeKind.ZodVoid,...processCreateParams(e)});class ZodArray extends ZodType{_parse(e){const{ctx:t,status:r}=this._processInputParams(e),o=this._def;if(t.parsedType!==ZodParsedType.array)return addIssueToContext(t,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.array,received:t.parsedType}),INVALID;if(null!==o.exactLength){const e=t.data.length>o.exactLength.value,n=t.data.length<o.exactLength.value;(e||n)&&(addIssueToContext(t,{code:e?ZodIssueCode.too_big:ZodIssueCode.too_small,minimum:n?o.exactLength.value:void 0,maximum:e?o.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:o.exactLength.message}),r.dirty())}if(null!==o.minLength&&t.data.length<o.minLength.value&&(addIssueToContext(t,{code:ZodIssueCode.too_small,minimum:o.minLength.value,type:"array",inclusive:!0,exact:!1,message:o.minLength.message}),r.dirty()),null!==o.maxLength&&t.data.length>o.maxLength.value&&(addIssueToContext(t,{code:ZodIssueCode.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),r.dirty()),t.common.async)return Promise.all([...t.data].map(((e,r)=>o.type._parseAsync(new ParseInputLazyPath(t,e,t.path,r))))).then((e=>ParseStatus.mergeArray(r,e)));const n=[...t.data].map(((e,r)=>o.type._parseSync(new ParseInputLazyPath(t,e,t.path,r))));return ParseStatus.mergeArray(r,n)}get element(){return this._def.type}min(e,t){return new ZodArray({...this._def,minLength:{value:e,message:errorUtil.toString(t)}})}max(e,t){return new ZodArray({...this._def,maxLength:{value:e,message:errorUtil.toString(t)}})}length(e,t){return new ZodArray({...this._def,exactLength:{value:e,message:errorUtil.toString(t)}})}nonempty(e){return this.min(1,e)}}function deepPartialify(e){if(e instanceof ZodObject){const t={};for(const r in e.shape){const o=e.shape[r];t[r]=ZodOptional.create(deepPartialify(o))}return new ZodObject({...e._def,shape:()=>t})}return e instanceof ZodArray?new ZodArray({...e._def,type:deepPartialify(e.element)}):e instanceof ZodOptional?ZodOptional.create(deepPartialify(e.unwrap())):e instanceof ZodNullable?ZodNullable.create(deepPartialify(e.unwrap())):e instanceof ZodTuple?ZodTuple.create(e.items.map((e=>deepPartialify(e)))):e}ZodArray.create=(e,t)=>new ZodArray({type:e,minLength:null,maxLength:null,exactLength:null,typeName:ZodFirstPartyTypeKind.ZodArray,...processCreateParams(t)});class ZodObject extends ZodType{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;const e=this._def.shape(),t=util.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==ZodParsedType.object){const t=this._getOrReturnCtx(e);return addIssueToContext(t,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.object,received:t.parsedType}),INVALID}const{status:t,ctx:r}=this._processInputParams(e),{shape:o,keys:n}=this._getCached(),i=[];if(!(this._def.catchall instanceof ZodNever&&"strip"===this._def.unknownKeys))for(const s in r.data)n.includes(s)||i.push(s);const a=[];for(const s of n){const e=o[s],t=r.data[s];a.push({key:{status:"valid",value:s},value:e._parse(new ParseInputLazyPath(r,t,r.path,s)),alwaysSet:s in r.data})}if(this._def.catchall instanceof ZodNever){const e=this._def.unknownKeys;if("passthrough"===e)for(const t of i)a.push({key:{status:"valid",value:t},value:{status:"valid",value:r.data[t]}});else if("strict"===e)i.length>0&&(addIssueToContext(r,{code:ZodIssueCode.unrecognized_keys,keys:i}),t.dirty());else if("strip"!==e)throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const e=this._def.catchall;for(const t of i){const o=r.data[t];a.push({key:{status:"valid",value:t},value:e._parse(new ParseInputLazyPath(r,o,r.path,t)),alwaysSet:t in r.data})}}return r.common.async?Promise.resolve().then((async()=>{const e=[];for(const t of a){const r=await t.key,o=await t.value;e.push({key:r,value:o,alwaysSet:t.alwaysSet})}return e})).then((e=>ParseStatus.mergeObjectSync(t,e))):ParseStatus.mergeObjectSync(t,a)}get shape(){return this._def.shape()}strict(e){return errorUtil.errToObj,new ZodObject({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,r)=>{var o,n,i,a;const s=null!==(i=null===(n=(o=this._def).errorMap)||void 0===n?void 0:n.call(o,t,r).message)&&void 0!==i?i:r.defaultError;return"unrecognized_keys"===t.code?{message:null!==(a=errorUtil.errToObj(e).message)&&void 0!==a?a:s}:{message:s}}}:{}})}strip(){return new ZodObject({...this._def,unknownKeys:"strip"})}passthrough(){return new ZodObject({...this._def,unknownKeys:"passthrough"})}extend(e){return new ZodObject({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new ZodObject({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:ZodFirstPartyTypeKind.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new ZodObject({...this._def,catchall:e})}pick(e){const t={};return util.objectKeys(e).forEach((r=>{e[r]&&this.shape[r]&&(t[r]=this.shape[r])})),new ZodObject({...this._def,shape:()=>t})}omit(e){const t={};return util.objectKeys(this.shape).forEach((r=>{e[r]||(t[r]=this.shape[r])})),new ZodObject({...this._def,shape:()=>t})}deepPartial(){return deepPartialify(this)}partial(e){const t={};return util.objectKeys(this.shape).forEach((r=>{const o=this.shape[r];e&&!e[r]?t[r]=o:t[r]=o.optional()})),new ZodObject({...this._def,shape:()=>t})}required(e){const t={};return util.objectKeys(this.shape).forEach((r=>{if(e&&!e[r])t[r]=this.shape[r];else{let e=this.shape[r];for(;e instanceof ZodOptional;)e=e._def.innerType;t[r]=e}})),new ZodObject({...this._def,shape:()=>t})}keyof(){return createZodEnum(util.objectKeys(this.shape))}}ZodObject.create=(e,t)=>new ZodObject({shape:()=>e,unknownKeys:"strip",catchall:ZodNever.create(),typeName:ZodFirstPartyTypeKind.ZodObject,...processCreateParams(t)}),ZodObject.strictCreate=(e,t)=>new ZodObject({shape:()=>e,unknownKeys:"strict",catchall:ZodNever.create(),typeName:ZodFirstPartyTypeKind.ZodObject,...processCreateParams(t)}),ZodObject.lazycreate=(e,t)=>new ZodObject({shape:e,unknownKeys:"strip",catchall:ZodNever.create(),typeName:ZodFirstPartyTypeKind.ZodObject,...processCreateParams(t)});class ZodUnion extends ZodType{_parse(e){const{ctx:t}=this._processInputParams(e),r=this._def.options;if(t.common.async)return Promise.all(r.map((async e=>{const r={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:r}),ctx:r}}))).then((function(e){for(const t of e)if("valid"===t.result.status)return t.result;for(const o of e)if("dirty"===o.result.status)return t.common.issues.push(...o.ctx.common.issues),o.result;const r=e.map((e=>new ZodError(e.ctx.common.issues)));return addIssueToContext(t,{code:ZodIssueCode.invalid_union,unionErrors:r}),INVALID}));{let e;const o=[];for(const i of r){const r={...t,common:{...t.common,issues:[]},parent:null},n=i._parseSync({data:t.data,path:t.path,parent:r});if("valid"===n.status)return n;"dirty"!==n.status||e||(e={result:n,ctx:r}),r.common.issues.length&&o.push(r.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;const n=o.map((e=>new ZodError(e)));return addIssueToContext(t,{code:ZodIssueCode.invalid_union,unionErrors:n}),INVALID}}get options(){return this._def.options}}ZodUnion.create=(e,t)=>new ZodUnion({options:e,typeName:ZodFirstPartyTypeKind.ZodUnion,...processCreateParams(t)});const getDiscriminator=e=>e instanceof ZodLazy?getDiscriminator(e.schema):e instanceof ZodEffects?getDiscriminator(e.innerType()):e instanceof ZodLiteral?[e.value]:e instanceof ZodEnum?e.options:e instanceof ZodNativeEnum?util.objectValues(e.enum):e instanceof ZodDefault?getDiscriminator(e._def.innerType):e instanceof ZodUndefined?[void 0]:e instanceof ZodNull?[null]:e instanceof ZodOptional?[void 0,...getDiscriminator(e.unwrap())]:e instanceof ZodNullable?[null,...getDiscriminator(e.unwrap())]:e instanceof ZodBranded||e instanceof ZodReadonly?getDiscriminator(e.unwrap()):e instanceof ZodCatch?getDiscriminator(e._def.innerType):[];class ZodDiscriminatedUnion extends ZodType{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==ZodParsedType.object)return addIssueToContext(t,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.object,received:t.parsedType}),INVALID;const r=this.discriminator,o=t.data[r],n=this.optionsMap.get(o);return n?t.common.async?n._parseAsync({data:t.data,path:t.path,parent:t}):n._parseSync({data:t.data,path:t.path,parent:t}):(addIssueToContext(t,{code:ZodIssueCode.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),INVALID)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,r){const o=new Map;for(const n of t){const t=getDiscriminator(n.shape[e]);if(!t.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const r of t){if(o.has(r))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(r)}`);o.set(r,n)}}return new ZodDiscriminatedUnion({typeName:ZodFirstPartyTypeKind.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:o,...processCreateParams(r)})}}function mergeValues(e,t){const r=getParsedType(e),o=getParsedType(t);if(e===t)return{valid:!0,data:e};if(r===ZodParsedType.object&&o===ZodParsedType.object){const r=util.objectKeys(t),o=util.objectKeys(e).filter((e=>-1!==r.indexOf(e))),n={...e,...t};for(const i of o){const r=mergeValues(e[i],t[i]);if(!r.valid)return{valid:!1};n[i]=r.data}return{valid:!0,data:n}}if(r===ZodParsedType.array&&o===ZodParsedType.array){if(e.length!==t.length)return{valid:!1};const r=[];for(let o=0;o<e.length;o++){const n=mergeValues(e[o],t[o]);if(!n.valid)return{valid:!1};r.push(n.data)}return{valid:!0,data:r}}return r===ZodParsedType.date&&o===ZodParsedType.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class ZodIntersection extends ZodType{_parse(e){const{status:t,ctx:r}=this._processInputParams(e),o=(e,o)=>{if(isAborted(e)||isAborted(o))return INVALID;const n=mergeValues(e.value,o.value);return n.valid?((isDirty(e)||isDirty(o))&&t.dirty(),{status:t.value,value:n.data}):(addIssueToContext(r,{code:ZodIssueCode.invalid_intersection_types}),INVALID)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then((([e,t])=>o(e,t))):o(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}ZodIntersection.create=(e,t,r)=>new ZodIntersection({left:e,right:t,typeName:ZodFirstPartyTypeKind.ZodIntersection,...processCreateParams(r)});class ZodTuple extends ZodType{_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==ZodParsedType.array)return addIssueToContext(r,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.array,received:r.parsedType}),INVALID;if(r.data.length<this._def.items.length)return addIssueToContext(r,{code:ZodIssueCode.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),INVALID;!this._def.rest&&r.data.length>this._def.items.length&&(addIssueToContext(r,{code:ZodIssueCode.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const o=[...r.data].map(((e,t)=>{const o=this._def.items[t]||this._def.rest;return o?o._parse(new ParseInputLazyPath(r,e,r.path,t)):null})).filter((e=>!!e));return r.common.async?Promise.all(o).then((e=>ParseStatus.mergeArray(t,e))):ParseStatus.mergeArray(t,o)}get items(){return this._def.items}rest(e){return new ZodTuple({...this._def,rest:e})}}ZodTuple.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ZodTuple({items:e,typeName:ZodFirstPartyTypeKind.ZodTuple,rest:null,...processCreateParams(t)})};class ZodRecord extends ZodType{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==ZodParsedType.object)return addIssueToContext(r,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.object,received:r.parsedType}),INVALID;const o=[],n=this._def.keyType,i=this._def.valueType;for(const a in r.data)o.push({key:n._parse(new ParseInputLazyPath(r,a,r.path,a)),value:i._parse(new ParseInputLazyPath(r,r.data[a],r.path,a)),alwaysSet:a in r.data});return r.common.async?ParseStatus.mergeObjectAsync(t,o):ParseStatus.mergeObjectSync(t,o)}get element(){return this._def.valueType}static create(e,t,r){return new ZodRecord(t instanceof ZodType?{keyType:e,valueType:t,typeName:ZodFirstPartyTypeKind.ZodRecord,...processCreateParams(r)}:{keyType:ZodString.create(),valueType:e,typeName:ZodFirstPartyTypeKind.ZodRecord,...processCreateParams(t)})}}class ZodMap extends ZodType{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==ZodParsedType.map)return addIssueToContext(r,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.map,received:r.parsedType}),INVALID;const o=this._def.keyType,n=this._def.valueType,i=[...r.data.entries()].map((([e,t],i)=>({key:o._parse(new ParseInputLazyPath(r,e,r.path,[i,"key"])),value:n._parse(new ParseInputLazyPath(r,t,r.path,[i,"value"]))})));if(r.common.async){const e=new Map;return Promise.resolve().then((async()=>{for(const r of i){const o=await r.key,n=await r.value;if("aborted"===o.status||"aborted"===n.status)return INVALID;"dirty"!==o.status&&"dirty"!==n.status||t.dirty(),e.set(o.value,n.value)}return{status:t.value,value:e}}))}{const e=new Map;for(const r of i){const o=r.key,n=r.value;if("aborted"===o.status||"aborted"===n.status)return INVALID;"dirty"!==o.status&&"dirty"!==n.status||t.dirty(),e.set(o.value,n.value)}return{status:t.value,value:e}}}}ZodMap.create=(e,t,r)=>new ZodMap({valueType:t,keyType:e,typeName:ZodFirstPartyTypeKind.ZodMap,...processCreateParams(r)});class ZodSet extends ZodType{_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==ZodParsedType.set)return addIssueToContext(r,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.set,received:r.parsedType}),INVALID;const o=this._def;null!==o.minSize&&r.data.size<o.minSize.value&&(addIssueToContext(r,{code:ZodIssueCode.too_small,minimum:o.minSize.value,type:"set",inclusive:!0,exact:!1,message:o.minSize.message}),t.dirty()),null!==o.maxSize&&r.data.size>o.maxSize.value&&(addIssueToContext(r,{code:ZodIssueCode.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),t.dirty());const n=this._def.valueType;function i(e){const r=new Set;for(const o of e){if("aborted"===o.status)return INVALID;"dirty"===o.status&&t.dirty(),r.add(o.value)}return{status:t.value,value:r}}const a=[...r.data.values()].map(((e,t)=>n._parse(new ParseInputLazyPath(r,e,r.path,t))));return r.common.async?Promise.all(a).then((e=>i(e))):i(a)}min(e,t){return new ZodSet({...this._def,minSize:{value:e,message:errorUtil.toString(t)}})}max(e,t){return new ZodSet({...this._def,maxSize:{value:e,message:errorUtil.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}ZodSet.create=(e,t)=>new ZodSet({valueType:e,minSize:null,maxSize:null,typeName:ZodFirstPartyTypeKind.ZodSet,...processCreateParams(t)});class ZodFunction extends ZodType{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==ZodParsedType.function)return addIssueToContext(t,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.function,received:t.parsedType}),INVALID;function r(e,r){return makeIssue({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,getErrorMap(),errorMap].filter((e=>!!e)),issueData:{code:ZodIssueCode.invalid_arguments,argumentsError:r}})}function o(e,r){return makeIssue({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,getErrorMap(),errorMap].filter((e=>!!e)),issueData:{code:ZodIssueCode.invalid_return_type,returnTypeError:r}})}const n={errorMap:t.common.contextualErrorMap},i=t.data;if(this._def.returns instanceof ZodPromise){const e=this;return OK((async function(...t){const a=new ZodError([]),s=await e._def.args.parseAsync(t,n).catch((e=>{throw a.addIssue(r(t,e)),a})),c=await Reflect.apply(i,this,s);return await e._def.returns._def.type.parseAsync(c,n).catch((e=>{throw a.addIssue(o(c,e)),a}))}))}{const e=this;return OK((function(...t){const a=e._def.args.safeParse(t,n);if(!a.success)throw new ZodError([r(t,a.error)]);const s=Reflect.apply(i,this,a.data),c=e._def.returns.safeParse(s,n);if(!c.success)throw new ZodError([o(s,c.error)]);return c.data}))}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new ZodFunction({...this._def,args:ZodTuple.create(e).rest(ZodUnknown.create())})}returns(e){return new ZodFunction({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,r){return new ZodFunction({args:e||ZodTuple.create([]).rest(ZodUnknown.create()),returns:t||ZodUnknown.create(),typeName:ZodFirstPartyTypeKind.ZodFunction,...processCreateParams(r)})}}class ZodLazy extends ZodType{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}ZodLazy.create=(e,t)=>new ZodLazy({getter:e,typeName:ZodFirstPartyTypeKind.ZodLazy,...processCreateParams(t)});class ZodLiteral extends ZodType{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return addIssueToContext(t,{received:t.data,code:ZodIssueCode.invalid_literal,expected:this._def.value}),INVALID}return{status:"valid",value:e.data}}get value(){return this._def.value}}function createZodEnum(e,t){return new ZodEnum({values:e,typeName:ZodFirstPartyTypeKind.ZodEnum,...processCreateParams(t)})}ZodLiteral.create=(e,t)=>new ZodLiteral({value:e,typeName:ZodFirstPartyTypeKind.ZodLiteral,...processCreateParams(t)});class ZodEnum extends ZodType{constructor(){super(...arguments),_ZodEnum_cache.set(this,void 0)}_parse(e){if("string"!=typeof e.data){const t=this._getOrReturnCtx(e),r=this._def.values;return addIssueToContext(t,{expected:util.joinValues(r),received:t.parsedType,code:ZodIssueCode.invalid_type}),INVALID}if(__classPrivateFieldGet(this,_ZodEnum_cache)||__classPrivateFieldSet(this,_ZodEnum_cache,new Set(this._def.values)),!__classPrivateFieldGet(this,_ZodEnum_cache).has(e.data)){const t=this._getOrReturnCtx(e),r=this._def.values;return addIssueToContext(t,{received:t.data,code:ZodIssueCode.invalid_enum_value,options:r}),INVALID}return OK(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return ZodEnum.create(e,{...this._def,...t})}exclude(e,t=this._def){return ZodEnum.create(this.options.filter((t=>!e.includes(t))),{...this._def,...t})}}_ZodEnum_cache=new WeakMap,ZodEnum.create=createZodEnum;class ZodNativeEnum extends ZodType{constructor(){super(...arguments),_ZodNativeEnum_cache.set(this,void 0)}_parse(e){const t=util.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==ZodParsedType.string&&r.parsedType!==ZodParsedType.number){const e=util.objectValues(t);return addIssueToContext(r,{expected:util.joinValues(e),received:r.parsedType,code:ZodIssueCode.invalid_type}),INVALID}if(__classPrivateFieldGet(this,_ZodNativeEnum_cache)||__classPrivateFieldSet(this,_ZodNativeEnum_cache,new Set(util.getValidEnumValues(this._def.values))),!__classPrivateFieldGet(this,_ZodNativeEnum_cache).has(e.data)){const e=util.objectValues(t);return addIssueToContext(r,{received:r.data,code:ZodIssueCode.invalid_enum_value,options:e}),INVALID}return OK(e.data)}get enum(){return this._def.values}}_ZodNativeEnum_cache=new WeakMap,ZodNativeEnum.create=(e,t)=>new ZodNativeEnum({values:e,typeName:ZodFirstPartyTypeKind.ZodNativeEnum,...processCreateParams(t)});class ZodPromise extends ZodType{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==ZodParsedType.promise&&!1===t.common.async)return addIssueToContext(t,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.promise,received:t.parsedType}),INVALID;const r=t.parsedType===ZodParsedType.promise?t.data:Promise.resolve(t.data);return OK(r.then((e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap}))))}}ZodPromise.create=(e,t)=>new ZodPromise({type:e,typeName:ZodFirstPartyTypeKind.ZodPromise,...processCreateParams(t)});class ZodEffects extends ZodType{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ZodFirstPartyTypeKind.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:r}=this._processInputParams(e),o=this._def.effect||null,n={addIssue:e=>{addIssueToContext(r,e),e.fatal?t.abort():t.dirty()},get path(){return r.path}};if(n.addIssue=n.addIssue.bind(n),"preprocess"===o.type){const e=o.transform(r.data,n);if(r.common.async)return Promise.resolve(e).then((async e=>{if("aborted"===t.value)return INVALID;const o=await this._def.schema._parseAsync({data:e,path:r.path,parent:r});return"aborted"===o.status?INVALID:"dirty"===o.status||"dirty"===t.value?DIRTY(o.value):o}));{if("aborted"===t.value)return INVALID;const o=this._def.schema._parseSync({data:e,path:r.path,parent:r});return"aborted"===o.status?INVALID:"dirty"===o.status||"dirty"===t.value?DIRTY(o.value):o}}if("refinement"===o.type){const e=e=>{const t=o.refinement(e,n);if(r.common.async)return Promise.resolve(t);if(t instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1===r.common.async){const o=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===o.status?INVALID:("dirty"===o.status&&t.dirty(),e(o.value),{status:t.value,value:o.value})}return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then((r=>"aborted"===r.status?INVALID:("dirty"===r.status&&t.dirty(),e(r.value).then((()=>({status:t.value,value:r.value}))))))}if("transform"===o.type){if(!1===r.common.async){const e=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!isValid(e))return e;const i=o.transform(e.value,n);if(i instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:i}}return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then((e=>isValid(e)?Promise.resolve(o.transform(e.value,n)).then((e=>({status:t.value,value:e}))):e))}util.assertNever(o)}}ZodEffects.create=(e,t,r)=>new ZodEffects({schema:e,typeName:ZodFirstPartyTypeKind.ZodEffects,effect:t,...processCreateParams(r)}),ZodEffects.createWithPreprocess=(e,t,r)=>new ZodEffects({schema:t,effect:{type:"preprocess",transform:e},typeName:ZodFirstPartyTypeKind.ZodEffects,...processCreateParams(r)});class ZodOptional extends ZodType{_parse(e){return this._getType(e)===ZodParsedType.undefined?OK(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ZodOptional.create=(e,t)=>new ZodOptional({innerType:e,typeName:ZodFirstPartyTypeKind.ZodOptional,...processCreateParams(t)});class ZodNullable extends ZodType{_parse(e){return this._getType(e)===ZodParsedType.null?OK(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ZodNullable.create=(e,t)=>new ZodNullable({innerType:e,typeName:ZodFirstPartyTypeKind.ZodNullable,...processCreateParams(t)});class ZodDefault extends ZodType{_parse(e){const{ctx:t}=this._processInputParams(e);let r=t.data;return t.parsedType===ZodParsedType.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}ZodDefault.create=(e,t)=>new ZodDefault({innerType:e,typeName:ZodFirstPartyTypeKind.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...processCreateParams(t)});class ZodCatch extends ZodType{_parse(e){const{ctx:t}=this._processInputParams(e),r={...t,common:{...t.common,issues:[]}},o=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return isAsync(o)?o.then((e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new ZodError(r.common.issues)},input:r.data})}))):{status:"valid",value:"valid"===o.status?o.value:this._def.catchValue({get error(){return new ZodError(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}ZodCatch.create=(e,t)=>new ZodCatch({innerType:e,typeName:ZodFirstPartyTypeKind.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...processCreateParams(t)});class ZodNaN extends ZodType{_parse(e){if(this._getType(e)!==ZodParsedType.nan){const t=this._getOrReturnCtx(e);return addIssueToContext(t,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.nan,received:t.parsedType}),INVALID}return{status:"valid",value:e.data}}}ZodNaN.create=e=>new ZodNaN({typeName:ZodFirstPartyTypeKind.ZodNaN,...processCreateParams(e)});const BRAND=Symbol("zod_brand");class ZodBranded extends ZodType{_parse(e){const{ctx:t}=this._processInputParams(e),r=t.data;return this._def.type._parse({data:r,path:t.path,parent:t})}unwrap(){return this._def.type}}class ZodPipeline extends ZodType{_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.common.async){return(async()=>{const e=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?INVALID:"dirty"===e.status?(t.dirty(),DIRTY(e.value)):this._def.out._parseAsync({data:e.value,path:r.path,parent:r})})()}{const e=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?INVALID:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:r.path,parent:r})}}static create(e,t){return new ZodPipeline({in:e,out:t,typeName:ZodFirstPartyTypeKind.ZodPipeline})}}class ZodReadonly extends ZodType{_parse(e){const t=this._def.innerType._parse(e),r=e=>(isValid(e)&&(e.value=Object.freeze(e.value)),e);return isAsync(t)?t.then((e=>r(e))):r(t)}unwrap(){return this._def.innerType}}function cleanParams(e,t){const r="function"==typeof e?e(t):"string"==typeof e?{message:e}:e;return"string"==typeof r?{message:r}:r}function custom(e,t={},r){return e?ZodAny.create().superRefine(((o,n)=>{var i,a;const s=e(o);if(s instanceof Promise)return s.then((e=>{var i,a;if(!e){const e=cleanParams(t,o),s=null===(a=null!==(i=e.fatal)&&void 0!==i?i:r)||void 0===a||a;n.addIssue({code:"custom",...e,fatal:s})}}));if(!s){const e=cleanParams(t,o),s=null===(a=null!==(i=e.fatal)&&void 0!==i?i:r)||void 0===a||a;n.addIssue({code:"custom",...e,fatal:s})}})):ZodAny.create()}ZodReadonly.create=(e,t)=>new ZodReadonly({innerType:e,typeName:ZodFirstPartyTypeKind.ZodReadonly,...processCreateParams(t)});const late={object:ZodObject.lazycreate};var ZodFirstPartyTypeKind,ZodFirstPartyTypeKind2;ZodFirstPartyTypeKind2=ZodFirstPartyTypeKind||(ZodFirstPartyTypeKind={}),ZodFirstPartyTypeKind2.ZodString="ZodString",ZodFirstPartyTypeKind2.ZodNumber="ZodNumber",ZodFirstPartyTypeKind2.ZodNaN="ZodNaN",ZodFirstPartyTypeKind2.ZodBigInt="ZodBigInt",ZodFirstPartyTypeKind2.ZodBoolean="ZodBoolean",ZodFirstPartyTypeKind2.ZodDate="ZodDate",ZodFirstPartyTypeKind2.ZodSymbol="ZodSymbol",ZodFirstPartyTypeKind2.ZodUndefined="ZodUndefined",ZodFirstPartyTypeKind2.ZodNull="ZodNull",ZodFirstPartyTypeKind2.ZodAny="ZodAny",ZodFirstPartyTypeKind2.ZodUnknown="ZodUnknown",ZodFirstPartyTypeKind2.ZodNever="ZodNever",ZodFirstPartyTypeKind2.ZodVoid="ZodVoid",ZodFirstPartyTypeKind2.ZodArray="ZodArray",ZodFirstPartyTypeKind2.ZodObject="ZodObject",ZodFirstPartyTypeKind2.ZodUnion="ZodUnion",ZodFirstPartyTypeKind2.ZodDiscriminatedUnion="ZodDiscriminatedUnion",ZodFirstPartyTypeKind2.ZodIntersection="ZodIntersection",ZodFirstPartyTypeKind2.ZodTuple="ZodTuple",ZodFirstPartyTypeKind2.ZodRecord="ZodRecord",ZodFirstPartyTypeKind2.ZodMap="ZodMap",ZodFirstPartyTypeKind2.ZodSet="ZodSet",ZodFirstPartyTypeKind2.ZodFunction="ZodFunction",ZodFirstPartyTypeKind2.ZodLazy="ZodLazy",ZodFirstPartyTypeKind2.ZodLiteral="ZodLiteral",ZodFirstPartyTypeKind2.ZodEnum="ZodEnum",ZodFirstPartyTypeKind2.ZodEffects="ZodEffects",ZodFirstPartyTypeKind2.ZodNativeEnum="ZodNativeEnum",ZodFirstPartyTypeKind2.ZodOptional="ZodOptional",ZodFirstPartyTypeKind2.ZodNullable="ZodNullable",ZodFirstPartyTypeKind2.ZodDefault="ZodDefault",ZodFirstPartyTypeKind2.ZodCatch="ZodCatch",ZodFirstPartyTypeKind2.ZodPromise="ZodPromise",ZodFirstPartyTypeKind2.ZodBranded="ZodBranded",ZodFirstPartyTypeKind2.ZodPipeline="ZodPipeline",ZodFirstPartyTypeKind2.ZodReadonly="ZodReadonly";const instanceOfType=(e,t={message:`Input not instance of ${e.name}`})=>custom((t=>t instanceof e),t),stringType=ZodString.create,numberType=ZodNumber.create,nanType=ZodNaN.create,bigIntType=ZodBigInt.create,booleanType=ZodBoolean.create,dateType=ZodDate.create,symbolType=ZodSymbol.create,undefinedType=ZodUndefined.create,nullType=ZodNull.create,anyType=ZodAny.create,unknownType=ZodUnknown.create,neverType=ZodNever.create,voidType=ZodVoid.create,arrayType=ZodArray.create,objectType=ZodObject.create,strictObjectType=ZodObject.strictCreate,unionType=ZodUnion.create,discriminatedUnionType=ZodDiscriminatedUnion.create,intersectionType=ZodIntersection.create,tupleType=ZodTuple.create,recordType=ZodRecord.create,mapType=ZodMap.create,setType=ZodSet.create,functionType=ZodFunction.create,lazyType=ZodLazy.create,literalType=ZodLiteral.create,enumType=ZodEnum.create,nativeEnumType=ZodNativeEnum.create,promiseType=ZodPromise.create,effectsType=ZodEffects.create,optionalType=ZodOptional.create,nullableType=ZodNullable.create,preprocessType=ZodEffects.createWithPreprocess,pipelineType=ZodPipeline.create,ostring=()=>stringType().optional(),onumber=()=>numberType().optional(),oboolean=()=>booleanType().optional(),coerce={string:e=>ZodString.create({...e,coerce:!0}),number:e=>ZodNumber.create({...e,coerce:!0}),boolean:e=>ZodBoolean.create({...e,coerce:!0}),bigint:e=>ZodBigInt.create({...e,coerce:!0}),date:e=>ZodDate.create({...e,coerce:!0})},NEVER=INVALID;var z=Object.freeze({__proto__:null,defaultErrorMap:errorMap,setErrorMap:setErrorMap,getErrorMap:getErrorMap,makeIssue:makeIssue,EMPTY_PATH:EMPTY_PATH,addIssueToContext:addIssueToContext,ParseStatus:ParseStatus,INVALID:INVALID,DIRTY:DIRTY,OK:OK,isAborted:isAborted,isDirty:isDirty,isValid:isValid,isAsync:isAsync,get util(){return util},get objectUtil(){return objectUtil},ZodParsedType:ZodParsedType,getParsedType:getParsedType,ZodType:ZodType,datetimeRegex:datetimeRegex,ZodString:ZodString,ZodNumber:ZodNumber,ZodBigInt:ZodBigInt,ZodBoolean:ZodBoolean,ZodDate:ZodDate,ZodSymbol:ZodSymbol,ZodUndefined:ZodUndefined,ZodNull:ZodNull,ZodAny:ZodAny,ZodUnknown:ZodUnknown,ZodNever:ZodNever,ZodVoid:ZodVoid,ZodArray:ZodArray,ZodObject:ZodObject,ZodUnion:ZodUnion,ZodDiscriminatedUnion:ZodDiscriminatedUnion,ZodIntersection:ZodIntersection,ZodTuple:ZodTuple,ZodRecord:ZodRecord,ZodMap:ZodMap,ZodSet:ZodSet,ZodFunction:ZodFunction,ZodLazy:ZodLazy,ZodLiteral:ZodLiteral,ZodEnum:ZodEnum,ZodNativeEnum:ZodNativeEnum,ZodPromise:ZodPromise,ZodEffects:ZodEffects,ZodTransformer:ZodEffects,ZodOptional:ZodOptional,ZodNullable:ZodNullable,ZodDefault:ZodDefault,ZodCatch:ZodCatch,ZodNaN:ZodNaN,BRAND:BRAND,ZodBranded:ZodBranded,ZodPipeline:ZodPipeline,ZodReadonly:ZodReadonly,custom:custom,Schema:ZodType,ZodSchema:ZodType,late:late,get ZodFirstPartyTypeKind(){return ZodFirstPartyTypeKind},coerce:coerce,any:anyType,array:arrayType,bigint:bigIntType,boolean:booleanType,date:dateType,discriminatedUnion:discriminatedUnionType,effect:effectsType,enum:enumType,function:functionType,instanceof:instanceOfType,intersection:intersectionType,lazy:lazyType,literal:literalType,map:mapType,nan:nanType,nativeEnum:nativeEnumType,never:neverType,null:nullType,nullable:nullableType,number:numberType,object:objectType,oboolean:oboolean,onumber:onumber,optional:optionalType,ostring:ostring,pipeline:pipelineType,preprocess:preprocessType,promise:promiseType,record:recordType,set:setType,strictObject:strictObjectType,string:stringType,symbol:symbolType,transformer:effectsType,tuple:tupleType,undefined:undefinedType,union:unionType,unknown:unknownType,void:voidType,NEVER:NEVER,ZodIssueCode:ZodIssueCode,quotelessJson:quotelessJson,ZodError:ZodError}),ProfileType=(e=>(e[e.PERSONAL=0]="PERSONAL",e[e.AI_AGENT=1]="AI_AGENT",e))(ProfileType||{}),AIAgentType=(e=>(e[e.MANUAL=0]="MANUAL",e[e.AUTONOMOUS=1]="AUTONOMOUS",e))(AIAgentType||{}),EndpointType=(e=>(e[e.REST=0]="REST",e[e.WEBSOCKET=1]="WEBSOCKET",e[e.GRPC=2]="GRPC",e))(EndpointType||{}),AIAgentCapability=(e=>(e[e.TEXT_GENERATION=0]="TEXT_GENERATION",e[e.IMAGE_GENERATION=1]="IMAGE_GENERATION",e[e.AUDIO_GENERATION=2]="AUDIO_GENERATION",e[e.VIDEO_GENERATION=3]="VIDEO_GENERATION",e[e.CODE_GENERATION=4]="CODE_GENERATION",e[e.LANGUAGE_TRANSLATION=5]="LANGUAGE_TRANSLATION",e[e.SUMMARIZATION_EXTRACTION=6]="SUMMARIZATION_EXTRACTION",e[e.KNOWLEDGE_RETRIEVAL=7]="KNOWLEDGE_RETRIEVAL",e[e.DATA_INTEGRATION=8]="DATA_INTEGRATION",e[e.MARKET_INTELLIGENCE=9]="MARKET_INTELLIGENCE",e[e.TRANSACTION_ANALYTICS=10]="TRANSACTION_ANALYTICS",e[e.SMART_CONTRACT_AUDIT=11]="SMART_CONTRACT_AUDIT",e[e.GOVERNANCE_FACILITATION=12]="GOVERNANCE_FACILITATION",e[e.SECURITY_MONITORING=13]="SECURITY_MONITORING",e[e.COMPLIANCE_ANALYSIS=14]="COMPLIANCE_ANALYSIS",e[e.FRAUD_DETECTION=15]="FRAUD_DETECTION",e[e.MULTI_AGENT_COORDINATION=16]="MULTI_AGENT_COORDINATION",e[e.API_INTEGRATION=17]="API_INTEGRATION",e[e.WORKFLOW_AUTOMATION=18]="WORKFLOW_AUTOMATION",e))(AIAgentCapability||{});const SUPPORTED_SOCIAL_PLATFORMS=["twitter","github","discord","telegram","linkedin","youtube"],SocialLinkSchema=z.object({platform:z.string().min(1),handle:z.string().min(1)}),AIAgentDetailsSchema=z.object({type:z.nativeEnum(AIAgentType),capabilities:z.array(z.nativeEnum(AIAgentCapability)).min(1),model:z.string().min(1),creator:z.string().optional()}),BaseProfileSchema=z.object({version:z.string().min(1),type:z.nativeEnum(ProfileType),display_name:z.string().min(1),alias:z.string().optional(),bio:z.string().optional(),socials:z.array(SocialLinkSchema).optional(),profileImage:z.string().optional(),properties:z.record(z.any()).optional(),inboundTopicId:z.string().optional(),outboundTopicId:z.string().optional()}),PersonalProfileSchema=BaseProfileSchema.extend({type:z.literal(0),language:z.string().optional(),timezone:z.string().optional()}),AIAgentProfileSchema=BaseProfileSchema.extend({type:z.literal(1),aiAgent:AIAgentDetailsSchema}),HCS11ProfileSchema=z.union([PersonalProfileSchema,AIAgentProfileSchema]),capabilityNameToCapabilityMap={text_generation:0,image_generation:1,audio_generation:2,video_generation:3,code_generation:4,language_translation:5,summarization:6,extraction:6,knowledge_retrieval:7,data_integration:8,data_visualization:8,market_intelligence:9,transaction_analytics:10,smart_contract_audit:11,governance:12,security_monitoring:13,compliance_analysis:14,fraud_detection:15,multi_agent:16,api_integration:17,workflow_automation:18};class HCS11Client{constructor(e){if(this.client="mainnet"===e.network?i$1.forMainnet():i$1.forTestnet(),this.auth=e.auth,this.network=e.network,this.auth.privateKey){const e=y$2.fromString(this.auth.privateKey);this.client.setOperator(this.auth.operatorId,e)}this.logger=Logger$2.getInstance({level:e.logLevel||"info",module:"HCS-11"})}getClient(){return this.client}getOperatorId(){return this.auth.operatorId}createPersonalProfile(e,t){return{version:"1.0",type:0,display_name:e,alias:null==t?void 0:t.alias,bio:null==t?void 0:t.bio,socials:null==t?void 0:t.socials,profileImage:null==t?void 0:t.profileImage,language:null==t?void 0:t.language,timezone:null==t?void 0:t.timezone,properties:null==t?void 0:t.properties,inboundTopicId:null==t?void 0:t.inboundTopicId,outboundTopicId:null==t?void 0:t.outboundTopicId}}createAIAgentProfile(e,t,r,o,n){const i=this.validateProfile({version:"1.0",type:1,display_name:e,alias:null==n?void 0:n.alias,bio:null==n?void 0:n.bio,socials:null==n?void 0:n.socials,profileImage:null==n?void 0:n.profileImage,properties:null==n?void 0:n.properties,inboundTopicId:null==n?void 0:n.inboundTopicId,outboundTopicId:null==n?void 0:n.outboundTopicId,aiAgent:{type:t,capabilities:r,model:o,creator:null==n?void 0:n.creator}});if(!i.valid)throw new Error(`Invalid AI Agent Profile: ${i.errors.join(", ")}`);return{version:"1.0",type:1,display_name:e,alias:null==n?void 0:n.alias,bio:null==n?void 0:n.bio,socials:null==n?void 0:n.socials,profileImage:null==n?void 0:n.profileImage,properties:null==n?void 0:n.properties,inboundTopicId:null==n?void 0:n.inboundTopicId,outboundTopicId:null==n?void 0:n.outboundTopicId,aiAgent:{type:t,capabilities:r,model:o,creator:null==n?void 0:n.creator}}}validateProfile(e){const t=HCS11ProfileSchema.safeParse(e);if(t.success)return{valid:!0,errors:[]};return{valid:!1,errors:t.error.errors.map((e=>{var t;const r=e.path.join(".");let o=e.message;if("invalid_type"===e.code)o=`Expected ${e.expected}, got ${e.received}`;else if("invalid_enum_value"===e.code){o=`Invalid value. Valid options are: ${null==(t=e.options)?void 0:t.join(", ")}`}else"too_small"===e.code&&"string"===e.type&&(o="Cannot be empty");return`${r}: ${o}`}))}}profileToJSONString(e){return JSON.stringify(e)}parseProfileFromString(e){try{const t=JSON.parse(e),r=this.validateProfile(t);return r.valid?t:(this.logger.error("Invalid profile format:",r.errors),null)}catch(t){return this.logger.error("Error parsing profile:",t),null}}setProfileForAccountMemo(e,t=1){return`hcs-11:hcs://${t}/${e}`}async executeTransaction(e){try{if(this.auth.privateKey){const t=await e.signWithOperator(this.client),r=await t.execute(this.client),o=await r.getReceipt(this.client);return o.status!==e$6.Success?{success:!1,error:`Transaction failed: ${o.status.toString()}`}:{success:!0,result:o}}if(!this.auth.signer)throw new Error("No valid authentication method provided");const t=this.auth.signer,r=await e.freezeWithSigner(t),o=await r.executeWithSigner(t),n=await o.getReceiptWithSigner(t);return n.status!==e$6.Success?{success:!1,error:`Transaction failed: ${n.status.toString()}`}:{success:!0,result:n}}catch(t){return{success:!1,error:t instanceof Error?t.message:"Unknown error during transaction execution"}}}async inscribeContent(e,t,r,o=!1){try{const n="string"==typeof e?Buffer.from(e,"utf-8"):e,i={type:"buffer",buffer:n,fileName:t,mimeType:r||mimeTypes.lookup(t)||"application/octet-stream"},a={waitForConfirmation:!0,mode:"file",network:this.network,maxRetries:100,waitMaxAttempts:100},s=this.auth.privateKey?await inscribe(i,{accountId:this.auth.operatorId,privateKey:this.auth.privateKey,network:this.network},a):await inscribeWithSigner(i,this.auth.signer,a);if(!s.confirmed||!s.inscription.topic_id)return{profileTopicId:"",transactionId:"",success:!1,error:"Failed to inscribe content",...o?{imageTopicId:""}:{}};const c=s.inscription.topic_id;return{...o?{imageTopicId:c}:{profileTopicId:c},transactionId:s.result.transactionId,success:!0}}catch(n){return{profileTopicId:"",transactionId:"",success:!1,error:n instanceof Error?n.message:"Unknown error during inscription",...o?{imageTopicId:""}:{}}}}async inscribeImage(e,t){return this.logger.info("Inscribing image"),this.inscribeContent(e,t,void 0,!0)}async inscribeProfile(e){this.logger.info("Inscribing HCS-11 profile");const t=this.validateProfile(e);if(!t.valid)return{profileTopicId:"",transactionId:"",success:!1,error:`Invalid profile: ${t.errors.join(", ")}`};const r=this.profileToJSONString(e),o=`profile-${e.display_name.toLowerCase().replace(/\s+/g,"-")}.json`;return this.inscribeContent(r,o,"application/json",!1)}async updateAccountMemoWithProfile(e,t){try{this.logger.info(`Updating account memo for ${e} with profile ${t}`);const r=this.setProfileForAccountMemo(t),o=(new s$4).setAccountMemo(r).setAccountId(e);return this.executeTransaction(o)}catch(r){return this.logger.error(`Error updating account memo: ${r instanceof Error?r.message:"Unknown error"}`),{success:!1,error:r instanceof Error?r.message:"Unknown error updating account memo"}}}async createAndInscribeProfile(e,t=!0){const r=await this.inscribeProfile(e);if(!r.success)return r;if(t){const e=await this.updateAccountMemoWithProfile(this.auth.operatorId,r.profileTopicId);if(!e.success)return{...r,success:!1,error:e.error}}return r}async getCapabilitiesFromTags(e){const t=[];if(0===e.length)return[0];for(const r of e){const e=capabilityNameToCapabilityMap[r.toLowerCase()];void 0===e||t.includes(e)||t.push(e)}return 0===t.length&&t.push(0),t}getAgentTypeFromMetadata(e){return"autonomous"===e.type?1:0}}async function accountIdsToExemptKeys(e,t,r){const o=new HederaMirrorNode(t,r),n=[];for(const a of e)try{const e=await o.getPublicKey(a);n.push(e)}catch(i){r&&r.warn(`Could not get public key for account ${a}: ${i}`)}return n}class FeeConfigBuilder{constructor(){this.feeAmount=0,this.decimals=0,this.feeCollectorAccountId="",this.exemptAccountIds=[]}static forHbar(e,t,r=[]){return(new FeeConfigBuilder).setHbarAmount(e).setFeeCollector(t).addExemptAccounts(r)}setHbarAmount(e){if(e<=0)throw new Error("HBAR amount must be greater than zero");return this.feeAmount=1e8*e,this.decimals=0,this}setFeeAmount(e,t=0){return this.feeAmount=e,this.decimals=t,this}setFeeCollector(e){return this.feeCollectorAccountId=e,this}addExemptAccount(e){return this.exemptAccountIds.includes(e)||this.exemptAccountIds.push(e),this}addExemptAccounts(e){for(const t of e)this.addExemptAccount(t);return this}build(){if(!this.feeCollectorAccountId)throw new Error("Fee collector account ID is required");if(this.feeAmount<=0)throw new Error("Fee amount must be greater than zero");return{feeAmount:{amount:this.feeAmount,decimals:this.decimals},feeCollectorAccountId:this.feeCollectorAccountId,exemptAccounts:this.exemptAccountIds}}}class HCS10Client extends HCS10BaseClient{constructor(e){super({network:e.network,logLevel:e.logLevel}),this.client="mainnet"===e.network?i$1.forMainnet():i$1.forTestnet(),this.operatorPrivateKey=y$2.fromString(e.operatorPrivateKey),this.network=e.network,this.client.setOperator(e.operatorId,this.operatorPrivateKey.toString()),this.logger=Logger$2.getInstance({level:e.logLevel||"info",module:"HCS-SDK"}),this.guardedRegistryBaseUrl=e.guardedRegistryBaseUrl||"https://hcs-10.hashgraphonline.com",this.feeAmount=e.feeAmount||5,this.hcs11Client=new HCS11Client({network:e.network,auth:{operatorId:e.operatorId,privateKey:e.operatorPrivateKey},logLevel:e.logLevel})}getClient(){return this.client}async createAccount(){this.logger.info("Creating new account");const e=y$2.generate(),t=(new l).setKey(e.publicKey).setInitialBalance(new e$7(10));this.logger.debug("Executing account creation transaction");const r=await t.execute(this.client),o=(await r.getReceipt(this.client)).accountId;if(!o)throw this.logger.error("Account creation failed: accountId is null"),new AccountCreationError("Failed to create account: accountId is null");return this.logger.info(`Account created successfully: ${o.toString()}`),{accountId:o.toString(),privateKey:e.toString()}}async createInboundTopic(e,t,r){this.logger.info(`Creating ${t} inbound topic`);const o=`hcs-10:0:60:0:${e}`;switch(t){case InboundTopicType.PUBLIC:return this.createTopic(o,!0,!1);case InboundTopicType.CONTROLLED:return this.createTopic(o,!0,!0);case InboundTopicType.FEE_BASED:if(!r)throw new Error("Fee configuration is required for fee-based topics");return this.createTopic(o,!0,!0,r.build());default:throw new Error(`Unsupported inbound topic type: ${t}`)}}async createAgent(e){var t;const r=e.build(),o=await this.createTopic("hcs-10:0:60:1",!0,!0);this.logger.info(`Created new outbound topic ID: ${o}`);const n=null==(t=this.client.operatorAccountId)?void 0:t.toString();if(!n)throw new Error("Failed to retrieve operator account ID");const i=await this.createInboundTopic(n,r.inboundTopicType,r.inboundTopicType===InboundTopicType.FEE_BASED?r.feeConfig:void 0);this.logger.info(`Created new inbound topic ID: ${i}`);const a=(await this.inscribePfp(r.pfpBuffer,r.pfpFileName)).pfpTopicId;this.logger.info(`Profile picture inscribed with topic ID: ${a}`);const s=(await this.storeHCS11Profile(r.name,r.description,i,o,r.capabilities,r.metadata,r.pfpBuffer,r.pfpFileName)).profileTopicId;return this.logger.info(`Profile stored with topic ID: ${s}`),{outboundTopicId:o,inboundTopicId:i,pfpTopicId:a,profileTopicId:s}}async inscribePfp(e,t){try{this.logger.info("Inscribing profile picture using HCS-11 client");const r=await this.hcs11Client.inscribeImage(e,t);if(!r.success)throw this.logger.error(`Failed to inscribe profile picture: ${r.error}`),new Error(r.error||"Failed to inscribe profile picture");return this.logger.info(`Successfully inscribed profile picture with topic ID: ${r.imageTopicId}`),{pfpTopicId:r.imageTopicId,transactionId:r.transactionId,success:!0}}catch(r){return this.logger.error(`Error inscribing profile picture: ${r.message}`),{pfpTopicId:"",transactionId:"",success:!1,error:r.message}}}async storeHCS11Profile(e,t,r,o,n=[],i,a,s){try{let c;if(a&&s){const e=await this.inscribePfp(a,s);e.success?c=e.pfpTopicId:this.logger.error("Failed to inscribe profile picture, continuing without PFP")}const u=this.hcs11Client.getAgentTypeFromMetadata({type:i.type}),l=i.socials?Object.entries(i.socials).filter((([e,t])=>t)).map((([e,t])=>({platform:"x"===e?"twitter":e,handle:t}))):void 0,d=this.hcs11Client.createAIAgentProfile(e,u,n,i.model||"unknown",{alias:e.toLowerCase().replace(/\s+/g,"_"),bio:t,profileImage:c?`hcs://1/${c}`:void 0,socials:l,properties:i.properties,inboundTopicId:r,outboundTopicId:o,creator:i.creator}),p=await this.hcs11Client.createAndInscribeProfile(d,!0);if(!p.success)throw this.logger.error(`Failed to inscribe profile: ${p.error}`),new Error(p.error||"Failed to inscribe profile");return this.logger.info(`Profile inscribed with topic ID: ${p.profileTopicId}, transaction ID: ${p.transactionId}`),{profileTopicId:p.profileTopicId,pfpTopicId:c,transactionId:p.transactionId,success:!0}}catch(c){return this.logger.error(`Error storing HCS-11 profile: ${c.message}`),{profileTopicId:"",pfpTopicId:"",transactionId:"",success:!1,error:c.message}}}async setupFees(e,t,r=[]){if(!this.client.operatorPublicKey)return;this.logger.info("Setting up topic with custom fees");const o=(new l$1).setAmount(Number(t.feeAmount.amount)).setFeeCollectorAccountId(f.fromString(t.feeCollectorAccountId));let n=[...t.exemptAccounts||[],...r];if(console.log("exemptAccountIds",n),n.length>0){const t=Array.from(new Set(n)).filter((e=>{var t;return e!==(null==(t=this.client.operatorAccountId)?void 0:t.toString())}));let r=[];if(t.length>0)try{r=await accountIdsToExemptKeys(t,this.network,this.logger)}catch(i){this.logger.warn(`Error getting exempt keys: ${i}, continuing without exempt keys`)}r.length>0&&e.setFeeExemptKeys(r)}e.setFeeScheduleKey(this.client.operatorPublicKey).setCustomFees([o])}async handleConnectionRequest(e,t,r,o){var n;const i=`hcs-10:${e}:${r}`;this.logger.info(`Handling connection request ${r} from ${t}`);const a=null==(n=this.getClient().operatorAccountId)?void 0:n.toString();if(!a)throw new Error("Failed to retrieve operator account ID");let s=await this.mirrorNode.getPublicKey(t);const c=await this.mirrorNode.getPublicKey(a);if(!c)throw new Error("Failed to retrieve public key");const u=new s$7([c,s],1);let l;try{if(o){const e=o.build(),t={...e,exemptAccounts:[...e.exemptAccounts||[]]};l=await this.createTopic(i,u,u,t)}else l=await this.createTopic(i,u,u);this.logger.info(`Created new connection topic ID: ${l}`)}catch(p){throw this.logger.error(`Failed to create connection topic: ${p}`),new TopicCreationError(`Failed to create connection topic: ${p}`)}const d=`${e}@${a}`;return{connectionTopicId:l,confirmedConnectionSequenceNumber:await this.confirmConnection(e,l,t,r,d,"Connection accepted. Looking forward to collaborating!"),operatorId:d}}async confirmConnection(e,t,r,o,n,i,a){var s;this.logger.info(`Confirming connection with ID ${o}`);const c={p:"hcs-10",op:"connection_created",connection_topic_id:t,connected_account_id:r,operator_id:n,connection_id:o,m:i},u=null==(s=(await this.submitPayload(e,c,a)).topicSequenceNumber)?void 0:s.toNumber();if(!u)throw new ConnectionConfirmationError("Failed to confirm connection: sequence number is null");return u}async sendMessage(e,t,r,o,n){var i;const a=await this.canSubmitToInboundTopic(e,(null==(i=this.client.operatorAccountId)?void 0:i.toString())||""),s={p:"hcs-10",op:"message",operator_id:t,data:r,m:o},c=JSON.stringify(s);if(Buffer.from(c).length>1e3){this.logger.info("Message payload exceeds 1000 bytes, storing via inscription");try{const e=Buffer.from(r),t=`message-${Date.now()}.json`,o=await this.inscribeFile(e,t);if(!(null==o?void 0:o.topic_id))throw new Error("Failed to inscribe large message content");s.data=`hcs://1/${o.topic_id}`,this.logger.info(`Large message inscribed with topic ID: ${o.topic_id}`)}catch(u){throw this.logger.error("Error inscribing large message:",u),new Error(`Failed to handle large message: ${u instanceof Error?u.message:"Unknown error"}`)}}this.logger.info("Submitting message to connection topic",s),await this.submitPayload(e,s,n,a.requiresFee)}async createTopic(e,t,r,o){this.logger.info("Creating topic");const n=(new m$1).setTopicMemo(e);t&&("boolean"==typeof t&&t&&this.client.operatorPublicKey?(n.setAdminKey(this.client.operatorPublicKey),n.setAutoRenewAccountId(this.client.operatorAccountId)):(t instanceof i$7||t instanceof s$7)&&(n.setAdminKey(t),this.client.operatorAccountId&&n.setAutoRenewAccountId(this.client.operatorAccountId))),r&&("boolean"==typeof r&&r&&this.client.operatorPublicKey?n.setSubmitKey(this.client.operatorPublicKey):(r instanceof i$7||r instanceof s$7)&&n.setSubmitKey(r)),o&&await this.setupFees(n,o),this.logger.debug("Executing topic creation transaction");const i=await n.execute(this.client),a=await i.getReceipt(this.client);if(!a.topicId)throw this.logger.error("Failed to create topic: topicId is null"),new Error("Failed to create topic: topicId is null");return a.topicId.toString()}async submitMessage(e,t,r){var o;const n=await this.canSubmitToInboundTopic(e,(null==(o=this.client.operatorAccountId)?void 0:o.toString())||"");return this.submitPayload(e,t,r,n.requiresFee)}async submitPayload(e,t,r,o=!1){const n="string"==typeof t?t:JSON.stringify(t),i=Buffer.byteLength(n,"utf8");if(i>1e3)throw new PayloadSizeError("Payload size exceeds 1000 bytes limit",i);const a=(new u).setTopicId(m$2.fromString(e)).setMessage(n);let s;if(o&&(this.logger.info("Topic requires fee payment, setting max transaction fee"),a.setMaxTransactionFee(new e$7(this.feeAmount)),a.setTransactionMemo("HIP-991 Fee Payment")),r){a.freezeWith(this.client);const e=await a.sign(r);s=await e.execute(this.client)}else s=await a.execute(this.client);const c=await s.getReceipt(this.client);if(!c)throw this.logger.error("Failed to submit message: receipt is null"),new Error("Failed to submit message: receipt is null");return this.logger.info("Message submitted successfully"),c}async submitConnectionRequest(e,t,r,o){var n;const i=await this.canSubmitToInboundTopic(e,t);if(!i.canSubmit)throw new Error(`Cannot submit to topic: ${i.reason}`);const a={p:"hcs-10",op:"connection_request",operator_id:r,memo:o},s=i.requiresFee,c=await this.submitPayload(e,a,void 0,s);this.logger.info(`Submitted connection request to topic ID: ${e}`);const u=await this.retrieveOutboundConnectTopic(t),l=null==(n=c.topicSequenceNumber)?void 0:n.toNumber();if(!l)throw new Error("Failed to get response sequence number");return await this.submitPayload(u.outboundTopic,{...a,outbound_topic_id:u.outboundTopic,connection_request_id:l},this.operatorPrivateKey),c}async recordOutboundConnectionConfirmation({outboundTopicId:e,connectionRequestId:t,confirmedRequestId:r,connectionTopicId:o,operatorId:n,memo:i}){const a={p:"hcs-10",op:"connection_created",connection_topic_id:o,outbound_topic_id:e,confirmed_request_id:r,connection_request_id:t,operator_id:n,m:i};return await this.submitPayload(e,a)}async inscribeFile(e,t){if(this.logger.info("Inscribing file"),!this.client.operatorAccountId)throw this.logger.error("Operator account ID is not set"),new Error("Operator account ID is not set");if(!this.operatorPrivateKey)throw this.logger.error("Operator private key is not set"),new Error("Operator private key is not set");const r=mimeTypes.lookup(t)||"application/octet-stream",o=await InscriptionSDK.createWithAuth({type:"server",accountId:this.client.operatorAccountId.toString(),privateKey:this.operatorPrivateKey.toString(),network:this.network}),n=await o.inscribeAndExecute({file:{type:"base64",base64:e.toString("base64"),fileName:t,mimeType:r},holderId:this.client.operatorAccountId.toString(),mode:"file",network:this.network},{accountId:this.client.operatorAccountId.toString(),privateKey:this.operatorPrivateKey.toString(),network:this.network});if(!n.transactionId||!n.jobId)throw this.logger.error("Failed to inscribe, no transaction ID or job ID."),new Error("Failed to inscribe, no transaction ID or job ID.");n.transactionId&&n.jobId&&this.logger.info(`Transaction ID: ${n.transactionId}, Job ID: ${n.jobId}`);return await o.waitForInscription(n.jobId,30,4e3,!0)}async waitForConnectionConfirmation(e,t,r=60,o=2e3){this.logger.info(`Waiting for connection confirmation on inbound topic ${e} for request ID ${t}`);for(let n=0;n<r;n++){this.logger.info(`Attempt ${n+1}/${r} to find connection confirmation`);const i=(await this.mirrorNode.getTopicMessages(e)).filter((e=>"connection_created"===e.op));if(this.logger.info(`Found ${i.length} connection_created messages`),i.length>0)for(const e of i)if(Number(e.connection_id)===Number(t))return this.logger.info("Connection confirmation found"),{connectionTopicId:e.connection_topic_id,sequence_number:Number(e.sequence_number),confirmedBy:e.operator_id,memo:e.m};n<r-1&&(this.logger.info(`No matching confirmation found, waiting ${o}ms before retrying...`),await new Promise((e=>setTimeout(e,o))))}throw new Error(`Connection confirmation not found after ${r} attempts for request ID ${t}`)}getAccountAndSigner(){return{accountId:this.client.operatorAccountId.toString(),signer:this.operatorPrivateKey}}async canSubmitToInboundTopic(e,t){var r,o,n,i;try{const s=await this.mirrorNode.getTopicInfo(e);if(!s)return{canSubmit:!1,requiresFee:!1,reason:"Topic does not exist"};if(!(null==(r=s.submit_key)?void 0:r.key))return{canSubmit:!0,requiresFee:!1};try{const e=await this.mirrorNode.getPublicKey(t);if("ProtobufEncoded"===s.submit_key._type){const t=Buffer.from(s.submit_key.key,"hex");if(await this.mirrorNode.checkKeyListAccess(t,e))return{canSubmit:!0,requiresFee:!1}}else{const t=i$7.fromString(s.submit_key.key);if(e.toString()===t.toString())return{canSubmit:!0,requiresFee:!1}}}catch(a){this.logger.error(`Key validation error: ${a instanceof Error?a.message:String(a)}`)}return(null==(o=s.fee_schedule_key)?void 0:o.key)&&(null==(i=null==(n=s.custom_fees)?void 0:n.fixed_fees)?void 0:i.length)>0?{canSubmit:!0,requiresFee:!0,reason:"Requires fee payment via HIP-991"}:{canSubmit:!1,requiresFee:!1,reason:"User does not have submit permission for this topic"}}catch(a){const e=a instanceof Error?a.message:String(a);return this.logger.error(`Topic submission validation error: ${e}`),{canSubmit:!1,requiresFee:!1,reason:`Error: ${e}`}}}async createAndRegisterAgent(e){const t=e.build(),r=t.existingAccount||await this.createAccount(),o=new HCS10Client({network:t.network,operatorId:r.accountId,operatorPrivateKey:r.privateKey,operatorPublicKey:y$2.fromString(r.privateKey).publicKey.toString(),logLevel:"info"}),{outboundTopicId:n,inboundTopicId:i,pfpTopicId:a,profileTopicId:s}=await o.createAgent(e),c=`${i}@${r.accountId}`;return await o.registerAgentWithGuardedRegistry(r.accountId,i,t.network),{accountId:r.accountId,privateKey:r.privateKey,operatorId:c,inboundTopicId:i,outboundTopicId:n,profileTopicId:s,pfpTopicId:a,client:o}}async registerAgentWithGuardedRegistry(e,t,r=this.network,o){try{this.logger.info("Registering agent with guarded registry");const n=(null==o?void 0:o.maxAttempts)??60,i=(null==o?void 0:o.delayMs)??2e3,a=null==o?void 0:o.progressCallback;a&&a({stage:"preparing",message:"Preparing agent registration",progressPercent:10});const s=await this.executeRegistration(e,t,r,this.guardedRegistryBaseUrl,this.logger);if(!s.success)return s;if(a&&a({stage:"submitting",message:"Submitting registration to registry",progressPercent:30,details:{transactionId:s.transactionId}}),s.transaction){const e=S.fromBytes(Buffer.from(s.transaction,"base64"));this.logger.info("Processing registration transaction"),await e.execute(this.client),this.logger.info("Successfully processed registration transaction")}a&&a({stage:"confirming",message:"Confirming registration transaction",progressPercent:60,details:{accountId:e,inboundTopicId:t,transactionId:s.transactionId}});const c=await this.waitForRegistrationConfirmation(s.transactionId,r,this.guardedRegistryBaseUrl,n,i,this.logger);return a&&a({stage:"completed",message:"Agent registration complete",progressPercent:100,details:{confirmed:c,transactionId:s.transactionId}}),{...s,confirmed:c}}catch(n){return this.logger.error(`Failed to register agent: ${n.message}`),{error:n.message,success:!1}}}async registerAgent(e,t,r,o,n){this.logger.info("Registering agent");const i={p:"hcs-10",op:"register",account_id:t,inbound_topic_id:r,m:o};await this.submitPayload(e,i,n)}async getInboundTopicType(e){try{const t=await this.mirrorNode.getTopicInfo(e);if(!t)throw new Error("Topic does not exist");if(!(t.submit_key&&t.submit_key.key))return InboundTopicType.PUBLIC;if(t.fee_schedule_key&&t.fee_schedule_key.key&&t.custom_fees){const r=t.custom_fees;if(r&&r.fixed_fees&&r.fixed_fees.length>0)return this.logger.info(`Topic ${e} is fee-based with ${r.fixed_fees.length} custom fees`),InboundTopicType.FEE_BASED}return InboundTopicType.CONTROLLED}catch(t){throw this.logger.error(`Error determining topic type: ${t.message}`),new Error(`Failed to determine topic type: ${t.message}`)}}getNetwork(){return this.network}getLogger(){return this.logger}}class AgentBuilder{constructor(){this.config={}}setName(e){return this.config.name=e,this}setDescription(e){return this.config.description=e,this}setCapabilities(e){return this.config.capabilities=e,this}setAgentType(e){return this.config.metadata?this.config.metadata.type=e:this.config.metadata={type:e},this}setModel(e){return this.config.metadata?this.config.metadata.model=e:this.config.metadata={type:"autonomous",model:e},this}setCreator(e){return this.config.metadata?this.config.metadata.creator=e:this.config.metadata={type:"autonomous",creator:e},this}addSocial(e,t){return this.config.metadata?this.config.metadata.socials||(this.config.metadata.socials={}):this.config.metadata={type:"autonomous",socials:{}},this.config.metadata.socials[e]=t,this}addProperty(e,t){return this.config.metadata?this.config.metadata.properties||(this.config.metadata.properties={}):this.config.metadata={type:"autonomous",properties:{}},this.config.metadata.properties[e]=t,this}setMetadata(e){return this.config.metadata=e,this}setProfilePicture(e,t){return this.config.pfpBuffer=e,this.config.pfpFileName=t,this}setNetwork(e){return this.config.network=e,this}setInboundTopicType(e){return this.config.inboundTopicType=e,this}setFeeConfig(e){return this.config.feeConfig=e,this}setConnectionFeeConfig(e){return this.config.connectionFeeConfig=e,this}setExistingAccount(e,t){return this.config.existingAccount={accountId:e,privateKey:t},this}build(){if(!this.config.name)throw new Error("Agent name is required");if(!this.config.description)throw new Error("Agent description is required");if(!this.config.pfpBuffer||!this.config.pfpFileName)throw new Error("Profile picture is required");if(!this.config.network)throw new Error("Network is required");if(this.config.inboundTopicType||(this.config.inboundTopicType=InboundTopicType.PUBLIC),this.config.capabilities||(this.config.capabilities=[]),this.config.metadata||(this.config.metadata={type:"autonomous"}),this.config.inboundTopicType===InboundTopicType.FEE_BASED&&!this.config.feeConfig)throw new Error("Fee configuration is required for fee-based topics");return this.config}}class BrowserHCSClient extends HCS10BaseClient{constructor(e){super({network:e.network,logLevel:e.logLevel}),this.guardedRegistryBaseUrl=e.guardedRegistryBaseUrl||"https://moonscape.tech",this.hwc=e.hwc,this.logger=Logger$2.getInstance({level:e.logLevel||"info",module:"HCS-Browser"});const{accountId:t,signer:r}=this.getAccountAndSigner();this.hcs11Client=new HCS11Client({network:e.network,auth:{operatorId:t,signer:r},logLevel:e.logLevel})}async sendMessage(e,t,r,o){this.logger.info("Sending message");const n={p:"hcs-10",op:"message",operator_id:t,data:r,m:o},i=JSON.stringify(n);if(Buffer.from(i).length>1e3){this.logger.info("Message payload exceeds 1000 bytes, storing via inscription");try{const e=Buffer.from(r),t=`message-${Date.now()}.json`,o=await this.inscribeFile(e,t);if(!(null==o?void 0:o.topic_id))throw new Error("Failed to inscribe large message content");n.data=`hcs://1/${o.topic_id}`,this.logger.info(`Large message inscribed with topic ID: ${o.topic_id}`)}catch(a){throw this.logger.error("Error inscribing large message:",a),new Error(`Failed to handle large message: ${a instanceof Error?a.message:"Unknown error"}`)}}await this.submitPayload(e,n)}async submitConnectionRequest(e,t,r,o){var n,i;this.logger.info("Submitting connection request");const a={p:"hcs-10",op:"connection_request",requesting_account_id:t,operator_id:r,m:o},s=await this.submitPayload(e,a);this.logger.info(`Submitted connection request to topic ID: ${e}`);const c=await this.retrieveOutboundConnectTopic(t);if(!(null==c?void 0:c.outboundTopic))throw this.logger.error(`Failed to retrieve outbound topic for account ID: ${t}`),new Error(`Failed to retrieve outbound topic for account ID: ${t}`);this.logger.info(`Retrieved outbound topic ID: ${c.outboundTopic} for account ID: ${t}`);const u=null==(i=null==(n=null==s?void 0:s.result)?void 0:n.topicSequenceNumber)?void 0:i.toNumber();if(!u)throw new Error("Failed to get response sequence number");return await this.submitPayload(c.outboundTopic,{...a,outbound_topic_id:e,connection_request_id:u}),s.result}async recordOutboundConnectionConfirmation({outboundTopicId:e,connectionRequestId:t,confirmedRequestId:r,connectionTopicId:o,operatorId:n,memo:i}){const a={p:"hcs-10",op:"connection_created",connection_topic_id:o,outbound_topic_id:e,confirmed_request_id:r,connection_request_id:t,operator_id:n,m:i};return await this.submitPayload(e,a)}async getPublicKey(e){return await this.mirrorNode.getPublicKey(e)}async handleConnectionRequest(e,t,r,o="Connection accepted. Looking forward to collaborating!"){this.logger.info("Handling connection request");const n=this.hwc.getAccountInfo().accountId;if(!n)throw new Error("Failed to retrieve user account ID");const i=await this.mirrorNode.getPublicKey(t),a=await this.mirrorNode.getPublicKey(n);if(!a)throw new Error("Failed to retrieve public key");const s=new s$7([a,i],1),c=`hcs-10:${e}:${r}`,u=(new m$1).setTopicMemo(c).setAdminKey(s).setSubmitKey(s);this.logger.debug("Executing topic creation transaction");const l=await this.hwc.executeTransactionWithErrorHandling(u,!1);if(l.error)throw this.logger.error(l.error),new Error(l.error);const d=l.result;if(!(null==d?void 0:d.topicId))throw this.logger.error("Failed to create topic: topicId is null"),new Error("Failed to create topic: topicId is null");const p=d.topicId.toString(),h=`${e}@${n}`;return{connectionTopicId:p,confirmedConnectionSequenceNumber:await this.confirmConnection(e,p,t,r,h,o),operatorId:h}}async confirmConnection(e,t,r,o,n,i){var a;this.logger.info("Confirming connection");const s={p:"hcs-10",op:"connection_created",connection_topic_id:t,connected_account_id:r,operator_id:n,connection_id:o,m:i},c=await this.submitPayload(e,s);if(!(null==(a=null==c?void 0:c.result)?void 0:a.topicSequenceNumber))throw this.logger.error("Failed to confirm connection: sequence number is null"),new Error("Failed to confirm connection: sequence number is null");return c.result.topicSequenceNumber.toNumber()}async submitMessage(e,t,r={},o=""){this.logger.info("Submitting message");const n={p:"hcs-10",op:"message",data:{content:t,metadata:r},m:o};return await this.submitPayload(e,n)}async createAgent(e,t,r,o,n,i,a){try{const s=await this.createTopic("hcs-10:0:60:1",!0,!0);if(!s.success||!s.topicId)return{outboundTopicId:"",inboundTopicId:"",pfpTopicId:"",profileTopicId:"",error:s.error||"Failed to create outbound topic",success:!1};const c=await this.createTopic(`hcs-10:0:60:0:${s.topicId}`);if(!c.success||!c.topicId)return{outboundTopicId:s.topicId,inboundTopicId:"",pfpTopicId:"",profileTopicId:"",error:c.error||"Failed to create inbound topic",success:!1};let u=a;if(!u){const r=await this.inscribePfp(e,t);if(!r.success)return{outboundTopicId:s.topicId,inboundTopicId:c.topicId,pfpTopicId:"",profileTopicId:"",error:r.error||"Failed to inscribe profile picture",success:!1};u=r.pfpTopicId}const l=await this.storeHCS11Profile(r,o,c.topicId,s.topicId,n,i,e,t,u);return l.success?{outboundTopicId:s.topicId,inboundTopicId:c.topicId,pfpTopicId:u||"",profileTopicId:l.profileTopicId,success:!0}:{outboundTopicId:s.topicId,inboundTopicId:c.topicId,pfpTopicId:u||"",profileTopicId:"",error:l.error||"Failed to store profile",success:!1}}catch(s){return{outboundTopicId:"",inboundTopicId:"",pfpTopicId:"",profileTopicId:"",error:s.message,success:!1}}}async createAndRegisterAgent(e,t,r,o,n,i,a,s,c){try{const u=null==c?void 0:c.progressCallback,l=(e,t,r,o)=>{if(u)try{u({stage:e,message:t,progressPercent:r,details:o})}catch(n){this.logger.warn(`Error in progress callback: ${n}`)}};l("preparing","Creating agent topics and profile",10);const d=await this.createAgent(n,i,e,t,r,o,s);if(!d.success)throw new Error(d.error||"Failed to create agent");l("preparing","Agent topics created, preparing registration",30);const{accountId:p}=this.getAccountAndSigner();l("submitting","Registering with Hedera registry",40);const h=await this.registerAgentWithGuardedRegistry(p,d.inboundTopicId,a,{progressCallback:e=>{const t=40+.6*(e.progressPercent||0);l(e.stage,e.message,t,e.details)},maxAttempts:null==c?void 0:c.maxAttempts,delayMs:null==c?void 0:c.delayMs});if(!h.success)throw new Error(h.error||"Failed to register agent with registry");return l("completed","Agent creation and registration complete",100),{accountId:p,operatorId:`${d.outboundTopicId}@${p}`,inboundTopicId:d.inboundTopicId,outboundTopicId:d.outboundTopicId,profileTopicId:d.profileTopicId,pfpTopicId:d.pfpTopicId,client:this}}catch(u){throw new Error(`Failed to create and register agent: ${u.message}`)}}async registerAgentWithGuardedRegistry(e,t,r=this.network,o){try{this.logger.info("Registering agent with guarded registry");const n=(null==o?void 0:o.maxAttempts)??60,i=(null==o?void 0:o.delayMs)??2e3,a=null==o?void 0:o.progressCallback,s=(e,t,r,o)=>{if(a)try{a({stage:e,message:t,progressPercent:r,details:o})}catch(n){this.logger.warn(`Error in progress callback: ${n}`)}};s("preparing","Preparing agent registration",10);const c=await this.executeRegistration(e,t,r,this.guardedRegistryBaseUrl,this.logger);if(!c.success)return c;if(s("submitting","Submitting registration to registry",30,{transactionId:c.transactionId}),c.transaction){const e=S.fromBytes(Buffer.from(c.transaction,"base64"));this.logger.info("Processing registration transaction");const t=await this.hwc.executeTransactionWithErrorHandling(e,!1);if(t.error)return{...c,error:t.error,success:!1};this.logger.info("Successfully processed registration transaction")}s("confirming","Confirming registration transaction",60,{accountId:e,inboundTopicId:t,transactionId:c.transactionId});const u=await this.waitForRegistrationConfirmation(c.transactionId,r,this.guardedRegistryBaseUrl,n,i);return s("completed","Agent registration complete",100,{confirmed:u,transactionId:c.transactionId}),{...c,confirmed:u}}catch(n){return this.logger.error(`Registration error: ${n.message}`),{error:`Error during registration: ${n.message}`,success:!1}}}async storeHCS11Profile(e,t,r,o,n=[],i={},a,s,c){try{let u=c;if(!u&&a&&s){const e=await this.inscribePfp(a,s);e.success?u=e.pfpTopicId:this.logger.error("Failed to inscribe profile picture, continuing without PFP")}const l=this.hcs11Client.getAgentTypeFromMetadata({type:i.type||"autonomous"}),d=[];i.socials&&(i.socials.twitter&&d.push({platform:"twitter",handle:i.socials.twitter}),i.socials.discord&&d.push({platform:"discord",handle:i.socials.discord}),i.socials.github&&d.push({platform:"github",handle:i.socials.github}),i.socials.website&&d.push({platform:"website",handle:i.socials.website}),i.socials.x&&d.push({platform:"twitter",handle:i.socials.x}),i.socials.linkedin&&d.push({platform:"linkedin",handle:i.socials.linkedin}),i.socials.youtube&&d.push({platform:"youtube",handle:i.socials.youtube}),i.socials.telegram&&d.push({platform:"telegram",handle:i.socials.telegram}));const p=this.hcs11Client.createAIAgentProfile(e,l,n,i.model||"unknown",{alias:e.toLowerCase().replace(/\s+/g,"_"),bio:t,profileImage:u?`hcs://1/${u}`:void 0,socials:d.length>0?d:void 0,properties:{description:t,version:i.version||"1.0.0",creator:i.creator||"Unknown",supported_languages:i.supported_languages||["en"],permissions:i.permissions||[],model_details:i.model_details,training:i.training,capabilities_description:i.capabilities_description,...i},inboundTopicId:r,outboundTopicId:o,creator:i.creator}),h=await this.hcs11Client.createAndInscribeProfile(p,!0);return h.success?{profileTopicId:h.profileTopicId,pfpTopicId:u,success:!0}:{profileTopicId:"",success:!1,error:h.error||"Failed to inscribe profile"}}catch(u){return{profileTopicId:"",success:!1,error:u.message}}}async createTopic(e,t,r){this.logger.info("Creating topic");const{accountId:o,signer:n}=this.getAccountAndSigner(),i=(new m$1).setTopicMemo(e),a=await this.mirrorNode.getPublicKey(o);t&&a&&(i.setAdminKey(a),i.setAutoRenewAccountId(o)),r&&a&&i.setSubmitKey(a);const s=await this.hwc.executeTransactionWithErrorHandling(i,!1),c=s.error;if(c)return this.logger.error(c),{success:!1,error:c};const u=s.result;return(null==u?void 0:u.topicId)?{success:!0,topicId:u.topicId.toString()}:(this.logger.error("Failed to create topic: topicId is null"),{success:!1,error:"Failed to create topic: topicId is null"})}async submitPayload(e,t){this.logger.debug("Submitting payload");const r=(new u).setTopicId(e).setMessage(JSON.stringify(t));return await this.hwc.executeTransactionWithErrorHandling(r,!1)}async inscribeFile(e,t){const{accountId:r,signer:o}=this.getAccountAndSigner(),n=mimeTypes.lookup(t)||"application/octet-stream",i=await InscriptionSDK.createWithAuth({type:"client",accountId:r,signer:o,network:this.network}),a=await i.inscribe({file:{type:"base64",base64:e.toString("base64"),fileName:t,mimeType:n},holderId:r.toString(),mode:"file",network:this.network},o);if(!a.transactionId||!a.jobId)throw this.logger.error("Failed to inscribe, no transaction ID or job ID."),new Error("Failed to inscribe, no transaction ID or job ID.");a.transactionId&&a.jobId&&this.logger.info(`Transaction ID: ${a.transactionId}, Job ID: ${a.jobId}`);return await i.waitForInscription(a.jobId,30,4e3,!0)}getAccountAndSigner(){const e=this.hwc.getAccountInfo().accountId.toString(),t=this.hwc.dAppConnector.signers.find((t=>t.getAccountId().toString()===e));if(!t)throw this.logger.error("Failed to find signer"),new Error("Failed to find signer");return{accountId:e,signer:t}}async inscribePfp(e,t){try{this.logger.info("Inscribing profile picture using HCS-11 client");const r=await this.hcs11Client.inscribeImage(e,t);return r.success?(this.logger.info(`Successfully inscribed profile picture with topic ID: ${r.imageTopicId}`),{pfpTopicId:r.imageTopicId,success:!0}):(this.logger.error(`Failed to inscribe profile picture: ${r.error}`),{pfpTopicId:"",success:!1,error:r.error||"Failed to inscribe profile picture"})}catch(r){return this.logger.error(`Error inscribing profile picture: ${r.message}`),{pfpTopicId:"",success:!1,error:r.message}}}}exports.AIAgentCapability=AIAgentCapability,exports.AIAgentType=AIAgentType,exports.AccountCreationError=AccountCreationError,exports.AgentBuilder=AgentBuilder,exports.BrowserHCSClient=BrowserHCSClient,exports.ConnectionConfirmationError=ConnectionConfirmationError,exports.EVMBridge=EVMBridge,exports.EndpointType=EndpointType,exports.FeeConfigBuilder=FeeConfigBuilder,exports.HCS=HCS,exports.HCS10BaseClient=HCS10BaseClient,exports.HCS10Cache=HCS10Cache,exports.HCS10Client=HCS10Client,exports.HCS11Client=HCS11Client,exports.HederaMirrorNode=HederaMirrorNode,exports.InboundTopicType=InboundTopicType,exports.Logger=Logger$2,exports.PayloadSizeError=PayloadSizeError,exports.ProfileType=ProfileType,exports.Registration=Registration,exports.SUPPORTED_SOCIAL_PLATFORMS=SUPPORTED_SOCIAL_PLATFORMS,exports.TopicCreationError=TopicCreationError,exports.WasmBridge=WasmBridge,exports.accountIdsToExemptKeys=accountIdsToExemptKeys,exports.capabilityNameToCapabilityMap=capabilityNameToCapabilityMap,exports.inscribe=inscribe,exports.inscribeWithSigner=inscribeWithSigner,exports.retrieveInscription=retrieveInscription,exports.sleep=sleep,Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"})}));
|
|
115
115
|
//# sourceMappingURL=standards-sdk.umd.js.map
|