@lovrabet/lovrabet-cli 2.3.9-beta.1 → 2.3.9

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 +1 -1
  185. package/skills/lovrabet/guides/development-intent-handoff.md +7 -5
  186. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
1
- const a144_0x4d4b9d=a144_0xdfc0;function a144_0xdfc0(_0x4367f7,_0x3495d8){_0x4367f7=_0x4367f7-0x121;const _0x338380=a144_0x3383();let _0xdfc021=_0x338380[_0x4367f7];return _0xdfc021;}(function(_0x499563,_0x5bd5db){const _0x400522=a144_0xdfc0,_0x279a95=_0x499563();while(!![]){try{const _0x433827=-parseInt(_0x400522(0x19e))/0x1*(parseInt(_0x400522(0x19f))/0x2)+parseInt(_0x400522(0x19c))/0x3+parseInt(_0x400522(0x175))/0x4*(parseInt(_0x400522(0x171))/0x5)+parseInt(_0x400522(0x187))/0x6*(parseInt(_0x400522(0x12e))/0x7)+-parseInt(_0x400522(0x1c3))/0x8+parseInt(_0x400522(0x205))/0x9+-parseInt(_0x400522(0x1d5))/0xa*(-parseInt(_0x400522(0x191))/0xb);if(_0x433827===_0x5bd5db)break;else _0x279a95['push'](_0x279a95['shift']());}catch(_0x3677d8){_0x279a95['push'](_0x279a95['shift']());}}}(a144_0x3383,0x95ffb));import{readFile,stat}from'node:fs/promises';import{createHash}from'node:crypto';import a144_0x45e51a from'node:path';import{StringDecoder}from'node:string_decoder';import{createRequire}from'node:module';import{SaxesParser}from'saxes';import a144_0x13936f from'exceljs';import a144_0x3de66d from'yauzl';import{resolveWorksheetImages}from'./image-ooxml.js';import{validateImageBytes}from'./image-bytes.js';const MAX_FILE=0x14*0x400*0x400,MAX_EXPANDED=0x64*0x400*0x400,MAX_ROWS=0x186a0,MAX_COLUMNS=0x100,MAX_XML_ROWS=0x100000,MAX_XML_COLUMNS=0x4000,MAX_CELL=0x40*0x400,RESERVED=new Set(['id',a144_0x4d4b9d(0x1cb),a144_0x4d4b9d(0x1fe),a144_0x4d4b9d(0x16e),a144_0x4d4b9d(0x1de),a144_0x4d4b9d(0x1a5),a144_0x4d4b9d(0x180),a144_0x4d4b9d(0x14e),a144_0x4d4b9d(0x173),a144_0x4d4b9d(0x12f),a144_0x4d4b9d(0x1b1)]),TYPES=new Set([a144_0x4d4b9d(0x12a),a144_0x4d4b9d(0x1a3),'textarea',a144_0x4d4b9d(0x174),a144_0x4d4b9d(0x1f4),'integer',a144_0x4d4b9d(0x139),a144_0x4d4b9d(0x20c),'datetime',a144_0x4d4b9d(0x1cf),a144_0x4d4b9d(0x163)]),isImageContainer=_0x50f9f7=>[a144_0x4d4b9d(0x1cf),'upload'][a144_0x4d4b9d(0x15c)](_0x50f9f7[a144_0x4d4b9d(0x1d3)]()),hash=_0x22f1e8=>createHash(a144_0x4d4b9d(0x135))[a144_0x4d4b9d(0x13b)](_0x22f1e8)[a144_0x4d4b9d(0x13c)](a144_0x4d4b9d(0x1f1)),require=createRequire(import.meta.url),DefinedNameXform=require(a144_0x4d4b9d(0x151)),nameCoordinates=require(a144_0x4d4b9d(0x1dd)),ABSOLUTE_NAME_RANGE=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/,excelRequire=createRequire(require[a144_0x4d4b9d(0x17e)]('exceljs')),zipRequire=createRequire(excelRequire[a144_0x4d4b9d(0x17e)](a144_0x4d4b9d(0x1df))),ZipEntry=zipRequire(a144_0x4d4b9d(0x1b5)),zipReader=zipRequire(a144_0x4d4b9d(0x15f)),zipUtf8=zipRequire(a144_0x4d4b9d(0x169)),zipPaths=zipRequire(a144_0x4d4b9d(0x136));function a144_0x3383(){const _0x230a1c=['relativeOffsetOfLocalHeader','date','mergeCell','image/jpeg','has','abs','get','type','exec','Only\x20.xlsx\x20files\x20are\x20supported.','openReadStream','Invalid\x20worksheet\x20nested\x20row.','Worksheet\x20column\x20objects\x20exceed\x20100000.','XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.','rowCount','value','XLSX\x20file\x20must\x20be\x20a\x20regular\x20file\x20no\x20larger\x20than\x2020\x20MB.','string','isInteger','clear','right','1777643ZmObfw','updateTime','decodeEx','file','set','_xlnm.Print_Titles','readEntry','sha256','./utils','Image\x20cell\x20contains\x20scalar\x20or\x20mixed\x20content.','Invalid\x20dataset\x20field\x20extension\x20metadata.','boolean','every','update','digest','push','length','worksheets','unixPermissions','attributes','Invalid\x20worksheet\x20merge\x20reference.','.xlsx','materialized','contentHash','hyperlink','File\x20is\x20not\x20an\x20XLSX\x20workbook.','Invalid\x20worksheet\x20column\x20range.','source','sort','Invalid\x20worksheet\x20cell\x20without\x20an\x20initial\x20reference.','errors','Worksheet\x20exceeds\x20100000\x20rows\x20or\x20256\x20columns.','modifierName','map','dataset','exceljs/lib/xlsx/xform/book/defined-name-xform.js','warnings','Worksheet\x20deferred\x20cell\x20events\x20exceed\x201000000.','datetime','Worksheet\x20coordinate\x20exceeds\x20','doctype','bitFlag','Worksheet\x20exceeds\x2016384\x20columns.','media','doType','Headers\x20must\x20be\x20non-empty\x20text\x20cells\x20no\x20larger\x20than\x2064\x20KB.','includes','Invalid\x20worksheet\x20hyperlink\x20reference.','Unknown\x20Excel\x20header:\x20','./reader/readerFor','filter','[Content_Types].xml','split','upload','generalPurposeBitFlag','parseText','uploadFields','Invalid\x20worksheet\x20coordinate.','headerRow\x20must\x20be\x20between\x201\x20and\x20100000.','./utf8','before','Invalid\x20worksheet\x20XML.','Invalid\x20defined\x20name\x20coordinate.','Duplicate\x20workbook\x20ZIP\x20entry.','datasetId','Invalid\x20worksheet\x20XML:\x20','fromBuffer','61850SUWprb','readUInt32LE','createTime','number','152mYlFVL','close','XLSX\x20file\x20exceeds\x2020\x20MB.','opentag','extraFieldsLength','slice','jpg','isSafeInteger','readEntryCursor','resolve','ZIP\x20local\x20and\x20central\x20entry\x20names\x20must\x20match.','modifierId','left','isArray','METADATA','Workbook\x20defined\x20name\x20work\x20exceeds\x20100000.','properties','generated','6jsgLfC','subarray','destroy','entry','size','getTime','model','result','Invalid\x20XLSX\x20archive.','Unique\x20image\x20bytes\x20exceed\x2050\x20MB.','2085303IpeHZA','fileNameStr','reference','Expected\x20an\x20Excel\x20date\x20cell.','bottom','utf8','Expected\x20a\x20text\x20cell.','min','batchSize','serial_number','find','1603389azGxgG','mapping','13348WhCBxU','44xEQrDI','fileCommentRaw','Invalid\x20or\x20duplicate\x20dataset\x20field\x20metadata.','row','text','uncompressedSize','creatorName','compressedSize','Invalid\x20ZIP\x20local\x20file\x20header.','Sheet\x20index\x20must\x20be\x20a\x20positive\x20one-based\x20integer.','Required\x20field\x20is\x20not\x20mapped:\x20','Image\x20XML\x20event\x20budget\x20exceeded.','values','dataset-import/','cells','dataValidations','autoIncrement','processAttributes','deleted','\x20columns.','dir','closetag','./zipEntry','externalFileAttributes','dataType','message','from','entryCount','nativeCell','batchSize\x20must\x20be\x20between\x201\x20and\x201000.','Excel\x20import\x20only\x20supports\x20METADATA\x20datasets.','end','integer','readUInt16LE','eachCell','xl/workbook.xml','9394200SwFvKg','Mapping\x20must\x20contain\x20at\x20least\x20one\x20field.','top','versionMadeBy','formula','col','Worksheet\x20merge\x20work\x20exceeds\x20100000.','MAX_SAFE_INTEGER','tenantCode','XML\x20DTD/entities\x20are\x20not\x20supported.','Formula\x20has\x20no\x20cached\x20result.','Workbook','image','Image\x20XML\x20node\x20budget\x20exceeded.','some','name','toLowerCase','getRow','30yjzpCT','Duplicate\x20header:\x20','Merged\x20cells\x20are\x20not\x20supported.','isFinite','charCodeAt','byteLength','Non-canonical\x20worksheet\x20ZIP\x20entry.','fields','exceljs/lib/utils/col-cache.js','creatorId','jszip','sourceType','sharedFormula','Requested\x20worksheet\x20does\x20not\x20exist.','Duplicate\x20dataset\x20field\x20codes.','Missing\x20image\x20media:\x20','textarea','trim','Unknown\x20or\x20generated\x20mapping\x20field:\x20','handleUTF8','extraFieldRaw','add','test','address','error','Dataset\x20field\x20metadata\x20is\x20missing.','entries','required','hex','Expected\x20a\x20finite\x20safe\x20numeric\x20cell.','imageCells','decimal','extname','original','pop','code','definedName','isBuffer','object','getCell','data','appCode','startsWith','ZIP\x20central\x20directory\x20entry\x20count\x20does\x20not\x20match\x20its\x20contents.','ref','hiddenRow','Unsupported\x20field\x20type:\x20','write','2296215mQdSBX','parserVersion','extraFields','imageFields','stringify','max'];a144_0x3383=function(){return _0x230a1c;};return a144_0x3383();}function centralDirectoryEnd(_0x1e44ac,_0x4fbcdf){const _0x5ccb47=a144_0x4d4b9d,_0x3d1166=()=>new Error('Invalid\x20ZIP\x20central\x20directory\x20layout.'),_0x52ede6=_0x1e44ac['lastIndexOf'](Buffer['from']([0x50,0x4b,0x5,0x6]));if(_0x52ede6<0x0||_0x52ede6+0x16>_0x1e44ac[_0x5ccb47(0x13e)]||_0x52ede6+0x16+_0x1e44ac[_0x5ccb47(0x1c0)](_0x52ede6+0x14)!==_0x1e44ac['length'])throw _0x3d1166();let _0x195b9c=_0x1e44ac['readUInt16LE'](_0x52ede6+0xa),_0x345a41=_0x1e44ac[_0x5ccb47(0x172)](_0x52ede6+0xc),_0x2a911f=_0x1e44ac[_0x5ccb47(0x172)](_0x52ede6+0x10),_0x1cb504=_0x52ede6;const _0x507b07=_0x52ede6-0x14,_0x1cf825=_0x507b07>=0x0&&_0x1e44ac[_0x5ccb47(0x172)](_0x507b07)===0x7064b50,_0x325675=[0x4,0x6,0x8,0xa][_0x5ccb47(0x1d1)](_0x4974ce=>_0x1e44ac[_0x5ccb47(0x1c0)](_0x52ede6+_0x4974ce)===0xffff)||_0x345a41===0xffffffff||_0x2a911f===0xffffffff;if(_0x1cf825!==_0x325675)throw _0x3d1166();if(_0x1cf825){if(_0x1e44ac['lastIndexOf'](Buffer[_0x5ccb47(0x1b9)]([0x50,0x4b,0x6,0x7]))!==_0x507b07)throw _0x3d1166();const _0x4eae6b=_0x52d93d=>{const _0x321031=Number(_0x1e44ac['readBigUInt64LE'](_0x52d93d));if(!Number['isSafeInteger'](_0x321031))throw _0x3d1166();return _0x321031;};_0x1cb504=_0x4eae6b(_0x507b07+0x8);if(_0x1e44ac['readUInt32LE'](_0x507b07+0x4)!==0x0||_0x1e44ac[_0x5ccb47(0x172)](_0x507b07+0x10)!==0x1||_0x1cb504>_0x507b07-0x38||_0x1e44ac[_0x5ccb47(0x172)](_0x1cb504)!==0x6064b50||_0x4eae6b(_0x1cb504+0x4)!==0x2c||_0x1cb504+0x38!==_0x507b07||_0x1e44ac[_0x5ccb47(0x172)](_0x1cb504+0x10)!==0x0||_0x1e44ac[_0x5ccb47(0x172)](_0x1cb504+0x14)!==0x0)throw _0x3d1166();_0x195b9c=_0x4eae6b(_0x1cb504+0x20),_0x345a41=_0x4eae6b(_0x1cb504+0x28),_0x2a911f=_0x4eae6b(_0x1cb504+0x30);if(_0x4eae6b(_0x1cb504+0x18)!==_0x195b9c)throw _0x3d1166();}else{if(_0x1e44ac['readUInt16LE'](_0x52ede6+0x4)!==0x0||_0x1e44ac[_0x5ccb47(0x1c0)](_0x52ede6+0x6)!==0x0||_0x1e44ac[_0x5ccb47(0x1c0)](_0x52ede6+0x8)!==_0x195b9c)throw _0x3d1166();}const _0x47c119=_0x4fbcdf['readEntryCursor'];if(_0x2a911f!==_0x47c119||_0x195b9c!==_0x4fbcdf[_0x5ccb47(0x1ba)]||_0x2a911f+_0x345a41!==_0x1cb504)throw _0x3d1166();return _0x1cb504;}function consumerEntryName(_0x7282ce,_0x515171){const _0x47de46=a144_0x4d4b9d;if(_0x515171[_0x47de46(0x207)][_0x47de46(0x160)](_0x1d2a06=>_0x1d2a06['id']===0x1)[_0x47de46(0x13e)]>0x1)throw new Error('Duplicate\x20ZIP64\x20extended\x20information\x20fields\x20are\x20not\x20supported.');const _0x468f97=_0x515171,_0x982878=_0x515171[_0x47de46(0x20b)];if(!Buffer[_0x47de46(0x1fa)](_0x468f97['fileNameRaw'])||!Buffer[_0x47de46(0x1fa)](_0x468f97[_0x47de46(0x1e9)])||!Buffer[_0x47de46(0x1fa)](_0x468f97['fileCommentRaw'])||!Number[_0x47de46(0x17c)](_0x982878)||_0x982878<0x0||_0x982878>_0x7282ce[_0x47de46(0x13e)]-0x1e||_0x7282ce['readUInt32LE'](_0x982878)!==0x4034b50)throw new Error(_0x47de46(0x1a7));const _0x54017b=_0x982878+0x1e+_0x7282ce[_0x47de46(0x1c0)](_0x982878+0x1a),_0x47925b=_0x54017b+_0x7282ce[_0x47de46(0x1c0)](_0x982878+0x1c)+_0x515171[_0x47de46(0x1a6)];if(!Number[_0x47de46(0x17c)](_0x47925b)||_0x47925b>_0x7282ce[_0x47de46(0x13e)])throw new Error(_0x47de46(0x1a7));if(_0x54017b>_0x7282ce[_0x47de46(0x13e)]||!_0x7282ce[_0x47de46(0x188)](_0x982878+0x1e,_0x54017b)['equals'](_0x468f97['fileNameRaw']))throw new Error(_0x47de46(0x17f));const _0x5c2150=new ZipEntry({},{'decodeFileName':zipUtf8['utf8decode']});_0x5c2150[_0x47de46(0x157)]=_0x515171[_0x47de46(0x164)],_0x5c2150['fileName']=_0x468f97['fileNameRaw'],_0x5c2150['fileComment']=_0x468f97[_0x47de46(0x1a0)],_0x5c2150[_0x47de46(0x179)]=_0x468f97['extraFieldRaw'][_0x47de46(0x13e)],_0x5c2150['readExtraFields'](zipReader(_0x468f97['extraFieldRaw'])),_0x5c2150[_0x47de46(0x1e8)](),_0x5c2150[_0x47de46(0x1c6)]=_0x515171['versionMadeBy'],_0x5c2150['externalFileAttributes']=_0x515171[_0x47de46(0x1b6)],_0x5c2150[_0x47de46(0x1b0)]();const _0x44919f=_0x5c2150[_0x47de46(0x1b3)]||Boolean((_0x5c2150[_0x47de46(0x140)]??0x0)&0x4000),_0x5a1787=zipPaths[_0x47de46(0x17e)](_0x5c2150[_0x47de46(0x192)]),_0x1387ed=_0x5a1787[_0x47de46(0x1ff)]('/')?_0x5a1787['slice'](0x1):_0x5a1787;return{'name':_0x1387ed,'original':_0x5c2150[_0x47de46(0x192)],'directory':_0x44919f};}export function normalizeImportFields(_0x2deb79){const _0x21d6f3=a144_0x4d4b9d;if(!_0x2deb79||(_0x2deb79[_0x21d6f3(0x149)]??_0x2deb79[_0x21d6f3(0x150)]?.[_0x21d6f3(0x1e0)])!==_0x21d6f3(0x183))throw new Error(_0x21d6f3(0x1bd));const _0x2f16ce=Array['isArray'](_0x2deb79[_0x21d6f3(0x1dc)]),_0x1d5014=_0x2f16ce?_0x2deb79[_0x21d6f3(0x1dc)]:_0x2deb79[_0x21d6f3(0x185)];if(!Array['isArray'](_0x1d5014)||_0x1d5014[_0x21d6f3(0x13e)]===0x0)throw new Error(_0x21d6f3(0x1ee));const _0x2037b6=[],_0x4522af=new Set();for(const _0x2f318b of _0x1d5014){if(_0x2f318b[_0x21d6f3(0x1b1)]===!![])continue;let _0x3ad290=_0x2f318b['extend']??{};if(!_0x2f16ce&&typeof _0x3ad290===_0x21d6f3(0x12a)){try{_0x3ad290=JSON['parse'](_0x3ad290);}catch{throw new Error('Invalid\x20dataset\x20field\x20extension\x20metadata.');}if(!_0x3ad290||typeof _0x3ad290!==_0x21d6f3(0x1fb)||Array[_0x21d6f3(0x182)](_0x3ad290))throw new Error(_0x21d6f3(0x138));}const _0x262fb0=_0x2f16ce?_0x2f318b[_0x21d6f3(0x1d2)]:_0x2f318b[_0x21d6f3(0x1f8)],_0x2602e5=_0x2f16ce?_0x2f318b[_0x21d6f3(0x15a)]:_0x2f318b['type']??_0x2f318b[_0x21d6f3(0x1b7)];if(typeof _0x262fb0!==_0x21d6f3(0x12a)||!_0x262fb0||typeof _0x2602e5!==_0x21d6f3(0x12a)||_0x4522af[_0x21d6f3(0x20f)](_0x262fb0))throw new Error(_0x21d6f3(0x1a1));if(_0x2602e5[_0x21d6f3(0x1d3)]()===_0x21d6f3(0x19a))throw new Error('Unsupported\x20dataset\x20field\x20type:\x20serial_number.');_0x4522af[_0x21d6f3(0x1ea)](_0x262fb0);const _0x39fb51=_0x2f16ce?_0x2f318b:_0x3ad290,_0x336e32={'code':_0x262fb0,'type':_0x2602e5,'required':_0x39fb51[_0x21d6f3(0x1f0)]===!![]};if(RESERVED[_0x21d6f3(0x20f)](_0x262fb0)||_0x39fb51[_0x21d6f3(0x186)]===!![]||_0x39fb51[_0x21d6f3(0x1af)]===!![])_0x336e32[_0x21d6f3(0x186)]=!![];_0x2037b6[_0x21d6f3(0x13d)](_0x336e32);}return _0x2037b6;}async function checkArchive(_0x31efcd,_0x59f974){await new Promise((_0x160419,_0xbaaf4e)=>{const _0x1ae32e=a144_0xdfc0;a144_0x3de66d[_0x1ae32e(0x170)](_0x31efcd,{'lazyEntries':!![],'validateEntrySizes':!![]},(_0x46dd83,_0x5631f2)=>{const _0x42a982=_0x1ae32e;if(_0x46dd83||!_0x5631f2){_0xbaaf4e(_0x46dd83??new Error(_0x42a982(0x18f)));return;}let _0x1edbfe;try{_0x1edbfe=centralDirectoryEnd(_0x31efcd,_0x5631f2);}catch(_0x5d1a32){_0x5631f2[_0x42a982(0x176)](),_0xbaaf4e(_0x5d1a32);return;}let _0xf0a5a5=0x0,_0x503941=0x0,_0x152acd=0x0,_0x3861aa=0x0,_0x209e61=0x0,_0x1ffe6b=0x0,_0x504314=0x0,_0x1a2bd4=0x0,_0xfd8f82=0x0,_0xd20503=![],_0x38d108;const _0x2329e2=new Set(),_0x39441f=_0x410224=>{const _0xdd534c=_0x42a982;if(_0xd20503)return;_0xd20503=!![],_0x38d108?.[_0xdd534c(0x189)](),_0x5631f2[_0xdd534c(0x176)](),_0xbaaf4e(_0x410224);},_0x419546=(_0x141e03,_0x55b5fd)=>{const _0x3f4701=_0x42a982;if(!_0x141e03||!/^\d+$/[_0x3f4701(0x1eb)](_0x141e03))throw new Error(_0x3f4701(0x167));const _0x3ad462=Number(_0x141e03);if(!Number['isSafeInteger'](_0x3ad462)||_0x3ad462<0x1||_0x3ad462>_0x55b5fd)throw new Error(_0x3f4701(0x155)+_0x55b5fd+'.');return _0x3ad462;},_0x351094=(_0x4e42ff,_0x3de4b7=MAX_XML_COLUMNS)=>{const _0x220ae3=_0x42a982,_0x27e304=/^\$?([A-Z]{1,3})\$?(\d+)$/[_0x220ae3(0x121)](_0x4e42ff);if(!_0x27e304)throw new Error('Invalid\x20worksheet\x20cell\x20or\x20merge\x20reference.');let _0x2e72bc=0x0;for(const _0x2714a5 of _0x27e304[0x1])_0x2e72bc=_0x2e72bc*0x1a+_0x2714a5[_0x220ae3(0x1d9)](0x0)-0x40;if(_0x2e72bc>_0x3de4b7)throw new Error('Worksheet\x20exceeds\x20'+_0x3de4b7+_0x220ae3(0x1b2));return{'row':_0x419546(_0x27e304[0x2],MAX_XML_ROWS),'col':_0x2e72bc};},_0x2fdf17=_0x5d0176=>{const _0x28f391=_0x42a982;if(_0x5d0176['name']==='_xlnm.Print_Area'||_0x5d0176['name']===_0x28f391(0x133))return;for(const _0x3bd06d of _0x5d0176['ranges']){if(!ABSOLUTE_NAME_RANGE[_0x28f391(0x1eb)](_0x3bd06d[_0x28f391(0x162)]('!')[_0x28f391(0x1f7)]()||''))continue;const _0x468615=nameCoordinates[_0x28f391(0x130)](_0x3bd06d),_0x212dda=_0x28f391(0x1c5)in _0x468615,_0x39ec4c=_0x212dda?[_0x468615[_0x28f391(0x1c5)],_0x468615[_0x28f391(0x195)]]:[_0x468615['row']],_0x340274=_0x212dda?[_0x468615[_0x28f391(0x181)],_0x468615[_0x28f391(0x12d)]]:[_0x468615[_0x28f391(0x1c8)]],_0x2e0e99=(_0x5a6aa8,_0x32525b)=>Number[_0x28f391(0x17c)](_0x5a6aa8)&&_0x5a6aa8>=0x1&&_0x5a6aa8<=_0x32525b;if(!_0x39ec4c[_0x28f391(0x13a)](_0x7a7507=>_0x2e0e99(_0x7a7507,MAX_XML_ROWS))||!_0x340274[_0x28f391(0x13a)](_0x4a1141=>_0x2e0e99(_0x4a1141,MAX_XML_COLUMNS)))throw new Error(_0x28f391(0x16c));_0x504314+=_0x212dda?(_0x468615['bottom']-_0x468615['top']+0x1)*(_0x468615[_0x28f391(0x12d)]-_0x468615['left']+0x1):0x1;if(_0x504314>MAX_ROWS)throw new Error(_0x28f391(0x184));}};_0x5631f2['on'](_0x42a982(0x1ed),_0x39441f),_0x5631f2['on'](_0x42a982(0x18a),_0x315c1b=>{const _0x20b4a0=_0x42a982;if(_0xd20503)return;if(++_0x152acd>0x2710||(_0xf0a5a5+=_0x315c1b[_0x20b4a0(0x1a4)])>MAX_EXPANDED){_0x39441f(new Error(_0x20b4a0(0x126)));return;}let _0x4fe0cc;try{_0x4fe0cc=consumerEntryName(_0x31efcd,_0x315c1b);}catch(_0xe2b5d6){_0x39441f(_0xe2b5d6);return;}if(_0x4fe0cc['directory']){_0x5631f2[_0x20b4a0(0x134)]();return;}const _0x47cac0=_0x4fe0cc[_0x20b4a0(0x1d2)];if(_0x59f974&&(_0x47cac0!==_0x4fe0cc[_0x20b4a0(0x1f6)]||_0x2329e2[_0x20b4a0(0x20f)](_0x47cac0)||_0x47cac0[_0x20b4a0(0x1ff)]('/')||_0x47cac0[_0x20b4a0(0x15c)]('\x5c'))){_0x39441f(new Error('Non-canonical\x20or\x20duplicate\x20image\x20archive\x20entry.'));return;}if(_0x47cac0!==_0x4fe0cc[_0x20b4a0(0x1f6)]&&(_0x47cac0===_0x20b4a0(0x1c2)||/xl\/worksheets\/sheet(\d+)[.]xml/[_0x20b4a0(0x1eb)](_0x47cac0))){_0x39441f(new Error('Non-canonical\x20workbook\x20or\x20worksheet\x20ZIP\x20entry.'));return;}const _0x431b17=_0x47cac0===_0x20b4a0(0x1c2);if(_0x431b17&&_0x2329e2[_0x20b4a0(0x20f)](_0x47cac0)){_0x39441f(new Error(_0x20b4a0(0x16d)));return;}_0x2329e2[_0x20b4a0(0x1ea)](_0x47cac0);const _0x532ae0=/xl\/worksheets\/sheet(\d+)[.]xml/[_0x20b4a0(0x1eb)](_0x47cac0);if(_0x532ae0&&!/^xl\/worksheets\/sheet\d+[.]xml$/['test'](_0x47cac0)){_0x39441f(new Error(_0x20b4a0(0x1db)));return;}_0x5631f2[_0x20b4a0(0x123)](_0x315c1b,(_0x205665,_0x347b13)=>{const _0x41f298=_0x20b4a0;if(_0xd20503){_0x347b13?.[_0x41f298(0x189)]();return;}if(_0x205665||!_0x347b13){_0x39441f(_0x205665??new Error('Invalid\x20XLSX\x20entry.'));return;}_0x38d108=_0x347b13;const _0x1e5562=_0x59f974?[]:undefined,_0x3aac55=_0x59f974&&/[.](xml|rels)$/[_0x41f298(0x1eb)](_0x47cac0)?new StringDecoder(_0x41f298(0x196)):undefined,_0x4d19b3=_0x3aac55?new SaxesParser({'xmlns':![]}):undefined,_0x4e3528=()=>{const _0x1b610e=_0x41f298;if(++_0xfd8f82>0x1e8480)throw Error(_0x1b610e(0x1aa));};_0x4d19b3?.['on'](_0x41f298(0x156),()=>{const _0x514102=_0x41f298;throw Error(_0x514102(0x1cc));}),_0x4d19b3?.['on']('opentag',()=>{const _0x1a442f=_0x41f298;_0x4e3528();if(++_0x1a2bd4>0x7a120)throw Error(_0x1a442f(0x1d0));}),_0x4d19b3?.['on'](_0x41f298(0x1a3),_0x4e3528),_0x4d19b3?.['on'](_0x41f298(0x1b4),_0x4e3528),_0x4d19b3?.['on'](_0x41f298(0x1ed),_0x29124a=>{throw _0x29124a;});const _0x5a64c8=_0x532ae0||_0x431b17?new StringDecoder('utf8'):undefined,_0x191144=_0x532ae0||_0x431b17?new SaxesParser({'xmlns':![]}):undefined;let _0x4bb5ac,_0x102988=0x0,_0x29ab51=0x0,_0x396173,_0x530713,_0x4ff992=![],_0x3404ce=![],_0x5ea57d,_0x472081,_0x207f8e,_0x62d526=![];const _0x264322=[],_0x5f18eb=new Set();let _0x3b86aa;const _0x181661=(_0x1e2936,_0x3a65e1=0x0)=>{const _0x5a0cfb=_0x41f298;_0x209e61+=_0x3a65e1+Math['max'](0x0,_0x1e2936-_0x29ab51),_0x29ab51=Math[_0x5a0cfb(0x20a)](_0x29ab51,_0x1e2936);if(_0x209e61>MAX_ROWS)throw new Error(_0x5a0cfb(0x125));};_0x191144?.['on'](_0x41f298(0x178),_0x4cdb52=>{const _0xbafb4b=_0x41f298;if(_0x431b17){if(!_0x4bb5ac&&_0x4cdb52['name']===_0xbafb4b(0x1f9))_0x4bb5ac=new DefinedNameXform();_0x4bb5ac?.['parseOpen'](_0x4cdb52);return;}if(_0x4cdb52[_0xbafb4b(0x1d2)]===_0xbafb4b(0x1a2)){if(_0x3404ce)throw new Error(_0xbafb4b(0x124));_0x419546(_0x4cdb52[_0xbafb4b(0x141)]['r'],MAX_XML_ROWS),_0x396173=undefined,_0x207f8e=undefined,_0x62d526=![];}else{if(_0x4cdb52[_0xbafb4b(0x1d2)]==='c'){if(_0x3404ce)throw new Error('Invalid\x20worksheet\x20nested\x20cell.');_0x3404ce=!![],_0x4ff992=Boolean(Number['parseInt'](_0x4cdb52[_0xbafb4b(0x141)]['s']??'',0xa)),_0x3b86aa=undefined,_0x5ea57d=_0x4cdb52['attributes']['r']||undefined,_0x472081=_0x5ea57d?_0x351094(_0x5ea57d):undefined;if(_0x472081)_0x530713=_0x472081;else _0x530713=_0x396173?{'row':_0x396173['row'],'col':_0x396173[_0xbafb4b(0x1c8)]+0x1}:undefined;}else{if(_0x3404ce&&['f','v','t'][_0xbafb4b(0x15c)](_0x4cdb52[_0xbafb4b(0x1d2)])){_0x3b86aa=_0x4cdb52['name'];if(_0x4cdb52['name']==='f'&&_0x4cdb52[_0xbafb4b(0x141)]['t'])_0x4ff992=!![];}else{if(_0x3404ce&&_0x4cdb52['name']==='r')_0x4ff992=!![];else{if(_0x4cdb52[_0xbafb4b(0x1d2)]===_0xbafb4b(0x146)){const _0x5a0632=_0x4cdb52[_0xbafb4b(0x141)]['ref'];if(!_0x5a0632)throw new Error(_0xbafb4b(0x15d));const _0xe6d87=_0x5a0632['split'](':');if(_0xe6d87[_0xbafb4b(0x13e)]>0x2)throw new Error(_0xbafb4b(0x15d));const _0xe0f9c1=_0x351094(_0xe6d87[0x0]),_0x4db4a6=_0x351094(_0xe6d87[0x1]??_0xe6d87[0x0]);_0x5f18eb[_0xbafb4b(0x1ea)](_0x5a0632),_0x181661(Math[_0xbafb4b(0x20a)](_0xe0f9c1[_0xbafb4b(0x1c8)],_0x4db4a6['col']),0x1);}else{if(_0x4cdb52[_0xbafb4b(0x1d2)]===_0xbafb4b(0x1c8)){const _0x1df156=_0x419546(_0x4cdb52['attributes'][_0xbafb4b(0x198)],0x4000),_0xca614e=_0x419546(_0x4cdb52[_0xbafb4b(0x141)][_0xbafb4b(0x20a)],0x4000);if(_0x1df156>_0xca614e)throw new Error(_0xbafb4b(0x148));_0x181661(_0xca614e,0x1);}else{if(_0x4cdb52[_0xbafb4b(0x1d2)]===_0xbafb4b(0x20d)){const _0x3119a5=_0x4cdb52['attributes'][_0xbafb4b(0x201)];if(!_0x3119a5)throw new Error(_0xbafb4b(0x142));const _0x4883c6=_0x3119a5['split'](':');if(_0x4883c6[_0xbafb4b(0x13e)]>0x2)throw new Error(_0xbafb4b(0x142));const _0x2d730d=_0x351094(_0x4883c6[0x0]),_0x49fcb8=_0x351094(_0x4883c6[0x1]??_0x4883c6[0x0]);_0x181661(Math['max'](_0x2d730d[_0xbafb4b(0x1c8)],_0x49fcb8[_0xbafb4b(0x1c8)]));const _0x5cc237=(Math[_0xbafb4b(0x210)](_0x49fcb8[_0xbafb4b(0x1a2)]-_0x2d730d[_0xbafb4b(0x1a2)])+0x1)*(Math[_0xbafb4b(0x210)](_0x49fcb8[_0xbafb4b(0x1c8)]-_0x2d730d[_0xbafb4b(0x1c8)])+0x1);_0x3861aa+=_0x5cc237+_0x102988++;if(_0x3861aa>MAX_ROWS)throw new Error(_0xbafb4b(0x1c9));}}}}}}}}),_0x191144?.['on'](_0x41f298(0x1a3),_0x49c6ca=>{const _0x57a6f7=_0x41f298;if(_0x431b17){_0x4bb5ac?.[_0x57a6f7(0x165)](_0x49c6ca);return;}if(_0x3404ce&&_0x3b86aa&&_0x49c6ca)_0x4ff992=!![];}),_0x191144?.['on'](_0x41f298(0x1b4),_0x362b29=>{const _0x3f11e3=_0x41f298;if(_0x431b17){_0x4bb5ac&&!_0x4bb5ac['parseClose']()&&(_0x2fdf17(_0x4bb5ac[_0x3f11e3(0x18d)]),_0x4bb5ac=undefined);return;}if(_0x362b29[_0x3f11e3(0x1d2)]==='c'){!_0x4ff992&&_0x5ea57d&&!_0x207f8e&&(_0x207f8e={'before':_0x396173,'cells':[]});if(_0x207f8e){if(++_0x1ffe6b>0xf4240)throw new Error(_0x3f11e3(0x153));_0x207f8e['cells'][_0x3f11e3(0x13d)]({'reference':_0x5ea57d,'address':_0x472081,'materialized':_0x4ff992});if(!_0x5ea57d&&_0x4ff992)_0x62d526=!![];}if(_0x4ff992){if(!_0x207f8e||_0x5ea57d){if(!_0x530713)throw new Error(_0x3f11e3(0x14b));if(_0x530713['col']>MAX_XML_COLUMNS)throw new Error(_0x3f11e3(0x158));_0x181661(_0x530713[_0x3f11e3(0x1c8)]);}_0x396173=_0x530713;}_0x3404ce=![],_0x530713=undefined,_0x5ea57d=undefined,_0x472081=undefined,_0x3b86aa=undefined;}else{if(_0x362b29[_0x3f11e3(0x1d2)]===_0x3f11e3(0x1a2)){if(_0x207f8e&&_0x62d526)_0x264322['push'](_0x207f8e);_0x207f8e=undefined,_0x62d526=![];}else{if(_0x362b29[_0x3f11e3(0x1d2)]===_0x3b86aa)_0x3b86aa=undefined;}}}),_0x191144?.['on'](_0x41f298(0x1ed),_0x18c6f9=>{const _0x5142a6=_0x41f298;throw new Error(_0x5142a6(0x16f)+_0x18c6f9['message']);}),_0x347b13['on'](_0x41f298(0x1ed),_0x39441f),_0x347b13['on'](_0x41f298(0x1fd),_0x4be59b=>{const _0x151dc8=_0x41f298;if(_0xd20503)return;_0x503941+=_0x4be59b[_0x151dc8(0x13e)],_0x1e5562?.[_0x151dc8(0x13d)](_0x4be59b);if(_0x503941>MAX_EXPANDED){_0x39441f(new Error(_0x151dc8(0x126)));return;}try{if(_0x4d19b3&&_0x3aac55)_0x4d19b3['write'](_0x3aac55[_0x151dc8(0x204)](_0x4be59b));if(_0x191144&&_0x5a64c8)_0x191144[_0x151dc8(0x204)](_0x5a64c8[_0x151dc8(0x204)](_0x4be59b));}catch(_0x21ba3d){_0x39441f(_0x21ba3d instanceof Error?_0x21ba3d:new Error(_0x151dc8(0x16b)));}}),_0x347b13['on'](_0x41f298(0x1be),()=>{const _0x34847a=_0x41f298;if(_0xd20503)return;try{if(_0x4d19b3&&_0x3aac55)_0x4d19b3['write'](_0x3aac55[_0x34847a(0x1be)]())['close']();if(_0x191144&&_0x5a64c8)_0x191144['write'](_0x5a64c8['end']())[_0x34847a(0x176)]();for(const _0x1f6127 of _0x264322){let _0x2fcb01=_0x1f6127[_0x34847a(0x16a)];for(const _0x43a50c of _0x1f6127[_0x34847a(0x1ad)]){if(!_0x43a50c[_0x34847a(0x144)]&&!(_0x43a50c[_0x34847a(0x193)]&&_0x5f18eb['has'](_0x43a50c[_0x34847a(0x193)])))continue;const _0x416c68=_0x43a50c[_0x34847a(0x1ec)]??(_0x2fcb01?{'row':_0x2fcb01[_0x34847a(0x1a2)],'col':_0x2fcb01[_0x34847a(0x1c8)]+0x1}:undefined);if(!_0x416c68)throw new Error('Invalid\x20worksheet\x20cell\x20without\x20an\x20initial\x20reference.');if(_0x416c68[_0x34847a(0x1c8)]>MAX_XML_COLUMNS)throw new Error(_0x34847a(0x158));_0x181661(_0x416c68[_0x34847a(0x1c8)]),_0x2fcb01=_0x416c68;}}_0x264322[_0x34847a(0x13e)]=0x0,_0x5f18eb[_0x34847a(0x12c)]();}catch(_0x4b0852){_0x39441f(_0x4b0852 instanceof Error?_0x4b0852:new Error(_0x34847a(0x16b)));return;}if(_0x1e5562)_0x59f974[_0x34847a(0x132)](_0x47cac0,Buffer['concat'](_0x1e5562));_0x38d108=undefined,_0x5631f2[_0x34847a(0x134)]();});});}),_0x5631f2['on'](_0x42a982(0x1be),()=>{const _0x2bf323=_0x42a982;if(_0xd20503)return;if(_0x5631f2[_0x2bf323(0x17d)]!==_0x1edbfe){_0xbaaf4e(new Error(_0x2bf323(0x200)));return;}if(!_0x2329e2[_0x2bf323(0x20f)](_0x2bf323(0x161))||!_0x2329e2[_0x2bf323(0x20f)](_0x2bf323(0x1c2)))_0xbaaf4e(new Error(_0x2bf323(0x147)));else _0x160419();}),_0x5631f2[_0x42a982(0x134)]();});});}function valueOf(_0x5d8bc2){const _0x5b680b=a144_0x4d4b9d,_0x221ea2=_0x5d8bc2[_0x5b680b(0x128)];if(_0x221ea2&&typeof _0x221ea2==='object'&&(_0x5b680b(0x1c7)in _0x221ea2||_0x5b680b(0x1e1)in _0x221ea2)){if(!(_0x5b680b(0x18e)in _0x221ea2)||_0x221ea2[_0x5b680b(0x18e)]===undefined)throw new Error(_0x5b680b(0x1cd));return _0x221ea2[_0x5b680b(0x18e)];}return _0x221ea2;}function convert(_0x39b493,_0x468bda){const _0x510d1a=a144_0x4d4b9d;if(_0x39b493===null||_0x39b493===undefined||_0x39b493===''){if(_0x468bda[_0x510d1a(0x1f0)]&&!_0x468bda[_0x510d1a(0x186)])throw new Error('Required\x20value\x20is\x20missing.');return null;}if(typeof _0x39b493===_0x510d1a(0x12a)&&Buffer['byteLength'](_0x39b493,'utf8')>MAX_CELL)throw new Error('Cell\x20exceeds\x2064\x20KB.');switch(_0x468bda['type'][_0x510d1a(0x1d3)]()){case'string':case _0x510d1a(0x1a3):case _0x510d1a(0x1e5):if(typeof _0x39b493!=='string')throw new Error(_0x510d1a(0x197));return _0x39b493;case _0x510d1a(0x174):case'decimal':case _0x510d1a(0x1bf):if(typeof _0x39b493!==_0x510d1a(0x174)||!Number['isFinite'](_0x39b493)||Math[_0x510d1a(0x210)](_0x39b493)>Number[_0x510d1a(0x1ca)]||_0x468bda['type'][_0x510d1a(0x1d3)]()==='integer'&&!Number[_0x510d1a(0x12b)](_0x39b493))throw new Error(_0x510d1a(0x1f2));return _0x39b493;case'boolean':if(typeof _0x39b493!==_0x510d1a(0x139))throw new Error('Expected\x20a\x20boolean\x20cell.');return _0x39b493;case _0x510d1a(0x20c):case _0x510d1a(0x154):if(!(_0x39b493 instanceof Date)||!Number[_0x510d1a(0x1d8)](_0x39b493[_0x510d1a(0x18c)]()))throw new Error(_0x510d1a(0x194));return _0x39b493[_0x510d1a(0x18c)]();default:throw new Error('Unsupported\x20field\x20type:\x20'+_0x468bda[_0x510d1a(0x212)]+'.');}}export async function buildExcelManifest(_0x5788bb){const _0x595e9b=a144_0x4d4b9d,_0x1502a3=_0x5788bb['headerRow']??0x1;if(!Number[_0x595e9b(0x12b)](_0x1502a3)||_0x1502a3<0x1||_0x1502a3>MAX_ROWS)throw new Error(_0x595e9b(0x168));if(_0x5788bb[_0x595e9b(0x199)]!==undefined&&(!Number[_0x595e9b(0x12b)](_0x5788bb[_0x595e9b(0x199)])||_0x5788bb[_0x595e9b(0x199)]<0x1||_0x5788bb[_0x595e9b(0x199)]>0x3e8))throw new Error(_0x595e9b(0x1bc));if(a144_0x45e51a[_0x595e9b(0x1f5)](_0x5788bb[_0x595e9b(0x131)])[_0x595e9b(0x1d3)]()!==_0x595e9b(0x143))throw new Error(_0x595e9b(0x122));const _0x5b4b65=await stat(_0x5788bb[_0x595e9b(0x131)]);if(!_0x5b4b65['isFile']()||_0x5b4b65[_0x595e9b(0x18b)]>MAX_FILE)throw new Error(_0x595e9b(0x129));const _0x2abfdf=await readFile(_0x5788bb[_0x595e9b(0x131)]);if(_0x2abfdf[_0x595e9b(0x13e)]>MAX_FILE)throw new Error(_0x595e9b(0x177));const _0x40033d=_0x5788bb[_0x595e9b(0x1dc)][_0x595e9b(0x1d1)](_0x282988=>isImageContainer(_0x282988[_0x595e9b(0x212)])&&Object['values'](_0x5788bb[_0x595e9b(0x19d)])['includes'](_0x282988[_0x595e9b(0x1f8)]))?new Map():undefined;await checkArchive(_0x2abfdf,_0x40033d);const _0x20ddc1=new a144_0x13936f[(_0x595e9b(0x1ce))]();await _0x20ddc1['xlsx']['load'](_0x2abfdf,{'ignoreNodes':[_0x595e9b(0x1ae)]});const _0x1ea41a=_0x5788bb['sheet'];let _0xc8a34;if(_0x1ea41a===undefined)_0xc8a34=_0x20ddc1[_0x595e9b(0x13f)][0x0];else{if(typeof _0x1ea41a===_0x595e9b(0x12a)&&_0x20ddc1[_0x595e9b(0x13f)]['some'](_0xe80e3=>_0xe80e3[_0x595e9b(0x1d2)]===_0x1ea41a))_0xc8a34=_0x20ddc1['worksheets']['find'](_0x4191db=>_0x4191db['name']===_0x1ea41a);else{if(typeof _0x1ea41a===_0x595e9b(0x174)||/^\d+$/[_0x595e9b(0x1eb)](_0x1ea41a)){const _0xf2adee=Number(_0x1ea41a);if(!Number[_0x595e9b(0x12b)](_0xf2adee)||_0xf2adee<0x1)throw new Error(_0x595e9b(0x1a8));_0xc8a34=_0x20ddc1[_0x595e9b(0x13f)][_0xf2adee-0x1];}else _0xc8a34=_0x20ddc1['worksheets'][_0x595e9b(0x19b)](_0x4da5fb=>_0x4da5fb[_0x595e9b(0x1d2)]===_0x1ea41a);}}if(!_0xc8a34)throw new Error(_0x595e9b(0x1e2));if(_0xc8a34[_0x595e9b(0x127)]>MAX_ROWS||_0xc8a34['columnCount']>MAX_COLUMNS)throw new Error(_0x595e9b(0x14d));if((_0xc8a34[_0x595e9b(0x18d)]['merges']??[])[_0x595e9b(0x13e)])throw new Error(_0x595e9b(0x1d7));const _0x18d19d=new Map();_0xc8a34[_0x595e9b(0x1d4)](_0x1502a3)['eachCell']((_0xf8124f,_0x1bfdbe)=>{const _0x579e1c=_0x595e9b,_0x55df97=valueOf(_0xf8124f);if(typeof _0x55df97!==_0x579e1c(0x12a)||!_0x55df97[_0x579e1c(0x1e6)]()||Buffer[_0x579e1c(0x1da)](_0x55df97)>MAX_CELL)throw new Error(_0x579e1c(0x15b));if(_0x18d19d[_0x579e1c(0x20f)](_0x55df97))throw new Error(_0x579e1c(0x1d6)+_0x55df97+'.');_0x18d19d[_0x579e1c(0x132)](_0x55df97,_0x1bfdbe);});const _0x61d503=Object[_0x595e9b(0x1ef)](_0x5788bb[_0x595e9b(0x19d)]);if(!_0x61d503[_0x595e9b(0x13e)])throw new Error(_0x595e9b(0x1c4));const _0x1449e1=new Map(_0x5788bb[_0x595e9b(0x1dc)][_0x595e9b(0x14f)](_0x5a7765=>[_0x5a7765[_0x595e9b(0x1f8)],_0x5a7765]));if(_0x1449e1[_0x595e9b(0x18b)]!==_0x5788bb[_0x595e9b(0x1dc)]['length'])throw new Error(_0x595e9b(0x1e3));if(_0x5788bb[_0x595e9b(0x1dc)][_0x595e9b(0x1d1)](_0x2e8c83=>_0x2e8c83[_0x595e9b(0x212)][_0x595e9b(0x1d3)]()==='serial_number'))throw new Error('Unsupported\x20dataset\x20field\x20type:\x20serial_number.');const _0x4f913f=new Set();for(const [_0x250386,_0x2b8c3b]of _0x61d503){const _0x3a2159=_0x1449e1[_0x595e9b(0x211)](_0x2b8c3b);if(!_0x18d19d['has'](_0x250386))throw new Error(_0x595e9b(0x15e)+_0x250386+'.');if(!_0x3a2159||RESERVED['has'](_0x2b8c3b)||_0x3a2159['generated'])throw new Error(_0x595e9b(0x1e7)+_0x2b8c3b+'.');if(_0x4f913f['has'](_0x2b8c3b))throw new Error('Duplicate\x20mapping\x20target:\x20'+_0x2b8c3b+'.');if(!TYPES[_0x595e9b(0x20f)](_0x3a2159[_0x595e9b(0x212)]['toLowerCase']()))throw new Error(_0x595e9b(0x203)+_0x3a2159['type']+'.');_0x4f913f['add'](_0x2b8c3b);}for(const _0x10039b of _0x5788bb[_0x595e9b(0x1dc)]){if(_0x10039b['required']&&!_0x10039b['generated']&&!RESERVED[_0x595e9b(0x20f)](_0x10039b[_0x595e9b(0x1f8)])&&!_0x4f913f[_0x595e9b(0x20f)](_0x10039b[_0x595e9b(0x1f8)]))throw new Error(_0x595e9b(0x1a9)+_0x10039b[_0x595e9b(0x1f8)]+'.');}const _0x564cb0={'fileHash':hash(_0x2abfdf),'mappingHash':hash(JSON['stringify']([..._0x61d503][_0x595e9b(0x14a)](([_0x4a801f],[_0x279673])=>_0x4a801f['localeCompare'](_0x279673)))),'schemaHash':hash(JSON[_0x595e9b(0x209)]([..._0x5788bb[_0x595e9b(0x1dc)]][_0x595e9b(0x14a)]((_0x1318c0,_0x2eba2f)=>_0x1318c0[_0x595e9b(0x1f8)]['localeCompare'](_0x2eba2f[_0x595e9b(0x1f8)])))),'sheet':_0xc8a34['name'],'rows':[],'emptyRows':[],'errors':[],'warnings':[]},_0x3592a7=_0x61d503[_0x595e9b(0x160)](([,_0x16b00d])=>isImageContainer(_0x1449e1[_0x595e9b(0x211)](_0x16b00d)[_0x595e9b(0x212)])),_0x3a311e=_0x3592a7[_0x595e9b(0x160)](([,_0x2617d1])=>_0x1449e1[_0x595e9b(0x211)](_0x2617d1)[_0x595e9b(0x212)][_0x595e9b(0x1d3)]()===_0x595e9b(0x163))[_0x595e9b(0x14f)](([,_0x405246])=>_0x405246);if(_0x3a311e['length'])_0x564cb0[_0x595e9b(0x166)]=_0x3a311e;const _0x21d72a=_0x40033d?resolveWorksheetImages(_0x40033d,_0xc8a34[_0x595e9b(0x1d2)],new Set(_0x3592a7['map'](([_0x46c0a6])=>_0x18d19d[_0x595e9b(0x211)](_0x46c0a6)))):[],_0x44ab60=new Map();for(const _0x122e7d of _0x21d72a){const _0x3a745c=_0x122e7d[_0x595e9b(0x1a2)]+':'+_0x122e7d['col'],_0x544c25=_0x44ab60[_0x595e9b(0x211)](_0x3a745c)??[];_0x544c25[_0x595e9b(0x13d)](_0x122e7d),_0x44ab60[_0x595e9b(0x132)](_0x3a745c,_0x544c25);}const _0x46e21e=new Map();let _0x30bb92=0x0;_0x3592a7[_0x595e9b(0x13e)]&&(_0x564cb0[_0x595e9b(0x208)]=_0x3592a7[_0x595e9b(0x14f)](([,_0x286035])=>_0x286035),_0x564cb0[_0x595e9b(0x1f3)]=[],_0x564cb0[_0x595e9b(0x206)]=0x1,_0x564cb0[_0x595e9b(0x159)]=[]);const _0x5266fa=Math[_0x595e9b(0x20a)](0x0,..._0x21d72a[_0x595e9b(0x14f)](_0x426b84=>_0x426b84['row']));let _0x373f11=0x0;const _0x4e69f=new Set(_0x61d503[_0x595e9b(0x14f)](([_0x44fbdf])=>_0x18d19d[_0x595e9b(0x211)](_0x44fbdf)));for(let _0x340404=_0x1502a3+0x1;_0x340404<=Math[_0x595e9b(0x20a)](_0xc8a34[_0x595e9b(0x127)],_0x5266fa);_0x340404++){const _0x1be5ee=_0xc8a34[_0x595e9b(0x1d4)](_0x340404);if(_0x1be5ee['hidden']||_0x21d72a[_0x595e9b(0x1d1)](_0x5b3dc4=>_0x5b3dc4[_0x595e9b(0x1a2)]===_0x340404&&_0x5b3dc4[_0x595e9b(0x202)]))_0x373f11++;let _0x5e01ce=_0x21d72a['some'](_0x41ead0=>_0x41ead0[_0x595e9b(0x1a2)]===_0x340404);_0x1be5ee[_0x595e9b(0x1c1)](_0x3f801f=>{const _0x7c69a=_0x595e9b;if(_0x3f801f[_0x7c69a(0x128)]!==null&&_0x3f801f[_0x7c69a(0x128)]!==undefined&&_0x3f801f['value']!=='')_0x5e01ce=!![];});if(!_0x5e01ce){_0x564cb0['emptyRows'][_0x595e9b(0x13d)](_0x340404);continue;}const _0xb1bfc1=Object['create'](null);_0x1be5ee[_0x595e9b(0x1c1)]((_0x30c932,_0x5157c5)=>{const _0x3f1a1f=_0x595e9b;if(_0x4e69f[_0x3f1a1f(0x20f)](_0x5157c5))return;try{const _0x250fcc=valueOf(_0x30c932);if(typeof _0x250fcc===_0x3f1a1f(0x12a)&&Buffer['byteLength'](_0x250fcc,'utf8')>MAX_CELL)throw new Error('Cell\x20exceeds\x2064\x20KB.');}catch(_0x567b91){_0x564cb0[_0x3f1a1f(0x14c)][_0x3f1a1f(0x13d)]({'rowNumber':_0x340404,'field':_0x30c932[_0x3f1a1f(0x1ec)],'message':_0x567b91[_0x3f1a1f(0x1b8)]});}});for(const [_0x517ee5,_0x42f20d]of _0x61d503){try{const _0x2baf5e=_0x1be5ee[_0x595e9b(0x1fc)](_0x18d19d[_0x595e9b(0x211)](_0x517ee5)),_0x2fb783=_0x1449e1[_0x595e9b(0x211)](_0x42f20d);if(!isImageContainer(_0x2fb783[_0x595e9b(0x212)])){_0xb1bfc1[_0x42f20d]=convert(valueOf(_0x2baf5e),_0x2fb783);continue;}const _0x4ca967=_0x44ab60[_0x595e9b(0x211)](_0x340404+':'+_0x18d19d[_0x595e9b(0x211)](_0x517ee5))??[];if(_0x4ca967[_0x595e9b(0x1d1)](_0x13621f=>_0x13621f[_0x595e9b(0x1ed)]))throw Error(_0x4ca967[_0x595e9b(0x19b)](_0x1329d9=>_0x1329d9[_0x595e9b(0x1ed)])[_0x595e9b(0x1ed)]);if(_0x2baf5e[_0x595e9b(0x128)]!=null&&_0x2baf5e[_0x595e9b(0x128)]!==''&&!_0x4ca967['some'](_0x118b3c=>_0x118b3c[_0x595e9b(0x1bb)]))throw Error(_0x595e9b(0x137));const _0x25a565=[];for(const _0x5a3de8 of _0x4ca967)for(const _0x4b30f3 of _0x5a3de8['media']){const _0x2e7aa3=_0x40033d[_0x595e9b(0x211)](_0x4b30f3);if(!_0x2e7aa3)throw Error(_0x595e9b(0x1e4)+_0x4b30f3+'.');const _0x23df1e=hash(_0x2e7aa3),_0x1317c9=_0x46e21e[_0x595e9b(0x211)](_0x23df1e)??validateImageBytes(_0x2e7aa3);if(!_0x46e21e[_0x595e9b(0x20f)](_0x1317c9[_0x595e9b(0x145)])){_0x30bb92+=_0x1317c9[_0x595e9b(0x18b)];if(_0x30bb92>0x32*0x400*0x400)throw Error(_0x595e9b(0x190));_0x46e21e[_0x595e9b(0x132)](_0x1317c9[_0x595e9b(0x145)],_0x1317c9);}_0x25a565['push'](_0x1317c9[_0x595e9b(0x145)]);}if(!_0x25a565[_0x595e9b(0x13e)]&&_0x2fb783['required'])throw Error('Required\x20image\x20value\x20is\x20missing.');if(_0x25a565[_0x595e9b(0x13e)])_0x564cb0[_0x595e9b(0x1f3)][_0x595e9b(0x13d)]({'rowNumber':_0x340404,'field':_0x42f20d,'hashes':_0x25a565});_0xb1bfc1[_0x42f20d]=_0x25a565[_0x595e9b(0x14f)](_0xecab93=>{const _0xfebd58=_0x595e9b,_0x50165b=_0x46e21e[_0xfebd58(0x211)](_0xecab93),_0x1c22b7=_0x50165b[_0xfebd58(0x212)]===_0xfebd58(0x20e)?_0xfebd58(0x17b):_0x50165b[_0xfebd58(0x212)][_0xfebd58(0x17a)](0x6),_0x264e58=_0xecab93+'.'+_0x1c22b7,_0x22de9b=_0xfebd58(0x1ac)+'0'['repeat'](0x40)+'/'+_0x264e58;return _0x2fb783[_0xfebd58(0x212)][_0xfebd58(0x1d3)]()===_0xfebd58(0x163)?{'fileName':_0x264e58,'filePath':_0x22de9b}:{'key':_0x22de9b,'name':_0x264e58,'type':_0x50165b[_0xfebd58(0x212)],'size':_0x50165b[_0xfebd58(0x18b)]};});}catch(_0x29962b){_0x564cb0[_0x595e9b(0x14c)][_0x595e9b(0x13d)]({'rowNumber':_0x340404,'field':_0x42f20d,'message':_0x29962b[_0x595e9b(0x1b8)]});}}_0x564cb0['rows'][_0x595e9b(0x13d)]({'rowNumber':_0x340404,'values':_0xb1bfc1});}if(_0x564cb0[_0x595e9b(0x159)])_0x564cb0[_0x595e9b(0x159)]=[..._0x46e21e[_0x595e9b(0x1ab)]()];if(_0x373f11)_0x564cb0[_0x595e9b(0x152)][_0x595e9b(0x13d)](_0x373f11+'\x20hidden\x20row(s)\x20are\x20included\x20in\x20the\x20import.');return _0x564cb0;}
1
+ function a144_0x2d35(_0x56d95b,_0x247bf){_0x56d95b=_0x56d95b-0xf6;const _0x538373=a144_0x5383();let _0x2d3515=_0x538373[_0x56d95b];return _0x2d3515;}const a144_0x17e727=a144_0x2d35;(function(_0x12fd87,_0x2863bc){const _0x45504a=a144_0x2d35,_0x544c27=_0x12fd87();while(!![]){try{const _0x65937b=parseInt(_0x45504a(0x1bc))/0x1*(-parseInt(_0x45504a(0x14a))/0x2)+-parseInt(_0x45504a(0x131))/0x3*(parseInt(_0x45504a(0x104))/0x4)+parseInt(_0x45504a(0x18a))/0x5*(-parseInt(_0x45504a(0xff))/0x6)+parseInt(_0x45504a(0x154))/0x7+parseInt(_0x45504a(0x158))/0x8*(-parseInt(_0x45504a(0x1a3))/0x9)+parseInt(_0x45504a(0x13b))/0xa*(-parseInt(_0x45504a(0x19b))/0xb)+parseInt(_0x45504a(0x183))/0xc;if(_0x65937b===_0x2863bc)break;else _0x544c27['push'](_0x544c27['shift']());}catch(_0x212796){_0x544c27['push'](_0x544c27['shift']());}}}(a144_0x5383,0xcedea));import{readFile,stat}from'node:fs/promises';import{createHash}from'node:crypto';import a144_0x387b75 from'node:path';import{StringDecoder}from'node:string_decoder';import{createRequire}from'node:module';import{SaxesParser}from'saxes';import a144_0x1949ff from'exceljs';import a144_0x34d48e 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','tenantCode',a144_0x17e727(0x17e),a144_0x17e727(0x176),a144_0x17e727(0x1dc),a144_0x17e727(0x1cc),a144_0x17e727(0x159),'modifierName',a144_0x17e727(0x10a),a144_0x17e727(0x1cb),a144_0x17e727(0x1e1)]),TYPES=new Set([a144_0x17e727(0x16a),a144_0x17e727(0x1b5),a144_0x17e727(0x178),a144_0x17e727(0x197),a144_0x17e727(0x10b),a144_0x17e727(0x11a),a144_0x17e727(0x1e5),'date',a144_0x17e727(0x1c5),a144_0x17e727(0x150),'upload']),isImageContainer=_0x126231=>[a144_0x17e727(0x150),a144_0x17e727(0x142)][a144_0x17e727(0x161)](_0x126231[a144_0x17e727(0xfa)]()),hash=_0x510edf=>createHash(a144_0x17e727(0x133))['update'](_0x510edf)[a144_0x17e727(0x19e)](a144_0x17e727(0x143)),require=createRequire(import.meta.url),DefinedNameXform=require(a144_0x17e727(0x1b8)),nameCoordinates=require('exceljs/lib/utils/col-cache.js'),ABSOLUTE_NAME_RANGE=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/,excelRequire=createRequire(require[a144_0x17e727(0x1dd)](a144_0x17e727(0x169))),zipRequire=createRequire(excelRequire[a144_0x17e727(0x1dd)](a144_0x17e727(0x13e))),ZipEntry=zipRequire(a144_0x17e727(0x18f)),zipReader=zipRequire(a144_0x17e727(0x17a)),zipUtf8=zipRequire(a144_0x17e727(0x12b)),zipPaths=zipRequire(a144_0x17e727(0x17b));function a144_0x5383(){const _0xa77d7c=['XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.','parserVersion','test','isInteger','20nuVWJk','equals','Required\x20field\x20is\x20not\x20mapped:\x20','jszip','ZIP\x20local\x20and\x20central\x20entry\x20names\x20must\x20match.','Requested\x20worksheet\x20does\x20not\x20exist.','Invalid\x20worksheet\x20nested\x20cell.','upload','hex','required','parseText','opentag','left','Non-canonical\x20or\x20duplicate\x20image\x20archive\x20entry.','attributes','36kBrcrK','right','Invalid\x20worksheet\x20cell\x20or\x20merge\x20reference.','localeCompare','generated','sort','image','doctype','Expected\x20an\x20Excel\x20date\x20cell.','readEntry','7507227gIjvvV','Worksheet\x20exceeds\x2016384\x20columns.','xlsx','Duplicate\x20header:\x20','4096528rACBni','modifierId','entry','values','dir','abs','versionMadeBy','properties','batchSize','includes','isFinite','directory','top','extraFieldsLength','parseOpen','name','imageFields','exceljs','string','byteLength','fileComment','contentHash','Invalid\x20dataset\x20field\x20extension\x20metadata.','XLSX\x20file\x20exceeds\x2020\x20MB.','Unsupported\x20dataset\x20field\x20type:\x20serial_number.','errors','columnCount','slice','has','MAX_SAFE_INTEGER','datasetId','Missing\x20image\x20media:\x20','textarea','batchSize\x20must\x20be\x20between\x201\x20and\x201000.','./reader/readerFor','./utils','entries','set','appCode','fileNameStr','readEntryCursor','Invalid\x20worksheet\x20coordinate.','.xlsx','61622148CZTaND','XML\x20DTD/entities\x20are\x20not\x20supported.','image/jpeg','Image\x20XML\x20event\x20budget\x20exceeded.','Worksheet\x20merge\x20work\x20exceeds\x20100000.','repeat','Unique\x20image\x20bytes\x20exceed\x2050\x20MB.','80clUXhI','Workbook\x20defined\x20name\x20work\x20exceeds\x20100000.','object','materialized','reference','./zipEntry','Expected\x20a\x20text\x20cell.','getCell','model','media','Invalid\x20worksheet\x20XML:\x20','Invalid\x20worksheet\x20XML.','Unknown\x20or\x20generated\x20mapping\x20field:\x20','number','result','Only\x20.xlsx\x20files\x20are\x20supported.','readUInt32LE','4168263GdDwcT','readUInt16LE','getTime','digest','isFile','XLSX\x20file\x20must\x20be\x20a\x20regular\x20file\x20no\x20larger\x20than\x2020\x20MB.','sharedFormula','hyperlink','27eCvbQi','[Content_Types].xml','merges','map','error','get','file','formula','isBuffer','mergeCell','_xlnm.Print_Area','filter','utf8decode','fields','definedName','readExtraFields','nativeCell','Unsupported\x20field\x20type:\x20','text','doType','bottom','exceljs/lib/xlsx/xform/book/defined-name-xform.js','value','rowCount','dataset-import/','58983PQDmfy','uploadFields','Non-canonical\x20worksheet\x20ZIP\x20entry.','exec','relativeOffsetOfLocalHeader','Worksheet\x20exceeds\x20100000\x20rows\x20or\x20256\x20columns.','size','row','getRow','datetime','closetag','serial_number','dataValidations','processAttributes','Duplicate\x20mapping\x20target:\x20','updateTime','creatorName','concat','Invalid\x20worksheet\x20hyperlink\x20reference.','find','jpg','write','isSafeInteger','Invalid\x20worksheet\x20cell\x20without\x20an\x20initial\x20reference.','compressedSize','type','startsWith','rows','ref','parseClose','hiddenRow','Expected\x20a\x20finite\x20safe\x20numeric\x20cell.','creatorId','resolve','Sheet\x20index\x20must\x20be\x20a\x20positive\x20one-based\x20integer.','code','generalPurposeBitFlag','deleted','parseInt','close','dataType','boolean','Non-canonical\x20workbook\x20or\x20worksheet\x20ZIP\x20entry.','headerRow\x20must\x20be\x20between\x201\x20and\x20100000.','add','Unknown\x20Excel\x20header:\x20','push','extraFieldRaw','some','subarray','xl/workbook.xml','toLowerCase','worksheets','from','externalFileAttributes','message','145578auUkgA','clear','headerRow','fileNameRaw','extend','6465344gFScVY','eachCell','handleUTF8','Worksheet\x20coordinate\x20exceeds\x20','Image\x20cell\x20contains\x20scalar\x20or\x20mixed\x20content.','Invalid\x20worksheet\x20nested\x20row.','createTime','decimal','imageCells','trim','hidden','destroy','Invalid\x20worksheet\x20merge\x20reference.','_xlnm.Print_Titles','sheet','ranges','stringify','Image\x20XML\x20node\x20budget\x20exceeded.','split','original','METADATA','emptyRows','integer','Formula\x20has\x20no\x20cached\x20result.','pop','end','Mapping\x20must\x20contain\x20at\x20least\x20one\x20field.','Excel\x20import\x20only\x20supports\x20METADATA\x20datasets.','col','Invalid\x20defined\x20name\x20coordinate.','utf8','every','cells','\x20hidden\x20row(s)\x20are\x20included\x20in\x20the\x20import.','address','decodeEx','create','openReadStream','before','./utf8','uncompressedSize','max','File\x20is\x20not\x20an\x20XLSX\x20workbook.','extname','Invalid\x20ZIP\x20local\x20file\x20header.','3ZlNeKV','isArray','sha256','Headers\x20must\x20be\x20non-empty\x20text\x20cells\x20no\x20larger\x20than\x2064\x20KB.','length','load'];a144_0x5383=function(){return _0xa77d7c;};return a144_0x5383();}function centralDirectoryEnd(_0x162bd2,_0x4c66c8){const _0x4fe606=a144_0x17e727,_0xcb5732=()=>new Error('Invalid\x20ZIP\x20central\x20directory\x20layout.'),_0x28e03b=_0x162bd2['lastIndexOf'](Buffer[_0x4fe606(0xfc)]([0x50,0x4b,0x5,0x6]));if(_0x28e03b<0x0||_0x28e03b+0x16>_0x162bd2[_0x4fe606(0x135)]||_0x28e03b+0x16+_0x162bd2['readUInt16LE'](_0x28e03b+0x14)!==_0x162bd2['length'])throw _0xcb5732();let _0xdbbf86=_0x162bd2[_0x4fe606(0x19c)](_0x28e03b+0xa),_0xb22075=_0x162bd2[_0x4fe606(0x19a)](_0x28e03b+0xc),_0x138172=_0x162bd2[_0x4fe606(0x19a)](_0x28e03b+0x10),_0x4ca7d7=_0x28e03b;const _0x41fb48=_0x28e03b-0x14,_0x557d73=_0x41fb48>=0x0&&_0x162bd2[_0x4fe606(0x19a)](_0x41fb48)===0x7064b50,_0x35c7b9=[0x4,0x6,0x8,0xa][_0x4fe606(0xf7)](_0x19a23a=>_0x162bd2['readUInt16LE'](_0x28e03b+_0x19a23a)===0xffff)||_0xb22075===0xffffffff||_0x138172===0xffffffff;if(_0x557d73!==_0x35c7b9)throw _0xcb5732();if(_0x557d73){if(_0x162bd2['lastIndexOf'](Buffer[_0x4fe606(0xfc)]([0x50,0x4b,0x6,0x7]))!==_0x41fb48)throw _0xcb5732();const _0xd7d725=_0xd8398=>{const _0x43f5d2=_0x4fe606,_0x5b3aae=Number(_0x162bd2['readBigUInt64LE'](_0xd8398));if(!Number[_0x43f5d2(0x1d2)](_0x5b3aae))throw _0xcb5732();return _0x5b3aae;};_0x4ca7d7=_0xd7d725(_0x41fb48+0x8);if(_0x162bd2[_0x4fe606(0x19a)](_0x41fb48+0x4)!==0x0||_0x162bd2[_0x4fe606(0x19a)](_0x41fb48+0x10)!==0x1||_0x4ca7d7>_0x41fb48-0x38||_0x162bd2[_0x4fe606(0x19a)](_0x4ca7d7)!==0x6064b50||_0xd7d725(_0x4ca7d7+0x4)!==0x2c||_0x4ca7d7+0x38!==_0x41fb48||_0x162bd2[_0x4fe606(0x19a)](_0x4ca7d7+0x10)!==0x0||_0x162bd2[_0x4fe606(0x19a)](_0x4ca7d7+0x14)!==0x0)throw _0xcb5732();_0xdbbf86=_0xd7d725(_0x4ca7d7+0x20),_0xb22075=_0xd7d725(_0x4ca7d7+0x28),_0x138172=_0xd7d725(_0x4ca7d7+0x30);if(_0xd7d725(_0x4ca7d7+0x18)!==_0xdbbf86)throw _0xcb5732();}else{if(_0x162bd2[_0x4fe606(0x19c)](_0x28e03b+0x4)!==0x0||_0x162bd2[_0x4fe606(0x19c)](_0x28e03b+0x6)!==0x0||_0x162bd2[_0x4fe606(0x19c)](_0x28e03b+0x8)!==_0xdbbf86)throw _0xcb5732();}const _0x34bf35=_0x4c66c8[_0x4fe606(0x180)];if(_0x138172!==_0x34bf35||_0xdbbf86!==_0x4c66c8['entryCount']||_0x138172+_0xb22075!==_0x4ca7d7)throw _0xcb5732();return _0x4ca7d7;}function consumerEntryName(_0x2d7a63,_0x11b487){const _0x5aa473=a144_0x17e727;if(_0x11b487['extraFields']['filter'](_0x5077ca=>_0x5077ca['id']===0x1)['length']>0x1)throw new Error('Duplicate\x20ZIP64\x20extended\x20information\x20fields\x20are\x20not\x20supported.');const _0x17da0=_0x11b487,_0x5e9759=_0x11b487[_0x5aa473(0x1c0)];if(!Buffer[_0x5aa473(0x1ab)](_0x17da0[_0x5aa473(0x102)])||!Buffer[_0x5aa473(0x1ab)](_0x17da0[_0x5aa473(0xf6)])||!Buffer[_0x5aa473(0x1ab)](_0x17da0['fileCommentRaw'])||!Number[_0x5aa473(0x1d2)](_0x5e9759)||_0x5e9759<0x0||_0x5e9759>_0x2d7a63[_0x5aa473(0x135)]-0x1e||_0x2d7a63[_0x5aa473(0x19a)](_0x5e9759)!==0x4034b50)throw new Error(_0x5aa473(0x130));const _0x8f28cf=_0x5e9759+0x1e+_0x2d7a63[_0x5aa473(0x19c)](_0x5e9759+0x1a),_0x255355=_0x8f28cf+_0x2d7a63[_0x5aa473(0x19c)](_0x5e9759+0x1c)+_0x11b487[_0x5aa473(0x1d4)];if(!Number[_0x5aa473(0x1d2)](_0x255355)||_0x255355>_0x2d7a63[_0x5aa473(0x135)])throw new Error(_0x5aa473(0x130));if(_0x8f28cf>_0x2d7a63[_0x5aa473(0x135)]||!_0x2d7a63[_0x5aa473(0xf8)](_0x5e9759+0x1e,_0x8f28cf)[_0x5aa473(0x13c)](_0x17da0[_0x5aa473(0x102)]))throw new Error(_0x5aa473(0x13f));const _0x2ee8a4=new ZipEntry({},{'decodeFileName':zipUtf8[_0x5aa473(0x1af)]});_0x2ee8a4['bitFlag']=_0x11b487[_0x5aa473(0x1e0)],_0x2ee8a4['fileName']=_0x17da0[_0x5aa473(0x102)],_0x2ee8a4[_0x5aa473(0x16c)]=_0x17da0['fileCommentRaw'],_0x2ee8a4[_0x5aa473(0x165)]=_0x17da0[_0x5aa473(0xf6)][_0x5aa473(0x135)],_0x2ee8a4[_0x5aa473(0x1b2)](zipReader(_0x17da0['extraFieldRaw'])),_0x2ee8a4[_0x5aa473(0x106)](),_0x2ee8a4[_0x5aa473(0x15e)]=_0x11b487[_0x5aa473(0x15e)],_0x2ee8a4[_0x5aa473(0xfd)]=_0x11b487[_0x5aa473(0xfd)],_0x2ee8a4[_0x5aa473(0x1c9)]();const _0xe00435=_0x2ee8a4[_0x5aa473(0x15c)]||Boolean((_0x2ee8a4['unixPermissions']??0x0)&0x4000),_0x56abd1=zipPaths[_0x5aa473(0x1dd)](_0x2ee8a4['fileNameStr']),_0x29064e=_0x56abd1[_0x5aa473(0x1d6)]('/')?_0x56abd1[_0x5aa473(0x173)](0x1):_0x56abd1;return{'name':_0x29064e,'original':_0x2ee8a4[_0x5aa473(0x17f)],'directory':_0xe00435};}export function normalizeImportFields(_0xbe8c3d){const _0x37a778=a144_0x17e727;if(!_0xbe8c3d||(_0xbe8c3d['source']??_0xbe8c3d['dataset']?.['sourceType'])!==_0x37a778(0x118))throw new Error(_0x37a778(0x11f));const _0x3c9594=Array['isArray'](_0xbe8c3d[_0x37a778(0x1b0)]),_0x3d397f=_0x3c9594?_0xbe8c3d[_0x37a778(0x1b0)]:_0xbe8c3d[_0x37a778(0x15f)];if(!Array[_0x37a778(0x132)](_0x3d397f)||_0x3d397f[_0x37a778(0x135)]===0x0)throw new Error('Dataset\x20field\x20metadata\x20is\x20missing.');const _0x45f954=[],_0x3fd9ab=new Set();for(const _0x3a4ebb of _0x3d397f){if(_0x3a4ebb[_0x37a778(0x1e1)]===!![])continue;let _0x58d527=_0x3a4ebb[_0x37a778(0x103)]??{};if(!_0x3c9594&&typeof _0x58d527==='string'){try{_0x58d527=JSON['parse'](_0x58d527);}catch{throw new Error(_0x37a778(0x16e));}if(!_0x58d527||typeof _0x58d527!==_0x37a778(0x18c)||Array['isArray'](_0x58d527))throw new Error(_0x37a778(0x16e));}const _0x527b90=_0x3c9594?_0x3a4ebb[_0x37a778(0x167)]:_0x3a4ebb['code'],_0x3691bc=_0x3c9594?_0x3a4ebb[_0x37a778(0x1b6)]:_0x3a4ebb[_0x37a778(0x1d5)]??_0x3a4ebb[_0x37a778(0x1e4)];if(typeof _0x527b90!==_0x37a778(0x16a)||!_0x527b90||typeof _0x3691bc!=='string'||_0x3fd9ab[_0x37a778(0x174)](_0x527b90))throw new Error('Invalid\x20or\x20duplicate\x20dataset\x20field\x20metadata.');if(_0x3691bc[_0x37a778(0xfa)]()===_0x37a778(0x1c7))throw new Error(_0x37a778(0x170));_0x3fd9ab[_0x37a778(0x1e8)](_0x527b90);const _0x266f5a=_0x3c9594?_0x3a4ebb:_0x58d527,_0x42d0a9={'code':_0x527b90,'type':_0x3691bc,'required':_0x266f5a[_0x37a778(0x144)]===!![]};if(RESERVED['has'](_0x527b90)||_0x266f5a[_0x37a778(0x14e)]===!![]||_0x266f5a['autoIncrement']===!![])_0x42d0a9[_0x37a778(0x14e)]=!![];_0x45f954[_0x37a778(0x1ea)](_0x42d0a9);}return _0x45f954;}async function checkArchive(_0x14091c,_0x36e554){await new Promise((_0x38b24c,_0xace151)=>{a144_0x34d48e['fromBuffer'](_0x14091c,{'lazyEntries':!![],'validateEntrySizes':!![]},(_0x367dd0,_0x5a8b84)=>{const _0x5af56a=a144_0x2d35;if(_0x367dd0||!_0x5a8b84){_0xace151(_0x367dd0??new Error('Invalid\x20XLSX\x20archive.'));return;}let _0x1eda9b;try{_0x1eda9b=centralDirectoryEnd(_0x14091c,_0x5a8b84);}catch(_0x5273c0){_0x5a8b84['close'](),_0xace151(_0x5273c0);return;}let _0x3cc5a4=0x0,_0x2cebaf=0x0,_0x40505d=0x0,_0x4f1180=0x0,_0x46c6c6=0x0,_0x20b32c=0x0,_0x3f5ed0=0x0,_0x204929=0x0,_0x281301=0x0,_0x4b8592=![],_0xfa8da7;const _0x4d4ca6=new Set(),_0x5aeb56=_0x3ac3ed=>{const _0x49607f=a144_0x2d35;if(_0x4b8592)return;_0x4b8592=!![],_0xfa8da7?.[_0x49607f(0x10f)](),_0x5a8b84[_0x49607f(0x1e3)](),_0xace151(_0x3ac3ed);},_0x5dfae6=(_0x1e429b,_0x286200)=>{const _0x2b80cb=a144_0x2d35;if(!_0x1e429b||!/^\d+$/['test'](_0x1e429b))throw new Error(_0x2b80cb(0x181));const _0x351887=Number(_0x1e429b);if(!Number[_0x2b80cb(0x1d2)](_0x351887)||_0x351887<0x1||_0x351887>_0x286200)throw new Error(_0x2b80cb(0x107)+_0x286200+'.');return _0x351887;},_0x5dd095=(_0x1e718e,_0x4542d1=MAX_XML_COLUMNS)=>{const _0x5ef212=a144_0x2d35,_0x12ef6b=/^\$?([A-Z]{1,3})\$?(\d+)$/[_0x5ef212(0x1bf)](_0x1e718e);if(!_0x12ef6b)throw new Error(_0x5ef212(0x14c));let _0x1357ab=0x0;for(const _0x3ddb98 of _0x12ef6b[0x1])_0x1357ab=_0x1357ab*0x1a+_0x3ddb98['charCodeAt'](0x0)-0x40;if(_0x1357ab>_0x4542d1)throw new Error('Worksheet\x20exceeds\x20'+_0x4542d1+'\x20columns.');return{'row':_0x5dfae6(_0x12ef6b[0x2],MAX_XML_ROWS),'col':_0x1357ab};},_0x31e3a2=_0xe0db15=>{const _0x2903ec=a144_0x2d35;if(_0xe0db15['name']===_0x2903ec(0x1ad)||_0xe0db15[_0x2903ec(0x167)]===_0x2903ec(0x111))return;for(const _0x36b4e9 of _0xe0db15[_0x2903ec(0x113)]){if(!ABSOLUTE_NAME_RANGE[_0x2903ec(0x139)](_0x36b4e9[_0x2903ec(0x116)]('!')[_0x2903ec(0x11c)]()||''))continue;const _0x2ae193=nameCoordinates[_0x2903ec(0x127)](_0x36b4e9),_0x271fae='top'in _0x2ae193,_0x120479=_0x271fae?[_0x2ae193[_0x2903ec(0x164)],_0x2ae193['bottom']]:[_0x2ae193[_0x2903ec(0x1c3)]],_0x5580d9=_0x271fae?[_0x2ae193[_0x2903ec(0x147)],_0x2ae193[_0x2903ec(0x14b)]]:[_0x2ae193[_0x2903ec(0x120)]],_0x1a94a3=(_0x5eea69,_0x19a46a)=>Number[_0x2903ec(0x1d2)](_0x5eea69)&&_0x5eea69>=0x1&&_0x5eea69<=_0x19a46a;if(!_0x120479['every'](_0x3857e5=>_0x1a94a3(_0x3857e5,MAX_XML_ROWS))||!_0x5580d9[_0x2903ec(0x123)](_0xab5366=>_0x1a94a3(_0xab5366,MAX_XML_COLUMNS)))throw new Error(_0x2903ec(0x121));_0x3f5ed0+=_0x271fae?(_0x2ae193[_0x2903ec(0x1b7)]-_0x2ae193['top']+0x1)*(_0x2ae193[_0x2903ec(0x14b)]-_0x2ae193[_0x2903ec(0x147)]+0x1):0x1;if(_0x3f5ed0>MAX_ROWS)throw new Error(_0x2903ec(0x18b));}};_0x5a8b84['on'](_0x5af56a(0x1a7),_0x5aeb56),_0x5a8b84['on'](_0x5af56a(0x15a),_0x20c02a=>{const _0x3f7d81=_0x5af56a;if(_0x4b8592)return;if(++_0x40505d>0x2710||(_0x3cc5a4+=_0x20c02a[_0x3f7d81(0x12c)])>MAX_EXPANDED){_0x5aeb56(new Error('XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.'));return;}let _0x4064fc;try{_0x4064fc=consumerEntryName(_0x14091c,_0x20c02a);}catch(_0x32aa5c){_0x5aeb56(_0x32aa5c);return;}if(_0x4064fc[_0x3f7d81(0x163)]){_0x5a8b84[_0x3f7d81(0x153)]();return;}const _0x418eb0=_0x4064fc[_0x3f7d81(0x167)];if(_0x36e554&&(_0x418eb0!==_0x4064fc[_0x3f7d81(0x117)]||_0x4d4ca6['has'](_0x418eb0)||_0x418eb0[_0x3f7d81(0x1d6)]('/')||_0x418eb0['includes']('\x5c'))){_0x5aeb56(new Error(_0x3f7d81(0x148)));return;}if(_0x418eb0!==_0x4064fc['original']&&(_0x418eb0==='xl/workbook.xml'||/xl\/worksheets\/sheet(\d+)[.]xml/[_0x3f7d81(0x139)](_0x418eb0))){_0x5aeb56(new Error(_0x3f7d81(0x1e6)));return;}const _0x3f932a=_0x418eb0===_0x3f7d81(0xf9);if(_0x3f932a&&_0x4d4ca6[_0x3f7d81(0x174)](_0x418eb0)){_0x5aeb56(new Error('Duplicate\x20workbook\x20ZIP\x20entry.'));return;}_0x4d4ca6[_0x3f7d81(0x1e8)](_0x418eb0);const _0x5cbede=/xl\/worksheets\/sheet(\d+)[.]xml/[_0x3f7d81(0x139)](_0x418eb0);if(_0x5cbede&&!/^xl\/worksheets\/sheet\d+[.]xml$/[_0x3f7d81(0x139)](_0x418eb0)){_0x5aeb56(new Error(_0x3f7d81(0x1be)));return;}_0x5a8b84[_0x3f7d81(0x129)](_0x20c02a,(_0x1e4314,_0x508536)=>{const _0x10a968=_0x3f7d81;if(_0x4b8592){_0x508536?.[_0x10a968(0x10f)]();return;}if(_0x1e4314||!_0x508536){_0x5aeb56(_0x1e4314??new Error('Invalid\x20XLSX\x20entry.'));return;}_0xfa8da7=_0x508536;const _0x4d95de=_0x36e554?[]:undefined,_0x448f96=_0x36e554&&/[.](xml|rels)$/[_0x10a968(0x139)](_0x418eb0)?new StringDecoder(_0x10a968(0x122)):undefined,_0x5a237a=_0x448f96?new SaxesParser({'xmlns':![]}):undefined,_0x5e2955=()=>{const _0x31d905=_0x10a968;if(++_0x281301>0x1e8480)throw Error(_0x31d905(0x186));};_0x5a237a?.['on'](_0x10a968(0x151),()=>{const _0x3e12bf=_0x10a968;throw Error(_0x3e12bf(0x184));}),_0x5a237a?.['on']('opentag',()=>{const _0x969213=_0x10a968;_0x5e2955();if(++_0x204929>0x7a120)throw Error(_0x969213(0x115));}),_0x5a237a?.['on'](_0x10a968(0x1b5),_0x5e2955),_0x5a237a?.['on']('closetag',_0x5e2955),_0x5a237a?.['on'](_0x10a968(0x1a7),_0x3c2676=>{throw _0x3c2676;});const _0x2f751c=_0x5cbede||_0x3f932a?new StringDecoder(_0x10a968(0x122)):undefined,_0x1751a3=_0x5cbede||_0x3f932a?new SaxesParser({'xmlns':![]}):undefined;let _0xe8de87,_0x5dfd08=0x0,_0x2aca21=0x0,_0x40f65a,_0x443d3b,_0x122d5a=![],_0x26d483=![],_0x41cdb8,_0x42b6a6,_0x23919e,_0x304287=![];const _0x9beab7=[],_0x401de5=new Set();let _0x591d8a;const _0x107a98=(_0xa09a8c,_0x33fe51=0x0)=>{const _0x5e0c6e=_0x10a968;_0x46c6c6+=_0x33fe51+Math[_0x5e0c6e(0x12d)](0x0,_0xa09a8c-_0x2aca21),_0x2aca21=Math[_0x5e0c6e(0x12d)](_0x2aca21,_0xa09a8c);if(_0x46c6c6>MAX_ROWS)throw new Error('Worksheet\x20column\x20objects\x20exceed\x20100000.');};_0x1751a3?.['on'](_0x10a968(0x146),_0x5b52c4=>{const _0x33726e=_0x10a968;if(_0x3f932a){if(!_0xe8de87&&_0x5b52c4['name']===_0x33726e(0x1b1))_0xe8de87=new DefinedNameXform();_0xe8de87?.[_0x33726e(0x166)](_0x5b52c4);return;}if(_0x5b52c4['name']==='row'){if(_0x26d483)throw new Error(_0x33726e(0x109));_0x5dfae6(_0x5b52c4[_0x33726e(0x149)]['r'],MAX_XML_ROWS),_0x40f65a=undefined,_0x23919e=undefined,_0x304287=![];}else{if(_0x5b52c4[_0x33726e(0x167)]==='c'){if(_0x26d483)throw new Error(_0x33726e(0x141));_0x26d483=!![],_0x122d5a=Boolean(Number[_0x33726e(0x1e2)](_0x5b52c4[_0x33726e(0x149)]['s']??'',0xa)),_0x591d8a=undefined,_0x41cdb8=_0x5b52c4[_0x33726e(0x149)]['r']||undefined,_0x42b6a6=_0x41cdb8?_0x5dd095(_0x41cdb8):undefined;if(_0x42b6a6)_0x443d3b=_0x42b6a6;else _0x443d3b=_0x40f65a?{'row':_0x40f65a['row'],'col':_0x40f65a[_0x33726e(0x120)]+0x1}:undefined;}else{if(_0x26d483&&['f','v','t'][_0x33726e(0x161)](_0x5b52c4[_0x33726e(0x167)])){_0x591d8a=_0x5b52c4['name'];if(_0x5b52c4[_0x33726e(0x167)]==='f'&&_0x5b52c4[_0x33726e(0x149)]['t'])_0x122d5a=!![];}else{if(_0x26d483&&_0x5b52c4['name']==='r')_0x122d5a=!![];else{if(_0x5b52c4[_0x33726e(0x167)]===_0x33726e(0x1a2)){const _0x1ed9a5=_0x5b52c4[_0x33726e(0x149)][_0x33726e(0x1d8)];if(!_0x1ed9a5)throw new Error('Invalid\x20worksheet\x20hyperlink\x20reference.');const _0x58c9ac=_0x1ed9a5[_0x33726e(0x116)](':');if(_0x58c9ac[_0x33726e(0x135)]>0x2)throw new Error(_0x33726e(0x1ce));const _0x19d2f5=_0x5dd095(_0x58c9ac[0x0]),_0x590891=_0x5dd095(_0x58c9ac[0x1]??_0x58c9ac[0x0]);_0x401de5['add'](_0x1ed9a5),_0x107a98(Math[_0x33726e(0x12d)](_0x19d2f5[_0x33726e(0x120)],_0x590891[_0x33726e(0x120)]),0x1);}else{if(_0x5b52c4[_0x33726e(0x167)]===_0x33726e(0x120)){const _0x61051c=_0x5dfae6(_0x5b52c4[_0x33726e(0x149)]['min'],0x4000),_0x4eb929=_0x5dfae6(_0x5b52c4[_0x33726e(0x149)][_0x33726e(0x12d)],0x4000);if(_0x61051c>_0x4eb929)throw new Error('Invalid\x20worksheet\x20column\x20range.');_0x107a98(_0x4eb929,0x1);}else{if(_0x5b52c4['name']===_0x33726e(0x1ac)){const _0x23f54f=_0x5b52c4[_0x33726e(0x149)][_0x33726e(0x1d8)];if(!_0x23f54f)throw new Error(_0x33726e(0x110));const _0x1eaa57=_0x23f54f[_0x33726e(0x116)](':');if(_0x1eaa57[_0x33726e(0x135)]>0x2)throw new Error(_0x33726e(0x110));const _0x221a3b=_0x5dd095(_0x1eaa57[0x0]),_0x4b56b8=_0x5dd095(_0x1eaa57[0x1]??_0x1eaa57[0x0]);_0x107a98(Math[_0x33726e(0x12d)](_0x221a3b[_0x33726e(0x120)],_0x4b56b8[_0x33726e(0x120)]));const _0x5a0dab=(Math[_0x33726e(0x15d)](_0x4b56b8[_0x33726e(0x1c3)]-_0x221a3b[_0x33726e(0x1c3)])+0x1)*(Math[_0x33726e(0x15d)](_0x4b56b8[_0x33726e(0x120)]-_0x221a3b[_0x33726e(0x120)])+0x1);_0x4f1180+=_0x5a0dab+_0x5dfd08++;if(_0x4f1180>MAX_ROWS)throw new Error(_0x33726e(0x187));}}}}}}}}),_0x1751a3?.['on'](_0x10a968(0x1b5),_0x3ea4a1=>{const _0x398015=_0x10a968;if(_0x3f932a){_0xe8de87?.[_0x398015(0x145)](_0x3ea4a1);return;}if(_0x26d483&&_0x591d8a&&_0x3ea4a1)_0x122d5a=!![];}),_0x1751a3?.['on'](_0x10a968(0x1c6),_0x31a6de=>{const _0x43c44c=_0x10a968;if(_0x3f932a){_0xe8de87&&!_0xe8de87[_0x43c44c(0x1d9)]()&&(_0x31e3a2(_0xe8de87[_0x43c44c(0x192)]),_0xe8de87=undefined);return;}if(_0x31a6de[_0x43c44c(0x167)]==='c'){!_0x122d5a&&_0x41cdb8&&!_0x23919e&&(_0x23919e={'before':_0x40f65a,'cells':[]});if(_0x23919e){if(++_0x20b32c>0xf4240)throw new Error('Worksheet\x20deferred\x20cell\x20events\x20exceed\x201000000.');_0x23919e[_0x43c44c(0x124)]['push']({'reference':_0x41cdb8,'address':_0x42b6a6,'materialized':_0x122d5a});if(!_0x41cdb8&&_0x122d5a)_0x304287=!![];}if(_0x122d5a){if(!_0x23919e||_0x41cdb8){if(!_0x443d3b)throw new Error('Invalid\x20worksheet\x20cell\x20without\x20an\x20initial\x20reference.');if(_0x443d3b[_0x43c44c(0x120)]>MAX_XML_COLUMNS)throw new Error('Worksheet\x20exceeds\x2016384\x20columns.');_0x107a98(_0x443d3b[_0x43c44c(0x120)]);}_0x40f65a=_0x443d3b;}_0x26d483=![],_0x443d3b=undefined,_0x41cdb8=undefined,_0x42b6a6=undefined,_0x591d8a=undefined;}else{if(_0x31a6de[_0x43c44c(0x167)]==='row'){if(_0x23919e&&_0x304287)_0x9beab7[_0x43c44c(0x1ea)](_0x23919e);_0x23919e=undefined,_0x304287=![];}else{if(_0x31a6de[_0x43c44c(0x167)]===_0x591d8a)_0x591d8a=undefined;}}}),_0x1751a3?.['on'](_0x10a968(0x1a7),_0x2c1a4a=>{const _0x3e7913=_0x10a968;throw new Error(_0x3e7913(0x194)+_0x2c1a4a[_0x3e7913(0xfe)]);}),_0x508536['on'](_0x10a968(0x1a7),_0x5aeb56),_0x508536['on']('data',_0x5605a5=>{const _0x3246c7=_0x10a968;if(_0x4b8592)return;_0x2cebaf+=_0x5605a5[_0x3246c7(0x135)],_0x4d95de?.['push'](_0x5605a5);if(_0x2cebaf>MAX_EXPANDED){_0x5aeb56(new Error(_0x3246c7(0x137)));return;}try{if(_0x5a237a&&_0x448f96)_0x5a237a[_0x3246c7(0x1d1)](_0x448f96[_0x3246c7(0x1d1)](_0x5605a5));if(_0x1751a3&&_0x2f751c)_0x1751a3['write'](_0x2f751c[_0x3246c7(0x1d1)](_0x5605a5));}catch(_0x3d3662){_0x5aeb56(_0x3d3662 instanceof Error?_0x3d3662:new Error('Invalid\x20worksheet\x20XML.'));}}),_0x508536['on'](_0x10a968(0x11d),()=>{const _0x164bdc=_0x10a968;if(_0x4b8592)return;try{if(_0x5a237a&&_0x448f96)_0x5a237a[_0x164bdc(0x1d1)](_0x448f96[_0x164bdc(0x11d)]())[_0x164bdc(0x1e3)]();if(_0x1751a3&&_0x2f751c)_0x1751a3[_0x164bdc(0x1d1)](_0x2f751c[_0x164bdc(0x11d)]())[_0x164bdc(0x1e3)]();for(const _0x37f6a5 of _0x9beab7){let _0x4d7934=_0x37f6a5[_0x164bdc(0x12a)];for(const _0x17deb7 of _0x37f6a5[_0x164bdc(0x124)]){if(!_0x17deb7[_0x164bdc(0x18d)]&&!(_0x17deb7[_0x164bdc(0x18e)]&&_0x401de5['has'](_0x17deb7[_0x164bdc(0x18e)])))continue;const _0x442c2a=_0x17deb7['address']??(_0x4d7934?{'row':_0x4d7934['row'],'col':_0x4d7934[_0x164bdc(0x120)]+0x1}:undefined);if(!_0x442c2a)throw new Error(_0x164bdc(0x1d3));if(_0x442c2a[_0x164bdc(0x120)]>MAX_XML_COLUMNS)throw new Error(_0x164bdc(0x155));_0x107a98(_0x442c2a[_0x164bdc(0x120)]),_0x4d7934=_0x442c2a;}}_0x9beab7['length']=0x0,_0x401de5[_0x164bdc(0x100)]();}catch(_0xcc87bc){_0x5aeb56(_0xcc87bc instanceof Error?_0xcc87bc:new Error(_0x164bdc(0x195)));return;}if(_0x4d95de)_0x36e554[_0x164bdc(0x17d)](_0x418eb0,Buffer[_0x164bdc(0x1cd)](_0x4d95de));_0xfa8da7=undefined,_0x5a8b84['readEntry']();});});}),_0x5a8b84['on'](_0x5af56a(0x11d),()=>{const _0x2f2c17=_0x5af56a;if(_0x4b8592)return;if(_0x5a8b84[_0x2f2c17(0x180)]!==_0x1eda9b){_0xace151(new Error('ZIP\x20central\x20directory\x20entry\x20count\x20does\x20not\x20match\x20its\x20contents.'));return;}if(!_0x4d4ca6[_0x2f2c17(0x174)](_0x2f2c17(0x1a4))||!_0x4d4ca6[_0x2f2c17(0x174)](_0x2f2c17(0xf9)))_0xace151(new Error(_0x2f2c17(0x12e)));else _0x38b24c();}),_0x5a8b84[_0x5af56a(0x153)]();});});}function valueOf(_0x2f7b78){const _0x4dbfb9=a144_0x17e727,_0x2465cf=_0x2f7b78[_0x4dbfb9(0x1b9)];if(_0x2465cf&&typeof _0x2465cf===_0x4dbfb9(0x18c)&&(_0x4dbfb9(0x1aa)in _0x2465cf||_0x4dbfb9(0x1a1)in _0x2465cf)){if(!(_0x4dbfb9(0x198)in _0x2465cf)||_0x2465cf[_0x4dbfb9(0x198)]===undefined)throw new Error(_0x4dbfb9(0x11b));return _0x2465cf[_0x4dbfb9(0x198)];}return _0x2465cf;}function convert(_0x295e0c,_0x2489c9){const _0x24cb1a=a144_0x17e727;if(_0x295e0c===null||_0x295e0c===undefined||_0x295e0c===''){if(_0x2489c9[_0x24cb1a(0x144)]&&!_0x2489c9[_0x24cb1a(0x14e)])throw new Error('Required\x20value\x20is\x20missing.');return null;}if(typeof _0x295e0c===_0x24cb1a(0x16a)&&Buffer['byteLength'](_0x295e0c,_0x24cb1a(0x122))>MAX_CELL)throw new Error('Cell\x20exceeds\x2064\x20KB.');switch(_0x2489c9[_0x24cb1a(0x1d5)][_0x24cb1a(0xfa)]()){case _0x24cb1a(0x16a):case _0x24cb1a(0x1b5):case _0x24cb1a(0x178):if(typeof _0x295e0c!=='string')throw new Error(_0x24cb1a(0x190));return _0x295e0c;case _0x24cb1a(0x197):case'decimal':case _0x24cb1a(0x11a):if(typeof _0x295e0c!==_0x24cb1a(0x197)||!Number[_0x24cb1a(0x162)](_0x295e0c)||Math[_0x24cb1a(0x15d)](_0x295e0c)>Number[_0x24cb1a(0x175)]||_0x2489c9[_0x24cb1a(0x1d5)][_0x24cb1a(0xfa)]()==='integer'&&!Number[_0x24cb1a(0x13a)](_0x295e0c))throw new Error(_0x24cb1a(0x1db));return _0x295e0c;case _0x24cb1a(0x1e5):if(typeof _0x295e0c!=='boolean')throw new Error('Expected\x20a\x20boolean\x20cell.');return _0x295e0c;case'date':case _0x24cb1a(0x1c5):if(!(_0x295e0c instanceof Date)||!Number[_0x24cb1a(0x162)](_0x295e0c[_0x24cb1a(0x19d)]()))throw new Error(_0x24cb1a(0x152));return _0x295e0c[_0x24cb1a(0x19d)]();default:throw new Error(_0x24cb1a(0x1b4)+_0x2489c9['type']+'.');}}export async function buildExcelManifest(_0x5561e6){const _0x283b83=a144_0x17e727,_0x1dfbae=_0x5561e6[_0x283b83(0x101)]??0x1;if(!Number['isInteger'](_0x1dfbae)||_0x1dfbae<0x1||_0x1dfbae>MAX_ROWS)throw new Error(_0x283b83(0x1e7));if(_0x5561e6['batchSize']!==undefined&&(!Number[_0x283b83(0x13a)](_0x5561e6[_0x283b83(0x160)])||_0x5561e6[_0x283b83(0x160)]<0x1||_0x5561e6['batchSize']>0x3e8))throw new Error(_0x283b83(0x179));if(a144_0x387b75[_0x283b83(0x12f)](_0x5561e6[_0x283b83(0x1a9)])['toLowerCase']()!==_0x283b83(0x182))throw new Error(_0x283b83(0x199));const _0x246670=await stat(_0x5561e6['file']);if(!_0x246670[_0x283b83(0x19f)]()||_0x246670['size']>MAX_FILE)throw new Error(_0x283b83(0x1a0));const _0x2bc154=await readFile(_0x5561e6[_0x283b83(0x1a9)]);if(_0x2bc154['length']>MAX_FILE)throw new Error(_0x283b83(0x16f));const _0x49288a=_0x5561e6[_0x283b83(0x1b0)][_0x283b83(0xf7)](_0x5b67da=>isImageContainer(_0x5b67da[_0x283b83(0x1d5)])&&Object['values'](_0x5561e6['mapping'])[_0x283b83(0x161)](_0x5b67da[_0x283b83(0x1df)]))?new Map():undefined;await checkArchive(_0x2bc154,_0x49288a);const _0x461d64=new a144_0x1949ff['Workbook']();await _0x461d64[_0x283b83(0x156)][_0x283b83(0x136)](_0x2bc154,{'ignoreNodes':[_0x283b83(0x1c8)]});const _0x3d6f1b=_0x5561e6[_0x283b83(0x112)];let _0x14a920;if(_0x3d6f1b===undefined)_0x14a920=_0x461d64['worksheets'][0x0];else{if(typeof _0x3d6f1b==='string'&&_0x461d64[_0x283b83(0xfb)]['some'](_0x5ae004=>_0x5ae004[_0x283b83(0x167)]===_0x3d6f1b))_0x14a920=_0x461d64[_0x283b83(0xfb)][_0x283b83(0x1cf)](_0x50fd81=>_0x50fd81[_0x283b83(0x167)]===_0x3d6f1b);else{if(typeof _0x3d6f1b==='number'||/^\d+$/[_0x283b83(0x139)](_0x3d6f1b)){const _0x21ce87=Number(_0x3d6f1b);if(!Number['isInteger'](_0x21ce87)||_0x21ce87<0x1)throw new Error(_0x283b83(0x1de));_0x14a920=_0x461d64[_0x283b83(0xfb)][_0x21ce87-0x1];}else _0x14a920=_0x461d64[_0x283b83(0xfb)]['find'](_0x382817=>_0x382817['name']===_0x3d6f1b);}}if(!_0x14a920)throw new Error(_0x283b83(0x140));if(_0x14a920[_0x283b83(0x1ba)]>MAX_ROWS||_0x14a920[_0x283b83(0x172)]>MAX_COLUMNS)throw new Error(_0x283b83(0x1c1));if((_0x14a920[_0x283b83(0x192)][_0x283b83(0x1a5)]??[])['length'])throw new Error('Merged\x20cells\x20are\x20not\x20supported.');const _0x58aceb=new Map();_0x14a920[_0x283b83(0x1c4)](_0x1dfbae)[_0x283b83(0x105)]((_0x2e3c51,_0x25a626)=>{const _0x5c3fee=_0x283b83,_0x10e22f=valueOf(_0x2e3c51);if(typeof _0x10e22f!==_0x5c3fee(0x16a)||!_0x10e22f[_0x5c3fee(0x10d)]()||Buffer[_0x5c3fee(0x16b)](_0x10e22f)>MAX_CELL)throw new Error(_0x5c3fee(0x134));if(_0x58aceb[_0x5c3fee(0x174)](_0x10e22f))throw new Error(_0x5c3fee(0x157)+_0x10e22f+'.');_0x58aceb['set'](_0x10e22f,_0x25a626);});const _0x42f045=Object[_0x283b83(0x17c)](_0x5561e6['mapping']);if(!_0x42f045[_0x283b83(0x135)])throw new Error(_0x283b83(0x11e));const _0x494f26=new Map(_0x5561e6[_0x283b83(0x1b0)][_0x283b83(0x1a6)](_0x3cdaa7=>[_0x3cdaa7[_0x283b83(0x1df)],_0x3cdaa7]));if(_0x494f26[_0x283b83(0x1c2)]!==_0x5561e6[_0x283b83(0x1b0)][_0x283b83(0x135)])throw new Error('Duplicate\x20dataset\x20field\x20codes.');if(_0x5561e6[_0x283b83(0x1b0)]['some'](_0x1704ef=>_0x1704ef['type'][_0x283b83(0xfa)]()==='serial_number'))throw new Error(_0x283b83(0x170));const _0x55ff91=new Set();for(const [_0x5a4792,_0x16df23]of _0x42f045){const _0x43fddb=_0x494f26[_0x283b83(0x1a8)](_0x16df23);if(!_0x58aceb[_0x283b83(0x174)](_0x5a4792))throw new Error(_0x283b83(0x1e9)+_0x5a4792+'.');if(!_0x43fddb||RESERVED['has'](_0x16df23)||_0x43fddb[_0x283b83(0x14e)])throw new Error(_0x283b83(0x196)+_0x16df23+'.');if(_0x55ff91[_0x283b83(0x174)](_0x16df23))throw new Error(_0x283b83(0x1ca)+_0x16df23+'.');if(!TYPES['has'](_0x43fddb[_0x283b83(0x1d5)]['toLowerCase']()))throw new Error('Unsupported\x20field\x20type:\x20'+_0x43fddb['type']+'.');_0x55ff91[_0x283b83(0x1e8)](_0x16df23);}for(const _0xadbb of _0x5561e6['fields']){if(_0xadbb['required']&&!_0xadbb[_0x283b83(0x14e)]&&!RESERVED[_0x283b83(0x174)](_0xadbb[_0x283b83(0x1df)])&&!_0x55ff91[_0x283b83(0x174)](_0xadbb['code']))throw new Error(_0x283b83(0x13d)+_0xadbb[_0x283b83(0x1df)]+'.');}const _0x46b8dd={'fileHash':hash(_0x2bc154),'mappingHash':hash(JSON[_0x283b83(0x114)]([..._0x42f045][_0x283b83(0x14f)](([_0x591835],[_0x5d0e36])=>_0x591835['localeCompare'](_0x5d0e36)))),'schemaHash':hash(JSON[_0x283b83(0x114)]([..._0x5561e6[_0x283b83(0x1b0)]][_0x283b83(0x14f)]((_0x4bf2d4,_0x15878b)=>_0x4bf2d4['code'][_0x283b83(0x14d)](_0x15878b[_0x283b83(0x1df)])))),'sheet':_0x14a920[_0x283b83(0x167)],'rows':[],'emptyRows':[],'errors':[],'warnings':[]},_0x41ae15=_0x42f045['filter'](([,_0x1873d4])=>isImageContainer(_0x494f26[_0x283b83(0x1a8)](_0x1873d4)['type'])),_0x1ec964=_0x41ae15[_0x283b83(0x1ae)](([,_0x1e4698])=>_0x494f26[_0x283b83(0x1a8)](_0x1e4698)[_0x283b83(0x1d5)][_0x283b83(0xfa)]()===_0x283b83(0x142))[_0x283b83(0x1a6)](([,_0x11c693])=>_0x11c693);if(_0x1ec964['length'])_0x46b8dd[_0x283b83(0x1bd)]=_0x1ec964;const _0xaf83c3=_0x49288a?resolveWorksheetImages(_0x49288a,_0x14a920[_0x283b83(0x167)],new Set(_0x41ae15['map'](([_0x406590])=>_0x58aceb[_0x283b83(0x1a8)](_0x406590)))):[],_0x11621d=new Map();for(const _0x33944e of _0xaf83c3){const _0x12bda2=_0x33944e[_0x283b83(0x1c3)]+':'+_0x33944e['col'],_0x3ec324=_0x11621d['get'](_0x12bda2)??[];_0x3ec324[_0x283b83(0x1ea)](_0x33944e),_0x11621d['set'](_0x12bda2,_0x3ec324);}const _0x2f39fe=new Map();let _0x269ecf=0x0;_0x41ae15[_0x283b83(0x135)]&&(_0x46b8dd[_0x283b83(0x168)]=_0x41ae15[_0x283b83(0x1a6)](([,_0x171b5c])=>_0x171b5c),_0x46b8dd[_0x283b83(0x10c)]=[],_0x46b8dd[_0x283b83(0x138)]=0x1,_0x46b8dd[_0x283b83(0x193)]=[]);const _0x56ce23=Math[_0x283b83(0x12d)](0x0,..._0xaf83c3['map'](_0x419409=>_0x419409[_0x283b83(0x1c3)]));let _0x208a3b=0x0;const _0xe0c6c3=new Set(_0x42f045[_0x283b83(0x1a6)](([_0x25951c])=>_0x58aceb[_0x283b83(0x1a8)](_0x25951c)));for(let _0x4f738f=_0x1dfbae+0x1;_0x4f738f<=Math[_0x283b83(0x12d)](_0x14a920['rowCount'],_0x56ce23);_0x4f738f++){const _0x166b44=_0x14a920['getRow'](_0x4f738f);if(_0x166b44[_0x283b83(0x10e)]||_0xaf83c3[_0x283b83(0xf7)](_0xe2ce24=>_0xe2ce24[_0x283b83(0x1c3)]===_0x4f738f&&_0xe2ce24[_0x283b83(0x1da)]))_0x208a3b++;let _0x542d7c=_0xaf83c3['some'](_0x5b7bfc=>_0x5b7bfc['row']===_0x4f738f);_0x166b44[_0x283b83(0x105)](_0x13d9eb=>{const _0x23510a=_0x283b83;if(_0x13d9eb[_0x23510a(0x1b9)]!==null&&_0x13d9eb[_0x23510a(0x1b9)]!==undefined&&_0x13d9eb[_0x23510a(0x1b9)]!=='')_0x542d7c=!![];});if(!_0x542d7c){_0x46b8dd[_0x283b83(0x119)]['push'](_0x4f738f);continue;}const _0x2e689f=Object[_0x283b83(0x128)](null);_0x166b44[_0x283b83(0x105)]((_0x181a54,_0xfe4856)=>{const _0x569b33=_0x283b83;if(_0xe0c6c3[_0x569b33(0x174)](_0xfe4856))return;try{const _0x2346ac=valueOf(_0x181a54);if(typeof _0x2346ac==='string'&&Buffer[_0x569b33(0x16b)](_0x2346ac,_0x569b33(0x122))>MAX_CELL)throw new Error('Cell\x20exceeds\x2064\x20KB.');}catch(_0x4ff60c){_0x46b8dd[_0x569b33(0x171)][_0x569b33(0x1ea)]({'rowNumber':_0x4f738f,'field':_0x181a54[_0x569b33(0x126)],'message':_0x4ff60c[_0x569b33(0xfe)]});}});for(const [_0x4b25bd,_0x10375c]of _0x42f045){try{const _0x43ad5b=_0x166b44[_0x283b83(0x191)](_0x58aceb[_0x283b83(0x1a8)](_0x4b25bd)),_0x5a02cc=_0x494f26[_0x283b83(0x1a8)](_0x10375c);if(!isImageContainer(_0x5a02cc[_0x283b83(0x1d5)])){_0x2e689f[_0x10375c]=convert(valueOf(_0x43ad5b),_0x5a02cc);continue;}const _0xb2a69a=_0x11621d[_0x283b83(0x1a8)](_0x4f738f+':'+_0x58aceb[_0x283b83(0x1a8)](_0x4b25bd))??[];if(_0xb2a69a['some'](_0x9c6ea4=>_0x9c6ea4['error']))throw Error(_0xb2a69a[_0x283b83(0x1cf)](_0x4de812=>_0x4de812[_0x283b83(0x1a7)])[_0x283b83(0x1a7)]);if(_0x43ad5b['value']!=null&&_0x43ad5b[_0x283b83(0x1b9)]!==''&&!_0xb2a69a[_0x283b83(0xf7)](_0x31fde2=>_0x31fde2[_0x283b83(0x1b3)]))throw Error(_0x283b83(0x108));const _0x26168b=[];for(const _0x2c0c7f of _0xb2a69a)for(const _0x38fa9f of _0x2c0c7f[_0x283b83(0x193)]){const _0x12dd3a=_0x49288a[_0x283b83(0x1a8)](_0x38fa9f);if(!_0x12dd3a)throw Error(_0x283b83(0x177)+_0x38fa9f+'.');const _0x2c86f9=hash(_0x12dd3a),_0x5174ba=_0x2f39fe['get'](_0x2c86f9)??validateImageBytes(_0x12dd3a);if(!_0x2f39fe[_0x283b83(0x174)](_0x5174ba[_0x283b83(0x16d)])){_0x269ecf+=_0x5174ba[_0x283b83(0x1c2)];if(_0x269ecf>0x32*0x400*0x400)throw Error(_0x283b83(0x189));_0x2f39fe[_0x283b83(0x17d)](_0x5174ba['contentHash'],_0x5174ba);}_0x26168b[_0x283b83(0x1ea)](_0x5174ba['contentHash']);}if(!_0x26168b[_0x283b83(0x135)]&&_0x5a02cc[_0x283b83(0x144)])throw Error('Required\x20image\x20value\x20is\x20missing.');if(_0x26168b[_0x283b83(0x135)])_0x46b8dd[_0x283b83(0x10c)]['push']({'rowNumber':_0x4f738f,'field':_0x10375c,'hashes':_0x26168b});_0x2e689f[_0x10375c]=_0x26168b[_0x283b83(0x1a6)](_0x15e634=>{const _0x249147=_0x283b83,_0x20dfa7=_0x2f39fe[_0x249147(0x1a8)](_0x15e634),_0x14bc20=_0x20dfa7['type']===_0x249147(0x185)?_0x249147(0x1d0):_0x20dfa7['type'][_0x249147(0x173)](0x6),_0x485e2a=_0x15e634+'.'+_0x14bc20,_0x194715=_0x249147(0x1bb)+'0'[_0x249147(0x188)](0x40)+'/'+_0x485e2a;return _0x5a02cc[_0x249147(0x1d5)]['toLowerCase']()===_0x249147(0x142)?{'fileName':_0x485e2a,'filePath':_0x194715}:{'key':_0x194715,'name':_0x485e2a,'type':_0x20dfa7['type'],'size':_0x20dfa7['size']};});}catch(_0x23d231){_0x46b8dd[_0x283b83(0x171)][_0x283b83(0x1ea)]({'rowNumber':_0x4f738f,'field':_0x10375c,'message':_0x23d231['message']});}}_0x46b8dd[_0x283b83(0x1d7)][_0x283b83(0x1ea)]({'rowNumber':_0x4f738f,'values':_0x2e689f});}if(_0x46b8dd[_0x283b83(0x193)])_0x46b8dd[_0x283b83(0x193)]=[..._0x2f39fe[_0x283b83(0x15b)]()];if(_0x208a3b)_0x46b8dd['warnings'][_0x283b83(0x1ea)](_0x208a3b+_0x283b83(0x125));return _0x46b8dd;}
@@ -1 +1 @@
1
- (function(_0x1b0009,_0x369254){const _0x268ceb=a145_0x3d4c,_0x59cea2=_0x1b0009();while(!![]){try{const _0x29305e=-parseInt(_0x268ceb(0xc4))/0x1+-parseInt(_0x268ceb(0xd1))/0x2+parseInt(_0x268ceb(0xd4))/0x3+parseInt(_0x268ceb(0xc9))/0x4+-parseInt(_0x268ceb(0xbf))/0x5*(parseInt(_0x268ceb(0xaa))/0x6)+-parseInt(_0x268ceb(0xa9))/0x7*(parseInt(_0x268ceb(0xad))/0x8)+-parseInt(_0x268ceb(0xce))/0x9*(-parseInt(_0x268ceb(0xb0))/0xa);if(_0x29305e===_0x369254)break;else _0x59cea2['push'](_0x59cea2['shift']());}catch(_0xfff043){_0x59cea2['push'](_0x59cea2['shift']());}}}(a145_0x47a7,0x1cc69));import{createRequire}from'node:module';function a145_0x3d4c(_0x37c1e8,_0x2a11c1){_0x37c1e8=_0x37c1e8-0xa0;const _0x47a7a4=a145_0x47a7();let _0x3d4c40=_0x47a7a4[_0x37c1e8];return _0x3d4c40;}import{createHash}from'node:crypto';import{inflateSync}from'node:zlib';function a145_0x47a7(){const _0x3fbe92=['readUInt16LE','push','775292QgRAGD','readUInt32BE','Missing\x20GIF\x20trailer.','isSafeInteger','message','10917eQWxMw','GIF\x20frame\x20exceeds\x20canvas.','equals','7082sexQKW','digest','Image\x20dimensions\x20exceed\x2040\x20million\x20pixels.','574911VmxATC','length','Truncated\x20GIF.','decode','read','Invalid\x20GIF\x20block.','Invalid\x20image:\x20','Invalid\x20PNG\x20header.','IDAT','sync','GIF89a','Invalid\x20GIF\x20LZW\x20dictionary\x20reference.','GIF\x20cumulative\x20frame\x20pixels\x20exceed\x2040\x20million.','subarray','hex','ceil','118412HqHnYn','36EfYcnG','Invalid\x20PNG\x20color/depth/interlace.','Image\x20must\x20be\x20non-empty\x20and\x20no\x20larger\x20than\x2010\x20MB.','24qQejkY','acTL','update','350rczETe','IEND','Truncated\x20PNG\x20chunk.','height','Invalid\x20GIF\x20trailer.','numFrames','Truncated\x20PNG\x20data.','max','IHDR','sha256','includes','Invalid\x20PNG\x20end.','GIF87a','width','Missing\x20PNG\x20data/end.','118730FmDRjf','Truncated\x20GIF\x20data.','decodeAndBlitFrameRGBA','toString','omggif','113285kNvHmR','ascii','from'];a145_0x47a7=function(){return _0x3fbe92;};return a145_0x47a7();}const require=createRequire(import.meta.url),MAX_PIXELS=0x2625a00;function dimensions(_0x4f9075,_0x1cfdd1){const _0x52512e=a145_0x3d4c;if(!Number[_0x52512e(0xcc)](_0x4f9075)||!Number[_0x52512e(0xcc)](_0x1cfdd1)||_0x4f9075<0x1||_0x1cfdd1<0x1||_0x4f9075*_0x1cfdd1>MAX_PIXELS)throw Error(_0x52512e(0xd3));}function validateGif(_0x1a8dde){const _0x2daba5=a145_0x3d4c;let _0x1f56db=0xd,_0x3dde66=0x0,_0x1b2cfe=0x0;const _0x23f4b3=_0x1a8dde[_0x2daba5(0xc7)](0x6),_0x557526=_0x1a8dde[_0x2daba5(0xc7)](0x8),_0x5f5c0a=_0x1a8dde[0xa]&0x80?0x1<<(_0x1a8dde[0xa]&0x7)+0x1:0x0,_0x1cd769=_0x5bd583=>{const _0x1c6d5c=_0x2daba5;if(_0x1f56db+_0x5bd583>_0x1a8dde[_0x1c6d5c(0xd5)])throw Error(_0x1c6d5c(0xc0));};_0x1f56db+=_0x5f5c0a*0x3,_0x1cd769(0x0);const _0x127a43=()=>{const _0x4dda04=_0x2daba5,_0x2d0d41=[];while(!![]){_0x1cd769(0x1);const _0x9b4f9b=_0x1a8dde[_0x1f56db++];if(!_0x9b4f9b)break;_0x1cd769(_0x9b4f9b),_0x2d0d41[_0x4dda04(0xc8)](_0x1a8dde[_0x4dda04(0xa6)](_0x1f56db,_0x1f56db+_0x9b4f9b)),_0x1f56db+=_0x9b4f9b;}return Buffer['concat'](_0x2d0d41);};while(_0x1f56db<_0x1a8dde[_0x2daba5(0xd5)]){const _0x36f0e4=_0x1a8dde[_0x1f56db++];if(_0x36f0e4===0x3b){if(!_0x3dde66||_0x1f56db!==_0x1a8dde[_0x2daba5(0xd5)])throw Error(_0x2daba5(0xb4));return;}if(_0x36f0e4===0x21){_0x1cd769(0x1),_0x1f56db++,_0x127a43();continue;}if(_0x36f0e4!==0x2c)throw Error(_0x2daba5(0xd9));_0x1cd769(0x9);const _0x3a6a84=_0x1a8dde[_0x2daba5(0xc7)](_0x1f56db),_0x48a8ed=_0x1a8dde['readUInt16LE'](_0x1f56db+0x2),_0x277bfc=_0x1a8dde[_0x2daba5(0xc7)](_0x1f56db+0x4),_0x3dfcf9=_0x1a8dde[_0x2daba5(0xc7)](_0x1f56db+0x6),_0x2ccc44=_0x1a8dde[_0x1f56db+0x8];_0x1f56db+=0x9,dimensions(_0x277bfc,_0x3dfcf9);if(_0x3a6a84+_0x277bfc>_0x23f4b3||_0x48a8ed+_0x3dfcf9>_0x557526||++_0x3dde66>0x2710||(_0x1b2cfe+=_0x23f4b3*_0x557526)>MAX_PIXELS)throw Error('GIF\x20cumulative\x20frame\x20pixels\x20exceed\x2040\x20million.');const _0x34d2da=_0x2ccc44&0x80?0x1<<(_0x2ccc44&0x7)+0x1:_0x5f5c0a;if(!_0x34d2da)throw Error('GIF\x20image\x20has\x20no\x20palette.');_0x2ccc44&0x80&&(_0x1cd769(_0x34d2da*0x3),_0x1f56db+=_0x34d2da*0x3);_0x1cd769(0x1);const _0x5bfdf4=_0x1a8dde[_0x1f56db++];if(_0x5bfdf4<0x2||_0x5bfdf4>0x8)throw Error('Invalid\x20GIF\x20LZW\x20code\x20size.');const _0x579f4d=_0x127a43(),_0x4169a2=0x1<<_0x5bfdf4,_0x5b0ea0=_0x4169a2+0x1;let _0x2d596f=_0x5bfdf4+0x1,_0x54959f=_0x5b0ea0+0x1,_0x4093c7=0x0,_0x4e42fb=-0x1,_0x176e5a=0x0,_0x2c67d9=![];const _0x2d36d5=new Uint32Array(0x1000),_0x5edb6c=new Uint16Array(0x1000);for(let _0x3bf999=0x0;_0x3bf999<_0x4169a2;_0x3bf999++){_0x2d36d5[_0x3bf999]=0x1,_0x5edb6c[_0x3bf999]=_0x3bf999;}while(_0x4093c7+_0x2d596f<=_0x579f4d[_0x2daba5(0xd5)]*0x8){let _0x5f09b7=0x0;for(let _0x2089fd=0x0;_0x2089fd<_0x2d596f;_0x2089fd++,_0x4093c7++)_0x5f09b7|=(_0x579f4d[_0x4093c7>>0x3]>>(_0x4093c7&0x7)&0x1)<<_0x2089fd;if(_0x5f09b7===_0x4169a2){_0x2d596f=_0x5bfdf4+0x1,_0x54959f=_0x5b0ea0+0x1,_0x4e42fb=-0x1;continue;}if(_0x5f09b7===_0x5b0ea0){_0x2c67d9=!![];break;}if(_0x5f09b7>_0x54959f||_0x5f09b7===_0x54959f&&_0x4e42fb<0x0||_0x4e42fb<0x0&&_0x5f09b7>=_0x4169a2)throw Error(_0x2daba5(0xa4));const _0x5806fa=_0x5f09b7===_0x54959f?_0x2d36d5[_0x4e42fb]+0x1:_0x2d36d5[_0x5f09b7],_0x5e40df=_0x5f09b7===_0x54959f?_0x5edb6c[_0x4e42fb]:_0x5edb6c[_0x5f09b7];if(!_0x5806fa||_0x5e40df>=_0x34d2da||(_0x176e5a+=_0x5806fa)>_0x277bfc*_0x3dfcf9)throw Error('Invalid\x20GIF\x20LZW\x20pixel\x20data.');if(_0x4e42fb>=0x0&&_0x54959f<0x1000){_0x2d36d5[_0x54959f]=_0x2d36d5[_0x4e42fb]+0x1,_0x5edb6c[_0x54959f]=Math[_0x2daba5(0xb7)](_0x5edb6c[_0x4e42fb],_0x5e40df),_0x54959f++;if(_0x54959f===0x1<<_0x2d596f&&_0x2d596f<0xc)_0x2d596f++;}_0x4e42fb=_0x5f09b7;}if(!_0x2c67d9||_0x176e5a!==_0x277bfc*_0x3dfcf9)throw Error('Truncated\x20or\x20incomplete\x20GIF\x20LZW\x20pixels.');}throw Error(_0x2daba5(0xcb));}export function validateImageBytes(_0x1f34a0){const _0x53c214=a145_0x3d4c;if(!_0x1f34a0[_0x53c214(0xd5)]||_0x1f34a0['length']>0xa*0x400*0x400)throw Error(_0x53c214(0xac));let _0x403075;try{if(_0x1f34a0['subarray'](0x0,0x8)[_0x53c214(0xd0)](Buffer[_0x53c214(0xc6)]([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]))){if(_0x1f34a0['length']<0x21||_0x1f34a0[_0x53c214(0xc2)](_0x53c214(0xc5),0xc,0x10)!==_0x53c214(0xb8))throw Error(_0x53c214(0xa0));dimensions(_0x1f34a0['readUInt32BE'](0x10),_0x1f34a0[_0x53c214(0xca)](0x14));const _0x3639fb=_0x1f34a0[_0x53c214(0xca)](0x10),_0x59c963=_0x1f34a0['readUInt32BE'](0x14),_0x27fefe=_0x1f34a0[0x18],_0x1bed4e=_0x1f34a0[0x19],_0x158ef9=_0x1f34a0[0x1c],_0x580336={0x0:0x1,0x2:0x3,0x3:0x1,0x4:0x2,0x6:0x4}[_0x1bed4e];if(!_0x580336||![0x1,0x2,0x4,0x8,0x10][_0x53c214(0xba)](_0x27fefe)||_0x158ef9>0x1)throw Error(_0x53c214(0xab));const _0x4cc08a=_0x3d029e=>Math[_0x53c214(0xa8)](_0x3d029e*_0x580336*_0x27fefe/0x8)+0x1;let _0x47acf2=_0x4cc08a(_0x3639fb)*_0x59c963;if(_0x158ef9){_0x47acf2=0x0;for(const [_0x198426,_0x579c99,_0x3d84e7,_0x5f8d2c]of[[0x0,0x0,0x8,0x8],[0x4,0x0,0x8,0x8],[0x0,0x4,0x4,0x8],[0x2,0x0,0x4,0x4],[0x0,0x2,0x2,0x4],[0x1,0x0,0x2,0x2],[0x0,0x1,0x1,0x2]]){const _0x2e542d=Math['max'](0x0,Math[_0x53c214(0xa8)]((_0x3639fb-_0x198426)/_0x3d84e7)),_0x2aa427=Math[_0x53c214(0xb7)](0x0,Math['ceil']((_0x59c963-_0x579c99)/_0x5f8d2c));if(_0x2e542d&&_0x2aa427)_0x47acf2+=_0x4cc08a(_0x2e542d)*_0x2aa427;}}let _0x101a81=0x8,_0x521b30=![];const _0x49cea1=[];while(_0x101a81<_0x1f34a0[_0x53c214(0xd5)]){if(_0x101a81+0xc>_0x1f34a0['length'])throw Error(_0x53c214(0xb2));const _0x9de112=_0x1f34a0[_0x53c214(0xca)](_0x101a81),_0x2c6c07=_0x1f34a0[_0x53c214(0xc2)](_0x53c214(0xc5),_0x101a81+0x4,_0x101a81+0x8);if(_0x2c6c07===_0x53c214(0xae))throw Error('Animated\x20PNG\x20is\x20not\x20supported.');if(_0x101a81+_0x9de112+0xc>_0x1f34a0[_0x53c214(0xd5)])throw Error(_0x53c214(0xb6));if(_0x2c6c07===_0x53c214(0xa1))_0x49cea1[_0x53c214(0xc8)](_0x1f34a0[_0x53c214(0xa6)](_0x101a81+0x8,_0x101a81+0x8+_0x9de112));_0x101a81+=_0x9de112+0xc;if(_0x2c6c07===_0x53c214(0xb1)){if(_0x9de112||_0x101a81!==_0x1f34a0['length'])throw Error(_0x53c214(0xbb));_0x521b30=!![];break;}}if(!_0x521b30||!_0x49cea1['length'])throw Error(_0x53c214(0xbe));if(inflateSync(Buffer['concat'](_0x49cea1),{'maxOutputLength':_0x47acf2+0x1})[_0x53c214(0xd5)]!==_0x47acf2)throw Error('Invalid\x20PNG\x20decoded\x20scanline\x20size.');const {PNG:_0x1a0b95}=require('pngjs'),_0xdb3d03=_0x1a0b95[_0x53c214(0xa2)][_0x53c214(0xd8)](_0x1f34a0,{'checkCRC':!![]});dimensions(_0xdb3d03[_0x53c214(0xbd)],_0xdb3d03['height']),_0x403075='image/png';}else{if(_0x1f34a0[0x0]===0xff&&_0x1f34a0[0x1]===0xd8){if(_0x1f34a0['at'](-0x2)!==0xff||_0x1f34a0['at'](-0x1)!==0xd9)throw Error('Truncated\x20JPEG.');const _0x48dd56=require('jpeg-js'),_0x5db14b=_0x48dd56[_0x53c214(0xd7)](_0x1f34a0,{'useTArray':!![],'formatAsRGBA':![],'tolerantDecoding':![],'maxResolutionInMP':0x28,'maxMemoryUsageInMB':0x100});dimensions(_0x5db14b[_0x53c214(0xbd)],_0x5db14b[_0x53c214(0xb3)]),_0x403075='image/jpeg';}else{if([_0x53c214(0xbc),_0x53c214(0xa3)][_0x53c214(0xba)](_0x1f34a0['toString'](_0x53c214(0xc5),0x0,0x6))){if(_0x1f34a0[_0x53c214(0xd5)]<0xe||_0x1f34a0['at'](-0x1)!==0x3b)throw Error(_0x53c214(0xd6));dimensions(_0x1f34a0[_0x53c214(0xc7)](0x6),_0x1f34a0[_0x53c214(0xc7)](0x8)),validateGif(_0x1f34a0);const {GifReader:_0x2fe4ff}=require(_0x53c214(0xc3)),_0x4d628d=new _0x2fe4ff(_0x1f34a0);dimensions(_0x4d628d[_0x53c214(0xbd)],_0x4d628d[_0x53c214(0xb3)]);const _0x3d9586=_0x4d628d[_0x53c214(0xb5)]();if(!_0x3d9586||_0x3d9586>0x2710||_0x3d9586*_0x4d628d[_0x53c214(0xbd)]*_0x4d628d[_0x53c214(0xb3)]>MAX_PIXELS)throw Error(_0x53c214(0xa5));const _0x865fb7=new Uint8Array(_0x4d628d[_0x53c214(0xbd)]*_0x4d628d[_0x53c214(0xb3)]*0x4);for(let _0x4c0e04=0x0;_0x4c0e04<_0x3d9586;_0x4c0e04++){const _0xa3b2a4=_0x4d628d['frameInfo'](_0x4c0e04);if(_0xa3b2a4['x']+_0xa3b2a4[_0x53c214(0xbd)]>_0x4d628d[_0x53c214(0xbd)]||_0xa3b2a4['y']+_0xa3b2a4['height']>_0x4d628d[_0x53c214(0xb3)])throw Error(_0x53c214(0xcf));_0x4d628d[_0x53c214(0xc1)](_0x4c0e04,_0x865fb7);}_0x403075='image/gif';}else throw Error('Unsupported\x20image\x20format;\x20only\x20PNG,\x20JPEG\x20and\x20GIF\x20are\x20supported.\x20WebP\x20is\x20not\x20supported.');}}}catch(_0x266100){throw Error(_0x53c214(0xda)+_0x266100[_0x53c214(0xcd)]);}return{'contentHash':createHash(_0x53c214(0xb9))[_0x53c214(0xaf)](_0x1f34a0)[_0x53c214(0xd2)](_0x53c214(0xa7)),'type':_0x403075,'size':_0x1f34a0['length'],'bytes':_0x1f34a0};}
1
+ (function(_0x492b8f,_0x319109){const _0x59b153=a145_0x1a5d,_0x585ac9=_0x492b8f();while(!![]){try{const _0x4ed5dd=-parseInt(_0x59b153(0xd0))/0x1*(-parseInt(_0x59b153(0xc2))/0x2)+parseInt(_0x59b153(0xbd))/0x3+parseInt(_0x59b153(0xbb))/0x4*(-parseInt(_0x59b153(0xb0))/0x5)+-parseInt(_0x59b153(0xc0))/0x6+parseInt(_0x59b153(0xc5))/0x7*(-parseInt(_0x59b153(0xb8))/0x8)+parseInt(_0x59b153(0xbf))/0x9*(-parseInt(_0x59b153(0xc1))/0xa)+parseInt(_0x59b153(0xcd))/0xb*(parseInt(_0x59b153(0xdb))/0xc);if(_0x4ed5dd===_0x319109)break;else _0x585ac9['push'](_0x585ac9['shift']());}catch(_0x3c68f2){_0x585ac9['push'](_0x585ac9['shift']());}}}(a145_0x5cd1,0x42020));import{createRequire}from'node:module';function a145_0x1a5d(_0x1700b6,_0x435824){_0x1700b6=_0x1700b6-0xa3;const _0x5cd10c=a145_0x5cd1();let _0x1a5dcc=_0x5cd10c[_0x1700b6];return _0x1a5dcc;}import{createHash}from'node:crypto';import{inflateSync}from'node:zlib';const require=createRequire(import.meta.url),MAX_PIXELS=0x2625a00;function dimensions(_0x29c64a,_0x4edaf1){const _0x5ca346=a145_0x1a5d;if(!Number[_0x5ca346(0xca)](_0x29c64a)||!Number[_0x5ca346(0xca)](_0x4edaf1)||_0x29c64a<0x1||_0x4edaf1<0x1||_0x29c64a*_0x4edaf1>MAX_PIXELS)throw Error('Image\x20dimensions\x20exceed\x2040\x20million\x20pixels.');}function validateGif(_0x5a59ec){const _0x3f0045=a145_0x1a5d;let _0x164d99=0xd,_0x43a385=0x0,_0x150126=0x0;const _0x30af14=_0x5a59ec[_0x3f0045(0xb2)](0x6),_0x4e9b46=_0x5a59ec['readUInt16LE'](0x8),_0x4a6794=_0x5a59ec[0xa]&0x80?0x1<<(_0x5a59ec[0xa]&0x7)+0x1:0x0,_0x584e0c=_0x3b4c05=>{if(_0x164d99+_0x3b4c05>_0x5a59ec['length'])throw Error('Truncated\x20GIF\x20data.');};_0x164d99+=_0x4a6794*0x3,_0x584e0c(0x0);const _0xdd84f2=()=>{const _0x48547c=_0x3f0045,_0xe31044=[];while(!![]){_0x584e0c(0x1);const _0x1ee8d5=_0x5a59ec[_0x164d99++];if(!_0x1ee8d5)break;_0x584e0c(_0x1ee8d5),_0xe31044[_0x48547c(0xba)](_0x5a59ec[_0x48547c(0xa5)](_0x164d99,_0x164d99+_0x1ee8d5)),_0x164d99+=_0x1ee8d5;}return Buffer[_0x48547c(0xa7)](_0xe31044);};while(_0x164d99<_0x5a59ec[_0x3f0045(0xc6)]){const _0x9fd95f=_0x5a59ec[_0x164d99++];if(_0x9fd95f===0x3b){if(!_0x43a385||_0x164d99!==_0x5a59ec[_0x3f0045(0xc6)])throw Error('Invalid\x20GIF\x20trailer.');return;}if(_0x9fd95f===0x21){_0x584e0c(0x1),_0x164d99++,_0xdd84f2();continue;}if(_0x9fd95f!==0x2c)throw Error(_0x3f0045(0xc4));_0x584e0c(0x9);const _0xba897=_0x5a59ec['readUInt16LE'](_0x164d99),_0x37f43b=_0x5a59ec[_0x3f0045(0xb2)](_0x164d99+0x2),_0x1902c5=_0x5a59ec[_0x3f0045(0xb2)](_0x164d99+0x4),_0x57d39f=_0x5a59ec[_0x3f0045(0xb2)](_0x164d99+0x6),_0x166e86=_0x5a59ec[_0x164d99+0x8];_0x164d99+=0x9,dimensions(_0x1902c5,_0x57d39f);if(_0xba897+_0x1902c5>_0x30af14||_0x37f43b+_0x57d39f>_0x4e9b46||++_0x43a385>0x2710||(_0x150126+=_0x30af14*_0x4e9b46)>MAX_PIXELS)throw Error(_0x3f0045(0xab));const _0x2b3d43=_0x166e86&0x80?0x1<<(_0x166e86&0x7)+0x1:_0x4a6794;if(!_0x2b3d43)throw Error(_0x3f0045(0xad));_0x166e86&0x80&&(_0x584e0c(_0x2b3d43*0x3),_0x164d99+=_0x2b3d43*0x3);_0x584e0c(0x1);const _0x2bd173=_0x5a59ec[_0x164d99++];if(_0x2bd173<0x2||_0x2bd173>0x8)throw Error('Invalid\x20GIF\x20LZW\x20code\x20size.');const _0x5529db=_0xdd84f2(),_0x86c7c=0x1<<_0x2bd173,_0x34b630=_0x86c7c+0x1;let _0x5a9398=_0x2bd173+0x1,_0x4dc6d6=_0x34b630+0x1,_0x3ce0c0=0x0,_0x3d50ab=-0x1,_0x54ae8f=0x0,_0xd59882=![];const _0x5a8641=new Uint32Array(0x1000),_0x19b9c9=new Uint16Array(0x1000);for(let _0x3f638e=0x0;_0x3f638e<_0x86c7c;_0x3f638e++){_0x5a8641[_0x3f638e]=0x1,_0x19b9c9[_0x3f638e]=_0x3f638e;}while(_0x3ce0c0+_0x5a9398<=_0x5529db[_0x3f0045(0xc6)]*0x8){let _0xe25ffc=0x0;for(let _0x12fffa=0x0;_0x12fffa<_0x5a9398;_0x12fffa++,_0x3ce0c0++)_0xe25ffc|=(_0x5529db[_0x3ce0c0>>0x3]>>(_0x3ce0c0&0x7)&0x1)<<_0x12fffa;if(_0xe25ffc===_0x86c7c){_0x5a9398=_0x2bd173+0x1,_0x4dc6d6=_0x34b630+0x1,_0x3d50ab=-0x1;continue;}if(_0xe25ffc===_0x34b630){_0xd59882=!![];break;}if(_0xe25ffc>_0x4dc6d6||_0xe25ffc===_0x4dc6d6&&_0x3d50ab<0x0||_0x3d50ab<0x0&&_0xe25ffc>=_0x86c7c)throw Error(_0x3f0045(0xa3));const _0x4a4191=_0xe25ffc===_0x4dc6d6?_0x5a8641[_0x3d50ab]+0x1:_0x5a8641[_0xe25ffc],_0x1921e4=_0xe25ffc===_0x4dc6d6?_0x19b9c9[_0x3d50ab]:_0x19b9c9[_0xe25ffc];if(!_0x4a4191||_0x1921e4>=_0x2b3d43||(_0x54ae8f+=_0x4a4191)>_0x1902c5*_0x57d39f)throw Error(_0x3f0045(0xcf));if(_0x3d50ab>=0x0&&_0x4dc6d6<0x1000){_0x5a8641[_0x4dc6d6]=_0x5a8641[_0x3d50ab]+0x1,_0x19b9c9[_0x4dc6d6]=Math[_0x3f0045(0xda)](_0x19b9c9[_0x3d50ab],_0x1921e4),_0x4dc6d6++;if(_0x4dc6d6===0x1<<_0x5a9398&&_0x5a9398<0xc)_0x5a9398++;}_0x3d50ab=_0xe25ffc;}if(!_0xd59882||_0x54ae8f!==_0x1902c5*_0x57d39f)throw Error(_0x3f0045(0xb1));}throw Error(_0x3f0045(0xb5));}function a145_0x5cd1(){const _0x3997a7=['GIF\x20image\x20has\x20no\x20palette.','GIF87a','IDAT','2012490yTgwDH','Truncated\x20or\x20incomplete\x20GIF\x20LZW\x20pixels.','readUInt16LE','image/jpeg','includes','Missing\x20GIF\x20trailer.','IHDR','equals','176TZIgGf','image/gif','push','4pXYqHG','Truncated\x20PNG\x20data.','66111hriYiQ','sync','2094147btxkMZ','1830084bIQDlM','20cgUCwX','14tqGURf','hex','Invalid\x20GIF\x20block.','60193PsqxjL','length','Missing\x20PNG\x20data/end.','acTL','Animated\x20PNG\x20is\x20not\x20supported.','isSafeInteger','GIF\x20frame\x20exceeds\x20canvas.','Truncated\x20JPEG.','11gDzQOR','pngjs','Invalid\x20GIF\x20LZW\x20pixel\x20data.','15306CTKMFf','digest','Invalid\x20PNG\x20end.','Truncated\x20GIF.','readUInt32BE','Truncated\x20PNG\x20chunk.','IEND','Unsupported\x20image\x20format;\x20only\x20PNG,\x20JPEG\x20and\x20GIF\x20are\x20supported.\x20WebP\x20is\x20not\x20supported.','height','ascii','max','18038940byBNwC','width','jpeg-js','Invalid\x20PNG\x20color/depth/interlace.','Invalid\x20PNG\x20header.','read','Invalid\x20GIF\x20LZW\x20dictionary\x20reference.','omggif','subarray','toString','concat','ceil','numFrames','GIF89a','GIF\x20cumulative\x20frame\x20pixels\x20exceed\x2040\x20million.','Image\x20must\x20be\x20non-empty\x20and\x20no\x20larger\x20than\x2010\x20MB.'];a145_0x5cd1=function(){return _0x3997a7;};return a145_0x5cd1();}export function validateImageBytes(_0x928395){const _0x56d9be=a145_0x1a5d;if(!_0x928395['length']||_0x928395[_0x56d9be(0xc6)]>0xa*0x400*0x400)throw Error(_0x56d9be(0xac));let _0xc795d3;try{if(_0x928395['subarray'](0x0,0x8)[_0x56d9be(0xb7)](Buffer['from']([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]))){if(_0x928395[_0x56d9be(0xc6)]<0x21||_0x928395['toString'](_0x56d9be(0xd9),0xc,0x10)!==_0x56d9be(0xb6))throw Error(_0x56d9be(0xdf));dimensions(_0x928395['readUInt32BE'](0x10),_0x928395[_0x56d9be(0xd4)](0x14));const _0x1e1709=_0x928395[_0x56d9be(0xd4)](0x10),_0x241456=_0x928395[_0x56d9be(0xd4)](0x14),_0x173274=_0x928395[0x18],_0x300ff1=_0x928395[0x19],_0x1ac388=_0x928395[0x1c],_0x3ebf13={0x0:0x1,0x2:0x3,0x3:0x1,0x4:0x2,0x6:0x4}[_0x300ff1];if(!_0x3ebf13||![0x1,0x2,0x4,0x8,0x10][_0x56d9be(0xb4)](_0x173274)||_0x1ac388>0x1)throw Error(_0x56d9be(0xde));const _0x2c2bf2=_0x280a48=>Math[_0x56d9be(0xa8)](_0x280a48*_0x3ebf13*_0x173274/0x8)+0x1;let _0x2bf582=_0x2c2bf2(_0x1e1709)*_0x241456;if(_0x1ac388){_0x2bf582=0x0;for(const [_0x4ecfcf,_0x168104,_0x390f2d,_0x4702c6]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 _0x142da5=Math[_0x56d9be(0xda)](0x0,Math[_0x56d9be(0xa8)]((_0x1e1709-_0x4ecfcf)/_0x390f2d)),_0x27b7d0=Math[_0x56d9be(0xda)](0x0,Math[_0x56d9be(0xa8)]((_0x241456-_0x168104)/_0x4702c6));if(_0x142da5&&_0x27b7d0)_0x2bf582+=_0x2c2bf2(_0x142da5)*_0x27b7d0;}}let _0x5d2c4c=0x8,_0xb533b9=![];const _0xee0002=[];while(_0x5d2c4c<_0x928395[_0x56d9be(0xc6)]){if(_0x5d2c4c+0xc>_0x928395[_0x56d9be(0xc6)])throw Error(_0x56d9be(0xd5));const _0x225e1f=_0x928395[_0x56d9be(0xd4)](_0x5d2c4c),_0x353d36=_0x928395[_0x56d9be(0xa6)](_0x56d9be(0xd9),_0x5d2c4c+0x4,_0x5d2c4c+0x8);if(_0x353d36===_0x56d9be(0xc8))throw Error(_0x56d9be(0xc9));if(_0x5d2c4c+_0x225e1f+0xc>_0x928395[_0x56d9be(0xc6)])throw Error(_0x56d9be(0xbc));if(_0x353d36===_0x56d9be(0xaf))_0xee0002[_0x56d9be(0xba)](_0x928395[_0x56d9be(0xa5)](_0x5d2c4c+0x8,_0x5d2c4c+0x8+_0x225e1f));_0x5d2c4c+=_0x225e1f+0xc;if(_0x353d36===_0x56d9be(0xd6)){if(_0x225e1f||_0x5d2c4c!==_0x928395[_0x56d9be(0xc6)])throw Error(_0x56d9be(0xd2));_0xb533b9=!![];break;}}if(!_0xb533b9||!_0xee0002['length'])throw Error(_0x56d9be(0xc7));if(inflateSync(Buffer[_0x56d9be(0xa7)](_0xee0002),{'maxOutputLength':_0x2bf582+0x1})[_0x56d9be(0xc6)]!==_0x2bf582)throw Error('Invalid\x20PNG\x20decoded\x20scanline\x20size.');const {PNG:_0x2c06d7}=require(_0x56d9be(0xce)),_0x4bdecd=_0x2c06d7[_0x56d9be(0xbe)][_0x56d9be(0xe0)](_0x928395,{'checkCRC':!![]});dimensions(_0x4bdecd['width'],_0x4bdecd['height']),_0xc795d3='image/png';}else{if(_0x928395[0x0]===0xff&&_0x928395[0x1]===0xd8){if(_0x928395['at'](-0x2)!==0xff||_0x928395['at'](-0x1)!==0xd9)throw Error(_0x56d9be(0xcc));const _0x5a41d=require(_0x56d9be(0xdd)),_0x141eea=_0x5a41d['decode'](_0x928395,{'useTArray':!![],'formatAsRGBA':![],'tolerantDecoding':![],'maxResolutionInMP':0x28,'maxMemoryUsageInMB':0x100});dimensions(_0x141eea[_0x56d9be(0xdc)],_0x141eea['height']),_0xc795d3=_0x56d9be(0xb3);}else{if([_0x56d9be(0xae),_0x56d9be(0xaa)][_0x56d9be(0xb4)](_0x928395[_0x56d9be(0xa6)](_0x56d9be(0xd9),0x0,0x6))){if(_0x928395[_0x56d9be(0xc6)]<0xe||_0x928395['at'](-0x1)!==0x3b)throw Error(_0x56d9be(0xd3));dimensions(_0x928395[_0x56d9be(0xb2)](0x6),_0x928395[_0x56d9be(0xb2)](0x8)),validateGif(_0x928395);const {GifReader:_0x217547}=require(_0x56d9be(0xa4)),_0x4821fa=new _0x217547(_0x928395);dimensions(_0x4821fa[_0x56d9be(0xdc)],_0x4821fa[_0x56d9be(0xd8)]);const _0x2b048f=_0x4821fa[_0x56d9be(0xa9)]();if(!_0x2b048f||_0x2b048f>0x2710||_0x2b048f*_0x4821fa['width']*_0x4821fa[_0x56d9be(0xd8)]>MAX_PIXELS)throw Error(_0x56d9be(0xab));const _0x27f1cf=new Uint8Array(_0x4821fa['width']*_0x4821fa[_0x56d9be(0xd8)]*0x4);for(let _0x1ff83d=0x0;_0x1ff83d<_0x2b048f;_0x1ff83d++){const _0x3787e7=_0x4821fa['frameInfo'](_0x1ff83d);if(_0x3787e7['x']+_0x3787e7[_0x56d9be(0xdc)]>_0x4821fa['width']||_0x3787e7['y']+_0x3787e7[_0x56d9be(0xd8)]>_0x4821fa[_0x56d9be(0xd8)])throw Error(_0x56d9be(0xcb));_0x4821fa['decodeAndBlitFrameRGBA'](_0x1ff83d,_0x27f1cf);}_0xc795d3=_0x56d9be(0xb9);}else throw Error(_0x56d9be(0xd7));}}}catch(_0x3cde96){throw Error('Invalid\x20image:\x20'+_0x3cde96['message']);}return{'contentHash':createHash('sha256')['update'](_0x928395)[_0x56d9be(0xd1)](_0x56d9be(0xc3)),'type':_0xc795d3,'size':_0x928395[_0x56d9be(0xc6)],'bytes':_0x928395};}
@@ -1 +1 @@
1
- function a146_0x1d90(_0x41c292,_0x3e2d04){_0x41c292=_0x41c292-0x131;const _0x3dc910=a146_0x3dc9();let _0x1d907e=_0x3dc910[_0x41c292];return _0x1d907e;}const a146_0xd88b83=a146_0x1d90;(function(_0x1ed335,_0x5dacad){const _0x5e24c3=a146_0x1d90,_0x49de78=_0x1ed335();while(!![]){try{const _0x536a16=-parseInt(_0x5e24c3(0x14a))/0x1*(-parseInt(_0x5e24c3(0x1bc))/0x2)+parseInt(_0x5e24c3(0x177))/0x3+parseInt(_0x5e24c3(0x1a1))/0x4*(parseInt(_0x5e24c3(0x13b))/0x5)+parseInt(_0x5e24c3(0x139))/0x6+parseInt(_0x5e24c3(0x132))/0x7+-parseInt(_0x5e24c3(0x184))/0x8+-parseInt(_0x5e24c3(0x1c5))/0x9;if(_0x536a16===_0x5dacad)break;else _0x49de78['push'](_0x49de78['shift']());}catch(_0x528298){_0x49de78['push'](_0x49de78['shift']());}}}(a146_0x3dc9,0x91d2d));function a146_0x3dc9(){const _0x41b340=['Image\x20coordinate\x20exceeds\x20worksheet\x20bounds.','rvb','Value\x20metadata\x20index\x20must\x20be\x20one-based.','richValueRel','rowOff','uri','image\x20row\x20height\x20coordinate','rvStructures','metadataTypes','reduce','rdRichValue','metadata','Unsupported\x20workbook\x20namespace.','Mixed\x20formula\x20and\x20rich\x20image\x20metadata\x20is\x20unsupported.','worksheet','Ambiguous\x20XML\x20attribute.','Missing\x20rich\x20value.','149715tYuBdC','from','XML\x20DTD/entities\x20are\x20not\x20supported.','../','Unsupported\x20drawing\x20image.','XLRICHVALUE','Image\x20XML\x20node\x20budget\x20exceeded.','Missing\x20WPS\x20image\x20ID:\x20','pop','row','cellImage','drawing','type','2889328GkeWRc','hidden','rich\x20metadata\x20record','toString','cNvPr','add','WPS\x20image\x20name','includes','xl/','utf8','filter','charCodeAt','rich\x20value\x20binding','Unsupported\x20drawing\x20namespace.','colOff','join','blip','Relationship','doctype','Duplicate\x20mapped\x20image\x20cell.','opentag','External\x20WPS\x20image\x20links\x20are\x20not\x20supported.','ext','rdRichValueStructure','image','.rels','image\x20height','name','dirname','2236slxjWi','http://schemas.openxmlformats.org/drawingml/2006/main','local','image\x20extent','write','closetag','workbook','Image\x20anchor\x20spans\x20multiple\x20business\x20rows.','Missing\x20or\x20ambiguous\x20','Unsupported\x20image\x20formula;\x20expected\x20a\x20standalone\x20DISPIMG\x20literal.','value','col','Image\x20XML\x20event\x20budget\x20exceeded.','Relationship\x20target\x20escapes\x20workbook:\x20','Unsupported\x20mapped\x20cell\x20metadata\x20type.','http://purl.oclc.org/ooxml/drawingml/main','basename','rich\x20future\x20metadata','attrs','Missing\x20local\x20image\x20identifier\x20value.','length','http://schemas.openxmlformats.org/package/2006/relationships','startsWith','nvPicPr','\x20relationship\x20in\x20','http://purl.oclc.org/ooxml/officeDocument/relationships','metadataType','468268isTMoI','extLst','sheetData','shared','Unsupported\x20worksheet\x20namespace.','Unsupported\x20mapped\x20rich\x20value\x20structure.','message','image\x20formula','isSafeInteger','18079398UGicnh','values','sheets','richValueRels','http://purl.oclc.org/ooxml/spreadsheetml/main','anchor\x20column','isFinite','rel','some','xl/cellimages.xml','http://schemas.microsoft.com/office/2017/06/relationships/','round','replace','hidden\x20image\x20row','Unsupported\x20rich\x20structure\x20namespace.','Shared\x20image\x20formulas\x20are\x20not\x20supported.','text','MAX_SAFE_INTEGER','cellImages','http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing','http://schemas.microsoft.com/office/spreadsheetml/2017/richdata','posix','5902120SsMuOC','Absolute\x20image\x20anchor\x20cannot\x20be\x20mapped\x20in\x20worksheet\x20','anchor\x20end\x20offset','oneCellAnchor','wsDr','http://schemas.openxmlformats.org/spreadsheetml/2006/main','absoluteAnchor','6032970oUryuy','http://schemas.openxmlformats.org/officeDocument/2006/relationships','7465YlPFRO','{3e2802c4-a4d2-4d8b-9148-e3be6c30e623}','rich\x20structure\x20index','test','sheetFormatPr','r:embed','anchor\x20start','_localImage','toLowerCase','Missing\x20or\x20ambiguous\x20WPS\x20cell\x20image\x20part.','flatMap','Invalid\x20image\x20start\x20offset\x20at\x20row\x20','blipFill','Unsupported\x20relationship\x20namespace\x20in\x20','exec','1kQBGLx','Missing\x20or\x20ambiguous\x20local\x20image\x20identifier.','set','push','Unsupported\x20rich\x20image\x20relation\x20namespace.','#VALUE!','_rvRel:LocalImageIdentifier','futureMetadata','children','anchor\x20start\x20offset','pic','get','sheetMetadata','Missing\x20value\x20metadata\x20block.','has','slice','image\x20cell\x20row','Image\x20XML\x20text\x20exceeds\x2064\x20KB.','twoCellAnchor','map','Invalid\x20worksheet\x20row\x20height\x20for\x20image\x20anchor.','valueMetadata','rich\x20image\x20relationship\x20index','Relationships','r:link','External\x20image\x20relationship\x20is\x20not\x20supported:\x20','_rels','r:id'];a146_0x3dc9=function(){return _0x41b340;};return a146_0x3dc9();}import a146_0x4352ed from'node:path';import{SaxesParser}from'saxes';const SHEET=[a146_0xd88b83(0x137),a146_0xd88b83(0x1c9)],DRAWING=[a146_0xd88b83(0x1d8),'http://purl.oclc.org/ooxml/drawingml/spreadsheetDrawing'],DRAWING_MAIN=[a146_0xd88b83(0x1a2),a146_0xd88b83(0x1b0)],OFFICE_RELS=[a146_0xd88b83(0x13a),a146_0xd88b83(0x1ba)],PACKAGE=[a146_0xd88b83(0x1b6)],RICH=[a146_0xd88b83(0x1d9)],RICH_RELS=['http://schemas.microsoft.com/office/spreadsheetml/2022/richvaluerel'],WPS=['http://www.wps.cn/officeDocument/2017/etCustomData'],DEFAULT_NS=Object['fromEntries']([...[a146_0xd88b83(0x1a7),a146_0xd88b83(0x1c7),'sheet',a146_0xd88b83(0x174),a146_0xd88b83(0x1be),a146_0xd88b83(0x180),'c','f','v',a146_0xd88b83(0x13f),a146_0xd88b83(0x182),a146_0xd88b83(0x171),a146_0xd88b83(0x16e),a146_0xd88b83(0x1bb),a146_0xd88b83(0x151),a146_0xd88b83(0x15f),'bk','rc',a146_0xd88b83(0x1bd)][a146_0xd88b83(0x15d)](_0x1b34f9=>[_0x1b34f9,SHEET]),...[a146_0xd88b83(0x136),a146_0xd88b83(0x135),a146_0xd88b83(0x15c),a146_0xd88b83(0x138),a146_0xd88b83(0x178),'to',a146_0xd88b83(0x1ac),a146_0xd88b83(0x192),a146_0xd88b83(0x16a),a146_0xd88b83(0x19a),a146_0xd88b83(0x154),a146_0xd88b83(0x1b8),a146_0xd88b83(0x188),a146_0xd88b83(0x147)][a146_0xd88b83(0x15d)](_0x2ef195=>[_0x2ef195,DRAWING]),...[a146_0xd88b83(0x167),'rvData','rv','rvStructures','s','k'][a146_0xd88b83(0x15d)](_0x1c33fd=>[_0x1c33fd,RICH]),['blip',DRAWING_MAIN],[a146_0xd88b83(0x1c8),RICH_RELS],[a146_0xd88b83(0x1cc),RICH_RELS],[a146_0xd88b83(0x161),PACKAGE],[a146_0xd88b83(0x195),PACKAGE],[a146_0xd88b83(0x1d7),WPS],[a146_0xd88b83(0x181),WPS]]),matches=(_0x19fa38,_0x361cfb,_0x5b49c2=DEFAULT_NS[_0x361cfb]??[])=>_0x19fa38['name']===_0x361cfb&&_0x5b49c2['includes'](_0x19fa38[a146_0xd88b83(0x16b)]),children=(_0x45eca4,_0x33b310,_0x2d5c2f=DEFAULT_NS[_0x33b310])=>_0x45eca4['children'][a146_0xd88b83(0x18e)](_0x369e8b=>matches(_0x369e8b,_0x33b310,_0x2d5c2f)),chain=(_0x149231,..._0x3ad385)=>_0x3ad385[a146_0xd88b83(0x16f)]((_0x2afec9,_0x51c677)=>_0x2afec9[a146_0xd88b83(0x145)](_0x48ebfd=>children(_0x48ebfd,_0x51c677)),[_0x149231]),relationshipTypes=_0x24db82=>{const _0x2ede95=a146_0xd88b83;if(['rdRichValue',_0x2ede95(0x19b)][_0x2ede95(0x18b)](_0x24db82))return[_0x2ede95(0x1cf)+_0x24db82];if(_0x24db82===_0x2ede95(0x169))return['http://schemas.microsoft.com/office/2022/10/relationships/richValueRel'];if(_0x24db82===_0x2ede95(0x181)||_0x24db82===_0x2ede95(0x1d7))return['http://www.wps.cn/officeDocument/2017/relationships/'+_0x24db82];return OFFICE_RELS[_0x2ede95(0x15d)](_0xe4901=>_0xe4901+'/'+_0x24db82);};function one(_0x5370f2,_0x18f5dc){const _0x398567=a146_0xd88b83;if(_0x5370f2[_0x398567(0x1b5)]!==0x1)throw Error(_0x398567(0x1a9)+_0x18f5dc+'.');return _0x5370f2[0x0];}function integer(_0x56f405,_0x4c6c08,_0x391fd3=0x186a0){const _0x5b5f36=a146_0xd88b83;if(!_0x56f405||!/^\d+$/[_0x5b5f36(0x13e)](_0x56f405)||!Number[_0x5b5f36(0x1c4)](Number(_0x56f405))||Number(_0x56f405)>_0x391fd3)throw Error('Invalid\x20'+_0x4c6c08+'.');return Number(_0x56f405);}export function resolveWorksheetImages(_0x4132fb,_0x1e2c29,_0x417885){const _0x53a344=a146_0xd88b83;let _0x1fbb11=0x0,_0x3058f2=0x0,_0x521028=0x0;const _0x3b84da=new Map(),_0x88534e=_0x10e90c=>{const _0x38daec=a146_0x1d90;if(_0x3b84da['has'](_0x10e90c))return _0x3b84da['get'](_0x10e90c);const _0x2429cd=_0x4132fb[_0x38daec(0x155)](_0x10e90c);if(!_0x2429cd)throw Error('Missing\x20XLSX\x20part:\x20'+_0x10e90c+'.');const _0x867a81={'name':'','uri':'','attrs':{},'children':[],'text':''},_0x1d954e=[_0x867a81],_0x2177d3=new SaxesParser({'xmlns':!![]}),_0x93eab8=()=>{const _0x2f7fa3=_0x38daec;if(++_0x3058f2>0x1e8480)throw Error(_0x2f7fa3(0x1ad));};_0x2177d3['on'](_0x38daec(0x196),()=>{const _0x523ee8=_0x38daec;throw Error(_0x523ee8(0x179));}),_0x2177d3['on'](_0x38daec(0x198),_0x52066a=>{const _0xce2c4f=_0x38daec;_0x93eab8();if(++_0x1fbb11>0x7a120||_0x1d954e[_0xce2c4f(0x1b5)]>0x40)throw Error(_0xce2c4f(0x17d));const _0x2c9067={};for(const _0x1a671a of Object[_0xce2c4f(0x1c6)](_0x52066a['attributes'])){const _0x1bec18=OFFICE_RELS['includes'](_0x1a671a[_0xce2c4f(0x16b)])?'r:'+_0x1a671a[_0xce2c4f(0x1a3)]:_0x1a671a[_0xce2c4f(0x16b)]?'{'+_0x1a671a[_0xce2c4f(0x16b)]+'}'+_0x1a671a[_0xce2c4f(0x1a3)]:_0x1a671a[_0xce2c4f(0x1a3)];if(_0x1bec18 in _0x2c9067)throw Error(_0xce2c4f(0x175));_0x2c9067[_0x1bec18]=_0x1a671a[_0xce2c4f(0x1ab)];}const _0x5aa83c={'name':_0x52066a[_0xce2c4f(0x1a3)],'uri':_0x52066a[_0xce2c4f(0x16b)],'attrs':_0x2c9067,'children':[],'text':''};_0x1d954e['at'](-0x1)[_0xce2c4f(0x152)][_0xce2c4f(0x14d)](_0x5aa83c),_0x1d954e[_0xce2c4f(0x14d)](_0x5aa83c);}),_0x2177d3['on'](_0x38daec(0x1d5),_0x38e0d4=>{const _0x2ef9bd=_0x38daec;_0x93eab8();const _0x2bdabc=_0x1d954e['at'](-0x1);_0x2bdabc['text']+=_0x38e0d4;if(_0x2bdabc[_0x2ef9bd(0x1d5)][_0x2ef9bd(0x1b5)]>0x10000)throw Error(_0x2ef9bd(0x15b));}),_0x2177d3['on'](_0x38daec(0x1a6),()=>{const _0x17cd2e=_0x38daec;_0x93eab8(),_0x1d954e[_0x17cd2e(0x17f)]();}),_0x2177d3['on']('error',_0x4dfe57=>{throw _0x4dfe57;}),_0x2177d3[_0x38daec(0x1a5)](_0x2429cd[_0x38daec(0x187)](_0x38daec(0x18d)))['close']();const _0x51190a=one(_0x867a81[_0x38daec(0x152)],_0x10e90c);return _0x3b84da['set'](_0x10e90c,_0x51190a),_0x51190a;},_0x5eb92d=new Map(),_0x553747=_0x2b9dd2=>{const _0x128dff=a146_0x1d90;if(_0x5eb92d['has'](_0x2b9dd2))return _0x5eb92d[_0x128dff(0x155)](_0x2b9dd2);const _0x1b961c=a146_0x4352ed[_0x128dff(0x131)][_0x128dff(0x193)](a146_0x4352ed[_0x128dff(0x131)]['dirname'](_0x2b9dd2),_0x128dff(0x164),a146_0x4352ed['posix'][_0x128dff(0x1b1)](_0x2b9dd2)+_0x128dff(0x19d));if(!_0x4132fb[_0x128dff(0x158)](_0x1b961c))return[];const _0x586008=new Set(),_0x2f4c6a=_0x88534e(_0x1b961c);if(!matches(_0x2f4c6a,'Relationships'))throw Error(_0x128dff(0x148)+_0x1b961c+'.');const _0x57aa47=children(_0x2f4c6a,_0x128dff(0x195))[_0x128dff(0x15d)](_0x17dc00=>{const _0x3ff310=_0x128dff,{Id:_0x171f98,Type:_0x24dcbb,Target:_0x1bf79b,TargetMode:_0xd9383e}=_0x17dc00[_0x3ff310(0x1b3)];if(!_0x171f98||_0x586008[_0x3ff310(0x158)](_0x171f98)||!_0x24dcbb)throw Error('Invalid\x20or\x20duplicate\x20relationship\x20in\x20'+_0x1b961c+'.');return _0x586008[_0x3ff310(0x189)](_0x171f98),{'id':_0x171f98,'type':_0x24dcbb,'target':_0x1bf79b??'','mode':_0xd9383e};});return _0x5eb92d['set'](_0x2b9dd2,_0x57aa47),_0x57aa47;},_0x2975df=(_0x46ebdb,_0x561351)=>{const _0x12f1cf=a146_0x1d90,{target:_0x3d1c3d,mode:_0x26ed2b}=_0x561351;if(_0x26ed2b&&_0x26ed2b!=='Internal')throw Error(_0x12f1cf(0x163)+_0x46ebdb+'.');if(!_0x3d1c3d||_0x3d1c3d[_0x12f1cf(0x18b)]('\x5c')||/[?#%\x00-\x20]/[_0x12f1cf(0x13e)](_0x3d1c3d)||/^[a-z][a-z0-9+.-]*:/i['test'](_0x3d1c3d)||_0x3d1c3d['startsWith']('//'))throw Error('Invalid\x20relationship\x20target:\x20'+_0x46ebdb+'.');const _0xc39de7=_0x3d1c3d[_0x12f1cf(0x1b7)]('/')?_0x3d1c3d[_0x12f1cf(0x159)](0x1):a146_0x4352ed[_0x12f1cf(0x131)]['normalize'](a146_0x4352ed[_0x12f1cf(0x131)][_0x12f1cf(0x193)](a146_0x4352ed[_0x12f1cf(0x131)][_0x12f1cf(0x1a0)](_0x46ebdb),_0x3d1c3d));if(_0xc39de7['startsWith'](_0x12f1cf(0x17a))||_0xc39de7==='..'||!_0xc39de7[_0x12f1cf(0x1b7)](_0x12f1cf(0x18c)))throw Error(_0x12f1cf(0x1ae)+_0x46ebdb+'.');return _0xc39de7;},_0x4e8ced=(_0x29ac61,_0x322889,_0x1064c7)=>{const _0x27e95f=a146_0x1d90,_0x20cacf=_0x553747(_0x29ac61)[_0x27e95f(0x18e)](_0x1176d2=>_0x1176d2['id']===_0x322889&&relationshipTypes(_0x1064c7)[_0x27e95f(0x18b)](_0x1176d2[_0x27e95f(0x183)]));if(_0x20cacf['length']!==0x1)throw Error(_0x27e95f(0x1a9)+_0x1064c7+'\x20relationship\x20in\x20'+_0x29ac61+'.');return _0x2975df(_0x29ac61,_0x20cacf[0x0]);},_0x556a73=(_0x22e354,_0x24c245)=>{const _0x3f5bec=a146_0x1d90,_0x1e394d=_0x553747(_0x22e354)[_0x3f5bec(0x18e)](_0x48f2bb=>relationshipTypes(_0x24c245)['includes'](_0x48f2bb['type']));if(_0x1e394d[_0x3f5bec(0x1b5)]!==0x1)throw Error(_0x3f5bec(0x1a9)+_0x24c245+_0x3f5bec(0x1b9)+_0x22e354+'.');return _0x2975df(_0x22e354,_0x1e394d[0x0]);},_0x145692='xl/workbook.xml',_0x82be55=_0x88534e(_0x145692);if(!matches(_0x82be55,_0x53a344(0x1a7)))throw Error(_0x53a344(0x172));const _0x1c21d2=one(chain(_0x82be55,_0x53a344(0x1c7),'sheet')[_0x53a344(0x18e)](_0x34291f=>_0x34291f[_0x53a344(0x1b3)]['name']===_0x1e2c29),_0x53a344(0x174)),_0x6c683e=_0x4e8ced(_0x145692,_0x1c21d2[_0x53a344(0x1b3)][_0x53a344(0x165)],'worksheet'),_0x4e1e1b=_0x88534e(_0x6c683e);if(!matches(_0x4e1e1b,_0x53a344(0x174)))throw Error(_0x53a344(0x1c0));const _0x562e37=chain(_0x4e1e1b,_0x53a344(0x1be),_0x53a344(0x180)),_0x1a0d89=new Map(),_0x2fbe9e=new Set(_0x562e37[_0x53a344(0x18e)](_0x55a6ee=>_0x55a6ee['attrs'][_0x53a344(0x185)]==='1'||_0x55a6ee['attrs'][_0x53a344(0x185)]==='true')[_0x53a344(0x15d)](_0xd8b794=>integer(_0xd8b794[_0x53a344(0x1b3)]['r'],_0x53a344(0x1d2)))),_0x155a1c=_0xf60d6f=>{const _0x3598ad=_0x53a344,_0x58493b=_0xf60d6f===undefined?0xf:Number(_0xf60d6f);if(!Number[_0x3598ad(0x1cb)](_0x58493b)||_0x58493b<=0x0||_0x58493b>409.5)throw Error(_0x3598ad(0x15e));return Math[_0x3598ad(0x1d0)](_0x58493b*0x319c);},_0x560a63=_0x155a1c(children(_0x4e1e1b,_0x53a344(0x13f))[0x0]?.[_0x53a344(0x1b3)]['defaultRowHeight']);for(const _0x2e94cc of _0x562e37)if(_0x2e94cc[_0x53a344(0x1b3)]['ht']!==undefined)_0x1a0d89[_0x53a344(0x14c)](integer(_0x2e94cc[_0x53a344(0x1b3)]['r'],_0x53a344(0x16c)),_0x155a1c(_0x2e94cc[_0x53a344(0x1b3)]['ht']));const _0x534e3a=[],_0x4d60b4=_0x4345a3=>{const _0x33b4a9=_0x53a344;if(!_0x417885[_0x33b4a9(0x158)](_0x4345a3[_0x33b4a9(0x1ac)]))return;if(++_0x521028>0x2710)throw Error('Workbook\x20exceeds\x2010000\x20image\x20occurrences.');_0x534e3a['push'](_0x2fbe9e[_0x33b4a9(0x158)](_0x4345a3['row'])?{..._0x4345a3,'hiddenRow':!![]}:_0x4345a3);},_0x2b69cb=_0x4e9479=>({'row':integer(one(children(_0x4e9479,_0x53a344(0x180),DRAWING),'anchor\x20row')[_0x53a344(0x1d5)],'anchor\x20row',0x1869f)+0x1,'col':integer(one(children(_0x4e9479,_0x53a344(0x1ac)),_0x53a344(0x1ca))['text'],_0x53a344(0x1ca),0xff)+0x1});for(const _0x4cff1a of children(_0x4e1e1b,'drawing')){const _0x4641b8=_0x4e8ced(_0x6c683e,_0x4cff1a[_0x53a344(0x1b3)][_0x53a344(0x165)],_0x53a344(0x182)),_0x4b780e=_0x88534e(_0x4641b8);if(!matches(_0x4b780e,'wsDr'))throw Error(_0x53a344(0x191));for(const _0x55f291 of _0x4b780e[_0x53a344(0x152)]){if(![_0x53a344(0x135),_0x53a344(0x15c),'absoluteAnchor'][_0x53a344(0x1cd)](_0x5bc92f=>matches(_0x55f291,_0x5bc92f)))continue;if(_0x55f291[_0x53a344(0x19f)]==='absoluteAnchor')throw Error(_0x53a344(0x133)+_0x1e2c29+'.');const _0x30f02b=_0x2b69cb(one(children(_0x55f291,_0x53a344(0x178)),_0x53a344(0x141)));if(!_0x417885[_0x53a344(0x158)](_0x30f02b['col']))continue;let _0x2c804e;const _0x1ab592=one(children(_0x55f291,_0x53a344(0x178)),'anchor\x20start'),_0x135009=integer(one(children(_0x1ab592,_0x53a344(0x16a)),'anchor\x20start\x20offset')[_0x53a344(0x1d5)],_0x53a344(0x153),Number[_0x53a344(0x1d6)]),_0x5ea848=_0x1a0d89[_0x53a344(0x155)](_0x30f02b[_0x53a344(0x180)])??_0x560a63;if(_0x135009>=_0x5ea848)throw Error(_0x53a344(0x146)+_0x30f02b[_0x53a344(0x180)]+'.');if(_0x55f291['name']===_0x53a344(0x135)){const _0x1fe525=one(children(_0x55f291,_0x53a344(0x19a)),_0x53a344(0x1a4)),_0x26f45c=integer(_0x1fe525[_0x53a344(0x1b3)]['cy'],_0x53a344(0x19e),Number[_0x53a344(0x1d6)]);if(!_0x26f45c||_0x135009+_0x26f45c>_0x5ea848)_0x2c804e=_0x53a344(0x1a8);}if(_0x55f291[_0x53a344(0x19f)]===_0x53a344(0x15c)){const _0x32a2cb=one(children(_0x55f291,'to'),'anchor\x20end'),_0x22832a=_0x2b69cb(_0x32a2cb),_0x5d22bd=integer(one(children(_0x32a2cb,_0x53a344(0x16a)),_0x53a344(0x134))[_0x53a344(0x1d5)],_0x53a344(0x134),Number[_0x53a344(0x1d6)]),_0x52f36e=_0x1a0d89['get'](_0x22832a[_0x53a344(0x180)])??_0x560a63;if(_0x5d22bd>_0x52f36e||_0x22832a[_0x53a344(0x180)]===_0x30f02b[_0x53a344(0x180)]&&_0x5d22bd<=_0x135009)_0x2c804e='Image\x20anchor\x20has\x20invalid\x20or\x20reversed\x20row\x20offsets.';if(_0x22832a[_0x53a344(0x180)]<_0x30f02b['row']||_0x22832a[_0x53a344(0x180)]>_0x30f02b[_0x53a344(0x180)]+0x1||_0x22832a['row']===_0x30f02b['row']+0x1&&_0x5d22bd!==0x0)_0x2c804e=_0x53a344(0x1a8);}const _0x2b62ca=chain(_0x55f291,_0x53a344(0x154),_0x53a344(0x147),_0x53a344(0x194));for(const _0x40f030 of _0x2b62ca){if(_0x40f030[_0x53a344(0x1b3)]['r:link'])throw Error('External\x20image\x20links\x20are\x20not\x20supported.');_0x4d60b4({..._0x30f02b,'media':[_0x4e8ced(_0x4641b8,_0x40f030[_0x53a344(0x1b3)]['r:embed'],_0x53a344(0x19c))],..._0x2c804e?{'error':_0x2c804e}:{}});}if(!_0x2b62ca[_0x53a344(0x1b5)])_0x4d60b4({..._0x30f02b,'media':[],'error':_0x53a344(0x17b)});}}const _0x3bd37d=_0x3c10ca=>{const _0x22dc72=_0x53a344,_0x5d2535=_0x88534e(_0x556a73(_0x145692,_0x22dc72(0x156)));if(!matches(_0x5d2535,_0x22dc72(0x171)))throw Error('Unsupported\x20metadata\x20namespace.');const _0x127bba=integer(_0x3c10ca['attrs']['vm'],'value\x20metadata\x20index');if(!_0x127bba)throw Error(_0x22dc72(0x168));const _0x275bb6=children(one(children(_0x5d2535,_0x22dc72(0x15f)),_0x22dc72(0x15f)),'bk')[_0x127bba-0x1];if(!_0x275bb6)throw Error(_0x22dc72(0x157));const _0x328259=one(children(_0x275bb6,'rc'),_0x22dc72(0x186)),_0x53b358=integer(_0x328259['attrs']['t'],'metadata\x20type\x20index'),_0x387252=children(one(children(_0x5d2535,_0x22dc72(0x16e)),'metadata\x20types'),_0x22dc72(0x1bb))[_0x53b358-0x1];if(!_0x53b358||_0x387252?.['attrs'][_0x22dc72(0x19f)]!==_0x22dc72(0x17c))throw Error(_0x22dc72(0x1af));const _0x482685=one(children(_0x5d2535,_0x22dc72(0x151))[_0x22dc72(0x18e)](_0x489a2f=>_0x489a2f[_0x22dc72(0x1b3)][_0x22dc72(0x19f)]===_0x22dc72(0x17c)),_0x22dc72(0x1b2)),_0x5ed7c6=children(_0x482685,'bk')[integer(_0x328259[_0x22dc72(0x1b3)]['v'],'future\x20metadata\x20index')];if(!_0x5ed7c6)throw Error('Missing\x20future\x20metadata\x20block.');const _0x44b63c=chain(_0x5ed7c6,_0x22dc72(0x1bd))[_0x22dc72(0x145)](_0x1565aa=>children(_0x1565aa,_0x22dc72(0x19a),SHEET))[_0x22dc72(0x18e)](_0x542d31=>_0x542d31['attrs'][_0x22dc72(0x16b)]?.[_0x22dc72(0x143)]()===_0x22dc72(0x13c)),_0x402a38=integer(one(_0x44b63c[_0x22dc72(0x145)](_0x6bc3e5=>children(_0x6bc3e5,_0x22dc72(0x167))),_0x22dc72(0x190))[_0x22dc72(0x1b3)]['i'],'rich\x20value\x20index'),_0x6ed67c=_0x88534e(_0x556a73(_0x145692,_0x22dc72(0x170)));if(!matches(_0x6ed67c,'rvData'))throw Error('Unsupported\x20rich\x20value\x20namespace.');const _0x4f55a3=children(_0x6ed67c,'rv')[_0x402a38];if(!_0x4f55a3)throw Error(_0x22dc72(0x176));const _0x1de015=_0x88534e(_0x556a73(_0x145692,_0x22dc72(0x19b)));if(!matches(_0x1de015,_0x22dc72(0x16d)))throw Error(_0x22dc72(0x1d3));const _0x5f04cd=children(_0x1de015,'s')[integer(_0x4f55a3[_0x22dc72(0x1b3)]['s'],_0x22dc72(0x13d))];if(!_0x5f04cd||_0x5f04cd[_0x22dc72(0x1b3)]['t']!==_0x22dc72(0x142))throw Error(_0x22dc72(0x1c1));const _0x298232=children(_0x5f04cd,'k'),_0x268008=_0x298232[_0x22dc72(0x15d)]((_0x45a109,_0x1d3cc6)=>_0x45a109[_0x22dc72(0x1b3)]['n']===_0x22dc72(0x150)?_0x1d3cc6:-0x1)[_0x22dc72(0x18e)](_0x3d04a3=>_0x3d04a3>=0x0);if(_0x268008[_0x22dc72(0x1b5)]!==0x1)throw Error(_0x22dc72(0x14b));const _0x13bd54=children(_0x4f55a3,'v',RICH)[_0x268008[0x0]];if(!_0x13bd54)throw Error(_0x22dc72(0x1b4));const _0x435731=_0x556a73(_0x145692,_0x22dc72(0x169)),_0x575c49=_0x88534e(_0x435731);if(!matches(_0x575c49,_0x22dc72(0x1c8)))throw Error(_0x22dc72(0x14e));const _0x23e7b2=children(_0x575c49,_0x22dc72(0x1cc))[integer(_0x13bd54['text'],_0x22dc72(0x160))];if(!_0x23e7b2)throw Error('Missing\x20rich\x20image\x20relationship.');return _0x4e8ced(_0x435731,_0x23e7b2[_0x22dc72(0x1b3)]['r:id'],_0x22dc72(0x19c));};let _0x2b3d04;const _0x505dfa=_0x443d94=>{const _0x2544ac=_0x53a344;if(!_0x2b3d04){_0x2b3d04=new Map();const _0x29efa9=_0x553747(_0x145692)[_0x2544ac(0x18e)](_0x111525=>[...relationshipTypes(_0x2544ac(0x181)),...relationshipTypes('cellImages')]['includes'](_0x111525[_0x2544ac(0x183)]));if(!_0x29efa9[_0x2544ac(0x1b5)]&&_0x4132fb[_0x2544ac(0x158)](_0x2544ac(0x1ce)))_0x29efa9[_0x2544ac(0x14d)]({'id':'','type':'','target':'/xl/cellimages.xml'});if(_0x29efa9[_0x2544ac(0x1b5)]!==0x1)throw Error(_0x2544ac(0x144));const _0x273a8a=_0x2975df(_0x145692,_0x29efa9[0x0]),_0x8c13d1=_0x88534e(_0x273a8a);if(!matches(_0x8c13d1,'cellImages'))throw Error('Unsupported\x20WPS\x20cell\x20image\x20namespace.');for(const _0x93a15f of children(_0x8c13d1,_0x2544ac(0x181))){const _0x4df467=one(chain(_0x93a15f,_0x2544ac(0x154),_0x2544ac(0x1b8),'cNvPr'),_0x2544ac(0x18a))[_0x2544ac(0x1b3)]['name'];if(!_0x4df467||_0x2b3d04[_0x2544ac(0x158)](_0x4df467))throw Error('Invalid\x20or\x20duplicate\x20WPS\x20image\x20ID.');const _0x185e4c=one(chain(_0x93a15f,_0x2544ac(0x154),'blipFill',_0x2544ac(0x194)),'WPS\x20image\x20blip');if(_0x185e4c[_0x2544ac(0x1b3)][_0x2544ac(0x162)])throw Error(_0x2544ac(0x199));_0x2b3d04[_0x2544ac(0x14c)](_0x4df467,_0x4e8ced(_0x273a8a,_0x185e4c[_0x2544ac(0x1b3)][_0x2544ac(0x140)],'image'));}}const _0x463d20=_0x2b3d04[_0x2544ac(0x155)](_0x443d94);if(!_0x463d20)throw Error(_0x2544ac(0x17e)+_0x443d94+'.');return _0x463d20;},_0xe15a3d=new Set();for(const _0x5e4512 of _0x562e37[_0x53a344(0x145)](_0x3b1353=>children(_0x3b1353,'c'))){const _0x523cd5=/^([A-Z]+)([1-9]\d*)$/['exec'](_0x5e4512[_0x53a344(0x1b3)]['r']??'');if(!_0x523cd5)continue;let _0xe60206=0x0;for(const _0x393f17 of _0x523cd5[0x1])_0xe60206=_0xe60206*0x1a+_0x393f17[_0x53a344(0x18f)](0x0)-0x40;if(!_0x417885['has'](_0xe60206))continue;const _0x199ac=integer(_0x523cd5[0x2],_0x53a344(0x15a));if(_0xe15a3d['has'](_0x5e4512['attrs']['r']))throw Error(_0x53a344(0x197));_0xe15a3d[_0x53a344(0x189)](_0x5e4512[_0x53a344(0x1b3)]['r']);const _0x40b516=children(_0x5e4512,'f');if(!_0x5e4512[_0x53a344(0x1b3)]['vm']&&!_0x40b516[_0x53a344(0x1b5)])continue;try{if(_0x199ac<0x1||_0xe60206>0x100)throw Error(_0x53a344(0x166));let _0x3c2f0f;if(_0x5e4512['attrs']['vm']){if(_0x40b516['length'])throw Error(_0x53a344(0x173));if(_0x5e4512[_0x53a344(0x1b3)]['t']!=='e'||children(_0x5e4512,'v')[_0x53a344(0x1b5)]!==0x1||children(_0x5e4512,'v')[0x0][_0x53a344(0x1d5)]!==_0x53a344(0x14f))throw Error('Rich\x20IMAGE\x20cell\x20contains\x20unexpected\x20scalar\x20or\x20mixed\x20content.');_0x3c2f0f=_0x3bd37d(_0x5e4512);}else{const _0x4a2c0c=one(_0x40b516,_0x53a344(0x1c3));if(_0x4a2c0c[_0x53a344(0x1b3)]['t']===_0x53a344(0x1bf)||_0x4a2c0c[_0x53a344(0x1b3)]['si'])throw Error(_0x53a344(0x1d4));const _0x593ade=/^\s*=?\s*@?(?:_xlfn\.)?DISPIMG\(\s*"((?:[^"]|"")+)"\s*(?:,\s*[01]\s*)?\)\s*$/i[_0x53a344(0x149)](_0x4a2c0c[_0x53a344(0x1d5)]);if(!_0x593ade)throw Error(_0x53a344(0x1aa));_0x3c2f0f=_0x505dfa(_0x593ade[0x1][_0x53a344(0x1d1)](/""/g,'\x22'));}_0x4d60b4({'row':_0x199ac,'col':_0xe60206,'media':[_0x3c2f0f],'nativeCell':!![]});}catch(_0x298690){_0x4d60b4({'row':_0x199ac,'col':_0xe60206,'media':[],'nativeCell':!![],'error':_0x298690[_0x53a344(0x1c2)]});}}return _0x534e3a;}
1
+ const a146_0x3de8c0=a146_0x4a92;(function(_0x6e1ba2,_0x34c60f){const _0x3ef252=a146_0x4a92,_0x55673f=_0x6e1ba2();while(!![]){try{const _0x36dacb=-parseInt(_0x3ef252(0x21b))/0x1+-parseInt(_0x3ef252(0x206))/0x2*(-parseInt(_0x3ef252(0x23b))/0x3)+-parseInt(_0x3ef252(0x1d4))/0x4+-parseInt(_0x3ef252(0x1ae))/0x5+parseInt(_0x3ef252(0x1ca))/0x6+parseInt(_0x3ef252(0x217))/0x7*(-parseInt(_0x3ef252(0x1b4))/0x8)+parseInt(_0x3ef252(0x1d9))/0x9*(parseInt(_0x3ef252(0x1b9))/0xa);if(_0x36dacb===_0x34c60f)break;else _0x55673f['push'](_0x55673f['shift']());}catch(_0x5e11f5){_0x55673f['push'](_0x55673f['shift']());}}}(a146_0x19be,0xe4298));function a146_0x4a92(_0x38938b,_0x100448){_0x38938b=_0x38938b-0x1ae;const _0x19bed6=a146_0x19be();let _0x4a9228=_0x19bed6[_0x38938b];return _0x4a9228;}import a146_0x49c06a from'node:path';function a146_0x19be(){const _0x53ee89=['Rich\x20IMAGE\x20cell\x20contains\x20unexpected\x20scalar\x20or\x20mixed\x20content.','rowOff','rich\x20value\x20index','blipFill','Missing\x20rich\x20value.','image\x20extent','Invalid\x20image\x20start\x20offset\x20at\x20row\x20','Relationships','136438xSWRBZ','Unsupported\x20mapped\x20rich\x20value\x20structure.','http://www.wps.cn/officeDocument/2017/etCustomData','r:id','image\x20formula','wsDr','test','exec','XLRICHVALUE','{3e2802c4-a4d2-4d8b-9148-e3be6c30e623}','anchor\x20row','Missing\x20XLSX\x20part:\x20','image\x20row\x20height\x20coordinate','valueMetadata','Image\x20XML\x20text\x20exceeds\x2064\x20KB.','flatMap','rich\x20metadata\x20record','14yBUaBD','blip','Unsupported\x20drawing\x20image.','Shared\x20image\x20formulas\x20are\x20not\x20supported.','1862986hjhRPn','oneCellAnchor','rich\x20image\x20relationship\x20index','Unsupported\x20rich\x20value\x20namespace.','round','rel','isSafeInteger','Ambiguous\x20XML\x20attribute.','anchor\x20column','defaultRowHeight','\x20relationship\x20in\x20','image\x20height','http://schemas.openxmlformats.org/spreadsheetml/2006/main','richValueRel','message','Unsupported\x20metadata\x20namespace.','cellImage','hidden\x20image\x20row','_rvRel:LocalImageIdentifier','local','row','col','Unsupported\x20worksheet\x20namespace.','close','rdRichValue','hidden','from','Missing\x20value\x20metadata\x20block.','http://purl.oclc.org/ooxml/officeDocument/relationships','Invalid\x20or\x20duplicate\x20relationship\x20in\x20','toLowerCase','External\x20image\x20relationship\x20is\x20not\x20supported:\x20','21qHXvlV','join','filter','value\x20metadata\x20index','anchor\x20start','posix','sheet','Relationship\x20target\x20escapes\x20workbook:\x20','twoCellAnchor','children','.rels','anchor\x20end\x20offset','http://schemas.openxmlformats.org/drawingml/2006/main','http://www.wps.cn/officeDocument/2017/relationships/','type','metadata\x20type\x20index','doctype','External\x20image\x20links\x20are\x20not\x20supported.','rvData','colOff','Relationship','values','../','name','rvStructures','rvb','Mixed\x20formula\x20and\x20rich\x20image\x20metadata\x20is\x20unsupported.','_localImage','rich\x20value\x20binding','XML\x20DTD/entities\x20are\x20not\x20supported.','charCodeAt','workbook','Missing\x20WPS\x20image\x20ID:\x20','fromEntries','Missing\x20local\x20image\x20identifier\x20value.','1106070goIxQS','sheetFormatPr','add','write','sheets','rdRichValueStructure','6075344tjnexQ','isFinite','Unsupported\x20mapped\x20cell\x20metadata\x20type.','sheetMetadata','pic','10DIdHRS','future\x20metadata\x20index','absoluteAnchor','includes','cNvPr','External\x20WPS\x20image\x20links\x20are\x20not\x20supported.','has','Image\x20coordinate\x20exceeds\x20worksheet\x20bounds.','length','Unsupported\x20workbook\x20namespace.','Missing\x20or\x20ambiguous\x20','Unsupported\x20rich\x20structure\x20namespace.','replace','Missing\x20or\x20ambiguous\x20WPS\x20cell\x20image\x20part.','uri','http://purl.oclc.org/ooxml/spreadsheetml/main','nvPicPr','578274qyUSZi','futureMetadata','http://purl.oclc.org/ooxml/drawingml/main','WPS\x20image\x20blip','r:link','rich\x20future\x20metadata','Image\x20anchor\x20spans\x20multiple\x20business\x20rows.','metadataTypes','Missing\x20future\x20metadata\x20block.','sheetData','7104396gweGsK','ext','_rels','Internal','http://schemas.microsoft.com/office/spreadsheetml/2022/richvaluerel','51657975vhUrHC','push','dirname','Absolute\x20image\x20anchor\x20cannot\x20be\x20mapped\x20in\x20worksheet\x20','xl/','opentag','map','Missing\x20rich\x20image\x20relationship.','startsWith','drawing','r:embed','basename','Workbook\x20exceeds\x2010000\x20image\x20occurrences.','set','attrs','cellImages','metadata','image','some','#VALUE!','metadataType','Missing\x20or\x20ambiguous\x20local\x20image\x20identifier.','metadata\x20types','worksheet','xl/workbook.xml','Invalid\x20relationship\x20target:\x20','MAX_SAFE_INTEGER','Unsupported\x20relationship\x20namespace\x20in\x20','Image\x20XML\x20node\x20budget\x20exceeded.','http://schemas.openxmlformats.org/officeDocument/2006/relationships','richValueRels','value','Unsupported\x20WPS\x20cell\x20image\x20namespace.','extLst','text','get','WPS\x20image\x20name'];a146_0x19be=function(){return _0x53ee89;};return a146_0x19be();}import{SaxesParser}from'saxes';const SHEET=[a146_0x3de8c0(0x227),a146_0x3de8c0(0x1c8)],DRAWING=['http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing','http://purl.oclc.org/ooxml/drawingml/spreadsheetDrawing'],DRAWING_MAIN=[a146_0x3de8c0(0x247),a146_0x3de8c0(0x1cc)],OFFICE_RELS=[a146_0x3de8c0(0x1f6),a146_0x3de8c0(0x237)],PACKAGE=['http://schemas.openxmlformats.org/package/2006/relationships'],RICH=['http://schemas.microsoft.com/office/spreadsheetml/2017/richdata'],RICH_RELS=[a146_0x3de8c0(0x1d8)],WPS=[a146_0x3de8c0(0x208)],DEFAULT_NS=Object[a146_0x3de8c0(0x25c)]([...[a146_0x3de8c0(0x25a),a146_0x3de8c0(0x1b2),a146_0x3de8c0(0x241),a146_0x3de8c0(0x1f0),a146_0x3de8c0(0x1d3),'row','c','f','v',a146_0x3de8c0(0x1af),a146_0x3de8c0(0x1e2),a146_0x3de8c0(0x1e9),'metadataTypes',a146_0x3de8c0(0x1ed),'futureMetadata',a146_0x3de8c0(0x213),'bk','rc',a146_0x3de8c0(0x1fa)][a146_0x3de8c0(0x1df)](_0x57cb09=>[_0x57cb09,SHEET]),...[a146_0x3de8c0(0x20b),'oneCellAnchor',a146_0x3de8c0(0x243),a146_0x3de8c0(0x1bb),'from','to',a146_0x3de8c0(0x230),a146_0x3de8c0(0x24e),a146_0x3de8c0(0x1ff),a146_0x3de8c0(0x1d5),'pic',a146_0x3de8c0(0x1c9),a146_0x3de8c0(0x1bd),a146_0x3de8c0(0x201)]['map'](_0x19898e=>[_0x19898e,DRAWING]),...[a146_0x3de8c0(0x254),a146_0x3de8c0(0x24d),'rv',a146_0x3de8c0(0x253),'s','k']['map'](_0x4e209e=>[_0x4e209e,RICH]),['blip',DRAWING_MAIN],[a146_0x3de8c0(0x1f7),RICH_RELS],[a146_0x3de8c0(0x220),RICH_RELS],['Relationships',PACKAGE],[a146_0x3de8c0(0x24f),PACKAGE],[a146_0x3de8c0(0x1e8),WPS],[a146_0x3de8c0(0x22b),WPS]]),matches=(_0x68af23,_0x4922bd,_0x5ca504=DEFAULT_NS[_0x4922bd]??[])=>_0x68af23[a146_0x3de8c0(0x252)]===_0x4922bd&&_0x5ca504[a146_0x3de8c0(0x1bc)](_0x68af23['uri']),children=(_0x49d573,_0x371815,_0x222e3f=DEFAULT_NS[_0x371815])=>_0x49d573[a146_0x3de8c0(0x244)][a146_0x3de8c0(0x23d)](_0x5c0a57=>matches(_0x5c0a57,_0x371815,_0x222e3f)),chain=(_0x43bd1d,..._0xb4119e)=>_0xb4119e['reduce']((_0x258b78,_0x350d73)=>_0x258b78['flatMap'](_0x2105ea=>children(_0x2105ea,_0x350d73)),[_0x43bd1d]),relationshipTypes=_0x2a2338=>{const _0x1f86ca=a146_0x3de8c0;if([_0x1f86ca(0x233),_0x1f86ca(0x1b3)][_0x1f86ca(0x1bc)](_0x2a2338))return['http://schemas.microsoft.com/office/2017/06/relationships/'+_0x2a2338];if(_0x2a2338===_0x1f86ca(0x228))return['http://schemas.microsoft.com/office/2022/10/relationships/richValueRel'];if(_0x2a2338==='cellImage'||_0x2a2338===_0x1f86ca(0x1e8))return[_0x1f86ca(0x248)+_0x2a2338];return OFFICE_RELS[_0x1f86ca(0x1df)](_0x2d2667=>_0x2d2667+'/'+_0x2a2338);};function one(_0xcf3555,_0x473790){const _0x5c4e39=a146_0x3de8c0;if(_0xcf3555['length']!==0x1)throw Error(_0x5c4e39(0x1c3)+_0x473790+'.');return _0xcf3555[0x0];}function integer(_0x33b53e,_0x5a762c,_0x12399b=0x186a0){const _0x523573=a146_0x3de8c0;if(!_0x33b53e||!/^\d+$/['test'](_0x33b53e)||!Number[_0x523573(0x221)](Number(_0x33b53e))||Number(_0x33b53e)>_0x12399b)throw Error('Invalid\x20'+_0x5a762c+'.');return Number(_0x33b53e);}export function resolveWorksheetImages(_0x2c6f48,_0x35a338,_0x5a56a8){const _0x5aa7e9=a146_0x3de8c0;let _0x52223a=0x0,_0x2d34b6=0x0,_0xcc46e9=0x0;const _0x3c3cd5=new Map(),_0x58792f=_0x4b6b03=>{const _0x51291c=a146_0x4a92;if(_0x3c3cd5['has'](_0x4b6b03))return _0x3c3cd5[_0x51291c(0x1fc)](_0x4b6b03);const _0x1755e5=_0x2c6f48[_0x51291c(0x1fc)](_0x4b6b03);if(!_0x1755e5)throw Error(_0x51291c(0x211)+_0x4b6b03+'.');const _0x4423c1={'name':'','uri':'','attrs':{},'children':[],'text':''},_0x3e0a65=[_0x4423c1],_0x3599c5=new SaxesParser({'xmlns':!![]}),_0x59c90d=()=>{if(++_0x2d34b6>0x1e8480)throw Error('Image\x20XML\x20event\x20budget\x20exceeded.');};_0x3599c5['on'](_0x51291c(0x24b),()=>{const _0x1555c4=_0x51291c;throw Error(_0x1555c4(0x258));}),_0x3599c5['on'](_0x51291c(0x1de),_0x1dc93e=>{const _0x29aad2=_0x51291c;_0x59c90d();if(++_0x52223a>0x7a120||_0x3e0a65[_0x29aad2(0x1c1)]>0x40)throw Error(_0x29aad2(0x1f5));const _0x1102d9={};for(const _0x385bca of Object[_0x29aad2(0x250)](_0x1dc93e['attributes'])){const _0x57c0a8=OFFICE_RELS[_0x29aad2(0x1bc)](_0x385bca[_0x29aad2(0x1c7)])?'r:'+_0x385bca[_0x29aad2(0x22e)]:_0x385bca[_0x29aad2(0x1c7)]?'{'+_0x385bca[_0x29aad2(0x1c7)]+'}'+_0x385bca[_0x29aad2(0x22e)]:_0x385bca[_0x29aad2(0x22e)];if(_0x57c0a8 in _0x1102d9)throw Error(_0x29aad2(0x222));_0x1102d9[_0x57c0a8]=_0x385bca[_0x29aad2(0x1f8)];}const _0x5e5624={'name':_0x1dc93e[_0x29aad2(0x22e)],'uri':_0x1dc93e[_0x29aad2(0x1c7)],'attrs':_0x1102d9,'children':[],'text':''};_0x3e0a65['at'](-0x1)[_0x29aad2(0x244)]['push'](_0x5e5624),_0x3e0a65['push'](_0x5e5624);}),_0x3599c5['on']('text',_0x2a43ca=>{const _0x35bb79=_0x51291c;_0x59c90d();const _0x33926d=_0x3e0a65['at'](-0x1);_0x33926d[_0x35bb79(0x1fb)]+=_0x2a43ca;if(_0x33926d[_0x35bb79(0x1fb)]['length']>0x10000)throw Error(_0x35bb79(0x214));}),_0x3599c5['on']('closetag',()=>{_0x59c90d(),_0x3e0a65['pop']();}),_0x3599c5['on']('error',_0x1bdffc=>{throw _0x1bdffc;}),_0x3599c5[_0x51291c(0x1b1)](_0x1755e5['toString']('utf8'))[_0x51291c(0x232)]();const _0x427efd=one(_0x4423c1[_0x51291c(0x244)],_0x4b6b03);return _0x3c3cd5[_0x51291c(0x1e6)](_0x4b6b03,_0x427efd),_0x427efd;},_0x83acaa=new Map(),_0x4bc181=_0xaa0cb9=>{const _0xd90103=a146_0x4a92;if(_0x83acaa['has'](_0xaa0cb9))return _0x83acaa['get'](_0xaa0cb9);const _0xbe7d17=a146_0x49c06a[_0xd90103(0x240)][_0xd90103(0x23c)](a146_0x49c06a[_0xd90103(0x240)][_0xd90103(0x1db)](_0xaa0cb9),_0xd90103(0x1d6),a146_0x49c06a[_0xd90103(0x240)][_0xd90103(0x1e4)](_0xaa0cb9)+_0xd90103(0x245));if(!_0x2c6f48['has'](_0xbe7d17))return[];const _0x4a6d9d=new Set(),_0x133b7d=_0x58792f(_0xbe7d17);if(!matches(_0x133b7d,_0xd90103(0x205)))throw Error(_0xd90103(0x1f4)+_0xbe7d17+'.');const _0x4b3403=children(_0x133b7d,_0xd90103(0x24f))[_0xd90103(0x1df)](_0xa7706b=>{const _0x907c26=_0xd90103,{Id:_0x16a077,Type:_0x68f4f6,Target:_0x1a5575,TargetMode:_0x132743}=_0xa7706b[_0x907c26(0x1e7)];if(!_0x16a077||_0x4a6d9d[_0x907c26(0x1bf)](_0x16a077)||!_0x68f4f6)throw Error(_0x907c26(0x238)+_0xbe7d17+'.');return _0x4a6d9d[_0x907c26(0x1b0)](_0x16a077),{'id':_0x16a077,'type':_0x68f4f6,'target':_0x1a5575??'','mode':_0x132743};});return _0x83acaa[_0xd90103(0x1e6)](_0xaa0cb9,_0x4b3403),_0x4b3403;},_0x3ac38b=(_0x54c65d,_0x4e2224)=>{const _0x8fce8f=a146_0x4a92,{target:_0x118bc5,mode:_0x427021}=_0x4e2224;if(_0x427021&&_0x427021!==_0x8fce8f(0x1d7))throw Error(_0x8fce8f(0x23a)+_0x54c65d+'.');if(!_0x118bc5||_0x118bc5[_0x8fce8f(0x1bc)]('\x5c')||/[?#%\x00-\x20]/['test'](_0x118bc5)||/^[a-z][a-z0-9+.-]*:/i[_0x8fce8f(0x20c)](_0x118bc5)||_0x118bc5[_0x8fce8f(0x1e1)]('//'))throw Error(_0x8fce8f(0x1f2)+_0x54c65d+'.');const _0x5ad523=_0x118bc5[_0x8fce8f(0x1e1)]('/')?_0x118bc5['slice'](0x1):a146_0x49c06a['posix']['normalize'](a146_0x49c06a[_0x8fce8f(0x240)][_0x8fce8f(0x23c)](a146_0x49c06a[_0x8fce8f(0x240)][_0x8fce8f(0x1db)](_0x54c65d),_0x118bc5));if(_0x5ad523[_0x8fce8f(0x1e1)](_0x8fce8f(0x251))||_0x5ad523==='..'||!_0x5ad523[_0x8fce8f(0x1e1)](_0x8fce8f(0x1dd)))throw Error(_0x8fce8f(0x242)+_0x54c65d+'.');return _0x5ad523;},_0x3815ef=(_0x5e8172,_0x1c7cfd,_0x5a1fc4)=>{const _0x114b18=a146_0x4a92,_0x5d292d=_0x4bc181(_0x5e8172)[_0x114b18(0x23d)](_0x2def6f=>_0x2def6f['id']===_0x1c7cfd&&relationshipTypes(_0x5a1fc4)['includes'](_0x2def6f[_0x114b18(0x249)]));if(_0x5d292d[_0x114b18(0x1c1)]!==0x1)throw Error(_0x114b18(0x1c3)+_0x5a1fc4+_0x114b18(0x225)+_0x5e8172+'.');return _0x3ac38b(_0x5e8172,_0x5d292d[0x0]);},_0x727d2e=(_0x2c0175,_0xe9451)=>{const _0x36b88b=a146_0x4a92,_0x4195a6=_0x4bc181(_0x2c0175)[_0x36b88b(0x23d)](_0x4f68ab=>relationshipTypes(_0xe9451)[_0x36b88b(0x1bc)](_0x4f68ab[_0x36b88b(0x249)]));if(_0x4195a6[_0x36b88b(0x1c1)]!==0x1)throw Error(_0x36b88b(0x1c3)+_0xe9451+_0x36b88b(0x225)+_0x2c0175+'.');return _0x3ac38b(_0x2c0175,_0x4195a6[0x0]);},_0x278ea5=_0x5aa7e9(0x1f1),_0x23380c=_0x58792f(_0x278ea5);if(!matches(_0x23380c,'workbook'))throw Error(_0x5aa7e9(0x1c2));const _0x23975d=one(chain(_0x23380c,'sheets',_0x5aa7e9(0x241))[_0x5aa7e9(0x23d)](_0x2fcee4=>_0x2fcee4[_0x5aa7e9(0x1e7)][_0x5aa7e9(0x252)]===_0x35a338),_0x5aa7e9(0x1f0)),_0x4c4294=_0x3815ef(_0x278ea5,_0x23975d['attrs'][_0x5aa7e9(0x209)],'worksheet'),_0xd3a5d5=_0x58792f(_0x4c4294);if(!matches(_0xd3a5d5,_0x5aa7e9(0x1f0)))throw Error(_0x5aa7e9(0x231));const _0x440322=chain(_0xd3a5d5,_0x5aa7e9(0x1d3),'row'),_0x48f4cb=new Map(),_0x101848=new Set(_0x440322['filter'](_0x49c4f4=>_0x49c4f4[_0x5aa7e9(0x1e7)][_0x5aa7e9(0x234)]==='1'||_0x49c4f4[_0x5aa7e9(0x1e7)][_0x5aa7e9(0x234)]==='true')[_0x5aa7e9(0x1df)](_0x1fa807=>integer(_0x1fa807['attrs']['r'],_0x5aa7e9(0x22c)))),_0xe221a3=_0x1cc225=>{const _0x15575d=_0x5aa7e9,_0x3f30c2=_0x1cc225===undefined?0xf:Number(_0x1cc225);if(!Number[_0x15575d(0x1b5)](_0x3f30c2)||_0x3f30c2<=0x0||_0x3f30c2>409.5)throw Error('Invalid\x20worksheet\x20row\x20height\x20for\x20image\x20anchor.');return Math[_0x15575d(0x21f)](_0x3f30c2*0x319c);},_0x48e35d=_0xe221a3(children(_0xd3a5d5,_0x5aa7e9(0x1af))[0x0]?.[_0x5aa7e9(0x1e7)][_0x5aa7e9(0x224)]);for(const _0x19933d of _0x440322)if(_0x19933d['attrs']['ht']!==undefined)_0x48f4cb[_0x5aa7e9(0x1e6)](integer(_0x19933d[_0x5aa7e9(0x1e7)]['r'],_0x5aa7e9(0x212)),_0xe221a3(_0x19933d['attrs']['ht']));const _0x1479e6=[],_0x340b84=_0x6824b0=>{const _0x364b32=_0x5aa7e9;if(!_0x5a56a8['has'](_0x6824b0[_0x364b32(0x230)]))return;if(++_0xcc46e9>0x2710)throw Error(_0x364b32(0x1e5));_0x1479e6[_0x364b32(0x1da)](_0x101848[_0x364b32(0x1bf)](_0x6824b0['row'])?{..._0x6824b0,'hiddenRow':!![]}:_0x6824b0);},_0x5d766a=_0x1fca08=>({'row':integer(one(children(_0x1fca08,_0x5aa7e9(0x22f),DRAWING),_0x5aa7e9(0x210))[_0x5aa7e9(0x1fb)],_0x5aa7e9(0x210),0x1869f)+0x1,'col':integer(one(children(_0x1fca08,_0x5aa7e9(0x230)),_0x5aa7e9(0x223))[_0x5aa7e9(0x1fb)],_0x5aa7e9(0x223),0xff)+0x1});for(const _0x5a4c0b of children(_0xd3a5d5,_0x5aa7e9(0x1e2))){const _0x16c043=_0x3815ef(_0x4c4294,_0x5a4c0b['attrs'][_0x5aa7e9(0x209)],_0x5aa7e9(0x1e2)),_0x5cade1=_0x58792f(_0x16c043);if(!matches(_0x5cade1,'wsDr'))throw Error('Unsupported\x20drawing\x20namespace.');for(const _0x3b336f of _0x5cade1[_0x5aa7e9(0x244)]){if(!['oneCellAnchor',_0x5aa7e9(0x243),_0x5aa7e9(0x1bb)][_0x5aa7e9(0x1eb)](_0x5db901=>matches(_0x3b336f,_0x5db901)))continue;if(_0x3b336f[_0x5aa7e9(0x252)]===_0x5aa7e9(0x1bb))throw Error(_0x5aa7e9(0x1dc)+_0x35a338+'.');const _0x59fd20=_0x5d766a(one(children(_0x3b336f,'from'),'anchor\x20start'));if(!_0x5a56a8[_0x5aa7e9(0x1bf)](_0x59fd20['col']))continue;let _0x599c38;const _0x5e9219=one(children(_0x3b336f,_0x5aa7e9(0x235)),_0x5aa7e9(0x23f)),_0x5a6a98=integer(one(children(_0x5e9219,_0x5aa7e9(0x1ff)),'anchor\x20start\x20offset')[_0x5aa7e9(0x1fb)],'anchor\x20start\x20offset',Number['MAX_SAFE_INTEGER']),_0xe4817c=_0x48f4cb[_0x5aa7e9(0x1fc)](_0x59fd20[_0x5aa7e9(0x22f)])??_0x48e35d;if(_0x5a6a98>=_0xe4817c)throw Error(_0x5aa7e9(0x204)+_0x59fd20[_0x5aa7e9(0x22f)]+'.');if(_0x3b336f[_0x5aa7e9(0x252)]===_0x5aa7e9(0x21c)){const _0x5b6c87=one(children(_0x3b336f,_0x5aa7e9(0x1d5)),_0x5aa7e9(0x203)),_0x3f7d6e=integer(_0x5b6c87[_0x5aa7e9(0x1e7)]['cy'],_0x5aa7e9(0x226),Number[_0x5aa7e9(0x1f3)]);if(!_0x3f7d6e||_0x5a6a98+_0x3f7d6e>_0xe4817c)_0x599c38=_0x5aa7e9(0x1d0);}if(_0x3b336f[_0x5aa7e9(0x252)]===_0x5aa7e9(0x243)){const _0x166ea1=one(children(_0x3b336f,'to'),'anchor\x20end'),_0x138e55=_0x5d766a(_0x166ea1),_0x27e215=integer(one(children(_0x166ea1,_0x5aa7e9(0x1ff)),_0x5aa7e9(0x246))[_0x5aa7e9(0x1fb)],'anchor\x20end\x20offset',Number[_0x5aa7e9(0x1f3)]),_0x51587d=_0x48f4cb[_0x5aa7e9(0x1fc)](_0x138e55[_0x5aa7e9(0x22f)])??_0x48e35d;if(_0x27e215>_0x51587d||_0x138e55[_0x5aa7e9(0x22f)]===_0x59fd20['row']&&_0x27e215<=_0x5a6a98)_0x599c38='Image\x20anchor\x20has\x20invalid\x20or\x20reversed\x20row\x20offsets.';if(_0x138e55[_0x5aa7e9(0x22f)]<_0x59fd20[_0x5aa7e9(0x22f)]||_0x138e55[_0x5aa7e9(0x22f)]>_0x59fd20[_0x5aa7e9(0x22f)]+0x1||_0x138e55[_0x5aa7e9(0x22f)]===_0x59fd20[_0x5aa7e9(0x22f)]+0x1&&_0x27e215!==0x0)_0x599c38=_0x5aa7e9(0x1d0);}const _0x36dd30=chain(_0x3b336f,_0x5aa7e9(0x1b8),_0x5aa7e9(0x201),_0x5aa7e9(0x218));for(const _0x31795c of _0x36dd30){if(_0x31795c[_0x5aa7e9(0x1e7)][_0x5aa7e9(0x1ce)])throw Error(_0x5aa7e9(0x24c));_0x340b84({..._0x59fd20,'media':[_0x3815ef(_0x16c043,_0x31795c['attrs'][_0x5aa7e9(0x1e3)],_0x5aa7e9(0x1ea))],..._0x599c38?{'error':_0x599c38}:{}});}if(!_0x36dd30[_0x5aa7e9(0x1c1)])_0x340b84({..._0x59fd20,'media':[],'error':_0x5aa7e9(0x219)});}}const _0x9962ed=_0x59d8f6=>{const _0x4e7834=_0x5aa7e9,_0x6160ac=_0x58792f(_0x727d2e(_0x278ea5,_0x4e7834(0x1b7)));if(!matches(_0x6160ac,_0x4e7834(0x1e9)))throw Error(_0x4e7834(0x22a));const _0x38b21e=integer(_0x59d8f6[_0x4e7834(0x1e7)]['vm'],_0x4e7834(0x23e));if(!_0x38b21e)throw Error('Value\x20metadata\x20index\x20must\x20be\x20one-based.');const _0x98660a=children(one(children(_0x6160ac,_0x4e7834(0x213)),_0x4e7834(0x213)),'bk')[_0x38b21e-0x1];if(!_0x98660a)throw Error(_0x4e7834(0x236));const _0x176e17=one(children(_0x98660a,'rc'),_0x4e7834(0x216)),_0x41c6f7=integer(_0x176e17['attrs']['t'],_0x4e7834(0x24a)),_0x4334d0=children(one(children(_0x6160ac,_0x4e7834(0x1d1)),_0x4e7834(0x1ef)),_0x4e7834(0x1ed))[_0x41c6f7-0x1];if(!_0x41c6f7||_0x4334d0?.[_0x4e7834(0x1e7)][_0x4e7834(0x252)]!==_0x4e7834(0x20e))throw Error(_0x4e7834(0x1b6));const _0x5e7330=one(children(_0x6160ac,_0x4e7834(0x1cb))[_0x4e7834(0x23d)](_0x55304a=>_0x55304a[_0x4e7834(0x1e7)]['name']===_0x4e7834(0x20e)),_0x4e7834(0x1cf)),_0x4c2fce=children(_0x5e7330,'bk')[integer(_0x176e17[_0x4e7834(0x1e7)]['v'],_0x4e7834(0x1ba))];if(!_0x4c2fce)throw Error(_0x4e7834(0x1d2));const _0x5103b4=chain(_0x4c2fce,'extLst')[_0x4e7834(0x215)](_0x489861=>children(_0x489861,_0x4e7834(0x1d5),SHEET))['filter'](_0x171ac3=>_0x171ac3['attrs'][_0x4e7834(0x1c7)]?.[_0x4e7834(0x239)]()===_0x4e7834(0x20f)),_0x23c87a=integer(one(_0x5103b4['flatMap'](_0x3983b6=>children(_0x3983b6,'rvb')),_0x4e7834(0x257))['attrs']['i'],_0x4e7834(0x200)),_0x268586=_0x58792f(_0x727d2e(_0x278ea5,'rdRichValue'));if(!matches(_0x268586,_0x4e7834(0x24d)))throw Error(_0x4e7834(0x21e));const _0x3a1df6=children(_0x268586,'rv')[_0x23c87a];if(!_0x3a1df6)throw Error(_0x4e7834(0x202));const _0x3c5b6e=_0x58792f(_0x727d2e(_0x278ea5,_0x4e7834(0x1b3)));if(!matches(_0x3c5b6e,_0x4e7834(0x253)))throw Error(_0x4e7834(0x1c4));const _0x1a47b0=children(_0x3c5b6e,'s')[integer(_0x3a1df6[_0x4e7834(0x1e7)]['s'],'rich\x20structure\x20index')];if(!_0x1a47b0||_0x1a47b0[_0x4e7834(0x1e7)]['t']!==_0x4e7834(0x256))throw Error(_0x4e7834(0x207));const _0x492a27=children(_0x1a47b0,'k'),_0x35ea03=_0x492a27[_0x4e7834(0x1df)]((_0x37824a,_0x10ed38)=>_0x37824a[_0x4e7834(0x1e7)]['n']===_0x4e7834(0x22d)?_0x10ed38:-0x1)['filter'](_0x36b7fd=>_0x36b7fd>=0x0);if(_0x35ea03[_0x4e7834(0x1c1)]!==0x1)throw Error(_0x4e7834(0x1ee));const _0x31beaf=children(_0x3a1df6,'v',RICH)[_0x35ea03[0x0]];if(!_0x31beaf)throw Error(_0x4e7834(0x25d));const _0x1a0182=_0x727d2e(_0x278ea5,_0x4e7834(0x228)),_0x33f93f=_0x58792f(_0x1a0182);if(!matches(_0x33f93f,_0x4e7834(0x1f7)))throw Error('Unsupported\x20rich\x20image\x20relation\x20namespace.');const _0x26ec01=children(_0x33f93f,'rel')[integer(_0x31beaf[_0x4e7834(0x1fb)],_0x4e7834(0x21d))];if(!_0x26ec01)throw Error(_0x4e7834(0x1e0));return _0x3815ef(_0x1a0182,_0x26ec01['attrs'][_0x4e7834(0x209)],'image');};let _0x3dbe08;const _0x1b30a9=_0x4e69bb=>{const _0x18bc64=_0x5aa7e9;if(!_0x3dbe08){_0x3dbe08=new Map();const _0x5cb9e3=_0x4bc181(_0x278ea5)['filter'](_0x4cdb78=>[...relationshipTypes(_0x18bc64(0x22b)),...relationshipTypes('cellImages')][_0x18bc64(0x1bc)](_0x4cdb78[_0x18bc64(0x249)]));if(!_0x5cb9e3[_0x18bc64(0x1c1)]&&_0x2c6f48[_0x18bc64(0x1bf)]('xl/cellimages.xml'))_0x5cb9e3[_0x18bc64(0x1da)]({'id':'','type':'','target':'/xl/cellimages.xml'});if(_0x5cb9e3[_0x18bc64(0x1c1)]!==0x1)throw Error(_0x18bc64(0x1c6));const _0x6c2f92=_0x3ac38b(_0x278ea5,_0x5cb9e3[0x0]),_0xfc1e1e=_0x58792f(_0x6c2f92);if(!matches(_0xfc1e1e,_0x18bc64(0x1e8)))throw Error(_0x18bc64(0x1f9));for(const _0x543f39 of children(_0xfc1e1e,'cellImage')){const _0x250a90=one(chain(_0x543f39,_0x18bc64(0x1b8),_0x18bc64(0x1c9),_0x18bc64(0x1bd)),_0x18bc64(0x1fd))['attrs'][_0x18bc64(0x252)];if(!_0x250a90||_0x3dbe08[_0x18bc64(0x1bf)](_0x250a90))throw Error('Invalid\x20or\x20duplicate\x20WPS\x20image\x20ID.');const _0x129859=one(chain(_0x543f39,_0x18bc64(0x1b8),_0x18bc64(0x201),'blip'),_0x18bc64(0x1cd));if(_0x129859[_0x18bc64(0x1e7)]['r:link'])throw Error(_0x18bc64(0x1be));_0x3dbe08[_0x18bc64(0x1e6)](_0x250a90,_0x3815ef(_0x6c2f92,_0x129859[_0x18bc64(0x1e7)]['r:embed'],'image'));}}const _0x2262d0=_0x3dbe08[_0x18bc64(0x1fc)](_0x4e69bb);if(!_0x2262d0)throw Error(_0x18bc64(0x25b)+_0x4e69bb+'.');return _0x2262d0;},_0x353455=new Set();for(const _0x304276 of _0x440322[_0x5aa7e9(0x215)](_0x2794e3=>children(_0x2794e3,'c'))){const _0x371ddd=/^([A-Z]+)([1-9]\d*)$/[_0x5aa7e9(0x20d)](_0x304276[_0x5aa7e9(0x1e7)]['r']??'');if(!_0x371ddd)continue;let _0xc49563=0x0;for(const _0x7af53e of _0x371ddd[0x1])_0xc49563=_0xc49563*0x1a+_0x7af53e[_0x5aa7e9(0x259)](0x0)-0x40;if(!_0x5a56a8[_0x5aa7e9(0x1bf)](_0xc49563))continue;const _0x18b0fb=integer(_0x371ddd[0x2],'image\x20cell\x20row');if(_0x353455[_0x5aa7e9(0x1bf)](_0x304276[_0x5aa7e9(0x1e7)]['r']))throw Error('Duplicate\x20mapped\x20image\x20cell.');_0x353455[_0x5aa7e9(0x1b0)](_0x304276['attrs']['r']);const _0x54b8b9=children(_0x304276,'f');if(!_0x304276['attrs']['vm']&&!_0x54b8b9[_0x5aa7e9(0x1c1)])continue;try{if(_0x18b0fb<0x1||_0xc49563>0x100)throw Error(_0x5aa7e9(0x1c0));let _0x4f4275;if(_0x304276[_0x5aa7e9(0x1e7)]['vm']){if(_0x54b8b9['length'])throw Error(_0x5aa7e9(0x255));if(_0x304276[_0x5aa7e9(0x1e7)]['t']!=='e'||children(_0x304276,'v')['length']!==0x1||children(_0x304276,'v')[0x0][_0x5aa7e9(0x1fb)]!==_0x5aa7e9(0x1ec))throw Error(_0x5aa7e9(0x1fe));_0x4f4275=_0x9962ed(_0x304276);}else{const _0xcb854f=one(_0x54b8b9,_0x5aa7e9(0x20a));if(_0xcb854f[_0x5aa7e9(0x1e7)]['t']==='shared'||_0xcb854f['attrs']['si'])throw Error(_0x5aa7e9(0x21a));const _0x1f3fa9=/^\s*=?\s*@?(?:_xlfn\.)?DISPIMG\(\s*"((?:[^"]|"")+)"\s*(?:,\s*[01]\s*)?\)\s*$/i['exec'](_0xcb854f[_0x5aa7e9(0x1fb)]);if(!_0x1f3fa9)throw Error('Unsupported\x20image\x20formula;\x20expected\x20a\x20standalone\x20DISPIMG\x20literal.');_0x4f4275=_0x1b30a9(_0x1f3fa9[0x1][_0x5aa7e9(0x1c5)](/""/g,'\x22'));}_0x340b84({'row':_0x18b0fb,'col':_0xc49563,'media':[_0x4f4275],'nativeCell':!![]});}catch(_0x37a21f){_0x340b84({'row':_0x18b0fb,'col':_0xc49563,'media':[],'nativeCell':!![],'error':_0x37a21f[_0x5aa7e9(0x229)]});}}return _0x1479e6;}
@@ -1 +1 @@
1
- (function(_0x55fa1e,_0x36ede4){const _0x33fc8b=a147_0x1679,_0x45d9c8=_0x55fa1e();while(!![]){try{const _0x57fb99=-parseInt(_0x33fc8b(0x21e))/0x1*(parseInt(_0x33fc8b(0x1f8))/0x2)+parseInt(_0x33fc8b(0x20e))/0x3*(parseInt(_0x33fc8b(0x20d))/0x4)+parseInt(_0x33fc8b(0x251))/0x5*(parseInt(_0x33fc8b(0x204))/0x6)+-parseInt(_0x33fc8b(0x225))/0x7+parseInt(_0x33fc8b(0x223))/0x8*(parseInt(_0x33fc8b(0x1fe))/0x9)+parseInt(_0x33fc8b(0x21c))/0xa*(parseInt(_0x33fc8b(0x24c))/0xb)+-parseInt(_0x33fc8b(0x23d))/0xc*(parseInt(_0x33fc8b(0x24d))/0xd);if(_0x57fb99===_0x36ede4)break;else _0x45d9c8['push'](_0x45d9c8['shift']());}catch(_0x284224){_0x45d9c8['push'](_0x45d9c8['shift']());}}}(a147_0x5194,0x4fcf3));import{randomUUID,createHash}from'node:crypto';import{lstat,readFile}from'node:fs/promises';import{acquireLock,assertImportContract,assertImportPaths,canonical,resolveImportOutputPath,runExcelImport,saveImportJson}from'./runner.js';import{runAutoIdExcelImport}from'./auto-id-runner.js';import{previewImportBatchCount}from'./preview.js';function a147_0x5194(){const _0x3944e4=['status','report','contentHash','succeeded','492056SDPhpJ','contract','1774500bpVKmK','The\x20server\x20does\x20not\x20support\x20this\x20image\x20import\x20capability.','digest','inputPaths','media','resume','readback','rows','version','imageImport','size','schemaFingerprint','key','Invalid\x20image\x20media\x20descriptor.','Completed\x20image\x20checkpoint\x20value\x20changed.','sheet','all','Previously\x20uploaded\x20image\x20is\x20missing;\x20automatic\x20repair\x20is\x20disabled.','Invalid\x20image\x20manifest\x20limits.','Invalid\x20image\x20readback\x20digest.','gif','fromEntries','pending','map','577452UOTdcQ','Image\x20checkpoint\x20does\x20not\x20match\x20the\x20source,\x20target\x20or\x20identity.','length','upload','image/jpeg','get','checkpoint','value','Image\x20media\x20bytes\x20changed.','imageApi','actorId','uploadFields','Invalid\x20import\x20batch\x20size.','importId','values','1211188xyJZfo','260XAMihz','completed','Unexpected\x20row\x20checkpoint\x20during\x20image\x20upload\x20phase.','Import\x20checkpoint\x20already\x20exists;\x20use\x20--resume.','5pfXKlW','00000000-0000-4000-8000-000000000000','update','binding','hash','Image\x20cell\x20references\x20missing\x20media.','rowNumber','.lock','parse','datasetCode','isArray','schemaVersion','isInteger','phase','manifest','strategy','2sZXrlt','Excel\x20contains\x20invalid\x20or\x20no\x20data\x20rows;\x20no\x20images\x20were\x20uploaded.','reduce','hex','bytes','name','18IIDwVk','stringify','hashes','Cannot\x20read\x20the\x20image\x20import\x20checkpoint.','maxFileBytes','includes','2841114MXAxue','rows-started','every','isSafeInteger','sha256','imageCells','image/png','test','image/gif','194076SnpJRN','39JnUdeS','ENOENT','some','types','.lock.recovery','rows-preparing','errors','entries','parserVersion','type','batchSize','schemaHash','appCode','code','30VZmPfO','Image\x20upload\x20outcome\x20is\x20unknown\x20or\x20missing.\x20Resume\x20to\x20reconcile\x20the\x20original\x20upload\x20identity.','14785nHBsiq'];a147_0x5194=function(){return _0x3944e4;};return a147_0x5194();}export function assertImageImportCapability(_0xf77cc8,_0x3368cb){const _0x10fc88=a147_0x1679;if(!_0x3368cb['media']?.[_0x10fc88(0x23f)])return;const _0x1c541e=_0xf77cc8[_0x10fc88(0x22e)];if(!_0x1c541e||_0x1c541e['version']!==0x1||_0x1c541e['uploadId']!==_0x10fc88(0x208)||_0x1c541e[_0x10fc88(0x202)]!==0xa00000||_0x1c541e['maxPixels']!==0x2625a00||!Array['isArray'](_0x1c541e[_0x10fc88(0x211)])||![_0x10fc88(0x20a),_0x10fc88(0x241),_0x10fc88(0x20c)][_0x10fc88(0x206)](_0x1dda40=>_0x1c541e[_0x10fc88(0x211)][_0x10fc88(0x203)](_0x1dda40)))throw Error(_0x10fc88(0x226));}export function imageObjectValue(_0x3ead9e,_0x156fb8,_0x4218d4){const _0x56c506=a147_0x1679,_0x24af3e=createHash('sha256')[_0x56c506(0x253)](JSON[_0x56c506(0x1ff)]([_0x3ead9e[_0x56c506(0x247)],_0x3ead9e[_0x56c506(0x21a)],_0x3ead9e['datasetCode'],_0x156fb8]))[_0x56c506(0x227)](_0x56c506(0x1fb)),_0x15f9ae={'image/png':'png','image/jpeg':'jpg','image/gif':_0x56c506(0x239)}[_0x4218d4[_0x56c506(0x217)]];if(!_0x15f9ae||!/^[0-9a-f]{64}$/[_0x56c506(0x20b)](_0x4218d4['contentHash'])||!Number[_0x56c506(0x207)](_0x4218d4['size'])||_0x4218d4[_0x56c506(0x22f)]<=0x0||_0x4218d4[_0x56c506(0x22f)]>0xa00000)throw Error(_0x56c506(0x232));const _0x5613b1=_0x4218d4['contentHash']+'.'+_0x15f9ae;return{'key':'dataset-import/'+_0x24af3e+'/'+_0x5613b1,'name':_0x5613b1,'type':_0x4218d4[_0x56c506(0x217)],'size':_0x4218d4['size']};}export function bindImageManifest(_0x594b42,_0x4dcc68,_0x552b8d){const _0x356373=a147_0x1679,_0x31c31e=new Map(_0x594b42['media']?.[_0x356373(0x23c)](_0x34540=>[_0x34540['contentHash'],_0x34540])),_0x28fdae=new Map(_0x594b42[_0x356373(0x209)]?.[_0x356373(0x23c)](_0x3d3a59=>[_0x3d3a59[_0x356373(0x257)]+':'+_0x3d3a59['field'],_0x3d3a59[_0x356373(0x200)]]));return{..._0x594b42,'rows':_0x594b42[_0x356373(0x22c)][_0x356373(0x23c)](_0x1967d3=>({..._0x1967d3,'values':Object[_0x356373(0x23a)](Object[_0x356373(0x215)](_0x1967d3[_0x356373(0x24b)])[_0x356373(0x23c)](([_0x157464,_0x1ad355])=>{const _0x137fff=_0x356373,_0x45ddbf=_0x28fdae[_0x137fff(0x242)](_0x1967d3[_0x137fff(0x257)]+':'+_0x157464);return[_0x157464,_0x45ddbf?_0x45ddbf['map'](_0x3ad57c=>{const _0x193b94=_0x137fff,_0x3dc8cf=_0x31c31e[_0x193b94(0x242)](_0x3ad57c);if(!_0x3dc8cf)throw Error(_0x193b94(0x256));const _0x17809b=imageObjectValue(_0x4dcc68,_0x552b8d,_0x3dc8cf);return _0x594b42[_0x193b94(0x248)]?.[_0x193b94(0x203)](_0x157464)?{'fileName':_0x17809b[_0x193b94(0x1fd)],'filePath':_0x17809b['key']}:_0x17809b;}):_0x1ad355];}))}))};}function a147_0x1679(_0x1ba62f,_0x1f57d2){_0x1ba62f=_0x1ba62f-0x1f3;const _0x519492=a147_0x5194();let _0x16796b=_0x519492[_0x1ba62f];return _0x16796b;}async function exists(_0x3dd282){const _0x394cef=a147_0x1679;try{return await lstat(_0x3dd282),!![];}catch(_0x417733){if(_0x417733[_0x394cef(0x21b)]===_0x394cef(0x20f))return![];throw _0x417733;}}export async function runImageExcelImport(_0x558d0d){const _0x494b41=a147_0x1679;assertImportContract(_0x558d0d[_0x494b41(0x224)],_0x558d0d['appCode'],_0x558d0d[_0x494b41(0x25a)]),assertImageImportCapability(_0x558d0d[_0x494b41(0x224)],_0x558d0d[_0x494b41(0x1f6)]);if(!Number[_0x494b41(0x1f4)](_0x558d0d[_0x494b41(0x218)])||_0x558d0d[_0x494b41(0x218)]<0x1||_0x558d0d['batchSize']>_0x558d0d[_0x494b41(0x224)]['maxBatchSize'])throw Error(_0x494b41(0x249));if(_0x558d0d[_0x494b41(0x1f6)][_0x494b41(0x214)]['length']||!_0x558d0d[_0x494b41(0x1f6)][_0x494b41(0x22c)][_0x494b41(0x23f)])throw Error(_0x494b41(0x1f9));const _0x38e991=await resolveImportOutputPath(_0x558d0d[_0x494b41(0x243)]),_0x4c2a0f=await resolveImportOutputPath(_0x558d0d[_0x494b41(0x220)]),_0x308fe7=await resolveImportOutputPath(_0x38e991+'.rows.json'),_0x4f65a6=await Promise[_0x494b41(0x235)]([_0x308fe7,_0x308fe7+_0x494b41(0x258),_0x308fe7+_0x494b41(0x212),..._0x558d0d[_0x494b41(0x228)]??[]][_0x494b41(0x23c)](resolveImportOutputPath));for(const _0x2ed272 of[_0x38e991,_0x4c2a0f,_0x38e991+_0x494b41(0x258),_0x38e991+_0x494b41(0x212)])await resolveImportOutputPath(_0x2ed272);assertImportPaths(_0x38e991,_0x4c2a0f,_0x4f65a6);const {contract:_0x8ba470,manifest:_0x4d3b35}=_0x558d0d,_0x420a80=_0x4d3b35[_0x494b41(0x229)]??[];if(new Set(_0x420a80['map'](_0x2fd5e1=>_0x2fd5e1['contentHash']))['size']!==_0x420a80[_0x494b41(0x23f)]||_0x420a80[_0x494b41(0x1fa)]((_0x4b3086,_0x44a391)=>_0x4b3086+_0x44a391['size'],0x0)>0x32*0x400*0x400||(_0x4d3b35[_0x494b41(0x209)]??[])[_0x494b41(0x1fa)]((_0xc7092f,_0x7feb57)=>_0xc7092f+_0x7feb57['hashes'][_0x494b41(0x23f)],0x0)>0x2710)throw Error(_0x494b41(0x237));for(const _0x398876 of _0x420a80)if(_0x398876[_0x494b41(0x22f)]!==_0x398876[_0x494b41(0x1fc)][_0x494b41(0x23f)]||createHash(_0x494b41(0x208))[_0x494b41(0x253)](_0x398876[_0x494b41(0x1fc)])['digest'](_0x494b41(0x1fb))!==_0x398876[_0x494b41(0x221)])throw Error(_0x494b41(0x245));previewImportBatchCount(bindImageManifest(_0x4d3b35,_0x8ba470,_0x494b41(0x252)),_0x8ba470,_0x558d0d[_0x494b41(0x218)]);const _0x5b1e05={'appCode':_0x558d0d[_0x494b41(0x21a)],'datasetCode':_0x558d0d[_0x494b41(0x25a)],'runtimeDomain':_0x558d0d['runtimeDomain'],'actorId':_0x8ba470[_0x494b41(0x247)],'fileHash':_0x4d3b35['fileHash'],'mappingHash':_0x4d3b35['mappingHash'],'schemaHash':_0x4d3b35[_0x494b41(0x219)],'remoteSchemaHash':_0x8ba470[_0x494b41(0x230)],'strategy':_0x8ba470[_0x494b41(0x1f7)],'schemaVersion':_0x8ba470[_0x494b41(0x1f3)],'batchSize':_0x558d0d[_0x494b41(0x218)],'maxBatchBytes':_0x8ba470['maxBatchBytes'],'sheet':_0x4d3b35[_0x494b41(0x234)],'parserVersion':_0x4d3b35[_0x494b41(0x216)],'imageFields':_0x4d3b35['imageFields'],'cells':_0x4d3b35['imageCells'],..._0x4d3b35['uploadFields']?.[_0x494b41(0x23f)]?{'uploadFields':_0x4d3b35['uploadFields']}:{},'media':_0x420a80[_0x494b41(0x23c)](({contentHash:_0x4b839f,type:_0xdebe7e,size:_0x2f6668})=>({'contentHash':_0x4b839f,'type':_0xdebe7e,'size':_0x2f6668})),'rows':_0x4d3b35[_0x494b41(0x22c)]},_0x33b295=await acquireLock(_0x38e991);try{let _0x1a6936;if(_0x558d0d[_0x494b41(0x22a)]){try{_0x1a6936=JSON[_0x494b41(0x259)](await readFile(_0x38e991,'utf8'));}catch{throw Error(_0x494b41(0x201));}if(_0x1a6936[_0x494b41(0x22d)]!==0x3||!/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/[_0x494b41(0x20b)](_0x1a6936['importId'])||canonical(_0x1a6936[_0x494b41(0x254)])!==canonical(_0x5b1e05)||!['media',_0x494b41(0x213),_0x494b41(0x205),_0x494b41(0x24e)][_0x494b41(0x203)](_0x1a6936[_0x494b41(0x1f5)])||!Array[_0x494b41(0x25b)](_0x1a6936[_0x494b41(0x229)])||_0x1a6936[_0x494b41(0x229)]['length']!==_0x420a80[_0x494b41(0x23f)]||_0x1a6936[_0x494b41(0x229)][_0x494b41(0x210)]((_0x43d816,_0x3bbb21)=>_0x43d816[_0x494b41(0x255)]!==_0x420a80[_0x3bbb21][_0x494b41(0x221)]||![_0x494b41(0x23b),_0x494b41(0x222)][_0x494b41(0x203)](_0x43d816[_0x494b41(0x21f)])))throw Error(_0x494b41(0x23e));if([_0x494b41(0x205),_0x494b41(0x24e)][_0x494b41(0x203)](_0x1a6936[_0x494b41(0x1f5)])&&!await exists(_0x308fe7))throw Error('Row\x20phase\x20started\x20but\x20the\x20row\x20checkpoint\x20is\x20missing;\x20stop\x20to\x20avoid\x20duplicate\x20records.');if(_0x1a6936[_0x494b41(0x1f5)]===_0x494b41(0x229)&&await exists(_0x308fe7))throw Error(_0x494b41(0x24f));}else{if(await exists(_0x38e991)||await exists(_0x308fe7))throw Error(_0x494b41(0x250));_0x1a6936={'version':0x3,'importId':randomUUID(),'binding':_0x5b1e05,'phase':'media','media':_0x420a80[_0x494b41(0x23c)](_0x2842c1=>({'hash':_0x2842c1['contentHash'],'status':_0x494b41(0x23b)}))},await saveImportJson(_0x38e991,_0x1a6936);}const _0x446b1b=(_0x5d21d8,_0x12dfb4)=>{const _0x52a610=_0x494b41;if(!_0x5d21d8||_0x5d21d8[_0x52a610(0x221)]!==_0x12dfb4[_0x52a610(0x221)])throw Error(_0x52a610(0x238));if(_0x5d21d8[_0x52a610(0x21f)]==='missing')return undefined;const _0x4e9a4f=imageObjectValue(_0x8ba470,_0x1a6936[_0x52a610(0x24a)],_0x12dfb4);if(_0x5d21d8[_0x52a610(0x21f)]!==_0x52a610(0x222)||_0x5d21d8['filePath']!==_0x4e9a4f[_0x52a610(0x231)]||_0x5d21d8['fileName']!==_0x4e9a4f[_0x52a610(0x1fd)]||_0x5d21d8[_0x52a610(0x217)]!==_0x4e9a4f[_0x52a610(0x217)]||_0x5d21d8[_0x52a610(0x22f)]!==_0x4e9a4f[_0x52a610(0x22f)])throw Error('Uploaded\x20image\x20metadata\x20changed\x20or\x20is\x20corrupt.');return _0x4e9a4f;};for(let _0x26400a=0x0;_0x26400a<_0x420a80[_0x494b41(0x23f)];_0x26400a++){const _0x85c6c0=_0x420a80[_0x26400a],_0x5cd17e=_0x1a6936['media'][_0x26400a],_0xb55dd3=imageObjectValue(_0x8ba470,_0x1a6936[_0x494b41(0x24a)],_0x85c6c0);if(_0x5cd17e[_0x494b41(0x21f)]===_0x494b41(0x222)&&canonical(_0x5cd17e[_0x494b41(0x244)])!==canonical(_0xb55dd3))throw Error(_0x494b41(0x233));let _0x34393f;if(_0x558d0d[_0x494b41(0x22a)]||_0x5cd17e[_0x494b41(0x21f)]===_0x494b41(0x222))_0x34393f=_0x446b1b(await _0x558d0d[_0x494b41(0x246)][_0x494b41(0x22b)](_0x1a6936[_0x494b41(0x24a)],_0x85c6c0),_0x85c6c0);if(!_0x34393f&&_0x5cd17e[_0x494b41(0x21f)]==='succeeded')throw Error(_0x494b41(0x236));if(!_0x34393f){try{_0x446b1b(await _0x558d0d[_0x494b41(0x246)][_0x494b41(0x240)](_0x1a6936['importId'],_0x85c6c0),_0x85c6c0);}catch(_0x4169ea){_0x34393f=_0x446b1b(await _0x558d0d[_0x494b41(0x246)][_0x494b41(0x22b)](_0x1a6936[_0x494b41(0x24a)],_0x85c6c0),_0x85c6c0);if(!_0x34393f)throw Error(_0x494b41(0x21d));}if(!_0x34393f)_0x34393f=_0x446b1b(await _0x558d0d[_0x494b41(0x246)][_0x494b41(0x22b)](_0x1a6936[_0x494b41(0x24a)],_0x85c6c0),_0x85c6c0);if(!_0x34393f)throw Error('Uploaded\x20image\x20is\x20not\x20visible.\x20Resume\x20to\x20reconcile\x20before\x20continuing.');}_0x5cd17e['status']=_0x494b41(0x222),_0x5cd17e[_0x494b41(0x244)]=_0x34393f,await saveImportJson(_0x38e991,_0x1a6936);}const _0x4f2f35=bindImageManifest(_0x4d3b35,_0x8ba470,_0x1a6936['importId']),_0x5be21=_0x1a6936[_0x494b41(0x1f5)]===_0x494b41(0x213)?await exists(_0x308fe7):_0x1a6936[_0x494b41(0x1f5)]!==_0x494b41(0x229);_0x1a6936[_0x494b41(0x1f5)]===_0x494b41(0x229)&&(_0x1a6936['phase']=_0x494b41(0x213),await saveImportJson(_0x38e991,_0x1a6936));const _0xb677e={..._0x558d0d,'manifest':_0x4f2f35,'checkpoint':_0x308fe7,'report':_0x4c2a0f,'resume':_0x5be21,'onCheckpointReady':async()=>{const _0x1abf8c=_0x494b41;_0x1a6936[_0x1abf8c(0x1f5)]=_0x1abf8c(0x205),await saveImportJson(_0x38e991,_0x1a6936);}},_0x58edd6=_0x8ba470[_0x494b41(0x1f3)]===0x2?await runAutoIdExcelImport({..._0xb677e,'reconcileImageConflicts':_0x558d0d[_0x494b41(0x22a)]===!![]&&_0x5be21}):await runExcelImport(_0xb677e);return _0x1a6936['phase']=_0x494b41(0x24e),await saveImportJson(_0x38e991,_0x1a6936),{..._0x58edd6,'checkpoint':_0x38e991,'imageCount':_0x4d3b35[_0x494b41(0x209)]?.[_0x494b41(0x1fa)]((_0x4d5a39,_0x174798)=>_0x4d5a39+_0x174798[_0x494b41(0x200)][_0x494b41(0x23f)],0x0)??0x0,'uniqueImages':_0x420a80[_0x494b41(0x23f)]};}finally{await _0x33b295();}}
1
+ (function(_0x14f62e,_0x130df7){const _0x3f4aca=a147_0x52f7,_0x2f8015=_0x14f62e();while(!![]){try{const _0x19b61c=-parseInt(_0x3f4aca(0xc1))/0x1*(parseInt(_0x3f4aca(0xad))/0x2)+-parseInt(_0x3f4aca(0xa5))/0x3*(-parseInt(_0x3f4aca(0xfa))/0x4)+parseInt(_0x3f4aca(0xbe))/0x5+-parseInt(_0x3f4aca(0xd7))/0x6+-parseInt(_0x3f4aca(0xec))/0x7*(-parseInt(_0x3f4aca(0xe0))/0x8)+-parseInt(_0x3f4aca(0xa0))/0x9+-parseInt(_0x3f4aca(0x98))/0xa;if(_0x19b61c===_0x130df7)break;else _0x2f8015['push'](_0x2f8015['shift']());}catch(_0x35229c){_0x2f8015['push'](_0x2f8015['shift']());}}}(a147_0x4422,0x83ece));import{randomUUID,createHash}from'node:crypto';import{lstat,readFile}from'node:fs/promises';function a147_0x4422(){const _0x5e4abe=['runtimeDomain','rows-started','1913320FcQxHZ','fileHash','rowNumber','digest','.rows.json','The\x20server\x20does\x20not\x20support\x20this\x20image\x20import\x20capability.','00000000-0000-4000-8000-000000000000','resume','4927005AxUjHX','name','phase','code','Uploaded\x20image\x20metadata\x20changed\x20or\x20is\x20corrupt.','2586fTPUBv','Invalid\x20import\x20batch\x20size.','fromEntries','Image\x20upload\x20outcome\x20is\x20unknown\x20or\x20missing.\x20Resume\x20to\x20reconcile\x20the\x20original\x20upload\x20identity.','datasetCode','image/png','status','inputPaths','16948hOGjQa','Invalid\x20image\x20media\x20descriptor.','version','test','errors','rows-preparing','pending','isInteger','mappingHash','Cannot\x20read\x20the\x20image\x20import\x20checkpoint.','parserVersion','all','Row\x20phase\x20started\x20but\x20the\x20row\x20checkpoint\x20is\x20missing;\x20stop\x20to\x20avoid\x20duplicate\x20records.','schemaHash','Image\x20media\x20bytes\x20changed.','Invalid\x20image\x20manifest\x20limits.','parse','3715465mhcimY','entries','hex','92wRHyIW','contentHash','schemaVersion','Import\x20checkpoint\x20already\x20exists;\x20use\x20--resume.','type','reduce','succeeded','media','upload','isArray','imageApi','binding','completed','fileName','length','actorId','missing','image/jpeg','sha256','field','size','value','1483506XUxxMt','key','Image\x20cell\x20references\x20missing\x20media.','includes','schemaFingerprint','strategy','hashes','map','utf8','56RTvftm','every','readback','png','dataset-import/','uploadId','uploadFields','Image\x20checkpoint\x20does\x20not\x20match\x20the\x20source,\x20target\x20or\x20identity.','contract','bytes','some','imageCells','894859GCVryZ','jpg','isSafeInteger','ENOENT','hash','imageImport','.lock','filePath','get','stringify','batchSize','Excel\x20contains\x20invalid\x20or\x20no\x20data\x20rows;\x20no\x20images\x20were\x20uploaded.','.lock.recovery','rows','3100DQIWGC','manifest','appCode','gif','importId','image/gif'];a147_0x4422=function(){return _0x5e4abe;};return a147_0x4422();}import{acquireLock,assertImportContract,assertImportPaths,canonical,resolveImportOutputPath,runExcelImport,saveImportJson}from'./runner.js';import{runAutoIdExcelImport}from'./auto-id-runner.js';import{previewImportBatchCount}from'./preview.js';export function assertImageImportCapability(_0x205626,_0x486c97){const _0x2a7a1c=a147_0x52f7;if(!_0x486c97[_0x2a7a1c(0xc8)]?.[_0x2a7a1c(0xcf)])return;const _0x54ac45=_0x205626[_0x2a7a1c(0xf1)];if(!_0x54ac45||_0x54ac45[_0x2a7a1c(0xaf)]!==0x1||_0x54ac45[_0x2a7a1c(0xe5)]!==_0x2a7a1c(0xd3)||_0x54ac45['maxFileBytes']!==0xa00000||_0x54ac45['maxPixels']!==0x2625a00||!Array[_0x2a7a1c(0xca)](_0x54ac45['types'])||![_0x2a7a1c(0xaa),_0x2a7a1c(0xd2),_0x2a7a1c(0x95)][_0x2a7a1c(0xe1)](_0x3bfb5c=>_0x54ac45['types'][_0x2a7a1c(0xda)](_0x3bfb5c)))throw Error(_0x2a7a1c(0x9d));}function a147_0x52f7(_0x213c56,_0x352a53){_0x213c56=_0x213c56-0x91;const _0x442212=a147_0x4422();let _0x52f776=_0x442212[_0x213c56];return _0x52f776;}export function imageObjectValue(_0x1086d6,_0x19e8de,_0x2d3133){const _0x355d16=a147_0x52f7,_0x28e561=createHash('sha256')['update'](JSON[_0x355d16(0xf5)]([_0x1086d6['actorId'],_0x1086d6['appCode'],_0x1086d6[_0x355d16(0xa9)],_0x19e8de]))[_0x355d16(0x9b)](_0x355d16(0xc0)),_0x41c8ee={'image/png':_0x355d16(0xe3),'image/jpeg':_0x355d16(0xed),'image/gif':_0x355d16(0x93)}[_0x2d3133[_0x355d16(0xc5)]];if(!_0x41c8ee||!/^[0-9a-f]{64}$/[_0x355d16(0xb0)](_0x2d3133[_0x355d16(0xc2)])||!Number[_0x355d16(0xee)](_0x2d3133[_0x355d16(0xd5)])||_0x2d3133[_0x355d16(0xd5)]<=0x0||_0x2d3133[_0x355d16(0xd5)]>0xa00000)throw Error(_0x355d16(0xae));const _0x3392ef=_0x2d3133['contentHash']+'.'+_0x41c8ee;return{'key':_0x355d16(0xe4)+_0x28e561+'/'+_0x3392ef,'name':_0x3392ef,'type':_0x2d3133[_0x355d16(0xc5)],'size':_0x2d3133[_0x355d16(0xd5)]};}export function bindImageManifest(_0x496113,_0x22c0cf,_0x455dea){const _0x2fa5c3=a147_0x52f7,_0x1132c2=new Map(_0x496113[_0x2fa5c3(0xc8)]?.[_0x2fa5c3(0xde)](_0x4a6ae9=>[_0x4a6ae9['contentHash'],_0x4a6ae9])),_0x32d1a0=new Map(_0x496113[_0x2fa5c3(0xeb)]?.['map'](_0x2d2fb3=>[_0x2d2fb3[_0x2fa5c3(0x9a)]+':'+_0x2d2fb3[_0x2fa5c3(0xd4)],_0x2d2fb3[_0x2fa5c3(0xdd)]]));return{..._0x496113,'rows':_0x496113[_0x2fa5c3(0xf9)]['map'](_0x584ea4=>({..._0x584ea4,'values':Object[_0x2fa5c3(0xa7)](Object[_0x2fa5c3(0xbf)](_0x584ea4['values'])['map'](([_0x2cb39f,_0x593c28])=>{const _0x393a9d=_0x2fa5c3,_0x571428=_0x32d1a0['get'](_0x584ea4[_0x393a9d(0x9a)]+':'+_0x2cb39f);return[_0x2cb39f,_0x571428?_0x571428['map'](_0x31f2b9=>{const _0x94e503=_0x393a9d,_0x4d3ed6=_0x1132c2[_0x94e503(0xf4)](_0x31f2b9);if(!_0x4d3ed6)throw Error(_0x94e503(0xd9));const _0x20a3e5=imageObjectValue(_0x22c0cf,_0x455dea,_0x4d3ed6);return _0x496113[_0x94e503(0xe6)]?.[_0x94e503(0xda)](_0x2cb39f)?{'fileName':_0x20a3e5[_0x94e503(0xa1)],'filePath':_0x20a3e5[_0x94e503(0xd8)]}:_0x20a3e5;}):_0x593c28];}))}))};}async function exists(_0x2f250d){const _0x528000=a147_0x52f7;try{return await lstat(_0x2f250d),!![];}catch(_0x4b274b){if(_0x4b274b[_0x528000(0xa3)]===_0x528000(0xef))return![];throw _0x4b274b;}}export async function runImageExcelImport(_0x1063b7){const _0x19ef73=a147_0x52f7;assertImportContract(_0x1063b7['contract'],_0x1063b7[_0x19ef73(0x92)],_0x1063b7[_0x19ef73(0xa9)]),assertImageImportCapability(_0x1063b7[_0x19ef73(0xe8)],_0x1063b7[_0x19ef73(0x91)]);if(!Number[_0x19ef73(0xb4)](_0x1063b7['batchSize'])||_0x1063b7[_0x19ef73(0xf6)]<0x1||_0x1063b7[_0x19ef73(0xf6)]>_0x1063b7[_0x19ef73(0xe8)]['maxBatchSize'])throw Error(_0x19ef73(0xa6));if(_0x1063b7['manifest'][_0x19ef73(0xb1)][_0x19ef73(0xcf)]||!_0x1063b7[_0x19ef73(0x91)][_0x19ef73(0xf9)][_0x19ef73(0xcf)])throw Error(_0x19ef73(0xf7));const _0x1b5ee6=await resolveImportOutputPath(_0x1063b7['checkpoint']),_0x275e95=await resolveImportOutputPath(_0x1063b7['report']),_0x5b1cb6=await resolveImportOutputPath(_0x1b5ee6+_0x19ef73(0x9c)),_0x6c1935=await Promise[_0x19ef73(0xb8)]([_0x5b1cb6,_0x5b1cb6+_0x19ef73(0xf2),_0x5b1cb6+'.lock.recovery',..._0x1063b7[_0x19ef73(0xac)]??[]][_0x19ef73(0xde)](resolveImportOutputPath));for(const _0x1e6d27 of[_0x1b5ee6,_0x275e95,_0x1b5ee6+'.lock',_0x1b5ee6+_0x19ef73(0xf8)])await resolveImportOutputPath(_0x1e6d27);assertImportPaths(_0x1b5ee6,_0x275e95,_0x6c1935);const {contract:_0x4bbde1,manifest:_0x89a694}=_0x1063b7,_0x544297=_0x89a694[_0x19ef73(0xc8)]??[];if(new Set(_0x544297[_0x19ef73(0xde)](_0x3aef6f=>_0x3aef6f[_0x19ef73(0xc2)]))[_0x19ef73(0xd5)]!==_0x544297[_0x19ef73(0xcf)]||_0x544297[_0x19ef73(0xc6)]((_0x3ead32,_0x4f240c)=>_0x3ead32+_0x4f240c[_0x19ef73(0xd5)],0x0)>0x32*0x400*0x400||(_0x89a694['imageCells']??[])[_0x19ef73(0xc6)]((_0x5a9636,_0x389e04)=>_0x5a9636+_0x389e04['hashes']['length'],0x0)>0x2710)throw Error(_0x19ef73(0xbc));for(const _0x2f5d8f of _0x544297)if(_0x2f5d8f[_0x19ef73(0xd5)]!==_0x2f5d8f['bytes'][_0x19ef73(0xcf)]||createHash(_0x19ef73(0xd3))['update'](_0x2f5d8f[_0x19ef73(0xe9)])[_0x19ef73(0x9b)]('hex')!==_0x2f5d8f[_0x19ef73(0xc2)])throw Error(_0x19ef73(0xbb));previewImportBatchCount(bindImageManifest(_0x89a694,_0x4bbde1,_0x19ef73(0x9e)),_0x4bbde1,_0x1063b7[_0x19ef73(0xf6)]);const _0x39d11b={'appCode':_0x1063b7[_0x19ef73(0x92)],'datasetCode':_0x1063b7[_0x19ef73(0xa9)],'runtimeDomain':_0x1063b7[_0x19ef73(0x96)],'actorId':_0x4bbde1[_0x19ef73(0xd0)],'fileHash':_0x89a694[_0x19ef73(0x99)],'mappingHash':_0x89a694[_0x19ef73(0xb5)],'schemaHash':_0x89a694[_0x19ef73(0xba)],'remoteSchemaHash':_0x4bbde1[_0x19ef73(0xdb)],'strategy':_0x4bbde1[_0x19ef73(0xdc)],'schemaVersion':_0x4bbde1['schemaVersion'],'batchSize':_0x1063b7[_0x19ef73(0xf6)],'maxBatchBytes':_0x4bbde1['maxBatchBytes'],'sheet':_0x89a694['sheet'],'parserVersion':_0x89a694[_0x19ef73(0xb7)],'imageFields':_0x89a694['imageFields'],'cells':_0x89a694['imageCells'],..._0x89a694['uploadFields']?.[_0x19ef73(0xcf)]?{'uploadFields':_0x89a694[_0x19ef73(0xe6)]}:{},'media':_0x544297[_0x19ef73(0xde)](({contentHash:_0x60d5d6,type:_0xd27106,size:_0x318046})=>({'contentHash':_0x60d5d6,'type':_0xd27106,'size':_0x318046})),'rows':_0x89a694[_0x19ef73(0xf9)]},_0x497306=await acquireLock(_0x1b5ee6);try{let _0x1d5cec;if(_0x1063b7[_0x19ef73(0x9f)]){try{_0x1d5cec=JSON[_0x19ef73(0xbd)](await readFile(_0x1b5ee6,_0x19ef73(0xdf)));}catch{throw Error(_0x19ef73(0xb6));}if(_0x1d5cec[_0x19ef73(0xaf)]!==0x3||!/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/[_0x19ef73(0xb0)](_0x1d5cec[_0x19ef73(0x94)])||canonical(_0x1d5cec[_0x19ef73(0xcc)])!==canonical(_0x39d11b)||![_0x19ef73(0xc8),_0x19ef73(0xb2),_0x19ef73(0x97),_0x19ef73(0xcd)]['includes'](_0x1d5cec['phase'])||!Array[_0x19ef73(0xca)](_0x1d5cec[_0x19ef73(0xc8)])||_0x1d5cec[_0x19ef73(0xc8)]['length']!==_0x544297['length']||_0x1d5cec[_0x19ef73(0xc8)][_0x19ef73(0xea)]((_0x280fe7,_0x497c5e)=>_0x280fe7[_0x19ef73(0xf0)]!==_0x544297[_0x497c5e][_0x19ef73(0xc2)]||![_0x19ef73(0xb3),_0x19ef73(0xc7)][_0x19ef73(0xda)](_0x280fe7['status'])))throw Error(_0x19ef73(0xe7));if([_0x19ef73(0x97),_0x19ef73(0xcd)][_0x19ef73(0xda)](_0x1d5cec['phase'])&&!await exists(_0x5b1cb6))throw Error(_0x19ef73(0xb9));if(_0x1d5cec['phase']===_0x19ef73(0xc8)&&await exists(_0x5b1cb6))throw Error('Unexpected\x20row\x20checkpoint\x20during\x20image\x20upload\x20phase.');}else{if(await exists(_0x1b5ee6)||await exists(_0x5b1cb6))throw Error(_0x19ef73(0xc4));_0x1d5cec={'version':0x3,'importId':randomUUID(),'binding':_0x39d11b,'phase':'media','media':_0x544297[_0x19ef73(0xde)](_0x37293c=>({'hash':_0x37293c[_0x19ef73(0xc2)],'status':_0x19ef73(0xb3)}))},await saveImportJson(_0x1b5ee6,_0x1d5cec);}const _0x591d03=(_0x42acf9,_0xb46983)=>{const _0x436755=_0x19ef73;if(!_0x42acf9||_0x42acf9[_0x436755(0xc2)]!==_0xb46983['contentHash'])throw Error('Invalid\x20image\x20readback\x20digest.');if(_0x42acf9[_0x436755(0xab)]===_0x436755(0xd1))return undefined;const _0x3ca751=imageObjectValue(_0x4bbde1,_0x1d5cec[_0x436755(0x94)],_0xb46983);if(_0x42acf9[_0x436755(0xab)]!==_0x436755(0xc7)||_0x42acf9[_0x436755(0xf3)]!==_0x3ca751[_0x436755(0xd8)]||_0x42acf9[_0x436755(0xce)]!==_0x3ca751['name']||_0x42acf9[_0x436755(0xc5)]!==_0x3ca751['type']||_0x42acf9[_0x436755(0xd5)]!==_0x3ca751['size'])throw Error(_0x436755(0xa4));return _0x3ca751;};for(let _0x3b5884=0x0;_0x3b5884<_0x544297[_0x19ef73(0xcf)];_0x3b5884++){const _0xf3016a=_0x544297[_0x3b5884],_0x1e6661=_0x1d5cec[_0x19ef73(0xc8)][_0x3b5884],_0x351206=imageObjectValue(_0x4bbde1,_0x1d5cec[_0x19ef73(0x94)],_0xf3016a);if(_0x1e6661['status']===_0x19ef73(0xc7)&&canonical(_0x1e6661[_0x19ef73(0xd6)])!==canonical(_0x351206))throw Error('Completed\x20image\x20checkpoint\x20value\x20changed.');let _0x2e8eca;if(_0x1063b7['resume']||_0x1e6661[_0x19ef73(0xab)]==='succeeded')_0x2e8eca=_0x591d03(await _0x1063b7[_0x19ef73(0xcb)][_0x19ef73(0xe2)](_0x1d5cec[_0x19ef73(0x94)],_0xf3016a),_0xf3016a);if(!_0x2e8eca&&_0x1e6661[_0x19ef73(0xab)]==='succeeded')throw Error('Previously\x20uploaded\x20image\x20is\x20missing;\x20automatic\x20repair\x20is\x20disabled.');if(!_0x2e8eca){try{_0x591d03(await _0x1063b7[_0x19ef73(0xcb)][_0x19ef73(0xc9)](_0x1d5cec['importId'],_0xf3016a),_0xf3016a);}catch(_0x339c5c){_0x2e8eca=_0x591d03(await _0x1063b7[_0x19ef73(0xcb)]['readback'](_0x1d5cec['importId'],_0xf3016a),_0xf3016a);if(!_0x2e8eca)throw Error(_0x19ef73(0xa8));}if(!_0x2e8eca)_0x2e8eca=_0x591d03(await _0x1063b7[_0x19ef73(0xcb)][_0x19ef73(0xe2)](_0x1d5cec[_0x19ef73(0x94)],_0xf3016a),_0xf3016a);if(!_0x2e8eca)throw Error('Uploaded\x20image\x20is\x20not\x20visible.\x20Resume\x20to\x20reconcile\x20before\x20continuing.');}_0x1e6661['status']=_0x19ef73(0xc7),_0x1e6661['value']=_0x2e8eca,await saveImportJson(_0x1b5ee6,_0x1d5cec);}const _0x5d377e=bindImageManifest(_0x89a694,_0x4bbde1,_0x1d5cec[_0x19ef73(0x94)]),_0x992378=_0x1d5cec[_0x19ef73(0xa2)]==='rows-preparing'?await exists(_0x5b1cb6):_0x1d5cec['phase']!==_0x19ef73(0xc8);_0x1d5cec[_0x19ef73(0xa2)]==='media'&&(_0x1d5cec[_0x19ef73(0xa2)]=_0x19ef73(0xb2),await saveImportJson(_0x1b5ee6,_0x1d5cec));const _0x74fd39={..._0x1063b7,'manifest':_0x5d377e,'checkpoint':_0x5b1cb6,'report':_0x275e95,'resume':_0x992378,'onCheckpointReady':async()=>{const _0x4641b3=_0x19ef73;_0x1d5cec[_0x4641b3(0xa2)]=_0x4641b3(0x97),await saveImportJson(_0x1b5ee6,_0x1d5cec);}},_0x9f2243=_0x4bbde1[_0x19ef73(0xc3)]===0x2?await runAutoIdExcelImport({..._0x74fd39,'reconcileImageConflicts':_0x1063b7['resume']===!![]&&_0x992378}):await runExcelImport(_0x74fd39);return _0x1d5cec[_0x19ef73(0xa2)]='completed',await saveImportJson(_0x1b5ee6,_0x1d5cec),{..._0x9f2243,'checkpoint':_0x1b5ee6,'imageCount':_0x89a694['imageCells']?.[_0x19ef73(0xc6)]((_0x3ff7bc,_0x39010b)=>_0x3ff7bc+_0x39010b['hashes']['length'],0x0)??0x0,'uniqueImages':_0x544297[_0x19ef73(0xcf)]};}finally{await _0x497306();}}
@@ -1 +1 @@
1
- function a148_0xc17b(_0x2db5eb,_0x48be8b){_0x2db5eb=_0x2db5eb-0x170;const _0x571a6f=a148_0x571a();let _0xc17b87=_0x571a6f[_0x2db5eb];return _0xc17b87;}(function(_0x400251,_0x1443b7){const _0x5e4f6d=a148_0xc17b,_0x1eda82=_0x400251();while(!![]){try{const _0x176422=parseInt(_0x5e4f6d(0x171))/0x1+-parseInt(_0x5e4f6d(0x188))/0x2*(parseInt(_0x5e4f6d(0x17a))/0x3)+-parseInt(_0x5e4f6d(0x172))/0x4*(-parseInt(_0x5e4f6d(0x174))/0x5)+parseInt(_0x5e4f6d(0x182))/0x6*(-parseInt(_0x5e4f6d(0x173))/0x7)+parseInt(_0x5e4f6d(0x17d))/0x8+parseInt(_0x5e4f6d(0x179))/0x9*(parseInt(_0x5e4f6d(0x170))/0xa)+parseInt(_0x5e4f6d(0x181))/0xb*(-parseInt(_0x5e4f6d(0x178))/0xc);if(_0x176422===_0x1443b7)break;else _0x1eda82['push'](_0x1eda82['shift']());}catch(_0x41ffe9){_0x1eda82['push'](_0x1eda82['shift']());}}}(a148_0x571a,0x28917));export function assertDatasetImportTarget(_0x3e2f5f,_0x1e97e7,_0x28fe89){const _0x52c2bc=a148_0xc17b;if(!_0x3e2f5f||typeof _0x3e2f5f!=='object'||Array[_0x52c2bc(0x189)](_0x3e2f5f))throw Error(_0x52c2bc(0x180));const _0x406522=[_0x3e2f5f[_0x52c2bc(0x187)],_0x3e2f5f[_0x52c2bc(0x175)],_0x3e2f5f[_0x52c2bc(0x183)]?.[_0x52c2bc(0x184)]][_0x52c2bc(0x17b)](_0x1e4ac3=>_0x1e4ac3!=null);if(!_0x406522[_0x52c2bc(0x176)]||_0x406522[_0x52c2bc(0x17f)](_0x32e46b=>_0x32e46b!==_0x28fe89)||_0x3e2f5f[_0x52c2bc(0x186)]!=null&&_0x3e2f5f[_0x52c2bc(0x186)]!==_0x1e97e7||_0x3e2f5f[_0x52c2bc(0x183)]?.[_0x52c2bc(0x186)]!=null&&_0x3e2f5f[_0x52c2bc(0x183)]['appCode']!==_0x1e97e7)throw Error('Dataset\x20metadata\x20does\x20not\x20match\x20the\x20requested\x20target.');const _0x370f48=[_0x3e2f5f[_0x52c2bc(0x17e)],_0x3e2f5f[_0x52c2bc(0x183)]?.[_0x52c2bc(0x177)]][_0x52c2bc(0x17b)](_0x56f9d0=>_0x56f9d0!=null);if(_0x370f48[_0x52c2bc(0x17f)](_0xbe9bf6=>typeof _0xbe9bf6!==_0x52c2bc(0x17c)||_0xbe9bf6!==_0x370f48[0x0]))throw Error(_0x52c2bc(0x185));return _0x370f48[0x0];}function a148_0x571a(){const _0x574264=['Dataset\x20metadata\x20is\x20missing.','8503BAzmlx','12tsThsD','dataset','datasetCode','Dataset\x20source\x20metadata\x20is\x20inconsistent.','appCode','code','4CWYELM','isArray','925910LegoRb','216294KOJkQp','11692qCQDBZ','188363UHzBXV','145vaArZU','modelCode','length','sourceType','6672NzHkqF','27HQelpZ','267171bivYQc','filter','string','1992424FOiTYJ','source','some'];a148_0x571a=function(){return _0x574264;};return a148_0x571a();}
1
+ (function(_0x8df962,_0x4c8153){const _0x20204d=a148_0x206d,_0x2a4fcb=_0x8df962();while(!![]){try{const _0x295acd=parseInt(_0x20204d(0x197))/0x1*(parseInt(_0x20204d(0x18e))/0x2)+-parseInt(_0x20204d(0x1a0))/0x3*(parseInt(_0x20204d(0x19f))/0x4)+parseInt(_0x20204d(0x194))/0x5+parseInt(_0x20204d(0x19e))/0x6*(-parseInt(_0x20204d(0x188))/0x7)+parseInt(_0x20204d(0x19a))/0x8*(parseInt(_0x20204d(0x199))/0x9)+parseInt(_0x20204d(0x190))/0xa+-parseInt(_0x20204d(0x189))/0xb*(parseInt(_0x20204d(0x196))/0xc);if(_0x295acd===_0x4c8153)break;else _0x2a4fcb['push'](_0x2a4fcb['shift']());}catch(_0xc736bc){_0x2a4fcb['push'](_0x2a4fcb['shift']());}}}(a148_0x33f8,0xd49d6));function a148_0x206d(_0x107bdd,_0x54081d){_0x107bdd=_0x107bdd-0x187;const _0x33f8db=a148_0x33f8();let _0x206d62=_0x33f8db[_0x107bdd];return _0x206d62;}export function assertDatasetImportTarget(_0x287a51,_0x523b44,_0x40d7bc){const _0x1efe13=a148_0x206d;if(!_0x287a51||typeof _0x287a51!==_0x1efe13(0x18c)||Array[_0x1efe13(0x18b)](_0x287a51))throw Error('Dataset\x20metadata\x20is\x20missing.');const _0x4ceb65=[_0x287a51[_0x1efe13(0x19c)],_0x287a51[_0x1efe13(0x18a)],_0x287a51[_0x1efe13(0x19d)]?.[_0x1efe13(0x191)]]['filter'](_0x35b677=>_0x35b677!=null);if(!_0x4ceb65[_0x1efe13(0x19b)]||_0x4ceb65[_0x1efe13(0x187)](_0x3ce0c5=>_0x3ce0c5!==_0x40d7bc)||_0x287a51['appCode']!=null&&_0x287a51[_0x1efe13(0x18f)]!==_0x523b44||_0x287a51[_0x1efe13(0x19d)]?.[_0x1efe13(0x18f)]!=null&&_0x287a51[_0x1efe13(0x19d)][_0x1efe13(0x18f)]!==_0x523b44)throw Error(_0x1efe13(0x195));const _0x4d3d27=[_0x287a51[_0x1efe13(0x1a1)],_0x287a51[_0x1efe13(0x19d)]?.[_0x1efe13(0x198)]][_0x1efe13(0x192)](_0x3ab120=>_0x3ab120!=null);if(_0x4d3d27['some'](_0x5e4ded=>typeof _0x5e4ded!==_0x1efe13(0x18d)||_0x5e4ded!==_0x4d3d27[0x0]))throw Error(_0x1efe13(0x193));return _0x4d3d27[0x0];}function a148_0x33f8(){const _0x1aba51=['3232218Mrxwha','modelCode','isArray','object','string','20vOtExE','appCode','3228960ttadfZ','datasetCode','filter','Dataset\x20source\x20metadata\x20is\x20inconsistent.','8637445AfbqnQ','Dataset\x20metadata\x20does\x20not\x20match\x20the\x20requested\x20target.','12cxCnve','43466WXzFgI','sourceType','29943ASEhOe','1768LBgudm','length','code','dataset','6CuMPAb','3576644teSAmO','3ljpxTT','source','some','8130101nBHhRo'];a148_0x33f8=function(){return _0x1aba51;};return a148_0x33f8();}
@@ -1 +1 @@
1
- function a149_0x1544(){const _0x1b5784=['schemaVersion','\x20exceeds\x20the\x20import\x20request\x20size\x20limit.','values','121424bWwvLJ','schemaFingerprint','144912eIbiUr','Excel\x20row\x20','utf8','195636lBKmen','map','401086nAuPAV','length','162295sWrESM','636XMmqGN','rowNumber','6384LCWRKo','4573270KbiSJZ','66KFGWAv','byteLength','stringify','push','maxBatchBytes','117dUVzdF','rows'];a149_0x1544=function(){return _0x1b5784;};return a149_0x1544();}(function(_0x26c5d1,_0x5abed3){const _0x59b86f=a149_0x1465,_0x39b1c1=_0x26c5d1();while(!![]){try{const _0x77659e=parseInt(_0x59b86f(0x150))/0x1+-parseInt(_0x59b86f(0x14b))/0x2+-parseInt(_0x59b86f(0x13f))/0x3*(-parseInt(_0x59b86f(0x13d))/0x4)+parseInt(_0x59b86f(0x154))/0x5*(parseInt(_0x59b86f(0x141))/0x6)+parseInt(_0x59b86f(0x152))/0x7+parseInt(_0x59b86f(0x14d))/0x8*(-parseInt(_0x59b86f(0x146))/0x9)+-parseInt(_0x59b86f(0x140))/0xa;if(_0x77659e===_0x5abed3)break;else _0x39b1c1['push'](_0x39b1c1['shift']());}catch(_0x252819){_0x39b1c1['push'](_0x39b1c1['shift']());}}}(a149_0x1544,0x2f8fe));function a149_0x1465(_0x376b9b,_0x1c0be4){_0x376b9b=_0x376b9b-0x13d;const _0x15441d=a149_0x1544();let _0x1465d8=_0x15441d[_0x376b9b];return _0x1465d8;}export function previewImportBatchCount(_0x53a09a,_0x1808b7,_0x771b57){const _0x14495e=a149_0x1465,_0x17739c=_0xc64d88=>_0xc64d88[_0x14495e(0x151)](_0x525bed=>_0x1808b7[_0x14495e(0x148)]===0x1?{..._0x53a09a['rows'][_0x525bed]['values'],'id':-0x1fffffffffffff}:_0x53a09a[_0x14495e(0x147)][_0x525bed][_0x14495e(0x14a)]),_0x285387=_0x191b3b=>Buffer[_0x14495e(0x142)](JSON[_0x14495e(0x143)]({'schemaFingerprint':_0x1808b7[_0x14495e(0x14c)],..._0x1808b7[_0x14495e(0x148)]===0x2?{'taskId':0x2**0x34}:{},'items':_0x17739c(_0x191b3b)}),_0x14495e(0x14f));let _0x25d4de=0x0,_0x121005=[];for(let _0x5088b0=0x0;_0x5088b0<_0x53a09a[_0x14495e(0x147)][_0x14495e(0x153)];_0x5088b0++){if(_0x285387([_0x5088b0])>_0x1808b7[_0x14495e(0x145)])throw Error(_0x14495e(0x14e)+_0x53a09a[_0x14495e(0x147)][_0x5088b0][_0x14495e(0x13e)]+_0x14495e(0x149));_0x121005[_0x14495e(0x153)]&&(_0x121005['length']===_0x771b57||_0x285387([..._0x121005,_0x5088b0])>_0x1808b7[_0x14495e(0x145)])&&(_0x25d4de++,_0x121005=[]),_0x121005[_0x14495e(0x144)](_0x5088b0);}return _0x25d4de+Number(_0x121005[_0x14495e(0x153)]>0x0);}
1
+ function a149_0x2bf8(_0x44f292,_0x133a91){_0x44f292=_0x44f292-0x186;const _0x41762a=a149_0x4176();let _0x2bf8c2=_0x41762a[_0x44f292];return _0x2bf8c2;}(function(_0x5ead27,_0x2fc5c9){const _0x281cfc=a149_0x2bf8,_0x238bfc=_0x5ead27();while(!![]){try{const _0x27e478=parseInt(_0x281cfc(0x18e))/0x1+parseInt(_0x281cfc(0x18c))/0x2*(-parseInt(_0x281cfc(0x18b))/0x3)+-parseInt(_0x281cfc(0x190))/0x4+-parseInt(_0x281cfc(0x189))/0x5+-parseInt(_0x281cfc(0x191))/0x6+-parseInt(_0x281cfc(0x192))/0x7+parseInt(_0x281cfc(0x187))/0x8;if(_0x27e478===_0x2fc5c9)break;else _0x238bfc['push'](_0x238bfc['shift']());}catch(_0x407ad9){_0x238bfc['push'](_0x238bfc['shift']());}}}(a149_0x4176,0x5d612));function a149_0x4176(){const _0x123ca5=['\x20exceeds\x20the\x20import\x20request\x20size\x20limit.','byteLength','utf8','map','5473096BkNhuQ','schemaVersion','1662795ZIRwvl','maxBatchBytes','15pNDjsH','14896IVzXTp','values','670828QvWkly','length','938508cIZYLl','408666dOUPpK','2099622jvVAFa','schemaFingerprint','push','rows'];a149_0x4176=function(){return _0x123ca5;};return a149_0x4176();}export function previewImportBatchCount(_0x2c8665,_0x495ace,_0x16b31e){const _0x1b6cd1=a149_0x2bf8,_0x543223=_0x40d979=>_0x40d979[_0x1b6cd1(0x186)](_0x3554f4=>_0x495ace[_0x1b6cd1(0x188)]===0x1?{..._0x2c8665[_0x1b6cd1(0x195)][_0x3554f4]['values'],'id':-0x1fffffffffffff}:_0x2c8665[_0x1b6cd1(0x195)][_0x3554f4][_0x1b6cd1(0x18d)]),_0x54bf9b=_0x34e8d2=>Buffer[_0x1b6cd1(0x197)](JSON['stringify']({'schemaFingerprint':_0x495ace[_0x1b6cd1(0x193)],..._0x495ace[_0x1b6cd1(0x188)]===0x2?{'taskId':0x2**0x34}:{},'items':_0x543223(_0x34e8d2)}),_0x1b6cd1(0x198));let _0x5b2638=0x0,_0x136ef3=[];for(let _0x46e359=0x0;_0x46e359<_0x2c8665[_0x1b6cd1(0x195)]['length'];_0x46e359++){if(_0x54bf9b([_0x46e359])>_0x495ace[_0x1b6cd1(0x18a)])throw Error('Excel\x20row\x20'+_0x2c8665[_0x1b6cd1(0x195)][_0x46e359]['rowNumber']+_0x1b6cd1(0x196));_0x136ef3[_0x1b6cd1(0x18f)]&&(_0x136ef3[_0x1b6cd1(0x18f)]===_0x16b31e||_0x54bf9b([..._0x136ef3,_0x46e359])>_0x495ace[_0x1b6cd1(0x18a)])&&(_0x5b2638++,_0x136ef3=[]),_0x136ef3[_0x1b6cd1(0x194)](_0x46e359);}return _0x5b2638+Number(_0x136ef3['length']>0x0);}