@vmscloud/moz-ui-grid-vue 0.1.41 → 0.2.1

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.
Files changed (196) hide show
  1. package/README.md +1 -13
  2. package/dist/MozGrid.vue.d.ts +5 -0
  3. package/dist/chunks/{index-BDQ0HlwR.js → index-2qnzL9Zm.js} +183 -32
  4. package/dist/chunks/index-BLDAzbGv.cjs +14 -0
  5. package/dist/compat/MozGridVue.vue.d.ts +33 -3
  6. package/dist/compat/MozPivotVue.vue.d.ts +33 -3
  7. package/dist/excel/ClientExcelUploadPopup.d.ts +48 -0
  8. package/dist/excel/ClientExcelUploadPopup.vue.d.ts +5 -0
  9. package/dist/excel/icons.d.ts +3 -0
  10. package/dist/{legacy/composables → excel}/useClientExcelExport.d.ts +2 -2
  11. package/dist/{legacy/composables → excel}/useClientExcelStore.d.ts +1 -1
  12. package/dist/index.cjs +76 -25
  13. package/dist/index.d.ts +27 -9
  14. package/dist/index.js +700 -89163
  15. package/dist/locale/index.d.ts +49 -0
  16. package/dist/{legacy/store → store}/index.d.ts +28 -28
  17. package/dist/store.cjs +1 -1
  18. package/dist/store.js +4 -4
  19. package/dist/stories/FieldId.stories.d.ts +1 -1
  20. package/dist/stories/FooterAggregateDiagnosis.stories.d.ts +17 -0
  21. package/dist/stories/FooterAggregatePivot.stories.d.ts +37 -0
  22. package/dist/stories/MergedCellCopy.stories.d.ts +58 -0
  23. package/dist/stories/Pivot900Rows.stories.d.ts +40 -0
  24. package/dist/stories/PivotReactiveProxy.stories.d.ts +118 -0
  25. package/dist/stories/PivotSettingsPermissions.stories.d.ts +6 -0
  26. package/dist/stories/RowGroupAggregates.stories.d.ts +57 -0
  27. package/dist/stories/RowGroupDisabled.stories.d.ts +9 -0
  28. package/dist/stories/SummaryFooter.stories.d.ts +7 -0
  29. package/dist/{legacy/stories → stories}/_helpers/localDataLoader.d.ts +1 -1
  30. package/dist/{legacy/stories → stories}/_helpers/sampleData.d.ts +11 -11
  31. package/dist/style.css +1 -1
  32. package/dist/types/injection-keys.d.ts +2 -5
  33. package/dist/types/modules.d.ts +87 -0
  34. package/dist/{legacy/types → types}/pivot-props.d.ts +1 -1
  35. package/dist/{legacy/types → types}/props.d.ts +12 -3
  36. package/dist/{legacy/types → types}/toolbar.d.ts +1 -1
  37. package/dist/utils/excel/ExcelImportUtil.cjs +1 -1
  38. package/dist/utils/excel/ExcelImportUtil.js +1 -1
  39. package/dist/utils/excel/ExcelQueueManager.cjs +1 -1
  40. package/dist/utils/excel/ExcelQueueManager.js +1 -1
  41. package/dist/utils/excel/ExcelTaskRunner.cjs +1 -1
  42. package/dist/{legacy/utils → utils}/excel/ExcelTaskRunner.d.ts +1 -1
  43. package/dist/utils/excel/ExcelTaskRunner.js +1 -1
  44. package/dist/utils/excel/ExcelTimeoutManager.cjs +1 -1
  45. package/dist/utils/excel/ExcelTimeoutManager.js +2 -4
  46. package/dist/{legacy/utils → utils}/index.d.ts +1 -1
  47. package/dist/utils/toast.d.ts +12 -0
  48. package/docs/manual/examples.md +2 -2
  49. package/docs/manual/reference.md +120 -5
  50. package/docs/manual/reference_vue.md +24 -29
  51. package/package.json +6 -7
  52. package/dist/chunks/index-D5KJLBGW.cjs +0 -14
  53. package/dist/legacy/components/common/Dragging.d.ts +0 -17
  54. package/dist/legacy/components/common/Dragging.vue.d.ts +0 -49
  55. package/dist/legacy/components/common/custom-cell/FormulaEngine.d.ts +0 -256
  56. package/dist/legacy/components/common/custom-cell/FormulaInput.vue.d.ts +0 -33
  57. package/dist/legacy/components/common/custom-cell/GridCustomCell.vue.d.ts +0 -23
  58. package/dist/legacy/components/common/custom-cell/useFormulaAutocomplete.d.ts +0 -44
  59. package/dist/legacy/components/common/excel/ClientExcelUploadPopup.vue.d.ts +0 -201
  60. package/dist/legacy/components/common/excel/assets/IconDropZone.vue.d.ts +0 -2
  61. package/dist/legacy/components/common/excel/assets/IconFileUpload.vue.d.ts +0 -2
  62. package/dist/legacy/components/common/filter/GridFilter.vue.d.ts +0 -23
  63. package/dist/legacy/components/common/footer/GridFooter.vue.d.ts +0 -29
  64. package/dist/legacy/components/common/sort/GridSort.vue.d.ts +0 -23
  65. package/dist/legacy/components/common/toolbar/GridSearchInput.vue.d.ts +0 -33
  66. package/dist/legacy/components/grid/MozGridVue.vue.d.ts +0 -2041
  67. package/dist/legacy/components/grid/MozGridVueCore.vue.d.ts +0 -118
  68. package/dist/legacy/components/grid/bulk-editor/GridBulkEditor.vue.d.ts +0 -10
  69. package/dist/legacy/components/grid/column-settings/AlignPicker.vue.d.ts +0 -10
  70. package/dist/legacy/components/grid/column-settings/ColorSwatchPicker.vue.d.ts +0 -11
  71. package/dist/legacy/components/grid/column-settings/ColumnListItem.vue.d.ts +0 -17
  72. package/dist/legacy/components/grid/column-settings/ColumnOptionsPanel.vue.d.ts +0 -32
  73. package/dist/legacy/components/grid/column-settings/FontSizePicker.vue.d.ts +0 -10
  74. package/dist/legacy/components/grid/column-settings/FontStyleToggles.vue.d.ts +0 -15
  75. package/dist/legacy/components/grid/column-settings/MaskPresetPicker.vue.d.ts +0 -14
  76. package/dist/legacy/components/grid/context-menu/GridContextMenu.vue.d.ts +0 -208
  77. package/dist/legacy/components/grid/group-panel/GroupPanel.vue.d.ts +0 -18
  78. package/dist/legacy/components/grid/toolbar/ColumnPicker.vue.d.ts +0 -17
  79. package/dist/legacy/components/grid/toolbar/ColumnSettings.vue.d.ts +0 -30
  80. package/dist/legacy/components/grid/toolbar/GridOptionModal.vue.d.ts +0 -211
  81. package/dist/legacy/components/grid/toolbar/GridToolBox.vue.d.ts +0 -69
  82. package/dist/legacy/components/pivot/MozPivotVue.vue.d.ts +0 -1868
  83. package/dist/legacy/components/pivot/PivotContextMenu.vue.d.ts +0 -634
  84. package/dist/legacy/components/pivot/PivotFieldChip.vue.d.ts +0 -16
  85. package/dist/legacy/components/pivot/PivotFieldDropZone.vue.d.ts +0 -26
  86. package/dist/legacy/components/pivot/PivotFieldPanel.vue.d.ts +0 -28
  87. package/dist/legacy/components/pivot/PivotOptionModal.vue.d.ts +0 -534
  88. package/dist/legacy/components/pivot/PivotToolBox.vue.d.ts +0 -79
  89. package/dist/legacy/components/pivot/chart/EChart.vue.d.ts +0 -13
  90. package/dist/legacy/components/pivot/chart/MozPivotChart.types.d.ts +0 -16
  91. package/dist/legacy/components/pivot/chart/MozPivotChart.vue.d.ts +0 -14
  92. package/dist/legacy/components/pivot/chart/PivotChartDetail.vue.d.ts +0 -13
  93. package/dist/legacy/components/pivot/chart/PivotChartMini.vue.d.ts +0 -18
  94. package/dist/legacy/components/pivot/chart/PivotChartMultiple.vue.d.ts +0 -18
  95. package/dist/legacy/components/pivot/chart/PivotChartToolbar.vue.d.ts +0 -38
  96. package/dist/legacy/components/pivot/chart/chartUtils.d.ts +0 -45
  97. package/dist/legacy/components/pivot/chart/useChartData.d.ts +0 -35
  98. package/dist/legacy/composables/useCellTooltip.d.ts +0 -8
  99. package/dist/legacy/composables/useColumnFormatter.d.ts +0 -45
  100. package/dist/legacy/composables/useColumnSettings.d.ts +0 -35
  101. package/dist/legacy/composables/useContextMenu.d.ts +0 -71
  102. package/dist/legacy/composables/useGridBulkEditor.d.ts +0 -36
  103. package/dist/legacy/composables/useGridChanges.d.ts +0 -28
  104. package/dist/legacy/composables/useGridColumns.d.ts +0 -37
  105. package/dist/legacy/composables/useGridCustomCell.d.ts +0 -34
  106. package/dist/legacy/composables/useGridEvents.d.ts +0 -14
  107. package/dist/legacy/composables/useGridFilter.d.ts +0 -38
  108. package/dist/legacy/composables/useGridInstance.d.ts +0 -16
  109. package/dist/legacy/composables/useGridSelect.d.ts +0 -18
  110. package/dist/legacy/composables/useGridSelection.d.ts +0 -18
  111. package/dist/legacy/composables/useGridSort.d.ts +0 -38
  112. package/dist/legacy/composables/useGridUndoRedo.d.ts +0 -28
  113. package/dist/legacy/composables/useGridValidation.d.ts +0 -28
  114. package/dist/legacy/composables/useMaskPresets.d.ts +0 -38
  115. package/dist/legacy/composables/useSearchHighlight.d.ts +0 -12
  116. package/dist/legacy/icons/IconAdd.vue.d.ts +0 -11
  117. package/dist/legacy/icons/IconArrowDownWithTail.vue.d.ts +0 -11
  118. package/dist/legacy/icons/IconArrowLeft.vue.d.ts +0 -11
  119. package/dist/legacy/icons/IconArrowLeftWithTail.vue.d.ts +0 -11
  120. package/dist/legacy/icons/IconArrowRight.vue.d.ts +0 -11
  121. package/dist/legacy/icons/IconArrowUpCenter.vue.d.ts +0 -11
  122. package/dist/legacy/icons/IconArrowUpWithTail.vue.d.ts +0 -11
  123. package/dist/legacy/icons/IconChart.vue.d.ts +0 -11
  124. package/dist/legacy/icons/IconClose.vue.d.ts +0 -13
  125. package/dist/legacy/icons/IconColorPicker.vue.d.ts +0 -11
  126. package/dist/legacy/icons/IconCustomCell.vue.d.ts +0 -11
  127. package/dist/legacy/icons/IconDecide.vue.d.ts +0 -11
  128. package/dist/legacy/icons/IconDownload.vue.d.ts +0 -11
  129. package/dist/legacy/icons/IconDragHandler.vue.d.ts +0 -11
  130. package/dist/legacy/icons/IconFilter.vue.d.ts +0 -11
  131. package/dist/legacy/icons/IconInfoFilled.vue.d.ts +0 -11
  132. package/dist/legacy/icons/IconRedo.vue.d.ts +0 -9
  133. package/dist/legacy/icons/IconReset.vue.d.ts +0 -9
  134. package/dist/legacy/icons/IconResetGridToolbar.vue.d.ts +0 -11
  135. package/dist/legacy/icons/IconSearch.vue.d.ts +0 -11
  136. package/dist/legacy/icons/IconSetting.vue.d.ts +0 -11
  137. package/dist/legacy/icons/IconSettingFilled.vue.d.ts +0 -11
  138. package/dist/legacy/icons/IconSort.vue.d.ts +0 -11
  139. package/dist/legacy/icons/IconToastWarning.vue.d.ts +0 -11
  140. package/dist/legacy/icons/IconUndo.vue.d.ts +0 -9
  141. package/dist/legacy/icons/index.d.ts +0 -25
  142. package/dist/legacy/index.d.ts +0 -69
  143. package/dist/legacy/shared/colorPresets.d.ts +0 -36
  144. package/dist/legacy/stories/Autofit.stories.d.ts +0 -9
  145. package/dist/legacy/stories/CRUD.stories.d.ts +0 -9
  146. package/dist/legacy/stories/CellAttributes.stories.d.ts +0 -19
  147. package/dist/legacy/stories/CellMask.stories.d.ts +0 -19
  148. package/dist/legacy/stories/ClientExcel.stories.d.ts +0 -8
  149. package/dist/legacy/stories/Clipboard.stories.d.ts +0 -12
  150. package/dist/legacy/stories/ColumnVisibility.stories.d.ts +0 -12
  151. package/dist/legacy/stories/ColumnWidths.stories.d.ts +0 -11
  152. package/dist/legacy/stories/CustomSortFilter.stories.d.ts +0 -7
  153. package/dist/legacy/stories/DynamicRowHeight.stories.d.ts +0 -13
  154. package/dist/legacy/stories/Editors.stories.d.ts +0 -9
  155. package/dist/legacy/stories/EmptyState.stories.d.ts +0 -10
  156. package/dist/legacy/stories/FormatRow.stories.d.ts +0 -20
  157. package/dist/legacy/stories/Grouping.stories.d.ts +0 -14
  158. package/dist/legacy/stories/HeaderGroup.stories.d.ts +0 -11
  159. package/dist/legacy/stories/LargeData.stories.d.ts +0 -19
  160. package/dist/legacy/stories/MasterDetail.stories.d.ts +0 -17
  161. package/dist/legacy/stories/Merge.stories.d.ts +0 -10
  162. package/dist/legacy/stories/MultiRow.stories.d.ts +0 -12
  163. package/dist/legacy/stories/MultiRowCrud.stories.d.ts +0 -11
  164. package/dist/legacy/stories/MultiRowGroup.stories.d.ts +0 -11
  165. package/dist/legacy/stories/Pinning.stories.d.ts +0 -44
  166. package/dist/legacy/stories/Pivot.stories.d.ts +0 -23
  167. package/dist/legacy/stories/PivotAdvanced.stories.d.ts +0 -20
  168. package/dist/legacy/stories/PivotChart.stories.d.ts +0 -23
  169. package/dist/legacy/stories/PivotNonNumeric.stories.d.ts +0 -27
  170. package/dist/legacy/stories/Preset.stories.d.ts +0 -11
  171. package/dist/legacy/stories/ReactiveAPI.stories.d.ts +0 -8
  172. package/dist/legacy/stories/ReactiveSafety.stories.d.ts +0 -28
  173. package/dist/legacy/stories/Repro.stories.d.ts +0 -36
  174. package/dist/legacy/stories/RowAPI.stories.d.ts +0 -12
  175. package/dist/legacy/stories/SelectionModes.stories.d.ts +0 -35
  176. package/dist/legacy/stories/Streaming.stories.d.ts +0 -12
  177. package/dist/legacy/stories/Tree.stories.d.ts +0 -13
  178. package/dist/legacy/stories/WorkerMode.stories.d.ts +0 -15
  179. package/dist/legacy/utils/dialog/dialog.d.ts +0 -19
  180. /package/dist/{legacy/store → store}/UploadRefreshRegistry.d.ts +0 -0
  181. /package/dist/{legacy/store → store}/excelStore.d.ts +0 -0
  182. /package/dist/{legacy/stores → stores}/index.d.ts +0 -0
  183. /package/dist/{legacy/stores → stores}/projectInfo/projectInfo.contract.d.ts +0 -0
  184. /package/dist/{legacy/types → types}/FileParameter.d.ts +0 -0
  185. /package/dist/{legacy/types → types}/StreamingParameter.d.ts +0 -0
  186. /package/dist/{legacy/types → types}/excel.types.d.ts +0 -0
  187. /package/dist/{legacy/types → types}/index.d.ts +0 -0
  188. /package/dist/{legacy/utils → utils}/async/debounce.d.ts +0 -0
  189. /package/dist/{legacy/utils → utils}/crypto/crypto.d.ts +0 -0
  190. /package/dist/{legacy/utils → utils}/excel/ExcelGuard.d.ts +0 -0
  191. /package/dist/{legacy/utils → utils}/excel/ExcelImportUtil.d.ts +0 -0
  192. /package/dist/{legacy/utils → utils}/excel/ExcelQueueManager.d.ts +0 -0
  193. /package/dist/{legacy/utils → utils}/excel/ExcelTimeoutManager.d.ts +0 -0
  194. /package/dist/{legacy/utils → utils}/file.d.ts +0 -0
  195. /package/dist/{legacy/utils → utils}/http/rest.d.ts +0 -0
  196. /package/dist/{legacy/utils → utils}/id/generator.d.ts +0 -0
package/README.md CHANGED
@@ -11,19 +11,7 @@ pnpm add @vmscloud/moz-ui-grid-vue vue
11
11
  npmjs 공개 패키지라 레지스트리 설정이나 토큰 없이 설치됩니다.
12
12
  예전에 `.npmrc`에 넣어 둔 `@vmscloud:registry=https://npm.pkg.github.com` 매핑은 제거하세요.
13
13
 
14
- 단, 필수 peerDependency인 `@vmscloud/moz-ui-components`는 아직 GitHub Packages(private)에만 있습니다.
15
- 같은 스코프를 두 레지스트리에 동시에 매핑할 수 없으므로, 이 패키지만 tarball URL로 지정해 설치하세요.
16
-
17
- ```bash
18
- # GitHub Packages 읽기 권한이 있는 환경에서 tarball URL을 조회한 뒤
19
- npm view @vmscloud/moz-ui-components@<version> dist.tarball --@vmscloud:registry=https://npm.pkg.github.com
20
- pnpm add "@vmscloud/moz-ui-components@<위에서 얻은 tarball URL>"
21
- ```
22
-
23
- ```ini
24
- # .npmrc — 인증은 호스트별로만 남기고 스코프는 npmjs로 둡니다
25
- //npm.pkg.github.com/:_authToken=${GITHUB_PACKAGES_TOKEN}
26
- ```
14
+ peerDependency 는 `vue`·`pinia`·`axios`·`file-saver`·`dayjs` 뿐이며 `@vmscloud/moz-ui-grid-core`·`@vmscloud/moz-ui-grid-wrapper` 도 npmjs 에서 함께 내려받습니다. 예전에 GitHub Packages 에서 따로 받아야 하던 레거시 UI 컴포넌트 패키지는 더 이상 쓰지 않습니다(엑셀 가져오기 팝업·토스트·문자열을 이 패키지 안에 내장).
27
15
 
28
16
  ## 문서
29
17
 
@@ -106,6 +106,11 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
106
106
  "onUpdate:coreConfig"?: ((value: MozGridCoreProps) => any) | undefined;
107
107
  }>, {
108
108
  height: string | number;
109
+ useRowGroupSettings: boolean;
110
+ useFieldSettings: boolean;
111
+ useFormatSettings: boolean;
112
+ useLayoutSettings: boolean;
113
+ useAggregateSettings: boolean;
109
114
  useToolBox: boolean;
110
115
  useToolBoxSetting: boolean;
111
116
  useExtendFooter: boolean;
@@ -3,9 +3,132 @@ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { en
3
3
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
4
  import { defineStore } from "pinia";
5
5
  import { saveAs } from "file-saver";
6
- import { useToast, useMozLocale } from "@vmscloud/moz-ui-components";
7
6
  import { reactive, ref } from "vue";
8
7
  import axios from "axios";
8
+ const koKR = {
9
+ clientExcelImport: "엑셀 가져오기 (파일)",
10
+ clientExcelImportProgress: "엑셀 가져오기",
11
+ importMode: "모드",
12
+ importModeReplace: "덮어쓰기",
13
+ importModeAppend: "추가",
14
+ importModeUpsert: "추가/갱신",
15
+ conflictStrategy: "충돌 처리",
16
+ conflictError: "오류",
17
+ conflictSkip: "건너뛰기",
18
+ conflictUpdate: "갱신",
19
+ excelInvalidExcel: "유효하지 않은 Excel 파일입니다.",
20
+ overwriteSelected: "선택한 항목을 덮어쓰시겠습니까?",
21
+ dropHerePrefix: "이 곳을 ",
22
+ dropHereMiddle: " 또는 파일을 ",
23
+ dropHereSuffix: " 하세요.",
24
+ click: "클릭",
25
+ drag: "드래그",
26
+ check: "확인",
27
+ cancel: "취소",
28
+ alreadyExcelProgress: "Excel 작업이 이미 진행 중입니다.",
29
+ downloadFail: "다운로드에 실패했습니다.",
30
+ toastSaveSuccess: "저장되었습니다.",
31
+ toastSaveError: "저장에 실패했습니다.",
32
+ requestTimedOut: "요청 시간이 초과되었습니다."
33
+ };
34
+ const enUS = {
35
+ clientExcelImport: "Import Excel (file)",
36
+ clientExcelImportProgress: "Excel import",
37
+ importMode: "Mode",
38
+ importModeReplace: "Replace",
39
+ importModeAppend: "Append",
40
+ importModeUpsert: "Append/Update",
41
+ conflictStrategy: "On conflict",
42
+ conflictError: "Error",
43
+ conflictSkip: "Skip",
44
+ conflictUpdate: "Update",
45
+ excelInvalidExcel: "Invalid Excel file.",
46
+ overwriteSelected: "Overwrite selected items?",
47
+ dropHerePrefix: "",
48
+ dropHereMiddle: " here or ",
49
+ dropHereSuffix: " a file.",
50
+ click: "Click",
51
+ drag: "Drag",
52
+ check: "OK",
53
+ cancel: "Cancel",
54
+ alreadyExcelProgress: "Excel operation is already in progress.",
55
+ downloadFail: "Download failed.",
56
+ toastSaveSuccess: "Saved.",
57
+ toastSaveError: "Save failed.",
58
+ requestTimedOut: "Request timed out."
59
+ };
60
+ const jaJP = {
61
+ clientExcelImport: "Excel取り込み (ファイル)",
62
+ clientExcelImportProgress: "Excel取り込み",
63
+ importMode: "モード",
64
+ importModeReplace: "上書き",
65
+ importModeAppend: "追加",
66
+ importModeUpsert: "追加/更新",
67
+ conflictStrategy: "競合時の処理",
68
+ conflictError: "エラー",
69
+ conflictSkip: "スキップ",
70
+ conflictUpdate: "更新",
71
+ excelInvalidExcel: "無効なExcelファイルです。",
72
+ overwriteSelected: "選択項目を上書きしますか?",
73
+ dropHerePrefix: "ここを",
74
+ dropHereMiddle: "またはファイルを",
75
+ dropHereSuffix: "してください。",
76
+ click: "クリック",
77
+ drag: "ドラッグ",
78
+ check: "確認",
79
+ cancel: "キャンセル",
80
+ alreadyExcelProgress: "Excel操作が進行中です。",
81
+ downloadFail: "ダウンロードに失敗しました。",
82
+ toastSaveSuccess: "保存しました。",
83
+ toastSaveError: "保存に失敗しました。",
84
+ requestTimedOut: "リクエストがタイムアウトしました。"
85
+ };
86
+ const zhCN = {
87
+ clientExcelImport: "导入 Excel (文件)",
88
+ clientExcelImportProgress: "Excel 导入",
89
+ importMode: "模式",
90
+ importModeReplace: "覆盖",
91
+ importModeAppend: "追加",
92
+ importModeUpsert: "追加/更新",
93
+ conflictStrategy: "冲突处理",
94
+ conflictError: "错误",
95
+ conflictSkip: "跳过",
96
+ conflictUpdate: "更新",
97
+ excelInvalidExcel: "无效的 Excel 文件。",
98
+ overwriteSelected: "覆盖选定项?",
99
+ dropHerePrefix: "",
100
+ dropHereMiddle: "此处或",
101
+ dropHereSuffix: "文件。",
102
+ click: "点击",
103
+ drag: "拖拽",
104
+ check: "确认",
105
+ cancel: "取消",
106
+ alreadyExcelProgress: "Excel 操作正在进行中。",
107
+ downloadFail: "下载失败。",
108
+ toastSaveSuccess: "已保存。",
109
+ toastSaveError: "保存失败。",
110
+ requestTimedOut: "请求超时。"
111
+ };
112
+ const DICTS = { ko: koKR, en: enUS, ja: jaJP, zh: zhCN };
113
+ function normalizeGridVueLocale(locale) {
114
+ if (!locale) return "ko";
115
+ const lc = locale.toLowerCase();
116
+ if (lc.startsWith("en")) return "en";
117
+ if (lc.startsWith("ja")) return "ja";
118
+ if (lc.startsWith("zh")) return "zh";
119
+ return "ko";
120
+ }
121
+ let currentCode = "ko";
122
+ function setGridVueLocale(locale) {
123
+ currentCode = normalizeGridVueLocale(locale);
124
+ return currentCode;
125
+ }
126
+ function getGridVueLocaleCode() {
127
+ return currentCode;
128
+ }
129
+ function getGridVueLocale() {
130
+ return DICTS[currentCode];
131
+ }
9
132
  const DataType = {
10
133
  String: 1,
11
134
  Number: 2,
@@ -3022,30 +3145,47 @@ const debounce = (key, callback, wait) => {
3022
3145
  delete timers[key];
3023
3146
  }, wait);
3024
3147
  };
3148
+ const CONTAINER_CLASS = "mzc-toast-container";
3149
+ const DEFAULT_DURATION = 3e3;
3150
+ function getContainer() {
3151
+ let el = document.body.querySelector(`.${CONTAINER_CLASS}`);
3152
+ if (!el) {
3153
+ el = document.createElement("div");
3154
+ el.className = CONTAINER_CLASS;
3155
+ el.setAttribute("role", "status");
3156
+ el.setAttribute("aria-live", "polite");
3157
+ document.body.appendChild(el);
3158
+ }
3159
+ return el;
3160
+ }
3161
+ function openToast(message, type = "info", options = {}) {
3162
+ const container = getContainer();
3163
+ const item = document.createElement("div");
3164
+ item.className = `mzc-toast mzc-toast--${type}`;
3165
+ item.textContent = message;
3166
+ container.appendChild(item);
3167
+ let removed = false;
3168
+ const remove = () => {
3169
+ if (removed) return;
3170
+ removed = true;
3171
+ item.remove();
3172
+ if (!container.childElementCount) container.remove();
3173
+ };
3174
+ const timer = window.setTimeout(remove, options.duration ?? DEFAULT_DURATION);
3175
+ item.addEventListener("click", () => {
3176
+ window.clearTimeout(timer);
3177
+ remove();
3178
+ });
3179
+ return remove;
3180
+ }
3025
3181
  const showMessage = (message, result, options = {}) => {
3182
+ const text = String(message);
3026
3183
  debounce(
3027
- message.toString(),
3184
+ text,
3028
3185
  () => {
3029
- let type;
3030
- if (typeof result === "boolean") {
3031
- type = result ? "success" : "error";
3032
- } else {
3033
- type = result;
3034
- }
3035
- const toast = useToast();
3036
- toast.open(
3037
- Object.assign(
3038
- {},
3039
- {
3040
- message,
3041
- type
3042
- },
3043
- options
3044
- )
3045
- );
3046
- if (type === "error") {
3047
- console.error(message);
3048
- }
3186
+ const type = typeof result === "boolean" ? result ? "success" : "error" : result;
3187
+ openToast(text, type, options);
3188
+ if (type === "error") console.error(text);
3049
3189
  },
3050
3190
  300
3051
3191
  );
@@ -3086,7 +3226,6 @@ const excelProgressStoreSetup = () => {
3086
3226
  };
3087
3227
  };
3088
3228
  const excelStoreSetup = () => {
3089
- const locale = useMozLocale();
3090
3229
  const showPopup = ref(false);
3091
3230
  const isOverwrite = ref(false);
3092
3231
  const targetTable = ref(void 0);
@@ -3159,7 +3298,7 @@ const excelStoreSetup = () => {
3159
3298
  const downloadInfo = ref(null);
3160
3299
  const download = async (param = {}) => {
3161
3300
  if (file.value) {
3162
- return showMessage(locale.value.Grid.alreadyExcelProgress, false);
3301
+ return showMessage(getGridVueLocale().alreadyExcelProgress, false);
3163
3302
  }
3164
3303
  const id = generateGUID();
3165
3304
  file.value = new FileParameter("Download", id);
@@ -3178,7 +3317,7 @@ const excelStoreSetup = () => {
3178
3317
  file.value.onCancelClick = onCancelClick;
3179
3318
  } catch {
3180
3319
  file.value = null;
3181
- return showMessage(locale.value.Grid.downloadFail, false);
3320
+ return showMessage(getGridVueLocale().downloadFail, false);
3182
3321
  }
3183
3322
  };
3184
3323
  const onCompleted = (param) => {
@@ -3329,10 +3468,10 @@ const excelStoreSetup = () => {
3329
3468
  case "init":
3330
3469
  break;
3331
3470
  case "success":
3332
- showMessage(locale.value.Grid.toastSaveSuccess, true);
3471
+ showMessage(getGridVueLocale().toastSaveSuccess, true);
3333
3472
  break;
3334
3473
  case "error":
3335
- showMessage(locale.value.Grid.toastSaveError, false);
3474
+ showMessage(getGridVueLocale().toastSaveError, false);
3336
3475
  break;
3337
3476
  }
3338
3477
  isExcelUploadSuccess.value = "init";
@@ -3396,9 +3535,21 @@ const useExcelStore = defineStore("excelPopup", excelStoreSetup);
3396
3535
  const useExcelDownloadStore = defineStore("excelDownload", excelProgressStoreSetup);
3397
3536
  const useExcelUploadStore = defineStore("excelUpload", excelProgressStoreSetup);
3398
3537
  export {
3399
- useExcelStore as a,
3400
- useExcelUploadStore as b,
3401
- dataTypeToString as d,
3402
- generateGUID as g,
3403
- useExcelDownloadStore as u
3538
+ DataType as D,
3539
+ FileParameter as F,
3540
+ getGridVueLocaleCode as a,
3541
+ showMessage as b,
3542
+ useExcelStore as c,
3543
+ useExcelUploadStore as d,
3544
+ enUS as e,
3545
+ generateGUID as f,
3546
+ getGridVueLocale as g,
3547
+ dataTypeToString as h,
3548
+ jaJP as j,
3549
+ koKR as k,
3550
+ normalizeGridVueLocale as n,
3551
+ openToast as o,
3552
+ setGridVueLocale as s,
3553
+ useExcelDownloadStore as u,
3554
+ zhCN as z
3404
3555
  };
@@ -0,0 +1,14 @@
1
+ "use strict";var t=Object.defineProperty,e=(e,r,i)=>((e,r,i)=>r in e?t(e,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[r]=i)(e,"symbol"!=typeof r?r+"":r,i);const r=require("pinia"),i=require("file-saver"),n=require("vue"),o=require("axios"),s={clientExcelImport:"엑셀 가져오기 (파일)",clientExcelImportProgress:"엑셀 가져오기",importMode:"모드",importModeReplace:"덮어쓰기",importModeAppend:"추가",importModeUpsert:"추가/갱신",conflictStrategy:"충돌 처리",conflictError:"오류",conflictSkip:"건너뛰기",conflictUpdate:"갱신",excelInvalidExcel:"유효하지 않은 Excel 파일입니다.",overwriteSelected:"선택한 항목을 덮어쓰시겠습니까?",dropHerePrefix:"이 곳을 ",dropHereMiddle:" 또는 파일을 ",dropHereSuffix:" 하세요.",click:"클릭",drag:"드래그",check:"확인",cancel:"취소",alreadyExcelProgress:"Excel 작업이 이미 진행 중입니다.",downloadFail:"다운로드에 실패했습니다.",toastSaveSuccess:"저장되었습니다.",toastSaveError:"저장에 실패했습니다.",requestTimedOut:"요청 시간이 초과되었습니다."},f={clientExcelImport:"Import Excel (file)",clientExcelImportProgress:"Excel import",importMode:"Mode",importModeReplace:"Replace",importModeAppend:"Append",importModeUpsert:"Append/Update",conflictStrategy:"On conflict",conflictError:"Error",conflictSkip:"Skip",conflictUpdate:"Update",excelInvalidExcel:"Invalid Excel file.",overwriteSelected:"Overwrite selected items?",dropHerePrefix:"",dropHereMiddle:" here or ",dropHereSuffix:" a file.",click:"Click",drag:"Drag",check:"OK",cancel:"Cancel",alreadyExcelProgress:"Excel operation is already in progress.",downloadFail:"Download failed.",toastSaveSuccess:"Saved.",toastSaveError:"Save failed.",requestTimedOut:"Request timed out."},a={clientExcelImport:"Excel取り込み (ファイル)",clientExcelImportProgress:"Excel取り込み",importMode:"モード",importModeReplace:"上書き",importModeAppend:"追加",importModeUpsert:"追加/更新",conflictStrategy:"競合時の処理",conflictError:"エラー",conflictSkip:"スキップ",conflictUpdate:"更新",excelInvalidExcel:"無効なExcelファイルです。",overwriteSelected:"選択項目を上書きしますか?",dropHerePrefix:"ここを",dropHereMiddle:"またはファイルを",dropHereSuffix:"してください。",click:"クリック",drag:"ドラッグ",check:"確認",cancel:"キャンセル",alreadyExcelProgress:"Excel操作が進行中です。",downloadFail:"ダウンロードに失敗しました。",toastSaveSuccess:"保存しました。",toastSaveError:"保存に失敗しました。",requestTimedOut:"リクエストがタイムアウトしました。"},h={clientExcelImport:"导入 Excel (文件)",clientExcelImportProgress:"Excel 导入",importMode:"模式",importModeReplace:"覆盖",importModeAppend:"追加",importModeUpsert:"追加/更新",conflictStrategy:"冲突处理",conflictError:"错误",conflictSkip:"跳过",conflictUpdate:"更新",excelInvalidExcel:"无效的 Excel 文件。",overwriteSelected:"覆盖选定项?",dropHerePrefix:"",dropHereMiddle:"此处或",dropHereSuffix:"文件。",click:"点击",drag:"拖拽",check:"确认",cancel:"取消",alreadyExcelProgress:"Excel 操作正在进行中。",downloadFail:"下载失败。",toastSaveSuccess:"已保存。",toastSaveError:"保存失败。",requestTimedOut:"请求超时。"},l={ko:s,en:f,ja:a,zh:h};function u(t){if(!t)return"ko";const e=t.toLowerCase();return e.startsWith("en")?"en":e.startsWith("ja")?"ja":e.startsWith("zh")?"zh":"ko"}let g="ko";function c(){return l[g]}const d={String:1,Number:2,Boolean:3,Date:4};class v{constructor(t,r){e(this,"sessionId"),e(this,"name",""),e(this,"path",""),e(this,"saveDir",""),e(this,"size",0),e(this,"file"),e(this,"info"),e(this,"type","Upload"),e(this,"offset",0),e(this,"isComplete",!1),e(this,"isCancelable",!1),e(this,"isCanceled",!1),e(this,"blobInfo"),e(this,"onCompleted"),e(this,"onCancelClick"),this.type=t,this.sessionId=r}get ipcObject(){return{sessionId:this.sessionId,name:this.name,path:this.path,saveDir:this.saveDir,size:this.size,info:this.info}}get totalSize(){var t,e;return"Upload"===this.type?+((null==(t=this.file)?void 0:t.size)||this.size):+((null==(e=this.info)?void 0:e.length)||0)}get percent(){return 0===this.offset||0===this.totalSize?0:Math.round(this.offset/this.totalSize*100)}get progressValue(){return+this.offset}get status(){return`${this.percent}% (${this.formatSizeUnits(this.offset)}/${this.formatSizeUnits(this.totalSize)})`}completed(t){this.isCancelable=!1,this.isComplete=!0,this.blobInfo=t,this.onCompleted&&this.onCompleted(this)}formatSizeUnits(t){let e="";return e=t>=1073741824?(t/1073741824).toFixed(2)+" GB":t>=1048576?(t/1048576).toFixed(2)+" MB":t>=1024?(t/1024).toFixed(2)+" KB":t>1?`${t} bytes`:1===t?`${t} byte`:"0 bytes",e}}const w=()=>{const t=()=>(65536*(1+Math.random())|0).toString(16).substring(1);return`${t()+t()}-${t()}-${t()}-${t()}-${t()}${t()}${t()}`.toUpperCase()};function b(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var y,p,m,E,I,T={exports:{}},L={exports:{}},U=L.exports;const A=b((p||(p=1,
2
+ /**
3
+ * @license bytebuffer.js (c) 2015 Daniel Wirtz <dcode@dcode.io>
4
+ * Backing buffer: ArrayBuffer, Accessor: Uint8Array
5
+ * Released under the Apache License, Version 2.0
6
+ * see: https://github.com/dcodeIO/bytebuffer.js for details
7
+ */
8
+ E=T.exports,I=function(t){var e=function(t,r,n){if(void 0===t&&(t=e.DEFAULT_CAPACITY),void 0===r&&(r=e.DEFAULT_ENDIAN),void 0===n&&(n=e.DEFAULT_NOASSERT),!n){if((t|=0)<0)throw RangeError("Illegal capacity");r=!!r,n=!!n}this.buffer=0===t?i:new ArrayBuffer(t),this.view=0===t?null:new Uint8Array(this.buffer),this.offset=0,this.markedOffset=-1,this.limit=t,this.littleEndian=r,this.noAssert=n};e.VERSION="5.0.1",e.LITTLE_ENDIAN=!0,e.BIG_ENDIAN=!1,e.DEFAULT_CAPACITY=16,e.DEFAULT_ENDIAN=e.BIG_ENDIAN,e.DEFAULT_NOASSERT=!1,e.Long=t||null;var r=e.prototype;r.__isByteBuffer__,Object.defineProperty(r,"__isByteBuffer__",{value:!0,enumerable:!1,configurable:!1});var i=new ArrayBuffer(0),n=String.fromCharCode;function o(t){var e=0;return function(){return e<t.length?t.charCodeAt(e++):null}}function s(){var t=[],e=[];return function(){if(0===arguments.length)return e.join("")+n.apply(String,t);t.length+arguments.length>1024&&(e.push(n.apply(String,t)),t.length=0),Array.prototype.push.apply(t,arguments)}}function f(t,e,r,i,n){var o,s,f=8*n-i-1,a=(1<<f)-1,h=a>>1,l=-7,u=r?n-1:0,g=r?-1:1,c=t[e+u];for(u+=g,o=c&(1<<-l)-1,c>>=-l,l+=f;l>0;o=256*o+t[e+u],u+=g,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=i;l>0;s=256*s+t[e+u],u+=g,l-=8);if(0===o)o=1-h;else{if(o===a)return s?NaN:1/0*(c?-1:1);s+=Math.pow(2,i),o-=h}return(c?-1:1)*s*Math.pow(2,o-i)}function a(t,e,r,i,n,o){var s,f,a,h=8*o-n-1,l=(1<<h)-1,u=l>>1,g=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,c=i?0:o-1,d=i?1:-1,v=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(f=isNaN(e)?1:0,s=l):(s=Math.floor(Math.log(e)/Math.LN2),e*(a=Math.pow(2,-s))<1&&(s--,a*=2),(e+=s+u>=1?g/a:g*Math.pow(2,1-u))*a>=2&&(s++,a/=2),s+u>=l?(f=0,s=l):s+u>=1?(f=(e*a-1)*Math.pow(2,n),s+=u):(f=e*Math.pow(2,u-1)*Math.pow(2,n),s=0));n>=8;t[r+c]=255&f,c+=d,f/=256,n-=8);for(s=s<<n|f,h+=n;h>0;t[r+c]=255&s,c+=d,s/=256,h-=8);t[r+c-d]|=128*v}e.accessor=function(){return Uint8Array},e.allocate=function(t,r,i){return new e(t,r,i)},e.concat=function(t,r,i,n){"boolean"!=typeof r&&"string"==typeof r||(n=i,i=r,r=void 0);for(var o,s=0,f=0,a=t.length;f<a;++f)e.isByteBuffer(t[f])||(t[f]=e.wrap(t[f],r)),(o=t[f].limit-t[f].offset)>0&&(s+=o);if(0===s)return new e(0,i,n);var h,l=new e(s,i,n);for(f=0;f<a;)(o=(h=t[f++]).limit-h.offset)<=0||(l.view.set(h.view.subarray(h.offset,h.limit),l.offset),l.offset+=o);return l.limit=l.offset,l.offset=0,l},e.isByteBuffer=function(t){return!0===(t&&t.__isByteBuffer__)},e.type=function(){return ArrayBuffer},e.wrap=function(t,i,n,o){if("string"!=typeof i&&(o=n,n=i,i=void 0),"string"==typeof t)switch(void 0===i&&(i="utf8"),i){case"base64":return e.fromBase64(t,n);case"hex":return e.fromHex(t,n);case"binary":return e.fromBinary(t,n);case"utf8":return e.fromUTF8(t,n);case"debug":return e.fromDebug(t,n);default:throw Error("Unsupported encoding: "+i)}if(null===t||"object"!=typeof t)throw TypeError("Illegal buffer");var s;if(e.isByteBuffer(t))return(s=r.clone.call(t)).markedOffset=-1,s;if(t instanceof Uint8Array)s=new e(0,n,o),t.length>0&&(s.buffer=t.buffer,s.offset=t.byteOffset,s.limit=t.byteOffset+t.byteLength,s.view=new Uint8Array(t.buffer));else if(t instanceof ArrayBuffer)s=new e(0,n,o),t.byteLength>0&&(s.buffer=t,s.offset=0,s.limit=t.byteLength,s.view=t.byteLength>0?new Uint8Array(t):null);else{if("[object Array]"!==Object.prototype.toString.call(t))throw TypeError("Illegal buffer");(s=new e(t.length,n,o)).limit=t.length;for(var f=0;f<t.length;++f)s.view[f]=t[f]}return s},r.writeBitSet=function(t,e){var r=void 0===e;if(r&&(e=this.offset),!this.noAssert){if(!(t instanceof Array))throw TypeError("Illegal BitSet: Not an array");if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+0) <= "+this.buffer.byteLength)}var i,n=e,o=t.length,s=o>>3,f=0;for(e+=this.writeVarint32(o,e);s--;)i=1&!!t[f++]|(1&!!t[f++])<<1|(1&!!t[f++])<<2|(1&!!t[f++])<<3|(1&!!t[f++])<<4|(1&!!t[f++])<<5|(1&!!t[f++])<<6|(1&!!t[f++])<<7,this.writeByte(i,e++);if(f<o){var a=0;for(i=0;f<o;)i|=(1&!!t[f++])<<a++;this.writeByte(i,e++)}return r?(this.offset=e,this):e-n},r.readBitSet=function(t){var e=void 0===t;e&&(t=this.offset);var r,i=this.readVarint32(t),n=i.value,o=n>>3,s=0,f=[];for(t+=i.length;o--;)r=this.readByte(t++),f[s++]=!!(1&r),f[s++]=!!(2&r),f[s++]=!!(4&r),f[s++]=!!(8&r),f[s++]=!!(16&r),f[s++]=!!(32&r),f[s++]=!!(64&r),f[s++]=!!(128&r);if(s<n){var a=0;for(r=this.readByte(t++);s<n;)f[s++]=!!(r>>a++&1)}return e&&(this.offset=t),f},r.readBytes=function(t,e){var r=void 0===e;if(r&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+t>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+"+t+") <= "+this.buffer.byteLength)}var i=this.slice(e,e+t);return r&&(this.offset+=t),i},r.writeBytes=r.append,r.writeInt8=function(t,e){var r=void 0===e;if(r&&(e=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal value: "+t+" (not an integer)");if(t|=0,"number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+0) <= "+this.buffer.byteLength)}e+=1;var i=this.buffer.byteLength;return e>i&&this.resize((i*=2)>e?i:e),e-=1,this.view[e]=t,r&&(this.offset+=1),this},r.writeByte=r.writeInt8,r.readInt8=function(t){var e=void 0===t;if(e&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+1) <= "+this.buffer.byteLength)}var r=this.view[t];return 128&~r||(r=-(255-r+1)),e&&(this.offset+=1),r},r.readByte=r.readInt8,r.writeUint8=function(t,e){var r=void 0===e;if(r&&(e=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal value: "+t+" (not an integer)");if(t>>>=0,"number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+0) <= "+this.buffer.byteLength)}e+=1;var i=this.buffer.byteLength;return e>i&&this.resize((i*=2)>e?i:e),e-=1,this.view[e]=t,r&&(this.offset+=1),this},r.writeUInt8=r.writeUint8,r.readUint8=function(t){var e=void 0===t;if(e&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+1) <= "+this.buffer.byteLength)}var r=this.view[t];return e&&(this.offset+=1),r},r.readUInt8=r.readUint8,r.writeInt16=function(t,e){var r=void 0===e;if(r&&(e=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal value: "+t+" (not an integer)");if(t|=0,"number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+0) <= "+this.buffer.byteLength)}e+=2;var i=this.buffer.byteLength;return e>i&&this.resize((i*=2)>e?i:e),e-=2,this.littleEndian?(this.view[e+1]=(65280&t)>>>8,this.view[e]=255&t):(this.view[e]=(65280&t)>>>8,this.view[e+1]=255&t),r&&(this.offset+=2),this},r.writeShort=r.writeInt16,r.readInt16=function(t){var e=void 0===t;if(e&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+2>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+2) <= "+this.buffer.byteLength)}var r=0;return this.littleEndian?(r=this.view[t],r|=this.view[t+1]<<8):(r=this.view[t]<<8,r|=this.view[t+1]),32768&~r||(r=-(65535-r+1)),e&&(this.offset+=2),r},r.readShort=r.readInt16,r.writeUint16=function(t,e){var r=void 0===e;if(r&&(e=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal value: "+t+" (not an integer)");if(t>>>=0,"number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+0) <= "+this.buffer.byteLength)}e+=2;var i=this.buffer.byteLength;return e>i&&this.resize((i*=2)>e?i:e),e-=2,this.littleEndian?(this.view[e+1]=(65280&t)>>>8,this.view[e]=255&t):(this.view[e]=(65280&t)>>>8,this.view[e+1]=255&t),r&&(this.offset+=2),this},r.writeUInt16=r.writeUint16,r.readUint16=function(t){var e=void 0===t;if(e&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+2>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+2) <= "+this.buffer.byteLength)}var r=0;return this.littleEndian?(r=this.view[t],r|=this.view[t+1]<<8):(r=this.view[t]<<8,r|=this.view[t+1]),e&&(this.offset+=2),r},r.readUInt16=r.readUint16,r.writeInt32=function(t,e){var r=void 0===e;if(r&&(e=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal value: "+t+" (not an integer)");if(t|=0,"number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+0) <= "+this.buffer.byteLength)}e+=4;var i=this.buffer.byteLength;return e>i&&this.resize((i*=2)>e?i:e),e-=4,this.littleEndian?(this.view[e+3]=t>>>24&255,this.view[e+2]=t>>>16&255,this.view[e+1]=t>>>8&255,this.view[e]=255&t):(this.view[e]=t>>>24&255,this.view[e+1]=t>>>16&255,this.view[e+2]=t>>>8&255,this.view[e+3]=255&t),r&&(this.offset+=4),this},r.writeInt=r.writeInt32,r.readInt32=function(t){var e=void 0===t;if(e&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+4>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+4) <= "+this.buffer.byteLength)}var r=0;return this.littleEndian?(r=this.view[t+2]<<16,r|=this.view[t+1]<<8,r|=this.view[t],r+=this.view[t+3]<<24>>>0):(r=this.view[t+1]<<16,r|=this.view[t+2]<<8,r|=this.view[t+3],r+=this.view[t]<<24>>>0),r|=0,e&&(this.offset+=4),r},r.readInt=r.readInt32,r.writeUint32=function(t,e){var r=void 0===e;if(r&&(e=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal value: "+t+" (not an integer)");if(t>>>=0,"number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+0) <= "+this.buffer.byteLength)}e+=4;var i=this.buffer.byteLength;return e>i&&this.resize((i*=2)>e?i:e),e-=4,this.littleEndian?(this.view[e+3]=t>>>24&255,this.view[e+2]=t>>>16&255,this.view[e+1]=t>>>8&255,this.view[e]=255&t):(this.view[e]=t>>>24&255,this.view[e+1]=t>>>16&255,this.view[e+2]=t>>>8&255,this.view[e+3]=255&t),r&&(this.offset+=4),this},r.writeUInt32=r.writeUint32,r.readUint32=function(t){var e=void 0===t;if(e&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+4>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+4) <= "+this.buffer.byteLength)}var r=0;return this.littleEndian?(r=this.view[t+2]<<16,r|=this.view[t+1]<<8,r|=this.view[t],r+=this.view[t+3]<<24>>>0):(r=this.view[t+1]<<16,r|=this.view[t+2]<<8,r|=this.view[t+3],r+=this.view[t]<<24>>>0),e&&(this.offset+=4),r},r.readUInt32=r.readUint32,t&&(r.writeInt64=function(e,r){var i=void 0===r;if(i&&(r=this.offset),!this.noAssert){if("number"==typeof e)e=t.fromNumber(e);else if("string"==typeof e)e=t.fromString(e);else if(!(e&&e instanceof t))throw TypeError("Illegal value: "+e+" (not an integer or Long)");if("number"!=typeof r||r%1!=0)throw TypeError("Illegal offset: "+r+" (not an integer)");if((r>>>=0)<0||r+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+r+" (+0) <= "+this.buffer.byteLength)}"number"==typeof e?e=t.fromNumber(e):"string"==typeof e&&(e=t.fromString(e)),r+=8;var n=this.buffer.byteLength;r>n&&this.resize((n*=2)>r?n:r),r-=8;var o=e.low,s=e.high;return this.littleEndian?(this.view[r+3]=o>>>24&255,this.view[r+2]=o>>>16&255,this.view[r+1]=o>>>8&255,this.view[r]=255&o,r+=4,this.view[r+3]=s>>>24&255,this.view[r+2]=s>>>16&255,this.view[r+1]=s>>>8&255,this.view[r]=255&s):(this.view[r]=s>>>24&255,this.view[r+1]=s>>>16&255,this.view[r+2]=s>>>8&255,this.view[r+3]=255&s,r+=4,this.view[r]=o>>>24&255,this.view[r+1]=o>>>16&255,this.view[r+2]=o>>>8&255,this.view[r+3]=255&o),i&&(this.offset+=8),this},r.writeLong=r.writeInt64,r.readInt64=function(e){var r=void 0===e;if(r&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+8>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+8) <= "+this.buffer.byteLength)}var i=0,n=0;this.littleEndian?(i=this.view[e+2]<<16,i|=this.view[e+1]<<8,i|=this.view[e],i+=this.view[e+3]<<24>>>0,e+=4,n=this.view[e+2]<<16,n|=this.view[e+1]<<8,n|=this.view[e],n+=this.view[e+3]<<24>>>0):(n=this.view[e+1]<<16,n|=this.view[e+2]<<8,n|=this.view[e+3],n+=this.view[e]<<24>>>0,e+=4,i=this.view[e+1]<<16,i|=this.view[e+2]<<8,i|=this.view[e+3],i+=this.view[e]<<24>>>0);var o=new t(i,n,!1);return r&&(this.offset+=8),o},r.readLong=r.readInt64,r.writeUint64=function(e,r){var i=void 0===r;if(i&&(r=this.offset),!this.noAssert){if("number"==typeof e)e=t.fromNumber(e);else if("string"==typeof e)e=t.fromString(e);else if(!(e&&e instanceof t))throw TypeError("Illegal value: "+e+" (not an integer or Long)");if("number"!=typeof r||r%1!=0)throw TypeError("Illegal offset: "+r+" (not an integer)");if((r>>>=0)<0||r+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+r+" (+0) <= "+this.buffer.byteLength)}"number"==typeof e?e=t.fromNumber(e):"string"==typeof e&&(e=t.fromString(e)),r+=8;var n=this.buffer.byteLength;r>n&&this.resize((n*=2)>r?n:r),r-=8;var o=e.low,s=e.high;return this.littleEndian?(this.view[r+3]=o>>>24&255,this.view[r+2]=o>>>16&255,this.view[r+1]=o>>>8&255,this.view[r]=255&o,r+=4,this.view[r+3]=s>>>24&255,this.view[r+2]=s>>>16&255,this.view[r+1]=s>>>8&255,this.view[r]=255&s):(this.view[r]=s>>>24&255,this.view[r+1]=s>>>16&255,this.view[r+2]=s>>>8&255,this.view[r+3]=255&s,r+=4,this.view[r]=o>>>24&255,this.view[r+1]=o>>>16&255,this.view[r+2]=o>>>8&255,this.view[r+3]=255&o),i&&(this.offset+=8),this},r.writeUInt64=r.writeUint64,r.readUint64=function(e){var r=void 0===e;if(r&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+8>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+8) <= "+this.buffer.byteLength)}var i=0,n=0;this.littleEndian?(i=this.view[e+2]<<16,i|=this.view[e+1]<<8,i|=this.view[e],i+=this.view[e+3]<<24>>>0,e+=4,n=this.view[e+2]<<16,n|=this.view[e+1]<<8,n|=this.view[e],n+=this.view[e+3]<<24>>>0):(n=this.view[e+1]<<16,n|=this.view[e+2]<<8,n|=this.view[e+3],n+=this.view[e]<<24>>>0,e+=4,i=this.view[e+1]<<16,i|=this.view[e+2]<<8,i|=this.view[e+3],i+=this.view[e]<<24>>>0);var o=new t(i,n,!0);return r&&(this.offset+=8),o},r.readUInt64=r.readUint64),r.writeFloat32=function(t,e){var r=void 0===e;if(r&&(e=this.offset),!this.noAssert){if("number"!=typeof t)throw TypeError("Illegal value: "+t+" (not a number)");if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+0) <= "+this.buffer.byteLength)}e+=4;var i=this.buffer.byteLength;return e>i&&this.resize((i*=2)>e?i:e),e-=4,a(this.view,t,e,this.littleEndian,23,4),r&&(this.offset+=4),this},r.writeFloat=r.writeFloat32,r.readFloat32=function(t){var e=void 0===t;if(e&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+4>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+4) <= "+this.buffer.byteLength)}var r=f(this.view,t,this.littleEndian,23,4);return e&&(this.offset+=4),r},r.readFloat=r.readFloat32,r.writeFloat64=function(t,e){var r=void 0===e;if(r&&(e=this.offset),!this.noAssert){if("number"!=typeof t)throw TypeError("Illegal value: "+t+" (not a number)");if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+0) <= "+this.buffer.byteLength)}e+=8;var i=this.buffer.byteLength;return e>i&&this.resize((i*=2)>e?i:e),e-=8,a(this.view,t,e,this.littleEndian,52,8),r&&(this.offset+=8),this},r.writeDouble=r.writeFloat64,r.readFloat64=function(t){var e=void 0===t;if(e&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+8>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+8) <= "+this.buffer.byteLength)}var r=f(this.view,t,this.littleEndian,52,8);return e&&(this.offset+=8),r},r.readDouble=r.readFloat64,e.MAX_VARINT32_BYTES=5,e.calculateVarint32=function(t){return(t>>>=0)<128?1:t<16384?2:t<1<<21?3:t<1<<28?4:5},e.zigZagEncode32=function(t){return((t|=0)<<1^t>>31)>>>0},e.zigZagDecode32=function(t){return t>>>1^-(1&t)},r.writeVarint32=function(t,r){var i=void 0===r;if(i&&(r=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal value: "+t+" (not an integer)");if(t|=0,"number"!=typeof r||r%1!=0)throw TypeError("Illegal offset: "+r+" (not an integer)");if((r>>>=0)<0||r+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+r+" (+0) <= "+this.buffer.byteLength)}var n,o=e.calculateVarint32(t);r+=o;var s=this.buffer.byteLength;for(r>s&&this.resize((s*=2)>r?s:r),r-=o,t>>>=0;t>=128;)n=127&t|128,this.view[r++]=n,t>>>=7;return this.view[r++]=t,i?(this.offset=r,this):o},r.writeVarint32ZigZag=function(t,r){return this.writeVarint32(e.zigZagEncode32(t),r)},r.readVarint32=function(t){var e=void 0===t;if(e&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+1) <= "+this.buffer.byteLength)}var r,i=0,n=0;do{if(!this.noAssert&&t>this.limit){var o=Error("Truncated");throw o.truncated=!0,o}r=this.view[t++],i<5&&(n|=(127&r)<<7*i),++i}while(128&r);return n|=0,e?(this.offset=t,n):{value:n,length:i}},r.readVarint32ZigZag=function(t){var r=this.readVarint32(t);return"object"==typeof r?r.value=e.zigZagDecode32(r.value):r=e.zigZagDecode32(r),r},t&&(e.MAX_VARINT64_BYTES=10,e.calculateVarint64=function(e){"number"==typeof e?e=t.fromNumber(e):"string"==typeof e&&(e=t.fromString(e));var r=e.toInt()>>>0,i=e.shiftRightUnsigned(28).toInt()>>>0,n=e.shiftRightUnsigned(56).toInt()>>>0;return 0==n?0==i?r<16384?r<128?1:2:r<1<<21?3:4:i<16384?i<128?5:6:i<1<<21?7:8:n<128?9:10},e.zigZagEncode64=function(e){return"number"==typeof e?e=t.fromNumber(e,!1):"string"==typeof e?e=t.fromString(e,!1):!1!==e.unsigned&&(e=e.toSigned()),e.shiftLeft(1).xor(e.shiftRight(63)).toUnsigned()},e.zigZagDecode64=function(e){return"number"==typeof e?e=t.fromNumber(e,!1):"string"==typeof e?e=t.fromString(e,!1):!1!==e.unsigned&&(e=e.toSigned()),e.shiftRightUnsigned(1).xor(e.and(t.ONE).toSigned().negate()).toSigned()},r.writeVarint64=function(r,i){var n=void 0===i;if(n&&(i=this.offset),!this.noAssert){if("number"==typeof r)r=t.fromNumber(r);else if("string"==typeof r)r=t.fromString(r);else if(!(r&&r instanceof t))throw TypeError("Illegal value: "+r+" (not an integer or Long)");if("number"!=typeof i||i%1!=0)throw TypeError("Illegal offset: "+i+" (not an integer)");if((i>>>=0)<0||i+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+i+" (+0) <= "+this.buffer.byteLength)}"number"==typeof r?r=t.fromNumber(r,!1):"string"==typeof r?r=t.fromString(r,!1):!1!==r.unsigned&&(r=r.toSigned());var o=e.calculateVarint64(r),s=r.toInt()>>>0,f=r.shiftRightUnsigned(28).toInt()>>>0,a=r.shiftRightUnsigned(56).toInt()>>>0;i+=o;var h=this.buffer.byteLength;switch(i>h&&this.resize((h*=2)>i?h:i),i-=o,o){case 10:this.view[i+9]=a>>>7&1;case 9:this.view[i+8]=9!==o?128|a:127&a;case 8:this.view[i+7]=8!==o?f>>>21|128:f>>>21&127;case 7:this.view[i+6]=7!==o?f>>>14|128:f>>>14&127;case 6:this.view[i+5]=6!==o?f>>>7|128:f>>>7&127;case 5:this.view[i+4]=5!==o?128|f:127&f;case 4:this.view[i+3]=4!==o?s>>>21|128:s>>>21&127;case 3:this.view[i+2]=3!==o?s>>>14|128:s>>>14&127;case 2:this.view[i+1]=2!==o?s>>>7|128:s>>>7&127;case 1:this.view[i]=1!==o?128|s:127&s}return n?(this.offset+=o,this):o},r.writeVarint64ZigZag=function(t,r){return this.writeVarint64(e.zigZagEncode64(t),r)},r.readVarint64=function(e){var r=void 0===e;if(r&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+1) <= "+this.buffer.byteLength)}var i=e,n=0,o=0,s=0,f=0;if(n=127&(f=this.view[e++]),128&f&&(n|=(127&(f=this.view[e++]))<<7,(128&f||this.noAssert&&void 0===f)&&(n|=(127&(f=this.view[e++]))<<14,(128&f||this.noAssert&&void 0===f)&&(n|=(127&(f=this.view[e++]))<<21,(128&f||this.noAssert&&void 0===f)&&(o=127&(f=this.view[e++]),(128&f||this.noAssert&&void 0===f)&&(o|=(127&(f=this.view[e++]))<<7,(128&f||this.noAssert&&void 0===f)&&(o|=(127&(f=this.view[e++]))<<14,(128&f||this.noAssert&&void 0===f)&&(o|=(127&(f=this.view[e++]))<<21,(128&f||this.noAssert&&void 0===f)&&(s=127&(f=this.view[e++]),(128&f||this.noAssert&&void 0===f)&&(s|=(127&(f=this.view[e++]))<<7,128&f||this.noAssert&&void 0===f))))))))))throw Error("Buffer overrun");var a=t.fromBits(n|o<<28,o>>>4|s<<24,!1);return r?(this.offset=e,a):{value:a,length:e-i}},r.readVarint64ZigZag=function(r){var i=this.readVarint64(r);return i&&i.value instanceof t?i.value=e.zigZagDecode64(i.value):i=e.zigZagDecode64(i),i}),r.writeCString=function(t,e){var r=void 0===e;r&&(e=this.offset);var i,n=t.length;if(!this.noAssert){if("string"!=typeof t)throw TypeError("Illegal str: Not a string");for(i=0;i<n;++i)if(0===t.charCodeAt(i))throw RangeError("Illegal str: Contains NULL-characters");if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+0) <= "+this.buffer.byteLength)}n=u.calculateUTF16asUTF8(o(t))[1],e+=n+1;var s=this.buffer.byteLength;return e>s&&this.resize((s*=2)>e?s:e),e-=n+1,u.encodeUTF16toUTF8(o(t),function(t){this.view[e++]=t}.bind(this)),this.view[e++]=0,r?(this.offset=e,this):n},r.readCString=function(t){var e=void 0===t;if(e&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+1) <= "+this.buffer.byteLength)}var r,i=t,n=-1;return u.decodeUTF8toUTF16(function(){if(0===n)return null;if(t>=this.limit)throw RangeError("Illegal range: Truncated data, "+t+" < "+this.limit);return 0===(n=this.view[t++])?null:n}.bind(this),r=s(),!0),e?(this.offset=t,r()):{string:r(),length:t-i}},r.writeIString=function(t,e){var r=void 0===e;if(r&&(e=this.offset),!this.noAssert){if("string"!=typeof t)throw TypeError("Illegal str: Not a string");if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+0) <= "+this.buffer.byteLength)}var i,n=e;i=u.calculateUTF16asUTF8(o(t),this.noAssert)[1],e+=4+i;var s=this.buffer.byteLength;if(e>s&&this.resize((s*=2)>e?s:e),e-=4+i,this.littleEndian?(this.view[e+3]=i>>>24&255,this.view[e+2]=i>>>16&255,this.view[e+1]=i>>>8&255,this.view[e]=255&i):(this.view[e]=i>>>24&255,this.view[e+1]=i>>>16&255,this.view[e+2]=i>>>8&255,this.view[e+3]=255&i),e+=4,u.encodeUTF16toUTF8(o(t),function(t){this.view[e++]=t}.bind(this)),e!==n+4+i)throw RangeError("Illegal range: Truncated data, "+e+" == "+(e+4+i));return r?(this.offset=e,this):e-n},r.readIString=function(t){var r=void 0===t;if(r&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+4>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+4) <= "+this.buffer.byteLength)}var i=t,n=this.readUint32(t),o=this.readUTF8String(n,e.METRICS_BYTES,t+=4);return t+=o.length,r?(this.offset=t,o.string):{string:o.string,length:t-i}},e.METRICS_CHARS="c",e.METRICS_BYTES="b",r.writeUTF8String=function(t,e){var r,i=void 0===e;if(i&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+0) <= "+this.buffer.byteLength)}var n=e;r=u.calculateUTF16asUTF8(o(t))[1],e+=r;var s=this.buffer.byteLength;return e>s&&this.resize((s*=2)>e?s:e),e-=r,u.encodeUTF16toUTF8(o(t),function(t){this.view[e++]=t}.bind(this)),i?(this.offset=e,this):e-n},r.writeString=r.writeUTF8String,e.calculateUTF8Chars=function(t){return u.calculateUTF16asUTF8(o(t))[0]},e.calculateUTF8Bytes=function(t){return u.calculateUTF16asUTF8(o(t))[1]},e.calculateString=e.calculateUTF8Bytes,r.readUTF8String=function(t,r,i){"number"==typeof r&&(i=r,r=void 0);var n=void 0===i;if(n&&(i=this.offset),void 0===r&&(r=e.METRICS_CHARS),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal length: "+t+" (not an integer)");if(t|=0,"number"!=typeof i||i%1!=0)throw TypeError("Illegal offset: "+i+" (not an integer)");if((i>>>=0)<0||i+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+i+" (+0) <= "+this.buffer.byteLength)}var o,f=0,a=i;if(r===e.METRICS_CHARS){if(o=s(),u.decodeUTF8(function(){return f<t&&i<this.limit?this.view[i++]:null}.bind(this),function(t){++f,u.UTF8toUTF16(t,o)}),f!==t)throw RangeError("Illegal range: Truncated data, "+f+" == "+t);return n?(this.offset=i,o()):{string:o(),length:i-a}}if(r===e.METRICS_BYTES){if(!this.noAssert){if("number"!=typeof i||i%1!=0)throw TypeError("Illegal offset: "+i+" (not an integer)");if((i>>>=0)<0||i+t>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+i+" (+"+t+") <= "+this.buffer.byteLength)}var h=i+t;if(u.decodeUTF8toUTF16(function(){return i<h?this.view[i++]:null}.bind(this),o=s(),this.noAssert),i!==h)throw RangeError("Illegal range: Truncated data, "+i+" == "+h);return n?(this.offset=i,o()):{string:o(),length:i-a}}throw TypeError("Unsupported metrics: "+r)},r.readString=r.readUTF8String,r.writeVString=function(t,r){var i=void 0===r;if(i&&(r=this.offset),!this.noAssert){if("string"!=typeof t)throw TypeError("Illegal str: Not a string");if("number"!=typeof r||r%1!=0)throw TypeError("Illegal offset: "+r+" (not an integer)");if((r>>>=0)<0||r+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+r+" (+0) <= "+this.buffer.byteLength)}var n,s,f=r;n=u.calculateUTF16asUTF8(o(t),this.noAssert)[1],s=e.calculateVarint32(n),r+=s+n;var a=this.buffer.byteLength;if(r>a&&this.resize((a*=2)>r?a:r),r-=s+n,r+=this.writeVarint32(n,r),u.encodeUTF16toUTF8(o(t),function(t){this.view[r++]=t}.bind(this)),r!==f+n+s)throw RangeError("Illegal range: Truncated data, "+r+" == "+(r+n+s));return i?(this.offset=r,this):r-f},r.readVString=function(t){var r=void 0===t;if(r&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+1) <= "+this.buffer.byteLength)}var i=t,n=this.readVarint32(t),o=this.readUTF8String(n.value,e.METRICS_BYTES,t+=n.length);return t+=o.length,r?(this.offset=t,o.string):{string:o.string,length:t-i}},r.append=function(t,r,i){"number"!=typeof r&&"string"==typeof r||(i=r,r=void 0);var n=void 0===i;if(n&&(i=this.offset),!this.noAssert){if("number"!=typeof i||i%1!=0)throw TypeError("Illegal offset: "+i+" (not an integer)");if((i>>>=0)<0||i+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+i+" (+0) <= "+this.buffer.byteLength)}t instanceof e||(t=e.wrap(t,r));var o=t.limit-t.offset;if(o<=0)return this;i+=o;var s=this.buffer.byteLength;return i>s&&this.resize((s*=2)>i?s:i),i-=o,this.view.set(t.view.subarray(t.offset,t.limit),i),t.offset+=o,n&&(this.offset+=o),this},r.appendTo=function(t,e){return t.append(this,e),this},r.assert=function(t){return this.noAssert=!t,this},r.capacity=function(){return this.buffer.byteLength},r.clear=function(){return this.offset=0,this.limit=this.buffer.byteLength,this.markedOffset=-1,this},r.clone=function(t){var r=new e(0,this.littleEndian,this.noAssert);return t?(r.buffer=new ArrayBuffer(this.buffer.byteLength),r.view=new Uint8Array(r.buffer)):(r.buffer=this.buffer,r.view=this.view),r.offset=this.offset,r.markedOffset=this.markedOffset,r.limit=this.limit,r},r.compact=function(t,e){if(void 0===t&&(t=this.offset),void 0===e&&(e=this.limit),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal begin: Not an integer");if(t>>>=0,"number"!=typeof e||e%1!=0)throw TypeError("Illegal end: Not an integer");if(e>>>=0,t<0||t>e||e>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+t+" <= "+e+" <= "+this.buffer.byteLength)}if(0===t&&e===this.buffer.byteLength)return this;var r=e-t;if(0===r)return this.buffer=i,this.view=null,this.markedOffset>=0&&(this.markedOffset-=t),this.offset=0,this.limit=0,this;var n=new ArrayBuffer(r),o=new Uint8Array(n);return o.set(this.view.subarray(t,e)),this.buffer=n,this.view=o,this.markedOffset>=0&&(this.markedOffset-=t),this.offset=0,this.limit=r,this},r.copy=function(t,r){if(void 0===t&&(t=this.offset),void 0===r&&(r=this.limit),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal begin: Not an integer");if(t>>>=0,"number"!=typeof r||r%1!=0)throw TypeError("Illegal end: Not an integer");if(r>>>=0,t<0||t>r||r>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+t+" <= "+r+" <= "+this.buffer.byteLength)}if(t===r)return new e(0,this.littleEndian,this.noAssert);var i=r-t,n=new e(i,this.littleEndian,this.noAssert);return n.offset=0,n.limit=i,n.markedOffset>=0&&(n.markedOffset-=t),this.copyTo(n,0,t,r),n},r.copyTo=function(t,r,i,n){var o,s;if(!this.noAssert&&!e.isByteBuffer(t))throw TypeError("Illegal target: Not a ByteBuffer");if(r=(s=void 0===r)?t.offset:0|r,i=(o=void 0===i)?this.offset:0|i,n=void 0===n?this.limit:0|n,r<0||r>t.buffer.byteLength)throw RangeError("Illegal target range: 0 <= "+r+" <= "+t.buffer.byteLength);if(i<0||n>this.buffer.byteLength)throw RangeError("Illegal source range: 0 <= "+i+" <= "+this.buffer.byteLength);var f=n-i;return 0===f?t:(t.ensureCapacity(r+f),t.view.set(this.view.subarray(i,n),r),o&&(this.offset+=f),s&&(t.offset+=f),this)},r.ensureCapacity=function(t){var e=this.buffer.byteLength;return e<t?this.resize((e*=2)>t?e:t):this},r.fill=function(t,e,r){var i=void 0===e;if(i&&(e=this.offset),"string"==typeof t&&t.length>0&&(t=t.charCodeAt(0)),void 0===e&&(e=this.offset),void 0===r&&(r=this.limit),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal value: "+t+" (not an integer)");if(t|=0,"number"!=typeof e||e%1!=0)throw TypeError("Illegal begin: Not an integer");if(e>>>=0,"number"!=typeof r||r%1!=0)throw TypeError("Illegal end: Not an integer");if(r>>>=0,e<0||e>r||r>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+e+" <= "+r+" <= "+this.buffer.byteLength)}if(e>=r)return this;for(;e<r;)this.view[e++]=t;return i&&(this.offset=e),this},r.flip=function(){return this.limit=this.offset,this.offset=0,this},r.mark=function(t){if(t=void 0===t?this.offset:t,!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}return this.markedOffset=t,this},r.order=function(t){if(!this.noAssert&&"boolean"!=typeof t)throw TypeError("Illegal littleEndian: Not a boolean");return this.littleEndian=!!t,this},r.LE=function(t){return this.littleEndian=void 0===t||!!t,this},r.BE=function(t){return this.littleEndian=void 0!==t&&!t,this},r.prepend=function(t,r,i){"number"!=typeof r&&"string"==typeof r||(i=r,r=void 0);var n=void 0===i;if(n&&(i=this.offset),!this.noAssert){if("number"!=typeof i||i%1!=0)throw TypeError("Illegal offset: "+i+" (not an integer)");if((i>>>=0)<0||i+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+i+" (+0) <= "+this.buffer.byteLength)}t instanceof e||(t=e.wrap(t,r));var o=t.limit-t.offset;if(o<=0)return this;var s=o-i;if(s>0){var f=new ArrayBuffer(this.buffer.byteLength+s),a=new Uint8Array(f);a.set(this.view.subarray(i,this.buffer.byteLength),o),this.buffer=f,this.view=a,this.offset+=s,this.markedOffset>=0&&(this.markedOffset+=s),this.limit+=s,i+=s}else new Uint8Array(this.buffer);return this.view.set(t.view.subarray(t.offset,t.limit),i-o),t.offset=t.limit,n&&(this.offset-=o),this},r.prependTo=function(t,e){return t.prepend(this,e),this},r.printDebug=function(t){"function"!=typeof t&&(t=function(){}.bind()),t(this.toString()+"\n-------------------------------------------------------------------\n"+this.toDebug(!0))},r.remaining=function(){return this.limit-this.offset},r.reset=function(){return this.markedOffset>=0?(this.offset=this.markedOffset,this.markedOffset=-1):this.offset=0,this},r.resize=function(t){if(!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal capacity: "+t+" (not an integer)");if((t|=0)<0)throw RangeError("Illegal capacity: 0 <= "+t)}if(this.buffer.byteLength<t){var e=new ArrayBuffer(t),r=new Uint8Array(e);r.set(this.view),this.buffer=e,this.view=r}return this},r.reverse=function(t,e){if(void 0===t&&(t=this.offset),void 0===e&&(e=this.limit),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal begin: Not an integer");if(t>>>=0,"number"!=typeof e||e%1!=0)throw TypeError("Illegal end: Not an integer");if(e>>>=0,t<0||t>e||e>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+t+" <= "+e+" <= "+this.buffer.byteLength)}return t===e||Array.prototype.reverse.call(this.view.subarray(t,e)),this},r.skip=function(t){if(!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal length: "+t+" (not an integer)");t|=0}var e=this.offset+t;if(!this.noAssert&&(e<0||e>this.buffer.byteLength))throw RangeError("Illegal length: 0 <= "+this.offset+" + "+t+" <= "+this.buffer.byteLength);return this.offset=e,this},r.slice=function(t,e){if(void 0===t&&(t=this.offset),void 0===e&&(e=this.limit),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal begin: Not an integer");if(t>>>=0,"number"!=typeof e||e%1!=0)throw TypeError("Illegal end: Not an integer");if(e>>>=0,t<0||t>e||e>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+t+" <= "+e+" <= "+this.buffer.byteLength)}var r=this.clone();return r.offset=t,r.limit=e,r},r.toBuffer=function(t){var e=this.offset,r=this.limit;if(!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: Not an integer");if(e>>>=0,"number"!=typeof r||r%1!=0)throw TypeError("Illegal limit: Not an integer");if(r>>>=0,e<0||e>r||r>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+e+" <= "+r+" <= "+this.buffer.byteLength)}if(!t&&0===e&&r===this.buffer.byteLength)return this.buffer;if(e===r)return i;var n=new ArrayBuffer(r-e);return new Uint8Array(n).set(new Uint8Array(this.buffer).subarray(e,r),0),n},r.toArrayBuffer=r.toBuffer,r.toString=function(t,e,r){if(void 0===t)return"ByteBufferAB(offset="+this.offset+",markedOffset="+this.markedOffset+",limit="+this.limit+",capacity="+this.capacity()+")";switch("number"==typeof t&&(r=e=t="utf8"),t){case"utf8":return this.toUTF8(e,r);case"base64":return this.toBase64(e,r);case"hex":return this.toHex(e,r);case"binary":return this.toBinary(e,r);case"debug":return this.toDebug();case"columns":return this.toColumns();default:throw Error("Unsupported encoding: "+t)}};var h=function(){for(var t={},e=[65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,48,49,50,51,52,53,54,55,56,57,43,47],r=[],i=0,n=e.length;i<n;++i)r[e[i]]=i;return t.encode=function(t,r){for(var i,n;null!==(i=t());)r(e[i>>2&63]),n=(3&i)<<4,null!==(i=t())?(r(e[63&((n|=i>>4&15)|i>>4&15)]),n=(15&i)<<2,null!==(i=t())?(r(e[63&(n|i>>6&3)]),r(e[63&i])):(r(e[63&n]),r(61))):(r(e[63&n]),r(61),r(61))},t.decode=function(t,e){var i,n,o;function s(t){throw Error("Illegal character code: "+t)}for(;null!==(i=t());)if(void 0===(n=r[i])&&s(i),null!==(i=t())&&(void 0===(o=r[i])&&s(i),e(n<<2>>>0|(48&o)>>4),null!==(i=t()))){if(void 0===(n=r[i])){if(61===i)break;s(i)}if(e((15&o)<<4>>>0|(60&n)>>2),null!==(i=t())){if(void 0===(o=r[i])){if(61===i)break;s(i)}e((3&n)<<6>>>0|o)}}},t.test=function(t){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t)},t}();r.toBase64=function(t,e){if(void 0===t&&(t=this.offset),void 0===e&&(e=this.limit),e|=0,(t|=0)<0||e>this.capacity||t>e)throw RangeError("begin, end");var r;return h.encode(function(){return t<e?this.view[t++]:null}.bind(this),r=s()),r()},e.fromBase64=function(t,r){if("string"!=typeof t)throw TypeError("str");var i=new e(t.length/4*3,r),n=0;return h.decode(o(t),function(t){i.view[n++]=t}),i.limit=n,i},e.btoa=function(t){return e.fromBinary(t).toBase64()},e.atob=function(t){return e.fromBase64(t).toBinary()},r.toBinary=function(t,e){if(void 0===t&&(t=this.offset),void 0===e&&(e=this.limit),e|=0,(t|=0)<0||e>this.capacity()||t>e)throw RangeError("begin, end");if(t===e)return"";for(var r=[],i=[];t<e;)r.push(this.view[t++]),r.length>=1024&&(i.push(String.fromCharCode.apply(String,r)),r=[]);return i.join("")+String.fromCharCode.apply(String,r)},e.fromBinary=function(t,r){if("string"!=typeof t)throw TypeError("str");for(var i,n=0,o=t.length,s=new e(o,r);n<o;){if((i=t.charCodeAt(n))>255)throw RangeError("illegal char code: "+i);s.view[n++]=i}return s.limit=o,s},r.toDebug=function(t){for(var e,r=-1,i=this.buffer.byteLength,n="",o="",s="";r<i;){if(-1!==r&&(n+=(e=this.view[r])<16?"0"+e.toString(16).toUpperCase():e.toString(16).toUpperCase(),t&&(o+=e>32&&e<127?String.fromCharCode(e):".")),++r,t&&r>0&&r%16==0&&r!==i){for(;n.length<51;)n+=" ";s+=n+o+"\n",n=o=""}r===this.offset&&r===this.limit?n+=r===this.markedOffset?"!":"|":r===this.offset?n+=r===this.markedOffset?"[":"<":r===this.limit?n+=r===this.markedOffset?"]":">":n+=r===this.markedOffset?"'":t||0!==r&&r!==i?" ":""}if(t&&" "!==n){for(;n.length<51;)n+=" ";s+=n+o+"\n"}return t?s:n},e.fromDebug=function(t,r,i){for(var n,o,s=t.length,f=new e((s+1)/3|0,r,i),a=0,h=0,l=!1,u=!1,g=!1,c=!1,d=!1;a<s;){switch(n=t.charAt(a++)){case"!":if(!i){if(u||g||c){d=!0;break}u=g=c=!0}f.offset=f.markedOffset=f.limit=h,l=!1;break;case"|":if(!i){if(u||c){d=!0;break}u=c=!0}f.offset=f.limit=h,l=!1;break;case"[":if(!i){if(u||g){d=!0;break}u=g=!0}f.offset=f.markedOffset=h,l=!1;break;case"<":if(!i){if(u){d=!0;break}u=!0}f.offset=h,l=!1;break;case"]":if(!i){if(c||g){d=!0;break}c=g=!0}f.limit=f.markedOffset=h,l=!1;break;case">":if(!i){if(c){d=!0;break}c=!0}f.limit=h,l=!1;break;case"'":if(!i){if(g){d=!0;break}g=!0}f.markedOffset=h,l=!1;break;case" ":l=!1;break;default:if(!i&&l){d=!0;break}if(o=parseInt(n+t.charAt(a++),16),!i&&(isNaN(o)||o<0||o>255))throw TypeError("Illegal str: Not a debug encoded string");f.view[h++]=o,l=!0}if(d)throw TypeError("Illegal str: Invalid symbol at "+a)}if(!i){if(!u||!c)throw TypeError("Illegal str: Missing offset or limit");if(h<f.buffer.byteLength)throw TypeError("Illegal str: Not a debug encoded string (is it hex?) "+h+" < "+s)}return f},r.toHex=function(t,e){if(t=void 0===t?this.offset:t,e=void 0===e?this.limit:e,!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal begin: Not an integer");if(t>>>=0,"number"!=typeof e||e%1!=0)throw TypeError("Illegal end: Not an integer");if(e>>>=0,t<0||t>e||e>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+t+" <= "+e+" <= "+this.buffer.byteLength)}for(var r,i=new Array(e-t);t<e;)(r=this.view[t++])<16?i.push("0",r.toString(16)):i.push(r.toString(16));return i.join("")},e.fromHex=function(t,r,i){if(!i){if("string"!=typeof t)throw TypeError("Illegal str: Not a string");if(t.length%2!=0)throw TypeError("Illegal str: Length not a multiple of 2")}for(var n,o=t.length,s=new e(o/2|0,r),f=0,a=0;f<o;f+=2){if(n=parseInt(t.substring(f,f+2),16),!i&&(!isFinite(n)||n<0||n>255))throw TypeError("Illegal str: Contains non-hex characters");s.view[a++]=n}return s.limit=a,s};var l,u=l={MAX_CODEPOINT:1114111,encodeUTF8:function(t,e){var r=null;for("number"==typeof t&&(r=t,t=function(){return null});null!==r||null!==(r=t());)r<128?e(127&r):r<2048?(e(r>>6&31|192),e(63&r|128)):r<65536?(e(r>>12&15|224),e(r>>6&63|128),e(63&r|128)):(e(r>>18&7|240),e(r>>12&63|128),e(r>>6&63|128),e(63&r|128)),r=null},decodeUTF8:function(t,e){for(var r,i,n,o,s=function(t){t=t.slice(0,t.indexOf(null));var e=Error(t.toString());throw e.name="TruncatedError",e.bytes=t,e};null!==(r=t());)if(128&r)if(192==(224&r))null===(i=t())&&s([r,i]),e((31&r)<<6|63&i);else if(224==(240&r))(null===(i=t())||null===(n=t()))&&s([r,i,n]),e((15&r)<<12|(63&i)<<6|63&n);else{if(240!=(248&r))throw RangeError("Illegal starting byte: "+r);(null===(i=t())||null===(n=t())||null===(o=t()))&&s([r,i,n,o]),e((7&r)<<18|(63&i)<<12|(63&n)<<6|63&o)}else e(r)},UTF16toUTF8:function(t,e){for(var r,i=null;null!==(r=null!==i?i:t());)r>=55296&&r<=57343&&null!==(i=t())&&i>=56320&&i<=57343?(e(1024*(r-55296)+i-56320+65536),i=null):e(r);null!==i&&e(i)},UTF8toUTF16:function(t,e){var r=null;for("number"==typeof t&&(r=t,t=function(){return null});null!==r||null!==(r=t());)r<=65535?e(r):(e(55296+((r-=65536)>>10)),e(r%1024+56320)),r=null},encodeUTF16toUTF8:function(t,e){l.UTF16toUTF8(t,function(t){l.encodeUTF8(t,e)})},decodeUTF8toUTF16:function(t,e){l.decodeUTF8(t,function(t){l.UTF8toUTF16(t,e)})},calculateCodePoint:function(t){return t<128?1:t<2048?2:t<65536?3:4},calculateUTF8:function(t){for(var e,r=0;null!==(e=t());)r+=e<128?1:e<2048?2:e<65536?3:4;return r},calculateUTF16asUTF8:function(t){var e=0,r=0;return l.UTF16toUTF8(t,function(t){++e,r+=t<128?1:t<2048?2:t<65536?3:4}),[e,r]}};return r.toUTF8=function(t,e){if(void 0===t&&(t=this.offset),void 0===e&&(e=this.limit),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal begin: Not an integer");if(t>>>=0,"number"!=typeof e||e%1!=0)throw TypeError("Illegal end: Not an integer");if(e>>>=0,t<0||t>e||e>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+t+" <= "+e+" <= "+this.buffer.byteLength)}var r;try{u.decodeUTF8toUTF16(function(){return t<e?this.view[t++]:null}.bind(this),r=s())}catch(i){if(t!==e)throw RangeError("Illegal range: Truncated data, "+t+" != "+e)}return r()},e.fromUTF8=function(t,r,i){if(!i&&"string"!=typeof t)throw TypeError("Illegal str: Not a string");var n=new e(u.calculateUTF16asUTF8(o(t),!0)[1],r,i),s=0;return u.encodeUTF16toUTF8(o(t),function(t){n.view[s++]=t}),n.limit=s,n},e},(m=T)&&m.exports?m.exports=function(){var t;try{t=function(){return y||(y=1,
9
+ /**
10
+ * @license long.js (c) 2013 Daniel Wirtz <dcode@dcode.io>
11
+ * Released under the Apache License, Version 2.0
12
+ * see: https://github.com/dcodeIO/long.js for details
13
+ */
14
+ e=U,r=function(){function t(t,e,r){this.low=0|t,this.high=0|e,this.unsigned=!!r}function e(t){return!0===(t&&t.__isLong__)}t.prototype.__isLong__,Object.defineProperty(t.prototype,"__isLong__",{value:!0,enumerable:!1,configurable:!1}),t.isLong=e;var r={},i={};function n(t,e){var n,o,f;return e?(f=0<=(t>>>=0)&&t<256)&&(o=i[t])?o:(n=s(t,(0|t)<0?-1:0,!0),f&&(i[t]=n),n):(f=-128<=(t|=0)&&t<128)&&(o=r[t])?o:(n=s(t,t<0?-1:0,!1),f&&(r[t]=n),n)}function o(t,e){if(isNaN(t)||!isFinite(t))return e?v:d;if(e){if(t<0)return v;if(t>=u)return m}else{if(t<=-g)return E;if(t+1>=g)return p}return t<0?o(-t,e).neg():s(t%l|0,t/l|0,e)}function s(e,r,i){return new t(e,r,i)}t.fromInt=n,t.fromNumber=o,t.fromBits=s;var f=Math.pow;function a(t,e,r){if(0===t.length)throw Error("empty string");if("NaN"===t||"Infinity"===t||"+Infinity"===t||"-Infinity"===t)return d;if("number"==typeof e?(r=e,e=!1):e=!!e,(r=r||10)<2||36<r)throw RangeError("radix");var i;if((i=t.indexOf("-"))>0)throw Error("interior hyphen");if(0===i)return a(t.substring(1),e,r).neg();for(var n=o(f(r,8)),s=d,h=0;h<t.length;h+=8){var l=Math.min(8,t.length-h),u=parseInt(t.substring(h,h+l),r);if(l<8){var g=o(f(r,l));s=s.mul(g).add(o(u))}else s=(s=s.mul(n)).add(o(u))}return s.unsigned=e,s}function h(e){return e instanceof t?e:"number"==typeof e?o(e):"string"==typeof e?a(e):s(e.low,e.high,e.unsigned)}t.fromString=a,t.fromValue=h;var l=4294967296,u=l*l,g=u/2,c=n(1<<24),d=n(0);t.ZERO=d;var v=n(0,!0);t.UZERO=v;var w=n(1);t.ONE=w;var b=n(1,!0);t.UONE=b;var y=n(-1);t.NEG_ONE=y;var p=s(-1,2147483647,!1);t.MAX_VALUE=p;var m=s(-1,-1,!0);t.MAX_UNSIGNED_VALUE=m;var E=s(0,-2147483648,!1);t.MIN_VALUE=E;var I=t.prototype;return I.toInt=function(){return this.unsigned?this.low>>>0:this.low},I.toNumber=function(){return this.unsigned?(this.high>>>0)*l+(this.low>>>0):this.high*l+(this.low>>>0)},I.toString=function(t){if((t=t||10)<2||36<t)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(E)){var e=o(t),r=this.div(e),i=r.mul(e).sub(this);return r.toString(t)+i.toInt().toString(t)}return"-"+this.neg().toString(t)}for(var n=o(f(t,6),this.unsigned),s=this,a="";;){var h=s.div(n),l=(s.sub(h.mul(n)).toInt()>>>0).toString(t);if((s=h).isZero())return l+a;for(;l.length<6;)l="0"+l;a=""+l+a}},I.getHighBits=function(){return this.high},I.getHighBitsUnsigned=function(){return this.high>>>0},I.getLowBits=function(){return this.low},I.getLowBitsUnsigned=function(){return this.low>>>0},I.getNumBitsAbs=function(){if(this.isNegative())return this.eq(E)?64:this.neg().getNumBitsAbs();for(var t=0!=this.high?this.high:this.low,e=31;e>0&&!(t&1<<e);e--);return 0!=this.high?e+33:e+1},I.isZero=function(){return 0===this.high&&0===this.low},I.isNegative=function(){return!this.unsigned&&this.high<0},I.isPositive=function(){return this.unsigned||this.high>=0},I.isOdd=function(){return!(1&~this.low)},I.isEven=function(){return!(1&this.low)},I.equals=function(t){return e(t)||(t=h(t)),(this.unsigned===t.unsigned||this.high>>>31!=1||t.high>>>31!=1)&&this.high===t.high&&this.low===t.low},I.eq=I.equals,I.notEquals=function(t){return!this.eq(t)},I.neq=I.notEquals,I.lessThan=function(t){return this.comp(t)<0},I.lt=I.lessThan,I.lessThanOrEqual=function(t){return this.comp(t)<=0},I.lte=I.lessThanOrEqual,I.greaterThan=function(t){return this.comp(t)>0},I.gt=I.greaterThan,I.greaterThanOrEqual=function(t){return this.comp(t)>=0},I.gte=I.greaterThanOrEqual,I.compare=function(t){if(e(t)||(t=h(t)),this.eq(t))return 0;var r=this.isNegative(),i=t.isNegative();return r&&!i?-1:!r&&i?1:this.unsigned?t.high>>>0>this.high>>>0||t.high===this.high&&t.low>>>0>this.low>>>0?-1:1:this.sub(t).isNegative()?-1:1},I.comp=I.compare,I.negate=function(){return!this.unsigned&&this.eq(E)?E:this.not().add(w)},I.neg=I.negate,I.add=function(t){e(t)||(t=h(t));var r=this.high>>>16,i=65535&this.high,n=this.low>>>16,o=65535&this.low,f=t.high>>>16,a=65535&t.high,l=t.low>>>16,u=0,g=0,c=0,d=0;return c+=(d+=o+(65535&t.low))>>>16,g+=(c+=n+l)>>>16,u+=(g+=i+a)>>>16,u+=r+f,s((c&=65535)<<16|(d&=65535),(u&=65535)<<16|(g&=65535),this.unsigned)},I.subtract=function(t){return e(t)||(t=h(t)),this.add(t.neg())},I.sub=I.subtract,I.multiply=function(t){if(this.isZero())return d;if(e(t)||(t=h(t)),t.isZero())return d;if(this.eq(E))return t.isOdd()?E:d;if(t.eq(E))return this.isOdd()?E:d;if(this.isNegative())return t.isNegative()?this.neg().mul(t.neg()):this.neg().mul(t).neg();if(t.isNegative())return this.mul(t.neg()).neg();if(this.lt(c)&&t.lt(c))return o(this.toNumber()*t.toNumber(),this.unsigned);var r=this.high>>>16,i=65535&this.high,n=this.low>>>16,f=65535&this.low,a=t.high>>>16,l=65535&t.high,u=t.low>>>16,g=65535&t.low,v=0,w=0,b=0,y=0;return b+=(y+=f*g)>>>16,w+=(b+=n*g)>>>16,b&=65535,w+=(b+=f*u)>>>16,v+=(w+=i*g)>>>16,w&=65535,v+=(w+=n*u)>>>16,w&=65535,v+=(w+=f*l)>>>16,v+=r*g+i*u+n*l+f*a,s((b&=65535)<<16|(y&=65535),(v&=65535)<<16|(w&=65535),this.unsigned)},I.mul=I.multiply,I.divide=function(t){if(e(t)||(t=h(t)),t.isZero())throw Error("division by zero");if(this.isZero())return this.unsigned?v:d;var r,i,n;if(this.unsigned){if(t.unsigned||(t=t.toUnsigned()),t.gt(this))return v;if(t.gt(this.shru(1)))return b;n=v}else{if(this.eq(E))return t.eq(w)||t.eq(y)?E:t.eq(E)?w:(r=this.shr(1).div(t).shl(1)).eq(d)?t.isNegative()?w:y:(i=this.sub(t.mul(r)),n=r.add(i.div(t)));if(t.eq(E))return this.unsigned?v:d;if(this.isNegative())return t.isNegative()?this.neg().div(t.neg()):this.neg().div(t).neg();if(t.isNegative())return this.div(t.neg()).neg();n=d}for(i=this;i.gte(t);){r=Math.max(1,Math.floor(i.toNumber()/t.toNumber()));for(var s=Math.ceil(Math.log(r)/Math.LN2),a=s<=48?1:f(2,s-48),l=o(r),u=l.mul(t);u.isNegative()||u.gt(i);)u=(l=o(r-=a,this.unsigned)).mul(t);l.isZero()&&(l=w),n=n.add(l),i=i.sub(u)}return n},I.div=I.divide,I.modulo=function(t){return e(t)||(t=h(t)),this.sub(this.div(t).mul(t))},I.mod=I.modulo,I.not=function(){return s(~this.low,~this.high,this.unsigned)},I.and=function(t){return e(t)||(t=h(t)),s(this.low&t.low,this.high&t.high,this.unsigned)},I.or=function(t){return e(t)||(t=h(t)),s(this.low|t.low,this.high|t.high,this.unsigned)},I.xor=function(t){return e(t)||(t=h(t)),s(this.low^t.low,this.high^t.high,this.unsigned)},I.shiftLeft=function(t){return e(t)&&(t=t.toInt()),0==(t&=63)?this:t<32?s(this.low<<t,this.high<<t|this.low>>>32-t,this.unsigned):s(0,this.low<<t-32,this.unsigned)},I.shl=I.shiftLeft,I.shiftRight=function(t){return e(t)&&(t=t.toInt()),0==(t&=63)?this:t<32?s(this.low>>>t|this.high<<32-t,this.high>>t,this.unsigned):s(this.high>>t-32,this.high>=0?0:-1,this.unsigned)},I.shr=I.shiftRight,I.shiftRightUnsigned=function(t){if(e(t)&&(t=t.toInt()),0==(t&=63))return this;var r=this.high;return t<32?s(this.low>>>t|r<<32-t,r>>>t,this.unsigned):s(32===t?r:r>>>t-32,0,this.unsigned)},I.shru=I.shiftRightUnsigned,I.toSigned=function(){return this.unsigned?s(this.low,this.high,!1):this},I.toUnsigned=function(){return this.unsigned?this:s(this.low,this.high,!0)},I.toBytes=function(t){return t?this.toBytesLE():this.toBytesBE()},I.toBytesLE=function(){var t=this.high,e=this.low;return[255&e,e>>>8&255,e>>>16&255,e>>>24&255,255&t,t>>>8&255,t>>>16&255,t>>>24&255]},I.toBytesBE=function(){var t=this.high,e=this.low;return[t>>>24&255,t>>>16&255,t>>>8&255,255&t,e>>>24&255,e>>>16&255,e>>>8&255,255&e]},t},(t=L)&&t.exports?t.exports=r():(e.dcodeIO=e.dcodeIO||{}).Long=r()),L.exports;var t,e,r}()}catch(e){}return I(t)}():(E.dcodeIO=E.dcodeIO||{}).ByteBuffer=I(E.dcodeIO.Long)),T.exports));async function S(t,e="get",r,i){try{const n="get"===e.toLowerCase()?"params":"data",s={"Content-Type":"application/json",...null==i?void 0:i.headers},f=await o({method:e,url:t,headers:s,[n]:r,...i});if(200!==f.status)throw f;return f}catch(n){return o.isCancel(n)||process.env.NODE_ENV,Promise.reject(n)}}const R={},x="mzc-toast-container";function N(t,e="info",r={}){const i=function(){let t=document.body.querySelector(`.${x}`);return t||(t=document.createElement("div"),t.className=x,t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),document.body.appendChild(t)),t}(),n=document.createElement("div");n.className=`mzc-toast mzc-toast--${e}`,n.textContent=t,i.appendChild(n);let o=!1;const s=()=>{o||(o=!0,n.remove(),i.childElementCount||i.remove())},f=window.setTimeout(s,r.duration??3e3);return n.addEventListener("click",()=>{window.clearTimeout(f),s()}),s}const F=(t,e,r={})=>{const i=String(t);var n,o,s;o=()=>{const t="boolean"==typeof e?e?"success":"error":e;N(i,t,r)},s=300,R[n=i]&&clearTimeout(R[n]),R[n]=window.setTimeout(()=>{o(),delete R[n]},s)},B=n.reactive(new Map),C=n.reactive(new Map),k=(t,e)=>{t&&e&&B.set(t,e)},O=t=>{t&&B.delete(t)},M=(t,e)=>{t&&e&&C.set(t,e)},_=t=>{t&&C.delete(t)},D=["_RID","createDatetime","createUser","updateDatetime","updateUser"],z=()=>({currentValue:n.ref(0),totalValue:n.ref(0),progressTime:n.ref(0),remainTime:n.ref(0)}),q=t=>{switch(t){case d.String:return"System.String";case d.Number:return"System.Decimal";case d.Boolean:return"System.Boolean";case d.Date:return"System.DateTime";default:return"System.String"}},V=t=>decodeURIComponent(t).replace(/\+/g," "),P=r.defineStore("excelPopup",()=>{const t=n.ref(!1),r=n.ref(!1),o=n.ref(void 0),s=n.ref("excel"),f=n.ref({keyColumns:[],columnLayout:"",columnMap:{},apiKey:"",apiParams:{},targetTable:"",refreshKey:"",useDataPreclear:!1,disableMasterProperty:!1,targetStorage:"postgresql"}),a=n.ref({onUpload:t=>{},onAdd:t=>{},onTruncate:()=>{},onValidation:(t,e,r)=>{},onRefresh:()=>{},onDownload:()=>{},onNotify:t=>{}}),h=n.ref(null),l=n.reactive(new Map),u=n.ref("init"),g=n.ref(null),b=async(t={})=>{if(h.value)return F(c().alreadyExcelProgress,!1);const e=w();h.value=new v("Download",e),g.value={current:0,total:100,remainTime:-1,sessionID:e,fileName:""},t.session_id=e;try{const e="/excel/download/"+(t.sample_data?"sample":"fetch");await async function(t,e,r={}){const i=new AbortController,{signal:n}=i,o=await fetch(t,{method:"post",signal:n,headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});if(!o.body)return;const s=o.body.getReader(),f=new A,a=decodeURI(o.headers.get("content-disposition").split("=")[1]).replaceAll("+"," "),h=new ReadableStream({start(t){!function r(){s.read().then(({done:i,value:n})=>{if(i){f.flip();const r=new Blob([f.toArrayBuffer()]);return t.close(),void e.completed(r?{fileName:a,blob:r}:void 0)}n&&(t.enqueue(n),f.append(n),e.offset+=n.byteLength,r())})}()},cancel(t){f.clear(),i.abort()}});e.isCancelable=!0,e.onCancelClick=async()=>{e.isCanceled=!0,h.cancel(""),e.completed()}}(e,h.value,t),h.value.onCompleted=y,h.value.onCancelClick=p}catch{return h.value=null,F(c().downloadFail,!1)}},y=t=>{t.blobInfo&&(i.saveAs(t.blobInfo.blob,t.blobInfo.fileName),h.value=null,g.value=null)},p=t=>{h.value=null,g.value=null},m=t=>{const e=null==t?void 0:t.columns;if(!e)return[];if("function"==typeof e.getAll){const t={number:d.Number,boolean:d.Boolean,date:d.Date,string:d.String};return e.getAll().map(e=>({binding:e.id,header:e.header??e.label??e.id,dataType:t[e.type]??d.String,visible:!1!==e.visible,format:void 0,isRequired:e.required??!1}))}return"function"==typeof e.filter?Array.from(e):[]},E=(t,e)=>{const r={};return t?(m(t).filter(t=>!D.includes(t.binding)).forEach(t=>{t.header&&t.binding&&(r[t.header]={column_name:t.binding,column_type:q(t.dataType||d.String),is_required:t.isRequired,is_key:!!t.binding&&(null==e?void 0:e.includes(t.binding))})}),r):r},I=(t,e)=>{const r={};if(!t)return r;const{visibleOnly:i=!1}=e??{};return m(t).filter(t=>!D.includes(t.binding)).filter(t=>!i||!1!==t.visible).forEach(t=>{t.binding&&(r[t.binding]={column_name:t.header,column_type:q(t.dataType||d.String),column_format:t.format})}),r};class T{constructor(t,r){e(this,"keyColumns"),e(this,"columnLayout"),e(this,"columnMap"),this.keyColumns=t,this.columnLayout=r.columnLayout,this.columnMap=E(r,t)}}return{showPopup:t,isOverwrite:r,exportFormat:s,excelInfo:f,excelAPI:a,file:h,excelFileMap:l,downloadInfo:g,initialize:(t={},e={})=>{f.value={...f.value,...t},a.value={...a.value,...e},u.value="init"},setInfo:t=>{f.value={...f.value,...t}},newExcelInfo:(t,e)=>new T(t,e),setAPI:t=>{a.value={...a.value,...t}},newExcelApi:(e,r,i,n,o,s,f)=>(M(e,o),{onUpload:t=>s(t),onAdd:async t=>{try{return u.value="success",await f({url:e,param:t,method:"POST"})}catch(r){u.value="error"}},onTruncate:async()=>{try{return u.value="success",await f({url:e,param:[],method:"DELETE"})}catch(t){u.value="error"}},onDownload:()=>b({sample_data:i,file_name:n,column_map:I(r)}),onRefresh:()=>{switch(M(e,o),u.value){case"init":break;case"success":F(c().toastSaveSuccess,!0);break;case"error":F(c().toastSaveError,!1)}u.value="init",o()},onNotify:e=>{t.value&&F(e.message,e.type)}}),setExportFormat:t=>{s.value=t},setUploadSuccess:t=>{u.value=t},show:(e=!0)=>{r.value=e,t.value=!0},hide:()=>{t.value=!1},download:b,createColumnMapForImport:E,createColumnMapForExport:I,createFieldMapForExport:t=>{const e={};return t?(t.engine.fields.filter(t=>!D.includes(t.binding)).forEach(t=>{t.binding&&(e[t.binding]={column_name:t.header,column_type:q(t.dataType||d.String)})}),e):e},updateDownloadStatus:t=>{var e;null!=g.value&&(null==(e=g.value)?void 0:e.sessionID)===t.sessionID&&(g.value.current=t.current,g.value.total=t.total,g.value.remainTime=t.remainTime,g.value.notiDatetime=t.notiDatetime,g.value.isDone=t.isDone)},downloadFromS3:t=>{if(t)try{const e=document.createElement("a");e.setAttribute("href",t),document.body.appendChild(e),e.click(),document.body.removeChild(e),g.value=null}catch(e){throw e}},requestGenerateExcel:async(t={},e={})=>{const r=`/api/module/data-transfer/${t.project_id??"none"}/excel/generate-download-url`,i=await S(r,"post",t,e),n=t.client_id,o=i.data.data.file_name,s=V(o);return l.set(n,s),i},targetTable:o,registerUploadOwner:k,clearUploadOwner:O,registerRefresh:M,unregisterRefresh:_,triggerRefreshBySession:t=>{var e,r;const i=(t=>{const e=B.get(t);return e?C.get(e):void 0})(t);return!!i&&(i(),null==(r=(e=a.value).onRefresh)||r.call(e),!0)}}}),Z=r.defineStore("excelDownload",z),H=r.defineStore("excelUpload",z);exports.DataType=d,exports.FileParameter=v,exports.dataTypeToString=q,exports.enUS=f,exports.generateGUID=w,exports.getGridVueLocale=c,exports.getGridVueLocaleCode=function(){return g},exports.jaJP=a,exports.koKR=s,exports.normalizeGridVueLocale=u,exports.openToast=N,exports.setGridVueLocale=function(t){return g=u(t),g},exports.showMessage=F,exports.useExcelDownloadStore=Z,exports.useExcelStore=P,exports.useExcelUploadStore=H,exports.zhCN=h;
@@ -1,6 +1,6 @@
1
1
  import { GridChrome, MozGridCoreProps, WrapperExtras } from '../../../moz-ui-grid-wrapper/src/index.ts';
2
2
  import { PureSheet } from '../../../moz-ui-grid-core/src/index.ts';
3
- import { MozGridVueProps } from '../legacy/types/props.js';
3
+ import { MozGridVueProps } from '../types/props.js';
4
4
  declare function __VLS_template(): {
5
5
  attrs: Partial<{}>;
6
6
  slots: {
@@ -25,6 +25,11 @@ declare function __VLS_template(): {
25
25
  readonly useMultipleChart?: boolean | undefined;
26
26
  readonly chartIncludeGrandTotal?: boolean | undefined;
27
27
  readonly chartMap?: Record<string, import('../../../moz-ui-grid-wrapper/src/chart/chartUtils').ChartSeriesConfig> | undefined;
28
+ readonly useRowGroupSettings?: boolean | undefined;
29
+ readonly useFieldSettings?: boolean | undefined;
30
+ readonly useFormatSettings?: boolean | undefined;
31
+ readonly useLayoutSettings?: boolean | undefined;
32
+ readonly useAggregateSettings?: boolean | undefined;
28
33
  readonly useToolBox?: boolean | undefined;
29
34
  readonly useToolBoxSetting?: boolean | undefined;
30
35
  readonly useExtendFooter?: boolean | undefined;
@@ -180,6 +185,11 @@ declare function __VLS_template(): {
180
185
  "update:coreConfig": (value: MozGridCoreProps) => any;
181
186
  }, string, {
182
187
  height: string | number;
188
+ useRowGroupSettings: boolean;
189
+ useFieldSettings: boolean;
190
+ useFormatSettings: boolean;
191
+ useLayoutSettings: boolean;
192
+ useAggregateSettings: boolean;
183
193
  useToolBox: boolean;
184
194
  useToolBoxSetting: boolean;
185
195
  useExtendFooter: boolean;
@@ -211,6 +221,11 @@ declare function __VLS_template(): {
211
221
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
212
222
  } & Readonly<{
213
223
  height: string | number;
224
+ useRowGroupSettings: boolean;
225
+ useFieldSettings: boolean;
226
+ useFormatSettings: boolean;
227
+ useLayoutSettings: boolean;
228
+ useAggregateSettings: boolean;
214
229
  useToolBox: boolean;
215
230
  useToolBoxSetting: boolean;
216
231
  useExtendFooter: boolean;
@@ -259,7 +274,7 @@ declare function __VLS_template(): {
259
274
  "onColumn:visibility"?: ((payload: unknown) => any) | undefined;
260
275
  onReady?: ((grid: PureSheet, chrome: GridChrome) => any) | undefined;
261
276
  "onUpdate:coreConfig"?: ((value: MozGridCoreProps) => any) | undefined;
262
- }>, "group" | "sort" | "filter" | "pivot" | "search" | "excel" | "ui" | "grid" | "slots" | "customCell" | "columnFormat" | "chrome" | ("height" | "useToolBox" | "useToolBoxSetting" | "useExtendFooter" | "useSummaryFooter" | "useSort" | "useCustomCell" | "useContextMenu" | "usePivotBar" | "useBuiltinTooltip") | "bulkEditor" | "columnSettings" | "contextMenu" | "chart"> & {
277
+ }>, "group" | "sort" | "filter" | "pivot" | "search" | "excel" | "ui" | "grid" | "slots" | "customCell" | "columnFormat" | "chrome" | ("height" | "useRowGroupSettings" | "useFieldSettings" | "useFormatSettings" | "useLayoutSettings" | "useAggregateSettings" | "useToolBox" | "useToolBoxSetting" | "useExtendFooter" | "useSummaryFooter" | "useSort" | "useCustomCell" | "useContextMenu" | "usePivotBar" | "useBuiltinTooltip") | "bulkEditor" | "columnSettings" | "contextMenu" | "chart"> & {
263
278
  grid: PureSheet;
264
279
  slots: import('../../../moz-ui-grid-wrapper/src/index.ts').SlotHost;
265
280
  ui: Required<import('../../../moz-ui-grid-wrapper/src/index.ts').WrapperUIOptions>;
@@ -379,6 +394,11 @@ declare const __VLS_component: import('vue').DefineComponent<MozGridVueProps, {
379
394
  readonly useMultipleChart?: boolean | undefined;
380
395
  readonly chartIncludeGrandTotal?: boolean | undefined;
381
396
  readonly chartMap?: Record<string, import('../../../moz-ui-grid-wrapper/src/chart/chartUtils').ChartSeriesConfig> | undefined;
397
+ readonly useRowGroupSettings?: boolean | undefined;
398
+ readonly useFieldSettings?: boolean | undefined;
399
+ readonly useFormatSettings?: boolean | undefined;
400
+ readonly useLayoutSettings?: boolean | undefined;
401
+ readonly useAggregateSettings?: boolean | undefined;
382
402
  readonly useToolBox?: boolean | undefined;
383
403
  readonly useToolBoxSetting?: boolean | undefined;
384
404
  readonly useExtendFooter?: boolean | undefined;
@@ -534,6 +554,11 @@ declare const __VLS_component: import('vue').DefineComponent<MozGridVueProps, {
534
554
  "update:coreConfig": (value: MozGridCoreProps) => any;
535
555
  }, string, {
536
556
  height: string | number;
557
+ useRowGroupSettings: boolean;
558
+ useFieldSettings: boolean;
559
+ useFormatSettings: boolean;
560
+ useLayoutSettings: boolean;
561
+ useAggregateSettings: boolean;
537
562
  useToolBox: boolean;
538
563
  useToolBoxSetting: boolean;
539
564
  useExtendFooter: boolean;
@@ -565,6 +590,11 @@ declare const __VLS_component: import('vue').DefineComponent<MozGridVueProps, {
565
590
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
566
591
  } & Readonly<{
567
592
  height: string | number;
593
+ useRowGroupSettings: boolean;
594
+ useFieldSettings: boolean;
595
+ useFormatSettings: boolean;
596
+ useLayoutSettings: boolean;
597
+ useAggregateSettings: boolean;
568
598
  useToolBox: boolean;
569
599
  useToolBoxSetting: boolean;
570
600
  useExtendFooter: boolean;
@@ -613,7 +643,7 @@ declare const __VLS_component: import('vue').DefineComponent<MozGridVueProps, {
613
643
  "onColumn:visibility"?: ((payload: unknown) => any) | undefined;
614
644
  onReady?: ((grid: PureSheet, chrome: GridChrome) => any) | undefined;
615
645
  "onUpdate:coreConfig"?: ((value: MozGridCoreProps) => any) | undefined;
616
- }>, "group" | "sort" | "filter" | "pivot" | "search" | "excel" | "ui" | "grid" | "slots" | "customCell" | "columnFormat" | "chrome" | ("height" | "useToolBox" | "useToolBoxSetting" | "useExtendFooter" | "useSummaryFooter" | "useSort" | "useCustomCell" | "useContextMenu" | "usePivotBar" | "useBuiltinTooltip") | "bulkEditor" | "columnSettings" | "contextMenu" | "chart"> & {
646
+ }>, "group" | "sort" | "filter" | "pivot" | "search" | "excel" | "ui" | "grid" | "slots" | "customCell" | "columnFormat" | "chrome" | ("height" | "useRowGroupSettings" | "useFieldSettings" | "useFormatSettings" | "useLayoutSettings" | "useAggregateSettings" | "useToolBox" | "useToolBoxSetting" | "useExtendFooter" | "useSummaryFooter" | "useSort" | "useCustomCell" | "useContextMenu" | "usePivotBar" | "useBuiltinTooltip") | "bulkEditor" | "columnSettings" | "contextMenu" | "chart"> & {
617
647
  grid: PureSheet;
618
648
  slots: import('../../../moz-ui-grid-wrapper/src/index.ts').SlotHost;
619
649
  ui: Required<import('../../../moz-ui-grid-wrapper/src/index.ts').WrapperUIOptions>;