maplestory-openapi 2.10.0 → 2.11.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
@@ -3186,8 +3186,12 @@ class CharacterCashItemEquipmentPresetDto {
3186
3186
  * 아이템 장착 가능 성별
3187
3187
  */
3188
3188
  itemGender;
3189
+ /**
3190
+ * 스킬명
3191
+ */
3192
+ skills;
3189
3193
  constructor(obj) {
3190
- const { cash_item_equipment_part, cash_item_equipment_slot, cash_item_name, cash_item_icon, cash_item_description, cash_item_option, date_expire, date_option_expire, cash_item_label, cash_item_coloring_prism, item_gender, } = obj;
3194
+ const { cash_item_equipment_part, cash_item_equipment_slot, cash_item_name, cash_item_icon, cash_item_description, cash_item_option, date_expire, date_option_expire, cash_item_label, cash_item_coloring_prism, item_gender, skills, } = obj;
3191
3195
  this.cashItemEquipmentPart = cash_item_equipment_part;
3192
3196
  this.cashItemEquipmentSlot = cash_item_equipment_slot;
3193
3197
  this.cashItemName = cash_item_name;
@@ -3201,6 +3205,7 @@ class CharacterCashItemEquipmentPresetDto {
3201
3205
  ? new CharacterCashItemEquipmentColoringPrismDto(cash_item_coloring_prism)
3202
3206
  : null;
3203
3207
  this.itemGender = item_gender;
3208
+ this.skills = skills;
3204
3209
  }
3205
3210
  }
3206
3211
 
@@ -4684,6 +4689,45 @@ class CharacterItemEquipmentMechanicInfoDto {
4684
4689
  }
4685
4690
  }
4686
4691
 
4692
+ /**
4693
+ * 캐릭터 외형 설정에 등록한 훈장 외형 정보
4694
+ */
4695
+ class CharacterItemEquipmentMedalShapeDto {
4696
+ /**
4697
+ * 외형 설정에 등록한 훈장 장비 명
4698
+ */
4699
+ medalShapeName;
4700
+ /**
4701
+ * 외형 설정에 등록한 훈장 아이콘
4702
+ */
4703
+ medalShapeIcon;
4704
+ /**
4705
+ * 외형 설정에 등록한 훈장 설명
4706
+ */
4707
+ medalShapeDescription;
4708
+ /**
4709
+ * 외형 설정에 등록한 훈장의 모루 적용 장비 명
4710
+ */
4711
+ medalShapeChangedName;
4712
+ /**
4713
+ * 외형 설정에 등록한 훈장의 모루 적용 아이콘
4714
+ */
4715
+ medalShapeChangedIcon;
4716
+ /**
4717
+ * 외형 설정에 등록한 훈장의 모루 적용 훈장 설명
4718
+ */
4719
+ medalShapeChangedDescription;
4720
+ constructor(obj) {
4721
+ const { medal_shape_name, medal_shape_icon, medal_shape_description, medal_shape_changed_name, medal_shape_changed_icon, medal_shape_changed_description, } = obj;
4722
+ this.medalShapeName = medal_shape_name;
4723
+ this.medalShapeIcon = medal_shape_icon;
4724
+ this.medalShapeDescription = medal_shape_description;
4725
+ this.medalShapeChangedName = medal_shape_changed_name;
4726
+ this.medalShapeChangedIcon = medal_shape_changed_icon;
4727
+ this.medalShapeChangedDescription = medal_shape_changed_description;
4728
+ }
4729
+ }
4730
+
4687
4731
  /**
4688
4732
  * 캐릭터 칭호 아이템 정보
4689
4733
  */
@@ -4712,12 +4756,27 @@ class CharacterItemEquipmentTitleDto {
4712
4756
  * 칭호 옵션 유효 기간 만료 여부
4713
4757
  */
4714
4758
  isOptionExpired = null;
4759
+ /**
4760
+ * 외형 설정에 등록한 칭호 장비 명
4761
+ */
4762
+ titleShapeName;
4763
+ /**
4764
+ * 외형 설정에 등록한 칭호 아이콘
4765
+ */
4766
+ titleShapeIcon;
4767
+ /**
4768
+ * 외형 설정에 등록한 칭호 설명
4769
+ */
4770
+ titleShapeDescription;
4715
4771
  constructor(obj) {
4716
- const { title_name, title_icon, title_description, date_expire, date_option_expire, } = obj;
4772
+ const { title_name, title_icon, title_description, date_expire, date_option_expire, title_shape_name, title_shape_icon, title_shape_description, } = obj;
4717
4773
  this.titleName = title_name;
4718
4774
  this.titleIcon = title_icon;
4719
4775
  this.titleDescription = title_description;
4720
4776
  this.dateExpire = date_expire ? new Date(date_expire) : null;
4777
+ this.titleShapeName = title_shape_name;
4778
+ this.titleShapeIcon = title_shape_icon;
4779
+ this.titleShapeDescription = title_shape_description;
4721
4780
  if (date_option_expire === 'expired') {
4722
4781
  this.isOptionExpired = true;
4723
4782
  }
@@ -4769,6 +4828,10 @@ class CharacterItemEquipmentDto {
4769
4828
  * 칭호 정보
4770
4829
  */
4771
4830
  title;
4831
+ /**
4832
+ * 외형 설정에 등록한 훈장 외형 정보
4833
+ */
4834
+ medalShape;
4772
4835
  /**
4773
4836
  * 에반 드래곤 장비 정보 (에반인 경우 응답)
4774
4837
  */
@@ -4778,7 +4841,7 @@ class CharacterItemEquipmentDto {
4778
4841
  */
4779
4842
  mechanicEquipment;
4780
4843
  constructor(obj) {
4781
- const { date, character_gender, character_class, preset_no, item_equipment, item_equipment_preset_1, item_equipment_preset_2, item_equipment_preset_3, title, dragon_equipment, mechanic_equipment, } = obj;
4844
+ const { date, character_gender, character_class, preset_no, item_equipment, item_equipment_preset_1, item_equipment_preset_2, item_equipment_preset_3, title, medal_shape, dragon_equipment, mechanic_equipment, } = obj;
4782
4845
  this.date = date ? new Date(date) : null;
4783
4846
  this.characterGender = character_gender;
4784
4847
  this.characterClass = character_class;
@@ -4788,6 +4851,7 @@ class CharacterItemEquipmentDto {
4788
4851
  this.itemEquipmentPreset2 = item_equipment_preset_2 ? item_equipment_preset_2.map((equipment) => new CharacterItemEquipmentInfoDto(equipment)) : null;
4789
4852
  this.itemEquipmentPreset3 = item_equipment_preset_3 ? item_equipment_preset_3.map((equipment) => new CharacterItemEquipmentInfoDto(equipment)) : null;
4790
4853
  this.title = title ? new CharacterItemEquipmentTitleDto(title) : null;
4854
+ this.medalShape = medal_shape ? new CharacterItemEquipmentMedalShapeDto(medal_shape) : null;
4791
4855
  this.dragonEquipment = dragon_equipment.map((equipment) => new CharacterItemEquipmentDragonInfoDto(equipment));
4792
4856
  this.mechanicEquipment = mechanic_equipment.map((equipment) => new CharacterItemEquipmentMechanicInfoDto(equipment));
4793
4857
  }
@@ -7413,6 +7477,73 @@ const errorMap = {
7413
7477
  ['OPENAPI00011']: exports.MapleStoryApiErrorCode.OPENAPI00011,
7414
7478
  };
7415
7479
 
7480
+ /**
7481
+ * 유니온 챔피언 휘장 정보
7482
+ */
7483
+ class UnionChampionBadgeInfoDto {
7484
+ /**
7485
+ * 유니온 챔피언 휘장 효과
7486
+ */
7487
+ stat;
7488
+ constructor(obj) {
7489
+ const { stat } = obj;
7490
+ this.stat = stat;
7491
+ }
7492
+ }
7493
+
7494
+ /**
7495
+ * 유니온 챔피언 상세 정보
7496
+ */
7497
+ class UnionChampionInfoDto {
7498
+ /**
7499
+ * 유니온 챔피언 슬롯
7500
+ */
7501
+ championSlot;
7502
+ /**
7503
+ * 유니온 챔피언 등급
7504
+ */
7505
+ championGrade;
7506
+ /**
7507
+ * 유니온 챔피언 캐릭터의 직업
7508
+ */
7509
+ championClass;
7510
+ /**
7511
+ * 챔피언 휘장 효과
7512
+ */
7513
+ championBadgeInfo;
7514
+ constructor(obj) {
7515
+ const { champion_slot, champion_grade, champion_class, champion_badge_info } = obj;
7516
+ this.championSlot = champion_slot;
7517
+ this.championGrade = champion_grade;
7518
+ this.championClass = champion_class;
7519
+ this.championBadgeInfo = champion_badge_info.map((info) => new UnionChampionBadgeInfoDto(info));
7520
+ }
7521
+ }
7522
+
7523
+ /**
7524
+ * 유니온 챔피언 정보
7525
+ */
7526
+ class UnionChampionDto {
7527
+ /**
7528
+ * 조회 기준일
7529
+ */
7530
+ date;
7531
+ /**
7532
+ * 유니온 챔피언 정보
7533
+ */
7534
+ unionChampion;
7535
+ /**
7536
+ * 유니온 챔피언 휘장 정보
7537
+ */
7538
+ championBadgeTotalInfo;
7539
+ constructor(obj) {
7540
+ const { date, union_champion, champion_badge_total_info } = obj;
7541
+ this.date = date ? new Date(date) : null;
7542
+ this.unionChampion = union_champion.map((info) => new UnionChampionInfoDto(info));
7543
+ this.championBadgeTotalInfo = champion_badge_total_info.map((info) => new UnionChampionBadgeInfoDto(info));
7544
+ }
7545
+ }
7546
+
7416
7547
  dayjs__default["default"].extend(timezone);
7417
7548
  dayjs__default["default"].extend(utc);
7418
7549
  /**
@@ -8166,6 +8297,35 @@ class MapleStoryApi {
8166
8297
  });
8167
8298
  return new UnionArtifactDto(data);
8168
8299
  }
8300
+ /**
8301
+ * 유니온 챔피언 정보를 조회합니다.<br>
8302
+ * 유니온 챔피언 정보는 2025년 2월 20일 메이플스토리 점검 이후 데이터부터 조회 가능합니다.<br>
8303
+ * - 메이플스토리 게임 데이터는 평균 15분 후 확인 가능합니다.
8304
+ * - 2023년 12월 21일 데이터부터 조회할 수 있습니다.
8305
+ * - 과거 데이터는 원하는 일자를 입력해 조회할 수 있으며, 전일 데이터는 다음날 오전 2시부터 확인할 수 있습니다. (12월 22일 데이터 조회 시, 22일 00시부터 23일 00시 사이 데이터가 조회 됩니다.)
8306
+ * - 게임 콘텐츠 변경으로 ocid가 변경될 수 있습니다. ocid 기반 서비스 갱신 시 유의해 주시길 바랍니다.
8307
+ *
8308
+ * @param ocid 캐릭터 식별자
8309
+ * @param dateOptions 조회 기준일 (KST)
8310
+ */
8311
+ async getUnionChampion(ocid, dateOptions) {
8312
+ const path = 'maplestory/v1/user/union-champion';
8313
+ const date = dateOptions
8314
+ ? MapleStoryApi.toDateString({
8315
+ year: 2023,
8316
+ month: 12,
8317
+ day: 21,
8318
+ }, dateOptions)
8319
+ : undefined;
8320
+ const query = {
8321
+ ocid: ocid,
8322
+ date: date,
8323
+ };
8324
+ const { data } = await this.client.get(path, {
8325
+ params: query,
8326
+ });
8327
+ return new UnionChampionDto(data);
8328
+ }
8169
8329
  //#endregion
8170
8330
  //#region 길드 정보 조회
8171
8331
  /**
package/dist/index.min.js CHANGED
@@ -1,10 +1,10 @@
1
- !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("axios"),require("dayjs"),require("xml2js")):"function"==typeof define&&define.amd?define(["exports","axios","dayjs","xml2js"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self)["maplestory-openapi"]={},t.axios,t.dayjs,t.xml2js)}(this,(function(t,e,i,a){"use strict";function r(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}for(var n=r(e),o=r(i),s=r(a),c=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self,{}),l={byteLength:function(t){var e=f(t),i=e[0],a=e[1];return 3*(i+a)/4-a},toByteArray:function(t){var e,i,a=f(t),r=a[0],n=a[1],o=new p(function(t,e,i){return 3*(e+i)/4-i}(0,r,n)),s=0,c=n>0?r-4:r;for(i=0;i<c;i+=4)e=u[t.charCodeAt(i)]<<18|u[t.charCodeAt(i+1)]<<12|u[t.charCodeAt(i+2)]<<6|u[t.charCodeAt(i+3)],o[s++]=e>>16&255,o[s++]=e>>8&255,o[s++]=255&e;2===n&&(e=u[t.charCodeAt(i)]<<2|u[t.charCodeAt(i+1)]>>4,o[s++]=255&e);1===n&&(e=u[t.charCodeAt(i)]<<10|u[t.charCodeAt(i+1)]<<4|u[t.charCodeAt(i+2)]>>2,o[s++]=e>>8&255,o[s++]=255&e);return o},fromByteArray:function(t){for(var e,i=t.length,a=i%3,r=[],n=16383,o=0,s=i-a;o<s;o+=n)r.push(_(t,o,o+n>s?s:o+n));1===a?(e=t[i-1],r.push(h[e>>2]+h[e<<4&63]+"==")):2===a&&(e=(t[i-2]<<8)+t[i-1],r.push(h[e>>10]+h[e>>4&63]+h[e<<2&63]+"="));return r.join("")}},h=[],u=[],p="undefined"!=typeof Uint8Array?Uint8Array:Array,d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",m=0;m<64;++m)h[m]=d[m],u[d.charCodeAt(m)]=m;function f(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=t.indexOf("=");return-1===i&&(i=e),[i,i===e?0:4-i%4]}function _(t,e,i){for(var a,r,n=[],o=e;o<i;o+=3)a=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(255&t[o+2]),n.push(h[(r=a)>>18&63]+h[r>>12&63]+h[r>>6&63]+h[63&r]);return n.join("")}u["-".charCodeAt(0)]=62,u["_".charCodeAt(0)]=63;var g={
1
+ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("axios"),require("dayjs"),require("xml2js")):"function"==typeof define&&define.amd?define(["exports","axios","dayjs","xml2js"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self)["maplestory-openapi"]={},t.axios,t.dayjs,t.xml2js)}(this,(function(t,e,i,a){"use strict";function r(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}for(var n=r(e),o=r(i),s=r(a),c=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self,{}),l={byteLength:function(t){var e=f(t),i=e[0],a=e[1];return 3*(i+a)/4-a},toByteArray:function(t){var e,i,a=f(t),r=a[0],n=a[1],o=new u(function(t,e,i){return 3*(e+i)/4-i}(0,r,n)),s=0,c=n>0?r-4:r;for(i=0;i<c;i+=4)e=p[t.charCodeAt(i)]<<18|p[t.charCodeAt(i+1)]<<12|p[t.charCodeAt(i+2)]<<6|p[t.charCodeAt(i+3)],o[s++]=e>>16&255,o[s++]=e>>8&255,o[s++]=255&e;2===n&&(e=p[t.charCodeAt(i)]<<2|p[t.charCodeAt(i+1)]>>4,o[s++]=255&e);1===n&&(e=p[t.charCodeAt(i)]<<10|p[t.charCodeAt(i+1)]<<4|p[t.charCodeAt(i+2)]>>2,o[s++]=e>>8&255,o[s++]=255&e);return o},fromByteArray:function(t){for(var e,i=t.length,a=i%3,r=[],n=16383,o=0,s=i-a;o<s;o+=n)r.push(_(t,o,o+n>s?s:o+n));1===a?(e=t[i-1],r.push(h[e>>2]+h[e<<4&63]+"==")):2===a&&(e=(t[i-2]<<8)+t[i-1],r.push(h[e>>10]+h[e>>4&63]+h[e<<2&63]+"="));return r.join("")}},h=[],p=[],u="undefined"!=typeof Uint8Array?Uint8Array:Array,d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",m=0;m<64;++m)h[m]=d[m],p[d.charCodeAt(m)]=m;function f(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=t.indexOf("=");return-1===i&&(i=e),[i,i===e?0:4-i%4]}function _(t,e,i){for(var a,r,n=[],o=e;o<i;o+=3)a=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(255&t[o+2]),n.push(h[(r=a)>>18&63]+h[r>>12&63]+h[r>>6&63]+h[63&r]);return n.join("")}p["-".charCodeAt(0)]=62,p["_".charCodeAt(0)]=63;var g={
2
2
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
3
- 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?-1:1,d=t[e+u];for(u+=p,n=d&(1<<-h)-1,d>>=-h,h+=s;h>0;n=256*n+t[e+u],u+=p,h-=8);for(o=n&(1<<-h)-1,n>>=-h,h+=a;h>0;o=256*o+t[e+u],u+=p,h-=8);if(0===n)n=1-l;else{if(n===c)return o?NaN:1/0*(d?-1:1);o+=Math.pow(2,a),n-=l}return(d?-1:1)*o*Math.pow(2,n-a)},write:function(t,e,i,a,r,n){var o,s,c,l=8*n-r-1,h=(1<<l)-1,u=h>>1,p=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,d=a?0:n-1,m=a?1:-1,f=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=h):(o=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-o))<1&&(o--,c*=2),(e+=o+u>=1?p/c:p*Math.pow(2,1-u))*c>=2&&(o++,c/=2),o+u>=h?(s=0,o=h):o+u>=1?(s=(e*c-1)*Math.pow(2,r),o+=u):(s=e*Math.pow(2,u-1)*Math.pow(2,r),o=0));r>=8;t[i+d]=255&s,d+=m,s/=256,r-=8);for(o=o<<r|s,l+=r;l>0;t[i+d]=255&o,d+=m,o/=256,l-=8);t[i+d-m]|=128*f}};
3
+ read:function(t,e,i,a,r){var n,o,s=8*r-a-1,c=(1<<s)-1,l=c>>1,h=-7,p=i?r-1:0,u=i?-1:1,d=t[e+p];for(p+=u,n=d&(1<<-h)-1,d>>=-h,h+=s;h>0;n=256*n+t[e+p],p+=u,h-=8);for(o=n&(1<<-h)-1,n>>=-h,h+=a;h>0;o=256*o+t[e+p],p+=u,h-=8);if(0===n)n=1-l;else{if(n===c)return o?NaN:1/0*(d?-1:1);o+=Math.pow(2,a),n-=l}return(d?-1:1)*o*Math.pow(2,n-a)},write:function(t,e,i,a,r,n){var o,s,c,l=8*n-r-1,h=(1<<l)-1,p=h>>1,u=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,d=a?0:n-1,m=a?1:-1,f=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=h):(o=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-o))<1&&(o--,c*=2),(e+=o+p>=1?u/c:u*Math.pow(2,1-p))*c>=2&&(o++,c/=2),o+p>=h?(s=0,o=h):o+p>=1?(s=(e*c-1)*Math.pow(2,r),o+=p):(s=e*Math.pow(2,p-1)*Math.pow(2,r),o=0));r>=8;t[i+d]=255&s,d+=m,s/=256,r-=8);for(o=o<<r|s,l+=r;l>0;t[i+d]=255&o,d+=m,o/=256,l-=8);t[i+d-m]|=128*f}};
4
4
  /*!
5
5
  * The buffer module from node.js, for the browser.
6
6
  *
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 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}));
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 u(e.buffer,e.byteOffset,e.byteLength)}return p(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 u(t,e,i);if("undefined"!=typeof SharedArrayBuffer&&(Q(t,SharedArrayBuffer)||t&&Q(t.buffer,SharedArrayBuffer)))return u(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):p(t);if("Buffer"===t.type&&Array.isArray(t.data))return p(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 p(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 u(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 k(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 C(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 k(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 C(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 B(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 q(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||q(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||q(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 B(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 B(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,p=e[l];p>=0&&(n[p]=parseInt(h,10))}var u=n[3],d=24===u?0:u,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],p=l[1],u=r(h).utcOffset(p);return u.$x.$timezone=o,u},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 p=o.toDate;o.toDate=function(t){return"s"===t&&this.$offset?n(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():p.call(this)};var u=o.diff;o.diff=function(t,e,i){if(t&&this.$u===t.$u)return u.call(this,t,e,i);var a=this.local(),r=n(t).local();return u.call(a,r,e,i)}}}()}(E);var b,v,S,C,k=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 B{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:p,android_shop_usable_flag:u}=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=p,this.androidShopUsableFlag=u}}class q{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:p,android_grade:u,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=p,this.androidGrade=u,this.androidNonHumanoidFlag=d,this.androidShopUsableFlag=m,this.presetNo=f,this.androidPreset1=_?new B(_):null,this.androidPreset2=g?new B(g):null,this.androidPreset3=y?new B(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:p,character_date_create:u,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=p,this.characterDateCreate=new Date(u),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;skills;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:p,skills: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=p,this.skills=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:p,additional_cash_item_equipment_preset_2:u,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=p.map((t=>new j(t))),this.additionalCashItemEquipmentPreset2=u.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:p,boss_damage:u,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=p,this.bossDamage=u,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:p,boss_damage:u,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=p,this.bossDamage=u,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:p}=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=p}}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:p}=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=p}}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:p,boss_damage:u,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=p,this.bossDamage=u,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:p,item_exceptional_option:u,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:C,starforce_scroll_flag:k,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=p,this.itemExceptionalOption=new nt(u),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=C,this.starforceScrollFlag=k,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:p,additional_potential_option_grade:u,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:C,cuttable_count:k,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:B,date_expire:q}=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=p,this.additionalPotentialOptionGrade=u,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=C,this.cuttableCount=k,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=B,this.dateExpire=q?new Date(q):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:p,item_exceptional_option:u,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:C,starforce_scroll_flag:k,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=p,this.itemExceptionalOption=new nt(u),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=C,this.starforceScrollFlag=k,this.itemStarforceOption=new ot(I),this.specialRingLevel=D,this.dateExpire=P?new Date(P):null}}class pt{medalShapeName;medalShapeIcon;medalShapeDescription;medalShapeChangedName;medalShapeChangedIcon;medalShapeChangedDescription;constructor(t){const{medal_shape_name:e,medal_shape_icon:i,medal_shape_description:a,medal_shape_changed_name:r,medal_shape_changed_icon:n,medal_shape_changed_description:o}=t;this.medalShapeName=e,this.medalShapeIcon=i,this.medalShapeDescription=a,this.medalShapeChangedName=r,this.medalShapeChangedIcon=n,this.medalShapeChangedDescription=o}}class ut{titleName;titleIcon;titleDescription;dateExpire;dateOptionExpire=null;isOptionExpired=null;titleShapeName;titleShapeIcon;titleShapeDescription;constructor(t){const{title_name:e,title_icon:i,title_description:a,date_expire:r,date_option_expire:n,title_shape_name:o,title_shape_icon:s,title_shape_description:c}=t;this.titleName=e,this.titleIcon=i,this.titleDescription=a,this.dateExpire=r?new Date(r):null,this.titleShapeName=o,this.titleShapeIcon=s,this.titleShapeDescription=c,"expired"===n?this.isOptionExpired=!0:"string"==typeof n&&(this.dateOptionExpire=n?new Date(n):null)}}class dt{date;characterGender;characterClass;presetNo;itemEquipment;itemEquipmentPreset1;itemEquipmentPreset2;itemEquipmentPreset3;title;medalShape;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,medal_shape:h,dragon_equipment:p,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.medalShape=h?new pt(h):null,this.dragonEquipment=p.map((t=>new ct(t))),this.mechanicEquipment=u.map((t=>new ht(t)))}}class mt{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 ft{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 mt(t))),this.characterLinkSkillPreset1=r.map((t=>new mt(t))),this.characterLinkSkillPreset2=n.map((t=>new mt(t))),this.characterLinkSkillPreset3=o.map((t=>new mt(t))),this.characterOwnedLinkSkill=new mt(s),this.characterOwnedLinkSkillPreset1=c?new mt(c):null,this.characterOwnedLinkSkillPreset2=l?new mt(l):null,this.characterOwnedLinkSkillPreset3=h?new mt(h):null}}class _t{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 gt{accountId;characterList;constructor(t){const{account_id:e,character_list:i}=t;this.accountId=e,this.characterList=i.map((t=>new _t(t)))}}class yt{accountList;constructor(t){const{account_list:e}=t;this.accountList=e.map((t=>new gt(t)))}}class wt{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 Et{optionType;optionValue;constructor(t){const{option_type:e,option_value:i}=t;this.optionType=e,this.optionValue=i}}class bt{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 Et(t))),this.scrollUpgrade=n,this.scrollUpgradable=o,this.itemShape=s,this.itemShapeIcon=c}}class vt{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:p,pet_1_appearance_icon:u,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:C,pet_3_nickname:k,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 bt(o):null,this.pet1AutoSkill=s?new wt(s):null,this.pet1PetType=c,this.pet1Skill=l,this.pet1DateExpire=h?new Date(h):null,this.pet1Appearance=p,this.pet1AppearanceIcon=u,this.pet2Name=d,this.pet2Nickname=m,this.pet2Icon=f,this.pet2Description=_,this.pet2Equipment=g?new bt(g):null,this.pet2AutoSkill=y?new wt(y):null,this.pet2PetType=w,this.pet2Skill=E,this.pet2DateExpire=b?new Date(b):null,this.pet2Appearance=v,this.pet2AppearanceIcon=S,this.pet3Name=C,this.pet3Nickname=k,this.pet3Icon=I,this.pet3Description=D,this.pet3Equipment=P?new bt(P):null,this.pet3AutoSkill=x?new wt(x):null,this.pet3PetType=O,this.pet3Skill=N,this.pet3DateExpire=A?new Date(A):null,this.pet3Appearance=L,this.pet3AppearanceIcon=R}}class St{date;popularity;constructor(t){const{date:e,popularity:i}=t;this.date=e?new Date(e):null,this.popularity=i}}class Ct{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 It{setCount;setOption;constructor(t){const{set_count:e,set_option:i}=t;this.setCount=e,this.setOption=i}}class Dt{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 It(t)))}}class Pt{date;setEffect;constructor(t){const{date:e,set_effect:i}=t;this.date=e?new Date(e):null,this.setEffect=i.map((t=>new Dt(t)))}}class xt{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 Ot{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 xt(t)))}}class Nt{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 At{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:p,symbol_meso_rate:u,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=p??"0%",this.symbolMesoRate=u??"0%",this.symbolExpRate=d??"0%",this.symbolHp=h,this.symbolHp=h,this.symbolGrowthCount=m,this.symbolRequireGrowthCount=f}}class Lt{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 At(t)))}}class Rt{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 Bt{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 Rt(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 Ut{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:p}=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=p.map((t=>new qt(t)))}}class Tt{oguildId;constructor(t){const{oguild_id:e}=t;this.oguildId=e}}t.PotentialOptionGrade=void 0,(C=t.PotentialOptionGrade||(t.PotentialOptionGrade={}))[C.RARE=0]="RARE",C[C.EPIC=1]="EPIC",C[C.UNIQUE=2]="UNIQUE",C[C.LEGENDARY=3]="LEGENDARY";const Ft=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 Ft(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:p,additional_potential_option_grade:u,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=p,this.additionalPotentialOptionGrade=u,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 Ft(this.potentialOptionGrade)}get additionalPotentialOptionGradeEnum(){return Ft(this.additionalPotentialOptionGrade)}}class $t{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 Ht{value;grade;constructor(t){const{value:e,grade:i}=t;this.value=e,this.grade=i}get gradeEnum(){return Ft(this.grade)}}class jt{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:p,upgrade_guarantee:u,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=p,this.upgradeGuarantee=u,this.upgradeGuaranteeCount=d,this.beforePotentialOption=m.map((t=>new Ht(t))),this.beforeAdditionalPotentialOption=f.map((t=>new Ht(t))),this.afterPotentialOption=_.map((t=>new Ht(t))),this.afterAdditionalPotentialOption=g.map((t=>new Ht(t)))}get isItemUpgrade(){return"성공"===this.itemUpgradeResult}get isMiracleTimeFlag(){return"이벤트 적용되지 않음"!==this.miracleTimeFlag}get potentialOptionGradeEnum(){return Ft(this.potentialOptionGrade)}get additionalPotentialOptionGradeEnum(){return Ft(this.additionalPotentialOptionGrade)}}class Yt{count;potentialHistory;nextCursor;constructor(t){const{count:e,potential_history:i,next_cursor:a}=t;this.count=e,this.potentialHistory=i.map((t=>new jt(t))),this.nextCursor=a}}class zt{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 Vt{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:p,bonus_stat_upgrade:u,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=p,this.bonusStatUpgrade=u,this.characterName=d,this.worldName=m,this.targetItem=f,this.dateCreate=new Date(_),this.starforceEventList=g?.map((t=>new zt(t)))??null}}class Wt{count;starforceHistory;nextCursor;constructor(t){const{count:e,starforce_history:i,next_cursor:a}=t;this.count=e,this.starforceHistory=i.map((t=>new Vt(t))),this.nextCursor=a}}class Qt{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 Zt{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 Xt{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 Jt{cashshopNotice;constructor(t){const{cashshop_notice:e}=t;this.cashshopNotice=e.map((t=>new Xt(t)))}}class Kt{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 te{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 ee{eventNotice;constructor(t){const{event_notice:e}=t;this.eventNotice=e.map((t=>new te(t)))}}class ie{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 ae{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 re{notice;constructor(t){const{notice:e}=t;this.notice=e.map((t=>new ae(t)))}}class ne{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 oe{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 se{updateNotice;constructor(t){const{update_notice:e}=t;this.updateNotice=e.map((t=>new oe(t)))}}class ce{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 le{ranking;constructor(t){const{ranking:e}=t;this.ranking=e.map((t=>new ce(t)))}}class he{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 pe{ranking;constructor(t){const{ranking:e}=t;this.ranking=e.map((t=>new he(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 de{ranking;constructor(t){const{ranking:e}=t;this.ranking=e.map((t=>new ue(t)))}}class me{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 fe{ranking;constructor(t){const{ranking:e}=t;this.ranking=e.map((t=>new me(t)))}}class _e{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 ge{ranking;constructor(t){const{ranking:e}=t;this.ranking=e.map((t=>new _e(t)))}}class ye{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 we{ranking;constructor(t){const{ranking:e}=t;this.ranking=e.map((t=>new ye(t)))}}class Ee{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 be{name;level;constructor(t){const{name:e,level:i}=t;this.name=e,this.level=i}}class ve{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 be(t))),this.unionArtifactCrystal=a.map((t=>new Ee(t))),this.unionArtifactRemainAp=r}}class Se{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 Ce{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 Ie{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 Ce(t))):null}}class De{statFieldId;statFieldEffect;constructor(t){const{stat_field_id:e,stat_field_effect:i}=t;this.statFieldId=e,this.statFieldEffect=i}}class Pe{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 De(t))),this.unionBlock=r.map((t=>new Ie(t)))}}class xe{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:p}=t;this.date=e?new Date(e):null,this.unionRaiderStat=i,this.unionOccupiedStat=a,this.unionInnerStat=r.map((t=>new De(t))),this.unionBlock=n.map((t=>new Ie(t))),this.usePresetNo=o,this.unionRaiderPreset1=s?new Pe(s):null,this.unionRaiderPreset2=c?new Pe(c):null,this.unionRaiderPreset3=l?new Pe(l):null,this.unionRaiderPreset4=h?new Pe(h):null,this.unionRaiderPreset5=p?new Pe(p):null}}class Oe extends Error{name="MapleStoryApiError";errorCode;message;constructor(t){const{name:e,message:i}=t.error;super(i),this.errorCode=Ae[e],this.message=i}}var Ne;t.MapleStoryApiErrorCode=void 0,(Ne=t.MapleStoryApiErrorCode||(t.MapleStoryApiErrorCode={}))[Ne.OPENAPI00001=0]="OPENAPI00001",Ne[Ne.OPENAPI00002=1]="OPENAPI00002",Ne[Ne.OPENAPI00003=2]="OPENAPI00003",Ne[Ne.OPENAPI00004=3]="OPENAPI00004",Ne[Ne.OPENAPI00005=4]="OPENAPI00005",Ne[Ne.OPENAPI00006=5]="OPENAPI00006",Ne[Ne.OPENAPI00007=6]="OPENAPI00007",Ne[Ne.OPENAPI00009=7]="OPENAPI00009",Ne[Ne.OPENAPI00010=8]="OPENAPI00010",Ne[Ne.OPENAPI00011=9]="OPENAPI00011";const Ae={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};class Le{stat;constructor(t){const{stat:e}=t;this.stat=e}}class Re{championSlot;championGrade;championClass;championBadgeInfo;constructor(t){const{champion_slot:e,champion_grade:i,champion_class:a,champion_badge_info:r}=t;this.championSlot=e,this.championGrade=i,this.championClass=a,this.championBadgeInfo=r.map((t=>new Le(t)))}}class Be{date;unionChampion;championBadgeTotalInfo;constructor(t){const{date:e,union_champion:i,champion_badge_total_info:a}=t;this.date=e?new Date(e):null,this.unionChampion=i.map((t=>new Re(t))),this.championBadgeTotalInfo=a.map((t=>new Le(t)))}}o.default.extend(w),o.default.extend(k);class qe{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:qe.BASE_URL,timeout:qe.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 Oe(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 yt(t)}async getCharacterBasic(t,e){const i={ocid:t,date:e?qe.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,p=i?.actionFrame??0,u=i?.emotionFrame??0,d=i?.x??null,m=i?.y??null,f={action:`${s}.${p}`,emotion:`${l}.${u}`,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:p,emotionFrame:u,width:96,height:96,x:d,y:m})}async getCharacterPopularity(t,e){const i={ocid:t,date:e?qe.toDateString({year:2023,month:12,day:21},e):void 0},{data:a}=await this.client.get("maplestory/v1/character/popularity",{params:i});return new St(a)}async getCharacterStat(t,e){const i={ocid:t,date:e?qe.toDateString({year:2023,month:12,day:21},e):void 0},{data:a}=await this.client.get("maplestory/v1/character/stat",{params:i});return new Nt(a)}async getCharacterHyperStat(t,e){const i={ocid:t,date:e?qe.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?qe.toDateString({year:2023,month:12,day:21},e):void 0},{data:a}=await this.client.get("maplestory/v1/character/propensity",{params:i});return new Ct(a)}async getCharacterAbility(t,e){const i={ocid:t,date:e?qe.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?qe.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 dt(a)}async getCharacterCashItemEquipment(t,e){const i={ocid:t,date:e?qe.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?qe.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 Lt(a)}async getCharacterSetEffect(t,e){const i={ocid:t,date:e?qe.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 Pt(a)}async getCharacterBeautyEquipment(t,e){const i={ocid:t,date:e?qe.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?qe.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 q(a)}async getCharacterPetEquipment(t,e){const i={ocid:t,date:e?qe.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 vt(a)}async getCharacterSkill(t,e,i){const a={ocid:t,character_skill_grade:e,date:i?qe.toDateString({year:2023,month:12,day:21},i):void 0},{data:r}=await this.client.get("maplestory/v1/character/skill",{params:a});return new Ot(r)}async getCharacterLinkSkill(t,e){const i={ocid:t,date:e?qe.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 ft(a)}async getCharacterVMatrix(t,e){const i={ocid:t,date:e?qe.toDateString({year:2023,month:12,day:21},e):void 0},{data:a}=await this.client.get("maplestory/v1/character/vmatrix",{params:i});return new Bt(a)}async getCharacterHexaMatrix(t,e){const i={ocid:t,date:e?qe.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?qe.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?qe.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?qe.toDateString({year:2023,month:12,day:21},e):void 0},{data:a}=await this.client.get("maplestory/v1/user/union",{params:i});return new Se(a)}async getUnionRaider(t,e){const i={ocid:t,date:e?qe.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 xe(a)}async getUnionArtifact(t,e){const i={ocid:t,date:e?qe.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 ve(a)}async getUnionChampion(t,e){const i={ocid:t,date:e?qe.toDateString({year:2023,month:12,day:21},e):void 0},{data:a}=await this.client.get("maplestory/v1/user/union-champion",{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 Tt(i)}async getGuildBasic(t,e){const i={oguild_id:t,date:e?qe.toDateString({year:2023,month:12,day:21},e):void 0},{data:a}=await this.client.get("maplestory/v1/guild/basic",{params:i});return new Ut(a)}async getStarforceHistory(t,e){const i={count:t};"string"==typeof e?i.cursor=e:"object"!=typeof e&&void 0!==e||(i.date=qe.toDateString({year:2023,month:12,day:27},e??qe.getProperDefaultDateOptions({hour:0,minute:0,dateOffset:0})));const{data:a}=await this.client.get("maplestory/v1/history/starforce",{params:i});return new Wt(a)}async getCubeHistory(t,e){const i={count:t};"string"==typeof e?i.cursor=e:"object"!=typeof e&&void 0!==e||(i.date=qe.toDateString({year:2022,month:11,day:25},e??qe.getProperDefaultDateOptions({hour:4,minute:0,dateOffset:1})));const{data:a}=await this.client.get("maplestory/v1/history/cube",{params:i});return new $t(a)}async getPotentialHistory(t,e){const i={count:t};"string"==typeof e?i.cursor=e:"object"!=typeof e&&void 0!==e||(i.date=qe.toDateString({year:2024,month:1,day:25},e??qe.getProperDefaultDateOptions({hour:4,minute:0,dateOffset:1})));const{data:a}=await this.client.get("maplestory/v1/history/potential",{params:i});return new Yt(a)}async getOverallRanking(t,e=qe.getProperDefaultDateOptions({hour:8,minute:30,dateOffset:0})){const i={date:qe.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 fe(a)}async getUnionRanking(t,e=qe.getProperDefaultDateOptions({hour:8,minute:30,dateOffset:0})){const i={date:qe.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 we(a)}async getGuildRanking(t,e=qe.getProperDefaultDateOptions({hour:8,minute:30,dateOffset:0})){const i={date:qe.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 de(a)}async getDojangRanking(t,e=qe.getProperDefaultDateOptions({hour:8,minute:30,dateOffset:0})){const i={date:qe.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 pe(a)}async getSeedRanking(t,e=qe.getProperDefaultDateOptions({hour:8,minute:30,dateOffset:0})){const i={date:qe.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 ge(a)}async getAchievementRanking(t,e=qe.getProperDefaultDateOptions({hour:8,minute:30,dateOffset:0})){const i={date:qe.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 le(a)}async getNoticeList(){const{data:t}=await this.client.get("maplestory/v1/notice");return new re(t)}async getNoticeDetail(t){const e={notice_id:t},{data:i}=await this.client.get("maplestory/v1/notice/detail",{params:e});return new ie(i)}async getUpdateNoticeList(){const{data:t}=await this.client.get("maplestory/v1/notice-update");return new se(t)}async getUpdateNoticeDetail(t){const e={notice_id:t},{data:i}=await this.client.get("maplestory/v1/notice-update/detail",{params:e});return new ne(i)}async getEventNoticeList(){const{data:t}=await this.client.get("maplestory/v1/notice-event");return new ee(t)}async getEventNoticeDetail(t){const e={notice_id:t},{data:i}=await this.client.get("maplestory/v1/notice-event/detail",{params:e});return new Kt(i)}async getCashshopNoticeList(){const{data:t}=await this.client.get("maplestory/v1/notice-cashshop");return new Jt(t)}async getCashshopNoticeDetail(t){const e={notice_id:t},{data:i}=await this.client.get("maplestory/v1/notice-cashshop/detail",{params:e});return new Zt(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 Qt(i)}static getProperDefaultDateOptions(t){const{hour:e,minute:i,dateOffset:a}=t,r=o.default().utcOffset(qe.kstOffset),n=o.default().utcOffset(qe.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(qe.kstOffset).format("YYYY-MM-DD")}}t.AchievementRankingDto=ce,t.AchievementRankingResponseDto=le,t.CashshopNoticeDetailDto=Zt,t.CashshopNoticeListDto=Jt,t.CashshopNoticeListItemDto=Xt,t.CharacterAbilityDto=P,t.CharacterAbilityInfoDto=I,t.CharacterAbilityPresetDto=D,t.CharacterAndroidCashItemEquipmentColoringPrismDto=x,t.CharacterAndroidCashItemEquipmentDto=N,t.CharacterAndroidCashItemEquipmentOptionDto=O,t.CharacterAndroidEquipmentDto=q,t.CharacterAndroidEquipmentFaceDto=A,t.CharacterAndroidEquipmentHairDto=L,t.CharacterAndroidEquipmentPresetDto=B,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=dt,t.CharacterItemEquipmentEtcOptionDto=rt,t.CharacterItemEquipmentExceptionalOptionDto=nt,t.CharacterItemEquipmentInfoDto=lt,t.CharacterItemEquipmentMechanicInfoDto=ht,t.CharacterItemEquipmentStarforceOptionDto=ot,t.CharacterItemEquipmentTitleDto=ut,t.CharacterItemEquipmentTotalOptionDto=st,t.CharacterLinkSkillDto=ft,t.CharacterLinkSkillInfoDto=mt,t.CharacterListAccountCharacterDto=_t,t.CharacterListAccountDto=gt,t.CharacterListDto=yt,t.CharacterPetEquipmentAutoSkillDto=wt,t.CharacterPetEquipmentDto=vt,t.CharacterPetEquipmentItemDto=bt,t.CharacterPetEquipmentItemOptionDto=Et,t.CharacterPopularityDto=St,t.CharacterPropensityDto=Ct,t.CharacterSetEffectDto=Pt,t.CharacterSetEffectInfoDto=kt,t.CharacterSetEffectOptionFullDto=It,t.CharacterSetEffectSetDto=Dt,t.CharacterSkillDto=Ot,t.CharacterSkillInfoDto=xt,t.CharacterStatDto=Nt,t.CharacterSymbolEquipmentDto=Lt,t.CharacterSymbolEquipmentInfoDto=At,t.CharacterVMatrixCodeEquipmentDto=Rt,t.CharacterVMatrixDto=Bt,t.CubeHistoryDto=Gt,t.CubeHistoryResponseDto=$t,t.CubeResultOptionDto=Mt,t.DojangRankingDto=he,t.DojangRankingResponseDto=pe,t.EventNoticeDetailDto=Kt,t.EventNoticeListDto=ee,t.EventNoticeListItemDto=te,t.GuildBasicDto=Ut,t.GuildDto=Tt,t.GuildRankingDto=ue,t.GuildRankingResponseDto=de,t.GuildSkillDto=qt,t.InspectionInfoDto=Qt,t.MapleStoryApi=qe,t.MapleStoryApiError=Oe,t.NoticeDetailDto=ie,t.NoticeListDto=re,t.NoticeListItemDto=ae,t.OverallRankingDto=me,t.OverallRankingResponseDto=fe,t.PotentialHistoryDto=jt,t.PotentialHistoryResponseDto=Yt,t.PotentialResultOptionDto=Ht,t.StarforceEventDto=zt,t.StarforceHistoryDto=Vt,t.StarforceHistoryResponseDto=Wt,t.TheSeedRankingDto=_e,t.TheSeedRankingResponseDto=ge,t.UnionArtifactCrystalDto=Ee,t.UnionArtifactDto=ve,t.UnionArtifactEffectDto=be,t.UnionDto=Se,t.UnionRaiderBlockControlPointDto=ke,t.UnionRaiderBlockDto=Ie,t.UnionRaiderBlockPositionDto=Ce,t.UnionRaiderDto=xe,t.UnionRaiderInnerStatDto=De,t.UnionRaiderPresetDto=Pe,t.UnionRankingDto=ye,t.UnionRankingResponseDto=we,t.UpdateNoticeDetailDto=ne,t.UpdateNoticeListDto=se,t.UpdateNoticeListItemDto=oe,t.potentialOptionGradeFromString=Ft}));
package/dist/index.mjs CHANGED
@@ -3178,8 +3178,12 @@ class CharacterCashItemEquipmentPresetDto {
3178
3178
  * 아이템 장착 가능 성별
3179
3179
  */
3180
3180
  itemGender;
3181
+ /**
3182
+ * 스킬명
3183
+ */
3184
+ skills;
3181
3185
  constructor(obj) {
3182
- const { cash_item_equipment_part, cash_item_equipment_slot, cash_item_name, cash_item_icon, cash_item_description, cash_item_option, date_expire, date_option_expire, cash_item_label, cash_item_coloring_prism, item_gender, } = obj;
3186
+ const { cash_item_equipment_part, cash_item_equipment_slot, cash_item_name, cash_item_icon, cash_item_description, cash_item_option, date_expire, date_option_expire, cash_item_label, cash_item_coloring_prism, item_gender, skills, } = obj;
3183
3187
  this.cashItemEquipmentPart = cash_item_equipment_part;
3184
3188
  this.cashItemEquipmentSlot = cash_item_equipment_slot;
3185
3189
  this.cashItemName = cash_item_name;
@@ -3193,6 +3197,7 @@ class CharacterCashItemEquipmentPresetDto {
3193
3197
  ? new CharacterCashItemEquipmentColoringPrismDto(cash_item_coloring_prism)
3194
3198
  : null;
3195
3199
  this.itemGender = item_gender;
3200
+ this.skills = skills;
3196
3201
  }
3197
3202
  }
3198
3203
 
@@ -4676,6 +4681,45 @@ class CharacterItemEquipmentMechanicInfoDto {
4676
4681
  }
4677
4682
  }
4678
4683
 
4684
+ /**
4685
+ * 캐릭터 외형 설정에 등록한 훈장 외형 정보
4686
+ */
4687
+ class CharacterItemEquipmentMedalShapeDto {
4688
+ /**
4689
+ * 외형 설정에 등록한 훈장 장비 명
4690
+ */
4691
+ medalShapeName;
4692
+ /**
4693
+ * 외형 설정에 등록한 훈장 아이콘
4694
+ */
4695
+ medalShapeIcon;
4696
+ /**
4697
+ * 외형 설정에 등록한 훈장 설명
4698
+ */
4699
+ medalShapeDescription;
4700
+ /**
4701
+ * 외형 설정에 등록한 훈장의 모루 적용 장비 명
4702
+ */
4703
+ medalShapeChangedName;
4704
+ /**
4705
+ * 외형 설정에 등록한 훈장의 모루 적용 아이콘
4706
+ */
4707
+ medalShapeChangedIcon;
4708
+ /**
4709
+ * 외형 설정에 등록한 훈장의 모루 적용 훈장 설명
4710
+ */
4711
+ medalShapeChangedDescription;
4712
+ constructor(obj) {
4713
+ const { medal_shape_name, medal_shape_icon, medal_shape_description, medal_shape_changed_name, medal_shape_changed_icon, medal_shape_changed_description, } = obj;
4714
+ this.medalShapeName = medal_shape_name;
4715
+ this.medalShapeIcon = medal_shape_icon;
4716
+ this.medalShapeDescription = medal_shape_description;
4717
+ this.medalShapeChangedName = medal_shape_changed_name;
4718
+ this.medalShapeChangedIcon = medal_shape_changed_icon;
4719
+ this.medalShapeChangedDescription = medal_shape_changed_description;
4720
+ }
4721
+ }
4722
+
4679
4723
  /**
4680
4724
  * 캐릭터 칭호 아이템 정보
4681
4725
  */
@@ -4704,12 +4748,27 @@ class CharacterItemEquipmentTitleDto {
4704
4748
  * 칭호 옵션 유효 기간 만료 여부
4705
4749
  */
4706
4750
  isOptionExpired = null;
4751
+ /**
4752
+ * 외형 설정에 등록한 칭호 장비 명
4753
+ */
4754
+ titleShapeName;
4755
+ /**
4756
+ * 외형 설정에 등록한 칭호 아이콘
4757
+ */
4758
+ titleShapeIcon;
4759
+ /**
4760
+ * 외형 설정에 등록한 칭호 설명
4761
+ */
4762
+ titleShapeDescription;
4707
4763
  constructor(obj) {
4708
- const { title_name, title_icon, title_description, date_expire, date_option_expire, } = obj;
4764
+ const { title_name, title_icon, title_description, date_expire, date_option_expire, title_shape_name, title_shape_icon, title_shape_description, } = obj;
4709
4765
  this.titleName = title_name;
4710
4766
  this.titleIcon = title_icon;
4711
4767
  this.titleDescription = title_description;
4712
4768
  this.dateExpire = date_expire ? new Date(date_expire) : null;
4769
+ this.titleShapeName = title_shape_name;
4770
+ this.titleShapeIcon = title_shape_icon;
4771
+ this.titleShapeDescription = title_shape_description;
4713
4772
  if (date_option_expire === 'expired') {
4714
4773
  this.isOptionExpired = true;
4715
4774
  }
@@ -4761,6 +4820,10 @@ class CharacterItemEquipmentDto {
4761
4820
  * 칭호 정보
4762
4821
  */
4763
4822
  title;
4823
+ /**
4824
+ * 외형 설정에 등록한 훈장 외형 정보
4825
+ */
4826
+ medalShape;
4764
4827
  /**
4765
4828
  * 에반 드래곤 장비 정보 (에반인 경우 응답)
4766
4829
  */
@@ -4770,7 +4833,7 @@ class CharacterItemEquipmentDto {
4770
4833
  */
4771
4834
  mechanicEquipment;
4772
4835
  constructor(obj) {
4773
- const { date, character_gender, character_class, preset_no, item_equipment, item_equipment_preset_1, item_equipment_preset_2, item_equipment_preset_3, title, dragon_equipment, mechanic_equipment, } = obj;
4836
+ const { date, character_gender, character_class, preset_no, item_equipment, item_equipment_preset_1, item_equipment_preset_2, item_equipment_preset_3, title, medal_shape, dragon_equipment, mechanic_equipment, } = obj;
4774
4837
  this.date = date ? new Date(date) : null;
4775
4838
  this.characterGender = character_gender;
4776
4839
  this.characterClass = character_class;
@@ -4780,6 +4843,7 @@ class CharacterItemEquipmentDto {
4780
4843
  this.itemEquipmentPreset2 = item_equipment_preset_2 ? item_equipment_preset_2.map((equipment) => new CharacterItemEquipmentInfoDto(equipment)) : null;
4781
4844
  this.itemEquipmentPreset3 = item_equipment_preset_3 ? item_equipment_preset_3.map((equipment) => new CharacterItemEquipmentInfoDto(equipment)) : null;
4782
4845
  this.title = title ? new CharacterItemEquipmentTitleDto(title) : null;
4846
+ this.medalShape = medal_shape ? new CharacterItemEquipmentMedalShapeDto(medal_shape) : null;
4783
4847
  this.dragonEquipment = dragon_equipment.map((equipment) => new CharacterItemEquipmentDragonInfoDto(equipment));
4784
4848
  this.mechanicEquipment = mechanic_equipment.map((equipment) => new CharacterItemEquipmentMechanicInfoDto(equipment));
4785
4849
  }
@@ -7405,6 +7469,73 @@ const errorMap = {
7405
7469
  ['OPENAPI00011']: MapleStoryApiErrorCode.OPENAPI00011,
7406
7470
  };
7407
7471
 
7472
+ /**
7473
+ * 유니온 챔피언 휘장 정보
7474
+ */
7475
+ class UnionChampionBadgeInfoDto {
7476
+ /**
7477
+ * 유니온 챔피언 휘장 효과
7478
+ */
7479
+ stat;
7480
+ constructor(obj) {
7481
+ const { stat } = obj;
7482
+ this.stat = stat;
7483
+ }
7484
+ }
7485
+
7486
+ /**
7487
+ * 유니온 챔피언 상세 정보
7488
+ */
7489
+ class UnionChampionInfoDto {
7490
+ /**
7491
+ * 유니온 챔피언 슬롯
7492
+ */
7493
+ championSlot;
7494
+ /**
7495
+ * 유니온 챔피언 등급
7496
+ */
7497
+ championGrade;
7498
+ /**
7499
+ * 유니온 챔피언 캐릭터의 직업
7500
+ */
7501
+ championClass;
7502
+ /**
7503
+ * 챔피언 휘장 효과
7504
+ */
7505
+ championBadgeInfo;
7506
+ constructor(obj) {
7507
+ const { champion_slot, champion_grade, champion_class, champion_badge_info } = obj;
7508
+ this.championSlot = champion_slot;
7509
+ this.championGrade = champion_grade;
7510
+ this.championClass = champion_class;
7511
+ this.championBadgeInfo = champion_badge_info.map((info) => new UnionChampionBadgeInfoDto(info));
7512
+ }
7513
+ }
7514
+
7515
+ /**
7516
+ * 유니온 챔피언 정보
7517
+ */
7518
+ class UnionChampionDto {
7519
+ /**
7520
+ * 조회 기준일
7521
+ */
7522
+ date;
7523
+ /**
7524
+ * 유니온 챔피언 정보
7525
+ */
7526
+ unionChampion;
7527
+ /**
7528
+ * 유니온 챔피언 휘장 정보
7529
+ */
7530
+ championBadgeTotalInfo;
7531
+ constructor(obj) {
7532
+ const { date, union_champion, champion_badge_total_info } = obj;
7533
+ this.date = date ? new Date(date) : null;
7534
+ this.unionChampion = union_champion.map((info) => new UnionChampionInfoDto(info));
7535
+ this.championBadgeTotalInfo = champion_badge_total_info.map((info) => new UnionChampionBadgeInfoDto(info));
7536
+ }
7537
+ }
7538
+
7408
7539
  dayjs.extend(timezone);
7409
7540
  dayjs.extend(utc);
7410
7541
  /**
@@ -8158,6 +8289,35 @@ class MapleStoryApi {
8158
8289
  });
8159
8290
  return new UnionArtifactDto(data);
8160
8291
  }
8292
+ /**
8293
+ * 유니온 챔피언 정보를 조회합니다.<br>
8294
+ * 유니온 챔피언 정보는 2025년 2월 20일 메이플스토리 점검 이후 데이터부터 조회 가능합니다.<br>
8295
+ * - 메이플스토리 게임 데이터는 평균 15분 후 확인 가능합니다.
8296
+ * - 2023년 12월 21일 데이터부터 조회할 수 있습니다.
8297
+ * - 과거 데이터는 원하는 일자를 입력해 조회할 수 있으며, 전일 데이터는 다음날 오전 2시부터 확인할 수 있습니다. (12월 22일 데이터 조회 시, 22일 00시부터 23일 00시 사이 데이터가 조회 됩니다.)
8298
+ * - 게임 콘텐츠 변경으로 ocid가 변경될 수 있습니다. ocid 기반 서비스 갱신 시 유의해 주시길 바랍니다.
8299
+ *
8300
+ * @param ocid 캐릭터 식별자
8301
+ * @param dateOptions 조회 기준일 (KST)
8302
+ */
8303
+ async getUnionChampion(ocid, dateOptions) {
8304
+ const path = 'maplestory/v1/user/union-champion';
8305
+ const date = dateOptions
8306
+ ? MapleStoryApi.toDateString({
8307
+ year: 2023,
8308
+ month: 12,
8309
+ day: 21,
8310
+ }, dateOptions)
8311
+ : undefined;
8312
+ const query = {
8313
+ ocid: ocid,
8314
+ date: date,
8315
+ };
8316
+ const { data } = await this.client.get(path, {
8317
+ params: query,
8318
+ });
8319
+ return new UnionChampionDto(data);
8320
+ }
8161
8321
  //#endregion
8162
8322
  //#region 길드 정보 조회
8163
8323
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "maplestory-openapi",
3
- "version": "2.10.0",
3
+ "version": "2.11.0",
4
4
  "description": "This JavaScript library enables the use of the MapleStory OpenAPI of Nexon.",
5
5
  "keywords": [
6
6
  "maplestory",
@@ -49,6 +49,10 @@ declare class CharacterCashItemEquipmentPresetDto {
49
49
  * 아이템 장착 가능 성별
50
50
  */
51
51
  itemGender: string | null;
52
+ /**
53
+ * 스킬명
54
+ */
55
+ skills: string[];
52
56
  constructor(obj: CharacterCashItemEquipmentPresetDtoBody);
53
57
  }
54
58
  export { CharacterCashItemEquipmentPresetDto };
@@ -1,6 +1,7 @@
1
1
  import { CharacterItemEquipmentDragonInfoDto } from './characterItemEquipmentDragonInfoDto';
2
2
  import { CharacterItemEquipmentInfoDto } from './characterItemEquipmentInfoDto';
3
3
  import { CharacterItemEquipmentMechanicInfoDto } from './characterItemEquipmentMechanicInfoDto';
4
+ import { CharacterItemEquipmentMedalShapeDto } from './characterItemEquipmentMedalShapeDto';
4
5
  import { CharacterItemEquipmentTitleDto } from './characterItemEquipmentTitleDto';
5
6
  import { CharacterItemEquipmentDtoBody } from '../../response/character/characterItemEquipmentDtoBody';
6
7
  /**
@@ -43,6 +44,10 @@ declare class CharacterItemEquipmentDto {
43
44
  * 칭호 정보
44
45
  */
45
46
  title: CharacterItemEquipmentTitleDto | null;
47
+ /**
48
+ * 외형 설정에 등록한 훈장 외형 정보
49
+ */
50
+ medalShape: CharacterItemEquipmentMedalShapeDto | null;
46
51
  /**
47
52
  * 에반 드래곤 장비 정보 (에반인 경우 응답)
48
53
  */
@@ -0,0 +1,32 @@
1
+ import { CharacterItemEquipmentMedalShapeDtoBody } from '../../response/character/characterItemEquipmentDtoBody';
2
+ /**
3
+ * 캐릭터 외형 설정에 등록한 훈장 외형 정보
4
+ */
5
+ declare class CharacterItemEquipmentMedalShapeDto {
6
+ /**
7
+ * 외형 설정에 등록한 훈장 장비 명
8
+ */
9
+ medalShapeName: string;
10
+ /**
11
+ * 외형 설정에 등록한 훈장 아이콘
12
+ */
13
+ medalShapeIcon: string;
14
+ /**
15
+ * 외형 설정에 등록한 훈장 설명
16
+ */
17
+ medalShapeDescription: string;
18
+ /**
19
+ * 외형 설정에 등록한 훈장의 모루 적용 장비 명
20
+ */
21
+ medalShapeChangedName: string;
22
+ /**
23
+ * 외형 설정에 등록한 훈장의 모루 적용 아이콘
24
+ */
25
+ medalShapeChangedIcon: string;
26
+ /**
27
+ * 외형 설정에 등록한 훈장의 모루 적용 훈장 설명
28
+ */
29
+ medalShapeChangedDescription: string;
30
+ constructor(obj: CharacterItemEquipmentMedalShapeDtoBody);
31
+ }
32
+ export { CharacterItemEquipmentMedalShapeDto };
@@ -27,6 +27,18 @@ declare class CharacterItemEquipmentTitleDto {
27
27
  * 칭호 옵션 유효 기간 만료 여부
28
28
  */
29
29
  isOptionExpired: boolean | null;
30
+ /**
31
+ * 외형 설정에 등록한 칭호 장비 명
32
+ */
33
+ titleShapeName: string | null;
34
+ /**
35
+ * 외형 설정에 등록한 칭호 아이콘
36
+ */
37
+ titleShapeIcon: string | null;
38
+ /**
39
+ * 외형 설정에 등록한 칭호 설명
40
+ */
41
+ titleShapeDescription: string | null;
30
42
  constructor(obj: CharacterItemEquipmentTitleDtoBody);
31
43
  }
32
44
  export { CharacterItemEquipmentTitleDto };
@@ -0,0 +1,12 @@
1
+ import { UnionChampionBadgeInfoDtoBody } from '../../response/union/unionChampionDtoBody';
2
+ /**
3
+ * 유니온 챔피언 휘장 정보
4
+ */
5
+ declare class UnionChampionBadgeInfoDto {
6
+ /**
7
+ * 유니온 챔피언 휘장 효과
8
+ */
9
+ stat: string;
10
+ constructor(obj: UnionChampionBadgeInfoDtoBody);
11
+ }
12
+ export { UnionChampionBadgeInfoDto };
@@ -0,0 +1,22 @@
1
+ import { UnionChampionBadgeInfoDto } from './unionChampionBadgeInfoDto';
2
+ import { UnionChampionInfoDto } from './unionChampionInfoDto';
3
+ import { UnionChampionDtoBody } from '../../response/union/unionChampionDtoBody';
4
+ /**
5
+ * 유니온 챔피언 정보
6
+ */
7
+ declare class UnionChampionDto {
8
+ /**
9
+ * 조회 기준일
10
+ */
11
+ date: Date | null;
12
+ /**
13
+ * 유니온 챔피언 정보
14
+ */
15
+ unionChampion: UnionChampionInfoDto[];
16
+ /**
17
+ * 유니온 챔피언 휘장 정보
18
+ */
19
+ championBadgeTotalInfo: UnionChampionBadgeInfoDto[];
20
+ constructor(obj: UnionChampionDtoBody);
21
+ }
22
+ export { UnionChampionDto };
@@ -0,0 +1,25 @@
1
+ import { UnionChampionBadgeInfoDto } from './unionChampionBadgeInfoDto';
2
+ import { UnionChampionInfoDtoBody } from '../../response/union/unionChampionDtoBody';
3
+ /**
4
+ * 유니온 챔피언 상세 정보
5
+ */
6
+ declare class UnionChampionInfoDto {
7
+ /**
8
+ * 유니온 챔피언 슬롯
9
+ */
10
+ championSlot: number;
11
+ /**
12
+ * 유니온 챔피언 등급
13
+ */
14
+ championGrade: string;
15
+ /**
16
+ * 유니온 챔피언 캐릭터의 직업
17
+ */
18
+ championClass: string;
19
+ /**
20
+ * 챔피언 휘장 효과
21
+ */
22
+ championBadgeInfo: UnionChampionBadgeInfoDto[];
23
+ constructor(obj: UnionChampionInfoDtoBody);
24
+ }
25
+ export { UnionChampionInfoDto };
@@ -43,6 +43,7 @@ import { UnionRankingResponseDto } from './dto/ranking/unionRankingResponseDto';
43
43
  import { UnionArtifactDto } from './dto/union/unionArtifactDto';
44
44
  import { UnionDto } from './dto/union/unionDto';
45
45
  import { UnionRaiderDto } from './dto/union/unionRaiderDto';
46
+ import { UnionChampionDto } from './dto/union/unionChampionDto';
46
47
  /**
47
48
  * MapleStory OpenAPI client.<br>
48
49
  * This is an implementation of <a href="https://openapi.nexon.com/game/maplestory">MapleStory API</a>
@@ -339,6 +340,18 @@ declare class MapleStoryApi {
339
340
  * @param dateOptions 조회 기준일 (KST)
340
341
  */
341
342
  getUnionArtifact(ocid: string, dateOptions?: DateOptions): Promise<UnionArtifactDto>;
343
+ /**
344
+ * 유니온 챔피언 정보를 조회합니다.<br>
345
+ * 유니온 챔피언 정보는 2025년 2월 20일 메이플스토리 점검 이후 데이터부터 조회 가능합니다.<br>
346
+ * - 메이플스토리 게임 데이터는 평균 15분 후 확인 가능합니다.
347
+ * - 2023년 12월 21일 데이터부터 조회할 수 있습니다.
348
+ * - 과거 데이터는 원하는 일자를 입력해 조회할 수 있으며, 전일 데이터는 다음날 오전 2시부터 확인할 수 있습니다. (12월 22일 데이터 조회 시, 22일 00시부터 23일 00시 사이 데이터가 조회 됩니다.)
349
+ * - 게임 콘텐츠 변경으로 ocid가 변경될 수 있습니다. ocid 기반 서비스 갱신 시 유의해 주시길 바랍니다.
350
+ *
351
+ * @param ocid 캐릭터 식별자
352
+ * @param dateOptions 조회 기준일 (KST)
353
+ */
354
+ getUnionChampion(ocid: string, dateOptions?: DateOptions): Promise<UnionChampionDto>;
342
355
  /**
343
356
  * 길드 식별자(oguild_id) 정보를 조회합니다.
344
357
  * - 메이플스토리 게임 데이터는 평균 15분 후 확인 가능합니다.
@@ -25,6 +25,7 @@ type CharacterCashItemEquipmentPresetDtoBody = {
25
25
  cash_item_label: string | null;
26
26
  cash_item_coloring_prism: CharacterCashItemEquipmentColoringPrismDtoBody | null;
27
27
  item_gender: string | null;
28
+ skills: string[];
28
29
  };
29
30
  type CharacterCashItemEquipmentOptionDtoBody = {
30
31
  option_type: string;
@@ -8,6 +8,7 @@ type CharacterItemEquipmentDtoBody = {
8
8
  item_equipment_preset_2: CharacterItemEquipmentInfoDtoBody[] | null;
9
9
  item_equipment_preset_3: CharacterItemEquipmentInfoDtoBody[] | null;
10
10
  title: CharacterItemEquipmentTitleDtoBody | null;
11
+ medal_shape: CharacterItemEquipmentMedalShapeDtoBody | null;
11
12
  dragon_equipment: CharacterItemEquipmentInfoDtoBody[];
12
13
  mechanic_equipment: CharacterItemEquipmentInfoDtoBody[];
13
14
  };
@@ -187,5 +188,16 @@ type CharacterItemEquipmentTitleDtoBody = {
187
188
  title_description: string;
188
189
  date_expire: string | null;
189
190
  date_option_expire: string | null;
191
+ title_shape_name: string | null;
192
+ title_shape_icon: string | null;
193
+ title_shape_description: string | null;
190
194
  };
191
- export type { CharacterItemEquipmentDtoBody, CharacterItemEquipmentInfoDtoBody, CharacterItemEquipmentTitleDtoBody, CharacterItemEquipmentOptionDtoBody, CharacterItemEquipmentExceptionalOptionDtoBody, CharacterItemEquipmentTotalOptionDtoBody, CharacterItemEquipmentBaseOptionDtoBody, CharacterItemEquipmentAddOptionDtoBody, CharacterItemEquipmentEtcOptionDtoBody, CharacterItemEquipmentStarforceOptionDtoBody, CharacterItemEquipmentDragonInfoDtoBody, CharacterItemEquipmentMechanicInfoDtoBody, };
195
+ type CharacterItemEquipmentMedalShapeDtoBody = {
196
+ medal_shape_name: string;
197
+ medal_shape_icon: string;
198
+ medal_shape_description: string;
199
+ medal_shape_changed_name: string;
200
+ medal_shape_changed_icon: string;
201
+ medal_shape_changed_description: string;
202
+ };
203
+ export type { CharacterItemEquipmentDtoBody, CharacterItemEquipmentInfoDtoBody, CharacterItemEquipmentTitleDtoBody, CharacterItemEquipmentOptionDtoBody, CharacterItemEquipmentExceptionalOptionDtoBody, CharacterItemEquipmentTotalOptionDtoBody, CharacterItemEquipmentMedalShapeDtoBody, CharacterItemEquipmentBaseOptionDtoBody, CharacterItemEquipmentAddOptionDtoBody, CharacterItemEquipmentEtcOptionDtoBody, CharacterItemEquipmentStarforceOptionDtoBody, CharacterItemEquipmentDragonInfoDtoBody, CharacterItemEquipmentMechanicInfoDtoBody, };
@@ -0,0 +1,15 @@
1
+ type UnionChampionDtoBody = {
2
+ date: string;
3
+ union_champion: UnionChampionInfoDtoBody[];
4
+ champion_badge_total_info: UnionChampionBadgeInfoDtoBody[];
5
+ };
6
+ type UnionChampionInfoDtoBody = {
7
+ champion_slot: number;
8
+ champion_grade: string;
9
+ champion_class: string;
10
+ champion_badge_info: UnionChampionBadgeInfoDtoBody[];
11
+ };
12
+ type UnionChampionBadgeInfoDtoBody = {
13
+ stat: string;
14
+ };
15
+ export { UnionChampionDtoBody, UnionChampionInfoDtoBody, UnionChampionBadgeInfoDtoBody, };