@lovrabet/lovrabet-cli 2.3.8-beta.7 → 2.3.9-beta.1
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
|
-
const a144_0x1586bd=a144_0x520d;function a144_0x23fc(){const _0x4e6cf9=['jpg','merges','isInteger','media','boolean','getTime','XML\x20DTD/entities\x20are\x20not\x20supported.','Invalid\x20XLSX\x20entry.','batchSize\x20must\x20be\x20between\x201\x20and\x201000.','materialized','directory','processAttributes','end','readEntry','2292064JOkwfh','Worksheet\x20coordinate\x20exceeds\x20','Mapping\x20must\x20contain\x20at\x20least\x20one\x20field.','Worksheet\x20exceeds\x2016384\x20columns.','Workbook\x20defined\x20name\x20work\x20exceeds\x20100000.','Unknown\x20Excel\x20header:\x20','dataset','Sheet\x20index\x20must\x20be\x20a\x20positive\x20one-based\x20integer.','Invalid\x20or\x20duplicate\x20dataset\x20field\x20metadata.','formula','cells','closetag','doctype','File\x20is\x20not\x20an\x20XLSX\x20workbook.','Invalid\x20worksheet\x20merge\x20reference.','Worksheet\x20exceeds\x20100000\x20rows\x20or\x20256\x20columns.','equals','extraFields','split','fromBuffer','slice','./utils','worksheets','ranges','abs','result','appCode','number','Image\x20XML\x20node\x20budget\x20exceeded.','map','right','hyperlink','getRow','sharedFormula','Invalid\x20ZIP\x20local\x20file\x20header.','rows','utf8','doType','xlsx','charCodeAt','fileNameStr','_xlnm.Print_Titles','Expected\x20a\x20boolean\x20cell.','MAX_SAFE_INTEGER','Required\x20field\x20is\x20not\x20mapped:\x20','file','689412ZoIoMI','2680412wyWBdQ','ref','Required\x20image\x20value\x20is\x20missing.','date','Merged\x20cells\x20are\x20not\x20supported.','Duplicate\x20workbook\x20ZIP\x20entry.','trim','Duplicate\x20dataset\x20field\x20codes.','Duplicate\x20header:\x20','autoIncrement','Duplicate\x20mapping\x20target:\x20','parseInt','versionMadeBy','mergeCell','update','Cell\x20exceeds\x2064\x20KB.','isFinite','get','isArray','Invalid\x20worksheet\x20hyperlink\x20reference.','type','code','xl/workbook.xml','hidden','2532024SzbHqF','eachCell','uploadFields','Worksheet\x20exceeds\x20','datetime','hiddenRow','generalPurposeBitFlag','image','_xlnm.Print_Area','parse','readBigUInt64LE','creatorId','opentag','isSafeInteger','Headers\x20must\x20be\x20non-empty\x20text\x20cells\x20no\x20larger\x20than\x2064\x20KB.','Non-canonical\x20worksheet\x20ZIP\x20entry.','entryCount','parseOpen','col','destroy','decodeEx','object','nativeCell','Expected\x20an\x20Excel\x20date\x20cell.','source','before','rowCount','Duplicate\x20ZIP64\x20extended\x20information\x20fields\x20are\x20not\x20supported.','resolve','sheet','createTime','top','push','extraFieldsLength','updateTime','ZIP\x20local\x20and\x20central\x20entry\x20names\x20must\x20match.','sha256','extend','parseClose','extname','length','some','values','reference','bottom','left','readExtraFields','readEntryCursor','Image\x20cell\x20contains\x20scalar\x20or\x20mixed\x20content.','Invalid\x20dataset\x20field\x20extension\x20metadata.','close','Required\x20value\x20is\x20missing.','getCell','tenantCode','attributes','Only\x20.xlsx\x20files\x20are\x20supported.','handleUTF8','relativeOffsetOfLocalHeader','METADATA','3373976CTLSLr','bitFlag','exceljs/lib/utils/col-cache.js','Missing\x20image\x20media:\x20','Worksheet\x20column\x20objects\x20exceed\x20100000.','externalFileAttributes','test','fileCommentRaw','exceljs/lib/xlsx/xform/book/defined-name-xform.js','subarray','10ONlKBw','errors','3xCwPFM','sort','Unsupported\x20dataset\x20field\x20type:\x20serial_number.','Requested\x20worksheet\x20does\x20not\x20exist.','upload','Non-canonical\x20workbook\x20or\x20worksheet\x20ZIP\x20entry.','data','concat','filter','extraFieldRaw','\x20hidden\x20row(s)\x20are\x20included\x20in\x20the\x20import.','datasetId','1444874AzBjcI','readUInt16LE','properties','row','imageCells','contentHash','digest','integer','Image\x20XML\x20event\x20budget\x20exceeded.','toLowerCase','./utf8','find','set','required','text','hex','byteLength','readUInt32LE','dataset-import/','utf8decode','creatorName','Invalid\x20worksheet\x20cell\x20without\x20an\x20initial\x20reference.','Invalid\x20worksheet\x20nested\x20cell.','exceljs','XLSX\x20file\x20must\x20be\x20a\x20regular\x20file\x20no\x20larger\x20than\x2020\x20MB.','isFile','name','model','fields','compressedSize','Worksheet\x20deferred\x20cell\x20events\x20exceed\x201000000.','20ITkDNk','size','write','unixPermissions','has','headerRow\x20must\x20be\x20between\x201\x20and\x20100000.','add','max','localeCompare','address','generated','every','8625321gqjQkk','Dataset\x20field\x20metadata\x20is\x20missing.','Unique\x20image\x20bytes\x20exceed\x2050\x20MB.','.xlsx','Invalid\x20worksheet\x20cell\x20or\x20merge\x20reference.','serial_number','definedName','Worksheet\x20merge\x20work\x20exceeds\x20100000.','Invalid\x20defined\x20name\x20coordinate.','value','warnings','lastIndexOf','fileNameRaw','./reader/readerFor','includes','fileComment','message','imageFields','dataType','[Content_Types].xml','string','batchSize','Expected\x20a\x20text\x20cell.','dir','Unsupported\x20field\x20type:\x20','columnCount','parserVersion','from','Workbook','textarea','Non-canonical\x20or\x20duplicate\x20image\x20archive\x20entry.','create','stringify','exec','error','Invalid\x20XLSX\x20archive.','Invalid\x20worksheet\x20XML.','decimal','dataValidations','mapping','sourceType','isBuffer','deleted','modifierId','XLSX\x20file\x20exceeds\x2020\x20MB.'];a144_0x23fc=function(){return _0x4e6cf9;};return a144_0x23fc();}function a144_0x520d(_0x776057,_0x44225c){_0x776057=_0x776057-0x164;const _0x23fc48=a144_0x23fc();let _0x520de7=_0x23fc48[_0x776057];return _0x520de7;}(function(_0x90955d,_0x9d7093){const _0x23fcd7=a144_0x520d,_0x9f9b=_0x90955d();while(!![]){try{const _0x18e6ea=-parseInt(_0x23fcd7(0x244))/0x1+parseInt(_0x23fcd7(0x1b0))/0x2*(parseInt(_0x23fcd7(0x1a4))/0x3)+parseInt(_0x23fcd7(0x198))/0x4+parseInt(_0x23fcd7(0x1a2))/0x5*(parseInt(_0x23fcd7(0x25d))/0x6)+parseInt(_0x23fcd7(0x245))/0x7+parseInt(_0x23fcd7(0x216))/0x8+parseInt(_0x23fcd7(0x1db))/0x9*(-parseInt(_0x23fcd7(0x1cf))/0xa);if(_0x18e6ea===_0x9d7093)break;else _0x9f9b['push'](_0x9f9b['shift']());}catch(_0x3626a4){_0x9f9b['push'](_0x9f9b['shift']());}}}(a144_0x23fc,0x7387d));import{readFile,stat}from'node:fs/promises';import{createHash}from'node:crypto';import a144_0x219077 from'node:path';import{StringDecoder}from'node:string_decoder';import{createRequire}from'node:module';import{SaxesParser}from'saxes';import a144_0x3a67e4 from'exceljs';import a144_0x5c3bed 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_0x1586bd(0x192),a144_0x1586bd(0x230),a144_0x1586bd(0x1af),a144_0x1586bd(0x168),a144_0x1586bd(0x1c4),a144_0x1586bd(0x206),'modifierName',a144_0x1586bd(0x17b),a144_0x1586bd(0x17f),a144_0x1586bd(0x205)]),TYPES=new Set([a144_0x1586bd(0x1ef),'text','textarea',a144_0x1586bd(0x231),a144_0x1586bd(0x200),'integer',a144_0x1586bd(0x20c),a144_0x1586bd(0x248),a144_0x1586bd(0x261),a144_0x1586bd(0x164),a144_0x1586bd(0x1a8)]),isImageContainer=_0x7f2d2=>[a144_0x1586bd(0x164),'upload'][a144_0x1586bd(0x1e9)](_0x7f2d2['toLowerCase']()),hash=_0x3c11a6=>createHash(a144_0x1586bd(0x181))[a144_0x1586bd(0x253)](_0x3c11a6)[a144_0x1586bd(0x1b6)](a144_0x1586bd(0x1bf)),require=createRequire(import.meta.url),DefinedNameXform=require(a144_0x1586bd(0x1a0)),nameCoordinates=require(a144_0x1586bd(0x19a)),ABSOLUTE_NAME_RANGE=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/,excelRequire=createRequire(require[a144_0x1586bd(0x179)](a144_0x1586bd(0x1c7))),zipRequire=createRequire(excelRequire[a144_0x1586bd(0x179)]('jszip')),ZipEntry=zipRequire('./zipEntry'),zipReader=zipRequire(a144_0x1586bd(0x1e8)),zipUtf8=zipRequire(a144_0x1586bd(0x1ba)),zipPaths=zipRequire(a144_0x1586bd(0x22b));function centralDirectoryEnd(_0x5a95b7,_0xccf6e7){const _0x3bf095=a144_0x1586bd,_0x177029=()=>new Error('Invalid\x20ZIP\x20central\x20directory\x20layout.'),_0x79a551=_0x5a95b7[_0x3bf095(0x1e6)](Buffer[_0x3bf095(0x1f6)]([0x50,0x4b,0x5,0x6]));if(_0x79a551<0x0||_0x79a551+0x16>_0x5a95b7[_0x3bf095(0x185)]||_0x79a551+0x16+_0x5a95b7['readUInt16LE'](_0x79a551+0x14)!==_0x5a95b7[_0x3bf095(0x185)])throw _0x177029();let _0x30b91d=_0x5a95b7['readUInt16LE'](_0x79a551+0xa),_0x1af78a=_0x5a95b7[_0x3bf095(0x1c1)](_0x79a551+0xc),_0x4a19f3=_0x5a95b7[_0x3bf095(0x1c1)](_0x79a551+0x10),_0x473d00=_0x79a551;const _0x454bd2=_0x79a551-0x14,_0x1561bd=_0x454bd2>=0x0&&_0x5a95b7[_0x3bf095(0x1c1)](_0x454bd2)===0x7064b50,_0x41f00=[0x4,0x6,0x8,0xa][_0x3bf095(0x186)](_0x180201=>_0x5a95b7[_0x3bf095(0x1b1)](_0x79a551+_0x180201)===0xffff)||_0x1af78a===0xffffffff||_0x4a19f3===0xffffffff;if(_0x1561bd!==_0x41f00)throw _0x177029();if(_0x1561bd){if(_0x5a95b7[_0x3bf095(0x1e6)](Buffer[_0x3bf095(0x1f6)]([0x50,0x4b,0x6,0x7]))!==_0x454bd2)throw _0x177029();const _0x25d606=_0x21cd95=>{const _0x3d88dc=_0x3bf095,_0x1ad6c8=Number(_0x5a95b7[_0x3d88dc(0x167)](_0x21cd95));if(!Number[_0x3d88dc(0x16a)](_0x1ad6c8))throw _0x177029();return _0x1ad6c8;};_0x473d00=_0x25d606(_0x454bd2+0x8);if(_0x5a95b7[_0x3bf095(0x1c1)](_0x454bd2+0x4)!==0x0||_0x5a95b7['readUInt32LE'](_0x454bd2+0x10)!==0x1||_0x473d00>_0x454bd2-0x38||_0x5a95b7[_0x3bf095(0x1c1)](_0x473d00)!==0x6064b50||_0x25d606(_0x473d00+0x4)!==0x2c||_0x473d00+0x38!==_0x454bd2||_0x5a95b7[_0x3bf095(0x1c1)](_0x473d00+0x10)!==0x0||_0x5a95b7['readUInt32LE'](_0x473d00+0x14)!==0x0)throw _0x177029();_0x30b91d=_0x25d606(_0x473d00+0x20),_0x1af78a=_0x25d606(_0x473d00+0x28),_0x4a19f3=_0x25d606(_0x473d00+0x30);if(_0x25d606(_0x473d00+0x18)!==_0x30b91d)throw _0x177029();}else{if(_0x5a95b7[_0x3bf095(0x1b1)](_0x79a551+0x4)!==0x0||_0x5a95b7['readUInt16LE'](_0x79a551+0x6)!==0x0||_0x5a95b7[_0x3bf095(0x1b1)](_0x79a551+0x8)!==_0x30b91d)throw _0x177029();}const _0x135dcf=_0xccf6e7[_0x3bf095(0x18c)];if(_0x4a19f3!==_0x135dcf||_0x30b91d!==_0xccf6e7[_0x3bf095(0x16d)]||_0x4a19f3+_0x1af78a!==_0x473d00)throw _0x177029();return _0x473d00;}function consumerEntryName(_0x249407,_0x2d1e1d){const _0x2f9d5b=a144_0x1586bd;if(_0x2d1e1d[_0x2f9d5b(0x227)][_0x2f9d5b(0x1ac)](_0x5aa8d5=>_0x5aa8d5['id']===0x1)[_0x2f9d5b(0x185)]>0x1)throw new Error(_0x2f9d5b(0x178));const _0x4c91a2=_0x2d1e1d,_0x202ed5=_0x2d1e1d[_0x2f9d5b(0x196)];if(!Buffer['isBuffer'](_0x4c91a2['fileNameRaw'])||!Buffer['isBuffer'](_0x4c91a2[_0x2f9d5b(0x1ad)])||!Buffer[_0x2f9d5b(0x204)](_0x4c91a2[_0x2f9d5b(0x19f)])||!Number[_0x2f9d5b(0x16a)](_0x202ed5)||_0x202ed5<0x0||_0x202ed5>_0x249407[_0x2f9d5b(0x185)]-0x1e||_0x249407[_0x2f9d5b(0x1c1)](_0x202ed5)!==0x4034b50)throw new Error(_0x2f9d5b(0x238));const _0x169202=_0x202ed5+0x1e+_0x249407[_0x2f9d5b(0x1b1)](_0x202ed5+0x1a),_0x3254b9=_0x169202+_0x249407[_0x2f9d5b(0x1b1)](_0x202ed5+0x1c)+_0x2d1e1d[_0x2f9d5b(0x1cd)];if(!Number['isSafeInteger'](_0x3254b9)||_0x3254b9>_0x249407[_0x2f9d5b(0x185)])throw new Error(_0x2f9d5b(0x238));if(_0x169202>_0x249407['length']||!_0x249407[_0x2f9d5b(0x1a1)](_0x202ed5+0x1e,_0x169202)[_0x2f9d5b(0x226)](_0x4c91a2[_0x2f9d5b(0x1e7)]))throw new Error(_0x2f9d5b(0x180));const _0xce10e8=new ZipEntry({},{'decodeFileName':zipUtf8[_0x2f9d5b(0x1c3)]});_0xce10e8[_0x2f9d5b(0x199)]=_0x2d1e1d[_0x2f9d5b(0x263)],_0xce10e8['fileName']=_0x4c91a2[_0x2f9d5b(0x1e7)],_0xce10e8[_0x2f9d5b(0x1ea)]=_0x4c91a2['fileCommentRaw'],_0xce10e8[_0x2f9d5b(0x17e)]=_0x4c91a2[_0x2f9d5b(0x1ad)][_0x2f9d5b(0x185)],_0xce10e8[_0x2f9d5b(0x18b)](zipReader(_0x4c91a2[_0x2f9d5b(0x1ad)])),_0xce10e8[_0x2f9d5b(0x195)](),_0xce10e8[_0x2f9d5b(0x251)]=_0x2d1e1d[_0x2f9d5b(0x251)],_0xce10e8['externalFileAttributes']=_0x2d1e1d[_0x2f9d5b(0x19d)],_0xce10e8[_0x2f9d5b(0x213)]();const _0x5122ca=_0xce10e8[_0x2f9d5b(0x1f2)]||Boolean((_0xce10e8[_0x2f9d5b(0x1d2)]??0x0)&0x4000),_0x1982f8=zipPaths[_0x2f9d5b(0x179)](_0xce10e8[_0x2f9d5b(0x23e)]),_0xa073bf=_0x1982f8['startsWith']('/')?_0x1982f8[_0x2f9d5b(0x22a)](0x1):_0x1982f8;return{'name':_0xa073bf,'original':_0xce10e8[_0x2f9d5b(0x23e)],'directory':_0x5122ca};}export function normalizeImportFields(_0x11ee5c){const _0x34f933=a144_0x1586bd;if(!_0x11ee5c||(_0x11ee5c[_0x34f933(0x175)]??_0x11ee5c[_0x34f933(0x21c)]?.[_0x34f933(0x203)])!==_0x34f933(0x197))throw new Error('Excel\x20import\x20only\x20supports\x20METADATA\x20datasets.');const _0x4779ab=Array[_0x34f933(0x257)](_0x11ee5c[_0x34f933(0x1cc)]),_0x4bb584=_0x4779ab?_0x11ee5c[_0x34f933(0x1cc)]:_0x11ee5c[_0x34f933(0x1b2)];if(!Array[_0x34f933(0x257)](_0x4bb584)||_0x4bb584[_0x34f933(0x185)]===0x0)throw new Error(_0x34f933(0x1dc));const _0x36b709=[],_0x9702b9=new Set();for(const _0x409a9e of _0x4bb584){if(_0x409a9e['deleted']===!![])continue;let _0x392117=_0x409a9e[_0x34f933(0x182)]??{};if(!_0x4779ab&&typeof _0x392117===_0x34f933(0x1ef)){try{_0x392117=JSON[_0x34f933(0x166)](_0x392117);}catch{throw new Error(_0x34f933(0x18e));}if(!_0x392117||typeof _0x392117!==_0x34f933(0x172)||Array[_0x34f933(0x257)](_0x392117))throw new Error(_0x34f933(0x18e));}const _0x539216=_0x4779ab?_0x409a9e['name']:_0x409a9e['code'],_0xe2dd4e=_0x4779ab?_0x409a9e[_0x34f933(0x23b)]:_0x409a9e['type']??_0x409a9e[_0x34f933(0x1ed)];if(typeof _0x539216!==_0x34f933(0x1ef)||!_0x539216||typeof _0xe2dd4e!==_0x34f933(0x1ef)||_0x9702b9['has'](_0x539216))throw new Error(_0x34f933(0x21e));if(_0xe2dd4e['toLowerCase']()===_0x34f933(0x1e0))throw new Error(_0x34f933(0x1a6));_0x9702b9[_0x34f933(0x1d5)](_0x539216);const _0x49d6d2=_0x4779ab?_0x409a9e:_0x392117,_0x4817f2={'code':_0x539216,'type':_0xe2dd4e,'required':_0x49d6d2[_0x34f933(0x1bd)]===!![]};if(RESERVED['has'](_0x539216)||_0x49d6d2['generated']===!![]||_0x49d6d2[_0x34f933(0x24e)]===!![])_0x4817f2[_0x34f933(0x1d9)]=!![];_0x36b709[_0x34f933(0x17d)](_0x4817f2);}return _0x36b709;}async function checkArchive(_0x189601,_0x307cae){await new Promise((_0x5f4cc4,_0x466290)=>{const _0x4bba27=a144_0x520d;a144_0x5c3bed[_0x4bba27(0x229)](_0x189601,{'lazyEntries':!![],'validateEntrySizes':!![]},(_0x1cc756,_0x2c87d0)=>{const _0x13a6f8=_0x4bba27;if(_0x1cc756||!_0x2c87d0){_0x466290(_0x1cc756??new Error(_0x13a6f8(0x1fe)));return;}let _0x5f4440;try{_0x5f4440=centralDirectoryEnd(_0x189601,_0x2c87d0);}catch(_0x536a6b){_0x2c87d0[_0x13a6f8(0x18f)](),_0x466290(_0x536a6b);return;}let _0x388e45=0x0,_0x3d2816=0x0,_0x270247=0x0,_0x3d4ea2=0x0,_0x553772=0x0,_0x42a5f0=0x0,_0x2e760f=0x0,_0x5135b7=0x0,_0x26fc89=0x0,_0x3a5215=![],_0xe65325;const _0x2b59a4=new Set(),_0x125f12=_0x2f4992=>{const _0x355739=_0x13a6f8;if(_0x3a5215)return;_0x3a5215=!![],_0xe65325?.['destroy'](),_0x2c87d0[_0x355739(0x18f)](),_0x466290(_0x2f4992);},_0x19bd7a=(_0x308000,_0x394163)=>{const _0xd0a6fa=_0x13a6f8;if(!_0x308000||!/^\d+$/['test'](_0x308000))throw new Error('Invalid\x20worksheet\x20coordinate.');const _0x478dc3=Number(_0x308000);if(!Number[_0xd0a6fa(0x16a)](_0x478dc3)||_0x478dc3<0x1||_0x478dc3>_0x394163)throw new Error(_0xd0a6fa(0x217)+_0x394163+'.');return _0x478dc3;},_0x59060b=(_0x6e3401,_0x1857fc=MAX_XML_COLUMNS)=>{const _0x2aa6eb=_0x13a6f8,_0x491a7c=/^\$?([A-Z]{1,3})\$?(\d+)$/[_0x2aa6eb(0x1fc)](_0x6e3401);if(!_0x491a7c)throw new Error(_0x2aa6eb(0x1df));let _0x11c1e0=0x0;for(const _0x5b4251 of _0x491a7c[0x1])_0x11c1e0=_0x11c1e0*0x1a+_0x5b4251[_0x2aa6eb(0x23d)](0x0)-0x40;if(_0x11c1e0>_0x1857fc)throw new Error(_0x2aa6eb(0x260)+_0x1857fc+'\x20columns.');return{'row':_0x19bd7a(_0x491a7c[0x2],MAX_XML_ROWS),'col':_0x11c1e0};},_0x5e519b=_0x3b4142=>{const _0x37417a=_0x13a6f8;if(_0x3b4142[_0x37417a(0x1ca)]===_0x37417a(0x165)||_0x3b4142[_0x37417a(0x1ca)]===_0x37417a(0x23f))return;for(const _0x160d5e of _0x3b4142[_0x37417a(0x22d)]){if(!ABSOLUTE_NAME_RANGE['test'](_0x160d5e[_0x37417a(0x228)]('!')['pop']()||''))continue;const _0x958685=nameCoordinates[_0x37417a(0x171)](_0x160d5e),_0x1f6327=_0x37417a(0x17c)in _0x958685,_0x103072=_0x1f6327?[_0x958685[_0x37417a(0x17c)],_0x958685[_0x37417a(0x189)]]:[_0x958685[_0x37417a(0x1b3)]],_0x40eaa4=_0x1f6327?[_0x958685[_0x37417a(0x18a)],_0x958685[_0x37417a(0x234)]]:[_0x958685[_0x37417a(0x16f)]],_0x232567=(_0x4363c8,_0x56df33)=>Number['isSafeInteger'](_0x4363c8)&&_0x4363c8>=0x1&&_0x4363c8<=_0x56df33;if(!_0x103072['every'](_0x1b2f60=>_0x232567(_0x1b2f60,MAX_XML_ROWS))||!_0x40eaa4[_0x37417a(0x1da)](_0x3b21ed=>_0x232567(_0x3b21ed,MAX_XML_COLUMNS)))throw new Error(_0x37417a(0x1e3));_0x2e760f+=_0x1f6327?(_0x958685['bottom']-_0x958685['top']+0x1)*(_0x958685[_0x37417a(0x234)]-_0x958685[_0x37417a(0x18a)]+0x1):0x1;if(_0x2e760f>MAX_ROWS)throw new Error(_0x37417a(0x21a));}};_0x2c87d0['on'](_0x13a6f8(0x1fd),_0x125f12),_0x2c87d0['on']('entry',_0x1cc6aa=>{const _0x27ca21=_0x13a6f8;if(_0x3a5215)return;if(++_0x270247>0x2710||(_0x388e45+=_0x1cc6aa['uncompressedSize'])>MAX_EXPANDED){_0x125f12(new Error('XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.'));return;}let _0x5605c0;try{_0x5605c0=consumerEntryName(_0x189601,_0x1cc6aa);}catch(_0x120ca1){_0x125f12(_0x120ca1);return;}if(_0x5605c0[_0x27ca21(0x212)]){_0x2c87d0[_0x27ca21(0x215)]();return;}const _0x3edd80=_0x5605c0[_0x27ca21(0x1ca)];if(_0x307cae&&(_0x3edd80!==_0x5605c0['original']||_0x2b59a4[_0x27ca21(0x1d3)](_0x3edd80)||_0x3edd80['startsWith']('/')||_0x3edd80[_0x27ca21(0x1e9)]('\x5c'))){_0x125f12(new Error(_0x27ca21(0x1f9)));return;}if(_0x3edd80!==_0x5605c0['original']&&(_0x3edd80===_0x27ca21(0x25b)||/xl\/worksheets\/sheet(\d+)[.]xml/[_0x27ca21(0x19e)](_0x3edd80))){_0x125f12(new Error(_0x27ca21(0x1a9)));return;}const _0x2c69c6=_0x3edd80===_0x27ca21(0x25b);if(_0x2c69c6&&_0x2b59a4[_0x27ca21(0x1d3)](_0x3edd80)){_0x125f12(new Error(_0x27ca21(0x24a)));return;}_0x2b59a4['add'](_0x3edd80);const _0x2e3063=/xl\/worksheets\/sheet(\d+)[.]xml/[_0x27ca21(0x19e)](_0x3edd80);if(_0x2e3063&&!/^xl\/worksheets\/sheet\d+[.]xml$/[_0x27ca21(0x19e)](_0x3edd80)){_0x125f12(new Error(_0x27ca21(0x16c)));return;}_0x2c87d0['openReadStream'](_0x1cc6aa,(_0x1068da,_0x2cf3f5)=>{const _0x333e0c=_0x27ca21;if(_0x3a5215){_0x2cf3f5?.[_0x333e0c(0x170)]();return;}if(_0x1068da||!_0x2cf3f5){_0x125f12(_0x1068da??new Error(_0x333e0c(0x20f)));return;}_0xe65325=_0x2cf3f5;const _0x1e137d=_0x307cae?[]:undefined,_0x51f264=_0x307cae&&/[.](xml|rels)$/[_0x333e0c(0x19e)](_0x3edd80)?new StringDecoder(_0x333e0c(0x23a)):undefined,_0x1301f8=_0x51f264?new SaxesParser({'xmlns':![]}):undefined,_0x2dff63=()=>{const _0x4d0f6b=_0x333e0c;if(++_0x26fc89>0x1e8480)throw Error(_0x4d0f6b(0x1b8));};_0x1301f8?.['on'](_0x333e0c(0x222),()=>{const _0x30eff6=_0x333e0c;throw Error(_0x30eff6(0x20e));}),_0x1301f8?.['on']('opentag',()=>{const _0x108f67=_0x333e0c;_0x2dff63();if(++_0x5135b7>0x7a120)throw Error(_0x108f67(0x232));}),_0x1301f8?.['on'](_0x333e0c(0x1be),_0x2dff63),_0x1301f8?.['on'](_0x333e0c(0x221),_0x2dff63),_0x1301f8?.['on'](_0x333e0c(0x1fd),_0x46f466=>{throw _0x46f466;});const _0x43981e=_0x2e3063||_0x2c69c6?new StringDecoder('utf8'):undefined,_0x58e6f7=_0x2e3063||_0x2c69c6?new SaxesParser({'xmlns':![]}):undefined;let _0x55ce5c,_0x19a468=0x0,_0x4921b7=0x0,_0x423ed7,_0x18dfb2,_0x3b4c15=![],_0x13e517=![],_0x2e28b3,_0x56f6d4,_0x26632e,_0x14ca74=![];const _0x1a401c=[],_0x11dfff=new Set();let _0x28970a;const _0x5ed815=(_0x1da7b6,_0x5c6cde=0x0)=>{const _0x24ce63=_0x333e0c;_0x553772+=_0x5c6cde+Math[_0x24ce63(0x1d6)](0x0,_0x1da7b6-_0x4921b7),_0x4921b7=Math[_0x24ce63(0x1d6)](_0x4921b7,_0x1da7b6);if(_0x553772>MAX_ROWS)throw new Error(_0x24ce63(0x19c));};_0x58e6f7?.['on'](_0x333e0c(0x169),_0x16451d=>{const _0x368913=_0x333e0c;if(_0x2c69c6){if(!_0x55ce5c&&_0x16451d[_0x368913(0x1ca)]===_0x368913(0x1e1))_0x55ce5c=new DefinedNameXform();_0x55ce5c?.[_0x368913(0x16e)](_0x16451d);return;}if(_0x16451d['name']===_0x368913(0x1b3)){if(_0x13e517)throw new Error('Invalid\x20worksheet\x20nested\x20row.');_0x19bd7a(_0x16451d[_0x368913(0x193)]['r'],MAX_XML_ROWS),_0x423ed7=undefined,_0x26632e=undefined,_0x14ca74=![];}else{if(_0x16451d['name']==='c'){if(_0x13e517)throw new Error(_0x368913(0x1c6));_0x13e517=!![],_0x3b4c15=Boolean(Number[_0x368913(0x250)](_0x16451d[_0x368913(0x193)]['s']??'',0xa)),_0x28970a=undefined,_0x2e28b3=_0x16451d[_0x368913(0x193)]['r']||undefined,_0x56f6d4=_0x2e28b3?_0x59060b(_0x2e28b3):undefined;if(_0x56f6d4)_0x18dfb2=_0x56f6d4;else _0x18dfb2=_0x423ed7?{'row':_0x423ed7['row'],'col':_0x423ed7[_0x368913(0x16f)]+0x1}:undefined;}else{if(_0x13e517&&['f','v','t'][_0x368913(0x1e9)](_0x16451d['name'])){_0x28970a=_0x16451d[_0x368913(0x1ca)];if(_0x16451d['name']==='f'&&_0x16451d[_0x368913(0x193)]['t'])_0x3b4c15=!![];}else{if(_0x13e517&&_0x16451d[_0x368913(0x1ca)]==='r')_0x3b4c15=!![];else{if(_0x16451d['name']===_0x368913(0x235)){const _0x458b56=_0x16451d['attributes']['ref'];if(!_0x458b56)throw new Error(_0x368913(0x258));const _0x1aa042=_0x458b56[_0x368913(0x228)](':');if(_0x1aa042[_0x368913(0x185)]>0x2)throw new Error(_0x368913(0x258));const _0x29f3d2=_0x59060b(_0x1aa042[0x0]),_0x3db120=_0x59060b(_0x1aa042[0x1]??_0x1aa042[0x0]);_0x11dfff[_0x368913(0x1d5)](_0x458b56),_0x5ed815(Math['max'](_0x29f3d2['col'],_0x3db120[_0x368913(0x16f)]),0x1);}else{if(_0x16451d[_0x368913(0x1ca)]==='col'){const _0x513251=_0x19bd7a(_0x16451d['attributes']['min'],0x4000),_0x407737=_0x19bd7a(_0x16451d[_0x368913(0x193)][_0x368913(0x1d6)],0x4000);if(_0x513251>_0x407737)throw new Error('Invalid\x20worksheet\x20column\x20range.');_0x5ed815(_0x407737,0x1);}else{if(_0x16451d[_0x368913(0x1ca)]===_0x368913(0x252)){const _0x180be7=_0x16451d[_0x368913(0x193)][_0x368913(0x246)];if(!_0x180be7)throw new Error(_0x368913(0x224));const _0x145d85=_0x180be7[_0x368913(0x228)](':');if(_0x145d85[_0x368913(0x185)]>0x2)throw new Error(_0x368913(0x224));const _0x378bb2=_0x59060b(_0x145d85[0x0]),_0x539359=_0x59060b(_0x145d85[0x1]??_0x145d85[0x0]);_0x5ed815(Math[_0x368913(0x1d6)](_0x378bb2[_0x368913(0x16f)],_0x539359[_0x368913(0x16f)]));const _0x11b57a=(Math['abs'](_0x539359[_0x368913(0x1b3)]-_0x378bb2[_0x368913(0x1b3)])+0x1)*(Math[_0x368913(0x22e)](_0x539359[_0x368913(0x16f)]-_0x378bb2[_0x368913(0x16f)])+0x1);_0x3d4ea2+=_0x11b57a+_0x19a468++;if(_0x3d4ea2>MAX_ROWS)throw new Error(_0x368913(0x1e2));}}}}}}}}),_0x58e6f7?.['on'](_0x333e0c(0x1be),_0x50cd27=>{if(_0x2c69c6){_0x55ce5c?.['parseText'](_0x50cd27);return;}if(_0x13e517&&_0x28970a&&_0x50cd27)_0x3b4c15=!![];}),_0x58e6f7?.['on']('closetag',_0x14e7ff=>{const _0x54c84b=_0x333e0c;if(_0x2c69c6){_0x55ce5c&&!_0x55ce5c[_0x54c84b(0x183)]()&&(_0x5e519b(_0x55ce5c['model']),_0x55ce5c=undefined);return;}if(_0x14e7ff[_0x54c84b(0x1ca)]==='c'){!_0x3b4c15&&_0x2e28b3&&!_0x26632e&&(_0x26632e={'before':_0x423ed7,'cells':[]});if(_0x26632e){if(++_0x42a5f0>0xf4240)throw new Error(_0x54c84b(0x1ce));_0x26632e['cells'][_0x54c84b(0x17d)]({'reference':_0x2e28b3,'address':_0x56f6d4,'materialized':_0x3b4c15});if(!_0x2e28b3&&_0x3b4c15)_0x14ca74=!![];}if(_0x3b4c15){if(!_0x26632e||_0x2e28b3){if(!_0x18dfb2)throw new Error(_0x54c84b(0x1c5));if(_0x18dfb2[_0x54c84b(0x16f)]>MAX_XML_COLUMNS)throw new Error(_0x54c84b(0x219));_0x5ed815(_0x18dfb2[_0x54c84b(0x16f)]);}_0x423ed7=_0x18dfb2;}_0x13e517=![],_0x18dfb2=undefined,_0x2e28b3=undefined,_0x56f6d4=undefined,_0x28970a=undefined;}else{if(_0x14e7ff['name']===_0x54c84b(0x1b3)){if(_0x26632e&&_0x14ca74)_0x1a401c[_0x54c84b(0x17d)](_0x26632e);_0x26632e=undefined,_0x14ca74=![];}else{if(_0x14e7ff[_0x54c84b(0x1ca)]===_0x28970a)_0x28970a=undefined;}}}),_0x58e6f7?.['on'](_0x333e0c(0x1fd),_0x2b78b9=>{throw new Error('Invalid\x20worksheet\x20XML:\x20'+_0x2b78b9['message']);}),_0x2cf3f5['on'](_0x333e0c(0x1fd),_0x125f12),_0x2cf3f5['on'](_0x333e0c(0x1aa),_0x297b05=>{const _0x2ab459=_0x333e0c;if(_0x3a5215)return;_0x3d2816+=_0x297b05[_0x2ab459(0x185)],_0x1e137d?.['push'](_0x297b05);if(_0x3d2816>MAX_EXPANDED){_0x125f12(new Error('XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.'));return;}try{if(_0x1301f8&&_0x51f264)_0x1301f8[_0x2ab459(0x1d1)](_0x51f264['write'](_0x297b05));if(_0x58e6f7&&_0x43981e)_0x58e6f7[_0x2ab459(0x1d1)](_0x43981e['write'](_0x297b05));}catch(_0x5f2d28){_0x125f12(_0x5f2d28 instanceof Error?_0x5f2d28:new Error(_0x2ab459(0x1ff)));}}),_0x2cf3f5['on'](_0x333e0c(0x214),()=>{const _0x2089a6=_0x333e0c;if(_0x3a5215)return;try{if(_0x1301f8&&_0x51f264)_0x1301f8[_0x2089a6(0x1d1)](_0x51f264[_0x2089a6(0x214)]())[_0x2089a6(0x18f)]();if(_0x58e6f7&&_0x43981e)_0x58e6f7['write'](_0x43981e[_0x2089a6(0x214)]())[_0x2089a6(0x18f)]();for(const _0x3146e0 of _0x1a401c){let _0xa5d060=_0x3146e0[_0x2089a6(0x176)];for(const _0x353bf6 of _0x3146e0[_0x2089a6(0x220)]){if(!_0x353bf6[_0x2089a6(0x211)]&&!(_0x353bf6['reference']&&_0x11dfff[_0x2089a6(0x1d3)](_0x353bf6[_0x2089a6(0x188)])))continue;const _0x3d246c=_0x353bf6['address']??(_0xa5d060?{'row':_0xa5d060[_0x2089a6(0x1b3)],'col':_0xa5d060['col']+0x1}:undefined);if(!_0x3d246c)throw new Error(_0x2089a6(0x1c5));if(_0x3d246c['col']>MAX_XML_COLUMNS)throw new Error(_0x2089a6(0x219));_0x5ed815(_0x3d246c['col']),_0xa5d060=_0x3d246c;}}_0x1a401c[_0x2089a6(0x185)]=0x0,_0x11dfff['clear']();}catch(_0x5178fd){_0x125f12(_0x5178fd instanceof Error?_0x5178fd:new Error(_0x2089a6(0x1ff)));return;}if(_0x1e137d)_0x307cae[_0x2089a6(0x1bc)](_0x3edd80,Buffer[_0x2089a6(0x1ab)](_0x1e137d));_0xe65325=undefined,_0x2c87d0['readEntry']();});});}),_0x2c87d0['on']('end',()=>{const _0x1b7090=_0x13a6f8;if(_0x3a5215)return;if(_0x2c87d0[_0x1b7090(0x18c)]!==_0x5f4440){_0x466290(new Error('ZIP\x20central\x20directory\x20entry\x20count\x20does\x20not\x20match\x20its\x20contents.'));return;}if(!_0x2b59a4['has'](_0x1b7090(0x1ee))||!_0x2b59a4['has']('xl/workbook.xml'))_0x466290(new Error(_0x1b7090(0x223)));else _0x5f4cc4();}),_0x2c87d0[_0x13a6f8(0x215)]();});});}function valueOf(_0x1c6aa9){const _0x5f5a2d=a144_0x1586bd,_0x12d4b1=_0x1c6aa9['value'];if(_0x12d4b1&&typeof _0x12d4b1===_0x5f5a2d(0x172)&&(_0x5f5a2d(0x21f)in _0x12d4b1||_0x5f5a2d(0x237)in _0x12d4b1)){if(!(_0x5f5a2d(0x22f)in _0x12d4b1)||_0x12d4b1[_0x5f5a2d(0x22f)]===undefined)throw new Error('Formula\x20has\x20no\x20cached\x20result.');return _0x12d4b1['result'];}return _0x12d4b1;}function convert(_0x5b8752,_0x1b299a){const _0x5611c3=a144_0x1586bd;if(_0x5b8752===null||_0x5b8752===undefined||_0x5b8752===''){if(_0x1b299a[_0x5611c3(0x1bd)]&&!_0x1b299a[_0x5611c3(0x1d9)])throw new Error(_0x5611c3(0x190));return null;}if(typeof _0x5b8752===_0x5611c3(0x1ef)&&Buffer[_0x5611c3(0x1c0)](_0x5b8752,_0x5611c3(0x23a))>MAX_CELL)throw new Error(_0x5611c3(0x254));switch(_0x1b299a[_0x5611c3(0x259)][_0x5611c3(0x1b9)]()){case _0x5611c3(0x1ef):case _0x5611c3(0x1be):case _0x5611c3(0x1f8):if(typeof _0x5b8752!==_0x5611c3(0x1ef))throw new Error(_0x5611c3(0x1f1));return _0x5b8752;case _0x5611c3(0x231):case _0x5611c3(0x200):case _0x5611c3(0x1b7):if(typeof _0x5b8752!=='number'||!Number[_0x5611c3(0x255)](_0x5b8752)||Math[_0x5611c3(0x22e)](_0x5b8752)>Number[_0x5611c3(0x241)]||_0x1b299a[_0x5611c3(0x259)][_0x5611c3(0x1b9)]()===_0x5611c3(0x1b7)&&!Number[_0x5611c3(0x20a)](_0x5b8752))throw new Error('Expected\x20a\x20finite\x20safe\x20numeric\x20cell.');return _0x5b8752;case _0x5611c3(0x20c):if(typeof _0x5b8752!==_0x5611c3(0x20c))throw new Error(_0x5611c3(0x240));return _0x5b8752;case _0x5611c3(0x248):case _0x5611c3(0x261):if(!(_0x5b8752 instanceof Date)||!Number[_0x5611c3(0x255)](_0x5b8752[_0x5611c3(0x20d)]()))throw new Error(_0x5611c3(0x174));return _0x5b8752[_0x5611c3(0x20d)]();default:throw new Error('Unsupported\x20field\x20type:\x20'+_0x1b299a[_0x5611c3(0x259)]+'.');}}export async function buildExcelManifest(_0xd48954){const _0x527612=a144_0x1586bd,_0x2f6fbe=_0xd48954['headerRow']??0x1;if(!Number[_0x527612(0x20a)](_0x2f6fbe)||_0x2f6fbe<0x1||_0x2f6fbe>MAX_ROWS)throw new Error(_0x527612(0x1d4));if(_0xd48954[_0x527612(0x1f0)]!==undefined&&(!Number[_0x527612(0x20a)](_0xd48954[_0x527612(0x1f0)])||_0xd48954[_0x527612(0x1f0)]<0x1||_0xd48954[_0x527612(0x1f0)]>0x3e8))throw new Error(_0x527612(0x210));if(a144_0x219077[_0x527612(0x184)](_0xd48954[_0x527612(0x243)])['toLowerCase']()!==_0x527612(0x1de))throw new Error(_0x527612(0x194));const _0x40cfa7=await stat(_0xd48954[_0x527612(0x243)]);if(!_0x40cfa7[_0x527612(0x1c9)]()||_0x40cfa7['size']>MAX_FILE)throw new Error(_0x527612(0x1c8));const _0x16fa12=await readFile(_0xd48954[_0x527612(0x243)]);if(_0x16fa12[_0x527612(0x185)]>MAX_FILE)throw new Error(_0x527612(0x207));const _0x18c30e=_0xd48954[_0x527612(0x1cc)][_0x527612(0x186)](_0x348d47=>isImageContainer(_0x348d47[_0x527612(0x259)])&&Object[_0x527612(0x187)](_0xd48954[_0x527612(0x202)])['includes'](_0x348d47[_0x527612(0x25a)]))?new Map():undefined;await checkArchive(_0x16fa12,_0x18c30e);const _0x42190f=new a144_0x3a67e4[(_0x527612(0x1f7))]();await _0x42190f[_0x527612(0x23c)]['load'](_0x16fa12,{'ignoreNodes':[_0x527612(0x201)]});const _0x38757c=_0xd48954[_0x527612(0x17a)];let _0x2ffdcb;if(_0x38757c===undefined)_0x2ffdcb=_0x42190f[_0x527612(0x22c)][0x0];else{if(typeof _0x38757c===_0x527612(0x1ef)&&_0x42190f['worksheets'][_0x527612(0x186)](_0x289386=>_0x289386['name']===_0x38757c))_0x2ffdcb=_0x42190f[_0x527612(0x22c)][_0x527612(0x1bb)](_0x28f9df=>_0x28f9df[_0x527612(0x1ca)]===_0x38757c);else{if(typeof _0x38757c===_0x527612(0x231)||/^\d+$/[_0x527612(0x19e)](_0x38757c)){const _0x44e37f=Number(_0x38757c);if(!Number[_0x527612(0x20a)](_0x44e37f)||_0x44e37f<0x1)throw new Error(_0x527612(0x21d));_0x2ffdcb=_0x42190f[_0x527612(0x22c)][_0x44e37f-0x1];}else _0x2ffdcb=_0x42190f['worksheets']['find'](_0x6e9cac=>_0x6e9cac['name']===_0x38757c);}}if(!_0x2ffdcb)throw new Error(_0x527612(0x1a7));if(_0x2ffdcb['rowCount']>MAX_ROWS||_0x2ffdcb[_0x527612(0x1f4)]>MAX_COLUMNS)throw new Error(_0x527612(0x225));if((_0x2ffdcb[_0x527612(0x1cb)][_0x527612(0x209)]??[])[_0x527612(0x185)])throw new Error(_0x527612(0x249));const _0xa56c8a=new Map();_0x2ffdcb[_0x527612(0x236)](_0x2f6fbe)[_0x527612(0x25e)]((_0x4ee4a5,_0x1b9269)=>{const _0x2a120b=_0x527612,_0xfcdf3e=valueOf(_0x4ee4a5);if(typeof _0xfcdf3e!==_0x2a120b(0x1ef)||!_0xfcdf3e[_0x2a120b(0x24b)]()||Buffer[_0x2a120b(0x1c0)](_0xfcdf3e)>MAX_CELL)throw new Error(_0x2a120b(0x16b));if(_0xa56c8a[_0x2a120b(0x1d3)](_0xfcdf3e))throw new Error(_0x2a120b(0x24d)+_0xfcdf3e+'.');_0xa56c8a[_0x2a120b(0x1bc)](_0xfcdf3e,_0x1b9269);});const _0x3da54e=Object['entries'](_0xd48954[_0x527612(0x202)]);if(!_0x3da54e['length'])throw new Error(_0x527612(0x218));const _0x32b759=new Map(_0xd48954[_0x527612(0x1cc)][_0x527612(0x233)](_0x33d20a=>[_0x33d20a[_0x527612(0x25a)],_0x33d20a]));if(_0x32b759[_0x527612(0x1d0)]!==_0xd48954[_0x527612(0x1cc)][_0x527612(0x185)])throw new Error(_0x527612(0x24c));if(_0xd48954[_0x527612(0x1cc)][_0x527612(0x186)](_0x32b86f=>_0x32b86f[_0x527612(0x259)][_0x527612(0x1b9)]()===_0x527612(0x1e0)))throw new Error('Unsupported\x20dataset\x20field\x20type:\x20serial_number.');const _0x2a338b=new Set();for(const [_0x11dc5c,_0x1a6081]of _0x3da54e){const _0x2f94b4=_0x32b759['get'](_0x1a6081);if(!_0xa56c8a['has'](_0x11dc5c))throw new Error(_0x527612(0x21b)+_0x11dc5c+'.');if(!_0x2f94b4||RESERVED[_0x527612(0x1d3)](_0x1a6081)||_0x2f94b4[_0x527612(0x1d9)])throw new Error('Unknown\x20or\x20generated\x20mapping\x20field:\x20'+_0x1a6081+'.');if(_0x2a338b['has'](_0x1a6081))throw new Error(_0x527612(0x24f)+_0x1a6081+'.');if(!TYPES[_0x527612(0x1d3)](_0x2f94b4['type']['toLowerCase']()))throw new Error(_0x527612(0x1f3)+_0x2f94b4[_0x527612(0x259)]+'.');_0x2a338b['add'](_0x1a6081);}for(const _0x4aebe4 of _0xd48954[_0x527612(0x1cc)]){if(_0x4aebe4[_0x527612(0x1bd)]&&!_0x4aebe4['generated']&&!RESERVED[_0x527612(0x1d3)](_0x4aebe4[_0x527612(0x25a)])&&!_0x2a338b[_0x527612(0x1d3)](_0x4aebe4['code']))throw new Error(_0x527612(0x242)+_0x4aebe4[_0x527612(0x25a)]+'.');}const _0x242a70={'fileHash':hash(_0x16fa12),'mappingHash':hash(JSON[_0x527612(0x1fb)]([..._0x3da54e][_0x527612(0x1a5)](([_0x53abfa],[_0x4d5732])=>_0x53abfa['localeCompare'](_0x4d5732)))),'schemaHash':hash(JSON[_0x527612(0x1fb)]([..._0xd48954[_0x527612(0x1cc)]][_0x527612(0x1a5)]((_0x443980,_0x167cfc)=>_0x443980[_0x527612(0x25a)][_0x527612(0x1d7)](_0x167cfc[_0x527612(0x25a)])))),'sheet':_0x2ffdcb[_0x527612(0x1ca)],'rows':[],'emptyRows':[],'errors':[],'warnings':[]},_0xf5e01=_0x3da54e[_0x527612(0x1ac)](([,_0x246f18])=>isImageContainer(_0x32b759[_0x527612(0x256)](_0x246f18)['type'])),_0x122ae0=_0xf5e01[_0x527612(0x1ac)](([,_0x15ca3b])=>_0x32b759[_0x527612(0x256)](_0x15ca3b)[_0x527612(0x259)]['toLowerCase']()===_0x527612(0x1a8))[_0x527612(0x233)](([,_0x573368])=>_0x573368);if(_0x122ae0['length'])_0x242a70[_0x527612(0x25f)]=_0x122ae0;const _0x1fdcc5=_0x18c30e?resolveWorksheetImages(_0x18c30e,_0x2ffdcb[_0x527612(0x1ca)],new Set(_0xf5e01[_0x527612(0x233)](([_0x4ff6d8])=>_0xa56c8a[_0x527612(0x256)](_0x4ff6d8)))):[],_0x53f5d3=new Map();for(const _0x54b17c of _0x1fdcc5){const _0x45d28d=_0x54b17c[_0x527612(0x1b3)]+':'+_0x54b17c[_0x527612(0x16f)],_0x2bb968=_0x53f5d3[_0x527612(0x256)](_0x45d28d)??[];_0x2bb968['push'](_0x54b17c),_0x53f5d3[_0x527612(0x1bc)](_0x45d28d,_0x2bb968);}const _0x2c430c=new Map();let _0x5bf9db=0x0;_0xf5e01[_0x527612(0x185)]&&(_0x242a70[_0x527612(0x1ec)]=_0xf5e01[_0x527612(0x233)](([,_0x421e31])=>_0x421e31),_0x242a70[_0x527612(0x1b4)]=[],_0x242a70[_0x527612(0x1f5)]=0x1,_0x242a70[_0x527612(0x20b)]=[]);const _0x3ae7cf=Math[_0x527612(0x1d6)](0x0,..._0x1fdcc5[_0x527612(0x233)](_0x19d021=>_0x19d021[_0x527612(0x1b3)]));let _0x57fb70=0x0;const _0x54048c=new Set(_0x3da54e['map'](([_0x3a5b1d])=>_0xa56c8a[_0x527612(0x256)](_0x3a5b1d)));for(let _0x928124=_0x2f6fbe+0x1;_0x928124<=Math[_0x527612(0x1d6)](_0x2ffdcb[_0x527612(0x177)],_0x3ae7cf);_0x928124++){const _0x3b5128=_0x2ffdcb['getRow'](_0x928124);if(_0x3b5128[_0x527612(0x25c)]||_0x1fdcc5['some'](_0x4427cc=>_0x4427cc[_0x527612(0x1b3)]===_0x928124&&_0x4427cc[_0x527612(0x262)]))_0x57fb70++;let _0x57d47c=_0x1fdcc5[_0x527612(0x186)](_0x382edb=>_0x382edb[_0x527612(0x1b3)]===_0x928124);_0x3b5128[_0x527612(0x25e)](_0x3faf64=>{const _0x3f9c59=_0x527612;if(_0x3faf64[_0x3f9c59(0x1e4)]!==null&&_0x3faf64[_0x3f9c59(0x1e4)]!==undefined&&_0x3faf64[_0x3f9c59(0x1e4)]!=='')_0x57d47c=!![];});if(!_0x57d47c){_0x242a70['emptyRows'][_0x527612(0x17d)](_0x928124);continue;}const _0x49a3ab=Object[_0x527612(0x1fa)](null);_0x3b5128[_0x527612(0x25e)]((_0x595037,_0x242f0e)=>{const _0xec9a4c=_0x527612;if(_0x54048c[_0xec9a4c(0x1d3)](_0x242f0e))return;try{const _0x5bcd86=valueOf(_0x595037);if(typeof _0x5bcd86===_0xec9a4c(0x1ef)&&Buffer[_0xec9a4c(0x1c0)](_0x5bcd86,_0xec9a4c(0x23a))>MAX_CELL)throw new Error(_0xec9a4c(0x254));}catch(_0x209c1b){_0x242a70[_0xec9a4c(0x1a3)][_0xec9a4c(0x17d)]({'rowNumber':_0x928124,'field':_0x595037[_0xec9a4c(0x1d8)],'message':_0x209c1b[_0xec9a4c(0x1eb)]});}});for(const [_0x247506,_0x2248d6]of _0x3da54e){try{const _0x58cfbd=_0x3b5128[_0x527612(0x191)](_0xa56c8a[_0x527612(0x256)](_0x247506)),_0x490a63=_0x32b759[_0x527612(0x256)](_0x2248d6);if(!isImageContainer(_0x490a63[_0x527612(0x259)])){_0x49a3ab[_0x2248d6]=convert(valueOf(_0x58cfbd),_0x490a63);continue;}const _0x3893b4=_0x53f5d3[_0x527612(0x256)](_0x928124+':'+_0xa56c8a['get'](_0x247506))??[];if(_0x3893b4[_0x527612(0x186)](_0x4effe3=>_0x4effe3[_0x527612(0x1fd)]))throw Error(_0x3893b4[_0x527612(0x1bb)](_0x4dd930=>_0x4dd930[_0x527612(0x1fd)])['error']);if(_0x58cfbd[_0x527612(0x1e4)]!=null&&_0x58cfbd[_0x527612(0x1e4)]!==''&&!_0x3893b4[_0x527612(0x186)](_0x8d518d=>_0x8d518d[_0x527612(0x173)]))throw Error(_0x527612(0x18d));const _0x31e549=[];for(const _0x58a295 of _0x3893b4)for(const _0x3eac56 of _0x58a295[_0x527612(0x20b)]){const _0x176973=_0x18c30e[_0x527612(0x256)](_0x3eac56);if(!_0x176973)throw Error(_0x527612(0x19b)+_0x3eac56+'.');const _0x526c82=hash(_0x176973),_0xd1f225=_0x2c430c[_0x527612(0x256)](_0x526c82)??validateImageBytes(_0x176973);if(!_0x2c430c[_0x527612(0x1d3)](_0xd1f225[_0x527612(0x1b5)])){_0x5bf9db+=_0xd1f225['size'];if(_0x5bf9db>0x32*0x400*0x400)throw Error(_0x527612(0x1dd));_0x2c430c[_0x527612(0x1bc)](_0xd1f225['contentHash'],_0xd1f225);}_0x31e549[_0x527612(0x17d)](_0xd1f225['contentHash']);}if(!_0x31e549[_0x527612(0x185)]&&_0x490a63[_0x527612(0x1bd)])throw Error(_0x527612(0x247));if(_0x31e549[_0x527612(0x185)])_0x242a70[_0x527612(0x1b4)]['push']({'rowNumber':_0x928124,'field':_0x2248d6,'hashes':_0x31e549});_0x49a3ab[_0x2248d6]=_0x31e549['map'](_0x45f994=>{const _0x5b5c76=_0x527612,_0xa7346=_0x2c430c[_0x5b5c76(0x256)](_0x45f994),_0x402a6d=_0xa7346[_0x5b5c76(0x259)]==='image/jpeg'?_0x5b5c76(0x208):_0xa7346[_0x5b5c76(0x259)][_0x5b5c76(0x22a)](0x6),_0x261600=_0x45f994+'.'+_0x402a6d,_0x5d1cac=_0x5b5c76(0x1c2)+'0'['repeat'](0x40)+'/'+_0x261600;return _0x490a63['type'][_0x5b5c76(0x1b9)]()===_0x5b5c76(0x1a8)?{'fileName':_0x261600,'filePath':_0x5d1cac}:{'key':_0x5d1cac,'name':_0x261600,'type':_0xa7346[_0x5b5c76(0x259)],'size':_0xa7346[_0x5b5c76(0x1d0)]};});}catch(_0x5f09d9){_0x242a70[_0x527612(0x1a3)][_0x527612(0x17d)]({'rowNumber':_0x928124,'field':_0x2248d6,'message':_0x5f09d9[_0x527612(0x1eb)]});}}_0x242a70[_0x527612(0x239)][_0x527612(0x17d)]({'rowNumber':_0x928124,'values':_0x49a3ab});}if(_0x242a70[_0x527612(0x20b)])_0x242a70[_0x527612(0x20b)]=[..._0x2c430c[_0x527612(0x187)]()];if(_0x57fb70)_0x242a70[_0x527612(0x1e5)][_0x527612(0x17d)](_0x57fb70+_0x527612(0x1ae));return _0x242a70;}
|
|
1
|
+
const a144_0x4d4b9d=a144_0xdfc0;function a144_0xdfc0(_0x4367f7,_0x3495d8){_0x4367f7=_0x4367f7-0x121;const _0x338380=a144_0x3383();let _0xdfc021=_0x338380[_0x4367f7];return _0xdfc021;}(function(_0x499563,_0x5bd5db){const _0x400522=a144_0xdfc0,_0x279a95=_0x499563();while(!![]){try{const _0x433827=-parseInt(_0x400522(0x19e))/0x1*(parseInt(_0x400522(0x19f))/0x2)+parseInt(_0x400522(0x19c))/0x3+parseInt(_0x400522(0x175))/0x4*(parseInt(_0x400522(0x171))/0x5)+parseInt(_0x400522(0x187))/0x6*(parseInt(_0x400522(0x12e))/0x7)+-parseInt(_0x400522(0x1c3))/0x8+parseInt(_0x400522(0x205))/0x9+-parseInt(_0x400522(0x1d5))/0xa*(-parseInt(_0x400522(0x191))/0xb);if(_0x433827===_0x5bd5db)break;else _0x279a95['push'](_0x279a95['shift']());}catch(_0x3677d8){_0x279a95['push'](_0x279a95['shift']());}}}(a144_0x3383,0x95ffb));import{readFile,stat}from'node:fs/promises';import{createHash}from'node:crypto';import a144_0x45e51a from'node:path';import{StringDecoder}from'node:string_decoder';import{createRequire}from'node:module';import{SaxesParser}from'saxes';import a144_0x13936f from'exceljs';import a144_0x3de66d from'yauzl';import{resolveWorksheetImages}from'./image-ooxml.js';import{validateImageBytes}from'./image-bytes.js';const MAX_FILE=0x14*0x400*0x400,MAX_EXPANDED=0x64*0x400*0x400,MAX_ROWS=0x186a0,MAX_COLUMNS=0x100,MAX_XML_ROWS=0x100000,MAX_XML_COLUMNS=0x4000,MAX_CELL=0x40*0x400,RESERVED=new Set(['id',a144_0x4d4b9d(0x1cb),a144_0x4d4b9d(0x1fe),a144_0x4d4b9d(0x16e),a144_0x4d4b9d(0x1de),a144_0x4d4b9d(0x1a5),a144_0x4d4b9d(0x180),a144_0x4d4b9d(0x14e),a144_0x4d4b9d(0x173),a144_0x4d4b9d(0x12f),a144_0x4d4b9d(0x1b1)]),TYPES=new Set([a144_0x4d4b9d(0x12a),a144_0x4d4b9d(0x1a3),'textarea',a144_0x4d4b9d(0x174),a144_0x4d4b9d(0x1f4),'integer',a144_0x4d4b9d(0x139),a144_0x4d4b9d(0x20c),'datetime',a144_0x4d4b9d(0x1cf),a144_0x4d4b9d(0x163)]),isImageContainer=_0x50f9f7=>[a144_0x4d4b9d(0x1cf),'upload'][a144_0x4d4b9d(0x15c)](_0x50f9f7[a144_0x4d4b9d(0x1d3)]()),hash=_0x22f1e8=>createHash(a144_0x4d4b9d(0x135))[a144_0x4d4b9d(0x13b)](_0x22f1e8)[a144_0x4d4b9d(0x13c)](a144_0x4d4b9d(0x1f1)),require=createRequire(import.meta.url),DefinedNameXform=require(a144_0x4d4b9d(0x151)),nameCoordinates=require(a144_0x4d4b9d(0x1dd)),ABSOLUTE_NAME_RANGE=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/,excelRequire=createRequire(require[a144_0x4d4b9d(0x17e)]('exceljs')),zipRequire=createRequire(excelRequire[a144_0x4d4b9d(0x17e)](a144_0x4d4b9d(0x1df))),ZipEntry=zipRequire(a144_0x4d4b9d(0x1b5)),zipReader=zipRequire(a144_0x4d4b9d(0x15f)),zipUtf8=zipRequire(a144_0x4d4b9d(0x169)),zipPaths=zipRequire(a144_0x4d4b9d(0x136));function a144_0x3383(){const _0x230a1c=['relativeOffsetOfLocalHeader','date','mergeCell','image/jpeg','has','abs','get','type','exec','Only\x20.xlsx\x20files\x20are\x20supported.','openReadStream','Invalid\x20worksheet\x20nested\x20row.','Worksheet\x20column\x20objects\x20exceed\x20100000.','XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.','rowCount','value','XLSX\x20file\x20must\x20be\x20a\x20regular\x20file\x20no\x20larger\x20than\x2020\x20MB.','string','isInteger','clear','right','1777643ZmObfw','updateTime','decodeEx','file','set','_xlnm.Print_Titles','readEntry','sha256','./utils','Image\x20cell\x20contains\x20scalar\x20or\x20mixed\x20content.','Invalid\x20dataset\x20field\x20extension\x20metadata.','boolean','every','update','digest','push','length','worksheets','unixPermissions','attributes','Invalid\x20worksheet\x20merge\x20reference.','.xlsx','materialized','contentHash','hyperlink','File\x20is\x20not\x20an\x20XLSX\x20workbook.','Invalid\x20worksheet\x20column\x20range.','source','sort','Invalid\x20worksheet\x20cell\x20without\x20an\x20initial\x20reference.','errors','Worksheet\x20exceeds\x20100000\x20rows\x20or\x20256\x20columns.','modifierName','map','dataset','exceljs/lib/xlsx/xform/book/defined-name-xform.js','warnings','Worksheet\x20deferred\x20cell\x20events\x20exceed\x201000000.','datetime','Worksheet\x20coordinate\x20exceeds\x20','doctype','bitFlag','Worksheet\x20exceeds\x2016384\x20columns.','media','doType','Headers\x20must\x20be\x20non-empty\x20text\x20cells\x20no\x20larger\x20than\x2064\x20KB.','includes','Invalid\x20worksheet\x20hyperlink\x20reference.','Unknown\x20Excel\x20header:\x20','./reader/readerFor','filter','[Content_Types].xml','split','upload','generalPurposeBitFlag','parseText','uploadFields','Invalid\x20worksheet\x20coordinate.','headerRow\x20must\x20be\x20between\x201\x20and\x20100000.','./utf8','before','Invalid\x20worksheet\x20XML.','Invalid\x20defined\x20name\x20coordinate.','Duplicate\x20workbook\x20ZIP\x20entry.','datasetId','Invalid\x20worksheet\x20XML:\x20','fromBuffer','61850SUWprb','readUInt32LE','createTime','number','152mYlFVL','close','XLSX\x20file\x20exceeds\x2020\x20MB.','opentag','extraFieldsLength','slice','jpg','isSafeInteger','readEntryCursor','resolve','ZIP\x20local\x20and\x20central\x20entry\x20names\x20must\x20match.','modifierId','left','isArray','METADATA','Workbook\x20defined\x20name\x20work\x20exceeds\x20100000.','properties','generated','6jsgLfC','subarray','destroy','entry','size','getTime','model','result','Invalid\x20XLSX\x20archive.','Unique\x20image\x20bytes\x20exceed\x2050\x20MB.','2085303IpeHZA','fileNameStr','reference','Expected\x20an\x20Excel\x20date\x20cell.','bottom','utf8','Expected\x20a\x20text\x20cell.','min','batchSize','serial_number','find','1603389azGxgG','mapping','13348WhCBxU','44xEQrDI','fileCommentRaw','Invalid\x20or\x20duplicate\x20dataset\x20field\x20metadata.','row','text','uncompressedSize','creatorName','compressedSize','Invalid\x20ZIP\x20local\x20file\x20header.','Sheet\x20index\x20must\x20be\x20a\x20positive\x20one-based\x20integer.','Required\x20field\x20is\x20not\x20mapped:\x20','Image\x20XML\x20event\x20budget\x20exceeded.','values','dataset-import/','cells','dataValidations','autoIncrement','processAttributes','deleted','\x20columns.','dir','closetag','./zipEntry','externalFileAttributes','dataType','message','from','entryCount','nativeCell','batchSize\x20must\x20be\x20between\x201\x20and\x201000.','Excel\x20import\x20only\x20supports\x20METADATA\x20datasets.','end','integer','readUInt16LE','eachCell','xl/workbook.xml','9394200SwFvKg','Mapping\x20must\x20contain\x20at\x20least\x20one\x20field.','top','versionMadeBy','formula','col','Worksheet\x20merge\x20work\x20exceeds\x20100000.','MAX_SAFE_INTEGER','tenantCode','XML\x20DTD/entities\x20are\x20not\x20supported.','Formula\x20has\x20no\x20cached\x20result.','Workbook','image','Image\x20XML\x20node\x20budget\x20exceeded.','some','name','toLowerCase','getRow','30yjzpCT','Duplicate\x20header:\x20','Merged\x20cells\x20are\x20not\x20supported.','isFinite','charCodeAt','byteLength','Non-canonical\x20worksheet\x20ZIP\x20entry.','fields','exceljs/lib/utils/col-cache.js','creatorId','jszip','sourceType','sharedFormula','Requested\x20worksheet\x20does\x20not\x20exist.','Duplicate\x20dataset\x20field\x20codes.','Missing\x20image\x20media:\x20','textarea','trim','Unknown\x20or\x20generated\x20mapping\x20field:\x20','handleUTF8','extraFieldRaw','add','test','address','error','Dataset\x20field\x20metadata\x20is\x20missing.','entries','required','hex','Expected\x20a\x20finite\x20safe\x20numeric\x20cell.','imageCells','decimal','extname','original','pop','code','definedName','isBuffer','object','getCell','data','appCode','startsWith','ZIP\x20central\x20directory\x20entry\x20count\x20does\x20not\x20match\x20its\x20contents.','ref','hiddenRow','Unsupported\x20field\x20type:\x20','write','2296215mQdSBX','parserVersion','extraFields','imageFields','stringify','max'];a144_0x3383=function(){return _0x230a1c;};return a144_0x3383();}function centralDirectoryEnd(_0x1e44ac,_0x4fbcdf){const _0x5ccb47=a144_0x4d4b9d,_0x3d1166=()=>new Error('Invalid\x20ZIP\x20central\x20directory\x20layout.'),_0x52ede6=_0x1e44ac['lastIndexOf'](Buffer['from']([0x50,0x4b,0x5,0x6]));if(_0x52ede6<0x0||_0x52ede6+0x16>_0x1e44ac[_0x5ccb47(0x13e)]||_0x52ede6+0x16+_0x1e44ac[_0x5ccb47(0x1c0)](_0x52ede6+0x14)!==_0x1e44ac['length'])throw _0x3d1166();let _0x195b9c=_0x1e44ac['readUInt16LE'](_0x52ede6+0xa),_0x345a41=_0x1e44ac[_0x5ccb47(0x172)](_0x52ede6+0xc),_0x2a911f=_0x1e44ac[_0x5ccb47(0x172)](_0x52ede6+0x10),_0x1cb504=_0x52ede6;const _0x507b07=_0x52ede6-0x14,_0x1cf825=_0x507b07>=0x0&&_0x1e44ac[_0x5ccb47(0x172)](_0x507b07)===0x7064b50,_0x325675=[0x4,0x6,0x8,0xa][_0x5ccb47(0x1d1)](_0x4974ce=>_0x1e44ac[_0x5ccb47(0x1c0)](_0x52ede6+_0x4974ce)===0xffff)||_0x345a41===0xffffffff||_0x2a911f===0xffffffff;if(_0x1cf825!==_0x325675)throw _0x3d1166();if(_0x1cf825){if(_0x1e44ac['lastIndexOf'](Buffer[_0x5ccb47(0x1b9)]([0x50,0x4b,0x6,0x7]))!==_0x507b07)throw _0x3d1166();const _0x4eae6b=_0x52d93d=>{const _0x321031=Number(_0x1e44ac['readBigUInt64LE'](_0x52d93d));if(!Number['isSafeInteger'](_0x321031))throw _0x3d1166();return _0x321031;};_0x1cb504=_0x4eae6b(_0x507b07+0x8);if(_0x1e44ac['readUInt32LE'](_0x507b07+0x4)!==0x0||_0x1e44ac[_0x5ccb47(0x172)](_0x507b07+0x10)!==0x1||_0x1cb504>_0x507b07-0x38||_0x1e44ac[_0x5ccb47(0x172)](_0x1cb504)!==0x6064b50||_0x4eae6b(_0x1cb504+0x4)!==0x2c||_0x1cb504+0x38!==_0x507b07||_0x1e44ac[_0x5ccb47(0x172)](_0x1cb504+0x10)!==0x0||_0x1e44ac[_0x5ccb47(0x172)](_0x1cb504+0x14)!==0x0)throw _0x3d1166();_0x195b9c=_0x4eae6b(_0x1cb504+0x20),_0x345a41=_0x4eae6b(_0x1cb504+0x28),_0x2a911f=_0x4eae6b(_0x1cb504+0x30);if(_0x4eae6b(_0x1cb504+0x18)!==_0x195b9c)throw _0x3d1166();}else{if(_0x1e44ac['readUInt16LE'](_0x52ede6+0x4)!==0x0||_0x1e44ac[_0x5ccb47(0x1c0)](_0x52ede6+0x6)!==0x0||_0x1e44ac[_0x5ccb47(0x1c0)](_0x52ede6+0x8)!==_0x195b9c)throw _0x3d1166();}const _0x47c119=_0x4fbcdf['readEntryCursor'];if(_0x2a911f!==_0x47c119||_0x195b9c!==_0x4fbcdf[_0x5ccb47(0x1ba)]||_0x2a911f+_0x345a41!==_0x1cb504)throw _0x3d1166();return _0x1cb504;}function consumerEntryName(_0x7282ce,_0x515171){const _0x47de46=a144_0x4d4b9d;if(_0x515171[_0x47de46(0x207)][_0x47de46(0x160)](_0x1d2a06=>_0x1d2a06['id']===0x1)[_0x47de46(0x13e)]>0x1)throw new Error('Duplicate\x20ZIP64\x20extended\x20information\x20fields\x20are\x20not\x20supported.');const _0x468f97=_0x515171,_0x982878=_0x515171[_0x47de46(0x20b)];if(!Buffer[_0x47de46(0x1fa)](_0x468f97['fileNameRaw'])||!Buffer[_0x47de46(0x1fa)](_0x468f97[_0x47de46(0x1e9)])||!Buffer[_0x47de46(0x1fa)](_0x468f97['fileCommentRaw'])||!Number[_0x47de46(0x17c)](_0x982878)||_0x982878<0x0||_0x982878>_0x7282ce[_0x47de46(0x13e)]-0x1e||_0x7282ce['readUInt32LE'](_0x982878)!==0x4034b50)throw new Error(_0x47de46(0x1a7));const _0x54017b=_0x982878+0x1e+_0x7282ce[_0x47de46(0x1c0)](_0x982878+0x1a),_0x47925b=_0x54017b+_0x7282ce[_0x47de46(0x1c0)](_0x982878+0x1c)+_0x515171[_0x47de46(0x1a6)];if(!Number[_0x47de46(0x17c)](_0x47925b)||_0x47925b>_0x7282ce[_0x47de46(0x13e)])throw new Error(_0x47de46(0x1a7));if(_0x54017b>_0x7282ce[_0x47de46(0x13e)]||!_0x7282ce[_0x47de46(0x188)](_0x982878+0x1e,_0x54017b)['equals'](_0x468f97['fileNameRaw']))throw new Error(_0x47de46(0x17f));const _0x5c2150=new ZipEntry({},{'decodeFileName':zipUtf8['utf8decode']});_0x5c2150[_0x47de46(0x157)]=_0x515171[_0x47de46(0x164)],_0x5c2150['fileName']=_0x468f97['fileNameRaw'],_0x5c2150['fileComment']=_0x468f97[_0x47de46(0x1a0)],_0x5c2150[_0x47de46(0x179)]=_0x468f97['extraFieldRaw'][_0x47de46(0x13e)],_0x5c2150['readExtraFields'](zipReader(_0x468f97['extraFieldRaw'])),_0x5c2150[_0x47de46(0x1e8)](),_0x5c2150[_0x47de46(0x1c6)]=_0x515171['versionMadeBy'],_0x5c2150['externalFileAttributes']=_0x515171[_0x47de46(0x1b6)],_0x5c2150[_0x47de46(0x1b0)]();const _0x44919f=_0x5c2150[_0x47de46(0x1b3)]||Boolean((_0x5c2150[_0x47de46(0x140)]??0x0)&0x4000),_0x5a1787=zipPaths[_0x47de46(0x17e)](_0x5c2150[_0x47de46(0x192)]),_0x1387ed=_0x5a1787[_0x47de46(0x1ff)]('/')?_0x5a1787['slice'](0x1):_0x5a1787;return{'name':_0x1387ed,'original':_0x5c2150[_0x47de46(0x192)],'directory':_0x44919f};}export function normalizeImportFields(_0x2deb79){const _0x21d6f3=a144_0x4d4b9d;if(!_0x2deb79||(_0x2deb79[_0x21d6f3(0x149)]??_0x2deb79[_0x21d6f3(0x150)]?.[_0x21d6f3(0x1e0)])!==_0x21d6f3(0x183))throw new Error(_0x21d6f3(0x1bd));const _0x2f16ce=Array['isArray'](_0x2deb79[_0x21d6f3(0x1dc)]),_0x1d5014=_0x2f16ce?_0x2deb79[_0x21d6f3(0x1dc)]:_0x2deb79[_0x21d6f3(0x185)];if(!Array['isArray'](_0x1d5014)||_0x1d5014[_0x21d6f3(0x13e)]===0x0)throw new Error(_0x21d6f3(0x1ee));const _0x2037b6=[],_0x4522af=new Set();for(const _0x2f318b of _0x1d5014){if(_0x2f318b[_0x21d6f3(0x1b1)]===!![])continue;let _0x3ad290=_0x2f318b['extend']??{};if(!_0x2f16ce&&typeof _0x3ad290===_0x21d6f3(0x12a)){try{_0x3ad290=JSON['parse'](_0x3ad290);}catch{throw new Error('Invalid\x20dataset\x20field\x20extension\x20metadata.');}if(!_0x3ad290||typeof _0x3ad290!==_0x21d6f3(0x1fb)||Array[_0x21d6f3(0x182)](_0x3ad290))throw new Error(_0x21d6f3(0x138));}const _0x262fb0=_0x2f16ce?_0x2f318b[_0x21d6f3(0x1d2)]:_0x2f318b[_0x21d6f3(0x1f8)],_0x2602e5=_0x2f16ce?_0x2f318b[_0x21d6f3(0x15a)]:_0x2f318b['type']??_0x2f318b[_0x21d6f3(0x1b7)];if(typeof _0x262fb0!==_0x21d6f3(0x12a)||!_0x262fb0||typeof _0x2602e5!==_0x21d6f3(0x12a)||_0x4522af[_0x21d6f3(0x20f)](_0x262fb0))throw new Error(_0x21d6f3(0x1a1));if(_0x2602e5[_0x21d6f3(0x1d3)]()===_0x21d6f3(0x19a))throw new Error('Unsupported\x20dataset\x20field\x20type:\x20serial_number.');_0x4522af[_0x21d6f3(0x1ea)](_0x262fb0);const _0x39fb51=_0x2f16ce?_0x2f318b:_0x3ad290,_0x336e32={'code':_0x262fb0,'type':_0x2602e5,'required':_0x39fb51[_0x21d6f3(0x1f0)]===!![]};if(RESERVED[_0x21d6f3(0x20f)](_0x262fb0)||_0x39fb51[_0x21d6f3(0x186)]===!![]||_0x39fb51[_0x21d6f3(0x1af)]===!![])_0x336e32[_0x21d6f3(0x186)]=!![];_0x2037b6[_0x21d6f3(0x13d)](_0x336e32);}return _0x2037b6;}async function checkArchive(_0x31efcd,_0x59f974){await new Promise((_0x160419,_0xbaaf4e)=>{const _0x1ae32e=a144_0xdfc0;a144_0x3de66d[_0x1ae32e(0x170)](_0x31efcd,{'lazyEntries':!![],'validateEntrySizes':!![]},(_0x46dd83,_0x5631f2)=>{const _0x42a982=_0x1ae32e;if(_0x46dd83||!_0x5631f2){_0xbaaf4e(_0x46dd83??new Error(_0x42a982(0x18f)));return;}let _0x1edbfe;try{_0x1edbfe=centralDirectoryEnd(_0x31efcd,_0x5631f2);}catch(_0x5d1a32){_0x5631f2[_0x42a982(0x176)](),_0xbaaf4e(_0x5d1a32);return;}let _0xf0a5a5=0x0,_0x503941=0x0,_0x152acd=0x0,_0x3861aa=0x0,_0x209e61=0x0,_0x1ffe6b=0x0,_0x504314=0x0,_0x1a2bd4=0x0,_0xfd8f82=0x0,_0xd20503=![],_0x38d108;const _0x2329e2=new Set(),_0x39441f=_0x410224=>{const _0xdd534c=_0x42a982;if(_0xd20503)return;_0xd20503=!![],_0x38d108?.[_0xdd534c(0x189)](),_0x5631f2[_0xdd534c(0x176)](),_0xbaaf4e(_0x410224);},_0x419546=(_0x141e03,_0x55b5fd)=>{const _0x3f4701=_0x42a982;if(!_0x141e03||!/^\d+$/[_0x3f4701(0x1eb)](_0x141e03))throw new Error(_0x3f4701(0x167));const _0x3ad462=Number(_0x141e03);if(!Number['isSafeInteger'](_0x3ad462)||_0x3ad462<0x1||_0x3ad462>_0x55b5fd)throw new Error(_0x3f4701(0x155)+_0x55b5fd+'.');return _0x3ad462;},_0x351094=(_0x4e42ff,_0x3de4b7=MAX_XML_COLUMNS)=>{const _0x220ae3=_0x42a982,_0x27e304=/^\$?([A-Z]{1,3})\$?(\d+)$/[_0x220ae3(0x121)](_0x4e42ff);if(!_0x27e304)throw new Error('Invalid\x20worksheet\x20cell\x20or\x20merge\x20reference.');let _0x2e72bc=0x0;for(const _0x2714a5 of _0x27e304[0x1])_0x2e72bc=_0x2e72bc*0x1a+_0x2714a5[_0x220ae3(0x1d9)](0x0)-0x40;if(_0x2e72bc>_0x3de4b7)throw new Error('Worksheet\x20exceeds\x20'+_0x3de4b7+_0x220ae3(0x1b2));return{'row':_0x419546(_0x27e304[0x2],MAX_XML_ROWS),'col':_0x2e72bc};},_0x2fdf17=_0x5d0176=>{const _0x28f391=_0x42a982;if(_0x5d0176['name']==='_xlnm.Print_Area'||_0x5d0176['name']===_0x28f391(0x133))return;for(const _0x3bd06d of _0x5d0176['ranges']){if(!ABSOLUTE_NAME_RANGE[_0x28f391(0x1eb)](_0x3bd06d[_0x28f391(0x162)]('!')[_0x28f391(0x1f7)]()||''))continue;const _0x468615=nameCoordinates[_0x28f391(0x130)](_0x3bd06d),_0x212dda=_0x28f391(0x1c5)in _0x468615,_0x39ec4c=_0x212dda?[_0x468615[_0x28f391(0x1c5)],_0x468615[_0x28f391(0x195)]]:[_0x468615['row']],_0x340274=_0x212dda?[_0x468615[_0x28f391(0x181)],_0x468615[_0x28f391(0x12d)]]:[_0x468615[_0x28f391(0x1c8)]],_0x2e0e99=(_0x5a6aa8,_0x32525b)=>Number[_0x28f391(0x17c)](_0x5a6aa8)&&_0x5a6aa8>=0x1&&_0x5a6aa8<=_0x32525b;if(!_0x39ec4c[_0x28f391(0x13a)](_0x7a7507=>_0x2e0e99(_0x7a7507,MAX_XML_ROWS))||!_0x340274[_0x28f391(0x13a)](_0x4a1141=>_0x2e0e99(_0x4a1141,MAX_XML_COLUMNS)))throw new Error(_0x28f391(0x16c));_0x504314+=_0x212dda?(_0x468615['bottom']-_0x468615['top']+0x1)*(_0x468615[_0x28f391(0x12d)]-_0x468615['left']+0x1):0x1;if(_0x504314>MAX_ROWS)throw new Error(_0x28f391(0x184));}};_0x5631f2['on'](_0x42a982(0x1ed),_0x39441f),_0x5631f2['on'](_0x42a982(0x18a),_0x315c1b=>{const _0x20b4a0=_0x42a982;if(_0xd20503)return;if(++_0x152acd>0x2710||(_0xf0a5a5+=_0x315c1b[_0x20b4a0(0x1a4)])>MAX_EXPANDED){_0x39441f(new Error(_0x20b4a0(0x126)));return;}let _0x4fe0cc;try{_0x4fe0cc=consumerEntryName(_0x31efcd,_0x315c1b);}catch(_0xe2b5d6){_0x39441f(_0xe2b5d6);return;}if(_0x4fe0cc['directory']){_0x5631f2[_0x20b4a0(0x134)]();return;}const _0x47cac0=_0x4fe0cc[_0x20b4a0(0x1d2)];if(_0x59f974&&(_0x47cac0!==_0x4fe0cc[_0x20b4a0(0x1f6)]||_0x2329e2[_0x20b4a0(0x20f)](_0x47cac0)||_0x47cac0[_0x20b4a0(0x1ff)]('/')||_0x47cac0[_0x20b4a0(0x15c)]('\x5c'))){_0x39441f(new Error('Non-canonical\x20or\x20duplicate\x20image\x20archive\x20entry.'));return;}if(_0x47cac0!==_0x4fe0cc[_0x20b4a0(0x1f6)]&&(_0x47cac0===_0x20b4a0(0x1c2)||/xl\/worksheets\/sheet(\d+)[.]xml/[_0x20b4a0(0x1eb)](_0x47cac0))){_0x39441f(new Error('Non-canonical\x20workbook\x20or\x20worksheet\x20ZIP\x20entry.'));return;}const _0x431b17=_0x47cac0===_0x20b4a0(0x1c2);if(_0x431b17&&_0x2329e2[_0x20b4a0(0x20f)](_0x47cac0)){_0x39441f(new Error(_0x20b4a0(0x16d)));return;}_0x2329e2[_0x20b4a0(0x1ea)](_0x47cac0);const _0x532ae0=/xl\/worksheets\/sheet(\d+)[.]xml/[_0x20b4a0(0x1eb)](_0x47cac0);if(_0x532ae0&&!/^xl\/worksheets\/sheet\d+[.]xml$/['test'](_0x47cac0)){_0x39441f(new Error(_0x20b4a0(0x1db)));return;}_0x5631f2[_0x20b4a0(0x123)](_0x315c1b,(_0x205665,_0x347b13)=>{const _0x41f298=_0x20b4a0;if(_0xd20503){_0x347b13?.[_0x41f298(0x189)]();return;}if(_0x205665||!_0x347b13){_0x39441f(_0x205665??new Error('Invalid\x20XLSX\x20entry.'));return;}_0x38d108=_0x347b13;const _0x1e5562=_0x59f974?[]:undefined,_0x3aac55=_0x59f974&&/[.](xml|rels)$/[_0x41f298(0x1eb)](_0x47cac0)?new StringDecoder(_0x41f298(0x196)):undefined,_0x4d19b3=_0x3aac55?new SaxesParser({'xmlns':![]}):undefined,_0x4e3528=()=>{const _0x1b610e=_0x41f298;if(++_0xfd8f82>0x1e8480)throw Error(_0x1b610e(0x1aa));};_0x4d19b3?.['on'](_0x41f298(0x156),()=>{const _0x514102=_0x41f298;throw Error(_0x514102(0x1cc));}),_0x4d19b3?.['on']('opentag',()=>{const _0x1a442f=_0x41f298;_0x4e3528();if(++_0x1a2bd4>0x7a120)throw Error(_0x1a442f(0x1d0));}),_0x4d19b3?.['on'](_0x41f298(0x1a3),_0x4e3528),_0x4d19b3?.['on'](_0x41f298(0x1b4),_0x4e3528),_0x4d19b3?.['on'](_0x41f298(0x1ed),_0x29124a=>{throw _0x29124a;});const _0x5a64c8=_0x532ae0||_0x431b17?new StringDecoder('utf8'):undefined,_0x191144=_0x532ae0||_0x431b17?new SaxesParser({'xmlns':![]}):undefined;let _0x4bb5ac,_0x102988=0x0,_0x29ab51=0x0,_0x396173,_0x530713,_0x4ff992=![],_0x3404ce=![],_0x5ea57d,_0x472081,_0x207f8e,_0x62d526=![];const _0x264322=[],_0x5f18eb=new Set();let _0x3b86aa;const _0x181661=(_0x1e2936,_0x3a65e1=0x0)=>{const _0x5a0cfb=_0x41f298;_0x209e61+=_0x3a65e1+Math['max'](0x0,_0x1e2936-_0x29ab51),_0x29ab51=Math[_0x5a0cfb(0x20a)](_0x29ab51,_0x1e2936);if(_0x209e61>MAX_ROWS)throw new Error(_0x5a0cfb(0x125));};_0x191144?.['on'](_0x41f298(0x178),_0x4cdb52=>{const _0xbafb4b=_0x41f298;if(_0x431b17){if(!_0x4bb5ac&&_0x4cdb52['name']===_0xbafb4b(0x1f9))_0x4bb5ac=new DefinedNameXform();_0x4bb5ac?.['parseOpen'](_0x4cdb52);return;}if(_0x4cdb52[_0xbafb4b(0x1d2)]===_0xbafb4b(0x1a2)){if(_0x3404ce)throw new Error(_0xbafb4b(0x124));_0x419546(_0x4cdb52[_0xbafb4b(0x141)]['r'],MAX_XML_ROWS),_0x396173=undefined,_0x207f8e=undefined,_0x62d526=![];}else{if(_0x4cdb52[_0xbafb4b(0x1d2)]==='c'){if(_0x3404ce)throw new Error('Invalid\x20worksheet\x20nested\x20cell.');_0x3404ce=!![],_0x4ff992=Boolean(Number['parseInt'](_0x4cdb52[_0xbafb4b(0x141)]['s']??'',0xa)),_0x3b86aa=undefined,_0x5ea57d=_0x4cdb52['attributes']['r']||undefined,_0x472081=_0x5ea57d?_0x351094(_0x5ea57d):undefined;if(_0x472081)_0x530713=_0x472081;else _0x530713=_0x396173?{'row':_0x396173['row'],'col':_0x396173[_0xbafb4b(0x1c8)]+0x1}:undefined;}else{if(_0x3404ce&&['f','v','t'][_0xbafb4b(0x15c)](_0x4cdb52[_0xbafb4b(0x1d2)])){_0x3b86aa=_0x4cdb52['name'];if(_0x4cdb52['name']==='f'&&_0x4cdb52[_0xbafb4b(0x141)]['t'])_0x4ff992=!![];}else{if(_0x3404ce&&_0x4cdb52['name']==='r')_0x4ff992=!![];else{if(_0x4cdb52[_0xbafb4b(0x1d2)]===_0xbafb4b(0x146)){const _0x5a0632=_0x4cdb52[_0xbafb4b(0x141)]['ref'];if(!_0x5a0632)throw new Error(_0xbafb4b(0x15d));const _0xe6d87=_0x5a0632['split'](':');if(_0xe6d87[_0xbafb4b(0x13e)]>0x2)throw new Error(_0xbafb4b(0x15d));const _0xe0f9c1=_0x351094(_0xe6d87[0x0]),_0x4db4a6=_0x351094(_0xe6d87[0x1]??_0xe6d87[0x0]);_0x5f18eb[_0xbafb4b(0x1ea)](_0x5a0632),_0x181661(Math[_0xbafb4b(0x20a)](_0xe0f9c1[_0xbafb4b(0x1c8)],_0x4db4a6['col']),0x1);}else{if(_0x4cdb52[_0xbafb4b(0x1d2)]===_0xbafb4b(0x1c8)){const _0x1df156=_0x419546(_0x4cdb52['attributes'][_0xbafb4b(0x198)],0x4000),_0xca614e=_0x419546(_0x4cdb52[_0xbafb4b(0x141)][_0xbafb4b(0x20a)],0x4000);if(_0x1df156>_0xca614e)throw new Error(_0xbafb4b(0x148));_0x181661(_0xca614e,0x1);}else{if(_0x4cdb52[_0xbafb4b(0x1d2)]===_0xbafb4b(0x20d)){const _0x3119a5=_0x4cdb52['attributes'][_0xbafb4b(0x201)];if(!_0x3119a5)throw new Error(_0xbafb4b(0x142));const _0x4883c6=_0x3119a5['split'](':');if(_0x4883c6[_0xbafb4b(0x13e)]>0x2)throw new Error(_0xbafb4b(0x142));const _0x2d730d=_0x351094(_0x4883c6[0x0]),_0x49fcb8=_0x351094(_0x4883c6[0x1]??_0x4883c6[0x0]);_0x181661(Math['max'](_0x2d730d[_0xbafb4b(0x1c8)],_0x49fcb8[_0xbafb4b(0x1c8)]));const _0x5cc237=(Math[_0xbafb4b(0x210)](_0x49fcb8[_0xbafb4b(0x1a2)]-_0x2d730d[_0xbafb4b(0x1a2)])+0x1)*(Math[_0xbafb4b(0x210)](_0x49fcb8[_0xbafb4b(0x1c8)]-_0x2d730d[_0xbafb4b(0x1c8)])+0x1);_0x3861aa+=_0x5cc237+_0x102988++;if(_0x3861aa>MAX_ROWS)throw new Error(_0xbafb4b(0x1c9));}}}}}}}}),_0x191144?.['on'](_0x41f298(0x1a3),_0x49c6ca=>{const _0x57a6f7=_0x41f298;if(_0x431b17){_0x4bb5ac?.[_0x57a6f7(0x165)](_0x49c6ca);return;}if(_0x3404ce&&_0x3b86aa&&_0x49c6ca)_0x4ff992=!![];}),_0x191144?.['on'](_0x41f298(0x1b4),_0x362b29=>{const _0x3f11e3=_0x41f298;if(_0x431b17){_0x4bb5ac&&!_0x4bb5ac['parseClose']()&&(_0x2fdf17(_0x4bb5ac[_0x3f11e3(0x18d)]),_0x4bb5ac=undefined);return;}if(_0x362b29[_0x3f11e3(0x1d2)]==='c'){!_0x4ff992&&_0x5ea57d&&!_0x207f8e&&(_0x207f8e={'before':_0x396173,'cells':[]});if(_0x207f8e){if(++_0x1ffe6b>0xf4240)throw new Error(_0x3f11e3(0x153));_0x207f8e['cells'][_0x3f11e3(0x13d)]({'reference':_0x5ea57d,'address':_0x472081,'materialized':_0x4ff992});if(!_0x5ea57d&&_0x4ff992)_0x62d526=!![];}if(_0x4ff992){if(!_0x207f8e||_0x5ea57d){if(!_0x530713)throw new Error(_0x3f11e3(0x14b));if(_0x530713['col']>MAX_XML_COLUMNS)throw new Error(_0x3f11e3(0x158));_0x181661(_0x530713[_0x3f11e3(0x1c8)]);}_0x396173=_0x530713;}_0x3404ce=![],_0x530713=undefined,_0x5ea57d=undefined,_0x472081=undefined,_0x3b86aa=undefined;}else{if(_0x362b29[_0x3f11e3(0x1d2)]===_0x3f11e3(0x1a2)){if(_0x207f8e&&_0x62d526)_0x264322['push'](_0x207f8e);_0x207f8e=undefined,_0x62d526=![];}else{if(_0x362b29[_0x3f11e3(0x1d2)]===_0x3b86aa)_0x3b86aa=undefined;}}}),_0x191144?.['on'](_0x41f298(0x1ed),_0x18c6f9=>{const _0x5142a6=_0x41f298;throw new Error(_0x5142a6(0x16f)+_0x18c6f9['message']);}),_0x347b13['on'](_0x41f298(0x1ed),_0x39441f),_0x347b13['on'](_0x41f298(0x1fd),_0x4be59b=>{const _0x151dc8=_0x41f298;if(_0xd20503)return;_0x503941+=_0x4be59b[_0x151dc8(0x13e)],_0x1e5562?.[_0x151dc8(0x13d)](_0x4be59b);if(_0x503941>MAX_EXPANDED){_0x39441f(new Error(_0x151dc8(0x126)));return;}try{if(_0x4d19b3&&_0x3aac55)_0x4d19b3['write'](_0x3aac55[_0x151dc8(0x204)](_0x4be59b));if(_0x191144&&_0x5a64c8)_0x191144[_0x151dc8(0x204)](_0x5a64c8[_0x151dc8(0x204)](_0x4be59b));}catch(_0x21ba3d){_0x39441f(_0x21ba3d instanceof Error?_0x21ba3d:new Error(_0x151dc8(0x16b)));}}),_0x347b13['on'](_0x41f298(0x1be),()=>{const _0x34847a=_0x41f298;if(_0xd20503)return;try{if(_0x4d19b3&&_0x3aac55)_0x4d19b3['write'](_0x3aac55[_0x34847a(0x1be)]())['close']();if(_0x191144&&_0x5a64c8)_0x191144['write'](_0x5a64c8['end']())[_0x34847a(0x176)]();for(const _0x1f6127 of _0x264322){let _0x2fcb01=_0x1f6127[_0x34847a(0x16a)];for(const _0x43a50c of _0x1f6127[_0x34847a(0x1ad)]){if(!_0x43a50c[_0x34847a(0x144)]&&!(_0x43a50c[_0x34847a(0x193)]&&_0x5f18eb['has'](_0x43a50c[_0x34847a(0x193)])))continue;const _0x416c68=_0x43a50c[_0x34847a(0x1ec)]??(_0x2fcb01?{'row':_0x2fcb01[_0x34847a(0x1a2)],'col':_0x2fcb01[_0x34847a(0x1c8)]+0x1}:undefined);if(!_0x416c68)throw new Error('Invalid\x20worksheet\x20cell\x20without\x20an\x20initial\x20reference.');if(_0x416c68[_0x34847a(0x1c8)]>MAX_XML_COLUMNS)throw new Error(_0x34847a(0x158));_0x181661(_0x416c68[_0x34847a(0x1c8)]),_0x2fcb01=_0x416c68;}}_0x264322[_0x34847a(0x13e)]=0x0,_0x5f18eb[_0x34847a(0x12c)]();}catch(_0x4b0852){_0x39441f(_0x4b0852 instanceof Error?_0x4b0852:new Error(_0x34847a(0x16b)));return;}if(_0x1e5562)_0x59f974[_0x34847a(0x132)](_0x47cac0,Buffer['concat'](_0x1e5562));_0x38d108=undefined,_0x5631f2[_0x34847a(0x134)]();});});}),_0x5631f2['on'](_0x42a982(0x1be),()=>{const _0x2bf323=_0x42a982;if(_0xd20503)return;if(_0x5631f2[_0x2bf323(0x17d)]!==_0x1edbfe){_0xbaaf4e(new Error(_0x2bf323(0x200)));return;}if(!_0x2329e2[_0x2bf323(0x20f)](_0x2bf323(0x161))||!_0x2329e2[_0x2bf323(0x20f)](_0x2bf323(0x1c2)))_0xbaaf4e(new Error(_0x2bf323(0x147)));else _0x160419();}),_0x5631f2[_0x42a982(0x134)]();});});}function valueOf(_0x5d8bc2){const _0x5b680b=a144_0x4d4b9d,_0x221ea2=_0x5d8bc2[_0x5b680b(0x128)];if(_0x221ea2&&typeof _0x221ea2==='object'&&(_0x5b680b(0x1c7)in _0x221ea2||_0x5b680b(0x1e1)in _0x221ea2)){if(!(_0x5b680b(0x18e)in _0x221ea2)||_0x221ea2[_0x5b680b(0x18e)]===undefined)throw new Error(_0x5b680b(0x1cd));return _0x221ea2[_0x5b680b(0x18e)];}return _0x221ea2;}function convert(_0x39b493,_0x468bda){const _0x510d1a=a144_0x4d4b9d;if(_0x39b493===null||_0x39b493===undefined||_0x39b493===''){if(_0x468bda[_0x510d1a(0x1f0)]&&!_0x468bda[_0x510d1a(0x186)])throw new Error('Required\x20value\x20is\x20missing.');return null;}if(typeof _0x39b493===_0x510d1a(0x12a)&&Buffer['byteLength'](_0x39b493,'utf8')>MAX_CELL)throw new Error('Cell\x20exceeds\x2064\x20KB.');switch(_0x468bda['type'][_0x510d1a(0x1d3)]()){case'string':case _0x510d1a(0x1a3):case _0x510d1a(0x1e5):if(typeof _0x39b493!=='string')throw new Error(_0x510d1a(0x197));return _0x39b493;case _0x510d1a(0x174):case'decimal':case _0x510d1a(0x1bf):if(typeof _0x39b493!==_0x510d1a(0x174)||!Number['isFinite'](_0x39b493)||Math[_0x510d1a(0x210)](_0x39b493)>Number[_0x510d1a(0x1ca)]||_0x468bda['type'][_0x510d1a(0x1d3)]()==='integer'&&!Number[_0x510d1a(0x12b)](_0x39b493))throw new Error(_0x510d1a(0x1f2));return _0x39b493;case'boolean':if(typeof _0x39b493!==_0x510d1a(0x139))throw new Error('Expected\x20a\x20boolean\x20cell.');return _0x39b493;case _0x510d1a(0x20c):case _0x510d1a(0x154):if(!(_0x39b493 instanceof Date)||!Number[_0x510d1a(0x1d8)](_0x39b493[_0x510d1a(0x18c)]()))throw new Error(_0x510d1a(0x194));return _0x39b493[_0x510d1a(0x18c)]();default:throw new Error('Unsupported\x20field\x20type:\x20'+_0x468bda[_0x510d1a(0x212)]+'.');}}export async function buildExcelManifest(_0x5788bb){const _0x595e9b=a144_0x4d4b9d,_0x1502a3=_0x5788bb['headerRow']??0x1;if(!Number[_0x595e9b(0x12b)](_0x1502a3)||_0x1502a3<0x1||_0x1502a3>MAX_ROWS)throw new Error(_0x595e9b(0x168));if(_0x5788bb[_0x595e9b(0x199)]!==undefined&&(!Number[_0x595e9b(0x12b)](_0x5788bb[_0x595e9b(0x199)])||_0x5788bb[_0x595e9b(0x199)]<0x1||_0x5788bb[_0x595e9b(0x199)]>0x3e8))throw new Error(_0x595e9b(0x1bc));if(a144_0x45e51a[_0x595e9b(0x1f5)](_0x5788bb[_0x595e9b(0x131)])[_0x595e9b(0x1d3)]()!==_0x595e9b(0x143))throw new Error(_0x595e9b(0x122));const _0x5b4b65=await stat(_0x5788bb[_0x595e9b(0x131)]);if(!_0x5b4b65['isFile']()||_0x5b4b65[_0x595e9b(0x18b)]>MAX_FILE)throw new Error(_0x595e9b(0x129));const _0x2abfdf=await readFile(_0x5788bb[_0x595e9b(0x131)]);if(_0x2abfdf[_0x595e9b(0x13e)]>MAX_FILE)throw new Error(_0x595e9b(0x177));const _0x40033d=_0x5788bb[_0x595e9b(0x1dc)][_0x595e9b(0x1d1)](_0x282988=>isImageContainer(_0x282988[_0x595e9b(0x212)])&&Object['values'](_0x5788bb[_0x595e9b(0x19d)])['includes'](_0x282988[_0x595e9b(0x1f8)]))?new Map():undefined;await checkArchive(_0x2abfdf,_0x40033d);const _0x20ddc1=new a144_0x13936f[(_0x595e9b(0x1ce))]();await _0x20ddc1['xlsx']['load'](_0x2abfdf,{'ignoreNodes':[_0x595e9b(0x1ae)]});const _0x1ea41a=_0x5788bb['sheet'];let _0xc8a34;if(_0x1ea41a===undefined)_0xc8a34=_0x20ddc1[_0x595e9b(0x13f)][0x0];else{if(typeof _0x1ea41a===_0x595e9b(0x12a)&&_0x20ddc1[_0x595e9b(0x13f)]['some'](_0xe80e3=>_0xe80e3[_0x595e9b(0x1d2)]===_0x1ea41a))_0xc8a34=_0x20ddc1['worksheets']['find'](_0x4191db=>_0x4191db['name']===_0x1ea41a);else{if(typeof _0x1ea41a===_0x595e9b(0x174)||/^\d+$/[_0x595e9b(0x1eb)](_0x1ea41a)){const _0xf2adee=Number(_0x1ea41a);if(!Number[_0x595e9b(0x12b)](_0xf2adee)||_0xf2adee<0x1)throw new Error(_0x595e9b(0x1a8));_0xc8a34=_0x20ddc1[_0x595e9b(0x13f)][_0xf2adee-0x1];}else _0xc8a34=_0x20ddc1['worksheets'][_0x595e9b(0x19b)](_0x4da5fb=>_0x4da5fb[_0x595e9b(0x1d2)]===_0x1ea41a);}}if(!_0xc8a34)throw new Error(_0x595e9b(0x1e2));if(_0xc8a34[_0x595e9b(0x127)]>MAX_ROWS||_0xc8a34['columnCount']>MAX_COLUMNS)throw new Error(_0x595e9b(0x14d));if((_0xc8a34[_0x595e9b(0x18d)]['merges']??[])[_0x595e9b(0x13e)])throw new Error(_0x595e9b(0x1d7));const _0x18d19d=new Map();_0xc8a34[_0x595e9b(0x1d4)](_0x1502a3)['eachCell']((_0xf8124f,_0x1bfdbe)=>{const _0x579e1c=_0x595e9b,_0x55df97=valueOf(_0xf8124f);if(typeof _0x55df97!==_0x579e1c(0x12a)||!_0x55df97[_0x579e1c(0x1e6)]()||Buffer[_0x579e1c(0x1da)](_0x55df97)>MAX_CELL)throw new Error(_0x579e1c(0x15b));if(_0x18d19d[_0x579e1c(0x20f)](_0x55df97))throw new Error(_0x579e1c(0x1d6)+_0x55df97+'.');_0x18d19d[_0x579e1c(0x132)](_0x55df97,_0x1bfdbe);});const _0x61d503=Object[_0x595e9b(0x1ef)](_0x5788bb[_0x595e9b(0x19d)]);if(!_0x61d503[_0x595e9b(0x13e)])throw new Error(_0x595e9b(0x1c4));const _0x1449e1=new Map(_0x5788bb[_0x595e9b(0x1dc)][_0x595e9b(0x14f)](_0x5a7765=>[_0x5a7765[_0x595e9b(0x1f8)],_0x5a7765]));if(_0x1449e1[_0x595e9b(0x18b)]!==_0x5788bb[_0x595e9b(0x1dc)]['length'])throw new Error(_0x595e9b(0x1e3));if(_0x5788bb[_0x595e9b(0x1dc)][_0x595e9b(0x1d1)](_0x2e8c83=>_0x2e8c83[_0x595e9b(0x212)][_0x595e9b(0x1d3)]()==='serial_number'))throw new Error('Unsupported\x20dataset\x20field\x20type:\x20serial_number.');const _0x4f913f=new Set();for(const [_0x250386,_0x2b8c3b]of _0x61d503){const _0x3a2159=_0x1449e1[_0x595e9b(0x211)](_0x2b8c3b);if(!_0x18d19d['has'](_0x250386))throw new Error(_0x595e9b(0x15e)+_0x250386+'.');if(!_0x3a2159||RESERVED['has'](_0x2b8c3b)||_0x3a2159['generated'])throw new Error(_0x595e9b(0x1e7)+_0x2b8c3b+'.');if(_0x4f913f['has'](_0x2b8c3b))throw new Error('Duplicate\x20mapping\x20target:\x20'+_0x2b8c3b+'.');if(!TYPES[_0x595e9b(0x20f)](_0x3a2159[_0x595e9b(0x212)]['toLowerCase']()))throw new Error(_0x595e9b(0x203)+_0x3a2159['type']+'.');_0x4f913f['add'](_0x2b8c3b);}for(const _0x10039b of _0x5788bb[_0x595e9b(0x1dc)]){if(_0x10039b['required']&&!_0x10039b['generated']&&!RESERVED[_0x595e9b(0x20f)](_0x10039b[_0x595e9b(0x1f8)])&&!_0x4f913f[_0x595e9b(0x20f)](_0x10039b[_0x595e9b(0x1f8)]))throw new Error(_0x595e9b(0x1a9)+_0x10039b[_0x595e9b(0x1f8)]+'.');}const _0x564cb0={'fileHash':hash(_0x2abfdf),'mappingHash':hash(JSON['stringify']([..._0x61d503][_0x595e9b(0x14a)](([_0x4a801f],[_0x279673])=>_0x4a801f['localeCompare'](_0x279673)))),'schemaHash':hash(JSON[_0x595e9b(0x209)]([..._0x5788bb[_0x595e9b(0x1dc)]][_0x595e9b(0x14a)]((_0x1318c0,_0x2eba2f)=>_0x1318c0[_0x595e9b(0x1f8)]['localeCompare'](_0x2eba2f[_0x595e9b(0x1f8)])))),'sheet':_0xc8a34['name'],'rows':[],'emptyRows':[],'errors':[],'warnings':[]},_0x3592a7=_0x61d503[_0x595e9b(0x160)](([,_0x16b00d])=>isImageContainer(_0x1449e1[_0x595e9b(0x211)](_0x16b00d)[_0x595e9b(0x212)])),_0x3a311e=_0x3592a7[_0x595e9b(0x160)](([,_0x2617d1])=>_0x1449e1[_0x595e9b(0x211)](_0x2617d1)[_0x595e9b(0x212)][_0x595e9b(0x1d3)]()===_0x595e9b(0x163))[_0x595e9b(0x14f)](([,_0x405246])=>_0x405246);if(_0x3a311e['length'])_0x564cb0[_0x595e9b(0x166)]=_0x3a311e;const _0x21d72a=_0x40033d?resolveWorksheetImages(_0x40033d,_0xc8a34[_0x595e9b(0x1d2)],new Set(_0x3592a7['map'](([_0x46c0a6])=>_0x18d19d[_0x595e9b(0x211)](_0x46c0a6)))):[],_0x44ab60=new Map();for(const _0x122e7d of _0x21d72a){const _0x3a745c=_0x122e7d[_0x595e9b(0x1a2)]+':'+_0x122e7d['col'],_0x544c25=_0x44ab60[_0x595e9b(0x211)](_0x3a745c)??[];_0x544c25[_0x595e9b(0x13d)](_0x122e7d),_0x44ab60[_0x595e9b(0x132)](_0x3a745c,_0x544c25);}const _0x46e21e=new Map();let _0x30bb92=0x0;_0x3592a7[_0x595e9b(0x13e)]&&(_0x564cb0[_0x595e9b(0x208)]=_0x3592a7[_0x595e9b(0x14f)](([,_0x286035])=>_0x286035),_0x564cb0[_0x595e9b(0x1f3)]=[],_0x564cb0[_0x595e9b(0x206)]=0x1,_0x564cb0[_0x595e9b(0x159)]=[]);const _0x5266fa=Math[_0x595e9b(0x20a)](0x0,..._0x21d72a[_0x595e9b(0x14f)](_0x426b84=>_0x426b84['row']));let _0x373f11=0x0;const _0x4e69f=new Set(_0x61d503[_0x595e9b(0x14f)](([_0x44fbdf])=>_0x18d19d[_0x595e9b(0x211)](_0x44fbdf)));for(let _0x340404=_0x1502a3+0x1;_0x340404<=Math[_0x595e9b(0x20a)](_0xc8a34[_0x595e9b(0x127)],_0x5266fa);_0x340404++){const _0x1be5ee=_0xc8a34[_0x595e9b(0x1d4)](_0x340404);if(_0x1be5ee['hidden']||_0x21d72a[_0x595e9b(0x1d1)](_0x5b3dc4=>_0x5b3dc4[_0x595e9b(0x1a2)]===_0x340404&&_0x5b3dc4[_0x595e9b(0x202)]))_0x373f11++;let _0x5e01ce=_0x21d72a['some'](_0x41ead0=>_0x41ead0[_0x595e9b(0x1a2)]===_0x340404);_0x1be5ee[_0x595e9b(0x1c1)](_0x3f801f=>{const _0x7c69a=_0x595e9b;if(_0x3f801f[_0x7c69a(0x128)]!==null&&_0x3f801f[_0x7c69a(0x128)]!==undefined&&_0x3f801f['value']!=='')_0x5e01ce=!![];});if(!_0x5e01ce){_0x564cb0['emptyRows'][_0x595e9b(0x13d)](_0x340404);continue;}const _0xb1bfc1=Object['create'](null);_0x1be5ee[_0x595e9b(0x1c1)]((_0x30c932,_0x5157c5)=>{const _0x3f1a1f=_0x595e9b;if(_0x4e69f[_0x3f1a1f(0x20f)](_0x5157c5))return;try{const _0x250fcc=valueOf(_0x30c932);if(typeof _0x250fcc===_0x3f1a1f(0x12a)&&Buffer['byteLength'](_0x250fcc,'utf8')>MAX_CELL)throw new Error('Cell\x20exceeds\x2064\x20KB.');}catch(_0x567b91){_0x564cb0[_0x3f1a1f(0x14c)][_0x3f1a1f(0x13d)]({'rowNumber':_0x340404,'field':_0x30c932[_0x3f1a1f(0x1ec)],'message':_0x567b91[_0x3f1a1f(0x1b8)]});}});for(const [_0x517ee5,_0x42f20d]of _0x61d503){try{const _0x2baf5e=_0x1be5ee[_0x595e9b(0x1fc)](_0x18d19d[_0x595e9b(0x211)](_0x517ee5)),_0x2fb783=_0x1449e1[_0x595e9b(0x211)](_0x42f20d);if(!isImageContainer(_0x2fb783[_0x595e9b(0x212)])){_0xb1bfc1[_0x42f20d]=convert(valueOf(_0x2baf5e),_0x2fb783);continue;}const _0x4ca967=_0x44ab60[_0x595e9b(0x211)](_0x340404+':'+_0x18d19d[_0x595e9b(0x211)](_0x517ee5))??[];if(_0x4ca967[_0x595e9b(0x1d1)](_0x13621f=>_0x13621f[_0x595e9b(0x1ed)]))throw Error(_0x4ca967[_0x595e9b(0x19b)](_0x1329d9=>_0x1329d9[_0x595e9b(0x1ed)])[_0x595e9b(0x1ed)]);if(_0x2baf5e[_0x595e9b(0x128)]!=null&&_0x2baf5e[_0x595e9b(0x128)]!==''&&!_0x4ca967['some'](_0x118b3c=>_0x118b3c[_0x595e9b(0x1bb)]))throw Error(_0x595e9b(0x137));const _0x25a565=[];for(const _0x5a3de8 of _0x4ca967)for(const _0x4b30f3 of _0x5a3de8['media']){const _0x2e7aa3=_0x40033d[_0x595e9b(0x211)](_0x4b30f3);if(!_0x2e7aa3)throw Error(_0x595e9b(0x1e4)+_0x4b30f3+'.');const _0x23df1e=hash(_0x2e7aa3),_0x1317c9=_0x46e21e[_0x595e9b(0x211)](_0x23df1e)??validateImageBytes(_0x2e7aa3);if(!_0x46e21e[_0x595e9b(0x20f)](_0x1317c9[_0x595e9b(0x145)])){_0x30bb92+=_0x1317c9[_0x595e9b(0x18b)];if(_0x30bb92>0x32*0x400*0x400)throw Error(_0x595e9b(0x190));_0x46e21e[_0x595e9b(0x132)](_0x1317c9[_0x595e9b(0x145)],_0x1317c9);}_0x25a565['push'](_0x1317c9[_0x595e9b(0x145)]);}if(!_0x25a565[_0x595e9b(0x13e)]&&_0x2fb783['required'])throw Error('Required\x20image\x20value\x20is\x20missing.');if(_0x25a565[_0x595e9b(0x13e)])_0x564cb0[_0x595e9b(0x1f3)][_0x595e9b(0x13d)]({'rowNumber':_0x340404,'field':_0x42f20d,'hashes':_0x25a565});_0xb1bfc1[_0x42f20d]=_0x25a565[_0x595e9b(0x14f)](_0xecab93=>{const _0xfebd58=_0x595e9b,_0x50165b=_0x46e21e[_0xfebd58(0x211)](_0xecab93),_0x1c22b7=_0x50165b[_0xfebd58(0x212)]===_0xfebd58(0x20e)?_0xfebd58(0x17b):_0x50165b[_0xfebd58(0x212)][_0xfebd58(0x17a)](0x6),_0x264e58=_0xecab93+'.'+_0x1c22b7,_0x22de9b=_0xfebd58(0x1ac)+'0'['repeat'](0x40)+'/'+_0x264e58;return _0x2fb783[_0xfebd58(0x212)][_0xfebd58(0x1d3)]()===_0xfebd58(0x163)?{'fileName':_0x264e58,'filePath':_0x22de9b}:{'key':_0x22de9b,'name':_0x264e58,'type':_0x50165b[_0xfebd58(0x212)],'size':_0x50165b[_0xfebd58(0x18b)]};});}catch(_0x29962b){_0x564cb0[_0x595e9b(0x14c)][_0x595e9b(0x13d)]({'rowNumber':_0x340404,'field':_0x42f20d,'message':_0x29962b[_0x595e9b(0x1b8)]});}}_0x564cb0['rows'][_0x595e9b(0x13d)]({'rowNumber':_0x340404,'values':_0xb1bfc1});}if(_0x564cb0[_0x595e9b(0x159)])_0x564cb0[_0x595e9b(0x159)]=[..._0x46e21e[_0x595e9b(0x1ab)]()];if(_0x373f11)_0x564cb0[_0x595e9b(0x152)][_0x595e9b(0x13d)](_0x373f11+'\x20hidden\x20row(s)\x20are\x20included\x20in\x20the\x20import.');return _0x564cb0;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x1c3f05,_0x21b5ec){const _0x3fc536=a145_0x5658,_0x512af0=_0x1c3f05();while(!![]){try{const _0x576beb=-parseInt(_0x3fc536(0x1e6))/0x1+parseInt(_0x3fc536(0x219))/0x2+parseInt(_0x3fc536(0x1f2))/0x3*(-parseInt(_0x3fc536(0x217))/0x4)+-parseInt(_0x3fc536(0x20b))/0x5+parseInt(_0x3fc536(0x1fc))/0x6+-parseInt(_0x3fc536(0x1ea))/0x7+parseInt(_0x3fc536(0x1e8))/0x8;if(_0x576beb===_0x21b5ec)break;else _0x512af0['push'](_0x512af0['shift']());}catch(_0x3ebfd8){_0x512af0['push'](_0x512af0['shift']());}}}(a145_0x173d,0x6cd8c));import{createRequire}from'node:module';import{createHash}from'node:crypto';import{inflateSync}from'node:zlib';function a145_0x173d(){const _0x3af265=['message','5967857YQsvZH','acTL','isSafeInteger','ceil','equals','Invalid\x20GIF\x20trailer.','GIF89a','Missing\x20PNG\x20data/end.','168zWnzxw','length','IEND','digest','includes','push','Truncated\x20JPEG.','concat','Invalid\x20PNG\x20header.','GIF\x20cumulative\x20frame\x20pixels\x20exceed\x2040\x20million.','1325736wpAhnd','GIF\x20image\x20has\x20no\x20palette.','subarray','read','Invalid\x20PNG\x20end.','Truncated\x20GIF\x20data.','IHDR','Unsupported\x20image\x20format;\x20only\x20PNG,\x20JPEG\x20and\x20GIF\x20are\x20supported.\x20WebP\x20is\x20not\x20supported.','Invalid\x20image:\x20','image/gif','from','IDAT','Invalid\x20GIF\x20LZW\x20dictionary\x20reference.','toString','update','1629975HIpjqt','readUInt16LE','image/jpeg','ascii','Invalid\x20GIF\x20LZW\x20pixel\x20data.','GIF87a','image/png','Animated\x20PNG\x20is\x20not\x20supported.','height','Truncated\x20PNG\x20data.','Image\x20must\x20be\x20non-empty\x20and\x20no\x20larger\x20than\x2010\x20MB.','Invalid\x20PNG\x20decoded\x20scanline\x20size.','25112RBQEtt','Truncated\x20GIF.','1719026baqiyz','Invalid\x20GIF\x20LZW\x20code\x20size.','Invalid\x20GIF\x20block.','readUInt32BE','width','Image\x20dimensions\x20exceed\x2040\x20million\x20pixels.','307994fFUZrP','max','9627800TPnnTD'];a145_0x173d=function(){return _0x3af265;};return a145_0x173d();}function a145_0x5658(_0x2898b8,_0x3a4cc1){_0x2898b8=_0x2898b8-0x1e2;const _0x173de9=a145_0x173d();let _0x565867=_0x173de9[_0x2898b8];return _0x565867;}const require=createRequire(import.meta.url),MAX_PIXELS=0x2625a00;function dimensions(_0x3c7664,_0x5343fb){const _0x2c80f1=a145_0x5658;if(!Number['isSafeInteger'](_0x3c7664)||!Number[_0x2c80f1(0x1ec)](_0x5343fb)||_0x3c7664<0x1||_0x5343fb<0x1||_0x3c7664*_0x5343fb>MAX_PIXELS)throw Error(_0x2c80f1(0x1e5));}function validateGif(_0xaccedf){const _0x3c82ce=a145_0x5658;let _0x492c29=0xd,_0x5a8cf2=0x0,_0x5772d1=0x0;const _0x48f7a3=_0xaccedf[_0x3c82ce(0x20c)](0x6),_0x5ec334=_0xaccedf['readUInt16LE'](0x8),_0x37ccf5=_0xaccedf[0xa]&0x80?0x1<<(_0xaccedf[0xa]&0x7)+0x1:0x0,_0x38bd41=_0x20d8ed=>{const _0x282880=_0x3c82ce;if(_0x492c29+_0x20d8ed>_0xaccedf[_0x282880(0x1f3)])throw Error(_0x282880(0x201));};_0x492c29+=_0x37ccf5*0x3,_0x38bd41(0x0);const _0x778abe=()=>{const _0x505495=_0x3c82ce,_0x5de26a=[];while(!![]){_0x38bd41(0x1);const _0x163ae0=_0xaccedf[_0x492c29++];if(!_0x163ae0)break;_0x38bd41(_0x163ae0),_0x5de26a['push'](_0xaccedf[_0x505495(0x1fe)](_0x492c29,_0x492c29+_0x163ae0)),_0x492c29+=_0x163ae0;}return Buffer[_0x505495(0x1f9)](_0x5de26a);};while(_0x492c29<_0xaccedf[_0x3c82ce(0x1f3)]){const _0x132740=_0xaccedf[_0x492c29++];if(_0x132740===0x3b){if(!_0x5a8cf2||_0x492c29!==_0xaccedf['length'])throw Error(_0x3c82ce(0x1ef));return;}if(_0x132740===0x21){_0x38bd41(0x1),_0x492c29++,_0x778abe();continue;}if(_0x132740!==0x2c)throw Error(_0x3c82ce(0x1e2));_0x38bd41(0x9);const _0x3bf43b=_0xaccedf[_0x3c82ce(0x20c)](_0x492c29),_0x42b2dd=_0xaccedf[_0x3c82ce(0x20c)](_0x492c29+0x2),_0x352459=_0xaccedf[_0x3c82ce(0x20c)](_0x492c29+0x4),_0x35a884=_0xaccedf[_0x3c82ce(0x20c)](_0x492c29+0x6),_0x4e67f9=_0xaccedf[_0x492c29+0x8];_0x492c29+=0x9,dimensions(_0x352459,_0x35a884);if(_0x3bf43b+_0x352459>_0x48f7a3||_0x42b2dd+_0x35a884>_0x5ec334||++_0x5a8cf2>0x2710||(_0x5772d1+=_0x48f7a3*_0x5ec334)>MAX_PIXELS)throw Error(_0x3c82ce(0x1fb));const _0x19239a=_0x4e67f9&0x80?0x1<<(_0x4e67f9&0x7)+0x1:_0x37ccf5;if(!_0x19239a)throw Error(_0x3c82ce(0x1fd));_0x4e67f9&0x80&&(_0x38bd41(_0x19239a*0x3),_0x492c29+=_0x19239a*0x3);_0x38bd41(0x1);const _0x26537d=_0xaccedf[_0x492c29++];if(_0x26537d<0x2||_0x26537d>0x8)throw Error(_0x3c82ce(0x21a));const _0x366359=_0x778abe(),_0x133e3e=0x1<<_0x26537d,_0x426c9b=_0x133e3e+0x1;let _0x1d98eb=_0x26537d+0x1,_0x991965=_0x426c9b+0x1,_0x510cf1=0x0,_0x2dc25a=-0x1,_0x4c61e9=0x0,_0x24880b=![];const _0x390f55=new Uint32Array(0x1000),_0x1a51d7=new Uint16Array(0x1000);for(let _0x2a936b=0x0;_0x2a936b<_0x133e3e;_0x2a936b++){_0x390f55[_0x2a936b]=0x1,_0x1a51d7[_0x2a936b]=_0x2a936b;}while(_0x510cf1+_0x1d98eb<=_0x366359[_0x3c82ce(0x1f3)]*0x8){let _0x35dfd2=0x0;for(let _0x562c42=0x0;_0x562c42<_0x1d98eb;_0x562c42++,_0x510cf1++)_0x35dfd2|=(_0x366359[_0x510cf1>>0x3]>>(_0x510cf1&0x7)&0x1)<<_0x562c42;if(_0x35dfd2===_0x133e3e){_0x1d98eb=_0x26537d+0x1,_0x991965=_0x426c9b+0x1,_0x2dc25a=-0x1;continue;}if(_0x35dfd2===_0x426c9b){_0x24880b=!![];break;}if(_0x35dfd2>_0x991965||_0x35dfd2===_0x991965&&_0x2dc25a<0x0||_0x2dc25a<0x0&&_0x35dfd2>=_0x133e3e)throw Error(_0x3c82ce(0x208));const _0x3accfb=_0x35dfd2===_0x991965?_0x390f55[_0x2dc25a]+0x1:_0x390f55[_0x35dfd2],_0x5d473f=_0x35dfd2===_0x991965?_0x1a51d7[_0x2dc25a]:_0x1a51d7[_0x35dfd2];if(!_0x3accfb||_0x5d473f>=_0x19239a||(_0x4c61e9+=_0x3accfb)>_0x352459*_0x35a884)throw Error(_0x3c82ce(0x20f));if(_0x2dc25a>=0x0&&_0x991965<0x1000){_0x390f55[_0x991965]=_0x390f55[_0x2dc25a]+0x1,_0x1a51d7[_0x991965]=Math[_0x3c82ce(0x1e7)](_0x1a51d7[_0x2dc25a],_0x5d473f),_0x991965++;if(_0x991965===0x1<<_0x1d98eb&&_0x1d98eb<0xc)_0x1d98eb++;}_0x2dc25a=_0x35dfd2;}if(!_0x24880b||_0x4c61e9!==_0x352459*_0x35a884)throw Error('Truncated\x20or\x20incomplete\x20GIF\x20LZW\x20pixels.');}throw Error('Missing\x20GIF\x20trailer.');}export function validateImageBytes(_0x15e712){const _0x5b002c=a145_0x5658;if(!_0x15e712[_0x5b002c(0x1f3)]||_0x15e712['length']>0xa*0x400*0x400)throw Error(_0x5b002c(0x215));let _0x263a2c;try{if(_0x15e712['subarray'](0x0,0x8)[_0x5b002c(0x1ee)](Buffer[_0x5b002c(0x206)]([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]))){if(_0x15e712['length']<0x21||_0x15e712['toString'](_0x5b002c(0x20e),0xc,0x10)!==_0x5b002c(0x202))throw Error(_0x5b002c(0x1fa));dimensions(_0x15e712[_0x5b002c(0x1e3)](0x10),_0x15e712[_0x5b002c(0x1e3)](0x14));const _0x25081e=_0x15e712[_0x5b002c(0x1e3)](0x10),_0x5afa05=_0x15e712[_0x5b002c(0x1e3)](0x14),_0x4244d2=_0x15e712[0x18],_0x139245=_0x15e712[0x19],_0x3c73d4=_0x15e712[0x1c],_0x4d2cd7={0x0:0x1,0x2:0x3,0x3:0x1,0x4:0x2,0x6:0x4}[_0x139245];if(!_0x4d2cd7||![0x1,0x2,0x4,0x8,0x10]['includes'](_0x4244d2)||_0x3c73d4>0x1)throw Error('Invalid\x20PNG\x20color/depth/interlace.');const _0x3d0ec8=_0x54bb33=>Math['ceil'](_0x54bb33*_0x4d2cd7*_0x4244d2/0x8)+0x1;let _0x13ea83=_0x3d0ec8(_0x25081e)*_0x5afa05;if(_0x3c73d4){_0x13ea83=0x0;for(const [_0x309602,_0x1e665e,_0x194c3d,_0x239d30]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 _0x2abdc6=Math['max'](0x0,Math['ceil']((_0x25081e-_0x309602)/_0x194c3d)),_0x2067a6=Math['max'](0x0,Math[_0x5b002c(0x1ed)]((_0x5afa05-_0x1e665e)/_0x239d30));if(_0x2abdc6&&_0x2067a6)_0x13ea83+=_0x3d0ec8(_0x2abdc6)*_0x2067a6;}}let _0x26ea86=0x8,_0x50575b=![];const _0x236d2d=[];while(_0x26ea86<_0x15e712[_0x5b002c(0x1f3)]){if(_0x26ea86+0xc>_0x15e712['length'])throw Error('Truncated\x20PNG\x20chunk.');const _0x5ab5e6=_0x15e712[_0x5b002c(0x1e3)](_0x26ea86),_0x5ed5c5=_0x15e712[_0x5b002c(0x209)]('ascii',_0x26ea86+0x4,_0x26ea86+0x8);if(_0x5ed5c5===_0x5b002c(0x1eb))throw Error(_0x5b002c(0x212));if(_0x26ea86+_0x5ab5e6+0xc>_0x15e712[_0x5b002c(0x1f3)])throw Error(_0x5b002c(0x214));if(_0x5ed5c5===_0x5b002c(0x207))_0x236d2d[_0x5b002c(0x1f7)](_0x15e712[_0x5b002c(0x1fe)](_0x26ea86+0x8,_0x26ea86+0x8+_0x5ab5e6));_0x26ea86+=_0x5ab5e6+0xc;if(_0x5ed5c5===_0x5b002c(0x1f4)){if(_0x5ab5e6||_0x26ea86!==_0x15e712[_0x5b002c(0x1f3)])throw Error(_0x5b002c(0x200));_0x50575b=!![];break;}}if(!_0x50575b||!_0x236d2d[_0x5b002c(0x1f3)])throw Error(_0x5b002c(0x1f1));if(inflateSync(Buffer[_0x5b002c(0x1f9)](_0x236d2d),{'maxOutputLength':_0x13ea83+0x1})[_0x5b002c(0x1f3)]!==_0x13ea83)throw Error(_0x5b002c(0x216));const {PNG:_0x1494fd}=require('pngjs'),_0x3d0d8e=_0x1494fd['sync'][_0x5b002c(0x1ff)](_0x15e712,{'checkCRC':!![]});dimensions(_0x3d0d8e['width'],_0x3d0d8e[_0x5b002c(0x213)]),_0x263a2c=_0x5b002c(0x211);}else{if(_0x15e712[0x0]===0xff&&_0x15e712[0x1]===0xd8){if(_0x15e712['at'](-0x2)!==0xff||_0x15e712['at'](-0x1)!==0xd9)throw Error(_0x5b002c(0x1f8));const _0x463ebc=require('jpeg-js'),_0x3bc663=_0x463ebc['decode'](_0x15e712,{'useTArray':!![],'formatAsRGBA':![],'tolerantDecoding':![],'maxResolutionInMP':0x28,'maxMemoryUsageInMB':0x100});dimensions(_0x3bc663[_0x5b002c(0x1e4)],_0x3bc663[_0x5b002c(0x213)]),_0x263a2c=_0x5b002c(0x20d);}else{if([_0x5b002c(0x210),_0x5b002c(0x1f0)][_0x5b002c(0x1f6)](_0x15e712['toString'](_0x5b002c(0x20e),0x0,0x6))){if(_0x15e712[_0x5b002c(0x1f3)]<0xe||_0x15e712['at'](-0x1)!==0x3b)throw Error(_0x5b002c(0x218));dimensions(_0x15e712[_0x5b002c(0x20c)](0x6),_0x15e712[_0x5b002c(0x20c)](0x8)),validateGif(_0x15e712);const {GifReader:_0x2105a5}=require('omggif'),_0xb416a1=new _0x2105a5(_0x15e712);dimensions(_0xb416a1[_0x5b002c(0x1e4)],_0xb416a1[_0x5b002c(0x213)]);const _0x3c2f63=_0xb416a1['numFrames']();if(!_0x3c2f63||_0x3c2f63>0x2710||_0x3c2f63*_0xb416a1['width']*_0xb416a1['height']>MAX_PIXELS)throw Error(_0x5b002c(0x1fb));const _0x5c0090=new Uint8Array(_0xb416a1[_0x5b002c(0x1e4)]*_0xb416a1[_0x5b002c(0x213)]*0x4);for(let _0x323cf9=0x0;_0x323cf9<_0x3c2f63;_0x323cf9++){const _0x38141b=_0xb416a1['frameInfo'](_0x323cf9);if(_0x38141b['x']+_0x38141b[_0x5b002c(0x1e4)]>_0xb416a1[_0x5b002c(0x1e4)]||_0x38141b['y']+_0x38141b[_0x5b002c(0x213)]>_0xb416a1[_0x5b002c(0x213)])throw Error('GIF\x20frame\x20exceeds\x20canvas.');_0xb416a1['decodeAndBlitFrameRGBA'](_0x323cf9,_0x5c0090);}_0x263a2c=_0x5b002c(0x205);}else throw Error(_0x5b002c(0x203));}}}catch(_0x225057){throw Error(_0x5b002c(0x204)+_0x225057[_0x5b002c(0x1e9)]);}return{'contentHash':createHash('sha256')[_0x5b002c(0x20a)](_0x15e712)[_0x5b002c(0x1f5)]('hex'),'type':_0x263a2c,'size':_0x15e712['length'],'bytes':_0x15e712};}
|
|
1
|
+
(function(_0x1b0009,_0x369254){const _0x268ceb=a145_0x3d4c,_0x59cea2=_0x1b0009();while(!![]){try{const _0x29305e=-parseInt(_0x268ceb(0xc4))/0x1+-parseInt(_0x268ceb(0xd1))/0x2+parseInt(_0x268ceb(0xd4))/0x3+parseInt(_0x268ceb(0xc9))/0x4+-parseInt(_0x268ceb(0xbf))/0x5*(parseInt(_0x268ceb(0xaa))/0x6)+-parseInt(_0x268ceb(0xa9))/0x7*(parseInt(_0x268ceb(0xad))/0x8)+-parseInt(_0x268ceb(0xce))/0x9*(-parseInt(_0x268ceb(0xb0))/0xa);if(_0x29305e===_0x369254)break;else _0x59cea2['push'](_0x59cea2['shift']());}catch(_0xfff043){_0x59cea2['push'](_0x59cea2['shift']());}}}(a145_0x47a7,0x1cc69));import{createRequire}from'node:module';function a145_0x3d4c(_0x37c1e8,_0x2a11c1){_0x37c1e8=_0x37c1e8-0xa0;const _0x47a7a4=a145_0x47a7();let _0x3d4c40=_0x47a7a4[_0x37c1e8];return _0x3d4c40;}import{createHash}from'node:crypto';import{inflateSync}from'node:zlib';function a145_0x47a7(){const _0x3fbe92=['readUInt16LE','push','775292QgRAGD','readUInt32BE','Missing\x20GIF\x20trailer.','isSafeInteger','message','10917eQWxMw','GIF\x20frame\x20exceeds\x20canvas.','equals','7082sexQKW','digest','Image\x20dimensions\x20exceed\x2040\x20million\x20pixels.','574911VmxATC','length','Truncated\x20GIF.','decode','read','Invalid\x20GIF\x20block.','Invalid\x20image:\x20','Invalid\x20PNG\x20header.','IDAT','sync','GIF89a','Invalid\x20GIF\x20LZW\x20dictionary\x20reference.','GIF\x20cumulative\x20frame\x20pixels\x20exceed\x2040\x20million.','subarray','hex','ceil','118412HqHnYn','36EfYcnG','Invalid\x20PNG\x20color/depth/interlace.','Image\x20must\x20be\x20non-empty\x20and\x20no\x20larger\x20than\x2010\x20MB.','24qQejkY','acTL','update','350rczETe','IEND','Truncated\x20PNG\x20chunk.','height','Invalid\x20GIF\x20trailer.','numFrames','Truncated\x20PNG\x20data.','max','IHDR','sha256','includes','Invalid\x20PNG\x20end.','GIF87a','width','Missing\x20PNG\x20data/end.','118730FmDRjf','Truncated\x20GIF\x20data.','decodeAndBlitFrameRGBA','toString','omggif','113285kNvHmR','ascii','from'];a145_0x47a7=function(){return _0x3fbe92;};return a145_0x47a7();}const require=createRequire(import.meta.url),MAX_PIXELS=0x2625a00;function dimensions(_0x4f9075,_0x1cfdd1){const _0x52512e=a145_0x3d4c;if(!Number[_0x52512e(0xcc)](_0x4f9075)||!Number[_0x52512e(0xcc)](_0x1cfdd1)||_0x4f9075<0x1||_0x1cfdd1<0x1||_0x4f9075*_0x1cfdd1>MAX_PIXELS)throw Error(_0x52512e(0xd3));}function validateGif(_0x1a8dde){const _0x2daba5=a145_0x3d4c;let _0x1f56db=0xd,_0x3dde66=0x0,_0x1b2cfe=0x0;const _0x23f4b3=_0x1a8dde[_0x2daba5(0xc7)](0x6),_0x557526=_0x1a8dde[_0x2daba5(0xc7)](0x8),_0x5f5c0a=_0x1a8dde[0xa]&0x80?0x1<<(_0x1a8dde[0xa]&0x7)+0x1:0x0,_0x1cd769=_0x5bd583=>{const _0x1c6d5c=_0x2daba5;if(_0x1f56db+_0x5bd583>_0x1a8dde[_0x1c6d5c(0xd5)])throw Error(_0x1c6d5c(0xc0));};_0x1f56db+=_0x5f5c0a*0x3,_0x1cd769(0x0);const _0x127a43=()=>{const _0x4dda04=_0x2daba5,_0x2d0d41=[];while(!![]){_0x1cd769(0x1);const _0x9b4f9b=_0x1a8dde[_0x1f56db++];if(!_0x9b4f9b)break;_0x1cd769(_0x9b4f9b),_0x2d0d41[_0x4dda04(0xc8)](_0x1a8dde[_0x4dda04(0xa6)](_0x1f56db,_0x1f56db+_0x9b4f9b)),_0x1f56db+=_0x9b4f9b;}return Buffer['concat'](_0x2d0d41);};while(_0x1f56db<_0x1a8dde[_0x2daba5(0xd5)]){const _0x36f0e4=_0x1a8dde[_0x1f56db++];if(_0x36f0e4===0x3b){if(!_0x3dde66||_0x1f56db!==_0x1a8dde[_0x2daba5(0xd5)])throw Error(_0x2daba5(0xb4));return;}if(_0x36f0e4===0x21){_0x1cd769(0x1),_0x1f56db++,_0x127a43();continue;}if(_0x36f0e4!==0x2c)throw Error(_0x2daba5(0xd9));_0x1cd769(0x9);const _0x3a6a84=_0x1a8dde[_0x2daba5(0xc7)](_0x1f56db),_0x48a8ed=_0x1a8dde['readUInt16LE'](_0x1f56db+0x2),_0x277bfc=_0x1a8dde[_0x2daba5(0xc7)](_0x1f56db+0x4),_0x3dfcf9=_0x1a8dde[_0x2daba5(0xc7)](_0x1f56db+0x6),_0x2ccc44=_0x1a8dde[_0x1f56db+0x8];_0x1f56db+=0x9,dimensions(_0x277bfc,_0x3dfcf9);if(_0x3a6a84+_0x277bfc>_0x23f4b3||_0x48a8ed+_0x3dfcf9>_0x557526||++_0x3dde66>0x2710||(_0x1b2cfe+=_0x23f4b3*_0x557526)>MAX_PIXELS)throw Error('GIF\x20cumulative\x20frame\x20pixels\x20exceed\x2040\x20million.');const _0x34d2da=_0x2ccc44&0x80?0x1<<(_0x2ccc44&0x7)+0x1:_0x5f5c0a;if(!_0x34d2da)throw Error('GIF\x20image\x20has\x20no\x20palette.');_0x2ccc44&0x80&&(_0x1cd769(_0x34d2da*0x3),_0x1f56db+=_0x34d2da*0x3);_0x1cd769(0x1);const _0x5bfdf4=_0x1a8dde[_0x1f56db++];if(_0x5bfdf4<0x2||_0x5bfdf4>0x8)throw Error('Invalid\x20GIF\x20LZW\x20code\x20size.');const _0x579f4d=_0x127a43(),_0x4169a2=0x1<<_0x5bfdf4,_0x5b0ea0=_0x4169a2+0x1;let _0x2d596f=_0x5bfdf4+0x1,_0x54959f=_0x5b0ea0+0x1,_0x4093c7=0x0,_0x4e42fb=-0x1,_0x176e5a=0x0,_0x2c67d9=![];const _0x2d36d5=new Uint32Array(0x1000),_0x5edb6c=new Uint16Array(0x1000);for(let _0x3bf999=0x0;_0x3bf999<_0x4169a2;_0x3bf999++){_0x2d36d5[_0x3bf999]=0x1,_0x5edb6c[_0x3bf999]=_0x3bf999;}while(_0x4093c7+_0x2d596f<=_0x579f4d[_0x2daba5(0xd5)]*0x8){let _0x5f09b7=0x0;for(let _0x2089fd=0x0;_0x2089fd<_0x2d596f;_0x2089fd++,_0x4093c7++)_0x5f09b7|=(_0x579f4d[_0x4093c7>>0x3]>>(_0x4093c7&0x7)&0x1)<<_0x2089fd;if(_0x5f09b7===_0x4169a2){_0x2d596f=_0x5bfdf4+0x1,_0x54959f=_0x5b0ea0+0x1,_0x4e42fb=-0x1;continue;}if(_0x5f09b7===_0x5b0ea0){_0x2c67d9=!![];break;}if(_0x5f09b7>_0x54959f||_0x5f09b7===_0x54959f&&_0x4e42fb<0x0||_0x4e42fb<0x0&&_0x5f09b7>=_0x4169a2)throw Error(_0x2daba5(0xa4));const _0x5806fa=_0x5f09b7===_0x54959f?_0x2d36d5[_0x4e42fb]+0x1:_0x2d36d5[_0x5f09b7],_0x5e40df=_0x5f09b7===_0x54959f?_0x5edb6c[_0x4e42fb]:_0x5edb6c[_0x5f09b7];if(!_0x5806fa||_0x5e40df>=_0x34d2da||(_0x176e5a+=_0x5806fa)>_0x277bfc*_0x3dfcf9)throw Error('Invalid\x20GIF\x20LZW\x20pixel\x20data.');if(_0x4e42fb>=0x0&&_0x54959f<0x1000){_0x2d36d5[_0x54959f]=_0x2d36d5[_0x4e42fb]+0x1,_0x5edb6c[_0x54959f]=Math[_0x2daba5(0xb7)](_0x5edb6c[_0x4e42fb],_0x5e40df),_0x54959f++;if(_0x54959f===0x1<<_0x2d596f&&_0x2d596f<0xc)_0x2d596f++;}_0x4e42fb=_0x5f09b7;}if(!_0x2c67d9||_0x176e5a!==_0x277bfc*_0x3dfcf9)throw Error('Truncated\x20or\x20incomplete\x20GIF\x20LZW\x20pixels.');}throw Error(_0x2daba5(0xcb));}export function validateImageBytes(_0x1f34a0){const _0x53c214=a145_0x3d4c;if(!_0x1f34a0[_0x53c214(0xd5)]||_0x1f34a0['length']>0xa*0x400*0x400)throw Error(_0x53c214(0xac));let _0x403075;try{if(_0x1f34a0['subarray'](0x0,0x8)[_0x53c214(0xd0)](Buffer[_0x53c214(0xc6)]([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]))){if(_0x1f34a0['length']<0x21||_0x1f34a0[_0x53c214(0xc2)](_0x53c214(0xc5),0xc,0x10)!==_0x53c214(0xb8))throw Error(_0x53c214(0xa0));dimensions(_0x1f34a0['readUInt32BE'](0x10),_0x1f34a0[_0x53c214(0xca)](0x14));const _0x3639fb=_0x1f34a0[_0x53c214(0xca)](0x10),_0x59c963=_0x1f34a0['readUInt32BE'](0x14),_0x27fefe=_0x1f34a0[0x18],_0x1bed4e=_0x1f34a0[0x19],_0x158ef9=_0x1f34a0[0x1c],_0x580336={0x0:0x1,0x2:0x3,0x3:0x1,0x4:0x2,0x6:0x4}[_0x1bed4e];if(!_0x580336||![0x1,0x2,0x4,0x8,0x10][_0x53c214(0xba)](_0x27fefe)||_0x158ef9>0x1)throw Error(_0x53c214(0xab));const _0x4cc08a=_0x3d029e=>Math[_0x53c214(0xa8)](_0x3d029e*_0x580336*_0x27fefe/0x8)+0x1;let _0x47acf2=_0x4cc08a(_0x3639fb)*_0x59c963;if(_0x158ef9){_0x47acf2=0x0;for(const [_0x198426,_0x579c99,_0x3d84e7,_0x5f8d2c]of[[0x0,0x0,0x8,0x8],[0x4,0x0,0x8,0x8],[0x0,0x4,0x4,0x8],[0x2,0x0,0x4,0x4],[0x0,0x2,0x2,0x4],[0x1,0x0,0x2,0x2],[0x0,0x1,0x1,0x2]]){const _0x2e542d=Math['max'](0x0,Math[_0x53c214(0xa8)]((_0x3639fb-_0x198426)/_0x3d84e7)),_0x2aa427=Math[_0x53c214(0xb7)](0x0,Math['ceil']((_0x59c963-_0x579c99)/_0x5f8d2c));if(_0x2e542d&&_0x2aa427)_0x47acf2+=_0x4cc08a(_0x2e542d)*_0x2aa427;}}let _0x101a81=0x8,_0x521b30=![];const _0x49cea1=[];while(_0x101a81<_0x1f34a0[_0x53c214(0xd5)]){if(_0x101a81+0xc>_0x1f34a0['length'])throw Error(_0x53c214(0xb2));const _0x9de112=_0x1f34a0[_0x53c214(0xca)](_0x101a81),_0x2c6c07=_0x1f34a0[_0x53c214(0xc2)](_0x53c214(0xc5),_0x101a81+0x4,_0x101a81+0x8);if(_0x2c6c07===_0x53c214(0xae))throw Error('Animated\x20PNG\x20is\x20not\x20supported.');if(_0x101a81+_0x9de112+0xc>_0x1f34a0[_0x53c214(0xd5)])throw Error(_0x53c214(0xb6));if(_0x2c6c07===_0x53c214(0xa1))_0x49cea1[_0x53c214(0xc8)](_0x1f34a0[_0x53c214(0xa6)](_0x101a81+0x8,_0x101a81+0x8+_0x9de112));_0x101a81+=_0x9de112+0xc;if(_0x2c6c07===_0x53c214(0xb1)){if(_0x9de112||_0x101a81!==_0x1f34a0['length'])throw Error(_0x53c214(0xbb));_0x521b30=!![];break;}}if(!_0x521b30||!_0x49cea1['length'])throw Error(_0x53c214(0xbe));if(inflateSync(Buffer['concat'](_0x49cea1),{'maxOutputLength':_0x47acf2+0x1})[_0x53c214(0xd5)]!==_0x47acf2)throw Error('Invalid\x20PNG\x20decoded\x20scanline\x20size.');const {PNG:_0x1a0b95}=require('pngjs'),_0xdb3d03=_0x1a0b95[_0x53c214(0xa2)][_0x53c214(0xd8)](_0x1f34a0,{'checkCRC':!![]});dimensions(_0xdb3d03[_0x53c214(0xbd)],_0xdb3d03['height']),_0x403075='image/png';}else{if(_0x1f34a0[0x0]===0xff&&_0x1f34a0[0x1]===0xd8){if(_0x1f34a0['at'](-0x2)!==0xff||_0x1f34a0['at'](-0x1)!==0xd9)throw Error('Truncated\x20JPEG.');const _0x48dd56=require('jpeg-js'),_0x5db14b=_0x48dd56[_0x53c214(0xd7)](_0x1f34a0,{'useTArray':!![],'formatAsRGBA':![],'tolerantDecoding':![],'maxResolutionInMP':0x28,'maxMemoryUsageInMB':0x100});dimensions(_0x5db14b[_0x53c214(0xbd)],_0x5db14b[_0x53c214(0xb3)]),_0x403075='image/jpeg';}else{if([_0x53c214(0xbc),_0x53c214(0xa3)][_0x53c214(0xba)](_0x1f34a0['toString'](_0x53c214(0xc5),0x0,0x6))){if(_0x1f34a0[_0x53c214(0xd5)]<0xe||_0x1f34a0['at'](-0x1)!==0x3b)throw Error(_0x53c214(0xd6));dimensions(_0x1f34a0[_0x53c214(0xc7)](0x6),_0x1f34a0[_0x53c214(0xc7)](0x8)),validateGif(_0x1f34a0);const {GifReader:_0x2fe4ff}=require(_0x53c214(0xc3)),_0x4d628d=new _0x2fe4ff(_0x1f34a0);dimensions(_0x4d628d[_0x53c214(0xbd)],_0x4d628d[_0x53c214(0xb3)]);const _0x3d9586=_0x4d628d[_0x53c214(0xb5)]();if(!_0x3d9586||_0x3d9586>0x2710||_0x3d9586*_0x4d628d[_0x53c214(0xbd)]*_0x4d628d[_0x53c214(0xb3)]>MAX_PIXELS)throw Error(_0x53c214(0xa5));const _0x865fb7=new Uint8Array(_0x4d628d[_0x53c214(0xbd)]*_0x4d628d[_0x53c214(0xb3)]*0x4);for(let _0x4c0e04=0x0;_0x4c0e04<_0x3d9586;_0x4c0e04++){const _0xa3b2a4=_0x4d628d['frameInfo'](_0x4c0e04);if(_0xa3b2a4['x']+_0xa3b2a4[_0x53c214(0xbd)]>_0x4d628d[_0x53c214(0xbd)]||_0xa3b2a4['y']+_0xa3b2a4['height']>_0x4d628d[_0x53c214(0xb3)])throw Error(_0x53c214(0xcf));_0x4d628d[_0x53c214(0xc1)](_0x4c0e04,_0x865fb7);}_0x403075='image/gif';}else throw Error('Unsupported\x20image\x20format;\x20only\x20PNG,\x20JPEG\x20and\x20GIF\x20are\x20supported.\x20WebP\x20is\x20not\x20supported.');}}}catch(_0x266100){throw Error(_0x53c214(0xda)+_0x266100[_0x53c214(0xcd)]);}return{'contentHash':createHash(_0x53c214(0xb9))[_0x53c214(0xaf)](_0x1f34a0)[_0x53c214(0xd2)](_0x53c214(0xa7)),'type':_0x403075,'size':_0x1f34a0['length'],'bytes':_0x1f34a0};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a146_0x29cf50=a146_0x2ff5;function a146_0x2ff5(_0xf2ba1b,_0x127243){_0xf2ba1b=_0xf2ba1b-0x10c;const _0x17b0cb=a146_0x17b0();let _0x2ff545=_0x17b0cb[_0xf2ba1b];return _0x2ff545;}(function(_0x892e01,_0xe471a7){const _0x59400d=a146_0x2ff5,_0x17870a=_0x892e01();while(!![]){try{const _0x221f82=-parseInt(_0x59400d(0x129))/0x1*(-parseInt(_0x59400d(0x141))/0x2)+parseInt(_0x59400d(0x14c))/0x3+parseInt(_0x59400d(0x11b))/0x4*(-parseInt(_0x59400d(0x19c))/0x5)+parseInt(_0x59400d(0x1a8))/0x6+-parseInt(_0x59400d(0x1b9))/0x7*(parseInt(_0x59400d(0x177))/0x8)+-parseInt(_0x59400d(0x131))/0x9+parseInt(_0x59400d(0x136))/0xa*(-parseInt(_0x59400d(0x18d))/0xb);if(_0x221f82===_0xe471a7)break;else _0x17870a['push'](_0x17870a['shift']());}catch(_0x4280eb){_0x17870a['push'](_0x17870a['shift']());}}}(a146_0x17b0,0xcf398));function a146_0x17b0(){const _0x456239=['XLRICHVALUE','XML\x20DTD/entities\x20are\x20not\x20supported.','Unsupported\x20rich\x20image\x20relation\x20namespace.','Image\x20XML\x20text\x20exceeds\x2064\x20KB.','Value\x20metadata\x20index\x20must\x20be\x20one-based.','Invalid\x20relationship\x20target:\x20','cellImages','workbook','r:id','913KvICBJ','worksheet','MAX_SAFE_INTEGER','anchor\x20start','WPS\x20image\x20name','round','http://purl.oclc.org/ooxml/drawingml/spreadsheetDrawing','http://www.wps.cn/officeDocument/2017/relationships/','Invalid\x20or\x20duplicate\x20WPS\x20image\x20ID.','http://purl.oclc.org/ooxml/drawingml/main','r:link','image\x20row\x20height\x20coordinate','Missing\x20or\x20ambiguous\x20WPS\x20cell\x20image\x20part.','uri','map','163695iNJYKp','rdRichValueStructure','toString','attributes','External\x20WPS\x20image\x20links\x20are\x20not\x20supported.','Image\x20XML\x20event\x20budget\x20exceeded.','hidden\x20image\x20row','opentag','image\x20cell\x20row','rich\x20value\x20binding','Unsupported\x20rich\x20value\x20namespace.','image\x20height','6505386EyXjsf','http://purl.oclc.org/ooxml/spreadsheetml/main','_localImage','anchor\x20row','Internal','some','Missing\x20rich\x20image\x20relationship.','Missing\x20WPS\x20image\x20ID:\x20','Unsupported\x20relationship\x20namespace\x20in\x20','children','twoCellAnchor','rel','drawing','sheetData','_rvRel:LocalImageIdentifier','charCodeAt','WPS\x20image\x20blip','21vWukYx','rvb','futureMetadata','Unsupported\x20mapped\x20rich\x20value\x20structure.','r:embed','isSafeInteger','sheetMetadata','rich\x20image\x20relationship\x20index','push','Unsupported\x20worksheet\x20namespace.','Relationship','Invalid\x20image\x20start\x20offset\x20at\x20row\x20','anchor\x20end','\x20relationship\x20in\x20','richValueRels','rvStructures','name','exec','wsDr','basename','get','Unsupported\x20workbook\x20namespace.','Unsupported\x20drawing\x20image.','slice','flatMap','Unsupported\x20mapped\x20cell\x20metadata\x20type.','http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing','test','4gvBGaj','extLst','Unsupported\x20WPS\x20cell\x20image\x20namespace.','value\x20metadata\x20index','metadataType','nvPicPr','Shared\x20image\x20formulas\x20are\x20not\x20supported.','.rels','Duplicate\x20mapped\x20image\x20cell.','blipFill','http://schemas.microsoft.com/office/spreadsheetml/2022/richvaluerel','doctype','Missing\x20value\x20metadata\x20block.','Unsupported\x20metadata\x20namespace.','2XXTrXw','Absolute\x20image\x20anchor\x20cannot\x20be\x20mapped\x20in\x20worksheet\x20','Rich\x20IMAGE\x20cell\x20contains\x20unexpected\x20scalar\x20or\x20mixed\x20content.','richValueRel','http://schemas.microsoft.com/office/2017/06/relationships/','length','posix','value','3968739zaJsTr','rdRichValue','replace','closetag','Missing\x20or\x20ambiguous\x20local\x20image\x20identifier.','7740fAZyBz','anchor\x20column','type','cNvPr','has','message','normalize','Ambiguous\x20XML\x20attribute.','pic','../','sheets','1227236LJnflg','sheetFormatPr','Missing\x20or\x20ambiguous\x20','local','anchor\x20start\x20offset','join','xl/workbook.xml','true','rich\x20future\x20metadata','write','xl/','1593864Coryqm','absoluteAnchor','http://schemas.openxmlformats.org/officeDocument/2006/relationships','Image\x20anchor\x20spans\x20multiple\x20business\x20rows.','blip','sheet','fromEntries','Workbook\x20exceeds\x2010000\x20image\x20occurrences.','valueMetadata','http://schemas.microsoft.com/office/spreadsheetml/2017/richdata','rvData','from','Missing\x20XLSX\x20part:\x20','attrs','isFinite','http://www.wps.cn/officeDocument/2017/etCustomData','External\x20image\x20links\x20are\x20not\x20supported.','Missing\x20future\x20metadata\x20block.','close','oneCellAnchor','col','http://schemas.openxmlformats.org/drawingml/2006/main','image\x20extent','includes','image','rowOff','Image\x20coordinate\x20exceeds\x20worksheet\x20bounds.','Missing\x20local\x20image\x20identifier\x20value.','startsWith','ext','metadata','text','filter','anchor\x20end\x20offset','Image\x20anchor\x20has\x20invalid\x20or\x20reversed\x20row\x20offsets.','http://schemas.openxmlformats.org/spreadsheetml/2006/main','row','image\x20formula','metadata\x20types','_rels','values','Relationships','cellImage','3882696aHlKfr','set','Missing\x20rich\x20value.','Invalid\x20or\x20duplicate\x20relationship\x20in\x20','rich\x20metadata\x20record','utf8','http://schemas.microsoft.com/office/2022/10/relationships/richValueRel','dirname','metadataTypes','add','Relationship\x20target\x20escapes\x20workbook:\x20','hidden','Unsupported\x20image\x20formula;\x20expected\x20a\x20standalone\x20DISPIMG\x20literal.'];a146_0x17b0=function(){return _0x456239;};return a146_0x17b0();}import a146_0x173c06 from'node:path';import{SaxesParser}from'saxes';const SHEET=[a146_0x29cf50(0x16f),a146_0x29cf50(0x1a9)],DRAWING=[a146_0x29cf50(0x119),a146_0x29cf50(0x193)],DRAWING_MAIN=[a146_0x29cf50(0x161),a146_0x29cf50(0x196)],OFFICE_RELS=[a146_0x29cf50(0x14e),'http://purl.oclc.org/ooxml/officeDocument/relationships'],PACKAGE=['http://schemas.openxmlformats.org/package/2006/relationships'],RICH=[a146_0x29cf50(0x155)],RICH_RELS=[a146_0x29cf50(0x125)],WPS=[a146_0x29cf50(0x15b)],DEFAULT_NS=Object[a146_0x29cf50(0x152)]([...['workbook','sheets',a146_0x29cf50(0x151),a146_0x29cf50(0x18e),'sheetData',a146_0x29cf50(0x170),'c','f','v',a146_0x29cf50(0x142),a146_0x29cf50(0x1b4),a146_0x29cf50(0x16a),a146_0x29cf50(0x17f),a146_0x29cf50(0x11f),'futureMetadata','valueMetadata','bk','rc',a146_0x29cf50(0x11c)]['map'](_0x224145=>[_0x224145,SHEET]),...[a146_0x29cf50(0x111),a146_0x29cf50(0x15f),a146_0x29cf50(0x1b2),'absoluteAnchor',a146_0x29cf50(0x157),'to',a146_0x29cf50(0x160),'colOff',a146_0x29cf50(0x165),a146_0x29cf50(0x169),'pic',a146_0x29cf50(0x120),a146_0x29cf50(0x139),a146_0x29cf50(0x124)][a146_0x29cf50(0x19b)](_0x173720=>[_0x173720,DRAWING]),...[a146_0x29cf50(0x1ba),a146_0x29cf50(0x156),'rv',a146_0x29cf50(0x10e),'s','k']['map'](_0xc2b0fb=>[_0xc2b0fb,RICH]),[a146_0x29cf50(0x150),DRAWING_MAIN],[a146_0x29cf50(0x10d),RICH_RELS],[a146_0x29cf50(0x1b3),RICH_RELS],['Relationships',PACKAGE],[a146_0x29cf50(0x1c3),PACKAGE],[a146_0x29cf50(0x18a),WPS],[a146_0x29cf50(0x176),WPS]]),matches=(_0x2fa10c,_0xdd15c7,_0x16c9a7=DEFAULT_NS[_0xdd15c7]??[])=>_0x2fa10c[a146_0x29cf50(0x10f)]===_0xdd15c7&&_0x16c9a7[a146_0x29cf50(0x163)](_0x2fa10c[a146_0x29cf50(0x19a)]),children=(_0x11a314,_0x4c0427,_0x469c9c=DEFAULT_NS[_0x4c0427])=>_0x11a314[a146_0x29cf50(0x1b1)]['filter'](_0x4cd1c9=>matches(_0x4cd1c9,_0x4c0427,_0x469c9c)),chain=(_0x78c19d,..._0x21e698)=>_0x21e698['reduce']((_0x35f8e7,_0x137f6a)=>_0x35f8e7[a146_0x29cf50(0x117)](_0x2e1276=>children(_0x2e1276,_0x137f6a)),[_0x78c19d]),relationshipTypes=_0x32f758=>{const _0x6bdfc3=a146_0x29cf50;if([_0x6bdfc3(0x132),_0x6bdfc3(0x19d)][_0x6bdfc3(0x163)](_0x32f758))return[_0x6bdfc3(0x12d)+_0x32f758];if(_0x32f758===_0x6bdfc3(0x12c))return[_0x6bdfc3(0x17d)];if(_0x32f758===_0x6bdfc3(0x176)||_0x32f758===_0x6bdfc3(0x18a))return[_0x6bdfc3(0x194)+_0x32f758];return OFFICE_RELS[_0x6bdfc3(0x19b)](_0x4b586b=>_0x4b586b+'/'+_0x32f758);};function one(_0x8f3a69,_0x57023e){const _0x18b96e=a146_0x29cf50;if(_0x8f3a69['length']!==0x1)throw Error(_0x18b96e(0x143)+_0x57023e+'.');return _0x8f3a69[0x0];}function integer(_0x16d665,_0x1ae8e9,_0x100ca9=0x186a0){const _0x146f23=a146_0x29cf50;if(!_0x16d665||!/^\d+$/[_0x146f23(0x11a)](_0x16d665)||!Number[_0x146f23(0x1be)](Number(_0x16d665))||Number(_0x16d665)>_0x100ca9)throw Error('Invalid\x20'+_0x1ae8e9+'.');return Number(_0x16d665);}export function resolveWorksheetImages(_0x5c29ee,_0x2daa8b,_0x11ae24){const _0x3dc4ef=a146_0x29cf50;let _0x4311cf=0x0,_0x51ec92=0x0,_0x4252d4=0x0;const _0x18bc0d=new Map(),_0x221f20=_0x3b3ad3=>{const _0x51b2bd=a146_0x2ff5;if(_0x18bc0d[_0x51b2bd(0x13a)](_0x3b3ad3))return _0x18bc0d['get'](_0x3b3ad3);const _0x56fcc8=_0x5c29ee['get'](_0x3b3ad3);if(!_0x56fcc8)throw Error(_0x51b2bd(0x158)+_0x3b3ad3+'.');const _0xfe5ed5={'name':'','uri':'','attrs':{},'children':[],'text':''},_0x53cee9=[_0xfe5ed5],_0x6e2abd=new SaxesParser({'xmlns':!![]}),_0x182b98=()=>{const _0x5d1fe0=_0x51b2bd;if(++_0x51ec92>0x1e8480)throw Error(_0x5d1fe0(0x1a1));};_0x6e2abd['on'](_0x51b2bd(0x126),()=>{const _0x146ce4=_0x51b2bd;throw Error(_0x146ce4(0x185));}),_0x6e2abd['on'](_0x51b2bd(0x1a3),_0x3d21e6=>{const _0x123a52=_0x51b2bd;_0x182b98();if(++_0x4311cf>0x7a120||_0x53cee9['length']>0x40)throw Error('Image\x20XML\x20node\x20budget\x20exceeded.');const _0x2c4177={};for(const _0x76efd3 of Object[_0x123a52(0x174)](_0x3d21e6[_0x123a52(0x19f)])){const _0x2a6607=OFFICE_RELS[_0x123a52(0x163)](_0x76efd3[_0x123a52(0x19a)])?'r:'+_0x76efd3['local']:_0x76efd3['uri']?'{'+_0x76efd3['uri']+'}'+_0x76efd3[_0x123a52(0x144)]:_0x76efd3[_0x123a52(0x144)];if(_0x2a6607 in _0x2c4177)throw Error(_0x123a52(0x13d));_0x2c4177[_0x2a6607]=_0x76efd3[_0x123a52(0x130)];}const _0x28c77b={'name':_0x3d21e6[_0x123a52(0x144)],'uri':_0x3d21e6[_0x123a52(0x19a)],'attrs':_0x2c4177,'children':[],'text':''};_0x53cee9['at'](-0x1)['children'][_0x123a52(0x1c1)](_0x28c77b),_0x53cee9['push'](_0x28c77b);}),_0x6e2abd['on'](_0x51b2bd(0x16b),_0x4cbe50=>{const _0xfa9eca=_0x51b2bd;_0x182b98();const _0x2d6b12=_0x53cee9['at'](-0x1);_0x2d6b12[_0xfa9eca(0x16b)]+=_0x4cbe50;if(_0x2d6b12[_0xfa9eca(0x16b)][_0xfa9eca(0x12e)]>0x10000)throw Error(_0xfa9eca(0x187));}),_0x6e2abd['on'](_0x51b2bd(0x134),()=>{_0x182b98(),_0x53cee9['pop']();}),_0x6e2abd['on']('error',_0x30e205=>{throw _0x30e205;}),_0x6e2abd[_0x51b2bd(0x14a)](_0x56fcc8[_0x51b2bd(0x19e)](_0x51b2bd(0x17c)))[_0x51b2bd(0x15e)]();const _0x2fb9f1=one(_0xfe5ed5[_0x51b2bd(0x1b1)],_0x3b3ad3);return _0x18bc0d[_0x51b2bd(0x178)](_0x3b3ad3,_0x2fb9f1),_0x2fb9f1;},_0x2c14ca=new Map(),_0x406c45=_0x24b82c=>{const _0x247ee4=a146_0x2ff5;if(_0x2c14ca[_0x247ee4(0x13a)](_0x24b82c))return _0x2c14ca[_0x247ee4(0x113)](_0x24b82c);const _0x229d03=a146_0x173c06[_0x247ee4(0x12f)][_0x247ee4(0x146)](a146_0x173c06[_0x247ee4(0x12f)][_0x247ee4(0x17e)](_0x24b82c),_0x247ee4(0x173),a146_0x173c06[_0x247ee4(0x12f)][_0x247ee4(0x112)](_0x24b82c)+_0x247ee4(0x122));if(!_0x5c29ee['has'](_0x229d03))return[];const _0x41425a=new Set(),_0x28a48b=_0x221f20(_0x229d03);if(!matches(_0x28a48b,_0x247ee4(0x175)))throw Error(_0x247ee4(0x1b0)+_0x229d03+'.');const _0x413610=children(_0x28a48b,_0x247ee4(0x1c3))[_0x247ee4(0x19b)](_0x242609=>{const _0x3eedfa=_0x247ee4,{Id:_0x511839,Type:_0x19c0dd,Target:_0x59dc71,TargetMode:_0x4d6d6b}=_0x242609['attrs'];if(!_0x511839||_0x41425a['has'](_0x511839)||!_0x19c0dd)throw Error(_0x3eedfa(0x17a)+_0x229d03+'.');return _0x41425a[_0x3eedfa(0x180)](_0x511839),{'id':_0x511839,'type':_0x19c0dd,'target':_0x59dc71??'','mode':_0x4d6d6b};});return _0x2c14ca['set'](_0x24b82c,_0x413610),_0x413610;},_0x53fdb1=(_0x117e1e,_0x40804a)=>{const _0x3a359e=a146_0x2ff5,{target:_0x1672ad,mode:_0x16107d}=_0x40804a;if(_0x16107d&&_0x16107d!==_0x3a359e(0x1ac))throw Error('External\x20image\x20relationship\x20is\x20not\x20supported:\x20'+_0x117e1e+'.');if(!_0x1672ad||_0x1672ad[_0x3a359e(0x163)]('\x5c')||/[?#%\x00-\x20]/[_0x3a359e(0x11a)](_0x1672ad)||/^[a-z][a-z0-9+.-]*:/i[_0x3a359e(0x11a)](_0x1672ad)||_0x1672ad[_0x3a359e(0x168)]('//'))throw Error(_0x3a359e(0x189)+_0x117e1e+'.');const _0x28f958=_0x1672ad['startsWith']('/')?_0x1672ad[_0x3a359e(0x116)](0x1):a146_0x173c06[_0x3a359e(0x12f)][_0x3a359e(0x13c)](a146_0x173c06['posix'][_0x3a359e(0x146)](a146_0x173c06['posix']['dirname'](_0x117e1e),_0x1672ad));if(_0x28f958[_0x3a359e(0x168)](_0x3a359e(0x13f))||_0x28f958==='..'||!_0x28f958[_0x3a359e(0x168)](_0x3a359e(0x14b)))throw Error(_0x3a359e(0x181)+_0x117e1e+'.');return _0x28f958;},_0xd23dad=(_0xe2cfc,_0x453121,_0x6ef013)=>{const _0x589ec6=a146_0x2ff5,_0x52210=_0x406c45(_0xe2cfc)[_0x589ec6(0x16c)](_0x2116d3=>_0x2116d3['id']===_0x453121&&relationshipTypes(_0x6ef013)['includes'](_0x2116d3[_0x589ec6(0x138)]));if(_0x52210['length']!==0x1)throw Error(_0x589ec6(0x143)+_0x6ef013+'\x20relationship\x20in\x20'+_0xe2cfc+'.');return _0x53fdb1(_0xe2cfc,_0x52210[0x0]);},_0xfab911=(_0x262eb3,_0x7acd21)=>{const _0x67dcf6=a146_0x2ff5,_0x39df29=_0x406c45(_0x262eb3)[_0x67dcf6(0x16c)](_0x8cd759=>relationshipTypes(_0x7acd21)[_0x67dcf6(0x163)](_0x8cd759[_0x67dcf6(0x138)]));if(_0x39df29[_0x67dcf6(0x12e)]!==0x1)throw Error(_0x67dcf6(0x143)+_0x7acd21+_0x67dcf6(0x10c)+_0x262eb3+'.');return _0x53fdb1(_0x262eb3,_0x39df29[0x0]);},_0xe204b=_0x3dc4ef(0x147),_0x43e93a=_0x221f20(_0xe204b);if(!matches(_0x43e93a,_0x3dc4ef(0x18b)))throw Error(_0x3dc4ef(0x114));const _0x21d8fb=one(chain(_0x43e93a,_0x3dc4ef(0x140),_0x3dc4ef(0x151))[_0x3dc4ef(0x16c)](_0x120b5e=>_0x120b5e['attrs'][_0x3dc4ef(0x10f)]===_0x2daa8b),_0x3dc4ef(0x18e)),_0x3ed1f0=_0xd23dad(_0xe204b,_0x21d8fb[_0x3dc4ef(0x159)][_0x3dc4ef(0x18c)],_0x3dc4ef(0x18e)),_0x2a7782=_0x221f20(_0x3ed1f0);if(!matches(_0x2a7782,_0x3dc4ef(0x18e)))throw Error(_0x3dc4ef(0x1c2));const _0x4a0b60=chain(_0x2a7782,_0x3dc4ef(0x1b5),_0x3dc4ef(0x170)),_0x33deec=new Map(),_0x1d4a8a=new Set(_0x4a0b60['filter'](_0x52327e=>_0x52327e[_0x3dc4ef(0x159)][_0x3dc4ef(0x182)]==='1'||_0x52327e[_0x3dc4ef(0x159)]['hidden']===_0x3dc4ef(0x148))[_0x3dc4ef(0x19b)](_0x9daea8=>integer(_0x9daea8['attrs']['r'],_0x3dc4ef(0x1a2)))),_0x7e9380=_0x12729a=>{const _0x54bcd9=_0x3dc4ef,_0x22830d=_0x12729a===undefined?0xf:Number(_0x12729a);if(!Number[_0x54bcd9(0x15a)](_0x22830d)||_0x22830d<=0x0||_0x22830d>409.5)throw Error('Invalid\x20worksheet\x20row\x20height\x20for\x20image\x20anchor.');return Math[_0x54bcd9(0x192)](_0x22830d*0x319c);},_0x169b28=_0x7e9380(children(_0x2a7782,_0x3dc4ef(0x142))[0x0]?.[_0x3dc4ef(0x159)]['defaultRowHeight']);for(const _0x42f115 of _0x4a0b60)if(_0x42f115[_0x3dc4ef(0x159)]['ht']!==undefined)_0x33deec[_0x3dc4ef(0x178)](integer(_0x42f115['attrs']['r'],_0x3dc4ef(0x198)),_0x7e9380(_0x42f115[_0x3dc4ef(0x159)]['ht']));const _0xfd6513=[],_0x479133=_0x3ef5bf=>{const _0x15c79e=_0x3dc4ef;if(!_0x11ae24['has'](_0x3ef5bf[_0x15c79e(0x160)]))return;if(++_0x4252d4>0x2710)throw Error(_0x15c79e(0x153));_0xfd6513[_0x15c79e(0x1c1)](_0x1d4a8a['has'](_0x3ef5bf[_0x15c79e(0x170)])?{..._0x3ef5bf,'hiddenRow':!![]}:_0x3ef5bf);},_0x120dba=_0x118aa0=>({'row':integer(one(children(_0x118aa0,_0x3dc4ef(0x170),DRAWING),_0x3dc4ef(0x1ab))[_0x3dc4ef(0x16b)],_0x3dc4ef(0x1ab),0x1869f)+0x1,'col':integer(one(children(_0x118aa0,_0x3dc4ef(0x160)),_0x3dc4ef(0x137))[_0x3dc4ef(0x16b)],_0x3dc4ef(0x137),0xff)+0x1});for(const _0x2a7514 of children(_0x2a7782,_0x3dc4ef(0x1b4))){const _0x455371=_0xd23dad(_0x3ed1f0,_0x2a7514[_0x3dc4ef(0x159)][_0x3dc4ef(0x18c)],'drawing'),_0x13c4da=_0x221f20(_0x455371);if(!matches(_0x13c4da,_0x3dc4ef(0x111)))throw Error('Unsupported\x20drawing\x20namespace.');for(const _0x280a49 of _0x13c4da['children']){if(!['oneCellAnchor','twoCellAnchor',_0x3dc4ef(0x14d)][_0x3dc4ef(0x1ad)](_0x10148a=>matches(_0x280a49,_0x10148a)))continue;if(_0x280a49['name']==='absoluteAnchor')throw Error(_0x3dc4ef(0x12a)+_0x2daa8b+'.');const _0x51c755=_0x120dba(one(children(_0x280a49,_0x3dc4ef(0x157)),_0x3dc4ef(0x190)));if(!_0x11ae24[_0x3dc4ef(0x13a)](_0x51c755['col']))continue;let _0x2cb50d;const _0x14d600=one(children(_0x280a49,'from'),_0x3dc4ef(0x190)),_0x3219ed=integer(one(children(_0x14d600,_0x3dc4ef(0x165)),_0x3dc4ef(0x145))[_0x3dc4ef(0x16b)],_0x3dc4ef(0x145),Number['MAX_SAFE_INTEGER']),_0x1a9e63=_0x33deec[_0x3dc4ef(0x113)](_0x51c755[_0x3dc4ef(0x170)])??_0x169b28;if(_0x3219ed>=_0x1a9e63)throw Error(_0x3dc4ef(0x1c4)+_0x51c755[_0x3dc4ef(0x170)]+'.');if(_0x280a49[_0x3dc4ef(0x10f)]===_0x3dc4ef(0x15f)){const _0x117bb6=one(children(_0x280a49,_0x3dc4ef(0x169)),_0x3dc4ef(0x162)),_0x50fa06=integer(_0x117bb6[_0x3dc4ef(0x159)]['cy'],_0x3dc4ef(0x1a7),Number[_0x3dc4ef(0x18f)]);if(!_0x50fa06||_0x3219ed+_0x50fa06>_0x1a9e63)_0x2cb50d=_0x3dc4ef(0x14f);}if(_0x280a49[_0x3dc4ef(0x10f)]===_0x3dc4ef(0x1b2)){const _0x1bdff3=one(children(_0x280a49,'to'),_0x3dc4ef(0x1c5)),_0x2c5c77=_0x120dba(_0x1bdff3),_0x49747b=integer(one(children(_0x1bdff3,_0x3dc4ef(0x165)),_0x3dc4ef(0x16d))['text'],'anchor\x20end\x20offset',Number[_0x3dc4ef(0x18f)]),_0x17918d=_0x33deec[_0x3dc4ef(0x113)](_0x2c5c77[_0x3dc4ef(0x170)])??_0x169b28;if(_0x49747b>_0x17918d||_0x2c5c77[_0x3dc4ef(0x170)]===_0x51c755[_0x3dc4ef(0x170)]&&_0x49747b<=_0x3219ed)_0x2cb50d=_0x3dc4ef(0x16e);if(_0x2c5c77[_0x3dc4ef(0x170)]<_0x51c755[_0x3dc4ef(0x170)]||_0x2c5c77['row']>_0x51c755['row']+0x1||_0x2c5c77[_0x3dc4ef(0x170)]===_0x51c755[_0x3dc4ef(0x170)]+0x1&&_0x49747b!==0x0)_0x2cb50d='Image\x20anchor\x20spans\x20multiple\x20business\x20rows.';}const _0x34c5c5=chain(_0x280a49,_0x3dc4ef(0x13e),_0x3dc4ef(0x124),'blip');for(const _0x41bf4a of _0x34c5c5){if(_0x41bf4a[_0x3dc4ef(0x159)][_0x3dc4ef(0x197)])throw Error(_0x3dc4ef(0x15c));_0x479133({..._0x51c755,'media':[_0xd23dad(_0x455371,_0x41bf4a['attrs'][_0x3dc4ef(0x1bd)],_0x3dc4ef(0x164))],..._0x2cb50d?{'error':_0x2cb50d}:{}});}if(!_0x34c5c5[_0x3dc4ef(0x12e)])_0x479133({..._0x51c755,'media':[],'error':_0x3dc4ef(0x115)});}}const _0x4a3921=_0xb0cd6a=>{const _0xff9e71=_0x3dc4ef,_0x1d6150=_0x221f20(_0xfab911(_0xe204b,_0xff9e71(0x1bf)));if(!matches(_0x1d6150,_0xff9e71(0x16a)))throw Error(_0xff9e71(0x128));const _0x554538=integer(_0xb0cd6a[_0xff9e71(0x159)]['vm'],_0xff9e71(0x11e));if(!_0x554538)throw Error(_0xff9e71(0x188));const _0x350458=children(one(children(_0x1d6150,'valueMetadata'),_0xff9e71(0x154)),'bk')[_0x554538-0x1];if(!_0x350458)throw Error(_0xff9e71(0x127));const _0xb34403=one(children(_0x350458,'rc'),_0xff9e71(0x17b)),_0x50a9bb=integer(_0xb34403['attrs']['t'],'metadata\x20type\x20index'),_0x9d4a98=children(one(children(_0x1d6150,_0xff9e71(0x17f)),_0xff9e71(0x172)),_0xff9e71(0x11f))[_0x50a9bb-0x1];if(!_0x50a9bb||_0x9d4a98?.[_0xff9e71(0x159)]['name']!=='XLRICHVALUE')throw Error(_0xff9e71(0x118));const _0x38aeb1=one(children(_0x1d6150,_0xff9e71(0x1bb))[_0xff9e71(0x16c)](_0x22b29d=>_0x22b29d['attrs']['name']===_0xff9e71(0x184)),_0xff9e71(0x149)),_0x4a9da9=children(_0x38aeb1,'bk')[integer(_0xb34403[_0xff9e71(0x159)]['v'],'future\x20metadata\x20index')];if(!_0x4a9da9)throw Error(_0xff9e71(0x15d));const _0x2d67f0=chain(_0x4a9da9,_0xff9e71(0x11c))['flatMap'](_0x53a5fb=>children(_0x53a5fb,_0xff9e71(0x169),SHEET))[_0xff9e71(0x16c)](_0x5f49c7=>_0x5f49c7['attrs'][_0xff9e71(0x19a)]?.['toLowerCase']()==='{3e2802c4-a4d2-4d8b-9148-e3be6c30e623}'),_0x3c7749=integer(one(_0x2d67f0[_0xff9e71(0x117)](_0xc72f3e=>children(_0xc72f3e,_0xff9e71(0x1ba))),_0xff9e71(0x1a5))['attrs']['i'],'rich\x20value\x20index'),_0x3d2160=_0x221f20(_0xfab911(_0xe204b,_0xff9e71(0x132)));if(!matches(_0x3d2160,'rvData'))throw Error(_0xff9e71(0x1a6));const _0x3ff502=children(_0x3d2160,'rv')[_0x3c7749];if(!_0x3ff502)throw Error(_0xff9e71(0x179));const _0x424f78=_0x221f20(_0xfab911(_0xe204b,_0xff9e71(0x19d)));if(!matches(_0x424f78,'rvStructures'))throw Error('Unsupported\x20rich\x20structure\x20namespace.');const _0x476565=children(_0x424f78,'s')[integer(_0x3ff502['attrs']['s'],'rich\x20structure\x20index')];if(!_0x476565||_0x476565[_0xff9e71(0x159)]['t']!==_0xff9e71(0x1aa))throw Error(_0xff9e71(0x1bc));const _0x2b15d7=children(_0x476565,'k'),_0x324db3=_0x2b15d7[_0xff9e71(0x19b)]((_0x253da0,_0x1f7e5b)=>_0x253da0['attrs']['n']===_0xff9e71(0x1b6)?_0x1f7e5b:-0x1)[_0xff9e71(0x16c)](_0x4b6548=>_0x4b6548>=0x0);if(_0x324db3['length']!==0x1)throw Error(_0xff9e71(0x135));const _0x129460=children(_0x3ff502,'v',RICH)[_0x324db3[0x0]];if(!_0x129460)throw Error(_0xff9e71(0x167));const _0x49df32=_0xfab911(_0xe204b,_0xff9e71(0x12c)),_0x13ddf0=_0x221f20(_0x49df32);if(!matches(_0x13ddf0,'richValueRels'))throw Error(_0xff9e71(0x186));const _0x380831=children(_0x13ddf0,_0xff9e71(0x1b3))[integer(_0x129460[_0xff9e71(0x16b)],_0xff9e71(0x1c0))];if(!_0x380831)throw Error(_0xff9e71(0x1ae));return _0xd23dad(_0x49df32,_0x380831['attrs']['r:id'],_0xff9e71(0x164));};let _0x144b00;const _0x43501a=_0x2a889a=>{const _0x5eb11d=_0x3dc4ef;if(!_0x144b00){_0x144b00=new Map();const _0x28dc23=_0x406c45(_0xe204b)[_0x5eb11d(0x16c)](_0xf0e250=>[...relationshipTypes(_0x5eb11d(0x176)),...relationshipTypes('cellImages')][_0x5eb11d(0x163)](_0xf0e250[_0x5eb11d(0x138)]));if(!_0x28dc23[_0x5eb11d(0x12e)]&&_0x5c29ee[_0x5eb11d(0x13a)]('xl/cellimages.xml'))_0x28dc23[_0x5eb11d(0x1c1)]({'id':'','type':'','target':'/xl/cellimages.xml'});if(_0x28dc23['length']!==0x1)throw Error(_0x5eb11d(0x199));const _0x1949ec=_0x53fdb1(_0xe204b,_0x28dc23[0x0]),_0x31f799=_0x221f20(_0x1949ec);if(!matches(_0x31f799,_0x5eb11d(0x18a)))throw Error(_0x5eb11d(0x11d));for(const _0x46d5b2 of children(_0x31f799,_0x5eb11d(0x176))){const _0x4627df=one(chain(_0x46d5b2,_0x5eb11d(0x13e),'nvPicPr','cNvPr'),_0x5eb11d(0x191))[_0x5eb11d(0x159)]['name'];if(!_0x4627df||_0x144b00[_0x5eb11d(0x13a)](_0x4627df))throw Error(_0x5eb11d(0x195));const _0x4cb435=one(chain(_0x46d5b2,_0x5eb11d(0x13e),_0x5eb11d(0x124),'blip'),_0x5eb11d(0x1b8));if(_0x4cb435[_0x5eb11d(0x159)]['r:link'])throw Error(_0x5eb11d(0x1a0));_0x144b00['set'](_0x4627df,_0xd23dad(_0x1949ec,_0x4cb435['attrs'][_0x5eb11d(0x1bd)],_0x5eb11d(0x164)));}}const _0x36ca07=_0x144b00['get'](_0x2a889a);if(!_0x36ca07)throw Error(_0x5eb11d(0x1af)+_0x2a889a+'.');return _0x36ca07;},_0xc4d4f4=new Set();for(const _0x482693 of _0x4a0b60[_0x3dc4ef(0x117)](_0xedb2a4=>children(_0xedb2a4,'c'))){const _0x263766=/^([A-Z]+)([1-9]\d*)$/[_0x3dc4ef(0x110)](_0x482693['attrs']['r']??'');if(!_0x263766)continue;let _0x4346e1=0x0;for(const _0x33d957 of _0x263766[0x1])_0x4346e1=_0x4346e1*0x1a+_0x33d957[_0x3dc4ef(0x1b7)](0x0)-0x40;if(!_0x11ae24['has'](_0x4346e1))continue;const _0x262f5c=integer(_0x263766[0x2],_0x3dc4ef(0x1a4));if(_0xc4d4f4[_0x3dc4ef(0x13a)](_0x482693[_0x3dc4ef(0x159)]['r']))throw Error(_0x3dc4ef(0x123));_0xc4d4f4[_0x3dc4ef(0x180)](_0x482693[_0x3dc4ef(0x159)]['r']);const _0x3e2765=children(_0x482693,'f');if(!_0x482693[_0x3dc4ef(0x159)]['vm']&&!_0x3e2765['length'])continue;try{if(_0x262f5c<0x1||_0x4346e1>0x100)throw Error(_0x3dc4ef(0x166));let _0x580526;if(_0x482693[_0x3dc4ef(0x159)]['vm']){if(_0x3e2765[_0x3dc4ef(0x12e)])throw Error('Mixed\x20formula\x20and\x20rich\x20image\x20metadata\x20is\x20unsupported.');if(_0x482693['attrs']['t']!=='e'||children(_0x482693,'v')[_0x3dc4ef(0x12e)]!==0x1||children(_0x482693,'v')[0x0][_0x3dc4ef(0x16b)]!=='#VALUE!')throw Error(_0x3dc4ef(0x12b));_0x580526=_0x4a3921(_0x482693);}else{const _0x761a7a=one(_0x3e2765,_0x3dc4ef(0x171));if(_0x761a7a[_0x3dc4ef(0x159)]['t']==='shared'||_0x761a7a[_0x3dc4ef(0x159)]['si'])throw Error(_0x3dc4ef(0x121));const _0x362178=/^\s*=?\s*@?(?:_xlfn\.)?DISPIMG\(\s*"((?:[^"]|"")+)"\s*(?:,\s*[01]\s*)?\)\s*$/i['exec'](_0x761a7a[_0x3dc4ef(0x16b)]);if(!_0x362178)throw Error(_0x3dc4ef(0x183));_0x580526=_0x43501a(_0x362178[0x1][_0x3dc4ef(0x133)](/""/g,'\x22'));}_0x479133({'row':_0x262f5c,'col':_0x4346e1,'media':[_0x580526],'nativeCell':!![]});}catch(_0x46ac83){_0x479133({'row':_0x262f5c,'col':_0x4346e1,'media':[],'nativeCell':!![],'error':_0x46ac83[_0x3dc4ef(0x13b)]});}}return _0xfd6513;}
|
|
1
|
+
function a146_0x1d90(_0x41c292,_0x3e2d04){_0x41c292=_0x41c292-0x131;const _0x3dc910=a146_0x3dc9();let _0x1d907e=_0x3dc910[_0x41c292];return _0x1d907e;}const a146_0xd88b83=a146_0x1d90;(function(_0x1ed335,_0x5dacad){const _0x5e24c3=a146_0x1d90,_0x49de78=_0x1ed335();while(!![]){try{const _0x536a16=-parseInt(_0x5e24c3(0x14a))/0x1*(-parseInt(_0x5e24c3(0x1bc))/0x2)+parseInt(_0x5e24c3(0x177))/0x3+parseInt(_0x5e24c3(0x1a1))/0x4*(parseInt(_0x5e24c3(0x13b))/0x5)+parseInt(_0x5e24c3(0x139))/0x6+parseInt(_0x5e24c3(0x132))/0x7+-parseInt(_0x5e24c3(0x184))/0x8+-parseInt(_0x5e24c3(0x1c5))/0x9;if(_0x536a16===_0x5dacad)break;else _0x49de78['push'](_0x49de78['shift']());}catch(_0x528298){_0x49de78['push'](_0x49de78['shift']());}}}(a146_0x3dc9,0x91d2d));function a146_0x3dc9(){const _0x41b340=['Image\x20coordinate\x20exceeds\x20worksheet\x20bounds.','rvb','Value\x20metadata\x20index\x20must\x20be\x20one-based.','richValueRel','rowOff','uri','image\x20row\x20height\x20coordinate','rvStructures','metadataTypes','reduce','rdRichValue','metadata','Unsupported\x20workbook\x20namespace.','Mixed\x20formula\x20and\x20rich\x20image\x20metadata\x20is\x20unsupported.','worksheet','Ambiguous\x20XML\x20attribute.','Missing\x20rich\x20value.','149715tYuBdC','from','XML\x20DTD/entities\x20are\x20not\x20supported.','../','Unsupported\x20drawing\x20image.','XLRICHVALUE','Image\x20XML\x20node\x20budget\x20exceeded.','Missing\x20WPS\x20image\x20ID:\x20','pop','row','cellImage','drawing','type','2889328GkeWRc','hidden','rich\x20metadata\x20record','toString','cNvPr','add','WPS\x20image\x20name','includes','xl/','utf8','filter','charCodeAt','rich\x20value\x20binding','Unsupported\x20drawing\x20namespace.','colOff','join','blip','Relationship','doctype','Duplicate\x20mapped\x20image\x20cell.','opentag','External\x20WPS\x20image\x20links\x20are\x20not\x20supported.','ext','rdRichValueStructure','image','.rels','image\x20height','name','dirname','2236slxjWi','http://schemas.openxmlformats.org/drawingml/2006/main','local','image\x20extent','write','closetag','workbook','Image\x20anchor\x20spans\x20multiple\x20business\x20rows.','Missing\x20or\x20ambiguous\x20','Unsupported\x20image\x20formula;\x20expected\x20a\x20standalone\x20DISPIMG\x20literal.','value','col','Image\x20XML\x20event\x20budget\x20exceeded.','Relationship\x20target\x20escapes\x20workbook:\x20','Unsupported\x20mapped\x20cell\x20metadata\x20type.','http://purl.oclc.org/ooxml/drawingml/main','basename','rich\x20future\x20metadata','attrs','Missing\x20local\x20image\x20identifier\x20value.','length','http://schemas.openxmlformats.org/package/2006/relationships','startsWith','nvPicPr','\x20relationship\x20in\x20','http://purl.oclc.org/ooxml/officeDocument/relationships','metadataType','468268isTMoI','extLst','sheetData','shared','Unsupported\x20worksheet\x20namespace.','Unsupported\x20mapped\x20rich\x20value\x20structure.','message','image\x20formula','isSafeInteger','18079398UGicnh','values','sheets','richValueRels','http://purl.oclc.org/ooxml/spreadsheetml/main','anchor\x20column','isFinite','rel','some','xl/cellimages.xml','http://schemas.microsoft.com/office/2017/06/relationships/','round','replace','hidden\x20image\x20row','Unsupported\x20rich\x20structure\x20namespace.','Shared\x20image\x20formulas\x20are\x20not\x20supported.','text','MAX_SAFE_INTEGER','cellImages','http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing','http://schemas.microsoft.com/office/spreadsheetml/2017/richdata','posix','5902120SsMuOC','Absolute\x20image\x20anchor\x20cannot\x20be\x20mapped\x20in\x20worksheet\x20','anchor\x20end\x20offset','oneCellAnchor','wsDr','http://schemas.openxmlformats.org/spreadsheetml/2006/main','absoluteAnchor','6032970oUryuy','http://schemas.openxmlformats.org/officeDocument/2006/relationships','7465YlPFRO','{3e2802c4-a4d2-4d8b-9148-e3be6c30e623}','rich\x20structure\x20index','test','sheetFormatPr','r:embed','anchor\x20start','_localImage','toLowerCase','Missing\x20or\x20ambiguous\x20WPS\x20cell\x20image\x20part.','flatMap','Invalid\x20image\x20start\x20offset\x20at\x20row\x20','blipFill','Unsupported\x20relationship\x20namespace\x20in\x20','exec','1kQBGLx','Missing\x20or\x20ambiguous\x20local\x20image\x20identifier.','set','push','Unsupported\x20rich\x20image\x20relation\x20namespace.','#VALUE!','_rvRel:LocalImageIdentifier','futureMetadata','children','anchor\x20start\x20offset','pic','get','sheetMetadata','Missing\x20value\x20metadata\x20block.','has','slice','image\x20cell\x20row','Image\x20XML\x20text\x20exceeds\x2064\x20KB.','twoCellAnchor','map','Invalid\x20worksheet\x20row\x20height\x20for\x20image\x20anchor.','valueMetadata','rich\x20image\x20relationship\x20index','Relationships','r:link','External\x20image\x20relationship\x20is\x20not\x20supported:\x20','_rels','r:id'];a146_0x3dc9=function(){return _0x41b340;};return a146_0x3dc9();}import a146_0x4352ed from'node:path';import{SaxesParser}from'saxes';const SHEET=[a146_0xd88b83(0x137),a146_0xd88b83(0x1c9)],DRAWING=[a146_0xd88b83(0x1d8),'http://purl.oclc.org/ooxml/drawingml/spreadsheetDrawing'],DRAWING_MAIN=[a146_0xd88b83(0x1a2),a146_0xd88b83(0x1b0)],OFFICE_RELS=[a146_0xd88b83(0x13a),a146_0xd88b83(0x1ba)],PACKAGE=[a146_0xd88b83(0x1b6)],RICH=[a146_0xd88b83(0x1d9)],RICH_RELS=['http://schemas.microsoft.com/office/spreadsheetml/2022/richvaluerel'],WPS=['http://www.wps.cn/officeDocument/2017/etCustomData'],DEFAULT_NS=Object['fromEntries']([...[a146_0xd88b83(0x1a7),a146_0xd88b83(0x1c7),'sheet',a146_0xd88b83(0x174),a146_0xd88b83(0x1be),a146_0xd88b83(0x180),'c','f','v',a146_0xd88b83(0x13f),a146_0xd88b83(0x182),a146_0xd88b83(0x171),a146_0xd88b83(0x16e),a146_0xd88b83(0x1bb),a146_0xd88b83(0x151),a146_0xd88b83(0x15f),'bk','rc',a146_0xd88b83(0x1bd)][a146_0xd88b83(0x15d)](_0x1b34f9=>[_0x1b34f9,SHEET]),...[a146_0xd88b83(0x136),a146_0xd88b83(0x135),a146_0xd88b83(0x15c),a146_0xd88b83(0x138),a146_0xd88b83(0x178),'to',a146_0xd88b83(0x1ac),a146_0xd88b83(0x192),a146_0xd88b83(0x16a),a146_0xd88b83(0x19a),a146_0xd88b83(0x154),a146_0xd88b83(0x1b8),a146_0xd88b83(0x188),a146_0xd88b83(0x147)][a146_0xd88b83(0x15d)](_0x2ef195=>[_0x2ef195,DRAWING]),...[a146_0xd88b83(0x167),'rvData','rv','rvStructures','s','k'][a146_0xd88b83(0x15d)](_0x1c33fd=>[_0x1c33fd,RICH]),['blip',DRAWING_MAIN],[a146_0xd88b83(0x1c8),RICH_RELS],[a146_0xd88b83(0x1cc),RICH_RELS],[a146_0xd88b83(0x161),PACKAGE],[a146_0xd88b83(0x195),PACKAGE],[a146_0xd88b83(0x1d7),WPS],[a146_0xd88b83(0x181),WPS]]),matches=(_0x19fa38,_0x361cfb,_0x5b49c2=DEFAULT_NS[_0x361cfb]??[])=>_0x19fa38['name']===_0x361cfb&&_0x5b49c2['includes'](_0x19fa38[a146_0xd88b83(0x16b)]),children=(_0x45eca4,_0x33b310,_0x2d5c2f=DEFAULT_NS[_0x33b310])=>_0x45eca4['children'][a146_0xd88b83(0x18e)](_0x369e8b=>matches(_0x369e8b,_0x33b310,_0x2d5c2f)),chain=(_0x149231,..._0x3ad385)=>_0x3ad385[a146_0xd88b83(0x16f)]((_0x2afec9,_0x51c677)=>_0x2afec9[a146_0xd88b83(0x145)](_0x48ebfd=>children(_0x48ebfd,_0x51c677)),[_0x149231]),relationshipTypes=_0x24db82=>{const _0x2ede95=a146_0xd88b83;if(['rdRichValue',_0x2ede95(0x19b)][_0x2ede95(0x18b)](_0x24db82))return[_0x2ede95(0x1cf)+_0x24db82];if(_0x24db82===_0x2ede95(0x169))return['http://schemas.microsoft.com/office/2022/10/relationships/richValueRel'];if(_0x24db82===_0x2ede95(0x181)||_0x24db82===_0x2ede95(0x1d7))return['http://www.wps.cn/officeDocument/2017/relationships/'+_0x24db82];return OFFICE_RELS[_0x2ede95(0x15d)](_0xe4901=>_0xe4901+'/'+_0x24db82);};function one(_0x5370f2,_0x18f5dc){const _0x398567=a146_0xd88b83;if(_0x5370f2[_0x398567(0x1b5)]!==0x1)throw Error(_0x398567(0x1a9)+_0x18f5dc+'.');return _0x5370f2[0x0];}function integer(_0x56f405,_0x4c6c08,_0x391fd3=0x186a0){const _0x5b5f36=a146_0xd88b83;if(!_0x56f405||!/^\d+$/[_0x5b5f36(0x13e)](_0x56f405)||!Number[_0x5b5f36(0x1c4)](Number(_0x56f405))||Number(_0x56f405)>_0x391fd3)throw Error('Invalid\x20'+_0x4c6c08+'.');return Number(_0x56f405);}export function resolveWorksheetImages(_0x4132fb,_0x1e2c29,_0x417885){const _0x53a344=a146_0xd88b83;let _0x1fbb11=0x0,_0x3058f2=0x0,_0x521028=0x0;const _0x3b84da=new Map(),_0x88534e=_0x10e90c=>{const _0x38daec=a146_0x1d90;if(_0x3b84da['has'](_0x10e90c))return _0x3b84da['get'](_0x10e90c);const _0x2429cd=_0x4132fb[_0x38daec(0x155)](_0x10e90c);if(!_0x2429cd)throw Error('Missing\x20XLSX\x20part:\x20'+_0x10e90c+'.');const _0x867a81={'name':'','uri':'','attrs':{},'children':[],'text':''},_0x1d954e=[_0x867a81],_0x2177d3=new SaxesParser({'xmlns':!![]}),_0x93eab8=()=>{const _0x2f7fa3=_0x38daec;if(++_0x3058f2>0x1e8480)throw Error(_0x2f7fa3(0x1ad));};_0x2177d3['on'](_0x38daec(0x196),()=>{const _0x523ee8=_0x38daec;throw Error(_0x523ee8(0x179));}),_0x2177d3['on'](_0x38daec(0x198),_0x52066a=>{const _0xce2c4f=_0x38daec;_0x93eab8();if(++_0x1fbb11>0x7a120||_0x1d954e[_0xce2c4f(0x1b5)]>0x40)throw Error(_0xce2c4f(0x17d));const _0x2c9067={};for(const _0x1a671a of Object[_0xce2c4f(0x1c6)](_0x52066a['attributes'])){const _0x1bec18=OFFICE_RELS['includes'](_0x1a671a[_0xce2c4f(0x16b)])?'r:'+_0x1a671a[_0xce2c4f(0x1a3)]:_0x1a671a[_0xce2c4f(0x16b)]?'{'+_0x1a671a[_0xce2c4f(0x16b)]+'}'+_0x1a671a[_0xce2c4f(0x1a3)]:_0x1a671a[_0xce2c4f(0x1a3)];if(_0x1bec18 in _0x2c9067)throw Error(_0xce2c4f(0x175));_0x2c9067[_0x1bec18]=_0x1a671a[_0xce2c4f(0x1ab)];}const _0x5aa83c={'name':_0x52066a[_0xce2c4f(0x1a3)],'uri':_0x52066a[_0xce2c4f(0x16b)],'attrs':_0x2c9067,'children':[],'text':''};_0x1d954e['at'](-0x1)[_0xce2c4f(0x152)][_0xce2c4f(0x14d)](_0x5aa83c),_0x1d954e[_0xce2c4f(0x14d)](_0x5aa83c);}),_0x2177d3['on'](_0x38daec(0x1d5),_0x38e0d4=>{const _0x2ef9bd=_0x38daec;_0x93eab8();const _0x2bdabc=_0x1d954e['at'](-0x1);_0x2bdabc['text']+=_0x38e0d4;if(_0x2bdabc[_0x2ef9bd(0x1d5)][_0x2ef9bd(0x1b5)]>0x10000)throw Error(_0x2ef9bd(0x15b));}),_0x2177d3['on'](_0x38daec(0x1a6),()=>{const _0x17cd2e=_0x38daec;_0x93eab8(),_0x1d954e[_0x17cd2e(0x17f)]();}),_0x2177d3['on']('error',_0x4dfe57=>{throw _0x4dfe57;}),_0x2177d3[_0x38daec(0x1a5)](_0x2429cd[_0x38daec(0x187)](_0x38daec(0x18d)))['close']();const _0x51190a=one(_0x867a81[_0x38daec(0x152)],_0x10e90c);return _0x3b84da['set'](_0x10e90c,_0x51190a),_0x51190a;},_0x5eb92d=new Map(),_0x553747=_0x2b9dd2=>{const _0x128dff=a146_0x1d90;if(_0x5eb92d['has'](_0x2b9dd2))return _0x5eb92d[_0x128dff(0x155)](_0x2b9dd2);const _0x1b961c=a146_0x4352ed[_0x128dff(0x131)][_0x128dff(0x193)](a146_0x4352ed[_0x128dff(0x131)]['dirname'](_0x2b9dd2),_0x128dff(0x164),a146_0x4352ed['posix'][_0x128dff(0x1b1)](_0x2b9dd2)+_0x128dff(0x19d));if(!_0x4132fb[_0x128dff(0x158)](_0x1b961c))return[];const _0x586008=new Set(),_0x2f4c6a=_0x88534e(_0x1b961c);if(!matches(_0x2f4c6a,'Relationships'))throw Error(_0x128dff(0x148)+_0x1b961c+'.');const _0x57aa47=children(_0x2f4c6a,_0x128dff(0x195))[_0x128dff(0x15d)](_0x17dc00=>{const _0x3ff310=_0x128dff,{Id:_0x171f98,Type:_0x24dcbb,Target:_0x1bf79b,TargetMode:_0xd9383e}=_0x17dc00[_0x3ff310(0x1b3)];if(!_0x171f98||_0x586008[_0x3ff310(0x158)](_0x171f98)||!_0x24dcbb)throw Error('Invalid\x20or\x20duplicate\x20relationship\x20in\x20'+_0x1b961c+'.');return _0x586008[_0x3ff310(0x189)](_0x171f98),{'id':_0x171f98,'type':_0x24dcbb,'target':_0x1bf79b??'','mode':_0xd9383e};});return _0x5eb92d['set'](_0x2b9dd2,_0x57aa47),_0x57aa47;},_0x2975df=(_0x46ebdb,_0x561351)=>{const _0x12f1cf=a146_0x1d90,{target:_0x3d1c3d,mode:_0x26ed2b}=_0x561351;if(_0x26ed2b&&_0x26ed2b!=='Internal')throw Error(_0x12f1cf(0x163)+_0x46ebdb+'.');if(!_0x3d1c3d||_0x3d1c3d[_0x12f1cf(0x18b)]('\x5c')||/[?#%\x00-\x20]/[_0x12f1cf(0x13e)](_0x3d1c3d)||/^[a-z][a-z0-9+.-]*:/i['test'](_0x3d1c3d)||_0x3d1c3d['startsWith']('//'))throw Error('Invalid\x20relationship\x20target:\x20'+_0x46ebdb+'.');const _0xc39de7=_0x3d1c3d[_0x12f1cf(0x1b7)]('/')?_0x3d1c3d[_0x12f1cf(0x159)](0x1):a146_0x4352ed[_0x12f1cf(0x131)]['normalize'](a146_0x4352ed[_0x12f1cf(0x131)][_0x12f1cf(0x193)](a146_0x4352ed[_0x12f1cf(0x131)][_0x12f1cf(0x1a0)](_0x46ebdb),_0x3d1c3d));if(_0xc39de7['startsWith'](_0x12f1cf(0x17a))||_0xc39de7==='..'||!_0xc39de7[_0x12f1cf(0x1b7)](_0x12f1cf(0x18c)))throw Error(_0x12f1cf(0x1ae)+_0x46ebdb+'.');return _0xc39de7;},_0x4e8ced=(_0x29ac61,_0x322889,_0x1064c7)=>{const _0x27e95f=a146_0x1d90,_0x20cacf=_0x553747(_0x29ac61)[_0x27e95f(0x18e)](_0x1176d2=>_0x1176d2['id']===_0x322889&&relationshipTypes(_0x1064c7)[_0x27e95f(0x18b)](_0x1176d2[_0x27e95f(0x183)]));if(_0x20cacf['length']!==0x1)throw Error(_0x27e95f(0x1a9)+_0x1064c7+'\x20relationship\x20in\x20'+_0x29ac61+'.');return _0x2975df(_0x29ac61,_0x20cacf[0x0]);},_0x556a73=(_0x22e354,_0x24c245)=>{const _0x3f5bec=a146_0x1d90,_0x1e394d=_0x553747(_0x22e354)[_0x3f5bec(0x18e)](_0x48f2bb=>relationshipTypes(_0x24c245)['includes'](_0x48f2bb['type']));if(_0x1e394d[_0x3f5bec(0x1b5)]!==0x1)throw Error(_0x3f5bec(0x1a9)+_0x24c245+_0x3f5bec(0x1b9)+_0x22e354+'.');return _0x2975df(_0x22e354,_0x1e394d[0x0]);},_0x145692='xl/workbook.xml',_0x82be55=_0x88534e(_0x145692);if(!matches(_0x82be55,_0x53a344(0x1a7)))throw Error(_0x53a344(0x172));const _0x1c21d2=one(chain(_0x82be55,_0x53a344(0x1c7),'sheet')[_0x53a344(0x18e)](_0x34291f=>_0x34291f[_0x53a344(0x1b3)]['name']===_0x1e2c29),_0x53a344(0x174)),_0x6c683e=_0x4e8ced(_0x145692,_0x1c21d2[_0x53a344(0x1b3)][_0x53a344(0x165)],'worksheet'),_0x4e1e1b=_0x88534e(_0x6c683e);if(!matches(_0x4e1e1b,_0x53a344(0x174)))throw Error(_0x53a344(0x1c0));const _0x562e37=chain(_0x4e1e1b,_0x53a344(0x1be),_0x53a344(0x180)),_0x1a0d89=new Map(),_0x2fbe9e=new Set(_0x562e37[_0x53a344(0x18e)](_0x55a6ee=>_0x55a6ee['attrs'][_0x53a344(0x185)]==='1'||_0x55a6ee['attrs'][_0x53a344(0x185)]==='true')[_0x53a344(0x15d)](_0xd8b794=>integer(_0xd8b794[_0x53a344(0x1b3)]['r'],_0x53a344(0x1d2)))),_0x155a1c=_0xf60d6f=>{const _0x3598ad=_0x53a344,_0x58493b=_0xf60d6f===undefined?0xf:Number(_0xf60d6f);if(!Number[_0x3598ad(0x1cb)](_0x58493b)||_0x58493b<=0x0||_0x58493b>409.5)throw Error(_0x3598ad(0x15e));return Math[_0x3598ad(0x1d0)](_0x58493b*0x319c);},_0x560a63=_0x155a1c(children(_0x4e1e1b,_0x53a344(0x13f))[0x0]?.[_0x53a344(0x1b3)]['defaultRowHeight']);for(const _0x2e94cc of _0x562e37)if(_0x2e94cc[_0x53a344(0x1b3)]['ht']!==undefined)_0x1a0d89[_0x53a344(0x14c)](integer(_0x2e94cc[_0x53a344(0x1b3)]['r'],_0x53a344(0x16c)),_0x155a1c(_0x2e94cc[_0x53a344(0x1b3)]['ht']));const _0x534e3a=[],_0x4d60b4=_0x4345a3=>{const _0x33b4a9=_0x53a344;if(!_0x417885[_0x33b4a9(0x158)](_0x4345a3[_0x33b4a9(0x1ac)]))return;if(++_0x521028>0x2710)throw Error('Workbook\x20exceeds\x2010000\x20image\x20occurrences.');_0x534e3a['push'](_0x2fbe9e[_0x33b4a9(0x158)](_0x4345a3['row'])?{..._0x4345a3,'hiddenRow':!![]}:_0x4345a3);},_0x2b69cb=_0x4e9479=>({'row':integer(one(children(_0x4e9479,_0x53a344(0x180),DRAWING),'anchor\x20row')[_0x53a344(0x1d5)],'anchor\x20row',0x1869f)+0x1,'col':integer(one(children(_0x4e9479,_0x53a344(0x1ac)),_0x53a344(0x1ca))['text'],_0x53a344(0x1ca),0xff)+0x1});for(const _0x4cff1a of children(_0x4e1e1b,'drawing')){const _0x4641b8=_0x4e8ced(_0x6c683e,_0x4cff1a[_0x53a344(0x1b3)][_0x53a344(0x165)],_0x53a344(0x182)),_0x4b780e=_0x88534e(_0x4641b8);if(!matches(_0x4b780e,'wsDr'))throw Error(_0x53a344(0x191));for(const _0x55f291 of _0x4b780e[_0x53a344(0x152)]){if(![_0x53a344(0x135),_0x53a344(0x15c),'absoluteAnchor'][_0x53a344(0x1cd)](_0x5bc92f=>matches(_0x55f291,_0x5bc92f)))continue;if(_0x55f291[_0x53a344(0x19f)]==='absoluteAnchor')throw Error(_0x53a344(0x133)+_0x1e2c29+'.');const _0x30f02b=_0x2b69cb(one(children(_0x55f291,_0x53a344(0x178)),_0x53a344(0x141)));if(!_0x417885[_0x53a344(0x158)](_0x30f02b['col']))continue;let _0x2c804e;const _0x1ab592=one(children(_0x55f291,_0x53a344(0x178)),'anchor\x20start'),_0x135009=integer(one(children(_0x1ab592,_0x53a344(0x16a)),'anchor\x20start\x20offset')[_0x53a344(0x1d5)],_0x53a344(0x153),Number[_0x53a344(0x1d6)]),_0x5ea848=_0x1a0d89[_0x53a344(0x155)](_0x30f02b[_0x53a344(0x180)])??_0x560a63;if(_0x135009>=_0x5ea848)throw Error(_0x53a344(0x146)+_0x30f02b[_0x53a344(0x180)]+'.');if(_0x55f291['name']===_0x53a344(0x135)){const _0x1fe525=one(children(_0x55f291,_0x53a344(0x19a)),_0x53a344(0x1a4)),_0x26f45c=integer(_0x1fe525[_0x53a344(0x1b3)]['cy'],_0x53a344(0x19e),Number[_0x53a344(0x1d6)]);if(!_0x26f45c||_0x135009+_0x26f45c>_0x5ea848)_0x2c804e=_0x53a344(0x1a8);}if(_0x55f291[_0x53a344(0x19f)]===_0x53a344(0x15c)){const _0x32a2cb=one(children(_0x55f291,'to'),'anchor\x20end'),_0x22832a=_0x2b69cb(_0x32a2cb),_0x5d22bd=integer(one(children(_0x32a2cb,_0x53a344(0x16a)),_0x53a344(0x134))[_0x53a344(0x1d5)],_0x53a344(0x134),Number[_0x53a344(0x1d6)]),_0x52f36e=_0x1a0d89['get'](_0x22832a[_0x53a344(0x180)])??_0x560a63;if(_0x5d22bd>_0x52f36e||_0x22832a[_0x53a344(0x180)]===_0x30f02b[_0x53a344(0x180)]&&_0x5d22bd<=_0x135009)_0x2c804e='Image\x20anchor\x20has\x20invalid\x20or\x20reversed\x20row\x20offsets.';if(_0x22832a[_0x53a344(0x180)]<_0x30f02b['row']||_0x22832a[_0x53a344(0x180)]>_0x30f02b[_0x53a344(0x180)]+0x1||_0x22832a['row']===_0x30f02b['row']+0x1&&_0x5d22bd!==0x0)_0x2c804e=_0x53a344(0x1a8);}const _0x2b62ca=chain(_0x55f291,_0x53a344(0x154),_0x53a344(0x147),_0x53a344(0x194));for(const _0x40f030 of _0x2b62ca){if(_0x40f030[_0x53a344(0x1b3)]['r:link'])throw Error('External\x20image\x20links\x20are\x20not\x20supported.');_0x4d60b4({..._0x30f02b,'media':[_0x4e8ced(_0x4641b8,_0x40f030[_0x53a344(0x1b3)]['r:embed'],_0x53a344(0x19c))],..._0x2c804e?{'error':_0x2c804e}:{}});}if(!_0x2b62ca[_0x53a344(0x1b5)])_0x4d60b4({..._0x30f02b,'media':[],'error':_0x53a344(0x17b)});}}const _0x3bd37d=_0x3c10ca=>{const _0x22dc72=_0x53a344,_0x5d2535=_0x88534e(_0x556a73(_0x145692,_0x22dc72(0x156)));if(!matches(_0x5d2535,_0x22dc72(0x171)))throw Error('Unsupported\x20metadata\x20namespace.');const _0x127bba=integer(_0x3c10ca['attrs']['vm'],'value\x20metadata\x20index');if(!_0x127bba)throw Error(_0x22dc72(0x168));const _0x275bb6=children(one(children(_0x5d2535,_0x22dc72(0x15f)),_0x22dc72(0x15f)),'bk')[_0x127bba-0x1];if(!_0x275bb6)throw Error(_0x22dc72(0x157));const _0x328259=one(children(_0x275bb6,'rc'),_0x22dc72(0x186)),_0x53b358=integer(_0x328259['attrs']['t'],'metadata\x20type\x20index'),_0x387252=children(one(children(_0x5d2535,_0x22dc72(0x16e)),'metadata\x20types'),_0x22dc72(0x1bb))[_0x53b358-0x1];if(!_0x53b358||_0x387252?.['attrs'][_0x22dc72(0x19f)]!==_0x22dc72(0x17c))throw Error(_0x22dc72(0x1af));const _0x482685=one(children(_0x5d2535,_0x22dc72(0x151))[_0x22dc72(0x18e)](_0x489a2f=>_0x489a2f[_0x22dc72(0x1b3)][_0x22dc72(0x19f)]===_0x22dc72(0x17c)),_0x22dc72(0x1b2)),_0x5ed7c6=children(_0x482685,'bk')[integer(_0x328259[_0x22dc72(0x1b3)]['v'],'future\x20metadata\x20index')];if(!_0x5ed7c6)throw Error('Missing\x20future\x20metadata\x20block.');const _0x44b63c=chain(_0x5ed7c6,_0x22dc72(0x1bd))[_0x22dc72(0x145)](_0x1565aa=>children(_0x1565aa,_0x22dc72(0x19a),SHEET))[_0x22dc72(0x18e)](_0x542d31=>_0x542d31['attrs'][_0x22dc72(0x16b)]?.[_0x22dc72(0x143)]()===_0x22dc72(0x13c)),_0x402a38=integer(one(_0x44b63c[_0x22dc72(0x145)](_0x6bc3e5=>children(_0x6bc3e5,_0x22dc72(0x167))),_0x22dc72(0x190))[_0x22dc72(0x1b3)]['i'],'rich\x20value\x20index'),_0x6ed67c=_0x88534e(_0x556a73(_0x145692,_0x22dc72(0x170)));if(!matches(_0x6ed67c,'rvData'))throw Error('Unsupported\x20rich\x20value\x20namespace.');const _0x4f55a3=children(_0x6ed67c,'rv')[_0x402a38];if(!_0x4f55a3)throw Error(_0x22dc72(0x176));const _0x1de015=_0x88534e(_0x556a73(_0x145692,_0x22dc72(0x19b)));if(!matches(_0x1de015,_0x22dc72(0x16d)))throw Error(_0x22dc72(0x1d3));const _0x5f04cd=children(_0x1de015,'s')[integer(_0x4f55a3[_0x22dc72(0x1b3)]['s'],_0x22dc72(0x13d))];if(!_0x5f04cd||_0x5f04cd[_0x22dc72(0x1b3)]['t']!==_0x22dc72(0x142))throw Error(_0x22dc72(0x1c1));const _0x298232=children(_0x5f04cd,'k'),_0x268008=_0x298232[_0x22dc72(0x15d)]((_0x45a109,_0x1d3cc6)=>_0x45a109[_0x22dc72(0x1b3)]['n']===_0x22dc72(0x150)?_0x1d3cc6:-0x1)[_0x22dc72(0x18e)](_0x3d04a3=>_0x3d04a3>=0x0);if(_0x268008[_0x22dc72(0x1b5)]!==0x1)throw Error(_0x22dc72(0x14b));const _0x13bd54=children(_0x4f55a3,'v',RICH)[_0x268008[0x0]];if(!_0x13bd54)throw Error(_0x22dc72(0x1b4));const _0x435731=_0x556a73(_0x145692,_0x22dc72(0x169)),_0x575c49=_0x88534e(_0x435731);if(!matches(_0x575c49,_0x22dc72(0x1c8)))throw Error(_0x22dc72(0x14e));const _0x23e7b2=children(_0x575c49,_0x22dc72(0x1cc))[integer(_0x13bd54['text'],_0x22dc72(0x160))];if(!_0x23e7b2)throw Error('Missing\x20rich\x20image\x20relationship.');return _0x4e8ced(_0x435731,_0x23e7b2[_0x22dc72(0x1b3)]['r:id'],_0x22dc72(0x19c));};let _0x2b3d04;const _0x505dfa=_0x443d94=>{const _0x2544ac=_0x53a344;if(!_0x2b3d04){_0x2b3d04=new Map();const _0x29efa9=_0x553747(_0x145692)[_0x2544ac(0x18e)](_0x111525=>[...relationshipTypes(_0x2544ac(0x181)),...relationshipTypes('cellImages')]['includes'](_0x111525[_0x2544ac(0x183)]));if(!_0x29efa9[_0x2544ac(0x1b5)]&&_0x4132fb[_0x2544ac(0x158)](_0x2544ac(0x1ce)))_0x29efa9[_0x2544ac(0x14d)]({'id':'','type':'','target':'/xl/cellimages.xml'});if(_0x29efa9[_0x2544ac(0x1b5)]!==0x1)throw Error(_0x2544ac(0x144));const _0x273a8a=_0x2975df(_0x145692,_0x29efa9[0x0]),_0x8c13d1=_0x88534e(_0x273a8a);if(!matches(_0x8c13d1,'cellImages'))throw Error('Unsupported\x20WPS\x20cell\x20image\x20namespace.');for(const _0x93a15f of children(_0x8c13d1,_0x2544ac(0x181))){const _0x4df467=one(chain(_0x93a15f,_0x2544ac(0x154),_0x2544ac(0x1b8),'cNvPr'),_0x2544ac(0x18a))[_0x2544ac(0x1b3)]['name'];if(!_0x4df467||_0x2b3d04[_0x2544ac(0x158)](_0x4df467))throw Error('Invalid\x20or\x20duplicate\x20WPS\x20image\x20ID.');const _0x185e4c=one(chain(_0x93a15f,_0x2544ac(0x154),'blipFill',_0x2544ac(0x194)),'WPS\x20image\x20blip');if(_0x185e4c[_0x2544ac(0x1b3)][_0x2544ac(0x162)])throw Error(_0x2544ac(0x199));_0x2b3d04[_0x2544ac(0x14c)](_0x4df467,_0x4e8ced(_0x273a8a,_0x185e4c[_0x2544ac(0x1b3)][_0x2544ac(0x140)],'image'));}}const _0x463d20=_0x2b3d04[_0x2544ac(0x155)](_0x443d94);if(!_0x463d20)throw Error(_0x2544ac(0x17e)+_0x443d94+'.');return _0x463d20;},_0xe15a3d=new Set();for(const _0x5e4512 of _0x562e37[_0x53a344(0x145)](_0x3b1353=>children(_0x3b1353,'c'))){const _0x523cd5=/^([A-Z]+)([1-9]\d*)$/['exec'](_0x5e4512[_0x53a344(0x1b3)]['r']??'');if(!_0x523cd5)continue;let _0xe60206=0x0;for(const _0x393f17 of _0x523cd5[0x1])_0xe60206=_0xe60206*0x1a+_0x393f17[_0x53a344(0x18f)](0x0)-0x40;if(!_0x417885['has'](_0xe60206))continue;const _0x199ac=integer(_0x523cd5[0x2],_0x53a344(0x15a));if(_0xe15a3d['has'](_0x5e4512['attrs']['r']))throw Error(_0x53a344(0x197));_0xe15a3d[_0x53a344(0x189)](_0x5e4512[_0x53a344(0x1b3)]['r']);const _0x40b516=children(_0x5e4512,'f');if(!_0x5e4512[_0x53a344(0x1b3)]['vm']&&!_0x40b516[_0x53a344(0x1b5)])continue;try{if(_0x199ac<0x1||_0xe60206>0x100)throw Error(_0x53a344(0x166));let _0x3c2f0f;if(_0x5e4512['attrs']['vm']){if(_0x40b516['length'])throw Error(_0x53a344(0x173));if(_0x5e4512[_0x53a344(0x1b3)]['t']!=='e'||children(_0x5e4512,'v')[_0x53a344(0x1b5)]!==0x1||children(_0x5e4512,'v')[0x0][_0x53a344(0x1d5)]!==_0x53a344(0x14f))throw Error('Rich\x20IMAGE\x20cell\x20contains\x20unexpected\x20scalar\x20or\x20mixed\x20content.');_0x3c2f0f=_0x3bd37d(_0x5e4512);}else{const _0x4a2c0c=one(_0x40b516,_0x53a344(0x1c3));if(_0x4a2c0c[_0x53a344(0x1b3)]['t']===_0x53a344(0x1bf)||_0x4a2c0c[_0x53a344(0x1b3)]['si'])throw Error(_0x53a344(0x1d4));const _0x593ade=/^\s*=?\s*@?(?:_xlfn\.)?DISPIMG\(\s*"((?:[^"]|"")+)"\s*(?:,\s*[01]\s*)?\)\s*$/i[_0x53a344(0x149)](_0x4a2c0c[_0x53a344(0x1d5)]);if(!_0x593ade)throw Error(_0x53a344(0x1aa));_0x3c2f0f=_0x505dfa(_0x593ade[0x1][_0x53a344(0x1d1)](/""/g,'\x22'));}_0x4d60b4({'row':_0x199ac,'col':_0xe60206,'media':[_0x3c2f0f],'nativeCell':!![]});}catch(_0x298690){_0x4d60b4({'row':_0x199ac,'col':_0xe60206,'media':[],'nativeCell':!![],'error':_0x298690[_0x53a344(0x1c2)]});}}return _0x534e3a;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x3b73c8,_0x368f2c){const _0x5a59a1=a147_0x4f3b,_0xfcf08a=_0x3b73c8();while(!![]){try{const _0x5e1a9f=parseInt(_0x5a59a1(0xa8))/0x1*(parseInt(_0x5a59a1(0xe8))/0x2)+-parseInt(_0x5a59a1(0xf5))/0x3+parseInt(_0x5a59a1(0xfb))/0x4+-parseInt(_0x5a59a1(0xe7))/0x5+parseInt(_0x5a59a1(0xc5))/0x6*(-parseInt(_0x5a59a1(0x109))/0x7)+parseInt(_0x5a59a1(0xd8))/0x8*(-parseInt(_0x5a59a1(0xe4))/0x9)+parseInt(_0x5a59a1(0xca))/0xa;if(_0x5e1a9f===_0x368f2c)break;else _0xfcf08a['push'](_0xfcf08a['shift']());}catch(_0x2b85cf){_0xfcf08a['push'](_0xfcf08a['shift']());}}}(a147_0x45c3,0x254a3));import{randomUUID,createHash}from'node:crypto';import{lstat,readFile}from'node:fs/promises';import{acquireLock,assertImportContract,assertImportPaths,canonical,resolveImportOutputPath,runExcelImport,saveImportJson}from'./runner.js';import{runAutoIdExcelImport}from'./auto-id-runner.js';import{previewImportBatchCount}from'./preview.js';export function assertImageImportCapability(_0x1d21a3,_0x3c4edd){const _0x259f7c=a147_0x4f3b;if(!_0x3c4edd[_0x259f7c(0xc4)]?.[_0x259f7c(0xc1)])return;const _0x41a2ec=_0x1d21a3[_0x259f7c(0xfe)];if(!_0x41a2ec||_0x41a2ec[_0x259f7c(0x100)]!==0x1||_0x41a2ec[_0x259f7c(0xf2)]!==_0x259f7c(0xe1)||_0x41a2ec[_0x259f7c(0xda)]!==0xa00000||_0x41a2ec[_0x259f7c(0xb1)]!==0x2625a00||!Array[_0x259f7c(0xf4)](_0x41a2ec[_0x259f7c(0xf3)])||![_0x259f7c(0xe0),_0x259f7c(0xb3),'image/gif'][_0x259f7c(0xa6)](_0x2c9e8f=>_0x41a2ec[_0x259f7c(0xf3)][_0x259f7c(0xe5)](_0x2c9e8f)))throw Error(_0x259f7c(0xb0));}export function imageObjectValue(_0x71c41f,_0x40a7e9,_0x47ff14){const _0x54fbfb=a147_0x4f3b,_0x4ca69d=createHash(_0x54fbfb(0xe1))[_0x54fbfb(0xaa)](JSON['stringify']([_0x71c41f[_0x54fbfb(0xde)],_0x71c41f[_0x54fbfb(0xe2)],_0x71c41f['datasetCode'],_0x40a7e9]))[_0x54fbfb(0x107)](_0x54fbfb(0xab)),_0x2c0f38={'image/png':_0x54fbfb(0xae),'image/jpeg':_0x54fbfb(0xe3),'image/gif':'gif'}[_0x47ff14[_0x54fbfb(0xd1)]];if(!_0x2c0f38||!/^[0-9a-f]{64}$/[_0x54fbfb(0xf7)](_0x47ff14[_0x54fbfb(0xff)])||!Number[_0x54fbfb(0xb7)](_0x47ff14[_0x54fbfb(0xcd)])||_0x47ff14[_0x54fbfb(0xcd)]<=0x0||_0x47ff14[_0x54fbfb(0xcd)]>0xa00000)throw Error('Invalid\x20image\x20media\x20descriptor.');const _0x56782e=_0x47ff14[_0x54fbfb(0xff)]+'.'+_0x2c0f38;return{'key':_0x54fbfb(0xac)+_0x4ca69d+'/'+_0x56782e,'name':_0x56782e,'type':_0x47ff14['type'],'size':_0x47ff14[_0x54fbfb(0xcd)]};}export function bindImageManifest(_0x5323d5,_0x1533a0,_0x28c781){const _0x23fe96=a147_0x4f3b,_0x263027=new Map(_0x5323d5[_0x23fe96(0xc4)]?.['map'](_0x36f644=>[_0x36f644['contentHash'],_0x36f644])),_0x2c6791=new Map(_0x5323d5[_0x23fe96(0xc2)]?.[_0x23fe96(0xad)](_0x446c11=>[_0x446c11[_0x23fe96(0xe9)]+':'+_0x446c11[_0x23fe96(0xbe)],_0x446c11[_0x23fe96(0xbf)]]));return{..._0x5323d5,'rows':_0x5323d5[_0x23fe96(0xb6)]['map'](_0x23f209=>({..._0x23f209,'values':Object['fromEntries'](Object[_0x23fe96(0xf9)](_0x23f209[_0x23fe96(0x106)])[_0x23fe96(0xad)](([_0x17687d,_0x302749])=>{const _0x3bb7be=_0x23fe96,_0x47730a=_0x2c6791['get'](_0x23f209[_0x3bb7be(0xe9)]+':'+_0x17687d);return[_0x17687d,_0x47730a?_0x47730a[_0x3bb7be(0xad)](_0x246a0e=>{const _0x346914=_0x3bb7be,_0x4bd253=_0x263027[_0x346914(0xd4)](_0x246a0e);if(!_0x4bd253)throw Error(_0x346914(0xc6));const _0x3e2562=imageObjectValue(_0x1533a0,_0x28c781,_0x4bd253);return _0x5323d5[_0x346914(0x105)]?.[_0x346914(0xe5)](_0x17687d)?{'fileName':_0x3e2562[_0x346914(0xb2)],'filePath':_0x3e2562[_0x346914(0xcc)]}:_0x3e2562;}):_0x302749];}))}))};}function a147_0x4f3b(_0x9e1582,_0x3c26fc){_0x9e1582=_0x9e1582-0xa4;const _0x45c3e8=a147_0x45c3();let _0x4f3b56=_0x45c3e8[_0x9e1582];return _0x4f3b56;}async function exists(_0x602feb){const _0x2569ea=a147_0x4f3b;try{return await lstat(_0x602feb),!![];}catch(_0x236e0c){if(_0x236e0c[_0x2569ea(0xd2)]===_0x2569ea(0xfa))return![];throw _0x236e0c;}}export async function runImageExcelImport(_0x2dc26c){const _0x3e0847=a147_0x4f3b;assertImportContract(_0x2dc26c['contract'],_0x2dc26c['appCode'],_0x2dc26c[_0x3e0847(0xdc)]),assertImageImportCapability(_0x2dc26c[_0x3e0847(0xdf)],_0x2dc26c[_0x3e0847(0xd0)]);if(!Number['isInteger'](_0x2dc26c[_0x3e0847(0xc8)])||_0x2dc26c[_0x3e0847(0xc8)]<0x1||_0x2dc26c[_0x3e0847(0xc8)]>_0x2dc26c[_0x3e0847(0xdf)][_0x3e0847(0xd9)])throw Error('Invalid\x20import\x20batch\x20size.');if(_0x2dc26c['manifest']['errors']['length']||!_0x2dc26c[_0x3e0847(0xd0)][_0x3e0847(0xb6)][_0x3e0847(0xc1)])throw Error(_0x3e0847(0xef));const _0xcd3e0c=await resolveImportOutputPath(_0x2dc26c[_0x3e0847(0x103)]),_0x4c9e7d=await resolveImportOutputPath(_0x2dc26c[_0x3e0847(0xbd)]),_0xd531db=await resolveImportOutputPath(_0xcd3e0c+_0x3e0847(0xb9)),_0x4f8e01=await Promise[_0x3e0847(0xe6)]([_0xd531db,_0xd531db+_0x3e0847(0x108),_0xd531db+_0x3e0847(0xd7),..._0x2dc26c[_0x3e0847(0xc3)]??[]][_0x3e0847(0xad)](resolveImportOutputPath));for(const _0xc5d33f of[_0xcd3e0c,_0x4c9e7d,_0xcd3e0c+'.lock',_0xcd3e0c+_0x3e0847(0xd7)])await resolveImportOutputPath(_0xc5d33f);assertImportPaths(_0xcd3e0c,_0x4c9e7d,_0x4f8e01);const {contract:_0x3aae88,manifest:_0x202958}=_0x2dc26c,_0x5928fa=_0x202958[_0x3e0847(0xc4)]??[];if(new Set(_0x5928fa[_0x3e0847(0xad)](_0x15def1=>_0x15def1[_0x3e0847(0xff)]))[_0x3e0847(0xcd)]!==_0x5928fa[_0x3e0847(0xc1)]||_0x5928fa[_0x3e0847(0x101)]((_0x14070e,_0xa9b0a2)=>_0x14070e+_0xa9b0a2[_0x3e0847(0xcd)],0x0)>0x32*0x400*0x400||(_0x202958[_0x3e0847(0xc2)]??[])[_0x3e0847(0x101)]((_0x38e16a,_0x344766)=>_0x38e16a+_0x344766[_0x3e0847(0xbf)]['length'],0x0)>0x2710)throw Error(_0x3e0847(0xc7));for(const _0x45a0b8 of _0x5928fa)if(_0x45a0b8[_0x3e0847(0xcd)]!==_0x45a0b8['bytes'][_0x3e0847(0xc1)]||createHash(_0x3e0847(0xe1))[_0x3e0847(0xaa)](_0x45a0b8[_0x3e0847(0xa9)])[_0x3e0847(0x107)](_0x3e0847(0xab))!==_0x45a0b8[_0x3e0847(0xff)])throw Error(_0x3e0847(0xec));previewImportBatchCount(bindImageManifest(_0x202958,_0x3aae88,'00000000-0000-4000-8000-000000000000'),_0x3aae88,_0x2dc26c['batchSize']);const _0x59df59={'appCode':_0x2dc26c[_0x3e0847(0xe2)],'datasetCode':_0x2dc26c[_0x3e0847(0xdc)],'runtimeDomain':_0x2dc26c['runtimeDomain'],'actorId':_0x3aae88['actorId'],'fileHash':_0x202958[_0x3e0847(0xcf)],'mappingHash':_0x202958[_0x3e0847(0xee)],'schemaHash':_0x202958[_0x3e0847(0xeb)],'remoteSchemaHash':_0x3aae88[_0x3e0847(0xbc)],'strategy':_0x3aae88[_0x3e0847(0xaf)],'schemaVersion':_0x3aae88[_0x3e0847(0xa4)],'batchSize':_0x2dc26c['batchSize'],'maxBatchBytes':_0x3aae88['maxBatchBytes'],'sheet':_0x202958[_0x3e0847(0xb4)],'parserVersion':_0x202958[_0x3e0847(0x104)],'imageFields':_0x202958[_0x3e0847(0xdd)],'cells':_0x202958['imageCells'],..._0x202958['uploadFields']?.[_0x3e0847(0xc1)]?{'uploadFields':_0x202958[_0x3e0847(0x105)]}:{},'media':_0x5928fa[_0x3e0847(0xad)](({contentHash:_0x3aa622,type:_0x4121c6,size:_0x5493c1})=>({'contentHash':_0x3aa622,'type':_0x4121c6,'size':_0x5493c1})),'rows':_0x202958[_0x3e0847(0xb6)]},_0x1d30a8=await acquireLock(_0xcd3e0c);try{let _0x30c4e0;if(_0x2dc26c[_0x3e0847(0xfc)]){try{_0x30c4e0=JSON[_0x3e0847(0xc9)](await readFile(_0xcd3e0c,'utf8'));}catch{throw Error(_0x3e0847(0xd3));}if(_0x30c4e0[_0x3e0847(0x100)]!==0x3||!/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/[_0x3e0847(0xf7)](_0x30c4e0[_0x3e0847(0xd5)])||canonical(_0x30c4e0['binding'])!==canonical(_0x59df59)||!['media',_0x3e0847(0xba),_0x3e0847(0xdb),'completed'][_0x3e0847(0xe5)](_0x30c4e0[_0x3e0847(0xb8)])||!Array[_0x3e0847(0xf4)](_0x30c4e0[_0x3e0847(0xc4)])||_0x30c4e0['media']['length']!==_0x5928fa[_0x3e0847(0xc1)]||_0x30c4e0[_0x3e0847(0xc4)][_0x3e0847(0xf6)]((_0x55742f,_0x1f278c)=>_0x55742f['hash']!==_0x5928fa[_0x1f278c]['contentHash']||![_0x3e0847(0xa7),_0x3e0847(0xf8)][_0x3e0847(0xe5)](_0x55742f[_0x3e0847(0xce)])))throw Error(_0x3e0847(0xd6));if([_0x3e0847(0xdb),'completed'][_0x3e0847(0xe5)](_0x30c4e0[_0x3e0847(0xb8)])&&!await exists(_0xd531db))throw Error('Row\x20phase\x20started\x20but\x20the\x20row\x20checkpoint\x20is\x20missing;\x20stop\x20to\x20avoid\x20duplicate\x20records.');if(_0x30c4e0[_0x3e0847(0xb8)]==='media'&&await exists(_0xd531db))throw Error(_0x3e0847(0xc0));}else{if(await exists(_0xcd3e0c)||await exists(_0xd531db))throw Error(_0x3e0847(0xf1));_0x30c4e0={'version':0x3,'importId':randomUUID(),'binding':_0x59df59,'phase':_0x3e0847(0xc4),'media':_0x5928fa[_0x3e0847(0xad)](_0x2a04a8=>({'hash':_0x2a04a8['contentHash'],'status':_0x3e0847(0xa7)}))},await saveImportJson(_0xcd3e0c,_0x30c4e0);}const _0x42f59e=(_0x4c7c61,_0x2a9375)=>{const _0x5c5421=_0x3e0847;if(!_0x4c7c61||_0x4c7c61[_0x5c5421(0xff)]!==_0x2a9375['contentHash'])throw Error('Invalid\x20image\x20readback\x20digest.');if(_0x4c7c61[_0x5c5421(0xce)]==='missing')return undefined;const _0x3fabe9=imageObjectValue(_0x3aae88,_0x30c4e0[_0x5c5421(0xd5)],_0x2a9375);if(_0x4c7c61['status']!=='succeeded'||_0x4c7c61['filePath']!==_0x3fabe9[_0x5c5421(0xcc)]||_0x4c7c61['fileName']!==_0x3fabe9[_0x5c5421(0xb2)]||_0x4c7c61[_0x5c5421(0xd1)]!==_0x3fabe9[_0x5c5421(0xd1)]||_0x4c7c61[_0x5c5421(0xcd)]!==_0x3fabe9[_0x5c5421(0xcd)])throw Error(_0x5c5421(0xa5));return _0x3fabe9;};for(let _0x129390=0x0;_0x129390<_0x5928fa[_0x3e0847(0xc1)];_0x129390++){const _0x1d7749=_0x5928fa[_0x129390],_0x1bb9b9=_0x30c4e0[_0x3e0847(0xc4)][_0x129390],_0x3f8c2e=imageObjectValue(_0x3aae88,_0x30c4e0['importId'],_0x1d7749);if(_0x1bb9b9['status']===_0x3e0847(0xf8)&&canonical(_0x1bb9b9[_0x3e0847(0x102)])!==canonical(_0x3f8c2e))throw Error('Completed\x20image\x20checkpoint\x20value\x20changed.');let _0x3728df;if(_0x2dc26c[_0x3e0847(0xfc)]||_0x1bb9b9[_0x3e0847(0xce)]===_0x3e0847(0xf8))_0x3728df=_0x42f59e(await _0x2dc26c[_0x3e0847(0xbb)][_0x3e0847(0xf0)](_0x30c4e0[_0x3e0847(0xd5)],_0x1d7749),_0x1d7749);if(!_0x3728df&&_0x1bb9b9[_0x3e0847(0xce)]===_0x3e0847(0xf8))throw Error(_0x3e0847(0xfd));if(!_0x3728df){try{_0x42f59e(await _0x2dc26c[_0x3e0847(0xbb)][_0x3e0847(0xea)](_0x30c4e0[_0x3e0847(0xd5)],_0x1d7749),_0x1d7749);}catch(_0x4248a5){_0x3728df=_0x42f59e(await _0x2dc26c[_0x3e0847(0xbb)][_0x3e0847(0xf0)](_0x30c4e0[_0x3e0847(0xd5)],_0x1d7749),_0x1d7749);if(!_0x3728df)throw Error(_0x3e0847(0xb5));}if(!_0x3728df)_0x3728df=_0x42f59e(await _0x2dc26c[_0x3e0847(0xbb)][_0x3e0847(0xf0)](_0x30c4e0[_0x3e0847(0xd5)],_0x1d7749),_0x1d7749);if(!_0x3728df)throw Error(_0x3e0847(0xcb));}_0x1bb9b9[_0x3e0847(0xce)]=_0x3e0847(0xf8),_0x1bb9b9[_0x3e0847(0x102)]=_0x3728df,await saveImportJson(_0xcd3e0c,_0x30c4e0);}const _0x2247e2=bindImageManifest(_0x202958,_0x3aae88,_0x30c4e0[_0x3e0847(0xd5)]),_0x3bcb4d=_0x30c4e0[_0x3e0847(0xb8)]===_0x3e0847(0xba)?await exists(_0xd531db):_0x30c4e0[_0x3e0847(0xb8)]!==_0x3e0847(0xc4);_0x30c4e0['phase']===_0x3e0847(0xc4)&&(_0x30c4e0['phase']=_0x3e0847(0xba),await saveImportJson(_0xcd3e0c,_0x30c4e0));const _0x19231f={..._0x2dc26c,'manifest':_0x2247e2,'checkpoint':_0xd531db,'report':_0x4c9e7d,'resume':_0x3bcb4d,'onCheckpointReady':async()=>{const _0x58cb88=_0x3e0847;_0x30c4e0[_0x58cb88(0xb8)]=_0x58cb88(0xdb),await saveImportJson(_0xcd3e0c,_0x30c4e0);}},_0x1a8e0d=_0x3aae88[_0x3e0847(0xa4)]===0x2?await runAutoIdExcelImport({..._0x19231f,'reconcileImageConflicts':_0x2dc26c['resume']===!![]&&_0x3bcb4d}):await runExcelImport(_0x19231f);return _0x30c4e0[_0x3e0847(0xb8)]=_0x3e0847(0xed),await saveImportJson(_0xcd3e0c,_0x30c4e0),{..._0x1a8e0d,'checkpoint':_0xcd3e0c,'imageCount':_0x202958[_0x3e0847(0xc2)]?.[_0x3e0847(0x101)]((_0x1f0dff,_0x3f8c8f)=>_0x1f0dff+_0x3f8c8f[_0x3e0847(0xbf)][_0x3e0847(0xc1)],0x0)??0x0,'uniqueImages':_0x5928fa[_0x3e0847(0xc1)]};}finally{await _0x1d30a8();}}function a147_0x45c3(){const _0x43bc0c=['imageImport','contentHash','version','reduce','value','checkpoint','parserVersion','uploadFields','values','digest','.lock','77ygSEVe','schemaVersion','Uploaded\x20image\x20metadata\x20changed\x20or\x20is\x20corrupt.','every','pending','2CJxqSh','bytes','update','hex','dataset-import/','map','png','strategy','The\x20server\x20does\x20not\x20support\x20this\x20image\x20import\x20capability.','maxPixels','name','image/jpeg','sheet','Image\x20upload\x20outcome\x20is\x20unknown\x20or\x20missing.\x20Resume\x20to\x20reconcile\x20the\x20original\x20upload\x20identity.','rows','isSafeInteger','phase','.rows.json','rows-preparing','imageApi','schemaFingerprint','report','field','hashes','Unexpected\x20row\x20checkpoint\x20during\x20image\x20upload\x20phase.','length','imageCells','inputPaths','media','103254DmpAPr','Image\x20cell\x20references\x20missing\x20media.','Invalid\x20image\x20manifest\x20limits.','batchSize','parse','5143560ryiutF','Uploaded\x20image\x20is\x20not\x20visible.\x20Resume\x20to\x20reconcile\x20before\x20continuing.','key','size','status','fileHash','manifest','type','code','Cannot\x20read\x20the\x20image\x20import\x20checkpoint.','get','importId','Image\x20checkpoint\x20does\x20not\x20match\x20the\x20source,\x20target\x20or\x20identity.','.lock.recovery','706216IoGhsY','maxBatchSize','maxFileBytes','rows-started','datasetCode','imageFields','actorId','contract','image/png','sha256','appCode','jpg','9wlFiuv','includes','all','745680NQrmAQ','42874xBjcep','rowNumber','upload','schemaHash','Image\x20media\x20bytes\x20changed.','completed','mappingHash','Excel\x20contains\x20invalid\x20or\x20no\x20data\x20rows;\x20no\x20images\x20were\x20uploaded.','readback','Import\x20checkpoint\x20already\x20exists;\x20use\x20--resume.','uploadId','types','isArray','22401uTqXRz','some','test','succeeded','entries','ENOENT','118752zrPBfC','resume','Previously\x20uploaded\x20image\x20is\x20missing;\x20automatic\x20repair\x20is\x20disabled.'];a147_0x45c3=function(){return _0x43bc0c;};return a147_0x45c3();}
|
|
1
|
+
(function(_0x55fa1e,_0x36ede4){const _0x33fc8b=a147_0x1679,_0x45d9c8=_0x55fa1e();while(!![]){try{const _0x57fb99=-parseInt(_0x33fc8b(0x21e))/0x1*(parseInt(_0x33fc8b(0x1f8))/0x2)+parseInt(_0x33fc8b(0x20e))/0x3*(parseInt(_0x33fc8b(0x20d))/0x4)+parseInt(_0x33fc8b(0x251))/0x5*(parseInt(_0x33fc8b(0x204))/0x6)+-parseInt(_0x33fc8b(0x225))/0x7+parseInt(_0x33fc8b(0x223))/0x8*(parseInt(_0x33fc8b(0x1fe))/0x9)+parseInt(_0x33fc8b(0x21c))/0xa*(parseInt(_0x33fc8b(0x24c))/0xb)+-parseInt(_0x33fc8b(0x23d))/0xc*(parseInt(_0x33fc8b(0x24d))/0xd);if(_0x57fb99===_0x36ede4)break;else _0x45d9c8['push'](_0x45d9c8['shift']());}catch(_0x284224){_0x45d9c8['push'](_0x45d9c8['shift']());}}}(a147_0x5194,0x4fcf3));import{randomUUID,createHash}from'node:crypto';import{lstat,readFile}from'node:fs/promises';import{acquireLock,assertImportContract,assertImportPaths,canonical,resolveImportOutputPath,runExcelImport,saveImportJson}from'./runner.js';import{runAutoIdExcelImport}from'./auto-id-runner.js';import{previewImportBatchCount}from'./preview.js';function a147_0x5194(){const _0x3944e4=['status','report','contentHash','succeeded','492056SDPhpJ','contract','1774500bpVKmK','The\x20server\x20does\x20not\x20support\x20this\x20image\x20import\x20capability.','digest','inputPaths','media','resume','readback','rows','version','imageImport','size','schemaFingerprint','key','Invalid\x20image\x20media\x20descriptor.','Completed\x20image\x20checkpoint\x20value\x20changed.','sheet','all','Previously\x20uploaded\x20image\x20is\x20missing;\x20automatic\x20repair\x20is\x20disabled.','Invalid\x20image\x20manifest\x20limits.','Invalid\x20image\x20readback\x20digest.','gif','fromEntries','pending','map','577452UOTdcQ','Image\x20checkpoint\x20does\x20not\x20match\x20the\x20source,\x20target\x20or\x20identity.','length','upload','image/jpeg','get','checkpoint','value','Image\x20media\x20bytes\x20changed.','imageApi','actorId','uploadFields','Invalid\x20import\x20batch\x20size.','importId','values','1211188xyJZfo','260XAMihz','completed','Unexpected\x20row\x20checkpoint\x20during\x20image\x20upload\x20phase.','Import\x20checkpoint\x20already\x20exists;\x20use\x20--resume.','5pfXKlW','00000000-0000-4000-8000-000000000000','update','binding','hash','Image\x20cell\x20references\x20missing\x20media.','rowNumber','.lock','parse','datasetCode','isArray','schemaVersion','isInteger','phase','manifest','strategy','2sZXrlt','Excel\x20contains\x20invalid\x20or\x20no\x20data\x20rows;\x20no\x20images\x20were\x20uploaded.','reduce','hex','bytes','name','18IIDwVk','stringify','hashes','Cannot\x20read\x20the\x20image\x20import\x20checkpoint.','maxFileBytes','includes','2841114MXAxue','rows-started','every','isSafeInteger','sha256','imageCells','image/png','test','image/gif','194076SnpJRN','39JnUdeS','ENOENT','some','types','.lock.recovery','rows-preparing','errors','entries','parserVersion','type','batchSize','schemaHash','appCode','code','30VZmPfO','Image\x20upload\x20outcome\x20is\x20unknown\x20or\x20missing.\x20Resume\x20to\x20reconcile\x20the\x20original\x20upload\x20identity.','14785nHBsiq'];a147_0x5194=function(){return _0x3944e4;};return a147_0x5194();}export function assertImageImportCapability(_0xf77cc8,_0x3368cb){const _0x10fc88=a147_0x1679;if(!_0x3368cb['media']?.[_0x10fc88(0x23f)])return;const _0x1c541e=_0xf77cc8[_0x10fc88(0x22e)];if(!_0x1c541e||_0x1c541e['version']!==0x1||_0x1c541e['uploadId']!==_0x10fc88(0x208)||_0x1c541e[_0x10fc88(0x202)]!==0xa00000||_0x1c541e['maxPixels']!==0x2625a00||!Array['isArray'](_0x1c541e[_0x10fc88(0x211)])||![_0x10fc88(0x20a),_0x10fc88(0x241),_0x10fc88(0x20c)][_0x10fc88(0x206)](_0x1dda40=>_0x1c541e[_0x10fc88(0x211)][_0x10fc88(0x203)](_0x1dda40)))throw Error(_0x10fc88(0x226));}export function imageObjectValue(_0x3ead9e,_0x156fb8,_0x4218d4){const _0x56c506=a147_0x1679,_0x24af3e=createHash('sha256')[_0x56c506(0x253)](JSON[_0x56c506(0x1ff)]([_0x3ead9e[_0x56c506(0x247)],_0x3ead9e[_0x56c506(0x21a)],_0x3ead9e['datasetCode'],_0x156fb8]))[_0x56c506(0x227)](_0x56c506(0x1fb)),_0x15f9ae={'image/png':'png','image/jpeg':'jpg','image/gif':_0x56c506(0x239)}[_0x4218d4[_0x56c506(0x217)]];if(!_0x15f9ae||!/^[0-9a-f]{64}$/[_0x56c506(0x20b)](_0x4218d4['contentHash'])||!Number[_0x56c506(0x207)](_0x4218d4['size'])||_0x4218d4[_0x56c506(0x22f)]<=0x0||_0x4218d4[_0x56c506(0x22f)]>0xa00000)throw Error(_0x56c506(0x232));const _0x5613b1=_0x4218d4['contentHash']+'.'+_0x15f9ae;return{'key':'dataset-import/'+_0x24af3e+'/'+_0x5613b1,'name':_0x5613b1,'type':_0x4218d4[_0x56c506(0x217)],'size':_0x4218d4['size']};}export function bindImageManifest(_0x594b42,_0x4dcc68,_0x552b8d){const _0x356373=a147_0x1679,_0x31c31e=new Map(_0x594b42['media']?.[_0x356373(0x23c)](_0x34540=>[_0x34540['contentHash'],_0x34540])),_0x28fdae=new Map(_0x594b42[_0x356373(0x209)]?.[_0x356373(0x23c)](_0x3d3a59=>[_0x3d3a59[_0x356373(0x257)]+':'+_0x3d3a59['field'],_0x3d3a59[_0x356373(0x200)]]));return{..._0x594b42,'rows':_0x594b42[_0x356373(0x22c)][_0x356373(0x23c)](_0x1967d3=>({..._0x1967d3,'values':Object[_0x356373(0x23a)](Object[_0x356373(0x215)](_0x1967d3[_0x356373(0x24b)])[_0x356373(0x23c)](([_0x157464,_0x1ad355])=>{const _0x137fff=_0x356373,_0x45ddbf=_0x28fdae[_0x137fff(0x242)](_0x1967d3[_0x137fff(0x257)]+':'+_0x157464);return[_0x157464,_0x45ddbf?_0x45ddbf['map'](_0x3ad57c=>{const _0x193b94=_0x137fff,_0x3dc8cf=_0x31c31e[_0x193b94(0x242)](_0x3ad57c);if(!_0x3dc8cf)throw Error(_0x193b94(0x256));const _0x17809b=imageObjectValue(_0x4dcc68,_0x552b8d,_0x3dc8cf);return _0x594b42[_0x193b94(0x248)]?.[_0x193b94(0x203)](_0x157464)?{'fileName':_0x17809b[_0x193b94(0x1fd)],'filePath':_0x17809b['key']}:_0x17809b;}):_0x1ad355];}))}))};}function a147_0x1679(_0x1ba62f,_0x1f57d2){_0x1ba62f=_0x1ba62f-0x1f3;const _0x519492=a147_0x5194();let _0x16796b=_0x519492[_0x1ba62f];return _0x16796b;}async function exists(_0x3dd282){const _0x394cef=a147_0x1679;try{return await lstat(_0x3dd282),!![];}catch(_0x417733){if(_0x417733[_0x394cef(0x21b)]===_0x394cef(0x20f))return![];throw _0x417733;}}export async function runImageExcelImport(_0x558d0d){const _0x494b41=a147_0x1679;assertImportContract(_0x558d0d[_0x494b41(0x224)],_0x558d0d['appCode'],_0x558d0d[_0x494b41(0x25a)]),assertImageImportCapability(_0x558d0d[_0x494b41(0x224)],_0x558d0d[_0x494b41(0x1f6)]);if(!Number[_0x494b41(0x1f4)](_0x558d0d[_0x494b41(0x218)])||_0x558d0d[_0x494b41(0x218)]<0x1||_0x558d0d['batchSize']>_0x558d0d[_0x494b41(0x224)]['maxBatchSize'])throw Error(_0x494b41(0x249));if(_0x558d0d[_0x494b41(0x1f6)][_0x494b41(0x214)]['length']||!_0x558d0d[_0x494b41(0x1f6)][_0x494b41(0x22c)][_0x494b41(0x23f)])throw Error(_0x494b41(0x1f9));const _0x38e991=await resolveImportOutputPath(_0x558d0d[_0x494b41(0x243)]),_0x4c2a0f=await resolveImportOutputPath(_0x558d0d[_0x494b41(0x220)]),_0x308fe7=await resolveImportOutputPath(_0x38e991+'.rows.json'),_0x4f65a6=await Promise[_0x494b41(0x235)]([_0x308fe7,_0x308fe7+_0x494b41(0x258),_0x308fe7+_0x494b41(0x212),..._0x558d0d[_0x494b41(0x228)]??[]][_0x494b41(0x23c)](resolveImportOutputPath));for(const _0x2ed272 of[_0x38e991,_0x4c2a0f,_0x38e991+_0x494b41(0x258),_0x38e991+_0x494b41(0x212)])await resolveImportOutputPath(_0x2ed272);assertImportPaths(_0x38e991,_0x4c2a0f,_0x4f65a6);const {contract:_0x8ba470,manifest:_0x4d3b35}=_0x558d0d,_0x420a80=_0x4d3b35[_0x494b41(0x229)]??[];if(new Set(_0x420a80['map'](_0x2fd5e1=>_0x2fd5e1['contentHash']))['size']!==_0x420a80[_0x494b41(0x23f)]||_0x420a80[_0x494b41(0x1fa)]((_0x4b3086,_0x44a391)=>_0x4b3086+_0x44a391['size'],0x0)>0x32*0x400*0x400||(_0x4d3b35[_0x494b41(0x209)]??[])[_0x494b41(0x1fa)]((_0xc7092f,_0x7feb57)=>_0xc7092f+_0x7feb57['hashes'][_0x494b41(0x23f)],0x0)>0x2710)throw Error(_0x494b41(0x237));for(const _0x398876 of _0x420a80)if(_0x398876[_0x494b41(0x22f)]!==_0x398876[_0x494b41(0x1fc)][_0x494b41(0x23f)]||createHash(_0x494b41(0x208))[_0x494b41(0x253)](_0x398876[_0x494b41(0x1fc)])['digest'](_0x494b41(0x1fb))!==_0x398876[_0x494b41(0x221)])throw Error(_0x494b41(0x245));previewImportBatchCount(bindImageManifest(_0x4d3b35,_0x8ba470,_0x494b41(0x252)),_0x8ba470,_0x558d0d[_0x494b41(0x218)]);const _0x5b1e05={'appCode':_0x558d0d[_0x494b41(0x21a)],'datasetCode':_0x558d0d[_0x494b41(0x25a)],'runtimeDomain':_0x558d0d['runtimeDomain'],'actorId':_0x8ba470[_0x494b41(0x247)],'fileHash':_0x4d3b35['fileHash'],'mappingHash':_0x4d3b35['mappingHash'],'schemaHash':_0x4d3b35[_0x494b41(0x219)],'remoteSchemaHash':_0x8ba470[_0x494b41(0x230)],'strategy':_0x8ba470[_0x494b41(0x1f7)],'schemaVersion':_0x8ba470[_0x494b41(0x1f3)],'batchSize':_0x558d0d[_0x494b41(0x218)],'maxBatchBytes':_0x8ba470['maxBatchBytes'],'sheet':_0x4d3b35[_0x494b41(0x234)],'parserVersion':_0x4d3b35[_0x494b41(0x216)],'imageFields':_0x4d3b35['imageFields'],'cells':_0x4d3b35['imageCells'],..._0x4d3b35['uploadFields']?.[_0x494b41(0x23f)]?{'uploadFields':_0x4d3b35['uploadFields']}:{},'media':_0x420a80[_0x494b41(0x23c)](({contentHash:_0x4b839f,type:_0xdebe7e,size:_0x2f6668})=>({'contentHash':_0x4b839f,'type':_0xdebe7e,'size':_0x2f6668})),'rows':_0x4d3b35[_0x494b41(0x22c)]},_0x33b295=await acquireLock(_0x38e991);try{let _0x1a6936;if(_0x558d0d[_0x494b41(0x22a)]){try{_0x1a6936=JSON[_0x494b41(0x259)](await readFile(_0x38e991,'utf8'));}catch{throw Error(_0x494b41(0x201));}if(_0x1a6936[_0x494b41(0x22d)]!==0x3||!/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/[_0x494b41(0x20b)](_0x1a6936['importId'])||canonical(_0x1a6936[_0x494b41(0x254)])!==canonical(_0x5b1e05)||!['media',_0x494b41(0x213),_0x494b41(0x205),_0x494b41(0x24e)][_0x494b41(0x203)](_0x1a6936[_0x494b41(0x1f5)])||!Array[_0x494b41(0x25b)](_0x1a6936[_0x494b41(0x229)])||_0x1a6936[_0x494b41(0x229)]['length']!==_0x420a80[_0x494b41(0x23f)]||_0x1a6936[_0x494b41(0x229)][_0x494b41(0x210)]((_0x43d816,_0x3bbb21)=>_0x43d816[_0x494b41(0x255)]!==_0x420a80[_0x3bbb21][_0x494b41(0x221)]||![_0x494b41(0x23b),_0x494b41(0x222)][_0x494b41(0x203)](_0x43d816[_0x494b41(0x21f)])))throw Error(_0x494b41(0x23e));if([_0x494b41(0x205),_0x494b41(0x24e)][_0x494b41(0x203)](_0x1a6936[_0x494b41(0x1f5)])&&!await exists(_0x308fe7))throw Error('Row\x20phase\x20started\x20but\x20the\x20row\x20checkpoint\x20is\x20missing;\x20stop\x20to\x20avoid\x20duplicate\x20records.');if(_0x1a6936[_0x494b41(0x1f5)]===_0x494b41(0x229)&&await exists(_0x308fe7))throw Error(_0x494b41(0x24f));}else{if(await exists(_0x38e991)||await exists(_0x308fe7))throw Error(_0x494b41(0x250));_0x1a6936={'version':0x3,'importId':randomUUID(),'binding':_0x5b1e05,'phase':'media','media':_0x420a80[_0x494b41(0x23c)](_0x2842c1=>({'hash':_0x2842c1['contentHash'],'status':_0x494b41(0x23b)}))},await saveImportJson(_0x38e991,_0x1a6936);}const _0x446b1b=(_0x5d21d8,_0x12dfb4)=>{const _0x52a610=_0x494b41;if(!_0x5d21d8||_0x5d21d8[_0x52a610(0x221)]!==_0x12dfb4[_0x52a610(0x221)])throw Error(_0x52a610(0x238));if(_0x5d21d8[_0x52a610(0x21f)]==='missing')return undefined;const _0x4e9a4f=imageObjectValue(_0x8ba470,_0x1a6936[_0x52a610(0x24a)],_0x12dfb4);if(_0x5d21d8[_0x52a610(0x21f)]!==_0x52a610(0x222)||_0x5d21d8['filePath']!==_0x4e9a4f[_0x52a610(0x231)]||_0x5d21d8['fileName']!==_0x4e9a4f[_0x52a610(0x1fd)]||_0x5d21d8[_0x52a610(0x217)]!==_0x4e9a4f[_0x52a610(0x217)]||_0x5d21d8[_0x52a610(0x22f)]!==_0x4e9a4f[_0x52a610(0x22f)])throw Error('Uploaded\x20image\x20metadata\x20changed\x20or\x20is\x20corrupt.');return _0x4e9a4f;};for(let _0x26400a=0x0;_0x26400a<_0x420a80[_0x494b41(0x23f)];_0x26400a++){const _0x85c6c0=_0x420a80[_0x26400a],_0x5cd17e=_0x1a6936['media'][_0x26400a],_0xb55dd3=imageObjectValue(_0x8ba470,_0x1a6936[_0x494b41(0x24a)],_0x85c6c0);if(_0x5cd17e[_0x494b41(0x21f)]===_0x494b41(0x222)&&canonical(_0x5cd17e[_0x494b41(0x244)])!==canonical(_0xb55dd3))throw Error(_0x494b41(0x233));let _0x34393f;if(_0x558d0d[_0x494b41(0x22a)]||_0x5cd17e[_0x494b41(0x21f)]===_0x494b41(0x222))_0x34393f=_0x446b1b(await _0x558d0d[_0x494b41(0x246)][_0x494b41(0x22b)](_0x1a6936[_0x494b41(0x24a)],_0x85c6c0),_0x85c6c0);if(!_0x34393f&&_0x5cd17e[_0x494b41(0x21f)]==='succeeded')throw Error(_0x494b41(0x236));if(!_0x34393f){try{_0x446b1b(await _0x558d0d[_0x494b41(0x246)][_0x494b41(0x240)](_0x1a6936['importId'],_0x85c6c0),_0x85c6c0);}catch(_0x4169ea){_0x34393f=_0x446b1b(await _0x558d0d[_0x494b41(0x246)][_0x494b41(0x22b)](_0x1a6936[_0x494b41(0x24a)],_0x85c6c0),_0x85c6c0);if(!_0x34393f)throw Error(_0x494b41(0x21d));}if(!_0x34393f)_0x34393f=_0x446b1b(await _0x558d0d[_0x494b41(0x246)][_0x494b41(0x22b)](_0x1a6936[_0x494b41(0x24a)],_0x85c6c0),_0x85c6c0);if(!_0x34393f)throw Error('Uploaded\x20image\x20is\x20not\x20visible.\x20Resume\x20to\x20reconcile\x20before\x20continuing.');}_0x5cd17e['status']=_0x494b41(0x222),_0x5cd17e[_0x494b41(0x244)]=_0x34393f,await saveImportJson(_0x38e991,_0x1a6936);}const _0x4f2f35=bindImageManifest(_0x4d3b35,_0x8ba470,_0x1a6936['importId']),_0x5be21=_0x1a6936[_0x494b41(0x1f5)]===_0x494b41(0x213)?await exists(_0x308fe7):_0x1a6936[_0x494b41(0x1f5)]!==_0x494b41(0x229);_0x1a6936[_0x494b41(0x1f5)]===_0x494b41(0x229)&&(_0x1a6936['phase']=_0x494b41(0x213),await saveImportJson(_0x38e991,_0x1a6936));const _0xb677e={..._0x558d0d,'manifest':_0x4f2f35,'checkpoint':_0x308fe7,'report':_0x4c2a0f,'resume':_0x5be21,'onCheckpointReady':async()=>{const _0x1abf8c=_0x494b41;_0x1a6936[_0x1abf8c(0x1f5)]=_0x1abf8c(0x205),await saveImportJson(_0x38e991,_0x1a6936);}},_0x58edd6=_0x8ba470[_0x494b41(0x1f3)]===0x2?await runAutoIdExcelImport({..._0xb677e,'reconcileImageConflicts':_0x558d0d[_0x494b41(0x22a)]===!![]&&_0x5be21}):await runExcelImport(_0xb677e);return _0x1a6936['phase']=_0x494b41(0x24e),await saveImportJson(_0x38e991,_0x1a6936),{..._0x58edd6,'checkpoint':_0x38e991,'imageCount':_0x4d3b35[_0x494b41(0x209)]?.[_0x494b41(0x1fa)]((_0x4d5a39,_0x174798)=>_0x4d5a39+_0x174798[_0x494b41(0x200)][_0x494b41(0x23f)],0x0)??0x0,'uniqueImages':_0x420a80[_0x494b41(0x23f)]};}finally{await _0x33b295();}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a148_0xc17b(_0x2db5eb,_0x48be8b){_0x2db5eb=_0x2db5eb-0x170;const _0x571a6f=a148_0x571a();let _0xc17b87=_0x571a6f[_0x2db5eb];return _0xc17b87;}(function(_0x400251,_0x1443b7){const _0x5e4f6d=a148_0xc17b,_0x1eda82=_0x400251();while(!![]){try{const _0x176422=parseInt(_0x5e4f6d(0x171))/0x1+-parseInt(_0x5e4f6d(0x188))/0x2*(parseInt(_0x5e4f6d(0x17a))/0x3)+-parseInt(_0x5e4f6d(0x172))/0x4*(-parseInt(_0x5e4f6d(0x174))/0x5)+parseInt(_0x5e4f6d(0x182))/0x6*(-parseInt(_0x5e4f6d(0x173))/0x7)+parseInt(_0x5e4f6d(0x17d))/0x8+parseInt(_0x5e4f6d(0x179))/0x9*(parseInt(_0x5e4f6d(0x170))/0xa)+parseInt(_0x5e4f6d(0x181))/0xb*(-parseInt(_0x5e4f6d(0x178))/0xc);if(_0x176422===_0x1443b7)break;else _0x1eda82['push'](_0x1eda82['shift']());}catch(_0x41ffe9){_0x1eda82['push'](_0x1eda82['shift']());}}}(a148_0x571a,0x28917));export function assertDatasetImportTarget(_0x3e2f5f,_0x1e97e7,_0x28fe89){const _0x52c2bc=a148_0xc17b;if(!_0x3e2f5f||typeof _0x3e2f5f!=='object'||Array[_0x52c2bc(0x189)](_0x3e2f5f))throw Error(_0x52c2bc(0x180));const _0x406522=[_0x3e2f5f[_0x52c2bc(0x187)],_0x3e2f5f[_0x52c2bc(0x175)],_0x3e2f5f[_0x52c2bc(0x183)]?.[_0x52c2bc(0x184)]][_0x52c2bc(0x17b)](_0x1e4ac3=>_0x1e4ac3!=null);if(!_0x406522[_0x52c2bc(0x176)]||_0x406522[_0x52c2bc(0x17f)](_0x32e46b=>_0x32e46b!==_0x28fe89)||_0x3e2f5f[_0x52c2bc(0x186)]!=null&&_0x3e2f5f[_0x52c2bc(0x186)]!==_0x1e97e7||_0x3e2f5f[_0x52c2bc(0x183)]?.[_0x52c2bc(0x186)]!=null&&_0x3e2f5f[_0x52c2bc(0x183)]['appCode']!==_0x1e97e7)throw Error('Dataset\x20metadata\x20does\x20not\x20match\x20the\x20requested\x20target.');const _0x370f48=[_0x3e2f5f[_0x52c2bc(0x17e)],_0x3e2f5f[_0x52c2bc(0x183)]?.[_0x52c2bc(0x177)]][_0x52c2bc(0x17b)](_0x56f9d0=>_0x56f9d0!=null);if(_0x370f48[_0x52c2bc(0x17f)](_0xbe9bf6=>typeof _0xbe9bf6!==_0x52c2bc(0x17c)||_0xbe9bf6!==_0x370f48[0x0]))throw Error(_0x52c2bc(0x185));return _0x370f48[0x0];}function a148_0x571a(){const _0x574264=['Dataset\x20metadata\x20is\x20missing.','8503BAzmlx','12tsThsD','dataset','datasetCode','Dataset\x20source\x20metadata\x20is\x20inconsistent.','appCode','code','4CWYELM','isArray','925910LegoRb','216294KOJkQp','11692qCQDBZ','188363UHzBXV','145vaArZU','modelCode','length','sourceType','6672NzHkqF','27HQelpZ','267171bivYQc','filter','string','1992424FOiTYJ','source','some'];a148_0x571a=function(){return _0x574264;};return a148_0x571a();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a149_0x1544(){const _0x1b5784=['schemaVersion','\x20exceeds\x20the\x20import\x20request\x20size\x20limit.','values','121424bWwvLJ','schemaFingerprint','144912eIbiUr','Excel\x20row\x20','utf8','195636lBKmen','map','401086nAuPAV','length','162295sWrESM','636XMmqGN','rowNumber','6384LCWRKo','4573270KbiSJZ','66KFGWAv','byteLength','stringify','push','maxBatchBytes','117dUVzdF','rows'];a149_0x1544=function(){return _0x1b5784;};return a149_0x1544();}(function(_0x26c5d1,_0x5abed3){const _0x59b86f=a149_0x1465,_0x39b1c1=_0x26c5d1();while(!![]){try{const _0x77659e=parseInt(_0x59b86f(0x150))/0x1+-parseInt(_0x59b86f(0x14b))/0x2+-parseInt(_0x59b86f(0x13f))/0x3*(-parseInt(_0x59b86f(0x13d))/0x4)+parseInt(_0x59b86f(0x154))/0x5*(parseInt(_0x59b86f(0x141))/0x6)+parseInt(_0x59b86f(0x152))/0x7+parseInt(_0x59b86f(0x14d))/0x8*(-parseInt(_0x59b86f(0x146))/0x9)+-parseInt(_0x59b86f(0x140))/0xa;if(_0x77659e===_0x5abed3)break;else _0x39b1c1['push'](_0x39b1c1['shift']());}catch(_0x252819){_0x39b1c1['push'](_0x39b1c1['shift']());}}}(a149_0x1544,0x2f8fe));function a149_0x1465(_0x376b9b,_0x1c0be4){_0x376b9b=_0x376b9b-0x13d;const _0x15441d=a149_0x1544();let _0x1465d8=_0x15441d[_0x376b9b];return _0x1465d8;}export function previewImportBatchCount(_0x53a09a,_0x1808b7,_0x771b57){const _0x14495e=a149_0x1465,_0x17739c=_0xc64d88=>_0xc64d88[_0x14495e(0x151)](_0x525bed=>_0x1808b7[_0x14495e(0x148)]===0x1?{..._0x53a09a['rows'][_0x525bed]['values'],'id':-0x1fffffffffffff}:_0x53a09a[_0x14495e(0x147)][_0x525bed][_0x14495e(0x14a)]),_0x285387=_0x191b3b=>Buffer[_0x14495e(0x142)](JSON[_0x14495e(0x143)]({'schemaFingerprint':_0x1808b7[_0x14495e(0x14c)],..._0x1808b7[_0x14495e(0x148)]===0x2?{'taskId':0x2**0x34}:{},'items':_0x17739c(_0x191b3b)}),_0x14495e(0x14f));let _0x25d4de=0x0,_0x121005=[];for(let _0x5088b0=0x0;_0x5088b0<_0x53a09a[_0x14495e(0x147)][_0x14495e(0x153)];_0x5088b0++){if(_0x285387([_0x5088b0])>_0x1808b7[_0x14495e(0x145)])throw Error(_0x14495e(0x14e)+_0x53a09a[_0x14495e(0x147)][_0x5088b0][_0x14495e(0x13e)]+_0x14495e(0x149));_0x121005[_0x14495e(0x153)]&&(_0x121005['length']===_0x771b57||_0x285387([..._0x121005,_0x5088b0])>_0x1808b7[_0x14495e(0x145)])&&(_0x25d4de++,_0x121005=[]),_0x121005[_0x14495e(0x144)](_0x5088b0);}return _0x25d4de+Number(_0x121005[_0x14495e(0x153)]>0x0);}
|