@lovrabet/lovrabet-cli 2.3.7 → 2.3.8-beta.2
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.
- package/README.md +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api-doc/index.js +1 -1
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/eligibility.js +1 -1
- package/lib/commands/app/mock-loader.js +1 -1
- package/lib/commands/app/remote-source.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/approval/index.js +1 -1
- package/lib/commands/artifact/index.js +1 -1
- package/lib/commands/auth/device.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/auth/prompt.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/exec.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/common/config-policy.js +1 -1
- package/lib/commands/common/constraints.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/config/definitions.js +1 -1
- package/lib/commands/config/init.d.ts +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/import-excel.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/sdk-doc.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/permit/dataset-get.js +1 -1
- package/lib/commands/permit/dataset-set.js +1 -1
- package/lib/commands/permit/index.js +1 -1
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/create.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.d.ts +32 -6
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/schedule/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/service/dynamic.js +1 -1
- package/lib/commands/service/function-name-adapter.js +1 -1
- package/lib/commands/service/index.js +1 -1
- package/lib/commands/service/registry.js +1 -1
- package/lib/commands/skill/commands/create.js +1 -1
- package/lib/commands/skill/commands/diagram.js +1 -1
- package/lib/commands/skill/commands/install.js +1 -1
- package/lib/commands/skill/commands/list.js +1 -1
- package/lib/commands/skill/commands/push.js +1 -1
- package/lib/commands/skill/commands/validate.js +1 -1
- package/lib/commands/skill/diagram.js +1 -1
- package/lib/commands/skill/flags.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/skill/manifest-helpers.js +1 -1
- package/lib/commands/skill/push-execute.js +1 -1
- package/lib/commands/skill/push-flow-helpers.js +1 -1
- package/lib/commands/skill/push-retarget.js +1 -1
- package/lib/commands/skill/scopes.js +1 -1
- package/lib/commands/skill/summary.js +1 -1
- package/lib/commands/skill/templates.js +1 -1
- package/lib/commands/skill/validate.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.d.ts +2 -4
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/update.js +1 -1
- package/lib/commands/user-account/bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/app.js +1 -1
- package/lib/constant/auth-mode.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/distribution.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/product.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/url.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/api-client.d.ts +20 -340
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/kb-management-client.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/sdk-client.d.ts +7 -10
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/access-error.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/dryrun.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/preparse.js +1 -1
- package/lib/framework/rate-limit.js +1 -1
- package/lib/framework/raw-flags.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-confirmation.js +1 -1
- package/lib/framework/runner-error.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/service-order.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/services/dataset-import/auto-id-runner.js +1 -1
- package/lib/services/dataset-import/excel-reader.js +1 -1
- package/lib/services/dataset-import/image-bytes.js +1 -1
- package/lib/services/dataset-import/image-ooxml.js +1 -1
- package/lib/services/dataset-import/image-runner.js +1 -1
- package/lib/services/dataset-import/metadata.js +1 -1
- package/lib/services/dataset-import/preview.js +1 -1
- package/lib/services/dataset-import/runner.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/runtime-skill-sync/constants.js +1 -1
- package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
- package/lib/skills/runtime-skill-sync/hashing.js +1 -1
- package/lib/skills/runtime-skill-sync/install-target.js +1 -1
- package/lib/skills/runtime-skill-sync/links.js +1 -1
- package/lib/skills/runtime-skill-sync/list-local.js +1 -1
- package/lib/skills/runtime-skill-sync/local-files.js +1 -1
- package/lib/skills/runtime-skill-sync/materialize.js +1 -1
- package/lib/skills/runtime-skill-sync/metadata.js +1 -1
- package/lib/skills/runtime-skill-sync/paths.js +1 -1
- package/lib/skills/runtime-skill-sync/push.js +1 -1
- package/lib/skills/runtime-skill-sync/scopes.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
- package/lib/skills/runtime-skill-sync.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/utils/access-key-redaction.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/lossless-json.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/positive-safe-integer.js +1 -1
- package/lib/utils/redaction.js +1 -1
- package/lib/utils/runtime-user-id.d.ts +2 -0
- package/lib/utils/runtime-user-id.js +1 -0
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +3 -3
- package/skills/lovrabet/SKILL.md +2 -2
- package/skills/lovrabet/guides/role-and-permission-workflow.md +3 -2
- package/skills/lovrabet.manifest.json +3 -3
package/lib/runtime/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4007a0,_0x5751ed){const _0x4404a1=a135_0x17f3,_0x124181=_0x4007a0();while(!![]){try{const _0x11ba2d=-parseInt(_0x4404a1(0x7f))/0x1*(parseInt(_0x4404a1(0x7b))/0x2)+parseInt(_0x4404a1(0x88))/0x3+-parseInt(_0x4404a1(0x89))/0x4+parseInt(_0x4404a1(0x96))/0x5*(-parseInt(_0x4404a1(0x8b))/0x6)+-parseInt(_0x4404a1(0x8c))/0x7*(parseInt(_0x4404a1(0x94))/0x8)+-parseInt(_0x4404a1(0x7e))/0x9+parseInt(_0x4404a1(0x92))/0xa*(parseInt(_0x4404a1(0x83))/0xb);if(_0x11ba2d===_0x5751ed)break;else _0x124181['push'](_0x124181['shift']());}catch(_0x4a207f){_0x124181['push'](_0x124181['shift']());}}}(a135_0x2a5c,0x34847));import{buildConfigFromFlags,initGlobalEnvironment}from'../context.js';import{createLovrabetRunnerAdapter,createPipelineEnv,finalizeLovrabetRuntimeState,runCommand}from'../framework/runner.js';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';function a135_0x17f3(_0x2103a9,_0x9160db){_0x2103a9=_0x2103a9-0x76;const _0x2a5c60=a135_0x2a5c();let _0x17f3de=_0x2a5c60[_0x2103a9];return _0x17f3de;}function a135_0x2a5c(){const _0x29878b=['aborted','20QsttfP','execute','469704jKafru','AbortError','60HadGml','risk','high-risk-write','Lovrabet\x20invocation\x20aborted.','signal','dryRun','message','write','Embedded\x20Lovrabet\x20confirmation\x20must\x20run\x20inside\x20execute.','definition','2aBKBdk','dry-run','rawFlags','3826953CFJIRM','426483qkrilD','format','data','command','8733351WbHOyY','present','yes','riskLevel','confirmation','859500NYdQrX','1057924nvQWeB','result','95406jbBFUX','42MLxRIQ','confirm','reason','Lovrabet\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','args'];a135_0x2a5c=function(){return _0x29878b;};return a135_0x2a5c();}const defaultPresentation={'present'({result:_0x5d0e8c,command:_0x300d62,risk:_0x211e36,dryRun:_0xd3f940}){const _0x597f3f=a135_0x17f3;return JSON['stringify']({'ok':_0x5d0e8c['ok'],'command':_0x300d62,'risk':_0x211e36,..._0xd3f940?{'dryRun':!![]}:{},..._0x5d0e8c[_0x597f3f(0x81)]!==undefined?{'data':_0x5d0e8c[_0x597f3f(0x81)]}:{},..._0x5d0e8c['message']?{'message':_0x5d0e8c[_0x597f3f(0x77)]}:{}});}};export async function invokeLovrabet(_0x418be4,_0x14c343){const _0xc07f5a=a135_0x17f3;throwIfAborted(_0x14c343[_0xc07f5a(0x9a)]);const _0x2a5f1f=await resolveLovrabetInvocation(_0x418be4),_0x138476=canonicalLovrabetOperation(_0x2a5f1f['definition']);return await confirmWriteBeforeQueue(_0x2a5f1f['definition'],_0x2a5f1f[_0xc07f5a(0x7d)],_0x138476,_0x14c343),runSerialized(async()=>{const _0x3b2d20=_0xc07f5a;throwIfAborted(_0x14c343[_0x3b2d20(0x9a)]);const _0x5c9831={},_0x435200=buildConfigFromFlags(_0x2a5f1f[_0x3b2d20(0x7d)]);await initGlobalEnvironment(_0x435200);const _0x4b1cdc=createPipelineEnv(_0x435200,{..._0x2a5f1f[_0x3b2d20(0x7d)],'yes':_0x2a5f1f['definition'][_0x3b2d20(0x97)]===_0x3b2d20(0x98)?!![]:_0x2a5f1f['rawFlags'][_0x3b2d20(0x85)],'nonInteractive':!![]});_0x4b1cdc[_0x3b2d20(0x90)]=_0x2a5f1f[_0x3b2d20(0x90)],_0x4b1cdc['isNonInteractive']=!![],_0x4b1cdc[_0x3b2d20(0x86)]='high-risk-write';const _0x22f9d2=withAbortSignal(_0x2a5f1f[_0x3b2d20(0x7a)],_0x14c343[_0x3b2d20(0x9a)]),_0x3b9c10=createLovrabetRunnerAdapter({'formatOutput'(_0x1fbd99,_0x345828){const _0x593be5=_0x3b2d20;_0x5c9831[_0x593be5(0x8a)]=_0x1fbd99,_0x5c9831[_0x593be5(0x82)]=_0x345828[_0x593be5(0x82)],_0x5c9831['risk']=_0x345828[_0x593be5(0x97)],_0x5c9831[_0x593be5(0x80)]=_0x345828[_0x593be5(0x80)],_0x5c9831[_0x593be5(0x76)]=_0x345828['dryRun']===!![];},async 'confirmHighRisk'(){const _0x4f22db=_0x3b2d20;throw new Error(_0x4f22db(0x79));}});try{await runCommand(_0x22f9d2,_0x4b1cdc,_0x3b9c10);if(!_0x5c9831[_0x3b2d20(0x8a)]||!_0x5c9831[_0x3b2d20(0x82)]||!_0x5c9831[_0x3b2d20(0x97)]||!_0x5c9831['format'])throw new Error(_0x3b2d20(0x8f));const _0x4a5454=_0x14c343['presentation']??defaultPresentation,_0x5defa4=_0x5c9831[_0x3b2d20(0x76)]===!![],_0x1b09eb={'result':_0x5c9831[_0x3b2d20(0x8a)],'command':_0x5c9831[_0x3b2d20(0x82)],'operation':_0x138476,'risk':_0x5c9831[_0x3b2d20(0x97)],'format':_0x5c9831[_0x3b2d20(0x80)],'dryRun':_0x5defa4},_0xf8ae97=createLovrabetWriteMetadata(_0x2a5f1f[_0x3b2d20(0x7a)],_0x138476,_0x5c9831[_0x3b2d20(0x8a)],_0x5defa4);let _0x4d3fcd;try{_0x4d3fcd=await _0x4a5454[_0x3b2d20(0x84)](_0x1b09eb);}catch(_0x2b7cd8){if(!_0xf8ae97||_0x4a5454===defaultPresentation)throw _0x2b7cd8;_0x4d3fcd=await defaultPresentation['present'](_0x1b09eb);}return{'operation':_0x138476,'risk':_0x5c9831[_0x3b2d20(0x97)],'mode':_0x5defa4?_0x3b2d20(0x7c):_0x3b2d20(0x93),'result':_0x5c9831[_0x3b2d20(0x8a)],'output':_0x4d3fcd,..._0xf8ae97?{'metadata':_0xf8ae97}:{}};}finally{await finalizeLovrabetRuntimeState();}});}async function confirmWriteBeforeQueue(_0xe002ba,_0x445fc6,_0x358067,_0x50b616){const _0xf2647e=a135_0x17f3;if(_0x445fc6[_0xf2647e(0x76)]===!![]||_0xe002ba[_0xf2647e(0x97)]!==_0xf2647e(0x78)&&_0xe002ba[_0xf2647e(0x97)]!=='high-risk-write')return;await _0x50b616[_0xf2647e(0x87)][_0xf2647e(0x8d)](buildLovrabetConfirmationRequest(_0xe002ba,_0x358067,_0x50b616[_0xf2647e(0x9a)]));}function withAbortSignal(_0x529460,_0x2b3ba8){return{..._0x529460,async 'execute'(_0x5298e3){const _0x449956=a135_0x17f3;return throwIfAborted(_0x2b3ba8),_0x529460[_0x449956(0x93)]({..._0x5298e3,'signal':_0x2b3ba8});}};}function throwIfAborted(_0x398062){const _0x7461c1=a135_0x17f3;if(_0x398062?.[_0x7461c1(0x91)])throw _0x398062[_0x7461c1(0x8e)]instanceof Error?_0x398062[_0x7461c1(0x8e)]:new DOMException(_0x7461c1(0x99),_0x7461c1(0x95));}
|
package/lib/runtime/queue.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x307c3e,_0x566035){const _0x4f705f=a136_0x3b9b,_0x46e2c3=_0x307c3e();while(!![]){try{const _0x4c667c=-parseInt(_0x4f705f(0x12f))/0x1*(parseInt(_0x4f705f(0x12c))/0x2)+parseInt(_0x4f705f(0x133))/0x3*(-parseInt(_0x4f705f(0x130))/0x4)+parseInt(_0x4f705f(0x131))/0x5*(parseInt(_0x4f705f(0x12b))/0x6)+parseInt(_0x4f705f(0x132))/0x7+-parseInt(_0x4f705f(0x12d))/0x8+parseInt(_0x4f705f(0x12e))/0x9+parseInt(_0x4f705f(0x12a))/0xa*(parseInt(_0x4f705f(0x129))/0xb);if(_0x4c667c===_0x566035)break;else _0x46e2c3['push'](_0x46e2c3['shift']());}catch(_0x59d3f9){_0x46e2c3['push'](_0x46e2c3['shift']());}}}(a136_0x4b9d,0x5f5c9));let tail=Promise['resolve']();function a136_0x3b9b(_0x71e355,_0x1ddf35){_0x71e355=_0x71e355-0x129;const _0x4b9d15=a136_0x4b9d();let _0x3b9bbb=_0x4b9d15[_0x71e355];return _0x3b9bbb;}export async function runSerialized(_0x3b84f8){const _0x584ce3=tail;let _0x37e83d;tail=new Promise(_0x48c0d5=>{_0x37e83d=_0x48c0d5;}),await _0x584ce3['catch'](()=>undefined);try{return await _0x3b84f8();}finally{_0x37e83d();}}function a136_0x4b9d(){const _0xa85e70=['88ajhIah','285ObpIXR','543648MIdOVK','55869xuduEZ','7788gxKVfo','13810CwXPSL','61284KsyIQp','2JvBdwH','2019368oNjVYR','504756AEHiPn','640966GSVLAM'];a136_0x4b9d=function(){return _0xa85e70;};return a136_0x4b9d();}
|
package/lib/runtime/resolve.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x30782b,_0x405f0b){const _0x663fc9=a137_0x2ce2,_0x5ddc9d=_0x30782b();while(!![]){try{const _0x1e47c7=parseInt(_0x663fc9(0xdb))/0x1+-parseInt(_0x663fc9(0xde))/0x2+-parseInt(_0x663fc9(0xeb))/0x3*(parseInt(_0x663fc9(0xd9))/0x4)+parseInt(_0x663fc9(0xe8))/0x5+parseInt(_0x663fc9(0xd8))/0x6*(parseInt(_0x663fc9(0xe3))/0x7)+parseInt(_0x663fc9(0xec))/0x8+-parseInt(_0x663fc9(0xed))/0x9;if(_0x1e47c7===_0x405f0b)break;else _0x5ddc9d['push'](_0x5ddc9d['shift']());}catch(_0x1fcfe3){_0x5ddc9d['push'](_0x5ddc9d['shift']());}}}(a137_0x1eea,0xdba9d));function a137_0x2ce2(_0x14a4e9,_0x494984){_0x14a4e9=_0x14a4e9-0xd6;const _0x1eea88=a137_0x1eea();let _0x2ce2ac=_0x1eea88[_0x14a4e9];return _0x2ce2ac;}import a137_0x5408c7 from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';import{resolveDynamicServiceCommand}from'../commands/service/dynamic.js';import{buildMeowFlags}from'../constant/cli.js';function a137_0x1eea(){const _0x31636e=['Lovrabet\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','flags','input','2467525FwgHnN','definition','flatMap','29481TgIUqa','8333200OMqrVt','3963960BjXVHk','message','join','4975668NNFXSI','316jYQswC','defaultCommand','1429667dRgzqp','Lovrabet\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','unknownCommand','3355172rEeRSH','../commands/registry.js','assign','hint','validation','7YwlxnD','args'];a137_0x1eea=function(){return _0x31636e;};return a137_0x1eea();}import{CliErrors}from'../errors.js';export async function resolveLovrabetInvocation(_0x5bf6b7){const _0x1c6e1e=a137_0x2ce2,_0x303560=a137_0x5408c7('',{'importMeta':import.meta,'argv':_0x5bf6b7,'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x19430f=[..._0x303560[_0x1c6e1e(0xe7)]],_0x2acedd=_0x303560[_0x1c6e1e(0xe6)];await correctFlags(_0x2acedd);const _0x1da702=_0x19430f[0x0];if(!_0x1da702)throw CliErrors[_0x1c6e1e(0xe2)](_0x1c6e1e(0xdc));const _0x4ddca9=resolveRemovedCommand(_0x1da702,_0x19430f[0x1]);if(_0x4ddca9)throw CliErrors[_0x1c6e1e(0xe2)](_0x4ddca9[_0x1c6e1e(0xd6)],_0x4ddca9[_0x1c6e1e(0xe1)]);if(!isKnownService(_0x1da702)){const _0x28c97e=resolveDynamicServiceCommand(_0x19430f,_0x2acedd);if(!_0x28c97e)throw CliErrors[_0x1c6e1e(0xdd)](_0x19430f[_0x1c6e1e(0xd7)]('\x20'));return Object[_0x1c6e1e(0xe0)](_0x2acedd,_0x28c97e[_0x1c6e1e(0xe6)]),{'definition':_0x28c97e[_0x1c6e1e(0xe9)],'rawFlags':_0x2acedd,'args':_0x28c97e[_0x1c6e1e(0xe4)]};}const _0x501474=getServiceEntry(_0x1da702),_0x180202=_0x19430f[0x1]||_0x501474[_0x1c6e1e(0xda)];if(!_0x180202)throw CliErrors['validation'](_0x1c6e1e(0xe5)+_0x1da702+'\x22.');const _0x321578=findDefinition(_0x1da702,_0x180202);if(!_0x321578)throw CliErrors[_0x1c6e1e(0xdd)](_0x1da702+'\x20'+_0x180202);return{'definition':_0x321578,'rawFlags':_0x2acedd,'args':_0x19430f['slice'](0x2)};}async function correctFlags(_0x56af5e){const _0x15013a=a137_0x2ce2;try{const {correctFlags:_0x54cec4}=await import('../framework/preparse.js'),{getAllDefinitions:_0x1f7a25}=await import(_0x15013a(0xdf)),_0x116e72=_0x1f7a25()[_0x15013a(0xea)](_0x214070=>_0x214070['flags']??[]),_0x5ece1f=_0x54cec4(_0x56af5e,_0x116e72);Object['assign'](_0x56af5e,_0x5ece1f[_0x15013a(0xe6)]);}catch{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a139_0x339614=a139_0xf213;function a139_0x228a(){const _0x33ae9c=['version','unsent','succeeded','report','push','filter','Previously\x20imported\x20records\x20are\x20no\x20longer\x20visible;\x20recovery\x20conflict.','count','add','has','Import\x20task\x20marker\x20collision;\x20stop\x20without\x20replacing\x20the\x20marker.','Import\x20generated\x20ID\x20conflict.','ids','some','325610uNWeBD','789445yhVtnM','map','values','resume','Incomplete\x20readback.','strategy','Import\x20checkpoint\x20already\x20exists;\x20use\x20--resume.','length','importId','completed','unknown','utf8','checkpoint','rowNumber','rowIndexes','schemaVersion','reduce','byteLength','onCheckpointReady','status','39CkcsBN','1343194AfjOwO','string','datasetCode','Excel\x20contains\x20invalid\x20rows;\x20no\x20data\x20was\x20written.','The\x20auto-ID\x20runner\x20requires\x20the\x20v2\x20task\x20readback\x20contract.','now','203232GshRqL','isArray','conflict','Import\x20content\x20conflict\x20at\x20Excel\x20row\x20','30cpJWPe','Cannot\x20read\x20the\x20import\x20checkpoint.','Invalid\x20write\x20result.','2559018NnslhU','maxBatchSize','schemaFingerprint','maxBatchBytes','batchSize','elapsedMs','570hkUGUl','369392ZRvzKk','code','appCode','sheet','Import\x20generated\x20ID\x20collision.','batches','hex','454751GjEwWH','readTask','Invalid\x20import\x20task\x20readback\x20response.','stringify','parse','keys','63NziNvQ','flatMap','Excel\x20row\x20','schemaHash','uploadFields','ENOENT','mappingHash','Partial\x20import\x20task\x20readback\x20conflict.','rows','Import\x20checkpoint\x20does\x20not\x20match\x20the\x20input,\x20target\x20or\x20identity.','incomplete','Import\x20checkpoint\x20contains\x20a\x20content\x20conflict.','message','taskId','size','includes','The\x20import\x20write\x20outcome\x20is\x20unknown.\x20Resume\x20to\x20reconcile\x20the\x20original\x20task\x20marker\x20before\x20continuing.','number','pending','isInteger'];a139_0x228a=function(){return _0x33ae9c;};return a139_0x228a();}(function(_0x154e3d,_0x16fe39){const _0x32f7ad=a139_0xf213,_0x4d1c48=_0x154e3d();while(!![]){try{const _0x5c97cf=-parseInt(_0x32f7ad(0x1ea))/0x1+-parseInt(_0x32f7ad(0x200))/0x2+parseInt(_0x32f7ad(0x1ff))/0x3*(-parseInt(_0x32f7ad(0x206))/0x4)+parseInt(_0x32f7ad(0x1eb))/0x5*(-parseInt(_0x32f7ad(0x20a))/0x6)+parseInt(_0x32f7ad(0x20d))/0x7+-parseInt(_0x32f7ad(0x214))/0x8*(-parseInt(_0x32f7ad(0x221))/0x9)+parseInt(_0x32f7ad(0x213))/0xa*(parseInt(_0x32f7ad(0x21b))/0xb);if(_0x5c97cf===_0x16fe39)break;else _0x4d1c48['push'](_0x4d1c48['shift']());}catch(_0x13a7c2){_0x4d1c48['push'](_0x4d1c48['shift']());}}}(a139_0x228a,0x92039));import{randomBytes,randomUUID}from'node:crypto';import{lstat,readFile}from'node:fs/promises';function a139_0xf213(_0x17262f,_0x1a638f){_0x17262f=_0x17262f-0x1d1;const _0x228a3a=a139_0x228a();let _0xf213ba=_0x228a3a[_0x17262f];return _0xf213ba;}import{acquireLock,assertImportContract,assertImportPaths,canonical,sameImportValue,resolveImportOutputPath,saveImportJson}from'./runner.js';const validId=_0x200bee=>typeof _0x200bee===a139_0x339614(0x1d9)&&Number['isSafeInteger'](_0x200bee)&&_0x200bee>0x0;export async function runAutoIdExcelImport(_0x779114){const _0x2848ce=a139_0x339614,_0x5e4227={..._0x779114,'checkpoint':await resolveImportOutputPath(_0x779114[_0x2848ce(0x1f7)]),'report':await resolveImportOutputPath(_0x779114['report'])},{manifest:_0x107182,contract:_0x39492f,api:_0x22ebd3}=_0x5e4227;assertImportContract(_0x39492f,_0x5e4227[_0x2848ce(0x216)],_0x5e4227[_0x2848ce(0x202)]);if(_0x39492f[_0x2848ce(0x1fa)]!==0x2||!_0x22ebd3['readTask'])throw Error(_0x2848ce(0x204));if(_0x107182['errors'][_0x2848ce(0x1f2)])throw Error(_0x2848ce(0x203));if(!_0x107182[_0x2848ce(0x229)][_0x2848ce(0x1f2)])throw Error('Excel\x20contains\x20no\x20valid\x20data\x20rows.');if(!Number[_0x2848ce(0x1db)](_0x5e4227[_0x2848ce(0x211)])||_0x5e4227[_0x2848ce(0x211)]<0x1||_0x5e4227[_0x2848ce(0x211)]>_0x39492f[_0x2848ce(0x20e)])throw Error('Invalid\x20import\x20batch\x20size.');assertImportPaths(_0x5e4227['checkpoint'],_0x5e4227['report']);if(_0x107182[_0x2848ce(0x229)]['some'](_0x2dff5a=>Object['hasOwn'](_0x2dff5a[_0x2848ce(0x1ed)],'id')))throw Error('Auto-ID\x20import\x20items\x20cannot\x20contain\x20a\x20primary\x20key.');const _0x444986=(_0x4767bf,_0x32cdb2)=>Buffer[_0x2848ce(0x1fc)](JSON[_0x2848ce(0x21e)]({'schemaFingerprint':_0x39492f[_0x2848ce(0x20f)],'taskId':_0x32cdb2,'items':_0x4767bf['map'](_0x190574=>_0x107182['rows'][_0x190574][_0x2848ce(0x1ed)])}),_0x2848ce(0x1f6)),_0x24f1b3=[];let _0xd61f62=[];for(let _0x5386e5=0x0;_0x5386e5<_0x107182[_0x2848ce(0x229)][_0x2848ce(0x1f2)];_0x5386e5++){if(_0x444986([_0x5386e5],0x2**0x34)>_0x39492f['maxBatchBytes'])throw Error(_0x2848ce(0x223)+_0x107182[_0x2848ce(0x229)][_0x5386e5][_0x2848ce(0x1f8)]+'\x20exceeds\x20the\x20import\x20request\x20size\x20limit.');_0xd61f62[_0x2848ce(0x1f2)]&&(_0xd61f62['length']===_0x5e4227[_0x2848ce(0x211)]||_0x444986([..._0xd61f62,_0x5386e5],0x2**0x34)>_0x39492f[_0x2848ce(0x210)])&&(_0x24f1b3[_0x2848ce(0x1e0)](_0xd61f62),_0xd61f62=[]),_0xd61f62[_0x2848ce(0x1e0)](_0x5386e5);}if(_0xd61f62[_0x2848ce(0x1f2)])_0x24f1b3[_0x2848ce(0x1e0)](_0xd61f62);const _0x3493a2={'appCode':_0x5e4227[_0x2848ce(0x216)],'datasetCode':_0x5e4227[_0x2848ce(0x202)],'runtimeDomain':_0x5e4227['runtimeDomain'],'actorId':_0x39492f['actorId'],'fileHash':_0x107182['fileHash'],'mappingHash':_0x107182[_0x2848ce(0x227)],'schemaHash':_0x107182[_0x2848ce(0x224)],'remoteSchemaHash':_0x39492f[_0x2848ce(0x20f)],'batchSize':_0x5e4227['batchSize'],'maxBatchBytes':_0x39492f[_0x2848ce(0x210)],'sheet':_0x107182[_0x2848ce(0x217)],'strategy':_0x39492f[_0x2848ce(0x1f0)]},_0x55717f=await acquireLock(_0x5e4227[_0x2848ce(0x1f7)]);let _0x34f5f4;const _0x40f266=Date[_0x2848ce(0x205)]();let _0x2cce3d=0x0;const _0x38be23=[],_0x365066=_0x307cfd=>_0x34f5f4?.[_0x2848ce(0x219)][_0x2848ce(0x1e1)](_0x1e73ae=>_0x1e73ae['status']===_0x307cfd)[_0x2848ce(0x1fb)]((_0x152b6a,_0x147ca8)=>_0x152b6a+_0x147ca8[_0x2848ce(0x1f9)][_0x2848ce(0x1f2)],0x0)??0x0,_0x5de5a4=()=>({'importId':_0x34f5f4?.[_0x2848ce(0x1f3)],'sourceRows':_0x107182['rows'][_0x2848ce(0x1f2)],'emptyRows':_0x107182['emptyRows'][_0x2848ce(0x1f2)],'succeeded':_0x365066(_0x2848ce(0x1de)),'unknown':_0x365066(_0x2848ce(0x1da)),'conflicts':_0x365066(_0x2848ce(0x208)),'notAttempted':_0x365066(_0x2848ce(0x1dd)),'batches':_0x2cce3d,'batchResults':_0x38be23,'elapsedMs':Date['now']()-_0x40f266,'checkpoint':_0x5e4227[_0x2848ce(0x1f7)],'report':_0x5e4227['report'],'warnings':_0x107182['warnings']});try{if(_0x5e4227[_0x2848ce(0x1ee)]){try{_0x34f5f4=JSON[_0x2848ce(0x21f)](await readFile(_0x5e4227['checkpoint'],'utf8'));}catch{throw Error(_0x2848ce(0x20b));}if(!_0x34f5f4||_0x34f5f4[_0x2848ce(0x1dc)]!==0x2||typeof _0x34f5f4['importId']!==_0x2848ce(0x201)||!_0x34f5f4[_0x2848ce(0x1f3)]||canonical(_0x34f5f4['binding'])!==canonical(_0x3493a2)||!Array[_0x2848ce(0x207)](_0x34f5f4['batches'])||_0x34f5f4[_0x2848ce(0x219)][_0x2848ce(0x1f2)]!==_0x24f1b3[_0x2848ce(0x1f2)]||new Set(_0x34f5f4[_0x2848ce(0x219)][_0x2848ce(0x1ec)](_0x48409b=>_0x48409b[_0x2848ce(0x1d5)]))[_0x2848ce(0x1d6)]!==_0x24f1b3[_0x2848ce(0x1f2)]||_0x34f5f4[_0x2848ce(0x219)][_0x2848ce(0x1e9)]((_0x56b8c0,_0x3ab0d8)=>!validId(_0x56b8c0[_0x2848ce(0x1d5)])||_0x56b8c0[_0x2848ce(0x1d5)]>0x2**0x34||canonical(_0x56b8c0['rowIndexes'])!==canonical(_0x24f1b3[_0x3ab0d8])||![_0x2848ce(0x1dd),_0x2848ce(0x1da),_0x2848ce(0x1de),_0x2848ce(0x208)][_0x2848ce(0x1d7)](_0x56b8c0[_0x2848ce(0x1fe)])||!Array[_0x2848ce(0x207)](_0x56b8c0['ids'])||_0x56b8c0['ids']['some'](_0x1e4b52=>!validId(_0x1e4b52))||new Set(_0x56b8c0[_0x2848ce(0x1e8)])['size']!==_0x56b8c0[_0x2848ce(0x1e8)]['length']||_0x56b8c0[_0x2848ce(0x1e8)][_0x2848ce(0x1f2)]!==0x0&&_0x56b8c0[_0x2848ce(0x1e8)][_0x2848ce(0x1f2)]!==_0x56b8c0[_0x2848ce(0x1f9)][_0x2848ce(0x1f2)]||_0x56b8c0[_0x2848ce(0x1fe)]===_0x2848ce(0x1de)&&_0x56b8c0[_0x2848ce(0x1e8)][_0x2848ce(0x1f2)]!==_0x56b8c0[_0x2848ce(0x1f9)][_0x2848ce(0x1f2)]||_0x56b8c0['status']===_0x2848ce(0x1dd)&&_0x56b8c0[_0x2848ce(0x1e8)][_0x2848ce(0x1f2)]!==0x0))throw Error(_0x2848ce(0x1d1));const _0x4c56f4=_0x34f5f4['batches']['flatMap'](_0x4da31b=>_0x4da31b[_0x2848ce(0x1e8)]);if(new Set(_0x4c56f4)[_0x2848ce(0x1d6)]!==_0x4c56f4[_0x2848ce(0x1f2)])throw Error('Import\x20checkpoint\x20contains\x20duplicate\x20generated\x20IDs.');}else{try{await lstat(_0x5e4227[_0x2848ce(0x1f7)]);throw Error(_0x2848ce(0x1f1));}catch(_0x188b42){if(_0x188b42[_0x2848ce(0x215)]!==_0x2848ce(0x226))throw _0x188b42;}const _0x2e0b22=new Set();_0x34f5f4={'version':0x2,'importId':randomUUID(),'binding':_0x3493a2,'batches':_0x24f1b3['map'](_0xd2ff2b=>{const _0x1fce19=_0x2848ce;let _0xab0110;do{_0xab0110=Number(BigInt('0x'+randomBytes(0x7)['toString'](_0x1fce19(0x21a)))&(0x1n<<0x34n)-0x1n)+0x1;}while(_0x2e0b22[_0x1fce19(0x1e5)](_0xab0110));return _0x2e0b22[_0x1fce19(0x1e4)](_0xab0110),{'taskId':_0xab0110,'rowIndexes':_0xd2ff2b,'ids':[],'status':'unsent'};})},await saveImportJson(_0x5e4227['checkpoint'],_0x34f5f4);}await _0x5e4227[_0x2848ce(0x1fd)]?.();const _0x41822b=_0x34f5f4,_0x1b4c0f=async(_0x4b874b,_0xc91895)=>{const _0x4b1e13=_0x2848ce;_0x4b874b[_0x4b1e13(0x1fe)]=_0x4b1e13(0x208),await saveImportJson(_0x5e4227[_0x4b1e13(0x1f7)],_0x41822b);throw Error(_0xc91895);},_0x3bbad4=async _0x2dd3f0=>{const _0x3e69ea=_0x2848ce,_0x3b621a=await _0x22ebd3[_0x3e69ea(0x21c)](_0x2dd3f0['taskId']);if(!Array[_0x3e69ea(0x207)](_0x3b621a))throw Error(_0x3e69ea(0x21d));if(_0x2dd3f0[_0x3e69ea(0x1fe)]===_0x3e69ea(0x1dd)&&_0x3b621a['length'])return _0x1b4c0f(_0x2dd3f0,_0x3e69ea(0x1e6));if(!_0x3b621a[_0x3e69ea(0x1f2)]){if(_0x2dd3f0[_0x3e69ea(0x1fe)]===_0x3e69ea(0x1de)||_0x2dd3f0[_0x3e69ea(0x1e8)]['length'])return _0x1b4c0f(_0x2dd3f0,_0x3e69ea(0x1e2));return![];}if(_0x3b621a['length']!==_0x2dd3f0['rowIndexes'][_0x3e69ea(0x1f2)])return _0x1b4c0f(_0x2dd3f0,_0x3e69ea(0x228));const _0x155954=_0x3b621a[_0x3e69ea(0x1ec)](_0x121e88=>_0x121e88?.['id']);if(_0x155954['some'](_0x227803=>!validId(_0x227803)))return _0x1b4c0f(_0x2dd3f0,_0x3e69ea(0x1e7));const _0x194ecb=_0x155954;if(_0x194ecb[_0x3e69ea(0x1e9)](_0x5085ac=>!validId(_0x5085ac))||_0x194ecb['some']((_0x2cf08f,_0x360140)=>_0x360140>0x0&&_0x2cf08f<=_0x194ecb[_0x360140-0x1])||_0x2dd3f0[_0x3e69ea(0x1e8)][_0x3e69ea(0x1f2)]&&canonical(_0x194ecb)!==canonical(_0x2dd3f0[_0x3e69ea(0x1e8)]))return _0x1b4c0f(_0x2dd3f0,'Import\x20generated\x20ID\x20conflict.');const _0x477e36=new Set(_0x41822b[_0x3e69ea(0x219)][_0x3e69ea(0x1e1)](_0x3dd7ea=>_0x3dd7ea!==_0x2dd3f0)[_0x3e69ea(0x222)](_0x55d656=>_0x55d656[_0x3e69ea(0x1e8)]));if(_0x194ecb[_0x3e69ea(0x1e9)](_0x18fa7f=>_0x477e36['has'](_0x18fa7f)))return _0x1b4c0f(_0x2dd3f0,_0x3e69ea(0x218));for(let _0x26aba6=0x0;_0x26aba6<_0x3b621a[_0x3e69ea(0x1f2)];_0x26aba6++){const _0x48b77b=_0x107182[_0x3e69ea(0x229)][_0x2dd3f0[_0x3e69ea(0x1f9)][_0x26aba6]][_0x3e69ea(0x1ed)];if(Object[_0x3e69ea(0x220)](_0x48b77b)[_0x3e69ea(0x1e9)](_0x4b6d28=>!sameImportValue(_0x48b77b[_0x4b6d28],_0x3b621a[_0x26aba6][_0x4b6d28],_0x107182['imageFields']?.[_0x3e69ea(0x1d7)](_0x4b6d28)&&!_0x107182[_0x3e69ea(0x225)]?.[_0x3e69ea(0x1d7)](_0x4b6d28))))return _0x1b4c0f(_0x2dd3f0,_0x3e69ea(0x209)+_0x107182[_0x3e69ea(0x229)][_0x2dd3f0[_0x3e69ea(0x1f9)][_0x26aba6]][_0x3e69ea(0x1f8)]+'.');}return _0x2dd3f0[_0x3e69ea(0x1e8)]=_0x194ecb,_0x2dd3f0['status']=_0x3e69ea(0x1de),await saveImportJson(_0x5e4227[_0x3e69ea(0x1f7)],_0x41822b),!![];};if(_0x41822b[_0x2848ce(0x219)][_0x2848ce(0x1e9)](_0x3924d7=>_0x3924d7[_0x2848ce(0x1fe)]==='conflict'&&!(_0x5e4227[_0x2848ce(0x1ee)]&&_0x5e4227['reconcileImageConflicts']&&_0x107182['imageFields']?.[_0x2848ce(0x1f2)]&&_0x3924d7['ids'][_0x2848ce(0x1f2)]===_0x3924d7['rowIndexes']['length'])))throw Error(_0x2848ce(0x1d3));if(_0x5e4227[_0x2848ce(0x1ee)]){for(const _0x286bf1 of _0x41822b['batches'])await _0x3bbad4(_0x286bf1);}for(const _0x311ae7 of _0x41822b[_0x2848ce(0x219)]){if(_0x311ae7[_0x2848ce(0x1fe)]==='succeeded')continue;if(!_0x5e4227[_0x2848ce(0x1ee)])await _0x3bbad4(_0x311ae7);_0x311ae7[_0x2848ce(0x1fe)]='pending',await saveImportJson(_0x5e4227[_0x2848ce(0x1f7)],_0x41822b),_0x2cce3d++;const _0x18f400=_0x311ae7[_0x2848ce(0x1f9)][_0x2848ce(0x1ec)](_0x27b52e=>_0x107182[_0x2848ce(0x229)][_0x27b52e][_0x2848ce(0x1ed)]),_0x1affe1=Date[_0x2848ce(0x205)](),_0xd248a7={'batch':_0x2cce3d,'rowStart':_0x107182[_0x2848ce(0x229)][_0x311ae7['rowIndexes'][0x0]][_0x2848ce(0x1f8)],'rowEnd':_0x107182['rows'][_0x311ae7[_0x2848ce(0x1f9)]['at'](-0x1)]['rowNumber'],'count':_0x18f400[_0x2848ce(0x1f2)],'bytes':_0x444986(_0x311ae7['rowIndexes'],_0x311ae7[_0x2848ce(0x1d5)]),'elapsedMs':0x0,'status':_0x2848ce(0x1f5)};_0x38be23[_0x2848ce(0x1e0)](_0xd248a7);try{const _0x3423f0=await _0x22ebd3['write'](_0x18f400,_0x311ae7[_0x2848ce(0x1d5)]);if(!_0x3423f0||_0x3423f0[_0x2848ce(0x1e3)]!==_0x18f400[_0x2848ce(0x1f2)]||!Array['isArray'](_0x3423f0[_0x2848ce(0x1e8)])||_0x3423f0['ids']['length']!==_0x18f400[_0x2848ce(0x1f2)]||_0x3423f0[_0x2848ce(0x1e8)][_0x2848ce(0x1e9)](_0x51d73d=>!validId(_0x51d73d))||new Set(_0x3423f0[_0x2848ce(0x1e8)])['size']!==_0x3423f0['ids'][_0x2848ce(0x1f2)])throw Error(_0x2848ce(0x20c));_0x311ae7[_0x2848ce(0x1e8)]=_0x3423f0[_0x2848ce(0x1e8)],await saveImportJson(_0x5e4227['checkpoint'],_0x41822b);if(!await _0x3bbad4(_0x311ae7))throw Error(_0x2848ce(0x1ef));}catch(_0x99c343){if(_0x311ae7['status']==='conflict')throw _0x99c343;try{await _0x3bbad4(_0x311ae7);}catch(_0x55078f){if(_0x311ae7[_0x2848ce(0x1fe)]===_0x2848ce(0x208))throw _0x55078f;}if(_0x311ae7[_0x2848ce(0x1fe)]!==_0x2848ce(0x1de))throw Error(_0x2848ce(0x1d8));}finally{_0xd248a7[_0x2848ce(0x212)]=Date[_0x2848ce(0x205)]()-_0x1affe1,_0xd248a7[_0x2848ce(0x1fe)]=_0x311ae7[_0x2848ce(0x1fe)]===_0x2848ce(0x1de)?_0x2848ce(0x1de):_0x311ae7['status']==='conflict'?'conflict':_0x2848ce(0x1f5);}}const _0x2dad16={'status':_0x2848ce(0x1f4),..._0x5de5a4()};return await saveImportJson(_0x5e4227[_0x2848ce(0x1df)],_0x2dad16),_0x2dad16;}catch(_0xf51e2b){if(_0x34f5f4)await saveImportJson(_0x5e4227['report'],{'status':_0x2848ce(0x1d2),..._0x5de5a4(),'message':_0xf51e2b[_0x2848ce(0x1d4)]});throw _0xf51e2b;}finally{await _0x55717f();}}
|
|
1
|
+
const a139_0x168b62=a139_0x4066;function a139_0x1061(){const _0xbe0ca0=['rowIndexes','size','isSafeInteger','225455ycSerK','batches','fileHash','has','count','completed','reduce','filter','code','mappingHash','datasetCode','hasOwn','Import\x20checkpoint\x20contains\x20duplicate\x20generated\x20IDs.','warnings','\x20exceeds\x20the\x20import\x20request\x20size\x20limit.','resume','sheet','ids','report','stringify','elapsedMs','flatMap','schemaHash','string','237012ssIICi','maxBatchBytes','add','3459393VPHuyV','imageFields','unknown','readTask','toString','Partial\x20import\x20task\x20readback\x20conflict.','rows','Import\x20content\x20conflict\x20at\x20Excel\x20row\x20','Import\x20checkpoint\x20already\x20exists;\x20use\x20--resume.','batchSize','Import\x20checkpoint\x20contains\x20a\x20content\x20conflict.','binding','succeeded','schemaFingerprint','keys','number','Invalid\x20import\x20batch\x20size.','status','Excel\x20row\x20','Import\x20generated\x20ID\x20collision.','values','utf8','push','includes','reconcileImageConflicts','map','schemaVersion','byteLength','some','768840OXvELw','conflict','Cannot\x20read\x20the\x20import\x20checkpoint.','emptyRows','incomplete','22488XZjbZs','taskId','Invalid\x20write\x20result.','Import\x20generated\x20ID\x20conflict.','now','errors','413cEizEQ','runtimeDomain','importId','Invalid\x20import\x20task\x20readback\x20response.','The\x20import\x20write\x20outcome\x20is\x20unknown.\x20Resume\x20to\x20reconcile\x20the\x20original\x20task\x20marker\x20before\x20continuing.','length','uploadFields','Import\x20checkpoint\x20does\x20not\x20match\x20the\x20input,\x20target\x20or\x20identity.','1062720EDqzta','4orJbCT','isArray','Auto-ID\x20import\x20items\x20cannot\x20contain\x20a\x20primary\x20key.','4782MXQdGY','rowNumber','checkpoint','isInteger','193jfCWjr','unsent'];a139_0x1061=function(){return _0xbe0ca0;};return a139_0x1061();}(function(_0x1653ad,_0x58e703){const _0x565f09=a139_0x4066,_0x341aac=_0x1653ad();while(!![]){try{const _0x6d6fb4=-parseInt(_0x565f09(0x1e6))/0x1*(-parseInt(_0x565f09(0x1e2))/0x2)+parseInt(_0x565f09(0x1ab))/0x3*(parseInt(_0x565f09(0x1df))/0x4)+-parseInt(_0x565f09(0x193))/0x5+-parseInt(_0x565f09(0x1cb))/0x6+-parseInt(_0x565f09(0x1d6))/0x7*(-parseInt(_0x565f09(0x1d0))/0x8)+-parseInt(_0x565f09(0x1ae))/0x9+parseInt(_0x565f09(0x1de))/0xa;if(_0x6d6fb4===_0x58e703)break;else _0x341aac['push'](_0x341aac['shift']());}catch(_0x54e5a5){_0x341aac['push'](_0x341aac['shift']());}}}(a139_0x1061,0x3e404));import{randomBytes,randomUUID}from'node:crypto';import{lstat,readFile}from'node:fs/promises';function a139_0x4066(_0x40a84f,_0x1adaed){_0x40a84f=_0x40a84f-0x192;const _0x10617d=a139_0x1061();let _0x406619=_0x10617d[_0x40a84f];return _0x406619;}import{acquireLock,assertImportContract,assertImportPaths,canonical,sameImportValue,resolveImportOutputPath,saveImportJson}from'./runner.js';const validId=_0x2495c1=>typeof _0x2495c1===a139_0x168b62(0x1bd)&&Number[a139_0x168b62(0x192)](_0x2495c1)&&_0x2495c1>0x0;export async function runAutoIdExcelImport(_0x1ea967){const _0x4e8fc4=a139_0x168b62,_0x40e7c4={..._0x1ea967,'checkpoint':await resolveImportOutputPath(_0x1ea967['checkpoint']),'report':await resolveImportOutputPath(_0x1ea967[_0x4e8fc4(0x1a5)])},{manifest:_0xd69701,contract:_0x13fb99,api:_0x4327a6}=_0x40e7c4;assertImportContract(_0x13fb99,_0x40e7c4['appCode'],_0x40e7c4['datasetCode']);if(_0x13fb99[_0x4e8fc4(0x1c8)]!==0x2||!_0x4327a6[_0x4e8fc4(0x1b1)])throw Error('The\x20auto-ID\x20runner\x20requires\x20the\x20v2\x20task\x20readback\x20contract.');if(_0xd69701[_0x4e8fc4(0x1d5)][_0x4e8fc4(0x1db)])throw Error('Excel\x20contains\x20invalid\x20rows;\x20no\x20data\x20was\x20written.');if(!_0xd69701[_0x4e8fc4(0x1b4)][_0x4e8fc4(0x1db)])throw Error('Excel\x20contains\x20no\x20valid\x20data\x20rows.');if(!Number[_0x4e8fc4(0x1e5)](_0x40e7c4['batchSize'])||_0x40e7c4[_0x4e8fc4(0x1b7)]<0x1||_0x40e7c4[_0x4e8fc4(0x1b7)]>_0x13fb99['maxBatchSize'])throw Error(_0x4e8fc4(0x1be));assertImportPaths(_0x40e7c4[_0x4e8fc4(0x1e4)],_0x40e7c4[_0x4e8fc4(0x1a5)]);if(_0xd69701[_0x4e8fc4(0x1b4)][_0x4e8fc4(0x1ca)](_0x16d4c5=>Object[_0x4e8fc4(0x19e)](_0x16d4c5['values'],'id')))throw Error(_0x4e8fc4(0x1e1));const _0x502a44=(_0x4e260f,_0xe61d23)=>Buffer[_0x4e8fc4(0x1c9)](JSON[_0x4e8fc4(0x1a6)]({'schemaFingerprint':_0x13fb99[_0x4e8fc4(0x1bb)],'taskId':_0xe61d23,'items':_0x4e260f[_0x4e8fc4(0x1c7)](_0x270f0d=>_0xd69701['rows'][_0x270f0d][_0x4e8fc4(0x1c2)])}),'utf8'),_0x368d72=[];let _0x19253d=[];for(let _0x50152f=0x0;_0x50152f<_0xd69701['rows'][_0x4e8fc4(0x1db)];_0x50152f++){if(_0x502a44([_0x50152f],0x2**0x34)>_0x13fb99[_0x4e8fc4(0x1ac)])throw Error(_0x4e8fc4(0x1c0)+_0xd69701[_0x4e8fc4(0x1b4)][_0x50152f][_0x4e8fc4(0x1e3)]+_0x4e8fc4(0x1a1));_0x19253d[_0x4e8fc4(0x1db)]&&(_0x19253d[_0x4e8fc4(0x1db)]===_0x40e7c4[_0x4e8fc4(0x1b7)]||_0x502a44([..._0x19253d,_0x50152f],0x2**0x34)>_0x13fb99[_0x4e8fc4(0x1ac)])&&(_0x368d72[_0x4e8fc4(0x1c4)](_0x19253d),_0x19253d=[]),_0x19253d[_0x4e8fc4(0x1c4)](_0x50152f);}if(_0x19253d['length'])_0x368d72[_0x4e8fc4(0x1c4)](_0x19253d);const _0x20ecdb={'appCode':_0x40e7c4['appCode'],'datasetCode':_0x40e7c4[_0x4e8fc4(0x19d)],'runtimeDomain':_0x40e7c4[_0x4e8fc4(0x1d7)],'actorId':_0x13fb99['actorId'],'fileHash':_0xd69701[_0x4e8fc4(0x195)],'mappingHash':_0xd69701[_0x4e8fc4(0x19c)],'schemaHash':_0xd69701[_0x4e8fc4(0x1a9)],'remoteSchemaHash':_0x13fb99['schemaFingerprint'],'batchSize':_0x40e7c4['batchSize'],'maxBatchBytes':_0x13fb99[_0x4e8fc4(0x1ac)],'sheet':_0xd69701[_0x4e8fc4(0x1a3)],'strategy':_0x13fb99['strategy']},_0xca0eee=await acquireLock(_0x40e7c4[_0x4e8fc4(0x1e4)]);let _0x240f82;const _0x2cffcc=Date[_0x4e8fc4(0x1d4)]();let _0x2b79c1=0x0;const _0x1e254c=[],_0x51adbf=_0x855496=>_0x240f82?.['batches'][_0x4e8fc4(0x19a)](_0x1e4956=>_0x1e4956['status']===_0x855496)[_0x4e8fc4(0x199)]((_0xe8cd8a,_0x5f5883)=>_0xe8cd8a+_0x5f5883[_0x4e8fc4(0x1e8)][_0x4e8fc4(0x1db)],0x0)??0x0,_0x504bc5=()=>({'importId':_0x240f82?.[_0x4e8fc4(0x1d8)],'sourceRows':_0xd69701[_0x4e8fc4(0x1b4)]['length'],'emptyRows':_0xd69701[_0x4e8fc4(0x1ce)][_0x4e8fc4(0x1db)],'succeeded':_0x51adbf('succeeded'),'unknown':_0x51adbf('pending'),'conflicts':_0x51adbf(_0x4e8fc4(0x1cc)),'notAttempted':_0x51adbf(_0x4e8fc4(0x1e7)),'batches':_0x2b79c1,'batchResults':_0x1e254c,'elapsedMs':Date[_0x4e8fc4(0x1d4)]()-_0x2cffcc,'checkpoint':_0x40e7c4['checkpoint'],'report':_0x40e7c4[_0x4e8fc4(0x1a5)],'warnings':_0xd69701[_0x4e8fc4(0x1a0)]});try{if(_0x40e7c4[_0x4e8fc4(0x1a2)]){try{_0x240f82=JSON['parse'](await readFile(_0x40e7c4[_0x4e8fc4(0x1e4)],_0x4e8fc4(0x1c3)));}catch{throw Error(_0x4e8fc4(0x1cd));}if(!_0x240f82||_0x240f82['version']!==0x2||typeof _0x240f82[_0x4e8fc4(0x1d8)]!==_0x4e8fc4(0x1aa)||!_0x240f82[_0x4e8fc4(0x1d8)]||canonical(_0x240f82[_0x4e8fc4(0x1b9)])!==canonical(_0x20ecdb)||!Array[_0x4e8fc4(0x1e0)](_0x240f82[_0x4e8fc4(0x194)])||_0x240f82[_0x4e8fc4(0x194)]['length']!==_0x368d72[_0x4e8fc4(0x1db)]||new Set(_0x240f82[_0x4e8fc4(0x194)][_0x4e8fc4(0x1c7)](_0x529bcb=>_0x529bcb[_0x4e8fc4(0x1d1)]))['size']!==_0x368d72[_0x4e8fc4(0x1db)]||_0x240f82[_0x4e8fc4(0x194)][_0x4e8fc4(0x1ca)]((_0x20e771,_0x1c58a6)=>!validId(_0x20e771[_0x4e8fc4(0x1d1)])||_0x20e771[_0x4e8fc4(0x1d1)]>0x2**0x34||canonical(_0x20e771[_0x4e8fc4(0x1e8)])!==canonical(_0x368d72[_0x1c58a6])||![_0x4e8fc4(0x1e7),'pending',_0x4e8fc4(0x1ba),_0x4e8fc4(0x1cc)][_0x4e8fc4(0x1c5)](_0x20e771[_0x4e8fc4(0x1bf)])||!Array['isArray'](_0x20e771[_0x4e8fc4(0x1a4)])||_0x20e771['ids'][_0x4e8fc4(0x1ca)](_0x4d5009=>!validId(_0x4d5009))||new Set(_0x20e771[_0x4e8fc4(0x1a4)])[_0x4e8fc4(0x1e9)]!==_0x20e771[_0x4e8fc4(0x1a4)][_0x4e8fc4(0x1db)]||_0x20e771['ids']['length']!==0x0&&_0x20e771[_0x4e8fc4(0x1a4)][_0x4e8fc4(0x1db)]!==_0x20e771[_0x4e8fc4(0x1e8)][_0x4e8fc4(0x1db)]||_0x20e771['status']==='succeeded'&&_0x20e771[_0x4e8fc4(0x1a4)][_0x4e8fc4(0x1db)]!==_0x20e771['rowIndexes'][_0x4e8fc4(0x1db)]||_0x20e771[_0x4e8fc4(0x1bf)]===_0x4e8fc4(0x1e7)&&_0x20e771[_0x4e8fc4(0x1a4)][_0x4e8fc4(0x1db)]!==0x0))throw Error(_0x4e8fc4(0x1dd));const _0x173915=_0x240f82['batches'][_0x4e8fc4(0x1a8)](_0x14c406=>_0x14c406['ids']);if(new Set(_0x173915)[_0x4e8fc4(0x1e9)]!==_0x173915[_0x4e8fc4(0x1db)])throw Error(_0x4e8fc4(0x19f));}else{try{await lstat(_0x40e7c4[_0x4e8fc4(0x1e4)]);throw Error(_0x4e8fc4(0x1b6));}catch(_0x200030){if(_0x200030[_0x4e8fc4(0x19b)]!=='ENOENT')throw _0x200030;}const _0x13fae7=new Set();_0x240f82={'version':0x2,'importId':randomUUID(),'binding':_0x20ecdb,'batches':_0x368d72[_0x4e8fc4(0x1c7)](_0x377618=>{const _0x2a98c2=_0x4e8fc4;let _0x3cdc3e;do{_0x3cdc3e=Number(BigInt('0x'+randomBytes(0x7)[_0x2a98c2(0x1b2)]('hex'))&(0x1n<<0x34n)-0x1n)+0x1;}while(_0x13fae7[_0x2a98c2(0x196)](_0x3cdc3e));return _0x13fae7[_0x2a98c2(0x1ad)](_0x3cdc3e),{'taskId':_0x3cdc3e,'rowIndexes':_0x377618,'ids':[],'status':_0x2a98c2(0x1e7)};})},await saveImportJson(_0x40e7c4[_0x4e8fc4(0x1e4)],_0x240f82);}await _0x40e7c4['onCheckpointReady']?.();const _0x17799f=_0x240f82,_0x31e3db=async(_0x4dc330,_0x22ee1c)=>{const _0x5c8b50=_0x4e8fc4;_0x4dc330[_0x5c8b50(0x1bf)]=_0x5c8b50(0x1cc),await saveImportJson(_0x40e7c4[_0x5c8b50(0x1e4)],_0x17799f);throw Error(_0x22ee1c);},_0x3b5f8f=async _0x3c60c3=>{const _0x27da79=_0x4e8fc4,_0x3d7b8e=await _0x4327a6[_0x27da79(0x1b1)](_0x3c60c3['taskId']);if(!Array[_0x27da79(0x1e0)](_0x3d7b8e))throw Error(_0x27da79(0x1d9));if(_0x3c60c3[_0x27da79(0x1bf)]===_0x27da79(0x1e7)&&_0x3d7b8e[_0x27da79(0x1db)])return _0x31e3db(_0x3c60c3,'Import\x20task\x20marker\x20collision;\x20stop\x20without\x20replacing\x20the\x20marker.');if(!_0x3d7b8e[_0x27da79(0x1db)]){if(_0x3c60c3[_0x27da79(0x1bf)]===_0x27da79(0x1ba)||_0x3c60c3['ids'][_0x27da79(0x1db)])return _0x31e3db(_0x3c60c3,'Previously\x20imported\x20records\x20are\x20no\x20longer\x20visible;\x20recovery\x20conflict.');return![];}if(_0x3d7b8e[_0x27da79(0x1db)]!==_0x3c60c3[_0x27da79(0x1e8)][_0x27da79(0x1db)])return _0x31e3db(_0x3c60c3,_0x27da79(0x1b3));const _0x477041=_0x3d7b8e[_0x27da79(0x1c7)](_0xf495a5=>_0xf495a5?.['id']);if(_0x477041[_0x27da79(0x1ca)](_0x43530c=>!validId(_0x43530c)))return _0x31e3db(_0x3c60c3,_0x27da79(0x1d3));const _0x32f822=_0x477041;if(_0x32f822[_0x27da79(0x1ca)](_0x36dfc1=>!validId(_0x36dfc1))||_0x32f822[_0x27da79(0x1ca)]((_0x3019a5,_0x37ee68)=>_0x37ee68>0x0&&_0x3019a5<=_0x32f822[_0x37ee68-0x1])||_0x3c60c3[_0x27da79(0x1a4)][_0x27da79(0x1db)]&&canonical(_0x32f822)!==canonical(_0x3c60c3['ids']))return _0x31e3db(_0x3c60c3,_0x27da79(0x1d3));const _0x5099d9=new Set(_0x17799f[_0x27da79(0x194)][_0x27da79(0x19a)](_0x6d7055=>_0x6d7055!==_0x3c60c3)['flatMap'](_0x1c9b4a=>_0x1c9b4a['ids']));if(_0x32f822['some'](_0x2484a7=>_0x5099d9[_0x27da79(0x196)](_0x2484a7)))return _0x31e3db(_0x3c60c3,_0x27da79(0x1c1));for(let _0x1c9c75=0x0;_0x1c9c75<_0x3d7b8e['length'];_0x1c9c75++){const _0x348cd9=_0xd69701['rows'][_0x3c60c3[_0x27da79(0x1e8)][_0x1c9c75]]['values'];if(Object[_0x27da79(0x1bc)](_0x348cd9)[_0x27da79(0x1ca)](_0x410d1e=>!sameImportValue(_0x348cd9[_0x410d1e],_0x3d7b8e[_0x1c9c75][_0x410d1e],_0xd69701[_0x27da79(0x1af)]?.[_0x27da79(0x1c5)](_0x410d1e)&&!_0xd69701[_0x27da79(0x1dc)]?.[_0x27da79(0x1c5)](_0x410d1e))))return _0x31e3db(_0x3c60c3,_0x27da79(0x1b5)+_0xd69701[_0x27da79(0x1b4)][_0x3c60c3[_0x27da79(0x1e8)][_0x1c9c75]]['rowNumber']+'.');}return _0x3c60c3[_0x27da79(0x1a4)]=_0x32f822,_0x3c60c3[_0x27da79(0x1bf)]=_0x27da79(0x1ba),await saveImportJson(_0x40e7c4[_0x27da79(0x1e4)],_0x17799f),!![];};if(_0x17799f[_0x4e8fc4(0x194)][_0x4e8fc4(0x1ca)](_0x27b6dd=>_0x27b6dd['status']==='conflict'&&!(_0x40e7c4['resume']&&_0x40e7c4[_0x4e8fc4(0x1c6)]&&_0xd69701[_0x4e8fc4(0x1af)]?.[_0x4e8fc4(0x1db)]&&_0x27b6dd[_0x4e8fc4(0x1a4)]['length']===_0x27b6dd[_0x4e8fc4(0x1e8)][_0x4e8fc4(0x1db)])))throw Error(_0x4e8fc4(0x1b8));if(_0x40e7c4[_0x4e8fc4(0x1a2)]){for(const _0x501b71 of _0x17799f[_0x4e8fc4(0x194)])await _0x3b5f8f(_0x501b71);}for(const _0x3da28d of _0x17799f[_0x4e8fc4(0x194)]){if(_0x3da28d['status']===_0x4e8fc4(0x1ba))continue;if(!_0x40e7c4[_0x4e8fc4(0x1a2)])await _0x3b5f8f(_0x3da28d);_0x3da28d[_0x4e8fc4(0x1bf)]='pending',await saveImportJson(_0x40e7c4['checkpoint'],_0x17799f),_0x2b79c1++;const _0x370037=_0x3da28d[_0x4e8fc4(0x1e8)][_0x4e8fc4(0x1c7)](_0x4b707c=>_0xd69701[_0x4e8fc4(0x1b4)][_0x4b707c][_0x4e8fc4(0x1c2)]),_0x18c245=Date[_0x4e8fc4(0x1d4)](),_0x5900c6={'batch':_0x2b79c1,'rowStart':_0xd69701['rows'][_0x3da28d[_0x4e8fc4(0x1e8)][0x0]]['rowNumber'],'rowEnd':_0xd69701[_0x4e8fc4(0x1b4)][_0x3da28d['rowIndexes']['at'](-0x1)][_0x4e8fc4(0x1e3)],'count':_0x370037['length'],'bytes':_0x502a44(_0x3da28d[_0x4e8fc4(0x1e8)],_0x3da28d['taskId']),'elapsedMs':0x0,'status':_0x4e8fc4(0x1b0)};_0x1e254c[_0x4e8fc4(0x1c4)](_0x5900c6);try{const _0x2d36b7=await _0x4327a6['write'](_0x370037,_0x3da28d[_0x4e8fc4(0x1d1)]);if(!_0x2d36b7||_0x2d36b7[_0x4e8fc4(0x197)]!==_0x370037[_0x4e8fc4(0x1db)]||!Array['isArray'](_0x2d36b7[_0x4e8fc4(0x1a4)])||_0x2d36b7[_0x4e8fc4(0x1a4)]['length']!==_0x370037[_0x4e8fc4(0x1db)]||_0x2d36b7[_0x4e8fc4(0x1a4)][_0x4e8fc4(0x1ca)](_0x22cde2=>!validId(_0x22cde2))||new Set(_0x2d36b7[_0x4e8fc4(0x1a4)])[_0x4e8fc4(0x1e9)]!==_0x2d36b7[_0x4e8fc4(0x1a4)][_0x4e8fc4(0x1db)])throw Error(_0x4e8fc4(0x1d2));_0x3da28d[_0x4e8fc4(0x1a4)]=_0x2d36b7[_0x4e8fc4(0x1a4)],await saveImportJson(_0x40e7c4['checkpoint'],_0x17799f);if(!await _0x3b5f8f(_0x3da28d))throw Error('Incomplete\x20readback.');}catch(_0x39c75c){if(_0x3da28d['status']===_0x4e8fc4(0x1cc))throw _0x39c75c;try{await _0x3b5f8f(_0x3da28d);}catch(_0x2e9a7d){if(_0x3da28d[_0x4e8fc4(0x1bf)]===_0x4e8fc4(0x1cc))throw _0x2e9a7d;}if(_0x3da28d[_0x4e8fc4(0x1bf)]!==_0x4e8fc4(0x1ba))throw Error(_0x4e8fc4(0x1da));}finally{_0x5900c6[_0x4e8fc4(0x1a7)]=Date['now']()-_0x18c245,_0x5900c6[_0x4e8fc4(0x1bf)]=_0x3da28d[_0x4e8fc4(0x1bf)]===_0x4e8fc4(0x1ba)?_0x4e8fc4(0x1ba):_0x3da28d[_0x4e8fc4(0x1bf)]==='conflict'?_0x4e8fc4(0x1cc):_0x4e8fc4(0x1b0);}}const _0x4d9ee9={'status':_0x4e8fc4(0x198),..._0x504bc5()};return await saveImportJson(_0x40e7c4[_0x4e8fc4(0x1a5)],_0x4d9ee9),_0x4d9ee9;}catch(_0x5ee4e8){if(_0x240f82)await saveImportJson(_0x40e7c4[_0x4e8fc4(0x1a5)],{'status':_0x4e8fc4(0x1cf),..._0x504bc5(),'message':_0x5ee4e8['message']});throw _0x5ee4e8;}finally{await _0xca0eee();}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a140_0x1fec59=a140_0x53c0;(function(_0x577f38,_0x2f5101){const _0x78a6ef=a140_0x53c0,_0x336c1a=_0x577f38();while(!![]){try{const _0x39a620=parseInt(_0x78a6ef(0x133))/0x1+parseInt(_0x78a6ef(0x11d))/0x2*(parseInt(_0x78a6ef(0x12c))/0x3)+parseInt(_0x78a6ef(0x10b))/0x4*(-parseInt(_0x78a6ef(0xdd))/0x5)+parseInt(_0x78a6ef(0x18d))/0x6*(-parseInt(_0x78a6ef(0x107))/0x7)+parseInt(_0x78a6ef(0x190))/0x8*(parseInt(_0x78a6ef(0xe2))/0x9)+-parseInt(_0x78a6ef(0x1ad))/0xa+parseInt(_0x78a6ef(0x10f))/0xb;if(_0x39a620===_0x2f5101)break;else _0x336c1a['push'](_0x336c1a['shift']());}catch(_0x894bbc){_0x336c1a['push'](_0x336c1a['shift']());}}}(a140_0x22ab,0x7c430));import{readFile,stat}from'node:fs/promises';import{createHash}from'node:crypto';function a140_0x53c0(_0x261b90,_0x4bf962){_0x261b90=_0x261b90-0xcc;const _0x22ab87=a140_0x22ab();let _0x53c02e=_0x22ab87[_0x261b90];return _0x53c02e;}import a140_0x2dbcf2 from'node:path';import{StringDecoder}from'node:string_decoder';import{createRequire}from'node:module';import{SaxesParser}from'saxes';import a140_0x55d702 from'exceljs';import a140_0x32ce1f 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_0x1fec59(0xeb),a140_0x1fec59(0x19d),'datasetId',a140_0x1fec59(0xff),'creatorName','modifierId',a140_0x1fec59(0x136),a140_0x1fec59(0x178),'updateTime',a140_0x1fec59(0x184)]),TYPES=new Set([a140_0x1fec59(0x15e),a140_0x1fec59(0xd6),a140_0x1fec59(0x13a),a140_0x1fec59(0x194),a140_0x1fec59(0x16b),a140_0x1fec59(0xe9),a140_0x1fec59(0x135),a140_0x1fec59(0x124),a140_0x1fec59(0x17a),'image',a140_0x1fec59(0xd9)]),isImageContainer=_0x97817f=>[a140_0x1fec59(0xe8),a140_0x1fec59(0xd9)][a140_0x1fec59(0x192)](_0x97817f[a140_0x1fec59(0x11f)]()),hash=_0xb7ade0=>createHash(a140_0x1fec59(0x1a5))['update'](_0xb7ade0)[a140_0x1fec59(0x13d)]('hex'),require=createRequire(import.meta.url),DefinedNameXform=require('exceljs/lib/xlsx/xform/book/defined-name-xform.js'),nameCoordinates=require('exceljs/lib/utils/col-cache.js'),ABSOLUTE_NAME_RANGE=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/,excelRequire=createRequire(require[a140_0x1fec59(0xcd)]('exceljs')),zipRequire=createRequire(excelRequire[a140_0x1fec59(0xcd)](a140_0x1fec59(0xd0))),ZipEntry=zipRequire(a140_0x1fec59(0x149)),zipReader=zipRequire(a140_0x1fec59(0xd2)),zipUtf8=zipRequire(a140_0x1fec59(0xdc)),zipPaths=zipRequire(a140_0x1fec59(0x175));function a140_0x22ab(){const _0x7abb8d=['batchSize\x20must\x20be\x20between\x201\x20and\x201000.','fileCommentRaw','METADATA','isFinite','7441970iYPZKs','processAttributes','xl/workbook.xml','resolve','Invalid\x20or\x20duplicate\x20dataset\x20field\x20metadata.','opentag','jszip','batchSize','./reader/readerFor','mapping','autoIncrement','Invalid\x20worksheet\x20column\x20range.','text','errors','error','upload','Worksheet\x20coordinate\x20exceeds\x20','Expected\x20a\x20text\x20cell.','./utf8','3518860OrhmVl','destroy','set','exec','object','1094562VHxfrT','attributes','Invalid\x20XLSX\x20archive.','isBuffer','extraFieldRaw','right','image','integer','Invalid\x20dataset\x20field\x20extension\x20metadata.','tenantCode','merges','Expected\x20an\x20Excel\x20date\x20cell.','Unsupported\x20dataset\x20field\x20type:\x20serial_number.','push','max','lastIndexOf','charCodeAt','filter','Invalid\x20worksheet\x20hyperlink\x20reference.','from','Non-canonical\x20worksheet\x20ZIP\x20entry.','repeat','Invalid\x20worksheet\x20nested\x20row.','getCell','jpg','fileName','Duplicate\x20dataset\x20field\x20codes.','warnings','trim','creatorId','entries','write','Cell\x20exceeds\x2064\x20KB.','cells','close','versionMadeBy','MAX_SAFE_INTEGER','5670WNuqxp','extname','Duplicate\x20mapping\x20target:\x20','Invalid\x20worksheet\x20cell\x20without\x20an\x20initial\x20reference.','4zfpbma','Duplicate\x20workbook\x20ZIP\x20entry.','fileNameRaw','source','9749663cryfgo','Unknown\x20or\x20generated\x20mapping\x20field:\x20','isArray','fields','map','xlsx','before','dataset','definedName','rowCount','ref','required','dataset-import/','col','318566EVPFep','nativeCell','toLowerCase','worksheets','byteLength','length','Expected\x20a\x20boolean\x20cell.','date','readExtraFields','readUInt32LE','original','relativeOffsetOfLocalHeader','parserVersion','pop','result','3KYsVbf','concat','generated','readUInt16LE','values','serial_number','sourceType','995215aFASCE','every','boolean','modifierName','localeCompare','XML\x20DTD/entities\x20are\x20not\x20supported.','parseText','textarea','decodeEx','materialized','digest','doctype','imageCells','row','utf8','some','Invalid\x20worksheet\x20coordinate.','isSafeInteger','Required\x20value\x20is\x20missing.','Expected\x20a\x20finite\x20safe\x20numeric\x20cell.','uploadFields','Worksheet\x20exceeds\x2016384\x20columns.','./zipEntry','rows','XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.','name','subarray','file','Worksheet\x20exceeds\x20','compressedSize','Invalid\x20XLSX\x20entry.','size','headerRow\x20must\x20be\x20between\x201\x20and\x20100000.','top','find','readBigUInt64LE','Non-canonical\x20workbook\x20or\x20worksheet\x20ZIP\x20entry.','Duplicate\x20ZIP64\x20extended\x20information\x20fields\x20are\x20not\x20supported.','isInteger','abs','hiddenRow','handleUTF8','utf8decode','string','Invalid\x20worksheet\x20merge\x20reference.','reference','fromBuffer','externalFileAttributes','media','unixPermissions','code','test','entry','Mapping\x20must\x20contain\x20at\x20least\x20one\x20field.','contentHash','Image\x20cell\x20contains\x20scalar\x20or\x20mixed\x20content.','decimal','bottom','add','Unsupported\x20field\x20type:\x20','\x20hidden\x20row(s)\x20are\x20included\x20in\x20the\x20import.','Sheet\x20index\x20must\x20be\x20a\x20positive\x20one-based\x20integer.','Headers\x20must\x20be\x20non-empty\x20text\x20cells\x20no\x20larger\x20than\x2064\x20KB.','load','address','Invalid\x20ZIP\x20central\x20directory\x20layout.','./utils','stringify','parseInt','createTime','slice','datetime','parse','hidden','type','ZIP\x20central\x20directory\x20entry\x20count\x20does\x20not\x20match\x20its\x20contents.','split','parseOpen','image/jpeg','headerRow','fileComment','deleted','parseClose','has','Image\x20XML\x20event\x20budget\x20exceeded.','dataValidations','Non-canonical\x20or\x20duplicate\x20image\x20archive\x20entry.','readEntryCursor','dir','Only\x20.xlsx\x20files\x20are\x20supported.','3324ozTvud','readEntry','File\x20is\x20not\x20an\x20XLSX\x20workbook.','24uwMOcI','create','includes','Worksheet\x20column\x20objects\x20exceed\x20100000.','number','getRow','model','XLSX\x20file\x20must\x20be\x20a\x20regular\x20file\x20no\x20larger\x20than\x2020\x20MB.','Missing\x20image\x20media:\x20','closetag','sort','equals','get','appCode','Unknown\x20Excel\x20header:\x20','openReadStream','startsWith','value','Duplicate\x20header:\x20','Invalid\x20ZIP\x20local\x20file\x20header.','mergeCell','sha256','end','message','eachCell'];a140_0x22ab=function(){return _0x7abb8d;};return a140_0x22ab();}function centralDirectoryEnd(_0x559ce4,_0x32def6){const _0x455da3=a140_0x1fec59,_0x3d489e=()=>new Error(_0x455da3(0x174)),_0xe8bad5=_0x559ce4[_0x455da3(0xf1)](Buffer[_0x455da3(0xf5)]([0x50,0x4b,0x5,0x6]));if(_0xe8bad5<0x0||_0xe8bad5+0x16>_0x559ce4[_0x455da3(0x122)]||_0xe8bad5+0x16+_0x559ce4[_0x455da3(0x12f)](_0xe8bad5+0x14)!==_0x559ce4['length'])throw _0x3d489e();let _0x53588=_0x559ce4[_0x455da3(0x12f)](_0xe8bad5+0xa),_0x3b6c31=_0x559ce4[_0x455da3(0x126)](_0xe8bad5+0xc),_0x15bd3b=_0x559ce4[_0x455da3(0x126)](_0xe8bad5+0x10),_0x2b74c0=_0xe8bad5;const _0x279417=_0xe8bad5-0x14,_0x5f52a5=_0x279417>=0x0&&_0x559ce4[_0x455da3(0x126)](_0x279417)===0x7064b50,_0x4f5b9d=[0x4,0x6,0x8,0xa][_0x455da3(0x142)](_0x31f12f=>_0x559ce4[_0x455da3(0x12f)](_0xe8bad5+_0x31f12f)===0xffff)||_0x3b6c31===0xffffffff||_0x15bd3b===0xffffffff;if(_0x5f52a5!==_0x4f5b9d)throw _0x3d489e();if(_0x5f52a5){if(_0x559ce4[_0x455da3(0xf1)](Buffer[_0x455da3(0xf5)]([0x50,0x4b,0x6,0x7]))!==_0x279417)throw _0x3d489e();const _0x42d72b=_0x136393=>{const _0x1e5918=_0x455da3,_0x386b84=Number(_0x559ce4[_0x1e5918(0x156)](_0x136393));if(!Number[_0x1e5918(0x144)](_0x386b84))throw _0x3d489e();return _0x386b84;};_0x2b74c0=_0x42d72b(_0x279417+0x8);if(_0x559ce4['readUInt32LE'](_0x279417+0x4)!==0x0||_0x559ce4[_0x455da3(0x126)](_0x279417+0x10)!==0x1||_0x2b74c0>_0x279417-0x38||_0x559ce4[_0x455da3(0x126)](_0x2b74c0)!==0x6064b50||_0x42d72b(_0x2b74c0+0x4)!==0x2c||_0x2b74c0+0x38!==_0x279417||_0x559ce4['readUInt32LE'](_0x2b74c0+0x10)!==0x0||_0x559ce4[_0x455da3(0x126)](_0x2b74c0+0x14)!==0x0)throw _0x3d489e();_0x53588=_0x42d72b(_0x2b74c0+0x20),_0x3b6c31=_0x42d72b(_0x2b74c0+0x28),_0x15bd3b=_0x42d72b(_0x2b74c0+0x30);if(_0x42d72b(_0x2b74c0+0x18)!==_0x53588)throw _0x3d489e();}else{if(_0x559ce4['readUInt16LE'](_0xe8bad5+0x4)!==0x0||_0x559ce4[_0x455da3(0x12f)](_0xe8bad5+0x6)!==0x0||_0x559ce4[_0x455da3(0x12f)](_0xe8bad5+0x8)!==_0x53588)throw _0x3d489e();}const _0x44f6d8=_0x32def6[_0x455da3(0x18a)];if(_0x15bd3b!==_0x44f6d8||_0x53588!==_0x32def6['entryCount']||_0x15bd3b+_0x3b6c31!==_0x2b74c0)throw _0x3d489e();return _0x2b74c0;}function consumerEntryName(_0x2f73fc,_0x5e9010){const _0x285c61=a140_0x1fec59;if(_0x5e9010['extraFields'][_0x285c61(0xf3)](_0x13a85c=>_0x13a85c['id']===0x1)[_0x285c61(0x122)]>0x1)throw new Error(_0x285c61(0x158));const _0x27928c=_0x5e9010,_0xd0496b=_0x5e9010[_0x285c61(0x128)];if(!Buffer[_0x285c61(0xe5)](_0x27928c[_0x285c61(0x10d)])||!Buffer[_0x285c61(0xe5)](_0x27928c[_0x285c61(0xe6)])||!Buffer[_0x285c61(0xe5)](_0x27928c[_0x285c61(0x1aa)])||!Number[_0x285c61(0x144)](_0xd0496b)||_0xd0496b<0x0||_0xd0496b>_0x2f73fc[_0x285c61(0x122)]-0x1e||_0x2f73fc[_0x285c61(0x126)](_0xd0496b)!==0x4034b50)throw new Error(_0x285c61(0x1a3));const _0x3099bd=_0xd0496b+0x1e+_0x2f73fc['readUInt16LE'](_0xd0496b+0x1a),_0x1c2631=_0x3099bd+_0x2f73fc[_0x285c61(0x12f)](_0xd0496b+0x1c)+_0x5e9010[_0x285c61(0x150)];if(!Number[_0x285c61(0x144)](_0x1c2631)||_0x1c2631>_0x2f73fc[_0x285c61(0x122)])throw new Error('Invalid\x20ZIP\x20local\x20file\x20header.');if(_0x3099bd>_0x2f73fc[_0x285c61(0x122)]||!_0x2f73fc[_0x285c61(0x14d)](_0xd0496b+0x1e,_0x3099bd)[_0x285c61(0x19b)](_0x27928c[_0x285c61(0x10d)]))throw new Error('ZIP\x20local\x20and\x20central\x20entry\x20names\x20must\x20match.');const _0x41e4ae=new ZipEntry({},{'decodeFileName':zipUtf8[_0x285c61(0x15d)]});_0x41e4ae['bitFlag']=_0x5e9010['generalPurposeBitFlag'],_0x41e4ae[_0x285c61(0xfb)]=_0x27928c['fileNameRaw'],_0x41e4ae[_0x285c61(0x183)]=_0x27928c[_0x285c61(0x1aa)],_0x41e4ae['extraFieldsLength']=_0x27928c[_0x285c61(0xe6)][_0x285c61(0x122)],_0x41e4ae[_0x285c61(0x125)](zipReader(_0x27928c['extraFieldRaw'])),_0x41e4ae[_0x285c61(0x15c)](),_0x41e4ae[_0x285c61(0x105)]=_0x5e9010[_0x285c61(0x105)],_0x41e4ae['externalFileAttributes']=_0x5e9010[_0x285c61(0x162)],_0x41e4ae[_0x285c61(0x1ae)]();const _0x2dedcf=_0x41e4ae[_0x285c61(0x18b)]||Boolean((_0x41e4ae[_0x285c61(0x164)]??0x0)&0x4000),_0xfb3fa6=zipPaths[_0x285c61(0xcd)](_0x41e4ae['fileNameStr']),_0x50c060=_0xfb3fa6[_0x285c61(0x1a0)]('/')?_0xfb3fa6[_0x285c61(0x179)](0x1):_0xfb3fa6;return{'name':_0x50c060,'original':_0x41e4ae['fileNameStr'],'directory':_0x2dedcf};}export function normalizeImportFields(_0x29353a){const _0x10acec=a140_0x1fec59;if(!_0x29353a||(_0x29353a[_0x10acec(0x10e)]??_0x29353a[_0x10acec(0x116)]?.[_0x10acec(0x132)])!==_0x10acec(0x1ab))throw new Error('Excel\x20import\x20only\x20supports\x20METADATA\x20datasets.');const _0x59ea62=Array[_0x10acec(0x111)](_0x29353a[_0x10acec(0x112)]),_0x2486b4=_0x59ea62?_0x29353a[_0x10acec(0x112)]:_0x29353a['properties'];if(!Array[_0x10acec(0x111)](_0x2486b4)||_0x2486b4[_0x10acec(0x122)]===0x0)throw new Error('Dataset\x20field\x20metadata\x20is\x20missing.');const _0x88aac1=[],_0x1b8e4d=new Set();for(const _0x553213 of _0x2486b4){if(_0x553213[_0x10acec(0x184)]===!![])continue;let _0x148917=_0x553213['extend']??{};if(!_0x59ea62&&typeof _0x148917===_0x10acec(0x15e)){try{_0x148917=JSON[_0x10acec(0x17b)](_0x148917);}catch{throw new Error(_0x10acec(0xea));}if(!_0x148917||typeof _0x148917!=='object'||Array[_0x10acec(0x111)](_0x148917))throw new Error(_0x10acec(0xea));}const _0x327101=_0x59ea62?_0x553213[_0x10acec(0x14c)]:_0x553213[_0x10acec(0x165)],_0x4482ed=_0x59ea62?_0x553213['doType']:_0x553213[_0x10acec(0x17d)]??_0x553213['dataType'];if(typeof _0x327101!==_0x10acec(0x15e)||!_0x327101||typeof _0x4482ed!=='string'||_0x1b8e4d[_0x10acec(0x186)](_0x327101))throw new Error(_0x10acec(0xce));if(_0x4482ed['toLowerCase']()===_0x10acec(0x131))throw new Error(_0x10acec(0xee));_0x1b8e4d['add'](_0x327101);const _0x3f3bec=_0x59ea62?_0x553213:_0x148917,_0x263c32={'code':_0x327101,'type':_0x4482ed,'required':_0x3f3bec['required']===!![]};if(RESERVED[_0x10acec(0x186)](_0x327101)||_0x3f3bec[_0x10acec(0x12e)]===!![]||_0x3f3bec[_0x10acec(0xd4)]===!![])_0x263c32[_0x10acec(0x12e)]=!![];_0x88aac1['push'](_0x263c32);}return _0x88aac1;}async function checkArchive(_0x3346cd,_0x36164e){await new Promise((_0x1c7801,_0x351a40)=>{const _0x13e25c=a140_0x53c0;a140_0x32ce1f[_0x13e25c(0x161)](_0x3346cd,{'lazyEntries':!![],'validateEntrySizes':!![]},(_0x229616,_0x53e0d5)=>{const _0x38ab75=_0x13e25c;if(_0x229616||!_0x53e0d5){_0x351a40(_0x229616??new Error(_0x38ab75(0xe4)));return;}let _0x24a25b;try{_0x24a25b=centralDirectoryEnd(_0x3346cd,_0x53e0d5);}catch(_0x42e5b8){_0x53e0d5[_0x38ab75(0x104)](),_0x351a40(_0x42e5b8);return;}let _0x3e3be8=0x0,_0x30dcbc=0x0,_0x2e46a1=0x0,_0x55d55f=0x0,_0x20bd57=0x0,_0x1761e3=0x0,_0x3cfbdc=0x0,_0x488ce9=0x0,_0x319e1d=0x0,_0x262156=![],_0xde2ab7;const _0x5a8452=new Set(),_0x3236c7=_0x14dc2e=>{const _0x25f355=_0x38ab75;if(_0x262156)return;_0x262156=!![],_0xde2ab7?.['destroy'](),_0x53e0d5[_0x25f355(0x104)](),_0x351a40(_0x14dc2e);},_0x134722=(_0x376dd9,_0x569f08)=>{const _0x13fbf1=_0x38ab75;if(!_0x376dd9||!/^\d+$/[_0x13fbf1(0x166)](_0x376dd9))throw new Error(_0x13fbf1(0x143));const _0x4378dd=Number(_0x376dd9);if(!Number['isSafeInteger'](_0x4378dd)||_0x4378dd<0x1||_0x4378dd>_0x569f08)throw new Error(_0x13fbf1(0xda)+_0x569f08+'.');return _0x4378dd;},_0x4019fe=(_0x39c8ba,_0xa7f615=MAX_XML_COLUMNS)=>{const _0x2fd11e=_0x38ab75,_0x2e6351=/^\$?([A-Z]{1,3})\$?(\d+)$/[_0x2fd11e(0xe0)](_0x39c8ba);if(!_0x2e6351)throw new Error('Invalid\x20worksheet\x20cell\x20or\x20merge\x20reference.');let _0x385d97=0x0;for(const _0x55ac28 of _0x2e6351[0x1])_0x385d97=_0x385d97*0x1a+_0x55ac28[_0x2fd11e(0xf2)](0x0)-0x40;if(_0x385d97>_0xa7f615)throw new Error(_0x2fd11e(0x14f)+_0xa7f615+'\x20columns.');return{'row':_0x134722(_0x2e6351[0x2],MAX_XML_ROWS),'col':_0x385d97};},_0x2d8a59=_0xe3737e=>{const _0x376f97=_0x38ab75;if(_0xe3737e['name']==='_xlnm.Print_Area'||_0xe3737e[_0x376f97(0x14c)]==='_xlnm.Print_Titles')return;for(const _0x4a6b86 of _0xe3737e['ranges']){if(!ABSOLUTE_NAME_RANGE[_0x376f97(0x166)](_0x4a6b86[_0x376f97(0x17f)]('!')[_0x376f97(0x12a)]()||''))continue;const _0x262972=nameCoordinates[_0x376f97(0x13b)](_0x4a6b86),_0x397da0='top'in _0x262972,_0x4fd2d6=_0x397da0?[_0x262972[_0x376f97(0x154)],_0x262972[_0x376f97(0x16c)]]:[_0x262972[_0x376f97(0x140)]],_0x50b25c=_0x397da0?[_0x262972['left'],_0x262972[_0x376f97(0xe7)]]:[_0x262972[_0x376f97(0x11c)]],_0x1c166e=(_0x47106b,_0x552cbe)=>Number[_0x376f97(0x144)](_0x47106b)&&_0x47106b>=0x1&&_0x47106b<=_0x552cbe;if(!_0x4fd2d6[_0x376f97(0x134)](_0x5f0a26=>_0x1c166e(_0x5f0a26,MAX_XML_ROWS))||!_0x50b25c[_0x376f97(0x134)](_0x285bdb=>_0x1c166e(_0x285bdb,MAX_XML_COLUMNS)))throw new Error('Invalid\x20defined\x20name\x20coordinate.');_0x3cfbdc+=_0x397da0?(_0x262972[_0x376f97(0x16c)]-_0x262972[_0x376f97(0x154)]+0x1)*(_0x262972[_0x376f97(0xe7)]-_0x262972['left']+0x1):0x1;if(_0x3cfbdc>MAX_ROWS)throw new Error('Workbook\x20defined\x20name\x20work\x20exceeds\x20100000.');}};_0x53e0d5['on'](_0x38ab75(0xd8),_0x3236c7),_0x53e0d5['on'](_0x38ab75(0x167),_0x21c5eb=>{const _0x5a5ae9=_0x38ab75;if(_0x262156)return;if(++_0x2e46a1>0x2710||(_0x3e3be8+=_0x21c5eb['uncompressedSize'])>MAX_EXPANDED){_0x3236c7(new Error(_0x5a5ae9(0x14b)));return;}let _0x53b4a1;try{_0x53b4a1=consumerEntryName(_0x3346cd,_0x21c5eb);}catch(_0x15e2f9){_0x3236c7(_0x15e2f9);return;}if(_0x53b4a1['directory']){_0x53e0d5['readEntry']();return;}const _0x2115fb=_0x53b4a1[_0x5a5ae9(0x14c)];if(_0x36164e&&(_0x2115fb!==_0x53b4a1[_0x5a5ae9(0x127)]||_0x5a8452['has'](_0x2115fb)||_0x2115fb[_0x5a5ae9(0x1a0)]('/')||_0x2115fb[_0x5a5ae9(0x192)]('\x5c'))){_0x3236c7(new Error(_0x5a5ae9(0x189)));return;}if(_0x2115fb!==_0x53b4a1['original']&&(_0x2115fb==='xl/workbook.xml'||/xl\/worksheets\/sheet(\d+)[.]xml/[_0x5a5ae9(0x166)](_0x2115fb))){_0x3236c7(new Error(_0x5a5ae9(0x157)));return;}const _0x39cc13=_0x2115fb===_0x5a5ae9(0xcc);if(_0x39cc13&&_0x5a8452['has'](_0x2115fb)){_0x3236c7(new Error(_0x5a5ae9(0x10c)));return;}_0x5a8452[_0x5a5ae9(0x16d)](_0x2115fb);const _0x4eedaa=/xl\/worksheets\/sheet(\d+)[.]xml/[_0x5a5ae9(0x166)](_0x2115fb);if(_0x4eedaa&&!/^xl\/worksheets\/sheet\d+[.]xml$/['test'](_0x2115fb)){_0x3236c7(new Error(_0x5a5ae9(0xf6)));return;}_0x53e0d5[_0x5a5ae9(0x19f)](_0x21c5eb,(_0x3a844e,_0x1c3db5)=>{const _0x43d077=_0x5a5ae9;if(_0x262156){_0x1c3db5?.[_0x43d077(0xde)]();return;}if(_0x3a844e||!_0x1c3db5){_0x3236c7(_0x3a844e??new Error(_0x43d077(0x151)));return;}_0xde2ab7=_0x1c3db5;const _0x5cacf7=_0x36164e?[]:undefined,_0x2c0515=_0x36164e&&/[.](xml|rels)$/[_0x43d077(0x166)](_0x2115fb)?new StringDecoder(_0x43d077(0x141)):undefined,_0x4599b1=_0x2c0515?new SaxesParser({'xmlns':![]}):undefined,_0x58079b=()=>{const _0x38385f=_0x43d077;if(++_0x319e1d>0x1e8480)throw Error(_0x38385f(0x187));};_0x4599b1?.['on'](_0x43d077(0x13e),()=>{const _0x44c5c4=_0x43d077;throw Error(_0x44c5c4(0x138));}),_0x4599b1?.['on'](_0x43d077(0xcf),()=>{_0x58079b();if(++_0x488ce9>0x7a120)throw Error('Image\x20XML\x20node\x20budget\x20exceeded.');}),_0x4599b1?.['on'](_0x43d077(0xd6),_0x58079b),_0x4599b1?.['on'](_0x43d077(0x199),_0x58079b),_0x4599b1?.['on'](_0x43d077(0xd8),_0x405b63=>{throw _0x405b63;});const _0x48c40a=_0x4eedaa||_0x39cc13?new StringDecoder(_0x43d077(0x141)):undefined,_0x34ca8d=_0x4eedaa||_0x39cc13?new SaxesParser({'xmlns':![]}):undefined;let _0x33d08c,_0xb5d759=0x0,_0x56b0db=0x0,_0x434010,_0x55f3f8,_0x5ab892=![],_0xafd572=![],_0x27b052,_0x9eff10,_0xfd9dec,_0x559a48=![];const _0x50aaea=[],_0x210728=new Set();let _0xc9ef67;const _0x26844e=(_0x50032c,_0x58a38e=0x0)=>{const _0x2c3846=_0x43d077;_0x20bd57+=_0x58a38e+Math['max'](0x0,_0x50032c-_0x56b0db),_0x56b0db=Math[_0x2c3846(0xf0)](_0x56b0db,_0x50032c);if(_0x20bd57>MAX_ROWS)throw new Error(_0x2c3846(0x193));};_0x34ca8d?.['on']('opentag',_0x107466=>{const _0xc5a315=_0x43d077;if(_0x39cc13){if(!_0x33d08c&&_0x107466[_0xc5a315(0x14c)]===_0xc5a315(0x117))_0x33d08c=new DefinedNameXform();_0x33d08c?.[_0xc5a315(0x180)](_0x107466);return;}if(_0x107466[_0xc5a315(0x14c)]==='row'){if(_0xafd572)throw new Error(_0xc5a315(0xf8));_0x134722(_0x107466[_0xc5a315(0xe3)]['r'],MAX_XML_ROWS),_0x434010=undefined,_0xfd9dec=undefined,_0x559a48=![];}else{if(_0x107466['name']==='c'){if(_0xafd572)throw new Error('Invalid\x20worksheet\x20nested\x20cell.');_0xafd572=!![],_0x5ab892=Boolean(Number[_0xc5a315(0x177)](_0x107466[_0xc5a315(0xe3)]['s']??'',0xa)),_0xc9ef67=undefined,_0x27b052=_0x107466[_0xc5a315(0xe3)]['r']||undefined,_0x9eff10=_0x27b052?_0x4019fe(_0x27b052):undefined;if(_0x9eff10)_0x55f3f8=_0x9eff10;else _0x55f3f8=_0x434010?{'row':_0x434010['row'],'col':_0x434010[_0xc5a315(0x11c)]+0x1}:undefined;}else{if(_0xafd572&&['f','v','t'][_0xc5a315(0x192)](_0x107466[_0xc5a315(0x14c)])){_0xc9ef67=_0x107466['name'];if(_0x107466[_0xc5a315(0x14c)]==='f'&&_0x107466[_0xc5a315(0xe3)]['t'])_0x5ab892=!![];}else{if(_0xafd572&&_0x107466[_0xc5a315(0x14c)]==='r')_0x5ab892=!![];else{if(_0x107466[_0xc5a315(0x14c)]==='hyperlink'){const _0x1d1c34=_0x107466[_0xc5a315(0xe3)][_0xc5a315(0x119)];if(!_0x1d1c34)throw new Error(_0xc5a315(0xf4));const _0x27ba16=_0x1d1c34[_0xc5a315(0x17f)](':');if(_0x27ba16['length']>0x2)throw new Error('Invalid\x20worksheet\x20hyperlink\x20reference.');const _0xeae7f2=_0x4019fe(_0x27ba16[0x0]),_0x4922cf=_0x4019fe(_0x27ba16[0x1]??_0x27ba16[0x0]);_0x210728[_0xc5a315(0x16d)](_0x1d1c34),_0x26844e(Math[_0xc5a315(0xf0)](_0xeae7f2[_0xc5a315(0x11c)],_0x4922cf[_0xc5a315(0x11c)]),0x1);}else{if(_0x107466['name']===_0xc5a315(0x11c)){const _0x29545c=_0x134722(_0x107466[_0xc5a315(0xe3)]['min'],0x4000),_0x38d7be=_0x134722(_0x107466['attributes'][_0xc5a315(0xf0)],0x4000);if(_0x29545c>_0x38d7be)throw new Error(_0xc5a315(0xd5));_0x26844e(_0x38d7be,0x1);}else{if(_0x107466['name']===_0xc5a315(0x1a4)){const _0x5401c2=_0x107466[_0xc5a315(0xe3)][_0xc5a315(0x119)];if(!_0x5401c2)throw new Error(_0xc5a315(0x15f));const _0x1d1265=_0x5401c2[_0xc5a315(0x17f)](':');if(_0x1d1265['length']>0x2)throw new Error(_0xc5a315(0x15f));const _0x16ca2d=_0x4019fe(_0x1d1265[0x0]),_0x1dd5b8=_0x4019fe(_0x1d1265[0x1]??_0x1d1265[0x0]);_0x26844e(Math[_0xc5a315(0xf0)](_0x16ca2d[_0xc5a315(0x11c)],_0x1dd5b8[_0xc5a315(0x11c)]));const _0x1c15b9=(Math[_0xc5a315(0x15a)](_0x1dd5b8['row']-_0x16ca2d[_0xc5a315(0x140)])+0x1)*(Math[_0xc5a315(0x15a)](_0x1dd5b8[_0xc5a315(0x11c)]-_0x16ca2d[_0xc5a315(0x11c)])+0x1);_0x55d55f+=_0x1c15b9+_0xb5d759++;if(_0x55d55f>MAX_ROWS)throw new Error('Worksheet\x20merge\x20work\x20exceeds\x20100000.');}}}}}}}}),_0x34ca8d?.['on'](_0x43d077(0xd6),_0x5a8bcd=>{const _0x58e8df=_0x43d077;if(_0x39cc13){_0x33d08c?.[_0x58e8df(0x139)](_0x5a8bcd);return;}if(_0xafd572&&_0xc9ef67&&_0x5a8bcd)_0x5ab892=!![];}),_0x34ca8d?.['on'](_0x43d077(0x199),_0x2dbb78=>{const _0x132373=_0x43d077;if(_0x39cc13){_0x33d08c&&!_0x33d08c[_0x132373(0x185)]()&&(_0x2d8a59(_0x33d08c[_0x132373(0x196)]),_0x33d08c=undefined);return;}if(_0x2dbb78['name']==='c'){!_0x5ab892&&_0x27b052&&!_0xfd9dec&&(_0xfd9dec={'before':_0x434010,'cells':[]});if(_0xfd9dec){if(++_0x1761e3>0xf4240)throw new Error('Worksheet\x20deferred\x20cell\x20events\x20exceed\x201000000.');_0xfd9dec[_0x132373(0x103)][_0x132373(0xef)]({'reference':_0x27b052,'address':_0x9eff10,'materialized':_0x5ab892});if(!_0x27b052&&_0x5ab892)_0x559a48=!![];}if(_0x5ab892){if(!_0xfd9dec||_0x27b052){if(!_0x55f3f8)throw new Error(_0x132373(0x10a));if(_0x55f3f8['col']>MAX_XML_COLUMNS)throw new Error(_0x132373(0x148));_0x26844e(_0x55f3f8['col']);}_0x434010=_0x55f3f8;}_0xafd572=![],_0x55f3f8=undefined,_0x27b052=undefined,_0x9eff10=undefined,_0xc9ef67=undefined;}else{if(_0x2dbb78[_0x132373(0x14c)]==='row'){if(_0xfd9dec&&_0x559a48)_0x50aaea['push'](_0xfd9dec);_0xfd9dec=undefined,_0x559a48=![];}else{if(_0x2dbb78['name']===_0xc9ef67)_0xc9ef67=undefined;}}}),_0x34ca8d?.['on']('error',_0x27cfbb=>{throw new Error('Invalid\x20worksheet\x20XML:\x20'+_0x27cfbb['message']);}),_0x1c3db5['on']('error',_0x3236c7),_0x1c3db5['on']('data',_0x3bb7dd=>{const _0x28f121=_0x43d077;if(_0x262156)return;_0x30dcbc+=_0x3bb7dd[_0x28f121(0x122)],_0x5cacf7?.[_0x28f121(0xef)](_0x3bb7dd);if(_0x30dcbc>MAX_EXPANDED){_0x3236c7(new Error(_0x28f121(0x14b)));return;}try{if(_0x4599b1&&_0x2c0515)_0x4599b1[_0x28f121(0x101)](_0x2c0515[_0x28f121(0x101)](_0x3bb7dd));if(_0x34ca8d&&_0x48c40a)_0x34ca8d[_0x28f121(0x101)](_0x48c40a[_0x28f121(0x101)](_0x3bb7dd));}catch(_0x3b7074){_0x3236c7(_0x3b7074 instanceof Error?_0x3b7074:new Error('Invalid\x20worksheet\x20XML.'));}}),_0x1c3db5['on'](_0x43d077(0x1a6),()=>{const _0x46738c=_0x43d077;if(_0x262156)return;try{if(_0x4599b1&&_0x2c0515)_0x4599b1[_0x46738c(0x101)](_0x2c0515[_0x46738c(0x1a6)]())[_0x46738c(0x104)]();if(_0x34ca8d&&_0x48c40a)_0x34ca8d[_0x46738c(0x101)](_0x48c40a['end']())[_0x46738c(0x104)]();for(const _0x2768b4 of _0x50aaea){let _0x335ec4=_0x2768b4[_0x46738c(0x115)];for(const _0x458b6e of _0x2768b4[_0x46738c(0x103)]){if(!_0x458b6e[_0x46738c(0x13c)]&&!(_0x458b6e[_0x46738c(0x160)]&&_0x210728[_0x46738c(0x186)](_0x458b6e[_0x46738c(0x160)])))continue;const _0x59a3f4=_0x458b6e[_0x46738c(0x173)]??(_0x335ec4?{'row':_0x335ec4[_0x46738c(0x140)],'col':_0x335ec4[_0x46738c(0x11c)]+0x1}:undefined);if(!_0x59a3f4)throw new Error(_0x46738c(0x10a));if(_0x59a3f4[_0x46738c(0x11c)]>MAX_XML_COLUMNS)throw new Error(_0x46738c(0x148));_0x26844e(_0x59a3f4[_0x46738c(0x11c)]),_0x335ec4=_0x59a3f4;}}_0x50aaea['length']=0x0,_0x210728['clear']();}catch(_0x492550){_0x3236c7(_0x492550 instanceof Error?_0x492550:new Error('Invalid\x20worksheet\x20XML.'));return;}if(_0x5cacf7)_0x36164e[_0x46738c(0xdf)](_0x2115fb,Buffer[_0x46738c(0x12d)](_0x5cacf7));_0xde2ab7=undefined,_0x53e0d5[_0x46738c(0x18e)]();});});}),_0x53e0d5['on'](_0x38ab75(0x1a6),()=>{const _0x23f18d=_0x38ab75;if(_0x262156)return;if(_0x53e0d5['readEntryCursor']!==_0x24a25b){_0x351a40(new Error(_0x23f18d(0x17e)));return;}if(!_0x5a8452['has']('[Content_Types].xml')||!_0x5a8452['has'](_0x23f18d(0xcc)))_0x351a40(new Error(_0x23f18d(0x18f)));else _0x1c7801();}),_0x53e0d5[_0x38ab75(0x18e)]();});});}function valueOf(_0x2b4ee2){const _0x4aed94=a140_0x1fec59,_0x2a57b4=_0x2b4ee2[_0x4aed94(0x1a1)];if(_0x2a57b4&&typeof _0x2a57b4===_0x4aed94(0xe1)&&('formula'in _0x2a57b4||'sharedFormula'in _0x2a57b4)){if(!(_0x4aed94(0x12b)in _0x2a57b4)||_0x2a57b4[_0x4aed94(0x12b)]===undefined)throw new Error('Formula\x20has\x20no\x20cached\x20result.');return _0x2a57b4[_0x4aed94(0x12b)];}return _0x2a57b4;}function convert(_0xd90548,_0x4be788){const _0x263efe=a140_0x1fec59;if(_0xd90548===null||_0xd90548===undefined||_0xd90548===''){if(_0x4be788[_0x263efe(0x11a)]&&!_0x4be788[_0x263efe(0x12e)])throw new Error(_0x263efe(0x145));return null;}if(typeof _0xd90548===_0x263efe(0x15e)&&Buffer[_0x263efe(0x121)](_0xd90548,_0x263efe(0x141))>MAX_CELL)throw new Error('Cell\x20exceeds\x2064\x20KB.');switch(_0x4be788[_0x263efe(0x17d)][_0x263efe(0x11f)]()){case _0x263efe(0x15e):case _0x263efe(0xd6):case _0x263efe(0x13a):if(typeof _0xd90548!==_0x263efe(0x15e))throw new Error(_0x263efe(0xdb));return _0xd90548;case'number':case _0x263efe(0x16b):case'integer':if(typeof _0xd90548!==_0x263efe(0x194)||!Number[_0x263efe(0x1ac)](_0xd90548)||Math[_0x263efe(0x15a)](_0xd90548)>Number[_0x263efe(0x106)]||_0x4be788[_0x263efe(0x17d)][_0x263efe(0x11f)]()===_0x263efe(0xe9)&&!Number['isInteger'](_0xd90548))throw new Error(_0x263efe(0x146));return _0xd90548;case _0x263efe(0x135):if(typeof _0xd90548!==_0x263efe(0x135))throw new Error(_0x263efe(0x123));return _0xd90548;case _0x263efe(0x124):case'datetime':if(!(_0xd90548 instanceof Date)||!Number[_0x263efe(0x1ac)](_0xd90548['getTime']()))throw new Error(_0x263efe(0xed));return _0xd90548['getTime']();default:throw new Error(_0x263efe(0x16e)+_0x4be788[_0x263efe(0x17d)]+'.');}}export async function buildExcelManifest(_0x494509){const _0x47b4e1=a140_0x1fec59,_0x9f4279=_0x494509[_0x47b4e1(0x182)]??0x1;if(!Number[_0x47b4e1(0x159)](_0x9f4279)||_0x9f4279<0x1||_0x9f4279>MAX_ROWS)throw new Error(_0x47b4e1(0x153));if(_0x494509[_0x47b4e1(0xd1)]!==undefined&&(!Number[_0x47b4e1(0x159)](_0x494509[_0x47b4e1(0xd1)])||_0x494509[_0x47b4e1(0xd1)]<0x1||_0x494509[_0x47b4e1(0xd1)]>0x3e8))throw new Error(_0x47b4e1(0x1a9));if(a140_0x2dbcf2[_0x47b4e1(0x108)](_0x494509[_0x47b4e1(0x14e)])[_0x47b4e1(0x11f)]()!=='.xlsx')throw new Error(_0x47b4e1(0x18c));const _0xd738d6=await stat(_0x494509['file']);if(!_0xd738d6['isFile']()||_0xd738d6['size']>MAX_FILE)throw new Error(_0x47b4e1(0x197));const _0x1522bc=await readFile(_0x494509['file']);if(_0x1522bc[_0x47b4e1(0x122)]>MAX_FILE)throw new Error('XLSX\x20file\x20exceeds\x2020\x20MB.');const _0x5ac12d=_0x494509[_0x47b4e1(0x112)][_0x47b4e1(0x142)](_0x56d6a5=>isImageContainer(_0x56d6a5[_0x47b4e1(0x17d)])&&Object[_0x47b4e1(0x130)](_0x494509[_0x47b4e1(0xd3)])[_0x47b4e1(0x192)](_0x56d6a5[_0x47b4e1(0x165)]))?new Map():undefined;await checkArchive(_0x1522bc,_0x5ac12d);const _0x46ee85=new a140_0x55d702['Workbook']();await _0x46ee85[_0x47b4e1(0x114)][_0x47b4e1(0x172)](_0x1522bc,{'ignoreNodes':[_0x47b4e1(0x188)]});const _0x28bdd5=_0x494509['sheet'];let _0x31a359;if(_0x28bdd5===undefined)_0x31a359=_0x46ee85[_0x47b4e1(0x120)][0x0];else{if(typeof _0x28bdd5===_0x47b4e1(0x15e)&&_0x46ee85[_0x47b4e1(0x120)][_0x47b4e1(0x142)](_0x1fd03a=>_0x1fd03a[_0x47b4e1(0x14c)]===_0x28bdd5))_0x31a359=_0x46ee85[_0x47b4e1(0x120)][_0x47b4e1(0x155)](_0x4e63db=>_0x4e63db['name']===_0x28bdd5);else{if(typeof _0x28bdd5===_0x47b4e1(0x194)||/^\d+$/[_0x47b4e1(0x166)](_0x28bdd5)){const _0x3de49e=Number(_0x28bdd5);if(!Number['isInteger'](_0x3de49e)||_0x3de49e<0x1)throw new Error(_0x47b4e1(0x170));_0x31a359=_0x46ee85[_0x47b4e1(0x120)][_0x3de49e-0x1];}else _0x31a359=_0x46ee85[_0x47b4e1(0x120)][_0x47b4e1(0x155)](_0x5525ab=>_0x5525ab['name']===_0x28bdd5);}}if(!_0x31a359)throw new Error('Requested\x20worksheet\x20does\x20not\x20exist.');if(_0x31a359[_0x47b4e1(0x118)]>MAX_ROWS||_0x31a359['columnCount']>MAX_COLUMNS)throw new Error('Worksheet\x20exceeds\x20100000\x20rows\x20or\x20256\x20columns.');if((_0x31a359[_0x47b4e1(0x196)][_0x47b4e1(0xec)]??[])['length'])throw new Error('Merged\x20cells\x20are\x20not\x20supported.');const _0x13a15e=new Map();_0x31a359[_0x47b4e1(0x195)](_0x9f4279)[_0x47b4e1(0x1a8)]((_0x2c754a,_0x12fab2)=>{const _0x1d1323=_0x47b4e1,_0x5ca577=valueOf(_0x2c754a);if(typeof _0x5ca577!=='string'||!_0x5ca577[_0x1d1323(0xfe)]()||Buffer[_0x1d1323(0x121)](_0x5ca577)>MAX_CELL)throw new Error(_0x1d1323(0x171));if(_0x13a15e[_0x1d1323(0x186)](_0x5ca577))throw new Error(_0x1d1323(0x1a2)+_0x5ca577+'.');_0x13a15e[_0x1d1323(0xdf)](_0x5ca577,_0x12fab2);});const _0x97350b=Object[_0x47b4e1(0x100)](_0x494509['mapping']);if(!_0x97350b[_0x47b4e1(0x122)])throw new Error(_0x47b4e1(0x168));const _0x364125=new Map(_0x494509['fields'][_0x47b4e1(0x113)](_0x844b3a=>[_0x844b3a[_0x47b4e1(0x165)],_0x844b3a]));if(_0x364125[_0x47b4e1(0x152)]!==_0x494509['fields'][_0x47b4e1(0x122)])throw new Error(_0x47b4e1(0xfc));if(_0x494509['fields'][_0x47b4e1(0x142)](_0x523d2a=>_0x523d2a[_0x47b4e1(0x17d)][_0x47b4e1(0x11f)]()==='serial_number'))throw new Error('Unsupported\x20dataset\x20field\x20type:\x20serial_number.');const _0x1a0c6b=new Set();for(const [_0x4245a6,_0x2dfa0b]of _0x97350b){const _0x32fff0=_0x364125[_0x47b4e1(0x19c)](_0x2dfa0b);if(!_0x13a15e[_0x47b4e1(0x186)](_0x4245a6))throw new Error(_0x47b4e1(0x19e)+_0x4245a6+'.');if(!_0x32fff0||RESERVED[_0x47b4e1(0x186)](_0x2dfa0b)||_0x32fff0['generated'])throw new Error(_0x47b4e1(0x110)+_0x2dfa0b+'.');if(_0x1a0c6b[_0x47b4e1(0x186)](_0x2dfa0b))throw new Error(_0x47b4e1(0x109)+_0x2dfa0b+'.');if(!TYPES[_0x47b4e1(0x186)](_0x32fff0[_0x47b4e1(0x17d)]['toLowerCase']()))throw new Error(_0x47b4e1(0x16e)+_0x32fff0[_0x47b4e1(0x17d)]+'.');_0x1a0c6b[_0x47b4e1(0x16d)](_0x2dfa0b);}for(const _0x12ccff of _0x494509['fields']){if(_0x12ccff[_0x47b4e1(0x11a)]&&!_0x12ccff['generated']&&!RESERVED[_0x47b4e1(0x186)](_0x12ccff['code'])&&!_0x1a0c6b['has'](_0x12ccff[_0x47b4e1(0x165)]))throw new Error('Required\x20field\x20is\x20not\x20mapped:\x20'+_0x12ccff[_0x47b4e1(0x165)]+'.');}const _0x348a84={'fileHash':hash(_0x1522bc),'mappingHash':hash(JSON[_0x47b4e1(0x176)]([..._0x97350b][_0x47b4e1(0x19a)](([_0x2830f6],[_0x17af89])=>_0x2830f6[_0x47b4e1(0x137)](_0x17af89)))),'schemaHash':hash(JSON[_0x47b4e1(0x176)]([..._0x494509[_0x47b4e1(0x112)]]['sort']((_0x2b95e2,_0x1d0637)=>_0x2b95e2[_0x47b4e1(0x165)][_0x47b4e1(0x137)](_0x1d0637[_0x47b4e1(0x165)])))),'sheet':_0x31a359[_0x47b4e1(0x14c)],'rows':[],'emptyRows':[],'errors':[],'warnings':[]},_0x40b795=_0x97350b['filter'](([,_0x4ae3bd])=>isImageContainer(_0x364125[_0x47b4e1(0x19c)](_0x4ae3bd)[_0x47b4e1(0x17d)])),_0x5b2681=_0x40b795[_0x47b4e1(0xf3)](([,_0x155303])=>_0x364125[_0x47b4e1(0x19c)](_0x155303)[_0x47b4e1(0x17d)]['toLowerCase']()===_0x47b4e1(0xd9))[_0x47b4e1(0x113)](([,_0x171c98])=>_0x171c98);if(_0x5b2681[_0x47b4e1(0x122)])_0x348a84[_0x47b4e1(0x147)]=_0x5b2681;const _0x661f96=_0x5ac12d?resolveWorksheetImages(_0x5ac12d,_0x31a359[_0x47b4e1(0x14c)],new Set(_0x40b795[_0x47b4e1(0x113)](([_0x2bac52])=>_0x13a15e[_0x47b4e1(0x19c)](_0x2bac52)))):[],_0x12c872=new Map();for(const _0x15c66a of _0x661f96){const _0x35b9bd=_0x15c66a[_0x47b4e1(0x140)]+':'+_0x15c66a['col'],_0x18f7aa=_0x12c872[_0x47b4e1(0x19c)](_0x35b9bd)??[];_0x18f7aa['push'](_0x15c66a),_0x12c872[_0x47b4e1(0xdf)](_0x35b9bd,_0x18f7aa);}const _0x1c61f2=new Map();let _0x16daa7=0x0;_0x40b795['length']&&(_0x348a84['imageFields']=_0x40b795[_0x47b4e1(0x113)](([,_0x2ce469])=>_0x2ce469),_0x348a84[_0x47b4e1(0x13f)]=[],_0x348a84[_0x47b4e1(0x129)]=0x1,_0x348a84[_0x47b4e1(0x163)]=[]);const _0x22a480=Math[_0x47b4e1(0xf0)](0x0,..._0x661f96[_0x47b4e1(0x113)](_0x30e8de=>_0x30e8de['row']));let _0x37925d=0x0;const _0x1f8b75=new Set(_0x97350b[_0x47b4e1(0x113)](([_0x481fc4])=>_0x13a15e[_0x47b4e1(0x19c)](_0x481fc4)));for(let _0x3d9eee=_0x9f4279+0x1;_0x3d9eee<=Math[_0x47b4e1(0xf0)](_0x31a359['rowCount'],_0x22a480);_0x3d9eee++){const _0x46fc3f=_0x31a359[_0x47b4e1(0x195)](_0x3d9eee);if(_0x46fc3f[_0x47b4e1(0x17c)]||_0x661f96[_0x47b4e1(0x142)](_0x216788=>_0x216788[_0x47b4e1(0x140)]===_0x3d9eee&&_0x216788[_0x47b4e1(0x15b)]))_0x37925d++;let _0x1ea6eb=_0x661f96[_0x47b4e1(0x142)](_0x1a7db9=>_0x1a7db9[_0x47b4e1(0x140)]===_0x3d9eee);_0x46fc3f['eachCell'](_0x4f94b7=>{const _0x4601c2=_0x47b4e1;if(_0x4f94b7['value']!==null&&_0x4f94b7[_0x4601c2(0x1a1)]!==undefined&&_0x4f94b7[_0x4601c2(0x1a1)]!=='')_0x1ea6eb=!![];});if(!_0x1ea6eb){_0x348a84['emptyRows']['push'](_0x3d9eee);continue;}const _0x306e38=Object[_0x47b4e1(0x191)](null);_0x46fc3f[_0x47b4e1(0x1a8)]((_0x35298a,_0x403f12)=>{const _0x545d22=_0x47b4e1;if(_0x1f8b75[_0x545d22(0x186)](_0x403f12))return;try{const _0x598743=valueOf(_0x35298a);if(typeof _0x598743===_0x545d22(0x15e)&&Buffer[_0x545d22(0x121)](_0x598743,_0x545d22(0x141))>MAX_CELL)throw new Error(_0x545d22(0x102));}catch(_0x17d41a){_0x348a84['errors'][_0x545d22(0xef)]({'rowNumber':_0x3d9eee,'field':_0x35298a[_0x545d22(0x173)],'message':_0x17d41a[_0x545d22(0x1a7)]});}});for(const [_0x5b1653,_0x56ed80]of _0x97350b){try{const _0x3cf08b=_0x46fc3f[_0x47b4e1(0xf9)](_0x13a15e[_0x47b4e1(0x19c)](_0x5b1653)),_0x134a01=_0x364125[_0x47b4e1(0x19c)](_0x56ed80);if(!isImageContainer(_0x134a01[_0x47b4e1(0x17d)])){_0x306e38[_0x56ed80]=convert(valueOf(_0x3cf08b),_0x134a01);continue;}const _0x5eec22=_0x12c872[_0x47b4e1(0x19c)](_0x3d9eee+':'+_0x13a15e['get'](_0x5b1653))??[];if(_0x5eec22['some'](_0x28a361=>_0x28a361[_0x47b4e1(0xd8)]))throw Error(_0x5eec22[_0x47b4e1(0x155)](_0x4feeb5=>_0x4feeb5[_0x47b4e1(0xd8)])['error']);if(_0x3cf08b[_0x47b4e1(0x1a1)]!=null&&_0x3cf08b[_0x47b4e1(0x1a1)]!==''&&!_0x5eec22[_0x47b4e1(0x142)](_0x6c2eaa=>_0x6c2eaa[_0x47b4e1(0x11e)]))throw Error(_0x47b4e1(0x16a));const _0x1d804d=[];for(const _0x49b809 of _0x5eec22)for(const _0x2c8cbc of _0x49b809[_0x47b4e1(0x163)]){const _0x14425c=_0x5ac12d[_0x47b4e1(0x19c)](_0x2c8cbc);if(!_0x14425c)throw Error(_0x47b4e1(0x198)+_0x2c8cbc+'.');const _0x234830=hash(_0x14425c),_0x105b3f=_0x1c61f2[_0x47b4e1(0x19c)](_0x234830)??validateImageBytes(_0x14425c);if(!_0x1c61f2[_0x47b4e1(0x186)](_0x105b3f[_0x47b4e1(0x169)])){_0x16daa7+=_0x105b3f[_0x47b4e1(0x152)];if(_0x16daa7>0x32*0x400*0x400)throw Error('Unique\x20image\x20bytes\x20exceed\x2050\x20MB.');_0x1c61f2[_0x47b4e1(0xdf)](_0x105b3f['contentHash'],_0x105b3f);}_0x1d804d[_0x47b4e1(0xef)](_0x105b3f['contentHash']);}if(!_0x1d804d['length']&&_0x134a01[_0x47b4e1(0x11a)])throw Error('Required\x20image\x20value\x20is\x20missing.');if(_0x1d804d[_0x47b4e1(0x122)])_0x348a84[_0x47b4e1(0x13f)]['push']({'rowNumber':_0x3d9eee,'field':_0x56ed80,'hashes':_0x1d804d});_0x306e38[_0x56ed80]=_0x1d804d[_0x47b4e1(0x113)](_0x3ec578=>{const _0x5f3c03=_0x47b4e1,_0x502940=_0x1c61f2[_0x5f3c03(0x19c)](_0x3ec578),_0x118da7=_0x502940[_0x5f3c03(0x17d)]===_0x5f3c03(0x181)?_0x5f3c03(0xfa):_0x502940[_0x5f3c03(0x17d)][_0x5f3c03(0x179)](0x6),_0x22f660=_0x3ec578+'.'+_0x118da7,_0x1e9dfa=_0x5f3c03(0x11b)+'0'[_0x5f3c03(0xf7)](0x40)+'/'+_0x22f660;return _0x134a01[_0x5f3c03(0x17d)]['toLowerCase']()===_0x5f3c03(0xd9)?{'fileName':_0x22f660,'filePath':_0x1e9dfa}:{'key':_0x1e9dfa,'name':_0x22f660,'type':_0x502940[_0x5f3c03(0x17d)],'size':_0x502940[_0x5f3c03(0x152)]};});}catch(_0x34e5dc){_0x348a84[_0x47b4e1(0xd7)][_0x47b4e1(0xef)]({'rowNumber':_0x3d9eee,'field':_0x56ed80,'message':_0x34e5dc[_0x47b4e1(0x1a7)]});}}_0x348a84[_0x47b4e1(0x14a)]['push']({'rowNumber':_0x3d9eee,'values':_0x306e38});}if(_0x348a84[_0x47b4e1(0x163)])_0x348a84[_0x47b4e1(0x163)]=[..._0x1c61f2['values']()];if(_0x37925d)_0x348a84[_0x47b4e1(0xfd)]['push'](_0x37925d+_0x47b4e1(0x16f));return _0x348a84;}
|
|
1
|
+
const a140_0x2aaa1e=a140_0x4ee9;(function(_0x29fd78,_0x5beedd){const _0x44bdc=a140_0x4ee9,_0x23a863=_0x29fd78();while(!![]){try{const _0x1f82a1=-parseInt(_0x44bdc(0x260))/0x1+-parseInt(_0x44bdc(0x262))/0x2+parseInt(_0x44bdc(0x1b1))/0x3+parseInt(_0x44bdc(0x241))/0x4+parseInt(_0x44bdc(0x252))/0x5*(-parseInt(_0x44bdc(0x220))/0x6)+-parseInt(_0x44bdc(0x235))/0x7+-parseInt(_0x44bdc(0x207))/0x8*(-parseInt(_0x44bdc(0x1d9))/0x9);if(_0x1f82a1===_0x5beedd)break;else _0x23a863['push'](_0x23a863['shift']());}catch(_0xd9e51b){_0x23a863['push'](_0x23a863['shift']());}}}(a140_0x48b6,0x9331b));import{readFile,stat}from'node:fs/promises';import{createHash}from'node:crypto';import a140_0x1b1432 from'node:path';function a140_0x4ee9(_0x4cbf77,_0xaf56d2){_0x4cbf77=_0x4cbf77-0x1a6;const _0x48b609=a140_0x48b6();let _0x4ee93f=_0x48b609[_0x4cbf77];return _0x4ee93f;}import{StringDecoder}from'node:string_decoder';import{createRequire}from'node:module';import{SaxesParser}from'saxes';import a140_0x3e38c0 from'exceljs';import a140_0x3a4b12 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_0x2aaa1e(0x21c),a140_0x2aaa1e(0x1d4),a140_0x2aaa1e(0x1d6),'creatorId',a140_0x2aaa1e(0x216),a140_0x2aaa1e(0x27a),a140_0x2aaa1e(0x22b),a140_0x2aaa1e(0x285),a140_0x2aaa1e(0x1c0),a140_0x2aaa1e(0x1ff)]),TYPES=new Set([a140_0x2aaa1e(0x23e),a140_0x2aaa1e(0x24f),a140_0x2aaa1e(0x277),'number',a140_0x2aaa1e(0x1ef),a140_0x2aaa1e(0x291),a140_0x2aaa1e(0x20d),a140_0x2aaa1e(0x1df),a140_0x2aaa1e(0x1b7),a140_0x2aaa1e(0x1dd),a140_0x2aaa1e(0x1f2)]),isImageContainer=_0x271ae6=>[a140_0x2aaa1e(0x1dd),a140_0x2aaa1e(0x1f2)]['includes'](_0x271ae6[a140_0x2aaa1e(0x204)]()),hash=_0x26b49c=>createHash(a140_0x2aaa1e(0x28a))[a140_0x2aaa1e(0x1b0)](_0x26b49c)[a140_0x2aaa1e(0x25f)](a140_0x2aaa1e(0x1c8)),require=createRequire(import.meta.url),DefinedNameXform=require(a140_0x2aaa1e(0x1cf)),nameCoordinates=require(a140_0x2aaa1e(0x203)),ABSOLUTE_NAME_RANGE=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/,excelRequire=createRequire(require[a140_0x2aaa1e(0x1be)]('exceljs')),zipRequire=createRequire(excelRequire[a140_0x2aaa1e(0x1be)](a140_0x2aaa1e(0x251))),ZipEntry=zipRequire(a140_0x2aaa1e(0x28c)),zipReader=zipRequire(a140_0x2aaa1e(0x1e3)),zipUtf8=zipRequire(a140_0x2aaa1e(0x1b4)),zipPaths=zipRequire(a140_0x2aaa1e(0x280));function centralDirectoryEnd(_0x3d9f11,_0x404ba8){const _0x1dd7ee=a140_0x2aaa1e,_0x34cbeb=()=>new Error(_0x1dd7ee(0x247)),_0x299f96=_0x3d9f11[_0x1dd7ee(0x21a)](Buffer[_0x1dd7ee(0x25e)]([0x50,0x4b,0x5,0x6]));if(_0x299f96<0x0||_0x299f96+0x16>_0x3d9f11[_0x1dd7ee(0x1cc)]||_0x299f96+0x16+_0x3d9f11[_0x1dd7ee(0x263)](_0x299f96+0x14)!==_0x3d9f11[_0x1dd7ee(0x1cc)])throw _0x34cbeb();let _0x165218=_0x3d9f11[_0x1dd7ee(0x263)](_0x299f96+0xa),_0x4cae04=_0x3d9f11[_0x1dd7ee(0x239)](_0x299f96+0xc),_0x402fac=_0x3d9f11[_0x1dd7ee(0x239)](_0x299f96+0x10),_0x14ccdc=_0x299f96;const _0xc341ea=_0x299f96-0x14,_0x5e85ac=_0xc341ea>=0x0&&_0x3d9f11[_0x1dd7ee(0x239)](_0xc341ea)===0x7064b50,_0x139595=[0x4,0x6,0x8,0xa][_0x1dd7ee(0x1a6)](_0x33f34c=>_0x3d9f11[_0x1dd7ee(0x263)](_0x299f96+_0x33f34c)===0xffff)||_0x4cae04===0xffffffff||_0x402fac===0xffffffff;if(_0x5e85ac!==_0x139595)throw _0x34cbeb();if(_0x5e85ac){if(_0x3d9f11['lastIndexOf'](Buffer['from']([0x50,0x4b,0x6,0x7]))!==_0xc341ea)throw _0x34cbeb();const _0xade444=_0xd434c7=>{const _0x1eedc9=_0x1dd7ee,_0x1da81f=Number(_0x3d9f11['readBigUInt64LE'](_0xd434c7));if(!Number[_0x1eedc9(0x1e2)](_0x1da81f))throw _0x34cbeb();return _0x1da81f;};_0x14ccdc=_0xade444(_0xc341ea+0x8);if(_0x3d9f11[_0x1dd7ee(0x239)](_0xc341ea+0x4)!==0x0||_0x3d9f11[_0x1dd7ee(0x239)](_0xc341ea+0x10)!==0x1||_0x14ccdc>_0xc341ea-0x38||_0x3d9f11['readUInt32LE'](_0x14ccdc)!==0x6064b50||_0xade444(_0x14ccdc+0x4)!==0x2c||_0x14ccdc+0x38!==_0xc341ea||_0x3d9f11[_0x1dd7ee(0x239)](_0x14ccdc+0x10)!==0x0||_0x3d9f11[_0x1dd7ee(0x239)](_0x14ccdc+0x14)!==0x0)throw _0x34cbeb();_0x165218=_0xade444(_0x14ccdc+0x20),_0x4cae04=_0xade444(_0x14ccdc+0x28),_0x402fac=_0xade444(_0x14ccdc+0x30);if(_0xade444(_0x14ccdc+0x18)!==_0x165218)throw _0x34cbeb();}else{if(_0x3d9f11['readUInt16LE'](_0x299f96+0x4)!==0x0||_0x3d9f11[_0x1dd7ee(0x263)](_0x299f96+0x6)!==0x0||_0x3d9f11['readUInt16LE'](_0x299f96+0x8)!==_0x165218)throw _0x34cbeb();}const _0xa8203e=_0x404ba8[_0x1dd7ee(0x23f)];if(_0x402fac!==_0xa8203e||_0x165218!==_0x404ba8['entryCount']||_0x402fac+_0x4cae04!==_0x14ccdc)throw _0x34cbeb();return _0x14ccdc;}function consumerEntryName(_0x1c74fe,_0x38cddc){const _0x3b1edb=a140_0x2aaa1e;if(_0x38cddc[_0x3b1edb(0x212)][_0x3b1edb(0x1b8)](_0x579f4e=>_0x579f4e['id']===0x1)['length']>0x1)throw new Error('Duplicate\x20ZIP64\x20extended\x20information\x20fields\x20are\x20not\x20supported.');const _0x16cc14=_0x38cddc,_0x2568bf=_0x38cddc[_0x3b1edb(0x1d2)];if(!Buffer['isBuffer'](_0x16cc14[_0x3b1edb(0x237)])||!Buffer[_0x3b1edb(0x1f0)](_0x16cc14[_0x3b1edb(0x278)])||!Buffer['isBuffer'](_0x16cc14[_0x3b1edb(0x287)])||!Number[_0x3b1edb(0x1e2)](_0x2568bf)||_0x2568bf<0x0||_0x2568bf>_0x1c74fe[_0x3b1edb(0x1cc)]-0x1e||_0x1c74fe[_0x3b1edb(0x239)](_0x2568bf)!==0x4034b50)throw new Error(_0x3b1edb(0x1e1));const _0x1223f9=_0x2568bf+0x1e+_0x1c74fe[_0x3b1edb(0x263)](_0x2568bf+0x1a),_0x1d4b03=_0x1223f9+_0x1c74fe[_0x3b1edb(0x263)](_0x2568bf+0x1c)+_0x38cddc[_0x3b1edb(0x1fe)];if(!Number['isSafeInteger'](_0x1d4b03)||_0x1d4b03>_0x1c74fe[_0x3b1edb(0x1cc)])throw new Error(_0x3b1edb(0x1e1));if(_0x1223f9>_0x1c74fe[_0x3b1edb(0x1cc)]||!_0x1c74fe['subarray'](_0x2568bf+0x1e,_0x1223f9)[_0x3b1edb(0x27d)](_0x16cc14[_0x3b1edb(0x237)]))throw new Error('ZIP\x20local\x20and\x20central\x20entry\x20names\x20must\x20match.');const _0x31798d=new ZipEntry({},{'decodeFileName':zipUtf8['utf8decode']});_0x31798d[_0x3b1edb(0x28e)]=_0x38cddc[_0x3b1edb(0x1bd)],_0x31798d[_0x3b1edb(0x22e)]=_0x16cc14[_0x3b1edb(0x237)],_0x31798d[_0x3b1edb(0x26c)]=_0x16cc14['fileCommentRaw'],_0x31798d['extraFieldsLength']=_0x16cc14[_0x3b1edb(0x278)][_0x3b1edb(0x1cc)],_0x31798d['readExtraFields'](zipReader(_0x16cc14[_0x3b1edb(0x278)])),_0x31798d['handleUTF8'](),_0x31798d[_0x3b1edb(0x26a)]=_0x38cddc[_0x3b1edb(0x26a)],_0x31798d[_0x3b1edb(0x1cd)]=_0x38cddc[_0x3b1edb(0x1cd)],_0x31798d[_0x3b1edb(0x1ba)]();const _0x4c6f86=_0x31798d['dir']||Boolean((_0x31798d[_0x3b1edb(0x1d8)]??0x0)&0x4000),_0x16bc19=zipPaths[_0x3b1edb(0x1be)](_0x31798d[_0x3b1edb(0x288)]),_0x25217c=_0x16bc19[_0x3b1edb(0x1b9)]('/')?_0x16bc19[_0x3b1edb(0x1e9)](0x1):_0x16bc19;return{'name':_0x25217c,'original':_0x31798d[_0x3b1edb(0x288)],'directory':_0x4c6f86};}export function normalizeImportFields(_0x5c9d1b){const _0x4a84db=a140_0x2aaa1e;if(!_0x5c9d1b||(_0x5c9d1b[_0x4a84db(0x1da)]??_0x5c9d1b[_0x4a84db(0x234)]?.[_0x4a84db(0x26e)])!==_0x4a84db(0x1f7))throw new Error('Excel\x20import\x20only\x20supports\x20METADATA\x20datasets.');const _0x2c560f=Array[_0x4a84db(0x1f1)](_0x5c9d1b[_0x4a84db(0x1f8)]),_0x516327=_0x2c560f?_0x5c9d1b[_0x4a84db(0x1f8)]:_0x5c9d1b['properties'];if(!Array[_0x4a84db(0x1f1)](_0x516327)||_0x516327['length']===0x0)throw new Error(_0x4a84db(0x268));const _0x3d121a=[],_0x265ca9=new Set();for(const _0x5df9bd of _0x516327){if(_0x5df9bd['deleted']===!![])continue;let _0x1ea7c1=_0x5df9bd[_0x4a84db(0x1ac)]??{};if(!_0x2c560f&&typeof _0x1ea7c1==='string'){try{_0x1ea7c1=JSON[_0x4a84db(0x1fa)](_0x1ea7c1);}catch{throw new Error('Invalid\x20dataset\x20field\x20extension\x20metadata.');}if(!_0x1ea7c1||typeof _0x1ea7c1!==_0x4a84db(0x1eb)||Array[_0x4a84db(0x1f1)](_0x1ea7c1))throw new Error('Invalid\x20dataset\x20field\x20extension\x20metadata.');}const _0x1806ac=_0x2c560f?_0x5df9bd['name']:_0x5df9bd['code'],_0x3a5140=_0x2c560f?_0x5df9bd[_0x4a84db(0x1c1)]:_0x5df9bd['type']??_0x5df9bd[_0x4a84db(0x279)];if(typeof _0x1806ac!==_0x4a84db(0x23e)||!_0x1806ac||typeof _0x3a5140!=='string'||_0x265ca9[_0x4a84db(0x228)](_0x1806ac))throw new Error(_0x4a84db(0x290));if(_0x3a5140[_0x4a84db(0x204)]()==='serial_number')throw new Error(_0x4a84db(0x1b2));_0x265ca9[_0x4a84db(0x1f3)](_0x1806ac);const _0xf5847=_0x2c560f?_0x5df9bd:_0x1ea7c1,_0x4ecfb8={'code':_0x1806ac,'type':_0x3a5140,'required':_0xf5847['required']===!![]};if(RESERVED[_0x4a84db(0x228)](_0x1806ac)||_0xf5847[_0x4a84db(0x25d)]===!![]||_0xf5847['autoIncrement']===!![])_0x4ecfb8[_0x4a84db(0x25d)]=!![];_0x3d121a['push'](_0x4ecfb8);}return _0x3d121a;}async function checkArchive(_0x3bfc89,_0x535543){await new Promise((_0x2a1bb8,_0xf251be)=>{const _0x54d764=a140_0x4ee9;a140_0x3a4b12[_0x54d764(0x266)](_0x3bfc89,{'lazyEntries':!![],'validateEntrySizes':!![]},(_0x8abb72,_0x28db24)=>{const _0x3fb605=_0x54d764;if(_0x8abb72||!_0x28db24){_0xf251be(_0x8abb72??new Error(_0x3fb605(0x1b3)));return;}let _0x575748;try{_0x575748=centralDirectoryEnd(_0x3bfc89,_0x28db24);}catch(_0x5d2132){_0x28db24['close'](),_0xf251be(_0x5d2132);return;}let _0x12f58d=0x0,_0x2736ac=0x0,_0x4a4131=0x0,_0x4c113c=0x0,_0x2f23c9=0x0,_0x3c8bed=0x0,_0xb44fbb=0x0,_0x1e3f28=0x0,_0x61faa6=0x0,_0x56f2e7=![],_0x331e6a;const _0xb25cbd=new Set(),_0x439560=_0x5a099a=>{const _0x5152db=_0x3fb605;if(_0x56f2e7)return;_0x56f2e7=!![],_0x331e6a?.['destroy'](),_0x28db24[_0x5152db(0x274)](),_0xf251be(_0x5a099a);},_0xf0b45e=(_0x519869,_0x42bfb2)=>{const _0x2d943b=_0x3fb605;if(!_0x519869||!/^\d+$/[_0x2d943b(0x1a8)](_0x519869))throw new Error('Invalid\x20worksheet\x20coordinate.');const _0x2c782d=Number(_0x519869);if(!Number[_0x2d943b(0x1e2)](_0x2c782d)||_0x2c782d<0x1||_0x2c782d>_0x42bfb2)throw new Error(_0x2d943b(0x209)+_0x42bfb2+'.');return _0x2c782d;},_0x33ef8d=(_0x1efbc0,_0x25847b=MAX_XML_COLUMNS)=>{const _0x4587c4=_0x3fb605,_0x487883=/^\$?([A-Z]{1,3})\$?(\d+)$/[_0x4587c4(0x23b)](_0x1efbc0);if(!_0x487883)throw new Error(_0x4587c4(0x1af));let _0x3c52ba=0x0;for(const _0x2b391d of _0x487883[0x1])_0x3c52ba=_0x3c52ba*0x1a+_0x2b391d[_0x4587c4(0x236)](0x0)-0x40;if(_0x3c52ba>_0x25847b)throw new Error(_0x4587c4(0x21e)+_0x25847b+_0x4587c4(0x218));return{'row':_0xf0b45e(_0x487883[0x2],MAX_XML_ROWS),'col':_0x3c52ba};},_0x373acd=_0x7b958=>{const _0x3e4121=_0x3fb605;if(_0x7b958[_0x3e4121(0x217)]==='_xlnm.Print_Area'||_0x7b958[_0x3e4121(0x217)]===_0x3e4121(0x215))return;for(const _0x44166e of _0x7b958[_0x3e4121(0x205)]){if(!ABSOLUTE_NAME_RANGE[_0x3e4121(0x1a8)](_0x44166e[_0x3e4121(0x232)]('!')[_0x3e4121(0x1b5)]()||''))continue;const _0x206589=nameCoordinates[_0x3e4121(0x240)](_0x44166e),_0x297c09=_0x3e4121(0x244)in _0x206589,_0x4742b5=_0x297c09?[_0x206589[_0x3e4121(0x244)],_0x206589['bottom']]:[_0x206589[_0x3e4121(0x1d1)]],_0x4cd2bd=_0x297c09?[_0x206589[_0x3e4121(0x28b)],_0x206589[_0x3e4121(0x282)]]:[_0x206589[_0x3e4121(0x23c)]],_0x5b667d=(_0x35bd05,_0x22c779)=>Number[_0x3e4121(0x1e2)](_0x35bd05)&&_0x35bd05>=0x1&&_0x35bd05<=_0x22c779;if(!_0x4742b5['every'](_0x84fa58=>_0x5b667d(_0x84fa58,MAX_XML_ROWS))||!_0x4cd2bd['every'](_0x30310d=>_0x5b667d(_0x30310d,MAX_XML_COLUMNS)))throw new Error(_0x3e4121(0x1f4));_0xb44fbb+=_0x297c09?(_0x206589['bottom']-_0x206589[_0x3e4121(0x244)]+0x1)*(_0x206589[_0x3e4121(0x282)]-_0x206589[_0x3e4121(0x28b)]+0x1):0x1;if(_0xb44fbb>MAX_ROWS)throw new Error('Workbook\x20defined\x20name\x20work\x20exceeds\x20100000.');}};_0x28db24['on'](_0x3fb605(0x213),_0x439560),_0x28db24['on'](_0x3fb605(0x1f5),_0x59e256=>{const _0x3554d6=_0x3fb605;if(_0x56f2e7)return;if(++_0x4a4131>0x2710||(_0x12f58d+=_0x59e256[_0x3554d6(0x269)])>MAX_EXPANDED){_0x439560(new Error(_0x3554d6(0x20f)));return;}let _0x3f2a2e;try{_0x3f2a2e=consumerEntryName(_0x3bfc89,_0x59e256);}catch(_0x424617){_0x439560(_0x424617);return;}if(_0x3f2a2e[_0x3554d6(0x1c4)]){_0x28db24[_0x3554d6(0x223)]();return;}const _0x2b1451=_0x3f2a2e[_0x3554d6(0x217)];if(_0x535543&&(_0x2b1451!==_0x3f2a2e['original']||_0xb25cbd['has'](_0x2b1451)||_0x2b1451[_0x3554d6(0x1b9)]('/')||_0x2b1451[_0x3554d6(0x23a)]('\x5c'))){_0x439560(new Error(_0x3554d6(0x1f9)));return;}if(_0x2b1451!==_0x3f2a2e[_0x3554d6(0x1ce)]&&(_0x2b1451===_0x3554d6(0x27f)||/xl\/worksheets\/sheet(\d+)[.]xml/['test'](_0x2b1451))){_0x439560(new Error(_0x3554d6(0x22d)));return;}const _0x25ce48=_0x2b1451===_0x3554d6(0x27f);if(_0x25ce48&&_0xb25cbd[_0x3554d6(0x228)](_0x2b1451)){_0x439560(new Error(_0x3554d6(0x1e6)));return;}_0xb25cbd[_0x3554d6(0x1f3)](_0x2b1451);const _0x2473fd=/xl\/worksheets\/sheet(\d+)[.]xml/[_0x3554d6(0x1a8)](_0x2b1451);if(_0x2473fd&&!/^xl\/worksheets\/sheet\d+[.]xml$/['test'](_0x2b1451)){_0x439560(new Error(_0x3554d6(0x21b)));return;}_0x28db24['openReadStream'](_0x59e256,(_0x4313a9,_0x36948a)=>{const _0x4f8778=_0x3554d6;if(_0x56f2e7){_0x36948a?.['destroy']();return;}if(_0x4313a9||!_0x36948a){_0x439560(_0x4313a9??new Error(_0x4f8778(0x1cb)));return;}_0x331e6a=_0x36948a;const _0x208242=_0x535543?[]:undefined,_0x117141=_0x535543&&/[.](xml|rels)$/[_0x4f8778(0x1a8)](_0x2b1451)?new StringDecoder(_0x4f8778(0x26b)):undefined,_0x254981=_0x117141?new SaxesParser({'xmlns':![]}):undefined,_0x16712e=()=>{const _0x254856=_0x4f8778;if(++_0x61faa6>0x1e8480)throw Error(_0x254856(0x201));};_0x254981?.['on'](_0x4f8778(0x1fd),()=>{const _0x479433=_0x4f8778;throw Error(_0x479433(0x286));}),_0x254981?.['on'](_0x4f8778(0x1c6),()=>{const _0x1922d6=_0x4f8778;_0x16712e();if(++_0x1e3f28>0x7a120)throw Error(_0x1922d6(0x267));}),_0x254981?.['on'](_0x4f8778(0x24f),_0x16712e),_0x254981?.['on'](_0x4f8778(0x1e5),_0x16712e),_0x254981?.['on'](_0x4f8778(0x213),_0x29082e=>{throw _0x29082e;});const _0x368eda=_0x2473fd||_0x25ce48?new StringDecoder(_0x4f8778(0x26b)):undefined,_0x1c506f=_0x2473fd||_0x25ce48?new SaxesParser({'xmlns':![]}):undefined;let _0x3aee47,_0xca52f=0x0,_0x13a95b=0x0,_0x14f84f,_0x4cf126,_0x489986=![],_0x38448f=![],_0x2ce011,_0x2e4998,_0x5bfedc,_0x24a241=![];const _0xcb3b28=[],_0x20cd4c=new Set();let _0x6cdf0b;const _0x2ed05e=(_0x5c5404,_0x293a56=0x0)=>{const _0x236241=_0x4f8778;_0x2f23c9+=_0x293a56+Math[_0x236241(0x284)](0x0,_0x5c5404-_0x13a95b),_0x13a95b=Math[_0x236241(0x284)](_0x13a95b,_0x5c5404);if(_0x2f23c9>MAX_ROWS)throw new Error(_0x236241(0x254));};_0x1c506f?.['on'](_0x4f8778(0x1c6),_0x7942b9=>{const _0x2a4f9e=_0x4f8778;if(_0x25ce48){if(!_0x3aee47&&_0x7942b9[_0x2a4f9e(0x217)]===_0x2a4f9e(0x1a9))_0x3aee47=new DefinedNameXform();_0x3aee47?.['parseOpen'](_0x7942b9);return;}if(_0x7942b9['name']===_0x2a4f9e(0x1d1)){if(_0x38448f)throw new Error('Invalid\x20worksheet\x20nested\x20row.');_0xf0b45e(_0x7942b9[_0x2a4f9e(0x1de)]['r'],MAX_XML_ROWS),_0x14f84f=undefined,_0x5bfedc=undefined,_0x24a241=![];}else{if(_0x7942b9[_0x2a4f9e(0x217)]==='c'){if(_0x38448f)throw new Error(_0x2a4f9e(0x206));_0x38448f=!![],_0x489986=Boolean(Number[_0x2a4f9e(0x20c)](_0x7942b9[_0x2a4f9e(0x1de)]['s']??'',0xa)),_0x6cdf0b=undefined,_0x2ce011=_0x7942b9[_0x2a4f9e(0x1de)]['r']||undefined,_0x2e4998=_0x2ce011?_0x33ef8d(_0x2ce011):undefined;if(_0x2e4998)_0x4cf126=_0x2e4998;else _0x4cf126=_0x14f84f?{'row':_0x14f84f[_0x2a4f9e(0x1d1)],'col':_0x14f84f[_0x2a4f9e(0x23c)]+0x1}:undefined;}else{if(_0x38448f&&['f','v','t'][_0x2a4f9e(0x23a)](_0x7942b9[_0x2a4f9e(0x217)])){_0x6cdf0b=_0x7942b9[_0x2a4f9e(0x217)];if(_0x7942b9[_0x2a4f9e(0x217)]==='f'&&_0x7942b9[_0x2a4f9e(0x1de)]['t'])_0x489986=!![];}else{if(_0x38448f&&_0x7942b9[_0x2a4f9e(0x217)]==='r')_0x489986=!![];else{if(_0x7942b9[_0x2a4f9e(0x217)]==='hyperlink'){const _0x470761=_0x7942b9[_0x2a4f9e(0x1de)][_0x2a4f9e(0x1ad)];if(!_0x470761)throw new Error(_0x2a4f9e(0x24a));const _0x3e83a7=_0x470761[_0x2a4f9e(0x232)](':');if(_0x3e83a7[_0x2a4f9e(0x1cc)]>0x2)throw new Error(_0x2a4f9e(0x24a));const _0x48de44=_0x33ef8d(_0x3e83a7[0x0]),_0x6135f0=_0x33ef8d(_0x3e83a7[0x1]??_0x3e83a7[0x0]);_0x20cd4c[_0x2a4f9e(0x1f3)](_0x470761),_0x2ed05e(Math['max'](_0x48de44['col'],_0x6135f0[_0x2a4f9e(0x23c)]),0x1);}else{if(_0x7942b9[_0x2a4f9e(0x217)]===_0x2a4f9e(0x23c)){const _0x11375a=_0xf0b45e(_0x7942b9[_0x2a4f9e(0x1de)][_0x2a4f9e(0x1ec)],0x4000),_0x377496=_0xf0b45e(_0x7942b9[_0x2a4f9e(0x1de)][_0x2a4f9e(0x284)],0x4000);if(_0x11375a>_0x377496)throw new Error(_0x2a4f9e(0x24c));_0x2ed05e(_0x377496,0x1);}else{if(_0x7942b9[_0x2a4f9e(0x217)]===_0x2a4f9e(0x20a)){const _0xee7f69=_0x7942b9[_0x2a4f9e(0x1de)]['ref'];if(!_0xee7f69)throw new Error(_0x2a4f9e(0x1e7));const _0x372b5d=_0xee7f69['split'](':');if(_0x372b5d[_0x2a4f9e(0x1cc)]>0x2)throw new Error(_0x2a4f9e(0x1e7));const _0x322256=_0x33ef8d(_0x372b5d[0x0]),_0x491f07=_0x33ef8d(_0x372b5d[0x1]??_0x372b5d[0x0]);_0x2ed05e(Math[_0x2a4f9e(0x284)](_0x322256[_0x2a4f9e(0x23c)],_0x491f07[_0x2a4f9e(0x23c)]));const _0x1d47c8=(Math[_0x2a4f9e(0x22f)](_0x491f07['row']-_0x322256[_0x2a4f9e(0x1d1)])+0x1)*(Math[_0x2a4f9e(0x22f)](_0x491f07['col']-_0x322256[_0x2a4f9e(0x23c)])+0x1);_0x4c113c+=_0x1d47c8+_0xca52f++;if(_0x4c113c>MAX_ROWS)throw new Error('Worksheet\x20merge\x20work\x20exceeds\x20100000.');}}}}}}}}),_0x1c506f?.['on']('text',_0x3171db=>{const _0x2a2c58=_0x4f8778;if(_0x25ce48){_0x3aee47?.[_0x2a2c58(0x1c9)](_0x3171db);return;}if(_0x38448f&&_0x6cdf0b&&_0x3171db)_0x489986=!![];}),_0x1c506f?.['on'](_0x4f8778(0x1e5),_0x5142f6=>{const _0x2d998f=_0x4f8778;if(_0x25ce48){_0x3aee47&&!_0x3aee47[_0x2d998f(0x28f)]()&&(_0x373acd(_0x3aee47[_0x2d998f(0x233)]),_0x3aee47=undefined);return;}if(_0x5142f6[_0x2d998f(0x217)]==='c'){!_0x489986&&_0x2ce011&&!_0x5bfedc&&(_0x5bfedc={'before':_0x14f84f,'cells':[]});if(_0x5bfedc){if(++_0x3c8bed>0xf4240)throw new Error(_0x2d998f(0x1e4));_0x5bfedc[_0x2d998f(0x21d)]['push']({'reference':_0x2ce011,'address':_0x2e4998,'materialized':_0x489986});if(!_0x2ce011&&_0x489986)_0x24a241=!![];}if(_0x489986){if(!_0x5bfedc||_0x2ce011){if(!_0x4cf126)throw new Error(_0x2d998f(0x208));if(_0x4cf126[_0x2d998f(0x23c)]>MAX_XML_COLUMNS)throw new Error(_0x2d998f(0x227));_0x2ed05e(_0x4cf126['col']);}_0x14f84f=_0x4cf126;}_0x38448f=![],_0x4cf126=undefined,_0x2ce011=undefined,_0x2e4998=undefined,_0x6cdf0b=undefined;}else{if(_0x5142f6['name']==='row'){if(_0x5bfedc&&_0x24a241)_0xcb3b28['push'](_0x5bfedc);_0x5bfedc=undefined,_0x24a241=![];}else{if(_0x5142f6['name']===_0x6cdf0b)_0x6cdf0b=undefined;}}}),_0x1c506f?.['on'](_0x4f8778(0x213),_0x922166=>{const _0x3dd3ef=_0x4f8778;throw new Error(_0x3dd3ef(0x231)+_0x922166[_0x3dd3ef(0x249)]);}),_0x36948a['on'](_0x4f8778(0x213),_0x439560),_0x36948a['on'](_0x4f8778(0x24d),_0x75b65b=>{const _0x457fdc=_0x4f8778;if(_0x56f2e7)return;_0x2736ac+=_0x75b65b['length'],_0x208242?.['push'](_0x75b65b);if(_0x2736ac>MAX_EXPANDED){_0x439560(new Error(_0x457fdc(0x20f)));return;}try{if(_0x254981&&_0x117141)_0x254981['write'](_0x117141[_0x457fdc(0x270)](_0x75b65b));if(_0x1c506f&&_0x368eda)_0x1c506f['write'](_0x368eda[_0x457fdc(0x270)](_0x75b65b));}catch(_0x5ded47){_0x439560(_0x5ded47 instanceof Error?_0x5ded47:new Error(_0x457fdc(0x261)));}}),_0x36948a['on'](_0x4f8778(0x1bf),()=>{const _0x59be67=_0x4f8778;if(_0x56f2e7)return;try{if(_0x254981&&_0x117141)_0x254981[_0x59be67(0x270)](_0x117141[_0x59be67(0x1bf)]())[_0x59be67(0x274)]();if(_0x1c506f&&_0x368eda)_0x1c506f[_0x59be67(0x270)](_0x368eda[_0x59be67(0x1bf)]())[_0x59be67(0x274)]();for(const _0x542f07 of _0xcb3b28){let _0x355cfd=_0x542f07['before'];for(const _0x3e1b7d of _0x542f07[_0x59be67(0x21d)]){if(!_0x3e1b7d['materialized']&&!(_0x3e1b7d[_0x59be67(0x276)]&&_0x20cd4c[_0x59be67(0x228)](_0x3e1b7d['reference'])))continue;const _0x5a6956=_0x3e1b7d[_0x59be67(0x1ee)]??(_0x355cfd?{'row':_0x355cfd[_0x59be67(0x1d1)],'col':_0x355cfd[_0x59be67(0x23c)]+0x1}:undefined);if(!_0x5a6956)throw new Error(_0x59be67(0x208));if(_0x5a6956[_0x59be67(0x23c)]>MAX_XML_COLUMNS)throw new Error(_0x59be67(0x227));_0x2ed05e(_0x5a6956[_0x59be67(0x23c)]),_0x355cfd=_0x5a6956;}}_0xcb3b28[_0x59be67(0x1cc)]=0x0,_0x20cd4c[_0x59be67(0x200)]();}catch(_0x3a41bb){_0x439560(_0x3a41bb instanceof Error?_0x3a41bb:new Error(_0x59be67(0x261)));return;}if(_0x208242)_0x535543[_0x59be67(0x24b)](_0x2b1451,Buffer['concat'](_0x208242));_0x331e6a=undefined,_0x28db24[_0x59be67(0x223)]();});});}),_0x28db24['on'](_0x3fb605(0x1bf),()=>{const _0x38edf5=_0x3fb605;if(_0x56f2e7)return;if(_0x28db24[_0x38edf5(0x23f)]!==_0x575748){_0xf251be(new Error(_0x38edf5(0x1bb)));return;}if(!_0xb25cbd[_0x38edf5(0x228)](_0x38edf5(0x255))||!_0xb25cbd[_0x38edf5(0x228)](_0x38edf5(0x27f)))_0xf251be(new Error('File\x20is\x20not\x20an\x20XLSX\x20workbook.'));else _0x2a1bb8();}),_0x28db24[_0x3fb605(0x223)]();});});}function valueOf(_0x260768){const _0xa02173=a140_0x2aaa1e,_0x5add2c=_0x260768[_0xa02173(0x20b)];if(_0x5add2c&&typeof _0x5add2c===_0xa02173(0x1eb)&&(_0xa02173(0x1ca)in _0x5add2c||'sharedFormula'in _0x5add2c)){if(!('result'in _0x5add2c)||_0x5add2c[_0xa02173(0x1c2)]===undefined)throw new Error(_0xa02173(0x1c7));return _0x5add2c[_0xa02173(0x1c2)];}return _0x5add2c;}function convert(_0x5a36c8,_0x1e16e6){const _0x30056a=a140_0x2aaa1e;if(_0x5a36c8===null||_0x5a36c8===undefined||_0x5a36c8===''){if(_0x1e16e6['required']&&!_0x1e16e6['generated'])throw new Error('Required\x20value\x20is\x20missing.');return null;}if(typeof _0x5a36c8===_0x30056a(0x23e)&&Buffer[_0x30056a(0x1b6)](_0x5a36c8,'utf8')>MAX_CELL)throw new Error(_0x30056a(0x221));switch(_0x1e16e6['type'][_0x30056a(0x204)]()){case'string':case _0x30056a(0x24f):case _0x30056a(0x277):if(typeof _0x5a36c8!==_0x30056a(0x23e))throw new Error(_0x30056a(0x248));return _0x5a36c8;case _0x30056a(0x1d7):case _0x30056a(0x1ef):case _0x30056a(0x291):if(typeof _0x5a36c8!==_0x30056a(0x1d7)||!Number[_0x30056a(0x214)](_0x5a36c8)||Math['abs'](_0x5a36c8)>Number[_0x30056a(0x23d)]||_0x1e16e6['type'][_0x30056a(0x204)]()===_0x30056a(0x291)&&!Number[_0x30056a(0x281)](_0x5a36c8))throw new Error(_0x30056a(0x250));return _0x5a36c8;case _0x30056a(0x20d):if(typeof _0x5a36c8!==_0x30056a(0x20d))throw new Error(_0x30056a(0x1ea));return _0x5a36c8;case _0x30056a(0x1df):case _0x30056a(0x1b7):if(!(_0x5a36c8 instanceof Date)||!Number[_0x30056a(0x214)](_0x5a36c8[_0x30056a(0x258)]()))throw new Error(_0x30056a(0x224));return _0x5a36c8[_0x30056a(0x258)]();default:throw new Error('Unsupported\x20field\x20type:\x20'+_0x1e16e6[_0x30056a(0x273)]+'.');}}function a140_0x48b6(){const _0xce9cad=['datetime','filter','startsWith','processAttributes','ZIP\x20central\x20directory\x20entry\x20count\x20does\x20not\x20match\x20its\x20contents.','sheet','generalPurposeBitFlag','resolve','end','updateTime','doType','result','get','directory','Workbook','opentag','Formula\x20has\x20no\x20cached\x20result.','hex','parseText','formula','Invalid\x20XLSX\x20entry.','length','externalFileAttributes','original','exceljs/lib/xlsx/xform/book/defined-name-xform.js','imageCells','row','relativeOffsetOfLocalHeader','hiddenRow','appCode','uploadFields','datasetId','number','unixPermissions','3797163JNPTwu','source','localeCompare','XLSX\x20file\x20exceeds\x2020\x20MB.','image','attributes','date','Mapping\x20must\x20contain\x20at\x20least\x20one\x20field.','Invalid\x20ZIP\x20local\x20file\x20header.','isSafeInteger','./reader/readerFor','Worksheet\x20deferred\x20cell\x20events\x20exceed\x201000000.','closetag','Duplicate\x20workbook\x20ZIP\x20entry.','Invalid\x20worksheet\x20merge\x20reference.','Required\x20field\x20is\x20not\x20mapped:\x20','slice','Expected\x20a\x20boolean\x20cell.','object','min','Unique\x20image\x20bytes\x20exceed\x2050\x20MB.','address','decimal','isBuffer','isArray','upload','add','Invalid\x20defined\x20name\x20coordinate.','entry','size','METADATA','fields','Non-canonical\x20or\x20duplicate\x20image\x20archive\x20entry.','parse','Image\x20cell\x20contains\x20scalar\x20or\x20mixed\x20content.','imageFields','doctype','compressedSize','deleted','clear','Image\x20XML\x20event\x20budget\x20exceeded.','rows','exceljs/lib/utils/col-cache.js','toLowerCase','ranges','Invalid\x20worksheet\x20nested\x20cell.','24XlwnZY','Invalid\x20worksheet\x20cell\x20without\x20an\x20initial\x20reference.','Worksheet\x20coordinate\x20exceeds\x20','mergeCell','value','parseInt','boolean','\x20hidden\x20row(s)\x20are\x20included\x20in\x20the\x20import.','XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.','Duplicate\x20mapping\x20target:\x20','media','extraFields','error','isFinite','_xlnm.Print_Titles','creatorName','name','\x20columns.','hidden','lastIndexOf','Non-canonical\x20worksheet\x20ZIP\x20entry.','tenantCode','cells','Worksheet\x20exceeds\x20','Unsupported\x20field\x20type:\x20','876BHZgsq','Cell\x20exceeds\x2064\x20KB.','xlsx','readEntry','Expected\x20an\x20Excel\x20date\x20cell.','load','entries','Worksheet\x20exceeds\x2016384\x20columns.','has','Unknown\x20or\x20generated\x20mapping\x20field:\x20','create','modifierName','getRow','Non-canonical\x20workbook\x20or\x20worksheet\x20ZIP\x20entry.','fileName','abs','values','Invalid\x20worksheet\x20XML:\x20','split','model','dataset','3412024GLkNlr','charCodeAt','fileNameRaw','headerRow','readUInt32LE','includes','exec','col','MAX_SAFE_INTEGER','string','readEntryCursor','decodeEx','2270636xZJleG','push','required','top','Requested\x20worksheet\x20does\x20not\x20exist.','Only\x20.xlsx\x20files\x20are\x20supported.','Invalid\x20ZIP\x20central\x20directory\x20layout.','Expected\x20a\x20text\x20cell.','message','Invalid\x20worksheet\x20hyperlink\x20reference.','set','Invalid\x20worksheet\x20column\x20range.','data','errors','text','Expected\x20a\x20finite\x20safe\x20numeric\x20cell.','jszip','1515eVUugc','rowCount','Worksheet\x20column\x20objects\x20exceed\x20100000.','[Content_Types].xml','file','worksheets','getTime','Duplicate\x20dataset\x20field\x20codes.','Sheet\x20index\x20must\x20be\x20a\x20positive\x20one-based\x20integer.','isFile','getCell','generated','from','digest','556957MAHnmn','Invalid\x20worksheet\x20XML.','1824754MqGxIt','readUInt16LE','contentHash','batchSize','fromBuffer','Image\x20XML\x20node\x20budget\x20exceeded.','Dataset\x20field\x20metadata\x20is\x20missing.','uncompressedSize','versionMadeBy','utf8','fileComment','Headers\x20must\x20be\x20non-empty\x20text\x20cells\x20no\x20larger\x20than\x2064\x20KB.','sourceType','nativeCell','write','stringify','batchSize\x20must\x20be\x20between\x201\x20and\x201000.','type','close','sort','reference','textarea','extraFieldRaw','dataType','modifierId','mapping','find','equals','code','xl/workbook.xml','./utils','isInteger','right','extname','max','createTime','XML\x20DTD/entities\x20are\x20not\x20supported.','fileCommentRaw','fileNameStr','eachCell','sha256','left','./zipEntry','Worksheet\x20exceeds\x20100000\x20rows\x20or\x20256\x20columns.','bitFlag','parseClose','Invalid\x20or\x20duplicate\x20dataset\x20field\x20metadata.','integer','some','warnings','test','definedName','headerRow\x20must\x20be\x20between\x201\x20and\x20100000.','trim','extend','ref','map','Invalid\x20worksheet\x20cell\x20or\x20merge\x20reference.','update','2311593hfNonc','Unsupported\x20dataset\x20field\x20type:\x20serial_number.','Invalid\x20XLSX\x20archive.','./utf8','pop','byteLength'];a140_0x48b6=function(){return _0xce9cad;};return a140_0x48b6();}export async function buildExcelManifest(_0x9d7d17){const _0x4a8f5=a140_0x2aaa1e,_0x309938=_0x9d7d17[_0x4a8f5(0x238)]??0x1;if(!Number[_0x4a8f5(0x281)](_0x309938)||_0x309938<0x1||_0x309938>MAX_ROWS)throw new Error(_0x4a8f5(0x1aa));if(_0x9d7d17[_0x4a8f5(0x265)]!==undefined&&(!Number[_0x4a8f5(0x281)](_0x9d7d17[_0x4a8f5(0x265)])||_0x9d7d17[_0x4a8f5(0x265)]<0x1||_0x9d7d17[_0x4a8f5(0x265)]>0x3e8))throw new Error(_0x4a8f5(0x272));if(a140_0x1b1432[_0x4a8f5(0x283)](_0x9d7d17[_0x4a8f5(0x256)])['toLowerCase']()!=='.xlsx')throw new Error(_0x4a8f5(0x246));const _0x3f6c1d=await stat(_0x9d7d17['file']);if(!_0x3f6c1d[_0x4a8f5(0x25b)]()||_0x3f6c1d[_0x4a8f5(0x1f6)]>MAX_FILE)throw new Error('XLSX\x20file\x20must\x20be\x20a\x20regular\x20file\x20no\x20larger\x20than\x2020\x20MB.');const _0x325e70=await readFile(_0x9d7d17[_0x4a8f5(0x256)]);if(_0x325e70['length']>MAX_FILE)throw new Error(_0x4a8f5(0x1dc));const _0x1d04ee=_0x9d7d17[_0x4a8f5(0x1f8)][_0x4a8f5(0x1a6)](_0x5be185=>isImageContainer(_0x5be185['type'])&&Object[_0x4a8f5(0x230)](_0x9d7d17[_0x4a8f5(0x27b)])['includes'](_0x5be185[_0x4a8f5(0x27e)]))?new Map():undefined;await checkArchive(_0x325e70,_0x1d04ee);const _0xe910d6=new a140_0x3e38c0[(_0x4a8f5(0x1c5))]();await _0xe910d6[_0x4a8f5(0x222)][_0x4a8f5(0x225)](_0x325e70,{'ignoreNodes':['dataValidations']});const _0x789ed1=_0x9d7d17[_0x4a8f5(0x1bc)];let _0x300d82;if(_0x789ed1===undefined)_0x300d82=_0xe910d6[_0x4a8f5(0x257)][0x0];else{if(typeof _0x789ed1===_0x4a8f5(0x23e)&&_0xe910d6[_0x4a8f5(0x257)]['some'](_0x344248=>_0x344248[_0x4a8f5(0x217)]===_0x789ed1))_0x300d82=_0xe910d6[_0x4a8f5(0x257)]['find'](_0x40bb87=>_0x40bb87['name']===_0x789ed1);else{if(typeof _0x789ed1==='number'||/^\d+$/[_0x4a8f5(0x1a8)](_0x789ed1)){const _0x17bfe5=Number(_0x789ed1);if(!Number[_0x4a8f5(0x281)](_0x17bfe5)||_0x17bfe5<0x1)throw new Error(_0x4a8f5(0x25a));_0x300d82=_0xe910d6['worksheets'][_0x17bfe5-0x1];}else _0x300d82=_0xe910d6[_0x4a8f5(0x257)][_0x4a8f5(0x27c)](_0x18eb5b=>_0x18eb5b['name']===_0x789ed1);}}if(!_0x300d82)throw new Error(_0x4a8f5(0x245));if(_0x300d82[_0x4a8f5(0x253)]>MAX_ROWS||_0x300d82['columnCount']>MAX_COLUMNS)throw new Error(_0x4a8f5(0x28d));if((_0x300d82[_0x4a8f5(0x233)]['merges']??[])[_0x4a8f5(0x1cc)])throw new Error('Merged\x20cells\x20are\x20not\x20supported.');const _0x3f18c3=new Map();_0x300d82[_0x4a8f5(0x22c)](_0x309938)[_0x4a8f5(0x289)]((_0x3d6613,_0x2da207)=>{const _0x36adf7=_0x4a8f5,_0x4693bb=valueOf(_0x3d6613);if(typeof _0x4693bb!=='string'||!_0x4693bb[_0x36adf7(0x1ab)]()||Buffer[_0x36adf7(0x1b6)](_0x4693bb)>MAX_CELL)throw new Error(_0x36adf7(0x26d));if(_0x3f18c3[_0x36adf7(0x228)](_0x4693bb))throw new Error('Duplicate\x20header:\x20'+_0x4693bb+'.');_0x3f18c3['set'](_0x4693bb,_0x2da207);});const _0x3084f5=Object[_0x4a8f5(0x226)](_0x9d7d17[_0x4a8f5(0x27b)]);if(!_0x3084f5[_0x4a8f5(0x1cc)])throw new Error(_0x4a8f5(0x1e0));const _0x57b459=new Map(_0x9d7d17[_0x4a8f5(0x1f8)][_0x4a8f5(0x1ae)](_0x40553d=>[_0x40553d[_0x4a8f5(0x27e)],_0x40553d]));if(_0x57b459[_0x4a8f5(0x1f6)]!==_0x9d7d17[_0x4a8f5(0x1f8)][_0x4a8f5(0x1cc)])throw new Error(_0x4a8f5(0x259));if(_0x9d7d17[_0x4a8f5(0x1f8)][_0x4a8f5(0x1a6)](_0x3dc52a=>_0x3dc52a['type'][_0x4a8f5(0x204)]()==='serial_number'))throw new Error(_0x4a8f5(0x1b2));const _0x1b4696=new Set();for(const [_0x3b79f9,_0x45f4e2]of _0x3084f5){const _0x4eb994=_0x57b459[_0x4a8f5(0x1c3)](_0x45f4e2);if(!_0x3f18c3[_0x4a8f5(0x228)](_0x3b79f9))throw new Error('Unknown\x20Excel\x20header:\x20'+_0x3b79f9+'.');if(!_0x4eb994||RESERVED[_0x4a8f5(0x228)](_0x45f4e2)||_0x4eb994[_0x4a8f5(0x25d)])throw new Error(_0x4a8f5(0x229)+_0x45f4e2+'.');if(_0x1b4696[_0x4a8f5(0x228)](_0x45f4e2))throw new Error(_0x4a8f5(0x210)+_0x45f4e2+'.');if(!TYPES['has'](_0x4eb994[_0x4a8f5(0x273)]['toLowerCase']()))throw new Error(_0x4a8f5(0x21f)+_0x4eb994[_0x4a8f5(0x273)]+'.');_0x1b4696[_0x4a8f5(0x1f3)](_0x45f4e2);}for(const _0x3731ae of _0x9d7d17[_0x4a8f5(0x1f8)]){if(_0x3731ae[_0x4a8f5(0x243)]&&!_0x3731ae[_0x4a8f5(0x25d)]&&!RESERVED[_0x4a8f5(0x228)](_0x3731ae[_0x4a8f5(0x27e)])&&!_0x1b4696['has'](_0x3731ae[_0x4a8f5(0x27e)]))throw new Error(_0x4a8f5(0x1e8)+_0x3731ae[_0x4a8f5(0x27e)]+'.');}const _0x1e9b5c={'fileHash':hash(_0x325e70),'mappingHash':hash(JSON[_0x4a8f5(0x271)]([..._0x3084f5][_0x4a8f5(0x275)](([_0x35f44e],[_0xd6be57])=>_0x35f44e[_0x4a8f5(0x1db)](_0xd6be57)))),'schemaHash':hash(JSON[_0x4a8f5(0x271)]([..._0x9d7d17[_0x4a8f5(0x1f8)]][_0x4a8f5(0x275)]((_0x4df7a3,_0xd7bffd)=>_0x4df7a3['code'][_0x4a8f5(0x1db)](_0xd7bffd[_0x4a8f5(0x27e)])))),'sheet':_0x300d82[_0x4a8f5(0x217)],'rows':[],'emptyRows':[],'errors':[],'warnings':[]},_0x4108eb=_0x3084f5[_0x4a8f5(0x1b8)](([,_0x3e8d1f])=>isImageContainer(_0x57b459[_0x4a8f5(0x1c3)](_0x3e8d1f)[_0x4a8f5(0x273)])),_0x4b9f3a=_0x4108eb['filter'](([,_0xf8f023])=>_0x57b459[_0x4a8f5(0x1c3)](_0xf8f023)[_0x4a8f5(0x273)][_0x4a8f5(0x204)]()==='upload')[_0x4a8f5(0x1ae)](([,_0x4d2992])=>_0x4d2992);if(_0x4b9f3a[_0x4a8f5(0x1cc)])_0x1e9b5c[_0x4a8f5(0x1d5)]=_0x4b9f3a;const _0xf64a19=_0x1d04ee?resolveWorksheetImages(_0x1d04ee,_0x300d82[_0x4a8f5(0x217)],new Set(_0x4108eb[_0x4a8f5(0x1ae)](([_0x13b953])=>_0x3f18c3[_0x4a8f5(0x1c3)](_0x13b953)))):[],_0x2081ab=new Map();for(const _0x50210a of _0xf64a19){const _0x5b0089=_0x50210a['row']+':'+_0x50210a[_0x4a8f5(0x23c)],_0x2d60df=_0x2081ab['get'](_0x5b0089)??[];_0x2d60df[_0x4a8f5(0x242)](_0x50210a),_0x2081ab[_0x4a8f5(0x24b)](_0x5b0089,_0x2d60df);}const _0x5480ac=new Map();let _0x1bb7dd=0x0;_0x4108eb[_0x4a8f5(0x1cc)]&&(_0x1e9b5c[_0x4a8f5(0x1fc)]=_0x4108eb[_0x4a8f5(0x1ae)](([,_0x41ef53])=>_0x41ef53),_0x1e9b5c[_0x4a8f5(0x1d0)]=[],_0x1e9b5c['parserVersion']=0x1,_0x1e9b5c[_0x4a8f5(0x211)]=[]);const _0xe4dd9b=Math[_0x4a8f5(0x284)](0x0,..._0xf64a19[_0x4a8f5(0x1ae)](_0x4ccdec=>_0x4ccdec[_0x4a8f5(0x1d1)]));let _0x47134d=0x0;const _0x2b4a0e=new Set(_0x3084f5[_0x4a8f5(0x1ae)](([_0x3e3551])=>_0x3f18c3['get'](_0x3e3551)));for(let _0x3b5447=_0x309938+0x1;_0x3b5447<=Math[_0x4a8f5(0x284)](_0x300d82[_0x4a8f5(0x253)],_0xe4dd9b);_0x3b5447++){const _0x548204=_0x300d82[_0x4a8f5(0x22c)](_0x3b5447);if(_0x548204[_0x4a8f5(0x219)]||_0xf64a19[_0x4a8f5(0x1a6)](_0x4e61d9=>_0x4e61d9[_0x4a8f5(0x1d1)]===_0x3b5447&&_0x4e61d9[_0x4a8f5(0x1d3)]))_0x47134d++;let _0x82bc28=_0xf64a19['some'](_0x2a0683=>_0x2a0683[_0x4a8f5(0x1d1)]===_0x3b5447);_0x548204[_0x4a8f5(0x289)](_0x534aaf=>{const _0x551f82=_0x4a8f5;if(_0x534aaf['value']!==null&&_0x534aaf[_0x551f82(0x20b)]!==undefined&&_0x534aaf['value']!=='')_0x82bc28=!![];});if(!_0x82bc28){_0x1e9b5c['emptyRows'][_0x4a8f5(0x242)](_0x3b5447);continue;}const _0x12e87a=Object[_0x4a8f5(0x22a)](null);_0x548204[_0x4a8f5(0x289)]((_0x2d1583,_0x24ca6e)=>{const _0xc46739=_0x4a8f5;if(_0x2b4a0e[_0xc46739(0x228)](_0x24ca6e))return;try{const _0x229fe7=valueOf(_0x2d1583);if(typeof _0x229fe7==='string'&&Buffer['byteLength'](_0x229fe7,_0xc46739(0x26b))>MAX_CELL)throw new Error(_0xc46739(0x221));}catch(_0x342b1c){_0x1e9b5c[_0xc46739(0x24e)]['push']({'rowNumber':_0x3b5447,'field':_0x2d1583[_0xc46739(0x1ee)],'message':_0x342b1c[_0xc46739(0x249)]});}});for(const [_0x13bb4d,_0x1a7aa2]of _0x3084f5){try{const _0x5a50fd=_0x548204[_0x4a8f5(0x25c)](_0x3f18c3[_0x4a8f5(0x1c3)](_0x13bb4d)),_0x195b8e=_0x57b459[_0x4a8f5(0x1c3)](_0x1a7aa2);if(!isImageContainer(_0x195b8e[_0x4a8f5(0x273)])){_0x12e87a[_0x1a7aa2]=convert(valueOf(_0x5a50fd),_0x195b8e);continue;}const _0x58734b=_0x2081ab[_0x4a8f5(0x1c3)](_0x3b5447+':'+_0x3f18c3['get'](_0x13bb4d))??[];if(_0x58734b[_0x4a8f5(0x1a6)](_0x1e23aa=>_0x1e23aa[_0x4a8f5(0x213)]))throw Error(_0x58734b['find'](_0xeda6d=>_0xeda6d[_0x4a8f5(0x213)])[_0x4a8f5(0x213)]);if(_0x5a50fd[_0x4a8f5(0x20b)]!=null&&_0x5a50fd[_0x4a8f5(0x20b)]!==''&&!_0x58734b[_0x4a8f5(0x1a6)](_0x5251f0=>_0x5251f0[_0x4a8f5(0x26f)]))throw Error(_0x4a8f5(0x1fb));const _0x326254=[];for(const _0x169f69 of _0x58734b)for(const _0x70c512 of _0x169f69[_0x4a8f5(0x211)]){const _0xd73526=_0x1d04ee['get'](_0x70c512);if(!_0xd73526)throw Error('Missing\x20image\x20media:\x20'+_0x70c512+'.');const _0x29d29e=hash(_0xd73526),_0x4c09f8=_0x5480ac['get'](_0x29d29e)??validateImageBytes(_0xd73526);if(!_0x5480ac[_0x4a8f5(0x228)](_0x4c09f8['contentHash'])){_0x1bb7dd+=_0x4c09f8[_0x4a8f5(0x1f6)];if(_0x1bb7dd>0x32*0x400*0x400)throw Error(_0x4a8f5(0x1ed));_0x5480ac[_0x4a8f5(0x24b)](_0x4c09f8[_0x4a8f5(0x264)],_0x4c09f8);}_0x326254[_0x4a8f5(0x242)](_0x4c09f8[_0x4a8f5(0x264)]);}if(!_0x326254[_0x4a8f5(0x1cc)]&&_0x195b8e[_0x4a8f5(0x243)])throw Error('Required\x20image\x20value\x20is\x20missing.');if(_0x326254['length'])_0x1e9b5c[_0x4a8f5(0x1d0)]['push']({'rowNumber':_0x3b5447,'field':_0x1a7aa2,'hashes':_0x326254});_0x12e87a[_0x1a7aa2]=_0x326254[_0x4a8f5(0x1ae)](_0x1dcf58=>{const _0x36b806=_0x4a8f5,_0x30c647=_0x5480ac[_0x36b806(0x1c3)](_0x1dcf58),_0x3fefc5=_0x30c647[_0x36b806(0x273)]==='image/jpeg'?'jpg':_0x30c647[_0x36b806(0x273)]['slice'](0x6),_0x1bfa44=_0x1dcf58+'.'+_0x3fefc5,_0x242274='dataset-import/'+'0'['repeat'](0x40)+'/'+_0x1bfa44;return _0x195b8e['type'][_0x36b806(0x204)]()===_0x36b806(0x1f2)?{'fileName':_0x1bfa44,'filePath':_0x242274}:{'key':_0x242274,'name':_0x1bfa44,'type':_0x30c647[_0x36b806(0x273)],'size':_0x30c647['size']};});}catch(_0x3c0e00){_0x1e9b5c['errors'][_0x4a8f5(0x242)]({'rowNumber':_0x3b5447,'field':_0x1a7aa2,'message':_0x3c0e00['message']});}}_0x1e9b5c[_0x4a8f5(0x202)][_0x4a8f5(0x242)]({'rowNumber':_0x3b5447,'values':_0x12e87a});}if(_0x1e9b5c['media'])_0x1e9b5c[_0x4a8f5(0x211)]=[..._0x5480ac[_0x4a8f5(0x230)]()];if(_0x47134d)_0x1e9b5c[_0x4a8f5(0x1a7)][_0x4a8f5(0x242)](_0x47134d+_0x4a8f5(0x20e));return _0x1e9b5c;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x31074d,_0x2e862e){const _0x49e0a4=a141_0x43e6,_0x2aa5ab=_0x31074d();while(!![]){try{const _0x55a71a=parseInt(_0x49e0a4(0x120))/0x1+-parseInt(_0x49e0a4(0x143))/0x2+-parseInt(_0x49e0a4(0x113))/0x3+parseInt(_0x49e0a4(0x110))/0x4*(parseInt(_0x49e0a4(0x13d))/0x5)+parseInt(_0x49e0a4(0x128))/0x6*(parseInt(_0x49e0a4(0x115))/0x7)+parseInt(_0x49e0a4(0x111))/0x8+-parseInt(_0x49e0a4(0x132))/0x9;if(_0x55a71a===_0x2e862e)break;else _0x2aa5ab['push'](_0x2aa5ab['shift']());}catch(_0x26289e){_0x2aa5ab['push'](_0x2aa5ab['shift']());}}}(a141_0x2ca2,0xe6eb4));function a141_0x43e6(_0x11d7fe,_0x31a980){_0x11d7fe=_0x11d7fe-0x108;const _0x2ca238=a141_0x2ca2();let _0x43e6dd=_0x2ca238[_0x11d7fe];return _0x43e6dd;}import{createRequire}from'node:module';import{createHash}from'node:crypto';import{inflateSync}from'node:zlib';function a141_0x2ca2(){const _0x2d351c=['4440XKVWWX','sync','Invalid\x20GIF\x20LZW\x20code\x20size.','image/png','includes','sha256','1377440eMflIN','GIF\x20cumulative\x20frame\x20pixels\x20exceed\x2040\x20million.','Truncated\x20GIF\x20data.','width','max','GIF\x20frame\x20exceeds\x20canvas.','Image\x20dimensions\x20exceed\x2040\x20million\x20pixels.','Invalid\x20PNG\x20end.','Missing\x20PNG\x20data/end.','Animated\x20PNG\x20is\x20not\x20supported.','IHDR','readUInt32BE','3092AIirZK','9845792whRmIF','GIF89a','4869927fsWQYh','numFrames','5070597tBOKqi','toString','subarray','frameInfo','IEND','Truncated\x20PNG\x20data.','GIF87a','ceil','GIF\x20image\x20has\x20no\x20palette.','push','Image\x20must\x20be\x20non-empty\x20and\x20no\x20larger\x20than\x2010\x20MB.','1821525PrTxSC','read','height','Truncated\x20PNG\x20chunk.','jpeg-js','Invalid\x20PNG\x20color/depth/interlace.','isSafeInteger','ascii','12cpNWxY','readUInt16LE','Invalid\x20GIF\x20LZW\x20pixel\x20data.','decode','Invalid\x20PNG\x20header.','IDAT','hex','Invalid\x20image:\x20','Invalid\x20GIF\x20trailer.','length','17365878LtpWEP','pngjs','omggif','equals','Unsupported\x20image\x20format;\x20only\x20PNG,\x20JPEG\x20and\x20GIF\x20are\x20supported.\x20WebP\x20is\x20not\x20supported.','Truncated\x20JPEG.','Invalid\x20GIF\x20block.','digest','Missing\x20GIF\x20trailer.','acTL','message'];a141_0x2ca2=function(){return _0x2d351c;};return a141_0x2ca2();}const require=createRequire(import.meta.url),MAX_PIXELS=0x2625a00;function dimensions(_0x25a307,_0x48818c){const _0x1a081f=a141_0x43e6;if(!Number[_0x1a081f(0x126)](_0x25a307)||!Number[_0x1a081f(0x126)](_0x48818c)||_0x25a307<0x1||_0x48818c<0x1||_0x25a307*_0x48818c>MAX_PIXELS)throw Error(_0x1a081f(0x10a));}function validateGif(_0x4bdf8f){const _0x207c65=a141_0x43e6;let _0x5e2be8=0xd,_0x236a74=0x0,_0xfd6c40=0x0;const _0x4f8532=_0x4bdf8f[_0x207c65(0x129)](0x6),_0x24edca=_0x4bdf8f[_0x207c65(0x129)](0x8),_0x31b262=_0x4bdf8f[0xa]&0x80?0x1<<(_0x4bdf8f[0xa]&0x7)+0x1:0x0,_0x59d027=_0x179352=>{const _0x3f0fc6=_0x207c65;if(_0x5e2be8+_0x179352>_0x4bdf8f[_0x3f0fc6(0x131)])throw Error(_0x3f0fc6(0x145));};_0x5e2be8+=_0x31b262*0x3,_0x59d027(0x0);const _0x2ee896=()=>{const _0x80c024=_0x207c65,_0x168525=[];while(!![]){_0x59d027(0x1);const _0x24d578=_0x4bdf8f[_0x5e2be8++];if(!_0x24d578)break;_0x59d027(_0x24d578),_0x168525[_0x80c024(0x11e)](_0x4bdf8f[_0x80c024(0x117)](_0x5e2be8,_0x5e2be8+_0x24d578)),_0x5e2be8+=_0x24d578;}return Buffer['concat'](_0x168525);};while(_0x5e2be8<_0x4bdf8f[_0x207c65(0x131)]){const _0x223a2f=_0x4bdf8f[_0x5e2be8++];if(_0x223a2f===0x3b){if(!_0x236a74||_0x5e2be8!==_0x4bdf8f[_0x207c65(0x131)])throw Error(_0x207c65(0x130));return;}if(_0x223a2f===0x21){_0x59d027(0x1),_0x5e2be8++,_0x2ee896();continue;}if(_0x223a2f!==0x2c)throw Error(_0x207c65(0x138));_0x59d027(0x9);const _0x3adfff=_0x4bdf8f[_0x207c65(0x129)](_0x5e2be8),_0x285c61=_0x4bdf8f[_0x207c65(0x129)](_0x5e2be8+0x2),_0x27ec2f=_0x4bdf8f['readUInt16LE'](_0x5e2be8+0x4),_0x1c1051=_0x4bdf8f[_0x207c65(0x129)](_0x5e2be8+0x6),_0x4484d7=_0x4bdf8f[_0x5e2be8+0x8];_0x5e2be8+=0x9,dimensions(_0x27ec2f,_0x1c1051);if(_0x3adfff+_0x27ec2f>_0x4f8532||_0x285c61+_0x1c1051>_0x24edca||++_0x236a74>0x2710||(_0xfd6c40+=_0x4f8532*_0x24edca)>MAX_PIXELS)throw Error('GIF\x20cumulative\x20frame\x20pixels\x20exceed\x2040\x20million.');const _0x57ed96=_0x4484d7&0x80?0x1<<(_0x4484d7&0x7)+0x1:_0x31b262;if(!_0x57ed96)throw Error(_0x207c65(0x11d));_0x4484d7&0x80&&(_0x59d027(_0x57ed96*0x3),_0x5e2be8+=_0x57ed96*0x3);_0x59d027(0x1);const _0x366f0e=_0x4bdf8f[_0x5e2be8++];if(_0x366f0e<0x2||_0x366f0e>0x8)throw Error(_0x207c65(0x13f));const _0x7c5410=_0x2ee896(),_0x421e44=0x1<<_0x366f0e,_0x8eb1a4=_0x421e44+0x1;let _0x32a0e3=_0x366f0e+0x1,_0x4b8a74=_0x8eb1a4+0x1,_0x484ab7=0x0,_0x4a40f5=-0x1,_0x5698f9=0x0,_0x2ed390=![];const _0x24b0db=new Uint32Array(0x1000),_0xed11f5=new Uint16Array(0x1000);for(let _0x181651=0x0;_0x181651<_0x421e44;_0x181651++){_0x24b0db[_0x181651]=0x1,_0xed11f5[_0x181651]=_0x181651;}while(_0x484ab7+_0x32a0e3<=_0x7c5410['length']*0x8){let _0x30287f=0x0;for(let _0x519674=0x0;_0x519674<_0x32a0e3;_0x519674++,_0x484ab7++)_0x30287f|=(_0x7c5410[_0x484ab7>>0x3]>>(_0x484ab7&0x7)&0x1)<<_0x519674;if(_0x30287f===_0x421e44){_0x32a0e3=_0x366f0e+0x1,_0x4b8a74=_0x8eb1a4+0x1,_0x4a40f5=-0x1;continue;}if(_0x30287f===_0x8eb1a4){_0x2ed390=!![];break;}if(_0x30287f>_0x4b8a74||_0x30287f===_0x4b8a74&&_0x4a40f5<0x0||_0x4a40f5<0x0&&_0x30287f>=_0x421e44)throw Error('Invalid\x20GIF\x20LZW\x20dictionary\x20reference.');const _0x215388=_0x30287f===_0x4b8a74?_0x24b0db[_0x4a40f5]+0x1:_0x24b0db[_0x30287f],_0x27878a=_0x30287f===_0x4b8a74?_0xed11f5[_0x4a40f5]:_0xed11f5[_0x30287f];if(!_0x215388||_0x27878a>=_0x57ed96||(_0x5698f9+=_0x215388)>_0x27ec2f*_0x1c1051)throw Error(_0x207c65(0x12a));if(_0x4a40f5>=0x0&&_0x4b8a74<0x1000){_0x24b0db[_0x4b8a74]=_0x24b0db[_0x4a40f5]+0x1,_0xed11f5[_0x4b8a74]=Math[_0x207c65(0x108)](_0xed11f5[_0x4a40f5],_0x27878a),_0x4b8a74++;if(_0x4b8a74===0x1<<_0x32a0e3&&_0x32a0e3<0xc)_0x32a0e3++;}_0x4a40f5=_0x30287f;}if(!_0x2ed390||_0x5698f9!==_0x27ec2f*_0x1c1051)throw Error('Truncated\x20or\x20incomplete\x20GIF\x20LZW\x20pixels.');}throw Error(_0x207c65(0x13a));}export function validateImageBytes(_0x3807f1){const _0x16fca7=a141_0x43e6;if(!_0x3807f1[_0x16fca7(0x131)]||_0x3807f1['length']>0xa*0x400*0x400)throw Error(_0x16fca7(0x11f));let _0x37abef;try{if(_0x3807f1['subarray'](0x0,0x8)[_0x16fca7(0x135)](Buffer['from']([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]))){if(_0x3807f1['length']<0x21||_0x3807f1['toString'](_0x16fca7(0x127),0xc,0x10)!==_0x16fca7(0x10e))throw Error(_0x16fca7(0x12c));dimensions(_0x3807f1[_0x16fca7(0x10f)](0x10),_0x3807f1[_0x16fca7(0x10f)](0x14));const _0x20b768=_0x3807f1[_0x16fca7(0x10f)](0x10),_0x42098c=_0x3807f1[_0x16fca7(0x10f)](0x14),_0x89087=_0x3807f1[0x18],_0x547a0b=_0x3807f1[0x19],_0x44792a=_0x3807f1[0x1c],_0x31c6ed={0x0:0x1,0x2:0x3,0x3:0x1,0x4:0x2,0x6:0x4}[_0x547a0b];if(!_0x31c6ed||![0x1,0x2,0x4,0x8,0x10][_0x16fca7(0x141)](_0x89087)||_0x44792a>0x1)throw Error(_0x16fca7(0x125));const _0x11ebd6=_0x296c47=>Math[_0x16fca7(0x11c)](_0x296c47*_0x31c6ed*_0x89087/0x8)+0x1;let _0x508a1e=_0x11ebd6(_0x20b768)*_0x42098c;if(_0x44792a){_0x508a1e=0x0;for(const [_0x4ab93d,_0x39f2ab,_0x41c9a7,_0x341476]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 _0x46eaef=Math[_0x16fca7(0x108)](0x0,Math[_0x16fca7(0x11c)]((_0x20b768-_0x4ab93d)/_0x41c9a7)),_0x315745=Math[_0x16fca7(0x108)](0x0,Math[_0x16fca7(0x11c)]((_0x42098c-_0x39f2ab)/_0x341476));if(_0x46eaef&&_0x315745)_0x508a1e+=_0x11ebd6(_0x46eaef)*_0x315745;}}let _0x297aa4=0x8,_0x5d0628=![];const _0x2b659a=[];while(_0x297aa4<_0x3807f1[_0x16fca7(0x131)]){if(_0x297aa4+0xc>_0x3807f1[_0x16fca7(0x131)])throw Error(_0x16fca7(0x123));const _0x4a09f6=_0x3807f1[_0x16fca7(0x10f)](_0x297aa4),_0x431992=_0x3807f1[_0x16fca7(0x116)](_0x16fca7(0x127),_0x297aa4+0x4,_0x297aa4+0x8);if(_0x431992===_0x16fca7(0x13b))throw Error(_0x16fca7(0x10d));if(_0x297aa4+_0x4a09f6+0xc>_0x3807f1[_0x16fca7(0x131)])throw Error(_0x16fca7(0x11a));if(_0x431992===_0x16fca7(0x12d))_0x2b659a['push'](_0x3807f1['subarray'](_0x297aa4+0x8,_0x297aa4+0x8+_0x4a09f6));_0x297aa4+=_0x4a09f6+0xc;if(_0x431992===_0x16fca7(0x119)){if(_0x4a09f6||_0x297aa4!==_0x3807f1[_0x16fca7(0x131)])throw Error(_0x16fca7(0x10b));_0x5d0628=!![];break;}}if(!_0x5d0628||!_0x2b659a[_0x16fca7(0x131)])throw Error(_0x16fca7(0x10c));if(inflateSync(Buffer['concat'](_0x2b659a),{'maxOutputLength':_0x508a1e+0x1})['length']!==_0x508a1e)throw Error('Invalid\x20PNG\x20decoded\x20scanline\x20size.');const {PNG:_0x11da3b}=require(_0x16fca7(0x133)),_0x2c69b9=_0x11da3b[_0x16fca7(0x13e)][_0x16fca7(0x121)](_0x3807f1,{'checkCRC':!![]});dimensions(_0x2c69b9[_0x16fca7(0x146)],_0x2c69b9[_0x16fca7(0x122)]),_0x37abef=_0x16fca7(0x140);}else{if(_0x3807f1[0x0]===0xff&&_0x3807f1[0x1]===0xd8){if(_0x3807f1['at'](-0x2)!==0xff||_0x3807f1['at'](-0x1)!==0xd9)throw Error(_0x16fca7(0x137));const _0x30ca5e=require(_0x16fca7(0x124)),_0x486918=_0x30ca5e[_0x16fca7(0x12b)](_0x3807f1,{'useTArray':!![],'formatAsRGBA':![],'tolerantDecoding':![],'maxResolutionInMP':0x28,'maxMemoryUsageInMB':0x100});dimensions(_0x486918[_0x16fca7(0x146)],_0x486918['height']),_0x37abef='image/jpeg';}else{if([_0x16fca7(0x11b),_0x16fca7(0x112)][_0x16fca7(0x141)](_0x3807f1[_0x16fca7(0x116)]('ascii',0x0,0x6))){if(_0x3807f1[_0x16fca7(0x131)]<0xe||_0x3807f1['at'](-0x1)!==0x3b)throw Error('Truncated\x20GIF.');dimensions(_0x3807f1[_0x16fca7(0x129)](0x6),_0x3807f1[_0x16fca7(0x129)](0x8)),validateGif(_0x3807f1);const {GifReader:_0x3604ef}=require(_0x16fca7(0x134)),_0x479754=new _0x3604ef(_0x3807f1);dimensions(_0x479754[_0x16fca7(0x146)],_0x479754[_0x16fca7(0x122)]);const _0x17ec0a=_0x479754[_0x16fca7(0x114)]();if(!_0x17ec0a||_0x17ec0a>0x2710||_0x17ec0a*_0x479754[_0x16fca7(0x146)]*_0x479754[_0x16fca7(0x122)]>MAX_PIXELS)throw Error(_0x16fca7(0x144));const _0x530182=new Uint8Array(_0x479754[_0x16fca7(0x146)]*_0x479754[_0x16fca7(0x122)]*0x4);for(let _0xa5d009=0x0;_0xa5d009<_0x17ec0a;_0xa5d009++){const _0x4a4290=_0x479754[_0x16fca7(0x118)](_0xa5d009);if(_0x4a4290['x']+_0x4a4290[_0x16fca7(0x146)]>_0x479754[_0x16fca7(0x146)]||_0x4a4290['y']+_0x4a4290[_0x16fca7(0x122)]>_0x479754[_0x16fca7(0x122)])throw Error(_0x16fca7(0x109));_0x479754['decodeAndBlitFrameRGBA'](_0xa5d009,_0x530182);}_0x37abef='image/gif';}else throw Error(_0x16fca7(0x136));}}}catch(_0x2146d1){throw Error(_0x16fca7(0x12f)+_0x2146d1[_0x16fca7(0x13c)]);}return{'contentHash':createHash(_0x16fca7(0x142))['update'](_0x3807f1)[_0x16fca7(0x139)](_0x16fca7(0x12e)),'type':_0x37abef,'size':_0x3807f1[_0x16fca7(0x131)],'bytes':_0x3807f1};}
|
|
1
|
+
function a141_0x4313(_0x5c54cd,_0x10a7d8){_0x5c54cd=_0x5c54cd-0x14d;const _0x13d77c=a141_0x13d7();let _0x4313af=_0x13d77c[_0x5c54cd];return _0x4313af;}(function(_0x1ae73f,_0x1d2250){const _0x502e6e=a141_0x4313,_0x530f03=_0x1ae73f();while(!![]){try{const _0x12e1db=parseInt(_0x502e6e(0x162))/0x1+-parseInt(_0x502e6e(0x155))/0x2*(-parseInt(_0x502e6e(0x157))/0x3)+-parseInt(_0x502e6e(0x14e))/0x4+-parseInt(_0x502e6e(0x17e))/0x5*(-parseInt(_0x502e6e(0x169))/0x6)+-parseInt(_0x502e6e(0x182))/0x7*(parseInt(_0x502e6e(0x152))/0x8)+-parseInt(_0x502e6e(0x154))/0x9*(-parseInt(_0x502e6e(0x151))/0xa)+parseInt(_0x502e6e(0x14f))/0xb;if(_0x12e1db===_0x1d2250)break;else _0x530f03['push'](_0x530f03['shift']());}catch(_0x2bb6ff){_0x530f03['push'](_0x530f03['shift']());}}}(a141_0x13d7,0x2d218));import{createRequire}from'node:module';import{createHash}from'node:crypto';import{inflateSync}from'node:zlib';const require=createRequire(import.meta.url),MAX_PIXELS=0x2625a00;function dimensions(_0x2e5c3b,_0x5d7d2d){const _0x16d016=a141_0x4313;if(!Number[_0x16d016(0x174)](_0x2e5c3b)||!Number[_0x16d016(0x174)](_0x5d7d2d)||_0x2e5c3b<0x1||_0x5d7d2d<0x1||_0x2e5c3b*_0x5d7d2d>MAX_PIXELS)throw Error('Image\x20dimensions\x20exceed\x2040\x20million\x20pixels.');}function validateGif(_0x2b33c7){const _0x346573=a141_0x4313;let _0x1caebe=0xd,_0xa5e466=0x0,_0x3a0f55=0x0;const _0x1b8844=_0x2b33c7[_0x346573(0x17d)](0x6),_0x46af44=_0x2b33c7[_0x346573(0x17d)](0x8),_0x520a84=_0x2b33c7[0xa]&0x80?0x1<<(_0x2b33c7[0xa]&0x7)+0x1:0x0,_0x4fd3f0=_0x11ea6e=>{const _0x4fa199=_0x346573;if(_0x1caebe+_0x11ea6e>_0x2b33c7[_0x4fa199(0x179)])throw Error(_0x4fa199(0x166));};_0x1caebe+=_0x520a84*0x3,_0x4fd3f0(0x0);const _0x2aee1a=()=>{const _0x31de4c=_0x346573,_0x1994a0=[];while(!![]){_0x4fd3f0(0x1);const _0xef7f52=_0x2b33c7[_0x1caebe++];if(!_0xef7f52)break;_0x4fd3f0(_0xef7f52),_0x1994a0[_0x31de4c(0x160)](_0x2b33c7[_0x31de4c(0x15f)](_0x1caebe,_0x1caebe+_0xef7f52)),_0x1caebe+=_0xef7f52;}return Buffer[_0x31de4c(0x14d)](_0x1994a0);};while(_0x1caebe<_0x2b33c7[_0x346573(0x179)]){const _0x3a15fd=_0x2b33c7[_0x1caebe++];if(_0x3a15fd===0x3b){if(!_0xa5e466||_0x1caebe!==_0x2b33c7['length'])throw Error('Invalid\x20GIF\x20trailer.');return;}if(_0x3a15fd===0x21){_0x4fd3f0(0x1),_0x1caebe++,_0x2aee1a();continue;}if(_0x3a15fd!==0x2c)throw Error(_0x346573(0x167));_0x4fd3f0(0x9);const _0x2cce05=_0x2b33c7[_0x346573(0x17d)](_0x1caebe),_0xfb70f7=_0x2b33c7[_0x346573(0x17d)](_0x1caebe+0x2),_0x1367d3=_0x2b33c7[_0x346573(0x17d)](_0x1caebe+0x4),_0x4ebfee=_0x2b33c7['readUInt16LE'](_0x1caebe+0x6),_0x2ac19c=_0x2b33c7[_0x1caebe+0x8];_0x1caebe+=0x9,dimensions(_0x1367d3,_0x4ebfee);if(_0x2cce05+_0x1367d3>_0x1b8844||_0xfb70f7+_0x4ebfee>_0x46af44||++_0xa5e466>0x2710||(_0x3a0f55+=_0x1b8844*_0x46af44)>MAX_PIXELS)throw Error(_0x346573(0x15a));const _0x42ebe1=_0x2ac19c&0x80?0x1<<(_0x2ac19c&0x7)+0x1:_0x520a84;if(!_0x42ebe1)throw Error(_0x346573(0x15e));_0x2ac19c&0x80&&(_0x4fd3f0(_0x42ebe1*0x3),_0x1caebe+=_0x42ebe1*0x3);_0x4fd3f0(0x1);const _0x170f8e=_0x2b33c7[_0x1caebe++];if(_0x170f8e<0x2||_0x170f8e>0x8)throw Error(_0x346573(0x150));const _0x5c4757=_0x2aee1a(),_0x24a712=0x1<<_0x170f8e,_0x188a18=_0x24a712+0x1;let _0xbe1bf8=_0x170f8e+0x1,_0x23f258=_0x188a18+0x1,_0x36da8f=0x0,_0x26a355=-0x1,_0x30041f=0x0,_0x2cf26e=![];const _0x2bc66f=new Uint32Array(0x1000),_0x57108b=new Uint16Array(0x1000);for(let _0x3ebb88=0x0;_0x3ebb88<_0x24a712;_0x3ebb88++){_0x2bc66f[_0x3ebb88]=0x1,_0x57108b[_0x3ebb88]=_0x3ebb88;}while(_0x36da8f+_0xbe1bf8<=_0x5c4757[_0x346573(0x179)]*0x8){let _0x237358=0x0;for(let _0x365b94=0x0;_0x365b94<_0xbe1bf8;_0x365b94++,_0x36da8f++)_0x237358|=(_0x5c4757[_0x36da8f>>0x3]>>(_0x36da8f&0x7)&0x1)<<_0x365b94;if(_0x237358===_0x24a712){_0xbe1bf8=_0x170f8e+0x1,_0x23f258=_0x188a18+0x1,_0x26a355=-0x1;continue;}if(_0x237358===_0x188a18){_0x2cf26e=!![];break;}if(_0x237358>_0x23f258||_0x237358===_0x23f258&&_0x26a355<0x0||_0x26a355<0x0&&_0x237358>=_0x24a712)throw Error(_0x346573(0x178));const _0xc6d771=_0x237358===_0x23f258?_0x2bc66f[_0x26a355]+0x1:_0x2bc66f[_0x237358],_0x28895f=_0x237358===_0x23f258?_0x57108b[_0x26a355]:_0x57108b[_0x237358];if(!_0xc6d771||_0x28895f>=_0x42ebe1||(_0x30041f+=_0xc6d771)>_0x1367d3*_0x4ebfee)throw Error(_0x346573(0x16a));if(_0x26a355>=0x0&&_0x23f258<0x1000){_0x2bc66f[_0x23f258]=_0x2bc66f[_0x26a355]+0x1,_0x57108b[_0x23f258]=Math[_0x346573(0x163)](_0x57108b[_0x26a355],_0x28895f),_0x23f258++;if(_0x23f258===0x1<<_0xbe1bf8&&_0xbe1bf8<0xc)_0xbe1bf8++;}_0x26a355=_0x237358;}if(!_0x2cf26e||_0x30041f!==_0x1367d3*_0x4ebfee)throw Error('Truncated\x20or\x20incomplete\x20GIF\x20LZW\x20pixels.');}throw Error(_0x346573(0x16b));}function a141_0x13d7(){const _0x2c3274=['omggif','readUInt16LE','45HYtbzg','jpeg-js','digest','Image\x20must\x20be\x20non-empty\x20and\x20no\x20larger\x20than\x2010\x20MB.','917ssFDwk','GIF89a','Invalid\x20PNG\x20color/depth/interlace.','equals','frameInfo','sha256','concat','897988SdZZVq','3347630LoseeJ','Invalid\x20GIF\x20LZW\x20code\x20size.','20qSmmPy','22392cfSbZn','pngjs','807021xhIgwg','65386eMhUYy','decode','9guoqvo','IEND','sync','GIF\x20cumulative\x20frame\x20pixels\x20exceed\x2040\x20million.','width','height','Missing\x20PNG\x20data/end.','GIF\x20image\x20has\x20no\x20palette.','subarray','push','message','119269lYXPBC','max','Unsupported\x20image\x20format;\x20only\x20PNG,\x20JPEG\x20and\x20GIF\x20are\x20supported.\x20WebP\x20is\x20not\x20supported.','readUInt32BE','Truncated\x20GIF\x20data.','Invalid\x20GIF\x20block.','update','50004RtrrHR','Invalid\x20GIF\x20LZW\x20pixel\x20data.','Missing\x20GIF\x20trailer.','ascii','ceil','Invalid\x20PNG\x20header.','image/gif','read','toString','hex','from','isSafeInteger','image/png','numFrames','GIF\x20frame\x20exceeds\x20canvas.','Invalid\x20GIF\x20LZW\x20dictionary\x20reference.','length','includes','IDAT'];a141_0x13d7=function(){return _0x2c3274;};return a141_0x13d7();}export function validateImageBytes(_0x1a8d99){const _0x597a12=a141_0x4313;if(!_0x1a8d99[_0x597a12(0x179)]||_0x1a8d99[_0x597a12(0x179)]>0xa*0x400*0x400)throw Error(_0x597a12(0x181));let _0x4e1aca;try{if(_0x1a8d99[_0x597a12(0x15f)](0x0,0x8)[_0x597a12(0x185)](Buffer[_0x597a12(0x173)]([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]))){if(_0x1a8d99['length']<0x21||_0x1a8d99[_0x597a12(0x171)]('ascii',0xc,0x10)!=='IHDR')throw Error(_0x597a12(0x16e));dimensions(_0x1a8d99['readUInt32BE'](0x10),_0x1a8d99[_0x597a12(0x165)](0x14));const _0x483fc4=_0x1a8d99['readUInt32BE'](0x10),_0x29df1d=_0x1a8d99[_0x597a12(0x165)](0x14),_0x1e8e73=_0x1a8d99[0x18],_0x5b057a=_0x1a8d99[0x19],_0xfd7da7=_0x1a8d99[0x1c],_0x3d9224={0x0:0x1,0x2:0x3,0x3:0x1,0x4:0x2,0x6:0x4}[_0x5b057a];if(!_0x3d9224||![0x1,0x2,0x4,0x8,0x10][_0x597a12(0x17a)](_0x1e8e73)||_0xfd7da7>0x1)throw Error(_0x597a12(0x184));const _0x16896f=_0x1c82c0=>Math[_0x597a12(0x16d)](_0x1c82c0*_0x3d9224*_0x1e8e73/0x8)+0x1;let _0x1600cd=_0x16896f(_0x483fc4)*_0x29df1d;if(_0xfd7da7){_0x1600cd=0x0;for(const [_0xdebf33,_0x4c3a9c,_0x3eea5d,_0x355037]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 _0x3c2cd0=Math[_0x597a12(0x163)](0x0,Math[_0x597a12(0x16d)]((_0x483fc4-_0xdebf33)/_0x3eea5d)),_0x37c762=Math['max'](0x0,Math[_0x597a12(0x16d)]((_0x29df1d-_0x4c3a9c)/_0x355037));if(_0x3c2cd0&&_0x37c762)_0x1600cd+=_0x16896f(_0x3c2cd0)*_0x37c762;}}let _0x589a31=0x8,_0x4d3381=![];const _0x486e2f=[];while(_0x589a31<_0x1a8d99[_0x597a12(0x179)]){if(_0x589a31+0xc>_0x1a8d99['length'])throw Error('Truncated\x20PNG\x20chunk.');const _0x586264=_0x1a8d99[_0x597a12(0x165)](_0x589a31),_0x224e4f=_0x1a8d99[_0x597a12(0x171)](_0x597a12(0x16c),_0x589a31+0x4,_0x589a31+0x8);if(_0x224e4f==='acTL')throw Error('Animated\x20PNG\x20is\x20not\x20supported.');if(_0x589a31+_0x586264+0xc>_0x1a8d99[_0x597a12(0x179)])throw Error('Truncated\x20PNG\x20data.');if(_0x224e4f===_0x597a12(0x17b))_0x486e2f[_0x597a12(0x160)](_0x1a8d99[_0x597a12(0x15f)](_0x589a31+0x8,_0x589a31+0x8+_0x586264));_0x589a31+=_0x586264+0xc;if(_0x224e4f===_0x597a12(0x158)){if(_0x586264||_0x589a31!==_0x1a8d99[_0x597a12(0x179)])throw Error('Invalid\x20PNG\x20end.');_0x4d3381=!![];break;}}if(!_0x4d3381||!_0x486e2f[_0x597a12(0x179)])throw Error(_0x597a12(0x15d));if(inflateSync(Buffer[_0x597a12(0x14d)](_0x486e2f),{'maxOutputLength':_0x1600cd+0x1})[_0x597a12(0x179)]!==_0x1600cd)throw Error('Invalid\x20PNG\x20decoded\x20scanline\x20size.');const {PNG:_0x55368f}=require(_0x597a12(0x153)),_0x47eef5=_0x55368f[_0x597a12(0x159)][_0x597a12(0x170)](_0x1a8d99,{'checkCRC':!![]});dimensions(_0x47eef5[_0x597a12(0x15b)],_0x47eef5['height']),_0x4e1aca=_0x597a12(0x175);}else{if(_0x1a8d99[0x0]===0xff&&_0x1a8d99[0x1]===0xd8){if(_0x1a8d99['at'](-0x2)!==0xff||_0x1a8d99['at'](-0x1)!==0xd9)throw Error('Truncated\x20JPEG.');const _0x13ad15=require(_0x597a12(0x17f)),_0x1fa166=_0x13ad15[_0x597a12(0x156)](_0x1a8d99,{'useTArray':!![],'formatAsRGBA':![],'tolerantDecoding':![],'maxResolutionInMP':0x28,'maxMemoryUsageInMB':0x100});dimensions(_0x1fa166['width'],_0x1fa166[_0x597a12(0x15c)]),_0x4e1aca='image/jpeg';}else{if(['GIF87a',_0x597a12(0x183)]['includes'](_0x1a8d99['toString']('ascii',0x0,0x6))){if(_0x1a8d99[_0x597a12(0x179)]<0xe||_0x1a8d99['at'](-0x1)!==0x3b)throw Error('Truncated\x20GIF.');dimensions(_0x1a8d99[_0x597a12(0x17d)](0x6),_0x1a8d99[_0x597a12(0x17d)](0x8)),validateGif(_0x1a8d99);const {GifReader:_0x1be387}=require(_0x597a12(0x17c)),_0x57ed8d=new _0x1be387(_0x1a8d99);dimensions(_0x57ed8d[_0x597a12(0x15b)],_0x57ed8d['height']);const _0x223d63=_0x57ed8d[_0x597a12(0x176)]();if(!_0x223d63||_0x223d63>0x2710||_0x223d63*_0x57ed8d[_0x597a12(0x15b)]*_0x57ed8d['height']>MAX_PIXELS)throw Error(_0x597a12(0x15a));const _0x2743d9=new Uint8Array(_0x57ed8d['width']*_0x57ed8d[_0x597a12(0x15c)]*0x4);for(let _0x2d0f1f=0x0;_0x2d0f1f<_0x223d63;_0x2d0f1f++){const _0x4af414=_0x57ed8d[_0x597a12(0x186)](_0x2d0f1f);if(_0x4af414['x']+_0x4af414[_0x597a12(0x15b)]>_0x57ed8d[_0x597a12(0x15b)]||_0x4af414['y']+_0x4af414[_0x597a12(0x15c)]>_0x57ed8d[_0x597a12(0x15c)])throw Error(_0x597a12(0x177));_0x57ed8d['decodeAndBlitFrameRGBA'](_0x2d0f1f,_0x2743d9);}_0x4e1aca=_0x597a12(0x16f);}else throw Error(_0x597a12(0x164));}}}catch(_0x4bb69c){throw Error('Invalid\x20image:\x20'+_0x4bb69c[_0x597a12(0x161)]);}return{'contentHash':createHash(_0x597a12(0x187))[_0x597a12(0x168)](_0x1a8d99)[_0x597a12(0x180)](_0x597a12(0x172)),'type':_0x4e1aca,'size':_0x1a8d99[_0x597a12(0x179)],'bytes':_0x1a8d99};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a142_0x4636a1=a142_0x1eac;(function(_0x21c9af,_0xae08da){const _0x4e7691=a142_0x1eac,_0xc69491=_0x21c9af();while(!![]){try{const _0x24f129=parseInt(_0x4e7691(0x10d))/0x1*(parseInt(_0x4e7691(0xde))/0x2)+-parseInt(_0x4e7691(0xc9))/0x3*(parseInt(_0x4e7691(0x13d))/0x4)+parseInt(_0x4e7691(0x111))/0x5+-parseInt(_0x4e7691(0xce))/0x6+-parseInt(_0x4e7691(0xf4))/0x7+-parseInt(_0x4e7691(0x12c))/0x8+parseInt(_0x4e7691(0x106))/0x9;if(_0x24f129===_0xae08da)break;else _0xc69491['push'](_0xc69491['shift']());}catch(_0x570a4f){_0xc69491['push'](_0xc69491['shift']());}}}(a142_0x230e,0x507a6));function a142_0x1eac(_0x22d945,_0x26a95e){_0x22d945=_0x22d945-0xc5;const _0x230eb6=a142_0x230e();let _0x1eac14=_0x230eb6[_0x22d945];return _0x1eac14;}import a142_0x3deca5 from'node:path';import{SaxesParser}from'saxes';const SHEET=[a142_0x4636a1(0x15b),a142_0x4636a1(0x14b)],DRAWING=[a142_0x4636a1(0xf9),a142_0x4636a1(0x169)],DRAWING_MAIN=[a142_0x4636a1(0x104),a142_0x4636a1(0x16a)],OFFICE_RELS=[a142_0x4636a1(0x13b),a142_0x4636a1(0x142)],PACKAGE=[a142_0x4636a1(0x164)],RICH=['http://schemas.microsoft.com/office/spreadsheetml/2017/richdata'],RICH_RELS=['http://schemas.microsoft.com/office/spreadsheetml/2022/richvaluerel'],WPS=[a142_0x4636a1(0xef)],DEFAULT_NS=Object[a142_0x4636a1(0x12d)]([...[a142_0x4636a1(0x11b),a142_0x4636a1(0x112),a142_0x4636a1(0x118),a142_0x4636a1(0x136),'sheetData','row','c','f','v',a142_0x4636a1(0xfe),a142_0x4636a1(0x15f),a142_0x4636a1(0xf6),a142_0x4636a1(0xe3),a142_0x4636a1(0x16f),'futureMetadata',a142_0x4636a1(0x168),'bk','rc',a142_0x4636a1(0x120)]['map'](_0x484cac=>[_0x484cac,SHEET]),...[a142_0x4636a1(0x10e),a142_0x4636a1(0x129),a142_0x4636a1(0x148),a142_0x4636a1(0x133),a142_0x4636a1(0x143),'to','col','colOff',a142_0x4636a1(0xd5),a142_0x4636a1(0x127),a142_0x4636a1(0x11c),a142_0x4636a1(0x10c),'cNvPr',a142_0x4636a1(0x11f)][a142_0x4636a1(0x113)](_0x34dd57=>[_0x34dd57,DRAWING]),...['rvb',a142_0x4636a1(0x121),'rv',a142_0x4636a1(0x134),'s','k'][a142_0x4636a1(0x113)](_0x99a9d0=>[_0x99a9d0,RICH]),[a142_0x4636a1(0x132),DRAWING_MAIN],['richValueRels',RICH_RELS],['rel',RICH_RELS],['Relationships',PACKAGE],['Relationship',PACKAGE],[a142_0x4636a1(0xed),WPS],[a142_0x4636a1(0x11a),WPS]]),matches=(_0x404b14,_0x55f41b,_0x4c26bd=DEFAULT_NS[_0x55f41b]??[])=>_0x404b14['name']===_0x55f41b&&_0x4c26bd[a142_0x4636a1(0xe1)](_0x404b14[a142_0x4636a1(0x149)]),children=(_0x5422af,_0x4fb881,_0x121d2b=DEFAULT_NS[_0x4fb881])=>_0x5422af[a142_0x4636a1(0xc8)]['filter'](_0x262e1c=>matches(_0x262e1c,_0x4fb881,_0x121d2b)),chain=(_0x44d979,..._0x1da97d)=>_0x1da97d[a142_0x4636a1(0x119)]((_0x3e865c,_0x93ddab)=>_0x3e865c['flatMap'](_0x53e2e0=>children(_0x53e2e0,_0x93ddab)),[_0x44d979]),relationshipTypes=_0x534ca0=>{const _0x1a4425=a142_0x4636a1;if([_0x1a4425(0x14d),_0x1a4425(0x13f)][_0x1a4425(0xe1)](_0x534ca0))return[_0x1a4425(0x13e)+_0x534ca0];if(_0x534ca0===_0x1a4425(0xcc))return['http://schemas.microsoft.com/office/2022/10/relationships/richValueRel'];if(_0x534ca0===_0x1a4425(0x11a)||_0x534ca0===_0x1a4425(0xed))return[_0x1a4425(0x109)+_0x534ca0];return OFFICE_RELS[_0x1a4425(0x113)](_0x3dccb8=>_0x3dccb8+'/'+_0x534ca0);};function one(_0x4552e6,_0x5bd8ea){const _0x3282df=a142_0x4636a1;if(_0x4552e6[_0x3282df(0xcf)]!==0x1)throw Error('Missing\x20or\x20ambiguous\x20'+_0x5bd8ea+'.');return _0x4552e6[0x0];}function a142_0x230e(){const _0x516298=['Missing\x20rich\x20image\x20relationship.','Unsupported\x20rich\x20image\x20relation\x20namespace.','image','cellImages','flatMap','http://www.wps.cn/officeDocument/2017/etCustomData','r:embed','WPS\x20image\x20name','anchor\x20row','Image\x20anchor\x20spans\x20multiple\x20business\x20rows.','2301761VCvumt','Unsupported\x20WPS\x20cell\x20image\x20namespace.','metadata','value\x20metadata\x20index','anchor\x20end\x20offset','http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing','Unsupported\x20drawing\x20image.','isFinite','rich\x20value\x20binding','Ambiguous\x20XML\x20attribute.','sheetFormatPr','image\x20cell\x20row','Missing\x20XLSX\x20part:\x20','Missing\x20WPS\x20image\x20ID:\x20','basename','text','http://schemas.openxmlformats.org/drawingml/2006/main','anchor\x20start','11042658WfhzKE','rvb','message','http://www.wps.cn/officeDocument/2017/relationships/','future\x20metadata\x20index','write','nvPicPr','2087WqDZky','wsDr','attrs','../','2693925reEdrD','sheets','map','{3e2802c4-a4d2-4d8b-9148-e3be6c30e623}','startsWith','doctype','Unsupported\x20rich\x20value\x20namespace.','sheet','reduce','cellImage','workbook','pic','Mixed\x20formula\x20and\x20rich\x20image\x20metadata\x20is\x20unsupported.','anchor\x20end','blipFill','extLst','rvData','test','Invalid\x20image\x20start\x20offset\x20at\x20row\x20','type','filter','Unsupported\x20drawing\x20namespace.','ext','defaultRowHeight','oneCellAnchor','_rels','futureMetadata','4896408GqfKea','fromEntries','local','XLRICHVALUE','rich\x20image\x20relationship\x20index','Relationship','blip','absoluteAnchor','rvStructures','Image\x20coordinate\x20exceeds\x20worksheet\x20bounds.','worksheet','rich\x20metadata\x20record','push','Unsupported\x20workbook\x20namespace.','get','http://schemas.openxmlformats.org/officeDocument/2006/relationships','Duplicate\x20mapped\x20image\x20cell.','4uDrCls','http://schemas.microsoft.com/office/2017/06/relationships/','rdRichValueStructure','/xl/cellimages.xml','Unsupported\x20mapped\x20cell\x20metadata\x20type.','http://purl.oclc.org/ooxml/officeDocument/relationships','from','Unsupported\x20worksheet\x20namespace.','isSafeInteger','true','name','twoCellAnchor','uri','exec','http://purl.oclc.org/ooxml/spreadsheetml/main','\x20relationship\x20in\x20','rdRichValue','Missing\x20or\x20ambiguous\x20local\x20image\x20identifier.','metadata\x20types','posix','Unsupported\x20relationship\x20namespace\x20in\x20','shared','replace','row','rich\x20future\x20metadata','Missing\x20or\x20ambiguous\x20','rich\x20structure\x20index','pop','anchor\x20start\x20offset','toString','http://schemas.openxmlformats.org/spreadsheetml/2006/main','normalize','r:link','Workbook\x20exceeds\x2010000\x20image\x20occurrences.','drawing','has','join','WPS\x20image\x20blip','some','http://schemas.openxmlformats.org/package/2006/relationships','#VALUE!','Invalid\x20or\x20duplicate\x20WPS\x20image\x20ID.','Invalid\x20or\x20duplicate\x20relationship\x20in\x20','valueMetadata','http://purl.oclc.org/ooxml/drawingml/spreadsheetDrawing','http://purl.oclc.org/ooxml/drawingml/main','image\x20height','Missing\x20future\x20metadata\x20block.','set','Invalid\x20relationship\x20target:\x20','metadataType','col','Relationship\x20target\x20escapes\x20workbook:\x20','xl/','Unsupported\x20rich\x20structure\x20namespace.','children','1257885DsRVZq','Image\x20anchor\x20has\x20invalid\x20or\x20reversed\x20row\x20offsets.','image\x20formula','richValueRel','value','3235524FFwpuN','length','add','External\x20image\x20relationship\x20is\x20not\x20supported:\x20','xl/cellimages.xml','Image\x20XML\x20node\x20budget\x20exceeded.','image\x20row\x20height\x20coordinate','rowOff','closetag','Missing\x20value\x20metadata\x20block.','Internal','Missing\x20local\x20image\x20identifier\x20value.','Missing\x20or\x20ambiguous\x20WPS\x20cell\x20image\x20part.','hidden','opentag','sheetMetadata','444exvNpI','.rels','Value\x20metadata\x20index\x20must\x20be\x20one-based.','includes','r:id','metadataTypes','dirname','sheetData','values','metadata\x20type\x20index','image\x20extent','MAX_SAFE_INTEGER'];a142_0x230e=function(){return _0x516298;};return a142_0x230e();}function integer(_0x39f232,_0x2833c4,_0x57e7b6=0x186a0){const _0x5293f0=a142_0x4636a1;if(!_0x39f232||!/^\d+$/['test'](_0x39f232)||!Number[_0x5293f0(0x145)](Number(_0x39f232))||Number(_0x39f232)>_0x57e7b6)throw Error('Invalid\x20'+_0x2833c4+'.');return Number(_0x39f232);}export function resolveWorksheetImages(_0x1573ad,_0x3def9a,_0x2ea37d){const _0x2bed5c=a142_0x4636a1;let _0x1e04e0=0x0,_0x96d02b=0x0,_0x58668e=0x0;const _0x216ba2=new Map(),_0x5e4348=_0x52fb21=>{const _0x3c5062=a142_0x1eac;if(_0x216ba2[_0x3c5062(0x160)](_0x52fb21))return _0x216ba2[_0x3c5062(0x13a)](_0x52fb21);const _0x5f269f=_0x1573ad[_0x3c5062(0x13a)](_0x52fb21);if(!_0x5f269f)throw Error(_0x3c5062(0x100)+_0x52fb21+'.');const _0x56f8b6={'name':'','uri':'','attrs':{},'children':[],'text':''},_0x204384=[_0x56f8b6],_0x35dcd9=new SaxesParser({'xmlns':!![]}),_0x3cf7c7=()=>{if(++_0x96d02b>0x1e8480)throw Error('Image\x20XML\x20event\x20budget\x20exceeded.');};_0x35dcd9['on'](_0x3c5062(0x116),()=>{throw Error('XML\x20DTD/entities\x20are\x20not\x20supported.');}),_0x35dcd9['on'](_0x3c5062(0xdc),_0xfa33c3=>{const _0xa642e9=_0x3c5062;_0x3cf7c7();if(++_0x1e04e0>0x7a120||_0x204384['length']>0x40)throw Error(_0xa642e9(0xd3));const _0x29b058={};for(const _0x13a7c9 of Object[_0xa642e9(0xe6)](_0xfa33c3['attributes'])){const _0x513b82=OFFICE_RELS[_0xa642e9(0xe1)](_0x13a7c9['uri'])?'r:'+_0x13a7c9[_0xa642e9(0x12e)]:_0x13a7c9[_0xa642e9(0x149)]?'{'+_0x13a7c9['uri']+'}'+_0x13a7c9[_0xa642e9(0x12e)]:_0x13a7c9[_0xa642e9(0x12e)];if(_0x513b82 in _0x29b058)throw Error(_0xa642e9(0xfd));_0x29b058[_0x513b82]=_0x13a7c9[_0xa642e9(0xcd)];}const _0x7776cd={'name':_0xfa33c3[_0xa642e9(0x12e)],'uri':_0xfa33c3[_0xa642e9(0x149)],'attrs':_0x29b058,'children':[],'text':''};_0x204384['at'](-0x1)[_0xa642e9(0xc8)]['push'](_0x7776cd),_0x204384[_0xa642e9(0x138)](_0x7776cd);}),_0x35dcd9['on'](_0x3c5062(0x103),_0x271771=>{const _0x4da006=_0x3c5062;_0x3cf7c7();const _0x65fb13=_0x204384['at'](-0x1);_0x65fb13[_0x4da006(0x103)]+=_0x271771;if(_0x65fb13[_0x4da006(0x103)]['length']>0x10000)throw Error('Image\x20XML\x20text\x20exceeds\x2064\x20KB.');}),_0x35dcd9['on'](_0x3c5062(0xd6),()=>{const _0x210d64=_0x3c5062;_0x3cf7c7(),_0x204384[_0x210d64(0x158)]();}),_0x35dcd9['on']('error',_0x4910e2=>{throw _0x4910e2;}),_0x35dcd9[_0x3c5062(0x10b)](_0x5f269f[_0x3c5062(0x15a)]('utf8'))['close']();const _0x47267b=one(_0x56f8b6[_0x3c5062(0xc8)],_0x52fb21);return _0x216ba2[_0x3c5062(0x16d)](_0x52fb21,_0x47267b),_0x47267b;},_0xaf60bf=new Map(),_0x4898c1=_0x46bc5b=>{const _0x1d57bd=a142_0x1eac;if(_0xaf60bf['has'](_0x46bc5b))return _0xaf60bf[_0x1d57bd(0x13a)](_0x46bc5b);const _0x323c02=a142_0x3deca5[_0x1d57bd(0x150)][_0x1d57bd(0x161)](a142_0x3deca5[_0x1d57bd(0x150)][_0x1d57bd(0xe4)](_0x46bc5b),_0x1d57bd(0x12a),a142_0x3deca5[_0x1d57bd(0x150)][_0x1d57bd(0x102)](_0x46bc5b)+_0x1d57bd(0xdf));if(!_0x1573ad[_0x1d57bd(0x160)](_0x323c02))return[];const _0x302425=new Set(),_0x1174ba=_0x5e4348(_0x323c02);if(!matches(_0x1174ba,'Relationships'))throw Error(_0x1d57bd(0x151)+_0x323c02+'.');const _0x1c0e5e=children(_0x1174ba,_0x1d57bd(0x131))['map'](_0xc73a=>{const _0x435c57=_0x1d57bd,{Id:_0x45cbdc,Type:_0xba920d,Target:_0x1af5c7,TargetMode:_0x30923a}=_0xc73a[_0x435c57(0x10f)];if(!_0x45cbdc||_0x302425[_0x435c57(0x160)](_0x45cbdc)||!_0xba920d)throw Error(_0x435c57(0x167)+_0x323c02+'.');return _0x302425['add'](_0x45cbdc),{'id':_0x45cbdc,'type':_0xba920d,'target':_0x1af5c7??'','mode':_0x30923a};});return _0xaf60bf['set'](_0x46bc5b,_0x1c0e5e),_0x1c0e5e;},_0x42b891=(_0x1f5f01,_0x4ceab2)=>{const _0x5c10e3=a142_0x1eac,{target:_0x29a9b8,mode:_0x5a20e8}=_0x4ceab2;if(_0x5a20e8&&_0x5a20e8!==_0x5c10e3(0xd8))throw Error(_0x5c10e3(0xd1)+_0x1f5f01+'.');if(!_0x29a9b8||_0x29a9b8['includes']('\x5c')||/[?#%\x00-\x20]/[_0x5c10e3(0x122)](_0x29a9b8)||/^[a-z][a-z0-9+.-]*:/i[_0x5c10e3(0x122)](_0x29a9b8)||_0x29a9b8['startsWith']('//'))throw Error(_0x5c10e3(0x16e)+_0x1f5f01+'.');const _0x19a5f1=_0x29a9b8[_0x5c10e3(0x115)]('/')?_0x29a9b8['slice'](0x1):a142_0x3deca5['posix'][_0x5c10e3(0x15c)](a142_0x3deca5[_0x5c10e3(0x150)][_0x5c10e3(0x161)](a142_0x3deca5[_0x5c10e3(0x150)]['dirname'](_0x1f5f01),_0x29a9b8));if(_0x19a5f1[_0x5c10e3(0x115)](_0x5c10e3(0x110))||_0x19a5f1==='..'||!_0x19a5f1[_0x5c10e3(0x115)](_0x5c10e3(0xc6)))throw Error(_0x5c10e3(0xc5)+_0x1f5f01+'.');return _0x19a5f1;},_0x5328af=(_0x5dbb4e,_0x4b77fc,_0xccd678)=>{const _0x7bb4f5=a142_0x1eac,_0x1230ad=_0x4898c1(_0x5dbb4e)[_0x7bb4f5(0x125)](_0x29d556=>_0x29d556['id']===_0x4b77fc&&relationshipTypes(_0xccd678)[_0x7bb4f5(0xe1)](_0x29d556[_0x7bb4f5(0x124)]));if(_0x1230ad['length']!==0x1)throw Error(_0x7bb4f5(0x156)+_0xccd678+_0x7bb4f5(0x14c)+_0x5dbb4e+'.');return _0x42b891(_0x5dbb4e,_0x1230ad[0x0]);},_0x587748=(_0x425f8d,_0x10c249)=>{const _0xde147d=a142_0x1eac,_0x1fed7e=_0x4898c1(_0x425f8d)[_0xde147d(0x125)](_0x2f2104=>relationshipTypes(_0x10c249)[_0xde147d(0xe1)](_0x2f2104[_0xde147d(0x124)]));if(_0x1fed7e['length']!==0x1)throw Error(_0xde147d(0x156)+_0x10c249+_0xde147d(0x14c)+_0x425f8d+'.');return _0x42b891(_0x425f8d,_0x1fed7e[0x0]);},_0x45f622='xl/workbook.xml',_0x2a1f2d=_0x5e4348(_0x45f622);if(!matches(_0x2a1f2d,_0x2bed5c(0x11b)))throw Error(_0x2bed5c(0x139));const _0x4f3bb0=one(chain(_0x2a1f2d,_0x2bed5c(0x112),_0x2bed5c(0x118))[_0x2bed5c(0x125)](_0x1c862c=>_0x1c862c[_0x2bed5c(0x10f)][_0x2bed5c(0x147)]===_0x3def9a),_0x2bed5c(0x136)),_0x33e233=_0x5328af(_0x45f622,_0x4f3bb0[_0x2bed5c(0x10f)][_0x2bed5c(0xe2)],'worksheet'),_0x1fbfaf=_0x5e4348(_0x33e233);if(!matches(_0x1fbfaf,_0x2bed5c(0x136)))throw Error(_0x2bed5c(0x144));const _0x10d478=chain(_0x1fbfaf,_0x2bed5c(0xe5),'row'),_0x4d6679=new Map(),_0x302590=new Set(_0x10d478[_0x2bed5c(0x125)](_0x42c33b=>_0x42c33b[_0x2bed5c(0x10f)]['hidden']==='1'||_0x42c33b[_0x2bed5c(0x10f)][_0x2bed5c(0xdb)]===_0x2bed5c(0x146))[_0x2bed5c(0x113)](_0x1e66a0=>integer(_0x1e66a0['attrs']['r'],'hidden\x20image\x20row'))),_0x1a8442=_0x57cbc3=>{const _0x2afbc6=_0x2bed5c,_0x25df3f=_0x57cbc3===undefined?0xf:Number(_0x57cbc3);if(!Number[_0x2afbc6(0xfb)](_0x25df3f)||_0x25df3f<=0x0||_0x25df3f>409.5)throw Error('Invalid\x20worksheet\x20row\x20height\x20for\x20image\x20anchor.');return Math['round'](_0x25df3f*0x319c);},_0x3c4793=_0x1a8442(children(_0x1fbfaf,_0x2bed5c(0xfe))[0x0]?.[_0x2bed5c(0x10f)][_0x2bed5c(0x128)]);for(const _0x3fc661 of _0x10d478)if(_0x3fc661[_0x2bed5c(0x10f)]['ht']!==undefined)_0x4d6679['set'](integer(_0x3fc661['attrs']['r'],_0x2bed5c(0xd4)),_0x1a8442(_0x3fc661[_0x2bed5c(0x10f)]['ht']));const _0x5cb867=[],_0x45adf8=_0x1135c9=>{const _0x13f739=_0x2bed5c;if(!_0x2ea37d[_0x13f739(0x160)](_0x1135c9['col']))return;if(++_0x58668e>0x2710)throw Error(_0x13f739(0x15e));_0x5cb867[_0x13f739(0x138)](_0x302590[_0x13f739(0x160)](_0x1135c9[_0x13f739(0x154)])?{..._0x1135c9,'hiddenRow':!![]}:_0x1135c9);},_0x15c399=_0x317019=>({'row':integer(one(children(_0x317019,_0x2bed5c(0x154),DRAWING),'anchor\x20row')[_0x2bed5c(0x103)],_0x2bed5c(0xf2),0x1869f)+0x1,'col':integer(one(children(_0x317019,_0x2bed5c(0x170)),'anchor\x20column')[_0x2bed5c(0x103)],'anchor\x20column',0xff)+0x1});for(const _0x290546 of children(_0x1fbfaf,_0x2bed5c(0x15f))){const _0x458f60=_0x5328af(_0x33e233,_0x290546['attrs'][_0x2bed5c(0xe2)],'drawing'),_0x18930e=_0x5e4348(_0x458f60);if(!matches(_0x18930e,_0x2bed5c(0x10e)))throw Error(_0x2bed5c(0x126));for(const _0x8bba27 of _0x18930e['children']){if(![_0x2bed5c(0x129),_0x2bed5c(0x148),_0x2bed5c(0x133)][_0x2bed5c(0x163)](_0x12f52f=>matches(_0x8bba27,_0x12f52f)))continue;if(_0x8bba27['name']===_0x2bed5c(0x133))throw Error('Absolute\x20image\x20anchor\x20cannot\x20be\x20mapped\x20in\x20worksheet\x20'+_0x3def9a+'.');const _0x216977=_0x15c399(one(children(_0x8bba27,_0x2bed5c(0x143)),_0x2bed5c(0x105)));if(!_0x2ea37d[_0x2bed5c(0x160)](_0x216977[_0x2bed5c(0x170)]))continue;let _0x51210c;const _0x651221=one(children(_0x8bba27,_0x2bed5c(0x143)),_0x2bed5c(0x105)),_0x2dc186=integer(one(children(_0x651221,_0x2bed5c(0xd5)),_0x2bed5c(0x159))[_0x2bed5c(0x103)],'anchor\x20start\x20offset',Number['MAX_SAFE_INTEGER']),_0x40624c=_0x4d6679[_0x2bed5c(0x13a)](_0x216977[_0x2bed5c(0x154)])??_0x3c4793;if(_0x2dc186>=_0x40624c)throw Error(_0x2bed5c(0x123)+_0x216977[_0x2bed5c(0x154)]+'.');if(_0x8bba27[_0x2bed5c(0x147)]===_0x2bed5c(0x129)){const _0x18cd94=one(children(_0x8bba27,_0x2bed5c(0x127)),_0x2bed5c(0xe8)),_0x128efd=integer(_0x18cd94[_0x2bed5c(0x10f)]['cy'],_0x2bed5c(0x16b),Number[_0x2bed5c(0xe9)]);if(!_0x128efd||_0x2dc186+_0x128efd>_0x40624c)_0x51210c=_0x2bed5c(0xf3);}if(_0x8bba27['name']===_0x2bed5c(0x148)){const _0x52e457=one(children(_0x8bba27,'to'),_0x2bed5c(0x11e)),_0x5c1f75=_0x15c399(_0x52e457),_0x57ab10=integer(one(children(_0x52e457,_0x2bed5c(0xd5)),_0x2bed5c(0xf8))['text'],'anchor\x20end\x20offset',Number[_0x2bed5c(0xe9)]),_0x2d52da=_0x4d6679['get'](_0x5c1f75[_0x2bed5c(0x154)])??_0x3c4793;if(_0x57ab10>_0x2d52da||_0x5c1f75['row']===_0x216977[_0x2bed5c(0x154)]&&_0x57ab10<=_0x2dc186)_0x51210c=_0x2bed5c(0xca);if(_0x5c1f75[_0x2bed5c(0x154)]<_0x216977[_0x2bed5c(0x154)]||_0x5c1f75[_0x2bed5c(0x154)]>_0x216977[_0x2bed5c(0x154)]+0x1||_0x5c1f75[_0x2bed5c(0x154)]===_0x216977[_0x2bed5c(0x154)]+0x1&&_0x57ab10!==0x0)_0x51210c=_0x2bed5c(0xf3);}const _0x20a468=chain(_0x8bba27,'pic','blipFill',_0x2bed5c(0x132));for(const _0x461ba2 of _0x20a468){if(_0x461ba2['attrs'][_0x2bed5c(0x15d)])throw Error('External\x20image\x20links\x20are\x20not\x20supported.');_0x45adf8({..._0x216977,'media':[_0x5328af(_0x458f60,_0x461ba2['attrs']['r:embed'],_0x2bed5c(0xec))],..._0x51210c?{'error':_0x51210c}:{}});}if(!_0x20a468[_0x2bed5c(0xcf)])_0x45adf8({..._0x216977,'media':[],'error':_0x2bed5c(0xfa)});}}const _0x17c9b2=_0x13530a=>{const _0x3b0915=_0x2bed5c,_0x2b3c8d=_0x5e4348(_0x587748(_0x45f622,_0x3b0915(0xdd)));if(!matches(_0x2b3c8d,_0x3b0915(0xf6)))throw Error('Unsupported\x20metadata\x20namespace.');const _0x3380ac=integer(_0x13530a[_0x3b0915(0x10f)]['vm'],_0x3b0915(0xf7));if(!_0x3380ac)throw Error(_0x3b0915(0xe0));const _0x193334=children(one(children(_0x2b3c8d,_0x3b0915(0x168)),_0x3b0915(0x168)),'bk')[_0x3380ac-0x1];if(!_0x193334)throw Error(_0x3b0915(0xd7));const _0x442cd9=one(children(_0x193334,'rc'),_0x3b0915(0x137)),_0x451d93=integer(_0x442cd9[_0x3b0915(0x10f)]['t'],_0x3b0915(0xe7)),_0x3a1cf0=children(one(children(_0x2b3c8d,_0x3b0915(0xe3)),_0x3b0915(0x14f)),_0x3b0915(0x16f))[_0x451d93-0x1];if(!_0x451d93||_0x3a1cf0?.[_0x3b0915(0x10f)][_0x3b0915(0x147)]!=='XLRICHVALUE')throw Error(_0x3b0915(0x141));const _0x58e605=one(children(_0x2b3c8d,_0x3b0915(0x12b))[_0x3b0915(0x125)](_0x253893=>_0x253893['attrs']['name']===_0x3b0915(0x12f)),_0x3b0915(0x155)),_0x459a9c=children(_0x58e605,'bk')[integer(_0x442cd9[_0x3b0915(0x10f)]['v'],_0x3b0915(0x10a))];if(!_0x459a9c)throw Error(_0x3b0915(0x16c));const _0x21628a=chain(_0x459a9c,_0x3b0915(0x120))[_0x3b0915(0xee)](_0x11d70a=>children(_0x11d70a,_0x3b0915(0x127),SHEET))[_0x3b0915(0x125)](_0x5d683d=>_0x5d683d[_0x3b0915(0x10f)]['uri']?.['toLowerCase']()===_0x3b0915(0x114)),_0x4d7ac3=integer(one(_0x21628a['flatMap'](_0xf4346=>children(_0xf4346,_0x3b0915(0x107))),_0x3b0915(0xfc))[_0x3b0915(0x10f)]['i'],'rich\x20value\x20index'),_0xa7849f=_0x5e4348(_0x587748(_0x45f622,'rdRichValue'));if(!matches(_0xa7849f,_0x3b0915(0x121)))throw Error(_0x3b0915(0x117));const _0x2236be=children(_0xa7849f,'rv')[_0x4d7ac3];if(!_0x2236be)throw Error('Missing\x20rich\x20value.');const _0x41ee0c=_0x5e4348(_0x587748(_0x45f622,_0x3b0915(0x13f)));if(!matches(_0x41ee0c,_0x3b0915(0x134)))throw Error(_0x3b0915(0xc7));const _0x484b5b=children(_0x41ee0c,'s')[integer(_0x2236be['attrs']['s'],_0x3b0915(0x157))];if(!_0x484b5b||_0x484b5b['attrs']['t']!=='_localImage')throw Error('Unsupported\x20mapped\x20rich\x20value\x20structure.');const _0x56f9b2=children(_0x484b5b,'k'),_0x3a3a71=_0x56f9b2[_0x3b0915(0x113)]((_0x3b0de7,_0x5d8ceb)=>_0x3b0de7['attrs']['n']==='_rvRel:LocalImageIdentifier'?_0x5d8ceb:-0x1)[_0x3b0915(0x125)](_0x183df0=>_0x183df0>=0x0);if(_0x3a3a71[_0x3b0915(0xcf)]!==0x1)throw Error(_0x3b0915(0x14e));const _0x3caa18=children(_0x2236be,'v',RICH)[_0x3a3a71[0x0]];if(!_0x3caa18)throw Error(_0x3b0915(0xd9));const _0x303733=_0x587748(_0x45f622,_0x3b0915(0xcc)),_0x4c6754=_0x5e4348(_0x303733);if(!matches(_0x4c6754,'richValueRels'))throw Error(_0x3b0915(0xeb));const _0xba96e6=children(_0x4c6754,'rel')[integer(_0x3caa18[_0x3b0915(0x103)],_0x3b0915(0x130))];if(!_0xba96e6)throw Error(_0x3b0915(0xea));return _0x5328af(_0x303733,_0xba96e6[_0x3b0915(0x10f)][_0x3b0915(0xe2)],'image');};let _0x82e578;const _0x2ec0ad=_0x12081e=>{const _0xf5d461=_0x2bed5c;if(!_0x82e578){_0x82e578=new Map();const _0xe4c2fc=_0x4898c1(_0x45f622)[_0xf5d461(0x125)](_0x441185=>[...relationshipTypes(_0xf5d461(0x11a)),...relationshipTypes('cellImages')][_0xf5d461(0xe1)](_0x441185['type']));if(!_0xe4c2fc[_0xf5d461(0xcf)]&&_0x1573ad['has'](_0xf5d461(0xd2)))_0xe4c2fc[_0xf5d461(0x138)]({'id':'','type':'','target':_0xf5d461(0x140)});if(_0xe4c2fc[_0xf5d461(0xcf)]!==0x1)throw Error(_0xf5d461(0xda));const _0x1b446d=_0x42b891(_0x45f622,_0xe4c2fc[0x0]),_0x411f15=_0x5e4348(_0x1b446d);if(!matches(_0x411f15,'cellImages'))throw Error(_0xf5d461(0xf5));for(const _0x14dec2 of children(_0x411f15,_0xf5d461(0x11a))){const _0x36371d=one(chain(_0x14dec2,_0xf5d461(0x11c),_0xf5d461(0x10c),'cNvPr'),_0xf5d461(0xf1))['attrs'][_0xf5d461(0x147)];if(!_0x36371d||_0x82e578[_0xf5d461(0x160)](_0x36371d))throw Error(_0xf5d461(0x166));const _0x28637b=one(chain(_0x14dec2,_0xf5d461(0x11c),'blipFill','blip'),_0xf5d461(0x162));if(_0x28637b[_0xf5d461(0x10f)][_0xf5d461(0x15d)])throw Error('External\x20WPS\x20image\x20links\x20are\x20not\x20supported.');_0x82e578[_0xf5d461(0x16d)](_0x36371d,_0x5328af(_0x1b446d,_0x28637b[_0xf5d461(0x10f)][_0xf5d461(0xf0)],'image'));}}const _0x15c641=_0x82e578[_0xf5d461(0x13a)](_0x12081e);if(!_0x15c641)throw Error(_0xf5d461(0x101)+_0x12081e+'.');return _0x15c641;},_0x447677=new Set();for(const _0x7df624 of _0x10d478[_0x2bed5c(0xee)](_0x22d821=>children(_0x22d821,'c'))){const _0x1dbc54=/^([A-Z]+)([1-9]\d*)$/[_0x2bed5c(0x14a)](_0x7df624[_0x2bed5c(0x10f)]['r']??'');if(!_0x1dbc54)continue;let _0x46febf=0x0;for(const _0x4355c4 of _0x1dbc54[0x1])_0x46febf=_0x46febf*0x1a+_0x4355c4['charCodeAt'](0x0)-0x40;if(!_0x2ea37d[_0x2bed5c(0x160)](_0x46febf))continue;const _0x23a115=integer(_0x1dbc54[0x2],_0x2bed5c(0xff));if(_0x447677['has'](_0x7df624['attrs']['r']))throw Error(_0x2bed5c(0x13c));_0x447677[_0x2bed5c(0xd0)](_0x7df624[_0x2bed5c(0x10f)]['r']);const _0x5f2b69=children(_0x7df624,'f');if(!_0x7df624[_0x2bed5c(0x10f)]['vm']&&!_0x5f2b69[_0x2bed5c(0xcf)])continue;try{if(_0x23a115<0x1||_0x46febf>0x100)throw Error(_0x2bed5c(0x135));let _0x35b973;if(_0x7df624[_0x2bed5c(0x10f)]['vm']){if(_0x5f2b69['length'])throw Error(_0x2bed5c(0x11d));if(_0x7df624[_0x2bed5c(0x10f)]['t']!=='e'||children(_0x7df624,'v')[_0x2bed5c(0xcf)]!==0x1||children(_0x7df624,'v')[0x0]['text']!==_0x2bed5c(0x165))throw Error('Rich\x20IMAGE\x20cell\x20contains\x20unexpected\x20scalar\x20or\x20mixed\x20content.');_0x35b973=_0x17c9b2(_0x7df624);}else{const _0x253157=one(_0x5f2b69,_0x2bed5c(0xcb));if(_0x253157[_0x2bed5c(0x10f)]['t']===_0x2bed5c(0x152)||_0x253157[_0x2bed5c(0x10f)]['si'])throw Error('Shared\x20image\x20formulas\x20are\x20not\x20supported.');const _0x38ef79=/^\s*=?\s*@?(?:_xlfn\.)?DISPIMG\(\s*"((?:[^"]|"")+)"\s*(?:,\s*[01]\s*)?\)\s*$/i[_0x2bed5c(0x14a)](_0x253157[_0x2bed5c(0x103)]);if(!_0x38ef79)throw Error('Unsupported\x20image\x20formula;\x20expected\x20a\x20standalone\x20DISPIMG\x20literal.');_0x35b973=_0x2ec0ad(_0x38ef79[0x1][_0x2bed5c(0x153)](/""/g,'\x22'));}_0x45adf8({'row':_0x23a115,'col':_0x46febf,'media':[_0x35b973],'nativeCell':!![]});}catch(_0x5c8dca){_0x45adf8({'row':_0x23a115,'col':_0x46febf,'media':[],'nativeCell':!![],'error':_0x5c8dca[_0x2bed5c(0x108)]});}}return _0x5cb867;}
|
|
1
|
+
const a142_0x578ede=a142_0x5592;(function(_0x2b32a3,_0x36b973){const _0x25d38b=a142_0x5592,_0x235fe6=_0x2b32a3();while(!![]){try{const _0x134c39=-parseInt(_0x25d38b(0xe5))/0x1*(-parseInt(_0x25d38b(0xdd))/0x2)+-parseInt(_0x25d38b(0x116))/0x3+-parseInt(_0x25d38b(0x10d))/0x4*(-parseInt(_0x25d38b(0x14d))/0x5)+-parseInt(_0x25d38b(0x151))/0x6*(parseInt(_0x25d38b(0x155))/0x7)+-parseInt(_0x25d38b(0xf5))/0x8*(-parseInt(_0x25d38b(0xfa))/0x9)+parseInt(_0x25d38b(0x12b))/0xa*(parseInt(_0x25d38b(0xfe))/0xb)+parseInt(_0x25d38b(0xd4))/0xc*(-parseInt(_0x25d38b(0x14e))/0xd);if(_0x134c39===_0x36b973)break;else _0x235fe6['push'](_0x235fe6['shift']());}catch(_0x19330e){_0x235fe6['push'](_0x235fe6['shift']());}}}(a142_0x4007,0x92705));import a142_0x2548b7 from'node:path';function a142_0x5592(_0x33c7ab,_0x56f524){_0x33c7ab=_0x33c7ab-0xb7;const _0x400700=a142_0x4007();let _0x559277=_0x400700[_0x33c7ab];return _0x559277;}import{SaxesParser}from'saxes';const SHEET=[a142_0x578ede(0xbf),a142_0x578ede(0x15e)],DRAWING=['http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing',a142_0x578ede(0x13c)],DRAWING_MAIN=[a142_0x578ede(0xf2),a142_0x578ede(0x15a)],OFFICE_RELS=[a142_0x578ede(0xd1),a142_0x578ede(0xce)],PACKAGE=[a142_0x578ede(0x105)],RICH=['http://schemas.microsoft.com/office/spreadsheetml/2017/richdata'],RICH_RELS=['http://schemas.microsoft.com/office/spreadsheetml/2022/richvaluerel'],WPS=[a142_0x578ede(0x112)],DEFAULT_NS=Object[a142_0x578ede(0x169)]([...[a142_0x578ede(0x10f),a142_0x578ede(0x15d),'sheet',a142_0x578ede(0xca),'sheetData',a142_0x578ede(0x12c),'c','f','v',a142_0x578ede(0x103),a142_0x578ede(0x141),a142_0x578ede(0xc0),a142_0x578ede(0x120),a142_0x578ede(0x14a),a142_0x578ede(0xf8),a142_0x578ede(0xf9),'bk','rc',a142_0x578ede(0x11b)][a142_0x578ede(0x11a)](_0x59e0c0=>[_0x59e0c0,SHEET]),...[a142_0x578ede(0x140),a142_0x578ede(0x123),a142_0x578ede(0x115),'absoluteAnchor','from','to','col','colOff',a142_0x578ede(0xe7),'ext',a142_0x578ede(0x142),a142_0x578ede(0xeb),a142_0x578ede(0xcb),'blipFill'][a142_0x578ede(0x11a)](_0x1d3911=>[_0x1d3911,DRAWING]),...[a142_0x578ede(0x125),a142_0x578ede(0x128),'rv',a142_0x578ede(0x12f),'s','k'][a142_0x578ede(0x11a)](_0x31751f=>[_0x31751f,RICH]),['blip',DRAWING_MAIN],[a142_0x578ede(0x164),RICH_RELS],[a142_0x578ede(0xd8),RICH_RELS],[a142_0x578ede(0x16a),PACKAGE],[a142_0x578ede(0xea),PACKAGE],[a142_0x578ede(0xb7),WPS],[a142_0x578ede(0x100),WPS]]),matches=(_0x2e62c1,_0xa870ba,_0x5b7af8=DEFAULT_NS[_0xa870ba]??[])=>_0x2e62c1[a142_0x578ede(0x15b)]===_0xa870ba&&_0x5b7af8[a142_0x578ede(0xfb)](_0x2e62c1[a142_0x578ede(0x13f)]),children=(_0x5e4101,_0x12f632,_0x3f8e2f=DEFAULT_NS[_0x12f632])=>_0x5e4101[a142_0x578ede(0xd6)]['filter'](_0x267546=>matches(_0x267546,_0x12f632,_0x3f8e2f)),chain=(_0x89ba4c,..._0x3eb8af)=>_0x3eb8af[a142_0x578ede(0xf7)]((_0x26e782,_0x35f75d)=>_0x26e782[a142_0x578ede(0x138)](_0x853de5=>children(_0x853de5,_0x35f75d)),[_0x89ba4c]),relationshipTypes=_0x23b326=>{const _0x4dc6c4=a142_0x578ede;if(['rdRichValue','rdRichValueStructure']['includes'](_0x23b326))return[_0x4dc6c4(0xbc)+_0x23b326];if(_0x23b326===_0x4dc6c4(0xe0))return[_0x4dc6c4(0xf4)];if(_0x23b326===_0x4dc6c4(0x100)||_0x23b326===_0x4dc6c4(0xb7))return[_0x4dc6c4(0x12d)+_0x23b326];return OFFICE_RELS['map'](_0x49471f=>_0x49471f+'/'+_0x23b326);};function one(_0x2d5922,_0xe27c03){const _0x2899a4=a142_0x578ede;if(_0x2d5922[_0x2899a4(0xcd)]!==0x1)throw Error(_0x2899a4(0xec)+_0xe27c03+'.');return _0x2d5922[0x0];}function integer(_0x334abc,_0xe90ddf,_0x4f7175=0x186a0){const _0x135f19=a142_0x578ede;if(!_0x334abc||!/^\d+$/[_0x135f19(0xe6)](_0x334abc)||!Number[_0x135f19(0xed)](Number(_0x334abc))||Number(_0x334abc)>_0x4f7175)throw Error(_0x135f19(0x13d)+_0xe90ddf+'.');return Number(_0x334abc);}function a142_0x4007(){const _0x2c9c72=['includes','doctype','sheet','1491523DvmUTP','Invalid\x20relationship\x20target:\x20','cellImage','defaultRowHeight','slice','sheetFormatPr','startsWith','http://schemas.openxmlformats.org/package/2006/relationships','shared','Ambiguous\x20XML\x20attribute.','anchor\x20row','future\x20metadata\x20index','Shared\x20image\x20formulas\x20are\x20not\x20supported.','Workbook\x20exceeds\x2010000\x20image\x20occurrences.','exec','4PzqILB','rich\x20structure\x20index','workbook','Invalid\x20worksheet\x20row\x20height\x20for\x20image\x20anchor.','r:link','http://www.wps.cn/officeDocument/2017/etCustomData','r:id','Missing\x20rich\x20value.','twoCellAnchor','642477Fgezsj','error','Relationship\x20target\x20escapes\x20workbook:\x20','WPS\x20image\x20blip','map','extLst','anchor\x20start','WPS\x20image\x20name','attrs','Internal','metadataTypes','replace','External\x20image\x20links\x20are\x20not\x20supported.','oneCellAnchor','xl/','rvb','text','blipFill','rvData','normalize','true','10toiANy','row','http://www.wps.cn/officeDocument/2017/relationships/','Image\x20coordinate\x20exceeds\x20worksheet\x20bounds.','rvStructures','Missing\x20value\x20metadata\x20block.','xl/workbook.xml','anchor\x20start\x20offset','r:embed','Rich\x20IMAGE\x20cell\x20contains\x20unexpected\x20scalar\x20or\x20mixed\x20content.','col','\x20relationship\x20in\x20','Unsupported\x20image\x20formula;\x20expected\x20a\x20standalone\x20DISPIMG\x20literal.','flatMap','push','type','Unsupported\x20WPS\x20cell\x20image\x20namespace.','http://purl.oclc.org/ooxml/drawingml/spreadsheetDrawing','Invalid\x20','utf8','uri','wsDr','drawing','pic','Unsupported\x20relationship\x20namespace\x20in\x20','rich\x20value\x20binding','rdRichValueStructure','Image\x20XML\x20event\x20budget\x20exceeded.','Image\x20XML\x20node\x20budget\x20exceeded.','write','image','metadataType','rich\x20image\x20relationship\x20index','Unsupported\x20worksheet\x20namespace.','1334645DPtlDR','78IZgfVe','Unsupported\x20drawing\x20namespace.','Missing\x20future\x20metadata\x20block.','18ZgAUTh','value','get','sheetData','1020145iztBsK','add','Missing\x20or\x20ambiguous\x20local\x20image\x20identifier.','image\x20formula','image\x20extent','http://purl.oclc.org/ooxml/drawingml/main','name','_rvRel:LocalImageIdentifier','sheets','http://purl.oclc.org/ooxml/spreadsheetml/main','closetag','attributes','filter','Invalid\x20or\x20duplicate\x20WPS\x20image\x20ID.','Missing\x20XLSX\x20part:\x20','richValueRels','image\x20row\x20height\x20coordinate','External\x20image\x20relationship\x20is\x20not\x20supported:\x20','posix','External\x20WPS\x20image\x20links\x20are\x20not\x20supported.','fromEntries','Relationships','XLRICHVALUE','opentag','cellImages','Value\x20metadata\x20index\x20must\x20be\x20one-based.','image\x20cell\x20row','local','Invalid\x20image\x20start\x20offset\x20at\x20row\x20','http://schemas.microsoft.com/office/2017/06/relationships/','metadata\x20type\x20index','rich\x20metadata\x20record','http://schemas.openxmlformats.org/spreadsheetml/2006/main','metadata','from','/xl/cellimages.xml','anchor\x20end','ext','image\x20height','toString','_rels','Unsupported\x20drawing\x20image.','dirname','worksheet','cNvPr','{3e2802c4-a4d2-4d8b-9148-e3be6c30e623}','length','http://purl.oclc.org/ooxml/officeDocument/relationships','Image\x20anchor\x20has\x20invalid\x20or\x20reversed\x20row\x20offsets.','hidden','http://schemas.openxmlformats.org/officeDocument/2006/relationships','set','Invalid\x20or\x20duplicate\x20relationship\x20in\x20','89940HtrxtC','values','children','charCodeAt','rel','XML\x20DTD/entities\x20are\x20not\x20supported.','Unsupported\x20workbook\x20namespace.','some','anchor\x20column','1102VEnMvG','has','blip','richValueRel','anchor\x20end\x20offset','Unsupported\x20mapped\x20rich\x20value\x20structure.','MAX_SAFE_INTEGER','Image\x20anchor\x20spans\x20multiple\x20business\x20rows.','1347WrAxcY','test','rowOff','rich\x20future\x20metadata','join','Relationship','nvPicPr','Missing\x20or\x20ambiguous\x20','isSafeInteger','_localImage','rdRichValue','Unsupported\x20metadata\x20namespace.','sheetMetadata','http://schemas.openxmlformats.org/drawingml/2006/main','Unsupported\x20rich\x20structure\x20namespace.','http://schemas.microsoft.com/office/2022/10/relationships/richValueRel','201904ftRUav','absoluteAnchor','reduce','futureMetadata','valueMetadata','54lEcBPn'];a142_0x4007=function(){return _0x2c9c72;};return a142_0x4007();}export function resolveWorksheetImages(_0x74c2f5,_0xb97568,_0x3a5078){const _0x3aeff0=a142_0x578ede;let _0x1bee53=0x0,_0x4c7fac=0x0,_0xc261ed=0x0;const _0x38257b=new Map(),_0x1ab21b=_0x10915a=>{const _0x1cf833=a142_0x5592;if(_0x38257b[_0x1cf833(0xde)](_0x10915a))return _0x38257b[_0x1cf833(0x153)](_0x10915a);const _0x2c4320=_0x74c2f5[_0x1cf833(0x153)](_0x10915a);if(!_0x2c4320)throw Error(_0x1cf833(0x163)+_0x10915a+'.');const _0x58ca38={'name':'','uri':'','attrs':{},'children':[],'text':''},_0x589b3c=[_0x58ca38],_0x1cc3d2=new SaxesParser({'xmlns':!![]}),_0x49e552=()=>{const _0x47b1cd=_0x1cf833;if(++_0x4c7fac>0x1e8480)throw Error(_0x47b1cd(0x146));};_0x1cc3d2['on'](_0x1cf833(0xfc),()=>{const _0x2d7b3a=_0x1cf833;throw Error(_0x2d7b3a(0xd9));}),_0x1cc3d2['on'](_0x1cf833(0x16c),_0x1f9c43=>{const _0x986750=_0x1cf833;_0x49e552();if(++_0x1bee53>0x7a120||_0x589b3c[_0x986750(0xcd)]>0x40)throw Error(_0x986750(0x147));const _0x382fb4={};for(const _0x67704c of Object[_0x986750(0xd5)](_0x1f9c43[_0x986750(0x160)])){const _0x4fa368=OFFICE_RELS['includes'](_0x67704c[_0x986750(0x13f)])?'r:'+_0x67704c['local']:_0x67704c[_0x986750(0x13f)]?'{'+_0x67704c[_0x986750(0x13f)]+'}'+_0x67704c[_0x986750(0xba)]:_0x67704c['local'];if(_0x4fa368 in _0x382fb4)throw Error(_0x986750(0x107));_0x382fb4[_0x4fa368]=_0x67704c[_0x986750(0x152)];}const _0x2c2ac0={'name':_0x1f9c43[_0x986750(0xba)],'uri':_0x1f9c43[_0x986750(0x13f)],'attrs':_0x382fb4,'children':[],'text':''};_0x589b3c['at'](-0x1)[_0x986750(0xd6)]['push'](_0x2c2ac0),_0x589b3c['push'](_0x2c2ac0);}),_0x1cc3d2['on'](_0x1cf833(0x126),_0x2c6c9d=>{const _0x1ddddd=_0x1cf833;_0x49e552();const _0xea58ef=_0x589b3c['at'](-0x1);_0xea58ef[_0x1ddddd(0x126)]+=_0x2c6c9d;if(_0xea58ef[_0x1ddddd(0x126)][_0x1ddddd(0xcd)]>0x10000)throw Error('Image\x20XML\x20text\x20exceeds\x2064\x20KB.');}),_0x1cc3d2['on'](_0x1cf833(0x15f),()=>{_0x49e552(),_0x589b3c['pop']();}),_0x1cc3d2['on'](_0x1cf833(0x117),_0xf4b890=>{throw _0xf4b890;}),_0x1cc3d2[_0x1cf833(0x148)](_0x2c4320[_0x1cf833(0xc6)](_0x1cf833(0x13e)))['close']();const _0x46c6a3=one(_0x58ca38['children'],_0x10915a);return _0x38257b[_0x1cf833(0xd2)](_0x10915a,_0x46c6a3),_0x46c6a3;},_0x184b98=new Map(),_0x552e09=_0xf5c39d=>{const _0x65b2ca=a142_0x5592;if(_0x184b98[_0x65b2ca(0xde)](_0xf5c39d))return _0x184b98[_0x65b2ca(0x153)](_0xf5c39d);const _0x1ce1da=a142_0x2548b7['posix'][_0x65b2ca(0xe9)](a142_0x2548b7[_0x65b2ca(0x167)][_0x65b2ca(0xc9)](_0xf5c39d),_0x65b2ca(0xc7),a142_0x2548b7['posix']['basename'](_0xf5c39d)+'.rels');if(!_0x74c2f5[_0x65b2ca(0xde)](_0x1ce1da))return[];const _0x50197e=new Set(),_0xf124b9=_0x1ab21b(_0x1ce1da);if(!matches(_0xf124b9,_0x65b2ca(0x16a)))throw Error(_0x65b2ca(0x143)+_0x1ce1da+'.');const _0x417246=children(_0xf124b9,_0x65b2ca(0xea))[_0x65b2ca(0x11a)](_0x351149=>{const _0x4a9e10=_0x65b2ca,{Id:_0x3b52a,Type:_0x30aeb2,Target:_0x1b3156,TargetMode:_0x1c0d3d}=_0x351149[_0x4a9e10(0x11e)];if(!_0x3b52a||_0x50197e[_0x4a9e10(0xde)](_0x3b52a)||!_0x30aeb2)throw Error(_0x4a9e10(0xd3)+_0x1ce1da+'.');return _0x50197e[_0x4a9e10(0x156)](_0x3b52a),{'id':_0x3b52a,'type':_0x30aeb2,'target':_0x1b3156??'','mode':_0x1c0d3d};});return _0x184b98[_0x65b2ca(0xd2)](_0xf5c39d,_0x417246),_0x417246;},_0x3ec556=(_0x41c90f,_0xd1585d)=>{const _0x55d96a=a142_0x5592,{target:_0x6d0543,mode:_0x4e6d55}=_0xd1585d;if(_0x4e6d55&&_0x4e6d55!==_0x55d96a(0x11f))throw Error(_0x55d96a(0x166)+_0x41c90f+'.');if(!_0x6d0543||_0x6d0543['includes']('\x5c')||/[?#%\x00-\x20]/['test'](_0x6d0543)||/^[a-z][a-z0-9+.-]*:/i[_0x55d96a(0xe6)](_0x6d0543)||_0x6d0543[_0x55d96a(0x104)]('//'))throw Error(_0x55d96a(0xff)+_0x41c90f+'.');const _0x1ad24d=_0x6d0543[_0x55d96a(0x104)]('/')?_0x6d0543[_0x55d96a(0x102)](0x1):a142_0x2548b7[_0x55d96a(0x167)][_0x55d96a(0x129)](a142_0x2548b7['posix']['join'](a142_0x2548b7[_0x55d96a(0x167)]['dirname'](_0x41c90f),_0x6d0543));if(_0x1ad24d[_0x55d96a(0x104)]('../')||_0x1ad24d==='..'||!_0x1ad24d['startsWith'](_0x55d96a(0x124)))throw Error(_0x55d96a(0x118)+_0x41c90f+'.');return _0x1ad24d;},_0x3f04aa=(_0x12f8d0,_0x320dc3,_0x5c831d)=>{const _0x551786=a142_0x5592,_0x52b2cb=_0x552e09(_0x12f8d0)[_0x551786(0x161)](_0x27d17d=>_0x27d17d['id']===_0x320dc3&&relationshipTypes(_0x5c831d)['includes'](_0x27d17d[_0x551786(0x13a)]));if(_0x52b2cb['length']!==0x1)throw Error(_0x551786(0xec)+_0x5c831d+_0x551786(0x136)+_0x12f8d0+'.');return _0x3ec556(_0x12f8d0,_0x52b2cb[0x0]);},_0x3ee2c1=(_0x15a62b,_0x510380)=>{const _0x37c091=a142_0x5592,_0x76f5de=_0x552e09(_0x15a62b)['filter'](_0xc3014=>relationshipTypes(_0x510380)['includes'](_0xc3014['type']));if(_0x76f5de['length']!==0x1)throw Error(_0x37c091(0xec)+_0x510380+'\x20relationship\x20in\x20'+_0x15a62b+'.');return _0x3ec556(_0x15a62b,_0x76f5de[0x0]);},_0x4af62e=_0x3aeff0(0x131),_0x55def3=_0x1ab21b(_0x4af62e);if(!matches(_0x55def3,'workbook'))throw Error(_0x3aeff0(0xda));const _0x124da1=one(chain(_0x55def3,_0x3aeff0(0x15d),_0x3aeff0(0xfd))[_0x3aeff0(0x161)](_0x263249=>_0x263249[_0x3aeff0(0x11e)]['name']===_0xb97568),_0x3aeff0(0xca)),_0x4469e5=_0x3f04aa(_0x4af62e,_0x124da1[_0x3aeff0(0x11e)][_0x3aeff0(0x113)],_0x3aeff0(0xca)),_0x27739a=_0x1ab21b(_0x4469e5);if(!matches(_0x27739a,_0x3aeff0(0xca)))throw Error(_0x3aeff0(0x14c));const _0x22c99f=chain(_0x27739a,_0x3aeff0(0x154),'row'),_0x2d3a48=new Map(),_0x1959af=new Set(_0x22c99f[_0x3aeff0(0x161)](_0x316283=>_0x316283['attrs'][_0x3aeff0(0xd0)]==='1'||_0x316283[_0x3aeff0(0x11e)][_0x3aeff0(0xd0)]===_0x3aeff0(0x12a))[_0x3aeff0(0x11a)](_0x4f91a3=>integer(_0x4f91a3[_0x3aeff0(0x11e)]['r'],'hidden\x20image\x20row'))),_0x4a89fc=_0x5e16ca=>{const _0x147457=_0x3aeff0,_0x2b98b5=_0x5e16ca===undefined?0xf:Number(_0x5e16ca);if(!Number['isFinite'](_0x2b98b5)||_0x2b98b5<=0x0||_0x2b98b5>409.5)throw Error(_0x147457(0x110));return Math['round'](_0x2b98b5*0x319c);},_0x48020e=_0x4a89fc(children(_0x27739a,_0x3aeff0(0x103))[0x0]?.['attrs'][_0x3aeff0(0x101)]);for(const _0x1dac60 of _0x22c99f)if(_0x1dac60[_0x3aeff0(0x11e)]['ht']!==undefined)_0x2d3a48['set'](integer(_0x1dac60[_0x3aeff0(0x11e)]['r'],_0x3aeff0(0x165)),_0x4a89fc(_0x1dac60[_0x3aeff0(0x11e)]['ht']));const _0x14358d=[],_0x9a39d6=_0x15a441=>{const _0x2b3fa2=_0x3aeff0;if(!_0x3a5078['has'](_0x15a441[_0x2b3fa2(0x135)]))return;if(++_0xc261ed>0x2710)throw Error(_0x2b3fa2(0x10b));_0x14358d[_0x2b3fa2(0x139)](_0x1959af[_0x2b3fa2(0xde)](_0x15a441['row'])?{..._0x15a441,'hiddenRow':!![]}:_0x15a441);},_0x183f09=_0x903c97=>({'row':integer(one(children(_0x903c97,'row',DRAWING),_0x3aeff0(0x108))[_0x3aeff0(0x126)],'anchor\x20row',0x1869f)+0x1,'col':integer(one(children(_0x903c97,_0x3aeff0(0x135)),_0x3aeff0(0xdc))[_0x3aeff0(0x126)],_0x3aeff0(0xdc),0xff)+0x1});for(const _0x48a531 of children(_0x27739a,_0x3aeff0(0x141))){const _0x342ca9=_0x3f04aa(_0x4469e5,_0x48a531[_0x3aeff0(0x11e)][_0x3aeff0(0x113)],'drawing'),_0x355d64=_0x1ab21b(_0x342ca9);if(!matches(_0x355d64,'wsDr'))throw Error(_0x3aeff0(0x14f));for(const _0x2a81ee of _0x355d64[_0x3aeff0(0xd6)]){if(!['oneCellAnchor',_0x3aeff0(0x115),_0x3aeff0(0xf6)][_0x3aeff0(0xdb)](_0x46d40c=>matches(_0x2a81ee,_0x46d40c)))continue;if(_0x2a81ee[_0x3aeff0(0x15b)]===_0x3aeff0(0xf6))throw Error('Absolute\x20image\x20anchor\x20cannot\x20be\x20mapped\x20in\x20worksheet\x20'+_0xb97568+'.');const _0x3124e7=_0x183f09(one(children(_0x2a81ee,_0x3aeff0(0xc1)),_0x3aeff0(0x11c)));if(!_0x3a5078[_0x3aeff0(0xde)](_0x3124e7[_0x3aeff0(0x135)]))continue;let _0x42f1fc;const _0x19db29=one(children(_0x2a81ee,_0x3aeff0(0xc1)),_0x3aeff0(0x11c)),_0x4192dc=integer(one(children(_0x19db29,_0x3aeff0(0xe7)),_0x3aeff0(0x132))[_0x3aeff0(0x126)],_0x3aeff0(0x132),Number[_0x3aeff0(0xe3)]),_0x331271=_0x2d3a48['get'](_0x3124e7[_0x3aeff0(0x12c)])??_0x48020e;if(_0x4192dc>=_0x331271)throw Error(_0x3aeff0(0xbb)+_0x3124e7[_0x3aeff0(0x12c)]+'.');if(_0x2a81ee['name']===_0x3aeff0(0x123)){const _0x7627c7=one(children(_0x2a81ee,_0x3aeff0(0xc4)),_0x3aeff0(0x159)),_0x5c602f=integer(_0x7627c7[_0x3aeff0(0x11e)]['cy'],_0x3aeff0(0xc5),Number['MAX_SAFE_INTEGER']);if(!_0x5c602f||_0x4192dc+_0x5c602f>_0x331271)_0x42f1fc=_0x3aeff0(0xe4);}if(_0x2a81ee[_0x3aeff0(0x15b)]===_0x3aeff0(0x115)){const _0x1bbe82=one(children(_0x2a81ee,'to'),_0x3aeff0(0xc3)),_0x25886e=_0x183f09(_0x1bbe82),_0x1fac49=integer(one(children(_0x1bbe82,_0x3aeff0(0xe7)),'anchor\x20end\x20offset')[_0x3aeff0(0x126)],_0x3aeff0(0xe1),Number[_0x3aeff0(0xe3)]),_0x50d0ab=_0x2d3a48[_0x3aeff0(0x153)](_0x25886e[_0x3aeff0(0x12c)])??_0x48020e;if(_0x1fac49>_0x50d0ab||_0x25886e[_0x3aeff0(0x12c)]===_0x3124e7[_0x3aeff0(0x12c)]&&_0x1fac49<=_0x4192dc)_0x42f1fc=_0x3aeff0(0xcf);if(_0x25886e[_0x3aeff0(0x12c)]<_0x3124e7[_0x3aeff0(0x12c)]||_0x25886e[_0x3aeff0(0x12c)]>_0x3124e7[_0x3aeff0(0x12c)]+0x1||_0x25886e[_0x3aeff0(0x12c)]===_0x3124e7[_0x3aeff0(0x12c)]+0x1&&_0x1fac49!==0x0)_0x42f1fc=_0x3aeff0(0xe4);}const _0x9531a0=chain(_0x2a81ee,_0x3aeff0(0x142),_0x3aeff0(0x127),'blip');for(const _0x39e1b3 of _0x9531a0){if(_0x39e1b3[_0x3aeff0(0x11e)][_0x3aeff0(0x111)])throw Error(_0x3aeff0(0x122));_0x9a39d6({..._0x3124e7,'media':[_0x3f04aa(_0x342ca9,_0x39e1b3[_0x3aeff0(0x11e)][_0x3aeff0(0x133)],_0x3aeff0(0x149))],..._0x42f1fc?{'error':_0x42f1fc}:{}});}if(!_0x9531a0[_0x3aeff0(0xcd)])_0x9a39d6({..._0x3124e7,'media':[],'error':_0x3aeff0(0xc8)});}}const _0x32da25=_0x5c447f=>{const _0x520494=_0x3aeff0,_0x364c59=_0x1ab21b(_0x3ee2c1(_0x4af62e,_0x520494(0xf1)));if(!matches(_0x364c59,_0x520494(0xc0)))throw Error(_0x520494(0xf0));const _0x348bfb=integer(_0x5c447f[_0x520494(0x11e)]['vm'],'value\x20metadata\x20index');if(!_0x348bfb)throw Error(_0x520494(0xb8));const _0x499529=children(one(children(_0x364c59,_0x520494(0xf9)),_0x520494(0xf9)),'bk')[_0x348bfb-0x1];if(!_0x499529)throw Error(_0x520494(0x130));const _0x5eb7fc=one(children(_0x499529,'rc'),_0x520494(0xbe)),_0x49ef26=integer(_0x5eb7fc[_0x520494(0x11e)]['t'],_0x520494(0xbd)),_0x3d827d=children(one(children(_0x364c59,_0x520494(0x120)),'metadata\x20types'),_0x520494(0x14a))[_0x49ef26-0x1];if(!_0x49ef26||_0x3d827d?.[_0x520494(0x11e)]['name']!==_0x520494(0x16b))throw Error('Unsupported\x20mapped\x20cell\x20metadata\x20type.');const _0x76c36b=one(children(_0x364c59,'futureMetadata')[_0x520494(0x161)](_0x1072be=>_0x1072be[_0x520494(0x11e)][_0x520494(0x15b)]===_0x520494(0x16b)),_0x520494(0xe8)),_0x2052da=children(_0x76c36b,'bk')[integer(_0x5eb7fc['attrs']['v'],_0x520494(0x109))];if(!_0x2052da)throw Error(_0x520494(0x150));const _0xd22e02=chain(_0x2052da,_0x520494(0x11b))[_0x520494(0x138)](_0x83b1db=>children(_0x83b1db,_0x520494(0xc4),SHEET))[_0x520494(0x161)](_0x40dc4b=>_0x40dc4b[_0x520494(0x11e)][_0x520494(0x13f)]?.['toLowerCase']()===_0x520494(0xcc)),_0x672c44=integer(one(_0xd22e02[_0x520494(0x138)](_0x3d6e88=>children(_0x3d6e88,_0x520494(0x125))),_0x520494(0x144))[_0x520494(0x11e)]['i'],'rich\x20value\x20index'),_0x20af54=_0x1ab21b(_0x3ee2c1(_0x4af62e,_0x520494(0xef)));if(!matches(_0x20af54,_0x520494(0x128)))throw Error('Unsupported\x20rich\x20value\x20namespace.');const _0x259572=children(_0x20af54,'rv')[_0x672c44];if(!_0x259572)throw Error(_0x520494(0x114));const _0x24e4b8=_0x1ab21b(_0x3ee2c1(_0x4af62e,_0x520494(0x145)));if(!matches(_0x24e4b8,_0x520494(0x12f)))throw Error(_0x520494(0xf3));const _0x14b8a1=children(_0x24e4b8,'s')[integer(_0x259572[_0x520494(0x11e)]['s'],_0x520494(0x10e))];if(!_0x14b8a1||_0x14b8a1['attrs']['t']!==_0x520494(0xee))throw Error(_0x520494(0xe2));const _0x4cf993=children(_0x14b8a1,'k'),_0xd57b8f=_0x4cf993[_0x520494(0x11a)]((_0x45133c,_0xaac139)=>_0x45133c[_0x520494(0x11e)]['n']===_0x520494(0x15c)?_0xaac139:-0x1)[_0x520494(0x161)](_0x35afdc=>_0x35afdc>=0x0);if(_0xd57b8f['length']!==0x1)throw Error(_0x520494(0x157));const _0x4bbcf0=children(_0x259572,'v',RICH)[_0xd57b8f[0x0]];if(!_0x4bbcf0)throw Error('Missing\x20local\x20image\x20identifier\x20value.');const _0x518e6c=_0x3ee2c1(_0x4af62e,_0x520494(0xe0)),_0x3586c4=_0x1ab21b(_0x518e6c);if(!matches(_0x3586c4,_0x520494(0x164)))throw Error('Unsupported\x20rich\x20image\x20relation\x20namespace.');const _0x2db3ad=children(_0x3586c4,_0x520494(0xd8))[integer(_0x4bbcf0['text'],_0x520494(0x14b))];if(!_0x2db3ad)throw Error('Missing\x20rich\x20image\x20relationship.');return _0x3f04aa(_0x518e6c,_0x2db3ad[_0x520494(0x11e)][_0x520494(0x113)],_0x520494(0x149));};let _0x573712;const _0x154a5a=_0x368692=>{const _0x2fcd4d=_0x3aeff0;if(!_0x573712){_0x573712=new Map();const _0x5b0504=_0x552e09(_0x4af62e)[_0x2fcd4d(0x161)](_0x36dafd=>[...relationshipTypes(_0x2fcd4d(0x100)),...relationshipTypes(_0x2fcd4d(0xb7))]['includes'](_0x36dafd[_0x2fcd4d(0x13a)]));if(!_0x5b0504[_0x2fcd4d(0xcd)]&&_0x74c2f5['has']('xl/cellimages.xml'))_0x5b0504['push']({'id':'','type':'','target':_0x2fcd4d(0xc2)});if(_0x5b0504['length']!==0x1)throw Error('Missing\x20or\x20ambiguous\x20WPS\x20cell\x20image\x20part.');const _0x43b782=_0x3ec556(_0x4af62e,_0x5b0504[0x0]),_0x486f81=_0x1ab21b(_0x43b782);if(!matches(_0x486f81,'cellImages'))throw Error(_0x2fcd4d(0x13b));for(const _0x25ec02 of children(_0x486f81,_0x2fcd4d(0x100))){const _0x3abf0f=one(chain(_0x25ec02,'pic',_0x2fcd4d(0xeb),_0x2fcd4d(0xcb)),_0x2fcd4d(0x11d))[_0x2fcd4d(0x11e)][_0x2fcd4d(0x15b)];if(!_0x3abf0f||_0x573712[_0x2fcd4d(0xde)](_0x3abf0f))throw Error(_0x2fcd4d(0x162));const _0x1cb05f=one(chain(_0x25ec02,_0x2fcd4d(0x142),_0x2fcd4d(0x127),_0x2fcd4d(0xdf)),_0x2fcd4d(0x119));if(_0x1cb05f[_0x2fcd4d(0x11e)][_0x2fcd4d(0x111)])throw Error(_0x2fcd4d(0x168));_0x573712[_0x2fcd4d(0xd2)](_0x3abf0f,_0x3f04aa(_0x43b782,_0x1cb05f['attrs'][_0x2fcd4d(0x133)],_0x2fcd4d(0x149)));}}const _0x3f6403=_0x573712['get'](_0x368692);if(!_0x3f6403)throw Error('Missing\x20WPS\x20image\x20ID:\x20'+_0x368692+'.');return _0x3f6403;},_0xfbd601=new Set();for(const _0x41fd84 of _0x22c99f['flatMap'](_0xff263=>children(_0xff263,'c'))){const _0x1a40e9=/^([A-Z]+)([1-9]\d*)$/['exec'](_0x41fd84[_0x3aeff0(0x11e)]['r']??'');if(!_0x1a40e9)continue;let _0x480e0e=0x0;for(const _0x32f222 of _0x1a40e9[0x1])_0x480e0e=_0x480e0e*0x1a+_0x32f222[_0x3aeff0(0xd7)](0x0)-0x40;if(!_0x3a5078[_0x3aeff0(0xde)](_0x480e0e))continue;const _0x2299d7=integer(_0x1a40e9[0x2],_0x3aeff0(0xb9));if(_0xfbd601[_0x3aeff0(0xde)](_0x41fd84[_0x3aeff0(0x11e)]['r']))throw Error('Duplicate\x20mapped\x20image\x20cell.');_0xfbd601['add'](_0x41fd84['attrs']['r']);const _0x386099=children(_0x41fd84,'f');if(!_0x41fd84[_0x3aeff0(0x11e)]['vm']&&!_0x386099[_0x3aeff0(0xcd)])continue;try{if(_0x2299d7<0x1||_0x480e0e>0x100)throw Error(_0x3aeff0(0x12e));let _0x322b55;if(_0x41fd84[_0x3aeff0(0x11e)]['vm']){if(_0x386099[_0x3aeff0(0xcd)])throw Error('Mixed\x20formula\x20and\x20rich\x20image\x20metadata\x20is\x20unsupported.');if(_0x41fd84[_0x3aeff0(0x11e)]['t']!=='e'||children(_0x41fd84,'v')[_0x3aeff0(0xcd)]!==0x1||children(_0x41fd84,'v')[0x0][_0x3aeff0(0x126)]!=='#VALUE!')throw Error(_0x3aeff0(0x134));_0x322b55=_0x32da25(_0x41fd84);}else{const _0x5dbbef=one(_0x386099,_0x3aeff0(0x158));if(_0x5dbbef[_0x3aeff0(0x11e)]['t']===_0x3aeff0(0x106)||_0x5dbbef[_0x3aeff0(0x11e)]['si'])throw Error(_0x3aeff0(0x10a));const _0x218465=/^\s*=?\s*@?(?:_xlfn\.)?DISPIMG\(\s*"((?:[^"]|"")+)"\s*(?:,\s*[01]\s*)?\)\s*$/i[_0x3aeff0(0x10c)](_0x5dbbef[_0x3aeff0(0x126)]);if(!_0x218465)throw Error(_0x3aeff0(0x137));_0x322b55=_0x154a5a(_0x218465[0x1][_0x3aeff0(0x121)](/""/g,'\x22'));}_0x9a39d6({'row':_0x2299d7,'col':_0x480e0e,'media':[_0x322b55],'nativeCell':!![]});}catch(_0x4ce27b){_0x9a39d6({'row':_0x2299d7,'col':_0x480e0e,'media':[],'nativeCell':!![],'error':_0x4ce27b['message']});}}return _0x14358d;}
|