maplestory-openapi 2.9.0 → 2.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -3607,6 +3607,14 @@ class CharacterImageDto {
3607
3607
  * 캐릭터 무기 모션
3608
3608
  */
3609
3609
  wmotion;
3610
+ /**
3611
+ * 캐릭터 액션 프레임
3612
+ */
3613
+ actionFrame;
3614
+ /**
3615
+ * 캐릭터 감정표현 프레임
3616
+ */
3617
+ emotionFrame;
3610
3618
  /**
3611
3619
  * 가로 길이. 배경 크기에 해당함, 96 (default) ~ 1000
3612
3620
  */
@@ -3631,6 +3639,8 @@ class CharacterImageDto {
3631
3639
  this.action = obj.action;
3632
3640
  this.emotion = obj.emotion;
3633
3641
  this.wmotion = obj.wmotion;
3642
+ this.actionFrame = obj.actionFrame;
3643
+ this.emotionFrame = obj.emotionFrame;
3634
3644
  this.width = obj.width;
3635
3645
  this.height = obj.height;
3636
3646
  this.x = obj.x;
@@ -7509,15 +7519,23 @@ class MapleStoryApi {
7509
7519
  */
7510
7520
  async getCharacterImage(ocid, imageOptions, dateOptions) {
7511
7521
  const { date, characterImage: path } = await this.getCharacterBasic(ocid, dateOptions);
7522
+ const action = imageOptions?.action ?? exports.CharacterImageAction.Stand1;
7523
+ const emotion = imageOptions?.emotion ?? exports.CharacterImageEmotion.Default;
7524
+ const wmotion = imageOptions?.wmotion ?? exports.CharacterImageWeaponMotion.Default;
7525
+ const actionFrame = imageOptions?.actionFrame ?? 0;
7526
+ const emotionFrame = imageOptions?.emotionFrame ?? 0;
7527
+ const width = 96;
7528
+ const height = 96;
7529
+ const x = imageOptions?.x ?? null;
7530
+ const y = imageOptions?.y ?? null;
7512
7531
  const query = {
7513
- action: exports.CharacterImageAction.Stand1,
7514
- emotion: exports.CharacterImageEmotion.Default,
7515
- wmotion: exports.CharacterImageWeaponMotion.Default,
7516
- width: 96,
7517
- height: 96,
7518
- x: null,
7519
- y: null,
7520
- ...imageOptions,
7532
+ action: `${action}.${actionFrame}`,
7533
+ emotion: `${emotion}.${emotionFrame}`,
7534
+ wmotion,
7535
+ width,
7536
+ height,
7537
+ x,
7538
+ y,
7521
7539
  };
7522
7540
  const urlImageToBase64 = async (path, query) => {
7523
7541
  const { data, headers } = await axios__default["default"].get(path, {
@@ -7537,7 +7555,15 @@ class MapleStoryApi {
7537
7555
  originUrl: path,
7538
7556
  originImage,
7539
7557
  image,
7540
- ...query,
7558
+ action,
7559
+ emotion,
7560
+ wmotion,
7561
+ actionFrame,
7562
+ emotionFrame,
7563
+ width,
7564
+ height,
7565
+ x,
7566
+ y,
7541
7567
  });
7542
7568
  }
7543
7569
  /**
package/dist/index.min.js CHANGED
@@ -7,4 +7,4 @@ read:function(t,e,i,a,r){var n,o,s=8*r-a-1,c=(1<<s)-1,l=c>>1,h=-7,u=i?r-1:0,p=i?
7
7
  * @author Feross Aboukhadijeh <https://feross.org>
8
8
  * @license MIT
9
9
  */
10
- !function(t){const e=l,i=g,a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=o,t.SlowBuffer=function(t){+t!=t&&(t=0);return o.alloc(+t)},t.INSPECT_MAX_BYTES=50;const r=2147483647;function n(t){if(t>r)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new Uint8Array(t);return Object.setPrototypeOf(e,o.prototype),e}function o(t,e,i){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return h(t)}return s(t,e,i)}function s(t,e,i){if("string"==typeof t)return function(t,e){"string"==typeof e&&""!==e||(e="utf8");if(!o.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const i=0|m(t,e);let a=n(i);const r=a.write(t,e);r!==i&&(a=a.slice(0,r));return a}(t,e);if(ArrayBuffer.isView(t))return function(t){if(Q(t,Uint8Array)){const e=new Uint8Array(t);return p(e.buffer,e.byteOffset,e.byteLength)}return u(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(Q(t,ArrayBuffer)||t&&Q(t.buffer,ArrayBuffer))return p(t,e,i);if("undefined"!=typeof SharedArrayBuffer&&(Q(t,SharedArrayBuffer)||t&&Q(t.buffer,SharedArrayBuffer)))return p(t,e,i);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');const a=t.valueOf&&t.valueOf();if(null!=a&&a!==t)return o.from(a,e,i);const r=function(t){if(o.isBuffer(t)){const e=0|d(t.length),i=n(e);return 0===i.length||t.copy(i,0,0,e),i}if(void 0!==t.length)return"number"!=typeof t.length||Z(t.length)?n(0):u(t);if("Buffer"===t.type&&Array.isArray(t.data))return u(t.data)}(t);if(r)return r;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return o.from(t[Symbol.toPrimitive]("string"),e,i);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function c(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function h(t){return c(t),n(t<0?0:0|d(t))}function u(t){const e=t.length<0?0:0|d(t.length),i=n(e);for(let a=0;a<e;a+=1)i[a]=255&t[a];return i}function p(t,e,i){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(i||0))throw new RangeError('"length" is outside of buffer bounds');let a;return a=void 0===e&&void 0===i?new Uint8Array(t):void 0===i?new Uint8Array(t,e):new Uint8Array(t,e,i),Object.setPrototypeOf(a,o.prototype),a}function d(t){if(t>=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return 0|t}function m(t,e){if(o.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||Q(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);const i=t.length,a=arguments.length>2&&!0===arguments[2];if(!a&&0===i)return 0;let r=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":return z(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return V(t).length;default:if(r)return a?-1:z(t).length;e=(""+e).toLowerCase(),r=!0}}function f(t,e,i){let a=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if((i>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return O(this,e,i);case"utf8":case"utf-8":return I(this,e,i);case"ascii":return P(this,e,i);case"latin1":case"binary":return x(this,e,i);case"base64":return C(this,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,e,i);default:if(a)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),a=!0}}function _(t,e,i){const a=t[e];t[e]=t[i],t[i]=a}function y(t,e,i,a,r){if(0===t.length)return-1;if("string"==typeof i?(a=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),Z(i=+i)&&(i=r?0:t.length-1),i<0&&(i=t.length+i),i>=t.length){if(r)return-1;i=t.length-1}else if(i<0){if(!r)return-1;i=0}if("string"==typeof e&&(e=o.from(e,a)),o.isBuffer(e))return 0===e.length?-1:w(t,e,i,a,r);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,e,i):Uint8Array.prototype.lastIndexOf.call(t,e,i):w(t,[e],i,a,r);throw new TypeError("val must be string, number or Buffer")}function w(t,e,i,a,r){let n,o=1,s=t.length,c=e.length;if(void 0!==a&&("ucs2"===(a=String(a).toLowerCase())||"ucs-2"===a||"utf16le"===a||"utf-16le"===a)){if(t.length<2||e.length<2)return-1;o=2,s/=2,c/=2,i/=2}function l(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(r){let a=-1;for(n=i;n<s;n++)if(l(t,n)===l(e,-1===a?0:n-a)){if(-1===a&&(a=n),n-a+1===c)return a*o}else-1!==a&&(n-=n-a),a=-1}else for(i+c>s&&(i=s-c),n=i;n>=0;n--){let i=!0;for(let a=0;a<c;a++)if(l(t,n+a)!==l(e,a)){i=!1;break}if(i)return n}return-1}function E(t,e,i,a){i=Number(i)||0;const r=t.length-i;a?(a=Number(a))>r&&(a=r):a=r;const n=e.length;let o;for(a>n/2&&(a=n/2),o=0;o<a;++o){const a=parseInt(e.substr(2*o,2),16);if(Z(a))return o;t[i+o]=a}return o}function b(t,e,i,a){return W(z(e,t.length-i),t,i,a)}function v(t,e,i,a){return W(function(t){const e=[];for(let i=0;i<t.length;++i)e.push(255&t.charCodeAt(i));return e}(e),t,i,a)}function S(t,e,i,a){return W(V(e),t,i,a)}function k(t,e,i,a){return W(function(t,e){let i,a,r;const n=[];for(let o=0;o<t.length&&!((e-=2)<0);++o)i=t.charCodeAt(o),a=i>>8,r=i%256,n.push(r),n.push(a);return n}(e,t.length-i),t,i,a)}function C(t,i,a){return 0===i&&a===t.length?e.fromByteArray(t):e.fromByteArray(t.slice(i,a))}function I(t,e,i){i=Math.min(t.length,i);const a=[];let r=e;for(;r<i;){const e=t[r];let n=null,o=e>239?4:e>223?3:e>191?2:1;if(r+o<=i){let i,a,s,c;switch(o){case 1:e<128&&(n=e);break;case 2:i=t[r+1],128==(192&i)&&(c=(31&e)<<6|63&i,c>127&&(n=c));break;case 3:i=t[r+1],a=t[r+2],128==(192&i)&&128==(192&a)&&(c=(15&e)<<12|(63&i)<<6|63&a,c>2047&&(c<55296||c>57343)&&(n=c));break;case 4:i=t[r+1],a=t[r+2],s=t[r+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(c=(15&e)<<18|(63&i)<<12|(63&a)<<6|63&s,c>65535&&c<1114112&&(n=c))}}null===n?(n=65533,o=1):n>65535&&(n-=65536,a.push(n>>>10&1023|55296),n=56320|1023&n),a.push(n),r+=o}return function(t){const e=t.length;if(e<=D)return String.fromCharCode.apply(String,t);let i="",a=0;for(;a<e;)i+=String.fromCharCode.apply(String,t.slice(a,a+=D));return i}(a)}t.kMaxLength=r,o.TYPED_ARRAY_SUPPORT=function(){try{const t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),o.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}}),o.poolSize=8192,o.from=function(t,e,i){return s(t,e,i)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array),o.alloc=function(t,e,i){return function(t,e,i){return c(t),t<=0?n(t):void 0!==e?"string"==typeof i?n(t).fill(e,i):n(t).fill(e):n(t)}(t,e,i)},o.allocUnsafe=function(t){return h(t)},o.allocUnsafeSlow=function(t){return h(t)},o.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==o.prototype},o.compare=function(t,e){if(Q(t,Uint8Array)&&(t=o.from(t,t.offset,t.byteLength)),Q(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),!o.isBuffer(t)||!o.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;let i=t.length,a=e.length;for(let r=0,n=Math.min(i,a);r<n;++r)if(t[r]!==e[r]){i=t[r],a=e[r];break}return i<a?-1:a<i?1:0},o.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return o.alloc(0);let i;if(void 0===e)for(e=0,i=0;i<t.length;++i)e+=t[i].length;const a=o.allocUnsafe(e);let r=0;for(i=0;i<t.length;++i){let e=t[i];if(Q(e,Uint8Array))r+e.length>a.length?(o.isBuffer(e)||(e=o.from(e)),e.copy(a,r)):Uint8Array.prototype.set.call(a,e,r);else{if(!o.isBuffer(e))throw new TypeError('"list" argument must be an Array of Buffers');e.copy(a,r)}r+=e.length}return a},o.byteLength=m,o.prototype._isBuffer=!0,o.prototype.swap16=function(){const t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;e<t;e+=2)_(this,e,e+1);return this},o.prototype.swap32=function(){const t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let e=0;e<t;e+=4)_(this,e,e+3),_(this,e+1,e+2);return this},o.prototype.swap64=function(){const t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let e=0;e<t;e+=8)_(this,e,e+7),_(this,e+1,e+6),_(this,e+2,e+5),_(this,e+3,e+4);return this},o.prototype.toString=function(){const t=this.length;return 0===t?"":0===arguments.length?I(this,0,t):f.apply(this,arguments)},o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(t){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===o.compare(this,t)},o.prototype.inspect=function(){let e="";const i=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,i).replace(/(.{2})/g,"$1 ").trim(),this.length>i&&(e+=" ... "),"<Buffer "+e+">"},a&&(o.prototype[a]=o.prototype.inspect),o.prototype.compare=function(t,e,i,a,r){if(Q(t,Uint8Array)&&(t=o.from(t,t.offset,t.byteLength)),!o.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===i&&(i=t?t.length:0),void 0===a&&(a=0),void 0===r&&(r=this.length),e<0||i>t.length||a<0||r>this.length)throw new RangeError("out of range index");if(a>=r&&e>=i)return 0;if(a>=r)return-1;if(e>=i)return 1;if(this===t)return 0;let n=(r>>>=0)-(a>>>=0),s=(i>>>=0)-(e>>>=0);const c=Math.min(n,s),l=this.slice(a,r),h=t.slice(e,i);for(let t=0;t<c;++t)if(l[t]!==h[t]){n=l[t],s=h[t];break}return n<s?-1:s<n?1:0},o.prototype.includes=function(t,e,i){return-1!==this.indexOf(t,e,i)},o.prototype.indexOf=function(t,e,i){return y(this,t,e,i,!0)},o.prototype.lastIndexOf=function(t,e,i){return y(this,t,e,i,!1)},o.prototype.write=function(t,e,i,a){if(void 0===e)a="utf8",i=this.length,e=0;else if(void 0===i&&"string"==typeof e)a=e,i=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(i)?(i>>>=0,void 0===a&&(a="utf8")):(a=i,i=void 0)}const r=this.length-e;if((void 0===i||i>r)&&(i=r),t.length>0&&(i<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");a||(a="utf8");let n=!1;for(;;)switch(a){case"hex":return E(this,t,e,i);case"utf8":case"utf-8":return b(this,t,e,i);case"ascii":case"latin1":case"binary":return v(this,t,e,i);case"base64":return S(this,t,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,t,e,i);default:if(n)throw new TypeError("Unknown encoding: "+a);a=(""+a).toLowerCase(),n=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const D=4096;function P(t,e,i){let a="";i=Math.min(t.length,i);for(let r=e;r<i;++r)a+=String.fromCharCode(127&t[r]);return a}function x(t,e,i){let a="";i=Math.min(t.length,i);for(let r=e;r<i;++r)a+=String.fromCharCode(t[r]);return a}function O(t,e,i){const a=t.length;(!e||e<0)&&(e=0),(!i||i<0||i>a)&&(i=a);let r="";for(let a=e;a<i;++a)r+=X[t[a]];return r}function N(t,e,i){const a=t.slice(e,i);let r="";for(let t=0;t<a.length-1;t+=2)r+=String.fromCharCode(a[t]+256*a[t+1]);return r}function A(t,e,i){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>i)throw new RangeError("Trying to access beyond buffer length")}function L(t,e,i,a,r,n){if(!o.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||e<n)throw new RangeError('"value" argument is out of bounds');if(i+a>t.length)throw new RangeError("Index out of range")}function R(t,e,i,a,r){$(e,a,r,t,i,7);let n=Number(e&BigInt(4294967295));t[i++]=n,n>>=8,t[i++]=n,n>>=8,t[i++]=n,n>>=8,t[i++]=n;let o=Number(e>>BigInt(32)&BigInt(4294967295));return t[i++]=o,o>>=8,t[i++]=o,o>>=8,t[i++]=o,o>>=8,t[i++]=o,i}function q(t,e,i,a,r){$(e,a,r,t,i,7);let n=Number(e&BigInt(4294967295));t[i+7]=n,n>>=8,t[i+6]=n,n>>=8,t[i+5]=n,n>>=8,t[i+4]=n;let o=Number(e>>BigInt(32)&BigInt(4294967295));return t[i+3]=o,o>>=8,t[i+2]=o,o>>=8,t[i+1]=o,o>>=8,t[i]=o,i+8}function B(t,e,i,a,r,n){if(i+a>t.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function U(t,e,a,r,n){return e=+e,a>>>=0,n||B(t,0,a,4),i.write(t,e,a,r,23,4),a+4}function T(t,e,a,r,n){return e=+e,a>>>=0,n||B(t,0,a,8),i.write(t,e,a,r,52,8),a+8}o.prototype.slice=function(t,e){const i=this.length;(t=~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),(e=void 0===e?i:~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),e<t&&(e=t);const a=this.subarray(t,e);return Object.setPrototypeOf(a,o.prototype),a},o.prototype.readUintLE=o.prototype.readUIntLE=function(t,e,i){t>>>=0,e>>>=0,i||A(t,e,this.length);let a=this[t],r=1,n=0;for(;++n<e&&(r*=256);)a+=this[t+n]*r;return a},o.prototype.readUintBE=o.prototype.readUIntBE=function(t,e,i){t>>>=0,e>>>=0,i||A(t,e,this.length);let a=this[t+--e],r=1;for(;e>0&&(r*=256);)a+=this[t+--e]*r;return a},o.prototype.readUint8=o.prototype.readUInt8=function(t,e){return t>>>=0,e||A(t,1,this.length),this[t]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(t,e){return t>>>=0,e||A(t,2,this.length),this[t]|this[t+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(t,e){return t>>>=0,e||A(t,2,this.length),this[t]<<8|this[t+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(t,e){return t>>>=0,e||A(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(t,e){return t>>>=0,e||A(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},o.prototype.readBigUInt64LE=J((function(t){H(t>>>=0,"offset");const e=this[t],i=this[t+7];void 0!==e&&void 0!==i||j(t,this.length-8);const a=e+256*this[++t]+65536*this[++t]+this[++t]*2**24,r=this[++t]+256*this[++t]+65536*this[++t]+i*2**24;return BigInt(a)+(BigInt(r)<<BigInt(32))})),o.prototype.readBigUInt64BE=J((function(t){H(t>>>=0,"offset");const e=this[t],i=this[t+7];void 0!==e&&void 0!==i||j(t,this.length-8);const a=e*2**24+65536*this[++t]+256*this[++t]+this[++t],r=this[++t]*2**24+65536*this[++t]+256*this[++t]+i;return(BigInt(a)<<BigInt(32))+BigInt(r)})),o.prototype.readIntLE=function(t,e,i){t>>>=0,e>>>=0,i||A(t,e,this.length);let a=this[t],r=1,n=0;for(;++n<e&&(r*=256);)a+=this[t+n]*r;return r*=128,a>=r&&(a-=Math.pow(2,8*e)),a},o.prototype.readIntBE=function(t,e,i){t>>>=0,e>>>=0,i||A(t,e,this.length);let a=e,r=1,n=this[t+--a];for(;a>0&&(r*=256);)n+=this[t+--a]*r;return r*=128,n>=r&&(n-=Math.pow(2,8*e)),n},o.prototype.readInt8=function(t,e){return t>>>=0,e||A(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},o.prototype.readInt16LE=function(t,e){t>>>=0,e||A(t,2,this.length);const i=this[t]|this[t+1]<<8;return 32768&i?4294901760|i:i},o.prototype.readInt16BE=function(t,e){t>>>=0,e||A(t,2,this.length);const i=this[t+1]|this[t]<<8;return 32768&i?4294901760|i:i},o.prototype.readInt32LE=function(t,e){return t>>>=0,e||A(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},o.prototype.readInt32BE=function(t,e){return t>>>=0,e||A(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},o.prototype.readBigInt64LE=J((function(t){H(t>>>=0,"offset");const e=this[t],i=this[t+7];void 0!==e&&void 0!==i||j(t,this.length-8);const a=this[t+4]+256*this[t+5]+65536*this[t+6]+(i<<24);return(BigInt(a)<<BigInt(32))+BigInt(e+256*this[++t]+65536*this[++t]+this[++t]*2**24)})),o.prototype.readBigInt64BE=J((function(t){H(t>>>=0,"offset");const e=this[t],i=this[t+7];void 0!==e&&void 0!==i||j(t,this.length-8);const a=(e<<24)+65536*this[++t]+256*this[++t]+this[++t];return(BigInt(a)<<BigInt(32))+BigInt(this[++t]*2**24+65536*this[++t]+256*this[++t]+i)})),o.prototype.readFloatLE=function(t,e){return t>>>=0,e||A(t,4,this.length),i.read(this,t,!0,23,4)},o.prototype.readFloatBE=function(t,e){return t>>>=0,e||A(t,4,this.length),i.read(this,t,!1,23,4)},o.prototype.readDoubleLE=function(t,e){return t>>>=0,e||A(t,8,this.length),i.read(this,t,!0,52,8)},o.prototype.readDoubleBE=function(t,e){return t>>>=0,e||A(t,8,this.length),i.read(this,t,!1,52,8)},o.prototype.writeUintLE=o.prototype.writeUIntLE=function(t,e,i,a){if(t=+t,e>>>=0,i>>>=0,!a){L(this,t,e,i,Math.pow(2,8*i)-1,0)}let r=1,n=0;for(this[e]=255&t;++n<i&&(r*=256);)this[e+n]=t/r&255;return e+i},o.prototype.writeUintBE=o.prototype.writeUIntBE=function(t,e,i,a){if(t=+t,e>>>=0,i>>>=0,!a){L(this,t,e,i,Math.pow(2,8*i)-1,0)}let r=i-1,n=1;for(this[e+r]=255&t;--r>=0&&(n*=256);)this[e+r]=t/n&255;return e+i},o.prototype.writeUint8=o.prototype.writeUInt8=function(t,e,i){return t=+t,e>>>=0,i||L(this,t,e,1,255,0),this[e]=255&t,e+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(t,e,i){return t=+t,e>>>=0,i||L(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(t,e,i){return t=+t,e>>>=0,i||L(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(t,e,i){return t=+t,e>>>=0,i||L(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(t,e,i){return t=+t,e>>>=0,i||L(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},o.prototype.writeBigUInt64LE=J((function(t,e=0){return R(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),o.prototype.writeBigUInt64BE=J((function(t,e=0){return q(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),o.prototype.writeIntLE=function(t,e,i,a){if(t=+t,e>>>=0,!a){const a=Math.pow(2,8*i-1);L(this,t,e,i,a-1,-a)}let r=0,n=1,o=0;for(this[e]=255&t;++r<i&&(n*=256);)t<0&&0===o&&0!==this[e+r-1]&&(o=1),this[e+r]=(t/n|0)-o&255;return e+i},o.prototype.writeIntBE=function(t,e,i,a){if(t=+t,e>>>=0,!a){const a=Math.pow(2,8*i-1);L(this,t,e,i,a-1,-a)}let r=i-1,n=1,o=0;for(this[e+r]=255&t;--r>=0&&(n*=256);)t<0&&0===o&&0!==this[e+r+1]&&(o=1),this[e+r]=(t/n|0)-o&255;return e+i},o.prototype.writeInt8=function(t,e,i){return t=+t,e>>>=0,i||L(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},o.prototype.writeInt16LE=function(t,e,i){return t=+t,e>>>=0,i||L(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},o.prototype.writeInt16BE=function(t,e,i){return t=+t,e>>>=0,i||L(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},o.prototype.writeInt32LE=function(t,e,i){return t=+t,e>>>=0,i||L(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},o.prototype.writeInt32BE=function(t,e,i){return t=+t,e>>>=0,i||L(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},o.prototype.writeBigInt64LE=J((function(t,e=0){return R(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),o.prototype.writeBigInt64BE=J((function(t,e=0){return q(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),o.prototype.writeFloatLE=function(t,e,i){return U(this,t,e,!0,i)},o.prototype.writeFloatBE=function(t,e,i){return U(this,t,e,!1,i)},o.prototype.writeDoubleLE=function(t,e,i){return T(this,t,e,!0,i)},o.prototype.writeDoubleBE=function(t,e,i){return T(this,t,e,!1,i)},o.prototype.copy=function(t,e,i,a){if(!o.isBuffer(t))throw new TypeError("argument should be a Buffer");if(i||(i=0),a||0===a||(a=this.length),e>=t.length&&(e=t.length),e||(e=0),a>0&&a<i&&(a=i),a===i)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("Index out of range");if(a<0)throw new RangeError("sourceEnd out of bounds");a>this.length&&(a=this.length),t.length-e<a-i&&(a=t.length-e+i);const r=a-i;return this===t&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,i,a):Uint8Array.prototype.set.call(t,this.subarray(i,a),e),r},o.prototype.fill=function(t,e,i,a){if("string"==typeof t){if("string"==typeof e?(a=e,e=0,i=this.length):"string"==typeof i&&(a=i,i=this.length),void 0!==a&&"string"!=typeof a)throw new TypeError("encoding must be a string");if("string"==typeof a&&!o.isEncoding(a))throw new TypeError("Unknown encoding: "+a);if(1===t.length){const e=t.charCodeAt(0);("utf8"===a&&e<128||"latin1"===a)&&(t=e)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<i)throw new RangeError("Out of range index");if(i<=e)return this;let r;if(e>>>=0,i=void 0===i?this.length:i>>>0,t||(t=0),"number"==typeof t)for(r=e;r<i;++r)this[r]=t;else{const n=o.isBuffer(t)?t:o.from(t,a),s=n.length;if(0===s)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(r=0;r<i-e;++r)this[r+e]=n[r%s]}return this};const M={};function G(t,e,i){M[t]=class extends i{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(t){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:t,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}function F(t){let e="",i=t.length;const a="-"===t[0]?1:0;for(;i>=a+4;i-=3)e=`_${t.slice(i-3,i)}${e}`;return`${t.slice(0,i)}${e}`}function $(t,e,i,a,r,n){if(t>i||t<e){const a="bigint"==typeof e?"n":"";let r;throw r=n>3?0===e||e===BigInt(0)?`>= 0${a} and < 2${a} ** ${8*(n+1)}${a}`:`>= -(2${a} ** ${8*(n+1)-1}${a}) and < 2 ** ${8*(n+1)-1}${a}`:`>= ${e}${a} and <= ${i}${a}`,new M.ERR_OUT_OF_RANGE("value",r,t)}!function(t,e,i){H(e,"offset"),void 0!==t[e]&&void 0!==t[e+i]||j(e,t.length-(i+1))}(a,r,n)}function H(t,e){if("number"!=typeof t)throw new M.ERR_INVALID_ARG_TYPE(e,"number",t)}function j(t,e,i){if(Math.floor(t)!==t)throw H(t,i),new M.ERR_OUT_OF_RANGE(i||"offset","an integer",t);if(e<0)throw new M.ERR_BUFFER_OUT_OF_BOUNDS;throw new M.ERR_OUT_OF_RANGE(i||"offset",`>= ${i?1:0} and <= ${e}`,t)}G("ERR_BUFFER_OUT_OF_BOUNDS",(function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),G("ERR_INVALID_ARG_TYPE",(function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`}),TypeError),G("ERR_OUT_OF_RANGE",(function(t,e,i){let a=`The value of "${t}" is out of range.`,r=i;return Number.isInteger(i)&&Math.abs(i)>2**32?r=F(String(i)):"bigint"==typeof i&&(r=String(i),(i>BigInt(2)**BigInt(32)||i<-(BigInt(2)**BigInt(32)))&&(r=F(r)),r+="n"),a+=` It must be ${e}. Received ${r}`,a}),RangeError);const Y=/[^+/0-9A-Za-z-_]/g;function z(t,e){let i;e=e||1/0;const a=t.length;let r=null;const n=[];for(let o=0;o<a;++o){if(i=t.charCodeAt(o),i>55295&&i<57344){if(!r){if(i>56319){(e-=3)>-1&&n.push(239,191,189);continue}if(o+1===a){(e-=3)>-1&&n.push(239,191,189);continue}r=i;continue}if(i<56320){(e-=3)>-1&&n.push(239,191,189),r=i;continue}i=65536+(r-55296<<10|i-56320)}else r&&(e-=3)>-1&&n.push(239,191,189);if(r=null,i<128){if((e-=1)<0)break;n.push(i)}else if(i<2048){if((e-=2)<0)break;n.push(i>>6|192,63&i|128)}else if(i<65536){if((e-=3)<0)break;n.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;n.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return n}function V(t){return e.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(Y,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function W(t,e,i,a){let r;for(r=0;r<a&&!(r+i>=e.length||r>=t.length);++r)e[r+i]=t[r];return r}function Q(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function Z(t){return t!=t}const X=function(){const t="0123456789abcdef",e=new Array(256);for(let i=0;i<16;++i){const a=16*i;for(let r=0;r<16;++r)e[a+r]=t[i]+t[r]}return e}();function J(t){return"undefined"==typeof BigInt?K:t}function K(){throw new Error("BigInt not supported")}}(c);var y={exports:{}};!function(t){var e,i;t.exports=(e={year:0,month:1,day:2,hour:3,minute:4,second:5},i={},function(t,a,r){var n,o=function(t,e,a){void 0===a&&(a={});var r=new Date(t),n=function(t,e){void 0===e&&(e={});var a=e.timeZoneName||"short",r=t+"|"+a,n=i[r];return n||(n=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:a}),i[r]=n),n}(e,a);return n.formatToParts(r)},s=function(t,i){for(var a=o(t,i),n=[],s=0;s<a.length;s+=1){var c=a[s],l=c.type,h=c.value,u=e[l];u>=0&&(n[u]=parseInt(h,10))}var p=n[3],d=24===p?0:p,m=n[0]+"-"+n[1]+"-"+n[2]+" "+d+":"+n[4]+":"+n[5]+":000",f=+t;return(r.utc(m).valueOf()-(f-=f%1e3))/6e4},c=a.prototype;c.tz=function(t,e){void 0===t&&(t=n);var i,a=this.utcOffset(),o=this.toDate(),s=o.toLocaleString("en-US",{timeZone:t}),c=Math.round((o-new Date(s))/1e3/60),l=15*-Math.round(o.getTimezoneOffset()/15)-c;if(Number(l)){if(i=r(s,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(l,!0),e){var h=i.utcOffset();i=i.add(a-h,"minute")}}else i=this.utcOffset(0,e);return i.$x.$timezone=t,i},c.offsetName=function(t){var e=this.$x.$timezone||r.tz.guess(),i=o(this.valueOf(),e,{timeZoneName:t}).find((function(t){return"timezonename"===t.type.toLowerCase()}));return i&&i.value};var l=c.startOf;c.startOf=function(t,e){if(!this.$x||!this.$x.$timezone)return l.call(this,t,e);var i=r(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return l.call(i,t,e).tz(this.$x.$timezone,!0)},r.tz=function(t,e,i){var a=i&&e,o=i||e||n,c=s(+r(),o);if("string"!=typeof t)return r(t).tz(o);var l=function(t,e,i){var a=t-60*e*1e3,r=s(a,i);if(e===r)return[a,e];var n=s(a-=60*(r-e)*1e3,i);return r===n?[a,r]:[t-60*Math.min(r,n)*1e3,Math.max(r,n)]}(r.utc(t,a).valueOf(),c,o),h=l[0],u=l[1],p=r(h).utcOffset(u);return p.$x.$timezone=o,p},r.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},r.tz.setDefault=function(t){n=t}})}(y);var w=y.exports,E={exports:{}};!function(t){t.exports=function(){var t="minute",e=/[+-]\d\d(?::?\d\d)?/g,i=/([+-]|\d\d)/g;return function(a,r,n){var o=r.prototype;n.utc=function(t){return new r({date:t,utc:!0,args:arguments})},o.utc=function(e){var i=n(this.toDate(),{locale:this.$L,utc:!0});return e?i.add(this.utcOffset(),t):i},o.local=function(){return n(this.toDate(),{locale:this.$L,utc:!1})};var s=o.parse;o.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),s.call(this,t)};var c=o.init;o.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else c.call(this)};var l=o.utcOffset;o.utcOffset=function(a,r){var n=this.$utils().u;if(n(a))return this.$u?0:n(this.$offset)?l.call(this):this.$offset;if("string"==typeof a&&(a=function(t){void 0===t&&(t="");var a=t.match(e);if(!a)return null;var r=(""+a[0]).match(i)||["-",0,0],n=r[0],o=60*+r[1]+ +r[2];return 0===o?0:"+"===n?o:-o}(a),null===a))return this;var o=Math.abs(a)<=16?60*a:a,s=this;if(r)return s.$offset=o,s.$u=0===a,s;if(0!==a){var c=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(o+c,t)).$offset=o,s.$x.$localOffset=c}else s=this.utc();return s};var h=o.format;o.format=function(t){var e=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return h.call(this,e)},o.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},o.isUTC=function(){return!!this.$u},o.toISOString=function(){return this.toDate().toISOString()},o.toString=function(){return this.toDate().toUTCString()};var u=o.toDate;o.toDate=function(t){return"s"===t&&this.$offset?n(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():u.call(this)};var p=o.diff;o.diff=function(t,e,i){if(t&&this.$u===t.$u)return p.call(this,t,e,i);var a=this.local(),r=n(t).local();return p.call(a,r,e,i)}}}()}(E);var b,v,S,k,C=E.exports;class I{abilityNo;abilityGrade;abilityValue;constructor(t){const{ability_no:e,ability_grade:i,ability_value:a}=t;this.abilityNo=e,this.abilityGrade=i,this.abilityValue=a}}class D{abilityPresetGrade;abilityInfo;constructor(t){const{ability_preset_grade:e,ability_info:i}=t;this.abilityPresetGrade=e,this.abilityInfo=i.map((t=>new I(t)))}}class P{date;abilityGrade;abilityInfo;remainFame;presetNo;abilityPreset1;abilityPreset2;abilityPreset3;constructor(t){const{date:e,ability_grade:i,ability_info:a,remain_fame:r,preset_no:n,ability_preset_1:o,ability_preset_2:s,ability_preset_3:c}=t;this.date=e?new Date(e):null,this.abilityGrade=i,this.abilityInfo=a.map((t=>new I(t))),this.remainFame=r,this.presetNo=n,this.abilityPreset1=o?new D(o):null,this.abilityPreset2=s?new D(s):null,this.abilityPreset3=c?new D(c):null}}class x{colorRange;hue;saturation;value;constructor(t){const{color_range:e,hue:i,saturation:a,value:r}=t;this.colorRange=e,this.hue=i,this.saturation=a,this.value=r}}class O{optionType;optionValue;constructor(t){const{option_type:e,option_value:i}=t;this.optionType=e,this.optionValue=i}}class N{cashItemEquipmentPart;cashItemEquipmentSlot;cashItemName;cashItemIcon;cashItemDescription;cashItemOption;dateExpire;dateOptionExpire;cashItemLabel;cashItemColoringPrism;constructor(t){const{cash_item_equipment_part:e,cash_item_equipment_slot:i,cash_item_name:a,cash_item_icon:r,cash_item_description:n,cash_item_option:o,date_expire:s,date_option_expire:c,cash_item_label:l,cash_item_coloring_prism:h}=t;this.cashItemEquipmentPart=e,this.cashItemEquipmentSlot=i,this.cashItemName=a,this.cashItemIcon=r,this.cashItemDescription=n,this.cashItemOption=o.map((t=>new O(t))),this.dateExpire=s?new Date(s):null,this.dateOptionExpire=c?new Date(c):null,this.cashItemLabel=l,this.cashItemColoringPrism=h?new x(h):null}}class A{faceName;baseColor;mixColor;mixRate;constructor(t){const{face_name:e,base_color:i,mix_color:a,mix_rate:r}=t;this.faceName=e,this.baseColor=i,this.mixColor=a,this.mixRate=r}}class L{hairName;baseColor;mixColor;mixRate;constructor(t){const{hair_name:e,base_color:i,mix_color:a,mix_rate:r}=t;this.hairName=e,this.baseColor=i,this.mixColor=a,this.mixRate=r}}class R{skinName;colorStyle;hue;saturation;brightness;constructor(t){const{skin_name:e,color_style:i,hue:a,saturation:r,brightness:n}=t;this.skinName=e,this.colorStyle=i,this.hue=a,this.saturation=r,this.brightness=n}}class q{androidName;androidNickname;androidIcon;androidDescription;androidGender;androidGrade;androidHair;androidFace;androidSkin;androidEarSensorClipFlag;androidNonHumanoidFlag;androidShopUsableFlag;constructor(t){const{android_name:e,android_nickname:i,android_icon:a,android_description:r,android_gender:n,android_grade:o,android_hair:s,android_face:c,android_skin:l,android_ear_sensor_clip_flag:h,android_non_humanoid_flag:u,android_shop_usable_flag:p}=t;this.androidName=e,this.androidNickname=i,this.androidIcon=a,this.androidDescription=r,this.androidGender=n,this.androidGrade=o,this.androidHair=new L(s),this.androidFace=new A(c),this.androidSkin=l?new R(l):null,this.androidEarSensorClipFlag=h,this.androidNonHumanoidFlag=u,this.androidShopUsableFlag=p}}class B{date;androidName;androidNickname;androidIcon;androidDescription;androidHair;androidFace;androidSkin;androidCashItemEquipment;androidEarSensorClipFlag;androidGender;androidGrade;androidNonHumanoidFlag;androidShopUsableFlag;presetNo;androidPreset1;androidPreset2;androidPreset3;constructor(t){const{date:e,android_name:i,android_nickname:a,android_icon:r,android_description:n,android_hair:o,android_face:s,android_skin:c,android_cash_item_equipment:l,android_ear_sensor_clip_flag:h,android_gender:u,android_grade:p,android_non_humanoid_flag:d,android_shop_usable_flag:m,preset_no:f,android_preset_1:_,android_preset_2:g,android_preset_3:y}=t;this.date=e?new Date(e):null,this.androidName=i,this.androidNickname=a,this.androidIcon=r,this.androidDescription=n,this.androidHair=new L(o),this.androidFace=new A(s),this.androidSkin=c?new R(c):null,this.androidCashItemEquipment=l.map((t=>new N(t))),this.androidEarSensorClipFlag=h??null,this.androidGender=u,this.androidGrade=p,this.androidNonHumanoidFlag=d,this.androidShopUsableFlag=m,this.presetNo=f,this.androidPreset1=_?new q(_):null,this.androidPreset2=g?new q(g):null,this.androidPreset3=y?new q(y):null}}class U{date;characterName;worldName;characterGender;characterClass;characterClassLevel;characterLevel;characterExp;characterExpRate;characterGuildName;characterImage;characterDateCreate;accessFlag;liberationQuestClearFlag;constructor(t){const{date:e,character_name:i,world_name:a,character_gender:r,character_class:n,character_class_level:o,character_level:s,character_exp:c,character_exp_rate:l,character_guild_name:h,character_image:u,character_date_create:p,access_flag:d,liberation_quest_clear_flag:m}=t;this.date=e?new Date(e):null,this.characterName=i,this.worldName=a,this.characterGender=r,this.characterClass=n,this.characterClassLevel=o,this.characterLevel=s,this.characterExp=c,this.characterExpRate=l,this.characterGuildName=h,this.characterImage=u,this.characterDateCreate=new Date(p),this.accessFlag=d,this.liberationQuestClearFlag=m}get isAccessFlag(){return"true"===this.accessFlag}get isLiberationQuestClearFlag(){return"true"===this.liberationQuestClearFlag}}class T{faceName;baseColor;mixColor;mixRate;constructor(t){const{face_name:e,base_color:i,mix_color:a,mix_rate:r}=t;this.faceName=e,this.baseColor=i,this.mixColor=a,this.mixRate=r}}class M{hairName;baseColor;mixColor;mixRate;constructor(t){const{hair_name:e,base_color:i,mix_color:a,mix_rate:r}=t;this.hairName=e,this.baseColor=i,this.mixColor=a,this.mixRate=r}}class G{skinName;colorStyle;hue;saturation;brightness;constructor(t){const{skin_name:e,color_style:i,hue:a,saturation:r,brightness:n}=t;this.skinName=e,this.colorStyle=i,this.hue=a,this.saturation=r,this.brightness=n}}class F{date;characterGender;characterClass;characterHair;characterFace;characterSkin;additionalCharacterHair;additionalCharacterFace;additionalCharacterSkin;constructor(t){const{date:e,character_gender:i,character_class:a,character_hair:r,character_face:n,character_skin:o,additional_character_hair:s,additional_character_face:c,additional_character_skin:l}=t;this.date=e?new Date(e):null,this.characterGender=i,this.characterClass=a,this.characterHair=new M(r),this.characterFace=new T(n),this.characterSkin=new G(o),this.additionalCharacterHair=s?new M(s):null,this.additionalCharacterFace=c?new T(c):null,this.additionalCharacterSkin=l?new G(l):null}}class ${colorRange;hue;saturation;value;constructor(t){const{color_range:e,hue:i,saturation:a,value:r}=t;this.colorRange=e,this.hue=i,this.saturation=a,this.value=r}}class H{optionType;optionValue;constructor(t){const{option_type:e,option_value:i}=t;this.optionType=e,this.optionValue=i}}class j{cashItemEquipmentPart;cashItemEquipmentSlot;cashItemName;cashItemIcon;cashItemDescription;cashItemOption;dateExpire;dateOptionExpire;cashItemLabel;cashItemColoringPrism;itemGender;constructor(t){const{cash_item_equipment_part:e,cash_item_equipment_slot:i,cash_item_name:a,cash_item_icon:r,cash_item_description:n,cash_item_option:o,date_expire:s,date_option_expire:c,cash_item_label:l,cash_item_coloring_prism:h,item_gender:u}=t;this.cashItemEquipmentPart=e,this.cashItemEquipmentSlot=i,this.cashItemName=a,this.cashItemIcon=r,this.cashItemDescription=n,this.cashItemOption=o.map((t=>new H(t))),this.dateExpire=s,this.dateOptionExpire=c,this.cashItemLabel=l,this.cashItemColoringPrism=h?new $(h):null,this.itemGender=u}}class Y{date;characterGender;characterClass;characterLookMode;presetNo;cashItemEquipmentBase;cashItemEquipmentPreset1;cashItemEquipmentPreset2;cashItemEquipmentPreset3;additionalCashItemEquipmentBase;additionalCashItemEquipmentPreset1;additionalCashItemEquipmentPreset2;additionalCashItemEquipmentPreset3;constructor(t){const{date:e,character_gender:i,character_class:a,character_look_mode:r,preset_no:n,cash_item_equipment_base:o,cash_item_equipment_preset_1:s,cash_item_equipment_preset_2:c,cash_item_equipment_preset_3:l,additional_cash_item_equipment_base:h,additional_cash_item_equipment_preset_1:u,additional_cash_item_equipment_preset_2:p,additional_cash_item_equipment_preset_3:d}=t;this.date=e?new Date(e):null,this.characterGender=i,this.characterClass=a,this.characterLookMode=r,this.presetNo=n,this.cashItemEquipmentBase=o.map((t=>new j(t))),this.cashItemEquipmentPreset1=s.map((t=>new j(t))),this.cashItemEquipmentPreset2=c.map((t=>new j(t))),this.cashItemEquipmentPreset3=l.map((t=>new j(t))),this.additionalCashItemEquipmentBase=h.map((t=>new j(t))),this.additionalCashItemEquipmentPreset1=u.map((t=>new j(t))),this.additionalCashItemEquipmentPreset2=p.map((t=>new j(t))),this.additionalCashItemEquipmentPreset3=d.map((t=>new j(t)))}}class z{date;characterClass;worldName;dojangBestFloor;dateDojangRecord;dojangBestTime;constructor(t){const{date:e,character_class:i,world_name:a,dojang_best_floor:r,date_dojang_record:n,dojang_best_time:o}=t;this.date=e?new Date(e):null,this.characterClass=i,this.worldName=a,this.dojangBestFloor=r,this.dateDojangRecord=n?new Date(n):null,this.dojangBestTime=o}}class V{ocid;constructor(t){const{ocid:e}=t;this.ocid=e}}class W{hexaSkillId;constructor(t){const{hexa_skill_id:e}=t;this.hexaSkillId=e}}class Q{hexaCoreName;hexaCoreLevel;hexaCoreType;linkedSkill;constructor(t){const{hexa_core_name:e,hexa_core_level:i,hexa_core_type:a,linked_skill:r}=t;this.hexaCoreName=e,this.hexaCoreLevel=i,this.hexaCoreType=a,this.linkedSkill=r.map((t=>new W(t)))}}class Z{date;characterHexaCoreEquipment;constructor(t){const{date:e,character_hexa_core_equipment:i}=t;this.date=e?new Date(e):null,this.characterHexaCoreEquipment=i.map((t=>new Q(t)))}}class X{slotId;mainStatName;subStatName1;subStatName2;mainStatLevel;subStatLevel1;subStatLevel2;statGrade;constructor(t){const{slot_id:e,main_stat_name:i,sub_stat_name_1:a,sub_stat_name_2:r,main_stat_level:n,sub_stat_level_1:o,sub_stat_level_2:s,stat_grade:c}=t;this.slotId=e,this.mainStatName=i,this.subStatName1=a,this.subStatName2=r,this.mainStatLevel=n,this.subStatLevel1=o,this.subStatLevel2=s,this.statGrade=c}}class J{date;characterClass;characterHexaStatCore;characterHexaStatCore2;presetHexaStatCore;presetHexaStatCore2;constructor(t){const{date:e,character_class:i,character_hexa_stat_core:a,character_hexa_stat_core_2:r,preset_hexa_stat_core:n,preset_hexa_stat_core_2:o}=t;this.date=e?new Date(e):null,this.characterClass=i,this.characterHexaStatCore=a.map((t=>new X(t))),this.characterHexaStatCore2=r.map((t=>new X(t))),this.presetHexaStatCore=n.map((t=>new X(t))),this.presetHexaStatCore2=o.map((t=>new X(t)))}}class K{statType;statPoint;statLevel;statIncrease;constructor(t){const{stat_type:e,stat_point:i,stat_level:a,stat_increase:r}=t;this.statType=e,this.statPoint=i,this.statLevel=a,this.statIncrease=r}}class tt{date;characterClass;usePresetNo;useAvailableHyperStat;hyperStatPreset1;hyperStatPreset1RemainPoint;hyperStatPreset2;hyperStatPreset2RemainPoint;hyperStatPreset3;hyperStatPreset3RemainPoint;constructor(t){const{date:e,character_class:i,use_preset_no:a,use_available_hyper_stat:r,hyper_stat_preset_1:n,hyper_stat_preset_1_remain_point:o,hyper_stat_preset_2:s,hyper_stat_preset_2_remain_point:c,hyper_stat_preset_3:l,hyper_stat_preset_3_remain_point:h}=t;this.date=e?new Date(e):null,this.characterClass=i,this.usePresetNo=a,this.useAvailableHyperStat=r,this.hyperStatPreset1=n.map((t=>new K(t))),this.hyperStatPreset1RemainPoint=o,this.hyperStatPreset2=s.map((t=>new K(t))),this.hyperStatPreset2RemainPoint=c,this.hyperStatPreset3=l.map((t=>new K(t))),this.hyperStatPreset3RemainPoint=h}}class et{date;originUrl;originImage;image;action;emotion;wmotion;width;height;x;y;constructor(t){this.date=t.date,this.originUrl=t.originUrl,this.originImage=t.originImage,this.image=t.image,this.action=t.action,this.emotion=t.emotion,this.wmotion=t.wmotion,this.width=t.width,this.height=t.height,this.x=t.x,this.y=t.y}}t.CharacterImageAction=void 0,(b=t.CharacterImageAction||(t.CharacterImageAction={})).Stand1="A00",b.Stand2="A01",b.Walk1="A02",b.Walk2="A03",b.Prone="A04",b.Fly="A05",b.Jump="A06",b.Sit="A07",b.Ladder="A08",b.Rope="A09",b.Heal="A10",b.Alert="A11",b.ProneStab="A12",b.SwingO1="A13",b.SwingO2="A14",b.SwingO3="A15",b.SwingOF="A16",b.SwingP1="A17",b.SwingP2="A18",b.SwingPF="A19",b.SwingT1="A20",b.SwingT2="A21",b.SwingT3="A22",b.SwingTF="A23",b.StabO1="A24",b.StabO2="A25",b.StabOF="A26",b.StabT1="A27",b.StabT2="A28",b.StabTF="A29",b.Shoot1="A30",b.Shoot2="A31",b.ShootF="A32",b.Dead="A33",b.GhostWalk="A34",b.GhostStand="A35",b.GhostJump="A36",b.GhostProneStab="A37",b.GhostLadder="A38",b.GhostRope="A39",b.GhostFly="A40",b.GhostSit="A41",t.CharacterImageEmotion=void 0,(v=t.CharacterImageEmotion||(t.CharacterImageEmotion={})).Default="E00",v.Wink="E01",v.Smile="E02",v.Cry="E03",v.Angry="E04",v.Bewildered="E05",v.Blink="E06",v.Blaze="E07",v.Bowing="E08",v.Cheers="E09",v.Chu="E10",v.Dam="E11",v.Despair="E12",v.Glitter="E13",v.Hit="E14",v.Hot="E15",v.Hum="E16",v.Love="E17",v.Oops="E18",v.Pain="E19",v.Troubled="E20",v.QBlue="E21",v.Shine="E22",v.Stunned="E23",v.Vomit="E24",t.CharacterImageWeaponMotion=void 0,(S=t.CharacterImageWeaponMotion||(t.CharacterImageWeaponMotion={})).Default="W00",S.OneHand="W01",S.TwoHands="W02",S.Gun="W03",S.Nothing="W04";class it{str;dex;int;luk;maxHp;maxMp;attackPower;magicPower;armor;speed;jump;bossDamage;damage;allStat;equipmentLevelDecrease;constructor(t){const{str:e,dex:i,int:a,luk:r,max_hp:n,max_mp:o,attack_power:s,magic_power:c,armor:l,speed:h,jump:u,boss_damage:p,damage:d,all_stat:m,equipment_level_decrease:f}=t;this.str=e,this.dex=i,this.int=a,this.luk=r,this.maxHp=n,this.maxMp=o,this.attackPower=s,this.magicPower=c,this.armor=l,this.speed=h,this.jump=u,this.bossDamage=p,this.damage=d,this.allStat=m,this.equipmentLevelDecrease=f}}class at{str;dex;int;luk;maxHp;maxMp;attackPower;magicPower;armor;speed;jump;bossDamage;ignoreMonsterArmor;allStat;maxHpRate;maxMpRate;baseEquipmentLevel;constructor(t){const{str:e,dex:i,int:a,luk:r,max_hp:n,max_mp:o,attack_power:s,magic_power:c,armor:l,speed:h,jump:u,boss_damage:p,ignore_monster_armor:d,all_stat:m,max_hp_rate:f,max_mp_rate:_,base_equipment_level:g}=t;this.str=e,this.dex=i,this.int=a,this.luk=r,this.maxHp=n,this.maxMp=o,this.attackPower=s,this.magicPower=c,this.armor=l,this.speed=h,this.jump=u,this.bossDamage=p,this.ignoreMonsterArmor=d,this.allStat=m,this.maxHpRate=f,this.maxMpRate=_,this.baseEquipmentLevel=g}}class rt{str;dex;int;luk;maxHp;maxMp;attackPower;magicPower;armor;speed;jump;constructor(t){const{str:e,dex:i,int:a,luk:r,max_hp:n,max_mp:o,attack_power:s,magic_power:c,armor:l,speed:h,jump:u}=t;this.str=e,this.dex=i,this.int=a,this.luk=r,this.maxHp=n,this.maxMp=o,this.attackPower=s,this.magicPower=c,this.armor=l,this.speed=h,this.jump=u}}class nt{str;dex;int;luk;maxHp;maxMp;attackPower;magicPower;exceptionalUpgrade;constructor(t){const{str:e,dex:i,int:a,luk:r,max_hp:n,max_mp:o,attack_power:s,magic_power:c,exceptional_upgrade:l}=t;this.str=e,this.dex=i,this.int=a,this.luk=r,this.maxHp=n,this.maxMp=o,this.attackPower=s,this.magicPower=c,this.exceptionalUpgrade=l}}class ot{str;dex;int;luk;maxHp;maxMp;attackPower;magicPower;armor;speed;jump;constructor(t){const{str:e,dex:i,int:a,luk:r,max_hp:n,max_mp:o,attack_power:s,magic_power:c,armor:l,speed:h,jump:u}=t;this.str=e,this.dex=i,this.int=a,this.luk=r,this.maxHp=n,this.maxMp=o,this.attackPower=s,this.magicPower=c,this.armor=l,this.speed=h,this.jump=u}}class st{str;dex;int;luk;maxHp;maxMp;attackPower;magicPower;armor;speed;jump;bossDamage;ignoreMonsterArmor;allStat;damage;equipmentLevelDecrease;maxHpRate;maxMpRate;constructor(t){const{str:e,dex:i,int:a,luk:r,max_hp:n,max_mp:o,attack_power:s,magic_power:c,armor:l,speed:h,jump:u,boss_damage:p,ignore_monster_armor:d,all_stat:m,damage:f,equipment_level_decrease:_,max_hp_rate:g,max_mp_rate:y}=t;this.str=e,this.dex=i,this.int=a,this.luk=r,this.maxHp=n,this.maxMp=o,this.attackPower=s,this.magicPower=c,this.armor=l,this.speed=h,this.jump=u,this.bossDamage=p,this.ignoreMonsterArmor=d,this.allStat=m,this.damage=f,this.equipmentLevelDecrease=_,this.maxHpRate=g,this.maxMpRate=y}}class ct{itemEquipmentPart;itemEquipmentSlot;itemName;itemIcon;itemDescription;itemShapeName;itemShapeIcon;itemGender;itemTotalOption;itemBaseOption;equipmentLevelIncrease;itemExceptionalOption;itemAddOption;growthExp;growthLevel;scrollUpgrade;cuttableCount;goldenHammerFlag;scrollResilienceCount;scrollUpgradeableCount;soulName;soulOption;itemEtcOption;starforce;starforceScrollFlag;itemStarforceOption;specialRingLevel;dateExpire;constructor(t){const{item_equipment_part:e,item_equipment_slot:i,item_name:a,item_icon:r,item_description:n,item_shape_name:o,item_shape_icon:s,item_gender:c,item_total_option:l,item_base_option:h,equipment_level_increase:u,item_exceptional_option:p,item_add_option:d,growth_exp:m,growth_level:f,scroll_upgrade:_,cuttable_count:g,golden_hammer_flag:y,scroll_resilience_count:w,scroll_upgradeable_count:E,soul_name:b,soul_option:v,item_etc_option:S,starforce:k,starforce_scroll_flag:C,item_starforce_option:I,special_ring_level:D,date_expire:P}=t;this.itemEquipmentPart=e,this.itemEquipmentSlot=i,this.itemName=a,this.itemIcon=r,this.itemDescription=n,this.itemShapeName=o,this.itemShapeIcon=s,this.itemGender=c,this.itemTotalOption=new st(l),this.itemBaseOption=new at(h),this.equipmentLevelIncrease=u,this.itemExceptionalOption=new nt(p),this.itemAddOption=new it(d),this.growthExp=m,this.growthLevel=f,this.scrollUpgrade=_,this.cuttableCount=g,this.goldenHammerFlag=y,this.scrollResilienceCount=w,this.scrollUpgradeableCount=E,this.soulName=b,this.soulOption=v,this.itemEtcOption=new rt(S),this.starforce=k,this.starforceScrollFlag=C,this.itemStarforceOption=new ot(I),this.specialRingLevel=D,this.dateExpire=P?new Date(P):null}}class lt{itemEquipmentPart;itemEquipmentSlot;itemName;itemIcon;itemDescription;itemShapeName;itemShapeIcon;itemGender;itemTotalOption;itemBaseOption;potentialOptionGrade;additionalPotentialOptionGrade;potentialOption1;potentialOption2;potentialOption3;additionalPotentialOption1;additionalPotentialOption2;additionalPotentialOption3;equipmentLevelIncrease;itemExceptionalOption;itemAddOption;growthExp;growthLevel;scrollUpgrade;cuttableCount;goldenHammerFlag;scrollResilienceCount;scrollUpgradeableCount;soulName;soulOption;itemEtcOption;starforce;starforceScrollFlag;itemStarforceOption;specialRingLevel;dateExpire;constructor(t){const{item_equipment_part:e,item_equipment_slot:i,item_name:a,item_icon:r,item_description:n,item_shape_name:o,item_shape_icon:s,item_gender:c,item_total_option:l,item_base_option:h,potential_option_grade:u,additional_potential_option_grade:p,potential_option_1:d,potential_option_2:m,potential_option_3:f,additional_potential_option_1:_,additional_potential_option_2:g,additional_potential_option_3:y,equipment_level_increase:w,item_exceptional_option:E,item_add_option:b,growth_exp:v,growth_level:S,scroll_upgrade:k,cuttable_count:C,golden_hammer_flag:I,scroll_resilience_count:D,scroll_upgradeable_count:P,soul_name:x,soul_option:O,item_etc_option:N,starforce:A,starforce_scroll_flag:L,item_starforce_option:R,special_ring_level:q,date_expire:B}=t;this.itemEquipmentPart=e,this.itemEquipmentSlot=i,this.itemName=a,this.itemIcon=r,this.itemDescription=n,this.itemShapeName=o,this.itemShapeIcon=s,this.itemGender=c,this.itemTotalOption=new st(l),this.itemBaseOption=new at(h),this.potentialOptionGrade=u,this.additionalPotentialOptionGrade=p,this.potentialOption1=d,this.potentialOption2=m,this.potentialOption3=f,this.additionalPotentialOption1=_,this.additionalPotentialOption2=g,this.additionalPotentialOption3=y,this.equipmentLevelIncrease=w,this.itemExceptionalOption=new nt(E),this.itemAddOption=new it(b),this.growthExp=v,this.growthLevel=S,this.scrollUpgrade=k,this.cuttableCount=C,this.goldenHammerFlag=I,this.scrollResilienceCount=D,this.scrollUpgradeableCount=P,this.soulName=x,this.soulOption=O,this.itemEtcOption=new rt(N),this.starforce=A,this.starforceScrollFlag=L,this.itemStarforceOption=new ot(R),this.specialRingLevel=q,this.dateExpire=B?new Date(B):null}}class ht{itemEquipmentPart;itemEquipmentSlot;itemName;itemIcon;itemDescription;itemShapeName;itemShapeIcon;itemGender;itemTotalOption;itemBaseOption;equipmentLevelIncrease;itemExceptionalOption;itemAddOption;growthExp;growthLevel;scrollUpgrade;cuttableCount;goldenHammerFlag;scrollResilienceCount;scrollUpgradeableCount;soulName;soulOption;itemEtcOption;starforce;starforceScrollFlag;itemStarforceOption;specialRingLevel;dateExpire;constructor(t){const{item_equipment_part:e,item_equipment_slot:i,item_name:a,item_icon:r,item_description:n,item_shape_name:o,item_shape_icon:s,item_gender:c,item_total_option:l,item_base_option:h,equipment_level_increase:u,item_exceptional_option:p,item_add_option:d,growth_exp:m,growth_level:f,scroll_upgrade:_,cuttable_count:g,golden_hammer_flag:y,scroll_resilience_count:w,scroll_upgradeable_count:E,soul_name:b,soul_option:v,item_etc_option:S,starforce:k,starforce_scroll_flag:C,item_starforce_option:I,special_ring_level:D,date_expire:P}=t;this.itemEquipmentPart=e,this.itemEquipmentSlot=i,this.itemName=a,this.itemIcon=r,this.itemDescription=n,this.itemShapeName=o,this.itemShapeIcon=s,this.itemGender=c,this.itemTotalOption=new st(l),this.itemBaseOption=new at(h),this.equipmentLevelIncrease=u,this.itemExceptionalOption=new nt(p),this.itemAddOption=new it(d),this.growthExp=m,this.growthLevel=f,this.scrollUpgrade=_,this.cuttableCount=g,this.goldenHammerFlag=y,this.scrollResilienceCount=w,this.scrollUpgradeableCount=E,this.soulName=b,this.soulOption=v,this.itemEtcOption=new rt(S),this.starforce=k,this.starforceScrollFlag=C,this.itemStarforceOption=new ot(I),this.specialRingLevel=D,this.dateExpire=P?new Date(P):null}}class ut{titleName;titleIcon;titleDescription;dateExpire;dateOptionExpire=null;isOptionExpired=null;constructor(t){const{title_name:e,title_icon:i,title_description:a,date_expire:r,date_option_expire:n}=t;this.titleName=e,this.titleIcon=i,this.titleDescription=a,this.dateExpire=r?new Date(r):null,"expired"===n?this.isOptionExpired=!0:"string"==typeof n&&(this.dateOptionExpire=n?new Date(n):null)}}class pt{date;characterGender;characterClass;presetNo;itemEquipment;itemEquipmentPreset1;itemEquipmentPreset2;itemEquipmentPreset3;title;dragonEquipment;mechanicEquipment;constructor(t){const{date:e,character_gender:i,character_class:a,preset_no:r,item_equipment:n,item_equipment_preset_1:o,item_equipment_preset_2:s,item_equipment_preset_3:c,title:l,dragon_equipment:h,mechanic_equipment:u}=t;this.date=e?new Date(e):null,this.characterGender=i,this.characterClass=a,this.presetNo=r,this.itemEquipment=n.map((t=>new lt(t))),this.itemEquipmentPreset1=o?o.map((t=>new lt(t))):null,this.itemEquipmentPreset2=s?s.map((t=>new lt(t))):null,this.itemEquipmentPreset3=c?c.map((t=>new lt(t))):null,this.title=l?new ut(l):null,this.dragonEquipment=h.map((t=>new ct(t))),this.mechanicEquipment=u.map((t=>new ht(t)))}}class dt{skillName;skillDescription;skillLevel;skillEffect;skillEffectNext;skillIcon;constructor(t){const{skill_name:e,skill_description:i,skill_level:a,skill_effect:r,skill_effect_next:n,skill_icon:o}=t;this.skillName=e,this.skillDescription=i,this.skillLevel=a,this.skillEffect=r,this.skillEffectNext=n,this.skillIcon=o}}class mt{date;characterClass;characterLinkSkill;characterLinkSkillPreset1;characterLinkSkillPreset2;characterLinkSkillPreset3;characterOwnedLinkSkill;characterOwnedLinkSkillPreset1;characterOwnedLinkSkillPreset2;characterOwnedLinkSkillPreset3;constructor(t){const{date:e,character_class:i,character_link_skill:a,character_link_skill_preset_1:r,character_link_skill_preset_2:n,character_link_skill_preset_3:o,character_owned_link_skill:s,character_owned_link_skill_preset_1:c,character_owned_link_skill_preset_2:l,character_owned_link_skill_preset_3:h}=t;this.date=e?new Date(e):null,this.characterClass=i,this.characterLinkSkill=a.map((t=>new dt(t))),this.characterLinkSkillPreset1=r.map((t=>new dt(t))),this.characterLinkSkillPreset2=n.map((t=>new dt(t))),this.characterLinkSkillPreset3=o.map((t=>new dt(t))),this.characterOwnedLinkSkill=new dt(s),this.characterOwnedLinkSkillPreset1=c?new dt(c):null,this.characterOwnedLinkSkillPreset2=l?new dt(l):null,this.characterOwnedLinkSkillPreset3=h?new dt(h):null}}class ft{ocid;characterName;worldName;characterClass;characterLevel;constructor(t){const{ocid:e,character_name:i,world_name:a,character_class:r,character_level:n}=t;this.ocid=e,this.characterName=i,this.worldName=a,this.characterClass=r,this.characterLevel=n}}class _t{accountId;characterList;constructor(t){const{account_id:e,character_list:i}=t;this.accountId=e,this.characterList=i.map((t=>new ft(t)))}}class gt{accountList;constructor(t){const{account_list:e}=t;this.accountList=e.map((t=>new _t(t)))}}class yt{skill1;skill1Icon;skill2;skill2Icon;constructor(t){const{skill_1:e,skill_1_icon:i,skill_2:a,skill_2_icon:r}=t;this.skill1=e,this.skill1Icon=i,this.skill2=a,this.skill2Icon=r}}class wt{optionType;optionValue;constructor(t){const{option_type:e,option_value:i}=t;this.optionType=e,this.optionValue=i}}class Et{itemName;itemIcon;itemDescription;itemOption;scrollUpgrade;scrollUpgradable;itemShape;itemShapeIcon;constructor(t){const{item_name:e,item_icon:i,item_description:a,item_option:r,scroll_upgrade:n,scroll_upgradable:o,item_shape:s,item_shape_icon:c}=t;this.itemName=e,this.itemIcon=i,this.itemDescription=a,this.itemOption=r.map((t=>new wt(t))),this.scrollUpgrade=n,this.scrollUpgradable=o,this.itemShape=s,this.itemShapeIcon=c}}class bt{date;pet1Name;pet1Nickname;pet1Icon;pet1Description;pet1Equipment;pet1AutoSkill;pet1PetType;pet1Skill;pet1DateExpire;pet1Appearance;pet1AppearanceIcon;pet2Name;pet2Nickname;pet2Icon;pet2Description;pet2Equipment;pet2AutoSkill;pet2PetType;pet2Skill;pet2DateExpire;pet2Appearance;pet2AppearanceIcon;pet3Name;pet3Nickname;pet3Icon;pet3Description;pet3Equipment;pet3AutoSkill;pet3PetType;pet3Skill;pet3DateExpire;pet3Appearance;pet3AppearanceIcon;constructor(t){const{date:e,pet_1_name:i,pet_1_nickname:a,pet_1_icon:r,pet_1_description:n,pet_1_equipment:o,pet_1_auto_skill:s,pet_1_pet_type:c,pet_1_skill:l,pet_1_date_expire:h,pet_1_appearance:u,pet_1_appearance_icon:p,pet_2_name:d,pet_2_nickname:m,pet_2_icon:f,pet_2_description:_,pet_2_equipment:g,pet_2_auto_skill:y,pet_2_pet_type:w,pet_2_skill:E,pet_2_date_expire:b,pet_2_appearance:v,pet_2_appearance_icon:S,pet_3_name:k,pet_3_nickname:C,pet_3_icon:I,pet_3_description:D,pet_3_equipment:P,pet_3_auto_skill:x,pet_3_pet_type:O,pet_3_skill:N,pet_3_date_expire:A,pet_3_appearance:L,pet_3_appearance_icon:R}=t;this.date=e?new Date(e):null,this.pet1Name=i,this.pet1Nickname=a,this.pet1Icon=r,this.pet1Description=n,this.pet1Equipment=o?new Et(o):null,this.pet1AutoSkill=s?new yt(s):null,this.pet1PetType=c,this.pet1Skill=l,this.pet1DateExpire=h?new Date(h):null,this.pet1Appearance=u,this.pet1AppearanceIcon=p,this.pet2Name=d,this.pet2Nickname=m,this.pet2Icon=f,this.pet2Description=_,this.pet2Equipment=g?new Et(g):null,this.pet2AutoSkill=y?new yt(y):null,this.pet2PetType=w,this.pet2Skill=E,this.pet2DateExpire=b?new Date(b):null,this.pet2Appearance=v,this.pet2AppearanceIcon=S,this.pet3Name=k,this.pet3Nickname=C,this.pet3Icon=I,this.pet3Description=D,this.pet3Equipment=P?new Et(P):null,this.pet3AutoSkill=x?new yt(x):null,this.pet3PetType=O,this.pet3Skill=N,this.pet3DateExpire=A?new Date(A):null,this.pet3Appearance=L,this.pet3AppearanceIcon=R}}class vt{date;popularity;constructor(t){const{date:e,popularity:i}=t;this.date=e?new Date(e):null,this.popularity=i}}class St{date;charismaLevel;sensibilityLevel;insightLevel;willingnessLevel;handicraftLevel;charmLevel;constructor(t){const{date:e,charisma_level:i,sensibility_level:a,insight_level:r,willingness_level:n,handicraft_level:o,charm_level:s}=t;this.date=e?new Date(e):null,this.charismaLevel=i,this.sensibilityLevel=a,this.insightLevel=r,this.willingnessLevel=n,this.handicraftLevel=o,this.charmLevel=s}}class kt{setCount;setOption;constructor(t){const{set_count:e,set_option:i}=t;this.setCount=e,this.setOption=i}}class Ct{setCount;setOption;constructor(t){const{set_count:e,set_option:i}=t;this.setCount=e,this.setOption=i}}class It{setName;totalSetCount;setEffectInfo;setOptionFull;constructor(t){const{set_name:e,total_set_count:i,set_effect_info:a,set_option_full:r}=t;this.setName=e,this.totalSetCount=i,this.setEffectInfo=a.map((t=>new kt(t))),this.setOptionFull=r.map((t=>new Ct(t)))}}class Dt{date;setEffect;constructor(t){const{date:e,set_effect:i}=t;this.date=e?new Date(e):null,this.setEffect=i.map((t=>new It(t)))}}class Pt{skillName;skillDescription;skillLevel;skillEffect;skillEffectNext;skillIcon;constructor(t){const{skill_name:e,skill_description:i,skill_level:a,skill_effect:r,skill_effect_next:n,skill_icon:o}=t;this.skillName=e,this.skillDescription=i,this.skillLevel=a,this.skillEffect=r,this.skillEffectNext=n,this.skillIcon=o}}class xt{date;characterClass;characterSkillGrade;characterSkill;constructor(t){const{date:e,character_class:i,character_skill_grade:a,character_skill:r}=t;this.date=e?new Date(e):null,this.characterClass=i,this.characterSkillGrade=a,this.characterSkill=r.map((t=>new Pt(t)))}}class Ot{date;characterClass;finalStat;remainAP;constructor(t){const{date:e,character_class:i,final_stat:a,remain_ap:r}=t;this.date=e?new Date(e):null,this.characterClass=i,this.finalStat=a.map((t=>({statName:t.stat_name,statValue:t.stat_value}))),this.remainAP=r}}class Nt{symbolName;symbolIcon;symbolDescription;symbolForce;symbolLevel;symbolStr;symbolDex;symbolInt;symbolLuk;symbolHp;symbolDropRate;symbolMesoRate;symbolExpRate;symbolGrowthCount;symbolRequireGrowthCount;constructor(t){const{symbol_name:e,symbol_icon:i,symbol_description:a,symbol_force:r,symbol_level:n,symbol_str:o,symbol_dex:s,symbol_int:c,symbol_luk:l,symbol_hp:h,symbol_drop_rate:u,symbol_meso_rate:p,symbol_exp_rate:d,symbol_growth_count:m,symbol_require_growth_count:f}=t;this.symbolName=e,this.symbolIcon=i,this.symbolDescription=a,this.symbolForce=r,this.symbolLevel=n,this.symbolStr=o,this.symbolDex=s,this.symbolInt=c,this.symbolLuk=l,this.symbolHp=h,this.symbolDropRate=u??"0%",this.symbolMesoRate=p??"0%",this.symbolExpRate=d??"0%",this.symbolHp=h,this.symbolHp=h,this.symbolGrowthCount=m,this.symbolRequireGrowthCount=f}}class At{date;characterClass;symbol;constructor(t){const{date:e,character_class:i,symbol:a}=t;this.date=e?new Date(e):null,this.characterClass=i,this.symbol=a.map((t=>new Nt(t)))}}class Lt{slotId;slotLevel;vCoreName;vCoreType;vCoreLevel;vCoreSkill1;vCoreSkill2;vCoreSkill3;constructor(t){const{slot_id:e,slot_level:i,v_core_name:a,v_core_type:r,v_core_level:n,v_core_skill_1:o,v_core_skill_2:s,v_core_skill_3:c}=t;this.slotId=e,this.slotLevel=i,this.vCoreName=a,this.vCoreType=r,this.vCoreLevel=n,this.vCoreSkill1=o,this.vCoreSkill2=s,this.vCoreSkill3=c}}class Rt{date;characterClass;characterVCoreEquipment;characterVMatrixRemainSlotUpgradePoint;constructor(t){const{date:e,character_class:i,character_v_core_equipment:a,character_v_matrix_remain_slot_upgrade_point:r}=t;this.date=e?new Date(e):null,this.characterClass=i,this.characterVCoreEquipment=a.map((t=>new Lt(t))),this.characterVMatrixRemainSlotUpgradePoint=r}}class qt{skillName;skillDescription;skillLevel;skillEffect;skillIcon;constructor(t){const{skill_name:e,skill_description:i,skill_level:a,skill_effect:r,skill_icon:n}=t;this.skillName=e,this.skillDescription=i,this.skillLevel=a,this.skillEffect=r,this.skillIcon=n}}class Bt{date;worldName;guildName;guildLevel;guildFame;guildPoint;guildMasterName;guildMemberCount;guildMember;guildSkill;guildNoblesseSkill;constructor(t){const{date:e,world_name:i,guild_name:a,guild_level:r,guild_fame:n,guild_point:o,guild_master_name:s,guild_member_count:c,guild_member:l,guild_skill:h,guild_noblesse_skill:u}=t;this.date=e?new Date(e):null,this.worldName=i,this.guildName=a,this.guildLevel=r,this.guildFame=n,this.guildPoint=o,this.guildMasterName=s,this.guildMemberCount=c,this.guildMember=l,this.guildSkill=h.map((t=>new qt(t))),this.guildNoblesseSkill=u.map((t=>new qt(t)))}}class Ut{oguildId;constructor(t){const{oguild_id:e}=t;this.oguildId=e}}t.PotentialOptionGrade=void 0,(k=t.PotentialOptionGrade||(t.PotentialOptionGrade={}))[k.RARE=0]="RARE",k[k.EPIC=1]="EPIC",k[k.UNIQUE=2]="UNIQUE",k[k.LEGENDARY=3]="LEGENDARY";const Tt=e=>{const i={"레어":t.PotentialOptionGrade.RARE,"에픽":t.PotentialOptionGrade.EPIC,"유니크":t.PotentialOptionGrade.UNIQUE,"레전드리":t.PotentialOptionGrade.LEGENDARY}[e];if(!i)throw new TypeError("No enum constant for string: "+e);return i};class Mt{value;grade;constructor(t){const{value:e,grade:i}=t;this.value=e,this.grade=i}get gradeEnum(){return Tt(this.grade)}}class Gt{id;characterName;worldName;dateCreate;cubeType;itemUpgradeResult;miracleTimeFlag;itemEquipmentPart;itemLevel;targetItem;potentialOptionGrade;additionalPotentialOptionGrade;upgradeGuarantee;upgradeGuaranteeCount;beforePotentialOption;beforeAdditionalPotentialOption;afterPotentialOption;afterAdditionalPotentialOption;constructor(t){const{id:e,character_name:i,world_name:a,date_create:r,cube_type:n,item_upgrade_result:o,miracle_time_flag:s,item_equipment_part:c,item_level:l,target_item:h,potential_option_grade:u,additional_potential_option_grade:p,upgrade_guarantee:d,upgrade_guarantee_count:m,before_potential_option:f,before_additional_potential_option:_,after_potential_option:g,after_additional_potential_option:y}=t;this.id=e,this.characterName=i,this.worldName=a,this.dateCreate=new Date(r),this.cubeType=n,this.itemUpgradeResult=o,this.miracleTimeFlag=s,this.itemEquipmentPart=c,this.itemLevel=l,this.targetItem=h,this.potentialOptionGrade=u,this.additionalPotentialOptionGrade=p,this.upgradeGuarantee=d,this.upgradeGuaranteeCount=m,this.beforePotentialOption=f.map((t=>new Mt(t))),this.beforeAdditionalPotentialOption=_.map((t=>new Mt(t))),this.afterPotentialOption=g.map((t=>new Mt(t))),this.afterAdditionalPotentialOption=y.map((t=>new Mt(t)))}get isItemUpgrade(){return"성공"===this.itemUpgradeResult}get isMiracleTimeFlag(){return"이벤트 적용되지 않음"!==this.miracleTimeFlag}get potentialOptionGradeEnum(){return Tt(this.potentialOptionGrade)}get additionalPotentialOptionGradeEnum(){return Tt(this.additionalPotentialOptionGrade)}}class Ft{count;cubeHistory;nextCursor;constructor(t){const{count:e,cube_history:i,next_cursor:a}=t;this.count=e,this.cubeHistory=i.map((t=>new Gt(t))),this.nextCursor=a}}class $t{value;grade;constructor(t){const{value:e,grade:i}=t;this.value=e,this.grade=i}get gradeEnum(){return Tt(this.grade)}}class Ht{id;characterName;dateCreate;potentialType;itemUpgradeResult;miracleTimeFlag;itemEquipmentPart;itemLevel;targetItem;potentialOptionGrade;additionalPotentialOptionGrade;upgradeGuarantee;upgradeGuaranteeCount;beforePotentialOption;beforeAdditionalPotentialOption;afterPotentialOption;afterAdditionalPotentialOption;constructor(t){const{id:e,character_name:i,date_create:a,potential_type:r,item_upgrade_result:n,miracle_time_flag:o,item_equipment_part:s,item_level:c,target_item:l,potential_option_grade:h,additional_potential_option_grade:u,upgrade_guarantee:p,upgrade_guarantee_count:d,before_potential_option:m,before_additional_potential_option:f,after_potential_option:_,after_additional_potential_option:g}=t;this.id=e,this.characterName=i,this.dateCreate=new Date(a),this.potentialType=r,this.itemUpgradeResult=n,this.miracleTimeFlag=o,this.itemEquipmentPart=s,this.itemLevel=c,this.targetItem=l,this.potentialOptionGrade=h,this.additionalPotentialOptionGrade=u,this.upgradeGuarantee=p,this.upgradeGuaranteeCount=d,this.beforePotentialOption=m.map((t=>new $t(t))),this.beforeAdditionalPotentialOption=f.map((t=>new $t(t))),this.afterPotentialOption=_.map((t=>new $t(t))),this.afterAdditionalPotentialOption=g.map((t=>new $t(t)))}get isItemUpgrade(){return"성공"===this.itemUpgradeResult}get isMiracleTimeFlag(){return"이벤트 적용되지 않음"!==this.miracleTimeFlag}get potentialOptionGradeEnum(){return Tt(this.potentialOptionGrade)}get additionalPotentialOptionGradeEnum(){return Tt(this.additionalPotentialOptionGrade)}}class jt{count;potentialHistory;nextCursor;constructor(t){const{count:e,potential_history:i,next_cursor:a}=t;this.count=e,this.potentialHistory=i.map((t=>new Ht(t))),this.nextCursor=a}}class Yt{successRate;costDiscountRate;plusValue;starforceEventRange;constructor(t){const{success_rate:e,cost_discount_rate:i,plus_value:a,starforce_event_range:r}=t;this.successRate=e,this.costDiscountRate=i,this.plusValue=a,this.starforceEventRange=r}}class zt{id;itemUpgradeResult;beforeStarforceCount;afterStarforceCount;starCatchResult;superiorItemFlag;destroyDefence;chanceTime;eventFieldFlag;upgradeItem;protectShield;bonusStatUpgrade;characterName;worldName;targetItem;dateCreate;starforceEventList;constructor(t){const{id:e,item_upgrade_result:i,before_starforce_count:a,after_starforce_count:r,starcatch_result:n,superior_item_flag:o,destroy_defence:s,chance_time:c,event_field_flag:l,upgrade_item:h,protect_shield:u,bonus_stat_upgrade:p,character_name:d,world_name:m,target_item:f,date_create:_,starforce_event_list:g}=t;this.id=e,this.itemUpgradeResult=i,this.beforeStarforceCount=a,this.afterStarforceCount=r,this.starCatchResult=n,this.superiorItemFlag=o,this.destroyDefence=s,this.chanceTime=c,this.eventFieldFlag=l,this.upgradeItem=h,this.protectShield=u,this.bonusStatUpgrade=p,this.characterName=d,this.worldName=m,this.targetItem=f,this.dateCreate=new Date(_),this.starforceEventList=g?.map((t=>new Yt(t)))??null}}class Vt{count;starforceHistory;nextCursor;constructor(t){const{count:e,starforce_history:i,next_cursor:a}=t;this.count=e,this.starforceHistory=i.map((t=>new zt(t))),this.nextCursor=a}}class Wt{serviceCode;startDateTime;endDateTime;strObstacleContents;constructor(t){const e=t["soap:Envelope"]["soap:Body"][0].GetInspectionInfoResponse[0].GetInspectionInfoResult[0]["diffgr:diffgram"][0].NewDataSet[0].InspectionInfo[0];this.serviceCode=Number(e.serviceCode[0]),this.startDateTime=new Date(e.startDateTime[0]),this.endDateTime=new Date(e.endDateTime[0]),this.strObstacleContents=e.strObstacleContents[0]}}class Qt{title;url;contents;date;dateSaleStart;dateSaleEnd;ongoingFlag;constructor(t){const{title:e,url:i,contents:a,date:r,date_sale_start:n,date_sale_end:o,ongoing_flag:s}=t;this.title=e,this.url=i,this.contents=a,this.date=new Date(r),this.dateSaleStart=n?new Date(n):null,this.dateSaleEnd=o?new Date(o):null,this.ongoingFlag=s}get isOnGoing(){return"true"===this.ongoingFlag}}class Zt{title;url;noticeId;date;dateSaleStart;dateSaleEnd;ongoingFlag;constructor(t){const{title:e,url:i,notice_id:a,date:r,date_sale_start:n,date_sale_end:o,ongoing_flag:s}=t;this.title=e,this.url=i,this.noticeId=a,this.date=new Date(r),this.dateSaleStart=n?new Date(n):null,this.dateSaleEnd=o?new Date(o):null,this.ongoingFlag=s}get isOnGoing(){return"true"===this.ongoingFlag}}class Xt{cashshopNotice;constructor(t){const{cashshop_notice:e}=t;this.cashshopNotice=e.map((t=>new Zt(t)))}}class Jt{title;url;contents;date;dateEventStart;dateEventEnd;constructor(t){const{title:e,url:i,contents:a,date:r,date_event_start:n,date_event_end:o}=t;this.title=e,this.url=i,this.contents=a,this.date=new Date(r),this.dateEventStart=new Date(n),this.dateEventEnd=new Date(o)}}class Kt{title;url;noticeId;date;dateEventStart;dateEventEnd;constructor(t){const{title:e,url:i,notice_id:a,date:r,date_event_start:n,date_event_end:o}=t;this.title=e,this.url=i,this.noticeId=a,this.date=new Date(r),this.dateEventStart=new Date(n),this.dateEventEnd=new Date(o)}}class te{eventNotice;constructor(t){const{event_notice:e}=t;this.eventNotice=e.map((t=>new Kt(t)))}}class ee{title;url;contents;date;constructor(t){const{title:e,url:i,contents:a,date:r}=t;this.title=e,this.url=i,this.contents=a,this.date=new Date(r)}}class ie{title;url;noticeId;date;constructor(t){const{title:e,url:i,notice_id:a,date:r}=t;this.title=e,this.url=i,this.noticeId=a,this.date=new Date(r)}}class ae{notice;constructor(t){const{notice:e}=t;this.notice=e.map((t=>new ie(t)))}}class re{title;url;contents;date;constructor(t){const{title:e,url:i,contents:a,date:r}=t;this.title=e,this.url=i,this.contents=a,this.date=new Date(r)}}class ne{title;url;noticeId;date;constructor(t){const{title:e,url:i,notice_id:a,date:r}=t;this.title=e,this.url=i,this.noticeId=a,this.date=new Date(r)}}class oe{updateNotice;constructor(t){const{update_notice:e}=t;this.updateNotice=e.map((t=>new ne(t)))}}class se{date;ranking;characterName;worldName;className;subClassName;trophyGrade;trophyScore;constructor(t){const{date:e,ranking:i,character_name:a,world_name:r,class_name:n,sub_class_name:o,trophy_grade:s,trophy_score:c}=t;this.date=new Date(e),this.ranking=i,this.characterName=a,this.worldName=r,this.className=n,this.subClassName=o,this.trophyGrade=s,this.trophyScore=c}}class ce{ranking;constructor(t){const{ranking:e}=t;this.ranking=e.map((t=>new se(t)))}}class le{date;ranking;characterName;worldName;className;subClassName;characterLevel;dojangFloor;dojangTimeRecord;constructor(t){const{date:e,ranking:i,character_name:a,world_name:r,class_name:n,sub_class_name:o,character_level:s,dojang_floor:c,dojang_time_record:l}=t;this.date=new Date(e),this.ranking=i,this.characterName=a,this.worldName=r,this.className=n,this.subClassName=o,this.characterLevel=s,this.dojangFloor=c,this.dojangTimeRecord=l}}class he{ranking;constructor(t){const{ranking:e}=t;this.ranking=e.map((t=>new le(t)))}}class ue{date;ranking;guildName;worldName;guildLevel;guildMasterName;guildMark;guildPoint;constructor(t){const{date:e,ranking:i,guild_name:a,world_name:r,guild_level:n,guild_master_name:o,guild_mark:s,guild_point:c}=t;this.date=new Date(e),this.ranking=i,this.guildName=a,this.worldName=r,this.guildLevel=n,this.guildMasterName=o,this.guildMark=s,this.guildPoint=c}}class pe{ranking;constructor(t){const{ranking:e}=t;this.ranking=e.map((t=>new ue(t)))}}class de{date;ranking;characterName;worldName;className;subClassName;characterLevel;characterExp;characterPopularity;characterGuildName;constructor(t){const{date:e,ranking:i,character_name:a,world_name:r,class_name:n,sub_class_name:o,character_level:s,character_exp:c,character_popularity:l,character_guildname:h}=t;this.date=new Date(e),this.ranking=i,this.characterName=a,this.worldName=r,this.className=n,this.subClassName=o,this.characterLevel=s,this.characterExp=c,this.characterPopularity=l,this.characterGuildName=h}}class me{ranking;constructor(t){const{ranking:e}=t;this.ranking=e.map((t=>new de(t)))}}class fe{date;ranking;characterName;worldName;className;subClassName;characterLevel;theSeedFloor;theSeedTimeRecord;constructor(t){const{date:e,ranking:i,character_name:a,world_name:r,class_name:n,sub_class_name:o,character_level:s,theseed_floor:c,theseed_time_record:l}=t;this.date=new Date(e),this.ranking=i,this.characterName=a,this.worldName=r,this.className=n,this.subClassName=o,this.characterLevel=s,this.theSeedFloor=c,this.theSeedTimeRecord=l}}class _e{ranking;constructor(t){const{ranking:e}=t;this.ranking=e.map((t=>new fe(t)))}}class ge{date;ranking;characterName;worldName;className;subClassName;unionLevel;unionPower;constructor(t){const{date:e,ranking:i,character_name:a,world_name:r,class_name:n,sub_class_name:o,union_level:s,union_power:c}=t;this.date=new Date(e),this.ranking=i,this.characterName=a,this.worldName=r,this.className=n,this.subClassName=o,this.unionLevel=s,this.unionPower=c}}class ye{ranking;constructor(t){const{ranking:e}=t;this.ranking=e.map((t=>new ge(t)))}}class we{name;validityFlag;dateExpire;level;crystalOptionName1;crystalOptionName2;crystalOptionName3;constructor(t){const{name:e,validity_flag:i,date_expire:a,level:r,crystal_option_name_1:n,crystal_option_name_2:o,crystal_option_name_3:s}=t;this.name=e,this.validityFlag=i,this.dateExpire=new Date(a),this.level=r,this.crystalOptionName1=n,this.crystalOptionName2=o,this.crystalOptionName3=s}}class Ee{name;level;constructor(t){const{name:e,level:i}=t;this.name=e,this.level=i}}class be{date;unionArtifactEffect;unionArtifactCrystal;unionArtifactRemainAp;constructor(t){const{date:e,union_artifact_effect:i,union_artifact_crystal:a,union_artifact_remain_ap:r}=t;this.date=e?new Date(e):null,this.unionArtifactEffect=i.map((t=>new Ee(t))),this.unionArtifactCrystal=a.map((t=>new we(t))),this.unionArtifactRemainAp=r}}class ve{date;unionLevel;unionGrade;unionArtifactLevel;unionArtifactExp;unionArtifactPoint;constructor(t){const{date:e,union_level:i,union_grade:a,union_artifact_level:r,union_artifact_exp:n,union_artifact_point:o}=t;this.date=e?new Date(e):null,this.unionLevel=i,this.unionGrade=a,this.unionArtifactLevel=r,this.unionArtifactExp=n,this.unionArtifactPoint=o}}class Se{x;y;constructor(t){const{x:e,y:i}=t;this.x=e,this.y=i}}class ke{x;y;constructor(t){const{x:e,y:i}=t;this.x=e,this.y=i}}class Ce{blockType;blockClass;blockLevel;blockControlPoint;blockPosition;constructor(t){const{block_type:e,block_class:i,block_level:a,block_control_point:r,block_position:n}=t;this.blockType=e,this.blockClass=i,this.blockLevel=a,this.blockControlPoint=new ke(r),this.blockPosition=n?n.map((t=>new Se(t))):null}}class Ie{statFieldId;statFieldEffect;constructor(t){const{stat_field_id:e,stat_field_effect:i}=t;this.statFieldId=e,this.statFieldEffect=i}}class De{unionRaiderStat;unionOccupiedStat;unionInnerStat;unionBlock;constructor(t){const{union_raider_stat:e,union_occupied_stat:i,union_inner_stat:a,union_block:r}=t;this.unionRaiderStat=e,this.unionOccupiedStat=i,this.unionInnerStat=a.map((t=>new Ie(t))),this.unionBlock=r.map((t=>new Ce(t)))}}class Pe{date;unionRaiderStat;unionOccupiedStat;unionInnerStat;unionBlock;usePresetNo;unionRaiderPreset1;unionRaiderPreset2;unionRaiderPreset3;unionRaiderPreset4;unionRaiderPreset5;constructor(t){const{date:e,union_raider_stat:i,union_occupied_stat:a,union_inner_stat:r,union_block:n,use_preset_no:o,union_raider_preset_1:s,union_raider_preset_2:c,union_raider_preset_3:l,union_raider_preset_4:h,union_raider_preset_5:u}=t;this.date=e?new Date(e):null,this.unionRaiderStat=i,this.unionOccupiedStat=a,this.unionInnerStat=r.map((t=>new Ie(t))),this.unionBlock=n.map((t=>new Ce(t))),this.usePresetNo=o,this.unionRaiderPreset1=s?new De(s):null,this.unionRaiderPreset2=c?new De(c):null,this.unionRaiderPreset3=l?new De(l):null,this.unionRaiderPreset4=h?new De(h):null,this.unionRaiderPreset5=u?new De(u):null}}class xe extends Error{name="MapleStoryApiError";errorCode;message;constructor(t){const{name:e,message:i}=t.error;super(i),this.errorCode=Ne[e],this.message=i}}var Oe;t.MapleStoryApiErrorCode=void 0,(Oe=t.MapleStoryApiErrorCode||(t.MapleStoryApiErrorCode={}))[Oe.OPENAPI00001=0]="OPENAPI00001",Oe[Oe.OPENAPI00002=1]="OPENAPI00002",Oe[Oe.OPENAPI00003=2]="OPENAPI00003",Oe[Oe.OPENAPI00004=3]="OPENAPI00004",Oe[Oe.OPENAPI00005=4]="OPENAPI00005",Oe[Oe.OPENAPI00006=5]="OPENAPI00006",Oe[Oe.OPENAPI00007=6]="OPENAPI00007",Oe[Oe.OPENAPI00009=7]="OPENAPI00009",Oe[Oe.OPENAPI00010=8]="OPENAPI00010",Oe[Oe.OPENAPI00011=9]="OPENAPI00011";const Ne={OPENAPI00001:t.MapleStoryApiErrorCode.OPENAPI00001,OPENAPI00002:t.MapleStoryApiErrorCode.OPENAPI00002,OPENAPI00003:t.MapleStoryApiErrorCode.OPENAPI00003,OPENAPI00004:t.MapleStoryApiErrorCode.OPENAPI00004,OPENAPI00005:t.MapleStoryApiErrorCode.OPENAPI00005,OPENAPI00006:t.MapleStoryApiErrorCode.OPENAPI00006,OPENAPI00007:t.MapleStoryApiErrorCode.OPENAPI00007,OPENAPI00009:t.MapleStoryApiErrorCode.OPENAPI00009,OPENAPI00010:t.MapleStoryApiErrorCode.OPENAPI00010,OPENAPI00011:t.MapleStoryApiErrorCode.OPENAPI00011};o.default.extend(w),o.default.extend(C);class Ae{apiKey;client;static BASE_URL="https://open.api.nexon.com/";static DEFAULT_TIMEOUT=5e3;static kstOffset=540;get timeout(){return this.client.defaults.timeout}set timeout(t){this.client.defaults.timeout=t}constructor(t){this.apiKey=t,this.client=n.default.create({baseURL:Ae.BASE_URL,timeout:Ae.DEFAULT_TIMEOUT,headers:{"x-nxopen-api-key":this.apiKey}}),this.client.interceptors.response.use((t=>t),(t=>{if(t instanceof e.AxiosError){const e=t.response.data;throw new xe(e)}throw t}))}async getCharacter(t){const{data:e}=await this.client.get("maplestory/v1/id",{params:{character_name:t}});return new V(e)}async getCharacterList(){const{data:t}=await this.client.get("maplestory/v1/character/list");return new gt(t)}async getCharacterBasic(t,e){const i={ocid:t,date:e?Ae.toDateString({year:2023,month:12,day:21},e):void 0},{data:a}=await this.client.get("maplestory/v1/character/basic",{params:i});return new U(a)}async getCharacterImage(e,i,a){const{date:r,characterImage:o}=await this.getCharacterBasic(e,a),s={action:t.CharacterImageAction.Stand1,emotion:t.CharacterImageEmotion.Default,wmotion:t.CharacterImageWeaponMotion.Default,width:96,height:96,x:null,y:null,...i},l=async(t,e)=>{const{data:i,headers:a}=await n.default.get(t,{params:e,responseType:"arraybuffer"}),r=c.Buffer.from(i,"binary").toString("base64");return`data:${a["content-type"]};base64,${r}`},[h,u]=await Promise.all([l(o),l(o,s)]);return new et({date:r,originUrl:o,originImage:h,image:u,...s})}async getCharacterPopularity(t,e){const i={ocid:t,date:e?Ae.toDateString({year:2023,month:12,day:21},e):void 0},{data:a}=await this.client.get("maplestory/v1/character/popularity",{params:i});return new vt(a)}async getCharacterStat(t,e){const i={ocid:t,date:e?Ae.toDateString({year:2023,month:12,day:21},e):void 0},{data:a}=await this.client.get("maplestory/v1/character/stat",{params:i});return new Ot(a)}async getCharacterHyperStat(t,e){const i={ocid:t,date:e?Ae.toDateString({year:2023,month:12,day:21},e):void 0},{data:a}=await this.client.get("maplestory/v1/character/hyper-stat",{params:i});return new tt(a)}async getCharacterPropensity(t,e){const i={ocid:t,date:e?Ae.toDateString({year:2023,month:12,day:21},e):void 0},{data:a}=await this.client.get("maplestory/v1/character/propensity",{params:i});return new St(a)}async getCharacterAbility(t,e){const i={ocid:t,date:e?Ae.toDateString({year:2023,month:12,day:21},e):void 0},{data:a}=await this.client.get("maplestory/v1/character/ability",{params:i});return new P(a)}async getCharacterItemEquipment(t,e){const i={ocid:t,date:e?Ae.toDateString({year:2023,month:12,day:21},e):void 0},{data:a}=await this.client.get("maplestory/v1/character/item-equipment",{params:i});return new pt(a)}async getCharacterCashItemEquipment(t,e){const i={ocid:t,date:e?Ae.toDateString({year:2023,month:12,day:21},e):void 0},{data:a}=await this.client.get("maplestory/v1/character/cashitem-equipment",{params:i});return new Y(a)}async getCharacterSymbolEquipment(t,e){const i={ocid:t,date:e?Ae.toDateString({year:2023,month:12,day:21},e):void 0},{data:a}=await this.client.get("maplestory/v1/character/symbol-equipment",{params:i});return new At(a)}async getCharacterSetEffect(t,e){const i={ocid:t,date:e?Ae.toDateString({year:2023,month:12,day:21},e):void 0},{data:a}=await this.client.get("maplestory/v1/character/set-effect",{params:i});return new Dt(a)}async getCharacterBeautyEquipment(t,e){const i={ocid:t,date:e?Ae.toDateString({year:2023,month:12,day:21},e):void 0},{data:a}=await this.client.get("maplestory/v1/character/beauty-equipment",{params:i});return new F(a)}async getCharacterAndroidEquipment(t,e){const i={ocid:t,date:e?Ae.toDateString({year:2023,month:12,day:21},e):void 0},{data:a}=await this.client.get("maplestory/v1/character/android-equipment",{params:i});return new B(a)}async getCharacterPetEquipment(t,e){const i={ocid:t,date:e?Ae.toDateString({year:2023,month:12,day:21},e):void 0},{data:a}=await this.client.get("maplestory/v1/character/pet-equipment",{params:i});return new bt(a)}async getCharacterSkill(t,e,i){const a={ocid:t,character_skill_grade:e,date:i?Ae.toDateString({year:2023,month:12,day:21},i):void 0},{data:r}=await this.client.get("maplestory/v1/character/skill",{params:a});return new xt(r)}async getCharacterLinkSkill(t,e){const i={ocid:t,date:e?Ae.toDateString({year:2023,month:12,day:21},e):void 0},{data:a}=await this.client.get("maplestory/v1/character/link-skill",{params:i});return new mt(a)}async getCharacterVMatrix(t,e){const i={ocid:t,date:e?Ae.toDateString({year:2023,month:12,day:21},e):void 0},{data:a}=await this.client.get("maplestory/v1/character/vmatrix",{params:i});return new Rt(a)}async getCharacterHexaMatrix(t,e){const i={ocid:t,date:e?Ae.toDateString({year:2023,month:12,day:21},e):void 0},{data:a}=await this.client.get("maplestory/v1/character/hexamatrix",{params:i});return new Z(a)}async getCharacterHexaMatrixStat(t,e){const i={ocid:t,date:e?Ae.toDateString({year:2023,month:12,day:21},e):void 0},{data:a}=await this.client.get("maplestory/v1/character/hexamatrix-stat",{params:i});return new J(a)}async getCharacterDojang(t,e){const i={ocid:t,date:e?Ae.toDateString({year:2023,month:12,day:21},e):void 0},{data:a}=await this.client.get("maplestory/v1/character/dojang",{params:i});return new z(a)}async getUnion(t,e){const i={ocid:t,date:e?Ae.toDateString({year:2023,month:12,day:21},e):void 0},{data:a}=await this.client.get("maplestory/v1/user/union",{params:i});return new ve(a)}async getUnionRaider(t,e){const i={ocid:t,date:e?Ae.toDateString({year:2023,month:12,day:21},e):void 0},{data:a}=await this.client.get("maplestory/v1/user/union-raider",{params:i});return new Pe(a)}async getUnionArtifact(t,e){const i={ocid:t,date:e?Ae.toDateString({year:2023,month:12,day:21},e):void 0},{data:a}=await this.client.get("maplestory/v1/user/union-artifact",{params:i});return new be(a)}async getGuild(t,e){const{data:i}=await this.client.get("maplestory/v1/guild/id",{params:{guild_name:t,world_name:e}});return new Ut(i)}async getGuildBasic(t,e){const i={oguild_id:t,date:e?Ae.toDateString({year:2023,month:12,day:21},e):void 0},{data:a}=await this.client.get("maplestory/v1/guild/basic",{params:i});return new Bt(a)}async getStarforceHistory(t,e){const i={count:t};"string"==typeof e?i.cursor=e:"object"!=typeof e&&void 0!==e||(i.date=Ae.toDateString({year:2023,month:12,day:27},e??Ae.getProperDefaultDateOptions({hour:0,minute:0,dateOffset:0})));const{data:a}=await this.client.get("maplestory/v1/history/starforce",{params:i});return new Vt(a)}async getCubeHistory(t,e){const i={count:t};"string"==typeof e?i.cursor=e:"object"!=typeof e&&void 0!==e||(i.date=Ae.toDateString({year:2022,month:11,day:25},e??Ae.getProperDefaultDateOptions({hour:4,minute:0,dateOffset:1})));const{data:a}=await this.client.get("maplestory/v1/history/cube",{params:i});return new Ft(a)}async getPotentialHistory(t,e){const i={count:t};"string"==typeof e?i.cursor=e:"object"!=typeof e&&void 0!==e||(i.date=Ae.toDateString({year:2024,month:1,day:25},e??Ae.getProperDefaultDateOptions({hour:4,minute:0,dateOffset:1})));const{data:a}=await this.client.get("maplestory/v1/history/potential",{params:i});return new jt(a)}async getOverallRanking(t,e=Ae.getProperDefaultDateOptions({hour:8,minute:30,dateOffset:0})){const i={date:Ae.toDateString({year:2023,month:12,day:22},e)};if(t){const{worldName:e,worldType:a,characterClass:r,ocid:n,page:o}=t;i.world_name=e,i.world_type=a,i.class=r,i.ocid=n,i.page=o}const{data:a}=await this.client.get("maplestory/v1/ranking/overall",{params:i});return new me(a)}async getUnionRanking(t,e=Ae.getProperDefaultDateOptions({hour:8,minute:30,dateOffset:0})){const i={date:Ae.toDateString({year:2023,month:12,day:22},e)};if(t){const{worldName:e,ocid:a,page:r}=t;i.world_name=e,i.ocid=a,i.page=r}const{data:a}=await this.client.get("maplestory/v1/ranking/union",{params:i});return new ye(a)}async getGuildRanking(t,e=Ae.getProperDefaultDateOptions({hour:8,minute:30,dateOffset:0})){const i={date:Ae.toDateString({year:2023,month:12,day:22},e),ranking_type:0};if(t){const{worldName:e,rankingType:a,ocid:r,page:n}=t;i.world_name=e,i.ranking_type=a,i.ocid=r,i.page=n}const{data:a}=await this.client.get("maplestory/v1/ranking/guild",{params:i});return new pe(a)}async getDojangRanking(t,e=Ae.getProperDefaultDateOptions({hour:8,minute:30,dateOffset:0})){const i={date:Ae.toDateString({year:2023,month:12,day:22},e),difficulty:0};if(t){const{worldName:e,difficulty:a,characterClass:r,ocid:n,page:o}=t;i.world_name=e,i.difficulty=a,i.class=r,i.ocid=n,i.page=o}const{data:a}=await this.client.get("maplestory/v1/ranking/dojang",{params:i});return new he(a)}async getSeedRanking(t,e=Ae.getProperDefaultDateOptions({hour:8,minute:30,dateOffset:0})){const i={date:Ae.toDateString({year:2023,month:12,day:22},e)};if(t){const{worldName:e,ocid:a,page:r}=t;i.world_name=e,i.ocid=a,i.page=r}const{data:a}=await this.client.get("maplestory/v1/ranking/theseed",{params:i});return new _e(a)}async getAchievementRanking(t,e=Ae.getProperDefaultDateOptions({hour:8,minute:30,dateOffset:0})){const i={date:Ae.toDateString({year:2023,month:12,day:22},e)};if(t){const{ocid:e,page:a}=t;i.ocid=e,i.page=a}const{data:a}=await this.client.get("maplestory/v1/ranking/achievement",{params:i});return new ce(a)}async getNoticeList(){const{data:t}=await this.client.get("maplestory/v1/notice");return new ae(t)}async getNoticeDetail(t){const e={notice_id:t},{data:i}=await this.client.get("maplestory/v1/notice/detail",{params:e});return new ee(i)}async getUpdateNoticeList(){const{data:t}=await this.client.get("maplestory/v1/notice-update");return new oe(t)}async getUpdateNoticeDetail(t){const e={notice_id:t},{data:i}=await this.client.get("maplestory/v1/notice-update/detail",{params:e});return new re(i)}async getEventNoticeList(){const{data:t}=await this.client.get("maplestory/v1/notice-event");return new te(t)}async getEventNoticeDetail(t){const e={notice_id:t},{data:i}=await this.client.get("maplestory/v1/notice-event/detail",{params:e});return new Jt(i)}async getCashshopNoticeList(){const{data:t}=await this.client.get("maplestory/v1/notice-cashshop");return new Xt(t)}async getCashshopNoticeDetail(t){const e={notice_id:t},{data:i}=await this.client.get("maplestory/v1/notice-cashshop/detail",{params:e});return new Qt(i)}async getInspectionInfo(){const t=(new s.default.Builder).buildObject({"soap:Envelope":{$:{"xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:soap":"http://schemas.xmlsoap.org/soap/envelope/"},"soap:Body":{GetInspectionInfo:{$:{xmlns:"https://api.maplestory.nexon.com/soap/"}}}}}),e=await n.default.post("soap/maplestory.asmx",t,{baseURL:"https://api.maplestory.nexon.com/",timeout:this.timeout,headers:{SOAPAction:"https://api.maplestory.nexon.com/soap/GetInspectionInfo","Content-Type":"text/xml; charset=utf-8"}}),i=await s.default.parseStringPromise(e.data);return new Wt(i)}static getProperDefaultDateOptions(t){const{hour:e,minute:i,dateOffset:a}=t,r=o.default().utcOffset(Ae.kstOffset),n=o.default().utcOffset(Ae.kstOffset).hour(e).minute(i);let s;return s=r.isAfter(n)?r:r.subtract(1,"day"),s=s.subtract(a??0,"day"),{year:s.year(),month:s.month()+1,day:s.date()}}static toDateString(t,e){const{year:i,month:a,day:r}=t,{year:n,month:s,day:c}=e;if(n<i||n===i&&s<a||n===i&&s===a&&c<r)throw new Error(`You can only retrieve data after ${o.default(`${i}-${a}-${r}`).format("YYYY-MM-DD")}.`);return o.default(`${n}-${s}-${c}`).utcOffset(Ae.kstOffset).format("YYYY-MM-DD")}}t.AchievementRankingDto=se,t.AchievementRankingResponseDto=ce,t.CashshopNoticeDetailDto=Qt,t.CashshopNoticeListDto=Xt,t.CashshopNoticeListItemDto=Zt,t.CharacterAbilityDto=P,t.CharacterAbilityInfoDto=I,t.CharacterAbilityPresetDto=D,t.CharacterAndroidCashItemEquipmentColoringPrismDto=x,t.CharacterAndroidCashItemEquipmentDto=N,t.CharacterAndroidCashItemEquipmentOptionDto=O,t.CharacterAndroidEquipmentDto=B,t.CharacterAndroidEquipmentFaceDto=A,t.CharacterAndroidEquipmentHairDto=L,t.CharacterAndroidEquipmentPresetDto=q,t.CharacterBasicDto=U,t.CharacterBeautyEquipmentDto=F,t.CharacterBeautyEquipmentFaceDto=T,t.CharacterBeautyEquipmentHairDto=M,t.CharacterCashItemEquipmentColoringPrismDto=$,t.CharacterCashItemEquipmentDto=Y,t.CharacterCashItemEquipmentOptionDto=H,t.CharacterCashItemEquipmentPresetDto=j,t.CharacterDojangDto=z,t.CharacterDto=V,t.CharacterHexaMatrixDto=Z,t.CharacterHexaMatrixEquipmentDto=Q,t.CharacterHexaMatrixEquipmentLinkedSkillDto=W,t.CharacterHexaMatrixStatCoreDto=X,t.CharacterHexaMatrixStatDto=J,t.CharacterHyperStatDto=tt,t.CharacterHyperStatPresetDto=K,t.CharacterImageDto=et,t.CharacterItemEquipmentAddOptionDto=it,t.CharacterItemEquipmentBaseOptionDto=at,t.CharacterItemEquipmentDragonInfoDto=ct,t.CharacterItemEquipmentDto=pt,t.CharacterItemEquipmentEtcOptionDto=rt,t.CharacterItemEquipmentExceptionalOptionDto=nt,t.CharacterItemEquipmentInfoDto=lt,t.CharacterItemEquipmentMechanicInfoDto=ht,t.CharacterItemEquipmentStarforceOptionDto=ot,t.CharacterItemEquipmentTitleDto=ut,t.CharacterItemEquipmentTotalOptionDto=st,t.CharacterLinkSkillDto=mt,t.CharacterLinkSkillInfoDto=dt,t.CharacterListAccountCharacterDto=ft,t.CharacterListAccountDto=_t,t.CharacterListDto=gt,t.CharacterPetEquipmentAutoSkillDto=yt,t.CharacterPetEquipmentDto=bt,t.CharacterPetEquipmentItemDto=Et,t.CharacterPetEquipmentItemOptionDto=wt,t.CharacterPopularityDto=vt,t.CharacterPropensityDto=St,t.CharacterSetEffectDto=Dt,t.CharacterSetEffectInfoDto=kt,t.CharacterSetEffectOptionFullDto=Ct,t.CharacterSetEffectSetDto=It,t.CharacterSkillDto=xt,t.CharacterSkillInfoDto=Pt,t.CharacterStatDto=Ot,t.CharacterSymbolEquipmentDto=At,t.CharacterSymbolEquipmentInfoDto=Nt,t.CharacterVMatrixCodeEquipmentDto=Lt,t.CharacterVMatrixDto=Rt,t.CubeHistoryDto=Gt,t.CubeHistoryResponseDto=Ft,t.CubeResultOptionDto=Mt,t.DojangRankingDto=le,t.DojangRankingResponseDto=he,t.EventNoticeDetailDto=Jt,t.EventNoticeListDto=te,t.EventNoticeListItemDto=Kt,t.GuildBasicDto=Bt,t.GuildDto=Ut,t.GuildRankingDto=ue,t.GuildRankingResponseDto=pe,t.GuildSkillDto=qt,t.InspectionInfoDto=Wt,t.MapleStoryApi=Ae,t.MapleStoryApiError=xe,t.NoticeDetailDto=ee,t.NoticeListDto=ae,t.NoticeListItemDto=ie,t.OverallRankingDto=de,t.OverallRankingResponseDto=me,t.PotentialHistoryDto=Ht,t.PotentialHistoryResponseDto=jt,t.PotentialResultOptionDto=$t,t.StarforceEventDto=Yt,t.StarforceHistoryDto=zt,t.StarforceHistoryResponseDto=Vt,t.TheSeedRankingDto=fe,t.TheSeedRankingResponseDto=_e,t.UnionArtifactCrystalDto=we,t.UnionArtifactDto=be,t.UnionArtifactEffectDto=Ee,t.UnionDto=ve,t.UnionRaiderBlockControlPointDto=ke,t.UnionRaiderBlockDto=Ce,t.UnionRaiderBlockPositionDto=Se,t.UnionRaiderDto=Pe,t.UnionRaiderInnerStatDto=Ie,t.UnionRaiderPresetDto=De,t.UnionRankingDto=ge,t.UnionRankingResponseDto=ye,t.UpdateNoticeDetailDto=re,t.UpdateNoticeListDto=oe,t.UpdateNoticeListItemDto=ne,t.potentialOptionGradeFromString=Tt}));
10
+ !function(t){const e=l,i=g,a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=o,t.SlowBuffer=function(t){+t!=t&&(t=0);return o.alloc(+t)},t.INSPECT_MAX_BYTES=50;const r=2147483647;function n(t){if(t>r)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new Uint8Array(t);return Object.setPrototypeOf(e,o.prototype),e}function o(t,e,i){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return h(t)}return s(t,e,i)}function s(t,e,i){if("string"==typeof t)return function(t,e){"string"==typeof e&&""!==e||(e="utf8");if(!o.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const i=0|m(t,e);let a=n(i);const r=a.write(t,e);r!==i&&(a=a.slice(0,r));return a}(t,e);if(ArrayBuffer.isView(t))return function(t){if(Q(t,Uint8Array)){const e=new Uint8Array(t);return p(e.buffer,e.byteOffset,e.byteLength)}return u(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(Q(t,ArrayBuffer)||t&&Q(t.buffer,ArrayBuffer))return p(t,e,i);if("undefined"!=typeof SharedArrayBuffer&&(Q(t,SharedArrayBuffer)||t&&Q(t.buffer,SharedArrayBuffer)))return p(t,e,i);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');const a=t.valueOf&&t.valueOf();if(null!=a&&a!==t)return o.from(a,e,i);const r=function(t){if(o.isBuffer(t)){const e=0|d(t.length),i=n(e);return 0===i.length||t.copy(i,0,0,e),i}if(void 0!==t.length)return"number"!=typeof t.length||Z(t.length)?n(0):u(t);if("Buffer"===t.type&&Array.isArray(t.data))return u(t.data)}(t);if(r)return r;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return o.from(t[Symbol.toPrimitive]("string"),e,i);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function c(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function h(t){return c(t),n(t<0?0:0|d(t))}function u(t){const e=t.length<0?0:0|d(t.length),i=n(e);for(let a=0;a<e;a+=1)i[a]=255&t[a];return i}function p(t,e,i){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(i||0))throw new RangeError('"length" is outside of buffer bounds');let a;return a=void 0===e&&void 0===i?new Uint8Array(t):void 0===i?new Uint8Array(t,e):new Uint8Array(t,e,i),Object.setPrototypeOf(a,o.prototype),a}function d(t){if(t>=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return 0|t}function m(t,e){if(o.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||Q(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);const i=t.length,a=arguments.length>2&&!0===arguments[2];if(!a&&0===i)return 0;let r=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":return z(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return V(t).length;default:if(r)return a?-1:z(t).length;e=(""+e).toLowerCase(),r=!0}}function f(t,e,i){let a=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if((i>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return O(this,e,i);case"utf8":case"utf-8":return I(this,e,i);case"ascii":return P(this,e,i);case"latin1":case"binary":return x(this,e,i);case"base64":return C(this,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,e,i);default:if(a)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),a=!0}}function _(t,e,i){const a=t[e];t[e]=t[i],t[i]=a}function y(t,e,i,a,r){if(0===t.length)return-1;if("string"==typeof i?(a=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),Z(i=+i)&&(i=r?0:t.length-1),i<0&&(i=t.length+i),i>=t.length){if(r)return-1;i=t.length-1}else if(i<0){if(!r)return-1;i=0}if("string"==typeof e&&(e=o.from(e,a)),o.isBuffer(e))return 0===e.length?-1:w(t,e,i,a,r);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,e,i):Uint8Array.prototype.lastIndexOf.call(t,e,i):w(t,[e],i,a,r);throw new TypeError("val must be string, number or Buffer")}function w(t,e,i,a,r){let n,o=1,s=t.length,c=e.length;if(void 0!==a&&("ucs2"===(a=String(a).toLowerCase())||"ucs-2"===a||"utf16le"===a||"utf-16le"===a)){if(t.length<2||e.length<2)return-1;o=2,s/=2,c/=2,i/=2}function l(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(r){let a=-1;for(n=i;n<s;n++)if(l(t,n)===l(e,-1===a?0:n-a)){if(-1===a&&(a=n),n-a+1===c)return a*o}else-1!==a&&(n-=n-a),a=-1}else for(i+c>s&&(i=s-c),n=i;n>=0;n--){let i=!0;for(let a=0;a<c;a++)if(l(t,n+a)!==l(e,a)){i=!1;break}if(i)return n}return-1}function E(t,e,i,a){i=Number(i)||0;const r=t.length-i;a?(a=Number(a))>r&&(a=r):a=r;const n=e.length;let o;for(a>n/2&&(a=n/2),o=0;o<a;++o){const a=parseInt(e.substr(2*o,2),16);if(Z(a))return o;t[i+o]=a}return o}function b(t,e,i,a){return W(z(e,t.length-i),t,i,a)}function v(t,e,i,a){return W(function(t){const e=[];for(let i=0;i<t.length;++i)e.push(255&t.charCodeAt(i));return e}(e),t,i,a)}function S(t,e,i,a){return W(V(e),t,i,a)}function k(t,e,i,a){return W(function(t,e){let i,a,r;const n=[];for(let o=0;o<t.length&&!((e-=2)<0);++o)i=t.charCodeAt(o),a=i>>8,r=i%256,n.push(r),n.push(a);return n}(e,t.length-i),t,i,a)}function C(t,i,a){return 0===i&&a===t.length?e.fromByteArray(t):e.fromByteArray(t.slice(i,a))}function I(t,e,i){i=Math.min(t.length,i);const a=[];let r=e;for(;r<i;){const e=t[r];let n=null,o=e>239?4:e>223?3:e>191?2:1;if(r+o<=i){let i,a,s,c;switch(o){case 1:e<128&&(n=e);break;case 2:i=t[r+1],128==(192&i)&&(c=(31&e)<<6|63&i,c>127&&(n=c));break;case 3:i=t[r+1],a=t[r+2],128==(192&i)&&128==(192&a)&&(c=(15&e)<<12|(63&i)<<6|63&a,c>2047&&(c<55296||c>57343)&&(n=c));break;case 4:i=t[r+1],a=t[r+2],s=t[r+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(c=(15&e)<<18|(63&i)<<12|(63&a)<<6|63&s,c>65535&&c<1114112&&(n=c))}}null===n?(n=65533,o=1):n>65535&&(n-=65536,a.push(n>>>10&1023|55296),n=56320|1023&n),a.push(n),r+=o}return function(t){const e=t.length;if(e<=D)return String.fromCharCode.apply(String,t);let i="",a=0;for(;a<e;)i+=String.fromCharCode.apply(String,t.slice(a,a+=D));return i}(a)}t.kMaxLength=r,o.TYPED_ARRAY_SUPPORT=function(){try{const t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),o.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}}),o.poolSize=8192,o.from=function(t,e,i){return s(t,e,i)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array),o.alloc=function(t,e,i){return function(t,e,i){return c(t),t<=0?n(t):void 0!==e?"string"==typeof i?n(t).fill(e,i):n(t).fill(e):n(t)}(t,e,i)},o.allocUnsafe=function(t){return h(t)},o.allocUnsafeSlow=function(t){return h(t)},o.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==o.prototype},o.compare=function(t,e){if(Q(t,Uint8Array)&&(t=o.from(t,t.offset,t.byteLength)),Q(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),!o.isBuffer(t)||!o.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;let i=t.length,a=e.length;for(let r=0,n=Math.min(i,a);r<n;++r)if(t[r]!==e[r]){i=t[r],a=e[r];break}return i<a?-1:a<i?1:0},o.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return o.alloc(0);let i;if(void 0===e)for(e=0,i=0;i<t.length;++i)e+=t[i].length;const a=o.allocUnsafe(e);let r=0;for(i=0;i<t.length;++i){let e=t[i];if(Q(e,Uint8Array))r+e.length>a.length?(o.isBuffer(e)||(e=o.from(e)),e.copy(a,r)):Uint8Array.prototype.set.call(a,e,r);else{if(!o.isBuffer(e))throw new TypeError('"list" argument must be an Array of Buffers');e.copy(a,r)}r+=e.length}return a},o.byteLength=m,o.prototype._isBuffer=!0,o.prototype.swap16=function(){const t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;e<t;e+=2)_(this,e,e+1);return this},o.prototype.swap32=function(){const t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let e=0;e<t;e+=4)_(this,e,e+3),_(this,e+1,e+2);return this},o.prototype.swap64=function(){const t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let e=0;e<t;e+=8)_(this,e,e+7),_(this,e+1,e+6),_(this,e+2,e+5),_(this,e+3,e+4);return this},o.prototype.toString=function(){const t=this.length;return 0===t?"":0===arguments.length?I(this,0,t):f.apply(this,arguments)},o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(t){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===o.compare(this,t)},o.prototype.inspect=function(){let e="";const i=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,i).replace(/(.{2})/g,"$1 ").trim(),this.length>i&&(e+=" ... "),"<Buffer "+e+">"},a&&(o.prototype[a]=o.prototype.inspect),o.prototype.compare=function(t,e,i,a,r){if(Q(t,Uint8Array)&&(t=o.from(t,t.offset,t.byteLength)),!o.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===i&&(i=t?t.length:0),void 0===a&&(a=0),void 0===r&&(r=this.length),e<0||i>t.length||a<0||r>this.length)throw new RangeError("out of range index");if(a>=r&&e>=i)return 0;if(a>=r)return-1;if(e>=i)return 1;if(this===t)return 0;let n=(r>>>=0)-(a>>>=0),s=(i>>>=0)-(e>>>=0);const c=Math.min(n,s),l=this.slice(a,r),h=t.slice(e,i);for(let t=0;t<c;++t)if(l[t]!==h[t]){n=l[t],s=h[t];break}return n<s?-1:s<n?1:0},o.prototype.includes=function(t,e,i){return-1!==this.indexOf(t,e,i)},o.prototype.indexOf=function(t,e,i){return y(this,t,e,i,!0)},o.prototype.lastIndexOf=function(t,e,i){return y(this,t,e,i,!1)},o.prototype.write=function(t,e,i,a){if(void 0===e)a="utf8",i=this.length,e=0;else if(void 0===i&&"string"==typeof e)a=e,i=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(i)?(i>>>=0,void 0===a&&(a="utf8")):(a=i,i=void 0)}const r=this.length-e;if((void 0===i||i>r)&&(i=r),t.length>0&&(i<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");a||(a="utf8");let n=!1;for(;;)switch(a){case"hex":return E(this,t,e,i);case"utf8":case"utf-8":return b(this,t,e,i);case"ascii":case"latin1":case"binary":return v(this,t,e,i);case"base64":return S(this,t,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,t,e,i);default:if(n)throw new TypeError("Unknown encoding: "+a);a=(""+a).toLowerCase(),n=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const D=4096;function P(t,e,i){let a="";i=Math.min(t.length,i);for(let r=e;r<i;++r)a+=String.fromCharCode(127&t[r]);return a}function x(t,e,i){let a="";i=Math.min(t.length,i);for(let r=e;r<i;++r)a+=String.fromCharCode(t[r]);return a}function O(t,e,i){const a=t.length;(!e||e<0)&&(e=0),(!i||i<0||i>a)&&(i=a);let r="";for(let a=e;a<i;++a)r+=X[t[a]];return r}function N(t,e,i){const a=t.slice(e,i);let r="";for(let t=0;t<a.length-1;t+=2)r+=String.fromCharCode(a[t]+256*a[t+1]);return r}function A(t,e,i){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>i)throw new RangeError("Trying to access beyond buffer length")}function L(t,e,i,a,r,n){if(!o.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||e<n)throw new RangeError('"value" argument is out of bounds');if(i+a>t.length)throw new RangeError("Index out of range")}function R(t,e,i,a,r){$(e,a,r,t,i,7);let n=Number(e&BigInt(4294967295));t[i++]=n,n>>=8,t[i++]=n,n>>=8,t[i++]=n,n>>=8,t[i++]=n;let o=Number(e>>BigInt(32)&BigInt(4294967295));return t[i++]=o,o>>=8,t[i++]=o,o>>=8,t[i++]=o,o>>=8,t[i++]=o,i}function q(t,e,i,a,r){$(e,a,r,t,i,7);let n=Number(e&BigInt(4294967295));t[i+7]=n,n>>=8,t[i+6]=n,n>>=8,t[i+5]=n,n>>=8,t[i+4]=n;let o=Number(e>>BigInt(32)&BigInt(4294967295));return t[i+3]=o,o>>=8,t[i+2]=o,o>>=8,t[i+1]=o,o>>=8,t[i]=o,i+8}function B(t,e,i,a,r,n){if(i+a>t.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function U(t,e,a,r,n){return e=+e,a>>>=0,n||B(t,0,a,4),i.write(t,e,a,r,23,4),a+4}function T(t,e,a,r,n){return e=+e,a>>>=0,n||B(t,0,a,8),i.write(t,e,a,r,52,8),a+8}o.prototype.slice=function(t,e){const i=this.length;(t=~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),(e=void 0===e?i:~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),e<t&&(e=t);const a=this.subarray(t,e);return Object.setPrototypeOf(a,o.prototype),a},o.prototype.readUintLE=o.prototype.readUIntLE=function(t,e,i){t>>>=0,e>>>=0,i||A(t,e,this.length);let a=this[t],r=1,n=0;for(;++n<e&&(r*=256);)a+=this[t+n]*r;return a},o.prototype.readUintBE=o.prototype.readUIntBE=function(t,e,i){t>>>=0,e>>>=0,i||A(t,e,this.length);let a=this[t+--e],r=1;for(;e>0&&(r*=256);)a+=this[t+--e]*r;return a},o.prototype.readUint8=o.prototype.readUInt8=function(t,e){return t>>>=0,e||A(t,1,this.length),this[t]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(t,e){return t>>>=0,e||A(t,2,this.length),this[t]|this[t+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(t,e){return t>>>=0,e||A(t,2,this.length),this[t]<<8|this[t+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(t,e){return t>>>=0,e||A(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(t,e){return t>>>=0,e||A(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},o.prototype.readBigUInt64LE=J((function(t){H(t>>>=0,"offset");const e=this[t],i=this[t+7];void 0!==e&&void 0!==i||j(t,this.length-8);const a=e+256*this[++t]+65536*this[++t]+this[++t]*2**24,r=this[++t]+256*this[++t]+65536*this[++t]+i*2**24;return BigInt(a)+(BigInt(r)<<BigInt(32))})),o.prototype.readBigUInt64BE=J((function(t){H(t>>>=0,"offset");const e=this[t],i=this[t+7];void 0!==e&&void 0!==i||j(t,this.length-8);const a=e*2**24+65536*this[++t]+256*this[++t]+this[++t],r=this[++t]*2**24+65536*this[++t]+256*this[++t]+i;return(BigInt(a)<<BigInt(32))+BigInt(r)})),o.prototype.readIntLE=function(t,e,i){t>>>=0,e>>>=0,i||A(t,e,this.length);let a=this[t],r=1,n=0;for(;++n<e&&(r*=256);)a+=this[t+n]*r;return r*=128,a>=r&&(a-=Math.pow(2,8*e)),a},o.prototype.readIntBE=function(t,e,i){t>>>=0,e>>>=0,i||A(t,e,this.length);let a=e,r=1,n=this[t+--a];for(;a>0&&(r*=256);)n+=this[t+--a]*r;return r*=128,n>=r&&(n-=Math.pow(2,8*e)),n},o.prototype.readInt8=function(t,e){return t>>>=0,e||A(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},o.prototype.readInt16LE=function(t,e){t>>>=0,e||A(t,2,this.length);const i=this[t]|this[t+1]<<8;return 32768&i?4294901760|i:i},o.prototype.readInt16BE=function(t,e){t>>>=0,e||A(t,2,this.length);const i=this[t+1]|this[t]<<8;return 32768&i?4294901760|i:i},o.prototype.readInt32LE=function(t,e){return t>>>=0,e||A(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},o.prototype.readInt32BE=function(t,e){return t>>>=0,e||A(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},o.prototype.readBigInt64LE=J((function(t){H(t>>>=0,"offset");const e=this[t],i=this[t+7];void 0!==e&&void 0!==i||j(t,this.length-8);const a=this[t+4]+256*this[t+5]+65536*this[t+6]+(i<<24);return(BigInt(a)<<BigInt(32))+BigInt(e+256*this[++t]+65536*this[++t]+this[++t]*2**24)})),o.prototype.readBigInt64BE=J((function(t){H(t>>>=0,"offset");const e=this[t],i=this[t+7];void 0!==e&&void 0!==i||j(t,this.length-8);const a=(e<<24)+65536*this[++t]+256*this[++t]+this[++t];return(BigInt(a)<<BigInt(32))+BigInt(this[++t]*2**24+65536*this[++t]+256*this[++t]+i)})),o.prototype.readFloatLE=function(t,e){return t>>>=0,e||A(t,4,this.length),i.read(this,t,!0,23,4)},o.prototype.readFloatBE=function(t,e){return t>>>=0,e||A(t,4,this.length),i.read(this,t,!1,23,4)},o.prototype.readDoubleLE=function(t,e){return t>>>=0,e||A(t,8,this.length),i.read(this,t,!0,52,8)},o.prototype.readDoubleBE=function(t,e){return t>>>=0,e||A(t,8,this.length),i.read(this,t,!1,52,8)},o.prototype.writeUintLE=o.prototype.writeUIntLE=function(t,e,i,a){if(t=+t,e>>>=0,i>>>=0,!a){L(this,t,e,i,Math.pow(2,8*i)-1,0)}let r=1,n=0;for(this[e]=255&t;++n<i&&(r*=256);)this[e+n]=t/r&255;return e+i},o.prototype.writeUintBE=o.prototype.writeUIntBE=function(t,e,i,a){if(t=+t,e>>>=0,i>>>=0,!a){L(this,t,e,i,Math.pow(2,8*i)-1,0)}let r=i-1,n=1;for(this[e+r]=255&t;--r>=0&&(n*=256);)this[e+r]=t/n&255;return e+i},o.prototype.writeUint8=o.prototype.writeUInt8=function(t,e,i){return t=+t,e>>>=0,i||L(this,t,e,1,255,0),this[e]=255&t,e+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(t,e,i){return t=+t,e>>>=0,i||L(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(t,e,i){return t=+t,e>>>=0,i||L(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(t,e,i){return t=+t,e>>>=0,i||L(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(t,e,i){return t=+t,e>>>=0,i||L(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},o.prototype.writeBigUInt64LE=J((function(t,e=0){return R(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),o.prototype.writeBigUInt64BE=J((function(t,e=0){return q(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),o.prototype.writeIntLE=function(t,e,i,a){if(t=+t,e>>>=0,!a){const a=Math.pow(2,8*i-1);L(this,t,e,i,a-1,-a)}let r=0,n=1,o=0;for(this[e]=255&t;++r<i&&(n*=256);)t<0&&0===o&&0!==this[e+r-1]&&(o=1),this[e+r]=(t/n|0)-o&255;return e+i},o.prototype.writeIntBE=function(t,e,i,a){if(t=+t,e>>>=0,!a){const a=Math.pow(2,8*i-1);L(this,t,e,i,a-1,-a)}let r=i-1,n=1,o=0;for(this[e+r]=255&t;--r>=0&&(n*=256);)t<0&&0===o&&0!==this[e+r+1]&&(o=1),this[e+r]=(t/n|0)-o&255;return e+i},o.prototype.writeInt8=function(t,e,i){return t=+t,e>>>=0,i||L(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},o.prototype.writeInt16LE=function(t,e,i){return t=+t,e>>>=0,i||L(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},o.prototype.writeInt16BE=function(t,e,i){return t=+t,e>>>=0,i||L(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},o.prototype.writeInt32LE=function(t,e,i){return t=+t,e>>>=0,i||L(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},o.prototype.writeInt32BE=function(t,e,i){return t=+t,e>>>=0,i||L(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},o.prototype.writeBigInt64LE=J((function(t,e=0){return R(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),o.prototype.writeBigInt64BE=J((function(t,e=0){return q(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),o.prototype.writeFloatLE=function(t,e,i){return U(this,t,e,!0,i)},o.prototype.writeFloatBE=function(t,e,i){return U(this,t,e,!1,i)},o.prototype.writeDoubleLE=function(t,e,i){return T(this,t,e,!0,i)},o.prototype.writeDoubleBE=function(t,e,i){return T(this,t,e,!1,i)},o.prototype.copy=function(t,e,i,a){if(!o.isBuffer(t))throw new TypeError("argument should be a Buffer");if(i||(i=0),a||0===a||(a=this.length),e>=t.length&&(e=t.length),e||(e=0),a>0&&a<i&&(a=i),a===i)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("Index out of range");if(a<0)throw new RangeError("sourceEnd out of bounds");a>this.length&&(a=this.length),t.length-e<a-i&&(a=t.length-e+i);const r=a-i;return this===t&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,i,a):Uint8Array.prototype.set.call(t,this.subarray(i,a),e),r},o.prototype.fill=function(t,e,i,a){if("string"==typeof t){if("string"==typeof e?(a=e,e=0,i=this.length):"string"==typeof i&&(a=i,i=this.length),void 0!==a&&"string"!=typeof a)throw new TypeError("encoding must be a string");if("string"==typeof a&&!o.isEncoding(a))throw new TypeError("Unknown encoding: "+a);if(1===t.length){const e=t.charCodeAt(0);("utf8"===a&&e<128||"latin1"===a)&&(t=e)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<i)throw new RangeError("Out of range index");if(i<=e)return this;let r;if(e>>>=0,i=void 0===i?this.length:i>>>0,t||(t=0),"number"==typeof t)for(r=e;r<i;++r)this[r]=t;else{const n=o.isBuffer(t)?t:o.from(t,a),s=n.length;if(0===s)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(r=0;r<i-e;++r)this[r+e]=n[r%s]}return this};const F={};function M(t,e,i){F[t]=class extends i{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(t){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:t,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}function G(t){let e="",i=t.length;const a="-"===t[0]?1:0;for(;i>=a+4;i-=3)e=`_${t.slice(i-3,i)}${e}`;return`${t.slice(0,i)}${e}`}function $(t,e,i,a,r,n){if(t>i||t<e){const a="bigint"==typeof e?"n":"";let r;throw r=n>3?0===e||e===BigInt(0)?`>= 0${a} and < 2${a} ** ${8*(n+1)}${a}`:`>= -(2${a} ** ${8*(n+1)-1}${a}) and < 2 ** ${8*(n+1)-1}${a}`:`>= ${e}${a} and <= ${i}${a}`,new F.ERR_OUT_OF_RANGE("value",r,t)}!function(t,e,i){H(e,"offset"),void 0!==t[e]&&void 0!==t[e+i]||j(e,t.length-(i+1))}(a,r,n)}function H(t,e){if("number"!=typeof t)throw new F.ERR_INVALID_ARG_TYPE(e,"number",t)}function j(t,e,i){if(Math.floor(t)!==t)throw H(t,i),new F.ERR_OUT_OF_RANGE(i||"offset","an integer",t);if(e<0)throw new F.ERR_BUFFER_OUT_OF_BOUNDS;throw new F.ERR_OUT_OF_RANGE(i||"offset",`>= ${i?1:0} and <= ${e}`,t)}M("ERR_BUFFER_OUT_OF_BOUNDS",(function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),M("ERR_INVALID_ARG_TYPE",(function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`}),TypeError),M("ERR_OUT_OF_RANGE",(function(t,e,i){let a=`The value of "${t}" is out of range.`,r=i;return Number.isInteger(i)&&Math.abs(i)>2**32?r=G(String(i)):"bigint"==typeof i&&(r=String(i),(i>BigInt(2)**BigInt(32)||i<-(BigInt(2)**BigInt(32)))&&(r=G(r)),r+="n"),a+=` It must be ${e}. Received ${r}`,a}),RangeError);const Y=/[^+/0-9A-Za-z-_]/g;function z(t,e){let i;e=e||1/0;const a=t.length;let r=null;const n=[];for(let o=0;o<a;++o){if(i=t.charCodeAt(o),i>55295&&i<57344){if(!r){if(i>56319){(e-=3)>-1&&n.push(239,191,189);continue}if(o+1===a){(e-=3)>-1&&n.push(239,191,189);continue}r=i;continue}if(i<56320){(e-=3)>-1&&n.push(239,191,189),r=i;continue}i=65536+(r-55296<<10|i-56320)}else r&&(e-=3)>-1&&n.push(239,191,189);if(r=null,i<128){if((e-=1)<0)break;n.push(i)}else if(i<2048){if((e-=2)<0)break;n.push(i>>6|192,63&i|128)}else if(i<65536){if((e-=3)<0)break;n.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;n.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return n}function V(t){return e.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(Y,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function W(t,e,i,a){let r;for(r=0;r<a&&!(r+i>=e.length||r>=t.length);++r)e[r+i]=t[r];return r}function Q(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function Z(t){return t!=t}const X=function(){const t="0123456789abcdef",e=new Array(256);for(let i=0;i<16;++i){const a=16*i;for(let r=0;r<16;++r)e[a+r]=t[i]+t[r]}return e}();function J(t){return"undefined"==typeof BigInt?K:t}function K(){throw new Error("BigInt not supported")}}(c);var y={exports:{}};!function(t){var e,i;t.exports=(e={year:0,month:1,day:2,hour:3,minute:4,second:5},i={},function(t,a,r){var n,o=function(t,e,a){void 0===a&&(a={});var r=new Date(t),n=function(t,e){void 0===e&&(e={});var a=e.timeZoneName||"short",r=t+"|"+a,n=i[r];return n||(n=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:a}),i[r]=n),n}(e,a);return n.formatToParts(r)},s=function(t,i){for(var a=o(t,i),n=[],s=0;s<a.length;s+=1){var c=a[s],l=c.type,h=c.value,u=e[l];u>=0&&(n[u]=parseInt(h,10))}var p=n[3],d=24===p?0:p,m=n[0]+"-"+n[1]+"-"+n[2]+" "+d+":"+n[4]+":"+n[5]+":000",f=+t;return(r.utc(m).valueOf()-(f-=f%1e3))/6e4},c=a.prototype;c.tz=function(t,e){void 0===t&&(t=n);var i,a=this.utcOffset(),o=this.toDate(),s=o.toLocaleString("en-US",{timeZone:t}),c=Math.round((o-new Date(s))/1e3/60),l=15*-Math.round(o.getTimezoneOffset()/15)-c;if(Number(l)){if(i=r(s,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(l,!0),e){var h=i.utcOffset();i=i.add(a-h,"minute")}}else i=this.utcOffset(0,e);return i.$x.$timezone=t,i},c.offsetName=function(t){var e=this.$x.$timezone||r.tz.guess(),i=o(this.valueOf(),e,{timeZoneName:t}).find((function(t){return"timezonename"===t.type.toLowerCase()}));return i&&i.value};var l=c.startOf;c.startOf=function(t,e){if(!this.$x||!this.$x.$timezone)return l.call(this,t,e);var i=r(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return l.call(i,t,e).tz(this.$x.$timezone,!0)},r.tz=function(t,e,i){var a=i&&e,o=i||e||n,c=s(+r(),o);if("string"!=typeof t)return r(t).tz(o);var l=function(t,e,i){var a=t-60*e*1e3,r=s(a,i);if(e===r)return[a,e];var n=s(a-=60*(r-e)*1e3,i);return r===n?[a,r]:[t-60*Math.min(r,n)*1e3,Math.max(r,n)]}(r.utc(t,a).valueOf(),c,o),h=l[0],u=l[1],p=r(h).utcOffset(u);return p.$x.$timezone=o,p},r.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},r.tz.setDefault=function(t){n=t}})}(y);var w=y.exports,E={exports:{}};!function(t){t.exports=function(){var t="minute",e=/[+-]\d\d(?::?\d\d)?/g,i=/([+-]|\d\d)/g;return function(a,r,n){var o=r.prototype;n.utc=function(t){return new r({date:t,utc:!0,args:arguments})},o.utc=function(e){var i=n(this.toDate(),{locale:this.$L,utc:!0});return e?i.add(this.utcOffset(),t):i},o.local=function(){return n(this.toDate(),{locale:this.$L,utc:!1})};var s=o.parse;o.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),s.call(this,t)};var c=o.init;o.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else c.call(this)};var l=o.utcOffset;o.utcOffset=function(a,r){var n=this.$utils().u;if(n(a))return this.$u?0:n(this.$offset)?l.call(this):this.$offset;if("string"==typeof a&&(a=function(t){void 0===t&&(t="");var a=t.match(e);if(!a)return null;var r=(""+a[0]).match(i)||["-",0,0],n=r[0],o=60*+r[1]+ +r[2];return 0===o?0:"+"===n?o:-o}(a),null===a))return this;var o=Math.abs(a)<=16?60*a:a,s=this;if(r)return s.$offset=o,s.$u=0===a,s;if(0!==a){var c=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(o+c,t)).$offset=o,s.$x.$localOffset=c}else s=this.utc();return s};var h=o.format;o.format=function(t){var e=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return h.call(this,e)},o.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},o.isUTC=function(){return!!this.$u},o.toISOString=function(){return this.toDate().toISOString()},o.toString=function(){return this.toDate().toUTCString()};var u=o.toDate;o.toDate=function(t){return"s"===t&&this.$offset?n(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():u.call(this)};var p=o.diff;o.diff=function(t,e,i){if(t&&this.$u===t.$u)return p.call(this,t,e,i);var a=this.local(),r=n(t).local();return p.call(a,r,e,i)}}}()}(E);var b,v,S,k,C=E.exports;class I{abilityNo;abilityGrade;abilityValue;constructor(t){const{ability_no:e,ability_grade:i,ability_value:a}=t;this.abilityNo=e,this.abilityGrade=i,this.abilityValue=a}}class D{abilityPresetGrade;abilityInfo;constructor(t){const{ability_preset_grade:e,ability_info:i}=t;this.abilityPresetGrade=e,this.abilityInfo=i.map((t=>new I(t)))}}class P{date;abilityGrade;abilityInfo;remainFame;presetNo;abilityPreset1;abilityPreset2;abilityPreset3;constructor(t){const{date:e,ability_grade:i,ability_info:a,remain_fame:r,preset_no:n,ability_preset_1:o,ability_preset_2:s,ability_preset_3:c}=t;this.date=e?new Date(e):null,this.abilityGrade=i,this.abilityInfo=a.map((t=>new I(t))),this.remainFame=r,this.presetNo=n,this.abilityPreset1=o?new D(o):null,this.abilityPreset2=s?new D(s):null,this.abilityPreset3=c?new D(c):null}}class x{colorRange;hue;saturation;value;constructor(t){const{color_range:e,hue:i,saturation:a,value:r}=t;this.colorRange=e,this.hue=i,this.saturation=a,this.value=r}}class O{optionType;optionValue;constructor(t){const{option_type:e,option_value:i}=t;this.optionType=e,this.optionValue=i}}class N{cashItemEquipmentPart;cashItemEquipmentSlot;cashItemName;cashItemIcon;cashItemDescription;cashItemOption;dateExpire;dateOptionExpire;cashItemLabel;cashItemColoringPrism;constructor(t){const{cash_item_equipment_part:e,cash_item_equipment_slot:i,cash_item_name:a,cash_item_icon:r,cash_item_description:n,cash_item_option:o,date_expire:s,date_option_expire:c,cash_item_label:l,cash_item_coloring_prism:h}=t;this.cashItemEquipmentPart=e,this.cashItemEquipmentSlot=i,this.cashItemName=a,this.cashItemIcon=r,this.cashItemDescription=n,this.cashItemOption=o.map((t=>new O(t))),this.dateExpire=s?new Date(s):null,this.dateOptionExpire=c?new Date(c):null,this.cashItemLabel=l,this.cashItemColoringPrism=h?new x(h):null}}class A{faceName;baseColor;mixColor;mixRate;constructor(t){const{face_name:e,base_color:i,mix_color:a,mix_rate:r}=t;this.faceName=e,this.baseColor=i,this.mixColor=a,this.mixRate=r}}class L{hairName;baseColor;mixColor;mixRate;constructor(t){const{hair_name:e,base_color:i,mix_color:a,mix_rate:r}=t;this.hairName=e,this.baseColor=i,this.mixColor=a,this.mixRate=r}}class R{skinName;colorStyle;hue;saturation;brightness;constructor(t){const{skin_name:e,color_style:i,hue:a,saturation:r,brightness:n}=t;this.skinName=e,this.colorStyle=i,this.hue=a,this.saturation=r,this.brightness=n}}class q{androidName;androidNickname;androidIcon;androidDescription;androidGender;androidGrade;androidHair;androidFace;androidSkin;androidEarSensorClipFlag;androidNonHumanoidFlag;androidShopUsableFlag;constructor(t){const{android_name:e,android_nickname:i,android_icon:a,android_description:r,android_gender:n,android_grade:o,android_hair:s,android_face:c,android_skin:l,android_ear_sensor_clip_flag:h,android_non_humanoid_flag:u,android_shop_usable_flag:p}=t;this.androidName=e,this.androidNickname=i,this.androidIcon=a,this.androidDescription=r,this.androidGender=n,this.androidGrade=o,this.androidHair=new L(s),this.androidFace=new A(c),this.androidSkin=l?new R(l):null,this.androidEarSensorClipFlag=h,this.androidNonHumanoidFlag=u,this.androidShopUsableFlag=p}}class B{date;androidName;androidNickname;androidIcon;androidDescription;androidHair;androidFace;androidSkin;androidCashItemEquipment;androidEarSensorClipFlag;androidGender;androidGrade;androidNonHumanoidFlag;androidShopUsableFlag;presetNo;androidPreset1;androidPreset2;androidPreset3;constructor(t){const{date:e,android_name:i,android_nickname:a,android_icon:r,android_description:n,android_hair:o,android_face:s,android_skin:c,android_cash_item_equipment:l,android_ear_sensor_clip_flag:h,android_gender:u,android_grade:p,android_non_humanoid_flag:d,android_shop_usable_flag:m,preset_no:f,android_preset_1:_,android_preset_2:g,android_preset_3:y}=t;this.date=e?new Date(e):null,this.androidName=i,this.androidNickname=a,this.androidIcon=r,this.androidDescription=n,this.androidHair=new L(o),this.androidFace=new A(s),this.androidSkin=c?new R(c):null,this.androidCashItemEquipment=l.map((t=>new N(t))),this.androidEarSensorClipFlag=h??null,this.androidGender=u,this.androidGrade=p,this.androidNonHumanoidFlag=d,this.androidShopUsableFlag=m,this.presetNo=f,this.androidPreset1=_?new q(_):null,this.androidPreset2=g?new q(g):null,this.androidPreset3=y?new q(y):null}}class U{date;characterName;worldName;characterGender;characterClass;characterClassLevel;characterLevel;characterExp;characterExpRate;characterGuildName;characterImage;characterDateCreate;accessFlag;liberationQuestClearFlag;constructor(t){const{date:e,character_name:i,world_name:a,character_gender:r,character_class:n,character_class_level:o,character_level:s,character_exp:c,character_exp_rate:l,character_guild_name:h,character_image:u,character_date_create:p,access_flag:d,liberation_quest_clear_flag:m}=t;this.date=e?new Date(e):null,this.characterName=i,this.worldName=a,this.characterGender=r,this.characterClass=n,this.characterClassLevel=o,this.characterLevel=s,this.characterExp=c,this.characterExpRate=l,this.characterGuildName=h,this.characterImage=u,this.characterDateCreate=new Date(p),this.accessFlag=d,this.liberationQuestClearFlag=m}get isAccessFlag(){return"true"===this.accessFlag}get isLiberationQuestClearFlag(){return"true"===this.liberationQuestClearFlag}}class T{faceName;baseColor;mixColor;mixRate;constructor(t){const{face_name:e,base_color:i,mix_color:a,mix_rate:r}=t;this.faceName=e,this.baseColor=i,this.mixColor=a,this.mixRate=r}}class F{hairName;baseColor;mixColor;mixRate;constructor(t){const{hair_name:e,base_color:i,mix_color:a,mix_rate:r}=t;this.hairName=e,this.baseColor=i,this.mixColor=a,this.mixRate=r}}class M{skinName;colorStyle;hue;saturation;brightness;constructor(t){const{skin_name:e,color_style:i,hue:a,saturation:r,brightness:n}=t;this.skinName=e,this.colorStyle=i,this.hue=a,this.saturation=r,this.brightness=n}}class G{date;characterGender;characterClass;characterHair;characterFace;characterSkin;additionalCharacterHair;additionalCharacterFace;additionalCharacterSkin;constructor(t){const{date:e,character_gender:i,character_class:a,character_hair:r,character_face:n,character_skin:o,additional_character_hair:s,additional_character_face:c,additional_character_skin:l}=t;this.date=e?new Date(e):null,this.characterGender=i,this.characterClass=a,this.characterHair=new F(r),this.characterFace=new T(n),this.characterSkin=new M(o),this.additionalCharacterHair=s?new F(s):null,this.additionalCharacterFace=c?new T(c):null,this.additionalCharacterSkin=l?new M(l):null}}class ${colorRange;hue;saturation;value;constructor(t){const{color_range:e,hue:i,saturation:a,value:r}=t;this.colorRange=e,this.hue=i,this.saturation=a,this.value=r}}class H{optionType;optionValue;constructor(t){const{option_type:e,option_value:i}=t;this.optionType=e,this.optionValue=i}}class j{cashItemEquipmentPart;cashItemEquipmentSlot;cashItemName;cashItemIcon;cashItemDescription;cashItemOption;dateExpire;dateOptionExpire;cashItemLabel;cashItemColoringPrism;itemGender;constructor(t){const{cash_item_equipment_part:e,cash_item_equipment_slot:i,cash_item_name:a,cash_item_icon:r,cash_item_description:n,cash_item_option:o,date_expire:s,date_option_expire:c,cash_item_label:l,cash_item_coloring_prism:h,item_gender:u}=t;this.cashItemEquipmentPart=e,this.cashItemEquipmentSlot=i,this.cashItemName=a,this.cashItemIcon=r,this.cashItemDescription=n,this.cashItemOption=o.map((t=>new H(t))),this.dateExpire=s,this.dateOptionExpire=c,this.cashItemLabel=l,this.cashItemColoringPrism=h?new $(h):null,this.itemGender=u}}class Y{date;characterGender;characterClass;characterLookMode;presetNo;cashItemEquipmentBase;cashItemEquipmentPreset1;cashItemEquipmentPreset2;cashItemEquipmentPreset3;additionalCashItemEquipmentBase;additionalCashItemEquipmentPreset1;additionalCashItemEquipmentPreset2;additionalCashItemEquipmentPreset3;constructor(t){const{date:e,character_gender:i,character_class:a,character_look_mode:r,preset_no:n,cash_item_equipment_base:o,cash_item_equipment_preset_1:s,cash_item_equipment_preset_2:c,cash_item_equipment_preset_3:l,additional_cash_item_equipment_base:h,additional_cash_item_equipment_preset_1:u,additional_cash_item_equipment_preset_2:p,additional_cash_item_equipment_preset_3:d}=t;this.date=e?new Date(e):null,this.characterGender=i,this.characterClass=a,this.characterLookMode=r,this.presetNo=n,this.cashItemEquipmentBase=o.map((t=>new j(t))),this.cashItemEquipmentPreset1=s.map((t=>new j(t))),this.cashItemEquipmentPreset2=c.map((t=>new j(t))),this.cashItemEquipmentPreset3=l.map((t=>new j(t))),this.additionalCashItemEquipmentBase=h.map((t=>new j(t))),this.additionalCashItemEquipmentPreset1=u.map((t=>new j(t))),this.additionalCashItemEquipmentPreset2=p.map((t=>new j(t))),this.additionalCashItemEquipmentPreset3=d.map((t=>new j(t)))}}class z{date;characterClass;worldName;dojangBestFloor;dateDojangRecord;dojangBestTime;constructor(t){const{date:e,character_class:i,world_name:a,dojang_best_floor:r,date_dojang_record:n,dojang_best_time:o}=t;this.date=e?new Date(e):null,this.characterClass=i,this.worldName=a,this.dojangBestFloor=r,this.dateDojangRecord=n?new Date(n):null,this.dojangBestTime=o}}class V{ocid;constructor(t){const{ocid:e}=t;this.ocid=e}}class W{hexaSkillId;constructor(t){const{hexa_skill_id:e}=t;this.hexaSkillId=e}}class Q{hexaCoreName;hexaCoreLevel;hexaCoreType;linkedSkill;constructor(t){const{hexa_core_name:e,hexa_core_level:i,hexa_core_type:a,linked_skill:r}=t;this.hexaCoreName=e,this.hexaCoreLevel=i,this.hexaCoreType=a,this.linkedSkill=r.map((t=>new W(t)))}}class Z{date;characterHexaCoreEquipment;constructor(t){const{date:e,character_hexa_core_equipment:i}=t;this.date=e?new Date(e):null,this.characterHexaCoreEquipment=i.map((t=>new Q(t)))}}class X{slotId;mainStatName;subStatName1;subStatName2;mainStatLevel;subStatLevel1;subStatLevel2;statGrade;constructor(t){const{slot_id:e,main_stat_name:i,sub_stat_name_1:a,sub_stat_name_2:r,main_stat_level:n,sub_stat_level_1:o,sub_stat_level_2:s,stat_grade:c}=t;this.slotId=e,this.mainStatName=i,this.subStatName1=a,this.subStatName2=r,this.mainStatLevel=n,this.subStatLevel1=o,this.subStatLevel2=s,this.statGrade=c}}class J{date;characterClass;characterHexaStatCore;characterHexaStatCore2;presetHexaStatCore;presetHexaStatCore2;constructor(t){const{date:e,character_class:i,character_hexa_stat_core:a,character_hexa_stat_core_2:r,preset_hexa_stat_core:n,preset_hexa_stat_core_2:o}=t;this.date=e?new Date(e):null,this.characterClass=i,this.characterHexaStatCore=a.map((t=>new X(t))),this.characterHexaStatCore2=r.map((t=>new X(t))),this.presetHexaStatCore=n.map((t=>new X(t))),this.presetHexaStatCore2=o.map((t=>new X(t)))}}class K{statType;statPoint;statLevel;statIncrease;constructor(t){const{stat_type:e,stat_point:i,stat_level:a,stat_increase:r}=t;this.statType=e,this.statPoint=i,this.statLevel=a,this.statIncrease=r}}class tt{date;characterClass;usePresetNo;useAvailableHyperStat;hyperStatPreset1;hyperStatPreset1RemainPoint;hyperStatPreset2;hyperStatPreset2RemainPoint;hyperStatPreset3;hyperStatPreset3RemainPoint;constructor(t){const{date:e,character_class:i,use_preset_no:a,use_available_hyper_stat:r,hyper_stat_preset_1:n,hyper_stat_preset_1_remain_point:o,hyper_stat_preset_2:s,hyper_stat_preset_2_remain_point:c,hyper_stat_preset_3:l,hyper_stat_preset_3_remain_point:h}=t;this.date=e?new Date(e):null,this.characterClass=i,this.usePresetNo=a,this.useAvailableHyperStat=r,this.hyperStatPreset1=n.map((t=>new K(t))),this.hyperStatPreset1RemainPoint=o,this.hyperStatPreset2=s.map((t=>new K(t))),this.hyperStatPreset2RemainPoint=c,this.hyperStatPreset3=l.map((t=>new K(t))),this.hyperStatPreset3RemainPoint=h}}class et{date;originUrl;originImage;image;action;emotion;wmotion;actionFrame;emotionFrame;width;height;x;y;constructor(t){this.date=t.date,this.originUrl=t.originUrl,this.originImage=t.originImage,this.image=t.image,this.action=t.action,this.emotion=t.emotion,this.wmotion=t.wmotion,this.actionFrame=t.actionFrame,this.emotionFrame=t.emotionFrame,this.width=t.width,this.height=t.height,this.x=t.x,this.y=t.y}}t.CharacterImageAction=void 0,(b=t.CharacterImageAction||(t.CharacterImageAction={})).Stand1="A00",b.Stand2="A01",b.Walk1="A02",b.Walk2="A03",b.Prone="A04",b.Fly="A05",b.Jump="A06",b.Sit="A07",b.Ladder="A08",b.Rope="A09",b.Heal="A10",b.Alert="A11",b.ProneStab="A12",b.SwingO1="A13",b.SwingO2="A14",b.SwingO3="A15",b.SwingOF="A16",b.SwingP1="A17",b.SwingP2="A18",b.SwingPF="A19",b.SwingT1="A20",b.SwingT2="A21",b.SwingT3="A22",b.SwingTF="A23",b.StabO1="A24",b.StabO2="A25",b.StabOF="A26",b.StabT1="A27",b.StabT2="A28",b.StabTF="A29",b.Shoot1="A30",b.Shoot2="A31",b.ShootF="A32",b.Dead="A33",b.GhostWalk="A34",b.GhostStand="A35",b.GhostJump="A36",b.GhostProneStab="A37",b.GhostLadder="A38",b.GhostRope="A39",b.GhostFly="A40",b.GhostSit="A41",t.CharacterImageEmotion=void 0,(v=t.CharacterImageEmotion||(t.CharacterImageEmotion={})).Default="E00",v.Wink="E01",v.Smile="E02",v.Cry="E03",v.Angry="E04",v.Bewildered="E05",v.Blink="E06",v.Blaze="E07",v.Bowing="E08",v.Cheers="E09",v.Chu="E10",v.Dam="E11",v.Despair="E12",v.Glitter="E13",v.Hit="E14",v.Hot="E15",v.Hum="E16",v.Love="E17",v.Oops="E18",v.Pain="E19",v.Troubled="E20",v.QBlue="E21",v.Shine="E22",v.Stunned="E23",v.Vomit="E24",t.CharacterImageWeaponMotion=void 0,(S=t.CharacterImageWeaponMotion||(t.CharacterImageWeaponMotion={})).Default="W00",S.OneHand="W01",S.TwoHands="W02",S.Gun="W03",S.Nothing="W04";class it{str;dex;int;luk;maxHp;maxMp;attackPower;magicPower;armor;speed;jump;bossDamage;damage;allStat;equipmentLevelDecrease;constructor(t){const{str:e,dex:i,int:a,luk:r,max_hp:n,max_mp:o,attack_power:s,magic_power:c,armor:l,speed:h,jump:u,boss_damage:p,damage:d,all_stat:m,equipment_level_decrease:f}=t;this.str=e,this.dex=i,this.int=a,this.luk=r,this.maxHp=n,this.maxMp=o,this.attackPower=s,this.magicPower=c,this.armor=l,this.speed=h,this.jump=u,this.bossDamage=p,this.damage=d,this.allStat=m,this.equipmentLevelDecrease=f}}class at{str;dex;int;luk;maxHp;maxMp;attackPower;magicPower;armor;speed;jump;bossDamage;ignoreMonsterArmor;allStat;maxHpRate;maxMpRate;baseEquipmentLevel;constructor(t){const{str:e,dex:i,int:a,luk:r,max_hp:n,max_mp:o,attack_power:s,magic_power:c,armor:l,speed:h,jump:u,boss_damage:p,ignore_monster_armor:d,all_stat:m,max_hp_rate:f,max_mp_rate:_,base_equipment_level:g}=t;this.str=e,this.dex=i,this.int=a,this.luk=r,this.maxHp=n,this.maxMp=o,this.attackPower=s,this.magicPower=c,this.armor=l,this.speed=h,this.jump=u,this.bossDamage=p,this.ignoreMonsterArmor=d,this.allStat=m,this.maxHpRate=f,this.maxMpRate=_,this.baseEquipmentLevel=g}}class rt{str;dex;int;luk;maxHp;maxMp;attackPower;magicPower;armor;speed;jump;constructor(t){const{str:e,dex:i,int:a,luk:r,max_hp:n,max_mp:o,attack_power:s,magic_power:c,armor:l,speed:h,jump:u}=t;this.str=e,this.dex=i,this.int=a,this.luk=r,this.maxHp=n,this.maxMp=o,this.attackPower=s,this.magicPower=c,this.armor=l,this.speed=h,this.jump=u}}class nt{str;dex;int;luk;maxHp;maxMp;attackPower;magicPower;exceptionalUpgrade;constructor(t){const{str:e,dex:i,int:a,luk:r,max_hp:n,max_mp:o,attack_power:s,magic_power:c,exceptional_upgrade:l}=t;this.str=e,this.dex=i,this.int=a,this.luk=r,this.maxHp=n,this.maxMp=o,this.attackPower=s,this.magicPower=c,this.exceptionalUpgrade=l}}class ot{str;dex;int;luk;maxHp;maxMp;attackPower;magicPower;armor;speed;jump;constructor(t){const{str:e,dex:i,int:a,luk:r,max_hp:n,max_mp:o,attack_power:s,magic_power:c,armor:l,speed:h,jump:u}=t;this.str=e,this.dex=i,this.int=a,this.luk=r,this.maxHp=n,this.maxMp=o,this.attackPower=s,this.magicPower=c,this.armor=l,this.speed=h,this.jump=u}}class st{str;dex;int;luk;maxHp;maxMp;attackPower;magicPower;armor;speed;jump;bossDamage;ignoreMonsterArmor;allStat;damage;equipmentLevelDecrease;maxHpRate;maxMpRate;constructor(t){const{str:e,dex:i,int:a,luk:r,max_hp:n,max_mp:o,attack_power:s,magic_power:c,armor:l,speed:h,jump:u,boss_damage:p,ignore_monster_armor:d,all_stat:m,damage:f,equipment_level_decrease:_,max_hp_rate:g,max_mp_rate:y}=t;this.str=e,this.dex=i,this.int=a,this.luk=r,this.maxHp=n,this.maxMp=o,this.attackPower=s,this.magicPower=c,this.armor=l,this.speed=h,this.jump=u,this.bossDamage=p,this.ignoreMonsterArmor=d,this.allStat=m,this.damage=f,this.equipmentLevelDecrease=_,this.maxHpRate=g,this.maxMpRate=y}}class ct{itemEquipmentPart;itemEquipmentSlot;itemName;itemIcon;itemDescription;itemShapeName;itemShapeIcon;itemGender;itemTotalOption;itemBaseOption;equipmentLevelIncrease;itemExceptionalOption;itemAddOption;growthExp;growthLevel;scrollUpgrade;cuttableCount;goldenHammerFlag;scrollResilienceCount;scrollUpgradeableCount;soulName;soulOption;itemEtcOption;starforce;starforceScrollFlag;itemStarforceOption;specialRingLevel;dateExpire;constructor(t){const{item_equipment_part:e,item_equipment_slot:i,item_name:a,item_icon:r,item_description:n,item_shape_name:o,item_shape_icon:s,item_gender:c,item_total_option:l,item_base_option:h,equipment_level_increase:u,item_exceptional_option:p,item_add_option:d,growth_exp:m,growth_level:f,scroll_upgrade:_,cuttable_count:g,golden_hammer_flag:y,scroll_resilience_count:w,scroll_upgradeable_count:E,soul_name:b,soul_option:v,item_etc_option:S,starforce:k,starforce_scroll_flag:C,item_starforce_option:I,special_ring_level:D,date_expire:P}=t;this.itemEquipmentPart=e,this.itemEquipmentSlot=i,this.itemName=a,this.itemIcon=r,this.itemDescription=n,this.itemShapeName=o,this.itemShapeIcon=s,this.itemGender=c,this.itemTotalOption=new st(l),this.itemBaseOption=new at(h),this.equipmentLevelIncrease=u,this.itemExceptionalOption=new nt(p),this.itemAddOption=new it(d),this.growthExp=m,this.growthLevel=f,this.scrollUpgrade=_,this.cuttableCount=g,this.goldenHammerFlag=y,this.scrollResilienceCount=w,this.scrollUpgradeableCount=E,this.soulName=b,this.soulOption=v,this.itemEtcOption=new rt(S),this.starforce=k,this.starforceScrollFlag=C,this.itemStarforceOption=new ot(I),this.specialRingLevel=D,this.dateExpire=P?new Date(P):null}}class lt{itemEquipmentPart;itemEquipmentSlot;itemName;itemIcon;itemDescription;itemShapeName;itemShapeIcon;itemGender;itemTotalOption;itemBaseOption;potentialOptionGrade;additionalPotentialOptionGrade;potentialOption1;potentialOption2;potentialOption3;additionalPotentialOption1;additionalPotentialOption2;additionalPotentialOption3;equipmentLevelIncrease;itemExceptionalOption;itemAddOption;growthExp;growthLevel;scrollUpgrade;cuttableCount;goldenHammerFlag;scrollResilienceCount;scrollUpgradeableCount;soulName;soulOption;itemEtcOption;starforce;starforceScrollFlag;itemStarforceOption;specialRingLevel;dateExpire;constructor(t){const{item_equipment_part:e,item_equipment_slot:i,item_name:a,item_icon:r,item_description:n,item_shape_name:o,item_shape_icon:s,item_gender:c,item_total_option:l,item_base_option:h,potential_option_grade:u,additional_potential_option_grade:p,potential_option_1:d,potential_option_2:m,potential_option_3:f,additional_potential_option_1:_,additional_potential_option_2:g,additional_potential_option_3:y,equipment_level_increase:w,item_exceptional_option:E,item_add_option:b,growth_exp:v,growth_level:S,scroll_upgrade:k,cuttable_count:C,golden_hammer_flag:I,scroll_resilience_count:D,scroll_upgradeable_count:P,soul_name:x,soul_option:O,item_etc_option:N,starforce:A,starforce_scroll_flag:L,item_starforce_option:R,special_ring_level:q,date_expire:B}=t;this.itemEquipmentPart=e,this.itemEquipmentSlot=i,this.itemName=a,this.itemIcon=r,this.itemDescription=n,this.itemShapeName=o,this.itemShapeIcon=s,this.itemGender=c,this.itemTotalOption=new st(l),this.itemBaseOption=new at(h),this.potentialOptionGrade=u,this.additionalPotentialOptionGrade=p,this.potentialOption1=d,this.potentialOption2=m,this.potentialOption3=f,this.additionalPotentialOption1=_,this.additionalPotentialOption2=g,this.additionalPotentialOption3=y,this.equipmentLevelIncrease=w,this.itemExceptionalOption=new nt(E),this.itemAddOption=new it(b),this.growthExp=v,this.growthLevel=S,this.scrollUpgrade=k,this.cuttableCount=C,this.goldenHammerFlag=I,this.scrollResilienceCount=D,this.scrollUpgradeableCount=P,this.soulName=x,this.soulOption=O,this.itemEtcOption=new rt(N),this.starforce=A,this.starforceScrollFlag=L,this.itemStarforceOption=new ot(R),this.specialRingLevel=q,this.dateExpire=B?new Date(B):null}}class ht{itemEquipmentPart;itemEquipmentSlot;itemName;itemIcon;itemDescription;itemShapeName;itemShapeIcon;itemGender;itemTotalOption;itemBaseOption;equipmentLevelIncrease;itemExceptionalOption;itemAddOption;growthExp;growthLevel;scrollUpgrade;cuttableCount;goldenHammerFlag;scrollResilienceCount;scrollUpgradeableCount;soulName;soulOption;itemEtcOption;starforce;starforceScrollFlag;itemStarforceOption;specialRingLevel;dateExpire;constructor(t){const{item_equipment_part:e,item_equipment_slot:i,item_name:a,item_icon:r,item_description:n,item_shape_name:o,item_shape_icon:s,item_gender:c,item_total_option:l,item_base_option:h,equipment_level_increase:u,item_exceptional_option:p,item_add_option:d,growth_exp:m,growth_level:f,scroll_upgrade:_,cuttable_count:g,golden_hammer_flag:y,scroll_resilience_count:w,scroll_upgradeable_count:E,soul_name:b,soul_option:v,item_etc_option:S,starforce:k,starforce_scroll_flag:C,item_starforce_option:I,special_ring_level:D,date_expire:P}=t;this.itemEquipmentPart=e,this.itemEquipmentSlot=i,this.itemName=a,this.itemIcon=r,this.itemDescription=n,this.itemShapeName=o,this.itemShapeIcon=s,this.itemGender=c,this.itemTotalOption=new st(l),this.itemBaseOption=new at(h),this.equipmentLevelIncrease=u,this.itemExceptionalOption=new nt(p),this.itemAddOption=new it(d),this.growthExp=m,this.growthLevel=f,this.scrollUpgrade=_,this.cuttableCount=g,this.goldenHammerFlag=y,this.scrollResilienceCount=w,this.scrollUpgradeableCount=E,this.soulName=b,this.soulOption=v,this.itemEtcOption=new rt(S),this.starforce=k,this.starforceScrollFlag=C,this.itemStarforceOption=new ot(I),this.specialRingLevel=D,this.dateExpire=P?new Date(P):null}}class ut{titleName;titleIcon;titleDescription;dateExpire;dateOptionExpire=null;isOptionExpired=null;constructor(t){const{title_name:e,title_icon:i,title_description:a,date_expire:r,date_option_expire:n}=t;this.titleName=e,this.titleIcon=i,this.titleDescription=a,this.dateExpire=r?new Date(r):null,"expired"===n?this.isOptionExpired=!0:"string"==typeof n&&(this.dateOptionExpire=n?new Date(n):null)}}class pt{date;characterGender;characterClass;presetNo;itemEquipment;itemEquipmentPreset1;itemEquipmentPreset2;itemEquipmentPreset3;title;dragonEquipment;mechanicEquipment;constructor(t){const{date:e,character_gender:i,character_class:a,preset_no:r,item_equipment:n,item_equipment_preset_1:o,item_equipment_preset_2:s,item_equipment_preset_3:c,title:l,dragon_equipment:h,mechanic_equipment:u}=t;this.date=e?new Date(e):null,this.characterGender=i,this.characterClass=a,this.presetNo=r,this.itemEquipment=n.map((t=>new lt(t))),this.itemEquipmentPreset1=o?o.map((t=>new lt(t))):null,this.itemEquipmentPreset2=s?s.map((t=>new lt(t))):null,this.itemEquipmentPreset3=c?c.map((t=>new lt(t))):null,this.title=l?new ut(l):null,this.dragonEquipment=h.map((t=>new ct(t))),this.mechanicEquipment=u.map((t=>new ht(t)))}}class dt{skillName;skillDescription;skillLevel;skillEffect;skillEffectNext;skillIcon;constructor(t){const{skill_name:e,skill_description:i,skill_level:a,skill_effect:r,skill_effect_next:n,skill_icon:o}=t;this.skillName=e,this.skillDescription=i,this.skillLevel=a,this.skillEffect=r,this.skillEffectNext=n,this.skillIcon=o}}class mt{date;characterClass;characterLinkSkill;characterLinkSkillPreset1;characterLinkSkillPreset2;characterLinkSkillPreset3;characterOwnedLinkSkill;characterOwnedLinkSkillPreset1;characterOwnedLinkSkillPreset2;characterOwnedLinkSkillPreset3;constructor(t){const{date:e,character_class:i,character_link_skill:a,character_link_skill_preset_1:r,character_link_skill_preset_2:n,character_link_skill_preset_3:o,character_owned_link_skill:s,character_owned_link_skill_preset_1:c,character_owned_link_skill_preset_2:l,character_owned_link_skill_preset_3:h}=t;this.date=e?new Date(e):null,this.characterClass=i,this.characterLinkSkill=a.map((t=>new dt(t))),this.characterLinkSkillPreset1=r.map((t=>new dt(t))),this.characterLinkSkillPreset2=n.map((t=>new dt(t))),this.characterLinkSkillPreset3=o.map((t=>new dt(t))),this.characterOwnedLinkSkill=new dt(s),this.characterOwnedLinkSkillPreset1=c?new dt(c):null,this.characterOwnedLinkSkillPreset2=l?new dt(l):null,this.characterOwnedLinkSkillPreset3=h?new dt(h):null}}class ft{ocid;characterName;worldName;characterClass;characterLevel;constructor(t){const{ocid:e,character_name:i,world_name:a,character_class:r,character_level:n}=t;this.ocid=e,this.characterName=i,this.worldName=a,this.characterClass=r,this.characterLevel=n}}class _t{accountId;characterList;constructor(t){const{account_id:e,character_list:i}=t;this.accountId=e,this.characterList=i.map((t=>new ft(t)))}}class gt{accountList;constructor(t){const{account_list:e}=t;this.accountList=e.map((t=>new _t(t)))}}class yt{skill1;skill1Icon;skill2;skill2Icon;constructor(t){const{skill_1:e,skill_1_icon:i,skill_2:a,skill_2_icon:r}=t;this.skill1=e,this.skill1Icon=i,this.skill2=a,this.skill2Icon=r}}class wt{optionType;optionValue;constructor(t){const{option_type:e,option_value:i}=t;this.optionType=e,this.optionValue=i}}class Et{itemName;itemIcon;itemDescription;itemOption;scrollUpgrade;scrollUpgradable;itemShape;itemShapeIcon;constructor(t){const{item_name:e,item_icon:i,item_description:a,item_option:r,scroll_upgrade:n,scroll_upgradable:o,item_shape:s,item_shape_icon:c}=t;this.itemName=e,this.itemIcon=i,this.itemDescription=a,this.itemOption=r.map((t=>new wt(t))),this.scrollUpgrade=n,this.scrollUpgradable=o,this.itemShape=s,this.itemShapeIcon=c}}class bt{date;pet1Name;pet1Nickname;pet1Icon;pet1Description;pet1Equipment;pet1AutoSkill;pet1PetType;pet1Skill;pet1DateExpire;pet1Appearance;pet1AppearanceIcon;pet2Name;pet2Nickname;pet2Icon;pet2Description;pet2Equipment;pet2AutoSkill;pet2PetType;pet2Skill;pet2DateExpire;pet2Appearance;pet2AppearanceIcon;pet3Name;pet3Nickname;pet3Icon;pet3Description;pet3Equipment;pet3AutoSkill;pet3PetType;pet3Skill;pet3DateExpire;pet3Appearance;pet3AppearanceIcon;constructor(t){const{date:e,pet_1_name:i,pet_1_nickname:a,pet_1_icon:r,pet_1_description:n,pet_1_equipment:o,pet_1_auto_skill:s,pet_1_pet_type:c,pet_1_skill:l,pet_1_date_expire:h,pet_1_appearance:u,pet_1_appearance_icon:p,pet_2_name:d,pet_2_nickname:m,pet_2_icon:f,pet_2_description:_,pet_2_equipment:g,pet_2_auto_skill:y,pet_2_pet_type:w,pet_2_skill:E,pet_2_date_expire:b,pet_2_appearance:v,pet_2_appearance_icon:S,pet_3_name:k,pet_3_nickname:C,pet_3_icon:I,pet_3_description:D,pet_3_equipment:P,pet_3_auto_skill:x,pet_3_pet_type:O,pet_3_skill:N,pet_3_date_expire:A,pet_3_appearance:L,pet_3_appearance_icon:R}=t;this.date=e?new Date(e):null,this.pet1Name=i,this.pet1Nickname=a,this.pet1Icon=r,this.pet1Description=n,this.pet1Equipment=o?new Et(o):null,this.pet1AutoSkill=s?new yt(s):null,this.pet1PetType=c,this.pet1Skill=l,this.pet1DateExpire=h?new Date(h):null,this.pet1Appearance=u,this.pet1AppearanceIcon=p,this.pet2Name=d,this.pet2Nickname=m,this.pet2Icon=f,this.pet2Description=_,this.pet2Equipment=g?new Et(g):null,this.pet2AutoSkill=y?new yt(y):null,this.pet2PetType=w,this.pet2Skill=E,this.pet2DateExpire=b?new Date(b):null,this.pet2Appearance=v,this.pet2AppearanceIcon=S,this.pet3Name=k,this.pet3Nickname=C,this.pet3Icon=I,this.pet3Description=D,this.pet3Equipment=P?new Et(P):null,this.pet3AutoSkill=x?new yt(x):null,this.pet3PetType=O,this.pet3Skill=N,this.pet3DateExpire=A?new Date(A):null,this.pet3Appearance=L,this.pet3AppearanceIcon=R}}class vt{date;popularity;constructor(t){const{date:e,popularity:i}=t;this.date=e?new Date(e):null,this.popularity=i}}class St{date;charismaLevel;sensibilityLevel;insightLevel;willingnessLevel;handicraftLevel;charmLevel;constructor(t){const{date:e,charisma_level:i,sensibility_level:a,insight_level:r,willingness_level:n,handicraft_level:o,charm_level:s}=t;this.date=e?new Date(e):null,this.charismaLevel=i,this.sensibilityLevel=a,this.insightLevel=r,this.willingnessLevel=n,this.handicraftLevel=o,this.charmLevel=s}}class kt{setCount;setOption;constructor(t){const{set_count:e,set_option:i}=t;this.setCount=e,this.setOption=i}}class Ct{setCount;setOption;constructor(t){const{set_count:e,set_option:i}=t;this.setCount=e,this.setOption=i}}class It{setName;totalSetCount;setEffectInfo;setOptionFull;constructor(t){const{set_name:e,total_set_count:i,set_effect_info:a,set_option_full:r}=t;this.setName=e,this.totalSetCount=i,this.setEffectInfo=a.map((t=>new kt(t))),this.setOptionFull=r.map((t=>new Ct(t)))}}class Dt{date;setEffect;constructor(t){const{date:e,set_effect:i}=t;this.date=e?new Date(e):null,this.setEffect=i.map((t=>new It(t)))}}class Pt{skillName;skillDescription;skillLevel;skillEffect;skillEffectNext;skillIcon;constructor(t){const{skill_name:e,skill_description:i,skill_level:a,skill_effect:r,skill_effect_next:n,skill_icon:o}=t;this.skillName=e,this.skillDescription=i,this.skillLevel=a,this.skillEffect=r,this.skillEffectNext=n,this.skillIcon=o}}class xt{date;characterClass;characterSkillGrade;characterSkill;constructor(t){const{date:e,character_class:i,character_skill_grade:a,character_skill:r}=t;this.date=e?new Date(e):null,this.characterClass=i,this.characterSkillGrade=a,this.characterSkill=r.map((t=>new Pt(t)))}}class Ot{date;characterClass;finalStat;remainAP;constructor(t){const{date:e,character_class:i,final_stat:a,remain_ap:r}=t;this.date=e?new Date(e):null,this.characterClass=i,this.finalStat=a.map((t=>({statName:t.stat_name,statValue:t.stat_value}))),this.remainAP=r}}class Nt{symbolName;symbolIcon;symbolDescription;symbolForce;symbolLevel;symbolStr;symbolDex;symbolInt;symbolLuk;symbolHp;symbolDropRate;symbolMesoRate;symbolExpRate;symbolGrowthCount;symbolRequireGrowthCount;constructor(t){const{symbol_name:e,symbol_icon:i,symbol_description:a,symbol_force:r,symbol_level:n,symbol_str:o,symbol_dex:s,symbol_int:c,symbol_luk:l,symbol_hp:h,symbol_drop_rate:u,symbol_meso_rate:p,symbol_exp_rate:d,symbol_growth_count:m,symbol_require_growth_count:f}=t;this.symbolName=e,this.symbolIcon=i,this.symbolDescription=a,this.symbolForce=r,this.symbolLevel=n,this.symbolStr=o,this.symbolDex=s,this.symbolInt=c,this.symbolLuk=l,this.symbolHp=h,this.symbolDropRate=u??"0%",this.symbolMesoRate=p??"0%",this.symbolExpRate=d??"0%",this.symbolHp=h,this.symbolHp=h,this.symbolGrowthCount=m,this.symbolRequireGrowthCount=f}}class At{date;characterClass;symbol;constructor(t){const{date:e,character_class:i,symbol:a}=t;this.date=e?new Date(e):null,this.characterClass=i,this.symbol=a.map((t=>new Nt(t)))}}class Lt{slotId;slotLevel;vCoreName;vCoreType;vCoreLevel;vCoreSkill1;vCoreSkill2;vCoreSkill3;constructor(t){const{slot_id:e,slot_level:i,v_core_name:a,v_core_type:r,v_core_level:n,v_core_skill_1:o,v_core_skill_2:s,v_core_skill_3:c}=t;this.slotId=e,this.slotLevel=i,this.vCoreName=a,this.vCoreType=r,this.vCoreLevel=n,this.vCoreSkill1=o,this.vCoreSkill2=s,this.vCoreSkill3=c}}class Rt{date;characterClass;characterVCoreEquipment;characterVMatrixRemainSlotUpgradePoint;constructor(t){const{date:e,character_class:i,character_v_core_equipment:a,character_v_matrix_remain_slot_upgrade_point:r}=t;this.date=e?new Date(e):null,this.characterClass=i,this.characterVCoreEquipment=a.map((t=>new Lt(t))),this.characterVMatrixRemainSlotUpgradePoint=r}}class qt{skillName;skillDescription;skillLevel;skillEffect;skillIcon;constructor(t){const{skill_name:e,skill_description:i,skill_level:a,skill_effect:r,skill_icon:n}=t;this.skillName=e,this.skillDescription=i,this.skillLevel=a,this.skillEffect=r,this.skillIcon=n}}class Bt{date;worldName;guildName;guildLevel;guildFame;guildPoint;guildMasterName;guildMemberCount;guildMember;guildSkill;guildNoblesseSkill;constructor(t){const{date:e,world_name:i,guild_name:a,guild_level:r,guild_fame:n,guild_point:o,guild_master_name:s,guild_member_count:c,guild_member:l,guild_skill:h,guild_noblesse_skill:u}=t;this.date=e?new Date(e):null,this.worldName=i,this.guildName=a,this.guildLevel=r,this.guildFame=n,this.guildPoint=o,this.guildMasterName=s,this.guildMemberCount=c,this.guildMember=l,this.guildSkill=h.map((t=>new qt(t))),this.guildNoblesseSkill=u.map((t=>new qt(t)))}}class Ut{oguildId;constructor(t){const{oguild_id:e}=t;this.oguildId=e}}t.PotentialOptionGrade=void 0,(k=t.PotentialOptionGrade||(t.PotentialOptionGrade={}))[k.RARE=0]="RARE",k[k.EPIC=1]="EPIC",k[k.UNIQUE=2]="UNIQUE",k[k.LEGENDARY=3]="LEGENDARY";const Tt=e=>{const i={"레어":t.PotentialOptionGrade.RARE,"에픽":t.PotentialOptionGrade.EPIC,"유니크":t.PotentialOptionGrade.UNIQUE,"레전드리":t.PotentialOptionGrade.LEGENDARY}[e];if(!i)throw new TypeError("No enum constant for string: "+e);return i};class Ft{value;grade;constructor(t){const{value:e,grade:i}=t;this.value=e,this.grade=i}get gradeEnum(){return Tt(this.grade)}}class Mt{id;characterName;worldName;dateCreate;cubeType;itemUpgradeResult;miracleTimeFlag;itemEquipmentPart;itemLevel;targetItem;potentialOptionGrade;additionalPotentialOptionGrade;upgradeGuarantee;upgradeGuaranteeCount;beforePotentialOption;beforeAdditionalPotentialOption;afterPotentialOption;afterAdditionalPotentialOption;constructor(t){const{id:e,character_name:i,world_name:a,date_create:r,cube_type:n,item_upgrade_result:o,miracle_time_flag:s,item_equipment_part:c,item_level:l,target_item:h,potential_option_grade:u,additional_potential_option_grade:p,upgrade_guarantee:d,upgrade_guarantee_count:m,before_potential_option:f,before_additional_potential_option:_,after_potential_option:g,after_additional_potential_option:y}=t;this.id=e,this.characterName=i,this.worldName=a,this.dateCreate=new Date(r),this.cubeType=n,this.itemUpgradeResult=o,this.miracleTimeFlag=s,this.itemEquipmentPart=c,this.itemLevel=l,this.targetItem=h,this.potentialOptionGrade=u,this.additionalPotentialOptionGrade=p,this.upgradeGuarantee=d,this.upgradeGuaranteeCount=m,this.beforePotentialOption=f.map((t=>new Ft(t))),this.beforeAdditionalPotentialOption=_.map((t=>new Ft(t))),this.afterPotentialOption=g.map((t=>new Ft(t))),this.afterAdditionalPotentialOption=y.map((t=>new Ft(t)))}get isItemUpgrade(){return"성공"===this.itemUpgradeResult}get isMiracleTimeFlag(){return"이벤트 적용되지 않음"!==this.miracleTimeFlag}get potentialOptionGradeEnum(){return Tt(this.potentialOptionGrade)}get additionalPotentialOptionGradeEnum(){return Tt(this.additionalPotentialOptionGrade)}}class Gt{count;cubeHistory;nextCursor;constructor(t){const{count:e,cube_history:i,next_cursor:a}=t;this.count=e,this.cubeHistory=i.map((t=>new Mt(t))),this.nextCursor=a}}class $t{value;grade;constructor(t){const{value:e,grade:i}=t;this.value=e,this.grade=i}get gradeEnum(){return Tt(this.grade)}}class Ht{id;characterName;dateCreate;potentialType;itemUpgradeResult;miracleTimeFlag;itemEquipmentPart;itemLevel;targetItem;potentialOptionGrade;additionalPotentialOptionGrade;upgradeGuarantee;upgradeGuaranteeCount;beforePotentialOption;beforeAdditionalPotentialOption;afterPotentialOption;afterAdditionalPotentialOption;constructor(t){const{id:e,character_name:i,date_create:a,potential_type:r,item_upgrade_result:n,miracle_time_flag:o,item_equipment_part:s,item_level:c,target_item:l,potential_option_grade:h,additional_potential_option_grade:u,upgrade_guarantee:p,upgrade_guarantee_count:d,before_potential_option:m,before_additional_potential_option:f,after_potential_option:_,after_additional_potential_option:g}=t;this.id=e,this.characterName=i,this.dateCreate=new Date(a),this.potentialType=r,this.itemUpgradeResult=n,this.miracleTimeFlag=o,this.itemEquipmentPart=s,this.itemLevel=c,this.targetItem=l,this.potentialOptionGrade=h,this.additionalPotentialOptionGrade=u,this.upgradeGuarantee=p,this.upgradeGuaranteeCount=d,this.beforePotentialOption=m.map((t=>new $t(t))),this.beforeAdditionalPotentialOption=f.map((t=>new $t(t))),this.afterPotentialOption=_.map((t=>new $t(t))),this.afterAdditionalPotentialOption=g.map((t=>new $t(t)))}get isItemUpgrade(){return"성공"===this.itemUpgradeResult}get isMiracleTimeFlag(){return"이벤트 적용되지 않음"!==this.miracleTimeFlag}get potentialOptionGradeEnum(){return Tt(this.potentialOptionGrade)}get additionalPotentialOptionGradeEnum(){return Tt(this.additionalPotentialOptionGrade)}}class jt{count;potentialHistory;nextCursor;constructor(t){const{count:e,potential_history:i,next_cursor:a}=t;this.count=e,this.potentialHistory=i.map((t=>new Ht(t))),this.nextCursor=a}}class Yt{successRate;costDiscountRate;plusValue;starforceEventRange;constructor(t){const{success_rate:e,cost_discount_rate:i,plus_value:a,starforce_event_range:r}=t;this.successRate=e,this.costDiscountRate=i,this.plusValue=a,this.starforceEventRange=r}}class zt{id;itemUpgradeResult;beforeStarforceCount;afterStarforceCount;starCatchResult;superiorItemFlag;destroyDefence;chanceTime;eventFieldFlag;upgradeItem;protectShield;bonusStatUpgrade;characterName;worldName;targetItem;dateCreate;starforceEventList;constructor(t){const{id:e,item_upgrade_result:i,before_starforce_count:a,after_starforce_count:r,starcatch_result:n,superior_item_flag:o,destroy_defence:s,chance_time:c,event_field_flag:l,upgrade_item:h,protect_shield:u,bonus_stat_upgrade:p,character_name:d,world_name:m,target_item:f,date_create:_,starforce_event_list:g}=t;this.id=e,this.itemUpgradeResult=i,this.beforeStarforceCount=a,this.afterStarforceCount=r,this.starCatchResult=n,this.superiorItemFlag=o,this.destroyDefence=s,this.chanceTime=c,this.eventFieldFlag=l,this.upgradeItem=h,this.protectShield=u,this.bonusStatUpgrade=p,this.characterName=d,this.worldName=m,this.targetItem=f,this.dateCreate=new Date(_),this.starforceEventList=g?.map((t=>new Yt(t)))??null}}class Vt{count;starforceHistory;nextCursor;constructor(t){const{count:e,starforce_history:i,next_cursor:a}=t;this.count=e,this.starforceHistory=i.map((t=>new zt(t))),this.nextCursor=a}}class Wt{serviceCode;startDateTime;endDateTime;strObstacleContents;constructor(t){const e=t["soap:Envelope"]["soap:Body"][0].GetInspectionInfoResponse[0].GetInspectionInfoResult[0]["diffgr:diffgram"][0].NewDataSet[0].InspectionInfo[0];this.serviceCode=Number(e.serviceCode[0]),this.startDateTime=new Date(e.startDateTime[0]),this.endDateTime=new Date(e.endDateTime[0]),this.strObstacleContents=e.strObstacleContents[0]}}class Qt{title;url;contents;date;dateSaleStart;dateSaleEnd;ongoingFlag;constructor(t){const{title:e,url:i,contents:a,date:r,date_sale_start:n,date_sale_end:o,ongoing_flag:s}=t;this.title=e,this.url=i,this.contents=a,this.date=new Date(r),this.dateSaleStart=n?new Date(n):null,this.dateSaleEnd=o?new Date(o):null,this.ongoingFlag=s}get isOnGoing(){return"true"===this.ongoingFlag}}class Zt{title;url;noticeId;date;dateSaleStart;dateSaleEnd;ongoingFlag;constructor(t){const{title:e,url:i,notice_id:a,date:r,date_sale_start:n,date_sale_end:o,ongoing_flag:s}=t;this.title=e,this.url=i,this.noticeId=a,this.date=new Date(r),this.dateSaleStart=n?new Date(n):null,this.dateSaleEnd=o?new Date(o):null,this.ongoingFlag=s}get isOnGoing(){return"true"===this.ongoingFlag}}class Xt{cashshopNotice;constructor(t){const{cashshop_notice:e}=t;this.cashshopNotice=e.map((t=>new Zt(t)))}}class Jt{title;url;contents;date;dateEventStart;dateEventEnd;constructor(t){const{title:e,url:i,contents:a,date:r,date_event_start:n,date_event_end:o}=t;this.title=e,this.url=i,this.contents=a,this.date=new Date(r),this.dateEventStart=new Date(n),this.dateEventEnd=new Date(o)}}class Kt{title;url;noticeId;date;dateEventStart;dateEventEnd;constructor(t){const{title:e,url:i,notice_id:a,date:r,date_event_start:n,date_event_end:o}=t;this.title=e,this.url=i,this.noticeId=a,this.date=new Date(r),this.dateEventStart=new Date(n),this.dateEventEnd=new Date(o)}}class te{eventNotice;constructor(t){const{event_notice:e}=t;this.eventNotice=e.map((t=>new Kt(t)))}}class ee{title;url;contents;date;constructor(t){const{title:e,url:i,contents:a,date:r}=t;this.title=e,this.url=i,this.contents=a,this.date=new Date(r)}}class ie{title;url;noticeId;date;constructor(t){const{title:e,url:i,notice_id:a,date:r}=t;this.title=e,this.url=i,this.noticeId=a,this.date=new Date(r)}}class ae{notice;constructor(t){const{notice:e}=t;this.notice=e.map((t=>new ie(t)))}}class re{title;url;contents;date;constructor(t){const{title:e,url:i,contents:a,date:r}=t;this.title=e,this.url=i,this.contents=a,this.date=new Date(r)}}class ne{title;url;noticeId;date;constructor(t){const{title:e,url:i,notice_id:a,date:r}=t;this.title=e,this.url=i,this.noticeId=a,this.date=new Date(r)}}class oe{updateNotice;constructor(t){const{update_notice:e}=t;this.updateNotice=e.map((t=>new ne(t)))}}class se{date;ranking;characterName;worldName;className;subClassName;trophyGrade;trophyScore;constructor(t){const{date:e,ranking:i,character_name:a,world_name:r,class_name:n,sub_class_name:o,trophy_grade:s,trophy_score:c}=t;this.date=new Date(e),this.ranking=i,this.characterName=a,this.worldName=r,this.className=n,this.subClassName=o,this.trophyGrade=s,this.trophyScore=c}}class ce{ranking;constructor(t){const{ranking:e}=t;this.ranking=e.map((t=>new se(t)))}}class le{date;ranking;characterName;worldName;className;subClassName;characterLevel;dojangFloor;dojangTimeRecord;constructor(t){const{date:e,ranking:i,character_name:a,world_name:r,class_name:n,sub_class_name:o,character_level:s,dojang_floor:c,dojang_time_record:l}=t;this.date=new Date(e),this.ranking=i,this.characterName=a,this.worldName=r,this.className=n,this.subClassName=o,this.characterLevel=s,this.dojangFloor=c,this.dojangTimeRecord=l}}class he{ranking;constructor(t){const{ranking:e}=t;this.ranking=e.map((t=>new le(t)))}}class ue{date;ranking;guildName;worldName;guildLevel;guildMasterName;guildMark;guildPoint;constructor(t){const{date:e,ranking:i,guild_name:a,world_name:r,guild_level:n,guild_master_name:o,guild_mark:s,guild_point:c}=t;this.date=new Date(e),this.ranking=i,this.guildName=a,this.worldName=r,this.guildLevel=n,this.guildMasterName=o,this.guildMark=s,this.guildPoint=c}}class pe{ranking;constructor(t){const{ranking:e}=t;this.ranking=e.map((t=>new ue(t)))}}class de{date;ranking;characterName;worldName;className;subClassName;characterLevel;characterExp;characterPopularity;characterGuildName;constructor(t){const{date:e,ranking:i,character_name:a,world_name:r,class_name:n,sub_class_name:o,character_level:s,character_exp:c,character_popularity:l,character_guildname:h}=t;this.date=new Date(e),this.ranking=i,this.characterName=a,this.worldName=r,this.className=n,this.subClassName=o,this.characterLevel=s,this.characterExp=c,this.characterPopularity=l,this.characterGuildName=h}}class me{ranking;constructor(t){const{ranking:e}=t;this.ranking=e.map((t=>new de(t)))}}class fe{date;ranking;characterName;worldName;className;subClassName;characterLevel;theSeedFloor;theSeedTimeRecord;constructor(t){const{date:e,ranking:i,character_name:a,world_name:r,class_name:n,sub_class_name:o,character_level:s,theseed_floor:c,theseed_time_record:l}=t;this.date=new Date(e),this.ranking=i,this.characterName=a,this.worldName=r,this.className=n,this.subClassName=o,this.characterLevel=s,this.theSeedFloor=c,this.theSeedTimeRecord=l}}class _e{ranking;constructor(t){const{ranking:e}=t;this.ranking=e.map((t=>new fe(t)))}}class ge{date;ranking;characterName;worldName;className;subClassName;unionLevel;unionPower;constructor(t){const{date:e,ranking:i,character_name:a,world_name:r,class_name:n,sub_class_name:o,union_level:s,union_power:c}=t;this.date=new Date(e),this.ranking=i,this.characterName=a,this.worldName=r,this.className=n,this.subClassName=o,this.unionLevel=s,this.unionPower=c}}class ye{ranking;constructor(t){const{ranking:e}=t;this.ranking=e.map((t=>new ge(t)))}}class we{name;validityFlag;dateExpire;level;crystalOptionName1;crystalOptionName2;crystalOptionName3;constructor(t){const{name:e,validity_flag:i,date_expire:a,level:r,crystal_option_name_1:n,crystal_option_name_2:o,crystal_option_name_3:s}=t;this.name=e,this.validityFlag=i,this.dateExpire=new Date(a),this.level=r,this.crystalOptionName1=n,this.crystalOptionName2=o,this.crystalOptionName3=s}}class Ee{name;level;constructor(t){const{name:e,level:i}=t;this.name=e,this.level=i}}class be{date;unionArtifactEffect;unionArtifactCrystal;unionArtifactRemainAp;constructor(t){const{date:e,union_artifact_effect:i,union_artifact_crystal:a,union_artifact_remain_ap:r}=t;this.date=e?new Date(e):null,this.unionArtifactEffect=i.map((t=>new Ee(t))),this.unionArtifactCrystal=a.map((t=>new we(t))),this.unionArtifactRemainAp=r}}class ve{date;unionLevel;unionGrade;unionArtifactLevel;unionArtifactExp;unionArtifactPoint;constructor(t){const{date:e,union_level:i,union_grade:a,union_artifact_level:r,union_artifact_exp:n,union_artifact_point:o}=t;this.date=e?new Date(e):null,this.unionLevel=i,this.unionGrade=a,this.unionArtifactLevel=r,this.unionArtifactExp=n,this.unionArtifactPoint=o}}class Se{x;y;constructor(t){const{x:e,y:i}=t;this.x=e,this.y=i}}class ke{x;y;constructor(t){const{x:e,y:i}=t;this.x=e,this.y=i}}class Ce{blockType;blockClass;blockLevel;blockControlPoint;blockPosition;constructor(t){const{block_type:e,block_class:i,block_level:a,block_control_point:r,block_position:n}=t;this.blockType=e,this.blockClass=i,this.blockLevel=a,this.blockControlPoint=new ke(r),this.blockPosition=n?n.map((t=>new Se(t))):null}}class Ie{statFieldId;statFieldEffect;constructor(t){const{stat_field_id:e,stat_field_effect:i}=t;this.statFieldId=e,this.statFieldEffect=i}}class De{unionRaiderStat;unionOccupiedStat;unionInnerStat;unionBlock;constructor(t){const{union_raider_stat:e,union_occupied_stat:i,union_inner_stat:a,union_block:r}=t;this.unionRaiderStat=e,this.unionOccupiedStat=i,this.unionInnerStat=a.map((t=>new Ie(t))),this.unionBlock=r.map((t=>new Ce(t)))}}class Pe{date;unionRaiderStat;unionOccupiedStat;unionInnerStat;unionBlock;usePresetNo;unionRaiderPreset1;unionRaiderPreset2;unionRaiderPreset3;unionRaiderPreset4;unionRaiderPreset5;constructor(t){const{date:e,union_raider_stat:i,union_occupied_stat:a,union_inner_stat:r,union_block:n,use_preset_no:o,union_raider_preset_1:s,union_raider_preset_2:c,union_raider_preset_3:l,union_raider_preset_4:h,union_raider_preset_5:u}=t;this.date=e?new Date(e):null,this.unionRaiderStat=i,this.unionOccupiedStat=a,this.unionInnerStat=r.map((t=>new Ie(t))),this.unionBlock=n.map((t=>new Ce(t))),this.usePresetNo=o,this.unionRaiderPreset1=s?new De(s):null,this.unionRaiderPreset2=c?new De(c):null,this.unionRaiderPreset3=l?new De(l):null,this.unionRaiderPreset4=h?new De(h):null,this.unionRaiderPreset5=u?new De(u):null}}class xe extends Error{name="MapleStoryApiError";errorCode;message;constructor(t){const{name:e,message:i}=t.error;super(i),this.errorCode=Ne[e],this.message=i}}var Oe;t.MapleStoryApiErrorCode=void 0,(Oe=t.MapleStoryApiErrorCode||(t.MapleStoryApiErrorCode={}))[Oe.OPENAPI00001=0]="OPENAPI00001",Oe[Oe.OPENAPI00002=1]="OPENAPI00002",Oe[Oe.OPENAPI00003=2]="OPENAPI00003",Oe[Oe.OPENAPI00004=3]="OPENAPI00004",Oe[Oe.OPENAPI00005=4]="OPENAPI00005",Oe[Oe.OPENAPI00006=5]="OPENAPI00006",Oe[Oe.OPENAPI00007=6]="OPENAPI00007",Oe[Oe.OPENAPI00009=7]="OPENAPI00009",Oe[Oe.OPENAPI00010=8]="OPENAPI00010",Oe[Oe.OPENAPI00011=9]="OPENAPI00011";const Ne={OPENAPI00001:t.MapleStoryApiErrorCode.OPENAPI00001,OPENAPI00002:t.MapleStoryApiErrorCode.OPENAPI00002,OPENAPI00003:t.MapleStoryApiErrorCode.OPENAPI00003,OPENAPI00004:t.MapleStoryApiErrorCode.OPENAPI00004,OPENAPI00005:t.MapleStoryApiErrorCode.OPENAPI00005,OPENAPI00006:t.MapleStoryApiErrorCode.OPENAPI00006,OPENAPI00007:t.MapleStoryApiErrorCode.OPENAPI00007,OPENAPI00009:t.MapleStoryApiErrorCode.OPENAPI00009,OPENAPI00010:t.MapleStoryApiErrorCode.OPENAPI00010,OPENAPI00011:t.MapleStoryApiErrorCode.OPENAPI00011};o.default.extend(w),o.default.extend(C);class Ae{apiKey;client;static BASE_URL="https://open.api.nexon.com/";static DEFAULT_TIMEOUT=5e3;static kstOffset=540;get timeout(){return this.client.defaults.timeout}set timeout(t){this.client.defaults.timeout=t}constructor(t){this.apiKey=t,this.client=n.default.create({baseURL:Ae.BASE_URL,timeout:Ae.DEFAULT_TIMEOUT,headers:{"x-nxopen-api-key":this.apiKey}}),this.client.interceptors.response.use((t=>t),(t=>{if(t instanceof e.AxiosError){const e=t.response.data;throw new xe(e)}throw t}))}async getCharacter(t){const{data:e}=await this.client.get("maplestory/v1/id",{params:{character_name:t}});return new V(e)}async getCharacterList(){const{data:t}=await this.client.get("maplestory/v1/character/list");return new gt(t)}async getCharacterBasic(t,e){const i={ocid:t,date:e?Ae.toDateString({year:2023,month:12,day:21},e):void 0},{data:a}=await this.client.get("maplestory/v1/character/basic",{params:i});return new U(a)}async getCharacterImage(e,i,a){const{date:r,characterImage:o}=await this.getCharacterBasic(e,a),s=i?.action??t.CharacterImageAction.Stand1,l=i?.emotion??t.CharacterImageEmotion.Default,h=i?.wmotion??t.CharacterImageWeaponMotion.Default,u=i?.actionFrame??0,p=i?.emotionFrame??0,d=i?.x??null,m=i?.y??null,f={action:`${s}.${u}`,emotion:`${l}.${p}`,wmotion:h,width:96,height:96,x:d,y:m},_=async(t,e)=>{const{data:i,headers:a}=await n.default.get(t,{params:e,responseType:"arraybuffer"}),r=c.Buffer.from(i,"binary").toString("base64");return`data:${a["content-type"]};base64,${r}`},[g,y]=await Promise.all([_(o),_(o,f)]);return new et({date:r,originUrl:o,originImage:g,image:y,action:s,emotion:l,wmotion:h,actionFrame:u,emotionFrame:p,width:96,height:96,x:d,y:m})}async getCharacterPopularity(t,e){const i={ocid:t,date:e?Ae.toDateString({year:2023,month:12,day:21},e):void 0},{data:a}=await this.client.get("maplestory/v1/character/popularity",{params:i});return new vt(a)}async getCharacterStat(t,e){const i={ocid:t,date:e?Ae.toDateString({year:2023,month:12,day:21},e):void 0},{data:a}=await this.client.get("maplestory/v1/character/stat",{params:i});return new Ot(a)}async getCharacterHyperStat(t,e){const i={ocid:t,date:e?Ae.toDateString({year:2023,month:12,day:21},e):void 0},{data:a}=await this.client.get("maplestory/v1/character/hyper-stat",{params:i});return new tt(a)}async getCharacterPropensity(t,e){const i={ocid:t,date:e?Ae.toDateString({year:2023,month:12,day:21},e):void 0},{data:a}=await this.client.get("maplestory/v1/character/propensity",{params:i});return new St(a)}async getCharacterAbility(t,e){const i={ocid:t,date:e?Ae.toDateString({year:2023,month:12,day:21},e):void 0},{data:a}=await this.client.get("maplestory/v1/character/ability",{params:i});return new P(a)}async getCharacterItemEquipment(t,e){const i={ocid:t,date:e?Ae.toDateString({year:2023,month:12,day:21},e):void 0},{data:a}=await this.client.get("maplestory/v1/character/item-equipment",{params:i});return new pt(a)}async getCharacterCashItemEquipment(t,e){const i={ocid:t,date:e?Ae.toDateString({year:2023,month:12,day:21},e):void 0},{data:a}=await this.client.get("maplestory/v1/character/cashitem-equipment",{params:i});return new Y(a)}async getCharacterSymbolEquipment(t,e){const i={ocid:t,date:e?Ae.toDateString({year:2023,month:12,day:21},e):void 0},{data:a}=await this.client.get("maplestory/v1/character/symbol-equipment",{params:i});return new At(a)}async getCharacterSetEffect(t,e){const i={ocid:t,date:e?Ae.toDateString({year:2023,month:12,day:21},e):void 0},{data:a}=await this.client.get("maplestory/v1/character/set-effect",{params:i});return new Dt(a)}async getCharacterBeautyEquipment(t,e){const i={ocid:t,date:e?Ae.toDateString({year:2023,month:12,day:21},e):void 0},{data:a}=await this.client.get("maplestory/v1/character/beauty-equipment",{params:i});return new G(a)}async getCharacterAndroidEquipment(t,e){const i={ocid:t,date:e?Ae.toDateString({year:2023,month:12,day:21},e):void 0},{data:a}=await this.client.get("maplestory/v1/character/android-equipment",{params:i});return new B(a)}async getCharacterPetEquipment(t,e){const i={ocid:t,date:e?Ae.toDateString({year:2023,month:12,day:21},e):void 0},{data:a}=await this.client.get("maplestory/v1/character/pet-equipment",{params:i});return new bt(a)}async getCharacterSkill(t,e,i){const a={ocid:t,character_skill_grade:e,date:i?Ae.toDateString({year:2023,month:12,day:21},i):void 0},{data:r}=await this.client.get("maplestory/v1/character/skill",{params:a});return new xt(r)}async getCharacterLinkSkill(t,e){const i={ocid:t,date:e?Ae.toDateString({year:2023,month:12,day:21},e):void 0},{data:a}=await this.client.get("maplestory/v1/character/link-skill",{params:i});return new mt(a)}async getCharacterVMatrix(t,e){const i={ocid:t,date:e?Ae.toDateString({year:2023,month:12,day:21},e):void 0},{data:a}=await this.client.get("maplestory/v1/character/vmatrix",{params:i});return new Rt(a)}async getCharacterHexaMatrix(t,e){const i={ocid:t,date:e?Ae.toDateString({year:2023,month:12,day:21},e):void 0},{data:a}=await this.client.get("maplestory/v1/character/hexamatrix",{params:i});return new Z(a)}async getCharacterHexaMatrixStat(t,e){const i={ocid:t,date:e?Ae.toDateString({year:2023,month:12,day:21},e):void 0},{data:a}=await this.client.get("maplestory/v1/character/hexamatrix-stat",{params:i});return new J(a)}async getCharacterDojang(t,e){const i={ocid:t,date:e?Ae.toDateString({year:2023,month:12,day:21},e):void 0},{data:a}=await this.client.get("maplestory/v1/character/dojang",{params:i});return new z(a)}async getUnion(t,e){const i={ocid:t,date:e?Ae.toDateString({year:2023,month:12,day:21},e):void 0},{data:a}=await this.client.get("maplestory/v1/user/union",{params:i});return new ve(a)}async getUnionRaider(t,e){const i={ocid:t,date:e?Ae.toDateString({year:2023,month:12,day:21},e):void 0},{data:a}=await this.client.get("maplestory/v1/user/union-raider",{params:i});return new Pe(a)}async getUnionArtifact(t,e){const i={ocid:t,date:e?Ae.toDateString({year:2023,month:12,day:21},e):void 0},{data:a}=await this.client.get("maplestory/v1/user/union-artifact",{params:i});return new be(a)}async getGuild(t,e){const{data:i}=await this.client.get("maplestory/v1/guild/id",{params:{guild_name:t,world_name:e}});return new Ut(i)}async getGuildBasic(t,e){const i={oguild_id:t,date:e?Ae.toDateString({year:2023,month:12,day:21},e):void 0},{data:a}=await this.client.get("maplestory/v1/guild/basic",{params:i});return new Bt(a)}async getStarforceHistory(t,e){const i={count:t};"string"==typeof e?i.cursor=e:"object"!=typeof e&&void 0!==e||(i.date=Ae.toDateString({year:2023,month:12,day:27},e??Ae.getProperDefaultDateOptions({hour:0,minute:0,dateOffset:0})));const{data:a}=await this.client.get("maplestory/v1/history/starforce",{params:i});return new Vt(a)}async getCubeHistory(t,e){const i={count:t};"string"==typeof e?i.cursor=e:"object"!=typeof e&&void 0!==e||(i.date=Ae.toDateString({year:2022,month:11,day:25},e??Ae.getProperDefaultDateOptions({hour:4,minute:0,dateOffset:1})));const{data:a}=await this.client.get("maplestory/v1/history/cube",{params:i});return new Gt(a)}async getPotentialHistory(t,e){const i={count:t};"string"==typeof e?i.cursor=e:"object"!=typeof e&&void 0!==e||(i.date=Ae.toDateString({year:2024,month:1,day:25},e??Ae.getProperDefaultDateOptions({hour:4,minute:0,dateOffset:1})));const{data:a}=await this.client.get("maplestory/v1/history/potential",{params:i});return new jt(a)}async getOverallRanking(t,e=Ae.getProperDefaultDateOptions({hour:8,minute:30,dateOffset:0})){const i={date:Ae.toDateString({year:2023,month:12,day:22},e)};if(t){const{worldName:e,worldType:a,characterClass:r,ocid:n,page:o}=t;i.world_name=e,i.world_type=a,i.class=r,i.ocid=n,i.page=o}const{data:a}=await this.client.get("maplestory/v1/ranking/overall",{params:i});return new me(a)}async getUnionRanking(t,e=Ae.getProperDefaultDateOptions({hour:8,minute:30,dateOffset:0})){const i={date:Ae.toDateString({year:2023,month:12,day:22},e)};if(t){const{worldName:e,ocid:a,page:r}=t;i.world_name=e,i.ocid=a,i.page=r}const{data:a}=await this.client.get("maplestory/v1/ranking/union",{params:i});return new ye(a)}async getGuildRanking(t,e=Ae.getProperDefaultDateOptions({hour:8,minute:30,dateOffset:0})){const i={date:Ae.toDateString({year:2023,month:12,day:22},e),ranking_type:0};if(t){const{worldName:e,rankingType:a,ocid:r,page:n}=t;i.world_name=e,i.ranking_type=a,i.ocid=r,i.page=n}const{data:a}=await this.client.get("maplestory/v1/ranking/guild",{params:i});return new pe(a)}async getDojangRanking(t,e=Ae.getProperDefaultDateOptions({hour:8,minute:30,dateOffset:0})){const i={date:Ae.toDateString({year:2023,month:12,day:22},e),difficulty:0};if(t){const{worldName:e,difficulty:a,characterClass:r,ocid:n,page:o}=t;i.world_name=e,i.difficulty=a,i.class=r,i.ocid=n,i.page=o}const{data:a}=await this.client.get("maplestory/v1/ranking/dojang",{params:i});return new he(a)}async getSeedRanking(t,e=Ae.getProperDefaultDateOptions({hour:8,minute:30,dateOffset:0})){const i={date:Ae.toDateString({year:2023,month:12,day:22},e)};if(t){const{worldName:e,ocid:a,page:r}=t;i.world_name=e,i.ocid=a,i.page=r}const{data:a}=await this.client.get("maplestory/v1/ranking/theseed",{params:i});return new _e(a)}async getAchievementRanking(t,e=Ae.getProperDefaultDateOptions({hour:8,minute:30,dateOffset:0})){const i={date:Ae.toDateString({year:2023,month:12,day:22},e)};if(t){const{ocid:e,page:a}=t;i.ocid=e,i.page=a}const{data:a}=await this.client.get("maplestory/v1/ranking/achievement",{params:i});return new ce(a)}async getNoticeList(){const{data:t}=await this.client.get("maplestory/v1/notice");return new ae(t)}async getNoticeDetail(t){const e={notice_id:t},{data:i}=await this.client.get("maplestory/v1/notice/detail",{params:e});return new ee(i)}async getUpdateNoticeList(){const{data:t}=await this.client.get("maplestory/v1/notice-update");return new oe(t)}async getUpdateNoticeDetail(t){const e={notice_id:t},{data:i}=await this.client.get("maplestory/v1/notice-update/detail",{params:e});return new re(i)}async getEventNoticeList(){const{data:t}=await this.client.get("maplestory/v1/notice-event");return new te(t)}async getEventNoticeDetail(t){const e={notice_id:t},{data:i}=await this.client.get("maplestory/v1/notice-event/detail",{params:e});return new Jt(i)}async getCashshopNoticeList(){const{data:t}=await this.client.get("maplestory/v1/notice-cashshop");return new Xt(t)}async getCashshopNoticeDetail(t){const e={notice_id:t},{data:i}=await this.client.get("maplestory/v1/notice-cashshop/detail",{params:e});return new Qt(i)}async getInspectionInfo(){const t=(new s.default.Builder).buildObject({"soap:Envelope":{$:{"xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:soap":"http://schemas.xmlsoap.org/soap/envelope/"},"soap:Body":{GetInspectionInfo:{$:{xmlns:"https://api.maplestory.nexon.com/soap/"}}}}}),e=await n.default.post("soap/maplestory.asmx",t,{baseURL:"https://api.maplestory.nexon.com/",timeout:this.timeout,headers:{SOAPAction:"https://api.maplestory.nexon.com/soap/GetInspectionInfo","Content-Type":"text/xml; charset=utf-8"}}),i=await s.default.parseStringPromise(e.data);return new Wt(i)}static getProperDefaultDateOptions(t){const{hour:e,minute:i,dateOffset:a}=t,r=o.default().utcOffset(Ae.kstOffset),n=o.default().utcOffset(Ae.kstOffset).hour(e).minute(i);let s;return s=r.isAfter(n)?r:r.subtract(1,"day"),s=s.subtract(a??0,"day"),{year:s.year(),month:s.month()+1,day:s.date()}}static toDateString(t,e){const{year:i,month:a,day:r}=t,{year:n,month:s,day:c}=e;if(n<i||n===i&&s<a||n===i&&s===a&&c<r)throw new Error(`You can only retrieve data after ${o.default(`${i}-${a}-${r}`).format("YYYY-MM-DD")}.`);return o.default(`${n}-${s}-${c}`).utcOffset(Ae.kstOffset).format("YYYY-MM-DD")}}t.AchievementRankingDto=se,t.AchievementRankingResponseDto=ce,t.CashshopNoticeDetailDto=Qt,t.CashshopNoticeListDto=Xt,t.CashshopNoticeListItemDto=Zt,t.CharacterAbilityDto=P,t.CharacterAbilityInfoDto=I,t.CharacterAbilityPresetDto=D,t.CharacterAndroidCashItemEquipmentColoringPrismDto=x,t.CharacterAndroidCashItemEquipmentDto=N,t.CharacterAndroidCashItemEquipmentOptionDto=O,t.CharacterAndroidEquipmentDto=B,t.CharacterAndroidEquipmentFaceDto=A,t.CharacterAndroidEquipmentHairDto=L,t.CharacterAndroidEquipmentPresetDto=q,t.CharacterBasicDto=U,t.CharacterBeautyEquipmentDto=G,t.CharacterBeautyEquipmentFaceDto=T,t.CharacterBeautyEquipmentHairDto=F,t.CharacterCashItemEquipmentColoringPrismDto=$,t.CharacterCashItemEquipmentDto=Y,t.CharacterCashItemEquipmentOptionDto=H,t.CharacterCashItemEquipmentPresetDto=j,t.CharacterDojangDto=z,t.CharacterDto=V,t.CharacterHexaMatrixDto=Z,t.CharacterHexaMatrixEquipmentDto=Q,t.CharacterHexaMatrixEquipmentLinkedSkillDto=W,t.CharacterHexaMatrixStatCoreDto=X,t.CharacterHexaMatrixStatDto=J,t.CharacterHyperStatDto=tt,t.CharacterHyperStatPresetDto=K,t.CharacterImageDto=et,t.CharacterItemEquipmentAddOptionDto=it,t.CharacterItemEquipmentBaseOptionDto=at,t.CharacterItemEquipmentDragonInfoDto=ct,t.CharacterItemEquipmentDto=pt,t.CharacterItemEquipmentEtcOptionDto=rt,t.CharacterItemEquipmentExceptionalOptionDto=nt,t.CharacterItemEquipmentInfoDto=lt,t.CharacterItemEquipmentMechanicInfoDto=ht,t.CharacterItemEquipmentStarforceOptionDto=ot,t.CharacterItemEquipmentTitleDto=ut,t.CharacterItemEquipmentTotalOptionDto=st,t.CharacterLinkSkillDto=mt,t.CharacterLinkSkillInfoDto=dt,t.CharacterListAccountCharacterDto=ft,t.CharacterListAccountDto=_t,t.CharacterListDto=gt,t.CharacterPetEquipmentAutoSkillDto=yt,t.CharacterPetEquipmentDto=bt,t.CharacterPetEquipmentItemDto=Et,t.CharacterPetEquipmentItemOptionDto=wt,t.CharacterPopularityDto=vt,t.CharacterPropensityDto=St,t.CharacterSetEffectDto=Dt,t.CharacterSetEffectInfoDto=kt,t.CharacterSetEffectOptionFullDto=Ct,t.CharacterSetEffectSetDto=It,t.CharacterSkillDto=xt,t.CharacterSkillInfoDto=Pt,t.CharacterStatDto=Ot,t.CharacterSymbolEquipmentDto=At,t.CharacterSymbolEquipmentInfoDto=Nt,t.CharacterVMatrixCodeEquipmentDto=Lt,t.CharacterVMatrixDto=Rt,t.CubeHistoryDto=Mt,t.CubeHistoryResponseDto=Gt,t.CubeResultOptionDto=Ft,t.DojangRankingDto=le,t.DojangRankingResponseDto=he,t.EventNoticeDetailDto=Jt,t.EventNoticeListDto=te,t.EventNoticeListItemDto=Kt,t.GuildBasicDto=Bt,t.GuildDto=Ut,t.GuildRankingDto=ue,t.GuildRankingResponseDto=pe,t.GuildSkillDto=qt,t.InspectionInfoDto=Wt,t.MapleStoryApi=Ae,t.MapleStoryApiError=xe,t.NoticeDetailDto=ee,t.NoticeListDto=ae,t.NoticeListItemDto=ie,t.OverallRankingDto=de,t.OverallRankingResponseDto=me,t.PotentialHistoryDto=Ht,t.PotentialHistoryResponseDto=jt,t.PotentialResultOptionDto=$t,t.StarforceEventDto=Yt,t.StarforceHistoryDto=zt,t.StarforceHistoryResponseDto=Vt,t.TheSeedRankingDto=fe,t.TheSeedRankingResponseDto=_e,t.UnionArtifactCrystalDto=we,t.UnionArtifactDto=be,t.UnionArtifactEffectDto=Ee,t.UnionDto=ve,t.UnionRaiderBlockControlPointDto=ke,t.UnionRaiderBlockDto=Ce,t.UnionRaiderBlockPositionDto=Se,t.UnionRaiderDto=Pe,t.UnionRaiderInnerStatDto=Ie,t.UnionRaiderPresetDto=De,t.UnionRankingDto=ge,t.UnionRankingResponseDto=ye,t.UpdateNoticeDetailDto=re,t.UpdateNoticeListDto=oe,t.UpdateNoticeListItemDto=ne,t.potentialOptionGradeFromString=Tt}));
package/dist/index.mjs CHANGED
@@ -3599,6 +3599,14 @@ class CharacterImageDto {
3599
3599
  * 캐릭터 무기 모션
3600
3600
  */
3601
3601
  wmotion;
3602
+ /**
3603
+ * 캐릭터 액션 프레임
3604
+ */
3605
+ actionFrame;
3606
+ /**
3607
+ * 캐릭터 감정표현 프레임
3608
+ */
3609
+ emotionFrame;
3602
3610
  /**
3603
3611
  * 가로 길이. 배경 크기에 해당함, 96 (default) ~ 1000
3604
3612
  */
@@ -3623,6 +3631,8 @@ class CharacterImageDto {
3623
3631
  this.action = obj.action;
3624
3632
  this.emotion = obj.emotion;
3625
3633
  this.wmotion = obj.wmotion;
3634
+ this.actionFrame = obj.actionFrame;
3635
+ this.emotionFrame = obj.emotionFrame;
3626
3636
  this.width = obj.width;
3627
3637
  this.height = obj.height;
3628
3638
  this.x = obj.x;
@@ -7501,15 +7511,23 @@ class MapleStoryApi {
7501
7511
  */
7502
7512
  async getCharacterImage(ocid, imageOptions, dateOptions) {
7503
7513
  const { date, characterImage: path } = await this.getCharacterBasic(ocid, dateOptions);
7514
+ const action = imageOptions?.action ?? CharacterImageAction.Stand1;
7515
+ const emotion = imageOptions?.emotion ?? CharacterImageEmotion.Default;
7516
+ const wmotion = imageOptions?.wmotion ?? CharacterImageWeaponMotion.Default;
7517
+ const actionFrame = imageOptions?.actionFrame ?? 0;
7518
+ const emotionFrame = imageOptions?.emotionFrame ?? 0;
7519
+ const width = 96;
7520
+ const height = 96;
7521
+ const x = imageOptions?.x ?? null;
7522
+ const y = imageOptions?.y ?? null;
7504
7523
  const query = {
7505
- action: CharacterImageAction.Stand1,
7506
- emotion: CharacterImageEmotion.Default,
7507
- wmotion: CharacterImageWeaponMotion.Default,
7508
- width: 96,
7509
- height: 96,
7510
- x: null,
7511
- y: null,
7512
- ...imageOptions,
7524
+ action: `${action}.${actionFrame}`,
7525
+ emotion: `${emotion}.${emotionFrame}`,
7526
+ wmotion,
7527
+ width,
7528
+ height,
7529
+ x,
7530
+ y,
7513
7531
  };
7514
7532
  const urlImageToBase64 = async (path, query) => {
7515
7533
  const { data, headers } = await axios.get(path, {
@@ -7529,7 +7547,15 @@ class MapleStoryApi {
7529
7547
  originUrl: path,
7530
7548
  originImage,
7531
7549
  image,
7532
- ...query,
7550
+ action,
7551
+ emotion,
7552
+ wmotion,
7553
+ actionFrame,
7554
+ emotionFrame,
7555
+ width,
7556
+ height,
7557
+ x,
7558
+ y,
7533
7559
  });
7534
7560
  }
7535
7561
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "maplestory-openapi",
3
- "version": "2.9.0",
3
+ "version": "2.10.0",
4
4
  "description": "This JavaScript library enables the use of the MapleStory OpenAPI of Nexon.",
5
5
  "keywords": [
6
6
  "maplestory",
@@ -30,6 +30,14 @@ declare class CharacterImageDto {
30
30
  * 캐릭터 무기 모션
31
31
  */
32
32
  wmotion: CharacterImageWeaponMotion;
33
+ /**
34
+ * 캐릭터 액션 프레임
35
+ */
36
+ actionFrame: number | null;
37
+ /**
38
+ * 캐릭터 감정표현 프레임
39
+ */
40
+ emotionFrame: number | null;
33
41
  /**
34
42
  * 가로 길이. 배경 크기에 해당함, 96 (default) ~ 1000
35
43
  */
@@ -54,6 +62,8 @@ declare class CharacterImageDto {
54
62
  action: CharacterImageAction;
55
63
  emotion: CharacterImageEmotion;
56
64
  wmotion: CharacterImageWeaponMotion;
65
+ actionFrame: number | null;
66
+ emotionFrame: number | null;
57
67
  width: number;
58
68
  height: number;
59
69
  x: number | null;
@@ -599,6 +599,14 @@ type CharacterImageOptions = {
599
599
  * 캐릭터 무기 모션
600
600
  */
601
601
  wmotion?: CharacterImageWeaponMotion;
602
+ /**
603
+ * 캐릭터 액션 프레임.
604
+ */
605
+ actionFrame?: number;
606
+ /**
607
+ * 캐릭터 감정표현 프레임
608
+ */
609
+ emotionFrame?: number;
602
610
  /**
603
611
  * 가로 길이. 배경 크기에 해당함, 96 (default) ~ 1000
604
612
  */