@lovrabet/lovrabet-cli 2.3.12-beta.1 → 2.3.12
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/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.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/issue/context.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/report.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.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.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.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/kb-management-client.js +1 -1
- package/lib/core/kb-sdk-errors.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- 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.js +1 -1
- 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 +1 -1
- package/skills/lovrabet/SKILL.md +1 -1
- package/skills/lovrabet.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
function a144_0x41e3(_0x4359ef,_0x2b015c){_0x4359ef=_0x4359ef-0x6d;const _0x5a8aa2=a144_0x5a8a();let _0x41e356=_0x5a8aa2[_0x4359ef];return _0x41e356;}const a144_0x910eac=a144_0x41e3;(function(_0x5bf53a,_0x1b6455){const _0x225ee8=a144_0x41e3,_0x28f87d=_0x5bf53a();while(!![]){try{const _0x5f5181=parseInt(_0x225ee8(0xd4))/0x1+-parseInt(_0x225ee8(0x11c))/0x2*(parseInt(_0x225ee8(0x125))/0x3)+-parseInt(_0x225ee8(0x7b))/0x4+parseInt(_0x225ee8(0xca))/0x5+parseInt(_0x225ee8(0x12b))/0x6*(-parseInt(_0x225ee8(0xde))/0x7)+parseInt(_0x225ee8(0x84))/0x8+-parseInt(_0x225ee8(0xaf))/0x9*(-parseInt(_0x225ee8(0x13a))/0xa);if(_0x5f5181===_0x1b6455)break;else _0x28f87d['push'](_0x28f87d['shift']());}catch(_0x5cb7a5){_0x28f87d['push'](_0x28f87d['shift']());}}}(a144_0x5a8a,0xd8f8a));import{readFile,stat}from'node:fs/promises';import{createHash}from'node:crypto';import a144_0x1614b2 from'node:path';import{StringDecoder}from'node:string_decoder';import{createRequire}from'node:module';import{SaxesParser}from'saxes';import a144_0x3eec37 from'exceljs';import a144_0x57f54b from'yauzl';import{resolveWorksheetImages}from'./image-ooxml.js';import{validateImageBytes}from'./image-bytes.js';const MAX_FILE=0x14*0x400*0x400,MAX_EXPANDED=0x64*0x400*0x400,MAX_ROWS=0x186a0,MAX_COLUMNS=0x100,MAX_XML_ROWS=0x100000,MAX_XML_COLUMNS=0x4000,MAX_CELL=0x40*0x400,RESERVED=new Set(['id','tenantCode',a144_0x910eac(0x13d),'datasetId',a144_0x910eac(0x122),'creatorName',a144_0x910eac(0x149),a144_0x910eac(0x146),'createTime',a144_0x910eac(0x110),a144_0x910eac(0x90)]),TYPES=new Set([a144_0x910eac(0x117),'text',a144_0x910eac(0x88),'number',a144_0x910eac(0xc2),a144_0x910eac(0xd0),a144_0x910eac(0xe9),a144_0x910eac(0x9a),a144_0x910eac(0xbe),a144_0x910eac(0xb6),a144_0x910eac(0xb7)]),isImageContainer=_0x11545e=>[a144_0x910eac(0xb6),a144_0x910eac(0xb7)]['includes'](_0x11545e['toLowerCase']()),hash=_0x1b5da2=>createHash(a144_0x910eac(0xac))[a144_0x910eac(0x111)](_0x1b5da2)[a144_0x910eac(0x148)](a144_0x910eac(0xce)),require=createRequire(import.meta.url),DefinedNameXform=require(a144_0x910eac(0x14a)),nameCoordinates=require(a144_0x910eac(0x10a)),ABSOLUTE_NAME_RANGE=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/,excelRequire=createRequire(require[a144_0x910eac(0xaa)](a144_0x910eac(0xf7))),zipRequire=createRequire(excelRequire[a144_0x910eac(0xaa)](a144_0x910eac(0xbf))),ZipEntry=zipRequire(a144_0x910eac(0x139)),zipReader=zipRequire(a144_0x910eac(0x71)),zipUtf8=zipRequire(a144_0x910eac(0x133)),zipPaths=zipRequire(a144_0x910eac(0xb0));function centralDirectoryEnd(_0x2bf872,_0x293136){const _0xbbd85e=a144_0x910eac,_0x5d3783=()=>new Error('Invalid\x20ZIP\x20central\x20directory\x20layout.'),_0xbd652e=_0x2bf872[_0xbbd85e(0x150)](Buffer['from']([0x50,0x4b,0x5,0x6]));if(_0xbd652e<0x0||_0xbd652e+0x16>_0x2bf872[_0xbbd85e(0xd2)]||_0xbd652e+0x16+_0x2bf872[_0xbbd85e(0x10e)](_0xbd652e+0x14)!==_0x2bf872[_0xbbd85e(0xd2)])throw _0x5d3783();let _0x48ee73=_0x2bf872[_0xbbd85e(0x10e)](_0xbd652e+0xa),_0x9694d=_0x2bf872[_0xbbd85e(0xdb)](_0xbd652e+0xc),_0x1acee0=_0x2bf872['readUInt32LE'](_0xbd652e+0x10),_0x598070=_0xbd652e;const _0x8101fb=_0xbd652e-0x14,_0xa165c6=_0x8101fb>=0x0&&_0x2bf872['readUInt32LE'](_0x8101fb)===0x7064b50,_0x1b9c54=[0x4,0x6,0x8,0xa]['some'](_0x472eb0=>_0x2bf872[_0xbbd85e(0x10e)](_0xbd652e+_0x472eb0)===0xffff)||_0x9694d===0xffffffff||_0x1acee0===0xffffffff;if(_0xa165c6!==_0x1b9c54)throw _0x5d3783();if(_0xa165c6){if(_0x2bf872[_0xbbd85e(0x150)](Buffer[_0xbbd85e(0xa1)]([0x50,0x4b,0x6,0x7]))!==_0x8101fb)throw _0x5d3783();const _0xc820f0=_0xd6a379=>{const _0x4954ec=_0xbbd85e,_0x4cd973=Number(_0x2bf872[_0x4954ec(0x7f)](_0xd6a379));if(!Number[_0x4954ec(0x8f)](_0x4cd973))throw _0x5d3783();return _0x4cd973;};_0x598070=_0xc820f0(_0x8101fb+0x8);if(_0x2bf872[_0xbbd85e(0xdb)](_0x8101fb+0x4)!==0x0||_0x2bf872[_0xbbd85e(0xdb)](_0x8101fb+0x10)!==0x1||_0x598070>_0x8101fb-0x38||_0x2bf872['readUInt32LE'](_0x598070)!==0x6064b50||_0xc820f0(_0x598070+0x4)!==0x2c||_0x598070+0x38!==_0x8101fb||_0x2bf872[_0xbbd85e(0xdb)](_0x598070+0x10)!==0x0||_0x2bf872[_0xbbd85e(0xdb)](_0x598070+0x14)!==0x0)throw _0x5d3783();_0x48ee73=_0xc820f0(_0x598070+0x20),_0x9694d=_0xc820f0(_0x598070+0x28),_0x1acee0=_0xc820f0(_0x598070+0x30);if(_0xc820f0(_0x598070+0x18)!==_0x48ee73)throw _0x5d3783();}else{if(_0x2bf872[_0xbbd85e(0x10e)](_0xbd652e+0x4)!==0x0||_0x2bf872['readUInt16LE'](_0xbd652e+0x6)!==0x0||_0x2bf872[_0xbbd85e(0x10e)](_0xbd652e+0x8)!==_0x48ee73)throw _0x5d3783();}const _0x1e4664=_0x293136['readEntryCursor'];if(_0x1acee0!==_0x1e4664||_0x48ee73!==_0x293136['entryCount']||_0x1acee0+_0x9694d!==_0x598070)throw _0x5d3783();return _0x598070;}function consumerEntryName(_0x5df918,_0x47ddd5){const _0x3ce647=a144_0x910eac;if(_0x47ddd5[_0x3ce647(0x94)][_0x3ce647(0x113)](_0xbb6f1e=>_0xbb6f1e['id']===0x1)[_0x3ce647(0xd2)]>0x1)throw new Error(_0x3ce647(0xe7));const _0x1184a0=_0x47ddd5,_0x2fb804=_0x47ddd5[_0x3ce647(0x11e)];if(!Buffer['isBuffer'](_0x1184a0[_0x3ce647(0x7d)])||!Buffer['isBuffer'](_0x1184a0[_0x3ce647(0x95)])||!Buffer[_0x3ce647(0x15a)](_0x1184a0['fileCommentRaw'])||!Number[_0x3ce647(0x8f)](_0x2fb804)||_0x2fb804<0x0||_0x2fb804>_0x5df918[_0x3ce647(0xd2)]-0x1e||_0x5df918['readUInt32LE'](_0x2fb804)!==0x4034b50)throw new Error(_0x3ce647(0x86));const _0x240806=_0x2fb804+0x1e+_0x5df918[_0x3ce647(0x10e)](_0x2fb804+0x1a),_0x1bf9b5=_0x240806+_0x5df918['readUInt16LE'](_0x2fb804+0x1c)+_0x47ddd5[_0x3ce647(0xb8)];if(!Number[_0x3ce647(0x8f)](_0x1bf9b5)||_0x1bf9b5>_0x5df918[_0x3ce647(0xd2)])throw new Error(_0x3ce647(0x86));if(_0x240806>_0x5df918[_0x3ce647(0xd2)]||!_0x5df918[_0x3ce647(0x138)](_0x2fb804+0x1e,_0x240806)[_0x3ce647(0xa5)](_0x1184a0[_0x3ce647(0x7d)]))throw new Error('ZIP\x20local\x20and\x20central\x20entry\x20names\x20must\x20match.');const _0x553e8d=new ZipEntry({},{'decodeFileName':zipUtf8[_0x3ce647(0xfd)]});_0x553e8d[_0x3ce647(0xd9)]=_0x47ddd5[_0x3ce647(0x131)],_0x553e8d[_0x3ce647(0x99)]=_0x1184a0['fileNameRaw'],_0x553e8d[_0x3ce647(0x15e)]=_0x1184a0[_0x3ce647(0x83)],_0x553e8d[_0x3ce647(0xf0)]=_0x1184a0[_0x3ce647(0x95)][_0x3ce647(0xd2)],_0x553e8d[_0x3ce647(0x12d)](zipReader(_0x1184a0['extraFieldRaw'])),_0x553e8d[_0x3ce647(0x8a)](),_0x553e8d[_0x3ce647(0xfe)]=_0x47ddd5[_0x3ce647(0xfe)],_0x553e8d[_0x3ce647(0x124)]=_0x47ddd5[_0x3ce647(0x124)],_0x553e8d[_0x3ce647(0x147)]();const _0xbbc959=_0x553e8d[_0x3ce647(0x14c)]||Boolean((_0x553e8d['unixPermissions']??0x0)&0x4000),_0x56a453=zipPaths['resolve'](_0x553e8d[_0x3ce647(0xb4)]),_0x35a4d8=_0x56a453['startsWith']('/')?_0x56a453[_0x3ce647(0x6d)](0x1):_0x56a453;return{'name':_0x35a4d8,'original':_0x553e8d[_0x3ce647(0xb4)],'directory':_0xbbc959};}export function normalizeImportFields(_0x5e65d0){const _0x508f06=a144_0x910eac;if(!_0x5e65d0||(_0x5e65d0[_0x508f06(0x85)]??_0x5e65d0[_0x508f06(0xa2)]?.[_0x508f06(0x6e)])!==_0x508f06(0x13e))throw new Error(_0x508f06(0x12e));const _0x472ae7=Array['isArray'](_0x5e65d0[_0x508f06(0xc3)]),_0x59e258=_0x472ae7?_0x5e65d0['fields']:_0x5e65d0[_0x508f06(0x12f)];if(!Array[_0x508f06(0x9d)](_0x59e258)||_0x59e258[_0x508f06(0xd2)]===0x0)throw new Error(_0x508f06(0xbb));const _0x3fa3a9=[],_0x39b7bb=new Set();for(const _0x52d532 of _0x59e258){if(_0x52d532['deleted']===!![])continue;let _0x2b1e51=_0x52d532[_0x508f06(0xc0)]??{};if(!_0x472ae7&&typeof _0x2b1e51===_0x508f06(0x117)){try{_0x2b1e51=JSON['parse'](_0x2b1e51);}catch{throw new Error(_0x508f06(0xfb));}if(!_0x2b1e51||typeof _0x2b1e51!=='object'||Array[_0x508f06(0x9d)](_0x2b1e51))throw new Error(_0x508f06(0xfb));}const _0x187da7=_0x472ae7?_0x52d532[_0x508f06(0xed)]:_0x52d532[_0x508f06(0x161)],_0x4bae67=_0x472ae7?_0x52d532['doType']:_0x52d532[_0x508f06(0x89)]??_0x52d532['dataType'];if(typeof _0x187da7!==_0x508f06(0x117)||!_0x187da7||typeof _0x4bae67!==_0x508f06(0x117)||_0x39b7bb[_0x508f06(0xee)](_0x187da7))throw new Error(_0x508f06(0xe6));if(_0x4bae67[_0x508f06(0xda)]()===_0x508f06(0x12c))throw new Error(_0x508f06(0xd5));_0x39b7bb[_0x508f06(0x13b)](_0x187da7);const _0x2c11aa=_0x472ae7?_0x52d532:_0x2b1e51,_0x43fb74={'code':_0x187da7,'type':_0x4bae67,'required':_0x2c11aa[_0x508f06(0xf8)]===!![]};if(RESERVED['has'](_0x187da7)||_0x2c11aa[_0x508f06(0x8e)]===!![]||_0x2c11aa[_0x508f06(0xb1)]===!![])_0x43fb74[_0x508f06(0x8e)]=!![];_0x3fa3a9[_0x508f06(0x10d)](_0x43fb74);}return _0x3fa3a9;}async function checkArchive(_0x2aebb5,_0x2771b4){await new Promise((_0x5ce10f,_0x16b294)=>{const _0x2a454b=a144_0x41e3;a144_0x57f54b[_0x2a454b(0xa7)](_0x2aebb5,{'lazyEntries':!![],'validateEntrySizes':!![]},(_0x36b18b,_0x3ad93f)=>{const _0x3839b7=_0x2a454b;if(_0x36b18b||!_0x3ad93f){_0x16b294(_0x36b18b??new Error(_0x3839b7(0x76)));return;}let _0xeb71d6;try{_0xeb71d6=centralDirectoryEnd(_0x2aebb5,_0x3ad93f);}catch(_0x42bae9){_0x3ad93f[_0x3839b7(0x118)](),_0x16b294(_0x42bae9);return;}let _0x377c68=0x0,_0x340000=0x0,_0xc8376f=0x0,_0x1f52d9=0x0,_0x4b1a3a=0x0,_0x288bbd=0x0,_0x43a9a1=0x0,_0x4f7f48=0x0,_0x1220e9=0x0,_0x1f6300=![],_0x2af86e;const _0x3b2e1b=new Set(),_0x2b8e76=_0x2ca898=>{const _0x47133b=_0x3839b7;if(_0x1f6300)return;_0x1f6300=!![],_0x2af86e?.[_0x47133b(0x79)](),_0x3ad93f[_0x47133b(0x118)](),_0x16b294(_0x2ca898);},_0x1279d7=(_0x1329a1,_0x1e4d9b)=>{const _0x2f0fe0=_0x3839b7;if(!_0x1329a1||!/^\d+$/[_0x2f0fe0(0x80)](_0x1329a1))throw new Error('Invalid\x20worksheet\x20coordinate.');const _0x4f8938=Number(_0x1329a1);if(!Number[_0x2f0fe0(0x8f)](_0x4f8938)||_0x4f8938<0x1||_0x4f8938>_0x1e4d9b)throw new Error(_0x2f0fe0(0xc1)+_0x1e4d9b+'.');return _0x4f8938;},_0x16e4d7=(_0x3692bd,_0x4d1b75=MAX_XML_COLUMNS)=>{const _0x2b3880=_0x3839b7,_0x4f2968=/^\$?([A-Z]{1,3})\$?(\d+)$/[_0x2b3880(0xe3)](_0x3692bd);if(!_0x4f2968)throw new Error(_0x2b3880(0xf1));let _0x93d1fe=0x0;for(const _0x3f0c3d of _0x4f2968[0x1])_0x93d1fe=_0x93d1fe*0x1a+_0x3f0c3d[_0x2b3880(0x163)](0x0)-0x40;if(_0x93d1fe>_0x4d1b75)throw new Error(_0x2b3880(0x120)+_0x4d1b75+_0x2b3880(0xcc));return{'row':_0x1279d7(_0x4f2968[0x2],MAX_XML_ROWS),'col':_0x93d1fe};},_0x5a9280=_0x3c77b7=>{const _0x51bea3=_0x3839b7;if(_0x3c77b7[_0x51bea3(0xed)]==='_xlnm.Print_Area'||_0x3c77b7[_0x51bea3(0xed)]==='_xlnm.Print_Titles')return;for(const _0x56d1aa of _0x3c77b7[_0x51bea3(0xa6)]){if(!ABSOLUTE_NAME_RANGE[_0x51bea3(0x80)](_0x56d1aa[_0x51bea3(0xb2)]('!')[_0x51bea3(0xa8)]()||''))continue;const _0x26e831=nameCoordinates[_0x51bea3(0xf2)](_0x56d1aa),_0x499136=_0x51bea3(0xad)in _0x26e831,_0x1db0df=_0x499136?[_0x26e831['top'],_0x26e831[_0x51bea3(0xbc)]]:[_0x26e831[_0x51bea3(0x11d)]],_0x478c4b=_0x499136?[_0x26e831[_0x51bea3(0xbd)],_0x26e831['right']]:[_0x26e831[_0x51bea3(0x14f)]],_0x374f91=(_0x28b0bd,_0x4d44e0)=>Number[_0x51bea3(0x8f)](_0x28b0bd)&&_0x28b0bd>=0x1&&_0x28b0bd<=_0x4d44e0;if(!_0x1db0df['every'](_0x4498f6=>_0x374f91(_0x4498f6,MAX_XML_ROWS))||!_0x478c4b[_0x51bea3(0xc4)](_0x42357f=>_0x374f91(_0x42357f,MAX_XML_COLUMNS)))throw new Error(_0x51bea3(0xd7));_0x43a9a1+=_0x499136?(_0x26e831[_0x51bea3(0xbc)]-_0x26e831['top']+0x1)*(_0x26e831[_0x51bea3(0x15c)]-_0x26e831['left']+0x1):0x1;if(_0x43a9a1>MAX_ROWS)throw new Error('Workbook\x20defined\x20name\x20work\x20exceeds\x20100000.');}};_0x3ad93f['on'](_0x3839b7(0x107),_0x2b8e76),_0x3ad93f['on'](_0x3839b7(0x159),_0x2fe14c=>{const _0x26e839=_0x3839b7;if(_0x1f6300)return;if(++_0xc8376f>0x2710||(_0x377c68+=_0x2fe14c['uncompressedSize'])>MAX_EXPANDED){_0x2b8e76(new Error(_0x26e839(0xcb)));return;}let _0x2a5717;try{_0x2a5717=consumerEntryName(_0x2aebb5,_0x2fe14c);}catch(_0xc8af8d){_0x2b8e76(_0xc8af8d);return;}if(_0x2a5717['directory']){_0x3ad93f['readEntry']();return;}const _0x310ea4=_0x2a5717[_0x26e839(0xed)];if(_0x2771b4&&(_0x310ea4!==_0x2a5717[_0x26e839(0xf4)]||_0x3b2e1b[_0x26e839(0xee)](_0x310ea4)||_0x310ea4[_0x26e839(0xd8)]('/')||_0x310ea4[_0x26e839(0xdf)]('\x5c'))){_0x2b8e76(new Error(_0x26e839(0x91)));return;}if(_0x310ea4!==_0x2a5717[_0x26e839(0xf4)]&&(_0x310ea4===_0x26e839(0x160)||/xl\/worksheets\/sheet(\d+)[.]xml/[_0x26e839(0x80)](_0x310ea4))){_0x2b8e76(new Error(_0x26e839(0x78)));return;}const _0x31d31f=_0x310ea4===_0x26e839(0x160);if(_0x31d31f&&_0x3b2e1b[_0x26e839(0xee)](_0x310ea4)){_0x2b8e76(new Error(_0x26e839(0x98)));return;}_0x3b2e1b['add'](_0x310ea4);const _0x8dcea6=/xl\/worksheets\/sheet(\d+)[.]xml/[_0x26e839(0x80)](_0x310ea4);if(_0x8dcea6&&!/^xl\/worksheets\/sheet\d+[.]xml$/[_0x26e839(0x80)](_0x310ea4)){_0x2b8e76(new Error(_0x26e839(0x157)));return;}_0x3ad93f[_0x26e839(0x77)](_0x2fe14c,(_0x3a96ab,_0x31bf35)=>{const _0x3dd321=_0x26e839;if(_0x1f6300){_0x31bf35?.['destroy']();return;}if(_0x3a96ab||!_0x31bf35){_0x2b8e76(_0x3a96ab??new Error(_0x3dd321(0x129)));return;}_0x2af86e=_0x31bf35;const _0xf43289=_0x2771b4?[]:undefined,_0x56bf38=_0x2771b4&&/[.](xml|rels)$/['test'](_0x310ea4)?new StringDecoder(_0x3dd321(0x128)):undefined,_0x523779=_0x56bf38?new SaxesParser({'xmlns':![]}):undefined,_0x1603f2=()=>{const _0x31ee51=_0x3dd321;if(++_0x1220e9>0x1e8480)throw Error(_0x31ee51(0x104));};_0x523779?.['on'](_0x3dd321(0xe4),()=>{const _0x18a0c6=_0x3dd321;throw Error(_0x18a0c6(0x13f));}),_0x523779?.['on'](_0x3dd321(0x14d),()=>{_0x1603f2();if(++_0x4f7f48>0x7a120)throw Error('Image\x20XML\x20node\x20budget\x20exceeded.');}),_0x523779?.['on']('text',_0x1603f2),_0x523779?.['on'](_0x3dd321(0xae),_0x1603f2),_0x523779?.['on'](_0x3dd321(0x107),_0x1825c9=>{throw _0x1825c9;});const _0x1d2dcc=_0x8dcea6||_0x31d31f?new StringDecoder(_0x3dd321(0x128)):undefined,_0x3e8400=_0x8dcea6||_0x31d31f?new SaxesParser({'xmlns':![]}):undefined;let _0x2e3c7c,_0x427976=0x0,_0x28a9f3=0x0,_0x5933c6,_0x38ea86,_0xe7e802=![],_0x5cd8cd=![],_0x342d62,_0x506910,_0x1026d3,_0x34efc5=![];const _0x51c9ed=[],_0xec2ca9=new Set();let _0x24d89a;const _0x31d24f=(_0x405132,_0x83bb9f=0x0)=>{const _0x1a0f39=_0x3dd321;_0x4b1a3a+=_0x83bb9f+Math['max'](0x0,_0x405132-_0x28a9f3),_0x28a9f3=Math[_0x1a0f39(0xb9)](_0x28a9f3,_0x405132);if(_0x4b1a3a>MAX_ROWS)throw new Error(_0x1a0f39(0xef));};_0x3e8400?.['on'](_0x3dd321(0x14d),_0x5112aa=>{const _0x5606ac=_0x3dd321;if(_0x31d31f){if(!_0x2e3c7c&&_0x5112aa[_0x5606ac(0xed)]==='definedName')_0x2e3c7c=new DefinedNameXform();_0x2e3c7c?.[_0x5606ac(0x114)](_0x5112aa);return;}if(_0x5112aa['name']===_0x5606ac(0x11d)){if(_0x5cd8cd)throw new Error(_0x5606ac(0x14b));_0x1279d7(_0x5112aa[_0x5606ac(0x140)]['r'],MAX_XML_ROWS),_0x5933c6=undefined,_0x1026d3=undefined,_0x34efc5=![];}else{if(_0x5112aa['name']==='c'){if(_0x5cd8cd)throw new Error(_0x5606ac(0xf9));_0x5cd8cd=!![],_0xe7e802=Boolean(Number['parseInt'](_0x5112aa[_0x5606ac(0x140)]['s']??'',0xa)),_0x24d89a=undefined,_0x342d62=_0x5112aa[_0x5606ac(0x140)]['r']||undefined,_0x506910=_0x342d62?_0x16e4d7(_0x342d62):undefined;if(_0x506910)_0x38ea86=_0x506910;else _0x38ea86=_0x5933c6?{'row':_0x5933c6[_0x5606ac(0x11d)],'col':_0x5933c6['col']+0x1}:undefined;}else{if(_0x5cd8cd&&['f','v','t'][_0x5606ac(0xdf)](_0x5112aa['name'])){_0x24d89a=_0x5112aa[_0x5606ac(0xed)];if(_0x5112aa[_0x5606ac(0xed)]==='f'&&_0x5112aa[_0x5606ac(0x140)]['t'])_0xe7e802=!![];}else{if(_0x5cd8cd&&_0x5112aa[_0x5606ac(0xed)]==='r')_0xe7e802=!![];else{if(_0x5112aa[_0x5606ac(0xed)]===_0x5606ac(0xb3)){const _0x40fbf0=_0x5112aa[_0x5606ac(0x140)][_0x5606ac(0x9f)];if(!_0x40fbf0)throw new Error(_0x5606ac(0xf3));const _0x402d3e=_0x40fbf0[_0x5606ac(0xb2)](':');if(_0x402d3e[_0x5606ac(0xd2)]>0x2)throw new Error(_0x5606ac(0xf3));const _0x39c4e6=_0x16e4d7(_0x402d3e[0x0]),_0x1d18d5=_0x16e4d7(_0x402d3e[0x1]??_0x402d3e[0x0]);_0xec2ca9['add'](_0x40fbf0),_0x31d24f(Math[_0x5606ac(0xb9)](_0x39c4e6['col'],_0x1d18d5[_0x5606ac(0x14f)]),0x1);}else{if(_0x5112aa[_0x5606ac(0xed)]===_0x5606ac(0x14f)){const _0x54fe84=_0x1279d7(_0x5112aa[_0x5606ac(0x140)][_0x5606ac(0x10c)],0x4000),_0x12f3a0=_0x1279d7(_0x5112aa[_0x5606ac(0x140)][_0x5606ac(0xb9)],0x4000);if(_0x54fe84>_0x12f3a0)throw new Error(_0x5606ac(0x13c));_0x31d24f(_0x12f3a0,0x1);}else{if(_0x5112aa['name']===_0x5606ac(0x15d)){const _0x2db3bc=_0x5112aa[_0x5606ac(0x140)][_0x5606ac(0x9f)];if(!_0x2db3bc)throw new Error(_0x5606ac(0x96));const _0x57aee1=_0x2db3bc['split'](':');if(_0x57aee1['length']>0x2)throw new Error(_0x5606ac(0x96));const _0x4672f2=_0x16e4d7(_0x57aee1[0x0]),_0x16edda=_0x16e4d7(_0x57aee1[0x1]??_0x57aee1[0x0]);_0x31d24f(Math['max'](_0x4672f2[_0x5606ac(0x14f)],_0x16edda[_0x5606ac(0x14f)]));const _0x5c8686=(Math[_0x5606ac(0x74)](_0x16edda[_0x5606ac(0x11d)]-_0x4672f2['row'])+0x1)*(Math[_0x5606ac(0x74)](_0x16edda['col']-_0x4672f2['col'])+0x1);_0x1f52d9+=_0x5c8686+_0x427976++;if(_0x1f52d9>MAX_ROWS)throw new Error(_0x5606ac(0xc7));}}}}}}}}),_0x3e8400?.['on'](_0x3dd321(0xc8),_0x4177a0=>{if(_0x31d31f){_0x2e3c7c?.['parseText'](_0x4177a0);return;}if(_0x5cd8cd&&_0x24d89a&&_0x4177a0)_0xe7e802=!![];}),_0x3e8400?.['on'](_0x3dd321(0xae),_0x38d0ce=>{const _0x11de8f=_0x3dd321;if(_0x31d31f){_0x2e3c7c&&!_0x2e3c7c[_0x11de8f(0x102)]()&&(_0x5a9280(_0x2e3c7c['model']),_0x2e3c7c=undefined);return;}if(_0x38d0ce[_0x11de8f(0xed)]==='c'){!_0xe7e802&&_0x342d62&&!_0x1026d3&&(_0x1026d3={'before':_0x5933c6,'cells':[]});if(_0x1026d3){if(++_0x288bbd>0xf4240)throw new Error(_0x11de8f(0xe5));_0x1026d3['cells'][_0x11de8f(0x10d)]({'reference':_0x342d62,'address':_0x506910,'materialized':_0xe7e802});if(!_0x342d62&&_0xe7e802)_0x34efc5=!![];}if(_0xe7e802){if(!_0x1026d3||_0x342d62){if(!_0x38ea86)throw new Error(_0x11de8f(0xd1));if(_0x38ea86[_0x11de8f(0x14f)]>MAX_XML_COLUMNS)throw new Error(_0x11de8f(0xcf));_0x31d24f(_0x38ea86[_0x11de8f(0x14f)]);}_0x5933c6=_0x38ea86;}_0x5cd8cd=![],_0x38ea86=undefined,_0x342d62=undefined,_0x506910=undefined,_0x24d89a=undefined;}else{if(_0x38d0ce[_0x11de8f(0xed)]===_0x11de8f(0x11d)){if(_0x1026d3&&_0x34efc5)_0x51c9ed[_0x11de8f(0x10d)](_0x1026d3);_0x1026d3=undefined,_0x34efc5=![];}else{if(_0x38d0ce[_0x11de8f(0xed)]===_0x24d89a)_0x24d89a=undefined;}}}),_0x3e8400?.['on'](_0x3dd321(0x107),_0x414530=>{const _0x234226=_0x3dd321;throw new Error(_0x234226(0x11f)+_0x414530[_0x234226(0x164)]);}),_0x31bf35['on']('error',_0x2b8e76),_0x31bf35['on']('data',_0x42bb34=>{const _0x5a0e2c=_0x3dd321;if(_0x1f6300)return;_0x340000+=_0x42bb34['length'],_0xf43289?.[_0x5a0e2c(0x10d)](_0x42bb34);if(_0x340000>MAX_EXPANDED){_0x2b8e76(new Error(_0x5a0e2c(0xcb)));return;}try{if(_0x523779&&_0x56bf38)_0x523779[_0x5a0e2c(0xe8)](_0x56bf38[_0x5a0e2c(0xe8)](_0x42bb34));if(_0x3e8400&&_0x1d2dcc)_0x3e8400[_0x5a0e2c(0xe8)](_0x1d2dcc[_0x5a0e2c(0xe8)](_0x42bb34));}catch(_0x33199c){_0x2b8e76(_0x33199c instanceof Error?_0x33199c:new Error(_0x5a0e2c(0xfc)));}}),_0x31bf35['on'](_0x3dd321(0xa4),()=>{const _0x22423d=_0x3dd321;if(_0x1f6300)return;try{if(_0x523779&&_0x56bf38)_0x523779[_0x22423d(0xe8)](_0x56bf38[_0x22423d(0xa4)]())[_0x22423d(0x118)]();if(_0x3e8400&&_0x1d2dcc)_0x3e8400[_0x22423d(0xe8)](_0x1d2dcc['end']())['close']();for(const _0x28f114 of _0x51c9ed){let _0x5a17ff=_0x28f114[_0x22423d(0x137)];for(const _0x214345 of _0x28f114[_0x22423d(0x123)]){if(!_0x214345[_0x22423d(0xc5)]&&!(_0x214345[_0x22423d(0xf6)]&&_0xec2ca9[_0x22423d(0xee)](_0x214345[_0x22423d(0xf6)])))continue;const _0x5151a9=_0x214345['address']??(_0x5a17ff?{'row':_0x5a17ff[_0x22423d(0x11d)],'col':_0x5a17ff[_0x22423d(0x14f)]+0x1}:undefined);if(!_0x5151a9)throw new Error(_0x22423d(0xd1));if(_0x5151a9['col']>MAX_XML_COLUMNS)throw new Error(_0x22423d(0xcf));_0x31d24f(_0x5151a9['col']),_0x5a17ff=_0x5151a9;}}_0x51c9ed[_0x22423d(0xd2)]=0x0,_0xec2ca9['clear']();}catch(_0x1b9878){_0x2b8e76(_0x1b9878 instanceof Error?_0x1b9878:new Error('Invalid\x20worksheet\x20XML.'));return;}if(_0xf43289)_0x2771b4[_0x22423d(0x130)](_0x310ea4,Buffer['concat'](_0xf43289));_0x2af86e=undefined,_0x3ad93f[_0x22423d(0x116)]();});});}),_0x3ad93f['on'](_0x3839b7(0xa4),()=>{const _0x5e7d8c=_0x3839b7;if(_0x1f6300)return;if(_0x3ad93f[_0x5e7d8c(0x8c)]!==_0xeb71d6){_0x16b294(new Error(_0x5e7d8c(0x10f)));return;}if(!_0x3b2e1b['has']('[Content_Types].xml')||!_0x3b2e1b[_0x5e7d8c(0xee)](_0x5e7d8c(0x160)))_0x16b294(new Error(_0x5e7d8c(0x8b)));else _0x5ce10f();}),_0x3ad93f[_0x3839b7(0x116)]();});});}function valueOf(_0x2837ff){const _0x3170aa=a144_0x910eac,_0x5dd7eb=_0x2837ff['value'];if(_0x5dd7eb&&typeof _0x5dd7eb==='object'&&(_0x3170aa(0x112)in _0x5dd7eb||'sharedFormula'in _0x5dd7eb)){if(!(_0x3170aa(0xc9)in _0x5dd7eb)||_0x5dd7eb[_0x3170aa(0xc9)]===undefined)throw new Error(_0x3170aa(0x144));return _0x5dd7eb[_0x3170aa(0xc9)];}return _0x5dd7eb;}function convert(_0xb3471f,_0x3ecc46){const _0x462551=a144_0x910eac;if(_0xb3471f===null||_0xb3471f===undefined||_0xb3471f===''){if(_0x3ecc46[_0x462551(0xf8)]&&!_0x3ecc46[_0x462551(0x8e)])throw new Error('Required\x20value\x20is\x20missing.');return null;}if(typeof _0xb3471f==='string'&&Buffer[_0x462551(0x121)](_0xb3471f,_0x462551(0x128))>MAX_CELL)throw new Error(_0x462551(0xa3));switch(_0x3ecc46['type']['toLowerCase']()){case'string':case'text':case _0x462551(0x88):if(typeof _0xb3471f!==_0x462551(0x117))throw new Error(_0x462551(0x81));return _0xb3471f;case _0x462551(0xab):case _0x462551(0xc2):case'integer':if(typeof _0xb3471f!=='number'||!Number[_0x462551(0x92)](_0xb3471f)||Math[_0x462551(0x74)](_0xb3471f)>Number['MAX_SAFE_INTEGER']||_0x3ecc46[_0x462551(0x89)]['toLowerCase']()===_0x462551(0xd0)&&!Number[_0x462551(0x12a)](_0xb3471f))throw new Error(_0x462551(0x158));return _0xb3471f;case _0x462551(0xe9):if(typeof _0xb3471f!==_0x462551(0xe9))throw new Error(_0x462551(0xd6));return _0xb3471f;case'date':case _0x462551(0xbe):if(!(_0xb3471f instanceof Date)||!Number['isFinite'](_0xb3471f[_0x462551(0x8d)]()))throw new Error(_0x462551(0x87));return _0xb3471f['getTime']();default:throw new Error('Unsupported\x20field\x20type:\x20'+_0x3ecc46[_0x462551(0x89)]+'.');}}export async function buildExcelManifest(_0x2f8bbc){const _0x5a8b0f=a144_0x910eac,_0x2b6076=_0x2f8bbc[_0x5a8b0f(0xa0)]??0x1;if(!Number[_0x5a8b0f(0x12a)](_0x2b6076)||_0x2b6076<0x1||_0x2b6076>MAX_ROWS)throw new Error(_0x5a8b0f(0x100));if(_0x2f8bbc[_0x5a8b0f(0x72)]!==undefined&&(!Number[_0x5a8b0f(0x12a)](_0x2f8bbc[_0x5a8b0f(0x72)])||_0x2f8bbc[_0x5a8b0f(0x72)]<0x1||_0x2f8bbc[_0x5a8b0f(0x72)]>0x3e8))throw new Error(_0x5a8b0f(0x134));if(a144_0x1614b2[_0x5a8b0f(0xba)](_0x2f8bbc[_0x5a8b0f(0x145)])[_0x5a8b0f(0xda)]()!==_0x5a8b0f(0x153))throw new Error(_0x5a8b0f(0xb5));const _0x499b49=await stat(_0x2f8bbc[_0x5a8b0f(0x145)]);if(!_0x499b49[_0x5a8b0f(0x103)]()||_0x499b49[_0x5a8b0f(0xd3)]>MAX_FILE)throw new Error(_0x5a8b0f(0x143));const _0x2907c6=await readFile(_0x2f8bbc['file']);if(_0x2907c6[_0x5a8b0f(0xd2)]>MAX_FILE)throw new Error(_0x5a8b0f(0x127));const _0x31febe=_0x2f8bbc[_0x5a8b0f(0xc3)][_0x5a8b0f(0xe2)](_0x2ee547=>isImageContainer(_0x2ee547[_0x5a8b0f(0x89)])&&Object[_0x5a8b0f(0xe1)](_0x2f8bbc['mapping'])['includes'](_0x2ee547[_0x5a8b0f(0x161)]))?new Map():undefined;await checkArchive(_0x2907c6,_0x31febe);const _0x205d4d=new a144_0x3eec37[(_0x5a8b0f(0x106))]();await _0x205d4d[_0x5a8b0f(0x15b)][_0x5a8b0f(0x10b)](_0x2907c6,{'ignoreNodes':[_0x5a8b0f(0x151)]});const _0x3112c3=_0x2f8bbc[_0x5a8b0f(0x132)];let _0x4d6df8;if(_0x3112c3===undefined)_0x4d6df8=_0x205d4d[_0x5a8b0f(0x119)][0x0];else{if(typeof _0x3112c3===_0x5a8b0f(0x117)&&_0x205d4d[_0x5a8b0f(0x119)][_0x5a8b0f(0xe2)](_0x36a995=>_0x36a995[_0x5a8b0f(0xed)]===_0x3112c3))_0x4d6df8=_0x205d4d[_0x5a8b0f(0x119)][_0x5a8b0f(0x154)](_0x2ec732=>_0x2ec732[_0x5a8b0f(0xed)]===_0x3112c3);else{if(typeof _0x3112c3===_0x5a8b0f(0xab)||/^\d+$/['test'](_0x3112c3)){const _0x232bc3=Number(_0x3112c3);if(!Number[_0x5a8b0f(0x12a)](_0x232bc3)||_0x232bc3<0x1)throw new Error(_0x5a8b0f(0x141));_0x4d6df8=_0x205d4d[_0x5a8b0f(0x119)][_0x232bc3-0x1];}else _0x4d6df8=_0x205d4d[_0x5a8b0f(0x119)][_0x5a8b0f(0x154)](_0x2673bc=>_0x2673bc[_0x5a8b0f(0xed)]===_0x3112c3);}}if(!_0x4d6df8)throw new Error(_0x5a8b0f(0x162));if(_0x4d6df8['rowCount']>MAX_ROWS||_0x4d6df8[_0x5a8b0f(0x9c)]>MAX_COLUMNS)throw new Error(_0x5a8b0f(0x14e));if((_0x4d6df8['model'][_0x5a8b0f(0xf5)]??[])[_0x5a8b0f(0xd2)])throw new Error(_0x5a8b0f(0x7c));const _0x5a7ffb=new Map();_0x4d6df8[_0x5a8b0f(0x115)](_0x2b6076)[_0x5a8b0f(0x15f)]((_0x4c7ff3,_0xc9eea7)=>{const _0x320e8a=_0x5a8b0f,_0x2c448a=valueOf(_0x4c7ff3);if(typeof _0x2c448a!=='string'||!_0x2c448a[_0x320e8a(0x109)]()||Buffer[_0x320e8a(0x121)](_0x2c448a)>MAX_CELL)throw new Error('Headers\x20must\x20be\x20non-empty\x20text\x20cells\x20no\x20larger\x20than\x2064\x20KB.');if(_0x5a7ffb['has'](_0x2c448a))throw new Error(_0x320e8a(0x155)+_0x2c448a+'.');_0x5a7ffb[_0x320e8a(0x130)](_0x2c448a,_0xc9eea7);});const _0x195e0c=Object[_0x5a8b0f(0x73)](_0x2f8bbc[_0x5a8b0f(0xea)]);if(!_0x195e0c[_0x5a8b0f(0xd2)])throw new Error(_0x5a8b0f(0x93));const _0x4524de=new Map(_0x2f8bbc[_0x5a8b0f(0xc3)][_0x5a8b0f(0x11a)](_0x258d7d=>[_0x258d7d[_0x5a8b0f(0x161)],_0x258d7d]));if(_0x4524de['size']!==_0x2f8bbc[_0x5a8b0f(0xc3)][_0x5a8b0f(0xd2)])throw new Error(_0x5a8b0f(0x70));if(_0x2f8bbc[_0x5a8b0f(0xc3)]['some'](_0x1c2d73=>_0x1c2d73[_0x5a8b0f(0x89)]['toLowerCase']()===_0x5a8b0f(0x12c)))throw new Error(_0x5a8b0f(0xd5));const _0x24e49c=new Set();for(const [_0xe4f7ed,_0x54c33d]of _0x195e0c){const _0x4e854c=_0x4524de[_0x5a8b0f(0xdc)](_0x54c33d);if(!_0x5a7ffb['has'](_0xe4f7ed))throw new Error(_0x5a8b0f(0x101)+_0xe4f7ed+'.');if(!_0x4e854c||RESERVED[_0x5a8b0f(0xee)](_0x54c33d)||_0x4e854c[_0x5a8b0f(0x8e)])throw new Error('Unknown\x20or\x20generated\x20mapping\x20field:\x20'+_0x54c33d+'.');if(_0x24e49c[_0x5a8b0f(0xee)](_0x54c33d))throw new Error(_0x5a8b0f(0x97)+_0x54c33d+'.');if(!TYPES['has'](_0x4e854c[_0x5a8b0f(0x89)]['toLowerCase']()))throw new Error(_0x5a8b0f(0x142)+_0x4e854c[_0x5a8b0f(0x89)]+'.');_0x24e49c[_0x5a8b0f(0x13b)](_0x54c33d);}for(const _0x42515f of _0x2f8bbc['fields']){if(_0x42515f['required']&&!_0x42515f[_0x5a8b0f(0x8e)]&&!RESERVED['has'](_0x42515f[_0x5a8b0f(0x161)])&&!_0x24e49c['has'](_0x42515f['code']))throw new Error('Required\x20field\x20is\x20not\x20mapped:\x20'+_0x42515f[_0x5a8b0f(0x161)]+'.');}const _0x3d5089={'fileHash':hash(_0x2907c6),'mappingHash':hash(JSON[_0x5a8b0f(0xe0)]([..._0x195e0c][_0x5a8b0f(0xff)](([_0x148a29],[_0x39053e])=>_0x148a29[_0x5a8b0f(0x156)](_0x39053e)))),'schemaHash':hash(JSON['stringify']([..._0x2f8bbc[_0x5a8b0f(0xc3)]]['sort']((_0x28ac1c,_0x4feca6)=>_0x28ac1c[_0x5a8b0f(0x161)][_0x5a8b0f(0x156)](_0x4feca6['code'])))),'sheet':_0x4d6df8[_0x5a8b0f(0xed)],'rows':[],'emptyRows':[],'errors':[],'warnings':[]},_0x5a1b7f=_0x195e0c['filter'](([,_0x2c3807])=>isImageContainer(_0x4524de['get'](_0x2c3807)[_0x5a8b0f(0x89)])),_0x1e3c0c=_0x5a1b7f[_0x5a8b0f(0x113)](([,_0x3e2b0c])=>_0x4524de[_0x5a8b0f(0xdc)](_0x3e2b0c)[_0x5a8b0f(0x89)]['toLowerCase']()===_0x5a8b0f(0xb7))[_0x5a8b0f(0x11a)](([,_0x2992ab])=>_0x2992ab);if(_0x1e3c0c[_0x5a8b0f(0xd2)])_0x3d5089[_0x5a8b0f(0x9e)]=_0x1e3c0c;const _0x149250=_0x31febe?resolveWorksheetImages(_0x31febe,_0x4d6df8[_0x5a8b0f(0xed)],new Set(_0x5a1b7f[_0x5a8b0f(0x11a)](([_0x503b22])=>_0x5a7ffb[_0x5a8b0f(0xdc)](_0x503b22)))):[],_0x2af00e=new Map();for(const _0x41a3b5 of _0x149250){const _0x42c91a=_0x41a3b5[_0x5a8b0f(0x11d)]+':'+_0x41a3b5[_0x5a8b0f(0x14f)],_0x5bb7fe=_0x2af00e[_0x5a8b0f(0xdc)](_0x42c91a)??[];_0x5bb7fe[_0x5a8b0f(0x10d)](_0x41a3b5),_0x2af00e[_0x5a8b0f(0x130)](_0x42c91a,_0x5bb7fe);}const _0x200f48=new Map();let _0x50c0cb=0x0;_0x5a1b7f['length']&&(_0x3d5089['imageFields']=_0x5a1b7f[_0x5a8b0f(0x11a)](([,_0x54f5e1])=>_0x54f5e1),_0x3d5089[_0x5a8b0f(0x7e)]=[],_0x3d5089[_0x5a8b0f(0x82)]=0x1,_0x3d5089[_0x5a8b0f(0x105)]=[]);const _0x5c61fc=Math[_0x5a8b0f(0xb9)](0x0,..._0x149250[_0x5a8b0f(0x11a)](_0x484a37=>_0x484a37['row']));let _0x39182c=0x0;const _0x9214cc=new Set(_0x195e0c[_0x5a8b0f(0x11a)](([_0x5c5ca4])=>_0x5a7ffb['get'](_0x5c5ca4)));for(let _0x1c0b82=_0x2b6076+0x1;_0x1c0b82<=Math[_0x5a8b0f(0xb9)](_0x4d6df8[_0x5a8b0f(0xcd)],_0x5c61fc);_0x1c0b82++){const _0xbc2b27=_0x4d6df8[_0x5a8b0f(0x115)](_0x1c0b82);if(_0xbc2b27['hidden']||_0x149250['some'](_0x38ca73=>_0x38ca73['row']===_0x1c0b82&&_0x38ca73['hiddenRow']))_0x39182c++;let _0x95dcf4=_0x149250[_0x5a8b0f(0xe2)](_0x3f77a2=>_0x3f77a2[_0x5a8b0f(0x11d)]===_0x1c0b82);_0xbc2b27['eachCell'](_0x2925de=>{const _0x1fc93a=_0x5a8b0f;if(_0x2925de['value']!==null&&_0x2925de[_0x1fc93a(0x108)]!==undefined&&_0x2925de[_0x1fc93a(0x108)]!=='')_0x95dcf4=!![];});if(!_0x95dcf4){_0x3d5089[_0x5a8b0f(0x6f)][_0x5a8b0f(0x10d)](_0x1c0b82);continue;}const _0x9eb5c=Object[_0x5a8b0f(0x135)](null);_0xbc2b27[_0x5a8b0f(0x15f)]((_0x36fc00,_0x1d8b80)=>{const _0x54435b=_0x5a8b0f;if(_0x9214cc[_0x54435b(0xee)](_0x1d8b80))return;try{const _0x1c18ea=valueOf(_0x36fc00);if(typeof _0x1c18ea===_0x54435b(0x117)&&Buffer[_0x54435b(0x121)](_0x1c18ea,'utf8')>MAX_CELL)throw new Error('Cell\x20exceeds\x2064\x20KB.');}catch(_0x54f5b7){_0x3d5089[_0x54435b(0x9b)]['push']({'rowNumber':_0x1c0b82,'field':_0x36fc00[_0x54435b(0x75)],'message':_0x54f5b7[_0x54435b(0x164)]});}});for(const [_0x584cab,_0x2ad3a1]of _0x195e0c){try{const _0x8ce569=_0xbc2b27[_0x5a8b0f(0xeb)](_0x5a7ffb[_0x5a8b0f(0xdc)](_0x584cab)),_0x2a31ba=_0x4524de[_0x5a8b0f(0xdc)](_0x2ad3a1);if(!isImageContainer(_0x2a31ba[_0x5a8b0f(0x89)])){_0x9eb5c[_0x2ad3a1]=convert(valueOf(_0x8ce569),_0x2a31ba);continue;}const _0x2d1753=_0x2af00e['get'](_0x1c0b82+':'+_0x5a7ffb[_0x5a8b0f(0xdc)](_0x584cab))??[];if(_0x2d1753['some'](_0x431b42=>_0x431b42[_0x5a8b0f(0x107)]))throw Error(_0x2d1753[_0x5a8b0f(0x154)](_0x7c822d=>_0x7c822d[_0x5a8b0f(0x107)])[_0x5a8b0f(0x107)]);if(_0x8ce569[_0x5a8b0f(0x108)]!=null&&_0x8ce569[_0x5a8b0f(0x108)]!==''&&!_0x2d1753[_0x5a8b0f(0xe2)](_0x2badb1=>_0x2badb1[_0x5a8b0f(0xa9)]))throw Error('Image\x20cell\x20contains\x20scalar\x20or\x20mixed\x20content.');const _0x2a09fc=[];for(const _0xf2ad7a of _0x2d1753)for(const _0x289e58 of _0xf2ad7a['media']){const _0x4b8a91=_0x31febe[_0x5a8b0f(0xdc)](_0x289e58);if(!_0x4b8a91)throw Error(_0x5a8b0f(0xfa)+_0x289e58+'.');const _0x9ae744=hash(_0x4b8a91),_0x2b641b=_0x200f48[_0x5a8b0f(0xdc)](_0x9ae744)??validateImageBytes(_0x4b8a91);if(!_0x200f48['has'](_0x2b641b[_0x5a8b0f(0xdd)])){_0x50c0cb+=_0x2b641b[_0x5a8b0f(0xd3)];if(_0x50c0cb>0x32*0x400*0x400)throw Error(_0x5a8b0f(0x11b));_0x200f48[_0x5a8b0f(0x130)](_0x2b641b['contentHash'],_0x2b641b);}_0x2a09fc[_0x5a8b0f(0x10d)](_0x2b641b[_0x5a8b0f(0xdd)]);}if(!_0x2a09fc[_0x5a8b0f(0xd2)]&&_0x2a31ba[_0x5a8b0f(0xf8)])throw Error(_0x5a8b0f(0xec));if(_0x2a09fc['length'])_0x3d5089['imageCells'][_0x5a8b0f(0x10d)]({'rowNumber':_0x1c0b82,'field':_0x2ad3a1,'hashes':_0x2a09fc});_0x9eb5c[_0x2ad3a1]=_0x2a09fc[_0x5a8b0f(0x11a)](_0x4e447a=>{const _0x3f7bce=_0x5a8b0f,_0x4239a8=_0x200f48[_0x3f7bce(0xdc)](_0x4e447a),_0x1847ca=_0x4239a8[_0x3f7bce(0x89)]===_0x3f7bce(0x136)?_0x3f7bce(0x126):_0x4239a8[_0x3f7bce(0x89)][_0x3f7bce(0x6d)](0x6),_0x1d63f2=_0x4e447a+'.'+_0x1847ca,_0x554633=_0x3f7bce(0x152)+'0'['repeat'](0x40)+'/'+_0x1d63f2;return _0x2a31ba[_0x3f7bce(0x89)][_0x3f7bce(0xda)]()===_0x3f7bce(0xb7)?{'fileName':_0x1d63f2,'filePath':_0x554633}:{'key':_0x554633,'name':_0x1d63f2,'type':_0x4239a8[_0x3f7bce(0x89)],'size':_0x4239a8[_0x3f7bce(0xd3)]};});}catch(_0x376530){_0x3d5089['errors'][_0x5a8b0f(0x10d)]({'rowNumber':_0x1c0b82,'field':_0x2ad3a1,'message':_0x376530['message']});}}_0x3d5089[_0x5a8b0f(0xc6)][_0x5a8b0f(0x10d)]({'rowNumber':_0x1c0b82,'values':_0x9eb5c});}if(_0x3d5089[_0x5a8b0f(0x105)])_0x3d5089[_0x5a8b0f(0x105)]=[..._0x200f48[_0x5a8b0f(0xe1)]()];if(_0x39182c)_0x3d5089['warnings'][_0x5a8b0f(0x10d)](_0x39182c+_0x5a8b0f(0x7a));return _0x3d5089;}function a144_0x5a8a(){const _0x3632cf=['utf8decode','versionMadeBy','sort','headerRow\x20must\x20be\x20between\x201\x20and\x20100000.','Unknown\x20Excel\x20header:\x20','parseClose','isFile','Image\x20XML\x20event\x20budget\x20exceeded.','media','Workbook','error','value','trim','exceljs/lib/utils/col-cache.js','load','min','push','readUInt16LE','ZIP\x20central\x20directory\x20entry\x20count\x20does\x20not\x20match\x20its\x20contents.','updateTime','update','formula','filter','parseOpen','getRow','readEntry','string','close','worksheets','map','Unique\x20image\x20bytes\x20exceed\x2050\x20MB.','2tJgzwz','row','relativeOffsetOfLocalHeader','Invalid\x20worksheet\x20XML:\x20','Worksheet\x20exceeds\x20','byteLength','creatorId','cells','externalFileAttributes','1448175hCHucu','jpg','XLSX\x20file\x20exceeds\x2020\x20MB.','utf8','Invalid\x20XLSX\x20entry.','isInteger','6ZRnCXo','serial_number','readExtraFields','Excel\x20import\x20only\x20supports\x20METADATA\x20datasets.','properties','set','generalPurposeBitFlag','sheet','./utf8','batchSize\x20must\x20be\x20between\x201\x20and\x201000.','create','image/jpeg','before','subarray','./zipEntry','318350AgTsta','add','Invalid\x20worksheet\x20column\x20range.','appCode','METADATA','XML\x20DTD/entities\x20are\x20not\x20supported.','attributes','Sheet\x20index\x20must\x20be\x20a\x20positive\x20one-based\x20integer.','Unsupported\x20field\x20type:\x20','XLSX\x20file\x20must\x20be\x20a\x20regular\x20file\x20no\x20larger\x20than\x2020\x20MB.','Formula\x20has\x20no\x20cached\x20result.','file','modifierName','processAttributes','digest','modifierId','exceljs/lib/xlsx/xform/book/defined-name-xform.js','Invalid\x20worksheet\x20nested\x20row.','dir','opentag','Worksheet\x20exceeds\x20100000\x20rows\x20or\x20256\x20columns.','col','lastIndexOf','dataValidations','dataset-import/','.xlsx','find','Duplicate\x20header:\x20','localeCompare','Non-canonical\x20worksheet\x20ZIP\x20entry.','Expected\x20a\x20finite\x20safe\x20numeric\x20cell.','entry','isBuffer','xlsx','right','mergeCell','fileComment','eachCell','xl/workbook.xml','code','Requested\x20worksheet\x20does\x20not\x20exist.','charCodeAt','message','slice','sourceType','emptyRows','Duplicate\x20dataset\x20field\x20codes.','./reader/readerFor','batchSize','entries','abs','address','Invalid\x20XLSX\x20archive.','openReadStream','Non-canonical\x20workbook\x20or\x20worksheet\x20ZIP\x20entry.','destroy','\x20hidden\x20row(s)\x20are\x20included\x20in\x20the\x20import.','6460904xvxgsG','Merged\x20cells\x20are\x20not\x20supported.','fileNameRaw','imageCells','readBigUInt64LE','test','Expected\x20a\x20text\x20cell.','parserVersion','fileCommentRaw','8617952lvpxzq','source','Invalid\x20ZIP\x20local\x20file\x20header.','Expected\x20an\x20Excel\x20date\x20cell.','textarea','type','handleUTF8','File\x20is\x20not\x20an\x20XLSX\x20workbook.','readEntryCursor','getTime','generated','isSafeInteger','deleted','Non-canonical\x20or\x20duplicate\x20image\x20archive\x20entry.','isFinite','Mapping\x20must\x20contain\x20at\x20least\x20one\x20field.','extraFields','extraFieldRaw','Invalid\x20worksheet\x20merge\x20reference.','Duplicate\x20mapping\x20target:\x20','Duplicate\x20workbook\x20ZIP\x20entry.','fileName','date','errors','columnCount','isArray','uploadFields','ref','headerRow','from','dataset','Cell\x20exceeds\x2064\x20KB.','end','equals','ranges','fromBuffer','pop','nativeCell','resolve','number','sha256','top','closetag','351xQsKNX','./utils','autoIncrement','split','hyperlink','fileNameStr','Only\x20.xlsx\x20files\x20are\x20supported.','image','upload','compressedSize','max','extname','Dataset\x20field\x20metadata\x20is\x20missing.','bottom','left','datetime','jszip','extend','Worksheet\x20coordinate\x20exceeds\x20','decimal','fields','every','materialized','rows','Worksheet\x20merge\x20work\x20exceeds\x20100000.','text','result','7614090GmNjiv','XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.','\x20columns.','rowCount','hex','Worksheet\x20exceeds\x2016384\x20columns.','integer','Invalid\x20worksheet\x20cell\x20without\x20an\x20initial\x20reference.','length','size','820497Nymnpp','Unsupported\x20dataset\x20field\x20type:\x20serial_number.','Expected\x20a\x20boolean\x20cell.','Invalid\x20defined\x20name\x20coordinate.','startsWith','bitFlag','toLowerCase','readUInt32LE','get','contentHash','11728213vZOXeK','includes','stringify','values','some','exec','doctype','Worksheet\x20deferred\x20cell\x20events\x20exceed\x201000000.','Invalid\x20or\x20duplicate\x20dataset\x20field\x20metadata.','Duplicate\x20ZIP64\x20extended\x20information\x20fields\x20are\x20not\x20supported.','write','boolean','mapping','getCell','Required\x20image\x20value\x20is\x20missing.','name','has','Worksheet\x20column\x20objects\x20exceed\x20100000.','extraFieldsLength','Invalid\x20worksheet\x20cell\x20or\x20merge\x20reference.','decodeEx','Invalid\x20worksheet\x20hyperlink\x20reference.','original','merges','reference','exceljs','required','Invalid\x20worksheet\x20nested\x20cell.','Missing\x20image\x20media:\x20','Invalid\x20dataset\x20field\x20extension\x20metadata.','Invalid\x20worksheet\x20XML.'];a144_0x5a8a=function(){return _0x3632cf;};return a144_0x5a8a();}
|
|
1
|
+
const a144_0x538df5=a144_0x2cb2;(function(_0x42426a,_0x4c4e13){const _0x8f2446=a144_0x2cb2,_0x45f8e1=_0x42426a();while(!![]){try{const _0xa77046=-parseInt(_0x8f2446(0x101))/0x1+parseInt(_0x8f2446(0xe4))/0x2+-parseInt(_0x8f2446(0x123))/0x3*(parseInt(_0x8f2446(0x17c))/0x4)+-parseInt(_0x8f2446(0xef))/0x5*(-parseInt(_0x8f2446(0x124))/0x6)+-parseInt(_0x8f2446(0x1ad))/0x7*(parseInt(_0x8f2446(0x1b3))/0x8)+-parseInt(_0x8f2446(0xcd))/0x9*(parseInt(_0x8f2446(0xdf))/0xa)+-parseInt(_0x8f2446(0x197))/0xb*(-parseInt(_0x8f2446(0x13b))/0xc);if(_0xa77046===_0x4c4e13)break;else _0x45f8e1['push'](_0x45f8e1['shift']());}catch(_0x5f755e){_0x45f8e1['push'](_0x45f8e1['shift']());}}}(a144_0xce79,0x24e4c));import{readFile,stat}from'node:fs/promises';import{createHash}from'node:crypto';import a144_0x1322a2 from'node:path';import{StringDecoder}from'node:string_decoder';import{createRequire}from'node:module';function a144_0x2cb2(_0x11c038,_0x2ddf76){_0x11c038=_0x11c038-0xc7;const _0xce7900=a144_0xce79();let _0x2cb29f=_0xce7900[_0x11c038];return _0x2cb29f;}import{SaxesParser}from'saxes';import a144_0x3f955b from'exceljs';import a144_0x332c52 from'yauzl';import{resolveWorksheetImages}from'./image-ooxml.js';import{validateImageBytes}from'./image-bytes.js';const MAX_FILE=0x14*0x400*0x400,MAX_EXPANDED=0x64*0x400*0x400,MAX_ROWS=0x186a0,MAX_COLUMNS=0x100,MAX_XML_ROWS=0x100000,MAX_XML_COLUMNS=0x4000,MAX_CELL=0x40*0x400,RESERVED=new Set(['id',a144_0x538df5(0x168),a144_0x538df5(0x158),'datasetId',a144_0x538df5(0x170),a144_0x538df5(0xf3),a144_0x538df5(0x102),'modifierName',a144_0x538df5(0x193),a144_0x538df5(0x175),a144_0x538df5(0x16c)]),TYPES=new Set(['string',a144_0x538df5(0xfb),a144_0x538df5(0x169),a144_0x538df5(0x14d),'decimal',a144_0x538df5(0x167),a144_0x538df5(0x11b),'date',a144_0x538df5(0x11c),a144_0x538df5(0xf9),a144_0x538df5(0x110)]),isImageContainer=_0x52a4c3=>['image',a144_0x538df5(0x110)][a144_0x538df5(0x1a8)](_0x52a4c3[a144_0x538df5(0x19c)]()),hash=_0x26c8b0=>createHash(a144_0x538df5(0x1a7))[a144_0x538df5(0x1a9)](_0x26c8b0)[a144_0x538df5(0x10c)](a144_0x538df5(0x105)),require=createRequire(import.meta.url),DefinedNameXform=require('exceljs/lib/xlsx/xform/book/defined-name-xform.js'),nameCoordinates=require(a144_0x538df5(0xd7)),ABSOLUTE_NAME_RANGE=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/,excelRequire=createRequire(require[a144_0x538df5(0xfc)](a144_0x538df5(0xd1))),zipRequire=createRequire(excelRequire[a144_0x538df5(0xfc)]('jszip')),ZipEntry=zipRequire('./zipEntry'),zipReader=zipRequire(a144_0x538df5(0x19d)),zipUtf8=zipRequire(a144_0x538df5(0x194)),zipPaths=zipRequire('./utils');function centralDirectoryEnd(_0x5505ac,_0x1b76fc){const _0x6cb06c=a144_0x538df5,_0x400bcb=()=>new Error('Invalid\x20ZIP\x20central\x20directory\x20layout.'),_0x4e4549=_0x5505ac[_0x6cb06c(0x182)](Buffer[_0x6cb06c(0x143)]([0x50,0x4b,0x5,0x6]));if(_0x4e4549<0x0||_0x4e4549+0x16>_0x5505ac[_0x6cb06c(0x14f)]||_0x4e4549+0x16+_0x5505ac[_0x6cb06c(0x177)](_0x4e4549+0x14)!==_0x5505ac[_0x6cb06c(0x14f)])throw _0x400bcb();let _0x2892ec=_0x5505ac['readUInt16LE'](_0x4e4549+0xa),_0x4d0bc1=_0x5505ac[_0x6cb06c(0xe1)](_0x4e4549+0xc),_0x2b766e=_0x5505ac[_0x6cb06c(0xe1)](_0x4e4549+0x10),_0x150547=_0x4e4549;const _0x3b4801=_0x4e4549-0x14,_0x5c91f4=_0x3b4801>=0x0&&_0x5505ac['readUInt32LE'](_0x3b4801)===0x7064b50,_0x3e16cc=[0x4,0x6,0x8,0xa][_0x6cb06c(0x1b8)](_0x2eb951=>_0x5505ac[_0x6cb06c(0x177)](_0x4e4549+_0x2eb951)===0xffff)||_0x4d0bc1===0xffffffff||_0x2b766e===0xffffffff;if(_0x5c91f4!==_0x3e16cc)throw _0x400bcb();if(_0x5c91f4){if(_0x5505ac[_0x6cb06c(0x182)](Buffer['from']([0x50,0x4b,0x6,0x7]))!==_0x3b4801)throw _0x400bcb();const _0x4ab2c9=_0x26671b=>{const _0x15d969=Number(_0x5505ac['readBigUInt64LE'](_0x26671b));if(!Number['isSafeInteger'](_0x15d969))throw _0x400bcb();return _0x15d969;};_0x150547=_0x4ab2c9(_0x3b4801+0x8);if(_0x5505ac[_0x6cb06c(0xe1)](_0x3b4801+0x4)!==0x0||_0x5505ac[_0x6cb06c(0xe1)](_0x3b4801+0x10)!==0x1||_0x150547>_0x3b4801-0x38||_0x5505ac[_0x6cb06c(0xe1)](_0x150547)!==0x6064b50||_0x4ab2c9(_0x150547+0x4)!==0x2c||_0x150547+0x38!==_0x3b4801||_0x5505ac[_0x6cb06c(0xe1)](_0x150547+0x10)!==0x0||_0x5505ac[_0x6cb06c(0xe1)](_0x150547+0x14)!==0x0)throw _0x400bcb();_0x2892ec=_0x4ab2c9(_0x150547+0x20),_0x4d0bc1=_0x4ab2c9(_0x150547+0x28),_0x2b766e=_0x4ab2c9(_0x150547+0x30);if(_0x4ab2c9(_0x150547+0x18)!==_0x2892ec)throw _0x400bcb();}else{if(_0x5505ac['readUInt16LE'](_0x4e4549+0x4)!==0x0||_0x5505ac['readUInt16LE'](_0x4e4549+0x6)!==0x0||_0x5505ac[_0x6cb06c(0x177)](_0x4e4549+0x8)!==_0x2892ec)throw _0x400bcb();}const _0x5b8fa8=_0x1b76fc['readEntryCursor'];if(_0x2b766e!==_0x5b8fa8||_0x2892ec!==_0x1b76fc[_0x6cb06c(0x104)]||_0x2b766e+_0x4d0bc1!==_0x150547)throw _0x400bcb();return _0x150547;}function consumerEntryName(_0x5ddf5a,_0x50b835){const _0x4f6860=a144_0x538df5;if(_0x50b835[_0x4f6860(0x199)][_0x4f6860(0xcc)](_0x14c4af=>_0x14c4af['id']===0x1)[_0x4f6860(0x14f)]>0x1)throw new Error(_0x4f6860(0x160));const _0x2298b5=_0x50b835,_0x312e53=_0x50b835[_0x4f6860(0xd3)];if(!Buffer['isBuffer'](_0x2298b5['fileNameRaw'])||!Buffer['isBuffer'](_0x2298b5['extraFieldRaw'])||!Buffer['isBuffer'](_0x2298b5['fileCommentRaw'])||!Number[_0x4f6860(0x155)](_0x312e53)||_0x312e53<0x0||_0x312e53>_0x5ddf5a[_0x4f6860(0x14f)]-0x1e||_0x5ddf5a[_0x4f6860(0xe1)](_0x312e53)!==0x4034b50)throw new Error(_0x4f6860(0xee));const _0x211cb0=_0x312e53+0x1e+_0x5ddf5a[_0x4f6860(0x177)](_0x312e53+0x1a),_0x5c8b64=_0x211cb0+_0x5ddf5a['readUInt16LE'](_0x312e53+0x1c)+_0x50b835[_0x4f6860(0x190)];if(!Number['isSafeInteger'](_0x5c8b64)||_0x5c8b64>_0x5ddf5a[_0x4f6860(0x14f)])throw new Error(_0x4f6860(0xee));if(_0x211cb0>_0x5ddf5a['length']||!_0x5ddf5a['subarray'](_0x312e53+0x1e,_0x211cb0)[_0x4f6860(0x122)](_0x2298b5[_0x4f6860(0x132)]))throw new Error(_0x4f6860(0xf0));const _0x2a9a14=new ZipEntry({},{'decodeFileName':zipUtf8[_0x4f6860(0xf1)]});_0x2a9a14[_0x4f6860(0xe8)]=_0x50b835[_0x4f6860(0xd5)],_0x2a9a14['fileName']=_0x2298b5['fileNameRaw'],_0x2a9a14[_0x4f6860(0x1b7)]=_0x2298b5[_0x4f6860(0x18b)],_0x2a9a14[_0x4f6860(0x165)]=_0x2298b5[_0x4f6860(0x17e)][_0x4f6860(0x14f)],_0x2a9a14[_0x4f6860(0x16a)](zipReader(_0x2298b5[_0x4f6860(0x17e)])),_0x2a9a14['handleUTF8'](),_0x2a9a14[_0x4f6860(0x107)]=_0x50b835[_0x4f6860(0x107)],_0x2a9a14[_0x4f6860(0x15d)]=_0x50b835['externalFileAttributes'],_0x2a9a14[_0x4f6860(0x1a1)]();const _0x48eaf8=_0x2a9a14['dir']||Boolean((_0x2a9a14[_0x4f6860(0x139)]??0x0)&0x4000),_0x4a9e47=zipPaths['resolve'](_0x2a9a14['fileNameStr']),_0x38da4a=_0x4a9e47['startsWith']('/')?_0x4a9e47[_0x4f6860(0x153)](0x1):_0x4a9e47;return{'name':_0x38da4a,'original':_0x2a9a14['fileNameStr'],'directory':_0x48eaf8};}export function normalizeImportFields(_0x30b9ed){const _0x48f7dc=a144_0x538df5;if(!_0x30b9ed||(_0x30b9ed[_0x48f7dc(0x141)]??_0x30b9ed[_0x48f7dc(0x15b)]?.[_0x48f7dc(0x186)])!==_0x48f7dc(0xf6))throw new Error(_0x48f7dc(0xf7));const _0x55b151=Array[_0x48f7dc(0x1b9)](_0x30b9ed[_0x48f7dc(0xde)]),_0x5c4d2a=_0x55b151?_0x30b9ed['fields']:_0x30b9ed[_0x48f7dc(0x178)];if(!Array[_0x48f7dc(0x1b9)](_0x5c4d2a)||_0x5c4d2a[_0x48f7dc(0x14f)]===0x0)throw new Error(_0x48f7dc(0x19e));const _0x347184=[],_0x3db400=new Set();for(const _0x48e80d of _0x5c4d2a){if(_0x48e80d[_0x48f7dc(0x16c)]===!![])continue;let _0x3a0698=_0x48e80d['extend']??{};if(!_0x55b151&&typeof _0x3a0698===_0x48f7dc(0x11a)){try{_0x3a0698=JSON[_0x48f7dc(0xfd)](_0x3a0698);}catch{throw new Error(_0x48f7dc(0x138));}if(!_0x3a0698||typeof _0x3a0698!==_0x48f7dc(0x1a0)||Array[_0x48f7dc(0x1b9)](_0x3a0698))throw new Error('Invalid\x20dataset\x20field\x20extension\x20metadata.');}const _0x1c6aa8=_0x55b151?_0x48e80d[_0x48f7dc(0x171)]:_0x48e80d['code'],_0x40f0df=_0x55b151?_0x48e80d['doType']:_0x48e80d[_0x48f7dc(0x129)]??_0x48e80d[_0x48f7dc(0x12f)];if(typeof _0x1c6aa8!==_0x48f7dc(0x11a)||!_0x1c6aa8||typeof _0x40f0df!==_0x48f7dc(0x11a)||_0x3db400[_0x48f7dc(0x157)](_0x1c6aa8))throw new Error(_0x48f7dc(0x13d));if(_0x40f0df[_0x48f7dc(0x19c)]()===_0x48f7dc(0x108))throw new Error('Unsupported\x20dataset\x20field\x20type:\x20serial_number.');_0x3db400[_0x48f7dc(0x16f)](_0x1c6aa8);const _0x199c68=_0x55b151?_0x48e80d:_0x3a0698,_0x1cc613={'code':_0x1c6aa8,'type':_0x40f0df,'required':_0x199c68[_0x48f7dc(0x179)]===!![]};if(RESERVED[_0x48f7dc(0x157)](_0x1c6aa8)||_0x199c68[_0x48f7dc(0x198)]===!![]||_0x199c68[_0x48f7dc(0xce)]===!![])_0x1cc613[_0x48f7dc(0x198)]=!![];_0x347184['push'](_0x1cc613);}return _0x347184;}function a144_0xce79(){const _0x319ad8=['formula','sort','Invalid\x20worksheet\x20merge\x20reference.','pop','headerRow\x20must\x20be\x20between\x201\x20and\x20100000.','sha256','includes','update','Requested\x20worksheet\x20does\x20not\x20exist.','min','clear','17780CzkfzT','Invalid\x20worksheet\x20cell\x20without\x20an\x20initial\x20reference.','XLSX\x20file\x20exceeds\x2020\x20MB.','file','size','reference','344xhphxa','Required\x20image\x20value\x20is\x20missing.','ref','doctype','fileComment','some','isArray','rows','Duplicate\x20workbook\x20ZIP\x20entry.','Image\x20XML\x20event\x20budget\x20exceeded.','imageFields','eachCell','filter','14499xLtqqp','autoIncrement','headerRow','Image\x20XML\x20node\x20budget\x20exceeded.','exceljs','Worksheet\x20column\x20objects\x20exceed\x20100000.','relativeOffsetOfLocalHeader','decimal','generalPurposeBitFlag','every','exceljs/lib/utils/col-cache.js','bottom','Worksheet\x20coordinate\x20exceeds\x20','merges','utf8','batchSize\x20must\x20be\x20between\x201\x20and\x201000.','definedName','fields','390QSvwhk','Expected\x20a\x20text\x20cell.','readUInt32LE','mapping','materialized','121672DxEMYQ','closetag','Invalid\x20worksheet\x20coordinate.','Non-canonical\x20or\x20duplicate\x20image\x20archive\x20entry.','bitFlag','Worksheet\x20merge\x20work\x20exceeds\x20100000.','value','getRow','Duplicate\x20dataset\x20field\x20codes.','uploadFields','Invalid\x20ZIP\x20local\x20file\x20header.','5EpqLjJ','ZIP\x20local\x20and\x20central\x20entry\x20names\x20must\x20match.','utf8decode','Worksheet\x20exceeds\x20100000\x20rows\x20or\x20256\x20columns.','creatorName','concat','[Content_Types].xml','METADATA','Excel\x20import\x20only\x20supports\x20METADATA\x20datasets.','uncompressedSize','image','dataset-import/','text','resolve','parse','get','Expected\x20a\x20boolean\x20cell.','find','246178rbQDlt','modifierId','Invalid\x20worksheet\x20hyperlink\x20reference.','entryCount','hex','charCodeAt','versionMadeBy','serial_number','Invalid\x20worksheet\x20nested\x20cell.','map','imageCells','digest','isFile','date','data','upload','localeCompare','trim','cells','parseOpen','sheet','Unknown\x20Excel\x20header:\x20','getCell','Invalid\x20worksheet\x20XML.','right','string','boolean','datetime','XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.','isFinite','result','Invalid\x20defined\x20name\x20coordinate.','Invalid\x20worksheet\x20cell\x20or\x20merge\x20reference.','equals','141pjaAmO','1051170Nouomh','columnCount','test','readEntry','Expected\x20an\x20Excel\x20date\x20cell.','type','_xlnm.Print_Titles','Duplicate\x20mapping\x20target:\x20','Image\x20cell\x20contains\x20scalar\x20or\x20mixed\x20content.','opentag','XLSX\x20file\x20must\x20be\x20a\x20regular\x20file\x20no\x20larger\x20than\x2020\x20MB.','dataType','Unsupported\x20field\x20type:\x20','hiddenRow','fileNameRaw','attributes','startsWith','decodeEx','write','Mapping\x20must\x20contain\x20at\x20least\x20one\x20field.','Invalid\x20dataset\x20field\x20extension\x20metadata.','unixPermissions','Headers\x20must\x20be\x20non-empty\x20text\x20cells\x20no\x20larger\x20than\x2064\x20KB.','3760116RDlrVv','col','Invalid\x20or\x20duplicate\x20dataset\x20field\x20metadata.','split','entry','error','source','entries','from','Invalid\x20worksheet\x20XML:\x20','abs','row','top','Workbook\x20defined\x20name\x20work\x20exceeds\x20100000.','extname','directory','openReadStream','push','number','Non-canonical\x20worksheet\x20ZIP\x20entry.','length','close','fromBuffer','Invalid\x20worksheet\x20column\x20range.','slice','batchSize','isSafeInteger','rowCount','has','appCode','left','parseInt','dataset','image/jpeg','externalFileAttributes','contentHash','stringify','Duplicate\x20ZIP64\x20extended\x20information\x20fields\x20are\x20not\x20supported.','getTime','Cell\x20exceeds\x2064\x20KB.','Formula\x20has\x20no\x20cached\x20result.','isInteger','extraFieldsLength','sharedFormula','integer','tenantCode','textarea','readExtraFields','\x20columns.','deleted','Invalid\x20XLSX\x20archive.','repeat','add','creatorId','name','Required\x20value\x20is\x20missing.','parserVersion','Duplicate\x20header:\x20','updateTime','\x20hidden\x20row(s)\x20are\x20included\x20in\x20the\x20import.','readUInt16LE','properties','required','errors','worksheets','24968jAcZpC','media','extraFieldRaw','warnings','emptyRows','address','lastIndexOf','Sheet\x20index\x20must\x20be\x20a\x20positive\x20one-based\x20integer.','max','ranges','sourceType','message','byteLength','set','destroy','fileCommentRaw','Worksheet\x20exceeds\x2016384\x20columns.','original','mergeCell','before','compressedSize','parseClose','values','createTime','./utf8','nativeCell','Worksheet\x20deferred\x20cell\x20events\x20exceed\x201000000.','22feFHTi','generated','extraFields','code','end','toLowerCase','./reader/readerFor','Dataset\x20field\x20metadata\x20is\x20missing.','ZIP\x20central\x20directory\x20entry\x20count\x20does\x20not\x20match\x20its\x20contents.','object','processAttributes'];a144_0xce79=function(){return _0x319ad8;};return a144_0xce79();}async function checkArchive(_0x5e0def,_0x356042){await new Promise((_0xd654d1,_0x6da8f)=>{const _0xaa3712=a144_0x2cb2;a144_0x332c52[_0xaa3712(0x151)](_0x5e0def,{'lazyEntries':!![],'validateEntrySizes':!![]},(_0x185996,_0x581f46)=>{const _0x258877=_0xaa3712;if(_0x185996||!_0x581f46){_0x6da8f(_0x185996??new Error(_0x258877(0x16d)));return;}let _0x4e77bf;try{_0x4e77bf=centralDirectoryEnd(_0x5e0def,_0x581f46);}catch(_0x1ac40c){_0x581f46[_0x258877(0x150)](),_0x6da8f(_0x1ac40c);return;}let _0xa3abf6=0x0,_0xd1f3f5=0x0,_0x43d2f2=0x0,_0x59715e=0x0,_0x1970a0=0x0,_0x382b91=0x0,_0x5a0044=0x0,_0x5b9fc3=0x0,_0xaaf541=0x0,_0x3b2ba4=![],_0x4bff88;const _0x5c5763=new Set(),_0x331a77=_0x589b97=>{const _0x3cded9=_0x258877;if(_0x3b2ba4)return;_0x3b2ba4=!![],_0x4bff88?.[_0x3cded9(0x18a)](),_0x581f46[_0x3cded9(0x150)](),_0x6da8f(_0x589b97);},_0x19f11c=(_0xe80262,_0x13473e)=>{const _0x49353b=_0x258877;if(!_0xe80262||!/^\d+$/['test'](_0xe80262))throw new Error(_0x49353b(0xe6));const _0x3173d3=Number(_0xe80262);if(!Number[_0x49353b(0x155)](_0x3173d3)||_0x3173d3<0x1||_0x3173d3>_0x13473e)throw new Error(_0x49353b(0xd9)+_0x13473e+'.');return _0x3173d3;},_0xfb5eeb=(_0x2278a2,_0xa8dbba=MAX_XML_COLUMNS)=>{const _0x283bd3=_0x258877,_0x3def84=/^\$?([A-Z]{1,3})\$?(\d+)$/['exec'](_0x2278a2);if(!_0x3def84)throw new Error(_0x283bd3(0x121));let _0x2e28f1=0x0;for(const _0x1a055e of _0x3def84[0x1])_0x2e28f1=_0x2e28f1*0x1a+_0x1a055e[_0x283bd3(0x106)](0x0)-0x40;if(_0x2e28f1>_0xa8dbba)throw new Error('Worksheet\x20exceeds\x20'+_0xa8dbba+_0x283bd3(0x16b));return{'row':_0x19f11c(_0x3def84[0x2],MAX_XML_ROWS),'col':_0x2e28f1};},_0x113fb5=_0x561165=>{const _0x3bac7f=_0x258877;if(_0x561165[_0x3bac7f(0x171)]==='_xlnm.Print_Area'||_0x561165[_0x3bac7f(0x171)]===_0x3bac7f(0x12a))return;for(const _0x385823 of _0x561165[_0x3bac7f(0x185)]){if(!ABSOLUTE_NAME_RANGE[_0x3bac7f(0x126)](_0x385823[_0x3bac7f(0x13e)]('!')[_0x3bac7f(0x1a5)]()||''))continue;const _0x4fd5a9=nameCoordinates[_0x3bac7f(0x135)](_0x385823),_0x4326a6='top'in _0x4fd5a9,_0x48972d=_0x4326a6?[_0x4fd5a9[_0x3bac7f(0x147)],_0x4fd5a9[_0x3bac7f(0xd8)]]:[_0x4fd5a9[_0x3bac7f(0x146)]],_0x1cd0fc=_0x4326a6?[_0x4fd5a9[_0x3bac7f(0x159)],_0x4fd5a9[_0x3bac7f(0x119)]]:[_0x4fd5a9['col']],_0x3d33a2=(_0x3388a3,_0x276afb)=>Number[_0x3bac7f(0x155)](_0x3388a3)&&_0x3388a3>=0x1&&_0x3388a3<=_0x276afb;if(!_0x48972d['every'](_0x35c768=>_0x3d33a2(_0x35c768,MAX_XML_ROWS))||!_0x1cd0fc[_0x3bac7f(0xd6)](_0x27139a=>_0x3d33a2(_0x27139a,MAX_XML_COLUMNS)))throw new Error(_0x3bac7f(0x120));_0x5a0044+=_0x4326a6?(_0x4fd5a9[_0x3bac7f(0xd8)]-_0x4fd5a9[_0x3bac7f(0x147)]+0x1)*(_0x4fd5a9[_0x3bac7f(0x119)]-_0x4fd5a9['left']+0x1):0x1;if(_0x5a0044>MAX_ROWS)throw new Error(_0x3bac7f(0x148));}};_0x581f46['on'](_0x258877(0x140),_0x331a77),_0x581f46['on'](_0x258877(0x13f),_0x2ae9b3=>{const _0x496f9f=_0x258877;if(_0x3b2ba4)return;if(++_0x43d2f2>0x2710||(_0xa3abf6+=_0x2ae9b3[_0x496f9f(0xf8)])>MAX_EXPANDED){_0x331a77(new Error(_0x496f9f(0x11d)));return;}let _0x27f8b8;try{_0x27f8b8=consumerEntryName(_0x5e0def,_0x2ae9b3);}catch(_0x382497){_0x331a77(_0x382497);return;}if(_0x27f8b8[_0x496f9f(0x14a)]){_0x581f46[_0x496f9f(0x127)]();return;}const _0x241eb7=_0x27f8b8['name'];if(_0x356042&&(_0x241eb7!==_0x27f8b8['original']||_0x5c5763['has'](_0x241eb7)||_0x241eb7[_0x496f9f(0x134)]('/')||_0x241eb7['includes']('\x5c'))){_0x331a77(new Error(_0x496f9f(0xe7)));return;}if(_0x241eb7!==_0x27f8b8[_0x496f9f(0x18d)]&&(_0x241eb7==='xl/workbook.xml'||/xl\/worksheets\/sheet(\d+)[.]xml/[_0x496f9f(0x126)](_0x241eb7))){_0x331a77(new Error('Non-canonical\x20workbook\x20or\x20worksheet\x20ZIP\x20entry.'));return;}const _0xbbfb6e=_0x241eb7==='xl/workbook.xml';if(_0xbbfb6e&&_0x5c5763[_0x496f9f(0x157)](_0x241eb7)){_0x331a77(new Error(_0x496f9f(0xc8)));return;}_0x5c5763[_0x496f9f(0x16f)](_0x241eb7);const _0x166b92=/xl\/worksheets\/sheet(\d+)[.]xml/[_0x496f9f(0x126)](_0x241eb7);if(_0x166b92&&!/^xl\/worksheets\/sheet\d+[.]xml$/['test'](_0x241eb7)){_0x331a77(new Error(_0x496f9f(0x14e)));return;}_0x581f46[_0x496f9f(0x14b)](_0x2ae9b3,(_0x3893a9,_0x1e495d)=>{const _0x7d5373=_0x496f9f;if(_0x3b2ba4){_0x1e495d?.[_0x7d5373(0x18a)]();return;}if(_0x3893a9||!_0x1e495d){_0x331a77(_0x3893a9??new Error('Invalid\x20XLSX\x20entry.'));return;}_0x4bff88=_0x1e495d;const _0x1271bb=_0x356042?[]:undefined,_0xe551fc=_0x356042&&/[.](xml|rels)$/[_0x7d5373(0x126)](_0x241eb7)?new StringDecoder('utf8'):undefined,_0x100d68=_0xe551fc?new SaxesParser({'xmlns':![]}):undefined,_0x648e5b=()=>{const _0x4c84b6=_0x7d5373;if(++_0xaaf541>0x1e8480)throw Error(_0x4c84b6(0xc9));};_0x100d68?.['on'](_0x7d5373(0x1b6),()=>{throw Error('XML\x20DTD/entities\x20are\x20not\x20supported.');}),_0x100d68?.['on'](_0x7d5373(0x12d),()=>{const _0x507af1=_0x7d5373;_0x648e5b();if(++_0x5b9fc3>0x7a120)throw Error(_0x507af1(0xd0));}),_0x100d68?.['on'](_0x7d5373(0xfb),_0x648e5b),_0x100d68?.['on']('closetag',_0x648e5b),_0x100d68?.['on'](_0x7d5373(0x140),_0x2a1264=>{throw _0x2a1264;});const _0x327e4e=_0x166b92||_0xbbfb6e?new StringDecoder('utf8'):undefined,_0x1f27b8=_0x166b92||_0xbbfb6e?new SaxesParser({'xmlns':![]}):undefined;let _0x7cc4f5,_0x4d3f16=0x0,_0x49c9f0=0x0,_0x2147e4,_0x121043,_0x26d73d=![],_0x4b071b=![],_0x268740,_0x27fb2b,_0x53cdf1,_0x45fdab=![];const _0x2c6f9b=[],_0x3175e2=new Set();let _0x469297;const _0x5718db=(_0x277c93,_0x34dd78=0x0)=>{const _0x4b55e5=_0x7d5373;_0x1970a0+=_0x34dd78+Math['max'](0x0,_0x277c93-_0x49c9f0),_0x49c9f0=Math[_0x4b55e5(0x184)](_0x49c9f0,_0x277c93);if(_0x1970a0>MAX_ROWS)throw new Error(_0x4b55e5(0xd2));};_0x1f27b8?.['on'](_0x7d5373(0x12d),_0x526ae3=>{const _0x4cc6ea=_0x7d5373;if(_0xbbfb6e){if(!_0x7cc4f5&&_0x526ae3['name']===_0x4cc6ea(0xdd))_0x7cc4f5=new DefinedNameXform();_0x7cc4f5?.[_0x4cc6ea(0x114)](_0x526ae3);return;}if(_0x526ae3[_0x4cc6ea(0x171)]===_0x4cc6ea(0x146)){if(_0x4b071b)throw new Error('Invalid\x20worksheet\x20nested\x20row.');_0x19f11c(_0x526ae3[_0x4cc6ea(0x133)]['r'],MAX_XML_ROWS),_0x2147e4=undefined,_0x53cdf1=undefined,_0x45fdab=![];}else{if(_0x526ae3['name']==='c'){if(_0x4b071b)throw new Error(_0x4cc6ea(0x109));_0x4b071b=!![],_0x26d73d=Boolean(Number[_0x4cc6ea(0x15a)](_0x526ae3[_0x4cc6ea(0x133)]['s']??'',0xa)),_0x469297=undefined,_0x268740=_0x526ae3[_0x4cc6ea(0x133)]['r']||undefined,_0x27fb2b=_0x268740?_0xfb5eeb(_0x268740):undefined;if(_0x27fb2b)_0x121043=_0x27fb2b;else _0x121043=_0x2147e4?{'row':_0x2147e4[_0x4cc6ea(0x146)],'col':_0x2147e4[_0x4cc6ea(0x13c)]+0x1}:undefined;}else{if(_0x4b071b&&['f','v','t'][_0x4cc6ea(0x1a8)](_0x526ae3[_0x4cc6ea(0x171)])){_0x469297=_0x526ae3['name'];if(_0x526ae3[_0x4cc6ea(0x171)]==='f'&&_0x526ae3[_0x4cc6ea(0x133)]['t'])_0x26d73d=!![];}else{if(_0x4b071b&&_0x526ae3[_0x4cc6ea(0x171)]==='r')_0x26d73d=!![];else{if(_0x526ae3[_0x4cc6ea(0x171)]==='hyperlink'){const _0x5272a4=_0x526ae3[_0x4cc6ea(0x133)][_0x4cc6ea(0x1b5)];if(!_0x5272a4)throw new Error('Invalid\x20worksheet\x20hyperlink\x20reference.');const _0x1386c8=_0x5272a4[_0x4cc6ea(0x13e)](':');if(_0x1386c8['length']>0x2)throw new Error(_0x4cc6ea(0x103));const _0x221998=_0xfb5eeb(_0x1386c8[0x0]),_0x42d290=_0xfb5eeb(_0x1386c8[0x1]??_0x1386c8[0x0]);_0x3175e2[_0x4cc6ea(0x16f)](_0x5272a4),_0x5718db(Math[_0x4cc6ea(0x184)](_0x221998[_0x4cc6ea(0x13c)],_0x42d290[_0x4cc6ea(0x13c)]),0x1);}else{if(_0x526ae3[_0x4cc6ea(0x171)]===_0x4cc6ea(0x13c)){const _0x23c5a3=_0x19f11c(_0x526ae3[_0x4cc6ea(0x133)][_0x4cc6ea(0x1ab)],0x4000),_0x286e44=_0x19f11c(_0x526ae3['attributes'][_0x4cc6ea(0x184)],0x4000);if(_0x23c5a3>_0x286e44)throw new Error(_0x4cc6ea(0x152));_0x5718db(_0x286e44,0x1);}else{if(_0x526ae3['name']===_0x4cc6ea(0x18e)){const _0x379325=_0x526ae3[_0x4cc6ea(0x133)][_0x4cc6ea(0x1b5)];if(!_0x379325)throw new Error(_0x4cc6ea(0x1a4));const _0xefed36=_0x379325[_0x4cc6ea(0x13e)](':');if(_0xefed36['length']>0x2)throw new Error(_0x4cc6ea(0x1a4));const _0x222ba4=_0xfb5eeb(_0xefed36[0x0]),_0x405e5f=_0xfb5eeb(_0xefed36[0x1]??_0xefed36[0x0]);_0x5718db(Math[_0x4cc6ea(0x184)](_0x222ba4['col'],_0x405e5f[_0x4cc6ea(0x13c)]));const _0x4eca8f=(Math[_0x4cc6ea(0x145)](_0x405e5f[_0x4cc6ea(0x146)]-_0x222ba4[_0x4cc6ea(0x146)])+0x1)*(Math[_0x4cc6ea(0x145)](_0x405e5f[_0x4cc6ea(0x13c)]-_0x222ba4[_0x4cc6ea(0x13c)])+0x1);_0x59715e+=_0x4eca8f+_0x4d3f16++;if(_0x59715e>MAX_ROWS)throw new Error(_0x4cc6ea(0xe9));}}}}}}}}),_0x1f27b8?.['on']('text',_0x3fd434=>{if(_0xbbfb6e){_0x7cc4f5?.['parseText'](_0x3fd434);return;}if(_0x4b071b&&_0x469297&&_0x3fd434)_0x26d73d=!![];}),_0x1f27b8?.['on'](_0x7d5373(0xe5),_0x485ca4=>{const _0x2201bd=_0x7d5373;if(_0xbbfb6e){_0x7cc4f5&&!_0x7cc4f5[_0x2201bd(0x191)]()&&(_0x113fb5(_0x7cc4f5['model']),_0x7cc4f5=undefined);return;}if(_0x485ca4['name']==='c'){!_0x26d73d&&_0x268740&&!_0x53cdf1&&(_0x53cdf1={'before':_0x2147e4,'cells':[]});if(_0x53cdf1){if(++_0x382b91>0xf4240)throw new Error(_0x2201bd(0x196));_0x53cdf1[_0x2201bd(0x113)][_0x2201bd(0x14c)]({'reference':_0x268740,'address':_0x27fb2b,'materialized':_0x26d73d});if(!_0x268740&&_0x26d73d)_0x45fdab=!![];}if(_0x26d73d){if(!_0x53cdf1||_0x268740){if(!_0x121043)throw new Error(_0x2201bd(0x1ae));if(_0x121043[_0x2201bd(0x13c)]>MAX_XML_COLUMNS)throw new Error(_0x2201bd(0x18c));_0x5718db(_0x121043[_0x2201bd(0x13c)]);}_0x2147e4=_0x121043;}_0x4b071b=![],_0x121043=undefined,_0x268740=undefined,_0x27fb2b=undefined,_0x469297=undefined;}else{if(_0x485ca4[_0x2201bd(0x171)]===_0x2201bd(0x146)){if(_0x53cdf1&&_0x45fdab)_0x2c6f9b[_0x2201bd(0x14c)](_0x53cdf1);_0x53cdf1=undefined,_0x45fdab=![];}else{if(_0x485ca4[_0x2201bd(0x171)]===_0x469297)_0x469297=undefined;}}}),_0x1f27b8?.['on'](_0x7d5373(0x140),_0x552246=>{const _0x3a2bc7=_0x7d5373;throw new Error(_0x3a2bc7(0x144)+_0x552246[_0x3a2bc7(0x187)]);}),_0x1e495d['on'](_0x7d5373(0x140),_0x331a77),_0x1e495d['on'](_0x7d5373(0x10f),_0x4314d6=>{const _0x4936b5=_0x7d5373;if(_0x3b2ba4)return;_0xd1f3f5+=_0x4314d6[_0x4936b5(0x14f)],_0x1271bb?.['push'](_0x4314d6);if(_0xd1f3f5>MAX_EXPANDED){_0x331a77(new Error(_0x4936b5(0x11d)));return;}try{if(_0x100d68&&_0xe551fc)_0x100d68['write'](_0xe551fc[_0x4936b5(0x136)](_0x4314d6));if(_0x1f27b8&&_0x327e4e)_0x1f27b8[_0x4936b5(0x136)](_0x327e4e[_0x4936b5(0x136)](_0x4314d6));}catch(_0x2232c1){_0x331a77(_0x2232c1 instanceof Error?_0x2232c1:new Error('Invalid\x20worksheet\x20XML.'));}}),_0x1e495d['on'](_0x7d5373(0x19b),()=>{const _0x179efc=_0x7d5373;if(_0x3b2ba4)return;try{if(_0x100d68&&_0xe551fc)_0x100d68['write'](_0xe551fc[_0x179efc(0x19b)]())[_0x179efc(0x150)]();if(_0x1f27b8&&_0x327e4e)_0x1f27b8['write'](_0x327e4e[_0x179efc(0x19b)]())['close']();for(const _0x2930b2 of _0x2c6f9b){let _0x1100f5=_0x2930b2[_0x179efc(0x18f)];for(const _0x1f569d of _0x2930b2[_0x179efc(0x113)]){if(!_0x1f569d[_0x179efc(0xe3)]&&!(_0x1f569d['reference']&&_0x3175e2[_0x179efc(0x157)](_0x1f569d[_0x179efc(0x1b2)])))continue;const _0x39f6d3=_0x1f569d[_0x179efc(0x181)]??(_0x1100f5?{'row':_0x1100f5[_0x179efc(0x146)],'col':_0x1100f5[_0x179efc(0x13c)]+0x1}:undefined);if(!_0x39f6d3)throw new Error('Invalid\x20worksheet\x20cell\x20without\x20an\x20initial\x20reference.');if(_0x39f6d3[_0x179efc(0x13c)]>MAX_XML_COLUMNS)throw new Error('Worksheet\x20exceeds\x2016384\x20columns.');_0x5718db(_0x39f6d3['col']),_0x1100f5=_0x39f6d3;}}_0x2c6f9b[_0x179efc(0x14f)]=0x0,_0x3175e2[_0x179efc(0x1ac)]();}catch(_0x14210c){_0x331a77(_0x14210c instanceof Error?_0x14210c:new Error(_0x179efc(0x118)));return;}if(_0x1271bb)_0x356042[_0x179efc(0x189)](_0x241eb7,Buffer[_0x179efc(0xf4)](_0x1271bb));_0x4bff88=undefined,_0x581f46[_0x179efc(0x127)]();});});}),_0x581f46['on'](_0x258877(0x19b),()=>{const _0x40d475=_0x258877;if(_0x3b2ba4)return;if(_0x581f46['readEntryCursor']!==_0x4e77bf){_0x6da8f(new Error(_0x40d475(0x19f)));return;}if(!_0x5c5763[_0x40d475(0x157)](_0x40d475(0xf5))||!_0x5c5763[_0x40d475(0x157)]('xl/workbook.xml'))_0x6da8f(new Error('File\x20is\x20not\x20an\x20XLSX\x20workbook.'));else _0xd654d1();}),_0x581f46[_0x258877(0x127)]();});});}function valueOf(_0x325963){const _0x269fee=a144_0x538df5,_0x4a35af=_0x325963[_0x269fee(0xea)];if(_0x4a35af&&typeof _0x4a35af===_0x269fee(0x1a0)&&(_0x269fee(0x1a2)in _0x4a35af||_0x269fee(0x166)in _0x4a35af)){if(!(_0x269fee(0x11f)in _0x4a35af)||_0x4a35af['result']===undefined)throw new Error(_0x269fee(0x163));return _0x4a35af['result'];}return _0x4a35af;}function convert(_0x34c6e2,_0xe57620){const _0x2df5e7=a144_0x538df5;if(_0x34c6e2===null||_0x34c6e2===undefined||_0x34c6e2===''){if(_0xe57620[_0x2df5e7(0x179)]&&!_0xe57620[_0x2df5e7(0x198)])throw new Error(_0x2df5e7(0x172));return null;}if(typeof _0x34c6e2===_0x2df5e7(0x11a)&&Buffer['byteLength'](_0x34c6e2,_0x2df5e7(0xdb))>MAX_CELL)throw new Error(_0x2df5e7(0x162));switch(_0xe57620[_0x2df5e7(0x129)][_0x2df5e7(0x19c)]()){case _0x2df5e7(0x11a):case _0x2df5e7(0xfb):case _0x2df5e7(0x169):if(typeof _0x34c6e2!=='string')throw new Error(_0x2df5e7(0xe0));return _0x34c6e2;case _0x2df5e7(0x14d):case _0x2df5e7(0xd4):case'integer':if(typeof _0x34c6e2!==_0x2df5e7(0x14d)||!Number[_0x2df5e7(0x11e)](_0x34c6e2)||Math['abs'](_0x34c6e2)>Number['MAX_SAFE_INTEGER']||_0xe57620[_0x2df5e7(0x129)][_0x2df5e7(0x19c)]()==='integer'&&!Number[_0x2df5e7(0x164)](_0x34c6e2))throw new Error('Expected\x20a\x20finite\x20safe\x20numeric\x20cell.');return _0x34c6e2;case _0x2df5e7(0x11b):if(typeof _0x34c6e2!=='boolean')throw new Error(_0x2df5e7(0xff));return _0x34c6e2;case _0x2df5e7(0x10e):case _0x2df5e7(0x11c):if(!(_0x34c6e2 instanceof Date)||!Number['isFinite'](_0x34c6e2[_0x2df5e7(0x161)]()))throw new Error(_0x2df5e7(0x128));return _0x34c6e2[_0x2df5e7(0x161)]();default:throw new Error(_0x2df5e7(0x130)+_0xe57620[_0x2df5e7(0x129)]+'.');}}export async function buildExcelManifest(_0x4afb23){const _0x2e3cf2=a144_0x538df5,_0x56c9a9=_0x4afb23[_0x2e3cf2(0xcf)]??0x1;if(!Number[_0x2e3cf2(0x164)](_0x56c9a9)||_0x56c9a9<0x1||_0x56c9a9>MAX_ROWS)throw new Error(_0x2e3cf2(0x1a6));if(_0x4afb23['batchSize']!==undefined&&(!Number[_0x2e3cf2(0x164)](_0x4afb23[_0x2e3cf2(0x154)])||_0x4afb23[_0x2e3cf2(0x154)]<0x1||_0x4afb23[_0x2e3cf2(0x154)]>0x3e8))throw new Error(_0x2e3cf2(0xdc));if(a144_0x1322a2[_0x2e3cf2(0x149)](_0x4afb23[_0x2e3cf2(0x1b0)])[_0x2e3cf2(0x19c)]()!=='.xlsx')throw new Error('Only\x20.xlsx\x20files\x20are\x20supported.');const _0x5f378d=await stat(_0x4afb23[_0x2e3cf2(0x1b0)]);if(!_0x5f378d[_0x2e3cf2(0x10d)]()||_0x5f378d[_0x2e3cf2(0x1b1)]>MAX_FILE)throw new Error(_0x2e3cf2(0x12e));const _0x583f97=await readFile(_0x4afb23[_0x2e3cf2(0x1b0)]);if(_0x583f97[_0x2e3cf2(0x14f)]>MAX_FILE)throw new Error(_0x2e3cf2(0x1af));const _0x16292f=_0x4afb23['fields'][_0x2e3cf2(0x1b8)](_0x20f4d3=>isImageContainer(_0x20f4d3[_0x2e3cf2(0x129)])&&Object['values'](_0x4afb23[_0x2e3cf2(0xe2)])[_0x2e3cf2(0x1a8)](_0x20f4d3[_0x2e3cf2(0x19a)]))?new Map():undefined;await checkArchive(_0x583f97,_0x16292f);const _0x528bf4=new a144_0x3f955b['Workbook']();await _0x528bf4['xlsx']['load'](_0x583f97,{'ignoreNodes':['dataValidations']});const _0x2b16f7=_0x4afb23[_0x2e3cf2(0x115)];let _0x319b02;if(_0x2b16f7===undefined)_0x319b02=_0x528bf4['worksheets'][0x0];else{if(typeof _0x2b16f7===_0x2e3cf2(0x11a)&&_0x528bf4[_0x2e3cf2(0x17b)][_0x2e3cf2(0x1b8)](_0x5ac235=>_0x5ac235[_0x2e3cf2(0x171)]===_0x2b16f7))_0x319b02=_0x528bf4[_0x2e3cf2(0x17b)][_0x2e3cf2(0x100)](_0x303edc=>_0x303edc[_0x2e3cf2(0x171)]===_0x2b16f7);else{if(typeof _0x2b16f7==='number'||/^\d+$/['test'](_0x2b16f7)){const _0x409315=Number(_0x2b16f7);if(!Number[_0x2e3cf2(0x164)](_0x409315)||_0x409315<0x1)throw new Error(_0x2e3cf2(0x183));_0x319b02=_0x528bf4['worksheets'][_0x409315-0x1];}else _0x319b02=_0x528bf4[_0x2e3cf2(0x17b)][_0x2e3cf2(0x100)](_0x516890=>_0x516890[_0x2e3cf2(0x171)]===_0x2b16f7);}}if(!_0x319b02)throw new Error(_0x2e3cf2(0x1aa));if(_0x319b02['rowCount']>MAX_ROWS||_0x319b02[_0x2e3cf2(0x125)]>MAX_COLUMNS)throw new Error(_0x2e3cf2(0xf2));if((_0x319b02['model'][_0x2e3cf2(0xda)]??[])[_0x2e3cf2(0x14f)])throw new Error('Merged\x20cells\x20are\x20not\x20supported.');const _0x37a349=new Map();_0x319b02[_0x2e3cf2(0xeb)](_0x56c9a9)['eachCell']((_0x1a3173,_0xd34858)=>{const _0x262df5=_0x2e3cf2,_0x43baa3=valueOf(_0x1a3173);if(typeof _0x43baa3!==_0x262df5(0x11a)||!_0x43baa3[_0x262df5(0x112)]()||Buffer[_0x262df5(0x188)](_0x43baa3)>MAX_CELL)throw new Error(_0x262df5(0x13a));if(_0x37a349[_0x262df5(0x157)](_0x43baa3))throw new Error(_0x262df5(0x174)+_0x43baa3+'.');_0x37a349[_0x262df5(0x189)](_0x43baa3,_0xd34858);});const _0x258c26=Object[_0x2e3cf2(0x142)](_0x4afb23['mapping']);if(!_0x258c26['length'])throw new Error(_0x2e3cf2(0x137));const _0x42681c=new Map(_0x4afb23[_0x2e3cf2(0xde)][_0x2e3cf2(0x10a)](_0x1a14ab=>[_0x1a14ab[_0x2e3cf2(0x19a)],_0x1a14ab]));if(_0x42681c['size']!==_0x4afb23[_0x2e3cf2(0xde)]['length'])throw new Error(_0x2e3cf2(0xec));if(_0x4afb23[_0x2e3cf2(0xde)]['some'](_0x275968=>_0x275968['type'][_0x2e3cf2(0x19c)]()===_0x2e3cf2(0x108)))throw new Error('Unsupported\x20dataset\x20field\x20type:\x20serial_number.');const _0x33719a=new Set();for(const [_0x435f14,_0x3efa35]of _0x258c26){const _0x163b5c=_0x42681c[_0x2e3cf2(0xfe)](_0x3efa35);if(!_0x37a349[_0x2e3cf2(0x157)](_0x435f14))throw new Error(_0x2e3cf2(0x116)+_0x435f14+'.');if(!_0x163b5c||RESERVED['has'](_0x3efa35)||_0x163b5c[_0x2e3cf2(0x198)])throw new Error('Unknown\x20or\x20generated\x20mapping\x20field:\x20'+_0x3efa35+'.');if(_0x33719a[_0x2e3cf2(0x157)](_0x3efa35))throw new Error(_0x2e3cf2(0x12b)+_0x3efa35+'.');if(!TYPES[_0x2e3cf2(0x157)](_0x163b5c[_0x2e3cf2(0x129)][_0x2e3cf2(0x19c)]()))throw new Error('Unsupported\x20field\x20type:\x20'+_0x163b5c['type']+'.');_0x33719a['add'](_0x3efa35);}for(const _0x26ac1c of _0x4afb23[_0x2e3cf2(0xde)]){if(_0x26ac1c['required']&&!_0x26ac1c['generated']&&!RESERVED[_0x2e3cf2(0x157)](_0x26ac1c[_0x2e3cf2(0x19a)])&&!_0x33719a[_0x2e3cf2(0x157)](_0x26ac1c['code']))throw new Error('Required\x20field\x20is\x20not\x20mapped:\x20'+_0x26ac1c[_0x2e3cf2(0x19a)]+'.');}const _0x4330b8={'fileHash':hash(_0x583f97),'mappingHash':hash(JSON[_0x2e3cf2(0x15f)]([..._0x258c26][_0x2e3cf2(0x1a3)](([_0x3b69ab],[_0x2d3084])=>_0x3b69ab[_0x2e3cf2(0x111)](_0x2d3084)))),'schemaHash':hash(JSON['stringify']([..._0x4afb23[_0x2e3cf2(0xde)]][_0x2e3cf2(0x1a3)]((_0x415d0f,_0x21df1a)=>_0x415d0f[_0x2e3cf2(0x19a)][_0x2e3cf2(0x111)](_0x21df1a['code'])))),'sheet':_0x319b02['name'],'rows':[],'emptyRows':[],'errors':[],'warnings':[]},_0x134b60=_0x258c26[_0x2e3cf2(0xcc)](([,_0x10318e])=>isImageContainer(_0x42681c[_0x2e3cf2(0xfe)](_0x10318e)['type'])),_0x947f3=_0x134b60[_0x2e3cf2(0xcc)](([,_0x7cbd73])=>_0x42681c[_0x2e3cf2(0xfe)](_0x7cbd73)['type'][_0x2e3cf2(0x19c)]()===_0x2e3cf2(0x110))['map'](([,_0x2b8533])=>_0x2b8533);if(_0x947f3[_0x2e3cf2(0x14f)])_0x4330b8[_0x2e3cf2(0xed)]=_0x947f3;const _0x313545=_0x16292f?resolveWorksheetImages(_0x16292f,_0x319b02[_0x2e3cf2(0x171)],new Set(_0x134b60['map'](([_0x4beb04])=>_0x37a349[_0x2e3cf2(0xfe)](_0x4beb04)))):[],_0x4969b0=new Map();for(const _0x30f74b of _0x313545){const _0x49d403=_0x30f74b[_0x2e3cf2(0x146)]+':'+_0x30f74b[_0x2e3cf2(0x13c)],_0x390e30=_0x4969b0[_0x2e3cf2(0xfe)](_0x49d403)??[];_0x390e30[_0x2e3cf2(0x14c)](_0x30f74b),_0x4969b0['set'](_0x49d403,_0x390e30);}const _0x2ccebb=new Map();let _0x58f4df=0x0;_0x134b60[_0x2e3cf2(0x14f)]&&(_0x4330b8[_0x2e3cf2(0xca)]=_0x134b60['map'](([,_0x3b8259])=>_0x3b8259),_0x4330b8[_0x2e3cf2(0x10b)]=[],_0x4330b8[_0x2e3cf2(0x173)]=0x1,_0x4330b8[_0x2e3cf2(0x17d)]=[]);const _0x40c746=Math[_0x2e3cf2(0x184)](0x0,..._0x313545['map'](_0x5e18fb=>_0x5e18fb[_0x2e3cf2(0x146)]));let _0x3ab4ec=0x0;const _0x294c15=new Set(_0x258c26[_0x2e3cf2(0x10a)](([_0x2c602d])=>_0x37a349[_0x2e3cf2(0xfe)](_0x2c602d)));for(let _0x49f852=_0x56c9a9+0x1;_0x49f852<=Math[_0x2e3cf2(0x184)](_0x319b02[_0x2e3cf2(0x156)],_0x40c746);_0x49f852++){const _0x5c4c28=_0x319b02[_0x2e3cf2(0xeb)](_0x49f852);if(_0x5c4c28['hidden']||_0x313545[_0x2e3cf2(0x1b8)](_0x3716c9=>_0x3716c9[_0x2e3cf2(0x146)]===_0x49f852&&_0x3716c9[_0x2e3cf2(0x131)]))_0x3ab4ec++;let _0x569812=_0x313545['some'](_0x47cd90=>_0x47cd90['row']===_0x49f852);_0x5c4c28[_0x2e3cf2(0xcb)](_0x25a561=>{const _0x52f51a=_0x2e3cf2;if(_0x25a561[_0x52f51a(0xea)]!==null&&_0x25a561[_0x52f51a(0xea)]!==undefined&&_0x25a561['value']!=='')_0x569812=!![];});if(!_0x569812){_0x4330b8[_0x2e3cf2(0x180)]['push'](_0x49f852);continue;}const _0x19a61d=Object['create'](null);_0x5c4c28[_0x2e3cf2(0xcb)]((_0x1c08fb,_0x2972c7)=>{const _0x105403=_0x2e3cf2;if(_0x294c15[_0x105403(0x157)](_0x2972c7))return;try{const _0x3946cc=valueOf(_0x1c08fb);if(typeof _0x3946cc===_0x105403(0x11a)&&Buffer['byteLength'](_0x3946cc,'utf8')>MAX_CELL)throw new Error(_0x105403(0x162));}catch(_0x5e2703){_0x4330b8[_0x105403(0x17a)][_0x105403(0x14c)]({'rowNumber':_0x49f852,'field':_0x1c08fb[_0x105403(0x181)],'message':_0x5e2703[_0x105403(0x187)]});}});for(const [_0x58b6ab,_0x4ca21d]of _0x258c26){try{const _0x467320=_0x5c4c28[_0x2e3cf2(0x117)](_0x37a349[_0x2e3cf2(0xfe)](_0x58b6ab)),_0x1e049b=_0x42681c[_0x2e3cf2(0xfe)](_0x4ca21d);if(!isImageContainer(_0x1e049b['type'])){_0x19a61d[_0x4ca21d]=convert(valueOf(_0x467320),_0x1e049b);continue;}const _0x9b40db=_0x4969b0[_0x2e3cf2(0xfe)](_0x49f852+':'+_0x37a349[_0x2e3cf2(0xfe)](_0x58b6ab))??[];if(_0x9b40db[_0x2e3cf2(0x1b8)](_0x3322b7=>_0x3322b7[_0x2e3cf2(0x140)]))throw Error(_0x9b40db[_0x2e3cf2(0x100)](_0xf03e84=>_0xf03e84[_0x2e3cf2(0x140)])[_0x2e3cf2(0x140)]);if(_0x467320[_0x2e3cf2(0xea)]!=null&&_0x467320[_0x2e3cf2(0xea)]!==''&&!_0x9b40db[_0x2e3cf2(0x1b8)](_0x1cf278=>_0x1cf278[_0x2e3cf2(0x195)]))throw Error(_0x2e3cf2(0x12c));const _0x1a2bc5=[];for(const _0x53e14b of _0x9b40db)for(const _0x4b9bcd of _0x53e14b[_0x2e3cf2(0x17d)]){const _0x4e25ac=_0x16292f['get'](_0x4b9bcd);if(!_0x4e25ac)throw Error('Missing\x20image\x20media:\x20'+_0x4b9bcd+'.');const _0x168e9c=hash(_0x4e25ac),_0x21a300=_0x2ccebb[_0x2e3cf2(0xfe)](_0x168e9c)??validateImageBytes(_0x4e25ac);if(!_0x2ccebb[_0x2e3cf2(0x157)](_0x21a300[_0x2e3cf2(0x15e)])){_0x58f4df+=_0x21a300[_0x2e3cf2(0x1b1)];if(_0x58f4df>0x32*0x400*0x400)throw Error('Unique\x20image\x20bytes\x20exceed\x2050\x20MB.');_0x2ccebb[_0x2e3cf2(0x189)](_0x21a300[_0x2e3cf2(0x15e)],_0x21a300);}_0x1a2bc5[_0x2e3cf2(0x14c)](_0x21a300[_0x2e3cf2(0x15e)]);}if(!_0x1a2bc5[_0x2e3cf2(0x14f)]&&_0x1e049b[_0x2e3cf2(0x179)])throw Error(_0x2e3cf2(0x1b4));if(_0x1a2bc5[_0x2e3cf2(0x14f)])_0x4330b8['imageCells'][_0x2e3cf2(0x14c)]({'rowNumber':_0x49f852,'field':_0x4ca21d,'hashes':_0x1a2bc5});_0x19a61d[_0x4ca21d]=_0x1a2bc5[_0x2e3cf2(0x10a)](_0x31b7f7=>{const _0x35044a=_0x2e3cf2,_0x4c55da=_0x2ccebb['get'](_0x31b7f7),_0x1f502a=_0x4c55da[_0x35044a(0x129)]===_0x35044a(0x15c)?'jpg':_0x4c55da['type'][_0x35044a(0x153)](0x6),_0x3b656d=_0x31b7f7+'.'+_0x1f502a,_0x381e82=_0x35044a(0xfa)+'0'[_0x35044a(0x16e)](0x40)+'/'+_0x3b656d;return _0x1e049b[_0x35044a(0x129)][_0x35044a(0x19c)]()==='upload'?{'fileName':_0x3b656d,'filePath':_0x381e82}:{'key':_0x381e82,'name':_0x3b656d,'type':_0x4c55da['type'],'size':_0x4c55da['size']};});}catch(_0x41efec){_0x4330b8[_0x2e3cf2(0x17a)]['push']({'rowNumber':_0x49f852,'field':_0x4ca21d,'message':_0x41efec[_0x2e3cf2(0x187)]});}}_0x4330b8[_0x2e3cf2(0xc7)]['push']({'rowNumber':_0x49f852,'values':_0x19a61d});}if(_0x4330b8[_0x2e3cf2(0x17d)])_0x4330b8[_0x2e3cf2(0x17d)]=[..._0x2ccebb[_0x2e3cf2(0x192)]()];if(_0x3ab4ec)_0x4330b8[_0x2e3cf2(0x17f)][_0x2e3cf2(0x14c)](_0x3ab4ec+_0x2e3cf2(0x176));return _0x4330b8;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x199887,_0xa90c20){const _0xa4c8b1=a145_0x54af,_0x374340=_0x199887();while(!![]){try{const _0x1f4d57=parseInt(_0xa4c8b1(0x210))/0x1+parseInt(_0xa4c8b1(0x20a))/0x2+-parseInt(_0xa4c8b1(0x1f8))/0x3*(parseInt(_0xa4c8b1(0x1df))/0x4)+-parseInt(_0xa4c8b1(0x21d))/0x5*(-parseInt(_0xa4c8b1(0x1e4))/0x6)+-parseInt(_0xa4c8b1(0x21a))/0x7+-parseInt(_0xa4c8b1(0x20e))/0x8*(-parseInt(_0xa4c8b1(0x217))/0x9)+-parseInt(_0xa4c8b1(0x1ff))/0xa*(parseInt(_0xa4c8b1(0x1eb))/0xb);if(_0x1f4d57===_0xa90c20)break;else _0x374340['push'](_0x374340['shift']());}catch(_0x1377a1){_0x374340['push'](_0x374340['shift']());}}}(a145_0x44ca,0xa44cb));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(_0x29d785,_0x4ad81f){const _0x2e33e8=a145_0x54af;if(!Number[_0x2e33e8(0x205)](_0x29d785)||!Number[_0x2e33e8(0x205)](_0x4ad81f)||_0x29d785<0x1||_0x4ad81f<0x1||_0x29d785*_0x4ad81f>MAX_PIXELS)throw Error(_0x2e33e8(0x1ed));}function a145_0x54af(_0x260d21,_0x4e9d62){_0x260d21=_0x260d21-0x1df;const _0x44caa1=a145_0x44ca();let _0x54af9c=_0x44caa1[_0x260d21];return _0x54af9c;}function a145_0x44ca(){const _0x51075c=['3ssIOqH','width','sha256','Invalid\x20PNG\x20color/depth/interlace.','IEND','concat','Truncated\x20PNG\x20chunk.','10320370PrRgNs','pngjs','Truncated\x20or\x20incomplete\x20GIF\x20LZW\x20pixels.','jpeg-js','Invalid\x20image:\x20','omggif','isSafeInteger','Unsupported\x20image\x20format;\x20only\x20PNG,\x20JPEG\x20and\x20GIF\x20are\x20supported.\x20WebP\x20is\x20not\x20supported.','Truncated\x20GIF\x20data.','height','from','2478202ilQzkA','includes','GIF89a','Invalid\x20GIF\x20block.','272HKTYXi','decode','870671CknVrb','Missing\x20PNG\x20data/end.','acTL','message','Animated\x20PNG\x20is\x20not\x20supported.','toString','numFrames','115551DGMJLw','max','GIF\x20frame\x20exceeds\x20canvas.','5310529hLqrTS','Missing\x20GIF\x20trailer.','Invalid\x20PNG\x20end.','19365iSgYzL','Invalid\x20PNG\x20decoded\x20scanline\x20size.','digest','2298056hovNnB','Invalid\x20GIF\x20trailer.','ceil','IHDR','readUInt32BE','762eViTXn','frameInfo','Invalid\x20GIF\x20LZW\x20dictionary\x20reference.','Image\x20must\x20be\x20non-empty\x20and\x20no\x20larger\x20than\x2010\x20MB.','update','readUInt16LE','equals','11SWMjTR','Invalid\x20PNG\x20header.','Image\x20dimensions\x20exceed\x2040\x20million\x20pixels.','push','length','image/gif','GIF\x20cumulative\x20frame\x20pixels\x20exceed\x2040\x20million.','decodeAndBlitFrameRGBA','Invalid\x20GIF\x20LZW\x20pixel\x20data.','ascii','image/jpeg','image/png','subarray'];a145_0x44ca=function(){return _0x51075c;};return a145_0x44ca();}function validateGif(_0x385764){const _0x322f28=a145_0x54af;let _0xd4f7c6=0xd,_0x3f53e3=0x0,_0xd3f039=0x0;const _0x55d02e=_0x385764[_0x322f28(0x1e9)](0x6),_0xcf346e=_0x385764[_0x322f28(0x1e9)](0x8),_0x448154=_0x385764[0xa]&0x80?0x1<<(_0x385764[0xa]&0x7)+0x1:0x0,_0x1e88a6=_0x11fcea=>{const _0xf6efc4=_0x322f28;if(_0xd4f7c6+_0x11fcea>_0x385764[_0xf6efc4(0x1ef)])throw Error(_0xf6efc4(0x207));};_0xd4f7c6+=_0x448154*0x3,_0x1e88a6(0x0);const _0x312dcc=()=>{const _0x2a7735=_0x322f28,_0x269810=[];while(!![]){_0x1e88a6(0x1);const _0x29ea1f=_0x385764[_0xd4f7c6++];if(!_0x29ea1f)break;_0x1e88a6(_0x29ea1f),_0x269810[_0x2a7735(0x1ee)](_0x385764[_0x2a7735(0x1f7)](_0xd4f7c6,_0xd4f7c6+_0x29ea1f)),_0xd4f7c6+=_0x29ea1f;}return Buffer[_0x2a7735(0x1fd)](_0x269810);};while(_0xd4f7c6<_0x385764[_0x322f28(0x1ef)]){const _0x3cfeb8=_0x385764[_0xd4f7c6++];if(_0x3cfeb8===0x3b){if(!_0x3f53e3||_0xd4f7c6!==_0x385764[_0x322f28(0x1ef)])throw Error(_0x322f28(0x1e0));return;}if(_0x3cfeb8===0x21){_0x1e88a6(0x1),_0xd4f7c6++,_0x312dcc();continue;}if(_0x3cfeb8!==0x2c)throw Error(_0x322f28(0x20d));_0x1e88a6(0x9);const _0x21c6f6=_0x385764[_0x322f28(0x1e9)](_0xd4f7c6),_0x5a6447=_0x385764[_0x322f28(0x1e9)](_0xd4f7c6+0x2),_0x123aef=_0x385764[_0x322f28(0x1e9)](_0xd4f7c6+0x4),_0x494c6d=_0x385764[_0x322f28(0x1e9)](_0xd4f7c6+0x6),_0x46cf3e=_0x385764[_0xd4f7c6+0x8];_0xd4f7c6+=0x9,dimensions(_0x123aef,_0x494c6d);if(_0x21c6f6+_0x123aef>_0x55d02e||_0x5a6447+_0x494c6d>_0xcf346e||++_0x3f53e3>0x2710||(_0xd3f039+=_0x55d02e*_0xcf346e)>MAX_PIXELS)throw Error(_0x322f28(0x1f1));const _0x11c48e=_0x46cf3e&0x80?0x1<<(_0x46cf3e&0x7)+0x1:_0x448154;if(!_0x11c48e)throw Error('GIF\x20image\x20has\x20no\x20palette.');_0x46cf3e&0x80&&(_0x1e88a6(_0x11c48e*0x3),_0xd4f7c6+=_0x11c48e*0x3);_0x1e88a6(0x1);const _0x1469c2=_0x385764[_0xd4f7c6++];if(_0x1469c2<0x2||_0x1469c2>0x8)throw Error('Invalid\x20GIF\x20LZW\x20code\x20size.');const _0x55445b=_0x312dcc(),_0x5dcacf=0x1<<_0x1469c2,_0x5e9fc3=_0x5dcacf+0x1;let _0x54273f=_0x1469c2+0x1,_0x1a406c=_0x5e9fc3+0x1,_0x1670d9=0x0,_0x4d2952=-0x1,_0x46f221=0x0,_0x381f53=![];const _0x1e2d40=new Uint32Array(0x1000),_0x2d12e5=new Uint16Array(0x1000);for(let _0xbe2582=0x0;_0xbe2582<_0x5dcacf;_0xbe2582++){_0x1e2d40[_0xbe2582]=0x1,_0x2d12e5[_0xbe2582]=_0xbe2582;}while(_0x1670d9+_0x54273f<=_0x55445b[_0x322f28(0x1ef)]*0x8){let _0x28dd5b=0x0;for(let _0x46f438=0x0;_0x46f438<_0x54273f;_0x46f438++,_0x1670d9++)_0x28dd5b|=(_0x55445b[_0x1670d9>>0x3]>>(_0x1670d9&0x7)&0x1)<<_0x46f438;if(_0x28dd5b===_0x5dcacf){_0x54273f=_0x1469c2+0x1,_0x1a406c=_0x5e9fc3+0x1,_0x4d2952=-0x1;continue;}if(_0x28dd5b===_0x5e9fc3){_0x381f53=!![];break;}if(_0x28dd5b>_0x1a406c||_0x28dd5b===_0x1a406c&&_0x4d2952<0x0||_0x4d2952<0x0&&_0x28dd5b>=_0x5dcacf)throw Error(_0x322f28(0x1e6));const _0x174842=_0x28dd5b===_0x1a406c?_0x1e2d40[_0x4d2952]+0x1:_0x1e2d40[_0x28dd5b],_0x342ea2=_0x28dd5b===_0x1a406c?_0x2d12e5[_0x4d2952]:_0x2d12e5[_0x28dd5b];if(!_0x174842||_0x342ea2>=_0x11c48e||(_0x46f221+=_0x174842)>_0x123aef*_0x494c6d)throw Error(_0x322f28(0x1f3));if(_0x4d2952>=0x0&&_0x1a406c<0x1000){_0x1e2d40[_0x1a406c]=_0x1e2d40[_0x4d2952]+0x1,_0x2d12e5[_0x1a406c]=Math[_0x322f28(0x218)](_0x2d12e5[_0x4d2952],_0x342ea2),_0x1a406c++;if(_0x1a406c===0x1<<_0x54273f&&_0x54273f<0xc)_0x54273f++;}_0x4d2952=_0x28dd5b;}if(!_0x381f53||_0x46f221!==_0x123aef*_0x494c6d)throw Error(_0x322f28(0x201));}throw Error(_0x322f28(0x21b));}export function validateImageBytes(_0x504557){const _0x28d17f=a145_0x54af;if(!_0x504557[_0x28d17f(0x1ef)]||_0x504557['length']>0xa*0x400*0x400)throw Error(_0x28d17f(0x1e7));let _0x447f86;try{if(_0x504557[_0x28d17f(0x1f7)](0x0,0x8)[_0x28d17f(0x1ea)](Buffer[_0x28d17f(0x209)]([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]))){if(_0x504557[_0x28d17f(0x1ef)]<0x21||_0x504557[_0x28d17f(0x215)]('ascii',0xc,0x10)!==_0x28d17f(0x1e2))throw Error(_0x28d17f(0x1ec));dimensions(_0x504557['readUInt32BE'](0x10),_0x504557[_0x28d17f(0x1e3)](0x14));const _0x510275=_0x504557[_0x28d17f(0x1e3)](0x10),_0x55f175=_0x504557[_0x28d17f(0x1e3)](0x14),_0x2bd978=_0x504557[0x18],_0x545259=_0x504557[0x19],_0x5f32e5=_0x504557[0x1c],_0xeafe84={0x0:0x1,0x2:0x3,0x3:0x1,0x4:0x2,0x6:0x4}[_0x545259];if(!_0xeafe84||![0x1,0x2,0x4,0x8,0x10][_0x28d17f(0x20b)](_0x2bd978)||_0x5f32e5>0x1)throw Error(_0x28d17f(0x1fb));const _0x3b66d9=_0x8809cf=>Math[_0x28d17f(0x1e1)](_0x8809cf*_0xeafe84*_0x2bd978/0x8)+0x1;let _0x1323dd=_0x3b66d9(_0x510275)*_0x55f175;if(_0x5f32e5){_0x1323dd=0x0;for(const [_0x5e05c4,_0x59ead5,_0x1d7b2d,_0x255c1a]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 _0x370f3d=Math[_0x28d17f(0x218)](0x0,Math[_0x28d17f(0x1e1)]((_0x510275-_0x5e05c4)/_0x1d7b2d)),_0x4542e9=Math[_0x28d17f(0x218)](0x0,Math['ceil']((_0x55f175-_0x59ead5)/_0x255c1a));if(_0x370f3d&&_0x4542e9)_0x1323dd+=_0x3b66d9(_0x370f3d)*_0x4542e9;}}let _0x1a3cb1=0x8,_0x2ee162=![];const _0x587466=[];while(_0x1a3cb1<_0x504557[_0x28d17f(0x1ef)]){if(_0x1a3cb1+0xc>_0x504557[_0x28d17f(0x1ef)])throw Error(_0x28d17f(0x1fe));const _0x47049b=_0x504557[_0x28d17f(0x1e3)](_0x1a3cb1),_0x3e4b05=_0x504557[_0x28d17f(0x215)](_0x28d17f(0x1f4),_0x1a3cb1+0x4,_0x1a3cb1+0x8);if(_0x3e4b05===_0x28d17f(0x212))throw Error(_0x28d17f(0x214));if(_0x1a3cb1+_0x47049b+0xc>_0x504557[_0x28d17f(0x1ef)])throw Error('Truncated\x20PNG\x20data.');if(_0x3e4b05==='IDAT')_0x587466[_0x28d17f(0x1ee)](_0x504557[_0x28d17f(0x1f7)](_0x1a3cb1+0x8,_0x1a3cb1+0x8+_0x47049b));_0x1a3cb1+=_0x47049b+0xc;if(_0x3e4b05===_0x28d17f(0x1fc)){if(_0x47049b||_0x1a3cb1!==_0x504557[_0x28d17f(0x1ef)])throw Error(_0x28d17f(0x21c));_0x2ee162=!![];break;}}if(!_0x2ee162||!_0x587466[_0x28d17f(0x1ef)])throw Error(_0x28d17f(0x211));if(inflateSync(Buffer[_0x28d17f(0x1fd)](_0x587466),{'maxOutputLength':_0x1323dd+0x1})[_0x28d17f(0x1ef)]!==_0x1323dd)throw Error(_0x28d17f(0x21e));const {PNG:_0x1a708f}=require(_0x28d17f(0x200)),_0x3702d6=_0x1a708f['sync']['read'](_0x504557,{'checkCRC':!![]});dimensions(_0x3702d6[_0x28d17f(0x1f9)],_0x3702d6['height']),_0x447f86=_0x28d17f(0x1f6);}else{if(_0x504557[0x0]===0xff&&_0x504557[0x1]===0xd8){if(_0x504557['at'](-0x2)!==0xff||_0x504557['at'](-0x1)!==0xd9)throw Error('Truncated\x20JPEG.');const _0x35c205=require(_0x28d17f(0x202)),_0x21ee0a=_0x35c205[_0x28d17f(0x20f)](_0x504557,{'useTArray':!![],'formatAsRGBA':![],'tolerantDecoding':![],'maxResolutionInMP':0x28,'maxMemoryUsageInMB':0x100});dimensions(_0x21ee0a[_0x28d17f(0x1f9)],_0x21ee0a[_0x28d17f(0x208)]),_0x447f86=_0x28d17f(0x1f5);}else{if(['GIF87a',_0x28d17f(0x20c)][_0x28d17f(0x20b)](_0x504557[_0x28d17f(0x215)]('ascii',0x0,0x6))){if(_0x504557[_0x28d17f(0x1ef)]<0xe||_0x504557['at'](-0x1)!==0x3b)throw Error('Truncated\x20GIF.');dimensions(_0x504557[_0x28d17f(0x1e9)](0x6),_0x504557['readUInt16LE'](0x8)),validateGif(_0x504557);const {GifReader:_0x403c91}=require(_0x28d17f(0x204)),_0x205d4a=new _0x403c91(_0x504557);dimensions(_0x205d4a[_0x28d17f(0x1f9)],_0x205d4a['height']);const _0x117cf9=_0x205d4a[_0x28d17f(0x216)]();if(!_0x117cf9||_0x117cf9>0x2710||_0x117cf9*_0x205d4a[_0x28d17f(0x1f9)]*_0x205d4a[_0x28d17f(0x208)]>MAX_PIXELS)throw Error(_0x28d17f(0x1f1));const _0x53c0fb=new Uint8Array(_0x205d4a[_0x28d17f(0x1f9)]*_0x205d4a[_0x28d17f(0x208)]*0x4);for(let _0x1fede4=0x0;_0x1fede4<_0x117cf9;_0x1fede4++){const _0xad0777=_0x205d4a[_0x28d17f(0x1e5)](_0x1fede4);if(_0xad0777['x']+_0xad0777[_0x28d17f(0x1f9)]>_0x205d4a[_0x28d17f(0x1f9)]||_0xad0777['y']+_0xad0777[_0x28d17f(0x208)]>_0x205d4a[_0x28d17f(0x208)])throw Error(_0x28d17f(0x219));_0x205d4a[_0x28d17f(0x1f2)](_0x1fede4,_0x53c0fb);}_0x447f86=_0x28d17f(0x1f0);}else throw Error(_0x28d17f(0x206));}}}catch(_0x3c33cc){throw Error(_0x28d17f(0x203)+_0x3c33cc[_0x28d17f(0x213)]);}return{'contentHash':createHash(_0x28d17f(0x1fa))[_0x28d17f(0x1e8)](_0x504557)[_0x28d17f(0x21f)]('hex'),'type':_0x447f86,'size':_0x504557[_0x28d17f(0x1ef)],'bytes':_0x504557};}
|
|
1
|
+
function a145_0x574e(){const _0x22a9f7=['GIF\x20cumulative\x20frame\x20pixels\x20exceed\x2040\x20million.','read','omggif','Invalid\x20GIF\x20block.','Image\x20dimensions\x20exceed\x2040\x20million\x20pixels.','ascii','subarray','364789xvlxmV','Invalid\x20PNG\x20end.','Image\x20must\x20be\x20non-empty\x20and\x20no\x20larger\x20than\x2010\x20MB.','2482944gRQksw','length','image/jpeg','acTL','Truncated\x20PNG\x20chunk.','readUInt32BE','Invalid\x20PNG\x20header.','Truncated\x20GIF.','Truncated\x20JPEG.','max','readUInt16LE','Truncated\x20GIF\x20data.','GIF89a','IHDR','decode','isSafeInteger','339704BZdFyo','44RpaKYh','Invalid\x20GIF\x20trailer.','image/gif','concat','Truncated\x20PNG\x20data.','toString','8523832vptHBQ','from','Invalid\x20PNG\x20color/depth/interlace.','push','includes','hex','height','8046117xyNaqG','14YsGbpR','sha256','ceil','decodeAndBlitFrameRGBA','width','jpeg-js','GIF\x20image\x20has\x20no\x20palette.','pngjs','update','4631840uglcrz','IEND','numFrames','Invalid\x20GIF\x20LZW\x20pixel\x20data.','55cagUYg','Truncated\x20or\x20incomplete\x20GIF\x20LZW\x20pixels.','Invalid\x20PNG\x20decoded\x20scanline\x20size.','GIF87a','equals','Invalid\x20image:\x20','Invalid\x20GIF\x20LZW\x20code\x20size.','21954yczsHr','Unsupported\x20image\x20format;\x20only\x20PNG,\x20JPEG\x20and\x20GIF\x20are\x20supported.\x20WebP\x20is\x20not\x20supported.'];a145_0x574e=function(){return _0x22a9f7;};return a145_0x574e();}(function(_0x344a91,_0x3b5754){const _0x560e8e=a145_0x3fe5,_0x34db4a=_0x344a91();while(!![]){try{const _0x44f24b=-parseInt(_0x560e8e(0x1ee))/0x1+-parseInt(_0x560e8e(0x202))/0x2*(parseInt(_0x560e8e(0x1e5))/0x3)+parseInt(_0x560e8e(0x201))/0x4*(parseInt(_0x560e8e(0x1de))/0x5)+-parseInt(_0x560e8e(0x1f1))/0x6*(-parseInt(_0x560e8e(0x210))/0x7)+-parseInt(_0x560e8e(0x208))/0x8+parseInt(_0x560e8e(0x20f))/0x9+-parseInt(_0x560e8e(0x1da))/0xa;if(_0x44f24b===_0x3b5754)break;else _0x34db4a['push'](_0x34db4a['shift']());}catch(_0x381a04){_0x34db4a['push'](_0x34db4a['shift']());}}}(a145_0x574e,0x92d37));function a145_0x3fe5(_0x1f3e73,_0x5eb8fb){_0x1f3e73=_0x1f3e73-0x1d5;const _0x574e19=a145_0x574e();let _0x3fe505=_0x574e19[_0x1f3e73];return _0x3fe505;}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(_0x51da3c,_0x2b32e1){const _0x4e19e2=a145_0x3fe5;if(!Number['isSafeInteger'](_0x51da3c)||!Number[_0x4e19e2(0x200)](_0x2b32e1)||_0x51da3c<0x1||_0x2b32e1<0x1||_0x51da3c*_0x2b32e1>MAX_PIXELS)throw Error(_0x4e19e2(0x1eb));}function validateGif(_0x326003){const _0x361d20=a145_0x3fe5;let _0x34e273=0xd,_0x3d7108=0x0,_0x206ad2=0x0;const _0x2cb6cf=_0x326003[_0x361d20(0x1fb)](0x6),_0x1427e2=_0x326003['readUInt16LE'](0x8),_0x14f304=_0x326003[0xa]&0x80?0x1<<(_0x326003[0xa]&0x7)+0x1:0x0,_0x5ef0b2=_0x1d0f80=>{const _0x363e83=_0x361d20;if(_0x34e273+_0x1d0f80>_0x326003[_0x363e83(0x1f2)])throw Error(_0x363e83(0x1fc));};_0x34e273+=_0x14f304*0x3,_0x5ef0b2(0x0);const _0x43194e=()=>{const _0x2065ed=_0x361d20,_0x1b01a8=[];while(!![]){_0x5ef0b2(0x1);const _0x1574e1=_0x326003[_0x34e273++];if(!_0x1574e1)break;_0x5ef0b2(_0x1574e1),_0x1b01a8[_0x2065ed(0x20b)](_0x326003[_0x2065ed(0x1ed)](_0x34e273,_0x34e273+_0x1574e1)),_0x34e273+=_0x1574e1;}return Buffer[_0x2065ed(0x205)](_0x1b01a8);};while(_0x34e273<_0x326003[_0x361d20(0x1f2)]){const _0x284a1f=_0x326003[_0x34e273++];if(_0x284a1f===0x3b){if(!_0x3d7108||_0x34e273!==_0x326003[_0x361d20(0x1f2)])throw Error(_0x361d20(0x203));return;}if(_0x284a1f===0x21){_0x5ef0b2(0x1),_0x34e273++,_0x43194e();continue;}if(_0x284a1f!==0x2c)throw Error(_0x361d20(0x1ea));_0x5ef0b2(0x9);const _0x8dc944=_0x326003[_0x361d20(0x1fb)](_0x34e273),_0x3f9b64=_0x326003['readUInt16LE'](_0x34e273+0x2),_0x3e3336=_0x326003[_0x361d20(0x1fb)](_0x34e273+0x4),_0x5aba94=_0x326003[_0x361d20(0x1fb)](_0x34e273+0x6),_0x1d1d6e=_0x326003[_0x34e273+0x8];_0x34e273+=0x9,dimensions(_0x3e3336,_0x5aba94);if(_0x8dc944+_0x3e3336>_0x2cb6cf||_0x3f9b64+_0x5aba94>_0x1427e2||++_0x3d7108>0x2710||(_0x206ad2+=_0x2cb6cf*_0x1427e2)>MAX_PIXELS)throw Error(_0x361d20(0x1e7));const _0x49a1ee=_0x1d1d6e&0x80?0x1<<(_0x1d1d6e&0x7)+0x1:_0x14f304;if(!_0x49a1ee)throw Error(_0x361d20(0x1d7));_0x1d1d6e&0x80&&(_0x5ef0b2(_0x49a1ee*0x3),_0x34e273+=_0x49a1ee*0x3);_0x5ef0b2(0x1);const _0x3e8fe1=_0x326003[_0x34e273++];if(_0x3e8fe1<0x2||_0x3e8fe1>0x8)throw Error(_0x361d20(0x1e4));const _0x55e88e=_0x43194e(),_0x17be7d=0x1<<_0x3e8fe1,_0x13a98b=_0x17be7d+0x1;let _0x1fdcdb=_0x3e8fe1+0x1,_0x526f8a=_0x13a98b+0x1,_0x5c063c=0x0,_0xfcc2fe=-0x1,_0x3be8e0=0x0,_0x2c549f=![];const _0x564a8d=new Uint32Array(0x1000),_0x138427=new Uint16Array(0x1000);for(let _0x5f1f5e=0x0;_0x5f1f5e<_0x17be7d;_0x5f1f5e++){_0x564a8d[_0x5f1f5e]=0x1,_0x138427[_0x5f1f5e]=_0x5f1f5e;}while(_0x5c063c+_0x1fdcdb<=_0x55e88e['length']*0x8){let _0x14ef85=0x0;for(let _0x3ce19d=0x0;_0x3ce19d<_0x1fdcdb;_0x3ce19d++,_0x5c063c++)_0x14ef85|=(_0x55e88e[_0x5c063c>>0x3]>>(_0x5c063c&0x7)&0x1)<<_0x3ce19d;if(_0x14ef85===_0x17be7d){_0x1fdcdb=_0x3e8fe1+0x1,_0x526f8a=_0x13a98b+0x1,_0xfcc2fe=-0x1;continue;}if(_0x14ef85===_0x13a98b){_0x2c549f=!![];break;}if(_0x14ef85>_0x526f8a||_0x14ef85===_0x526f8a&&_0xfcc2fe<0x0||_0xfcc2fe<0x0&&_0x14ef85>=_0x17be7d)throw Error('Invalid\x20GIF\x20LZW\x20dictionary\x20reference.');const _0x461c12=_0x14ef85===_0x526f8a?_0x564a8d[_0xfcc2fe]+0x1:_0x564a8d[_0x14ef85],_0x48b05a=_0x14ef85===_0x526f8a?_0x138427[_0xfcc2fe]:_0x138427[_0x14ef85];if(!_0x461c12||_0x48b05a>=_0x49a1ee||(_0x3be8e0+=_0x461c12)>_0x3e3336*_0x5aba94)throw Error(_0x361d20(0x1dd));if(_0xfcc2fe>=0x0&&_0x526f8a<0x1000){_0x564a8d[_0x526f8a]=_0x564a8d[_0xfcc2fe]+0x1,_0x138427[_0x526f8a]=Math['max'](_0x138427[_0xfcc2fe],_0x48b05a),_0x526f8a++;if(_0x526f8a===0x1<<_0x1fdcdb&&_0x1fdcdb<0xc)_0x1fdcdb++;}_0xfcc2fe=_0x14ef85;}if(!_0x2c549f||_0x3be8e0!==_0x3e3336*_0x5aba94)throw Error(_0x361d20(0x1df));}throw Error('Missing\x20GIF\x20trailer.');}export function validateImageBytes(_0x1bbebd){const _0x356bec=a145_0x3fe5;if(!_0x1bbebd['length']||_0x1bbebd[_0x356bec(0x1f2)]>0xa*0x400*0x400)throw Error(_0x356bec(0x1f0));let _0x4caece;try{if(_0x1bbebd['subarray'](0x0,0x8)[_0x356bec(0x1e2)](Buffer[_0x356bec(0x209)]([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]))){if(_0x1bbebd['length']<0x21||_0x1bbebd['toString'](_0x356bec(0x1ec),0xc,0x10)!==_0x356bec(0x1fe))throw Error(_0x356bec(0x1f7));dimensions(_0x1bbebd[_0x356bec(0x1f6)](0x10),_0x1bbebd[_0x356bec(0x1f6)](0x14));const _0x4b19c6=_0x1bbebd[_0x356bec(0x1f6)](0x10),_0x234948=_0x1bbebd[_0x356bec(0x1f6)](0x14),_0x1947ca=_0x1bbebd[0x18],_0x239c8b=_0x1bbebd[0x19],_0x210d71=_0x1bbebd[0x1c],_0x1a37f0={0x0:0x1,0x2:0x3,0x3:0x1,0x4:0x2,0x6:0x4}[_0x239c8b];if(!_0x1a37f0||![0x1,0x2,0x4,0x8,0x10][_0x356bec(0x20c)](_0x1947ca)||_0x210d71>0x1)throw Error(_0x356bec(0x20a));const _0xf7f962=_0xa21b0e=>Math[_0x356bec(0x212)](_0xa21b0e*_0x1a37f0*_0x1947ca/0x8)+0x1;let _0x35eee9=_0xf7f962(_0x4b19c6)*_0x234948;if(_0x210d71){_0x35eee9=0x0;for(const [_0x57b5f5,_0xe9321d,_0x1c016e,_0x4cb84e]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 _0x2f39a5=Math[_0x356bec(0x1fa)](0x0,Math[_0x356bec(0x212)]((_0x4b19c6-_0x57b5f5)/_0x1c016e)),_0x29af64=Math[_0x356bec(0x1fa)](0x0,Math[_0x356bec(0x212)]((_0x234948-_0xe9321d)/_0x4cb84e));if(_0x2f39a5&&_0x29af64)_0x35eee9+=_0xf7f962(_0x2f39a5)*_0x29af64;}}let _0xd81f8a=0x8,_0x4e43f8=![];const _0x148355=[];while(_0xd81f8a<_0x1bbebd[_0x356bec(0x1f2)]){if(_0xd81f8a+0xc>_0x1bbebd[_0x356bec(0x1f2)])throw Error(_0x356bec(0x1f5));const _0x5376cf=_0x1bbebd[_0x356bec(0x1f6)](_0xd81f8a),_0x4830ea=_0x1bbebd['toString'](_0x356bec(0x1ec),_0xd81f8a+0x4,_0xd81f8a+0x8);if(_0x4830ea===_0x356bec(0x1f4))throw Error('Animated\x20PNG\x20is\x20not\x20supported.');if(_0xd81f8a+_0x5376cf+0xc>_0x1bbebd['length'])throw Error(_0x356bec(0x206));if(_0x4830ea==='IDAT')_0x148355['push'](_0x1bbebd[_0x356bec(0x1ed)](_0xd81f8a+0x8,_0xd81f8a+0x8+_0x5376cf));_0xd81f8a+=_0x5376cf+0xc;if(_0x4830ea===_0x356bec(0x1db)){if(_0x5376cf||_0xd81f8a!==_0x1bbebd['length'])throw Error(_0x356bec(0x1ef));_0x4e43f8=!![];break;}}if(!_0x4e43f8||!_0x148355[_0x356bec(0x1f2)])throw Error('Missing\x20PNG\x20data/end.');if(inflateSync(Buffer['concat'](_0x148355),{'maxOutputLength':_0x35eee9+0x1})['length']!==_0x35eee9)throw Error(_0x356bec(0x1e0));const {PNG:_0x5141c0}=require(_0x356bec(0x1d8)),_0x103086=_0x5141c0['sync'][_0x356bec(0x1e8)](_0x1bbebd,{'checkCRC':!![]});dimensions(_0x103086[_0x356bec(0x1d5)],_0x103086[_0x356bec(0x20e)]),_0x4caece='image/png';}else{if(_0x1bbebd[0x0]===0xff&&_0x1bbebd[0x1]===0xd8){if(_0x1bbebd['at'](-0x2)!==0xff||_0x1bbebd['at'](-0x1)!==0xd9)throw Error(_0x356bec(0x1f9));const _0x5043e3=require(_0x356bec(0x1d6)),_0x5aa453=_0x5043e3[_0x356bec(0x1ff)](_0x1bbebd,{'useTArray':!![],'formatAsRGBA':![],'tolerantDecoding':![],'maxResolutionInMP':0x28,'maxMemoryUsageInMB':0x100});dimensions(_0x5aa453[_0x356bec(0x1d5)],_0x5aa453[_0x356bec(0x20e)]),_0x4caece=_0x356bec(0x1f3);}else{if([_0x356bec(0x1e1),_0x356bec(0x1fd)][_0x356bec(0x20c)](_0x1bbebd[_0x356bec(0x207)]('ascii',0x0,0x6))){if(_0x1bbebd[_0x356bec(0x1f2)]<0xe||_0x1bbebd['at'](-0x1)!==0x3b)throw Error(_0x356bec(0x1f8));dimensions(_0x1bbebd[_0x356bec(0x1fb)](0x6),_0x1bbebd['readUInt16LE'](0x8)),validateGif(_0x1bbebd);const {GifReader:_0x20bbc6}=require(_0x356bec(0x1e9)),_0xa871e1=new _0x20bbc6(_0x1bbebd);dimensions(_0xa871e1['width'],_0xa871e1[_0x356bec(0x20e)]);const _0x4942ea=_0xa871e1[_0x356bec(0x1dc)]();if(!_0x4942ea||_0x4942ea>0x2710||_0x4942ea*_0xa871e1['width']*_0xa871e1[_0x356bec(0x20e)]>MAX_PIXELS)throw Error(_0x356bec(0x1e7));const _0x320ce2=new Uint8Array(_0xa871e1[_0x356bec(0x1d5)]*_0xa871e1[_0x356bec(0x20e)]*0x4);for(let _0x274886=0x0;_0x274886<_0x4942ea;_0x274886++){const _0x6b4a01=_0xa871e1['frameInfo'](_0x274886);if(_0x6b4a01['x']+_0x6b4a01[_0x356bec(0x1d5)]>_0xa871e1['width']||_0x6b4a01['y']+_0x6b4a01[_0x356bec(0x20e)]>_0xa871e1[_0x356bec(0x20e)])throw Error('GIF\x20frame\x20exceeds\x20canvas.');_0xa871e1[_0x356bec(0x213)](_0x274886,_0x320ce2);}_0x4caece=_0x356bec(0x204);}else throw Error(_0x356bec(0x1e6));}}}catch(_0x1edc56){throw Error(_0x356bec(0x1e3)+_0x1edc56['message']);}return{'contentHash':createHash(_0x356bec(0x211))[_0x356bec(0x1d9)](_0x1bbebd)['digest'](_0x356bec(0x20d)),'type':_0x4caece,'size':_0x1bbebd[_0x356bec(0x1f2)],'bytes':_0x1bbebd};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a146_0x2d3e(_0x49708d,_0x3ff23d){_0x49708d=_0x49708d-0x1f2;const _0x434867=a146_0x4348();let _0x2d3eff=_0x434867[_0x49708d];return _0x2d3eff;}const a146_0x5beee1=a146_0x2d3e;function a146_0x4348(){const _0x4cb86e=['Rich\x20IMAGE\x20cell\x20contains\x20unexpected\x20scalar\x20or\x20mixed\x20content.','xl/','anchor\x20start\x20offset','exec','472uYOWUt','Missing\x20future\x20metadata\x20block.','sheets','attrs','rvb','Missing\x20WPS\x20image\x20ID:\x20','push','future\x20metadata\x20index','anchor\x20column','drawing','30891xDYMMA','47455FEqkXc','sheetFormatPr','Unsupported\x20WPS\x20cell\x20image\x20namespace.','Invalid\x20or\x20duplicate\x20WPS\x20image\x20ID.','add','metadataTypes','Image\x20anchor\x20spans\x20multiple\x20business\x20rows.','.rels','anchor\x20row','utf8','normalize','Image\x20XML\x20event\x20budget\x20exceeded.','flatMap','image\x20cell\x20row','Absolute\x20image\x20anchor\x20cannot\x20be\x20mapped\x20in\x20worksheet\x20','MAX_SAFE_INTEGER','charCodeAt','_localImage','16819253pQmtUe','rdRichValueStructure','../','rich\x20metadata\x20record','twoCellAnchor','uri','dirname','10104228qtElam','attributes','Relationship','oneCellAnchor','wsDr','Image\x20anchor\x20has\x20invalid\x20or\x20reversed\x20row\x20offsets.','col','Relationships','nvPicPr','Unsupported\x20drawing\x20namespace.','cNvPr','http://schemas.openxmlformats.org/drawingml/2006/main','cellImages','opentag','length','rvStructures','value\x20metadata\x20index','Unsupported\x20rich\x20value\x20namespace.','Unsupported\x20mapped\x20rich\x20value\x20structure.','Missing\x20XLSX\x20part:\x20','External\x20image\x20links\x20are\x20not\x20supported.','rich\x20value\x20binding','reduce','image','workbook','name','anchor\x20start','fromEntries','Missing\x20local\x20image\x20identifier\x20value.','http://www.wps.cn/officeDocument/2017/etCustomData','local','join','set','Invalid\x20relationship\x20target:\x20','Unsupported\x20image\x20formula;\x20expected\x20a\x20standalone\x20DISPIMG\x20literal.','Internal','Unsupported\x20rich\x20image\x20relation\x20namespace.','from','write','rowOff','{3e2802c4-a4d2-4d8b-9148-e3be6c30e623}','12444abNePu','sheetData','Unsupported\x20workbook\x20namespace.','richValueRel','filter','ext','isSafeInteger','xl/workbook.xml','rel','valueMetadata','Duplicate\x20mapped\x20image\x20cell.','http://schemas.openxmlformats.org/spreadsheetml/2006/main','toLowerCase','get','#VALUE!','rvData','slice','WPS\x20image\x20name','metadata\x20types','anchor\x20end\x20offset','text','Image\x20XML\x20node\x20budget\x20exceeded.','Invalid\x20or\x20duplicate\x20relationship\x20in\x20','pic','posix','Invalid\x20','metadataType','Invalid\x20image\x20start\x20offset\x20at\x20row\x20','close','children','780vjidyj','http://purl.oclc.org/ooxml/drawingml/main','10554560xojJqw','r:link','Workbook\x20exceeds\x2010000\x20image\x20occurrences.','Image\x20coordinate\x20exceeds\x20worksheet\x20bounds.','Unsupported\x20drawing\x20image.','r:id','Missing\x20or\x20ambiguous\x20WPS\x20cell\x20image\x20part.','has','value','_rels','cellImage','blipFill','1146TTkVqP','test','http://schemas.microsoft.com/office/spreadsheetml/2017/richdata','isFinite','error','image\x20extent','absoluteAnchor','replace','defaultRowHeight','Shared\x20image\x20formulas\x20are\x20not\x20supported.','message','true','type','startsWith','1559UCZOLQ','/xl/cellimages.xml','http://purl.oclc.org/ooxml/spreadsheetml/main','rich\x20image\x20relationship\x20index','Ambiguous\x20XML\x20attribute.','metadata','row','doctype','http://schemas.microsoft.com/office/2022/10/relationships/richValueRel','http://www.wps.cn/officeDocument/2017/relationships/','Unsupported\x20metadata\x20namespace.','582vUOjVu','includes','Missing\x20value\x20metadata\x20block.','rich\x20value\x20index','extLst','Unsupported\x20rich\x20structure\x20namespace.','sheetMetadata','image\x20height','Mixed\x20formula\x20and\x20rich\x20image\x20metadata\x20is\x20unsupported.','closetag','r:embed','hidden','http://schemas.microsoft.com/office/spreadsheetml/2022/richvaluerel','XLRICHVALUE','worksheet','rdRichValue','shared','metadata\x20type\x20index','richValueRels','hidden\x20image\x20row','WPS\x20image\x20blip','Unsupported\x20relationship\x20namespace\x20in\x20','XML\x20DTD/entities\x20are\x20not\x20supported.','sheet','map','blip','Missing\x20or\x20ambiguous\x20','http://schemas.microsoft.com/office/2017/06/relationships/','xl/cellimages.xml'];a146_0x4348=function(){return _0x4cb86e;};return a146_0x4348();}(function(_0x21da5a,_0x4e860e){const _0x490cda=a146_0x2d3e,_0x367c3c=_0x21da5a();while(!![]){try{const _0x48b60f=-parseInt(_0x490cda(0x256))/0x1*(parseInt(_0x490cda(0x248))/0x2)+parseInt(_0x490cda(0x21c))/0x3*(parseInt(_0x490cda(0x23a))/0x4)+parseInt(_0x490cda(0x28d))/0x5*(-parseInt(_0x490cda(0x261))/0x6)+parseInt(_0x490cda(0x28c))/0x7*(parseInt(_0x490cda(0x282))/0x8)+-parseInt(_0x490cda(0x1f3))/0x9+parseInt(_0x490cda(0x23c))/0xa+parseInt(_0x490cda(0x29f))/0xb;if(_0x48b60f===_0x4e860e)break;else _0x367c3c['push'](_0x367c3c['shift']());}catch(_0x2cb9ae){_0x367c3c['push'](_0x367c3c['shift']());}}}(a146_0x4348,0xaf118));import a146_0x194dca from'node:path';import{SaxesParser}from'saxes';const SHEET=[a146_0x5beee1(0x227),a146_0x5beee1(0x258)],DRAWING=['http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing','http://purl.oclc.org/ooxml/drawingml/spreadsheetDrawing'],DRAWING_MAIN=[a146_0x5beee1(0x1fe),a146_0x5beee1(0x23b)],OFFICE_RELS=['http://schemas.openxmlformats.org/officeDocument/2006/relationships','http://purl.oclc.org/ooxml/officeDocument/relationships'],PACKAGE=['http://schemas.openxmlformats.org/package/2006/relationships'],RICH=[a146_0x5beee1(0x24a)],RICH_RELS=[a146_0x5beee1(0x26d)],WPS=[a146_0x5beee1(0x210)],DEFAULT_NS=Object[a146_0x5beee1(0x20e)]([...[a146_0x5beee1(0x20b),'sheets','sheet',a146_0x5beee1(0x26f),a146_0x5beee1(0x21d),a146_0x5beee1(0x25c),'c','f','v',a146_0x5beee1(0x28e),a146_0x5beee1(0x28b),'metadata',a146_0x5beee1(0x292),a146_0x5beee1(0x236),'futureMetadata',a146_0x5beee1(0x225),'bk','rc',a146_0x5beee1(0x265)][a146_0x5beee1(0x279)](_0x35528b=>[_0x35528b,SHEET]),...['wsDr',a146_0x5beee1(0x1f6),a146_0x5beee1(0x2a3),a146_0x5beee1(0x24e),'from','to',a146_0x5beee1(0x1f9),'colOff',a146_0x5beee1(0x21a),a146_0x5beee1(0x221),'pic',a146_0x5beee1(0x1fb),a146_0x5beee1(0x1fd),a146_0x5beee1(0x247)]['map'](_0x324d1b=>[_0x324d1b,DRAWING]),...[a146_0x5beee1(0x286),a146_0x5beee1(0x22b),'rv',a146_0x5beee1(0x202),'s','k']['map'](_0x18cd06=>[_0x18cd06,RICH]),[a146_0x5beee1(0x27a),DRAWING_MAIN],['richValueRels',RICH_RELS],['rel',RICH_RELS],[a146_0x5beee1(0x1fa),PACKAGE],[a146_0x5beee1(0x1f5),PACKAGE],['cellImages',WPS],[a146_0x5beee1(0x246),WPS]]),matches=(_0x3c1f50,_0x5bcc01,_0x40a741=DEFAULT_NS[_0x5bcc01]??[])=>_0x3c1f50[a146_0x5beee1(0x20c)]===_0x5bcc01&&_0x40a741[a146_0x5beee1(0x262)](_0x3c1f50[a146_0x5beee1(0x2a4)]),children=(_0x7849b7,_0x29f481,_0x16daec=DEFAULT_NS[_0x29f481])=>_0x7849b7['children'][a146_0x5beee1(0x220)](_0x4e6982=>matches(_0x4e6982,_0x29f481,_0x16daec)),chain=(_0x3446c7,..._0x1f51bf)=>_0x1f51bf[a146_0x5beee1(0x209)]((_0x29718c,_0x66e1ce)=>_0x29718c[a146_0x5beee1(0x299)](_0x29b037=>children(_0x29b037,_0x66e1ce)),[_0x3446c7]),relationshipTypes=_0x1a120e=>{const _0x1b1f47=a146_0x5beee1;if([_0x1b1f47(0x270),_0x1b1f47(0x2a0)][_0x1b1f47(0x262)](_0x1a120e))return[_0x1b1f47(0x27c)+_0x1a120e];if(_0x1a120e===_0x1b1f47(0x21f))return[_0x1b1f47(0x25e)];if(_0x1a120e==='cellImage'||_0x1a120e===_0x1b1f47(0x1ff))return[_0x1b1f47(0x25f)+_0x1a120e];return OFFICE_RELS[_0x1b1f47(0x279)](_0x162326=>_0x162326+'/'+_0x1a120e);};function one(_0x3d0557,_0xd3c51f){const _0x4c32ac=a146_0x5beee1;if(_0x3d0557[_0x4c32ac(0x201)]!==0x1)throw Error(_0x4c32ac(0x27b)+_0xd3c51f+'.');return _0x3d0557[0x0];}function integer(_0xa8f973,_0x112096,_0x1bcfeb=0x186a0){const _0x283d46=a146_0x5beee1;if(!_0xa8f973||!/^\d+$/[_0x283d46(0x249)](_0xa8f973)||!Number[_0x283d46(0x222)](Number(_0xa8f973))||Number(_0xa8f973)>_0x1bcfeb)throw Error(_0x283d46(0x235)+_0x112096+'.');return Number(_0xa8f973);}export function resolveWorksheetImages(_0x304ef9,_0x510f3c,_0x20ba5f){const _0x21fc5b=a146_0x5beee1;let _0x59f6ad=0x0,_0x4ca3f1=0x0,_0x3f4cfa=0x0;const _0x25eb82=new Map(),_0x153024=_0x2f02ea=>{const _0x1da0d5=a146_0x2d3e;if(_0x25eb82[_0x1da0d5(0x243)](_0x2f02ea))return _0x25eb82[_0x1da0d5(0x229)](_0x2f02ea);const _0x3a618e=_0x304ef9[_0x1da0d5(0x229)](_0x2f02ea);if(!_0x3a618e)throw Error(_0x1da0d5(0x206)+_0x2f02ea+'.');const _0x1489c6={'name':'','uri':'','attrs':{},'children':[],'text':''},_0x4b72c6=[_0x1489c6],_0x2cb542=new SaxesParser({'xmlns':!![]}),_0x27930e=()=>{const _0x8d46e4=_0x1da0d5;if(++_0x4ca3f1>0x1e8480)throw Error(_0x8d46e4(0x298));};_0x2cb542['on'](_0x1da0d5(0x25d),()=>{const _0x323dd8=_0x1da0d5;throw Error(_0x323dd8(0x277));}),_0x2cb542['on'](_0x1da0d5(0x200),_0x291444=>{const _0x417acf=_0x1da0d5;_0x27930e();if(++_0x59f6ad>0x7a120||_0x4b72c6[_0x417acf(0x201)]>0x40)throw Error(_0x417acf(0x231));const _0x507876={};for(const _0x1964c8 of Object['values'](_0x291444[_0x417acf(0x1f4)])){const _0x62beaa=OFFICE_RELS['includes'](_0x1964c8[_0x417acf(0x2a4)])?'r:'+_0x1964c8[_0x417acf(0x211)]:_0x1964c8[_0x417acf(0x2a4)]?'{'+_0x1964c8[_0x417acf(0x2a4)]+'}'+_0x1964c8[_0x417acf(0x211)]:_0x1964c8[_0x417acf(0x211)];if(_0x62beaa in _0x507876)throw Error(_0x417acf(0x25a));_0x507876[_0x62beaa]=_0x1964c8[_0x417acf(0x244)];}const _0x4db051={'name':_0x291444[_0x417acf(0x211)],'uri':_0x291444[_0x417acf(0x2a4)],'attrs':_0x507876,'children':[],'text':''};_0x4b72c6['at'](-0x1)[_0x417acf(0x239)][_0x417acf(0x288)](_0x4db051),_0x4b72c6[_0x417acf(0x288)](_0x4db051);}),_0x2cb542['on'](_0x1da0d5(0x230),_0x10b7f8=>{const _0x1d75fa=_0x1da0d5;_0x27930e();const _0x414194=_0x4b72c6['at'](-0x1);_0x414194[_0x1d75fa(0x230)]+=_0x10b7f8;if(_0x414194[_0x1d75fa(0x230)]['length']>0x10000)throw Error('Image\x20XML\x20text\x20exceeds\x2064\x20KB.');}),_0x2cb542['on'](_0x1da0d5(0x26a),()=>{_0x27930e(),_0x4b72c6['pop']();}),_0x2cb542['on'](_0x1da0d5(0x24c),_0x55f3b2=>{throw _0x55f3b2;}),_0x2cb542[_0x1da0d5(0x219)](_0x3a618e['toString'](_0x1da0d5(0x296)))[_0x1da0d5(0x238)]();const _0x121f6b=one(_0x1489c6['children'],_0x2f02ea);return _0x25eb82[_0x1da0d5(0x213)](_0x2f02ea,_0x121f6b),_0x121f6b;},_0x5e1ceb=new Map(),_0x3ce921=_0x8d166e=>{const _0x2a9fa3=a146_0x2d3e;if(_0x5e1ceb[_0x2a9fa3(0x243)](_0x8d166e))return _0x5e1ceb[_0x2a9fa3(0x229)](_0x8d166e);const _0x2541ba=a146_0x194dca[_0x2a9fa3(0x234)][_0x2a9fa3(0x212)](a146_0x194dca[_0x2a9fa3(0x234)][_0x2a9fa3(0x1f2)](_0x8d166e),_0x2a9fa3(0x245),a146_0x194dca[_0x2a9fa3(0x234)]['basename'](_0x8d166e)+_0x2a9fa3(0x294));if(!_0x304ef9[_0x2a9fa3(0x243)](_0x2541ba))return[];const _0xa8bf92=new Set(),_0x452d63=_0x153024(_0x2541ba);if(!matches(_0x452d63,_0x2a9fa3(0x1fa)))throw Error(_0x2a9fa3(0x276)+_0x2541ba+'.');const _0x55a33e=children(_0x452d63,'Relationship')[_0x2a9fa3(0x279)](_0x2ec007=>{const _0x5206a0=_0x2a9fa3,{Id:_0xfe92e9,Type:_0x16a871,Target:_0x33cafd,TargetMode:_0x1e2889}=_0x2ec007['attrs'];if(!_0xfe92e9||_0xa8bf92['has'](_0xfe92e9)||!_0x16a871)throw Error(_0x5206a0(0x232)+_0x2541ba+'.');return _0xa8bf92[_0x5206a0(0x291)](_0xfe92e9),{'id':_0xfe92e9,'type':_0x16a871,'target':_0x33cafd??'','mode':_0x1e2889};});return _0x5e1ceb[_0x2a9fa3(0x213)](_0x8d166e,_0x55a33e),_0x55a33e;},_0x141a09=(_0x254d0a,_0x3516af)=>{const _0x3b26a0=a146_0x2d3e,{target:_0x54b594,mode:_0x50d44b}=_0x3516af;if(_0x50d44b&&_0x50d44b!==_0x3b26a0(0x216))throw Error('External\x20image\x20relationship\x20is\x20not\x20supported:\x20'+_0x254d0a+'.');if(!_0x54b594||_0x54b594[_0x3b26a0(0x262)]('\x5c')||/[?#%\x00-\x20]/[_0x3b26a0(0x249)](_0x54b594)||/^[a-z][a-z0-9+.-]*:/i[_0x3b26a0(0x249)](_0x54b594)||_0x54b594['startsWith']('//'))throw Error(_0x3b26a0(0x214)+_0x254d0a+'.');const _0x558fc8=_0x54b594[_0x3b26a0(0x255)]('/')?_0x54b594[_0x3b26a0(0x22c)](0x1):a146_0x194dca['posix'][_0x3b26a0(0x297)](a146_0x194dca[_0x3b26a0(0x234)][_0x3b26a0(0x212)](a146_0x194dca[_0x3b26a0(0x234)][_0x3b26a0(0x1f2)](_0x254d0a),_0x54b594));if(_0x558fc8['startsWith'](_0x3b26a0(0x2a1))||_0x558fc8==='..'||!_0x558fc8[_0x3b26a0(0x255)](_0x3b26a0(0x27f)))throw Error('Relationship\x20target\x20escapes\x20workbook:\x20'+_0x254d0a+'.');return _0x558fc8;},_0x18fdb8=(_0xca5f22,_0x35efdd,_0x5c1820)=>{const _0x3e8c93=a146_0x2d3e,_0x55e514=_0x3ce921(_0xca5f22)['filter'](_0x171320=>_0x171320['id']===_0x35efdd&&relationshipTypes(_0x5c1820)[_0x3e8c93(0x262)](_0x171320[_0x3e8c93(0x254)]));if(_0x55e514['length']!==0x1)throw Error(_0x3e8c93(0x27b)+_0x5c1820+'\x20relationship\x20in\x20'+_0xca5f22+'.');return _0x141a09(_0xca5f22,_0x55e514[0x0]);},_0x268e66=(_0x284647,_0x2aba94)=>{const _0x48cbf5=a146_0x2d3e,_0x3e38c6=_0x3ce921(_0x284647)['filter'](_0x50d84b=>relationshipTypes(_0x2aba94)[_0x48cbf5(0x262)](_0x50d84b[_0x48cbf5(0x254)]));if(_0x3e38c6[_0x48cbf5(0x201)]!==0x1)throw Error(_0x48cbf5(0x27b)+_0x2aba94+'\x20relationship\x20in\x20'+_0x284647+'.');return _0x141a09(_0x284647,_0x3e38c6[0x0]);},_0x5bbf08=_0x21fc5b(0x223),_0x34deb2=_0x153024(_0x5bbf08);if(!matches(_0x34deb2,_0x21fc5b(0x20b)))throw Error(_0x21fc5b(0x21e));const _0x45159a=one(chain(_0x34deb2,_0x21fc5b(0x284),_0x21fc5b(0x278))[_0x21fc5b(0x220)](_0x4d80b8=>_0x4d80b8[_0x21fc5b(0x285)][_0x21fc5b(0x20c)]===_0x510f3c),_0x21fc5b(0x26f)),_0x45884d=_0x18fdb8(_0x5bbf08,_0x45159a[_0x21fc5b(0x285)]['r:id'],_0x21fc5b(0x26f)),_0x261eba=_0x153024(_0x45884d);if(!matches(_0x261eba,'worksheet'))throw Error('Unsupported\x20worksheet\x20namespace.');const _0x2147c6=chain(_0x261eba,'sheetData','row'),_0x53e627=new Map(),_0x830582=new Set(_0x2147c6[_0x21fc5b(0x220)](_0x126328=>_0x126328[_0x21fc5b(0x285)][_0x21fc5b(0x26c)]==='1'||_0x126328[_0x21fc5b(0x285)][_0x21fc5b(0x26c)]===_0x21fc5b(0x253))[_0x21fc5b(0x279)](_0x1dda63=>integer(_0x1dda63[_0x21fc5b(0x285)]['r'],_0x21fc5b(0x274)))),_0x2127a6=_0x299f54=>{const _0x52ee5f=_0x21fc5b,_0x365f59=_0x299f54===undefined?0xf:Number(_0x299f54);if(!Number[_0x52ee5f(0x24b)](_0x365f59)||_0x365f59<=0x0||_0x365f59>409.5)throw Error('Invalid\x20worksheet\x20row\x20height\x20for\x20image\x20anchor.');return Math['round'](_0x365f59*0x319c);},_0x105c11=_0x2127a6(children(_0x261eba,'sheetFormatPr')[0x0]?.[_0x21fc5b(0x285)][_0x21fc5b(0x250)]);for(const _0x22966a of _0x2147c6)if(_0x22966a[_0x21fc5b(0x285)]['ht']!==undefined)_0x53e627['set'](integer(_0x22966a[_0x21fc5b(0x285)]['r'],'image\x20row\x20height\x20coordinate'),_0x2127a6(_0x22966a[_0x21fc5b(0x285)]['ht']));const _0x536dc9=[],_0x3b798a=_0x318330=>{const _0x1ea014=_0x21fc5b;if(!_0x20ba5f['has'](_0x318330[_0x1ea014(0x1f9)]))return;if(++_0x3f4cfa>0x2710)throw Error(_0x1ea014(0x23e));_0x536dc9[_0x1ea014(0x288)](_0x830582[_0x1ea014(0x243)](_0x318330['row'])?{..._0x318330,'hiddenRow':!![]}:_0x318330);},_0x5856b7=_0x37dc02=>({'row':integer(one(children(_0x37dc02,_0x21fc5b(0x25c),DRAWING),'anchor\x20row')[_0x21fc5b(0x230)],_0x21fc5b(0x295),0x1869f)+0x1,'col':integer(one(children(_0x37dc02,_0x21fc5b(0x1f9)),_0x21fc5b(0x28a))[_0x21fc5b(0x230)],_0x21fc5b(0x28a),0xff)+0x1});for(const _0x48b406 of children(_0x261eba,_0x21fc5b(0x28b))){const _0x1f2098=_0x18fdb8(_0x45884d,_0x48b406[_0x21fc5b(0x285)][_0x21fc5b(0x241)],_0x21fc5b(0x28b)),_0x2fb6d1=_0x153024(_0x1f2098);if(!matches(_0x2fb6d1,_0x21fc5b(0x1f7)))throw Error(_0x21fc5b(0x1fc));for(const _0x24a82e of _0x2fb6d1[_0x21fc5b(0x239)]){if(!['oneCellAnchor','twoCellAnchor','absoluteAnchor']['some'](_0xca69b0=>matches(_0x24a82e,_0xca69b0)))continue;if(_0x24a82e[_0x21fc5b(0x20c)]===_0x21fc5b(0x24e))throw Error(_0x21fc5b(0x29b)+_0x510f3c+'.');const _0x34f0af=_0x5856b7(one(children(_0x24a82e,_0x21fc5b(0x218)),_0x21fc5b(0x20d)));if(!_0x20ba5f[_0x21fc5b(0x243)](_0x34f0af[_0x21fc5b(0x1f9)]))continue;let _0x32d539;const _0x8cd28a=one(children(_0x24a82e,_0x21fc5b(0x218)),_0x21fc5b(0x20d)),_0x13a79e=integer(one(children(_0x8cd28a,_0x21fc5b(0x21a)),_0x21fc5b(0x280))[_0x21fc5b(0x230)],_0x21fc5b(0x280),Number[_0x21fc5b(0x29c)]),_0x10516c=_0x53e627[_0x21fc5b(0x229)](_0x34f0af['row'])??_0x105c11;if(_0x13a79e>=_0x10516c)throw Error(_0x21fc5b(0x237)+_0x34f0af[_0x21fc5b(0x25c)]+'.');if(_0x24a82e['name']===_0x21fc5b(0x1f6)){const _0x1673ab=one(children(_0x24a82e,_0x21fc5b(0x221)),_0x21fc5b(0x24d)),_0x4a3d28=integer(_0x1673ab[_0x21fc5b(0x285)]['cy'],_0x21fc5b(0x268),Number[_0x21fc5b(0x29c)]);if(!_0x4a3d28||_0x13a79e+_0x4a3d28>_0x10516c)_0x32d539='Image\x20anchor\x20spans\x20multiple\x20business\x20rows.';}if(_0x24a82e['name']===_0x21fc5b(0x2a3)){const _0x4f7ce9=one(children(_0x24a82e,'to'),'anchor\x20end'),_0x56e581=_0x5856b7(_0x4f7ce9),_0xd666a3=integer(one(children(_0x4f7ce9,'rowOff'),_0x21fc5b(0x22f))[_0x21fc5b(0x230)],_0x21fc5b(0x22f),Number[_0x21fc5b(0x29c)]),_0x871d64=_0x53e627['get'](_0x56e581[_0x21fc5b(0x25c)])??_0x105c11;if(_0xd666a3>_0x871d64||_0x56e581['row']===_0x34f0af[_0x21fc5b(0x25c)]&&_0xd666a3<=_0x13a79e)_0x32d539=_0x21fc5b(0x1f8);if(_0x56e581[_0x21fc5b(0x25c)]<_0x34f0af['row']||_0x56e581['row']>_0x34f0af['row']+0x1||_0x56e581[_0x21fc5b(0x25c)]===_0x34f0af[_0x21fc5b(0x25c)]+0x1&&_0xd666a3!==0x0)_0x32d539=_0x21fc5b(0x293);}const _0x1680b4=chain(_0x24a82e,'pic','blipFill',_0x21fc5b(0x27a));for(const _0x8f0411 of _0x1680b4){if(_0x8f0411[_0x21fc5b(0x285)]['r:link'])throw Error(_0x21fc5b(0x207));_0x3b798a({..._0x34f0af,'media':[_0x18fdb8(_0x1f2098,_0x8f0411[_0x21fc5b(0x285)]['r:embed'],_0x21fc5b(0x20a))],..._0x32d539?{'error':_0x32d539}:{}});}if(!_0x1680b4[_0x21fc5b(0x201)])_0x3b798a({..._0x34f0af,'media':[],'error':_0x21fc5b(0x240)});}}const _0x3409ef=_0x4aa76b=>{const _0x53fc15=_0x21fc5b,_0x5c9958=_0x153024(_0x268e66(_0x5bbf08,_0x53fc15(0x267)));if(!matches(_0x5c9958,_0x53fc15(0x25b)))throw Error(_0x53fc15(0x260));const _0x1cad6c=integer(_0x4aa76b[_0x53fc15(0x285)]['vm'],_0x53fc15(0x203));if(!_0x1cad6c)throw Error('Value\x20metadata\x20index\x20must\x20be\x20one-based.');const _0x210a74=children(one(children(_0x5c9958,_0x53fc15(0x225)),_0x53fc15(0x225)),'bk')[_0x1cad6c-0x1];if(!_0x210a74)throw Error(_0x53fc15(0x263));const _0x486083=one(children(_0x210a74,'rc'),_0x53fc15(0x2a2)),_0x11afba=integer(_0x486083[_0x53fc15(0x285)]['t'],_0x53fc15(0x272)),_0xfcfa83=children(one(children(_0x5c9958,_0x53fc15(0x292)),_0x53fc15(0x22e)),_0x53fc15(0x236))[_0x11afba-0x1];if(!_0x11afba||_0xfcfa83?.[_0x53fc15(0x285)][_0x53fc15(0x20c)]!=='XLRICHVALUE')throw Error('Unsupported\x20mapped\x20cell\x20metadata\x20type.');const _0x5b34e6=one(children(_0x5c9958,'futureMetadata')[_0x53fc15(0x220)](_0x105b68=>_0x105b68[_0x53fc15(0x285)][_0x53fc15(0x20c)]===_0x53fc15(0x26e)),'rich\x20future\x20metadata'),_0x1ef66d=children(_0x5b34e6,'bk')[integer(_0x486083[_0x53fc15(0x285)]['v'],_0x53fc15(0x289))];if(!_0x1ef66d)throw Error(_0x53fc15(0x283));const _0xb8ff8e=chain(_0x1ef66d,'extLst')[_0x53fc15(0x299)](_0x309461=>children(_0x309461,_0x53fc15(0x221),SHEET))[_0x53fc15(0x220)](_0x3799e2=>_0x3799e2[_0x53fc15(0x285)]['uri']?.[_0x53fc15(0x228)]()===_0x53fc15(0x21b)),_0x36743b=integer(one(_0xb8ff8e['flatMap'](_0x2127c6=>children(_0x2127c6,_0x53fc15(0x286))),_0x53fc15(0x208))[_0x53fc15(0x285)]['i'],_0x53fc15(0x264)),_0x3a6773=_0x153024(_0x268e66(_0x5bbf08,_0x53fc15(0x270)));if(!matches(_0x3a6773,'rvData'))throw Error(_0x53fc15(0x204));const _0x447bf2=children(_0x3a6773,'rv')[_0x36743b];if(!_0x447bf2)throw Error('Missing\x20rich\x20value.');const _0x56459c=_0x153024(_0x268e66(_0x5bbf08,_0x53fc15(0x2a0)));if(!matches(_0x56459c,_0x53fc15(0x202)))throw Error(_0x53fc15(0x266));const _0x55ca8b=children(_0x56459c,'s')[integer(_0x447bf2['attrs']['s'],'rich\x20structure\x20index')];if(!_0x55ca8b||_0x55ca8b['attrs']['t']!==_0x53fc15(0x29e))throw Error(_0x53fc15(0x205));const _0x22cba3=children(_0x55ca8b,'k'),_0x3055ce=_0x22cba3[_0x53fc15(0x279)]((_0xbaea4b,_0x2a519d)=>_0xbaea4b[_0x53fc15(0x285)]['n']==='_rvRel:LocalImageIdentifier'?_0x2a519d:-0x1)[_0x53fc15(0x220)](_0xc8b222=>_0xc8b222>=0x0);if(_0x3055ce[_0x53fc15(0x201)]!==0x1)throw Error('Missing\x20or\x20ambiguous\x20local\x20image\x20identifier.');const _0x39a1b7=children(_0x447bf2,'v',RICH)[_0x3055ce[0x0]];if(!_0x39a1b7)throw Error(_0x53fc15(0x20f));const _0x1bc2c9=_0x268e66(_0x5bbf08,_0x53fc15(0x21f)),_0x12c9fa=_0x153024(_0x1bc2c9);if(!matches(_0x12c9fa,_0x53fc15(0x273)))throw Error(_0x53fc15(0x217));const _0x5b5a56=children(_0x12c9fa,_0x53fc15(0x224))[integer(_0x39a1b7[_0x53fc15(0x230)],_0x53fc15(0x259))];if(!_0x5b5a56)throw Error('Missing\x20rich\x20image\x20relationship.');return _0x18fdb8(_0x1bc2c9,_0x5b5a56[_0x53fc15(0x285)]['r:id'],_0x53fc15(0x20a));};let _0x4af8a9;const _0x3279af=_0x39daa9=>{const _0xd95db4=_0x21fc5b;if(!_0x4af8a9){_0x4af8a9=new Map();const _0x2a0f9c=_0x3ce921(_0x5bbf08)[_0xd95db4(0x220)](_0x49ed64=>[...relationshipTypes(_0xd95db4(0x246)),...relationshipTypes(_0xd95db4(0x1ff))]['includes'](_0x49ed64[_0xd95db4(0x254)]));if(!_0x2a0f9c['length']&&_0x304ef9[_0xd95db4(0x243)](_0xd95db4(0x27d)))_0x2a0f9c[_0xd95db4(0x288)]({'id':'','type':'','target':_0xd95db4(0x257)});if(_0x2a0f9c[_0xd95db4(0x201)]!==0x1)throw Error(_0xd95db4(0x242));const _0x15504e=_0x141a09(_0x5bbf08,_0x2a0f9c[0x0]),_0x4dad7e=_0x153024(_0x15504e);if(!matches(_0x4dad7e,_0xd95db4(0x1ff)))throw Error(_0xd95db4(0x28f));for(const _0x542164 of children(_0x4dad7e,_0xd95db4(0x246))){const _0x437c7d=one(chain(_0x542164,_0xd95db4(0x233),_0xd95db4(0x1fb),_0xd95db4(0x1fd)),_0xd95db4(0x22d))[_0xd95db4(0x285)]['name'];if(!_0x437c7d||_0x4af8a9[_0xd95db4(0x243)](_0x437c7d))throw Error(_0xd95db4(0x290));const _0x1bfc42=one(chain(_0x542164,'pic','blipFill',_0xd95db4(0x27a)),_0xd95db4(0x275));if(_0x1bfc42[_0xd95db4(0x285)][_0xd95db4(0x23d)])throw Error('External\x20WPS\x20image\x20links\x20are\x20not\x20supported.');_0x4af8a9[_0xd95db4(0x213)](_0x437c7d,_0x18fdb8(_0x15504e,_0x1bfc42[_0xd95db4(0x285)][_0xd95db4(0x26b)],'image'));}}const _0x7abf5a=_0x4af8a9[_0xd95db4(0x229)](_0x39daa9);if(!_0x7abf5a)throw Error(_0xd95db4(0x287)+_0x39daa9+'.');return _0x7abf5a;},_0x48df9a=new Set();for(const _0x3281e4 of _0x2147c6[_0x21fc5b(0x299)](_0x53fd5c=>children(_0x53fd5c,'c'))){const _0x264419=/^([A-Z]+)([1-9]\d*)$/['exec'](_0x3281e4[_0x21fc5b(0x285)]['r']??'');if(!_0x264419)continue;let _0x64bb5d=0x0;for(const _0x37ec7f of _0x264419[0x1])_0x64bb5d=_0x64bb5d*0x1a+_0x37ec7f[_0x21fc5b(0x29d)](0x0)-0x40;if(!_0x20ba5f[_0x21fc5b(0x243)](_0x64bb5d))continue;const _0x473338=integer(_0x264419[0x2],_0x21fc5b(0x29a));if(_0x48df9a[_0x21fc5b(0x243)](_0x3281e4[_0x21fc5b(0x285)]['r']))throw Error(_0x21fc5b(0x226));_0x48df9a[_0x21fc5b(0x291)](_0x3281e4[_0x21fc5b(0x285)]['r']);const _0x4230b8=children(_0x3281e4,'f');if(!_0x3281e4[_0x21fc5b(0x285)]['vm']&&!_0x4230b8[_0x21fc5b(0x201)])continue;try{if(_0x473338<0x1||_0x64bb5d>0x100)throw Error(_0x21fc5b(0x23f));let _0x38c1a6;if(_0x3281e4['attrs']['vm']){if(_0x4230b8[_0x21fc5b(0x201)])throw Error(_0x21fc5b(0x269));if(_0x3281e4[_0x21fc5b(0x285)]['t']!=='e'||children(_0x3281e4,'v')['length']!==0x1||children(_0x3281e4,'v')[0x0]['text']!==_0x21fc5b(0x22a))throw Error(_0x21fc5b(0x27e));_0x38c1a6=_0x3409ef(_0x3281e4);}else{const _0x38530b=one(_0x4230b8,'image\x20formula');if(_0x38530b[_0x21fc5b(0x285)]['t']===_0x21fc5b(0x271)||_0x38530b[_0x21fc5b(0x285)]['si'])throw Error(_0x21fc5b(0x251));const _0x48a37c=/^\s*=?\s*@?(?:_xlfn\.)?DISPIMG\(\s*"((?:[^"]|"")+)"\s*(?:,\s*[01]\s*)?\)\s*$/i[_0x21fc5b(0x281)](_0x38530b[_0x21fc5b(0x230)]);if(!_0x48a37c)throw Error(_0x21fc5b(0x215));_0x38c1a6=_0x3279af(_0x48a37c[0x1][_0x21fc5b(0x24f)](/""/g,'\x22'));}_0x3b798a({'row':_0x473338,'col':_0x64bb5d,'media':[_0x38c1a6],'nativeCell':!![]});}catch(_0x350984){_0x3b798a({'row':_0x473338,'col':_0x64bb5d,'media':[],'nativeCell':!![],'error':_0x350984[_0x21fc5b(0x252)]});}}return _0x536dc9;}
|
|
1
|
+
const a146_0x341474=a146_0x3726;(function(_0x54c29b,_0x53bd8c){const _0x23884c=a146_0x3726,_0x483a3c=_0x54c29b();while(!![]){try{const _0x49e082=parseInt(_0x23884c(0x160))/0x1*(parseInt(_0x23884c(0x1a2))/0x2)+-parseInt(_0x23884c(0x1b6))/0x3+-parseInt(_0x23884c(0x1a6))/0x4*(parseInt(_0x23884c(0x1ed))/0x5)+parseInt(_0x23884c(0x1a1))/0x6+-parseInt(_0x23884c(0x16b))/0x7*(-parseInt(_0x23884c(0x1d1))/0x8)+parseInt(_0x23884c(0x143))/0x9*(-parseInt(_0x23884c(0x1e3))/0xa)+parseInt(_0x23884c(0x153))/0xb*(-parseInt(_0x23884c(0x18f))/0xc);if(_0x49e082===_0x53bd8c)break;else _0x483a3c['push'](_0x483a3c['shift']());}catch(_0x275992){_0x483a3c['push'](_0x483a3c['shift']());}}}(a146_0x455b,0x77913));import a146_0xead5cb from'node:path';function a146_0x3726(_0xd5f90f,_0x180c0e){_0xd5f90f=_0xd5f90f-0x13b;const _0x455ba1=a146_0x455b();let _0x37260d=_0x455ba1[_0xd5f90f];return _0x37260d;}function a146_0x455b(){const _0x5a8b9c=['Invalid\x20','Unsupported\x20workbook\x20namespace.','replace','Unsupported\x20mapped\x20rich\x20value\x20structure.','slice','Unsupported\x20worksheet\x20namespace.','nvPicPr','uri','col','Image\x20XML\x20node\x20budget\x20exceeded.','image\x20row\x20height\x20coordinate','http://purl.oclc.org/ooxml/drawingml/spreadsheetDrawing','Mixed\x20formula\x20and\x20rich\x20image\x20metadata\x20is\x20unsupported.','Invalid\x20worksheet\x20row\x20height\x20for\x20image\x20anchor.','metadataTypes','Missing\x20value\x20metadata\x20block.','128lxzcLq','text','Image\x20anchor\x20has\x20invalid\x20or\x20reversed\x20row\x20offsets.','close','value\x20metadata\x20index','rich\x20structure\x20index','http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing','toLowerCase','closetag','metadata\x20type\x20index','startsWith','metadataType','normalize','Unsupported\x20rich\x20value\x20namespace.','twoCellAnchor','http://schemas.openxmlformats.org/officeDocument/2006/relationships','rdRichValueStructure','Image\x20XML\x20event\x20budget\x20exceeded.','487510PohkRg','blipFill','richValueRel','Duplicate\x20mapped\x20image\x20cell.','http://schemas.microsoft.com/office/spreadsheetml/2022/richvaluerel','oneCellAnchor','Unsupported\x20WPS\x20cell\x20image\x20namespace.','opentag','ext','Workbook\x20exceeds\x2010000\x20image\x20occurrences.','14485UZoznY','http://schemas.openxmlformats.org/drawingml/2006/main','metadata\x20types','row','Relationship','includes','local','anchor\x20start','Unsupported\x20rich\x20structure\x20namespace.','r:link','126KCcNAs','rvData','Missing\x20or\x20ambiguous\x20local\x20image\x20identifier.','image','posix','Internal','Ambiguous\x20XML\x20attribute.','isFinite','pic','/xl/cellimages.xml','image\x20extent','doctype','some','worksheet','round','anchor\x20end\x20offset','2339843GHYqTB','sheetFormatPr','sheet','blip','test','http://schemas.microsoft.com/office/2022/10/relationships/richValueRel','wsDr','basename','anchor\x20start\x20offset','cNvPr','error','http://schemas.microsoft.com/office/spreadsheetml/2017/richdata','_localImage','1wcPrHu','_rels','sheets','Invalid\x20or\x20duplicate\x20WPS\x20image\x20ID.','workbook','metadata','Missing\x20local\x20image\x20identifier\x20value.','add','image\x20formula','Missing\x20or\x20ambiguous\x20WPS\x20cell\x20image\x20part.','{3e2802c4-a4d2-4d8b-9148-e3be6c30e623}','155995EOlGUD','anchor\x20column','r:embed','richValueRels','Relationships','Unsupported\x20relationship\x20namespace\x20in\x20','xl/','isSafeInteger','has','Missing\x20or\x20ambiguous\x20','pop','rdRichValue','extLst','External\x20image\x20links\x20are\x20not\x20supported.','http://www.wps.cn/officeDocument/2017/relationships/','xl/workbook.xml','rel','drawing','from','Missing\x20WPS\x20image\x20ID:\x20','name','Image\x20anchor\x20spans\x20multiple\x20business\x20rows.','children','anchor\x20end','cellImage','XLRICHVALUE','flatMap','colOff','rvb','Image\x20XML\x20text\x20exceeds\x2064\x20KB.','http://purl.oclc.org/ooxml/spreadsheetml/main','Unsupported\x20metadata\x20namespace.','http://purl.oclc.org/ooxml/drawingml/main','cellImages','http://schemas.openxmlformats.org/spreadsheetml/2006/main','Rich\x20IMAGE\x20cell\x20contains\x20unexpected\x20scalar\x20or\x20mixed\x20content.','12VmLaJh','External\x20image\x20relationship\x20is\x20not\x20supported:\x20','set','_rvRel:LocalImageIdentifier','http://www.wps.cn/officeDocument/2017/etCustomData','Missing\x20future\x20metadata\x20block.','\x20relationship\x20in\x20','sheetMetadata','filter','futureMetadata','absoluteAnchor','valueMetadata','rich\x20value\x20index','xl/cellimages.xml','WPS\x20image\x20name','type','rowOff','join','4375686Aasiss','846416hoizuC','write','value','exec','92gybmoH','values','Unsupported\x20mapped\x20cell\x20metadata\x20type.','reduce','Unsupported\x20drawing\x20namespace.','hidden','External\x20WPS\x20image\x20links\x20are\x20not\x20supported.','get','http://schemas.microsoft.com/office/2017/06/relationships/','Unsupported\x20rich\x20image\x20relation\x20namespace.','MAX_SAFE_INTEGER','attrs','rich\x20image\x20relationship\x20index','http://schemas.openxmlformats.org/package/2006/relationships','map','dirname','172332lxFNyV','Value\x20metadata\x20index\x20must\x20be\x20one-based.','Invalid\x20relationship\x20target:\x20','r:id','charCodeAt','push','rich\x20future\x20metadata','http://purl.oclc.org/ooxml/officeDocument/relationships','Shared\x20image\x20formulas\x20are\x20not\x20supported.','length','XML\x20DTD/entities\x20are\x20not\x20supported.'];a146_0x455b=function(){return _0x5a8b9c;};return a146_0x455b();}import{SaxesParser}from'saxes';const SHEET=[a146_0x341474(0x18d),a146_0x341474(0x189)],DRAWING=[a146_0x341474(0x1d7),a146_0x341474(0x1cc)],DRAWING_MAIN=[a146_0x341474(0x1ee),a146_0x341474(0x18b)],OFFICE_RELS=[a146_0x341474(0x1e0),a146_0x341474(0x1bd)],PACKAGE=[a146_0x341474(0x1b3)],RICH=[a146_0x341474(0x15e)],RICH_RELS=[a146_0x341474(0x1e7)],WPS=[a146_0x341474(0x193)],DEFAULT_NS=Object['fromEntries']([...[a146_0x341474(0x164),'sheets',a146_0x341474(0x155),a146_0x341474(0x150),'sheetData',a146_0x341474(0x13c),'c','f','v',a146_0x341474(0x154),a146_0x341474(0x17c),'metadata',a146_0x341474(0x1cf),a146_0x341474(0x1dc),'futureMetadata',a146_0x341474(0x19a),'bk','rc',a146_0x341474(0x177)][a146_0x341474(0x1b4)](_0x34f100=>[_0x34f100,SHEET]),...['wsDr',a146_0x341474(0x1e8),a146_0x341474(0x1df),a146_0x341474(0x199),a146_0x341474(0x17d),'to',a146_0x341474(0x1c9),a146_0x341474(0x186),a146_0x341474(0x19f),a146_0x341474(0x1eb),'pic',a146_0x341474(0x1c7),a146_0x341474(0x15c),a146_0x341474(0x1e4)][a146_0x341474(0x1b4)](_0x164fc7=>[_0x164fc7,DRAWING]),...[a146_0x341474(0x187),a146_0x341474(0x144),'rv','rvStructures','s','k'][a146_0x341474(0x1b4)](_0x439194=>[_0x439194,RICH]),['blip',DRAWING_MAIN],['richValueRels',RICH_RELS],['rel',RICH_RELS],['Relationships',PACKAGE],['Relationship',PACKAGE],[a146_0x341474(0x18c),WPS],[a146_0x341474(0x183),WPS]]),matches=(_0x402356,_0x19b269,_0x62f6a1=DEFAULT_NS[_0x19b269]??[])=>_0x402356[a146_0x341474(0x17f)]===_0x19b269&&_0x62f6a1[a146_0x341474(0x13e)](_0x402356[a146_0x341474(0x1c8)]),children=(_0x58ad86,_0xffccd4,_0x294f8b=DEFAULT_NS[_0xffccd4])=>_0x58ad86[a146_0x341474(0x181)][a146_0x341474(0x197)](_0x3733e6=>matches(_0x3733e6,_0xffccd4,_0x294f8b)),chain=(_0x5479f9,..._0x1f9e39)=>_0x1f9e39[a146_0x341474(0x1a9)]((_0x3c2af5,_0x299228)=>_0x3c2af5[a146_0x341474(0x185)](_0x25e4ea=>children(_0x25e4ea,_0x299228)),[_0x5479f9]),relationshipTypes=_0x592189=>{const _0x305afb=a146_0x341474;if([_0x305afb(0x176),'rdRichValueStructure'][_0x305afb(0x13e)](_0x592189))return[_0x305afb(0x1ae)+_0x592189];if(_0x592189===_0x305afb(0x1e5))return[_0x305afb(0x158)];if(_0x592189===_0x305afb(0x183)||_0x592189===_0x305afb(0x18c))return[_0x305afb(0x179)+_0x592189];return OFFICE_RELS[_0x305afb(0x1b4)](_0x280319=>_0x280319+'/'+_0x592189);};function one(_0x3b18b9,_0x2f1aaf){const _0x33be24=a146_0x341474;if(_0x3b18b9[_0x33be24(0x1bf)]!==0x1)throw Error(_0x33be24(0x174)+_0x2f1aaf+'.');return _0x3b18b9[0x0];}function integer(_0xb9a700,_0x1364af,_0x2087e4=0x186a0){const _0x4453f4=a146_0x341474;if(!_0xb9a700||!/^\d+$/[_0x4453f4(0x157)](_0xb9a700)||!Number[_0x4453f4(0x172)](Number(_0xb9a700))||Number(_0xb9a700)>_0x2087e4)throw Error(_0x4453f4(0x1c1)+_0x1364af+'.');return Number(_0xb9a700);}export function resolveWorksheetImages(_0x3de652,_0x4640db,_0x1f4240){const _0x5d3545=a146_0x341474;let _0x5701ec=0x0,_0x3dd7b0=0x0,_0x35eb40=0x0;const _0x3f0b30=new Map(),_0x954c14=_0x5ebae5=>{const _0x53ce92=a146_0x3726;if(_0x3f0b30[_0x53ce92(0x173)](_0x5ebae5))return _0x3f0b30[_0x53ce92(0x1ad)](_0x5ebae5);const _0x5dd0d0=_0x3de652[_0x53ce92(0x1ad)](_0x5ebae5);if(!_0x5dd0d0)throw Error('Missing\x20XLSX\x20part:\x20'+_0x5ebae5+'.');const _0x172909={'name':'','uri':'','attrs':{},'children':[],'text':''},_0x298f50=[_0x172909],_0x1792d1=new SaxesParser({'xmlns':!![]}),_0x3e29fa=()=>{const _0x4315a4=_0x53ce92;if(++_0x3dd7b0>0x1e8480)throw Error(_0x4315a4(0x1e2));};_0x1792d1['on'](_0x53ce92(0x14e),()=>{const _0x1d9937=_0x53ce92;throw Error(_0x1d9937(0x1c0));}),_0x1792d1['on'](_0x53ce92(0x1ea),_0x1fc792=>{const _0x3c0475=_0x53ce92;_0x3e29fa();if(++_0x5701ec>0x7a120||_0x298f50[_0x3c0475(0x1bf)]>0x40)throw Error(_0x3c0475(0x1ca));const _0x59e297={};for(const _0x131523 of Object[_0x3c0475(0x1a7)](_0x1fc792['attributes'])){const _0x22dab0=OFFICE_RELS['includes'](_0x131523[_0x3c0475(0x1c8)])?'r:'+_0x131523[_0x3c0475(0x13f)]:_0x131523[_0x3c0475(0x1c8)]?'{'+_0x131523['uri']+'}'+_0x131523[_0x3c0475(0x13f)]:_0x131523['local'];if(_0x22dab0 in _0x59e297)throw Error(_0x3c0475(0x149));_0x59e297[_0x22dab0]=_0x131523[_0x3c0475(0x1a4)];}const _0x52ef24={'name':_0x1fc792[_0x3c0475(0x13f)],'uri':_0x1fc792[_0x3c0475(0x1c8)],'attrs':_0x59e297,'children':[],'text':''};_0x298f50['at'](-0x1)[_0x3c0475(0x181)][_0x3c0475(0x1bb)](_0x52ef24),_0x298f50[_0x3c0475(0x1bb)](_0x52ef24);}),_0x1792d1['on']('text',_0x10345f=>{const _0x20d00d=_0x53ce92;_0x3e29fa();const _0x81dccc=_0x298f50['at'](-0x1);_0x81dccc[_0x20d00d(0x1d2)]+=_0x10345f;if(_0x81dccc['text'][_0x20d00d(0x1bf)]>0x10000)throw Error(_0x20d00d(0x188));}),_0x1792d1['on'](_0x53ce92(0x1d9),()=>{const _0x39b6a2=_0x53ce92;_0x3e29fa(),_0x298f50[_0x39b6a2(0x175)]();}),_0x1792d1['on'](_0x53ce92(0x15d),_0x2aa08c=>{throw _0x2aa08c;}),_0x1792d1[_0x53ce92(0x1a3)](_0x5dd0d0['toString']('utf8'))[_0x53ce92(0x1d4)]();const _0x249ce3=one(_0x172909[_0x53ce92(0x181)],_0x5ebae5);return _0x3f0b30[_0x53ce92(0x191)](_0x5ebae5,_0x249ce3),_0x249ce3;},_0x48535e=new Map(),_0x194c59=_0x6bd984=>{const _0x3c5385=a146_0x3726;if(_0x48535e[_0x3c5385(0x173)](_0x6bd984))return _0x48535e[_0x3c5385(0x1ad)](_0x6bd984);const _0x6456ed=a146_0xead5cb[_0x3c5385(0x147)]['join'](a146_0xead5cb['posix']['dirname'](_0x6bd984),_0x3c5385(0x161),a146_0xead5cb[_0x3c5385(0x147)][_0x3c5385(0x15a)](_0x6bd984)+'.rels');if(!_0x3de652['has'](_0x6456ed))return[];const _0x5c8497=new Set(),_0x263bbe=_0x954c14(_0x6456ed);if(!matches(_0x263bbe,_0x3c5385(0x16f)))throw Error(_0x3c5385(0x170)+_0x6456ed+'.');const _0x2b676b=children(_0x263bbe,_0x3c5385(0x13d))['map'](_0x328b35=>{const _0x55128d=_0x3c5385,{Id:_0x17a564,Type:_0x35f7e5,Target:_0x3ea28a,TargetMode:_0x3c9eee}=_0x328b35[_0x55128d(0x1b1)];if(!_0x17a564||_0x5c8497[_0x55128d(0x173)](_0x17a564)||!_0x35f7e5)throw Error('Invalid\x20or\x20duplicate\x20relationship\x20in\x20'+_0x6456ed+'.');return _0x5c8497['add'](_0x17a564),{'id':_0x17a564,'type':_0x35f7e5,'target':_0x3ea28a??'','mode':_0x3c9eee};});return _0x48535e[_0x3c5385(0x191)](_0x6bd984,_0x2b676b),_0x2b676b;},_0x224a84=(_0x1f1034,_0xc052be)=>{const _0x1cdcc2=a146_0x3726,{target:_0xcf2093,mode:_0x194e34}=_0xc052be;if(_0x194e34&&_0x194e34!==_0x1cdcc2(0x148))throw Error(_0x1cdcc2(0x190)+_0x1f1034+'.');if(!_0xcf2093||_0xcf2093['includes']('\x5c')||/[?#%\x00-\x20]/['test'](_0xcf2093)||/^[a-z][a-z0-9+.-]*:/i[_0x1cdcc2(0x157)](_0xcf2093)||_0xcf2093['startsWith']('//'))throw Error(_0x1cdcc2(0x1b8)+_0x1f1034+'.');const _0x25944c=_0xcf2093[_0x1cdcc2(0x1db)]('/')?_0xcf2093[_0x1cdcc2(0x1c5)](0x1):a146_0xead5cb[_0x1cdcc2(0x147)][_0x1cdcc2(0x1dd)](a146_0xead5cb[_0x1cdcc2(0x147)][_0x1cdcc2(0x1a0)](a146_0xead5cb[_0x1cdcc2(0x147)][_0x1cdcc2(0x1b5)](_0x1f1034),_0xcf2093));if(_0x25944c[_0x1cdcc2(0x1db)]('../')||_0x25944c==='..'||!_0x25944c[_0x1cdcc2(0x1db)](_0x1cdcc2(0x171)))throw Error('Relationship\x20target\x20escapes\x20workbook:\x20'+_0x1f1034+'.');return _0x25944c;},_0x4b2bcb=(_0x153120,_0x3c95a7,_0x44467f)=>{const _0x331004=a146_0x3726,_0x570db0=_0x194c59(_0x153120)[_0x331004(0x197)](_0x26b56d=>_0x26b56d['id']===_0x3c95a7&&relationshipTypes(_0x44467f)['includes'](_0x26b56d[_0x331004(0x19e)]));if(_0x570db0[_0x331004(0x1bf)]!==0x1)throw Error(_0x331004(0x174)+_0x44467f+_0x331004(0x195)+_0x153120+'.');return _0x224a84(_0x153120,_0x570db0[0x0]);},_0x4a9ede=(_0x20aa36,_0x397b9d)=>{const _0x38749f=a146_0x3726,_0x2f9685=_0x194c59(_0x20aa36)['filter'](_0x136b5d=>relationshipTypes(_0x397b9d)[_0x38749f(0x13e)](_0x136b5d[_0x38749f(0x19e)]));if(_0x2f9685[_0x38749f(0x1bf)]!==0x1)throw Error(_0x38749f(0x174)+_0x397b9d+_0x38749f(0x195)+_0x20aa36+'.');return _0x224a84(_0x20aa36,_0x2f9685[0x0]);},_0x824eca=_0x5d3545(0x17a),_0x471d75=_0x954c14(_0x824eca);if(!matches(_0x471d75,_0x5d3545(0x164)))throw Error(_0x5d3545(0x1c2));const _0x1bf7e6=one(chain(_0x471d75,_0x5d3545(0x162),_0x5d3545(0x155))[_0x5d3545(0x197)](_0x4a57c2=>_0x4a57c2[_0x5d3545(0x1b1)][_0x5d3545(0x17f)]===_0x4640db),_0x5d3545(0x150)),_0x45174f=_0x4b2bcb(_0x824eca,_0x1bf7e6['attrs'][_0x5d3545(0x1b9)],'worksheet'),_0x4bbe67=_0x954c14(_0x45174f);if(!matches(_0x4bbe67,_0x5d3545(0x150)))throw Error(_0x5d3545(0x1c6));const _0x55e3d2=chain(_0x4bbe67,'sheetData','row'),_0x28b961=new Map(),_0x4b3d19=new Set(_0x55e3d2[_0x5d3545(0x197)](_0x4d58f1=>_0x4d58f1[_0x5d3545(0x1b1)][_0x5d3545(0x1ab)]==='1'||_0x4d58f1[_0x5d3545(0x1b1)][_0x5d3545(0x1ab)]==='true')[_0x5d3545(0x1b4)](_0x47dfbc=>integer(_0x47dfbc[_0x5d3545(0x1b1)]['r'],'hidden\x20image\x20row'))),_0xa50481=_0x280a7b=>{const _0x3f7ecc=_0x5d3545,_0x400358=_0x280a7b===undefined?0xf:Number(_0x280a7b);if(!Number[_0x3f7ecc(0x14a)](_0x400358)||_0x400358<=0x0||_0x400358>409.5)throw Error(_0x3f7ecc(0x1ce));return Math[_0x3f7ecc(0x151)](_0x400358*0x319c);},_0x15802d=_0xa50481(children(_0x4bbe67,_0x5d3545(0x154))[0x0]?.[_0x5d3545(0x1b1)]['defaultRowHeight']);for(const _0x11395a of _0x55e3d2)if(_0x11395a[_0x5d3545(0x1b1)]['ht']!==undefined)_0x28b961[_0x5d3545(0x191)](integer(_0x11395a['attrs']['r'],_0x5d3545(0x1cb)),_0xa50481(_0x11395a[_0x5d3545(0x1b1)]['ht']));const _0x391a5a=[],_0xc6e3ec=_0x1d8cdc=>{const _0x5ce996=_0x5d3545;if(!_0x1f4240[_0x5ce996(0x173)](_0x1d8cdc[_0x5ce996(0x1c9)]))return;if(++_0x35eb40>0x2710)throw Error(_0x5ce996(0x1ec));_0x391a5a['push'](_0x4b3d19[_0x5ce996(0x173)](_0x1d8cdc[_0x5ce996(0x13c)])?{..._0x1d8cdc,'hiddenRow':!![]}:_0x1d8cdc);},_0x55cbe2=_0x42da5b=>({'row':integer(one(children(_0x42da5b,'row',DRAWING),'anchor\x20row')[_0x5d3545(0x1d2)],'anchor\x20row',0x1869f)+0x1,'col':integer(one(children(_0x42da5b,_0x5d3545(0x1c9)),_0x5d3545(0x16c))[_0x5d3545(0x1d2)],_0x5d3545(0x16c),0xff)+0x1});for(const _0x5ef394 of children(_0x4bbe67,_0x5d3545(0x17c))){const _0xd1d345=_0x4b2bcb(_0x45174f,_0x5ef394[_0x5d3545(0x1b1)][_0x5d3545(0x1b9)],_0x5d3545(0x17c)),_0x1228ce=_0x954c14(_0xd1d345);if(!matches(_0x1228ce,_0x5d3545(0x159)))throw Error(_0x5d3545(0x1aa));for(const _0x1d7eda of _0x1228ce[_0x5d3545(0x181)]){if(![_0x5d3545(0x1e8),_0x5d3545(0x1df),'absoluteAnchor'][_0x5d3545(0x14f)](_0x330ae1=>matches(_0x1d7eda,_0x330ae1)))continue;if(_0x1d7eda[_0x5d3545(0x17f)]===_0x5d3545(0x199))throw Error('Absolute\x20image\x20anchor\x20cannot\x20be\x20mapped\x20in\x20worksheet\x20'+_0x4640db+'.');const _0x2f0cec=_0x55cbe2(one(children(_0x1d7eda,_0x5d3545(0x17d)),_0x5d3545(0x140)));if(!_0x1f4240[_0x5d3545(0x173)](_0x2f0cec[_0x5d3545(0x1c9)]))continue;let _0x3450ec;const _0x36da4a=one(children(_0x1d7eda,'from'),_0x5d3545(0x140)),_0x3001b0=integer(one(children(_0x36da4a,_0x5d3545(0x19f)),_0x5d3545(0x15b))[_0x5d3545(0x1d2)],_0x5d3545(0x15b),Number[_0x5d3545(0x1b0)]),_0x32b0ae=_0x28b961[_0x5d3545(0x1ad)](_0x2f0cec['row'])??_0x15802d;if(_0x3001b0>=_0x32b0ae)throw Error('Invalid\x20image\x20start\x20offset\x20at\x20row\x20'+_0x2f0cec[_0x5d3545(0x13c)]+'.');if(_0x1d7eda[_0x5d3545(0x17f)]===_0x5d3545(0x1e8)){const _0x26cdf1=one(children(_0x1d7eda,'ext'),_0x5d3545(0x14d)),_0x573087=integer(_0x26cdf1[_0x5d3545(0x1b1)]['cy'],'image\x20height',Number[_0x5d3545(0x1b0)]);if(!_0x573087||_0x3001b0+_0x573087>_0x32b0ae)_0x3450ec=_0x5d3545(0x180);}if(_0x1d7eda['name']===_0x5d3545(0x1df)){const _0x8dd32b=one(children(_0x1d7eda,'to'),_0x5d3545(0x182)),_0xd92b73=_0x55cbe2(_0x8dd32b),_0x374f0f=integer(one(children(_0x8dd32b,_0x5d3545(0x19f)),_0x5d3545(0x152))[_0x5d3545(0x1d2)],'anchor\x20end\x20offset',Number[_0x5d3545(0x1b0)]),_0x2914ac=_0x28b961[_0x5d3545(0x1ad)](_0xd92b73['row'])??_0x15802d;if(_0x374f0f>_0x2914ac||_0xd92b73['row']===_0x2f0cec[_0x5d3545(0x13c)]&&_0x374f0f<=_0x3001b0)_0x3450ec=_0x5d3545(0x1d3);if(_0xd92b73['row']<_0x2f0cec['row']||_0xd92b73[_0x5d3545(0x13c)]>_0x2f0cec[_0x5d3545(0x13c)]+0x1||_0xd92b73[_0x5d3545(0x13c)]===_0x2f0cec[_0x5d3545(0x13c)]+0x1&&_0x374f0f!==0x0)_0x3450ec=_0x5d3545(0x180);}const _0x4a8100=chain(_0x1d7eda,_0x5d3545(0x14b),_0x5d3545(0x1e4),'blip');for(const _0x1331ee of _0x4a8100){if(_0x1331ee[_0x5d3545(0x1b1)][_0x5d3545(0x142)])throw Error(_0x5d3545(0x178));_0xc6e3ec({..._0x2f0cec,'media':[_0x4b2bcb(_0xd1d345,_0x1331ee[_0x5d3545(0x1b1)][_0x5d3545(0x16d)],'image')],..._0x3450ec?{'error':_0x3450ec}:{}});}if(!_0x4a8100[_0x5d3545(0x1bf)])_0xc6e3ec({..._0x2f0cec,'media':[],'error':'Unsupported\x20drawing\x20image.'});}}const _0x3343a9=_0x9d6902=>{const _0x567545=_0x5d3545,_0x4bd7a4=_0x954c14(_0x4a9ede(_0x824eca,_0x567545(0x196)));if(!matches(_0x4bd7a4,_0x567545(0x165)))throw Error(_0x567545(0x18a));const _0x3bbca9=integer(_0x9d6902[_0x567545(0x1b1)]['vm'],_0x567545(0x1d5));if(!_0x3bbca9)throw Error(_0x567545(0x1b7));const _0x361406=children(one(children(_0x4bd7a4,_0x567545(0x19a)),_0x567545(0x19a)),'bk')[_0x3bbca9-0x1];if(!_0x361406)throw Error(_0x567545(0x1d0));const _0x3ffdc7=one(children(_0x361406,'rc'),'rich\x20metadata\x20record'),_0x3c2188=integer(_0x3ffdc7['attrs']['t'],_0x567545(0x1da)),_0x272c32=children(one(children(_0x4bd7a4,_0x567545(0x1cf)),_0x567545(0x13b)),_0x567545(0x1dc))[_0x3c2188-0x1];if(!_0x3c2188||_0x272c32?.[_0x567545(0x1b1)][_0x567545(0x17f)]!=='XLRICHVALUE')throw Error(_0x567545(0x1a8));const _0x1078e7=one(children(_0x4bd7a4,_0x567545(0x198))[_0x567545(0x197)](_0x5cd8d7=>_0x5cd8d7[_0x567545(0x1b1)][_0x567545(0x17f)]===_0x567545(0x184)),_0x567545(0x1bc)),_0x1c4e31=children(_0x1078e7,'bk')[integer(_0x3ffdc7[_0x567545(0x1b1)]['v'],'future\x20metadata\x20index')];if(!_0x1c4e31)throw Error(_0x567545(0x194));const _0xc4a571=chain(_0x1c4e31,_0x567545(0x177))[_0x567545(0x185)](_0x2f3d3a=>children(_0x2f3d3a,'ext',SHEET))['filter'](_0x37b445=>_0x37b445[_0x567545(0x1b1)][_0x567545(0x1c8)]?.[_0x567545(0x1d8)]()===_0x567545(0x16a)),_0xe1b182=integer(one(_0xc4a571[_0x567545(0x185)](_0x2b2498=>children(_0x2b2498,_0x567545(0x187))),'rich\x20value\x20binding')[_0x567545(0x1b1)]['i'],_0x567545(0x19b)),_0xbdb681=_0x954c14(_0x4a9ede(_0x824eca,_0x567545(0x176)));if(!matches(_0xbdb681,'rvData'))throw Error(_0x567545(0x1de));const _0xb52014=children(_0xbdb681,'rv')[_0xe1b182];if(!_0xb52014)throw Error('Missing\x20rich\x20value.');const _0x4ea1ef=_0x954c14(_0x4a9ede(_0x824eca,_0x567545(0x1e1)));if(!matches(_0x4ea1ef,'rvStructures'))throw Error(_0x567545(0x141));const _0xafe396=children(_0x4ea1ef,'s')[integer(_0xb52014['attrs']['s'],_0x567545(0x1d6))];if(!_0xafe396||_0xafe396['attrs']['t']!==_0x567545(0x15f))throw Error(_0x567545(0x1c4));const _0x2c105=children(_0xafe396,'k'),_0x405dfb=_0x2c105[_0x567545(0x1b4)]((_0x31452e,_0x2c1b14)=>_0x31452e['attrs']['n']===_0x567545(0x192)?_0x2c1b14:-0x1)[_0x567545(0x197)](_0x424dc0=>_0x424dc0>=0x0);if(_0x405dfb[_0x567545(0x1bf)]!==0x1)throw Error(_0x567545(0x145));const _0x24e389=children(_0xb52014,'v',RICH)[_0x405dfb[0x0]];if(!_0x24e389)throw Error(_0x567545(0x166));const _0x45f7a0=_0x4a9ede(_0x824eca,_0x567545(0x1e5)),_0x28c79f=_0x954c14(_0x45f7a0);if(!matches(_0x28c79f,_0x567545(0x16e)))throw Error(_0x567545(0x1af));const _0x26f68f=children(_0x28c79f,_0x567545(0x17b))[integer(_0x24e389[_0x567545(0x1d2)],_0x567545(0x1b2))];if(!_0x26f68f)throw Error('Missing\x20rich\x20image\x20relationship.');return _0x4b2bcb(_0x45f7a0,_0x26f68f['attrs'][_0x567545(0x1b9)],_0x567545(0x146));};let _0xacd0e1;const _0x4463b4=_0x382081=>{const _0x31373e=_0x5d3545;if(!_0xacd0e1){_0xacd0e1=new Map();const _0x17fc75=_0x194c59(_0x824eca)[_0x31373e(0x197)](_0x481413=>[...relationshipTypes(_0x31373e(0x183)),...relationshipTypes(_0x31373e(0x18c))][_0x31373e(0x13e)](_0x481413['type']));if(!_0x17fc75[_0x31373e(0x1bf)]&&_0x3de652[_0x31373e(0x173)](_0x31373e(0x19c)))_0x17fc75['push']({'id':'','type':'','target':_0x31373e(0x14c)});if(_0x17fc75['length']!==0x1)throw Error(_0x31373e(0x169));const _0xf54f29=_0x224a84(_0x824eca,_0x17fc75[0x0]),_0x2f3178=_0x954c14(_0xf54f29);if(!matches(_0x2f3178,_0x31373e(0x18c)))throw Error(_0x31373e(0x1e9));for(const _0x1f046a of children(_0x2f3178,_0x31373e(0x183))){const _0x3852b4=one(chain(_0x1f046a,_0x31373e(0x14b),_0x31373e(0x1c7),'cNvPr'),_0x31373e(0x19d))[_0x31373e(0x1b1)]['name'];if(!_0x3852b4||_0xacd0e1[_0x31373e(0x173)](_0x3852b4))throw Error(_0x31373e(0x163));const _0x2aad4c=one(chain(_0x1f046a,_0x31373e(0x14b),_0x31373e(0x1e4),_0x31373e(0x156)),'WPS\x20image\x20blip');if(_0x2aad4c[_0x31373e(0x1b1)]['r:link'])throw Error(_0x31373e(0x1ac));_0xacd0e1['set'](_0x3852b4,_0x4b2bcb(_0xf54f29,_0x2aad4c[_0x31373e(0x1b1)]['r:embed'],_0x31373e(0x146)));}}const _0x1f4476=_0xacd0e1[_0x31373e(0x1ad)](_0x382081);if(!_0x1f4476)throw Error(_0x31373e(0x17e)+_0x382081+'.');return _0x1f4476;},_0x2ed5a2=new Set();for(const _0x51e909 of _0x55e3d2[_0x5d3545(0x185)](_0x3e913e=>children(_0x3e913e,'c'))){const _0x219fe7=/^([A-Z]+)([1-9]\d*)$/[_0x5d3545(0x1a5)](_0x51e909['attrs']['r']??'');if(!_0x219fe7)continue;let _0x3ba9c2=0x0;for(const _0x1c8cf9 of _0x219fe7[0x1])_0x3ba9c2=_0x3ba9c2*0x1a+_0x1c8cf9[_0x5d3545(0x1ba)](0x0)-0x40;if(!_0x1f4240[_0x5d3545(0x173)](_0x3ba9c2))continue;const _0x91c931=integer(_0x219fe7[0x2],'image\x20cell\x20row');if(_0x2ed5a2[_0x5d3545(0x173)](_0x51e909[_0x5d3545(0x1b1)]['r']))throw Error(_0x5d3545(0x1e6));_0x2ed5a2[_0x5d3545(0x167)](_0x51e909[_0x5d3545(0x1b1)]['r']);const _0x39356d=children(_0x51e909,'f');if(!_0x51e909[_0x5d3545(0x1b1)]['vm']&&!_0x39356d[_0x5d3545(0x1bf)])continue;try{if(_0x91c931<0x1||_0x3ba9c2>0x100)throw Error('Image\x20coordinate\x20exceeds\x20worksheet\x20bounds.');let _0x457dfd;if(_0x51e909['attrs']['vm']){if(_0x39356d[_0x5d3545(0x1bf)])throw Error(_0x5d3545(0x1cd));if(_0x51e909[_0x5d3545(0x1b1)]['t']!=='e'||children(_0x51e909,'v')[_0x5d3545(0x1bf)]!==0x1||children(_0x51e909,'v')[0x0][_0x5d3545(0x1d2)]!=='#VALUE!')throw Error(_0x5d3545(0x18e));_0x457dfd=_0x3343a9(_0x51e909);}else{const _0x4049a6=one(_0x39356d,_0x5d3545(0x168));if(_0x4049a6[_0x5d3545(0x1b1)]['t']==='shared'||_0x4049a6[_0x5d3545(0x1b1)]['si'])throw Error(_0x5d3545(0x1be));const _0x589ab0=/^\s*=?\s*@?(?:_xlfn\.)?DISPIMG\(\s*"((?:[^"]|"")+)"\s*(?:,\s*[01]\s*)?\)\s*$/i[_0x5d3545(0x1a5)](_0x4049a6['text']);if(!_0x589ab0)throw Error('Unsupported\x20image\x20formula;\x20expected\x20a\x20standalone\x20DISPIMG\x20literal.');_0x457dfd=_0x4463b4(_0x589ab0[0x1][_0x5d3545(0x1c3)](/""/g,'\x22'));}_0xc6e3ec({'row':_0x91c931,'col':_0x3ba9c2,'media':[_0x457dfd],'nativeCell':!![]});}catch(_0x3a3fa0){_0xc6e3ec({'row':_0x91c931,'col':_0x3ba9c2,'media':[],'nativeCell':!![],'error':_0x3a3fa0['message']});}}return _0x391a5a;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x1ba02f,_0x457f4a){const _0x5e6ea2=a147_0xa890,_0x316ffd=_0x1ba02f();while(!![]){try{const _0x41073b=parseInt(_0x5e6ea2(0x184))/0x1+parseInt(_0x5e6ea2(0x193))/0x2+parseInt(_0x5e6ea2(0x1dc))/0x3*(parseInt(_0x5e6ea2(0x1bc))/0x4)+-parseInt(_0x5e6ea2(0x196))/0x5+-parseInt(_0x5e6ea2(0x1b3))/0x6+-parseInt(_0x5e6ea2(0x1d8))/0x7+-parseInt(_0x5e6ea2(0x194))/0x8*(-parseInt(_0x5e6ea2(0x18d))/0x9);if(_0x41073b===_0x457f4a)break;else _0x316ffd['push'](_0x316ffd['shift']());}catch(_0x57768a){_0x316ffd['push'](_0x316ffd['shift']());}}}(a147_0x325c,0xb07df));import{randomUUID,createHash}from'node:crypto';function a147_0xa890(_0x5d698b,_0x508eac){_0x5d698b=_0x5d698b-0x173;const _0x325c94=a147_0x325c();let _0xa89026=_0x325c94[_0x5d698b];return _0xa89026;}import{lstat,readFile}from'node:fs/promises';import{acquireLock,assertImportContract,assertImportPaths,canonical,resolveImportOutputPath,runExcelImport,saveImportJson}from'./runner.js';import{runAutoIdExcelImport}from'./auto-id-runner.js';import{previewImportBatchCount}from'./preview.js';export function assertImageImportCapability(_0x1ec797,_0x1267ad){const _0x2bf5d9=a147_0xa890;if(!_0x1267ad[_0x2bf5d9(0x17c)]?.[_0x2bf5d9(0x1cc)])return;const _0x23fb90=_0x1ec797[_0x2bf5d9(0x198)];if(!_0x23fb90||_0x23fb90[_0x2bf5d9(0x19c)]!==0x1||_0x23fb90[_0x2bf5d9(0x1a1)]!==_0x2bf5d9(0x1b5)||_0x23fb90[_0x2bf5d9(0x1d7)]!==0xa00000||_0x23fb90[_0x2bf5d9(0x195)]!==0x2625a00||!Array[_0x2bf5d9(0x1a9)](_0x23fb90[_0x2bf5d9(0x178)])||![_0x2bf5d9(0x17e),_0x2bf5d9(0x182),_0x2bf5d9(0x1a5)][_0x2bf5d9(0x1b0)](_0x46ed8d=>_0x23fb90[_0x2bf5d9(0x178)]['includes'](_0x46ed8d)))throw Error(_0x2bf5d9(0x199));}function a147_0x325c(){const _0x3f519e=['fileHash','Unexpected\x20row\x20checkpoint\x20during\x20image\x20upload\x20phase.','binding','fromEntries','Excel\x20contains\x20invalid\x20or\x20no\x20data\x20rows;\x20no\x20images\x20were\x20uploaded.','ENOENT','32WhHUry','values','inputPaths','Import\x20checkpoint\x20already\x20exists;\x20use\x20--resume.','Image\x20upload\x20outcome\x20is\x20unknown\x20or\x20missing.\x20Resume\x20to\x20reconcile\x20the\x20original\x20upload\x20identity.','contract','Row\x20phase\x20started\x20but\x20the\x20row\x20checkpoint\x20is\x20missing;\x20stop\x20to\x20avoid\x20duplicate\x20records.','Image\x20checkpoint\x20does\x20not\x20match\x20the\x20source,\x20target\x20or\x20identity.','test','.lock.recovery','resume','rows-started','isSafeInteger','readback','Uploaded\x20image\x20metadata\x20changed\x20or\x20is\x20corrupt.','imageFields','length','update','.lock','rowNumber','Uploaded\x20image\x20is\x20not\x20visible.\x20Resume\x20to\x20reconcile\x20before\x20continuing.','datasetCode','Invalid\x20image\x20manifest\x20limits.','Image\x20media\x20bytes\x20changed.','imageCells','missing','filePath','maxFileBytes','5547563LWkovC','dataset-import/','hash','importId','290265RfmdHf','imageApi','batchSize','actorId','pending','rows','types','some','appCode','jpg','media','reduce','image/png','includes','maxBatchSize','parserVersion','image/jpeg','maxBatchBytes','1411195AqDeAm','map','get','completed','uploadFields','Cannot\x20read\x20the\x20image\x20import\x20checkpoint.','report','status','manifest','225MiiwKd','succeeded','mappingHash','Previously\x20uploaded\x20image\x20is\x20missing;\x20automatic\x20repair\x20is\x20disabled.','hex','size','1545472WjGCys','232936ecQjqV','maxPixels','6239745bJCKuA','type','imageImport','The\x20server\x20does\x20not\x20support\x20this\x20image\x20import\x20capability.','utf8','schemaHash','version','contentHash','code','gif','hashes','uploadId','sheet','rows-preparing','stringify','image/gif','schemaVersion','checkpoint','upload','isArray','bytes','errors','Completed\x20image\x20checkpoint\x20value\x20changed.','Image\x20cell\x20references\x20missing\x20media.','entries','name','every','phase','key','5535162FTaGuV','value','sha256'];a147_0x325c=function(){return _0x3f519e;};return a147_0x325c();}export function imageObjectValue(_0x2d9c3b,_0x3292a0,_0x13a774){const _0x28a6fd=a147_0xa890,_0x54fa1b=createHash(_0x28a6fd(0x1b5))[_0x28a6fd(0x1cd)](JSON[_0x28a6fd(0x1a4)]([_0x2d9c3b[_0x28a6fd(0x175)],_0x2d9c3b[_0x28a6fd(0x17a)],_0x2d9c3b[_0x28a6fd(0x1d1)],_0x3292a0]))['digest'](_0x28a6fd(0x191)),_0x11afa4={'image/png':'png','image/jpeg':_0x28a6fd(0x17b),'image/gif':_0x28a6fd(0x19f)}[_0x13a774[_0x28a6fd(0x197)]];if(!_0x11afa4||!/^[0-9a-f]{64}$/[_0x28a6fd(0x1c4)](_0x13a774[_0x28a6fd(0x19d)])||!Number[_0x28a6fd(0x1c8)](_0x13a774['size'])||_0x13a774['size']<=0x0||_0x13a774['size']>0xa00000)throw Error('Invalid\x20image\x20media\x20descriptor.');const _0x2a81c6=_0x13a774[_0x28a6fd(0x19d)]+'.'+_0x11afa4;return{'key':_0x28a6fd(0x1d9)+_0x54fa1b+'/'+_0x2a81c6,'name':_0x2a81c6,'type':_0x13a774[_0x28a6fd(0x197)],'size':_0x13a774[_0x28a6fd(0x192)]};}export function bindImageManifest(_0xc14275,_0x309ed9,_0x2f5278){const _0x53e3fa=a147_0xa890,_0x5a06d9=new Map(_0xc14275[_0x53e3fa(0x17c)]?.[_0x53e3fa(0x185)](_0x1d983d=>[_0x1d983d[_0x53e3fa(0x19d)],_0x1d983d])),_0x18075c=new Map(_0xc14275[_0x53e3fa(0x1d4)]?.['map'](_0x5e5e4b=>[_0x5e5e4b[_0x53e3fa(0x1cf)]+':'+_0x5e5e4b['field'],_0x5e5e4b[_0x53e3fa(0x1a0)]]));return{..._0xc14275,'rows':_0xc14275[_0x53e3fa(0x177)]['map'](_0x3fd070=>({..._0x3fd070,'values':Object[_0x53e3fa(0x1b9)](Object[_0x53e3fa(0x1ae)](_0x3fd070[_0x53e3fa(0x1bd)])[_0x53e3fa(0x185)](([_0x18bad3,_0x56a6e8])=>{const _0x194581=_0x53e3fa,_0x5778aa=_0x18075c[_0x194581(0x186)](_0x3fd070[_0x194581(0x1cf)]+':'+_0x18bad3);return[_0x18bad3,_0x5778aa?_0x5778aa[_0x194581(0x185)](_0x2882e7=>{const _0x256feb=_0x194581,_0x53e7b8=_0x5a06d9['get'](_0x2882e7);if(!_0x53e7b8)throw Error(_0x256feb(0x1ad));const _0x4534bc=imageObjectValue(_0x309ed9,_0x2f5278,_0x53e7b8);return _0xc14275[_0x256feb(0x188)]?.['includes'](_0x18bad3)?{'fileName':_0x4534bc[_0x256feb(0x1af)],'filePath':_0x4534bc[_0x256feb(0x1b2)]}:_0x4534bc;}):_0x56a6e8];}))}))};}async function exists(_0x174f0d){const _0x2e1b44=a147_0xa890;try{return await lstat(_0x174f0d),!![];}catch(_0x1e265d){if(_0x1e265d[_0x2e1b44(0x19e)]===_0x2e1b44(0x1bb))return![];throw _0x1e265d;}}export async function runImageExcelImport(_0x3abee8){const _0x3b8168=a147_0xa890;assertImportContract(_0x3abee8['contract'],_0x3abee8[_0x3b8168(0x17a)],_0x3abee8[_0x3b8168(0x1d1)]),assertImageImportCapability(_0x3abee8[_0x3b8168(0x1c1)],_0x3abee8[_0x3b8168(0x18c)]);if(!Number['isInteger'](_0x3abee8['batchSize'])||_0x3abee8[_0x3b8168(0x174)]<0x1||_0x3abee8['batchSize']>_0x3abee8[_0x3b8168(0x1c1)][_0x3b8168(0x180)])throw Error('Invalid\x20import\x20batch\x20size.');if(_0x3abee8['manifest'][_0x3b8168(0x1ab)]['length']||!_0x3abee8[_0x3b8168(0x18c)][_0x3b8168(0x177)]['length'])throw Error(_0x3b8168(0x1ba));const _0x116dbd=await resolveImportOutputPath(_0x3abee8[_0x3b8168(0x1a7)]),_0x50ef9d=await resolveImportOutputPath(_0x3abee8[_0x3b8168(0x18a)]),_0x23a429=await resolveImportOutputPath(_0x116dbd+'.rows.json'),_0x401685=await Promise['all']([_0x23a429,_0x23a429+'.lock',_0x23a429+_0x3b8168(0x1c5),..._0x3abee8[_0x3b8168(0x1be)]??[]][_0x3b8168(0x185)](resolveImportOutputPath));for(const _0x5aaf4d of[_0x116dbd,_0x50ef9d,_0x116dbd+_0x3b8168(0x1ce),_0x116dbd+'.lock.recovery'])await resolveImportOutputPath(_0x5aaf4d);assertImportPaths(_0x116dbd,_0x50ef9d,_0x401685);const {contract:_0x9ac434,manifest:_0x60e161}=_0x3abee8,_0x1ae7e1=_0x60e161[_0x3b8168(0x17c)]??[];if(new Set(_0x1ae7e1[_0x3b8168(0x185)](_0x2ec152=>_0x2ec152[_0x3b8168(0x19d)]))[_0x3b8168(0x192)]!==_0x1ae7e1[_0x3b8168(0x1cc)]||_0x1ae7e1[_0x3b8168(0x17d)]((_0x51aa14,_0x4713de)=>_0x51aa14+_0x4713de[_0x3b8168(0x192)],0x0)>0x32*0x400*0x400||(_0x60e161['imageCells']??[])[_0x3b8168(0x17d)]((_0x5b4f95,_0x5c00c7)=>_0x5b4f95+_0x5c00c7[_0x3b8168(0x1a0)][_0x3b8168(0x1cc)],0x0)>0x2710)throw Error(_0x3b8168(0x1d2));for(const _0x18a7cd of _0x1ae7e1)if(_0x18a7cd[_0x3b8168(0x192)]!==_0x18a7cd[_0x3b8168(0x1aa)]['length']||createHash(_0x3b8168(0x1b5))[_0x3b8168(0x1cd)](_0x18a7cd['bytes'])['digest']('hex')!==_0x18a7cd[_0x3b8168(0x19d)])throw Error(_0x3b8168(0x1d3));previewImportBatchCount(bindImageManifest(_0x60e161,_0x9ac434,'00000000-0000-4000-8000-000000000000'),_0x9ac434,_0x3abee8[_0x3b8168(0x174)]);const _0x561077={'appCode':_0x3abee8[_0x3b8168(0x17a)],'datasetCode':_0x3abee8[_0x3b8168(0x1d1)],'runtimeDomain':_0x3abee8['runtimeDomain'],'actorId':_0x9ac434[_0x3b8168(0x175)],'fileHash':_0x60e161[_0x3b8168(0x1b6)],'mappingHash':_0x60e161[_0x3b8168(0x18f)],'schemaHash':_0x60e161[_0x3b8168(0x19b)],'remoteSchemaHash':_0x9ac434['schemaFingerprint'],'strategy':_0x9ac434['strategy'],'schemaVersion':_0x9ac434[_0x3b8168(0x1a6)],'batchSize':_0x3abee8[_0x3b8168(0x174)],'maxBatchBytes':_0x9ac434[_0x3b8168(0x183)],'sheet':_0x60e161[_0x3b8168(0x1a2)],'parserVersion':_0x60e161[_0x3b8168(0x181)],'imageFields':_0x60e161[_0x3b8168(0x1cb)],'cells':_0x60e161[_0x3b8168(0x1d4)],..._0x60e161[_0x3b8168(0x188)]?.[_0x3b8168(0x1cc)]?{'uploadFields':_0x60e161['uploadFields']}:{},'media':_0x1ae7e1[_0x3b8168(0x185)](({contentHash:_0x160cde,type:_0x59222b,size:_0x576aa0})=>({'contentHash':_0x160cde,'type':_0x59222b,'size':_0x576aa0})),'rows':_0x60e161[_0x3b8168(0x177)]},_0x56e369=await acquireLock(_0x116dbd);try{let _0x385e85;if(_0x3abee8['resume']){try{_0x385e85=JSON['parse'](await readFile(_0x116dbd,_0x3b8168(0x19a)));}catch{throw Error(_0x3b8168(0x189));}if(_0x385e85[_0x3b8168(0x19c)]!==0x3||!/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/[_0x3b8168(0x1c4)](_0x385e85[_0x3b8168(0x1db)])||canonical(_0x385e85[_0x3b8168(0x1b8)])!==canonical(_0x561077)||!['media',_0x3b8168(0x1a3),_0x3b8168(0x1c7),_0x3b8168(0x187)][_0x3b8168(0x17f)](_0x385e85[_0x3b8168(0x1b1)])||!Array[_0x3b8168(0x1a9)](_0x385e85[_0x3b8168(0x17c)])||_0x385e85[_0x3b8168(0x17c)]['length']!==_0x1ae7e1[_0x3b8168(0x1cc)]||_0x385e85[_0x3b8168(0x17c)][_0x3b8168(0x179)]((_0xf8a4aa,_0x468292)=>_0xf8a4aa[_0x3b8168(0x1da)]!==_0x1ae7e1[_0x468292][_0x3b8168(0x19d)]||![_0x3b8168(0x176),'succeeded'][_0x3b8168(0x17f)](_0xf8a4aa[_0x3b8168(0x18b)])))throw Error(_0x3b8168(0x1c3));if([_0x3b8168(0x1c7),_0x3b8168(0x187)][_0x3b8168(0x17f)](_0x385e85['phase'])&&!await exists(_0x23a429))throw Error(_0x3b8168(0x1c2));if(_0x385e85[_0x3b8168(0x1b1)]===_0x3b8168(0x17c)&&await exists(_0x23a429))throw Error(_0x3b8168(0x1b7));}else{if(await exists(_0x116dbd)||await exists(_0x23a429))throw Error(_0x3b8168(0x1bf));_0x385e85={'version':0x3,'importId':randomUUID(),'binding':_0x561077,'phase':_0x3b8168(0x17c),'media':_0x1ae7e1['map'](_0x40b86f=>({'hash':_0x40b86f[_0x3b8168(0x19d)],'status':_0x3b8168(0x176)}))},await saveImportJson(_0x116dbd,_0x385e85);}const _0x4b0791=(_0x26f299,_0x3ece67)=>{const _0x557f93=_0x3b8168;if(!_0x26f299||_0x26f299[_0x557f93(0x19d)]!==_0x3ece67[_0x557f93(0x19d)])throw Error('Invalid\x20image\x20readback\x20digest.');if(_0x26f299[_0x557f93(0x18b)]===_0x557f93(0x1d5))return undefined;const _0x4780dd=imageObjectValue(_0x9ac434,_0x385e85[_0x557f93(0x1db)],_0x3ece67);if(_0x26f299[_0x557f93(0x18b)]!==_0x557f93(0x18e)||_0x26f299[_0x557f93(0x1d6)]!==_0x4780dd[_0x557f93(0x1b2)]||_0x26f299['fileName']!==_0x4780dd[_0x557f93(0x1af)]||_0x26f299[_0x557f93(0x197)]!==_0x4780dd[_0x557f93(0x197)]||_0x26f299[_0x557f93(0x192)]!==_0x4780dd[_0x557f93(0x192)])throw Error(_0x557f93(0x1ca));return _0x4780dd;};for(let _0x3f0791=0x0;_0x3f0791<_0x1ae7e1[_0x3b8168(0x1cc)];_0x3f0791++){const _0x42c47a=_0x1ae7e1[_0x3f0791],_0x407a3a=_0x385e85[_0x3b8168(0x17c)][_0x3f0791],_0x2be37a=imageObjectValue(_0x9ac434,_0x385e85[_0x3b8168(0x1db)],_0x42c47a);if(_0x407a3a[_0x3b8168(0x18b)]===_0x3b8168(0x18e)&&canonical(_0x407a3a[_0x3b8168(0x1b4)])!==canonical(_0x2be37a))throw Error(_0x3b8168(0x1ac));let _0x3ae94d;if(_0x3abee8[_0x3b8168(0x1c6)]||_0x407a3a['status']===_0x3b8168(0x18e))_0x3ae94d=_0x4b0791(await _0x3abee8[_0x3b8168(0x173)][_0x3b8168(0x1c9)](_0x385e85[_0x3b8168(0x1db)],_0x42c47a),_0x42c47a);if(!_0x3ae94d&&_0x407a3a[_0x3b8168(0x18b)]===_0x3b8168(0x18e))throw Error(_0x3b8168(0x190));if(!_0x3ae94d){try{_0x4b0791(await _0x3abee8[_0x3b8168(0x173)][_0x3b8168(0x1a8)](_0x385e85['importId'],_0x42c47a),_0x42c47a);}catch(_0x20933b){_0x3ae94d=_0x4b0791(await _0x3abee8[_0x3b8168(0x173)][_0x3b8168(0x1c9)](_0x385e85['importId'],_0x42c47a),_0x42c47a);if(!_0x3ae94d)throw Error(_0x3b8168(0x1c0));}if(!_0x3ae94d)_0x3ae94d=_0x4b0791(await _0x3abee8['imageApi'][_0x3b8168(0x1c9)](_0x385e85[_0x3b8168(0x1db)],_0x42c47a),_0x42c47a);if(!_0x3ae94d)throw Error(_0x3b8168(0x1d0));}_0x407a3a[_0x3b8168(0x18b)]=_0x3b8168(0x18e),_0x407a3a[_0x3b8168(0x1b4)]=_0x3ae94d,await saveImportJson(_0x116dbd,_0x385e85);}const _0x130a48=bindImageManifest(_0x60e161,_0x9ac434,_0x385e85[_0x3b8168(0x1db)]),_0x13a8ce=_0x385e85[_0x3b8168(0x1b1)]===_0x3b8168(0x1a3)?await exists(_0x23a429):_0x385e85[_0x3b8168(0x1b1)]!==_0x3b8168(0x17c);_0x385e85[_0x3b8168(0x1b1)]===_0x3b8168(0x17c)&&(_0x385e85['phase']=_0x3b8168(0x1a3),await saveImportJson(_0x116dbd,_0x385e85));const _0x595ed8={..._0x3abee8,'manifest':_0x130a48,'checkpoint':_0x23a429,'report':_0x50ef9d,'resume':_0x13a8ce,'onCheckpointReady':async()=>{const _0x15cca8=_0x3b8168;_0x385e85[_0x15cca8(0x1b1)]='rows-started',await saveImportJson(_0x116dbd,_0x385e85);}},_0x240f8e=_0x9ac434[_0x3b8168(0x1a6)]===0x2?await runAutoIdExcelImport({..._0x595ed8,'reconcileImageConflicts':_0x3abee8['resume']===!![]&&_0x13a8ce}):await runExcelImport(_0x595ed8);return _0x385e85[_0x3b8168(0x1b1)]=_0x3b8168(0x187),await saveImportJson(_0x116dbd,_0x385e85),{..._0x240f8e,'checkpoint':_0x116dbd,'imageCount':_0x60e161['imageCells']?.[_0x3b8168(0x17d)]((_0x104e77,_0xf4294c)=>_0x104e77+_0xf4294c[_0x3b8168(0x1a0)]['length'],0x0)??0x0,'uniqueImages':_0x1ae7e1[_0x3b8168(0x1cc)]};}finally{await _0x56e369();}}
|
|
1
|
+
(function(_0x350a2c,_0x1c48a9){const _0x56104b=a147_0x3248,_0x4610e9=_0x350a2c();while(!![]){try{const _0x973779=parseInt(_0x56104b(0x18f))/0x1*(parseInt(_0x56104b(0x15f))/0x2)+parseInt(_0x56104b(0x193))/0x3*(-parseInt(_0x56104b(0x166))/0x4)+parseInt(_0x56104b(0x18d))/0x5*(parseInt(_0x56104b(0x17e))/0x6)+-parseInt(_0x56104b(0x14d))/0x7+parseInt(_0x56104b(0x165))/0x8*(-parseInt(_0x56104b(0x1a9))/0x9)+-parseInt(_0x56104b(0x196))/0xa*(-parseInt(_0x56104b(0x179))/0xb)+parseInt(_0x56104b(0x1a0))/0xc;if(_0x973779===_0x1c48a9)break;else _0x4610e9['push'](_0x4610e9['shift']());}catch(_0x4d1608){_0x4610e9['push'](_0x4610e9['shift']());}}}(a147_0x39ca,0xb507b));import{randomUUID,createHash}from'node:crypto';import{lstat,readFile}from'node:fs/promises';import{acquireLock,assertImportContract,assertImportPaths,canonical,resolveImportOutputPath,runExcelImport,saveImportJson}from'./runner.js';function a147_0x39ca(){const _0x5eb43b=['Image\x20upload\x20outcome\x20is\x20unknown\x20or\x20missing.\x20Resume\x20to\x20reconcile\x20the\x20original\x20upload\x20identity.','appCode','missing','rows-preparing','image/png','parserVersion','Image\x20media\x20bytes\x20changed.','7830270mKmtma','pending','.lock','some','hashes','update','value','00000000-0000-4000-8000-000000000000','mappingHash','schemaFingerprint','digest','test','map','uploadFields','imageCells','media','gif','fileName','801898BVFNTQ','field','size','report','Invalid\x20image\x20media\x20descriptor.','Completed\x20image\x20checkpoint\x20value\x20changed.','31368iUkNhS','6884IGHsxG','hex','get','all','Uploaded\x20image\x20metadata\x20changed\x20or\x20is\x20corrupt.','maxBatchSize','bytes','isSafeInteger','binding','.lock.recovery','errors','.rows.json','Previously\x20uploaded\x20image\x20is\x20missing;\x20automatic\x20repair\x20is\x20disabled.','types','hash','key','maxPixels','readback','completed','2318613Pvzqtq','status','contentHash','filePath','schemaHash','13218wpLQNY','Cannot\x20read\x20the\x20image\x20import\x20checkpoint.','strategy','Image\x20cell\x20references\x20missing\x20media.','rows-started','contract','maxFileBytes','png','batchSize','phase','reduce','isArray','importId','parse','resume','2690kRMfpE','type','3CVocxe','stringify','schemaVersion','every','273DpxOCe','imageImport','isInteger','10aJiosx','version','sha256','checkpoint','includes','utf8','imageApi','rows','actorId','inputPaths','1154508huqAiC','length','datasetCode','fileHash','manifest','The\x20server\x20does\x20not\x20support\x20this\x20image\x20import\x20capability.','Invalid\x20image\x20manifest\x20limits.','succeeded','name','1557IToSOl','imageFields','ENOENT'];a147_0x39ca=function(){return _0x5eb43b;};return a147_0x39ca();}import{runAutoIdExcelImport}from'./auto-id-runner.js';import{previewImportBatchCount}from'./preview.js';export function assertImageImportCapability(_0xc92161,_0x45bb31){const _0x4c723f=a147_0x3248;if(!_0x45bb31['media']?.[_0x4c723f(0x1a1)])return;const _0x2e6308=_0xc92161[_0x4c723f(0x194)];if(!_0x2e6308||_0x2e6308['version']!==0x1||_0x2e6308['uploadId']!==_0x4c723f(0x198)||_0x2e6308[_0x4c723f(0x184)]!==0xa00000||_0x2e6308[_0x4c723f(0x176)]!==0x2625a00||!Array[_0x4c723f(0x189)](_0x2e6308['types'])||![_0x4c723f(0x14a),'image/jpeg','image/gif'][_0x4c723f(0x192)](_0x463ad4=>_0x2e6308[_0x4c723f(0x173)][_0x4c723f(0x19a)](_0x463ad4)))throw Error(_0x4c723f(0x1a5));}export function imageObjectValue(_0x4bedbe,_0xd8bea9,_0x321ead){const _0x1d1ccb=a147_0x3248,_0x59df4e=createHash('sha256')[_0x1d1ccb(0x152)](JSON[_0x1d1ccb(0x190)]([_0x4bedbe[_0x1d1ccb(0x19e)],_0x4bedbe[_0x1d1ccb(0x147)],_0x4bedbe[_0x1d1ccb(0x1a2)],_0xd8bea9]))[_0x1d1ccb(0x157)](_0x1d1ccb(0x167)),_0x15349b={'image/png':_0x1d1ccb(0x185),'image/jpeg':'jpg','image/gif':_0x1d1ccb(0x15d)}[_0x321ead[_0x1d1ccb(0x18e)]];if(!_0x15349b||!/^[0-9a-f]{64}$/[_0x1d1ccb(0x158)](_0x321ead[_0x1d1ccb(0x17b)])||!Number[_0x1d1ccb(0x16d)](_0x321ead['size'])||_0x321ead['size']<=0x0||_0x321ead[_0x1d1ccb(0x161)]>0xa00000)throw Error(_0x1d1ccb(0x163));const _0xa3e60a=_0x321ead[_0x1d1ccb(0x17b)]+'.'+_0x15349b;return{'key':'dataset-import/'+_0x59df4e+'/'+_0xa3e60a,'name':_0xa3e60a,'type':_0x321ead['type'],'size':_0x321ead['size']};}export function bindImageManifest(_0x5cb8dc,_0x15f10b,_0x4243a){const _0xed985e=a147_0x3248,_0x2b1ac4=new Map(_0x5cb8dc[_0xed985e(0x15c)]?.[_0xed985e(0x159)](_0x153dea=>[_0x153dea['contentHash'],_0x153dea])),_0x3c1752=new Map(_0x5cb8dc[_0xed985e(0x15b)]?.[_0xed985e(0x159)](_0x43cf91=>[_0x43cf91['rowNumber']+':'+_0x43cf91[_0xed985e(0x160)],_0x43cf91[_0xed985e(0x151)]]));return{..._0x5cb8dc,'rows':_0x5cb8dc[_0xed985e(0x19d)][_0xed985e(0x159)](_0x4f31fc=>({..._0x4f31fc,'values':Object['fromEntries'](Object['entries'](_0x4f31fc['values'])[_0xed985e(0x159)](([_0x21dd80,_0x4089eb])=>{const _0x5ab5de=_0xed985e,_0x31051d=_0x3c1752[_0x5ab5de(0x168)](_0x4f31fc['rowNumber']+':'+_0x21dd80);return[_0x21dd80,_0x31051d?_0x31051d[_0x5ab5de(0x159)](_0x6e0e11=>{const _0x1dbc14=_0x5ab5de,_0x116332=_0x2b1ac4['get'](_0x6e0e11);if(!_0x116332)throw Error(_0x1dbc14(0x181));const _0x54284e=imageObjectValue(_0x15f10b,_0x4243a,_0x116332);return _0x5cb8dc[_0x1dbc14(0x15a)]?.[_0x1dbc14(0x19a)](_0x21dd80)?{'fileName':_0x54284e['name'],'filePath':_0x54284e[_0x1dbc14(0x175)]}:_0x54284e;}):_0x4089eb];}))}))};}async function exists(_0x2d4e53){const _0x4119e8=a147_0x3248;try{return await lstat(_0x2d4e53),!![];}catch(_0x2bf206){if(_0x2bf206['code']===_0x4119e8(0x1ab))return![];throw _0x2bf206;}}function a147_0x3248(_0x403b2e,_0x154c57){_0x403b2e=_0x403b2e-0x147;const _0x39cada=a147_0x39ca();let _0x324853=_0x39cada[_0x403b2e];return _0x324853;}export async function runImageExcelImport(_0x312e6a){const _0x3aa0e4=a147_0x3248;assertImportContract(_0x312e6a['contract'],_0x312e6a['appCode'],_0x312e6a[_0x3aa0e4(0x1a2)]),assertImageImportCapability(_0x312e6a[_0x3aa0e4(0x183)],_0x312e6a['manifest']);if(!Number[_0x3aa0e4(0x195)](_0x312e6a[_0x3aa0e4(0x186)])||_0x312e6a[_0x3aa0e4(0x186)]<0x1||_0x312e6a['batchSize']>_0x312e6a[_0x3aa0e4(0x183)][_0x3aa0e4(0x16b)])throw Error('Invalid\x20import\x20batch\x20size.');if(_0x312e6a[_0x3aa0e4(0x1a4)][_0x3aa0e4(0x170)][_0x3aa0e4(0x1a1)]||!_0x312e6a['manifest']['rows'][_0x3aa0e4(0x1a1)])throw Error('Excel\x20contains\x20invalid\x20or\x20no\x20data\x20rows;\x20no\x20images\x20were\x20uploaded.');const _0x53ccd2=await resolveImportOutputPath(_0x312e6a[_0x3aa0e4(0x199)]),_0x410cca=await resolveImportOutputPath(_0x312e6a[_0x3aa0e4(0x162)]),_0x16889f=await resolveImportOutputPath(_0x53ccd2+_0x3aa0e4(0x171)),_0x5cc665=await Promise[_0x3aa0e4(0x169)]([_0x16889f,_0x16889f+'.lock',_0x16889f+_0x3aa0e4(0x16f),..._0x312e6a[_0x3aa0e4(0x19f)]??[]]['map'](resolveImportOutputPath));for(const _0x49d845 of[_0x53ccd2,_0x410cca,_0x53ccd2+_0x3aa0e4(0x14f),_0x53ccd2+_0x3aa0e4(0x16f)])await resolveImportOutputPath(_0x49d845);assertImportPaths(_0x53ccd2,_0x410cca,_0x5cc665);const {contract:_0x1c32b4,manifest:_0x302e9e}=_0x312e6a,_0x3d3955=_0x302e9e[_0x3aa0e4(0x15c)]??[];if(new Set(_0x3d3955[_0x3aa0e4(0x159)](_0x40ec26=>_0x40ec26[_0x3aa0e4(0x17b)]))[_0x3aa0e4(0x161)]!==_0x3d3955[_0x3aa0e4(0x1a1)]||_0x3d3955[_0x3aa0e4(0x188)]((_0xa1c503,_0x5b5e77)=>_0xa1c503+_0x5b5e77['size'],0x0)>0x32*0x400*0x400||(_0x302e9e[_0x3aa0e4(0x15b)]??[])[_0x3aa0e4(0x188)]((_0x6780b,_0x3c15f8)=>_0x6780b+_0x3c15f8[_0x3aa0e4(0x151)]['length'],0x0)>0x2710)throw Error(_0x3aa0e4(0x1a6));for(const _0x465ba3 of _0x3d3955)if(_0x465ba3[_0x3aa0e4(0x161)]!==_0x465ba3['bytes'][_0x3aa0e4(0x1a1)]||createHash(_0x3aa0e4(0x198))[_0x3aa0e4(0x152)](_0x465ba3[_0x3aa0e4(0x16c)])[_0x3aa0e4(0x157)](_0x3aa0e4(0x167))!==_0x465ba3['contentHash'])throw Error(_0x3aa0e4(0x14c));previewImportBatchCount(bindImageManifest(_0x302e9e,_0x1c32b4,_0x3aa0e4(0x154)),_0x1c32b4,_0x312e6a[_0x3aa0e4(0x186)]);const _0x46e81c={'appCode':_0x312e6a[_0x3aa0e4(0x147)],'datasetCode':_0x312e6a['datasetCode'],'runtimeDomain':_0x312e6a['runtimeDomain'],'actorId':_0x1c32b4[_0x3aa0e4(0x19e)],'fileHash':_0x302e9e[_0x3aa0e4(0x1a3)],'mappingHash':_0x302e9e[_0x3aa0e4(0x155)],'schemaHash':_0x302e9e[_0x3aa0e4(0x17d)],'remoteSchemaHash':_0x1c32b4[_0x3aa0e4(0x156)],'strategy':_0x1c32b4[_0x3aa0e4(0x180)],'schemaVersion':_0x1c32b4['schemaVersion'],'batchSize':_0x312e6a[_0x3aa0e4(0x186)],'maxBatchBytes':_0x1c32b4['maxBatchBytes'],'sheet':_0x302e9e['sheet'],'parserVersion':_0x302e9e[_0x3aa0e4(0x14b)],'imageFields':_0x302e9e[_0x3aa0e4(0x1aa)],'cells':_0x302e9e[_0x3aa0e4(0x15b)],..._0x302e9e['uploadFields']?.[_0x3aa0e4(0x1a1)]?{'uploadFields':_0x302e9e[_0x3aa0e4(0x15a)]}:{},'media':_0x3d3955['map'](({contentHash:_0x145cee,type:_0x100d9a,size:_0xf95c19})=>({'contentHash':_0x145cee,'type':_0x100d9a,'size':_0xf95c19})),'rows':_0x302e9e[_0x3aa0e4(0x19d)]},_0x270033=await acquireLock(_0x53ccd2);try{let _0x35630a;if(_0x312e6a[_0x3aa0e4(0x18c)]){try{_0x35630a=JSON[_0x3aa0e4(0x18b)](await readFile(_0x53ccd2,_0x3aa0e4(0x19b)));}catch{throw Error(_0x3aa0e4(0x17f));}if(_0x35630a[_0x3aa0e4(0x197)]!==0x3||!/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/[_0x3aa0e4(0x158)](_0x35630a[_0x3aa0e4(0x18a)])||canonical(_0x35630a[_0x3aa0e4(0x16e)])!==canonical(_0x46e81c)||![_0x3aa0e4(0x15c),_0x3aa0e4(0x149),_0x3aa0e4(0x182),_0x3aa0e4(0x178)][_0x3aa0e4(0x19a)](_0x35630a[_0x3aa0e4(0x187)])||!Array[_0x3aa0e4(0x189)](_0x35630a['media'])||_0x35630a[_0x3aa0e4(0x15c)][_0x3aa0e4(0x1a1)]!==_0x3d3955['length']||_0x35630a[_0x3aa0e4(0x15c)][_0x3aa0e4(0x150)]((_0x2b30d8,_0x4b37ed)=>_0x2b30d8[_0x3aa0e4(0x174)]!==_0x3d3955[_0x4b37ed][_0x3aa0e4(0x17b)]||![_0x3aa0e4(0x14e),'succeeded']['includes'](_0x2b30d8[_0x3aa0e4(0x17a)])))throw Error('Image\x20checkpoint\x20does\x20not\x20match\x20the\x20source,\x20target\x20or\x20identity.');if(['rows-started',_0x3aa0e4(0x178)][_0x3aa0e4(0x19a)](_0x35630a[_0x3aa0e4(0x187)])&&!await exists(_0x16889f))throw Error('Row\x20phase\x20started\x20but\x20the\x20row\x20checkpoint\x20is\x20missing;\x20stop\x20to\x20avoid\x20duplicate\x20records.');if(_0x35630a[_0x3aa0e4(0x187)]===_0x3aa0e4(0x15c)&&await exists(_0x16889f))throw Error('Unexpected\x20row\x20checkpoint\x20during\x20image\x20upload\x20phase.');}else{if(await exists(_0x53ccd2)||await exists(_0x16889f))throw Error('Import\x20checkpoint\x20already\x20exists;\x20use\x20--resume.');_0x35630a={'version':0x3,'importId':randomUUID(),'binding':_0x46e81c,'phase':'media','media':_0x3d3955[_0x3aa0e4(0x159)](_0x45dc11=>({'hash':_0x45dc11[_0x3aa0e4(0x17b)],'status':_0x3aa0e4(0x14e)}))},await saveImportJson(_0x53ccd2,_0x35630a);}const _0x23e08b=(_0x446510,_0x187f8a)=>{const _0x12242c=_0x3aa0e4;if(!_0x446510||_0x446510[_0x12242c(0x17b)]!==_0x187f8a['contentHash'])throw Error('Invalid\x20image\x20readback\x20digest.');if(_0x446510[_0x12242c(0x17a)]===_0x12242c(0x148))return undefined;const _0x5e9dc4=imageObjectValue(_0x1c32b4,_0x35630a[_0x12242c(0x18a)],_0x187f8a);if(_0x446510[_0x12242c(0x17a)]!==_0x12242c(0x1a7)||_0x446510[_0x12242c(0x17c)]!==_0x5e9dc4['key']||_0x446510[_0x12242c(0x15e)]!==_0x5e9dc4[_0x12242c(0x1a8)]||_0x446510[_0x12242c(0x18e)]!==_0x5e9dc4[_0x12242c(0x18e)]||_0x446510[_0x12242c(0x161)]!==_0x5e9dc4[_0x12242c(0x161)])throw Error(_0x12242c(0x16a));return _0x5e9dc4;};for(let _0x34ff94=0x0;_0x34ff94<_0x3d3955['length'];_0x34ff94++){const _0x549e19=_0x3d3955[_0x34ff94],_0x26f901=_0x35630a[_0x3aa0e4(0x15c)][_0x34ff94],_0x3e44ad=imageObjectValue(_0x1c32b4,_0x35630a[_0x3aa0e4(0x18a)],_0x549e19);if(_0x26f901[_0x3aa0e4(0x17a)]==='succeeded'&&canonical(_0x26f901[_0x3aa0e4(0x153)])!==canonical(_0x3e44ad))throw Error(_0x3aa0e4(0x164));let _0xf75368;if(_0x312e6a[_0x3aa0e4(0x18c)]||_0x26f901['status']==='succeeded')_0xf75368=_0x23e08b(await _0x312e6a[_0x3aa0e4(0x19c)][_0x3aa0e4(0x177)](_0x35630a[_0x3aa0e4(0x18a)],_0x549e19),_0x549e19);if(!_0xf75368&&_0x26f901['status']===_0x3aa0e4(0x1a7))throw Error(_0x3aa0e4(0x172));if(!_0xf75368){try{_0x23e08b(await _0x312e6a[_0x3aa0e4(0x19c)]['upload'](_0x35630a[_0x3aa0e4(0x18a)],_0x549e19),_0x549e19);}catch(_0x5788ee){_0xf75368=_0x23e08b(await _0x312e6a[_0x3aa0e4(0x19c)][_0x3aa0e4(0x177)](_0x35630a[_0x3aa0e4(0x18a)],_0x549e19),_0x549e19);if(!_0xf75368)throw Error(_0x3aa0e4(0x1ac));}if(!_0xf75368)_0xf75368=_0x23e08b(await _0x312e6a[_0x3aa0e4(0x19c)][_0x3aa0e4(0x177)](_0x35630a[_0x3aa0e4(0x18a)],_0x549e19),_0x549e19);if(!_0xf75368)throw Error('Uploaded\x20image\x20is\x20not\x20visible.\x20Resume\x20to\x20reconcile\x20before\x20continuing.');}_0x26f901['status']='succeeded',_0x26f901[_0x3aa0e4(0x153)]=_0xf75368,await saveImportJson(_0x53ccd2,_0x35630a);}const _0x40c396=bindImageManifest(_0x302e9e,_0x1c32b4,_0x35630a[_0x3aa0e4(0x18a)]),_0x5894b4=_0x35630a[_0x3aa0e4(0x187)]===_0x3aa0e4(0x149)?await exists(_0x16889f):_0x35630a[_0x3aa0e4(0x187)]!==_0x3aa0e4(0x15c);_0x35630a[_0x3aa0e4(0x187)]===_0x3aa0e4(0x15c)&&(_0x35630a[_0x3aa0e4(0x187)]=_0x3aa0e4(0x149),await saveImportJson(_0x53ccd2,_0x35630a));const _0x7a8b65={..._0x312e6a,'manifest':_0x40c396,'checkpoint':_0x16889f,'report':_0x410cca,'resume':_0x5894b4,'onCheckpointReady':async()=>{const _0x1f6543=_0x3aa0e4;_0x35630a[_0x1f6543(0x187)]=_0x1f6543(0x182),await saveImportJson(_0x53ccd2,_0x35630a);}},_0x782c57=_0x1c32b4[_0x3aa0e4(0x191)]===0x2?await runAutoIdExcelImport({..._0x7a8b65,'reconcileImageConflicts':_0x312e6a[_0x3aa0e4(0x18c)]===!![]&&_0x5894b4}):await runExcelImport(_0x7a8b65);return _0x35630a['phase']=_0x3aa0e4(0x178),await saveImportJson(_0x53ccd2,_0x35630a),{..._0x782c57,'checkpoint':_0x53ccd2,'imageCount':_0x302e9e['imageCells']?.['reduce']((_0x7b009b,_0x11b5c7)=>_0x7b009b+_0x11b5c7['hashes'][_0x3aa0e4(0x1a1)],0x0)??0x0,'uniqueImages':_0x3d3955[_0x3aa0e4(0x1a1)]};}finally{await _0x270033();}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x27ba14,_0x48771a){const _0x20f678=a148_0x2237,_0x1a6720=_0x27ba14();while(!![]){try{const _0x19d70c=parseInt(_0x20f678(0x9d))/0x1+parseInt(_0x20f678(0x92))/0x2*(-parseInt(_0x20f678(0x99))/0x3)+-parseInt(_0x20f678(0x9e))/0x4+-parseInt(_0x20f678(0x8f))/0x5+parseInt(_0x20f678(0xa0))/0x6+parseInt(_0x20f678(0x94))/0x7+-parseInt(_0x20f678(0x8e))/0x8;if(_0x19d70c===_0x48771a)break;else _0x1a6720['push'](_0x1a6720['shift']());}catch(_0x21f0cc){_0x1a6720['push'](_0x1a6720['shift']());}}}(a148_0x4522,0xe5021));function a148_0x2237(_0x1fd8ae,_0x65f534){_0x1fd8ae=_0x1fd8ae-0x8e;const _0x4522b7=a148_0x4522();let _0x223714=_0x4522b7[_0x1fd8ae];return _0x223714;}function a148_0x4522(){const _0x4ab02a=['source','2817574eJantT','modelCode','6616554GwKXLR','some','appCode','Dataset\x20metadata\x20does\x20not\x20match\x20the\x20requested\x20target.','object','3yARcCi','Dataset\x20metadata\x20is\x20missing.','filter','sourceType','916992ThkuOo','2208760zwkUFw','dataset','11199972UvaIIQ','string','5673840FzMFbo','603260bMZYLK','datasetCode'];a148_0x4522=function(){return _0x4ab02a;};return a148_0x4522();}export function assertDatasetImportTarget(_0x2e7c22,_0x51257b,_0x3e07e0){const _0xd6a2d2=a148_0x2237;if(!_0x2e7c22||typeof _0x2e7c22!==_0xd6a2d2(0x98)||Array['isArray'](_0x2e7c22))throw Error(_0xd6a2d2(0x9a));const _0x28cd59=[_0x2e7c22['code'],_0x2e7c22[_0xd6a2d2(0x93)],_0x2e7c22['dataset']?.[_0xd6a2d2(0x90)]][_0xd6a2d2(0x9b)](_0x3258de=>_0x3258de!=null);if(!_0x28cd59['length']||_0x28cd59['some'](_0x290c6c=>_0x290c6c!==_0x3e07e0)||_0x2e7c22[_0xd6a2d2(0x96)]!=null&&_0x2e7c22[_0xd6a2d2(0x96)]!==_0x51257b||_0x2e7c22[_0xd6a2d2(0x9f)]?.[_0xd6a2d2(0x96)]!=null&&_0x2e7c22[_0xd6a2d2(0x9f)][_0xd6a2d2(0x96)]!==_0x51257b)throw Error(_0xd6a2d2(0x97));const _0xa29d01=[_0x2e7c22[_0xd6a2d2(0x91)],_0x2e7c22[_0xd6a2d2(0x9f)]?.[_0xd6a2d2(0x9c)]][_0xd6a2d2(0x9b)](_0x540032=>_0x540032!=null);if(_0xa29d01[_0xd6a2d2(0x95)](_0x3fdd2d=>typeof _0x3fdd2d!==_0xd6a2d2(0xa1)||_0x3fdd2d!==_0xa29d01[0x0]))throw Error('Dataset\x20source\x20metadata\x20is\x20inconsistent.');return _0xa29d01[0x0];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a149_0x4479(_0x22233b,_0x140e1c){_0x22233b=_0x22233b-0xa9;const _0x5e5657=a149_0x5e56();let _0x44797b=_0x5e5657[_0x22233b];return _0x44797b;}function a149_0x5e56(){const _0x5d81e9=['1812492YDslJS','schemaFingerprint','values','703737jUFdic','1465464CJyiko','\x20exceeds\x20the\x20import\x20request\x20size\x20limit.','478434ROUWTj','893088UsaSnZ','maxBatchBytes','3683256RHfyKk','152845qWjywy','length','push','rows','byteLength','schemaVersion','Excel\x20row\x20','4aHBFJe'];a149_0x5e56=function(){return _0x5d81e9;};return a149_0x5e56();}(function(_0x26a73b,_0x433195){const _0x6289d7=a149_0x4479,_0x47adb9=_0x26a73b();while(!![]){try{const _0x3d1225=parseInt(_0x6289d7(0xaa))/0x1+parseInt(_0x6289d7(0xb5))/0x2*(-parseInt(_0x6289d7(0xb9))/0x3)+-parseInt(_0x6289d7(0xba))/0x4+parseInt(_0x6289d7(0xae))/0x5+parseInt(_0x6289d7(0xb6))/0x6+-parseInt(_0x6289d7(0xab))/0x7+parseInt(_0x6289d7(0xad))/0x8;if(_0x3d1225===_0x433195)break;else _0x47adb9['push'](_0x47adb9['shift']());}catch(_0x66867a){_0x47adb9['push'](_0x47adb9['shift']());}}}(a149_0x5e56,0x4b4a0));export function previewImportBatchCount(_0xc6f7d,_0x88be69,_0x11cc8d){const _0x172e9a=a149_0x4479,_0x42b9f4=_0x453ea6=>_0x453ea6['map'](_0x1af0e0=>_0x88be69[_0x172e9a(0xb3)]===0x1?{..._0xc6f7d[_0x172e9a(0xb1)][_0x1af0e0][_0x172e9a(0xb8)],'id':-0x1fffffffffffff}:_0xc6f7d['rows'][_0x1af0e0][_0x172e9a(0xb8)]),_0x7bed3f=_0x2a4d29=>Buffer[_0x172e9a(0xb2)](JSON['stringify']({'schemaFingerprint':_0x88be69[_0x172e9a(0xb7)],..._0x88be69[_0x172e9a(0xb3)]===0x2?{'taskId':0x2**0x34}:{},'items':_0x42b9f4(_0x2a4d29)}),'utf8');let _0x4fcf50=0x0,_0x5a0e90=[];for(let _0x4c6282=0x0;_0x4c6282<_0xc6f7d[_0x172e9a(0xb1)][_0x172e9a(0xaf)];_0x4c6282++){if(_0x7bed3f([_0x4c6282])>_0x88be69[_0x172e9a(0xac)])throw Error(_0x172e9a(0xb4)+_0xc6f7d[_0x172e9a(0xb1)][_0x4c6282]['rowNumber']+_0x172e9a(0xa9));_0x5a0e90['length']&&(_0x5a0e90[_0x172e9a(0xaf)]===_0x11cc8d||_0x7bed3f([..._0x5a0e90,_0x4c6282])>_0x88be69[_0x172e9a(0xac)])&&(_0x4fcf50++,_0x5a0e90=[]),_0x5a0e90[_0x172e9a(0xb0)](_0x4c6282);}return _0x4fcf50+Number(_0x5a0e90[_0x172e9a(0xaf)]>0x0);}
|