@lovrabet/lovrabet-cli 2.3.8 → 2.3.9-beta.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 (185) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/app-config/get.js +1 -1
  10. package/lib/commands/app-config/index.js +1 -1
  11. package/lib/commands/approval/index.js +1 -1
  12. package/lib/commands/artifact/index.js +1 -1
  13. package/lib/commands/auth/device.js +1 -1
  14. package/lib/commands/auth/index.js +1 -1
  15. package/lib/commands/auth/prompt.js +1 -1
  16. package/lib/commands/bff/detail.js +1 -1
  17. package/lib/commands/bff/exec.js +1 -1
  18. package/lib/commands/bff/index.js +1 -1
  19. package/lib/commands/cli-skill/index.js +1 -1
  20. package/lib/commands/common/config-policy.js +1 -1
  21. package/lib/commands/common/constraints.js +1 -1
  22. package/lib/commands/common/flags.js +1 -1
  23. package/lib/commands/common/local-file.js +1 -1
  24. package/lib/commands/config/definitions.js +1 -1
  25. package/lib/commands/config/init.js +1 -1
  26. package/lib/commands/config/shared.js +1 -1
  27. package/lib/commands/data/import-excel.js +1 -1
  28. package/lib/commands/data/index.js +1 -1
  29. package/lib/commands/dataset/detail.js +1 -1
  30. package/lib/commands/dataset/index.js +1 -1
  31. package/lib/commands/dataset/list.js +1 -1
  32. package/lib/commands/dataset/sdk-doc.js +1 -1
  33. package/lib/commands/doctor.js +1 -1
  34. package/lib/commands/file/index.js +1 -1
  35. package/lib/commands/init.js +1 -1
  36. package/lib/commands/issue/context.js +1 -1
  37. package/lib/commands/issue/index.js +1 -1
  38. package/lib/commands/issue/report.js +1 -1
  39. package/lib/commands/kb/index.js +1 -1
  40. package/lib/commands/logs/index.js +1 -1
  41. package/lib/commands/notification/config-list.js +1 -1
  42. package/lib/commands/notification/index.js +1 -1
  43. package/lib/commands/notification/shared.js +1 -1
  44. package/lib/commands/ocr/index.js +1 -1
  45. package/lib/commands/permit/dataset-get.js +1 -1
  46. package/lib/commands/permit/dataset-set.js +1 -1
  47. package/lib/commands/permit/index.js +1 -1
  48. package/lib/commands/permit/page-get.js +1 -1
  49. package/lib/commands/permit/page-set.js +1 -1
  50. package/lib/commands/permit/role-menus-set.js +1 -1
  51. package/lib/commands/permit/role-menus.js +1 -1
  52. package/lib/commands/permit/shared.js +1 -1
  53. package/lib/commands/personal-bff/index.js +1 -1
  54. package/lib/commands/registry.js +1 -1
  55. package/lib/commands/role/create.js +1 -1
  56. package/lib/commands/role/delete.js +1 -1
  57. package/lib/commands/role/detail.js +1 -1
  58. package/lib/commands/role/index.js +1 -1
  59. package/lib/commands/role/list.js +1 -1
  60. package/lib/commands/role/shared.js +1 -1
  61. package/lib/commands/role/update.js +1 -1
  62. package/lib/commands/role/user-add.js +1 -1
  63. package/lib/commands/role/user-remove.js +1 -1
  64. package/lib/commands/schedule/index.js +1 -1
  65. package/lib/commands/schema.js +1 -1
  66. package/lib/commands/service/dynamic.js +1 -1
  67. package/lib/commands/service/function-name-adapter.js +1 -1
  68. package/lib/commands/service/index.js +1 -1
  69. package/lib/commands/service/registry.js +1 -1
  70. package/lib/commands/skill/commands/create.js +1 -1
  71. package/lib/commands/skill/commands/diagram.js +1 -1
  72. package/lib/commands/skill/commands/install.js +1 -1
  73. package/lib/commands/skill/commands/list.js +1 -1
  74. package/lib/commands/skill/commands/push.js +1 -1
  75. package/lib/commands/skill/commands/validate.js +1 -1
  76. package/lib/commands/skill/diagram.js +1 -1
  77. package/lib/commands/skill/flags.js +1 -1
  78. package/lib/commands/skill/index.js +1 -1
  79. package/lib/commands/skill/manifest-helpers.js +1 -1
  80. package/lib/commands/skill/push-execute.js +1 -1
  81. package/lib/commands/skill/push-flow-helpers.js +1 -1
  82. package/lib/commands/skill/push-retarget.js +1 -1
  83. package/lib/commands/skill/scopes.js +1 -1
  84. package/lib/commands/skill/summary.js +1 -1
  85. package/lib/commands/skill/templates.js +1 -1
  86. package/lib/commands/skill/validate.js +1 -1
  87. package/lib/commands/sql/detail.js +1 -1
  88. package/lib/commands/sql/exec.js +1 -1
  89. package/lib/commands/sql/index.js +1 -1
  90. package/lib/commands/update.js +1 -1
  91. package/lib/commands/user-account/bind.js +1 -1
  92. package/lib/commands/user-account/index.js +1 -1
  93. package/lib/commands/workspace/index.js +1 -1
  94. package/lib/config/domain-config.js +1 -1
  95. package/lib/config/schema.js +1 -1
  96. package/lib/constant/app.js +1 -1
  97. package/lib/constant/auth-mode.js +1 -1
  98. package/lib/constant/cli.js +1 -1
  99. package/lib/constant/defaults.js +1 -1
  100. package/lib/constant/distribution.js +1 -1
  101. package/lib/constant/domain.js +1 -1
  102. package/lib/constant/env.js +1 -1
  103. package/lib/constant/output.js +1 -1
  104. package/lib/constant/product.js +1 -1
  105. package/lib/constant/region.js +1 -1
  106. package/lib/constant/risk.js +1 -1
  107. package/lib/constant/url.js +1 -1
  108. package/lib/context.js +1 -1
  109. package/lib/core/api-client.js +1 -1
  110. package/lib/core/db-resolver.js +1 -1
  111. package/lib/core/kb-management-client.js +1 -1
  112. package/lib/core/kb-sdk-errors.js +1 -1
  113. package/lib/core/kb-search-client.js +1 -1
  114. package/lib/core/sdk-client.js +1 -1
  115. package/lib/errors.js +1 -1
  116. package/lib/framework/access-error.js +1 -1
  117. package/lib/framework/build-all-flags.js +1 -1
  118. package/lib/framework/dryrun.js +1 -1
  119. package/lib/framework/flags.js +1 -1
  120. package/lib/framework/help.js +1 -1
  121. package/lib/framework/index.js +1 -1
  122. package/lib/framework/output.js +1 -1
  123. package/lib/framework/preparse.js +1 -1
  124. package/lib/framework/rate-limit.js +1 -1
  125. package/lib/framework/raw-flags.js +1 -1
  126. package/lib/framework/response.js +1 -1
  127. package/lib/framework/runner-confirmation.js +1 -1
  128. package/lib/framework/runner-error.js +1 -1
  129. package/lib/framework/runner.js +1 -1
  130. package/lib/framework/schema-export.js +1 -1
  131. package/lib/framework/service-order.js +1 -1
  132. package/lib/framework/types.js +1 -1
  133. package/lib/generated/build-info.d.ts +4 -4
  134. package/lib/generated/build-info.js +1 -1
  135. package/lib/generated/official-routing.js +1 -1
  136. package/lib/generated/routing-contract.js +1 -1
  137. package/lib/help.js +1 -1
  138. package/lib/postinstall.js +1 -1
  139. package/lib/runtime/confirmation.js +1 -1
  140. package/lib/runtime/event.js +1 -1
  141. package/lib/runtime/index.js +1 -1
  142. package/lib/runtime/queue.js +1 -1
  143. package/lib/runtime/resolve.js +1 -1
  144. package/lib/services/dataset-import/auto-id-runner.js +1 -1
  145. package/lib/services/dataset-import/excel-reader.js +1 -1
  146. package/lib/services/dataset-import/image-bytes.js +1 -1
  147. package/lib/services/dataset-import/image-ooxml.js +1 -1
  148. package/lib/services/dataset-import/image-runner.js +1 -1
  149. package/lib/services/dataset-import/metadata.js +1 -1
  150. package/lib/services/dataset-import/preview.js +1 -1
  151. package/lib/services/dataset-import/runner.js +1 -1
  152. package/lib/skills/builtin-skill.js +1 -1
  153. package/lib/skills/npx-skills-add.js +1 -1
  154. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  155. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  156. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  157. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  158. package/lib/skills/runtime-skill-sync/links.js +1 -1
  159. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  160. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  161. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  162. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  163. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  164. package/lib/skills/runtime-skill-sync/push.js +1 -1
  165. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  166. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  167. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  168. package/lib/skills/runtime-skill-sync.js +1 -1
  169. package/lib/skills/skill-presence.js +1 -1
  170. package/lib/utils/access-key-redaction.js +1 -1
  171. package/lib/utils/apply-jq-filter.js +1 -1
  172. package/lib/utils/cli-version-check.js +1 -1
  173. package/lib/utils/cli-version-policy.js +1 -1
  174. package/lib/utils/logger.js +1 -1
  175. package/lib/utils/lossless-json.js +1 -1
  176. package/lib/utils/params.js +1 -1
  177. package/lib/utils/positive-safe-integer.js +1 -1
  178. package/lib/utils/redaction.js +1 -1
  179. package/lib/utils/runtime-user-id.js +1 -1
  180. package/lib/utils/update-notice.js +1 -1
  181. package/lib/utils/version.js +1 -1
  182. package/lib/utils/write-cli-side-channel.js +1 -1
  183. package/package.json +1 -1
  184. package/skills/lovrabet/SKILL.md +1 -1
  185. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
1
- const a144_0x2b6706=a144_0x5749;function a144_0x5749(_0x2b41e5,_0x4efedb){_0x2b41e5=_0x2b41e5-0x98;const _0x59715d=a144_0x5971();let _0x57496d=_0x59715d[_0x2b41e5];return _0x57496d;}(function(_0x5a53f5,_0x477811){const _0x7a2cfa=a144_0x5749,_0x3e09e0=_0x5a53f5();while(!![]){try{const _0xb2917e=-parseInt(_0x7a2cfa(0xf2))/0x1+-parseInt(_0x7a2cfa(0x12e))/0x2+-parseInt(_0x7a2cfa(0x178))/0x3+parseInt(_0x7a2cfa(0x119))/0x4*(-parseInt(_0x7a2cfa(0x135))/0x5)+parseInt(_0x7a2cfa(0x126))/0x6*(parseInt(_0x7a2cfa(0x141))/0x7)+parseInt(_0x7a2cfa(0xd6))/0x8*(-parseInt(_0x7a2cfa(0x170))/0x9)+parseInt(_0x7a2cfa(0x146))/0xa;if(_0xb2917e===_0x477811)break;else _0x3e09e0['push'](_0x3e09e0['shift']());}catch(_0x1c0190){_0x3e09e0['push'](_0x3e09e0['shift']());}}}(a144_0x5971,0xd7180));import{readFile,stat}from'node:fs/promises';import{createHash}from'node:crypto';import a144_0x1c79cd from'node:path';import{StringDecoder}from'node:string_decoder';import{createRequire}from'node:module';import{SaxesParser}from'saxes';import a144_0x40fd7d from'exceljs';import a144_0x422172 from'yauzl';import{resolveWorksheetImages}from'./image-ooxml.js';import{validateImageBytes}from'./image-bytes.js';const MAX_FILE=0x14*0x400*0x400,MAX_EXPANDED=0x64*0x400*0x400,MAX_ROWS=0x186a0,MAX_COLUMNS=0x100,MAX_XML_ROWS=0x100000,MAX_XML_COLUMNS=0x4000,MAX_CELL=0x40*0x400,RESERVED=new Set(['id',a144_0x2b6706(0xe0),a144_0x2b6706(0x16d),a144_0x2b6706(0x13d),a144_0x2b6706(0xb9),'creatorName','modifierId',a144_0x2b6706(0x173),a144_0x2b6706(0xa9),a144_0x2b6706(0x13c),a144_0x2b6706(0xc1)]),TYPES=new Set([a144_0x2b6706(0x10d),a144_0x2b6706(0x16e),a144_0x2b6706(0xeb),a144_0x2b6706(0x144),a144_0x2b6706(0xcc),a144_0x2b6706(0xe1),a144_0x2b6706(0x116),a144_0x2b6706(0xfd),a144_0x2b6706(0x122),'image',a144_0x2b6706(0x106)]),isImageContainer=_0x151b18=>[a144_0x2b6706(0xc0),a144_0x2b6706(0x106)][a144_0x2b6706(0x139)](_0x151b18[a144_0x2b6706(0x117)]()),hash=_0x142a66=>createHash('sha256')['update'](_0x142a66)[a144_0x2b6706(0xa7)](a144_0x2b6706(0x147)),require=createRequire(import.meta.url),DefinedNameXform=require(a144_0x2b6706(0xb1)),nameCoordinates=require('exceljs/lib/utils/col-cache.js'),ABSOLUTE_NAME_RANGE=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/,excelRequire=createRequire(require['resolve'](a144_0x2b6706(0x112))),zipRequire=createRequire(excelRequire['resolve']('jszip')),ZipEntry=zipRequire('./zipEntry'),zipReader=zipRequire(a144_0x2b6706(0xf7)),zipUtf8=zipRequire(a144_0x2b6706(0x11f)),zipPaths=zipRequire(a144_0x2b6706(0x12d));function centralDirectoryEnd(_0x4c1878,_0x31d0d7){const _0x4b04ea=a144_0x2b6706,_0x27e157=()=>new Error(_0x4b04ea(0xca)),_0x47bcb5=_0x4c1878['lastIndexOf'](Buffer[_0x4b04ea(0x16b)]([0x50,0x4b,0x5,0x6]));if(_0x47bcb5<0x0||_0x47bcb5+0x16>_0x4c1878[_0x4b04ea(0xd5)]||_0x47bcb5+0x16+_0x4c1878[_0x4b04ea(0x15a)](_0x47bcb5+0x14)!==_0x4c1878[_0x4b04ea(0xd5)])throw _0x27e157();let _0x1384dd=_0x4c1878['readUInt16LE'](_0x47bcb5+0xa),_0x40e32d=_0x4c1878[_0x4b04ea(0x138)](_0x47bcb5+0xc),_0x164c8c=_0x4c1878[_0x4b04ea(0x138)](_0x47bcb5+0x10),_0x5a9ef4=_0x47bcb5;const _0x3a084f=_0x47bcb5-0x14,_0x30072b=_0x3a084f>=0x0&&_0x4c1878[_0x4b04ea(0x138)](_0x3a084f)===0x7064b50,_0x5ad7a8=[0x4,0x6,0x8,0xa][_0x4b04ea(0xd4)](_0x3a9d2a=>_0x4c1878[_0x4b04ea(0x15a)](_0x47bcb5+_0x3a9d2a)===0xffff)||_0x40e32d===0xffffffff||_0x164c8c===0xffffffff;if(_0x30072b!==_0x5ad7a8)throw _0x27e157();if(_0x30072b){if(_0x4c1878['lastIndexOf'](Buffer[_0x4b04ea(0x16b)]([0x50,0x4b,0x6,0x7]))!==_0x3a084f)throw _0x27e157();const _0x41ef02=_0x1366c6=>{const _0x3f2235=_0x4b04ea,_0x517d3b=Number(_0x4c1878[_0x3f2235(0x14e)](_0x1366c6));if(!Number[_0x3f2235(0x183)](_0x517d3b))throw _0x27e157();return _0x517d3b;};_0x5a9ef4=_0x41ef02(_0x3a084f+0x8);if(_0x4c1878['readUInt32LE'](_0x3a084f+0x4)!==0x0||_0x4c1878[_0x4b04ea(0x138)](_0x3a084f+0x10)!==0x1||_0x5a9ef4>_0x3a084f-0x38||_0x4c1878[_0x4b04ea(0x138)](_0x5a9ef4)!==0x6064b50||_0x41ef02(_0x5a9ef4+0x4)!==0x2c||_0x5a9ef4+0x38!==_0x3a084f||_0x4c1878['readUInt32LE'](_0x5a9ef4+0x10)!==0x0||_0x4c1878['readUInt32LE'](_0x5a9ef4+0x14)!==0x0)throw _0x27e157();_0x1384dd=_0x41ef02(_0x5a9ef4+0x20),_0x40e32d=_0x41ef02(_0x5a9ef4+0x28),_0x164c8c=_0x41ef02(_0x5a9ef4+0x30);if(_0x41ef02(_0x5a9ef4+0x18)!==_0x1384dd)throw _0x27e157();}else{if(_0x4c1878[_0x4b04ea(0x15a)](_0x47bcb5+0x4)!==0x0||_0x4c1878[_0x4b04ea(0x15a)](_0x47bcb5+0x6)!==0x0||_0x4c1878['readUInt16LE'](_0x47bcb5+0x8)!==_0x1384dd)throw _0x27e157();}const _0x3d6e6b=_0x31d0d7[_0x4b04ea(0xbc)];if(_0x164c8c!==_0x3d6e6b||_0x1384dd!==_0x31d0d7[_0x4b04ea(0x133)]||_0x164c8c+_0x40e32d!==_0x5a9ef4)throw _0x27e157();return _0x5a9ef4;}function consumerEntryName(_0x45915a,_0x4cced4){const _0x48cd6d=a144_0x2b6706;if(_0x4cced4['extraFields']['filter'](_0x2b2238=>_0x2b2238['id']===0x1)[_0x48cd6d(0xd5)]>0x1)throw new Error(_0x48cd6d(0x108));const _0x57c3d2=_0x4cced4,_0xf89796=_0x4cced4[_0x48cd6d(0x17f)];if(!Buffer['isBuffer'](_0x57c3d2[_0x48cd6d(0x9e)])||!Buffer[_0x48cd6d(0x104)](_0x57c3d2[_0x48cd6d(0xad)])||!Buffer['isBuffer'](_0x57c3d2['fileCommentRaw'])||!Number['isSafeInteger'](_0xf89796)||_0xf89796<0x0||_0xf89796>_0x45915a['length']-0x1e||_0x45915a[_0x48cd6d(0x138)](_0xf89796)!==0x4034b50)throw new Error(_0x48cd6d(0x127));const _0xc87fcc=_0xf89796+0x1e+_0x45915a['readUInt16LE'](_0xf89796+0x1a),_0x13f657=_0xc87fcc+_0x45915a['readUInt16LE'](_0xf89796+0x1c)+_0x4cced4['compressedSize'];if(!Number[_0x48cd6d(0x183)](_0x13f657)||_0x13f657>_0x45915a[_0x48cd6d(0xd5)])throw new Error(_0x48cd6d(0x127));if(_0xc87fcc>_0x45915a[_0x48cd6d(0xd5)]||!_0x45915a[_0x48cd6d(0x10b)](_0xf89796+0x1e,_0xc87fcc)[_0x48cd6d(0x145)](_0x57c3d2[_0x48cd6d(0x9e)]))throw new Error(_0x48cd6d(0x121));const _0xd3fcb=new ZipEntry({},{'decodeFileName':zipUtf8['utf8decode']});_0xd3fcb[_0x48cd6d(0x142)]=_0x4cced4[_0x48cd6d(0x132)],_0xd3fcb[_0x48cd6d(0xb2)]=_0x57c3d2[_0x48cd6d(0x9e)],_0xd3fcb[_0x48cd6d(0x13f)]=_0x57c3d2[_0x48cd6d(0xaa)],_0xd3fcb[_0x48cd6d(0x163)]=_0x57c3d2[_0x48cd6d(0xad)]['length'],_0xd3fcb[_0x48cd6d(0x10c)](zipReader(_0x57c3d2['extraFieldRaw'])),_0xd3fcb[_0x48cd6d(0xbb)](),_0xd3fcb[_0x48cd6d(0x11c)]=_0x4cced4['versionMadeBy'],_0xd3fcb[_0x48cd6d(0xc7)]=_0x4cced4[_0x48cd6d(0xc7)],_0xd3fcb[_0x48cd6d(0x14d)]();const _0x56b876=_0xd3fcb[_0x48cd6d(0x162)]||Boolean((_0xd3fcb[_0x48cd6d(0x158)]??0x0)&0x4000),_0x5744ae=zipPaths[_0x48cd6d(0x168)](_0xd3fcb[_0x48cd6d(0xdc)]),_0x48d92a=_0x5744ae['startsWith']('/')?_0x5744ae[_0x48cd6d(0xe9)](0x1):_0x5744ae;return{'name':_0x48d92a,'original':_0xd3fcb['fileNameStr'],'directory':_0x56b876};}export function normalizeImportFields(_0x49b65c){const _0x54f3a1=a144_0x2b6706;if(!_0x49b65c||(_0x49b65c['source']??_0x49b65c[_0x54f3a1(0xb4)]?.[_0x54f3a1(0x125)])!=='METADATA')throw new Error(_0x54f3a1(0x182));const _0x4b3749=Array[_0x54f3a1(0x15e)](_0x49b65c[_0x54f3a1(0xa8)]),_0x52a99c=_0x4b3749?_0x49b65c['fields']:_0x49b65c[_0x54f3a1(0x11b)];if(!Array[_0x54f3a1(0x15e)](_0x52a99c)||_0x52a99c[_0x54f3a1(0xd5)]===0x0)throw new Error('Dataset\x20field\x20metadata\x20is\x20missing.');const _0x287d44=[],_0x300bee=new Set();for(const _0x5e190a of _0x52a99c){if(_0x5e190a[_0x54f3a1(0xc1)]===!![])continue;let _0x307b92=_0x5e190a[_0x54f3a1(0x13b)]??{};if(!_0x4b3749&&typeof _0x307b92===_0x54f3a1(0x10d)){try{_0x307b92=JSON[_0x54f3a1(0xff)](_0x307b92);}catch{throw new Error('Invalid\x20dataset\x20field\x20extension\x20metadata.');}if(!_0x307b92||typeof _0x307b92!==_0x54f3a1(0x100)||Array[_0x54f3a1(0x15e)](_0x307b92))throw new Error(_0x54f3a1(0x175));}const _0x353461=_0x4b3749?_0x5e190a[_0x54f3a1(0x11d)]:_0x5e190a['code'],_0x511746=_0x4b3749?_0x5e190a[_0x54f3a1(0x187)]:_0x5e190a[_0x54f3a1(0xac)]??_0x5e190a[_0x54f3a1(0xd8)];if(typeof _0x353461!==_0x54f3a1(0x10d)||!_0x353461||typeof _0x511746!==_0x54f3a1(0x10d)||_0x300bee[_0x54f3a1(0x12b)](_0x353461))throw new Error('Invalid\x20or\x20duplicate\x20dataset\x20field\x20metadata.');if(_0x511746['toLowerCase']()===_0x54f3a1(0x17a))throw new Error(_0x54f3a1(0x14f));_0x300bee[_0x54f3a1(0x118)](_0x353461);const _0x1b3100=_0x4b3749?_0x5e190a:_0x307b92,_0x5b39a8={'code':_0x353461,'type':_0x511746,'required':_0x1b3100[_0x54f3a1(0xc2)]===!![]};if(RESERVED[_0x54f3a1(0x12b)](_0x353461)||_0x1b3100[_0x54f3a1(0x174)]===!![]||_0x1b3100[_0x54f3a1(0xf5)]===!![])_0x5b39a8['generated']=!![];_0x287d44['push'](_0x5b39a8);}return _0x287d44;}async function checkArchive(_0x596c56,_0x26412c){await new Promise((_0x3f7414,_0x7804ef)=>{const _0x28c999=a144_0x5749;a144_0x422172[_0x28c999(0xda)](_0x596c56,{'lazyEntries':!![],'validateEntrySizes':!![]},(_0x382594,_0x296ae9)=>{const _0x15cb54=_0x28c999;if(_0x382594||!_0x296ae9){_0x7804ef(_0x382594??new Error(_0x15cb54(0xcb)));return;}let _0x24c652;try{_0x24c652=centralDirectoryEnd(_0x596c56,_0x296ae9);}catch(_0x5dae24){_0x296ae9[_0x15cb54(0xa2)](),_0x7804ef(_0x5dae24);return;}let _0x1b716a=0x0,_0x808029=0x0,_0x29dbc0=0x0,_0x4dbcb6=0x0,_0x1b074d=0x0,_0x3d23d7=0x0,_0x5b4e3d=0x0,_0x3f97be=0x0,_0x1afeb2=0x0,_0x116471=![],_0x2d8916;const _0x347256=new Set(),_0x116216=_0x152166=>{const _0x194967=_0x15cb54;if(_0x116471)return;_0x116471=!![],_0x2d8916?.[_0x194967(0xe3)](),_0x296ae9[_0x194967(0xa2)](),_0x7804ef(_0x152166);},_0x7af40c=(_0x438970,_0x1900c0)=>{const _0x2acfde=_0x15cb54;if(!_0x438970||!/^\d+$/[_0x2acfde(0x13a)](_0x438970))throw new Error(_0x2acfde(0x177));const _0xfc2b5c=Number(_0x438970);if(!Number['isSafeInteger'](_0xfc2b5c)||_0xfc2b5c<0x1||_0xfc2b5c>_0x1900c0)throw new Error(_0x2acfde(0x16a)+_0x1900c0+'.');return _0xfc2b5c;},_0x1c1b77=(_0x47e958,_0x33cefe=MAX_XML_COLUMNS)=>{const _0x1d95e3=_0x15cb54,_0x4c4616=/^\$?([A-Z]{1,3})\$?(\d+)$/[_0x1d95e3(0xbf)](_0x47e958);if(!_0x4c4616)throw new Error(_0x1d95e3(0x16f));let _0x40fb28=0x0;for(const _0x5bb300 of _0x4c4616[0x1])_0x40fb28=_0x40fb28*0x1a+_0x5bb300[_0x1d95e3(0x160)](0x0)-0x40;if(_0x40fb28>_0x33cefe)throw new Error(_0x1d95e3(0xf8)+_0x33cefe+'\x20columns.');return{'row':_0x7af40c(_0x4c4616[0x2],MAX_XML_ROWS),'col':_0x40fb28};},_0xcc8890=_0xd32a43=>{const _0x5b0605=_0x15cb54;if(_0xd32a43[_0x5b0605(0x11d)]==='_xlnm.Print_Area'||_0xd32a43[_0x5b0605(0x11d)]===_0x5b0605(0x10f))return;for(const _0x425d45 of _0xd32a43[_0x5b0605(0x161)]){if(!ABSOLUTE_NAME_RANGE[_0x5b0605(0x13a)](_0x425d45[_0x5b0605(0x114)]('!')['pop']()||''))continue;const _0x37636a=nameCoordinates['decodeEx'](_0x425d45),_0x132688=_0x5b0605(0x15d)in _0x37636a,_0x221e76=_0x132688?[_0x37636a[_0x5b0605(0x15d)],_0x37636a[_0x5b0605(0xf4)]]:[_0x37636a[_0x5b0605(0xcf)]],_0x12fa42=_0x132688?[_0x37636a[_0x5b0605(0xef)],_0x37636a[_0x5b0605(0x17c)]]:[_0x37636a[_0x5b0605(0x11e)]],_0x37b38a=(_0x44faac,_0x17a592)=>Number[_0x5b0605(0x183)](_0x44faac)&&_0x44faac>=0x1&&_0x44faac<=_0x17a592;if(!_0x221e76[_0x5b0605(0x10a)](_0x382bc7=>_0x37b38a(_0x382bc7,MAX_XML_ROWS))||!_0x12fa42[_0x5b0605(0x10a)](_0x289251=>_0x37b38a(_0x289251,MAX_XML_COLUMNS)))throw new Error('Invalid\x20defined\x20name\x20coordinate.');_0x5b4e3d+=_0x132688?(_0x37636a[_0x5b0605(0xf4)]-_0x37636a[_0x5b0605(0x15d)]+0x1)*(_0x37636a[_0x5b0605(0x17c)]-_0x37636a[_0x5b0605(0xef)]+0x1):0x1;if(_0x5b4e3d>MAX_ROWS)throw new Error(_0x5b0605(0x123));}};_0x296ae9['on'](_0x15cb54(0x101),_0x116216),_0x296ae9['on'](_0x15cb54(0xc5),_0x4b421e=>{const _0x13629e=_0x15cb54;if(_0x116471)return;if(++_0x29dbc0>0x2710||(_0x1b716a+=_0x4b421e['uncompressedSize'])>MAX_EXPANDED){_0x116216(new Error('XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.'));return;}let _0x23316f;try{_0x23316f=consumerEntryName(_0x596c56,_0x4b421e);}catch(_0x3a0077){_0x116216(_0x3a0077);return;}if(_0x23316f[_0x13629e(0x16c)]){_0x296ae9[_0x13629e(0x137)]();return;}const _0x23e76c=_0x23316f[_0x13629e(0x11d)];if(_0x26412c&&(_0x23e76c!==_0x23316f[_0x13629e(0x17e)]||_0x347256['has'](_0x23e76c)||_0x23e76c[_0x13629e(0xcd)]('/')||_0x23e76c[_0x13629e(0x139)]('\x5c'))){_0x116216(new Error('Non-canonical\x20or\x20duplicate\x20image\x20archive\x20entry.'));return;}if(_0x23e76c!==_0x23316f[_0x13629e(0x17e)]&&(_0x23e76c===_0x13629e(0xf3)||/xl\/worksheets\/sheet(\d+)[.]xml/[_0x13629e(0x13a)](_0x23e76c))){_0x116216(new Error(_0x13629e(0xdb)));return;}const _0x12e8eb=_0x23e76c===_0x13629e(0xf3);if(_0x12e8eb&&_0x347256[_0x13629e(0x12b)](_0x23e76c)){_0x116216(new Error(_0x13629e(0x14a)));return;}_0x347256['add'](_0x23e76c);const _0x46afc6=/xl\/worksheets\/sheet(\d+)[.]xml/[_0x13629e(0x13a)](_0x23e76c);if(_0x46afc6&&!/^xl\/worksheets\/sheet\d+[.]xml$/['test'](_0x23e76c)){_0x116216(new Error(_0x13629e(0x155)));return;}_0x296ae9['openReadStream'](_0x4b421e,(_0x53efe7,_0x590e48)=>{const _0x55f8a3=_0x13629e;if(_0x116471){_0x590e48?.[_0x55f8a3(0xe3)]();return;}if(_0x53efe7||!_0x590e48){_0x116216(_0x53efe7??new Error('Invalid\x20XLSX\x20entry.'));return;}_0x2d8916=_0x590e48;const _0x5d3505=_0x26412c?[]:undefined,_0x454e28=_0x26412c&&/[.](xml|rels)$/[_0x55f8a3(0x13a)](_0x23e76c)?new StringDecoder(_0x55f8a3(0xa1)):undefined,_0x1f1ede=_0x454e28?new SaxesParser({'xmlns':![]}):undefined,_0x169eb0=()=>{if(++_0x1afeb2>0x1e8480)throw Error('Image\x20XML\x20event\x20budget\x20exceeded.');};_0x1f1ede?.['on'](_0x55f8a3(0x17d),()=>{const _0x33594f=_0x55f8a3;throw Error(_0x33594f(0xab));}),_0x1f1ede?.['on'](_0x55f8a3(0x151),()=>{_0x169eb0();if(++_0x3f97be>0x7a120)throw Error('Image\x20XML\x20node\x20budget\x20exceeded.');}),_0x1f1ede?.['on'](_0x55f8a3(0x16e),_0x169eb0),_0x1f1ede?.['on'](_0x55f8a3(0xd1),_0x169eb0),_0x1f1ede?.['on'](_0x55f8a3(0x101),_0x31378b=>{throw _0x31378b;});const _0x9867be=_0x46afc6||_0x12e8eb?new StringDecoder('utf8'):undefined,_0x205c13=_0x46afc6||_0x12e8eb?new SaxesParser({'xmlns':![]}):undefined;let _0x26bf3d,_0x1f60ff=0x0,_0x4ec9ad=0x0,_0x2a382e,_0x1197c5,_0x1a83be=![],_0x42e433=![],_0x12e02b,_0x41f816,_0x31ad1c,_0x1f52dc=![];const _0x196e7c=[],_0x1b7d28=new Set();let _0xa84b01;const _0x3683ec=(_0x2377f7,_0x4889a5=0x0)=>{const _0x41e2ff=_0x55f8a3;_0x1b074d+=_0x4889a5+Math[_0x41e2ff(0x109)](0x0,_0x2377f7-_0x4ec9ad),_0x4ec9ad=Math['max'](_0x4ec9ad,_0x2377f7);if(_0x1b074d>MAX_ROWS)throw new Error('Worksheet\x20column\x20objects\x20exceed\x20100000.');};_0x205c13?.['on'](_0x55f8a3(0x151),_0x317430=>{const _0x56f457=_0x55f8a3;if(_0x12e8eb){if(!_0x26bf3d&&_0x317430['name']===_0x56f457(0xb5))_0x26bf3d=new DefinedNameXform();_0x26bf3d?.[_0x56f457(0x9d)](_0x317430);return;}if(_0x317430[_0x56f457(0x11d)]===_0x56f457(0xcf)){if(_0x42e433)throw new Error('Invalid\x20worksheet\x20nested\x20row.');_0x7af40c(_0x317430[_0x56f457(0x102)]['r'],MAX_XML_ROWS),_0x2a382e=undefined,_0x31ad1c=undefined,_0x1f52dc=![];}else{if(_0x317430['name']==='c'){if(_0x42e433)throw new Error(_0x56f457(0xed));_0x42e433=!![],_0x1a83be=Boolean(Number[_0x56f457(0xd9)](_0x317430['attributes']['s']??'',0xa)),_0xa84b01=undefined,_0x12e02b=_0x317430[_0x56f457(0x102)]['r']||undefined,_0x41f816=_0x12e02b?_0x1c1b77(_0x12e02b):undefined;if(_0x41f816)_0x1197c5=_0x41f816;else _0x1197c5=_0x2a382e?{'row':_0x2a382e[_0x56f457(0xcf)],'col':_0x2a382e[_0x56f457(0x11e)]+0x1}:undefined;}else{if(_0x42e433&&['f','v','t'][_0x56f457(0x139)](_0x317430['name'])){_0xa84b01=_0x317430['name'];if(_0x317430['name']==='f'&&_0x317430[_0x56f457(0x102)]['t'])_0x1a83be=!![];}else{if(_0x42e433&&_0x317430['name']==='r')_0x1a83be=!![];else{if(_0x317430[_0x56f457(0x11d)]===_0x56f457(0x107)){const _0x203b07=_0x317430['attributes']['ref'];if(!_0x203b07)throw new Error(_0x56f457(0x111));const _0x16d7f1=_0x203b07[_0x56f457(0x114)](':');if(_0x16d7f1[_0x56f457(0xd5)]>0x2)throw new Error('Invalid\x20worksheet\x20hyperlink\x20reference.');const _0x1abad3=_0x1c1b77(_0x16d7f1[0x0]),_0xbbf1b7=_0x1c1b77(_0x16d7f1[0x1]??_0x16d7f1[0x0]);_0x1b7d28[_0x56f457(0x118)](_0x203b07),_0x3683ec(Math[_0x56f457(0x109)](_0x1abad3[_0x56f457(0x11e)],_0xbbf1b7[_0x56f457(0x11e)]),0x1);}else{if(_0x317430[_0x56f457(0x11d)]===_0x56f457(0x11e)){const _0x33f9f3=_0x7af40c(_0x317430[_0x56f457(0x102)][_0x56f457(0xa0)],0x4000),_0x4926fc=_0x7af40c(_0x317430[_0x56f457(0x102)][_0x56f457(0x109)],0x4000);if(_0x33f9f3>_0x4926fc)throw new Error(_0x56f457(0x124));_0x3683ec(_0x4926fc,0x1);}else{if(_0x317430[_0x56f457(0x11d)]===_0x56f457(0x12a)){const _0x3fde41=_0x317430[_0x56f457(0x102)][_0x56f457(0x120)];if(!_0x3fde41)throw new Error(_0x56f457(0xde));const _0x109dc7=_0x3fde41[_0x56f457(0x114)](':');if(_0x109dc7['length']>0x2)throw new Error('Invalid\x20worksheet\x20merge\x20reference.');const _0x13ae3c=_0x1c1b77(_0x109dc7[0x0]),_0x1ab6b8=_0x1c1b77(_0x109dc7[0x1]??_0x109dc7[0x0]);_0x3683ec(Math[_0x56f457(0x109)](_0x13ae3c[_0x56f457(0x11e)],_0x1ab6b8[_0x56f457(0x11e)]));const _0x104f8a=(Math['abs'](_0x1ab6b8[_0x56f457(0xcf)]-_0x13ae3c[_0x56f457(0xcf)])+0x1)*(Math['abs'](_0x1ab6b8['col']-_0x13ae3c[_0x56f457(0x11e)])+0x1);_0x4dbcb6+=_0x104f8a+_0x1f60ff++;if(_0x4dbcb6>MAX_ROWS)throw new Error(_0x56f457(0xa5));}}}}}}}}),_0x205c13?.['on'](_0x55f8a3(0x16e),_0x34b6c7=>{if(_0x12e8eb){_0x26bf3d?.['parseText'](_0x34b6c7);return;}if(_0x42e433&&_0xa84b01&&_0x34b6c7)_0x1a83be=!![];}),_0x205c13?.['on']('closetag',_0x3302e9=>{const _0x5eb04b=_0x55f8a3;if(_0x12e8eb){_0x26bf3d&&!_0x26bf3d[_0x5eb04b(0x185)]()&&(_0xcc8890(_0x26bf3d[_0x5eb04b(0xf0)]),_0x26bf3d=undefined);return;}if(_0x3302e9[_0x5eb04b(0x11d)]==='c'){!_0x1a83be&&_0x12e02b&&!_0x31ad1c&&(_0x31ad1c={'before':_0x2a382e,'cells':[]});if(_0x31ad1c){if(++_0x3d23d7>0xf4240)throw new Error(_0x5eb04b(0x176));_0x31ad1c[_0x5eb04b(0x148)][_0x5eb04b(0xc9)]({'reference':_0x12e02b,'address':_0x41f816,'materialized':_0x1a83be});if(!_0x12e02b&&_0x1a83be)_0x1f52dc=!![];}if(_0x1a83be){if(!_0x31ad1c||_0x12e02b){if(!_0x1197c5)throw new Error(_0x5eb04b(0x136));if(_0x1197c5[_0x5eb04b(0x11e)]>MAX_XML_COLUMNS)throw new Error(_0x5eb04b(0xd7));_0x3683ec(_0x1197c5['col']);}_0x2a382e=_0x1197c5;}_0x42e433=![],_0x1197c5=undefined,_0x12e02b=undefined,_0x41f816=undefined,_0xa84b01=undefined;}else{if(_0x3302e9[_0x5eb04b(0x11d)]===_0x5eb04b(0xcf)){if(_0x31ad1c&&_0x1f52dc)_0x196e7c[_0x5eb04b(0xc9)](_0x31ad1c);_0x31ad1c=undefined,_0x1f52dc=![];}else{if(_0x3302e9[_0x5eb04b(0x11d)]===_0xa84b01)_0xa84b01=undefined;}}}),_0x205c13?.['on']('error',_0x1bed7b=>{const _0x11491b=_0x55f8a3;throw new Error(_0x11491b(0xbe)+_0x1bed7b[_0x11491b(0x103)]);}),_0x590e48['on'](_0x55f8a3(0x101),_0x116216),_0x590e48['on'](_0x55f8a3(0x159),_0x18dd6b=>{const _0x53c459=_0x55f8a3;if(_0x116471)return;_0x808029+=_0x18dd6b[_0x53c459(0xd5)],_0x5d3505?.[_0x53c459(0xc9)](_0x18dd6b);if(_0x808029>MAX_EXPANDED){_0x116216(new Error(_0x53c459(0xe8)));return;}try{if(_0x1f1ede&&_0x454e28)_0x1f1ede[_0x53c459(0xb6)](_0x454e28['write'](_0x18dd6b));if(_0x205c13&&_0x9867be)_0x205c13[_0x53c459(0xb6)](_0x9867be['write'](_0x18dd6b));}catch(_0xc2d887){_0x116216(_0xc2d887 instanceof Error?_0xc2d887:new Error(_0x53c459(0x10e)));}}),_0x590e48['on'](_0x55f8a3(0xb8),()=>{const _0x5c64c4=_0x55f8a3;if(_0x116471)return;try{if(_0x1f1ede&&_0x454e28)_0x1f1ede[_0x5c64c4(0xb6)](_0x454e28['end']())[_0x5c64c4(0xa2)]();if(_0x205c13&&_0x9867be)_0x205c13['write'](_0x9867be[_0x5c64c4(0xb8)]())[_0x5c64c4(0xa2)]();for(const _0x4d660c of _0x196e7c){let _0x31175d=_0x4d660c[_0x5c64c4(0x131)];for(const _0x492a0b of _0x4d660c[_0x5c64c4(0x148)]){if(!_0x492a0b[_0x5c64c4(0x130)]&&!(_0x492a0b[_0x5c64c4(0x105)]&&_0x1b7d28[_0x5c64c4(0x12b)](_0x492a0b[_0x5c64c4(0x105)])))continue;const _0x1ea43a=_0x492a0b[_0x5c64c4(0x9a)]??(_0x31175d?{'row':_0x31175d[_0x5c64c4(0xcf)],'col':_0x31175d['col']+0x1}:undefined);if(!_0x1ea43a)throw new Error(_0x5c64c4(0x136));if(_0x1ea43a['col']>MAX_XML_COLUMNS)throw new Error(_0x5c64c4(0xd7));_0x3683ec(_0x1ea43a['col']),_0x31175d=_0x1ea43a;}}_0x196e7c[_0x5c64c4(0xd5)]=0x0,_0x1b7d28[_0x5c64c4(0xf9)]();}catch(_0x25a86b){_0x116216(_0x25a86b instanceof Error?_0x25a86b:new Error(_0x5c64c4(0x10e)));return;}if(_0x5d3505)_0x26412c[_0x5c64c4(0xea)](_0x23e76c,Buffer[_0x5c64c4(0x15c)](_0x5d3505));_0x2d8916=undefined,_0x296ae9[_0x5c64c4(0x137)]();});});}),_0x296ae9['on'](_0x15cb54(0xb8),()=>{const _0x425355=_0x15cb54;if(_0x116471)return;if(_0x296ae9[_0x425355(0xbc)]!==_0x24c652){_0x7804ef(new Error('ZIP\x20central\x20directory\x20entry\x20count\x20does\x20not\x20match\x20its\x20contents.'));return;}if(!_0x347256[_0x425355(0x12b)]('[Content_Types].xml')||!_0x347256['has']('xl/workbook.xml'))_0x7804ef(new Error(_0x425355(0x186)));else _0x3f7414();}),_0x296ae9[_0x15cb54(0x137)]();});});}function valueOf(_0x13952a){const _0x20eec9=a144_0x2b6706,_0x473cd7=_0x13952a['value'];if(_0x473cd7&&typeof _0x473cd7===_0x20eec9(0x100)&&(_0x20eec9(0x13e)in _0x473cd7||'sharedFormula'in _0x473cd7)){if(!(_0x20eec9(0xf1)in _0x473cd7)||_0x473cd7[_0x20eec9(0xf1)]===undefined)throw new Error('Formula\x20has\x20no\x20cached\x20result.');return _0x473cd7['result'];}return _0x473cd7;}function convert(_0x3b3259,_0x45398a){const _0x41909a=a144_0x2b6706;if(_0x3b3259===null||_0x3b3259===undefined||_0x3b3259===''){if(_0x45398a['required']&&!_0x45398a[_0x41909a(0x174)])throw new Error(_0x41909a(0xfa));return null;}if(typeof _0x3b3259===_0x41909a(0x10d)&&Buffer[_0x41909a(0xb0)](_0x3b3259,_0x41909a(0xa1))>MAX_CELL)throw new Error(_0x41909a(0xd2));switch(_0x45398a[_0x41909a(0xac)]['toLowerCase']()){case _0x41909a(0x10d):case _0x41909a(0x16e):case'textarea':if(typeof _0x3b3259!==_0x41909a(0x10d))throw new Error('Expected\x20a\x20text\x20cell.');return _0x3b3259;case _0x41909a(0x144):case _0x41909a(0xcc):case'integer':if(typeof _0x3b3259!==_0x41909a(0x144)||!Number[_0x41909a(0xe7)](_0x3b3259)||Math[_0x41909a(0xfc)](_0x3b3259)>Number['MAX_SAFE_INTEGER']||_0x45398a['type']['toLowerCase']()===_0x41909a(0xe1)&&!Number[_0x41909a(0x140)](_0x3b3259))throw new Error(_0x41909a(0x11a));return _0x3b3259;case _0x41909a(0x116):if(typeof _0x3b3259!==_0x41909a(0x116))throw new Error(_0x41909a(0xf6));return _0x3b3259;case _0x41909a(0xfd):case _0x41909a(0x122):if(!(_0x3b3259 instanceof Date)||!Number['isFinite'](_0x3b3259[_0x41909a(0x157)]()))throw new Error(_0x41909a(0xa6));return _0x3b3259[_0x41909a(0x157)]();default:throw new Error(_0x41909a(0xdf)+_0x45398a[_0x41909a(0xac)]+'.');}}export async function buildExcelManifest(_0x40d3af){const _0x3fb5d6=a144_0x2b6706,_0x2c2031=_0x40d3af[_0x3fb5d6(0x180)]??0x1;if(!Number[_0x3fb5d6(0x140)](_0x2c2031)||_0x2c2031<0x1||_0x2c2031>MAX_ROWS)throw new Error(_0x3fb5d6(0x15f));if(_0x40d3af[_0x3fb5d6(0xb3)]!==undefined&&(!Number[_0x3fb5d6(0x140)](_0x40d3af['batchSize'])||_0x40d3af[_0x3fb5d6(0xb3)]<0x1||_0x40d3af[_0x3fb5d6(0xb3)]>0x3e8))throw new Error(_0x3fb5d6(0x15b));if(a144_0x1c79cd[_0x3fb5d6(0x14c)](_0x40d3af['file'])[_0x3fb5d6(0x117)]()!==_0x3fb5d6(0x181))throw new Error(_0x3fb5d6(0xe4));const _0x553ab8=await stat(_0x40d3af[_0x3fb5d6(0x149)]);if(!_0x553ab8[_0x3fb5d6(0x12c)]()||_0x553ab8[_0x3fb5d6(0x9f)]>MAX_FILE)throw new Error(_0x3fb5d6(0x167));const _0x579f6a=await readFile(_0x40d3af[_0x3fb5d6(0x149)]);if(_0x579f6a[_0x3fb5d6(0xd5)]>MAX_FILE)throw new Error('XLSX\x20file\x20exceeds\x2020\x20MB.');const _0x343fa2=_0x40d3af[_0x3fb5d6(0xa8)][_0x3fb5d6(0xd4)](_0x285295=>isImageContainer(_0x285295[_0x3fb5d6(0xac)])&&Object['values'](_0x40d3af[_0x3fb5d6(0x152)])[_0x3fb5d6(0x139)](_0x285295[_0x3fb5d6(0xa4)]))?new Map():undefined;await checkArchive(_0x579f6a,_0x343fa2);const _0x577de3=new a144_0x40fd7d[(_0x3fb5d6(0x98))]();await _0x577de3['xlsx']['load'](_0x579f6a,{'ignoreNodes':[_0x3fb5d6(0x165)]});const _0x31c211=_0x40d3af[_0x3fb5d6(0x179)];let _0xa4cd7f;if(_0x31c211===undefined)_0xa4cd7f=_0x577de3['worksheets'][0x0];else{if(typeof _0x31c211===_0x3fb5d6(0x10d)&&_0x577de3[_0x3fb5d6(0x166)]['some'](_0x50f441=>_0x50f441['name']===_0x31c211))_0xa4cd7f=_0x577de3[_0x3fb5d6(0x166)][_0x3fb5d6(0x129)](_0x22e3e5=>_0x22e3e5['name']===_0x31c211);else{if(typeof _0x31c211==='number'||/^\d+$/[_0x3fb5d6(0x13a)](_0x31c211)){const _0xf2b5f7=Number(_0x31c211);if(!Number[_0x3fb5d6(0x140)](_0xf2b5f7)||_0xf2b5f7<0x1)throw new Error(_0x3fb5d6(0xe5));_0xa4cd7f=_0x577de3[_0x3fb5d6(0x166)][_0xf2b5f7-0x1];}else _0xa4cd7f=_0x577de3[_0x3fb5d6(0x166)]['find'](_0x443117=>_0x443117[_0x3fb5d6(0x11d)]===_0x31c211);}}if(!_0xa4cd7f)throw new Error(_0x3fb5d6(0x150));if(_0xa4cd7f[_0x3fb5d6(0xfb)]>MAX_ROWS||_0xa4cd7f[_0x3fb5d6(0x156)]>MAX_COLUMNS)throw new Error('Worksheet\x20exceeds\x20100000\x20rows\x20or\x20256\x20columns.');if((_0xa4cd7f[_0x3fb5d6(0xf0)][_0x3fb5d6(0xaf)]??[])[_0x3fb5d6(0xd5)])throw new Error('Merged\x20cells\x20are\x20not\x20supported.');const _0x2c1e73=new Map();_0xa4cd7f[_0x3fb5d6(0x169)](_0x2c2031)[_0x3fb5d6(0xc6)]((_0x5bde54,_0x386ed3)=>{const _0x237752=_0x3fb5d6,_0x2ec129=valueOf(_0x5bde54);if(typeof _0x2ec129!==_0x237752(0x10d)||!_0x2ec129[_0x237752(0x14b)]()||Buffer[_0x237752(0xb0)](_0x2ec129)>MAX_CELL)throw new Error(_0x237752(0x134));if(_0x2c1e73[_0x237752(0x12b)](_0x2ec129))throw new Error(_0x237752(0x110)+_0x2ec129+'.');_0x2c1e73[_0x237752(0xea)](_0x2ec129,_0x386ed3);});const _0x3b3690=Object[_0x3fb5d6(0x172)](_0x40d3af[_0x3fb5d6(0x152)]);if(!_0x3b3690[_0x3fb5d6(0xd5)])throw new Error(_0x3fb5d6(0xae));const _0xded2b7=new Map(_0x40d3af[_0x3fb5d6(0xa8)][_0x3fb5d6(0xe2)](_0x53c95e=>[_0x53c95e['code'],_0x53c95e]));if(_0xded2b7[_0x3fb5d6(0x9f)]!==_0x40d3af['fields'][_0x3fb5d6(0xd5)])throw new Error(_0x3fb5d6(0xc4));if(_0x40d3af[_0x3fb5d6(0xa8)][_0x3fb5d6(0xd4)](_0x37d406=>_0x37d406[_0x3fb5d6(0xac)][_0x3fb5d6(0x117)]()===_0x3fb5d6(0x17a)))throw new Error(_0x3fb5d6(0x14f));const _0x537f0f=new Set();for(const [_0x18b8a8,_0x30a3d1]of _0x3b3690){const _0x34d750=_0xded2b7[_0x3fb5d6(0x9c)](_0x30a3d1);if(!_0x2c1e73[_0x3fb5d6(0x12b)](_0x18b8a8))throw new Error(_0x3fb5d6(0x9b)+_0x18b8a8+'.');if(!_0x34d750||RESERVED['has'](_0x30a3d1)||_0x34d750[_0x3fb5d6(0x174)])throw new Error(_0x3fb5d6(0x99)+_0x30a3d1+'.');if(_0x537f0f[_0x3fb5d6(0x12b)](_0x30a3d1))throw new Error(_0x3fb5d6(0xee)+_0x30a3d1+'.');if(!TYPES[_0x3fb5d6(0x12b)](_0x34d750['type'][_0x3fb5d6(0x117)]()))throw new Error('Unsupported\x20field\x20type:\x20'+_0x34d750[_0x3fb5d6(0xac)]+'.');_0x537f0f[_0x3fb5d6(0x118)](_0x30a3d1);}for(const _0x5bd920 of _0x40d3af[_0x3fb5d6(0xa8)]){if(_0x5bd920['required']&&!_0x5bd920[_0x3fb5d6(0x174)]&&!RESERVED['has'](_0x5bd920[_0x3fb5d6(0xa4)])&&!_0x537f0f['has'](_0x5bd920['code']))throw new Error(_0x3fb5d6(0xfe)+_0x5bd920[_0x3fb5d6(0xa4)]+'.');}const _0x566619={'fileHash':hash(_0x579f6a),'mappingHash':hash(JSON[_0x3fb5d6(0x154)]([..._0x3b3690][_0x3fb5d6(0x184)](([_0x3da41a],[_0x54f8c1])=>_0x3da41a[_0x3fb5d6(0xa3)](_0x54f8c1)))),'schemaHash':hash(JSON[_0x3fb5d6(0x154)]([..._0x40d3af['fields']][_0x3fb5d6(0x184)]((_0x2a8952,_0x2b1745)=>_0x2a8952['code'][_0x3fb5d6(0xa3)](_0x2b1745[_0x3fb5d6(0xa4)])))),'sheet':_0xa4cd7f[_0x3fb5d6(0x11d)],'rows':[],'emptyRows':[],'errors':[],'warnings':[]},_0x10aced=_0x3b3690[_0x3fb5d6(0xce)](([,_0x210832])=>isImageContainer(_0xded2b7[_0x3fb5d6(0x9c)](_0x210832)['type'])),_0xee7f53=_0x10aced[_0x3fb5d6(0xce)](([,_0x5361f6])=>_0xded2b7[_0x3fb5d6(0x9c)](_0x5361f6)[_0x3fb5d6(0xac)]['toLowerCase']()==='upload')[_0x3fb5d6(0xe2)](([,_0x2c5b42])=>_0x2c5b42);if(_0xee7f53[_0x3fb5d6(0xd5)])_0x566619['uploadFields']=_0xee7f53;const _0x4d4295=_0x343fa2?resolveWorksheetImages(_0x343fa2,_0xa4cd7f[_0x3fb5d6(0x11d)],new Set(_0x10aced['map'](([_0x69e00a])=>_0x2c1e73[_0x3fb5d6(0x9c)](_0x69e00a)))):[],_0x7e428c=new Map();for(const _0x51ab5a of _0x4d4295){const _0x2acbed=_0x51ab5a[_0x3fb5d6(0xcf)]+':'+_0x51ab5a[_0x3fb5d6(0x11e)],_0xeed2d5=_0x7e428c[_0x3fb5d6(0x9c)](_0x2acbed)??[];_0xeed2d5['push'](_0x51ab5a),_0x7e428c[_0x3fb5d6(0xea)](_0x2acbed,_0xeed2d5);}const _0x39edb9=new Map();let _0x4119f2=0x0;_0x10aced['length']&&(_0x566619[_0x3fb5d6(0x115)]=_0x10aced['map'](([,_0x467d87])=>_0x467d87),_0x566619[_0x3fb5d6(0xbd)]=[],_0x566619[_0x3fb5d6(0xc3)]=0x1,_0x566619['media']=[]);const _0x3bda3b=Math[_0x3fb5d6(0x109)](0x0,..._0x4d4295['map'](_0x3390cb=>_0x3390cb[_0x3fb5d6(0xcf)]));let _0x3422ff=0x0;const _0x44137f=new Set(_0x3b3690[_0x3fb5d6(0xe2)](([_0x37410a])=>_0x2c1e73[_0x3fb5d6(0x9c)](_0x37410a)));for(let _0x4b4139=_0x2c2031+0x1;_0x4b4139<=Math[_0x3fb5d6(0x109)](_0xa4cd7f[_0x3fb5d6(0xfb)],_0x3bda3b);_0x4b4139++){const _0x4a4c22=_0xa4cd7f['getRow'](_0x4b4139);if(_0x4a4c22[_0x3fb5d6(0xc8)]||_0x4d4295['some'](_0x157f85=>_0x157f85['row']===_0x4b4139&&_0x157f85[_0x3fb5d6(0xba)]))_0x3422ff++;let _0x4de5c5=_0x4d4295[_0x3fb5d6(0xd4)](_0x76160a=>_0x76160a[_0x3fb5d6(0xcf)]===_0x4b4139);_0x4a4c22[_0x3fb5d6(0xc6)](_0x1e6b6b=>{const _0x1af776=_0x3fb5d6;if(_0x1e6b6b[_0x1af776(0xd0)]!==null&&_0x1e6b6b[_0x1af776(0xd0)]!==undefined&&_0x1e6b6b['value']!=='')_0x4de5c5=!![];});if(!_0x4de5c5){_0x566619['emptyRows']['push'](_0x4b4139);continue;}const _0x489198=Object[_0x3fb5d6(0x153)](null);_0x4a4c22[_0x3fb5d6(0xc6)]((_0x206467,_0x17798b)=>{const _0x25b3c3=_0x3fb5d6;if(_0x44137f[_0x25b3c3(0x12b)](_0x17798b))return;try{const _0x482589=valueOf(_0x206467);if(typeof _0x482589==='string'&&Buffer[_0x25b3c3(0xb0)](_0x482589,_0x25b3c3(0xa1))>MAX_CELL)throw new Error('Cell\x20exceeds\x2064\x20KB.');}catch(_0x424c8a){_0x566619[_0x25b3c3(0xec)][_0x25b3c3(0xc9)]({'rowNumber':_0x4b4139,'field':_0x206467[_0x25b3c3(0x9a)],'message':_0x424c8a[_0x25b3c3(0x103)]});}});for(const [_0x2e6b0a,_0x56c9cd]of _0x3b3690){try{const _0x5e13dd=_0x4a4c22[_0x3fb5d6(0x164)](_0x2c1e73['get'](_0x2e6b0a)),_0x3e639f=_0xded2b7[_0x3fb5d6(0x9c)](_0x56c9cd);if(!isImageContainer(_0x3e639f[_0x3fb5d6(0xac)])){_0x489198[_0x56c9cd]=convert(valueOf(_0x5e13dd),_0x3e639f);continue;}const _0x407754=_0x7e428c[_0x3fb5d6(0x9c)](_0x4b4139+':'+_0x2c1e73[_0x3fb5d6(0x9c)](_0x2e6b0a))??[];if(_0x407754[_0x3fb5d6(0xd4)](_0x237055=>_0x237055[_0x3fb5d6(0x101)]))throw Error(_0x407754['find'](_0x4664ff=>_0x4664ff[_0x3fb5d6(0x101)])[_0x3fb5d6(0x101)]);if(_0x5e13dd[_0x3fb5d6(0xd0)]!=null&&_0x5e13dd['value']!==''&&!_0x407754[_0x3fb5d6(0xd4)](_0x53895e=>_0x53895e[_0x3fb5d6(0x143)]))throw Error('Image\x20cell\x20contains\x20scalar\x20or\x20mixed\x20content.');const _0x4a128d=[];for(const _0x220d43 of _0x407754)for(const _0x56e9f9 of _0x220d43[_0x3fb5d6(0xdd)]){const _0x1189ca=_0x343fa2['get'](_0x56e9f9);if(!_0x1189ca)throw Error(_0x3fb5d6(0x171)+_0x56e9f9+'.');const _0x4755e6=hash(_0x1189ca),_0x10e19e=_0x39edb9['get'](_0x4755e6)??validateImageBytes(_0x1189ca);if(!_0x39edb9['has'](_0x10e19e[_0x3fb5d6(0xe6)])){_0x4119f2+=_0x10e19e[_0x3fb5d6(0x9f)];if(_0x4119f2>0x32*0x400*0x400)throw Error('Unique\x20image\x20bytes\x20exceed\x2050\x20MB.');_0x39edb9[_0x3fb5d6(0xea)](_0x10e19e[_0x3fb5d6(0xe6)],_0x10e19e);}_0x4a128d['push'](_0x10e19e[_0x3fb5d6(0xe6)]);}if(!_0x4a128d[_0x3fb5d6(0xd5)]&&_0x3e639f['required'])throw Error('Required\x20image\x20value\x20is\x20missing.');if(_0x4a128d[_0x3fb5d6(0xd5)])_0x566619[_0x3fb5d6(0xbd)][_0x3fb5d6(0xc9)]({'rowNumber':_0x4b4139,'field':_0x56c9cd,'hashes':_0x4a128d});_0x489198[_0x56c9cd]=_0x4a128d[_0x3fb5d6(0xe2)](_0x14e05d=>{const _0x3ffb96=_0x3fb5d6,_0x1eafe1=_0x39edb9[_0x3ffb96(0x9c)](_0x14e05d),_0x69f43c=_0x1eafe1['type']===_0x3ffb96(0x128)?_0x3ffb96(0x113):_0x1eafe1[_0x3ffb96(0xac)]['slice'](0x6),_0x5a8752=_0x14e05d+'.'+_0x69f43c,_0x7ff514='dataset-import/'+'0'[_0x3ffb96(0xd3)](0x40)+'/'+_0x5a8752;return _0x3e639f[_0x3ffb96(0xac)][_0x3ffb96(0x117)]()===_0x3ffb96(0x106)?{'fileName':_0x5a8752,'filePath':_0x7ff514}:{'key':_0x7ff514,'name':_0x5a8752,'type':_0x1eafe1[_0x3ffb96(0xac)],'size':_0x1eafe1[_0x3ffb96(0x9f)]};});}catch(_0x1bac1d){_0x566619[_0x3fb5d6(0xec)][_0x3fb5d6(0xc9)]({'rowNumber':_0x4b4139,'field':_0x56c9cd,'message':_0x1bac1d[_0x3fb5d6(0x103)]});}}_0x566619[_0x3fb5d6(0x17b)]['push']({'rowNumber':_0x4b4139,'values':_0x489198});}if(_0x566619[_0x3fb5d6(0xdd)])_0x566619['media']=[..._0x39edb9[_0x3fb5d6(0x12f)]()];if(_0x3422ff)_0x566619[_0x3fb5d6(0xb7)]['push'](_0x3422ff+'\x20hidden\x20row(s)\x20are\x20included\x20in\x20the\x20import.');return _0x566619;}function a144_0x5971(){const _0x54a4f3=['1965418nSGaLw','values','materialized','before','generalPurposeBitFlag','entryCount','Headers\x20must\x20be\x20non-empty\x20text\x20cells\x20no\x20larger\x20than\x2064\x20KB.','10OvtnIj','Invalid\x20worksheet\x20cell\x20without\x20an\x20initial\x20reference.','readEntry','readUInt32LE','includes','test','extend','updateTime','datasetId','formula','fileComment','isInteger','224wKwRqo','bitFlag','nativeCell','number','equals','43932580HGyPYB','hex','cells','file','Duplicate\x20workbook\x20ZIP\x20entry.','trim','extname','processAttributes','readBigUInt64LE','Unsupported\x20dataset\x20field\x20type:\x20serial_number.','Requested\x20worksheet\x20does\x20not\x20exist.','opentag','mapping','create','stringify','Non-canonical\x20worksheet\x20ZIP\x20entry.','columnCount','getTime','unixPermissions','data','readUInt16LE','batchSize\x20must\x20be\x20between\x201\x20and\x201000.','concat','top','isArray','headerRow\x20must\x20be\x20between\x201\x20and\x20100000.','charCodeAt','ranges','dir','extraFieldsLength','getCell','dataValidations','worksheets','XLSX\x20file\x20must\x20be\x20a\x20regular\x20file\x20no\x20larger\x20than\x2020\x20MB.','resolve','getRow','Worksheet\x20coordinate\x20exceeds\x20','from','directory','appCode','text','Invalid\x20worksheet\x20cell\x20or\x20merge\x20reference.','9IyDEoE','Missing\x20image\x20media:\x20','entries','modifierName','generated','Invalid\x20dataset\x20field\x20extension\x20metadata.','Worksheet\x20deferred\x20cell\x20events\x20exceed\x201000000.','Invalid\x20worksheet\x20coordinate.','4307037lYNIoJ','sheet','serial_number','rows','right','doctype','original','relativeOffsetOfLocalHeader','headerRow','.xlsx','Excel\x20import\x20only\x20supports\x20METADATA\x20datasets.','isSafeInteger','sort','parseClose','File\x20is\x20not\x20an\x20XLSX\x20workbook.','doType','Workbook','Unknown\x20or\x20generated\x20mapping\x20field:\x20','address','Unknown\x20Excel\x20header:\x20','get','parseOpen','fileNameRaw','size','min','utf8','close','localeCompare','code','Worksheet\x20merge\x20work\x20exceeds\x20100000.','Expected\x20an\x20Excel\x20date\x20cell.','digest','fields','createTime','fileCommentRaw','XML\x20DTD/entities\x20are\x20not\x20supported.','type','extraFieldRaw','Mapping\x20must\x20contain\x20at\x20least\x20one\x20field.','merges','byteLength','exceljs/lib/xlsx/xform/book/defined-name-xform.js','fileName','batchSize','dataset','definedName','write','warnings','end','creatorId','hiddenRow','handleUTF8','readEntryCursor','imageCells','Invalid\x20worksheet\x20XML:\x20','exec','image','deleted','required','parserVersion','Duplicate\x20dataset\x20field\x20codes.','entry','eachCell','externalFileAttributes','hidden','push','Invalid\x20ZIP\x20central\x20directory\x20layout.','Invalid\x20XLSX\x20archive.','decimal','startsWith','filter','row','value','closetag','Cell\x20exceeds\x2064\x20KB.','repeat','some','length','3695968nkcjzo','Worksheet\x20exceeds\x2016384\x20columns.','dataType','parseInt','fromBuffer','Non-canonical\x20workbook\x20or\x20worksheet\x20ZIP\x20entry.','fileNameStr','media','Invalid\x20worksheet\x20merge\x20reference.','Unsupported\x20field\x20type:\x20','tenantCode','integer','map','destroy','Only\x20.xlsx\x20files\x20are\x20supported.','Sheet\x20index\x20must\x20be\x20a\x20positive\x20one-based\x20integer.','contentHash','isFinite','XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.','slice','set','textarea','errors','Invalid\x20worksheet\x20nested\x20cell.','Duplicate\x20mapping\x20target:\x20','left','model','result','1071656gpNiZX','xl/workbook.xml','bottom','autoIncrement','Expected\x20a\x20boolean\x20cell.','./reader/readerFor','Worksheet\x20exceeds\x20','clear','Required\x20value\x20is\x20missing.','rowCount','abs','date','Required\x20field\x20is\x20not\x20mapped:\x20','parse','object','error','attributes','message','isBuffer','reference','upload','hyperlink','Duplicate\x20ZIP64\x20extended\x20information\x20fields\x20are\x20not\x20supported.','max','every','subarray','readExtraFields','string','Invalid\x20worksheet\x20XML.','_xlnm.Print_Titles','Duplicate\x20header:\x20','Invalid\x20worksheet\x20hyperlink\x20reference.','exceljs','jpg','split','imageFields','boolean','toLowerCase','add','936004LnwgeM','Expected\x20a\x20finite\x20safe\x20numeric\x20cell.','properties','versionMadeBy','name','col','./utf8','ref','ZIP\x20local\x20and\x20central\x20entry\x20names\x20must\x20match.','datetime','Workbook\x20defined\x20name\x20work\x20exceeds\x20100000.','Invalid\x20worksheet\x20column\x20range.','sourceType','170214cBaeFG','Invalid\x20ZIP\x20local\x20file\x20header.','image/jpeg','find','mergeCell','has','isFile','./utils'];a144_0x5971=function(){return _0x54a4f3;};return a144_0x5971();}
1
+ const a144_0x4d4b9d=a144_0xdfc0;function a144_0xdfc0(_0x4367f7,_0x3495d8){_0x4367f7=_0x4367f7-0x121;const _0x338380=a144_0x3383();let _0xdfc021=_0x338380[_0x4367f7];return _0xdfc021;}(function(_0x499563,_0x5bd5db){const _0x400522=a144_0xdfc0,_0x279a95=_0x499563();while(!![]){try{const _0x433827=-parseInt(_0x400522(0x19e))/0x1*(parseInt(_0x400522(0x19f))/0x2)+parseInt(_0x400522(0x19c))/0x3+parseInt(_0x400522(0x175))/0x4*(parseInt(_0x400522(0x171))/0x5)+parseInt(_0x400522(0x187))/0x6*(parseInt(_0x400522(0x12e))/0x7)+-parseInt(_0x400522(0x1c3))/0x8+parseInt(_0x400522(0x205))/0x9+-parseInt(_0x400522(0x1d5))/0xa*(-parseInt(_0x400522(0x191))/0xb);if(_0x433827===_0x5bd5db)break;else _0x279a95['push'](_0x279a95['shift']());}catch(_0x3677d8){_0x279a95['push'](_0x279a95['shift']());}}}(a144_0x3383,0x95ffb));import{readFile,stat}from'node:fs/promises';import{createHash}from'node:crypto';import a144_0x45e51a from'node:path';import{StringDecoder}from'node:string_decoder';import{createRequire}from'node:module';import{SaxesParser}from'saxes';import a144_0x13936f from'exceljs';import a144_0x3de66d from'yauzl';import{resolveWorksheetImages}from'./image-ooxml.js';import{validateImageBytes}from'./image-bytes.js';const MAX_FILE=0x14*0x400*0x400,MAX_EXPANDED=0x64*0x400*0x400,MAX_ROWS=0x186a0,MAX_COLUMNS=0x100,MAX_XML_ROWS=0x100000,MAX_XML_COLUMNS=0x4000,MAX_CELL=0x40*0x400,RESERVED=new Set(['id',a144_0x4d4b9d(0x1cb),a144_0x4d4b9d(0x1fe),a144_0x4d4b9d(0x16e),a144_0x4d4b9d(0x1de),a144_0x4d4b9d(0x1a5),a144_0x4d4b9d(0x180),a144_0x4d4b9d(0x14e),a144_0x4d4b9d(0x173),a144_0x4d4b9d(0x12f),a144_0x4d4b9d(0x1b1)]),TYPES=new Set([a144_0x4d4b9d(0x12a),a144_0x4d4b9d(0x1a3),'textarea',a144_0x4d4b9d(0x174),a144_0x4d4b9d(0x1f4),'integer',a144_0x4d4b9d(0x139),a144_0x4d4b9d(0x20c),'datetime',a144_0x4d4b9d(0x1cf),a144_0x4d4b9d(0x163)]),isImageContainer=_0x50f9f7=>[a144_0x4d4b9d(0x1cf),'upload'][a144_0x4d4b9d(0x15c)](_0x50f9f7[a144_0x4d4b9d(0x1d3)]()),hash=_0x22f1e8=>createHash(a144_0x4d4b9d(0x135))[a144_0x4d4b9d(0x13b)](_0x22f1e8)[a144_0x4d4b9d(0x13c)](a144_0x4d4b9d(0x1f1)),require=createRequire(import.meta.url),DefinedNameXform=require(a144_0x4d4b9d(0x151)),nameCoordinates=require(a144_0x4d4b9d(0x1dd)),ABSOLUTE_NAME_RANGE=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/,excelRequire=createRequire(require[a144_0x4d4b9d(0x17e)]('exceljs')),zipRequire=createRequire(excelRequire[a144_0x4d4b9d(0x17e)](a144_0x4d4b9d(0x1df))),ZipEntry=zipRequire(a144_0x4d4b9d(0x1b5)),zipReader=zipRequire(a144_0x4d4b9d(0x15f)),zipUtf8=zipRequire(a144_0x4d4b9d(0x169)),zipPaths=zipRequire(a144_0x4d4b9d(0x136));function a144_0x3383(){const _0x230a1c=['relativeOffsetOfLocalHeader','date','mergeCell','image/jpeg','has','abs','get','type','exec','Only\x20.xlsx\x20files\x20are\x20supported.','openReadStream','Invalid\x20worksheet\x20nested\x20row.','Worksheet\x20column\x20objects\x20exceed\x20100000.','XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.','rowCount','value','XLSX\x20file\x20must\x20be\x20a\x20regular\x20file\x20no\x20larger\x20than\x2020\x20MB.','string','isInteger','clear','right','1777643ZmObfw','updateTime','decodeEx','file','set','_xlnm.Print_Titles','readEntry','sha256','./utils','Image\x20cell\x20contains\x20scalar\x20or\x20mixed\x20content.','Invalid\x20dataset\x20field\x20extension\x20metadata.','boolean','every','update','digest','push','length','worksheets','unixPermissions','attributes','Invalid\x20worksheet\x20merge\x20reference.','.xlsx','materialized','contentHash','hyperlink','File\x20is\x20not\x20an\x20XLSX\x20workbook.','Invalid\x20worksheet\x20column\x20range.','source','sort','Invalid\x20worksheet\x20cell\x20without\x20an\x20initial\x20reference.','errors','Worksheet\x20exceeds\x20100000\x20rows\x20or\x20256\x20columns.','modifierName','map','dataset','exceljs/lib/xlsx/xform/book/defined-name-xform.js','warnings','Worksheet\x20deferred\x20cell\x20events\x20exceed\x201000000.','datetime','Worksheet\x20coordinate\x20exceeds\x20','doctype','bitFlag','Worksheet\x20exceeds\x2016384\x20columns.','media','doType','Headers\x20must\x20be\x20non-empty\x20text\x20cells\x20no\x20larger\x20than\x2064\x20KB.','includes','Invalid\x20worksheet\x20hyperlink\x20reference.','Unknown\x20Excel\x20header:\x20','./reader/readerFor','filter','[Content_Types].xml','split','upload','generalPurposeBitFlag','parseText','uploadFields','Invalid\x20worksheet\x20coordinate.','headerRow\x20must\x20be\x20between\x201\x20and\x20100000.','./utf8','before','Invalid\x20worksheet\x20XML.','Invalid\x20defined\x20name\x20coordinate.','Duplicate\x20workbook\x20ZIP\x20entry.','datasetId','Invalid\x20worksheet\x20XML:\x20','fromBuffer','61850SUWprb','readUInt32LE','createTime','number','152mYlFVL','close','XLSX\x20file\x20exceeds\x2020\x20MB.','opentag','extraFieldsLength','slice','jpg','isSafeInteger','readEntryCursor','resolve','ZIP\x20local\x20and\x20central\x20entry\x20names\x20must\x20match.','modifierId','left','isArray','METADATA','Workbook\x20defined\x20name\x20work\x20exceeds\x20100000.','properties','generated','6jsgLfC','subarray','destroy','entry','size','getTime','model','result','Invalid\x20XLSX\x20archive.','Unique\x20image\x20bytes\x20exceed\x2050\x20MB.','2085303IpeHZA','fileNameStr','reference','Expected\x20an\x20Excel\x20date\x20cell.','bottom','utf8','Expected\x20a\x20text\x20cell.','min','batchSize','serial_number','find','1603389azGxgG','mapping','13348WhCBxU','44xEQrDI','fileCommentRaw','Invalid\x20or\x20duplicate\x20dataset\x20field\x20metadata.','row','text','uncompressedSize','creatorName','compressedSize','Invalid\x20ZIP\x20local\x20file\x20header.','Sheet\x20index\x20must\x20be\x20a\x20positive\x20one-based\x20integer.','Required\x20field\x20is\x20not\x20mapped:\x20','Image\x20XML\x20event\x20budget\x20exceeded.','values','dataset-import/','cells','dataValidations','autoIncrement','processAttributes','deleted','\x20columns.','dir','closetag','./zipEntry','externalFileAttributes','dataType','message','from','entryCount','nativeCell','batchSize\x20must\x20be\x20between\x201\x20and\x201000.','Excel\x20import\x20only\x20supports\x20METADATA\x20datasets.','end','integer','readUInt16LE','eachCell','xl/workbook.xml','9394200SwFvKg','Mapping\x20must\x20contain\x20at\x20least\x20one\x20field.','top','versionMadeBy','formula','col','Worksheet\x20merge\x20work\x20exceeds\x20100000.','MAX_SAFE_INTEGER','tenantCode','XML\x20DTD/entities\x20are\x20not\x20supported.','Formula\x20has\x20no\x20cached\x20result.','Workbook','image','Image\x20XML\x20node\x20budget\x20exceeded.','some','name','toLowerCase','getRow','30yjzpCT','Duplicate\x20header:\x20','Merged\x20cells\x20are\x20not\x20supported.','isFinite','charCodeAt','byteLength','Non-canonical\x20worksheet\x20ZIP\x20entry.','fields','exceljs/lib/utils/col-cache.js','creatorId','jszip','sourceType','sharedFormula','Requested\x20worksheet\x20does\x20not\x20exist.','Duplicate\x20dataset\x20field\x20codes.','Missing\x20image\x20media:\x20','textarea','trim','Unknown\x20or\x20generated\x20mapping\x20field:\x20','handleUTF8','extraFieldRaw','add','test','address','error','Dataset\x20field\x20metadata\x20is\x20missing.','entries','required','hex','Expected\x20a\x20finite\x20safe\x20numeric\x20cell.','imageCells','decimal','extname','original','pop','code','definedName','isBuffer','object','getCell','data','appCode','startsWith','ZIP\x20central\x20directory\x20entry\x20count\x20does\x20not\x20match\x20its\x20contents.','ref','hiddenRow','Unsupported\x20field\x20type:\x20','write','2296215mQdSBX','parserVersion','extraFields','imageFields','stringify','max'];a144_0x3383=function(){return _0x230a1c;};return a144_0x3383();}function centralDirectoryEnd(_0x1e44ac,_0x4fbcdf){const _0x5ccb47=a144_0x4d4b9d,_0x3d1166=()=>new Error('Invalid\x20ZIP\x20central\x20directory\x20layout.'),_0x52ede6=_0x1e44ac['lastIndexOf'](Buffer['from']([0x50,0x4b,0x5,0x6]));if(_0x52ede6<0x0||_0x52ede6+0x16>_0x1e44ac[_0x5ccb47(0x13e)]||_0x52ede6+0x16+_0x1e44ac[_0x5ccb47(0x1c0)](_0x52ede6+0x14)!==_0x1e44ac['length'])throw _0x3d1166();let _0x195b9c=_0x1e44ac['readUInt16LE'](_0x52ede6+0xa),_0x345a41=_0x1e44ac[_0x5ccb47(0x172)](_0x52ede6+0xc),_0x2a911f=_0x1e44ac[_0x5ccb47(0x172)](_0x52ede6+0x10),_0x1cb504=_0x52ede6;const _0x507b07=_0x52ede6-0x14,_0x1cf825=_0x507b07>=0x0&&_0x1e44ac[_0x5ccb47(0x172)](_0x507b07)===0x7064b50,_0x325675=[0x4,0x6,0x8,0xa][_0x5ccb47(0x1d1)](_0x4974ce=>_0x1e44ac[_0x5ccb47(0x1c0)](_0x52ede6+_0x4974ce)===0xffff)||_0x345a41===0xffffffff||_0x2a911f===0xffffffff;if(_0x1cf825!==_0x325675)throw _0x3d1166();if(_0x1cf825){if(_0x1e44ac['lastIndexOf'](Buffer[_0x5ccb47(0x1b9)]([0x50,0x4b,0x6,0x7]))!==_0x507b07)throw _0x3d1166();const _0x4eae6b=_0x52d93d=>{const _0x321031=Number(_0x1e44ac['readBigUInt64LE'](_0x52d93d));if(!Number['isSafeInteger'](_0x321031))throw _0x3d1166();return _0x321031;};_0x1cb504=_0x4eae6b(_0x507b07+0x8);if(_0x1e44ac['readUInt32LE'](_0x507b07+0x4)!==0x0||_0x1e44ac[_0x5ccb47(0x172)](_0x507b07+0x10)!==0x1||_0x1cb504>_0x507b07-0x38||_0x1e44ac[_0x5ccb47(0x172)](_0x1cb504)!==0x6064b50||_0x4eae6b(_0x1cb504+0x4)!==0x2c||_0x1cb504+0x38!==_0x507b07||_0x1e44ac[_0x5ccb47(0x172)](_0x1cb504+0x10)!==0x0||_0x1e44ac[_0x5ccb47(0x172)](_0x1cb504+0x14)!==0x0)throw _0x3d1166();_0x195b9c=_0x4eae6b(_0x1cb504+0x20),_0x345a41=_0x4eae6b(_0x1cb504+0x28),_0x2a911f=_0x4eae6b(_0x1cb504+0x30);if(_0x4eae6b(_0x1cb504+0x18)!==_0x195b9c)throw _0x3d1166();}else{if(_0x1e44ac['readUInt16LE'](_0x52ede6+0x4)!==0x0||_0x1e44ac[_0x5ccb47(0x1c0)](_0x52ede6+0x6)!==0x0||_0x1e44ac[_0x5ccb47(0x1c0)](_0x52ede6+0x8)!==_0x195b9c)throw _0x3d1166();}const _0x47c119=_0x4fbcdf['readEntryCursor'];if(_0x2a911f!==_0x47c119||_0x195b9c!==_0x4fbcdf[_0x5ccb47(0x1ba)]||_0x2a911f+_0x345a41!==_0x1cb504)throw _0x3d1166();return _0x1cb504;}function consumerEntryName(_0x7282ce,_0x515171){const _0x47de46=a144_0x4d4b9d;if(_0x515171[_0x47de46(0x207)][_0x47de46(0x160)](_0x1d2a06=>_0x1d2a06['id']===0x1)[_0x47de46(0x13e)]>0x1)throw new Error('Duplicate\x20ZIP64\x20extended\x20information\x20fields\x20are\x20not\x20supported.');const _0x468f97=_0x515171,_0x982878=_0x515171[_0x47de46(0x20b)];if(!Buffer[_0x47de46(0x1fa)](_0x468f97['fileNameRaw'])||!Buffer[_0x47de46(0x1fa)](_0x468f97[_0x47de46(0x1e9)])||!Buffer[_0x47de46(0x1fa)](_0x468f97['fileCommentRaw'])||!Number[_0x47de46(0x17c)](_0x982878)||_0x982878<0x0||_0x982878>_0x7282ce[_0x47de46(0x13e)]-0x1e||_0x7282ce['readUInt32LE'](_0x982878)!==0x4034b50)throw new Error(_0x47de46(0x1a7));const _0x54017b=_0x982878+0x1e+_0x7282ce[_0x47de46(0x1c0)](_0x982878+0x1a),_0x47925b=_0x54017b+_0x7282ce[_0x47de46(0x1c0)](_0x982878+0x1c)+_0x515171[_0x47de46(0x1a6)];if(!Number[_0x47de46(0x17c)](_0x47925b)||_0x47925b>_0x7282ce[_0x47de46(0x13e)])throw new Error(_0x47de46(0x1a7));if(_0x54017b>_0x7282ce[_0x47de46(0x13e)]||!_0x7282ce[_0x47de46(0x188)](_0x982878+0x1e,_0x54017b)['equals'](_0x468f97['fileNameRaw']))throw new Error(_0x47de46(0x17f));const _0x5c2150=new ZipEntry({},{'decodeFileName':zipUtf8['utf8decode']});_0x5c2150[_0x47de46(0x157)]=_0x515171[_0x47de46(0x164)],_0x5c2150['fileName']=_0x468f97['fileNameRaw'],_0x5c2150['fileComment']=_0x468f97[_0x47de46(0x1a0)],_0x5c2150[_0x47de46(0x179)]=_0x468f97['extraFieldRaw'][_0x47de46(0x13e)],_0x5c2150['readExtraFields'](zipReader(_0x468f97['extraFieldRaw'])),_0x5c2150[_0x47de46(0x1e8)](),_0x5c2150[_0x47de46(0x1c6)]=_0x515171['versionMadeBy'],_0x5c2150['externalFileAttributes']=_0x515171[_0x47de46(0x1b6)],_0x5c2150[_0x47de46(0x1b0)]();const _0x44919f=_0x5c2150[_0x47de46(0x1b3)]||Boolean((_0x5c2150[_0x47de46(0x140)]??0x0)&0x4000),_0x5a1787=zipPaths[_0x47de46(0x17e)](_0x5c2150[_0x47de46(0x192)]),_0x1387ed=_0x5a1787[_0x47de46(0x1ff)]('/')?_0x5a1787['slice'](0x1):_0x5a1787;return{'name':_0x1387ed,'original':_0x5c2150[_0x47de46(0x192)],'directory':_0x44919f};}export function normalizeImportFields(_0x2deb79){const _0x21d6f3=a144_0x4d4b9d;if(!_0x2deb79||(_0x2deb79[_0x21d6f3(0x149)]??_0x2deb79[_0x21d6f3(0x150)]?.[_0x21d6f3(0x1e0)])!==_0x21d6f3(0x183))throw new Error(_0x21d6f3(0x1bd));const _0x2f16ce=Array['isArray'](_0x2deb79[_0x21d6f3(0x1dc)]),_0x1d5014=_0x2f16ce?_0x2deb79[_0x21d6f3(0x1dc)]:_0x2deb79[_0x21d6f3(0x185)];if(!Array['isArray'](_0x1d5014)||_0x1d5014[_0x21d6f3(0x13e)]===0x0)throw new Error(_0x21d6f3(0x1ee));const _0x2037b6=[],_0x4522af=new Set();for(const _0x2f318b of _0x1d5014){if(_0x2f318b[_0x21d6f3(0x1b1)]===!![])continue;let _0x3ad290=_0x2f318b['extend']??{};if(!_0x2f16ce&&typeof _0x3ad290===_0x21d6f3(0x12a)){try{_0x3ad290=JSON['parse'](_0x3ad290);}catch{throw new Error('Invalid\x20dataset\x20field\x20extension\x20metadata.');}if(!_0x3ad290||typeof _0x3ad290!==_0x21d6f3(0x1fb)||Array[_0x21d6f3(0x182)](_0x3ad290))throw new Error(_0x21d6f3(0x138));}const _0x262fb0=_0x2f16ce?_0x2f318b[_0x21d6f3(0x1d2)]:_0x2f318b[_0x21d6f3(0x1f8)],_0x2602e5=_0x2f16ce?_0x2f318b[_0x21d6f3(0x15a)]:_0x2f318b['type']??_0x2f318b[_0x21d6f3(0x1b7)];if(typeof _0x262fb0!==_0x21d6f3(0x12a)||!_0x262fb0||typeof _0x2602e5!==_0x21d6f3(0x12a)||_0x4522af[_0x21d6f3(0x20f)](_0x262fb0))throw new Error(_0x21d6f3(0x1a1));if(_0x2602e5[_0x21d6f3(0x1d3)]()===_0x21d6f3(0x19a))throw new Error('Unsupported\x20dataset\x20field\x20type:\x20serial_number.');_0x4522af[_0x21d6f3(0x1ea)](_0x262fb0);const _0x39fb51=_0x2f16ce?_0x2f318b:_0x3ad290,_0x336e32={'code':_0x262fb0,'type':_0x2602e5,'required':_0x39fb51[_0x21d6f3(0x1f0)]===!![]};if(RESERVED[_0x21d6f3(0x20f)](_0x262fb0)||_0x39fb51[_0x21d6f3(0x186)]===!![]||_0x39fb51[_0x21d6f3(0x1af)]===!![])_0x336e32[_0x21d6f3(0x186)]=!![];_0x2037b6[_0x21d6f3(0x13d)](_0x336e32);}return _0x2037b6;}async function checkArchive(_0x31efcd,_0x59f974){await new Promise((_0x160419,_0xbaaf4e)=>{const _0x1ae32e=a144_0xdfc0;a144_0x3de66d[_0x1ae32e(0x170)](_0x31efcd,{'lazyEntries':!![],'validateEntrySizes':!![]},(_0x46dd83,_0x5631f2)=>{const _0x42a982=_0x1ae32e;if(_0x46dd83||!_0x5631f2){_0xbaaf4e(_0x46dd83??new Error(_0x42a982(0x18f)));return;}let _0x1edbfe;try{_0x1edbfe=centralDirectoryEnd(_0x31efcd,_0x5631f2);}catch(_0x5d1a32){_0x5631f2[_0x42a982(0x176)](),_0xbaaf4e(_0x5d1a32);return;}let _0xf0a5a5=0x0,_0x503941=0x0,_0x152acd=0x0,_0x3861aa=0x0,_0x209e61=0x0,_0x1ffe6b=0x0,_0x504314=0x0,_0x1a2bd4=0x0,_0xfd8f82=0x0,_0xd20503=![],_0x38d108;const _0x2329e2=new Set(),_0x39441f=_0x410224=>{const _0xdd534c=_0x42a982;if(_0xd20503)return;_0xd20503=!![],_0x38d108?.[_0xdd534c(0x189)](),_0x5631f2[_0xdd534c(0x176)](),_0xbaaf4e(_0x410224);},_0x419546=(_0x141e03,_0x55b5fd)=>{const _0x3f4701=_0x42a982;if(!_0x141e03||!/^\d+$/[_0x3f4701(0x1eb)](_0x141e03))throw new Error(_0x3f4701(0x167));const _0x3ad462=Number(_0x141e03);if(!Number['isSafeInteger'](_0x3ad462)||_0x3ad462<0x1||_0x3ad462>_0x55b5fd)throw new Error(_0x3f4701(0x155)+_0x55b5fd+'.');return _0x3ad462;},_0x351094=(_0x4e42ff,_0x3de4b7=MAX_XML_COLUMNS)=>{const _0x220ae3=_0x42a982,_0x27e304=/^\$?([A-Z]{1,3})\$?(\d+)$/[_0x220ae3(0x121)](_0x4e42ff);if(!_0x27e304)throw new Error('Invalid\x20worksheet\x20cell\x20or\x20merge\x20reference.');let _0x2e72bc=0x0;for(const _0x2714a5 of _0x27e304[0x1])_0x2e72bc=_0x2e72bc*0x1a+_0x2714a5[_0x220ae3(0x1d9)](0x0)-0x40;if(_0x2e72bc>_0x3de4b7)throw new Error('Worksheet\x20exceeds\x20'+_0x3de4b7+_0x220ae3(0x1b2));return{'row':_0x419546(_0x27e304[0x2],MAX_XML_ROWS),'col':_0x2e72bc};},_0x2fdf17=_0x5d0176=>{const _0x28f391=_0x42a982;if(_0x5d0176['name']==='_xlnm.Print_Area'||_0x5d0176['name']===_0x28f391(0x133))return;for(const _0x3bd06d of _0x5d0176['ranges']){if(!ABSOLUTE_NAME_RANGE[_0x28f391(0x1eb)](_0x3bd06d[_0x28f391(0x162)]('!')[_0x28f391(0x1f7)]()||''))continue;const _0x468615=nameCoordinates[_0x28f391(0x130)](_0x3bd06d),_0x212dda=_0x28f391(0x1c5)in _0x468615,_0x39ec4c=_0x212dda?[_0x468615[_0x28f391(0x1c5)],_0x468615[_0x28f391(0x195)]]:[_0x468615['row']],_0x340274=_0x212dda?[_0x468615[_0x28f391(0x181)],_0x468615[_0x28f391(0x12d)]]:[_0x468615[_0x28f391(0x1c8)]],_0x2e0e99=(_0x5a6aa8,_0x32525b)=>Number[_0x28f391(0x17c)](_0x5a6aa8)&&_0x5a6aa8>=0x1&&_0x5a6aa8<=_0x32525b;if(!_0x39ec4c[_0x28f391(0x13a)](_0x7a7507=>_0x2e0e99(_0x7a7507,MAX_XML_ROWS))||!_0x340274[_0x28f391(0x13a)](_0x4a1141=>_0x2e0e99(_0x4a1141,MAX_XML_COLUMNS)))throw new Error(_0x28f391(0x16c));_0x504314+=_0x212dda?(_0x468615['bottom']-_0x468615['top']+0x1)*(_0x468615[_0x28f391(0x12d)]-_0x468615['left']+0x1):0x1;if(_0x504314>MAX_ROWS)throw new Error(_0x28f391(0x184));}};_0x5631f2['on'](_0x42a982(0x1ed),_0x39441f),_0x5631f2['on'](_0x42a982(0x18a),_0x315c1b=>{const _0x20b4a0=_0x42a982;if(_0xd20503)return;if(++_0x152acd>0x2710||(_0xf0a5a5+=_0x315c1b[_0x20b4a0(0x1a4)])>MAX_EXPANDED){_0x39441f(new Error(_0x20b4a0(0x126)));return;}let _0x4fe0cc;try{_0x4fe0cc=consumerEntryName(_0x31efcd,_0x315c1b);}catch(_0xe2b5d6){_0x39441f(_0xe2b5d6);return;}if(_0x4fe0cc['directory']){_0x5631f2[_0x20b4a0(0x134)]();return;}const _0x47cac0=_0x4fe0cc[_0x20b4a0(0x1d2)];if(_0x59f974&&(_0x47cac0!==_0x4fe0cc[_0x20b4a0(0x1f6)]||_0x2329e2[_0x20b4a0(0x20f)](_0x47cac0)||_0x47cac0[_0x20b4a0(0x1ff)]('/')||_0x47cac0[_0x20b4a0(0x15c)]('\x5c'))){_0x39441f(new Error('Non-canonical\x20or\x20duplicate\x20image\x20archive\x20entry.'));return;}if(_0x47cac0!==_0x4fe0cc[_0x20b4a0(0x1f6)]&&(_0x47cac0===_0x20b4a0(0x1c2)||/xl\/worksheets\/sheet(\d+)[.]xml/[_0x20b4a0(0x1eb)](_0x47cac0))){_0x39441f(new Error('Non-canonical\x20workbook\x20or\x20worksheet\x20ZIP\x20entry.'));return;}const _0x431b17=_0x47cac0===_0x20b4a0(0x1c2);if(_0x431b17&&_0x2329e2[_0x20b4a0(0x20f)](_0x47cac0)){_0x39441f(new Error(_0x20b4a0(0x16d)));return;}_0x2329e2[_0x20b4a0(0x1ea)](_0x47cac0);const _0x532ae0=/xl\/worksheets\/sheet(\d+)[.]xml/[_0x20b4a0(0x1eb)](_0x47cac0);if(_0x532ae0&&!/^xl\/worksheets\/sheet\d+[.]xml$/['test'](_0x47cac0)){_0x39441f(new Error(_0x20b4a0(0x1db)));return;}_0x5631f2[_0x20b4a0(0x123)](_0x315c1b,(_0x205665,_0x347b13)=>{const _0x41f298=_0x20b4a0;if(_0xd20503){_0x347b13?.[_0x41f298(0x189)]();return;}if(_0x205665||!_0x347b13){_0x39441f(_0x205665??new Error('Invalid\x20XLSX\x20entry.'));return;}_0x38d108=_0x347b13;const _0x1e5562=_0x59f974?[]:undefined,_0x3aac55=_0x59f974&&/[.](xml|rels)$/[_0x41f298(0x1eb)](_0x47cac0)?new StringDecoder(_0x41f298(0x196)):undefined,_0x4d19b3=_0x3aac55?new SaxesParser({'xmlns':![]}):undefined,_0x4e3528=()=>{const _0x1b610e=_0x41f298;if(++_0xfd8f82>0x1e8480)throw Error(_0x1b610e(0x1aa));};_0x4d19b3?.['on'](_0x41f298(0x156),()=>{const _0x514102=_0x41f298;throw Error(_0x514102(0x1cc));}),_0x4d19b3?.['on']('opentag',()=>{const _0x1a442f=_0x41f298;_0x4e3528();if(++_0x1a2bd4>0x7a120)throw Error(_0x1a442f(0x1d0));}),_0x4d19b3?.['on'](_0x41f298(0x1a3),_0x4e3528),_0x4d19b3?.['on'](_0x41f298(0x1b4),_0x4e3528),_0x4d19b3?.['on'](_0x41f298(0x1ed),_0x29124a=>{throw _0x29124a;});const _0x5a64c8=_0x532ae0||_0x431b17?new StringDecoder('utf8'):undefined,_0x191144=_0x532ae0||_0x431b17?new SaxesParser({'xmlns':![]}):undefined;let _0x4bb5ac,_0x102988=0x0,_0x29ab51=0x0,_0x396173,_0x530713,_0x4ff992=![],_0x3404ce=![],_0x5ea57d,_0x472081,_0x207f8e,_0x62d526=![];const _0x264322=[],_0x5f18eb=new Set();let _0x3b86aa;const _0x181661=(_0x1e2936,_0x3a65e1=0x0)=>{const _0x5a0cfb=_0x41f298;_0x209e61+=_0x3a65e1+Math['max'](0x0,_0x1e2936-_0x29ab51),_0x29ab51=Math[_0x5a0cfb(0x20a)](_0x29ab51,_0x1e2936);if(_0x209e61>MAX_ROWS)throw new Error(_0x5a0cfb(0x125));};_0x191144?.['on'](_0x41f298(0x178),_0x4cdb52=>{const _0xbafb4b=_0x41f298;if(_0x431b17){if(!_0x4bb5ac&&_0x4cdb52['name']===_0xbafb4b(0x1f9))_0x4bb5ac=new DefinedNameXform();_0x4bb5ac?.['parseOpen'](_0x4cdb52);return;}if(_0x4cdb52[_0xbafb4b(0x1d2)]===_0xbafb4b(0x1a2)){if(_0x3404ce)throw new Error(_0xbafb4b(0x124));_0x419546(_0x4cdb52[_0xbafb4b(0x141)]['r'],MAX_XML_ROWS),_0x396173=undefined,_0x207f8e=undefined,_0x62d526=![];}else{if(_0x4cdb52[_0xbafb4b(0x1d2)]==='c'){if(_0x3404ce)throw new Error('Invalid\x20worksheet\x20nested\x20cell.');_0x3404ce=!![],_0x4ff992=Boolean(Number['parseInt'](_0x4cdb52[_0xbafb4b(0x141)]['s']??'',0xa)),_0x3b86aa=undefined,_0x5ea57d=_0x4cdb52['attributes']['r']||undefined,_0x472081=_0x5ea57d?_0x351094(_0x5ea57d):undefined;if(_0x472081)_0x530713=_0x472081;else _0x530713=_0x396173?{'row':_0x396173['row'],'col':_0x396173[_0xbafb4b(0x1c8)]+0x1}:undefined;}else{if(_0x3404ce&&['f','v','t'][_0xbafb4b(0x15c)](_0x4cdb52[_0xbafb4b(0x1d2)])){_0x3b86aa=_0x4cdb52['name'];if(_0x4cdb52['name']==='f'&&_0x4cdb52[_0xbafb4b(0x141)]['t'])_0x4ff992=!![];}else{if(_0x3404ce&&_0x4cdb52['name']==='r')_0x4ff992=!![];else{if(_0x4cdb52[_0xbafb4b(0x1d2)]===_0xbafb4b(0x146)){const _0x5a0632=_0x4cdb52[_0xbafb4b(0x141)]['ref'];if(!_0x5a0632)throw new Error(_0xbafb4b(0x15d));const _0xe6d87=_0x5a0632['split'](':');if(_0xe6d87[_0xbafb4b(0x13e)]>0x2)throw new Error(_0xbafb4b(0x15d));const _0xe0f9c1=_0x351094(_0xe6d87[0x0]),_0x4db4a6=_0x351094(_0xe6d87[0x1]??_0xe6d87[0x0]);_0x5f18eb[_0xbafb4b(0x1ea)](_0x5a0632),_0x181661(Math[_0xbafb4b(0x20a)](_0xe0f9c1[_0xbafb4b(0x1c8)],_0x4db4a6['col']),0x1);}else{if(_0x4cdb52[_0xbafb4b(0x1d2)]===_0xbafb4b(0x1c8)){const _0x1df156=_0x419546(_0x4cdb52['attributes'][_0xbafb4b(0x198)],0x4000),_0xca614e=_0x419546(_0x4cdb52[_0xbafb4b(0x141)][_0xbafb4b(0x20a)],0x4000);if(_0x1df156>_0xca614e)throw new Error(_0xbafb4b(0x148));_0x181661(_0xca614e,0x1);}else{if(_0x4cdb52[_0xbafb4b(0x1d2)]===_0xbafb4b(0x20d)){const _0x3119a5=_0x4cdb52['attributes'][_0xbafb4b(0x201)];if(!_0x3119a5)throw new Error(_0xbafb4b(0x142));const _0x4883c6=_0x3119a5['split'](':');if(_0x4883c6[_0xbafb4b(0x13e)]>0x2)throw new Error(_0xbafb4b(0x142));const _0x2d730d=_0x351094(_0x4883c6[0x0]),_0x49fcb8=_0x351094(_0x4883c6[0x1]??_0x4883c6[0x0]);_0x181661(Math['max'](_0x2d730d[_0xbafb4b(0x1c8)],_0x49fcb8[_0xbafb4b(0x1c8)]));const _0x5cc237=(Math[_0xbafb4b(0x210)](_0x49fcb8[_0xbafb4b(0x1a2)]-_0x2d730d[_0xbafb4b(0x1a2)])+0x1)*(Math[_0xbafb4b(0x210)](_0x49fcb8[_0xbafb4b(0x1c8)]-_0x2d730d[_0xbafb4b(0x1c8)])+0x1);_0x3861aa+=_0x5cc237+_0x102988++;if(_0x3861aa>MAX_ROWS)throw new Error(_0xbafb4b(0x1c9));}}}}}}}}),_0x191144?.['on'](_0x41f298(0x1a3),_0x49c6ca=>{const _0x57a6f7=_0x41f298;if(_0x431b17){_0x4bb5ac?.[_0x57a6f7(0x165)](_0x49c6ca);return;}if(_0x3404ce&&_0x3b86aa&&_0x49c6ca)_0x4ff992=!![];}),_0x191144?.['on'](_0x41f298(0x1b4),_0x362b29=>{const _0x3f11e3=_0x41f298;if(_0x431b17){_0x4bb5ac&&!_0x4bb5ac['parseClose']()&&(_0x2fdf17(_0x4bb5ac[_0x3f11e3(0x18d)]),_0x4bb5ac=undefined);return;}if(_0x362b29[_0x3f11e3(0x1d2)]==='c'){!_0x4ff992&&_0x5ea57d&&!_0x207f8e&&(_0x207f8e={'before':_0x396173,'cells':[]});if(_0x207f8e){if(++_0x1ffe6b>0xf4240)throw new Error(_0x3f11e3(0x153));_0x207f8e['cells'][_0x3f11e3(0x13d)]({'reference':_0x5ea57d,'address':_0x472081,'materialized':_0x4ff992});if(!_0x5ea57d&&_0x4ff992)_0x62d526=!![];}if(_0x4ff992){if(!_0x207f8e||_0x5ea57d){if(!_0x530713)throw new Error(_0x3f11e3(0x14b));if(_0x530713['col']>MAX_XML_COLUMNS)throw new Error(_0x3f11e3(0x158));_0x181661(_0x530713[_0x3f11e3(0x1c8)]);}_0x396173=_0x530713;}_0x3404ce=![],_0x530713=undefined,_0x5ea57d=undefined,_0x472081=undefined,_0x3b86aa=undefined;}else{if(_0x362b29[_0x3f11e3(0x1d2)]===_0x3f11e3(0x1a2)){if(_0x207f8e&&_0x62d526)_0x264322['push'](_0x207f8e);_0x207f8e=undefined,_0x62d526=![];}else{if(_0x362b29[_0x3f11e3(0x1d2)]===_0x3b86aa)_0x3b86aa=undefined;}}}),_0x191144?.['on'](_0x41f298(0x1ed),_0x18c6f9=>{const _0x5142a6=_0x41f298;throw new Error(_0x5142a6(0x16f)+_0x18c6f9['message']);}),_0x347b13['on'](_0x41f298(0x1ed),_0x39441f),_0x347b13['on'](_0x41f298(0x1fd),_0x4be59b=>{const _0x151dc8=_0x41f298;if(_0xd20503)return;_0x503941+=_0x4be59b[_0x151dc8(0x13e)],_0x1e5562?.[_0x151dc8(0x13d)](_0x4be59b);if(_0x503941>MAX_EXPANDED){_0x39441f(new Error(_0x151dc8(0x126)));return;}try{if(_0x4d19b3&&_0x3aac55)_0x4d19b3['write'](_0x3aac55[_0x151dc8(0x204)](_0x4be59b));if(_0x191144&&_0x5a64c8)_0x191144[_0x151dc8(0x204)](_0x5a64c8[_0x151dc8(0x204)](_0x4be59b));}catch(_0x21ba3d){_0x39441f(_0x21ba3d instanceof Error?_0x21ba3d:new Error(_0x151dc8(0x16b)));}}),_0x347b13['on'](_0x41f298(0x1be),()=>{const _0x34847a=_0x41f298;if(_0xd20503)return;try{if(_0x4d19b3&&_0x3aac55)_0x4d19b3['write'](_0x3aac55[_0x34847a(0x1be)]())['close']();if(_0x191144&&_0x5a64c8)_0x191144['write'](_0x5a64c8['end']())[_0x34847a(0x176)]();for(const _0x1f6127 of _0x264322){let _0x2fcb01=_0x1f6127[_0x34847a(0x16a)];for(const _0x43a50c of _0x1f6127[_0x34847a(0x1ad)]){if(!_0x43a50c[_0x34847a(0x144)]&&!(_0x43a50c[_0x34847a(0x193)]&&_0x5f18eb['has'](_0x43a50c[_0x34847a(0x193)])))continue;const _0x416c68=_0x43a50c[_0x34847a(0x1ec)]??(_0x2fcb01?{'row':_0x2fcb01[_0x34847a(0x1a2)],'col':_0x2fcb01[_0x34847a(0x1c8)]+0x1}:undefined);if(!_0x416c68)throw new Error('Invalid\x20worksheet\x20cell\x20without\x20an\x20initial\x20reference.');if(_0x416c68[_0x34847a(0x1c8)]>MAX_XML_COLUMNS)throw new Error(_0x34847a(0x158));_0x181661(_0x416c68[_0x34847a(0x1c8)]),_0x2fcb01=_0x416c68;}}_0x264322[_0x34847a(0x13e)]=0x0,_0x5f18eb[_0x34847a(0x12c)]();}catch(_0x4b0852){_0x39441f(_0x4b0852 instanceof Error?_0x4b0852:new Error(_0x34847a(0x16b)));return;}if(_0x1e5562)_0x59f974[_0x34847a(0x132)](_0x47cac0,Buffer['concat'](_0x1e5562));_0x38d108=undefined,_0x5631f2[_0x34847a(0x134)]();});});}),_0x5631f2['on'](_0x42a982(0x1be),()=>{const _0x2bf323=_0x42a982;if(_0xd20503)return;if(_0x5631f2[_0x2bf323(0x17d)]!==_0x1edbfe){_0xbaaf4e(new Error(_0x2bf323(0x200)));return;}if(!_0x2329e2[_0x2bf323(0x20f)](_0x2bf323(0x161))||!_0x2329e2[_0x2bf323(0x20f)](_0x2bf323(0x1c2)))_0xbaaf4e(new Error(_0x2bf323(0x147)));else _0x160419();}),_0x5631f2[_0x42a982(0x134)]();});});}function valueOf(_0x5d8bc2){const _0x5b680b=a144_0x4d4b9d,_0x221ea2=_0x5d8bc2[_0x5b680b(0x128)];if(_0x221ea2&&typeof _0x221ea2==='object'&&(_0x5b680b(0x1c7)in _0x221ea2||_0x5b680b(0x1e1)in _0x221ea2)){if(!(_0x5b680b(0x18e)in _0x221ea2)||_0x221ea2[_0x5b680b(0x18e)]===undefined)throw new Error(_0x5b680b(0x1cd));return _0x221ea2[_0x5b680b(0x18e)];}return _0x221ea2;}function convert(_0x39b493,_0x468bda){const _0x510d1a=a144_0x4d4b9d;if(_0x39b493===null||_0x39b493===undefined||_0x39b493===''){if(_0x468bda[_0x510d1a(0x1f0)]&&!_0x468bda[_0x510d1a(0x186)])throw new Error('Required\x20value\x20is\x20missing.');return null;}if(typeof _0x39b493===_0x510d1a(0x12a)&&Buffer['byteLength'](_0x39b493,'utf8')>MAX_CELL)throw new Error('Cell\x20exceeds\x2064\x20KB.');switch(_0x468bda['type'][_0x510d1a(0x1d3)]()){case'string':case _0x510d1a(0x1a3):case _0x510d1a(0x1e5):if(typeof _0x39b493!=='string')throw new Error(_0x510d1a(0x197));return _0x39b493;case _0x510d1a(0x174):case'decimal':case _0x510d1a(0x1bf):if(typeof _0x39b493!==_0x510d1a(0x174)||!Number['isFinite'](_0x39b493)||Math[_0x510d1a(0x210)](_0x39b493)>Number[_0x510d1a(0x1ca)]||_0x468bda['type'][_0x510d1a(0x1d3)]()==='integer'&&!Number[_0x510d1a(0x12b)](_0x39b493))throw new Error(_0x510d1a(0x1f2));return _0x39b493;case'boolean':if(typeof _0x39b493!==_0x510d1a(0x139))throw new Error('Expected\x20a\x20boolean\x20cell.');return _0x39b493;case _0x510d1a(0x20c):case _0x510d1a(0x154):if(!(_0x39b493 instanceof Date)||!Number[_0x510d1a(0x1d8)](_0x39b493[_0x510d1a(0x18c)]()))throw new Error(_0x510d1a(0x194));return _0x39b493[_0x510d1a(0x18c)]();default:throw new Error('Unsupported\x20field\x20type:\x20'+_0x468bda[_0x510d1a(0x212)]+'.');}}export async function buildExcelManifest(_0x5788bb){const _0x595e9b=a144_0x4d4b9d,_0x1502a3=_0x5788bb['headerRow']??0x1;if(!Number[_0x595e9b(0x12b)](_0x1502a3)||_0x1502a3<0x1||_0x1502a3>MAX_ROWS)throw new Error(_0x595e9b(0x168));if(_0x5788bb[_0x595e9b(0x199)]!==undefined&&(!Number[_0x595e9b(0x12b)](_0x5788bb[_0x595e9b(0x199)])||_0x5788bb[_0x595e9b(0x199)]<0x1||_0x5788bb[_0x595e9b(0x199)]>0x3e8))throw new Error(_0x595e9b(0x1bc));if(a144_0x45e51a[_0x595e9b(0x1f5)](_0x5788bb[_0x595e9b(0x131)])[_0x595e9b(0x1d3)]()!==_0x595e9b(0x143))throw new Error(_0x595e9b(0x122));const _0x5b4b65=await stat(_0x5788bb[_0x595e9b(0x131)]);if(!_0x5b4b65['isFile']()||_0x5b4b65[_0x595e9b(0x18b)]>MAX_FILE)throw new Error(_0x595e9b(0x129));const _0x2abfdf=await readFile(_0x5788bb[_0x595e9b(0x131)]);if(_0x2abfdf[_0x595e9b(0x13e)]>MAX_FILE)throw new Error(_0x595e9b(0x177));const _0x40033d=_0x5788bb[_0x595e9b(0x1dc)][_0x595e9b(0x1d1)](_0x282988=>isImageContainer(_0x282988[_0x595e9b(0x212)])&&Object['values'](_0x5788bb[_0x595e9b(0x19d)])['includes'](_0x282988[_0x595e9b(0x1f8)]))?new Map():undefined;await checkArchive(_0x2abfdf,_0x40033d);const _0x20ddc1=new a144_0x13936f[(_0x595e9b(0x1ce))]();await _0x20ddc1['xlsx']['load'](_0x2abfdf,{'ignoreNodes':[_0x595e9b(0x1ae)]});const _0x1ea41a=_0x5788bb['sheet'];let _0xc8a34;if(_0x1ea41a===undefined)_0xc8a34=_0x20ddc1[_0x595e9b(0x13f)][0x0];else{if(typeof _0x1ea41a===_0x595e9b(0x12a)&&_0x20ddc1[_0x595e9b(0x13f)]['some'](_0xe80e3=>_0xe80e3[_0x595e9b(0x1d2)]===_0x1ea41a))_0xc8a34=_0x20ddc1['worksheets']['find'](_0x4191db=>_0x4191db['name']===_0x1ea41a);else{if(typeof _0x1ea41a===_0x595e9b(0x174)||/^\d+$/[_0x595e9b(0x1eb)](_0x1ea41a)){const _0xf2adee=Number(_0x1ea41a);if(!Number[_0x595e9b(0x12b)](_0xf2adee)||_0xf2adee<0x1)throw new Error(_0x595e9b(0x1a8));_0xc8a34=_0x20ddc1[_0x595e9b(0x13f)][_0xf2adee-0x1];}else _0xc8a34=_0x20ddc1['worksheets'][_0x595e9b(0x19b)](_0x4da5fb=>_0x4da5fb[_0x595e9b(0x1d2)]===_0x1ea41a);}}if(!_0xc8a34)throw new Error(_0x595e9b(0x1e2));if(_0xc8a34[_0x595e9b(0x127)]>MAX_ROWS||_0xc8a34['columnCount']>MAX_COLUMNS)throw new Error(_0x595e9b(0x14d));if((_0xc8a34[_0x595e9b(0x18d)]['merges']??[])[_0x595e9b(0x13e)])throw new Error(_0x595e9b(0x1d7));const _0x18d19d=new Map();_0xc8a34[_0x595e9b(0x1d4)](_0x1502a3)['eachCell']((_0xf8124f,_0x1bfdbe)=>{const _0x579e1c=_0x595e9b,_0x55df97=valueOf(_0xf8124f);if(typeof _0x55df97!==_0x579e1c(0x12a)||!_0x55df97[_0x579e1c(0x1e6)]()||Buffer[_0x579e1c(0x1da)](_0x55df97)>MAX_CELL)throw new Error(_0x579e1c(0x15b));if(_0x18d19d[_0x579e1c(0x20f)](_0x55df97))throw new Error(_0x579e1c(0x1d6)+_0x55df97+'.');_0x18d19d[_0x579e1c(0x132)](_0x55df97,_0x1bfdbe);});const _0x61d503=Object[_0x595e9b(0x1ef)](_0x5788bb[_0x595e9b(0x19d)]);if(!_0x61d503[_0x595e9b(0x13e)])throw new Error(_0x595e9b(0x1c4));const _0x1449e1=new Map(_0x5788bb[_0x595e9b(0x1dc)][_0x595e9b(0x14f)](_0x5a7765=>[_0x5a7765[_0x595e9b(0x1f8)],_0x5a7765]));if(_0x1449e1[_0x595e9b(0x18b)]!==_0x5788bb[_0x595e9b(0x1dc)]['length'])throw new Error(_0x595e9b(0x1e3));if(_0x5788bb[_0x595e9b(0x1dc)][_0x595e9b(0x1d1)](_0x2e8c83=>_0x2e8c83[_0x595e9b(0x212)][_0x595e9b(0x1d3)]()==='serial_number'))throw new Error('Unsupported\x20dataset\x20field\x20type:\x20serial_number.');const _0x4f913f=new Set();for(const [_0x250386,_0x2b8c3b]of _0x61d503){const _0x3a2159=_0x1449e1[_0x595e9b(0x211)](_0x2b8c3b);if(!_0x18d19d['has'](_0x250386))throw new Error(_0x595e9b(0x15e)+_0x250386+'.');if(!_0x3a2159||RESERVED['has'](_0x2b8c3b)||_0x3a2159['generated'])throw new Error(_0x595e9b(0x1e7)+_0x2b8c3b+'.');if(_0x4f913f['has'](_0x2b8c3b))throw new Error('Duplicate\x20mapping\x20target:\x20'+_0x2b8c3b+'.');if(!TYPES[_0x595e9b(0x20f)](_0x3a2159[_0x595e9b(0x212)]['toLowerCase']()))throw new Error(_0x595e9b(0x203)+_0x3a2159['type']+'.');_0x4f913f['add'](_0x2b8c3b);}for(const _0x10039b of _0x5788bb[_0x595e9b(0x1dc)]){if(_0x10039b['required']&&!_0x10039b['generated']&&!RESERVED[_0x595e9b(0x20f)](_0x10039b[_0x595e9b(0x1f8)])&&!_0x4f913f[_0x595e9b(0x20f)](_0x10039b[_0x595e9b(0x1f8)]))throw new Error(_0x595e9b(0x1a9)+_0x10039b[_0x595e9b(0x1f8)]+'.');}const _0x564cb0={'fileHash':hash(_0x2abfdf),'mappingHash':hash(JSON['stringify']([..._0x61d503][_0x595e9b(0x14a)](([_0x4a801f],[_0x279673])=>_0x4a801f['localeCompare'](_0x279673)))),'schemaHash':hash(JSON[_0x595e9b(0x209)]([..._0x5788bb[_0x595e9b(0x1dc)]][_0x595e9b(0x14a)]((_0x1318c0,_0x2eba2f)=>_0x1318c0[_0x595e9b(0x1f8)]['localeCompare'](_0x2eba2f[_0x595e9b(0x1f8)])))),'sheet':_0xc8a34['name'],'rows':[],'emptyRows':[],'errors':[],'warnings':[]},_0x3592a7=_0x61d503[_0x595e9b(0x160)](([,_0x16b00d])=>isImageContainer(_0x1449e1[_0x595e9b(0x211)](_0x16b00d)[_0x595e9b(0x212)])),_0x3a311e=_0x3592a7[_0x595e9b(0x160)](([,_0x2617d1])=>_0x1449e1[_0x595e9b(0x211)](_0x2617d1)[_0x595e9b(0x212)][_0x595e9b(0x1d3)]()===_0x595e9b(0x163))[_0x595e9b(0x14f)](([,_0x405246])=>_0x405246);if(_0x3a311e['length'])_0x564cb0[_0x595e9b(0x166)]=_0x3a311e;const _0x21d72a=_0x40033d?resolveWorksheetImages(_0x40033d,_0xc8a34[_0x595e9b(0x1d2)],new Set(_0x3592a7['map'](([_0x46c0a6])=>_0x18d19d[_0x595e9b(0x211)](_0x46c0a6)))):[],_0x44ab60=new Map();for(const _0x122e7d of _0x21d72a){const _0x3a745c=_0x122e7d[_0x595e9b(0x1a2)]+':'+_0x122e7d['col'],_0x544c25=_0x44ab60[_0x595e9b(0x211)](_0x3a745c)??[];_0x544c25[_0x595e9b(0x13d)](_0x122e7d),_0x44ab60[_0x595e9b(0x132)](_0x3a745c,_0x544c25);}const _0x46e21e=new Map();let _0x30bb92=0x0;_0x3592a7[_0x595e9b(0x13e)]&&(_0x564cb0[_0x595e9b(0x208)]=_0x3592a7[_0x595e9b(0x14f)](([,_0x286035])=>_0x286035),_0x564cb0[_0x595e9b(0x1f3)]=[],_0x564cb0[_0x595e9b(0x206)]=0x1,_0x564cb0[_0x595e9b(0x159)]=[]);const _0x5266fa=Math[_0x595e9b(0x20a)](0x0,..._0x21d72a[_0x595e9b(0x14f)](_0x426b84=>_0x426b84['row']));let _0x373f11=0x0;const _0x4e69f=new Set(_0x61d503[_0x595e9b(0x14f)](([_0x44fbdf])=>_0x18d19d[_0x595e9b(0x211)](_0x44fbdf)));for(let _0x340404=_0x1502a3+0x1;_0x340404<=Math[_0x595e9b(0x20a)](_0xc8a34[_0x595e9b(0x127)],_0x5266fa);_0x340404++){const _0x1be5ee=_0xc8a34[_0x595e9b(0x1d4)](_0x340404);if(_0x1be5ee['hidden']||_0x21d72a[_0x595e9b(0x1d1)](_0x5b3dc4=>_0x5b3dc4[_0x595e9b(0x1a2)]===_0x340404&&_0x5b3dc4[_0x595e9b(0x202)]))_0x373f11++;let _0x5e01ce=_0x21d72a['some'](_0x41ead0=>_0x41ead0[_0x595e9b(0x1a2)]===_0x340404);_0x1be5ee[_0x595e9b(0x1c1)](_0x3f801f=>{const _0x7c69a=_0x595e9b;if(_0x3f801f[_0x7c69a(0x128)]!==null&&_0x3f801f[_0x7c69a(0x128)]!==undefined&&_0x3f801f['value']!=='')_0x5e01ce=!![];});if(!_0x5e01ce){_0x564cb0['emptyRows'][_0x595e9b(0x13d)](_0x340404);continue;}const _0xb1bfc1=Object['create'](null);_0x1be5ee[_0x595e9b(0x1c1)]((_0x30c932,_0x5157c5)=>{const _0x3f1a1f=_0x595e9b;if(_0x4e69f[_0x3f1a1f(0x20f)](_0x5157c5))return;try{const _0x250fcc=valueOf(_0x30c932);if(typeof _0x250fcc===_0x3f1a1f(0x12a)&&Buffer['byteLength'](_0x250fcc,'utf8')>MAX_CELL)throw new Error('Cell\x20exceeds\x2064\x20KB.');}catch(_0x567b91){_0x564cb0[_0x3f1a1f(0x14c)][_0x3f1a1f(0x13d)]({'rowNumber':_0x340404,'field':_0x30c932[_0x3f1a1f(0x1ec)],'message':_0x567b91[_0x3f1a1f(0x1b8)]});}});for(const [_0x517ee5,_0x42f20d]of _0x61d503){try{const _0x2baf5e=_0x1be5ee[_0x595e9b(0x1fc)](_0x18d19d[_0x595e9b(0x211)](_0x517ee5)),_0x2fb783=_0x1449e1[_0x595e9b(0x211)](_0x42f20d);if(!isImageContainer(_0x2fb783[_0x595e9b(0x212)])){_0xb1bfc1[_0x42f20d]=convert(valueOf(_0x2baf5e),_0x2fb783);continue;}const _0x4ca967=_0x44ab60[_0x595e9b(0x211)](_0x340404+':'+_0x18d19d[_0x595e9b(0x211)](_0x517ee5))??[];if(_0x4ca967[_0x595e9b(0x1d1)](_0x13621f=>_0x13621f[_0x595e9b(0x1ed)]))throw Error(_0x4ca967[_0x595e9b(0x19b)](_0x1329d9=>_0x1329d9[_0x595e9b(0x1ed)])[_0x595e9b(0x1ed)]);if(_0x2baf5e[_0x595e9b(0x128)]!=null&&_0x2baf5e[_0x595e9b(0x128)]!==''&&!_0x4ca967['some'](_0x118b3c=>_0x118b3c[_0x595e9b(0x1bb)]))throw Error(_0x595e9b(0x137));const _0x25a565=[];for(const _0x5a3de8 of _0x4ca967)for(const _0x4b30f3 of _0x5a3de8['media']){const _0x2e7aa3=_0x40033d[_0x595e9b(0x211)](_0x4b30f3);if(!_0x2e7aa3)throw Error(_0x595e9b(0x1e4)+_0x4b30f3+'.');const _0x23df1e=hash(_0x2e7aa3),_0x1317c9=_0x46e21e[_0x595e9b(0x211)](_0x23df1e)??validateImageBytes(_0x2e7aa3);if(!_0x46e21e[_0x595e9b(0x20f)](_0x1317c9[_0x595e9b(0x145)])){_0x30bb92+=_0x1317c9[_0x595e9b(0x18b)];if(_0x30bb92>0x32*0x400*0x400)throw Error(_0x595e9b(0x190));_0x46e21e[_0x595e9b(0x132)](_0x1317c9[_0x595e9b(0x145)],_0x1317c9);}_0x25a565['push'](_0x1317c9[_0x595e9b(0x145)]);}if(!_0x25a565[_0x595e9b(0x13e)]&&_0x2fb783['required'])throw Error('Required\x20image\x20value\x20is\x20missing.');if(_0x25a565[_0x595e9b(0x13e)])_0x564cb0[_0x595e9b(0x1f3)][_0x595e9b(0x13d)]({'rowNumber':_0x340404,'field':_0x42f20d,'hashes':_0x25a565});_0xb1bfc1[_0x42f20d]=_0x25a565[_0x595e9b(0x14f)](_0xecab93=>{const _0xfebd58=_0x595e9b,_0x50165b=_0x46e21e[_0xfebd58(0x211)](_0xecab93),_0x1c22b7=_0x50165b[_0xfebd58(0x212)]===_0xfebd58(0x20e)?_0xfebd58(0x17b):_0x50165b[_0xfebd58(0x212)][_0xfebd58(0x17a)](0x6),_0x264e58=_0xecab93+'.'+_0x1c22b7,_0x22de9b=_0xfebd58(0x1ac)+'0'['repeat'](0x40)+'/'+_0x264e58;return _0x2fb783[_0xfebd58(0x212)][_0xfebd58(0x1d3)]()===_0xfebd58(0x163)?{'fileName':_0x264e58,'filePath':_0x22de9b}:{'key':_0x22de9b,'name':_0x264e58,'type':_0x50165b[_0xfebd58(0x212)],'size':_0x50165b[_0xfebd58(0x18b)]};});}catch(_0x29962b){_0x564cb0[_0x595e9b(0x14c)][_0x595e9b(0x13d)]({'rowNumber':_0x340404,'field':_0x42f20d,'message':_0x29962b[_0x595e9b(0x1b8)]});}}_0x564cb0['rows'][_0x595e9b(0x13d)]({'rowNumber':_0x340404,'values':_0xb1bfc1});}if(_0x564cb0[_0x595e9b(0x159)])_0x564cb0[_0x595e9b(0x159)]=[..._0x46e21e[_0x595e9b(0x1ab)]()];if(_0x373f11)_0x564cb0[_0x595e9b(0x152)][_0x595e9b(0x13d)](_0x373f11+'\x20hidden\x20row(s)\x20are\x20included\x20in\x20the\x20import.');return _0x564cb0;}
@@ -1 +1 @@
1
- (function(_0x100827,_0x4d0897){const _0x5da7c9=a145_0x7d1d,_0x4ef076=_0x100827();while(!![]){try{const _0x14a895=-parseInt(_0x5da7c9(0x9b))/0x1*(-parseInt(_0x5da7c9(0x87))/0x2)+parseInt(_0x5da7c9(0x71))/0x3*(-parseInt(_0x5da7c9(0x83))/0x4)+parseInt(_0x5da7c9(0x89))/0x5+parseInt(_0x5da7c9(0x91))/0x6*(parseInt(_0x5da7c9(0x76))/0x7)+-parseInt(_0x5da7c9(0x98))/0x8+parseInt(_0x5da7c9(0x9f))/0x9*(parseInt(_0x5da7c9(0x66))/0xa)+-parseInt(_0x5da7c9(0x6c))/0xb;if(_0x14a895===_0x4d0897)break;else _0x4ef076['push'](_0x4ef076['shift']());}catch(_0x58d614){_0x4ef076['push'](_0x4ef076['shift']());}}}(a145_0x2a8d,0xea03d));import{createRequire}from'node:module';import{createHash}from'node:crypto';function a145_0x7d1d(_0x28accd,_0x484627){_0x28accd=_0x28accd-0x66;const _0x2a8db7=a145_0x2a8d();let _0x7d1d24=_0x2a8db7[_0x28accd];return _0x7d1d24;}function a145_0x2a8d(){const _0x5072d9=['Invalid\x20PNG\x20decoded\x20scanline\x20size.','Invalid\x20GIF\x20LZW\x20code\x20size.','Image\x20must\x20be\x20non-empty\x20and\x20no\x20larger\x20than\x2010\x20MB.','image/png','includes','isSafeInteger','update','subarray','Invalid\x20PNG\x20end.','readUInt32BE','Missing\x20PNG\x20data/end.','52244ObDCKX','Image\x20dimensions\x20exceed\x2040\x20million\x20pixels.','height','digest','1025390jXsIwE','omggif','4943640zBqbHA','Truncated\x20PNG\x20chunk.','Invalid\x20GIF\x20LZW\x20pixel\x20data.','decodeAndBlitFrameRGBA','push','Truncated\x20PNG\x20data.','pngjs','Truncated\x20or\x20incomplete\x20GIF\x20LZW\x20pixels.','336FoUeqF','ceil','toString','length','ascii','max','Truncated\x20GIF\x20data.','5155352DrSbNO','GIF\x20frame\x20exceeds\x20canvas.','sha256','3HklJCs','from','concat','GIF\x20cumulative\x20frame\x20pixels\x20exceed\x2040\x20million.','14561946pYzhxX','Missing\x20GIF\x20trailer.','image/gif','10zbrzOa','numFrames','GIF\x20image\x20has\x20no\x20palette.','hex','IDAT','read','31093898YOyjYL','Invalid\x20GIF\x20trailer.','IHDR','frameInfo','Invalid\x20GIF\x20LZW\x20dictionary\x20reference.','327YKtDZW','Truncated\x20JPEG.','Invalid\x20PNG\x20color/depth/interlace.','equals','readUInt16LE','213563InSIwJ','width'];a145_0x2a8d=function(){return _0x5072d9;};return a145_0x2a8d();}import{inflateSync}from'node:zlib';const require=createRequire(import.meta.url),MAX_PIXELS=0x2625a00;function dimensions(_0xf8482c,_0x901e7b){const _0x461cee=a145_0x7d1d;if(!Number['isSafeInteger'](_0xf8482c)||!Number[_0x461cee(0x7d)](_0x901e7b)||_0xf8482c<0x1||_0x901e7b<0x1||_0xf8482c*_0x901e7b>MAX_PIXELS)throw Error(_0x461cee(0x84));}function validateGif(_0x46a5a9){const _0x5614e1=a145_0x7d1d;let _0x410090=0xd,_0x30647f=0x0,_0x37eab6=0x0;const _0x2f6cc6=_0x46a5a9[_0x5614e1(0x75)](0x6),_0x5cc0c0=_0x46a5a9[_0x5614e1(0x75)](0x8),_0x227333=_0x46a5a9[0xa]&0x80?0x1<<(_0x46a5a9[0xa]&0x7)+0x1:0x0,_0x518e25=_0x5d38e6=>{const _0x29af1b=_0x5614e1;if(_0x410090+_0x5d38e6>_0x46a5a9[_0x29af1b(0x94)])throw Error(_0x29af1b(0x97));};_0x410090+=_0x227333*0x3,_0x518e25(0x0);const _0x120b93=()=>{const _0x12cd7f=_0x5614e1,_0x574707=[];while(!![]){_0x518e25(0x1);const _0x233d5=_0x46a5a9[_0x410090++];if(!_0x233d5)break;_0x518e25(_0x233d5),_0x574707[_0x12cd7f(0x8d)](_0x46a5a9[_0x12cd7f(0x7f)](_0x410090,_0x410090+_0x233d5)),_0x410090+=_0x233d5;}return Buffer[_0x12cd7f(0x9d)](_0x574707);};while(_0x410090<_0x46a5a9[_0x5614e1(0x94)]){const _0x3dccc8=_0x46a5a9[_0x410090++];if(_0x3dccc8===0x3b){if(!_0x30647f||_0x410090!==_0x46a5a9[_0x5614e1(0x94)])throw Error(_0x5614e1(0x6d));return;}if(_0x3dccc8===0x21){_0x518e25(0x1),_0x410090++,_0x120b93();continue;}if(_0x3dccc8!==0x2c)throw Error('Invalid\x20GIF\x20block.');_0x518e25(0x9);const _0x2516cb=_0x46a5a9[_0x5614e1(0x75)](_0x410090),_0x45235b=_0x46a5a9['readUInt16LE'](_0x410090+0x2),_0xcf1e95=_0x46a5a9[_0x5614e1(0x75)](_0x410090+0x4),_0x458d49=_0x46a5a9[_0x5614e1(0x75)](_0x410090+0x6),_0x8e4f87=_0x46a5a9[_0x410090+0x8];_0x410090+=0x9,dimensions(_0xcf1e95,_0x458d49);if(_0x2516cb+_0xcf1e95>_0x2f6cc6||_0x45235b+_0x458d49>_0x5cc0c0||++_0x30647f>0x2710||(_0x37eab6+=_0x2f6cc6*_0x5cc0c0)>MAX_PIXELS)throw Error(_0x5614e1(0x9e));const _0x2293a2=_0x8e4f87&0x80?0x1<<(_0x8e4f87&0x7)+0x1:_0x227333;if(!_0x2293a2)throw Error(_0x5614e1(0x68));_0x8e4f87&0x80&&(_0x518e25(_0x2293a2*0x3),_0x410090+=_0x2293a2*0x3);_0x518e25(0x1);const _0x53bc47=_0x46a5a9[_0x410090++];if(_0x53bc47<0x2||_0x53bc47>0x8)throw Error(_0x5614e1(0x79));const _0x399289=_0x120b93(),_0x4dbe2b=0x1<<_0x53bc47,_0x46fa44=_0x4dbe2b+0x1;let _0x21877f=_0x53bc47+0x1,_0x4a34be=_0x46fa44+0x1,_0x2bc0bd=0x0,_0x5ca783=-0x1,_0x2f16dc=0x0,_0x205f4d=![];const _0x505fed=new Uint32Array(0x1000),_0x4a4f34=new Uint16Array(0x1000);for(let _0x12897d=0x0;_0x12897d<_0x4dbe2b;_0x12897d++){_0x505fed[_0x12897d]=0x1,_0x4a4f34[_0x12897d]=_0x12897d;}while(_0x2bc0bd+_0x21877f<=_0x399289['length']*0x8){let _0x21ca46=0x0;for(let _0x89434b=0x0;_0x89434b<_0x21877f;_0x89434b++,_0x2bc0bd++)_0x21ca46|=(_0x399289[_0x2bc0bd>>0x3]>>(_0x2bc0bd&0x7)&0x1)<<_0x89434b;if(_0x21ca46===_0x4dbe2b){_0x21877f=_0x53bc47+0x1,_0x4a34be=_0x46fa44+0x1,_0x5ca783=-0x1;continue;}if(_0x21ca46===_0x46fa44){_0x205f4d=!![];break;}if(_0x21ca46>_0x4a34be||_0x21ca46===_0x4a34be&&_0x5ca783<0x0||_0x5ca783<0x0&&_0x21ca46>=_0x4dbe2b)throw Error(_0x5614e1(0x70));const _0x19dd86=_0x21ca46===_0x4a34be?_0x505fed[_0x5ca783]+0x1:_0x505fed[_0x21ca46],_0x3a6f0f=_0x21ca46===_0x4a34be?_0x4a4f34[_0x5ca783]:_0x4a4f34[_0x21ca46];if(!_0x19dd86||_0x3a6f0f>=_0x2293a2||(_0x2f16dc+=_0x19dd86)>_0xcf1e95*_0x458d49)throw Error(_0x5614e1(0x8b));if(_0x5ca783>=0x0&&_0x4a34be<0x1000){_0x505fed[_0x4a34be]=_0x505fed[_0x5ca783]+0x1,_0x4a4f34[_0x4a34be]=Math[_0x5614e1(0x96)](_0x4a4f34[_0x5ca783],_0x3a6f0f),_0x4a34be++;if(_0x4a34be===0x1<<_0x21877f&&_0x21877f<0xc)_0x21877f++;}_0x5ca783=_0x21ca46;}if(!_0x205f4d||_0x2f16dc!==_0xcf1e95*_0x458d49)throw Error(_0x5614e1(0x90));}throw Error(_0x5614e1(0xa0));}export function validateImageBytes(_0x237e6b){const _0x4f664c=a145_0x7d1d;if(!_0x237e6b[_0x4f664c(0x94)]||_0x237e6b['length']>0xa*0x400*0x400)throw Error(_0x4f664c(0x7a));let _0x4c2de6;try{if(_0x237e6b['subarray'](0x0,0x8)[_0x4f664c(0x74)](Buffer[_0x4f664c(0x9c)]([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]))){if(_0x237e6b[_0x4f664c(0x94)]<0x21||_0x237e6b[_0x4f664c(0x93)](_0x4f664c(0x95),0xc,0x10)!==_0x4f664c(0x6e))throw Error('Invalid\x20PNG\x20header.');dimensions(_0x237e6b['readUInt32BE'](0x10),_0x237e6b[_0x4f664c(0x81)](0x14));const _0xb934c5=_0x237e6b[_0x4f664c(0x81)](0x10),_0x47c00d=_0x237e6b['readUInt32BE'](0x14),_0x47ef4d=_0x237e6b[0x18],_0x400a49=_0x237e6b[0x19],_0x15afbe=_0x237e6b[0x1c],_0x37fe86={0x0:0x1,0x2:0x3,0x3:0x1,0x4:0x2,0x6:0x4}[_0x400a49];if(!_0x37fe86||![0x1,0x2,0x4,0x8,0x10][_0x4f664c(0x7c)](_0x47ef4d)||_0x15afbe>0x1)throw Error(_0x4f664c(0x73));const _0x5171f0=_0x236a2c=>Math[_0x4f664c(0x92)](_0x236a2c*_0x37fe86*_0x47ef4d/0x8)+0x1;let _0x404c16=_0x5171f0(_0xb934c5)*_0x47c00d;if(_0x15afbe){_0x404c16=0x0;for(const [_0x3bc029,_0x1f8b65,_0x5cc3ed,_0x18a6b6]of[[0x0,0x0,0x8,0x8],[0x4,0x0,0x8,0x8],[0x0,0x4,0x4,0x8],[0x2,0x0,0x4,0x4],[0x0,0x2,0x2,0x4],[0x1,0x0,0x2,0x2],[0x0,0x1,0x1,0x2]]){const _0xb0a52=Math[_0x4f664c(0x96)](0x0,Math[_0x4f664c(0x92)]((_0xb934c5-_0x3bc029)/_0x5cc3ed)),_0x319668=Math[_0x4f664c(0x96)](0x0,Math['ceil']((_0x47c00d-_0x1f8b65)/_0x18a6b6));if(_0xb0a52&&_0x319668)_0x404c16+=_0x5171f0(_0xb0a52)*_0x319668;}}let _0x5e1f3b=0x8,_0x3c88eb=![];const _0x2f13d3=[];while(_0x5e1f3b<_0x237e6b[_0x4f664c(0x94)]){if(_0x5e1f3b+0xc>_0x237e6b[_0x4f664c(0x94)])throw Error(_0x4f664c(0x8a));const _0x52ea8d=_0x237e6b[_0x4f664c(0x81)](_0x5e1f3b),_0x4270da=_0x237e6b[_0x4f664c(0x93)](_0x4f664c(0x95),_0x5e1f3b+0x4,_0x5e1f3b+0x8);if(_0x4270da==='acTL')throw Error('Animated\x20PNG\x20is\x20not\x20supported.');if(_0x5e1f3b+_0x52ea8d+0xc>_0x237e6b[_0x4f664c(0x94)])throw Error(_0x4f664c(0x8e));if(_0x4270da===_0x4f664c(0x6a))_0x2f13d3['push'](_0x237e6b['subarray'](_0x5e1f3b+0x8,_0x5e1f3b+0x8+_0x52ea8d));_0x5e1f3b+=_0x52ea8d+0xc;if(_0x4270da==='IEND'){if(_0x52ea8d||_0x5e1f3b!==_0x237e6b[_0x4f664c(0x94)])throw Error(_0x4f664c(0x80));_0x3c88eb=!![];break;}}if(!_0x3c88eb||!_0x2f13d3[_0x4f664c(0x94)])throw Error(_0x4f664c(0x82));if(inflateSync(Buffer['concat'](_0x2f13d3),{'maxOutputLength':_0x404c16+0x1})[_0x4f664c(0x94)]!==_0x404c16)throw Error(_0x4f664c(0x78));const {PNG:_0x16ca86}=require(_0x4f664c(0x8f)),_0x20ece4=_0x16ca86['sync'][_0x4f664c(0x6b)](_0x237e6b,{'checkCRC':!![]});dimensions(_0x20ece4[_0x4f664c(0x77)],_0x20ece4[_0x4f664c(0x85)]),_0x4c2de6=_0x4f664c(0x7b);}else{if(_0x237e6b[0x0]===0xff&&_0x237e6b[0x1]===0xd8){if(_0x237e6b['at'](-0x2)!==0xff||_0x237e6b['at'](-0x1)!==0xd9)throw Error(_0x4f664c(0x72));const _0x539a46=require('jpeg-js'),_0x5061cf=_0x539a46['decode'](_0x237e6b,{'useTArray':!![],'formatAsRGBA':![],'tolerantDecoding':![],'maxResolutionInMP':0x28,'maxMemoryUsageInMB':0x100});dimensions(_0x5061cf['width'],_0x5061cf[_0x4f664c(0x85)]),_0x4c2de6='image/jpeg';}else{if(['GIF87a','GIF89a'][_0x4f664c(0x7c)](_0x237e6b[_0x4f664c(0x93)](_0x4f664c(0x95),0x0,0x6))){if(_0x237e6b[_0x4f664c(0x94)]<0xe||_0x237e6b['at'](-0x1)!==0x3b)throw Error('Truncated\x20GIF.');dimensions(_0x237e6b[_0x4f664c(0x75)](0x6),_0x237e6b[_0x4f664c(0x75)](0x8)),validateGif(_0x237e6b);const {GifReader:_0x466a60}=require(_0x4f664c(0x88)),_0x550588=new _0x466a60(_0x237e6b);dimensions(_0x550588['width'],_0x550588[_0x4f664c(0x85)]);const _0x4cc58a=_0x550588[_0x4f664c(0x67)]();if(!_0x4cc58a||_0x4cc58a>0x2710||_0x4cc58a*_0x550588[_0x4f664c(0x77)]*_0x550588[_0x4f664c(0x85)]>MAX_PIXELS)throw Error(_0x4f664c(0x9e));const _0x4211a0=new Uint8Array(_0x550588[_0x4f664c(0x77)]*_0x550588[_0x4f664c(0x85)]*0x4);for(let _0x24c3f1=0x0;_0x24c3f1<_0x4cc58a;_0x24c3f1++){const _0x5f08bb=_0x550588[_0x4f664c(0x6f)](_0x24c3f1);if(_0x5f08bb['x']+_0x5f08bb[_0x4f664c(0x77)]>_0x550588['width']||_0x5f08bb['y']+_0x5f08bb[_0x4f664c(0x85)]>_0x550588[_0x4f664c(0x85)])throw Error(_0x4f664c(0x99));_0x550588[_0x4f664c(0x8c)](_0x24c3f1,_0x4211a0);}_0x4c2de6=_0x4f664c(0xa1);}else throw Error('Unsupported\x20image\x20format;\x20only\x20PNG,\x20JPEG\x20and\x20GIF\x20are\x20supported.\x20WebP\x20is\x20not\x20supported.');}}}catch(_0x2a6b70){throw Error('Invalid\x20image:\x20'+_0x2a6b70['message']);}return{'contentHash':createHash(_0x4f664c(0x9a))[_0x4f664c(0x7e)](_0x237e6b)[_0x4f664c(0x86)](_0x4f664c(0x69)),'type':_0x4c2de6,'size':_0x237e6b['length'],'bytes':_0x237e6b};}
1
+ (function(_0x1b0009,_0x369254){const _0x268ceb=a145_0x3d4c,_0x59cea2=_0x1b0009();while(!![]){try{const _0x29305e=-parseInt(_0x268ceb(0xc4))/0x1+-parseInt(_0x268ceb(0xd1))/0x2+parseInt(_0x268ceb(0xd4))/0x3+parseInt(_0x268ceb(0xc9))/0x4+-parseInt(_0x268ceb(0xbf))/0x5*(parseInt(_0x268ceb(0xaa))/0x6)+-parseInt(_0x268ceb(0xa9))/0x7*(parseInt(_0x268ceb(0xad))/0x8)+-parseInt(_0x268ceb(0xce))/0x9*(-parseInt(_0x268ceb(0xb0))/0xa);if(_0x29305e===_0x369254)break;else _0x59cea2['push'](_0x59cea2['shift']());}catch(_0xfff043){_0x59cea2['push'](_0x59cea2['shift']());}}}(a145_0x47a7,0x1cc69));import{createRequire}from'node:module';function a145_0x3d4c(_0x37c1e8,_0x2a11c1){_0x37c1e8=_0x37c1e8-0xa0;const _0x47a7a4=a145_0x47a7();let _0x3d4c40=_0x47a7a4[_0x37c1e8];return _0x3d4c40;}import{createHash}from'node:crypto';import{inflateSync}from'node:zlib';function a145_0x47a7(){const _0x3fbe92=['readUInt16LE','push','775292QgRAGD','readUInt32BE','Missing\x20GIF\x20trailer.','isSafeInteger','message','10917eQWxMw','GIF\x20frame\x20exceeds\x20canvas.','equals','7082sexQKW','digest','Image\x20dimensions\x20exceed\x2040\x20million\x20pixels.','574911VmxATC','length','Truncated\x20GIF.','decode','read','Invalid\x20GIF\x20block.','Invalid\x20image:\x20','Invalid\x20PNG\x20header.','IDAT','sync','GIF89a','Invalid\x20GIF\x20LZW\x20dictionary\x20reference.','GIF\x20cumulative\x20frame\x20pixels\x20exceed\x2040\x20million.','subarray','hex','ceil','118412HqHnYn','36EfYcnG','Invalid\x20PNG\x20color/depth/interlace.','Image\x20must\x20be\x20non-empty\x20and\x20no\x20larger\x20than\x2010\x20MB.','24qQejkY','acTL','update','350rczETe','IEND','Truncated\x20PNG\x20chunk.','height','Invalid\x20GIF\x20trailer.','numFrames','Truncated\x20PNG\x20data.','max','IHDR','sha256','includes','Invalid\x20PNG\x20end.','GIF87a','width','Missing\x20PNG\x20data/end.','118730FmDRjf','Truncated\x20GIF\x20data.','decodeAndBlitFrameRGBA','toString','omggif','113285kNvHmR','ascii','from'];a145_0x47a7=function(){return _0x3fbe92;};return a145_0x47a7();}const require=createRequire(import.meta.url),MAX_PIXELS=0x2625a00;function dimensions(_0x4f9075,_0x1cfdd1){const _0x52512e=a145_0x3d4c;if(!Number[_0x52512e(0xcc)](_0x4f9075)||!Number[_0x52512e(0xcc)](_0x1cfdd1)||_0x4f9075<0x1||_0x1cfdd1<0x1||_0x4f9075*_0x1cfdd1>MAX_PIXELS)throw Error(_0x52512e(0xd3));}function validateGif(_0x1a8dde){const _0x2daba5=a145_0x3d4c;let _0x1f56db=0xd,_0x3dde66=0x0,_0x1b2cfe=0x0;const _0x23f4b3=_0x1a8dde[_0x2daba5(0xc7)](0x6),_0x557526=_0x1a8dde[_0x2daba5(0xc7)](0x8),_0x5f5c0a=_0x1a8dde[0xa]&0x80?0x1<<(_0x1a8dde[0xa]&0x7)+0x1:0x0,_0x1cd769=_0x5bd583=>{const _0x1c6d5c=_0x2daba5;if(_0x1f56db+_0x5bd583>_0x1a8dde[_0x1c6d5c(0xd5)])throw Error(_0x1c6d5c(0xc0));};_0x1f56db+=_0x5f5c0a*0x3,_0x1cd769(0x0);const _0x127a43=()=>{const _0x4dda04=_0x2daba5,_0x2d0d41=[];while(!![]){_0x1cd769(0x1);const _0x9b4f9b=_0x1a8dde[_0x1f56db++];if(!_0x9b4f9b)break;_0x1cd769(_0x9b4f9b),_0x2d0d41[_0x4dda04(0xc8)](_0x1a8dde[_0x4dda04(0xa6)](_0x1f56db,_0x1f56db+_0x9b4f9b)),_0x1f56db+=_0x9b4f9b;}return Buffer['concat'](_0x2d0d41);};while(_0x1f56db<_0x1a8dde[_0x2daba5(0xd5)]){const _0x36f0e4=_0x1a8dde[_0x1f56db++];if(_0x36f0e4===0x3b){if(!_0x3dde66||_0x1f56db!==_0x1a8dde[_0x2daba5(0xd5)])throw Error(_0x2daba5(0xb4));return;}if(_0x36f0e4===0x21){_0x1cd769(0x1),_0x1f56db++,_0x127a43();continue;}if(_0x36f0e4!==0x2c)throw Error(_0x2daba5(0xd9));_0x1cd769(0x9);const _0x3a6a84=_0x1a8dde[_0x2daba5(0xc7)](_0x1f56db),_0x48a8ed=_0x1a8dde['readUInt16LE'](_0x1f56db+0x2),_0x277bfc=_0x1a8dde[_0x2daba5(0xc7)](_0x1f56db+0x4),_0x3dfcf9=_0x1a8dde[_0x2daba5(0xc7)](_0x1f56db+0x6),_0x2ccc44=_0x1a8dde[_0x1f56db+0x8];_0x1f56db+=0x9,dimensions(_0x277bfc,_0x3dfcf9);if(_0x3a6a84+_0x277bfc>_0x23f4b3||_0x48a8ed+_0x3dfcf9>_0x557526||++_0x3dde66>0x2710||(_0x1b2cfe+=_0x23f4b3*_0x557526)>MAX_PIXELS)throw Error('GIF\x20cumulative\x20frame\x20pixels\x20exceed\x2040\x20million.');const _0x34d2da=_0x2ccc44&0x80?0x1<<(_0x2ccc44&0x7)+0x1:_0x5f5c0a;if(!_0x34d2da)throw Error('GIF\x20image\x20has\x20no\x20palette.');_0x2ccc44&0x80&&(_0x1cd769(_0x34d2da*0x3),_0x1f56db+=_0x34d2da*0x3);_0x1cd769(0x1);const _0x5bfdf4=_0x1a8dde[_0x1f56db++];if(_0x5bfdf4<0x2||_0x5bfdf4>0x8)throw Error('Invalid\x20GIF\x20LZW\x20code\x20size.');const _0x579f4d=_0x127a43(),_0x4169a2=0x1<<_0x5bfdf4,_0x5b0ea0=_0x4169a2+0x1;let _0x2d596f=_0x5bfdf4+0x1,_0x54959f=_0x5b0ea0+0x1,_0x4093c7=0x0,_0x4e42fb=-0x1,_0x176e5a=0x0,_0x2c67d9=![];const _0x2d36d5=new Uint32Array(0x1000),_0x5edb6c=new Uint16Array(0x1000);for(let _0x3bf999=0x0;_0x3bf999<_0x4169a2;_0x3bf999++){_0x2d36d5[_0x3bf999]=0x1,_0x5edb6c[_0x3bf999]=_0x3bf999;}while(_0x4093c7+_0x2d596f<=_0x579f4d[_0x2daba5(0xd5)]*0x8){let _0x5f09b7=0x0;for(let _0x2089fd=0x0;_0x2089fd<_0x2d596f;_0x2089fd++,_0x4093c7++)_0x5f09b7|=(_0x579f4d[_0x4093c7>>0x3]>>(_0x4093c7&0x7)&0x1)<<_0x2089fd;if(_0x5f09b7===_0x4169a2){_0x2d596f=_0x5bfdf4+0x1,_0x54959f=_0x5b0ea0+0x1,_0x4e42fb=-0x1;continue;}if(_0x5f09b7===_0x5b0ea0){_0x2c67d9=!![];break;}if(_0x5f09b7>_0x54959f||_0x5f09b7===_0x54959f&&_0x4e42fb<0x0||_0x4e42fb<0x0&&_0x5f09b7>=_0x4169a2)throw Error(_0x2daba5(0xa4));const _0x5806fa=_0x5f09b7===_0x54959f?_0x2d36d5[_0x4e42fb]+0x1:_0x2d36d5[_0x5f09b7],_0x5e40df=_0x5f09b7===_0x54959f?_0x5edb6c[_0x4e42fb]:_0x5edb6c[_0x5f09b7];if(!_0x5806fa||_0x5e40df>=_0x34d2da||(_0x176e5a+=_0x5806fa)>_0x277bfc*_0x3dfcf9)throw Error('Invalid\x20GIF\x20LZW\x20pixel\x20data.');if(_0x4e42fb>=0x0&&_0x54959f<0x1000){_0x2d36d5[_0x54959f]=_0x2d36d5[_0x4e42fb]+0x1,_0x5edb6c[_0x54959f]=Math[_0x2daba5(0xb7)](_0x5edb6c[_0x4e42fb],_0x5e40df),_0x54959f++;if(_0x54959f===0x1<<_0x2d596f&&_0x2d596f<0xc)_0x2d596f++;}_0x4e42fb=_0x5f09b7;}if(!_0x2c67d9||_0x176e5a!==_0x277bfc*_0x3dfcf9)throw Error('Truncated\x20or\x20incomplete\x20GIF\x20LZW\x20pixels.');}throw Error(_0x2daba5(0xcb));}export function validateImageBytes(_0x1f34a0){const _0x53c214=a145_0x3d4c;if(!_0x1f34a0[_0x53c214(0xd5)]||_0x1f34a0['length']>0xa*0x400*0x400)throw Error(_0x53c214(0xac));let _0x403075;try{if(_0x1f34a0['subarray'](0x0,0x8)[_0x53c214(0xd0)](Buffer[_0x53c214(0xc6)]([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]))){if(_0x1f34a0['length']<0x21||_0x1f34a0[_0x53c214(0xc2)](_0x53c214(0xc5),0xc,0x10)!==_0x53c214(0xb8))throw Error(_0x53c214(0xa0));dimensions(_0x1f34a0['readUInt32BE'](0x10),_0x1f34a0[_0x53c214(0xca)](0x14));const _0x3639fb=_0x1f34a0[_0x53c214(0xca)](0x10),_0x59c963=_0x1f34a0['readUInt32BE'](0x14),_0x27fefe=_0x1f34a0[0x18],_0x1bed4e=_0x1f34a0[0x19],_0x158ef9=_0x1f34a0[0x1c],_0x580336={0x0:0x1,0x2:0x3,0x3:0x1,0x4:0x2,0x6:0x4}[_0x1bed4e];if(!_0x580336||![0x1,0x2,0x4,0x8,0x10][_0x53c214(0xba)](_0x27fefe)||_0x158ef9>0x1)throw Error(_0x53c214(0xab));const _0x4cc08a=_0x3d029e=>Math[_0x53c214(0xa8)](_0x3d029e*_0x580336*_0x27fefe/0x8)+0x1;let _0x47acf2=_0x4cc08a(_0x3639fb)*_0x59c963;if(_0x158ef9){_0x47acf2=0x0;for(const [_0x198426,_0x579c99,_0x3d84e7,_0x5f8d2c]of[[0x0,0x0,0x8,0x8],[0x4,0x0,0x8,0x8],[0x0,0x4,0x4,0x8],[0x2,0x0,0x4,0x4],[0x0,0x2,0x2,0x4],[0x1,0x0,0x2,0x2],[0x0,0x1,0x1,0x2]]){const _0x2e542d=Math['max'](0x0,Math[_0x53c214(0xa8)]((_0x3639fb-_0x198426)/_0x3d84e7)),_0x2aa427=Math[_0x53c214(0xb7)](0x0,Math['ceil']((_0x59c963-_0x579c99)/_0x5f8d2c));if(_0x2e542d&&_0x2aa427)_0x47acf2+=_0x4cc08a(_0x2e542d)*_0x2aa427;}}let _0x101a81=0x8,_0x521b30=![];const _0x49cea1=[];while(_0x101a81<_0x1f34a0[_0x53c214(0xd5)]){if(_0x101a81+0xc>_0x1f34a0['length'])throw Error(_0x53c214(0xb2));const _0x9de112=_0x1f34a0[_0x53c214(0xca)](_0x101a81),_0x2c6c07=_0x1f34a0[_0x53c214(0xc2)](_0x53c214(0xc5),_0x101a81+0x4,_0x101a81+0x8);if(_0x2c6c07===_0x53c214(0xae))throw Error('Animated\x20PNG\x20is\x20not\x20supported.');if(_0x101a81+_0x9de112+0xc>_0x1f34a0[_0x53c214(0xd5)])throw Error(_0x53c214(0xb6));if(_0x2c6c07===_0x53c214(0xa1))_0x49cea1[_0x53c214(0xc8)](_0x1f34a0[_0x53c214(0xa6)](_0x101a81+0x8,_0x101a81+0x8+_0x9de112));_0x101a81+=_0x9de112+0xc;if(_0x2c6c07===_0x53c214(0xb1)){if(_0x9de112||_0x101a81!==_0x1f34a0['length'])throw Error(_0x53c214(0xbb));_0x521b30=!![];break;}}if(!_0x521b30||!_0x49cea1['length'])throw Error(_0x53c214(0xbe));if(inflateSync(Buffer['concat'](_0x49cea1),{'maxOutputLength':_0x47acf2+0x1})[_0x53c214(0xd5)]!==_0x47acf2)throw Error('Invalid\x20PNG\x20decoded\x20scanline\x20size.');const {PNG:_0x1a0b95}=require('pngjs'),_0xdb3d03=_0x1a0b95[_0x53c214(0xa2)][_0x53c214(0xd8)](_0x1f34a0,{'checkCRC':!![]});dimensions(_0xdb3d03[_0x53c214(0xbd)],_0xdb3d03['height']),_0x403075='image/png';}else{if(_0x1f34a0[0x0]===0xff&&_0x1f34a0[0x1]===0xd8){if(_0x1f34a0['at'](-0x2)!==0xff||_0x1f34a0['at'](-0x1)!==0xd9)throw Error('Truncated\x20JPEG.');const _0x48dd56=require('jpeg-js'),_0x5db14b=_0x48dd56[_0x53c214(0xd7)](_0x1f34a0,{'useTArray':!![],'formatAsRGBA':![],'tolerantDecoding':![],'maxResolutionInMP':0x28,'maxMemoryUsageInMB':0x100});dimensions(_0x5db14b[_0x53c214(0xbd)],_0x5db14b[_0x53c214(0xb3)]),_0x403075='image/jpeg';}else{if([_0x53c214(0xbc),_0x53c214(0xa3)][_0x53c214(0xba)](_0x1f34a0['toString'](_0x53c214(0xc5),0x0,0x6))){if(_0x1f34a0[_0x53c214(0xd5)]<0xe||_0x1f34a0['at'](-0x1)!==0x3b)throw Error(_0x53c214(0xd6));dimensions(_0x1f34a0[_0x53c214(0xc7)](0x6),_0x1f34a0[_0x53c214(0xc7)](0x8)),validateGif(_0x1f34a0);const {GifReader:_0x2fe4ff}=require(_0x53c214(0xc3)),_0x4d628d=new _0x2fe4ff(_0x1f34a0);dimensions(_0x4d628d[_0x53c214(0xbd)],_0x4d628d[_0x53c214(0xb3)]);const _0x3d9586=_0x4d628d[_0x53c214(0xb5)]();if(!_0x3d9586||_0x3d9586>0x2710||_0x3d9586*_0x4d628d[_0x53c214(0xbd)]*_0x4d628d[_0x53c214(0xb3)]>MAX_PIXELS)throw Error(_0x53c214(0xa5));const _0x865fb7=new Uint8Array(_0x4d628d[_0x53c214(0xbd)]*_0x4d628d[_0x53c214(0xb3)]*0x4);for(let _0x4c0e04=0x0;_0x4c0e04<_0x3d9586;_0x4c0e04++){const _0xa3b2a4=_0x4d628d['frameInfo'](_0x4c0e04);if(_0xa3b2a4['x']+_0xa3b2a4[_0x53c214(0xbd)]>_0x4d628d[_0x53c214(0xbd)]||_0xa3b2a4['y']+_0xa3b2a4['height']>_0x4d628d[_0x53c214(0xb3)])throw Error(_0x53c214(0xcf));_0x4d628d[_0x53c214(0xc1)](_0x4c0e04,_0x865fb7);}_0x403075='image/gif';}else throw Error('Unsupported\x20image\x20format;\x20only\x20PNG,\x20JPEG\x20and\x20GIF\x20are\x20supported.\x20WebP\x20is\x20not\x20supported.');}}}catch(_0x266100){throw Error(_0x53c214(0xda)+_0x266100[_0x53c214(0xcd)]);}return{'contentHash':createHash(_0x53c214(0xb9))[_0x53c214(0xaf)](_0x1f34a0)[_0x53c214(0xd2)](_0x53c214(0xa7)),'type':_0x403075,'size':_0x1f34a0['length'],'bytes':_0x1f34a0};}
@@ -1 +1 @@
1
- const a146_0x25aeb1=a146_0x39a6;(function(_0x11a90e,_0x443d41){const _0x397c27=a146_0x39a6,_0x247782=_0x11a90e();while(!![]){try{const _0x5983bc=parseInt(_0x397c27(0x14e))/0x1+parseInt(_0x397c27(0x119))/0x2+parseInt(_0x397c27(0xca))/0x3+-parseInt(_0x397c27(0x120))/0x4*(-parseInt(_0x397c27(0x13f))/0x5)+-parseInt(_0x397c27(0x110))/0x6+-parseInt(_0x397c27(0xd6))/0x7+-parseInt(_0x397c27(0xb8))/0x8*(parseInt(_0x397c27(0xc0))/0x9);if(_0x5983bc===_0x443d41)break;else _0x247782['push'](_0x247782['shift']());}catch(_0x2a6810){_0x247782['push'](_0x247782['shift']());}}}(a146_0x46ec,0xa792e));import a146_0x309951 from'node:path';function a146_0x46ec(){const _0x3e53a8=['metadataType','Missing\x20rich\x20image\x20relationship.','futureMetadata','XLRICHVALUE','http://www.wps.cn/officeDocument/2017/etCustomData','blipFill','add','_localImage','Relationships','http://purl.oclc.org/ooxml/drawingml/spreadsheetDrawing','posix','_rels','children','anchor\x20end','Missing\x20value\x20metadata\x20block.','slice','anchor\x20start','dirname','absoluteAnchor','twoCellAnchor','Unsupported\x20worksheet\x20namespace.','Image\x20coordinate\x20exceeds\x20worksheet\x20bounds.','r:link','anchor\x20column','Unsupported\x20workbook\x20namespace.','startsWith','http://schemas.microsoft.com/office/2022/10/relationships/richValueRel','get','Rich\x20IMAGE\x20cell\x20contains\x20unexpected\x20scalar\x20or\x20mixed\x20content.','Unsupported\x20WPS\x20cell\x20image\x20namespace.','toString','ext','replace','basename','Image\x20XML\x20node\x20budget\x20exceeded.','/xl/cellimages.xml','filter','workbook','exec','message','Unsupported\x20rich\x20value\x20namespace.','local','Missing\x20XLSX\x20part:\x20','rich\x20structure\x20index','anchor\x20end\x20offset','image\x20formula','round','MAX_SAFE_INTEGER','rowOff','sheetMetadata','test','Invalid\x20','metadata\x20type\x20index','r:embed','rel','image','2755524NYflEa','map','xl/','extLst','{3e2802c4-a4d2-4d8b-9148-e3be6c30e623}','http://schemas.microsoft.com/office/spreadsheetml/2022/richvaluerel','reduce','rich\x20image\x20relationship\x20index','http://schemas.openxmlformats.org/officeDocument/2006/relationships','702842AeTpFJ','http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing','write','push','Relationship','attributes','External\x20image\x20relationship\x20is\x20not\x20supported:\x20','232TywSqZ','join','utf8','values','hidden','flatMap','pop','isFinite','Mixed\x20formula\x20and\x20rich\x20image\x20metadata\x20is\x20unsupported.','sheets','Unsupported\x20relationship\x20namespace\x20in\x20','pic','richValueRels','rdRichValueStructure','Missing\x20local\x20image\x20identifier\x20value.','../','value','normalize','Shared\x20image\x20formulas\x20are\x20not\x20supported.','set','shared','closetag','toLowerCase','anchor\x20row','rich\x20value\x20index','type','opentag','image\x20extent','cellImage','rdRichValue','Ambiguous\x20XML\x20attribute.','36655OjhVWK','col','drawing','nvPicPr','Missing\x20rich\x20value.','rvData','rvb','\x20relationship\x20in\x20','WPS\x20image\x20name','length','Image\x20anchor\x20spans\x20multiple\x20business\x20rows.','.rels','sheetData','image\x20height','xl/workbook.xml','1088313fmCBiF','from','http://schemas.microsoft.com/office/2017/06/relationships/','Workbook\x20exceeds\x2010000\x20image\x20occurrences.','metadataTypes','Absolute\x20image\x20anchor\x20cannot\x20be\x20mapped\x20in\x20worksheet\x20','anchor\x20start\x20offset','attrs','defaultRowHeight','Missing\x20or\x20ambiguous\x20','Missing\x20or\x20ambiguous\x20local\x20image\x20identifier.','XML\x20DTD/entities\x20are\x20not\x20supported.','error','Invalid\x20or\x20duplicate\x20relationship\x20in\x20','Unsupported\x20rich\x20image\x20relation\x20namespace.','oneCellAnchor','rvStructures','name','r:id','cNvPr','row','http://purl.oclc.org/ooxml/drawingml/main','http://purl.oclc.org/ooxml/spreadsheetml/main','metadata\x20types','richValueRel','doctype','435504RnqIEK','future\x20metadata\x20index','http://purl.oclc.org/ooxml/officeDocument/relationships','External\x20WPS\x20image\x20links\x20are\x20not\x20supported.','Unsupported\x20rich\x20structure\x20namespace.','blip','Missing\x20WPS\x20image\x20ID:\x20','Missing\x20future\x20metadata\x20block.','54JOpgMs','hidden\x20image\x20row','cellImages','http://schemas.openxmlformats.org/spreadsheetml/2006/main','Invalid\x20image\x20start\x20offset\x20at\x20row\x20','wsDr','worksheet','has','valueMetadata','sheetFormatPr','2364399gAIxBz','text','Invalid\x20or\x20duplicate\x20WPS\x20image\x20ID.','Unsupported\x20mapped\x20rich\x20value\x20structure.','Internal','uri','Invalid\x20relationship\x20target:\x20','Unsupported\x20drawing\x20image.','includes','External\x20image\x20links\x20are\x20not\x20supported.','Unsupported\x20mapped\x20cell\x20metadata\x20type.','Image\x20XML\x20event\x20budget\x20exceeded.','8265607yKCFyM','metadata'];a146_0x46ec=function(){return _0x3e53a8;};return a146_0x46ec();}import{SaxesParser}from'saxes';const SHEET=[a146_0x25aeb1(0xc3),a146_0x25aeb1(0x164)],DRAWING=[a146_0x25aeb1(0x11a),a146_0x25aeb1(0xe1)],DRAWING_MAIN=['http://schemas.openxmlformats.org/drawingml/2006/main',a146_0x25aeb1(0x163)],OFFICE_RELS=[a146_0x25aeb1(0x118),a146_0x25aeb1(0xba)],PACKAGE=['http://schemas.openxmlformats.org/package/2006/relationships'],RICH=['http://schemas.microsoft.com/office/spreadsheetml/2017/richdata'],RICH_RELS=[a146_0x25aeb1(0x115)],WPS=[a146_0x25aeb1(0xdc)],DEFAULT_NS=Object['fromEntries']([...['workbook',a146_0x25aeb1(0x129),'sheet','worksheet','sheetData',a146_0x25aeb1(0x162),'c','f','v',a146_0x25aeb1(0xc9),'drawing',a146_0x25aeb1(0xd7),a146_0x25aeb1(0x152),a146_0x25aeb1(0xd8),a146_0x25aeb1(0xda),'valueMetadata','bk','rc',a146_0x25aeb1(0x113)]['map'](_0x29cf2e=>[_0x29cf2e,SHEET]),...[a146_0x25aeb1(0xc5),'oneCellAnchor',a146_0x25aeb1(0xeb),a146_0x25aeb1(0xea),a146_0x25aeb1(0x14f),'to',a146_0x25aeb1(0x140),'colOff','rowOff',a146_0x25aeb1(0xf7),a146_0x25aeb1(0x12b),'nvPicPr',a146_0x25aeb1(0x161),a146_0x25aeb1(0xdd)][a146_0x25aeb1(0x111)](_0x44f1f5=>[_0x44f1f5,DRAWING]),...[a146_0x25aeb1(0x145),a146_0x25aeb1(0x144),'rv','rvStructures','s','k'][a146_0x25aeb1(0x111)](_0x3d9e6d=>[_0x3d9e6d,RICH]),['blip',DRAWING_MAIN],[a146_0x25aeb1(0x12c),RICH_RELS],[a146_0x25aeb1(0x10e),RICH_RELS],[a146_0x25aeb1(0xe0),PACKAGE],[a146_0x25aeb1(0x11d),PACKAGE],[a146_0x25aeb1(0xc2),WPS],[a146_0x25aeb1(0x13c),WPS]]),matches=(_0x41139e,_0x6aabb8,_0x2ca48a=DEFAULT_NS[_0x6aabb8]??[])=>_0x41139e[a146_0x25aeb1(0x15f)]===_0x6aabb8&&_0x2ca48a[a146_0x25aeb1(0xd2)](_0x41139e[a146_0x25aeb1(0xcf)]),children=(_0x56f9a1,_0x4149b6,_0x453577=DEFAULT_NS[_0x4149b6])=>_0x56f9a1[a146_0x25aeb1(0xe4)]['filter'](_0x17801f=>matches(_0x17801f,_0x4149b6,_0x453577)),chain=(_0x30b730,..._0xed6da7)=>_0xed6da7[a146_0x25aeb1(0x116)]((_0x901e6f,_0x77f06a)=>_0x901e6f[a146_0x25aeb1(0x125)](_0x4cdaae=>children(_0x4cdaae,_0x77f06a)),[_0x30b730]),relationshipTypes=_0x5b0587=>{const _0x4e2687=a146_0x25aeb1;if([_0x4e2687(0x13d),_0x4e2687(0x12d)]['includes'](_0x5b0587))return[_0x4e2687(0x150)+_0x5b0587];if(_0x5b0587==='richValueRel')return[_0x4e2687(0xf2)];if(_0x5b0587===_0x4e2687(0x13c)||_0x5b0587===_0x4e2687(0xc2))return['http://www.wps.cn/officeDocument/2017/relationships/'+_0x5b0587];return OFFICE_RELS[_0x4e2687(0x111)](_0x18933d=>_0x18933d+'/'+_0x5b0587);};function one(_0x359cb6,_0x4199cf){const _0xa818f1=a146_0x25aeb1;if(_0x359cb6[_0xa818f1(0x148)]!==0x1)throw Error(_0xa818f1(0x157)+_0x4199cf+'.');return _0x359cb6[0x0];}function a146_0x39a6(_0x4dba28,_0x4166ee){_0x4dba28=_0x4dba28-0xb8;const _0x46ecb4=a146_0x46ec();let _0x39a66a=_0x46ecb4[_0x4dba28];return _0x39a66a;}function integer(_0xef373b,_0x587111,_0x3b96d8=0x186a0){const _0x263d77=a146_0x25aeb1;if(!_0xef373b||!/^\d+$/[_0x263d77(0x10a)](_0xef373b)||!Number['isSafeInteger'](Number(_0xef373b))||Number(_0xef373b)>_0x3b96d8)throw Error(_0x263d77(0x10b)+_0x587111+'.');return Number(_0xef373b);}export function resolveWorksheetImages(_0x3ab62d,_0x319bb2,_0x37f464){const _0x3f0aea=a146_0x25aeb1;let _0x1208e2=0x0,_0x585edd=0x0,_0x1fb23a=0x0;const _0x1e7206=new Map(),_0x5dc382=_0x3e28e7=>{const _0x475a62=a146_0x39a6;if(_0x1e7206[_0x475a62(0xc7)](_0x3e28e7))return _0x1e7206[_0x475a62(0xf3)](_0x3e28e7);const _0x2d4356=_0x3ab62d['get'](_0x3e28e7);if(!_0x2d4356)throw Error(_0x475a62(0x102)+_0x3e28e7+'.');const _0x239183={'name':'','uri':'','attrs':{},'children':[],'text':''},_0x32aa21=[_0x239183],_0x36f383=new SaxesParser({'xmlns':!![]}),_0x1d456a=()=>{const _0x4eeff7=_0x475a62;if(++_0x585edd>0x1e8480)throw Error(_0x4eeff7(0xd5));};_0x36f383['on'](_0x475a62(0x167),()=>{const _0xc9d90b=_0x475a62;throw Error(_0xc9d90b(0x159));}),_0x36f383['on'](_0x475a62(0x13a),_0x494e98=>{const _0x22cabb=_0x475a62;_0x1d456a();if(++_0x1208e2>0x7a120||_0x32aa21['length']>0x40)throw Error(_0x22cabb(0xfa));const _0x2c14c0={};for(const _0x1b04d3 of Object[_0x22cabb(0x123)](_0x494e98[_0x22cabb(0x11e)])){const _0x448351=OFFICE_RELS[_0x22cabb(0xd2)](_0x1b04d3[_0x22cabb(0xcf)])?'r:'+_0x1b04d3[_0x22cabb(0x101)]:_0x1b04d3[_0x22cabb(0xcf)]?'{'+_0x1b04d3[_0x22cabb(0xcf)]+'}'+_0x1b04d3[_0x22cabb(0x101)]:_0x1b04d3[_0x22cabb(0x101)];if(_0x448351 in _0x2c14c0)throw Error(_0x22cabb(0x13e));_0x2c14c0[_0x448351]=_0x1b04d3[_0x22cabb(0x130)];}const _0x4a303a={'name':_0x494e98[_0x22cabb(0x101)],'uri':_0x494e98[_0x22cabb(0xcf)],'attrs':_0x2c14c0,'children':[],'text':''};_0x32aa21['at'](-0x1)[_0x22cabb(0xe4)][_0x22cabb(0x11c)](_0x4a303a),_0x32aa21[_0x22cabb(0x11c)](_0x4a303a);}),_0x36f383['on'](_0x475a62(0xcb),_0x3fba02=>{const _0x4655cb=_0x475a62;_0x1d456a();const _0xf52ca2=_0x32aa21['at'](-0x1);_0xf52ca2[_0x4655cb(0xcb)]+=_0x3fba02;if(_0xf52ca2[_0x4655cb(0xcb)][_0x4655cb(0x148)]>0x10000)throw Error('Image\x20XML\x20text\x20exceeds\x2064\x20KB.');}),_0x36f383['on'](_0x475a62(0x135),()=>{const _0x5ad48a=_0x475a62;_0x1d456a(),_0x32aa21[_0x5ad48a(0x126)]();}),_0x36f383['on'](_0x475a62(0x15a),_0x205b97=>{throw _0x205b97;}),_0x36f383[_0x475a62(0x11b)](_0x2d4356[_0x475a62(0xf6)](_0x475a62(0x122)))['close']();const _0x2a2418=one(_0x239183['children'],_0x3e28e7);return _0x1e7206[_0x475a62(0x133)](_0x3e28e7,_0x2a2418),_0x2a2418;},_0x49cf41=new Map(),_0x4e1e10=_0x373c6b=>{const _0xfafd4f=a146_0x39a6;if(_0x49cf41[_0xfafd4f(0xc7)](_0x373c6b))return _0x49cf41[_0xfafd4f(0xf3)](_0x373c6b);const _0x38c773=a146_0x309951[_0xfafd4f(0xe2)]['join'](a146_0x309951[_0xfafd4f(0xe2)][_0xfafd4f(0xe9)](_0x373c6b),_0xfafd4f(0xe3),a146_0x309951['posix'][_0xfafd4f(0xf9)](_0x373c6b)+_0xfafd4f(0x14a));if(!_0x3ab62d[_0xfafd4f(0xc7)](_0x38c773))return[];const _0x10f0b3=new Set(),_0x310323=_0x5dc382(_0x38c773);if(!matches(_0x310323,_0xfafd4f(0xe0)))throw Error(_0xfafd4f(0x12a)+_0x38c773+'.');const _0x59a4e5=children(_0x310323,_0xfafd4f(0x11d))[_0xfafd4f(0x111)](_0x3a61d1=>{const _0x4d1431=_0xfafd4f,{Id:_0x1d295d,Type:_0x354cfa,Target:_0xd66461,TargetMode:_0x56578b}=_0x3a61d1[_0x4d1431(0x155)];if(!_0x1d295d||_0x10f0b3['has'](_0x1d295d)||!_0x354cfa)throw Error(_0x4d1431(0x15b)+_0x38c773+'.');return _0x10f0b3[_0x4d1431(0xde)](_0x1d295d),{'id':_0x1d295d,'type':_0x354cfa,'target':_0xd66461??'','mode':_0x56578b};});return _0x49cf41['set'](_0x373c6b,_0x59a4e5),_0x59a4e5;},_0x1b01a4=(_0x205e7f,_0x4402ba)=>{const _0x1fff29=a146_0x39a6,{target:_0x915ede,mode:_0x176fb5}=_0x4402ba;if(_0x176fb5&&_0x176fb5!==_0x1fff29(0xce))throw Error(_0x1fff29(0x11f)+_0x205e7f+'.');if(!_0x915ede||_0x915ede[_0x1fff29(0xd2)]('\x5c')||/[?#%\x00-\x20]/[_0x1fff29(0x10a)](_0x915ede)||/^[a-z][a-z0-9+.-]*:/i[_0x1fff29(0x10a)](_0x915ede)||_0x915ede[_0x1fff29(0xf1)]('//'))throw Error(_0x1fff29(0xd0)+_0x205e7f+'.');const _0x529f6b=_0x915ede['startsWith']('/')?_0x915ede[_0x1fff29(0xe7)](0x1):a146_0x309951[_0x1fff29(0xe2)][_0x1fff29(0x131)](a146_0x309951[_0x1fff29(0xe2)][_0x1fff29(0x121)](a146_0x309951['posix'][_0x1fff29(0xe9)](_0x205e7f),_0x915ede));if(_0x529f6b[_0x1fff29(0xf1)](_0x1fff29(0x12f))||_0x529f6b==='..'||!_0x529f6b[_0x1fff29(0xf1)](_0x1fff29(0x112)))throw Error('Relationship\x20target\x20escapes\x20workbook:\x20'+_0x205e7f+'.');return _0x529f6b;},_0x515e30=(_0x11ca29,_0x5363a9,_0x38e5a3)=>{const _0xc8b318=a146_0x39a6,_0x584489=_0x4e1e10(_0x11ca29)[_0xc8b318(0xfc)](_0x2cbc5d=>_0x2cbc5d['id']===_0x5363a9&&relationshipTypes(_0x38e5a3)['includes'](_0x2cbc5d[_0xc8b318(0x139)]));if(_0x584489[_0xc8b318(0x148)]!==0x1)throw Error('Missing\x20or\x20ambiguous\x20'+_0x38e5a3+_0xc8b318(0x146)+_0x11ca29+'.');return _0x1b01a4(_0x11ca29,_0x584489[0x0]);},_0xa15584=(_0xc4bb1,_0x44644d)=>{const _0x202a72=a146_0x39a6,_0x13c3a3=_0x4e1e10(_0xc4bb1)[_0x202a72(0xfc)](_0x557172=>relationshipTypes(_0x44644d)['includes'](_0x557172[_0x202a72(0x139)]));if(_0x13c3a3[_0x202a72(0x148)]!==0x1)throw Error(_0x202a72(0x157)+_0x44644d+'\x20relationship\x20in\x20'+_0xc4bb1+'.');return _0x1b01a4(_0xc4bb1,_0x13c3a3[0x0]);},_0x269791=_0x3f0aea(0x14d),_0x5c48fb=_0x5dc382(_0x269791);if(!matches(_0x5c48fb,_0x3f0aea(0xfd)))throw Error(_0x3f0aea(0xf0));const _0x17242c=one(chain(_0x5c48fb,'sheets','sheet')[_0x3f0aea(0xfc)](_0x259b42=>_0x259b42[_0x3f0aea(0x155)][_0x3f0aea(0x15f)]===_0x319bb2),'worksheet'),_0xb2d65a=_0x515e30(_0x269791,_0x17242c[_0x3f0aea(0x155)][_0x3f0aea(0x160)],'worksheet'),_0x230141=_0x5dc382(_0xb2d65a);if(!matches(_0x230141,_0x3f0aea(0xc6)))throw Error(_0x3f0aea(0xec));const _0x12b36f=chain(_0x230141,_0x3f0aea(0x14b),_0x3f0aea(0x162)),_0x152655=new Map(),_0x145f6f=new Set(_0x12b36f[_0x3f0aea(0xfc)](_0x20bc11=>_0x20bc11[_0x3f0aea(0x155)][_0x3f0aea(0x124)]==='1'||_0x20bc11[_0x3f0aea(0x155)][_0x3f0aea(0x124)]==='true')[_0x3f0aea(0x111)](_0x386804=>integer(_0x386804[_0x3f0aea(0x155)]['r'],_0x3f0aea(0xc1)))),_0x8bdcd=_0xdc79b4=>{const _0x13dcd7=_0x3f0aea,_0x1a5cfa=_0xdc79b4===undefined?0xf:Number(_0xdc79b4);if(!Number[_0x13dcd7(0x127)](_0x1a5cfa)||_0x1a5cfa<=0x0||_0x1a5cfa>409.5)throw Error('Invalid\x20worksheet\x20row\x20height\x20for\x20image\x20anchor.');return Math[_0x13dcd7(0x106)](_0x1a5cfa*0x319c);},_0x4c05d1=_0x8bdcd(children(_0x230141,_0x3f0aea(0xc9))[0x0]?.[_0x3f0aea(0x155)][_0x3f0aea(0x156)]);for(const _0x1cf6f9 of _0x12b36f)if(_0x1cf6f9[_0x3f0aea(0x155)]['ht']!==undefined)_0x152655[_0x3f0aea(0x133)](integer(_0x1cf6f9[_0x3f0aea(0x155)]['r'],'image\x20row\x20height\x20coordinate'),_0x8bdcd(_0x1cf6f9['attrs']['ht']));const _0x29068d=[],_0x3fbb56=_0x20b498=>{const _0x341f56=_0x3f0aea;if(!_0x37f464[_0x341f56(0xc7)](_0x20b498[_0x341f56(0x140)]))return;if(++_0x1fb23a>0x2710)throw Error(_0x341f56(0x151));_0x29068d[_0x341f56(0x11c)](_0x145f6f[_0x341f56(0xc7)](_0x20b498[_0x341f56(0x162)])?{..._0x20b498,'hiddenRow':!![]}:_0x20b498);},_0x3f3579=_0x5e2a8d=>({'row':integer(one(children(_0x5e2a8d,_0x3f0aea(0x162),DRAWING),'anchor\x20row')[_0x3f0aea(0xcb)],_0x3f0aea(0x137),0x1869f)+0x1,'col':integer(one(children(_0x5e2a8d,_0x3f0aea(0x140)),'anchor\x20column')[_0x3f0aea(0xcb)],_0x3f0aea(0xef),0xff)+0x1});for(const _0x1d5697 of children(_0x230141,_0x3f0aea(0x141))){const _0x3de3d5=_0x515e30(_0xb2d65a,_0x1d5697[_0x3f0aea(0x155)]['r:id'],_0x3f0aea(0x141)),_0x3cb0a0=_0x5dc382(_0x3de3d5);if(!matches(_0x3cb0a0,_0x3f0aea(0xc5)))throw Error('Unsupported\x20drawing\x20namespace.');for(const _0x34f26a of _0x3cb0a0[_0x3f0aea(0xe4)]){if(!['oneCellAnchor',_0x3f0aea(0xeb),_0x3f0aea(0xea)]['some'](_0x2cea12=>matches(_0x34f26a,_0x2cea12)))continue;if(_0x34f26a['name']===_0x3f0aea(0xea))throw Error(_0x3f0aea(0x153)+_0x319bb2+'.');const _0x28b248=_0x3f3579(one(children(_0x34f26a,_0x3f0aea(0x14f)),'anchor\x20start'));if(!_0x37f464[_0x3f0aea(0xc7)](_0x28b248[_0x3f0aea(0x140)]))continue;let _0x8909fe;const _0xdf1170=one(children(_0x34f26a,_0x3f0aea(0x14f)),_0x3f0aea(0xe8)),_0x432522=integer(one(children(_0xdf1170,_0x3f0aea(0x108)),'anchor\x20start\x20offset')[_0x3f0aea(0xcb)],_0x3f0aea(0x154),Number[_0x3f0aea(0x107)]),_0x3a9888=_0x152655[_0x3f0aea(0xf3)](_0x28b248[_0x3f0aea(0x162)])??_0x4c05d1;if(_0x432522>=_0x3a9888)throw Error(_0x3f0aea(0xc4)+_0x28b248['row']+'.');if(_0x34f26a['name']===_0x3f0aea(0x15d)){const _0x3584d5=one(children(_0x34f26a,'ext'),_0x3f0aea(0x13b)),_0x53be63=integer(_0x3584d5['attrs']['cy'],_0x3f0aea(0x14c),Number[_0x3f0aea(0x107)]);if(!_0x53be63||_0x432522+_0x53be63>_0x3a9888)_0x8909fe=_0x3f0aea(0x149);}if(_0x34f26a[_0x3f0aea(0x15f)]===_0x3f0aea(0xeb)){const _0x190a1a=one(children(_0x34f26a,'to'),_0x3f0aea(0xe5)),_0x1565a1=_0x3f3579(_0x190a1a),_0x54f70e=integer(one(children(_0x190a1a,_0x3f0aea(0x108)),_0x3f0aea(0x104))[_0x3f0aea(0xcb)],'anchor\x20end\x20offset',Number[_0x3f0aea(0x107)]),_0x5db567=_0x152655[_0x3f0aea(0xf3)](_0x1565a1[_0x3f0aea(0x162)])??_0x4c05d1;if(_0x54f70e>_0x5db567||_0x1565a1[_0x3f0aea(0x162)]===_0x28b248['row']&&_0x54f70e<=_0x432522)_0x8909fe='Image\x20anchor\x20has\x20invalid\x20or\x20reversed\x20row\x20offsets.';if(_0x1565a1[_0x3f0aea(0x162)]<_0x28b248['row']||_0x1565a1[_0x3f0aea(0x162)]>_0x28b248['row']+0x1||_0x1565a1[_0x3f0aea(0x162)]===_0x28b248['row']+0x1&&_0x54f70e!==0x0)_0x8909fe=_0x3f0aea(0x149);}const _0x5362e8=chain(_0x34f26a,_0x3f0aea(0x12b),'blipFill',_0x3f0aea(0xbd));for(const _0x1a5e4e of _0x5362e8){if(_0x1a5e4e['attrs'][_0x3f0aea(0xee)])throw Error(_0x3f0aea(0xd3));_0x3fbb56({..._0x28b248,'media':[_0x515e30(_0x3de3d5,_0x1a5e4e['attrs'][_0x3f0aea(0x10d)],_0x3f0aea(0x10f))],..._0x8909fe?{'error':_0x8909fe}:{}});}if(!_0x5362e8[_0x3f0aea(0x148)])_0x3fbb56({..._0x28b248,'media':[],'error':_0x3f0aea(0xd1)});}}const _0x3ae3fc=_0x165c5b=>{const _0x12a8bd=_0x3f0aea,_0x226611=_0x5dc382(_0xa15584(_0x269791,_0x12a8bd(0x109)));if(!matches(_0x226611,'metadata'))throw Error('Unsupported\x20metadata\x20namespace.');const _0x2c4772=integer(_0x165c5b['attrs']['vm'],'value\x20metadata\x20index');if(!_0x2c4772)throw Error('Value\x20metadata\x20index\x20must\x20be\x20one-based.');const _0x23b0fe=children(one(children(_0x226611,_0x12a8bd(0xc8)),_0x12a8bd(0xc8)),'bk')[_0x2c4772-0x1];if(!_0x23b0fe)throw Error(_0x12a8bd(0xe6));const _0x4583cc=one(children(_0x23b0fe,'rc'),'rich\x20metadata\x20record'),_0x183de1=integer(_0x4583cc[_0x12a8bd(0x155)]['t'],_0x12a8bd(0x10c)),_0x5538dc=children(one(children(_0x226611,'metadataTypes'),_0x12a8bd(0x165)),_0x12a8bd(0xd8))[_0x183de1-0x1];if(!_0x183de1||_0x5538dc?.['attrs'][_0x12a8bd(0x15f)]!==_0x12a8bd(0xdb))throw Error(_0x12a8bd(0xd4));const _0x59c072=one(children(_0x226611,_0x12a8bd(0xda))[_0x12a8bd(0xfc)](_0x40367c=>_0x40367c[_0x12a8bd(0x155)][_0x12a8bd(0x15f)]==='XLRICHVALUE'),'rich\x20future\x20metadata'),_0x2fc66a=children(_0x59c072,'bk')[integer(_0x4583cc[_0x12a8bd(0x155)]['v'],_0x12a8bd(0xb9))];if(!_0x2fc66a)throw Error(_0x12a8bd(0xbf));const _0x17d392=chain(_0x2fc66a,_0x12a8bd(0x113))['flatMap'](_0x39fb2d=>children(_0x39fb2d,_0x12a8bd(0xf7),SHEET))[_0x12a8bd(0xfc)](_0x29f830=>_0x29f830[_0x12a8bd(0x155)][_0x12a8bd(0xcf)]?.[_0x12a8bd(0x136)]()===_0x12a8bd(0x114)),_0x1b81ce=integer(one(_0x17d392[_0x12a8bd(0x125)](_0x4f7e5b=>children(_0x4f7e5b,_0x12a8bd(0x145))),'rich\x20value\x20binding')[_0x12a8bd(0x155)]['i'],_0x12a8bd(0x138)),_0x12733c=_0x5dc382(_0xa15584(_0x269791,_0x12a8bd(0x13d)));if(!matches(_0x12733c,_0x12a8bd(0x144)))throw Error(_0x12a8bd(0x100));const _0x516d41=children(_0x12733c,'rv')[_0x1b81ce];if(!_0x516d41)throw Error(_0x12a8bd(0x143));const _0x7c1e99=_0x5dc382(_0xa15584(_0x269791,_0x12a8bd(0x12d)));if(!matches(_0x7c1e99,_0x12a8bd(0x15e)))throw Error(_0x12a8bd(0xbc));const _0x53454f=children(_0x7c1e99,'s')[integer(_0x516d41[_0x12a8bd(0x155)]['s'],_0x12a8bd(0x103))];if(!_0x53454f||_0x53454f[_0x12a8bd(0x155)]['t']!==_0x12a8bd(0xdf))throw Error(_0x12a8bd(0xcd));const _0x3ab281=children(_0x53454f,'k'),_0x3d11a8=_0x3ab281[_0x12a8bd(0x111)]((_0x31a9ea,_0x32da8e)=>_0x31a9ea['attrs']['n']==='_rvRel:LocalImageIdentifier'?_0x32da8e:-0x1)[_0x12a8bd(0xfc)](_0x4f3449=>_0x4f3449>=0x0);if(_0x3d11a8[_0x12a8bd(0x148)]!==0x1)throw Error(_0x12a8bd(0x158));const _0x48747f=children(_0x516d41,'v',RICH)[_0x3d11a8[0x0]];if(!_0x48747f)throw Error(_0x12a8bd(0x12e));const _0x3b81ce=_0xa15584(_0x269791,_0x12a8bd(0x166)),_0x7d4379=_0x5dc382(_0x3b81ce);if(!matches(_0x7d4379,_0x12a8bd(0x12c)))throw Error(_0x12a8bd(0x15c));const _0x4a1769=children(_0x7d4379,_0x12a8bd(0x10e))[integer(_0x48747f[_0x12a8bd(0xcb)],_0x12a8bd(0x117))];if(!_0x4a1769)throw Error(_0x12a8bd(0xd9));return _0x515e30(_0x3b81ce,_0x4a1769[_0x12a8bd(0x155)][_0x12a8bd(0x160)],_0x12a8bd(0x10f));};let _0x2ca095;const _0x5924a4=_0x20ab03=>{const _0x517ed8=_0x3f0aea;if(!_0x2ca095){_0x2ca095=new Map();const _0x3f8a39=_0x4e1e10(_0x269791)[_0x517ed8(0xfc)](_0x506e60=>[...relationshipTypes(_0x517ed8(0x13c)),...relationshipTypes(_0x517ed8(0xc2))][_0x517ed8(0xd2)](_0x506e60[_0x517ed8(0x139)]));if(!_0x3f8a39['length']&&_0x3ab62d[_0x517ed8(0xc7)]('xl/cellimages.xml'))_0x3f8a39[_0x517ed8(0x11c)]({'id':'','type':'','target':_0x517ed8(0xfb)});if(_0x3f8a39[_0x517ed8(0x148)]!==0x1)throw Error('Missing\x20or\x20ambiguous\x20WPS\x20cell\x20image\x20part.');const _0x2f2c31=_0x1b01a4(_0x269791,_0x3f8a39[0x0]),_0x5c4ddb=_0x5dc382(_0x2f2c31);if(!matches(_0x5c4ddb,'cellImages'))throw Error(_0x517ed8(0xf5));for(const _0x5a67a1 of children(_0x5c4ddb,_0x517ed8(0x13c))){const _0x231ff2=one(chain(_0x5a67a1,_0x517ed8(0x12b),_0x517ed8(0x142),_0x517ed8(0x161)),_0x517ed8(0x147))[_0x517ed8(0x155)][_0x517ed8(0x15f)];if(!_0x231ff2||_0x2ca095[_0x517ed8(0xc7)](_0x231ff2))throw Error(_0x517ed8(0xcc));const _0x110d56=one(chain(_0x5a67a1,_0x517ed8(0x12b),'blipFill','blip'),'WPS\x20image\x20blip');if(_0x110d56[_0x517ed8(0x155)][_0x517ed8(0xee)])throw Error(_0x517ed8(0xbb));_0x2ca095[_0x517ed8(0x133)](_0x231ff2,_0x515e30(_0x2f2c31,_0x110d56[_0x517ed8(0x155)][_0x517ed8(0x10d)],_0x517ed8(0x10f)));}}const _0x526a01=_0x2ca095['get'](_0x20ab03);if(!_0x526a01)throw Error(_0x517ed8(0xbe)+_0x20ab03+'.');return _0x526a01;},_0x47f335=new Set();for(const _0x4f65c5 of _0x12b36f[_0x3f0aea(0x125)](_0x9cb671=>children(_0x9cb671,'c'))){const _0x123477=/^([A-Z]+)([1-9]\d*)$/[_0x3f0aea(0xfe)](_0x4f65c5[_0x3f0aea(0x155)]['r']??'');if(!_0x123477)continue;let _0x5838d3=0x0;for(const _0x54b8d4 of _0x123477[0x1])_0x5838d3=_0x5838d3*0x1a+_0x54b8d4['charCodeAt'](0x0)-0x40;if(!_0x37f464['has'](_0x5838d3))continue;const _0x5ece83=integer(_0x123477[0x2],'image\x20cell\x20row');if(_0x47f335[_0x3f0aea(0xc7)](_0x4f65c5[_0x3f0aea(0x155)]['r']))throw Error('Duplicate\x20mapped\x20image\x20cell.');_0x47f335['add'](_0x4f65c5[_0x3f0aea(0x155)]['r']);const _0x59b3d3=children(_0x4f65c5,'f');if(!_0x4f65c5[_0x3f0aea(0x155)]['vm']&&!_0x59b3d3[_0x3f0aea(0x148)])continue;try{if(_0x5ece83<0x1||_0x5838d3>0x100)throw Error(_0x3f0aea(0xed));let _0x376da4;if(_0x4f65c5['attrs']['vm']){if(_0x59b3d3[_0x3f0aea(0x148)])throw Error(_0x3f0aea(0x128));if(_0x4f65c5[_0x3f0aea(0x155)]['t']!=='e'||children(_0x4f65c5,'v')[_0x3f0aea(0x148)]!==0x1||children(_0x4f65c5,'v')[0x0][_0x3f0aea(0xcb)]!=='#VALUE!')throw Error(_0x3f0aea(0xf4));_0x376da4=_0x3ae3fc(_0x4f65c5);}else{const _0x19e883=one(_0x59b3d3,_0x3f0aea(0x105));if(_0x19e883['attrs']['t']===_0x3f0aea(0x134)||_0x19e883[_0x3f0aea(0x155)]['si'])throw Error(_0x3f0aea(0x132));const _0x6da5cb=/^\s*=?\s*@?(?:_xlfn\.)?DISPIMG\(\s*"((?:[^"]|"")+)"\s*(?:,\s*[01]\s*)?\)\s*$/i[_0x3f0aea(0xfe)](_0x19e883['text']);if(!_0x6da5cb)throw Error('Unsupported\x20image\x20formula;\x20expected\x20a\x20standalone\x20DISPIMG\x20literal.');_0x376da4=_0x5924a4(_0x6da5cb[0x1][_0x3f0aea(0xf8)](/""/g,'\x22'));}_0x3fbb56({'row':_0x5ece83,'col':_0x5838d3,'media':[_0x376da4],'nativeCell':!![]});}catch(_0x168f25){_0x3fbb56({'row':_0x5ece83,'col':_0x5838d3,'media':[],'nativeCell':!![],'error':_0x168f25[_0x3f0aea(0xff)]});}}return _0x29068d;}
1
+ function a146_0x1d90(_0x41c292,_0x3e2d04){_0x41c292=_0x41c292-0x131;const _0x3dc910=a146_0x3dc9();let _0x1d907e=_0x3dc910[_0x41c292];return _0x1d907e;}const a146_0xd88b83=a146_0x1d90;(function(_0x1ed335,_0x5dacad){const _0x5e24c3=a146_0x1d90,_0x49de78=_0x1ed335();while(!![]){try{const _0x536a16=-parseInt(_0x5e24c3(0x14a))/0x1*(-parseInt(_0x5e24c3(0x1bc))/0x2)+parseInt(_0x5e24c3(0x177))/0x3+parseInt(_0x5e24c3(0x1a1))/0x4*(parseInt(_0x5e24c3(0x13b))/0x5)+parseInt(_0x5e24c3(0x139))/0x6+parseInt(_0x5e24c3(0x132))/0x7+-parseInt(_0x5e24c3(0x184))/0x8+-parseInt(_0x5e24c3(0x1c5))/0x9;if(_0x536a16===_0x5dacad)break;else _0x49de78['push'](_0x49de78['shift']());}catch(_0x528298){_0x49de78['push'](_0x49de78['shift']());}}}(a146_0x3dc9,0x91d2d));function a146_0x3dc9(){const _0x41b340=['Image\x20coordinate\x20exceeds\x20worksheet\x20bounds.','rvb','Value\x20metadata\x20index\x20must\x20be\x20one-based.','richValueRel','rowOff','uri','image\x20row\x20height\x20coordinate','rvStructures','metadataTypes','reduce','rdRichValue','metadata','Unsupported\x20workbook\x20namespace.','Mixed\x20formula\x20and\x20rich\x20image\x20metadata\x20is\x20unsupported.','worksheet','Ambiguous\x20XML\x20attribute.','Missing\x20rich\x20value.','149715tYuBdC','from','XML\x20DTD/entities\x20are\x20not\x20supported.','../','Unsupported\x20drawing\x20image.','XLRICHVALUE','Image\x20XML\x20node\x20budget\x20exceeded.','Missing\x20WPS\x20image\x20ID:\x20','pop','row','cellImage','drawing','type','2889328GkeWRc','hidden','rich\x20metadata\x20record','toString','cNvPr','add','WPS\x20image\x20name','includes','xl/','utf8','filter','charCodeAt','rich\x20value\x20binding','Unsupported\x20drawing\x20namespace.','colOff','join','blip','Relationship','doctype','Duplicate\x20mapped\x20image\x20cell.','opentag','External\x20WPS\x20image\x20links\x20are\x20not\x20supported.','ext','rdRichValueStructure','image','.rels','image\x20height','name','dirname','2236slxjWi','http://schemas.openxmlformats.org/drawingml/2006/main','local','image\x20extent','write','closetag','workbook','Image\x20anchor\x20spans\x20multiple\x20business\x20rows.','Missing\x20or\x20ambiguous\x20','Unsupported\x20image\x20formula;\x20expected\x20a\x20standalone\x20DISPIMG\x20literal.','value','col','Image\x20XML\x20event\x20budget\x20exceeded.','Relationship\x20target\x20escapes\x20workbook:\x20','Unsupported\x20mapped\x20cell\x20metadata\x20type.','http://purl.oclc.org/ooxml/drawingml/main','basename','rich\x20future\x20metadata','attrs','Missing\x20local\x20image\x20identifier\x20value.','length','http://schemas.openxmlformats.org/package/2006/relationships','startsWith','nvPicPr','\x20relationship\x20in\x20','http://purl.oclc.org/ooxml/officeDocument/relationships','metadataType','468268isTMoI','extLst','sheetData','shared','Unsupported\x20worksheet\x20namespace.','Unsupported\x20mapped\x20rich\x20value\x20structure.','message','image\x20formula','isSafeInteger','18079398UGicnh','values','sheets','richValueRels','http://purl.oclc.org/ooxml/spreadsheetml/main','anchor\x20column','isFinite','rel','some','xl/cellimages.xml','http://schemas.microsoft.com/office/2017/06/relationships/','round','replace','hidden\x20image\x20row','Unsupported\x20rich\x20structure\x20namespace.','Shared\x20image\x20formulas\x20are\x20not\x20supported.','text','MAX_SAFE_INTEGER','cellImages','http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing','http://schemas.microsoft.com/office/spreadsheetml/2017/richdata','posix','5902120SsMuOC','Absolute\x20image\x20anchor\x20cannot\x20be\x20mapped\x20in\x20worksheet\x20','anchor\x20end\x20offset','oneCellAnchor','wsDr','http://schemas.openxmlformats.org/spreadsheetml/2006/main','absoluteAnchor','6032970oUryuy','http://schemas.openxmlformats.org/officeDocument/2006/relationships','7465YlPFRO','{3e2802c4-a4d2-4d8b-9148-e3be6c30e623}','rich\x20structure\x20index','test','sheetFormatPr','r:embed','anchor\x20start','_localImage','toLowerCase','Missing\x20or\x20ambiguous\x20WPS\x20cell\x20image\x20part.','flatMap','Invalid\x20image\x20start\x20offset\x20at\x20row\x20','blipFill','Unsupported\x20relationship\x20namespace\x20in\x20','exec','1kQBGLx','Missing\x20or\x20ambiguous\x20local\x20image\x20identifier.','set','push','Unsupported\x20rich\x20image\x20relation\x20namespace.','#VALUE!','_rvRel:LocalImageIdentifier','futureMetadata','children','anchor\x20start\x20offset','pic','get','sheetMetadata','Missing\x20value\x20metadata\x20block.','has','slice','image\x20cell\x20row','Image\x20XML\x20text\x20exceeds\x2064\x20KB.','twoCellAnchor','map','Invalid\x20worksheet\x20row\x20height\x20for\x20image\x20anchor.','valueMetadata','rich\x20image\x20relationship\x20index','Relationships','r:link','External\x20image\x20relationship\x20is\x20not\x20supported:\x20','_rels','r:id'];a146_0x3dc9=function(){return _0x41b340;};return a146_0x3dc9();}import a146_0x4352ed from'node:path';import{SaxesParser}from'saxes';const SHEET=[a146_0xd88b83(0x137),a146_0xd88b83(0x1c9)],DRAWING=[a146_0xd88b83(0x1d8),'http://purl.oclc.org/ooxml/drawingml/spreadsheetDrawing'],DRAWING_MAIN=[a146_0xd88b83(0x1a2),a146_0xd88b83(0x1b0)],OFFICE_RELS=[a146_0xd88b83(0x13a),a146_0xd88b83(0x1ba)],PACKAGE=[a146_0xd88b83(0x1b6)],RICH=[a146_0xd88b83(0x1d9)],RICH_RELS=['http://schemas.microsoft.com/office/spreadsheetml/2022/richvaluerel'],WPS=['http://www.wps.cn/officeDocument/2017/etCustomData'],DEFAULT_NS=Object['fromEntries']([...[a146_0xd88b83(0x1a7),a146_0xd88b83(0x1c7),'sheet',a146_0xd88b83(0x174),a146_0xd88b83(0x1be),a146_0xd88b83(0x180),'c','f','v',a146_0xd88b83(0x13f),a146_0xd88b83(0x182),a146_0xd88b83(0x171),a146_0xd88b83(0x16e),a146_0xd88b83(0x1bb),a146_0xd88b83(0x151),a146_0xd88b83(0x15f),'bk','rc',a146_0xd88b83(0x1bd)][a146_0xd88b83(0x15d)](_0x1b34f9=>[_0x1b34f9,SHEET]),...[a146_0xd88b83(0x136),a146_0xd88b83(0x135),a146_0xd88b83(0x15c),a146_0xd88b83(0x138),a146_0xd88b83(0x178),'to',a146_0xd88b83(0x1ac),a146_0xd88b83(0x192),a146_0xd88b83(0x16a),a146_0xd88b83(0x19a),a146_0xd88b83(0x154),a146_0xd88b83(0x1b8),a146_0xd88b83(0x188),a146_0xd88b83(0x147)][a146_0xd88b83(0x15d)](_0x2ef195=>[_0x2ef195,DRAWING]),...[a146_0xd88b83(0x167),'rvData','rv','rvStructures','s','k'][a146_0xd88b83(0x15d)](_0x1c33fd=>[_0x1c33fd,RICH]),['blip',DRAWING_MAIN],[a146_0xd88b83(0x1c8),RICH_RELS],[a146_0xd88b83(0x1cc),RICH_RELS],[a146_0xd88b83(0x161),PACKAGE],[a146_0xd88b83(0x195),PACKAGE],[a146_0xd88b83(0x1d7),WPS],[a146_0xd88b83(0x181),WPS]]),matches=(_0x19fa38,_0x361cfb,_0x5b49c2=DEFAULT_NS[_0x361cfb]??[])=>_0x19fa38['name']===_0x361cfb&&_0x5b49c2['includes'](_0x19fa38[a146_0xd88b83(0x16b)]),children=(_0x45eca4,_0x33b310,_0x2d5c2f=DEFAULT_NS[_0x33b310])=>_0x45eca4['children'][a146_0xd88b83(0x18e)](_0x369e8b=>matches(_0x369e8b,_0x33b310,_0x2d5c2f)),chain=(_0x149231,..._0x3ad385)=>_0x3ad385[a146_0xd88b83(0x16f)]((_0x2afec9,_0x51c677)=>_0x2afec9[a146_0xd88b83(0x145)](_0x48ebfd=>children(_0x48ebfd,_0x51c677)),[_0x149231]),relationshipTypes=_0x24db82=>{const _0x2ede95=a146_0xd88b83;if(['rdRichValue',_0x2ede95(0x19b)][_0x2ede95(0x18b)](_0x24db82))return[_0x2ede95(0x1cf)+_0x24db82];if(_0x24db82===_0x2ede95(0x169))return['http://schemas.microsoft.com/office/2022/10/relationships/richValueRel'];if(_0x24db82===_0x2ede95(0x181)||_0x24db82===_0x2ede95(0x1d7))return['http://www.wps.cn/officeDocument/2017/relationships/'+_0x24db82];return OFFICE_RELS[_0x2ede95(0x15d)](_0xe4901=>_0xe4901+'/'+_0x24db82);};function one(_0x5370f2,_0x18f5dc){const _0x398567=a146_0xd88b83;if(_0x5370f2[_0x398567(0x1b5)]!==0x1)throw Error(_0x398567(0x1a9)+_0x18f5dc+'.');return _0x5370f2[0x0];}function integer(_0x56f405,_0x4c6c08,_0x391fd3=0x186a0){const _0x5b5f36=a146_0xd88b83;if(!_0x56f405||!/^\d+$/[_0x5b5f36(0x13e)](_0x56f405)||!Number[_0x5b5f36(0x1c4)](Number(_0x56f405))||Number(_0x56f405)>_0x391fd3)throw Error('Invalid\x20'+_0x4c6c08+'.');return Number(_0x56f405);}export function resolveWorksheetImages(_0x4132fb,_0x1e2c29,_0x417885){const _0x53a344=a146_0xd88b83;let _0x1fbb11=0x0,_0x3058f2=0x0,_0x521028=0x0;const _0x3b84da=new Map(),_0x88534e=_0x10e90c=>{const _0x38daec=a146_0x1d90;if(_0x3b84da['has'](_0x10e90c))return _0x3b84da['get'](_0x10e90c);const _0x2429cd=_0x4132fb[_0x38daec(0x155)](_0x10e90c);if(!_0x2429cd)throw Error('Missing\x20XLSX\x20part:\x20'+_0x10e90c+'.');const _0x867a81={'name':'','uri':'','attrs':{},'children':[],'text':''},_0x1d954e=[_0x867a81],_0x2177d3=new SaxesParser({'xmlns':!![]}),_0x93eab8=()=>{const _0x2f7fa3=_0x38daec;if(++_0x3058f2>0x1e8480)throw Error(_0x2f7fa3(0x1ad));};_0x2177d3['on'](_0x38daec(0x196),()=>{const _0x523ee8=_0x38daec;throw Error(_0x523ee8(0x179));}),_0x2177d3['on'](_0x38daec(0x198),_0x52066a=>{const _0xce2c4f=_0x38daec;_0x93eab8();if(++_0x1fbb11>0x7a120||_0x1d954e[_0xce2c4f(0x1b5)]>0x40)throw Error(_0xce2c4f(0x17d));const _0x2c9067={};for(const _0x1a671a of Object[_0xce2c4f(0x1c6)](_0x52066a['attributes'])){const _0x1bec18=OFFICE_RELS['includes'](_0x1a671a[_0xce2c4f(0x16b)])?'r:'+_0x1a671a[_0xce2c4f(0x1a3)]:_0x1a671a[_0xce2c4f(0x16b)]?'{'+_0x1a671a[_0xce2c4f(0x16b)]+'}'+_0x1a671a[_0xce2c4f(0x1a3)]:_0x1a671a[_0xce2c4f(0x1a3)];if(_0x1bec18 in _0x2c9067)throw Error(_0xce2c4f(0x175));_0x2c9067[_0x1bec18]=_0x1a671a[_0xce2c4f(0x1ab)];}const _0x5aa83c={'name':_0x52066a[_0xce2c4f(0x1a3)],'uri':_0x52066a[_0xce2c4f(0x16b)],'attrs':_0x2c9067,'children':[],'text':''};_0x1d954e['at'](-0x1)[_0xce2c4f(0x152)][_0xce2c4f(0x14d)](_0x5aa83c),_0x1d954e[_0xce2c4f(0x14d)](_0x5aa83c);}),_0x2177d3['on'](_0x38daec(0x1d5),_0x38e0d4=>{const _0x2ef9bd=_0x38daec;_0x93eab8();const _0x2bdabc=_0x1d954e['at'](-0x1);_0x2bdabc['text']+=_0x38e0d4;if(_0x2bdabc[_0x2ef9bd(0x1d5)][_0x2ef9bd(0x1b5)]>0x10000)throw Error(_0x2ef9bd(0x15b));}),_0x2177d3['on'](_0x38daec(0x1a6),()=>{const _0x17cd2e=_0x38daec;_0x93eab8(),_0x1d954e[_0x17cd2e(0x17f)]();}),_0x2177d3['on']('error',_0x4dfe57=>{throw _0x4dfe57;}),_0x2177d3[_0x38daec(0x1a5)](_0x2429cd[_0x38daec(0x187)](_0x38daec(0x18d)))['close']();const _0x51190a=one(_0x867a81[_0x38daec(0x152)],_0x10e90c);return _0x3b84da['set'](_0x10e90c,_0x51190a),_0x51190a;},_0x5eb92d=new Map(),_0x553747=_0x2b9dd2=>{const _0x128dff=a146_0x1d90;if(_0x5eb92d['has'](_0x2b9dd2))return _0x5eb92d[_0x128dff(0x155)](_0x2b9dd2);const _0x1b961c=a146_0x4352ed[_0x128dff(0x131)][_0x128dff(0x193)](a146_0x4352ed[_0x128dff(0x131)]['dirname'](_0x2b9dd2),_0x128dff(0x164),a146_0x4352ed['posix'][_0x128dff(0x1b1)](_0x2b9dd2)+_0x128dff(0x19d));if(!_0x4132fb[_0x128dff(0x158)](_0x1b961c))return[];const _0x586008=new Set(),_0x2f4c6a=_0x88534e(_0x1b961c);if(!matches(_0x2f4c6a,'Relationships'))throw Error(_0x128dff(0x148)+_0x1b961c+'.');const _0x57aa47=children(_0x2f4c6a,_0x128dff(0x195))[_0x128dff(0x15d)](_0x17dc00=>{const _0x3ff310=_0x128dff,{Id:_0x171f98,Type:_0x24dcbb,Target:_0x1bf79b,TargetMode:_0xd9383e}=_0x17dc00[_0x3ff310(0x1b3)];if(!_0x171f98||_0x586008[_0x3ff310(0x158)](_0x171f98)||!_0x24dcbb)throw Error('Invalid\x20or\x20duplicate\x20relationship\x20in\x20'+_0x1b961c+'.');return _0x586008[_0x3ff310(0x189)](_0x171f98),{'id':_0x171f98,'type':_0x24dcbb,'target':_0x1bf79b??'','mode':_0xd9383e};});return _0x5eb92d['set'](_0x2b9dd2,_0x57aa47),_0x57aa47;},_0x2975df=(_0x46ebdb,_0x561351)=>{const _0x12f1cf=a146_0x1d90,{target:_0x3d1c3d,mode:_0x26ed2b}=_0x561351;if(_0x26ed2b&&_0x26ed2b!=='Internal')throw Error(_0x12f1cf(0x163)+_0x46ebdb+'.');if(!_0x3d1c3d||_0x3d1c3d[_0x12f1cf(0x18b)]('\x5c')||/[?#%\x00-\x20]/[_0x12f1cf(0x13e)](_0x3d1c3d)||/^[a-z][a-z0-9+.-]*:/i['test'](_0x3d1c3d)||_0x3d1c3d['startsWith']('//'))throw Error('Invalid\x20relationship\x20target:\x20'+_0x46ebdb+'.');const _0xc39de7=_0x3d1c3d[_0x12f1cf(0x1b7)]('/')?_0x3d1c3d[_0x12f1cf(0x159)](0x1):a146_0x4352ed[_0x12f1cf(0x131)]['normalize'](a146_0x4352ed[_0x12f1cf(0x131)][_0x12f1cf(0x193)](a146_0x4352ed[_0x12f1cf(0x131)][_0x12f1cf(0x1a0)](_0x46ebdb),_0x3d1c3d));if(_0xc39de7['startsWith'](_0x12f1cf(0x17a))||_0xc39de7==='..'||!_0xc39de7[_0x12f1cf(0x1b7)](_0x12f1cf(0x18c)))throw Error(_0x12f1cf(0x1ae)+_0x46ebdb+'.');return _0xc39de7;},_0x4e8ced=(_0x29ac61,_0x322889,_0x1064c7)=>{const _0x27e95f=a146_0x1d90,_0x20cacf=_0x553747(_0x29ac61)[_0x27e95f(0x18e)](_0x1176d2=>_0x1176d2['id']===_0x322889&&relationshipTypes(_0x1064c7)[_0x27e95f(0x18b)](_0x1176d2[_0x27e95f(0x183)]));if(_0x20cacf['length']!==0x1)throw Error(_0x27e95f(0x1a9)+_0x1064c7+'\x20relationship\x20in\x20'+_0x29ac61+'.');return _0x2975df(_0x29ac61,_0x20cacf[0x0]);},_0x556a73=(_0x22e354,_0x24c245)=>{const _0x3f5bec=a146_0x1d90,_0x1e394d=_0x553747(_0x22e354)[_0x3f5bec(0x18e)](_0x48f2bb=>relationshipTypes(_0x24c245)['includes'](_0x48f2bb['type']));if(_0x1e394d[_0x3f5bec(0x1b5)]!==0x1)throw Error(_0x3f5bec(0x1a9)+_0x24c245+_0x3f5bec(0x1b9)+_0x22e354+'.');return _0x2975df(_0x22e354,_0x1e394d[0x0]);},_0x145692='xl/workbook.xml',_0x82be55=_0x88534e(_0x145692);if(!matches(_0x82be55,_0x53a344(0x1a7)))throw Error(_0x53a344(0x172));const _0x1c21d2=one(chain(_0x82be55,_0x53a344(0x1c7),'sheet')[_0x53a344(0x18e)](_0x34291f=>_0x34291f[_0x53a344(0x1b3)]['name']===_0x1e2c29),_0x53a344(0x174)),_0x6c683e=_0x4e8ced(_0x145692,_0x1c21d2[_0x53a344(0x1b3)][_0x53a344(0x165)],'worksheet'),_0x4e1e1b=_0x88534e(_0x6c683e);if(!matches(_0x4e1e1b,_0x53a344(0x174)))throw Error(_0x53a344(0x1c0));const _0x562e37=chain(_0x4e1e1b,_0x53a344(0x1be),_0x53a344(0x180)),_0x1a0d89=new Map(),_0x2fbe9e=new Set(_0x562e37[_0x53a344(0x18e)](_0x55a6ee=>_0x55a6ee['attrs'][_0x53a344(0x185)]==='1'||_0x55a6ee['attrs'][_0x53a344(0x185)]==='true')[_0x53a344(0x15d)](_0xd8b794=>integer(_0xd8b794[_0x53a344(0x1b3)]['r'],_0x53a344(0x1d2)))),_0x155a1c=_0xf60d6f=>{const _0x3598ad=_0x53a344,_0x58493b=_0xf60d6f===undefined?0xf:Number(_0xf60d6f);if(!Number[_0x3598ad(0x1cb)](_0x58493b)||_0x58493b<=0x0||_0x58493b>409.5)throw Error(_0x3598ad(0x15e));return Math[_0x3598ad(0x1d0)](_0x58493b*0x319c);},_0x560a63=_0x155a1c(children(_0x4e1e1b,_0x53a344(0x13f))[0x0]?.[_0x53a344(0x1b3)]['defaultRowHeight']);for(const _0x2e94cc of _0x562e37)if(_0x2e94cc[_0x53a344(0x1b3)]['ht']!==undefined)_0x1a0d89[_0x53a344(0x14c)](integer(_0x2e94cc[_0x53a344(0x1b3)]['r'],_0x53a344(0x16c)),_0x155a1c(_0x2e94cc[_0x53a344(0x1b3)]['ht']));const _0x534e3a=[],_0x4d60b4=_0x4345a3=>{const _0x33b4a9=_0x53a344;if(!_0x417885[_0x33b4a9(0x158)](_0x4345a3[_0x33b4a9(0x1ac)]))return;if(++_0x521028>0x2710)throw Error('Workbook\x20exceeds\x2010000\x20image\x20occurrences.');_0x534e3a['push'](_0x2fbe9e[_0x33b4a9(0x158)](_0x4345a3['row'])?{..._0x4345a3,'hiddenRow':!![]}:_0x4345a3);},_0x2b69cb=_0x4e9479=>({'row':integer(one(children(_0x4e9479,_0x53a344(0x180),DRAWING),'anchor\x20row')[_0x53a344(0x1d5)],'anchor\x20row',0x1869f)+0x1,'col':integer(one(children(_0x4e9479,_0x53a344(0x1ac)),_0x53a344(0x1ca))['text'],_0x53a344(0x1ca),0xff)+0x1});for(const _0x4cff1a of children(_0x4e1e1b,'drawing')){const _0x4641b8=_0x4e8ced(_0x6c683e,_0x4cff1a[_0x53a344(0x1b3)][_0x53a344(0x165)],_0x53a344(0x182)),_0x4b780e=_0x88534e(_0x4641b8);if(!matches(_0x4b780e,'wsDr'))throw Error(_0x53a344(0x191));for(const _0x55f291 of _0x4b780e[_0x53a344(0x152)]){if(![_0x53a344(0x135),_0x53a344(0x15c),'absoluteAnchor'][_0x53a344(0x1cd)](_0x5bc92f=>matches(_0x55f291,_0x5bc92f)))continue;if(_0x55f291[_0x53a344(0x19f)]==='absoluteAnchor')throw Error(_0x53a344(0x133)+_0x1e2c29+'.');const _0x30f02b=_0x2b69cb(one(children(_0x55f291,_0x53a344(0x178)),_0x53a344(0x141)));if(!_0x417885[_0x53a344(0x158)](_0x30f02b['col']))continue;let _0x2c804e;const _0x1ab592=one(children(_0x55f291,_0x53a344(0x178)),'anchor\x20start'),_0x135009=integer(one(children(_0x1ab592,_0x53a344(0x16a)),'anchor\x20start\x20offset')[_0x53a344(0x1d5)],_0x53a344(0x153),Number[_0x53a344(0x1d6)]),_0x5ea848=_0x1a0d89[_0x53a344(0x155)](_0x30f02b[_0x53a344(0x180)])??_0x560a63;if(_0x135009>=_0x5ea848)throw Error(_0x53a344(0x146)+_0x30f02b[_0x53a344(0x180)]+'.');if(_0x55f291['name']===_0x53a344(0x135)){const _0x1fe525=one(children(_0x55f291,_0x53a344(0x19a)),_0x53a344(0x1a4)),_0x26f45c=integer(_0x1fe525[_0x53a344(0x1b3)]['cy'],_0x53a344(0x19e),Number[_0x53a344(0x1d6)]);if(!_0x26f45c||_0x135009+_0x26f45c>_0x5ea848)_0x2c804e=_0x53a344(0x1a8);}if(_0x55f291[_0x53a344(0x19f)]===_0x53a344(0x15c)){const _0x32a2cb=one(children(_0x55f291,'to'),'anchor\x20end'),_0x22832a=_0x2b69cb(_0x32a2cb),_0x5d22bd=integer(one(children(_0x32a2cb,_0x53a344(0x16a)),_0x53a344(0x134))[_0x53a344(0x1d5)],_0x53a344(0x134),Number[_0x53a344(0x1d6)]),_0x52f36e=_0x1a0d89['get'](_0x22832a[_0x53a344(0x180)])??_0x560a63;if(_0x5d22bd>_0x52f36e||_0x22832a[_0x53a344(0x180)]===_0x30f02b[_0x53a344(0x180)]&&_0x5d22bd<=_0x135009)_0x2c804e='Image\x20anchor\x20has\x20invalid\x20or\x20reversed\x20row\x20offsets.';if(_0x22832a[_0x53a344(0x180)]<_0x30f02b['row']||_0x22832a[_0x53a344(0x180)]>_0x30f02b[_0x53a344(0x180)]+0x1||_0x22832a['row']===_0x30f02b['row']+0x1&&_0x5d22bd!==0x0)_0x2c804e=_0x53a344(0x1a8);}const _0x2b62ca=chain(_0x55f291,_0x53a344(0x154),_0x53a344(0x147),_0x53a344(0x194));for(const _0x40f030 of _0x2b62ca){if(_0x40f030[_0x53a344(0x1b3)]['r:link'])throw Error('External\x20image\x20links\x20are\x20not\x20supported.');_0x4d60b4({..._0x30f02b,'media':[_0x4e8ced(_0x4641b8,_0x40f030[_0x53a344(0x1b3)]['r:embed'],_0x53a344(0x19c))],..._0x2c804e?{'error':_0x2c804e}:{}});}if(!_0x2b62ca[_0x53a344(0x1b5)])_0x4d60b4({..._0x30f02b,'media':[],'error':_0x53a344(0x17b)});}}const _0x3bd37d=_0x3c10ca=>{const _0x22dc72=_0x53a344,_0x5d2535=_0x88534e(_0x556a73(_0x145692,_0x22dc72(0x156)));if(!matches(_0x5d2535,_0x22dc72(0x171)))throw Error('Unsupported\x20metadata\x20namespace.');const _0x127bba=integer(_0x3c10ca['attrs']['vm'],'value\x20metadata\x20index');if(!_0x127bba)throw Error(_0x22dc72(0x168));const _0x275bb6=children(one(children(_0x5d2535,_0x22dc72(0x15f)),_0x22dc72(0x15f)),'bk')[_0x127bba-0x1];if(!_0x275bb6)throw Error(_0x22dc72(0x157));const _0x328259=one(children(_0x275bb6,'rc'),_0x22dc72(0x186)),_0x53b358=integer(_0x328259['attrs']['t'],'metadata\x20type\x20index'),_0x387252=children(one(children(_0x5d2535,_0x22dc72(0x16e)),'metadata\x20types'),_0x22dc72(0x1bb))[_0x53b358-0x1];if(!_0x53b358||_0x387252?.['attrs'][_0x22dc72(0x19f)]!==_0x22dc72(0x17c))throw Error(_0x22dc72(0x1af));const _0x482685=one(children(_0x5d2535,_0x22dc72(0x151))[_0x22dc72(0x18e)](_0x489a2f=>_0x489a2f[_0x22dc72(0x1b3)][_0x22dc72(0x19f)]===_0x22dc72(0x17c)),_0x22dc72(0x1b2)),_0x5ed7c6=children(_0x482685,'bk')[integer(_0x328259[_0x22dc72(0x1b3)]['v'],'future\x20metadata\x20index')];if(!_0x5ed7c6)throw Error('Missing\x20future\x20metadata\x20block.');const _0x44b63c=chain(_0x5ed7c6,_0x22dc72(0x1bd))[_0x22dc72(0x145)](_0x1565aa=>children(_0x1565aa,_0x22dc72(0x19a),SHEET))[_0x22dc72(0x18e)](_0x542d31=>_0x542d31['attrs'][_0x22dc72(0x16b)]?.[_0x22dc72(0x143)]()===_0x22dc72(0x13c)),_0x402a38=integer(one(_0x44b63c[_0x22dc72(0x145)](_0x6bc3e5=>children(_0x6bc3e5,_0x22dc72(0x167))),_0x22dc72(0x190))[_0x22dc72(0x1b3)]['i'],'rich\x20value\x20index'),_0x6ed67c=_0x88534e(_0x556a73(_0x145692,_0x22dc72(0x170)));if(!matches(_0x6ed67c,'rvData'))throw Error('Unsupported\x20rich\x20value\x20namespace.');const _0x4f55a3=children(_0x6ed67c,'rv')[_0x402a38];if(!_0x4f55a3)throw Error(_0x22dc72(0x176));const _0x1de015=_0x88534e(_0x556a73(_0x145692,_0x22dc72(0x19b)));if(!matches(_0x1de015,_0x22dc72(0x16d)))throw Error(_0x22dc72(0x1d3));const _0x5f04cd=children(_0x1de015,'s')[integer(_0x4f55a3[_0x22dc72(0x1b3)]['s'],_0x22dc72(0x13d))];if(!_0x5f04cd||_0x5f04cd[_0x22dc72(0x1b3)]['t']!==_0x22dc72(0x142))throw Error(_0x22dc72(0x1c1));const _0x298232=children(_0x5f04cd,'k'),_0x268008=_0x298232[_0x22dc72(0x15d)]((_0x45a109,_0x1d3cc6)=>_0x45a109[_0x22dc72(0x1b3)]['n']===_0x22dc72(0x150)?_0x1d3cc6:-0x1)[_0x22dc72(0x18e)](_0x3d04a3=>_0x3d04a3>=0x0);if(_0x268008[_0x22dc72(0x1b5)]!==0x1)throw Error(_0x22dc72(0x14b));const _0x13bd54=children(_0x4f55a3,'v',RICH)[_0x268008[0x0]];if(!_0x13bd54)throw Error(_0x22dc72(0x1b4));const _0x435731=_0x556a73(_0x145692,_0x22dc72(0x169)),_0x575c49=_0x88534e(_0x435731);if(!matches(_0x575c49,_0x22dc72(0x1c8)))throw Error(_0x22dc72(0x14e));const _0x23e7b2=children(_0x575c49,_0x22dc72(0x1cc))[integer(_0x13bd54['text'],_0x22dc72(0x160))];if(!_0x23e7b2)throw Error('Missing\x20rich\x20image\x20relationship.');return _0x4e8ced(_0x435731,_0x23e7b2[_0x22dc72(0x1b3)]['r:id'],_0x22dc72(0x19c));};let _0x2b3d04;const _0x505dfa=_0x443d94=>{const _0x2544ac=_0x53a344;if(!_0x2b3d04){_0x2b3d04=new Map();const _0x29efa9=_0x553747(_0x145692)[_0x2544ac(0x18e)](_0x111525=>[...relationshipTypes(_0x2544ac(0x181)),...relationshipTypes('cellImages')]['includes'](_0x111525[_0x2544ac(0x183)]));if(!_0x29efa9[_0x2544ac(0x1b5)]&&_0x4132fb[_0x2544ac(0x158)](_0x2544ac(0x1ce)))_0x29efa9[_0x2544ac(0x14d)]({'id':'','type':'','target':'/xl/cellimages.xml'});if(_0x29efa9[_0x2544ac(0x1b5)]!==0x1)throw Error(_0x2544ac(0x144));const _0x273a8a=_0x2975df(_0x145692,_0x29efa9[0x0]),_0x8c13d1=_0x88534e(_0x273a8a);if(!matches(_0x8c13d1,'cellImages'))throw Error('Unsupported\x20WPS\x20cell\x20image\x20namespace.');for(const _0x93a15f of children(_0x8c13d1,_0x2544ac(0x181))){const _0x4df467=one(chain(_0x93a15f,_0x2544ac(0x154),_0x2544ac(0x1b8),'cNvPr'),_0x2544ac(0x18a))[_0x2544ac(0x1b3)]['name'];if(!_0x4df467||_0x2b3d04[_0x2544ac(0x158)](_0x4df467))throw Error('Invalid\x20or\x20duplicate\x20WPS\x20image\x20ID.');const _0x185e4c=one(chain(_0x93a15f,_0x2544ac(0x154),'blipFill',_0x2544ac(0x194)),'WPS\x20image\x20blip');if(_0x185e4c[_0x2544ac(0x1b3)][_0x2544ac(0x162)])throw Error(_0x2544ac(0x199));_0x2b3d04[_0x2544ac(0x14c)](_0x4df467,_0x4e8ced(_0x273a8a,_0x185e4c[_0x2544ac(0x1b3)][_0x2544ac(0x140)],'image'));}}const _0x463d20=_0x2b3d04[_0x2544ac(0x155)](_0x443d94);if(!_0x463d20)throw Error(_0x2544ac(0x17e)+_0x443d94+'.');return _0x463d20;},_0xe15a3d=new Set();for(const _0x5e4512 of _0x562e37[_0x53a344(0x145)](_0x3b1353=>children(_0x3b1353,'c'))){const _0x523cd5=/^([A-Z]+)([1-9]\d*)$/['exec'](_0x5e4512[_0x53a344(0x1b3)]['r']??'');if(!_0x523cd5)continue;let _0xe60206=0x0;for(const _0x393f17 of _0x523cd5[0x1])_0xe60206=_0xe60206*0x1a+_0x393f17[_0x53a344(0x18f)](0x0)-0x40;if(!_0x417885['has'](_0xe60206))continue;const _0x199ac=integer(_0x523cd5[0x2],_0x53a344(0x15a));if(_0xe15a3d['has'](_0x5e4512['attrs']['r']))throw Error(_0x53a344(0x197));_0xe15a3d[_0x53a344(0x189)](_0x5e4512[_0x53a344(0x1b3)]['r']);const _0x40b516=children(_0x5e4512,'f');if(!_0x5e4512[_0x53a344(0x1b3)]['vm']&&!_0x40b516[_0x53a344(0x1b5)])continue;try{if(_0x199ac<0x1||_0xe60206>0x100)throw Error(_0x53a344(0x166));let _0x3c2f0f;if(_0x5e4512['attrs']['vm']){if(_0x40b516['length'])throw Error(_0x53a344(0x173));if(_0x5e4512[_0x53a344(0x1b3)]['t']!=='e'||children(_0x5e4512,'v')[_0x53a344(0x1b5)]!==0x1||children(_0x5e4512,'v')[0x0][_0x53a344(0x1d5)]!==_0x53a344(0x14f))throw Error('Rich\x20IMAGE\x20cell\x20contains\x20unexpected\x20scalar\x20or\x20mixed\x20content.');_0x3c2f0f=_0x3bd37d(_0x5e4512);}else{const _0x4a2c0c=one(_0x40b516,_0x53a344(0x1c3));if(_0x4a2c0c[_0x53a344(0x1b3)]['t']===_0x53a344(0x1bf)||_0x4a2c0c[_0x53a344(0x1b3)]['si'])throw Error(_0x53a344(0x1d4));const _0x593ade=/^\s*=?\s*@?(?:_xlfn\.)?DISPIMG\(\s*"((?:[^"]|"")+)"\s*(?:,\s*[01]\s*)?\)\s*$/i[_0x53a344(0x149)](_0x4a2c0c[_0x53a344(0x1d5)]);if(!_0x593ade)throw Error(_0x53a344(0x1aa));_0x3c2f0f=_0x505dfa(_0x593ade[0x1][_0x53a344(0x1d1)](/""/g,'\x22'));}_0x4d60b4({'row':_0x199ac,'col':_0xe60206,'media':[_0x3c2f0f],'nativeCell':!![]});}catch(_0x298690){_0x4d60b4({'row':_0x199ac,'col':_0xe60206,'media':[],'nativeCell':!![],'error':_0x298690[_0x53a344(0x1c2)]});}}return _0x534e3a;}
@@ -1 +1 @@
1
- (function(_0x1dd1d9,_0x4f05fc){const _0x1ce043=a147_0x14d6,_0x3062f3=_0x1dd1d9();while(!![]){try{const _0x1e4322=parseInt(_0x1ce043(0x1c4))/0x1*(parseInt(_0x1ce043(0x1d4))/0x2)+parseInt(_0x1ce043(0x1b2))/0x3+-parseInt(_0x1ce043(0x1ba))/0x4+parseInt(_0x1ce043(0x1da))/0x5+parseInt(_0x1ce043(0x1c0))/0x6+parseInt(_0x1ce043(0x1a9))/0x7+-parseInt(_0x1ce043(0x1a3))/0x8*(parseInt(_0x1ce043(0x1e2))/0x9);if(_0x1e4322===_0x4f05fc)break;else _0x3062f3['push'](_0x3062f3['shift']());}catch(_0x477bd3){_0x3062f3['push'](_0x3062f3['shift']());}}}(a147_0x2f1c,0x9c38f));import{randomUUID,createHash}from'node:crypto';import{lstat,readFile}from'node:fs/promises';import{acquireLock,assertImportContract,assertImportPaths,canonical,resolveImportOutputPath,runExcelImport,saveImportJson}from'./runner.js';import{runAutoIdExcelImport}from'./auto-id-runner.js';import{previewImportBatchCount}from'./preview.js';export function assertImageImportCapability(_0x57229e,_0x3ab9f7){const _0x12e743=a147_0x14d6;if(!_0x3ab9f7[_0x12e743(0x191)]?.[_0x12e743(0x19b)])return;const _0x290ad3=_0x57229e[_0x12e743(0x194)];if(!_0x290ad3||_0x290ad3['version']!==0x1||_0x290ad3[_0x12e743(0x1a0)]!=='sha256'||_0x290ad3['maxFileBytes']!==0xa00000||_0x290ad3['maxPixels']!==0x2625a00||!Array['isArray'](_0x290ad3[_0x12e743(0x1b1)])||!['image/png','image/jpeg','image/gif'][_0x12e743(0x18f)](_0x145b2b=>_0x290ad3[_0x12e743(0x1b1)]['includes'](_0x145b2b)))throw Error('The\x20server\x20does\x20not\x20support\x20this\x20image\x20import\x20capability.');}export function imageObjectValue(_0x5dd008,_0xa2940a,_0x40814a){const _0x1e9675=a147_0x14d6,_0x25d40c=createHash(_0x1e9675(0x1d8))[_0x1e9675(0x1dd)](JSON[_0x1e9675(0x1a4)]([_0x5dd008[_0x1e9675(0x1e0)],_0x5dd008[_0x1e9675(0x19e)],_0x5dd008[_0x1e9675(0x1be)],_0xa2940a]))[_0x1e9675(0x189)](_0x1e9675(0x1cb)),_0x62b0e4={'image/png':'png','image/jpeg':'jpg','image/gif':_0x1e9675(0x1d1)}[_0x40814a[_0x1e9675(0x197)]];if(!_0x62b0e4||!/^[0-9a-f]{64}$/[_0x1e9675(0x1c3)](_0x40814a['contentHash'])||!Number[_0x1e9675(0x1b3)](_0x40814a['size'])||_0x40814a[_0x1e9675(0x1e3)]<=0x0||_0x40814a[_0x1e9675(0x1e3)]>0xa00000)throw Error(_0x1e9675(0x193));const _0x424408=_0x40814a[_0x1e9675(0x1d7)]+'.'+_0x62b0e4;return{'key':_0x1e9675(0x1bf)+_0x25d40c+'/'+_0x424408,'name':_0x424408,'type':_0x40814a[_0x1e9675(0x197)],'size':_0x40814a[_0x1e9675(0x1e3)]};}export function bindImageManifest(_0x391996,_0x472099,_0x2ab0b7){const _0xaca2d2=a147_0x14d6,_0x4de3e0=new Map(_0x391996['media']?.[_0xaca2d2(0x1d5)](_0x2755b9=>[_0x2755b9[_0xaca2d2(0x1d7)],_0x2755b9])),_0x36bf85=new Map(_0x391996[_0xaca2d2(0x1d3)]?.[_0xaca2d2(0x1d5)](_0x20ddea=>[_0x20ddea[_0xaca2d2(0x1a8)]+':'+_0x20ddea[_0xaca2d2(0x199)],_0x20ddea[_0xaca2d2(0x1bc)]]));return{..._0x391996,'rows':_0x391996[_0xaca2d2(0x1b8)][_0xaca2d2(0x1d5)](_0x9e4705=>({..._0x9e4705,'values':Object[_0xaca2d2(0x1a6)](Object['entries'](_0x9e4705[_0xaca2d2(0x18d)])[_0xaca2d2(0x1d5)](([_0x23d0b5,_0x2d4458])=>{const _0x531b0e=_0xaca2d2,_0x5e71cd=_0x36bf85[_0x531b0e(0x18a)](_0x9e4705[_0x531b0e(0x1a8)]+':'+_0x23d0b5);return[_0x23d0b5,_0x5e71cd?_0x5e71cd[_0x531b0e(0x1d5)](_0x316a5a=>{const _0x144540=_0x531b0e,_0x6cd31f=_0x4de3e0[_0x144540(0x18a)](_0x316a5a);if(!_0x6cd31f)throw Error(_0x144540(0x1ab));const _0x4b7fee=imageObjectValue(_0x472099,_0x2ab0b7,_0x6cd31f);return _0x391996['uploadFields']?.['includes'](_0x23d0b5)?{'fileName':_0x4b7fee['name'],'filePath':_0x4b7fee[_0x144540(0x1d0)]}:_0x4b7fee;}):_0x2d4458];}))}))};}function a147_0x14d6(_0x32defc,_0x49fc37){_0x32defc=_0x32defc-0x186;const _0x2f1ce6=a147_0x2f1c();let _0x14d686=_0x2f1ce6[_0x32defc];return _0x14d686;}async function exists(_0xfff907){const _0x40fb3b=a147_0x14d6;try{return await lstat(_0xfff907),!![];}catch(_0x13d8fd){if(_0x13d8fd[_0x40fb3b(0x19a)]===_0x40fb3b(0x1b5))return![];throw _0x13d8fd;}}export async function runImageExcelImport(_0xd628cb){const _0x186f68=a147_0x14d6;assertImportContract(_0xd628cb[_0x186f68(0x198)],_0xd628cb[_0x186f68(0x19e)],_0xd628cb['datasetCode']),assertImageImportCapability(_0xd628cb[_0x186f68(0x198)],_0xd628cb[_0x186f68(0x186)]);if(!Number[_0x186f68(0x1bd)](_0xd628cb[_0x186f68(0x1c6)])||_0xd628cb[_0x186f68(0x1c6)]<0x1||_0xd628cb[_0x186f68(0x1c6)]>_0xd628cb['contract'][_0x186f68(0x1e9)])throw Error('Invalid\x20import\x20batch\x20size.');if(_0xd628cb['manifest']['errors']['length']||!_0xd628cb['manifest'][_0x186f68(0x1b8)][_0x186f68(0x19b)])throw Error(_0x186f68(0x1b9));const _0xbe1661=await resolveImportOutputPath(_0xd628cb[_0x186f68(0x1e5)]),_0x2c635f=await resolveImportOutputPath(_0xd628cb['report']),_0x29cb81=await resolveImportOutputPath(_0xbe1661+_0x186f68(0x1b7)),_0x41b64c=await Promise[_0x186f68(0x188)]([_0x29cb81,_0x29cb81+_0x186f68(0x1d2),_0x29cb81+_0x186f68(0x187),..._0xd628cb['inputPaths']??[]]['map'](resolveImportOutputPath));for(const _0x3fdd00 of[_0xbe1661,_0x2c635f,_0xbe1661+'.lock',_0xbe1661+'.lock.recovery'])await resolveImportOutputPath(_0x3fdd00);assertImportPaths(_0xbe1661,_0x2c635f,_0x41b64c);const {contract:_0x299b58,manifest:_0x293353}=_0xd628cb,_0x40ff94=_0x293353[_0x186f68(0x191)]??[];if(new Set(_0x40ff94[_0x186f68(0x1d5)](_0x3ad2c5=>_0x3ad2c5[_0x186f68(0x1d7)]))[_0x186f68(0x1e3)]!==_0x40ff94['length']||_0x40ff94['reduce']((_0x5a31ce,_0x37dd44)=>_0x5a31ce+_0x37dd44['size'],0x0)>0x32*0x400*0x400||(_0x293353[_0x186f68(0x1d3)]??[])[_0x186f68(0x1c7)]((_0x5bc00a,_0x5634d0)=>_0x5bc00a+_0x5634d0['hashes'][_0x186f68(0x19b)],0x0)>0x2710)throw Error(_0x186f68(0x1a2));for(const _0x387544 of _0x40ff94)if(_0x387544[_0x186f68(0x1e3)]!==_0x387544[_0x186f68(0x1c1)][_0x186f68(0x19b)]||createHash(_0x186f68(0x1d8))[_0x186f68(0x1dd)](_0x387544[_0x186f68(0x1c1)])[_0x186f68(0x189)](_0x186f68(0x1cb))!==_0x387544[_0x186f68(0x1d7)])throw Error('Image\x20media\x20bytes\x20changed.');previewImportBatchCount(bindImageManifest(_0x293353,_0x299b58,_0x186f68(0x1ae)),_0x299b58,_0xd628cb['batchSize']);const _0x5eb288={'appCode':_0xd628cb[_0x186f68(0x19e)],'datasetCode':_0xd628cb[_0x186f68(0x1be)],'runtimeDomain':_0xd628cb['runtimeDomain'],'actorId':_0x299b58[_0x186f68(0x1e0)],'fileHash':_0x293353[_0x186f68(0x1e8)],'mappingHash':_0x293353[_0x186f68(0x1e6)],'schemaHash':_0x293353[_0x186f68(0x190)],'remoteSchemaHash':_0x299b58[_0x186f68(0x1ac)],'strategy':_0x299b58[_0x186f68(0x18e)],'schemaVersion':_0x299b58[_0x186f68(0x19d)],'batchSize':_0xd628cb[_0x186f68(0x1c6)],'maxBatchBytes':_0x299b58['maxBatchBytes'],'sheet':_0x293353[_0x186f68(0x1af)],'parserVersion':_0x293353[_0x186f68(0x195)],'imageFields':_0x293353[_0x186f68(0x1aa)],'cells':_0x293353['imageCells'],..._0x293353[_0x186f68(0x1ce)]?.[_0x186f68(0x19b)]?{'uploadFields':_0x293353[_0x186f68(0x1ce)]}:{},'media':_0x40ff94[_0x186f68(0x1d5)](({contentHash:_0x92b1c5,type:_0x53e624,size:_0x2621ea})=>({'contentHash':_0x92b1c5,'type':_0x53e624,'size':_0x2621ea})),'rows':_0x293353[_0x186f68(0x1b8)]},_0x15abc0=await acquireLock(_0xbe1661);try{let _0x39f796;if(_0xd628cb[_0x186f68(0x192)]){try{_0x39f796=JSON[_0x186f68(0x1d6)](await readFile(_0xbe1661,_0x186f68(0x1ca)));}catch{throw Error(_0x186f68(0x1a7));}if(_0x39f796[_0x186f68(0x1c8)]!==0x3||!/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/['test'](_0x39f796[_0x186f68(0x1a1)])||canonical(_0x39f796[_0x186f68(0x1e1)])!==canonical(_0x5eb288)||![_0x186f68(0x191),'rows-preparing',_0x186f68(0x196),_0x186f68(0x1d9)][_0x186f68(0x19f)](_0x39f796['phase'])||!Array[_0x186f68(0x1de)](_0x39f796[_0x186f68(0x191)])||_0x39f796[_0x186f68(0x191)][_0x186f68(0x19b)]!==_0x40ff94[_0x186f68(0x19b)]||_0x39f796['media'][_0x186f68(0x1df)]((_0x57ce51,_0x184075)=>_0x57ce51[_0x186f68(0x1b6)]!==_0x40ff94[_0x184075][_0x186f68(0x1d7)]||![_0x186f68(0x1db),_0x186f68(0x1b0)]['includes'](_0x57ce51[_0x186f68(0x1c9)])))throw Error(_0x186f68(0x1cc));if(['rows-started','completed'][_0x186f68(0x19f)](_0x39f796[_0x186f68(0x1e7)])&&!await exists(_0x29cb81))throw Error(_0x186f68(0x1a5));if(_0x39f796['phase']===_0x186f68(0x191)&&await exists(_0x29cb81))throw Error(_0x186f68(0x1c2));}else{if(await exists(_0xbe1661)||await exists(_0x29cb81))throw Error(_0x186f68(0x1bb));_0x39f796={'version':0x3,'importId':randomUUID(),'binding':_0x5eb288,'phase':_0x186f68(0x191),'media':_0x40ff94[_0x186f68(0x1d5)](_0xed40c3=>({'hash':_0xed40c3[_0x186f68(0x1d7)],'status':'pending'}))},await saveImportJson(_0xbe1661,_0x39f796);}const _0x406de1=(_0x3a9544,_0x3b7496)=>{const _0x2184cb=_0x186f68;if(!_0x3a9544||_0x3a9544['contentHash']!==_0x3b7496[_0x2184cb(0x1d7)])throw Error('Invalid\x20image\x20readback\x20digest.');if(_0x3a9544[_0x2184cb(0x1c9)]===_0x2184cb(0x1ad))return undefined;const _0x2b2131=imageObjectValue(_0x299b58,_0x39f796[_0x2184cb(0x1a1)],_0x3b7496);if(_0x3a9544[_0x2184cb(0x1c9)]!==_0x2184cb(0x1b0)||_0x3a9544['filePath']!==_0x2b2131[_0x2184cb(0x1d0)]||_0x3a9544['fileName']!==_0x2b2131[_0x2184cb(0x18b)]||_0x3a9544[_0x2184cb(0x197)]!==_0x2b2131[_0x2184cb(0x197)]||_0x3a9544[_0x2184cb(0x1e3)]!==_0x2b2131[_0x2184cb(0x1e3)])throw Error(_0x2184cb(0x18c));return _0x2b2131;};for(let _0x127785=0x0;_0x127785<_0x40ff94[_0x186f68(0x19b)];_0x127785++){const _0x277b62=_0x40ff94[_0x127785],_0x2bc745=_0x39f796['media'][_0x127785],_0x4fa8d8=imageObjectValue(_0x299b58,_0x39f796[_0x186f68(0x1a1)],_0x277b62);if(_0x2bc745['status']===_0x186f68(0x1b0)&&canonical(_0x2bc745[_0x186f68(0x1e4)])!==canonical(_0x4fa8d8))throw Error(_0x186f68(0x1cf));let _0x2b170f;if(_0xd628cb[_0x186f68(0x192)]||_0x2bc745[_0x186f68(0x1c9)]===_0x186f68(0x1b0))_0x2b170f=_0x406de1(await _0xd628cb[_0x186f68(0x1b4)][_0x186f68(0x19c)](_0x39f796[_0x186f68(0x1a1)],_0x277b62),_0x277b62);if(!_0x2b170f&&_0x2bc745[_0x186f68(0x1c9)]===_0x186f68(0x1b0))throw Error(_0x186f68(0x1c5));if(!_0x2b170f){try{_0x406de1(await _0xd628cb[_0x186f68(0x1b4)]['upload'](_0x39f796['importId'],_0x277b62),_0x277b62);}catch(_0x3aba05){_0x2b170f=_0x406de1(await _0xd628cb[_0x186f68(0x1b4)]['readback'](_0x39f796['importId'],_0x277b62),_0x277b62);if(!_0x2b170f)throw Error('Image\x20upload\x20outcome\x20is\x20unknown\x20or\x20missing.\x20Resume\x20to\x20reconcile\x20the\x20original\x20upload\x20identity.');}if(!_0x2b170f)_0x2b170f=_0x406de1(await _0xd628cb['imageApi'][_0x186f68(0x19c)](_0x39f796[_0x186f68(0x1a1)],_0x277b62),_0x277b62);if(!_0x2b170f)throw Error(_0x186f68(0x1cd));}_0x2bc745[_0x186f68(0x1c9)]='succeeded',_0x2bc745['value']=_0x2b170f,await saveImportJson(_0xbe1661,_0x39f796);}const _0x1eab03=bindImageManifest(_0x293353,_0x299b58,_0x39f796['importId']),_0x1abfd5=_0x39f796[_0x186f68(0x1e7)]==='rows-preparing'?await exists(_0x29cb81):_0x39f796['phase']!==_0x186f68(0x191);_0x39f796[_0x186f68(0x1e7)]===_0x186f68(0x191)&&(_0x39f796['phase']=_0x186f68(0x1dc),await saveImportJson(_0xbe1661,_0x39f796));const _0x209e49={..._0xd628cb,'manifest':_0x1eab03,'checkpoint':_0x29cb81,'report':_0x2c635f,'resume':_0x1abfd5,'onCheckpointReady':async()=>{const _0x144a00=_0x186f68;_0x39f796['phase']=_0x144a00(0x196),await saveImportJson(_0xbe1661,_0x39f796);}},_0x44c946=_0x299b58[_0x186f68(0x19d)]===0x2?await runAutoIdExcelImport({..._0x209e49,'reconcileImageConflicts':_0xd628cb[_0x186f68(0x192)]===!![]&&_0x1abfd5}):await runExcelImport(_0x209e49);return _0x39f796['phase']=_0x186f68(0x1d9),await saveImportJson(_0xbe1661,_0x39f796),{..._0x44c946,'checkpoint':_0xbe1661,'imageCount':_0x293353[_0x186f68(0x1d3)]?.[_0x186f68(0x1c7)]((_0x20d206,_0x2cf437)=>_0x20d206+_0x2cf437[_0x186f68(0x1bc)][_0x186f68(0x19b)],0x0)??0x0,'uniqueImages':_0x40ff94[_0x186f68(0x19b)]};}finally{await _0x15abc0();}}function a147_0x2f1c(){const _0x5237c7=['imageFields','Image\x20cell\x20references\x20missing\x20media.','schemaFingerprint','missing','00000000-0000-4000-8000-000000000000','sheet','succeeded','types','911106CXDckp','isSafeInteger','imageApi','ENOENT','hash','.rows.json','rows','Excel\x20contains\x20invalid\x20or\x20no\x20data\x20rows;\x20no\x20images\x20were\x20uploaded.','3610360LGcxUP','Import\x20checkpoint\x20already\x20exists;\x20use\x20--resume.','hashes','isInteger','datasetCode','dataset-import/','4432386NlLhRj','bytes','Unexpected\x20row\x20checkpoint\x20during\x20image\x20upload\x20phase.','test','133141KALpJJ','Previously\x20uploaded\x20image\x20is\x20missing;\x20automatic\x20repair\x20is\x20disabled.','batchSize','reduce','version','status','utf8','hex','Image\x20checkpoint\x20does\x20not\x20match\x20the\x20source,\x20target\x20or\x20identity.','Uploaded\x20image\x20is\x20not\x20visible.\x20Resume\x20to\x20reconcile\x20before\x20continuing.','uploadFields','Completed\x20image\x20checkpoint\x20value\x20changed.','key','gif','.lock','imageCells','14ofAsJy','map','parse','contentHash','sha256','completed','181355ahiNJK','pending','rows-preparing','update','isArray','some','actorId','binding','54LTELDA','size','value','checkpoint','mappingHash','phase','fileHash','maxBatchSize','manifest','.lock.recovery','all','digest','get','name','Uploaded\x20image\x20metadata\x20changed\x20or\x20is\x20corrupt.','values','strategy','every','schemaHash','media','resume','Invalid\x20image\x20media\x20descriptor.','imageImport','parserVersion','rows-started','type','contract','field','code','length','readback','schemaVersion','appCode','includes','uploadId','importId','Invalid\x20image\x20manifest\x20limits.','842056VVwRoa','stringify','Row\x20phase\x20started\x20but\x20the\x20row\x20checkpoint\x20is\x20missing;\x20stop\x20to\x20avoid\x20duplicate\x20records.','fromEntries','Cannot\x20read\x20the\x20image\x20import\x20checkpoint.','rowNumber','1143296NgpBKY'];a147_0x2f1c=function(){return _0x5237c7;};return a147_0x2f1c();}
1
+ (function(_0x55fa1e,_0x36ede4){const _0x33fc8b=a147_0x1679,_0x45d9c8=_0x55fa1e();while(!![]){try{const _0x57fb99=-parseInt(_0x33fc8b(0x21e))/0x1*(parseInt(_0x33fc8b(0x1f8))/0x2)+parseInt(_0x33fc8b(0x20e))/0x3*(parseInt(_0x33fc8b(0x20d))/0x4)+parseInt(_0x33fc8b(0x251))/0x5*(parseInt(_0x33fc8b(0x204))/0x6)+-parseInt(_0x33fc8b(0x225))/0x7+parseInt(_0x33fc8b(0x223))/0x8*(parseInt(_0x33fc8b(0x1fe))/0x9)+parseInt(_0x33fc8b(0x21c))/0xa*(parseInt(_0x33fc8b(0x24c))/0xb)+-parseInt(_0x33fc8b(0x23d))/0xc*(parseInt(_0x33fc8b(0x24d))/0xd);if(_0x57fb99===_0x36ede4)break;else _0x45d9c8['push'](_0x45d9c8['shift']());}catch(_0x284224){_0x45d9c8['push'](_0x45d9c8['shift']());}}}(a147_0x5194,0x4fcf3));import{randomUUID,createHash}from'node:crypto';import{lstat,readFile}from'node:fs/promises';import{acquireLock,assertImportContract,assertImportPaths,canonical,resolveImportOutputPath,runExcelImport,saveImportJson}from'./runner.js';import{runAutoIdExcelImport}from'./auto-id-runner.js';import{previewImportBatchCount}from'./preview.js';function a147_0x5194(){const _0x3944e4=['status','report','contentHash','succeeded','492056SDPhpJ','contract','1774500bpVKmK','The\x20server\x20does\x20not\x20support\x20this\x20image\x20import\x20capability.','digest','inputPaths','media','resume','readback','rows','version','imageImport','size','schemaFingerprint','key','Invalid\x20image\x20media\x20descriptor.','Completed\x20image\x20checkpoint\x20value\x20changed.','sheet','all','Previously\x20uploaded\x20image\x20is\x20missing;\x20automatic\x20repair\x20is\x20disabled.','Invalid\x20image\x20manifest\x20limits.','Invalid\x20image\x20readback\x20digest.','gif','fromEntries','pending','map','577452UOTdcQ','Image\x20checkpoint\x20does\x20not\x20match\x20the\x20source,\x20target\x20or\x20identity.','length','upload','image/jpeg','get','checkpoint','value','Image\x20media\x20bytes\x20changed.','imageApi','actorId','uploadFields','Invalid\x20import\x20batch\x20size.','importId','values','1211188xyJZfo','260XAMihz','completed','Unexpected\x20row\x20checkpoint\x20during\x20image\x20upload\x20phase.','Import\x20checkpoint\x20already\x20exists;\x20use\x20--resume.','5pfXKlW','00000000-0000-4000-8000-000000000000','update','binding','hash','Image\x20cell\x20references\x20missing\x20media.','rowNumber','.lock','parse','datasetCode','isArray','schemaVersion','isInteger','phase','manifest','strategy','2sZXrlt','Excel\x20contains\x20invalid\x20or\x20no\x20data\x20rows;\x20no\x20images\x20were\x20uploaded.','reduce','hex','bytes','name','18IIDwVk','stringify','hashes','Cannot\x20read\x20the\x20image\x20import\x20checkpoint.','maxFileBytes','includes','2841114MXAxue','rows-started','every','isSafeInteger','sha256','imageCells','image/png','test','image/gif','194076SnpJRN','39JnUdeS','ENOENT','some','types','.lock.recovery','rows-preparing','errors','entries','parserVersion','type','batchSize','schemaHash','appCode','code','30VZmPfO','Image\x20upload\x20outcome\x20is\x20unknown\x20or\x20missing.\x20Resume\x20to\x20reconcile\x20the\x20original\x20upload\x20identity.','14785nHBsiq'];a147_0x5194=function(){return _0x3944e4;};return a147_0x5194();}export function assertImageImportCapability(_0xf77cc8,_0x3368cb){const _0x10fc88=a147_0x1679;if(!_0x3368cb['media']?.[_0x10fc88(0x23f)])return;const _0x1c541e=_0xf77cc8[_0x10fc88(0x22e)];if(!_0x1c541e||_0x1c541e['version']!==0x1||_0x1c541e['uploadId']!==_0x10fc88(0x208)||_0x1c541e[_0x10fc88(0x202)]!==0xa00000||_0x1c541e['maxPixels']!==0x2625a00||!Array['isArray'](_0x1c541e[_0x10fc88(0x211)])||![_0x10fc88(0x20a),_0x10fc88(0x241),_0x10fc88(0x20c)][_0x10fc88(0x206)](_0x1dda40=>_0x1c541e[_0x10fc88(0x211)][_0x10fc88(0x203)](_0x1dda40)))throw Error(_0x10fc88(0x226));}export function imageObjectValue(_0x3ead9e,_0x156fb8,_0x4218d4){const _0x56c506=a147_0x1679,_0x24af3e=createHash('sha256')[_0x56c506(0x253)](JSON[_0x56c506(0x1ff)]([_0x3ead9e[_0x56c506(0x247)],_0x3ead9e[_0x56c506(0x21a)],_0x3ead9e['datasetCode'],_0x156fb8]))[_0x56c506(0x227)](_0x56c506(0x1fb)),_0x15f9ae={'image/png':'png','image/jpeg':'jpg','image/gif':_0x56c506(0x239)}[_0x4218d4[_0x56c506(0x217)]];if(!_0x15f9ae||!/^[0-9a-f]{64}$/[_0x56c506(0x20b)](_0x4218d4['contentHash'])||!Number[_0x56c506(0x207)](_0x4218d4['size'])||_0x4218d4[_0x56c506(0x22f)]<=0x0||_0x4218d4[_0x56c506(0x22f)]>0xa00000)throw Error(_0x56c506(0x232));const _0x5613b1=_0x4218d4['contentHash']+'.'+_0x15f9ae;return{'key':'dataset-import/'+_0x24af3e+'/'+_0x5613b1,'name':_0x5613b1,'type':_0x4218d4[_0x56c506(0x217)],'size':_0x4218d4['size']};}export function bindImageManifest(_0x594b42,_0x4dcc68,_0x552b8d){const _0x356373=a147_0x1679,_0x31c31e=new Map(_0x594b42['media']?.[_0x356373(0x23c)](_0x34540=>[_0x34540['contentHash'],_0x34540])),_0x28fdae=new Map(_0x594b42[_0x356373(0x209)]?.[_0x356373(0x23c)](_0x3d3a59=>[_0x3d3a59[_0x356373(0x257)]+':'+_0x3d3a59['field'],_0x3d3a59[_0x356373(0x200)]]));return{..._0x594b42,'rows':_0x594b42[_0x356373(0x22c)][_0x356373(0x23c)](_0x1967d3=>({..._0x1967d3,'values':Object[_0x356373(0x23a)](Object[_0x356373(0x215)](_0x1967d3[_0x356373(0x24b)])[_0x356373(0x23c)](([_0x157464,_0x1ad355])=>{const _0x137fff=_0x356373,_0x45ddbf=_0x28fdae[_0x137fff(0x242)](_0x1967d3[_0x137fff(0x257)]+':'+_0x157464);return[_0x157464,_0x45ddbf?_0x45ddbf['map'](_0x3ad57c=>{const _0x193b94=_0x137fff,_0x3dc8cf=_0x31c31e[_0x193b94(0x242)](_0x3ad57c);if(!_0x3dc8cf)throw Error(_0x193b94(0x256));const _0x17809b=imageObjectValue(_0x4dcc68,_0x552b8d,_0x3dc8cf);return _0x594b42[_0x193b94(0x248)]?.[_0x193b94(0x203)](_0x157464)?{'fileName':_0x17809b[_0x193b94(0x1fd)],'filePath':_0x17809b['key']}:_0x17809b;}):_0x1ad355];}))}))};}function a147_0x1679(_0x1ba62f,_0x1f57d2){_0x1ba62f=_0x1ba62f-0x1f3;const _0x519492=a147_0x5194();let _0x16796b=_0x519492[_0x1ba62f];return _0x16796b;}async function exists(_0x3dd282){const _0x394cef=a147_0x1679;try{return await lstat(_0x3dd282),!![];}catch(_0x417733){if(_0x417733[_0x394cef(0x21b)]===_0x394cef(0x20f))return![];throw _0x417733;}}export async function runImageExcelImport(_0x558d0d){const _0x494b41=a147_0x1679;assertImportContract(_0x558d0d[_0x494b41(0x224)],_0x558d0d['appCode'],_0x558d0d[_0x494b41(0x25a)]),assertImageImportCapability(_0x558d0d[_0x494b41(0x224)],_0x558d0d[_0x494b41(0x1f6)]);if(!Number[_0x494b41(0x1f4)](_0x558d0d[_0x494b41(0x218)])||_0x558d0d[_0x494b41(0x218)]<0x1||_0x558d0d['batchSize']>_0x558d0d[_0x494b41(0x224)]['maxBatchSize'])throw Error(_0x494b41(0x249));if(_0x558d0d[_0x494b41(0x1f6)][_0x494b41(0x214)]['length']||!_0x558d0d[_0x494b41(0x1f6)][_0x494b41(0x22c)][_0x494b41(0x23f)])throw Error(_0x494b41(0x1f9));const _0x38e991=await resolveImportOutputPath(_0x558d0d[_0x494b41(0x243)]),_0x4c2a0f=await resolveImportOutputPath(_0x558d0d[_0x494b41(0x220)]),_0x308fe7=await resolveImportOutputPath(_0x38e991+'.rows.json'),_0x4f65a6=await Promise[_0x494b41(0x235)]([_0x308fe7,_0x308fe7+_0x494b41(0x258),_0x308fe7+_0x494b41(0x212),..._0x558d0d[_0x494b41(0x228)]??[]][_0x494b41(0x23c)](resolveImportOutputPath));for(const _0x2ed272 of[_0x38e991,_0x4c2a0f,_0x38e991+_0x494b41(0x258),_0x38e991+_0x494b41(0x212)])await resolveImportOutputPath(_0x2ed272);assertImportPaths(_0x38e991,_0x4c2a0f,_0x4f65a6);const {contract:_0x8ba470,manifest:_0x4d3b35}=_0x558d0d,_0x420a80=_0x4d3b35[_0x494b41(0x229)]??[];if(new Set(_0x420a80['map'](_0x2fd5e1=>_0x2fd5e1['contentHash']))['size']!==_0x420a80[_0x494b41(0x23f)]||_0x420a80[_0x494b41(0x1fa)]((_0x4b3086,_0x44a391)=>_0x4b3086+_0x44a391['size'],0x0)>0x32*0x400*0x400||(_0x4d3b35[_0x494b41(0x209)]??[])[_0x494b41(0x1fa)]((_0xc7092f,_0x7feb57)=>_0xc7092f+_0x7feb57['hashes'][_0x494b41(0x23f)],0x0)>0x2710)throw Error(_0x494b41(0x237));for(const _0x398876 of _0x420a80)if(_0x398876[_0x494b41(0x22f)]!==_0x398876[_0x494b41(0x1fc)][_0x494b41(0x23f)]||createHash(_0x494b41(0x208))[_0x494b41(0x253)](_0x398876[_0x494b41(0x1fc)])['digest'](_0x494b41(0x1fb))!==_0x398876[_0x494b41(0x221)])throw Error(_0x494b41(0x245));previewImportBatchCount(bindImageManifest(_0x4d3b35,_0x8ba470,_0x494b41(0x252)),_0x8ba470,_0x558d0d[_0x494b41(0x218)]);const _0x5b1e05={'appCode':_0x558d0d[_0x494b41(0x21a)],'datasetCode':_0x558d0d[_0x494b41(0x25a)],'runtimeDomain':_0x558d0d['runtimeDomain'],'actorId':_0x8ba470[_0x494b41(0x247)],'fileHash':_0x4d3b35['fileHash'],'mappingHash':_0x4d3b35['mappingHash'],'schemaHash':_0x4d3b35[_0x494b41(0x219)],'remoteSchemaHash':_0x8ba470[_0x494b41(0x230)],'strategy':_0x8ba470[_0x494b41(0x1f7)],'schemaVersion':_0x8ba470[_0x494b41(0x1f3)],'batchSize':_0x558d0d[_0x494b41(0x218)],'maxBatchBytes':_0x8ba470['maxBatchBytes'],'sheet':_0x4d3b35[_0x494b41(0x234)],'parserVersion':_0x4d3b35[_0x494b41(0x216)],'imageFields':_0x4d3b35['imageFields'],'cells':_0x4d3b35['imageCells'],..._0x4d3b35['uploadFields']?.[_0x494b41(0x23f)]?{'uploadFields':_0x4d3b35['uploadFields']}:{},'media':_0x420a80[_0x494b41(0x23c)](({contentHash:_0x4b839f,type:_0xdebe7e,size:_0x2f6668})=>({'contentHash':_0x4b839f,'type':_0xdebe7e,'size':_0x2f6668})),'rows':_0x4d3b35[_0x494b41(0x22c)]},_0x33b295=await acquireLock(_0x38e991);try{let _0x1a6936;if(_0x558d0d[_0x494b41(0x22a)]){try{_0x1a6936=JSON[_0x494b41(0x259)](await readFile(_0x38e991,'utf8'));}catch{throw Error(_0x494b41(0x201));}if(_0x1a6936[_0x494b41(0x22d)]!==0x3||!/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/[_0x494b41(0x20b)](_0x1a6936['importId'])||canonical(_0x1a6936[_0x494b41(0x254)])!==canonical(_0x5b1e05)||!['media',_0x494b41(0x213),_0x494b41(0x205),_0x494b41(0x24e)][_0x494b41(0x203)](_0x1a6936[_0x494b41(0x1f5)])||!Array[_0x494b41(0x25b)](_0x1a6936[_0x494b41(0x229)])||_0x1a6936[_0x494b41(0x229)]['length']!==_0x420a80[_0x494b41(0x23f)]||_0x1a6936[_0x494b41(0x229)][_0x494b41(0x210)]((_0x43d816,_0x3bbb21)=>_0x43d816[_0x494b41(0x255)]!==_0x420a80[_0x3bbb21][_0x494b41(0x221)]||![_0x494b41(0x23b),_0x494b41(0x222)][_0x494b41(0x203)](_0x43d816[_0x494b41(0x21f)])))throw Error(_0x494b41(0x23e));if([_0x494b41(0x205),_0x494b41(0x24e)][_0x494b41(0x203)](_0x1a6936[_0x494b41(0x1f5)])&&!await exists(_0x308fe7))throw Error('Row\x20phase\x20started\x20but\x20the\x20row\x20checkpoint\x20is\x20missing;\x20stop\x20to\x20avoid\x20duplicate\x20records.');if(_0x1a6936[_0x494b41(0x1f5)]===_0x494b41(0x229)&&await exists(_0x308fe7))throw Error(_0x494b41(0x24f));}else{if(await exists(_0x38e991)||await exists(_0x308fe7))throw Error(_0x494b41(0x250));_0x1a6936={'version':0x3,'importId':randomUUID(),'binding':_0x5b1e05,'phase':'media','media':_0x420a80[_0x494b41(0x23c)](_0x2842c1=>({'hash':_0x2842c1['contentHash'],'status':_0x494b41(0x23b)}))},await saveImportJson(_0x38e991,_0x1a6936);}const _0x446b1b=(_0x5d21d8,_0x12dfb4)=>{const _0x52a610=_0x494b41;if(!_0x5d21d8||_0x5d21d8[_0x52a610(0x221)]!==_0x12dfb4[_0x52a610(0x221)])throw Error(_0x52a610(0x238));if(_0x5d21d8[_0x52a610(0x21f)]==='missing')return undefined;const _0x4e9a4f=imageObjectValue(_0x8ba470,_0x1a6936[_0x52a610(0x24a)],_0x12dfb4);if(_0x5d21d8[_0x52a610(0x21f)]!==_0x52a610(0x222)||_0x5d21d8['filePath']!==_0x4e9a4f[_0x52a610(0x231)]||_0x5d21d8['fileName']!==_0x4e9a4f[_0x52a610(0x1fd)]||_0x5d21d8[_0x52a610(0x217)]!==_0x4e9a4f[_0x52a610(0x217)]||_0x5d21d8[_0x52a610(0x22f)]!==_0x4e9a4f[_0x52a610(0x22f)])throw Error('Uploaded\x20image\x20metadata\x20changed\x20or\x20is\x20corrupt.');return _0x4e9a4f;};for(let _0x26400a=0x0;_0x26400a<_0x420a80[_0x494b41(0x23f)];_0x26400a++){const _0x85c6c0=_0x420a80[_0x26400a],_0x5cd17e=_0x1a6936['media'][_0x26400a],_0xb55dd3=imageObjectValue(_0x8ba470,_0x1a6936[_0x494b41(0x24a)],_0x85c6c0);if(_0x5cd17e[_0x494b41(0x21f)]===_0x494b41(0x222)&&canonical(_0x5cd17e[_0x494b41(0x244)])!==canonical(_0xb55dd3))throw Error(_0x494b41(0x233));let _0x34393f;if(_0x558d0d[_0x494b41(0x22a)]||_0x5cd17e[_0x494b41(0x21f)]===_0x494b41(0x222))_0x34393f=_0x446b1b(await _0x558d0d[_0x494b41(0x246)][_0x494b41(0x22b)](_0x1a6936[_0x494b41(0x24a)],_0x85c6c0),_0x85c6c0);if(!_0x34393f&&_0x5cd17e[_0x494b41(0x21f)]==='succeeded')throw Error(_0x494b41(0x236));if(!_0x34393f){try{_0x446b1b(await _0x558d0d[_0x494b41(0x246)][_0x494b41(0x240)](_0x1a6936['importId'],_0x85c6c0),_0x85c6c0);}catch(_0x4169ea){_0x34393f=_0x446b1b(await _0x558d0d[_0x494b41(0x246)][_0x494b41(0x22b)](_0x1a6936[_0x494b41(0x24a)],_0x85c6c0),_0x85c6c0);if(!_0x34393f)throw Error(_0x494b41(0x21d));}if(!_0x34393f)_0x34393f=_0x446b1b(await _0x558d0d[_0x494b41(0x246)][_0x494b41(0x22b)](_0x1a6936[_0x494b41(0x24a)],_0x85c6c0),_0x85c6c0);if(!_0x34393f)throw Error('Uploaded\x20image\x20is\x20not\x20visible.\x20Resume\x20to\x20reconcile\x20before\x20continuing.');}_0x5cd17e['status']=_0x494b41(0x222),_0x5cd17e[_0x494b41(0x244)]=_0x34393f,await saveImportJson(_0x38e991,_0x1a6936);}const _0x4f2f35=bindImageManifest(_0x4d3b35,_0x8ba470,_0x1a6936['importId']),_0x5be21=_0x1a6936[_0x494b41(0x1f5)]===_0x494b41(0x213)?await exists(_0x308fe7):_0x1a6936[_0x494b41(0x1f5)]!==_0x494b41(0x229);_0x1a6936[_0x494b41(0x1f5)]===_0x494b41(0x229)&&(_0x1a6936['phase']=_0x494b41(0x213),await saveImportJson(_0x38e991,_0x1a6936));const _0xb677e={..._0x558d0d,'manifest':_0x4f2f35,'checkpoint':_0x308fe7,'report':_0x4c2a0f,'resume':_0x5be21,'onCheckpointReady':async()=>{const _0x1abf8c=_0x494b41;_0x1a6936[_0x1abf8c(0x1f5)]=_0x1abf8c(0x205),await saveImportJson(_0x38e991,_0x1a6936);}},_0x58edd6=_0x8ba470[_0x494b41(0x1f3)]===0x2?await runAutoIdExcelImport({..._0xb677e,'reconcileImageConflicts':_0x558d0d[_0x494b41(0x22a)]===!![]&&_0x5be21}):await runExcelImport(_0xb677e);return _0x1a6936['phase']=_0x494b41(0x24e),await saveImportJson(_0x38e991,_0x1a6936),{..._0x58edd6,'checkpoint':_0x38e991,'imageCount':_0x4d3b35[_0x494b41(0x209)]?.[_0x494b41(0x1fa)]((_0x4d5a39,_0x174798)=>_0x4d5a39+_0x174798[_0x494b41(0x200)][_0x494b41(0x23f)],0x0)??0x0,'uniqueImages':_0x420a80[_0x494b41(0x23f)]};}finally{await _0x33b295();}}
@@ -1 +1 @@
1
- (function(_0x263c50,_0x441b44){const _0x1bd73a=a148_0x4324,_0x3c1b49=_0x263c50();while(!![]){try{const _0x27441b=parseInt(_0x1bd73a(0xd6))/0x1*(-parseInt(_0x1bd73a(0xd8))/0x2)+-parseInt(_0x1bd73a(0xde))/0x3+parseInt(_0x1bd73a(0xd9))/0x4*(parseInt(_0x1bd73a(0xdd))/0x5)+parseInt(_0x1bd73a(0xd3))/0x6+parseInt(_0x1bd73a(0xe5))/0x7+-parseInt(_0x1bd73a(0xd7))/0x8*(parseInt(_0x1bd73a(0xd0))/0x9)+parseInt(_0x1bd73a(0xdf))/0xa;if(_0x27441b===_0x441b44)break;else _0x3c1b49['push'](_0x3c1b49['shift']());}catch(_0x1aabbe){_0x3c1b49['push'](_0x3c1b49['shift']());}}}(a148_0x2bbb,0x2c0dc));function a148_0x4324(_0x393399,_0x2fb8cd){_0x393399=_0x393399-0xce;const _0x2bbbc3=a148_0x2bbb();let _0x4324d5=_0x2bbbc3[_0x393399];return _0x4324d5;}export function assertDatasetImportTarget(_0xa321d0,_0x761745,_0x359934){const _0x2d1178=a148_0x4324;if(!_0xa321d0||typeof _0xa321d0!==_0x2d1178(0xce)||Array[_0x2d1178(0xda)](_0xa321d0))throw Error('Dataset\x20metadata\x20is\x20missing.');const _0x23d22=[_0xa321d0[_0x2d1178(0xd5)],_0xa321d0[_0x2d1178(0xe2)],_0xa321d0[_0x2d1178(0xd1)]?.[_0x2d1178(0xd4)]][_0x2d1178(0xe0)](_0x7d7a82=>_0x7d7a82!=null);if(!_0x23d22[_0x2d1178(0xe3)]||_0x23d22[_0x2d1178(0xdb)](_0x171b95=>_0x171b95!==_0x359934)||_0xa321d0[_0x2d1178(0xcf)]!=null&&_0xa321d0['appCode']!==_0x761745||_0xa321d0[_0x2d1178(0xd1)]?.['appCode']!=null&&_0xa321d0['dataset'][_0x2d1178(0xcf)]!==_0x761745)throw Error('Dataset\x20metadata\x20does\x20not\x20match\x20the\x20requested\x20target.');const _0x4bed67=[_0xa321d0[_0x2d1178(0xd2)],_0xa321d0[_0x2d1178(0xd1)]?.[_0x2d1178(0xe1)]][_0x2d1178(0xe0)](_0x2e6e34=>_0x2e6e34!=null);if(_0x4bed67[_0x2d1178(0xdb)](_0x303bfd=>typeof _0x303bfd!==_0x2d1178(0xdc)||_0x303bfd!==_0x4bed67[0x0]))throw Error(_0x2d1178(0xe4));return _0x4bed67[0x0];}function a148_0x2bbb(){const _0x82a6be=['4240660aHkTGo','filter','sourceType','modelCode','length','Dataset\x20source\x20metadata\x20is\x20inconsistent.','1167516klkZSR','object','appCode','58761ofyKbr','dataset','source','831936BfrPgi','datasetCode','code','14845xYtdpL','48NUoZfV','34vLBagl','12ewWDzF','isArray','some','string','68695Xjrvyj','896232OLEnpN'];a148_0x2bbb=function(){return _0x82a6be;};return a148_0x2bbb();}
1
+ function a148_0xc17b(_0x2db5eb,_0x48be8b){_0x2db5eb=_0x2db5eb-0x170;const _0x571a6f=a148_0x571a();let _0xc17b87=_0x571a6f[_0x2db5eb];return _0xc17b87;}(function(_0x400251,_0x1443b7){const _0x5e4f6d=a148_0xc17b,_0x1eda82=_0x400251();while(!![]){try{const _0x176422=parseInt(_0x5e4f6d(0x171))/0x1+-parseInt(_0x5e4f6d(0x188))/0x2*(parseInt(_0x5e4f6d(0x17a))/0x3)+-parseInt(_0x5e4f6d(0x172))/0x4*(-parseInt(_0x5e4f6d(0x174))/0x5)+parseInt(_0x5e4f6d(0x182))/0x6*(-parseInt(_0x5e4f6d(0x173))/0x7)+parseInt(_0x5e4f6d(0x17d))/0x8+parseInt(_0x5e4f6d(0x179))/0x9*(parseInt(_0x5e4f6d(0x170))/0xa)+parseInt(_0x5e4f6d(0x181))/0xb*(-parseInt(_0x5e4f6d(0x178))/0xc);if(_0x176422===_0x1443b7)break;else _0x1eda82['push'](_0x1eda82['shift']());}catch(_0x41ffe9){_0x1eda82['push'](_0x1eda82['shift']());}}}(a148_0x571a,0x28917));export function assertDatasetImportTarget(_0x3e2f5f,_0x1e97e7,_0x28fe89){const _0x52c2bc=a148_0xc17b;if(!_0x3e2f5f||typeof _0x3e2f5f!=='object'||Array[_0x52c2bc(0x189)](_0x3e2f5f))throw Error(_0x52c2bc(0x180));const _0x406522=[_0x3e2f5f[_0x52c2bc(0x187)],_0x3e2f5f[_0x52c2bc(0x175)],_0x3e2f5f[_0x52c2bc(0x183)]?.[_0x52c2bc(0x184)]][_0x52c2bc(0x17b)](_0x1e4ac3=>_0x1e4ac3!=null);if(!_0x406522[_0x52c2bc(0x176)]||_0x406522[_0x52c2bc(0x17f)](_0x32e46b=>_0x32e46b!==_0x28fe89)||_0x3e2f5f[_0x52c2bc(0x186)]!=null&&_0x3e2f5f[_0x52c2bc(0x186)]!==_0x1e97e7||_0x3e2f5f[_0x52c2bc(0x183)]?.[_0x52c2bc(0x186)]!=null&&_0x3e2f5f[_0x52c2bc(0x183)]['appCode']!==_0x1e97e7)throw Error('Dataset\x20metadata\x20does\x20not\x20match\x20the\x20requested\x20target.');const _0x370f48=[_0x3e2f5f[_0x52c2bc(0x17e)],_0x3e2f5f[_0x52c2bc(0x183)]?.[_0x52c2bc(0x177)]][_0x52c2bc(0x17b)](_0x56f9d0=>_0x56f9d0!=null);if(_0x370f48[_0x52c2bc(0x17f)](_0xbe9bf6=>typeof _0xbe9bf6!==_0x52c2bc(0x17c)||_0xbe9bf6!==_0x370f48[0x0]))throw Error(_0x52c2bc(0x185));return _0x370f48[0x0];}function a148_0x571a(){const _0x574264=['Dataset\x20metadata\x20is\x20missing.','8503BAzmlx','12tsThsD','dataset','datasetCode','Dataset\x20source\x20metadata\x20is\x20inconsistent.','appCode','code','4CWYELM','isArray','925910LegoRb','216294KOJkQp','11692qCQDBZ','188363UHzBXV','145vaArZU','modelCode','length','sourceType','6672NzHkqF','27HQelpZ','267171bivYQc','filter','string','1992424FOiTYJ','source','some'];a148_0x571a=function(){return _0x574264;};return a148_0x571a();}
@@ -1 +1 @@
1
- function a149_0x37d1(_0x4fbea7,_0x22d3ee){_0x4fbea7=_0x4fbea7-0x182;const _0x578c26=a149_0x578c();let _0x37d10b=_0x578c26[_0x4fbea7];return _0x37d10b;}function a149_0x578c(){const _0xd8adb=['6BXOVUk','156141tNSPQJ','1765708jUNThM','push','279485bTHsLu','1047676pzEgIE','6zYwNFK','stringify','schemaFingerprint','4150953tfEntq','rows','schemaVersion','values','rowNumber','\x20exceeds\x20the\x20import\x20request\x20size\x20limit.','3071MUlwAn','Excel\x20row\x20','10rMgqnu','length','byteLength','maxBatchBytes','2098064HubBww','utf8'];a149_0x578c=function(){return _0xd8adb;};return a149_0x578c();}(function(_0x2cbeab,_0x1af645){const _0x23c79d=a149_0x37d1,_0xf61905=_0x2cbeab();while(!![]){try{const _0x11f673=parseInt(_0x23c79d(0x186))/0x1*(parseInt(_0x23c79d(0x18e))/0x2)+-parseInt(_0x23c79d(0x18f))/0x3+parseInt(_0x23c79d(0x193))/0x4+-parseInt(_0x23c79d(0x192))/0x5+parseInt(_0x23c79d(0x194))/0x6*(parseInt(_0x23c79d(0x190))/0x7)+parseInt(_0x23c79d(0x18c))/0x8+-parseInt(_0x23c79d(0x197))/0x9*(parseInt(_0x23c79d(0x188))/0xa);if(_0x11f673===_0x1af645)break;else _0xf61905['push'](_0xf61905['shift']());}catch(_0x37b8c9){_0xf61905['push'](_0xf61905['shift']());}}}(a149_0x578c,0x34d99));export function previewImportBatchCount(_0x36a6c8,_0x15bb01,_0xab25d3){const _0x15db31=a149_0x37d1,_0x25b92c=_0x28bb64=>_0x28bb64['map'](_0x4bd377=>_0x15bb01[_0x15db31(0x182)]===0x1?{..._0x36a6c8['rows'][_0x4bd377][_0x15db31(0x183)],'id':-0x1fffffffffffff}:_0x36a6c8['rows'][_0x4bd377][_0x15db31(0x183)]),_0x491d38=_0x3dd828=>Buffer[_0x15db31(0x18a)](JSON[_0x15db31(0x195)]({'schemaFingerprint':_0x15bb01[_0x15db31(0x196)],..._0x15bb01['schemaVersion']===0x2?{'taskId':0x2**0x34}:{},'items':_0x25b92c(_0x3dd828)}),_0x15db31(0x18d));let _0x3727eb=0x0,_0x1765c3=[];for(let _0x115fca=0x0;_0x115fca<_0x36a6c8[_0x15db31(0x198)][_0x15db31(0x189)];_0x115fca++){if(_0x491d38([_0x115fca])>_0x15bb01['maxBatchBytes'])throw Error(_0x15db31(0x187)+_0x36a6c8[_0x15db31(0x198)][_0x115fca][_0x15db31(0x184)]+_0x15db31(0x185));_0x1765c3[_0x15db31(0x189)]&&(_0x1765c3['length']===_0xab25d3||_0x491d38([..._0x1765c3,_0x115fca])>_0x15bb01[_0x15db31(0x18b)])&&(_0x3727eb++,_0x1765c3=[]),_0x1765c3[_0x15db31(0x191)](_0x115fca);}return _0x3727eb+Number(_0x1765c3[_0x15db31(0x189)]>0x0);}
1
+ function a149_0x1544(){const _0x1b5784=['schemaVersion','\x20exceeds\x20the\x20import\x20request\x20size\x20limit.','values','121424bWwvLJ','schemaFingerprint','144912eIbiUr','Excel\x20row\x20','utf8','195636lBKmen','map','401086nAuPAV','length','162295sWrESM','636XMmqGN','rowNumber','6384LCWRKo','4573270KbiSJZ','66KFGWAv','byteLength','stringify','push','maxBatchBytes','117dUVzdF','rows'];a149_0x1544=function(){return _0x1b5784;};return a149_0x1544();}(function(_0x26c5d1,_0x5abed3){const _0x59b86f=a149_0x1465,_0x39b1c1=_0x26c5d1();while(!![]){try{const _0x77659e=parseInt(_0x59b86f(0x150))/0x1+-parseInt(_0x59b86f(0x14b))/0x2+-parseInt(_0x59b86f(0x13f))/0x3*(-parseInt(_0x59b86f(0x13d))/0x4)+parseInt(_0x59b86f(0x154))/0x5*(parseInt(_0x59b86f(0x141))/0x6)+parseInt(_0x59b86f(0x152))/0x7+parseInt(_0x59b86f(0x14d))/0x8*(-parseInt(_0x59b86f(0x146))/0x9)+-parseInt(_0x59b86f(0x140))/0xa;if(_0x77659e===_0x5abed3)break;else _0x39b1c1['push'](_0x39b1c1['shift']());}catch(_0x252819){_0x39b1c1['push'](_0x39b1c1['shift']());}}}(a149_0x1544,0x2f8fe));function a149_0x1465(_0x376b9b,_0x1c0be4){_0x376b9b=_0x376b9b-0x13d;const _0x15441d=a149_0x1544();let _0x1465d8=_0x15441d[_0x376b9b];return _0x1465d8;}export function previewImportBatchCount(_0x53a09a,_0x1808b7,_0x771b57){const _0x14495e=a149_0x1465,_0x17739c=_0xc64d88=>_0xc64d88[_0x14495e(0x151)](_0x525bed=>_0x1808b7[_0x14495e(0x148)]===0x1?{..._0x53a09a['rows'][_0x525bed]['values'],'id':-0x1fffffffffffff}:_0x53a09a[_0x14495e(0x147)][_0x525bed][_0x14495e(0x14a)]),_0x285387=_0x191b3b=>Buffer[_0x14495e(0x142)](JSON[_0x14495e(0x143)]({'schemaFingerprint':_0x1808b7[_0x14495e(0x14c)],..._0x1808b7[_0x14495e(0x148)]===0x2?{'taskId':0x2**0x34}:{},'items':_0x17739c(_0x191b3b)}),_0x14495e(0x14f));let _0x25d4de=0x0,_0x121005=[];for(let _0x5088b0=0x0;_0x5088b0<_0x53a09a[_0x14495e(0x147)][_0x14495e(0x153)];_0x5088b0++){if(_0x285387([_0x5088b0])>_0x1808b7[_0x14495e(0x145)])throw Error(_0x14495e(0x14e)+_0x53a09a[_0x14495e(0x147)][_0x5088b0][_0x14495e(0x13e)]+_0x14495e(0x149));_0x121005[_0x14495e(0x153)]&&(_0x121005['length']===_0x771b57||_0x285387([..._0x121005,_0x5088b0])>_0x1808b7[_0x14495e(0x145)])&&(_0x25d4de++,_0x121005=[]),_0x121005[_0x14495e(0x144)](_0x5088b0);}return _0x25d4de+Number(_0x121005[_0x14495e(0x153)]>0x0);}