@lovrabet/lovrabet-cli 2.3.8-beta.3 → 2.3.8-beta.4

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 (184) 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/kb/index.js +1 -1
  37. package/lib/commands/logs/index.js +1 -1
  38. package/lib/commands/notification/config-list.js +1 -1
  39. package/lib/commands/notification/index.js +1 -1
  40. package/lib/commands/notification/shared.js +1 -1
  41. package/lib/commands/ocr/index.js +1 -1
  42. package/lib/commands/permit/dataset-get.js +1 -1
  43. package/lib/commands/permit/dataset-set.js +1 -1
  44. package/lib/commands/permit/index.js +1 -1
  45. package/lib/commands/permit/page-get.js +1 -1
  46. package/lib/commands/permit/page-set.js +1 -1
  47. package/lib/commands/permit/role-menus-set.js +1 -1
  48. package/lib/commands/permit/role-menus.js +1 -1
  49. package/lib/commands/permit/shared.js +1 -1
  50. package/lib/commands/personal-bff/index.js +1 -1
  51. package/lib/commands/registry.js +1 -1
  52. package/lib/commands/role/create.js +1 -1
  53. package/lib/commands/role/delete.js +1 -1
  54. package/lib/commands/role/detail.js +1 -1
  55. package/lib/commands/role/index.js +1 -1
  56. package/lib/commands/role/list.js +1 -1
  57. package/lib/commands/role/shared.js +1 -1
  58. package/lib/commands/role/update.js +1 -1
  59. package/lib/commands/role/user-add.js +1 -1
  60. package/lib/commands/role/user-remove.js +1 -1
  61. package/lib/commands/schedule/index.js +1 -1
  62. package/lib/commands/schema.js +1 -1
  63. package/lib/commands/service/dynamic.js +1 -1
  64. package/lib/commands/service/function-name-adapter.js +1 -1
  65. package/lib/commands/service/index.js +1 -1
  66. package/lib/commands/service/registry.js +1 -1
  67. package/lib/commands/skill/commands/create.js +1 -1
  68. package/lib/commands/skill/commands/diagram.js +1 -1
  69. package/lib/commands/skill/commands/install.js +1 -1
  70. package/lib/commands/skill/commands/list.js +1 -1
  71. package/lib/commands/skill/commands/push.js +1 -1
  72. package/lib/commands/skill/commands/validate.js +1 -1
  73. package/lib/commands/skill/diagram.js +1 -1
  74. package/lib/commands/skill/flags.js +1 -1
  75. package/lib/commands/skill/index.js +1 -1
  76. package/lib/commands/skill/manifest-helpers.js +1 -1
  77. package/lib/commands/skill/push-execute.js +1 -1
  78. package/lib/commands/skill/push-flow-helpers.js +1 -1
  79. package/lib/commands/skill/push-retarget.js +1 -1
  80. package/lib/commands/skill/scopes.js +1 -1
  81. package/lib/commands/skill/summary.js +1 -1
  82. package/lib/commands/skill/templates.js +1 -1
  83. package/lib/commands/skill/validate.js +1 -1
  84. package/lib/commands/sql/detail.js +1 -1
  85. package/lib/commands/sql/exec.js +1 -1
  86. package/lib/commands/sql/index.js +1 -1
  87. package/lib/commands/update.js +1 -1
  88. package/lib/commands/user-account/bind.js +1 -1
  89. package/lib/commands/user-account/index.js +1 -1
  90. package/lib/commands/workspace/index.js +1 -1
  91. package/lib/config/domain-config.js +1 -1
  92. package/lib/config/schema.js +1 -1
  93. package/lib/constant/app.js +1 -1
  94. package/lib/constant/auth-mode.js +1 -1
  95. package/lib/constant/cli.js +1 -1
  96. package/lib/constant/defaults.js +1 -1
  97. package/lib/constant/distribution.js +1 -1
  98. package/lib/constant/domain.js +1 -1
  99. package/lib/constant/env.js +1 -1
  100. package/lib/constant/output.js +1 -1
  101. package/lib/constant/product.js +1 -1
  102. package/lib/constant/region.js +1 -1
  103. package/lib/constant/risk.js +1 -1
  104. package/lib/constant/url.js +1 -1
  105. package/lib/context.js +1 -1
  106. package/lib/core/api-client.js +1 -1
  107. package/lib/core/db-resolver.js +1 -1
  108. package/lib/core/kb-management-client.js +1 -1
  109. package/lib/core/kb-sdk-errors.d.ts +3 -0
  110. package/lib/core/kb-sdk-errors.js +1 -0
  111. package/lib/core/kb-search-client.d.ts +3 -21
  112. package/lib/core/kb-search-client.js +1 -1
  113. package/lib/core/sdk-client.js +1 -1
  114. package/lib/errors.js +1 -1
  115. package/lib/framework/access-error.js +1 -1
  116. package/lib/framework/build-all-flags.js +1 -1
  117. package/lib/framework/dryrun.js +1 -1
  118. package/lib/framework/flags.js +1 -1
  119. package/lib/framework/help.js +1 -1
  120. package/lib/framework/index.js +1 -1
  121. package/lib/framework/output.js +1 -1
  122. package/lib/framework/preparse.js +1 -1
  123. package/lib/framework/rate-limit.js +1 -1
  124. package/lib/framework/raw-flags.js +1 -1
  125. package/lib/framework/response.js +1 -1
  126. package/lib/framework/runner-confirmation.js +1 -1
  127. package/lib/framework/runner-error.js +1 -1
  128. package/lib/framework/runner.js +1 -1
  129. package/lib/framework/schema-export.js +1 -1
  130. package/lib/framework/service-order.js +1 -1
  131. package/lib/framework/types.js +1 -1
  132. package/lib/generated/build-info.d.ts +4 -4
  133. package/lib/generated/build-info.js +1 -1
  134. package/lib/generated/official-routing.js +1 -1
  135. package/lib/generated/routing-contract.js +1 -1
  136. package/lib/help.js +1 -1
  137. package/lib/postinstall.js +1 -1
  138. package/lib/runtime/confirmation.js +1 -1
  139. package/lib/runtime/event.js +1 -1
  140. package/lib/runtime/index.js +1 -1
  141. package/lib/runtime/queue.js +1 -1
  142. package/lib/runtime/resolve.js +1 -1
  143. package/lib/services/dataset-import/auto-id-runner.js +1 -1
  144. package/lib/services/dataset-import/excel-reader.js +1 -1
  145. package/lib/services/dataset-import/image-bytes.js +1 -1
  146. package/lib/services/dataset-import/image-ooxml.js +1 -1
  147. package/lib/services/dataset-import/image-runner.js +1 -1
  148. package/lib/services/dataset-import/metadata.js +1 -1
  149. package/lib/services/dataset-import/preview.js +1 -1
  150. package/lib/services/dataset-import/runner.js +1 -1
  151. package/lib/skills/builtin-skill.js +1 -1
  152. package/lib/skills/npx-skills-add.js +1 -1
  153. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  154. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  155. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  156. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  157. package/lib/skills/runtime-skill-sync/links.js +1 -1
  158. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  159. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  160. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  161. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  162. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  163. package/lib/skills/runtime-skill-sync/push.js +1 -1
  164. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  165. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  166. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  167. package/lib/skills/runtime-skill-sync.js +1 -1
  168. package/lib/skills/skill-presence.js +1 -1
  169. package/lib/utils/access-key-redaction.js +1 -1
  170. package/lib/utils/apply-jq-filter.js +1 -1
  171. package/lib/utils/cli-version-check.js +1 -1
  172. package/lib/utils/cli-version-policy.js +1 -1
  173. package/lib/utils/logger.js +1 -1
  174. package/lib/utils/lossless-json.js +1 -1
  175. package/lib/utils/params.js +1 -1
  176. package/lib/utils/positive-safe-integer.js +1 -1
  177. package/lib/utils/redaction.js +1 -1
  178. package/lib/utils/runtime-user-id.js +1 -1
  179. package/lib/utils/update-notice.js +1 -1
  180. package/lib/utils/version.js +1 -1
  181. package/lib/utils/write-cli-side-channel.js +1 -1
  182. package/package.json +2 -2
  183. package/skills/lovrabet/SKILL.md +1 -1
  184. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
1
- const a129_0x4f08f1=a129_0x177b;(function(_0x2848bc,_0x425efd){const _0x56e610=a129_0x177b,_0x82b36=_0x2848bc();while(!![]){try{const _0x53709a=-parseInt(_0x56e610(0x82))/0x1*(-parseInt(_0x56e610(0x7d))/0x2)+-parseInt(_0x56e610(0x80))/0x3+-parseInt(_0x56e610(0x71))/0x4+parseInt(_0x56e610(0x68))/0x5+parseInt(_0x56e610(0x7a))/0x6+-parseInt(_0x56e610(0x6b))/0x7*(parseInt(_0x56e610(0x87))/0x8)+-parseInt(_0x56e610(0x75))/0x9*(-parseInt(_0x56e610(0x76))/0xa);if(_0x53709a===_0x425efd)break;else _0x82b36['push'](_0x82b36['shift']());}catch(_0x4aecb7){_0x82b36['push'](_0x82b36['shift']());}}}(a129_0x5e70,0xa3889));function a129_0x177b(_0x56ec6d,_0x4c222c){_0x56ec6d=_0x56ec6d-0x68;const _0x5e70f0=a129_0x5e70();let _0x177b9b=_0x5e70f0[_0x56ec6d];return _0x177b9b;}function a129_0x5e70(){const _0x3d6c34=['54012jsWHGa','https://skills.lovrabet.id','https://daily-api.lovrabet.ai','https://api.lovrabet.com','https://user.lovrabet.com','Global','5317844SyoaOy','https://api.lovrabet.ai','https://kb-service.lovrabet.id','https://skills.lovrabet.ai','99gqDmtv','861270HhJMsv','china','https://user.lovrabet.ai','https://runtime.lovrabet.com','1726314REdTAK','https://kb-service-daily.lovrabet.com','Mainland\x20China','3072yHqtOW','https://runtime.lovrabet.ai','https://user-daily.lovrabet.ai','714303rumiWY','https://skills-daily.lovrabet.com','661fdBXUJ','https://kb-service.lovrabet.com','https://api.lovrabet.id','Indonesia','https://skills.lovrabet.com','920EogzEj','4371615TlalKX','https://skills-daily.lovrabet.ai','https://user.lovrabet.id'];a129_0x5e70=function(){return _0x3d6c34;};return a129_0x5e70();}export const ROUTING_CATALOG_DIGEST='886843ef89aa4ff2b36d612e8fbd1b6c1840b37728916fba5699be34129ef579';export const DEFAULT_REGION='cn';export const REGION_VALUES=['cn','id','global'];export const ENABLED_REGION_VALUES=['cn','id','global'];export const OFFICIAL_ROUTING_PROFILES={'cn':{'enabled':!![],'label':a129_0x4f08f1(0x7c),'aliases':[a129_0x4f08f1(0x77)],'serviceDomains':{'production':{'user':a129_0x4f08f1(0x6f),'api':a129_0x4f08f1(0x6e),'runtime':a129_0x4f08f1(0x79),'skill':a129_0x4f08f1(0x86),'kbService':a129_0x4f08f1(0x83)},'daily':{'user':'https://user-daily.lovrabet.com','api':'https://daily-api.lovrabet.com','runtime':'https://daily-runtime.lovrabet.com','skill':a129_0x4f08f1(0x81),'kbService':a129_0x4f08f1(0x7b)}}},'id':{'enabled':!![],'label':a129_0x4f08f1(0x85),'aliases':['indonesia'],'serviceDomains':{'production':{'user':a129_0x4f08f1(0x6a),'api':a129_0x4f08f1(0x84),'runtime':'https://runtime.lovrabet.id','skill':a129_0x4f08f1(0x6c),'kbService':a129_0x4f08f1(0x73)}}},'global':{'enabled':!![],'label':a129_0x4f08f1(0x70),'aliases':[],'serviceDomains':{'production':{'user':a129_0x4f08f1(0x78),'api':a129_0x4f08f1(0x72),'runtime':a129_0x4f08f1(0x7e),'skill':a129_0x4f08f1(0x74)},'daily':{'user':a129_0x4f08f1(0x7f),'api':a129_0x4f08f1(0x6d),'runtime':'https://daily-runtime.lovrabet.ai','skill':a129_0x4f08f1(0x69)}}}};export const REGION_ALIASES={'china':'cn','indonesia':'id'};
1
+ const a130_0x4d4073=a130_0xa90d;(function(_0x2dedda,_0x133429){const _0x203b97=a130_0xa90d,_0x761431=_0x2dedda();while(!![]){try{const _0x5571b0=-parseInt(_0x203b97(0xa4))/0x1*(parseInt(_0x203b97(0xae))/0x2)+parseInt(_0x203b97(0xa6))/0x3+-parseInt(_0x203b97(0xa5))/0x4+-parseInt(_0x203b97(0xb8))/0x5*(-parseInt(_0x203b97(0xaf))/0x6)+-parseInt(_0x203b97(0xbc))/0x7+parseInt(_0x203b97(0xbf))/0x8+-parseInt(_0x203b97(0xb5))/0x9*(-parseInt(_0x203b97(0xa7))/0xa);if(_0x5571b0===_0x133429)break;else _0x761431['push'](_0x761431['shift']());}catch(_0x639dd9){_0x761431['push'](_0x761431['shift']());}}}(a130_0x2b53,0xdfac8));export const ROUTING_CATALOG_DIGEST='886843ef89aa4ff2b36d612e8fbd1b6c1840b37728916fba5699be34129ef579';function a130_0xa90d(_0x282d2f,_0x40c3c5){_0x282d2f=_0x282d2f-0xa4;const _0x2b53a5=a130_0x2b53();let _0xa90d27=_0x2b53a5[_0x282d2f];return _0xa90d27;}export const DEFAULT_REGION='cn';export const REGION_VALUES=['cn','id',a130_0x4d4073(0xb0)];export const ENABLED_REGION_VALUES=['cn','id',a130_0x4d4073(0xb0)];function a130_0x2b53(){const _0x4b6de7=['https://runtime.lovrabet.com','Mainland\x20China','Indonesia','21420udaYHz','https://user.lovrabet.com','https://daily-api.lovrabet.ai','64735UExWiB','indonesia','https://kb-service.lovrabet.com','https://user-daily.lovrabet.ai','4505627YvEjmU','https://runtime.lovrabet.id','Global','2950368TQIQrI','https://kb-service-daily.lovrabet.com','https://api.lovrabet.id','https://user-daily.lovrabet.com','3QaCqxE','3278060eFdMVP','335964sTqyJe','9370zhlqkb','china','https://skills.lovrabet.id','https://skills.lovrabet.com','https://user.lovrabet.id','https://runtime.lovrabet.ai','https://daily-runtime.lovrabet.ai','505834csKMSk','198QswgIH','global','https://skills-daily.lovrabet.com'];a130_0x2b53=function(){return _0x4b6de7;};return a130_0x2b53();}export const OFFICIAL_ROUTING_PROFILES={'cn':{'enabled':!![],'label':a130_0x4d4073(0xb3),'aliases':[a130_0x4d4073(0xa8)],'serviceDomains':{'production':{'user':a130_0x4d4073(0xb6),'api':'https://api.lovrabet.com','runtime':a130_0x4d4073(0xb2),'skill':a130_0x4d4073(0xaa),'kbService':a130_0x4d4073(0xba)},'daily':{'user':a130_0x4d4073(0xc2),'api':'https://daily-api.lovrabet.com','runtime':'https://daily-runtime.lovrabet.com','skill':a130_0x4d4073(0xb1),'kbService':a130_0x4d4073(0xc0)}}},'id':{'enabled':!![],'label':a130_0x4d4073(0xb4),'aliases':[a130_0x4d4073(0xb9)],'serviceDomains':{'production':{'user':a130_0x4d4073(0xab),'api':a130_0x4d4073(0xc1),'runtime':a130_0x4d4073(0xbd),'skill':a130_0x4d4073(0xa9),'kbService':'https://kb-service.lovrabet.id'}}},'global':{'enabled':!![],'label':a130_0x4d4073(0xbe),'aliases':[],'serviceDomains':{'production':{'user':'https://user.lovrabet.ai','api':'https://api.lovrabet.ai','runtime':a130_0x4d4073(0xac),'skill':'https://skills.lovrabet.ai'},'daily':{'user':a130_0x4d4073(0xbb),'api':a130_0x4d4073(0xb7),'runtime':a130_0x4d4073(0xad),'skill':'https://skills-daily.lovrabet.ai'}}}};export const REGION_ALIASES={'china':'cn','indonesia':'id'};
@@ -1 +1 @@
1
- const a130_0x5c5b95=a130_0x1b40;(function(_0x1d8b45,_0x2e63d0){const _0x1c760b=a130_0x1b40,_0x68c1d6=_0x1d8b45();while(!![]){try{const _0x78308a=-parseInt(_0x1c760b(0xd9))/0x1+parseInt(_0x1c760b(0xe4))/0x2+parseInt(_0x1c760b(0xdd))/0x3+parseInt(_0x1c760b(0xde))/0x4*(-parseInt(_0x1c760b(0xda))/0x5)+parseInt(_0x1c760b(0xe1))/0x6*(-parseInt(_0x1c760b(0xe0))/0x7)+-parseInt(_0x1c760b(0xe2))/0x8*(-parseInt(_0x1c760b(0xe3))/0x9)+parseInt(_0x1c760b(0xd8))/0xa;if(_0x78308a===_0x2e63d0)break;else _0x68c1d6['push'](_0x68c1d6['shift']());}catch(_0x11a2c6){_0x68c1d6['push'](_0x68c1d6['shift']());}}}(a130_0x35d7,0xc33b1));export const ENTERPRISE_ROUTING_SCHEMA_DIGEST='e3423cad71c22edb18a8481be7bdb733ff2d4136c31aa3ae6da56271e32cced7';function a130_0x1b40(_0x1e6196,_0x58f272){_0x1e6196=_0x1e6196-0xd7;const _0x35d74f=a130_0x35d7();let _0x1b405a=_0x35d74f[_0x1e6196];return _0x1b405a;}export const ENTERPRISE_ROUTING_PROTOCOL=a130_0x5c5b95(0xe5);export const ENTERPRISE_ROUTING_KIND=a130_0x5c5b95(0xd7);export const ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a130_0x5c5b95(0xdc),a130_0x5c5b95(0xdb),a130_0x5c5b95(0xdf),a130_0x5c5b95(0xe6),'kbServiceDomain'];function a130_0x35d7(){const _0xb9b8cd=['1383363xsuzYY','76612LYUsUu','runtimeDomain','7vsFChL','4144890nNMTAw','8aAWKfS','285723xfoKeY','731716TpLFKD','lovrabet-routing/v1','skillDomain','enterprise','27601460UbQTwN','1400578GASJpu','190OGymZd','apiDomain','userDomain'];a130_0x35d7=function(){return _0xb9b8cd;};return a130_0x35d7();}export const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS=['userDomain','apiDomain',a130_0x5c5b95(0xdf),'skillDomain'];
1
+ const a131_0x566407=a131_0x2653;(function(_0x3b8227,_0x5d4807){const _0x3255d7=a131_0x2653,_0x1330dc=_0x3b8227();while(!![]){try{const _0x1873ce=parseInt(_0x3255d7(0x77))/0x1*(-parseInt(_0x3255d7(0x6d))/0x2)+-parseInt(_0x3255d7(0x78))/0x3+parseInt(_0x3255d7(0x6c))/0x4+-parseInt(_0x3255d7(0x6a))/0x5*(-parseInt(_0x3255d7(0x6b))/0x6)+parseInt(_0x3255d7(0x70))/0x7+parseInt(_0x3255d7(0x74))/0x8+parseInt(_0x3255d7(0x6f))/0x9*(parseInt(_0x3255d7(0x69))/0xa);if(_0x1873ce===_0x5d4807)break;else _0x1330dc['push'](_0x1330dc['shift']());}catch(_0x4986d4){_0x1330dc['push'](_0x1330dc['shift']());}}}(a131_0x5c53,0xdbdc6));export const ENTERPRISE_ROUTING_SCHEMA_DIGEST='e3423cad71c22edb18a8481be7bdb733ff2d4136c31aa3ae6da56271e32cced7';export const ENTERPRISE_ROUTING_PROTOCOL=a131_0x566407(0x71);function a131_0x5c53(){const _0x545f8b=['188150RVBPOr','5aKVzhd','1395090Olthep','1939860GJyaMR','6706eEVkRG','apiDomain','1269oRMwLY','2115610lUOEcY','lovrabet-routing/v1','userDomain','kbServiceDomain','150384NLtgnh','skillDomain','runtimeDomain','483HwkuUp','3514122UbRHUS','enterprise'];a131_0x5c53=function(){return _0x545f8b;};return a131_0x5c53();}function a131_0x2653(_0x545f4c,_0x122d81){_0x545f4c=_0x545f4c-0x68;const _0x5c5394=a131_0x5c53();let _0x26532b=_0x5c5394[_0x545f4c];return _0x26532b;}export const ENTERPRISE_ROUTING_KIND=a131_0x566407(0x68);export const ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a131_0x566407(0x72),a131_0x566407(0x6e),a131_0x566407(0x76),'skillDomain',a131_0x566407(0x73)];export const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a131_0x566407(0x72),a131_0x566407(0x6e),a131_0x566407(0x76),a131_0x566407(0x75)];
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- function a131_0x5887(_0x45099e,_0x106c74){_0x45099e=_0x45099e-0x174;const _0x4a9fec=a131_0x4a9f();let _0x588762=_0x4a9fec[_0x45099e];return _0x588762;}(function(_0x1187a0,_0x5a658b){const _0x184305=a131_0x5887,_0x5150d5=_0x1187a0();while(!![]){try{const _0x3e48a8=-parseInt(_0x184305(0x17e))/0x1*(parseInt(_0x184305(0x17f))/0x2)+parseInt(_0x184305(0x182))/0x3*(parseInt(_0x184305(0x181))/0x4)+-parseInt(_0x184305(0x17c))/0x5*(parseInt(_0x184305(0x174))/0x6)+-parseInt(_0x184305(0x178))/0x7+-parseInt(_0x184305(0x17a))/0x8*(parseInt(_0x184305(0x176))/0x9)+-parseInt(_0x184305(0x180))/0xa+parseInt(_0x184305(0x17b))/0xb*(parseInt(_0x184305(0x177))/0xc);if(_0x3e48a8===_0x5a658b)break;else _0x5150d5['push'](_0x5150d5['shift']());}catch(_0x19c369){_0x5150d5['push'](_0x5150d5['shift']());}}}(a131_0x4a9f,0xce65a));import{jsx as a131_0xaa6e9e,jsxs as a131_0x2765ae}from'react/jsx-runtime';import{useEffect}from'react';import{Box,Text,useApp}from'ink';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a131_0x4a9f(){const _0x2c9e72=['10735130oDTftB','20AIDGCx','248928EiwtDW','4560AHuaji','column','6046956uyXRzZ','3481152vvZxkL','3934882GnPvZU','\x20--help','8oKjXmP','209qiLhtp','7645HJxFsl','green','907igBidI','3554ZbJOHE'];a131_0x4a9f=function(){return _0x2c9e72;};return a131_0x4a9f();}export function Help(){const _0x3e4cc2=a131_0x5887,{exit:_0x36e379}=useApp();return useEffect(()=>{_0x36e379();},[_0x36e379]),a131_0x2765ae(Box,{'flexDirection':_0x3e4cc2(0x175),'marginTop':0x1,'marginBottom':0x1,'children':[a131_0xaa6e9e(Box,{'children':a131_0xaa6e9e(Text,{'bold':!![],'color':_0x3e4cc2(0x17d),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a131_0x2765ae(Box,{'marginTop':0x1,'children':[a131_0xaa6e9e(Text,{'dimColor':!![],'children':'\x20\x20Use\x20'}),a131_0xaa6e9e(Text,{'bold':!![],'color':_0x3e4cc2(0x17d),'children':CLI_BIN_NAME+_0x3e4cc2(0x179)}),a131_0xaa6e9e(Text,{'dimColor':!![],'children':'\x20to\x20view\x20available\x20commands.'})]})]});}
1
+ (function(_0x335142,_0x73eaa0){const _0x1502b8=a132_0x38d6,_0x215584=_0x335142();while(!![]){try{const _0x45f030=-parseInt(_0x1502b8(0x162))/0x1+parseInt(_0x1502b8(0x161))/0x2+parseInt(_0x1502b8(0x15d))/0x3+parseInt(_0x1502b8(0x158))/0x4*(-parseInt(_0x1502b8(0x15a))/0x5)+-parseInt(_0x1502b8(0x163))/0x6+parseInt(_0x1502b8(0x15b))/0x7+-parseInt(_0x1502b8(0x15f))/0x8;if(_0x45f030===_0x73eaa0)break;else _0x215584['push'](_0x215584['shift']());}catch(_0x2b903b){_0x215584['push'](_0x215584['shift']());}}}(a132_0x1b34,0x6a0de));import{jsx as a132_0x5aae77,jsxs as a132_0xd6710b}from'react/jsx-runtime';import{useEffect}from'react';import{Box,Text,useApp}from'ink';function a132_0x1b34(){const _0x25bf46=['4528746lmUIfJ','4xsLKYU','\x20to\x20view\x20available\x20commands.','1911005VJKktQ','5852805KPTiDn','green','2211222QitDfp','\x20\x20Use\x20','3467376CShCNu','column','1313136xnuadk','224945iQDYya'];a132_0x1b34=function(){return _0x25bf46;};return a132_0x1b34();}function a132_0x38d6(_0x4ab43e,_0x1b2451){_0x4ab43e=_0x4ab43e-0x158;const _0x1b3414=a132_0x1b34();let _0x38d64d=_0x1b3414[_0x4ab43e];return _0x38d64d;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function Help(){const _0x6bc52a=a132_0x38d6,{exit:_0x4a27d2}=useApp();return useEffect(()=>{_0x4a27d2();},[_0x4a27d2]),a132_0xd6710b(Box,{'flexDirection':_0x6bc52a(0x160),'marginTop':0x1,'marginBottom':0x1,'children':[a132_0x5aae77(Box,{'children':a132_0x5aae77(Text,{'bold':!![],'color':_0x6bc52a(0x15c),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a132_0xd6710b(Box,{'marginTop':0x1,'children':[a132_0x5aae77(Text,{'dimColor':!![],'children':_0x6bc52a(0x15e)}),a132_0x5aae77(Text,{'bold':!![],'color':_0x6bc52a(0x15c),'children':CLI_BIN_NAME+'\x20--help'}),a132_0x5aae77(Text,{'dimColor':!![],'children':_0x6bc52a(0x159)})]})]});}
@@ -1 +1 @@
1
- function a132_0x3a42(_0x52e641,_0x2f2eaf){_0x52e641=_0x52e641-0x1bc;const _0x587786=a132_0x5877();let _0x3a42d2=_0x587786[_0x52e641];return _0x3a42d2;}(function(_0x9c441e,_0x7a98e2){const _0xd323be=a132_0x3a42,_0x33ab9a=_0x9c441e();while(!![]){try{const _0x3a0fd4=-parseInt(_0xd323be(0x1cf))/0x1*(parseInt(_0xd323be(0x1c9))/0x2)+parseInt(_0xd323be(0x1c8))/0x3+-parseInt(_0xd323be(0x1d4))/0x4+-parseInt(_0xd323be(0x1ca))/0x5*(-parseInt(_0xd323be(0x1c3))/0x6)+-parseInt(_0xd323be(0x1d0))/0x7+-parseInt(_0xd323be(0x1cc))/0x8+-parseInt(_0xd323be(0x1d3))/0x9*(-parseInt(_0xd323be(0x1c4))/0xa);if(_0x3a0fd4===_0x7a98e2)break;else _0x33ab9a['push'](_0x33ab9a['shift']());}catch(_0x20da88){_0x33ab9a['push'](_0x33ab9a['shift']());}}}(a132_0x5877,0xe70aa));function a132_0x5877(){const _0x2faf6e=['log','warn','skillVersion','6QTdBSZ','5033540wqJcdn','\x20via\x20skills@latest','FAILED','Repair\x20with:\x20','3641739OPhOmy','100922jtFUai','2036095JOdEbe','code','3392752HdJSRi','already\x20current','installedPath','31TlNloU','4229085rIgOAq','SOURCE_INVALID','repairCommand','36AkQYTZ','382648HPsEfK','Installation\x20failed','Lovrabet\x20Built-in\x20Skill\x20','changed','installed'];a132_0x5877=function(){return _0x2faf6e;};return a132_0x5877();}import{installBuiltinSkill}from'./skills/builtin-skill.js';export async function runPostinstall(_0x457178={}){const _0xa4aec8=a132_0x3a42,_0x241b54=installBuiltinSkill(_0x457178);if(_0x241b54['ok']){const _0x276a3f=_0x241b54[_0xa4aec8(0x1be)]?_0xa4aec8(0x1bf):_0xa4aec8(0x1cd),_0x51ed73=_0x241b54[_0xa4aec8(0x1ce)]?'\x20at\x20'+_0x241b54[_0xa4aec8(0x1ce)]:_0xa4aec8(0x1c5);return console[_0xa4aec8(0x1c0)](_0xa4aec8(0x1bd)+_0x241b54[_0xa4aec8(0x1c2)]+'\x20'+_0x276a3f+_0x51ed73),_0x241b54;}const _0x42e88b='[BUILTIN_SKILL_INSTALL_'+(_0x241b54[_0xa4aec8(0x1cb)]??_0xa4aec8(0x1c6))+']\x20'+(_0x241b54['error']??_0xa4aec8(0x1bc))+'.\x20'+(_0xa4aec8(0x1c7)+_0x241b54[_0xa4aec8(0x1d2)]);if(_0x241b54[_0xa4aec8(0x1cb)]===_0xa4aec8(0x1d1))throw new Error(_0x42e88b);return console[_0xa4aec8(0x1c1)](_0x42e88b),_0x241b54;}
1
+ (function(_0x3ed673,_0x3aac1e){const _0x803a20=a133_0x1087,_0x101d90=_0x3ed673();while(!![]){try{const _0x6dce73=parseInt(_0x803a20(0xc0))/0x1*(-parseInt(_0x803a20(0xbd))/0x2)+parseInt(_0x803a20(0xb0))/0x3*(parseInt(_0x803a20(0xb6))/0x4)+parseInt(_0x803a20(0xc9))/0x5+-parseInt(_0x803a20(0xc6))/0x6*(-parseInt(_0x803a20(0xb3))/0x7)+parseInt(_0x803a20(0xb2))/0x8*(-parseInt(_0x803a20(0xc4))/0x9)+-parseInt(_0x803a20(0xbc))/0xa+parseInt(_0x803a20(0xbe))/0xb;if(_0x6dce73===_0x3aac1e)break;else _0x101d90['push'](_0x101d90['shift']());}catch(_0xb33f42){_0x101d90['push'](_0x101d90['shift']());}}}(a133_0x30a7,0x68aa2));import{installBuiltinSkill}from'./skills/builtin-skill.js';export async function runPostinstall(_0x5c55d6={}){const _0x290f48=a133_0x1087,_0x2ef1f2=installBuiltinSkill(_0x5c55d6);if(_0x2ef1f2['ok']){const _0x23b5b3=_0x2ef1f2[_0x290f48(0xae)]?_0x290f48(0xb5):_0x290f48(0xaf),_0x1ed327=_0x2ef1f2[_0x290f48(0xc5)]?_0x290f48(0xb1)+_0x2ef1f2['installedPath']:_0x290f48(0xc1);return console[_0x290f48(0xb8)](_0x290f48(0xbb)+_0x2ef1f2[_0x290f48(0xba)]+'\x20'+_0x23b5b3+_0x1ed327),_0x2ef1f2;}const _0x4803b5=_0x290f48(0xc3)+(_0x2ef1f2[_0x290f48(0xc8)]??_0x290f48(0xb7))+']\x20'+(_0x2ef1f2[_0x290f48(0xbf)]??_0x290f48(0xc7))+'.\x20'+(_0x290f48(0xb9)+_0x2ef1f2['repairCommand']);if(_0x2ef1f2[_0x290f48(0xc8)]===_0x290f48(0xc2))throw new Error(_0x4803b5);return console[_0x290f48(0xb4)](_0x4803b5),_0x2ef1f2;}function a133_0x1087(_0x2393c9,_0x54641e){_0x2393c9=_0x2393c9-0xae;const _0x30a7fd=a133_0x30a7();let _0x1087ef=_0x30a7fd[_0x2393c9];return _0x1087ef;}function a133_0x30a7(){const _0x26c879=['skillVersion','Lovrabet\x20Built-in\x20Skill\x20','8031420VlXJMK','209260sivvDF','14335673JSyDyM','error','8LINhyL','\x20via\x20skills@latest','SOURCE_INVALID','[BUILTIN_SKILL_INSTALL_','548433YaGvIj','installedPath','1129974hSbPjt','Installation\x20failed','code','73395pYHWYc','changed','already\x20current','3cYGZAl','\x20at\x20','8eAiPow','14luqxMZ','warn','installed','1740980BRiBCU','FAILED','log','Repair\x20with:\x20'];a133_0x30a7=function(){return _0x26c879;};return a133_0x30a7();}
@@ -1 +1 @@
1
- (function(_0x5cdbe8,_0x1949e1){const _0xc73a88=a133_0x18d3,_0x1213e7=_0x5cdbe8();while(!![]){try{const _0x294a9c=-parseInt(_0xc73a88(0x88))/0x1*(parseInt(_0xc73a88(0x92))/0x2)+-parseInt(_0xc73a88(0x8b))/0x3+-parseInt(_0xc73a88(0x91))/0x4*(-parseInt(_0xc73a88(0x96))/0x5)+-parseInt(_0xc73a88(0x93))/0x6+parseInt(_0xc73a88(0x8a))/0x7*(-parseInt(_0xc73a88(0x89))/0x8)+-parseInt(_0xc73a88(0x8f))/0x9+-parseInt(_0xc73a88(0x8e))/0xa*(-parseInt(_0xc73a88(0x86))/0xb);if(_0x294a9c===_0x1949e1)break;else _0x1213e7['push'](_0x1213e7['shift']());}catch(_0x3d4db6){_0x1213e7['push'](_0x1213e7['shift']());}}}(a133_0x2870,0xab725));const DESCRIPTION_MAX_LENGTH=0x1f4;function a133_0x2870(){const _0x46d303=['12euwteJ','6868368QohNdd','high-risk-write','Run\x20this\x20write\x20operation','355ifCVYj','trim','slice','99WarMVt','replace','103079IRsAra','5704iPgyVG','8295DOPflP','1567965IWwvCw','Lovrabet\x20confirmation\x20requires\x20a\x20write\x20command.','risk','4376860dfhucD','12520125hhKibu','write','72392qcceTj'];a133_0x2870=function(){return _0x46d303;};return a133_0x2870();}function a133_0x18d3(_0x4a9a41,_0xccd194){_0x4a9a41=_0x4a9a41-0x85;const _0x2870de=a133_0x2870();let _0x18d3ac=_0x2870de[_0x4a9a41];return _0x18d3ac;}export function buildLovrabetConfirmationRequest(_0x1eb778,_0x4b9732,_0x3b2b79){const _0x5788f5=a133_0x18d3,_0x459a5d=normalizeText(_0x1eb778['confirmationDescription'],DESCRIPTION_MAX_LENGTH),_0x2e9309=normalizeText(_0x1eb778['description'],DESCRIPTION_MAX_LENGTH);return{'operation':_0x4b9732,'risk':requireWriteRisk(_0x1eb778),'description':_0x459a5d||_0x2e9309||_0x5788f5(0x95),..._0x3b2b79?{'signal':_0x3b2b79}:{}};}function requireWriteRisk(_0x5ee989){const _0x5b8575=a133_0x18d3;if(_0x5ee989['risk']===_0x5b8575(0x90)||_0x5ee989['risk']===_0x5b8575(0x94))return _0x5ee989[_0x5b8575(0x8d)];throw new Error(_0x5b8575(0x8c));}function normalizeText(_0x3e9535,_0x190eb8){const _0x18cd33=a133_0x18d3;if(typeof _0x3e9535!=='string')return'';return _0x3e9535['replace'](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x18cd33(0x87)](/\s+/g,'\x20')[_0x18cd33(0x97)]()[_0x18cd33(0x85)](0x0,_0x190eb8);}
1
+ function a134_0x3a8b(_0x3c4e53,_0x2ac485){_0x3c4e53=_0x3c4e53-0x170;const _0x27219a=a134_0x2721();let _0x3a8b9d=_0x27219a[_0x3c4e53];return _0x3a8b9d;}(function(_0x5a1ee6,_0x335c14){const _0xf2b97b=a134_0x3a8b,_0x56f902=_0x5a1ee6();while(!![]){try{const _0xbad6dc=-parseInt(_0xf2b97b(0x17e))/0x1+-parseInt(_0xf2b97b(0x173))/0x2*(parseInt(_0xf2b97b(0x17f))/0x3)+parseInt(_0xf2b97b(0x178))/0x4*(parseInt(_0xf2b97b(0x17a))/0x5)+-parseInt(_0xf2b97b(0x180))/0x6+parseInt(_0xf2b97b(0x175))/0x7+parseInt(_0xf2b97b(0x181))/0x8*(parseInt(_0xf2b97b(0x171))/0x9)+parseInt(_0xf2b97b(0x179))/0xa;if(_0xbad6dc===_0x335c14)break;else _0x56f902['push'](_0x56f902['shift']());}catch(_0x4dc248){_0x56f902['push'](_0x56f902['shift']());}}}(a134_0x2721,0x7d731));function a134_0x2721(){const _0x415501=['confirmationDescription','trim','string','1023054fPybpf','1479663zZEpqx','6045720AwHKqg','181904UnkVKw','replace','171ByUcHo','risk','2EtpsHf','write','5207230lplvJs','high-risk-write','Run\x20this\x20write\x20operation','116ZNzLps','17673710XkrxTP','16285hPFrzx'];a134_0x2721=function(){return _0x415501;};return a134_0x2721();}const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildLovrabetConfirmationRequest(_0x28d675,_0x30b4c7,_0x4df4f0){const _0x412718=a134_0x3a8b,_0x11a498=normalizeText(_0x28d675[_0x412718(0x17b)],DESCRIPTION_MAX_LENGTH),_0x5564a5=normalizeText(_0x28d675['description'],DESCRIPTION_MAX_LENGTH);return{'operation':_0x30b4c7,'risk':requireWriteRisk(_0x28d675),'description':_0x11a498||_0x5564a5||_0x412718(0x177),..._0x4df4f0?{'signal':_0x4df4f0}:{}};}function requireWriteRisk(_0x309819){const _0x571433=a134_0x3a8b;if(_0x309819[_0x571433(0x172)]===_0x571433(0x174)||_0x309819[_0x571433(0x172)]===_0x571433(0x176))return _0x309819['risk'];throw new Error('Lovrabet\x20confirmation\x20requires\x20a\x20write\x20command.');}function normalizeText(_0x3a1498,_0x5a0374){const _0x2d0280=a134_0x3a8b;if(typeof _0x3a1498!==_0x2d0280(0x17d))return'';return _0x3a1498[_0x2d0280(0x170)](/[\u0000-\u001f\u007f]+/g,'\x20')['replace'](/\s+/g,'\x20')[_0x2d0280(0x17c)]()['slice'](0x0,_0x5a0374);}
@@ -1 +1 @@
1
- (function(_0x4817fc,_0x3f3977){const _0x16e7f0=a134_0x2bec,_0x1c5c5c=_0x4817fc();while(!![]){try{const _0x19f7e9=-parseInt(_0x16e7f0(0x9e))/0x1+-parseInt(_0x16e7f0(0x98))/0x2+parseInt(_0x16e7f0(0x9f))/0x3*(parseInt(_0x16e7f0(0xa4))/0x4)+-parseInt(_0x16e7f0(0x9b))/0x5+-parseInt(_0x16e7f0(0xa5))/0x6+parseInt(_0x16e7f0(0xa1))/0x7*(parseInt(_0x16e7f0(0x95))/0x8)+parseInt(_0x16e7f0(0x9d))/0x9*(parseInt(_0x16e7f0(0x9a))/0xa);if(_0x19f7e9===_0x3f3977)break;else _0x1c5c5c['push'](_0x1c5c5c['shift']());}catch(_0x40cbd3){_0x1c5c5c['push'](_0x1c5c5c['shift']());}}}(a134_0x25f2,0xbab44));export function canonicalLovrabetOperation(_0x1ba152){const _0x437106=a134_0x2bec;return[_0x1ba152[_0x437106(0xa0)],..._0x1ba152[_0x437106(0x96)][_0x437106(0xa2)]()[_0x437106(0x97)](/\s+/)]['filter'](Boolean)[_0x437106(0x94)]('.');}function a134_0x25f2(){const _0x1d905b=['314420OUlEZQ','2569165WCXBeA','high-risk-write','801oGHavo','893756TIATjI','2985pSeTYo','service','35RChykZ','trim','risk','152bTIAAh','5570406Ttswxw','join','532744ADGGCi','command','split','136766OxSZpO','writeEventSubject'];a134_0x25f2=function(){return _0x1d905b;};return a134_0x25f2();}function a134_0x2bec(_0xeebc2e,_0x2bda90){_0xeebc2e=_0xeebc2e-0x94;const _0x25f2d3=a134_0x25f2();let _0x2bece8=_0x25f2d3[_0xeebc2e];return _0x2bece8;}export function createLovrabetWriteMetadata(_0x40fc2d,_0xe91c51,_0x1ce69f,_0x459406){const _0x299a64=a134_0x2bec;if(_0x459406||_0x1ce69f['ok']!==!![]||_0x40fc2d[_0x299a64(0xa3)]!=='write'&&_0x40fc2d[_0x299a64(0xa3)]!==_0x299a64(0x9c))return undefined;const _0x4f50d7=_0x40fc2d[_0x299a64(0x99)]?.(_0x1ce69f),_0x93e0c7={'type':'lovrabet.write.completed','operation':_0xe91c51,'risk':_0x40fc2d['risk'],..._0x4f50d7?{'subject':_0x4f50d7}:{}};return{'lovrabet':{'schemaVersion':0x1,'event':_0x93e0c7}};}
1
+ (function(_0x563e92,_0x3552c5){const _0x2c370c=a135_0x3c0c,_0x29b31f=_0x563e92();while(!![]){try{const _0x500080=parseInt(_0x2c370c(0x116))/0x1*(-parseInt(_0x2c370c(0x114))/0x2)+parseInt(_0x2c370c(0x115))/0x3+-parseInt(_0x2c370c(0x11a))/0x4+parseInt(_0x2c370c(0x117))/0x5*(parseInt(_0x2c370c(0x11c))/0x6)+-parseInt(_0x2c370c(0x11b))/0x7*(-parseInt(_0x2c370c(0x118))/0x8)+-parseInt(_0x2c370c(0x122))/0x9+-parseInt(_0x2c370c(0x112))/0xa;if(_0x500080===_0x3552c5)break;else _0x29b31f['push'](_0x29b31f['shift']());}catch(_0x2b7257){_0x29b31f['push'](_0x29b31f['shift']());}}}(a135_0x19ff,0x81e6d));function a135_0x19ff(){const _0xea7a37=['high-risk-write','50MenzLB','2033487BsbLCY','14563oqMCqe','5iNIihH','392bfFmvH','join','1311600OaWEIK','115094cewjDO','2593236KgJpqm','risk','command','trim','lovrabet.write.completed','split','211833TqJUGQ','6681040HdpBpj'];a135_0x19ff=function(){return _0xea7a37;};return a135_0x19ff();}export function canonicalLovrabetOperation(_0x173f3b){const _0x3c8e04=a135_0x3c0c;return[_0x173f3b['service'],..._0x173f3b[_0x3c8e04(0x11e)][_0x3c8e04(0x11f)]()[_0x3c8e04(0x121)](/\s+/)]['filter'](Boolean)[_0x3c8e04(0x119)]('.');}function a135_0x3c0c(_0xd59a7a,_0x432c7e){_0xd59a7a=_0xd59a7a-0x112;const _0x19ff1a=a135_0x19ff();let _0x3c0cf3=_0x19ff1a[_0xd59a7a];return _0x3c0cf3;}export function createLovrabetWriteMetadata(_0x51df92,_0x1a4b1a,_0x2dd098,_0x5f2610){const _0x154bf3=a135_0x3c0c;if(_0x5f2610||_0x2dd098['ok']!==!![]||_0x51df92[_0x154bf3(0x11d)]!=='write'&&_0x51df92[_0x154bf3(0x11d)]!==_0x154bf3(0x113))return undefined;const _0x1cc214=_0x51df92['writeEventSubject']?.(_0x2dd098),_0x4830be={'type':_0x154bf3(0x120),'operation':_0x1a4b1a,'risk':_0x51df92['risk'],..._0x1cc214?{'subject':_0x1cc214}:{}};return{'lovrabet':{'schemaVersion':0x1,'event':_0x4830be}};}
@@ -1 +1 @@
1
- (function(_0x4a88d8,_0x33862b){const _0x553a7e=a135_0x43c0,_0x14bf2e=_0x4a88d8();while(!![]){try{const _0x49bd06=-parseInt(_0x553a7e(0x122))/0x1+parseInt(_0x553a7e(0x11f))/0x2+-parseInt(_0x553a7e(0x115))/0x3*(parseInt(_0x553a7e(0x135))/0x4)+parseInt(_0x553a7e(0x11b))/0x5*(-parseInt(_0x553a7e(0x125))/0x6)+-parseInt(_0x553a7e(0x12c))/0x7*(parseInt(_0x553a7e(0x134))/0x8)+parseInt(_0x553a7e(0x12b))/0x9*(parseInt(_0x553a7e(0x121))/0xa)+parseInt(_0x553a7e(0x124))/0xb;if(_0x49bd06===_0x33862b)break;else _0x14bf2e['push'](_0x14bf2e['shift']());}catch(_0x5685b5){_0x14bf2e['push'](_0x14bf2e['shift']());}}}(a135_0x2e57,0x9729f));import{buildConfigFromFlags,initGlobalEnvironment}from'../context.js';import{createLovrabetRunnerAdapter,createPipelineEnv,finalizeLovrabetRuntimeState,runCommand}from'../framework/runner.js';import{canonicalLovrabetOperation,createLovrabetWriteMetadata}from'../runtime/event.js';function a135_0x43c0(_0x3a85d2,_0x5bcedd){_0x3a85d2=_0x3a85d2-0x114;const _0x2e5715=a135_0x2e57();let _0x43c0c1=_0x2e5715[_0x3a85d2];return _0x43c0c1;}import{buildLovrabetConfirmationRequest}from'../runtime/confirmation.js';import{resolveLovrabetInvocation}from'../runtime/resolve.js';import{runSerialized}from'../runtime/queue.js';const defaultPresentation={'present'({result:_0xe36927,command:_0x15d846,risk:_0x36f8d1,dryRun:_0x5c2c0c}){const _0xa4c704=a135_0x43c0;return JSON[_0xa4c704(0x131)]({'ok':_0xe36927['ok'],'command':_0x15d846,'risk':_0x36f8d1,..._0x5c2c0c?{'dryRun':!![]}:{},..._0xe36927[_0xa4c704(0x11c)]!==undefined?{'data':_0xe36927[_0xa4c704(0x11c)]}:{},..._0xe36927[_0xa4c704(0x119)]?{'message':_0xe36927['message']}:{}});}};export async function invokeLovrabet(_0x3c93b8,_0x434a57){const _0x38edba=a135_0x43c0;throwIfAborted(_0x434a57[_0x38edba(0x136)]);const _0x43f9c5=await resolveLovrabetInvocation(_0x3c93b8),_0x1349e8=canonicalLovrabetOperation(_0x43f9c5[_0x38edba(0x12a)]);return await confirmWriteBeforeQueue(_0x43f9c5['definition'],_0x43f9c5[_0x38edba(0x128)],_0x1349e8,_0x434a57),runSerialized(async()=>{const _0x4d8fa6=_0x38edba;throwIfAborted(_0x434a57['signal']);const _0x1e6303={},_0x442207=buildConfigFromFlags(_0x43f9c5['rawFlags']);await initGlobalEnvironment(_0x442207);const _0x293f76=createPipelineEnv(_0x442207,{..._0x43f9c5[_0x4d8fa6(0x128)],'yes':_0x43f9c5[_0x4d8fa6(0x12a)]['risk']===_0x4d8fa6(0x116)?!![]:_0x43f9c5[_0x4d8fa6(0x128)]['yes'],'nonInteractive':!![]});_0x293f76['args']=_0x43f9c5[_0x4d8fa6(0x118)],_0x293f76['isNonInteractive']=!![],_0x293f76[_0x4d8fa6(0x114)]=_0x4d8fa6(0x116);const _0x1c3971=withAbortSignal(_0x43f9c5['definition'],_0x434a57[_0x4d8fa6(0x136)]),_0x426e28=createLovrabetRunnerAdapter({'formatOutput'(_0x4e6f02,_0x1eda62){const _0x62ad52=_0x4d8fa6;_0x1e6303[_0x62ad52(0x123)]=_0x4e6f02,_0x1e6303[_0x62ad52(0x137)]=_0x1eda62[_0x62ad52(0x137)],_0x1e6303['risk']=_0x1eda62['risk'],_0x1e6303[_0x62ad52(0x11a)]=_0x1eda62['format'],_0x1e6303[_0x62ad52(0x127)]=_0x1eda62[_0x62ad52(0x127)]===!![];},async 'confirmHighRisk'(){throw new Error('Embedded\x20Lovrabet\x20confirmation\x20must\x20run\x20inside\x20execute.');}});try{await runCommand(_0x1c3971,_0x293f76,_0x426e28);if(!_0x1e6303[_0x4d8fa6(0x123)]||!_0x1e6303['command']||!_0x1e6303[_0x4d8fa6(0x12e)]||!_0x1e6303[_0x4d8fa6(0x11a)])throw new Error(_0x4d8fa6(0x130));const _0x41371b=_0x434a57[_0x4d8fa6(0x133)]??defaultPresentation,_0x5365e8=_0x1e6303[_0x4d8fa6(0x127)]===!![],_0xc5c485={'result':_0x1e6303['result'],'command':_0x1e6303[_0x4d8fa6(0x137)],'operation':_0x1349e8,'risk':_0x1e6303['risk'],'format':_0x1e6303[_0x4d8fa6(0x11a)],'dryRun':_0x5365e8},_0x14fbea=createLovrabetWriteMetadata(_0x43f9c5[_0x4d8fa6(0x12a)],_0x1349e8,_0x1e6303[_0x4d8fa6(0x123)],_0x5365e8);let _0x445aaf;try{_0x445aaf=await _0x41371b[_0x4d8fa6(0x132)](_0xc5c485);}catch(_0x3b4cda){if(!_0x14fbea||_0x41371b===defaultPresentation)throw _0x3b4cda;_0x445aaf=await defaultPresentation[_0x4d8fa6(0x132)](_0xc5c485);}return{'operation':_0x1349e8,'risk':_0x1e6303[_0x4d8fa6(0x12e)],'mode':_0x5365e8?_0x4d8fa6(0x126):_0x4d8fa6(0x120),'result':_0x1e6303[_0x4d8fa6(0x123)],'output':_0x445aaf,..._0x14fbea?{'metadata':_0x14fbea}:{}};}finally{await finalizeLovrabetRuntimeState();}});}async function confirmWriteBeforeQueue(_0x142518,_0x567d48,_0x286db7,_0x225a80){const _0x4ec605=a135_0x43c0;if(_0x567d48['dryRun']===!![]||_0x142518[_0x4ec605(0x12e)]!==_0x4ec605(0x12d)&&_0x142518[_0x4ec605(0x12e)]!=='high-risk-write')return;await _0x225a80[_0x4ec605(0x11d)][_0x4ec605(0x12f)](buildLovrabetConfirmationRequest(_0x142518,_0x286db7,_0x225a80[_0x4ec605(0x136)]));}function withAbortSignal(_0x579ec3,_0x255a61){return{..._0x579ec3,async 'execute'(_0xec0492){const _0x407d1a=a135_0x43c0;return throwIfAborted(_0x255a61),_0x579ec3[_0x407d1a(0x120)]({..._0xec0492,'signal':_0x255a61});}};}function throwIfAborted(_0x11570d){const _0x28a479=a135_0x43c0;if(_0x11570d?.[_0x28a479(0x129)])throw _0x11570d[_0x28a479(0x138)]instanceof Error?_0x11570d[_0x28a479(0x138)]:new DOMException(_0x28a479(0x117),_0x28a479(0x11e));}function a135_0x2e57(){const _0x5468f9=['signal','command','reason','riskLevel','1410GwVlJO','high-risk-write','Lovrabet\x20invocation\x20aborted.','args','message','format','30jeMpDK','data','confirmation','AbortError','845004ndSDyD','execute','270540LTgWDC','139303vHKiaP','result','9607004lEVNjT','838668pwMkID','dry-run','dryRun','rawFlags','aborted','definition','261TYrksN','14JIznEC','write','risk','confirm','Lovrabet\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','stringify','present','presentation','1344736ZGIhXN','1252cCcayj'];a135_0x2e57=function(){return _0x5468f9;};return a135_0x2e57();}
1
+ (function(_0xd77350,_0x379e90){const _0x2ad0f4=a136_0x5621,_0xb3d706=_0xd77350();while(!![]){try{const _0x9aedc6=-parseInt(_0x2ad0f4(0x1c6))/0x1*(parseInt(_0x2ad0f4(0x1d8))/0x2)+parseInt(_0x2ad0f4(0x1d6))/0x3+-parseInt(_0x2ad0f4(0x1c8))/0x4*(parseInt(_0x2ad0f4(0x1cd))/0x5)+parseInt(_0x2ad0f4(0x1ca))/0x6+-parseInt(_0x2ad0f4(0x1e3))/0x7+-parseInt(_0x2ad0f4(0x1cf))/0x8*(parseInt(_0x2ad0f4(0x1e6))/0x9)+parseInt(_0x2ad0f4(0x1d9))/0xa*(parseInt(_0x2ad0f4(0x1da))/0xb);if(_0x9aedc6===_0x379e90)break;else _0xb3d706['push'](_0xb3d706['shift']());}catch(_0x5d27a5){_0xb3d706['push'](_0xb3d706['shift']());}}}(a136_0x5758,0x1feb8));import{buildConfigFromFlags,initGlobalEnvironment}from'../context.js';import{createLovrabetRunnerAdapter,createPipelineEnv,finalizeLovrabetRuntimeState,runCommand}from'../framework/runner.js';function a136_0x5758(){const _0x1c2d11=['execute','high-risk-write','present','dry-run','723249RReMsY','args','15930yilEPW','3314130JbBDAi','11CWRrrQ','dryRun','signal','AbortError','isNonInteractive','Embedded\x20Lovrabet\x20confirmation\x20must\x20run\x20inside\x20execute.','format','reason','Lovrabet\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','867797SShHbe','yes','definition','1651257cQUimo','confirmation','aborted','result','presentation','3NBjCyh','risk','8BaJviE','data','117270UTdOBq','write','message','324895yMniRR','confirm','8MVvjHc','command','rawFlags'];a136_0x5758=function(){return _0x1c2d11;};return a136_0x5758();}import{canonicalLovrabetOperation,createLovrabetWriteMetadata}from'../runtime/event.js';import{buildLovrabetConfirmationRequest}from'../runtime/confirmation.js';import{resolveLovrabetInvocation}from'../runtime/resolve.js';import{runSerialized}from'../runtime/queue.js';const defaultPresentation={'present'({result:_0x25fde5,command:_0x41fa54,risk:_0x50bf2b,dryRun:_0x1bf145}){const _0x366391=a136_0x5621;return JSON['stringify']({'ok':_0x25fde5['ok'],'command':_0x41fa54,'risk':_0x50bf2b,..._0x1bf145?{'dryRun':!![]}:{},..._0x25fde5[_0x366391(0x1c9)]!==undefined?{'data':_0x25fde5[_0x366391(0x1c9)]}:{},..._0x25fde5[_0x366391(0x1cc)]?{'message':_0x25fde5[_0x366391(0x1cc)]}:{}});}};export async function invokeLovrabet(_0x14ae2a,_0x343207){const _0x175717=a136_0x5621;throwIfAborted(_0x343207['signal']);const _0x15946b=await resolveLovrabetInvocation(_0x14ae2a),_0x452f0b=canonicalLovrabetOperation(_0x15946b['definition']);return await confirmWriteBeforeQueue(_0x15946b[_0x175717(0x1e5)],_0x15946b['rawFlags'],_0x452f0b,_0x343207),runSerialized(async()=>{const _0x2f69bc=_0x175717;throwIfAborted(_0x343207[_0x2f69bc(0x1dc)]);const _0x44c350={},_0x357191=buildConfigFromFlags(_0x15946b['rawFlags']);await initGlobalEnvironment(_0x357191);const _0x2da77e=createPipelineEnv(_0x357191,{..._0x15946b[_0x2f69bc(0x1d1)],'yes':_0x15946b[_0x2f69bc(0x1e5)][_0x2f69bc(0x1c7)]===_0x2f69bc(0x1d3)?!![]:_0x15946b[_0x2f69bc(0x1d1)][_0x2f69bc(0x1e4)],'nonInteractive':!![]});_0x2da77e['args']=_0x15946b[_0x2f69bc(0x1d7)],_0x2da77e[_0x2f69bc(0x1de)]=!![],_0x2da77e['riskLevel']='high-risk-write';const _0x57858c=withAbortSignal(_0x15946b[_0x2f69bc(0x1e5)],_0x343207[_0x2f69bc(0x1dc)]),_0x2f0eb6=createLovrabetRunnerAdapter({'formatOutput'(_0x449b0d,_0x2a2eeb){const _0xa1de9e=_0x2f69bc;_0x44c350['result']=_0x449b0d,_0x44c350['command']=_0x2a2eeb[_0xa1de9e(0x1d0)],_0x44c350[_0xa1de9e(0x1c7)]=_0x2a2eeb['risk'],_0x44c350[_0xa1de9e(0x1e0)]=_0x2a2eeb['format'],_0x44c350[_0xa1de9e(0x1db)]=_0x2a2eeb['dryRun']===!![];},async 'confirmHighRisk'(){const _0x53fd05=_0x2f69bc;throw new Error(_0x53fd05(0x1df));}});try{await runCommand(_0x57858c,_0x2da77e,_0x2f0eb6);if(!_0x44c350[_0x2f69bc(0x1e9)]||!_0x44c350[_0x2f69bc(0x1d0)]||!_0x44c350[_0x2f69bc(0x1c7)]||!_0x44c350[_0x2f69bc(0x1e0)])throw new Error(_0x2f69bc(0x1e2));const _0x515a16=_0x343207[_0x2f69bc(0x1ea)]??defaultPresentation,_0x5df974=_0x44c350[_0x2f69bc(0x1db)]===!![],_0x3d7ca3={'result':_0x44c350[_0x2f69bc(0x1e9)],'command':_0x44c350[_0x2f69bc(0x1d0)],'operation':_0x452f0b,'risk':_0x44c350[_0x2f69bc(0x1c7)],'format':_0x44c350['format'],'dryRun':_0x5df974},_0x530cd3=createLovrabetWriteMetadata(_0x15946b[_0x2f69bc(0x1e5)],_0x452f0b,_0x44c350[_0x2f69bc(0x1e9)],_0x5df974);let _0xaaf62a;try{_0xaaf62a=await _0x515a16[_0x2f69bc(0x1d4)](_0x3d7ca3);}catch(_0x160e5d){if(!_0x530cd3||_0x515a16===defaultPresentation)throw _0x160e5d;_0xaaf62a=await defaultPresentation['present'](_0x3d7ca3);}return{'operation':_0x452f0b,'risk':_0x44c350[_0x2f69bc(0x1c7)],'mode':_0x5df974?_0x2f69bc(0x1d5):'execute','result':_0x44c350[_0x2f69bc(0x1e9)],'output':_0xaaf62a,..._0x530cd3?{'metadata':_0x530cd3}:{}};}finally{await finalizeLovrabetRuntimeState();}});}async function confirmWriteBeforeQueue(_0x41b40e,_0x57bce8,_0x489c7a,_0x558433){const _0x30b3ab=a136_0x5621;if(_0x57bce8['dryRun']===!![]||_0x41b40e[_0x30b3ab(0x1c7)]!==_0x30b3ab(0x1cb)&&_0x41b40e[_0x30b3ab(0x1c7)]!==_0x30b3ab(0x1d3))return;await _0x558433[_0x30b3ab(0x1e7)][_0x30b3ab(0x1ce)](buildLovrabetConfirmationRequest(_0x41b40e,_0x489c7a,_0x558433[_0x30b3ab(0x1dc)]));}function a136_0x5621(_0x232d3b,_0x17795c){_0x232d3b=_0x232d3b-0x1c6;const _0x5758dc=a136_0x5758();let _0x5621ad=_0x5758dc[_0x232d3b];return _0x5621ad;}function withAbortSignal(_0x112843,_0xcf621e){return{..._0x112843,async 'execute'(_0x232c74){const _0x4632a6=a136_0x5621;return throwIfAborted(_0xcf621e),_0x112843[_0x4632a6(0x1d2)]({..._0x232c74,'signal':_0xcf621e});}};}function throwIfAborted(_0x2ff45a){const _0x3290af=a136_0x5621;if(_0x2ff45a?.[_0x3290af(0x1e8)])throw _0x2ff45a[_0x3290af(0x1e1)]instanceof Error?_0x2ff45a[_0x3290af(0x1e1)]:new DOMException('Lovrabet\x20invocation\x20aborted.',_0x3290af(0x1dd));}
@@ -1 +1 @@
1
- function a136_0x1b2a(){const _0x213419=['2973756TYkdHd','704804lYhIkY','resolve','47836xNnnBr','catch','1429911RfFAaK','12dAQZME','176427EgWBqM','48vssRSI','406787kTbeEY','1893960FkoSUB'];a136_0x1b2a=function(){return _0x213419;};return a136_0x1b2a();}const a136_0x123d56=a136_0x1ae1;(function(_0x3c758c,_0x5e8b48){const _0x36a456=a136_0x1ae1,_0x262e65=_0x3c758c();while(!![]){try{const _0x16bc78=parseInt(_0x36a456(0xa3))/0x1+-parseInt(_0x36a456(0xa8))/0x2*(parseInt(_0x36a456(0xab))/0x3)+parseInt(_0x36a456(0xa6))/0x4+-parseInt(_0x36a456(0xa4))/0x5+parseInt(_0x36a456(0xa5))/0x6+-parseInt(_0x36a456(0xaa))/0x7+-parseInt(_0x36a456(0xa2))/0x8*(parseInt(_0x36a456(0xac))/0x9);if(_0x16bc78===_0x5e8b48)break;else _0x262e65['push'](_0x262e65['shift']());}catch(_0x52a152){_0x262e65['push'](_0x262e65['shift']());}}}(a136_0x1b2a,0x44e93));let tail=Promise[a136_0x123d56(0xa7)]();function a136_0x1ae1(_0x52c165,_0x349d92){_0x52c165=_0x52c165-0xa2;const _0x1b2ac4=a136_0x1b2a();let _0x1ae139=_0x1b2ac4[_0x52c165];return _0x1ae139;}export async function runSerialized(_0x2aeaf0){const _0x113216=a136_0x123d56,_0x18345b=tail;let _0x53f956;tail=new Promise(_0x23a565=>{_0x53f956=_0x23a565;}),await _0x18345b[_0x113216(0xa9)](()=>undefined);try{return await _0x2aeaf0();}finally{_0x53f956();}}
1
+ (function(_0xd80d5,_0x512b7a){const _0x323927=a137_0x4eae,_0x5bc680=_0xd80d5();while(!![]){try{const _0x27be85=-parseInt(_0x323927(0x170))/0x1*(-parseInt(_0x323927(0x16d))/0x2)+parseInt(_0x323927(0x173))/0x3*(parseInt(_0x323927(0x172))/0x4)+-parseInt(_0x323927(0x176))/0x5+parseInt(_0x323927(0x175))/0x6*(-parseInt(_0x323927(0x16f))/0x7)+-parseInt(_0x323927(0x16b))/0x8+-parseInt(_0x323927(0x171))/0x9*(parseInt(_0x323927(0x16c))/0xa)+parseInt(_0x323927(0x174))/0xb;if(_0x27be85===_0x512b7a)break;else _0x5bc680['push'](_0x5bc680['shift']());}catch(_0x31d36b){_0x5bc680['push'](_0x5bc680['shift']());}}}(a137_0xa43b,0x23936));function a137_0xa43b(){const _0x4814b8=['734592BZucsZ','637210ytIHmg','11182HjqJRl','catch','7ZyXiAn','39iAkPJU','18tmHYVk','4IJoNxJ','552822ylDGWA','2638251mRBRoN','438078SgyKfM','1020835VgNZXB'];a137_0xa43b=function(){return _0x4814b8;};return a137_0xa43b();}function a137_0x4eae(_0xdf2514,_0x313cfc){_0xdf2514=_0xdf2514-0x16b;const _0xa43b2b=a137_0xa43b();let _0x4eae93=_0xa43b2b[_0xdf2514];return _0x4eae93;}let tail=Promise['resolve']();export async function runSerialized(_0x408da6){const _0x3c501d=a137_0x4eae,_0x2adc71=tail;let _0x43bd88;tail=new Promise(_0x2cd3ce=>{_0x43bd88=_0x2cd3ce;}),await _0x2adc71[_0x3c501d(0x16e)](()=>undefined);try{return await _0x408da6();}finally{_0x43bd88();}}
@@ -1 +1 @@
1
- (function(_0x296581,_0x463b0a){const _0x3ddc97=a137_0x19bb,_0x516976=_0x296581();while(!![]){try{const _0x166493=parseInt(_0x3ddc97(0xcc))/0x1+-parseInt(_0x3ddc97(0xb9))/0x2+parseInt(_0x3ddc97(0xc9))/0x3*(-parseInt(_0x3ddc97(0xbf))/0x4)+parseInt(_0x3ddc97(0xba))/0x5*(-parseInt(_0x3ddc97(0xce))/0x6)+parseInt(_0x3ddc97(0xcd))/0x7*(-parseInt(_0x3ddc97(0xc7))/0x8)+-parseInt(_0x3ddc97(0xbb))/0x9*(-parseInt(_0x3ddc97(0xc3))/0xa)+parseInt(_0x3ddc97(0xbd))/0xb;if(_0x166493===_0x463b0a)break;else _0x516976['push'](_0x516976['shift']());}catch(_0x4a01cd){_0x516976['push'](_0x516976['shift']());}}}(a137_0x3bdc,0xdc4e1));import a137_0x1400b6 from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';function a137_0x19bb(_0x22d92f,_0x14e3b0){_0x22d92f=_0x22d92f-0xb7;const _0x3bdcaf=a137_0x3bdc();let _0x19bbba=_0x3bdcaf[_0x22d92f];return _0x19bbba;}import{resolveDynamicServiceCommand}from'../commands/service/dynamic.js';function a137_0x3bdc(){const _0x5abe59=['1213956vWpNkK','assign','24134572cHYgzg','defaultCommand','4wSOkzF','flags','../commands/registry.js','hint','20RrULNy','unknownCommand','join','../framework/preparse.js','10772664ERKJde','validation','1148622AjZzNj','flatMap','input','1754204mrVfbd','7XyARMd','1446raUHxS','message','slice','627436Olickh','26400rFZpoy'];a137_0x3bdc=function(){return _0x5abe59;};return a137_0x3bdc();}import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';export async function resolveLovrabetInvocation(_0x4f9763){const _0x5744d6=a137_0x19bb,_0x522ebc=a137_0x1400b6('',{'importMeta':import.meta,'argv':_0x4f9763,'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x1bb94d=[..._0x522ebc[_0x5744d6(0xcb)]],_0x580819=_0x522ebc['flags'];await correctFlags(_0x580819);const _0x3f786f=_0x1bb94d[0x0];if(!_0x3f786f)throw CliErrors[_0x5744d6(0xc8)]('Lovrabet\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.');const _0x2f2e98=resolveRemovedCommand(_0x3f786f,_0x1bb94d[0x1]);if(_0x2f2e98)throw CliErrors[_0x5744d6(0xc8)](_0x2f2e98[_0x5744d6(0xb7)],_0x2f2e98[_0x5744d6(0xc2)]);if(!isKnownService(_0x3f786f)){const _0x5001cf=resolveDynamicServiceCommand(_0x1bb94d,_0x580819);if(!_0x5001cf)throw CliErrors[_0x5744d6(0xc4)](_0x1bb94d[_0x5744d6(0xc5)]('\x20'));return Object[_0x5744d6(0xbc)](_0x580819,_0x5001cf['flags']),{'definition':_0x5001cf['definition'],'rawFlags':_0x580819,'args':_0x5001cf['args']};}const _0x26d098=getServiceEntry(_0x3f786f),_0x124c32=_0x1bb94d[0x1]||_0x26d098[_0x5744d6(0xbe)];if(!_0x124c32)throw CliErrors[_0x5744d6(0xc8)]('Lovrabet\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22'+_0x3f786f+'\x22.');const _0x4b395f=findDefinition(_0x3f786f,_0x124c32);if(!_0x4b395f)throw CliErrors[_0x5744d6(0xc4)](_0x3f786f+'\x20'+_0x124c32);return{'definition':_0x4b395f,'rawFlags':_0x580819,'args':_0x1bb94d[_0x5744d6(0xb8)](0x2)};}async function correctFlags(_0x3d6a46){const _0x31bf5f=a137_0x19bb;try{const {correctFlags:_0x5866e2}=await import(_0x31bf5f(0xc6)),{getAllDefinitions:_0x162c2f}=await import(_0x31bf5f(0xc1)),_0x55fe6d=_0x162c2f()[_0x31bf5f(0xca)](_0x102332=>_0x102332['flags']??[]),_0x58a663=_0x5866e2(_0x3d6a46,_0x55fe6d);Object['assign'](_0x3d6a46,_0x58a663[_0x31bf5f(0xc0)]);}catch{}}
1
+ (function(_0xe5e9af,_0x5c5bde){const _0x32b495=a138_0x60a3,_0x199308=_0xe5e9af();while(!![]){try{const _0x1a07c0=-parseInt(_0x32b495(0xdd))/0x1+parseInt(_0x32b495(0xd6))/0x2+-parseInt(_0x32b495(0xe0))/0x3*(parseInt(_0x32b495(0xd0))/0x4)+parseInt(_0x32b495(0xd3))/0x5+-parseInt(_0x32b495(0xd8))/0x6*(parseInt(_0x32b495(0xd1))/0x7)+parseInt(_0x32b495(0xe3))/0x8*(parseInt(_0x32b495(0xde))/0x9)+parseInt(_0x32b495(0xe4))/0xa*(parseInt(_0x32b495(0xce))/0xb);if(_0x1a07c0===_0x5c5bde)break;else _0x199308['push'](_0x199308['shift']());}catch(_0x5a0487){_0x199308['push'](_0x199308['shift']());}}}(a138_0x59bd,0x5f0e1));import a138_0xb518ef from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';function a138_0x60a3(_0x98c68d,_0x4eeeb1){_0x98c68d=_0x98c68d-0xce;const _0x59bd88=a138_0x59bd();let _0x60a3a2=_0x59bd88[_0x98c68d];return _0x60a3a2;}import{resolveDynamicServiceCommand}from'../commands/service/dynamic.js';import{buildMeowFlags}from'../constant/cli.js';function a138_0x59bd(){const _0x1e04c1=['163512ihtZxl','75080IRPtwf','assign','unknownCommand','flatMap','Lovrabet\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','1386jwIpjb','hint','621652GKXHXc','220122bNpOGc','args','2717075XcPElN','definition','join','391020vDoIEQ','flags','6SbnIWD','message','Lovrabet\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','validation','input','671028GXCbBL','81TKvUhj','slice','15Eubyux','../framework/preparse.js','../commands/registry.js'];a138_0x59bd=function(){return _0x1e04c1;};return a138_0x59bd();}import{CliErrors}from'../errors.js';export async function resolveLovrabetInvocation(_0x48bf81){const _0x5d632b=a138_0x60a3,_0x5cd209=a138_0xb518ef('',{'importMeta':import.meta,'argv':_0x48bf81,'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x52f691=[..._0x5cd209[_0x5d632b(0xdc)]],_0x319ae7=_0x5cd209[_0x5d632b(0xd7)];await correctFlags(_0x319ae7);const _0xb7b4f3=_0x52f691[0x0];if(!_0xb7b4f3)throw CliErrors[_0x5d632b(0xdb)](_0x5d632b(0xe8));const _0x469471=resolveRemovedCommand(_0xb7b4f3,_0x52f691[0x1]);if(_0x469471)throw CliErrors[_0x5d632b(0xdb)](_0x469471[_0x5d632b(0xd9)],_0x469471[_0x5d632b(0xcf)]);if(!isKnownService(_0xb7b4f3)){const _0x46fa23=resolveDynamicServiceCommand(_0x52f691,_0x319ae7);if(!_0x46fa23)throw CliErrors[_0x5d632b(0xe6)](_0x52f691[_0x5d632b(0xd5)]('\x20'));return Object[_0x5d632b(0xe5)](_0x319ae7,_0x46fa23[_0x5d632b(0xd7)]),{'definition':_0x46fa23[_0x5d632b(0xd4)],'rawFlags':_0x319ae7,'args':_0x46fa23[_0x5d632b(0xd2)]};}const _0x2818be=getServiceEntry(_0xb7b4f3),_0x24512c=_0x52f691[0x1]||_0x2818be['defaultCommand'];if(!_0x24512c)throw CliErrors[_0x5d632b(0xdb)](_0x5d632b(0xda)+_0xb7b4f3+'\x22.');const _0x1cd046=findDefinition(_0xb7b4f3,_0x24512c);if(!_0x1cd046)throw CliErrors[_0x5d632b(0xe6)](_0xb7b4f3+'\x20'+_0x24512c);return{'definition':_0x1cd046,'rawFlags':_0x319ae7,'args':_0x52f691[_0x5d632b(0xdf)](0x2)};}async function correctFlags(_0x31e516){const _0x586075=a138_0x60a3;try{const {correctFlags:_0x4289cc}=await import(_0x586075(0xe1)),{getAllDefinitions:_0x173876}=await import(_0x586075(0xe2)),_0x3d8a81=_0x173876()[_0x586075(0xe7)](_0x5e9887=>_0x5e9887['flags']??[]),_0x6086c0=_0x4289cc(_0x31e516,_0x3d8a81);Object[_0x586075(0xe5)](_0x31e516,_0x6086c0[_0x586075(0xd7)]);}catch{}}
@@ -1 +1 @@
1
- const a139_0x40634e=a139_0x5269;(function(_0x2be01b,_0x22df6c){const _0x25a1d3=a139_0x5269,_0x103637=_0x2be01b();while(!![]){try{const _0x2435bf=parseInt(_0x25a1d3(0x13e))/0x1*(parseInt(_0x25a1d3(0x161))/0x2)+parseInt(_0x25a1d3(0x157))/0x3+-parseInt(_0x25a1d3(0x149))/0x4+parseInt(_0x25a1d3(0x11d))/0x5+-parseInt(_0x25a1d3(0x14c))/0x6*(-parseInt(_0x25a1d3(0x14e))/0x7)+parseInt(_0x25a1d3(0x137))/0x8*(parseInt(_0x25a1d3(0x13d))/0x9)+parseInt(_0x25a1d3(0x15f))/0xa*(-parseInt(_0x25a1d3(0x153))/0xb);if(_0x2435bf===_0x22df6c)break;else _0x103637['push'](_0x103637['shift']());}catch(_0x277f10){_0x103637['push'](_0x103637['shift']());}}}(a139_0x1cf1,0xc98e2));import{randomBytes,randomUUID}from'node:crypto';import{lstat,readFile}from'node:fs/promises';function a139_0x5269(_0x4af72b,_0x2ebbf6){_0x4af72b=_0x4af72b-0x111;const _0x1cf1df=a139_0x1cf1();let _0x52696a=_0x1cf1df[_0x4af72b];return _0x52696a;}function a139_0x1cf1(){const _0x1be915=['emptyRows','datasetCode','length','Import\x20checkpoint\x20contains\x20a\x20content\x20conflict.','pending','1864asiQbu','version','add','schemaHash','message','map','19323dSEtUh','5SYYfLj','rows','completed','strategy','includes','number','unknown','size','Import\x20task\x20marker\x20collision;\x20stop\x20without\x20replacing\x20the\x20marker.','toString','byteLength','962860BitAFh','Auto-ID\x20import\x20items\x20cannot\x20contain\x20a\x20primary\x20key.','mappingHash','66FLKxtV','Invalid\x20write\x20result.','122668eCzYTw','status','resume','values','The\x20auto-ID\x20runner\x20requires\x20the\x20v2\x20task\x20readback\x20contract.','34339602BSApCJ','succeeded','checkpoint','has','2129919bcmZAv','elapsedMs','rowIndexes','Excel\x20contains\x20no\x20valid\x20data\x20rows.','some','Previously\x20imported\x20records\x20are\x20no\x20longer\x20visible;\x20recovery\x20conflict.','Import\x20generated\x20ID\x20conflict.','runtimeDomain','10heQjrZ','importId','595624ywKJfF','count','uploadFields','isInteger','Import\x20checkpoint\x20already\x20exists;\x20use\x20--resume.','The\x20import\x20write\x20outcome\x20is\x20unknown.\x20Resume\x20to\x20reconcile\x20the\x20original\x20task\x20marker\x20before\x20continuing.','rowNumber','ENOENT','report','Import\x20content\x20conflict\x20at\x20Excel\x20row\x20','batchSize','appCode','flatMap','onCheckpointReady','conflict','code','unsent','utf8','6480095EngQrm','now','hasOwn','imageFields','hex','write','ids','fileHash','warnings','filter','schemaFingerprint','Invalid\x20import\x20batch\x20size.','Excel\x20row\x20','maxBatchBytes','batches','taskId','Excel\x20contains\x20invalid\x20rows;\x20no\x20data\x20was\x20written.','Import\x20generated\x20ID\x20collision.','push','isArray','sheet'];a139_0x1cf1=function(){return _0x1be915;};return a139_0x1cf1();}import{acquireLock,assertImportContract,assertImportPaths,canonical,sameImportValue,resolveImportOutputPath,saveImportJson}from'./runner.js';const validId=_0x501f72=>typeof _0x501f72===a139_0x40634e(0x143)&&Number['isSafeInteger'](_0x501f72)&&_0x501f72>0x0;export async function runAutoIdExcelImport(_0x33dd30){const _0x33f78f=a139_0x40634e,_0x3d8d72={..._0x33dd30,'checkpoint':await resolveImportOutputPath(_0x33dd30['checkpoint']),'report':await resolveImportOutputPath(_0x33dd30[_0x33f78f(0x113)])},{manifest:_0xacb579,contract:_0x2d89a7,api:_0x21b63c}=_0x3d8d72;assertImportContract(_0x2d89a7,_0x3d8d72[_0x33f78f(0x116)],_0x3d8d72[_0x33f78f(0x133)]);if(_0x2d89a7['schemaVersion']!==0x2||!_0x21b63c['readTask'])throw Error(_0x33f78f(0x152));if(_0xacb579['errors'][_0x33f78f(0x134)])throw Error(_0x33f78f(0x12d));if(!_0xacb579['rows']['length'])throw Error(_0x33f78f(0x15a));if(!Number[_0x33f78f(0x164)](_0x3d8d72['batchSize'])||_0x3d8d72['batchSize']<0x1||_0x3d8d72[_0x33f78f(0x115)]>_0x2d89a7['maxBatchSize'])throw Error(_0x33f78f(0x128));assertImportPaths(_0x3d8d72['checkpoint'],_0x3d8d72[_0x33f78f(0x113)]);if(_0xacb579['rows'][_0x33f78f(0x15b)](_0x4c9e29=>Object[_0x33f78f(0x11f)](_0x4c9e29[_0x33f78f(0x151)],'id')))throw Error(_0x33f78f(0x14a));const _0xa4e440=(_0x40f70a,_0x25bb21)=>Buffer[_0x33f78f(0x148)](JSON['stringify']({'schemaFingerprint':_0x2d89a7[_0x33f78f(0x127)],'taskId':_0x25bb21,'items':_0x40f70a[_0x33f78f(0x13c)](_0x1e6996=>_0xacb579[_0x33f78f(0x13f)][_0x1e6996][_0x33f78f(0x151)])}),'utf8'),_0x270a8c=[];let _0x2224a8=[];for(let _0xccd768=0x0;_0xccd768<_0xacb579[_0x33f78f(0x13f)][_0x33f78f(0x134)];_0xccd768++){if(_0xa4e440([_0xccd768],0x2**0x34)>_0x2d89a7['maxBatchBytes'])throw Error(_0x33f78f(0x129)+_0xacb579[_0x33f78f(0x13f)][_0xccd768][_0x33f78f(0x111)]+'\x20exceeds\x20the\x20import\x20request\x20size\x20limit.');_0x2224a8[_0x33f78f(0x134)]&&(_0x2224a8['length']===_0x3d8d72['batchSize']||_0xa4e440([..._0x2224a8,_0xccd768],0x2**0x34)>_0x2d89a7[_0x33f78f(0x12a)])&&(_0x270a8c['push'](_0x2224a8),_0x2224a8=[]),_0x2224a8[_0x33f78f(0x12f)](_0xccd768);}if(_0x2224a8[_0x33f78f(0x134)])_0x270a8c[_0x33f78f(0x12f)](_0x2224a8);const _0x3b9ec9={'appCode':_0x3d8d72[_0x33f78f(0x116)],'datasetCode':_0x3d8d72[_0x33f78f(0x133)],'runtimeDomain':_0x3d8d72[_0x33f78f(0x15e)],'actorId':_0x2d89a7['actorId'],'fileHash':_0xacb579[_0x33f78f(0x124)],'mappingHash':_0xacb579[_0x33f78f(0x14b)],'schemaHash':_0xacb579[_0x33f78f(0x13a)],'remoteSchemaHash':_0x2d89a7[_0x33f78f(0x127)],'batchSize':_0x3d8d72[_0x33f78f(0x115)],'maxBatchBytes':_0x2d89a7[_0x33f78f(0x12a)],'sheet':_0xacb579[_0x33f78f(0x131)],'strategy':_0x2d89a7[_0x33f78f(0x141)]},_0x76acf9=await acquireLock(_0x3d8d72[_0x33f78f(0x155)]);let _0x3dae5c;const _0x1bda0c=Date[_0x33f78f(0x11e)]();let _0x4871a7=0x0;const _0xf5d8ec=[],_0x4dbc57=_0xbbb743=>_0x3dae5c?.[_0x33f78f(0x12b)][_0x33f78f(0x126)](_0x452f3e=>_0x452f3e['status']===_0xbbb743)['reduce']((_0x49580a,_0xc64639)=>_0x49580a+_0xc64639[_0x33f78f(0x159)][_0x33f78f(0x134)],0x0)??0x0,_0x377c86=()=>({'importId':_0x3dae5c?.[_0x33f78f(0x160)],'sourceRows':_0xacb579[_0x33f78f(0x13f)][_0x33f78f(0x134)],'emptyRows':_0xacb579[_0x33f78f(0x132)][_0x33f78f(0x134)],'succeeded':_0x4dbc57('succeeded'),'unknown':_0x4dbc57(_0x33f78f(0x136)),'conflicts':_0x4dbc57(_0x33f78f(0x119)),'notAttempted':_0x4dbc57(_0x33f78f(0x11b)),'batches':_0x4871a7,'batchResults':_0xf5d8ec,'elapsedMs':Date[_0x33f78f(0x11e)]()-_0x1bda0c,'checkpoint':_0x3d8d72['checkpoint'],'report':_0x3d8d72[_0x33f78f(0x113)],'warnings':_0xacb579[_0x33f78f(0x125)]});try{if(_0x3d8d72[_0x33f78f(0x150)]){try{_0x3dae5c=JSON['parse'](await readFile(_0x3d8d72[_0x33f78f(0x155)],_0x33f78f(0x11c)));}catch{throw Error('Cannot\x20read\x20the\x20import\x20checkpoint.');}if(!_0x3dae5c||_0x3dae5c[_0x33f78f(0x138)]!==0x2||typeof _0x3dae5c[_0x33f78f(0x160)]!=='string'||!_0x3dae5c[_0x33f78f(0x160)]||canonical(_0x3dae5c['binding'])!==canonical(_0x3b9ec9)||!Array[_0x33f78f(0x130)](_0x3dae5c[_0x33f78f(0x12b)])||_0x3dae5c[_0x33f78f(0x12b)][_0x33f78f(0x134)]!==_0x270a8c['length']||new Set(_0x3dae5c[_0x33f78f(0x12b)][_0x33f78f(0x13c)](_0x92c8dd=>_0x92c8dd[_0x33f78f(0x12c)]))['size']!==_0x270a8c[_0x33f78f(0x134)]||_0x3dae5c[_0x33f78f(0x12b)][_0x33f78f(0x15b)]((_0xdda761,_0x383978)=>!validId(_0xdda761['taskId'])||_0xdda761[_0x33f78f(0x12c)]>0x2**0x34||canonical(_0xdda761[_0x33f78f(0x159)])!==canonical(_0x270a8c[_0x383978])||!['unsent','pending',_0x33f78f(0x154),_0x33f78f(0x119)][_0x33f78f(0x142)](_0xdda761[_0x33f78f(0x14f)])||!Array[_0x33f78f(0x130)](_0xdda761[_0x33f78f(0x123)])||_0xdda761[_0x33f78f(0x123)][_0x33f78f(0x15b)](_0x5ddd69=>!validId(_0x5ddd69))||new Set(_0xdda761[_0x33f78f(0x123)])[_0x33f78f(0x145)]!==_0xdda761[_0x33f78f(0x123)][_0x33f78f(0x134)]||_0xdda761['ids'][_0x33f78f(0x134)]!==0x0&&_0xdda761[_0x33f78f(0x123)][_0x33f78f(0x134)]!==_0xdda761['rowIndexes']['length']||_0xdda761[_0x33f78f(0x14f)]==='succeeded'&&_0xdda761['ids'][_0x33f78f(0x134)]!==_0xdda761[_0x33f78f(0x159)][_0x33f78f(0x134)]||_0xdda761[_0x33f78f(0x14f)]===_0x33f78f(0x11b)&&_0xdda761['ids'][_0x33f78f(0x134)]!==0x0))throw Error('Import\x20checkpoint\x20does\x20not\x20match\x20the\x20input,\x20target\x20or\x20identity.');const _0x57ca57=_0x3dae5c[_0x33f78f(0x12b)][_0x33f78f(0x117)](_0x7f07eb=>_0x7f07eb[_0x33f78f(0x123)]);if(new Set(_0x57ca57)[_0x33f78f(0x145)]!==_0x57ca57[_0x33f78f(0x134)])throw Error('Import\x20checkpoint\x20contains\x20duplicate\x20generated\x20IDs.');}else{try{await lstat(_0x3d8d72[_0x33f78f(0x155)]);throw Error(_0x33f78f(0x165));}catch(_0x2086aa){if(_0x2086aa[_0x33f78f(0x11a)]!==_0x33f78f(0x112))throw _0x2086aa;}const _0x3afabd=new Set();_0x3dae5c={'version':0x2,'importId':randomUUID(),'binding':_0x3b9ec9,'batches':_0x270a8c[_0x33f78f(0x13c)](_0x1bdf81=>{const _0x14f9ec=_0x33f78f;let _0xb770fd;do{_0xb770fd=Number(BigInt('0x'+randomBytes(0x7)[_0x14f9ec(0x147)](_0x14f9ec(0x121)))&(0x1n<<0x34n)-0x1n)+0x1;}while(_0x3afabd[_0x14f9ec(0x156)](_0xb770fd));return _0x3afabd[_0x14f9ec(0x139)](_0xb770fd),{'taskId':_0xb770fd,'rowIndexes':_0x1bdf81,'ids':[],'status':_0x14f9ec(0x11b)};})},await saveImportJson(_0x3d8d72['checkpoint'],_0x3dae5c);}await _0x3d8d72[_0x33f78f(0x118)]?.();const _0x3c438e=_0x3dae5c,_0x4809e7=async(_0x28e47f,_0x227741)=>{const _0xde8952=_0x33f78f;_0x28e47f[_0xde8952(0x14f)]=_0xde8952(0x119),await saveImportJson(_0x3d8d72[_0xde8952(0x155)],_0x3c438e);throw Error(_0x227741);},_0x286471=async _0x3b5573=>{const _0xd90f0c=_0x33f78f,_0x499202=await _0x21b63c['readTask'](_0x3b5573['taskId']);if(!Array[_0xd90f0c(0x130)](_0x499202))throw Error('Invalid\x20import\x20task\x20readback\x20response.');if(_0x3b5573[_0xd90f0c(0x14f)]===_0xd90f0c(0x11b)&&_0x499202[_0xd90f0c(0x134)])return _0x4809e7(_0x3b5573,_0xd90f0c(0x146));if(!_0x499202[_0xd90f0c(0x134)]){if(_0x3b5573['status']===_0xd90f0c(0x154)||_0x3b5573[_0xd90f0c(0x123)][_0xd90f0c(0x134)])return _0x4809e7(_0x3b5573,_0xd90f0c(0x15c));return![];}if(_0x499202[_0xd90f0c(0x134)]!==_0x3b5573[_0xd90f0c(0x159)][_0xd90f0c(0x134)])return _0x4809e7(_0x3b5573,'Partial\x20import\x20task\x20readback\x20conflict.');const _0x509a42=_0x499202['map'](_0x3c0cf9=>_0x3c0cf9?.['id']);if(_0x509a42[_0xd90f0c(0x15b)](_0x59f6ee=>!validId(_0x59f6ee)))return _0x4809e7(_0x3b5573,'Import\x20generated\x20ID\x20conflict.');const _0x585945=_0x509a42;if(_0x585945['some'](_0x55239e=>!validId(_0x55239e))||_0x585945['some']((_0xc7a67a,_0x321d30)=>_0x321d30>0x0&&_0xc7a67a<=_0x585945[_0x321d30-0x1])||_0x3b5573[_0xd90f0c(0x123)][_0xd90f0c(0x134)]&&canonical(_0x585945)!==canonical(_0x3b5573[_0xd90f0c(0x123)]))return _0x4809e7(_0x3b5573,_0xd90f0c(0x15d));const _0x12e352=new Set(_0x3c438e[_0xd90f0c(0x12b)]['filter'](_0x20d816=>_0x20d816!==_0x3b5573)['flatMap'](_0x2328e4=>_0x2328e4['ids']));if(_0x585945[_0xd90f0c(0x15b)](_0x109c9c=>_0x12e352['has'](_0x109c9c)))return _0x4809e7(_0x3b5573,_0xd90f0c(0x12e));for(let _0x59cfeb=0x0;_0x59cfeb<_0x499202['length'];_0x59cfeb++){const _0x4869e1=_0xacb579[_0xd90f0c(0x13f)][_0x3b5573[_0xd90f0c(0x159)][_0x59cfeb]][_0xd90f0c(0x151)];if(Object['keys'](_0x4869e1)[_0xd90f0c(0x15b)](_0x11a43d=>!sameImportValue(_0x4869e1[_0x11a43d],_0x499202[_0x59cfeb][_0x11a43d],_0xacb579['imageFields']?.['includes'](_0x11a43d)&&!_0xacb579[_0xd90f0c(0x163)]?.[_0xd90f0c(0x142)](_0x11a43d))))return _0x4809e7(_0x3b5573,_0xd90f0c(0x114)+_0xacb579[_0xd90f0c(0x13f)][_0x3b5573[_0xd90f0c(0x159)][_0x59cfeb]]['rowNumber']+'.');}return _0x3b5573[_0xd90f0c(0x123)]=_0x585945,_0x3b5573[_0xd90f0c(0x14f)]=_0xd90f0c(0x154),await saveImportJson(_0x3d8d72[_0xd90f0c(0x155)],_0x3c438e),!![];};if(_0x3c438e[_0x33f78f(0x12b)][_0x33f78f(0x15b)](_0x3af7a1=>_0x3af7a1[_0x33f78f(0x14f)]===_0x33f78f(0x119)&&!(_0x3d8d72['resume']&&_0x3d8d72['reconcileImageConflicts']&&_0xacb579[_0x33f78f(0x120)]?.[_0x33f78f(0x134)]&&_0x3af7a1[_0x33f78f(0x123)][_0x33f78f(0x134)]===_0x3af7a1[_0x33f78f(0x159)][_0x33f78f(0x134)])))throw Error(_0x33f78f(0x135));if(_0x3d8d72[_0x33f78f(0x150)]){for(const _0x56562b of _0x3c438e['batches'])await _0x286471(_0x56562b);}for(const _0x424087 of _0x3c438e[_0x33f78f(0x12b)]){if(_0x424087[_0x33f78f(0x14f)]==='succeeded')continue;if(!_0x3d8d72[_0x33f78f(0x150)])await _0x286471(_0x424087);_0x424087[_0x33f78f(0x14f)]=_0x33f78f(0x136),await saveImportJson(_0x3d8d72[_0x33f78f(0x155)],_0x3c438e),_0x4871a7++;const _0x3f72b0=_0x424087[_0x33f78f(0x159)][_0x33f78f(0x13c)](_0x345357=>_0xacb579['rows'][_0x345357][_0x33f78f(0x151)]),_0x2add51=Date['now'](),_0x58f2c9={'batch':_0x4871a7,'rowStart':_0xacb579[_0x33f78f(0x13f)][_0x424087['rowIndexes'][0x0]][_0x33f78f(0x111)],'rowEnd':_0xacb579[_0x33f78f(0x13f)][_0x424087[_0x33f78f(0x159)]['at'](-0x1)]['rowNumber'],'count':_0x3f72b0['length'],'bytes':_0xa4e440(_0x424087['rowIndexes'],_0x424087['taskId']),'elapsedMs':0x0,'status':'unknown'};_0xf5d8ec['push'](_0x58f2c9);try{const _0x21ae5c=await _0x21b63c[_0x33f78f(0x122)](_0x3f72b0,_0x424087[_0x33f78f(0x12c)]);if(!_0x21ae5c||_0x21ae5c[_0x33f78f(0x162)]!==_0x3f72b0[_0x33f78f(0x134)]||!Array[_0x33f78f(0x130)](_0x21ae5c[_0x33f78f(0x123)])||_0x21ae5c[_0x33f78f(0x123)]['length']!==_0x3f72b0[_0x33f78f(0x134)]||_0x21ae5c[_0x33f78f(0x123)][_0x33f78f(0x15b)](_0x10a84f=>!validId(_0x10a84f))||new Set(_0x21ae5c['ids'])[_0x33f78f(0x145)]!==_0x21ae5c[_0x33f78f(0x123)][_0x33f78f(0x134)])throw Error(_0x33f78f(0x14d));_0x424087[_0x33f78f(0x123)]=_0x21ae5c[_0x33f78f(0x123)],await saveImportJson(_0x3d8d72[_0x33f78f(0x155)],_0x3c438e);if(!await _0x286471(_0x424087))throw Error('Incomplete\x20readback.');}catch(_0x5e28d4){if(_0x424087[_0x33f78f(0x14f)]===_0x33f78f(0x119))throw _0x5e28d4;try{await _0x286471(_0x424087);}catch(_0xb9d7cd){if(_0x424087['status']===_0x33f78f(0x119))throw _0xb9d7cd;}if(_0x424087[_0x33f78f(0x14f)]!=='succeeded')throw Error(_0x33f78f(0x166));}finally{_0x58f2c9[_0x33f78f(0x158)]=Date[_0x33f78f(0x11e)]()-_0x2add51,_0x58f2c9[_0x33f78f(0x14f)]=_0x424087['status']===_0x33f78f(0x154)?_0x33f78f(0x154):_0x424087['status']===_0x33f78f(0x119)?_0x33f78f(0x119):_0x33f78f(0x144);}}const _0x371e1e={'status':_0x33f78f(0x140),..._0x377c86()};return await saveImportJson(_0x3d8d72[_0x33f78f(0x113)],_0x371e1e),_0x371e1e;}catch(_0x225b46){if(_0x3dae5c)await saveImportJson(_0x3d8d72['report'],{'status':'incomplete',..._0x377c86(),'message':_0x225b46[_0x33f78f(0x13b)]});throw _0x225b46;}finally{await _0x76acf9();}}
1
+ const a140_0x24e0c1=a140_0x3255;(function(_0x3fe475,_0x2cc8e4){const _0x2d4ffb=a140_0x3255,_0xcd0acf=_0x3fe475();while(!![]){try{const _0x84f11e=-parseInt(_0x2d4ffb(0x154))/0x1*(parseInt(_0x2d4ffb(0x120))/0x2)+parseInt(_0x2d4ffb(0x100))/0x3*(-parseInt(_0x2d4ffb(0x144))/0x4)+parseInt(_0x2d4ffb(0x13d))/0x5+parseInt(_0x2d4ffb(0x11b))/0x6+parseInt(_0x2d4ffb(0x13f))/0x7*(-parseInt(_0x2d4ffb(0x150))/0x8)+-parseInt(_0x2d4ffb(0x10b))/0x9+parseInt(_0x2d4ffb(0x12a))/0xa;if(_0x84f11e===_0x2cc8e4)break;else _0xcd0acf['push'](_0xcd0acf['shift']());}catch(_0xee5de7){_0xcd0acf['push'](_0xcd0acf['shift']());}}}(a140_0x26ed,0x5e1a9));import{randomBytes,randomUUID}from'node:crypto';import{lstat,readFile}from'node:fs/promises';import{acquireLock,assertImportContract,assertImportPaths,canonical,sameImportValue,resolveImportOutputPath,saveImportJson}from'./runner.js';function a140_0x3255(_0x4e66f7,_0x2732bb){_0x4e66f7=_0x4e66f7-0xfd;const _0x26ed61=a140_0x26ed();let _0x32552b=_0x26ed61[_0x4e66f7];return _0x32552b;}function a140_0x26ed(){const _0x9d85f4=['maxBatchBytes','Invalid\x20import\x20batch\x20size.','mappingHash','14328040okIeVh','count','byteLength','pending','write','push','The\x20auto-ID\x20runner\x20requires\x20the\x20v2\x20task\x20readback\x20contract.','hasOwn','reduce','length','size','sheet','batchSize','checkpoint','version','readTask','stringify','fileHash','string','3055190BWjFlg','report','553VbGVWT','emptyRows','schemaHash','Import\x20checkpoint\x20does\x20not\x20match\x20the\x20input,\x20target\x20or\x20identity.','Cannot\x20read\x20the\x20import\x20checkpoint.','2932108PZrwNp','The\x20import\x20write\x20outcome\x20is\x20unknown.\x20Resume\x20to\x20reconcile\x20the\x20original\x20task\x20marker\x20before\x20continuing.','Auto-ID\x20import\x20items\x20cannot\x20contain\x20a\x20primary\x20key.','toString','uploadFields','Import\x20generated\x20ID\x20conflict.','\x20exceeds\x20the\x20import\x20request\x20size\x20limit.','isArray','importId','filter','imageFields','message','39896ONuxss','unknown','Excel\x20contains\x20no\x20valid\x20data\x20rows.','succeeded','856oDnMZh','completed','Import\x20checkpoint\x20already\x20exists;\x20use\x20--resume.','strategy','Excel\x20contains\x20invalid\x20rows;\x20no\x20data\x20was\x20written.','errors','taskId','batches','3fOPHxy','status','values','appCode','rows','Incomplete\x20readback.','isSafeInteger','hex','ENOENT','incomplete','unsent','6056073IREdsx','onCheckpointReady','code','includes','some','ids','Invalid\x20import\x20task\x20readback\x20response.','warnings','Invalid\x20write\x20result.','conflict','Import\x20checkpoint\x20contains\x20a\x20content\x20conflict.','Partial\x20import\x20task\x20readback\x20conflict.','elapsedMs','runtimeDomain','keys','reconcileImageConflicts','2148432GtNMYI','flatMap','map','rowIndexes','schemaFingerprint','506gbmfwE','resume','Excel\x20row\x20','utf8','rowNumber','now','has'];a140_0x26ed=function(){return _0x9d85f4;};return a140_0x26ed();}const validId=_0x4563ca=>typeof _0x4563ca==='number'&&Number[a140_0x24e0c1(0x106)](_0x4563ca)&&_0x4563ca>0x0;export async function runAutoIdExcelImport(_0x339f45){const _0x1140e9=a140_0x24e0c1,_0x24994d={..._0x339f45,'checkpoint':await resolveImportOutputPath(_0x339f45[_0x1140e9(0x137)]),'report':await resolveImportOutputPath(_0x339f45['report'])},{manifest:_0xe4c835,contract:_0x3fa686,api:_0x286070}=_0x24994d;assertImportContract(_0x3fa686,_0x24994d[_0x1140e9(0x103)],_0x24994d['datasetCode']);if(_0x3fa686['schemaVersion']!==0x2||!_0x286070[_0x1140e9(0x139)])throw Error(_0x1140e9(0x130));if(_0xe4c835[_0x1140e9(0xfd)]['length'])throw Error(_0x1140e9(0x158));if(!_0xe4c835[_0x1140e9(0x104)][_0x1140e9(0x133)])throw Error(_0x1140e9(0x152));if(!Number['isInteger'](_0x24994d[_0x1140e9(0x136)])||_0x24994d['batchSize']<0x1||_0x24994d[_0x1140e9(0x136)]>_0x3fa686['maxBatchSize'])throw Error(_0x1140e9(0x128));assertImportPaths(_0x24994d[_0x1140e9(0x137)],_0x24994d[_0x1140e9(0x13e)]);if(_0xe4c835[_0x1140e9(0x104)][_0x1140e9(0x10f)](_0x114b59=>Object[_0x1140e9(0x131)](_0x114b59[_0x1140e9(0x102)],'id')))throw Error(_0x1140e9(0x146));const _0x2e36c1=(_0x40381d,_0x528e9f)=>Buffer[_0x1140e9(0x12c)](JSON[_0x1140e9(0x13a)]({'schemaFingerprint':_0x3fa686['schemaFingerprint'],'taskId':_0x528e9f,'items':_0x40381d[_0x1140e9(0x11d)](_0x549589=>_0xe4c835[_0x1140e9(0x104)][_0x549589][_0x1140e9(0x102)])}),_0x1140e9(0x123)),_0x48462b=[];let _0x2186f2=[];for(let _0x4db70c=0x0;_0x4db70c<_0xe4c835[_0x1140e9(0x104)][_0x1140e9(0x133)];_0x4db70c++){if(_0x2e36c1([_0x4db70c],0x2**0x34)>_0x3fa686[_0x1140e9(0x127)])throw Error(_0x1140e9(0x122)+_0xe4c835['rows'][_0x4db70c][_0x1140e9(0x124)]+_0x1140e9(0x14a));_0x2186f2['length']&&(_0x2186f2[_0x1140e9(0x133)]===_0x24994d[_0x1140e9(0x136)]||_0x2e36c1([..._0x2186f2,_0x4db70c],0x2**0x34)>_0x3fa686[_0x1140e9(0x127)])&&(_0x48462b['push'](_0x2186f2),_0x2186f2=[]),_0x2186f2[_0x1140e9(0x12f)](_0x4db70c);}if(_0x2186f2['length'])_0x48462b[_0x1140e9(0x12f)](_0x2186f2);const _0xf243af={'appCode':_0x24994d[_0x1140e9(0x103)],'datasetCode':_0x24994d['datasetCode'],'runtimeDomain':_0x24994d[_0x1140e9(0x118)],'actorId':_0x3fa686['actorId'],'fileHash':_0xe4c835[_0x1140e9(0x13b)],'mappingHash':_0xe4c835[_0x1140e9(0x129)],'schemaHash':_0xe4c835[_0x1140e9(0x141)],'remoteSchemaHash':_0x3fa686[_0x1140e9(0x11f)],'batchSize':_0x24994d['batchSize'],'maxBatchBytes':_0x3fa686[_0x1140e9(0x127)],'sheet':_0xe4c835[_0x1140e9(0x135)],'strategy':_0x3fa686[_0x1140e9(0x157)]},_0x2b12e8=await acquireLock(_0x24994d['checkpoint']);let _0x39263c;const _0x5e0679=Date[_0x1140e9(0x125)]();let _0x44c1b7=0x0;const _0x5288ff=[],_0x31d586=_0x158617=>_0x39263c?.[_0x1140e9(0xff)][_0x1140e9(0x14d)](_0x4b624a=>_0x4b624a[_0x1140e9(0x101)]===_0x158617)[_0x1140e9(0x132)]((_0x433263,_0x2bd7cd)=>_0x433263+_0x2bd7cd['rowIndexes'][_0x1140e9(0x133)],0x0)??0x0,_0x3bfdf1=()=>({'importId':_0x39263c?.[_0x1140e9(0x14c)],'sourceRows':_0xe4c835['rows'][_0x1140e9(0x133)],'emptyRows':_0xe4c835[_0x1140e9(0x140)][_0x1140e9(0x133)],'succeeded':_0x31d586(_0x1140e9(0x153)),'unknown':_0x31d586(_0x1140e9(0x12d)),'conflicts':_0x31d586('conflict'),'notAttempted':_0x31d586('unsent'),'batches':_0x44c1b7,'batchResults':_0x5288ff,'elapsedMs':Date[_0x1140e9(0x125)]()-_0x5e0679,'checkpoint':_0x24994d['checkpoint'],'report':_0x24994d[_0x1140e9(0x13e)],'warnings':_0xe4c835[_0x1140e9(0x112)]});try{if(_0x24994d[_0x1140e9(0x121)]){try{_0x39263c=JSON['parse'](await readFile(_0x24994d['checkpoint'],'utf8'));}catch{throw Error(_0x1140e9(0x143));}if(!_0x39263c||_0x39263c[_0x1140e9(0x138)]!==0x2||typeof _0x39263c[_0x1140e9(0x14c)]!==_0x1140e9(0x13c)||!_0x39263c[_0x1140e9(0x14c)]||canonical(_0x39263c['binding'])!==canonical(_0xf243af)||!Array[_0x1140e9(0x14b)](_0x39263c[_0x1140e9(0xff)])||_0x39263c[_0x1140e9(0xff)][_0x1140e9(0x133)]!==_0x48462b[_0x1140e9(0x133)]||new Set(_0x39263c[_0x1140e9(0xff)][_0x1140e9(0x11d)](_0x3bd91f=>_0x3bd91f[_0x1140e9(0xfe)]))[_0x1140e9(0x134)]!==_0x48462b['length']||_0x39263c[_0x1140e9(0xff)][_0x1140e9(0x10f)]((_0x107a4e,_0x518bab)=>!validId(_0x107a4e[_0x1140e9(0xfe)])||_0x107a4e[_0x1140e9(0xfe)]>0x2**0x34||canonical(_0x107a4e['rowIndexes'])!==canonical(_0x48462b[_0x518bab])||![_0x1140e9(0x10a),_0x1140e9(0x12d),_0x1140e9(0x153),_0x1140e9(0x114)][_0x1140e9(0x10e)](_0x107a4e[_0x1140e9(0x101)])||!Array[_0x1140e9(0x14b)](_0x107a4e[_0x1140e9(0x110)])||_0x107a4e['ids'][_0x1140e9(0x10f)](_0x4ba851=>!validId(_0x4ba851))||new Set(_0x107a4e[_0x1140e9(0x110)])[_0x1140e9(0x134)]!==_0x107a4e[_0x1140e9(0x110)]['length']||_0x107a4e[_0x1140e9(0x110)][_0x1140e9(0x133)]!==0x0&&_0x107a4e['ids'][_0x1140e9(0x133)]!==_0x107a4e[_0x1140e9(0x11e)][_0x1140e9(0x133)]||_0x107a4e['status']===_0x1140e9(0x153)&&_0x107a4e[_0x1140e9(0x110)]['length']!==_0x107a4e['rowIndexes'][_0x1140e9(0x133)]||_0x107a4e[_0x1140e9(0x101)]===_0x1140e9(0x10a)&&_0x107a4e[_0x1140e9(0x110)][_0x1140e9(0x133)]!==0x0))throw Error(_0x1140e9(0x142));const _0x287179=_0x39263c[_0x1140e9(0xff)][_0x1140e9(0x11c)](_0x44890b=>_0x44890b[_0x1140e9(0x110)]);if(new Set(_0x287179)['size']!==_0x287179['length'])throw Error('Import\x20checkpoint\x20contains\x20duplicate\x20generated\x20IDs.');}else{try{await lstat(_0x24994d[_0x1140e9(0x137)]);throw Error(_0x1140e9(0x156));}catch(_0x352a7c){if(_0x352a7c[_0x1140e9(0x10d)]!==_0x1140e9(0x108))throw _0x352a7c;}const _0x9d318c=new Set();_0x39263c={'version':0x2,'importId':randomUUID(),'binding':_0xf243af,'batches':_0x48462b['map'](_0x53680c=>{const _0x61c5f6=_0x1140e9;let _0x2d4d2a;do{_0x2d4d2a=Number(BigInt('0x'+randomBytes(0x7)[_0x61c5f6(0x147)](_0x61c5f6(0x107)))&(0x1n<<0x34n)-0x1n)+0x1;}while(_0x9d318c['has'](_0x2d4d2a));return _0x9d318c['add'](_0x2d4d2a),{'taskId':_0x2d4d2a,'rowIndexes':_0x53680c,'ids':[],'status':_0x61c5f6(0x10a)};})},await saveImportJson(_0x24994d['checkpoint'],_0x39263c);}await _0x24994d[_0x1140e9(0x10c)]?.();const _0x1cc583=_0x39263c,_0x297d27=async(_0x3a7ea6,_0x1403c8)=>{const _0xf978be=_0x1140e9;_0x3a7ea6['status']=_0xf978be(0x114),await saveImportJson(_0x24994d[_0xf978be(0x137)],_0x1cc583);throw Error(_0x1403c8);},_0x1b3a97=async _0x11b99f=>{const _0x2b5f31=_0x1140e9,_0xc3d0fc=await _0x286070[_0x2b5f31(0x139)](_0x11b99f[_0x2b5f31(0xfe)]);if(!Array['isArray'](_0xc3d0fc))throw Error(_0x2b5f31(0x111));if(_0x11b99f[_0x2b5f31(0x101)]===_0x2b5f31(0x10a)&&_0xc3d0fc['length'])return _0x297d27(_0x11b99f,'Import\x20task\x20marker\x20collision;\x20stop\x20without\x20replacing\x20the\x20marker.');if(!_0xc3d0fc[_0x2b5f31(0x133)]){if(_0x11b99f[_0x2b5f31(0x101)]===_0x2b5f31(0x153)||_0x11b99f[_0x2b5f31(0x110)]['length'])return _0x297d27(_0x11b99f,'Previously\x20imported\x20records\x20are\x20no\x20longer\x20visible;\x20recovery\x20conflict.');return![];}if(_0xc3d0fc[_0x2b5f31(0x133)]!==_0x11b99f[_0x2b5f31(0x11e)][_0x2b5f31(0x133)])return _0x297d27(_0x11b99f,_0x2b5f31(0x116));const _0x2e8706=_0xc3d0fc[_0x2b5f31(0x11d)](_0x1a5122=>_0x1a5122?.['id']);if(_0x2e8706[_0x2b5f31(0x10f)](_0x48e65a=>!validId(_0x48e65a)))return _0x297d27(_0x11b99f,'Import\x20generated\x20ID\x20conflict.');const _0x4a763b=_0x2e8706;if(_0x4a763b[_0x2b5f31(0x10f)](_0x37ef1f=>!validId(_0x37ef1f))||_0x4a763b[_0x2b5f31(0x10f)]((_0x3ac184,_0x31f5e3)=>_0x31f5e3>0x0&&_0x3ac184<=_0x4a763b[_0x31f5e3-0x1])||_0x11b99f[_0x2b5f31(0x110)][_0x2b5f31(0x133)]&&canonical(_0x4a763b)!==canonical(_0x11b99f[_0x2b5f31(0x110)]))return _0x297d27(_0x11b99f,_0x2b5f31(0x149));const _0x2117da=new Set(_0x1cc583['batches'][_0x2b5f31(0x14d)](_0x5bae59=>_0x5bae59!==_0x11b99f)['flatMap'](_0x14a5b2=>_0x14a5b2['ids']));if(_0x4a763b['some'](_0x58ad28=>_0x2117da[_0x2b5f31(0x126)](_0x58ad28)))return _0x297d27(_0x11b99f,'Import\x20generated\x20ID\x20collision.');for(let _0x4a014f=0x0;_0x4a014f<_0xc3d0fc[_0x2b5f31(0x133)];_0x4a014f++){const _0x51e76a=_0xe4c835[_0x2b5f31(0x104)][_0x11b99f[_0x2b5f31(0x11e)][_0x4a014f]][_0x2b5f31(0x102)];if(Object[_0x2b5f31(0x119)](_0x51e76a)[_0x2b5f31(0x10f)](_0x3a7e46=>!sameImportValue(_0x51e76a[_0x3a7e46],_0xc3d0fc[_0x4a014f][_0x3a7e46],_0xe4c835[_0x2b5f31(0x14e)]?.[_0x2b5f31(0x10e)](_0x3a7e46)&&!_0xe4c835[_0x2b5f31(0x148)]?.[_0x2b5f31(0x10e)](_0x3a7e46))))return _0x297d27(_0x11b99f,'Import\x20content\x20conflict\x20at\x20Excel\x20row\x20'+_0xe4c835[_0x2b5f31(0x104)][_0x11b99f[_0x2b5f31(0x11e)][_0x4a014f]]['rowNumber']+'.');}return _0x11b99f[_0x2b5f31(0x110)]=_0x4a763b,_0x11b99f[_0x2b5f31(0x101)]='succeeded',await saveImportJson(_0x24994d['checkpoint'],_0x1cc583),!![];};if(_0x1cc583['batches']['some'](_0x47e500=>_0x47e500['status']===_0x1140e9(0x114)&&!(_0x24994d[_0x1140e9(0x121)]&&_0x24994d[_0x1140e9(0x11a)]&&_0xe4c835[_0x1140e9(0x14e)]?.[_0x1140e9(0x133)]&&_0x47e500[_0x1140e9(0x110)]['length']===_0x47e500[_0x1140e9(0x11e)][_0x1140e9(0x133)])))throw Error(_0x1140e9(0x115));if(_0x24994d[_0x1140e9(0x121)]){for(const _0x292de4 of _0x1cc583['batches'])await _0x1b3a97(_0x292de4);}for(const _0x6f3ebe of _0x1cc583[_0x1140e9(0xff)]){if(_0x6f3ebe[_0x1140e9(0x101)]===_0x1140e9(0x153))continue;if(!_0x24994d[_0x1140e9(0x121)])await _0x1b3a97(_0x6f3ebe);_0x6f3ebe['status']=_0x1140e9(0x12d),await saveImportJson(_0x24994d[_0x1140e9(0x137)],_0x1cc583),_0x44c1b7++;const _0x271895=_0x6f3ebe[_0x1140e9(0x11e)][_0x1140e9(0x11d)](_0x4b54be=>_0xe4c835[_0x1140e9(0x104)][_0x4b54be][_0x1140e9(0x102)]),_0x2688a9=Date[_0x1140e9(0x125)](),_0xb1281b={'batch':_0x44c1b7,'rowStart':_0xe4c835['rows'][_0x6f3ebe[_0x1140e9(0x11e)][0x0]][_0x1140e9(0x124)],'rowEnd':_0xe4c835['rows'][_0x6f3ebe[_0x1140e9(0x11e)]['at'](-0x1)][_0x1140e9(0x124)],'count':_0x271895[_0x1140e9(0x133)],'bytes':_0x2e36c1(_0x6f3ebe[_0x1140e9(0x11e)],_0x6f3ebe['taskId']),'elapsedMs':0x0,'status':_0x1140e9(0x151)};_0x5288ff[_0x1140e9(0x12f)](_0xb1281b);try{const _0xaa3735=await _0x286070[_0x1140e9(0x12e)](_0x271895,_0x6f3ebe[_0x1140e9(0xfe)]);if(!_0xaa3735||_0xaa3735[_0x1140e9(0x12b)]!==_0x271895[_0x1140e9(0x133)]||!Array['isArray'](_0xaa3735[_0x1140e9(0x110)])||_0xaa3735['ids'][_0x1140e9(0x133)]!==_0x271895[_0x1140e9(0x133)]||_0xaa3735[_0x1140e9(0x110)][_0x1140e9(0x10f)](_0x5a02e3=>!validId(_0x5a02e3))||new Set(_0xaa3735[_0x1140e9(0x110)])[_0x1140e9(0x134)]!==_0xaa3735[_0x1140e9(0x110)][_0x1140e9(0x133)])throw Error(_0x1140e9(0x113));_0x6f3ebe[_0x1140e9(0x110)]=_0xaa3735['ids'],await saveImportJson(_0x24994d[_0x1140e9(0x137)],_0x1cc583);if(!await _0x1b3a97(_0x6f3ebe))throw Error(_0x1140e9(0x105));}catch(_0x4c57e3){if(_0x6f3ebe['status']==='conflict')throw _0x4c57e3;try{await _0x1b3a97(_0x6f3ebe);}catch(_0x34b8aa){if(_0x6f3ebe[_0x1140e9(0x101)]==='conflict')throw _0x34b8aa;}if(_0x6f3ebe[_0x1140e9(0x101)]!==_0x1140e9(0x153))throw Error(_0x1140e9(0x145));}finally{_0xb1281b[_0x1140e9(0x117)]=Date[_0x1140e9(0x125)]()-_0x2688a9,_0xb1281b[_0x1140e9(0x101)]=_0x6f3ebe[_0x1140e9(0x101)]==='succeeded'?_0x1140e9(0x153):_0x6f3ebe[_0x1140e9(0x101)]===_0x1140e9(0x114)?'conflict':_0x1140e9(0x151);}}const _0x2b63e6={'status':_0x1140e9(0x155),..._0x3bfdf1()};return await saveImportJson(_0x24994d[_0x1140e9(0x13e)],_0x2b63e6),_0x2b63e6;}catch(_0x9f61d8){if(_0x39263c)await saveImportJson(_0x24994d[_0x1140e9(0x13e)],{'status':_0x1140e9(0x109),..._0x3bfdf1(),'message':_0x9f61d8[_0x1140e9(0x14f)]});throw _0x9f61d8;}finally{await _0x2b12e8();}}
@@ -1 +1 @@
1
- const a140_0x1e1915=a140_0x2023;(function(_0x507bb8,_0x4d908d){const _0x144b21=a140_0x2023,_0x3fcd01=_0x507bb8();while(!![]){try{const _0x377897=-parseInt(_0x144b21(0x178))/0x1+parseInt(_0x144b21(0x115))/0x2*(parseInt(_0x144b21(0x122))/0x3)+-parseInt(_0x144b21(0xeb))/0x4+-parseInt(_0x144b21(0x121))/0x5*(parseInt(_0x144b21(0x16f))/0x6)+-parseInt(_0x144b21(0xbe))/0x7+-parseInt(_0x144b21(0x15d))/0x8*(parseInt(_0x144b21(0x11f))/0x9)+parseInt(_0x144b21(0xbb))/0xa;if(_0x377897===_0x4d908d)break;else _0x3fcd01['push'](_0x3fcd01['shift']());}catch(_0x1b954c){_0x3fcd01['push'](_0x3fcd01['shift']());}}}(a140_0x4711,0xf3ecf));import{readFile,stat}from'node:fs/promises';import{createHash}from'node:crypto';import a140_0x49e689 from'node:path';import{StringDecoder}from'node:string_decoder';import{createRequire}from'node:module';import{SaxesParser}from'saxes';import a140_0x3beb24 from'exceljs';import a140_0xc2cfad 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',a140_0x1e1915(0xff),a140_0x1e1915(0xe8),'datasetId',a140_0x1e1915(0x1a3),a140_0x1e1915(0x167),a140_0x1e1915(0xb8),'modifierName','createTime','updateTime',a140_0x1e1915(0xf0)]),TYPES=new Set([a140_0x1e1915(0xe1),a140_0x1e1915(0x142),'textarea','number','decimal',a140_0x1e1915(0x13e),a140_0x1e1915(0x155),a140_0x1e1915(0x10f),a140_0x1e1915(0x17d),a140_0x1e1915(0x183),a140_0x1e1915(0x19b)]),isImageContainer=_0x14378c=>[a140_0x1e1915(0x183),a140_0x1e1915(0x19b)][a140_0x1e1915(0x149)](_0x14378c[a140_0x1e1915(0x125)]()),hash=_0x2377cf=>createHash(a140_0x1e1915(0xb7))[a140_0x1e1915(0x128)](_0x2377cf)[a140_0x1e1915(0x185)](a140_0x1e1915(0x119)),require=createRequire(import.meta.url),DefinedNameXform=require(a140_0x1e1915(0x19e)),nameCoordinates=require(a140_0x1e1915(0x15b)),ABSOLUTE_NAME_RANGE=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/,excelRequire=createRequire(require[a140_0x1e1915(0x181)](a140_0x1e1915(0x15e))),zipRequire=createRequire(excelRequire[a140_0x1e1915(0x181)](a140_0x1e1915(0x10b))),ZipEntry=zipRequire('./zipEntry'),zipReader=zipRequire('./reader/readerFor'),zipUtf8=zipRequire('./utf8'),zipPaths=zipRequire('./utils');function centralDirectoryEnd(_0x376bc0,_0x2ee820){const _0x183896=a140_0x1e1915,_0x147a6b=()=>new Error('Invalid\x20ZIP\x20central\x20directory\x20layout.'),_0x1a0c61=_0x376bc0[_0x183896(0x169)](Buffer[_0x183896(0xf7)]([0x50,0x4b,0x5,0x6]));if(_0x1a0c61<0x0||_0x1a0c61+0x16>_0x376bc0[_0x183896(0xc6)]||_0x1a0c61+0x16+_0x376bc0[_0x183896(0x140)](_0x1a0c61+0x14)!==_0x376bc0[_0x183896(0xc6)])throw _0x147a6b();let _0x534ede=_0x376bc0[_0x183896(0x140)](_0x1a0c61+0xa),_0x2295ad=_0x376bc0[_0x183896(0xf9)](_0x1a0c61+0xc),_0x446648=_0x376bc0[_0x183896(0xf9)](_0x1a0c61+0x10),_0x25d08c=_0x1a0c61;const _0x315949=_0x1a0c61-0x14,_0x11fa10=_0x315949>=0x0&&_0x376bc0[_0x183896(0xf9)](_0x315949)===0x7064b50,_0x24432f=[0x4,0x6,0x8,0xa]['some'](_0x59d2e9=>_0x376bc0[_0x183896(0x140)](_0x1a0c61+_0x59d2e9)===0xffff)||_0x2295ad===0xffffffff||_0x446648===0xffffffff;if(_0x11fa10!==_0x24432f)throw _0x147a6b();if(_0x11fa10){if(_0x376bc0[_0x183896(0x169)](Buffer[_0x183896(0xf7)]([0x50,0x4b,0x6,0x7]))!==_0x315949)throw _0x147a6b();const _0x3271de=_0x52c795=>{const _0x2d2c24=_0x183896,_0xc1ad78=Number(_0x376bc0[_0x2d2c24(0x182)](_0x52c795));if(!Number[_0x2d2c24(0xe7)](_0xc1ad78))throw _0x147a6b();return _0xc1ad78;};_0x25d08c=_0x3271de(_0x315949+0x8);if(_0x376bc0[_0x183896(0xf9)](_0x315949+0x4)!==0x0||_0x376bc0[_0x183896(0xf9)](_0x315949+0x10)!==0x1||_0x25d08c>_0x315949-0x38||_0x376bc0['readUInt32LE'](_0x25d08c)!==0x6064b50||_0x3271de(_0x25d08c+0x4)!==0x2c||_0x25d08c+0x38!==_0x315949||_0x376bc0[_0x183896(0xf9)](_0x25d08c+0x10)!==0x0||_0x376bc0[_0x183896(0xf9)](_0x25d08c+0x14)!==0x0)throw _0x147a6b();_0x534ede=_0x3271de(_0x25d08c+0x20),_0x2295ad=_0x3271de(_0x25d08c+0x28),_0x446648=_0x3271de(_0x25d08c+0x30);if(_0x3271de(_0x25d08c+0x18)!==_0x534ede)throw _0x147a6b();}else{if(_0x376bc0[_0x183896(0x140)](_0x1a0c61+0x4)!==0x0||_0x376bc0[_0x183896(0x140)](_0x1a0c61+0x6)!==0x0||_0x376bc0[_0x183896(0x140)](_0x1a0c61+0x8)!==_0x534ede)throw _0x147a6b();}const _0x454d87=_0x2ee820[_0x183896(0x136)];if(_0x446648!==_0x454d87||_0x534ede!==_0x2ee820[_0x183896(0xd9)]||_0x446648+_0x2295ad!==_0x25d08c)throw _0x147a6b();return _0x25d08c;}function consumerEntryName(_0x13d8c5,_0x16f953){const _0x3c41eb=a140_0x1e1915;if(_0x16f953[_0x3c41eb(0x135)][_0x3c41eb(0xc0)](_0x4930af=>_0x4930af['id']===0x1)[_0x3c41eb(0xc6)]>0x1)throw new Error(_0x3c41eb(0xbd));const _0x101d67=_0x16f953,_0xab9fc4=_0x16f953[_0x3c41eb(0x19a)];if(!Buffer[_0x3c41eb(0xc2)](_0x101d67[_0x3c41eb(0x19c)])||!Buffer[_0x3c41eb(0xc2)](_0x101d67[_0x3c41eb(0x17e)])||!Buffer[_0x3c41eb(0xc2)](_0x101d67[_0x3c41eb(0x17a)])||!Number[_0x3c41eb(0xe7)](_0xab9fc4)||_0xab9fc4<0x0||_0xab9fc4>_0x13d8c5[_0x3c41eb(0xc6)]-0x1e||_0x13d8c5['readUInt32LE'](_0xab9fc4)!==0x4034b50)throw new Error(_0x3c41eb(0xee));const _0x4d8e3c=_0xab9fc4+0x1e+_0x13d8c5[_0x3c41eb(0x140)](_0xab9fc4+0x1a),_0x50b892=_0x4d8e3c+_0x13d8c5[_0x3c41eb(0x140)](_0xab9fc4+0x1c)+_0x16f953['compressedSize'];if(!Number[_0x3c41eb(0xe7)](_0x50b892)||_0x50b892>_0x13d8c5[_0x3c41eb(0xc6)])throw new Error(_0x3c41eb(0xee));if(_0x4d8e3c>_0x13d8c5['length']||!_0x13d8c5['subarray'](_0xab9fc4+0x1e,_0x4d8e3c)[_0x3c41eb(0xf3)](_0x101d67[_0x3c41eb(0x19c)]))throw new Error(_0x3c41eb(0xce));const _0x1eac90=new ZipEntry({},{'decodeFileName':zipUtf8[_0x3c41eb(0xe6)]});_0x1eac90['bitFlag']=_0x16f953['generalPurposeBitFlag'],_0x1eac90[_0x3c41eb(0x197)]=_0x101d67['fileNameRaw'],_0x1eac90[_0x3c41eb(0x173)]=_0x101d67[_0x3c41eb(0x17a)],_0x1eac90[_0x3c41eb(0xe5)]=_0x101d67[_0x3c41eb(0x17e)][_0x3c41eb(0xc6)],_0x1eac90['readExtraFields'](zipReader(_0x101d67[_0x3c41eb(0x17e)])),_0x1eac90[_0x3c41eb(0xcb)](),_0x1eac90[_0x3c41eb(0x13b)]=_0x16f953[_0x3c41eb(0x13b)],_0x1eac90[_0x3c41eb(0x11c)]=_0x16f953[_0x3c41eb(0x11c)],_0x1eac90[_0x3c41eb(0xfb)]();const _0xac416c=_0x1eac90[_0x3c41eb(0xd6)]||Boolean((_0x1eac90[_0x3c41eb(0x143)]??0x0)&0x4000),_0x2be764=zipPaths[_0x3c41eb(0x181)](_0x1eac90['fileNameStr']),_0x22d38a=_0x2be764[_0x3c41eb(0x187)]('/')?_0x2be764['slice'](0x1):_0x2be764;return{'name':_0x22d38a,'original':_0x1eac90[_0x3c41eb(0x124)],'directory':_0xac416c};}export function normalizeImportFields(_0x675544){const _0x551427=a140_0x1e1915;if(!_0x675544||(_0x675544[_0x551427(0x1a1)]??_0x675544[_0x551427(0x111)]?.[_0x551427(0xbc)])!==_0x551427(0x16e))throw new Error(_0x551427(0x18d));const _0x6fdd80=Array[_0x551427(0x104)](_0x675544[_0x551427(0x154)]),_0x4e39c8=_0x6fdd80?_0x675544[_0x551427(0x154)]:_0x675544[_0x551427(0x170)];if(!Array[_0x551427(0x104)](_0x4e39c8)||_0x4e39c8[_0x551427(0xc6)]===0x0)throw new Error(_0x551427(0x18b));const _0x5719f8=[],_0xba5342=new Set();for(const _0x50e29a of _0x4e39c8){if(_0x50e29a[_0x551427(0xf0)]===!![])continue;let _0x55ea63=_0x50e29a['extend']??{};if(!_0x6fdd80&&typeof _0x55ea63==='string'){try{_0x55ea63=JSON[_0x551427(0x120)](_0x55ea63);}catch{throw new Error('Invalid\x20dataset\x20field\x20extension\x20metadata.');}if(!_0x55ea63||typeof _0x55ea63!==_0x551427(0x18c)||Array[_0x551427(0x104)](_0x55ea63))throw new Error(_0x551427(0x130));}const _0x4676c2=_0x6fdd80?_0x50e29a[_0x551427(0xb6)]:_0x50e29a[_0x551427(0x144)],_0xbf3dfc=_0x6fdd80?_0x50e29a['doType']:_0x50e29a[_0x551427(0xe0)]??_0x50e29a['dataType'];if(typeof _0x4676c2!==_0x551427(0xe1)||!_0x4676c2||typeof _0xbf3dfc!==_0x551427(0xe1)||_0xba5342[_0x551427(0x12a)](_0x4676c2))throw new Error(_0x551427(0x176));if(_0xbf3dfc['toLowerCase']()===_0x551427(0x116))throw new Error(_0x551427(0x189));_0xba5342['add'](_0x4676c2);const _0x16a49c=_0x6fdd80?_0x50e29a:_0x55ea63,_0x1d61ad={'code':_0x4676c2,'type':_0xbf3dfc,'required':_0x16a49c[_0x551427(0x198)]===!![]};if(RESERVED[_0x551427(0x12a)](_0x4676c2)||_0x16a49c[_0x551427(0x179)]===!![]||_0x16a49c[_0x551427(0x195)]===!![])_0x1d61ad[_0x551427(0x179)]=!![];_0x5719f8[_0x551427(0xb5)](_0x1d61ad);}return _0x5719f8;}async function checkArchive(_0x4fc92c,_0x36f4be){await new Promise((_0x43ab39,_0x2c8d90)=>{const _0x42dd58=a140_0x2023;a140_0xc2cfad[_0x42dd58(0xdf)](_0x4fc92c,{'lazyEntries':!![],'validateEntrySizes':!![]},(_0x153d24,_0x5b1594)=>{const _0xab05c7=_0x42dd58;if(_0x153d24||!_0x5b1594){_0x2c8d90(_0x153d24??new Error(_0xab05c7(0x160)));return;}let _0x33b897;try{_0x33b897=centralDirectoryEnd(_0x4fc92c,_0x5b1594);}catch(_0x5d5a0d){_0x5b1594[_0xab05c7(0x107)](),_0x2c8d90(_0x5d5a0d);return;}let _0x4c2722=0x0,_0x143cf1=0x0,_0x4f8f2b=0x0,_0x403a03=0x0,_0x2b8c43=0x0,_0x27a521=0x0,_0x361125=0x0,_0x1f7c5f=0x0,_0x221f06=0x0,_0x409723=![],_0x5e427b;const _0x378cac=new Set(),_0x3b93c6=_0x3436cc=>{const _0x159f9e=_0xab05c7;if(_0x409723)return;_0x409723=!![],_0x5e427b?.[_0x159f9e(0x146)](),_0x5b1594['close'](),_0x2c8d90(_0x3436cc);},_0xcf15dc=(_0x28f543,_0xfb9e91)=>{const _0xdd45f3=_0xab05c7;if(!_0x28f543||!/^\d+$/[_0xdd45f3(0x14e)](_0x28f543))throw new Error(_0xdd45f3(0xf1));const _0x1fc6a3=Number(_0x28f543);if(!Number[_0xdd45f3(0xe7)](_0x1fc6a3)||_0x1fc6a3<0x1||_0x1fc6a3>_0xfb9e91)throw new Error(_0xdd45f3(0x11a)+_0xfb9e91+'.');return _0x1fc6a3;},_0x5ebe23=(_0x521a17,_0x2ab599=MAX_XML_COLUMNS)=>{const _0x24917c=_0xab05c7,_0x31fdda=/^\$?([A-Z]{1,3})\$?(\d+)$/[_0x24917c(0x172)](_0x521a17);if(!_0x31fdda)throw new Error(_0x24917c(0xc8));let _0x3e1fe4=0x0;for(const _0x32baa9 of _0x31fdda[0x1])_0x3e1fe4=_0x3e1fe4*0x1a+_0x32baa9[_0x24917c(0xd8)](0x0)-0x40;if(_0x3e1fe4>_0x2ab599)throw new Error(_0x24917c(0x196)+_0x2ab599+_0x24917c(0x100));return{'row':_0xcf15dc(_0x31fdda[0x2],MAX_XML_ROWS),'col':_0x3e1fe4};},_0x3e3196=_0x466407=>{const _0x56f142=_0xab05c7;if(_0x466407[_0x56f142(0xb6)]===_0x56f142(0xc4)||_0x466407[_0x56f142(0xb6)]===_0x56f142(0x101))return;for(const _0x5a6971 of _0x466407['ranges']){if(!ABSOLUTE_NAME_RANGE[_0x56f142(0x14e)](_0x5a6971['split']('!')[_0x56f142(0xcc)]()||''))continue;const _0x364924=nameCoordinates['decodeEx'](_0x5a6971),_0x571661=_0x56f142(0xe4)in _0x364924,_0x429d12=_0x571661?[_0x364924[_0x56f142(0xe4)],_0x364924[_0x56f142(0xd0)]]:[_0x364924[_0x56f142(0xc9)]],_0x50d1e8=_0x571661?[_0x364924[_0x56f142(0xfa)],_0x364924[_0x56f142(0x165)]]:[_0x364924[_0x56f142(0xf5)]],_0x195433=(_0x1ce874,_0x1c21ec)=>Number['isSafeInteger'](_0x1ce874)&&_0x1ce874>=0x1&&_0x1ce874<=_0x1c21ec;if(!_0x429d12[_0x56f142(0x102)](_0x513f67=>_0x195433(_0x513f67,MAX_XML_ROWS))||!_0x50d1e8[_0x56f142(0x102)](_0x925c5c=>_0x195433(_0x925c5c,MAX_XML_COLUMNS)))throw new Error(_0x56f142(0x177));_0x361125+=_0x571661?(_0x364924['bottom']-_0x364924[_0x56f142(0xe4)]+0x1)*(_0x364924[_0x56f142(0x165)]-_0x364924[_0x56f142(0xfa)]+0x1):0x1;if(_0x361125>MAX_ROWS)throw new Error(_0x56f142(0x138));}};_0x5b1594['on'](_0xab05c7(0x112),_0x3b93c6),_0x5b1594['on']('entry',_0x5e8d59=>{const _0x2ad4ba=_0xab05c7;if(_0x409723)return;if(++_0x4f8f2b>0x2710||(_0x4c2722+=_0x5e8d59[_0x2ad4ba(0x164)])>MAX_EXPANDED){_0x3b93c6(new Error('XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.'));return;}let _0x43dd36;try{_0x43dd36=consumerEntryName(_0x4fc92c,_0x5e8d59);}catch(_0x337b4a){_0x3b93c6(_0x337b4a);return;}if(_0x43dd36[_0x2ad4ba(0x18e)]){_0x5b1594[_0x2ad4ba(0xec)]();return;}const _0x1e785b=_0x43dd36[_0x2ad4ba(0xb6)];if(_0x36f4be&&(_0x1e785b!==_0x43dd36['original']||_0x378cac[_0x2ad4ba(0x12a)](_0x1e785b)||_0x1e785b[_0x2ad4ba(0x187)]('/')||_0x1e785b['includes']('\x5c'))){_0x3b93c6(new Error(_0x2ad4ba(0xd7)));return;}if(_0x1e785b!==_0x43dd36[_0x2ad4ba(0xd3)]&&(_0x1e785b===_0x2ad4ba(0x137)||/xl\/worksheets\/sheet(\d+)[.]xml/[_0x2ad4ba(0x14e)](_0x1e785b))){_0x3b93c6(new Error(_0x2ad4ba(0x13a)));return;}const _0x452f07=_0x1e785b===_0x2ad4ba(0x137);if(_0x452f07&&_0x378cac[_0x2ad4ba(0x12a)](_0x1e785b)){_0x3b93c6(new Error(_0x2ad4ba(0x15c)));return;}_0x378cac[_0x2ad4ba(0x12b)](_0x1e785b);const _0x59734e=/xl\/worksheets\/sheet(\d+)[.]xml/[_0x2ad4ba(0x14e)](_0x1e785b);if(_0x59734e&&!/^xl\/worksheets\/sheet\d+[.]xml$/[_0x2ad4ba(0x14e)](_0x1e785b)){_0x3b93c6(new Error(_0x2ad4ba(0x16c)));return;}_0x5b1594[_0x2ad4ba(0xd2)](_0x5e8d59,(_0x6f0faa,_0x1e7a98)=>{const _0x115722=_0x2ad4ba;if(_0x409723){_0x1e7a98?.['destroy']();return;}if(_0x6f0faa||!_0x1e7a98){_0x3b93c6(_0x6f0faa??new Error(_0x115722(0x132)));return;}_0x5e427b=_0x1e7a98;const _0x2def20=_0x36f4be?[]:undefined,_0x1bff78=_0x36f4be&&/[.](xml|rels)$/[_0x115722(0x14e)](_0x1e785b)?new StringDecoder('utf8'):undefined,_0x234eb7=_0x1bff78?new SaxesParser({'xmlns':![]}):undefined,_0x22f80b=()=>{const _0x16535f=_0x115722;if(++_0x221f06>0x1e8480)throw Error(_0x16535f(0x16b));};_0x234eb7?.['on']('doctype',()=>{throw Error('XML\x20DTD/entities\x20are\x20not\x20supported.');}),_0x234eb7?.['on'](_0x115722(0x15a),()=>{_0x22f80b();if(++_0x1f7c5f>0x7a120)throw Error('Image\x20XML\x20node\x20budget\x20exceeded.');}),_0x234eb7?.['on']('text',_0x22f80b),_0x234eb7?.['on'](_0x115722(0x184),_0x22f80b),_0x234eb7?.['on']('error',_0x2fab3e=>{throw _0x2fab3e;});const _0x1635b3=_0x59734e||_0x452f07?new StringDecoder(_0x115722(0x166)):undefined,_0x3263f3=_0x59734e||_0x452f07?new SaxesParser({'xmlns':![]}):undefined;let _0x3bc573,_0x4a8414=0x0,_0x2921f1=0x0,_0x3640f7,_0x3b4225,_0x1b415a=![],_0x56c0a2=![],_0x3f8455,_0x236a01,_0x28c31a,_0x27b13a=![];const _0x2d995f=[],_0x50645d=new Set();let _0x179b67;const _0x11e145=(_0x544666,_0x124c56=0x0)=>{const _0x544811=_0x115722;_0x2b8c43+=_0x124c56+Math['max'](0x0,_0x544666-_0x2921f1),_0x2921f1=Math[_0x544811(0x117)](_0x2921f1,_0x544666);if(_0x2b8c43>MAX_ROWS)throw new Error(_0x544811(0xea));};_0x3263f3?.['on'](_0x115722(0x15a),_0x67cac9=>{const _0x483f21=_0x115722;if(_0x452f07){if(!_0x3bc573&&_0x67cac9[_0x483f21(0xb6)]===_0x483f21(0x152))_0x3bc573=new DefinedNameXform();_0x3bc573?.[_0x483f21(0x141)](_0x67cac9);return;}if(_0x67cac9[_0x483f21(0xb6)]==='row'){if(_0x56c0a2)throw new Error(_0x483f21(0x171));_0xcf15dc(_0x67cac9[_0x483f21(0x12c)]['r'],MAX_XML_ROWS),_0x3640f7=undefined,_0x28c31a=undefined,_0x27b13a=![];}else{if(_0x67cac9[_0x483f21(0xb6)]==='c'){if(_0x56c0a2)throw new Error(_0x483f21(0x10d));_0x56c0a2=!![],_0x1b415a=Boolean(Number[_0x483f21(0xc7)](_0x67cac9[_0x483f21(0x12c)]['s']??'',0xa)),_0x179b67=undefined,_0x3f8455=_0x67cac9['attributes']['r']||undefined,_0x236a01=_0x3f8455?_0x5ebe23(_0x3f8455):undefined;if(_0x236a01)_0x3b4225=_0x236a01;else _0x3b4225=_0x3640f7?{'row':_0x3640f7['row'],'col':_0x3640f7['col']+0x1}:undefined;}else{if(_0x56c0a2&&['f','v','t'][_0x483f21(0x149)](_0x67cac9[_0x483f21(0xb6)])){_0x179b67=_0x67cac9['name'];if(_0x67cac9[_0x483f21(0xb6)]==='f'&&_0x67cac9[_0x483f21(0x12c)]['t'])_0x1b415a=!![];}else{if(_0x56c0a2&&_0x67cac9['name']==='r')_0x1b415a=!![];else{if(_0x67cac9[_0x483f21(0xb6)]===_0x483f21(0x109)){const _0x3e8fc5=_0x67cac9[_0x483f21(0x12c)][_0x483f21(0x190)];if(!_0x3e8fc5)throw new Error(_0x483f21(0xda));const _0x3a61c6=_0x3e8fc5['split'](':');if(_0x3a61c6[_0x483f21(0xc6)]>0x2)throw new Error('Invalid\x20worksheet\x20hyperlink\x20reference.');const _0x12d805=_0x5ebe23(_0x3a61c6[0x0]),_0xcf28e7=_0x5ebe23(_0x3a61c6[0x1]??_0x3a61c6[0x0]);_0x50645d[_0x483f21(0x12b)](_0x3e8fc5),_0x11e145(Math[_0x483f21(0x117)](_0x12d805[_0x483f21(0xf5)],_0xcf28e7[_0x483f21(0xf5)]),0x1);}else{if(_0x67cac9[_0x483f21(0xb6)]===_0x483f21(0xf5)){const _0x5a01f6=_0xcf15dc(_0x67cac9[_0x483f21(0x12c)]['min'],0x4000),_0x46f4c4=_0xcf15dc(_0x67cac9[_0x483f21(0x12c)][_0x483f21(0x117)],0x4000);if(_0x5a01f6>_0x46f4c4)throw new Error(_0x483f21(0x1a4));_0x11e145(_0x46f4c4,0x1);}else{if(_0x67cac9[_0x483f21(0xb6)]===_0x483f21(0xdd)){const _0x46b95e=_0x67cac9[_0x483f21(0x12c)][_0x483f21(0x190)];if(!_0x46b95e)throw new Error('Invalid\x20worksheet\x20merge\x20reference.');const _0x54412a=_0x46b95e[_0x483f21(0xc5)](':');if(_0x54412a['length']>0x2)throw new Error(_0x483f21(0x14f));const _0x1aae4c=_0x5ebe23(_0x54412a[0x0]),_0x78d70=_0x5ebe23(_0x54412a[0x1]??_0x54412a[0x0]);_0x11e145(Math[_0x483f21(0x117)](_0x1aae4c['col'],_0x78d70['col']));const _0x3c4a0c=(Math[_0x483f21(0x13d)](_0x78d70[_0x483f21(0xc9)]-_0x1aae4c['row'])+0x1)*(Math[_0x483f21(0x13d)](_0x78d70[_0x483f21(0xf5)]-_0x1aae4c[_0x483f21(0xf5)])+0x1);_0x403a03+=_0x3c4a0c+_0x4a8414++;if(_0x403a03>MAX_ROWS)throw new Error(_0x483f21(0x14d));}}}}}}}}),_0x3263f3?.['on'](_0x115722(0x142),_0x56f371=>{if(_0x452f07){_0x3bc573?.['parseText'](_0x56f371);return;}if(_0x56c0a2&&_0x179b67&&_0x56f371)_0x1b415a=!![];}),_0x3263f3?.['on'](_0x115722(0x184),_0x2fa55b=>{const _0x16dc64=_0x115722;if(_0x452f07){_0x3bc573&&!_0x3bc573[_0x16dc64(0xe3)]()&&(_0x3e3196(_0x3bc573[_0x16dc64(0x10c)]),_0x3bc573=undefined);return;}if(_0x2fa55b['name']==='c'){!_0x1b415a&&_0x3f8455&&!_0x28c31a&&(_0x28c31a={'before':_0x3640f7,'cells':[]});if(_0x28c31a){if(++_0x27a521>0xf4240)throw new Error(_0x16dc64(0x1a2));_0x28c31a[_0x16dc64(0x192)][_0x16dc64(0xb5)]({'reference':_0x3f8455,'address':_0x236a01,'materialized':_0x1b415a});if(!_0x3f8455&&_0x1b415a)_0x27b13a=!![];}if(_0x1b415a){if(!_0x28c31a||_0x3f8455){if(!_0x3b4225)throw new Error(_0x16dc64(0x10e));if(_0x3b4225[_0x16dc64(0xf5)]>MAX_XML_COLUMNS)throw new Error(_0x16dc64(0x105));_0x11e145(_0x3b4225[_0x16dc64(0xf5)]);}_0x3640f7=_0x3b4225;}_0x56c0a2=![],_0x3b4225=undefined,_0x3f8455=undefined,_0x236a01=undefined,_0x179b67=undefined;}else{if(_0x2fa55b['name']===_0x16dc64(0xc9)){if(_0x28c31a&&_0x27b13a)_0x2d995f[_0x16dc64(0xb5)](_0x28c31a);_0x28c31a=undefined,_0x27b13a=![];}else{if(_0x2fa55b['name']===_0x179b67)_0x179b67=undefined;}}}),_0x3263f3?.['on'](_0x115722(0x112),_0x3595f3=>{const _0x5e6ee6=_0x115722;throw new Error(_0x5e6ee6(0xdc)+_0x3595f3[_0x5e6ee6(0x147)]);}),_0x1e7a98['on'](_0x115722(0x112),_0x3b93c6),_0x1e7a98['on'](_0x115722(0x129),_0x49fa46=>{const _0x14506e=_0x115722;if(_0x409723)return;_0x143cf1+=_0x49fa46['length'],_0x2def20?.[_0x14506e(0xb5)](_0x49fa46);if(_0x143cf1>MAX_EXPANDED){_0x3b93c6(new Error(_0x14506e(0x162)));return;}try{if(_0x234eb7&&_0x1bff78)_0x234eb7[_0x14506e(0x123)](_0x1bff78[_0x14506e(0x123)](_0x49fa46));if(_0x3263f3&&_0x1635b3)_0x3263f3[_0x14506e(0x123)](_0x1635b3[_0x14506e(0x123)](_0x49fa46));}catch(_0x2f61ca){_0x3b93c6(_0x2f61ca instanceof Error?_0x2f61ca:new Error('Invalid\x20worksheet\x20XML.'));}}),_0x1e7a98['on'](_0x115722(0x14a),()=>{const _0x480b7b=_0x115722;if(_0x409723)return;try{if(_0x234eb7&&_0x1bff78)_0x234eb7['write'](_0x1bff78[_0x480b7b(0x14a)]())[_0x480b7b(0x107)]();if(_0x3263f3&&_0x1635b3)_0x3263f3[_0x480b7b(0x123)](_0x1635b3[_0x480b7b(0x14a)]())[_0x480b7b(0x107)]();for(const _0x13f561 of _0x2d995f){let _0x1043ff=_0x13f561[_0x480b7b(0xf4)];for(const _0x3faff3 of _0x13f561[_0x480b7b(0x192)]){if(!_0x3faff3[_0x480b7b(0xf2)]&&!(_0x3faff3['reference']&&_0x50645d[_0x480b7b(0x12a)](_0x3faff3['reference'])))continue;const _0x29a710=_0x3faff3[_0x480b7b(0xc3)]??(_0x1043ff?{'row':_0x1043ff[_0x480b7b(0xc9)],'col':_0x1043ff['col']+0x1}:undefined);if(!_0x29a710)throw new Error(_0x480b7b(0x10e));if(_0x29a710['col']>MAX_XML_COLUMNS)throw new Error(_0x480b7b(0x105));_0x11e145(_0x29a710[_0x480b7b(0xf5)]),_0x1043ff=_0x29a710;}}_0x2d995f[_0x480b7b(0xc6)]=0x0,_0x50645d[_0x480b7b(0x16d)]();}catch(_0x253a37){_0x3b93c6(_0x253a37 instanceof Error?_0x253a37:new Error('Invalid\x20worksheet\x20XML.'));return;}if(_0x2def20)_0x36f4be['set'](_0x1e785b,Buffer[_0x480b7b(0x159)](_0x2def20));_0x5e427b=undefined,_0x5b1594[_0x480b7b(0xec)]();});});}),_0x5b1594['on']('end',()=>{const _0x6eb4d7=_0xab05c7;if(_0x409723)return;if(_0x5b1594[_0x6eb4d7(0x136)]!==_0x33b897){_0x2c8d90(new Error('ZIP\x20central\x20directory\x20entry\x20count\x20does\x20not\x20match\x20its\x20contents.'));return;}if(!_0x378cac[_0x6eb4d7(0x12a)](_0x6eb4d7(0xca))||!_0x378cac[_0x6eb4d7(0x12a)](_0x6eb4d7(0x137)))_0x2c8d90(new Error(_0x6eb4d7(0xdb)));else _0x43ab39();}),_0x5b1594['readEntry']();});});}function valueOf(_0x4ac4f3){const _0x15b971=a140_0x1e1915,_0x2ef03f=_0x4ac4f3[_0x15b971(0xd5)];if(_0x2ef03f&&typeof _0x2ef03f===_0x15b971(0x18c)&&(_0x15b971(0xb4)in _0x2ef03f||_0x15b971(0x199)in _0x2ef03f)){if(!(_0x15b971(0x186)in _0x2ef03f)||_0x2ef03f[_0x15b971(0x186)]===undefined)throw new Error(_0x15b971(0x191));return _0x2ef03f[_0x15b971(0x186)];}return _0x2ef03f;}function convert(_0x306ad4,_0x5743b7){const _0x946e59=a140_0x1e1915;if(_0x306ad4===null||_0x306ad4===undefined||_0x306ad4===''){if(_0x5743b7['required']&&!_0x5743b7[_0x946e59(0x179)])throw new Error('Required\x20value\x20is\x20missing.');return null;}if(typeof _0x306ad4===_0x946e59(0xe1)&&Buffer['byteLength'](_0x306ad4,_0x946e59(0x166))>MAX_CELL)throw new Error('Cell\x20exceeds\x2064\x20KB.');switch(_0x5743b7['type']['toLowerCase']()){case _0x946e59(0xe1):case'text':case _0x946e59(0x194):if(typeof _0x306ad4!=='string')throw new Error('Expected\x20a\x20text\x20cell.');return _0x306ad4;case _0x946e59(0x15f):case'decimal':case'integer':if(typeof _0x306ad4!==_0x946e59(0x15f)||!Number[_0x946e59(0x114)](_0x306ad4)||Math[_0x946e59(0x13d)](_0x306ad4)>Number[_0x946e59(0x158)]||_0x5743b7['type'][_0x946e59(0x125)]()==='integer'&&!Number[_0x946e59(0x14c)](_0x306ad4))throw new Error(_0x946e59(0x150));return _0x306ad4;case _0x946e59(0x155):if(typeof _0x306ad4!=='boolean')throw new Error(_0x946e59(0xba));return _0x306ad4;case _0x946e59(0x10f):case _0x946e59(0x17d):if(!(_0x306ad4 instanceof Date)||!Number[_0x946e59(0x114)](_0x306ad4[_0x946e59(0xbf)]()))throw new Error(_0x946e59(0x118));return _0x306ad4[_0x946e59(0xbf)]();default:throw new Error(_0x946e59(0x17b)+_0x5743b7[_0x946e59(0xe0)]+'.');}}export async function buildExcelManifest(_0x1e6431){const _0x17d646=a140_0x1e1915,_0x5e96b1=_0x1e6431[_0x17d646(0x163)]??0x1;if(!Number[_0x17d646(0x14c)](_0x5e96b1)||_0x5e96b1<0x1||_0x5e96b1>MAX_ROWS)throw new Error(_0x17d646(0x148));if(_0x1e6431[_0x17d646(0x106)]!==undefined&&(!Number[_0x17d646(0x14c)](_0x1e6431[_0x17d646(0x106)])||_0x1e6431['batchSize']<0x1||_0x1e6431[_0x17d646(0x106)]>0x3e8))throw new Error(_0x17d646(0x126));if(a140_0x49e689['extname'](_0x1e6431[_0x17d646(0xfe)])[_0x17d646(0x125)]()!==_0x17d646(0xfd))throw new Error('Only\x20.xlsx\x20files\x20are\x20supported.');const _0x341cb2=await stat(_0x1e6431[_0x17d646(0xfe)]);if(!_0x341cb2[_0x17d646(0x133)]()||_0x341cb2[_0x17d646(0x110)]>MAX_FILE)throw new Error(_0x17d646(0x127));const _0x2272a8=await readFile(_0x1e6431['file']);if(_0x2272a8[_0x17d646(0xc6)]>MAX_FILE)throw new Error(_0x17d646(0x139));const _0x156195=_0x1e6431[_0x17d646(0x154)][_0x17d646(0x12e)](_0x5e3607=>isImageContainer(_0x5e3607[_0x17d646(0xe0)])&&Object[_0x17d646(0x153)](_0x1e6431[_0x17d646(0x11e)])[_0x17d646(0x149)](_0x5e3607[_0x17d646(0x144)]))?new Map():undefined;await checkArchive(_0x2272a8,_0x156195);const _0x2f34f1=new a140_0x3beb24[(_0x17d646(0x134))]();await _0x2f34f1[_0x17d646(0xed)]['load'](_0x2272a8,{'ignoreNodes':[_0x17d646(0x108)]});const _0x464bfc=_0x1e6431[_0x17d646(0xb3)];let _0x347762;if(_0x464bfc===undefined)_0x347762=_0x2f34f1[_0x17d646(0x156)][0x0];else{if(typeof _0x464bfc===_0x17d646(0xe1)&&_0x2f34f1['worksheets'][_0x17d646(0x12e)](_0x4163d1=>_0x4163d1[_0x17d646(0xb6)]===_0x464bfc))_0x347762=_0x2f34f1[_0x17d646(0x156)][_0x17d646(0x103)](_0x6bdaca=>_0x6bdaca[_0x17d646(0xb6)]===_0x464bfc);else{if(typeof _0x464bfc===_0x17d646(0x15f)||/^\d+$/[_0x17d646(0x14e)](_0x464bfc)){const _0xe3ad=Number(_0x464bfc);if(!Number[_0x17d646(0x14c)](_0xe3ad)||_0xe3ad<0x1)throw new Error(_0x17d646(0xd1));_0x347762=_0x2f34f1[_0x17d646(0x156)][_0xe3ad-0x1];}else _0x347762=_0x2f34f1['worksheets'][_0x17d646(0x103)](_0x19dcf5=>_0x19dcf5['name']===_0x464bfc);}}if(!_0x347762)throw new Error(_0x17d646(0x12f));if(_0x347762['rowCount']>MAX_ROWS||_0x347762['columnCount']>MAX_COLUMNS)throw new Error(_0x17d646(0xc1));if((_0x347762['model']['merges']??[])[_0x17d646(0xc6)])throw new Error(_0x17d646(0xfc));const _0x35f0ec=new Map();_0x347762[_0x17d646(0x17c)](_0x5e96b1)['eachCell']((_0x415d98,_0x3a9234)=>{const _0x565e79=_0x17d646,_0x9b3feb=valueOf(_0x415d98);if(typeof _0x9b3feb!=='string'||!_0x9b3feb[_0x565e79(0x161)]()||Buffer[_0x565e79(0xf6)](_0x9b3feb)>MAX_CELL)throw new Error(_0x565e79(0x18a));if(_0x35f0ec[_0x565e79(0x12a)](_0x9b3feb))throw new Error(_0x565e79(0xd4)+_0x9b3feb+'.');_0x35f0ec['set'](_0x9b3feb,_0x3a9234);});const _0x1b5309=Object['entries'](_0x1e6431[_0x17d646(0x11e)]);if(!_0x1b5309[_0x17d646(0xc6)])throw new Error(_0x17d646(0x18f));const _0x407dee=new Map(_0x1e6431[_0x17d646(0x154)]['map'](_0xf07ae5=>[_0xf07ae5[_0x17d646(0x144)],_0xf07ae5]));if(_0x407dee[_0x17d646(0x110)]!==_0x1e6431[_0x17d646(0x154)]['length'])throw new Error(_0x17d646(0x14b));if(_0x1e6431['fields'][_0x17d646(0x12e)](_0x59f7da=>_0x59f7da[_0x17d646(0xe0)][_0x17d646(0x125)]()===_0x17d646(0x116)))throw new Error('Unsupported\x20dataset\x20field\x20type:\x20serial_number.');const _0xbfa493=new Set();for(const [_0x4de7a0,_0x328129]of _0x1b5309){const _0x3cf5b2=_0x407dee[_0x17d646(0x13c)](_0x328129);if(!_0x35f0ec[_0x17d646(0x12a)](_0x4de7a0))throw new Error('Unknown\x20Excel\x20header:\x20'+_0x4de7a0+'.');if(!_0x3cf5b2||RESERVED[_0x17d646(0x12a)](_0x328129)||_0x3cf5b2[_0x17d646(0x179)])throw new Error(_0x17d646(0x12d)+_0x328129+'.');if(_0xbfa493[_0x17d646(0x12a)](_0x328129))throw new Error('Duplicate\x20mapping\x20target:\x20'+_0x328129+'.');if(!TYPES['has'](_0x3cf5b2['type']['toLowerCase']()))throw new Error(_0x17d646(0x17b)+_0x3cf5b2[_0x17d646(0xe0)]+'.');_0xbfa493['add'](_0x328129);}for(const _0x117d60 of _0x1e6431['fields']){if(_0x117d60[_0x17d646(0x198)]&&!_0x117d60[_0x17d646(0x179)]&&!RESERVED[_0x17d646(0x12a)](_0x117d60['code'])&&!_0xbfa493['has'](_0x117d60[_0x17d646(0x144)]))throw new Error(_0x17d646(0xf8)+_0x117d60['code']+'.');}const _0x5a9030={'fileHash':hash(_0x2272a8),'mappingHash':hash(JSON[_0x17d646(0x175)]([..._0x1b5309][_0x17d646(0x11b)](([_0x48c9c5],[_0x2c7f6c])=>_0x48c9c5['localeCompare'](_0x2c7f6c)))),'schemaHash':hash(JSON[_0x17d646(0x175)]([..._0x1e6431[_0x17d646(0x154)]]['sort']((_0x4b01d0,_0x544d77)=>_0x4b01d0['code']['localeCompare'](_0x544d77[_0x17d646(0x144)])))),'sheet':_0x347762[_0x17d646(0xb6)],'rows':[],'emptyRows':[],'errors':[],'warnings':[]},_0x289f2d=_0x1b5309[_0x17d646(0xc0)](([,_0x342bc4])=>isImageContainer(_0x407dee[_0x17d646(0x13c)](_0x342bc4)['type'])),_0x22bc28=_0x289f2d[_0x17d646(0xc0)](([,_0x289523])=>_0x407dee[_0x17d646(0x13c)](_0x289523)[_0x17d646(0xe0)][_0x17d646(0x125)]()==='upload')['map'](([,_0x5b227a])=>_0x5b227a);if(_0x22bc28[_0x17d646(0xc6)])_0x5a9030[_0x17d646(0x19f)]=_0x22bc28;const _0x353db4=_0x156195?resolveWorksheetImages(_0x156195,_0x347762['name'],new Set(_0x289f2d[_0x17d646(0x131)](([_0x3afc29])=>_0x35f0ec[_0x17d646(0x13c)](_0x3afc29)))):[],_0x4d60c3=new Map();for(const _0x285df4 of _0x353db4){const _0x33231f=_0x285df4[_0x17d646(0xc9)]+':'+_0x285df4[_0x17d646(0xf5)],_0x2075b5=_0x4d60c3[_0x17d646(0x13c)](_0x33231f)??[];_0x2075b5[_0x17d646(0xb5)](_0x285df4),_0x4d60c3[_0x17d646(0x180)](_0x33231f,_0x2075b5);}const _0x5b2cee=new Map();let _0x38a3e7=0x0;_0x289f2d[_0x17d646(0xc6)]&&(_0x5a9030[_0x17d646(0x1a0)]=_0x289f2d[_0x17d646(0x131)](([,_0x53bbac])=>_0x53bbac),_0x5a9030['imageCells']=[],_0x5a9030[_0x17d646(0x168)]=0x1,_0x5a9030[_0x17d646(0x157)]=[]);const _0x563085=Math[_0x17d646(0x117)](0x0,..._0x353db4[_0x17d646(0x131)](_0x2aa679=>_0x2aa679[_0x17d646(0xc9)]));let _0x2b152f=0x0;const _0x449ff0=new Set(_0x1b5309['map'](([_0xa54b58])=>_0x35f0ec[_0x17d646(0x13c)](_0xa54b58)));for(let _0x50a02d=_0x5e96b1+0x1;_0x50a02d<=Math['max'](_0x347762[_0x17d646(0x17f)],_0x563085);_0x50a02d++){const _0x98d68f=_0x347762['getRow'](_0x50a02d);if(_0x98d68f[_0x17d646(0xef)]||_0x353db4['some'](_0x34605b=>_0x34605b['row']===_0x50a02d&&_0x34605b[_0x17d646(0xe9)]))_0x2b152f++;let _0x28511a=_0x353db4[_0x17d646(0x12e)](_0x442c42=>_0x442c42['row']===_0x50a02d);_0x98d68f[_0x17d646(0x151)](_0x505a80=>{const _0x5549a9=_0x17d646;if(_0x505a80[_0x5549a9(0xd5)]!==null&&_0x505a80[_0x5549a9(0xd5)]!==undefined&&_0x505a80[_0x5549a9(0xd5)]!=='')_0x28511a=!![];});if(!_0x28511a){_0x5a9030[_0x17d646(0xcf)][_0x17d646(0xb5)](_0x50a02d);continue;}const _0x400c53=Object[_0x17d646(0x13f)](null);_0x98d68f[_0x17d646(0x151)]((_0xe396bb,_0x59c3c5)=>{const _0x4303da=_0x17d646;if(_0x449ff0[_0x4303da(0x12a)](_0x59c3c5))return;try{const _0x28e3bc=valueOf(_0xe396bb);if(typeof _0x28e3bc===_0x4303da(0xe1)&&Buffer[_0x4303da(0xf6)](_0x28e3bc,_0x4303da(0x166))>MAX_CELL)throw new Error('Cell\x20exceeds\x2064\x20KB.');}catch(_0x26cd7f){_0x5a9030[_0x4303da(0x145)][_0x4303da(0xb5)]({'rowNumber':_0x50a02d,'field':_0xe396bb[_0x4303da(0xc3)],'message':_0x26cd7f[_0x4303da(0x147)]});}});for(const [_0x2778fe,_0x546c56]of _0x1b5309){try{const _0x58feb1=_0x98d68f[_0x17d646(0x188)](_0x35f0ec[_0x17d646(0x13c)](_0x2778fe)),_0x4eb519=_0x407dee['get'](_0x546c56);if(!isImageContainer(_0x4eb519[_0x17d646(0xe0)])){_0x400c53[_0x546c56]=convert(valueOf(_0x58feb1),_0x4eb519);continue;}const _0x1b9f00=_0x4d60c3[_0x17d646(0x13c)](_0x50a02d+':'+_0x35f0ec[_0x17d646(0x13c)](_0x2778fe))??[];if(_0x1b9f00[_0x17d646(0x12e)](_0x27dbfa=>_0x27dbfa['error']))throw Error(_0x1b9f00[_0x17d646(0x103)](_0x43f09f=>_0x43f09f[_0x17d646(0x112)])[_0x17d646(0x112)]);if(_0x58feb1[_0x17d646(0xd5)]!=null&&_0x58feb1[_0x17d646(0xd5)]!==''&&!_0x1b9f00[_0x17d646(0x12e)](_0x2d1862=>_0x2d1862[_0x17d646(0x193)]))throw Error('Image\x20cell\x20contains\x20scalar\x20or\x20mixed\x20content.');const _0x581cba=[];for(const _0x46ab94 of _0x1b9f00)for(const _0x2825ad of _0x46ab94[_0x17d646(0x157)]){const _0x144b8e=_0x156195['get'](_0x2825ad);if(!_0x144b8e)throw Error(_0x17d646(0xcd)+_0x2825ad+'.');const _0x3c79d6=hash(_0x144b8e),_0x48e448=_0x5b2cee['get'](_0x3c79d6)??validateImageBytes(_0x144b8e);if(!_0x5b2cee[_0x17d646(0x12a)](_0x48e448[_0x17d646(0xde)])){_0x38a3e7+=_0x48e448[_0x17d646(0x110)];if(_0x38a3e7>0x32*0x400*0x400)throw Error(_0x17d646(0x19d));_0x5b2cee[_0x17d646(0x180)](_0x48e448[_0x17d646(0xde)],_0x48e448);}_0x581cba[_0x17d646(0xb5)](_0x48e448[_0x17d646(0xde)]);}if(!_0x581cba[_0x17d646(0xc6)]&&_0x4eb519['required'])throw Error(_0x17d646(0x11d));if(_0x581cba['length'])_0x5a9030[_0x17d646(0x174)]['push']({'rowNumber':_0x50a02d,'field':_0x546c56,'hashes':_0x581cba});_0x400c53[_0x546c56]=_0x581cba[_0x17d646(0x131)](_0x1b4f83=>{const _0x4ce2ca=_0x17d646,_0x5158de=_0x5b2cee[_0x4ce2ca(0x13c)](_0x1b4f83),_0x10876c=_0x5158de[_0x4ce2ca(0xe0)]==='image/jpeg'?_0x4ce2ca(0xe2):_0x5158de[_0x4ce2ca(0xe0)][_0x4ce2ca(0x16a)](0x6),_0xd1ef28=_0x1b4f83+'.'+_0x10876c,_0x33d7f7=_0x4ce2ca(0x113)+'0'['repeat'](0x40)+'/'+_0xd1ef28;return _0x4eb519[_0x4ce2ca(0xe0)][_0x4ce2ca(0x125)]()===_0x4ce2ca(0x19b)?{'fileName':_0xd1ef28,'filePath':_0x33d7f7}:{'key':_0x33d7f7,'name':_0xd1ef28,'type':_0x5158de[_0x4ce2ca(0xe0)],'size':_0x5158de['size']};});}catch(_0x359710){_0x5a9030[_0x17d646(0x145)][_0x17d646(0xb5)]({'rowNumber':_0x50a02d,'field':_0x546c56,'message':_0x359710[_0x17d646(0x147)]});}}_0x5a9030[_0x17d646(0xb9)][_0x17d646(0xb5)]({'rowNumber':_0x50a02d,'values':_0x400c53});}if(_0x5a9030[_0x17d646(0x157)])_0x5a9030[_0x17d646(0x157)]=[..._0x5b2cee[_0x17d646(0x153)]()];if(_0x2b152f)_0x5a9030['warnings']['push'](_0x2b152f+_0x17d646(0x10a));return _0x5a9030;}function a140_0x2023(_0x1170c0,_0xa473b4){_0x1170c0=_0x1170c0-0xb3;const _0x471148=a140_0x4711();let _0x2023b2=_0x471148[_0x1170c0];return _0x2023b2;}function a140_0x4711(){const _0x1fb049=['some','Requested\x20worksheet\x20does\x20not\x20exist.','Invalid\x20dataset\x20field\x20extension\x20metadata.','map','Invalid\x20XLSX\x20entry.','isFile','Workbook','extraFields','readEntryCursor','xl/workbook.xml','Workbook\x20defined\x20name\x20work\x20exceeds\x20100000.','XLSX\x20file\x20exceeds\x2020\x20MB.','Non-canonical\x20workbook\x20or\x20worksheet\x20ZIP\x20entry.','versionMadeBy','get','abs','integer','create','readUInt16LE','parseOpen','text','unixPermissions','code','errors','destroy','message','headerRow\x20must\x20be\x20between\x201\x20and\x20100000.','includes','end','Duplicate\x20dataset\x20field\x20codes.','isInteger','Worksheet\x20merge\x20work\x20exceeds\x20100000.','test','Invalid\x20worksheet\x20merge\x20reference.','Expected\x20a\x20finite\x20safe\x20numeric\x20cell.','eachCell','definedName','values','fields','boolean','worksheets','media','MAX_SAFE_INTEGER','concat','opentag','exceljs/lib/utils/col-cache.js','Duplicate\x20workbook\x20ZIP\x20entry.','8HoqBkj','exceljs','number','Invalid\x20XLSX\x20archive.','trim','XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.','headerRow','uncompressedSize','right','utf8','creatorName','parserVersion','lastIndexOf','slice','Image\x20XML\x20event\x20budget\x20exceeded.','Non-canonical\x20worksheet\x20ZIP\x20entry.','clear','METADATA','1446966zlaIcG','properties','Invalid\x20worksheet\x20nested\x20row.','exec','fileComment','imageCells','stringify','Invalid\x20or\x20duplicate\x20dataset\x20field\x20metadata.','Invalid\x20defined\x20name\x20coordinate.','1440069zSJRQA','generated','fileCommentRaw','Unsupported\x20field\x20type:\x20','getRow','datetime','extraFieldRaw','rowCount','set','resolve','readBigUInt64LE','image','closetag','digest','result','startsWith','getCell','Unsupported\x20dataset\x20field\x20type:\x20serial_number.','Headers\x20must\x20be\x20non-empty\x20text\x20cells\x20no\x20larger\x20than\x2064\x20KB.','Dataset\x20field\x20metadata\x20is\x20missing.','object','Excel\x20import\x20only\x20supports\x20METADATA\x20datasets.','directory','Mapping\x20must\x20contain\x20at\x20least\x20one\x20field.','ref','Formula\x20has\x20no\x20cached\x20result.','cells','nativeCell','textarea','autoIncrement','Worksheet\x20exceeds\x20','fileName','required','sharedFormula','relativeOffsetOfLocalHeader','upload','fileNameRaw','Unique\x20image\x20bytes\x20exceed\x2050\x20MB.','exceljs/lib/xlsx/xform/book/defined-name-xform.js','uploadFields','imageFields','source','Worksheet\x20deferred\x20cell\x20events\x20exceed\x201000000.','creatorId','Invalid\x20worksheet\x20column\x20range.','sheet','formula','push','name','sha256','modifierId','rows','Expected\x20a\x20boolean\x20cell.','53865290TPoIwa','sourceType','Duplicate\x20ZIP64\x20extended\x20information\x20fields\x20are\x20not\x20supported.','8835883inLTLG','getTime','filter','Worksheet\x20exceeds\x20100000\x20rows\x20or\x20256\x20columns.','isBuffer','address','_xlnm.Print_Area','split','length','parseInt','Invalid\x20worksheet\x20cell\x20or\x20merge\x20reference.','row','[Content_Types].xml','handleUTF8','pop','Missing\x20image\x20media:\x20','ZIP\x20local\x20and\x20central\x20entry\x20names\x20must\x20match.','emptyRows','bottom','Sheet\x20index\x20must\x20be\x20a\x20positive\x20one-based\x20integer.','openReadStream','original','Duplicate\x20header:\x20','value','dir','Non-canonical\x20or\x20duplicate\x20image\x20archive\x20entry.','charCodeAt','entryCount','Invalid\x20worksheet\x20hyperlink\x20reference.','File\x20is\x20not\x20an\x20XLSX\x20workbook.','Invalid\x20worksheet\x20XML:\x20','mergeCell','contentHash','fromBuffer','type','string','jpg','parseClose','top','extraFieldsLength','utf8decode','isSafeInteger','appCode','hiddenRow','Worksheet\x20column\x20objects\x20exceed\x20100000.','5841932NDOEZj','readEntry','xlsx','Invalid\x20ZIP\x20local\x20file\x20header.','hidden','deleted','Invalid\x20worksheet\x20coordinate.','materialized','equals','before','col','byteLength','from','Required\x20field\x20is\x20not\x20mapped:\x20','readUInt32LE','left','processAttributes','Merged\x20cells\x20are\x20not\x20supported.','.xlsx','file','tenantCode','\x20columns.','_xlnm.Print_Titles','every','find','isArray','Worksheet\x20exceeds\x2016384\x20columns.','batchSize','close','dataValidations','hyperlink','\x20hidden\x20row(s)\x20are\x20included\x20in\x20the\x20import.','jszip','model','Invalid\x20worksheet\x20nested\x20cell.','Invalid\x20worksheet\x20cell\x20without\x20an\x20initial\x20reference.','date','size','dataset','error','dataset-import/','isFinite','2AmSnzb','serial_number','max','Expected\x20an\x20Excel\x20date\x20cell.','hex','Worksheet\x20coordinate\x20exceeds\x20','sort','externalFileAttributes','Required\x20image\x20value\x20is\x20missing.','mapping','11646189lyrYrB','parse','5nowDkG','3931779KhEyKp','write','fileNameStr','toLowerCase','batchSize\x20must\x20be\x20between\x201\x20and\x201000.','XLSX\x20file\x20must\x20be\x20a\x20regular\x20file\x20no\x20larger\x20than\x2020\x20MB.','update','data','has','add','attributes','Unknown\x20or\x20generated\x20mapping\x20field:\x20'];a140_0x4711=function(){return _0x1fb049;};return a140_0x4711();}
1
+ function a141_0x1188(){const _0x5aea6b=['original','jszip','stringify','Invalid\x20worksheet\x20column\x20range.','date','Invalid\x20worksheet\x20cell\x20or\x20merge\x20reference.','unixPermissions','string','File\x20is\x20not\x20an\x20XLSX\x20workbook.','add','before','Dataset\x20field\x20metadata\x20is\x20missing.','hex','readUInt16LE','ranges','write','Invalid\x20worksheet\x20coordinate.','Worksheet\x20exceeds\x2016384\x20columns.','Image\x20XML\x20node\x20budget\x20exceeded.','entries','merges','exceljs/lib/utils/col-cache.js','Expected\x20a\x20text\x20cell.','includes','address','left','processAttributes','cells','dataValidations','generated','object','charCodeAt','trim','localeCompare','Only\x20.xlsx\x20files\x20are\x20supported.','dataset','Workbook','end','396108UGzMaW','set','entry','formula','Unsupported\x20field\x20type:\x20','getCell','errors','datetime','error','integer','uploadFields','Invalid\x20XLSX\x20entry.','./zipEntry','update','exceljs/lib/xlsx/xform/book/defined-name-xform.js','4InLaXL','close','fields','1367730VAVfQO','fileComment','27128jVIzAn','Duplicate\x20mapping\x20target:\x20','text','destroy','Required\x20field\x20is\x20not\x20mapped:\x20','XML\x20DTD/entities\x20are\x20not\x20supported.','jpg','autoIncrement','split','Duplicate\x20ZIP64\x20extended\x20information\x20fields\x20are\x20not\x20supported.','fileNameRaw','parseText','code','./reader/readerFor','size','getRow','upload','bitFlag','Invalid\x20ZIP\x20central\x20directory\x20layout.','media','545KAzwHE','MAX_SAFE_INTEGER','message','push','slice','modifierName','isSafeInteger','Worksheet\x20exceeds\x20','image','rowCount','exceljs','bottom','concat','Non-canonical\x20workbook\x20or\x20worksheet\x20ZIP\x20entry.','Invalid\x20defined\x20name\x20coordinate.','result','reference','XLSX\x20file\x20must\x20be\x20a\x20regular\x20file\x20no\x20larger\x20than\x2020\x20MB.','Cell\x20exceeds\x2064\x20KB.','decodeEx','byteLength','readUInt32LE','eachCell','emptyRows','value','extend','parserVersion','Unsupported\x20dataset\x20field\x20type:\x20serial_number.','Required\x20image\x20value\x20is\x20missing.','file','Sheet\x20index\x20must\x20be\x20a\x20positive\x20one-based\x20integer.','Workbook\x20defined\x20name\x20work\x20exceeds\x20100000.','readBigUInt64LE','isInteger','Duplicate\x20header:\x20','contentHash','Invalid\x20worksheet\x20merge\x20reference.','Invalid\x20worksheet\x20cell\x20without\x20an\x20initial\x20reference.','Non-canonical\x20or\x20duplicate\x20image\x20archive\x20entry.','abs','Worksheet\x20coordinate\x20exceeds\x20','rows','imageCells','top','xlsx','Invalid\x20worksheet\x20hyperlink\x20reference.','deleted','equals','Invalid\x20XLSX\x20archive.','readEntry','filter','extraFieldRaw','clear','./utf8','extname','Headers\x20must\x20be\x20non-empty\x20text\x20cells\x20no\x20larger\x20than\x2064\x20KB.','creatorId','[Content_Types].xml','every','values','Invalid\x20worksheet\x20XML:\x20','isArray','Invalid\x20or\x20duplicate\x20dataset\x20field\x20metadata.','Unique\x20image\x20bytes\x20exceed\x2050\x20MB.','fileName','model','right','attributes','utf8decode','dir','parse','Duplicate\x20workbook\x20ZIP\x20entry.','lastIndexOf','Invalid\x20dataset\x20field\x20extension\x20metadata.','versionMadeBy','mergeCell','batchSize\x20must\x20be\x20between\x201\x20and\x201000.','\x20hidden\x20row(s)\x20are\x20included\x20in\x20the\x20import.','ZIP\x20local\x20and\x20central\x20entry\x20names\x20must\x20match.','fileNameStr','Worksheet\x20merge\x20work\x20exceeds\x20100000.','Image\x20cell\x20contains\x20scalar\x20or\x20mixed\x20content.','worksheets','name','parseInt','mapping','max','from','startsWith','directory','createTime','10156yKttXs','required','isBuffer','Invalid\x20worksheet\x20XML.','datasetId','hidden','map','Unknown\x20Excel\x20header:\x20','sourceType','imageFields','data','batchSize','resolve','doctype','subarray','Excel\x20import\x20only\x20supports\x20METADATA\x20datasets.','closetag','externalFileAttributes','get','22140fVzVdL','modifierId','fileCommentRaw','tenantCode','find','length','hiddenRow','row','getTime','sha256','image/jpeg','compressedSize','opentag','_xlnm.Print_Area','287OxQJDc','sort','Invalid\x20ZIP\x20local\x20file\x20header.','_xlnm.Print_Titles','sheet','handleUTF8','materialized','isFinite','decimal','dataset-import/','test','Duplicate\x20dataset\x20field\x20codes.','has','23666bvEQMN','number','headerRow','extraFields','toLowerCase','parseClose','Image\x20XML\x20event\x20budget\x20exceeded.','dataType','creatorName','Required\x20value\x20is\x20missing.','updateTime','generalPurposeBitFlag','Mapping\x20must\x20contain\x20at\x20least\x20one\x20field.','create','load','readEntryCursor','extraFieldsLength','XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.','type','hyperlink','warnings','METADATA','textarea','isFile','entryCount','Worksheet\x20deferred\x20cell\x20events\x20exceed\x201000000.','Non-canonical\x20worksheet\x20ZIP\x20entry.','repeat','col','doType','some','2061250lVOCkP','serial_number','boolean','sharedFormula','columnCount'];a141_0x1188=function(){return _0x5aea6b;};return a141_0x1188();}const a141_0x925568=a141_0x42bf;(function(_0x5286ed,_0x343665){const _0x518a38=a141_0x42bf,_0x116d35=_0x5286ed();while(!![]){try{const _0x436d2a=-parseInt(_0x518a38(0x20e))/0x1*(parseInt(_0x518a38(0x267))/0x2)+parseInt(_0x518a38(0x258))/0x3+-parseInt(_0x518a38(0x2db))/0x4*(-parseInt(_0x518a38(0x280))/0x5)+parseInt(_0x518a38(0x1f3))/0x6+parseInt(_0x518a38(0x201))/0x7*(-parseInt(_0x518a38(0x26c))/0x8)+parseInt(_0x518a38(0x26a))/0x9+-parseInt(_0x518a38(0x22d))/0xa;if(_0x436d2a===_0x343665)break;else _0x116d35['push'](_0x116d35['shift']());}catch(_0x4575c1){_0x116d35['push'](_0x116d35['shift']());}}}(a141_0x1188,0x29fb7));import{readFile,stat}from'node:fs/promises';import{createHash}from'node:crypto';import a141_0x4a9a16 from'node:path';import{StringDecoder}from'node:string_decoder';import{createRequire}from'node:module';import{SaxesParser}from'saxes';import a141_0x1ddc8b from'exceljs';import a141_0x46d9de from'yauzl';import{resolveWorksheetImages}from'./image-ooxml.js';function a141_0x42bf(_0x78a8d2,_0xd7c05a){_0x78a8d2=_0x78a8d2-0x1e4;const _0x11881d=a141_0x1188();let _0x42bf70=_0x11881d[_0x78a8d2];return _0x42bf70;}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',a141_0x925568(0x1f6),'appCode',a141_0x925568(0x1e4),a141_0x925568(0x2b8),a141_0x925568(0x216),a141_0x925568(0x1f4),a141_0x925568(0x285),a141_0x925568(0x2da),a141_0x925568(0x218),a141_0x925568(0x2ae)]),TYPES=new Set(['string',a141_0x925568(0x26e),a141_0x925568(0x224),a141_0x925568(0x20f),a141_0x925568(0x209),a141_0x925568(0x261),'boolean',a141_0x925568(0x236),a141_0x925568(0x25f),a141_0x925568(0x288),a141_0x925568(0x27c)]),isImageContainer=_0x1b04d1=>[a141_0x925568(0x288),a141_0x925568(0x27c)][a141_0x925568(0x249)](_0x1b04d1[a141_0x925568(0x212)]()),hash=_0x1a9b43=>createHash(a141_0x925568(0x1fc))[a141_0x925568(0x265)](_0x1a9b43)['digest'](a141_0x925568(0x23e)),require=createRequire(import.meta.url),DefinedNameXform=require(a141_0x925568(0x266)),nameCoordinates=require(a141_0x925568(0x247)),ABSOLUTE_NAME_RANGE=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/,excelRequire=createRequire(require[a141_0x925568(0x1ec)](a141_0x925568(0x28a))),zipRequire=createRequire(excelRequire[a141_0x925568(0x1ec)](a141_0x925568(0x233))),ZipEntry=zipRequire(a141_0x925568(0x264)),zipReader=zipRequire(a141_0x925568(0x279)),zipUtf8=zipRequire(a141_0x925568(0x2b5)),zipPaths=zipRequire('./utils');function centralDirectoryEnd(_0x13698d,_0x2de87e){const _0x4768ab=a141_0x925568,_0x1c210e=()=>new Error(_0x4768ab(0x27e)),_0x1eb581=_0x13698d[_0x4768ab(0x2c8)](Buffer['from']([0x50,0x4b,0x5,0x6]));if(_0x1eb581<0x0||_0x1eb581+0x16>_0x13698d[_0x4768ab(0x1f8)]||_0x1eb581+0x16+_0x13698d[_0x4768ab(0x23f)](_0x1eb581+0x14)!==_0x13698d[_0x4768ab(0x1f8)])throw _0x1c210e();let _0x38970e=_0x13698d[_0x4768ab(0x23f)](_0x1eb581+0xa),_0x4c67e3=_0x13698d['readUInt32LE'](_0x1eb581+0xc),_0x7a8c33=_0x13698d[_0x4768ab(0x295)](_0x1eb581+0x10),_0x21f1d1=_0x1eb581;const _0x52bbdf=_0x1eb581-0x14,_0x14f4a1=_0x52bbdf>=0x0&&_0x13698d[_0x4768ab(0x295)](_0x52bbdf)===0x7064b50,_0xa4fe6a=[0x4,0x6,0x8,0xa][_0x4768ab(0x22c)](_0x337a6b=>_0x13698d[_0x4768ab(0x23f)](_0x1eb581+_0x337a6b)===0xffff)||_0x4c67e3===0xffffffff||_0x7a8c33===0xffffffff;if(_0x14f4a1!==_0xa4fe6a)throw _0x1c210e();if(_0x14f4a1){if(_0x13698d['lastIndexOf'](Buffer[_0x4768ab(0x2d7)]([0x50,0x4b,0x6,0x7]))!==_0x52bbdf)throw _0x1c210e();const _0x5f4d14=_0x16fade=>{const _0xaf891b=_0x4768ab,_0x5d0e07=Number(_0x13698d[_0xaf891b(0x2a0)](_0x16fade));if(!Number[_0xaf891b(0x286)](_0x5d0e07))throw _0x1c210e();return _0x5d0e07;};_0x21f1d1=_0x5f4d14(_0x52bbdf+0x8);if(_0x13698d[_0x4768ab(0x295)](_0x52bbdf+0x4)!==0x0||_0x13698d[_0x4768ab(0x295)](_0x52bbdf+0x10)!==0x1||_0x21f1d1>_0x52bbdf-0x38||_0x13698d[_0x4768ab(0x295)](_0x21f1d1)!==0x6064b50||_0x5f4d14(_0x21f1d1+0x4)!==0x2c||_0x21f1d1+0x38!==_0x52bbdf||_0x13698d[_0x4768ab(0x295)](_0x21f1d1+0x10)!==0x0||_0x13698d[_0x4768ab(0x295)](_0x21f1d1+0x14)!==0x0)throw _0x1c210e();_0x38970e=_0x5f4d14(_0x21f1d1+0x20),_0x4c67e3=_0x5f4d14(_0x21f1d1+0x28),_0x7a8c33=_0x5f4d14(_0x21f1d1+0x30);if(_0x5f4d14(_0x21f1d1+0x18)!==_0x38970e)throw _0x1c210e();}else{if(_0x13698d[_0x4768ab(0x23f)](_0x1eb581+0x4)!==0x0||_0x13698d['readUInt16LE'](_0x1eb581+0x6)!==0x0||_0x13698d[_0x4768ab(0x23f)](_0x1eb581+0x8)!==_0x38970e)throw _0x1c210e();}const _0x5d5799=_0x2de87e[_0x4768ab(0x21d)];if(_0x7a8c33!==_0x5d5799||_0x38970e!==_0x2de87e[_0x4768ab(0x226)]||_0x7a8c33+_0x4c67e3!==_0x21f1d1)throw _0x1c210e();return _0x21f1d1;}function consumerEntryName(_0x2bb4f2,_0xd65877){const _0x2ae1d9=a141_0x925568;if(_0xd65877[_0x2ae1d9(0x211)][_0x2ae1d9(0x2b2)](_0x246283=>_0x246283['id']===0x1)['length']>0x1)throw new Error(_0x2ae1d9(0x275));const _0x5c34a1=_0xd65877,_0x250438=_0xd65877['relativeOffsetOfLocalHeader'];if(!Buffer['isBuffer'](_0x5c34a1[_0x2ae1d9(0x276)])||!Buffer[_0x2ae1d9(0x2dd)](_0x5c34a1[_0x2ae1d9(0x2b3)])||!Buffer[_0x2ae1d9(0x2dd)](_0x5c34a1[_0x2ae1d9(0x1f5)])||!Number[_0x2ae1d9(0x286)](_0x250438)||_0x250438<0x0||_0x250438>_0x2bb4f2[_0x2ae1d9(0x1f8)]-0x1e||_0x2bb4f2[_0x2ae1d9(0x295)](_0x250438)!==0x4034b50)throw new Error(_0x2ae1d9(0x203));const _0x2a8eb1=_0x250438+0x1e+_0x2bb4f2[_0x2ae1d9(0x23f)](_0x250438+0x1a),_0x2c41b9=_0x2a8eb1+_0x2bb4f2[_0x2ae1d9(0x23f)](_0x250438+0x1c)+_0xd65877[_0x2ae1d9(0x1fe)];if(!Number[_0x2ae1d9(0x286)](_0x2c41b9)||_0x2c41b9>_0x2bb4f2[_0x2ae1d9(0x1f8)])throw new Error(_0x2ae1d9(0x203));if(_0x2a8eb1>_0x2bb4f2[_0x2ae1d9(0x1f8)]||!_0x2bb4f2[_0x2ae1d9(0x1ee)](_0x250438+0x1e,_0x2a8eb1)[_0x2ae1d9(0x2af)](_0x5c34a1['fileNameRaw']))throw new Error(_0x2ae1d9(0x2ce));const _0x5a5262=new ZipEntry({},{'decodeFileName':zipUtf8[_0x2ae1d9(0x2c4)]});_0x5a5262[_0x2ae1d9(0x27d)]=_0xd65877[_0x2ae1d9(0x219)],_0x5a5262[_0x2ae1d9(0x2c0)]=_0x5c34a1[_0x2ae1d9(0x276)],_0x5a5262[_0x2ae1d9(0x26b)]=_0x5c34a1[_0x2ae1d9(0x1f5)],_0x5a5262[_0x2ae1d9(0x21e)]=_0x5c34a1[_0x2ae1d9(0x2b3)][_0x2ae1d9(0x1f8)],_0x5a5262['readExtraFields'](zipReader(_0x5c34a1[_0x2ae1d9(0x2b3)])),_0x5a5262[_0x2ae1d9(0x206)](),_0x5a5262[_0x2ae1d9(0x2ca)]=_0xd65877['versionMadeBy'],_0x5a5262['externalFileAttributes']=_0xd65877[_0x2ae1d9(0x1f1)],_0x5a5262[_0x2ae1d9(0x24c)]();const _0x4f697b=_0x5a5262[_0x2ae1d9(0x2c5)]||Boolean((_0x5a5262[_0x2ae1d9(0x238)]??0x0)&0x4000),_0x19f72c=zipPaths[_0x2ae1d9(0x1ec)](_0x5a5262[_0x2ae1d9(0x2cf)]),_0x8c538a=_0x19f72c[_0x2ae1d9(0x2d8)]('/')?_0x19f72c[_0x2ae1d9(0x284)](0x1):_0x19f72c;return{'name':_0x8c538a,'original':_0x5a5262[_0x2ae1d9(0x2cf)],'directory':_0x4f697b};}export function normalizeImportFields(_0x94c00e){const _0xd76b62=a141_0x925568;if(!_0x94c00e||(_0x94c00e['source']??_0x94c00e[_0xd76b62(0x255)]?.[_0xd76b62(0x1e8)])!==_0xd76b62(0x223))throw new Error(_0xd76b62(0x1ef));const _0x2193b0=Array['isArray'](_0x94c00e['fields']),_0x40624d=_0x2193b0?_0x94c00e[_0xd76b62(0x269)]:_0x94c00e['properties'];if(!Array[_0xd76b62(0x2bd)](_0x40624d)||_0x40624d[_0xd76b62(0x1f8)]===0x0)throw new Error(_0xd76b62(0x23d));const _0x41a649=[],_0x183e34=new Set();for(const _0x4ec0fe of _0x40624d){if(_0x4ec0fe[_0xd76b62(0x2ae)]===!![])continue;let _0x270069=_0x4ec0fe[_0xd76b62(0x299)]??{};if(!_0x2193b0&&typeof _0x270069==='string'){try{_0x270069=JSON[_0xd76b62(0x2c6)](_0x270069);}catch{throw new Error(_0xd76b62(0x2c9));}if(!_0x270069||typeof _0x270069!==_0xd76b62(0x250)||Array[_0xd76b62(0x2bd)](_0x270069))throw new Error(_0xd76b62(0x2c9));}const _0xf6e3b6=_0x2193b0?_0x4ec0fe[_0xd76b62(0x2d3)]:_0x4ec0fe[_0xd76b62(0x278)],_0x3986a8=_0x2193b0?_0x4ec0fe[_0xd76b62(0x22b)]:_0x4ec0fe['type']??_0x4ec0fe[_0xd76b62(0x215)];if(typeof _0xf6e3b6!=='string'||!_0xf6e3b6||typeof _0x3986a8!==_0xd76b62(0x239)||_0x183e34[_0xd76b62(0x20d)](_0xf6e3b6))throw new Error(_0xd76b62(0x2be));if(_0x3986a8[_0xd76b62(0x212)]()===_0xd76b62(0x22e))throw new Error(_0xd76b62(0x29b));_0x183e34[_0xd76b62(0x23b)](_0xf6e3b6);const _0x1f9fcc=_0x2193b0?_0x4ec0fe:_0x270069,_0x4eca51={'code':_0xf6e3b6,'type':_0x3986a8,'required':_0x1f9fcc['required']===!![]};if(RESERVED['has'](_0xf6e3b6)||_0x1f9fcc[_0xd76b62(0x24f)]===!![]||_0x1f9fcc[_0xd76b62(0x273)]===!![])_0x4eca51['generated']=!![];_0x41a649['push'](_0x4eca51);}return _0x41a649;}async function checkArchive(_0x4fd783,_0x436c84){await new Promise((_0x4574b3,_0x32d46)=>{a141_0x46d9de['fromBuffer'](_0x4fd783,{'lazyEntries':!![],'validateEntrySizes':!![]},(_0x32d424,_0x5f4d06)=>{const _0x5005dc=a141_0x42bf;if(_0x32d424||!_0x5f4d06){_0x32d46(_0x32d424??new Error(_0x5005dc(0x2b0)));return;}let _0x268250;try{_0x268250=centralDirectoryEnd(_0x4fd783,_0x5f4d06);}catch(_0x2fe621){_0x5f4d06[_0x5005dc(0x268)](),_0x32d46(_0x2fe621);return;}let _0x85f579=0x0,_0x5172fa=0x0,_0x2cfeb8=0x0,_0x53961a=0x0,_0x2a4d2d=0x0,_0x46f71d=0x0,_0xc9e65=0x0,_0x3894e2=0x0,_0x148759=0x0,_0x2a59d2=![],_0x5f3d3e;const _0x555d93=new Set(),_0x46c28f=_0x5d2b76=>{if(_0x2a59d2)return;_0x2a59d2=!![],_0x5f3d3e?.['destroy'](),_0x5f4d06['close'](),_0x32d46(_0x5d2b76);},_0x49c10f=(_0x4b6d6a,_0x12e204)=>{const _0x28546f=_0x5005dc;if(!_0x4b6d6a||!/^\d+$/[_0x28546f(0x20b)](_0x4b6d6a))throw new Error(_0x28546f(0x242));const _0x39aa51=Number(_0x4b6d6a);if(!Number[_0x28546f(0x286)](_0x39aa51)||_0x39aa51<0x1||_0x39aa51>_0x12e204)throw new Error(_0x28546f(0x2a8)+_0x12e204+'.');return _0x39aa51;},_0x349bdb=(_0x497c19,_0x314a12=MAX_XML_COLUMNS)=>{const _0x2705b8=_0x5005dc,_0x266df8=/^\$?([A-Z]{1,3})\$?(\d+)$/['exec'](_0x497c19);if(!_0x266df8)throw new Error(_0x2705b8(0x237));let _0x44182d=0x0;for(const _0x105c2c of _0x266df8[0x1])_0x44182d=_0x44182d*0x1a+_0x105c2c[_0x2705b8(0x251)](0x0)-0x40;if(_0x44182d>_0x314a12)throw new Error(_0x2705b8(0x287)+_0x314a12+'\x20columns.');return{'row':_0x49c10f(_0x266df8[0x2],MAX_XML_ROWS),'col':_0x44182d};},_0x5e2071=_0x5c49bf=>{const _0x5b0be6=_0x5005dc;if(_0x5c49bf[_0x5b0be6(0x2d3)]===_0x5b0be6(0x200)||_0x5c49bf[_0x5b0be6(0x2d3)]===_0x5b0be6(0x204))return;for(const _0x42e64c of _0x5c49bf[_0x5b0be6(0x240)]){if(!ABSOLUTE_NAME_RANGE['test'](_0x42e64c[_0x5b0be6(0x274)]('!')['pop']()||''))continue;const _0x11ceff=nameCoordinates[_0x5b0be6(0x293)](_0x42e64c),_0x2c62ab=_0x5b0be6(0x2ab)in _0x11ceff,_0x1f0343=_0x2c62ab?[_0x11ceff[_0x5b0be6(0x2ab)],_0x11ceff[_0x5b0be6(0x28b)]]:[_0x11ceff[_0x5b0be6(0x1fa)]],_0xe9a0db=_0x2c62ab?[_0x11ceff[_0x5b0be6(0x24b)],_0x11ceff[_0x5b0be6(0x2c2)]]:[_0x11ceff[_0x5b0be6(0x22a)]],_0x1a92f6=(_0xc99f80,_0x3aa20a)=>Number[_0x5b0be6(0x286)](_0xc99f80)&&_0xc99f80>=0x1&&_0xc99f80<=_0x3aa20a;if(!_0x1f0343['every'](_0x2a4e05=>_0x1a92f6(_0x2a4e05,MAX_XML_ROWS))||!_0xe9a0db[_0x5b0be6(0x2ba)](_0x249c5c=>_0x1a92f6(_0x249c5c,MAX_XML_COLUMNS)))throw new Error(_0x5b0be6(0x28e));_0xc9e65+=_0x2c62ab?(_0x11ceff['bottom']-_0x11ceff['top']+0x1)*(_0x11ceff[_0x5b0be6(0x2c2)]-_0x11ceff[_0x5b0be6(0x24b)]+0x1):0x1;if(_0xc9e65>MAX_ROWS)throw new Error(_0x5b0be6(0x29f));}};_0x5f4d06['on']('error',_0x46c28f),_0x5f4d06['on'](_0x5005dc(0x25a),_0x342644=>{const _0xa22ec6=_0x5005dc;if(_0x2a59d2)return;if(++_0x2cfeb8>0x2710||(_0x85f579+=_0x342644['uncompressedSize'])>MAX_EXPANDED){_0x46c28f(new Error(_0xa22ec6(0x21f)));return;}let _0x1f5993;try{_0x1f5993=consumerEntryName(_0x4fd783,_0x342644);}catch(_0xdba623){_0x46c28f(_0xdba623);return;}if(_0x1f5993[_0xa22ec6(0x2d9)]){_0x5f4d06[_0xa22ec6(0x2b1)]();return;}const _0x118d5e=_0x1f5993['name'];if(_0x436c84&&(_0x118d5e!==_0x1f5993[_0xa22ec6(0x232)]||_0x555d93[_0xa22ec6(0x20d)](_0x118d5e)||_0x118d5e[_0xa22ec6(0x2d8)]('/')||_0x118d5e[_0xa22ec6(0x249)]('\x5c'))){_0x46c28f(new Error(_0xa22ec6(0x2a6)));return;}if(_0x118d5e!==_0x1f5993[_0xa22ec6(0x232)]&&(_0x118d5e==='xl/workbook.xml'||/xl\/worksheets\/sheet(\d+)[.]xml/[_0xa22ec6(0x20b)](_0x118d5e))){_0x46c28f(new Error(_0xa22ec6(0x28d)));return;}const _0x54ab99=_0x118d5e==='xl/workbook.xml';if(_0x54ab99&&_0x555d93[_0xa22ec6(0x20d)](_0x118d5e)){_0x46c28f(new Error(_0xa22ec6(0x2c7)));return;}_0x555d93[_0xa22ec6(0x23b)](_0x118d5e);const _0x4907b0=/xl\/worksheets\/sheet(\d+)[.]xml/[_0xa22ec6(0x20b)](_0x118d5e);if(_0x4907b0&&!/^xl\/worksheets\/sheet\d+[.]xml$/[_0xa22ec6(0x20b)](_0x118d5e)){_0x46c28f(new Error(_0xa22ec6(0x228)));return;}_0x5f4d06['openReadStream'](_0x342644,(_0x289f24,_0xad7790)=>{const _0x4396a7=_0xa22ec6;if(_0x2a59d2){_0xad7790?.[_0x4396a7(0x26f)]();return;}if(_0x289f24||!_0xad7790){_0x46c28f(_0x289f24??new Error(_0x4396a7(0x263)));return;}_0x5f3d3e=_0xad7790;const _0xb23393=_0x436c84?[]:undefined,_0x1b3fe2=_0x436c84&&/[.](xml|rels)$/[_0x4396a7(0x20b)](_0x118d5e)?new StringDecoder('utf8'):undefined,_0x22cb57=_0x1b3fe2?new SaxesParser({'xmlns':![]}):undefined,_0x275e21=()=>{const _0x296d7c=_0x4396a7;if(++_0x148759>0x1e8480)throw Error(_0x296d7c(0x214));};_0x22cb57?.['on'](_0x4396a7(0x1ed),()=>{const _0x202cc5=_0x4396a7;throw Error(_0x202cc5(0x271));}),_0x22cb57?.['on'](_0x4396a7(0x1ff),()=>{const _0x35bf49=_0x4396a7;_0x275e21();if(++_0x3894e2>0x7a120)throw Error(_0x35bf49(0x244));}),_0x22cb57?.['on']('text',_0x275e21),_0x22cb57?.['on'](_0x4396a7(0x1f0),_0x275e21),_0x22cb57?.['on'](_0x4396a7(0x260),_0x2cd26c=>{throw _0x2cd26c;});const _0xecb906=_0x4907b0||_0x54ab99?new StringDecoder('utf8'):undefined,_0x187c3a=_0x4907b0||_0x54ab99?new SaxesParser({'xmlns':![]}):undefined;let _0x549e08,_0x371226=0x0,_0x26f665=0x0,_0x5e1a22,_0x409810,_0x1a7bfc=![],_0x41c280=![],_0x540c8a,_0x16ef54,_0x78170,_0x50d7d4=![];const _0x4c439c=[],_0x1bad3f=new Set();let _0x2d88b1;const _0x3e9e82=(_0x12ebb2,_0x36ac96=0x0)=>{const _0x5bf5f9=_0x4396a7;_0x2a4d2d+=_0x36ac96+Math[_0x5bf5f9(0x2d6)](0x0,_0x12ebb2-_0x26f665),_0x26f665=Math['max'](_0x26f665,_0x12ebb2);if(_0x2a4d2d>MAX_ROWS)throw new Error('Worksheet\x20column\x20objects\x20exceed\x20100000.');};_0x187c3a?.['on'](_0x4396a7(0x1ff),_0x45f225=>{const _0x4edbf5=_0x4396a7;if(_0x54ab99){if(!_0x549e08&&_0x45f225['name']==='definedName')_0x549e08=new DefinedNameXform();_0x549e08?.['parseOpen'](_0x45f225);return;}if(_0x45f225[_0x4edbf5(0x2d3)]==='row'){if(_0x41c280)throw new Error('Invalid\x20worksheet\x20nested\x20row.');_0x49c10f(_0x45f225[_0x4edbf5(0x2c3)]['r'],MAX_XML_ROWS),_0x5e1a22=undefined,_0x78170=undefined,_0x50d7d4=![];}else{if(_0x45f225[_0x4edbf5(0x2d3)]==='c'){if(_0x41c280)throw new Error('Invalid\x20worksheet\x20nested\x20cell.');_0x41c280=!![],_0x1a7bfc=Boolean(Number[_0x4edbf5(0x2d4)](_0x45f225[_0x4edbf5(0x2c3)]['s']??'',0xa)),_0x2d88b1=undefined,_0x540c8a=_0x45f225[_0x4edbf5(0x2c3)]['r']||undefined,_0x16ef54=_0x540c8a?_0x349bdb(_0x540c8a):undefined;if(_0x16ef54)_0x409810=_0x16ef54;else _0x409810=_0x5e1a22?{'row':_0x5e1a22[_0x4edbf5(0x1fa)],'col':_0x5e1a22[_0x4edbf5(0x22a)]+0x1}:undefined;}else{if(_0x41c280&&['f','v','t'][_0x4edbf5(0x249)](_0x45f225[_0x4edbf5(0x2d3)])){_0x2d88b1=_0x45f225['name'];if(_0x45f225[_0x4edbf5(0x2d3)]==='f'&&_0x45f225[_0x4edbf5(0x2c3)]['t'])_0x1a7bfc=!![];}else{if(_0x41c280&&_0x45f225['name']==='r')_0x1a7bfc=!![];else{if(_0x45f225[_0x4edbf5(0x2d3)]===_0x4edbf5(0x221)){const _0x332918=_0x45f225[_0x4edbf5(0x2c3)]['ref'];if(!_0x332918)throw new Error(_0x4edbf5(0x2ad));const _0x24f0c2=_0x332918['split'](':');if(_0x24f0c2[_0x4edbf5(0x1f8)]>0x2)throw new Error(_0x4edbf5(0x2ad));const _0x4f1c61=_0x349bdb(_0x24f0c2[0x0]),_0x345099=_0x349bdb(_0x24f0c2[0x1]??_0x24f0c2[0x0]);_0x1bad3f[_0x4edbf5(0x23b)](_0x332918),_0x3e9e82(Math[_0x4edbf5(0x2d6)](_0x4f1c61['col'],_0x345099[_0x4edbf5(0x22a)]),0x1);}else{if(_0x45f225['name']===_0x4edbf5(0x22a)){const _0x9a9968=_0x49c10f(_0x45f225[_0x4edbf5(0x2c3)]['min'],0x4000),_0x232f52=_0x49c10f(_0x45f225[_0x4edbf5(0x2c3)][_0x4edbf5(0x2d6)],0x4000);if(_0x9a9968>_0x232f52)throw new Error(_0x4edbf5(0x235));_0x3e9e82(_0x232f52,0x1);}else{if(_0x45f225[_0x4edbf5(0x2d3)]===_0x4edbf5(0x2cb)){const _0xe8045b=_0x45f225['attributes']['ref'];if(!_0xe8045b)throw new Error(_0x4edbf5(0x2a4));const _0x5b835a=_0xe8045b[_0x4edbf5(0x274)](':');if(_0x5b835a[_0x4edbf5(0x1f8)]>0x2)throw new Error(_0x4edbf5(0x2a4));const _0x5b82be=_0x349bdb(_0x5b835a[0x0]),_0x137002=_0x349bdb(_0x5b835a[0x1]??_0x5b835a[0x0]);_0x3e9e82(Math[_0x4edbf5(0x2d6)](_0x5b82be['col'],_0x137002[_0x4edbf5(0x22a)]));const _0x702428=(Math[_0x4edbf5(0x2a7)](_0x137002[_0x4edbf5(0x1fa)]-_0x5b82be[_0x4edbf5(0x1fa)])+0x1)*(Math[_0x4edbf5(0x2a7)](_0x137002[_0x4edbf5(0x22a)]-_0x5b82be[_0x4edbf5(0x22a)])+0x1);_0x53961a+=_0x702428+_0x371226++;if(_0x53961a>MAX_ROWS)throw new Error(_0x4edbf5(0x2d0));}}}}}}}}),_0x187c3a?.['on'](_0x4396a7(0x26e),_0x27d8ff=>{const _0x3370ad=_0x4396a7;if(_0x54ab99){_0x549e08?.[_0x3370ad(0x277)](_0x27d8ff);return;}if(_0x41c280&&_0x2d88b1&&_0x27d8ff)_0x1a7bfc=!![];}),_0x187c3a?.['on'](_0x4396a7(0x1f0),_0x287447=>{const _0x30bc2f=_0x4396a7;if(_0x54ab99){_0x549e08&&!_0x549e08[_0x30bc2f(0x213)]()&&(_0x5e2071(_0x549e08[_0x30bc2f(0x2c1)]),_0x549e08=undefined);return;}if(_0x287447[_0x30bc2f(0x2d3)]==='c'){!_0x1a7bfc&&_0x540c8a&&!_0x78170&&(_0x78170={'before':_0x5e1a22,'cells':[]});if(_0x78170){if(++_0x46f71d>0xf4240)throw new Error(_0x30bc2f(0x227));_0x78170[_0x30bc2f(0x24d)][_0x30bc2f(0x283)]({'reference':_0x540c8a,'address':_0x16ef54,'materialized':_0x1a7bfc});if(!_0x540c8a&&_0x1a7bfc)_0x50d7d4=!![];}if(_0x1a7bfc){if(!_0x78170||_0x540c8a){if(!_0x409810)throw new Error(_0x30bc2f(0x2a5));if(_0x409810[_0x30bc2f(0x22a)]>MAX_XML_COLUMNS)throw new Error(_0x30bc2f(0x243));_0x3e9e82(_0x409810[_0x30bc2f(0x22a)]);}_0x5e1a22=_0x409810;}_0x41c280=![],_0x409810=undefined,_0x540c8a=undefined,_0x16ef54=undefined,_0x2d88b1=undefined;}else{if(_0x287447[_0x30bc2f(0x2d3)]==='row'){if(_0x78170&&_0x50d7d4)_0x4c439c['push'](_0x78170);_0x78170=undefined,_0x50d7d4=![];}else{if(_0x287447[_0x30bc2f(0x2d3)]===_0x2d88b1)_0x2d88b1=undefined;}}}),_0x187c3a?.['on'](_0x4396a7(0x260),_0x81b28e=>{const _0x4b2f68=_0x4396a7;throw new Error(_0x4b2f68(0x2bc)+_0x81b28e[_0x4b2f68(0x282)]);}),_0xad7790['on'](_0x4396a7(0x260),_0x46c28f),_0xad7790['on'](_0x4396a7(0x1ea),_0x451c7e=>{const _0x113b6b=_0x4396a7;if(_0x2a59d2)return;_0x5172fa+=_0x451c7e['length'],_0xb23393?.['push'](_0x451c7e);if(_0x5172fa>MAX_EXPANDED){_0x46c28f(new Error(_0x113b6b(0x21f)));return;}try{if(_0x22cb57&&_0x1b3fe2)_0x22cb57[_0x113b6b(0x241)](_0x1b3fe2['write'](_0x451c7e));if(_0x187c3a&&_0xecb906)_0x187c3a[_0x113b6b(0x241)](_0xecb906[_0x113b6b(0x241)](_0x451c7e));}catch(_0x4f5214){_0x46c28f(_0x4f5214 instanceof Error?_0x4f5214:new Error('Invalid\x20worksheet\x20XML.'));}}),_0xad7790['on']('end',()=>{const _0x505d29=_0x4396a7;if(_0x2a59d2)return;try{if(_0x22cb57&&_0x1b3fe2)_0x22cb57['write'](_0x1b3fe2[_0x505d29(0x257)]())['close']();if(_0x187c3a&&_0xecb906)_0x187c3a['write'](_0xecb906['end']())[_0x505d29(0x268)]();for(const _0x34ff36 of _0x4c439c){let _0x118938=_0x34ff36[_0x505d29(0x23c)];for(const _0x11915c of _0x34ff36[_0x505d29(0x24d)]){if(!_0x11915c[_0x505d29(0x207)]&&!(_0x11915c[_0x505d29(0x290)]&&_0x1bad3f[_0x505d29(0x20d)](_0x11915c[_0x505d29(0x290)])))continue;const _0x459a17=_0x11915c[_0x505d29(0x24a)]??(_0x118938?{'row':_0x118938[_0x505d29(0x1fa)],'col':_0x118938[_0x505d29(0x22a)]+0x1}:undefined);if(!_0x459a17)throw new Error(_0x505d29(0x2a5));if(_0x459a17[_0x505d29(0x22a)]>MAX_XML_COLUMNS)throw new Error(_0x505d29(0x243));_0x3e9e82(_0x459a17['col']),_0x118938=_0x459a17;}}_0x4c439c['length']=0x0,_0x1bad3f[_0x505d29(0x2b4)]();}catch(_0x3bb8fe){_0x46c28f(_0x3bb8fe instanceof Error?_0x3bb8fe:new Error(_0x505d29(0x2de)));return;}if(_0xb23393)_0x436c84['set'](_0x118d5e,Buffer[_0x505d29(0x28c)](_0xb23393));_0x5f3d3e=undefined,_0x5f4d06[_0x505d29(0x2b1)]();});});}),_0x5f4d06['on'](_0x5005dc(0x257),()=>{const _0x1b33f6=_0x5005dc;if(_0x2a59d2)return;if(_0x5f4d06[_0x1b33f6(0x21d)]!==_0x268250){_0x32d46(new Error('ZIP\x20central\x20directory\x20entry\x20count\x20does\x20not\x20match\x20its\x20contents.'));return;}if(!_0x555d93[_0x1b33f6(0x20d)](_0x1b33f6(0x2b9))||!_0x555d93[_0x1b33f6(0x20d)]('xl/workbook.xml'))_0x32d46(new Error(_0x1b33f6(0x23a)));else _0x4574b3();}),_0x5f4d06['readEntry']();});});}function valueOf(_0x55eba3){const _0x57a9cb=a141_0x925568,_0x1cde10=_0x55eba3[_0x57a9cb(0x298)];if(_0x1cde10&&typeof _0x1cde10===_0x57a9cb(0x250)&&(_0x57a9cb(0x25b)in _0x1cde10||_0x57a9cb(0x230)in _0x1cde10)){if(!(_0x57a9cb(0x28f)in _0x1cde10)||_0x1cde10[_0x57a9cb(0x28f)]===undefined)throw new Error('Formula\x20has\x20no\x20cached\x20result.');return _0x1cde10[_0x57a9cb(0x28f)];}return _0x1cde10;}function convert(_0x36a0fa,_0x49b8a2){const _0x4302f1=a141_0x925568;if(_0x36a0fa===null||_0x36a0fa===undefined||_0x36a0fa===''){if(_0x49b8a2[_0x4302f1(0x2dc)]&&!_0x49b8a2[_0x4302f1(0x24f)])throw new Error(_0x4302f1(0x217));return null;}if(typeof _0x36a0fa==='string'&&Buffer[_0x4302f1(0x294)](_0x36a0fa,'utf8')>MAX_CELL)throw new Error(_0x4302f1(0x292));switch(_0x49b8a2[_0x4302f1(0x220)][_0x4302f1(0x212)]()){case _0x4302f1(0x239):case _0x4302f1(0x26e):case _0x4302f1(0x224):if(typeof _0x36a0fa!=='string')throw new Error(_0x4302f1(0x248));return _0x36a0fa;case _0x4302f1(0x20f):case _0x4302f1(0x209):case'integer':if(typeof _0x36a0fa!=='number'||!Number[_0x4302f1(0x208)](_0x36a0fa)||Math['abs'](_0x36a0fa)>Number[_0x4302f1(0x281)]||_0x49b8a2['type'][_0x4302f1(0x212)]()===_0x4302f1(0x261)&&!Number[_0x4302f1(0x2a1)](_0x36a0fa))throw new Error('Expected\x20a\x20finite\x20safe\x20numeric\x20cell.');return _0x36a0fa;case _0x4302f1(0x22f):if(typeof _0x36a0fa!==_0x4302f1(0x22f))throw new Error('Expected\x20a\x20boolean\x20cell.');return _0x36a0fa;case _0x4302f1(0x236):case _0x4302f1(0x25f):if(!(_0x36a0fa instanceof Date)||!Number[_0x4302f1(0x208)](_0x36a0fa[_0x4302f1(0x1fb)]()))throw new Error('Expected\x20an\x20Excel\x20date\x20cell.');return _0x36a0fa[_0x4302f1(0x1fb)]();default:throw new Error(_0x4302f1(0x25c)+_0x49b8a2['type']+'.');}}export async function buildExcelManifest(_0x4d7ae0){const _0x2ebc3f=a141_0x925568,_0xf9c08=_0x4d7ae0[_0x2ebc3f(0x210)]??0x1;if(!Number['isInteger'](_0xf9c08)||_0xf9c08<0x1||_0xf9c08>MAX_ROWS)throw new Error('headerRow\x20must\x20be\x20between\x201\x20and\x20100000.');if(_0x4d7ae0[_0x2ebc3f(0x1eb)]!==undefined&&(!Number[_0x2ebc3f(0x2a1)](_0x4d7ae0['batchSize'])||_0x4d7ae0['batchSize']<0x1||_0x4d7ae0['batchSize']>0x3e8))throw new Error(_0x2ebc3f(0x2cc));if(a141_0x4a9a16[_0x2ebc3f(0x2b6)](_0x4d7ae0[_0x2ebc3f(0x29d)])['toLowerCase']()!=='.xlsx')throw new Error(_0x2ebc3f(0x254));const _0xe0b0bb=await stat(_0x4d7ae0[_0x2ebc3f(0x29d)]);if(!_0xe0b0bb[_0x2ebc3f(0x225)]()||_0xe0b0bb[_0x2ebc3f(0x27a)]>MAX_FILE)throw new Error(_0x2ebc3f(0x291));const _0x424d5a=await readFile(_0x4d7ae0['file']);if(_0x424d5a[_0x2ebc3f(0x1f8)]>MAX_FILE)throw new Error('XLSX\x20file\x20exceeds\x2020\x20MB.');const _0x3639ab=_0x4d7ae0[_0x2ebc3f(0x269)][_0x2ebc3f(0x22c)](_0x2ede79=>isImageContainer(_0x2ede79[_0x2ebc3f(0x220)])&&Object[_0x2ebc3f(0x2bb)](_0x4d7ae0['mapping'])['includes'](_0x2ede79[_0x2ebc3f(0x278)]))?new Map():undefined;await checkArchive(_0x424d5a,_0x3639ab);const _0x343691=new a141_0x1ddc8b[(_0x2ebc3f(0x256))]();await _0x343691[_0x2ebc3f(0x2ac)][_0x2ebc3f(0x21c)](_0x424d5a,{'ignoreNodes':[_0x2ebc3f(0x24e)]});const _0x429169=_0x4d7ae0[_0x2ebc3f(0x205)];let _0x4e68ca;if(_0x429169===undefined)_0x4e68ca=_0x343691[_0x2ebc3f(0x2d2)][0x0];else{if(typeof _0x429169===_0x2ebc3f(0x239)&&_0x343691[_0x2ebc3f(0x2d2)]['some'](_0x2f1d1=>_0x2f1d1[_0x2ebc3f(0x2d3)]===_0x429169))_0x4e68ca=_0x343691[_0x2ebc3f(0x2d2)][_0x2ebc3f(0x1f7)](_0x570cc7=>_0x570cc7[_0x2ebc3f(0x2d3)]===_0x429169);else{if(typeof _0x429169===_0x2ebc3f(0x20f)||/^\d+$/[_0x2ebc3f(0x20b)](_0x429169)){const _0x516270=Number(_0x429169);if(!Number[_0x2ebc3f(0x2a1)](_0x516270)||_0x516270<0x1)throw new Error(_0x2ebc3f(0x29e));_0x4e68ca=_0x343691[_0x2ebc3f(0x2d2)][_0x516270-0x1];}else _0x4e68ca=_0x343691[_0x2ebc3f(0x2d2)][_0x2ebc3f(0x1f7)](_0x8ede70=>_0x8ede70[_0x2ebc3f(0x2d3)]===_0x429169);}}if(!_0x4e68ca)throw new Error('Requested\x20worksheet\x20does\x20not\x20exist.');if(_0x4e68ca[_0x2ebc3f(0x289)]>MAX_ROWS||_0x4e68ca[_0x2ebc3f(0x231)]>MAX_COLUMNS)throw new Error('Worksheet\x20exceeds\x20100000\x20rows\x20or\x20256\x20columns.');if((_0x4e68ca[_0x2ebc3f(0x2c1)][_0x2ebc3f(0x246)]??[])[_0x2ebc3f(0x1f8)])throw new Error('Merged\x20cells\x20are\x20not\x20supported.');const _0x4ddd39=new Map();_0x4e68ca[_0x2ebc3f(0x27b)](_0xf9c08)['eachCell']((_0x1cf6cb,_0xcfbf8a)=>{const _0x136827=_0x2ebc3f,_0x34def9=valueOf(_0x1cf6cb);if(typeof _0x34def9!==_0x136827(0x239)||!_0x34def9[_0x136827(0x252)]()||Buffer['byteLength'](_0x34def9)>MAX_CELL)throw new Error(_0x136827(0x2b7));if(_0x4ddd39['has'](_0x34def9))throw new Error(_0x136827(0x2a2)+_0x34def9+'.');_0x4ddd39[_0x136827(0x259)](_0x34def9,_0xcfbf8a);});const _0x59c053=Object[_0x2ebc3f(0x245)](_0x4d7ae0[_0x2ebc3f(0x2d5)]);if(!_0x59c053[_0x2ebc3f(0x1f8)])throw new Error(_0x2ebc3f(0x21a));const _0x5a2aaf=new Map(_0x4d7ae0[_0x2ebc3f(0x269)][_0x2ebc3f(0x1e6)](_0x4476e2=>[_0x4476e2[_0x2ebc3f(0x278)],_0x4476e2]));if(_0x5a2aaf[_0x2ebc3f(0x27a)]!==_0x4d7ae0[_0x2ebc3f(0x269)][_0x2ebc3f(0x1f8)])throw new Error(_0x2ebc3f(0x20c));if(_0x4d7ae0[_0x2ebc3f(0x269)][_0x2ebc3f(0x22c)](_0x5cc587=>_0x5cc587[_0x2ebc3f(0x220)][_0x2ebc3f(0x212)]()===_0x2ebc3f(0x22e)))throw new Error('Unsupported\x20dataset\x20field\x20type:\x20serial_number.');const _0x31789c=new Set();for(const [_0x2330ba,_0x5cf69b]of _0x59c053){const _0x971ddb=_0x5a2aaf[_0x2ebc3f(0x1f2)](_0x5cf69b);if(!_0x4ddd39[_0x2ebc3f(0x20d)](_0x2330ba))throw new Error(_0x2ebc3f(0x1e7)+_0x2330ba+'.');if(!_0x971ddb||RESERVED['has'](_0x5cf69b)||_0x971ddb[_0x2ebc3f(0x24f)])throw new Error('Unknown\x20or\x20generated\x20mapping\x20field:\x20'+_0x5cf69b+'.');if(_0x31789c['has'](_0x5cf69b))throw new Error(_0x2ebc3f(0x26d)+_0x5cf69b+'.');if(!TYPES[_0x2ebc3f(0x20d)](_0x971ddb[_0x2ebc3f(0x220)][_0x2ebc3f(0x212)]()))throw new Error('Unsupported\x20field\x20type:\x20'+_0x971ddb['type']+'.');_0x31789c[_0x2ebc3f(0x23b)](_0x5cf69b);}for(const _0x300290 of _0x4d7ae0[_0x2ebc3f(0x269)]){if(_0x300290[_0x2ebc3f(0x2dc)]&&!_0x300290[_0x2ebc3f(0x24f)]&&!RESERVED[_0x2ebc3f(0x20d)](_0x300290['code'])&&!_0x31789c[_0x2ebc3f(0x20d)](_0x300290[_0x2ebc3f(0x278)]))throw new Error(_0x2ebc3f(0x270)+_0x300290[_0x2ebc3f(0x278)]+'.');}const _0x27efa2={'fileHash':hash(_0x424d5a),'mappingHash':hash(JSON['stringify']([..._0x59c053][_0x2ebc3f(0x202)](([_0x300dbf],[_0x284284])=>_0x300dbf[_0x2ebc3f(0x253)](_0x284284)))),'schemaHash':hash(JSON[_0x2ebc3f(0x234)]([..._0x4d7ae0[_0x2ebc3f(0x269)]][_0x2ebc3f(0x202)]((_0x4d40d8,_0x42acaa)=>_0x4d40d8[_0x2ebc3f(0x278)][_0x2ebc3f(0x253)](_0x42acaa[_0x2ebc3f(0x278)])))),'sheet':_0x4e68ca[_0x2ebc3f(0x2d3)],'rows':[],'emptyRows':[],'errors':[],'warnings':[]},_0x3558ce=_0x59c053[_0x2ebc3f(0x2b2)](([,_0x435c8e])=>isImageContainer(_0x5a2aaf[_0x2ebc3f(0x1f2)](_0x435c8e)[_0x2ebc3f(0x220)])),_0x42f99b=_0x3558ce['filter'](([,_0x455b5c])=>_0x5a2aaf[_0x2ebc3f(0x1f2)](_0x455b5c)[_0x2ebc3f(0x220)][_0x2ebc3f(0x212)]()===_0x2ebc3f(0x27c))[_0x2ebc3f(0x1e6)](([,_0x236db1])=>_0x236db1);if(_0x42f99b['length'])_0x27efa2[_0x2ebc3f(0x262)]=_0x42f99b;const _0x2ef08c=_0x3639ab?resolveWorksheetImages(_0x3639ab,_0x4e68ca['name'],new Set(_0x3558ce[_0x2ebc3f(0x1e6)](([_0x57b335])=>_0x4ddd39[_0x2ebc3f(0x1f2)](_0x57b335)))):[],_0x4d6259=new Map();for(const _0x16d57b of _0x2ef08c){const _0x36c0fe=_0x16d57b[_0x2ebc3f(0x1fa)]+':'+_0x16d57b['col'],_0x268d6f=_0x4d6259[_0x2ebc3f(0x1f2)](_0x36c0fe)??[];_0x268d6f[_0x2ebc3f(0x283)](_0x16d57b),_0x4d6259[_0x2ebc3f(0x259)](_0x36c0fe,_0x268d6f);}const _0x1b573c=new Map();let _0x5b27ba=0x0;_0x3558ce[_0x2ebc3f(0x1f8)]&&(_0x27efa2[_0x2ebc3f(0x1e9)]=_0x3558ce[_0x2ebc3f(0x1e6)](([,_0x330514])=>_0x330514),_0x27efa2[_0x2ebc3f(0x2aa)]=[],_0x27efa2[_0x2ebc3f(0x29a)]=0x1,_0x27efa2[_0x2ebc3f(0x27f)]=[]);const _0x1119ad=Math[_0x2ebc3f(0x2d6)](0x0,..._0x2ef08c[_0x2ebc3f(0x1e6)](_0x16ab55=>_0x16ab55[_0x2ebc3f(0x1fa)]));let _0x360b22=0x0;const _0x107466=new Set(_0x59c053['map'](([_0x52d02d])=>_0x4ddd39[_0x2ebc3f(0x1f2)](_0x52d02d)));for(let _0x281e5c=_0xf9c08+0x1;_0x281e5c<=Math['max'](_0x4e68ca[_0x2ebc3f(0x289)],_0x1119ad);_0x281e5c++){const _0x3ea7dd=_0x4e68ca[_0x2ebc3f(0x27b)](_0x281e5c);if(_0x3ea7dd[_0x2ebc3f(0x1e5)]||_0x2ef08c[_0x2ebc3f(0x22c)](_0x11a651=>_0x11a651[_0x2ebc3f(0x1fa)]===_0x281e5c&&_0x11a651[_0x2ebc3f(0x1f9)]))_0x360b22++;let _0x5df93a=_0x2ef08c['some'](_0x30b964=>_0x30b964['row']===_0x281e5c);_0x3ea7dd[_0x2ebc3f(0x296)](_0x57fabb=>{const _0x1eb64f=_0x2ebc3f;if(_0x57fabb['value']!==null&&_0x57fabb[_0x1eb64f(0x298)]!==undefined&&_0x57fabb['value']!=='')_0x5df93a=!![];});if(!_0x5df93a){_0x27efa2[_0x2ebc3f(0x297)][_0x2ebc3f(0x283)](_0x281e5c);continue;}const _0x4bc930=Object[_0x2ebc3f(0x21b)](null);_0x3ea7dd['eachCell']((_0x385592,_0x48aea7)=>{const _0x1584f1=_0x2ebc3f;if(_0x107466[_0x1584f1(0x20d)](_0x48aea7))return;try{const _0x104676=valueOf(_0x385592);if(typeof _0x104676===_0x1584f1(0x239)&&Buffer[_0x1584f1(0x294)](_0x104676,'utf8')>MAX_CELL)throw new Error('Cell\x20exceeds\x2064\x20KB.');}catch(_0x2f5007){_0x27efa2[_0x1584f1(0x25e)][_0x1584f1(0x283)]({'rowNumber':_0x281e5c,'field':_0x385592[_0x1584f1(0x24a)],'message':_0x2f5007[_0x1584f1(0x282)]});}});for(const [_0x36ffbd,_0x455a25]of _0x59c053){try{const _0x512bdd=_0x3ea7dd[_0x2ebc3f(0x25d)](_0x4ddd39['get'](_0x36ffbd)),_0x590090=_0x5a2aaf[_0x2ebc3f(0x1f2)](_0x455a25);if(!isImageContainer(_0x590090['type'])){_0x4bc930[_0x455a25]=convert(valueOf(_0x512bdd),_0x590090);continue;}const _0x1d4f75=_0x4d6259[_0x2ebc3f(0x1f2)](_0x281e5c+':'+_0x4ddd39[_0x2ebc3f(0x1f2)](_0x36ffbd))??[];if(_0x1d4f75[_0x2ebc3f(0x22c)](_0x5c6741=>_0x5c6741[_0x2ebc3f(0x260)]))throw Error(_0x1d4f75['find'](_0x24f42f=>_0x24f42f['error'])[_0x2ebc3f(0x260)]);if(_0x512bdd[_0x2ebc3f(0x298)]!=null&&_0x512bdd[_0x2ebc3f(0x298)]!==''&&!_0x1d4f75[_0x2ebc3f(0x22c)](_0x5b6705=>_0x5b6705['nativeCell']))throw Error(_0x2ebc3f(0x2d1));const _0x20d2f7=[];for(const _0x44e03b of _0x1d4f75)for(const _0x301409 of _0x44e03b[_0x2ebc3f(0x27f)]){const _0x37b573=_0x3639ab[_0x2ebc3f(0x1f2)](_0x301409);if(!_0x37b573)throw Error('Missing\x20image\x20media:\x20'+_0x301409+'.');const _0x2af2aa=hash(_0x37b573),_0x285b12=_0x1b573c[_0x2ebc3f(0x1f2)](_0x2af2aa)??validateImageBytes(_0x37b573);if(!_0x1b573c[_0x2ebc3f(0x20d)](_0x285b12['contentHash'])){_0x5b27ba+=_0x285b12['size'];if(_0x5b27ba>0x32*0x400*0x400)throw Error(_0x2ebc3f(0x2bf));_0x1b573c[_0x2ebc3f(0x259)](_0x285b12[_0x2ebc3f(0x2a3)],_0x285b12);}_0x20d2f7[_0x2ebc3f(0x283)](_0x285b12[_0x2ebc3f(0x2a3)]);}if(!_0x20d2f7[_0x2ebc3f(0x1f8)]&&_0x590090[_0x2ebc3f(0x2dc)])throw Error(_0x2ebc3f(0x29c));if(_0x20d2f7[_0x2ebc3f(0x1f8)])_0x27efa2['imageCells'][_0x2ebc3f(0x283)]({'rowNumber':_0x281e5c,'field':_0x455a25,'hashes':_0x20d2f7});_0x4bc930[_0x455a25]=_0x20d2f7['map'](_0x326c62=>{const _0x14e450=_0x2ebc3f,_0x6ad74d=_0x1b573c[_0x14e450(0x1f2)](_0x326c62),_0x5d923a=_0x6ad74d[_0x14e450(0x220)]===_0x14e450(0x1fd)?_0x14e450(0x272):_0x6ad74d[_0x14e450(0x220)][_0x14e450(0x284)](0x6),_0x440bcc=_0x326c62+'.'+_0x5d923a,_0xeaa770=_0x14e450(0x20a)+'0'[_0x14e450(0x229)](0x40)+'/'+_0x440bcc;return _0x590090[_0x14e450(0x220)][_0x14e450(0x212)]()===_0x14e450(0x27c)?{'fileName':_0x440bcc,'filePath':_0xeaa770}:{'key':_0xeaa770,'name':_0x440bcc,'type':_0x6ad74d['type'],'size':_0x6ad74d[_0x14e450(0x27a)]};});}catch(_0xeeb780){_0x27efa2[_0x2ebc3f(0x25e)][_0x2ebc3f(0x283)]({'rowNumber':_0x281e5c,'field':_0x455a25,'message':_0xeeb780['message']});}}_0x27efa2[_0x2ebc3f(0x2a9)][_0x2ebc3f(0x283)]({'rowNumber':_0x281e5c,'values':_0x4bc930});}if(_0x27efa2['media'])_0x27efa2[_0x2ebc3f(0x27f)]=[..._0x1b573c[_0x2ebc3f(0x2bb)]()];if(_0x360b22)_0x27efa2[_0x2ebc3f(0x222)][_0x2ebc3f(0x283)](_0x360b22+_0x2ebc3f(0x2cd));return _0x27efa2;}
@@ -1 +1 @@
1
- (function(_0x4c9e0b,_0x2a9c41){const _0x168318=a141_0x2bc6,_0xc30990=_0x4c9e0b();while(!![]){try{const _0x1a7891=-parseInt(_0x168318(0x112))/0x1*(parseInt(_0x168318(0xf4))/0x2)+-parseInt(_0x168318(0x116))/0x3*(-parseInt(_0x168318(0xf2))/0x4)+-parseInt(_0x168318(0x109))/0x5+parseInt(_0x168318(0xfc))/0x6*(parseInt(_0x168318(0xe4))/0x7)+-parseInt(_0x168318(0xeb))/0x8*(-parseInt(_0x168318(0x114))/0x9)+-parseInt(_0x168318(0x111))/0xa+-parseInt(_0x168318(0xfb))/0xb*(-parseInt(_0x168318(0xfd))/0xc);if(_0x1a7891===_0x2a9c41)break;else _0xc30990['push'](_0xc30990['shift']());}catch(_0x98bfc6){_0xc30990['push'](_0xc30990['shift']());}}}(a141_0x5975,0x8b63d));import{createRequire}from'node:module';import{createHash}from'node:crypto';function a141_0x2bc6(_0x15a272,_0x1bba3b){_0x15a272=_0x15a272-0xe4;const _0x597597=a141_0x5975();let _0x2bc64c=_0x597597[_0x15a272];return _0x2bc64c;}import{inflateSync}from'node:zlib';const require=createRequire(import.meta.url),MAX_PIXELS=0x2625a00;function dimensions(_0x15ee32,_0x3d37bf){const _0x3f3cf0=a141_0x2bc6;if(!Number[_0x3f3cf0(0xee)](_0x15ee32)||!Number[_0x3f3cf0(0xee)](_0x3d37bf)||_0x15ee32<0x1||_0x3d37bf<0x1||_0x15ee32*_0x3d37bf>MAX_PIXELS)throw Error(_0x3f3cf0(0xe6));}function validateGif(_0x40b16a){const _0x5e217d=a141_0x2bc6;let _0x1b271d=0xd,_0x20f6d4=0x0,_0x737739=0x0;const _0x87d2d3=_0x40b16a[_0x5e217d(0x10f)](0x6),_0x2c2f40=_0x40b16a[_0x5e217d(0x10f)](0x8),_0xa3419b=_0x40b16a[0xa]&0x80?0x1<<(_0x40b16a[0xa]&0x7)+0x1:0x0,_0x53a12b=_0x3a267d=>{const _0x579640=_0x5e217d;if(_0x1b271d+_0x3a267d>_0x40b16a[_0x579640(0xf8)])throw Error('Truncated\x20GIF\x20data.');};_0x1b271d+=_0xa3419b*0x3,_0x53a12b(0x0);const _0xc4d167=()=>{const _0x1fab6a=_0x5e217d,_0x18fe8d=[];while(!![]){_0x53a12b(0x1);const _0x376450=_0x40b16a[_0x1b271d++];if(!_0x376450)break;_0x53a12b(_0x376450),_0x18fe8d[_0x1fab6a(0x115)](_0x40b16a[_0x1fab6a(0x11e)](_0x1b271d,_0x1b271d+_0x376450)),_0x1b271d+=_0x376450;}return Buffer[_0x1fab6a(0x104)](_0x18fe8d);};while(_0x1b271d<_0x40b16a['length']){const _0xbf5932=_0x40b16a[_0x1b271d++];if(_0xbf5932===0x3b){if(!_0x20f6d4||_0x1b271d!==_0x40b16a['length'])throw Error('Invalid\x20GIF\x20trailer.');return;}if(_0xbf5932===0x21){_0x53a12b(0x1),_0x1b271d++,_0xc4d167();continue;}if(_0xbf5932!==0x2c)throw Error(_0x5e217d(0xff));_0x53a12b(0x9);const _0x2b230c=_0x40b16a['readUInt16LE'](_0x1b271d),_0x1e3f4e=_0x40b16a[_0x5e217d(0x10f)](_0x1b271d+0x2),_0x4b6bb1=_0x40b16a[_0x5e217d(0x10f)](_0x1b271d+0x4),_0x4cfd30=_0x40b16a['readUInt16LE'](_0x1b271d+0x6),_0x59f94f=_0x40b16a[_0x1b271d+0x8];_0x1b271d+=0x9,dimensions(_0x4b6bb1,_0x4cfd30);if(_0x2b230c+_0x4b6bb1>_0x87d2d3||_0x1e3f4e+_0x4cfd30>_0x2c2f40||++_0x20f6d4>0x2710||(_0x737739+=_0x87d2d3*_0x2c2f40)>MAX_PIXELS)throw Error(_0x5e217d(0x10d));const _0x4e553f=_0x59f94f&0x80?0x1<<(_0x59f94f&0x7)+0x1:_0xa3419b;if(!_0x4e553f)throw Error(_0x5e217d(0x11c));_0x59f94f&0x80&&(_0x53a12b(_0x4e553f*0x3),_0x1b271d+=_0x4e553f*0x3);_0x53a12b(0x1);const _0x1cc1e9=_0x40b16a[_0x1b271d++];if(_0x1cc1e9<0x2||_0x1cc1e9>0x8)throw Error(_0x5e217d(0x103));const _0x134c33=_0xc4d167(),_0x82370a=0x1<<_0x1cc1e9,_0x37fb82=_0x82370a+0x1;let _0x55e8ea=_0x1cc1e9+0x1,_0x44d3f8=_0x37fb82+0x1,_0x395da0=0x0,_0x5ee6f0=-0x1,_0x9baf63=0x0,_0x2daf62=![];const _0x1bbfb0=new Uint32Array(0x1000),_0x49b33b=new Uint16Array(0x1000);for(let _0x3a4b68=0x0;_0x3a4b68<_0x82370a;_0x3a4b68++){_0x1bbfb0[_0x3a4b68]=0x1,_0x49b33b[_0x3a4b68]=_0x3a4b68;}while(_0x395da0+_0x55e8ea<=_0x134c33['length']*0x8){let _0x3ff571=0x0;for(let _0x25145e=0x0;_0x25145e<_0x55e8ea;_0x25145e++,_0x395da0++)_0x3ff571|=(_0x134c33[_0x395da0>>0x3]>>(_0x395da0&0x7)&0x1)<<_0x25145e;if(_0x3ff571===_0x82370a){_0x55e8ea=_0x1cc1e9+0x1,_0x44d3f8=_0x37fb82+0x1,_0x5ee6f0=-0x1;continue;}if(_0x3ff571===_0x37fb82){_0x2daf62=!![];break;}if(_0x3ff571>_0x44d3f8||_0x3ff571===_0x44d3f8&&_0x5ee6f0<0x0||_0x5ee6f0<0x0&&_0x3ff571>=_0x82370a)throw Error(_0x5e217d(0xef));const _0x4eae75=_0x3ff571===_0x44d3f8?_0x1bbfb0[_0x5ee6f0]+0x1:_0x1bbfb0[_0x3ff571],_0x269779=_0x3ff571===_0x44d3f8?_0x49b33b[_0x5ee6f0]:_0x49b33b[_0x3ff571];if(!_0x4eae75||_0x269779>=_0x4e553f||(_0x9baf63+=_0x4eae75)>_0x4b6bb1*_0x4cfd30)throw Error(_0x5e217d(0x100));if(_0x5ee6f0>=0x0&&_0x44d3f8<0x1000){_0x1bbfb0[_0x44d3f8]=_0x1bbfb0[_0x5ee6f0]+0x1,_0x49b33b[_0x44d3f8]=Math[_0x5e217d(0x106)](_0x49b33b[_0x5ee6f0],_0x269779),_0x44d3f8++;if(_0x44d3f8===0x1<<_0x55e8ea&&_0x55e8ea<0xc)_0x55e8ea++;}_0x5ee6f0=_0x3ff571;}if(!_0x2daf62||_0x9baf63!==_0x4b6bb1*_0x4cfd30)throw Error(_0x5e217d(0xec));}throw Error(_0x5e217d(0x118));}function a141_0x5975(){const _0x1f2ad7=['frameInfo','GIF\x20cumulative\x20frame\x20pixels\x20exceed\x2040\x20million.','height','readUInt16LE','image/jpeg','1992020zonBpU','65WOXdNA','numFrames','54342YrBeQo','push','12NUENVw','Invalid\x20PNG\x20decoded\x20scanline\x20size.','Missing\x20GIF\x20trailer.','omggif','jpeg-js','decodeAndBlitFrameRGBA','GIF\x20image\x20has\x20no\x20palette.','message','subarray','IDAT','acTL','Truncated\x20JPEG.','update','2916172WOzHEd','ascii','Image\x20dimensions\x20exceed\x2040\x20million\x20pixels.','GIF\x20frame\x20exceeds\x20canvas.','Truncated\x20GIF.','equals','Invalid\x20PNG\x20end.','712mIayfY','Truncated\x20or\x20incomplete\x20GIF\x20LZW\x20pixels.','GIF89a','isSafeInteger','Invalid\x20GIF\x20LZW\x20dictionary\x20reference.','from','Invalid\x20PNG\x20color/depth/interlace.','76756HOoUCj','readUInt32BE','20724PuWWwB','Image\x20must\x20be\x20non-empty\x20and\x20no\x20larger\x20than\x2010\x20MB.','width','image/gif','length','decode','sha256','94127qBHxiN','6JxNiGg','1272nHKTFH','Invalid\x20image:\x20','Invalid\x20GIF\x20block.','Invalid\x20GIF\x20LZW\x20pixel\x20data.','read','Truncated\x20PNG\x20data.','Invalid\x20GIF\x20LZW\x20code\x20size.','concat','Invalid\x20PNG\x20header.','max','includes','toString','2470515LuJqQB','Animated\x20PNG\x20is\x20not\x20supported.','Missing\x20PNG\x20data/end.'];a141_0x5975=function(){return _0x1f2ad7;};return a141_0x5975();}export function validateImageBytes(_0x32402e){const _0x5ab48d=a141_0x2bc6;if(!_0x32402e[_0x5ab48d(0xf8)]||_0x32402e['length']>0xa*0x400*0x400)throw Error(_0x5ab48d(0xf5));let _0x3a97fb;try{if(_0x32402e[_0x5ab48d(0x11e)](0x0,0x8)[_0x5ab48d(0xe9)](Buffer[_0x5ab48d(0xf0)]([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]))){if(_0x32402e[_0x5ab48d(0xf8)]<0x21||_0x32402e[_0x5ab48d(0x108)]('ascii',0xc,0x10)!=='IHDR')throw Error(_0x5ab48d(0x105));dimensions(_0x32402e['readUInt32BE'](0x10),_0x32402e[_0x5ab48d(0xf3)](0x14));const _0xc0970e=_0x32402e[_0x5ab48d(0xf3)](0x10),_0x362923=_0x32402e[_0x5ab48d(0xf3)](0x14),_0x58563d=_0x32402e[0x18],_0x15f02d=_0x32402e[0x19],_0x233ff5=_0x32402e[0x1c],_0x3d7e2f={0x0:0x1,0x2:0x3,0x3:0x1,0x4:0x2,0x6:0x4}[_0x15f02d];if(!_0x3d7e2f||![0x1,0x2,0x4,0x8,0x10]['includes'](_0x58563d)||_0x233ff5>0x1)throw Error(_0x5ab48d(0xf1));const _0x4e1dbe=_0x348404=>Math['ceil'](_0x348404*_0x3d7e2f*_0x58563d/0x8)+0x1;let _0x5c90bd=_0x4e1dbe(_0xc0970e)*_0x362923;if(_0x233ff5){_0x5c90bd=0x0;for(const [_0x2fc91f,_0x4f2455,_0x3e2565,_0xe8f953]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 _0x57ae44=Math[_0x5ab48d(0x106)](0x0,Math['ceil']((_0xc0970e-_0x2fc91f)/_0x3e2565)),_0x179d76=Math[_0x5ab48d(0x106)](0x0,Math['ceil']((_0x362923-_0x4f2455)/_0xe8f953));if(_0x57ae44&&_0x179d76)_0x5c90bd+=_0x4e1dbe(_0x57ae44)*_0x179d76;}}let _0x54eb0f=0x8,_0xfc9179=![];const _0xb95206=[];while(_0x54eb0f<_0x32402e['length']){if(_0x54eb0f+0xc>_0x32402e[_0x5ab48d(0xf8)])throw Error('Truncated\x20PNG\x20chunk.');const _0x4a4562=_0x32402e[_0x5ab48d(0xf3)](_0x54eb0f),_0x5a0275=_0x32402e[_0x5ab48d(0x108)](_0x5ab48d(0xe5),_0x54eb0f+0x4,_0x54eb0f+0x8);if(_0x5a0275===_0x5ab48d(0x120))throw Error(_0x5ab48d(0x10a));if(_0x54eb0f+_0x4a4562+0xc>_0x32402e[_0x5ab48d(0xf8)])throw Error(_0x5ab48d(0x102));if(_0x5a0275===_0x5ab48d(0x11f))_0xb95206[_0x5ab48d(0x115)](_0x32402e[_0x5ab48d(0x11e)](_0x54eb0f+0x8,_0x54eb0f+0x8+_0x4a4562));_0x54eb0f+=_0x4a4562+0xc;if(_0x5a0275==='IEND'){if(_0x4a4562||_0x54eb0f!==_0x32402e['length'])throw Error(_0x5ab48d(0xea));_0xfc9179=!![];break;}}if(!_0xfc9179||!_0xb95206[_0x5ab48d(0xf8)])throw Error(_0x5ab48d(0x10b));if(inflateSync(Buffer['concat'](_0xb95206),{'maxOutputLength':_0x5c90bd+0x1})[_0x5ab48d(0xf8)]!==_0x5c90bd)throw Error(_0x5ab48d(0x117));const {PNG:_0x51b0cb}=require('pngjs'),_0x458abe=_0x51b0cb['sync'][_0x5ab48d(0x101)](_0x32402e,{'checkCRC':!![]});dimensions(_0x458abe[_0x5ab48d(0xf6)],_0x458abe['height']),_0x3a97fb='image/png';}else{if(_0x32402e[0x0]===0xff&&_0x32402e[0x1]===0xd8){if(_0x32402e['at'](-0x2)!==0xff||_0x32402e['at'](-0x1)!==0xd9)throw Error(_0x5ab48d(0x121));const _0x8f92bd=require(_0x5ab48d(0x11a)),_0x3bd9bc=_0x8f92bd[_0x5ab48d(0xf9)](_0x32402e,{'useTArray':!![],'formatAsRGBA':![],'tolerantDecoding':![],'maxResolutionInMP':0x28,'maxMemoryUsageInMB':0x100});dimensions(_0x3bd9bc[_0x5ab48d(0xf6)],_0x3bd9bc['height']),_0x3a97fb=_0x5ab48d(0x110);}else{if(['GIF87a',_0x5ab48d(0xed)][_0x5ab48d(0x107)](_0x32402e[_0x5ab48d(0x108)](_0x5ab48d(0xe5),0x0,0x6))){if(_0x32402e['length']<0xe||_0x32402e['at'](-0x1)!==0x3b)throw Error(_0x5ab48d(0xe8));dimensions(_0x32402e[_0x5ab48d(0x10f)](0x6),_0x32402e[_0x5ab48d(0x10f)](0x8)),validateGif(_0x32402e);const {GifReader:_0x25b01a}=require(_0x5ab48d(0x119)),_0x5e5660=new _0x25b01a(_0x32402e);dimensions(_0x5e5660[_0x5ab48d(0xf6)],_0x5e5660[_0x5ab48d(0x10e)]);const _0xa13f9a=_0x5e5660[_0x5ab48d(0x113)]();if(!_0xa13f9a||_0xa13f9a>0x2710||_0xa13f9a*_0x5e5660[_0x5ab48d(0xf6)]*_0x5e5660[_0x5ab48d(0x10e)]>MAX_PIXELS)throw Error(_0x5ab48d(0x10d));const _0x4ac7d0=new Uint8Array(_0x5e5660['width']*_0x5e5660[_0x5ab48d(0x10e)]*0x4);for(let _0x270080=0x0;_0x270080<_0xa13f9a;_0x270080++){const _0x4ec1fb=_0x5e5660[_0x5ab48d(0x10c)](_0x270080);if(_0x4ec1fb['x']+_0x4ec1fb[_0x5ab48d(0xf6)]>_0x5e5660[_0x5ab48d(0xf6)]||_0x4ec1fb['y']+_0x4ec1fb[_0x5ab48d(0x10e)]>_0x5e5660[_0x5ab48d(0x10e)])throw Error(_0x5ab48d(0xe7));_0x5e5660[_0x5ab48d(0x11b)](_0x270080,_0x4ac7d0);}_0x3a97fb=_0x5ab48d(0xf7);}else throw Error('Unsupported\x20image\x20format;\x20only\x20PNG,\x20JPEG\x20and\x20GIF\x20are\x20supported.\x20WebP\x20is\x20not\x20supported.');}}}catch(_0x57ab50){throw Error(_0x5ab48d(0xfe)+_0x57ab50[_0x5ab48d(0x11d)]);}return{'contentHash':createHash(_0x5ab48d(0xfa))[_0x5ab48d(0x122)](_0x32402e)['digest']('hex'),'type':_0x3a97fb,'size':_0x32402e[_0x5ab48d(0xf8)],'bytes':_0x32402e};}
1
+ (function(_0x1ec0b6,_0x4a31f0){const _0x222352=a142_0x423b,_0x532885=_0x1ec0b6();while(!![]){try{const _0x32463e=-parseInt(_0x222352(0x10f))/0x1+parseInt(_0x222352(0x14f))/0x2*(parseInt(_0x222352(0x11f))/0x3)+-parseInt(_0x222352(0x117))/0x4*(-parseInt(_0x222352(0x14c))/0x5)+parseInt(_0x222352(0x13b))/0x6*(parseInt(_0x222352(0x123))/0x7)+-parseInt(_0x222352(0x149))/0x8*(-parseInt(_0x222352(0x111))/0x9)+-parseInt(_0x222352(0x14a))/0xa+-parseInt(_0x222352(0x115))/0xb*(parseInt(_0x222352(0x142))/0xc);if(_0x32463e===_0x4a31f0)break;else _0x532885['push'](_0x532885['shift']());}catch(_0x4f131d){_0x532885['push'](_0x532885['shift']());}}}(a142_0xed89,0xe06ff));import{createRequire}from'node:module';import{createHash}from'node:crypto';function a142_0x423b(_0x551b08,_0x3acbbf){_0x551b08=_0x551b08-0x10f;const _0xed89c7=a142_0xed89();let _0x423be7=_0xed89c7[_0x551b08];return _0x423be7;}import{inflateSync}from'node:zlib';const require=createRequire(import.meta.url),MAX_PIXELS=0x2625a00;function dimensions(_0x28c077,_0x417ad8){const _0x5ec453=a142_0x423b;if(!Number[_0x5ec453(0x132)](_0x28c077)||!Number[_0x5ec453(0x132)](_0x417ad8)||_0x28c077<0x1||_0x417ad8<0x1||_0x28c077*_0x417ad8>MAX_PIXELS)throw Error('Image\x20dimensions\x20exceed\x2040\x20million\x20pixels.');}function a142_0xed89(){const _0x29b0d1=['Invalid\x20GIF\x20block.','332647ptTbes','readUInt32BE','Invalid\x20GIF\x20LZW\x20code\x20size.','Invalid\x20PNG\x20end.','Missing\x20PNG\x20data/end.','concat','max','Truncated\x20GIF.','readUInt16LE','push','pngjs','numFrames','IDAT','toString','Invalid\x20GIF\x20trailer.','isSafeInteger','Invalid\x20PNG\x20color/depth/interlace.','decodeAndBlitFrameRGBA','Invalid\x20PNG\x20decoded\x20scanline\x20size.','Truncated\x20PNG\x20data.','GIF\x20image\x20has\x20no\x20palette.','Invalid\x20PNG\x20header.','digest','Truncated\x20PNG\x20chunk.','222oFQQGW','omggif','Truncated\x20GIF\x20data.','subarray','update','GIF87a','from','60dNYPGv','decode','ascii','hex','acTL','GIF\x20cumulative\x20frame\x20pixels\x20exceed\x2040\x20million.','Missing\x20GIF\x20trailer.','13304qqkZeL','7662570MfPOXw','frameInfo','6595zTfcaN','GIF89a','sha256','138KwlutZ','message','1370398sQtvPp','Invalid\x20GIF\x20LZW\x20dictionary\x20reference.','8037hXrlzp','image/png','width','includes','4329215zPXNNm','Truncated\x20or\x20incomplete\x20GIF\x20LZW\x20pixels.','292sHoafO','length','equals','image/jpeg','ceil','IHDR','height','IEND','73224GDqwDI','Unsupported\x20image\x20format;\x20only\x20PNG,\x20JPEG\x20and\x20GIF\x20are\x20supported.\x20WebP\x20is\x20not\x20supported.','read'];a142_0xed89=function(){return _0x29b0d1;};return a142_0xed89();}function validateGif(_0x20a341){const _0x2ee6cb=a142_0x423b;let _0x1a360b=0xd,_0x57da15=0x0,_0x5e9788=0x0;const _0x1664c3=_0x20a341[_0x2ee6cb(0x12b)](0x6),_0x300c94=_0x20a341[_0x2ee6cb(0x12b)](0x8),_0x54801c=_0x20a341[0xa]&0x80?0x1<<(_0x20a341[0xa]&0x7)+0x1:0x0,_0x5c6566=_0x168d2d=>{const _0x22e0ee=_0x2ee6cb;if(_0x1a360b+_0x168d2d>_0x20a341[_0x22e0ee(0x118)])throw Error(_0x22e0ee(0x13d));};_0x1a360b+=_0x54801c*0x3,_0x5c6566(0x0);const _0x234e90=()=>{const _0x15257d=_0x2ee6cb,_0x33a102=[];while(!![]){_0x5c6566(0x1);const _0xae94aa=_0x20a341[_0x1a360b++];if(!_0xae94aa)break;_0x5c6566(_0xae94aa),_0x33a102[_0x15257d(0x12c)](_0x20a341[_0x15257d(0x13e)](_0x1a360b,_0x1a360b+_0xae94aa)),_0x1a360b+=_0xae94aa;}return Buffer[_0x15257d(0x128)](_0x33a102);};while(_0x1a360b<_0x20a341[_0x2ee6cb(0x118)]){const _0x57c1cc=_0x20a341[_0x1a360b++];if(_0x57c1cc===0x3b){if(!_0x57da15||_0x1a360b!==_0x20a341[_0x2ee6cb(0x118)])throw Error(_0x2ee6cb(0x131));return;}if(_0x57c1cc===0x21){_0x5c6566(0x1),_0x1a360b++,_0x234e90();continue;}if(_0x57c1cc!==0x2c)throw Error(_0x2ee6cb(0x122));_0x5c6566(0x9);const _0x4853d4=_0x20a341[_0x2ee6cb(0x12b)](_0x1a360b),_0x3a5c32=_0x20a341[_0x2ee6cb(0x12b)](_0x1a360b+0x2),_0x11a3e1=_0x20a341[_0x2ee6cb(0x12b)](_0x1a360b+0x4),_0x30d2ef=_0x20a341[_0x2ee6cb(0x12b)](_0x1a360b+0x6),_0x1180a3=_0x20a341[_0x1a360b+0x8];_0x1a360b+=0x9,dimensions(_0x11a3e1,_0x30d2ef);if(_0x4853d4+_0x11a3e1>_0x1664c3||_0x3a5c32+_0x30d2ef>_0x300c94||++_0x57da15>0x2710||(_0x5e9788+=_0x1664c3*_0x300c94)>MAX_PIXELS)throw Error(_0x2ee6cb(0x147));const _0x56e452=_0x1180a3&0x80?0x1<<(_0x1180a3&0x7)+0x1:_0x54801c;if(!_0x56e452)throw Error(_0x2ee6cb(0x137));_0x1180a3&0x80&&(_0x5c6566(_0x56e452*0x3),_0x1a360b+=_0x56e452*0x3);_0x5c6566(0x1);const _0x336985=_0x20a341[_0x1a360b++];if(_0x336985<0x2||_0x336985>0x8)throw Error(_0x2ee6cb(0x125));const _0x48a205=_0x234e90(),_0x5a46dd=0x1<<_0x336985,_0x5eaea4=_0x5a46dd+0x1;let _0x2d79b8=_0x336985+0x1,_0x378f7e=_0x5eaea4+0x1,_0x2b7098=0x0,_0x525475=-0x1,_0x4cd6ef=0x0,_0xa426f0=![];const _0x3b09c5=new Uint32Array(0x1000),_0x2364c1=new Uint16Array(0x1000);for(let _0x434c33=0x0;_0x434c33<_0x5a46dd;_0x434c33++){_0x3b09c5[_0x434c33]=0x1,_0x2364c1[_0x434c33]=_0x434c33;}while(_0x2b7098+_0x2d79b8<=_0x48a205[_0x2ee6cb(0x118)]*0x8){let _0x571740=0x0;for(let _0x55d757=0x0;_0x55d757<_0x2d79b8;_0x55d757++,_0x2b7098++)_0x571740|=(_0x48a205[_0x2b7098>>0x3]>>(_0x2b7098&0x7)&0x1)<<_0x55d757;if(_0x571740===_0x5a46dd){_0x2d79b8=_0x336985+0x1,_0x378f7e=_0x5eaea4+0x1,_0x525475=-0x1;continue;}if(_0x571740===_0x5eaea4){_0xa426f0=!![];break;}if(_0x571740>_0x378f7e||_0x571740===_0x378f7e&&_0x525475<0x0||_0x525475<0x0&&_0x571740>=_0x5a46dd)throw Error(_0x2ee6cb(0x110));const _0x7fd2fe=_0x571740===_0x378f7e?_0x3b09c5[_0x525475]+0x1:_0x3b09c5[_0x571740],_0x21d14e=_0x571740===_0x378f7e?_0x2364c1[_0x525475]:_0x2364c1[_0x571740];if(!_0x7fd2fe||_0x21d14e>=_0x56e452||(_0x4cd6ef+=_0x7fd2fe)>_0x11a3e1*_0x30d2ef)throw Error('Invalid\x20GIF\x20LZW\x20pixel\x20data.');if(_0x525475>=0x0&&_0x378f7e<0x1000){_0x3b09c5[_0x378f7e]=_0x3b09c5[_0x525475]+0x1,_0x2364c1[_0x378f7e]=Math[_0x2ee6cb(0x129)](_0x2364c1[_0x525475],_0x21d14e),_0x378f7e++;if(_0x378f7e===0x1<<_0x2d79b8&&_0x2d79b8<0xc)_0x2d79b8++;}_0x525475=_0x571740;}if(!_0xa426f0||_0x4cd6ef!==_0x11a3e1*_0x30d2ef)throw Error(_0x2ee6cb(0x116));}throw Error(_0x2ee6cb(0x148));}export function validateImageBytes(_0x60987e){const _0x2c493c=a142_0x423b;if(!_0x60987e[_0x2c493c(0x118)]||_0x60987e[_0x2c493c(0x118)]>0xa*0x400*0x400)throw Error('Image\x20must\x20be\x20non-empty\x20and\x20no\x20larger\x20than\x2010\x20MB.');let _0x27e8c9;try{if(_0x60987e[_0x2c493c(0x13e)](0x0,0x8)[_0x2c493c(0x119)](Buffer[_0x2c493c(0x141)]([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]))){if(_0x60987e['length']<0x21||_0x60987e['toString']('ascii',0xc,0x10)!==_0x2c493c(0x11c))throw Error(_0x2c493c(0x138));dimensions(_0x60987e[_0x2c493c(0x124)](0x10),_0x60987e['readUInt32BE'](0x14));const _0x4e1bc5=_0x60987e[_0x2c493c(0x124)](0x10),_0x14ea91=_0x60987e[_0x2c493c(0x124)](0x14),_0x3b9087=_0x60987e[0x18],_0x1f1c9f=_0x60987e[0x19],_0x3bddb7=_0x60987e[0x1c],_0x10f91f={0x0:0x1,0x2:0x3,0x3:0x1,0x4:0x2,0x6:0x4}[_0x1f1c9f];if(!_0x10f91f||![0x1,0x2,0x4,0x8,0x10][_0x2c493c(0x114)](_0x3b9087)||_0x3bddb7>0x1)throw Error(_0x2c493c(0x133));const _0x269b7d=_0x33e3ed=>Math[_0x2c493c(0x11b)](_0x33e3ed*_0x10f91f*_0x3b9087/0x8)+0x1;let _0x323bba=_0x269b7d(_0x4e1bc5)*_0x14ea91;if(_0x3bddb7){_0x323bba=0x0;for(const [_0x51db7a,_0x50660d,_0x36ea34,_0x2801a5]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 _0x46d4d2=Math[_0x2c493c(0x129)](0x0,Math[_0x2c493c(0x11b)]((_0x4e1bc5-_0x51db7a)/_0x36ea34)),_0x22c498=Math[_0x2c493c(0x129)](0x0,Math[_0x2c493c(0x11b)]((_0x14ea91-_0x50660d)/_0x2801a5));if(_0x46d4d2&&_0x22c498)_0x323bba+=_0x269b7d(_0x46d4d2)*_0x22c498;}}let _0x49d7c3=0x8,_0x59d38d=![];const _0x2578ff=[];while(_0x49d7c3<_0x60987e[_0x2c493c(0x118)]){if(_0x49d7c3+0xc>_0x60987e[_0x2c493c(0x118)])throw Error(_0x2c493c(0x13a));const _0x3a7072=_0x60987e['readUInt32BE'](_0x49d7c3),_0x43ed16=_0x60987e[_0x2c493c(0x130)]('ascii',_0x49d7c3+0x4,_0x49d7c3+0x8);if(_0x43ed16===_0x2c493c(0x146))throw Error('Animated\x20PNG\x20is\x20not\x20supported.');if(_0x49d7c3+_0x3a7072+0xc>_0x60987e[_0x2c493c(0x118)])throw Error(_0x2c493c(0x136));if(_0x43ed16===_0x2c493c(0x12f))_0x2578ff[_0x2c493c(0x12c)](_0x60987e[_0x2c493c(0x13e)](_0x49d7c3+0x8,_0x49d7c3+0x8+_0x3a7072));_0x49d7c3+=_0x3a7072+0xc;if(_0x43ed16===_0x2c493c(0x11e)){if(_0x3a7072||_0x49d7c3!==_0x60987e[_0x2c493c(0x118)])throw Error(_0x2c493c(0x126));_0x59d38d=!![];break;}}if(!_0x59d38d||!_0x2578ff[_0x2c493c(0x118)])throw Error(_0x2c493c(0x127));if(inflateSync(Buffer[_0x2c493c(0x128)](_0x2578ff),{'maxOutputLength':_0x323bba+0x1})[_0x2c493c(0x118)]!==_0x323bba)throw Error(_0x2c493c(0x135));const {PNG:_0x44bc30}=require(_0x2c493c(0x12d)),_0x230aaf=_0x44bc30['sync'][_0x2c493c(0x121)](_0x60987e,{'checkCRC':!![]});dimensions(_0x230aaf['width'],_0x230aaf[_0x2c493c(0x11d)]),_0x27e8c9=_0x2c493c(0x112);}else{if(_0x60987e[0x0]===0xff&&_0x60987e[0x1]===0xd8){if(_0x60987e['at'](-0x2)!==0xff||_0x60987e['at'](-0x1)!==0xd9)throw Error('Truncated\x20JPEG.');const _0x1b08dd=require('jpeg-js'),_0x2d3a04=_0x1b08dd[_0x2c493c(0x143)](_0x60987e,{'useTArray':!![],'formatAsRGBA':![],'tolerantDecoding':![],'maxResolutionInMP':0x28,'maxMemoryUsageInMB':0x100});dimensions(_0x2d3a04[_0x2c493c(0x113)],_0x2d3a04[_0x2c493c(0x11d)]),_0x27e8c9=_0x2c493c(0x11a);}else{if([_0x2c493c(0x140),_0x2c493c(0x14d)]['includes'](_0x60987e['toString'](_0x2c493c(0x144),0x0,0x6))){if(_0x60987e[_0x2c493c(0x118)]<0xe||_0x60987e['at'](-0x1)!==0x3b)throw Error(_0x2c493c(0x12a));dimensions(_0x60987e['readUInt16LE'](0x6),_0x60987e[_0x2c493c(0x12b)](0x8)),validateGif(_0x60987e);const {GifReader:_0x2bc4fd}=require(_0x2c493c(0x13c)),_0x495147=new _0x2bc4fd(_0x60987e);dimensions(_0x495147['width'],_0x495147[_0x2c493c(0x11d)]);const _0x196b68=_0x495147[_0x2c493c(0x12e)]();if(!_0x196b68||_0x196b68>0x2710||_0x196b68*_0x495147['width']*_0x495147['height']>MAX_PIXELS)throw Error(_0x2c493c(0x147));const _0x4198eb=new Uint8Array(_0x495147['width']*_0x495147['height']*0x4);for(let _0x51dcb3=0x0;_0x51dcb3<_0x196b68;_0x51dcb3++){const _0x1dda44=_0x495147[_0x2c493c(0x14b)](_0x51dcb3);if(_0x1dda44['x']+_0x1dda44[_0x2c493c(0x113)]>_0x495147[_0x2c493c(0x113)]||_0x1dda44['y']+_0x1dda44[_0x2c493c(0x11d)]>_0x495147[_0x2c493c(0x11d)])throw Error('GIF\x20frame\x20exceeds\x20canvas.');_0x495147[_0x2c493c(0x134)](_0x51dcb3,_0x4198eb);}_0x27e8c9='image/gif';}else throw Error(_0x2c493c(0x120));}}}catch(_0x505077){throw Error('Invalid\x20image:\x20'+_0x505077[_0x2c493c(0x150)]);}return{'contentHash':createHash(_0x2c493c(0x14e))[_0x2c493c(0x13f)](_0x60987e)[_0x2c493c(0x139)](_0x2c493c(0x145)),'type':_0x27e8c9,'size':_0x60987e[_0x2c493c(0x118)],'bytes':_0x60987e};}