@lovrabet/lovrabet-cli 2.3.8-beta.5 → 2.3.8-beta.6

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 (186) 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 +10 -2
  185. package/skills/lovrabet/guides/development-intent-handoff.md +58 -0
  186. package/skills/lovrabet.manifest.json +4 -3
@@ -1 +1 @@
1
- const a144_0x38cfed=a144_0x2270;(function(_0x3c727d,_0x2dd03b){const _0x53f523=a144_0x2270,_0x2e406e=_0x3c727d();while(!![]){try{const _0x5527c8=parseInt(_0x53f523(0x1b5))/0x1+-parseInt(_0x53f523(0x1bc))/0x2*(parseInt(_0x53f523(0x1a9))/0x3)+parseInt(_0x53f523(0x198))/0x4+-parseInt(_0x53f523(0x115))/0x5+-parseInt(_0x53f523(0x180))/0x6+-parseInt(_0x53f523(0xfa))/0x7*(-parseInt(_0x53f523(0x1dc))/0x8)+parseInt(_0x53f523(0x18b))/0x9;if(_0x5527c8===_0x2dd03b)break;else _0x2e406e['push'](_0x2e406e['shift']());}catch(_0x32dbb4){_0x2e406e['push'](_0x2e406e['shift']());}}}(a144_0x2378,0xaedbe));import{readFile,stat}from'node:fs/promises';import{createHash}from'node:crypto';import a144_0x3ef6fe from'node:path';import{StringDecoder}from'node:string_decoder';function a144_0x2270(_0x184720,_0xf43be6){_0x184720=_0x184720-0xf9;const _0x2378a2=a144_0x2378();let _0x227047=_0x2378a2[_0x184720];return _0x227047;}import{createRequire}from'node:module';import{SaxesParser}from'saxes';import a144_0x1fd31e from'exceljs';import a144_0x5d7d6d 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_0x38cfed(0x1a2),a144_0x38cfed(0x12f),'datasetId','creatorId',a144_0x38cfed(0x1a1),a144_0x38cfed(0x10f),'modifierName',a144_0x38cfed(0x1cb),a144_0x38cfed(0x16b),'deleted']),TYPES=new Set([a144_0x38cfed(0x1da),a144_0x38cfed(0x1a3),a144_0x38cfed(0x1de),a144_0x38cfed(0x18e),a144_0x38cfed(0x12e),a144_0x38cfed(0x177),a144_0x38cfed(0x186),a144_0x38cfed(0x1e5),a144_0x38cfed(0x159),'image','upload']),isImageContainer=_0x2eea41=>['image',a144_0x38cfed(0x13d)]['includes'](_0x2eea41[a144_0x38cfed(0x19d)]()),hash=_0x24b8d1=>createHash(a144_0x38cfed(0x1d4))['update'](_0x24b8d1)['digest'](a144_0x38cfed(0x151)),require=createRequire(import.meta.url),DefinedNameXform=require(a144_0x38cfed(0x1a7)),nameCoordinates=require(a144_0x38cfed(0x116)),ABSOLUTE_NAME_RANGE=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/,excelRequire=createRequire(require[a144_0x38cfed(0x113)](a144_0x38cfed(0x143))),zipRequire=createRequire(excelRequire[a144_0x38cfed(0x113)](a144_0x38cfed(0x134))),ZipEntry=zipRequire('./zipEntry'),zipReader=zipRequire(a144_0x38cfed(0x1cd)),zipUtf8=zipRequire(a144_0x38cfed(0x1a5)),zipPaths=zipRequire(a144_0x38cfed(0x141));function centralDirectoryEnd(_0x21379b,_0x412fe6){const _0x5d72d7=a144_0x38cfed,_0x3d8b89=()=>new Error('Invalid\x20ZIP\x20central\x20directory\x20layout.'),_0x34f84d=_0x21379b[_0x5d72d7(0x142)](Buffer[_0x5d72d7(0x16f)]([0x50,0x4b,0x5,0x6]));if(_0x34f84d<0x0||_0x34f84d+0x16>_0x21379b[_0x5d72d7(0x14e)]||_0x34f84d+0x16+_0x21379b[_0x5d72d7(0x104)](_0x34f84d+0x14)!==_0x21379b[_0x5d72d7(0x14e)])throw _0x3d8b89();let _0x14b7f3=_0x21379b[_0x5d72d7(0x104)](_0x34f84d+0xa),_0x48c2c2=_0x21379b[_0x5d72d7(0x1ae)](_0x34f84d+0xc),_0x2f1ecc=_0x21379b[_0x5d72d7(0x1ae)](_0x34f84d+0x10),_0x114da4=_0x34f84d;const _0x260a59=_0x34f84d-0x14,_0x42aab6=_0x260a59>=0x0&&_0x21379b[_0x5d72d7(0x1ae)](_0x260a59)===0x7064b50,_0x235fcb=[0x4,0x6,0x8,0xa][_0x5d72d7(0x1bf)](_0x2e5275=>_0x21379b[_0x5d72d7(0x104)](_0x34f84d+_0x2e5275)===0xffff)||_0x48c2c2===0xffffffff||_0x2f1ecc===0xffffffff;if(_0x42aab6!==_0x235fcb)throw _0x3d8b89();if(_0x42aab6){if(_0x21379b[_0x5d72d7(0x142)](Buffer[_0x5d72d7(0x16f)]([0x50,0x4b,0x6,0x7]))!==_0x260a59)throw _0x3d8b89();const _0x36d806=_0x40359f=>{const _0x543606=_0x5d72d7,_0x516323=Number(_0x21379b[_0x543606(0x136)](_0x40359f));if(!Number[_0x543606(0x1df)](_0x516323))throw _0x3d8b89();return _0x516323;};_0x114da4=_0x36d806(_0x260a59+0x8);if(_0x21379b['readUInt32LE'](_0x260a59+0x4)!==0x0||_0x21379b[_0x5d72d7(0x1ae)](_0x260a59+0x10)!==0x1||_0x114da4>_0x260a59-0x38||_0x21379b[_0x5d72d7(0x1ae)](_0x114da4)!==0x6064b50||_0x36d806(_0x114da4+0x4)!==0x2c||_0x114da4+0x38!==_0x260a59||_0x21379b[_0x5d72d7(0x1ae)](_0x114da4+0x10)!==0x0||_0x21379b['readUInt32LE'](_0x114da4+0x14)!==0x0)throw _0x3d8b89();_0x14b7f3=_0x36d806(_0x114da4+0x20),_0x48c2c2=_0x36d806(_0x114da4+0x28),_0x2f1ecc=_0x36d806(_0x114da4+0x30);if(_0x36d806(_0x114da4+0x18)!==_0x14b7f3)throw _0x3d8b89();}else{if(_0x21379b[_0x5d72d7(0x104)](_0x34f84d+0x4)!==0x0||_0x21379b[_0x5d72d7(0x104)](_0x34f84d+0x6)!==0x0||_0x21379b[_0x5d72d7(0x104)](_0x34f84d+0x8)!==_0x14b7f3)throw _0x3d8b89();}const _0x23124f=_0x412fe6[_0x5d72d7(0x160)];if(_0x2f1ecc!==_0x23124f||_0x14b7f3!==_0x412fe6[_0x5d72d7(0x14f)]||_0x2f1ecc+_0x48c2c2!==_0x114da4)throw _0x3d8b89();return _0x114da4;}function consumerEntryName(_0xc9566c,_0x39adef){const _0xabe2b5=a144_0x38cfed;if(_0x39adef[_0xabe2b5(0x1c2)][_0xabe2b5(0x129)](_0x34030c=>_0x34030c['id']===0x1)[_0xabe2b5(0x14e)]>0x1)throw new Error('Duplicate\x20ZIP64\x20extended\x20information\x20fields\x20are\x20not\x20supported.');const _0x5c0c37=_0x39adef,_0x4559be=_0x39adef[_0xabe2b5(0x10a)];if(!Buffer[_0xabe2b5(0x111)](_0x5c0c37[_0xabe2b5(0x149)])||!Buffer[_0xabe2b5(0x111)](_0x5c0c37[_0xabe2b5(0x176)])||!Buffer[_0xabe2b5(0x111)](_0x5c0c37[_0xabe2b5(0x1dd)])||!Number[_0xabe2b5(0x1df)](_0x4559be)||_0x4559be<0x0||_0x4559be>_0xc9566c[_0xabe2b5(0x14e)]-0x1e||_0xc9566c['readUInt32LE'](_0x4559be)!==0x4034b50)throw new Error(_0xabe2b5(0x188));const _0x42126c=_0x4559be+0x1e+_0xc9566c['readUInt16LE'](_0x4559be+0x1a),_0x217542=_0x42126c+_0xc9566c[_0xabe2b5(0x104)](_0x4559be+0x1c)+_0x39adef[_0xabe2b5(0x199)];if(!Number['isSafeInteger'](_0x217542)||_0x217542>_0xc9566c[_0xabe2b5(0x14e)])throw new Error('Invalid\x20ZIP\x20local\x20file\x20header.');if(_0x42126c>_0xc9566c['length']||!_0xc9566c[_0xabe2b5(0x13f)](_0x4559be+0x1e,_0x42126c)[_0xabe2b5(0x19a)](_0x5c0c37[_0xabe2b5(0x149)]))throw new Error('ZIP\x20local\x20and\x20central\x20entry\x20names\x20must\x20match.');const _0x19cb48=new ZipEntry({},{'decodeFileName':zipUtf8[_0xabe2b5(0x1be)]});_0x19cb48[_0xabe2b5(0x1b2)]=_0x39adef[_0xabe2b5(0x133)],_0x19cb48[_0xabe2b5(0x178)]=_0x5c0c37[_0xabe2b5(0x149)],_0x19cb48[_0xabe2b5(0x158)]=_0x5c0c37[_0xabe2b5(0x1dd)],_0x19cb48[_0xabe2b5(0x13b)]=_0x5c0c37[_0xabe2b5(0x176)]['length'],_0x19cb48[_0xabe2b5(0x124)](zipReader(_0x5c0c37[_0xabe2b5(0x176)])),_0x19cb48[_0xabe2b5(0x114)](),_0x19cb48['versionMadeBy']=_0x39adef['versionMadeBy'],_0x19cb48[_0xabe2b5(0x1e4)]=_0x39adef[_0xabe2b5(0x1e4)],_0x19cb48[_0xabe2b5(0x174)]();const _0x3a197e=_0x19cb48[_0xabe2b5(0xf9)]||Boolean((_0x19cb48[_0xabe2b5(0x107)]??0x0)&0x4000),_0x5db95e=zipPaths[_0xabe2b5(0x113)](_0x19cb48[_0xabe2b5(0x135)]),_0x41a4e4=_0x5db95e['startsWith']('/')?_0x5db95e[_0xabe2b5(0x175)](0x1):_0x5db95e;return{'name':_0x41a4e4,'original':_0x19cb48['fileNameStr'],'directory':_0x3a197e};}export function normalizeImportFields(_0x195758){const _0x4f6dc0=a144_0x38cfed;if(!_0x195758||(_0x195758[_0x4f6dc0(0x1c3)]??_0x195758[_0x4f6dc0(0x11b)]?.[_0x4f6dc0(0x119)])!=='METADATA')throw new Error(_0x4f6dc0(0x18c));const _0x4e4b73=Array[_0x4f6dc0(0x15c)](_0x195758[_0x4f6dc0(0x1d7)]),_0x3eb2e2=_0x4e4b73?_0x195758[_0x4f6dc0(0x1d7)]:_0x195758[_0x4f6dc0(0x126)];if(!Array[_0x4f6dc0(0x15c)](_0x3eb2e2)||_0x3eb2e2['length']===0x0)throw new Error(_0x4f6dc0(0x195));const _0x214e2c=[],_0x517217=new Set();for(const _0x30a35a of _0x3eb2e2){if(_0x30a35a[_0x4f6dc0(0x1e3)]===!![])continue;let _0x11f409=_0x30a35a[_0x4f6dc0(0x1b6)]??{};if(!_0x4e4b73&&typeof _0x11f409===_0x4f6dc0(0x1da)){try{_0x11f409=JSON[_0x4f6dc0(0x156)](_0x11f409);}catch{throw new Error(_0x4f6dc0(0x168));}if(!_0x11f409||typeof _0x11f409!==_0x4f6dc0(0x19c)||Array[_0x4f6dc0(0x15c)](_0x11f409))throw new Error(_0x4f6dc0(0x168));}const _0x1202bc=_0x4e4b73?_0x30a35a[_0x4f6dc0(0x1c1)]:_0x30a35a['code'],_0x209016=_0x4e4b73?_0x30a35a['doType']:_0x30a35a[_0x4f6dc0(0x137)]??_0x30a35a['dataType'];if(typeof _0x1202bc!==_0x4f6dc0(0x1da)||!_0x1202bc||typeof _0x209016!=='string'||_0x517217[_0x4f6dc0(0x19b)](_0x1202bc))throw new Error(_0x4f6dc0(0x194));if(_0x209016['toLowerCase']()==='serial_number')throw new Error('Unsupported\x20dataset\x20field\x20type:\x20serial_number.');_0x517217[_0x4f6dc0(0x169)](_0x1202bc);const _0xe0659e=_0x4e4b73?_0x30a35a:_0x11f409,_0x47e95d={'code':_0x1202bc,'type':_0x209016,'required':_0xe0659e[_0x4f6dc0(0x1a8)]===!![]};if(RESERVED[_0x4f6dc0(0x19b)](_0x1202bc)||_0xe0659e[_0x4f6dc0(0x145)]===!![]||_0xe0659e[_0x4f6dc0(0x1b4)]===!![])_0x47e95d[_0x4f6dc0(0x145)]=!![];_0x214e2c[_0x4f6dc0(0x164)](_0x47e95d);}return _0x214e2c;}async function checkArchive(_0x235842,_0x4f6b1b){await new Promise((_0x5ad37c,_0x5568bd)=>{const _0x8b363f=a144_0x2270;a144_0x5d7d6d[_0x8b363f(0x14c)](_0x235842,{'lazyEntries':!![],'validateEntrySizes':!![]},(_0x7662,_0x43df6a)=>{const _0x4519bb=_0x8b363f;if(_0x7662||!_0x43df6a){_0x5568bd(_0x7662??new Error('Invalid\x20XLSX\x20archive.'));return;}let _0x328168;try{_0x328168=centralDirectoryEnd(_0x235842,_0x43df6a);}catch(_0x2b10bd){_0x43df6a[_0x4519bb(0x108)](),_0x5568bd(_0x2b10bd);return;}let _0x2bde1e=0x0,_0x2ab852=0x0,_0x1a099c=0x0,_0x562747=0x0,_0x4b9237=0x0,_0x5824cf=0x0,_0x29ba43=0x0,_0x3f237e=0x0,_0x2c477c=0x0,_0x278baf=![],_0x1907ba;const _0x2538f8=new Set(),_0x3e4159=_0xce15b6=>{if(_0x278baf)return;_0x278baf=!![],_0x1907ba?.['destroy'](),_0x43df6a['close'](),_0x5568bd(_0xce15b6);},_0x276d0b=(_0x2cc6dc,_0x2b544c)=>{const _0x41858c=_0x4519bb;if(!_0x2cc6dc||!/^\d+$/[_0x41858c(0x132)](_0x2cc6dc))throw new Error(_0x41858c(0x1ac));const _0x369148=Number(_0x2cc6dc);if(!Number[_0x41858c(0x1df)](_0x369148)||_0x369148<0x1||_0x369148>_0x2b544c)throw new Error(_0x41858c(0x17a)+_0x2b544c+'.');return _0x369148;},_0x527f53=(_0x1d3546,_0x233dfe=MAX_XML_COLUMNS)=>{const _0x2382f7=_0x4519bb,_0x4d5fe6=/^\$?([A-Z]{1,3})\$?(\d+)$/[_0x2382f7(0x17f)](_0x1d3546);if(!_0x4d5fe6)throw new Error(_0x2382f7(0x1aa));let _0x191eae=0x0;for(const _0x575a53 of _0x4d5fe6[0x1])_0x191eae=_0x191eae*0x1a+_0x575a53[_0x2382f7(0x163)](0x0)-0x40;if(_0x191eae>_0x233dfe)throw new Error(_0x2382f7(0x1d9)+_0x233dfe+_0x2382f7(0x16a));return{'row':_0x276d0b(_0x4d5fe6[0x2],MAX_XML_ROWS),'col':_0x191eae};},_0x30a03c=_0x19802c=>{const _0x363903=_0x4519bb;if(_0x19802c[_0x363903(0x1c1)]===_0x363903(0x153)||_0x19802c[_0x363903(0x1c1)]==='_xlnm.Print_Titles')return;for(const _0x714db8 of _0x19802c['ranges']){if(!ABSOLUTE_NAME_RANGE[_0x363903(0x132)](_0x714db8[_0x363903(0x102)]('!')[_0x363903(0x138)]()||''))continue;const _0x55ce40=nameCoordinates[_0x363903(0x1e6)](_0x714db8),_0x39d55b=_0x363903(0x10c)in _0x55ce40,_0x3a7f82=_0x39d55b?[_0x55ce40['top'],_0x55ce40[_0x363903(0x196)]]:[_0x55ce40['row']],_0x2defdf=_0x39d55b?[_0x55ce40[_0x363903(0x1e7)],_0x55ce40['right']]:[_0x55ce40[_0x363903(0x146)]],_0x395dac=(_0x55598c,_0x5451a9)=>Number[_0x363903(0x1df)](_0x55598c)&&_0x55598c>=0x1&&_0x55598c<=_0x5451a9;if(!_0x3a7f82[_0x363903(0x181)](_0x58224a=>_0x395dac(_0x58224a,MAX_XML_ROWS))||!_0x2defdf[_0x363903(0x181)](_0x1f834f=>_0x395dac(_0x1f834f,MAX_XML_COLUMNS)))throw new Error(_0x363903(0x16e));_0x29ba43+=_0x39d55b?(_0x55ce40[_0x363903(0x196)]-_0x55ce40[_0x363903(0x10c)]+0x1)*(_0x55ce40[_0x363903(0x10b)]-_0x55ce40[_0x363903(0x1e7)]+0x1):0x1;if(_0x29ba43>MAX_ROWS)throw new Error('Workbook\x20defined\x20name\x20work\x20exceeds\x20100000.');}};_0x43df6a['on']('error',_0x3e4159),_0x43df6a['on']('entry',_0xe7cb60=>{const _0x4d0d1f=_0x4519bb;if(_0x278baf)return;if(++_0x1a099c>0x2710||(_0x2bde1e+=_0xe7cb60[_0x4d0d1f(0x1c7)])>MAX_EXPANDED){_0x3e4159(new Error('XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.'));return;}let _0x436052;try{_0x436052=consumerEntryName(_0x235842,_0xe7cb60);}catch(_0x20af69){_0x3e4159(_0x20af69);return;}if(_0x436052['directory']){_0x43df6a[_0x4d0d1f(0x187)]();return;}const _0x31beb8=_0x436052[_0x4d0d1f(0x1c1)];if(_0x4f6b1b&&(_0x31beb8!==_0x436052[_0x4d0d1f(0xfd)]||_0x2538f8[_0x4d0d1f(0x19b)](_0x31beb8)||_0x31beb8[_0x4d0d1f(0xff)]('/')||_0x31beb8[_0x4d0d1f(0x13a)]('\x5c'))){_0x3e4159(new Error('Non-canonical\x20or\x20duplicate\x20image\x20archive\x20entry.'));return;}if(_0x31beb8!==_0x436052[_0x4d0d1f(0xfd)]&&(_0x31beb8===_0x4d0d1f(0x147)||/xl\/worksheets\/sheet(\d+)[.]xml/[_0x4d0d1f(0x132)](_0x31beb8))){_0x3e4159(new Error(_0x4d0d1f(0x1a0)));return;}const _0x57aa4a=_0x31beb8===_0x4d0d1f(0x147);if(_0x57aa4a&&_0x2538f8[_0x4d0d1f(0x19b)](_0x31beb8)){_0x3e4159(new Error(_0x4d0d1f(0x105)));return;}_0x2538f8[_0x4d0d1f(0x169)](_0x31beb8);const _0x23b560=/xl\/worksheets\/sheet(\d+)[.]xml/[_0x4d0d1f(0x132)](_0x31beb8);if(_0x23b560&&!/^xl\/worksheets\/sheet\d+[.]xml$/['test'](_0x31beb8)){_0x3e4159(new Error(_0x4d0d1f(0x15e)));return;}_0x43df6a[_0x4d0d1f(0x150)](_0xe7cb60,(_0x21766d,_0x359fa1)=>{const _0x5b31d2=_0x4d0d1f;if(_0x278baf){_0x359fa1?.[_0x5b31d2(0x1c0)]();return;}if(_0x21766d||!_0x359fa1){_0x3e4159(_0x21766d??new Error(_0x5b31d2(0x154)));return;}_0x1907ba=_0x359fa1;const _0x45ca72=_0x4f6b1b?[]:undefined,_0x416971=_0x4f6b1b&&/[.](xml|rels)$/[_0x5b31d2(0x132)](_0x31beb8)?new StringDecoder('utf8'):undefined,_0x29ac55=_0x416971?new SaxesParser({'xmlns':![]}):undefined,_0x52d4fc=()=>{const _0x10e401=_0x5b31d2;if(++_0x2c477c>0x1e8480)throw Error(_0x10e401(0x14b));};_0x29ac55?.['on']('doctype',()=>{const _0x95cb97=_0x5b31d2;throw Error(_0x95cb97(0x123));}),_0x29ac55?.['on'](_0x5b31d2(0x16c),()=>{const _0x40346a=_0x5b31d2;_0x52d4fc();if(++_0x3f237e>0x7a120)throw Error(_0x40346a(0x14d));}),_0x29ac55?.['on']('text',_0x52d4fc),_0x29ac55?.['on']('closetag',_0x52d4fc),_0x29ac55?.['on'](_0x5b31d2(0x1ca),_0x1e9671=>{throw _0x1e9671;});const _0x5c6d60=_0x23b560||_0x57aa4a?new StringDecoder(_0x5b31d2(0x157)):undefined,_0x5471b2=_0x23b560||_0x57aa4a?new SaxesParser({'xmlns':![]}):undefined;let _0x5f4536,_0xa064ed=0x0,_0x29b3a8=0x0,_0x928e99,_0x503900,_0x439c0d=![],_0x55e067=![],_0x4b189a,_0x56ebc2,_0x38ab19,_0x16ff64=![];const _0x1769fb=[],_0x4078d1=new Set();let _0x3ccb04;const _0x27d559=(_0x42b62d,_0x3f564e=0x0)=>{const _0x13021e=_0x5b31d2;_0x4b9237+=_0x3f564e+Math[_0x13021e(0x100)](0x0,_0x42b62d-_0x29b3a8),_0x29b3a8=Math[_0x13021e(0x100)](_0x29b3a8,_0x42b62d);if(_0x4b9237>MAX_ROWS)throw new Error(_0x13021e(0x17c));};_0x5471b2?.['on'](_0x5b31d2(0x16c),_0x318c04=>{const _0x27f15d=_0x5b31d2;if(_0x57aa4a){if(!_0x5f4536&&_0x318c04[_0x27f15d(0x1c1)]===_0x27f15d(0x128))_0x5f4536=new DefinedNameXform();_0x5f4536?.[_0x27f15d(0x15b)](_0x318c04);return;}if(_0x318c04[_0x27f15d(0x1c1)]===_0x27f15d(0x127)){if(_0x55e067)throw new Error(_0x27f15d(0x11d));_0x276d0b(_0x318c04[_0x27f15d(0x193)]['r'],MAX_XML_ROWS),_0x928e99=undefined,_0x38ab19=undefined,_0x16ff64=![];}else{if(_0x318c04['name']==='c'){if(_0x55e067)throw new Error(_0x27f15d(0x1d1));_0x55e067=!![],_0x439c0d=Boolean(Number[_0x27f15d(0x1c6)](_0x318c04[_0x27f15d(0x193)]['s']??'',0xa)),_0x3ccb04=undefined,_0x4b189a=_0x318c04[_0x27f15d(0x193)]['r']||undefined,_0x56ebc2=_0x4b189a?_0x527f53(_0x4b189a):undefined;if(_0x56ebc2)_0x503900=_0x56ebc2;else _0x503900=_0x928e99?{'row':_0x928e99['row'],'col':_0x928e99[_0x27f15d(0x146)]+0x1}:undefined;}else{if(_0x55e067&&['f','v','t'][_0x27f15d(0x13a)](_0x318c04[_0x27f15d(0x1c1)])){_0x3ccb04=_0x318c04['name'];if(_0x318c04[_0x27f15d(0x1c1)]==='f'&&_0x318c04['attributes']['t'])_0x439c0d=!![];}else{if(_0x55e067&&_0x318c04[_0x27f15d(0x1c1)]==='r')_0x439c0d=!![];else{if(_0x318c04[_0x27f15d(0x1c1)]==='hyperlink'){const _0x3267c9=_0x318c04[_0x27f15d(0x193)][_0x27f15d(0x1ad)];if(!_0x3267c9)throw new Error(_0x27f15d(0x1d2));const _0x31f450=_0x3267c9[_0x27f15d(0x102)](':');if(_0x31f450[_0x27f15d(0x14e)]>0x2)throw new Error('Invalid\x20worksheet\x20hyperlink\x20reference.');const _0x440e6c=_0x527f53(_0x31f450[0x0]),_0x8464f2=_0x527f53(_0x31f450[0x1]??_0x31f450[0x0]);_0x4078d1['add'](_0x3267c9),_0x27d559(Math[_0x27f15d(0x100)](_0x440e6c[_0x27f15d(0x146)],_0x8464f2[_0x27f15d(0x146)]),0x1);}else{if(_0x318c04[_0x27f15d(0x1c1)]==='col'){const _0x253689=_0x276d0b(_0x318c04[_0x27f15d(0x193)][_0x27f15d(0x109)],0x4000),_0x20f734=_0x276d0b(_0x318c04[_0x27f15d(0x193)][_0x27f15d(0x100)],0x4000);if(_0x253689>_0x20f734)throw new Error(_0x27f15d(0x1e8));_0x27d559(_0x20f734,0x1);}else{if(_0x318c04[_0x27f15d(0x1c1)]===_0x27f15d(0x122)){const _0x4756af=_0x318c04[_0x27f15d(0x193)]['ref'];if(!_0x4756af)throw new Error(_0x27f15d(0x14a));const _0x15f8eb=_0x4756af[_0x27f15d(0x102)](':');if(_0x15f8eb[_0x27f15d(0x14e)]>0x2)throw new Error(_0x27f15d(0x14a));const _0x2023ef=_0x527f53(_0x15f8eb[0x0]),_0x2eb308=_0x527f53(_0x15f8eb[0x1]??_0x15f8eb[0x0]);_0x27d559(Math[_0x27f15d(0x100)](_0x2023ef[_0x27f15d(0x146)],_0x2eb308[_0x27f15d(0x146)]));const _0x154302=(Math['abs'](_0x2eb308[_0x27f15d(0x127)]-_0x2023ef['row'])+0x1)*(Math['abs'](_0x2eb308[_0x27f15d(0x146)]-_0x2023ef['col'])+0x1);_0x562747+=_0x154302+_0xa064ed++;if(_0x562747>MAX_ROWS)throw new Error(_0x27f15d(0x18f));}}}}}}}}),_0x5471b2?.['on'](_0x5b31d2(0x1a3),_0x5321c5=>{const _0x4b5bf7=_0x5b31d2;if(_0x57aa4a){_0x5f4536?.[_0x4b5bf7(0x11e)](_0x5321c5);return;}if(_0x55e067&&_0x3ccb04&&_0x5321c5)_0x439c0d=!![];}),_0x5471b2?.['on']('closetag',_0x4c0d25=>{const _0x500a35=_0x5b31d2;if(_0x57aa4a){_0x5f4536&&!_0x5f4536[_0x500a35(0x184)]()&&(_0x30a03c(_0x5f4536['model']),_0x5f4536=undefined);return;}if(_0x4c0d25[_0x500a35(0x1c1)]==='c'){!_0x439c0d&&_0x4b189a&&!_0x38ab19&&(_0x38ab19={'before':_0x928e99,'cells':[]});if(_0x38ab19){if(++_0x5824cf>0xf4240)throw new Error(_0x500a35(0x1c8));_0x38ab19['cells'][_0x500a35(0x164)]({'reference':_0x4b189a,'address':_0x56ebc2,'materialized':_0x439c0d});if(!_0x4b189a&&_0x439c0d)_0x16ff64=!![];}if(_0x439c0d){if(!_0x38ab19||_0x4b189a){if(!_0x503900)throw new Error(_0x500a35(0x162));if(_0x503900['col']>MAX_XML_COLUMNS)throw new Error('Worksheet\x20exceeds\x2016384\x20columns.');_0x27d559(_0x503900['col']);}_0x928e99=_0x503900;}_0x55e067=![],_0x503900=undefined,_0x4b189a=undefined,_0x56ebc2=undefined,_0x3ccb04=undefined;}else{if(_0x4c0d25[_0x500a35(0x1c1)]==='row'){if(_0x38ab19&&_0x16ff64)_0x1769fb['push'](_0x38ab19);_0x38ab19=undefined,_0x16ff64=![];}else{if(_0x4c0d25[_0x500a35(0x1c1)]===_0x3ccb04)_0x3ccb04=undefined;}}}),_0x5471b2?.['on'](_0x5b31d2(0x1ca),_0x1c10c2=>{const _0x24b8ec=_0x5b31d2;throw new Error(_0x24b8ec(0x1b0)+_0x1c10c2[_0x24b8ec(0x144)]);}),_0x359fa1['on'](_0x5b31d2(0x1ca),_0x3e4159),_0x359fa1['on'](_0x5b31d2(0x172),_0xf8c633=>{const _0x4431be=_0x5b31d2;if(_0x278baf)return;_0x2ab852+=_0xf8c633[_0x4431be(0x14e)],_0x45ca72?.['push'](_0xf8c633);if(_0x2ab852>MAX_EXPANDED){_0x3e4159(new Error(_0x4431be(0x1d6)));return;}try{if(_0x29ac55&&_0x416971)_0x29ac55[_0x4431be(0x13e)](_0x416971[_0x4431be(0x13e)](_0xf8c633));if(_0x5471b2&&_0x5c6d60)_0x5471b2[_0x4431be(0x13e)](_0x5c6d60['write'](_0xf8c633));}catch(_0x2abfbf){_0x3e4159(_0x2abfbf instanceof Error?_0x2abfbf:new Error(_0x4431be(0x1db)));}}),_0x359fa1['on'](_0x5b31d2(0x15d),()=>{const _0x14e7bf=_0x5b31d2;if(_0x278baf)return;try{if(_0x29ac55&&_0x416971)_0x29ac55[_0x14e7bf(0x13e)](_0x416971['end']())[_0x14e7bf(0x108)]();if(_0x5471b2&&_0x5c6d60)_0x5471b2[_0x14e7bf(0x13e)](_0x5c6d60[_0x14e7bf(0x15d)]())[_0x14e7bf(0x108)]();for(const _0x4e91e9 of _0x1769fb){let _0x268171=_0x4e91e9[_0x14e7bf(0x189)];for(const _0x10984d of _0x4e91e9[_0x14e7bf(0x131)]){if(!_0x10984d[_0x14e7bf(0x12b)]&&!(_0x10984d[_0x14e7bf(0x1d8)]&&_0x4078d1['has'](_0x10984d[_0x14e7bf(0x1d8)])))continue;const _0x493c5c=_0x10984d[_0x14e7bf(0x1b3)]??(_0x268171?{'row':_0x268171[_0x14e7bf(0x127)],'col':_0x268171['col']+0x1}:undefined);if(!_0x493c5c)throw new Error('Invalid\x20worksheet\x20cell\x20without\x20an\x20initial\x20reference.');if(_0x493c5c[_0x14e7bf(0x146)]>MAX_XML_COLUMNS)throw new Error('Worksheet\x20exceeds\x2016384\x20columns.');_0x27d559(_0x493c5c['col']),_0x268171=_0x493c5c;}}_0x1769fb[_0x14e7bf(0x14e)]=0x0,_0x4078d1['clear']();}catch(_0x530d43){_0x3e4159(_0x530d43 instanceof Error?_0x530d43:new Error(_0x14e7bf(0x1db)));return;}if(_0x45ca72)_0x4f6b1b[_0x14e7bf(0x118)](_0x31beb8,Buffer[_0x14e7bf(0x1b1)](_0x45ca72));_0x1907ba=undefined,_0x43df6a[_0x14e7bf(0x187)]();});});}),_0x43df6a['on'](_0x4519bb(0x15d),()=>{const _0x25683f=_0x4519bb;if(_0x278baf)return;if(_0x43df6a['readEntryCursor']!==_0x328168){_0x5568bd(new Error(_0x25683f(0x1ab)));return;}if(!_0x2538f8['has'](_0x25683f(0x125))||!_0x2538f8['has']('xl/workbook.xml'))_0x5568bd(new Error(_0x25683f(0x1c9)));else _0x5ad37c();}),_0x43df6a[_0x4519bb(0x187)]();});});}function valueOf(_0x28d633){const _0x2df43b=a144_0x38cfed,_0x55bf7b=_0x28d633[_0x2df43b(0x182)];if(_0x55bf7b&&typeof _0x55bf7b===_0x2df43b(0x19c)&&(_0x2df43b(0x12a)in _0x55bf7b||_0x2df43b(0xfe)in _0x55bf7b)){if(!(_0x2df43b(0x139)in _0x55bf7b)||_0x55bf7b['result']===undefined)throw new Error(_0x2df43b(0x1e1));return _0x55bf7b[_0x2df43b(0x139)];}return _0x55bf7b;}function convert(_0x492600,_0x35cfaa){const _0x2b0238=a144_0x38cfed;if(_0x492600===null||_0x492600===undefined||_0x492600===''){if(_0x35cfaa['required']&&!_0x35cfaa[_0x2b0238(0x145)])throw new Error(_0x2b0238(0x1bd));return null;}if(typeof _0x492600===_0x2b0238(0x1da)&&Buffer[_0x2b0238(0x165)](_0x492600,_0x2b0238(0x157))>MAX_CELL)throw new Error(_0x2b0238(0x101));switch(_0x35cfaa[_0x2b0238(0x137)][_0x2b0238(0x19d)]()){case'string':case _0x2b0238(0x1a3):case _0x2b0238(0x1de):if(typeof _0x492600!==_0x2b0238(0x1da))throw new Error(_0x2b0238(0x148));return _0x492600;case _0x2b0238(0x18e):case _0x2b0238(0x12e):case _0x2b0238(0x177):if(typeof _0x492600!==_0x2b0238(0x18e)||!Number['isFinite'](_0x492600)||Math[_0x2b0238(0x170)](_0x492600)>Number['MAX_SAFE_INTEGER']||_0x35cfaa[_0x2b0238(0x137)][_0x2b0238(0x19d)]()===_0x2b0238(0x177)&&!Number[_0x2b0238(0x152)](_0x492600))throw new Error(_0x2b0238(0x1b9));return _0x492600;case _0x2b0238(0x186):if(typeof _0x492600!==_0x2b0238(0x186))throw new Error('Expected\x20a\x20boolean\x20cell.');return _0x492600;case'date':case'datetime':if(!(_0x492600 instanceof Date)||!Number[_0x2b0238(0x1d3)](_0x492600[_0x2b0238(0x1bb)]()))throw new Error('Expected\x20an\x20Excel\x20date\x20cell.');return _0x492600[_0x2b0238(0x1bb)]();default:throw new Error(_0x2b0238(0x17d)+_0x35cfaa[_0x2b0238(0x137)]+'.');}}export async function buildExcelManifest(_0x5133a6){const _0x194bd6=a144_0x38cfed,_0x2c56dc=_0x5133a6[_0x194bd6(0x15f)]??0x1;if(!Number[_0x194bd6(0x152)](_0x2c56dc)||_0x2c56dc<0x1||_0x2c56dc>MAX_ROWS)throw new Error(_0x194bd6(0x10d));if(_0x5133a6[_0x194bd6(0x1a4)]!==undefined&&(!Number['isInteger'](_0x5133a6[_0x194bd6(0x1a4)])||_0x5133a6[_0x194bd6(0x1a4)]<0x1||_0x5133a6['batchSize']>0x3e8))throw new Error(_0x194bd6(0x12d));if(a144_0x3ef6fe[_0x194bd6(0x1d0)](_0x5133a6['file'])['toLowerCase']()!==_0x194bd6(0x173))throw new Error(_0x194bd6(0x171));const _0x56cb18=await stat(_0x5133a6[_0x194bd6(0x140)]);if(!_0x56cb18[_0x194bd6(0x190)]()||_0x56cb18['size']>MAX_FILE)throw new Error('XLSX\x20file\x20must\x20be\x20a\x20regular\x20file\x20no\x20larger\x20than\x2020\x20MB.');const _0x5d87c4=await readFile(_0x5133a6[_0x194bd6(0x140)]);if(_0x5d87c4['length']>MAX_FILE)throw new Error('XLSX\x20file\x20exceeds\x2020\x20MB.');const _0x39057e=_0x5133a6[_0x194bd6(0x1d7)][_0x194bd6(0x1bf)](_0x3317ab=>isImageContainer(_0x3317ab[_0x194bd6(0x137)])&&Object['values'](_0x5133a6['mapping'])['includes'](_0x3317ab[_0x194bd6(0x192)]))?new Map():undefined;await checkArchive(_0x5d87c4,_0x39057e);const _0x35fd9e=new a144_0x1fd31e['Workbook']();await _0x35fd9e[_0x194bd6(0x1c4)]['load'](_0x5d87c4,{'ignoreNodes':[_0x194bd6(0x1d5)]});const _0x44b05d=_0x5133a6[_0x194bd6(0x12c)];let _0x4adb60;if(_0x44b05d===undefined)_0x4adb60=_0x35fd9e[_0x194bd6(0x17e)][0x0];else{if(typeof _0x44b05d==='string'&&_0x35fd9e[_0x194bd6(0x17e)]['some'](_0x58d875=>_0x58d875['name']===_0x44b05d))_0x4adb60=_0x35fd9e[_0x194bd6(0x17e)][_0x194bd6(0x112)](_0x528fe3=>_0x528fe3['name']===_0x44b05d);else{if(typeof _0x44b05d===_0x194bd6(0x18e)||/^\d+$/['test'](_0x44b05d)){const _0x337060=Number(_0x44b05d);if(!Number['isInteger'](_0x337060)||_0x337060<0x1)throw new Error(_0x194bd6(0x1b8));_0x4adb60=_0x35fd9e['worksheets'][_0x337060-0x1];}else _0x4adb60=_0x35fd9e['worksheets']['find'](_0x52cefb=>_0x52cefb['name']===_0x44b05d);}}if(!_0x4adb60)throw new Error(_0x194bd6(0x106));if(_0x4adb60[_0x194bd6(0x16d)]>MAX_ROWS||_0x4adb60[_0x194bd6(0x183)]>MAX_COLUMNS)throw new Error('Worksheet\x20exceeds\x20100000\x20rows\x20or\x20256\x20columns.');if((_0x4adb60[_0x194bd6(0x121)]['merges']??[])[_0x194bd6(0x14e)])throw new Error('Merged\x20cells\x20are\x20not\x20supported.');const _0x28e965=new Map();_0x4adb60[_0x194bd6(0x103)](_0x2c56dc)[_0x194bd6(0x117)]((_0x56761a,_0x3d37e4)=>{const _0x1f9bf6=_0x194bd6,_0x5d60b5=valueOf(_0x56761a);if(typeof _0x5d60b5!==_0x1f9bf6(0x1da)||!_0x5d60b5[_0x1f9bf6(0x19f)]()||Buffer[_0x1f9bf6(0x165)](_0x5d60b5)>MAX_CELL)throw new Error('Headers\x20must\x20be\x20non-empty\x20text\x20cells\x20no\x20larger\x20than\x2064\x20KB.');if(_0x28e965[_0x1f9bf6(0x19b)](_0x5d60b5))throw new Error(_0x1f9bf6(0x19e)+_0x5d60b5+'.');_0x28e965[_0x1f9bf6(0x118)](_0x5d60b5,_0x3d37e4);});const _0x271188=Object[_0x194bd6(0x1af)](_0x5133a6[_0x194bd6(0x191)]);if(!_0x271188[_0x194bd6(0x14e)])throw new Error('Mapping\x20must\x20contain\x20at\x20least\x20one\x20field.');const _0x137368=new Map(_0x5133a6[_0x194bd6(0x1d7)][_0x194bd6(0xfb)](_0x3dd270=>[_0x3dd270[_0x194bd6(0x192)],_0x3dd270]));if(_0x137368[_0x194bd6(0x1a6)]!==_0x5133a6[_0x194bd6(0x1d7)][_0x194bd6(0x14e)])throw new Error(_0x194bd6(0x185));if(_0x5133a6['fields'][_0x194bd6(0x1bf)](_0x1aa29d=>_0x1aa29d[_0x194bd6(0x137)][_0x194bd6(0x19d)]()===_0x194bd6(0x197)))throw new Error(_0x194bd6(0x167));const _0x341f10=new Set();for(const [_0xf4cc01,_0x6b4517]of _0x271188){const _0x4f735f=_0x137368[_0x194bd6(0x166)](_0x6b4517);if(!_0x28e965[_0x194bd6(0x19b)](_0xf4cc01))throw new Error(_0x194bd6(0x11c)+_0xf4cc01+'.');if(!_0x4f735f||RESERVED[_0x194bd6(0x19b)](_0x6b4517)||_0x4f735f[_0x194bd6(0x145)])throw new Error(_0x194bd6(0x1ce)+_0x6b4517+'.');if(_0x341f10['has'](_0x6b4517))throw new Error('Duplicate\x20mapping\x20target:\x20'+_0x6b4517+'.');if(!TYPES[_0x194bd6(0x19b)](_0x4f735f[_0x194bd6(0x137)]['toLowerCase']()))throw new Error(_0x194bd6(0x17d)+_0x4f735f[_0x194bd6(0x137)]+'.');_0x341f10[_0x194bd6(0x169)](_0x6b4517);}for(const _0x27699b of _0x5133a6['fields']){if(_0x27699b['required']&&!_0x27699b[_0x194bd6(0x145)]&&!RESERVED[_0x194bd6(0x19b)](_0x27699b[_0x194bd6(0x192)])&&!_0x341f10[_0x194bd6(0x19b)](_0x27699b[_0x194bd6(0x192)]))throw new Error(_0x194bd6(0x18a)+_0x27699b[_0x194bd6(0x192)]+'.');}const _0x54e88f={'fileHash':hash(_0x5d87c4),'mappingHash':hash(JSON[_0x194bd6(0x161)]([..._0x271188][_0x194bd6(0x10e)](([_0x41f6eb],[_0x2b8657])=>_0x41f6eb[_0x194bd6(0x130)](_0x2b8657)))),'schemaHash':hash(JSON['stringify']([..._0x5133a6[_0x194bd6(0x1d7)]][_0x194bd6(0x10e)]((_0x464da5,_0x2e9b42)=>_0x464da5['code']['localeCompare'](_0x2e9b42[_0x194bd6(0x192)])))),'sheet':_0x4adb60[_0x194bd6(0x1c1)],'rows':[],'emptyRows':[],'errors':[],'warnings':[]},_0x28a179=_0x271188['filter'](([,_0x1fe2ab])=>isImageContainer(_0x137368[_0x194bd6(0x166)](_0x1fe2ab)[_0x194bd6(0x137)])),_0x509b1a=_0x28a179['filter'](([,_0x40a57e])=>_0x137368[_0x194bd6(0x166)](_0x40a57e)[_0x194bd6(0x137)]['toLowerCase']()==='upload')[_0x194bd6(0xfb)](([,_0xce660b])=>_0xce660b);if(_0x509b1a['length'])_0x54e88f[_0x194bd6(0x1b7)]=_0x509b1a;const _0x55492f=_0x39057e?resolveWorksheetImages(_0x39057e,_0x4adb60['name'],new Set(_0x28a179['map'](([_0x2a5e6c])=>_0x28e965[_0x194bd6(0x166)](_0x2a5e6c)))):[],_0x37a9c8=new Map();for(const _0xc2064d of _0x55492f){const _0x599d43=_0xc2064d[_0x194bd6(0x127)]+':'+_0xc2064d['col'],_0x2c355f=_0x37a9c8['get'](_0x599d43)??[];_0x2c355f[_0x194bd6(0x164)](_0xc2064d),_0x37a9c8[_0x194bd6(0x118)](_0x599d43,_0x2c355f);}const _0x44933f=new Map();let _0x3211af=0x0;_0x28a179[_0x194bd6(0x14e)]&&(_0x54e88f[_0x194bd6(0x15a)]=_0x28a179[_0x194bd6(0xfb)](([,_0x4ed499])=>_0x4ed499),_0x54e88f[_0x194bd6(0x11a)]=[],_0x54e88f['parserVersion']=0x1,_0x54e88f['media']=[]);const _0x14460d=Math['max'](0x0,..._0x55492f['map'](_0x26e127=>_0x26e127[_0x194bd6(0x127)]));let _0x41f03e=0x0;const _0xf015c9=new Set(_0x271188['map'](([_0x1bc6ef])=>_0x28e965[_0x194bd6(0x166)](_0x1bc6ef)));for(let _0x54fdf2=_0x2c56dc+0x1;_0x54fdf2<=Math[_0x194bd6(0x100)](_0x4adb60[_0x194bd6(0x16d)],_0x14460d);_0x54fdf2++){const _0x4cb954=_0x4adb60[_0x194bd6(0x103)](_0x54fdf2);if(_0x4cb954[_0x194bd6(0x1e0)]||_0x55492f[_0x194bd6(0x1bf)](_0x47951e=>_0x47951e[_0x194bd6(0x127)]===_0x54fdf2&&_0x47951e[_0x194bd6(0x179)]))_0x41f03e++;let _0x130113=_0x55492f[_0x194bd6(0x1bf)](_0x187ec0=>_0x187ec0[_0x194bd6(0x127)]===_0x54fdf2);_0x4cb954[_0x194bd6(0x117)](_0x5a27d8=>{const _0x2b7d09=_0x194bd6;if(_0x5a27d8[_0x2b7d09(0x182)]!==null&&_0x5a27d8[_0x2b7d09(0x182)]!==undefined&&_0x5a27d8['value']!=='')_0x130113=!![];});if(!_0x130113){_0x54e88f['emptyRows']['push'](_0x54fdf2);continue;}const _0x5e907f=Object[_0x194bd6(0x1c5)](null);_0x4cb954[_0x194bd6(0x117)]((_0x1f03ad,_0x151444)=>{const _0x2fe8ba=_0x194bd6;if(_0xf015c9[_0x2fe8ba(0x19b)](_0x151444))return;try{const _0x56ac43=valueOf(_0x1f03ad);if(typeof _0x56ac43===_0x2fe8ba(0x1da)&&Buffer[_0x2fe8ba(0x165)](_0x56ac43,'utf8')>MAX_CELL)throw new Error(_0x2fe8ba(0x101));}catch(_0x277444){_0x54e88f[_0x2fe8ba(0x120)]['push']({'rowNumber':_0x54fdf2,'field':_0x1f03ad[_0x2fe8ba(0x1b3)],'message':_0x277444[_0x2fe8ba(0x144)]});}});for(const [_0x308997,_0x21bde3]of _0x271188){try{const _0x39406f=_0x4cb954['getCell'](_0x28e965[_0x194bd6(0x166)](_0x308997)),_0x201357=_0x137368['get'](_0x21bde3);if(!isImageContainer(_0x201357['type'])){_0x5e907f[_0x21bde3]=convert(valueOf(_0x39406f),_0x201357);continue;}const _0x32563e=_0x37a9c8['get'](_0x54fdf2+':'+_0x28e965['get'](_0x308997))??[];if(_0x32563e[_0x194bd6(0x1bf)](_0x25888e=>_0x25888e[_0x194bd6(0x1ca)]))throw Error(_0x32563e[_0x194bd6(0x112)](_0x265e1b=>_0x265e1b[_0x194bd6(0x1ca)])[_0x194bd6(0x1ca)]);if(_0x39406f[_0x194bd6(0x182)]!=null&&_0x39406f['value']!==''&&!_0x32563e[_0x194bd6(0x1bf)](_0x15eaec=>_0x15eaec['nativeCell']))throw Error(_0x194bd6(0x110));const _0x4c725b=[];for(const _0x40c422 of _0x32563e)for(const _0x2480e5 of _0x40c422['media']){const _0x36866f=_0x39057e['get'](_0x2480e5);if(!_0x36866f)throw Error(_0x194bd6(0x1ba)+_0x2480e5+'.');const _0x2c61eb=hash(_0x36866f),_0x5d5e45=_0x44933f['get'](_0x2c61eb)??validateImageBytes(_0x36866f);if(!_0x44933f[_0x194bd6(0x19b)](_0x5d5e45[_0x194bd6(0x18d)])){_0x3211af+=_0x5d5e45[_0x194bd6(0x1a6)];if(_0x3211af>0x32*0x400*0x400)throw Error('Unique\x20image\x20bytes\x20exceed\x2050\x20MB.');_0x44933f[_0x194bd6(0x118)](_0x5d5e45[_0x194bd6(0x18d)],_0x5d5e45);}_0x4c725b[_0x194bd6(0x164)](_0x5d5e45['contentHash']);}if(!_0x4c725b[_0x194bd6(0x14e)]&&_0x201357['required'])throw Error('Required\x20image\x20value\x20is\x20missing.');if(_0x4c725b[_0x194bd6(0x14e)])_0x54e88f[_0x194bd6(0x11a)][_0x194bd6(0x164)]({'rowNumber':_0x54fdf2,'field':_0x21bde3,'hashes':_0x4c725b});_0x5e907f[_0x21bde3]=_0x4c725b['map'](_0xa81166=>{const _0x504157=_0x194bd6,_0x3c45a3=_0x44933f['get'](_0xa81166),_0x5e8942=_0x3c45a3[_0x504157(0x137)]===_0x504157(0x1cc)?'jpg':_0x3c45a3[_0x504157(0x137)][_0x504157(0x175)](0x6),_0x1aa02d=_0xa81166+'.'+_0x5e8942,_0xa967c9=_0x504157(0x17b)+'0'[_0x504157(0x155)](0x40)+'/'+_0x1aa02d;return _0x201357[_0x504157(0x137)][_0x504157(0x19d)]()===_0x504157(0x13d)?{'fileName':_0x1aa02d,'filePath':_0xa967c9}:{'key':_0xa967c9,'name':_0x1aa02d,'type':_0x3c45a3[_0x504157(0x137)],'size':_0x3c45a3[_0x504157(0x1a6)]};});}catch(_0x15f71c){_0x54e88f[_0x194bd6(0x120)]['push']({'rowNumber':_0x54fdf2,'field':_0x21bde3,'message':_0x15f71c[_0x194bd6(0x144)]});}}_0x54e88f[_0x194bd6(0xfc)]['push']({'rowNumber':_0x54fdf2,'values':_0x5e907f});}if(_0x54e88f[_0x194bd6(0x11f)])_0x54e88f[_0x194bd6(0x11f)]=[..._0x44933f[_0x194bd6(0x1e2)]()];if(_0x41f03e)_0x54e88f[_0x194bd6(0x1cf)][_0x194bd6(0x164)](_0x41f03e+_0x194bd6(0x13c));return _0x54e88f;}function a144_0x2378(){const _0x40977c=['filter','formula','materialized','sheet','batchSize\x20must\x20be\x20between\x201\x20and\x201000.','decimal','appCode','localeCompare','cells','test','generalPurposeBitFlag','jszip','fileNameStr','readBigUInt64LE','type','pop','result','includes','extraFieldsLength','\x20hidden\x20row(s)\x20are\x20included\x20in\x20the\x20import.','upload','write','subarray','file','./utils','lastIndexOf','exceljs','message','generated','col','xl/workbook.xml','Expected\x20a\x20text\x20cell.','fileNameRaw','Invalid\x20worksheet\x20merge\x20reference.','Image\x20XML\x20event\x20budget\x20exceeded.','fromBuffer','Image\x20XML\x20node\x20budget\x20exceeded.','length','entryCount','openReadStream','hex','isInteger','_xlnm.Print_Area','Invalid\x20XLSX\x20entry.','repeat','parse','utf8','fileComment','datetime','imageFields','parseOpen','isArray','end','Non-canonical\x20worksheet\x20ZIP\x20entry.','headerRow','readEntryCursor','stringify','Invalid\x20worksheet\x20cell\x20without\x20an\x20initial\x20reference.','charCodeAt','push','byteLength','get','Unsupported\x20dataset\x20field\x20type:\x20serial_number.','Invalid\x20dataset\x20field\x20extension\x20metadata.','add','\x20columns.','updateTime','opentag','rowCount','Invalid\x20defined\x20name\x20coordinate.','from','abs','Only\x20.xlsx\x20files\x20are\x20supported.','data','.xlsx','processAttributes','slice','extraFieldRaw','integer','fileName','hiddenRow','Worksheet\x20coordinate\x20exceeds\x20','dataset-import/','Worksheet\x20column\x20objects\x20exceed\x20100000.','Unsupported\x20field\x20type:\x20','worksheets','exec','1050126jHEPnj','every','value','columnCount','parseClose','Duplicate\x20dataset\x20field\x20codes.','boolean','readEntry','Invalid\x20ZIP\x20local\x20file\x20header.','before','Required\x20field\x20is\x20not\x20mapped:\x20','12780486cAthAU','Excel\x20import\x20only\x20supports\x20METADATA\x20datasets.','contentHash','number','Worksheet\x20merge\x20work\x20exceeds\x20100000.','isFile','mapping','code','attributes','Invalid\x20or\x20duplicate\x20dataset\x20field\x20metadata.','Dataset\x20field\x20metadata\x20is\x20missing.','bottom','serial_number','4737180yONVTi','compressedSize','equals','has','object','toLowerCase','Duplicate\x20header:\x20','trim','Non-canonical\x20workbook\x20or\x20worksheet\x20ZIP\x20entry.','creatorName','tenantCode','text','batchSize','./utf8','size','exceljs/lib/xlsx/xform/book/defined-name-xform.js','required','6pBpgnw','Invalid\x20worksheet\x20cell\x20or\x20merge\x20reference.','ZIP\x20central\x20directory\x20entry\x20count\x20does\x20not\x20match\x20its\x20contents.','Invalid\x20worksheet\x20coordinate.','ref','readUInt32LE','entries','Invalid\x20worksheet\x20XML:\x20','concat','bitFlag','address','autoIncrement','313688BTkWpv','extend','uploadFields','Sheet\x20index\x20must\x20be\x20a\x20positive\x20one-based\x20integer.','Expected\x20a\x20finite\x20safe\x20numeric\x20cell.','Missing\x20image\x20media:\x20','getTime','1267266MtWALm','Required\x20value\x20is\x20missing.','utf8decode','some','destroy','name','extraFields','source','xlsx','create','parseInt','uncompressedSize','Worksheet\x20deferred\x20cell\x20events\x20exceed\x201000000.','File\x20is\x20not\x20an\x20XLSX\x20workbook.','error','createTime','image/jpeg','./reader/readerFor','Unknown\x20or\x20generated\x20mapping\x20field:\x20','warnings','extname','Invalid\x20worksheet\x20nested\x20cell.','Invalid\x20worksheet\x20hyperlink\x20reference.','isFinite','sha256','dataValidations','XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.','fields','reference','Worksheet\x20exceeds\x20','string','Invalid\x20worksheet\x20XML.','72jtPTxj','fileCommentRaw','textarea','isSafeInteger','hidden','Formula\x20has\x20no\x20cached\x20result.','values','deleted','externalFileAttributes','date','decodeEx','left','Invalid\x20worksheet\x20column\x20range.','dir','483469CDCJWV','map','rows','original','sharedFormula','startsWith','max','Cell\x20exceeds\x2064\x20KB.','split','getRow','readUInt16LE','Duplicate\x20workbook\x20ZIP\x20entry.','Requested\x20worksheet\x20does\x20not\x20exist.','unixPermissions','close','min','relativeOffsetOfLocalHeader','right','top','headerRow\x20must\x20be\x20between\x201\x20and\x20100000.','sort','modifierId','Image\x20cell\x20contains\x20scalar\x20or\x20mixed\x20content.','isBuffer','find','resolve','handleUTF8','6905655PtoNrR','exceljs/lib/utils/col-cache.js','eachCell','set','sourceType','imageCells','dataset','Unknown\x20Excel\x20header:\x20','Invalid\x20worksheet\x20nested\x20row.','parseText','media','errors','model','mergeCell','XML\x20DTD/entities\x20are\x20not\x20supported.','readExtraFields','[Content_Types].xml','properties','row','definedName'];a144_0x2378=function(){return _0x40977c;};return a144_0x2378();}
1
+ const a144_0x182a22=a144_0x5e9d;(function(_0x1729d2,_0x182c1e){const _0x1a4e80=a144_0x5e9d,_0x50bdc8=_0x1729d2();while(!![]){try{const _0xfd3ebb=-parseInt(_0x1a4e80(0xc6))/0x1+-parseInt(_0x1a4e80(0x14a))/0x2+parseInt(_0x1a4e80(0x10a))/0x3*(-parseInt(_0x1a4e80(0x1a6))/0x4)+parseInt(_0x1a4e80(0xcb))/0x5*(parseInt(_0x1a4e80(0x126))/0x6)+-parseInt(_0x1a4e80(0xc1))/0x7*(parseInt(_0x1a4e80(0x1b2))/0x8)+-parseInt(_0x1a4e80(0x14d))/0x9*(parseInt(_0x1a4e80(0xec))/0xa)+parseInt(_0x1a4e80(0x189))/0xb;if(_0xfd3ebb===_0x182c1e)break;else _0x50bdc8['push'](_0x50bdc8['shift']());}catch(_0x185f6){_0x50bdc8['push'](_0x50bdc8['shift']());}}}(a144_0x8f2d,0x23c30));import{readFile,stat}from'node:fs/promises';import{createHash}from'node:crypto';import a144_0x3425f4 from'node:path';import{StringDecoder}from'node:string_decoder';import{createRequire}from'node:module';import{SaxesParser}from'saxes';import a144_0x579a8e from'exceljs';import a144_0x207229 from'yauzl';import{resolveWorksheetImages}from'./image-ooxml.js';function a144_0x5e9d(_0x1c9cbd,_0xf6afc1){_0x1c9cbd=_0x1c9cbd-0xc0;const _0x8f2d60=a144_0x8f2d();let _0x5e9df3=_0x8f2d60[_0x1c9cbd];return _0x5e9df3;}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_0x182a22(0x19e),a144_0x182a22(0x15e),a144_0x182a22(0x188),a144_0x182a22(0x17b),'creatorName',a144_0x182a22(0x1ac),a144_0x182a22(0x157),'createTime','updateTime',a144_0x182a22(0x171)]),TYPES=new Set(['string','text',a144_0x182a22(0xf2),'number',a144_0x182a22(0x13b),a144_0x182a22(0xc0),'boolean',a144_0x182a22(0x1a5),a144_0x182a22(0x141),'image',a144_0x182a22(0x185)]),isImageContainer=_0x46523b=>[a144_0x182a22(0xe4),a144_0x182a22(0x185)][a144_0x182a22(0xe5)](_0x46523b[a144_0x182a22(0x10c)]()),hash=_0x101952=>createHash('sha256')[a144_0x182a22(0x167)](_0x101952)[a144_0x182a22(0xdf)](a144_0x182a22(0x198)),require=createRequire(import.meta.url),DefinedNameXform=require(a144_0x182a22(0xf6)),nameCoordinates=require(a144_0x182a22(0x15c)),ABSOLUTE_NAME_RANGE=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/,excelRequire=createRequire(require[a144_0x182a22(0x158)](a144_0x182a22(0x1a4))),zipRequire=createRequire(excelRequire['resolve'](a144_0x182a22(0x11b))),ZipEntry=zipRequire('./zipEntry'),zipReader=zipRequire(a144_0x182a22(0x13a)),zipUtf8=zipRequire(a144_0x182a22(0x135)),zipPaths=zipRequire(a144_0x182a22(0x130));function centralDirectoryEnd(_0x48ade1,_0x28e7fb){const _0xe34a02=a144_0x182a22,_0x5ae612=()=>new Error(_0xe34a02(0x12a)),_0x486d37=_0x48ade1['lastIndexOf'](Buffer['from']([0x50,0x4b,0x5,0x6]));if(_0x486d37<0x0||_0x486d37+0x16>_0x48ade1[_0xe34a02(0xd7)]||_0x486d37+0x16+_0x48ade1[_0xe34a02(0x17a)](_0x486d37+0x14)!==_0x48ade1['length'])throw _0x5ae612();let _0x936d95=_0x48ade1[_0xe34a02(0x17a)](_0x486d37+0xa),_0x2fcaf6=_0x48ade1[_0xe34a02(0x111)](_0x486d37+0xc),_0x5dfbfb=_0x48ade1[_0xe34a02(0x111)](_0x486d37+0x10),_0x57453d=_0x486d37;const _0x2f8cac=_0x486d37-0x14,_0x205d72=_0x2f8cac>=0x0&&_0x48ade1['readUInt32LE'](_0x2f8cac)===0x7064b50,_0x16b3f5=[0x4,0x6,0x8,0xa][_0xe34a02(0x108)](_0x4ec568=>_0x48ade1['readUInt16LE'](_0x486d37+_0x4ec568)===0xffff)||_0x2fcaf6===0xffffffff||_0x5dfbfb===0xffffffff;if(_0x205d72!==_0x16b3f5)throw _0x5ae612();if(_0x205d72){if(_0x48ade1[_0xe34a02(0x105)](Buffer[_0xe34a02(0xfe)]([0x50,0x4b,0x6,0x7]))!==_0x2f8cac)throw _0x5ae612();const _0x16fb92=_0x17eb0e=>{const _0x3f1b1b=_0xe34a02,_0x4a98ba=Number(_0x48ade1[_0x3f1b1b(0xde)](_0x17eb0e));if(!Number['isSafeInteger'](_0x4a98ba))throw _0x5ae612();return _0x4a98ba;};_0x57453d=_0x16fb92(_0x2f8cac+0x8);if(_0x48ade1[_0xe34a02(0x111)](_0x2f8cac+0x4)!==0x0||_0x48ade1[_0xe34a02(0x111)](_0x2f8cac+0x10)!==0x1||_0x57453d>_0x2f8cac-0x38||_0x48ade1['readUInt32LE'](_0x57453d)!==0x6064b50||_0x16fb92(_0x57453d+0x4)!==0x2c||_0x57453d+0x38!==_0x2f8cac||_0x48ade1['readUInt32LE'](_0x57453d+0x10)!==0x0||_0x48ade1[_0xe34a02(0x111)](_0x57453d+0x14)!==0x0)throw _0x5ae612();_0x936d95=_0x16fb92(_0x57453d+0x20),_0x2fcaf6=_0x16fb92(_0x57453d+0x28),_0x5dfbfb=_0x16fb92(_0x57453d+0x30);if(_0x16fb92(_0x57453d+0x18)!==_0x936d95)throw _0x5ae612();}else{if(_0x48ade1[_0xe34a02(0x17a)](_0x486d37+0x4)!==0x0||_0x48ade1[_0xe34a02(0x17a)](_0x486d37+0x6)!==0x0||_0x48ade1[_0xe34a02(0x17a)](_0x486d37+0x8)!==_0x936d95)throw _0x5ae612();}const _0x42e5c0=_0x28e7fb[_0xe34a02(0x137)];if(_0x5dfbfb!==_0x42e5c0||_0x936d95!==_0x28e7fb[_0xe34a02(0x15b)]||_0x5dfbfb+_0x2fcaf6!==_0x57453d)throw _0x5ae612();return _0x57453d;}function consumerEntryName(_0x40b638,_0xc7b849){const _0x48e48f=a144_0x182a22;if(_0xc7b849['extraFields'][_0x48e48f(0x1aa)](_0x3dcabb=>_0x3dcabb['id']===0x1)[_0x48e48f(0xd7)]>0x1)throw new Error(_0x48e48f(0x168));const _0x54c748=_0xc7b849,_0x29bb22=_0xc7b849[_0x48e48f(0x143)];if(!Buffer['isBuffer'](_0x54c748[_0x48e48f(0x18c)])||!Buffer[_0x48e48f(0x1af)](_0x54c748[_0x48e48f(0x184)])||!Buffer[_0x48e48f(0x1af)](_0x54c748[_0x48e48f(0x181)])||!Number[_0x48e48f(0x153)](_0x29bb22)||_0x29bb22<0x0||_0x29bb22>_0x40b638[_0x48e48f(0xd7)]-0x1e||_0x40b638[_0x48e48f(0x111)](_0x29bb22)!==0x4034b50)throw new Error(_0x48e48f(0x146));const _0x5d0c6d=_0x29bb22+0x1e+_0x40b638[_0x48e48f(0x17a)](_0x29bb22+0x1a),_0x416536=_0x5d0c6d+_0x40b638[_0x48e48f(0x17a)](_0x29bb22+0x1c)+_0xc7b849['compressedSize'];if(!Number[_0x48e48f(0x153)](_0x416536)||_0x416536>_0x40b638[_0x48e48f(0xd7)])throw new Error(_0x48e48f(0x146));if(_0x5d0c6d>_0x40b638[_0x48e48f(0xd7)]||!_0x40b638[_0x48e48f(0xe7)](_0x29bb22+0x1e,_0x5d0c6d)['equals'](_0x54c748[_0x48e48f(0x18c)]))throw new Error(_0x48e48f(0xc4));const _0x47dc24=new ZipEntry({},{'decodeFileName':zipUtf8['utf8decode']});_0x47dc24[_0x48e48f(0xfb)]=_0xc7b849[_0x48e48f(0x178)],_0x47dc24[_0x48e48f(0x1b0)]=_0x54c748[_0x48e48f(0x18c)],_0x47dc24[_0x48e48f(0x1ae)]=_0x54c748[_0x48e48f(0x181)],_0x47dc24[_0x48e48f(0x11f)]=_0x54c748['extraFieldRaw'][_0x48e48f(0xd7)],_0x47dc24['readExtraFields'](zipReader(_0x54c748['extraFieldRaw'])),_0x47dc24[_0x48e48f(0x16b)](),_0x47dc24[_0x48e48f(0x190)]=_0xc7b849[_0x48e48f(0x190)],_0x47dc24[_0x48e48f(0x14e)]=_0xc7b849['externalFileAttributes'],_0x47dc24[_0x48e48f(0x103)]();const _0x50401c=_0x47dc24[_0x48e48f(0x138)]||Boolean((_0x47dc24[_0x48e48f(0x1a9)]??0x0)&0x4000),_0x3b657b=zipPaths[_0x48e48f(0x158)](_0x47dc24[_0x48e48f(0x195)]),_0x12dbf1=_0x3b657b['startsWith']('/')?_0x3b657b[_0x48e48f(0x19f)](0x1):_0x3b657b;return{'name':_0x12dbf1,'original':_0x47dc24[_0x48e48f(0x195)],'directory':_0x50401c};}export function normalizeImportFields(_0x5519ec){const _0x1286e2=a144_0x182a22;if(!_0x5519ec||(_0x5519ec['source']??_0x5519ec[_0x1286e2(0xfd)]?.['sourceType'])!==_0x1286e2(0x18f))throw new Error('Excel\x20import\x20only\x20supports\x20METADATA\x20datasets.');const _0x1e57d2=Array[_0x1286e2(0xcc)](_0x5519ec[_0x1286e2(0x1a8)]),_0x5800d8=_0x1e57d2?_0x5519ec[_0x1286e2(0x1a8)]:_0x5519ec['properties'];if(!Array[_0x1286e2(0xcc)](_0x5800d8)||_0x5800d8['length']===0x0)throw new Error(_0x1286e2(0x100));const _0x3e1474=[],_0x3b9efc=new Set();for(const _0x15bd85 of _0x5800d8){if(_0x15bd85[_0x1286e2(0x171)]===!![])continue;let _0x197600=_0x15bd85[_0x1286e2(0x175)]??{};if(!_0x1e57d2&&typeof _0x197600===_0x1286e2(0xeb)){try{_0x197600=JSON['parse'](_0x197600);}catch{throw new Error('Invalid\x20dataset\x20field\x20extension\x20metadata.');}if(!_0x197600||typeof _0x197600!==_0x1286e2(0x11e)||Array[_0x1286e2(0xcc)](_0x197600))throw new Error('Invalid\x20dataset\x20field\x20extension\x20metadata.');}const _0x17d88c=_0x1e57d2?_0x15bd85['name']:_0x15bd85[_0x1286e2(0x162)],_0x454abf=_0x1e57d2?_0x15bd85['doType']:_0x15bd85[_0x1286e2(0x173)]??_0x15bd85['dataType'];if(typeof _0x17d88c!==_0x1286e2(0xeb)||!_0x17d88c||typeof _0x454abf!==_0x1286e2(0xeb)||_0x3b9efc['has'](_0x17d88c))throw new Error(_0x1286e2(0xe1));if(_0x454abf[_0x1286e2(0x10c)]()==='serial_number')throw new Error(_0x1286e2(0xc5));_0x3b9efc[_0x1286e2(0xc2)](_0x17d88c);const _0x2a9f1c=_0x1e57d2?_0x15bd85:_0x197600,_0x375e05={'code':_0x17d88c,'type':_0x454abf,'required':_0x2a9f1c[_0x1286e2(0x13f)]===!![]};if(RESERVED[_0x1286e2(0x148)](_0x17d88c)||_0x2a9f1c[_0x1286e2(0xe3)]===!![]||_0x2a9f1c['autoIncrement']===!![])_0x375e05[_0x1286e2(0xe3)]=!![];_0x3e1474['push'](_0x375e05);}return _0x3e1474;}async function checkArchive(_0x42634c,_0x4b736f){await new Promise((_0x37798e,_0x4c37f4)=>{a144_0x207229['fromBuffer'](_0x42634c,{'lazyEntries':!![],'validateEntrySizes':!![]},(_0x71f443,_0x2feecd)=>{const _0x344b0e=a144_0x5e9d;if(_0x71f443||!_0x2feecd){_0x4c37f4(_0x71f443??new Error(_0x344b0e(0x101)));return;}let _0x49793c;try{_0x49793c=centralDirectoryEnd(_0x42634c,_0x2feecd);}catch(_0xdaf800){_0x2feecd[_0x344b0e(0x13c)](),_0x4c37f4(_0xdaf800);return;}let _0x3d1a98=0x0,_0x4ce930=0x0,_0x3a957c=0x0,_0x1f34e1=0x0,_0x207c5b=0x0,_0x33abb1=0x0,_0x392309=0x0,_0x58d65d=0x0,_0x542756=0x0,_0x3ae962=![],_0x34f66d;const _0x174b57=new Set(),_0x20fce0=_0x13ceb7=>{const _0x12d70c=_0x344b0e;if(_0x3ae962)return;_0x3ae962=!![],_0x34f66d?.['destroy'](),_0x2feecd[_0x12d70c(0x13c)](),_0x4c37f4(_0x13ceb7);},_0x425f34=(_0x440a54,_0x51c2ab)=>{const _0x1ac0a4=_0x344b0e;if(!_0x440a54||!/^\d+$/[_0x1ac0a4(0x107)](_0x440a54))throw new Error('Invalid\x20worksheet\x20coordinate.');const _0x5eef23=Number(_0x440a54);if(!Number[_0x1ac0a4(0x153)](_0x5eef23)||_0x5eef23<0x1||_0x5eef23>_0x51c2ab)throw new Error(_0x1ac0a4(0x120)+_0x51c2ab+'.');return _0x5eef23;},_0x3ce588=(_0x2acc2d,_0x3a0317=MAX_XML_COLUMNS)=>{const _0x4e9410=_0x344b0e,_0x43cae9=/^\$?([A-Z]{1,3})\$?(\d+)$/[_0x4e9410(0x196)](_0x2acc2d);if(!_0x43cae9)throw new Error(_0x4e9410(0x176));let _0x20bda4=0x0;for(const _0x532e7f of _0x43cae9[0x1])_0x20bda4=_0x20bda4*0x1a+_0x532e7f[_0x4e9410(0xff)](0x0)-0x40;if(_0x20bda4>_0x3a0317)throw new Error('Worksheet\x20exceeds\x20'+_0x3a0317+_0x4e9410(0x170));return{'row':_0x425f34(_0x43cae9[0x2],MAX_XML_ROWS),'col':_0x20bda4};},_0x33641f=_0x17b2b3=>{const _0x3bd266=_0x344b0e;if(_0x17b2b3['name']===_0x3bd266(0x15a)||_0x17b2b3[_0x3bd266(0x192)]===_0x3bd266(0x129))return;for(const _0x35fe0a of _0x17b2b3[_0x3bd266(0xef)]){if(!ABSOLUTE_NAME_RANGE[_0x3bd266(0x107)](_0x35fe0a[_0x3bd266(0x144)]('!')[_0x3bd266(0xd0)]()||''))continue;const _0x3e2add=nameCoordinates[_0x3bd266(0xfc)](_0x35fe0a),_0x2d81fa=_0x3bd266(0xd3)in _0x3e2add,_0x369422=_0x2d81fa?[_0x3e2add[_0x3bd266(0xd3)],_0x3e2add[_0x3bd266(0x102)]]:[_0x3e2add[_0x3bd266(0x193)]],_0x3b97ba=_0x2d81fa?[_0x3e2add[_0x3bd266(0x11d)],_0x3e2add[_0x3bd266(0x19b)]]:[_0x3e2add[_0x3bd266(0x163)]],_0x59b957=(_0x1e721c,_0x6d0375)=>Number[_0x3bd266(0x153)](_0x1e721c)&&_0x1e721c>=0x1&&_0x1e721c<=_0x6d0375;if(!_0x369422[_0x3bd266(0x116)](_0x39dc8b=>_0x59b957(_0x39dc8b,MAX_XML_ROWS))||!_0x3b97ba[_0x3bd266(0x116)](_0x5c6cb0=>_0x59b957(_0x5c6cb0,MAX_XML_COLUMNS)))throw new Error(_0x3bd266(0x12c));_0x392309+=_0x2d81fa?(_0x3e2add[_0x3bd266(0x102)]-_0x3e2add[_0x3bd266(0xd3)]+0x1)*(_0x3e2add[_0x3bd266(0x19b)]-_0x3e2add[_0x3bd266(0x11d)]+0x1):0x1;if(_0x392309>MAX_ROWS)throw new Error(_0x3bd266(0x13e));}};_0x2feecd['on']('error',_0x20fce0),_0x2feecd['on'](_0x344b0e(0xf8),_0x1e24c2=>{const _0x118def=_0x344b0e;if(_0x3ae962)return;if(++_0x3a957c>0x2710||(_0x3d1a98+=_0x1e24c2[_0x118def(0xe0)])>MAX_EXPANDED){_0x20fce0(new Error(_0x118def(0x124)));return;}let _0x353c4e;try{_0x353c4e=consumerEntryName(_0x42634c,_0x1e24c2);}catch(_0x77ee42){_0x20fce0(_0x77ee42);return;}if(_0x353c4e[_0x118def(0x1a1)]){_0x2feecd[_0x118def(0x125)]();return;}const _0x1f7ae1=_0x353c4e[_0x118def(0x192)];if(_0x4b736f&&(_0x1f7ae1!==_0x353c4e[_0x118def(0x17e)]||_0x174b57[_0x118def(0x148)](_0x1f7ae1)||_0x1f7ae1[_0x118def(0x11c)]('/')||_0x1f7ae1[_0x118def(0xe5)]('\x5c'))){_0x20fce0(new Error('Non-canonical\x20or\x20duplicate\x20image\x20archive\x20entry.'));return;}if(_0x1f7ae1!==_0x353c4e['original']&&(_0x1f7ae1==='xl/workbook.xml'||/xl\/worksheets\/sheet(\d+)[.]xml/['test'](_0x1f7ae1))){_0x20fce0(new Error(_0x118def(0x117)));return;}const _0x561c3d=_0x1f7ae1===_0x118def(0x194);if(_0x561c3d&&_0x174b57[_0x118def(0x148)](_0x1f7ae1)){_0x20fce0(new Error(_0x118def(0x12f)));return;}_0x174b57[_0x118def(0xc2)](_0x1f7ae1);const _0x1794c3=/xl\/worksheets\/sheet(\d+)[.]xml/[_0x118def(0x107)](_0x1f7ae1);if(_0x1794c3&&!/^xl\/worksheets\/sheet\d+[.]xml$/[_0x118def(0x107)](_0x1f7ae1)){_0x20fce0(new Error(_0x118def(0x110)));return;}_0x2feecd[_0x118def(0x179)](_0x1e24c2,(_0x4ff45e,_0x36aa5f)=>{const _0x2643f5=_0x118def;if(_0x3ae962){_0x36aa5f?.[_0x2643f5(0x152)]();return;}if(_0x4ff45e||!_0x36aa5f){_0x20fce0(_0x4ff45e??new Error(_0x2643f5(0x199)));return;}_0x34f66d=_0x36aa5f;const _0x443ed1=_0x4b736f?[]:undefined,_0x154ced=_0x4b736f&&/[.](xml|rels)$/['test'](_0x1f7ae1)?new StringDecoder(_0x2643f5(0x150)):undefined,_0x1a451e=_0x154ced?new SaxesParser({'xmlns':![]}):undefined,_0x56518a=()=>{const _0x496413=_0x2643f5;if(++_0x542756>0x1e8480)throw Error(_0x496413(0xe8));};_0x1a451e?.['on'](_0x2643f5(0x16f),()=>{const _0x4339d0=_0x2643f5;throw Error(_0x4339d0(0xe9));}),_0x1a451e?.['on']('opentag',()=>{const _0x5e28a5=_0x2643f5;_0x56518a();if(++_0x58d65d>0x7a120)throw Error(_0x5e28a5(0xe2));}),_0x1a451e?.['on'](_0x2643f5(0x115),_0x56518a),_0x1a451e?.['on'](_0x2643f5(0xd2),_0x56518a),_0x1a451e?.['on'](_0x2643f5(0xd5),_0x3ff7fc=>{throw _0x3ff7fc;});const _0x4419a8=_0x1794c3||_0x561c3d?new StringDecoder(_0x2643f5(0x150)):undefined,_0x2528c6=_0x1794c3||_0x561c3d?new SaxesParser({'xmlns':![]}):undefined;let _0x443ecc,_0x1e67e2=0x0,_0x440105=0x0,_0x387400,_0x3d2bcb,_0x57ee3c=![],_0x463f40=![],_0x49619f,_0x46f60c,_0x7fce0c,_0x49f8d4=![];const _0x34a8b5=[],_0x394e8b=new Set();let _0x257ef4;const _0x2284f9=(_0x3c93b3,_0x487c45=0x0)=>{const _0x5afe40=_0x2643f5;_0x207c5b+=_0x487c45+Math[_0x5afe40(0x12b)](0x0,_0x3c93b3-_0x440105),_0x440105=Math['max'](_0x440105,_0x3c93b3);if(_0x207c5b>MAX_ROWS)throw new Error(_0x5afe40(0x114));};_0x2528c6?.['on'](_0x2643f5(0x104),_0x1ed781=>{const _0x29f63e=_0x2643f5;if(_0x561c3d){if(!_0x443ecc&&_0x1ed781[_0x29f63e(0x192)]===_0x29f63e(0x113))_0x443ecc=new DefinedNameXform();_0x443ecc?.['parseOpen'](_0x1ed781);return;}if(_0x1ed781[_0x29f63e(0x192)]===_0x29f63e(0x193)){if(_0x463f40)throw new Error('Invalid\x20worksheet\x20nested\x20row.');_0x425f34(_0x1ed781[_0x29f63e(0x180)]['r'],MAX_XML_ROWS),_0x387400=undefined,_0x7fce0c=undefined,_0x49f8d4=![];}else{if(_0x1ed781['name']==='c'){if(_0x463f40)throw new Error('Invalid\x20worksheet\x20nested\x20cell.');_0x463f40=!![],_0x57ee3c=Boolean(Number[_0x29f63e(0x174)](_0x1ed781['attributes']['s']??'',0xa)),_0x257ef4=undefined,_0x49619f=_0x1ed781[_0x29f63e(0x180)]['r']||undefined,_0x46f60c=_0x49619f?_0x3ce588(_0x49619f):undefined;if(_0x46f60c)_0x3d2bcb=_0x46f60c;else _0x3d2bcb=_0x387400?{'row':_0x387400[_0x29f63e(0x193)],'col':_0x387400[_0x29f63e(0x163)]+0x1}:undefined;}else{if(_0x463f40&&['f','v','t']['includes'](_0x1ed781['name'])){_0x257ef4=_0x1ed781[_0x29f63e(0x192)];if(_0x1ed781['name']==='f'&&_0x1ed781[_0x29f63e(0x180)]['t'])_0x57ee3c=!![];}else{if(_0x463f40&&_0x1ed781['name']==='r')_0x57ee3c=!![];else{if(_0x1ed781['name']===_0x29f63e(0xf4)){const _0x16d5df=_0x1ed781[_0x29f63e(0x180)][_0x29f63e(0x127)];if(!_0x16d5df)throw new Error('Invalid\x20worksheet\x20hyperlink\x20reference.');const _0x41e3db=_0x16d5df[_0x29f63e(0x144)](':');if(_0x41e3db[_0x29f63e(0xd7)]>0x2)throw new Error(_0x29f63e(0x18e));const _0x34d19e=_0x3ce588(_0x41e3db[0x0]),_0x1ee9c4=_0x3ce588(_0x41e3db[0x1]??_0x41e3db[0x0]);_0x394e8b[_0x29f63e(0xc2)](_0x16d5df),_0x2284f9(Math[_0x29f63e(0x12b)](_0x34d19e['col'],_0x1ee9c4['col']),0x1);}else{if(_0x1ed781['name']===_0x29f63e(0x163)){const _0xfce66c=_0x425f34(_0x1ed781[_0x29f63e(0x180)][_0x29f63e(0xee)],0x4000),_0x174d04=_0x425f34(_0x1ed781['attributes'][_0x29f63e(0x12b)],0x4000);if(_0xfce66c>_0x174d04)throw new Error(_0x29f63e(0x1a0));_0x2284f9(_0x174d04,0x1);}else{if(_0x1ed781[_0x29f63e(0x192)]===_0x29f63e(0xea)){const _0x566794=_0x1ed781[_0x29f63e(0x180)][_0x29f63e(0x127)];if(!_0x566794)throw new Error(_0x29f63e(0x14c));const _0xc3b541=_0x566794['split'](':');if(_0xc3b541['length']>0x2)throw new Error(_0x29f63e(0x14c));const _0xbddad9=_0x3ce588(_0xc3b541[0x0]),_0xad37d4=_0x3ce588(_0xc3b541[0x1]??_0xc3b541[0x0]);_0x2284f9(Math[_0x29f63e(0x12b)](_0xbddad9[_0x29f63e(0x163)],_0xad37d4[_0x29f63e(0x163)]));const _0x4cfe22=(Math[_0x29f63e(0xdb)](_0xad37d4[_0x29f63e(0x193)]-_0xbddad9[_0x29f63e(0x193)])+0x1)*(Math[_0x29f63e(0xdb)](_0xad37d4['col']-_0xbddad9[_0x29f63e(0x163)])+0x1);_0x1f34e1+=_0x4cfe22+_0x1e67e2++;if(_0x1f34e1>MAX_ROWS)throw new Error(_0x29f63e(0x17f));}}}}}}}}),_0x2528c6?.['on']('text',_0x5a4cd0=>{const _0x1de8d9=_0x2643f5;if(_0x561c3d){_0x443ecc?.[_0x1de8d9(0x147)](_0x5a4cd0);return;}if(_0x463f40&&_0x257ef4&&_0x5a4cd0)_0x57ee3c=!![];}),_0x2528c6?.['on']('closetag',_0x17f81d=>{const _0x539c0c=_0x2643f5;if(_0x561c3d){_0x443ecc&&!_0x443ecc[_0x539c0c(0xd4)]()&&(_0x33641f(_0x443ecc[_0x539c0c(0x19a)]),_0x443ecc=undefined);return;}if(_0x17f81d[_0x539c0c(0x192)]==='c'){!_0x57ee3c&&_0x49619f&&!_0x7fce0c&&(_0x7fce0c={'before':_0x387400,'cells':[]});if(_0x7fce0c){if(++_0x33abb1>0xf4240)throw new Error(_0x539c0c(0x19c));_0x7fce0c[_0x539c0c(0x16c)][_0x539c0c(0x136)]({'reference':_0x49619f,'address':_0x46f60c,'materialized':_0x57ee3c});if(!_0x49619f&&_0x57ee3c)_0x49f8d4=!![];}if(_0x57ee3c){if(!_0x7fce0c||_0x49619f){if(!_0x3d2bcb)throw new Error('Invalid\x20worksheet\x20cell\x20without\x20an\x20initial\x20reference.');if(_0x3d2bcb[_0x539c0c(0x163)]>MAX_XML_COLUMNS)throw new Error(_0x539c0c(0xfa));_0x2284f9(_0x3d2bcb[_0x539c0c(0x163)]);}_0x387400=_0x3d2bcb;}_0x463f40=![],_0x3d2bcb=undefined,_0x49619f=undefined,_0x46f60c=undefined,_0x257ef4=undefined;}else{if(_0x17f81d[_0x539c0c(0x192)]===_0x539c0c(0x193)){if(_0x7fce0c&&_0x49f8d4)_0x34a8b5['push'](_0x7fce0c);_0x7fce0c=undefined,_0x49f8d4=![];}else{if(_0x17f81d['name']===_0x257ef4)_0x257ef4=undefined;}}}),_0x2528c6?.['on'](_0x2643f5(0xd5),_0x485c92=>{const _0x424312=_0x2643f5;throw new Error('Invalid\x20worksheet\x20XML:\x20'+_0x485c92[_0x424312(0x16a)]);}),_0x36aa5f['on']('error',_0x20fce0),_0x36aa5f['on'](_0x2643f5(0x182),_0x4622d5=>{const _0x5958e5=_0x2643f5;if(_0x3ae962)return;_0x4ce930+=_0x4622d5[_0x5958e5(0xd7)],_0x443ed1?.[_0x5958e5(0x136)](_0x4622d5);if(_0x4ce930>MAX_EXPANDED){_0x20fce0(new Error('XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.'));return;}try{if(_0x1a451e&&_0x154ced)_0x1a451e[_0x5958e5(0x10b)](_0x154ced[_0x5958e5(0x10b)](_0x4622d5));if(_0x2528c6&&_0x4419a8)_0x2528c6['write'](_0x4419a8['write'](_0x4622d5));}catch(_0x2f9620){_0x20fce0(_0x2f9620 instanceof Error?_0x2f9620:new Error('Invalid\x20worksheet\x20XML.'));}}),_0x36aa5f['on'](_0x2643f5(0x119),()=>{const _0x16ff9d=_0x2643f5;if(_0x3ae962)return;try{if(_0x1a451e&&_0x154ced)_0x1a451e[_0x16ff9d(0x10b)](_0x154ced['end']())['close']();if(_0x2528c6&&_0x4419a8)_0x2528c6[_0x16ff9d(0x10b)](_0x4419a8['end']())[_0x16ff9d(0x13c)]();for(const _0x5cd88a of _0x34a8b5){let _0x32a23f=_0x5cd88a[_0x16ff9d(0x18a)];for(const _0x411315 of _0x5cd88a['cells']){if(!_0x411315[_0x16ff9d(0x1a3)]&&!(_0x411315['reference']&&_0x394e8b[_0x16ff9d(0x148)](_0x411315[_0x16ff9d(0x109)])))continue;const _0xb6e186=_0x411315[_0x16ff9d(0x17c)]??(_0x32a23f?{'row':_0x32a23f[_0x16ff9d(0x193)],'col':_0x32a23f['col']+0x1}:undefined);if(!_0xb6e186)throw new Error('Invalid\x20worksheet\x20cell\x20without\x20an\x20initial\x20reference.');if(_0xb6e186[_0x16ff9d(0x163)]>MAX_XML_COLUMNS)throw new Error('Worksheet\x20exceeds\x2016384\x20columns.');_0x2284f9(_0xb6e186[_0x16ff9d(0x163)]),_0x32a23f=_0xb6e186;}}_0x34a8b5[_0x16ff9d(0xd7)]=0x0,_0x394e8b['clear']();}catch(_0x1d60d6){_0x20fce0(_0x1d60d6 instanceof Error?_0x1d60d6:new Error(_0x16ff9d(0xda)));return;}if(_0x443ed1)_0x4b736f[_0x16ff9d(0xf5)](_0x1f7ae1,Buffer['concat'](_0x443ed1));_0x34f66d=undefined,_0x2feecd[_0x16ff9d(0x125)]();});});}),_0x2feecd['on'](_0x344b0e(0x119),()=>{const _0x24b5a3=_0x344b0e;if(_0x3ae962)return;if(_0x2feecd[_0x24b5a3(0x137)]!==_0x49793c){_0x4c37f4(new Error(_0x24b5a3(0x10d)));return;}if(!_0x174b57[_0x24b5a3(0x148)]('[Content_Types].xml')||!_0x174b57[_0x24b5a3(0x148)]('xl/workbook.xml'))_0x4c37f4(new Error(_0x24b5a3(0xf0)));else _0x37798e();}),_0x2feecd[_0x344b0e(0x125)]();});});}function valueOf(_0x4c335f){const _0x49df75=a144_0x182a22,_0xe4462f=_0x4c335f['value'];if(_0xe4462f&&typeof _0xe4462f===_0x49df75(0x11e)&&(_0x49df75(0x151)in _0xe4462f||_0x49df75(0xf3)in _0xe4462f)){if(!(_0x49df75(0xcd)in _0xe4462f)||_0xe4462f['result']===undefined)throw new Error('Formula\x20has\x20no\x20cached\x20result.');return _0xe4462f[_0x49df75(0xcd)];}return _0xe4462f;}function convert(_0xb8efe9,_0x43e82d){const _0x24e2e3=a144_0x182a22;if(_0xb8efe9===null||_0xb8efe9===undefined||_0xb8efe9===''){if(_0x43e82d[_0x24e2e3(0x13f)]&&!_0x43e82d[_0x24e2e3(0xe3)])throw new Error(_0x24e2e3(0xf9));return null;}if(typeof _0xb8efe9===_0x24e2e3(0xeb)&&Buffer[_0x24e2e3(0x154)](_0xb8efe9,_0x24e2e3(0x150))>MAX_CELL)throw new Error(_0x24e2e3(0x133));switch(_0x43e82d[_0x24e2e3(0x173)][_0x24e2e3(0x10c)]()){case _0x24e2e3(0xeb):case'text':case'textarea':if(typeof _0xb8efe9!=='string')throw new Error(_0x24e2e3(0x10f));return _0xb8efe9;case _0x24e2e3(0x132):case _0x24e2e3(0x13b):case _0x24e2e3(0xc0):if(typeof _0xb8efe9!=='number'||!Number[_0x24e2e3(0x18d)](_0xb8efe9)||Math[_0x24e2e3(0xdb)](_0xb8efe9)>Number['MAX_SAFE_INTEGER']||_0x43e82d['type'][_0x24e2e3(0x10c)]()===_0x24e2e3(0xc0)&&!Number[_0x24e2e3(0xc8)](_0xb8efe9))throw new Error(_0x24e2e3(0x19d));return _0xb8efe9;case _0x24e2e3(0x16d):if(typeof _0xb8efe9!==_0x24e2e3(0x16d))throw new Error(_0x24e2e3(0x139));return _0xb8efe9;case _0x24e2e3(0x1a5):case'datetime':if(!(_0xb8efe9 instanceof Date)||!Number[_0x24e2e3(0x18d)](_0xb8efe9['getTime']()))throw new Error(_0x24e2e3(0x15d));return _0xb8efe9[_0x24e2e3(0xcf)]();default:throw new Error(_0x24e2e3(0x164)+_0x43e82d['type']+'.');}}function a144_0x8f2d(){const _0x572132=['Image\x20XML\x20event\x20budget\x20exceeded.','XML\x20DTD/entities\x20are\x20not\x20supported.','mergeCell','string','22010npgQEU','Headers\x20must\x20be\x20non-empty\x20text\x20cells\x20no\x20larger\x20than\x2064\x20KB.','min','ranges','File\x20is\x20not\x20an\x20XLSX\x20workbook.','nativeCell','textarea','sharedFormula','hyperlink','set','exceljs/lib/xlsx/xform/book/defined-name-xform.js','XLSX\x20file\x20exceeds\x2020\x20MB.','entry','Required\x20value\x20is\x20missing.','Worksheet\x20exceeds\x2016384\x20columns.','bitFlag','decodeEx','dataset','from','charCodeAt','Dataset\x20field\x20metadata\x20is\x20missing.','Invalid\x20XLSX\x20archive.','bottom','processAttributes','opentag','lastIndexOf','getRow','test','some','reference','10173gVLYCa','write','toLowerCase','ZIP\x20central\x20directory\x20entry\x20count\x20does\x20not\x20match\x20its\x20contents.','imageFields','Expected\x20a\x20text\x20cell.','Non-canonical\x20worksheet\x20ZIP\x20entry.','readUInt32LE','Requested\x20worksheet\x20does\x20not\x20exist.','definedName','Worksheet\x20column\x20objects\x20exceed\x20100000.','text','every','Non-canonical\x20workbook\x20or\x20worksheet\x20ZIP\x20entry.','extname','end','XLSX\x20file\x20must\x20be\x20a\x20regular\x20file\x20no\x20larger\x20than\x2020\x20MB.','jszip','startsWith','left','object','extraFieldsLength','Worksheet\x20coordinate\x20exceeds\x20','contentHash','Merged\x20cells\x20are\x20not\x20supported.','image/jpeg','XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.','readEntry','72TqvoYh','ref','dataset-import/','_xlnm.Print_Titles','Invalid\x20ZIP\x20central\x20directory\x20layout.','max','Invalid\x20defined\x20name\x20coordinate.','Workbook','Missing\x20image\x20media:\x20','Duplicate\x20workbook\x20ZIP\x20entry.','./utils','entries','number','Cell\x20exceeds\x2064\x20KB.','Duplicate\x20dataset\x20field\x20codes.','./utf8','push','readEntryCursor','dir','Expected\x20a\x20boolean\x20cell.','./reader/readerFor','decimal','close','eachCell','Workbook\x20defined\x20name\x20work\x20exceeds\x20100000.','required','map','datetime','merges','relativeOffsetOfLocalHeader','split','jpg','Invalid\x20ZIP\x20local\x20file\x20header.','parseText','has','errors','332172cAVCgX','Sheet\x20index\x20must\x20be\x20a\x20positive\x20one-based\x20integer.','Invalid\x20worksheet\x20merge\x20reference.','477TvKMyL','externalFileAttributes','hidden','utf8','formula','destroy','isSafeInteger','byteLength','batchSize','\x20hidden\x20row(s)\x20are\x20included\x20in\x20the\x20import.','modifierName','resolve','trim','_xlnm.Print_Area','entryCount','exceljs/lib/utils/col-cache.js','Expected\x20an\x20Excel\x20date\x20cell.','appCode','getCell','worksheets','media','code','col','Unsupported\x20field\x20type:\x20','get','Unknown\x20or\x20generated\x20mapping\x20field:\x20','update','Duplicate\x20ZIP64\x20extended\x20information\x20fields\x20are\x20not\x20supported.','headerRow','message','handleUTF8','cells','boolean','sheet','doctype','\x20columns.','deleted','size','type','parseInt','extend','Invalid\x20worksheet\x20cell\x20or\x20merge\x20reference.','.xlsx','generalPurposeBitFlag','openReadStream','readUInt16LE','creatorId','address','hiddenRow','original','Worksheet\x20merge\x20work\x20exceeds\x20100000.','attributes','fileCommentRaw','data','localeCompare','extraFieldRaw','upload','file','mapping','datasetId','10856615ktfhEj','before','stringify','fileNameRaw','isFinite','Invalid\x20worksheet\x20hyperlink\x20reference.','METADATA','versionMadeBy','Mapping\x20must\x20contain\x20at\x20least\x20one\x20field.','name','row','xl/workbook.xml','fileNameStr','exec','xlsx','hex','Invalid\x20XLSX\x20entry.','model','right','Worksheet\x20deferred\x20cell\x20events\x20exceed\x201000000.','Expected\x20a\x20finite\x20safe\x20numeric\x20cell.','tenantCode','slice','Invalid\x20worksheet\x20column\x20range.','directory','value','materialized','exceljs','date','172bzIdmb','batchSize\x20must\x20be\x20between\x201\x20and\x201000.','fields','unixPermissions','filter','isFile','modifierId','rows','fileComment','isBuffer','fileName','columnCount','2036408WSMvxj','create','integer','7LxBRSW','add','Duplicate\x20mapping\x20target:\x20','ZIP\x20local\x20and\x20central\x20entry\x20names\x20must\x20match.','Unsupported\x20dataset\x20field\x20type:\x20serial_number.','235058vQiBpb','values','isInteger','Unique\x20image\x20bytes\x20exceed\x2050\x20MB.','Required\x20image\x20value\x20is\x20missing.','32365AsFRRZ','isArray','result','find','getTime','pop','headerRow\x20must\x20be\x20between\x201\x20and\x20100000.','closetag','top','parseClose','error','Unknown\x20Excel\x20header:\x20','length','Duplicate\x20header:\x20','rowCount','Invalid\x20worksheet\x20XML.','abs','Worksheet\x20exceeds\x20100000\x20rows\x20or\x20256\x20columns.','Required\x20field\x20is\x20not\x20mapped:\x20','readBigUInt64LE','digest','uncompressedSize','Invalid\x20or\x20duplicate\x20dataset\x20field\x20metadata.','Image\x20XML\x20node\x20budget\x20exceeded.','generated','image','includes','parserVersion','subarray'];a144_0x8f2d=function(){return _0x572132;};return a144_0x8f2d();}export async function buildExcelManifest(_0x23e156){const _0x3acd7e=a144_0x182a22,_0x34e273=_0x23e156[_0x3acd7e(0x169)]??0x1;if(!Number[_0x3acd7e(0xc8)](_0x34e273)||_0x34e273<0x1||_0x34e273>MAX_ROWS)throw new Error(_0x3acd7e(0xd1));if(_0x23e156[_0x3acd7e(0x155)]!==undefined&&(!Number['isInteger'](_0x23e156[_0x3acd7e(0x155)])||_0x23e156['batchSize']<0x1||_0x23e156[_0x3acd7e(0x155)]>0x3e8))throw new Error(_0x3acd7e(0x1a7));if(a144_0x3425f4[_0x3acd7e(0x118)](_0x23e156['file'])[_0x3acd7e(0x10c)]()!==_0x3acd7e(0x177))throw new Error('Only\x20.xlsx\x20files\x20are\x20supported.');const _0x153647=await stat(_0x23e156[_0x3acd7e(0x186)]);if(!_0x153647[_0x3acd7e(0x1ab)]()||_0x153647['size']>MAX_FILE)throw new Error(_0x3acd7e(0x11a));const _0x1c1a84=await readFile(_0x23e156[_0x3acd7e(0x186)]);if(_0x1c1a84[_0x3acd7e(0xd7)]>MAX_FILE)throw new Error(_0x3acd7e(0xf7));const _0x3b0c2a=_0x23e156[_0x3acd7e(0x1a8)][_0x3acd7e(0x108)](_0x2cc0d9=>isImageContainer(_0x2cc0d9['type'])&&Object[_0x3acd7e(0xc7)](_0x23e156[_0x3acd7e(0x187)])[_0x3acd7e(0xe5)](_0x2cc0d9['code']))?new Map():undefined;await checkArchive(_0x1c1a84,_0x3b0c2a);const _0x507498=new a144_0x579a8e[(_0x3acd7e(0x12d))]();await _0x507498[_0x3acd7e(0x197)]['load'](_0x1c1a84,{'ignoreNodes':['dataValidations']});const _0x525f16=_0x23e156[_0x3acd7e(0x16e)];let _0x16e386;if(_0x525f16===undefined)_0x16e386=_0x507498[_0x3acd7e(0x160)][0x0];else{if(typeof _0x525f16===_0x3acd7e(0xeb)&&_0x507498[_0x3acd7e(0x160)][_0x3acd7e(0x108)](_0x18f199=>_0x18f199['name']===_0x525f16))_0x16e386=_0x507498['worksheets'][_0x3acd7e(0xce)](_0x55b1ef=>_0x55b1ef[_0x3acd7e(0x192)]===_0x525f16);else{if(typeof _0x525f16===_0x3acd7e(0x132)||/^\d+$/[_0x3acd7e(0x107)](_0x525f16)){const _0xbb05fb=Number(_0x525f16);if(!Number[_0x3acd7e(0xc8)](_0xbb05fb)||_0xbb05fb<0x1)throw new Error(_0x3acd7e(0x14b));_0x16e386=_0x507498[_0x3acd7e(0x160)][_0xbb05fb-0x1];}else _0x16e386=_0x507498['worksheets'][_0x3acd7e(0xce)](_0x3d33a3=>_0x3d33a3['name']===_0x525f16);}}if(!_0x16e386)throw new Error(_0x3acd7e(0x112));if(_0x16e386[_0x3acd7e(0xd9)]>MAX_ROWS||_0x16e386[_0x3acd7e(0x1b1)]>MAX_COLUMNS)throw new Error(_0x3acd7e(0xdc));if((_0x16e386['model'][_0x3acd7e(0x142)]??[])[_0x3acd7e(0xd7)])throw new Error(_0x3acd7e(0x122));const _0x34a369=new Map();_0x16e386[_0x3acd7e(0x106)](_0x34e273)['eachCell']((_0x46538d,_0x55ffb2)=>{const _0x4b19c1=_0x3acd7e,_0x3351bf=valueOf(_0x46538d);if(typeof _0x3351bf!==_0x4b19c1(0xeb)||!_0x3351bf[_0x4b19c1(0x159)]()||Buffer['byteLength'](_0x3351bf)>MAX_CELL)throw new Error(_0x4b19c1(0xed));if(_0x34a369[_0x4b19c1(0x148)](_0x3351bf))throw new Error(_0x4b19c1(0xd8)+_0x3351bf+'.');_0x34a369[_0x4b19c1(0xf5)](_0x3351bf,_0x55ffb2);});const _0x212054=Object[_0x3acd7e(0x131)](_0x23e156[_0x3acd7e(0x187)]);if(!_0x212054[_0x3acd7e(0xd7)])throw new Error(_0x3acd7e(0x191));const _0x1e8b58=new Map(_0x23e156[_0x3acd7e(0x1a8)]['map'](_0x39f6ec=>[_0x39f6ec[_0x3acd7e(0x162)],_0x39f6ec]));if(_0x1e8b58[_0x3acd7e(0x172)]!==_0x23e156[_0x3acd7e(0x1a8)][_0x3acd7e(0xd7)])throw new Error(_0x3acd7e(0x134));if(_0x23e156[_0x3acd7e(0x1a8)][_0x3acd7e(0x108)](_0x578602=>_0x578602['type'][_0x3acd7e(0x10c)]()==='serial_number'))throw new Error('Unsupported\x20dataset\x20field\x20type:\x20serial_number.');const _0x2512c6=new Set();for(const [_0x2be918,_0x5d3441]of _0x212054){const _0x3f9e48=_0x1e8b58[_0x3acd7e(0x165)](_0x5d3441);if(!_0x34a369[_0x3acd7e(0x148)](_0x2be918))throw new Error(_0x3acd7e(0xd6)+_0x2be918+'.');if(!_0x3f9e48||RESERVED['has'](_0x5d3441)||_0x3f9e48[_0x3acd7e(0xe3)])throw new Error(_0x3acd7e(0x166)+_0x5d3441+'.');if(_0x2512c6[_0x3acd7e(0x148)](_0x5d3441))throw new Error(_0x3acd7e(0xc3)+_0x5d3441+'.');if(!TYPES[_0x3acd7e(0x148)](_0x3f9e48[_0x3acd7e(0x173)][_0x3acd7e(0x10c)]()))throw new Error(_0x3acd7e(0x164)+_0x3f9e48['type']+'.');_0x2512c6[_0x3acd7e(0xc2)](_0x5d3441);}for(const _0x1b9482 of _0x23e156['fields']){if(_0x1b9482[_0x3acd7e(0x13f)]&&!_0x1b9482[_0x3acd7e(0xe3)]&&!RESERVED[_0x3acd7e(0x148)](_0x1b9482[_0x3acd7e(0x162)])&&!_0x2512c6[_0x3acd7e(0x148)](_0x1b9482[_0x3acd7e(0x162)]))throw new Error(_0x3acd7e(0xdd)+_0x1b9482[_0x3acd7e(0x162)]+'.');}const _0x351763={'fileHash':hash(_0x1c1a84),'mappingHash':hash(JSON['stringify']([..._0x212054]['sort'](([_0x59c64b],[_0x15fab8])=>_0x59c64b[_0x3acd7e(0x183)](_0x15fab8)))),'schemaHash':hash(JSON[_0x3acd7e(0x18b)]([..._0x23e156[_0x3acd7e(0x1a8)]]['sort']((_0x57beb2,_0x1fc3a1)=>_0x57beb2['code']['localeCompare'](_0x1fc3a1[_0x3acd7e(0x162)])))),'sheet':_0x16e386[_0x3acd7e(0x192)],'rows':[],'emptyRows':[],'errors':[],'warnings':[]},_0x109819=_0x212054[_0x3acd7e(0x1aa)](([,_0x15eead])=>isImageContainer(_0x1e8b58['get'](_0x15eead)['type'])),_0x43a3fc=_0x109819[_0x3acd7e(0x1aa)](([,_0x48338c])=>_0x1e8b58[_0x3acd7e(0x165)](_0x48338c)['type']['toLowerCase']()===_0x3acd7e(0x185))[_0x3acd7e(0x140)](([,_0x4e541b])=>_0x4e541b);if(_0x43a3fc['length'])_0x351763['uploadFields']=_0x43a3fc;const _0x43c0a3=_0x3b0c2a?resolveWorksheetImages(_0x3b0c2a,_0x16e386[_0x3acd7e(0x192)],new Set(_0x109819['map'](([_0x581114])=>_0x34a369[_0x3acd7e(0x165)](_0x581114)))):[],_0x35be11=new Map();for(const _0x4b346f of _0x43c0a3){const _0x4799e9=_0x4b346f[_0x3acd7e(0x193)]+':'+_0x4b346f[_0x3acd7e(0x163)],_0x207616=_0x35be11['get'](_0x4799e9)??[];_0x207616[_0x3acd7e(0x136)](_0x4b346f),_0x35be11[_0x3acd7e(0xf5)](_0x4799e9,_0x207616);}const _0x3717d2=new Map();let _0x3430f2=0x0;_0x109819[_0x3acd7e(0xd7)]&&(_0x351763[_0x3acd7e(0x10e)]=_0x109819['map'](([,_0x3010f3])=>_0x3010f3),_0x351763['imageCells']=[],_0x351763[_0x3acd7e(0xe6)]=0x1,_0x351763[_0x3acd7e(0x161)]=[]);const _0x5e9fda=Math['max'](0x0,..._0x43c0a3['map'](_0xd33af5=>_0xd33af5[_0x3acd7e(0x193)]));let _0x4219aa=0x0;const _0x4ca81f=new Set(_0x212054[_0x3acd7e(0x140)](([_0x4c7a02])=>_0x34a369['get'](_0x4c7a02)));for(let _0x1cbf7f=_0x34e273+0x1;_0x1cbf7f<=Math[_0x3acd7e(0x12b)](_0x16e386[_0x3acd7e(0xd9)],_0x5e9fda);_0x1cbf7f++){const _0x42c04f=_0x16e386[_0x3acd7e(0x106)](_0x1cbf7f);if(_0x42c04f[_0x3acd7e(0x14f)]||_0x43c0a3[_0x3acd7e(0x108)](_0x919bb8=>_0x919bb8[_0x3acd7e(0x193)]===_0x1cbf7f&&_0x919bb8[_0x3acd7e(0x17d)]))_0x4219aa++;let _0xd21a05=_0x43c0a3[_0x3acd7e(0x108)](_0x14c61e=>_0x14c61e[_0x3acd7e(0x193)]===_0x1cbf7f);_0x42c04f[_0x3acd7e(0x13d)](_0x2e0dcc=>{const _0x4eb3dd=_0x3acd7e;if(_0x2e0dcc[_0x4eb3dd(0x1a2)]!==null&&_0x2e0dcc[_0x4eb3dd(0x1a2)]!==undefined&&_0x2e0dcc[_0x4eb3dd(0x1a2)]!=='')_0xd21a05=!![];});if(!_0xd21a05){_0x351763['emptyRows'][_0x3acd7e(0x136)](_0x1cbf7f);continue;}const _0x4b502e=Object[_0x3acd7e(0x1b3)](null);_0x42c04f['eachCell']((_0x1e2b74,_0x1497fc)=>{const _0x394b47=_0x3acd7e;if(_0x4ca81f[_0x394b47(0x148)](_0x1497fc))return;try{const _0x240dfa=valueOf(_0x1e2b74);if(typeof _0x240dfa==='string'&&Buffer['byteLength'](_0x240dfa,_0x394b47(0x150))>MAX_CELL)throw new Error(_0x394b47(0x133));}catch(_0x49180d){_0x351763[_0x394b47(0x149)][_0x394b47(0x136)]({'rowNumber':_0x1cbf7f,'field':_0x1e2b74[_0x394b47(0x17c)],'message':_0x49180d[_0x394b47(0x16a)]});}});for(const [_0x219c02,_0x19464c]of _0x212054){try{const _0xf0f632=_0x42c04f[_0x3acd7e(0x15f)](_0x34a369[_0x3acd7e(0x165)](_0x219c02)),_0x4eb4db=_0x1e8b58[_0x3acd7e(0x165)](_0x19464c);if(!isImageContainer(_0x4eb4db['type'])){_0x4b502e[_0x19464c]=convert(valueOf(_0xf0f632),_0x4eb4db);continue;}const _0x158a53=_0x35be11['get'](_0x1cbf7f+':'+_0x34a369[_0x3acd7e(0x165)](_0x219c02))??[];if(_0x158a53[_0x3acd7e(0x108)](_0x469889=>_0x469889[_0x3acd7e(0xd5)]))throw Error(_0x158a53['find'](_0x1dc5ab=>_0x1dc5ab[_0x3acd7e(0xd5)])[_0x3acd7e(0xd5)]);if(_0xf0f632[_0x3acd7e(0x1a2)]!=null&&_0xf0f632[_0x3acd7e(0x1a2)]!==''&&!_0x158a53[_0x3acd7e(0x108)](_0x104160=>_0x104160[_0x3acd7e(0xf1)]))throw Error('Image\x20cell\x20contains\x20scalar\x20or\x20mixed\x20content.');const _0x1a27a9=[];for(const _0xf88a85 of _0x158a53)for(const _0x58df77 of _0xf88a85[_0x3acd7e(0x161)]){const _0x5b3484=_0x3b0c2a[_0x3acd7e(0x165)](_0x58df77);if(!_0x5b3484)throw Error(_0x3acd7e(0x12e)+_0x58df77+'.');const _0x19501c=hash(_0x5b3484),_0x418d77=_0x3717d2[_0x3acd7e(0x165)](_0x19501c)??validateImageBytes(_0x5b3484);if(!_0x3717d2[_0x3acd7e(0x148)](_0x418d77[_0x3acd7e(0x121)])){_0x3430f2+=_0x418d77[_0x3acd7e(0x172)];if(_0x3430f2>0x32*0x400*0x400)throw Error(_0x3acd7e(0xc9));_0x3717d2['set'](_0x418d77[_0x3acd7e(0x121)],_0x418d77);}_0x1a27a9[_0x3acd7e(0x136)](_0x418d77[_0x3acd7e(0x121)]);}if(!_0x1a27a9[_0x3acd7e(0xd7)]&&_0x4eb4db['required'])throw Error(_0x3acd7e(0xca));if(_0x1a27a9[_0x3acd7e(0xd7)])_0x351763['imageCells']['push']({'rowNumber':_0x1cbf7f,'field':_0x19464c,'hashes':_0x1a27a9});_0x4b502e[_0x19464c]=_0x1a27a9[_0x3acd7e(0x140)](_0x5eee95=>{const _0x141408=_0x3acd7e,_0x224ac3=_0x3717d2['get'](_0x5eee95),_0x5f320f=_0x224ac3['type']===_0x141408(0x123)?_0x141408(0x145):_0x224ac3['type'][_0x141408(0x19f)](0x6),_0x2c9310=_0x5eee95+'.'+_0x5f320f,_0x44f2d2=_0x141408(0x128)+'0'['repeat'](0x40)+'/'+_0x2c9310;return _0x4eb4db['type'][_0x141408(0x10c)]()===_0x141408(0x185)?{'fileName':_0x2c9310,'filePath':_0x44f2d2}:{'key':_0x44f2d2,'name':_0x2c9310,'type':_0x224ac3[_0x141408(0x173)],'size':_0x224ac3['size']};});}catch(_0x585624){_0x351763[_0x3acd7e(0x149)][_0x3acd7e(0x136)]({'rowNumber':_0x1cbf7f,'field':_0x19464c,'message':_0x585624['message']});}}_0x351763[_0x3acd7e(0x1ad)][_0x3acd7e(0x136)]({'rowNumber':_0x1cbf7f,'values':_0x4b502e});}if(_0x351763[_0x3acd7e(0x161)])_0x351763[_0x3acd7e(0x161)]=[..._0x3717d2[_0x3acd7e(0xc7)]()];if(_0x4219aa)_0x351763['warnings']['push'](_0x4219aa+_0x3acd7e(0x156));return _0x351763;}
@@ -1 +1 @@
1
- (function(_0x1c9469,_0x1a8a46){const _0x418faa=a145_0x5a98,_0x446e02=_0x1c9469();while(!![]){try{const _0x3d3de2=-parseInt(_0x418faa(0xd3))/0x1+parseInt(_0x418faa(0xd8))/0x2*(parseInt(_0x418faa(0xd7))/0x3)+parseInt(_0x418faa(0xb0))/0x4*(-parseInt(_0x418faa(0xc9))/0x5)+parseInt(_0x418faa(0xe6))/0x6*(parseInt(_0x418faa(0xdb))/0x7)+-parseInt(_0x418faa(0xda))/0x8*(-parseInt(_0x418faa(0xbf))/0x9)+parseInt(_0x418faa(0xdf))/0xa*(parseInt(_0x418faa(0xa9))/0xb)+-parseInt(_0x418faa(0xd6))/0xc;if(_0x3d3de2===_0x1a8a46)break;else _0x446e02['push'](_0x446e02['shift']());}catch(_0x431e4b){_0x446e02['push'](_0x446e02['shift']());}}}(a145_0x1b73,0x609ae));function a145_0x5a98(_0xbae0ae,_0x287444){_0xbae0ae=_0xbae0ae-0xa9;const _0x1b7363=a145_0x1b73();let _0x5a988e=_0x1b7363[_0xbae0ae];return _0x5a988e;}import{createRequire}from'node:module';import{createHash}from'node:crypto';import{inflateSync}from'node:zlib';function a145_0x1b73(){const _0x5d03c1=['110mYPAzt','read','Missing\x20PNG\x20data/end.','GIF\x20cumulative\x20frame\x20pixels\x20exceed\x2040\x20million.','Invalid\x20GIF\x20LZW\x20pixel\x20data.','message','Missing\x20GIF\x20trailer.','222mBMxYJ','Unsupported\x20image\x20format;\x20only\x20PNG,\x20JPEG\x20and\x20GIF\x20are\x20supported.\x20WebP\x20is\x20not\x20supported.','328163xfJgzK','pngjs','IEND','sha256','hex','Invalid\x20GIF\x20LZW\x20code\x20size.','Invalid\x20GIF\x20block.','395288qRGBZd','GIF\x20frame\x20exceeds\x20canvas.','Invalid\x20image:\x20','max','ascii','Invalid\x20PNG\x20decoded\x20scanline\x20size.','height','image/gif','length','includes','ceil','IDAT','update','Invalid\x20PNG\x20header.','decodeAndBlitFrameRGBA','15489BTqOVY','Truncated\x20PNG\x20data.','readUInt32BE','jpeg-js','push','readUInt16LE','toString','GIF87a','Invalid\x20PNG\x20end.','decode','20LWmoiE','IHDR','GIF\x20image\x20has\x20no\x20palette.','Truncated\x20or\x20incomplete\x20GIF\x20LZW\x20pixels.','Animated\x20PNG\x20is\x20not\x20supported.','digest','equals','from','Invalid\x20PNG\x20color/depth/interlace.','isSafeInteger','135066SFBPVT','numFrames','Image\x20must\x20be\x20non-empty\x20and\x20no\x20larger\x20than\x2010\x20MB.','12010104yZTpVU','2328459OXydjI','2vUKZna','Truncated\x20JPEG.','2504RnLhBX','53711uvKBcP','width','Invalid\x20GIF\x20LZW\x20dictionary\x20reference.','subarray'];a145_0x1b73=function(){return _0x5d03c1;};return a145_0x1b73();}const require=createRequire(import.meta.url),MAX_PIXELS=0x2625a00;function dimensions(_0x37e8e7,_0x8e2db5){const _0x37d4d0=a145_0x5a98;if(!Number[_0x37d4d0(0xd2)](_0x37e8e7)||!Number['isSafeInteger'](_0x8e2db5)||_0x37e8e7<0x1||_0x8e2db5<0x1||_0x37e8e7*_0x8e2db5>MAX_PIXELS)throw Error('Image\x20dimensions\x20exceed\x2040\x20million\x20pixels.');}function validateGif(_0x1e0da0){const _0x50879c=a145_0x5a98;let _0x4bac52=0xd,_0x2c6ce4=0x0,_0x42190c=0x0;const _0x1906f6=_0x1e0da0[_0x50879c(0xc4)](0x6),_0x45b105=_0x1e0da0[_0x50879c(0xc4)](0x8),_0x4bdf67=_0x1e0da0[0xa]&0x80?0x1<<(_0x1e0da0[0xa]&0x7)+0x1:0x0,_0x55bbbb=_0x395968=>{const _0x5d2b75=_0x50879c;if(_0x4bac52+_0x395968>_0x1e0da0[_0x5d2b75(0xb8)])throw Error('Truncated\x20GIF\x20data.');};_0x4bac52+=_0x4bdf67*0x3,_0x55bbbb(0x0);const _0x4ef889=()=>{const _0x328773=_0x50879c,_0x1c9320=[];while(!![]){_0x55bbbb(0x1);const _0x2f664f=_0x1e0da0[_0x4bac52++];if(!_0x2f664f)break;_0x55bbbb(_0x2f664f),_0x1c9320[_0x328773(0xc3)](_0x1e0da0[_0x328773(0xde)](_0x4bac52,_0x4bac52+_0x2f664f)),_0x4bac52+=_0x2f664f;}return Buffer['concat'](_0x1c9320);};while(_0x4bac52<_0x1e0da0['length']){const _0x1506f7=_0x1e0da0[_0x4bac52++];if(_0x1506f7===0x3b){if(!_0x2c6ce4||_0x4bac52!==_0x1e0da0[_0x50879c(0xb8)])throw Error('Invalid\x20GIF\x20trailer.');return;}if(_0x1506f7===0x21){_0x55bbbb(0x1),_0x4bac52++,_0x4ef889();continue;}if(_0x1506f7!==0x2c)throw Error(_0x50879c(0xaf));_0x55bbbb(0x9);const _0x49a063=_0x1e0da0['readUInt16LE'](_0x4bac52),_0x36fd49=_0x1e0da0['readUInt16LE'](_0x4bac52+0x2),_0xe2062e=_0x1e0da0['readUInt16LE'](_0x4bac52+0x4),_0x5f9390=_0x1e0da0[_0x50879c(0xc4)](_0x4bac52+0x6),_0x67f0da=_0x1e0da0[_0x4bac52+0x8];_0x4bac52+=0x9,dimensions(_0xe2062e,_0x5f9390);if(_0x49a063+_0xe2062e>_0x1906f6||_0x36fd49+_0x5f9390>_0x45b105||++_0x2c6ce4>0x2710||(_0x42190c+=_0x1906f6*_0x45b105)>MAX_PIXELS)throw Error(_0x50879c(0xe2));const _0x3bcdcf=_0x67f0da&0x80?0x1<<(_0x67f0da&0x7)+0x1:_0x4bdf67;if(!_0x3bcdcf)throw Error(_0x50879c(0xcb));_0x67f0da&0x80&&(_0x55bbbb(_0x3bcdcf*0x3),_0x4bac52+=_0x3bcdcf*0x3);_0x55bbbb(0x1);const _0x44d6aa=_0x1e0da0[_0x4bac52++];if(_0x44d6aa<0x2||_0x44d6aa>0x8)throw Error(_0x50879c(0xae));const _0x16c523=_0x4ef889(),_0x414dcf=0x1<<_0x44d6aa,_0x469c33=_0x414dcf+0x1;let _0x149b56=_0x44d6aa+0x1,_0x12f983=_0x469c33+0x1,_0x583d65=0x0,_0x3bd48e=-0x1,_0x2b3c32=0x0,_0x1d3d33=![];const _0x55f892=new Uint32Array(0x1000),_0x182f15=new Uint16Array(0x1000);for(let _0x4adb8d=0x0;_0x4adb8d<_0x414dcf;_0x4adb8d++){_0x55f892[_0x4adb8d]=0x1,_0x182f15[_0x4adb8d]=_0x4adb8d;}while(_0x583d65+_0x149b56<=_0x16c523['length']*0x8){let _0x7abba4=0x0;for(let _0x4b49a2=0x0;_0x4b49a2<_0x149b56;_0x4b49a2++,_0x583d65++)_0x7abba4|=(_0x16c523[_0x583d65>>0x3]>>(_0x583d65&0x7)&0x1)<<_0x4b49a2;if(_0x7abba4===_0x414dcf){_0x149b56=_0x44d6aa+0x1,_0x12f983=_0x469c33+0x1,_0x3bd48e=-0x1;continue;}if(_0x7abba4===_0x469c33){_0x1d3d33=!![];break;}if(_0x7abba4>_0x12f983||_0x7abba4===_0x12f983&&_0x3bd48e<0x0||_0x3bd48e<0x0&&_0x7abba4>=_0x414dcf)throw Error(_0x50879c(0xdd));const _0x28aa66=_0x7abba4===_0x12f983?_0x55f892[_0x3bd48e]+0x1:_0x55f892[_0x7abba4],_0xfa657=_0x7abba4===_0x12f983?_0x182f15[_0x3bd48e]:_0x182f15[_0x7abba4];if(!_0x28aa66||_0xfa657>=_0x3bcdcf||(_0x2b3c32+=_0x28aa66)>_0xe2062e*_0x5f9390)throw Error(_0x50879c(0xe3));if(_0x3bd48e>=0x0&&_0x12f983<0x1000){_0x55f892[_0x12f983]=_0x55f892[_0x3bd48e]+0x1,_0x182f15[_0x12f983]=Math[_0x50879c(0xb3)](_0x182f15[_0x3bd48e],_0xfa657),_0x12f983++;if(_0x12f983===0x1<<_0x149b56&&_0x149b56<0xc)_0x149b56++;}_0x3bd48e=_0x7abba4;}if(!_0x1d3d33||_0x2b3c32!==_0xe2062e*_0x5f9390)throw Error(_0x50879c(0xcc));}throw Error(_0x50879c(0xe5));}export function validateImageBytes(_0x1fcc97){const _0x2aea87=a145_0x5a98;if(!_0x1fcc97[_0x2aea87(0xb8)]||_0x1fcc97[_0x2aea87(0xb8)]>0xa*0x400*0x400)throw Error(_0x2aea87(0xd5));let _0x345fb6;try{if(_0x1fcc97[_0x2aea87(0xde)](0x0,0x8)[_0x2aea87(0xcf)](Buffer[_0x2aea87(0xd0)]([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]))){if(_0x1fcc97['length']<0x21||_0x1fcc97['toString'](_0x2aea87(0xb4),0xc,0x10)!==_0x2aea87(0xca))throw Error(_0x2aea87(0xbd));dimensions(_0x1fcc97['readUInt32BE'](0x10),_0x1fcc97[_0x2aea87(0xc1)](0x14));const _0x37592a=_0x1fcc97[_0x2aea87(0xc1)](0x10),_0xbdc278=_0x1fcc97[_0x2aea87(0xc1)](0x14),_0x2cb061=_0x1fcc97[0x18],_0x31c088=_0x1fcc97[0x19],_0x500b63=_0x1fcc97[0x1c],_0xd96a1b={0x0:0x1,0x2:0x3,0x3:0x1,0x4:0x2,0x6:0x4}[_0x31c088];if(!_0xd96a1b||![0x1,0x2,0x4,0x8,0x10][_0x2aea87(0xb9)](_0x2cb061)||_0x500b63>0x1)throw Error(_0x2aea87(0xd1));const _0x24eab4=_0x102bcf=>Math[_0x2aea87(0xba)](_0x102bcf*_0xd96a1b*_0x2cb061/0x8)+0x1;let _0x261dd0=_0x24eab4(_0x37592a)*_0xbdc278;if(_0x500b63){_0x261dd0=0x0;for(const [_0x542704,_0x4ca4c2,_0x48fdb5,_0x6faeb3]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 _0x29ddba=Math[_0x2aea87(0xb3)](0x0,Math[_0x2aea87(0xba)]((_0x37592a-_0x542704)/_0x48fdb5)),_0x44c351=Math[_0x2aea87(0xb3)](0x0,Math['ceil']((_0xbdc278-_0x4ca4c2)/_0x6faeb3));if(_0x29ddba&&_0x44c351)_0x261dd0+=_0x24eab4(_0x29ddba)*_0x44c351;}}let _0x4ea368=0x8,_0x96056a=![];const _0x472d38=[];while(_0x4ea368<_0x1fcc97[_0x2aea87(0xb8)]){if(_0x4ea368+0xc>_0x1fcc97[_0x2aea87(0xb8)])throw Error('Truncated\x20PNG\x20chunk.');const _0x23c6c3=_0x1fcc97[_0x2aea87(0xc1)](_0x4ea368),_0x2f49bf=_0x1fcc97[_0x2aea87(0xc5)]('ascii',_0x4ea368+0x4,_0x4ea368+0x8);if(_0x2f49bf==='acTL')throw Error(_0x2aea87(0xcd));if(_0x4ea368+_0x23c6c3+0xc>_0x1fcc97[_0x2aea87(0xb8)])throw Error(_0x2aea87(0xc0));if(_0x2f49bf===_0x2aea87(0xbb))_0x472d38['push'](_0x1fcc97[_0x2aea87(0xde)](_0x4ea368+0x8,_0x4ea368+0x8+_0x23c6c3));_0x4ea368+=_0x23c6c3+0xc;if(_0x2f49bf===_0x2aea87(0xab)){if(_0x23c6c3||_0x4ea368!==_0x1fcc97[_0x2aea87(0xb8)])throw Error(_0x2aea87(0xc7));_0x96056a=!![];break;}}if(!_0x96056a||!_0x472d38[_0x2aea87(0xb8)])throw Error(_0x2aea87(0xe1));if(inflateSync(Buffer['concat'](_0x472d38),{'maxOutputLength':_0x261dd0+0x1})[_0x2aea87(0xb8)]!==_0x261dd0)throw Error(_0x2aea87(0xb5));const {PNG:_0x25c602}=require(_0x2aea87(0xaa)),_0x27bbf5=_0x25c602['sync'][_0x2aea87(0xe0)](_0x1fcc97,{'checkCRC':!![]});dimensions(_0x27bbf5['width'],_0x27bbf5[_0x2aea87(0xb6)]),_0x345fb6='image/png';}else{if(_0x1fcc97[0x0]===0xff&&_0x1fcc97[0x1]===0xd8){if(_0x1fcc97['at'](-0x2)!==0xff||_0x1fcc97['at'](-0x1)!==0xd9)throw Error(_0x2aea87(0xd9));const _0x5d3d9e=require(_0x2aea87(0xc2)),_0x1d8b19=_0x5d3d9e[_0x2aea87(0xc8)](_0x1fcc97,{'useTArray':!![],'formatAsRGBA':![],'tolerantDecoding':![],'maxResolutionInMP':0x28,'maxMemoryUsageInMB':0x100});dimensions(_0x1d8b19[_0x2aea87(0xdc)],_0x1d8b19[_0x2aea87(0xb6)]),_0x345fb6='image/jpeg';}else{if([_0x2aea87(0xc6),'GIF89a'][_0x2aea87(0xb9)](_0x1fcc97['toString'](_0x2aea87(0xb4),0x0,0x6))){if(_0x1fcc97[_0x2aea87(0xb8)]<0xe||_0x1fcc97['at'](-0x1)!==0x3b)throw Error('Truncated\x20GIF.');dimensions(_0x1fcc97['readUInt16LE'](0x6),_0x1fcc97[_0x2aea87(0xc4)](0x8)),validateGif(_0x1fcc97);const {GifReader:_0x49b651}=require('omggif'),_0x3ae033=new _0x49b651(_0x1fcc97);dimensions(_0x3ae033['width'],_0x3ae033[_0x2aea87(0xb6)]);const _0x322303=_0x3ae033[_0x2aea87(0xd4)]();if(!_0x322303||_0x322303>0x2710||_0x322303*_0x3ae033[_0x2aea87(0xdc)]*_0x3ae033[_0x2aea87(0xb6)]>MAX_PIXELS)throw Error(_0x2aea87(0xe2));const _0x262dea=new Uint8Array(_0x3ae033[_0x2aea87(0xdc)]*_0x3ae033['height']*0x4);for(let _0x60b2e6=0x0;_0x60b2e6<_0x322303;_0x60b2e6++){const _0x43f7e=_0x3ae033['frameInfo'](_0x60b2e6);if(_0x43f7e['x']+_0x43f7e[_0x2aea87(0xdc)]>_0x3ae033[_0x2aea87(0xdc)]||_0x43f7e['y']+_0x43f7e['height']>_0x3ae033[_0x2aea87(0xb6)])throw Error(_0x2aea87(0xb1));_0x3ae033[_0x2aea87(0xbe)](_0x60b2e6,_0x262dea);}_0x345fb6=_0x2aea87(0xb7);}else throw Error(_0x2aea87(0xe7));}}}catch(_0x14fde9){throw Error(_0x2aea87(0xb2)+_0x14fde9[_0x2aea87(0xe4)]);}return{'contentHash':createHash(_0x2aea87(0xac))[_0x2aea87(0xbc)](_0x1fcc97)[_0x2aea87(0xce)](_0x2aea87(0xad)),'type':_0x345fb6,'size':_0x1fcc97[_0x2aea87(0xb8)],'bytes':_0x1fcc97};}
1
+ function a145_0xf6db(_0x2cacbc,_0x498b7e){_0x2cacbc=_0x2cacbc-0x87;const _0x54a7db=a145_0x54a7();let _0xf6db04=_0x54a7db[_0x2cacbc];return _0xf6db04;}(function(_0x5466db,_0x163456){const _0x50c3c7=a145_0xf6db,_0xbc9d8f=_0x5466db();while(!![]){try{const _0x34c15b=parseInt(_0x50c3c7(0xb8))/0x1*(parseInt(_0x50c3c7(0xaf))/0x2)+parseInt(_0x50c3c7(0xb7))/0x3+parseInt(_0x50c3c7(0x8c))/0x4+-parseInt(_0x50c3c7(0xb9))/0x5*(parseInt(_0x50c3c7(0x8b))/0x6)+parseInt(_0x50c3c7(0xa8))/0x7*(-parseInt(_0x50c3c7(0xc2))/0x8)+parseInt(_0x50c3c7(0x98))/0x9+-parseInt(_0x50c3c7(0x8f))/0xa;if(_0x34c15b===_0x163456)break;else _0xbc9d8f['push'](_0xbc9d8f['shift']());}catch(_0x407db9){_0xbc9d8f['push'](_0xbc9d8f['shift']());}}}(a145_0x54a7,0x753a6));import{createRequire}from'node:module';import{createHash}from'node:crypto';import{inflateSync}from'node:zlib';const require=createRequire(import.meta.url),MAX_PIXELS=0x2625a00;function a145_0x54a7(){const _0x419a6d=['Image\x20must\x20be\x20non-empty\x20and\x20no\x20larger\x20than\x2010\x20MB.','message','7779789yrslYa','Invalid\x20GIF\x20trailer.','decode','Invalid\x20PNG\x20color/depth/interlace.','isSafeInteger','image/gif','Invalid\x20image:\x20','hex','Invalid\x20PNG\x20end.','Invalid\x20GIF\x20block.','includes','toString','Invalid\x20GIF\x20LZW\x20code\x20size.','readUInt16LE','ascii','IEND','395143GSmHuK','update','IDAT','Invalid\x20PNG\x20header.','omggif','Animated\x20PNG\x20is\x20not\x20supported.','GIF\x20frame\x20exceeds\x20canvas.','81820zmnDkt','pngjs','Truncated\x20PNG\x20data.','frameInfo','Invalid\x20PNG\x20decoded\x20scanline\x20size.','equals','height','acTL','1949151VcfxFz','11kDwXLK','65ThhZZV','width','GIF89a','Truncated\x20JPEG.','subarray','sync','Missing\x20PNG\x20data/end.','length','Missing\x20GIF\x20trailer.','88KSACrl','readUInt32BE','Truncated\x20PNG\x20chunk.','concat','jpeg-js','309300lHDjVm','3146456McLzDt','image/jpeg','from','9795070TyKKbD','Unsupported\x20image\x20format;\x20only\x20PNG,\x20JPEG\x20and\x20GIF\x20are\x20supported.\x20WebP\x20is\x20not\x20supported.','GIF87a','Truncated\x20or\x20incomplete\x20GIF\x20LZW\x20pixels.','max','Invalid\x20GIF\x20LZW\x20pixel\x20data.','ceil'];a145_0x54a7=function(){return _0x419a6d;};return a145_0x54a7();}function dimensions(_0x492466,_0xdf23f7){const _0x586cc6=a145_0xf6db;if(!Number[_0x586cc6(0x9c)](_0x492466)||!Number[_0x586cc6(0x9c)](_0xdf23f7)||_0x492466<0x1||_0xdf23f7<0x1||_0x492466*_0xdf23f7>MAX_PIXELS)throw Error('Image\x20dimensions\x20exceed\x2040\x20million\x20pixels.');}function validateGif(_0x4fc75d){const _0x19d38a=a145_0xf6db;let _0x3c2e7e=0xd,_0x1f4a4d=0x0,_0x4ac6f8=0x0;const _0x1b3447=_0x4fc75d['readUInt16LE'](0x6),_0x1fafb4=_0x4fc75d[_0x19d38a(0xa5)](0x8),_0x397f4d=_0x4fc75d[0xa]&0x80?0x1<<(_0x4fc75d[0xa]&0x7)+0x1:0x0,_0x226b06=_0x5ae2d9=>{if(_0x3c2e7e+_0x5ae2d9>_0x4fc75d['length'])throw Error('Truncated\x20GIF\x20data.');};_0x3c2e7e+=_0x397f4d*0x3,_0x226b06(0x0);const _0x2d5026=()=>{const _0x11df6b=_0x19d38a,_0x59db24=[];while(!![]){_0x226b06(0x1);const _0x9eabb4=_0x4fc75d[_0x3c2e7e++];if(!_0x9eabb4)break;_0x226b06(_0x9eabb4),_0x59db24['push'](_0x4fc75d[_0x11df6b(0xbd)](_0x3c2e7e,_0x3c2e7e+_0x9eabb4)),_0x3c2e7e+=_0x9eabb4;}return Buffer[_0x11df6b(0x89)](_0x59db24);};while(_0x3c2e7e<_0x4fc75d[_0x19d38a(0xc0)]){const _0x515dfa=_0x4fc75d[_0x3c2e7e++];if(_0x515dfa===0x3b){if(!_0x1f4a4d||_0x3c2e7e!==_0x4fc75d[_0x19d38a(0xc0)])throw Error(_0x19d38a(0x99));return;}if(_0x515dfa===0x21){_0x226b06(0x1),_0x3c2e7e++,_0x2d5026();continue;}if(_0x515dfa!==0x2c)throw Error(_0x19d38a(0xa1));_0x226b06(0x9);const _0x4b9ca1=_0x4fc75d[_0x19d38a(0xa5)](_0x3c2e7e),_0x4f8471=_0x4fc75d[_0x19d38a(0xa5)](_0x3c2e7e+0x2),_0x4c887b=_0x4fc75d[_0x19d38a(0xa5)](_0x3c2e7e+0x4),_0x936800=_0x4fc75d[_0x19d38a(0xa5)](_0x3c2e7e+0x6),_0x363303=_0x4fc75d[_0x3c2e7e+0x8];_0x3c2e7e+=0x9,dimensions(_0x4c887b,_0x936800);if(_0x4b9ca1+_0x4c887b>_0x1b3447||_0x4f8471+_0x936800>_0x1fafb4||++_0x1f4a4d>0x2710||(_0x4ac6f8+=_0x1b3447*_0x1fafb4)>MAX_PIXELS)throw Error('GIF\x20cumulative\x20frame\x20pixels\x20exceed\x2040\x20million.');const _0x48993b=_0x363303&0x80?0x1<<(_0x363303&0x7)+0x1:_0x397f4d;if(!_0x48993b)throw Error('GIF\x20image\x20has\x20no\x20palette.');_0x363303&0x80&&(_0x226b06(_0x48993b*0x3),_0x3c2e7e+=_0x48993b*0x3);_0x226b06(0x1);const _0x2bf8e1=_0x4fc75d[_0x3c2e7e++];if(_0x2bf8e1<0x2||_0x2bf8e1>0x8)throw Error(_0x19d38a(0xa4));const _0x194ec5=_0x2d5026(),_0xea3e5c=0x1<<_0x2bf8e1,_0x556a29=_0xea3e5c+0x1;let _0x427c3e=_0x2bf8e1+0x1,_0x38a3a7=_0x556a29+0x1,_0x255810=0x0,_0x495068=-0x1,_0x30c946=0x0,_0x5c36aa=![];const _0x30339c=new Uint32Array(0x1000),_0x4393f5=new Uint16Array(0x1000);for(let _0x1888d1=0x0;_0x1888d1<_0xea3e5c;_0x1888d1++){_0x30339c[_0x1888d1]=0x1,_0x4393f5[_0x1888d1]=_0x1888d1;}while(_0x255810+_0x427c3e<=_0x194ec5[_0x19d38a(0xc0)]*0x8){let _0x12c849=0x0;for(let _0x1d20a6=0x0;_0x1d20a6<_0x427c3e;_0x1d20a6++,_0x255810++)_0x12c849|=(_0x194ec5[_0x255810>>0x3]>>(_0x255810&0x7)&0x1)<<_0x1d20a6;if(_0x12c849===_0xea3e5c){_0x427c3e=_0x2bf8e1+0x1,_0x38a3a7=_0x556a29+0x1,_0x495068=-0x1;continue;}if(_0x12c849===_0x556a29){_0x5c36aa=!![];break;}if(_0x12c849>_0x38a3a7||_0x12c849===_0x38a3a7&&_0x495068<0x0||_0x495068<0x0&&_0x12c849>=_0xea3e5c)throw Error('Invalid\x20GIF\x20LZW\x20dictionary\x20reference.');const _0x1ec8ff=_0x12c849===_0x38a3a7?_0x30339c[_0x495068]+0x1:_0x30339c[_0x12c849],_0x457710=_0x12c849===_0x38a3a7?_0x4393f5[_0x495068]:_0x4393f5[_0x12c849];if(!_0x1ec8ff||_0x457710>=_0x48993b||(_0x30c946+=_0x1ec8ff)>_0x4c887b*_0x936800)throw Error(_0x19d38a(0x94));if(_0x495068>=0x0&&_0x38a3a7<0x1000){_0x30339c[_0x38a3a7]=_0x30339c[_0x495068]+0x1,_0x4393f5[_0x38a3a7]=Math[_0x19d38a(0x93)](_0x4393f5[_0x495068],_0x457710),_0x38a3a7++;if(_0x38a3a7===0x1<<_0x427c3e&&_0x427c3e<0xc)_0x427c3e++;}_0x495068=_0x12c849;}if(!_0x5c36aa||_0x30c946!==_0x4c887b*_0x936800)throw Error(_0x19d38a(0x92));}throw Error(_0x19d38a(0xc1));}export function validateImageBytes(_0x21d733){const _0x139d51=a145_0xf6db;if(!_0x21d733[_0x139d51(0xc0)]||_0x21d733[_0x139d51(0xc0)]>0xa*0x400*0x400)throw Error(_0x139d51(0x96));let _0x3b97c7;try{if(_0x21d733['subarray'](0x0,0x8)[_0x139d51(0xb4)](Buffer[_0x139d51(0x8e)]([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]))){if(_0x21d733[_0x139d51(0xc0)]<0x21||_0x21d733[_0x139d51(0xa3)]('ascii',0xc,0x10)!=='IHDR')throw Error(_0x139d51(0xab));dimensions(_0x21d733['readUInt32BE'](0x10),_0x21d733[_0x139d51(0x87)](0x14));const _0x5f1807=_0x21d733[_0x139d51(0x87)](0x10),_0x1e7950=_0x21d733[_0x139d51(0x87)](0x14),_0x3b9a6e=_0x21d733[0x18],_0x5894e5=_0x21d733[0x19],_0x50fd8c=_0x21d733[0x1c],_0x596cb6={0x0:0x1,0x2:0x3,0x3:0x1,0x4:0x2,0x6:0x4}[_0x5894e5];if(!_0x596cb6||![0x1,0x2,0x4,0x8,0x10][_0x139d51(0xa2)](_0x3b9a6e)||_0x50fd8c>0x1)throw Error(_0x139d51(0x9b));const _0x22213d=_0x3ddd9a=>Math[_0x139d51(0x95)](_0x3ddd9a*_0x596cb6*_0x3b9a6e/0x8)+0x1;let _0x377471=_0x22213d(_0x5f1807)*_0x1e7950;if(_0x50fd8c){_0x377471=0x0;for(const [_0x264478,_0x241687,_0x3a447a,_0x1758ce]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 _0x1fd6d0=Math[_0x139d51(0x93)](0x0,Math[_0x139d51(0x95)]((_0x5f1807-_0x264478)/_0x3a447a)),_0x3febe1=Math['max'](0x0,Math[_0x139d51(0x95)]((_0x1e7950-_0x241687)/_0x1758ce));if(_0x1fd6d0&&_0x3febe1)_0x377471+=_0x22213d(_0x1fd6d0)*_0x3febe1;}}let _0x3bf85e=0x8,_0x36d7b6=![];const _0x5a2d34=[];while(_0x3bf85e<_0x21d733[_0x139d51(0xc0)]){if(_0x3bf85e+0xc>_0x21d733[_0x139d51(0xc0)])throw Error(_0x139d51(0x88));const _0x5383c0=_0x21d733[_0x139d51(0x87)](_0x3bf85e),_0x201d37=_0x21d733[_0x139d51(0xa3)](_0x139d51(0xa6),_0x3bf85e+0x4,_0x3bf85e+0x8);if(_0x201d37===_0x139d51(0xb6))throw Error(_0x139d51(0xad));if(_0x3bf85e+_0x5383c0+0xc>_0x21d733['length'])throw Error(_0x139d51(0xb1));if(_0x201d37===_0x139d51(0xaa))_0x5a2d34['push'](_0x21d733[_0x139d51(0xbd)](_0x3bf85e+0x8,_0x3bf85e+0x8+_0x5383c0));_0x3bf85e+=_0x5383c0+0xc;if(_0x201d37===_0x139d51(0xa7)){if(_0x5383c0||_0x3bf85e!==_0x21d733[_0x139d51(0xc0)])throw Error(_0x139d51(0xa0));_0x36d7b6=!![];break;}}if(!_0x36d7b6||!_0x5a2d34[_0x139d51(0xc0)])throw Error(_0x139d51(0xbf));if(inflateSync(Buffer[_0x139d51(0x89)](_0x5a2d34),{'maxOutputLength':_0x377471+0x1})['length']!==_0x377471)throw Error(_0x139d51(0xb3));const {PNG:_0x38da8e}=require(_0x139d51(0xb0)),_0xa96440=_0x38da8e[_0x139d51(0xbe)]['read'](_0x21d733,{'checkCRC':!![]});dimensions(_0xa96440['width'],_0xa96440[_0x139d51(0xb5)]),_0x3b97c7='image/png';}else{if(_0x21d733[0x0]===0xff&&_0x21d733[0x1]===0xd8){if(_0x21d733['at'](-0x2)!==0xff||_0x21d733['at'](-0x1)!==0xd9)throw Error(_0x139d51(0xbc));const _0x45f26b=require(_0x139d51(0x8a)),_0x340376=_0x45f26b[_0x139d51(0x9a)](_0x21d733,{'useTArray':!![],'formatAsRGBA':![],'tolerantDecoding':![],'maxResolutionInMP':0x28,'maxMemoryUsageInMB':0x100});dimensions(_0x340376[_0x139d51(0xba)],_0x340376['height']),_0x3b97c7=_0x139d51(0x8d);}else{if([_0x139d51(0x91),_0x139d51(0xbb)][_0x139d51(0xa2)](_0x21d733[_0x139d51(0xa3)](_0x139d51(0xa6),0x0,0x6))){if(_0x21d733[_0x139d51(0xc0)]<0xe||_0x21d733['at'](-0x1)!==0x3b)throw Error('Truncated\x20GIF.');dimensions(_0x21d733[_0x139d51(0xa5)](0x6),_0x21d733['readUInt16LE'](0x8)),validateGif(_0x21d733);const {GifReader:_0x11008c}=require(_0x139d51(0xac)),_0x1f9174=new _0x11008c(_0x21d733);dimensions(_0x1f9174[_0x139d51(0xba)],_0x1f9174['height']);const _0x34477f=_0x1f9174['numFrames']();if(!_0x34477f||_0x34477f>0x2710||_0x34477f*_0x1f9174['width']*_0x1f9174[_0x139d51(0xb5)]>MAX_PIXELS)throw Error('GIF\x20cumulative\x20frame\x20pixels\x20exceed\x2040\x20million.');const _0xdd3500=new Uint8Array(_0x1f9174[_0x139d51(0xba)]*_0x1f9174[_0x139d51(0xb5)]*0x4);for(let _0x941957=0x0;_0x941957<_0x34477f;_0x941957++){const _0x52f1f5=_0x1f9174[_0x139d51(0xb2)](_0x941957);if(_0x52f1f5['x']+_0x52f1f5[_0x139d51(0xba)]>_0x1f9174[_0x139d51(0xba)]||_0x52f1f5['y']+_0x52f1f5[_0x139d51(0xb5)]>_0x1f9174['height'])throw Error(_0x139d51(0xae));_0x1f9174['decodeAndBlitFrameRGBA'](_0x941957,_0xdd3500);}_0x3b97c7=_0x139d51(0x9d);}else throw Error(_0x139d51(0x90));}}}catch(_0x89c8d5){throw Error(_0x139d51(0x9e)+_0x89c8d5[_0x139d51(0x97)]);}return{'contentHash':createHash('sha256')[_0x139d51(0xa9)](_0x21d733)['digest'](_0x139d51(0x9f)),'type':_0x3b97c7,'size':_0x21d733[_0x139d51(0xc0)],'bytes':_0x21d733};}
@@ -1 +1 @@
1
- const a146_0x53d546=a146_0x3e02;function a146_0x3e02(_0x1a7b4e,_0x1be8bc){_0x1a7b4e=_0x1a7b4e-0x155;const _0x15beb0=a146_0x15be();let _0x3e02e1=_0x15beb0[_0x1a7b4e];return _0x3e02e1;}(function(_0x21530b,_0x342cd8){const _0x49394a=a146_0x3e02,_0x4c362f=_0x21530b();while(!![]){try{const _0x598124=parseInt(_0x49394a(0x1fc))/0x1*(parseInt(_0x49394a(0x1d9))/0x2)+parseInt(_0x49394a(0x203))/0x3+-parseInt(_0x49394a(0x177))/0x4*(parseInt(_0x49394a(0x185))/0x5)+parseInt(_0x49394a(0x1e5))/0x6+parseInt(_0x49394a(0x17c))/0x7*(-parseInt(_0x49394a(0x1c8))/0x8)+parseInt(_0x49394a(0x1cf))/0x9*(parseInt(_0x49394a(0x1f0))/0xa)+-parseInt(_0x49394a(0x19f))/0xb;if(_0x598124===_0x342cd8)break;else _0x4c362f['push'](_0x4c362f['shift']());}catch(_0x2f200d){_0x4c362f['push'](_0x4c362f['shift']());}}}(a146_0x15be,0xebbe4));function a146_0x15be(){const _0x53eced=['anchor\x20start','round','Ambiguous\x20XML\x20attribute.','rich\x20metadata\x20record','Relationship\x20target\x20escapes\x20workbook:\x20','image','.rels','futureMetadata','name','32eVjiys','image\x20row\x20height\x20coordinate','sheet','error','colOff','startsWith','toLowerCase','35793IYVBXN','text','closetag','Image\x20XML\x20text\x20exceeds\x2064\x20KB.','wsDr','map','metadataTypes','http://www.wps.cn/officeDocument/2017/relationships/','rich\x20structure\x20index','isSafeInteger','2PzVYhs','XML\x20DTD/entities\x20are\x20not\x20supported.','rdRichValueStructure','Missing\x20or\x20ambiguous\x20','uri','oneCellAnchor','richValueRels','Relationship','length','get','exec','Missing\x20XLSX\x20part:\x20','1383702prBJnC','Missing\x20value\x20metadata\x20block.','metadataType','http://schemas.openxmlformats.org/drawingml/2006/main','push','_rvRel:LocalImageIdentifier','type','r:id','attributes','toString','flatMap','1370QgnVud','Unsupported\x20image\x20formula;\x20expected\x20a\x20standalone\x20DISPIMG\x20literal.','Image\x20anchor\x20spans\x20multiple\x20business\x20rows.','metadata\x20type\x20index','Image\x20XML\x20node\x20budget\x20exceeded.','blip','xl/cellimages.xml','Mixed\x20formula\x20and\x20rich\x20image\x20metadata\x20is\x20unsupported.','Unsupported\x20worksheet\x20namespace.','test','Invalid\x20or\x20duplicate\x20relationship\x20in\x20','Missing\x20rich\x20value.','1647023DWhQTF','rvb','External\x20image\x20relationship\x20is\x20not\x20supported:\x20','sheetMetadata','workbook','anchor\x20end','Unsupported\x20mapped\x20rich\x20value\x20structure.','2406342NvKGcS','XLRICHVALUE','posix','Invalid\x20or\x20duplicate\x20WPS\x20image\x20ID.','rvStructures','Invalid\x20relationship\x20target:\x20','local','message','rdRichValue','twoCellAnchor','basename','rowOff','replace','Missing\x20future\x20metadata\x20block.','set','Shared\x20image\x20formulas\x20are\x20not\x20supported.','http://schemas.openxmlformats.org/spreadsheetml/2006/main','rel','image\x20height','join','r:embed','col','drawing','normalize','valueMetadata','doctype','nvPicPr','sheets','ext','rich\x20image\x20relationship\x20index','cNvPr','MAX_SAFE_INTEGER','WPS\x20image\x20blip','rvData','Invalid\x20image\x20start\x20offset\x20at\x20row\x20','http://schemas.microsoft.com/office/2017/06/relationships/','28weMDse','Image\x20XML\x20event\x20budget\x20exceeded.','r:link','http://purl.oclc.org/ooxml/drawingml/spreadsheetDrawing','defaultRowHeight','1710422plCUSS','rich\x20value\x20binding','cellImages','Unsupported\x20metadata\x20namespace.','image\x20extent','pic','Absolute\x20image\x20anchor\x20cannot\x20be\x20mapped\x20in\x20worksheet\x20','add','metadata','279520TlgJtT','Missing\x20WPS\x20image\x20ID:\x20','includes','External\x20image\x20links\x20are\x20not\x20supported.','Unsupported\x20WPS\x20cell\x20image\x20namespace.','worksheet','filter','future\x20metadata\x20index','some','Invalid\x20','sheetData','Missing\x20or\x20ambiguous\x20local\x20image\x20identifier.','\x20relationship\x20in\x20','rich\x20value\x20index','anchor\x20end\x20offset','pop','anchor\x20start\x20offset','Image\x20anchor\x20has\x20invalid\x20or\x20reversed\x20row\x20offsets.','Workbook\x20exceeds\x2010000\x20image\x20occurrences.','Unsupported\x20rich\x20value\x20namespace.','from','rich\x20future\x20metadata','hidden','value\x20metadata\x20index','http://schemas.openxmlformats.org/package/2006/relationships','absoluteAnchor','9793157DyEWtc','Unsupported\x20rich\x20structure\x20namespace.','image\x20cell\x20row','Value\x20metadata\x20index\x20must\x20be\x20one-based.','blipFill','cellImage','Unsupported\x20workbook\x20namespace.','value','Unsupported\x20drawing\x20image.','Internal','Unsupported\x20relationship\x20namespace\x20in\x20','has','sheetFormatPr','extLst','write','slice','close','dirname','Invalid\x20worksheet\x20row\x20height\x20for\x20image\x20anchor.','Image\x20coordinate\x20exceeds\x20worksheet\x20bounds.','fromEntries','WPS\x20image\x20name','Missing\x20local\x20image\x20identifier\x20value.','Duplicate\x20mapped\x20image\x20cell.','children','anchor\x20column','isFinite','attrs','/xl/cellimages.xml','Unsupported\x20rich\x20image\x20relation\x20namespace.','row','values'];a146_0x15be=function(){return _0x53eced;};return a146_0x15be();}import a146_0x48906f from'node:path';import{SaxesParser}from'saxes';const SHEET=[a146_0x53d546(0x163),'http://purl.oclc.org/ooxml/spreadsheetml/main'],DRAWING=['http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing',a146_0x53d546(0x17a)],DRAWING_MAIN=[a146_0x53d546(0x1e8),'http://purl.oclc.org/ooxml/drawingml/main'],OFFICE_RELS=['http://schemas.openxmlformats.org/officeDocument/2006/relationships','http://purl.oclc.org/ooxml/officeDocument/relationships'],PACKAGE=[a146_0x53d546(0x19d)],RICH=['http://schemas.microsoft.com/office/spreadsheetml/2017/richdata'],RICH_RELS=['http://schemas.microsoft.com/office/spreadsheetml/2022/richvaluerel'],WPS=['http://www.wps.cn/officeDocument/2017/etCustomData'],DEFAULT_NS=Object[a146_0x53d546(0x1b3)]([...[a146_0x53d546(0x200),a146_0x53d546(0x16e),a146_0x53d546(0x1ca),a146_0x53d546(0x18a),a146_0x53d546(0x18f),a146_0x53d546(0x1bd),'c','f','v',a146_0x53d546(0x1ab),a146_0x53d546(0x169),a146_0x53d546(0x184),a146_0x53d546(0x1d5),a146_0x53d546(0x1e7),a146_0x53d546(0x1c6),a146_0x53d546(0x16b),'bk','rc',a146_0x53d546(0x1ac)][a146_0x53d546(0x1d4)](_0xee74e9=>[_0xee74e9,SHEET]),...['wsDr',a146_0x53d546(0x1de),a146_0x53d546(0x15c),a146_0x53d546(0x19e),a146_0x53d546(0x199),'to',a146_0x53d546(0x168),a146_0x53d546(0x1cc),a146_0x53d546(0x15e),a146_0x53d546(0x16f),a146_0x53d546(0x181),'nvPicPr','cNvPr','blipFill'][a146_0x53d546(0x1d4)](_0x2af9b9=>[_0x2af9b9,DRAWING]),...[a146_0x53d546(0x1fd),a146_0x53d546(0x174),'rv',a146_0x53d546(0x157),'s','k']['map'](_0x356341=>[_0x356341,RICH]),[a146_0x53d546(0x1f5),DRAWING_MAIN],[a146_0x53d546(0x1df),RICH_RELS],[a146_0x53d546(0x164),RICH_RELS],['Relationships',PACKAGE],[a146_0x53d546(0x1e0),PACKAGE],[a146_0x53d546(0x17e),WPS],[a146_0x53d546(0x1a4),WPS]]),matches=(_0x261819,_0x174178,_0x5cc880=DEFAULT_NS[_0x174178]??[])=>_0x261819[a146_0x53d546(0x1c7)]===_0x174178&&_0x5cc880[a146_0x53d546(0x187)](_0x261819[a146_0x53d546(0x1dd)]),children=(_0x3adc30,_0x50d81f,_0x4f0e5b=DEFAULT_NS[_0x50d81f])=>_0x3adc30[a146_0x53d546(0x1b7)][a146_0x53d546(0x18b)](_0x5b7ee1=>matches(_0x5b7ee1,_0x50d81f,_0x4f0e5b)),chain=(_0x1eede7,..._0x36975d)=>_0x36975d['reduce']((_0x2fb9c3,_0x20b5fa)=>_0x2fb9c3[a146_0x53d546(0x1ef)](_0xf25fca=>children(_0xf25fca,_0x20b5fa)),[_0x1eede7]),relationshipTypes=_0x2a7b94=>{const _0x87d09b=a146_0x53d546;if([_0x87d09b(0x15b),_0x87d09b(0x1db)][_0x87d09b(0x187)](_0x2a7b94))return[_0x87d09b(0x176)+_0x2a7b94];if(_0x2a7b94==='richValueRel')return['http://schemas.microsoft.com/office/2022/10/relationships/richValueRel'];if(_0x2a7b94===_0x87d09b(0x1a4)||_0x2a7b94===_0x87d09b(0x17e))return[_0x87d09b(0x1d6)+_0x2a7b94];return OFFICE_RELS['map'](_0x311475=>_0x311475+'/'+_0x2a7b94);};function one(_0x5337a1,_0x351cf6){const _0x5a9643=a146_0x53d546;if(_0x5337a1[_0x5a9643(0x1e1)]!==0x1)throw Error('Missing\x20or\x20ambiguous\x20'+_0x351cf6+'.');return _0x5337a1[0x0];}function integer(_0x198571,_0x17fddf,_0x33c764=0x186a0){const _0x3d73a3=a146_0x53d546;if(!_0x198571||!/^\d+$/[_0x3d73a3(0x1f9)](_0x198571)||!Number[_0x3d73a3(0x1d8)](Number(_0x198571))||Number(_0x198571)>_0x33c764)throw Error(_0x3d73a3(0x18e)+_0x17fddf+'.');return Number(_0x198571);}export function resolveWorksheetImages(_0x33cf1b,_0x420244,_0x271f3c){const _0x2ed138=a146_0x53d546;let _0x1076a4=0x0,_0x537ee3=0x0,_0x21a12d=0x0;const _0x508849=new Map(),_0x3bb62b=_0x3426b6=>{const _0x50685c=a146_0x3e02;if(_0x508849[_0x50685c(0x1aa)](_0x3426b6))return _0x508849[_0x50685c(0x1e2)](_0x3426b6);const _0x414fca=_0x33cf1b[_0x50685c(0x1e2)](_0x3426b6);if(!_0x414fca)throw Error(_0x50685c(0x1e4)+_0x3426b6+'.');const _0x31c60d={'name':'','uri':'','attrs':{},'children':[],'text':''},_0x5aee2e=[_0x31c60d],_0x590f76=new SaxesParser({'xmlns':!![]}),_0x239530=()=>{const _0x340aca=_0x50685c;if(++_0x537ee3>0x1e8480)throw Error(_0x340aca(0x178));};_0x590f76['on'](_0x50685c(0x16c),()=>{const _0x2f8261=_0x50685c;throw Error(_0x2f8261(0x1da));}),_0x590f76['on']('opentag',_0x3c09f2=>{const _0x551849=_0x50685c;_0x239530();if(++_0x1076a4>0x7a120||_0x5aee2e['length']>0x40)throw Error(_0x551849(0x1f4));const _0x4040f4={};for(const _0x4ffb47 of Object[_0x551849(0x1be)](_0x3c09f2[_0x551849(0x1ed)])){const _0x46eba5=OFFICE_RELS[_0x551849(0x187)](_0x4ffb47['uri'])?'r:'+_0x4ffb47['local']:_0x4ffb47[_0x551849(0x1dd)]?'{'+_0x4ffb47['uri']+'}'+_0x4ffb47['local']:_0x4ffb47['local'];if(_0x46eba5 in _0x4040f4)throw Error(_0x551849(0x1c1));_0x4040f4[_0x46eba5]=_0x4ffb47[_0x551849(0x1a6)];}const _0x1a54db={'name':_0x3c09f2[_0x551849(0x159)],'uri':_0x3c09f2[_0x551849(0x1dd)],'attrs':_0x4040f4,'children':[],'text':''};_0x5aee2e['at'](-0x1)[_0x551849(0x1b7)][_0x551849(0x1e9)](_0x1a54db),_0x5aee2e[_0x551849(0x1e9)](_0x1a54db);}),_0x590f76['on'](_0x50685c(0x1d0),_0x7f2ca9=>{const _0x254442=_0x50685c;_0x239530();const _0x29639e=_0x5aee2e['at'](-0x1);_0x29639e[_0x254442(0x1d0)]+=_0x7f2ca9;if(_0x29639e['text'][_0x254442(0x1e1)]>0x10000)throw Error(_0x254442(0x1d2));}),_0x590f76['on'](_0x50685c(0x1d1),()=>{const _0x4e9633=_0x50685c;_0x239530(),_0x5aee2e[_0x4e9633(0x194)]();}),_0x590f76['on'](_0x50685c(0x1cb),_0x31e4d5=>{throw _0x31e4d5;}),_0x590f76[_0x50685c(0x1ad)](_0x414fca[_0x50685c(0x1ee)]('utf8'))[_0x50685c(0x1af)]();const _0x42bb48=one(_0x31c60d[_0x50685c(0x1b7)],_0x3426b6);return _0x508849['set'](_0x3426b6,_0x42bb48),_0x42bb48;},_0x4f4d0b=new Map(),_0x53f003=_0x5735d7=>{const _0x56461c=a146_0x3e02;if(_0x4f4d0b[_0x56461c(0x1aa)](_0x5735d7))return _0x4f4d0b['get'](_0x5735d7);const _0x2afb5f=a146_0x48906f[_0x56461c(0x155)][_0x56461c(0x166)](a146_0x48906f[_0x56461c(0x155)][_0x56461c(0x1b0)](_0x5735d7),'_rels',a146_0x48906f[_0x56461c(0x155)][_0x56461c(0x15d)](_0x5735d7)+_0x56461c(0x1c5));if(!_0x33cf1b['has'](_0x2afb5f))return[];const _0x22a498=new Set(),_0x2ccbbf=_0x3bb62b(_0x2afb5f);if(!matches(_0x2ccbbf,'Relationships'))throw Error(_0x56461c(0x1a9)+_0x2afb5f+'.');const _0x4a6437=children(_0x2ccbbf,_0x56461c(0x1e0))[_0x56461c(0x1d4)](_0x4a68cb=>{const _0x22f2c6=_0x56461c,{Id:_0x5d3d35,Type:_0x3bc453,Target:_0x37c2b6,TargetMode:_0x22ff72}=_0x4a68cb[_0x22f2c6(0x1ba)];if(!_0x5d3d35||_0x22a498[_0x22f2c6(0x1aa)](_0x5d3d35)||!_0x3bc453)throw Error(_0x22f2c6(0x1fa)+_0x2afb5f+'.');return _0x22a498[_0x22f2c6(0x183)](_0x5d3d35),{'id':_0x5d3d35,'type':_0x3bc453,'target':_0x37c2b6??'','mode':_0x22ff72};});return _0x4f4d0b[_0x56461c(0x161)](_0x5735d7,_0x4a6437),_0x4a6437;},_0x14bba4=(_0x5d6d62,_0x5a5e24)=>{const _0xad9136=a146_0x3e02,{target:_0x346035,mode:_0x5ed192}=_0x5a5e24;if(_0x5ed192&&_0x5ed192!==_0xad9136(0x1a8))throw Error(_0xad9136(0x1fe)+_0x5d6d62+'.');if(!_0x346035||_0x346035[_0xad9136(0x187)]('\x5c')||/[?#%\x00-\x20]/[_0xad9136(0x1f9)](_0x346035)||/^[a-z][a-z0-9+.-]*:/i[_0xad9136(0x1f9)](_0x346035)||_0x346035[_0xad9136(0x1cd)]('//'))throw Error(_0xad9136(0x158)+_0x5d6d62+'.');const _0x3eaafe=_0x346035[_0xad9136(0x1cd)]('/')?_0x346035[_0xad9136(0x1ae)](0x1):a146_0x48906f['posix'][_0xad9136(0x16a)](a146_0x48906f[_0xad9136(0x155)][_0xad9136(0x166)](a146_0x48906f[_0xad9136(0x155)]['dirname'](_0x5d6d62),_0x346035));if(_0x3eaafe[_0xad9136(0x1cd)]('../')||_0x3eaafe==='..'||!_0x3eaafe[_0xad9136(0x1cd)]('xl/'))throw Error(_0xad9136(0x1c3)+_0x5d6d62+'.');return _0x3eaafe;},_0x244a4d=(_0x35712d,_0x3a7656,_0x3ad583)=>{const _0x577510=a146_0x3e02,_0x114ee6=_0x53f003(_0x35712d)[_0x577510(0x18b)](_0x2ab6a8=>_0x2ab6a8['id']===_0x3a7656&&relationshipTypes(_0x3ad583)['includes'](_0x2ab6a8[_0x577510(0x1eb)]));if(_0x114ee6[_0x577510(0x1e1)]!==0x1)throw Error(_0x577510(0x1dc)+_0x3ad583+_0x577510(0x191)+_0x35712d+'.');return _0x14bba4(_0x35712d,_0x114ee6[0x0]);},_0x48b88d=(_0x47512e,_0x14f220)=>{const _0x182dc1=a146_0x3e02,_0x3e7fd2=_0x53f003(_0x47512e)[_0x182dc1(0x18b)](_0x5ae16a=>relationshipTypes(_0x14f220)[_0x182dc1(0x187)](_0x5ae16a['type']));if(_0x3e7fd2['length']!==0x1)throw Error(_0x182dc1(0x1dc)+_0x14f220+_0x182dc1(0x191)+_0x47512e+'.');return _0x14bba4(_0x47512e,_0x3e7fd2[0x0]);},_0x3f98bc='xl/workbook.xml',_0x1f5946=_0x3bb62b(_0x3f98bc);if(!matches(_0x1f5946,'workbook'))throw Error(_0x2ed138(0x1a5));const _0x394adf=one(chain(_0x1f5946,_0x2ed138(0x16e),_0x2ed138(0x1ca))[_0x2ed138(0x18b)](_0x4e622e=>_0x4e622e['attrs'][_0x2ed138(0x1c7)]===_0x420244),_0x2ed138(0x18a)),_0x195265=_0x244a4d(_0x3f98bc,_0x394adf[_0x2ed138(0x1ba)][_0x2ed138(0x1ec)],'worksheet'),_0x31a781=_0x3bb62b(_0x195265);if(!matches(_0x31a781,_0x2ed138(0x18a)))throw Error(_0x2ed138(0x1f8));const _0x143d2b=chain(_0x31a781,_0x2ed138(0x18f),'row'),_0x23822b=new Map(),_0x28ca03=new Set(_0x143d2b[_0x2ed138(0x18b)](_0x2a42e5=>_0x2a42e5[_0x2ed138(0x1ba)][_0x2ed138(0x19b)]==='1'||_0x2a42e5[_0x2ed138(0x1ba)]['hidden']==='true')['map'](_0x1570ac=>integer(_0x1570ac[_0x2ed138(0x1ba)]['r'],'hidden\x20image\x20row'))),_0x164f10=_0x5bfcb2=>{const _0x1832fb=_0x2ed138,_0x422c9d=_0x5bfcb2===undefined?0xf:Number(_0x5bfcb2);if(!Number[_0x1832fb(0x1b9)](_0x422c9d)||_0x422c9d<=0x0||_0x422c9d>409.5)throw Error(_0x1832fb(0x1b1));return Math[_0x1832fb(0x1c0)](_0x422c9d*0x319c);},_0x159173=_0x164f10(children(_0x31a781,_0x2ed138(0x1ab))[0x0]?.[_0x2ed138(0x1ba)][_0x2ed138(0x17b)]);for(const _0x18ce86 of _0x143d2b)if(_0x18ce86['attrs']['ht']!==undefined)_0x23822b[_0x2ed138(0x161)](integer(_0x18ce86[_0x2ed138(0x1ba)]['r'],_0x2ed138(0x1c9)),_0x164f10(_0x18ce86['attrs']['ht']));const _0x481bc8=[],_0xb37e9a=_0x3b3f98=>{const _0x3cdb95=_0x2ed138;if(!_0x271f3c[_0x3cdb95(0x1aa)](_0x3b3f98[_0x3cdb95(0x168)]))return;if(++_0x21a12d>0x2710)throw Error(_0x3cdb95(0x197));_0x481bc8[_0x3cdb95(0x1e9)](_0x28ca03[_0x3cdb95(0x1aa)](_0x3b3f98[_0x3cdb95(0x1bd)])?{..._0x3b3f98,'hiddenRow':!![]}:_0x3b3f98);},_0x373ef4=_0x449314=>({'row':integer(one(children(_0x449314,_0x2ed138(0x1bd),DRAWING),'anchor\x20row')[_0x2ed138(0x1d0)],'anchor\x20row',0x1869f)+0x1,'col':integer(one(children(_0x449314,_0x2ed138(0x168)),_0x2ed138(0x1b8))[_0x2ed138(0x1d0)],_0x2ed138(0x1b8),0xff)+0x1});for(const _0x176389 of children(_0x31a781,_0x2ed138(0x169))){const _0x576e0b=_0x244a4d(_0x195265,_0x176389[_0x2ed138(0x1ba)][_0x2ed138(0x1ec)],_0x2ed138(0x169)),_0x374503=_0x3bb62b(_0x576e0b);if(!matches(_0x374503,_0x2ed138(0x1d3)))throw Error('Unsupported\x20drawing\x20namespace.');for(const _0x4121c1 of _0x374503[_0x2ed138(0x1b7)]){if(!['oneCellAnchor',_0x2ed138(0x15c),_0x2ed138(0x19e)][_0x2ed138(0x18d)](_0x2dcf4f=>matches(_0x4121c1,_0x2dcf4f)))continue;if(_0x4121c1[_0x2ed138(0x1c7)]===_0x2ed138(0x19e))throw Error(_0x2ed138(0x182)+_0x420244+'.');const _0x4c78d7=_0x373ef4(one(children(_0x4121c1,_0x2ed138(0x199)),'anchor\x20start'));if(!_0x271f3c[_0x2ed138(0x1aa)](_0x4c78d7['col']))continue;let _0x120512;const _0x5910d2=one(children(_0x4121c1,_0x2ed138(0x199)),_0x2ed138(0x1bf)),_0x200caa=integer(one(children(_0x5910d2,'rowOff'),_0x2ed138(0x195))[_0x2ed138(0x1d0)],_0x2ed138(0x195),Number[_0x2ed138(0x172)]),_0x5111c5=_0x23822b[_0x2ed138(0x1e2)](_0x4c78d7[_0x2ed138(0x1bd)])??_0x159173;if(_0x200caa>=_0x5111c5)throw Error(_0x2ed138(0x175)+_0x4c78d7[_0x2ed138(0x1bd)]+'.');if(_0x4121c1['name']===_0x2ed138(0x1de)){const _0xaaa70b=one(children(_0x4121c1,_0x2ed138(0x16f)),_0x2ed138(0x180)),_0x22ee8f=integer(_0xaaa70b[_0x2ed138(0x1ba)]['cy'],_0x2ed138(0x165),Number[_0x2ed138(0x172)]);if(!_0x22ee8f||_0x200caa+_0x22ee8f>_0x5111c5)_0x120512=_0x2ed138(0x1f2);}if(_0x4121c1[_0x2ed138(0x1c7)]===_0x2ed138(0x15c)){const _0x5c9628=one(children(_0x4121c1,'to'),_0x2ed138(0x201)),_0x284af6=_0x373ef4(_0x5c9628),_0x4af1bd=integer(one(children(_0x5c9628,_0x2ed138(0x15e)),_0x2ed138(0x193))[_0x2ed138(0x1d0)],'anchor\x20end\x20offset',Number[_0x2ed138(0x172)]),_0x4ef3f2=_0x23822b[_0x2ed138(0x1e2)](_0x284af6[_0x2ed138(0x1bd)])??_0x159173;if(_0x4af1bd>_0x4ef3f2||_0x284af6['row']===_0x4c78d7[_0x2ed138(0x1bd)]&&_0x4af1bd<=_0x200caa)_0x120512=_0x2ed138(0x196);if(_0x284af6[_0x2ed138(0x1bd)]<_0x4c78d7[_0x2ed138(0x1bd)]||_0x284af6[_0x2ed138(0x1bd)]>_0x4c78d7[_0x2ed138(0x1bd)]+0x1||_0x284af6['row']===_0x4c78d7['row']+0x1&&_0x4af1bd!==0x0)_0x120512=_0x2ed138(0x1f2);}const _0x3df0b4=chain(_0x4121c1,_0x2ed138(0x181),'blipFill',_0x2ed138(0x1f5));for(const _0x5d1257 of _0x3df0b4){if(_0x5d1257[_0x2ed138(0x1ba)][_0x2ed138(0x179)])throw Error(_0x2ed138(0x188));_0xb37e9a({..._0x4c78d7,'media':[_0x244a4d(_0x576e0b,_0x5d1257[_0x2ed138(0x1ba)][_0x2ed138(0x167)],_0x2ed138(0x1c4))],..._0x120512?{'error':_0x120512}:{}});}if(!_0x3df0b4[_0x2ed138(0x1e1)])_0xb37e9a({..._0x4c78d7,'media':[],'error':_0x2ed138(0x1a7)});}}const _0x254013=_0x187bdb=>{const _0x179b70=_0x2ed138,_0x586a5f=_0x3bb62b(_0x48b88d(_0x3f98bc,_0x179b70(0x1ff)));if(!matches(_0x586a5f,_0x179b70(0x184)))throw Error(_0x179b70(0x17f));const _0x30e406=integer(_0x187bdb['attrs']['vm'],_0x179b70(0x19c));if(!_0x30e406)throw Error(_0x179b70(0x1a2));const _0x33ca94=children(one(children(_0x586a5f,'valueMetadata'),_0x179b70(0x16b)),'bk')[_0x30e406-0x1];if(!_0x33ca94)throw Error(_0x179b70(0x1e6));const _0x5ee00d=one(children(_0x33ca94,'rc'),_0x179b70(0x1c2)),_0x7e7ac0=integer(_0x5ee00d[_0x179b70(0x1ba)]['t'],_0x179b70(0x1f3)),_0x5744cf=children(one(children(_0x586a5f,_0x179b70(0x1d5)),'metadata\x20types'),_0x179b70(0x1e7))[_0x7e7ac0-0x1];if(!_0x7e7ac0||_0x5744cf?.[_0x179b70(0x1ba)]['name']!==_0x179b70(0x204))throw Error('Unsupported\x20mapped\x20cell\x20metadata\x20type.');const _0xed1e00=one(children(_0x586a5f,_0x179b70(0x1c6))['filter'](_0x599d63=>_0x599d63['attrs'][_0x179b70(0x1c7)]===_0x179b70(0x204)),_0x179b70(0x19a)),_0x3bf1ea=children(_0xed1e00,'bk')[integer(_0x5ee00d[_0x179b70(0x1ba)]['v'],_0x179b70(0x18c))];if(!_0x3bf1ea)throw Error(_0x179b70(0x160));const _0x3d5a0b=chain(_0x3bf1ea,_0x179b70(0x1ac))[_0x179b70(0x1ef)](_0x22f6c2=>children(_0x22f6c2,_0x179b70(0x16f),SHEET))[_0x179b70(0x18b)](_0x48615d=>_0x48615d['attrs']['uri']?.[_0x179b70(0x1ce)]()==='{3e2802c4-a4d2-4d8b-9148-e3be6c30e623}'),_0x262be7=integer(one(_0x3d5a0b[_0x179b70(0x1ef)](_0x2a99af=>children(_0x2a99af,'rvb')),_0x179b70(0x17d))['attrs']['i'],_0x179b70(0x192)),_0x640f5b=_0x3bb62b(_0x48b88d(_0x3f98bc,'rdRichValue'));if(!matches(_0x640f5b,_0x179b70(0x174)))throw Error(_0x179b70(0x198));const _0x3e97e8=children(_0x640f5b,'rv')[_0x262be7];if(!_0x3e97e8)throw Error(_0x179b70(0x1fb));const _0x500d37=_0x3bb62b(_0x48b88d(_0x3f98bc,_0x179b70(0x1db)));if(!matches(_0x500d37,_0x179b70(0x157)))throw Error(_0x179b70(0x1a0));const _0x90982b=children(_0x500d37,'s')[integer(_0x3e97e8[_0x179b70(0x1ba)]['s'],_0x179b70(0x1d7))];if(!_0x90982b||_0x90982b['attrs']['t']!=='_localImage')throw Error(_0x179b70(0x202));const _0x4b9bfc=children(_0x90982b,'k'),_0x1dbbf3=_0x4b9bfc[_0x179b70(0x1d4)]((_0x5ab573,_0x1c83e9)=>_0x5ab573['attrs']['n']===_0x179b70(0x1ea)?_0x1c83e9:-0x1)['filter'](_0x2ffe50=>_0x2ffe50>=0x0);if(_0x1dbbf3[_0x179b70(0x1e1)]!==0x1)throw Error(_0x179b70(0x190));const _0x2cf233=children(_0x3e97e8,'v',RICH)[_0x1dbbf3[0x0]];if(!_0x2cf233)throw Error(_0x179b70(0x1b5));const _0x3aa551=_0x48b88d(_0x3f98bc,'richValueRel'),_0x3d9110=_0x3bb62b(_0x3aa551);if(!matches(_0x3d9110,_0x179b70(0x1df)))throw Error(_0x179b70(0x1bc));const _0x2cd38e=children(_0x3d9110,'rel')[integer(_0x2cf233[_0x179b70(0x1d0)],_0x179b70(0x170))];if(!_0x2cd38e)throw Error('Missing\x20rich\x20image\x20relationship.');return _0x244a4d(_0x3aa551,_0x2cd38e[_0x179b70(0x1ba)]['r:id'],_0x179b70(0x1c4));};let _0x55faa4;const _0x3c59dc=_0x57002b=>{const _0x1b9c2a=_0x2ed138;if(!_0x55faa4){_0x55faa4=new Map();const _0x486630=_0x53f003(_0x3f98bc)[_0x1b9c2a(0x18b)](_0x4adac0=>[...relationshipTypes('cellImage'),...relationshipTypes(_0x1b9c2a(0x17e))]['includes'](_0x4adac0[_0x1b9c2a(0x1eb)]));if(!_0x486630['length']&&_0x33cf1b[_0x1b9c2a(0x1aa)](_0x1b9c2a(0x1f6)))_0x486630[_0x1b9c2a(0x1e9)]({'id':'','type':'','target':_0x1b9c2a(0x1bb)});if(_0x486630[_0x1b9c2a(0x1e1)]!==0x1)throw Error('Missing\x20or\x20ambiguous\x20WPS\x20cell\x20image\x20part.');const _0x47b675=_0x14bba4(_0x3f98bc,_0x486630[0x0]),_0xde6b67=_0x3bb62b(_0x47b675);if(!matches(_0xde6b67,'cellImages'))throw Error(_0x1b9c2a(0x189));for(const _0x16a89c of children(_0xde6b67,'cellImage')){const _0x4fd606=one(chain(_0x16a89c,'pic',_0x1b9c2a(0x16d),_0x1b9c2a(0x171)),_0x1b9c2a(0x1b4))[_0x1b9c2a(0x1ba)]['name'];if(!_0x4fd606||_0x55faa4['has'](_0x4fd606))throw Error(_0x1b9c2a(0x156));const _0x551a6c=one(chain(_0x16a89c,'pic',_0x1b9c2a(0x1a3),'blip'),_0x1b9c2a(0x173));if(_0x551a6c[_0x1b9c2a(0x1ba)][_0x1b9c2a(0x179)])throw Error('External\x20WPS\x20image\x20links\x20are\x20not\x20supported.');_0x55faa4[_0x1b9c2a(0x161)](_0x4fd606,_0x244a4d(_0x47b675,_0x551a6c[_0x1b9c2a(0x1ba)][_0x1b9c2a(0x167)],_0x1b9c2a(0x1c4)));}}const _0x19296c=_0x55faa4[_0x1b9c2a(0x1e2)](_0x57002b);if(!_0x19296c)throw Error(_0x1b9c2a(0x186)+_0x57002b+'.');return _0x19296c;},_0x3d27af=new Set();for(const _0x4ea3e6 of _0x143d2b[_0x2ed138(0x1ef)](_0x2a251f=>children(_0x2a251f,'c'))){const _0x17946a=/^([A-Z]+)([1-9]\d*)$/[_0x2ed138(0x1e3)](_0x4ea3e6['attrs']['r']??'');if(!_0x17946a)continue;let _0x242e9e=0x0;for(const _0x3e75d9 of _0x17946a[0x1])_0x242e9e=_0x242e9e*0x1a+_0x3e75d9['charCodeAt'](0x0)-0x40;if(!_0x271f3c[_0x2ed138(0x1aa)](_0x242e9e))continue;const _0x130af1=integer(_0x17946a[0x2],_0x2ed138(0x1a1));if(_0x3d27af[_0x2ed138(0x1aa)](_0x4ea3e6[_0x2ed138(0x1ba)]['r']))throw Error(_0x2ed138(0x1b6));_0x3d27af[_0x2ed138(0x183)](_0x4ea3e6['attrs']['r']);const _0x461813=children(_0x4ea3e6,'f');if(!_0x4ea3e6[_0x2ed138(0x1ba)]['vm']&&!_0x461813[_0x2ed138(0x1e1)])continue;try{if(_0x130af1<0x1||_0x242e9e>0x100)throw Error(_0x2ed138(0x1b2));let _0x542515;if(_0x4ea3e6[_0x2ed138(0x1ba)]['vm']){if(_0x461813['length'])throw Error(_0x2ed138(0x1f7));if(_0x4ea3e6['attrs']['t']!=='e'||children(_0x4ea3e6,'v')[_0x2ed138(0x1e1)]!==0x1||children(_0x4ea3e6,'v')[0x0][_0x2ed138(0x1d0)]!=='#VALUE!')throw Error('Rich\x20IMAGE\x20cell\x20contains\x20unexpected\x20scalar\x20or\x20mixed\x20content.');_0x542515=_0x254013(_0x4ea3e6);}else{const _0x1cb401=one(_0x461813,'image\x20formula');if(_0x1cb401[_0x2ed138(0x1ba)]['t']==='shared'||_0x1cb401[_0x2ed138(0x1ba)]['si'])throw Error(_0x2ed138(0x162));const _0x144663=/^\s*=?\s*@?(?:_xlfn\.)?DISPIMG\(\s*"((?:[^"]|"")+)"\s*(?:,\s*[01]\s*)?\)\s*$/i['exec'](_0x1cb401[_0x2ed138(0x1d0)]);if(!_0x144663)throw Error(_0x2ed138(0x1f1));_0x542515=_0x3c59dc(_0x144663[0x1][_0x2ed138(0x15f)](/""/g,'\x22'));}_0xb37e9a({'row':_0x130af1,'col':_0x242e9e,'media':[_0x542515],'nativeCell':!![]});}catch(_0x371407){_0xb37e9a({'row':_0x130af1,'col':_0x242e9e,'media':[],'nativeCell':!![],'error':_0x371407[_0x2ed138(0x15a)]});}}return _0x481bc8;}
1
+ const a146_0x353b79=a146_0x2f92;(function(_0x2a6571,_0x1e1eaa){const _0x104bb8=a146_0x2f92,_0x16052e=_0x2a6571();while(!![]){try{const _0x3a505e=parseInt(_0x104bb8(0x165))/0x1+parseInt(_0x104bb8(0x103))/0x2+parseInt(_0x104bb8(0x14a))/0x3*(parseInt(_0x104bb8(0x146))/0x4)+parseInt(_0x104bb8(0x13f))/0x5+parseInt(_0x104bb8(0x130))/0x6+parseInt(_0x104bb8(0xfa))/0x7+-parseInt(_0x104bb8(0x120))/0x8*(parseInt(_0x104bb8(0x16f))/0x9);if(_0x3a505e===_0x1e1eaa)break;else _0x16052e['push'](_0x16052e['shift']());}catch(_0x58e471){_0x16052e['push'](_0x16052e['shift']());}}}(a146_0x4775,0x7c6b4));import a146_0x2b391c from'node:path';import{SaxesParser}from'saxes';const SHEET=[a146_0x353b79(0x136),a146_0x353b79(0xe5)],DRAWING=['http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing',a146_0x353b79(0x176)],DRAWING_MAIN=[a146_0x353b79(0x10d),a146_0x353b79(0xd0)],OFFICE_RELS=['http://schemas.openxmlformats.org/officeDocument/2006/relationships','http://purl.oclc.org/ooxml/officeDocument/relationships'],PACKAGE=[a146_0x353b79(0xd8)],RICH=[a146_0x353b79(0x172)],RICH_RELS=['http://schemas.microsoft.com/office/spreadsheetml/2022/richvaluerel'],WPS=[a146_0x353b79(0x12a)],DEFAULT_NS=Object[a146_0x353b79(0x118)]([...[a146_0x353b79(0xfb),a146_0x353b79(0xd4),a146_0x353b79(0x14e),'worksheet',a146_0x353b79(0x153),a146_0x353b79(0x11c),'c','f','v',a146_0x353b79(0x116),a146_0x353b79(0xe9),a146_0x353b79(0x14f),'metadataTypes',a146_0x353b79(0x115),a146_0x353b79(0xfe),a146_0x353b79(0x12e),'bk','rc',a146_0x353b79(0x13a)][a146_0x353b79(0x13b)](_0x5192cc=>[_0x5192cc,SHEET]),...['wsDr','oneCellAnchor',a146_0x353b79(0x17e),a146_0x353b79(0x168),a146_0x353b79(0xe1),'to',a146_0x353b79(0x145),a146_0x353b79(0x17b),a146_0x353b79(0xfc),'ext',a146_0x353b79(0x10b),a146_0x353b79(0xd6),a146_0x353b79(0x144),a146_0x353b79(0x164)][a146_0x353b79(0x13b)](_0x1fcaaa=>[_0x1fcaaa,DRAWING]),...[a146_0x353b79(0x11b),'rvData','rv',a146_0x353b79(0x125),'s','k'][a146_0x353b79(0x13b)](_0x56804a=>[_0x56804a,RICH]),[a146_0x353b79(0x16c),DRAWING_MAIN],[a146_0x353b79(0x156),RICH_RELS],[a146_0x353b79(0xea),RICH_RELS],[a146_0x353b79(0x12f),PACKAGE],[a146_0x353b79(0x162),PACKAGE],[a146_0x353b79(0xff),WPS],['cellImage',WPS]]),matches=(_0xd8b9e6,_0x514c79,_0x23cadf=DEFAULT_NS[_0x514c79]??[])=>_0xd8b9e6[a146_0x353b79(0x131)]===_0x514c79&&_0x23cadf[a146_0x353b79(0x14d)](_0xd8b9e6[a146_0x353b79(0x13d)]),children=(_0x529a54,_0x3c49b8,_0x5e7e0b=DEFAULT_NS[_0x3c49b8])=>_0x529a54[a146_0x353b79(0xeb)][a146_0x353b79(0x16b)](_0x1ba5b7=>matches(_0x1ba5b7,_0x3c49b8,_0x5e7e0b)),chain=(_0x424695,..._0x266cc6)=>_0x266cc6[a146_0x353b79(0x110)]((_0x5c00e1,_0x3a9bb3)=>_0x5c00e1['flatMap'](_0x59f6e1=>children(_0x59f6e1,_0x3a9bb3)),[_0x424695]),relationshipTypes=_0x15f2be=>{const _0xd94bfc=a146_0x353b79;if([_0xd94bfc(0x147),_0xd94bfc(0xdb)][_0xd94bfc(0x14d)](_0x15f2be))return[_0xd94bfc(0x155)+_0x15f2be];if(_0x15f2be==='richValueRel')return['http://schemas.microsoft.com/office/2022/10/relationships/richValueRel'];if(_0x15f2be===_0xd94bfc(0x150)||_0x15f2be===_0xd94bfc(0xff))return[_0xd94bfc(0x113)+_0x15f2be];return OFFICE_RELS['map'](_0x346a79=>_0x346a79+'/'+_0x15f2be);};function one(_0x2aed41,_0x1b6e70){const _0x59a203=a146_0x353b79;if(_0x2aed41[_0x59a203(0x171)]!==0x1)throw Error(_0x59a203(0xf5)+_0x1b6e70+'.');return _0x2aed41[0x0];}function integer(_0x386bb8,_0x6bec6d,_0x13923c=0x186a0){const _0x690198=a146_0x353b79;if(!_0x386bb8||!/^\d+$/['test'](_0x386bb8)||!Number['isSafeInteger'](Number(_0x386bb8))||Number(_0x386bb8)>_0x13923c)throw Error(_0x690198(0x163)+_0x6bec6d+'.');return Number(_0x386bb8);}function a146_0x4775(){const _0x4323d5=['Workbook\x20exceeds\x2010000\x20image\x20occurrences.','Unsupported\x20metadata\x20namespace.','rvb','row','Ambiguous\x20XML\x20attribute.','Rich\x20IMAGE\x20cell\x20contains\x20unexpected\x20scalar\x20or\x20mixed\x20content.','charCodeAt','16DBLKyM','has','xl/workbook.xml','Invalid\x20worksheet\x20row\x20height\x20for\x20image\x20anchor.','sheetMetadata','rvStructures','Shared\x20image\x20formulas\x20are\x20not\x20supported.','Unsupported\x20mapped\x20rich\x20value\x20structure.','Unsupported\x20mapped\x20cell\x20metadata\x20type.','#VALUE!','http://www.wps.cn/officeDocument/2017/etCustomData','set','MAX_SAFE_INTEGER','Missing\x20XLSX\x20part:\x20','valueMetadata','Relationships','661140ztLjBE','name','r:id','future\x20metadata\x20index','XML\x20DTD/entities\x20are\x20not\x20supported.','image\x20formula','http://schemas.openxmlformats.org/spreadsheetml/2006/main','rich\x20value\x20binding','attrs','Image\x20XML\x20node\x20budget\x20exceeded.','extLst','map','shared','uri','add','3221890rIidmB','image\x20cell\x20row','value\x20metadata\x20index','posix','Internal','cNvPr','col','16jofSIB','rdRichValue','join','Missing\x20local\x20image\x20identifier\x20value.','379047AJXNpD','round','.rels','includes','sheet','metadata','cellImage','Unsupported\x20rich\x20image\x20relation\x20namespace.','Unsupported\x20drawing\x20image.','sheetData','External\x20WPS\x20image\x20links\x20are\x20not\x20supported.','http://schemas.microsoft.com/office/2017/06/relationships/','richValueRels','error','Image\x20anchor\x20spans\x20multiple\x20business\x20rows.','doctype','defaultRowHeight','Unsupported\x20workbook\x20namespace.','_rvRel:LocalImageIdentifier','image\x20height','Image\x20anchor\x20has\x20invalid\x20or\x20reversed\x20row\x20offsets.','anchor\x20start\x20offset','anchor\x20start','flatMap','Relationship','Invalid\x20','blipFill','644778xrGrDr','Mixed\x20formula\x20and\x20rich\x20image\x20metadata\x20is\x20unsupported.','test','absoluteAnchor','rich\x20structure\x20index','metadata\x20types','filter','blip','wsDr','pop','11494863OAbliL','r:embed','length','http://schemas.microsoft.com/office/spreadsheetml/2017/richdata','Value\x20metadata\x20index\x20must\x20be\x20one-based.','../','closetag','http://purl.oclc.org/ooxml/drawingml/spreadsheetDrawing','local','push','get','write','colOff','Missing\x20rich\x20image\x20relationship.','Image\x20coordinate\x20exceeds\x20worksheet\x20bounds.','twoCellAnchor','value','_rels','anchor\x20column','http://purl.oclc.org/ooxml/drawingml/main','Invalid\x20relationship\x20target:\x20','_localImage','\x20relationship\x20in\x20','sheets','metadata\x20type\x20index','nvPicPr','exec','http://schemas.openxmlformats.org/package/2006/relationships','r:link','XLRICHVALUE','rdRichValueStructure','image','utf8','replace','xl/cellimages.xml','opentag','from','slice','rich\x20value\x20index','worksheet','http://purl.oclc.org/ooxml/spreadsheetml/main','Unsupported\x20rich\x20value\x20namespace.','normalize','text','drawing','rel','children','External\x20image\x20relationship\x20is\x20not\x20supported:\x20','anchor\x20end','toLowerCase','External\x20image\x20links\x20are\x20not\x20supported.','WPS\x20image\x20blip','Duplicate\x20mapped\x20image\x20cell.','basename','Unsupported\x20relationship\x20namespace\x20in\x20','Unsupported\x20rich\x20structure\x20namespace.','Missing\x20or\x20ambiguous\x20','anchor\x20row','isFinite','Relationship\x20target\x20escapes\x20workbook:\x20','toString','6533772GdWWqF','workbook','rowOff','Invalid\x20image\x20start\x20offset\x20at\x20row\x20','futureMetadata','cellImages','type','xl/','Missing\x20rich\x20value.','451792CYsDIv','Unsupported\x20worksheet\x20namespace.','some','rich\x20image\x20relationship\x20index','oneCellAnchor','richValueRel','Missing\x20WPS\x20image\x20ID:\x20','/xl/cellimages.xml','pic','Absolute\x20image\x20anchor\x20cannot\x20be\x20mapped\x20in\x20worksheet\x20','http://schemas.openxmlformats.org/drawingml/2006/main','rich\x20metadata\x20record','image\x20row\x20height\x20coordinate','reduce','startsWith','hidden\x20image\x20row','http://www.wps.cn/officeDocument/2017/relationships/','ext','metadataType','sheetFormatPr','dirname','fromEntries'];a146_0x4775=function(){return _0x4323d5;};return a146_0x4775();}function a146_0x2f92(_0x38693b,_0x44d73b){_0x38693b=_0x38693b-0xd0;const _0x47756d=a146_0x4775();let _0x2f9252=_0x47756d[_0x38693b];return _0x2f9252;}export function resolveWorksheetImages(_0xb82792,_0x20332c,_0x46aa0f){const _0x4439d3=a146_0x353b79;let _0x5f4d93=0x0,_0x1d7a9e=0x0,_0x448b9d=0x0;const _0x52142c=new Map(),_0x565ec7=_0x569df7=>{const _0x4fc0ed=a146_0x2f92;if(_0x52142c[_0x4fc0ed(0x121)](_0x569df7))return _0x52142c[_0x4fc0ed(0x179)](_0x569df7);const _0x547de4=_0xb82792[_0x4fc0ed(0x179)](_0x569df7);if(!_0x547de4)throw Error(_0x4fc0ed(0x12d)+_0x569df7+'.');const _0x4ef1f0={'name':'','uri':'','attrs':{},'children':[],'text':''},_0xe7bb59=[_0x4ef1f0],_0x1da35f=new SaxesParser({'xmlns':!![]}),_0x1fb083=()=>{if(++_0x1d7a9e>0x1e8480)throw Error('Image\x20XML\x20event\x20budget\x20exceeded.');};_0x1da35f['on'](_0x4fc0ed(0x159),()=>{const _0x14cd49=_0x4fc0ed;throw Error(_0x14cd49(0x134));}),_0x1da35f['on'](_0x4fc0ed(0xe0),_0x150202=>{const _0x115986=_0x4fc0ed;_0x1fb083();if(++_0x5f4d93>0x7a120||_0xe7bb59[_0x115986(0x171)]>0x40)throw Error(_0x115986(0x139));const _0x160217={};for(const _0x339941 of Object['values'](_0x150202['attributes'])){const _0x5c7c5f=OFFICE_RELS[_0x115986(0x14d)](_0x339941[_0x115986(0x13d)])?'r:'+_0x339941['local']:_0x339941[_0x115986(0x13d)]?'{'+_0x339941[_0x115986(0x13d)]+'}'+_0x339941[_0x115986(0x177)]:_0x339941['local'];if(_0x5c7c5f in _0x160217)throw Error(_0x115986(0x11d));_0x160217[_0x5c7c5f]=_0x339941[_0x115986(0x17f)];}const _0x4721c6={'name':_0x150202[_0x115986(0x177)],'uri':_0x150202[_0x115986(0x13d)],'attrs':_0x160217,'children':[],'text':''};_0xe7bb59['at'](-0x1)[_0x115986(0xeb)][_0x115986(0x178)](_0x4721c6),_0xe7bb59[_0x115986(0x178)](_0x4721c6);}),_0x1da35f['on'](_0x4fc0ed(0xe8),_0x3a465c=>{const _0x4d9e32=_0x4fc0ed;_0x1fb083();const _0x35b4d9=_0xe7bb59['at'](-0x1);_0x35b4d9['text']+=_0x3a465c;if(_0x35b4d9[_0x4d9e32(0xe8)][_0x4d9e32(0x171)]>0x10000)throw Error('Image\x20XML\x20text\x20exceeds\x2064\x20KB.');}),_0x1da35f['on'](_0x4fc0ed(0x175),()=>{const _0x334488=_0x4fc0ed;_0x1fb083(),_0xe7bb59[_0x334488(0x16e)]();}),_0x1da35f['on'](_0x4fc0ed(0x157),_0x10dfa7=>{throw _0x10dfa7;}),_0x1da35f[_0x4fc0ed(0x17a)](_0x547de4[_0x4fc0ed(0xf9)](_0x4fc0ed(0xdd)))['close']();const _0x38d068=one(_0x4ef1f0['children'],_0x569df7);return _0x52142c[_0x4fc0ed(0x12b)](_0x569df7,_0x38d068),_0x38d068;},_0x1c1b97=new Map(),_0x5a7048=_0x1097eb=>{const _0x64e5ec=a146_0x2f92;if(_0x1c1b97[_0x64e5ec(0x121)](_0x1097eb))return _0x1c1b97[_0x64e5ec(0x179)](_0x1097eb);const _0x304ed1=a146_0x2b391c['posix'][_0x64e5ec(0x148)](a146_0x2b391c[_0x64e5ec(0x142)][_0x64e5ec(0x117)](_0x1097eb),_0x64e5ec(0x180),a146_0x2b391c[_0x64e5ec(0x142)][_0x64e5ec(0xf2)](_0x1097eb)+_0x64e5ec(0x14c));if(!_0xb82792[_0x64e5ec(0x121)](_0x304ed1))return[];const _0x3326cb=new Set(),_0x217ad7=_0x565ec7(_0x304ed1);if(!matches(_0x217ad7,_0x64e5ec(0x12f)))throw Error(_0x64e5ec(0xf3)+_0x304ed1+'.');const _0x2f9910=children(_0x217ad7,_0x64e5ec(0x162))[_0x64e5ec(0x13b)](_0x5baa70=>{const _0x24ebde=_0x64e5ec,{Id:_0x3b5f59,Type:_0x3f364a,Target:_0x326832,TargetMode:_0x367dc9}=_0x5baa70[_0x24ebde(0x138)];if(!_0x3b5f59||_0x3326cb[_0x24ebde(0x121)](_0x3b5f59)||!_0x3f364a)throw Error('Invalid\x20or\x20duplicate\x20relationship\x20in\x20'+_0x304ed1+'.');return _0x3326cb[_0x24ebde(0x13e)](_0x3b5f59),{'id':_0x3b5f59,'type':_0x3f364a,'target':_0x326832??'','mode':_0x367dc9};});return _0x1c1b97['set'](_0x1097eb,_0x2f9910),_0x2f9910;},_0x428b50=(_0x1dc3e5,_0x40f07e)=>{const _0x9d20f1=a146_0x2f92,{target:_0x15c725,mode:_0x27fdf8}=_0x40f07e;if(_0x27fdf8&&_0x27fdf8!==_0x9d20f1(0x143))throw Error(_0x9d20f1(0xec)+_0x1dc3e5+'.');if(!_0x15c725||_0x15c725['includes']('\x5c')||/[?#%\x00-\x20]/[_0x9d20f1(0x167)](_0x15c725)||/^[a-z][a-z0-9+.-]*:/i[_0x9d20f1(0x167)](_0x15c725)||_0x15c725[_0x9d20f1(0x111)]('//'))throw Error(_0x9d20f1(0xd1)+_0x1dc3e5+'.');const _0x4c5275=_0x15c725[_0x9d20f1(0x111)]('/')?_0x15c725[_0x9d20f1(0xe2)](0x1):a146_0x2b391c['posix'][_0x9d20f1(0xe7)](a146_0x2b391c['posix'][_0x9d20f1(0x148)](a146_0x2b391c[_0x9d20f1(0x142)][_0x9d20f1(0x117)](_0x1dc3e5),_0x15c725));if(_0x4c5275[_0x9d20f1(0x111)](_0x9d20f1(0x174))||_0x4c5275==='..'||!_0x4c5275[_0x9d20f1(0x111)](_0x9d20f1(0x101)))throw Error(_0x9d20f1(0xf8)+_0x1dc3e5+'.');return _0x4c5275;},_0x1ca1ca=(_0x2d88f7,_0x473c47,_0x2fd857)=>{const _0xf57da8=a146_0x2f92,_0x5dd9b5=_0x5a7048(_0x2d88f7)[_0xf57da8(0x16b)](_0x1eda32=>_0x1eda32['id']===_0x473c47&&relationshipTypes(_0x2fd857)['includes'](_0x1eda32[_0xf57da8(0x100)]));if(_0x5dd9b5[_0xf57da8(0x171)]!==0x1)throw Error(_0xf57da8(0xf5)+_0x2fd857+_0xf57da8(0xd3)+_0x2d88f7+'.');return _0x428b50(_0x2d88f7,_0x5dd9b5[0x0]);},_0x177f52=(_0x595d93,_0x1f3d74)=>{const _0x196aaa=a146_0x2f92,_0x31ed54=_0x5a7048(_0x595d93)[_0x196aaa(0x16b)](_0x1df4c0=>relationshipTypes(_0x1f3d74)[_0x196aaa(0x14d)](_0x1df4c0[_0x196aaa(0x100)]));if(_0x31ed54[_0x196aaa(0x171)]!==0x1)throw Error(_0x196aaa(0xf5)+_0x1f3d74+'\x20relationship\x20in\x20'+_0x595d93+'.');return _0x428b50(_0x595d93,_0x31ed54[0x0]);},_0x1db33f=_0x4439d3(0x122),_0x1c1107=_0x565ec7(_0x1db33f);if(!matches(_0x1c1107,'workbook'))throw Error(_0x4439d3(0x15b));const _0x5bfc6a=one(chain(_0x1c1107,_0x4439d3(0xd4),_0x4439d3(0x14e))[_0x4439d3(0x16b)](_0x6687bb=>_0x6687bb[_0x4439d3(0x138)][_0x4439d3(0x131)]===_0x20332c),_0x4439d3(0xe4)),_0x354dfb=_0x1ca1ca(_0x1db33f,_0x5bfc6a[_0x4439d3(0x138)][_0x4439d3(0x132)],'worksheet'),_0x275bd9=_0x565ec7(_0x354dfb);if(!matches(_0x275bd9,_0x4439d3(0xe4)))throw Error(_0x4439d3(0x104));const _0x9cacdf=chain(_0x275bd9,'sheetData',_0x4439d3(0x11c)),_0x18843a=new Map(),_0x4b7c77=new Set(_0x9cacdf[_0x4439d3(0x16b)](_0x488140=>_0x488140[_0x4439d3(0x138)]['hidden']==='1'||_0x488140['attrs']['hidden']==='true')[_0x4439d3(0x13b)](_0x423ccf=>integer(_0x423ccf[_0x4439d3(0x138)]['r'],_0x4439d3(0x112)))),_0x4ed9d7=_0x126604=>{const _0x8625fe=_0x4439d3,_0x4dcfbf=_0x126604===undefined?0xf:Number(_0x126604);if(!Number[_0x8625fe(0xf7)](_0x4dcfbf)||_0x4dcfbf<=0x0||_0x4dcfbf>409.5)throw Error(_0x8625fe(0x123));return Math[_0x8625fe(0x14b)](_0x4dcfbf*0x319c);},_0x4d9b2c=_0x4ed9d7(children(_0x275bd9,_0x4439d3(0x116))[0x0]?.['attrs'][_0x4439d3(0x15a)]);for(const _0x21c652 of _0x9cacdf)if(_0x21c652[_0x4439d3(0x138)]['ht']!==undefined)_0x18843a[_0x4439d3(0x12b)](integer(_0x21c652['attrs']['r'],_0x4439d3(0x10f)),_0x4ed9d7(_0x21c652['attrs']['ht']));const _0x3da7fc=[],_0x2491ac=_0x2646ae=>{const _0x3a4116=_0x4439d3;if(!_0x46aa0f[_0x3a4116(0x121)](_0x2646ae[_0x3a4116(0x145)]))return;if(++_0x448b9d>0x2710)throw Error(_0x3a4116(0x119));_0x3da7fc[_0x3a4116(0x178)](_0x4b7c77[_0x3a4116(0x121)](_0x2646ae[_0x3a4116(0x11c)])?{..._0x2646ae,'hiddenRow':!![]}:_0x2646ae);},_0x436f80=_0x1990f4=>({'row':integer(one(children(_0x1990f4,'row',DRAWING),'anchor\x20row')['text'],_0x4439d3(0xf6),0x1869f)+0x1,'col':integer(one(children(_0x1990f4,_0x4439d3(0x145)),_0x4439d3(0x181))[_0x4439d3(0xe8)],_0x4439d3(0x181),0xff)+0x1});for(const _0x1d0fbc of children(_0x275bd9,_0x4439d3(0xe9))){const _0x5efb15=_0x1ca1ca(_0x354dfb,_0x1d0fbc[_0x4439d3(0x138)]['r:id'],'drawing'),_0x3b39f2=_0x565ec7(_0x5efb15);if(!matches(_0x3b39f2,_0x4439d3(0x16d)))throw Error('Unsupported\x20drawing\x20namespace.');for(const _0x37069d of _0x3b39f2['children']){if(![_0x4439d3(0x107),_0x4439d3(0x17e),'absoluteAnchor'][_0x4439d3(0x105)](_0x277aca=>matches(_0x37069d,_0x277aca)))continue;if(_0x37069d[_0x4439d3(0x131)]===_0x4439d3(0x168))throw Error(_0x4439d3(0x10c)+_0x20332c+'.');const _0x1a6b83=_0x436f80(one(children(_0x37069d,_0x4439d3(0xe1)),_0x4439d3(0x160)));if(!_0x46aa0f[_0x4439d3(0x121)](_0x1a6b83[_0x4439d3(0x145)]))continue;let _0x48ae8f;const _0x2b6a29=one(children(_0x37069d,_0x4439d3(0xe1)),_0x4439d3(0x160)),_0x12f686=integer(one(children(_0x2b6a29,_0x4439d3(0xfc)),'anchor\x20start\x20offset')[_0x4439d3(0xe8)],_0x4439d3(0x15f),Number[_0x4439d3(0x12c)]),_0x5bab28=_0x18843a[_0x4439d3(0x179)](_0x1a6b83[_0x4439d3(0x11c)])??_0x4d9b2c;if(_0x12f686>=_0x5bab28)throw Error(_0x4439d3(0xfd)+_0x1a6b83[_0x4439d3(0x11c)]+'.');if(_0x37069d[_0x4439d3(0x131)]===_0x4439d3(0x107)){const _0x3ad760=one(children(_0x37069d,_0x4439d3(0x114)),'image\x20extent'),_0x1089e8=integer(_0x3ad760[_0x4439d3(0x138)]['cy'],_0x4439d3(0x15d),Number['MAX_SAFE_INTEGER']);if(!_0x1089e8||_0x12f686+_0x1089e8>_0x5bab28)_0x48ae8f=_0x4439d3(0x158);}if(_0x37069d[_0x4439d3(0x131)]===_0x4439d3(0x17e)){const _0x250db4=one(children(_0x37069d,'to'),_0x4439d3(0xed)),_0x2d22c4=_0x436f80(_0x250db4),_0x4c6b96=integer(one(children(_0x250db4,'rowOff'),'anchor\x20end\x20offset')[_0x4439d3(0xe8)],'anchor\x20end\x20offset',Number[_0x4439d3(0x12c)]),_0x176d9b=_0x18843a[_0x4439d3(0x179)](_0x2d22c4['row'])??_0x4d9b2c;if(_0x4c6b96>_0x176d9b||_0x2d22c4['row']===_0x1a6b83[_0x4439d3(0x11c)]&&_0x4c6b96<=_0x12f686)_0x48ae8f=_0x4439d3(0x15e);if(_0x2d22c4[_0x4439d3(0x11c)]<_0x1a6b83[_0x4439d3(0x11c)]||_0x2d22c4['row']>_0x1a6b83[_0x4439d3(0x11c)]+0x1||_0x2d22c4[_0x4439d3(0x11c)]===_0x1a6b83[_0x4439d3(0x11c)]+0x1&&_0x4c6b96!==0x0)_0x48ae8f=_0x4439d3(0x158);}const _0x415b8c=chain(_0x37069d,_0x4439d3(0x10b),_0x4439d3(0x164),_0x4439d3(0x16c));for(const _0x91d87f of _0x415b8c){if(_0x91d87f['attrs'][_0x4439d3(0xd9)])throw Error(_0x4439d3(0xef));_0x2491ac({..._0x1a6b83,'media':[_0x1ca1ca(_0x5efb15,_0x91d87f['attrs']['r:embed'],_0x4439d3(0xdc))],..._0x48ae8f?{'error':_0x48ae8f}:{}});}if(!_0x415b8c[_0x4439d3(0x171)])_0x2491ac({..._0x1a6b83,'media':[],'error':_0x4439d3(0x152)});}}const _0x137c91=_0x526d1a=>{const _0x4cb350=_0x4439d3,_0x1ee91a=_0x565ec7(_0x177f52(_0x1db33f,_0x4cb350(0x124)));if(!matches(_0x1ee91a,_0x4cb350(0x14f)))throw Error(_0x4cb350(0x11a));const _0x5804b2=integer(_0x526d1a[_0x4cb350(0x138)]['vm'],_0x4cb350(0x141));if(!_0x5804b2)throw Error(_0x4cb350(0x173));const _0x5cd46e=children(one(children(_0x1ee91a,_0x4cb350(0x12e)),_0x4cb350(0x12e)),'bk')[_0x5804b2-0x1];if(!_0x5cd46e)throw Error('Missing\x20value\x20metadata\x20block.');const _0x1f520d=one(children(_0x5cd46e,'rc'),_0x4cb350(0x10e)),_0x34095b=integer(_0x1f520d['attrs']['t'],_0x4cb350(0xd5)),_0x41a9b1=children(one(children(_0x1ee91a,'metadataTypes'),_0x4cb350(0x16a)),'metadataType')[_0x34095b-0x1];if(!_0x34095b||_0x41a9b1?.['attrs']['name']!==_0x4cb350(0xda))throw Error(_0x4cb350(0x128));const _0x18427e=one(children(_0x1ee91a,_0x4cb350(0xfe))[_0x4cb350(0x16b)](_0x129104=>_0x129104[_0x4cb350(0x138)][_0x4cb350(0x131)]===_0x4cb350(0xda)),'rich\x20future\x20metadata'),_0x4c895b=children(_0x18427e,'bk')[integer(_0x1f520d[_0x4cb350(0x138)]['v'],_0x4cb350(0x133))];if(!_0x4c895b)throw Error('Missing\x20future\x20metadata\x20block.');const _0x1c3db7=chain(_0x4c895b,_0x4cb350(0x13a))[_0x4cb350(0x161)](_0xac3494=>children(_0xac3494,_0x4cb350(0x114),SHEET))['filter'](_0x4b370e=>_0x4b370e[_0x4cb350(0x138)][_0x4cb350(0x13d)]?.[_0x4cb350(0xee)]()==='{3e2802c4-a4d2-4d8b-9148-e3be6c30e623}'),_0x5e9621=integer(one(_0x1c3db7[_0x4cb350(0x161)](_0x3fbae1=>children(_0x3fbae1,_0x4cb350(0x11b))),_0x4cb350(0x137))[_0x4cb350(0x138)]['i'],_0x4cb350(0xe3)),_0x1da376=_0x565ec7(_0x177f52(_0x1db33f,_0x4cb350(0x147)));if(!matches(_0x1da376,'rvData'))throw Error(_0x4cb350(0xe6));const _0x46052a=children(_0x1da376,'rv')[_0x5e9621];if(!_0x46052a)throw Error(_0x4cb350(0x102));const _0x2d1cf4=_0x565ec7(_0x177f52(_0x1db33f,_0x4cb350(0xdb)));if(!matches(_0x2d1cf4,'rvStructures'))throw Error(_0x4cb350(0xf4));const _0x2576e0=children(_0x2d1cf4,'s')[integer(_0x46052a[_0x4cb350(0x138)]['s'],_0x4cb350(0x169))];if(!_0x2576e0||_0x2576e0[_0x4cb350(0x138)]['t']!==_0x4cb350(0xd2))throw Error(_0x4cb350(0x127));const _0x296b9d=children(_0x2576e0,'k'),_0x5dbf6a=_0x296b9d['map']((_0x2a3e59,_0x48cb96)=>_0x2a3e59[_0x4cb350(0x138)]['n']===_0x4cb350(0x15c)?_0x48cb96:-0x1)[_0x4cb350(0x16b)](_0xd07599=>_0xd07599>=0x0);if(_0x5dbf6a['length']!==0x1)throw Error('Missing\x20or\x20ambiguous\x20local\x20image\x20identifier.');const _0x417a84=children(_0x46052a,'v',RICH)[_0x5dbf6a[0x0]];if(!_0x417a84)throw Error(_0x4cb350(0x149));const _0x76894a=_0x177f52(_0x1db33f,_0x4cb350(0x108)),_0x12bfc1=_0x565ec7(_0x76894a);if(!matches(_0x12bfc1,_0x4cb350(0x156)))throw Error(_0x4cb350(0x151));const _0x581851=children(_0x12bfc1,_0x4cb350(0xea))[integer(_0x417a84['text'],_0x4cb350(0x106))];if(!_0x581851)throw Error(_0x4cb350(0x17c));return _0x1ca1ca(_0x76894a,_0x581851[_0x4cb350(0x138)][_0x4cb350(0x132)],'image');};let _0xf55d52;const _0x257738=_0x5b533d=>{const _0x201307=_0x4439d3;if(!_0xf55d52){_0xf55d52=new Map();const _0x2121e7=_0x5a7048(_0x1db33f)[_0x201307(0x16b)](_0x11ebad=>[...relationshipTypes('cellImage'),...relationshipTypes('cellImages')]['includes'](_0x11ebad[_0x201307(0x100)]));if(!_0x2121e7['length']&&_0xb82792[_0x201307(0x121)](_0x201307(0xdf)))_0x2121e7[_0x201307(0x178)]({'id':'','type':'','target':_0x201307(0x10a)});if(_0x2121e7['length']!==0x1)throw Error('Missing\x20or\x20ambiguous\x20WPS\x20cell\x20image\x20part.');const _0x113da7=_0x428b50(_0x1db33f,_0x2121e7[0x0]),_0x4be9db=_0x565ec7(_0x113da7);if(!matches(_0x4be9db,_0x201307(0xff)))throw Error('Unsupported\x20WPS\x20cell\x20image\x20namespace.');for(const _0x3253b8 of children(_0x4be9db,'cellImage')){const _0x123789=one(chain(_0x3253b8,_0x201307(0x10b),'nvPicPr',_0x201307(0x144)),'WPS\x20image\x20name')[_0x201307(0x138)][_0x201307(0x131)];if(!_0x123789||_0xf55d52[_0x201307(0x121)](_0x123789))throw Error('Invalid\x20or\x20duplicate\x20WPS\x20image\x20ID.');const _0x585098=one(chain(_0x3253b8,'pic',_0x201307(0x164),_0x201307(0x16c)),_0x201307(0xf0));if(_0x585098[_0x201307(0x138)][_0x201307(0xd9)])throw Error(_0x201307(0x154));_0xf55d52[_0x201307(0x12b)](_0x123789,_0x1ca1ca(_0x113da7,_0x585098[_0x201307(0x138)][_0x201307(0x170)],_0x201307(0xdc)));}}const _0x1034c9=_0xf55d52['get'](_0x5b533d);if(!_0x1034c9)throw Error(_0x201307(0x109)+_0x5b533d+'.');return _0x1034c9;},_0x3b4a57=new Set();for(const _0x5191c0 of _0x9cacdf[_0x4439d3(0x161)](_0x783b7a=>children(_0x783b7a,'c'))){const _0x195441=/^([A-Z]+)([1-9]\d*)$/[_0x4439d3(0xd7)](_0x5191c0[_0x4439d3(0x138)]['r']??'');if(!_0x195441)continue;let _0x1138be=0x0;for(const _0x2cd71b of _0x195441[0x1])_0x1138be=_0x1138be*0x1a+_0x2cd71b[_0x4439d3(0x11f)](0x0)-0x40;if(!_0x46aa0f['has'](_0x1138be))continue;const _0x22d4ce=integer(_0x195441[0x2],_0x4439d3(0x140));if(_0x3b4a57['has'](_0x5191c0[_0x4439d3(0x138)]['r']))throw Error(_0x4439d3(0xf1));_0x3b4a57[_0x4439d3(0x13e)](_0x5191c0[_0x4439d3(0x138)]['r']);const _0x37e086=children(_0x5191c0,'f');if(!_0x5191c0['attrs']['vm']&&!_0x37e086[_0x4439d3(0x171)])continue;try{if(_0x22d4ce<0x1||_0x1138be>0x100)throw Error(_0x4439d3(0x17d));let _0x375e16;if(_0x5191c0[_0x4439d3(0x138)]['vm']){if(_0x37e086[_0x4439d3(0x171)])throw Error(_0x4439d3(0x166));if(_0x5191c0[_0x4439d3(0x138)]['t']!=='e'||children(_0x5191c0,'v')[_0x4439d3(0x171)]!==0x1||children(_0x5191c0,'v')[0x0][_0x4439d3(0xe8)]!==_0x4439d3(0x129))throw Error(_0x4439d3(0x11e));_0x375e16=_0x137c91(_0x5191c0);}else{const _0x606696=one(_0x37e086,_0x4439d3(0x135));if(_0x606696[_0x4439d3(0x138)]['t']===_0x4439d3(0x13c)||_0x606696[_0x4439d3(0x138)]['si'])throw Error(_0x4439d3(0x126));const _0x5f3b09=/^\s*=?\s*@?(?:_xlfn\.)?DISPIMG\(\s*"((?:[^"]|"")+)"\s*(?:,\s*[01]\s*)?\)\s*$/i[_0x4439d3(0xd7)](_0x606696[_0x4439d3(0xe8)]);if(!_0x5f3b09)throw Error('Unsupported\x20image\x20formula;\x20expected\x20a\x20standalone\x20DISPIMG\x20literal.');_0x375e16=_0x257738(_0x5f3b09[0x1][_0x4439d3(0xde)](/""/g,'\x22'));}_0x2491ac({'row':_0x22d4ce,'col':_0x1138be,'media':[_0x375e16],'nativeCell':!![]});}catch(_0x3431cb){_0x2491ac({'row':_0x22d4ce,'col':_0x1138be,'media':[],'nativeCell':!![],'error':_0x3431cb['message']});}}return _0x3da7fc;}
@@ -1 +1 @@
1
- (function(_0x227931,_0x432cd3){const _0x127d6b=a147_0x4d23,_0x4d399c=_0x227931();while(!![]){try{const _0x2803f9=-parseInt(_0x127d6b(0x1a2))/0x1*(-parseInt(_0x127d6b(0x1ca))/0x2)+parseInt(_0x127d6b(0x191))/0x3*(parseInt(_0x127d6b(0x1e5))/0x4)+-parseInt(_0x127d6b(0x1d7))/0x5+parseInt(_0x127d6b(0x1e6))/0x6*(parseInt(_0x127d6b(0x1d4))/0x7)+parseInt(_0x127d6b(0x1d0))/0x8*(parseInt(_0x127d6b(0x1ab))/0x9)+parseInt(_0x127d6b(0x1c8))/0xa*(parseInt(_0x127d6b(0x1ae))/0xb)+parseInt(_0x127d6b(0x190))/0xc*(-parseInt(_0x127d6b(0x1cf))/0xd);if(_0x2803f9===_0x432cd3)break;else _0x4d399c['push'](_0x4d399c['shift']());}catch(_0x52363b){_0x4d399c['push'](_0x4d399c['shift']());}}}(a147_0x4a91,0xecc59));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_0x4a91(){const _0x169ea7=['image/png','357064otzPRH','Unexpected\x20row\x20checkpoint\x20during\x20image\x20upload\x20phase.','imageFields','type','maxBatchBytes','55100526HQCBnv','3343728maTRHo','parserVersion','missing','isInteger','7VeesLf','succeeded','digest','5014915hsVayU','hex','completed','appCode','uploadFields','upload','schemaVersion','get','jpg','png','contract','Image\x20media\x20bytes\x20changed.','reduce','rowNumber','312vlqOcj','7962486maKkWd','Image\x20cell\x20references\x20missing\x20media.','name','filePath','entries','image/jpeg','dataset-import/','gif','some','maxFileBytes','ENOENT','size','Image\x20checkpoint\x20does\x20not\x20match\x20the\x20source,\x20target\x20or\x20identity.','schemaHash','Import\x20checkpoint\x20already\x20exists;\x20use\x20--resume.','.lock.recovery','pending','sheet','every','The\x20server\x20does\x20not\x20support\x20this\x20image\x20import\x20capability.','manifest','key','batchSize','rows-preparing','readback','Cannot\x20read\x20the\x20image\x20import\x20checkpoint.','isArray','12SHQlGO','56709kWYYYQ','Uploaded\x20image\x20metadata\x20changed\x20or\x20is\x20corrupt.','value','map','length','rows-started','types','imageApi','parse','Invalid\x20image\x20media\x20descriptor.','mappingHash','rows','Uploaded\x20image\x20is\x20not\x20visible.\x20Resume\x20to\x20reconcile\x20before\x20continuing.','phase','report','Row\x20phase\x20started\x20but\x20the\x20row\x20checkpoint\x20is\x20missing;\x20stop\x20to\x20avoid\x20duplicate\x20records.','datasetCode','9zQBFlk','media','sha256','isSafeInteger','fromEntries','fileHash','values','test','field','36FQLKFP','stringify','uploadId','11TwZFzf','version','hashes','resume','inputPaths','actorId','.lock','schemaFingerprint','update','imageCells','checkpoint','all','Invalid\x20import\x20batch\x20size.','contentHash','importId','strategy','image/gif','Previously\x20uploaded\x20image\x20is\x20missing;\x20automatic\x20repair\x20is\x20disabled.','maxPixels','includes','bytes','Invalid\x20image\x20readback\x20digest.','binding','Excel\x20contains\x20invalid\x20or\x20no\x20data\x20rows;\x20no\x20images\x20were\x20uploaded.','Image\x20upload\x20outcome\x20is\x20unknown\x20or\x20missing.\x20Resume\x20to\x20reconcile\x20the\x20original\x20upload\x20identity.','status','1311350qpBNzG'];a147_0x4a91=function(){return _0x169ea7;};return a147_0x4a91();}export function assertImageImportCapability(_0x4512a2,_0x6cf68){const _0x331e6a=a147_0x4d23;if(!_0x6cf68[_0x331e6a(0x1a3)]?.[_0x331e6a(0x195)])return;const _0x5a2ca4=_0x4512a2['imageImport'];if(!_0x5a2ca4||_0x5a2ca4[_0x331e6a(0x1af)]!==0x1||_0x5a2ca4[_0x331e6a(0x1ad)]!==_0x331e6a(0x1a4)||_0x5a2ca4[_0x331e6a(0x17e)]!==0xa00000||_0x5a2ca4[_0x331e6a(0x1c0)]!==0x2625a00||!Array[_0x331e6a(0x18f)](_0x5a2ca4[_0x331e6a(0x197)])||![_0x331e6a(0x1c9),_0x331e6a(0x1eb),_0x331e6a(0x1be)][_0x331e6a(0x187)](_0xc699ae=>_0x5a2ca4['types']['includes'](_0xc699ae)))throw Error(_0x331e6a(0x188));}export function imageObjectValue(_0x331ca3,_0x352c2b,_0x3e8d6a){const _0x260229=a147_0x4d23,_0x450d29=createHash(_0x260229(0x1a4))[_0x260229(0x1b6)](JSON[_0x260229(0x1ac)]([_0x331ca3[_0x260229(0x1b3)],_0x331ca3['appCode'],_0x331ca3[_0x260229(0x1a1)],_0x352c2b]))[_0x260229(0x1d6)](_0x260229(0x1d8)),_0x30468b={'image/png':_0x260229(0x1e0),'image/jpeg':_0x260229(0x1df),'image/gif':_0x260229(0x17c)}[_0x3e8d6a[_0x260229(0x1cd)]];if(!_0x30468b||!/^[0-9a-f]{64}$/['test'](_0x3e8d6a[_0x260229(0x1bb)])||!Number[_0x260229(0x1a5)](_0x3e8d6a[_0x260229(0x180)])||_0x3e8d6a[_0x260229(0x180)]<=0x0||_0x3e8d6a[_0x260229(0x180)]>0xa00000)throw Error(_0x260229(0x19a));const _0x4c9343=_0x3e8d6a[_0x260229(0x1bb)]+'.'+_0x30468b;return{'key':_0x260229(0x1ec)+_0x450d29+'/'+_0x4c9343,'name':_0x4c9343,'type':_0x3e8d6a[_0x260229(0x1cd)],'size':_0x3e8d6a[_0x260229(0x180)]};}export function bindImageManifest(_0x50d4d7,_0x54e533,_0x4f259b){const _0x475812=a147_0x4d23,_0xd95b16=new Map(_0x50d4d7['media']?.[_0x475812(0x194)](_0x1f9951=>[_0x1f9951['contentHash'],_0x1f9951])),_0x55aac6=new Map(_0x50d4d7[_0x475812(0x1b7)]?.[_0x475812(0x194)](_0x404600=>[_0x404600[_0x475812(0x1e4)]+':'+_0x404600[_0x475812(0x1aa)],_0x404600[_0x475812(0x1b0)]]));return{..._0x50d4d7,'rows':_0x50d4d7[_0x475812(0x19c)][_0x475812(0x194)](_0x392a5c=>({..._0x392a5c,'values':Object[_0x475812(0x1a6)](Object[_0x475812(0x1ea)](_0x392a5c[_0x475812(0x1a8)])[_0x475812(0x194)](([_0xf7e616,_0xc5b26f])=>{const _0x266282=_0x475812,_0x12f1dd=_0x55aac6['get'](_0x392a5c[_0x266282(0x1e4)]+':'+_0xf7e616);return[_0xf7e616,_0x12f1dd?_0x12f1dd[_0x266282(0x194)](_0x5e96a5=>{const _0xdfb8be=_0x266282,_0x57b2a7=_0xd95b16[_0xdfb8be(0x1de)](_0x5e96a5);if(!_0x57b2a7)throw Error(_0xdfb8be(0x1e7));const _0xa08e2d=imageObjectValue(_0x54e533,_0x4f259b,_0x57b2a7);return _0x50d4d7[_0xdfb8be(0x1db)]?.[_0xdfb8be(0x1c1)](_0xf7e616)?{'fileName':_0xa08e2d[_0xdfb8be(0x1e8)],'filePath':_0xa08e2d[_0xdfb8be(0x18a)]}:_0xa08e2d;}):_0xc5b26f];}))}))};}async function exists(_0x540d41){const _0x40e7fa=a147_0x4d23;try{return await lstat(_0x540d41),!![];}catch(_0x174553){if(_0x174553['code']===_0x40e7fa(0x17f))return![];throw _0x174553;}}function a147_0x4d23(_0x50be4f,_0x5582d6){_0x50be4f=_0x50be4f-0x17c;const _0x4a9187=a147_0x4a91();let _0x4d232d=_0x4a9187[_0x50be4f];return _0x4d232d;}export async function runImageExcelImport(_0x1d6981){const _0xf7eb21=a147_0x4d23;assertImportContract(_0x1d6981[_0xf7eb21(0x1e1)],_0x1d6981[_0xf7eb21(0x1da)],_0x1d6981[_0xf7eb21(0x1a1)]),assertImageImportCapability(_0x1d6981['contract'],_0x1d6981[_0xf7eb21(0x189)]);if(!Number[_0xf7eb21(0x1d3)](_0x1d6981[_0xf7eb21(0x18b)])||_0x1d6981['batchSize']<0x1||_0x1d6981[_0xf7eb21(0x18b)]>_0x1d6981[_0xf7eb21(0x1e1)]['maxBatchSize'])throw Error(_0xf7eb21(0x1ba));if(_0x1d6981[_0xf7eb21(0x189)]['errors'][_0xf7eb21(0x195)]||!_0x1d6981[_0xf7eb21(0x189)][_0xf7eb21(0x19c)][_0xf7eb21(0x195)])throw Error(_0xf7eb21(0x1c5));const _0x18beba=await resolveImportOutputPath(_0x1d6981[_0xf7eb21(0x1b8)]),_0x2e0a2e=await resolveImportOutputPath(_0x1d6981[_0xf7eb21(0x19f)]),_0x344568=await resolveImportOutputPath(_0x18beba+'.rows.json'),_0x17da30=await Promise[_0xf7eb21(0x1b9)]([_0x344568,_0x344568+_0xf7eb21(0x1b4),_0x344568+_0xf7eb21(0x184),..._0x1d6981[_0xf7eb21(0x1b2)]??[]][_0xf7eb21(0x194)](resolveImportOutputPath));for(const _0x5f181a of[_0x18beba,_0x2e0a2e,_0x18beba+_0xf7eb21(0x1b4),_0x18beba+_0xf7eb21(0x184)])await resolveImportOutputPath(_0x5f181a);assertImportPaths(_0x18beba,_0x2e0a2e,_0x17da30);const {contract:_0x48cf5e,manifest:_0xa62d04}=_0x1d6981,_0x104dc4=_0xa62d04[_0xf7eb21(0x1a3)]??[];if(new Set(_0x104dc4[_0xf7eb21(0x194)](_0x3cb756=>_0x3cb756[_0xf7eb21(0x1bb)]))['size']!==_0x104dc4['length']||_0x104dc4[_0xf7eb21(0x1e3)]((_0x21e607,_0x461779)=>_0x21e607+_0x461779[_0xf7eb21(0x180)],0x0)>0x32*0x400*0x400||(_0xa62d04[_0xf7eb21(0x1b7)]??[])[_0xf7eb21(0x1e3)]((_0x2e7074,_0x195bbb)=>_0x2e7074+_0x195bbb[_0xf7eb21(0x1b0)][_0xf7eb21(0x195)],0x0)>0x2710)throw Error('Invalid\x20image\x20manifest\x20limits.');for(const _0x584748 of _0x104dc4)if(_0x584748['size']!==_0x584748['bytes'][_0xf7eb21(0x195)]||createHash(_0xf7eb21(0x1a4))['update'](_0x584748[_0xf7eb21(0x1c2)])[_0xf7eb21(0x1d6)](_0xf7eb21(0x1d8))!==_0x584748[_0xf7eb21(0x1bb)])throw Error(_0xf7eb21(0x1e2));previewImportBatchCount(bindImageManifest(_0xa62d04,_0x48cf5e,'00000000-0000-4000-8000-000000000000'),_0x48cf5e,_0x1d6981['batchSize']);const _0xa34217={'appCode':_0x1d6981[_0xf7eb21(0x1da)],'datasetCode':_0x1d6981[_0xf7eb21(0x1a1)],'runtimeDomain':_0x1d6981['runtimeDomain'],'actorId':_0x48cf5e[_0xf7eb21(0x1b3)],'fileHash':_0xa62d04[_0xf7eb21(0x1a7)],'mappingHash':_0xa62d04[_0xf7eb21(0x19b)],'schemaHash':_0xa62d04[_0xf7eb21(0x182)],'remoteSchemaHash':_0x48cf5e[_0xf7eb21(0x1b5)],'strategy':_0x48cf5e[_0xf7eb21(0x1bd)],'schemaVersion':_0x48cf5e[_0xf7eb21(0x1dd)],'batchSize':_0x1d6981[_0xf7eb21(0x18b)],'maxBatchBytes':_0x48cf5e[_0xf7eb21(0x1ce)],'sheet':_0xa62d04[_0xf7eb21(0x186)],'parserVersion':_0xa62d04[_0xf7eb21(0x1d1)],'imageFields':_0xa62d04[_0xf7eb21(0x1cc)],'cells':_0xa62d04[_0xf7eb21(0x1b7)],..._0xa62d04[_0xf7eb21(0x1db)]?.[_0xf7eb21(0x195)]?{'uploadFields':_0xa62d04[_0xf7eb21(0x1db)]}:{},'media':_0x104dc4['map'](({contentHash:_0x2179cf,type:_0x1da4c2,size:_0x237a45})=>({'contentHash':_0x2179cf,'type':_0x1da4c2,'size':_0x237a45})),'rows':_0xa62d04[_0xf7eb21(0x19c)]},_0x29823d=await acquireLock(_0x18beba);try{let _0x57b7b5;if(_0x1d6981[_0xf7eb21(0x1b1)]){try{_0x57b7b5=JSON[_0xf7eb21(0x199)](await readFile(_0x18beba,'utf8'));}catch{throw Error(_0xf7eb21(0x18e));}if(_0x57b7b5[_0xf7eb21(0x1af)]!==0x3||!/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/[_0xf7eb21(0x1a9)](_0x57b7b5[_0xf7eb21(0x1bc)])||canonical(_0x57b7b5[_0xf7eb21(0x1c4)])!==canonical(_0xa34217)||![_0xf7eb21(0x1a3),_0xf7eb21(0x18c),_0xf7eb21(0x196),_0xf7eb21(0x1d9)][_0xf7eb21(0x1c1)](_0x57b7b5[_0xf7eb21(0x19e)])||!Array[_0xf7eb21(0x18f)](_0x57b7b5['media'])||_0x57b7b5[_0xf7eb21(0x1a3)]['length']!==_0x104dc4[_0xf7eb21(0x195)]||_0x57b7b5[_0xf7eb21(0x1a3)][_0xf7eb21(0x17d)]((_0x34d296,_0x31c7a4)=>_0x34d296['hash']!==_0x104dc4[_0x31c7a4]['contentHash']||![_0xf7eb21(0x185),_0xf7eb21(0x1d5)]['includes'](_0x34d296['status'])))throw Error(_0xf7eb21(0x181));if([_0xf7eb21(0x196),_0xf7eb21(0x1d9)][_0xf7eb21(0x1c1)](_0x57b7b5[_0xf7eb21(0x19e)])&&!await exists(_0x344568))throw Error(_0xf7eb21(0x1a0));if(_0x57b7b5[_0xf7eb21(0x19e)]==='media'&&await exists(_0x344568))throw Error(_0xf7eb21(0x1cb));}else{if(await exists(_0x18beba)||await exists(_0x344568))throw Error(_0xf7eb21(0x183));_0x57b7b5={'version':0x3,'importId':randomUUID(),'binding':_0xa34217,'phase':'media','media':_0x104dc4[_0xf7eb21(0x194)](_0x49a20c=>({'hash':_0x49a20c[_0xf7eb21(0x1bb)],'status':_0xf7eb21(0x185)}))},await saveImportJson(_0x18beba,_0x57b7b5);}const _0x4d2360=(_0x38bc5a,_0x5a9c5a)=>{const _0x299cf7=_0xf7eb21;if(!_0x38bc5a||_0x38bc5a[_0x299cf7(0x1bb)]!==_0x5a9c5a[_0x299cf7(0x1bb)])throw Error(_0x299cf7(0x1c3));if(_0x38bc5a[_0x299cf7(0x1c7)]===_0x299cf7(0x1d2))return undefined;const _0x46af19=imageObjectValue(_0x48cf5e,_0x57b7b5[_0x299cf7(0x1bc)],_0x5a9c5a);if(_0x38bc5a[_0x299cf7(0x1c7)]!==_0x299cf7(0x1d5)||_0x38bc5a[_0x299cf7(0x1e9)]!==_0x46af19[_0x299cf7(0x18a)]||_0x38bc5a['fileName']!==_0x46af19[_0x299cf7(0x1e8)]||_0x38bc5a['type']!==_0x46af19[_0x299cf7(0x1cd)]||_0x38bc5a[_0x299cf7(0x180)]!==_0x46af19[_0x299cf7(0x180)])throw Error(_0x299cf7(0x192));return _0x46af19;};for(let _0x257cd5=0x0;_0x257cd5<_0x104dc4[_0xf7eb21(0x195)];_0x257cd5++){const _0x300f94=_0x104dc4[_0x257cd5],_0x4f2930=_0x57b7b5[_0xf7eb21(0x1a3)][_0x257cd5],_0x49347a=imageObjectValue(_0x48cf5e,_0x57b7b5['importId'],_0x300f94);if(_0x4f2930['status']===_0xf7eb21(0x1d5)&&canonical(_0x4f2930[_0xf7eb21(0x193)])!==canonical(_0x49347a))throw Error('Completed\x20image\x20checkpoint\x20value\x20changed.');let _0x3980c6;if(_0x1d6981[_0xf7eb21(0x1b1)]||_0x4f2930[_0xf7eb21(0x1c7)]==='succeeded')_0x3980c6=_0x4d2360(await _0x1d6981[_0xf7eb21(0x198)]['readback'](_0x57b7b5[_0xf7eb21(0x1bc)],_0x300f94),_0x300f94);if(!_0x3980c6&&_0x4f2930[_0xf7eb21(0x1c7)]===_0xf7eb21(0x1d5))throw Error(_0xf7eb21(0x1bf));if(!_0x3980c6){try{_0x4d2360(await _0x1d6981[_0xf7eb21(0x198)][_0xf7eb21(0x1dc)](_0x57b7b5['importId'],_0x300f94),_0x300f94);}catch(_0x378d89){_0x3980c6=_0x4d2360(await _0x1d6981[_0xf7eb21(0x198)][_0xf7eb21(0x18d)](_0x57b7b5[_0xf7eb21(0x1bc)],_0x300f94),_0x300f94);if(!_0x3980c6)throw Error(_0xf7eb21(0x1c6));}if(!_0x3980c6)_0x3980c6=_0x4d2360(await _0x1d6981['imageApi'][_0xf7eb21(0x18d)](_0x57b7b5[_0xf7eb21(0x1bc)],_0x300f94),_0x300f94);if(!_0x3980c6)throw Error(_0xf7eb21(0x19d));}_0x4f2930[_0xf7eb21(0x1c7)]=_0xf7eb21(0x1d5),_0x4f2930[_0xf7eb21(0x193)]=_0x3980c6,await saveImportJson(_0x18beba,_0x57b7b5);}const _0x551ee0=bindImageManifest(_0xa62d04,_0x48cf5e,_0x57b7b5['importId']),_0x55267c=_0x57b7b5[_0xf7eb21(0x19e)]===_0xf7eb21(0x18c)?await exists(_0x344568):_0x57b7b5[_0xf7eb21(0x19e)]!==_0xf7eb21(0x1a3);_0x57b7b5[_0xf7eb21(0x19e)]==='media'&&(_0x57b7b5[_0xf7eb21(0x19e)]='rows-preparing',await saveImportJson(_0x18beba,_0x57b7b5));const _0x2f6d6d={..._0x1d6981,'manifest':_0x551ee0,'checkpoint':_0x344568,'report':_0x2e0a2e,'resume':_0x55267c,'onCheckpointReady':async()=>{const _0x515aa9=_0xf7eb21;_0x57b7b5[_0x515aa9(0x19e)]=_0x515aa9(0x196),await saveImportJson(_0x18beba,_0x57b7b5);}},_0x11d3db=_0x48cf5e['schemaVersion']===0x2?await runAutoIdExcelImport({..._0x2f6d6d,'reconcileImageConflicts':_0x1d6981[_0xf7eb21(0x1b1)]===!![]&&_0x55267c}):await runExcelImport(_0x2f6d6d);return _0x57b7b5[_0xf7eb21(0x19e)]=_0xf7eb21(0x1d9),await saveImportJson(_0x18beba,_0x57b7b5),{..._0x11d3db,'checkpoint':_0x18beba,'imageCount':_0xa62d04[_0xf7eb21(0x1b7)]?.[_0xf7eb21(0x1e3)]((_0x4ebbf0,_0x15a662)=>_0x4ebbf0+_0x15a662['hashes'][_0xf7eb21(0x195)],0x0)??0x0,'uniqueImages':_0x104dc4[_0xf7eb21(0x195)]};}finally{await _0x29823d();}}
1
+ (function(_0x2e8b3e,_0x2896dd){const _0x358c8a=a147_0x32e0,_0x15c6c5=_0x2e8b3e();while(!![]){try{const _0x5cb8b5=parseInt(_0x358c8a(0xc5))/0x1*(-parseInt(_0x358c8a(0xae))/0x2)+-parseInt(_0x358c8a(0xa1))/0x3*(parseInt(_0x358c8a(0xc8))/0x4)+parseInt(_0x358c8a(0x9a))/0x5*(parseInt(_0x358c8a(0x9d))/0x6)+parseInt(_0x358c8a(0xcc))/0x7+-parseInt(_0x358c8a(0xf0))/0x8+-parseInt(_0x358c8a(0xe7))/0x9*(parseInt(_0x358c8a(0xec))/0xa)+parseInt(_0x358c8a(0xe5))/0xb;if(_0x5cb8b5===_0x2896dd)break;else _0x15c6c5['push'](_0x15c6c5['shift']());}catch(_0x3635cb){_0x15c6c5['push'](_0x15c6c5['shift']());}}}(a147_0x1995,0xc163b));import{randomUUID,createHash}from'node:crypto';import{lstat,readFile}from'node:fs/promises';import{acquireLock,assertImportContract,assertImportPaths,canonical,resolveImportOutputPath,runExcelImport,saveImportJson}from'./runner.js';function a147_0x1995(){const _0x280bd8=['missing','update','all','parse','ENOENT','resume','types','rows-preparing','contract','strategy','fileName','completed','Uploaded\x20image\x20is\x20not\x20visible.\x20Resume\x20to\x20reconcile\x20before\x20continuing.','uploadFields','contentHash','35tcnFhx','binding','00000000-0000-4000-8000-000000000000','788694iqKTMC','actorId','Invalid\x20image\x20media\x20descriptor.','image/jpeg','6WLlTBh','fromEntries','Invalid\x20image\x20manifest\x20limits.','appCode','Unexpected\x20row\x20checkpoint\x20during\x20image\x20upload\x20phase.','report','runtimeDomain','type','imageImport','Row\x20phase\x20started\x20but\x20the\x20row\x20checkpoint\x20is\x20missing;\x20stop\x20to\x20avoid\x20duplicate\x20records.','stringify','name','status','1046AMscZL','imageFields','version','phase','filePath','image/png','jpg','Import\x20checkpoint\x20already\x20exists;\x20use\x20--resume.','rowNumber','isSafeInteger','schemaHash','hash','digest','key','includes','uploadId','hex','fileHash','readback','values','utf8','map','inputPaths','538EmaoEx','test','imageApi','187936fbYtOW','sheet','Completed\x20image\x20checkpoint\x20value\x20changed.','datasetCode','1217216ZCwAWy','bytes','value','rows','batchSize','reduce','mappingHash','hashes','importId','The\x20server\x20does\x20not\x20support\x20this\x20image\x20import\x20capability.','maxBatchBytes','Image\x20cell\x20references\x20missing\x20media.','size','sha256','manifest','Previously\x20uploaded\x20image\x20is\x20missing;\x20automatic\x20repair\x20is\x20disabled.','isArray','rows-started','schemaFingerprint','succeeded','Invalid\x20image\x20readback\x20digest.','Image\x20checkpoint\x20does\x20not\x20match\x20the\x20source,\x20target\x20or\x20identity.','code','length','png','24000394rPSThY','media','12070431FEhHAk','entries','maxPixels','isInteger','schemaVersion','10pUitMQ','Invalid\x20import\x20batch\x20size.','imageCells','.lock','6138088GZEjbr','get','errors'];a147_0x1995=function(){return _0x280bd8;};return a147_0x1995();}import{runAutoIdExcelImport}from'./auto-id-runner.js';import{previewImportBatchCount}from'./preview.js';export function assertImageImportCapability(_0x35b214,_0x350ed7){const _0x3ca3a8=a147_0x32e0;if(!_0x350ed7[_0x3ca3a8(0xe6)]?.['length'])return;const _0xc94b1=_0x35b214[_0x3ca3a8(0xa9)];if(!_0xc94b1||_0xc94b1[_0x3ca3a8(0xb0)]!==0x1||_0xc94b1[_0x3ca3a8(0xbd)]!=='sha256'||_0xc94b1['maxFileBytes']!==0xa00000||_0xc94b1[_0x3ca3a8(0xe9)]!==0x2625a00||!Array[_0x3ca3a8(0xdc)](_0xc94b1['types'])||![_0x3ca3a8(0xb3),_0x3ca3a8(0xa0),'image/gif']['every'](_0x2bd344=>_0xc94b1[_0x3ca3a8(0x91)]['includes'](_0x2bd344)))throw Error(_0x3ca3a8(0xd5));}export function imageObjectValue(_0xfbd4f6,_0x3a0a6a,_0x5de788){const _0x263375=a147_0x32e0,_0x473d7b=createHash(_0x263375(0xd9))[_0x263375(0xf4)](JSON[_0x263375(0xab)]([_0xfbd4f6[_0x263375(0x9e)],_0xfbd4f6[_0x263375(0xa4)],_0xfbd4f6[_0x263375(0xcb)],_0x3a0a6a]))['digest']('hex'),_0x44bf22={'image/png':_0x263375(0xe4),'image/jpeg':_0x263375(0xb4),'image/gif':'gif'}[_0x5de788[_0x263375(0xa8)]];if(!_0x44bf22||!/^[0-9a-f]{64}$/[_0x263375(0xc6)](_0x5de788[_0x263375(0x99)])||!Number[_0x263375(0xb7)](_0x5de788[_0x263375(0xd8)])||_0x5de788['size']<=0x0||_0x5de788[_0x263375(0xd8)]>0xa00000)throw Error(_0x263375(0x9f));const _0x5a2afb=_0x5de788[_0x263375(0x99)]+'.'+_0x44bf22;return{'key':'dataset-import/'+_0x473d7b+'/'+_0x5a2afb,'name':_0x5a2afb,'type':_0x5de788[_0x263375(0xa8)],'size':_0x5de788[_0x263375(0xd8)]};}function a147_0x32e0(_0x3147d0,_0x379512){_0x3147d0=_0x3147d0-0x8f;const _0x1995d2=a147_0x1995();let _0x32e0ce=_0x1995d2[_0x3147d0];return _0x32e0ce;}export function bindImageManifest(_0x4e91c3,_0x2a5c78,_0x528cfe){const _0x16a0b3=a147_0x32e0,_0x5eed98=new Map(_0x4e91c3[_0x16a0b3(0xe6)]?.[_0x16a0b3(0xc3)](_0x243549=>[_0x243549['contentHash'],_0x243549])),_0x277d71=new Map(_0x4e91c3[_0x16a0b3(0xee)]?.[_0x16a0b3(0xc3)](_0x5ace40=>[_0x5ace40[_0x16a0b3(0xb6)]+':'+_0x5ace40['field'],_0x5ace40[_0x16a0b3(0xd3)]]));return{..._0x4e91c3,'rows':_0x4e91c3[_0x16a0b3(0xcf)][_0x16a0b3(0xc3)](_0x1e9160=>({..._0x1e9160,'values':Object[_0x16a0b3(0xa2)](Object[_0x16a0b3(0xe8)](_0x1e9160[_0x16a0b3(0xc1)])[_0x16a0b3(0xc3)](([_0x31bb1d,_0x585c17])=>{const _0x37c415=_0x16a0b3,_0x1652cb=_0x277d71[_0x37c415(0xf1)](_0x1e9160[_0x37c415(0xb6)]+':'+_0x31bb1d);return[_0x31bb1d,_0x1652cb?_0x1652cb['map'](_0x42108e=>{const _0x10b589=_0x37c415,_0x2b7e3a=_0x5eed98[_0x10b589(0xf1)](_0x42108e);if(!_0x2b7e3a)throw Error(_0x10b589(0xd7));const _0x4b802d=imageObjectValue(_0x2a5c78,_0x528cfe,_0x2b7e3a);return _0x4e91c3[_0x10b589(0x98)]?.['includes'](_0x31bb1d)?{'fileName':_0x4b802d[_0x10b589(0xac)],'filePath':_0x4b802d[_0x10b589(0xbb)]}:_0x4b802d;}):_0x585c17];}))}))};}async function exists(_0x4e4059){const _0x511b75=a147_0x32e0;try{return await lstat(_0x4e4059),!![];}catch(_0x3bd060){if(_0x3bd060[_0x511b75(0xe2)]===_0x511b75(0x8f))return![];throw _0x3bd060;}}export async function runImageExcelImport(_0x12ffd8){const _0x1bfc64=a147_0x32e0;assertImportContract(_0x12ffd8[_0x1bfc64(0x93)],_0x12ffd8[_0x1bfc64(0xa4)],_0x12ffd8[_0x1bfc64(0xcb)]),assertImageImportCapability(_0x12ffd8[_0x1bfc64(0x93)],_0x12ffd8['manifest']);if(!Number[_0x1bfc64(0xea)](_0x12ffd8[_0x1bfc64(0xd0)])||_0x12ffd8[_0x1bfc64(0xd0)]<0x1||_0x12ffd8[_0x1bfc64(0xd0)]>_0x12ffd8[_0x1bfc64(0x93)]['maxBatchSize'])throw Error(_0x1bfc64(0xed));if(_0x12ffd8[_0x1bfc64(0xda)][_0x1bfc64(0xf2)][_0x1bfc64(0xe3)]||!_0x12ffd8['manifest'][_0x1bfc64(0xcf)][_0x1bfc64(0xe3)])throw Error('Excel\x20contains\x20invalid\x20or\x20no\x20data\x20rows;\x20no\x20images\x20were\x20uploaded.');const _0x15491d=await resolveImportOutputPath(_0x12ffd8['checkpoint']),_0x13dc24=await resolveImportOutputPath(_0x12ffd8[_0x1bfc64(0xa6)]),_0xb74edb=await resolveImportOutputPath(_0x15491d+'.rows.json'),_0x25dd98=await Promise[_0x1bfc64(0xf5)]([_0xb74edb,_0xb74edb+_0x1bfc64(0xef),_0xb74edb+'.lock.recovery',..._0x12ffd8[_0x1bfc64(0xc4)]??[]][_0x1bfc64(0xc3)](resolveImportOutputPath));for(const _0x13fd47 of[_0x15491d,_0x13dc24,_0x15491d+_0x1bfc64(0xef),_0x15491d+'.lock.recovery'])await resolveImportOutputPath(_0x13fd47);assertImportPaths(_0x15491d,_0x13dc24,_0x25dd98);const {contract:_0x4b51f1,manifest:_0x391aa3}=_0x12ffd8,_0xeb761e=_0x391aa3[_0x1bfc64(0xe6)]??[];if(new Set(_0xeb761e['map'](_0x22a8c6=>_0x22a8c6[_0x1bfc64(0x99)]))[_0x1bfc64(0xd8)]!==_0xeb761e[_0x1bfc64(0xe3)]||_0xeb761e['reduce']((_0x5360f7,_0x3c7140)=>_0x5360f7+_0x3c7140[_0x1bfc64(0xd8)],0x0)>0x32*0x400*0x400||(_0x391aa3['imageCells']??[])['reduce']((_0xf2c99,_0x615190)=>_0xf2c99+_0x615190[_0x1bfc64(0xd3)]['length'],0x0)>0x2710)throw Error(_0x1bfc64(0xa3));for(const _0x1a34ec of _0xeb761e)if(_0x1a34ec[_0x1bfc64(0xd8)]!==_0x1a34ec[_0x1bfc64(0xcd)][_0x1bfc64(0xe3)]||createHash(_0x1bfc64(0xd9))[_0x1bfc64(0xf4)](_0x1a34ec[_0x1bfc64(0xcd)])[_0x1bfc64(0xba)](_0x1bfc64(0xbe))!==_0x1a34ec[_0x1bfc64(0x99)])throw Error('Image\x20media\x20bytes\x20changed.');previewImportBatchCount(bindImageManifest(_0x391aa3,_0x4b51f1,_0x1bfc64(0x9c)),_0x4b51f1,_0x12ffd8[_0x1bfc64(0xd0)]);const _0x3a5b4f={'appCode':_0x12ffd8['appCode'],'datasetCode':_0x12ffd8[_0x1bfc64(0xcb)],'runtimeDomain':_0x12ffd8[_0x1bfc64(0xa7)],'actorId':_0x4b51f1[_0x1bfc64(0x9e)],'fileHash':_0x391aa3[_0x1bfc64(0xbf)],'mappingHash':_0x391aa3[_0x1bfc64(0xd2)],'schemaHash':_0x391aa3[_0x1bfc64(0xb8)],'remoteSchemaHash':_0x4b51f1[_0x1bfc64(0xde)],'strategy':_0x4b51f1[_0x1bfc64(0x94)],'schemaVersion':_0x4b51f1[_0x1bfc64(0xeb)],'batchSize':_0x12ffd8[_0x1bfc64(0xd0)],'maxBatchBytes':_0x4b51f1[_0x1bfc64(0xd6)],'sheet':_0x391aa3[_0x1bfc64(0xc9)],'parserVersion':_0x391aa3['parserVersion'],'imageFields':_0x391aa3[_0x1bfc64(0xaf)],'cells':_0x391aa3[_0x1bfc64(0xee)],..._0x391aa3[_0x1bfc64(0x98)]?.[_0x1bfc64(0xe3)]?{'uploadFields':_0x391aa3[_0x1bfc64(0x98)]}:{},'media':_0xeb761e[_0x1bfc64(0xc3)](({contentHash:_0x21ea31,type:_0x4b363a,size:_0x34d6e9})=>({'contentHash':_0x21ea31,'type':_0x4b363a,'size':_0x34d6e9})),'rows':_0x391aa3['rows']},_0x58b06a=await acquireLock(_0x15491d);try{let _0x56bda4;if(_0x12ffd8[_0x1bfc64(0x90)]){try{_0x56bda4=JSON[_0x1bfc64(0xf6)](await readFile(_0x15491d,_0x1bfc64(0xc2)));}catch{throw Error('Cannot\x20read\x20the\x20image\x20import\x20checkpoint.');}if(_0x56bda4[_0x1bfc64(0xb0)]!==0x3||!/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/['test'](_0x56bda4[_0x1bfc64(0xd4)])||canonical(_0x56bda4[_0x1bfc64(0x9b)])!==canonical(_0x3a5b4f)||![_0x1bfc64(0xe6),_0x1bfc64(0x92),_0x1bfc64(0xdd),'completed'][_0x1bfc64(0xbc)](_0x56bda4['phase'])||!Array[_0x1bfc64(0xdc)](_0x56bda4[_0x1bfc64(0xe6)])||_0x56bda4[_0x1bfc64(0xe6)][_0x1bfc64(0xe3)]!==_0xeb761e[_0x1bfc64(0xe3)]||_0x56bda4['media']['some']((_0x28cc6a,_0xf78389)=>_0x28cc6a[_0x1bfc64(0xb9)]!==_0xeb761e[_0xf78389][_0x1bfc64(0x99)]||!['pending',_0x1bfc64(0xdf)]['includes'](_0x28cc6a[_0x1bfc64(0xad)])))throw Error(_0x1bfc64(0xe1));if([_0x1bfc64(0xdd),_0x1bfc64(0x96)]['includes'](_0x56bda4[_0x1bfc64(0xb1)])&&!await exists(_0xb74edb))throw Error(_0x1bfc64(0xaa));if(_0x56bda4[_0x1bfc64(0xb1)]===_0x1bfc64(0xe6)&&await exists(_0xb74edb))throw Error(_0x1bfc64(0xa5));}else{if(await exists(_0x15491d)||await exists(_0xb74edb))throw Error(_0x1bfc64(0xb5));_0x56bda4={'version':0x3,'importId':randomUUID(),'binding':_0x3a5b4f,'phase':_0x1bfc64(0xe6),'media':_0xeb761e[_0x1bfc64(0xc3)](_0x201928=>({'hash':_0x201928['contentHash'],'status':'pending'}))},await saveImportJson(_0x15491d,_0x56bda4);}const _0x44bb7a=(_0x4cb897,_0x154279)=>{const _0x494ed0=_0x1bfc64;if(!_0x4cb897||_0x4cb897[_0x494ed0(0x99)]!==_0x154279[_0x494ed0(0x99)])throw Error(_0x494ed0(0xe0));if(_0x4cb897[_0x494ed0(0xad)]===_0x494ed0(0xf3))return undefined;const _0x15e196=imageObjectValue(_0x4b51f1,_0x56bda4[_0x494ed0(0xd4)],_0x154279);if(_0x4cb897[_0x494ed0(0xad)]!==_0x494ed0(0xdf)||_0x4cb897[_0x494ed0(0xb2)]!==_0x15e196['key']||_0x4cb897[_0x494ed0(0x95)]!==_0x15e196[_0x494ed0(0xac)]||_0x4cb897['type']!==_0x15e196[_0x494ed0(0xa8)]||_0x4cb897[_0x494ed0(0xd8)]!==_0x15e196['size'])throw Error('Uploaded\x20image\x20metadata\x20changed\x20or\x20is\x20corrupt.');return _0x15e196;};for(let _0x435e4d=0x0;_0x435e4d<_0xeb761e[_0x1bfc64(0xe3)];_0x435e4d++){const _0x3cccf6=_0xeb761e[_0x435e4d],_0x39fba6=_0x56bda4[_0x1bfc64(0xe6)][_0x435e4d],_0x2346cd=imageObjectValue(_0x4b51f1,_0x56bda4[_0x1bfc64(0xd4)],_0x3cccf6);if(_0x39fba6[_0x1bfc64(0xad)]==='succeeded'&&canonical(_0x39fba6[_0x1bfc64(0xce)])!==canonical(_0x2346cd))throw Error(_0x1bfc64(0xca));let _0x1a86b9;if(_0x12ffd8[_0x1bfc64(0x90)]||_0x39fba6['status']===_0x1bfc64(0xdf))_0x1a86b9=_0x44bb7a(await _0x12ffd8[_0x1bfc64(0xc7)][_0x1bfc64(0xc0)](_0x56bda4[_0x1bfc64(0xd4)],_0x3cccf6),_0x3cccf6);if(!_0x1a86b9&&_0x39fba6['status']==='succeeded')throw Error(_0x1bfc64(0xdb));if(!_0x1a86b9){try{_0x44bb7a(await _0x12ffd8[_0x1bfc64(0xc7)]['upload'](_0x56bda4['importId'],_0x3cccf6),_0x3cccf6);}catch(_0x1207b9){_0x1a86b9=_0x44bb7a(await _0x12ffd8[_0x1bfc64(0xc7)][_0x1bfc64(0xc0)](_0x56bda4[_0x1bfc64(0xd4)],_0x3cccf6),_0x3cccf6);if(!_0x1a86b9)throw Error('Image\x20upload\x20outcome\x20is\x20unknown\x20or\x20missing.\x20Resume\x20to\x20reconcile\x20the\x20original\x20upload\x20identity.');}if(!_0x1a86b9)_0x1a86b9=_0x44bb7a(await _0x12ffd8[_0x1bfc64(0xc7)]['readback'](_0x56bda4[_0x1bfc64(0xd4)],_0x3cccf6),_0x3cccf6);if(!_0x1a86b9)throw Error(_0x1bfc64(0x97));}_0x39fba6[_0x1bfc64(0xad)]=_0x1bfc64(0xdf),_0x39fba6[_0x1bfc64(0xce)]=_0x1a86b9,await saveImportJson(_0x15491d,_0x56bda4);}const _0x4ffd25=bindImageManifest(_0x391aa3,_0x4b51f1,_0x56bda4[_0x1bfc64(0xd4)]),_0x11b9a0=_0x56bda4[_0x1bfc64(0xb1)]===_0x1bfc64(0x92)?await exists(_0xb74edb):_0x56bda4[_0x1bfc64(0xb1)]!==_0x1bfc64(0xe6);_0x56bda4[_0x1bfc64(0xb1)]===_0x1bfc64(0xe6)&&(_0x56bda4[_0x1bfc64(0xb1)]='rows-preparing',await saveImportJson(_0x15491d,_0x56bda4));const _0x5ba374={..._0x12ffd8,'manifest':_0x4ffd25,'checkpoint':_0xb74edb,'report':_0x13dc24,'resume':_0x11b9a0,'onCheckpointReady':async()=>{const _0x41c9d1=_0x1bfc64;_0x56bda4['phase']=_0x41c9d1(0xdd),await saveImportJson(_0x15491d,_0x56bda4);}},_0x78f8ac=_0x4b51f1['schemaVersion']===0x2?await runAutoIdExcelImport({..._0x5ba374,'reconcileImageConflicts':_0x12ffd8[_0x1bfc64(0x90)]===!![]&&_0x11b9a0}):await runExcelImport(_0x5ba374);return _0x56bda4['phase']='completed',await saveImportJson(_0x15491d,_0x56bda4),{..._0x78f8ac,'checkpoint':_0x15491d,'imageCount':_0x391aa3[_0x1bfc64(0xee)]?.[_0x1bfc64(0xd1)]((_0x3e1511,_0xb456a9)=>_0x3e1511+_0xb456a9['hashes']['length'],0x0)??0x0,'uniqueImages':_0xeb761e[_0x1bfc64(0xe3)]};}finally{await _0x58b06a();}}
@@ -1 +1 @@
1
- function a148_0x1721(_0x4b8d8c,_0x2e8428){_0x4b8d8c=_0x4b8d8c-0x99;const _0x58d795=a148_0x58d7();let _0x172120=_0x58d795[_0x4b8d8c];return _0x172120;}(function(_0x2ef2d1,_0x51417f){const _0x8f81fb=a148_0x1721,_0x17d2a7=_0x2ef2d1();while(!![]){try{const _0x1436dc=parseInt(_0x8f81fb(0xaa))/0x1*(parseInt(_0x8f81fb(0xad))/0x2)+-parseInt(_0x8f81fb(0xa0))/0x3*(parseInt(_0x8f81fb(0xa5))/0x4)+-parseInt(_0x8f81fb(0x9f))/0x5+-parseInt(_0x8f81fb(0xac))/0x6*(-parseInt(_0x8f81fb(0x9e))/0x7)+parseInt(_0x8f81fb(0x9d))/0x8+-parseInt(_0x8f81fb(0xa3))/0x9+parseInt(_0x8f81fb(0xae))/0xa;if(_0x1436dc===_0x51417f)break;else _0x17d2a7['push'](_0x17d2a7['shift']());}catch(_0x1831a6){_0x17d2a7['push'](_0x17d2a7['shift']());}}}(a148_0x58d7,0x9cb8a));function a148_0x58d7(){const _0x38b325=['22554BDRjES','2JedkET','8677430UZQOSD','Dataset\x20metadata\x20does\x20not\x20match\x20the\x20requested\x20target.','isArray','source','length','Dataset\x20source\x20metadata\x20is\x20inconsistent.','filter','4584368sWadFU','329RSrggY','4291735zAVSlf','567348veyhJk','sourceType','modelCode','3282273wXhGdz','code','16RGnMNG','Dataset\x20metadata\x20is\x20missing.','appCode','dataset','string','1003976ISgSrV','datasetCode'];a148_0x58d7=function(){return _0x38b325;};return a148_0x58d7();}export function assertDatasetImportTarget(_0x50ba81,_0x4082f7,_0x5ac602){const _0x260297=a148_0x1721;if(!_0x50ba81||typeof _0x50ba81!=='object'||Array[_0x260297(0xb0)](_0x50ba81))throw Error(_0x260297(0xa6));const _0x5054eb=[_0x50ba81[_0x260297(0xa4)],_0x50ba81[_0x260297(0xa2)],_0x50ba81['dataset']?.[_0x260297(0xab)]][_0x260297(0x9c)](_0x3f6df1=>_0x3f6df1!=null);if(!_0x5054eb[_0x260297(0x9a)]||_0x5054eb['some'](_0x32112a=>_0x32112a!==_0x5ac602)||_0x50ba81['appCode']!=null&&_0x50ba81[_0x260297(0xa7)]!==_0x4082f7||_0x50ba81[_0x260297(0xa8)]?.['appCode']!=null&&_0x50ba81[_0x260297(0xa8)]['appCode']!==_0x4082f7)throw Error(_0x260297(0xaf));const _0x5eecb8=[_0x50ba81[_0x260297(0x99)],_0x50ba81[_0x260297(0xa8)]?.[_0x260297(0xa1)]][_0x260297(0x9c)](_0x2f4248=>_0x2f4248!=null);if(_0x5eecb8['some'](_0x62d408=>typeof _0x62d408!==_0x260297(0xa9)||_0x62d408!==_0x5eecb8[0x0]))throw Error(_0x260297(0x9b));return _0x5eecb8[0x0];}
1
+ function a148_0x3e03(){const _0xf362de=['50WhnROb','398kMahVU','dataset','some','375NIpkEr','2702700NwHmmD','datasetCode','465553FDKOdo','isArray','3671aovtKh','1629088iXpmhl','6FWFjUW','appCode','Dataset\x20source\x20metadata\x20is\x20inconsistent.','4108rTikbf','1216135yPTmlv','654227KskqCr','object','code','sourceType','modelCode','filter'];a148_0x3e03=function(){return _0xf362de;};return a148_0x3e03();}function a148_0x584b(_0x3ab2d8,_0x29aa65){_0x3ab2d8=_0x3ab2d8-0x1ab;const _0x3e03a5=a148_0x3e03();let _0x584b35=_0x3e03a5[_0x3ab2d8];return _0x584b35;}(function(_0x3078d9,_0x4c8c57){const _0x2e0d1e=a148_0x584b,_0x56a3ec=_0x3078d9();while(!![]){try{const _0x530884=parseInt(_0x2e0d1e(0x1ac))/0x1*(parseInt(_0x2e0d1e(0x1ba))/0x2)+-parseInt(_0x2e0d1e(0x1bd))/0x3*(-parseInt(_0x2e0d1e(0x1b1))/0x4)+-parseInt(_0x2e0d1e(0x1b2))/0x5*(parseInt(_0x2e0d1e(0x1ae))/0x6)+parseInt(_0x2e0d1e(0x1b3))/0x7+-parseInt(_0x2e0d1e(0x1ad))/0x8+-parseInt(_0x2e0d1e(0x1be))/0x9+-parseInt(_0x2e0d1e(0x1b9))/0xa*(-parseInt(_0x2e0d1e(0x1c0))/0xb);if(_0x530884===_0x4c8c57)break;else _0x56a3ec['push'](_0x56a3ec['shift']());}catch(_0x1c6dee){_0x56a3ec['push'](_0x56a3ec['shift']());}}}(a148_0x3e03,0x65c31));export function assertDatasetImportTarget(_0xa35c5c,_0x545420,_0x5bb289){const _0x1e7390=a148_0x584b;if(!_0xa35c5c||typeof _0xa35c5c!==_0x1e7390(0x1b4)||Array[_0x1e7390(0x1ab)](_0xa35c5c))throw Error('Dataset\x20metadata\x20is\x20missing.');const _0x5f2e9d=[_0xa35c5c[_0x1e7390(0x1b5)],_0xa35c5c[_0x1e7390(0x1b7)],_0xa35c5c['dataset']?.[_0x1e7390(0x1bf)]][_0x1e7390(0x1b8)](_0x1106a2=>_0x1106a2!=null);if(!_0x5f2e9d['length']||_0x5f2e9d[_0x1e7390(0x1bc)](_0xa3cb9a=>_0xa3cb9a!==_0x5bb289)||_0xa35c5c['appCode']!=null&&_0xa35c5c[_0x1e7390(0x1af)]!==_0x545420||_0xa35c5c[_0x1e7390(0x1bb)]?.[_0x1e7390(0x1af)]!=null&&_0xa35c5c[_0x1e7390(0x1bb)][_0x1e7390(0x1af)]!==_0x545420)throw Error('Dataset\x20metadata\x20does\x20not\x20match\x20the\x20requested\x20target.');const _0x7ebca7=[_0xa35c5c['source'],_0xa35c5c['dataset']?.[_0x1e7390(0x1b6)]]['filter'](_0xa5d72b=>_0xa5d72b!=null);if(_0x7ebca7[_0x1e7390(0x1bc)](_0x3abaf2=>typeof _0x3abaf2!=='string'||_0x3abaf2!==_0x7ebca7[0x0]))throw Error(_0x1e7390(0x1b0));return _0x7ebca7[0x0];}
@@ -1 +1 @@
1
- (function(_0x470999,_0x871543){const _0x146315=a149_0x25b8,_0x4a060d=_0x470999();while(!![]){try{const _0x5d162d=-parseInt(_0x146315(0x160))/0x1*(-parseInt(_0x146315(0x163))/0x2)+-parseInt(_0x146315(0x156))/0x3*(parseInt(_0x146315(0x15a))/0x4)+-parseInt(_0x146315(0x15f))/0x5+parseInt(_0x146315(0x161))/0x6+-parseInt(_0x146315(0x165))/0x7*(parseInt(_0x146315(0x152))/0x8)+-parseInt(_0x146315(0x164))/0x9+parseInt(_0x146315(0x151))/0xa;if(_0x5d162d===_0x871543)break;else _0x4a060d['push'](_0x4a060d['shift']());}catch(_0x308e95){_0x4a060d['push'](_0x4a060d['shift']());}}}(a149_0x2d38,0xb60dd));function a149_0x2d38(){const _0x47460d=['map','3uLsARS','stringify','schemaFingerprint','utf8','625712IvsrZY','length','push','rowNumber','values','5468365ypREsM','82477KLYaGs','1688202rZKQHu','rows','30qiPZOn','10858095oyfkvp','22953XbJyPL','Excel\x20row\x20','24280600qWPbRk','1816BwJXfe','\x20exceeds\x20the\x20import\x20request\x20size\x20limit.','maxBatchBytes'];a149_0x2d38=function(){return _0x47460d;};return a149_0x2d38();}function a149_0x25b8(_0x3b7f96,_0x4d3713){_0x3b7f96=_0x3b7f96-0x150;const _0x2d38ff=a149_0x2d38();let _0x25b899=_0x2d38ff[_0x3b7f96];return _0x25b899;}export function previewImportBatchCount(_0x3fdf1d,_0x5c1e04,_0x2294a7){const _0x525b27=a149_0x25b8,_0x486c07=_0x66e3d9=>_0x66e3d9[_0x525b27(0x155)](_0x194982=>_0x5c1e04['schemaVersion']===0x1?{..._0x3fdf1d[_0x525b27(0x162)][_0x194982]['values'],'id':-0x1fffffffffffff}:_0x3fdf1d['rows'][_0x194982][_0x525b27(0x15e)]),_0x2aa153=_0x4847f8=>Buffer['byteLength'](JSON[_0x525b27(0x157)]({'schemaFingerprint':_0x5c1e04[_0x525b27(0x158)],..._0x5c1e04['schemaVersion']===0x2?{'taskId':0x2**0x34}:{},'items':_0x486c07(_0x4847f8)}),_0x525b27(0x159));let _0x2686d2=0x0,_0x584a1f=[];for(let _0x1539aa=0x0;_0x1539aa<_0x3fdf1d[_0x525b27(0x162)][_0x525b27(0x15b)];_0x1539aa++){if(_0x2aa153([_0x1539aa])>_0x5c1e04['maxBatchBytes'])throw Error(_0x525b27(0x150)+_0x3fdf1d[_0x525b27(0x162)][_0x1539aa][_0x525b27(0x15d)]+_0x525b27(0x153));_0x584a1f[_0x525b27(0x15b)]&&(_0x584a1f[_0x525b27(0x15b)]===_0x2294a7||_0x2aa153([..._0x584a1f,_0x1539aa])>_0x5c1e04[_0x525b27(0x154)])&&(_0x2686d2++,_0x584a1f=[]),_0x584a1f[_0x525b27(0x15c)](_0x1539aa);}return _0x2686d2+Number(_0x584a1f[_0x525b27(0x15b)]>0x0);}
1
+ function a149_0x33f2(){const _0x3cc614=['915447QxxiZK','\x20exceeds\x20the\x20import\x20request\x20size\x20limit.','414DHHNjZ','schemaFingerprint','push','rows','1015846rzcSkA','values','5783784Tpaunx','4aLOgaF','2185055etWSzV','length','404394JEUWJj','byteLength','stringify','76027ofaAaO','schemaVersion','17445699ApkVwX','Excel\x20row\x20','utf8'];a149_0x33f2=function(){return _0x3cc614;};return a149_0x33f2();}(function(_0x48944a,_0x3583e0){const _0x5c10d8=a149_0x4109,_0x411f3f=_0x48944a();while(!![]){try{const _0x61ad8=parseInt(_0x5c10d8(0xf4))/0x1+-parseInt(_0x5c10d8(0xee))/0x2+parseInt(_0x5c10d8(0xe8))/0x3*(-parseInt(_0x5c10d8(0xf1))/0x4)+parseInt(_0x5c10d8(0xf2))/0x5+-parseInt(_0x5c10d8(0xea))/0x6*(parseInt(_0x5c10d8(0xf7))/0x7)+-parseInt(_0x5c10d8(0xf0))/0x8+parseInt(_0x5c10d8(0xe5))/0x9;if(_0x61ad8===_0x3583e0)break;else _0x411f3f['push'](_0x411f3f['shift']());}catch(_0x400805){_0x411f3f['push'](_0x411f3f['shift']());}}}(a149_0x33f2,0x78b1a));function a149_0x4109(_0x891de4,_0x36970d){_0x891de4=_0x891de4-0xe4;const _0x33f2d7=a149_0x33f2();let _0x410917=_0x33f2d7[_0x891de4];return _0x410917;}export function previewImportBatchCount(_0xf37f43,_0x3b576b,_0x321090){const _0x59ef6a=a149_0x4109,_0x551885=_0x3c0802=>_0x3c0802['map'](_0xb066fc=>_0x3b576b[_0x59ef6a(0xe4)]===0x1?{..._0xf37f43[_0x59ef6a(0xed)][_0xb066fc]['values'],'id':-0x1fffffffffffff}:_0xf37f43['rows'][_0xb066fc][_0x59ef6a(0xef)]),_0x3ce541=_0x2c42c1=>Buffer[_0x59ef6a(0xf5)](JSON[_0x59ef6a(0xf6)]({'schemaFingerprint':_0x3b576b[_0x59ef6a(0xeb)],..._0x3b576b[_0x59ef6a(0xe4)]===0x2?{'taskId':0x2**0x34}:{},'items':_0x551885(_0x2c42c1)}),_0x59ef6a(0xe7));let _0x4e3389=0x0,_0x48a755=[];for(let _0xc2bc78=0x0;_0xc2bc78<_0xf37f43[_0x59ef6a(0xed)][_0x59ef6a(0xf3)];_0xc2bc78++){if(_0x3ce541([_0xc2bc78])>_0x3b576b['maxBatchBytes'])throw Error(_0x59ef6a(0xe6)+_0xf37f43[_0x59ef6a(0xed)][_0xc2bc78]['rowNumber']+_0x59ef6a(0xe9));_0x48a755[_0x59ef6a(0xf3)]&&(_0x48a755['length']===_0x321090||_0x3ce541([..._0x48a755,_0xc2bc78])>_0x3b576b['maxBatchBytes'])&&(_0x4e3389++,_0x48a755=[]),_0x48a755[_0x59ef6a(0xec)](_0xc2bc78);}return _0x4e3389+Number(_0x48a755[_0x59ef6a(0xf3)]>0x0);}